configure.in
changeset 7778 a571a9947869
parent 7753 e4c38f17bfad
child 7803 97a1127629fb
     1.1 --- a/configure.in	Thu Oct 03 03:31:05 2013 -0700
     1.2 +++ b/configure.in	Thu Oct 03 10:28:10 2013 -0300
     1.3 @@ -1791,6 +1791,28 @@
     1.4          fi
     1.5  }
     1.6  
     1.7 +dnl See if we can use the kernel kd.h header
     1.8 +CheckInputKD()
     1.9 +{
    1.10 +
    1.11 +    AC_MSG_CHECKING(for Linux kd.h)
    1.12 +    use_input_kd=no
    1.13 +    AC_TRY_COMPILE([
    1.14 +      #include <linux/kd.h>
    1.15 +      #include <linux/keyboard.h>
    1.16 +    ],[
    1.17 +        struct kbentry kbe;
    1.18 +        kbe.kb_table = KG_CTRL;
    1.19 +        ioctl(0, KDGKBENT, &kbe);
    1.20 +    ],[
    1.21 +    use_input_kd=yes
    1.22 +    ])
    1.23 +    AC_MSG_RESULT($use_input_kd)
    1.24 +    if test x$use_input_kd = xyes; then
    1.25 +        AC_DEFINE(SDL_INPUT_LINUXKD, 1, [ ])
    1.26 +    fi
    1.27 +}
    1.28 +
    1.29  dnl See if the platform offers libudev for device enumeration and hotplugging.
    1.30  CheckLibUDev()
    1.31  {
    1.32 @@ -2395,6 +2417,7 @@
    1.33          CheckLibUDev
    1.34          CheckDBus
    1.35          CheckInputEvents
    1.36 +        CheckInputKD
    1.37          CheckTslib
    1.38          CheckUSBHID
    1.39          CheckPTHREAD