hashmap-test \
querier-test
+if HAVE_NETLINK
+NETLINK = \
+ iface-linux.c iface-linux.h \
+ netlink.c netlink.h
+endif
+
libavahi_core_la_SOURCES = \
timeeventq.c timeeventq.h\
iface.c iface.h \
- iface-linux.c iface-linux.h \
- netlink.c netlink.h \
+ $(NETLINK) \
server.c server.h \
prioq.c prioq.h \
cache.c cache.h\
multicast-lookup.c multicast-lookup.h \
querier.c querier.h
+
libavahi_core_la_CFLAGS = $(AM_CFLAGS)
libavahi_core_la_LIBADD = $(AM_LDADD) ../avahi-common/libavahi-common.la
libavahi_core_la_LDFLAGS = $(AM_LDFLAGS) -export-dynamic -version-info $(LIBAVAHI_CORE_VERSION_INFO)
ACX_PTHREAD(,AC_MSG_ERROR([Missing POSIX Threads support]))
+#
+# Host specific stuffs
+#
+case "$host" in
+ *-netbsd* | *-knetbsd*-gnu)
+ AC_DEFINE([NETBSD],[],[ Support for NetBSD])
+ avahi_platform=netbsd
+ ;;
+ *-openbsd*)
+ AC_DEFINE([OPENBSD],[],[ Support for OpenBSD])
+ avahi_platform=openbsd
+ ;;
+ *-solaris*)
+ AC_DEFINE([SOLARIS],[],[ Support for Sun Solaris])
+ avahi_platform=solaris
+ ;;
+ *-linux*)
+ AC_DEFINE([LINUX],[],[ Support for GNU/Linux])
+ AC_DEFINE([HAVE_NETLINK],[],[ Support for netlink.h])
+ avahi_platform=linux
+ ;;
+ *-freebsd* | *-kfreebsd*-gnu)
+ AC_DEFINE([FREEBSD],[],[ Support for FreeBSD])
+ avahi_platform=freebsd
+ ;;
+ *-apple-darwin*)
+ AC_DEFINE([DARWIN],[],[ Support for AppleDarwin])
+ avahi_platform=darwin
+ ;;
+esac
+
+AM_CONDITIONAL(HAVE_NETLINK, [ test x"$avahi_platform" = xlinux ])
+
#
# Detecting the linux distribution for specific things like init scripts.
#