From 97607b188261d4055d4e494006cd1b06ff87998a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Sat, 28 Feb 1998 18:17:48 +0100
Subject: [PATCH] Added support for automake.

Rev: src/run_autoconfig:1.17
---
 src/run_autoconfig | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/run_autoconfig b/src/run_autoconfig
index c31d89c19e..183a323d1f 100755
--- a/src/run_autoconfig
+++ b/src/run_autoconfig
@@ -6,6 +6,15 @@ need_to_make_depend=no
 
 
 find . -type d -print|egrep -v '/(CVS)|(RCS)$'| while read dir; do
+
+  if [ -f $dir/Makefile.am ]; then
+    # aclocal needs to be run before autoconf
+    echo "Running aclocal in $dir"
+    (cd $dir ; aclocal)
+    echo "Running automake in $dir"
+    (cd $dir ; automake)
+  fi
+
   if [ -f $dir/acconfig.h -a $dir/configure.in ]; then
     echo "Running autoheader in $dir"
     ( cd $dir ; autoheader && echo foo >stamp-h.in )
-- 
GitLab