From 7ba4a1832e439608b531c6694518f78813a835a3 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Wed, 8 May 2013 10:27:18 +0200 Subject: [PATCH] configure: use `AC_PROG_EGREP` to find a suitable `grep -E` On some systems, this is `ggrep -E`. --- Makefile.am | 2 +- configure.ac | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index abc3c742..23c55f37 100644 --- a/Makefile.am +++ b/Makefile.am @@ -14,7 +14,7 @@ __force-changelog-generation: ChangeLog: __force-changelog-generation $(AM_V_GEN)if test -d $(top_srcdir)/.git; then \ prev=$$(git describe --tags --always --match '[0-9]*' 2> /dev/null) ; \ - for tag in $$(git tag | grep -E '^[0-9]+(\.[0-9]+){1,}$$' | sort -rn); do \ + for tag in $$(git tag | $(EGREP) '^[0-9]+(\.[0-9]+){1,}$$' | sort -rn); do \ if [ x"$$prev" = x ]; then prev=$$tag ; fi ; \ if [ x"$$prev" = x"$$tag" ]; then continue; fi ; \ echo "$$prev [$$(git log $$prev -1 --pretty=format:'%ai')]:" ; \ diff --git a/configure.ac b/configure.ac index 708c2ed3..570031bc 100644 --- a/configure.ac +++ b/configure.ac @@ -43,6 +43,7 @@ AC_PROG_CXX AM_PROG_CC_C_O AC_PROG_LIBTOOL AC_PROG_LN_S +AC_PROG_EGREP # Doxygen DX_HTML_FEATURE(ON) -- 2.47.2