diff options
author | das <das@noemail.net> | 2007-01-19 01:05:48 (GMT) |
---|---|---|
committer | das <das@noemail.net> | 2007-01-19 01:05:48 (GMT) |
commit | b52c19b6d7538720fca0e67f0e38eb8872e8741a (patch) | |
tree | b2b9c20e338ad125a57c7b21002cd723febbec04 /unix/tcl.m4 | |
parent | d02f9d64cd89392313f831a7e6a2df54197bb802 (diff) | |
download | tcl-b52c19b6d7538720fca0e67f0e38eb8872e8741a.zip tcl-b52c19b6d7538720fca0e67f0e38eb8872e8741a.tar.gz tcl-b52c19b6d7538720fca0e67f0e38eb8872e8741a.tar.bz2 |
* macosx/tclMacOSXNotify.c: accommodate changes to prototypes of
OSSpinLock(Un)Lock API.
* tests/env.test: add extra system env vars that need to be preserved
on some Mac OS X versions for testsuite to work.
* 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.13
FossilOrigin-Name: b9b6ddc3498588189763d36228cb32ba4af2d89b
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r-- | unix/tcl.m4 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4 index 13f533a..56142d7 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -1039,6 +1039,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 @@ -1559,6 +1560,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) |