diff -urNp -x '*.orig' autoconf-2.71.org/configure autoconf-2.71/configure --- autoconf-2.71.org/configure 2021-01-28 22:06:02.000000000 +0100 +++ autoconf-2.71/configure 2021-08-29 21:35:09.656146150 +0200 @@ -2277,7 +2277,7 @@ fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 printf "%s\n" "$MKDIR_P" >&6; } -for ac_prog in gawk mawk nawk awk +for ac_prog in mawk gawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 diff -urNp -x '*.orig' autoconf-2.71.org/doc/autoconf.texi autoconf-2.71/doc/autoconf.texi --- autoconf-2.71.org/doc/autoconf.texi 2021-01-28 21:46:48.000000000 +0100 +++ autoconf-2.71/doc/autoconf.texi 2021-08-29 21:35:09.659479478 +0200 @@ -4162,10 +4162,10 @@ in some cases whether they support certa @acindex{PROG_AWK} @ovindex AWK @caindex prog_AWK -Check for @code{gawk}, @code{mawk}, @code{nawk}, and @code{awk}, in that +Check for @code{mawk}, @code{gawk}, @code{nawk}, and @code{awk}, in that order, and set output variable @code{AWK} to the first one that is found. -It tries @code{gawk} first because that is reported to be the -best implementation. The result can be overridden by setting the +It tries @code{mawk} first because that is reported to be the +implementation that our system usually runs. The result can be overridden by setting the variable @code{AWK} or the cache variable @code{ac_cv_prog_AWK}. Using this macro is sufficient to avoid the pitfalls of traditional diff -urNp -x '*.orig' autoconf-2.71.org/lib/autoconf/programs.m4 autoconf-2.71/lib/autoconf/programs.m4 --- autoconf-2.71.org/lib/autoconf/programs.m4 2021-01-28 21:46:48.000000000 +0100 +++ autoconf-2.71/lib/autoconf/programs.m4 2021-08-29 21:35:09.656146150 +0200 @@ -348,7 +348,7 @@ AN_PROGRAM([gawk], [AC_PROG_AWK]) AN_PROGRAM([mawk], [AC_PROG_AWK]) AN_PROGRAM([nawk], [AC_PROG_AWK]) AC_DEFUN([AC_PROG_AWK], -[AC_CHECK_PROGS(AWK, gawk mawk nawk awk, )]) +[AC_CHECK_PROGS(AWK, mawk gawk nawk awk, )]) # AC_PROG_EGREP