depends: Quote to prevent word splitting in config.site

SC2086 is disabled in our linter script so this wasn't caught.
This commit is contained in:
Carl Dong 2020-12-11 16:28:00 -05:00
parent 77b1ef89a0
commit 8033110741

View File

@ -8,74 +8,74 @@ true # Dummy command because shellcheck treats all directives before first
# See: https://github.com/koalaman/shellcheck/wiki/Directive # See: https://github.com/koalaman/shellcheck/wiki/Directive
# shellcheck disable=SC2154 # shellcheck disable=SC2154
depends_prefix="$(cd "$(dirname ${ac_site_file})/.." && pwd)" depends_prefix="$(cd "$(dirname "$ac_site_file")/.." && pwd)"
cross_compiling=maybe cross_compiling=maybe
host_alias=@HOST@ host_alias="@HOST@"
ac_tool_prefix=${host_alias}- ac_tool_prefix="${host_alias}-"
if test -z $with_boost; then if test -z "$with_boost"; then
with_boost=$depends_prefix with_boost="$depends_prefix"
fi fi
if test -z $with_qt_plugindir; then if test -z "$with_qt_plugindir"; then
with_qt_plugindir=$depends_prefix/plugins with_qt_plugindir="${depends_prefix}/plugins"
fi fi
if test -z $with_qt_translationdir; then if test -z "$with_qt_translationdir"; then
with_qt_translationdir=$depends_prefix/translations with_qt_translationdir="${depends_prefix}/translations"
fi fi
if test -z $with_qt_bindir && test -z "@no_qt@"; then if test -z "$with_qt_bindir" && test -z "@no_qt@"; then
with_qt_bindir=$depends_prefix/native/bin with_qt_bindir="${depends_prefix}/native/bin"
fi fi
if test -z $with_mpgen && test -n "@multiprocess@"; then if test -z "$with_mpgen" && test -n "@multiprocess@"; then
with_mpgen=$depends_prefix/native with_mpgen="${depends_prefix}/native"
fi fi
if test -z $with_qrencode && test -n "@no_qr@"; then if test -z "$with_qrencode" && test -n "@no_qr@"; then
with_qrencode=no with_qrencode=no
fi fi
if test -z $enable_wallet && test -n "@no_wallet@"; then if test -z "$enable_wallet" && test -n "@no_wallet@"; then
enable_wallet=no enable_wallet=no
fi fi
if test -z $enable_multiprocess && test -n "@multiprocess@"; then if test -z "$enable_multiprocess" && test -n "@multiprocess@"; then
enable_multiprocess=yes enable_multiprocess=yes
fi fi
if test -z $with_miniupnpc && test -n "@no_upnp@"; then if test -z "$with_miniupnpc" && test -n "@no_upnp@"; then
with_miniupnpc=no with_miniupnpc=no
fi fi
if test -z $with_natpmp && test -n "@no_natpmp@"; then if test -z "$with_natpmp" && test -n "@no_natpmp@"; then
with_natpmp=no with_natpmp=no
fi fi
if test -z $with_gui && test -n "@no_qt@"; then if test -z "$with_gui" && test -n "@no_qt@"; then
with_gui=no with_gui=no
fi fi
if test -z $enable_zmq && test -n "@no_zmq@"; then if test -z "$enable_zmq" && test -n "@no_zmq@"; then
enable_zmq=no enable_zmq=no
fi fi
if test x@host_os@ = xdarwin; then if test "x@host_os@" = xdarwin; then
BREW=no BREW=no
PORT=no PORT=no
fi fi
PATH=$depends_prefix/native/bin:$PATH PATH="${depends_prefix}/native/bin:${PATH}"
PKG_CONFIG="$(which pkg-config) --static" PKG_CONFIG="$(which pkg-config) --static"
# These two need to remain exported because pkg-config does not see them # These two need to remain exported because pkg-config does not see them
# otherwise. That means they must be unexported at the end of configure.ac to # otherwise. That means they must be unexported at the end of configure.ac to
# avoid ruining the cache. Sigh. # avoid ruining the cache. Sigh.
export PKG_CONFIG_PATH=$depends_prefix/share/pkgconfig:$depends_prefix/lib/pkgconfig export PKG_CONFIG_PATH="${depends_prefix}/share/pkgconfig:${depends_prefix}/lib/pkgconfig"
if test -z "@allow_host_packages@"; then if test -z "@allow_host_packages@"; then
export PKG_CONFIG_LIBDIR=$depends_prefix/lib/pkgconfig export PKG_CONFIG_LIBDIR="${depends_prefix}/lib/pkgconfig"
fi fi
CPPFLAGS="-I$depends_prefix/include/ $CPPFLAGS" CPPFLAGS="-I${depends_prefix}/include/ ${CPPFLAGS}"
LDFLAGS="-L$depends_prefix/lib $LDFLAGS" LDFLAGS="-L${depends_prefix}/lib ${LDFLAGS}"
if test -n "@CC@" -a -z "${CC}"; then if test -n "@CC@" -a -z "${CC}"; then
CC="@CC@" CC="@CC@"
@ -86,18 +86,18 @@ fi
PYTHONPATH="${depends_prefix}/native/lib/python3/dist-packages${PYTHONPATH:+${PATH_SEPARATOR}}${PYTHONPATH}" PYTHONPATH="${depends_prefix}/native/lib/python3/dist-packages${PYTHONPATH:+${PATH_SEPARATOR}}${PYTHONPATH}"
if test -n "@AR@"; then if test -n "@AR@"; then
AR=@AR@ AR="@AR@"
ac_cv_path_ac_pt_AR=${AR} ac_cv_path_ac_pt_AR="${AR}"
fi fi
if test -n "@RANLIB@"; then if test -n "@RANLIB@"; then
RANLIB=@RANLIB@ RANLIB="@RANLIB@"
ac_cv_path_ac_pt_RANLIB=${RANLIB} ac_cv_path_ac_pt_RANLIB="${RANLIB}"
fi fi
if test -n "@NM@"; then if test -n "@NM@"; then
NM=@NM@ NM="@NM@"
ac_cv_path_ac_pt_NM=${NM} ac_cv_path_ac_pt_NM="${NM}"
fi fi
if test -n "@debug@"; then if test -n "@debug@"; then
@ -105,14 +105,14 @@ if test -n "@debug@"; then
fi fi
if test -n "@CFLAGS@"; then if test -n "@CFLAGS@"; then
CFLAGS="@CFLAGS@ $CFLAGS" CFLAGS="@CFLAGS@ ${CFLAGS}"
fi fi
if test -n "@CXXFLAGS@"; then if test -n "@CXXFLAGS@"; then
CXXFLAGS="@CXXFLAGS@ $CXXFLAGS" CXXFLAGS="@CXXFLAGS@ ${CXXFLAGS}"
fi fi
if test -n "@CPPFLAGS@"; then if test -n "@CPPFLAGS@"; then
CPPFLAGS="@CPPFLAGS@ $CPPFLAGS" CPPFLAGS="@CPPFLAGS@ ${CPPFLAGS}"
fi fi
if test -n "@LDFLAGS@"; then if test -n "@LDFLAGS@"; then
LDFLAGS="@LDFLAGS@ $LDFLAGS" LDFLAGS="@LDFLAGS@ ${LDFLAGS}"
fi fi