configure.in
changeset 86 13e4c612098d
parent 76 f28fa29a3a0c
child 94 ae6e6b73333f
equal deleted inserted replaced
85:60c7960354e0 86:13e4c612098d
   366             AUDIO_DRIVERS="$AUDIO_DRIVERS nas/libaudio_nas.la"
   366             AUDIO_DRIVERS="$AUDIO_DRIVERS nas/libaudio_nas.la"
   367         fi
   367         fi
   368     fi
   368     fi
   369 }
   369 }
   370 
   370 
   371 
       
   372 dnl rcg07142001 See if the user wants the disk writer audio driver...
   371 dnl rcg07142001 See if the user wants the disk writer audio driver...
   373 CheckDiskAudio()
   372 CheckDiskAudio()
   374 {
   373 {
   375     AC_ARG_ENABLE(diskaudio,
   374     AC_ARG_ENABLE(diskaudio,
   376 [  --enable-diskaudio  	  support the disk writer audio driver [default=no]],
   375 [  --enable-diskaudio  	  support the disk writer audio driver [default=yes]],
   377                   , enable_diskaudio=no)
   376                   , enable_diskaudio=yes)
   378     if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
   377     if test x$enable_audio = xyes -a x$enable_diskaudio = xyes; then
   379         CFLAGS="$CFLAGS -DDISKAUD_SUPPORT"
   378         CFLAGS="$CFLAGS -DDISKAUD_SUPPORT"
   380         AUDIO_SUBDIRS="$AUDIO_SUBDIRS disk"
   379         AUDIO_SUBDIRS="$AUDIO_SUBDIRS disk"
   381         AUDIO_DRIVERS="$AUDIO_DRIVERS disk/libaudio_disk.la"
   380         AUDIO_DRIVERS="$AUDIO_DRIVERS disk/libaudio_disk.la"
   382     fi
   381     fi
   383 }
   382 }
   384 
       
   385 
   383 
   386 dnl See if we can use x86 assembly blitters
   384 dnl See if we can use x86 assembly blitters
   387 CheckNASM()
   385 CheckNASM()
   388 {
   386 {
   389     dnl Make sure we are running on an x86 platform
   387     dnl Make sure we are running on an x86 platform
   808 
   806 
   809 dnl rcg04172001 Set up the Null video driver.
   807 dnl rcg04172001 Set up the Null video driver.
   810 CheckDummyVideo()
   808 CheckDummyVideo()
   811 {
   809 {
   812     AC_ARG_ENABLE(video-dummy,
   810     AC_ARG_ENABLE(video-dummy,
   813 [  --enable-video-dummy    use dummy video driver [default=no]],
   811 [  --enable-video-dummy    use dummy video driver [default=yes]],
   814                   , enable_video_dummy=no)
   812                   , enable_video_dummy=yes)
   815     if test x$enable_video_dummy = xyes; then
   813     if test x$enable_video_dummy = xyes; then
   816       CFLAGS="$CFLAGS -DENABLE_DUMMYVIDEO"
   814       CFLAGS="$CFLAGS -DENABLE_DUMMYVIDEO"
   817       VIDEO_SUBDIRS="$VIDEO_SUBDIRS dummy"
   815       VIDEO_SUBDIRS="$VIDEO_SUBDIRS dummy"
   818       VIDEO_DRIVERS="$VIDEO_DRIVERS dummy/libvideo_null.la"
   816       VIDEO_DRIVERS="$VIDEO_DRIVERS dummy/libvideo_null.la"
   819     fi
   817     fi
   900     AC_ARG_ENABLE(pthreads,
   898     AC_ARG_ENABLE(pthreads,
   901 [  --enable-pthreads       use POSIX threads for multi-threading [default=yes]],
   899 [  --enable-pthreads       use POSIX threads for multi-threading [default=yes]],
   902                   , enable_pthreads=yes)
   900                   , enable_pthreads=yes)
   903     dnl This is used on Linux for glibc binary compatibility (Doh!)
   901     dnl This is used on Linux for glibc binary compatibility (Doh!)
   904     AC_ARG_ENABLE(pthread-sem,
   902     AC_ARG_ENABLE(pthread-sem,
   905 [    --enable-pthread-sem  use pthread semaphores [default=yes]],
   903 [  --enable-pthread-sem    use pthread semaphores [default=yes]],
   906                   , enable_pthread_sem=yes)
   904                   , enable_pthread_sem=yes)
   907     ac_save_libs="$LIBS"
   905     ac_save_libs="$LIBS"
   908     case "$target" in
   906     case "$target" in
   909         *-*-bsdi*)
   907         *-*-bsdi*)
   910             pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
   908             pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"