-echo "Using $autoversion"
-case $autoversion in
- *2.13)
- cp config/acconfig.h .
- cp config/configure.in .
- rm -f configure.ac
- cp config/relyx_configure.in lib/reLyX/configure.in
- rm -f lib/reLyX/configure.ac
- EXTRA_ACINCLUDE_FILES="lyxinclude213.m4"
- ;;
- *2.5[2346])
- rm -f acconfig.h
- rm -f configure.in
- cp config/configure.ac .
- rm -f lib/reLyX/configure.in
- cp config/relyx_configure.ac lib/reLyX/configure.ac
- EXTRA_ACINCLUDE_FILES="lyxinclude25x.m4"
+if test "$automake_version" != ""; then
+ echo "Using $automake_version"
+else
+ echo "LyX requires automake >= 1.14"
+ exit 1
+fi
+
+case $automake_version in
+ *' '1.1[45]*)