diff options
author | Lennart Poettering <lennart@poettering.net> | 2006-09-21 00:18:11 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2006-09-21 00:18:11 +0000 |
commit | 6014a9885431654d03484ae5ed0aded7268adfeb (patch) | |
tree | b6a8c088aefaed1b5531a59fe92f168c78b32301 /configure.ac | |
parent | 1411a742fadc5de81fde4677ec16aae41f9e3b72 (diff) |
Fix build on NetBSD. Patch contributed by Daniel S. Haischt (closes #59)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1328 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index ea6ef45..0acb7dc 100644 --- a/configure.ac +++ b/configure.ac @@ -104,11 +104,27 @@ AC_DEFINE([HAVE_SYS_SYSCTL_H],[],[Support for sys/sysctl.h]) , [], [ #include <sys/types.h> #include <sys/socket.h> +#include <sys/param.h> ]) AM_CONDITIONAL(HAVE_SYS_SYSCTL_H, [ test x"$HAVE_SYS_SYSCTL_H" = xyes ]) # +# Check for lifconf struct; only present on Solaris +# +AC_MSG_CHECKING(for struct lifconf) +AC_CACHE_VAL(avahi_cv_has_struct_lifconf, +[AC_TRY_COMPILE( +[#include <sys/socket.h> +#include <net/if.h> +],[sizeof (struct lifconf);], +avahi_cv_has_struct_lifconf=yes,avahi_cv_has_struct_lifconf=no)]) +AC_MSG_RESULT($avahi_cv_has_struct_lifconf) +if test $avahi_cv_has_struct_lifconf = yes; then + AC_DEFINE(HAVE_STRUCT_LIFCONF,1,[Define if there is a struct lifconf.]) +fi + +# # Check for struct ip_mreqn # AC_MSG_CHECKING(for struct ip_mreqn) |