Skip to content

Commit

Permalink
configure.ac: Check for miniupnpc headers, not just -lminiupnpc
Browse files Browse the repository at this point in the history
This protects against broken systems which have libminiupnpc.a or
libminiupnpc.so installed but don't have the miniupnpc headers.
  • Loading branch information
joshtriplett committed Nov 28, 2013
1 parent 82ccb05 commit a26a367
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a26a367

Please sign in to comment.