Hi, we basically need to be able to poll some general info from corosync build such as LCRSO dir.
This pkg-config snippet allows this: pkg-config corosync --variable=lcrsodir /usr/local/libexec/lcrso ^^clearly the result depends on how corosync was configured Fabio
Index: pkgconfig/corosync.pc.in =================================================================== --- pkgconfig/corosync.pc.in (revision 0) +++ pkgconfig/corosync.pc.in (revision 0) @@ -0,0 +1,10 @@ +pref...@prefix@ +exec_prefix=${prefix} +libd...@libdir@ +includedir=${prefix}/include +lcrsod...@corolcrsodir@ + +Name: corosync +Version: @LIBVERSION@ +Description: corosync +Requires: Index: pkgconfig/Makefile.am =================================================================== --- pkgconfig/Makefile.am (revision 1853) +++ pkgconfig/Makefile.am (working copy) @@ -45,8 +45,16 @@ > $...@.pc; touch $@ -all-local: $(pkgconf_LIBS) +corosync.pc: + cat $(srcdir)/$...@.in | sed \ + -e 's...@prefix@#$(exec_prefix)#g' \ + -e 's...@libdir@#$(libdir)#g' \ + -e 's...@libversion@#$(VERSION)#g' \ + -e 's...@corolcrsodir@#$(LCRSODIR)#g' \ + > $@ +all-local: $(pkgconf_LIBS) corosync.pc + install-exec-local: install -d $(DESTDIR)/$(libdir)/pkgconfig install -m 644 $(target_LIBS) $(DESTDIR)/$(libdir)/pkgconfig
_______________________________________________ Openais mailing list Openais@lists.linux-foundation.org https://lists.linux-foundation.org/mailman/listinfo/openais