]> matita.cs.unibo.it Git - helm.git/blob - helm/minidom/minidom-config
This commit was manufactured by cvs2svn to create branch 'helm'.
[helm.git] / helm / minidom / minidom-config
1 #!/bin/sh
2
3 VERSION="0.1.0"
4 libdir="/usr/local/lib"
5 pkglibdir="/usr/local/lib/minidom"
6 includedir="/usr/local/include"
7 pkgincludedir="/usr/local/include/minidom"
8
9
10 usage()
11 {
12         cat <<EOF
13 Usage: minidom-config [OPTIONS]
14 Options:
15         [--version]
16         [--libs]
17         [--cflags]
18 EOF
19         exit $1
20 }
21
22 if test $# -eq 0; then
23         usage 1 1>&2
24 fi
25
26 while test $# -gt 0; do
27   case "$1" in
28   -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
29   *) optarg= ;;
30   esac
31
32   case $1 in
33     --version)
34       echo $VERSION
35       ;;
36     --cflags)
37       echo_cflags=yes
38       ;;
39     --libs)
40       echo_libs=yes
41       ;;
42     *)
43       usage 1 1>&2
44       ;;
45   esac
46   shift
47 done
48
49 if test "$echo_cflags" = "yes"; then
50     echo `xml-config --cflags` -I$pkgincludedir
51 fi
52
53 if test "$echo_libs" = "yes"; then
54     echo `xml-config --libs` -L$libdir -lminidom
55 fi      
56