0 | |
# generated automatically by aclocal 1.16.1 -*- Autoconf -*-
|
1 | |
|
2 | |
# Copyright (C) 1996-2018 Free Software Foundation, Inc.
|
|
0 |
# generated automatically by aclocal 1.16.3 -*- Autoconf -*-
|
|
1 |
|
|
2 |
# Copyright (C) 1996-2020 Free Software Foundation, Inc.
|
3 | 3 |
|
4 | 4 |
# This file is free software; the Free Software Foundation
|
5 | 5 |
# gives unlimited permission to copy and/or distribute it,
|
|
19 | 19 |
If you have problems, you may need to regenerate the build system entirely.
|
20 | 20 |
To do so, use the procedure documented by the package, typically 'autoreconf'.])])
|
21 | 21 |
|
22 | |
# iconv.m4 serial 19 (gettext-0.18.2)
|
23 | |
dnl Copyright (C) 2000-2002, 2007-2014, 2016 Free Software Foundation, Inc.
|
|
22 |
# host-cpu-c-abi.m4 serial 13
|
|
23 |
dnl Copyright (C) 2002-2020 Free Software Foundation, Inc.
|
|
24 |
dnl This file is free software; the Free Software Foundation
|
|
25 |
dnl gives unlimited permission to copy and/or distribute it,
|
|
26 |
dnl with or without modifications, as long as this notice is preserved.
|
|
27 |
|
|
28 |
dnl From Bruno Haible and Sam Steingold.
|
|
29 |
|
|
30 |
dnl Sets the HOST_CPU variable to the canonical name of the CPU.
|
|
31 |
dnl Sets the HOST_CPU_C_ABI variable to the canonical name of the CPU with its
|
|
32 |
dnl C language ABI (application binary interface).
|
|
33 |
dnl Also defines __${HOST_CPU}__ and __${HOST_CPU_C_ABI}__ as C macros in
|
|
34 |
dnl config.h.
|
|
35 |
dnl
|
|
36 |
dnl This canonical name can be used to select a particular assembly language
|
|
37 |
dnl source file that will interoperate with C code on the given host.
|
|
38 |
dnl
|
|
39 |
dnl For example:
|
|
40 |
dnl * 'i386' and 'sparc' are different canonical names, because code for i386
|
|
41 |
dnl will not run on SPARC CPUs and vice versa. They have different
|
|
42 |
dnl instruction sets.
|
|
43 |
dnl * 'sparc' and 'sparc64' are different canonical names, because code for
|
|
44 |
dnl 'sparc' and code for 'sparc64' cannot be linked together: 'sparc' code
|
|
45 |
dnl contains 32-bit instructions, whereas 'sparc64' code contains 64-bit
|
|
46 |
dnl instructions. A process on a SPARC CPU can be in 32-bit mode or in 64-bit
|
|
47 |
dnl mode, but not both.
|
|
48 |
dnl * 'mips' and 'mipsn32' are different canonical names, because they use
|
|
49 |
dnl different argument passing and return conventions for C functions, and
|
|
50 |
dnl although the instruction set of 'mips' is a large subset of the
|
|
51 |
dnl instruction set of 'mipsn32'.
|
|
52 |
dnl * 'mipsn32' and 'mips64' are different canonical names, because they use
|
|
53 |
dnl different sizes for the C types like 'int' and 'void *', and although
|
|
54 |
dnl the instruction sets of 'mipsn32' and 'mips64' are the same.
|
|
55 |
dnl * The same canonical name is used for different endiannesses. You can
|
|
56 |
dnl determine the endianness through preprocessor symbols:
|
|
57 |
dnl - 'arm': test __ARMEL__.
|
|
58 |
dnl - 'mips', 'mipsn32', 'mips64': test _MIPSEB vs. _MIPSEL.
|
|
59 |
dnl - 'powerpc64': test _BIG_ENDIAN vs. _LITTLE_ENDIAN.
|
|
60 |
dnl * The same name 'i386' is used for CPUs of type i386, i486, i586
|
|
61 |
dnl (Pentium), AMD K7, Pentium II, Pentium IV, etc., because
|
|
62 |
dnl - Instructions that do not exist on all of these CPUs (cmpxchg,
|
|
63 |
dnl MMX, SSE, SSE2, 3DNow! etc.) are not frequently used. If your
|
|
64 |
dnl assembly language source files use such instructions, you will
|
|
65 |
dnl need to make the distinction.
|
|
66 |
dnl - Speed of execution of the common instruction set is reasonable across
|
|
67 |
dnl the entire family of CPUs. If you have assembly language source files
|
|
68 |
dnl that are optimized for particular CPU types (like GNU gmp has), you
|
|
69 |
dnl will need to make the distinction.
|
|
70 |
dnl See <https://en.wikipedia.org/wiki/X86_instruction_listings>.
|
|
71 |
AC_DEFUN([gl_HOST_CPU_C_ABI],
|
|
72 |
[
|
|
73 |
AC_REQUIRE([AC_CANONICAL_HOST])
|
|
74 |
AC_REQUIRE([gl_C_ASM])
|
|
75 |
AC_CACHE_CHECK([host CPU and C ABI], [gl_cv_host_cpu_c_abi],
|
|
76 |
[case "$host_cpu" in
|
|
77 |
|
|
78 |
changequote(,)dnl
|
|
79 |
i[34567]86 )
|
|
80 |
changequote([,])dnl
|
|
81 |
gl_cv_host_cpu_c_abi=i386
|
|
82 |
;;
|
|
83 |
|
|
84 |
x86_64 )
|
|
85 |
# On x86_64 systems, the C compiler may be generating code in one of
|
|
86 |
# these ABIs:
|
|
87 |
# - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
|
|
88 |
# - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
|
|
89 |
# with native Windows (mingw, MSVC).
|
|
90 |
# - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
|
|
91 |
# - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
|
|
92 |
AC_COMPILE_IFELSE(
|
|
93 |
[AC_LANG_SOURCE(
|
|
94 |
[[#if (defined __x86_64__ || defined __amd64__ \
|
|
95 |
|| defined _M_X64 || defined _M_AMD64)
|
|
96 |
int ok;
|
|
97 |
#else
|
|
98 |
error fail
|
|
99 |
#endif
|
|
100 |
]])],
|
|
101 |
[AC_COMPILE_IFELSE(
|
|
102 |
[AC_LANG_SOURCE(
|
|
103 |
[[#if defined __ILP32__ || defined _ILP32
|
|
104 |
int ok;
|
|
105 |
#else
|
|
106 |
error fail
|
|
107 |
#endif
|
|
108 |
]])],
|
|
109 |
[gl_cv_host_cpu_c_abi=x86_64-x32],
|
|
110 |
[gl_cv_host_cpu_c_abi=x86_64])],
|
|
111 |
[gl_cv_host_cpu_c_abi=i386])
|
|
112 |
;;
|
|
113 |
|
|
114 |
changequote(,)dnl
|
|
115 |
alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] )
|
|
116 |
changequote([,])dnl
|
|
117 |
gl_cv_host_cpu_c_abi=alpha
|
|
118 |
;;
|
|
119 |
|
|
120 |
arm* | aarch64 )
|
|
121 |
# Assume arm with EABI.
|
|
122 |
# On arm64 systems, the C compiler may be generating code in one of
|
|
123 |
# these ABIs:
|
|
124 |
# - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
|
|
125 |
# - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
|
|
126 |
# - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
|
|
127 |
AC_COMPILE_IFELSE(
|
|
128 |
[AC_LANG_SOURCE(
|
|
129 |
[[#ifdef __aarch64__
|
|
130 |
int ok;
|
|
131 |
#else
|
|
132 |
error fail
|
|
133 |
#endif
|
|
134 |
]])],
|
|
135 |
[AC_COMPILE_IFELSE(
|
|
136 |
[AC_LANG_SOURCE(
|
|
137 |
[[#if defined __ILP32__ || defined _ILP32
|
|
138 |
int ok;
|
|
139 |
#else
|
|
140 |
error fail
|
|
141 |
#endif
|
|
142 |
]])],
|
|
143 |
[gl_cv_host_cpu_c_abi=arm64-ilp32],
|
|
144 |
[gl_cv_host_cpu_c_abi=arm64])],
|
|
145 |
[# Don't distinguish little-endian and big-endian arm, since they
|
|
146 |
# don't require different machine code for simple operations and
|
|
147 |
# since the user can distinguish them through the preprocessor
|
|
148 |
# defines __ARMEL__ vs. __ARMEB__.
|
|
149 |
# But distinguish arm which passes floating-point arguments and
|
|
150 |
# return values in integer registers (r0, r1, ...) - this is
|
|
151 |
# gcc -mfloat-abi=soft or gcc -mfloat-abi=softfp - from arm which
|
|
152 |
# passes them in float registers (s0, s1, ...) and double registers
|
|
153 |
# (d0, d1, ...) - this is gcc -mfloat-abi=hard. GCC 4.6 or newer
|
|
154 |
# sets the preprocessor defines __ARM_PCS (for the first case) and
|
|
155 |
# __ARM_PCS_VFP (for the second case), but older GCC does not.
|
|
156 |
echo 'double ddd; void func (double dd) { ddd = dd; }' > conftest.c
|
|
157 |
# Look for a reference to the register d0 in the .s file.
|
|
158 |
AC_TRY_COMMAND(${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c) >/dev/null 2>&1
|
|
159 |
if LC_ALL=C grep 'd0,' conftest.$gl_asmext >/dev/null; then
|
|
160 |
gl_cv_host_cpu_c_abi=armhf
|
|
161 |
else
|
|
162 |
gl_cv_host_cpu_c_abi=arm
|
|
163 |
fi
|
|
164 |
rm -f conftest*
|
|
165 |
])
|
|
166 |
;;
|
|
167 |
|
|
168 |
hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
|
|
169 |
# On hppa, the C compiler may be generating 32-bit code or 64-bit
|
|
170 |
# code. In the latter case, it defines _LP64 and __LP64__.
|
|
171 |
AC_COMPILE_IFELSE(
|
|
172 |
[AC_LANG_SOURCE(
|
|
173 |
[[#ifdef __LP64__
|
|
174 |
int ok;
|
|
175 |
#else
|
|
176 |
error fail
|
|
177 |
#endif
|
|
178 |
]])],
|
|
179 |
[gl_cv_host_cpu_c_abi=hppa64],
|
|
180 |
[gl_cv_host_cpu_c_abi=hppa])
|
|
181 |
;;
|
|
182 |
|
|
183 |
ia64* )
|
|
184 |
# On ia64 on HP-UX, the C compiler may be generating 64-bit code or
|
|
185 |
# 32-bit code. In the latter case, it defines _ILP32.
|
|
186 |
AC_COMPILE_IFELSE(
|
|
187 |
[AC_LANG_SOURCE(
|
|
188 |
[[#ifdef _ILP32
|
|
189 |
int ok;
|
|
190 |
#else
|
|
191 |
error fail
|
|
192 |
#endif
|
|
193 |
]])],
|
|
194 |
[gl_cv_host_cpu_c_abi=ia64-ilp32],
|
|
195 |
[gl_cv_host_cpu_c_abi=ia64])
|
|
196 |
;;
|
|
197 |
|
|
198 |
mips* )
|
|
199 |
# We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
|
|
200 |
# at 32.
|
|
201 |
AC_COMPILE_IFELSE(
|
|
202 |
[AC_LANG_SOURCE(
|
|
203 |
[[#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
|
|
204 |
int ok;
|
|
205 |
#else
|
|
206 |
error fail
|
|
207 |
#endif
|
|
208 |
]])],
|
|
209 |
[gl_cv_host_cpu_c_abi=mips64],
|
|
210 |
[# In the n32 ABI, _ABIN32 is defined, _ABIO32 is not defined (but
|
|
211 |
# may later get defined by <sgidefs.h>), and _MIPS_SIM == _ABIN32.
|
|
212 |
# In the 32 ABI, _ABIO32 is defined, _ABIN32 is not defined (but
|
|
213 |
# may later get defined by <sgidefs.h>), and _MIPS_SIM == _ABIO32.
|
|
214 |
AC_COMPILE_IFELSE(
|
|
215 |
[AC_LANG_SOURCE(
|
|
216 |
[[#if (_MIPS_SIM == _ABIN32)
|
|
217 |
int ok;
|
|
218 |
#else
|
|
219 |
error fail
|
|
220 |
#endif
|
|
221 |
]])],
|
|
222 |
[gl_cv_host_cpu_c_abi=mipsn32],
|
|
223 |
[gl_cv_host_cpu_c_abi=mips])])
|
|
224 |
;;
|
|
225 |
|
|
226 |
powerpc* )
|
|
227 |
# Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
|
|
228 |
# No need to distinguish them here; the caller may distinguish
|
|
229 |
# them based on the OS.
|
|
230 |
# On powerpc64 systems, the C compiler may still be generating
|
|
231 |
# 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
|
|
232 |
# be generating 64-bit code.
|
|
233 |
AC_COMPILE_IFELSE(
|
|
234 |
[AC_LANG_SOURCE(
|
|
235 |
[[#if defined __powerpc64__ || defined _ARCH_PPC64
|
|
236 |
int ok;
|
|
237 |
#else
|
|
238 |
error fail
|
|
239 |
#endif
|
|
240 |
]])],
|
|
241 |
[# On powerpc64, there are two ABIs on Linux: The AIX compatible
|
|
242 |
# one and the ELFv2 one. The latter defines _CALL_ELF=2.
|
|
243 |
AC_COMPILE_IFELSE(
|
|
244 |
[AC_LANG_SOURCE(
|
|
245 |
[[#if defined _CALL_ELF && _CALL_ELF == 2
|
|
246 |
int ok;
|
|
247 |
#else
|
|
248 |
error fail
|
|
249 |
#endif
|
|
250 |
]])],
|
|
251 |
[gl_cv_host_cpu_c_abi=powerpc64-elfv2],
|
|
252 |
[gl_cv_host_cpu_c_abi=powerpc64])
|
|
253 |
],
|
|
254 |
[gl_cv_host_cpu_c_abi=powerpc])
|
|
255 |
;;
|
|
256 |
|
|
257 |
rs6000 )
|
|
258 |
gl_cv_host_cpu_c_abi=powerpc
|
|
259 |
;;
|
|
260 |
|
|
261 |
riscv32 | riscv64 )
|
|
262 |
# There are 2 architectures (with variants): rv32* and rv64*.
|
|
263 |
AC_COMPILE_IFELSE(
|
|
264 |
[AC_LANG_SOURCE(
|
|
265 |
[[#if __riscv_xlen == 64
|
|
266 |
int ok;
|
|
267 |
#else
|
|
268 |
error fail
|
|
269 |
#endif
|
|
270 |
]])],
|
|
271 |
[cpu=riscv64],
|
|
272 |
[cpu=riscv32])
|
|
273 |
# There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
|
|
274 |
# Size of 'long' and 'void *':
|
|
275 |
AC_COMPILE_IFELSE(
|
|
276 |
[AC_LANG_SOURCE(
|
|
277 |
[[#if defined __LP64__
|
|
278 |
int ok;
|
|
279 |
#else
|
|
280 |
error fail
|
|
281 |
#endif
|
|
282 |
]])],
|
|
283 |
[main_abi=lp64],
|
|
284 |
[main_abi=ilp32])
|
|
285 |
# Float ABIs:
|
|
286 |
# __riscv_float_abi_double:
|
|
287 |
# 'float' and 'double' are passed in floating-point registers.
|
|
288 |
# __riscv_float_abi_single:
|
|
289 |
# 'float' are passed in floating-point registers.
|
|
290 |
# __riscv_float_abi_soft:
|
|
291 |
# No values are passed in floating-point registers.
|
|
292 |
AC_COMPILE_IFELSE(
|
|
293 |
[AC_LANG_SOURCE(
|
|
294 |
[[#if defined __riscv_float_abi_double
|
|
295 |
int ok;
|
|
296 |
#else
|
|
297 |
error fail
|
|
298 |
#endif
|
|
299 |
]])],
|
|
300 |
[float_abi=d],
|
|
301 |
[AC_COMPILE_IFELSE(
|
|
302 |
[AC_LANG_SOURCE(
|
|
303 |
[[#if defined __riscv_float_abi_single
|
|
304 |
int ok;
|
|
305 |
#else
|
|
306 |
error fail
|
|
307 |
#endif
|
|
308 |
]])],
|
|
309 |
[float_abi=f],
|
|
310 |
[float_abi=''])
|
|
311 |
])
|
|
312 |
gl_cv_host_cpu_c_abi="${cpu}-${main_abi}${float_abi}"
|
|
313 |
;;
|
|
314 |
|
|
315 |
s390* )
|
|
316 |
# On s390x, the C compiler may be generating 64-bit (= s390x) code
|
|
317 |
# or 31-bit (= s390) code.
|
|
318 |
AC_COMPILE_IFELSE(
|
|
319 |
[AC_LANG_SOURCE(
|
|
320 |
[[#if defined __LP64__ || defined __s390x__
|
|
321 |
int ok;
|
|
322 |
#else
|
|
323 |
error fail
|
|
324 |
#endif
|
|
325 |
]])],
|
|
326 |
[gl_cv_host_cpu_c_abi=s390x],
|
|
327 |
[gl_cv_host_cpu_c_abi=s390])
|
|
328 |
;;
|
|
329 |
|
|
330 |
sparc | sparc64 )
|
|
331 |
# UltraSPARCs running Linux have `uname -m` = "sparc64", but the
|
|
332 |
# C compiler still generates 32-bit code.
|
|
333 |
AC_COMPILE_IFELSE(
|
|
334 |
[AC_LANG_SOURCE(
|
|
335 |
[[#if defined __sparcv9 || defined __arch64__
|
|
336 |
int ok;
|
|
337 |
#else
|
|
338 |
error fail
|
|
339 |
#endif
|
|
340 |
]])],
|
|
341 |
[gl_cv_host_cpu_c_abi=sparc64],
|
|
342 |
[gl_cv_host_cpu_c_abi=sparc])
|
|
343 |
;;
|
|
344 |
|
|
345 |
*)
|
|
346 |
gl_cv_host_cpu_c_abi="$host_cpu"
|
|
347 |
;;
|
|
348 |
esac
|
|
349 |
])
|
|
350 |
|
|
351 |
dnl In most cases, $HOST_CPU and $HOST_CPU_C_ABI are the same.
|
|
352 |
HOST_CPU=`echo "$gl_cv_host_cpu_c_abi" | sed -e 's/-.*//'`
|
|
353 |
HOST_CPU_C_ABI="$gl_cv_host_cpu_c_abi"
|
|
354 |
AC_SUBST([HOST_CPU])
|
|
355 |
AC_SUBST([HOST_CPU_C_ABI])
|
|
356 |
|
|
357 |
# This was
|
|
358 |
# AC_DEFINE_UNQUOTED([__${HOST_CPU}__])
|
|
359 |
# AC_DEFINE_UNQUOTED([__${HOST_CPU_C_ABI}__])
|
|
360 |
# earlier, but KAI C++ 3.2d doesn't like this.
|
|
361 |
sed -e 's/-/_/g' >> confdefs.h <<EOF
|
|
362 |
#ifndef __${HOST_CPU}__
|
|
363 |
#define __${HOST_CPU}__ 1
|
|
364 |
#endif
|
|
365 |
#ifndef __${HOST_CPU_C_ABI}__
|
|
366 |
#define __${HOST_CPU_C_ABI}__ 1
|
|
367 |
#endif
|
|
368 |
EOF
|
|
369 |
AH_TOP([/* CPU and C ABI indicator */
|
|
370 |
#ifndef __i386__
|
|
371 |
#undef __i386__
|
|
372 |
#endif
|
|
373 |
#ifndef __x86_64_x32__
|
|
374 |
#undef __x86_64_x32__
|
|
375 |
#endif
|
|
376 |
#ifndef __x86_64__
|
|
377 |
#undef __x86_64__
|
|
378 |
#endif
|
|
379 |
#ifndef __alpha__
|
|
380 |
#undef __alpha__
|
|
381 |
#endif
|
|
382 |
#ifndef __arm__
|
|
383 |
#undef __arm__
|
|
384 |
#endif
|
|
385 |
#ifndef __armhf__
|
|
386 |
#undef __armhf__
|
|
387 |
#endif
|
|
388 |
#ifndef __arm64_ilp32__
|
|
389 |
#undef __arm64_ilp32__
|
|
390 |
#endif
|
|
391 |
#ifndef __arm64__
|
|
392 |
#undef __arm64__
|
|
393 |
#endif
|
|
394 |
#ifndef __hppa__
|
|
395 |
#undef __hppa__
|
|
396 |
#endif
|
|
397 |
#ifndef __hppa64__
|
|
398 |
#undef __hppa64__
|
|
399 |
#endif
|
|
400 |
#ifndef __ia64_ilp32__
|
|
401 |
#undef __ia64_ilp32__
|
|
402 |
#endif
|
|
403 |
#ifndef __ia64__
|
|
404 |
#undef __ia64__
|
|
405 |
#endif
|
|
406 |
#ifndef __m68k__
|
|
407 |
#undef __m68k__
|
|
408 |
#endif
|
|
409 |
#ifndef __mips__
|
|
410 |
#undef __mips__
|
|
411 |
#endif
|
|
412 |
#ifndef __mipsn32__
|
|
413 |
#undef __mipsn32__
|
|
414 |
#endif
|
|
415 |
#ifndef __mips64__
|
|
416 |
#undef __mips64__
|
|
417 |
#endif
|
|
418 |
#ifndef __powerpc__
|
|
419 |
#undef __powerpc__
|
|
420 |
#endif
|
|
421 |
#ifndef __powerpc64__
|
|
422 |
#undef __powerpc64__
|
|
423 |
#endif
|
|
424 |
#ifndef __powerpc64_elfv2__
|
|
425 |
#undef __powerpc64_elfv2__
|
|
426 |
#endif
|
|
427 |
#ifndef __riscv32__
|
|
428 |
#undef __riscv32__
|
|
429 |
#endif
|
|
430 |
#ifndef __riscv64__
|
|
431 |
#undef __riscv64__
|
|
432 |
#endif
|
|
433 |
#ifndef __riscv32_ilp32__
|
|
434 |
#undef __riscv32_ilp32__
|
|
435 |
#endif
|
|
436 |
#ifndef __riscv32_ilp32f__
|
|
437 |
#undef __riscv32_ilp32f__
|
|
438 |
#endif
|
|
439 |
#ifndef __riscv32_ilp32d__
|
|
440 |
#undef __riscv32_ilp32d__
|
|
441 |
#endif
|
|
442 |
#ifndef __riscv64_ilp32__
|
|
443 |
#undef __riscv64_ilp32__
|
|
444 |
#endif
|
|
445 |
#ifndef __riscv64_ilp32f__
|
|
446 |
#undef __riscv64_ilp32f__
|
|
447 |
#endif
|
|
448 |
#ifndef __riscv64_ilp32d__
|
|
449 |
#undef __riscv64_ilp32d__
|
|
450 |
#endif
|
|
451 |
#ifndef __riscv64_lp64__
|
|
452 |
#undef __riscv64_lp64__
|
|
453 |
#endif
|
|
454 |
#ifndef __riscv64_lp64f__
|
|
455 |
#undef __riscv64_lp64f__
|
|
456 |
#endif
|
|
457 |
#ifndef __riscv64_lp64d__
|
|
458 |
#undef __riscv64_lp64d__
|
|
459 |
#endif
|
|
460 |
#ifndef __s390__
|
|
461 |
#undef __s390__
|
|
462 |
#endif
|
|
463 |
#ifndef __s390x__
|
|
464 |
#undef __s390x__
|
|
465 |
#endif
|
|
466 |
#ifndef __sh__
|
|
467 |
#undef __sh__
|
|
468 |
#endif
|
|
469 |
#ifndef __sparc__
|
|
470 |
#undef __sparc__
|
|
471 |
#endif
|
|
472 |
#ifndef __sparc64__
|
|
473 |
#undef __sparc64__
|
|
474 |
#endif
|
|
475 |
])
|
|
476 |
|
|
477 |
])
|
|
478 |
|
|
479 |
|
|
480 |
dnl Sets the HOST_CPU_C_ABI_32BIT variable to 'yes' if the C language ABI
|
|
481 |
dnl (application binary interface) is a 32-bit one, to 'no' if it is a 64-bit
|
|
482 |
dnl one, or to 'unknown' if unknown.
|
|
483 |
dnl This is a simplified variant of gl_HOST_CPU_C_ABI.
|
|
484 |
AC_DEFUN([gl_HOST_CPU_C_ABI_32BIT],
|
|
485 |
[
|
|
486 |
AC_REQUIRE([AC_CANONICAL_HOST])
|
|
487 |
AC_CACHE_CHECK([32-bit host C ABI], [gl_cv_host_cpu_c_abi_32bit],
|
|
488 |
[if test -n "$gl_cv_host_cpu_c_abi"; then
|
|
489 |
case "$gl_cv_host_cpu_c_abi" in
|
|
490 |
i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
|
|
491 |
gl_cv_host_cpu_c_abi_32bit=yes ;;
|
|
492 |
x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
|
|
493 |
gl_cv_host_cpu_c_abi_32bit=no ;;
|
|
494 |
*)
|
|
495 |
gl_cv_host_cpu_c_abi_32bit=unknown ;;
|
|
496 |
esac
|
|
497 |
else
|
|
498 |
case "$host_cpu" in
|
|
499 |
|
|
500 |
# CPUs that only support a 32-bit ABI.
|
|
501 |
arc \
|
|
502 |
| bfin \
|
|
503 |
| cris* \
|
|
504 |
| csky \
|
|
505 |
| epiphany \
|
|
506 |
| ft32 \
|
|
507 |
| h8300 \
|
|
508 |
| m68k \
|
|
509 |
| microblaze | microblazeel \
|
|
510 |
| nds32 | nds32le | nds32be \
|
|
511 |
| nios2 | nios2eb | nios2el \
|
|
512 |
| or1k* \
|
|
513 |
| or32 \
|
|
514 |
| sh | sh[1234] | sh[1234]e[lb] \
|
|
515 |
| tic6x \
|
|
516 |
| xtensa* )
|
|
517 |
gl_cv_host_cpu_c_abi_32bit=yes
|
|
518 |
;;
|
|
519 |
|
|
520 |
# CPUs that only support a 64-bit ABI.
|
|
521 |
changequote(,)dnl
|
|
522 |
alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
|
|
523 |
| mmix )
|
|
524 |
changequote([,])dnl
|
|
525 |
gl_cv_host_cpu_c_abi_32bit=no
|
|
526 |
;;
|
|
527 |
|
|
528 |
changequote(,)dnl
|
|
529 |
i[34567]86 )
|
|
530 |
changequote([,])dnl
|
|
531 |
gl_cv_host_cpu_c_abi_32bit=yes
|
|
532 |
;;
|
|
533 |
|
|
534 |
x86_64 )
|
|
535 |
# On x86_64 systems, the C compiler may be generating code in one of
|
|
536 |
# these ABIs:
|
|
537 |
# - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
|
|
538 |
# - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
|
|
539 |
# with native Windows (mingw, MSVC).
|
|
540 |
# - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
|
|
541 |
# - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
|
|
542 |
AC_COMPILE_IFELSE(
|
|
543 |
[AC_LANG_SOURCE(
|
|
544 |
[[#if (defined __x86_64__ || defined __amd64__ \
|
|
545 |
|| defined _M_X64 || defined _M_AMD64) \
|
|
546 |
&& !(defined __ILP32__ || defined _ILP32)
|
|
547 |
int ok;
|
|
548 |
#else
|
|
549 |
error fail
|
|
550 |
#endif
|
|
551 |
]])],
|
|
552 |
[gl_cv_host_cpu_c_abi_32bit=no],
|
|
553 |
[gl_cv_host_cpu_c_abi_32bit=yes])
|
|
554 |
;;
|
|
555 |
|
|
556 |
arm* | aarch64 )
|
|
557 |
# Assume arm with EABI.
|
|
558 |
# On arm64 systems, the C compiler may be generating code in one of
|
|
559 |
# these ABIs:
|
|
560 |
# - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
|
|
561 |
# - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
|
|
562 |
# - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
|
|
563 |
AC_COMPILE_IFELSE(
|
|
564 |
[AC_LANG_SOURCE(
|
|
565 |
[[#if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
|
|
566 |
int ok;
|
|
567 |
#else
|
|
568 |
error fail
|
|
569 |
#endif
|
|
570 |
]])],
|
|
571 |
[gl_cv_host_cpu_c_abi_32bit=no],
|
|
572 |
[gl_cv_host_cpu_c_abi_32bit=yes])
|
|
573 |
;;
|
|
574 |
|
|
575 |
hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
|
|
576 |
# On hppa, the C compiler may be generating 32-bit code or 64-bit
|
|
577 |
# code. In the latter case, it defines _LP64 and __LP64__.
|
|
578 |
AC_COMPILE_IFELSE(
|
|
579 |
[AC_LANG_SOURCE(
|
|
580 |
[[#ifdef __LP64__
|
|
581 |
int ok;
|
|
582 |
#else
|
|
583 |
error fail
|
|
584 |
#endif
|
|
585 |
]])],
|
|
586 |
[gl_cv_host_cpu_c_abi_32bit=no],
|
|
587 |
[gl_cv_host_cpu_c_abi_32bit=yes])
|
|
588 |
;;
|
|
589 |
|
|
590 |
ia64* )
|
|
591 |
# On ia64 on HP-UX, the C compiler may be generating 64-bit code or
|
|
592 |
# 32-bit code. In the latter case, it defines _ILP32.
|
|
593 |
AC_COMPILE_IFELSE(
|
|
594 |
[AC_LANG_SOURCE(
|
|
595 |
[[#ifdef _ILP32
|
|
596 |
int ok;
|
|
597 |
#else
|
|
598 |
error fail
|
|
599 |
#endif
|
|
600 |
]])],
|
|
601 |
[gl_cv_host_cpu_c_abi_32bit=yes],
|
|
602 |
[gl_cv_host_cpu_c_abi_32bit=no])
|
|
603 |
;;
|
|
604 |
|
|
605 |
mips* )
|
|
606 |
# We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
|
|
607 |
# at 32.
|
|
608 |
AC_COMPILE_IFELSE(
|
|
609 |
[AC_LANG_SOURCE(
|
|
610 |
[[#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
|
|
611 |
int ok;
|
|
612 |
#else
|
|
613 |
error fail
|
|
614 |
#endif
|
|
615 |
]])],
|
|
616 |
[gl_cv_host_cpu_c_abi_32bit=no],
|
|
617 |
[gl_cv_host_cpu_c_abi_32bit=yes])
|
|
618 |
;;
|
|
619 |
|
|
620 |
powerpc* )
|
|
621 |
# Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
|
|
622 |
# No need to distinguish them here; the caller may distinguish
|
|
623 |
# them based on the OS.
|
|
624 |
# On powerpc64 systems, the C compiler may still be generating
|
|
625 |
# 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
|
|
626 |
# be generating 64-bit code.
|
|
627 |
AC_COMPILE_IFELSE(
|
|
628 |
[AC_LANG_SOURCE(
|
|
629 |
[[#if defined __powerpc64__ || defined _ARCH_PPC64
|
|
630 |
int ok;
|
|
631 |
#else
|
|
632 |
error fail
|
|
633 |
#endif
|
|
634 |
]])],
|
|
635 |
[gl_cv_host_cpu_c_abi_32bit=no],
|
|
636 |
[gl_cv_host_cpu_c_abi_32bit=yes])
|
|
637 |
;;
|
|
638 |
|
|
639 |
rs6000 )
|
|
640 |
gl_cv_host_cpu_c_abi_32bit=yes
|
|
641 |
;;
|
|
642 |
|
|
643 |
riscv32 | riscv64 )
|
|
644 |
# There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
|
|
645 |
# Size of 'long' and 'void *':
|
|
646 |
AC_COMPILE_IFELSE(
|
|
647 |
[AC_LANG_SOURCE(
|
|
648 |
[[#if defined __LP64__
|
|
649 |
int ok;
|
|
650 |
#else
|
|
651 |
error fail
|
|
652 |
#endif
|
|
653 |
]])],
|
|
654 |
[gl_cv_host_cpu_c_abi_32bit=no],
|
|
655 |
[gl_cv_host_cpu_c_abi_32bit=yes])
|
|
656 |
;;
|
|
657 |
|
|
658 |
s390* )
|
|
659 |
# On s390x, the C compiler may be generating 64-bit (= s390x) code
|
|
660 |
# or 31-bit (= s390) code.
|
|
661 |
AC_COMPILE_IFELSE(
|
|
662 |
[AC_LANG_SOURCE(
|
|
663 |
[[#if defined __LP64__ || defined __s390x__
|
|
664 |
int ok;
|
|
665 |
#else
|
|
666 |
error fail
|
|
667 |
#endif
|
|
668 |
]])],
|
|
669 |
[gl_cv_host_cpu_c_abi_32bit=no],
|
|
670 |
[gl_cv_host_cpu_c_abi_32bit=yes])
|
|
671 |
;;
|
|
672 |
|
|
673 |
sparc | sparc64 )
|
|
674 |
# UltraSPARCs running Linux have `uname -m` = "sparc64", but the
|
|
675 |
# C compiler still generates 32-bit code.
|
|
676 |
AC_COMPILE_IFELSE(
|
|
677 |
[AC_LANG_SOURCE(
|
|
678 |
[[#if defined __sparcv9 || defined __arch64__
|
|
679 |
int ok;
|
|
680 |
#else
|
|
681 |
error fail
|
|
682 |
#endif
|
|
683 |
]])],
|
|
684 |
[gl_cv_host_cpu_c_abi_32bit=no],
|
|
685 |
[gl_cv_host_cpu_c_abi_32bit=yes])
|
|
686 |
;;
|
|
687 |
|
|
688 |
*)
|
|
689 |
gl_cv_host_cpu_c_abi_32bit=unknown
|
|
690 |
;;
|
|
691 |
esac
|
|
692 |
fi
|
|
693 |
])
|
|
694 |
|
|
695 |
HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
|
|
696 |
])
|
|
697 |
|
|
698 |
# iconv.m4 serial 21
|
|
699 |
dnl Copyright (C) 2000-2002, 2007-2014, 2016-2020 Free Software Foundation,
|
|
700 |
dnl Inc.
|
24 | 701 |
dnl This file is free software; the Free Software Foundation
|
25 | 702 |
dnl gives unlimited permission to copy and/or distribute it,
|
26 | 703 |
dnl with or without modifications, as long as this notice is preserved.
|
|
188 | 865 |
#endif
|
189 | 866 |
/* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
|
190 | 867 |
provided. */
|
191 | |
if (/* Try standardized names. */
|
192 | |
iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
|
193 | |
/* Try IRIX, OSF/1 names. */
|
194 | |
&& iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
|
195 | |
/* Try AIX names. */
|
196 | |
&& iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
|
197 | |
/* Try HP-UX names. */
|
198 | |
&& iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
|
199 | |
result |= 16;
|
|
868 |
{
|
|
869 |
/* Try standardized names. */
|
|
870 |
iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
|
|
871 |
/* Try IRIX, OSF/1 names. */
|
|
872 |
iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
|
|
873 |
/* Try AIX names. */
|
|
874 |
iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
|
|
875 |
/* Try HP-UX names. */
|
|
876 |
iconv_t cd4 = iconv_open ("utf8", "eucJP");
|
|
877 |
if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
|
|
878 |
&& cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
|
|
879 |
result |= 16;
|
|
880 |
if (cd1 != (iconv_t)(-1))
|
|
881 |
iconv_close (cd1);
|
|
882 |
if (cd2 != (iconv_t)(-1))
|
|
883 |
iconv_close (cd2);
|
|
884 |
if (cd3 != (iconv_t)(-1))
|
|
885 |
iconv_close (cd3);
|
|
886 |
if (cd4 != (iconv_t)(-1))
|
|
887 |
iconv_close (cd4);
|
|
888 |
}
|
200 | 889 |
return result;
|
201 | 890 |
]])],
|
202 | 891 |
[am_cv_func_iconv_works=yes], ,
|
|
279 | 968 |
am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
|
280 | 969 |
AC_MSG_RESULT([
|
281 | 970 |
$am_cv_proto_iconv])
|
282 | |
AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1],
|
283 | |
[Define as const if the declaration of iconv() needs const.])
|
284 | |
dnl Also substitute ICONV_CONST in the gnulib generated <iconv.h>.
|
285 | |
m4_ifdef([gl_ICONV_H_DEFAULTS],
|
286 | |
[AC_REQUIRE([gl_ICONV_H_DEFAULTS])
|
287 | |
if test -n "$am_cv_proto_iconv_arg1"; then
|
288 | |
ICONV_CONST="const"
|
289 | |
fi
|
290 | |
])
|
|
971 |
else
|
|
972 |
dnl When compiling GNU libiconv on a system that does not have iconv yet,
|
|
973 |
dnl pick the POSIX compliant declaration without 'const'.
|
|
974 |
am_cv_proto_iconv_arg1=""
|
291 | 975 |
fi
|
|
976 |
AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1],
|
|
977 |
[Define as const if the declaration of iconv() needs const.])
|
|
978 |
dnl Also substitute ICONV_CONST in the gnulib generated <iconv.h>.
|
|
979 |
m4_ifdef([gl_ICONV_H_DEFAULTS],
|
|
980 |
[AC_REQUIRE([gl_ICONV_H_DEFAULTS])
|
|
981 |
if test -n "$am_cv_proto_iconv_arg1"; then
|
|
982 |
ICONV_CONST="const"
|
|
983 |
fi
|
|
984 |
])
|
292 | 985 |
])
|
293 | 986 |
|
294 | |
# lib-ld.m4 serial 6
|
295 | |
dnl Copyright (C) 1996-2003, 2009-2016 Free Software Foundation, Inc.
|
|
987 |
# lib-ld.m4 serial 9
|
|
988 |
dnl Copyright (C) 1996-2003, 2009-2020 Free Software Foundation, Inc.
|
296 | 989 |
dnl This file is free software; the Free Software Foundation
|
297 | 990 |
dnl gives unlimited permission to copy and/or distribute it,
|
298 | 991 |
dnl with or without modifications, as long as this notice is preserved.
|
|
340 | 1033 |
}
|
341 | 1034 |
fi
|
342 | 1035 |
|
343 | |
ac_prog=ld
|
344 | |
if test "$GCC" = yes; then
|
345 | |
# Check if gcc -print-prog-name=ld gives a path.
|
|
1036 |
if test -n "$LD"; then
|
|
1037 |
AC_MSG_CHECKING([for ld])
|
|
1038 |
elif test "$GCC" = yes; then
|
346 | 1039 |
AC_MSG_CHECKING([for ld used by $CC])
|
347 | |
case $host in
|
348 | |
*-*-mingw*)
|
349 | |
# gcc leaves a trailing carriage return which upsets mingw
|
350 | |
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
351 | |
*)
|
352 | |
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
|
353 | |
esac
|
354 | |
case $ac_prog in
|
355 | |
# Accept absolute paths.
|
356 | |
[[\\/]]* | ?:[[\\/]]*)
|
357 | |
re_direlt='/[[^/]][[^/]]*/\.\./'
|
358 | |
# Canonicalize the pathname of ld
|
359 | |
ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
|
360 | |
while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
|
361 | |
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
|
362 | |
done
|
363 | |
test -z "$LD" && LD="$ac_prog"
|
364 | |
;;
|
365 | |
"")
|
366 | |
# If it fails, then pretend we aren't using GCC.
|
367 | |
ac_prog=ld
|
368 | |
;;
|
369 | |
*)
|
370 | |
# If it is relative, then search for the first ld in PATH.
|
371 | |
with_gnu_ld=unknown
|
372 | |
;;
|
373 | |
esac
|
374 | 1040 |
elif test "$with_gnu_ld" = yes; then
|
375 | 1041 |
AC_MSG_CHECKING([for GNU ld])
|
376 | 1042 |
else
|
377 | 1043 |
AC_MSG_CHECKING([for non-GNU ld])
|
378 | 1044 |
fi
|
379 | |
AC_CACHE_VAL([acl_cv_path_LD],
|
380 | |
[if test -z "$LD"; then
|
381 | |
acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
382 | |
for ac_dir in $PATH; do
|
383 | |
IFS="$acl_save_ifs"
|
384 | |
test -z "$ac_dir" && ac_dir=.
|
385 | |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
386 | |
acl_cv_path_LD="$ac_dir/$ac_prog"
|
387 | |
# Check to see if the program is GNU ld. I'd rather use --version,
|
388 | |
# but apparently some variants of GNU ld only accept -v.
|
389 | |
# Break only if it was the GNU/non-GNU ld that we prefer.
|
390 | |
case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
|
391 | |
*GNU* | *'with BFD'*)
|
392 | |
test "$with_gnu_ld" != no && break
|
393 | |
;;
|
394 | |
*)
|
395 | |
test "$with_gnu_ld" != yes && break
|
396 | |
;;
|
|
1045 |
if test -n "$LD"; then
|
|
1046 |
# Let the user override the test with a path.
|
|
1047 |
:
|
|
1048 |
else
|
|
1049 |
AC_CACHE_VAL([acl_cv_path_LD],
|
|
1050 |
[
|
|
1051 |
acl_cv_path_LD= # Final result of this test
|
|
1052 |
ac_prog=ld # Program to search in $PATH
|
|
1053 |
if test "$GCC" = yes; then
|
|
1054 |
# Check if gcc -print-prog-name=ld gives a path.
|
|
1055 |
case $host in
|
|
1056 |
*-*-mingw*)
|
|
1057 |
# gcc leaves a trailing carriage return which upsets mingw
|
|
1058 |
acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
|
|
1059 |
*)
|
|
1060 |
acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
|
|
1061 |
esac
|
|
1062 |
case $acl_output in
|
|
1063 |
# Accept absolute paths.
|
|
1064 |
[[\\/]]* | ?:[[\\/]]*)
|
|
1065 |
re_direlt='/[[^/]][[^/]]*/\.\./'
|
|
1066 |
# Canonicalize the pathname of ld
|
|
1067 |
acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
|
|
1068 |
while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
|
|
1069 |
acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
|
|
1070 |
done
|
|
1071 |
# Got the pathname. No search in PATH is needed.
|
|
1072 |
acl_cv_path_LD="$acl_output"
|
|
1073 |
ac_prog=
|
|
1074 |
;;
|
|
1075 |
"")
|
|
1076 |
# If it fails, then pretend we aren't using GCC.
|
|
1077 |
;;
|
|
1078 |
*)
|
|
1079 |
# If it is relative, then search for the first ld in PATH.
|
|
1080 |
with_gnu_ld=unknown
|
|
1081 |
;;
|
397 | 1082 |
esac
|
398 | 1083 |
fi
|
399 | |
done
|
400 | |
IFS="$acl_save_ifs"
|
401 | |
else
|
402 | |
acl_cv_path_LD="$LD" # Let the user override the test with a path.
|
403 | |
fi])
|
404 | |
LD="$acl_cv_path_LD"
|
|
1084 |
if test -n "$ac_prog"; then
|
|
1085 |
# Search for $ac_prog in $PATH.
|
|
1086 |
acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
|
|
1087 |
for ac_dir in $PATH; do
|
|
1088 |
IFS="$acl_save_ifs"
|
|
1089 |
test -z "$ac_dir" && ac_dir=.
|
|
1090 |
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
|
|
1091 |
acl_cv_path_LD="$ac_dir/$ac_prog"
|
|
1092 |
# Check to see if the program is GNU ld. I'd rather use --version,
|
|
1093 |
# but apparently some variants of GNU ld only accept -v.
|
|
1094 |
# Break only if it was the GNU/non-GNU ld that we prefer.
|
|
1095 |
case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
|
|
1096 |
*GNU* | *'with BFD'*)
|
|
1097 |
test "$with_gnu_ld" != no && break
|
|
1098 |
;;
|
|
1099 |
*)
|
|
1100 |
test "$with_gnu_ld" != yes && break
|
|
1101 |
;;
|
|
1102 |
esac
|
|
1103 |
fi
|
|
1104 |
done
|
|
1105 |
IFS="$acl_save_ifs"
|
|
1106 |
fi
|
|
1107 |
case $host in
|
|
1108 |
*-*-aix*)
|
|
1109 |
AC_COMPILE_IFELSE(
|
|
1110 |
[AC_LANG_SOURCE(
|
|
1111 |
[[#if defined __powerpc64__ || defined _ARCH_PPC64
|
|
1112 |
int ok;
|
|
1113 |
#else
|
|
1114 |
error fail
|
|
1115 |
#endif
|
|
1116 |
]])],
|
|
1117 |
[# The compiler produces 64-bit code. Add option '-b64' so that the
|
|
1118 |
# linker groks 64-bit object files.
|
|
1119 |
case "$acl_cv_path_LD " in
|
|
1120 |
*" -b64 "*) ;;
|
|
1121 |
*) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
|
|
1122 |
esac
|
|
1123 |
], [])
|
|
1124 |
;;
|
|
1125 |
sparc64-*-netbsd*)
|
|
1126 |
AC_COMPILE_IFELSE(
|
|
1127 |
[AC_LANG_SOURCE(
|
|
1128 |
[[#if defined __sparcv9 || defined __arch64__
|
|
1129 |
int ok;
|
|
1130 |
#else
|
|
1131 |
error fail
|
|
1132 |
#endif
|
|
1133 |
]])],
|
|
1134 |
[],
|
|
1135 |
[# The compiler produces 32-bit code. Add option '-m elf32_sparc'
|
|
1136 |
# so that the linker groks 32-bit object files.
|
|
1137 |
case "$acl_cv_path_LD " in
|
|
1138 |
*" -m elf32_sparc "*) ;;
|
|
1139 |
*) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
|
|
1140 |
esac
|
|
1141 |
])
|
|
1142 |
;;
|
|
1143 |
esac
|
|
1144 |
])
|
|
1145 |
LD="$acl_cv_path_LD"
|
|
1146 |
fi
|
405 | 1147 |
if test -n "$LD"; then
|
406 | 1148 |
AC_MSG_RESULT([$LD])
|
407 | 1149 |
else
|
408 | 1150 |
AC_MSG_RESULT([no])
|
|
1151 |
AC_MSG_ERROR([no acceptable ld found in \$PATH])
|
409 | 1152 |
fi
|
410 | |
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
|
411 | 1153 |
AC_LIB_PROG_LD_GNU
|
412 | 1154 |
])
|
413 | 1155 |
|
414 | |
# lib-link.m4 serial 26 (gettext-0.18.2)
|
415 | |
dnl Copyright (C) 2001-2016 Free Software Foundation, Inc.
|
|
1156 |
# lib-link.m4 serial 31
|
|
1157 |
dnl Copyright (C) 2001-2020 Free Software Foundation, Inc.
|
416 | 1158 |
dnl This file is free software; the Free Software Foundation
|
417 | 1159 |
dnl gives unlimited permission to copy and/or distribute it,
|
418 | 1160 |
dnl with or without modifications, as long as this notice is preserved.
|
419 | 1161 |
|
420 | 1162 |
dnl From Bruno Haible.
|
421 | 1163 |
|
422 | |
AC_PREREQ([2.54])
|
|
1164 |
AC_PREREQ([2.61])
|
423 | 1165 |
|
424 | 1166 |
dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
|
425 | 1167 |
dnl the libraries corresponding to explicit and implicit dependencies.
|
|
537 | 1279 |
dnl acl_hardcode_minus_L.
|
538 | 1280 |
AC_DEFUN([AC_LIB_RPATH],
|
539 | 1281 |
[
|
540 | |
dnl Tell automake >= 1.10 to complain if config.rpath is missing.
|
541 | |
m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
|
|
1282 |
dnl Complain if config.rpath is missing.
|
|
1283 |
AC_REQUIRE_AUX_FILE([config.rpath])
|
542 | 1284 |
AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
|
543 | 1285 |
AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
|
544 | 1286 |
AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
|
|
600 | 1342 |
pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-],
|
601 | 1343 |
[ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
|
602 | 1344 |
pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])])
|
603 | |
dnl Autoconf >= 2.61 supports dots in --with options.
|
604 | |
pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[m4_translit(PACK,[.],[_])],PACK)])
|
605 | 1345 |
dnl By default, look in $includedir and $libdir.
|
606 | 1346 |
use_additional=yes
|
607 | 1347 |
AC_LIB_WITH_FINAL_PREFIX([
|
608 | 1348 |
eval additional_includedir=\"$includedir\"
|
609 | 1349 |
eval additional_libdir=\"$libdir\"
|
|
1350 |
eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
|
|
1351 |
eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
|
610 | 1352 |
])
|
611 | |
AC_ARG_WITH(P_A_C_K[-prefix],
|
612 | |
[[ --with-]]P_A_C_K[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib
|
613 | |
--without-]]P_A_C_K[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]],
|
|
1353 |
AC_ARG_WITH(PACK[-prefix],
|
|
1354 |
[[ --with-]]PACK[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib
|
|
1355 |
--without-]]PACK[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]],
|
614 | 1356 |
[
|
615 | 1357 |
if test "X$withval" = "Xno"; then
|
616 | 1358 |
use_additional=no
|
|
619 | 1361 |
AC_LIB_WITH_FINAL_PREFIX([
|
620 | 1362 |
eval additional_includedir=\"$includedir\"
|
621 | 1363 |
eval additional_libdir=\"$libdir\"
|
|
1364 |
eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
|
|
1365 |
eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
|
622 | 1366 |
])
|
623 | 1367 |
else
|
624 | 1368 |
additional_includedir="$withval/include"
|
625 | 1369 |
additional_libdir="$withval/$acl_libdirstem"
|
626 | |
if test "$acl_libdirstem2" != "$acl_libdirstem" \
|
627 | |
&& ! test -d "$withval/$acl_libdirstem"; then
|
628 | |
additional_libdir="$withval/$acl_libdirstem2"
|
629 | |
fi
|
|
1370 |
additional_libdir2="$withval/$acl_libdirstem2"
|
|
1371 |
additional_libdir3="$withval/$acl_libdirstem3"
|
630 | 1372 |
fi
|
631 | 1373 |
fi
|
632 | 1374 |
])
|
|
1375 |
if test "X$additional_libdir2" = "X$additional_libdir"; then
|
|
1376 |
additional_libdir2=
|
|
1377 |
fi
|
|
1378 |
if test "X$additional_libdir3" = "X$additional_libdir"; then
|
|
1379 |
additional_libdir3=
|
|
1380 |
fi
|
633 | 1381 |
dnl Search the library and its dependencies in $additional_libdir and
|
634 | 1382 |
dnl $LDFLAGS. Using breadth-first-seach.
|
635 | 1383 |
LIB[]NAME=
|
|
685 | 1433 |
shrext=
|
686 | 1434 |
fi
|
687 | 1435 |
if test $use_additional = yes; then
|
688 | |
dir="$additional_libdir"
|
689 | |
dnl The same code as in the loop below:
|
690 | |
dnl First look for a shared library.
|
691 | |
if test -n "$acl_shlibext"; then
|
692 | |
if test -f "$dir/$libname$shrext"; then
|
693 | |
found_dir="$dir"
|
694 | |
found_so="$dir/$libname$shrext"
|
695 | |
else
|
696 | |
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
|
697 | |
ver=`(cd "$dir" && \
|
698 | |
for f in "$libname$shrext".*; do echo "$f"; done \
|
699 | |
| sed -e "s,^$libname$shrext\\\\.,," \
|
700 | |
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
|
701 | |
| sed 1q ) 2>/dev/null`
|
702 | |
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
|
703 | |
found_dir="$dir"
|
704 | |
found_so="$dir/$libname$shrext.$ver"
|
705 | |
fi
|
706 | |
else
|
707 | |
eval library_names=\"$acl_library_names_spec\"
|
708 | |
for f in $library_names; do
|
709 | |
if test -f "$dir/$f"; then
|
710 | |
found_dir="$dir"
|
711 | |
found_so="$dir/$f"
|
712 | |
break
|
713 | |
fi
|
714 | |
done
|
715 | |
fi
|
716 | |
fi
|
717 | |
fi
|
718 | |
dnl Then look for a static library.
|
719 | |
if test "X$found_dir" = "X"; then
|
720 | |
if test -f "$dir/$libname.$acl_libext"; then
|
721 | |
found_dir="$dir"
|
722 | |
found_a="$dir/$libname.$acl_libext"
|
723 | |
fi
|
724 | |
fi
|
725 | |
if test "X$found_dir" != "X"; then
|
726 | |
if test -f "$dir/$libname.la"; then
|
727 | |
found_la="$dir/$libname.la"
|
728 | |
fi
|
729 | |
fi
|
730 | |
fi
|
731 | |
if test "X$found_dir" = "X"; then
|
732 | |
for x in $LDFLAGS $LTLIB[]NAME; do
|
733 | |
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
|
734 | |
case "$x" in
|
735 | |
-L*)
|
736 | |
dir=`echo "X$x" | sed -e 's/^X-L//'`
|
|
1436 |
for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
|
|
1437 |
if test "X$found_dir" = "X"; then
|
|
1438 |
eval dir=\$$additional_libdir_variable
|
|
1439 |
if test -n "$dir"; then
|
|
1440 |
dnl The same code as in the loop below:
|
737 | 1441 |
dnl First look for a shared library.
|
738 | 1442 |
if test -n "$acl_shlibext"; then
|
739 | |
if test -f "$dir/$libname$shrext"; then
|
|
1443 |
if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
|
740 | 1444 |
found_dir="$dir"
|
741 | 1445 |
found_so="$dir/$libname$shrext"
|
742 | 1446 |
else
|
|
746 | 1450 |
| sed -e "s,^$libname$shrext\\\\.,," \
|
747 | 1451 |
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
|
748 | 1452 |
| sed 1q ) 2>/dev/null`
|
749 | |
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
|
|
1453 |
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
|
750 | 1454 |
found_dir="$dir"
|
751 | 1455 |
found_so="$dir/$libname$shrext.$ver"
|
752 | 1456 |
fi
|
753 | 1457 |
else
|
754 | 1458 |
eval library_names=\"$acl_library_names_spec\"
|
755 | 1459 |
for f in $library_names; do
|
756 | |
if test -f "$dir/$f"; then
|
|
1460 |
if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
|
757 | 1461 |
found_dir="$dir"
|
758 | 1462 |
found_so="$dir/$f"
|
759 | 1463 |
break
|
|
764 | 1468 |
fi
|
765 | 1469 |
dnl Then look for a static library.
|
766 | 1470 |
if test "X$found_dir" = "X"; then
|
767 | |
if test -f "$dir/$libname.$acl_libext"; then
|
|
1471 |
if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
|
|
1472 |
found_dir="$dir"
|
|
1473 |
found_a="$dir/$libname.$acl_libext"
|
|
1474 |
fi
|
|
1475 |
fi
|
|
1476 |
if test "X$found_dir" != "X"; then
|
|
1477 |
if test -f "$dir/$libname.la"; then
|
|
1478 |
found_la="$dir/$libname.la"
|
|
1479 |
fi
|
|
1480 |
fi
|
|
1481 |
fi
|
|
1482 |
fi
|
|
1483 |
done
|
|
1484 |
fi
|
|
1485 |
if test "X$found_dir" = "X"; then
|
|
1486 |
for x in $LDFLAGS $LTLIB[]NAME; do
|
|
1487 |
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
|
|
1488 |
case "$x" in
|
|
1489 |
-L*)
|
|
1490 |
dir=`echo "X$x" | sed -e 's/^X-L//'`
|
|
1491 |
dnl First look for a shared library.
|
|
1492 |
if test -n "$acl_shlibext"; then
|
|
1493 |
if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
|
|
1494 |
found_dir="$dir"
|
|
1495 |
found_so="$dir/$libname$shrext"
|
|
1496 |
else
|
|
1497 |
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
|
|
1498 |
ver=`(cd "$dir" && \
|
|
1499 |
for f in "$libname$shrext".*; do echo "$f"; done \
|
|
1500 |
| sed -e "s,^$libname$shrext\\\\.,," \
|
|
1501 |
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
|
|
1502 |
| sed 1q ) 2>/dev/null`
|
|
1503 |
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
|
|
1504 |
found_dir="$dir"
|
|
1505 |
found_so="$dir/$libname$shrext.$ver"
|
|
1506 |
fi
|
|
1507 |
else
|
|
1508 |
eval library_names=\"$acl_library_names_spec\"
|
|
1509 |
for f in $library_names; do
|
|
1510 |
if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
|
|
1511 |
found_dir="$dir"
|
|
1512 |
found_so="$dir/$f"
|
|
1513 |
break
|
|
1514 |
fi
|
|
1515 |
done
|
|
1516 |
fi
|
|
1517 |
fi
|
|
1518 |
fi
|
|
1519 |
dnl Then look for a static library.
|
|
1520 |
if test "X$found_dir" = "X"; then
|
|
1521 |
if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
|
768 | 1522 |
found_dir="$dir"
|
769 | 1523 |
found_a="$dir/$libname.$acl_libext"
|
770 | 1524 |
fi
|
|
790 | 1544 |
dnl standard /usr/lib.
|
791 | 1545 |
if test "$enable_rpath" = no \
|
792 | 1546 |
|| test "X$found_dir" = "X/usr/$acl_libdirstem" \
|
793 | |
|| test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
|
|
1547 |
|| test "X$found_dir" = "X/usr/$acl_libdirstem2" \
|
|
1548 |
|| test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
|
794 | 1549 |
dnl No hardcoding is needed.
|
795 | 1550 |
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
|
796 | 1551 |
else
|
|
890 | 1645 |
fi
|
891 | 1646 |
additional_includedir="$basedir/include"
|
892 | 1647 |
;;
|
|
1648 |
*/$acl_libdirstem3 | */$acl_libdirstem3/)
|
|
1649 |
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
|
|
1650 |
if test "$name" = '$1'; then
|
|
1651 |
LIB[]NAME[]_PREFIX="$basedir"
|
|
1652 |
fi
|
|
1653 |
additional_includedir="$basedir/include"
|
|
1654 |
;;
|
893 | 1655 |
esac
|
894 | 1656 |
if test "X$additional_includedir" != "X"; then
|
895 | 1657 |
dnl Potentially add $additional_includedir to $INCNAME.
|
|
940 | 1702 |
for dep in $dependency_libs; do
|
941 | 1703 |
case "$dep" in
|
942 | 1704 |
-L*)
|
943 | |
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
|
944 | |
dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
|
|
1705 |
dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
|
|
1706 |
dnl Potentially add $dependency_libdir to $LIBNAME and $LTLIBNAME.
|
945 | 1707 |
dnl But don't add it
|
946 | 1708 |
dnl 1. if it's the standard /usr/lib,
|
947 | 1709 |
dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
|
948 | 1710 |
dnl 3. if it's already present in $LDFLAGS or the already
|
949 | 1711 |
dnl constructed $LIBNAME,
|
950 | 1712 |
dnl 4. if it doesn't exist as a directory.
|
951 | |
if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
|
952 | |
&& test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
|
|
1713 |
if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
|
|
1714 |
&& test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
|
|
1715 |
&& test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
|
953 | 1716 |
haveit=
|
954 | |
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
|
955 | |
|| test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
|
|
1717 |
if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
|
|
1718 |
|| test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
|
|
1719 |
|| test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
|
956 | 1720 |
if test -n "$GCC"; then
|
957 | 1721 |
case $host_os in
|
958 | 1722 |
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
|
|
963 | 1727 |
haveit=
|
964 | 1728 |
for x in $LDFLAGS $LIB[]NAME; do
|
965 | 1729 |
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
|
966 | |
if test "X$x" = "X-L$additional_libdir"; then
|
|
1730 |
if test "X$x" = "X-L$dependency_libdir"; then
|
967 | 1731 |
haveit=yes
|
968 | 1732 |
break
|
969 | 1733 |
fi
|
970 | 1734 |
done
|
971 | 1735 |
if test -z "$haveit"; then
|
972 | |
if test -d "$additional_libdir"; then
|
973 | |
dnl Really add $additional_libdir to $LIBNAME.
|
974 | |
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
|
|
1736 |
if test -d "$dependency_libdir"; then
|
|
1737 |
dnl Really add $dependency_libdir to $LIBNAME.
|
|
1738 |
LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$dependency_libdir"
|
975 | 1739 |
fi
|
976 | 1740 |
fi
|
977 | 1741 |
haveit=
|
978 | 1742 |
for x in $LDFLAGS $LTLIB[]NAME; do
|
979 | 1743 |
AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
|
980 | |
if test "X$x" = "X-L$additional_libdir"; then
|
|
1744 |
if test "X$x" = "X-L$dependency_libdir"; then
|
981 | 1745 |
haveit=yes
|
982 | 1746 |
break
|
983 | 1747 |
fi
|
984 | 1748 |
done
|
985 | 1749 |
if test -z "$haveit"; then
|
986 | |
if test -d "$additional_libdir"; then
|
987 | |
dnl Really add $additional_libdir to $LTLIBNAME.
|
988 | |
LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
|
|
1750 |
if test -d "$dependency_libdir"; then
|
|
1751 |
dnl Really add $dependency_libdir to $LTLIBNAME.
|
|
1752 |
LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$dependency_libdir"
|
989 | 1753 |
fi
|
990 | 1754 |
fi
|
991 | 1755 |
fi
|
|
1083 | 1847 |
LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
|
1084 | 1848 |
done
|
1085 | 1849 |
fi
|
1086 | |
popdef([P_A_C_K])
|
1087 | 1850 |
popdef([PACKLIBS])
|
1088 | 1851 |
popdef([PACKUP])
|
1089 | 1852 |
popdef([PACK])
|
|
1134 | 1897 |
dir="$next"
|
1135 | 1898 |
dnl No need to hardcode the standard /usr/lib.
|
1136 | 1899 |
if test "X$dir" != "X/usr/$acl_libdirstem" \
|
1137 | |
&& test "X$dir" != "X/usr/$acl_libdirstem2"; then
|
|
1900 |
&& test "X$dir" != "X/usr/$acl_libdirstem2" \
|
|
1901 |
&& test "X$dir" != "X/usr/$acl_libdirstem3"; then
|
1138 | 1902 |
rpathdirs="$rpathdirs $dir"
|
1139 | 1903 |
fi
|
1140 | 1904 |
next=
|
|
1144 | 1908 |
-L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
|
1145 | 1909 |
dnl No need to hardcode the standard /usr/lib.
|
1146 | 1910 |
if test "X$dir" != "X/usr/$acl_libdirstem" \
|
1147 | |
&& test "X$dir" != "X/usr/$acl_libdirstem2"; then
|
|
1911 |
&& test "X$dir" != "X/usr/$acl_libdirstem2" \
|
|
1912 |
&& test "X$dir" != "X/usr/$acl_libdirstem3"; then
|
1148 | 1913 |
rpathdirs="$rpathdirs $dir"
|
1149 | 1914 |
fi
|
1150 | 1915 |
next= ;;
|
|
1189 | 1954 |
AC_SUBST([$1])
|
1190 | 1955 |
])
|
1191 | 1956 |
|
1192 | |
# lib-prefix.m4 serial 7 (gettext-0.18)
|
1193 | |
dnl Copyright (C) 2001-2005, 2008-2016 Free Software Foundation, Inc.
|
|
1957 |
# lib-prefix.m4 serial 17
|
|
1958 |
dnl Copyright (C) 2001-2005, 2008-2020 Free Software Foundation, Inc.
|
1194 | 1959 |
dnl This file is free software; the Free Software Foundation
|
1195 | 1960 |
dnl gives unlimited permission to copy and/or distribute it,
|
1196 | 1961 |
dnl with or without modifications, as long as this notice is preserved.
|
1197 | 1962 |
|
1198 | 1963 |
dnl From Bruno Haible.
|
1199 | |
|
1200 | |
dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
|
1201 | |
dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
|
1202 | |
dnl require excessive bracketing.
|
1203 | |
ifdef([AC_HELP_STRING],
|
1204 | |
[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
|
1205 | |
[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
|
1206 | 1964 |
|
1207 | 1965 |
dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
|
1208 | 1966 |
dnl to access previously installed libraries. The basic assumption is that
|
|
1223 | 1981 |
eval additional_includedir=\"$includedir\"
|
1224 | 1982 |
eval additional_libdir=\"$libdir\"
|
1225 | 1983 |
])
|
1226 | |
AC_LIB_ARG_WITH([lib-prefix],
|
1227 | |
[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
|
1228 | |
--without-lib-prefix don't search for libraries in includedir and libdir],
|
|
1984 |
AC_ARG_WITH([lib-prefix],
|
|
1985 |
[[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
|
|
1986 |
--without-lib-prefix don't search for libraries in includedir and libdir]],
|
1229 | 1987 |
[
|
1230 | 1988 |
if test "X$withval" = "Xno"; then
|
1231 | 1989 |
use_additional=no
|
|
1345 | 2103 |
])
|
1346 | 2104 |
|
1347 | 2105 |
dnl AC_LIB_PREPARE_MULTILIB creates
|
1348 | |
dnl - a variable acl_libdirstem, containing the basename of the libdir, either
|
1349 | |
dnl "lib" or "lib64" or "lib/64",
|
1350 | |
dnl - a variable acl_libdirstem2, as a secondary possible value for
|
1351 | |
dnl acl_libdirstem, either the same as acl_libdirstem or "lib/sparcv9" or
|
1352 | |
dnl "lib/amd64".
|
|
2106 |
dnl - a function acl_is_expected_elfclass, that tests whether standard input
|
|
2107 |
dn; has a 32-bit or 64-bit ELF header, depending on the host CPU ABI,
|
|
2108 |
dnl - 3 variables acl_libdirstem, acl_libdirstem2, acl_libdirstem3, containing
|
|
2109 |
dnl the basename of the libdir to try in turn, either "lib" or "lib64" or
|
|
2110 |
dnl "lib/64" or "lib32" or "lib/sparcv9" or "lib/amd64" or similar.
|
1353 | 2111 |
AC_DEFUN([AC_LIB_PREPARE_MULTILIB],
|
1354 | 2112 |
[
|
1355 | |
dnl There is no formal standard regarding lib and lib64.
|
1356 | |
dnl On glibc systems, the current practice is that on a system supporting
|
|
2113 |
dnl There is no formal standard regarding lib, lib32, and lib64.
|
|
2114 |
dnl On most glibc systems, the current practice is that on a system supporting
|
1357 | 2115 |
dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
|
1358 | |
dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. We determine
|
1359 | |
dnl the compiler's default mode by looking at the compiler's library search
|
1360 | |
dnl path. If at least one of its elements ends in /lib64 or points to a
|
1361 | |
dnl directory whose absolute pathname ends in /lib64, we assume a 64-bit ABI.
|
1362 | |
dnl Otherwise we use the default, namely "lib".
|
|
2116 |
dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. However, on
|
|
2117 |
dnl Arch Linux based distributions, it's the opposite: 32-bit libraries go
|
|
2118 |
dnl under $prefix/lib32 and 64-bit libraries go under $prefix/lib.
|
|
2119 |
dnl We determine the compiler's default mode by looking at the compiler's
|
|
2120 |
dnl library search path. If at least one of its elements ends in /lib64 or
|
|
2121 |
dnl points to a directory whose absolute pathname ends in /lib64, we use that
|
|
2122 |
dnl for 64-bit ABIs. Similarly for 32-bit ABIs. Otherwise we use the default,
|
|
2123 |
dnl namely "lib".
|
1363 | 2124 |
dnl On Solaris systems, the current practice is that on a system supporting
|
1364 | 2125 |
dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
|
1365 | 2126 |
dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or
|
1366 | 2127 |
dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib.
|
1367 | 2128 |
AC_REQUIRE([AC_CANONICAL_HOST])
|
1368 | |
acl_libdirstem=lib
|
1369 | |
acl_libdirstem2=
|
1370 | |
case "$host_os" in
|
1371 | |
solaris*)
|
1372 | |
dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment
|
1373 | |
dnl <http://docs.sun.com/app/docs/doc/816-5138/dev-env?l=en&a=view>.
|
1374 | |
dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link."
|
1375 | |
dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the
|
1376 | |
dnl symlink is missing, so we set acl_libdirstem2 too.
|
1377 | |
AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit],
|
1378 | |
[AC_EGREP_CPP([sixtyfour bits], [
|
1379 | |
#ifdef _LP64
|
1380 | |
sixtyfour bits
|
1381 | |
#endif
|
1382 | |
], [gl_cv_solaris_64bit=yes], [gl_cv_solaris_64bit=no])
|
1383 | |
])
|
1384 | |
if test $gl_cv_solaris_64bit = yes; then
|
1385 | |
acl_libdirstem=lib/64
|
1386 | |
case "$host_cpu" in
|
1387 | |
sparc*) acl_libdirstem2=lib/sparcv9 ;;
|
1388 | |
i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
|
1389 | |
esac
|
1390 | |
fi
|
1391 | |
;;
|
1392 | |
*)
|
1393 | |
searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
|
1394 | |
if test -n "$searchpath"; then
|
1395 | |
acl_save_IFS="${IFS= }"; IFS=":"
|
1396 | |
for searchdir in $searchpath; do
|
1397 | |
if test -d "$searchdir"; then
|
1398 | |
case "$searchdir" in
|
1399 | |
*/lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
|
1400 | |
*/../ | */.. )
|
1401 | |
# Better ignore directories of this form. They are misleading.
|
1402 | |
;;
|
1403 | |
*) searchdir=`cd "$searchdir" && pwd`
|
1404 | |
case "$searchdir" in
|
1405 | |
*/lib64 ) acl_libdirstem=lib64 ;;
|
1406 | |
esac ;;
|
1407 | |
esac
|
1408 | |
fi
|
1409 | |
done
|
1410 | |
IFS="$acl_save_IFS"
|
1411 | |
fi
|
1412 | |
;;
|
1413 | |
esac
|
1414 | |
test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
|
|
2129 |
AC_REQUIRE([gl_HOST_CPU_C_ABI_32BIT])
|
|
2130 |
|
|
2131 |
AC_CACHE_CHECK([for ELF binary format], [gl_cv_elf],
|
|
2132 |
[AC_EGREP_CPP([Extensible Linking Format],
|
|
2133 |
[#ifdef __ELF__
|
|
2134 |
Extensible Linking Format
|
|
2135 |
#endif
|
|
2136 |
],
|
|
2137 |
[gl_cv_elf=yes],
|
|
2138 |
[gl_cv_elf=no])
|
|
2139 |
])
|
|
2140 |
if test $gl_cv_elf; then
|
|
2141 |
# Extract the ELF class of a file (5th byte) in decimal.
|
|
2142 |
# Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
|
|
2143 |
if od -A x < /dev/null >/dev/null 2>/dev/null; then
|
|
2144 |
# Use POSIX od.
|
|
2145 |
func_elfclass ()
|
|
2146 |
{
|
|
2147 |
od -A n -t d1 -j 4 -N 1
|
|
2148 |
}
|
|
2149 |
else
|
|
2150 |
# Use BSD hexdump.
|
|
2151 |
func_elfclass ()
|
|
2152 |
{
|
|
2153 |
dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
|
|
2154 |
echo
|
|
2155 |
}
|
|
2156 |
fi
|
|
2157 |
changequote(,)dnl
|
|
2158 |
case $HOST_CPU_C_ABI_32BIT in
|
|
2159 |
yes)
|
|
2160 |
# 32-bit ABI.
|
|
2161 |
acl_is_expected_elfclass ()
|
|
2162 |
{
|
|
2163 |
test "`func_elfclass | sed -e 's/[ ]//g'`" = 1
|
|
2164 |
}
|
|
2165 |
;;
|
|
2166 |
no)
|
|
2167 |
# 64-bit ABI.
|
|
2168 |
acl_is_expected_elfclass ()
|
|
2169 |
{
|
|
2170 |
test "`func_elfclass | sed -e 's/[ ]//g'`" = 2
|
|
2171 |
}
|
|
2172 |
;;
|
|
2173 |
*)
|
|
2174 |
# Unknown.
|
|
2175 |
acl_is_expected_elfclass ()
|
|
2176 |
{
|
|
2177 |
:
|
|
2178 |
}
|
|
2179 |
;;
|
|
2180 |
esac
|
|
2181 |
changequote([,])dnl
|
|
2182 |
else
|
|
2183 |
acl_is_expected_elfclass ()
|
|
2184 |
{
|
|
2185 |
:
|
|
2186 |
}
|
|
2187 |
fi
|
|
2188 |
|
|
2189 |
dnl Allow the user to override the result by setting acl_cv_libdirstems.
|
|
2190 |
AC_CACHE_CHECK([for the common suffixes of directories in the library search path],
|
|
2191 |
[acl_cv_libdirstems],
|
|
2192 |
[dnl Try 'lib' first, because that's the default for libdir in GNU, see
|
|
2193 |
dnl <https://www.gnu.org/prep/standards/html_node/Directory-Variables.html>.
|
|
2194 |
acl_libdirstem=lib
|
|
2195 |
acl_libdirstem2=
|
|
2196 |
acl_libdirstem3=
|
|
2197 |
case "$host_os" in
|
|
2198 |
solaris*)
|
|
2199 |
dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment
|
|
2200 |
dnl <https://docs.oracle.com/cd/E19253-01/816-5138/dev-env/index.html>.
|
|
2201 |
dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link."
|
|
2202 |
dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the
|
|
2203 |
dnl symlink is missing, so we set acl_libdirstem2 too.
|
|
2204 |
if test $HOST_CPU_C_ABI_32BIT = no; then
|
|
2205 |
acl_libdirstem2=lib/64
|
|
2206 |
case "$host_cpu" in
|
|
2207 |
sparc*) acl_libdirstem3=lib/sparcv9 ;;
|
|
2208 |
i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
|
|
2209 |
esac
|
|
2210 |
fi
|
|
2211 |
;;
|
|
2212 |
*)
|
|
2213 |
dnl If $CC generates code for a 32-bit ABI, the libraries are
|
|
2214 |
dnl surely under $prefix/lib or $prefix/lib32, not $prefix/lib64.
|
|
2215 |
dnl Similarly, if $CC generates code for a 64-bit ABI, the libraries
|
|
2216 |
dnl are surely under $prefix/lib or $prefix/lib64, not $prefix/lib32.
|
|
2217 |
dnl Find the compiler's search path. However, non-system compilers
|
|
2218 |
dnl sometimes have odd library search paths. But we can't simply invoke
|
|
2219 |
dnl '/usr/bin/gcc -print-search-dirs' because that would not take into
|
|
2220 |
dnl account the -m32/-m31 or -m64 options from the $CC or $CFLAGS.
|
|
2221 |
searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
|
|
2222 |
| sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
|
|
2223 |
if test $HOST_CPU_C_ABI_32BIT != no; then
|
|
2224 |
# 32-bit or unknown ABI.
|
|
2225 |
if test -d /usr/lib32; then
|
|
2226 |
acl_libdirstem2=lib32
|
|
2227 |
fi
|
|
2228 |
fi
|
|
2229 |
if test $HOST_CPU_C_ABI_32BIT != yes; then
|
|
2230 |
# 64-bit or unknown ABI.
|
|
2231 |
if test -d /usr/lib64; then
|
|
2232 |
acl_libdirstem3=lib64
|
|
2233 |
fi
|
|
2234 |
fi
|
|
2235 |
if test -n "$searchpath"; then
|
|
2236 |
acl_save_IFS="${IFS= }"; IFS=":"
|
|
2237 |
for searchdir in $searchpath; do
|
|
2238 |
if test -d "$searchdir"; then
|
|
2239 |
case "$searchdir" in
|
|
2240 |
*/lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
|
|
2241 |
*/lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
|
|
2242 |
*/../ | */.. )
|
|
2243 |
# Better ignore directories of this form. They are misleading.
|
|
2244 |
;;
|
|
2245 |
*) searchdir=`cd "$searchdir" && pwd`
|
|
2246 |
case "$searchdir" in
|
|
2247 |
*/lib32 ) acl_libdirstem2=lib32 ;;
|
|
2248 |
*/lib64 ) acl_libdirstem3=lib64 ;;
|
|
2249 |
esac ;;
|
|
2250 |
esac
|
|
2251 |
fi
|
|
2252 |
done
|
|
2253 |
IFS="$acl_save_IFS"
|
|
2254 |
if test $HOST_CPU_C_ABI_32BIT = yes; then
|
|
2255 |
# 32-bit ABI.
|
|
2256 |
acl_libdirstem3=
|
|
2257 |
fi
|
|
2258 |
if test $HOST_CPU_C_ABI_32BIT = no; then
|
|
2259 |
# 64-bit ABI.
|
|
2260 |
acl_libdirstem2=
|
|
2261 |
fi
|
|
2262 |
fi
|
|
2263 |
;;
|
|
2264 |
esac
|
|
2265 |
test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
|
|
2266 |
test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
|
|
2267 |
acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
|
|
2268 |
])
|
|
2269 |
dnl Decompose acl_cv_libdirstems into acl_libdirstem, acl_libdirstem2, and
|
|
2270 |
dnl acl_libdirstem3.
|
|
2271 |
changequote(,)dnl
|
|
2272 |
acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
|
|
2273 |
acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
|
|
2274 |
acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
|
|
2275 |
changequote([,])dnl
|
1415 | 2276 |
])
|
1416 | 2277 |
|
1417 | |
# Copyright (C) 2002-2018 Free Software Foundation, Inc.
|
|
2278 |
# Copyright (C) 2002-2020 Free Software Foundation, Inc.
|
1418 | 2279 |
#
|
1419 | 2280 |
# This file is free software; the Free Software Foundation
|
1420 | 2281 |
# gives unlimited permission to copy and/or distribute it,
|
|
1429 | 2290 |
[am__api_version='1.16'
|
1430 | 2291 |
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
|
1431 | 2292 |
dnl require some minimum version. Point them to the right macro.
|
1432 | |
m4_if([$1], [1.16.1], [],
|
|
2293 |
m4_if([$1], [1.16.3], [],
|
1433 | 2294 |
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
|
1434 | 2295 |
])
|
1435 | 2296 |
|
|
1445 | 2306 |
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
|
1446 | 2307 |
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
|
1447 | 2308 |
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
|
1448 | |
[AM_AUTOMAKE_VERSION([1.16.1])dnl
|
|
2309 |
[AM_AUTOMAKE_VERSION([1.16.3])dnl
|
1449 | 2310 |
m4_ifndef([AC_AUTOCONF_VERSION],
|
1450 | 2311 |
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
|
1451 | 2312 |
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
|
1452 | 2313 |
|
1453 | 2314 |
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
|
1454 | 2315 |
|
1455 | |
# Copyright (C) 2001-2018 Free Software Foundation, Inc.
|
|
2316 |
# Copyright (C) 2001-2020 Free Software Foundation, Inc.
|
1456 | 2317 |
#
|
1457 | 2318 |
# This file is free software; the Free Software Foundation
|
1458 | 2319 |
# gives unlimited permission to copy and/or distribute it,
|
|
1504 | 2365 |
|
1505 | 2366 |
# AM_CONDITIONAL -*- Autoconf -*-
|
1506 | 2367 |
|
1507 | |
# Copyright (C) 1997-2018 Free Software Foundation, Inc.
|
|
2368 |
# Copyright (C) 1997-2020 Free Software Foundation, Inc.
|
1508 | 2369 |
#
|
1509 | 2370 |
# This file is free software; the Free Software Foundation
|
1510 | 2371 |
# gives unlimited permission to copy and/or distribute it,
|
|
1535 | 2396 |
Usually this means the macro was only invoked conditionally.]])
|
1536 | 2397 |
fi])])
|
1537 | 2398 |
|
1538 | |
# Copyright (C) 1999-2018 Free Software Foundation, Inc.
|
|
2399 |
# Copyright (C) 1999-2020 Free Software Foundation, Inc.
|
1539 | 2400 |
#
|
1540 | 2401 |
# This file is free software; the Free Software Foundation
|
1541 | 2402 |
# gives unlimited permission to copy and/or distribute it,
|
|
1726 | 2587 |
|
1727 | 2588 |
# Generate code to set up dependency tracking. -*- Autoconf -*-
|
1728 | 2589 |
|
1729 | |
# Copyright (C) 1999-2018 Free Software Foundation, Inc.
|
|
2590 |
# Copyright (C) 1999-2020 Free Software Foundation, Inc.
|
1730 | 2591 |
#
|
1731 | 2592 |
# This file is free software; the Free Software Foundation
|
1732 | 2593 |
# gives unlimited permission to copy and/or distribute it,
|
|
1765 | 2626 |
done
|
1766 | 2627 |
if test $am_rc -ne 0; then
|
1767 | 2628 |
AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
|
1768 | |
for automatic dependency tracking. Try re-running configure with the
|
|
2629 |
for automatic dependency tracking. If GNU make was not used, consider
|
|
2630 |
re-running the configure script with MAKE="gmake" (or whatever is
|
|
2631 |
necessary). You can also try re-running configure with the
|
1769 | 2632 |
'--disable-dependency-tracking' option to at least be able to build
|
1770 | 2633 |
the package (albeit without support for automatic dependency tracking).])
|
1771 | 2634 |
fi
|
|
1792 | 2655 |
|
1793 | 2656 |
# Do all the work for Automake. -*- Autoconf -*-
|
1794 | 2657 |
|
1795 | |
# Copyright (C) 1996-2018 Free Software Foundation, Inc.
|
|
2658 |
# Copyright (C) 1996-2020 Free Software Foundation, Inc.
|
1796 | 2659 |
#
|
1797 | 2660 |
# This file is free software; the Free Software Foundation
|
1798 | 2661 |
# gives unlimited permission to copy and/or distribute it,
|
|
1989 | 2852 |
done
|
1990 | 2853 |
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
|
1991 | 2854 |
|
1992 | |
# Copyright (C) 2001-2018 Free Software Foundation, Inc.
|
|
2855 |
# Copyright (C) 2001-2020 Free Software Foundation, Inc.
|
1993 | 2856 |
#
|
1994 | 2857 |
# This file is free software; the Free Software Foundation
|
1995 | 2858 |
# gives unlimited permission to copy and/or distribute it,
|
|
2010 | 2873 |
fi
|
2011 | 2874 |
AC_SUBST([install_sh])])
|
2012 | 2875 |
|
2013 | |
# Copyright (C) 2003-2018 Free Software Foundation, Inc.
|
|
2876 |
# Copyright (C) 2003-2020 Free Software Foundation, Inc.
|
2014 | 2877 |
#
|
2015 | 2878 |
# This file is free software; the Free Software Foundation
|
2016 | 2879 |
# gives unlimited permission to copy and/or distribute it,
|
|
2031 | 2894 |
|
2032 | 2895 |
# Check to see how 'make' treats includes. -*- Autoconf -*-
|
2033 | 2896 |
|
2034 | |
# Copyright (C) 2001-2018 Free Software Foundation, Inc.
|
|
2897 |
# Copyright (C) 2001-2020 Free Software Foundation, Inc.
|
2035 | 2898 |
#
|
2036 | 2899 |
# This file is free software; the Free Software Foundation
|
2037 | 2900 |
# gives unlimited permission to copy and/or distribute it,
|
|
2074 | 2937 |
|
2075 | 2938 |
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
|
2076 | 2939 |
|
2077 | |
# Copyright (C) 1997-2018 Free Software Foundation, Inc.
|
|
2940 |
# Copyright (C) 1997-2020 Free Software Foundation, Inc.
|
2078 | 2941 |
#
|
2079 | 2942 |
# This file is free software; the Free Software Foundation
|
2080 | 2943 |
# gives unlimited permission to copy and/or distribute it,
|
|
2095 | 2958 |
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
|
2096 | 2959 |
AC_REQUIRE_AUX_FILE([missing])dnl
|
2097 | 2960 |
if test x"${MISSING+set}" != xset; then
|
2098 | |
case $am_aux_dir in
|
2099 | |
*\ * | *\ *)
|
2100 | |
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
|
2101 | |
*)
|
2102 | |
MISSING="\${SHELL} $am_aux_dir/missing" ;;
|
2103 | |
esac
|
|
2961 |
MISSING="\${SHELL} '$am_aux_dir/missing'"
|
2104 | 2962 |
fi
|
2105 | 2963 |
# Use eval to expand $SHELL
|
2106 | 2964 |
if eval "$MISSING --is-lightweight"; then
|
|
2113 | 2971 |
|
2114 | 2972 |
# Helper functions for option handling. -*- Autoconf -*-
|
2115 | 2973 |
|
2116 | |
# Copyright (C) 2001-2018 Free Software Foundation, Inc.
|
|
2974 |
# Copyright (C) 2001-2020 Free Software Foundation, Inc.
|
2117 | 2975 |
#
|
2118 | 2976 |
# This file is free software; the Free Software Foundation
|
2119 | 2977 |
# gives unlimited permission to copy and/or distribute it,
|
|
2142 | 3000 |
AC_DEFUN([_AM_IF_OPTION],
|
2143 | 3001 |
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
|
2144 | 3002 |
|
2145 | |
# Copyright (C) 1999-2018 Free Software Foundation, Inc.
|
|
3003 |
# Copyright (C) 1999-2020 Free Software Foundation, Inc.
|
2146 | 3004 |
#
|
2147 | 3005 |
# This file is free software; the Free Software Foundation
|
2148 | 3006 |
# gives unlimited permission to copy and/or distribute it,
|
|
2189 | 3047 |
# For backward compatibility.
|
2190 | 3048 |
AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
|
2191 | 3049 |
|
2192 | |
# Copyright (C) 2001-2018 Free Software Foundation, Inc.
|
|
3050 |
# Copyright (C) 2001-2020 Free Software Foundation, Inc.
|
2193 | 3051 |
#
|
2194 | 3052 |
# This file is free software; the Free Software Foundation
|
2195 | 3053 |
# gives unlimited permission to copy and/or distribute it,
|
|
2208 | 3066 |
|
2209 | 3067 |
# Check to make sure that the build environment is sane. -*- Autoconf -*-
|
2210 | 3068 |
|
2211 | |
# Copyright (C) 1996-2018 Free Software Foundation, Inc.
|
|
3069 |
# Copyright (C) 1996-2020 Free Software Foundation, Inc.
|
2212 | 3070 |
#
|
2213 | 3071 |
# This file is free software; the Free Software Foundation
|
2214 | 3072 |
# gives unlimited permission to copy and/or distribute it,
|
|
2289 | 3147 |
rm -f conftest.file
|
2290 | 3148 |
])
|
2291 | 3149 |
|
2292 | |
# Copyright (C) 2009-2018 Free Software Foundation, Inc.
|
|
3150 |
# Copyright (C) 2009-2020 Free Software Foundation, Inc.
|
2293 | 3151 |
#
|
2294 | 3152 |
# This file is free software; the Free Software Foundation
|
2295 | 3153 |
# gives unlimited permission to copy and/or distribute it,
|
|
2349 | 3207 |
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
|
2350 | 3208 |
])
|
2351 | 3209 |
|
2352 | |
# Copyright (C) 2001-2018 Free Software Foundation, Inc.
|
|
3210 |
# Copyright (C) 2001-2020 Free Software Foundation, Inc.
|
2353 | 3211 |
#
|
2354 | 3212 |
# This file is free software; the Free Software Foundation
|
2355 | 3213 |
# gives unlimited permission to copy and/or distribute it,
|
|
2377 | 3235 |
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
|
2378 | 3236 |
AC_SUBST([INSTALL_STRIP_PROGRAM])])
|
2379 | 3237 |
|
2380 | |
# Copyright (C) 2006-2018 Free Software Foundation, Inc.
|
|
3238 |
# Copyright (C) 2006-2020 Free Software Foundation, Inc.
|
2381 | 3239 |
#
|
2382 | 3240 |
# This file is free software; the Free Software Foundation
|
2383 | 3241 |
# gives unlimited permission to copy and/or distribute it,
|
|
2396 | 3254 |
|
2397 | 3255 |
# Check how to create a tarball. -*- Autoconf -*-
|
2398 | 3256 |
|
2399 | |
# Copyright (C) 2004-2018 Free Software Foundation, Inc.
|
|
3257 |
# Copyright (C) 2004-2020 Free Software Foundation, Inc.
|
2400 | 3258 |
#
|
2401 | 3259 |
# This file is free software; the Free Software Foundation
|
2402 | 3260 |
# gives unlimited permission to copy and/or distribute it,
|