From 9ca377e8bc8ef73714180143c24223016acbc845 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 12 Oct 2005 14:46:28 +0000 Subject: [PATCH] add a real check for linux/netlink.h git-svn-id: file:///home/lennart/svn/public/avahi/trunk@739 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- configure.ac | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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. -- 2.39.5