From: Lennart Poettering Date: Wed, 12 Oct 2005 14:46:28 +0000 (+0000) Subject: add a real check for linux/netlink.h X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=9ca377e8bc8ef73714180143c24223016acbc845;p=catta add a real check for linux/netlink.h git-svn-id: file:///home/lennart/svn/public/avahi/trunk@739 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/configure.ac b/configure.ac index 8db8c53..ba369a1 100644 --- a/configure.ac +++ b/configure.ac @@ -74,7 +74,6 @@ case "$host" in ;; *-linux*) AC_DEFINE([LINUX],[],[ Support for GNU/Linux]) - AC_DEFINE([HAVE_NETLINK],[],[ Support for netlink.h]) avahi_platform=linux ;; *-freebsd* | *-kfreebsd*-gnu) @@ -87,7 +86,15 @@ case "$host" in ;; esac -AM_CONDITIONAL(HAVE_NETLINK, [ test x"$avahi_platform" = xlinux ]) +AC_CHECK_HEADER(linux/netlink.h, +HAVE_NETLINK=yes +AC_DEFINE([HAVE_NETLINK],[],[Support for Linux netlink]) +, [], [ +#include +#include +]) + +AM_CONDITIONAL(HAVE_NETLINK, [ test x"$HAVE_NETLINK" = xyes ]) # # Detecting the linux distribution for specific things like init scripts.