aboutsummaryrefslogtreecommitdiff
path: root/ares/configure.ac
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-07-02 17:42:08 +0000
committerYang Tse <yangsita@gmail.com>2008-07-02 17:42:08 +0000
commitbfaab6ed6bb3e8865cd8dd60375fbdc39203a862 (patch)
treea876ac4817971c9802b457b815252a044c83cba8 /ares/configure.ac
parent97333deb3f6713d7d12168c8980d69cc60961063 (diff)
The configure process will now halt when sed or grep are unavailable
Diffstat (limited to 'ares/configure.ac')
-rw-r--r--ares/configure.ac16
1 files changed, 16 insertions, 0 deletions
diff --git a/ares/configure.ac b/ares/configure.ac
index 12b61514f..797940af2 100644
--- a/ares/configure.ac
+++ b/ares/configure.ac
@@ -5,6 +5,22 @@ AM_CONFIG_HEADER([config.h])
AM_MAINTAINER_MODE
AM_INIT_AUTOMAKE
+dnl sed is mandatory for configure process
+AC_PATH_PROG([SED], [sed], [not found],
+ [$PATH:/usr/bin:/usr/local/bin])
+AC_SUBST([SED])
+if test -z "$SED" || test "$SED" = "not found"; then
+ AC_MSG_ERROR([Cannot continue without sed.])
+fi
+
+dnl grep is mandatory for configure process
+AC_PATH_PROG([GREP], [grep], [not found],
+ [$PATH:/usr/bin:/usr/local/bin])
+AC_SUBST([GREP])
+if test -z "$GREP" || test "$GREP" = "not found"; then
+ AC_MSG_ERROR([Cannot continue without grep.])
+fi
+
dnl
dnl Detect the canonical host and target build environment
dnl