1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-02-01 17:47:01 +03:00
libxml2/xml-config.in
Daniel Veillard f5c2c8707a - added the patch from Carl Nygard <cnygard@bellatlantic.net>
which allow impressive speed improvement on dataset with large text
   pieces, but at the cost of broken binary compatibility and slightly
   bigger memory usage.  Configure with --with-buffers to activate them,
   they are protected with XML_USE_BUFFER_CONTENT define.
 - added xmlCleanupPredefinedEntities(), memory allocation cleanup
Daniel
1999-12-01 09:51:45 +00:00

72 lines
961 B
Bash

#! /bin/sh
prefix=@prefix@
exec_prefix=@exec_prefix@
includedir=@includedir@
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 @PACKAGE@ @VERSION@
exit 0
;;
--help)
usage 0
;;
--cflags)
echo @XML_INCLUDEDIR@ @XML_CFLAGS@
;;
--libs)
echo -L@libdir@ @XML_LIBS@ @LIBS@
;;
*)
usage
exit 1
;;
esac
shift
done
exit 0