configure
changeset 7778 a571a9947869
parent 7753 e4c38f17bfad
child 7803 97a1127629fb
     1.1 --- a/configure	Thu Oct 03 03:31:05 2013 -0700
     1.2 +++ b/configure	Thu Oct 03 10:28:10 2013 -0300
     1.3 @@ -20754,6 +20754,45 @@
     1.4          fi
     1.5  }
     1.6  
     1.7 +CheckInputKD()
     1.8 +{
     1.9 +
    1.10 +    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Linux kd.h" >&5
    1.11 +$as_echo_n "checking for Linux kd.h... " >&6; }
    1.12 +    use_input_kd=no
    1.13 +    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
    1.14 +/* end confdefs.h.  */
    1.15 +
    1.16 +      #include <linux/kd.h>
    1.17 +      #include <linux/keyboard.h>
    1.18 +
    1.19 +int
    1.20 +main ()
    1.21 +{
    1.22 +
    1.23 +        struct kbentry kbe;
    1.24 +        kbe.kb_table = KG_CTRL;
    1.25 +        ioctl(0, KDGKBENT, &kbe);
    1.26 +
    1.27 +  ;
    1.28 +  return 0;
    1.29 +}
    1.30 +_ACEOF
    1.31 +if ac_fn_c_try_compile "$LINENO"; then :
    1.32 +
    1.33 +    use_input_kd=yes
    1.34 +
    1.35 +fi
    1.36 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
    1.37 +    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_input_kd" >&5
    1.38 +$as_echo "$use_input_kd" >&6; }
    1.39 +    if test x$use_input_kd = xyes; then
    1.40 +
    1.41 +$as_echo "#define SDL_INPUT_LINUXKD 1" >>confdefs.h
    1.42 +
    1.43 +    fi
    1.44 +}
    1.45 +
    1.46  CheckLibUDev()
    1.47  {
    1.48      # Check whether --enable-libudev was given.
    1.49 @@ -22080,6 +22119,7 @@
    1.50          CheckLibUDev
    1.51          CheckDBus
    1.52          CheckInputEvents
    1.53 +        CheckInputKD
    1.54          CheckTslib
    1.55          CheckUSBHID
    1.56          CheckPTHREAD