summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authordas <das>2008-12-21 20:55:29 (GMT)
committerdas <das>2008-12-21 20:55:29 (GMT)
commit838c80d4b78d69a982225311bdb5db92339f7b01 (patch)
treee8444d4d576a7aa40c8632042ed9e3bbe92819c0 /unix
parentf69a43285ec023f34a9913bfa55a317349a294df (diff)
downloadtcl-838c80d4b78d69a982225311bdb5db92339f7b01.zip
tcl-838c80d4b78d69a982225311bdb5db92339f7b01.tar.gz
tcl-838c80d4b78d69a982225311bdb5db92339f7b01.tar.bz2
* unix/configure: autoconf-2.59
Diffstat (limited to 'unix')
-rwxr-xr-xunix/configure21
1 files changed, 18 insertions, 3 deletions
diff --git a/unix/configure b/unix/configure
index afa9ca5..34d2782 100755
--- a/unix/configure
+++ b/unix/configure
@@ -1338,7 +1338,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
@@ -6262,8 +6279,6 @@ if test "$ac_cv_search_deflateSetHeader" != no; then
else
zlib_ok=no
- { echo "$as_me:$LINENO: WARNING: todo: Add compat/zlib to list of things to build" >&5
-echo "$as_me: WARNING: todo: Add compat/zlib to list of things to build" >&2;}
fi