about summary refs log tree commit diff
path: root/configure.ac
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2005-11-30 08:34:55 +0000
committerWayne Davison <wayned@users.sourceforge.net>2005-11-30 08:34:55 +0000
commit8b7709168255a794e2eccd9f5e57eb6c721c1ffa (patch)
treeb292fcb9c3e499961830585d449666ab7be83a19 /configure.ac
parentd99218b63befc76bda393ca42323f8280777e343 (diff)
downloadzsh-8b7709168255a794e2eccd9f5e57eb6c721c1ffa.tar.gz
zsh-8b7709168255a794e2eccd9f5e57eb6c721c1ffa.tar.xz
zsh-8b7709168255a794e2eccd9f5e57eb6c721c1ffa.zip
Use $EGREP instead of a hard-wired "grep -E".
Added AC_PROG_EGREP (which sets $EGREP) for completeness.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 451195160..7510ce84b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -513,6 +513,7 @@ AC_PROG_MAKE_SET            dnl Does make define $MAKE
 AC_PROG_INSTALL             dnl Check for BSD compatible `install'
 AC_PROG_AWK                 dnl Check for mawk,gawk,nawk, then awk.
 AC_PROG_LN                  dnl Check for working ln, for "make install"
+AC_PROG_EGREP               dnl sets $EGREP to grep -E or egrep
 AC_CHECK_PROGS([YODL], [yodl], [: yodl])
 AC_CHECK_PROGS([PDFETEX], [pdfetex], [: pdfetex])
 AC_CHECK_PROGS([ANSI2KNR], [ansi2knr], [: ansi2knr])
@@ -1316,7 +1317,7 @@ do
   dnl Try to make sure it doesn't get confused by files that don't
   dnl have real error definitions in.  Count definitions to make sure.
   nerrs=`test -f $ERRNO_H && \
-  grep -E '#[ 	]*define[ 	][ 	]*E[0-9A-Z]*[ 	]*(_HURD_ERRNO \()?[0-9]+\)?' $ERRNO_H | \
+  $EGREP '#[ 	]*define[ 	][ 	]*E[0-9A-Z]*[ 	]*(_HURD_ERRNO \()?[0-9]+\)?' $ERRNO_H | \
   wc -l | sed 's/[ 	]//g'`
   test "x$nerrs" != x && test "$nerrs" -ge 7 && break
 done