summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorEvgeny Kotkov <kotkov@apache.org>2016-11-29 01:00:28 +0100
committerEvgeny Kotkov <kotkov@apache.org>2016-11-29 01:00:28 +0100
commit4b3a9443b53110ca7e25684a5bc61acdd5484be6 (patch)
tree805e015a103456e62f8c9af5598a880a33912c98 /modules
parentmod_brotli: Explicitly cast 'const uint8_t *' to 'const char *' when using (diff)
downloadapache2-4b3a9443b53110ca7e25684a5bc61acdd5484be6.tar.xz
apache2-4b3a9443b53110ca7e25684a5bc61acdd5484be6.zip
mod_brotli: Update makefiles to use the library layout of the official
Brotli repository. With the recent update (https://github.com/google/brotli/pull/464), the official repository now produces pkg-config metadata files (brotli.pc), and has a fixed library layout (libbrotlicommon/libbrotlienc/libbrotlidec) on both Windows and Linux. Expect this layout in the makefiles, and take advantage of the pkg-config metadata, if it's available. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1771827 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules')
-rw-r--r--modules/filters/config.m412
1 files changed, 7 insertions, 5 deletions
diff --git a/modules/filters/config.m4 b/modules/filters/config.m4
index 8d365d79e4..fd230c01c2 100644
--- a/modules/filters/config.m4
+++ b/modules/filters/config.m4
@@ -159,18 +159,20 @@ const uint8_t *o = BrotliEncoderTakeOutput((BrotliEncoderState*)0, (size_t*)0);]
[AC_MSG_RESULT(yes)
ap_brotli_found=yes
ap_brotli_cflags="-I${ap_brotli_base}/include"
- ap_brotli_libs="-L${ap_brotli_base}/lib -lbrotlienc"],
+ ap_brotli_libs="-L${ap_brotli_base}/lib -lbrotlienc -lbrotlicommon"],
[AC_MSG_RESULT(no)]
)
CPPFLAGS=$ap_save_cppflags
else
if test -n "$PKGCONFIG"; then
- AC_MSG_CHECKING([for Brotli library via pkg-config])
- if $PKGCONFIG --exists "libbrotlienc"; then
+ AC_MSG_CHECKING([for Brotli library >= 1.0.0 via pkg-config])
+ if $PKGCONFIG --exists "brotli >= 1.0.0"; then
AC_MSG_RESULT(yes)
ap_brotli_found=yes
- ap_brotli_cflags=`$PKGCONFIG libbrotlienc --cflags`
- ap_brotli_libs=`$PKGCONFIG libbrotlienc --libs`
+ ap_brotli_cflags=`$PKGCONFIG brotli --cflags`
+ ap_brotli_libs=`$PKGCONFIG brotli --libs`
+ dnl We only support compression, drop -lbrotlidec.
+ APR_REMOVEFROM(ap_brotli_libs, [-lbrotlidec])
else
AC_MSG_RESULT(no)
fi