From: David MacKenzie Date: Sun, 8 May 1994 05:15:49 +0000 (+0000) Subject: (AC_HEADER_EGREP): Call AC_PROGRAM_EGREP instead of X-Git-Tag: fsf-origin~607 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea1a01448005608e74c4fbdd02b92224bc2d8a01;p=thirdparty%2Fautoconf.git (AC_HEADER_EGREP): Call AC_PROGRAM_EGREP instead of duplicating most of it. --- diff --git a/acgeneral.m4 b/acgeneral.m4 index 65cf90193..1f6d34986 100644 --- a/acgeneral.m4 +++ b/acgeneral.m4 @@ -969,22 +969,8 @@ dnl ### Checking for C features - fundamental (no caching) dnl dnl define(AC_HEADER_EGREP, -[AC_REQUIRE_CPP()dnl -AC_PROVIDE([$0])dnl -echo '#include "confdefs.h" -#include <$2>' > conftest.${ac_ext} -eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1" -if egrep "$1" conftest.out >/dev/null 2>&1; then - ifelse([$3], , :, [rm -rf conftest* - $3 -]) -ifelse([$4], , , [else - rm -rf conftest* - $4 -])dnl -fi -rm -f conftest* -])dnl +[AC_PROVIDE([$0])dnl +AC_PROGRAM_EGREP([$1], [#include <$2>], [$3], [$4])])dnl dnl dnl Because this macro is used by AC_GCC_TRADITIONAL, which must come early, dnl it is not included in AC_BEFORE checks. diff --git a/lib/autoconf/general.m4 b/lib/autoconf/general.m4 index 65cf90193..1f6d34986 100644 --- a/lib/autoconf/general.m4 +++ b/lib/autoconf/general.m4 @@ -969,22 +969,8 @@ dnl ### Checking for C features - fundamental (no caching) dnl dnl define(AC_HEADER_EGREP, -[AC_REQUIRE_CPP()dnl -AC_PROVIDE([$0])dnl -echo '#include "confdefs.h" -#include <$2>' > conftest.${ac_ext} -eval "$ac_cpp conftest.${ac_ext} > conftest.out 2>&1" -if egrep "$1" conftest.out >/dev/null 2>&1; then - ifelse([$3], , :, [rm -rf conftest* - $3 -]) -ifelse([$4], , , [else - rm -rf conftest* - $4 -])dnl -fi -rm -f conftest* -])dnl +[AC_PROVIDE([$0])dnl +AC_PROGRAM_EGREP([$1], [#include <$2>], [$3], [$4])])dnl dnl dnl Because this macro is used by AC_GCC_TRADITIONAL, which must come early, dnl it is not included in AC_BEFORE checks.