]>
Commit | Line | Data |
---|---|---|
9a98a854 VZ |
1 | #!/bin/sh |
2 | ||
3 | prefix=@prefix@ | |
4 | exec_prefix=@exec_prefix@ | |
5 | exec_prefix_set=no | |
6ce73557 VZ |
6 | CC="@CC@" |
7 | CXX="@CXX@" | |
8 | LD="@SHARED_LD@" | |
9a98a854 VZ |
9 | |
10 | usage="\ | |
6ce73557 | 11 | Usage: wx-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs] [--cflags] [--cc] [--cxx] [--ld]" |
9a98a854 VZ |
12 | |
13 | if test $# -eq 0; then | |
14 | echo "${usage}" 1>&2 | |
15 | exit 1 | |
16 | fi | |
17 | ||
18 | while test $# -gt 0; do | |
19 | case "$1" in | |
20 | -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
21 | *) optarg= ;; | |
22 | esac | |
23 | ||
24 | case $1 in | |
25 | --prefix=*) | |
26 | prefix=$optarg | |
27 | if test $exec_prefix_set = no ; then | |
28 | exec_prefix=$optarg | |
29 | fi | |
30 | ;; | |
31 | --prefix) | |
32 | echo $prefix | |
33 | ;; | |
34 | --exec-prefix=*) | |
35 | exec_prefix=$optarg | |
36 | exec_prefix_set=yes | |
37 | ;; | |
38 | --exec-prefix) | |
39 | echo $exec_prefix | |
40 | ;; | |
41 | --version) | |
79144b8a | 42 | echo @WX_MAJOR_VERSION_NUMBER@.@WX_MINOR_VERSION_NUMBER@.@WX_RELEASE_NUMBER@ |
9a98a854 VZ |
43 | ;; |
44 | --cflags) | |
45 | if test @includedir@ != /usr/include ; then | |
46 | if test @includedir@ != /usr/include/c++ ; then | |
47 | includes=-I@includedir@ | |
48 | fi | |
49 | fi | |
2b6f061f | 50 | includes="$includes -I@libdir@/wx/include" |
caa2c79b | 51 | echo $includes @CODE_GEN_FLAGS@ @WXDEBUG_DEFINE@ @TOOLKIT_DEF@ @TOOLKIT_INCLUDE@ |
9a98a854 VZ |
52 | ;; |
53 | --libs) | |
54 | if test @libdir@ != /usr/lib ; then | |
55 | libs="-L@libdir@" | |
56 | fi | |
2b6f061f | 57 | echo $libs -l@WX_LIBRARY@ @EXTRA_LIBS@ |
9a98a854 | 58 | ;; |
6ce73557 VZ |
59 | --cc) |
60 | echo $CC | |
61 | ;; | |
62 | --cxx) | |
63 | echo $CXX | |
64 | ;; | |
65 | --ld) | |
66 | echo $LD | |
67 | ;; | |
9a98a854 VZ |
68 | *) |
69 | echo "${usage}" 1>&2 | |
70 | exit 1 | |
71 | ;; | |
72 | esac | |
73 | shift | |
74 | done | |
75 |