Merge pull request #4480 from mapnik/configure-unbound-variable

Check for if VARS is set (ref #4478)
This commit is contained in:
Artem Pavlenko 2024-11-04 18:21:55 +00:00 committed by GitHub
commit bb3106d04f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

4
configure vendored
View file

@ -22,11 +22,11 @@ fi
# These do not normally need to be set except when # These do not normally need to be set except when
# building against binary versions of dependencies like # building against binary versions of dependencies like
# done via bootstrap.sh # done via bootstrap.sh
VARS=()
if [ -f mapnik-settings.env ]; then if [ -f mapnik-settings.env ]; then
echo "Inheriting from mapnik-settings.env" echo "Inheriting from mapnik-settings.env"
. ./mapnik-settings.env . ./mapnik-settings.env
VARS=( $(cat mapnik-settings.env) ) VARS=( $(cat mapnik-settings.env) )
fi fi
$PYTHON scons/scons.py --implicit-deps-changed configure ${VARS[*]} "$@" $PYTHON scons/scons.py --implicit-deps-changed configure ${VARS[*]:-} "$@"