--- a/configure.ac +++ b/configure.ac @@ -77,8 +77,8 @@ AC_PATH_PROG(HAVE_CYGPATH, cygpath, "no") AM_CONDITIONAL([HAVE_CYGPATH], [test "x$HAVE_CYGPATH" != "xno"]) - AC_PATH_PROG(HAVE_PKG_CONFIG, pkg-config, "no") - if test "$HAVE_PKG_CONFIG" = "no"; then + PKG_PROG_PKG_CONFIG + if test "x$PKG_CONFIG" = "x"; then echo echo " ERROR! pkg-config not found, go get it " echo " http://pkg-config.freedesktop.org/wiki/ "