Correctly link mod_md and mod_log_json (and no other objects)
against -ljansson. Removes unnecessary deps on libjansson
from other linked objects, and fixes mod_md static build. (see
https://travis-ci.org/apache/httpd/jobs/
636789380)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1872776 13f79535-47bb-0310-9956-
ffa450edef68
if test "x$ac_cv_jansson" = "xyes"; then
ap_jansson_libs="${ap_jansson_libs:--ljansson} `$apr_config --libs`"
- APR_ADDTO(MOD_LDFLAGS, [$ap_jansson_libs])
- APR_ADDTO(LIBS, [$ap_jansson_libs])
fi
dnl restore
enable_log_json="no"
else
enable_log_json="yes"
+ APR_ADDTO(MOD_LOG_JSON_LDADD, [$ap_jansson_libs])
fi
])
enable_md=no
fi
+ APR_ADDTO(MOD_MD_LDADD, [$ap_jansson_libs])
+
APACHE_CHECK_CURL
if test "x$ac_cv_curl" != "xyes" ; then
AC_MSG_WARN([libcurl not found])