• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1dnl @synopsis GP_PKG_CONFIG
2dnl
3dnl If you want to set the PKG_CONFIG_PATH, best do so before
4dnl calling GP_PKG_CONFIG
5AC_DEFUN([GP_PKG_CONFIG],[
6#
7# [GP_PKG_CONFIG]
8#
9AC_ARG_VAR([PKG_CONFIG],[pkg-config package config utility])
10export PKG_CONFIG
11AC_ARG_VAR([PKG_CONFIG_PATH],[directory where pkg-config looks for *.pc files])
12export PKG_CONFIG_PATH
13
14AC_MSG_CHECKING([PKG_CONFIG_PATH])
15if test "x${PKG_CONFIG_PATH}" = "x"; then
16	AC_MSG_RESULT([empty])
17else
18	AC_MSG_RESULT([${PKG_CONFIG_PATH}])
19fi
20
21dnl AC_REQUIRE([PKG_CHECK_MODULES])
22AC_PATH_PROG([PKG_CONFIG],[pkg-config],[false])
23if test "$PKG_CONFIG" = "false"; then
24AC_MSG_ERROR([
25*** Build requires pkg-config
26***
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
31])
32fi
33])dnl
34
35dnl Please do not remove this:
36dnl filetype: d87b877b-80ec-447c-b042-21ec4a27c6f0
37dnl I use this to find all the different instances of this file which
38dnl are supposed to be synchronized.
39
40dnl Local Variables:
41dnl mode: autoconf
42dnl End:
43