summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authordas <das>2008-12-21 20:55:07 (GMT)
committerdas <das>2008-12-21 20:55:07 (GMT)
commitf69a43285ec023f34a9913bfa55a317349a294df (patch)
tree4c792cdbc0e69cf5b1d110f53072a03d3fb7498c /unix
parent0a46541079d09b6cbf9e334447c4d744ad67e588 (diff)
downloadtcl-f69a43285ec023f34a9913bfa55a317349a294df.zip
tcl-f69a43285ec023f34a9913bfa55a317349a294df.tar.gz
tcl-f69a43285ec023f34a9913bfa55a317349a294df.tar.bz2
* unix/configure.in: Preserve configure environment variables for
sub-configures of bundled packages; reuse configure cache file for sub-configures.
Diffstat (limited to 'unix')
-rw-r--r--unix/configure.in22
1 files changed, 19 insertions, 3 deletions
diff --git a/unix/configure.in b/unix/configure.in
index 6c694f6..607ac02 100644
--- a/unix/configure.in
+++ b/unix/configure.in
@@ -3,7 +3,7 @@ dnl This file is an input file used by the GNU "autoconf" program to
dnl generate the file "configure", which is run during Tcl installation
dnl to configure the system for the local environment.
#
-# RCS: @(#) $Id: configure.in,v 1.201 2008/12/20 01:11:10 das Exp $
+# RCS: @(#) $Id: configure.in,v 1.202 2008/12/21 20:55:07 das Exp $
AC_INIT([tcl],[8.6])
AC_PREREQ(2.59)
@@ -30,7 +30,24 @@ TCL_MINOR_VERSION=6
TCL_PATCH_LEVEL="b1"
VERSION=${TCL_VERSION}
-PKG_CFG_ARGS=$@
+#------------------------------------------------------------------------
+# Setup configure arguments for bundled packages
+#------------------------------------------------------------------------
+
+PKG_CFG_ARGS="$@ ${PKG_CFG_ARGS}"
+
+# Ensure environment of sub-configure is the same as ours
+for v in CC CPP CFLAGS CPPFLAGS LDFLAGS; do
+ eval 'test -n "$'$v'" && PKG_CFG_ARGS="$v=\"$'$v'\" $PKG_CFG_ARGS"'
+done
+
+if test -r "$cache_file" -a -f "$cache_file"; then
+ case $cache_file in
+ [[\\/]]* | ?:[[\\/]]* ) pkg_cache_file=$cache_file ;;
+ *) pkg_cache_file=../../$cache_file ;;
+ esac
+ PKG_CFG_ARGS="${PKG_CFG_ARGS} --cache-file=$pkg_cache_file"
+fi
#------------------------------------------------------------------------
# Handle the --prefix=... option
@@ -126,7 +143,6 @@ AC_CHECK_HEADER([zlib.h],[
AS_IF([test $zlib_ok = yes], [
AC_SEARCH_LIBS([deflateSetHeader],[z],[],[
zlib_ok=no
- AC_MSG_WARN([todo: Add compat/zlib to list of things to build])
])])
AS_IF([test $zlib_ok = no], [
AC_SUBST(ZLIB_DIR,[\${COMPAT_DIR}/zlib])