2005-01-29 Stepan Kasal * lib/autoconf/programs.m4 (AC_PROG_AWK): On Solaris, it's good to prefer /usr/xpg4/bin/awk over nawk and awk. Index: lib/autoconf/programs.m4 =================================================================== RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/programs.m4,v retrieving revision 1.39 diff -u -r1.39 programs.m4 --- lib/autoconf/programs.m4 28 Jan 2005 21:21:32 -0000 1.39 +++ lib/autoconf/programs.m4 29 Jan 2005 11:09:05 -0000 @@ -356,7 +356,14 @@ 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, )]) +[if test "x$AWK" != x; then + AC_CHECK_PROGS(AWK, gawk mawk nawk awk) + # Solaris' nawk and awk are next to unusable, the xpg4 version is OK: + case $AWK in + nawk | awk) AS_EXECUTABLE_P(/usr/xpg4/bin/awk) && AWK=/usr/xpg4/bin/awk ;; + esac +fi +]) # AC_PROG_EGREP