APACHE_CHECK_CURL: Cache MOD_CFLAGS and MOD_LDFLAGS a2md reuses the result from checking for mod_md. Idea taken from APACHE_CHECK_OPENSSL and APACHE_CHECK_JANSSON. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1938437 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/modules/md/config2.m4 b/modules/md/config2.m4 index f4c404e..d94fc79 100644 --- a/modules/md/config2.m4 +++ b/modules/md/config2.m4
@@ -124,9 +124,15 @@ CPPFLAGS="$saved_CPPFLAGS" LIBS="$saved_LIBS" LDFLAGS="$saved_LDFLAGS" + + dnl cache MOD_LDFLAGS, MOD_CFLAGS + ap_curl_mod_cflags=$MOD_CFLAGS + ap_curl_mod_ldflags=$MOD_LDFLAGS ]) if test "x$ac_cv_curl" = "xyes"; then AC_DEFINE(HAVE_CURL, 1, [Define if curl is available]) + APR_ADDTO(MOD_LDFLAGS, [$ap_curl_mod_ldflags]) + APR_ADDTO(MOD_CFLAGS, [$ap_curl_mod_cflags]) fi ])
diff --git a/support/a2md/config2.m4 b/support/a2md/config2.m4 index 23aaff0..12f9185 100644 --- a/support/a2md/config2.m4 +++ b/support/a2md/config2.m4
@@ -29,6 +29,8 @@ if test "x$ac_cv_openssl" = "xyes" \ -a "x$ac_cv_curl" = "xyes" \ -a "x$ac_cv_jansson" = "xyes"; then + APR_ADDTO(A2MD_CFLAGS, [$ap_curl_mod_cflags]) + APR_ADDTO(A2MD_LDFLAGS, [$ap_curl_mod_ldflags]) APR_ADDTO(A2MD_LIBS, [$ap_curl_libs]) APR_ADDTO(A2MD_CFLAGS, [$ap_jansson_mod_cflags]) APR_ADDTO(A2MD_LDFLAGS, [$ap_jansson_mod_ldflags])