home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 1
/
ADE-1.bin
/
ade-dist
/
ade-misc-src.tgz
/
ade-misc-src.tar
/
scripts
/
autoconf.all
next >
Wrap
Text File
|
1996-09-28
|
846b
|
39 lines
#!/bin/sh
#
# Given a list of configure.in files in $1, remake the
# corresponding "configure" script using the latest installed
# version of autoconf. Useful to remake all configure scripts
# when autoconf is updated. Skips configure.in files that are
# not meant to be fed to autoconf.
rootdir=`pwd`
for i in `cat $1`
do
echo "=== $i ==="
if grep AC_INIT $i >/dev/null 2>&1
then
dir=`dirname $i`
if test -f $dir/configure
then
cd $dir
/bin/autoconf
# special hack for broken autoconf 2.9
sed "s:^char main:int main:" <configure >junkfile
if cmp junkfile configure >/dev/null 2>&1
then
true
rm -f junkfile
else
echo "Fixed up char main refs"
rm -f configure
mv junkfile configure
fi
cd $rootdir
else
echo "No configure script in $dir to rebuild"
fi
else
echo "No autoconf processing necessary"
fi
done