[xml] [PATCH] implement --libtools-libs option for xml2-config



Submitted by: Kevin P. Fleming (kpfleming at cox dot net)
Date: 2003-09-01
Initial Package Version: 2.5.9
Origin: Kevin P. Fleming (kpfleming at cox dot net)
Description: This patch enables xml2-config to respond to a new parameter, --libtool-libs, which is to be used by executables that wish be linked against libxml2 using libtool. It reports the path to "libxml2.la".

diff -urNX /usr/src/dontdiff libxml2-2.5.9/configure.in libxml2-kpf/configure.in
--- libxml2-2.5.9/configure.in  Sat Aug  9 14:29:25 2003
+++ libxml2-kpf/configure.in    Mon Sep  1 11:42:29 2003
@@ -647,6 +647,7 @@
 fi
 M_LIBS="-lm"
 XML_LIBS="-lxml2 $Z_LIBS $THREAD_LIBS $ICONV_LIBS $M_LIBS $LIBS"
+XML_LIBTOOLLIBS="libxml2.la"
 AC_SUBST(WITH_ICONV)

 WITH_ISO8859X=1
@@ -716,6 +717,7 @@

 AC_SUBST(XML_LIBDIR)
 AC_SUBST(XML_LIBS)
+AC_SUBST(XML_LIBTOOLLIBS)
 AC_SUBST(ICONV_LIBS)
 AC_SUBST(XML_INCLUDEDIR)
 AC_SUBST(HTML_DIR)
diff -urNX /usr/src/dontdiff libxml2-2.5.9/xml2-config.in libxml2-kpf/xml2-config.in
--- libxml2-2.5.9/xml2-config.in        Wed Apr 30 05:09:27 2003
+++ libxml2-kpf/xml2-config.in  Mon Sep  1 11:42:46 2003
@@ -14,6 +14,7 @@

   --prefix=DIR         change libxml prefix [default $prefix]
   --libs               print library linking information
+  --libtool-libs        print linking information for use with libtool
   --cflags             print pre-processor and compiler flags
   --help               display this help and exit
   --version            output version information
@@ -59,6 +60,10 @@
                echo @XML_INCLUDEDIR@ @XML_CFLAGS@
                ;;

+    --libtool-libs)
+       echo ${libdir}/@XML_LIBTOOLLIBS@
+        ;;
+
     --libs)
         if [ "`uname`" = "Linux" ]
        then




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]