From: Yang Tse Date: Sun, 27 Jul 2008 21:47:22 +0000 (+0000) Subject: Assert that SED and GREP are set X-Git-Tag: curl-7_19_0~310 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b0110f50cb0b48ab9883205807c1e5b5c7f4126;p=thirdparty%2Fcurl.git Assert that SED and GREP are set --- diff --git a/acinclude.m4 b/acinclude.m4 index 40bf841b22..cf359d6750 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -79,6 +79,12 @@ dnl silently when invoked with three arguments. AC_DEFUN([CURL_CHECK_DEF], [ AS_VAR_PUSHDEF([ac_HaveDef], [curl_cv_have_def_$1])dnl AS_VAR_PUSHDEF([ac_Def], [curl_cv_def_$1])dnl + if test -z "$SED"; then + AC_MSG_ERROR([SED not set. Cannot continue without SED being set.]) + fi + if test -z "$GREP"; then + AC_MSG_ERROR([GREP not set. Cannot continue without GREP being set.]) + fi ifelse($3,,[AC_MSG_CHECKING([for preprocessor definition of $1])]) tmp_exp="" AC_PREPROC_IFELSE([ diff --git a/ares/acinclude.m4 b/ares/acinclude.m4 index fb30050204..18fac9a3e8 100644 --- a/ares/acinclude.m4 +++ b/ares/acinclude.m4 @@ -57,6 +57,12 @@ dnl silently when invoked with three arguments. AC_DEFUN([CURL_CHECK_DEF], [ AS_VAR_PUSHDEF([ac_HaveDef], [curl_cv_have_def_$1])dnl AS_VAR_PUSHDEF([ac_Def], [curl_cv_def_$1])dnl + if test -z "$SED"; then + AC_MSG_ERROR([SED not set. Cannot continue without SED being set.]) + fi + if test -z "$GREP"; then + AC_MSG_ERROR([GREP not set. Cannot continue without GREP being set.]) + fi ifelse($3,,[AC_MSG_CHECKING([for preprocessor definition of $1])]) tmp_exp="" AC_PREPROC_IFELSE([