summaryrefslogtreecommitdiff
authorkergoth <kergoth>2002-03-19 02:41:55 (UTC)
committer kergoth <kergoth>2002-03-19 02:41:55 (UTC)
commit7a4ff15ff356a484a498249f01354dce549eaec2 (patch) (unidiff)
tree42956816894db05e0ae8f30956545e1b9301a9ef
parent0097a3253cae1c440a9d10c1dec261f10023195b (diff)
downloadopie-7a4ff15ff356a484a498249f01354dce549eaec2.zip
opie-7a4ff15ff356a484a498249f01354dce549eaec2.tar.gz
opie-7a4ff15ff356a484a498249f01354dce549eaec2.tar.bz2
ugh.. configure couldnt handle the translation variables properly in its translation = appname sanity check.
Diffstat (more/less context) (ignore whitespace changes)
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 1652527..e81bc95 100755
--- a/configure
+++ b/configure
@@ -81,193 +81,193 @@ while [ -n "$1" ]; do
81 ;; 81 ;;
82 -qt3) 82 -qt3)
83 QT3=yes 83 QT3=yes
84 ;; 84 ;;
85 *) 85 *)
86 HELP=yes;; 86 HELP=yes;;
87 esac 87 esac
88 shift 88 shift
89done 89done
90 90
91TARGET=configs/$PLATFORM-$SHARING$DEBUG 91TARGET=configs/$PLATFORM-$SHARING$DEBUG
92 92
93if [ '!' -f $TARGET ] 93if [ '!' -f $TARGET ]
94then 94then
95 if [ -f configs/linux-$PLATFORM-g++-$SHARING$DEBUG ] 95 if [ -f configs/linux-$PLATFORM-g++-$SHARING$DEBUG ]
96 then 96 then
97 TARGET=configs/linux-$PLATFORM-g++-$SHARING$DEBUG 97 TARGET=configs/linux-$PLATFORM-g++-$SHARING$DEBUG
98 else 98 else
99 echo 99 echo
100 echo ' The specified platform/compiler not supported: ' $TARGET 100 echo ' The specified platform/compiler not supported: ' $TARGET
101 echo 101 echo
102 exit 2 102 exit 2
103 fi 103 fi
104fi 104fi
105 105
106# Next, emit a usage message if something failed. 106# Next, emit a usage message if something failed.
107 107
108if [ "$HELP" = "yes" ]; then 108if [ "$HELP" = "yes" ]; then
109 cat <<EOF 109 cat <<EOF
110Usage: $0 [-debug] [-release] [-shared] [-static] [-qt3] [-platform ...] 110Usage: $0 [-debug] [-release] [-shared] [-static] [-qt3] [-platform ...]
111 111
112The defaults (*) are usually acceptable. Here is a short explanation of 112The defaults (*) are usually acceptable. Here is a short explanation of
113each option: 113each option:
114 114
115 * -release ........... Compile and link Qt with debugging turned off. 115 * -release ........... Compile and link Qt with debugging turned off.
116 -debug ............. Compile and link Qt with debugging turned on. 116 -debug ............. Compile and link Qt with debugging turned on.
117 117
118 * -shared ............ Create and use a shared Qt library (libqt.so) 118 * -shared ............ Create and use a shared Qt library (libqt.so)
119 -static ............ Create and use a static Qt library (libqt.a) 119 -static ............ Create and use a static Qt library (libqt.a)
120 120
121 -qt3 ............... Configure for use with Qt 3.x 121 -qt3 ............... Configure for use with Qt 3.x
122 122
123 -platform target ... The platform you are building on ($PLATFORM) 123 -platform target ... The platform you are building on ($PLATFORM)
124EOF 124EOF
125 exit 0; 125 exit 0;
126fi 126fi
127 127
128if [ -f library/custom-$PLATFORM.h ] 128if [ -f library/custom-$PLATFORM.h ]
129then 129then
130 rm -f library/custom.h 130 rm -f library/custom.h
131 ln -s custom-$PLATFORM.h library/custom.h 131 ln -s custom-$PLATFORM.h library/custom.h
132fi 132fi
133 133
134mkdir -p include/qpe 134mkdir -p include/qpe
135( cd include/qpe && rm -f *.h; ln -s ../../library/*.h .; ln -s ../../library/backend/*.h .; rm -f *_p.h; ) 135( cd include/qpe && rm -f *.h; ln -s ../../library/*.h .; ln -s ../../library/backend/*.h .; rm -f *_p.h; )
136 136
137echo Creating makefiles... 137echo Creating makefiles...
138 138
139sed -e 's/^\(VERSION.*= \).*/\1'$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT/ <library/library.pro >library/library.pro-v 139sed -e 's/^\(VERSION.*= \).*/\1'$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT/ <library/library.pro >library/library.pro-v
140mv library/library.pro-v library/library.pro 140mv library/library.pro-v library/library.pro
141 141
142if [ "$QT3" = yes ] 142if [ "$QT3" = yes ]
143then 143then
144 VCONFIG="CONFIG+=qt3" 144 VCONFIG="CONFIG+=qt3"
145else 145else
146 VCONFIG="CONFIG+=qt2" 146 VCONFIG="CONFIG+=qt2"
147fi 147fi
148 148
149if [ -f $TMAKEPATH/tmake.conf ] 149if [ -f $TMAKEPATH/tmake.conf ]
150then 150then
151 # You have tmake. We'll regenerate the file for you... 151 # You have tmake. We'll regenerate the file for you...
152 echo "Makefiles will be regenerated." 152 echo "Makefiles will be regenerated."
153fi 153fi
154 154
155H=`pwd` 155H=`pwd`
156if [ -z "$TOMAKE" ] 156if [ -z "$TOMAKE" ]
157then 157then
158 TOMAKE=`make showcomponents` 158 TOMAKE=`make showcomponents`
159fi 159fi
160 160
161for a in $TOMAKE ; do 161for a in $TOMAKE ; do
162 N=$a/Makefile 162 N=$a/Makefile
163 M=$a/Makefile.in 163 M=$a/Makefile.in
164 O=$a/Makefile.add 164 O=$a/Makefile.add
165 f=`basename $a` 165 f=`basename $a`
166 166
167 if [ -f $TMAKEPATH/tmake.conf -a -f $a/$f.pro ] 167 if [ -f $TMAKEPATH/tmake.conf -a -f $a/$f.pro ]
168 then 168 then
169 ( cd $a; 169 ( cd $a;
170 TMAKEPATH=$QTDIR/tmake:$TMAKEPATH \ 170 TMAKEPATH=$QTDIR/tmake:$TMAKEPATH \
171 tmake $QCONFIGARG CONFIG+=embedded $VCONFIG \ 171 tmake $QCONFIGARG CONFIG+=embedded $VCONFIG \
172 -t $H/qt/tmake/propagate.t $f.pro | 172 -t $H/qt/tmake/propagate.t $f.pro |
173 sed -e "s|$QTDIR|\$(QTDIR)|g" -e "s|$OPIEDIR|\$(OPIEDIR)|g" >Makefile.in; 173 sed -e "s|$QTDIR|\$(QTDIR)|g" -e "s|$OPIEDIR|\$(OPIEDIR)|g" >Makefile.in;
174 ) 174 )
175 echo -n "." 175 echo -n "."
176 appname=`grep '^TARGET' $a/$f.pro | sed 's/^TARGET.*=//' | sed 's/ //g'` 176 appname=`grep '^TARGET' $a/$f.pro | sed 's/^TARGET.*=//' | sed 's/ //g'`
177 translation=`grep '^TRANSLATION' $a/$f.pro | sed 's,^TRANSL.*=.*i18n\/.*\/,,' | sed 's/ //g' | sed 's,\.ts.*,,' | sed 's,^lib,,' ` 177 translation=`grep '^TRANSLATION.*[^+]=.*' $a/$f.pro | sed 's,^TRANSL.*=.*i18n\/.*\/,,' | sed 's/ //g' | sed 's,\.ts.*,,' | sed 's,^lib,,' `
178 if [ -n "$translation" -a -n "$appname" ] 178 if [ -n "$translation" -a -n "$appname" ]
179 then 179 then
180 if [ $appname != $translation ] 180 if [ $appname != $translation ]
181 then 181 then
182 echo 182 echo
183 echo "Warning: translation and appname disagree in $a/$f.pro" 183 echo "Warning: translation and appname disagree in $a/$f.pro"
184 fi 184 fi
185 fi 185 fi
186 186
187 fi 187 fi
188 188
189 cat > $N <<EOF 189 cat > $N <<EOF
190############################################################################# 190#############################################################################
191# Automatically generated from $M 191# Automatically generated from $M
192# Build options from $1 192# Build options from $1
193############################################################################# 193#############################################################################
194 194
195EOF 195EOF
196 196
197 SED= 197 SED=
198 PLATFORM_CFLAGS= 198 PLATFORM_CFLAGS=
199 199
200 if [ "$f" = "embeddedkonsole" ] 200 if [ "$f" = "embeddedkonsole" ]
201 then 201 then
202 case $PLATFORM in 202 case $PLATFORM in
203 *x86*|*generic*|*ipaq*) 203 *x86*|*generic*|*ipaq*)
204 SED="$SED /^LIBS.*=/s/\$/ -lutil/;" 204 SED="$SED /^LIBS.*=/s/\$/ -lutil/;"
205 PLATFORM_CFLAGS="-DHAVE_OPENPTY" 205 PLATFORM_CFLAGS="-DHAVE_OPENPTY"
206 ;; *) 206 ;; *)
207 SED= 207 SED=
208 esac 208 esac
209 elif [ "$f" = "libmpeg3" ] 209 elif [ "$f" = "libmpeg3" ]
210 then 210 then
211 # Patch our Makefile.in file with the platform specifics for the libmpeg3 library 211 # Patch our Makefile.in file with the platform specifics for the libmpeg3 library
212 # Use the C++ compiler to compile the .c files (because the fixed-point classes are C++ code) 212 # Use the C++ compiler to compile the .c files (because the fixed-point classes are C++ code)
213 SED='s/\$(CC)/\$(CXX)/;' 213 SED='s/\$(CC)/\$(CXX)/;'
214 case $PLATFORM 214 case $PLATFORM
215 in 215 in
216 # For x86 turn on using floating point, compile mmx and css code 216 # For x86 turn on using floating point, compile mmx and css code
217 *x86*) 217 *x86*)
218 # "-funroll-loops -fomit-frame-pointer -malign-loops=2 -malign-jumps=2 -malign-functions=2 -march=i486" 218 # "-funroll-loops -fomit-frame-pointer -malign-loops=2 -malign-jumps=2 -malign-functions=2 -march=i486"
219 PLATFORM_CFLAGS="-DHAVE_MMX -DHAVE_CSS" 219 PLATFORM_CFLAGS="-DHAVE_MMX -DHAVE_CSS"
220 SED="$SED /SOURCES.*=/s/=/= video\\/mmxidct.S video\\/reconmmx.s\ /;" 220 SED="$SED /SOURCES.*=/s/=/= video\\/mmxidct.S video\\/reconmmx.s\ /;"
221 # For generic turn on using floating point 221 # For generic turn on using floating point
222 ;; *generic*) 222 ;; *generic*)
223 PLATFORM_CFLAGS="" 223 PLATFORM_CFLAGS=""
224 # For the ipaq use fixed point maths, don't compile the mmx or css code 224 # For the ipaq use fixed point maths, don't compile the mmx or css code
225 ;; *ipaq*) 225 ;; *ipaq*)
226 PLATFORM_CFLAGS="-DUSE_FIXED_POINT" 226 PLATFORM_CFLAGS="-DUSE_FIXED_POINT"
227 ;; *) 227 ;; *)
228 # For 'other platforms', turn off optimizations and use fixed point 228 # For 'other platforms', turn off optimizations and use fixed point
229 PLATFORM_CFLAGS="-O -DUSE_FIXED_POINT" 229 PLATFORM_CFLAGS="-O -DUSE_FIXED_POINT"
230 esac 230 esac
231 elif [ "$f" = "libmad" ] 231 elif [ "$f" = "libmad" ]
232 then 232 then
233 # Patch our Makefile.in file with the platform specifics for the libmad library 233 # Patch our Makefile.in file with the platform specifics for the libmad library
234 case $PLATFORM 234 case $PLATFORM
235 in 235 in
236 # For x86 use intel optimizations 236 # For x86 use intel optimizations
237 *x86*) 237 *x86*)
238 PLATFORM_CFLAGS="-DFPM_INTEL" 238 PLATFORM_CFLAGS="-DFPM_INTEL"
239 # For the ipaq use ARM asm optimizations 239 # For the ipaq use ARM asm optimizations
240 ;; *ipaq*) 240 ;; *ipaq*)
241 PLATFORM_CFLAGS="-DFPM_ARM" 241 PLATFORM_CFLAGS="-DFPM_ARM"
242 SED="$SED /SOURCES.*=/s/=/= idmt_arm.S /;" 242 SED="$SED /SOURCES.*=/s/=/= idmt_arm.S /;"
243 # For generic platforms use the C 64-bit implementation 243 # For generic platforms use the C 64-bit implementation
244 ;; *generic*) 244 ;; *generic*)
245 PLATFORM_CFLAGS="-DFPM_64BIT" 245 PLATFORM_CFLAGS="-DFPM_64BIT"
246 # For 'other platforms' use the ARM code 246 # For 'other platforms' use the ARM code
247 ;; *) 247 ;; *)
248 PLATFORM_CFLAGS="-DFPM_ARM" 248 PLATFORM_CFLAGS="-DFPM_ARM"
249 SED="$SED /SOURCES.*=/s/=/= idmt_arm.S /;" 249 SED="$SED /SOURCES.*=/s/=/= idmt_arm.S /;"
250 esac 250 esac
251 fi 251 fi
252 if [ -n "$PLATFORM_CFLAGS" ] 252 if [ -n "$PLATFORM_CFLAGS" ]
253 then 253 then
254 # Append the addition c-flags we have defined 254 # Append the addition c-flags we have defined
255 SED="$SED /CFLAGS.*=.*/s/\$/ $PLATFORM_CFLAGS/;" 255 SED="$SED /CFLAGS.*=.*/s/\$/ $PLATFORM_CFLAGS/;"
256 SED="$SED /CXXFLAGS.*=.*/s/\$/ $PLATFORM_CFLAGS/;" 256 SED="$SED /CXXFLAGS.*=.*/s/\$/ $PLATFORM_CFLAGS/;"
257 fi 257 fi
258 cat $TARGET >> $N 258 cat $TARGET >> $N
259 if [ -n "$SED" ] 259 if [ -n "$SED" ]
260 then 260 then
261 sed -e "$SED" $M >> $N 261 sed -e "$SED" $M >> $N
262 else 262 else
263 cat $M >> $N 263 cat $M >> $N
264 fi 264 fi
265 265
266 cat >> $N <<EOF 266 cat >> $N <<EOF
267 267
268lupdate: 268lupdate:
269 lupdate $f.pro 269 lupdate $f.pro
270 270
271lrelease: 271lrelease:
272 lrelease $f.pro 272 lrelease $f.pro
273 273