Changeset View
Changeset View
Standalone View
Standalone View
configure.ac
Show All 12 Lines | |||||
AC_CONFIG_HEADERS([src/config/bitcoin-config.h]) | AC_CONFIG_HEADERS([src/config/bitcoin-config.h]) | ||||
AC_CONFIG_AUX_DIR([build-aux]) | AC_CONFIG_AUX_DIR([build-aux]) | ||||
AC_CONFIG_MACRO_DIR([build-aux/m4]) | AC_CONFIG_MACRO_DIR([build-aux/m4]) | ||||
BITCOIN_DAEMON_NAME=bitcoind | BITCOIN_DAEMON_NAME=bitcoind | ||||
BITCOIN_GUI_NAME=bitcoin-qt | BITCOIN_GUI_NAME=bitcoin-qt | ||||
BITCOIN_CLI_NAME=bitcoin-cli | BITCOIN_CLI_NAME=bitcoin-cli | ||||
BITCOIN_TX_NAME=bitcoin-tx | BITCOIN_TX_NAME=bitcoin-tx | ||||
BITCOIN_SEEDER_NAME=bitcoin-seeder | |||||
AC_CANONICAL_HOST | AC_CANONICAL_HOST | ||||
AH_TOP([#ifndef BITCOIN_BITCOIN_CONFIG_H]) | AH_TOP([#ifndef BITCOIN_BITCOIN_CONFIG_H]) | ||||
AH_TOP([#define BITCOIN_BITCOIN_CONFIG_H]) | AH_TOP([#define BITCOIN_BITCOIN_CONFIG_H]) | ||||
AH_BOTTOM([#endif // BITCOIN_BITCOIN_CONFIG_H]) | AH_BOTTOM([#endif // BITCOIN_BITCOIN_CONFIG_H]) | ||||
dnl faketime breaks configure and is only needed for make. Disable it here. | dnl faketime breaks configure and is only needed for make. Disable it here. | ||||
▲ Show 20 Lines • Show All 279 Lines • ▼ Show 20 Lines | AC_ARG_WITH([libs], | ||||
[build_bitcoin_libs=yes]) | [build_bitcoin_libs=yes]) | ||||
AC_ARG_WITH([daemon], | AC_ARG_WITH([daemon], | ||||
[AS_HELP_STRING([--with-daemon], | [AS_HELP_STRING([--with-daemon], | ||||
[build bitcoind daemon (default=yes)])], | [build bitcoind daemon (default=yes)])], | ||||
[build_bitcoind=$withval], | [build_bitcoind=$withval], | ||||
[build_bitcoind=yes]) | [build_bitcoind=yes]) | ||||
AC_ARG_WITH([seeder], | |||||
[AS_HELP_STRING([--with-seeder], | |||||
[build seeder (default=yes)])], | |||||
[build_bitcoin_seeder=$withval], | |||||
[build_bitcoin_seeder=yes]) | |||||
use_pkgconfig=yes | use_pkgconfig=yes | ||||
case $host in | case $host in | ||||
*mingw*) | *mingw*) | ||||
#pkgconfig does more harm than good with MinGW | #pkgconfig does more harm than good with MinGW | ||||
use_pkgconfig=no | use_pkgconfig=no | ||||
TARGET_OS=windows | TARGET_OS=windows | ||||
▲ Show 20 Lines • Show All 371 Lines • ▼ Show 20 Lines | if test x$use_upnp != xno; then | ||||
) | ) | ||||
fi | fi | ||||
BITCOIN_QT_INIT | BITCOIN_QT_INIT | ||||
dnl sets $bitcoin_enable_qt, $bitcoin_enable_qt_test, $bitcoin_enable_qt_dbus | dnl sets $bitcoin_enable_qt, $bitcoin_enable_qt_test, $bitcoin_enable_qt_dbus | ||||
BITCOIN_QT_CONFIGURE([$use_pkgconfig], [qt5]) | BITCOIN_QT_CONFIGURE([$use_pkgconfig], [qt5]) | ||||
if test x$build_bitcoin_utils$build_bitcoind$bitcoin_enable_qt$use_tests$use_bench = xnonononono; then | if test x$build_bitcoin_utils$build_bitcoind$bitcoin_enable_qt$build_bitcoin_seeder$use_tests$use_bench = xnononononono; then | ||||
use_boost=no | use_boost=no | ||||
else | else | ||||
use_boost=yes | use_boost=yes | ||||
fi | fi | ||||
if test x$use_boost = xyes; then | if test x$use_boost = xyes; then | ||||
dnl Minimum required Boost version | dnl Minimum required Boost version | ||||
▲ Show 20 Lines • Show All 289 Lines • ▼ Show 20 Lines | |||||
AC_SUBST(UNIVALUE_LIBS) | AC_SUBST(UNIVALUE_LIBS) | ||||
BITCOIN_QT_PATH_PROGS([PROTOC], [protoc],$protoc_bin_path) | BITCOIN_QT_PATH_PROGS([PROTOC], [protoc],$protoc_bin_path) | ||||
AC_MSG_CHECKING([whether to build bitcoind]) | AC_MSG_CHECKING([whether to build bitcoind]) | ||||
AM_CONDITIONAL([BUILD_BITCOIND], [test x$build_bitcoind = xyes]) | AM_CONDITIONAL([BUILD_BITCOIND], [test x$build_bitcoind = xyes]) | ||||
AC_MSG_RESULT($build_bitcoind) | AC_MSG_RESULT($build_bitcoind) | ||||
AC_MSG_CHECKING([whether to build bitcoin-seeder]) | |||||
AM_CONDITIONAL([BUILD_BITCOIN_SEEDER], [test x$build_bitcoin_seeder = xyes]) | |||||
AC_MSG_RESULT($build_bitcoin_seeder) | |||||
AC_MSG_CHECKING([whether to build utils (bitcoin-cli bitcoin-tx)]) | AC_MSG_CHECKING([whether to build utils (bitcoin-cli bitcoin-tx)]) | ||||
AM_CONDITIONAL([BUILD_BITCOIN_UTILS], [test x$build_bitcoin_utils = xyes]) | AM_CONDITIONAL([BUILD_BITCOIN_UTILS], [test x$build_bitcoin_utils = xyes]) | ||||
AC_MSG_RESULT($build_bitcoin_utils) | AC_MSG_RESULT($build_bitcoin_utils) | ||||
AC_MSG_CHECKING([whether to build libraries]) | AC_MSG_CHECKING([whether to build libraries]) | ||||
AM_CONDITIONAL([BUILD_BITCOIN_LIBS], [test x$build_bitcoin_libs = xyes]) | AM_CONDITIONAL([BUILD_BITCOIN_LIBS], [test x$build_bitcoin_libs = xyes]) | ||||
if test x$build_bitcoin_libs = xyes; then | if test x$build_bitcoin_libs = xyes; then | ||||
AC_DEFINE(HAVE_CONSENSUS_LIB, 1, [Define this symbol if the consensus lib has been built]) | AC_DEFINE(HAVE_CONSENSUS_LIB, 1, [Define this symbol if the consensus lib has been built]) | ||||
▲ Show 20 Lines • Show All 113 Lines • ▼ Show 20 Lines | |||||
AC_MSG_CHECKING([whether to reduce exports]) | AC_MSG_CHECKING([whether to reduce exports]) | ||||
if test x$use_reduce_exports = xyes; then | if test x$use_reduce_exports = xyes; then | ||||
AC_MSG_RESULT([yes]) | AC_MSG_RESULT([yes]) | ||||
else | else | ||||
AC_MSG_RESULT([no]) | AC_MSG_RESULT([no]) | ||||
fi | fi | ||||
if test x$build_bitcoin_utils$build_bitcoin_libs$build_bitcoind$bitcoin_enable_qt$use_bench$use_tests = xnononononono; then | if test x$build_bitcoin_utils$build_bitcoin_libs$build_bitcoind$bitcoin_enable_qt$use_bench$use_tests = xnononononono; then | ||||
AC_MSG_ERROR([No targets! Please specify at least one of: --with-utils --with-libs --with-daemon --with-gui --enable-bench or --enable-tests]) | AC_MSG_ERROR([No targets! Please specify at least one of: --with-utils --with-libs --with-daemon --with-seeder --with-gui --enable-bench or --enable-tests]) | ||||
fi | fi | ||||
AM_CONDITIONAL([TARGET_DARWIN], [test x$TARGET_OS = xdarwin]) | AM_CONDITIONAL([TARGET_DARWIN], [test x$TARGET_OS = xdarwin]) | ||||
AM_CONDITIONAL([BUILD_DARWIN], [test x$BUILD_OS = xdarwin]) | AM_CONDITIONAL([BUILD_DARWIN], [test x$BUILD_OS = xdarwin]) | ||||
AM_CONDITIONAL([TARGET_WINDOWS], [test x$TARGET_OS = xwindows]) | AM_CONDITIONAL([TARGET_WINDOWS], [test x$TARGET_OS = xwindows]) | ||||
AM_CONDITIONAL([ENABLE_WALLET],[test x$enable_wallet = xyes]) | AM_CONDITIONAL([ENABLE_WALLET],[test x$enable_wallet = xyes]) | ||||
AM_CONDITIONAL([ENABLE_TESTS],[test x$BUILD_TEST = xyes]) | AM_CONDITIONAL([ENABLE_TESTS],[test x$BUILD_TEST = xyes]) | ||||
AM_CONDITIONAL([ENABLE_QT],[test x$bitcoin_enable_qt = xyes]) | AM_CONDITIONAL([ENABLE_QT],[test x$bitcoin_enable_qt = xyes]) | ||||
Show All 22 Lines | |||||
AC_SUBST(COPYRIGHT_YEAR, _COPYRIGHT_YEAR) | AC_SUBST(COPYRIGHT_YEAR, _COPYRIGHT_YEAR) | ||||
AC_SUBST(COPYRIGHT_HOLDERS, "_COPYRIGHT_HOLDERS") | AC_SUBST(COPYRIGHT_HOLDERS, "_COPYRIGHT_HOLDERS") | ||||
AC_SUBST(COPYRIGHT_HOLDERS_SUBSTITUTION, "_COPYRIGHT_HOLDERS_SUBSTITUTION") | AC_SUBST(COPYRIGHT_HOLDERS_SUBSTITUTION, "_COPYRIGHT_HOLDERS_SUBSTITUTION") | ||||
AC_SUBST(COPYRIGHT_HOLDERS_FINAL, "_COPYRIGHT_HOLDERS_FINAL") | AC_SUBST(COPYRIGHT_HOLDERS_FINAL, "_COPYRIGHT_HOLDERS_FINAL") | ||||
AC_SUBST(BITCOIN_DAEMON_NAME) | AC_SUBST(BITCOIN_DAEMON_NAME) | ||||
AC_SUBST(BITCOIN_GUI_NAME) | AC_SUBST(BITCOIN_GUI_NAME) | ||||
AC_SUBST(BITCOIN_CLI_NAME) | AC_SUBST(BITCOIN_CLI_NAME) | ||||
AC_SUBST(BITCOIN_TX_NAME) | AC_SUBST(BITCOIN_TX_NAME) | ||||
AC_SUBST(BITCOIN_SEEDER_NAME) | |||||
AC_SUBST(RELDFLAGS) | AC_SUBST(RELDFLAGS) | ||||
AC_SUBST(ERROR_CXXFLAGS) | AC_SUBST(ERROR_CXXFLAGS) | ||||
AC_SUBST(HARDENED_CXXFLAGS) | AC_SUBST(HARDENED_CXXFLAGS) | ||||
AC_SUBST(HARDENED_CPPFLAGS) | AC_SUBST(HARDENED_CPPFLAGS) | ||||
AC_SUBST(HARDENED_LDFLAGS) | AC_SUBST(HARDENED_LDFLAGS) | ||||
AC_SUBST(PIC_FLAGS) | AC_SUBST(PIC_FLAGS) | ||||
AC_SUBST(PIE_FLAGS) | AC_SUBST(PIE_FLAGS) | ||||
▲ Show 20 Lines • Show All 101 Lines • Show Last 20 Lines |