configure.in
changeset 37 3ad7157c6cfa
parent 35 d3bc792e136d
child 39 a6a2fbe66fd1
     1.1 --- a/configure.in	Wed May 23 23:35:10 2001 +0000
     1.2 +++ b/configure.in	Sat May 26 16:58:37 2001 +0000
     1.3 @@ -278,6 +278,19 @@
     1.4      fi
     1.5  }
     1.6  
     1.7 +dnl Check whether we want to use OpenBSD native audio or not
     1.8 +CheckOPENBSDAUDIO()
     1.9 +{
    1.10 +    AC_ARG_ENABLE(openbsdaudio,
    1.11 +[  --enable-openbsdaudio   OpenBSD native audio support [default=no]],
    1.12 +                  , enable_openbsdaudio=no)
    1.13 +    if test x$enable_audio = xyes -a x$enable_openbsdaudio = xyes; then
    1.14 +        SYSTEM_LIBS="$SYSTEM_LIBS $ESD_LIBS"
    1.15 +        AUDIO_SUBDIRS="$AUDIO_SUBDIRS openbsd"
    1.16 +        AUDIO_DRIVERS="$AUDIO_DRIVERS openbsd/libaudio_openbsd.la"
    1.17 +    fi
    1.18 +}
    1.19 +
    1.20  dnl Find the ESD includes and libraries
    1.21  CheckESD()
    1.22  {
    1.23 @@ -1275,7 +1288,6 @@
    1.24          ;;
    1.25      *-*-openbsd*)
    1.26          ARCH=openbsd
    1.27 -        CFLAGS="$CFLAGS -Dunix"
    1.28          CheckDummyVideo
    1.29          CheckNASM
    1.30          CheckOSS
    1.31 @@ -1289,10 +1301,7 @@
    1.32          # Set up files for the main() stub
    1.33          COPY_ARCH_SRC(src/main, linux, SDL_main.c)
    1.34          # Set up files for the audio library
    1.35 -        if test x$enable_audio = xyes; then
    1.36 -            AUDIO_SUBDIRS="$AUDIO_SUBDIRS sun"
    1.37 -            AUDIO_DRIVERS="$AUDIO_DRIVERS sun/libaudio_sun.la"
    1.38 -        fi
    1.39 +        CheckOPENBSDAUDIO
    1.40          # Set up files for the joystick library
    1.41          # (No joystick support yet)
    1.42          if test x$enable_joystick = xyes; then
    1.43 @@ -1322,6 +1331,8 @@
    1.44          if test x$enable_timers = xyes; then
    1.45              COPY_ARCH_SRC(src/timer, linux, SDL_systimer.c)
    1.46          fi
    1.47 +        # OpenBSD does not define "unix"
    1.48 +        CFLAGS="$CFLAGS -Dunix"
    1.49          ;;
    1.50      *-*-sysv5*)
    1.51          ARCH=sysv5
    1.52 @@ -1882,7 +1893,7 @@
    1.53  fi
    1.54  
    1.55  if test $ARCH = openbsd; then
    1.56 -  SDL_RLD_FLAGS="-Wl,-R\${exec_prefix}/lib -Wl,-R\${X11BASE}/lib"
    1.57 +  SDL_RLD_FLAGS="-L${X11BASE}/lib -Wl,-rpath,\${exec_prefix}/lib -Wl,-rpath,${X11BASE}/lib"
    1.58  fi
    1.59  
    1.60  dnl Output the video drivers we use
    1.61 @@ -1947,6 +1958,7 @@
    1.62  src/audio/macrom/Makefile
    1.63  src/audio/nas/Makefile
    1.64  src/audio/nto/Makefile
    1.65 +src/audio/openbsd/Makefile
    1.66  src/audio/paudio/Makefile
    1.67  src/audio/sun/Makefile
    1.68  src/audio/ums/Makefile