configure.ac
changeset 13655 99fb2d227d8a
parent 13653 7393d75c764e
child 13657 3c2eaf481522
     1.1 --- a/configure.ac	Fri Mar 20 19:49:15 2020 -0700
     1.2 +++ b/configure.ac	Fri Mar 20 19:49:19 2020 -0700
     1.3 @@ -3291,6 +3291,10 @@
     1.4          *-*-*bsd* )
     1.5              onlylibusb=yes
     1.6              ;;
     1.7 +        # RAWINPUT is only available on Win32, but can be enabled if HIDAPI is
     1.8 +        *-*-cygwin* | *-*-mingw32*)
     1.9 +            userawinput=yes
    1.10 +            ;;
    1.11      esac
    1.12  
    1.13      AC_ARG_ENABLE(hidapi,
    1.14 @@ -3316,7 +3320,9 @@
    1.15  
    1.16          if test x$hidapi_support = xyes; then
    1.17              AC_DEFINE(SDL_JOYSTICK_HIDAPI, 1, [ ])
    1.18 -            AC_DEFINE(SDL_JOYSTICK_RAWINPUT, 1, [ ])
    1.19 +            if test x$userawinput = xyes; then
    1.20 +                AC_DEFINE(SDL_JOYSTICK_RAWINPUT, 1, [ ])
    1.21 +            fi
    1.22              EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
    1.23              SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
    1.24              SOURCES="$SOURCES $srcdir/src/hidapi/SDL_hidapi.c"