4 exec_prefix
=@exec_prefix@
10 cross_compiling
=@cross_compiling@
12 static_flag
=@STATIC_FLAG@
17 Usage: wx-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--static]
19 [--cppflags] [--cflags] [--cxxflags] [--ldflags] [--rezflags]
22 wx-config returns configuration information about the installed
23 version of wxWindows. It may be used to query its version and
24 installation directories and also retrieve the C and C++ compilers
25 and linker which were used for its building and the corresponding
28 Ordinarily it should be installed to the appropriate system location
29 along with the headers and library files, but it is also possible to
30 use it to enable builds with an uninstalled wxWindows version for
31 package building and bleeding edge developers. To do so, use it like
34 \${wx_builddir}/wx-config --prefix=\${wx_srcdir} --exec-prefix=\${wx_builddir}
36 Note that any other options supplied must come *after* the prefix
37 specification for it to take effect.
46 # we should never specify -I/usr/include on the compiler command line: this
47 # is at best useless and at worst breaks compilation on the systems where
48 # the system headers are non-ANSI because gcc works around this by storing
49 # the ANSI-fied versions of them in its private directory which is searched
50 # after all the directories on the cmd line.
52 # the situation is a bit more complicated with -I/usr/local/include: again,
53 # it shouldn't be specified with gcc which looks there by default anyhow
54 # and gives warnings (at least 3.1 does) if it is specified explicitly --
55 # but this -I switch *is* needed for the other compilers
57 # note that we assume that if we use GNU cc we also use GNU c++ and vice
58 # versa, i.e. this won't work (either for --cflags or --cxxflags) if GNU C
59 # compiler and non-GNU C++ compiler are used or vice versa -- we'll fix
60 # this when/if anybody complains about it
61 if test "@includedir@" != "/usr/include" \
62 -a "@includedir@" != "/usr/include/c++" \
63 -a \
( "${GCC}" != "yes" \
64 -o "@includedir@" != "/usr/local/include" \
) \
65 -a \
( "${cross_compiling}" != "yes" \
66 -o "@includedir@" != "/usr/${target}/include" \
) ;
68 includes
=" -I@includedir@"
71 includes
="-I@libdir@/wx/include/@TOOLCHAIN_NAME@$includes"
73 if test $static_flag = yes ; then
74 echo $includes @WXDEBUG_DEFINE@ @TOOLCHAIN_DEFS@ @WXCONFIG_INCLUDE@ @WX_LARGEFILE_FLAGS@
76 echo $includes @WXDEBUG_DEFINE@ @TOOLCHAIN_DEFS@ @TOOLCHAIN_DLL_DEFS@ @WXCONFIG_INCLUDE@ @WX_LARGEFILE_FLAGS@
80 if test $# -eq 0; then
84 while test $# -gt 0; do
86 -*=*) optarg
=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
93 if test $exec_prefix_set = no
; then
108 echo @WX_MAJOR_VERSION_NUMBER@.@WX_MINOR_VERSION_NUMBER@.@WX_RELEASE_NUMBER@
117 echo `cppflags` @CODE_GEN_FLAGS@
120 echo `cppflags` @CODE_GEN_FLAGS@ @CODE_GEN_FLAGS_CXX@
126 echo @LIBWXMACRESWXCONFIG@
129 if test "@libdir@" != "/usr/lib" \
130 -a \
( "${cross_compiling}" != "yes" \
131 -o "@libdir@" != "/usr/${target}/lib" \
) ;
136 if test $static_flag = yes ; then
137 echo "$libs @LDFLAGS@ @WXCONFIG_RPATH@ @libdir@/@WXCONFIG_LIBS_STATIC@ @LIBS@ @DMALLOC_LIBS@"
139 echo $libs @LDFLAGS@ @WXCONFIG_RPATH@ @WXCONFIG_LIBS@ @DMALLOC_LIBS@
144 if test $static_flag = yes -a "x" != "x@WXCONFIG_LIBS_STATIC_GL@" ; then
145 gllibs
="@libdir@/@WXCONFIG_LIBS_STATIC_GL@"
147 gllibs
="@WXCONFIG_LIBS_GL@"
149 echo @LDFLAGS_GL@
$gllibs