summaryrefslogtreecommitdiffstats
path: root/acinclude.m4
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-01-13 19:42:51 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-01-13 19:42:51 +0000
commited9fed4f59f37c15ed54347f2ad81e85f0ec9ce1 (patch)
tree3d09dd99f6b755402483401eb58664afd2537ec5 /acinclude.m4
parent857b5c494b814a835973b23932f76d0283a18cc1 (diff)
Add checks for inotify support
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m411
1 files changed, 11 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 4b5b9d0f..14fea03e 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -129,10 +129,16 @@ AC_DEFUN([AC_PATH_EXPAT], [
AC_CHECK_HEADERS(expat.h, dummy=yes, expat_found=no)
])
+AC_DEFUN([AC_PATH_INOTIFY], [
+ AC_CHECK_LIB(c ,inotify_init, inotify_found=yes, inotify_found=no)
+ AC_CHECK_HEADERS(sys/inotify.h, dummy=yes, inotify_found=no)
+])
+
AC_DEFUN([AC_ARG_BLUEZ], [
fortify_enable=yes
debug_enable=no
pie_enable=no
+ inotify_enable=${inotify_found}
expat_enable=${expat_found}
glib_enable=no
obex_enable=${openobex_found}
@@ -177,6 +183,10 @@ AC_DEFUN([AC_ARG_BLUEZ], [
dfutool_enable=${enableval}
])
+ AC_ARG_ENABLE(inotify, AC_HELP_STRING([--enable-inotify], [enable inotify support]), [
+ inotify_enable=${enableval}
+ ])
+
AC_ARG_ENABLE(expat, AC_HELP_STRING([--enable-expat], [enable Expat support]), [
expat_enable=${enableval}
])
@@ -254,6 +264,7 @@ AC_DEFUN([AC_ARG_BLUEZ], [
AC_DEFINE(HAVE_GLIB, 1, [Define to 1 if you have GLib support.])
fi
+ AM_CONDITIONAL(INOTIFY, test "${inotify_enable}" = "yes" && test "${inotify_found}" = "yes")
AM_CONDITIONAL(EXPAT, test "${expat_enable}" = "yes" && test "${expat_found}" = "yes")
AM_CONDITIONAL(GLIB, test "${glib_enable}" = "yes" && test "${glib_found}" = "yes")
AM_CONDITIONAL(OBEX, test "${obex_enable}" = "yes" && test "${openobex_found}" = "yes")