This PR:
- is based on #18297 (already merged)
- drops all of the non-pkg-config paths from the
configure
script
Ref: #17768
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
No conflicts as of last run.
Updated 284418ad2446fec21546e485ec0af0edde2eb773 -> b3b769adf1868b2c3ebdd1d9778fac58125e2b8d (pr18307.01 -> pr18307.02, diff):
1328- AC_CHECK_LIB([event_pthreads],[main],EVENT_PTHREADS_LIBS=-levent_pthreads,AC_MSG_ERROR(libevent_pthreads missing))
1329- fi
1330+if test x$build_bitcoin_cli$build_bitcoind$bitcoin_enable_qt$use_tests$use_bench != xnonononono; then
1331+ PKG_CHECK_MODULES([EVENT], [libevent >= 2.0.21], [use_libevent=yes], [AC_MSG_ERROR(libevent version 2.0.21 or greater not found.)])
1332+ if test x$TARGET_OS != xwindows; then
1333+ PKG_CHECK_MODULES([EVENT_PTHREADS], [libevent_pthreads],, AC_MSG_ERROR([libevent_pthreads not found]))
libevent_pthreads
intentional?
Was removing the version checking for
libevent_pthreads
intentional?
No, it seems like a rebasing glitch. Going to fix. Thanks!
Concept ACK - This looks pretty good, and is a nice simplification. This should be a no-op for most platforms, besides some reordering of package checks in configure. Obviously Windows is different, and after this PR, should be full pkg-config. This is the main difference I’m seeing in config.log
:
0# libevent
1-EVENT_CFLAGS=''
2-EVENT_LIBS='-levent'
3+EVENT_CFLAGS='-I/bitcoin/depends/x86_64-w64-mingw32/include'
4+EVENT_LIBS='-L/bitcoin/depends/x86_64-w64-mingw32/lib -levent -lws2_32'
5# qrencode
6-QR_CFLAGS=''
7-QR_LIBS='-lqrencode'
8+QR_CFLAGS='-I/bitcoin/depends/x86_64-w64-mingw32/include'
9+QR_LIBS='-L/bitcoin/depends/x86_64-w64-mingw32/lib -lqrencode -lpthread'
10# zeromq
11-ZMQ_CFLAGS=' -DZMQ_STATIC'
12-ZMQ_LIBS='-lzmq'
13+ZMQ_CFLAGS='-I/bitcoin/depends/x86_64-w64-mingw32/include -DZMQ_STATIC'
14+ZMQ_LIBS='-L/bitcoin/depends/x86_64-w64-mingw32/lib -lzmq -liphlpapi -lpthread'
liphlpapi
was added to libzmqs PKGCFG_LIBS_PRIVATE
, when static linking, in https://github.com/zeromq/libzmq/pull/2787.
Updated a4535bfd4d47538db47b9787da8922cd06bd6fd7 -> 4e006b640eb94d0699169b114842aca3b6ce585a (pr18307.03 -> pr18307.05, diff):
Was removing the version checking for
libevent_pthreads
intentional?
Updated 4e006b640eb94d0699169b114842aca3b6ce585a -> 92bc268e4af4ebcbde08567ea00e019ac509a769 (pr18307.05 -> pr18307.06, diff):
use_pkgconfig
after this.
1378+fi
1379+
1380+if test "x$use_zmq" = xyes; then
1381+ dnl Assume libzmq was built for static linking
1382+ case $host in
1383+ *mingw*)