diff options
author | Josh Triplett <josh@joshtriplett.org> | 2013-11-27 18:16:16 -0800 |
---|---|---|
committer | Josh Triplett <josh@joshtriplett.org> | 2013-11-27 18:16:16 -0800 |
commit | a26a3676295689d15cb952cbec822021092e2901 (patch) | |
tree | e075e407def6fc5dc5f1180cc2ecabb74ef43a36 /configure.ac | |
parent | 82ccb05b07c111223adbbf54e9da7c2a4a185562 (diff) |
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.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index f6d870f332..43a622feab 100644 --- a/configure.ac +++ b/configure.ac @@ -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 |