]> git.saurik.com Git - wxWidgets.git/blame - wx-config.in
fixed bug in mouse handling
[wxWidgets.git] / wx-config.in
CommitLineData
9a98a854
VZ
1#!/bin/sh
2
3prefix=@prefix@
4exec_prefix=@exec_prefix@
5exec_prefix_set=no
6ce73557
VZ
6CC="@CC@"
7CXX="@CXX@"
8LD="@SHARED_LD@"
9a98a854
VZ
9
10usage="\
6ce73557 11Usage: wx-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs] [--cflags] [--cc] [--cxx] [--ld]"
9a98a854
VZ
12
13if test $# -eq 0; then
14 echo "${usage}" 1>&2
15 exit 1
16fi
17
18while 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"
f6bcfd97 51 echo $includes -D__USE_WXCONFIG__ @CODE_GEN_FLAGS@ @WXDEBUG_DEFINE@ @TOOLKIT_DEF@ @WXCONFIG_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
74done
75