X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7b7a7637581aef79de8cd017368cf33d10704c7e..956797563c9219995aaa5031afaaf7107af3bf2c:/configure.in diff --git a/configure.in b/configure.in index f27abb2b2f..e270a59fa4 100644 --- a/configure.in +++ b/configure.in @@ -641,6 +641,7 @@ if test $DEBUG_CONFIGURE = 1; then DEFAULT_wxUSE_MEM_TRACING=no DEFAULT_wxUSE_DEBUG_CONTEXT=no DEFAULT_wxUSE_DMALLOC=no + DEFAULT_wxUSE_PRECOMP=yes DEFAULT_wxUSE_APPLE_IEEE=no DEFAULT_wxUSE_LOG=yes @@ -802,6 +803,7 @@ else DEFAULT_wxUSE_MEM_TRACING=no DEFAULT_wxUSE_DEBUG_CONTEXT=no DEFAULT_wxUSE_DMALLOC=no + DEFAULT_wxUSE_PRECOMP=yes DEFAULT_wxUSE_APPLE_IEEE=yes DEFAULT_wxUSE_LOG=yes @@ -1002,10 +1004,6 @@ WX_ARG_SYS_WITH(regex, [ --with-regex enable support for wxRegEx WX_ARG_SYS_WITH(zlib, [ --with-zlib use zlib for LZW compression], wxUSE_ZLIB) WX_ARG_WITH(odbc, [ --with-odbc use the IODBC and wxODBC classes], wxUSE_ODBC) -dnl ==================== -dnl compile-time options -dnl ==================== - dnl --------------------------------------------------------------------------- dnl compile options dnl --------------------------------------------------------------------------- @@ -1015,6 +1013,9 @@ WX_ARG_ENABLE(soname, [ --enable-soname set the DT_SONAME field in WX_ARG_ENABLE(optimise, [ --enable-optimise create optimised code], wxUSE_OPTIMISE) WX_ARG_ENABLE(debug, [ --enable-debug same as debug_flag and debug_info], wxUSE_DEBUG) +dnl allow the precompiled header option to be disabled under Mac OS X +WX_ARG_ENABLE(precomp, [ --enable-precomp enable use of precompiled headers (Mac OS X)], wxUSE_PRECOMP) + if test "$wxUSE_DEBUG" = "yes"; then DEFAULT_wxUSE_DEBUG_FLAG=yes DEFAULT_wxUSE_DEBUG_INFO=yes @@ -1952,14 +1953,16 @@ equivalent variable and GTK+ is version 1.2.3 or above. GUIDIST=MOTIF_DIST fi - dnl we can't call this MAC_DIST or autoconf thinks its a macro if test "$wxUSE_MAC" = 1; then - CPPFLAGS="${CPPFLAGS} -cpp-precomp" + if test "$wxUSE_PRECOMP" = "yes"; then + CPPFLAGS="${CPPFLAGS} -cpp-precomp" + fi CFLAGS="${CFLAGS} -fpascal-strings" CXXFLAGS="${CXXFLAGS} -fpascal-strings" TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DTARGET_CARBON" TOOLKIT=MAC + dnl we can't call this MAC_DIST or autoconf thinks its a macro GUIDIST=MACX_DIST fi @@ -3830,8 +3833,15 @@ if test "$wxUSE_CONSTRAINTS" = "yes"; then fi if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then - AC_DEFINE(wxUSE_MDI_ARCHITECTURE) - SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" + if test "$wxUSE_UNIVERSAL" = "yes"; then + AC_MSG_WARN(MDI is not supported for wxUNIVERSAL yet... disabled) + wxUSE_MDI_ARCHITECTURE=no + fi + + if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then + AC_DEFINE(wxUSE_MDI_ARCHITECTURE) + SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" + fi fi if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then @@ -3853,7 +3863,7 @@ if test "$wxUSE_HELP" = "yes"; then AC_DEFINE(wxUSE_MS_HTML_HELP) ], [ - AC_MSG_WARN([MS HTML Help cannot be used without htmlhelp.h, disabled]) + AC_MSG_WARN([MS HTML Help cannot be used without htmlhelp.h... disabled]) wxUSE_MS_HTML_HELP=no ]) fi @@ -4164,8 +4174,8 @@ if test "$wxUSE_TEXTCTRL" = "yes"; then fi if test "$wxUSE_TOGGLEBTN" = "yes"; then - if test "$wxUSE_MAC" = 1; then - AC_MSG_WARN([Toggle button is not yet supported under Mac OS X]) + if test "$wxUSE_MAC" = 1 -o "$wxUSE_UNIVERSAL" = "yes"; then + AC_MSG_WARN([Toggle button not yet supported under Mac OS X or wxUNIVERSAL... disabled]) wxUSE_TOGGLEBTN=no fi @@ -4431,10 +4441,6 @@ if test "$wxUSE_GUI" = "yes"; then drawing dynamic erase event exec font image \ minimal richedit rotate widgets" - if test "$wxUSE_UNIVERSAL" = "yes" ; then - SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ" - fi - dnl this is needed to be able to find AFM files CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)" else