2 # We want to support both legacy and current autoconf - this is a bit ugly...
3 AC_VERSION
=`autoconf --version 2>&1 |head -n1 |sed -e "s/.* //;s/\.//;s/[a-z]//"`
4 if test -z "$AC_VERSION"; then
5 echo "Warning: Couldn't determine autoconf version. Assuming a current version."
8 if test "$AC_VERSION" -lt 250; then
10 echo "#undef ssize_t" >acconfig.h
12 if cat $i |
grep -q "jm_"; then
14 elif test ! -e `aclocal --print-ac-dir`/`basename $i`; then
24 if test "$AC_VERSION" -lt 250; then
25 # Workaround for a bug in ancient versions of autoheader
26 sed -e 's,#undef $,/* your autoheader is buggy */,g' config.hin
>config.hin.new
28 mv config.hin.new config.hin
29 # Make sure config.hin doesn't get rebuilt after the workaround
30 sed -e 's,@AUTOHEADER@,true,' Makefile.
in >Makefile.
in.new
32 mv Makefile.
in.new Makefile.
in