From: Sebastien Estienne Date: Mon, 17 Oct 2005 20:41:59 +0000 (+0000) Subject: * autotools magic for PF_ROUTE (not the real thing yet). X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=55f7dcb690bcbdf6bca6568e0d9aacb2456811a5;p=catta * autotools magic for PF_ROUTE (not the real thing yet). git-svn-id: file:///home/lennart/svn/public/avahi/trunk@802 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/avahi-core/Makefile.am b/avahi-core/Makefile.am index 1a78368..95505b8 100644 --- a/avahi-core/Makefile.am +++ b/avahi-core/Makefile.am @@ -80,6 +80,11 @@ if HAVE_NETLINK libavahi_core_la_SOURCES += \ iface-linux.c iface-linux.h \ netlink.c netlink.h +else +if HAVE_PF_ROUTE +libavahi_core_la_SOURCES += \ + iface-pfroute.c iface-pfroute.h +endif endif libavahi_core_la_CFLAGS = $(AM_CFLAGS) diff --git a/avahi-core/iface.h b/avahi-core/iface.h index 76b3540..14d0195 100644 --- a/avahi-core/iface.h +++ b/avahi-core/iface.h @@ -42,6 +42,8 @@ typedef struct AvahiHwInterface AvahiHwInterface; #ifdef HAVE_NETLINK #include "iface-linux.h" +#elif defined(HAVE_PF_ROUTE) +#include "iface-pfroute.h" #else #error "No network configuration notification system available" #endif diff --git a/configure.ac b/configure.ac index 3bcffab..2ed9a8a 100644 --- a/configure.ac +++ b/configure.ac @@ -101,6 +101,19 @@ AC_DEFINE([HAVE_NETLINK],[],[Support for Linux netlink]) AM_CONDITIONAL(HAVE_NETLINK, [ test x"$HAVE_NETLINK" = xyes ]) +# +# Check for net/route.h +# +AC_CHECK_HEADER(net/route.h, +HAVE_PF_ROUTE=yes +AC_DEFINE([HAVE_PF_ROUTE],[],[Support for PF_ROUTE]) +, [], [ +#include +#include +]) + +AM_CONDITIONAL(HAVE_PF_ROUTE, [ test x"$HAVE_PF_ROUTE" = xyes ]) + # # Check for struct ip_mreqn #