diff options
| author | Vasil Dimov <[email protected]> | 2018-03-11 18:49:03 +0100 |
|---|---|---|
| committer | Vasil Dimov <[email protected]> | 2018-03-15 19:59:11 +0100 |
| commit | 71129e0265f322249cce6fa3e02df92dd9c8b2d5 (patch) | |
| tree | c158af719c6075d304cfd876f56d3f7348dccd25 | |
| parent | ax_boost_{chrono,unit_test_framework}.m4: take changes from upstream (diff) | |
| download | discoin-71129e0265f322249cce6fa3e02df92dd9c8b2d5.tar.xz discoin-71129e0265f322249cce6fa3e02df92dd9c8b2d5.zip | |
Do not check for main() in libminiupnpc
main() { main(); } causes "infinite recursion" compilation warning
which with -Werror fails the check.
| -rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 18f707f0b..80116d597 100644 --- a/configure.ac +++ b/configure.ac @@ -771,7 +771,7 @@ dnl Check for libminiupnpc (optional) if test x$use_upnp != xno; then AC_CHECK_HEADERS( [miniupnpc/miniwget.h miniupnpc/miniupnpc.h miniupnpc/upnpcommands.h miniupnpc/upnperrors.h], - [AC_CHECK_LIB([miniupnpc], [main],[MINIUPNPC_LIBS=-lminiupnpc], [have_miniupnpc=no])], + [AC_CHECK_LIB([miniupnpc], [upnpDiscover], [MINIUPNPC_LIBS=-lminiupnpc], [have_miniupnpc=no])], [have_miniupnpc=no] ) fi |