1*c43e99fdSEd Mastednl NTP_PKG_CONFIG -*- Autoconf -*- 2*c43e99fdSEd Mastednl 3*c43e99fdSEd Mastednl Look for pkg-config, which must be at least 4*c43e99fdSEd Mastednl $ntp_pkgconfig_min_version. 5*c43e99fdSEd Mastednl 6*c43e99fdSEd MasteAC_DEFUN([NTP_PKG_CONFIG], [ 7*c43e99fdSEd Maste 8*c43e99fdSEd Mastednl lower the minimum version if you find an earlier one works 9*c43e99fdSEd Mastentp_pkgconfig_min_version='0.15.0' 10*c43e99fdSEd MasteAC_PATH_TOOL([PKG_CONFIG], [pkg-config]) 11*c43e99fdSEd MasteAS_UNSET([ac_cv_path_PKG_CONFIG]) 12*c43e99fdSEd MasteAS_UNSET([ac_cv_path_ac_pt_PKG_CONFIG]) 13*c43e99fdSEd Maste 14*c43e99fdSEd Mastecase "$PKG_CONFIG" in 15*c43e99fdSEd Maste /*) 16*c43e99fdSEd Maste AC_MSG_CHECKING([if pkg-config is at least version $ntp_pkgconfig_min_version]) 17*c43e99fdSEd Maste if $PKG_CONFIG --atleast-pkgconfig-version $ntp_pkgconfig_min_version; then 18*c43e99fdSEd Maste AC_MSG_RESULT([yes]) 19*c43e99fdSEd Maste else 20*c43e99fdSEd Maste AC_MSG_RESULT([no]) 21*c43e99fdSEd Maste PKG_CONFIG="" 22*c43e99fdSEd Maste fi 23*c43e99fdSEd Maste ;; 24*c43e99fdSEd Masteesac 25*c43e99fdSEd Maste 26*c43e99fdSEd Maste]) dnl NTP_PKG_CONFIG 27*c43e99fdSEd Maste 28