configure
changeset 12244 63282fe5089e
parent 12229 2fb171be56e0
child 12245 0c1c3e41a6f2
     1.1 --- a/configure	Thu Sep 27 23:54:40 2018 -0700
     1.2 +++ b/configure	Fri Sep 28 00:40:35 2018 -0700
     1.3 @@ -24299,6 +24299,13 @@
     1.4              SOURCES="$SOURCES $srcdir/src/joystick/windows/*.c"
     1.5              have_joystick=yes
     1.6          fi
     1.7 +        if test x$enable_joystick = xyes -a x$enable_hidapi = xyes; then
     1.8 +
     1.9 +$as_echo "#define SDL_JOYSTICK_HIDAPI 1" >>confdefs.h
    1.10 +
    1.11 +            EXTRA_CFLAGS="$EXTRA_CFLAGS -I$srcdir/src/hidapi/hidapi"
    1.12 +            SOURCES="$SOURCES $srcdir/src/joystick/hidapi/*.c"
    1.13 +        fi
    1.14          if test x$enable_haptic = xyes; then
    1.15              if test x$have_dinput = xyes -o x$have_xinput = xyes; then
    1.16                  if test x$have_xinput = xyes; then