mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 03:47:29 -03:00
configure.ac: Check for miniupnpc headers, not just -lminiupnpc
This protects against broken systems which have libminiupnpc.a or libminiupnpc.so installed but don't have the miniupnpc headers.
This commit is contained in:
parent
82ccb05b07
commit
a26a367629
1 changed files with 5 additions and 1 deletions
|
@ -342,7 +342,11 @@ BITCOIN_FIND_BDB48
|
|||
|
||||
dnl Check for libminiupnpc (optional)
|
||||
if test x$use_upnp != xno; then
|
||||
AC_CHECK_LIB([miniupnpc], [main],, [have_miniupnpc=no])
|
||||
AC_CHECK_HEADERS(
|
||||
[miniupnpc/miniwget.h miniupnpc/miniupnpc.h miniupnpc/upnpcommands.h miniupnpc/upnperrors.h],
|
||||
[AC_CHECK_LIB([miniupnpc], [main],, [have_miniupnpc=no])],
|
||||
[have_miniupnpc=no]
|
||||
)
|
||||
fi
|
||||
|
||||
dnl Check for boost libs
|
||||
|
|
Loading…
Reference in a new issue