Skip to content

allow to use system brotli library#6

Merged
kjdev merged 1 commit into
kjdev:masterfrom
remicollet:issue-systemlibbroti
Nov 9, 2017
Merged

allow to use system brotli library#6
kjdev merged 1 commit into
kjdev:masterfrom
remicollet:issue-systemlibbroti

Conversation

@remicollet

@remicollet remicollet commented Nov 9, 2017

Copy link
Copy Markdown
Contributor
  • config.m4 is broken for RC versions, so I switch to test PHP_VERSION_ID, which seems simpler

btw, perhaps this check can even be removed (PHP 4 still exists ?)

  • building using --with-libbrotli will ignore the bundled library and use the system one.

Tested (build + tests) with broti version 0.6.0 (available in Fedora) with PHP 5.4.45, 5.5.38, 5.6.32, 7.0.25, 7.1.12RC1 and 7.2.0RC6

Notice: using bundled library is usually forbidden in Linux distro (at least higly discouraged)

Bundled version is no more in php_brotly.h but instead in config.m4
AC_DEFINE_UNQUOTED(BROTLI_LIB_VERSION, "1.0.1", [bundled library version])

Minimal supported version is also define in config.m4
BROTLI_MIN_VERSION=0.6

@remicollet remicollet force-pushed the issue-systemlibbroti branch from 345338b to 50e219b Compare November 9, 2017 13:38
@remicollet remicollet changed the title allow to use system broti library allow to use system brotli library Nov 9, 2017
@remicollet

Copy link
Copy Markdown
Contributor Author

According to a06a8d4 there is some change making 0.5.0 not compatible, reason why I set minimal version to 0.6.0

@kjdev kjdev merged commit 69dd8b2 into kjdev:master Nov 9, 2017
@kjdev

kjdev commented Nov 10, 2017

Copy link
Copy Markdown
Owner

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants