diff options
Diffstat (limited to 'autoconf/ast_prog_egrep.m4')
-rw-r--r-- | autoconf/ast_prog_egrep.m4 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/autoconf/ast_prog_egrep.m4 b/autoconf/ast_prog_egrep.m4 new file mode 100644 index 000000000..7988f8fb3 --- /dev/null +++ b/autoconf/ast_prog_egrep.m4 @@ -0,0 +1,11 @@ +# AST_PROG_EGREP +# ------------- +m4_ifndef([AST_PROG_EGREP], [AC_DEFUN([AST_PROG_EGREP], +[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], + [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 + then ac_cv_prog_egrep='grep -E' + else ac_cv_prog_egrep='egrep' + fi]) + EGREP=$ac_cv_prog_egrep + AC_SUBST([EGREP]) +])]) # AST_PROG_EGREP |