On 05/31/11 04:13, Andrew Beekhof wrote: > On Mon, May 30, 2011 at 2:23 PM, Gao,Yan <y...@novell.com> wrote: >> On 05/30/11 17:31, Andrew Beekhof wrote: >>> It used to be in crm_config.h but I had to remove it because it >>> interfered with multilib (not that I've ever seen anyone make use of >>> that particular feature). >> Mgmtd uses it for invoking pengine/crmd to retrieve the metadata. Is >> there a replacement of it? I don't seem to find one. > > You can now use pkg-config. We supply the .pc files Fine! How about to install the pc files like the attached?
Regards, Yan -- Gao,Yan <y...@novell.com> Software Engineer China Server Team, SUSE.
# HG changeset patch # User Gao,Yan <y...@novell.com> # Date 1306831076 -28800 # Node ID c86cb93c5a57c1f507a21be69d24fd28dee85397 # Parent e872eeb39a5f6e1fdb57c3108551a5353648c4f4 Low: Build: Install pkg-config files diff -r e872eeb39a5f -r c86cb93c5a57 lib/Makefile.am --- a/lib/Makefile.am Fri May 06 11:01:44 2011 +0200 +++ b/lib/Makefile.am Tue May 31 16:37:56 2011 +0800 @@ -17,6 +17,27 @@ # MAINTAINERCLEANFILES = Makefile.in +EXTRA_DIST = pcmk.pc.in pcmk-cib.pc.in pcmk-pe.pc.in + +LIBS = cib pe + +target_LIBS = $(LIBS:%=pcmk-%.pc) + +target_PACKAGE = pcmk.pc + +all-local: $(target_LIBS) $(target_PACKAGE) + +install-exec-local: $(target_LIBS) $(target_PACKAGE) + $(INSTALL) -d $(DESTDIR)/$(libdir)/pkgconfig + $(INSTALL) -m 644 $(target_LIBS) $(target_PACKAGE) $(DESTDIR)/$(libdir)/pkgconfig + +uninstall-local: + cd $(DESTDIR)/$(libdir)/pkgconfig && rm -f $(target_LIBS) $(target_PACKAGE) + rmdir $(DESTDIR)/$(libdir)/pkgconfig 2> /dev/null || : + +clean-local: + rm -f *.pc + ## Subdirectories... SUBDIRS = common pengine transition cib fencing plugins DIST_SUBDIRS = $(SUBDIRS) ais diff -r e872eeb39a5f -r c86cb93c5a57 pacemaker.spec.in --- a/pacemaker.spec.in Fri May 06 11:01:44 2011 +0200 +++ b/pacemaker.spec.in Tue May 31 16:37:56 2011 +0800 @@ -158,6 +158,7 @@ License: GPLv2+ and LGPLv2+ Summary: Pacemaker development package Group: Development/Libraries Requires: pacemaker-libs = %{version}-%{release} +Requires: pkgconfig Requires: cluster-glue-libs-devel Requires: libxml2-devel libxslt-devel bzip2-devel glib2-devel %if %{with ais} @@ -374,6 +375,7 @@ fi %dir %{_var}/lib/pacemaker %{_var}/lib/pacemaker %endif +%{_libdir}/pkgconfig/*.pc %doc COPYING.LIB %doc AUTHORS
_______________________________________________ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker