configure.in
changeset 12131 9601849b3079
parent 12130 24142c5073a4
child 12155 751cdc74d55c
     1.1 --- a/configure.in	Tue Aug 21 12:11:34 2018 -0700
     1.2 +++ b/configure.in	Tue Aug 21 13:29:21 2018 -0700
     1.3 @@ -3503,6 +3503,16 @@
     1.4              ;;
     1.5            esac
     1.6          fi
     1.7 +        # Set up files for the sensor library
     1.8 +        if test x$enable_sensor = xyes; then
     1.9 +          case $ARCH in
    1.10 +            android)
    1.11 +                AC_DEFINE(SDL_SENSOR_ANDROID, 1, [ ])
    1.12 +                SOURCES="$SOURCES $srcdir/src/sensor/android/*.c"
    1.13 +                have_sensor=yes
    1.14 +            ;;
    1.15 +          esac
    1.16 +        fi
    1.17          # Set up files for the power library
    1.18          if test x$enable_power = xyes; then
    1.19               case $ARCH in
    1.20 @@ -3998,6 +4008,12 @@
    1.21      fi
    1.22      SOURCES="$SOURCES $srcdir/src/haptic/dummy/*.c"
    1.23  fi
    1.24 +if test x$have_sensor != xyes; then
    1.25 +    if test x$enable_sensor = xyes; then
    1.26 +        AC_DEFINE(SDL_SENSOR_DISABLED, 1, [ ])
    1.27 +    fi
    1.28 +    SOURCES="$SOURCES $srcdir/src/sensor/dummy/*.c"
    1.29 +fi
    1.30  if test x$have_threads != xyes; then
    1.31      if test x$enable_threads = xyes; then
    1.32          AC_DEFINE(SDL_THREADS_DISABLED, 1, [ ])