From: Lennart Poettering Date: Wed, 1 Mar 2006 23:51:22 +0000 (+0000) Subject: fix compilation if DBUS is disabled (closes: #15) X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=928fae5687f947f0f1eadb994ef29a39d09bbf7c;p=catta fix compilation if DBUS is disabled (closes: #15) git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1165 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/avahi-daemon/Makefile.am b/avahi-daemon/Makefile.am index 3fa4280..15cbb57 100644 --- a/avahi-daemon/Makefile.am +++ b/avahi-daemon/Makefile.am @@ -85,6 +85,10 @@ avahi_daemon_LDADD += -lcap endif +if HAVE_DLOPEN +avahi_daemon_LDADD += -ldl +endif + if HAVE_DBUS dbusservicedir=$(DBUS_SYS_DIR) @@ -110,10 +114,6 @@ avahi_daemon_SOURCES += \ avahi_daemon_LDADD += \ $(DBUS_LIBS) -if HAVE_DLOPEN -avahi_daemon_LDADD += -ldl -endif - avahi_daemon_CFLAGS += $(DBUS_CFLAGS) dbusservice_DATA = avahi-dbus.conf