Lines Matching +full:- +full:pkg +full:- +full:config
1 # generated automatically by aclocal 1.16.5 -*- Autoconf -*-
3 # Copyright (C) 1996-2021 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.
45 # when interprocedural optimization (via link-time optimization) was
46 # enabled. This would happen when, say, the GCC/clang "-flto" flag, or the
47 # ICC "-ipo" flag was used, for example. The problem was that under
51 # (in platform-dependent binary form) could not be found in the object file,
91 # and this notice are preserved. This file is offered as-is, without any
149 # https://www.gnu.org/software/autoconf-archive/ax_check_compile_flag.html
154 # AX_CHECK_COMPILE_FLAG(FLAG, [ACTION-SUCCESS], [ACTION-FAILURE], [EXTRA-FLAGS], [INPUT])
161 # ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on
164 # If EXTRA-FLAGS is defined, it is added to the current language's default
166 # the flags: "CFLAGS EXTRA-FLAGS FLAG". This can for example be used to
181 # and this notice are preserved. This file is offered as-is, without any
203 # https://www.gnu.org/software/autoconf-archive/ax_check_define.html
208 # AC_CHECK_DEFINE([symbol], [ACTION-IF-FOUND], [ACTION-IF-NOT])
209 # AX_CHECK_DEFINE([includes],[symbol], [ACTION-IF-FOUND], [ACTION-IF-NOT])
216 # AC_CHECK_DEFINE(__STRICT_ANSI__, CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500")
224 # and this notice are preserved. This file is offered as-is, without any
277 # https://www.gnu.org/software/autoconf-archive/ax_check_openssl.html
282 # AX_CHECK_OPENSSL([action-if-found[, action-if-not-found]])
286 # Look for OpenSSL in a number of default spots, or in a user-selected
287 # spot (via --with-openssl). Sets
290 # OPENSSL_LIBS to the -l directives required
291 # OPENSSL_LDFLAGS to the -L or -R flags required
293 # and calls ACTION-IF-FOUND or ACTION-IF-NOT-FOUND appropriately
307 # and this notice are preserved. This file is offered as-is, without any
316 [AS_HELP_STRING([--with-openssl=DIR],
321 AC_MSG_ERROR([Invalid --with-openssl value])
327 # if pkg-config is installed and openssl has installed a .pc file,
329 AC_CHECK_TOOL([PKG_CONFIG], [pkg-config])
331 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
333 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
334 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
341 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
354 if test -f "$ssldir/include/openssl/ssl.h"; then
355 OPENSSL_INCLUDES="-I$ssldir/include"
356 OPENSSL_LDFLAGS="-L$ssldir/lib"
357 OPENSSL_LIBS="-lssl -lcrypto"
366 # if the file wasn't found, well, go ahead and try the link anyway -- maybe
401 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
402 # serial 12 (pkg-config-0.29.2)
405 dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
419 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
420 dnl 02111-1307, USA.
428 dnl PKG_PREREQ(MIN-VERSION)
429 dnl -----------------------
432 dnl Verify that the version of the pkg-config macros are at least
433 dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
434 dnl installed version of pkg-config, this checks the developer's version
435 dnl of pkg.m4 when generating configure.
439 dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
445 m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
446 [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
449 dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
450 dnl ----------------------------------
453 dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
454 dnl first found in the path. Checks that the version of pkg-config found
455 dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
457 dnl pkg-config existed.
459 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
462 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
463 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
464 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
467 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
469 if test -n "$PKG_CONFIG"; then
471 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
472 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
481 dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
482 dnl -------------------------------------------------------------------
494 if test -n "$PKG_CONFIG" && \
495 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
502 dnl ---------------------------------------------
503 dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
506 [if test -n "$$1"; then
508 elif test -n "$PKG_CONFIG"; then
510 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
519 dnl ---------------------------
520 dnl Internal check to see if pkg-config supports short errors.
523 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
531 dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
532 dnl [ACTION-IF-NOT-FOUND])
533 dnl --------------------------------------------------------------
541 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
542 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
551 and $1[]_LIBS to avoid the need to call pkg-config.
552 See the pkg-config man page for more details.])
558 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
560 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
562 # Put the nasty error message in config.log where it belongs
571 installed software in a non-standard prefix.
578 [The pkg-config script could not be found or is too old. Make sure it
580 path to pkg-config.
584 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
595 dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
596 dnl [ACTION-IF-NOT-FOUND])
597 dnl ---------------------------------------------------------------------
601 dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
602 dnl and VARIABLE-PREFIX_LIBS from --libs.
611 PKG_CONFIG="$PKG_CONFIG --static"
618 dnl -------------------------
622 dnl should install pkg-config .pc files. By default the directory is
624 dnl DIRECTORY. The user can override through the --with-pkgconfigdir
629 [pkg-config installation directory @<:@]pkg_default[@:>@])
631 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
640 dnl --------------------------------
644 dnl module should install arch-independent pkg-config .pc files. By
647 dnl --with-noarch-pkgconfigdir parameter.
651 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
652 AC_ARG_WITH([noarch-pkgconfigdir],
653 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
661 dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
662 dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
663 dnl -------------------------------------------
666 dnl Retrieves the value of the pkg-config variable for the given module.
669 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
677 # AM_CONDITIONAL -*- Autoconf -*-
679 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
685 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
686 # -------------------------------------
705 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
710 # Copyright (C) 2006-2021 Free Software Foundation, Inc.
717 # ---------------------------
723 # --------------------------