]> git.meshlink.io Git - catta/commitdiff
don't install .pc files unconditionally
authorLennart Poettering <lennart@poettering.net>
Mon, 15 Aug 2005 23:49:17 +0000 (23:49 +0000)
committerLennart Poettering <lennart@poettering.net>
Mon, 15 Aug 2005 23:49:17 +0000 (23:49 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@343 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

Makefile.am

index 719ecade9b384f7d394892b8d77bb22cef6d863a..aa93eeadef397af7937b7d0f73b10a8d917be9d3 100644 (file)
@@ -52,23 +52,31 @@ SUBDIRS = \
        tests
 
 pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = \
-       avahi-core.pc \
-       avahi-client.pc \
-       avahi-glib.pc
+pkgconfig_DATA = avahi-core.pc
 
 avahi-core.pc: avahi-core.pc.in
        sed -e 's,@prefix\@,$(prefix),g' \
            -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
 
+if HAVE_DBUS
+
+pkgconfig_DATA += avahi-client.pc
+
 avahi-client.pc: avahi-client.pc.in
        sed -e 's,@prefix\@,$(prefix),g' \
            -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
 
+endif
+
+if HAVE_GLIB
+
+pkgconfig_DATA += avahi-glib.pc
+
 avahi-glib.pc: avahi-glib.pc.in
        sed -e 's,@prefix\@,$(prefix),g' \
            -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@
 
+endif
 
 MOSTLYCLEANFILES = $(DX_CLEANFILES)