Allow passing the list of architectures to --enable-universal_binary.
Interpret --enable-universal_binary argument as a comma-separated list of architectures to use. By default still use all the supported ones. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70705 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
94
configure
vendored
94
configure
vendored
@@ -1,5 +1,5 @@
|
||||
#! /bin/sh
|
||||
# From configure.in Id: configure.in 70353 2012-01-15 14:46:41Z VZ .
|
||||
# From configure.in Id.
|
||||
# Guess values for system-dependent variables and create Makefiles.
|
||||
# Generated by GNU Autoconf 2.61 for wxWidgets 2.9.4.
|
||||
#
|
||||
@@ -1734,7 +1734,7 @@ Optional Features:
|
||||
--enable-permissive compile code disregarding strict ANSI
|
||||
--enable-no_deps create code without dependency information
|
||||
--disable-vararg_macros don't use vararg macros, even if they are supported
|
||||
--enable-universal_binary create universal binary with Mac PPC and i386 (and x86_64 if using Cocoa) architectures
|
||||
--enable-universal_binary=archs create universal binary for the specified (or all supported) architectures
|
||||
--enable-macosx_arch=ARCH build for just the specified architecture
|
||||
--enable-compat26 enable wxWidgets 2.6 compatibility
|
||||
--disable-compat28 disable wxWidgets 2.8 compatibility
|
||||
@@ -19213,62 +19213,46 @@ if test "$wxUSE_MAC" = 1; then
|
||||
retest_macosx_linking=no
|
||||
|
||||
OSX_ARCH_OPTS=""
|
||||
if test "x$wxUSE_MAC_ARCH" != xno; then
|
||||
OSX_ARCH_OPTS="-arch $wxUSE_MAC_ARCH"
|
||||
fi
|
||||
|
||||
if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
|
||||
if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
|
||||
# Implicitly turn on the new --with-macosx-sdk using the default
|
||||
# SDK which provides the behaviour this option has always had.
|
||||
if test "x$wxUSE_MACOSX_SDK" = "x"; then
|
||||
{ echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
|
||||
echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
|
||||
{ echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
|
||||
echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
|
||||
wxUSE_MACOSX_SDK=yes
|
||||
fi
|
||||
else
|
||||
# Complain to user if he specified an argument to --enable-universal_binary
|
||||
# and also 1) specified --with-macosx-sdk using the default (yes) or
|
||||
# 2) specified --with-macosx-sdk using a path or 3) specified
|
||||
# --without-macosx-sdk (no).
|
||||
if test "x$wxUSE_MACOSX_SDK" != "x" ; then
|
||||
{ { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
|
||||
See \`config.log' for more details." >&5
|
||||
echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
|
||||
See \`config.log' for more details." >&2;}
|
||||
{ (exit 1); exit 1; }; }
|
||||
else
|
||||
# Put the SDK path into the wxUSE_MACOSX_SDK. We don't have to
|
||||
# special-case the empty string because the below test simply
|
||||
# converts "no" to the empty string anyway.
|
||||
wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
|
||||
{ echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
|
||||
echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
|
||||
fi
|
||||
fi
|
||||
OSX_ARCH_OPTS="-arch ppc -arch i386"
|
||||
if test "$wxUSE_OSX_COCOA" = 1; then
|
||||
OSX_ARCH_OPTS="$OSX_ARCH_OPTS -arch x86_64"
|
||||
fi
|
||||
{ echo "$as_me:$LINENO: checking for universal binary architectures" >&5
|
||||
echo $ECHO_N "checking for universal binary architectures... $ECHO_C" >&6; }
|
||||
{ echo "$as_me:$LINENO: result: $OSX_ARCH_OPTS" >&5
|
||||
echo "${ECHO_T}$OSX_ARCH_OPTS" >&6; }
|
||||
|
||||
retest_macosx_linking=yes
|
||||
|
||||
{ echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
|
||||
echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
|
||||
bk_use_pch=no
|
||||
if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
|
||||
if test "x$wxUSE_MAC_ARCH" != xno; then
|
||||
{ echo "$as_me:$LINENO: WARNING: --enable-macosx_arch is ignored when --enable-universal_binary is used." >&5
|
||||
echo "$as_me: WARNING: --enable-macosx_arch is ignored when --enable-universal_binary is used." >&2;}
|
||||
fi
|
||||
|
||||
CXXFLAGS="$OSX_ARCH_OPTS $CXXFLAGS"
|
||||
CFLAGS="$OSX_ARCH_OPTS $CFLAGS"
|
||||
OBJCXXFLAGS="$OSX_ARCH_OPTS $OBJCXXFLAGS"
|
||||
OBJCFLAGS="$OSX_ARCH_OPTS $OBJCFLAGS"
|
||||
LDFLAGS="$OSX_ARCH_OPTS $LDFLAGS"
|
||||
if test "x$wxUSE_UNIVERSAL_BINARY" != xyes; then
|
||||
OSX_ARCH_OPTS=$wxUSE_UNIVERSAL_BINARY
|
||||
else OSX_ARCH_OPTS="ppc,i386"
|
||||
if test "$wxUSE_OSX_COCOA" = 1; then
|
||||
OSX_ARCH_OPTS="$OSX_ARCH_OPTS,x86_64"
|
||||
fi
|
||||
fi
|
||||
|
||||
{ echo "$as_me:$LINENO: checking for architectures to use in universal binary" >&5
|
||||
echo $ECHO_N "checking for architectures to use in universal binary... $ECHO_C" >&6; }
|
||||
{ echo "$as_me:$LINENO: result: $OSX_ARCH_OPTS" >&5
|
||||
echo "${ECHO_T}$OSX_ARCH_OPTS" >&6; }
|
||||
|
||||
retest_macosx_linking=yes
|
||||
|
||||
{ echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
|
||||
echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
|
||||
bk_use_pch=no
|
||||
else
|
||||
if test "x$wxUSE_MAC_ARCH" != xno; then
|
||||
OSX_ARCH_OPTS=$wxUSE_MAC_ARCH
|
||||
fi
|
||||
fi
|
||||
|
||||
if test "x$OSX_ARCH_OPTS" != "x"; then
|
||||
OSX_ARCH_OPTS=`echo $OSX_ARCH_OPTS | sed -e 's/^/-arch /' -e 's/,/ -arch /g'`
|
||||
|
||||
CXXFLAGS="$OSX_ARCH_OPTS $CXXFLAGS"
|
||||
CFLAGS="$OSX_ARCH_OPTS $CFLAGS"
|
||||
OBJCXXFLAGS="$OSX_ARCH_OPTS $OBJCXXFLAGS"
|
||||
OBJCFLAGS="$OSX_ARCH_OPTS $OBJCFLAGS"
|
||||
LDFLAGS="$OSX_ARCH_OPTS $LDFLAGS"
|
||||
fi
|
||||
|
||||
if test "x$wxUSE_MACOSX_SDK" = "xno"; then
|
||||
wxUSE_MACOSX_SDK=
|
||||
|
Reference in New Issue
Block a user