This commit is contained in:
parent
8a7169fdca
commit
a4733a8169
27
lirc-configure-libudev.patch
Normal file
27
lirc-configure-libudev.patch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -48,9 +48,9 @@
|
||||||
|
dnl Checks for header files.
|
||||||
|
AC_HEADER_STDC
|
||||||
|
AC_HEADER_TIME
|
||||||
|
-AC_CHECK_HEADERS([fcntl.h limits.h linux/ioctl.h poll.h sys/ioctl.h \
|
||||||
|
- sys/poll.h sys/time.h syslog.h unistd.h util.h \
|
||||||
|
- libutil.h pty.h])
|
||||||
|
+AC_CHECK_HEADERS([fcntl.h libudev.h limits.h linux/ioctl.h poll.h \
|
||||||
|
+ sys/ioctl.h sys/poll.h sys/time.h syslog.h unistd.h \
|
||||||
|
+ util.h libutil.h pty.h])
|
||||||
|
|
||||||
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||||
|
AC_C_CONST
|
||||||
|
@@ -390,6 +390,10 @@
|
||||||
|
AC_DEFINE(HAVE_SYSTEMD)
|
||||||
|
fi
|
||||||
|
|
||||||
|
+PKG_CHECK_MODULES([LIBUDEV],[libudev],,[true])
|
||||||
|
+CFLAGS="$CFLAGS $LIBUDEV_CFLAGS"
|
||||||
|
+LIBS="$LIBS $LIBUDEV_LIBS"
|
||||||
|
+
|
||||||
|
dnl Ubuntu's systemd pkg-config seems broken beyond repair. So:
|
||||||
|
kernelversion=`cat /proc/version || echo "non-linux"`
|
||||||
|
case $kernelversion in
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user