cat 1>&2 <<EOF
wx-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--release] [--version-full]
- [--list] [--host=HOST] [--toolkit=TOOLKIT] [--universal[=yes|no]]
- [--unicode[=yes|no]] [--debug[=yes|no]] [--static[=yes|no]]
- [--version[=VERSION]] [--basename] [--cc] [--cppflags] [--cflags]
- [--cxxflags] [--rescomp] [--libs] [--cxx] [--ld] [--linkdeps]
- [--utility=UTIL] [LIB ...]
-
- wx-config returns information about the wxWidgets libraries available
- on your system. It may be used to retrieve the information you require
- to build applications using these libraries.
-
- If alternative builds of wxWidgets exist on the system, you can use the
- options: --prefix, --host, --toolkit, --unicode, --debug, --static,
- --version and --universal, to select from them. Use the --list option to
- show alternatives available which match specified criteria. The unicode,
- debug, and universal options take an optional yes or no argument, while
- host and version accept posix extended regex. The --utility option will
- return the correct version of UTIL to use with the selected library build.
- --linkdeps returns only static libraries for your makefile link rule deps.
+ [--list] [--selected-config] [--host=HOST] [--toolkit=TOOLKIT]
+ [--universal[=yes|no]] [--unicode[=yes|no]] [--debug[=yes|no]]
+ [--static[=yes|no]] [--version[=VERSION]] [--basename] [--cc]
+ [--cppflags] [--cflags] [--cxxflags] [--rescomp] [--libs] [--cxx]
+ [--ld] [--linkdeps] [--utility=UTIL] [LIB ...]
+
+ wx-config returns information about the wxWidgets libraries available on
+ your system. It may be used to retrieve the information required to build
+ applications using these libraries using --cppflags, --cflags, --cxxflags
+ and --libs options.
+
+ If multiple builds of wxWidgets are available, you can use the options
+ --prefix, --host, --toolkit, --unicode, --debug, --static, --universal and
+ --version to select from them. The --selected-config option shows the name
+ of the current configuration and --list shows available alternatives which
+ match specified criteria. The --utility option returns the correct version
+ of UTIL to use with the selected build. The --linkdeps option returns only
+ static libraries for your makefile link rule dependencies.
Optional LIB arguments (comma or space separated) may be used to specify
the wxWidgets libraries that you wish to use. The magic "std" label may
be used to import all libraries that would be used by default if none were
- specified explicitly. eg. wx-config --libs core,base.
+ specified explicitly, e.g. wx-config --libs core,base.
EOF
}
# validate_arg _domain _set _name _value
-# Boilerplate to validate an argument and initialise a psuedo-hash.
+# Boilerplate to validate an argument and initialise a pseudo-hash.
# This one is almost reduction into absurdity, and perhaps makes the
# precise action of the argument parser below just a little more
# obscure, but oh so neat and compact to use for multiple option
# not _cmd _args...
# true iff _cmd is false
-not() { if "$@"; then false; else true; fi }
+not() { if "$@"; then false; else true; fi; }
# do_find_best_delegate _unbound-options
# The real worker part of find_best_delegate below. Recurses though all
ldlibs_xml="@EXTRALIBS_XML@"
ldlibs_odbc="@EXTRALIBS_ODBC@"
ldlibs_adv="@EXTRALIBS_SDL@"
+ldlibs_stc="@EXTRALIBS_STC@"
# lib_flags_for _liblist
# We still need the core lib deps for a static build though
if is_static; then
link_deps="${libdir}/libwx_@TOOLCHAIN_NAME@.a"
- wx_libs="$wx_libs $link_deps $ldlibs_core @LIBS@"
+ wx_libs="$wx_libs $link_deps $ldlibs_core $ldlibs_base"
else
wx_libs="$wx_libs -lwx_@TOOLCHAIN_NAME@"
fi