diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 148b659313f1a77b2207b5231089edcd5fa09e4c..555a1e373aa30e4ad1efa49e6c7fdeeb5334736a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
 2004-01-03  Nathanael Nerode  <neroden@gcc.gnu.org>
 
+	* configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
+	with modern equivalents.
+	* configure: Regenerate.
+
         * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
         * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
         * configure: Regenerate.
diff --git a/gcc/configure b/gcc/configure
index 40d3b6a2423a3ff92b0207f922425aa149cfa7f5..e0825eaffc09a654f80ccdb1fe2d3a7c58350a88 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -1326,6 +1326,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
 
 
+
           ac_config_headers="$ac_config_headers auto-host.h:config.in"
 
 
@@ -4983,7 +4984,7 @@ if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then
 else
     ac_prog_version=`$MAKEINFO --version 2>&1 |
                    sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
-  echo "configure:4986: version of makeinfo is $ac_prog_version" >&5
+  echo "configure:4987: version of makeinfo is $ac_prog_version" >&5
   case $ac_prog_version in
     '')     gcc_cv_prog_makeinfo_modern=no;;
     4.[2-9]*)
@@ -12056,7 +12057,10 @@ fi
 # Create the Makefile
 # and configure language subdirectories
           ac_config_files="$ac_config_files $all_outputs"
+
+
           ac_config_commands="$ac_config_commands default"
+
 cat >confcache <<\_ACEOF
 # This file is a shell script that caches the results of configure
 # tests run on this system so they can be shared between configure
diff --git a/gcc/configure.ac b/gcc/configure.ac
index cbeb3e16b864b01401b4e95eaaf410325c783948..e8800a6cc82e9bf894a537b9742ef95bca61be79 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -26,11 +26,14 @@
 # --------------------------------
 
 AC_PREREQ(2.57)
-AC_INIT(tree.c)
+AC_INIT
+AC_CONFIG_SRCDIR(tree.c)
 AC_CONFIG_HEADER(auto-host.h:config.in)
 
 # Determine the host, build, and target systems
-AC_CANONICAL_SYSTEM
+AC_CANONICAL_BUILD
+AC_CANONICAL_HOST
+AC_CANONICAL_TARGET
 
 # Determine the noncanonical target name, for directory use.
 _GCC_TOPLEV_NONCANONICAL_TARGET
@@ -3022,7 +3025,9 @@ fi
 
 # Create the Makefile
 # and configure language subdirectories
-AC_OUTPUT($all_outputs,
+AC_CONFIG_FILES($all_outputs)
+
+AC_CONFIG_COMMANDS([default],
 [
 case ${CONFIG_HEADERS} in
   *auto-host.h:config.in*)
@@ -3055,3 +3060,4 @@ else true ; fi
 [subdirs='$subdirs'
 symbolic_link='$symbolic_link'
 ])
+AC_OUTPUT