configure.in
changeset 8714 4e57cfd9fca8
parent 8703 0c32452a6141
child 8731 ede9d13dad21
equal deleted inserted replaced
8713:e3a80970cf0b 8714:4e57cfd9fca8
  2137     dnl This is used on Linux for glibc binary compatibility (Doh!)
  2137     dnl This is used on Linux for glibc binary compatibility (Doh!)
  2138     AC_ARG_ENABLE(pthread-sem,
  2138     AC_ARG_ENABLE(pthread-sem,
  2139 AC_HELP_STRING([--enable-pthread-sem], [use pthread semaphores [[default=yes]]]),
  2139 AC_HELP_STRING([--enable-pthread-sem], [use pthread semaphores [[default=yes]]]),
  2140                   , enable_pthread_sem=yes)
  2140                   , enable_pthread_sem=yes)
  2141     case "$host" in
  2141     case "$host" in
       
  2142 	 *-*-androideabi*)
       
  2143             pthread_cflags="-D_REENTRANT -D_THREAD_SAFE"
       
  2144             pthread_lib=""
       
  2145 	    ;;
  2142         *-*-linux*|*-*-uclinux*)
  2146         *-*-linux*|*-*-uclinux*)
  2143             pthread_cflags="-D_REENTRANT"
  2147             pthread_cflags="-D_REENTRANT"
  2144             pthread_lib="-lpthread"
  2148             pthread_lib="-lpthread"
  2145             ;;
  2149             ;;
  2146         *-*-bsdi*)
  2150         *-*-bsdi*)
  2640                 if test x$enable_video = xyes; then
  2644                 if test x$enable_video = xyes; then
  2641                     SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  2645                     SOURCES="$SOURCES $srcdir/src/video/raspberry/*.c"
  2642                     $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  2646                     $as_echo "#define SDL_VIDEO_DRIVER_RPI 1" >>confdefs.h
  2643                 fi
  2647                 fi
  2644                 ;;
  2648                 ;;
       
  2649             *-*-androideabi*)
       
  2650                 # Android
       
  2651                 ARCH=android
       
  2652                 ANDROID_CFLAGS="-DGL_GLEXT_PROTOTYPES"
       
  2653                 CFLAGS="$CFLAGS $ANDROID_CFLAGS"
       
  2654                 SDL_CFLAGS="$SDL_CFLAGS $ANDROID_CFLAGS"
       
  2655                 EXTRA_CFLAGS="$EXTRA_CFLAGS $ANDROID_CFLAGS"
       
  2656                 EXTRA_LDFLAGS="$EXTRA_LDFLAGS -ldl -lGLESv1_CM -lGLESv2 -llog -landroid"
       
  2657 
       
  2658                 if test x$enable_video = xyes; then
       
  2659                     SOURCES="$SOURCES $srcdir/src/core/android/*.c $srcdir/src/video/android/*.c"
       
  2660                     $as_echo "#define SDL_VIDEO_DRIVER_ANDROID 1" >>confdefs.h
       
  2661                 fi
       
  2662                 ;;
  2645             *-*-linux*)         ARCH=linux ;;
  2663             *-*-linux*)         ARCH=linux ;;
  2646             *-*-uclinux*)       ARCH=linux ;;
  2664             *-*-uclinux*)       ARCH=linux ;;
  2647             *-*-kfreebsd*-gnu)  ARCH=kfreebsd-gnu ;;
  2665             *-*-kfreebsd*-gnu)  ARCH=kfreebsd-gnu ;;
  2648             *-*-knetbsd*-gnu)   ARCH=knetbsd-gnu ;;
  2666             *-*-knetbsd*-gnu)   ARCH=knetbsd-gnu ;;
  2649             *-*-kopenbsd*-gnu)  ARCH=kopenbsd-gnu ;;
  2667             *-*-kopenbsd*-gnu)  ARCH=kopenbsd-gnu ;;
  2704             aix)
  2722             aix)
  2705                 AC_DEFINE(SDL_AUDIO_DRIVER_PAUDIO, 1, [ ])
  2723                 AC_DEFINE(SDL_AUDIO_DRIVER_PAUDIO, 1, [ ])
  2706                 SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  2724                 SOURCES="$SOURCES $srcdir/src/audio/paudio/*.c"
  2707                 have_audio=yes
  2725                 have_audio=yes
  2708             ;;
  2726             ;;
       
  2727             android)
       
  2728                 AC_DEFINE(SDL_AUDIO_DRIVER_ANDROID, 1, [ ])
       
  2729                 SOURCES="$SOURCES $srcdir/src/audio/android/*.c"
       
  2730                 have_audio=yes
       
  2731             ;;
  2709           esac
  2732           esac
  2710         fi
  2733         fi
  2711         # Set up files for the joystick library
  2734         # Set up files for the joystick library
  2712         if test x$enable_joystick = xyes; then
  2735         if test x$enable_joystick = xyes; then
  2713           case $ARCH in
  2736           case $ARCH in
  2714             linux)
  2737             linux)
  2715                 AC_DEFINE(SDL_JOYSTICK_LINUX, 1, [ ])
  2738                 AC_DEFINE(SDL_JOYSTICK_LINUX, 1, [ ])
  2716                 SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
  2739                 SOURCES="$SOURCES $srcdir/src/joystick/linux/*.c"
       
  2740                 have_joystick=yes
       
  2741             ;;
       
  2742             android)
       
  2743                 AC_DEFINE(SDL_JOYSTICK_ANDROID, 1, [ ])
       
  2744                 SOURCES="$SOURCES $srcdir/src/joystick/android/*.c"
  2717                 have_joystick=yes
  2745                 have_joystick=yes
  2718             ;;
  2746             ;;
  2719           esac
  2747           esac
  2720         fi
  2748         fi
  2721         # Set up files for the haptic library
  2749         # Set up files for the haptic library
  2734         if test x$enable_power = xyes; then
  2762         if test x$enable_power = xyes; then
  2735              case $ARCH in
  2763              case $ARCH in
  2736                linux)
  2764                linux)
  2737                    AC_DEFINE(SDL_POWER_LINUX, 1, [ ])
  2765                    AC_DEFINE(SDL_POWER_LINUX, 1, [ ])
  2738                    SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
  2766                    SOURCES="$SOURCES $srcdir/src/power/linux/*.c"
       
  2767                    have_power=yes
       
  2768                ;;
       
  2769                android)
       
  2770                    AC_DEFINE(SDL_POWER_ANDROID, 1, [ ])
       
  2771                    SOURCES="$SOURCES $srcdir/src/power/android/*.c"
  2739                    have_power=yes
  2772                    have_power=yes
  2740                ;;
  2773                ;;
  2741              esac
  2774              esac
  2742         fi
  2775         fi
  2743         # Set up files for the filesystem library
  2776         # Set up files for the filesystem library