Don't show $GLIB, since it's never set.
[synfig.git] / ETL / trunk / ETL-config.in
1 #!/bin/sh
2
3 prefix=@prefix@
4 exec_prefix=@exec_prefix@
5
6 bindir=@bindir@
7 libexecdir=@libexecdir@
8 datadir=@datadir@
9 sysconfdir=@sysconfdir@
10 sharedstatedir=@sharedstatedir@
11 localstatedir=@localstatedir@
12 libdir=@libdir@
13 infodir=@infodir@
14 mandir=@mandir@
15 includedir=@includedir@
16
17 LIBS="@LIBS@"
18
19 VERSION=@VERSION@
20 PACKAGE=@PACKAGE@
21
22 CFLAGS=-I$includedir
23
24 usage()
25 {
26         cat <<EOF
27 Usage: ETL-config [OPTION]...
28
29 Generic options
30   --version     print installed version of ETL.
31   --help        display this help and exit.
32
33 Compilation support options
34   --cflags      print pre-processor and compiler flags
35   --libs        print library linking information
36   
37 Install directories
38   --prefix --exec-prefix --bindir --libexecdir --datadir
39   --sysconfdir --sharedstatedir --localstatedir --libdir --infodir
40   --mandir --includedir
41
42 EOF
43         
44         exit $1
45 }
46
47 if test $# -eq 0; then
48         usage 1
49 fi
50
51 case $1 in
52 --version)
53         echo $PACKAGE $VERSION
54         exit 0
55         ;;
56 --exec-prefix)
57         echo $exec_prefix
58         exit 0
59         ;;
60 --prefix)
61         echo $prefix
62         exit 0
63         ;;
64 --help)
65         usage 0
66         ;;
67 --cxxflags)
68         echo $CFLAGS
69         exit 0
70         ;;
71 --cflags)
72         echo $CFLAGS
73         exit 0
74         ;;
75 --libs)
76         echo $LIBS
77         exit 0
78         ;;
79 esac
80
81 echo Unknown option "$1"
82 exit 4