Lines Matching +full:pkg +full:- +full:config
1 # generated automatically by aclocal 1.16.3 -*- Autoconf -*-
3 # Copyright (C) 1996-2020 Free Software Foundation, Inc.
16 # https://www.gnu.org/software/autoconf-archive/ax_c_float_words_bigendian.html
21 # AX_C_FLOAT_WORDS_BIGENDIAN([ACTION-IF-TRUE], [ACTION-IF-FALSE], [ACTION-IF-UNKNOWN])
25 # Checks the ordering of words within a multi-word float. This check is
27 # word ordering can be different from the byte ordering. In a multi-word
28 # float context, "big-endian" implies that the word containing the sign
38 # this test byte-order agnostic. If grep finds the string "noonsees" in
39 # the object file, the target platform stores float words in big-endian
40 # order. If grep finds "seesnoon", float words are in little-endian order.
50 # and this notice are preserved. This file is offered as-is, without any
100 # https://www.gnu.org/software/autoconf-archive/ax_check_compile_flag.html
105 # AX_CHECK_COMPILE_FLAG(FLAG, [ACTION-SUCCESS], [ACTION-FAILURE], [EXTRA-FLAGS], [INPUT])
112 # ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on
115 # If EXTRA-FLAGS is defined, it is added to the current language's default
117 # the flags: "CFLAGS EXTRA-FLAGS FLAG". This can for example be used to
132 # and this notice are preserved. This file is offered as-is, without any
154 # https://www.gnu.org/software/autoconf-archive/ax_check_openssl.html
159 # AX_CHECK_OPENSSL([action-if-found[, action-if-not-found]])
163 # Look for OpenSSL in a number of default spots, or in a user-selected
164 # spot (via --with-openssl). Sets
167 # OPENSSL_LIBS to the -l directives required
168 # OPENSSL_LDFLAGS to the -L or -R flags required
170 # and calls ACTION-IF-FOUND or ACTION-IF-NOT-FOUND appropriately
184 # and this notice are preserved. This file is offered as-is, without any
193 [AS_HELP_STRING([--with-openssl=DIR],
198 AC_MSG_ERROR([Invalid --with-openssl value])
204 # if pkg-config is installed and openssl has installed a .pc file,
206 AC_CHECK_TOOL([PKG_CONFIG], [pkg-config])
208 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
210 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
211 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
218 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
231 if test -f "$ssldir/include/openssl/ssl.h"; then
232 OPENSSL_INCLUDES="-I$ssldir/include"
233 OPENSSL_LDFLAGS="-L$ssldir/lib"
234 OPENSSL_LIBS="-lssl -lcrypto"
243 # if the file wasn't found, well, go ahead and try the link anyway -- maybe
278 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
279 # serial 11 (pkg-config-0.29.1)
282 dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
296 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
297 dnl 02111-1307, USA.
305 dnl PKG_PREREQ(MIN-VERSION)
306 dnl -----------------------
309 dnl Verify that the version of the pkg-config macros are at least
310 dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
311 dnl installed version of pkg-config, this checks the developer's version
312 dnl of pkg.m4 when generating configure.
316 dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
322 m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
323 [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
326 dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
327 dnl ----------------------------------
330 dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
331 dnl first found in the path. Checks that the version of pkg-config found
332 dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
334 dnl pkg-config existed.
336 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
339 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
340 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
341 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
344 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
346 if test -n "$PKG_CONFIG"; then
348 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
349 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
358 dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
359 dnl -------------------------------------------------------------------
371 if test -n "$PKG_CONFIG" && \
372 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
379 dnl ---------------------------------------------
380 dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
383 [if test -n "$$1"; then
385 elif test -n "$PKG_CONFIG"; then
387 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
396 dnl ---------------------------
397 dnl Internal check to see if pkg-config supports short errors.
400 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
408 dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
409 dnl [ACTION-IF-NOT-FOUND])
410 dnl --------------------------------------------------------------
418 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
419 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
428 and $1[]_LIBS to avoid the need to call pkg-config.
429 See the pkg-config man page for more details.])
435 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
437 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
439 # Put the nasty error message in config.log where it belongs
448 installed software in a non-standard prefix.
455 [The pkg-config script could not be found or is too old. Make sure it
457 path to pkg-config.
461 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
472 dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
473 dnl [ACTION-IF-NOT-FOUND])
474 dnl ---------------------------------------------------------------------
478 dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
479 dnl and VARIABLE-PREFIX_LIBS from --libs.
488 PKG_CONFIG="$PKG_CONFIG --static"
495 dnl -------------------------
499 dnl should install pkg-config .pc files. By default the directory is
501 dnl DIRECTORY. The user can override through the --with-pkgconfigdir
506 [pkg-config installation directory @<:@]pkg_default[@:>@])
508 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
517 dnl --------------------------------
521 dnl module should install arch-independent pkg-config .pc files. By
524 dnl --with-noarch-pkgconfigdir parameter.
528 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
529 AC_ARG_WITH([noarch-pkgconfigdir],
530 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
538 dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
539 dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
540 dnl -------------------------------------------
543 dnl Retrieves the value of the pkg-config variable for the given module.
546 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
554 dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES,
555 dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND],
557 dnl ------------------------------------------
559 dnl Prepare a "--with-" configure option using the lowercase
560 dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and
574 [yes],[m4_pushdef([with_without], [--without-]with_arg)],
575 [m4_pushdef([with_without],[--with-]with_arg)])
593 dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
595 dnl -----------------------------------------------
598 dnl check._[VARIABLE-PREFIX] is exported as make variable.
607 dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
609 dnl ------------------------------------------------------
612 dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make