Releasing
[cc0/argeo-build.git] / configure
index 5d3e45ed8031809c5a2f00bbb68edd3b5a1aeb26..c92b6706c8cbc1755dd786c653bcc336a5745d71 100755 (executable)
--- a/configure
+++ b/configure
@@ -3,11 +3,20 @@
 # We build where we are
 SDK_BUILD_BASE=$(pwd -P)/output
 
+if [ -z "$SDK_SRC_BASE" ]
+then
+echo Script variable SDK_SRC_BASE must be set in the calling \'configure\' script,
+echo to the root location of the sources, typically with such a pattern:
+echo 'SDK_SRC_BASE="$(cd "$(dirname "$0")"; pwd -P)"' 
+echo "(see 'configure.template' from the argeo-build directory)"
+echo In order to build Argeo Build itself, explicitly set SDK_SRC_BASE as an environment variable
+exit 1
+fi
+
 SDK_MK=$SDK_SRC_BASE/sdk.mk
 
 if [ -f "$SDK_MK" ]; 
 then
-
 echo "File $SDK_MK already exists. Remove it in order to configure a new build location:"
 echo "rm $SDK_MK"
 exit 1