• Home
  • Raw
  • Download

Lines Matching +full:pkg +full:- +full:config

1 # generated automatically by aclocal 1.15.1 -*- Autoconf -*-
3 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
16 # https://www.gnu.org/software/autoconf-archive/ax_check_compile_flag.html
21 # AX_CHECK_COMPILE_FLAG(FLAG, [ACTION-SUCCESS], [ACTION-FAILURE], [EXTRA-FLAGS], [INPUT])
28 # ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on
31 # If EXTRA-FLAGS is defined, it is added to the current language's default
33 # the flags: "CFLAGS EXTRA-FLAGS FLAG". This can for example be used to
48 # and this notice are preserved. This file is offered as-is, without any
69 dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
70 dnl serial 11 (pkg-config-0.29)
73 dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
87 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
88 dnl 02111-1307, USA.
96 dnl PKG_PREREQ(MIN-VERSION)
97 dnl -----------------------
100 dnl Verify that the version of the pkg-config macros are at least
101 dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
102 dnl installed version of pkg-config, this checks the developer's version
103 dnl of pkg.m4 when generating configure.
107 dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
113 m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
114 [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
117 dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
118 dnl ----------------------------------
121 dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
122 dnl first found in the path. Checks that the version of pkg-config found
123 dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
125 dnl pkg-config existed.
127 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
130 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
131 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
132 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
135 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
137 if test -n "$PKG_CONFIG"; then
139 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
140 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
149 dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
150 dnl -------------------------------------------------------------------
162 if test -n "$PKG_CONFIG" && \
163 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
170 dnl ---------------------------------------------
171 dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
174 [if test -n "$$1"; then
176 elif test -n "$PKG_CONFIG"; then
178 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
187 dnl ---------------------------
188 dnl Internal check to see if pkg-config supports short errors.
191 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
199 dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
200 dnl [ACTION-IF-NOT-FOUND])
201 dnl --------------------------------------------------------------
209 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
210 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
219 and $1[]_LIBS to avoid the need to call pkg-config.
220 See the pkg-config man page for more details.])
226 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
228 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
230 # Put the nasty error message in config.log where it belongs
239 installed software in a non-standard prefix.
246 [The pkg-config script could not be found or is too old. Make sure it
248 path to pkg-config.
252 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
263 dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
264 dnl [ACTION-IF-NOT-FOUND])
265 dnl ---------------------------------------------------------------------
269 dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
270 dnl and VARIABLE-PREFIX_LIBS from --libs.
279 PKG_CONFIG="$PKG_CONFIG --static"
286 dnl -------------------------
290 dnl should install pkg-config .pc files. By default the directory is
292 dnl DIRECTORY. The user can override through the --with-pkgconfigdir
297 [pkg-config installation directory @<:@]pkg_default[@:>@])
299 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
308 dnl --------------------------------
312 dnl module should install arch-independent pkg-config .pc files. By
315 dnl --with-noarch-pkgconfigdir parameter.
319 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
320 AC_ARG_WITH([noarch-pkgconfigdir],
321 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
329 dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
330 dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
331 dnl -------------------------------------------
334 dnl Retrieves the value of the pkg-config variable for the given module.
337 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
345 m4_include([config/m4/icu-conditional.m4])