1999-04-17 00:37:12 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
1999-04-24 22:16:06 +00:00
|
|
|
disclaimer="Do NOT edit - this file is generated by preconfig"
|
|
|
|
|
|
|
|
# security check - simply overwriting existing files could be harmful
|
1999-04-25 00:55:01 +00:00
|
|
|
if test -f configure.in.new || test -f acconfig.h.new ; then
|
1999-04-24 22:16:06 +00:00
|
|
|
echo "Please remove the *.new files and rerun this command"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
1999-04-17 00:37:12 +00:00
|
|
|
makefiles=`echo ext/*/Makefile.am | sed -e 's/\.am//g'`
|
1999-04-24 22:16:06 +00:00
|
|
|
echo "dnl $disclaimer" > configure.in.new
|
|
|
|
sed -e "s#@@EXT_MAKEFILES@@#$makefiles#" configure.in.in >> configure.in.new
|
1999-04-24 21:21:35 +00:00
|
|
|
cmp configure.in configure.in.new > /dev/null 2>&1
|
|
|
|
if test $? -ne 0 ; then
|
1999-04-19 17:19:37 +00:00
|
|
|
mv configure.in.new configure.in
|
|
|
|
else
|
|
|
|
rm -f configure.in.new
|
|
|
|
fi
|
|
|
|
|
1999-04-24 22:16:06 +00:00
|
|
|
echo "/* $disclaimer */" > acconfig.h.new
|
|
|
|
cat acconfig.h.in >> acconfig.h.new
|
1999-04-19 17:19:37 +00:00
|
|
|
confighfiles=`echo ext/*/config.h.stub`
|
|
|
|
if test "$confighfiles" != "ext/*/config.h.stub"; then
|
|
|
|
for file in $confighfiles; do
|
|
|
|
cat $file >> acconfig.h.new
|
|
|
|
done
|
|
|
|
fi
|
1999-04-24 21:21:35 +00:00
|
|
|
cmp acconfig.h acconfig.h.new > /dev/null 2>&1
|
|
|
|
if test $? -ne 0 ; then
|
1999-04-19 17:19:37 +00:00
|
|
|
mv acconfig.h.new acconfig.h
|
|
|
|
else
|
|
|
|
rm -f acconfig.h.new
|
|
|
|
fi
|