Changeset View
Changeset View
Standalone View
Standalone View
configure.ac
Show First 20 Lines • Show All 119 Lines • ▼ Show 20 Lines | AC_ARG_ENABLE(gui-tests, | ||||
[use_gui_tests=$enableval], | [use_gui_tests=$enableval], | ||||
[use_gui_tests=$use_tests]) | [use_gui_tests=$use_tests]) | ||||
AC_ARG_ENABLE(bench, | AC_ARG_ENABLE(bench, | ||||
AS_HELP_STRING([--disable-bench],[do not compile benchmarks (default is to compile)]), | AS_HELP_STRING([--disable-bench],[do not compile benchmarks (default is to compile)]), | ||||
[use_bench=$enableval], | [use_bench=$enableval], | ||||
[use_bench=yes]) | [use_bench=yes]) | ||||
AC_ARG_ENABLE([extended-rpc-tests], | AC_ARG_ENABLE([extended-functional-tests], | ||||
AS_HELP_STRING([--enable-extended-rpc-tests],[enable expensive RPC tests when using lcov (default no)]), | AS_HELP_STRING([--enable-extended-functional-tests],[enable expensive functional tests when using lcov (default no)]), | ||||
[use_extended_rpc_tests=$enableval], | [use_extended_functional_tests=$enableval], | ||||
[use_extended_rpc_tests=no]) | [use_extended_functional_tests=no]) | ||||
AC_ARG_WITH([qrencode], | AC_ARG_WITH([qrencode], | ||||
[AS_HELP_STRING([--with-qrencode], | [AS_HELP_STRING([--with-qrencode], | ||||
[enable QR code support (default is yes if qt is enabled and libqrencode is found)])], | [enable QR code support (default is yes if qt is enabled and libqrencode is found)])], | ||||
[use_qr=$withval], | [use_qr=$withval], | ||||
[use_qr=auto]) | [use_qr=auto]) | ||||
AC_ARG_ENABLE([hardening], | AC_ARG_ENABLE([hardening], | ||||
▲ Show 20 Lines • Show All 385 Lines • ▼ Show 20 Lines | if test x$use_pkgconfig = xyes; then | ||||
m4_ifdef([PKG_PROG_PKG_CONFIG], [ | m4_ifdef([PKG_PROG_PKG_CONFIG], [ | ||||
PKG_PROG_PKG_CONFIG | PKG_PROG_PKG_CONFIG | ||||
if test x"$PKG_CONFIG" = "x"; then | if test x"$PKG_CONFIG" = "x"; then | ||||
AC_MSG_ERROR(pkg-config not found.) | AC_MSG_ERROR(pkg-config not found.) | ||||
fi | fi | ||||
]) | ]) | ||||
fi | fi | ||||
if test x$use_extended_rpc_tests != xno; then | if test x$use_extended_functional_tests != xno; then | ||||
AC_SUBST(EXTENDED_RPC_TESTS, -extended) | AC_SUBST(EXTENDED_FUNCTIONAL_TESTS, --extended) | ||||
fi | fi | ||||
if test x$use_lcov = xyes; then | if test x$use_lcov = xyes; then | ||||
if test x$LCOV = x; then | if test x$LCOV = x; then | ||||
AC_MSG_ERROR("lcov testing requested but lcov not found") | AC_MSG_ERROR("lcov testing requested but lcov not found") | ||||
fi | fi | ||||
if test x$GCOV = x; then | if test x$GCOV = x; then | ||||
AC_MSG_ERROR("lcov testing requested but gcov not found") | AC_MSG_ERROR("lcov testing requested but gcov not found") | ||||
▲ Show 20 Lines • Show All 729 Lines • ▼ Show 20 Lines | |||||
AC_SUBST(MINIUPNPC_LIBS) | AC_SUBST(MINIUPNPC_LIBS) | ||||
AC_SUBST(CRYPTO_LIBS) | AC_SUBST(CRYPTO_LIBS) | ||||
AC_SUBST(SSL_LIBS) | AC_SUBST(SSL_LIBS) | ||||
AC_SUBST(EVENT_LIBS) | AC_SUBST(EVENT_LIBS) | ||||
AC_SUBST(EVENT_PTHREADS_LIBS) | AC_SUBST(EVENT_PTHREADS_LIBS) | ||||
AC_SUBST(ZMQ_LIBS) | AC_SUBST(ZMQ_LIBS) | ||||
AC_SUBST(PROTOBUF_LIBS) | AC_SUBST(PROTOBUF_LIBS) | ||||
AC_SUBST(QR_LIBS) | AC_SUBST(QR_LIBS) | ||||
AC_CONFIG_FILES([Makefile src/Makefile doc/man/Makefile share/setup.nsi share/qt/Info.plist src/test/buildenv.py test/functional/config.ini]) | AC_CONFIG_FILES([Makefile src/Makefile doc/man/Makefile share/setup.nsi share/qt/Info.plist test/functional/config.ini]) | ||||
AC_CONFIG_FILES([test/util/buildenv.py],[chmod +x test/util/buildenv.py]) | |||||
AC_CONFIG_FILES([contrib/devtools/split-debug.sh],[chmod +x contrib/devtools/split-debug.sh]) | AC_CONFIG_FILES([contrib/devtools/split-debug.sh],[chmod +x contrib/devtools/split-debug.sh]) | ||||
AC_CONFIG_LINKS([test/functional/test_runner.py:test/functional/test_runner.py]) | AC_CONFIG_LINKS([test/functional/test_runner.py:test/functional/test_runner.py]) | ||||
AC_CONFIG_LINKS([test/util/bitcoin-util-test.py:test/util/bitcoin-util-test.py]) | |||||
AC_CONFIG_LINKS([test/util/bctest.py:test/util/bctest.py]) | |||||
dnl boost's m4 checks do something really nasty: they export these vars. As a | dnl boost's m4 checks do something really nasty: they export these vars. As a | ||||
dnl result, they leak into secp256k1's configure and crazy things happen. | dnl result, they leak into secp256k1's configure and crazy things happen. | ||||
dnl Until this is fixed upstream and we've synced, we'll just un-export them. | dnl Until this is fixed upstream and we've synced, we'll just un-export them. | ||||
CPPFLAGS_TEMP="$CPPFLAGS" | CPPFLAGS_TEMP="$CPPFLAGS" | ||||
unset CPPFLAGS | unset CPPFLAGS | ||||
CPPFLAGS="$CPPFLAGS_TEMP" | CPPFLAGS="$CPPFLAGS_TEMP" | ||||
Show All 31 Lines | *-*-linux-gnu) | ||||
mv libtool-2 libtool | mv libtool-2 libtool | ||||
chmod 755 libtool | chmod 755 libtool | ||||
;; | ;; | ||||
esac | esac | ||||
dnl Replace the BUILDDIR path with the correct Windows path if compiling on Native Windows | dnl Replace the BUILDDIR path with the correct Windows path if compiling on Native Windows | ||||
case ${OS} in | case ${OS} in | ||||
*Windows*) | *Windows*) | ||||
sed 's/BUILDDIR="\/\([[a-z]]\)/BUILDDIR="\1:/' test/functional/config.ini > test/functional/config2.ini | sed 's/BUILDDIR="\/\([[a-z]]\)/BUILDDIR="\1:/' test/functional/config.ini > test/functional/config-2.ini | ||||
mv test/functional/config2.ini test/functional/config.ini | mv test/functional/config-2.ini test/functional/config.ini | ||||
;; | ;; | ||||
esac | esac | ||||
echo | echo | ||||
echo "Options used to compile and link:" | echo "Options used to compile and link:" | ||||
echo " with wallet = $enable_wallet" | echo " with wallet = $enable_wallet" | ||||
echo " with gui / qt = $bitcoin_enable_qt" | echo " with gui / qt = $bitcoin_enable_qt" | ||||
if test x$bitcoin_enable_qt != xno; then | if test x$bitcoin_enable_qt != xno; then | ||||
Show All 26 Lines |