Rev 2 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2 | Rev 23 | ||
---|---|---|---|
1 | #!/bin/sh |
1 | #!/bin/sh |
2 | # |
2 | # |
3 | # $Id: pike-config.in,v 1.1 2002/08/12 01:02:31 grendel Exp $ |
3 | # $Id: pike-config.in,v 1.1 2002/08/12 01:02:31 grendel Exp $ |
4 | # |
4 | # |
5 | 5 | ||
6 | MY_CFLAGS="@CFLAGS@" |
6 | MY_CFLAGS="@CFLAGS@" |
7 | MY_LDFLAGS="@LDFLAGS@" |
7 | MY_LDFLAGS="@LDFLAGS@" |
8 | MY_VERSION="@MAJOR@.@MINOR@.@BUILD@" |
8 | MY_VERSION="@MAJOR@.@MINOR@.@BUILD@" |
9 | 9 | ||
10 | if test -z "$1"; then |
10 | if test -z "$1"; then |
11 | cat <<EOF |
11 | cat <<EOF |
12 | Usage: pike-config [--cflags] [--ldflags] [--version] |
12 | Usage: pike-config [--cflags] [--ldflags] [--version] |
13 | 13 | ||
14 | --cflags Print the compiler flags required to compile a module |
14 | --cflags Print the compiler flags required to compile a module |
15 | --ldflags Print the linker flags required to link a module |
15 | --ldflags Print the linker flags required to link a module |
16 | --version Print the pike version for which the compilation is taking |
16 | --version Print the pike version for which the compilation is taking |
17 | place |
17 | place |
18 | 18 | ||
19 | EOF |
19 | EOF |
20 | exit 1 |
20 | exit 1 |
21 | fi |
21 | fi |
22 | 22 | ||
23 | while true; do |
23 | while true; do |
24 | if test -z "$1"; then |
24 | if test -z "$1"; then |
25 | break |
25 | break |
26 | fi |
26 | fi |
27 | 27 | ||
28 | case $1 in |
28 | case $1 in |
29 | --cflags) echo -n "${MY_CFLAGS} " ;; |
29 | --cflags) echo -n "${MY_CFLAGS} " ;; |
30 | --ldflags) echo -n "${MY_LDFLAGS} " ;; |
30 | --ldflags) echo -n "${MY_LDFLAGS} " ;; |
31 | --version) echo -n "${MY_VERSION} " ;; |
31 | --version) echo -n "${MY_VERSION} " ;; |
32 | esac |
32 | esac |
33 | shift |
33 | shift |
34 | done |
34 | done |
35 | 35 | ||
36 | echo |
36 | echo |