From 620cb3d9c0ed22fe1aa2b68b929c918be52b32d2 Mon Sep 17 00:00:00 2001
From: David Raila <raila@illinois.edu>
Date: Tue, 30 Sep 2008 20:55:25 +0000
Subject: [PATCH] Improve autogen.sh.

---
 Makefile.am | 2 ++
 autogen.sh  | 9 ++-------
 2 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index cd90b6c..52f2caf 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,6 +2,8 @@
 
 ACLOCAL_AMFLAGS = -I m4
 
+AUTOMAKE_OPTIONS = foreign
+
 SUBDIRS = src
 
 EXTRA_DIST =                                                                 \
diff --git a/autogen.sh b/autogen.sh
index 34a4d2e..9650eb7 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -15,13 +15,8 @@ fi
 
 set -ex
 
-rm -rf autom4te.cache
-
-aclocal-1.9 --force -I m4
-libtoolize -c -f
-autoheader -f -W all
-automake-1.9 --foreign -a -c -f -W all
-autoconf -f -W all,no-obsolete
+# TODO(kenton):  Use -Wall and fix the resulting warnings.
+autoreconf -f -i
 
 rm -rf autom4te.cache config.h.in~
 exit 0
-- 
GitLab