]> git.meshlink.io Git - catta/blobdiff - configure.ac
Document in avahi_entry_group_add_service() that Avahi service names need to be short...
[catta] / configure.ac
index 8352d1b594b5ac8bd49680b8a4cce0ff66842def..a54e02cb21c93cda971c5fc957ed219de41cf601 100644 (file)
@@ -341,7 +341,7 @@ AC_HEADER_SYS_WAIT
  # Solaris stuff 
  AC_SEARCH_LIBS([inet_ntop],[nsl]) 
  AC_SEARCH_LIBS([recv],[socket]) 
- AC_CHECK_DECL([CMSG_SPACE],,CFLAGS="$CFLAGS -D_XOPEN_SOURCE=600 -D__EXTENSIONS__") 
+ AC_CHECK_DECL([CMSG_SPACE],,CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500 -D__EXTENSIONS__") 
 
 # Checks for library functions.
 AC_FUNC_MEMCMP
@@ -384,6 +384,15 @@ if test "x$have_inotify" = "xyes" ; then
    AC_DEFINE([HAVE_INOTIFY], 1, [Enable Linux inotify() usage])
 fi
 
+have_kqueue=yes
+AC_CHECK_FUNCS([kqueue],,have_kqueue=no)
+
+AM_CONDITIONAL(HAVE_KQUEUE, test "x$have_kqueue" = "xyes")
+
+if test "x$have_kqueue" = "xyes" ; then
+    AC_DEFINE([HAVE_KQUEUE], 1, [Enable BSD kqueue() usage])
+fi
+
 # Check for pkg-config manually first, as if its not installed the
 # PKG_PROG_PKG_CONFIG macro won't be defined.
 AC_CHECK_PROG(have_pkg_config, pkg-config, yes, no)