diff options
author | Guy Harris <gharris@sonic.net> | 2023-01-15 10:52:31 -0800 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2023-01-15 10:52:31 -0800 |
commit | 9deff431fd6a315ae27650bb155e9f26a5ca5114 (patch) | |
tree | afd19c185c8c570c5e13d7741b38ae1313e06f6c /aclocal.m4 | |
parent | d510d8d5994748a1a639c43f40638ada38a9207f (diff) |
configure: require at least pkg-config 0.17.0 by default.
We use the --static flag, and that wasn't available until 0.17.0.
Diffstat (limited to 'aclocal.m4')
-rw-r--r-- | aclocal.m4 | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1133,9 +1133,8 @@ dnl Since: 0.16 dnl dnl Search for the pkg-config tool and set the PKG_CONFIG variable to dnl first found in the path. Checks that the version of pkg-config found -dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is -dnl used since that's the first version where most current features of -dnl pkg-config existed. +dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.17.0 is +dnl used since that's the first version where --static was supported. AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) @@ -1148,7 +1147,7 @@ if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then - _pkg_min_version=m4_default([$1], [0.9.0]) + _pkg_min_version=m4_default([$1], [0.17.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) |