***** aclocal ***** ***** PWD: /var/tmp/portage/net-libs/gnutls-3.1.6/work/gnutls-3.1.6 ***** aclocal -I m4 -I gl/m4 -I src/libopts/m4 am-wrapper: aclocal: warning: could not locate installed version for WANT_AUTOMAKE='1.11.6'; ignoring awk: syntax error at source line 1 context is { if (match($0, "^# Makefile.in generated (automatically )?by automake >>> ([0-9].[0-9]+)", <<< awk: illegal statement at source line 1 awk: syntax error at source line 1 awk: syntax error at source line 1 context is { if (match($0, "generated automatically by aclocal >>> ([0-9].[0-9]+)", <<< awk: illegal statement at source line 1 awk: syntax error at source line 1 awk: syntax error at source line 1 context is { if (match($0, >>> "[[:space:]]*\\[?AM_AUTOMAKE_VERSION\\(\\[?([0-9].[0-9]+)[^)]*\\]?\\)", <<< awk: illegal statement at source line 1 awk: syntax error at source line 1 configure.ac:30: error: 'AM_CONFIG_HEADER': this macro is obsolete. You should use the 'AC_CONFIG_HEADERS' macro instead. /usr/share/aclocal-1.13/obsolete-err.m4:12: AM_CONFIG_HEADER is expanded from... configure.ac:30: the top level autom4te-2.69: /usr/bin/gm4 failed with exit status: 1 aclocal-1.13: error: echo failed with exit status: 1 ~
+ 04 Feb 2013; Alexis Ballier <aballier@gentoo.org> files/am-wrapper-8.sh: + Call gawk as before since GNU awk is required and breaks with e.g. BSD awk. + Bug #455436 + Index: files/am-wrapper-8.sh =================================================================== RCS file: /var/cvsroot/gentoo-x86/sys-devel/automake-wrapper/files/am-wrapper-8.sh,v retrieving revision 1.1 diff -u -B -r1.1 am-wrapper-8.sh --- files/am-wrapper-8.sh 2 Jan 2013 07:40:04 -0000 1.1 +++ files/am-wrapper-8.sh 4 Feb 2013 13:58:48 -0000 @@ -128,7 +128,7 @@ do_awk() { local file=$1 ; shift local arg=$1 ; shift - local v=$(awk "{ if (match(\$0, \"$*\", res)) { print res[${arg}]; exit } }" "${file}") + local v=$(gawk "{ if (match(\$0, \"$*\", res)) { print res[${arg}]; exit } }" "${file}") case " ${auto_vers} " in *" ${v} "*) ;; *) auto_vers="${auto_vers:+${auto_vers} }${v}" ;;
(In reply to Alexis Ballier from comment #1) that defeats the point of the change in the first place -- to not rely on gawk. i've rewritten the code a bit in automake-wrapper-9 to fix it properly.