the multiversion autoconf script incorrectly extracts AC_PREREQ from aclocal.m4, (but correctly extracts it from autoconf). Reproducible: Always Steps to Reproduce: 1. mkdir foo 2. cd foo 3. autoconf --version (you should see 2.13) 4. echo 'AC_PREREQ(2.12) > aclocal.m4' 5. autoconf --version (you should see 2.58) autoconf 2.58-r1, automake 1.8.3
In addition, the automake wrapper does not correctly scan configure.ac as it does configure.in when trying to determine whether to run aclocal/automake 1.5 or 1.6, and thus misses the AC_PREREQ in configure.ac.
So it looks to me like the fix for this is to change the ac-wrapper-3.pl to: || (cat_('configure.in') =~ /^\s*\[?AC_PREREQ\(\[?([^\)]{3})[^\)]*\]?\)/m ? $1 : '') gt '2.13' || (cat_('configure') =~ /^# Generated by Autoconf (\S+)/m ? $1 : '') gt '2.13' || (cat_('Makefile.in') =~ /^# Makefile\.in generated by automake (\S+)/ ? $1 : '') ge '1.6' || (cat_('aclocal.m4') =~ /^\s*\[?AC_PREREQ\(\[?([^\)]{3}[0-9]?)[^\)]*\]?\)/m ? $1 : '') gt '2.13'))) { Whereas before it was "gt '2.1'" ?
The above change has been committed to ac-wrapper-4 which is used in autoconf-2.59-r4.