5
includedir=${prefix}/include
6
libdir=${exec_prefix}/lib
11
Usage: xml2-config [OPTION]
13
Known values for OPTION are:
15
--prefix=DIR change libxml prefix [default $prefix]
16
--exec-prefix=DIR change libxml exec prefix [default $exec_prefix]
17
--libs print library linking information
18
add --static to print static library linking information
19
--cflags print pre-processor and compiler flags
20
--modules module support enabled
21
--help display this help and exit
22
--version output version information
28
if test $# -eq 0; then
35
while test $# -gt 0; do
37
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
44
includedir=$prefix/include
54
libdir=$exec_prefix/lib
71
echo -I${includedir}/libxml2
75
if [ -r ${libdir}/libxml2.la ]
77
echo ${libdir}/libxml2.la
86
if [ "`uname`" = "Linux" ]
88
if [ "-L${libdir}" = "-L/usr/lib64" ]
92
LIBS="-L${libdir} -lxml2"
95
LIBS="-L${libdir} -lxml2 "
97
if [ "$2" = "--static" ]
100
LIBS="${LIBS} -lz -lpthread -lm "