We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4655

Summary: evdev is available on FreeBSD, check in 'configure' limited to Linux
Product: SDL Reporter: Jan Martin Mikkelsen <janm>
Component: buildAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.9   
Hardware: x86   
OS: FreeBSD   

Description Jan Martin Mikkelsen 2019-06-05 13:04:55 UTC
Hi,

The evdev interface is available on FreeBSD, with the xf86-input-evdev for include files in /usr/local/include/linux, so <linux/input.h> works, or when build with the native evdev option, where <dev/evdev/input.h> is available.

This change to the distribution configure script handles the first case.

diff -dur SDL2-2.0.9.orig/configure SDL2-2.0.9/configure
--- SDL2-2.0.9.orig/configure   2018-10-31 16:07:22.000000000 +0100
+++ SDL2-2.0.9/configure        2019-05-29 18:31:12.865491000 +0200
@@ -24058,9 +24062,9 @@
         CheckIME
         CheckIBus
         CheckFcitx
+        CheckInputEvents
         case $ARCH in
           linux)
-              CheckInputEvents
               CheckInputKD
           ;;
         esac
Comment 1 Sam Lantinga 2019-06-05 19:04:02 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/0fa532733f3f