# _AC_PROG_GREP(VARIABLE, PROGNAME-LIST, PROG-ARGUMENTS) +# ------------------------------------------------------ +# Solaris 9 /usr/xpg4/bin/*grep is suitable, but /usr/bin/*grep lacks -e +# AIX silently truncates long lines before matching +# NeXT understands only one -e and truncates long lines m4_define([_AC_PROG_GREP], [_AC_PATH_PROG_FEATURE_CHECK([$1], [$2], [_AC_FEATURE_CHECK_LENGTH([ac_path_$1], [ac_cv_path_$1], - ["$ac_path_$1" $3], [$1])], - dnl Add /usr/xpg4/bin/*grep as it is typically found on Solaris - dnl along with a /usr/bin/*grep that lacks -e. - [$PATH:/usr/xpg4/bin]) + ["$ac_path_$1" $3], [$1])], [$PATH:/usr/xpg4/bin]) ])