From 22f87a8a38af52abcd25eff9e23abd1f5d753790 Mon Sep 17 00:00:00 2001 From: Fabian Freyer Date: Wed, 27 Aug 2014 00:42:45 +0200 Subject: 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 Signed-off-by: "Fabian Freyer" [yann.morin.1998@free.fr: split the original patch] Signed-off-by: "Yann E. MORIN" Cc: Fabian Freyer 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( -- cgit v0.10.2-6-g49f6