diff --git a/ares/CHANGES b/ares/CHANGES
index d721dd595c4832975cdbbab150dd9c62b014ffda..88d95cc55fd3631f223e8b6d8ef56f8b45e6079a 100644
--- a/ares/CHANGES
+++ b/ares/CHANGES
@@ -1,5 +1,12 @@
   Changelog for the c-ares project
 
+* May 7 2008 (Daniel Stenberg)
+
+- Doug Goldstein provided a configure patch: updates autoconf 2.13 usage to
+  autoconf 2.57 usage (which is the version you have specified as the minimum
+  version). It's a minor change but it does clean up some warnings with newer
+  autoconf (specifically 2.62).
+
 * May 5 2008 (Yang Tse)
 
 - Improved parsing of resolver configuration files.
diff --git a/ares/configure.ac b/ares/configure.ac
index 0f1a16a0ccb647913984f6e3d6002785eb16a770..f3b80cfd13efd4258d4cf5d31888add4eb558676 100644
--- a/ares/configure.ac
+++ b/ares/configure.ac
@@ -1,11 +1,9 @@
-
-dnl Process this file with autoconf to produce a configure script.
+AC_INIT([c-ares],[1.5.1],[daniel@haxx.se])
 AC_PREREQ(2.57)
-AC_INIT(ares_init.c)
 AC_CONFIG_SRCDIR([ares_ipv6.h])
-AM_CONFIG_HEADER(config.h)
+AM_CONFIG_HEADER([config.h])
 AM_MAINTAINER_MODE
-AM_INIT_AUTOMAKE(c-ares, CVS)
+AM_INIT_AUTOMAKE
 
 dnl
 dnl Detect the canonical host and target build environment
@@ -17,6 +15,8 @@ AC_DEFINE_UNQUOTED(OS, "${host}", [cpu-machine-OS])
 
 AC_AIX
 AC_PROG_CC
+AC_PROG_CC_STDC
+AM_PROG_CC_C_O
 AC_PROG_INSTALL
 
 case $host_os in
@@ -851,4 +851,5 @@ if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
         [a suitable file/device to read random data from])
 fi
 
-AC_OUTPUT(Makefile libcares.pc)
+AC_CONFIG_FILES([Makefile libcares.pc])
+AC_OUTPUT