]> matita.cs.unibo.it Git - helm.git/blob - helm/DEVEL/gdome_xslt/gdome_xslt_cpp_smart-config.in
Initial revision
[helm.git] / helm / DEVEL / gdome_xslt / gdome_xslt_cpp_smart-config.in
1 #! /bin/sh
2
3 prefix=@prefix@
4 exec_prefix=@prefix@
5 libdir=@libdir@
6 includedir=@includedir@
7 moduleconfdir=@datadir@/@PACKAGE@
8
9 usage()
10 {
11     cat <<EOF
12 Usage: @PACKAGE@-config [OPTION...]
13
14 Known values for OPTION are:
15
16   --help                display this help and exit
17   --version             output version information
18   --prefix=DIR          change @PACKAGE@ prefix [default $prefix]
19   --cflags              print pre-processor and compiler flags
20   --libs                print library linking information
21
22 EOF
23
24     exit $1
25 }
26
27 if test $# -eq 0; then
28     usage 1
29 fi
30
31 cflags=false
32 libs=false
33
34 module=""
35 while test $# -gt 0; do
36     case "$1" in
37     -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
38     *) optarg= ;;
39     esac
40
41     case "$1" in
42     --prefix=*)
43         prefix=$optarg
44         ;;
45
46     --prefix)
47         echo $prefix
48         ;;
49
50     --version)
51         echo @VERSION@
52         ;;
53
54     --help)
55         usage 0
56         ;;
57
58     --cflags)
59         echo -n "@LIBXSLT_CFLAGS@ -I$includedir/@PACKAGE@ "
60         ;;
61
62     --libs)
63         echo -n "@LIBXSLT_LIBS@ -L$libdir -lgdome_xslt_cpp_smart "
64         ;;
65
66     *)
67         usage 1
68         ;;
69     esac
70     shift
71 done
72
73 exit 0
74