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 --cflags print pre-processor and compiler flags
19 --modules module support enabled
20 --help display this help and exit
21 --version output version information
27 if test $# -eq 0; then
34 while test $# -gt 0; do
36 -*=*) optarg
=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
43 includedir
=$prefix/include
53 libdir
=$exec_prefix/lib
70 echo -I${includedir}/libxml2
74 if [ -r ${libdir}/libxml2.la
]
76 echo ${libdir}/libxml2.la
85 if [ "`uname`" = "Linux" ]
87 if [ "-L${libdir}" = "-L/usr/lib" -o "-L${libdir}" = "-L/usr/lib64" ]
89 echo -lxml2 -lz -lm -ldl
91 echo -L${libdir} -lxml2 -lz -lm -ldl
94 echo -L${libdir} -lxml2 -lz -lm -ldl