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.
pull/3322/head
Josh Triplett 11 years ago
parent 82ccb05b07
commit a26a367629

@ -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…
Cancel
Save