4 exec_prefix=@exec_prefix@
5 includedir=@includedir@
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 @XML_INCLUDEDIR@ @XML_CFLAGS@
75 if [ -r ${libdir}/@XML_LIBTOOLLIBS@ ]
77 echo ${libdir}/@XML_LIBTOOLLIBS@
86 if [ "`uname`" = "Linux" ]
88 if [ "@XML_LIBDIR@" = "-L/usr/lib" -o "@XML_LIBDIR@" = "-L/usr/lib64" ]
92 LIBS="@XML_LIBDIR@ @XML_LIBS@"
95 LIBS="@XML_LIBDIR@ @XML_LIBS@ @WIN32_EXTRA_LIBADD@"
97 if [ "$2" = "--static" ]
100 LIBS="${LIBS} @Z_LIBS@ @BASE_THREAD_LIBS@ @THREAD_LIBS@ @ICONV_LIBS@ @M_LIBS@ @LIBS@"