2021-08-24 17:38:35 +02:00
|
|
|
# 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
|
2020-12-11 22:28:00 +01:00
|
|
|
depends_prefix="$(cd "$(dirname "$ac_site_file")/.." && pwd)"
|
2016-06-07 21:45:02 +02:00
|
|
|
|
2014-12-31 17:49:12 +01:00
|
|
|
cross_compiling=maybe
|
2020-12-11 22:28:00 +01:00
|
|
|
host_alias="@HOST@"
|
|
|
|
ac_tool_prefix="${host_alias}-"
|
2014-12-31 17:49:12 +01:00
|
|
|
|
2020-12-11 22:28:00 +01:00
|
|
|
if test -z "$with_boost"; then
|
|
|
|
with_boost="$depends_prefix"
|
2014-12-31 17:49:12 +01:00
|
|
|
fi
|
2020-12-11 22:28:00 +01:00
|
|
|
if test -z "$with_qt_plugindir"; then
|
|
|
|
with_qt_plugindir="${depends_prefix}/plugins"
|
2014-12-31 17:49:12 +01:00
|
|
|
fi
|
2020-12-11 22:28:00 +01:00
|
|
|
if test -z "$with_qt_translationdir"; then
|
|
|
|
with_qt_translationdir="${depends_prefix}/translations"
|
2014-12-31 17:49:12 +01:00
|
|
|
fi
|
2020-12-11 22:28:00 +01:00
|
|
|
if test -z "$with_qt_bindir" && test -z "@no_qt@"; then
|
|
|
|
with_qt_bindir="${depends_prefix}/native/bin"
|
2014-12-31 17:49:12 +01:00
|
|
|
fi
|
2020-05-21 09:10:52 +02:00
|
|
|
if test -z "$with_mpgen" && test -n "@multiprocess@"; then
|
|
|
|
with_mpgen="${depends_prefix}/native"
|
|
|
|
fi
|
2014-12-31 17:49:12 +01:00
|
|
|
|
2020-12-11 22:28:00 +01:00
|
|
|
if test -z "$with_qrencode" && test -n "@no_qr@"; then
|
2019-12-07 11:46:23 +01:00
|
|
|
with_qrencode=no
|
|
|
|
fi
|
|
|
|
|
2020-12-11 22:28:00 +01:00
|
|
|
if test -z "$enable_wallet" && test -n "@no_wallet@"; then
|
2014-12-31 17:49:12 +01:00
|
|
|
enable_wallet=no
|
|
|
|
fi
|
|
|
|
|
2021-04-07 09:22:49 +02:00
|
|
|
if test -z "$with_bdb" && test -n "@no_bdb@"; then
|
|
|
|
with_bdb=no
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -z "$with_sqlite" && test -n "@no_sqlite@"; then
|
|
|
|
with_sqlite=no
|
|
|
|
fi
|
|
|
|
|
2020-05-21 09:10:52 +02:00
|
|
|
if test -z "$enable_multiprocess" && test -n "@multiprocess@"; then
|
|
|
|
enable_multiprocess=yes
|
|
|
|
fi
|
|
|
|
|
2020-12-11 22:28:00 +01:00
|
|
|
if test -z "$with_miniupnpc" && test -n "@no_upnp@"; then
|
2014-12-31 17:49:12 +01:00
|
|
|
with_miniupnpc=no
|
|
|
|
fi
|
|
|
|
|
2020-12-11 22:28:00 +01:00
|
|
|
if test -z "$with_natpmp" && test -n "@no_natpmp@"; then
|
2022-02-26 13:19:13 +01:00
|
|
|
with_natpmp=no
|
|
|
|
fi
|
|
|
|
|
2020-12-11 22:28:00 +01:00
|
|
|
if test -z "$with_gui" && test -n "@no_qt@"; then
|
2014-12-31 17:49:12 +01:00
|
|
|
with_gui=no
|
|
|
|
fi
|
|
|
|
|
2021-12-07 14:46:48 +01:00
|
|
|
if test -n "@debug@" && test -z "@no_qt@" && test "x$with_gui" != xno; then
|
|
|
|
with_gui=qt5_debug
|
|
|
|
fi
|
|
|
|
|
2020-12-11 22:28:00 +01:00
|
|
|
if test -z "$enable_zmq" && test -n "@no_zmq@"; then
|
2019-05-29 13:33:28 +02:00
|
|
|
enable_zmq=no
|
|
|
|
fi
|
|
|
|
|
2021-12-07 14:46:48 +01:00
|
|
|
if test -z "$enable_usdt" && test -n "@no_usdt@"; then
|
|
|
|
enable_usdt=no
|
2020-03-09 13:40:21 +01:00
|
|
|
fi
|
|
|
|
|
2024-01-10 22:07:40 +01:00
|
|
|
if test "@host_os@" = darwin; then
|
2014-12-31 17:49:12 +01:00
|
|
|
BREW=no
|
|
|
|
fi
|
|
|
|
|
2022-06-14 20:06:03 +02:00
|
|
|
if test -z "$enable_lto" && test -n "@lto@"; then
|
|
|
|
enable_lto=yes
|
|
|
|
fi
|
|
|
|
|
2020-12-11 22:28:00 +01:00
|
|
|
PATH="${depends_prefix}/native/bin:${PATH}"
|
2021-08-24 17:38:35 +02:00
|
|
|
PKG_CONFIG="$(which pkg-config) --static"
|
2014-12-31 17:49:12 +01:00
|
|
|
|
|
|
|
# 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.
|
2020-12-11 22:28:00 +01:00
|
|
|
export PKG_CONFIG_PATH="${depends_prefix}/share/pkgconfig:${depends_prefix}/lib/pkgconfig"
|
2017-06-02 15:27:47 +02:00
|
|
|
if test -z "@allow_host_packages@"; then
|
2020-12-11 22:28:00 +01:00
|
|
|
export PKG_CONFIG_LIBDIR="${depends_prefix}/lib/pkgconfig"
|
2017-06-02 15:27:47 +02:00
|
|
|
fi
|
2014-12-31 17:49:12 +01:00
|
|
|
|
2020-12-11 22:28:00 +01:00
|
|
|
CPPFLAGS="-I${depends_prefix}/include/ ${CPPFLAGS}"
|
|
|
|
LDFLAGS="-L${depends_prefix}/lib ${LDFLAGS}"
|
2014-12-31 17:49:12 +01:00
|
|
|
|
2018-08-27 11:06:54 +02:00
|
|
|
if test -n "@CC@" -a -z "${CC}"; then
|
|
|
|
CC="@CC@"
|
|
|
|
fi
|
|
|
|
if test -n "@CXX@" -a -z "${CXX}"; then
|
|
|
|
CXX="@CXX@"
|
|
|
|
fi
|
2021-08-24 17:38:35 +02:00
|
|
|
PYTHONPATH="${depends_prefix}/native/lib/python3/dist-packages${PYTHONPATH:+${PATH_SEPARATOR}}${PYTHONPATH}"
|
2014-12-31 17:49:12 +01:00
|
|
|
|
|
|
|
if test -n "@AR@"; then
|
2020-12-11 22:28:00 +01:00
|
|
|
AR="@AR@"
|
|
|
|
ac_cv_path_ac_pt_AR="${AR}"
|
2014-12-31 17:49:12 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test -n "@RANLIB@"; then
|
2020-12-11 22:28:00 +01:00
|
|
|
RANLIB="@RANLIB@"
|
|
|
|
ac_cv_path_ac_pt_RANLIB="${RANLIB}"
|
2014-12-31 17:49:12 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test -n "@NM@"; then
|
2020-12-11 22:28:00 +01:00
|
|
|
NM="@NM@"
|
|
|
|
ac_cv_path_ac_pt_NM="${NM}"
|
2014-12-31 17:49:12 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
if test -n "@debug@"; then
|
|
|
|
enable_reduce_exports=no
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -n "@CFLAGS@"; then
|
2020-12-11 22:28:00 +01:00
|
|
|
CFLAGS="@CFLAGS@ ${CFLAGS}"
|
2014-12-31 17:49:12 +01:00
|
|
|
fi
|
|
|
|
if test -n "@CXXFLAGS@"; then
|
2020-12-11 22:28:00 +01:00
|
|
|
CXXFLAGS="@CXXFLAGS@ ${CXXFLAGS}"
|
2014-12-31 17:49:12 +01:00
|
|
|
fi
|
|
|
|
if test -n "@CPPFLAGS@"; then
|
2020-12-11 22:28:00 +01:00
|
|
|
CPPFLAGS="@CPPFLAGS@ ${CPPFLAGS}"
|
2014-12-31 17:49:12 +01:00
|
|
|
fi
|
|
|
|
if test -n "@LDFLAGS@"; then
|
2020-12-11 22:28:00 +01:00
|
|
|
LDFLAGS="@LDFLAGS@ ${LDFLAGS}"
|
2014-12-31 17:49:12 +01:00
|
|
|
fi
|