On Thu, Mar 18, 2004 at 02:57:28PM +0100, Ralf S. Engelschall wrote:
> On Thu, Mar 18, 2004, Albert Chin wrote:
> 
> > On Wed, Mar 17, 2004 at 03:45:02PM +0100, Matthias Kurz wrote:
> > >
> > > In CURRENT. Under Solaris 8.
> > >
> > > checking for egrep... configure: error: no acceptable egrep could be found in 
> > > $PATH
> >
> > I just submitted a patch to fix this to autoconf-patches.
> 
> Can you share this patch with us? I would like to include
> this patch into our package instead of requiring GNU grep.

The easiest fix is to rebuild with autoconf-2.59. I've attached a
patch against autoconf HEAD below. It hasn't been accepted yet and
might undergo some changes before acceptance but it fixed the above
problem for us.
  http://mail.gnu.org/archive/html/autoconf/2004-03/msg00105.html
  http://mail.gnu.org/archive/html/autoconf-patches/2004-03/msg00026.html

-- 
albert chin ([EMAIL PROTECTED])

-- snip snip
Index: lib/autoconf/programs.m4
===================================================================
RCS file: /cvsroot/autoconf/autoconf/lib/autoconf/programs.m4,v
retrieving revision 1.21
diff -u -3 -p -r1.21 programs.m4
--- lib/autoconf/programs.m4    30 Jan 2004 14:21:36 -0000      1.21
+++ lib/autoconf/programs.m4    18 Mar 2004 08:28:50 -0000
@@ -299,7 +299,7 @@ AC_CACHE_CHECK([for fgrep], ac_cv_path_F
 # Check for a fully functional grep program that handles
 # the longest lines possible.  Prefer GNU grep if found.
 AC_DEFUN([AC_PROG_GREP],
-[AC_CACHE_CHECK([for grep that handles long lines], oc_cv_path_GREP,
+[AC_CACHE_CHECK([for grep that handles long lines], ac_cv_path_GREP,
    [_$0(GREP, [grep ggrep])])
  GREP="$ac_cv_path_GREP"
  AC_SUBST([GREP])
@@ -318,7 +318,7 @@ m4_define([_AC_PROG_GREP],
 # $ac_cv_path_VARIABLE to the path of an acceptable program, or else
 # _AC_PATH_PROG_FEATURE_CHECK will report that no acceptable program
 # was found, and abort.  If a suitable $ac_path_VARIABLE is found,
-# `break 2' will accept it without any further checks.
+# accept it without any further checks.
 m4_define([_AC_PATH_PROG_FEATURE_CHECK],
 [# Extract the first word of "$2" to use in msg output
 if test -z "$$1"; then
@@ -327,7 +327,9 @@ AC_CACHE_VAL([ac_cv_path_$1],
 [AS_TMPDIR([$1])
 # Loop through the user's path and test for each of PROGNAME-LIST
 _AS_PATH_WALK([$4],
-[for ac_prog in $2; do
+[test "x$ac_cv_path_$1" != "x" && break
+ for ac_prog in $2; do
+  test "x$ac_cv_path_$1" != "x" && break
   for ac_exec_ext in '' $ac_executable_extensions; do
     ac_path_$1="$as_dir/$ac_prog$ac_exec_ext"
     test -f "$ac_path_$1" || continue
@@ -360,11 +362,8 @@ m4_define([_AC_FEATURE_CHECK_LENGTH],
 [if AS_EXECUTABLE_P(["$$1"]); then
   # Check for GNU $1 and select it if it is found.
   _AC_PATH_PROG_FLAVOR_GNU([$$1],
-    [$2="$$1"
-    break 2
-  ])
-
-  ac_count=0
+  [$2="$$1"],
+  [ac_count=0
   echo $ECHO_N "0123456789$ECHO_C" >"$tmp/conftest.in"
   while :
   do
@@ -382,7 +381,7 @@ m4_define([_AC_FEATURE_CHECK_LENGTH],
     fi
     # 10*(2^10) chars as input seems more than enough
     test $ac_count -gt 10 && break
-  done
+  done])
 fi
 ])
 
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
Developer Communication List                   [EMAIL PROTECTED]

Reply via email to