4 exec_prefix
=@exec_prefix@
9 cross_compiling
=@cross_compiling@
16 Usage: wx-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--static]
17 [--libs] [--gl-libs] [--cppflags] [--cflags] [--cxxflags] [--rezflags]
20 wx-config returns configuration information about the installed
21 version of wxWindows. It may be used to query its version and
22 installation directories and also retrieve the C and C++ compilers
23 and linker which were used for its building and the corresponding
32 if test "@includedir@" != "/usr/include" \
33 -a "@includedir@" != "/usr/include/c++" \
34 -a \
( "${cross_compiling}" != "yes" \
35 -o "@includedir@" != "/usr/${target}/include" \
) ;
37 includes
=-I@includedir@
40 includes
="-I@libdir@/wx/include/@TOOLCHAIN_NAME@ $includes"
42 if test $static_flag = yes ; then
43 echo $includes @WXDEBUG_DEFINE@ @TOOLCHAIN_DEFS@ @WXCONFIG_INCLUDE@
45 echo $includes @WXDEBUG_DEFINE@ @TOOLCHAIN_DEFS@ @TOOLCHAIN_DLL_DEFS@ @WXCONFIG_INCLUDE@
49 if test $# -eq 0; then
53 while test $# -gt 0; do
55 -*=*) optarg
=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
62 if test $exec_prefix_set = no
; then
77 echo @WX_MAJOR_VERSION_NUMBER@.@WX_MINOR_VERSION_NUMBER@.@WX_RELEASE_NUMBER@
86 echo `cppflags` @CODE_GEN_FLAGS@
89 echo `cppflags` @CODE_GEN_FLAGS@ @CODE_GEN_FLAGS_CXX@
92 echo @LIBWXMACRESWXCONFIG@
95 if test "@libdir@" != "/usr/lib" \
96 -a \
( "${cross_compiling}" != "yes" \
97 -o "@libdir@" != "/usr/${target}/lib" \
) ;
102 if test $static_flag = yes ; then
103 echo "$libs @LDFLAGS@ @libdir@/@WXCONFIG_LIBS_STATIC@ @LIBS@ @DMALLOC_LIBS@"
105 echo $libs @LDFLAGS@ @WXCONFIG_LIBS@ @DMALLOC_LIBS@
110 if test $static_flag = yes -a "x" != "x@WXCONFIG_LIBS_STATIC_GL@" ; then
111 gllibs
="@libdir@/@WXCONFIG_LIBS_STATIC_GL@"
113 gllibs
="@WXCONFIG_LIBS_GL@"
115 echo @LDFLAGS_GL@
"$gllibs"