From: Schanzenbach, Martin Date: Sun, 24 Jun 2018 18:25:16 +0000 (+0200) Subject: fix https://gnunet.org/bugs/view.php?id=4746 X-Git-Tag: v0.11.0~357^2~28 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e1daa8a67bf88202a1fc9f69bff0b46ee5520f5e;p=oweals%2Fgnunet.git fix https://gnunet.org/bugs/view.php?id=4746 --- diff --git a/configure.ac b/configure.ac index 204859556..99eeeba8a 100644 --- a/configure.ac +++ b/configure.ac @@ -409,7 +409,32 @@ fi # check for jansson library jansson=0 -AC_CHECK_HEADER([jansson.h],jansson=1) +AC_MSG_CHECKING(for libjansson) +AC_ARG_WITH(jansson, + [ --with-jansson=PFX base of libjansson installation], + [AC_MSG_RESULT([$with_jansson]) + case $with_jansson in + no) + ;; + yes) + AC_CHECK_HEADERS(jansson.h, + AC_CHECK_LIB([jansson], [json_loads], + jansson=1)) + ;; + *) + LDFLAGS="-L$with_jansson/lib $LDFLAGS" + CPPFLAGS="-I$with_jansson/include $CPPFLAGS" + AC_CHECK_HEADERS(jansson.h, + AC_CHECK_LIB([jansson], [json_loads], + EXT_LIB_PATH="-L$with_jansson/lib $EXT_LIB_PATH" + jansson=1)) + ;; + esac + ], + [AC_MSG_RESULT([--with-jansson not specified]) + AC_CHECK_HEADERS(jansson.h, + AC_CHECK_LIB([jansson], [json_loads], + jansson=1))]) AM_CONDITIONAL(HAVE_JANSSON, [test "$jansson" = 1]) if test "x$jansson" = x1 then @@ -418,6 +443,7 @@ else AC_DEFINE([HAVE_JANSSON],[0],[Lacking jansson library]) fi + # check for libpulse(audio) library pulse=0 AC_CHECK_LIB(pulse,pa_stream_peek,