]> git.meshlink.io Git - catta/commitdiff
* autotools magic for PF_ROUTE (not the real thing yet).
authorSebastien Estienne <sebastien.estienne@gmail.com>
Mon, 17 Oct 2005 20:41:59 +0000 (20:41 +0000)
committerSebastien Estienne <sebastien.estienne@gmail.com>
Mon, 17 Oct 2005 20:41:59 +0000 (20:41 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@802 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-core/Makefile.am
avahi-core/iface.h
configure.ac

index 1a78368c2c5beecd1ed99bdf8761ec6d8cdf0b7f..95505b8991b52342c196817a97ac5a8f84976c72 100644 (file)
@@ -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)
index 76b3540c0ebe5e6fe7439411be605a60cb699c4c..14d0195acee1b6f4cf49874ab0ee0560f51d7037 100644 (file)
@@ -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
index 3bcffabe06959d656062a0505523753f048c47bf..2ed9a8a1e7df62f528590c25d4afc6403f674963 100644 (file)
@@ -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 <sys/types.h>
+#include <sys/socket.h>
+])
+
+AM_CONDITIONAL(HAVE_PF_ROUTE, [ test x"$HAVE_PF_ROUTE" = xyes ])
+
 #
 # Check for struct ip_mreqn
 #