mirror of
https://github.com/dashpay/dash.git
synced 2024-12-29 05:49:11 +01:00
6ae64262a8
c8becb82805ed1483e009eba682f19fe9e8b8c9c depends: add ability to skip building qrencode (fanquake) Pull request description: Similar to other depends packages, add the ability to skip building `qrencode` by passing `NO_QR=1`. Same as #16089. ACKs for top commit: promag: ACK c8becb82805ed1483e009eba682f19fe9e8b8c9c. hebasto: ACK c8becb82805ed1483e009eba682f19fe9e8b8c9c, I have reviewed the code and it looks OK, I agree it can be merged. Tree-SHA512: 86c7a87a31b1b2e65be2b79f533ce49f8b0074cf31331411cb3d32bb542d0b99e69605482ad75e4d1be5f2c8c613f17ba9ff17195a6b48f45365f5eb35df8bf9
114 lines
2.7 KiB
Plaintext
114 lines
2.7 KiB
Plaintext
# shellcheck shell=sh disable=SC2034 # Many variables set will be used in
|
|
# ./configure but shellcheck doesn't know
|
|
# that, hence: disable=SC2034
|
|
|
|
true # Dummy command because shellcheck treats all directives before first
|
|
# command as file-wide, and we only want to disable for one line.
|
|
#
|
|
# See: https://github.com/koalaman/shellcheck/wiki/Directive
|
|
|
|
# shellcheck disable=SC2154
|
|
depends_prefix="$(cd "$(dirname ${ac_site_file})/.." && pwd)"
|
|
|
|
cross_compiling=maybe
|
|
host_alias=@HOST@
|
|
ac_tool_prefix=${host_alias}-
|
|
|
|
if test -z $with_boost; then
|
|
with_boost=$depends_prefix
|
|
fi
|
|
if test -z $with_qt_plugindir; then
|
|
with_qt_plugindir=$depends_prefix/plugins
|
|
fi
|
|
if test -z $with_qt_translationdir; then
|
|
with_qt_translationdir=$depends_prefix/translations
|
|
fi
|
|
if test -z $with_qt_bindir; then
|
|
with_qt_bindir=$depends_prefix/native/bin
|
|
fi
|
|
|
|
if test -z $with_qrencode && test -n "@no_qr@"; then
|
|
with_qrencode=no
|
|
fi
|
|
|
|
if test -z $enable_wallet && test -n "@no_wallet@"; then
|
|
enable_wallet=no
|
|
fi
|
|
|
|
if test -z $with_miniupnpc && test -n "@no_upnp@"; then
|
|
with_miniupnpc=no
|
|
fi
|
|
|
|
if test -z $with_natpmp && test -n "@no_natpmp@"; then
|
|
with_natpmp=no
|
|
fi
|
|
|
|
if test -z $with_gui && test -n "@no_qt@"; then
|
|
with_gui=no
|
|
fi
|
|
|
|
if test -z $enable_zmq && test -n "@no_zmq@"; then
|
|
enable_zmq=no
|
|
fi
|
|
|
|
if test -n "@debug@" && test -z "@no_qt@" && test "x$with_gui" != xno; then
|
|
with_gui=qt5_debug
|
|
fi
|
|
|
|
if test "@host_os@" = darwin; then
|
|
BREW=no
|
|
fi
|
|
|
|
PATH=$depends_prefix/native/bin:$PATH
|
|
PKG_CONFIG="$(which pkg-config) --static"
|
|
|
|
# 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
|
|
# avoid ruining the cache. Sigh.
|
|
|
|
export PKG_CONFIG_LIBDIR=$depends_prefix/lib/pkgconfig
|
|
export PKG_CONFIG_PATH=$depends_prefix/share/pkgconfig
|
|
|
|
CPPFLAGS="-I$depends_prefix/include/ $CPPFLAGS"
|
|
LDFLAGS="-L$depends_prefix/lib $LDFLAGS"
|
|
|
|
if test -n "@CC@" -a -z "${CC}"; then
|
|
CC="@CC@"
|
|
fi
|
|
if test -n "@CXX@" -a -z "${CXX}"; then
|
|
CXX="@CXX@"
|
|
fi
|
|
PYTHONPATH="${depends_prefix}/native/lib/python3/dist-packages${PYTHONPATH:+${PATH_SEPARATOR}}${PYTHONPATH}"
|
|
|
|
if test -n "@AR@"; then
|
|
AR=@AR@
|
|
ac_cv_path_ac_pt_AR=${AR}
|
|
fi
|
|
|
|
if test -n "@RANLIB@"; then
|
|
RANLIB=@RANLIB@
|
|
ac_cv_path_ac_pt_RANLIB=${RANLIB}
|
|
fi
|
|
|
|
if test -n "@NM@"; then
|
|
NM=@NM@
|
|
ac_cv_path_ac_pt_NM=${NM}
|
|
fi
|
|
|
|
if test -n "@debug@"; then
|
|
enable_reduce_exports=no
|
|
fi
|
|
|
|
if test -n "@CFLAGS@"; then
|
|
CFLAGS="@CFLAGS@ $CFLAGS"
|
|
fi
|
|
if test -n "@CXXFLAGS@"; then
|
|
CXXFLAGS="@CXXFLAGS@ $CXXFLAGS"
|
|
fi
|
|
if test -n "@CPPFLAGS@"; then
|
|
CPPFLAGS="@CPPFLAGS@ $CPPFLAGS"
|
|
fi
|
|
if test -n "@LDFLAGS@"; then
|
|
LDFLAGS="@LDFLAGS@ $LDFLAGS"
|
|
fi
|