https://bugs.freedesktop.org/show_bug.cgi?id=5211 --- Makefile.am +++ Makefile.am @@ -100,95 +100,34 @@ pkgconfigdir = $(libdir)/pkgconfig 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' $< > $@ - -CLEANFILES = avahi-core.pc - 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' $< > $@ - -CLEANFILES += avahi-client.pc - if ENABLE_COMPAT_HOWL - pkgconfig_DATA += avahi-compat-howl.pc - -avahi-compat-howl.pc: avahi-compat-howl.pc.in - sed -e 's,@prefix\@,$(prefix),g' \ - -e 's,@HOWL_COMPAT_VERSION\@,$(HOWL_COMPAT_VERSION),g' $< > $@ - -CLEANFILES += avahi-compat-howl.pc - endif if ENABLE_COMPAT_LIBDNS_SD - pkgconfig_DATA += avahi-compat-libdns_sd.pc - -avahi-compat-libdns_sd.pc: avahi-compat-libdns_sd.pc.in - sed -e 's,@prefix\@,$(prefix),g' \ - -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@ - -CLEANFILES += avahi-compat-libdns_sd.pc - endif if HAVE_MONO - pkgconfig_DATA += avahi-sharp.pc - -avahi-sharp.pc: avahi-sharp.pc.in - sed -e 's,@prefix\@,$(prefix),g' \ - -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \ - -e 's,@libdir\@,$(libdir),g' $< > $@ - -CLEANFILES += avahi-sharp.pc - endif 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' $< > $@ - -CLEANFILES += avahi-glib.pc - endif if HAVE_QT3 - pkgconfig_DATA += avahi-qt3.pc - -avahi-qt3.pc: avahi-qt3.pc.in - sed -e 's,@prefix\@,$(prefix),g' \ - -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@ - -CLEANFILES += avahi-qt3.pc - endif if HAVE_QT4 - pkgconfig_DATA += avahi-qt4.pc - -avahi-qt4.pc: avahi-qt4.pc.in - sed -e 's,@prefix\@,$(prefix),g' \ - -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' $< > $@ - -CLEANFILES += avahi-qt4.pc - endif MOSTLYCLEANFILES = $(DX_CLEANFILES) --- avahi-client.pc.in +++ avahi-client.pc.in @@ -1,7 +1,7 @@ prefix=@prefix@ -exec_prefix=${prefix} -libdir=${exec_prefix}/lib -includedir=${prefix}/include +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ Name: avahi-client Description: Avahi Multicast DNS Responder (Client Support) --- avahi-compat-howl.pc.in +++ avahi-compat-howl.pc.in @@ -1,7 +1,7 @@ prefix=@prefix@ -exec_prefix=${prefix} -libdir=${exec_prefix}/lib -includedir=${prefix}/include/avahi-compat-howl/ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@/avahi-compat-howl Name: avahi-compat-howl Description: Avahi Multicast DNS Responder (HOWL Compatibility) --- avahi-compat-libdns_sd.pc.in +++ avahi-compat-libdns_sd.pc.in @@ -1,7 +1,7 @@ prefix=@prefix@ -exec_prefix=${prefix} -libdir=${exec_prefix}/lib -includedir=${prefix}/include/avahi-compat-libdns_sd/ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@/avahi-compat-libdns_sd Name: avahi-compat-libdns_sd Description: Avahi Multicast DNS Responder (libdns_sd Compatibility) --- avahi-core.pc.in +++ avahi-core.pc.in @@ -1,7 +1,7 @@ prefix=@prefix@ -exec_prefix=${prefix} -libdir=${exec_prefix}/lib -includedir=${prefix}/include +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ Name: avahi-core Description: Avahi Multicast DNS Responder (Embeddable Stack) --- avahi-glib.pc.in +++ avahi-glib.pc.in @@ -1,7 +1,7 @@ prefix=@prefix@ -exec_prefix=${prefix} -libdir=${exec_prefix}/lib -includedir=${prefix}/include +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ Name: avahi-glib Description: Avahi Multicast DNS Responder (GLib Support) --- avahi-qt3.pc.in +++ avahi-qt3.pc.in @@ -1,7 +1,7 @@ prefix=@prefix@ -exec_prefix=${prefix} -libdir=${exec_prefix}/lib -includedir=${prefix}/include +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ Name: avahi-qt3 Description: Avahi Multicast DNS Responder (QT3 Support) --- avahi-qt4.pc.in +++ avahi-qt4.pc.in @@ -1,7 +1,7 @@ prefix=@prefix@ -exec_prefix=${prefix} -libdir=${exec_prefix}/lib -includedir=${prefix}/include +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ Name: avahi-qt4 Description: Avahi Multicast DNS Responder (QT4 Support) --- configure.ac +++ configure.ac @@ -700,6 +700,14 @@ # ========================================================================== AC_CONFIG_FILES([ Makefile +avahi-core.pc +avahi-client.pc +avahi-glib.pc +avahi-qt3.pc +avahi-qt4.pc +avahi-sharp.pc +avahi-compat-libdns_sd.pc +avahi-compat-howl.pc avahi-common/Makefile avahi-core/Makefile avahi-glib/Makefile