]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_brotli: Update makefile to cope with the pkg-config layout change
authorEvgeny Kotkov <kotkov@apache.org>
Mon, 16 Jan 2017 21:43:17 +0000 (21:43 +0000)
committerEvgeny Kotkov <kotkov@apache.org>
Mon, 16 Jan 2017 21:43:17 +0000 (21:43 +0000)
in https://github.com/google/brotli/commit/fe9f9a9

There's a typo in the upstream commit [1] (s/brotlicommon/libbrotlicommon)
that currently produces an unusable libbrotlienc.pc file, but hopefully
this is going to be fixed there.

[1] https://github.com/google/brotli/commit/fe9f9a9#diff-af3b638bc2a3e6c650974192a53c7291R409

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1779111 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/config.m4

index 2d83608c00413f50f1876d3c775197852f763e54..17af1e6efcfb2f94824f7a7760db08207f8a7ad7 100644 (file)
@@ -167,13 +167,11 @@ if (o) return *o;],
   else
     if test -n "$PKGCONFIG"; then
       AC_MSG_CHECKING([for Brotli library >= 1.0.0 via pkg-config])
-      if $PKGCONFIG --exists "brotli >= 1.0.0"; then
+      if $PKGCONFIG --exists "libbrotlienc >= 1.0.0"; then
         AC_MSG_RESULT(yes)
         ap_brotli_found=yes
-        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])
+        ap_brotli_cflags=`$PKGCONFIG libbrotlienc --cflags`
+        ap_brotli_libs=`$PKGCONFIG libbrotlienc --libs`
       else
         AC_MSG_RESULT(no)
       fi