]> sjero.net Git - wget/commitdiff
[svn] Substitute ANSI2KNR again.
authorhniksic <devnull@localhost>
Wed, 5 Nov 2003 14:03:31 +0000 (06:03 -0800)
committerhniksic <devnull@localhost>
Wed, 5 Nov 2003 14:03:31 +0000 (06:03 -0800)
ChangeLog
configure.in

index 759012fdc7ce0de4ce6620bc235ac8fce491b9a6..8f1368fb5700f91c50bc6d8f911dd2f565e88cda 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-11-05  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * configure.in: Substitute ANSI2KNR and U, so we can compile.
+
 2003-11-05  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * configure.in: Use the Autoconf macro AC_C_PROTOTYPES instead of
index 6d78831172b649c23d2c4928f0abbce1d6e0cfa1..be88f48f00d21d0edcfd184d865422a4de26c5a9 100644 (file)
@@ -109,12 +109,16 @@ test -z "$CFLAGS"  && CFLAGS= auto_cflags=1
 test -z "$CC" && cc_specified=yes
 
 AC_PROG_CC
+AC_AIX
+AM_PROG_CC_STDC
 
+dnl Turn on optimization by default.  Specifically:
 dnl
 dnl if the user hasn't specified CFLAGS, then
-dnl   if compiler is gcc, then use -O2 and some warning flags
-dnl   else use os-specific flags or -O
-dnl
+dnl   if compiler is gcc, then
+dnl     use -O2 and some warning flags
+dnl   else
+dnl     use os-specific flags or -O
 if test -n "$auto_cflags"; then
   if test -n "$GCC"; then
     CFLAGS="$CFLAGS -O2 -Wall -Wno-implicit"
@@ -127,11 +131,6 @@ if test -n "$auto_cflags"; then
   fi
 fi
 
-dnl
-dnl Handle AIX
-dnl
-AC_AIX
-
 dnl
 dnl Configure our included libtool and make sure it's regenerated when needed
 dnl
@@ -157,8 +156,17 @@ AC_C_VOLATILE
 AC_C_BIGENDIAN
 AC_C_PROTOTYPES
 
+if test x"$am_cv_prog_cc_stdc" != xno; then
+  true
+  AC_SUBST(U, [])
+  AC_SUBST(ANSI2KNR, [])
+else
+  AC_SUBST(U, [_])
+  AC_SUBST(ANSI2KNR, [./ansi2knr])
+fi
+
 dnl
-dnl Checks for headers that might be missing.
+dnl Checks for header files that might be missing.
 dnl
 
 dnl Check for basic headers, even those we assume the presence of.