1 dnl @synopsis GP_PKG_CONFIG
3 dnl If you want to set the PKG_CONFIG_PATH, best do so before
4 dnl calling GP_PKG_CONFIG
5 AC_DEFUN([GP_PKG_CONFIG],[
9 AC_ARG_VAR([PKG_CONFIG],[pkg-config package config utility])
11 AC_ARG_VAR([PKG_CONFIG_PATH],[directory where pkg-config looks for *.pc files])
12 export PKG_CONFIG_PATH
14 AC_MSG_CHECKING([PKG_CONFIG_PATH])
15 if test "x${PKG_CONFIG_PATH}" = "x"; then
16 AC_MSG_RESULT([empty])
18 AC_MSG_RESULT([${PKG_CONFIG_PATH}])
21 dnl AC_REQUIRE([PKG_CHECK_MODULES])
22 AC_PATH_PROG([PKG_CONFIG],[pkg-config],[false])
23 if test "$PKG_CONFIG" = "false"; then
25 *** Build requires pkg-config
27 *** Possible solutions:
28 *** - set PKG_CONFIG to where your pkg-config is located
29 *** - set PATH to include the directory where pkg-config is installed
30 *** - get it from http://freedesktop.org/software/pkgconfig/ and install it
35 dnl Please do not remove this:
36 dnl filetype: d87b877b-80ec-447c-b042-21ec4a27c6f0
37 dnl I use this to find all the different instances of this file which
38 dnl are supposed to be synchronized.