xcrypt 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Rakefile +106 -0
- data/ext/libxcrypt/AUTHORS +38 -0
- data/ext/libxcrypt/COPYING.LIB +502 -0
- data/ext/libxcrypt/ChangeLog +239 -0
- data/ext/libxcrypt/INSTALL +380 -0
- data/ext/libxcrypt/LICENSING +152 -0
- data/ext/libxcrypt/Makefile.am +704 -0
- data/ext/libxcrypt/Makefile.in +4110 -0
- data/ext/libxcrypt/NEWS +630 -0
- data/ext/libxcrypt/README +1 -0
- data/ext/libxcrypt/README.md +179 -0
- data/ext/libxcrypt/THANKS +13 -0
- data/ext/libxcrypt/TODO +1 -0
- data/ext/libxcrypt/TODO.md +100 -0
- data/ext/libxcrypt/aclocal.m4 +2617 -0
- data/ext/libxcrypt/autogen.sh +33 -0
- data/ext/libxcrypt/autom4te.cache/output.0 +19884 -0
- data/ext/libxcrypt/autom4te.cache/output.1 +19884 -0
- data/ext/libxcrypt/autom4te.cache/output.2 +19884 -0
- data/ext/libxcrypt/autom4te.cache/output.3 +19885 -0
- data/ext/libxcrypt/autom4te.cache/requests +714 -0
- data/ext/libxcrypt/autom4te.cache/traces.0 +4088 -0
- data/ext/libxcrypt/autom4te.cache/traces.1 +1060 -0
- data/ext/libxcrypt/autom4te.cache/traces.2 +4088 -0
- data/ext/libxcrypt/autom4te.cache/traces.3 +1060 -0
- data/ext/libxcrypt/build-aux/ci/ci-log-dependency-versions +79 -0
- data/ext/libxcrypt/build-aux/ci/ci-log-logfiles +22 -0
- data/ext/libxcrypt/build-aux/ci/clang-gcov-wrapper +2 -0
- data/ext/libxcrypt/build-aux/ci/configure-wrapper +10 -0
- data/ext/libxcrypt/build-aux/ci/summarize-coverage +24 -0
- data/ext/libxcrypt/build-aux/m4/ax_append_compile_flags.m4 +46 -0
- data/ext/libxcrypt/build-aux/m4/ax_append_flag.m4 +50 -0
- data/ext/libxcrypt/build-aux/m4/ax_check_compile_flag.m4 +53 -0
- data/ext/libxcrypt/build-aux/m4/ax_check_vscript.m4 +142 -0
- data/ext/libxcrypt/build-aux/m4/ax_gcc_func_attribute.m4 +246 -0
- data/ext/libxcrypt/build-aux/m4/ax_require_defined.m4 +37 -0
- data/ext/libxcrypt/build-aux/m4/ax_valgrind_check.m4 +239 -0
- data/ext/libxcrypt/build-aux/m4/libtool.m4 +8488 -0
- data/ext/libxcrypt/build-aux/m4/ltoptions.m4 +467 -0
- data/ext/libxcrypt/build-aux/m4/ltsugar.m4 +124 -0
- data/ext/libxcrypt/build-aux/m4/ltversion.m4 +24 -0
- data/ext/libxcrypt/build-aux/m4/lt~obsolete.m4 +99 -0
- data/ext/libxcrypt/build-aux/m4/pkg_compat.m4 +88 -0
- data/ext/libxcrypt/build-aux/m4/zw_alignment.m4 +90 -0
- data/ext/libxcrypt/build-aux/m4/zw_automodern.m4 +307 -0
- data/ext/libxcrypt/build-aux/m4/zw_detect_asan.m4 +24 -0
- data/ext/libxcrypt/build-aux/m4/zw_endianness.m4 +152 -0
- data/ext/libxcrypt/build-aux/m4/zw_ld_wrap.m4 +47 -0
- data/ext/libxcrypt/build-aux/m4/zw_prog_perl.m4 +40 -0
- data/ext/libxcrypt/build-aux/m4/zw_simple_warnings.m4 +150 -0
- data/ext/libxcrypt/build-aux/m4/zw_static_assert.m4 +68 -0
- data/ext/libxcrypt/build-aux/m4-autogen/compile +364 -0
- data/ext/libxcrypt/build-aux/m4-autogen/config.guess +1815 -0
- data/ext/libxcrypt/build-aux/m4-autogen/config.sub +2354 -0
- data/ext/libxcrypt/build-aux/m4-autogen/depcomp +792 -0
- data/ext/libxcrypt/build-aux/m4-autogen/install-sh +541 -0
- data/ext/libxcrypt/build-aux/m4-autogen/ltmain.sh +11524 -0
- data/ext/libxcrypt/build-aux/m4-autogen/missing +236 -0
- data/ext/libxcrypt/build-aux/m4-autogen/test-driver +160 -0
- data/ext/libxcrypt/build-aux/scripts/BuildCommon.pm +712 -0
- data/ext/libxcrypt/build-aux/scripts/check-perlcritic-config +76 -0
- data/ext/libxcrypt/build-aux/scripts/compute-symver-floor +116 -0
- data/ext/libxcrypt/build-aux/scripts/expand-selected-hashes +80 -0
- data/ext/libxcrypt/build-aux/scripts/gen-crypt-h +131 -0
- data/ext/libxcrypt/build-aux/scripts/gen-crypt-hashes-h +141 -0
- data/ext/libxcrypt/build-aux/scripts/gen-crypt-symbol-vers-h +150 -0
- data/ext/libxcrypt/build-aux/scripts/gen-libcrypt-map +67 -0
- data/ext/libxcrypt/build-aux/scripts/move-if-change +84 -0
- data/ext/libxcrypt/build-aux/scripts/skip-if-exec-format-error +78 -0
- data/ext/libxcrypt/codecov.yml +4 -0
- data/ext/libxcrypt/config.h.in +303 -0
- data/ext/libxcrypt/configure +19885 -0
- data/ext/libxcrypt/configure.ac +549 -0
- data/ext/libxcrypt/doc/crypt.3 +512 -0
- data/ext/libxcrypt/doc/crypt.5 +343 -0
- data/ext/libxcrypt/doc/crypt_checksalt.3 +106 -0
- data/ext/libxcrypt/doc/crypt_gensalt.3 +285 -0
- data/ext/libxcrypt/doc/crypt_gensalt_ra.3 +1 -0
- data/ext/libxcrypt/doc/crypt_gensalt_rn.3 +1 -0
- data/ext/libxcrypt/doc/crypt_preferred_method.3 +68 -0
- data/ext/libxcrypt/doc/crypt_r.3 +1 -0
- data/ext/libxcrypt/doc/crypt_ra.3 +1 -0
- data/ext/libxcrypt/doc/crypt_rn.3 +1 -0
- data/ext/libxcrypt/lib/alg-des-tables.c +3858 -0
- data/ext/libxcrypt/lib/alg-des.c +269 -0
- data/ext/libxcrypt/lib/alg-des.h +74 -0
- data/ext/libxcrypt/lib/alg-gost3411-2012-const.h +313 -0
- data/ext/libxcrypt/lib/alg-gost3411-2012-core.c +238 -0
- data/ext/libxcrypt/lib/alg-gost3411-2012-core.h +51 -0
- data/ext/libxcrypt/lib/alg-gost3411-2012-hmac.c +78 -0
- data/ext/libxcrypt/lib/alg-gost3411-2012-hmac.h +46 -0
- data/ext/libxcrypt/lib/alg-gost3411-2012-precalc.h +1426 -0
- data/ext/libxcrypt/lib/alg-gost3411-2012-ref.h +67 -0
- data/ext/libxcrypt/lib/alg-hmac-sha1.c +140 -0
- data/ext/libxcrypt/lib/alg-hmac-sha1.h +35 -0
- data/ext/libxcrypt/lib/alg-md4.c +270 -0
- data/ext/libxcrypt/lib/alg-md4.h +43 -0
- data/ext/libxcrypt/lib/alg-md5.c +291 -0
- data/ext/libxcrypt/lib/alg-md5.h +43 -0
- data/ext/libxcrypt/lib/alg-sha1.c +288 -0
- data/ext/libxcrypt/lib/alg-sha1.h +34 -0
- data/ext/libxcrypt/lib/alg-sha256.c +630 -0
- data/ext/libxcrypt/lib/alg-sha256.h +123 -0
- data/ext/libxcrypt/lib/alg-sha512.c +311 -0
- data/ext/libxcrypt/lib/alg-sha512.h +81 -0
- data/ext/libxcrypt/lib/alg-sm3-hmac.c +113 -0
- data/ext/libxcrypt/lib/alg-sm3-hmac.h +42 -0
- data/ext/libxcrypt/lib/alg-sm3.c +449 -0
- data/ext/libxcrypt/lib/alg-sm3.h +63 -0
- data/ext/libxcrypt/lib/alg-yescrypt-common.c +713 -0
- data/ext/libxcrypt/lib/alg-yescrypt-opt.c +1568 -0
- data/ext/libxcrypt/lib/alg-yescrypt-platform.c +106 -0
- data/ext/libxcrypt/lib/alg-yescrypt.h +360 -0
- data/ext/libxcrypt/lib/byteorder.h +164 -0
- data/ext/libxcrypt/lib/crypt-bcrypt.c +1061 -0
- data/ext/libxcrypt/lib/crypt-des-obsolete.c +215 -0
- data/ext/libxcrypt/lib/crypt-des.c +491 -0
- data/ext/libxcrypt/lib/crypt-gensalt-static.c +40 -0
- data/ext/libxcrypt/lib/crypt-gost-yescrypt.c +182 -0
- data/ext/libxcrypt/lib/crypt-md5.c +232 -0
- data/ext/libxcrypt/lib/crypt-nthash.c +134 -0
- data/ext/libxcrypt/lib/crypt-obsolete.h +40 -0
- data/ext/libxcrypt/lib/crypt-pbkdf1-sha1.c +260 -0
- data/ext/libxcrypt/lib/crypt-port.h +514 -0
- data/ext/libxcrypt/lib/crypt-scrypt.c +247 -0
- data/ext/libxcrypt/lib/crypt-sha256.c +308 -0
- data/ext/libxcrypt/lib/crypt-sha512.c +323 -0
- data/ext/libxcrypt/lib/crypt-sm3-yescrypt.c +189 -0
- data/ext/libxcrypt/lib/crypt-sm3.c +308 -0
- data/ext/libxcrypt/lib/crypt-static.c +44 -0
- data/ext/libxcrypt/lib/crypt-sunmd5.c +314 -0
- data/ext/libxcrypt/lib/crypt-yescrypt.c +177 -0
- data/ext/libxcrypt/lib/crypt.c +421 -0
- data/ext/libxcrypt/lib/crypt.h.in +249 -0
- data/ext/libxcrypt/lib/gen-des-tables.c +363 -0
- data/ext/libxcrypt/lib/hashes.conf +59 -0
- data/ext/libxcrypt/lib/libcrypt.map.in +48 -0
- data/ext/libxcrypt/lib/libcrypt.minver +97 -0
- data/ext/libxcrypt/lib/libxcrypt.pc.in +15 -0
- data/ext/libxcrypt/lib/util-base64.c +26 -0
- data/ext/libxcrypt/lib/util-gensalt-sha.c +88 -0
- data/ext/libxcrypt/lib/util-get-random-bytes.c +154 -0
- data/ext/libxcrypt/lib/util-make-failure-token.c +48 -0
- data/ext/libxcrypt/lib/util-xbzero.c +43 -0
- data/ext/libxcrypt/lib/util-xstrcpy.c +42 -0
- data/ext/libxcrypt/lib/xcrypt.h.in +58 -0
- data/ext/libxcrypt/libxcrypt.spec.rpkg +481 -0
- data/ext/libxcrypt/rpkg.conf +2 -0
- data/ext/libxcrypt/rpkg.macros +86 -0
- data/ext/libxcrypt/test/TestCommon.pm +326 -0
- data/ext/libxcrypt/test/alg-des.c +80 -0
- data/ext/libxcrypt/test/alg-gost3411-2012-hmac.c +90 -0
- data/ext/libxcrypt/test/alg-gost3411-2012.c +191 -0
- data/ext/libxcrypt/test/alg-hmac-sha1.c +187 -0
- data/ext/libxcrypt/test/alg-md4.c +111 -0
- data/ext/libxcrypt/test/alg-md5.c +134 -0
- data/ext/libxcrypt/test/alg-pbkdf-hmac-sha256.c +269 -0
- data/ext/libxcrypt/test/alg-sha1.c +111 -0
- data/ext/libxcrypt/test/alg-sha256.c +141 -0
- data/ext/libxcrypt/test/alg-sha512.c +170 -0
- data/ext/libxcrypt/test/alg-sm3-hmac.c +149 -0
- data/ext/libxcrypt/test/alg-sm3.c +168 -0
- data/ext/libxcrypt/test/alg-yescrypt.c +466 -0
- data/ext/libxcrypt/test/badsalt.c +726 -0
- data/ext/libxcrypt/test/badsetting.c +350 -0
- data/ext/libxcrypt/test/byteorder.c +254 -0
- data/ext/libxcrypt/test/checksalt.c +265 -0
- data/ext/libxcrypt/test/compile-strong-alias.c +43 -0
- data/ext/libxcrypt/test/crypt-badargs.c +392 -0
- data/ext/libxcrypt/test/crypt-gost-yescrypt.c +149 -0
- data/ext/libxcrypt/test/crypt-nested-call.c +180 -0
- data/ext/libxcrypt/test/crypt-sm3-yescrypt.c +149 -0
- data/ext/libxcrypt/test/crypt-too-long-phrase.c +157 -0
- data/ext/libxcrypt/test/des-cases.h +196 -0
- data/ext/libxcrypt/test/des-obsolete.c +206 -0
- data/ext/libxcrypt/test/des-obsolete_r.c +207 -0
- data/ext/libxcrypt/test/explicit-bzero.c +334 -0
- data/ext/libxcrypt/test/gensalt-bcrypt_x.c +54 -0
- data/ext/libxcrypt/test/gensalt-extradata.c +246 -0
- data/ext/libxcrypt/test/gensalt-nested-call.c +126 -0
- data/ext/libxcrypt/test/gensalt-nthash.c +65 -0
- data/ext/libxcrypt/test/gensalt.c +599 -0
- data/ext/libxcrypt/test/getrandom-fallbacks.c +295 -0
- data/ext/libxcrypt/test/getrandom-interface.c +211 -0
- data/ext/libxcrypt/test/ka-table-gen.py +945 -0
- data/ext/libxcrypt/test/ka-table.inc +5849 -0
- data/ext/libxcrypt/test/ka-tester.c +240 -0
- data/ext/libxcrypt/test/preferred-method.c +133 -0
- data/ext/libxcrypt/test/short-outbuf.c +119 -0
- data/ext/libxcrypt/test/special-char-salt.c +1160 -0
- data/ext/libxcrypt/test/symbols-compat.pl +137 -0
- data/ext/libxcrypt/test/symbols-renames.pl +107 -0
- data/ext/libxcrypt/test/symbols-static.pl +87 -0
- data/ext/xcrypt/xcrypt.c +9 -0
- data/lib/xcrypt/ffi.rb +76 -0
- data/lib/xcrypt/version.rb +5 -0
- data/lib/xcrypt.rb +89 -0
- metadata +267 -0
|
@@ -0,0 +1,2617 @@
|
|
|
1
|
+
# generated automatically by aclocal 1.18 -*- Autoconf -*-
|
|
2
|
+
|
|
3
|
+
# Copyright (C) 1996-2025 Free Software Foundation, Inc.
|
|
4
|
+
|
|
5
|
+
# This file is free software; the Free Software Foundation
|
|
6
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
7
|
+
# with or without modifications, as long as this notice is preserved.
|
|
8
|
+
|
|
9
|
+
# This program is distributed in the hope that it will be useful,
|
|
10
|
+
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
|
11
|
+
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|
12
|
+
# PARTICULAR PURPOSE.
|
|
13
|
+
|
|
14
|
+
m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
|
|
15
|
+
m4_ifndef([AC_AUTOCONF_VERSION],
|
|
16
|
+
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
|
17
|
+
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.72],,
|
|
18
|
+
[m4_warning([this file was generated for autoconf 2.72.
|
|
19
|
+
You have another version of autoconf. It may work, but is not guaranteed to.
|
|
20
|
+
If you have problems, you may need to regenerate the build system entirely.
|
|
21
|
+
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
|
|
22
|
+
|
|
23
|
+
# ltdl.m4 - Configure ltdl for the target system. -*-Autoconf-*-
|
|
24
|
+
#
|
|
25
|
+
# Copyright (C) 1999-2008, 2011-2019, 2021-2024 Free Software
|
|
26
|
+
# Foundation, Inc.
|
|
27
|
+
# Written by Thomas Tanner, 1999
|
|
28
|
+
#
|
|
29
|
+
# This file is free software; the Free Software Foundation gives
|
|
30
|
+
# unlimited permission to copy and/or distribute it, with or without
|
|
31
|
+
# modifications, as long as this notice is preserved.
|
|
32
|
+
|
|
33
|
+
# serial 24 LTDL_INIT
|
|
34
|
+
|
|
35
|
+
# LT_CONFIG_LTDL_DIR(DIRECTORY, [LTDL-MODE])
|
|
36
|
+
# ------------------------------------------
|
|
37
|
+
# DIRECTORY contains the libltdl sources. It is okay to call this
|
|
38
|
+
# function multiple times, as long as the same DIRECTORY is always given.
|
|
39
|
+
AC_DEFUN([LT_CONFIG_LTDL_DIR],
|
|
40
|
+
[AC_BEFORE([$0], [LTDL_INIT])
|
|
41
|
+
_$0($*)
|
|
42
|
+
])# LT_CONFIG_LTDL_DIR
|
|
43
|
+
|
|
44
|
+
# We break this out into a separate macro, so that we can call it safely
|
|
45
|
+
# internally without being caught accidentally by the sed scan in libtoolize.
|
|
46
|
+
m4_defun([_LT_CONFIG_LTDL_DIR],
|
|
47
|
+
[dnl remove trailing slashes
|
|
48
|
+
m4_pushdef([_ARG_DIR], m4_bpatsubst([$1], [/*$]))
|
|
49
|
+
m4_case(_LTDL_DIR,
|
|
50
|
+
[], [dnl only set lt_ltdl_dir if _ARG_DIR is not simply '.'
|
|
51
|
+
m4_if(_ARG_DIR, [.],
|
|
52
|
+
[],
|
|
53
|
+
[m4_define([_LTDL_DIR], _ARG_DIR)
|
|
54
|
+
_LT_SHELL_INIT([lt_ltdl_dir=']_ARG_DIR['])])],
|
|
55
|
+
[m4_if(_ARG_DIR, _LTDL_DIR,
|
|
56
|
+
[],
|
|
57
|
+
[m4_fatal([multiple libltdl directories: ']_LTDL_DIR[', ']_ARG_DIR['])])])
|
|
58
|
+
m4_popdef([_ARG_DIR])
|
|
59
|
+
])# _LT_CONFIG_LTDL_DIR
|
|
60
|
+
|
|
61
|
+
# Initialise:
|
|
62
|
+
m4_define([_LTDL_DIR], [])
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
# _LT_BUILD_PREFIX
|
|
66
|
+
# ----------------
|
|
67
|
+
# If Autoconf is new enough, expand to '$(top_build_prefix)', otherwise
|
|
68
|
+
# to '$(top_builddir)/'.
|
|
69
|
+
m4_define([_LT_BUILD_PREFIX],
|
|
70
|
+
[m4_ifdef([AC_AUTOCONF_VERSION],
|
|
71
|
+
[m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]), [2.62]),
|
|
72
|
+
[-1], [m4_ifdef([_AC_HAVE_TOP_BUILD_PREFIX],
|
|
73
|
+
[$(top_build_prefix)],
|
|
74
|
+
[$(top_builddir)/])],
|
|
75
|
+
[$(top_build_prefix)])],
|
|
76
|
+
[$(top_builddir)/])[]dnl
|
|
77
|
+
])
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
# LTDL_CONVENIENCE
|
|
81
|
+
# ----------------
|
|
82
|
+
# sets LIBLTDL to the link flags for the libltdl convenience library and
|
|
83
|
+
# LTDLINCL to the include flags for the libltdl header and adds
|
|
84
|
+
# --enable-ltdl-convenience to the configure arguments. Note that
|
|
85
|
+
# AC_CONFIG_SUBDIRS is not called here. LIBLTDL will be prefixed with
|
|
86
|
+
# '$(top_build_prefix)' if available, otherwise with '$(top_builddir)/',
|
|
87
|
+
# and LTDLINCL will be prefixed with '$(top_srcdir)/' (note the single
|
|
88
|
+
# quotes!). If your package is not flat and you're not using automake,
|
|
89
|
+
# define top_build_prefix, top_builddir, and top_srcdir appropriately
|
|
90
|
+
# in your Makefiles.
|
|
91
|
+
AC_DEFUN([LTDL_CONVENIENCE],
|
|
92
|
+
[AC_BEFORE([$0], [LTDL_INIT])dnl
|
|
93
|
+
dnl Although the argument is deprecated and no longer documented,
|
|
94
|
+
dnl LTDL_CONVENIENCE used to take a DIRECTORY orgument, if we have one
|
|
95
|
+
dnl here make sure it is the same as any other declaration of libltdl's
|
|
96
|
+
dnl location! This also ensures lt_ltdl_dir is set when configure.ac is
|
|
97
|
+
dnl not yet using an explicit LT_CONFIG_LTDL_DIR.
|
|
98
|
+
m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl
|
|
99
|
+
_$0()
|
|
100
|
+
])# LTDL_CONVENIENCE
|
|
101
|
+
|
|
102
|
+
# AC_LIBLTDL_CONVENIENCE accepted a directory argument in older libtools,
|
|
103
|
+
# now we have LT_CONFIG_LTDL_DIR:
|
|
104
|
+
AU_DEFUN([AC_LIBLTDL_CONVENIENCE],
|
|
105
|
+
[_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])])
|
|
106
|
+
_LTDL_CONVENIENCE])
|
|
107
|
+
|
|
108
|
+
dnl aclocal-1.4 backwards compatibility:
|
|
109
|
+
dnl AC_DEFUN([AC_LIBLTDL_CONVENIENCE], [])
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
# _LTDL_CONVENIENCE
|
|
113
|
+
# -----------------
|
|
114
|
+
# Code shared by LTDL_CONVENIENCE and LTDL_INIT([convenience]).
|
|
115
|
+
m4_defun([_LTDL_CONVENIENCE],
|
|
116
|
+
[case $enable_ltdl_convenience in
|
|
117
|
+
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
|
|
118
|
+
"") enable_ltdl_convenience=yes
|
|
119
|
+
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
|
|
120
|
+
esac
|
|
121
|
+
LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
|
|
122
|
+
LTDLDEPS=$LIBLTDL
|
|
123
|
+
LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
|
|
124
|
+
|
|
125
|
+
AC_SUBST([LIBLTDL])
|
|
126
|
+
AC_SUBST([LTDLDEPS])
|
|
127
|
+
AC_SUBST([LTDLINCL])
|
|
128
|
+
|
|
129
|
+
# For backwards non-gettext consistent compatibility...
|
|
130
|
+
INCLTDL=$LTDLINCL
|
|
131
|
+
AC_SUBST([INCLTDL])
|
|
132
|
+
])# _LTDL_CONVENIENCE
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
# LTDL_INSTALLABLE
|
|
136
|
+
# ----------------
|
|
137
|
+
# sets LIBLTDL to the link flags for the libltdl installable library
|
|
138
|
+
# and LTDLINCL to the include flags for the libltdl header and adds
|
|
139
|
+
# --enable-ltdl-install to the configure arguments. Note that
|
|
140
|
+
# AC_CONFIG_SUBDIRS is not called from here. If an installed libltdl
|
|
141
|
+
# is not found, LIBLTDL will be prefixed with '$(top_build_prefix)' if
|
|
142
|
+
# available, otherwise with '$(top_builddir)/', and LTDLINCL will be
|
|
143
|
+
# prefixed with '$(top_srcdir)/' (note the single quotes!). If your
|
|
144
|
+
# package is not flat and you're not using automake, define top_build_prefix,
|
|
145
|
+
# top_builddir, and top_srcdir appropriately in your Makefiles.
|
|
146
|
+
# In the future, this macro may have to be called after LT_INIT.
|
|
147
|
+
AC_DEFUN([LTDL_INSTALLABLE],
|
|
148
|
+
[AC_BEFORE([$0], [LTDL_INIT])dnl
|
|
149
|
+
dnl Although the argument is deprecated and no longer documented,
|
|
150
|
+
dnl LTDL_INSTALLABLE used to take a DIRECTORY orgument, if we have one
|
|
151
|
+
dnl here make sure it is the same as any other declaration of libltdl's
|
|
152
|
+
dnl location! This also ensures lt_ltdl_dir is set when configure.ac is
|
|
153
|
+
dnl not yet using an explicit LT_CONFIG_LTDL_DIR.
|
|
154
|
+
m4_ifval([$1], [_LT_CONFIG_LTDL_DIR([$1])])dnl
|
|
155
|
+
_$0()
|
|
156
|
+
])# LTDL_INSTALLABLE
|
|
157
|
+
|
|
158
|
+
# AC_LIBLTDL_INSTALLABLE accepted a directory argument in older libtools,
|
|
159
|
+
# now we have LT_CONFIG_LTDL_DIR:
|
|
160
|
+
AU_DEFUN([AC_LIBLTDL_INSTALLABLE],
|
|
161
|
+
[_LT_CONFIG_LTDL_DIR([m4_default([$1], [libltdl])])
|
|
162
|
+
_LTDL_INSTALLABLE])
|
|
163
|
+
|
|
164
|
+
dnl aclocal-1.4 backwards compatibility:
|
|
165
|
+
dnl AC_DEFUN([AC_LIBLTDL_INSTALLABLE], [])
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
# _LTDL_INSTALLABLE
|
|
169
|
+
# -----------------
|
|
170
|
+
# Code shared by LTDL_INSTALLABLE and LTDL_INIT([installable]).
|
|
171
|
+
m4_defun([_LTDL_INSTALLABLE],
|
|
172
|
+
[if test -f "$prefix/lib/libltdl.la"; then
|
|
173
|
+
lt_save_LDFLAGS=$LDFLAGS
|
|
174
|
+
LDFLAGS="-L$prefix/lib $LDFLAGS"
|
|
175
|
+
AC_CHECK_LIB([ltdl], [lt_dlinit], [lt_lib_ltdl=yes])
|
|
176
|
+
LDFLAGS=$lt_save_LDFLAGS
|
|
177
|
+
if test yes = "${lt_lib_ltdl-no}"; then
|
|
178
|
+
if test yes != "$enable_ltdl_install"; then
|
|
179
|
+
# Don't overwrite $prefix/lib/libltdl.la without --enable-ltdl-install
|
|
180
|
+
AC_MSG_WARN([not overwriting libltdl at $prefix, force with '--enable-ltdl-install'])
|
|
181
|
+
enable_ltdl_install=no
|
|
182
|
+
fi
|
|
183
|
+
elif test no = "$enable_ltdl_install"; then
|
|
184
|
+
AC_MSG_WARN([libltdl not installed, but installation disabled])
|
|
185
|
+
fi
|
|
186
|
+
fi
|
|
187
|
+
|
|
188
|
+
# If configure.ac declared an installable ltdl, and the user didn't override
|
|
189
|
+
# with --disable-ltdl-install, we will install the shipped libltdl.
|
|
190
|
+
case $enable_ltdl_install in
|
|
191
|
+
no) ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
|
|
192
|
+
LIBLTDL=-lltdl
|
|
193
|
+
LTDLDEPS=
|
|
194
|
+
LTDLINCL=
|
|
195
|
+
;;
|
|
196
|
+
*) enable_ltdl_install=yes
|
|
197
|
+
ac_configure_args="$ac_configure_args --enable-ltdl-install"
|
|
198
|
+
LIBLTDL='_LT_BUILD_PREFIX'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdl.la"
|
|
199
|
+
LTDLDEPS=$LIBLTDL
|
|
200
|
+
LTDLINCL='-I$(top_srcdir)'"${lt_ltdl_dir+/$lt_ltdl_dir}"
|
|
201
|
+
;;
|
|
202
|
+
esac
|
|
203
|
+
|
|
204
|
+
AC_SUBST([LIBLTDL])
|
|
205
|
+
AC_SUBST([LTDLDEPS])
|
|
206
|
+
AC_SUBST([LTDLINCL])
|
|
207
|
+
|
|
208
|
+
# For backwards non-gettext consistent compatibility...
|
|
209
|
+
INCLTDL=$LTDLINCL
|
|
210
|
+
AC_SUBST([INCLTDL])
|
|
211
|
+
])# LTDL_INSTALLABLE
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
# _LTDL_MODE_DISPATCH
|
|
215
|
+
# -------------------
|
|
216
|
+
m4_define([_LTDL_MODE_DISPATCH],
|
|
217
|
+
[dnl If _LTDL_DIR is '.', then we are configuring libltdl itself:
|
|
218
|
+
m4_if(_LTDL_DIR, [],
|
|
219
|
+
[],
|
|
220
|
+
dnl if _LTDL_MODE was not set already, the default value is 'subproject':
|
|
221
|
+
[m4_case(m4_default(_LTDL_MODE, [subproject]),
|
|
222
|
+
[subproject], [AC_CONFIG_SUBDIRS(_LTDL_DIR)
|
|
223
|
+
_LT_SHELL_INIT([lt_dlopen_dir=$lt_ltdl_dir])],
|
|
224
|
+
[nonrecursive], [_LT_SHELL_INIT([lt_dlopen_dir=$lt_ltdl_dir; lt_libobj_prefix=$lt_ltdl_dir/])],
|
|
225
|
+
[recursive], [],
|
|
226
|
+
[m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])])dnl
|
|
227
|
+
dnl Be careful not to expand twice:
|
|
228
|
+
m4_define([$0], [])
|
|
229
|
+
])# _LTDL_MODE_DISPATCH
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
# _LT_LIBOBJ(MODULE_NAME)
|
|
233
|
+
# -----------------------
|
|
234
|
+
# Like AC_LIBOBJ, except that MODULE_NAME goes into _LT_LIBOBJS instead
|
|
235
|
+
# of into LIBOBJS.
|
|
236
|
+
AC_DEFUN([_LT_LIBOBJ], [
|
|
237
|
+
m4_pattern_allow([^_LT_LIBOBJS$])
|
|
238
|
+
_LT_LIBOBJS="$_LT_LIBOBJS $1.$ac_objext"
|
|
239
|
+
])# _LT_LIBOBJS
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
# LTDL_INIT([OPTIONS])
|
|
243
|
+
# --------------------
|
|
244
|
+
# Clients of libltdl can use this macro to allow the installer to
|
|
245
|
+
# choose between a shipped copy of the ltdl sources or a preinstalled
|
|
246
|
+
# version of the library. If the shipped ltdl sources are not in a
|
|
247
|
+
# subdirectory named libltdl, the directory name must be given by
|
|
248
|
+
# LT_CONFIG_LTDL_DIR.
|
|
249
|
+
AC_DEFUN([LTDL_INIT],
|
|
250
|
+
[dnl Parse OPTIONS
|
|
251
|
+
_LT_SET_OPTIONS([$0], [$1])
|
|
252
|
+
|
|
253
|
+
dnl We need to keep our own list of libobjs separate from our parent project,
|
|
254
|
+
dnl and the easiest way to do that is redefine the AC_LIBOBJs macro while
|
|
255
|
+
dnl we look for our own LIBOBJs.
|
|
256
|
+
m4_pushdef([AC_LIBOBJ], m4_defn([_LT_LIBOBJ]))
|
|
257
|
+
m4_pushdef([AC_LIBSOURCES])
|
|
258
|
+
|
|
259
|
+
dnl If not otherwise defined, default to the 1.5.x compatible subproject mode:
|
|
260
|
+
m4_if(_LTDL_MODE, [],
|
|
261
|
+
[m4_define([_LTDL_MODE], m4_default([$2], [subproject]))
|
|
262
|
+
m4_if([-1], [m4_bregexp(_LTDL_MODE, [\(subproject\|\(non\)?recursive\)])],
|
|
263
|
+
[m4_fatal([unknown libltdl mode: ]_LTDL_MODE)])])
|
|
264
|
+
|
|
265
|
+
AC_ARG_WITH([included_ltdl],
|
|
266
|
+
[AS_HELP_STRING([--with-included-ltdl],
|
|
267
|
+
[use the GNU ltdl sources included here])])
|
|
268
|
+
|
|
269
|
+
if test yes != "$with_included_ltdl"; then
|
|
270
|
+
# We are not being forced to use the included libltdl sources, so
|
|
271
|
+
# decide whether there is a useful installed version we can use.
|
|
272
|
+
AC_CHECK_HEADER([ltdl.h],
|
|
273
|
+
[AC_CHECK_DECL([lt_dlinterface_register],
|
|
274
|
+
[AC_CHECK_LIB([ltdl], [lt_dladvise_preload],
|
|
275
|
+
[with_included_ltdl=no],
|
|
276
|
+
[with_included_ltdl=yes])],
|
|
277
|
+
[with_included_ltdl=yes],
|
|
278
|
+
[AC_INCLUDES_DEFAULT
|
|
279
|
+
#include <ltdl.h>])],
|
|
280
|
+
[with_included_ltdl=yes],
|
|
281
|
+
[AC_INCLUDES_DEFAULT]
|
|
282
|
+
)
|
|
283
|
+
fi
|
|
284
|
+
|
|
285
|
+
dnl If neither LT_CONFIG_LTDL_DIR, LTDL_CONVENIENCE nor LTDL_INSTALLABLE
|
|
286
|
+
dnl was called yet, then for old times' sake, we assume libltdl is in an
|
|
287
|
+
dnl eponymous directory:
|
|
288
|
+
AC_PROVIDE_IFELSE([LT_CONFIG_LTDL_DIR], [], [_LT_CONFIG_LTDL_DIR([libltdl])])
|
|
289
|
+
|
|
290
|
+
AC_ARG_WITH([ltdl_include],
|
|
291
|
+
[AS_HELP_STRING([--with-ltdl-include=DIR],
|
|
292
|
+
[use the ltdl headers installed in DIR])])
|
|
293
|
+
|
|
294
|
+
if test -n "$with_ltdl_include"; then
|
|
295
|
+
if test -f "$with_ltdl_include/ltdl.h"; then :
|
|
296
|
+
else
|
|
297
|
+
AC_MSG_ERROR([invalid ltdl include directory: '$with_ltdl_include'])
|
|
298
|
+
fi
|
|
299
|
+
else
|
|
300
|
+
with_ltdl_include=no
|
|
301
|
+
fi
|
|
302
|
+
|
|
303
|
+
AC_ARG_WITH([ltdl_lib],
|
|
304
|
+
[AS_HELP_STRING([--with-ltdl-lib=DIR],
|
|
305
|
+
[use the libltdl.la installed in DIR])])
|
|
306
|
+
|
|
307
|
+
if test -n "$with_ltdl_lib"; then
|
|
308
|
+
if test -f "$with_ltdl_lib/libltdl.la"; then :
|
|
309
|
+
else
|
|
310
|
+
AC_MSG_ERROR([invalid ltdl library directory: '$with_ltdl_lib'])
|
|
311
|
+
fi
|
|
312
|
+
else
|
|
313
|
+
with_ltdl_lib=no
|
|
314
|
+
fi
|
|
315
|
+
|
|
316
|
+
case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
|
|
317
|
+
,yes,no,no,)
|
|
318
|
+
m4_case(m4_default(_LTDL_TYPE, [convenience]),
|
|
319
|
+
[convenience], [_LTDL_CONVENIENCE],
|
|
320
|
+
[installable], [_LTDL_INSTALLABLE],
|
|
321
|
+
[m4_fatal([unknown libltdl build type: ]_LTDL_TYPE)])
|
|
322
|
+
;;
|
|
323
|
+
,no,no,no,)
|
|
324
|
+
# If the included ltdl is not to be used, then use the
|
|
325
|
+
# preinstalled libltdl we found.
|
|
326
|
+
AC_DEFINE([HAVE_LTDL], [1],
|
|
327
|
+
[Define this if a modern libltdl is already installed])
|
|
328
|
+
LIBLTDL=-lltdl
|
|
329
|
+
LTDLDEPS=
|
|
330
|
+
LTDLINCL=
|
|
331
|
+
;;
|
|
332
|
+
,no*,no,*)
|
|
333
|
+
AC_MSG_ERROR(['--with-ltdl-include' and '--with-ltdl-lib' options must be used together])
|
|
334
|
+
;;
|
|
335
|
+
*) with_included_ltdl=no
|
|
336
|
+
LIBLTDL="-L$with_ltdl_lib -lltdl"
|
|
337
|
+
LTDLDEPS=
|
|
338
|
+
LTDLINCL=-I$with_ltdl_include
|
|
339
|
+
;;
|
|
340
|
+
esac
|
|
341
|
+
INCLTDL=$LTDLINCL
|
|
342
|
+
|
|
343
|
+
# Report our decision...
|
|
344
|
+
AC_MSG_CHECKING([where to find libltdl headers])
|
|
345
|
+
AC_MSG_RESULT([$LTDLINCL])
|
|
346
|
+
AC_MSG_CHECKING([where to find libltdl library])
|
|
347
|
+
AC_MSG_RESULT([$LIBLTDL])
|
|
348
|
+
|
|
349
|
+
_LTDL_SETUP
|
|
350
|
+
|
|
351
|
+
dnl restore autoconf definition.
|
|
352
|
+
m4_popdef([AC_LIBOBJ])
|
|
353
|
+
m4_popdef([AC_LIBSOURCES])
|
|
354
|
+
|
|
355
|
+
AC_CONFIG_COMMANDS_PRE([
|
|
356
|
+
_ltdl_libobjs=
|
|
357
|
+
_ltdl_ltlibobjs=
|
|
358
|
+
if test -n "$_LT_LIBOBJS"; then
|
|
359
|
+
# Remove the extension.
|
|
360
|
+
_lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
|
|
361
|
+
for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | $SED "$_lt_sed_drop_objext" | sort -u`; do
|
|
362
|
+
_ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
|
|
363
|
+
_ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
|
|
364
|
+
done
|
|
365
|
+
fi
|
|
366
|
+
AC_SUBST([ltdl_LIBOBJS], [$_ltdl_libobjs])
|
|
367
|
+
AC_SUBST([ltdl_LTLIBOBJS], [$_ltdl_ltlibobjs])
|
|
368
|
+
])
|
|
369
|
+
|
|
370
|
+
# Only expand once:
|
|
371
|
+
m4_define([LTDL_INIT])
|
|
372
|
+
])# LTDL_INIT
|
|
373
|
+
|
|
374
|
+
# Old names:
|
|
375
|
+
AU_DEFUN([AC_LIB_LTDL], [LTDL_INIT($@)])
|
|
376
|
+
AU_DEFUN([AC_WITH_LTDL], [LTDL_INIT($@)])
|
|
377
|
+
AU_DEFUN([LT_WITH_LTDL], [LTDL_INIT($@)])
|
|
378
|
+
dnl aclocal-1.4 backwards compatibility:
|
|
379
|
+
dnl AC_DEFUN([AC_LIB_LTDL], [])
|
|
380
|
+
dnl AC_DEFUN([AC_WITH_LTDL], [])
|
|
381
|
+
dnl AC_DEFUN([LT_WITH_LTDL], [])
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
# _LTDL_SETUP
|
|
385
|
+
# -----------
|
|
386
|
+
# Perform all the checks necessary for compilation of the ltdl objects
|
|
387
|
+
# -- including compiler checks and header checks. This is a public
|
|
388
|
+
# interface mainly for the benefit of libltdl's own configure.ac, most
|
|
389
|
+
# other users should call LTDL_INIT instead.
|
|
390
|
+
AC_DEFUN([_LTDL_SETUP],
|
|
391
|
+
[AC_REQUIRE([AC_PROG_CC])dnl
|
|
392
|
+
AC_REQUIRE([LT_SYS_MODULE_EXT])dnl
|
|
393
|
+
AC_REQUIRE([LT_SYS_MODULE_PATH])dnl
|
|
394
|
+
AC_REQUIRE([LT_SYS_DLSEARCH_PATH])dnl
|
|
395
|
+
AC_REQUIRE([LT_LIB_DLLOAD])dnl
|
|
396
|
+
AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl
|
|
397
|
+
AC_REQUIRE([LT_FUNC_DLSYM_USCORE])dnl
|
|
398
|
+
AC_REQUIRE([LT_SYS_DLOPEN_DEPLIBS])dnl
|
|
399
|
+
AC_REQUIRE([LT_FUNC_ARGZ])dnl
|
|
400
|
+
|
|
401
|
+
m4_require([_LT_CHECK_OBJDIR])dnl
|
|
402
|
+
m4_require([_LT_HEADER_DLFCN])dnl
|
|
403
|
+
m4_require([_LT_CHECK_DLPREOPEN])dnl
|
|
404
|
+
m4_require([_LT_DECL_SED])dnl
|
|
405
|
+
|
|
406
|
+
dnl Don't require this, or it will be expanded earlier than the code
|
|
407
|
+
dnl that sets the variables it relies on:
|
|
408
|
+
_LT_ENABLE_INSTALL
|
|
409
|
+
|
|
410
|
+
dnl _LTDL_MODE specific code must be called at least once:
|
|
411
|
+
_LTDL_MODE_DISPATCH
|
|
412
|
+
|
|
413
|
+
# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
|
|
414
|
+
# the user used. This is so that ltdl.h can pick up the parent projects
|
|
415
|
+
# config.h file, The first file in AC_CONFIG_HEADERS must contain the
|
|
416
|
+
# definitions required by ltdl.c.
|
|
417
|
+
# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
|
|
418
|
+
AC_CONFIG_COMMANDS_PRE([dnl
|
|
419
|
+
m4_pattern_allow([^LT_CONFIG_H$])dnl
|
|
420
|
+
m4_ifset([AH_HEADER],
|
|
421
|
+
[LT_CONFIG_H=AH_HEADER],
|
|
422
|
+
[m4_ifset([AC_LIST_HEADERS],
|
|
423
|
+
[LT_CONFIG_H=`echo "AC_LIST_HEADERS" | $SED 's|^[[ ]]*||;s|[[ :]].*$||'`],
|
|
424
|
+
[])])])
|
|
425
|
+
AC_SUBST([LT_CONFIG_H])
|
|
426
|
+
|
|
427
|
+
AC_CHECK_HEADERS([unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h],
|
|
428
|
+
[], [], [AC_INCLUDES_DEFAULT])
|
|
429
|
+
|
|
430
|
+
AC_CHECK_FUNCS([closedir opendir readdir], [], [AC_LIBOBJ([lt__dirent])])
|
|
431
|
+
AC_CHECK_FUNCS([strlcat strlcpy], [], [AC_LIBOBJ([lt__strl])])
|
|
432
|
+
|
|
433
|
+
m4_pattern_allow([LT_LIBEXT])dnl
|
|
434
|
+
AC_DEFINE_UNQUOTED([LT_LIBEXT],["$libext"],[The archive extension])
|
|
435
|
+
|
|
436
|
+
name=
|
|
437
|
+
eval "lt_libprefix=\"$libname_spec\""
|
|
438
|
+
m4_pattern_allow([LT_LIBPREFIX])dnl
|
|
439
|
+
AC_DEFINE_UNQUOTED([LT_LIBPREFIX],["$lt_libprefix"],[The archive prefix])
|
|
440
|
+
|
|
441
|
+
name=ltdl
|
|
442
|
+
eval "LTDLOPEN=\"$libname_spec\""
|
|
443
|
+
AC_SUBST([LTDLOPEN])
|
|
444
|
+
])# _LTDL_SETUP
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
# _LT_ENABLE_INSTALL
|
|
448
|
+
# ------------------
|
|
449
|
+
m4_define([_LT_ENABLE_INSTALL],
|
|
450
|
+
[AC_ARG_ENABLE([ltdl-install],
|
|
451
|
+
[AS_HELP_STRING([--enable-ltdl-install], [install libltdl])])
|
|
452
|
+
|
|
453
|
+
case ,$enable_ltdl_install,$enable_ltdl_convenience in
|
|
454
|
+
*yes*) ;;
|
|
455
|
+
*) enable_ltdl_convenience=yes ;;
|
|
456
|
+
esac
|
|
457
|
+
|
|
458
|
+
m4_ifdef([AM_CONDITIONAL],
|
|
459
|
+
[AM_CONDITIONAL(INSTALL_LTDL, test no != "${enable_ltdl_install-no}")
|
|
460
|
+
AM_CONDITIONAL(CONVENIENCE_LTDL, test no != "${enable_ltdl_convenience-no}")
|
|
461
|
+
AM_CONDITIONAL(LTARGZH_EXISTS, test -n "$LT_ARGZ_H")])
|
|
462
|
+
])# _LT_ENABLE_INSTALL
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
# LT_SYS_DLOPEN_DEPLIBS
|
|
466
|
+
# ---------------------
|
|
467
|
+
AC_DEFUN([LT_SYS_DLOPEN_DEPLIBS],
|
|
468
|
+
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
|
|
469
|
+
AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
|
|
470
|
+
[lt_cv_sys_dlopen_deplibs],
|
|
471
|
+
[# PORTME does your system automatically load deplibs for dlopen?
|
|
472
|
+
# or its logical equivalent (e.g. shl_load for HP-UX < 11)
|
|
473
|
+
# For now, we just catch OSes we know something about -- in the
|
|
474
|
+
# future, we'll try test this programmatically.
|
|
475
|
+
lt_cv_sys_dlopen_deplibs=unknown
|
|
476
|
+
case $host_os in
|
|
477
|
+
aix3*|aix4.1.*|aix4.2.*)
|
|
478
|
+
# Unknown whether this is true for these versions of AIX, but
|
|
479
|
+
# we want this 'case' here to explicitly catch those versions.
|
|
480
|
+
lt_cv_sys_dlopen_deplibs=unknown
|
|
481
|
+
;;
|
|
482
|
+
aix[[4-9]]*)
|
|
483
|
+
lt_cv_sys_dlopen_deplibs=yes
|
|
484
|
+
;;
|
|
485
|
+
amigaos*)
|
|
486
|
+
case $host_cpu in
|
|
487
|
+
powerpc)
|
|
488
|
+
lt_cv_sys_dlopen_deplibs=no
|
|
489
|
+
;;
|
|
490
|
+
esac
|
|
491
|
+
;;
|
|
492
|
+
darwin*)
|
|
493
|
+
# Assuming the user has installed a libdl from somewhere, this is true
|
|
494
|
+
# If you are looking for one http://www.opendarwin.org/projects/dlcompat
|
|
495
|
+
lt_cv_sys_dlopen_deplibs=yes
|
|
496
|
+
;;
|
|
497
|
+
freebsd* | dragonfly* | midnightbsd*)
|
|
498
|
+
lt_cv_sys_dlopen_deplibs=yes
|
|
499
|
+
;;
|
|
500
|
+
gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
|
|
501
|
+
# GNU and its variants, using gnu ld.so (Glibc)
|
|
502
|
+
lt_cv_sys_dlopen_deplibs=yes
|
|
503
|
+
;;
|
|
504
|
+
hpux10*|hpux11*)
|
|
505
|
+
lt_cv_sys_dlopen_deplibs=yes
|
|
506
|
+
;;
|
|
507
|
+
interix*)
|
|
508
|
+
lt_cv_sys_dlopen_deplibs=yes
|
|
509
|
+
;;
|
|
510
|
+
irix[[12345]]*|irix6.[[01]]*)
|
|
511
|
+
# Catch all versions of IRIX before 6.2, and indicate that we don't
|
|
512
|
+
# know how it worked for any of those versions.
|
|
513
|
+
lt_cv_sys_dlopen_deplibs=unknown
|
|
514
|
+
;;
|
|
515
|
+
irix*)
|
|
516
|
+
# The case above catches anything before 6.2, and it's known that
|
|
517
|
+
# at 6.2 and later dlopen does load deplibs.
|
|
518
|
+
lt_cv_sys_dlopen_deplibs=yes
|
|
519
|
+
;;
|
|
520
|
+
*-mlibc)
|
|
521
|
+
lt_cv_sys_dlopen_deplibs=yes
|
|
522
|
+
;;
|
|
523
|
+
netbsd* | netbsdelf*-gnu)
|
|
524
|
+
lt_cv_sys_dlopen_deplibs=yes
|
|
525
|
+
;;
|
|
526
|
+
openbsd*)
|
|
527
|
+
lt_cv_sys_dlopen_deplibs=yes
|
|
528
|
+
;;
|
|
529
|
+
osf[[1234]]*)
|
|
530
|
+
# dlopen did load deplibs (at least at 4.x), but until the 5.x series,
|
|
531
|
+
# it did *not* use an RPATH in a shared library to find objects the
|
|
532
|
+
# library depends on, so we explicitly say 'no'.
|
|
533
|
+
lt_cv_sys_dlopen_deplibs=no
|
|
534
|
+
;;
|
|
535
|
+
osf5.0|osf5.0a|osf5.1)
|
|
536
|
+
# dlopen *does* load deplibs and with the right loader patch applied
|
|
537
|
+
# it even uses RPATH in a shared library to search for shared objects
|
|
538
|
+
# that the library depends on, but there's no easy way to know if that
|
|
539
|
+
# patch is installed. Since this is the case, all we can really
|
|
540
|
+
# say is unknown -- it depends on the patch being installed. If
|
|
541
|
+
# it is, this changes to 'yes'. Without it, it would be 'no'.
|
|
542
|
+
lt_cv_sys_dlopen_deplibs=unknown
|
|
543
|
+
;;
|
|
544
|
+
osf*)
|
|
545
|
+
# the two cases above should catch all versions of osf <= 5.1. Read
|
|
546
|
+
# the comments above for what we know about them.
|
|
547
|
+
# At > 5.1, deplibs are loaded *and* any RPATH in a shared library
|
|
548
|
+
# is used to find them so we can finally say 'yes'.
|
|
549
|
+
lt_cv_sys_dlopen_deplibs=yes
|
|
550
|
+
;;
|
|
551
|
+
qnx*)
|
|
552
|
+
lt_cv_sys_dlopen_deplibs=yes
|
|
553
|
+
;;
|
|
554
|
+
solaris*)
|
|
555
|
+
lt_cv_sys_dlopen_deplibs=yes
|
|
556
|
+
;;
|
|
557
|
+
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
|
|
558
|
+
libltdl_cv_sys_dlopen_deplibs=yes
|
|
559
|
+
;;
|
|
560
|
+
esac
|
|
561
|
+
])
|
|
562
|
+
if test yes != "$lt_cv_sys_dlopen_deplibs"; then
|
|
563
|
+
AC_DEFINE([LTDL_DLOPEN_DEPLIBS], [1],
|
|
564
|
+
[Define if the OS needs help to load dependent libraries for dlopen().])
|
|
565
|
+
fi
|
|
566
|
+
])# LT_SYS_DLOPEN_DEPLIBS
|
|
567
|
+
|
|
568
|
+
# Old name:
|
|
569
|
+
AU_ALIAS([AC_LTDL_SYS_DLOPEN_DEPLIBS], [LT_SYS_DLOPEN_DEPLIBS])
|
|
570
|
+
dnl aclocal-1.4 backwards compatibility:
|
|
571
|
+
dnl AC_DEFUN([AC_LTDL_SYS_DLOPEN_DEPLIBS], [])
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
# LT_SYS_MODULE_EXT
|
|
575
|
+
# -----------------
|
|
576
|
+
AC_DEFUN([LT_SYS_MODULE_EXT],
|
|
577
|
+
[m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
|
|
578
|
+
AC_CACHE_CHECK([what extension is used for runtime loadable modules],
|
|
579
|
+
[libltdl_cv_shlibext],
|
|
580
|
+
[
|
|
581
|
+
module=yes
|
|
582
|
+
eval libltdl_cv_shlibext=$shrext_cmds
|
|
583
|
+
module=no
|
|
584
|
+
eval libltdl_cv_shrext=$shrext_cmds
|
|
585
|
+
])
|
|
586
|
+
if test -n "$libltdl_cv_shlibext"; then
|
|
587
|
+
m4_pattern_allow([LT_MODULE_EXT])dnl
|
|
588
|
+
AC_DEFINE_UNQUOTED([LT_MODULE_EXT], ["$libltdl_cv_shlibext"],
|
|
589
|
+
[Define to the extension used for runtime loadable modules, say, ".so".])
|
|
590
|
+
fi
|
|
591
|
+
if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
|
|
592
|
+
m4_pattern_allow([LT_SHARED_EXT])dnl
|
|
593
|
+
AC_DEFINE_UNQUOTED([LT_SHARED_EXT], ["$libltdl_cv_shrext"],
|
|
594
|
+
[Define to the shared library suffix, say, ".dylib".])
|
|
595
|
+
fi
|
|
596
|
+
if test -n "$shared_archive_member_spec"; then
|
|
597
|
+
m4_pattern_allow([LT_SHARED_LIB_MEMBER])dnl
|
|
598
|
+
AC_DEFINE_UNQUOTED([LT_SHARED_LIB_MEMBER], ["($shared_archive_member_spec.o)"],
|
|
599
|
+
[Define to the shared archive member specification, say "(shr.o)".])
|
|
600
|
+
fi
|
|
601
|
+
])# LT_SYS_MODULE_EXT
|
|
602
|
+
|
|
603
|
+
# Old name:
|
|
604
|
+
AU_ALIAS([AC_LTDL_SHLIBEXT], [LT_SYS_MODULE_EXT])
|
|
605
|
+
dnl aclocal-1.4 backwards compatibility:
|
|
606
|
+
dnl AC_DEFUN([AC_LTDL_SHLIBEXT], [])
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
# LT_SYS_MODULE_PATH
|
|
610
|
+
# ------------------
|
|
611
|
+
AC_DEFUN([LT_SYS_MODULE_PATH],
|
|
612
|
+
[m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
|
|
613
|
+
AC_CACHE_CHECK([what variable specifies run-time module search path],
|
|
614
|
+
[lt_cv_module_path_var], [lt_cv_module_path_var=$shlibpath_var])
|
|
615
|
+
if test -n "$lt_cv_module_path_var"; then
|
|
616
|
+
m4_pattern_allow([LT_MODULE_PATH_VAR])dnl
|
|
617
|
+
AC_DEFINE_UNQUOTED([LT_MODULE_PATH_VAR], ["$lt_cv_module_path_var"],
|
|
618
|
+
[Define to the name of the environment variable that determines the run-time module search path.])
|
|
619
|
+
fi
|
|
620
|
+
])# LT_SYS_MODULE_PATH
|
|
621
|
+
|
|
622
|
+
# Old name:
|
|
623
|
+
AU_ALIAS([AC_LTDL_SHLIBPATH], [LT_SYS_MODULE_PATH])
|
|
624
|
+
dnl aclocal-1.4 backwards compatibility:
|
|
625
|
+
dnl AC_DEFUN([AC_LTDL_SHLIBPATH], [])
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+
# LT_SYS_DLSEARCH_PATH
|
|
629
|
+
# --------------------
|
|
630
|
+
AC_DEFUN([LT_SYS_DLSEARCH_PATH],
|
|
631
|
+
[m4_require([_LT_SYS_DYNAMIC_LINKER])dnl
|
|
632
|
+
AC_CACHE_CHECK([for the default library search path],
|
|
633
|
+
[lt_cv_sys_dlsearch_path],
|
|
634
|
+
[lt_cv_sys_dlsearch_path=$sys_lib_dlsearch_path_spec])
|
|
635
|
+
if test -n "$lt_cv_sys_dlsearch_path"; then
|
|
636
|
+
sys_dlsearch_path=
|
|
637
|
+
for dir in $lt_cv_sys_dlsearch_path; do
|
|
638
|
+
if test -z "$sys_dlsearch_path"; then
|
|
639
|
+
sys_dlsearch_path=$dir
|
|
640
|
+
else
|
|
641
|
+
sys_dlsearch_path=$sys_dlsearch_path$PATH_SEPARATOR$dir
|
|
642
|
+
fi
|
|
643
|
+
done
|
|
644
|
+
m4_pattern_allow([LT_DLSEARCH_PATH])dnl
|
|
645
|
+
AC_DEFINE_UNQUOTED([LT_DLSEARCH_PATH], ["$sys_dlsearch_path"],
|
|
646
|
+
[Define to the system default library search path.])
|
|
647
|
+
fi
|
|
648
|
+
])# LT_SYS_DLSEARCH_PATH
|
|
649
|
+
|
|
650
|
+
# Old name:
|
|
651
|
+
AU_ALIAS([AC_LTDL_SYSSEARCHPATH], [LT_SYS_DLSEARCH_PATH])
|
|
652
|
+
dnl aclocal-1.4 backwards compatibility:
|
|
653
|
+
dnl AC_DEFUN([AC_LTDL_SYSSEARCHPATH], [])
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
# _LT_CHECK_DLPREOPEN
|
|
657
|
+
# -------------------
|
|
658
|
+
m4_defun([_LT_CHECK_DLPREOPEN],
|
|
659
|
+
[m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
|
|
660
|
+
AC_CACHE_CHECK([whether libtool supports -dlopen/-dlpreopen],
|
|
661
|
+
[libltdl_cv_preloaded_symbols],
|
|
662
|
+
[if test -n "$lt_cv_sys_global_symbol_pipe"; then
|
|
663
|
+
libltdl_cv_preloaded_symbols=yes
|
|
664
|
+
else
|
|
665
|
+
libltdl_cv_preloaded_symbols=no
|
|
666
|
+
fi
|
|
667
|
+
])
|
|
668
|
+
if test yes = "$libltdl_cv_preloaded_symbols"; then
|
|
669
|
+
AC_DEFINE([HAVE_PRELOADED_SYMBOLS], [1],
|
|
670
|
+
[Define if libtool can extract symbol lists from object files.])
|
|
671
|
+
fi
|
|
672
|
+
])# _LT_CHECK_DLPREOPEN
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
# LT_LIB_DLLOAD
|
|
676
|
+
# -------------
|
|
677
|
+
AC_DEFUN([LT_LIB_DLLOAD],
|
|
678
|
+
[m4_pattern_allow([^LT_DLLOADERS$])
|
|
679
|
+
LT_DLLOADERS=
|
|
680
|
+
AC_SUBST([LT_DLLOADERS])
|
|
681
|
+
|
|
682
|
+
AC_LANG_PUSH([C])
|
|
683
|
+
lt_dlload_save_LIBS=$LIBS
|
|
684
|
+
|
|
685
|
+
LIBADD_DLOPEN=
|
|
686
|
+
AC_SEARCH_LIBS([dlopen], [dl],
|
|
687
|
+
[AC_DEFINE([HAVE_LIBDL], [1],
|
|
688
|
+
[Define if you have the libdl library or equivalent.])
|
|
689
|
+
if test "$ac_cv_search_dlopen" != "none required"; then
|
|
690
|
+
LIBADD_DLOPEN=-ldl
|
|
691
|
+
fi
|
|
692
|
+
libltdl_cv_lib_dl_dlopen=yes
|
|
693
|
+
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"],
|
|
694
|
+
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#if HAVE_DLFCN_H
|
|
695
|
+
# include <dlfcn.h>
|
|
696
|
+
#endif
|
|
697
|
+
]], [[dlopen(0, 0);]])],
|
|
698
|
+
[AC_DEFINE([HAVE_LIBDL], [1],
|
|
699
|
+
[Define if you have the libdl library or equivalent.])
|
|
700
|
+
libltdl_cv_func_dlopen=yes
|
|
701
|
+
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"],
|
|
702
|
+
[AC_CHECK_LIB([svld], [dlopen],
|
|
703
|
+
[AC_DEFINE([HAVE_LIBDL], [1],
|
|
704
|
+
[Define if you have the libdl library or equivalent.])
|
|
705
|
+
LIBADD_DLOPEN=-lsvld libltdl_cv_func_dlopen=yes
|
|
706
|
+
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"])])])
|
|
707
|
+
if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"
|
|
708
|
+
then
|
|
709
|
+
lt_save_LIBS=$LIBS
|
|
710
|
+
LIBS="$LIBS $LIBADD_DLOPEN"
|
|
711
|
+
AC_CHECK_FUNCS([dlerror])
|
|
712
|
+
LIBS=$lt_save_LIBS
|
|
713
|
+
fi
|
|
714
|
+
AC_SUBST([LIBADD_DLOPEN])
|
|
715
|
+
|
|
716
|
+
LIBADD_SHL_LOAD=
|
|
717
|
+
AC_CHECK_FUNC([shl_load],
|
|
718
|
+
[AC_DEFINE([HAVE_SHL_LOAD], [1],
|
|
719
|
+
[Define if you have the shl_load function.])
|
|
720
|
+
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"],
|
|
721
|
+
[AC_CHECK_LIB([dld], [shl_load],
|
|
722
|
+
[AC_DEFINE([HAVE_SHL_LOAD], [1],
|
|
723
|
+
[Define if you have the shl_load function.])
|
|
724
|
+
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
|
|
725
|
+
LIBADD_SHL_LOAD=-ldld])])
|
|
726
|
+
AC_SUBST([LIBADD_SHL_LOAD])
|
|
727
|
+
|
|
728
|
+
case $host_os in
|
|
729
|
+
darwin[[1567]].*)
|
|
730
|
+
# We only want this for pre-Mac OS X 10.4.
|
|
731
|
+
AC_CHECK_FUNC([_dyld_func_lookup],
|
|
732
|
+
[AC_DEFINE([HAVE_DYLD], [1],
|
|
733
|
+
[Define if you have the _dyld_func_lookup function.])
|
|
734
|
+
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"])
|
|
735
|
+
;;
|
|
736
|
+
beos*)
|
|
737
|
+
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
|
|
738
|
+
;;
|
|
739
|
+
cygwin* | mingw* | windows* | pw32*)
|
|
740
|
+
AC_CHECK_DECLS([cygwin_conv_path], [], [], [[#include <sys/cygwin.h>]])
|
|
741
|
+
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
|
|
742
|
+
;;
|
|
743
|
+
esac
|
|
744
|
+
|
|
745
|
+
AC_CHECK_LIB([dld], [dld_link],
|
|
746
|
+
[AC_DEFINE([HAVE_DLD], [1],
|
|
747
|
+
[Define if you have the GNU dld library.])
|
|
748
|
+
LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"])
|
|
749
|
+
AC_SUBST([LIBADD_DLD_LINK])
|
|
750
|
+
|
|
751
|
+
m4_pattern_allow([^LT_DLPREOPEN$])
|
|
752
|
+
LT_DLPREOPEN=
|
|
753
|
+
if test -n "$LT_DLLOADERS"
|
|
754
|
+
then
|
|
755
|
+
for lt_loader in $LT_DLLOADERS; do
|
|
756
|
+
LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
|
|
757
|
+
done
|
|
758
|
+
AC_DEFINE([HAVE_LIBDLLOADER], [1],
|
|
759
|
+
[Define if libdlloader will be built on this platform])
|
|
760
|
+
fi
|
|
761
|
+
AC_SUBST([LT_DLPREOPEN])
|
|
762
|
+
|
|
763
|
+
dnl This isn't used anymore, but set it for backwards compatibility
|
|
764
|
+
LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
|
|
765
|
+
AC_SUBST([LIBADD_DL])
|
|
766
|
+
|
|
767
|
+
LIBS=$lt_dlload_save_LIBS
|
|
768
|
+
AC_LANG_POP
|
|
769
|
+
])# LT_LIB_DLLOAD
|
|
770
|
+
|
|
771
|
+
# Old name:
|
|
772
|
+
AU_ALIAS([AC_LTDL_DLLIB], [LT_LIB_DLLOAD])
|
|
773
|
+
dnl aclocal-1.4 backwards compatibility:
|
|
774
|
+
dnl AC_DEFUN([AC_LTDL_DLLIB], [])
|
|
775
|
+
|
|
776
|
+
|
|
777
|
+
# LT_SYS_SYMBOL_USCORE
|
|
778
|
+
# --------------------
|
|
779
|
+
# does the compiler prefix global symbols with an underscore?
|
|
780
|
+
AC_DEFUN([LT_SYS_SYMBOL_USCORE],
|
|
781
|
+
[m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
|
|
782
|
+
AC_CACHE_CHECK([for _ prefix in compiled symbols],
|
|
783
|
+
[lt_cv_sys_symbol_underscore],
|
|
784
|
+
[lt_cv_sys_symbol_underscore=no
|
|
785
|
+
cat > conftest.$ac_ext <<_LT_EOF
|
|
786
|
+
void nm_test_func(){}
|
|
787
|
+
int main(void){nm_test_func;return 0;}
|
|
788
|
+
_LT_EOF
|
|
789
|
+
if AC_TRY_EVAL(ac_compile); then
|
|
790
|
+
# Now try to grab the symbols.
|
|
791
|
+
ac_nlist=conftest.nm
|
|
792
|
+
if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) && test -s "$ac_nlist"; then
|
|
793
|
+
# See whether the symbols have a leading underscore.
|
|
794
|
+
if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
|
|
795
|
+
lt_cv_sys_symbol_underscore=yes
|
|
796
|
+
else
|
|
797
|
+
if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
|
|
798
|
+
:
|
|
799
|
+
else
|
|
800
|
+
echo "configure: cannot find nm_test_func in $ac_nlist" >&AS_MESSAGE_LOG_FD
|
|
801
|
+
fi
|
|
802
|
+
fi
|
|
803
|
+
else
|
|
804
|
+
echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
|
|
805
|
+
fi
|
|
806
|
+
else
|
|
807
|
+
echo "configure: failed program was:" >&AS_MESSAGE_LOG_FD
|
|
808
|
+
cat conftest.c >&AS_MESSAGE_LOG_FD
|
|
809
|
+
fi
|
|
810
|
+
rm -rf conftest*
|
|
811
|
+
])
|
|
812
|
+
sys_symbol_underscore=$lt_cv_sys_symbol_underscore
|
|
813
|
+
AC_SUBST([sys_symbol_underscore])
|
|
814
|
+
])# LT_SYS_SYMBOL_USCORE
|
|
815
|
+
|
|
816
|
+
# Old name:
|
|
817
|
+
AU_ALIAS([AC_LTDL_SYMBOL_USCORE], [LT_SYS_SYMBOL_USCORE])
|
|
818
|
+
dnl aclocal-1.4 backwards compatibility:
|
|
819
|
+
dnl AC_DEFUN([AC_LTDL_SYMBOL_USCORE], [])
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
# LT_FUNC_DLSYM_USCORE
|
|
823
|
+
# --------------------
|
|
824
|
+
AC_DEFUN([LT_FUNC_DLSYM_USCORE],
|
|
825
|
+
[AC_REQUIRE([_LT_COMPILER_PIC])dnl for lt_prog_compiler_wl
|
|
826
|
+
AC_REQUIRE([LT_SYS_SYMBOL_USCORE])dnl for lt_cv_sys_symbol_underscore
|
|
827
|
+
AC_REQUIRE([LT_SYS_MODULE_EXT])dnl for libltdl_cv_shlibext
|
|
828
|
+
if test yes = "$lt_cv_sys_symbol_underscore"; then
|
|
829
|
+
if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen"; then
|
|
830
|
+
AC_CACHE_CHECK([whether we have to add an underscore for dlsym],
|
|
831
|
+
[libltdl_cv_need_uscore],
|
|
832
|
+
[libltdl_cv_need_uscore=unknown
|
|
833
|
+
dlsym_uscore_save_LIBS=$LIBS
|
|
834
|
+
LIBS="$LIBS $LIBADD_DLOPEN"
|
|
835
|
+
libname=conftmod # stay within 8.3 filename limits!
|
|
836
|
+
cat >$libname.$ac_ext <<_LT_EOF
|
|
837
|
+
[#line $LINENO "configure"
|
|
838
|
+
#include "confdefs.h"
|
|
839
|
+
/* When -fvisibility=hidden is used, assume the code has been annotated
|
|
840
|
+
correspondingly for the symbols needed. */
|
|
841
|
+
#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
|
|
842
|
+
int fnord () __attribute__((visibility("default")));
|
|
843
|
+
#endif
|
|
844
|
+
int fnord () { return 42; }]
|
|
845
|
+
_LT_EOF
|
|
846
|
+
|
|
847
|
+
# ltfn_module_cmds module_cmds
|
|
848
|
+
# Execute tilde-delimited MODULE_CMDS with environment primed for
|
|
849
|
+
# $module_cmds or $archive_cmds type content.
|
|
850
|
+
ltfn_module_cmds ()
|
|
851
|
+
{( # subshell avoids polluting parent global environment
|
|
852
|
+
module_cmds_save_ifs=$IFS; IFS='~'
|
|
853
|
+
for cmd in @S|@1; do
|
|
854
|
+
IFS=$module_cmds_save_ifs
|
|
855
|
+
libobjs=$libname.$ac_objext; lib=$libname$libltdl_cv_shlibext
|
|
856
|
+
rpath=/not-exists; soname=$libname$libltdl_cv_shlibext; output_objdir=.
|
|
857
|
+
major=; versuffix=; verstring=; deplibs=
|
|
858
|
+
ECHO=echo; wl=$lt_prog_compiler_wl; allow_undefined_flag=
|
|
859
|
+
eval $cmd
|
|
860
|
+
done
|
|
861
|
+
IFS=$module_cmds_save_ifs
|
|
862
|
+
)}
|
|
863
|
+
|
|
864
|
+
# Compile a loadable module using libtool macro expansion results.
|
|
865
|
+
$CC $pic_flag -c $libname.$ac_ext
|
|
866
|
+
ltfn_module_cmds "${module_cmds:-$archive_cmds}"
|
|
867
|
+
|
|
868
|
+
# Try to fetch fnord with dlsym().
|
|
869
|
+
libltdl_dlunknown=0; libltdl_dlnouscore=1; libltdl_dluscore=2
|
|
870
|
+
cat >conftest.$ac_ext <<_LT_EOF
|
|
871
|
+
[#line $LINENO "configure"
|
|
872
|
+
#include "confdefs.h"
|
|
873
|
+
#if HAVE_DLFCN_H
|
|
874
|
+
#include <dlfcn.h>
|
|
875
|
+
#endif
|
|
876
|
+
#include <stdio.h>
|
|
877
|
+
#ifndef RTLD_GLOBAL
|
|
878
|
+
# ifdef DL_GLOBAL
|
|
879
|
+
# define RTLD_GLOBAL DL_GLOBAL
|
|
880
|
+
# else
|
|
881
|
+
# define RTLD_GLOBAL 0
|
|
882
|
+
# endif
|
|
883
|
+
#endif
|
|
884
|
+
#ifndef RTLD_NOW
|
|
885
|
+
# ifdef DL_NOW
|
|
886
|
+
# define RTLD_NOW DL_NOW
|
|
887
|
+
# else
|
|
888
|
+
# define RTLD_NOW 0
|
|
889
|
+
# endif
|
|
890
|
+
#endif
|
|
891
|
+
int main (void) {
|
|
892
|
+
void *handle = dlopen ("`pwd`/$libname$libltdl_cv_shlibext", RTLD_GLOBAL|RTLD_NOW);
|
|
893
|
+
int status = $libltdl_dlunknown;
|
|
894
|
+
if (handle) {
|
|
895
|
+
if (dlsym (handle, "fnord"))
|
|
896
|
+
status = $libltdl_dlnouscore;
|
|
897
|
+
else {
|
|
898
|
+
if (dlsym (handle, "_fnord"))
|
|
899
|
+
status = $libltdl_dluscore;
|
|
900
|
+
else
|
|
901
|
+
puts (dlerror ());
|
|
902
|
+
}
|
|
903
|
+
dlclose (handle);
|
|
904
|
+
} else
|
|
905
|
+
puts (dlerror ());
|
|
906
|
+
return status;
|
|
907
|
+
}]
|
|
908
|
+
_LT_EOF
|
|
909
|
+
if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
|
|
910
|
+
(./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
|
|
911
|
+
libltdl_status=$?
|
|
912
|
+
case x$libltdl_status in
|
|
913
|
+
x$libltdl_dlnouscore) libltdl_cv_need_uscore=no ;;
|
|
914
|
+
x$libltdl_dluscore) libltdl_cv_need_uscore=yes ;;
|
|
915
|
+
x*) libltdl_cv_need_uscore=unknown ;;
|
|
916
|
+
esac
|
|
917
|
+
fi
|
|
918
|
+
rm -rf conftest* $libname*
|
|
919
|
+
LIBS=$dlsym_uscore_save_LIBS
|
|
920
|
+
])
|
|
921
|
+
fi
|
|
922
|
+
fi
|
|
923
|
+
|
|
924
|
+
if test yes = "$libltdl_cv_need_uscore"; then
|
|
925
|
+
AC_DEFINE([NEED_USCORE], [1],
|
|
926
|
+
[Define if dlsym() requires a leading underscore in symbol names.])
|
|
927
|
+
fi
|
|
928
|
+
])# LT_FUNC_DLSYM_USCORE
|
|
929
|
+
|
|
930
|
+
# Old name:
|
|
931
|
+
AU_ALIAS([AC_LTDL_DLSYM_USCORE], [LT_FUNC_DLSYM_USCORE])
|
|
932
|
+
dnl aclocal-1.4 backwards compatibility:
|
|
933
|
+
dnl AC_DEFUN([AC_LTDL_DLSYM_USCORE], [])
|
|
934
|
+
|
|
935
|
+
# pkg.m4 - Macros to locate and use pkg-config. -*- Autoconf -*-
|
|
936
|
+
# serial 13 (pkgconf)
|
|
937
|
+
|
|
938
|
+
dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
|
|
939
|
+
dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
|
|
940
|
+
dnl
|
|
941
|
+
dnl This program is free software; you can redistribute it and/or modify
|
|
942
|
+
dnl it under the terms of the GNU General Public License as published by
|
|
943
|
+
dnl the Free Software Foundation; either version 2 of the License, or
|
|
944
|
+
dnl (at your option) any later version.
|
|
945
|
+
dnl
|
|
946
|
+
dnl This program is distributed in the hope that it will be useful, but
|
|
947
|
+
dnl WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
948
|
+
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
949
|
+
dnl General Public License for more details.
|
|
950
|
+
dnl
|
|
951
|
+
dnl You should have received a copy of the GNU General Public License
|
|
952
|
+
dnl along with this program; if not, see <https://www.gnu.org/licenses/>.
|
|
953
|
+
dnl
|
|
954
|
+
dnl As a special exception to the GNU General Public License, if you
|
|
955
|
+
dnl distribute this file as part of a program that contains a
|
|
956
|
+
dnl configuration script generated by Autoconf, you may include it under
|
|
957
|
+
dnl the same distribution terms that you use for the rest of that
|
|
958
|
+
dnl program.
|
|
959
|
+
|
|
960
|
+
dnl PKG_PREREQ(MIN-VERSION)
|
|
961
|
+
dnl -----------------------
|
|
962
|
+
dnl Since: 0.29
|
|
963
|
+
dnl
|
|
964
|
+
dnl Verify that the version of the pkg-config macros are at least
|
|
965
|
+
dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
|
|
966
|
+
dnl installed version of pkg-config, this checks the developer's version
|
|
967
|
+
dnl of pkg.m4 when generating configure.
|
|
968
|
+
dnl
|
|
969
|
+
dnl To ensure that this macro is defined, also add:
|
|
970
|
+
dnl m4_ifndef([PKG_PREREQ],
|
|
971
|
+
dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
|
|
972
|
+
dnl
|
|
973
|
+
dnl See the "Since" comment for each macro you use to see what version
|
|
974
|
+
dnl of the macros you require.
|
|
975
|
+
m4_defun([PKG_PREREQ],
|
|
976
|
+
[m4_define([PKG_MACROS_VERSION], [0.29.2])
|
|
977
|
+
m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
|
|
978
|
+
[m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
|
|
979
|
+
])dnl PKG_PREREQ
|
|
980
|
+
|
|
981
|
+
dnl PKG_PROG_PKG_CONFIG([MIN-VERSION], [ACTION-IF-NOT-FOUND])
|
|
982
|
+
dnl ---------------------------------------------------------
|
|
983
|
+
dnl Since: 0.16
|
|
984
|
+
dnl
|
|
985
|
+
dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
|
|
986
|
+
dnl first found in the path. Checks that the version of pkg-config found
|
|
987
|
+
dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
|
|
988
|
+
dnl used since that's the first version where most current features of
|
|
989
|
+
dnl pkg-config existed.
|
|
990
|
+
dnl
|
|
991
|
+
dnl If pkg-config is not found or older than specified, it will result
|
|
992
|
+
dnl in an empty PKG_CONFIG variable. To avoid widespread issues with
|
|
993
|
+
dnl scripts not checking it, ACTION-IF-NOT-FOUND defaults to aborting.
|
|
994
|
+
dnl You can specify [PKG_CONFIG=false] as an action instead, which would
|
|
995
|
+
dnl result in pkg-config tests failing, but no bogus error messages.
|
|
996
|
+
AC_DEFUN([PKG_PROG_PKG_CONFIG],
|
|
997
|
+
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
|
|
998
|
+
m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
|
|
999
|
+
m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
|
|
1000
|
+
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
|
|
1001
|
+
AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
|
|
1002
|
+
AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
|
|
1003
|
+
|
|
1004
|
+
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
|
|
1005
|
+
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
|
|
1006
|
+
fi
|
|
1007
|
+
if test -n "$PKG_CONFIG"; then
|
|
1008
|
+
_pkg_min_version=m4_default([$1], [0.9.0])
|
|
1009
|
+
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
|
|
1010
|
+
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
|
|
1011
|
+
AC_MSG_RESULT([yes])
|
|
1012
|
+
else
|
|
1013
|
+
AC_MSG_RESULT([no])
|
|
1014
|
+
PKG_CONFIG=""
|
|
1015
|
+
fi
|
|
1016
|
+
fi
|
|
1017
|
+
if test -z "$PKG_CONFIG"; then
|
|
1018
|
+
m4_default([$2], [AC_MSG_ERROR([pkg-config not found])])
|
|
1019
|
+
fi[]dnl
|
|
1020
|
+
])dnl PKG_PROG_PKG_CONFIG
|
|
1021
|
+
|
|
1022
|
+
dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
|
|
1023
|
+
dnl -------------------------------------------------------------------
|
|
1024
|
+
dnl Since: 0.18
|
|
1025
|
+
dnl
|
|
1026
|
+
dnl Check to see whether a particular set of modules exists. Similar to
|
|
1027
|
+
dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
|
|
1028
|
+
dnl
|
|
1029
|
+
dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
|
|
1030
|
+
dnl only at the first occurrence in configure.ac, so if the first place
|
|
1031
|
+
dnl it's called might be skipped (such as if it is within an "if", you
|
|
1032
|
+
dnl have to call PKG_CHECK_EXISTS manually
|
|
1033
|
+
AC_DEFUN([PKG_CHECK_EXISTS],
|
|
1034
|
+
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
|
|
1035
|
+
if test -n "$PKG_CONFIG" && \
|
|
1036
|
+
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
|
|
1037
|
+
m4_default([$2], [:])
|
|
1038
|
+
m4_ifvaln([$3], [else
|
|
1039
|
+
$3])dnl
|
|
1040
|
+
fi])
|
|
1041
|
+
|
|
1042
|
+
dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
|
|
1043
|
+
dnl ---------------------------------------------
|
|
1044
|
+
dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
|
|
1045
|
+
dnl pkg_failed based on the result.
|
|
1046
|
+
m4_define([_PKG_CONFIG],
|
|
1047
|
+
[if test -n "$$1"; then
|
|
1048
|
+
pkg_cv_[]$1="$$1"
|
|
1049
|
+
elif test -n "$PKG_CONFIG"; then
|
|
1050
|
+
PKG_CHECK_EXISTS([$3],
|
|
1051
|
+
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
|
|
1052
|
+
test "x$?" != "x0" && pkg_failed=yes ],
|
|
1053
|
+
[pkg_failed=yes])
|
|
1054
|
+
else
|
|
1055
|
+
pkg_failed=untried
|
|
1056
|
+
fi[]dnl
|
|
1057
|
+
])dnl _PKG_CONFIG
|
|
1058
|
+
|
|
1059
|
+
dnl _PKG_SHORT_ERRORS_SUPPORTED
|
|
1060
|
+
dnl ---------------------------
|
|
1061
|
+
dnl Internal check to see if pkg-config supports short errors.
|
|
1062
|
+
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
|
|
1063
|
+
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
|
|
1064
|
+
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
|
|
1065
|
+
_pkg_short_errors_supported=yes
|
|
1066
|
+
else
|
|
1067
|
+
_pkg_short_errors_supported=no
|
|
1068
|
+
fi[]dnl
|
|
1069
|
+
])dnl _PKG_SHORT_ERRORS_SUPPORTED
|
|
1070
|
+
|
|
1071
|
+
|
|
1072
|
+
dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
|
|
1073
|
+
dnl [ACTION-IF-NOT-FOUND])
|
|
1074
|
+
dnl --------------------------------------------------------------
|
|
1075
|
+
dnl Since: 0.4.0
|
|
1076
|
+
dnl
|
|
1077
|
+
dnl Note that if there is a possibility the first call to
|
|
1078
|
+
dnl PKG_CHECK_MODULES might not happen, you should be sure to include an
|
|
1079
|
+
dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
|
|
1080
|
+
AC_DEFUN([PKG_CHECK_MODULES],
|
|
1081
|
+
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
|
|
1082
|
+
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
|
|
1083
|
+
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
|
|
1084
|
+
|
|
1085
|
+
pkg_failed=no
|
|
1086
|
+
AC_MSG_CHECKING([for $2])
|
|
1087
|
+
|
|
1088
|
+
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
|
|
1089
|
+
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
|
|
1090
|
+
|
|
1091
|
+
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
|
|
1092
|
+
and $1[]_LIBS to avoid the need to call pkg-config.
|
|
1093
|
+
See the pkg-config man page for more details.])
|
|
1094
|
+
|
|
1095
|
+
if test $pkg_failed = yes; then
|
|
1096
|
+
AC_MSG_RESULT([no])
|
|
1097
|
+
_PKG_SHORT_ERRORS_SUPPORTED
|
|
1098
|
+
if test $_pkg_short_errors_supported = yes; then
|
|
1099
|
+
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
|
|
1100
|
+
else
|
|
1101
|
+
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
|
|
1102
|
+
fi
|
|
1103
|
+
# Put the nasty error message in config.log where it belongs
|
|
1104
|
+
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
|
|
1105
|
+
|
|
1106
|
+
m4_default([$4], [AC_MSG_ERROR(
|
|
1107
|
+
[Package requirements ($2) were not met:
|
|
1108
|
+
|
|
1109
|
+
$$1_PKG_ERRORS
|
|
1110
|
+
|
|
1111
|
+
Consider adjusting the PKG_CONFIG_PATH environment variable if you
|
|
1112
|
+
installed software in a non-standard prefix.
|
|
1113
|
+
|
|
1114
|
+
_PKG_TEXT])[]dnl
|
|
1115
|
+
])
|
|
1116
|
+
elif test $pkg_failed = untried; then
|
|
1117
|
+
AC_MSG_RESULT([no])
|
|
1118
|
+
m4_default([$4], [AC_MSG_FAILURE(
|
|
1119
|
+
[The pkg-config script could not be found or is too old. Make sure it
|
|
1120
|
+
is in your PATH or set the PKG_CONFIG environment variable to the full
|
|
1121
|
+
path to pkg-config.
|
|
1122
|
+
|
|
1123
|
+
_PKG_TEXT
|
|
1124
|
+
|
|
1125
|
+
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
|
|
1126
|
+
])
|
|
1127
|
+
else
|
|
1128
|
+
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
|
|
1129
|
+
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
|
|
1130
|
+
AC_MSG_RESULT([yes])
|
|
1131
|
+
$3
|
|
1132
|
+
fi[]dnl
|
|
1133
|
+
])dnl PKG_CHECK_MODULES
|
|
1134
|
+
|
|
1135
|
+
|
|
1136
|
+
dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
|
|
1137
|
+
dnl [ACTION-IF-NOT-FOUND])
|
|
1138
|
+
dnl ---------------------------------------------------------------------
|
|
1139
|
+
dnl Since: 0.29
|
|
1140
|
+
dnl
|
|
1141
|
+
dnl Checks for existence of MODULES and gathers its build flags with
|
|
1142
|
+
dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
|
|
1143
|
+
dnl and VARIABLE-PREFIX_LIBS from --libs.
|
|
1144
|
+
dnl
|
|
1145
|
+
dnl Note that if there is a possibility the first call to
|
|
1146
|
+
dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to
|
|
1147
|
+
dnl include an explicit call to PKG_PROG_PKG_CONFIG in your
|
|
1148
|
+
dnl configure.ac.
|
|
1149
|
+
AC_DEFUN([PKG_CHECK_MODULES_STATIC],
|
|
1150
|
+
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
|
|
1151
|
+
_save_PKG_CONFIG=$PKG_CONFIG
|
|
1152
|
+
PKG_CONFIG="$PKG_CONFIG --static"
|
|
1153
|
+
PKG_CHECK_MODULES($@)
|
|
1154
|
+
PKG_CONFIG=$_save_PKG_CONFIG[]dnl
|
|
1155
|
+
])dnl PKG_CHECK_MODULES_STATIC
|
|
1156
|
+
|
|
1157
|
+
|
|
1158
|
+
dnl PKG_INSTALLDIR([DIRECTORY])
|
|
1159
|
+
dnl -------------------------
|
|
1160
|
+
dnl Since: 0.27
|
|
1161
|
+
dnl
|
|
1162
|
+
dnl Substitutes the variable pkgconfigdir as the location where a module
|
|
1163
|
+
dnl should install pkg-config .pc files. By default the directory is
|
|
1164
|
+
dnl $libdir/pkgconfig, but the default can be changed by passing
|
|
1165
|
+
dnl DIRECTORY. The user can override through the --with-pkgconfigdir
|
|
1166
|
+
dnl parameter.
|
|
1167
|
+
AC_DEFUN([PKG_INSTALLDIR],
|
|
1168
|
+
[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
|
|
1169
|
+
m4_pushdef([pkg_description],
|
|
1170
|
+
[pkg-config installation directory @<:@]pkg_default[@:>@])
|
|
1171
|
+
AC_ARG_WITH([pkgconfigdir],
|
|
1172
|
+
[AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
|
|
1173
|
+
[with_pkgconfigdir=]pkg_default)
|
|
1174
|
+
AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
|
|
1175
|
+
m4_popdef([pkg_default])
|
|
1176
|
+
m4_popdef([pkg_description])
|
|
1177
|
+
])dnl PKG_INSTALLDIR
|
|
1178
|
+
|
|
1179
|
+
|
|
1180
|
+
dnl PKG_NOARCH_INSTALLDIR([DIRECTORY])
|
|
1181
|
+
dnl --------------------------------
|
|
1182
|
+
dnl Since: 0.27
|
|
1183
|
+
dnl
|
|
1184
|
+
dnl Substitutes the variable noarch_pkgconfigdir as the location where a
|
|
1185
|
+
dnl module should install arch-independent pkg-config .pc files. By
|
|
1186
|
+
dnl default the directory is $datadir/pkgconfig, but the default can be
|
|
1187
|
+
dnl changed by passing DIRECTORY. The user can override through the
|
|
1188
|
+
dnl --with-noarch-pkgconfigdir parameter.
|
|
1189
|
+
AC_DEFUN([PKG_NOARCH_INSTALLDIR],
|
|
1190
|
+
[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
|
|
1191
|
+
m4_pushdef([pkg_description],
|
|
1192
|
+
[pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
|
|
1193
|
+
AC_ARG_WITH([noarch-pkgconfigdir],
|
|
1194
|
+
[AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
|
|
1195
|
+
[with_noarch_pkgconfigdir=]pkg_default)
|
|
1196
|
+
AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
|
|
1197
|
+
m4_popdef([pkg_default])
|
|
1198
|
+
m4_popdef([pkg_description])
|
|
1199
|
+
])dnl PKG_NOARCH_INSTALLDIR
|
|
1200
|
+
|
|
1201
|
+
|
|
1202
|
+
dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
|
|
1203
|
+
dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
|
|
1204
|
+
dnl -------------------------------------------
|
|
1205
|
+
dnl Since: 0.28
|
|
1206
|
+
dnl
|
|
1207
|
+
dnl Retrieves the value of the pkg-config variable for the given module.
|
|
1208
|
+
AC_DEFUN([PKG_CHECK_VAR],
|
|
1209
|
+
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
|
|
1210
|
+
AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
|
|
1211
|
+
|
|
1212
|
+
_PKG_CONFIG([$1], [variable="][$3]["], [$2])
|
|
1213
|
+
AS_VAR_COPY([$1], [pkg_cv_][$1])
|
|
1214
|
+
|
|
1215
|
+
AS_VAR_IF([$1], [""], [$5], [$4])dnl
|
|
1216
|
+
])dnl PKG_CHECK_VAR
|
|
1217
|
+
|
|
1218
|
+
dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES,
|
|
1219
|
+
dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND],
|
|
1220
|
+
dnl [DESCRIPTION], [DEFAULT])
|
|
1221
|
+
dnl ------------------------------------------
|
|
1222
|
+
dnl
|
|
1223
|
+
dnl Prepare a "--with-" configure option using the lowercase
|
|
1224
|
+
dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and
|
|
1225
|
+
dnl PKG_CHECK_MODULES in a single macro.
|
|
1226
|
+
AC_DEFUN([PKG_WITH_MODULES],
|
|
1227
|
+
[
|
|
1228
|
+
m4_pushdef([with_arg], m4_tolower([$1]))
|
|
1229
|
+
|
|
1230
|
+
m4_pushdef([description],
|
|
1231
|
+
[m4_default([$5], [build with ]with_arg[ support])])
|
|
1232
|
+
|
|
1233
|
+
m4_pushdef([def_arg], [m4_default([$6], [auto])])
|
|
1234
|
+
m4_pushdef([def_action_if_found], [AS_TR_SH([with_]with_arg)=yes])
|
|
1235
|
+
m4_pushdef([def_action_if_not_found], [AS_TR_SH([with_]with_arg)=no])
|
|
1236
|
+
|
|
1237
|
+
m4_case(def_arg,
|
|
1238
|
+
[yes],[m4_pushdef([with_without], [--without-]with_arg)],
|
|
1239
|
+
[m4_pushdef([with_without],[--with-]with_arg)])
|
|
1240
|
+
|
|
1241
|
+
AC_ARG_WITH(with_arg,
|
|
1242
|
+
AS_HELP_STRING(with_without, description[ @<:@default=]def_arg[@:>@]),,
|
|
1243
|
+
[AS_TR_SH([with_]with_arg)=def_arg])
|
|
1244
|
+
|
|
1245
|
+
AS_CASE([$AS_TR_SH([with_]with_arg)],
|
|
1246
|
+
[yes],[PKG_CHECK_MODULES([$1],[$2],$3,$4)],
|
|
1247
|
+
[auto],[PKG_CHECK_MODULES([$1],[$2],
|
|
1248
|
+
[m4_n([def_action_if_found]) $3],
|
|
1249
|
+
[m4_n([def_action_if_not_found]) $4])])
|
|
1250
|
+
|
|
1251
|
+
m4_popdef([with_arg])
|
|
1252
|
+
m4_popdef([description])
|
|
1253
|
+
m4_popdef([def_arg])
|
|
1254
|
+
|
|
1255
|
+
])dnl PKG_WITH_MODULES
|
|
1256
|
+
|
|
1257
|
+
dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
|
|
1258
|
+
dnl [DESCRIPTION], [DEFAULT])
|
|
1259
|
+
dnl -----------------------------------------------
|
|
1260
|
+
dnl
|
|
1261
|
+
dnl Convenience macro to trigger AM_CONDITIONAL after PKG_WITH_MODULES
|
|
1262
|
+
dnl check._[VARIABLE-PREFIX] is exported as make variable.
|
|
1263
|
+
AC_DEFUN([PKG_HAVE_WITH_MODULES],
|
|
1264
|
+
[
|
|
1265
|
+
PKG_WITH_MODULES([$1],[$2],,,[$3],[$4])
|
|
1266
|
+
|
|
1267
|
+
AM_CONDITIONAL([HAVE_][$1],
|
|
1268
|
+
[test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"])
|
|
1269
|
+
])dnl PKG_HAVE_WITH_MODULES
|
|
1270
|
+
|
|
1271
|
+
dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
|
|
1272
|
+
dnl [DESCRIPTION], [DEFAULT])
|
|
1273
|
+
dnl ------------------------------------------------------
|
|
1274
|
+
dnl
|
|
1275
|
+
dnl Convenience macro to run AM_CONDITIONAL and AC_DEFINE after
|
|
1276
|
+
dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make
|
|
1277
|
+
dnl and preprocessor variable.
|
|
1278
|
+
AC_DEFUN([PKG_HAVE_DEFINE_WITH_MODULES],
|
|
1279
|
+
[
|
|
1280
|
+
PKG_HAVE_WITH_MODULES([$1],[$2],[$3],[$4])
|
|
1281
|
+
|
|
1282
|
+
AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"],
|
|
1283
|
+
[AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])])
|
|
1284
|
+
])dnl PKG_HAVE_DEFINE_WITH_MODULES
|
|
1285
|
+
|
|
1286
|
+
# Copyright (C) 2002-2025 Free Software Foundation, Inc.
|
|
1287
|
+
#
|
|
1288
|
+
# This file is free software; the Free Software Foundation
|
|
1289
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
1290
|
+
# with or without modifications, as long as this notice is preserved.
|
|
1291
|
+
|
|
1292
|
+
# AM_AUTOMAKE_VERSION(VERSION)
|
|
1293
|
+
# ----------------------------
|
|
1294
|
+
# Automake X.Y traces this macro to ensure aclocal.m4 has been
|
|
1295
|
+
# generated from the m4 files accompanying Automake X.Y.
|
|
1296
|
+
# (This private macro should not be called outside this file.)
|
|
1297
|
+
AC_DEFUN([AM_AUTOMAKE_VERSION],
|
|
1298
|
+
[am__api_version='1.18'
|
|
1299
|
+
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
|
|
1300
|
+
dnl require some minimum version. Point them to the right macro.
|
|
1301
|
+
m4_if([$1], [1.18], [],
|
|
1302
|
+
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
|
|
1303
|
+
])
|
|
1304
|
+
|
|
1305
|
+
# _AM_AUTOCONF_VERSION(VERSION)
|
|
1306
|
+
# -----------------------------
|
|
1307
|
+
# aclocal traces this macro to find the Autoconf version.
|
|
1308
|
+
# This is a private macro too. Using m4_define simplifies
|
|
1309
|
+
# the logic in aclocal, which can simply ignore this definition.
|
|
1310
|
+
m4_define([_AM_AUTOCONF_VERSION], [])
|
|
1311
|
+
|
|
1312
|
+
# AM_SET_CURRENT_AUTOMAKE_VERSION
|
|
1313
|
+
# -------------------------------
|
|
1314
|
+
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
|
|
1315
|
+
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
|
|
1316
|
+
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
|
1317
|
+
[AM_AUTOMAKE_VERSION([1.18])dnl
|
|
1318
|
+
m4_ifndef([AC_AUTOCONF_VERSION],
|
|
1319
|
+
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
|
1320
|
+
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
|
|
1321
|
+
|
|
1322
|
+
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
|
|
1323
|
+
|
|
1324
|
+
# Copyright (C) 2001-2025 Free Software Foundation, Inc.
|
|
1325
|
+
#
|
|
1326
|
+
# This file is free software; the Free Software Foundation
|
|
1327
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
1328
|
+
# with or without modifications, as long as this notice is preserved.
|
|
1329
|
+
|
|
1330
|
+
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
|
|
1331
|
+
# $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
|
|
1332
|
+
# '$srcdir', '$srcdir/..', or '$srcdir/../..'.
|
|
1333
|
+
#
|
|
1334
|
+
# Of course, Automake must honor this variable whenever it calls a
|
|
1335
|
+
# tool from the auxiliary directory. The problem is that $srcdir (and
|
|
1336
|
+
# therefore $ac_aux_dir as well) can be either absolute or relative,
|
|
1337
|
+
# depending on how configure is run. This is pretty annoying, since
|
|
1338
|
+
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
|
|
1339
|
+
# source directory, any form will work fine, but in subdirectories a
|
|
1340
|
+
# relative path needs to be adjusted first.
|
|
1341
|
+
#
|
|
1342
|
+
# $ac_aux_dir/missing
|
|
1343
|
+
# fails when called from a subdirectory if $ac_aux_dir is relative
|
|
1344
|
+
# $top_srcdir/$ac_aux_dir/missing
|
|
1345
|
+
# fails if $ac_aux_dir is absolute,
|
|
1346
|
+
# fails when called from a subdirectory in a VPATH build with
|
|
1347
|
+
# a relative $ac_aux_dir
|
|
1348
|
+
#
|
|
1349
|
+
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
|
|
1350
|
+
# are both prefixed by $srcdir. In an in-source build this is usually
|
|
1351
|
+
# harmless because $srcdir is '.', but things will broke when you
|
|
1352
|
+
# start a VPATH build or use an absolute $srcdir.
|
|
1353
|
+
#
|
|
1354
|
+
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
|
|
1355
|
+
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
|
|
1356
|
+
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
|
|
1357
|
+
# and then we would define $MISSING as
|
|
1358
|
+
# MISSING="\${SHELL} $am_aux_dir/missing"
|
|
1359
|
+
# This will work as long as MISSING is not called from configure, because
|
|
1360
|
+
# unfortunately $(top_srcdir) has no meaning in configure.
|
|
1361
|
+
# However there are other variables, like CC, which are often used in
|
|
1362
|
+
# configure, and could therefore not use this "fixed" $ac_aux_dir.
|
|
1363
|
+
#
|
|
1364
|
+
# Another solution, used here, is to always expand $ac_aux_dir to an
|
|
1365
|
+
# absolute PATH. The drawback is that using absolute paths prevent a
|
|
1366
|
+
# configured tree to be moved without reconfiguration.
|
|
1367
|
+
|
|
1368
|
+
AC_DEFUN([AM_AUX_DIR_EXPAND],
|
|
1369
|
+
[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
|
|
1370
|
+
# Expand $ac_aux_dir to an absolute path.
|
|
1371
|
+
am_aux_dir=`cd "$ac_aux_dir" && pwd`
|
|
1372
|
+
])
|
|
1373
|
+
|
|
1374
|
+
# AM_CONDITIONAL -*- Autoconf -*-
|
|
1375
|
+
|
|
1376
|
+
# Copyright (C) 1997-2025 Free Software Foundation, Inc.
|
|
1377
|
+
#
|
|
1378
|
+
# This file is free software; the Free Software Foundation
|
|
1379
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
1380
|
+
# with or without modifications, as long as this notice is preserved.
|
|
1381
|
+
|
|
1382
|
+
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
|
|
1383
|
+
# -------------------------------------
|
|
1384
|
+
# Define a conditional.
|
|
1385
|
+
AC_DEFUN([AM_CONDITIONAL],
|
|
1386
|
+
[AC_PREREQ([2.52])dnl
|
|
1387
|
+
m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
|
|
1388
|
+
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
|
|
1389
|
+
AC_SUBST([$1_TRUE])dnl
|
|
1390
|
+
AC_SUBST([$1_FALSE])dnl
|
|
1391
|
+
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
|
|
1392
|
+
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
|
|
1393
|
+
m4_define([_AM_COND_VALUE_$1], [$2])dnl
|
|
1394
|
+
if $2; then
|
|
1395
|
+
$1_TRUE=
|
|
1396
|
+
$1_FALSE='#'
|
|
1397
|
+
else
|
|
1398
|
+
$1_TRUE='#'
|
|
1399
|
+
$1_FALSE=
|
|
1400
|
+
fi
|
|
1401
|
+
AC_CONFIG_COMMANDS_PRE(
|
|
1402
|
+
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
|
|
1403
|
+
AC_MSG_ERROR([[conditional "$1" was never defined.
|
|
1404
|
+
Usually this means the macro was only invoked conditionally.]])
|
|
1405
|
+
fi])])
|
|
1406
|
+
|
|
1407
|
+
# Copyright (C) 1999-2025 Free Software Foundation, Inc.
|
|
1408
|
+
#
|
|
1409
|
+
# This file is free software; the Free Software Foundation
|
|
1410
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
1411
|
+
# with or without modifications, as long as this notice is preserved.
|
|
1412
|
+
|
|
1413
|
+
|
|
1414
|
+
# There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
|
|
1415
|
+
# written in clear, in which case automake, when reading aclocal.m4,
|
|
1416
|
+
# will think it sees a *use*, and therefore will trigger all it's
|
|
1417
|
+
# C support machinery. Also note that it means that autoscan, seeing
|
|
1418
|
+
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
|
|
1419
|
+
|
|
1420
|
+
|
|
1421
|
+
# _AM_DEPENDENCIES(NAME)
|
|
1422
|
+
# ----------------------
|
|
1423
|
+
# See how the compiler implements dependency checking.
|
|
1424
|
+
# NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
|
|
1425
|
+
# We try a few techniques and use that to set a single cache variable.
|
|
1426
|
+
#
|
|
1427
|
+
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
|
|
1428
|
+
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
|
|
1429
|
+
# dependency, and given that the user is not expected to run this macro,
|
|
1430
|
+
# just rely on AC_PROG_CC.
|
|
1431
|
+
AC_DEFUN([_AM_DEPENDENCIES],
|
|
1432
|
+
[AC_REQUIRE([AM_SET_DEPDIR])dnl
|
|
1433
|
+
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
|
|
1434
|
+
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
|
|
1435
|
+
AC_REQUIRE([AM_DEP_TRACK])dnl
|
|
1436
|
+
|
|
1437
|
+
m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
|
|
1438
|
+
[$1], [CXX], [depcc="$CXX" am_compiler_list=],
|
|
1439
|
+
[$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
|
|
1440
|
+
[$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
|
|
1441
|
+
[$1], [UPC], [depcc="$UPC" am_compiler_list=],
|
|
1442
|
+
[$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
|
|
1443
|
+
[depcc="$$1" am_compiler_list=])
|
|
1444
|
+
|
|
1445
|
+
AC_CACHE_CHECK([dependency style of $depcc],
|
|
1446
|
+
[am_cv_$1_dependencies_compiler_type],
|
|
1447
|
+
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
|
1448
|
+
# We make a subdir and do the tests there. Otherwise we can end up
|
|
1449
|
+
# making bogus files that we don't know about and never remove. For
|
|
1450
|
+
# instance it was reported that on HP-UX the gcc test will end up
|
|
1451
|
+
# making a dummy file named 'D' -- because '-MD' means "put the output
|
|
1452
|
+
# in D".
|
|
1453
|
+
rm -rf conftest.dir
|
|
1454
|
+
mkdir conftest.dir
|
|
1455
|
+
# Copy depcomp to subdir because otherwise we won't find it if we're
|
|
1456
|
+
# using a relative directory.
|
|
1457
|
+
cp "$am_depcomp" conftest.dir
|
|
1458
|
+
cd conftest.dir
|
|
1459
|
+
# We will build objects and dependencies in a subdirectory because
|
|
1460
|
+
# it helps to detect inapplicable dependency modes. For instance
|
|
1461
|
+
# both Tru64's cc and ICC support -MD to output dependencies as a
|
|
1462
|
+
# side effect of compilation, but ICC will put the dependencies in
|
|
1463
|
+
# the current directory while Tru64 will put them in the object
|
|
1464
|
+
# directory.
|
|
1465
|
+
mkdir sub
|
|
1466
|
+
|
|
1467
|
+
am_cv_$1_dependencies_compiler_type=none
|
|
1468
|
+
if test "$am_compiler_list" = ""; then
|
|
1469
|
+
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
|
|
1470
|
+
fi
|
|
1471
|
+
am__universal=false
|
|
1472
|
+
m4_case([$1], [CC],
|
|
1473
|
+
[case " $depcc " in #(
|
|
1474
|
+
*\ -arch\ *\ -arch\ *) am__universal=true ;;
|
|
1475
|
+
esac],
|
|
1476
|
+
[CXX],
|
|
1477
|
+
[case " $depcc " in #(
|
|
1478
|
+
*\ -arch\ *\ -arch\ *) am__universal=true ;;
|
|
1479
|
+
esac])
|
|
1480
|
+
|
|
1481
|
+
for depmode in $am_compiler_list; do
|
|
1482
|
+
# Setup a source with many dependencies, because some compilers
|
|
1483
|
+
# like to wrap large dependency lists on column 80 (with \), and
|
|
1484
|
+
# we should not choose a depcomp mode which is confused by this.
|
|
1485
|
+
#
|
|
1486
|
+
# We need to recreate these files for each test, as the compiler may
|
|
1487
|
+
# overwrite some of them when testing with obscure command lines.
|
|
1488
|
+
# This happens at least with the AIX C compiler.
|
|
1489
|
+
: > sub/conftest.c
|
|
1490
|
+
for i in 1 2 3 4 5 6; do
|
|
1491
|
+
echo '#include "conftst'$i'.h"' >> sub/conftest.c
|
|
1492
|
+
# Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
|
|
1493
|
+
# Solaris 10 /bin/sh.
|
|
1494
|
+
echo '/* dummy */' > sub/conftst$i.h
|
|
1495
|
+
done
|
|
1496
|
+
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
|
|
1497
|
+
|
|
1498
|
+
# We check with '-c' and '-o' for the sake of the "dashmstdout"
|
|
1499
|
+
# mode. It turns out that the SunPro C++ compiler does not properly
|
|
1500
|
+
# handle '-M -o', and we need to detect this. Also, some Intel
|
|
1501
|
+
# versions had trouble with output in subdirs.
|
|
1502
|
+
am__obj=sub/conftest.${OBJEXT-o}
|
|
1503
|
+
am__minus_obj="-o $am__obj"
|
|
1504
|
+
case $depmode in
|
|
1505
|
+
gcc)
|
|
1506
|
+
# This depmode causes a compiler race in universal mode.
|
|
1507
|
+
test "$am__universal" = false || continue
|
|
1508
|
+
;;
|
|
1509
|
+
nosideeffect)
|
|
1510
|
+
# After this tag, mechanisms are not by side-effect, so they'll
|
|
1511
|
+
# only be used when explicitly requested.
|
|
1512
|
+
if test "x$enable_dependency_tracking" = xyes; then
|
|
1513
|
+
continue
|
|
1514
|
+
else
|
|
1515
|
+
break
|
|
1516
|
+
fi
|
|
1517
|
+
;;
|
|
1518
|
+
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
|
|
1519
|
+
# This compiler won't grok '-c -o', but also, the minuso test has
|
|
1520
|
+
# not run yet. These depmodes are late enough in the game, and
|
|
1521
|
+
# so weak that their functioning should not be impacted.
|
|
1522
|
+
am__obj=conftest.${OBJEXT-o}
|
|
1523
|
+
am__minus_obj=
|
|
1524
|
+
;;
|
|
1525
|
+
none) break ;;
|
|
1526
|
+
esac
|
|
1527
|
+
if depmode=$depmode \
|
|
1528
|
+
source=sub/conftest.c object=$am__obj \
|
|
1529
|
+
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
|
|
1530
|
+
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
|
|
1531
|
+
>/dev/null 2>conftest.err &&
|
|
1532
|
+
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
|
|
1533
|
+
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
|
|
1534
|
+
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
|
|
1535
|
+
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
|
1536
|
+
# icc doesn't choke on unknown options, it will just issue warnings
|
|
1537
|
+
# or remarks (even with -Werror). So we grep stderr for any message
|
|
1538
|
+
# that says an option was ignored or not supported.
|
|
1539
|
+
# When given -MP, icc 7.0 and 7.1 complain thus:
|
|
1540
|
+
# icc: Command line warning: ignoring option '-M'; no argument required
|
|
1541
|
+
# The diagnosis changed in icc 8.0:
|
|
1542
|
+
# icc: Command line remark: option '-MP' not supported
|
|
1543
|
+
if (grep 'ignoring option' conftest.err ||
|
|
1544
|
+
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
|
|
1545
|
+
am_cv_$1_dependencies_compiler_type=$depmode
|
|
1546
|
+
break
|
|
1547
|
+
fi
|
|
1548
|
+
fi
|
|
1549
|
+
done
|
|
1550
|
+
|
|
1551
|
+
cd ..
|
|
1552
|
+
rm -rf conftest.dir
|
|
1553
|
+
else
|
|
1554
|
+
am_cv_$1_dependencies_compiler_type=none
|
|
1555
|
+
fi
|
|
1556
|
+
])
|
|
1557
|
+
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
|
|
1558
|
+
AM_CONDITIONAL([am__fastdep$1], [
|
|
1559
|
+
test "x$enable_dependency_tracking" != xno \
|
|
1560
|
+
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
|
|
1561
|
+
])
|
|
1562
|
+
|
|
1563
|
+
|
|
1564
|
+
# AM_SET_DEPDIR
|
|
1565
|
+
# -------------
|
|
1566
|
+
# Choose a directory name for dependency files.
|
|
1567
|
+
# This macro is AC_REQUIREd in _AM_DEPENDENCIES.
|
|
1568
|
+
AC_DEFUN([AM_SET_DEPDIR],
|
|
1569
|
+
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
|
1570
|
+
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
|
|
1571
|
+
])
|
|
1572
|
+
|
|
1573
|
+
|
|
1574
|
+
# AM_DEP_TRACK
|
|
1575
|
+
# ------------
|
|
1576
|
+
AC_DEFUN([AM_DEP_TRACK],
|
|
1577
|
+
[AC_ARG_ENABLE([dependency-tracking], [dnl
|
|
1578
|
+
AS_HELP_STRING(
|
|
1579
|
+
[--enable-dependency-tracking],
|
|
1580
|
+
[do not reject slow dependency extractors])
|
|
1581
|
+
AS_HELP_STRING(
|
|
1582
|
+
[--disable-dependency-tracking],
|
|
1583
|
+
[speeds up one-time build])])
|
|
1584
|
+
if test "x$enable_dependency_tracking" != xno; then
|
|
1585
|
+
am_depcomp="$ac_aux_dir/depcomp"
|
|
1586
|
+
AMDEPBACKSLASH='\'
|
|
1587
|
+
am__nodep='_no'
|
|
1588
|
+
fi
|
|
1589
|
+
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
|
|
1590
|
+
AC_SUBST([AMDEPBACKSLASH])dnl
|
|
1591
|
+
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
|
|
1592
|
+
AC_SUBST([am__nodep])dnl
|
|
1593
|
+
_AM_SUBST_NOTMAKE([am__nodep])dnl
|
|
1594
|
+
])
|
|
1595
|
+
|
|
1596
|
+
# Generate code to set up dependency tracking. -*- Autoconf -*-
|
|
1597
|
+
|
|
1598
|
+
# Copyright (C) 1999-2025 Free Software Foundation, Inc.
|
|
1599
|
+
#
|
|
1600
|
+
# This file is free software; the Free Software Foundation
|
|
1601
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
1602
|
+
# with or without modifications, as long as this notice is preserved.
|
|
1603
|
+
|
|
1604
|
+
# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
|
1605
|
+
# ------------------------------
|
|
1606
|
+
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
|
|
1607
|
+
[{
|
|
1608
|
+
# Older Autoconf quotes --file arguments for eval, but not when files
|
|
1609
|
+
# are listed without --file. Let's play safe and only enable the eval
|
|
1610
|
+
# if we detect the quoting.
|
|
1611
|
+
# TODO: see whether this extra hack can be removed once we start
|
|
1612
|
+
# requiring Autoconf 2.70 or later.
|
|
1613
|
+
AS_CASE([$CONFIG_FILES],
|
|
1614
|
+
[*\'*], [eval set x "$CONFIG_FILES"],
|
|
1615
|
+
[*], [set x $CONFIG_FILES])
|
|
1616
|
+
shift
|
|
1617
|
+
# Used to flag and report bootstrapping failures.
|
|
1618
|
+
am_rc=0
|
|
1619
|
+
for am_mf
|
|
1620
|
+
do
|
|
1621
|
+
# Strip MF so we end up with the name of the file.
|
|
1622
|
+
am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
|
|
1623
|
+
# Check whether this is an Automake generated Makefile which includes
|
|
1624
|
+
# dependency-tracking related rules and includes.
|
|
1625
|
+
# Grep'ing the whole file directly is not great: AIX grep has a line
|
|
1626
|
+
# limit of 2048, but all sed's we know have understand at least 4000.
|
|
1627
|
+
sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
|
|
1628
|
+
|| continue
|
|
1629
|
+
am_dirpart=`AS_DIRNAME(["$am_mf"])`
|
|
1630
|
+
am_filepart=`AS_BASENAME(["$am_mf"])`
|
|
1631
|
+
AM_RUN_LOG([cd "$am_dirpart" \
|
|
1632
|
+
&& sed -e '/# am--include-marker/d' "$am_filepart" \
|
|
1633
|
+
| $MAKE -f - am--depfiles]) || am_rc=$?
|
|
1634
|
+
done
|
|
1635
|
+
if test $am_rc -ne 0; then
|
|
1636
|
+
AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
|
|
1637
|
+
for automatic dependency tracking. If GNU make was not used, consider
|
|
1638
|
+
re-running the configure script with MAKE="gmake" (or whatever is
|
|
1639
|
+
necessary). You can also try re-running configure with the
|
|
1640
|
+
'--disable-dependency-tracking' option to at least be able to build
|
|
1641
|
+
the package (albeit without support for automatic dependency tracking).])
|
|
1642
|
+
fi
|
|
1643
|
+
AS_UNSET([am_dirpart])
|
|
1644
|
+
AS_UNSET([am_filepart])
|
|
1645
|
+
AS_UNSET([am_mf])
|
|
1646
|
+
AS_UNSET([am_rc])
|
|
1647
|
+
rm -f conftest-deps.mk
|
|
1648
|
+
}
|
|
1649
|
+
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
|
|
1650
|
+
|
|
1651
|
+
|
|
1652
|
+
# AM_OUTPUT_DEPENDENCY_COMMANDS
|
|
1653
|
+
# -----------------------------
|
|
1654
|
+
# This macro should only be invoked once -- use via AC_REQUIRE.
|
|
1655
|
+
#
|
|
1656
|
+
# This code is only required when automatic dependency tracking is enabled.
|
|
1657
|
+
# This creates each '.Po' and '.Plo' makefile fragment that we'll need in
|
|
1658
|
+
# order to bootstrap the dependency handling code.
|
|
1659
|
+
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
|
|
1660
|
+
[AC_CONFIG_COMMANDS([depfiles],
|
|
1661
|
+
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
|
|
1662
|
+
[AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
|
|
1663
|
+
|
|
1664
|
+
# AM_EXTRA_RECURSIVE_TARGETS -*- Autoconf -*-
|
|
1665
|
+
|
|
1666
|
+
# Copyright (C) 2012-2025 Free Software Foundation, Inc.
|
|
1667
|
+
#
|
|
1668
|
+
# This file is free software; the Free Software Foundation
|
|
1669
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
1670
|
+
# with or without modifications, as long as this notice is preserved.
|
|
1671
|
+
|
|
1672
|
+
# AM_EXTRA_RECURSIVE_TARGETS
|
|
1673
|
+
# --------------------------
|
|
1674
|
+
# Define the list of user recursive targets. This macro exists only to
|
|
1675
|
+
# be traced by Automake, which will ensure that a proper definition of
|
|
1676
|
+
# user-defined recursive targets (and associated rules) is propagated
|
|
1677
|
+
# into all the generated Makefiles.
|
|
1678
|
+
# TODO: We should really reject non-literal arguments here...
|
|
1679
|
+
AC_DEFUN([AM_EXTRA_RECURSIVE_TARGETS], [])
|
|
1680
|
+
|
|
1681
|
+
# Do all the work for Automake. -*- Autoconf -*-
|
|
1682
|
+
|
|
1683
|
+
# Copyright (C) 1996-2025 Free Software Foundation, Inc.
|
|
1684
|
+
#
|
|
1685
|
+
# This file is free software; the Free Software Foundation
|
|
1686
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
1687
|
+
# with or without modifications, as long as this notice is preserved.
|
|
1688
|
+
|
|
1689
|
+
# This macro actually does too much. Some checks are only needed if
|
|
1690
|
+
# your package does certain things. But this isn't really a big deal.
|
|
1691
|
+
|
|
1692
|
+
dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
|
|
1693
|
+
m4_define([AC_PROG_CC],
|
|
1694
|
+
m4_defn([AC_PROG_CC])
|
|
1695
|
+
[_AM_PROG_CC_C_O
|
|
1696
|
+
])
|
|
1697
|
+
|
|
1698
|
+
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
|
|
1699
|
+
# AM_INIT_AUTOMAKE([OPTIONS])
|
|
1700
|
+
# -----------------------------------------------
|
|
1701
|
+
# The call with PACKAGE and VERSION arguments is the old style
|
|
1702
|
+
# call (pre autoconf-2.50), which is being phased out. PACKAGE
|
|
1703
|
+
# and VERSION should now be passed to AC_INIT and removed from
|
|
1704
|
+
# the call to AM_INIT_AUTOMAKE.
|
|
1705
|
+
# We support both call styles for the transition. After
|
|
1706
|
+
# the next Automake release, Autoconf can make the AC_INIT
|
|
1707
|
+
# arguments mandatory, and then we can depend on a new Autoconf
|
|
1708
|
+
# release and drop the old call support.
|
|
1709
|
+
AC_DEFUN([AM_INIT_AUTOMAKE],
|
|
1710
|
+
[AC_PREREQ([2.65])dnl
|
|
1711
|
+
m4_ifdef([_$0_ALREADY_INIT],
|
|
1712
|
+
[m4_fatal([$0 expanded multiple times
|
|
1713
|
+
]m4_defn([_$0_ALREADY_INIT]))],
|
|
1714
|
+
[m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl
|
|
1715
|
+
dnl Autoconf wants to disallow AM_ names. We explicitly allow
|
|
1716
|
+
dnl the ones we care about.
|
|
1717
|
+
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
|
|
1718
|
+
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
|
|
1719
|
+
AC_REQUIRE([AC_PROG_INSTALL])dnl
|
|
1720
|
+
if test "`cd $srcdir && pwd`" != "`pwd`"; then
|
|
1721
|
+
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
|
|
1722
|
+
# is not polluted with repeated "-I."
|
|
1723
|
+
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
|
|
1724
|
+
# test to see if srcdir already configured
|
|
1725
|
+
if test -f $srcdir/config.status; then
|
|
1726
|
+
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
|
|
1727
|
+
fi
|
|
1728
|
+
fi
|
|
1729
|
+
|
|
1730
|
+
# test whether we have cygpath
|
|
1731
|
+
if test -z "$CYGPATH_W"; then
|
|
1732
|
+
if (cygpath --version) >/dev/null 2>/dev/null; then
|
|
1733
|
+
CYGPATH_W='cygpath -w'
|
|
1734
|
+
else
|
|
1735
|
+
CYGPATH_W=echo
|
|
1736
|
+
fi
|
|
1737
|
+
fi
|
|
1738
|
+
AC_SUBST([CYGPATH_W])
|
|
1739
|
+
|
|
1740
|
+
# Define the identity of the package.
|
|
1741
|
+
dnl Distinguish between old-style and new-style calls.
|
|
1742
|
+
m4_ifval([$2],
|
|
1743
|
+
[AC_DIAGNOSE([obsolete],
|
|
1744
|
+
[$0: two- and three-arguments forms are deprecated.])
|
|
1745
|
+
m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
|
|
1746
|
+
AC_SUBST([PACKAGE], [$1])dnl
|
|
1747
|
+
AC_SUBST([VERSION], [$2])],
|
|
1748
|
+
[_AM_SET_OPTIONS([$1])dnl
|
|
1749
|
+
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
|
|
1750
|
+
m4_if(
|
|
1751
|
+
m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]),
|
|
1752
|
+
[ok:ok],,
|
|
1753
|
+
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
|
|
1754
|
+
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
|
|
1755
|
+
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
|
|
1756
|
+
|
|
1757
|
+
_AM_IF_OPTION([no-define],,
|
|
1758
|
+
[AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
|
|
1759
|
+
AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
|
|
1760
|
+
|
|
1761
|
+
# Some tools Automake needs.
|
|
1762
|
+
AC_REQUIRE([AM_SANITY_CHECK])dnl
|
|
1763
|
+
AC_REQUIRE([AC_ARG_PROGRAM])dnl
|
|
1764
|
+
AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
|
|
1765
|
+
AM_MISSING_PROG([AUTOCONF], [autoconf])
|
|
1766
|
+
AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
|
|
1767
|
+
AM_MISSING_PROG([AUTOHEADER], [autoheader])
|
|
1768
|
+
AM_MISSING_PROG([MAKEINFO], [makeinfo])
|
|
1769
|
+
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
|
1770
|
+
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
|
|
1771
|
+
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
|
|
1772
|
+
# For better backward compatibility. To be removed once Automake 1.9.x
|
|
1773
|
+
# dies out for good. For more background, see:
|
|
1774
|
+
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
|
|
1775
|
+
# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
|
|
1776
|
+
AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
|
|
1777
|
+
# We need awk for the "check" target (and possibly the TAP driver). The
|
|
1778
|
+
# system "awk" is bad on some platforms.
|
|
1779
|
+
AC_REQUIRE([AC_PROG_AWK])dnl
|
|
1780
|
+
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
|
|
1781
|
+
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
|
|
1782
|
+
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
|
|
1783
|
+
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
|
|
1784
|
+
[_AM_IF_OPTION([tar-v7], [_AM_PROG_TAR([v7])],
|
|
1785
|
+
[_AM_PROG_TAR([ustar])])])])
|
|
1786
|
+
_AM_IF_OPTION([no-dependencies],,
|
|
1787
|
+
[AC_PROVIDE_IFELSE([AC_PROG_CC],
|
|
1788
|
+
[_AM_DEPENDENCIES([CC])],
|
|
1789
|
+
[m4_define([AC_PROG_CC],
|
|
1790
|
+
m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
|
|
1791
|
+
AC_PROVIDE_IFELSE([AC_PROG_CXX],
|
|
1792
|
+
[_AM_DEPENDENCIES([CXX])],
|
|
1793
|
+
[m4_define([AC_PROG_CXX],
|
|
1794
|
+
m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
|
|
1795
|
+
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
|
|
1796
|
+
[_AM_DEPENDENCIES([OBJC])],
|
|
1797
|
+
[m4_define([AC_PROG_OBJC],
|
|
1798
|
+
m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
|
|
1799
|
+
AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
|
|
1800
|
+
[_AM_DEPENDENCIES([OBJCXX])],
|
|
1801
|
+
[m4_define([AC_PROG_OBJCXX],
|
|
1802
|
+
m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
|
|
1803
|
+
])
|
|
1804
|
+
# Variables for tags utilities; see am/tags.am
|
|
1805
|
+
if test -z "$CTAGS"; then
|
|
1806
|
+
CTAGS=ctags
|
|
1807
|
+
fi
|
|
1808
|
+
AC_SUBST([CTAGS])
|
|
1809
|
+
if test -z "$ETAGS"; then
|
|
1810
|
+
ETAGS=etags
|
|
1811
|
+
fi
|
|
1812
|
+
AC_SUBST([ETAGS])
|
|
1813
|
+
if test -z "$CSCOPE"; then
|
|
1814
|
+
CSCOPE=cscope
|
|
1815
|
+
fi
|
|
1816
|
+
AC_SUBST([CSCOPE])
|
|
1817
|
+
|
|
1818
|
+
AC_REQUIRE([_AM_SILENT_RULES])dnl
|
|
1819
|
+
dnl The testsuite driver may need to know about EXEEXT, so add the
|
|
1820
|
+
dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
|
|
1821
|
+
dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
|
|
1822
|
+
AC_CONFIG_COMMANDS_PRE(dnl
|
|
1823
|
+
[m4_provide_if([_AM_COMPILER_EXEEXT],
|
|
1824
|
+
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
|
|
1825
|
+
|
|
1826
|
+
AC_REQUIRE([_AM_PROG_RM_F])
|
|
1827
|
+
AC_REQUIRE([_AM_PROG_XARGS_N])
|
|
1828
|
+
|
|
1829
|
+
dnl The trailing newline in this macro's definition is deliberate, for
|
|
1830
|
+
dnl backward compatibility and to allow trailing 'dnl'-style comments
|
|
1831
|
+
dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
|
|
1832
|
+
])
|
|
1833
|
+
|
|
1834
|
+
dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
|
|
1835
|
+
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
|
|
1836
|
+
dnl mangled by Autoconf and run in a shell conditional statement.
|
|
1837
|
+
m4_define([_AC_COMPILER_EXEEXT],
|
|
1838
|
+
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
|
|
1839
|
+
|
|
1840
|
+
# When config.status generates a header, we must update the stamp-h file.
|
|
1841
|
+
# This file resides in the same directory as the config header
|
|
1842
|
+
# that is generated. The stamp files are numbered to have different names.
|
|
1843
|
+
|
|
1844
|
+
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
|
|
1845
|
+
# loop where config.status creates the headers, so we can generate
|
|
1846
|
+
# our stamp files there.
|
|
1847
|
+
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
|
|
1848
|
+
[# Compute $1's index in $config_headers.
|
|
1849
|
+
_am_arg=$1
|
|
1850
|
+
_am_stamp_count=1
|
|
1851
|
+
for _am_header in $config_headers :; do
|
|
1852
|
+
case $_am_header in
|
|
1853
|
+
$_am_arg | $_am_arg:* )
|
|
1854
|
+
break ;;
|
|
1855
|
+
* )
|
|
1856
|
+
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
|
|
1857
|
+
esac
|
|
1858
|
+
done
|
|
1859
|
+
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
|
|
1860
|
+
|
|
1861
|
+
# Copyright (C) 2001-2025 Free Software Foundation, Inc.
|
|
1862
|
+
#
|
|
1863
|
+
# This file is free software; the Free Software Foundation
|
|
1864
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
1865
|
+
# with or without modifications, as long as this notice is preserved.
|
|
1866
|
+
|
|
1867
|
+
# AM_PROG_INSTALL_SH
|
|
1868
|
+
# ------------------
|
|
1869
|
+
# Define $install_sh.
|
|
1870
|
+
AC_DEFUN([AM_PROG_INSTALL_SH],
|
|
1871
|
+
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|
1872
|
+
if test x"${install_sh+set}" != xset; then
|
|
1873
|
+
case $am_aux_dir in
|
|
1874
|
+
*\ * | *\ *)
|
|
1875
|
+
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
|
|
1876
|
+
*)
|
|
1877
|
+
install_sh="\${SHELL} $am_aux_dir/install-sh"
|
|
1878
|
+
esac
|
|
1879
|
+
fi
|
|
1880
|
+
AC_SUBST([install_sh])])
|
|
1881
|
+
|
|
1882
|
+
# Copyright (C) 2003-2025 Free Software Foundation, Inc.
|
|
1883
|
+
#
|
|
1884
|
+
# This file is free software; the Free Software Foundation
|
|
1885
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
1886
|
+
# with or without modifications, as long as this notice is preserved.
|
|
1887
|
+
|
|
1888
|
+
# Check whether the underlying file-system supports filenames
|
|
1889
|
+
# with a leading dot. For instance MS-DOS doesn't.
|
|
1890
|
+
AC_DEFUN([AM_SET_LEADING_DOT],
|
|
1891
|
+
[rm -rf .tst 2>/dev/null
|
|
1892
|
+
mkdir .tst 2>/dev/null
|
|
1893
|
+
if test -d .tst; then
|
|
1894
|
+
am__leading_dot=.
|
|
1895
|
+
else
|
|
1896
|
+
am__leading_dot=_
|
|
1897
|
+
fi
|
|
1898
|
+
rmdir .tst 2>/dev/null
|
|
1899
|
+
AC_SUBST([am__leading_dot])])
|
|
1900
|
+
|
|
1901
|
+
# Check to see how 'make' treats includes. -*- Autoconf -*-
|
|
1902
|
+
|
|
1903
|
+
# Copyright (C) 2001-2025 Free Software Foundation, Inc.
|
|
1904
|
+
#
|
|
1905
|
+
# This file is free software; the Free Software Foundation
|
|
1906
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
1907
|
+
# with or without modifications, as long as this notice is preserved.
|
|
1908
|
+
|
|
1909
|
+
# AM_MAKE_INCLUDE()
|
|
1910
|
+
# -----------------
|
|
1911
|
+
# Check whether make has an 'include' directive that can support all
|
|
1912
|
+
# the idioms we need for our automatic dependency tracking code.
|
|
1913
|
+
AC_DEFUN([AM_MAKE_INCLUDE],
|
|
1914
|
+
[AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
|
|
1915
|
+
cat > confinc.mk << 'END'
|
|
1916
|
+
am__doit:
|
|
1917
|
+
@echo this is the am__doit target >confinc.out
|
|
1918
|
+
.PHONY: am__doit
|
|
1919
|
+
END
|
|
1920
|
+
am__include="#"
|
|
1921
|
+
am__quote=
|
|
1922
|
+
# BSD make does it like this.
|
|
1923
|
+
echo '.include "confinc.mk" # ignored' > confmf.BSD
|
|
1924
|
+
# Other make implementations (GNU, Solaris 10, AIX) do it like this.
|
|
1925
|
+
echo 'include confinc.mk # ignored' > confmf.GNU
|
|
1926
|
+
_am_result=no
|
|
1927
|
+
for s in GNU BSD; do
|
|
1928
|
+
AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
|
|
1929
|
+
AS_CASE([$?:`cat confinc.out 2>/dev/null`],
|
|
1930
|
+
['0:this is the am__doit target'],
|
|
1931
|
+
[AS_CASE([$s],
|
|
1932
|
+
[BSD], [am__include='.include' am__quote='"'],
|
|
1933
|
+
[am__include='include' am__quote=''])])
|
|
1934
|
+
if test "$am__include" != "#"; then
|
|
1935
|
+
_am_result="yes ($s style)"
|
|
1936
|
+
break
|
|
1937
|
+
fi
|
|
1938
|
+
done
|
|
1939
|
+
rm -f confinc.* confmf.*
|
|
1940
|
+
AC_MSG_RESULT([${_am_result}])
|
|
1941
|
+
AC_SUBST([am__include])])
|
|
1942
|
+
AC_SUBST([am__quote])])
|
|
1943
|
+
|
|
1944
|
+
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
|
|
1945
|
+
|
|
1946
|
+
# Copyright (C) 1997-2025 Free Software Foundation, Inc.
|
|
1947
|
+
#
|
|
1948
|
+
# This file is free software; the Free Software Foundation
|
|
1949
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
1950
|
+
# with or without modifications, as long as this notice is preserved.
|
|
1951
|
+
|
|
1952
|
+
# AM_MISSING_PROG(NAME, PROGRAM)
|
|
1953
|
+
# ------------------------------
|
|
1954
|
+
AC_DEFUN([AM_MISSING_PROG],
|
|
1955
|
+
[AC_REQUIRE([AM_MISSING_HAS_RUN])
|
|
1956
|
+
$1=${$1-"${am_missing_run}$2"}
|
|
1957
|
+
AC_SUBST($1)])
|
|
1958
|
+
|
|
1959
|
+
# AM_MISSING_HAS_RUN
|
|
1960
|
+
# ------------------
|
|
1961
|
+
# Define MISSING if not defined so far and test if it is modern enough.
|
|
1962
|
+
# If it is, set am_missing_run to use it, otherwise, to nothing.
|
|
1963
|
+
AC_DEFUN([AM_MISSING_HAS_RUN],
|
|
1964
|
+
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|
1965
|
+
AC_REQUIRE_AUX_FILE([missing])dnl
|
|
1966
|
+
if test x"${MISSING+set}" != xset; then
|
|
1967
|
+
MISSING="\${SHELL} '$am_aux_dir/missing'"
|
|
1968
|
+
fi
|
|
1969
|
+
# Use eval to expand $SHELL
|
|
1970
|
+
if eval "$MISSING --is-lightweight"; then
|
|
1971
|
+
am_missing_run="$MISSING "
|
|
1972
|
+
else
|
|
1973
|
+
am_missing_run=
|
|
1974
|
+
AC_MSG_WARN(['missing' script is too old or missing])
|
|
1975
|
+
fi
|
|
1976
|
+
])
|
|
1977
|
+
|
|
1978
|
+
# Helper functions for option handling. -*- Autoconf -*-
|
|
1979
|
+
|
|
1980
|
+
# Copyright (C) 2001-2025 Free Software Foundation, Inc.
|
|
1981
|
+
#
|
|
1982
|
+
# This file is free software; the Free Software Foundation
|
|
1983
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
1984
|
+
# with or without modifications, as long as this notice is preserved.
|
|
1985
|
+
|
|
1986
|
+
# _AM_MANGLE_OPTION(NAME)
|
|
1987
|
+
# -----------------------
|
|
1988
|
+
AC_DEFUN([_AM_MANGLE_OPTION],
|
|
1989
|
+
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
|
|
1990
|
+
|
|
1991
|
+
# _AM_SET_OPTION(NAME)
|
|
1992
|
+
# --------------------
|
|
1993
|
+
# Set option NAME. Presently that only means defining a flag for this option.
|
|
1994
|
+
AC_DEFUN([_AM_SET_OPTION],
|
|
1995
|
+
[m4_define(_AM_MANGLE_OPTION([$1]), [1])])
|
|
1996
|
+
|
|
1997
|
+
# _AM_SET_OPTIONS(OPTIONS)
|
|
1998
|
+
# ------------------------
|
|
1999
|
+
# OPTIONS is a space-separated list of Automake options.
|
|
2000
|
+
AC_DEFUN([_AM_SET_OPTIONS],
|
|
2001
|
+
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
|
|
2002
|
+
|
|
2003
|
+
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
|
|
2004
|
+
# -------------------------------------------
|
|
2005
|
+
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
|
|
2006
|
+
AC_DEFUN([_AM_IF_OPTION],
|
|
2007
|
+
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
|
|
2008
|
+
|
|
2009
|
+
# Copyright (C) 1999-2025 Free Software Foundation, Inc.
|
|
2010
|
+
#
|
|
2011
|
+
# This file is free software; the Free Software Foundation
|
|
2012
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
2013
|
+
# with or without modifications, as long as this notice is preserved.
|
|
2014
|
+
|
|
2015
|
+
# _AM_PROG_CC_C_O
|
|
2016
|
+
# ---------------
|
|
2017
|
+
# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
|
|
2018
|
+
# to automatically call this.
|
|
2019
|
+
AC_DEFUN([_AM_PROG_CC_C_O],
|
|
2020
|
+
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
|
2021
|
+
AC_REQUIRE_AUX_FILE([compile])dnl
|
|
2022
|
+
AC_LANG_PUSH([C])dnl
|
|
2023
|
+
AC_CACHE_CHECK(
|
|
2024
|
+
[whether $CC understands -c and -o together],
|
|
2025
|
+
[am_cv_prog_cc_c_o],
|
|
2026
|
+
[AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
|
|
2027
|
+
# Make sure it works both with $CC and with simple cc.
|
|
2028
|
+
# Following AC_PROG_CC_C_O, we do the test twice because some
|
|
2029
|
+
# compilers refuse to overwrite an existing .o file with -o,
|
|
2030
|
+
# though they will create one.
|
|
2031
|
+
am_cv_prog_cc_c_o=yes
|
|
2032
|
+
for am_i in 1 2; do
|
|
2033
|
+
if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
|
|
2034
|
+
&& test -f conftest2.$ac_objext; then
|
|
2035
|
+
: OK
|
|
2036
|
+
else
|
|
2037
|
+
am_cv_prog_cc_c_o=no
|
|
2038
|
+
break
|
|
2039
|
+
fi
|
|
2040
|
+
done
|
|
2041
|
+
# aligned with autoconf, so not including core; see bug#72225.
|
|
2042
|
+
rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
|
|
2043
|
+
conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
|
|
2044
|
+
conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
|
|
2045
|
+
unset am_i])
|
|
2046
|
+
if test "$am_cv_prog_cc_c_o" != yes; then
|
|
2047
|
+
# Losing compiler, so override with the script.
|
|
2048
|
+
# FIXME: It is wrong to rewrite CC.
|
|
2049
|
+
# But if we don't then we get into trouble of one sort or another.
|
|
2050
|
+
# A longer-term fix would be to have automake use am__CC in this case,
|
|
2051
|
+
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
|
|
2052
|
+
CC="$am_aux_dir/compile $CC"
|
|
2053
|
+
fi
|
|
2054
|
+
AC_LANG_POP([C])])
|
|
2055
|
+
|
|
2056
|
+
# For backward compatibility.
|
|
2057
|
+
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
|
|
2058
|
+
|
|
2059
|
+
# Copyright (C) 2022-2025 Free Software Foundation, Inc.
|
|
2060
|
+
#
|
|
2061
|
+
# This file is free software; the Free Software Foundation
|
|
2062
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
2063
|
+
# with or without modifications, as long as this notice is preserved.
|
|
2064
|
+
|
|
2065
|
+
# _AM_PROG_RM_F
|
|
2066
|
+
# ---------------
|
|
2067
|
+
# Check whether 'rm -f' without any arguments works.
|
|
2068
|
+
# https://bugs.gnu.org/10828
|
|
2069
|
+
AC_DEFUN([_AM_PROG_RM_F],
|
|
2070
|
+
[am__rm_f_notfound=
|
|
2071
|
+
AS_IF([(rm -f && rm -fr && rm -rf) 2>/dev/null], [], [am__rm_f_notfound='""'])
|
|
2072
|
+
AC_SUBST(am__rm_f_notfound)
|
|
2073
|
+
])
|
|
2074
|
+
|
|
2075
|
+
# Copyright (C) 2001-2025 Free Software Foundation, Inc.
|
|
2076
|
+
#
|
|
2077
|
+
# This file is free software; the Free Software Foundation
|
|
2078
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
2079
|
+
# with or without modifications, as long as this notice is preserved.
|
|
2080
|
+
|
|
2081
|
+
# AM_RUN_LOG(COMMAND)
|
|
2082
|
+
# -------------------
|
|
2083
|
+
# Run COMMAND, save the exit status in ac_status, and log it.
|
|
2084
|
+
# (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
|
|
2085
|
+
AC_DEFUN([AM_RUN_LOG],
|
|
2086
|
+
[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
|
|
2087
|
+
($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
|
|
2088
|
+
ac_status=$?
|
|
2089
|
+
echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
|
|
2090
|
+
(exit $ac_status); }])
|
|
2091
|
+
|
|
2092
|
+
# Check to make sure that the build environment is sane. -*- Autoconf -*-
|
|
2093
|
+
|
|
2094
|
+
# Copyright (C) 1996-2025 Free Software Foundation, Inc.
|
|
2095
|
+
#
|
|
2096
|
+
# This file is free software; the Free Software Foundation
|
|
2097
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
2098
|
+
# with or without modifications, as long as this notice is preserved.
|
|
2099
|
+
|
|
2100
|
+
# _AM_SLEEP_FRACTIONAL_SECONDS
|
|
2101
|
+
# ----------------------------
|
|
2102
|
+
AC_DEFUN([_AM_SLEEP_FRACTIONAL_SECONDS], [dnl
|
|
2103
|
+
AC_CACHE_CHECK([whether sleep supports fractional seconds],
|
|
2104
|
+
am_cv_sleep_fractional_seconds, [dnl
|
|
2105
|
+
AS_IF([sleep 0.001 2>/dev/null], [am_cv_sleep_fractional_seconds=yes],
|
|
2106
|
+
[am_cv_sleep_fractional_seconds=no])
|
|
2107
|
+
])])
|
|
2108
|
+
|
|
2109
|
+
# _AM_FILESYSTEM_TIMESTAMP_RESOLUTION
|
|
2110
|
+
# -----------------------------------
|
|
2111
|
+
# Determine the filesystem's resolution for file modification
|
|
2112
|
+
# timestamps. The coarsest we know of is FAT, with a resolution
|
|
2113
|
+
# of only two seconds, even with the most recent "exFAT" extensions.
|
|
2114
|
+
# The finest (e.g. ext4 with large inodes, XFS, ZFS) is one
|
|
2115
|
+
# nanosecond, matching clock_gettime. However, it is probably not
|
|
2116
|
+
# possible to delay execution of a shell script for less than one
|
|
2117
|
+
# millisecond, due to process creation overhead and scheduling
|
|
2118
|
+
# granularity, so we don't check for anything finer than that. (See below.)
|
|
2119
|
+
AC_DEFUN([_AM_FILESYSTEM_TIMESTAMP_RESOLUTION], [dnl
|
|
2120
|
+
AC_REQUIRE([_AM_SLEEP_FRACTIONAL_SECONDS])
|
|
2121
|
+
AC_CACHE_CHECK([filesystem timestamp resolution],
|
|
2122
|
+
am_cv_filesystem_timestamp_resolution, [dnl
|
|
2123
|
+
# Default to the worst case.
|
|
2124
|
+
am_cv_filesystem_timestamp_resolution=2
|
|
2125
|
+
|
|
2126
|
+
# Only try to go finer than 1 sec if sleep can do it.
|
|
2127
|
+
# Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
|
|
2128
|
+
# - 1 sec is not much of a win compared to 2 sec, and
|
|
2129
|
+
# - it takes 2 seconds to perform the test whether 1 sec works.
|
|
2130
|
+
#
|
|
2131
|
+
# Instead, just use the default 2s on platforms that have 1s resolution,
|
|
2132
|
+
# accept the extra 1s delay when using $sleep in the Automake tests, in
|
|
2133
|
+
# exchange for not incurring the 2s delay for running the test for all
|
|
2134
|
+
# packages.
|
|
2135
|
+
#
|
|
2136
|
+
am_try_resolutions=
|
|
2137
|
+
if test "$am_cv_sleep_fractional_seconds" = yes; then
|
|
2138
|
+
# Even a millisecond often causes a bunch of false positives,
|
|
2139
|
+
# so just try a hundredth of a second. The time saved between .001 and
|
|
2140
|
+
# .01 is not terribly consequential.
|
|
2141
|
+
am_try_resolutions="0.01 0.1 $am_try_resolutions"
|
|
2142
|
+
fi
|
|
2143
|
+
|
|
2144
|
+
# In order to catch current-generation FAT out, we must *modify* files
|
|
2145
|
+
# that already exist; the *creation* timestamp is finer. Use names
|
|
2146
|
+
# that make ls -t sort them differently when they have equal
|
|
2147
|
+
# timestamps than when they have distinct timestamps, keeping
|
|
2148
|
+
# in mind that ls -t prints the *newest* file first.
|
|
2149
|
+
rm -f conftest.ts?
|
|
2150
|
+
: > conftest.ts1
|
|
2151
|
+
: > conftest.ts2
|
|
2152
|
+
: > conftest.ts3
|
|
2153
|
+
|
|
2154
|
+
# Make sure ls -t actually works. Do 'set' in a subshell so we don't
|
|
2155
|
+
# clobber the current shell's arguments. (Outer-level square brackets
|
|
2156
|
+
# are removed by m4; they're present so that m4 does not expand
|
|
2157
|
+
# <dollar><star>; be careful, easy to get confused.)
|
|
2158
|
+
if (
|
|
2159
|
+
set X `[ls -t conftest.ts[12]]` &&
|
|
2160
|
+
{
|
|
2161
|
+
test "$[]*" != "X conftest.ts1 conftest.ts2" ||
|
|
2162
|
+
test "$[]*" != "X conftest.ts2 conftest.ts1";
|
|
2163
|
+
}
|
|
2164
|
+
); then :; else
|
|
2165
|
+
# If neither matched, then we have a broken ls. This can happen
|
|
2166
|
+
# if, for instance, CONFIG_SHELL is bash and it inherits a
|
|
2167
|
+
# broken ls alias from the environment. This has actually
|
|
2168
|
+
# happened. Such a system could not be considered "sane".
|
|
2169
|
+
_AS_ECHO_UNQUOTED(
|
|
2170
|
+
["Bad output from ls -t: \"`[ls -t conftest.ts[12]]`\""],
|
|
2171
|
+
[AS_MESSAGE_LOG_FD])
|
|
2172
|
+
AC_MSG_FAILURE([ls -t produces unexpected output.
|
|
2173
|
+
Make sure there is not a broken ls alias in your environment.])
|
|
2174
|
+
fi
|
|
2175
|
+
|
|
2176
|
+
for am_try_res in $am_try_resolutions; do
|
|
2177
|
+
# Any one fine-grained sleep might happen to cross the boundary
|
|
2178
|
+
# between two values of a coarser actual resolution, but if we do
|
|
2179
|
+
# two fine-grained sleeps in a row, at least one of them will fall
|
|
2180
|
+
# entirely within a coarse interval.
|
|
2181
|
+
echo alpha > conftest.ts1
|
|
2182
|
+
sleep $am_try_res
|
|
2183
|
+
echo beta > conftest.ts2
|
|
2184
|
+
sleep $am_try_res
|
|
2185
|
+
echo gamma > conftest.ts3
|
|
2186
|
+
|
|
2187
|
+
# We assume that 'ls -t' will make use of high-resolution
|
|
2188
|
+
# timestamps if the operating system supports them at all.
|
|
2189
|
+
if (set X `ls -t conftest.ts?` &&
|
|
2190
|
+
test "$[]2" = conftest.ts3 &&
|
|
2191
|
+
test "$[]3" = conftest.ts2 &&
|
|
2192
|
+
test "$[]4" = conftest.ts1); then
|
|
2193
|
+
#
|
|
2194
|
+
# Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
|
|
2195
|
+
# because we don't need to test make.
|
|
2196
|
+
make_ok=true
|
|
2197
|
+
if test $am_try_res != 1; then
|
|
2198
|
+
# But if we've succeeded so far with a subsecond resolution, we
|
|
2199
|
+
# have one more thing to check: make. It can happen that
|
|
2200
|
+
# everything else supports the subsecond mtimes, but make doesn't;
|
|
2201
|
+
# notably on macOS, which ships make 3.81 from 2006 (the last one
|
|
2202
|
+
# released under GPLv2). https://bugs.gnu.org/68808
|
|
2203
|
+
#
|
|
2204
|
+
# We test $MAKE if it is defined in the environment, else "make".
|
|
2205
|
+
# It might get overridden later, but our hope is that in practice
|
|
2206
|
+
# it does not matter: it is the system "make" which is (by far)
|
|
2207
|
+
# the most likely to be broken, whereas if the user overrides it,
|
|
2208
|
+
# probably they did so with a better, or at least not worse, make.
|
|
2209
|
+
# https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
|
|
2210
|
+
#
|
|
2211
|
+
# Create a Makefile (real tab character here):
|
|
2212
|
+
rm -f conftest.mk
|
|
2213
|
+
echo 'conftest.ts1: conftest.ts2' >conftest.mk
|
|
2214
|
+
echo ' touch conftest.ts2' >>conftest.mk
|
|
2215
|
+
#
|
|
2216
|
+
# Now, running
|
|
2217
|
+
# touch conftest.ts1; touch conftest.ts2; make
|
|
2218
|
+
# should touch ts1 because ts2 is newer. This could happen by luck,
|
|
2219
|
+
# but most often, it will fail if make's support is insufficient. So
|
|
2220
|
+
# test for several consecutive successes.
|
|
2221
|
+
#
|
|
2222
|
+
# (We reuse conftest.ts[12] because we still want to modify existing
|
|
2223
|
+
# files, not create new ones, per above.)
|
|
2224
|
+
n=0
|
|
2225
|
+
make=${MAKE-make}
|
|
2226
|
+
until test $n -eq 3; do
|
|
2227
|
+
echo one > conftest.ts1
|
|
2228
|
+
sleep $am_try_res
|
|
2229
|
+
echo two > conftest.ts2 # ts2 should now be newer than ts1
|
|
2230
|
+
if $make -f conftest.mk | grep 'up to date' >/dev/null; then
|
|
2231
|
+
make_ok=false
|
|
2232
|
+
break # out of $n loop
|
|
2233
|
+
fi
|
|
2234
|
+
n=`expr $n + 1`
|
|
2235
|
+
done
|
|
2236
|
+
fi
|
|
2237
|
+
#
|
|
2238
|
+
if $make_ok; then
|
|
2239
|
+
# Everything we know to check worked out, so call this resolution good.
|
|
2240
|
+
am_cv_filesystem_timestamp_resolution=$am_try_res
|
|
2241
|
+
break # out of $am_try_res loop
|
|
2242
|
+
fi
|
|
2243
|
+
# Otherwise, we'll go on to check the next resolution.
|
|
2244
|
+
fi
|
|
2245
|
+
done
|
|
2246
|
+
rm -f conftest.ts?
|
|
2247
|
+
# (end _am_filesystem_timestamp_resolution)
|
|
2248
|
+
])])
|
|
2249
|
+
|
|
2250
|
+
# AM_SANITY_CHECK
|
|
2251
|
+
# ---------------
|
|
2252
|
+
AC_DEFUN([AM_SANITY_CHECK],
|
|
2253
|
+
[AC_REQUIRE([_AM_FILESYSTEM_TIMESTAMP_RESOLUTION])
|
|
2254
|
+
# This check should not be cached, as it may vary across builds of
|
|
2255
|
+
# different projects.
|
|
2256
|
+
AC_MSG_CHECKING([whether build environment is sane])
|
|
2257
|
+
# Reject unsafe characters in $srcdir or the absolute working directory
|
|
2258
|
+
# name. Accept space and tab only in the latter.
|
|
2259
|
+
am_lf='
|
|
2260
|
+
'
|
|
2261
|
+
case `pwd` in
|
|
2262
|
+
*[[\\\"\#\$\&\'\`$am_lf]]*)
|
|
2263
|
+
AC_MSG_RESULT([no])
|
|
2264
|
+
AC_MSG_ERROR([unsafe absolute working directory name]);;
|
|
2265
|
+
esac
|
|
2266
|
+
case $srcdir in
|
|
2267
|
+
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
|
|
2268
|
+
AC_MSG_RESULT([no])
|
|
2269
|
+
AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
|
|
2270
|
+
esac
|
|
2271
|
+
|
|
2272
|
+
# Do 'set' in a subshell so we don't clobber the current shell's
|
|
2273
|
+
# arguments. Must try -L first in case configure is actually a
|
|
2274
|
+
# symlink; some systems play weird games with the mod time of symlinks
|
|
2275
|
+
# (eg FreeBSD returns the mod time of the symlink's containing
|
|
2276
|
+
# directory).
|
|
2277
|
+
am_build_env_is_sane=no
|
|
2278
|
+
am_has_slept=no
|
|
2279
|
+
rm -f conftest.file
|
|
2280
|
+
for am_try in 1 2; do
|
|
2281
|
+
echo "timestamp, slept: $am_has_slept" > conftest.file
|
|
2282
|
+
if (
|
|
2283
|
+
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
|
|
2284
|
+
if test "$[]*" = "X"; then
|
|
2285
|
+
# -L didn't work.
|
|
2286
|
+
set X `ls -t "$srcdir/configure" conftest.file`
|
|
2287
|
+
fi
|
|
2288
|
+
test "$[]2" = conftest.file
|
|
2289
|
+
); then
|
|
2290
|
+
am_build_env_is_sane=yes
|
|
2291
|
+
break
|
|
2292
|
+
fi
|
|
2293
|
+
# Just in case.
|
|
2294
|
+
sleep "$am_cv_filesystem_timestamp_resolution"
|
|
2295
|
+
am_has_slept=yes
|
|
2296
|
+
done
|
|
2297
|
+
|
|
2298
|
+
AC_MSG_RESULT([$am_build_env_is_sane])
|
|
2299
|
+
if test "$am_build_env_is_sane" = no; then
|
|
2300
|
+
AC_MSG_ERROR([newly created file is older than distributed files!
|
|
2301
|
+
Check your system clock])
|
|
2302
|
+
fi
|
|
2303
|
+
|
|
2304
|
+
# If we didn't sleep, we still need to ensure time stamps of config.status and
|
|
2305
|
+
# generated files are strictly newer.
|
|
2306
|
+
am_sleep_pid=
|
|
2307
|
+
AS_IF([test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1],, [dnl
|
|
2308
|
+
( sleep "$am_cv_filesystem_timestamp_resolution" ) &
|
|
2309
|
+
am_sleep_pid=$!
|
|
2310
|
+
])
|
|
2311
|
+
AC_CONFIG_COMMANDS_PRE(
|
|
2312
|
+
[AC_MSG_CHECKING([that generated files are newer than configure])
|
|
2313
|
+
if test -n "$am_sleep_pid"; then
|
|
2314
|
+
# Hide warnings about reused PIDs.
|
|
2315
|
+
wait $am_sleep_pid 2>/dev/null
|
|
2316
|
+
fi
|
|
2317
|
+
AC_MSG_RESULT([done])])
|
|
2318
|
+
rm -f conftest.file
|
|
2319
|
+
])
|
|
2320
|
+
|
|
2321
|
+
# Copyright (C) 2009-2025 Free Software Foundation, Inc.
|
|
2322
|
+
#
|
|
2323
|
+
# This file is free software; the Free Software Foundation
|
|
2324
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
2325
|
+
# with or without modifications, as long as this notice is preserved.
|
|
2326
|
+
|
|
2327
|
+
# _AM_SILENT_RULES
|
|
2328
|
+
# ----------------
|
|
2329
|
+
# Enable less verbose build rules support.
|
|
2330
|
+
AC_DEFUN([_AM_SILENT_RULES],
|
|
2331
|
+
[AM_DEFAULT_VERBOSITY=1
|
|
2332
|
+
AC_ARG_ENABLE([silent-rules], [dnl
|
|
2333
|
+
AS_HELP_STRING(
|
|
2334
|
+
[--enable-silent-rules],
|
|
2335
|
+
[less verbose build output (undo: "make V=1")])
|
|
2336
|
+
AS_HELP_STRING(
|
|
2337
|
+
[--disable-silent-rules],
|
|
2338
|
+
[verbose build output (undo: "make V=0")])dnl
|
|
2339
|
+
])
|
|
2340
|
+
dnl
|
|
2341
|
+
dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
|
|
2342
|
+
dnl do not support nested variable expansions.
|
|
2343
|
+
dnl See automake bug#9928 and bug#10237.
|
|
2344
|
+
am_make=${MAKE-make}
|
|
2345
|
+
AC_CACHE_CHECK([whether $am_make supports nested variables],
|
|
2346
|
+
[am_cv_make_support_nested_variables],
|
|
2347
|
+
[if AS_ECHO([['TRUE=$(BAR$(V))
|
|
2348
|
+
BAR0=false
|
|
2349
|
+
BAR1=true
|
|
2350
|
+
V=1
|
|
2351
|
+
am__doit:
|
|
2352
|
+
@$(TRUE)
|
|
2353
|
+
.PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
|
|
2354
|
+
am_cv_make_support_nested_variables=yes
|
|
2355
|
+
else
|
|
2356
|
+
am_cv_make_support_nested_variables=no
|
|
2357
|
+
fi])
|
|
2358
|
+
AC_SUBST([AM_V])dnl
|
|
2359
|
+
AM_SUBST_NOTMAKE([AM_V])dnl
|
|
2360
|
+
AC_SUBST([AM_DEFAULT_V])dnl
|
|
2361
|
+
AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
|
|
2362
|
+
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
|
|
2363
|
+
AM_BACKSLASH='\'
|
|
2364
|
+
AC_SUBST([AM_BACKSLASH])dnl
|
|
2365
|
+
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
|
|
2366
|
+
dnl Delay evaluation of AM_DEFAULT_VERBOSITY to the end to allow multiple calls
|
|
2367
|
+
dnl to AM_SILENT_RULES to change the default value.
|
|
2368
|
+
AC_CONFIG_COMMANDS_PRE([dnl
|
|
2369
|
+
case $enable_silent_rules in @%:@ (((
|
|
2370
|
+
yes) AM_DEFAULT_VERBOSITY=0;;
|
|
2371
|
+
no) AM_DEFAULT_VERBOSITY=1;;
|
|
2372
|
+
esac
|
|
2373
|
+
if test $am_cv_make_support_nested_variables = yes; then
|
|
2374
|
+
dnl Using '$V' instead of '$(V)' breaks IRIX make.
|
|
2375
|
+
AM_V='$(V)'
|
|
2376
|
+
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
|
|
2377
|
+
else
|
|
2378
|
+
AM_V=$AM_DEFAULT_VERBOSITY
|
|
2379
|
+
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
|
|
2380
|
+
fi
|
|
2381
|
+
])dnl
|
|
2382
|
+
])
|
|
2383
|
+
|
|
2384
|
+
# AM_SILENT_RULES([DEFAULT])
|
|
2385
|
+
# --------------------------
|
|
2386
|
+
# Set the default verbosity level to DEFAULT ("yes" being less verbose, "no" or
|
|
2387
|
+
# empty being verbose).
|
|
2388
|
+
AC_DEFUN([AM_SILENT_RULES],
|
|
2389
|
+
[AC_REQUIRE([_AM_SILENT_RULES])
|
|
2390
|
+
AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1])m4_newline
|
|
2391
|
+
dnl We intentionally force a newline after the assignment, since a) nothing
|
|
2392
|
+
dnl good can come of more text following, and b) that was the behavior
|
|
2393
|
+
dnl before 1.17. See https://bugs.gnu.org/72267.
|
|
2394
|
+
])
|
|
2395
|
+
|
|
2396
|
+
# Copyright (C) 2001-2025 Free Software Foundation, Inc.
|
|
2397
|
+
#
|
|
2398
|
+
# This file is free software; the Free Software Foundation
|
|
2399
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
2400
|
+
# with or without modifications, as long as this notice is preserved.
|
|
2401
|
+
|
|
2402
|
+
# AM_PROG_INSTALL_STRIP
|
|
2403
|
+
# ---------------------
|
|
2404
|
+
# One issue with vendor 'install' (even GNU) is that you can't
|
|
2405
|
+
# specify the program used to strip binaries. This is especially
|
|
2406
|
+
# annoying in cross-compiling environments, where the build's strip
|
|
2407
|
+
# is unlikely to handle the host's binaries.
|
|
2408
|
+
# Fortunately install-sh will honor a STRIPPROG variable, so we
|
|
2409
|
+
# always use install-sh in "make install-strip", and initialize
|
|
2410
|
+
# STRIPPROG with the value of the STRIP variable (set by the user).
|
|
2411
|
+
AC_DEFUN([AM_PROG_INSTALL_STRIP],
|
|
2412
|
+
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
|
|
2413
|
+
# Installed binaries are usually stripped using 'strip' when the user
|
|
2414
|
+
# run "make install-strip". However 'strip' might not be the right
|
|
2415
|
+
# tool to use in cross-compilation environments, therefore Automake
|
|
2416
|
+
# will honor the 'STRIP' environment variable to overrule this program.
|
|
2417
|
+
dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
|
|
2418
|
+
if test "$cross_compiling" != no; then
|
|
2419
|
+
AC_CHECK_TOOL([STRIP], [strip], :)
|
|
2420
|
+
fi
|
|
2421
|
+
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
|
2422
|
+
AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
|
2423
|
+
|
|
2424
|
+
# Copyright (C) 2006-2025 Free Software Foundation, Inc.
|
|
2425
|
+
#
|
|
2426
|
+
# This file is free software; the Free Software Foundation
|
|
2427
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
2428
|
+
# with or without modifications, as long as this notice is preserved.
|
|
2429
|
+
|
|
2430
|
+
# _AM_SUBST_NOTMAKE(VARIABLE)
|
|
2431
|
+
# ---------------------------
|
|
2432
|
+
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
|
|
2433
|
+
# This macro is traced by Automake.
|
|
2434
|
+
AC_DEFUN([_AM_SUBST_NOTMAKE])
|
|
2435
|
+
|
|
2436
|
+
# AM_SUBST_NOTMAKE(VARIABLE)
|
|
2437
|
+
# --------------------------
|
|
2438
|
+
# Public sister of _AM_SUBST_NOTMAKE.
|
|
2439
|
+
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
|
|
2440
|
+
|
|
2441
|
+
# Check how to create a tarball. -*- Autoconf -*-
|
|
2442
|
+
|
|
2443
|
+
# Copyright (C) 2004-2025 Free Software Foundation, Inc.
|
|
2444
|
+
#
|
|
2445
|
+
# This file is free software; the Free Software Foundation
|
|
2446
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
2447
|
+
# with or without modifications, as long as this notice is preserved.
|
|
2448
|
+
|
|
2449
|
+
# _AM_PROG_TAR(FORMAT)
|
|
2450
|
+
# --------------------
|
|
2451
|
+
# Check how to create a tarball in format FORMAT.
|
|
2452
|
+
# FORMAT should be one of 'v7', 'ustar', or 'pax'.
|
|
2453
|
+
#
|
|
2454
|
+
# Substitute a variable $(am__tar) that is a command
|
|
2455
|
+
# writing to stdout a FORMAT-tarball containing the directory
|
|
2456
|
+
# $tardir.
|
|
2457
|
+
# tardir=directory && $(am__tar) > result.tar
|
|
2458
|
+
#
|
|
2459
|
+
# Substitute a variable $(am__untar) that extract such
|
|
2460
|
+
# a tarball read from stdin.
|
|
2461
|
+
# $(am__untar) < result.tar
|
|
2462
|
+
#
|
|
2463
|
+
AC_DEFUN([_AM_PROG_TAR],
|
|
2464
|
+
[# Always define AMTAR for backward compatibility. Yes, it's still used
|
|
2465
|
+
# in the wild :-( We should find a proper way to deprecate it ...
|
|
2466
|
+
AC_SUBST([AMTAR], ['$${TAR-tar}'])
|
|
2467
|
+
|
|
2468
|
+
# We'll loop over all known methods to create a tar archive until one works.
|
|
2469
|
+
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
|
|
2470
|
+
|
|
2471
|
+
m4_if([$1], [v7],
|
|
2472
|
+
[am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
|
|
2473
|
+
|
|
2474
|
+
[m4_case([$1],
|
|
2475
|
+
[ustar],
|
|
2476
|
+
[# The POSIX 1988 'ustar' format is defined with fixed-size fields.
|
|
2477
|
+
# There is notably a 21 bits limit for the UID and the GID. In fact,
|
|
2478
|
+
# the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
|
|
2479
|
+
# and bug#13588).
|
|
2480
|
+
am_max_uid=2097151 # 2^21 - 1
|
|
2481
|
+
am_max_gid=$am_max_uid
|
|
2482
|
+
# The $UID and $GID variables are not portable, so we need to resort
|
|
2483
|
+
# to the POSIX-mandated id(1) utility. Errors in the 'id' calls
|
|
2484
|
+
# below are definitely unexpected, so allow the users to see them
|
|
2485
|
+
# (that is, avoid stderr redirection).
|
|
2486
|
+
am_uid=`id -u || echo unknown`
|
|
2487
|
+
am_gid=`id -g || echo unknown`
|
|
2488
|
+
AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
|
|
2489
|
+
if test x$am_uid = xunknown; then
|
|
2490
|
+
AC_MSG_WARN([ancient id detected; assuming current UID is ok, but dist-ustar might not work])
|
|
2491
|
+
elif test $am_uid -le $am_max_uid; then
|
|
2492
|
+
AC_MSG_RESULT([yes])
|
|
2493
|
+
else
|
|
2494
|
+
AC_MSG_RESULT([no])
|
|
2495
|
+
_am_tools=none
|
|
2496
|
+
fi
|
|
2497
|
+
AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
|
|
2498
|
+
if test x$gm_gid = xunknown; then
|
|
2499
|
+
AC_MSG_WARN([ancient id detected; assuming current GID is ok, but dist-ustar might not work])
|
|
2500
|
+
elif test $am_gid -le $am_max_gid; then
|
|
2501
|
+
AC_MSG_RESULT([yes])
|
|
2502
|
+
else
|
|
2503
|
+
AC_MSG_RESULT([no])
|
|
2504
|
+
_am_tools=none
|
|
2505
|
+
fi],
|
|
2506
|
+
|
|
2507
|
+
[pax],
|
|
2508
|
+
[],
|
|
2509
|
+
|
|
2510
|
+
[m4_fatal([Unknown tar format])])
|
|
2511
|
+
|
|
2512
|
+
AC_MSG_CHECKING([how to create a $1 tar archive])
|
|
2513
|
+
|
|
2514
|
+
# Go ahead even if we have the value already cached. We do so because we
|
|
2515
|
+
# need to set the values for the 'am__tar' and 'am__untar' variables.
|
|
2516
|
+
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
|
|
2517
|
+
|
|
2518
|
+
for _am_tool in $_am_tools; do
|
|
2519
|
+
case $_am_tool in
|
|
2520
|
+
gnutar)
|
|
2521
|
+
for _am_tar in tar gnutar gtar; do
|
|
2522
|
+
AM_RUN_LOG([$_am_tar --version]) && break
|
|
2523
|
+
done
|
|
2524
|
+
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
|
|
2525
|
+
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
|
|
2526
|
+
am__untar="$_am_tar -xf -"
|
|
2527
|
+
;;
|
|
2528
|
+
plaintar)
|
|
2529
|
+
# Must skip GNU tar: if it does not support --format= it doesn't create
|
|
2530
|
+
# ustar tarball either.
|
|
2531
|
+
(tar --version) >/dev/null 2>&1 && continue
|
|
2532
|
+
am__tar='tar chf - "$$tardir"'
|
|
2533
|
+
am__tar_='tar chf - "$tardir"'
|
|
2534
|
+
am__untar='tar xf -'
|
|
2535
|
+
;;
|
|
2536
|
+
pax)
|
|
2537
|
+
am__tar='pax -L -x $1 -w "$$tardir"'
|
|
2538
|
+
am__tar_='pax -L -x $1 -w "$tardir"'
|
|
2539
|
+
am__untar='pax -r'
|
|
2540
|
+
;;
|
|
2541
|
+
cpio)
|
|
2542
|
+
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
|
|
2543
|
+
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
|
|
2544
|
+
am__untar='cpio -i -H $1 -d'
|
|
2545
|
+
;;
|
|
2546
|
+
none)
|
|
2547
|
+
am__tar=false
|
|
2548
|
+
am__tar_=false
|
|
2549
|
+
am__untar=false
|
|
2550
|
+
;;
|
|
2551
|
+
esac
|
|
2552
|
+
|
|
2553
|
+
# If the value was cached, stop now. We just wanted to have am__tar
|
|
2554
|
+
# and am__untar set.
|
|
2555
|
+
test -n "${am_cv_prog_tar_$1}" && break
|
|
2556
|
+
|
|
2557
|
+
# tar/untar a dummy directory, and stop if the command works.
|
|
2558
|
+
rm -rf conftest.dir
|
|
2559
|
+
mkdir conftest.dir
|
|
2560
|
+
echo GrepMe > conftest.dir/file
|
|
2561
|
+
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
|
|
2562
|
+
rm -rf conftest.dir
|
|
2563
|
+
if test -s conftest.tar; then
|
|
2564
|
+
AM_RUN_LOG([$am__untar <conftest.tar])
|
|
2565
|
+
AM_RUN_LOG([cat conftest.dir/file])
|
|
2566
|
+
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
|
|
2567
|
+
fi
|
|
2568
|
+
done
|
|
2569
|
+
rm -rf conftest.dir
|
|
2570
|
+
|
|
2571
|
+
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
|
|
2572
|
+
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
|
|
2573
|
+
|
|
2574
|
+
AC_SUBST([am__tar])
|
|
2575
|
+
AC_SUBST([am__untar])
|
|
2576
|
+
]) # _AM_PROG_TAR
|
|
2577
|
+
|
|
2578
|
+
# Copyright (C) 2022-2025 Free Software Foundation, Inc.
|
|
2579
|
+
#
|
|
2580
|
+
# This file is free software; the Free Software Foundation
|
|
2581
|
+
# gives unlimited permission to copy and/or distribute it,
|
|
2582
|
+
# with or without modifications, as long as this notice is preserved.
|
|
2583
|
+
|
|
2584
|
+
# _AM_PROG_XARGS_N
|
|
2585
|
+
# ----------------
|
|
2586
|
+
# Check whether 'xargs -n' works. It should work everywhere, so the fallback
|
|
2587
|
+
# is not optimized at all as we never expect to use it.
|
|
2588
|
+
AC_DEFUN([_AM_PROG_XARGS_N],
|
|
2589
|
+
[AC_CACHE_CHECK([xargs -n works], am_cv_xargs_n_works, [dnl
|
|
2590
|
+
AS_IF([test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
|
|
2591
|
+
3"], [am_cv_xargs_n_works=yes], [am_cv_xargs_n_works=no])])
|
|
2592
|
+
AS_IF([test "$am_cv_xargs_n_works" = yes], [am__xargs_n='xargs -n'], [dnl
|
|
2593
|
+
am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "$@" "$am__xargs_n_arg"; done; }'
|
|
2594
|
+
])dnl
|
|
2595
|
+
AC_SUBST(am__xargs_n)
|
|
2596
|
+
])
|
|
2597
|
+
|
|
2598
|
+
m4_include([build-aux/m4/ax_append_compile_flags.m4])
|
|
2599
|
+
m4_include([build-aux/m4/ax_append_flag.m4])
|
|
2600
|
+
m4_include([build-aux/m4/ax_check_compile_flag.m4])
|
|
2601
|
+
m4_include([build-aux/m4/ax_check_vscript.m4])
|
|
2602
|
+
m4_include([build-aux/m4/ax_gcc_func_attribute.m4])
|
|
2603
|
+
m4_include([build-aux/m4/ax_require_defined.m4])
|
|
2604
|
+
m4_include([build-aux/m4/ax_valgrind_check.m4])
|
|
2605
|
+
m4_include([build-aux/m4/libtool.m4])
|
|
2606
|
+
m4_include([build-aux/m4/ltoptions.m4])
|
|
2607
|
+
m4_include([build-aux/m4/ltsugar.m4])
|
|
2608
|
+
m4_include([build-aux/m4/ltversion.m4])
|
|
2609
|
+
m4_include([build-aux/m4/lt~obsolete.m4])
|
|
2610
|
+
m4_include([build-aux/m4/pkg_compat.m4])
|
|
2611
|
+
m4_include([build-aux/m4/zw_alignment.m4])
|
|
2612
|
+
m4_include([build-aux/m4/zw_detect_asan.m4])
|
|
2613
|
+
m4_include([build-aux/m4/zw_endianness.m4])
|
|
2614
|
+
m4_include([build-aux/m4/zw_ld_wrap.m4])
|
|
2615
|
+
m4_include([build-aux/m4/zw_prog_perl.m4])
|
|
2616
|
+
m4_include([build-aux/m4/zw_simple_warnings.m4])
|
|
2617
|
+
m4_include([build-aux/m4/zw_static_assert.m4])
|