mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 02:50:41 -05:00
configure: Check for XInput2
This commit is contained in:
parent
47b432bf89
commit
684d40d1a1
26
configure.in
26
configure.in
@ -238,6 +238,31 @@ if test x$have_xcursor = xyes; then
|
|||||||
AC_DEFINE(HAVE_XCURSOR, , [Building with Xcursor support])
|
AC_DEFINE(HAVE_XCURSOR, , [Building with Xcursor support])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
XINPUT2_VERSION=1.4.0
|
||||||
|
|
||||||
|
AC_ARG_ENABLE(xinput2,
|
||||||
|
AC_HELP_STRING([--disable-xinput2],
|
||||||
|
[disable XInput2 usage]),,
|
||||||
|
enable_xinput2=yes)
|
||||||
|
|
||||||
|
if test x$enable_xinput2 = xyes; then
|
||||||
|
AC_MSG_CHECKING([XInput2])
|
||||||
|
if $PKG_CONFIG --atleast-version $XINPUT2_VERSION xi; then
|
||||||
|
have_xinput2=yes
|
||||||
|
else
|
||||||
|
have_xinput2=no
|
||||||
|
fi
|
||||||
|
AC_MSG_RESULT($have_xinput2)
|
||||||
|
else
|
||||||
|
have_xinput2=no
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test x$have_xinput2 = xyes; then
|
||||||
|
echo "Building with XInput2"
|
||||||
|
MUTTER_PC_MODULES="$MUTTER_PC_MODULES xi"
|
||||||
|
AC_DEFINE(HAVE_XINPUT2, , [Building with XInput2 support])
|
||||||
|
fi
|
||||||
|
|
||||||
PKG_CHECK_MODULES(MUTTER, $MUTTER_PC_MODULES)
|
PKG_CHECK_MODULES(MUTTER, $MUTTER_PC_MODULES)
|
||||||
|
|
||||||
AC_PATH_XTRA
|
AC_PATH_XTRA
|
||||||
@ -557,6 +582,7 @@ mutter-$VERSION
|
|||||||
Shape extension: ${found_shape}
|
Shape extension: ${found_shape}
|
||||||
Xsync: ${found_xsync}
|
Xsync: ${found_xsync}
|
||||||
Xcursor: ${have_xcursor}
|
Xcursor: ${have_xcursor}
|
||||||
|
XInput2: ${have_xinput2}
|
||||||
"
|
"
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user