source: sources/bin/dodo-config.in @ 1406:6b099cf4ab8d

Revision 1406:6b099cf4ab8d, 992 bytes checked in by niam, 3 years ago (diff)

changed directory layout

Line 
1#! /bin/sh
2
3prefix=@prefix@
4exec_prefix=@exec_prefix@
5includedir=@includedir@
6libdir=@libdir@
7
8usage()
9{
10    cat <<EOF
11Usage: dodo-config [OPTION]
12
13Known values for OPTION are:
14
15  --prefix      print libdodo prefix
16  --exec-prefix print libdodo exec prefix
17  --libs        print library linking information
18  --cflags      print pre-processor and compiler flags
19  --ldflags     print linker flags
20  --modules     module support enabled
21  --help        display this help and exit
22  --version     output version information
23EOF
24
25    exit $1
26}
27
28if test $# -eq 0; then
29    usage 1
30fi
31
32while test $# -gt 0; do
33
34    case "$1" in
35
36                --prefix)
37                        echo $prefix
38                        ;;
39
40                --exec-prefix)
41                        echo $exec_prefix
42                        ;;
43
44                --version)
45                        echo @PACKAGE_STRING@
46                        exit 0
47                        ;;
48
49                --help)
50                        usage 0
51                        ;;
52
53                --cflags)
54                        echo -I$includedir @CFLAGS@ @CPPFLAGS@
55                        ;;
56
57                --modules)
58                        echo @MODULES@
59                        ;;
60
61                --libs)
62                        echo -L$libdir -ldodo @LDFLAGS@
63                        ;;
64
65                *)
66                        usage 1
67                        ;;
68    esac
69    shift
70done
71
72exit 0
Note: See TracBrowser for help on using the repository browser.