Check for inotify header files and library support
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 22 Apr 2009 23:08:52 +0000 (00:08 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 22 Apr 2009 23:08:52 +0000 (00:08 +0100)
configure.ac

index ba28251..daa40c3 100644 (file)
@@ -149,6 +149,12 @@ if (test "${enable_ppp}" = "yes" || test "${enable_novatel}" = "yes" ||
 fi
 AM_CONDITIONAL(PPPD, test "${enable_ppp}" = "yes")
 
+AC_CHECK_HEADERS(sys/inotify.h, dummy=yes,
+                       AC_MSG_ERROR(inotify header files are required))
+
+AC_CHECK_LIB(c, inotify_init, dummy=yes,
+                       AC_MSG_ERROR(inotify library support is required))
+
 AC_CHECK_LIB(dl, dlopen, dummy=yes,
                        AC_MSG_ERROR(dynamic linking loader is required))