aboutsummaryrefslogtreecommitdiffstats
path: root/xml2-config.in
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@src.gnome.org>2001-02-23 17:55:21 +0000
committerOwen Taylor <otaylor@src.gnome.org>2001-02-23 17:55:21 +0000
commit3473f88a7abdf4e585e267288fb77e898c580d2b (patch)
tree19c5d85c77638e4cd622d854263c12ed6eac8662 /xml2-config.in
parent64636e7f6e97729eae365801ab13632492bf0b14 (diff)
downloadandroid_external_libxml2-3473f88a7abdf4e585e267288fb77e898c580d2b.tar.gz
android_external_libxml2-3473f88a7abdf4e585e267288fb77e898c580d2b.tar.bz2
android_external_libxml2-3473f88a7abdf4e585e267288fb77e898c580d2b.zip
Revert directory structure changes
Diffstat (limited to 'xml2-config.in')
-rw-r--r--xml2-config.in72
1 files changed, 72 insertions, 0 deletions
diff --git a/xml2-config.in b/xml2-config.in
new file mode 100644
index 00000000..768e336d
--- /dev/null
+++ b/xml2-config.in
@@ -0,0 +1,72 @@
+#! /bin/sh
+
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+includedir=@includedir@
+libdir=@libdir@
+
+usage()
+{
+ cat <<EOF
+Usage: xml-config [OPTION]
+
+Known values for OPTION are:
+
+ --prefix=DIR change libxml prefix [default $prefix]
+ --libs print library linking information
+ --cflags print pre-processor and compiler flags
+ --help display this help and exit
+ --version output version information
+EOF
+
+ exit $1
+}
+
+if test $# -eq 0; then
+ usage 1
+fi
+
+cflags=false
+libs=false
+
+while test $# -gt 0; do
+ case "$1" in
+ -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
+ *) optarg= ;;
+ esac
+
+ case "$1" in
+ --prefix=*)
+ prefix=$optarg
+ ;;
+
+ --prefix)
+ echo $prefix
+ ;;
+
+ --version)
+ echo @VERSION@
+ exit 0
+ ;;
+
+ --help)
+ usage 0
+ ;;
+
+ --cflags)
+ echo @XML_INCLUDEDIR@ @XML_CFLAGS@
+ ;;
+
+ --libs)
+ echo @XML_LIBDIR@ @XML_LIBS@
+ ;;
+
+ *)
+ usage
+ exit 1
+ ;;
+ esac
+ shift
+done
+
+exit 0