wxWidgets/autoconf_inc.m4

746 lines
29 KiB
Plaintext
Raw Normal View History

dnl ### begin block 00_header ###
dnl
dnl This macro was generated by
dnl Bakefile 0.1.4 (http://bakefile.sourceforge.net)
dnl Do not modify, all changes will be overwritten!
BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4"
dnl ### begin block 0_AC_BAKEFILE_PRECOMP_HEADERS ###
AC_BAKEFILE_PRECOMP_HEADERS
dnl Conditions:
dnl ### begin block 1_COND_BUILD_DEBUG ###
COND_BUILD_DEBUG="#"
if test "x$BUILD" = "xdebug" ; then
COND_BUILD_DEBUG=""
fi
AC_SUBST(COND_BUILD_DEBUG)
dnl ### begin block 1_COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT ###
COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
fi
AC_SUBST(COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT)
dnl ### begin block 1_COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT ###
COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
fi
AC_SUBST(COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT)
dnl ### begin block 1_COND_BUILD_DEBUG_UNICODE_0 ###
COND_BUILD_DEBUG_UNICODE_0="#"
if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
COND_BUILD_DEBUG_UNICODE_0=""
fi
AC_SUBST(COND_BUILD_DEBUG_UNICODE_0)
dnl ### begin block 1_COND_BUILD_DEBUG_UNICODE_1 ###
COND_BUILD_DEBUG_UNICODE_1="#"
if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
COND_BUILD_DEBUG_UNICODE_1=""
fi
AC_SUBST(COND_BUILD_DEBUG_UNICODE_1)
dnl ### begin block 1_COND_BUILD_RELEASE ###
COND_BUILD_RELEASE="#"
if test "x$BUILD" = "xrelease" ; then
COND_BUILD_RELEASE=""
fi
AC_SUBST(COND_BUILD_RELEASE)
dnl ### begin block 1_COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT ###
COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
fi
AC_SUBST(COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT)
dnl ### begin block 1_COND_BUILD_RELEASE_UNICODE_0 ###
COND_BUILD_RELEASE_UNICODE_0="#"
if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
COND_BUILD_RELEASE_UNICODE_0=""
fi
AC_SUBST(COND_BUILD_RELEASE_UNICODE_0)
dnl ### begin block 1_COND_BUILD_RELEASE_UNICODE_1 ###
COND_BUILD_RELEASE_UNICODE_1="#"
if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
COND_BUILD_RELEASE_UNICODE_1=""
fi
AC_SUBST(COND_BUILD_RELEASE_UNICODE_1)
dnl ### begin block 1_COND_DEBUG_FLAG_1 ###
COND_DEBUG_FLAG_1="#"
if test "x$DEBUG_FLAG" = "x1" ; then
COND_DEBUG_FLAG_1=""
fi
AC_SUBST(COND_DEBUG_FLAG_1)
dnl ### begin block 1_COND_DEBUG_INFO_0 ###
COND_DEBUG_INFO_0="#"
if test "x$DEBUG_INFO" = "x0" ; then
COND_DEBUG_INFO_0=""
fi
AC_SUBST(COND_DEBUG_INFO_0)
dnl ### begin block 1_COND_DEBUG_INFO_1 ###
COND_DEBUG_INFO_1="#"
if test "x$DEBUG_INFO" = "x1" ; then
COND_DEBUG_INFO_1=""
fi
AC_SUBST(COND_DEBUG_INFO_1)
dnl ### begin block 1_COND_DEPS_TRACKING_0 ###
COND_DEPS_TRACKING_0="#"
if test "x$DEPS_TRACKING" = "x0" ; then
COND_DEPS_TRACKING_0=""
fi
AC_SUBST(COND_DEPS_TRACKING_0)
dnl ### begin block 1_COND_DEPS_TRACKING_1 ###
COND_DEPS_TRACKING_1="#"
if test "x$DEPS_TRACKING" = "x1" ; then
COND_DEPS_TRACKING_1=""
fi
AC_SUBST(COND_DEPS_TRACKING_1)
dnl ### begin block 1_COND_GCC_PCH_1 ###
COND_GCC_PCH_1="#"
if test "x$GCC_PCH" = "x1" ; then
COND_GCC_PCH_1=""
fi
AC_SUBST(COND_GCC_PCH_1)
dnl ### begin block 1_COND_MONOLITHIC_0 ###
COND_MONOLITHIC_0="#"
if test "x$MONOLITHIC" = "x0" ; then
COND_MONOLITHIC_0=""
fi
AC_SUBST(COND_MONOLITHIC_0)
dnl ### begin block 1_COND_MONOLITHIC_0_SHARED_0 ###
COND_MONOLITHIC_0_SHARED_0="#"
if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
COND_MONOLITHIC_0_SHARED_0=""
fi
AC_SUBST(COND_MONOLITHIC_0_SHARED_0)
dnl ### begin block 1_COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 ###
COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
fi
AC_SUBST(COND_MONOLITHIC_0_SHARED_0_USE_GUI_1)
dnl ### begin block 1_COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1 ###
COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
fi
AC_SUBST(COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1)
dnl ### begin block 1_COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 ###
COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
fi
AC_SUBST(COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1)
dnl ### begin block 1_COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 ###
COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
fi
AC_SUBST(COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1)
dnl ### begin block 1_COND_MONOLITHIC_0_SHARED_0_USE_XRC_1 ###
COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
fi
AC_SUBST(COND_MONOLITHIC_0_SHARED_0_USE_XRC_1)
dnl ### begin block 1_COND_MONOLITHIC_0_SHARED_1 ###
COND_MONOLITHIC_0_SHARED_1="#"
if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
COND_MONOLITHIC_0_SHARED_1=""
fi
AC_SUBST(COND_MONOLITHIC_0_SHARED_1)
dnl ### begin block 1_COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 ###
COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
fi
AC_SUBST(COND_MONOLITHIC_0_SHARED_1_USE_GUI_1)
dnl ### begin block 1_COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1 ###
COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
fi
AC_SUBST(COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1)
dnl ### begin block 1_COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 ###
COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
fi
AC_SUBST(COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1)
dnl ### begin block 1_COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 ###
COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
fi
AC_SUBST(COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1)
dnl ### begin block 1_COND_MONOLITHIC_0_SHARED_1_USE_XRC_1 ###
COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
fi
AC_SUBST(COND_MONOLITHIC_0_SHARED_1_USE_XRC_1)
dnl ### begin block 1_COND_MONOLITHIC_0_USE_ODBC_1 ###
COND_MONOLITHIC_0_USE_ODBC_1="#"
if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
COND_MONOLITHIC_0_USE_ODBC_1=""
fi
AC_SUBST(COND_MONOLITHIC_0_USE_ODBC_1)
dnl ### begin block 1_COND_MONOLITHIC_1 ###
COND_MONOLITHIC_1="#"
if test "x$MONOLITHIC" = "x1" ; then
COND_MONOLITHIC_1=""
fi
AC_SUBST(COND_MONOLITHIC_1)
dnl ### begin block 1_COND_MONOLITHIC_1_SHARED_0 ###
COND_MONOLITHIC_1_SHARED_0="#"
if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
COND_MONOLITHIC_1_SHARED_0=""
fi
AC_SUBST(COND_MONOLITHIC_1_SHARED_0)
dnl ### begin block 1_COND_MONOLITHIC_1_SHARED_1 ###
COND_MONOLITHIC_1_SHARED_1="#"
if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
COND_MONOLITHIC_1_SHARED_1=""
fi
AC_SUBST(COND_MONOLITHIC_1_SHARED_1)
dnl ### begin block 1_COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 ###
COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
fi
AC_SUBST(COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1)
dnl ### begin block 1_COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 ###
COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
fi
AC_SUBST(COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1)
dnl ### begin block 1_COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 ###
COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
fi
AC_SUBST(COND_PLATFORM_MACOSX_0_USE_SOVERSION_1)
dnl ### begin block 1_COND_PLATFORM_MACOSX_1 ###
COND_PLATFORM_MACOSX_1="#"
if test "x$PLATFORM_MACOSX" = "x1" ; then
COND_PLATFORM_MACOSX_1=""
fi
AC_SUBST(COND_PLATFORM_MACOSX_1)
dnl ### begin block 1_COND_PLATFORM_MACOSX_1_TOOLKIT_ ###
COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
COND_PLATFORM_MACOSX_1_TOOLKIT_=""
fi
AC_SUBST(COND_PLATFORM_MACOSX_1_TOOLKIT_)
dnl ### begin block 1_COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA ###
COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
fi
AC_SUBST(COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA)
dnl ### begin block 1_COND_PLATFORM_MACOSX_1_TOOLKIT_GTK ###
COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
fi
AC_SUBST(COND_PLATFORM_MACOSX_1_TOOLKIT_GTK)
dnl ### begin block 1_COND_PLATFORM_MACOSX_1_TOOLKIT_MAC ###
COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
fi
AC_SUBST(COND_PLATFORM_MACOSX_1_TOOLKIT_MAC)
dnl ### begin block 1_COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1 ###
COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
fi
AC_SUBST(COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1)
dnl ### begin block 1_COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 ###
COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
fi
AC_SUBST(COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0)
dnl ### begin block 1_COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF ###
COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
fi
AC_SUBST(COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF)
dnl ### begin block 1_COND_PLATFORM_MACOSX_1_TOOLKIT_X11 ###
COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
fi
AC_SUBST(COND_PLATFORM_MACOSX_1_TOOLKIT_X11)
dnl ### begin block 1_COND_PLATFORM_MACOSX_1_USE_GUI_1 ###
COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
COND_PLATFORM_MACOSX_1_USE_GUI_1=""
fi
AC_SUBST(COND_PLATFORM_MACOSX_1_USE_GUI_1)
dnl ### begin block 1_COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 ###
COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
fi
AC_SUBST(COND_PLATFORM_MACOSX_1_USE_SOVERSION_1)
dnl ### begin block 1_COND_PLATFORM_MACOS_1 ###
COND_PLATFORM_MACOS_1="#"
if test "x$PLATFORM_MACOS" = "x1" ; then
COND_PLATFORM_MACOS_1=""
fi
AC_SUBST(COND_PLATFORM_MACOS_1)
dnl ### begin block 1_COND_PLATFORM_MAC_1 ###
COND_PLATFORM_MAC_1="#"
if test "x$PLATFORM_MAC" = "x1" ; then
COND_PLATFORM_MAC_1=""
fi
AC_SUBST(COND_PLATFORM_MAC_1)
dnl ### begin block 1_COND_PLATFORM_OS2_1 ###
COND_PLATFORM_OS2_1="#"
if test "x$PLATFORM_OS2" = "x1" ; then
COND_PLATFORM_OS2_1=""
fi
AC_SUBST(COND_PLATFORM_OS2_1)
dnl ### begin block 1_COND_PLATFORM_UNIX_0 ###
COND_PLATFORM_UNIX_0="#"
if test "x$PLATFORM_UNIX" = "x0" ; then
COND_PLATFORM_UNIX_0=""
fi
AC_SUBST(COND_PLATFORM_UNIX_0)
dnl ### begin block 1_COND_PLATFORM_UNIX_1 ###
COND_PLATFORM_UNIX_1="#"
if test "x$PLATFORM_UNIX" = "x1" ; then
COND_PLATFORM_UNIX_1=""
fi
AC_SUBST(COND_PLATFORM_UNIX_1)
dnl ### begin block 1_COND_PLATFORM_UNIX_1_USE_GUI_1 ###
COND_PLATFORM_UNIX_1_USE_GUI_1="#"
if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
COND_PLATFORM_UNIX_1_USE_GUI_1=""
fi
AC_SUBST(COND_PLATFORM_UNIX_1_USE_GUI_1)
dnl ### begin block 1_COND_PLATFORM_UNIX_1_USE_PLUGINS_0 ###
COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
fi
AC_SUBST(COND_PLATFORM_UNIX_1_USE_PLUGINS_0)
dnl ### begin block 1_COND_PLATFORM_WIN32_0 ###
COND_PLATFORM_WIN32_0="#"
if test "x$PLATFORM_WIN32" = "x0" ; then
COND_PLATFORM_WIN32_0=""
fi
AC_SUBST(COND_PLATFORM_WIN32_0)
dnl ### begin block 1_COND_PLATFORM_WIN32_1 ###
COND_PLATFORM_WIN32_1="#"
if test "x$PLATFORM_WIN32" = "x1" ; then
COND_PLATFORM_WIN32_1=""
fi
AC_SUBST(COND_PLATFORM_WIN32_1)
dnl ### begin block 1_COND_SHARED_0 ###
COND_SHARED_0="#"
if test "x$SHARED" = "x0" ; then
COND_SHARED_0=""
fi
AC_SUBST(COND_SHARED_0)
wx-config2.6 Designed to be resiliant against future cut and paste coders. Any gnarly parts are black boxed away nicely to avoid accidents and have integrated debugging support for trivial sanity checking in the event of modification or trouble. In this way the major operations are all cleanly separated making any or all of them simply extensible, or replaceable in the face of future needs. Functions now all have api descriptions. If you rely on a function to act in some way, please document it to safeguard yourself against inadvertant interface changes by others. Everything now runs top top to bottom, we don't try to output things as fast as we can read them anymore, instead we read everything in, sort over it just once without the need for 'just in case' temp's, and then output whatever we were asked for only when we are sure we have the correct answer. Almost all key data aims to be constant past the point of its initialisation so side effect creep and trouble with half (re)initialised data should be significantly reduced in future. In almost every case it is easy and clean to simply delay initialisation until all required input channels have been emptied. If you like, think of it as mostly being one big constructor, with a little destructor at the end which outputs what you requested. At core, it is simply a generated config file -- with some user friendly logic for extracting its data and finding related files. Removed references to --gl-libs in --help. It still exists, but if its deprecated, no need to fill space in a compact help summary. It will remain documented (as deprecated) in the man page. Removed references to arcane order rules for arguments. Those limitations don't exist anymore, though the options are backward compatible in all other respects from the user pov. Removed references to --inplace, it doesn't need to be in the summary help either. It also is still accepted as an option, but there is no value in passing it, an uninstalled wx-config will automatically behave correctly. When you need --inplace, it will supply that behaviour for you (but there is no harm in typing it your self in that case). If you do type it when you don't need it, bad things will probably happen just like they always would have. Along with items above, generally compressed --help text to fit on even a traditional sized terminal without the need for paging. If we want more detailed help built in, it should be broken into separate pages, and this would be a trivial extension. Command line input is now controlled by a small generic parser. You define what options you want and what groups you want them in by initialising them as lists. It runs over all the input and fills corresponding psuedo-hashes from it for you to use as you please later. Added a validator for it to check yes/no options. Use posix extended regex instead of gnu 'basic' regex extensions, grep -E is portable, if gmake is not a requirement, we surely can't push gnu grep on people. Made --list more user friendly. It will now always list the current wx-config if it matches the feature spec, though it will warn if that config is not in the specified --prefix. Alternate configs that match (if any) are listed separately. An unqualified call to wx-config --list will always return (at least) the config that was called. We can never have a 'hanging' wx-config shell with no real implementation to back it up anymore so we can always return a sensible result for the user. A wx-config anywhere can list (and hence use) the configs installed in any (other) prefix. Delegation. Too big a topic to remark on in depth here, see the code for a fuller description. With everything being nicely constant and aligned to the respective library build, then aside from delegation, wx-config really is _just_ a config file (albeit with a layer of logic around the constants), and each wx-config carries a set of defaults which match perfectly the library build that it was generated with. If you choose a set of features that it can match, it will answer all your queries for them, if it cannot, it will seek to delegate to the config that is most like itself, but which can supply all the features you specified. This should be completely compatible with any set of options that returned a sensible result previously, and produce a sensible result in many cases where previously the collating order of your locale or the nuances of your filesystem operations would decide which library it thought you wanted. Sort duplicates out of the list of libraries and trickle shared dependencies down the list to properly support static builds. Added the inplace-config tweak for use in the build tree. This works like any other config, except it presets the default prefix to point at the build dir instead of the configured prefix that will become the default if this build is installed. It provides the behaviour of --inplace when $build_dir/wx-config is called without also specifying a different --{exec-,}prefix or any feature flags that it is incompatible with. In that event, it will try to delegate as per the normal rules. The inplace wrapper is not installed with the primary config which cleanly disables it for system installs. It will be invalidated if the build (or source) dir is moved, but will be revalidated if the build tree is subseqently updated with ./config.status --recheck && config.status (which it probably would need to be to build anyway for other reasons at present too) Enabled full support for static builds again, promoted --static to a full feature option. Fixed --ld to return something for them too. Added --flavour, similar to the existing --vendor, but for autoconf builds. These will probably want to be streamlined further. Broadened the use of release and flavour labels to support better concurrent installs. Fix bit rot in make-dist due to new/deleted files. Whittled down the number of obsolete and duplicated substitution variables in configure.in, and lowercased some variables we no longer export for substitution. Use the autoconf macros to generate files where we want them instead of making them someplace and then moving them all about. Remove extra files and symlinks added for the two part wx-config version. Removed the debian -contrib packages. We'll use multi-lib support to manage them from now on and indiviual libs can be split out along functional lines if required. This means the retained contribs will now get __WXDEBUG__ versions packaged too. Removed conflicts from almost packages except i18n and wxPython. All packages now either update or install alongside any existing ones. Added support for flavoured debs as well. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-21 17:16:29 +00:00
dnl ### begin block 1_COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0 ###
COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
fi
AC_SUBST(COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0)
dnl ### begin block 1_COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0 ###
COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
fi
AC_SUBST(COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0)
dnl ### begin block 1_COND_SHARED_0_TOOLKIT_PM_WXUNIV_0 ###
COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
fi
AC_SUBST(COND_SHARED_0_TOOLKIT_PM_WXUNIV_0)
dnl ### begin block 1_COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 ###
COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
fi
AC_SUBST(COND_SHARED_0_USE_GUI_1_USE_OPENGL_1)
dnl ### begin block 1_COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN ###
COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
fi
AC_SUBST(COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN)
dnl ### begin block 1_COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN ###
COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
fi
AC_SUBST(COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN)
dnl ### begin block 1_COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN ###
COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
fi
AC_SUBST(COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN)
dnl ### begin block 1_COND_SHARED_0_WXUSE_EXPAT_BUILTIN ###
COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
fi
AC_SUBST(COND_SHARED_0_WXUSE_EXPAT_BUILTIN)
dnl ### begin block 1_COND_SHARED_0_WXUSE_ODBC_BUILTIN ###
COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
fi
AC_SUBST(COND_SHARED_0_WXUSE_ODBC_BUILTIN)
dnl ### begin block 1_COND_SHARED_0_WXUSE_REGEX_BUILTIN ###
COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
fi
AC_SUBST(COND_SHARED_0_WXUSE_REGEX_BUILTIN)
dnl ### begin block 1_COND_SHARED_0_WXUSE_ZLIB_BUILTIN ###
COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
fi
AC_SUBST(COND_SHARED_0_WXUSE_ZLIB_BUILTIN)
dnl ### begin block 1_COND_SHARED_1 ###
COND_SHARED_1="#"
if test "x$SHARED" = "x1" ; then
COND_SHARED_1=""
fi
AC_SUBST(COND_SHARED_1)
dnl ### begin block 1_COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 ###
COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
fi
AC_SUBST(COND_SHARED_1_USE_GUI_1_USE_OPENGL_1)
dnl ### begin block 1_COND_TOOLKIT_ ###
COND_TOOLKIT_="#"
if test "x$TOOLKIT" = "x" ; then
COND_TOOLKIT_=""
fi
AC_SUBST(COND_TOOLKIT_)
dnl ### begin block 1_COND_TOOLKIT_COCOA ###
COND_TOOLKIT_COCOA="#"
if test "x$TOOLKIT" = "xCOCOA" ; then
COND_TOOLKIT_COCOA=""
fi
AC_SUBST(COND_TOOLKIT_COCOA)
dnl ### begin block 1_COND_TOOLKIT_COCOA_USE_GUI_1 ###
COND_TOOLKIT_COCOA_USE_GUI_1="#"
if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
COND_TOOLKIT_COCOA_USE_GUI_1=""
fi
AC_SUBST(COND_TOOLKIT_COCOA_USE_GUI_1)
dnl ### begin block 1_COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 ###
COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
fi
AC_SUBST(COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0)
dnl ### begin block 1_COND_TOOLKIT_GTK ###
COND_TOOLKIT_GTK="#"
if test "x$TOOLKIT" = "xGTK" ; then
COND_TOOLKIT_GTK=""
fi
AC_SUBST(COND_TOOLKIT_GTK)
dnl ### begin block 1_COND_TOOLKIT_GTK_USE_GUI_1 ###
COND_TOOLKIT_GTK_USE_GUI_1="#"
if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
COND_TOOLKIT_GTK_USE_GUI_1=""
fi
AC_SUBST(COND_TOOLKIT_GTK_USE_GUI_1)
dnl ### begin block 1_COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 ###
COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
fi
AC_SUBST(COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0)
dnl ### begin block 1_COND_TOOLKIT_MAC ###
COND_TOOLKIT_MAC="#"
if test "x$TOOLKIT" = "xMAC" ; then
COND_TOOLKIT_MAC=""
fi
AC_SUBST(COND_TOOLKIT_MAC)
dnl ### begin block 1_COND_TOOLKIT_MAC_USE_GUI_1 ###
COND_TOOLKIT_MAC_USE_GUI_1="#"
if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
COND_TOOLKIT_MAC_USE_GUI_1=""
fi
AC_SUBST(COND_TOOLKIT_MAC_USE_GUI_1)
dnl ### begin block 1_COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 ###
COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
fi
AC_SUBST(COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0)
dnl ### begin block 1_COND_TOOLKIT_MGL ###
COND_TOOLKIT_MGL="#"
if test "x$TOOLKIT" = "xMGL" ; then
COND_TOOLKIT_MGL=""
fi
AC_SUBST(COND_TOOLKIT_MGL)
dnl ### begin block 1_COND_TOOLKIT_MGL_USE_GUI_1 ###
COND_TOOLKIT_MGL_USE_GUI_1="#"
if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
COND_TOOLKIT_MGL_USE_GUI_1=""
fi
AC_SUBST(COND_TOOLKIT_MGL_USE_GUI_1)
dnl ### begin block 1_COND_TOOLKIT_MOTIF ###
COND_TOOLKIT_MOTIF="#"
if test "x$TOOLKIT" = "xMOTIF" ; then
COND_TOOLKIT_MOTIF=""
fi
AC_SUBST(COND_TOOLKIT_MOTIF)
dnl ### begin block 1_COND_TOOLKIT_MOTIF_USE_GUI_1 ###
COND_TOOLKIT_MOTIF_USE_GUI_1="#"
if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
COND_TOOLKIT_MOTIF_USE_GUI_1=""
fi
AC_SUBST(COND_TOOLKIT_MOTIF_USE_GUI_1)
dnl ### begin block 1_COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 ###
COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
fi
AC_SUBST(COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0)
dnl ### begin block 1_COND_TOOLKIT_MSW ###
COND_TOOLKIT_MSW="#"
if test "x$TOOLKIT" = "xMSW" ; then
COND_TOOLKIT_MSW=""
fi
AC_SUBST(COND_TOOLKIT_MSW)
dnl ### begin block 1_COND_TOOLKIT_MSW_USE_GUI_1 ###
COND_TOOLKIT_MSW_USE_GUI_1="#"
if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
COND_TOOLKIT_MSW_USE_GUI_1=""
fi
AC_SUBST(COND_TOOLKIT_MSW_USE_GUI_1)
dnl ### begin block 1_COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 ###
COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
fi
AC_SUBST(COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0)
dnl ### begin block 1_COND_TOOLKIT_PM ###
COND_TOOLKIT_PM="#"
if test "x$TOOLKIT" = "xPM" ; then
COND_TOOLKIT_PM=""
fi
AC_SUBST(COND_TOOLKIT_PM)
dnl ### begin block 1_COND_TOOLKIT_PM_USE_GUI_1 ###
COND_TOOLKIT_PM_USE_GUI_1="#"
if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
COND_TOOLKIT_PM_USE_GUI_1=""
fi
AC_SUBST(COND_TOOLKIT_PM_USE_GUI_1)
dnl ### begin block 1_COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 ###
COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
fi
AC_SUBST(COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0)
dnl ### begin block 1_COND_TOOLKIT_WINCE ###
COND_TOOLKIT_WINCE="#"
if test "x$TOOLKIT" = "xWINCE" ; then
COND_TOOLKIT_WINCE=""
fi
AC_SUBST(COND_TOOLKIT_WINCE)
dnl ### begin block 1_COND_TOOLKIT_WINCE_USE_GUI_1 ###
COND_TOOLKIT_WINCE_USE_GUI_1="#"
if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
COND_TOOLKIT_WINCE_USE_GUI_1=""
fi
AC_SUBST(COND_TOOLKIT_WINCE_USE_GUI_1)
dnl ### begin block 1_COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0 ###
COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
fi
AC_SUBST(COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0)
dnl ### begin block 1_COND_TOOLKIT_X11 ###
COND_TOOLKIT_X11="#"
if test "x$TOOLKIT" = "xX11" ; then
COND_TOOLKIT_X11=""
fi
AC_SUBST(COND_TOOLKIT_X11)
dnl ### begin block 1_COND_TOOLKIT_X11_USE_GUI_1 ###
COND_TOOLKIT_X11_USE_GUI_1="#"
if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
COND_TOOLKIT_X11_USE_GUI_1=""
fi
AC_SUBST(COND_TOOLKIT_X11_USE_GUI_1)
dnl ### begin block 1_COND_UNICODE_1 ###
COND_UNICODE_1="#"
if test "x$UNICODE" = "x1" ; then
COND_UNICODE_1=""
fi
AC_SUBST(COND_UNICODE_1)
dnl ### begin block 1_COND_USE_EXCEPTIONS_0 ###
COND_USE_EXCEPTIONS_0="#"
if test "x$USE_EXCEPTIONS" = "x0" ; then
COND_USE_EXCEPTIONS_0=""
fi
AC_SUBST(COND_USE_EXCEPTIONS_0)
dnl ### begin block 1_COND_USE_EXCEPTIONS_1 ###
COND_USE_EXCEPTIONS_1="#"
if test "x$USE_EXCEPTIONS" = "x1" ; then
COND_USE_EXCEPTIONS_1=""
fi
AC_SUBST(COND_USE_EXCEPTIONS_1)
dnl ### begin block 1_COND_USE_GUI_0 ###
COND_USE_GUI_0="#"
if test "x$USE_GUI" = "x0" ; then
COND_USE_GUI_0=""
fi
AC_SUBST(COND_USE_GUI_0)
dnl ### begin block 1_COND_USE_GUI_1 ###
COND_USE_GUI_1="#"
if test "x$USE_GUI" = "x1" ; then
COND_USE_GUI_1=""
fi
AC_SUBST(COND_USE_GUI_1)
dnl ### begin block 1_COND_USE_GUI_1_WXUNIV_0 ###
COND_USE_GUI_1_WXUNIV_0="#"
if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
COND_USE_GUI_1_WXUNIV_0=""
fi
AC_SUBST(COND_USE_GUI_1_WXUNIV_0)
dnl ### begin block 1_COND_USE_GUI_1_WXUNIV_1 ###
COND_USE_GUI_1_WXUNIV_1="#"
if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
COND_USE_GUI_1_WXUNIV_1=""
fi
AC_SUBST(COND_USE_GUI_1_WXUNIV_1)
dnl ### begin block 1_COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN ###
COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
fi
AC_SUBST(COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN)
dnl ### begin block 1_COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN ###
COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
fi
AC_SUBST(COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN)
dnl ### begin block 1_COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN ###
COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
fi
AC_SUBST(COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN)
wx-config2.6 Designed to be resiliant against future cut and paste coders. Any gnarly parts are black boxed away nicely to avoid accidents and have integrated debugging support for trivial sanity checking in the event of modification or trouble. In this way the major operations are all cleanly separated making any or all of them simply extensible, or replaceable in the face of future needs. Functions now all have api descriptions. If you rely on a function to act in some way, please document it to safeguard yourself against inadvertant interface changes by others. Everything now runs top top to bottom, we don't try to output things as fast as we can read them anymore, instead we read everything in, sort over it just once without the need for 'just in case' temp's, and then output whatever we were asked for only when we are sure we have the correct answer. Almost all key data aims to be constant past the point of its initialisation so side effect creep and trouble with half (re)initialised data should be significantly reduced in future. In almost every case it is easy and clean to simply delay initialisation until all required input channels have been emptied. If you like, think of it as mostly being one big constructor, with a little destructor at the end which outputs what you requested. At core, it is simply a generated config file -- with some user friendly logic for extracting its data and finding related files. Removed references to --gl-libs in --help. It still exists, but if its deprecated, no need to fill space in a compact help summary. It will remain documented (as deprecated) in the man page. Removed references to arcane order rules for arguments. Those limitations don't exist anymore, though the options are backward compatible in all other respects from the user pov. Removed references to --inplace, it doesn't need to be in the summary help either. It also is still accepted as an option, but there is no value in passing it, an uninstalled wx-config will automatically behave correctly. When you need --inplace, it will supply that behaviour for you (but there is no harm in typing it your self in that case). If you do type it when you don't need it, bad things will probably happen just like they always would have. Along with items above, generally compressed --help text to fit on even a traditional sized terminal without the need for paging. If we want more detailed help built in, it should be broken into separate pages, and this would be a trivial extension. Command line input is now controlled by a small generic parser. You define what options you want and what groups you want them in by initialising them as lists. It runs over all the input and fills corresponding psuedo-hashes from it for you to use as you please later. Added a validator for it to check yes/no options. Use posix extended regex instead of gnu 'basic' regex extensions, grep -E is portable, if gmake is not a requirement, we surely can't push gnu grep on people. Made --list more user friendly. It will now always list the current wx-config if it matches the feature spec, though it will warn if that config is not in the specified --prefix. Alternate configs that match (if any) are listed separately. An unqualified call to wx-config --list will always return (at least) the config that was called. We can never have a 'hanging' wx-config shell with no real implementation to back it up anymore so we can always return a sensible result for the user. A wx-config anywhere can list (and hence use) the configs installed in any (other) prefix. Delegation. Too big a topic to remark on in depth here, see the code for a fuller description. With everything being nicely constant and aligned to the respective library build, then aside from delegation, wx-config really is _just_ a config file (albeit with a layer of logic around the constants), and each wx-config carries a set of defaults which match perfectly the library build that it was generated with. If you choose a set of features that it can match, it will answer all your queries for them, if it cannot, it will seek to delegate to the config that is most like itself, but which can supply all the features you specified. This should be completely compatible with any set of options that returned a sensible result previously, and produce a sensible result in many cases where previously the collating order of your locale or the nuances of your filesystem operations would decide which library it thought you wanted. Sort duplicates out of the list of libraries and trickle shared dependencies down the list to properly support static builds. Added the inplace-config tweak for use in the build tree. This works like any other config, except it presets the default prefix to point at the build dir instead of the configured prefix that will become the default if this build is installed. It provides the behaviour of --inplace when $build_dir/wx-config is called without also specifying a different --{exec-,}prefix or any feature flags that it is incompatible with. In that event, it will try to delegate as per the normal rules. The inplace wrapper is not installed with the primary config which cleanly disables it for system installs. It will be invalidated if the build (or source) dir is moved, but will be revalidated if the build tree is subseqently updated with ./config.status --recheck && config.status (which it probably would need to be to build anyway for other reasons at present too) Enabled full support for static builds again, promoted --static to a full feature option. Fixed --ld to return something for them too. Added --flavour, similar to the existing --vendor, but for autoconf builds. These will probably want to be streamlined further. Broadened the use of release and flavour labels to support better concurrent installs. Fix bit rot in make-dist due to new/deleted files. Whittled down the number of obsolete and duplicated substitution variables in configure.in, and lowercased some variables we no longer export for substitution. Use the autoconf macros to generate files where we want them instead of making them someplace and then moving them all about. Remove extra files and symlinks added for the two part wx-config version. Removed the debian -contrib packages. We'll use multi-lib support to manage them from now on and indiviual libs can be split out along functional lines if required. This means the retained contribs will now get __WXDEBUG__ versions packaged too. Removed conflicts from almost packages except i18n and wxPython. All packages now either update or install alongside any existing ones. Added support for flavoured debs as well. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29241 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-21 17:16:29 +00:00
dnl ### begin block 1_COND_USE_ODBC_1 ###
COND_USE_ODBC_1="#"
if test "x$USE_ODBC" = "x1" ; then
COND_USE_ODBC_1=""
fi
AC_SUBST(COND_USE_ODBC_1)
dnl ### begin block 1_COND_USE_OPENGL_1 ###
COND_USE_OPENGL_1="#"
if test "x$USE_OPENGL" = "x1" ; then
COND_USE_OPENGL_1=""
fi
AC_SUBST(COND_USE_OPENGL_1)
dnl ### begin block 1_COND_USE_PLUGINS_0 ###
COND_USE_PLUGINS_0="#"
if test "x$USE_PLUGINS" = "x0" ; then
COND_USE_PLUGINS_0=""
fi
AC_SUBST(COND_USE_PLUGINS_0)
dnl ### begin block 1_COND_USE_SOSYMLINKS_1 ###
COND_USE_SOSYMLINKS_1="#"
if test "x$USE_SOSYMLINKS" = "x1" ; then
COND_USE_SOSYMLINKS_1=""
fi
AC_SUBST(COND_USE_SOSYMLINKS_1)
dnl ### begin block 1_COND_USE_SOVERLINUX_1 ###
COND_USE_SOVERLINUX_1="#"
if test "x$USE_SOVERLINUX" = "x1" ; then
COND_USE_SOVERLINUX_1=""
fi
AC_SUBST(COND_USE_SOVERLINUX_1)
dnl ### begin block 1_COND_USE_SOVERSION_0 ###
COND_USE_SOVERSION_0="#"
if test "x$USE_SOVERSION" = "x0" ; then
COND_USE_SOVERSION_0=""
fi
AC_SUBST(COND_USE_SOVERSION_0)
dnl ### begin block 1_COND_USE_SOVERSOLARIS_1 ###
COND_USE_SOVERSOLARIS_1="#"
if test "x$USE_SOVERSOLARIS" = "x1" ; then
COND_USE_SOVERSOLARIS_1=""
fi
AC_SUBST(COND_USE_SOVERSOLARIS_1)
dnl ### begin block 1_COND_USE_XRC_1 ###
COND_USE_XRC_1="#"
if test "x$USE_XRC" = "x1" ; then
COND_USE_XRC_1=""
fi
AC_SUBST(COND_USE_XRC_1)
dnl ### begin block 1_COND_WITH_PLUGIN_SDL_1 ###
COND_WITH_PLUGIN_SDL_1="#"
if test "x$WITH_PLUGIN_SDL" = "x1" ; then
COND_WITH_PLUGIN_SDL_1=""
fi
AC_SUBST(COND_WITH_PLUGIN_SDL_1)
dnl ### begin block 1_COND_WXUNIV_1 ###
COND_WXUNIV_1="#"
if test "x$WXUNIV" = "x1" ; then
COND_WXUNIV_1=""
fi
AC_SUBST(COND_WXUNIV_1)
dnl ### begin block 1_COND_WXUSE_EXPAT_BUILTIN ###
COND_WXUSE_EXPAT_BUILTIN="#"
if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
COND_WXUSE_EXPAT_BUILTIN=""
fi
AC_SUBST(COND_WXUSE_EXPAT_BUILTIN)
dnl ### begin block 1_COND_WXUSE_LIBJPEG_BUILTIN ###
COND_WXUSE_LIBJPEG_BUILTIN="#"
if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
COND_WXUSE_LIBJPEG_BUILTIN=""
fi
AC_SUBST(COND_WXUSE_LIBJPEG_BUILTIN)
dnl ### begin block 1_COND_WXUSE_LIBPNG_BUILTIN ###
COND_WXUSE_LIBPNG_BUILTIN="#"
if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
COND_WXUSE_LIBPNG_BUILTIN=""
fi
AC_SUBST(COND_WXUSE_LIBPNG_BUILTIN)
dnl ### begin block 1_COND_WXUSE_LIBTIFF_BUILTIN ###
COND_WXUSE_LIBTIFF_BUILTIN="#"
if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
COND_WXUSE_LIBTIFF_BUILTIN=""
fi
AC_SUBST(COND_WXUSE_LIBTIFF_BUILTIN)
dnl ### begin block 1_COND_WXUSE_ODBC_BUILTIN ###
COND_WXUSE_ODBC_BUILTIN="#"
if test "x$wxUSE_ODBC" = "xbuiltin" ; then
COND_WXUSE_ODBC_BUILTIN=""
fi
AC_SUBST(COND_WXUSE_ODBC_BUILTIN)
dnl ### begin block 1_COND_WXUSE_REGEX_BUILTIN ###
COND_WXUSE_REGEX_BUILTIN="#"
if test "x$wxUSE_REGEX" = "xbuiltin" ; then
COND_WXUSE_REGEX_BUILTIN=""
fi
AC_SUBST(COND_WXUSE_REGEX_BUILTIN)
dnl ### begin block 1_COND_WXUSE_ZLIB_BUILTIN ###
COND_WXUSE_ZLIB_BUILTIN="#"
if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
COND_WXUSE_ZLIB_BUILTIN=""
fi
AC_SUBST(COND_WXUSE_ZLIB_BUILTIN)