You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 lines
816 B

#!/bin/sh
#
# $Id$
disclaimer="Do NOT edit - this file is generated by preconfig"
# security check - simply overwriting existing files could be harmful
if test -w acconfig.h.new ; then
echo "Please remove acconfig.h.new and rerun this command"
exit 1
fi
echo "/* $disclaimer */" > acconfig.h.new
cat acconfig.h.in >> acconfig.h.new
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
confighfiles=`echo sapi/*/config.h.stub`
if test "$confighfiles" != "sapi/*/config.h.stub"; then
for file in $confighfiles; do
cat $file >> acconfig.h.new
done
fi
cmp acconfig.h acconfig.h.new > /dev/null 2>&1
if test $? -ne 0 ; then
mv acconfig.h.new acconfig.h
else
rm -f acconfig.h.new
fi