Changeset View
Changeset View
Standalone View
Standalone View
configure.ac
Show First 20 Lines • Show All 665 Lines • ▼ Show 20 Lines | |||||
AC_CHECK_DECLS([bswap_16, bswap_32, bswap_64],,, | AC_CHECK_DECLS([bswap_16, bswap_32, bswap_64],,, | ||||
[#if HAVE_BYTESWAP_H | [#if HAVE_BYTESWAP_H | ||||
#include <byteswap.h> | #include <byteswap.h> | ||||
#endif]) | #endif]) | ||||
AC_CHECK_DECLS([__builtin_clz, __builtin_clzl, __builtin_clzll]) | AC_CHECK_DECLS([__builtin_clz, __builtin_clzl, __builtin_clzll]) | ||||
dnl Check for MSG_NOSIGNAL | |||||
AC_MSG_CHECKING(for MSG_NOSIGNAL) | |||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/socket.h>]], | |||||
[[ int f = MSG_NOSIGNAL; ]])], | |||||
[ AC_MSG_RESULT(yes); AC_DEFINE(HAVE_MSG_NOSIGNAL, 1,[Define this symbol if you have MSG_NOSIGNAL]) ], | |||||
[ AC_MSG_RESULT(no)] | |||||
) | |||||
dnl Check for MSG_DONTWAIT | |||||
AC_MSG_CHECKING(for MSG_DONTWAIT) | |||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/socket.h>]], | |||||
[[ int f = MSG_DONTWAIT; ]])], | |||||
[ AC_MSG_RESULT(yes); AC_DEFINE(HAVE_MSG_DONTWAIT, 1,[Define this symbol if you have MSG_DONTWAIT]) ], | |||||
[ AC_MSG_RESULT(no)] | |||||
) | |||||
dnl Check for mallopt(M_ARENA_MAX) (to set glibc arenas) | dnl Check for mallopt(M_ARENA_MAX) (to set glibc arenas) | ||||
AC_MSG_CHECKING(for mallopt M_ARENA_MAX) | AC_MSG_CHECKING(for mallopt M_ARENA_MAX) | ||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <malloc.h>]], | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <malloc.h>]], | ||||
[[ mallopt(M_ARENA_MAX, 1); ]])], | [[ mallopt(M_ARENA_MAX, 1); ]])], | ||||
[ AC_MSG_RESULT(yes); AC_DEFINE(HAVE_MALLOPT_ARENA_MAX, 1,[Define this symbol if you have mallopt with M_ARENA_MAX]) ], | [ AC_MSG_RESULT(yes); AC_DEFINE(HAVE_MALLOPT_ARENA_MAX, 1,[Define this symbol if you have mallopt with M_ARENA_MAX]) ], | ||||
[ AC_MSG_RESULT(no)] | [ AC_MSG_RESULT(no)] | ||||
) | ) | ||||
▲ Show 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | if test x$enable_wallet != xno; then | ||||
dnl Check for libdb_cxx only if wallet enabled | dnl Check for libdb_cxx only if wallet enabled | ||||
BITCOIN_FIND_BDB53 | BITCOIN_FIND_BDB53 | ||||
fi | fi | ||||
dnl Check for libminiupnpc (optional) | dnl Check for libminiupnpc (optional) | ||||
if test x$use_upnp != xno; then | if test x$use_upnp != xno; then | ||||
AC_CHECK_HEADERS( | AC_CHECK_HEADERS( | ||||
[miniupnpc/miniwget.h miniupnpc/miniupnpc.h miniupnpc/upnpcommands.h miniupnpc/upnperrors.h], | [miniupnpc/miniwget.h miniupnpc/miniupnpc.h miniupnpc/upnpcommands.h miniupnpc/upnperrors.h], | ||||
[AC_CHECK_LIB([miniupnpc], [main],[MINIUPNPC_LIBS=-lminiupnpc], [have_miniupnpc=no])], | [AC_CHECK_LIB([miniupnpc], [upnpDiscover], [MINIUPNPC_LIBS=-lminiupnpc], [have_miniupnpc=no])], | ||||
[have_miniupnpc=no] | [have_miniupnpc=no] | ||||
) | ) | ||||
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]) | BITCOIN_QT_CONFIGURE([$use_pkgconfig]) | ||||
▲ Show 20 Lines • Show All 596 Lines • Show Last 20 Lines |