summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authormdejong <mdejong>2001-07-11 00:59:30 (GMT)
committermdejong <mdejong>2001-07-11 00:59:30 (GMT)
commitca72133fb3d2bc04fc3174d379f1158b13c1ea10 (patch)
treed14aa693599b86c000b97beeae9f62468b807b23 /unix/tcl.m4
parentdc3fdc08d25b618303a0bd1adef6823a2b3231cb (diff)
downloadtcl-ca72133fb3d2bc04fc3174d379f1158b13c1ea10.zip
tcl-ca72133fb3d2bc04fc3174d379f1158b13c1ea10.tar.gz
tcl-ca72133fb3d2bc04fc3174d379f1158b13c1ea10.tar.bz2
* unix/Makefile.in: Add AR variable for use in STLIB_LD.
* unix/configure: Regen. * unix/configure.in: Use STLIB_LD when defining MAKE_LIB and MAKE_STUB_LIB. Subst RANLIB and AR. * unix/tcl.m4 (SC_CONFIG_CFLAGS): Add doc comment about STLIB_LD command. Check ${AR} env var when setting STLIB_LD and delay evaluation until make time. * win/configure: Regen. * win/tcl.m4 (SC_CONFIG_CFLAGS): Delay evaluation of ${AR} in STLIB_LD and add flags to better match the Unix implementation. Don't bother defining AR when using VC++ since it is not used.
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m47
1 files changed, 6 insertions, 1 deletions
diff --git a/unix/tcl.m4 b/unix/tcl.m4
index fab607f..2e2d6f8 100644
--- a/unix/tcl.m4
+++ b/unix/tcl.m4
@@ -450,6 +450,8 @@ AC_DEFUN(SC_ENABLE_SYMBOLS, [
# MAKE_LIB - Command to execute to build the Tcl library;
# differs depending on whether or not Tcl is being
# compiled as a shared library.
+# STLIB_LD - Base command to use for combining object files
+# into a static library.
# SHLIB_CFLAGS - Flags to pass to cc when compiling the components
# of a shared library (may request position-independent
# code, among other things).
@@ -592,7 +594,10 @@ AC_DEFUN(SC_CONFIG_CFLAGS, [
TCL_NEEDS_EXP_FILE=0
TCL_BUILD_EXP_FILE=""
TCL_EXP_FILE=""
- STLIB_LD="ar cr"
+dnl FIXME: Replace AC_CHECK_PROG with AC_CHECK_TOOL once cross compiling is fixed.
+dnl AC_CHECK_TOOL(AR, ar, :)
+ AC_CHECK_PROG(AR, ar, ar)
+ STLIB_LD='${AR} cr'
case $system in
AIX-5.*)
if test "${TCL_THREADS}" = "1" -a "$using_gcc" = "no" ; then