configure.in
changeset 6734 7fdaee2be782
parent 6729 fdaeea9e7567
child 6774 ad8522052ce6
     1.1 --- a/configure.in	Tue Dec 11 11:59:29 2012 -0500
     1.2 +++ b/configure.in	Tue Dec 11 12:07:06 2012 -0500
     1.3 @@ -1667,6 +1667,22 @@
     1.4          fi
     1.5  }
     1.6  
     1.7 +dnl See if the platform offers libudev for device enumeration and hotplugging.
     1.8 +CheckLibUDev()
     1.9 +{
    1.10 +    AC_ARG_ENABLE(libudev,
    1.11 +AC_HELP_STRING([--enable-libudev], [enable libudev support [[default=yes]]]),
    1.12 +                        , enable_libudev=yes)
    1.13 +    if test x$enable_libudev = xyes; then
    1.14 +        AC_CHECK_HEADER(libudev.h,
    1.15 +                        have_libudev_h_hdr=yes,
    1.16 +                        have_libudev_h_hdr=no)
    1.17 +        if test x$have_libudev_h_hdr = xyes; then
    1.18 +            AC_DEFINE(HAVE_LIBUDEV_H, 1, [ ])
    1.19 +        fi
    1.20 +    fi
    1.21 +}
    1.22 +
    1.23  dnl See if we can use the Touchscreen input library
    1.24  CheckTslib()
    1.25  {
    1.26 @@ -2191,6 +2207,7 @@
    1.27          CheckFusionSound
    1.28          CheckOpenGLX11
    1.29          CheckOpenGLESX11
    1.30 +        CheckLibUDev
    1.31          CheckInputEvents
    1.32          CheckTslib
    1.33          CheckUSBHID