]> granicus.if.org Git - curl/commitdiff
Assert that SED and GREP are set
authorYang Tse <yangsita@gmail.com>
Sun, 27 Jul 2008 21:47:22 +0000 (21:47 +0000)
committerYang Tse <yangsita@gmail.com>
Sun, 27 Jul 2008 21:47:22 +0000 (21:47 +0000)
acinclude.m4
ares/acinclude.m4

index 40bf841b2212205305f5d470970a981184b0e55a..cf359d6750907b0afbe246443a869ef4401797f0 100644 (file)
@@ -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([
index fb300502042451fa78eeee7cae0d86af0374366c..18fac9a3e8c106299fbb47577a82fbf10fa61824 100644 (file)
@@ -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([