diff options
| author | Anton <anton@picapica> | 2017-12-28 22:21:00 +0400 |
|---|---|---|
| committer | Anton <anton@picapica> | 2017-12-28 22:21:00 +0400 |
| commit | eca4cbf9f76e8e1951d59b812966a074b7b46ca9 (patch) | |
| tree | 70a21146d2c1394e29df217a11be9537e3521bf0 | |
| parent | e963ba6aec1a0f211e1023ebb42afabe01997685 (diff) | |
| download | pica-pica-eca4cbf9f76e8e1951d59b812966a074b7b46ca9.tar.gz pica-pica-eca4cbf9f76e8e1951d59b812966a074b7b46ca9.zip | |
added optional libminiupnpc check in configure script
| -rw-r--r-- | configure.ac | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 4e2599d..00f7d6e 100644 --- a/configure.ac +++ b/configure.ac @@ -21,6 +21,19 @@ AS_CASE([$host], [] ) +AC_ARG_WITH([miniupnpc], + [AS_HELP_STRING([--without-miniupnpc], + [disable support for miniupnpc])], + [], + [with_miniupnpc=yes]) + +AS_IF([test "x$with_miniupnpc" != xno], + [AC_CHECK_LIB([miniupnpc], [main], + [], + [AC_MSG_FAILURE( + [miniupnpc test failed (--without-miniupnpc to disable)])], + [])]) + # Checks for common libraries, required by both pica-node and pica-client AC_SEARCH_LIBS([dlopen], [dl]) AC_CHECK_LIB([crypto], [RAND_add],[],[AC_MSG_ERROR(["libcrypto from OpenSSL package not found"])],[ -lz ]) |
