Build-Use-HAVE_UINPUT-1-to-force-building-uinput-cod.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. From 0463f56357d1dd223a4d2882dbc460a0a7a7e9ad Mon Sep 17 00:00:00 2001
  2. From: Alec Leamas <leamas.alec@gmail.com>
  3. Date: Sat, 29 Oct 2016 11:06:50 +0200
  4. Subject: [PATCH 07/10] Build: Use HAVE_UINPUT=1 to force building uinput code
  5. (#238).
  6. ---
  7. configure.ac | 7 ++++++-
  8. 1 file changed, 6 insertions(+), 1 deletion(-)
  9. diff --git a/configure.ac b/configure.ac
  10. index cde9813..08e2c8e 100644
  11. --- a/configure.ac
  12. +++ b/configure.ac
  13. @@ -33,7 +33,7 @@ if test x$XSLTPROC != "xyes"; then
  14. AC_MSG_ERROR([
  15. xsltproc is required to build. It usually comes with libxml])
  16. fi
  17. -AM_CONDITIONAL(HAVE_UINPUT, test -e /dev/uinput)
  18. +AM_CONDITIONAL(HAVE_UINPUT, test -n "$HAVE_UINPUT" -o -e /dev/uinput)
  19. AC_CHECK_PROG([MAN2HTML],[man2html],[yes],[no])
  20. AM_CONDITIONAL(HAVE_MAN2HTML, test x$MAN2HTML = xyes)
  21. AC_CHECK_PROG([DOXYGEN],[doxygen],[yes],[no])
  22. @@ -446,6 +446,11 @@ AM_CONDITIONAL(NEED_PYTHON3, [test "x$enable_python3_fix" = "xyes"])
  23. AC_ARG_VAR(HAVE_WORKING_POLL,[
  24. On cross-compile: Target has a working poll(2) implementation])
  25. +AC_ARG_VAR(HAVE_UINPUT,[
  26. + If not-empty, assume uinput is available despite missing /dev/uinput
  27. +])
  28. +
  29. +
  30. suffix=$(echo "$VERSION" | sed 's/.*-//')
  31. AM_CONDITIONAL(DEVEL, [test x$suffix = xdevel])
  32. --