Remove generated files
[framework/connectivity/libgphoto2.git] / m4m / gp-pkg-config.m4
1 dnl @synopsis GP_PKG_CONFIG
2 dnl
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],[
6 #
7 # [GP_PKG_CONFIG]
8 #
9 AC_ARG_VAR([PKG_CONFIG],[pkg-config package config utility])
10 export PKG_CONFIG
11 AC_ARG_VAR([PKG_CONFIG_PATH],[directory where pkg-config looks for *.pc files])
12 export PKG_CONFIG_PATH
13
14 AC_MSG_CHECKING([PKG_CONFIG_PATH])
15 if test "x${PKG_CONFIG_PATH}" = "x"; then
16         AC_MSG_RESULT([empty])
17 else
18         AC_MSG_RESULT([${PKG_CONFIG_PATH}])
19 fi
20
21 dnl AC_REQUIRE([PKG_CHECK_MODULES])
22 AC_PATH_PROG([PKG_CONFIG],[pkg-config],[false])
23 if test "$PKG_CONFIG" = "false"; then
24 AC_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 ])
32 fi
33 ])dnl
34
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.
39
40 dnl Local Variables:
41 dnl mode: autoconf
42 dnl End: