summaryrefslogtreecommitdiffstats
path: root/external/libxml2/xml2-config.in
blob: 164508e47e67cbcb0360d755f6af165bc6f337b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#! /bin/sh

while test $# -gt 0; do
    case "$1" in
    -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
    *) optarg= ;;
    esac

    case "$1" in
    --version)
	echo @VERSION@
	exit 0
        ;;
    --cflags)
        cflags="$LIBXML_CFLAGS"
        ;;
    --libs)
        libs="$LIBXML_LIBS"
        ;;
    esac
    shift
done

if test -n "$cflags$libs"; then
    echo $cflags $libs
fi

exit 0