mirror of https://github.com/OpenTTD/OpenTTD
(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)
parent
a5c47a2da8
commit
324e256dfd
10
config.lib
10
config.lib
|
@ -617,6 +617,15 @@ check_params() {
|
||||||
log 1 "checking assert... disabled"
|
log 1 "checking assert... disabled"
|
||||||
fi
|
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
|
pre_detect_with_zlib=$with_zlib
|
||||||
detect_zlib
|
detect_zlib
|
||||||
|
|
||||||
|
@ -1232,7 +1241,6 @@ make_cflags_and_ldflags() {
|
||||||
if [ "$cpu_type" = "64" ]; then
|
if [ "$cpu_type" = "64" ]; then
|
||||||
CFLAGS="$CFLAGS -D_SQ64"
|
CFLAGS="$CFLAGS -D_SQ64"
|
||||||
fi
|
fi
|
||||||
SCRIPT_SRC_DIR="$ROOT_DIR/src/3rdparty/squirrel/include"
|
|
||||||
CFLAGS="$CFLAGS -I$SCRIPT_SRC_DIR"
|
CFLAGS="$CFLAGS -I$SCRIPT_SRC_DIR"
|
||||||
CFLAGS="$CFLAGS -DNO_GARBAGE_COLLECTOR"
|
CFLAGS="$CFLAGS -DNO_GARBAGE_COLLECTOR"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue