configure.in
changeset 398 d219b0e02f5f
parent 387 469d5c0da01d
child 399 cfcf6bf1640c
     1.1 --- a/configure.in	Mon Jun 10 20:42:02 2002 +0000
     1.2 +++ b/configure.in	Mon Jun 10 20:42:53 2002 +0000
     1.3 @@ -435,6 +435,24 @@
     1.4      fi
     1.5  }
     1.6  
     1.7 +dnl Set up the Atari Audio driver
     1.8 +CheckAtariAudio()
     1.9 +{
    1.10 +    AC_ARG_ENABLE(mintaudio,
    1.11 +[  --enable-mintaudio      support Atari audio driver [default=yes]],
    1.12 +                  , enable_mintaudio=yes)
    1.13 +    if test x$enable_audio = xyes -a x$enable_mintaudio = xyes; then
    1.14 +        mintaudio=no
    1.15 +        AC_CHECK_HEADER(mint/falcon.h, have_mint_falcon_hdr=yes)
    1.16 +        if test x$have_mint_falcon_hdr = xyes; then
    1.17 +            mintaudio=yes
    1.18 +            CFLAGS="$CFLAGS -DMINTAUDIO_SUPPORT"
    1.19 +            AUDIO_SUBDIRS="$AUDIO_SUBDIRS mint"
    1.20 +            AUDIO_DRIVERS="$AUDIO_DRIVERS mint/libaudio_mintaudio.la"
    1.21 +        fi
    1.22 +    fi
    1.23 +}
    1.24 +
    1.25  dnl See if we can use x86 assembly blitters
    1.26  # NASM is available from: http://nasm.octium.net/
    1.27  CheckNASM()
    1.28 @@ -2380,13 +2398,17 @@
    1.29          CheckAtariBiosEvent
    1.30          CheckAtariXbiosVideo
    1.31          CheckAtariGemVideo
    1.32 +        CheckAtariAudio
    1.33          CheckPTH
    1.34          # Set up files for the main() stub
    1.35          COPY_ARCH_SRC(src/main, linux, SDL_main.c)
    1.36          # Set up files for the audio library
    1.37 -        if test x$enable_audio = xyes; then
    1.38 -            AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun"
    1.39 -            AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la"
    1.40 +        if test x$enable_threads = xyes -a x$enable_pth = xyes; then
    1.41 +            if test x$enable_audio = xyes; then
    1.42 +                CFLAGS="$CFLAGS -DSUNAUDIO_SUPPORT"
    1.43 +                AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun"
    1.44 +                AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la"
    1.45 +            fi
    1.46          fi
    1.47          # Set up files for the joystick library
    1.48          if test x$enable_joystick = xyes; then
    1.49 @@ -2575,6 +2597,7 @@
    1.50  src/audio/windib/Makefile
    1.51  src/audio/windx5/Makefile
    1.52  src/audio/disk/Makefile
    1.53 +src/audio/mint/Makefile
    1.54  src/video/Makefile
    1.55  src/video/XFree86/Makefile
    1.56  src/video/XFree86/extensions/Makefile