2009-03-30 Tollef Fog Heen <tfheen@err.no>
+ * pkg.m4: Add PKG_CONFIG_PATH and PKG_CONFIG_LIBDIR to the list of
+ precious directories. (AC_ARG_VAR)
+
* popthelp.c (poptPrintUsage,poptPrintHelp): Add [LIBRARIES] to
help output. Debian #389066
AC_DEFUN([PKG_PROG_PKG_CONFIG],
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
-AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
+AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
+AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
+AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
+
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
fi