summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Freyer <fabian.freyer@physik.tu-berlin.de>2014-08-26 22:42:45 (GMT)
committerYann E. MORIN <yann.morin.1998@free.fr>2014-08-28 20:32:09 (GMT)
commit22f87a8a38af52abcd25eff9e23abd1f5d753790 (patch)
tree05f3a53ca51f9c5d64dd19b8fb99dd3b50a6b68b
parent0e339fbbf63b04a64d6648c4a34dd6a46a068141 (diff)
configure: add option to specify grep
Allows users for which GNU grep is not the default grep (e.g. BSD folks), or is in a weird location. Reported-by: Fabian Freyer <fabian.freyer@physik.tu-berlin.de> Signed-off-by: "Fabian Freyer" <fabian.freyer@physik.tu-berlin.de> [yann.morin.1998@free.fr: split the original patch] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Fabian Freyer <fabian.freyer@physik.tu-berlin.de>
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index f8c67be..9899a3b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -94,6 +94,11 @@ AC_ARG_WITH([install],
[Specify the full PATH to a BSD-compatible install]),
[INSTALL=$withval])
AC_PROG_INSTALL
+AC_CACHE_VAL([ac_cv_path_GREP],
+ [AC_ARG_WITH([grep],
+ AS_HELP_STRING([--with-grep=PATH],
+ [Specify the full PATH to GNU grep]),
+ [ac_cv_path_GREP=$withval])])
AC_PROG_GREP
AC_PROG_EGREP
AS_IF(