diff --git a/config/programs.m4 b/config/programs.m4
index 3e49b9a0eb174645cbbb4965ac14e46cbaa89376..660591bbd1fdd5c7d2fc0b944a0d648627bf0972 100644
--- a/config/programs.m4
+++ b/config/programs.m4
@@ -1,4 +1,4 @@
-# $Header: /cvsroot/pgsql/config/programs.m4,v 1.1 2000/08/28 11:53:13 petere Exp $
+# $Header: /cvsroot/pgsql/config/programs.m4,v 1.2 2000/10/26 16:28:00 petere Exp $
 
 
 # PGAC_PATH_FLEX
@@ -22,7 +22,7 @@ else
     for pgac_prog in flex lex; do
       pgac_candidate="$pgac_dir/$pgac_prog"
       if test -f "$pgac_candidate" \
-        && $pgac_candidate --version >/dev/null 2>&1
+        && $pgac_candidate --version </dev/null >/dev/null 2>&1
       then
         echo '%%'  > conftest.l
         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then
diff --git a/configure b/configure
index 20f042684075bdba4c76bff55c6196acc88917f3..a329292367ad780d8c19d5fc16d43f6e47494801 100755
--- a/configure
+++ b/configure
@@ -2550,7 +2550,7 @@ INSTALL_SHLIB="\${INSTALL} $INSTL_SHLIB_OPTS"
 
 
 
-for ac_prog in mawk gawk nawk awk
+for ac_prog in gawk mawk 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
@@ -2602,7 +2602,7 @@ else
     for pgac_prog in flex lex; do
       pgac_candidate="$pgac_dir/$pgac_prog"
       if test -f "$pgac_candidate" \
-        && $pgac_candidate --version >/dev/null 2>&1
+        && $pgac_candidate --version </dev/null >/dev/null 2>&1
       then
         echo '%%'  > conftest.l
         if $pgac_candidate -t conftest.l 2>/dev/null | grep FLEX_SCANNER >/dev/null 2>&1; then