Index: configure.in
===================================================================
RCS file: /cvs/gnome/libglade/configure.in,v
retrieving revision 1.74
diff -u -b -p -r1.74 configure.in
--- configure.in	2002/02/26 11:34:19	1.74
+++ configure.in	2002/03/03 20:01:41
@@ -53,7 +53,7 @@ AH_BOTTOM(
 [#endif /* GLADE_CONFIG_H */])
 
 dnl check for a copy of python >= 2.0 with the xml.parsers.expat module.
-AC_MSG_CHECKING([for Python >= 2.0 with expat support])
+AC_MSG_NOTICE([Searching for Python >= 2.0 with expat support])
 AC_CACHE_VAL([jh_cv_path_python],
 [if test "x$PYTHON" != x; then
   jh_cv_path_python="$PYTHON"
@@ -68,25 +68,19 @@ try:
 except ImportError:
     sys.exit(1)
 sys.exit(0)'
-dnl
-  for jh_python in python python2 python2.2 python2.1 python2.0; do
-    AC_SHELL_PATH_WALK(,
-[if test -x "$ac_dir/$jh_python"; then
-  if "$ac_dir/$jh_python" -c "$jh_python_check" 1>&AC_FD_CC 2>&AC_FD_CC
-  then
-    jh_cv_path_python="$ac_dir/$jh_python"
+
+for jh_path_python in python python2 python2.2 python2.1 python2.0 ; do
+  AC_PATH_PROG(PYTHON, "$jh_path_python")
+  if test -n "$jh_path_python" && \
+     $jh_path_python -c "$jh_python_check" > /dev/null 2>&1 ; then
+	 jh_cv_path_python="$jh_path_python"
     break
   fi
+done
 fi])
-    test -n "$jh_cv_path_python" && break
-  done
-fi])
-if test -n "$jh_cv_path_python"; then
-  PYTHON="$jh_cv_path_python"
-  AC_MSG_RESULT([$jh_cv_path_python])
-else
+if test -z "$jh_cv_path_python"; then
   PYTHON="/usr/bin/env python"
-  AC_MSG_RESULT([not found.  Defaulting to /usr/bin/env python])
+  AC_MSG_RESULT([No suitable Python found.  Defaulting to /usr/bin/env python])
 fi
 AM_CONDITIONAL(HAVE_PYTHON, test -n "$jh_cv_path_python")
 AC_SUBST(PYTHON)
