| Line | |
|---|
| 1 | #! /bin/sh |
|---|
| 2 | |
|---|
| 3 | prefix=@prefix@ |
|---|
| 4 | exec_prefix=@exec_prefix@ |
|---|
| 5 | includedir=@includedir@ |
|---|
| 6 | libdir=@libdir@ |
|---|
| 7 | |
|---|
| 8 | usage() |
|---|
| 9 | { |
|---|
| 10 | cat <<EOF |
|---|
| 11 | Usage: dodo-config [OPTION] |
|---|
| 12 | |
|---|
| 13 | Known 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 |
|---|
| 23 | EOF |
|---|
| 24 | |
|---|
| 25 | exit $1 |
|---|
| 26 | } |
|---|
| 27 | |
|---|
| 28 | if test $# -eq 0; then |
|---|
| 29 | usage 1 |
|---|
| 30 | fi |
|---|
| 31 | |
|---|
| 32 | while 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 |
|---|
| 70 | done |
|---|
| 71 | |
|---|
| 72 | exit 0 |
|---|
Note: See
TracBrowser
for help on using the repository browser.