aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuildconf12
1 files changed, 12 insertions, 0 deletions
diff --git a/buildconf b/buildconf
index 78e2fd1c0..6bc1e9ed9 100755
--- a/buildconf
+++ b/buildconf
@@ -44,6 +44,18 @@ findtool(){
}
#--------------------------------------------------------------------------
+# Ensure that buildconf runs from the subdirectory where configure.ac lives
+#
+if test ! -f configure.ac ||
+ test ! -f src/main.c ||
+ test ! -f lib/urldata.h ||
+ test ! -f include/curl/curl.h; then
+ echo "Can not run buildconf from outside of curl's source subdirectory!"
+ echo "Change to the subdirectory where buildconf is found, and try again."
+ exit 1
+fi
+
+#--------------------------------------------------------------------------
# autoconf 2.57 or newer
#
need_autoconf="2.57"