aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-05-05 09:17:53 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-05-05 09:17:53 +0000
commit3fc39a6efbb71f45bc959e511723b07521b35493 (patch)
treee8cdd083bd37255bd28da8c1469173a670e10855
parent6062ac7c37c9290f1c4951d6b7bfc02ac3cadefe (diff)
alert the user if 'sed' or 'ar' couldn't be found, as it might very well
render a build impossible
-rw-r--r--configure.ac14
1 files changed, 12 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 367f96a4e..05e36d106 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,12 +16,22 @@ AM_CONFIG_HEADER(lib/config.h src/config.h)
AM_MAINTAINER_MODE
dnl SED is needed by some of the tools
-AC_PATH_PROG( SED, sed, , $PATH:/usr/bin:/usr/local/bin)
+AC_PATH_PROG( SED, sed, sed-was-not-found-by-configure,
+ $PATH:/usr/bin:/usr/local/bin)
AC_SUBST(SED)
+if test "x$SED" = "xsed-was-not-found-by-configure"; then
+ AC_MSG_WARN([sed was not found, this may ruin your chances to build fine])
+fi
+
dnl AR is used by libtool, and try the odd Solaris path too
-AC_PATH_PROG( AR, ar, , $PATH:/usr/bin:/usr/local/bin:/usr/ccs/bin)
+AC_PATH_PROG( AR, ar,
+ ar-was-not-found-by-configure,
+ $PATH:/usr/bin:/usr/local/bin:/usr/ccs/bin)
AC_SUBST(AR)
+if test "x$AR" = "xar-was-not-found-by-configure"; then
+ AC_MSG_WARN([ar was not found, this may ruin your chances to build fine])
+fi
dnl figure out the libcurl version
VERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curlver.h`