comparison configure @ 24650:f4143e50206d

Move declaration of temporary file variables to after the system-specific variable declarations (preparation for next patch).
author diego
date Sat, 29 Sep 2007 22:26:35 +0000
parents aa3ba702dec5
children 7e70e2c4cf3a
comparison
equal deleted inserted replaced
24649:aa3ba702dec5 24650:f4143e50206d
1298 1298
1299 if test "$_runtime_cpudetection" = yes && not x86 && not ppc; then 1299 if test "$_runtime_cpudetection" = yes && not x86 && not ppc; then
1300 die "Runtime CPU detection only works for x86, x86-64 and PPC!" 1300 die "Runtime CPU detection only works for x86, x86-64 and PPC!"
1301 fi 1301 fi
1302 1302
1303
1304 if openbsd ; then
1305 _ldconfig="ldconfig -R"
1306 fi
1307
1308 if freebsd ; then
1309 _ld_extra="$_ld_extra -L/usr/local/lib"
1310 _inc_extra="$_inc_extra -I/usr/local/include"
1311 fi
1312
1313 if darwin; then
1314 _ld_extra="$_ld_extra -L/usr/local/lib"
1315 _inc_extra="$_inc_extra -I/usr/local/include"
1316 fi
1317
1318 if aix ; then
1319 _ld_extra="$_ld_extra -lC"
1320 fi
1321
1322 if irix ; then
1323 _ranlib='ar -r'
1324 elif linux ; then
1325 _ranlib='true'
1326 fi
1327
1328 if win32 ; then
1329 _exesuf=".exe"
1330 # -lwinmm is always needed for osdep/timer-win2.c
1331 _ld_extra="$_ld_extra -lwinmm"
1332 _confwin32='TARGET_WIN32 = yes'
1333 else
1334 _confwin32='TARGET_WIN32 = no'
1335 fi
1336
1337 if mingw32 ; then
1338 _need_shmem=no
1339 fi
1340
1341 if cygwin ; then
1342 _def_confwin32='#define WIN32'
1343 fi
1344
1345 if amigaos ; then
1346 _select=no
1347 _sighandler=no
1348 _stream_cache=no
1349 _def_stream_cache="#undef USE_STREAM_CACHE"
1350 fi
1351
1352 if qnx ; then
1353 _ld_extra="$_ld_extra -lph"
1354 fi
1355
1303 for I in "$TMPDIR" "$TEMPDIR" "/tmp" ; do 1356 for I in "$TMPDIR" "$TEMPDIR" "/tmp" ; do
1304 test "$I" && break 1357 test "$I" && break
1305 done 1358 done
1359
1306 1360
1307 TMPLOG="configure.log" 1361 TMPLOG="configure.log"
1308 TMPC="$I/mplayer-conf-$RANDOM-$$.c" 1362 TMPC="$I/mplayer-conf-$RANDOM-$$.c"
1309 TMPCPP="$I/mplayer-conf-$RANDOM-$$.cpp" 1363 TMPCPP="$I/mplayer-conf-$RANDOM-$$.cpp"
1310 TMPEXE="$I/mplayer-conf-$RANDOM-$$" 1364 TMPEXE="$I/mplayer-conf-$RANDOM-$$"
1313 1367
1314 rm -f "$TMPLOG" 1368 rm -f "$TMPLOG"
1315 echo configuration: $_configuration > "$TMPLOG" 1369 echo configuration: $_configuration > "$TMPLOG"
1316 echo >> "$TMPLOG" 1370 echo >> "$TMPLOG"
1317 1371
1318 if openbsd ; then
1319 _ldconfig="ldconfig -R"
1320 fi
1321
1322 if freebsd ; then
1323 _ld_extra="$_ld_extra -L/usr/local/lib"
1324 _inc_extra="$_inc_extra -I/usr/local/include"
1325 fi
1326
1327 if darwin; then
1328 _ld_extra="$_ld_extra -L/usr/local/lib"
1329 _inc_extra="$_inc_extra -I/usr/local/include"
1330 fi
1331
1332 if aix ; then
1333 _ld_extra="$_ld_extra -lC"
1334 fi
1335
1336 if irix ; then
1337 _ranlib='ar -r'
1338 elif linux ; then
1339 _ranlib='true'
1340 fi
1341
1342 if win32 ; then
1343 _exesuf=".exe"
1344 # -lwinmm is always needed for osdep/timer-win2.c
1345 _ld_extra="$_ld_extra -lwinmm"
1346 _confwin32='TARGET_WIN32 = yes'
1347 else
1348 _confwin32='TARGET_WIN32 = no'
1349 fi
1350
1351 if mingw32 ; then
1352 _need_shmem=no
1353 fi
1354
1355 if cygwin ; then
1356 _def_confwin32='#define WIN32'
1357 fi
1358
1359 if amigaos ; then
1360 _select=no
1361 _sighandler=no
1362 _stream_cache=no
1363 _def_stream_cache="#undef USE_STREAM_CACHE"
1364 fi
1365
1366 if qnx ; then
1367 _ld_extra="$_ld_extra -lph"
1368 fi
1369 1372
1370 # Check how to call 'head' and 'tail'. Newer versions spit out warnings 1373 # Check how to call 'head' and 'tail'. Newer versions spit out warnings
1371 # if used as 'head -1' instead of 'head -n 1', but older versions don't 1374 # if used as 'head -1' instead of 'head -n 1', but older versions don't
1372 # know about '-n'. 1375 # know about '-n'.
1373 if test "`(echo line1 ; echo line2) | head -1 2>/dev/null`" = "line1" ; then 1376 if test "`(echo line1 ; echo line2) | head -1 2>/dev/null`" = "line1" ; then