-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
retrieve build options from pkg-config #73
Conversation
In this PR, minimal library version is set to 0, can be raised later according to needs. I run test with 1.1.1 (RHEL-6) and 1.2.0 (RHEL-7), both are ok. |
ext/config.m4
Outdated
AC_MSG_CHECKING(for libmaxminddb) | ||
if test -x "$PKG_CONFIG" && $PKG_CONFIG --exists libmaxminddb; then | ||
dnl retrieve build options from pkg-config | ||
if $PKG_CONFIG libzip --atleast-version 0; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean libmaxminddb
here? I think we could probably require at least 1.0.0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indeed (so you know where I copy/past the code from ;)
Fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Detects library during configure to fail early and avoid build error
I kept the old way (default path) as fallback, but raise a warning.