-(cd gdb; libtoolize --copy --force; aclocal; autoconf)
-(cd gdb/doc; autoconf)
-(cd gdb/testsuite; autoconf)
-(cd gdb/testsuite/gdb.asm; autoconf)
-(cd gdb/testsuite/gdb.base; autoconf)
-(cd gdb/testsuite/gdb.c++; autoconf)
-(cd gdb/testsuite/gdb.chill; autoconf)
-(cd gdb/testsuite/gdb.disasm; autoconf)
-(cd gdb/testsuite/gdb.fortran; autoconf)
-(cd gdb/testsuite/gdb.java; autoconf)
-(cd gdb/testsuite/gdb.mi; autoconf)
-(cd gdb/testsuite/gdb.stabs; autoconf)
-(cd gdb/testsuite/gdb.threads; autoconf)
-(cd gdb/testsuite/gdb.trace; autoconf)
-(cd gdb/gdbserver; autoconf)
-# !! Don't enable shared here !!
+for dir in `find gdb/ -name 'configure.in'`; do
+ dir=$(dirname "$dir")
+ olddir=$(pwd)
+ cd $dir
+ rm -f aclocal.m4
+ %{__aclocal}
+ %{__autoconf}
+ cd $olddir
+done
+cp -f /usr/share/automake/config.* .
+# !! Don't enable shared here !!