summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authordas <das>2007-01-19 01:05:17 (GMT)
committerdas <das>2007-01-19 01:05:17 (GMT)
commita39d4d781f6644a3e44366d9eb269202d0616650 (patch)
tree0df897a114c850b51ed6bfd4839a4baa00023737 /unix/tcl.m4
parent503ea6c359a378c7fd1e6607557e090c450c2f99 (diff)
downloadtk-a39d4d781f6644a3e44366d9eb269202d0616650.zip
tk-a39d4d781f6644a3e44366d9eb269202d0616650.tar.gz
tk-a39d4d781f6644a3e44366d9eb269202d0616650.tar.bz2
* macosx/Wish.xcodeproj/project.pbxproj: remove libtommath defines.
* unix/tcl.m4: ensure CPPFLAGS env var is used when set. [Bug 1586861] (Darwin): add -isysroot and -mmacosx-version-min flags to CPPFLAGS when present in CFLAGS to avoid discrepancies between what headers configure sees during preprocessing tests and compiling tests. * unix/configure: autoconf-2.59
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m47
1 files changed, 7 insertions, 0 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index 140d25a..34b9f7a 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -1113,6 +1113,7 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`'
ECHO_VERSION='`echo ${VERSION}`'
TCL_LIB_VERSIONS_OK=ok
+ CFLAGS="${CPPFLAGS} ${CFLAGS}"
CFLAGS_DEBUG=-g
CFLAGS_OPTIMIZE=-O
if test "$GCC" = "yes" ; then
@@ -1574,6 +1575,12 @@ dnl AC_CHECK_TOOL(AR, ar)
Darwin-*)
CFLAGS_OPTIMIZE="-Os"
SHLIB_CFLAGS="-fno-common"
+ # To avoid discrepancies between what headers configure sees during
+ # preprocessing tests and compiling tests, add any -isysroot and
+ # -mmacosx-version-min flags present in CFLAGS to CPPFLAGS:
+ CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \
+ awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=1;i<=NF;i++) \
+ if ([$]i~/^(isysroot|mmacosx-version-min)/) print "-"[$]i}'`"
if test $do64bit = yes; then
case `arch` in
ppc)