AM_CFLAGS+='-DDEBUG_TRAP=__asm__("int $$3")'
if HAVE_DBUS
+if ENABLE_COMPAT_LIBDNS_SD
avahi_compat_libdns_sddir=$(includedir)/avahi-compat-libdns_sd
lib_LTLIBRARIES = libavahi-compat-libdns_sd.la
+if ENABLE_TESTS
noinst_PROGRAMS = txt-test
+endif
libavahi_compat_libdns_sd_la_SOURCES = \
dns_sd.h \
txt-test.c \
warn.c warn.h
txt_test_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS)
-txt_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la
+txt_test_LDADD = $(AM_LDADD) $(PTHREAD_LIBS) ../avahi-common/libavahi-common.la
# You can test the compatibility layer by sticking in mDNSResponder's
# dns-sd.c source here, naming it "libdns_sd-test.c" and running "make
CLEANFILES = libdns_sd-test.o libdns_sd-test
endif
+endif