From dd7d1f6d79eeb145c0e560c0262126c64f583b00 Mon Sep 17 00:00:00 2001 From: Martin Baulig Date: Fri, 29 Sep 2000 23:17:57 +0000 Subject: [PATCH] Provide pkg-config script. 2000-09-30 Martin Baulig * libxml-2.0.pc.in: Provide pkg-config script. * configure.in: Create the libxml-2.0.pc script from the libxml-2.0.pc.in templates. * Makefile.am (pkgconfig_DATA): Install the libxml-2.0.pc script in `$(libexecdir)/pkgconfig'. --- .cvsignore | 1 + ChangeLog | 9 +++++++++ Makefile.am | 5 ++++- configure.in | 2 +- libxml-2.0.pc.in | 15 +++++++++++++++ 5 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 libxml-2.0.pc.in diff --git a/.cvsignore b/.cvsignore index 1cd83946..ddb29039 100644 --- a/.cvsignore +++ b/.cvsignore @@ -27,3 +27,4 @@ libxml.spec testHTML testSAX testXPath +libxml-2.0.pc diff --git a/ChangeLog b/ChangeLog index ab3c1f98..e4fa3973 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2000-09-30 Martin Baulig + + * libxml-2.0.pc.in: Provide pkg-config script. + + * configure.in: Create the libxml-2.0.pc script from the + libxml-2.0.pc.in templates. + * Makefile.am (pkgconfig_DATA): Install the libxml-2.0.pc + script in `$(libexecdir)/pkgconfig'. + Mon Sep 25 16:23:41 CEST 2000 Daniel Veillard * HTMLparser.c parser.c tree.c tree.h: Avoiding a few warning diff --git a/Makefile.am b/Makefile.am index 9368c662..3f93f191 100644 --- a/Makefile.am +++ b/Makefile.am @@ -356,7 +356,10 @@ confexecdir=$(libdir) confexec_DATA = xmlConf.sh EXTRA_DIST = xmlConf.sh.in libxml.spec.in libxml.spec libxml.m4 \ example/Makefile.am example/gjobread.c example/gjobs.xml \ - $(man_MANS) + $(man_MANS) libxml-2.0.pc.in + +pkgconfigdir = $(libexecdir)/pkgconfig +pkgconfig_DATA = libxml-2.0.pc xmlConf.sh: xmlConf.sh.in Makefile ## Use sed and then mv to avoid problems if the user interrupts. diff --git a/configure.in b/configure.in index 61977a63..b2a40c2b 100644 --- a/configure.in +++ b/configure.in @@ -299,5 +299,5 @@ else (cd $srcdir ; rm -f libxml ; ln -s . libxml) (rm -f libxml ; ln -s . libxml) fi -AC_OUTPUT(libxml.spec Makefile doc/Makefile example/Makefile xmlversion.h xml-config win32config.h) +AC_OUTPUT(libxml.spec Makefile doc/Makefile example/Makefile xmlversion.h xml-config win32config.h libxml-2.0.pc) diff --git a/libxml-2.0.pc.in b/libxml-2.0.pc.in new file mode 100644 index 00000000..43304549 --- /dev/null +++ b/libxml-2.0.pc.in @@ -0,0 +1,15 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +VERSION="@VERSION@" +REQUIRES="" +CFLAGS="@XML_INCLUDEDIR@ @XML_CFLAGS@ $CFLAGS" +LIBS_PATH="-L${libdir} $LIBS_PATH" +LIBS_LINK_SELF="-lxml $LIBS_LINK_SELF" +LIBS_LINK_SYSTEM="@Z_LIBS@ @M_LIBS@ @LIBS@ $LIBS_LINK_SYSTEM" + + +#Name: libXML +#Description: libXML library.