summaryrefslogtreecommitdiffstats
path: root/patches/inotify-tools-3.13/inotify-tools-3.13-configure-compile_ifelse.diff
diff options
context:
space:
mode:
Diffstat (limited to 'patches/inotify-tools-3.13/inotify-tools-3.13-configure-compile_ifelse.diff')
-rw-r--r--patches/inotify-tools-3.13/inotify-tools-3.13-configure-compile_ifelse.diff25
1 files changed, 25 insertions, 0 deletions
diff --git a/patches/inotify-tools-3.13/inotify-tools-3.13-configure-compile_ifelse.diff b/patches/inotify-tools-3.13/inotify-tools-3.13-configure-compile_ifelse.diff
new file mode 100644
index 000000000..01f011cb1
--- /dev/null
+++ b/patches/inotify-tools-3.13/inotify-tools-3.13-configure-compile_ifelse.diff
@@ -0,0 +1,25 @@
+From: Marc Kleine-Budde <mkl@pengutronix.de>
+Subject: use AC_COMPILE_IFELSE instead of AC_RUN_IFELSE to check for sys/inotify.h
+
+Without this patch cross compiling inotify-tools doesn't work
+out of the box, because running a cross compiled programm is not
+possible. This patch uses the AC_COMPILE_IFELSE instead.
+
+Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Index: inotify-tools-3.13/configure.ac
+===================================================================
+--- inotify-tools-3.13.orig/configure.ac
++++ inotify-tools-3.13/configure.ac
+@@ -45,7 +45,7 @@ AM_CONDITIONAL([DOXYGEN_ENABLE], test x$
+ AC_CHECK_HEADERS([sys/inotify.h mcheck.h])
+ AC_LANG(C)
+ AC_MSG_CHECKING([whether sys/inotify.h actually works])
+-AC_RUN_IFELSE(
++AC_COMPILE_IFELSE(
+ AC_LANG_PROGRAM([[#include <sys/inotify.h>]],
+ [[return (-1 == inotify_init());]]
+ ),