1dnl Autoconf macro to check for the existence of grep 2dnl $Id: grep-check.m4,v 1.2 2002-02-14 18:02:04 jmarcus Exp $ 3 4AC_DEFUN([AC_PROG_GREP], [ 5AC_REQUIRE([AC_EXEEXT])dnl 6test x$GREP = x && AC_PATH_PROG(GREP, grep$EXEEXT, grep$EXEEXT) 7test x$GREP = x && AC_MSG_ERROR([no acceptable grep found in \$PATH]) 8]) 9 10AC_SUBST(GREP) 11