diff --git a/glib-2.0.m4_ b/glib-2.0.m4_ index d6413ff7..2a5afd0c 100644 --- a/glib-2.0.m4_ +++ b/glib-2.0.m4_ @@ -31,20 +31,13 @@ AC_ARG_ENABLE(glibtest, [ --disable-glibtest do not try to compile and run esac done - AC_PATH_PROG(PKG_CONFIG, pkg-config, no) + PKG_PROG_PKG_CONFIG([0.7]) no_glib="" - if test x$PKG_CONFIG != xno ; then - if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then - : - else - echo *** pkg-config too old; version 0.7 or better required. - no_glib=yes - PKG_CONFIG=no - fi - else + if test "x$PKG_CONFIG" = x ; then no_glib=yes + PKG_CONFIG=no fi min_glib_version=ifelse([$1], ,2.0.0,$1)