configure.in
changeset 3199 3e1bf2b8bd81
parent 3180 77d6336711fc
child 3214 5625ba0a1e25
     1.1 --- a/configure.in	Wed Jun 17 04:26:19 2009 +0000
     1.2 +++ b/configure.in	Wed Jun 24 20:04:08 2009 +0000
     1.3 @@ -217,6 +217,12 @@
     1.4  
     1.5  dnl Enable/disable various subsystems of the SDL library
     1.6  
     1.7 +AC_ARG_ENABLE(atomic,
     1.8 +AC_HELP_STRING([--enable-atomic], [Enable the atomic operations subsystem [[default=yes]]]),
     1.9 +              , enable_atomic=yes)
    1.10 +if test x$enable_atomic != xyes; then
    1.11 +    AC_DEFINE(SDL_ATOMIC_DISABLED)
    1.12 +fi
    1.13  AC_ARG_ENABLE(audio,
    1.14  AC_HELP_STRING([--enable-audio], [Enable the audio subsystem [[default=yes]]]),
    1.15                , enable_audio=yes)
    1.16 @@ -2433,6 +2439,16 @@
    1.17              ;;
    1.18            esac
    1.19          fi
    1.20 +        # Set up files for the atomic operations library
    1.21 +        if test x$enable_atomic = xyes; then
    1.22 +          case $ARCH in
    1.23 +            linux)
    1.24 +                AC_DEFINE(SDL_ATOMIC_LINUX)
    1.25 +                SOURCES="$SOURCES $srcdir/src/atomic/linux/*.c"
    1.26 +                have_atomic=yes
    1.27 +            ;;
    1.28 +          esac
    1.29 +        fi
    1.30          # Set up files for the joystick library
    1.31          if test x$enable_joystick = xyes; then
    1.32            case $ARCH in