autotools: fix linux joystick breakage after commit 221d6ea8a8

Fixes https://github.com/libsdl-org/SDL/issues/8488
This commit is contained in:
Ozkan Sezer committed 2023-11-06 23:25:58 +03:00
1 parent 065d80716b
commit 7555701def
2 files changed
+10 -4

No files matched your search

Vendored
+8 -3
View File
@@ -26399,6 +26399,14 @@ printf "%s\n" "#define SDL_VIDEO_VULKAN 1" >>confdefs.h
CheckInputEvents()
{
ac_fn_c_check_header_compile "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
if test "x$ac_cv_header_linux_input_h" = xyes
then :
printf "%s\n" "#define HAVE_LINUX_INPUT_H 1" >>confdefs.h
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Linux 2.4 unified input interface" >&5
printf %s "checking for Linux 2.4 unified input interface... " >&6; }
use_input_events=no
@@ -26428,9 +26436,6 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
printf "%s\n" "$use_input_events" >&6; }
if test x$use_input_events = xyes; then
printf "%s\n" "#define HAVE_LINUX_INPUT_H 1" >>confdefs.h
printf "%s\n" "#define SDL_INPUT_LINUXEV 1" >>confdefs.h
SUMMARY_input="${SUMMARY_input} linuxev"