@@ -1271,7 +1271,7 @@ if test x$use_pkgconfig = xyes; then
1271
1271
BITCOIN_QT_CHECK([ PKG_CHECK_MODULES([ QR] , [ libqrencode] , [ have_qrencode=yes] , [ have_qrencode=no] )] )
1272
1272
fi
1273
1273
if test x$build_bitcoin_cli$build_bitcoind$bitcoin_enable_qt$use_tests$use_bench != xnonononono; then
1274
- PKG_CHECK_MODULES([ EVENT] , [ libevent] ,, [ AC_MSG_ERROR ( libevent not found. ) ] )
1274
+ PKG_CHECK_MODULES([ EVENT] , [ libevent] , [ use_libevent=yes ] , [ AC_MSG_ERROR ( libevent not found. ) ] )
1275
1275
if test x$TARGET_OS != xwindows; then
1276
1276
PKG_CHECK_MODULES([ EVENT_PTHREADS] , [ libevent_pthreads] ,, [ AC_MSG_ERROR ( libevent_pthreads not found. ) ] )
1277
1277
fi
@@ -1291,7 +1291,7 @@ if test x$use_pkgconfig = xyes; then
1291
1291
else
1292
1292
1293
1293
if test x$build_bitcoin_cli$build_bitcoind$bitcoin_enable_qt$use_tests$use_bench != xnonononono; then
1294
- AC_CHECK_HEADER ( [ event2/event.h] ,, AC_MSG_ERROR ( libevent headers missing ) ,)
1294
+ AC_CHECK_HEADER ( [ event2/event.h] , [ use_libevent=yes ] , AC_MSG_ERROR ( libevent headers missing ) ,)
1295
1295
AC_CHECK_LIB ( [ event] ,[ main] ,EVENT_LIBS=-levent ,AC_MSG_ERROR ( libevent missing ) )
1296
1296
if test x$TARGET_OS != xwindows; then
1297
1297
AC_CHECK_LIB ( [ event_pthreads] ,[ main] ,EVENT_PTHREADS_LIBS=-levent_pthreads ,AC_MSG_ERROR ( libevent_pthreads missing ) )
@@ -1545,6 +1545,7 @@ AM_CONDITIONAL([ENABLE_QT_TESTS],[test x$BUILD_TEST_QT = xyes])
1545
1545
AM_CONDITIONAL([ ENABLE_BENCH] ,[ test x$use_bench = xyes] )
1546
1546
AM_CONDITIONAL([ USE_QRCODE] , [ test x$use_qr = xyes] )
1547
1547
AM_CONDITIONAL([ USE_LCOV] ,[ test x$use_lcov = xyes] )
1548
+ AM_CONDITIONAL([ USE_LIBEVENT] ,[ test x$use_libevent = xyes] )
1548
1549
AM_CONDITIONAL([ GLIBC_BACK_COMPAT] ,[ test x$use_glibc_compat = xyes] )
1549
1550
AM_CONDITIONAL([ HARDEN] ,[ test x$use_hardening = xyes] )
1550
1551
AM_CONDITIONAL([ ENABLE_SSE42] ,[ test x$enable_sse42 = xyes] )
0 commit comments