diff --git a/config/tcl.m4 b/config/tcl.m4
index 6916fe998b11df085428b04d6be1d1d50e7c69f2..c128f2b0501bd77bdb0fdeecd5062dc3b12b9419 100644
--- a/config/tcl.m4
+++ b/config/tcl.m4
@@ -1,4 +1,4 @@
-# $Header: /cvsroot/pgsql/config/tcl.m4,v 1.1 2000/09/25 22:22:53 petere Exp $
+# $Header: /cvsroot/pgsql/config/tcl.m4,v 1.2 2000/09/30 10:45:17 petere Exp $
 
 # Autoconf macros to check for Tcl related things
 
@@ -23,7 +23,7 @@ if test -z "$TCL_CONFIG_SH"; then
         set X `echo 'puts $auto_path' | $TCLSH`; shift
     fi
 
-    for pgac_dir; do
+    for pgac_dir do
         if test -r "$pgac_dir/tclConfig.sh"; then
             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
             break
@@ -57,7 +57,7 @@ if test -z "$TK_CONFIG_SH"; then
         set X `echo 'puts $auto_path' | $TCLSH`; shift
     fi
 
-    for pgac_dir; do
+    for pgac_dir do
         if test -r "$pgac_dir/tkConfig.sh"; then
             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
             break
diff --git a/configure b/configure
index 01eae515d22602094ac18f5ae0a7426a7b8f92bf..5ba23f2391a42a31bcd7d1bf813971fc61ff603e 100755
--- a/configure
+++ b/configure
@@ -2552,7 +2552,7 @@ mkinstalldirs="\$(SHELL) \$(top_srcdir)/config/mkinstalldirs"
 
 
 
-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
@@ -7033,7 +7033,7 @@ if test -z "$TCL_CONFIG_SH"; then
         set X `echo 'puts $auto_path' | $TCLSH`; shift
     fi
 
-    for pgac_dir; do
+    for pgac_dir do
         if test -r "$pgac_dir/tclConfig.sh"; then
             TCL_CONFIG_SH=$pgac_dir/tclConfig.sh
             break
@@ -7066,7 +7066,7 @@ if test -z "$TK_CONFIG_SH"; then
         set X `echo 'puts $auto_path' | $TCLSH`; shift
     fi
 
-    for pgac_dir; do
+    for pgac_dir do
         if test -r "$pgac_dir/tkConfig.sh"; then
             TK_CONFIG_SH=$pgac_dir/tkConfig.sh
             break