Tcl Source Code

Artifact [72c52ff0a9]
Login

Artifact 72c52ff0a992a9c175a721377b63ed2fe68f94f7:

Attachment "tcl-8.4-autoconf.patch" to ticket [1231020fff] added by dgp 2005-07-01 22:27:27.
--- tcl8.4.11/unix/configure.in.ac213	2005-06-30 15:01:24.000000000 +0900
+++ tcl8.4.11/unix/configure.in	2005-06-30 22:53:17.000000000 +0900
@@ -217,7 +217,7 @@
         AC_MSG_RESULT(yes)
     else
         AC_MSG_RESULT([broken, using substitute])
-        LIBOBJS="$LIBOBJS strstr.o"
+        AC_LIBOBJ(strstr)
     fi
 fi
 
@@ -243,7 +243,7 @@
 }], , tcl_ok=0, tcl_ok=0)
 if test "$tcl_ok" = 0; then
     test -n "$verbose" && echo "	Adding strtoul.o."
-    LIBOBJS="$LIBOBJS strtoul.o"
+    AC_LIBOBJ(strtoul)
 fi
 
 #--------------------------------------------------------------------
@@ -267,7 +267,7 @@
 }], , tcl_ok=0, tcl_ok=0)
 if test "$tcl_ok" = 0; then
     test -n "$verbose" && echo "	Adding strtod.o."
-    LIBOBJS="$LIBOBJS strtod.o"
+    AC_LIBOBJ(strtod)
 fi
 
 #--------------------------------------------------------------------
@@ -349,7 +349,7 @@
     AC_CHECK_LIB(inet, strncasecmp, tcl_ok=1, tcl_ok=0)
 fi
 if test "$tcl_ok" = 0; then
-    LIBOBJS="$LIBOBJS strncasecmp.o"
+    AC_LIBOBJ(strncasecmp)
 fi
 
 #--------------------------------------------------------------------
--- tcl8.4.11/unix/tcl.m4.ac213	2005-06-30 15:01:25.000000000 +0900
+++ tcl8.4.11/unix/tcl.m4	2005-06-30 15:01:25.000000000 +0900
@@ -952,7 +952,7 @@
 
 	    # AIX v<=4.1 has some different flags than 4.2+
 	    if test "$system" = "AIX-4.1" -o "`uname -v`" -lt "4" ; then
-		LIBOBJS="$LIBOBJS tclLoadAix.o"
+		AC_LIBOBJ(tclLoadAix)
 		DL_LIBS="-lld"
 	    fi
 
@@ -1194,7 +1194,7 @@
 	    # is kind of overkill but it works.
 	    # Disable inlining only when one of the
 	    # files in compat/*.c is being linked in.
-	    if test x"${LIBOBJS}" != x ; then
+	    if test x"${LIB@&t@OBJS}" != x ; then
 	        CFLAGS="$CFLAGS -fno-inline"
 	    fi
 
@@ -2406,7 +2406,7 @@
 	    AC_MSG_RESULT(ok)
 	else
 	    AC_MSG_RESULT(buggy)
-	    LIBOBJS="$LIBOBJS fixstrtod.o"
+	    AC_LIBOBJ(fixstrtod)
 	    AC_DEFINE(strtod, fixstrtod)
 	fi
     fi