summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2009-01-12 18:05:24 +0000
committertruebrain <truebrain@openttd.org>2009-01-12 18:05:24 +0000
commit324e256dfda30f37b38fc16b2bc3bb824a6c82ff (patch)
tree939d53be410d30e595c12b25d9256d83af048b43
parenta5c47a2da855fb9bf90e683d5ab334e8e143d48c (diff)
downloadopenttd-324e256dfda30f37b38fc16b2bc3bb824a6c82ff.tar.xz
(svn r15035) -Fix (r15027): if case people don't use SVN (which we advise), they do not receive src/3rdparty/squirrel automaticly. Warn when not found, and advise what to do (this to avoid stupid users like yorick get all confused and agressive)
-rw-r--r--config.lib10
1 files changed, 9 insertions, 1 deletions
diff --git a/config.lib b/config.lib
index 48f7ecb47..565fd46b8 100644
--- a/config.lib
+++ b/config.lib
@@ -617,6 +617,15 @@ check_params() {
log 1 "checking assert... disabled"
fi
+ SCRIPT_SRC_DIR="$ROOT_DIR/src/3rdparty/squirrel/include"
+ if [ ! -d "$SCRIPT_SRC_DIR" ]; then
+ log 1 "checking 3rdparty... NOT FOUND"
+ log 1 "ERROR: please make sure you have src/3rdparty/squirrel"
+ log 1 "ERROR: you can find the source at svn://svn.openttd.org/3rdparty/squirrel"
+ exit 1
+ fi
+ log 1 "checking 3rdparty... found"
+
pre_detect_with_zlib=$with_zlib
detect_zlib
@@ -1232,7 +1241,6 @@ make_cflags_and_ldflags() {
if [ "$cpu_type" = "64" ]; then
CFLAGS="$CFLAGS -D_SQ64"
fi
- SCRIPT_SRC_DIR="$ROOT_DIR/src/3rdparty/squirrel/include"
CFLAGS="$CFLAGS -I$SCRIPT_SRC_DIR"
CFLAGS="$CFLAGS -DNO_GARBAGE_COLLECTOR"