configure.in
changeset 7778 a571a9947869
parent 7753 e4c38f17bfad
child 7803 97a1127629fb
equal deleted inserted replaced
7777:d5489cec371b 7778:a571a9947869
  1787         ])
  1787         ])
  1788         AC_MSG_RESULT($use_input_events)
  1788         AC_MSG_RESULT($use_input_events)
  1789         if test x$use_input_events = xyes; then
  1789         if test x$use_input_events = xyes; then
  1790             AC_DEFINE(SDL_INPUT_LINUXEV, 1, [ ])
  1790             AC_DEFINE(SDL_INPUT_LINUXEV, 1, [ ])
  1791         fi
  1791         fi
       
  1792 }
       
  1793 
       
  1794 dnl See if we can use the kernel kd.h header
       
  1795 CheckInputKD()
       
  1796 {
       
  1797 
       
  1798     AC_MSG_CHECKING(for Linux kd.h)
       
  1799     use_input_kd=no
       
  1800     AC_TRY_COMPILE([
       
  1801       #include <linux/kd.h>
       
  1802       #include <linux/keyboard.h>
       
  1803     ],[
       
  1804         struct kbentry kbe;
       
  1805         kbe.kb_table = KG_CTRL;
       
  1806         ioctl(0, KDGKBENT, &kbe);
       
  1807     ],[
       
  1808     use_input_kd=yes
       
  1809     ])
       
  1810     AC_MSG_RESULT($use_input_kd)
       
  1811     if test x$use_input_kd = xyes; then
       
  1812         AC_DEFINE(SDL_INPUT_LINUXKD, 1, [ ])
       
  1813     fi
  1792 }
  1814 }
  1793 
  1815 
  1794 dnl See if the platform offers libudev for device enumeration and hotplugging.
  1816 dnl See if the platform offers libudev for device enumeration and hotplugging.
  1795 CheckLibUDev()
  1817 CheckLibUDev()
  1796 {
  1818 {
  2393         CheckOpenGLX11
  2415         CheckOpenGLX11
  2394         CheckOpenGLESX11
  2416         CheckOpenGLESX11
  2395         CheckLibUDev
  2417         CheckLibUDev
  2396         CheckDBus
  2418         CheckDBus
  2397         CheckInputEvents
  2419         CheckInputEvents
       
  2420         CheckInputKD
  2398         CheckTslib
  2421         CheckTslib
  2399         CheckUSBHID
  2422         CheckUSBHID
  2400         CheckPTHREAD
  2423         CheckPTHREAD
  2401         CheckClockGettime
  2424         CheckClockGettime
  2402         CheckLinuxVersion
  2425         CheckLinuxVersion