From a61f1c5bc285f4a1a05a25e39ab67a70cac16770 Mon Sep 17 00:00:00 2001 From: Alexey Neyman Date: Wed, 8 Mar 2017 17:06:46 -0800 Subject: Check for ggrep/gegrep in configure Signed-off-by: Alexey Neyman diff --git a/configure.ac b/configure.ac index d80a5cd..d10bf71 100644 --- a/configure.ac +++ b/configure.ac @@ -163,6 +163,10 @@ AC_PROG_INSTALL ACX_WITH_DEPRECATED([grep], [GREP]) AC_ARG_VAR([GREP], [Specify the full path to GNU grep]) + +# This is not a typo! Prefer GNU grep on macOS if it is installed. +ACX_PATH_TOOL_REQ([GREP], [ggrep grep], [grep]) +ACX_PATH_TOOL_REQ([EGREP], [gegrep egrep], [egrep]) AC_PROG_GREP AC_PROG_EGREP AS_IF([test "$EGREP" != "$GREP -E"], -- cgit v0.10.2-6-g49f6