diff options
author | das <das> | 2007-01-19 01:05:17 (GMT) |
---|---|---|
committer | das <das> | 2007-01-19 01:05:17 (GMT) |
commit | 1db742bc9e473d2b3172fdc5328b673a301ec365 (patch) | |
tree | 0df897a114c850b51ed6bfd4839a4baa00023737 /unix/configure | |
parent | 75ccccac84a02f2efe7d0cbf26581f83661cf935 (diff) | |
download | tk-1db742bc9e473d2b3172fdc5328b673a301ec365.zip tk-1db742bc9e473d2b3172fdc5328b673a301ec365.tar.gz tk-1db742bc9e473d2b3172fdc5328b673a301ec365.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/configure')
-rwxr-xr-x | unix/configure | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/unix/configure b/unix/configure index d8fb139..ac93cfb 100755 --- a/unix/configure +++ b/unix/configure @@ -4747,6 +4747,7 @@ fi 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 @@ -5642,6 +5643,12 @@ echo "${ECHO_T}$tcl_cv_ld_elf" >&6 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) |