blob: 7169c9adc7d2c8a31ee13db0e7d578824c4280de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
$NetBSD: patch-configure.ac,v 1.3 2013/07/04 21:27:58 adam Exp $
Fix configuring on Darwin with newer Xcode.
--- configure.ac.orig 2013-05-09 21:53:17.000000000 +0000
+++ configure.ac
@@ -135,22 +135,6 @@ case "${host_os}" in
;;
darwin*)
- dnl Force gcc "-arch" flag
- ARCH_flag=""
- case "${host}" in
- i?86*)
- ARCH_flag="-arch i386"
- ;;
- ppc64*)
- ARCH_flag="-arch ppc64"
- ;;
- ppc*)
- ARCH_flag="-arch ppc"
- ;;
- x86_64*)
- ARCH_flag="-arch x86_64"
- ;;
- esac
SYS=darwin
CFLAGS_save="${CFLAGS_save} -D_INTL_REDIRECT_MACROS ${ARCH_flag}"; CFLAGS="${CFLAGS_save}"
@@ -175,37 +159,6 @@ case "${host_os}" in
AC_LIBOBJ([strndup])
AC_LIBOBJ([strnlen])],)
- dnl
- dnl Check for Mac OS X SDK settings
- dnl
- AC_ARG_WITH(macosx-sdk,
- [AS_HELP_STRING([--with-macosx-sdk=DIR],
- [compile using the SDK in DIR])])
- test "${with_macosx_sdk}" = "" && with_macosx_sdk=/Developer/SDKs/MacOSX10.6.sdk
- test ! -d "${with_macosx_sdk}" && AC_MSG_ERROR([SDK "${with_macosx_sdk}" not found])
- CPP="${CPP} -isysroot ${with_macosx_sdk}"
- CC="${CC} -isysroot ${with_macosx_sdk}"
- CXX="${CXX} -isysroot ${with_macosx_sdk}"
- OBJC="${OBJC} -isysroot ${with_macosx_sdk}"
- LD="${LD} -syslibroot ${with_macosx_sdk}"
- AC_ARG_WITH(macosx-version-min,
- [AS_HELP_STRING([--with-macosx-version-min=VERSION],
- [compile for MacOS X VERSION and above])])
- if test "${with_macosx_version_min}" = "" ; then
- with_macosx_version_min=10.5
- fi
- if test "${with_macosx_version_min}" != "" ; then
- CPP="${CPP} -mmacosx-version-min=${with_macosx_version_min}"
- CC="${CC} -mmacosx-version-min=${with_macosx_version_min}"
- CXX="${CXX} -mmacosx-version-min=${with_macosx_version_min}"
- OBJC="${OBJC} -mmacosx-version-min=${with_macosx_version_min}"
- LD="${LD} -macosx_version_min=${with_macosx_version_min}"
- CFLAGS_save="${CFLAGS_save} -DMACOSX_DEPLOYMENT_TARGET=${with_macosx_version_min}"; CFLAGS="${CFLAGS_save}"
- CXXFLAGS_save="${CXXFLAGS_save} -DMACOSX_DEPLOYMENT_TARGET=${with_macosx_version_min}"; CXXFLAGS="${CXXFLAGS_save}"
- OBJCFLAGS_save="${OBJCFLAGS_save} -DMACOSX_DEPLOYMENT_TARGET=${with_macosx_version_min}"; OBJCFLAGS="${OBJCFLAGS_save}"
- MACOSX_DEPLOYMENT_TARGET=${with_macosx_version_min}
- export MACOSX_DEPLOYMENT_TARGET
- fi
;;
*mingw32* | *cygwin* | *wince* | *mingwce*)
AC_CHECK_TOOL(WINDRES, windres, :)
|