lirc-configure-libudev.patch 733 B

1234567891011121314151617181920212223
  1. --- a/configure.ac
  2. +++ b/configure.ac
  3. @@ -48,7 +48,7 @@
  4. dnl Checks for header files.
  5. AC_HEADER_STDC
  6. AC_HEADER_TIME
  7. -AC_CHECK_HEADERS([fcntl.h limits.h poll.h sys/ioctl.h sys/poll.h sys/time.h ])
  8. +AC_CHECK_HEADERS([fcntl.h libudev.h limits.h poll.h sys/ioctl.h sys/poll.h sys/time.h ])
  9. AC_CHECK_HEADERS([syslog.h unistd.h util.h libutil.h pty.h])
  10. dnl Checks for typedefs, structures, and compiler characteristics.
  11. @@ -390,6 +390,10 @@
  12. AC_DEFINE(HAVE_SYSTEMD)
  13. fi
  14. +PKG_CHECK_MODULES([LIBUDEV],[libudev],,[true])
  15. +CFLAGS="$CFLAGS $LIBUDEV_CFLAGS"
  16. +LIBS="$LIBS $LIBUDEV_LIBS"
  17. +
  18. dnl Ubuntu's systemd pkg-config seems broken beyond repair. So:
  19. kernelversion=`cat /proc/version || echo "non-linux"`
  20. case $kernelversion in