diff options
author | Remi Collet <remi@remirepo.net> | 2020-03-13 10:40:39 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-03-13 10:40:39 +0100 |
commit | fb2975ff9c356cdf279a59857d52dc339e2e2a47 (patch) | |
tree | bfb7e453878db07b4fb8da35d69f3200c88e9175 /config.m4 | |
parent | c61d69885ee01c881479f9afcdbe79af8af14545 (diff) |
Fix build with RPM 4.11 (EL-7)
Diffstat (limited to 'config.m4')
-rw-r--r-- | config.m4 | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -15,6 +15,9 @@ if test "$PHP_RPMINFO" != "no"; then LIBRPM_LIBDIR=`$PKG_CONFIG rpm --libs` LIBRPM_VERSON=`$PKG_CONFIG rpm --modversion` AC_MSG_RESULT(from pkgconfig: version $LIBRPM_VERSON) + if $PKG_CONFIG rpm --atleast-version 4.12; then + AC_DEFINE(HAVE_WEAKDEP, 1, [ Weak dependencies in RPM 4.12 ]) + fi else AC_MSG_ERROR(system librpm is too old: version 4.11.3 required) fi |