12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- #! /bin/sh
- . test-init.sh
- : > Makefile.am
- $ACLOCAL
- mv aclocal.m4 aclocal-m4.sav
- errmsg='AC_INIT should be called with package and version argument'
- for ac_init in AC_INIT 'AC_INIT([Makefile.am])'; do
- for am_init_automake in AM_INIT_AUTOMAKE 'AM_INIT_AUTOMAKE([1.11])'; do
- rm -rf autom4te*.cache aclocal.m4
- unindent > configure.ac <<END
- $ac_init
- $am_init_automake
- AC_CONFIG_FILES([Makefile])
- END
- cat configure.ac
- $ACLOCAL 2>stderr && { cat stderr >&2; exit 1; }
- cat stderr >&2
- grep "^configure\\.ac:.* $errmsg" stderr
- cp aclocal-m4.sav aclocal.m4
- $AUTOCONF 2>stderr && { cat stderr >&2; exit 1; }
- cat stderr >&2
- grep "^configure\\.ac:.* $errmsg" stderr
- AUTOMAKE_fails
- grep "^configure\\.ac:.* $errmsg" stderr
- done
- done
- :
|