Make Argeo Build able to build itself
[cc0/argeo-build.git] / configure
index 5d3e45ed8031809c5a2f00bbb68edd3b5a1aeb26..e5031d7616aec131166349effffd5062559376c4 100755 (executable)
--- a/configure
+++ b/configure
@@ -3,11 +3,16 @@
 # We build where we are
 SDK_BUILD_BASE=$(pwd -P)/output
 
+if [ -z "$SDK_SRC_BASE" ]
+then
+SDK_SRC_BASE=$(pwd -P)
+echo "Script variable SDK_SRC_BASE not set, assuming Argeo Build is building itself and using the local directory"
+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