comparison configure @ 26319:b90151a7dcbb

Move decision about which getch2 and timer file to compile to configure.
author diego
date Tue, 08 Apr 2008 18:03:14 +0000
parents 7e0162c50768
children 8fadd02c498c
comparison
equal deleted inserted replaced
26318:7e0162c50768 26319:b90151a7dcbb
1309 if test "$_runtime_cpudetection" = yes && ! x86 && ! ppc; then 1309 if test "$_runtime_cpudetection" = yes && ! x86 && ! ppc; then
1310 die "Runtime CPU detection only works for x86, x86-64 and PPC!" 1310 die "Runtime CPU detection only works for x86, x86-64 and PPC!"
1311 fi 1311 fi
1312 1312
1313 1313
1314 _timer=timer-linux.c
1315 _getch=getch2.c
1314 if freebsd ; then 1316 if freebsd ; then
1315 _ld_extra="$_ld_extra -L/usr/local/lib" 1317 _ld_extra="$_ld_extra -L/usr/local/lib"
1316 _inc_extra="$_inc_extra -I/usr/local/include" 1318 _inc_extra="$_inc_extra -I/usr/local/include"
1317 fi 1319 fi
1318 1320
1322 fi 1324 fi
1323 1325
1324 if darwin; then 1326 if darwin; then
1325 _ld_extra="$_ld_extra -L/usr/local/lib" 1327 _ld_extra="$_ld_extra -L/usr/local/lib"
1326 _inc_extra="$_inc_extra -I/usr/local/include" 1328 _inc_extra="$_inc_extra -I/usr/local/include"
1329 _timer=timer-darwin.c
1327 fi 1330 fi
1328 1331
1329 if aix ; then 1332 if aix ; then
1330 _ld_extra="$_ld_extra -lC" 1333 _ld_extra="$_ld_extra -lC"
1331 fi 1334 fi
1339 if win32 ; then 1342 if win32 ; then
1340 _exesuf=".exe" 1343 _exesuf=".exe"
1341 # -lwinmm is always needed for osdep/timer-win2.c 1344 # -lwinmm is always needed for osdep/timer-win2.c
1342 _ld_extra="$_ld_extra -lwinmm" 1345 _ld_extra="$_ld_extra -lwinmm"
1343 _confwin32='TARGET_WIN32 = yes' 1346 _confwin32='TARGET_WIN32 = yes'
1347 _timer=timer-win2.c
1344 else 1348 else
1345 _confwin32='TARGET_WIN32 = no' 1349 _confwin32='TARGET_WIN32 = no'
1346 fi 1350 fi
1347 1351
1348 if mingw32 ; then 1352 if mingw32 ; then
1353 _getch=getch2-win.c
1349 _need_shmem=no 1354 _need_shmem=no
1350 fi 1355 fi
1351 1356
1352 if cygwin ; then 1357 if cygwin ; then
1353 _def_confwin32='#define WIN32' 1358 _def_confwin32='#define WIN32'
1364 _ld_extra="$_ld_extra -lph" 1369 _ld_extra="$_ld_extra -lph"
1365 fi 1370 fi
1366 1371
1367 if os2 ; then 1372 if os2 ; then
1368 _exesuf=".exe" 1373 _exesuf=".exe"
1374 _getch=getch2-os2.c
1369 _need_shmem=no 1375 _need_shmem=no
1370 _ar="emxomfar -p256" 1376 _ar="emxomfar -p256"
1371 _ranlib="echo ignoring ranlib" 1377 _ranlib="echo ignoring ranlib"
1372 _ld_extra="$_ld_extra -Zomf -Zstack 16384 -Zbin-files -Zargs-wild -lmmpm2" 1378 _ld_extra="$_ld_extra -Zomf -Zstack 16384 -Zbin-files -Zargs-wild -lmmpm2"
1373 fi 1379 fi
7738 NEED_SHMEM = $_need_shmem 7744 NEED_SHMEM = $_need_shmem
7739 NEED_STRSEP = $_need_strsep 7745 NEED_STRSEP = $_need_strsep
7740 NEED_SWAB = $_need_swab 7746 NEED_SWAB = $_need_swab
7741 NEED_VSSCANF = $_need_vsscanf 7747 NEED_VSSCANF = $_need_vsscanf
7742 7748
7749 GETCH = $_getch
7750 TIMER = $_timer
7751
7743 # audio output 7752 # audio output
7744 OSS = $_ossaudio 7753 OSS = $_ossaudio
7745 ALSA = $_alsa 7754 ALSA = $_alsa
7746 ALSA5 = $_alsa5 7755 ALSA5 = $_alsa5
7747 ALSA9 = $_alsa9 7756 ALSA9 = $_alsa9