Codebase list dosfstools / 6ae324f
Import upstream version 4.2+git20210919.1.ac4aa79 Debian Janitor 2 years ago
23 changed file(s) with 4875 addition(s) and 2526 deletion(s). Raw diff Collapse all Expand all
0 # Makefile.in generated by automake 1.16.1 from Makefile.am.
0 # Makefile.in generated by automake 1.16.4 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2018 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
180180 unique=`for i in $$list; do \
181181 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
182182 done | $(am__uniquify_input)`
183 ETAGS = etags
184 CTAGS = ctags
185 CSCOPE = cscope
186183 DIST_SUBDIRS = $(SUBDIRS)
187184 am__DIST_COMMON = $(srcdir)/Makefile.in COPYING ChangeLog NEWS README \
188185 compile config.guess config.rpath config.sub install-sh \
225222 DIST_ARCHIVES = $(distdir).tar.gz
226223 GZIP_ENV = --best
227224 DIST_TARGETS = dist-gzip
225 # Exists only to be overridden by the user if desired.
226 AM_DISTCHECK_DVI_TARGET = dvi
228227 distuninstallcheck_listfiles = find . -type f -print
229228 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
230229 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
242241 CHECKATARI = @CHECKATARI@
243242 CPP = @CPP@
244243 CPPFLAGS = @CPPFLAGS@
244 CSCOPE = @CSCOPE@
245 CTAGS = @CTAGS@
245246 CYGPATH_W = @CYGPATH_W@
246247 DEFS = @DEFS@
247248 DEPDIR = @DEPDIR@
249250 ECHO_N = @ECHO_N@
250251 ECHO_T = @ECHO_T@
251252 EGREP = @EGREP@
253 ETAGS = @ETAGS@
252254 EXEEXT = @EXEEXT@
253255 GREP = @GREP@
254256 INSTALL = @INSTALL@
506508 distclean-tags:
507509 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
508510 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
509
510511 distdir: $(BUILT_SOURCES)
511512 $(MAKE) $(AM_MAKEFLAGS) distdir-am
512513
590591 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
591592 $(am__post_remove_distdir)
592593
594 dist-zstd: distdir
595 tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst
596 $(am__post_remove_distdir)
597
593598 dist-tarZ: distdir
594599 @echo WARNING: "Support for distribution archives compressed with" \
595600 "legacy program 'compress' is deprecated." >&2
632637 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
633638 *.zip*) \
634639 unzip $(distdir).zip ;;\
640 *.tar.zst*) \
641 zstd -dc $(distdir).tar.zst | $(am__untar) ;;\
635642 esac
636643 chmod -R a-w $(distdir)
637644 chmod u+w $(distdir)
647654 $(DISTCHECK_CONFIGURE_FLAGS) \
648655 --srcdir=../.. --prefix="$$dc_install_base" \
649656 && $(MAKE) $(AM_MAKEFLAGS) \
650 && $(MAKE) $(AM_MAKEFLAGS) dvi \
657 && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \
651658 && $(MAKE) $(AM_MAKEFLAGS) check \
652659 && $(MAKE) $(AM_MAKEFLAGS) install \
653660 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
811818 am--refresh check check-am clean clean-cscope clean-generic \
812819 cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \
813820 dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \
814 distcheck distclean distclean-generic distclean-tags \
821 dist-zstd distcheck distclean distclean-generic distclean-tags \
815822 distcleancheck distdir distuninstallcheck dvi dvi-am html \
816823 html-am info info-am install install-am install-data \
817824 install-data-am install-dist_docDATA install-dvi \
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.4 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
33
44 # This file is free software; the Free Software Foundation
55 # gives unlimited permission to copy and/or distribute it,
1313 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
1414 m4_ifndef([AC_AUTOCONF_VERSION],
1515 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
17 [m4_warning([this file was generated for autoconf 2.69.
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.71],,
17 [m4_warning([this file was generated for autoconf 2.71.
1818 You have another version of autoconf. It may work, but is not guaranteed to.
1919 If you have problems, you may need to regenerate the build system entirely.
2020 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
2121
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.
24701 dnl This file is free software; the Free Software Foundation
25702 dnl gives unlimited permission to copy and/or distribute it,
26703 dnl with or without modifications, as long as this notice is preserved.
188865 #endif
189866 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
190867 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 }
200889 return result;
201890 ]])],
202891 [am_cv_func_iconv_works=yes], ,
279968 am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
280969 AC_MSG_RESULT([
281970 $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=""
291975 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 ])
292985 ])
293986
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.
296989 dnl This file is free software; the Free Software Foundation
297990 dnl gives unlimited permission to copy and/or distribute it,
298991 dnl with or without modifications, as long as this notice is preserved.
3401033 }
3411034 fi
3421035
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
3461039 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
3741040 elif test "$with_gnu_ld" = yes; then
3751041 AC_MSG_CHECKING([for GNU ld])
3761042 else
3771043 AC_MSG_CHECKING([for non-GNU ld])
3781044 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 ;;
3971082 esac
3981083 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
4051147 if test -n "$LD"; then
4061148 AC_MSG_RESULT([$LD])
4071149 else
4081150 AC_MSG_RESULT([no])
1151 AC_MSG_ERROR([no acceptable ld found in \$PATH])
4091152 fi
410 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
4111153 AC_LIB_PROG_LD_GNU
4121154 ])
4131155
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.
4161158 dnl This file is free software; the Free Software Foundation
4171159 dnl gives unlimited permission to copy and/or distribute it,
4181160 dnl with or without modifications, as long as this notice is preserved.
4191161
4201162 dnl From Bruno Haible.
4211163
422 AC_PREREQ([2.54])
1164 AC_PREREQ([2.61])
4231165
4241166 dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
4251167 dnl the libraries corresponding to explicit and implicit dependencies.
5371279 dnl acl_hardcode_minus_L.
5381280 AC_DEFUN([AC_LIB_RPATH],
5391281 [
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])
5421284 AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
5431285 AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
5441286 AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
6001342 pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-],
6011343 [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])])
6021344 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)])
6051345 dnl By default, look in $includedir and $libdir.
6061346 use_additional=yes
6071347 AC_LIB_WITH_FINAL_PREFIX([
6081348 eval additional_includedir=\"$includedir\"
6091349 eval additional_libdir=\"$libdir\"
1350 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
1351 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
6101352 ])
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]],
6141356 [
6151357 if test "X$withval" = "Xno"; then
6161358 use_additional=no
6191361 AC_LIB_WITH_FINAL_PREFIX([
6201362 eval additional_includedir=\"$includedir\"
6211363 eval additional_libdir=\"$libdir\"
1364 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
1365 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
6221366 ])
6231367 else
6241368 additional_includedir="$withval/include"
6251369 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"
6301372 fi
6311373 fi
6321374 ])
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
6331381 dnl Search the library and its dependencies in $additional_libdir and
6341382 dnl $LDFLAGS. Using breadth-first-seach.
6351383 LIB[]NAME=
6851433 shrext=
6861434 fi
6871435 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:
7371441 dnl First look for a shared library.
7381442 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
7401444 found_dir="$dir"
7411445 found_so="$dir/$libname$shrext"
7421446 else
7461450 | sed -e "s,^$libname$shrext\\\\.,," \
7471451 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7481452 | 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
7501454 found_dir="$dir"
7511455 found_so="$dir/$libname$shrext.$ver"
7521456 fi
7531457 else
7541458 eval library_names=\"$acl_library_names_spec\"
7551459 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
7571461 found_dir="$dir"
7581462 found_so="$dir/$f"
7591463 break
7641468 fi
7651469 dnl Then look for a static library.
7661470 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
7681522 found_dir="$dir"
7691523 found_a="$dir/$libname.$acl_libext"
7701524 fi
7901544 dnl standard /usr/lib.
7911545 if test "$enable_rpath" = no \
7921546 || 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
7941549 dnl No hardcoding is needed.
7951550 LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
7961551 else
8901645 fi
8911646 additional_includedir="$basedir/include"
8921647 ;;
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 ;;
8931655 esac
8941656 if test "X$additional_includedir" != "X"; then
8951657 dnl Potentially add $additional_includedir to $INCNAME.
9401702 for dep in $dependency_libs; do
9411703 case "$dep" in
9421704 -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.
9451707 dnl But don't add it
9461708 dnl 1. if it's the standard /usr/lib,
9471709 dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
9481710 dnl 3. if it's already present in $LDFLAGS or the already
9491711 dnl constructed $LIBNAME,
9501712 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
9531716 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
9561720 if test -n "$GCC"; then
9571721 case $host_os in
9581722 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9631727 haveit=
9641728 for x in $LDFLAGS $LIB[]NAME; do
9651729 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
9671731 haveit=yes
9681732 break
9691733 fi
9701734 done
9711735 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"
9751739 fi
9761740 fi
9771741 haveit=
9781742 for x in $LDFLAGS $LTLIB[]NAME; do
9791743 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
9811745 haveit=yes
9821746 break
9831747 fi
9841748 done
9851749 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"
9891753 fi
9901754 fi
9911755 fi
10831847 LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
10841848 done
10851849 fi
1086 popdef([P_A_C_K])
10871850 popdef([PACKLIBS])
10881851 popdef([PACKUP])
10891852 popdef([PACK])
11341897 dir="$next"
11351898 dnl No need to hardcode the standard /usr/lib.
11361899 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
11381902 rpathdirs="$rpathdirs $dir"
11391903 fi
11401904 next=
11441908 -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
11451909 dnl No need to hardcode the standard /usr/lib.
11461910 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
11481913 rpathdirs="$rpathdirs $dir"
11491914 fi
11501915 next= ;;
11891954 AC_SUBST([$1])
11901955 ])
11911956
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.
11941959 dnl This file is free software; the Free Software Foundation
11951960 dnl gives unlimited permission to copy and/or distribute it,
11961961 dnl with or without modifications, as long as this notice is preserved.
11971962
11981963 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])])])
12061964
12071965 dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
12081966 dnl to access previously installed libraries. The basic assumption is that
12231981 eval additional_includedir=\"$includedir\"
12241982 eval additional_libdir=\"$libdir\"
12251983 ])
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]],
12291987 [
12301988 if test "X$withval" = "Xno"; then
12311989 use_additional=no
13452103 ])
13462104
13472105 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.
13532111 AC_DEFUN([AC_LIB_PREPARE_MULTILIB],
13542112 [
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
13572115 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".
13632124 dnl On Solaris systems, the current practice is that on a system supporting
13642125 dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under
13652126 dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or
13662127 dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib.
13672128 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
14152276 ])
14162277
1417 # Copyright (C) 2002-2018 Free Software Foundation, Inc.
2278 # Copyright (C) 2002-2021 Free Software Foundation, Inc.
14182279 #
14192280 # This file is free software; the Free Software Foundation
14202281 # gives unlimited permission to copy and/or distribute it,
14292290 [am__api_version='1.16'
14302291 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
14312292 dnl require some minimum version. Point them to the right macro.
1432 m4_if([$1], [1.16.1], [],
2293 m4_if([$1], [1.16.4], [],
14332294 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
14342295 ])
14352296
14452306 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
14462307 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
14472308 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
1448 [AM_AUTOMAKE_VERSION([1.16.1])dnl
2309 [AM_AUTOMAKE_VERSION([1.16.4])dnl
14492310 m4_ifndef([AC_AUTOCONF_VERSION],
14502311 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
14512312 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
14522313
14532314 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
14542315
1455 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
2316 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
14562317 #
14572318 # This file is free software; the Free Software Foundation
14582319 # gives unlimited permission to copy and/or distribute it,
15042365
15052366 # AM_CONDITIONAL -*- Autoconf -*-
15062367
1507 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
2368 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
15082369 #
15092370 # This file is free software; the Free Software Foundation
15102371 # gives unlimited permission to copy and/or distribute it,
15352396 Usually this means the macro was only invoked conditionally.]])
15362397 fi])])
15372398
1538 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
2399 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
15392400 #
15402401 # This file is free software; the Free Software Foundation
15412402 # gives unlimited permission to copy and/or distribute it,
17262587
17272588 # Generate code to set up dependency tracking. -*- Autoconf -*-
17282589
1729 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
2590 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
17302591 #
17312592 # This file is free software; the Free Software Foundation
17322593 # gives unlimited permission to copy and/or distribute it,
17652626 done
17662627 if test $am_rc -ne 0; then
17672628 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
17692632 '--disable-dependency-tracking' option to at least be able to build
17702633 the package (albeit without support for automatic dependency tracking).])
17712634 fi
17922655
17932656 # Do all the work for Automake. -*- Autoconf -*-
17942657
1795 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
2658 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
17962659 #
17972660 # This file is free software; the Free Software Foundation
17982661 # gives unlimited permission to copy and/or distribute it,
18562719 [_AM_SET_OPTIONS([$1])dnl
18572720 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
18582721 m4_if(
1859 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
2722 m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]),
18602723 [ok:ok],,
18612724 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
18622725 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
19082771 [m4_define([AC_PROG_OBJCXX],
19092772 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
19102773 ])
2774 # Variables for tags utilities; see am/tags.am
2775 if test -z "$CTAGS"; then
2776 CTAGS=ctags
2777 fi
2778 AC_SUBST([CTAGS])
2779 if test -z "$ETAGS"; then
2780 ETAGS=etags
2781 fi
2782 AC_SUBST([ETAGS])
2783 if test -z "$CSCOPE"; then
2784 CSCOPE=cscope
2785 fi
2786 AC_SUBST([CSCOPE])
2787
19112788 AC_REQUIRE([AM_SILENT_RULES])dnl
19122789 dnl The testsuite driver may need to know about EXEEXT, so add the
19132790 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
19892866 done
19902867 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
19912868
1992 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
2869 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
19932870 #
19942871 # This file is free software; the Free Software Foundation
19952872 # gives unlimited permission to copy and/or distribute it,
20102887 fi
20112888 AC_SUBST([install_sh])])
20122889
2013 # Copyright (C) 2003-2018 Free Software Foundation, Inc.
2890 # Copyright (C) 2003-2021 Free Software Foundation, Inc.
20142891 #
20152892 # This file is free software; the Free Software Foundation
20162893 # gives unlimited permission to copy and/or distribute it,
20312908
20322909 # Check to see how 'make' treats includes. -*- Autoconf -*-
20332910
2034 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
2911 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
20352912 #
20362913 # This file is free software; the Free Software Foundation
20372914 # gives unlimited permission to copy and/or distribute it,
20742951
20752952 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
20762953
2077 # Copyright (C) 1997-2018 Free Software Foundation, Inc.
2954 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
20782955 #
20792956 # This file is free software; the Free Software Foundation
20802957 # gives unlimited permission to copy and/or distribute it,
20952972 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
20962973 AC_REQUIRE_AUX_FILE([missing])dnl
20972974 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
2975 MISSING="\${SHELL} '$am_aux_dir/missing'"
21042976 fi
21052977 # Use eval to expand $SHELL
21062978 if eval "$MISSING --is-lightweight"; then
21132985
21142986 # Helper functions for option handling. -*- Autoconf -*-
21152987
2116 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
2988 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
21172989 #
21182990 # This file is free software; the Free Software Foundation
21192991 # gives unlimited permission to copy and/or distribute it,
21423014 AC_DEFUN([_AM_IF_OPTION],
21433015 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
21443016
2145 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
3017 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
21463018 #
21473019 # This file is free software; the Free Software Foundation
21483020 # gives unlimited permission to copy and/or distribute it,
21893061 # For backward compatibility.
21903062 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
21913063
2192 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
3064 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
21933065 #
21943066 # This file is free software; the Free Software Foundation
21953067 # gives unlimited permission to copy and/or distribute it,
22083080
22093081 # Check to make sure that the build environment is sane. -*- Autoconf -*-
22103082
2211 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
3083 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
22123084 #
22133085 # This file is free software; the Free Software Foundation
22143086 # gives unlimited permission to copy and/or distribute it,
22893161 rm -f conftest.file
22903162 ])
22913163
2292 # Copyright (C) 2009-2018 Free Software Foundation, Inc.
3164 # Copyright (C) 2009-2021 Free Software Foundation, Inc.
22933165 #
22943166 # This file is free software; the Free Software Foundation
22953167 # gives unlimited permission to copy and/or distribute it,
23493221 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
23503222 ])
23513223
2352 # Copyright (C) 2001-2018 Free Software Foundation, Inc.
3224 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
23533225 #
23543226 # This file is free software; the Free Software Foundation
23553227 # gives unlimited permission to copy and/or distribute it,
23773249 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
23783250 AC_SUBST([INSTALL_STRIP_PROGRAM])])
23793251
2380 # Copyright (C) 2006-2018 Free Software Foundation, Inc.
3252 # Copyright (C) 2006-2021 Free Software Foundation, Inc.
23813253 #
23823254 # This file is free software; the Free Software Foundation
23833255 # gives unlimited permission to copy and/or distribute it,
23963268
23973269 # Check how to create a tarball. -*- Autoconf -*-
23983270
2399 # Copyright (C) 2004-2018 Free Software Foundation, Inc.
3271 # Copyright (C) 2004-2021 Free Software Foundation, Inc.
24003272 #
24013273 # This file is free software; the Free Software Foundation
24023274 # gives unlimited permission to copy and/or distribute it,
22
33 scriptversion=2018-03-07.03; # UTC
44
5 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
5 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
66 # Written by Tom Tromey <tromey@cygnus.com>.
77 #
88 # This program is free software; you can redistribute it and/or modify
5252 MINGW*)
5353 file_conv=mingw
5454 ;;
55 CYGWIN*)
55 CYGWIN* | MSYS*)
5656 file_conv=cygwin
5757 ;;
5858 *)
6666 mingw/*)
6767 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
6868 ;;
69 cygwin/*)
69 cygwin/* | msys/*)
7070 file=`cygpath -m "$file" || echo "$file"`
7171 ;;
7272 wine/*)
11 # Output a system dependent set of variables, describing how to set the
22 # run time search path of shared libraries in an executable.
33 #
4 # Copyright 1996-2016 Free Software Foundation, Inc.
4 # Copyright 1996-2020 Free Software Foundation, Inc.
55 # Taken from GNU libtool, 2001
66 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
77 #
+3496
-2113
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for dosfstools 4.2.
2 # Generated by GNU Autoconf 2.71 for dosfstools 4.2+git.
33 #
44 #
5 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
5 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
6 # Inc.
67 #
78 #
89 # This configure script is free software; the Free Software Foundation
1314
1415 # Be more Bourne compatible
1516 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17 as_nop=:
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
1720 emulate sh
1821 NULLCMD=:
1922 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2023 # is contrary to our usage. Disable this feature.
2124 alias -g '${1+"$@"}'='"$@"'
2225 setopt NO_GLOB_SUBST
23 else
26 else $as_nop
2427 case `(set -o) 2>/dev/null` in #(
2528 *posix*) :
2629 set -o posix ;; #(
3033 fi
3134
3235
36
37 # Reset variables that may have inherited troublesome values from
38 # the environment.
39
40 # IFS needs to be set, to space, tab, and newline, in precisely that order.
41 # (If _AS_PATH_WALK were called with IFS unset, it would have the
42 # side effect of setting IFS to empty, thus disabling word splitting.)
43 # Quoting is to prevent editors from complaining about space-tab.
3344 as_nl='
3445 '
3546 export as_nl
36 # Printing a long string crashes Solaris 7 /usr/bin/printf.
37 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
38 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
40 # Prefer a ksh shell builtin over an external printf program on Solaris,
41 # but without wasting forks for bash or zsh.
42 if test -z "$BASH_VERSION$ZSH_VERSION" \
43 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
44 as_echo='print -r --'
45 as_echo_n='print -rn --'
46 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='printf %s\n'
48 as_echo_n='printf %s'
49 else
50 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
51 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
52 as_echo_n='/usr/ucb/echo -n'
53 else
54 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
55 as_echo_n_body='eval
56 arg=$1;
57 case $arg in #(
58 *"$as_nl"*)
59 expr "X$arg" : "X\\(.*\\)$as_nl";
60 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
61 esac;
62 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
63 '
64 export as_echo_n_body
65 as_echo_n='sh -c $as_echo_n_body as_echo'
66 fi
67 export as_echo_body
68 as_echo='sh -c $as_echo_body as_echo'
69 fi
47 IFS=" "" $as_nl"
48
49 PS1='$ '
50 PS2='> '
51 PS4='+ '
52
53 # Ensure predictable behavior from utilities with locale-dependent output.
54 LC_ALL=C
55 export LC_ALL
56 LANGUAGE=C
57 export LANGUAGE
58
59 # We cannot yet rely on "unset" to work, but we need these variables
60 # to be unset--not just set to an empty or harmless value--now, to
61 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
62 # also avoids known problems related to "unset" and subshell syntax
63 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
64 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
65 do eval test \${$as_var+y} \
66 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
67 done
68
69 # Ensure that fds 0, 1, and 2 are open.
70 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
71 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
72 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
7073
7174 # The user is always right.
72 if test "${PATH_SEPARATOR+set}" != set; then
75 if ${PATH_SEPARATOR+false} :; then
7376 PATH_SEPARATOR=:
7477 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7578 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7780 }
7881 fi
7982
80
81 # IFS
82 # We need space, tab and new line, in precisely that order. Quoting is
83 # there to prevent editors from complaining about space-tab.
84 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
85 # splitting by setting IFS to empty value.)
86 IFS=" "" $as_nl"
8783
8884 # Find who we are. Look in the path if we contain no directory separator.
8985 as_myself=
9389 for as_dir in $PATH
9490 do
9591 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
92 case $as_dir in #(((
93 '') as_dir=./ ;;
94 */) ;;
95 *) as_dir=$as_dir/ ;;
96 esac
97 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
9898 done
9999 IFS=$as_save_IFS
100100
106106 as_myself=$0
107107 fi
108108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
109 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110110 exit 1
111111 fi
112112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133113
134114 # Use a proper internal environment variable to ensure we don't fall
135115 # into an infinite loop, continuously re-executing ourselves.
151131 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
152132 # Admittedly, this is quite paranoid, since all the known shells bail
153133 # out after a failed `exec'.
154 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
155 as_fn_exit 255
134 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
135 exit 255
156136 fi
157137 # We don't want this to propagate to other subprocesses.
158138 { _as_can_reexec=; unset _as_can_reexec;}
159139 if test "x$CONFIG_SHELL" = x; then
160 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 as_bourne_compatible="as_nop=:
141 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
161143 emulate sh
162144 NULLCMD=:
163145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
164146 # is contrary to our usage. Disable this feature.
165147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
166148 setopt NO_GLOB_SUBST
167 else
149 else \$as_nop
168150 case \`(set -o) 2>/dev/null\` in #(
169151 *posix*) :
170152 set -o posix ;; #(
184166 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
185167 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
186168 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
187 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
188
189 else
169 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
170 then :
171
172 else \$as_nop
190173 exitcode=1; echo positional parameters were not saved.
191174 fi
192175 test x\$exitcode = x0 || exit 1
176 blah=\$(echo \$(echo blah))
177 test x\"\$blah\" = xblah || exit 1
193178 test -x / || exit 1"
194179 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
195180 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
196181 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
197182 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
198183 test \$(( 1 + 1 )) = 2 || exit 1"
199 if (eval "$as_required") 2>/dev/null; then :
184 if (eval "$as_required") 2>/dev/null
185 then :
200186 as_have_required=yes
201 else
187 else $as_nop
202188 as_have_required=no
203189 fi
204 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
205
206 else
190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
191 then :
192
193 else $as_nop
207194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
208195 as_found=false
209196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
210197 do
211198 IFS=$as_save_IFS
212 test -z "$as_dir" && as_dir=.
199 case $as_dir in #(((
200 '') as_dir=./ ;;
201 */) ;;
202 *) as_dir=$as_dir/ ;;
203 esac
213204 as_found=:
214205 case $as_dir in #(
215206 /*)
216207 for as_base in sh bash ksh sh5; do
217208 # Try only shells that exist, to save several forks.
218 as_shell=$as_dir/$as_base
209 as_shell=$as_dir$as_base
219210 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
211 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
212 then :
221213 CONFIG_SHELL=$as_shell as_have_required=yes
222 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
214 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
215 then :
223216 break 2
224217 fi
225218 fi
227220 esac
228221 as_found=false
229222 done
230 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
223 IFS=$as_save_IFS
224 if $as_found
225 then :
226
227 else $as_nop
228 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
229 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
230 then :
232231 CONFIG_SHELL=$SHELL as_have_required=yes
233 fi; }
234 IFS=$as_save_IFS
235
236
237 if test "x$CONFIG_SHELL" != x; then :
232 fi
233 fi
234
235
236 if test "x$CONFIG_SHELL" != x
237 then :
238238 export CONFIG_SHELL
239239 # We cannot yet assume a decent shell, so we have to provide a
240240 # neutralization value for shells without unset; and this also
252252 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
253253 # Admittedly, this is quite paranoid, since all the known shells bail
254254 # out after a failed `exec'.
255 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
255 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
256256 exit 255
257257 fi
258258
259 if test x$as_have_required = xno; then :
260 $as_echo "$0: This script requires a shell more modern than all"
261 $as_echo "$0: the shells that I found on your system."
262 if test x${ZSH_VERSION+set} = xset ; then
263 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
264 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
259 if test x$as_have_required = xno
260 then :
261 printf "%s\n" "$0: This script requires a shell more modern than all"
262 printf "%s\n" "$0: the shells that I found on your system."
263 if test ${ZSH_VERSION+y} ; then
264 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
265266 else
266 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
267 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
267268 $0: including any error possibly output before this
268269 $0: message. Then install a modern shell, or manually run
269270 $0: the script under such a shell if you do have one."
290291 }
291292 as_unset=as_fn_unset
292293
294
293295 # as_fn_set_status STATUS
294296 # -----------------------
295297 # Set $? to STATUS, without forking.
307309 as_fn_set_status $1
308310 exit $1
309311 } # as_fn_exit
312 # as_fn_nop
313 # ---------
314 # Do nothing but, unlike ":", preserve the value of $?.
315 as_fn_nop ()
316 {
317 return $?
318 }
319 as_nop=as_fn_nop
310320
311321 # as_fn_mkdir_p
312322 # -------------
321331 as_dirs=
322332 while :; do
323333 case $as_dir in #(
324 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
325335 *) as_qdir=$as_dir;;
326336 esac
327337 as_dirs="'$as_qdir' $as_dirs"
330340 X"$as_dir" : 'X\(//\)[^/]' \| \
331341 X"$as_dir" : 'X\(//\)$' \| \
332342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
333 $as_echo X"$as_dir" |
343 printf "%s\n" X"$as_dir" |
334344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335345 s//\1/
336346 q
369379 # advantage of any shell optimizations that allow amortized linear growth over
370380 # repeated appends, instead of the typical quadratic growth present in naive
371381 # implementations.
372 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
383 then :
373384 eval 'as_fn_append ()
374385 {
375386 eval $1+=\$2
376387 }'
377 else
388 else $as_nop
378389 as_fn_append ()
379390 {
380391 eval $1=\$$1\$2
386397 # Perform arithmetic evaluation on the ARGs, and store the result in the
387398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
388399 # must be portable across $(()) and expr.
389 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
401 then :
390402 eval 'as_fn_arith ()
391403 {
392404 as_val=$(( $* ))
393405 }'
394 else
406 else $as_nop
395407 as_fn_arith ()
396408 {
397409 as_val=`expr "$@" || test $? -eq 1`
398410 }
399411 fi # as_fn_arith
400412
413 # as_fn_nop
414 # ---------
415 # Do nothing but, unlike ":", preserve the value of $?.
416 as_fn_nop ()
417 {
418 return $?
419 }
420 as_nop=as_fn_nop
401421
402422 # as_fn_error STATUS ERROR [LINENO LOG_FD]
403423 # ----------------------------------------
409429 as_status=$1; test $as_status -eq 0 && as_status=1
410430 if test "$4"; then
411431 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
412 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
413433 fi
414 $as_echo "$as_me: error: $2" >&2
434 printf "%s\n" "$as_me: error: $2" >&2
415435 as_fn_exit $as_status
416436 } # as_fn_error
417437
438458 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
439459 X"$0" : 'X\(//\)$' \| \
440460 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
441 $as_echo X/"$0" |
461 printf "%s\n" X/"$0" |
442462 sed '/^.*\/\([^/][^/]*\)\/*$/{
443463 s//\1/
444464 q
482502 s/-\n.*//
483503 ' >$as_me.lineno &&
484504 chmod +x "$as_me.lineno" ||
485 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
505 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
486506
487507 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
488508 # already done that, so ensure we don't try to do so again and fall
496516 exit
497517 }
498518
519
520 # Determine whether it's possible to make 'echo' print without a newline.
521 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
522 # for compatibility with existing Makefiles.
499523 ECHO_C= ECHO_N= ECHO_T=
500524 case `echo -n x` in #(((((
501525 -n*)
508532 *)
509533 ECHO_N='-n';;
510534 esac
535
536 # For backward compatibility with old third-party macros, we provide
537 # the shell variables $as_echo and $as_echo_n. New code should use
538 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
539 as_echo='printf %s\n'
540 as_echo_n='printf %s'
541
511542
512543 rm -f conf$$ conf$$.exe conf$$.file
513544 if test -d conf$$.dir; then
576607 # Identity of this package.
577608 PACKAGE_NAME='dosfstools'
578609 PACKAGE_TARNAME='dosfstools'
579 PACKAGE_VERSION='4.2'
580 PACKAGE_STRING='dosfstools 4.2'
610 PACKAGE_VERSION='4.2+git'
611 PACKAGE_STRING='dosfstools 4.2+git'
581612 PACKAGE_BUGREPORT=''
582613 PACKAGE_URL=''
583614
584615 # Factoring default headers for most tests.
585616 ac_includes_default="\
586 #include <stdio.h>
587 #ifdef HAVE_SYS_TYPES_H
588 # include <sys/types.h>
617 #include <stddef.h>
618 #ifdef HAVE_STDIO_H
619 # include <stdio.h>
589620 #endif
590 #ifdef HAVE_SYS_STAT_H
591 # include <sys/stat.h>
592 #endif
593 #ifdef STDC_HEADERS
621 #ifdef HAVE_STDLIB_H
594622 # include <stdlib.h>
595 # include <stddef.h>
596 #else
597 # ifdef HAVE_STDLIB_H
598 # include <stdlib.h>
599 # endif
600623 #endif
601624 #ifdef HAVE_STRING_H
602 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 # include <memory.h>
604 # endif
605625 # include <string.h>
606 #endif
607 #ifdef HAVE_STRINGS_H
608 # include <strings.h>
609626 #endif
610627 #ifdef HAVE_INTTYPES_H
611628 # include <inttypes.h>
613630 #ifdef HAVE_STDINT_H
614631 # include <stdint.h>
615632 #endif
633 #ifdef HAVE_STRINGS_H
634 # include <strings.h>
635 #endif
636 #ifdef HAVE_SYS_TYPES_H
637 # include <sys/types.h>
638 #endif
639 #ifdef HAVE_SYS_STAT_H
640 # include <sys/stat.h>
641 #endif
616642 #ifdef HAVE_UNISTD_H
617643 # include <unistd.h>
618644 #endif"
619645
646 ac_header_c_list=
620647 ac_subst_vars='am__EXEEXT_FALSE
621648 am__EXEEXT_TRUE
622649 LTLIBOBJS
626653 XXD_FOUND
627654 LTLIBICONV
628655 LIBICONV
656 EGREP
657 GREP
658 CPP
629659 host_os
630660 host_vendor
631661 host_cpu
635665 build_cpu
636666 build
637667 LN_S
638 EGREP
639 GREP
640 CPP
641668 am__fastdepCC_FALSE
642669 am__fastdepCC_TRUE
643670 CCDEPMODE
661688 AM_DEFAULT_VERBOSITY
662689 AM_DEFAULT_V
663690 AM_V
691 CSCOPE
692 ETAGS
693 CTAGS
664694 am__untar
665695 am__tar
666696 AMTAR
815845 *) ac_optarg=yes ;;
816846 esac
817847
818 # Accept the important Cygnus configure options, so we can diagnose typos.
819
820848 case $ac_dashdash$ac_option in
821849 --)
822850 ac_dashdash=yes ;;
857885 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
858886 # Reject names that are not valid shell variable names.
859887 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
860 as_fn_error $? "invalid feature name: $ac_useropt"
888 as_fn_error $? "invalid feature name: \`$ac_useropt'"
861889 ac_useropt_orig=$ac_useropt
862 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
863891 case $ac_user_opts in
864892 *"
865893 "enable_$ac_useropt"
883911 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
884912 # Reject names that are not valid shell variable names.
885913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
886 as_fn_error $? "invalid feature name: $ac_useropt"
914 as_fn_error $? "invalid feature name: \`$ac_useropt'"
887915 ac_useropt_orig=$ac_useropt
888 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
889917 case $ac_user_opts in
890918 *"
891919 "enable_$ac_useropt"
10961124 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10971125 # Reject names that are not valid shell variable names.
10981126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error $? "invalid package name: $ac_useropt"
1127 as_fn_error $? "invalid package name: \`$ac_useropt'"
11001128 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
11021130 case $ac_user_opts in
11031131 *"
11041132 "with_$ac_useropt"
11121140 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
11131141 # Reject names that are not valid shell variable names.
11141142 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error $? "invalid package name: $ac_useropt"
1143 as_fn_error $? "invalid package name: \`$ac_useropt'"
11161144 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
11181146 case $ac_user_opts in
11191147 *"
11201148 "with_$ac_useropt"
11581186
11591187 *)
11601188 # FIXME: should be removed in autoconf 3.0.
1161 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1189 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
11621190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1163 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1191 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
11641192 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
11651193 ;;
11661194
11761204 case $enable_option_checking in
11771205 no) ;;
11781206 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1179 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1207 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
11801208 esac
11811209 fi
11821210
12401268 X"$as_myself" : 'X\(//\)[^/]' \| \
12411269 X"$as_myself" : 'X\(//\)$' \| \
12421270 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1243 $as_echo X"$as_myself" |
1271 printf "%s\n" X"$as_myself" |
12441272 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12451273 s//\1/
12461274 q
12971325 # Omit some internal or obsolete options to make the list less imposing.
12981326 # This message is too long to be a string in the A/UX 3.1 sh.
12991327 cat <<_ACEOF
1300 \`configure' configures dosfstools 4.2 to adapt to many kinds of systems.
1328 \`configure' configures dosfstools 4.2+git to adapt to many kinds of systems.
13011329
13021330 Usage: $0 [OPTION]... [VAR=VALUE]...
13031331
13681396
13691397 if test -n "$ac_init_help"; then
13701398 case $ac_init_help in
1371 short | recursive ) echo "Configuration of dosfstools 4.2:";;
1399 short | recursive ) echo "Configuration of dosfstools 4.2+git:";;
13721400 esac
13731401 cat <<\_ACEOF
13741402
14271455 case "$ac_dir" in
14281456 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14291457 *)
1430 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1458 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
14311459 # A ".." for each directory in $ac_dir_suffix.
1432 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1460 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14331461 case $ac_top_builddir_sub in
14341462 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14351463 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14571485 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14581486
14591487 cd "$ac_dir" || { ac_status=$?; continue; }
1460 # Check for guested configure.
1488 # Check for configure.gnu first; this name is used for a wrapper for
1489 # Metaconfig's "Configure" on case-insensitive file systems.
14611490 if test -f "$ac_srcdir/configure.gnu"; then
14621491 echo &&
14631492 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
14651494 echo &&
14661495 $SHELL "$ac_srcdir/configure" --help=recursive
14671496 else
1468 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1497 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
14691498 fi || ac_status=$?
14701499 cd "$ac_pwd" || { ac_status=$?; break; }
14711500 done
14741503 test -n "$ac_init_help" && exit $ac_status
14751504 if $ac_init_version; then
14761505 cat <<\_ACEOF
1477 dosfstools configure 4.2
1478 generated by GNU Autoconf 2.69
1479
1480 Copyright (C) 2012 Free Software Foundation, Inc.
1506 dosfstools configure 4.2+git
1507 generated by GNU Autoconf 2.71
1508
1509 Copyright (C) 2021 Free Software Foundation, Inc.
14811510 This configure script is free software; the Free Software Foundation
14821511 gives unlimited permission to copy, distribute and modify it.
14831512 _ACEOF
14941523 ac_fn_c_try_compile ()
14951524 {
14961525 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1497 rm -f conftest.$ac_objext
1526 rm -f conftest.$ac_objext conftest.beam
14981527 if { { ac_try="$ac_compile"
14991528 case "(($ac_try" in
15001529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15011530 *) ac_try_echo=$ac_try;;
15021531 esac
15031532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1504 $as_echo "$ac_try_echo"; } >&5
1533 printf "%s\n" "$ac_try_echo"; } >&5
15051534 (eval "$ac_compile") 2>conftest.err
15061535 ac_status=$?
15071536 if test -s conftest.err; then
15091538 cat conftest.er1 >&5
15101539 mv -f conftest.er1 conftest.err
15111540 fi
1512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1541 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15131542 test $ac_status = 0; } && {
15141543 test -z "$ac_c_werror_flag" ||
15151544 test ! -s conftest.err
1516 } && test -s conftest.$ac_objext; then :
1545 } && test -s conftest.$ac_objext
1546 then :
15171547 ac_retval=0
1518 else
1519 $as_echo "$as_me: failed program was:" >&5
1548 else $as_nop
1549 printf "%s\n" "$as_me: failed program was:" >&5
15201550 sed 's/^/| /' conftest.$ac_ext >&5
15211551
15221552 ac_retval=1
15251555 as_fn_set_status $ac_retval
15261556
15271557 } # ac_fn_c_try_compile
1528
1529 # ac_fn_c_try_cpp LINENO
1530 # ----------------------
1531 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1532 ac_fn_c_try_cpp ()
1533 {
1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535 if { { ac_try="$ac_cpp conftest.$ac_ext"
1536 case "(($ac_try" in
1537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538 *) ac_try_echo=$ac_try;;
1539 esac
1540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541 $as_echo "$ac_try_echo"; } >&5
1542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1543 ac_status=$?
1544 if test -s conftest.err; then
1545 grep -v '^ *+' conftest.err >conftest.er1
1546 cat conftest.er1 >&5
1547 mv -f conftest.er1 conftest.err
1548 fi
1549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550 test $ac_status = 0; } > conftest.i && {
1551 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1552 test ! -s conftest.err
1553 }; then :
1554 ac_retval=0
1555 else
1556 $as_echo "$as_me: failed program was:" >&5
1557 sed 's/^/| /' conftest.$ac_ext >&5
1558
1559 ac_retval=1
1560 fi
1561 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1562 as_fn_set_status $ac_retval
1563
1564 } # ac_fn_c_try_cpp
1565
1566 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1567 # -------------------------------------------------------
1568 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1569 # the include files in INCLUDES and setting the cache variable VAR
1570 # accordingly.
1571 ac_fn_c_check_header_mongrel ()
1572 {
1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574 if eval \${$3+:} false; then :
1575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1576 $as_echo_n "checking for $2... " >&6; }
1577 if eval \${$3+:} false; then :
1578 $as_echo_n "(cached) " >&6
1579 fi
1580 eval ac_res=\$$3
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1582 $as_echo "$ac_res" >&6; }
1583 else
1584 # Is the header compilable?
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1586 $as_echo_n "checking $2 usability... " >&6; }
1587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1588 /* end confdefs.h. */
1589 $4
1590 #include <$2>
1591 _ACEOF
1592 if ac_fn_c_try_compile "$LINENO"; then :
1593 ac_header_compiler=yes
1594 else
1595 ac_header_compiler=no
1596 fi
1597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1599 $as_echo "$ac_header_compiler" >&6; }
1600
1601 # Is the header present?
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1603 $as_echo_n "checking $2 presence... " >&6; }
1604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1605 /* end confdefs.h. */
1606 #include <$2>
1607 _ACEOF
1608 if ac_fn_c_try_cpp "$LINENO"; then :
1609 ac_header_preproc=yes
1610 else
1611 ac_header_preproc=no
1612 fi
1613 rm -f conftest.err conftest.i conftest.$ac_ext
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1615 $as_echo "$ac_header_preproc" >&6; }
1616
1617 # So? What about this header?
1618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1619 yes:no: )
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1621 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1623 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1624 ;;
1625 no:yes:* )
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1627 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1629 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1631 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1633 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1635 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1636 ;;
1637 esac
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1639 $as_echo_n "checking for $2... " >&6; }
1640 if eval \${$3+:} false; then :
1641 $as_echo_n "(cached) " >&6
1642 else
1643 eval "$3=\$ac_header_compiler"
1644 fi
1645 eval ac_res=\$$3
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1647 $as_echo "$ac_res" >&6; }
1648 fi
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650
1651 } # ac_fn_c_check_header_mongrel
1652
1653 # ac_fn_c_try_run LINENO
1654 # ----------------------
1655 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1656 # that executables *can* be run.
1657 ac_fn_c_try_run ()
1658 {
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 if { { ac_try="$ac_link"
1661 case "(($ac_try" in
1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663 *) ac_try_echo=$ac_try;;
1664 esac
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 $as_echo "$ac_try_echo"; } >&5
1667 (eval "$ac_link") 2>&5
1668 ac_status=$?
1669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1670 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1671 { { case "(($ac_try" in
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1674 esac
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_try") 2>&5
1678 ac_status=$?
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; }; }; then :
1681 ac_retval=0
1682 else
1683 $as_echo "$as_me: program exited with status $ac_status" >&5
1684 $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1686
1687 ac_retval=$ac_status
1688 fi
1689 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691 as_fn_set_status $ac_retval
1692
1693 } # ac_fn_c_try_run
16941558
16951559 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
16961560 # -------------------------------------------------------
16991563 ac_fn_c_check_header_compile ()
17001564 {
17011565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703 $as_echo_n "checking for $2... " >&6; }
1704 if eval \${$3+:} false; then :
1705 $as_echo_n "(cached) " >&6
1706 else
1566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1567 printf %s "checking for $2... " >&6; }
1568 if eval test \${$3+y}
1569 then :
1570 printf %s "(cached) " >&6
1571 else $as_nop
17071572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17081573 /* end confdefs.h. */
17091574 $4
17101575 #include <$2>
17111576 _ACEOF
1712 if ac_fn_c_try_compile "$LINENO"; then :
1577 if ac_fn_c_try_compile "$LINENO"
1578 then :
17131579 eval "$3=yes"
1714 else
1580 else $as_nop
17151581 eval "$3=no"
17161582 fi
1717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17181584 fi
17191585 eval ac_res=\$$3
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1721 $as_echo "$ac_res" >&6; }
1586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1587 printf "%s\n" "$ac_res" >&6; }
17221588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
17231589
17241590 } # ac_fn_c_check_header_compile
17291595 ac_fn_c_try_link ()
17301596 {
17311597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 rm -f conftest.$ac_objext conftest$ac_exeext
1598 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
17331599 if { { ac_try="$ac_link"
17341600 case "(($ac_try" in
17351601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17361602 *) ac_try_echo=$ac_try;;
17371603 esac
17381604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1605 printf "%s\n" "$ac_try_echo"; } >&5
17401606 (eval "$ac_link") 2>conftest.err
17411607 ac_status=$?
17421608 if test -s conftest.err; then
17441610 cat conftest.er1 >&5
17451611 mv -f conftest.er1 conftest.err
17461612 fi
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17481614 test $ac_status = 0; } && {
17491615 test -z "$ac_c_werror_flag" ||
17501616 test ! -s conftest.err
17511617 } && test -s conftest$ac_exeext && {
17521618 test "$cross_compiling" = yes ||
17531619 test -x conftest$ac_exeext
1754 }; then :
1620 }
1621 then :
17551622 ac_retval=0
1756 else
1757 $as_echo "$as_me: failed program was:" >&5
1623 else $as_nop
1624 printf "%s\n" "$as_me: failed program was:" >&5
17581625 sed 's/^/| /' conftest.$ac_ext >&5
17591626
17601627 ac_retval=1
17751642 ac_fn_c_check_func ()
17761643 {
17771644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779 $as_echo_n "checking for $2... " >&6; }
1780 if eval \${$3+:} false; then :
1781 $as_echo_n "(cached) " >&6
1782 else
1645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1646 printf %s "checking for $2... " >&6; }
1647 if eval test \${$3+y}
1648 then :
1649 printf %s "(cached) " >&6
1650 else $as_nop
17831651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17841652 /* end confdefs.h. */
17851653 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
17871655 #define $2 innocuous_$2
17881656
17891657 /* System header to define __stub macros and hopefully few prototypes,
1790 which can conflict with char $2 (); below.
1791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1792 <limits.h> exists even on freestanding compilers. */
1793
1794 #ifdef __STDC__
1795 # include <limits.h>
1796 #else
1797 # include <assert.h>
1798 #endif
1799
1658 which can conflict with char $2 (); below. */
1659
1660 #include <limits.h>
18001661 #undef $2
18011662
18021663 /* Override any GCC internal prototype to avoid an error.
18141675 #endif
18151676
18161677 int
1817 main ()
1678 main (void)
18181679 {
18191680 return $2 ();
18201681 ;
18211682 return 0;
18221683 }
18231684 _ACEOF
1824 if ac_fn_c_try_link "$LINENO"; then :
1685 if ac_fn_c_try_link "$LINENO"
1686 then :
18251687 eval "$3=yes"
1826 else
1688 else $as_nop
18271689 eval "$3=no"
18281690 fi
1829 rm -f core conftest.err conftest.$ac_objext \
1691 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18301692 conftest$ac_exeext conftest.$ac_ext
18311693 fi
18321694 eval ac_res=\$$3
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1834 $as_echo "$ac_res" >&6; }
1695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1696 printf "%s\n" "$ac_res" >&6; }
18351697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18361698
18371699 } # ac_fn_c_check_func
18381700
1839 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1840 # ---------------------------------------------
1701 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1702 # ------------------------------------------------------------------
18411703 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1842 # accordingly.
1843 ac_fn_c_check_decl ()
1704 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1705 ac_fn_check_decl ()
18441706 {
18451707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18461708 as_decl_name=`echo $2|sed 's/ *(.*//'`
1709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1710 printf %s "checking whether $as_decl_name is declared... " >&6; }
1711 if eval test \${$3+y}
1712 then :
1713 printf %s "(cached) " >&6
1714 else $as_nop
18471715 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1849 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1850 if eval \${$3+:} false; then :
1851 $as_echo_n "(cached) " >&6
1852 else
1716 eval ac_save_FLAGS=\$$6
1717 as_fn_append $6 " $5"
18531718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18541719 /* end confdefs.h. */
18551720 $4
18561721 int
1857 main ()
1722 main (void)
18581723 {
18591724 #ifndef $as_decl_name
18601725 #ifdef __cplusplus
18681733 return 0;
18691734 }
18701735 _ACEOF
1871 if ac_fn_c_try_compile "$LINENO"; then :
1736 if ac_fn_c_try_compile "$LINENO"
1737 then :
18721738 eval "$3=yes"
1873 else
1739 else $as_nop
18741740 eval "$3=no"
18751741 fi
1876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1742 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1743 eval $6=\$ac_save_FLAGS
1744
18771745 fi
18781746 eval ac_res=\$$3
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880 $as_echo "$ac_res" >&6; }
1747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1748 printf "%s\n" "$ac_res" >&6; }
18811749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
18821750
1883 } # ac_fn_c_check_decl
1751 } # ac_fn_check_decl
1752
1753 # ac_fn_c_try_cpp LINENO
1754 # ----------------------
1755 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1756 ac_fn_c_try_cpp ()
1757 {
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 if { { ac_try="$ac_cpp conftest.$ac_ext"
1760 case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1763 esac
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 printf "%s\n" "$ac_try_echo"; } >&5
1766 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1767 ac_status=$?
1768 if test -s conftest.err; then
1769 grep -v '^ *+' conftest.err >conftest.er1
1770 cat conftest.er1 >&5
1771 mv -f conftest.er1 conftest.err
1772 fi
1773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; } > conftest.i && {
1775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1776 test ! -s conftest.err
1777 }
1778 then :
1779 ac_retval=0
1780 else $as_nop
1781 printf "%s\n" "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1783
1784 ac_retval=1
1785 fi
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 as_fn_set_status $ac_retval
1788
1789 } # ac_fn_c_try_cpp
1790
1791 # ac_fn_c_try_run LINENO
1792 # ----------------------
1793 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1794 # executables *can* be run.
1795 ac_fn_c_try_run ()
1796 {
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 if { { ac_try="$ac_link"
1799 case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802 esac
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 printf "%s\n" "$ac_try_echo"; } >&5
1805 (eval "$ac_link") 2>&5
1806 ac_status=$?
1807 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1809 { { case "(($ac_try" in
1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811 *) ac_try_echo=$ac_try;;
1812 esac
1813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814 printf "%s\n" "$ac_try_echo"; } >&5
1815 (eval "$ac_try") 2>&5
1816 ac_status=$?
1817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; }; }
1819 then :
1820 ac_retval=0
1821 else $as_nop
1822 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1823 printf "%s\n" "$as_me: failed program was:" >&5
1824 sed 's/^/| /' conftest.$ac_ext >&5
1825
1826 ac_retval=$ac_status
1827 fi
1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
1831
1832 } # ac_fn_c_try_run
1833 ac_configure_args_raw=
1834 for ac_arg
1835 do
1836 case $ac_arg in
1837 *\'*)
1838 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1839 esac
1840 as_fn_append ac_configure_args_raw " '$ac_arg'"
1841 done
1842
1843 case $ac_configure_args_raw in
1844 *$as_nl*)
1845 ac_safe_unquote= ;;
1846 *)
1847 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1848 ac_unsafe_a="$ac_unsafe_z#~"
1849 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1850 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1851 esac
1852
18841853 cat >config.log <<_ACEOF
18851854 This file contains any messages produced by compilers while
18861855 running configure, to aid debugging if configure makes a mistake.
18871856
1888 It was created by dosfstools $as_me 4.2, which was
1889 generated by GNU Autoconf 2.69. Invocation command line was
1890
1891 $ $0 $@
1857 It was created by dosfstools $as_me 4.2+git, which was
1858 generated by GNU Autoconf 2.71. Invocation command line was
1859
1860 $ $0$ac_configure_args_raw
18921861
18931862 _ACEOF
18941863 exec 5>>config.log
19211890 for as_dir in $PATH
19221891 do
19231892 IFS=$as_save_IFS
1924 test -z "$as_dir" && as_dir=.
1925 $as_echo "PATH: $as_dir"
1893 case $as_dir in #(((
1894 '') as_dir=./ ;;
1895 */) ;;
1896 *) as_dir=$as_dir/ ;;
1897 esac
1898 printf "%s\n" "PATH: $as_dir"
19261899 done
19271900 IFS=$as_save_IFS
19281901
19571930 | -silent | --silent | --silen | --sile | --sil)
19581931 continue ;;
19591932 *\'*)
1960 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1933 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
19611934 esac
19621935 case $ac_pass in
19631936 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
19921965 # WARNING: Use '\'' to represent an apostrophe within the trap.
19931966 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
19941967 trap 'exit_status=$?
1968 # Sanitize IFS.
1969 IFS=" "" $as_nl"
19951970 # Save into config.log some information that might help in debugging.
19961971 {
19971972 echo
19981973
1999 $as_echo "## ---------------- ##
1974 printf "%s\n" "## ---------------- ##
20001975 ## Cache variables. ##
20011976 ## ---------------- ##"
20021977 echo
20071982 case $ac_val in #(
20081983 *${as_nl}*)
20091984 case $ac_var in #(
2010 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2011 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1985 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1986 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20121987 esac
20131988 case $ac_var in #(
20141989 _ | IFS | as_nl) ;; #(
20322007 )
20332008 echo
20342009
2035 $as_echo "## ----------------- ##
2010 printf "%s\n" "## ----------------- ##
20362011 ## Output variables. ##
20372012 ## ----------------- ##"
20382013 echo
20402015 do
20412016 eval ac_val=\$$ac_var
20422017 case $ac_val in
2043 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2018 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
20442019 esac
2045 $as_echo "$ac_var='\''$ac_val'\''"
2020 printf "%s\n" "$ac_var='\''$ac_val'\''"
20462021 done | sort
20472022 echo
20482023
20492024 if test -n "$ac_subst_files"; then
2050 $as_echo "## ------------------- ##
2025 printf "%s\n" "## ------------------- ##
20512026 ## File substitutions. ##
20522027 ## ------------------- ##"
20532028 echo
20552030 do
20562031 eval ac_val=\$$ac_var
20572032 case $ac_val in
2058 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2033 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
20592034 esac
2060 $as_echo "$ac_var='\''$ac_val'\''"
2035 printf "%s\n" "$ac_var='\''$ac_val'\''"
20612036 done | sort
20622037 echo
20632038 fi
20642039
20652040 if test -s confdefs.h; then
2066 $as_echo "## ----------- ##
2041 printf "%s\n" "## ----------- ##
20672042 ## confdefs.h. ##
20682043 ## ----------- ##"
20692044 echo
20712046 echo
20722047 fi
20732048 test "$ac_signal" != 0 &&
2074 $as_echo "$as_me: caught signal $ac_signal"
2075 $as_echo "$as_me: exit $exit_status"
2049 printf "%s\n" "$as_me: caught signal $ac_signal"
2050 printf "%s\n" "$as_me: exit $exit_status"
20762051 } >&5
20772052 rm -f core *.core core.conftest.* &&
20782053 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
20862061 # confdefs.h avoids OS command line length limits that DEFS can exceed.
20872062 rm -f -r conftest* confdefs.h
20882063
2089 $as_echo "/* confdefs.h */" > confdefs.h
2064 printf "%s\n" "/* confdefs.h */" > confdefs.h
20902065
20912066 # Predefined preprocessor variables.
20922067
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_NAME "$PACKAGE_NAME"
2095 _ACEOF
2096
2097 cat >>confdefs.h <<_ACEOF
2098 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2099 _ACEOF
2100
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2103 _ACEOF
2104
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_STRING "$PACKAGE_STRING"
2107 _ACEOF
2108
2109 cat >>confdefs.h <<_ACEOF
2110 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2111 _ACEOF
2112
2113 cat >>confdefs.h <<_ACEOF
2114 #define PACKAGE_URL "$PACKAGE_URL"
2115 _ACEOF
2068 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2069
2070 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2071
2072 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2073
2074 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2075
2076 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2077
2078 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
21162079
21172080
21182081 # Let the site file select an alternate cache file if it wants to.
21192082 # Prefer an explicitly selected file to automatically selected ones.
2120 ac_site_file1=NONE
2121 ac_site_file2=NONE
21222083 if test -n "$CONFIG_SITE"; then
2123 # We do not want a PATH search for config.site.
2124 case $CONFIG_SITE in #((
2125 -*) ac_site_file1=./$CONFIG_SITE;;
2126 */*) ac_site_file1=$CONFIG_SITE;;
2127 *) ac_site_file1=./$CONFIG_SITE;;
2128 esac
2084 ac_site_files="$CONFIG_SITE"
21292085 elif test "x$prefix" != xNONE; then
2130 ac_site_file1=$prefix/share/config.site
2131 ac_site_file2=$prefix/etc/config.site
2086 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
21322087 else
2133 ac_site_file1=$ac_default_prefix/share/config.site
2134 ac_site_file2=$ac_default_prefix/etc/config.site
2135 fi
2136 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2088 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2089 fi
2090
2091 for ac_site_file in $ac_site_files
21372092 do
2138 test "x$ac_site_file" = xNONE && continue
2139 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2141 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2093 case $ac_site_file in #(
2094 */*) :
2095 ;; #(
2096 *) :
2097 ac_site_file=./$ac_site_file ;;
2098 esac
2099 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2101 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
21422102 sed 's/^/| /' "$ac_site_file" >&5
21432103 . "$ac_site_file" \
2144 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2104 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2105 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21462106 as_fn_error $? "failed to load site script $ac_site_file
21472107 See \`config.log' for more details" "$LINENO" 5; }
21482108 fi
21522112 # Some versions of bash will fail to source /dev/null (special files
21532113 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
21542114 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2156 $as_echo "$as_me: loading cache $cache_file" >&6;}
2115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2116 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
21572117 case $cache_file in
21582118 [\\/]* | ?:[\\/]* ) . "$cache_file";;
21592119 *) . "./$cache_file";;
21602120 esac
21612121 fi
21622122 else
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2164 $as_echo "$as_me: creating cache $cache_file" >&6;}
2123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2124 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
21652125 >$cache_file
2126 fi
2127
2128 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2129 # Test code for whether the C compiler supports C89 (global declarations)
2130 ac_c_conftest_c89_globals='
2131 /* Does the compiler advertise C89 conformance?
2132 Do not test the value of __STDC__, because some compilers set it to 0
2133 while being otherwise adequately conformant. */
2134 #if !defined __STDC__
2135 # error "Compiler does not advertise C89 conformance"
2136 #endif
2137
2138 #include <stddef.h>
2139 #include <stdarg.h>
2140 struct stat;
2141 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2142 struct buf { int x; };
2143 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2144 static char *e (p, i)
2145 char **p;
2146 int i;
2147 {
2148 return p[i];
2149 }
2150 static char *f (char * (*g) (char **, int), char **p, ...)
2151 {
2152 char *s;
2153 va_list v;
2154 va_start (v,p);
2155 s = g (p, va_arg (v,int));
2156 va_end (v);
2157 return s;
2158 }
2159
2160 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2161 function prototypes and stuff, but not \xHH hex character constants.
2162 These do not provoke an error unfortunately, instead are silently treated
2163 as an "x". The following induces an error, until -std is added to get
2164 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2165 array size at least. It is necessary to write \x00 == 0 to get something
2166 that is true only with -std. */
2167 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2168
2169 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2170 inside strings and character constants. */
2171 #define FOO(x) '\''x'\''
2172 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2173
2174 int test (int i, double x);
2175 struct s1 {int (*f) (int a);};
2176 struct s2 {int (*f) (double a);};
2177 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2178 int, int);'
2179
2180 # Test code for whether the C compiler supports C89 (body of main).
2181 ac_c_conftest_c89_main='
2182 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2183 '
2184
2185 # Test code for whether the C compiler supports C99 (global declarations)
2186 ac_c_conftest_c99_globals='
2187 // Does the compiler advertise C99 conformance?
2188 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2189 # error "Compiler does not advertise C99 conformance"
2190 #endif
2191
2192 #include <stdbool.h>
2193 extern int puts (const char *);
2194 extern int printf (const char *, ...);
2195 extern int dprintf (int, const char *, ...);
2196 extern void *malloc (size_t);
2197
2198 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2199 // dprintf is used instead of fprintf to avoid needing to declare
2200 // FILE and stderr.
2201 #define debug(...) dprintf (2, __VA_ARGS__)
2202 #define showlist(...) puts (#__VA_ARGS__)
2203 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2204 static void
2205 test_varargs_macros (void)
2206 {
2207 int x = 1234;
2208 int y = 5678;
2209 debug ("Flag");
2210 debug ("X = %d\n", x);
2211 showlist (The first, second, and third items.);
2212 report (x>y, "x is %d but y is %d", x, y);
2213 }
2214
2215 // Check long long types.
2216 #define BIG64 18446744073709551615ull
2217 #define BIG32 4294967295ul
2218 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2219 #if !BIG_OK
2220 #error "your preprocessor is broken"
2221 #endif
2222 #if BIG_OK
2223 #else
2224 #error "your preprocessor is broken"
2225 #endif
2226 static long long int bignum = -9223372036854775807LL;
2227 static unsigned long long int ubignum = BIG64;
2228
2229 struct incomplete_array
2230 {
2231 int datasize;
2232 double data[];
2233 };
2234
2235 struct named_init {
2236 int number;
2237 const wchar_t *name;
2238 double average;
2239 };
2240
2241 typedef const char *ccp;
2242
2243 static inline int
2244 test_restrict (ccp restrict text)
2245 {
2246 // See if C++-style comments work.
2247 // Iterate through items via the restricted pointer.
2248 // Also check for declarations in for loops.
2249 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2250 continue;
2251 return 0;
2252 }
2253
2254 // Check varargs and va_copy.
2255 static bool
2256 test_varargs (const char *format, ...)
2257 {
2258 va_list args;
2259 va_start (args, format);
2260 va_list args_copy;
2261 va_copy (args_copy, args);
2262
2263 const char *str = "";
2264 int number = 0;
2265 float fnumber = 0;
2266
2267 while (*format)
2268 {
2269 switch (*format++)
2270 {
2271 case '\''s'\'': // string
2272 str = va_arg (args_copy, const char *);
2273 break;
2274 case '\''d'\'': // int
2275 number = va_arg (args_copy, int);
2276 break;
2277 case '\''f'\'': // float
2278 fnumber = va_arg (args_copy, double);
2279 break;
2280 default:
2281 break;
2282 }
2283 }
2284 va_end (args_copy);
2285 va_end (args);
2286
2287 return *str && number && fnumber;
2288 }
2289 '
2290
2291 # Test code for whether the C compiler supports C99 (body of main).
2292 ac_c_conftest_c99_main='
2293 // Check bool.
2294 _Bool success = false;
2295 success |= (argc != 0);
2296
2297 // Check restrict.
2298 if (test_restrict ("String literal") == 0)
2299 success = true;
2300 char *restrict newvar = "Another string";
2301
2302 // Check varargs.
2303 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2304 test_varargs_macros ();
2305
2306 // Check flexible array members.
2307 struct incomplete_array *ia =
2308 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2309 ia->datasize = 10;
2310 for (int i = 0; i < ia->datasize; ++i)
2311 ia->data[i] = i * 1.234;
2312
2313 // Check named initializers.
2314 struct named_init ni = {
2315 .number = 34,
2316 .name = L"Test wide string",
2317 .average = 543.34343,
2318 };
2319
2320 ni.number = 58;
2321
2322 int dynamic_array[ni.number];
2323 dynamic_array[0] = argv[0][0];
2324 dynamic_array[ni.number - 1] = 543;
2325
2326 // work around unused variable warnings
2327 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2328 || dynamic_array[ni.number - 1] != 543);
2329 '
2330
2331 # Test code for whether the C compiler supports C11 (global declarations)
2332 ac_c_conftest_c11_globals='
2333 // Does the compiler advertise C11 conformance?
2334 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2335 # error "Compiler does not advertise C11 conformance"
2336 #endif
2337
2338 // Check _Alignas.
2339 char _Alignas (double) aligned_as_double;
2340 char _Alignas (0) no_special_alignment;
2341 extern char aligned_as_int;
2342 char _Alignas (0) _Alignas (int) aligned_as_int;
2343
2344 // Check _Alignof.
2345 enum
2346 {
2347 int_alignment = _Alignof (int),
2348 int_array_alignment = _Alignof (int[100]),
2349 char_alignment = _Alignof (char)
2350 };
2351 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2352
2353 // Check _Noreturn.
2354 int _Noreturn does_not_return (void) { for (;;) continue; }
2355
2356 // Check _Static_assert.
2357 struct test_static_assert
2358 {
2359 int x;
2360 _Static_assert (sizeof (int) <= sizeof (long int),
2361 "_Static_assert does not work in struct");
2362 long int y;
2363 };
2364
2365 // Check UTF-8 literals.
2366 #define u8 syntax error!
2367 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2368
2369 // Check duplicate typedefs.
2370 typedef long *long_ptr;
2371 typedef long int *long_ptr;
2372 typedef long_ptr long_ptr;
2373
2374 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2375 struct anonymous
2376 {
2377 union {
2378 struct { int i; int j; };
2379 struct { int k; long int l; } w;
2380 };
2381 int m;
2382 } v1;
2383 '
2384
2385 # Test code for whether the C compiler supports C11 (body of main).
2386 ac_c_conftest_c11_main='
2387 _Static_assert ((offsetof (struct anonymous, i)
2388 == offsetof (struct anonymous, w.k)),
2389 "Anonymous union alignment botch");
2390 v1.i = 2;
2391 v1.w.k = 5;
2392 ok |= v1.i != 5;
2393 '
2394
2395 # Test code for whether the C compiler supports C11 (complete).
2396 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2397 ${ac_c_conftest_c99_globals}
2398 ${ac_c_conftest_c11_globals}
2399
2400 int
2401 main (int argc, char **argv)
2402 {
2403 int ok = 0;
2404 ${ac_c_conftest_c89_main}
2405 ${ac_c_conftest_c99_main}
2406 ${ac_c_conftest_c11_main}
2407 return ok;
2408 }
2409 "
2410
2411 # Test code for whether the C compiler supports C99 (complete).
2412 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2413 ${ac_c_conftest_c99_globals}
2414
2415 int
2416 main (int argc, char **argv)
2417 {
2418 int ok = 0;
2419 ${ac_c_conftest_c89_main}
2420 ${ac_c_conftest_c99_main}
2421 return ok;
2422 }
2423 "
2424
2425 # Test code for whether the C compiler supports C89 (complete).
2426 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2427
2428 int
2429 main (int argc, char **argv)
2430 {
2431 int ok = 0;
2432 ${ac_c_conftest_c89_main}
2433 return ok;
2434 }
2435 "
2436
2437 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2438 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2439 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2440 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2441 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2442 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2443 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2444 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2445 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2446 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2447
2448 # Auxiliary files required by this configure script.
2449 ac_aux_files="config.rpath config.guess config.sub compile missing install-sh"
2450
2451 # Locations in which to look for auxiliary files.
2452 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2453
2454 # Search for a directory containing all of the required auxiliary files,
2455 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2456 # If we don't find one directory that contains all the files we need,
2457 # we report the set of missing files from the *first* directory in
2458 # $ac_aux_dir_candidates and give up.
2459 ac_missing_aux_files=""
2460 ac_first_candidate=:
2461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 as_found=false
2464 for as_dir in $ac_aux_dir_candidates
2465 do
2466 IFS=$as_save_IFS
2467 case $as_dir in #(((
2468 '') as_dir=./ ;;
2469 */) ;;
2470 *) as_dir=$as_dir/ ;;
2471 esac
2472 as_found=:
2473
2474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2475 ac_aux_dir_found=yes
2476 ac_install_sh=
2477 for ac_aux in $ac_aux_files
2478 do
2479 # As a special case, if "install-sh" is required, that requirement
2480 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2481 # and $ac_install_sh is set appropriately for whichever one is found.
2482 if test x"$ac_aux" = x"install-sh"
2483 then
2484 if test -f "${as_dir}install-sh"; then
2485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2486 ac_install_sh="${as_dir}install-sh -c"
2487 elif test -f "${as_dir}install.sh"; then
2488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2489 ac_install_sh="${as_dir}install.sh -c"
2490 elif test -f "${as_dir}shtool"; then
2491 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2492 ac_install_sh="${as_dir}shtool install -c"
2493 else
2494 ac_aux_dir_found=no
2495 if $ac_first_candidate; then
2496 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2497 else
2498 break
2499 fi
2500 fi
2501 else
2502 if test -f "${as_dir}${ac_aux}"; then
2503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2504 else
2505 ac_aux_dir_found=no
2506 if $ac_first_candidate; then
2507 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2508 else
2509 break
2510 fi
2511 fi
2512 fi
2513 done
2514 if test "$ac_aux_dir_found" = yes; then
2515 ac_aux_dir="$as_dir"
2516 break
2517 fi
2518 ac_first_candidate=false
2519
2520 as_found=false
2521 done
2522 IFS=$as_save_IFS
2523 if $as_found
2524 then :
2525
2526 else $as_nop
2527 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2528 fi
2529
2530
2531 # These three variables are undocumented and unsupported,
2532 # and are intended to be withdrawn in a future Autoconf release.
2533 # They can cause serious problems if a builder's source tree is in a directory
2534 # whose full name contains unusual characters.
2535 if test -f "${ac_aux_dir}config.guess"; then
2536 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2537 fi
2538 if test -f "${ac_aux_dir}config.sub"; then
2539 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2540 fi
2541 if test -f "$ac_aux_dir/configure"; then
2542 ac_configure="$SHELL ${ac_aux_dir}configure"
21662543 fi
21672544
21682545 # Check that the precious variables saved in the cache have kept the same
21752552 eval ac_new_val=\$ac_env_${ac_var}_value
21762553 case $ac_old_set,$ac_new_set in
21772554 set,)
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2179 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2556 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
21802557 ac_cache_corrupted=: ;;
21812558 ,set)
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2183 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2560 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
21842561 ac_cache_corrupted=: ;;
21852562 ,);;
21862563 *)
21892566 ac_old_val_w=`echo x $ac_old_val`
21902567 ac_new_val_w=`echo x $ac_new_val`
21912568 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2193 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2570 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
21942571 ac_cache_corrupted=:
21952572 else
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2197 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2574 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
21982575 eval $ac_var=\$ac_old_val
21992576 fi
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2201 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2203 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2578 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2580 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
22042581 fi;;
22052582 esac
22062583 # Pass precious variables to config.status.
22072584 if test "$ac_new_set" = set; then
22082585 case $ac_new_val in
2209 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2586 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
22102587 *) ac_arg=$ac_var=$ac_new_val ;;
22112588 esac
22122589 case " $ac_configure_args " in
22162593 fi
22172594 done
22182595 if $ac_cache_corrupted; then
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2222 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2223 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2597 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2599 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2600 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2601 and start over" "$LINENO" 5
22242602 fi
22252603 ## -------------------- ##
22262604 ## Main body of script. ##
22372615
22382616 am__api_version='1.16'
22392617
2240 ac_aux_dir=
2241 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2242 if test -f "$ac_dir/install-sh"; then
2243 ac_aux_dir=$ac_dir
2244 ac_install_sh="$ac_aux_dir/install-sh -c"
2245 break
2246 elif test -f "$ac_dir/install.sh"; then
2247 ac_aux_dir=$ac_dir
2248 ac_install_sh="$ac_aux_dir/install.sh -c"
2249 break
2250 elif test -f "$ac_dir/shtool"; then
2251 ac_aux_dir=$ac_dir
2252 ac_install_sh="$ac_aux_dir/shtool install -c"
2253 break
2254 fi
2255 done
2256 if test -z "$ac_aux_dir"; then
2257 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2258 fi
2259
2260 # These three variables are undocumented and unsupported,
2261 # and are intended to be withdrawn in a future Autoconf release.
2262 # They can cause serious problems if a builder's source tree is in a directory
2263 # whose full name contains unusual characters.
2264 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2265 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2266 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2267
2268
2269 # Find a good install program. We prefer a C program (faster),
2618
2619
2620 # Find a good install program. We prefer a C program (faster),
22702621 # so one script is as good as another. But avoid the broken or
22712622 # incompatible versions:
22722623 # SysV /etc/install, /usr/sbin/install
22802631 # OS/2's system install, which has a completely different semantic
22812632 # ./install, which can be erroneously created by make from ./install.sh.
22822633 # Reject install programs that cannot install multiple files.
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2284 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2635 printf %s "checking for a BSD-compatible install... " >&6; }
22852636 if test -z "$INSTALL"; then
2286 if ${ac_cv_path_install+:} false; then :
2287 $as_echo_n "(cached) " >&6
2288 else
2637 if test ${ac_cv_path_install+y}
2638 then :
2639 printf %s "(cached) " >&6
2640 else $as_nop
22892641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22902642 for as_dir in $PATH
22912643 do
22922644 IFS=$as_save_IFS
2293 test -z "$as_dir" && as_dir=.
2294 # Account for people who put trailing slashes in PATH elements.
2295 case $as_dir/ in #((
2296 ./ | .// | /[cC]/* | \
2645 case $as_dir in #(((
2646 '') as_dir=./ ;;
2647 */) ;;
2648 *) as_dir=$as_dir/ ;;
2649 esac
2650 # Account for fact that we put trailing slashes in our PATH walk.
2651 case $as_dir in #((
2652 ./ | /[cC]/* | \
22972653 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
22982654 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
22992655 /usr/ucb/* ) ;;
23032659 # by default.
23042660 for ac_prog in ginstall scoinst install; do
23052661 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2662 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
23072663 if test $ac_prog = install &&
2308 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2664 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
23092665 # AIX install. It has an incompatible calling convention.
23102666 :
23112667 elif test $ac_prog = install &&
2312 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2668 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
23132669 # program-specific install script used by HP pwplus--don't use.
23142670 :
23152671 else
23172673 echo one > conftest.one
23182674 echo two > conftest.two
23192675 mkdir conftest.dir
2320 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2676 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
23212677 test -s conftest.one && test -s conftest.two &&
23222678 test -s conftest.dir/conftest.one &&
23232679 test -s conftest.dir/conftest.two
23242680 then
2325 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2681 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
23262682 break 3
23272683 fi
23282684 fi
23382694 rm -rf conftest.one conftest.two conftest.dir
23392695
23402696 fi
2341 if test "${ac_cv_path_install+set}" = set; then
2697 if test ${ac_cv_path_install+y}; then
23422698 INSTALL=$ac_cv_path_install
23432699 else
23442700 # As a last resort, use the slow shell script. Don't cache a
23482704 INSTALL=$ac_install_sh
23492705 fi
23502706 fi
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2352 $as_echo "$INSTALL" >&6; }
2707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2708 printf "%s\n" "$INSTALL" >&6; }
23532709
23542710 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
23552711 # It thinks the first close brace ends the variable substitution.
23592715
23602716 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
23612717
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2363 $as_echo_n "checking whether build environment is sane... " >&6; }
2718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2719 printf %s "checking whether build environment is sane... " >&6; }
23642720 # Reject unsafe characters in $srcdir or the absolute working directory
23652721 # name. Accept space and tab only in the latter.
23662722 am_lf='
24142770 as_fn_error $? "newly created file is older than distributed files!
24152771 Check your system clock" "$LINENO" 5
24162772 fi
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2418 $as_echo "yes" >&6; }
2773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2774 printf "%s\n" "yes" >&6; }
24192775 # If we didn't sleep, we still need to ensure time stamps of config.status and
24202776 # generated files are strictly newer.
24212777 am_sleep_pid=
24342790 # Double any \ or $.
24352791 # By default was `s,x,x', remove it if useless.
24362792 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2437 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2793 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2794
24382795
24392796 # Expand $ac_aux_dir to an absolute path.
24402797 am_aux_dir=`cd "$ac_aux_dir" && pwd`
24412798
2442 if test x"${MISSING+set}" != xset; then
2443 case $am_aux_dir in
2444 *\ * | *\ *)
2445 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2446 *)
2447 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2448 esac
2799
2800 if test x"${MISSING+set}" != xset; then
2801 MISSING="\${SHELL} '$am_aux_dir/missing'"
24492802 fi
24502803 # Use eval to expand $SHELL
24512804 if eval "$MISSING --is-lightweight"; then
24522805 am_missing_run="$MISSING "
24532806 else
24542807 am_missing_run=
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2456 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2809 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
24572810 fi
24582811
24592812 if test x"${install_sh+set}" != xset; then
24732826 if test -n "$ac_tool_prefix"; then
24742827 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
24752828 set dummy ${ac_tool_prefix}strip; ac_word=$2
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2477 $as_echo_n "checking for $ac_word... " >&6; }
2478 if ${ac_cv_prog_STRIP+:} false; then :
2479 $as_echo_n "(cached) " >&6
2480 else
2829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2830 printf %s "checking for $ac_word... " >&6; }
2831 if test ${ac_cv_prog_STRIP+y}
2832 then :
2833 printf %s "(cached) " >&6
2834 else $as_nop
24812835 if test -n "$STRIP"; then
24822836 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
24832837 else
24852839 for as_dir in $PATH
24862840 do
24872841 IFS=$as_save_IFS
2488 test -z "$as_dir" && as_dir=.
2842 case $as_dir in #(((
2843 '') as_dir=./ ;;
2844 */) ;;
2845 *) as_dir=$as_dir/ ;;
2846 esac
24892847 for ac_exec_ext in '' $ac_executable_extensions; do
2490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2848 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24912849 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24932851 break 2
24942852 fi
24952853 done
25002858 fi
25012859 STRIP=$ac_cv_prog_STRIP
25022860 if test -n "$STRIP"; then
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2504 $as_echo "$STRIP" >&6; }
2861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2862 printf "%s\n" "$STRIP" >&6; }
25052863 else
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2507 $as_echo "no" >&6; }
2864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2865 printf "%s\n" "no" >&6; }
25082866 fi
25092867
25102868
25132871 ac_ct_STRIP=$STRIP
25142872 # Extract the first word of "strip", so it can be a program name with args.
25152873 set dummy strip; ac_word=$2
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2517 $as_echo_n "checking for $ac_word... " >&6; }
2518 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2519 $as_echo_n "(cached) " >&6
2520 else
2874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2875 printf %s "checking for $ac_word... " >&6; }
2876 if test ${ac_cv_prog_ac_ct_STRIP+y}
2877 then :
2878 printf %s "(cached) " >&6
2879 else $as_nop
25212880 if test -n "$ac_ct_STRIP"; then
25222881 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
25232882 else
25252884 for as_dir in $PATH
25262885 do
25272886 IFS=$as_save_IFS
2528 test -z "$as_dir" && as_dir=.
2887 case $as_dir in #(((
2888 '') as_dir=./ ;;
2889 */) ;;
2890 *) as_dir=$as_dir/ ;;
2891 esac
25292892 for ac_exec_ext in '' $ac_executable_extensions; do
2530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25312894 ac_cv_prog_ac_ct_STRIP="strip"
2532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25332896 break 2
25342897 fi
25352898 done
25402903 fi
25412904 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
25422905 if test -n "$ac_ct_STRIP"; then
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2544 $as_echo "$ac_ct_STRIP" >&6; }
2906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2907 printf "%s\n" "$ac_ct_STRIP" >&6; }
25452908 else
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2547 $as_echo "no" >&6; }
2909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2910 printf "%s\n" "no" >&6; }
25482911 fi
25492912
25502913 if test "x$ac_ct_STRIP" = x; then
25522915 else
25532916 case $cross_compiling:$ac_tool_warned in
25542917 yes:)
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2919 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25572920 ac_tool_warned=yes ;;
25582921 esac
25592922 STRIP=$ac_ct_STRIP
25652928 fi
25662929 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
25672930
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2569 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2931
2932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2933 printf %s "checking for a race-free mkdir -p... " >&6; }
25702934 if test -z "$MKDIR_P"; then
2571 if ${ac_cv_path_mkdir+:} false; then :
2572 $as_echo_n "(cached) " >&6
2573 else
2935 if test ${ac_cv_path_mkdir+y}
2936 then :
2937 printf %s "(cached) " >&6
2938 else $as_nop
25742939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25752940 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
25762941 do
25772942 IFS=$as_save_IFS
2578 test -z "$as_dir" && as_dir=.
2943 case $as_dir in #(((
2944 '') as_dir=./ ;;
2945 */) ;;
2946 *) as_dir=$as_dir/ ;;
2947 esac
25792948 for ac_prog in mkdir gmkdir; do
25802949 for ac_exec_ext in '' $ac_executable_extensions; do
2581 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2582 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2583 'mkdir (GNU coreutils) '* | \
2584 'mkdir (coreutils) '* | \
2950 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2951 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2952 'mkdir ('*'coreutils) '* | \
2953 'BusyBox '* | \
25852954 'mkdir (fileutils) '4.1*)
2586 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2955 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
25872956 break 3;;
25882957 esac
25892958 done
25942963 fi
25952964
25962965 test -d ./--version && rmdir ./--version
2597 if test "${ac_cv_path_mkdir+set}" = set; then
2966 if test ${ac_cv_path_mkdir+y}; then
25982967 MKDIR_P="$ac_cv_path_mkdir -p"
25992968 else
26002969 # As a last resort, use the slow shell script. Don't cache a
26042973 MKDIR_P="$ac_install_sh -d"
26052974 fi
26062975 fi
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2608 $as_echo "$MKDIR_P" >&6; }
2976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2977 printf "%s\n" "$MKDIR_P" >&6; }
26092978
26102979 for ac_prog in gawk mawk nawk awk
26112980 do
26122981 # Extract the first word of "$ac_prog", so it can be a program name with args.
26132982 set dummy $ac_prog; ac_word=$2
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2615 $as_echo_n "checking for $ac_word... " >&6; }
2616 if ${ac_cv_prog_AWK+:} false; then :
2617 $as_echo_n "(cached) " >&6
2618 else
2983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984 printf %s "checking for $ac_word... " >&6; }
2985 if test ${ac_cv_prog_AWK+y}
2986 then :
2987 printf %s "(cached) " >&6
2988 else $as_nop
26192989 if test -n "$AWK"; then
26202990 ac_cv_prog_AWK="$AWK" # Let the user override the test.
26212991 else
26232993 for as_dir in $PATH
26242994 do
26252995 IFS=$as_save_IFS
2626 test -z "$as_dir" && as_dir=.
2996 case $as_dir in #(((
2997 '') as_dir=./ ;;
2998 */) ;;
2999 *) as_dir=$as_dir/ ;;
3000 esac
26273001 for ac_exec_ext in '' $ac_executable_extensions; do
2628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3002 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26293003 ac_cv_prog_AWK="$ac_prog"
2630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26313005 break 2
26323006 fi
26333007 done
26383012 fi
26393013 AWK=$ac_cv_prog_AWK
26403014 if test -n "$AWK"; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2642 $as_echo "$AWK" >&6; }
3015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3016 printf "%s\n" "$AWK" >&6; }
26433017 else
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645 $as_echo "no" >&6; }
3018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3019 printf "%s\n" "no" >&6; }
26463020 fi
26473021
26483022
26493023 test -n "$AWK" && break
26503024 done
26513025
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2653 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3027 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
26543028 set x ${MAKE-make}
2655 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2656 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2657 $as_echo_n "(cached) " >&6
2658 else
3029 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3030 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3031 then :
3032 printf %s "(cached) " >&6
3033 else $as_nop
26593034 cat >conftest.make <<\_ACEOF
26603035 SHELL = /bin/sh
26613036 all:
26713046 rm -f conftest.make
26723047 fi
26733048 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2675 $as_echo "yes" >&6; }
3049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3050 printf "%s\n" "yes" >&6; }
26763051 SET_MAKE=
26773052 else
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679 $as_echo "no" >&6; }
3053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 printf "%s\n" "no" >&6; }
26803055 SET_MAKE="MAKE=${MAKE-make}"
26813056 fi
26823057
26903065 rmdir .tst 2>/dev/null
26913066
26923067 # Check whether --enable-silent-rules was given.
2693 if test "${enable_silent_rules+set}" = set; then :
3068 if test ${enable_silent_rules+y}
3069 then :
26943070 enableval=$enable_silent_rules;
26953071 fi
26963072
27003076 *) AM_DEFAULT_VERBOSITY=1;;
27013077 esac
27023078 am_make=${MAKE-make}
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2704 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2705 if ${am_cv_make_support_nested_variables+:} false; then :
2706 $as_echo_n "(cached) " >&6
2707 else
2708 if $as_echo 'TRUE=$(BAR$(V))
3079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3080 printf %s "checking whether $am_make supports nested variables... " >&6; }
3081 if test ${am_cv_make_support_nested_variables+y}
3082 then :
3083 printf %s "(cached) " >&6
3084 else $as_nop
3085 if printf "%s\n" 'TRUE=$(BAR$(V))
27093086 BAR0=false
27103087 BAR1=true
27113088 V=1
27173094 am_cv_make_support_nested_variables=no
27183095 fi
27193096 fi
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2721 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3098 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
27223099 if test $am_cv_make_support_nested_variables = yes; then
27233100 AM_V='$(V)'
27243101 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
27503127
27513128 # Define the identity of the package.
27523129 PACKAGE='dosfstools'
2753 VERSION='4.2'
2754
2755
2756 cat >>confdefs.h <<_ACEOF
2757 #define PACKAGE "$PACKAGE"
2758 _ACEOF
2759
2760
2761 cat >>confdefs.h <<_ACEOF
2762 #define VERSION "$VERSION"
2763 _ACEOF
3130 VERSION='4.2+git'
3131
3132
3133 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3134
3135
3136 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
27643137
27653138 # Some tools Automake needs.
27663139
27983171
27993172
28003173
3174
3175
3176 # Variables for tags utilities; see am/tags.am
3177 if test -z "$CTAGS"; then
3178 CTAGS=ctags
3179 fi
3180
3181 if test -z "$ETAGS"; then
3182 ETAGS=etags
3183 fi
3184
3185 if test -z "$CSCOPE"; then
3186 CSCOPE=cscope
3187 fi
28013188
28023189
28033190
28453232
28463233
28473234 # Check whether --enable-compat-symlinks was given.
2848 if test "${enable_compat_symlinks+set}" = set; then :
3235 if test ${enable_compat_symlinks+y}
3236 then :
28493237 enableval=$enable_compat_symlinks; case "${enableval}" in
28503238 yes) symlinks=true ;;
28513239 no) symlinks=false ;;
28523240 *) as_fn_error $? "bad value ${enableval} for --enable-compat-symlinks" "$LINENO" 5 ;;
28533241 esac
2854 else
3242 else $as_nop
28553243 symlinks=false
28563244 fi
28573245
28653253
28663254
28673255 # Check whether --enable-atari-check was given.
2868 if test "${enable_atari_check+set}" = set; then :
3256 if test ${enable_atari_check+y}
3257 then :
28693258 enableval=$enable_atari_check; case "${enableval}" in
28703259 yes) CHECKATARI=1
28713260
2872 $as_echo "#define CONF_CHECK_ATARI 1" >>confdefs.h
3261 printf "%s\n" "#define CONF_CHECK_ATARI 1" >>confdefs.h
28733262 ;;
28743263 no) CHECKATARI=0
28753264 ;;
28763265 *) as_fn_error $? "bad value ${enableval} for --enable-atari-check" "$LINENO" 5 ;;
28773266 esac
2878 else
3267 else $as_nop
28793268 CHECKATARI=0
28803269
28813270 fi
28823271
28833272
3273
3274
3275
3276
3277
3278
3279
3280
3281
28843282 DEPDIR="${am__leading_dot}deps"
28853283
28863284 ac_config_commands="$ac_config_commands depfiles"
28873285
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
2889 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3287 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
28903288 cat > confinc.mk << 'END'
28913289 am__doit:
28923290 @echo this is the am__doit target >confinc.out
29223320 fi
29233321 done
29243322 rm -f confinc.* confmf.*
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
2926 $as_echo "${_am_result}" >&6; }
3323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3324 printf "%s\n" "${_am_result}" >&6; }
29273325
29283326 # Check whether --enable-dependency-tracking was given.
2929 if test "${enable_dependency_tracking+set}" = set; then :
3327 if test ${enable_dependency_tracking+y}
3328 then :
29303329 enableval=$enable_dependency_tracking;
29313330 fi
29323331
29523351 if test -n "$ac_tool_prefix"; then
29533352 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
29543353 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2956 $as_echo_n "checking for $ac_word... " >&6; }
2957 if ${ac_cv_prog_CC+:} false; then :
2958 $as_echo_n "(cached) " >&6
2959 else
3354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355 printf %s "checking for $ac_word... " >&6; }
3356 if test ${ac_cv_prog_CC+y}
3357 then :
3358 printf %s "(cached) " >&6
3359 else $as_nop
29603360 if test -n "$CC"; then
29613361 ac_cv_prog_CC="$CC" # Let the user override the test.
29623362 else
29643364 for as_dir in $PATH
29653365 do
29663366 IFS=$as_save_IFS
2967 test -z "$as_dir" && as_dir=.
3367 case $as_dir in #(((
3368 '') as_dir=./ ;;
3369 */) ;;
3370 *) as_dir=$as_dir/ ;;
3371 esac
29683372 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29703374 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29723376 break 2
29733377 fi
29743378 done
29793383 fi
29803384 CC=$ac_cv_prog_CC
29813385 if test -n "$CC"; then
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2983 $as_echo "$CC" >&6; }
3386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3387 printf "%s\n" "$CC" >&6; }
29843388 else
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2986 $as_echo "no" >&6; }
3389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3390 printf "%s\n" "no" >&6; }
29873391 fi
29883392
29893393
29923396 ac_ct_CC=$CC
29933397 # Extract the first word of "gcc", so it can be a program name with args.
29943398 set dummy gcc; ac_word=$2
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996 $as_echo_n "checking for $ac_word... " >&6; }
2997 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2998 $as_echo_n "(cached) " >&6
2999 else
3399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400 printf %s "checking for $ac_word... " >&6; }
3401 if test ${ac_cv_prog_ac_ct_CC+y}
3402 then :
3403 printf %s "(cached) " >&6
3404 else $as_nop
30003405 if test -n "$ac_ct_CC"; then
30013406 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
30023407 else
30043409 for as_dir in $PATH
30053410 do
30063411 IFS=$as_save_IFS
3007 test -z "$as_dir" && as_dir=.
3412 case $as_dir in #(((
3413 '') as_dir=./ ;;
3414 */) ;;
3415 *) as_dir=$as_dir/ ;;
3416 esac
30083417 for ac_exec_ext in '' $ac_executable_extensions; do
3009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3418 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30103419 ac_cv_prog_ac_ct_CC="gcc"
3011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30123421 break 2
30133422 fi
30143423 done
30193428 fi
30203429 ac_ct_CC=$ac_cv_prog_ac_ct_CC
30213430 if test -n "$ac_ct_CC"; then
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3023 $as_echo "$ac_ct_CC" >&6; }
3431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3432 printf "%s\n" "$ac_ct_CC" >&6; }
30243433 else
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026 $as_echo "no" >&6; }
3434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 printf "%s\n" "no" >&6; }
30273436 fi
30283437
30293438 if test "x$ac_ct_CC" = x; then
30313440 else
30323441 case $cross_compiling:$ac_tool_warned in
30333442 yes:)
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3444 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30363445 ac_tool_warned=yes ;;
30373446 esac
30383447 CC=$ac_ct_CC
30453454 if test -n "$ac_tool_prefix"; then
30463455 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
30473456 set dummy ${ac_tool_prefix}cc; ac_word=$2
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3049 $as_echo_n "checking for $ac_word... " >&6; }
3050 if ${ac_cv_prog_CC+:} false; then :
3051 $as_echo_n "(cached) " >&6
3052 else
3457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458 printf %s "checking for $ac_word... " >&6; }
3459 if test ${ac_cv_prog_CC+y}
3460 then :
3461 printf %s "(cached) " >&6
3462 else $as_nop
30533463 if test -n "$CC"; then
30543464 ac_cv_prog_CC="$CC" # Let the user override the test.
30553465 else
30573467 for as_dir in $PATH
30583468 do
30593469 IFS=$as_save_IFS
3060 test -z "$as_dir" && as_dir=.
3470 case $as_dir in #(((
3471 '') as_dir=./ ;;
3472 */) ;;
3473 *) as_dir=$as_dir/ ;;
3474 esac
30613475 for ac_exec_ext in '' $ac_executable_extensions; do
3062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3476 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30633477 ac_cv_prog_CC="${ac_tool_prefix}cc"
3064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30653479 break 2
30663480 fi
30673481 done
30723486 fi
30733487 CC=$ac_cv_prog_CC
30743488 if test -n "$CC"; then
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3076 $as_echo "$CC" >&6; }
3489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3490 printf "%s\n" "$CC" >&6; }
30773491 else
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079 $as_echo "no" >&6; }
3492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3493 printf "%s\n" "no" >&6; }
30803494 fi
30813495
30823496
30853499 if test -z "$CC"; then
30863500 # Extract the first word of "cc", so it can be a program name with args.
30873501 set dummy cc; ac_word=$2
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if ${ac_cv_prog_CC+:} false; then :
3091 $as_echo_n "(cached) " >&6
3092 else
3502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3503 printf %s "checking for $ac_word... " >&6; }
3504 if test ${ac_cv_prog_CC+y}
3505 then :
3506 printf %s "(cached) " >&6
3507 else $as_nop
30933508 if test -n "$CC"; then
30943509 ac_cv_prog_CC="$CC" # Let the user override the test.
30953510 else
30983513 for as_dir in $PATH
30993514 do
31003515 IFS=$as_save_IFS
3101 test -z "$as_dir" && as_dir=.
3516 case $as_dir in #(((
3517 '') as_dir=./ ;;
3518 */) ;;
3519 *) as_dir=$as_dir/ ;;
3520 esac
31023521 for ac_exec_ext in '' $ac_executable_extensions; do
3103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3104 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3522 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3523 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
31053524 ac_prog_rejected=yes
31063525 continue
31073526 fi
31083527 ac_cv_prog_CC="cc"
3109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3528 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31103529 break 2
31113530 fi
31123531 done
31223541 # However, it has the same basename, so the bogon will be chosen
31233542 # first if we set CC to just the basename; use the full file name.
31243543 shift
3125 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3544 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
31263545 fi
31273546 fi
31283547 fi
31293548 fi
31303549 CC=$ac_cv_prog_CC
31313550 if test -n "$CC"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3133 $as_echo "$CC" >&6; }
3551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3552 printf "%s\n" "$CC" >&6; }
31343553 else
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555 printf "%s\n" "no" >&6; }
31373556 fi
31383557
31393558
31443563 do
31453564 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
31463565 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3148 $as_echo_n "checking for $ac_word... " >&6; }
3149 if ${ac_cv_prog_CC+:} false; then :
3150 $as_echo_n "(cached) " >&6
3151 else
3566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3567 printf %s "checking for $ac_word... " >&6; }
3568 if test ${ac_cv_prog_CC+y}
3569 then :
3570 printf %s "(cached) " >&6
3571 else $as_nop
31523572 if test -n "$CC"; then
31533573 ac_cv_prog_CC="$CC" # Let the user override the test.
31543574 else
31563576 for as_dir in $PATH
31573577 do
31583578 IFS=$as_save_IFS
3159 test -z "$as_dir" && as_dir=.
3579 case $as_dir in #(((
3580 '') as_dir=./ ;;
3581 */) ;;
3582 *) as_dir=$as_dir/ ;;
3583 esac
31603584 for ac_exec_ext in '' $ac_executable_extensions; do
3161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3585 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31623586 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3587 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31643588 break 2
31653589 fi
31663590 done
31713595 fi
31723596 CC=$ac_cv_prog_CC
31733597 if test -n "$CC"; then
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3175 $as_echo "$CC" >&6; }
3598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3599 printf "%s\n" "$CC" >&6; }
31763600 else
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3178 $as_echo "no" >&6; }
3601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3602 printf "%s\n" "no" >&6; }
31793603 fi
31803604
31813605
31883612 do
31893613 # Extract the first word of "$ac_prog", so it can be a program name with args.
31903614 set dummy $ac_prog; ac_word=$2
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3192 $as_echo_n "checking for $ac_word... " >&6; }
3193 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3194 $as_echo_n "(cached) " >&6
3195 else
3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3616 printf %s "checking for $ac_word... " >&6; }
3617 if test ${ac_cv_prog_ac_ct_CC+y}
3618 then :
3619 printf %s "(cached) " >&6
3620 else $as_nop
31963621 if test -n "$ac_ct_CC"; then
31973622 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
31983623 else
32003625 for as_dir in $PATH
32013626 do
32023627 IFS=$as_save_IFS
3203 test -z "$as_dir" && as_dir=.
3628 case $as_dir in #(((
3629 '') as_dir=./ ;;
3630 */) ;;
3631 *) as_dir=$as_dir/ ;;
3632 esac
32043633 for ac_exec_ext in '' $ac_executable_extensions; do
3205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3634 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32063635 ac_cv_prog_ac_ct_CC="$ac_prog"
3207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32083637 break 2
32093638 fi
32103639 done
32153644 fi
32163645 ac_ct_CC=$ac_cv_prog_ac_ct_CC
32173646 if test -n "$ac_ct_CC"; then
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3219 $as_echo "$ac_ct_CC" >&6; }
3647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3648 printf "%s\n" "$ac_ct_CC" >&6; }
32203649 else
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 $as_echo "no" >&6; }
3650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3651 printf "%s\n" "no" >&6; }
32233652 fi
32243653
32253654
32313660 else
32323661 case $cross_compiling:$ac_tool_warned in
32333662 yes:)
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3664 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32363665 ac_tool_warned=yes ;;
32373666 esac
32383667 CC=$ac_ct_CC
32403669 fi
32413670
32423671 fi
3243
3244
3245 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3672 if test -z "$CC"; then
3673 if test -n "$ac_tool_prefix"; then
3674 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3675 set dummy ${ac_tool_prefix}clang; ac_word=$2
3676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3677 printf %s "checking for $ac_word... " >&6; }
3678 if test ${ac_cv_prog_CC+y}
3679 then :
3680 printf %s "(cached) " >&6
3681 else $as_nop
3682 if test -n "$CC"; then
3683 ac_cv_prog_CC="$CC" # Let the user override the test.
3684 else
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 for as_dir in $PATH
3687 do
3688 IFS=$as_save_IFS
3689 case $as_dir in #(((
3690 '') as_dir=./ ;;
3691 */) ;;
3692 *) as_dir=$as_dir/ ;;
3693 esac
3694 for ac_exec_ext in '' $ac_executable_extensions; do
3695 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3696 ac_cv_prog_CC="${ac_tool_prefix}clang"
3697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3698 break 2
3699 fi
3700 done
3701 done
3702 IFS=$as_save_IFS
3703
3704 fi
3705 fi
3706 CC=$ac_cv_prog_CC
3707 if test -n "$CC"; then
3708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3709 printf "%s\n" "$CC" >&6; }
3710 else
3711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712 printf "%s\n" "no" >&6; }
3713 fi
3714
3715
3716 fi
3717 if test -z "$ac_cv_prog_CC"; then
3718 ac_ct_CC=$CC
3719 # Extract the first word of "clang", so it can be a program name with args.
3720 set dummy clang; ac_word=$2
3721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722 printf %s "checking for $ac_word... " >&6; }
3723 if test ${ac_cv_prog_ac_ct_CC+y}
3724 then :
3725 printf %s "(cached) " >&6
3726 else $as_nop
3727 if test -n "$ac_ct_CC"; then
3728 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3729 else
3730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 for as_dir in $PATH
3732 do
3733 IFS=$as_save_IFS
3734 case $as_dir in #(((
3735 '') as_dir=./ ;;
3736 */) ;;
3737 *) as_dir=$as_dir/ ;;
3738 esac
3739 for ac_exec_ext in '' $ac_executable_extensions; do
3740 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3741 ac_cv_prog_ac_ct_CC="clang"
3742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3743 break 2
3744 fi
3745 done
3746 done
3747 IFS=$as_save_IFS
3748
3749 fi
3750 fi
3751 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3752 if test -n "$ac_ct_CC"; then
3753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3754 printf "%s\n" "$ac_ct_CC" >&6; }
3755 else
3756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757 printf "%s\n" "no" >&6; }
3758 fi
3759
3760 if test "x$ac_ct_CC" = x; then
3761 CC=""
3762 else
3763 case $cross_compiling:$ac_tool_warned in
3764 yes:)
3765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3766 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3767 ac_tool_warned=yes ;;
3768 esac
3769 CC=$ac_ct_CC
3770 fi
3771 else
3772 CC="$ac_cv_prog_CC"
3773 fi
3774
3775 fi
3776
3777
3778 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3779 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
32473780 as_fn_error $? "no acceptable C compiler found in \$PATH
32483781 See \`config.log' for more details" "$LINENO" 5; }
32493782
32503783 # Provide some information about the compiler.
3251 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3784 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
32523785 set X $ac_compile
32533786 ac_compiler=$2
3254 for ac_option in --version -v -V -qversion; do
3787 for ac_option in --version -v -V -qversion -version; do
32553788 { { ac_try="$ac_compiler $ac_option >&5"
32563789 case "(($ac_try" in
32573790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32583791 *) ac_try_echo=$ac_try;;
32593792 esac
32603793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3261 $as_echo "$ac_try_echo"; } >&5
3794 printf "%s\n" "$ac_try_echo"; } >&5
32623795 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
32633796 ac_status=$?
32643797 if test -s conftest.err; then
32683801 cat conftest.er1 >&5
32693802 fi
32703803 rm -f conftest.er1 conftest.err
3271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32723805 test $ac_status = 0; }
32733806 done
32743807
32763809 /* end confdefs.h. */
32773810
32783811 int
3279 main ()
3812 main (void)
32803813 {
32813814
32823815 ;
32883821 # Try to create an executable without -o first, disregard a.out.
32893822 # It will help us diagnose broken compilers, and finding out an intuition
32903823 # of exeext.
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3292 $as_echo_n "checking whether the C compiler works... " >&6; }
3293 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3825 printf %s "checking whether the C compiler works... " >&6; }
3826 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
32943827
32953828 # The possible output files:
32963829 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
33113844 *) ac_try_echo=$ac_try;;
33123845 esac
33133846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3314 $as_echo "$ac_try_echo"; } >&5
3847 printf "%s\n" "$ac_try_echo"; } >&5
33153848 (eval "$ac_link_default") 2>&5
33163849 ac_status=$?
3317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3318 test $ac_status = 0; }; then :
3850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3851 test $ac_status = 0; }
3852 then :
33193853 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
33203854 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
33213855 # in a Makefile. We should not override ac_cv_exeext if it was cached,
33323866 # certainly right.
33333867 break;;
33343868 *.* )
3335 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3869 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
33363870 then :; else
33373871 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
33383872 fi
33483882 done
33493883 test "$ac_cv_exeext" = no && ac_cv_exeext=
33503884
3351 else
3885 else $as_nop
33523886 ac_file=''
33533887 fi
3354 if test -z "$ac_file"; then :
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356 $as_echo "no" >&6; }
3357 $as_echo "$as_me: failed program was:" >&5
3888 if test -z "$ac_file"
3889 then :
3890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3891 printf "%s\n" "no" >&6; }
3892 printf "%s\n" "$as_me: failed program was:" >&5
33583893 sed 's/^/| /' conftest.$ac_ext >&5
33593894
3360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3895 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3896 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
33623897 as_fn_error 77 "C compiler cannot create executables
33633898 See \`config.log' for more details" "$LINENO" 5; }
3364 else
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3366 $as_echo "yes" >&6; }
3367 fi
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3369 $as_echo_n "checking for C compiler default output file name... " >&6; }
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3371 $as_echo "$ac_file" >&6; }
3899 else $as_nop
3900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3901 printf "%s\n" "yes" >&6; }
3902 fi
3903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3904 printf %s "checking for C compiler default output file name... " >&6; }
3905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3906 printf "%s\n" "$ac_file" >&6; }
33723907 ac_exeext=$ac_cv_exeext
33733908
33743909 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
33753910 ac_clean_files=$ac_clean_files_save
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3377 $as_echo_n "checking for suffix of executables... " >&6; }
3911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3912 printf %s "checking for suffix of executables... " >&6; }
33783913 if { { ac_try="$ac_link"
33793914 case "(($ac_try" in
33803915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33813916 *) ac_try_echo=$ac_try;;
33823917 esac
33833918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3384 $as_echo "$ac_try_echo"; } >&5
3919 printf "%s\n" "$ac_try_echo"; } >&5
33853920 (eval "$ac_link") 2>&5
33863921 ac_status=$?
3387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3388 test $ac_status = 0; }; then :
3922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3923 test $ac_status = 0; }
3924 then :
33893925 # If both `conftest.exe' and `conftest' are `present' (well, observable)
33903926 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
33913927 # work properly (i.e., refer to `conftest.exe'), while it won't with
33993935 * ) break;;
34003936 esac
34013937 done
3402 else
3403 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3404 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3938 else $as_nop
3939 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3940 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
34053941 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
34063942 See \`config.log' for more details" "$LINENO" 5; }
34073943 fi
34083944 rm -f conftest conftest$ac_cv_exeext
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3410 $as_echo "$ac_cv_exeext" >&6; }
3945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3946 printf "%s\n" "$ac_cv_exeext" >&6; }
34113947
34123948 rm -f conftest.$ac_ext
34133949 EXEEXT=$ac_cv_exeext
34163952 /* end confdefs.h. */
34173953 #include <stdio.h>
34183954 int
3419 main ()
3955 main (void)
34203956 {
34213957 FILE *f = fopen ("conftest.out", "w");
34223958 return ferror (f) || fclose (f) != 0;
34283964 ac_clean_files="$ac_clean_files conftest.out"
34293965 # Check that the compiler produces executables we can run. If not, either
34303966 # the compiler is broken, or we cross compile.
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3432 $as_echo_n "checking whether we are cross compiling... " >&6; }
3967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3968 printf %s "checking whether we are cross compiling... " >&6; }
34333969 if test "$cross_compiling" != yes; then
34343970 { { ac_try="$ac_link"
34353971 case "(($ac_try" in
34373973 *) ac_try_echo=$ac_try;;
34383974 esac
34393975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3440 $as_echo "$ac_try_echo"; } >&5
3976 printf "%s\n" "$ac_try_echo"; } >&5
34413977 (eval "$ac_link") 2>&5
34423978 ac_status=$?
3443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34443980 test $ac_status = 0; }
34453981 if { ac_try='./conftest$ac_cv_exeext'
34463982 { { case "(($ac_try" in
34483984 *) ac_try_echo=$ac_try;;
34493985 esac
34503986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3451 $as_echo "$ac_try_echo"; } >&5
3987 printf "%s\n" "$ac_try_echo"; } >&5
34523988 (eval "$ac_try") 2>&5
34533989 ac_status=$?
3454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34553991 test $ac_status = 0; }; }; then
34563992 cross_compiling=no
34573993 else
34583994 if test "$cross_compiling" = maybe; then
34593995 cross_compiling=yes
34603996 else
3461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3463 as_fn_error $? "cannot run C compiled programs.
3997 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3998 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3999 as_fn_error 77 "cannot run C compiled programs.
34644000 If you meant to cross compile, use \`--host'.
34654001 See \`config.log' for more details" "$LINENO" 5; }
34664002 fi
34674003 fi
34684004 fi
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3470 $as_echo "$cross_compiling" >&6; }
4005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4006 printf "%s\n" "$cross_compiling" >&6; }
34714007
34724008 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
34734009 ac_clean_files=$ac_clean_files_save
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3475 $as_echo_n "checking for suffix of object files... " >&6; }
3476 if ${ac_cv_objext+:} false; then :
3477 $as_echo_n "(cached) " >&6
3478 else
4010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4011 printf %s "checking for suffix of object files... " >&6; }
4012 if test ${ac_cv_objext+y}
4013 then :
4014 printf %s "(cached) " >&6
4015 else $as_nop
34794016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34804017 /* end confdefs.h. */
34814018
34824019 int
3483 main ()
4020 main (void)
34844021 {
34854022
34864023 ;
34944031 *) ac_try_echo=$ac_try;;
34954032 esac
34964033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3497 $as_echo "$ac_try_echo"; } >&5
4034 printf "%s\n" "$ac_try_echo"; } >&5
34984035 (eval "$ac_compile") 2>&5
34994036 ac_status=$?
3500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3501 test $ac_status = 0; }; then :
4037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4038 test $ac_status = 0; }
4039 then :
35024040 for ac_file in conftest.o conftest.obj conftest.*; do
35034041 test -f "$ac_file" || continue;
35044042 case $ac_file in
35074045 break;;
35084046 esac
35094047 done
3510 else
3511 $as_echo "$as_me: failed program was:" >&5
4048 else $as_nop
4049 printf "%s\n" "$as_me: failed program was:" >&5
35124050 sed 's/^/| /' conftest.$ac_ext >&5
35134051
3514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4052 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4053 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
35164054 as_fn_error $? "cannot compute suffix of object files: cannot compile
35174055 See \`config.log' for more details" "$LINENO" 5; }
35184056 fi
35194057 rm -f conftest.$ac_cv_objext conftest.$ac_ext
35204058 fi
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3522 $as_echo "$ac_cv_objext" >&6; }
4059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4060 printf "%s\n" "$ac_cv_objext" >&6; }
35234061 OBJEXT=$ac_cv_objext
35244062 ac_objext=$OBJEXT
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3526 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3527 if ${ac_cv_c_compiler_gnu+:} false; then :
3528 $as_echo_n "(cached) " >&6
3529 else
4063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4064 printf %s "checking whether the compiler supports GNU C... " >&6; }
4065 if test ${ac_cv_c_compiler_gnu+y}
4066 then :
4067 printf %s "(cached) " >&6
4068 else $as_nop
35304069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35314070 /* end confdefs.h. */
35324071
35334072 int
3534 main ()
4073 main (void)
35354074 {
35364075 #ifndef __GNUC__
35374076 choke me
35414080 return 0;
35424081 }
35434082 _ACEOF
3544 if ac_fn_c_try_compile "$LINENO"; then :
4083 if ac_fn_c_try_compile "$LINENO"
4084 then :
35454085 ac_compiler_gnu=yes
3546 else
4086 else $as_nop
35474087 ac_compiler_gnu=no
35484088 fi
3549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4089 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35504090 ac_cv_c_compiler_gnu=$ac_compiler_gnu
35514091
35524092 fi
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3554 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4094 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4096
35554097 if test $ac_compiler_gnu = yes; then
35564098 GCC=yes
35574099 else
35584100 GCC=
35594101 fi
3560 ac_test_CFLAGS=${CFLAGS+set}
4102 ac_test_CFLAGS=${CFLAGS+y}
35614103 ac_save_CFLAGS=$CFLAGS
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3563 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3564 if ${ac_cv_prog_cc_g+:} false; then :
3565 $as_echo_n "(cached) " >&6
3566 else
4104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4105 printf %s "checking whether $CC accepts -g... " >&6; }
4106 if test ${ac_cv_prog_cc_g+y}
4107 then :
4108 printf %s "(cached) " >&6
4109 else $as_nop
35674110 ac_save_c_werror_flag=$ac_c_werror_flag
35684111 ac_c_werror_flag=yes
35694112 ac_cv_prog_cc_g=no
35724115 /* end confdefs.h. */
35734116
35744117 int
3575 main ()
4118 main (void)
35764119 {
35774120
35784121 ;
35794122 return 0;
35804123 }
35814124 _ACEOF
3582 if ac_fn_c_try_compile "$LINENO"; then :
4125 if ac_fn_c_try_compile "$LINENO"
4126 then :
35834127 ac_cv_prog_cc_g=yes
3584 else
4128 else $as_nop
35854129 CFLAGS=""
35864130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35874131 /* end confdefs.h. */
35884132
35894133 int
3590 main ()
4134 main (void)
35914135 {
35924136
35934137 ;
35944138 return 0;
35954139 }
35964140 _ACEOF
3597 if ac_fn_c_try_compile "$LINENO"; then :
3598
3599 else
4141 if ac_fn_c_try_compile "$LINENO"
4142 then :
4143
4144 else $as_nop
36004145 ac_c_werror_flag=$ac_save_c_werror_flag
36014146 CFLAGS="-g"
36024147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36034148 /* end confdefs.h. */
36044149
36054150 int
3606 main ()
4151 main (void)
36074152 {
36084153
36094154 ;
36104155 return 0;
36114156 }
36124157 _ACEOF
3613 if ac_fn_c_try_compile "$LINENO"; then :
4158 if ac_fn_c_try_compile "$LINENO"
4159 then :
36144160 ac_cv_prog_cc_g=yes
36154161 fi
3616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617 fi
3618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3619 fi
3620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4162 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4163 fi
4164 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4165 fi
4166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36214167 ac_c_werror_flag=$ac_save_c_werror_flag
36224168 fi
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3624 $as_echo "$ac_cv_prog_cc_g" >&6; }
3625 if test "$ac_test_CFLAGS" = set; then
4169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4170 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4171 if test $ac_test_CFLAGS; then
36264172 CFLAGS=$ac_save_CFLAGS
36274173 elif test $ac_cv_prog_cc_g = yes; then
36284174 if test "$GCC" = yes; then
36374183 CFLAGS=
36384184 fi
36394185 fi
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3641 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3642 if ${ac_cv_prog_cc_c89+:} false; then :
3643 $as_echo_n "(cached) " >&6
3644 else
4186 ac_prog_cc_stdc=no
4187 if test x$ac_prog_cc_stdc = xno
4188 then :
4189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4190 printf %s "checking for $CC option to enable C11 features... " >&6; }
4191 if test ${ac_cv_prog_cc_c11+y}
4192 then :
4193 printf %s "(cached) " >&6
4194 else $as_nop
4195 ac_cv_prog_cc_c11=no
4196 ac_save_CC=$CC
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4199 $ac_c_conftest_c11_program
4200 _ACEOF
4201 for ac_arg in '' -std=gnu11
4202 do
4203 CC="$ac_save_CC $ac_arg"
4204 if ac_fn_c_try_compile "$LINENO"
4205 then :
4206 ac_cv_prog_cc_c11=$ac_arg
4207 fi
4208 rm -f core conftest.err conftest.$ac_objext conftest.beam
4209 test "x$ac_cv_prog_cc_c11" != "xno" && break
4210 done
4211 rm -f conftest.$ac_ext
4212 CC=$ac_save_CC
4213 fi
4214
4215 if test "x$ac_cv_prog_cc_c11" = xno
4216 then :
4217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4218 printf "%s\n" "unsupported" >&6; }
4219 else $as_nop
4220 if test "x$ac_cv_prog_cc_c11" = x
4221 then :
4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4223 printf "%s\n" "none needed" >&6; }
4224 else $as_nop
4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4226 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4227 CC="$CC $ac_cv_prog_cc_c11"
4228 fi
4229 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4230 ac_prog_cc_stdc=c11
4231 fi
4232 fi
4233 if test x$ac_prog_cc_stdc = xno
4234 then :
4235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4236 printf %s "checking for $CC option to enable C99 features... " >&6; }
4237 if test ${ac_cv_prog_cc_c99+y}
4238 then :
4239 printf %s "(cached) " >&6
4240 else $as_nop
4241 ac_cv_prog_cc_c99=no
4242 ac_save_CC=$CC
4243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244 /* end confdefs.h. */
4245 $ac_c_conftest_c99_program
4246 _ACEOF
4247 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4248 do
4249 CC="$ac_save_CC $ac_arg"
4250 if ac_fn_c_try_compile "$LINENO"
4251 then :
4252 ac_cv_prog_cc_c99=$ac_arg
4253 fi
4254 rm -f core conftest.err conftest.$ac_objext conftest.beam
4255 test "x$ac_cv_prog_cc_c99" != "xno" && break
4256 done
4257 rm -f conftest.$ac_ext
4258 CC=$ac_save_CC
4259 fi
4260
4261 if test "x$ac_cv_prog_cc_c99" = xno
4262 then :
4263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4264 printf "%s\n" "unsupported" >&6; }
4265 else $as_nop
4266 if test "x$ac_cv_prog_cc_c99" = x
4267 then :
4268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4269 printf "%s\n" "none needed" >&6; }
4270 else $as_nop
4271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4272 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4273 CC="$CC $ac_cv_prog_cc_c99"
4274 fi
4275 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4276 ac_prog_cc_stdc=c99
4277 fi
4278 fi
4279 if test x$ac_prog_cc_stdc = xno
4280 then :
4281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4282 printf %s "checking for $CC option to enable C89 features... " >&6; }
4283 if test ${ac_cv_prog_cc_c89+y}
4284 then :
4285 printf %s "(cached) " >&6
4286 else $as_nop
36454287 ac_cv_prog_cc_c89=no
36464288 ac_save_CC=$CC
36474289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36484290 /* end confdefs.h. */
3649 #include <stdarg.h>
3650 #include <stdio.h>
3651 struct stat;
3652 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3653 struct buf { int x; };
3654 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3655 static char *e (p, i)
3656 char **p;
3657 int i;
3658 {
3659 return p[i];
3660 }
3661 static char *f (char * (*g) (char **, int), char **p, ...)
3662 {
3663 char *s;
3664 va_list v;
3665 va_start (v,p);
3666 s = g (p, va_arg (v,int));
3667 va_end (v);
3668 return s;
3669 }
3670
3671 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3672 function prototypes and stuff, but not '\xHH' hex character constants.
3673 These don't provoke an error unfortunately, instead are silently treated
3674 as 'x'. The following induces an error, until -std is added to get
3675 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3676 array size at least. It's necessary to write '\x00'==0 to get something
3677 that's true only with -std. */
3678 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3679
3680 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3681 inside strings and character constants. */
3682 #define FOO(x) 'x'
3683 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3684
3685 int test (int i, double x);
3686 struct s1 {int (*f) (int a);};
3687 struct s2 {int (*f) (double a);};
3688 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3689 int argc;
3690 char **argv;
3691 int
3692 main ()
3693 {
3694 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3695 ;
3696 return 0;
3697 }
4291 $ac_c_conftest_c89_program
36984292 _ACEOF
3699 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3700 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4293 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
37014294 do
37024295 CC="$ac_save_CC $ac_arg"
3703 if ac_fn_c_try_compile "$LINENO"; then :
4296 if ac_fn_c_try_compile "$LINENO"
4297 then :
37044298 ac_cv_prog_cc_c89=$ac_arg
37054299 fi
3706 rm -f core conftest.err conftest.$ac_objext
4300 rm -f core conftest.err conftest.$ac_objext conftest.beam
37074301 test "x$ac_cv_prog_cc_c89" != "xno" && break
37084302 done
37094303 rm -f conftest.$ac_ext
37104304 CC=$ac_save_CC
3711
3712 fi
3713 # AC_CACHE_VAL
3714 case "x$ac_cv_prog_cc_c89" in
3715 x)
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3717 $as_echo "none needed" >&6; } ;;
3718 xno)
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3720 $as_echo "unsupported" >&6; } ;;
3721 *)
3722 CC="$CC $ac_cv_prog_cc_c89"
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3724 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3725 esac
3726 if test "x$ac_cv_prog_cc_c89" != xno; then :
3727
4305 fi
4306
4307 if test "x$ac_cv_prog_cc_c89" = xno
4308 then :
4309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4310 printf "%s\n" "unsupported" >&6; }
4311 else $as_nop
4312 if test "x$ac_cv_prog_cc_c89" = x
4313 then :
4314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4315 printf "%s\n" "none needed" >&6; }
4316 else $as_nop
4317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4318 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4319 CC="$CC $ac_cv_prog_cc_c89"
4320 fi
4321 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4322 ac_prog_cc_stdc=c89
4323 fi
37284324 fi
37294325
37304326 ac_ext=c
37334329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37344330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37354331
3736 ac_ext=c
4332
4333 ac_ext=c
37374334 ac_cpp='$CPP $CPPFLAGS'
37384335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37394336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37404337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3742 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3743 if ${am_cv_prog_cc_c_o+:} false; then :
3744 $as_echo_n "(cached) " >&6
3745 else
4338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4339 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4340 if test ${am_cv_prog_cc_c_o+y}
4341 then :
4342 printf %s "(cached) " >&6
4343 else $as_nop
37464344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37474345 /* end confdefs.h. */
37484346
37494347 int
3750 main ()
4348 main (void)
37514349 {
37524350
37534351 ;
37754373 rm -f core conftest*
37764374 unset am_i
37774375 fi
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3779 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4377 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
37804378 if test "$am_cv_prog_cc_c_o" != yes; then
37814379 # Losing compiler, so override with the script.
37824380 # FIXME: It is wrong to rewrite CC.
37944392
37954393 depcc="$CC" am_compiler_list=
37964394
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3798 $as_echo_n "checking dependency style of $depcc... " >&6; }
3799 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3800 $as_echo_n "(cached) " >&6
3801 else
4395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4396 printf %s "checking dependency style of $depcc... " >&6; }
4397 if test ${am_cv_CC_dependencies_compiler_type+y}
4398 then :
4399 printf %s "(cached) " >&6
4400 else $as_nop
38024401 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
38034402 # We make a subdir and do the tests there. Otherwise we can end up
38044403 # making bogus files that we don't know about and never remove. For
39054504 fi
39064505
39074506 fi
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3909 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4508 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
39104509 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
39114510
39124511 if
39214520
39224521
39234522
3924 ac_ext=c
3925 ac_cpp='$CPP $CPPFLAGS'
3926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3930 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3931 # On Suns, sometimes $CPP names a directory.
3932 if test -n "$CPP" && test -d "$CPP"; then
3933 CPP=
3934 fi
3935 if test -z "$CPP"; then
3936 if ${ac_cv_prog_CPP+:} false; then :
3937 $as_echo_n "(cached) " >&6
3938 else
3939 # Double quotes because CPP needs to be expanded
3940 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3941 do
3942 ac_preproc_ok=false
3943 for ac_c_preproc_warn_flag in '' yes
4523 ac_header= ac_cache=
4524 for ac_item in $ac_header_c_list
39444525 do
3945 # Use a header file that comes with gcc, so configuring glibc
3946 # with a fresh cross-compiler works.
3947 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3948 # <limits.h> exists even on freestanding compilers.
3949 # On the NeXT, cc -E runs the code through the compiler's parser,
3950 # not just through cpp. "Syntax error" is here to catch this case.
4526 if test $ac_cache; then
4527 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4528 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4529 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4530 fi
4531 ac_header= ac_cache=
4532 elif test $ac_header; then
4533 ac_cache=$ac_item
4534 else
4535 ac_header=$ac_item
4536 fi
4537 done
4538
4539
4540
4541
4542
4543
4544
4545
4546 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4547 then :
4548
4549 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4550
4551 fi
4552
4553
4554
4555
4556
4557
4558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4559 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4560 if test ${ac_cv_safe_to_define___extensions__+y}
4561 then :
4562 printf %s "(cached) " >&6
4563 else $as_nop
39514564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39524565 /* end confdefs.h. */
3953 #ifdef __STDC__
3954 # include <limits.h>
3955 #else
3956 # include <assert.h>
3957 #endif
3958 Syntax error
3959 _ACEOF
3960 if ac_fn_c_try_cpp "$LINENO"; then :
3961
3962 else
3963 # Broken: fails on valid input.
3964 continue
3965 fi
3966 rm -f conftest.err conftest.i conftest.$ac_ext
3967
3968 # OK, works on sane cases. Now check whether nonexistent headers
3969 # can be detected and how.
3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971 /* end confdefs.h. */
3972 #include <ac_nonexistent.h>
3973 _ACEOF
3974 if ac_fn_c_try_cpp "$LINENO"; then :
3975 # Broken: success on invalid input.
3976 continue
3977 else
3978 # Passes both tests.
3979 ac_preproc_ok=:
3980 break
3981 fi
3982 rm -f conftest.err conftest.i conftest.$ac_ext
3983
3984 done
3985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3986 rm -f conftest.i conftest.err conftest.$ac_ext
3987 if $ac_preproc_ok; then :
3988 break
3989 fi
3990
3991 done
3992 ac_cv_prog_CPP=$CPP
3993
3994 fi
3995 CPP=$ac_cv_prog_CPP
3996 else
3997 ac_cv_prog_CPP=$CPP
3998 fi
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4000 $as_echo "$CPP" >&6; }
4001 ac_preproc_ok=false
4002 for ac_c_preproc_warn_flag in '' yes
4003 do
4004 # Use a header file that comes with gcc, so configuring glibc
4005 # with a fresh cross-compiler works.
4006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4007 # <limits.h> exists even on freestanding compilers.
4008 # On the NeXT, cc -E runs the code through the compiler's parser,
4009 # not just through cpp. "Syntax error" is here to catch this case.
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4012 #ifdef __STDC__
4013 # include <limits.h>
4014 #else
4015 # include <assert.h>
4016 #endif
4017 Syntax error
4018 _ACEOF
4019 if ac_fn_c_try_cpp "$LINENO"; then :
4020
4021 else
4022 # Broken: fails on valid input.
4023 continue
4024 fi
4025 rm -f conftest.err conftest.i conftest.$ac_ext
4026
4027 # OK, works on sane cases. Now check whether nonexistent headers
4028 # can be detected and how.
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4031 #include <ac_nonexistent.h>
4032 _ACEOF
4033 if ac_fn_c_try_cpp "$LINENO"; then :
4034 # Broken: success on invalid input.
4035 continue
4036 else
4037 # Passes both tests.
4038 ac_preproc_ok=:
4039 break
4040 fi
4041 rm -f conftest.err conftest.i conftest.$ac_ext
4042
4043 done
4044 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4045 rm -f conftest.i conftest.err conftest.$ac_ext
4046 if $ac_preproc_ok; then :
4047
4048 else
4049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4051 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4052 See \`config.log' for more details" "$LINENO" 5; }
4053 fi
4054
4055 ac_ext=c
4056 ac_cpp='$CPP $CPPFLAGS'
4057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4060
4061
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4063 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4064 if ${ac_cv_path_GREP+:} false; then :
4065 $as_echo_n "(cached) " >&6
4066 else
4067 if test -z "$GREP"; then
4068 ac_path_GREP_found=false
4069 # Loop through the user's path and test for each of PROGNAME-LIST
4070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4072 do
4073 IFS=$as_save_IFS
4074 test -z "$as_dir" && as_dir=.
4075 for ac_prog in grep ggrep; do
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4078 as_fn_executable_p "$ac_path_GREP" || continue
4079 # Check for GNU ac_path_GREP and select it if it is found.
4080 # Check for GNU $ac_path_GREP
4081 case `"$ac_path_GREP" --version 2>&1` in
4082 *GNU*)
4083 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4084 *)
4085 ac_count=0
4086 $as_echo_n 0123456789 >"conftest.in"
4087 while :
4088 do
4089 cat "conftest.in" "conftest.in" >"conftest.tmp"
4090 mv "conftest.tmp" "conftest.in"
4091 cp "conftest.in" "conftest.nl"
4092 $as_echo 'GREP' >> "conftest.nl"
4093 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4094 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4095 as_fn_arith $ac_count + 1 && ac_count=$as_val
4096 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4097 # Best one so far, save it but keep looking for a better one
4098 ac_cv_path_GREP="$ac_path_GREP"
4099 ac_path_GREP_max=$ac_count
4100 fi
4101 # 10*(2^10) chars as input seems more than enough
4102 test $ac_count -gt 10 && break
4103 done
4104 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4105 esac
4106
4107 $ac_path_GREP_found && break 3
4108 done
4109 done
4110 done
4111 IFS=$as_save_IFS
4112 if test -z "$ac_cv_path_GREP"; then
4113 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4114 fi
4115 else
4116 ac_cv_path_GREP=$GREP
4117 fi
4118
4119 fi
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4121 $as_echo "$ac_cv_path_GREP" >&6; }
4122 GREP="$ac_cv_path_GREP"
4123
4124
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4126 $as_echo_n "checking for egrep... " >&6; }
4127 if ${ac_cv_path_EGREP+:} false; then :
4128 $as_echo_n "(cached) " >&6
4129 else
4130 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4131 then ac_cv_path_EGREP="$GREP -E"
4132 else
4133 if test -z "$EGREP"; then
4134 ac_path_EGREP_found=false
4135 # Loop through the user's path and test for each of PROGNAME-LIST
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4138 do
4139 IFS=$as_save_IFS
4140 test -z "$as_dir" && as_dir=.
4141 for ac_prog in egrep; do
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4144 as_fn_executable_p "$ac_path_EGREP" || continue
4145 # Check for GNU ac_path_EGREP and select it if it is found.
4146 # Check for GNU $ac_path_EGREP
4147 case `"$ac_path_EGREP" --version 2>&1` in
4148 *GNU*)
4149 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4150 *)
4151 ac_count=0
4152 $as_echo_n 0123456789 >"conftest.in"
4153 while :
4154 do
4155 cat "conftest.in" "conftest.in" >"conftest.tmp"
4156 mv "conftest.tmp" "conftest.in"
4157 cp "conftest.in" "conftest.nl"
4158 $as_echo 'EGREP' >> "conftest.nl"
4159 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4160 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4161 as_fn_arith $ac_count + 1 && ac_count=$as_val
4162 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4163 # Best one so far, save it but keep looking for a better one
4164 ac_cv_path_EGREP="$ac_path_EGREP"
4165 ac_path_EGREP_max=$ac_count
4166 fi
4167 # 10*(2^10) chars as input seems more than enough
4168 test $ac_count -gt 10 && break
4169 done
4170 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4171 esac
4172
4173 $ac_path_EGREP_found && break 3
4174 done
4175 done
4176 done
4177 IFS=$as_save_IFS
4178 if test -z "$ac_cv_path_EGREP"; then
4179 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4180 fi
4181 else
4182 ac_cv_path_EGREP=$EGREP
4183 fi
4184
4185 fi
4186 fi
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4188 $as_echo "$ac_cv_path_EGREP" >&6; }
4189 EGREP="$ac_cv_path_EGREP"
4190
4191
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4193 $as_echo_n "checking for ANSI C header files... " >&6; }
4194 if ${ac_cv_header_stdc+:} false; then :
4195 $as_echo_n "(cached) " >&6
4196 else
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4199 #include <stdlib.h>
4200 #include <stdarg.h>
4201 #include <string.h>
4202 #include <float.h>
4203
4566
4567 # define __EXTENSIONS__ 1
4568 $ac_includes_default
42044569 int
4205 main ()
4570 main (void)
42064571 {
42074572
42084573 ;
42094574 return 0;
42104575 }
42114576 _ACEOF
4212 if ac_fn_c_try_compile "$LINENO"; then :
4213 ac_cv_header_stdc=yes
4214 else
4215 ac_cv_header_stdc=no
4216 fi
4217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4218
4219 if test $ac_cv_header_stdc = yes; then
4220 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4577 if ac_fn_c_try_compile "$LINENO"
4578 then :
4579 ac_cv_safe_to_define___extensions__=yes
4580 else $as_nop
4581 ac_cv_safe_to_define___extensions__=no
4582 fi
4583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4584 fi
4585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4586 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4587
4588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4589 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4590 if test ${ac_cv_should_define__xopen_source+y}
4591 then :
4592 printf %s "(cached) " >&6
4593 else $as_nop
4594 ac_cv_should_define__xopen_source=no
4595 if test $ac_cv_header_wchar_h = yes
4596 then :
42214597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42224598 /* end confdefs.h. */
4223 #include <string.h>
4224
4225 _ACEOF
4226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4227 $EGREP "memchr" >/dev/null 2>&1; then :
4228
4229 else
4230 ac_cv_header_stdc=no
4231 fi
4232 rm -f conftest*
4233
4234 fi
4235
4236 if test $ac_cv_header_stdc = yes; then
4237 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4240 #include <stdlib.h>
4241
4242 _ACEOF
4243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4244 $EGREP "free" >/dev/null 2>&1; then :
4245
4246 else
4247 ac_cv_header_stdc=no
4248 fi
4249 rm -f conftest*
4250
4251 fi
4252
4253 if test $ac_cv_header_stdc = yes; then
4254 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4255 if test "$cross_compiling" = yes; then :
4256 :
4257 else
4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h. */
4260 #include <ctype.h>
4261 #include <stdlib.h>
4262 #if ((' ' & 0x0FF) == 0x020)
4263 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4264 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4265 #else
4266 # define ISLOWER(c) \
4267 (('a' <= (c) && (c) <= 'i') \
4268 || ('j' <= (c) && (c) <= 'r') \
4269 || ('s' <= (c) && (c) <= 'z'))
4270 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4271 #endif
4272
4273 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4599
4600 #include <wchar.h>
4601 mbstate_t x;
42744602 int
4275 main ()
4276 {
4277 int i;
4278 for (i = 0; i < 256; i++)
4279 if (XOR (islower (i), ISLOWER (i))
4280 || toupper (i) != TOUPPER (i))
4281 return 2;
4282 return 0;
4283 }
4284 _ACEOF
4285 if ac_fn_c_try_run "$LINENO"; then :
4286
4287 else
4288 ac_cv_header_stdc=no
4289 fi
4290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4291 conftest.$ac_objext conftest.beam conftest.$ac_ext
4292 fi
4293
4294 fi
4295 fi
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4297 $as_echo "$ac_cv_header_stdc" >&6; }
4298 if test $ac_cv_header_stdc = yes; then
4299
4300 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4301
4302 fi
4303
4304 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4305 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4306 inttypes.h stdint.h unistd.h
4307 do :
4308 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4309 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4310 "
4311 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4312 cat >>confdefs.h <<_ACEOF
4313 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4314 _ACEOF
4315
4316 fi
4317
4318 done
4319
4320
4321
4322 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4323 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4324 MINIX=yes
4325 else
4326 MINIX=
4327 fi
4328
4329
4330 if test "$MINIX" = yes; then
4331
4332 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4333
4334
4335 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4336
4337
4338 $as_echo "#define _MINIX 1" >>confdefs.h
4339
4340 fi
4341
4342
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4344 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4345 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4346 $as_echo_n "(cached) " >&6
4347 else
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4350
4351 # define __EXTENSIONS__ 1
4352 $ac_includes_default
4353 int
4354 main ()
4603 main (void)
43554604 {
43564605
43574606 ;
43584607 return 0;
43594608 }
43604609 _ACEOF
4361 if ac_fn_c_try_compile "$LINENO"; then :
4362 ac_cv_safe_to_define___extensions__=yes
4363 else
4364 ac_cv_safe_to_define___extensions__=no
4365 fi
4366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4367 fi
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4369 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4370 test $ac_cv_safe_to_define___extensions__ = yes &&
4371 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4372
4373 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4374
4375 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4376
4377 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4378
4379 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4380
4610 if ac_fn_c_try_compile "$LINENO"
4611 then :
4612
4613 else $as_nop
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615 /* end confdefs.h. */
4616
4617 #define _XOPEN_SOURCE 500
4618 #include <wchar.h>
4619 mbstate_t x;
4620 int
4621 main (void)
4622 {
4623
4624 ;
4625 return 0;
4626 }
4627 _ACEOF
4628 if ac_fn_c_try_compile "$LINENO"
4629 then :
4630 ac_cv_should_define__xopen_source=yes
4631 fi
4632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4633 fi
4634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4635 fi
4636 fi
4637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4638 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4639
4640 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4641
4642 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4643
4644 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4645
4646 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4647
4648 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4649
4650 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4651
4652 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4653
4654 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4655
4656 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4657
4658 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4659
4660 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4661
4662 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4663
4664 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4665
4666 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4667
4668 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4669
4670 if test $ac_cv_header_minix_config_h = yes
4671 then :
4672 MINIX=yes
4673 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4674
4675 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4676
4677 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4678
4679 else $as_nop
4680 MINIX=
4681 fi
4682 if test $ac_cv_safe_to_define___extensions__ = yes
4683 then :
4684 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4685
4686 fi
4687 if test $ac_cv_should_define__xopen_source = yes
4688 then :
4689 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4690
4691 fi
43814692
43824693
43834694 ac_ext=c
43884699 if test -n "$ac_tool_prefix"; then
43894700 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
43904701 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4392 $as_echo_n "checking for $ac_word... " >&6; }
4393 if ${ac_cv_prog_CC+:} false; then :
4394 $as_echo_n "(cached) " >&6
4395 else
4702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703 printf %s "checking for $ac_word... " >&6; }
4704 if test ${ac_cv_prog_CC+y}
4705 then :
4706 printf %s "(cached) " >&6
4707 else $as_nop
43964708 if test -n "$CC"; then
43974709 ac_cv_prog_CC="$CC" # Let the user override the test.
43984710 else
44004712 for as_dir in $PATH
44014713 do
44024714 IFS=$as_save_IFS
4403 test -z "$as_dir" && as_dir=.
4715 case $as_dir in #(((
4716 '') as_dir=./ ;;
4717 */) ;;
4718 *) as_dir=$as_dir/ ;;
4719 esac
44044720 for ac_exec_ext in '' $ac_executable_extensions; do
4405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4721 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44064722 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
44084724 break 2
44094725 fi
44104726 done
44154731 fi
44164732 CC=$ac_cv_prog_CC
44174733 if test -n "$CC"; then
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4419 $as_echo "$CC" >&6; }
4734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4735 printf "%s\n" "$CC" >&6; }
44204736 else
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4422 $as_echo "no" >&6; }
4737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4738 printf "%s\n" "no" >&6; }
44234739 fi
44244740
44254741
44284744 ac_ct_CC=$CC
44294745 # Extract the first word of "gcc", so it can be a program name with args.
44304746 set dummy gcc; ac_word=$2
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4432 $as_echo_n "checking for $ac_word... " >&6; }
4433 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4434 $as_echo_n "(cached) " >&6
4435 else
4747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4748 printf %s "checking for $ac_word... " >&6; }
4749 if test ${ac_cv_prog_ac_ct_CC+y}
4750 then :
4751 printf %s "(cached) " >&6
4752 else $as_nop
44364753 if test -n "$ac_ct_CC"; then
44374754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
44384755 else
44404757 for as_dir in $PATH
44414758 do
44424759 IFS=$as_save_IFS
4443 test -z "$as_dir" && as_dir=.
4760 case $as_dir in #(((
4761 '') as_dir=./ ;;
4762 */) ;;
4763 *) as_dir=$as_dir/ ;;
4764 esac
44444765 for ac_exec_ext in '' $ac_executable_extensions; do
4445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4766 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44464767 ac_cv_prog_ac_ct_CC="gcc"
4447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4768 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
44484769 break 2
44494770 fi
44504771 done
44554776 fi
44564777 ac_ct_CC=$ac_cv_prog_ac_ct_CC
44574778 if test -n "$ac_ct_CC"; then
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4459 $as_echo "$ac_ct_CC" >&6; }
4779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4780 printf "%s\n" "$ac_ct_CC" >&6; }
44604781 else
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4462 $as_echo "no" >&6; }
4782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783 printf "%s\n" "no" >&6; }
44634784 fi
44644785
44654786 if test "x$ac_ct_CC" = x; then
44674788 else
44684789 case $cross_compiling:$ac_tool_warned in
44694790 yes:)
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4792 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
44724793 ac_tool_warned=yes ;;
44734794 esac
44744795 CC=$ac_ct_CC
44814802 if test -n "$ac_tool_prefix"; then
44824803 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
44834804 set dummy ${ac_tool_prefix}cc; ac_word=$2
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4485 $as_echo_n "checking for $ac_word... " >&6; }
4486 if ${ac_cv_prog_CC+:} false; then :
4487 $as_echo_n "(cached) " >&6
4488 else
4805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806 printf %s "checking for $ac_word... " >&6; }
4807 if test ${ac_cv_prog_CC+y}
4808 then :
4809 printf %s "(cached) " >&6
4810 else $as_nop
44894811 if test -n "$CC"; then
44904812 ac_cv_prog_CC="$CC" # Let the user override the test.
44914813 else
44934815 for as_dir in $PATH
44944816 do
44954817 IFS=$as_save_IFS
4496 test -z "$as_dir" && as_dir=.
4818 case $as_dir in #(((
4819 '') as_dir=./ ;;
4820 */) ;;
4821 *) as_dir=$as_dir/ ;;
4822 esac
44974823 for ac_exec_ext in '' $ac_executable_extensions; do
4498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44994825 ac_cv_prog_CC="${ac_tool_prefix}cc"
4500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
45014827 break 2
45024828 fi
45034829 done
45084834 fi
45094835 CC=$ac_cv_prog_CC
45104836 if test -n "$CC"; then
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4512 $as_echo "$CC" >&6; }
4837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4838 printf "%s\n" "$CC" >&6; }
45134839 else
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4515 $as_echo "no" >&6; }
4840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841 printf "%s\n" "no" >&6; }
45164842 fi
45174843
45184844
45214847 if test -z "$CC"; then
45224848 # Extract the first word of "cc", so it can be a program name with args.
45234849 set dummy cc; ac_word=$2
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4525 $as_echo_n "checking for $ac_word... " >&6; }
4526 if ${ac_cv_prog_CC+:} false; then :
4527 $as_echo_n "(cached) " >&6
4528 else
4850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4851 printf %s "checking for $ac_word... " >&6; }
4852 if test ${ac_cv_prog_CC+y}
4853 then :
4854 printf %s "(cached) " >&6
4855 else $as_nop
45294856 if test -n "$CC"; then
45304857 ac_cv_prog_CC="$CC" # Let the user override the test.
45314858 else
45344861 for as_dir in $PATH
45354862 do
45364863 IFS=$as_save_IFS
4537 test -z "$as_dir" && as_dir=.
4864 case $as_dir in #(((
4865 '') as_dir=./ ;;
4866 */) ;;
4867 *) as_dir=$as_dir/ ;;
4868 esac
45384869 for ac_exec_ext in '' $ac_executable_extensions; do
4539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4540 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4870 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4871 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
45414872 ac_prog_rejected=yes
45424873 continue
45434874 fi
45444875 ac_cv_prog_CC="cc"
4545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
45464877 break 2
45474878 fi
45484879 done
45584889 # However, it has the same basename, so the bogon will be chosen
45594890 # first if we set CC to just the basename; use the full file name.
45604891 shift
4561 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4892 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
45624893 fi
45634894 fi
45644895 fi
45654896 fi
45664897 CC=$ac_cv_prog_CC
45674898 if test -n "$CC"; then
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4569 $as_echo "$CC" >&6; }
4899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4900 printf "%s\n" "$CC" >&6; }
45704901 else
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4572 $as_echo "no" >&6; }
4902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4903 printf "%s\n" "no" >&6; }
45734904 fi
45744905
45754906
45804911 do
45814912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
45824913 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4584 $as_echo_n "checking for $ac_word... " >&6; }
4585 if ${ac_cv_prog_CC+:} false; then :
4586 $as_echo_n "(cached) " >&6
4587 else
4914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4915 printf %s "checking for $ac_word... " >&6; }
4916 if test ${ac_cv_prog_CC+y}
4917 then :
4918 printf %s "(cached) " >&6
4919 else $as_nop
45884920 if test -n "$CC"; then
45894921 ac_cv_prog_CC="$CC" # Let the user override the test.
45904922 else
45924924 for as_dir in $PATH
45934925 do
45944926 IFS=$as_save_IFS
4595 test -z "$as_dir" && as_dir=.
4927 case $as_dir in #(((
4928 '') as_dir=./ ;;
4929 */) ;;
4930 *) as_dir=$as_dir/ ;;
4931 esac
45964932 for ac_exec_ext in '' $ac_executable_extensions; do
4597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4933 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
45984934 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
46004936 break 2
46014937 fi
46024938 done
46074943 fi
46084944 CC=$ac_cv_prog_CC
46094945 if test -n "$CC"; then
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4611 $as_echo "$CC" >&6; }
4946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4947 printf "%s\n" "$CC" >&6; }
46124948 else
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4614 $as_echo "no" >&6; }
4949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950 printf "%s\n" "no" >&6; }
46154951 fi
46164952
46174953
46244960 do
46254961 # Extract the first word of "$ac_prog", so it can be a program name with args.
46264962 set dummy $ac_prog; ac_word=$2
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4628 $as_echo_n "checking for $ac_word... " >&6; }
4629 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4630 $as_echo_n "(cached) " >&6
4631 else
4963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964 printf %s "checking for $ac_word... " >&6; }
4965 if test ${ac_cv_prog_ac_ct_CC+y}
4966 then :
4967 printf %s "(cached) " >&6
4968 else $as_nop
46324969 if test -n "$ac_ct_CC"; then
46334970 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
46344971 else
46364973 for as_dir in $PATH
46374974 do
46384975 IFS=$as_save_IFS
4639 test -z "$as_dir" && as_dir=.
4976 case $as_dir in #(((
4977 '') as_dir=./ ;;
4978 */) ;;
4979 *) as_dir=$as_dir/ ;;
4980 esac
46404981 for ac_exec_ext in '' $ac_executable_extensions; do
4641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4982 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
46424983 ac_cv_prog_ac_ct_CC="$ac_prog"
4643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
46444985 break 2
46454986 fi
46464987 done
46514992 fi
46524993 ac_ct_CC=$ac_cv_prog_ac_ct_CC
46534994 if test -n "$ac_ct_CC"; then
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4655 $as_echo "$ac_ct_CC" >&6; }
4995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4996 printf "%s\n" "$ac_ct_CC" >&6; }
46564997 else
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4658 $as_echo "no" >&6; }
4998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999 printf "%s\n" "no" >&6; }
46595000 fi
46605001
46615002
46675008 else
46685009 case $cross_compiling:$ac_tool_warned in
46695010 yes:)
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5012 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
46725013 ac_tool_warned=yes ;;
46735014 esac
46745015 CC=$ac_ct_CC
46765017 fi
46775018
46785019 fi
4679
4680
4681 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5020 if test -z "$CC"; then
5021 if test -n "$ac_tool_prefix"; then
5022 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5023 set dummy ${ac_tool_prefix}clang; ac_word=$2
5024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5025 printf %s "checking for $ac_word... " >&6; }
5026 if test ${ac_cv_prog_CC+y}
5027 then :
5028 printf %s "(cached) " >&6
5029 else $as_nop
5030 if test -n "$CC"; then
5031 ac_cv_prog_CC="$CC" # Let the user override the test.
5032 else
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 for as_dir in $PATH
5035 do
5036 IFS=$as_save_IFS
5037 case $as_dir in #(((
5038 '') as_dir=./ ;;
5039 */) ;;
5040 *) as_dir=$as_dir/ ;;
5041 esac
5042 for ac_exec_ext in '' $ac_executable_extensions; do
5043 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5044 ac_cv_prog_CC="${ac_tool_prefix}clang"
5045 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5046 break 2
5047 fi
5048 done
5049 done
5050 IFS=$as_save_IFS
5051
5052 fi
5053 fi
5054 CC=$ac_cv_prog_CC
5055 if test -n "$CC"; then
5056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5057 printf "%s\n" "$CC" >&6; }
5058 else
5059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060 printf "%s\n" "no" >&6; }
5061 fi
5062
5063
5064 fi
5065 if test -z "$ac_cv_prog_CC"; then
5066 ac_ct_CC=$CC
5067 # Extract the first word of "clang", so it can be a program name with args.
5068 set dummy clang; ac_word=$2
5069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5070 printf %s "checking for $ac_word... " >&6; }
5071 if test ${ac_cv_prog_ac_ct_CC+y}
5072 then :
5073 printf %s "(cached) " >&6
5074 else $as_nop
5075 if test -n "$ac_ct_CC"; then
5076 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5077 else
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079 for as_dir in $PATH
5080 do
5081 IFS=$as_save_IFS
5082 case $as_dir in #(((
5083 '') as_dir=./ ;;
5084 */) ;;
5085 *) as_dir=$as_dir/ ;;
5086 esac
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5089 ac_cv_prog_ac_ct_CC="clang"
5090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5091 break 2
5092 fi
5093 done
5094 done
5095 IFS=$as_save_IFS
5096
5097 fi
5098 fi
5099 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5100 if test -n "$ac_ct_CC"; then
5101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5102 printf "%s\n" "$ac_ct_CC" >&6; }
5103 else
5104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105 printf "%s\n" "no" >&6; }
5106 fi
5107
5108 if test "x$ac_ct_CC" = x; then
5109 CC=""
5110 else
5111 case $cross_compiling:$ac_tool_warned in
5112 yes:)
5113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5114 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5115 ac_tool_warned=yes ;;
5116 esac
5117 CC=$ac_ct_CC
5118 fi
5119 else
5120 CC="$ac_cv_prog_CC"
5121 fi
5122
5123 fi
5124
5125
5126 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5127 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
46835128 as_fn_error $? "no acceptable C compiler found in \$PATH
46845129 See \`config.log' for more details" "$LINENO" 5; }
46855130
46865131 # Provide some information about the compiler.
4687 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5132 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
46885133 set X $ac_compile
46895134 ac_compiler=$2
4690 for ac_option in --version -v -V -qversion; do
5135 for ac_option in --version -v -V -qversion -version; do
46915136 { { ac_try="$ac_compiler $ac_option >&5"
46925137 case "(($ac_try" in
46935138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46945139 *) ac_try_echo=$ac_try;;
46955140 esac
46965141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4697 $as_echo "$ac_try_echo"; } >&5
5142 printf "%s\n" "$ac_try_echo"; } >&5
46985143 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
46995144 ac_status=$?
47005145 if test -s conftest.err; then
47045149 cat conftest.er1 >&5
47055150 fi
47065151 rm -f conftest.er1 conftest.err
4707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
47085153 test $ac_status = 0; }
47095154 done
47105155
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4712 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4713 if ${ac_cv_c_compiler_gnu+:} false; then :
4714 $as_echo_n "(cached) " >&6
4715 else
5156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5157 printf %s "checking whether the compiler supports GNU C... " >&6; }
5158 if test ${ac_cv_c_compiler_gnu+y}
5159 then :
5160 printf %s "(cached) " >&6
5161 else $as_nop
47165162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47175163 /* end confdefs.h. */
47185164
47195165 int
4720 main ()
5166 main (void)
47215167 {
47225168 #ifndef __GNUC__
47235169 choke me
47275173 return 0;
47285174 }
47295175 _ACEOF
4730 if ac_fn_c_try_compile "$LINENO"; then :
5176 if ac_fn_c_try_compile "$LINENO"
5177 then :
47315178 ac_compiler_gnu=yes
4732 else
5179 else $as_nop
47335180 ac_compiler_gnu=no
47345181 fi
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
47365183 ac_cv_c_compiler_gnu=$ac_compiler_gnu
47375184
47385185 fi
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4740 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5187 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5189
47415190 if test $ac_compiler_gnu = yes; then
47425191 GCC=yes
47435192 else
47445193 GCC=
47455194 fi
4746 ac_test_CFLAGS=${CFLAGS+set}
5195 ac_test_CFLAGS=${CFLAGS+y}
47475196 ac_save_CFLAGS=$CFLAGS
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4749 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4750 if ${ac_cv_prog_cc_g+:} false; then :
4751 $as_echo_n "(cached) " >&6
4752 else
5197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5198 printf %s "checking whether $CC accepts -g... " >&6; }
5199 if test ${ac_cv_prog_cc_g+y}
5200 then :
5201 printf %s "(cached) " >&6
5202 else $as_nop
47535203 ac_save_c_werror_flag=$ac_c_werror_flag
47545204 ac_c_werror_flag=yes
47555205 ac_cv_prog_cc_g=no
47585208 /* end confdefs.h. */
47595209
47605210 int
4761 main ()
5211 main (void)
47625212 {
47635213
47645214 ;
47655215 return 0;
47665216 }
47675217 _ACEOF
4768 if ac_fn_c_try_compile "$LINENO"; then :
5218 if ac_fn_c_try_compile "$LINENO"
5219 then :
47695220 ac_cv_prog_cc_g=yes
4770 else
5221 else $as_nop
47715222 CFLAGS=""
47725223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47735224 /* end confdefs.h. */
47745225
47755226 int
4776 main ()
5227 main (void)
47775228 {
47785229
47795230 ;
47805231 return 0;
47815232 }
47825233 _ACEOF
4783 if ac_fn_c_try_compile "$LINENO"; then :
4784
4785 else
5234 if ac_fn_c_try_compile "$LINENO"
5235 then :
5236
5237 else $as_nop
47865238 ac_c_werror_flag=$ac_save_c_werror_flag
47875239 CFLAGS="-g"
47885240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
47895241 /* end confdefs.h. */
47905242
47915243 int
4792 main ()
5244 main (void)
47935245 {
47945246
47955247 ;
47965248 return 0;
47975249 }
47985250 _ACEOF
4799 if ac_fn_c_try_compile "$LINENO"; then :
5251 if ac_fn_c_try_compile "$LINENO"
5252 then :
48005253 ac_cv_prog_cc_g=yes
48015254 fi
4802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4803 fi
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 fi
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5255 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5256 fi
5257 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5258 fi
5259 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
48075260 ac_c_werror_flag=$ac_save_c_werror_flag
48085261 fi
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4810 $as_echo "$ac_cv_prog_cc_g" >&6; }
4811 if test "$ac_test_CFLAGS" = set; then
5262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5263 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5264 if test $ac_test_CFLAGS; then
48125265 CFLAGS=$ac_save_CFLAGS
48135266 elif test $ac_cv_prog_cc_g = yes; then
48145267 if test "$GCC" = yes; then
48235276 CFLAGS=
48245277 fi
48255278 fi
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4827 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4828 if ${ac_cv_prog_cc_c89+:} false; then :
4829 $as_echo_n "(cached) " >&6
4830 else
5279 ac_prog_cc_stdc=no
5280 if test x$ac_prog_cc_stdc = xno
5281 then :
5282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5283 printf %s "checking for $CC option to enable C11 features... " >&6; }
5284 if test ${ac_cv_prog_cc_c11+y}
5285 then :
5286 printf %s "(cached) " >&6
5287 else $as_nop
5288 ac_cv_prog_cc_c11=no
5289 ac_save_CC=$CC
5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h. */
5292 $ac_c_conftest_c11_program
5293 _ACEOF
5294 for ac_arg in '' -std=gnu11
5295 do
5296 CC="$ac_save_CC $ac_arg"
5297 if ac_fn_c_try_compile "$LINENO"
5298 then :
5299 ac_cv_prog_cc_c11=$ac_arg
5300 fi
5301 rm -f core conftest.err conftest.$ac_objext conftest.beam
5302 test "x$ac_cv_prog_cc_c11" != "xno" && break
5303 done
5304 rm -f conftest.$ac_ext
5305 CC=$ac_save_CC
5306 fi
5307
5308 if test "x$ac_cv_prog_cc_c11" = xno
5309 then :
5310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5311 printf "%s\n" "unsupported" >&6; }
5312 else $as_nop
5313 if test "x$ac_cv_prog_cc_c11" = x
5314 then :
5315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5316 printf "%s\n" "none needed" >&6; }
5317 else $as_nop
5318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5319 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5320 CC="$CC $ac_cv_prog_cc_c11"
5321 fi
5322 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5323 ac_prog_cc_stdc=c11
5324 fi
5325 fi
5326 if test x$ac_prog_cc_stdc = xno
5327 then :
5328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5329 printf %s "checking for $CC option to enable C99 features... " >&6; }
5330 if test ${ac_cv_prog_cc_c99+y}
5331 then :
5332 printf %s "(cached) " >&6
5333 else $as_nop
5334 ac_cv_prog_cc_c99=no
5335 ac_save_CC=$CC
5336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5337 /* end confdefs.h. */
5338 $ac_c_conftest_c99_program
5339 _ACEOF
5340 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5341 do
5342 CC="$ac_save_CC $ac_arg"
5343 if ac_fn_c_try_compile "$LINENO"
5344 then :
5345 ac_cv_prog_cc_c99=$ac_arg
5346 fi
5347 rm -f core conftest.err conftest.$ac_objext conftest.beam
5348 test "x$ac_cv_prog_cc_c99" != "xno" && break
5349 done
5350 rm -f conftest.$ac_ext
5351 CC=$ac_save_CC
5352 fi
5353
5354 if test "x$ac_cv_prog_cc_c99" = xno
5355 then :
5356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5357 printf "%s\n" "unsupported" >&6; }
5358 else $as_nop
5359 if test "x$ac_cv_prog_cc_c99" = x
5360 then :
5361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5362 printf "%s\n" "none needed" >&6; }
5363 else $as_nop
5364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5365 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5366 CC="$CC $ac_cv_prog_cc_c99"
5367 fi
5368 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5369 ac_prog_cc_stdc=c99
5370 fi
5371 fi
5372 if test x$ac_prog_cc_stdc = xno
5373 then :
5374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5375 printf %s "checking for $CC option to enable C89 features... " >&6; }
5376 if test ${ac_cv_prog_cc_c89+y}
5377 then :
5378 printf %s "(cached) " >&6
5379 else $as_nop
48315380 ac_cv_prog_cc_c89=no
48325381 ac_save_CC=$CC
48335382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
48345383 /* end confdefs.h. */
4835 #include <stdarg.h>
4836 #include <stdio.h>
4837 struct stat;
4838 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4839 struct buf { int x; };
4840 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4841 static char *e (p, i)
4842 char **p;
4843 int i;
4844 {
4845 return p[i];
4846 }
4847 static char *f (char * (*g) (char **, int), char **p, ...)
4848 {
4849 char *s;
4850 va_list v;
4851 va_start (v,p);
4852 s = g (p, va_arg (v,int));
4853 va_end (v);
4854 return s;
4855 }
4856
4857 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4858 function prototypes and stuff, but not '\xHH' hex character constants.
4859 These don't provoke an error unfortunately, instead are silently treated
4860 as 'x'. The following induces an error, until -std is added to get
4861 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4862 array size at least. It's necessary to write '\x00'==0 to get something
4863 that's true only with -std. */
4864 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4865
4866 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4867 inside strings and character constants. */
4868 #define FOO(x) 'x'
4869 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4870
4871 int test (int i, double x);
4872 struct s1 {int (*f) (int a);};
4873 struct s2 {int (*f) (double a);};
4874 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4875 int argc;
4876 char **argv;
4877 int
4878 main ()
4879 {
4880 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4881 ;
4882 return 0;
4883 }
5384 $ac_c_conftest_c89_program
48845385 _ACEOF
4885 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4886 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5386 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
48875387 do
48885388 CC="$ac_save_CC $ac_arg"
4889 if ac_fn_c_try_compile "$LINENO"; then :
5389 if ac_fn_c_try_compile "$LINENO"
5390 then :
48905391 ac_cv_prog_cc_c89=$ac_arg
48915392 fi
4892 rm -f core conftest.err conftest.$ac_objext
5393 rm -f core conftest.err conftest.$ac_objext conftest.beam
48935394 test "x$ac_cv_prog_cc_c89" != "xno" && break
48945395 done
48955396 rm -f conftest.$ac_ext
48965397 CC=$ac_save_CC
4897
4898 fi
4899 # AC_CACHE_VAL
4900 case "x$ac_cv_prog_cc_c89" in
4901 x)
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4903 $as_echo "none needed" >&6; } ;;
4904 xno)
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4906 $as_echo "unsupported" >&6; } ;;
4907 *)
4908 CC="$CC $ac_cv_prog_cc_c89"
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4910 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4911 esac
4912 if test "x$ac_cv_prog_cc_c89" != xno; then :
4913
5398 fi
5399
5400 if test "x$ac_cv_prog_cc_c89" = xno
5401 then :
5402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5403 printf "%s\n" "unsupported" >&6; }
5404 else $as_nop
5405 if test "x$ac_cv_prog_cc_c89" = x
5406 then :
5407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5408 printf "%s\n" "none needed" >&6; }
5409 else $as_nop
5410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5411 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5412 CC="$CC $ac_cv_prog_cc_c89"
5413 fi
5414 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5415 ac_prog_cc_stdc=c89
5416 fi
49145417 fi
49155418
49165419 ac_ext=c
49195422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49205423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
49215424
4922 ac_ext=c
5425
5426 ac_ext=c
49235427 ac_cpp='$CPP $CPPFLAGS'
49245428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
49255429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
49265430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4928 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4929 if ${am_cv_prog_cc_c_o+:} false; then :
4930 $as_echo_n "(cached) " >&6
4931 else
5431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5432 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5433 if test ${am_cv_prog_cc_c_o+y}
5434 then :
5435 printf %s "(cached) " >&6
5436 else $as_nop
49325437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
49335438 /* end confdefs.h. */
49345439
49355440 int
4936 main ()
5441 main (void)
49375442 {
49385443
49395444 ;
49615466 rm -f core conftest*
49625467 unset am_i
49635468 fi
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4965 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5470 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
49665471 if test "$am_cv_prog_cc_c_o" != yes; then
49675472 # Losing compiler, so override with the script.
49685473 # FIXME: It is wrong to rewrite CC.
49805485
49815486 depcc="$CC" am_compiler_list=
49825487
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4984 $as_echo_n "checking dependency style of $depcc... " >&6; }
4985 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4986 $as_echo_n "(cached) " >&6
4987 else
5488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5489 printf %s "checking dependency style of $depcc... " >&6; }
5490 if test ${am_cv_CC_dependencies_compiler_type+y}
5491 then :
5492 printf %s "(cached) " >&6
5493 else $as_nop
49885494 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
49895495 # We make a subdir and do the tests there. Otherwise we can end up
49905496 # making bogus files that we don't know about and never remove. For
50915597 fi
50925598
50935599 fi
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5095 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5601 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
50965602 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
50975603
50985604 if
51065612 fi
51075613
51085614
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5110 $as_echo_n "checking whether ln -s works... " >&6; }
5615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5616 printf %s "checking whether ln -s works... " >&6; }
51115617 LN_S=$as_ln_s
51125618 if test "$LN_S" = "ln -s"; then
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5114 $as_echo "yes" >&6; }
5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5620 printf "%s\n" "yes" >&6; }
51155621 else
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5117 $as_echo "no, using $LN_S" >&6; }
5622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5623 printf "%s\n" "no, using $LN_S" >&6; }
51185624 fi
51195625
51205626
51215627 # Check whether --enable-largefile was given.
5122 if test "${enable_largefile+set}" = set; then :
5628 if test ${enable_largefile+y}
5629 then :
51235630 enableval=$enable_largefile;
51245631 fi
51255632
51265633 if test "$enable_largefile" != no; then
51275634
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5129 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5130 if ${ac_cv_sys_largefile_CC+:} false; then :
5131 $as_echo_n "(cached) " >&6
5132 else
5635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5636 printf %s "checking for special C compiler options needed for large files... " >&6; }
5637 if test ${ac_cv_sys_largefile_CC+y}
5638 then :
5639 printf %s "(cached) " >&6
5640 else $as_nop
51335641 ac_cv_sys_largefile_CC=no
51345642 if test "$GCC" != yes; then
51355643 ac_save_CC=$CC
51435651 We can't simply define LARGE_OFF_T to be 9223372036854775807,
51445652 since some C++ compilers masquerading as C compilers
51455653 incorrectly reject 9223372036854775807. */
5146 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5654 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
51475655 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
51485656 && LARGE_OFF_T % 2147483647 == 1)
51495657 ? 1 : -1];
51505658 int
5151 main ()
5659 main (void)
51525660 {
51535661
51545662 ;
51555663 return 0;
51565664 }
51575665 _ACEOF
5158 if ac_fn_c_try_compile "$LINENO"; then :
5666 if ac_fn_c_try_compile "$LINENO"
5667 then :
51595668 break
51605669 fi
5161 rm -f core conftest.err conftest.$ac_objext
5670 rm -f core conftest.err conftest.$ac_objext conftest.beam
51625671 CC="$CC -n32"
5163 if ac_fn_c_try_compile "$LINENO"; then :
5672 if ac_fn_c_try_compile "$LINENO"
5673 then :
51645674 ac_cv_sys_largefile_CC=' -n32'; break
51655675 fi
5166 rm -f core conftest.err conftest.$ac_objext
5676 rm -f core conftest.err conftest.$ac_objext conftest.beam
51675677 break
51685678 done
51695679 CC=$ac_save_CC
51705680 rm -f conftest.$ac_ext
51715681 fi
51725682 fi
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5174 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5684 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
51755685 if test "$ac_cv_sys_largefile_CC" != no; then
51765686 CC=$CC$ac_cv_sys_largefile_CC
51775687 fi
51785688
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5180 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5181 if ${ac_cv_sys_file_offset_bits+:} false; then :
5182 $as_echo_n "(cached) " >&6
5183 else
5689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5690 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5691 if test ${ac_cv_sys_file_offset_bits+y}
5692 then :
5693 printf %s "(cached) " >&6
5694 else $as_nop
51845695 while :; do
51855696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51865697 /* end confdefs.h. */
51895700 We can't simply define LARGE_OFF_T to be 9223372036854775807,
51905701 since some C++ compilers masquerading as C compilers
51915702 incorrectly reject 9223372036854775807. */
5192 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5703 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
51935704 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
51945705 && LARGE_OFF_T % 2147483647 == 1)
51955706 ? 1 : -1];
51965707 int
5197 main ()
5708 main (void)
51985709 {
51995710
52005711 ;
52015712 return 0;
52025713 }
52035714 _ACEOF
5204 if ac_fn_c_try_compile "$LINENO"; then :
5715 if ac_fn_c_try_compile "$LINENO"
5716 then :
52055717 ac_cv_sys_file_offset_bits=no; break
52065718 fi
5207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5719 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
52085720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52095721 /* end confdefs.h. */
52105722 #define _FILE_OFFSET_BITS 64
52135725 We can't simply define LARGE_OFF_T to be 9223372036854775807,
52145726 since some C++ compilers masquerading as C compilers
52155727 incorrectly reject 9223372036854775807. */
5216 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5728 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
52175729 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
52185730 && LARGE_OFF_T % 2147483647 == 1)
52195731 ? 1 : -1];
52205732 int
5221 main ()
5733 main (void)
52225734 {
52235735
52245736 ;
52255737 return 0;
52265738 }
52275739 _ACEOF
5228 if ac_fn_c_try_compile "$LINENO"; then :
5740 if ac_fn_c_try_compile "$LINENO"
5741 then :
52295742 ac_cv_sys_file_offset_bits=64; break
52305743 fi
5231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5744 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
52325745 ac_cv_sys_file_offset_bits=unknown
52335746 break
52345747 done
52355748 fi
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5237 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5750 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
52385751 case $ac_cv_sys_file_offset_bits in #(
52395752 no | unknown) ;;
52405753 *)
5241 cat >>confdefs.h <<_ACEOF
5242 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5243 _ACEOF
5754 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
52445755 ;;
52455756 esac
52465757 rm -rf conftest*
52475758 if test $ac_cv_sys_file_offset_bits = unknown; then
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5249 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5250 if ${ac_cv_sys_large_files+:} false; then :
5251 $as_echo_n "(cached) " >&6
5252 else
5759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5760 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
5761 if test ${ac_cv_sys_large_files+y}
5762 then :
5763 printf %s "(cached) " >&6
5764 else $as_nop
52535765 while :; do
52545766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52555767 /* end confdefs.h. */
52585770 We can't simply define LARGE_OFF_T to be 9223372036854775807,
52595771 since some C++ compilers masquerading as C compilers
52605772 incorrectly reject 9223372036854775807. */
5261 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5773 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
52625774 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
52635775 && LARGE_OFF_T % 2147483647 == 1)
52645776 ? 1 : -1];
52655777 int
5266 main ()
5778 main (void)
52675779 {
52685780
52695781 ;
52705782 return 0;
52715783 }
52725784 _ACEOF
5273 if ac_fn_c_try_compile "$LINENO"; then :
5785 if ac_fn_c_try_compile "$LINENO"
5786 then :
52745787 ac_cv_sys_large_files=no; break
52755788 fi
5276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
52775790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
52785791 /* end confdefs.h. */
52795792 #define _LARGE_FILES 1
52825795 We can't simply define LARGE_OFF_T to be 9223372036854775807,
52835796 since some C++ compilers masquerading as C compilers
52845797 incorrectly reject 9223372036854775807. */
5285 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
5798 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
52865799 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
52875800 && LARGE_OFF_T % 2147483647 == 1)
52885801 ? 1 : -1];
52895802 int
5290 main ()
5803 main (void)
52915804 {
52925805
52935806 ;
52945807 return 0;
52955808 }
52965809 _ACEOF
5297 if ac_fn_c_try_compile "$LINENO"; then :
5810 if ac_fn_c_try_compile "$LINENO"
5811 then :
52985812 ac_cv_sys_large_files=1; break
52995813 fi
5300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5814 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
53015815 ac_cv_sys_large_files=unknown
53025816 break
53035817 done
53045818 fi
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5306 $as_echo "$ac_cv_sys_large_files" >&6; }
5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5820 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
53075821 case $ac_cv_sys_large_files in #(
53085822 no | unknown) ;;
53095823 *)
5310 cat >>confdefs.h <<_ACEOF
5311 #define _LARGE_FILES $ac_cv_sys_large_files
5312 _ACEOF
5824 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
53135825 ;;
53145826 esac
53155827 rm -rf conftest*
53165828 fi
5317
5318
5319 fi
5320
5321
5322 for ac_header in \
5323 err.h \
5324 linux/fd.h \
5325 linux/hdreg.h \
5326 linux/version.h \
5327 linux/loop.h \
5328 sys/disk.h \
5329 sys/disklabel.h \
5330 sys/ioccom.h \
5331 sys/mkdev.h \
5332 sys/queue.h \
5333
5334 do :
5335 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5336 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5337 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5338 cat >>confdefs.h <<_ACEOF
5339 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5829 fi
5830
5831
5832 ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
5833 if test "x$ac_cv_header_err_h" = xyes
5834 then :
5835 printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h
5836
5837 fi
5838 ac_fn_c_check_header_compile "$LINENO" "linux/fd.h" "ac_cv_header_linux_fd_h" "$ac_includes_default"
5839 if test "x$ac_cv_header_linux_fd_h" = xyes
5840 then :
5841 printf "%s\n" "#define HAVE_LINUX_FD_H 1" >>confdefs.h
5842
5843 fi
5844 ac_fn_c_check_header_compile "$LINENO" "linux/hdreg.h" "ac_cv_header_linux_hdreg_h" "$ac_includes_default"
5845 if test "x$ac_cv_header_linux_hdreg_h" = xyes
5846 then :
5847 printf "%s\n" "#define HAVE_LINUX_HDREG_H 1" >>confdefs.h
5848
5849 fi
5850 ac_fn_c_check_header_compile "$LINENO" "linux/version.h" "ac_cv_header_linux_version_h" "$ac_includes_default"
5851 if test "x$ac_cv_header_linux_version_h" = xyes
5852 then :
5853 printf "%s\n" "#define HAVE_LINUX_VERSION_H 1" >>confdefs.h
5854
5855 fi
5856 ac_fn_c_check_header_compile "$LINENO" "linux/loop.h" "ac_cv_header_linux_loop_h" "$ac_includes_default"
5857 if test "x$ac_cv_header_linux_loop_h" = xyes
5858 then :
5859 printf "%s\n" "#define HAVE_LINUX_LOOP_H 1" >>confdefs.h
5860
5861 fi
5862 ac_fn_c_check_header_compile "$LINENO" "sys/disk.h" "ac_cv_header_sys_disk_h" "$ac_includes_default"
5863 if test "x$ac_cv_header_sys_disk_h" = xyes
5864 then :
5865 printf "%s\n" "#define HAVE_SYS_DISK_H 1" >>confdefs.h
5866
5867 fi
5868 ac_fn_c_check_header_compile "$LINENO" "sys/disklabel.h" "ac_cv_header_sys_disklabel_h" "$ac_includes_default"
5869 if test "x$ac_cv_header_sys_disklabel_h" = xyes
5870 then :
5871 printf "%s\n" "#define HAVE_SYS_DISKLABEL_H 1" >>confdefs.h
5872
5873 fi
5874 ac_fn_c_check_header_compile "$LINENO" "sys/ioccom.h" "ac_cv_header_sys_ioccom_h" "$ac_includes_default"
5875 if test "x$ac_cv_header_sys_ioccom_h" = xyes
5876 then :
5877 printf "%s\n" "#define HAVE_SYS_IOCCOM_H 1" >>confdefs.h
5878
5879 fi
5880 ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
5881 if test "x$ac_cv_header_sys_mkdev_h" = xyes
5882 then :
5883 printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
5884
5885 fi
5886 ac_fn_c_check_header_compile "$LINENO" "sys/queue.h" "ac_cv_header_sys_queue_h" "$ac_includes_default"
5887 if test "x$ac_cv_header_sys_queue_h" = xyes
5888 then :
5889 printf "%s\n" "#define HAVE_SYS_QUEUE_H 1" >>confdefs.h
5890
5891 fi
5892 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
5893 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
5894 then :
5895 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
5896
5897 fi
5898
5899
5900 ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
5901 if test "x$ac_cv_header_endian_h" = xyes
5902 then :
5903 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
5904
5905 fi
5906 ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
5907 if test "x$ac_cv_header_sys_endian_h" = xyes
5908 then :
5909 printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
5910
5911 fi
5912 ac_fn_c_check_header_compile "$LINENO" "libkern/OSByteOrder.h" "ac_cv_header_libkern_OSByteOrder_h" "$ac_includes_default"
5913 if test "x$ac_cv_header_libkern_OSByteOrder_h" = xyes
5914 then :
5915 printf "%s\n" "#define HAVE_LIBKERN_OSBYTEORDER_H 1" >>confdefs.h
5916
5917 fi
5918
5919
5920 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
5921 if test "x$ac_cv_func_vasprintf" = xyes
5922 then :
5923 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
5924
5925 fi
5926
5927
5928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
5929 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
5930 if test ${ac_cv_c_undeclared_builtin_options+y}
5931 then :
5932 printf %s "(cached) " >&6
5933 else $as_nop
5934 ac_save_CFLAGS=$CFLAGS
5935 ac_cv_c_undeclared_builtin_options='cannot detect'
5936 for ac_arg in '' -fno-builtin; do
5937 CFLAGS="$ac_save_CFLAGS $ac_arg"
5938 # This test program should *not* compile successfully.
5939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5940 /* end confdefs.h. */
5941
5942 int
5943 main (void)
5944 {
5945 (void) strchr;
5946 ;
5947 return 0;
5948 }
53405949 _ACEOF
5341
5342 fi
5343
5344 done
5345
5346
5347 for ac_header in endian.h sys/endian.h libkern/OSByteOrder.h
5348 do :
5349 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5350 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5351 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5352 cat >>confdefs.h <<_ACEOF
5353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5950 if ac_fn_c_try_compile "$LINENO"
5951 then :
5952
5953 else $as_nop
5954 # This test program should compile successfully.
5955 # No library function is consistently available on
5956 # freestanding implementations, so test against a dummy
5957 # declaration. Include always-available headers on the
5958 # off chance that they somehow elicit warnings.
5959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5960 /* end confdefs.h. */
5961 #include <float.h>
5962 #include <limits.h>
5963 #include <stdarg.h>
5964 #include <stddef.h>
5965 extern void ac_decl (int, char *);
5966
5967 int
5968 main (void)
5969 {
5970 (void) ac_decl (0, (char *) 0);
5971 (void) ac_decl;
5972
5973 ;
5974 return 0;
5975 }
53545976 _ACEOF
5355
5356 fi
5357
5358 done
5359
5360
5361 for ac_func in vasprintf
5362 do :
5363 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
5364 if test "x$ac_cv_func_vasprintf" = xyes; then :
5365 cat >>confdefs.h <<_ACEOF
5366 #define HAVE_VASPRINTF 1
5367 _ACEOF
5368
5369 fi
5370 done
5371
5372
5373 ac_fn_c_check_decl "$LINENO" "getmntent" "ac_cv_have_decl_getmntent" "#include <mntent.h>
5374 "
5375 if test "x$ac_cv_have_decl_getmntent" = xyes; then :
5977 if ac_fn_c_try_compile "$LINENO"
5978 then :
5979 if test x"$ac_arg" = x
5980 then :
5981 ac_cv_c_undeclared_builtin_options='none needed'
5982 else $as_nop
5983 ac_cv_c_undeclared_builtin_options=$ac_arg
5984 fi
5985 break
5986 fi
5987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5988 fi
5989 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5990 done
5991 CFLAGS=$ac_save_CFLAGS
5992
5993 fi
5994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
5995 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
5996 case $ac_cv_c_undeclared_builtin_options in #(
5997 'cannot detect') :
5998 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5999 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6000 as_fn_error $? "cannot make $CC report undeclared builtins
6001 See \`config.log' for more details" "$LINENO" 5; } ;; #(
6002 'none needed') :
6003 ac_c_undeclared_builtin_options='' ;; #(
6004 *) :
6005 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
6006 esac
6007
6008 ac_fn_check_decl "$LINENO" "getmntent" "ac_cv_have_decl_getmntent" "#include <mntent.h>
6009 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6010 if test "x$ac_cv_have_decl_getmntent" = xyes
6011 then :
53766012 ac_have_decl=1
5377 else
6013 else $as_nop
53786014 ac_have_decl=0
53796015 fi
5380
5381 cat >>confdefs.h <<_ACEOF
5382 #define HAVE_DECL_GETMNTENT $ac_have_decl
5383 _ACEOF
5384
5385 ac_fn_c_check_decl "$LINENO" "getmntinfo" "ac_cv_have_decl_getmntinfo" "#include <sys/mount.h>
5386 "
5387 if test "x$ac_cv_have_decl_getmntinfo" = xyes; then :
6016 printf "%s\n" "#define HAVE_DECL_GETMNTENT $ac_have_decl" >>confdefs.h
6017
6018 ac_fn_check_decl "$LINENO" "getmntinfo" "ac_cv_have_decl_getmntinfo" "#include <sys/mount.h>
6019 " "$ac_c_undeclared_builtin_options" "CFLAGS"
6020 if test "x$ac_cv_have_decl_getmntinfo" = xyes
6021 then :
53886022 ac_have_decl=1
5389 else
6023 else $as_nop
53906024 ac_have_decl=0
53916025 fi
5392
5393 cat >>confdefs.h <<_ACEOF
5394 #define HAVE_DECL_GETMNTINFO $ac_have_decl
5395 _ACEOF
6026 printf "%s\n" "#define HAVE_DECL_GETMNTINFO $ac_have_decl" >>confdefs.h
53966027
53976028
53986029 # optional iconv support
53996030
54006031 # Check whether --with-iconv was given.
5401 if test "${with_iconv+set}" = set; then :
6032 if test ${with_iconv+y}
6033 then :
54026034 withval=$with_iconv;
54036035 fi
54046036
54056037 if test "x$with_iconv" != "xno"; then
5406 # Make sure we can run config.sub.
5407 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5408 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5409
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5411 $as_echo_n "checking build system type... " >&6; }
5412 if ${ac_cv_build+:} false; then :
5413 $as_echo_n "(cached) " >&6
5414 else
6038
6039
6040 # Make sure we can run config.sub.
6041 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6042 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6043
6044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6045 printf %s "checking build system type... " >&6; }
6046 if test ${ac_cv_build+y}
6047 then :
6048 printf %s "(cached) " >&6
6049 else $as_nop
54156050 ac_build_alias=$build_alias
54166051 test "x$ac_build_alias" = x &&
5417 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6052 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
54186053 test "x$ac_build_alias" = x &&
54196054 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5420 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5421 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5422
5423 fi
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5425 $as_echo "$ac_cv_build" >&6; }
6055 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6056 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6057
6058 fi
6059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6060 printf "%s\n" "$ac_cv_build" >&6; }
54266061 case $ac_cv_build in
54276062 *-*-*) ;;
54286063 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
54416076 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
54426077
54436078
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5445 $as_echo_n "checking host system type... " >&6; }
5446 if ${ac_cv_host+:} false; then :
5447 $as_echo_n "(cached) " >&6
5448 else
6079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6080 printf %s "checking host system type... " >&6; }
6081 if test ${ac_cv_host+y}
6082 then :
6083 printf %s "(cached) " >&6
6084 else $as_nop
54496085 if test "x$host_alias" = x; then
54506086 ac_cv_host=$ac_cv_build
54516087 else
5452 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5453 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5454 fi
5455
5456 fi
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5458 $as_echo "$ac_cv_host" >&6; }
6088 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6089 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6090 fi
6091
6092 fi
6093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6094 printf "%s\n" "$ac_cv_host" >&6; }
54596095 case $ac_cv_host in
54606096 *-*-*) ;;
54616097 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
54936129
54946130
54956131 # Check whether --with-gnu-ld was given.
5496 if test "${with_gnu_ld+set}" = set; then :
6132 if test ${with_gnu_ld+y}
6133 then :
54976134 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5498 else
6135 else $as_nop
54996136 with_gnu_ld=no
55006137 fi
55016138
55126149 }
55136150 fi
55146151
5515 ac_prog=ld
5516 if test "$GCC" = yes; then
5517 # Check if gcc -print-prog-name=ld gives a path.
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5519 $as_echo_n "checking for ld used by $CC... " >&6; }
5520 case $host in
5521 *-*-mingw*)
5522 # gcc leaves a trailing carriage return which upsets mingw
5523 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5524 *)
5525 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5526 esac
5527 case $ac_prog in
5528 # Accept absolute paths.
5529 [\\/]* | ?:[\\/]*)
5530 re_direlt='/[^/][^/]*/\.\./'
5531 # Canonicalize the pathname of ld
5532 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
5533 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
5534 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5535 done
5536 test -z "$LD" && LD="$ac_prog"
5537 ;;
5538 "")
5539 # If it fails, then pretend we aren't using GCC.
5540 ac_prog=ld
5541 ;;
5542 *)
5543 # If it is relative, then search for the first ld in PATH.
5544 with_gnu_ld=unknown
5545 ;;
5546 esac
6152 if test -n "$LD"; then
6153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
6154 printf %s "checking for ld... " >&6; }
6155 elif test "$GCC" = yes; then
6156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6157 printf %s "checking for ld used by $CC... " >&6; }
55476158 elif test "$with_gnu_ld" = yes; then
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5549 $as_echo_n "checking for GNU ld... " >&6; }
6159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6160 printf %s "checking for GNU ld... " >&6; }
55506161 else
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5552 $as_echo_n "checking for non-GNU ld... " >&6; }
5553 fi
5554 if ${acl_cv_path_LD+:} false; then :
5555 $as_echo_n "(cached) " >&6
6162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6163 printf %s "checking for non-GNU ld... " >&6; }
6164 fi
6165 if test -n "$LD"; then
6166 # Let the user override the test with a path.
6167 :
55566168 else
5557 if test -z "$LD"; then
5558 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5559 for ac_dir in $PATH; do
5560 IFS="$acl_save_ifs"
5561 test -z "$ac_dir" && ac_dir=.
5562 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5563 acl_cv_path_LD="$ac_dir/$ac_prog"
5564 # Check to see if the program is GNU ld. I'd rather use --version,
5565 # but apparently some variants of GNU ld only accept -v.
5566 # Break only if it was the GNU/non-GNU ld that we prefer.
5567 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
5568 *GNU* | *'with BFD'*)
5569 test "$with_gnu_ld" != no && break
5570 ;;
5571 *)
5572 test "$with_gnu_ld" != yes && break
5573 ;;
6169 if test ${acl_cv_path_LD+y}
6170 then :
6171 printf %s "(cached) " >&6
6172 else $as_nop
6173
6174 acl_cv_path_LD= # Final result of this test
6175 ac_prog=ld # Program to search in $PATH
6176 if test "$GCC" = yes; then
6177 # Check if gcc -print-prog-name=ld gives a path.
6178 case $host in
6179 *-*-mingw*)
6180 # gcc leaves a trailing carriage return which upsets mingw
6181 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6182 *)
6183 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
6184 esac
6185 case $acl_output in
6186 # Accept absolute paths.
6187 [\\/]* | ?:[\\/]*)
6188 re_direlt='/[^/][^/]*/\.\./'
6189 # Canonicalize the pathname of ld
6190 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
6191 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
6192 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
6193 done
6194 # Got the pathname. No search in PATH is needed.
6195 acl_cv_path_LD="$acl_output"
6196 ac_prog=
6197 ;;
6198 "")
6199 # If it fails, then pretend we aren't using GCC.
6200 ;;
6201 *)
6202 # If it is relative, then search for the first ld in PATH.
6203 with_gnu_ld=unknown
6204 ;;
55746205 esac
55756206 fi
5576 done
5577 IFS="$acl_save_ifs"
6207 if test -n "$ac_prog"; then
6208 # Search for $ac_prog in $PATH.
6209 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6210 for ac_dir in $PATH; do
6211 IFS="$acl_save_ifs"
6212 test -z "$ac_dir" && ac_dir=.
6213 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6214 acl_cv_path_LD="$ac_dir/$ac_prog"
6215 # Check to see if the program is GNU ld. I'd rather use --version,
6216 # but apparently some variants of GNU ld only accept -v.
6217 # Break only if it was the GNU/non-GNU ld that we prefer.
6218 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
6219 *GNU* | *'with BFD'*)
6220 test "$with_gnu_ld" != no && break
6221 ;;
6222 *)
6223 test "$with_gnu_ld" != yes && break
6224 ;;
6225 esac
6226 fi
6227 done
6228 IFS="$acl_save_ifs"
6229 fi
6230 case $host in
6231 *-*-aix*)
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6234 #if defined __powerpc64__ || defined _ARCH_PPC64
6235 int ok;
6236 #else
6237 error fail
6238 #endif
6239
6240 _ACEOF
6241 if ac_fn_c_try_compile "$LINENO"
6242 then :
6243 # The compiler produces 64-bit code. Add option '-b64' so that the
6244 # linker groks 64-bit object files.
6245 case "$acl_cv_path_LD " in
6246 *" -b64 "*) ;;
6247 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
6248 esac
6249
6250 fi
6251 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6252 ;;
6253 sparc64-*-netbsd*)
6254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255 /* end confdefs.h. */
6256 #if defined __sparcv9 || defined __arch64__
6257 int ok;
6258 #else
6259 error fail
6260 #endif
6261
6262 _ACEOF
6263 if ac_fn_c_try_compile "$LINENO"
6264 then :
6265
6266 else $as_nop
6267 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
6268 # so that the linker groks 32-bit object files.
6269 case "$acl_cv_path_LD " in
6270 *" -m elf32_sparc "*) ;;
6271 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
6272 esac
6273
6274 fi
6275 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6276 ;;
6277 esac
6278
6279 fi
6280
6281 LD="$acl_cv_path_LD"
6282 fi
6283 if test -n "$LD"; then
6284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6285 printf "%s\n" "$LD" >&6; }
55786286 else
5579 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5580 fi
5581 fi
5582
5583 LD="$acl_cv_path_LD"
5584 if test -n "$LD"; then
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5586 $as_echo "$LD" >&6; }
5587 else
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589 $as_echo "no" >&6; }
5590 fi
5591 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5593 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5594 if ${acl_cv_prog_gnu_ld+:} false; then :
5595 $as_echo_n "(cached) " >&6
5596 else
6287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6288 printf "%s\n" "no" >&6; }
6289 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6290 fi
6291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6292 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6293 if test ${acl_cv_prog_gnu_ld+y}
6294 then :
6295 printf %s "(cached) " >&6
6296 else $as_nop
55976297 # I'd rather use --version here, but apparently some GNU lds only accept -v.
55986298 case `$LD -v 2>&1 </dev/null` in
55996299 *GNU* | *'with BFD'*)
56046304 ;;
56056305 esac
56066306 fi
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5608 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
6307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6308 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
56096309 with_gnu_ld=$acl_cv_prog_gnu_ld
56106310
56116311
56126312
56136313
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5615 $as_echo_n "checking for shared library run path origin... " >&6; }
5616 if ${acl_cv_rpath+:} false; then :
5617 $as_echo_n "(cached) " >&6
5618 else
6314
6315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6316 printf %s "checking for shared library run path origin... " >&6; }
6317 if test ${acl_cv_rpath+y}
6318 then :
6319 printf %s "(cached) " >&6
6320 else $as_nop
56196321
56206322 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
56216323 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
56246326 acl_cv_rpath=done
56256327
56266328 fi
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5628 $as_echo "$acl_cv_rpath" >&6; }
6329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6330 printf "%s\n" "$acl_cv_rpath" >&6; }
56296331 wl="$acl_cv_wl"
56306332 acl_libext="$acl_cv_libext"
56316333 acl_shlibext="$acl_cv_shlibext"
56366338 acl_hardcode_direct="$acl_cv_hardcode_direct"
56376339 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
56386340 # Check whether --enable-rpath was given.
5639 if test "${enable_rpath+set}" = set; then :
6341 if test ${enable_rpath+y}
6342 then :
56406343 enableval=$enable_rpath; :
5641 else
6344 else $as_nop
56426345 enable_rpath=yes
56436346 fi
56446347
56456348
56466349
56476350
5648 acl_libdirstem=lib
5649 acl_libdirstem2=
5650 case "$host_os" in
5651 solaris*)
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5653 $as_echo_n "checking for 64-bit host... " >&6; }
5654 if ${gl_cv_solaris_64bit+:} false; then :
5655 $as_echo_n "(cached) " >&6
5656 else
6351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
6352 printf %s "checking 32-bit host C ABI... " >&6; }
6353 if test ${gl_cv_host_cpu_c_abi_32bit+y}
6354 then :
6355 printf %s "(cached) " >&6
6356 else $as_nop
6357 if test -n "$gl_cv_host_cpu_c_abi"; then
6358 case "$gl_cv_host_cpu_c_abi" in
6359 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
6360 gl_cv_host_cpu_c_abi_32bit=yes ;;
6361 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
6362 gl_cv_host_cpu_c_abi_32bit=no ;;
6363 *)
6364 gl_cv_host_cpu_c_abi_32bit=unknown ;;
6365 esac
6366 else
6367 case "$host_cpu" in
6368
6369 # CPUs that only support a 32-bit ABI.
6370 arc \
6371 | bfin \
6372 | cris* \
6373 | csky \
6374 | epiphany \
6375 | ft32 \
6376 | h8300 \
6377 | m68k \
6378 | microblaze | microblazeel \
6379 | nds32 | nds32le | nds32be \
6380 | nios2 | nios2eb | nios2el \
6381 | or1k* \
6382 | or32 \
6383 | sh | sh1234 | sh1234elb \
6384 | tic6x \
6385 | xtensa* )
6386 gl_cv_host_cpu_c_abi_32bit=yes
6387 ;;
6388
6389 # CPUs that only support a 64-bit ABI.
6390 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
6391 | mmix )
6392 gl_cv_host_cpu_c_abi_32bit=no
6393 ;;
6394
6395 i[34567]86 )
6396 gl_cv_host_cpu_c_abi_32bit=yes
6397 ;;
6398
6399 x86_64 )
6400 # On x86_64 systems, the C compiler may be generating code in one of
6401 # these ABIs:
6402 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
6403 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
6404 # with native Windows (mingw, MSVC).
6405 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
6406 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
6407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6408 /* end confdefs.h. */
6409 #if (defined __x86_64__ || defined __amd64__ \
6410 || defined _M_X64 || defined _M_AMD64) \
6411 && !(defined __ILP32__ || defined _ILP32)
6412 int ok;
6413 #else
6414 error fail
6415 #endif
6416
6417 _ACEOF
6418 if ac_fn_c_try_compile "$LINENO"
6419 then :
6420 gl_cv_host_cpu_c_abi_32bit=no
6421 else $as_nop
6422 gl_cv_host_cpu_c_abi_32bit=yes
6423 fi
6424 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6425 ;;
6426
6427 arm* | aarch64 )
6428 # Assume arm with EABI.
6429 # On arm64 systems, the C compiler may be generating code in one of
6430 # these ABIs:
6431 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
6432 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
6433 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
6434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435 /* end confdefs.h. */
6436 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
6437 int ok;
6438 #else
6439 error fail
6440 #endif
6441
6442 _ACEOF
6443 if ac_fn_c_try_compile "$LINENO"
6444 then :
6445 gl_cv_host_cpu_c_abi_32bit=no
6446 else $as_nop
6447 gl_cv_host_cpu_c_abi_32bit=yes
6448 fi
6449 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6450 ;;
6451
6452 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
6453 # On hppa, the C compiler may be generating 32-bit code or 64-bit
6454 # code. In the latter case, it defines _LP64 and __LP64__.
6455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6456 /* end confdefs.h. */
6457 #ifdef __LP64__
6458 int ok;
6459 #else
6460 error fail
6461 #endif
6462
6463 _ACEOF
6464 if ac_fn_c_try_compile "$LINENO"
6465 then :
6466 gl_cv_host_cpu_c_abi_32bit=no
6467 else $as_nop
6468 gl_cv_host_cpu_c_abi_32bit=yes
6469 fi
6470 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6471 ;;
6472
6473 ia64* )
6474 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
6475 # 32-bit code. In the latter case, it defines _ILP32.
6476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477 /* end confdefs.h. */
6478 #ifdef _ILP32
6479 int ok;
6480 #else
6481 error fail
6482 #endif
6483
6484 _ACEOF
6485 if ac_fn_c_try_compile "$LINENO"
6486 then :
6487 gl_cv_host_cpu_c_abi_32bit=yes
6488 else $as_nop
6489 gl_cv_host_cpu_c_abi_32bit=no
6490 fi
6491 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6492 ;;
6493
6494 mips* )
6495 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
6496 # at 32.
6497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498 /* end confdefs.h. */
6499 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
6500 int ok;
6501 #else
6502 error fail
6503 #endif
6504
6505 _ACEOF
6506 if ac_fn_c_try_compile "$LINENO"
6507 then :
6508 gl_cv_host_cpu_c_abi_32bit=no
6509 else $as_nop
6510 gl_cv_host_cpu_c_abi_32bit=yes
6511 fi
6512 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6513 ;;
6514
6515 powerpc* )
6516 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
6517 # No need to distinguish them here; the caller may distinguish
6518 # them based on the OS.
6519 # On powerpc64 systems, the C compiler may still be generating
6520 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
6521 # be generating 64-bit code.
6522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6523 /* end confdefs.h. */
6524 #if defined __powerpc64__ || defined _ARCH_PPC64
6525 int ok;
6526 #else
6527 error fail
6528 #endif
6529
6530 _ACEOF
6531 if ac_fn_c_try_compile "$LINENO"
6532 then :
6533 gl_cv_host_cpu_c_abi_32bit=no
6534 else $as_nop
6535 gl_cv_host_cpu_c_abi_32bit=yes
6536 fi
6537 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6538 ;;
6539
6540 rs6000 )
6541 gl_cv_host_cpu_c_abi_32bit=yes
6542 ;;
6543
6544 riscv32 | riscv64 )
6545 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
6546 # Size of 'long' and 'void *':
6547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6548 /* end confdefs.h. */
6549 #if defined __LP64__
6550 int ok;
6551 #else
6552 error fail
6553 #endif
6554
6555 _ACEOF
6556 if ac_fn_c_try_compile "$LINENO"
6557 then :
6558 gl_cv_host_cpu_c_abi_32bit=no
6559 else $as_nop
6560 gl_cv_host_cpu_c_abi_32bit=yes
6561 fi
6562 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6563 ;;
6564
6565 s390* )
6566 # On s390x, the C compiler may be generating 64-bit (= s390x) code
6567 # or 31-bit (= s390) code.
6568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569 /* end confdefs.h. */
6570 #if defined __LP64__ || defined __s390x__
6571 int ok;
6572 #else
6573 error fail
6574 #endif
6575
6576 _ACEOF
6577 if ac_fn_c_try_compile "$LINENO"
6578 then :
6579 gl_cv_host_cpu_c_abi_32bit=no
6580 else $as_nop
6581 gl_cv_host_cpu_c_abi_32bit=yes
6582 fi
6583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6584 ;;
6585
6586 sparc | sparc64 )
6587 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
6588 # C compiler still generates 32-bit code.
6589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h. */
6591 #if defined __sparcv9 || defined __arch64__
6592 int ok;
6593 #else
6594 error fail
6595 #endif
6596
6597 _ACEOF
6598 if ac_fn_c_try_compile "$LINENO"
6599 then :
6600 gl_cv_host_cpu_c_abi_32bit=no
6601 else $as_nop
6602 gl_cv_host_cpu_c_abi_32bit=yes
6603 fi
6604 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6605 ;;
6606
6607 *)
6608 gl_cv_host_cpu_c_abi_32bit=unknown
6609 ;;
6610 esac
6611 fi
6612
6613 fi
6614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
6615 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
6616
6617 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
6618
6619 ac_ext=c
6620 ac_cpp='$CPP $CPPFLAGS'
6621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6625 printf %s "checking how to run the C preprocessor... " >&6; }
6626 # On Suns, sometimes $CPP names a directory.
6627 if test -n "$CPP" && test -d "$CPP"; then
6628 CPP=
6629 fi
6630 if test -z "$CPP"; then
6631 if test ${ac_cv_prog_CPP+y}
6632 then :
6633 printf %s "(cached) " >&6
6634 else $as_nop
6635 # Double quotes because $CC needs to be expanded
6636 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6637 do
6638 ac_preproc_ok=false
6639 for ac_c_preproc_warn_flag in '' yes
6640 do
6641 # Use a header file that comes with gcc, so configuring glibc
6642 # with a fresh cross-compiler works.
6643 # On the NeXT, cc -E runs the code through the compiler's parser,
6644 # not just through cpp. "Syntax error" is here to catch this case.
56576645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56586646 /* end confdefs.h. */
5659
5660 #ifdef _LP64
5661 sixtyfour bits
5662 #endif
6647 #include <limits.h>
6648 Syntax error
6649 _ACEOF
6650 if ac_fn_c_try_cpp "$LINENO"
6651 then :
6652
6653 else $as_nop
6654 # Broken: fails on valid input.
6655 continue
6656 fi
6657 rm -f conftest.err conftest.i conftest.$ac_ext
6658
6659 # OK, works on sane cases. Now check whether nonexistent headers
6660 # can be detected and how.
6661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6662 /* end confdefs.h. */
6663 #include <ac_nonexistent.h>
6664 _ACEOF
6665 if ac_fn_c_try_cpp "$LINENO"
6666 then :
6667 # Broken: success on invalid input.
6668 continue
6669 else $as_nop
6670 # Passes both tests.
6671 ac_preproc_ok=:
6672 break
6673 fi
6674 rm -f conftest.err conftest.i conftest.$ac_ext
6675
6676 done
6677 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6678 rm -f conftest.i conftest.err conftest.$ac_ext
6679 if $ac_preproc_ok
6680 then :
6681 break
6682 fi
6683
6684 done
6685 ac_cv_prog_CPP=$CPP
6686
6687 fi
6688 CPP=$ac_cv_prog_CPP
6689 else
6690 ac_cv_prog_CPP=$CPP
6691 fi
6692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6693 printf "%s\n" "$CPP" >&6; }
6694 ac_preproc_ok=false
6695 for ac_c_preproc_warn_flag in '' yes
6696 do
6697 # Use a header file that comes with gcc, so configuring glibc
6698 # with a fresh cross-compiler works.
6699 # On the NeXT, cc -E runs the code through the compiler's parser,
6700 # not just through cpp. "Syntax error" is here to catch this case.
6701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6702 /* end confdefs.h. */
6703 #include <limits.h>
6704 Syntax error
6705 _ACEOF
6706 if ac_fn_c_try_cpp "$LINENO"
6707 then :
6708
6709 else $as_nop
6710 # Broken: fails on valid input.
6711 continue
6712 fi
6713 rm -f conftest.err conftest.i conftest.$ac_ext
6714
6715 # OK, works on sane cases. Now check whether nonexistent headers
6716 # can be detected and how.
6717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6718 /* end confdefs.h. */
6719 #include <ac_nonexistent.h>
6720 _ACEOF
6721 if ac_fn_c_try_cpp "$LINENO"
6722 then :
6723 # Broken: success on invalid input.
6724 continue
6725 else $as_nop
6726 # Passes both tests.
6727 ac_preproc_ok=:
6728 break
6729 fi
6730 rm -f conftest.err conftest.i conftest.$ac_ext
6731
6732 done
6733 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6734 rm -f conftest.i conftest.err conftest.$ac_ext
6735 if $ac_preproc_ok
6736 then :
6737
6738 else $as_nop
6739 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6740 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6741 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6742 See \`config.log' for more details" "$LINENO" 5; }
6743 fi
6744
6745 ac_ext=c
6746 ac_cpp='$CPP $CPPFLAGS'
6747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6750
6751
6752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6753 printf %s "checking for grep that handles long lines and -e... " >&6; }
6754 if test ${ac_cv_path_GREP+y}
6755 then :
6756 printf %s "(cached) " >&6
6757 else $as_nop
6758 if test -z "$GREP"; then
6759 ac_path_GREP_found=false
6760 # Loop through the user's path and test for each of PROGNAME-LIST
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6763 do
6764 IFS=$as_save_IFS
6765 case $as_dir in #(((
6766 '') as_dir=./ ;;
6767 */) ;;
6768 *) as_dir=$as_dir/ ;;
6769 esac
6770 for ac_prog in grep ggrep
6771 do
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6774 as_fn_executable_p "$ac_path_GREP" || continue
6775 # Check for GNU ac_path_GREP and select it if it is found.
6776 # Check for GNU $ac_path_GREP
6777 case `"$ac_path_GREP" --version 2>&1` in
6778 *GNU*)
6779 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6780 *)
6781 ac_count=0
6782 printf %s 0123456789 >"conftest.in"
6783 while :
6784 do
6785 cat "conftest.in" "conftest.in" >"conftest.tmp"
6786 mv "conftest.tmp" "conftest.in"
6787 cp "conftest.in" "conftest.nl"
6788 printf "%s\n" 'GREP' >> "conftest.nl"
6789 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6790 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6791 as_fn_arith $ac_count + 1 && ac_count=$as_val
6792 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6793 # Best one so far, save it but keep looking for a better one
6794 ac_cv_path_GREP="$ac_path_GREP"
6795 ac_path_GREP_max=$ac_count
6796 fi
6797 # 10*(2^10) chars as input seems more than enough
6798 test $ac_count -gt 10 && break
6799 done
6800 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6801 esac
6802
6803 $ac_path_GREP_found && break 3
6804 done
6805 done
6806 done
6807 IFS=$as_save_IFS
6808 if test -z "$ac_cv_path_GREP"; then
6809 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6810 fi
6811 else
6812 ac_cv_path_GREP=$GREP
6813 fi
6814
6815 fi
6816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6817 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6818 GREP="$ac_cv_path_GREP"
6819
6820
6821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6822 printf %s "checking for egrep... " >&6; }
6823 if test ${ac_cv_path_EGREP+y}
6824 then :
6825 printf %s "(cached) " >&6
6826 else $as_nop
6827 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6828 then ac_cv_path_EGREP="$GREP -E"
6829 else
6830 if test -z "$EGREP"; then
6831 ac_path_EGREP_found=false
6832 # Loop through the user's path and test for each of PROGNAME-LIST
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6835 do
6836 IFS=$as_save_IFS
6837 case $as_dir in #(((
6838 '') as_dir=./ ;;
6839 */) ;;
6840 *) as_dir=$as_dir/ ;;
6841 esac
6842 for ac_prog in egrep
6843 do
6844 for ac_exec_ext in '' $ac_executable_extensions; do
6845 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6846 as_fn_executable_p "$ac_path_EGREP" || continue
6847 # Check for GNU ac_path_EGREP and select it if it is found.
6848 # Check for GNU $ac_path_EGREP
6849 case `"$ac_path_EGREP" --version 2>&1` in
6850 *GNU*)
6851 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6852 *)
6853 ac_count=0
6854 printf %s 0123456789 >"conftest.in"
6855 while :
6856 do
6857 cat "conftest.in" "conftest.in" >"conftest.tmp"
6858 mv "conftest.tmp" "conftest.in"
6859 cp "conftest.in" "conftest.nl"
6860 printf "%s\n" 'EGREP' >> "conftest.nl"
6861 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6862 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6863 as_fn_arith $ac_count + 1 && ac_count=$as_val
6864 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6865 # Best one so far, save it but keep looking for a better one
6866 ac_cv_path_EGREP="$ac_path_EGREP"
6867 ac_path_EGREP_max=$ac_count
6868 fi
6869 # 10*(2^10) chars as input seems more than enough
6870 test $ac_count -gt 10 && break
6871 done
6872 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6873 esac
6874
6875 $ac_path_EGREP_found && break 3
6876 done
6877 done
6878 done
6879 IFS=$as_save_IFS
6880 if test -z "$ac_cv_path_EGREP"; then
6881 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6882 fi
6883 else
6884 ac_cv_path_EGREP=$EGREP
6885 fi
6886
6887 fi
6888 fi
6889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6890 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6891 EGREP="$ac_cv_path_EGREP"
6892
6893
6894
6895
6896
6897
6898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
6899 printf %s "checking for ELF binary format... " >&6; }
6900 if test ${gl_cv_elf+y}
6901 then :
6902 printf %s "(cached) " >&6
6903 else $as_nop
6904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6905 /* end confdefs.h. */
6906 #ifdef __ELF__
6907 Extensible Linking Format
6908 #endif
56636909
56646910 _ACEOF
56656911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5666 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5667 gl_cv_solaris_64bit=yes
5668 else
5669 gl_cv_solaris_64bit=no
5670 fi
5671 rm -f conftest*
5672
5673
5674 fi
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5676 $as_echo "$gl_cv_solaris_64bit" >&6; }
5677 if test $gl_cv_solaris_64bit = yes; then
5678 acl_libdirstem=lib/64
5679 case "$host_cpu" in
5680 sparc*) acl_libdirstem2=lib/sparcv9 ;;
5681 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5682 esac
5683 fi
5684 ;;
5685 *)
5686 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5687 if test -n "$searchpath"; then
5688 acl_save_IFS="${IFS= }"; IFS=":"
5689 for searchdir in $searchpath; do
5690 if test -d "$searchdir"; then
5691 case "$searchdir" in
5692 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5693 */../ | */.. )
5694 # Better ignore directories of this form. They are misleading.
5695 ;;
5696 *) searchdir=`cd "$searchdir" && pwd`
5697 case "$searchdir" in
5698 */lib64 ) acl_libdirstem=lib64 ;;
5699 esac ;;
5700 esac
5701 fi
5702 done
5703 IFS="$acl_save_IFS"
5704 fi
5705 ;;
5706 esac
5707 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5708
6912 $EGREP "Extensible Linking Format" >/dev/null 2>&1
6913 then :
6914 gl_cv_elf=yes
6915 else $as_nop
6916 gl_cv_elf=no
6917 fi
6918 rm -rf conftest*
6919
6920
6921 fi
6922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
6923 printf "%s\n" "$gl_cv_elf" >&6; }
6924 if test $gl_cv_elf; then
6925 # Extract the ELF class of a file (5th byte) in decimal.
6926 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
6927 if od -A x < /dev/null >/dev/null 2>/dev/null; then
6928 # Use POSIX od.
6929 func_elfclass ()
6930 {
6931 od -A n -t d1 -j 4 -N 1
6932 }
6933 else
6934 # Use BSD hexdump.
6935 func_elfclass ()
6936 {
6937 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
6938 echo
6939 }
6940 fi
6941 case $HOST_CPU_C_ABI_32BIT in
6942 yes)
6943 # 32-bit ABI.
6944 acl_is_expected_elfclass ()
6945 {
6946 test "`func_elfclass | sed -e 's/[ ]//g'`" = 1
6947 }
6948 ;;
6949 no)
6950 # 64-bit ABI.
6951 acl_is_expected_elfclass ()
6952 {
6953 test "`func_elfclass | sed -e 's/[ ]//g'`" = 2
6954 }
6955 ;;
6956 *)
6957 # Unknown.
6958 acl_is_expected_elfclass ()
6959 {
6960 :
6961 }
6962 ;;
6963 esac
6964 else
6965 acl_is_expected_elfclass ()
6966 {
6967 :
6968 }
6969 fi
6970
6971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
6972 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
6973 if test ${acl_cv_libdirstems+y}
6974 then :
6975 printf %s "(cached) " >&6
6976 else $as_nop
6977 acl_libdirstem=lib
6978 acl_libdirstem2=
6979 acl_libdirstem3=
6980 case "$host_os" in
6981 solaris*)
6982 if test $HOST_CPU_C_ABI_32BIT = no; then
6983 acl_libdirstem2=lib/64
6984 case "$host_cpu" in
6985 sparc*) acl_libdirstem3=lib/sparcv9 ;;
6986 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
6987 esac
6988 fi
6989 ;;
6990 *)
6991 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
6992 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6993 if test $HOST_CPU_C_ABI_32BIT != no; then
6994 # 32-bit or unknown ABI.
6995 if test -d /usr/lib32; then
6996 acl_libdirstem2=lib32
6997 fi
6998 fi
6999 if test $HOST_CPU_C_ABI_32BIT != yes; then
7000 # 64-bit or unknown ABI.
7001 if test -d /usr/lib64; then
7002 acl_libdirstem3=lib64
7003 fi
7004 fi
7005 if test -n "$searchpath"; then
7006 acl_save_IFS="${IFS= }"; IFS=":"
7007 for searchdir in $searchpath; do
7008 if test -d "$searchdir"; then
7009 case "$searchdir" in
7010 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
7011 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
7012 */../ | */.. )
7013 # Better ignore directories of this form. They are misleading.
7014 ;;
7015 *) searchdir=`cd "$searchdir" && pwd`
7016 case "$searchdir" in
7017 */lib32 ) acl_libdirstem2=lib32 ;;
7018 */lib64 ) acl_libdirstem3=lib64 ;;
7019 esac ;;
7020 esac
7021 fi
7022 done
7023 IFS="$acl_save_IFS"
7024 if test $HOST_CPU_C_ABI_32BIT = yes; then
7025 # 32-bit ABI.
7026 acl_libdirstem3=
7027 fi
7028 if test $HOST_CPU_C_ABI_32BIT = no; then
7029 # 64-bit ABI.
7030 acl_libdirstem2=
7031 fi
7032 fi
7033 ;;
7034 esac
7035 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7036 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
7037 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
7038
7039 fi
7040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
7041 printf "%s\n" "$acl_cv_libdirstems" >&6; }
7042 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
7043 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
7044 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
57097045
57107046
57117047
57267062
57277063 eval additional_includedir=\"$includedir\"
57287064 eval additional_libdir=\"$libdir\"
7065 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
7066 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
57297067
57307068 exec_prefix="$acl_save_exec_prefix"
57317069 prefix="$acl_save_prefix"
57327070
57337071
57347072 # Check whether --with-libiconv-prefix was given.
5735 if test "${with_libiconv_prefix+set}" = set; then :
7073 if test ${with_libiconv_prefix+y}
7074 then :
57367075 withval=$with_libiconv_prefix;
57377076 if test "X$withval" = "Xno"; then
57387077 use_additional=no
57467085
57477086 eval additional_includedir=\"$includedir\"
57487087 eval additional_libdir=\"$libdir\"
7088 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
7089 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
57497090
57507091 exec_prefix="$acl_save_exec_prefix"
57517092 prefix="$acl_save_prefix"
57537094 else
57547095 additional_includedir="$withval/include"
57557096 additional_libdir="$withval/$acl_libdirstem"
5756 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5757 && ! test -d "$withval/$acl_libdirstem"; then
5758 additional_libdir="$withval/$acl_libdirstem2"
5759 fi
7097 additional_libdir2="$withval/$acl_libdirstem2"
7098 additional_libdir3="$withval/$acl_libdirstem3"
57607099 fi
57617100 fi
57627101
57637102 fi
57647103
7104 if test "X$additional_libdir2" = "X$additional_libdir"; then
7105 additional_libdir2=
7106 fi
7107 if test "X$additional_libdir3" = "X$additional_libdir"; then
7108 additional_libdir3=
7109 fi
57657110 LIBICONV=
57667111 LTLIBICONV=
57677112 INCICONV=
58077152 shrext=
58087153 fi
58097154 if test $use_additional = yes; then
5810 dir="$additional_libdir"
5811 if test -n "$acl_shlibext"; then
5812 if test -f "$dir/$libname$shrext"; then
5813 found_dir="$dir"
5814 found_so="$dir/$libname$shrext"
5815 else
5816 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5817 ver=`(cd "$dir" && \
5818 for f in "$libname$shrext".*; do echo "$f"; done \
5819 | sed -e "s,^$libname$shrext\\\\.,," \
5820 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5821 | sed 1q ) 2>/dev/null`
5822 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5823 found_dir="$dir"
5824 found_so="$dir/$libname$shrext.$ver"
5825 fi
5826 else
5827 eval library_names=\"$acl_library_names_spec\"
5828 for f in $library_names; do
5829 if test -f "$dir/$f"; then
5830 found_dir="$dir"
5831 found_so="$dir/$f"
5832 break
5833 fi
5834 done
5835 fi
5836 fi
5837 fi
5838 if test "X$found_dir" = "X"; then
5839 if test -f "$dir/$libname.$acl_libext"; then
5840 found_dir="$dir"
5841 found_a="$dir/$libname.$acl_libext"
5842 fi
5843 fi
5844 if test "X$found_dir" != "X"; then
5845 if test -f "$dir/$libname.la"; then
5846 found_la="$dir/$libname.la"
5847 fi
5848 fi
5849 fi
5850 if test "X$found_dir" = "X"; then
5851 for x in $LDFLAGS $LTLIBICONV; do
5852
5853 acl_save_prefix="$prefix"
5854 prefix="$acl_final_prefix"
5855 acl_save_exec_prefix="$exec_prefix"
5856 exec_prefix="$acl_final_exec_prefix"
5857 eval x=\"$x\"
5858 exec_prefix="$acl_save_exec_prefix"
5859 prefix="$acl_save_prefix"
5860
5861 case "$x" in
5862 -L*)
5863 dir=`echo "X$x" | sed -e 's/^X-L//'`
5864 if test -n "$acl_shlibext"; then
5865 if test -f "$dir/$libname$shrext"; then
7155 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
7156 if test "X$found_dir" = "X"; then
7157 eval dir=\$$additional_libdir_variable
7158 if test -n "$dir"; then
7159 if test -n "$acl_shlibext"; then
7160 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
58667161 found_dir="$dir"
58677162 found_so="$dir/$libname$shrext"
58687163 else
58727167 | sed -e "s,^$libname$shrext\\\\.,," \
58737168 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
58747169 | sed 1q ) 2>/dev/null`
5875 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7170 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
58767171 found_dir="$dir"
58777172 found_so="$dir/$libname$shrext.$ver"
58787173 fi
58797174 else
58807175 eval library_names=\"$acl_library_names_spec\"
58817176 for f in $library_names; do
5882 if test -f "$dir/$f"; then
7177 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
58837178 found_dir="$dir"
58847179 found_so="$dir/$f"
58857180 break
58897184 fi
58907185 fi
58917186 if test "X$found_dir" = "X"; then
5892 if test -f "$dir/$libname.$acl_libext"; then
7187 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
7188 found_dir="$dir"
7189 found_a="$dir/$libname.$acl_libext"
7190 fi
7191 fi
7192 if test "X$found_dir" != "X"; then
7193 if test -f "$dir/$libname.la"; then
7194 found_la="$dir/$libname.la"
7195 fi
7196 fi
7197 fi
7198 fi
7199 done
7200 fi
7201 if test "X$found_dir" = "X"; then
7202 for x in $LDFLAGS $LTLIBICONV; do
7203
7204 acl_save_prefix="$prefix"
7205 prefix="$acl_final_prefix"
7206 acl_save_exec_prefix="$exec_prefix"
7207 exec_prefix="$acl_final_exec_prefix"
7208 eval x=\"$x\"
7209 exec_prefix="$acl_save_exec_prefix"
7210 prefix="$acl_save_prefix"
7211
7212 case "$x" in
7213 -L*)
7214 dir=`echo "X$x" | sed -e 's/^X-L//'`
7215 if test -n "$acl_shlibext"; then
7216 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
7217 found_dir="$dir"
7218 found_so="$dir/$libname$shrext"
7219 else
7220 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7221 ver=`(cd "$dir" && \
7222 for f in "$libname$shrext".*; do echo "$f"; done \
7223 | sed -e "s,^$libname$shrext\\\\.,," \
7224 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7225 | sed 1q ) 2>/dev/null`
7226 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
7227 found_dir="$dir"
7228 found_so="$dir/$libname$shrext.$ver"
7229 fi
7230 else
7231 eval library_names=\"$acl_library_names_spec\"
7232 for f in $library_names; do
7233 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
7234 found_dir="$dir"
7235 found_so="$dir/$f"
7236 break
7237 fi
7238 done
7239 fi
7240 fi
7241 fi
7242 if test "X$found_dir" = "X"; then
7243 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
58937244 found_dir="$dir"
58947245 found_a="$dir/$libname.$acl_libext"
58957246 fi
59117262 if test "X$found_so" != "X"; then
59127263 if test "$enable_rpath" = no \
59137264 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5914 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
7265 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
7266 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
59157267 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
59167268 else
59177269 haveit=
59907342 fi
59917343 additional_includedir="$basedir/include"
59927344 ;;
7345 */$acl_libdirstem3 | */$acl_libdirstem3/)
7346 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
7347 if test "$name" = 'iconv'; then
7348 LIBICONV_PREFIX="$basedir"
7349 fi
7350 additional_includedir="$basedir/include"
7351 ;;
59937352 esac
59947353 if test "X$additional_includedir" != "X"; then
59957354 if test "X$additional_includedir" != "X/usr/include"; then
60357394 for dep in $dependency_libs; do
60367395 case "$dep" in
60377396 -L*)
6038 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6039 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6040 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
7397 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7398 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
7399 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
7400 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
60417401 haveit=
6042 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6043 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
7402 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
7403 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
7404 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
60447405 if test -n "$GCC"; then
60457406 case $host_os in
60467407 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
60597420 exec_prefix="$acl_save_exec_prefix"
60607421 prefix="$acl_save_prefix"
60617422
6062 if test "X$x" = "X-L$additional_libdir"; then
7423 if test "X$x" = "X-L$dependency_libdir"; then
60637424 haveit=yes
60647425 break
60657426 fi
60667427 done
60677428 if test -z "$haveit"; then
6068 if test -d "$additional_libdir"; then
6069 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7429 if test -d "$dependency_libdir"; then
7430 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
60707431 fi
60717432 fi
60727433 haveit=
60807441 exec_prefix="$acl_save_exec_prefix"
60817442 prefix="$acl_save_prefix"
60827443
6083 if test "X$x" = "X-L$additional_libdir"; then
7444 if test "X$x" = "X-L$dependency_libdir"; then
60847445 haveit=yes
60857446 break
60867447 fi
60877448 done
60887449 if test -z "$haveit"; then
6089 if test -d "$additional_libdir"; then
6090 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7450 if test -d "$dependency_libdir"; then
7451 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
60917452 fi
60927453 fi
60937454 fi
61767537
61777538
61787539
6179
61807540 am_save_CPPFLAGS="$CPPFLAGS"
61817541
61827542 for element in $INCICONV; do
62027562 done
62037563
62047564
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6206 $as_echo_n "checking for iconv... " >&6; }
6207 if ${am_cv_func_iconv+:} false; then :
6208 $as_echo_n "(cached) " >&6
6209 else
7565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7566 printf %s "checking for iconv... " >&6; }
7567 if test ${am_cv_func_iconv+y}
7568 then :
7569 printf %s "(cached) " >&6
7570 else $as_nop
62107571
62117572 am_cv_func_iconv="no, consider installing GNU libiconv"
62127573 am_cv_lib_iconv=no
62177578 #include <iconv.h>
62187579
62197580 int
6220 main ()
7581 main (void)
62217582 {
62227583 iconv_t cd = iconv_open("","");
62237584 iconv(cd,NULL,NULL,NULL,NULL);
62267587 return 0;
62277588 }
62287589 _ACEOF
6229 if ac_fn_c_try_link "$LINENO"; then :
7590 if ac_fn_c_try_link "$LINENO"
7591 then :
62307592 am_cv_func_iconv=yes
62317593 fi
6232 rm -f core conftest.err conftest.$ac_objext \
7594 rm -f core conftest.err conftest.$ac_objext conftest.beam \
62337595 conftest$ac_exeext conftest.$ac_ext
62347596 if test "$am_cv_func_iconv" != yes; then
62357597 am_save_LIBS="$LIBS"
62417603 #include <iconv.h>
62427604
62437605 int
6244 main ()
7606 main (void)
62457607 {
62467608 iconv_t cd = iconv_open("","");
62477609 iconv(cd,NULL,NULL,NULL,NULL);
62507612 return 0;
62517613 }
62527614 _ACEOF
6253 if ac_fn_c_try_link "$LINENO"; then :
7615 if ac_fn_c_try_link "$LINENO"
7616 then :
62547617 am_cv_lib_iconv=yes
62557618 am_cv_func_iconv=yes
62567619 fi
6257 rm -f core conftest.err conftest.$ac_objext \
7620 rm -f core conftest.err conftest.$ac_objext conftest.beam \
62587621 conftest$ac_exeext conftest.$ac_ext
62597622 LIBS="$am_save_LIBS"
62607623 fi
62617624
62627625 fi
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6264 $as_echo "$am_cv_func_iconv" >&6; }
7626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7627 printf "%s\n" "$am_cv_func_iconv" >&6; }
62657628 if test "$am_cv_func_iconv" = yes; then
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6267 $as_echo_n "checking for working iconv... " >&6; }
6268 if ${am_cv_func_iconv_works+:} false; then :
6269 $as_echo_n "(cached) " >&6
6270 else
7629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7630 printf %s "checking for working iconv... " >&6; }
7631 if test ${am_cv_func_iconv_works+y}
7632 then :
7633 printf %s "(cached) " >&6
7634 else $as_nop
62717635
62727636 am_save_LIBS="$LIBS"
62737637 if test $am_cv_lib_iconv = yes; then
62757639 fi
62767640 am_cv_func_iconv_works=no
62777641 for ac_iconv_const in '' 'const'; do
6278 if test "$cross_compiling" = yes; then :
7642 if test "$cross_compiling" = yes
7643 then :
62797644 case "$host_os" in
62807645 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
62817646 *) am_cv_func_iconv_works="guessing yes" ;;
62827647 esac
6283 else
7648 else $as_nop
62847649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
62857650 /* end confdefs.h. */
62867651
62927657 #endif
62937658
62947659 int
6295 main ()
7660 main (void)
62967661 {
62977662 int result = 0;
62987663 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
63777742 #endif
63787743 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
63797744 provided. */
6380 if (/* Try standardized names. */
6381 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6382 /* Try IRIX, OSF/1 names. */
6383 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6384 /* Try AIX names. */
6385 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6386 /* Try HP-UX names. */
6387 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6388 result |= 16;
7745 {
7746 /* Try standardized names. */
7747 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
7748 /* Try IRIX, OSF/1 names. */
7749 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
7750 /* Try AIX names. */
7751 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
7752 /* Try HP-UX names. */
7753 iconv_t cd4 = iconv_open ("utf8", "eucJP");
7754 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
7755 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
7756 result |= 16;
7757 if (cd1 != (iconv_t)(-1))
7758 iconv_close (cd1);
7759 if (cd2 != (iconv_t)(-1))
7760 iconv_close (cd2);
7761 if (cd3 != (iconv_t)(-1))
7762 iconv_close (cd3);
7763 if (cd4 != (iconv_t)(-1))
7764 iconv_close (cd4);
7765 }
63897766 return result;
63907767
63917768 ;
63927769 return 0;
63937770 }
63947771 _ACEOF
6395 if ac_fn_c_try_run "$LINENO"; then :
7772 if ac_fn_c_try_run "$LINENO"
7773 then :
63967774 am_cv_func_iconv_works=yes
63977775 fi
63987776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
64047782 LIBS="$am_save_LIBS"
64057783
64067784 fi
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6408 $as_echo "$am_cv_func_iconv_works" >&6; }
7785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7786 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
64097787 case "$am_cv_func_iconv_works" in
64107788 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
64117789 *) am_func_iconv=yes ;;
64157793 fi
64167794 if test "$am_func_iconv" = yes; then
64177795
6418 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
7796 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
64197797
64207798 fi
64217799 if test "$am_cv_lib_iconv" = yes; then
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6423 $as_echo_n "checking how to link with libiconv... " >&6; }
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6425 $as_echo "$LIBICONV" >&6; }
7800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7801 printf %s "checking how to link with libiconv... " >&6; }
7802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7803 printf "%s\n" "$LIBICONV" >&6; }
64267804 else
64277805 CPPFLAGS="$am_save_CPPFLAGS"
64287806 LIBICONV=
64327810
64337811
64347812 if test "$am_cv_func_iconv" = yes; then
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
6436 $as_echo_n "checking for iconv declaration... " >&6; }
6437 if ${am_cv_proto_iconv+:} false; then :
6438 $as_echo_n "(cached) " >&6
6439 else
7813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
7814 printf %s "checking for iconv declaration... " >&6; }
7815 if test ${am_cv_proto_iconv+y}
7816 then :
7817 printf %s "(cached) " >&6
7818 else $as_nop
64407819
64417820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
64427821 /* end confdefs.h. */
64547833 #endif
64557834
64567835 int
6457 main ()
7836 main (void)
64587837 {
64597838
64607839 ;
64617840 return 0;
64627841 }
64637842 _ACEOF
6464 if ac_fn_c_try_compile "$LINENO"; then :
7843 if ac_fn_c_try_compile "$LINENO"
7844 then :
64657845 am_cv_proto_iconv_arg1=""
6466 else
7846 else $as_nop
64677847 am_cv_proto_iconv_arg1="const"
64687848 fi
6469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7849 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
64707850 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
64717851 fi
64727852
64737853 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
7854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
64757855 $am_cv_proto_iconv" >&5
6476 $as_echo "
7856 printf "%s\n" "
64777857 $am_cv_proto_iconv" >&6; }
6478
6479 cat >>confdefs.h <<_ACEOF
6480 #define ICONV_CONST $am_cv_proto_iconv_arg1
6481 _ACEOF
6482
6483
7858 else
7859 am_cv_proto_iconv_arg1=""
64847860 fi
7861
7862 printf "%s\n" "#define ICONV_CONST $am_cv_proto_iconv_arg1" >>confdefs.h
7863
7864
64857865
64867866 fi
64877867
64887868 # xxd (distributed with vim) is used in the testsuite
64897869 # Extract the first word of "xxd", so it can be a program name with args.
64907870 set dummy xxd; ac_word=$2
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6492 $as_echo_n "checking for $ac_word... " >&6; }
6493 if ${ac_cv_prog_XXD_FOUND+:} false; then :
6494 $as_echo_n "(cached) " >&6
6495 else
7871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7872 printf %s "checking for $ac_word... " >&6; }
7873 if test ${ac_cv_prog_XXD_FOUND+y}
7874 then :
7875 printf %s "(cached) " >&6
7876 else $as_nop
64967877 if test -n "$XXD_FOUND"; then
64977878 ac_cv_prog_XXD_FOUND="$XXD_FOUND" # Let the user override the test.
64987879 else
65007881 for as_dir in $PATH
65017882 do
65027883 IFS=$as_save_IFS
6503 test -z "$as_dir" && as_dir=.
7884 case $as_dir in #(((
7885 '') as_dir=./ ;;
7886 */) ;;
7887 *) as_dir=$as_dir/ ;;
7888 esac
65047889 for ac_exec_ext in '' $ac_executable_extensions; do
6505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7890 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
65067891 ac_cv_prog_XXD_FOUND="yes"
6507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7892 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
65087893 break 2
65097894 fi
65107895 done
65157900 fi
65167901 XXD_FOUND=$ac_cv_prog_XXD_FOUND
65177902 if test -n "$XXD_FOUND"; then
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XXD_FOUND" >&5
6519 $as_echo "$XXD_FOUND" >&6; }
7903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XXD_FOUND" >&5
7904 printf "%s\n" "$XXD_FOUND" >&6; }
65207905 else
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6522 $as_echo "no" >&6; }
7906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7907 printf "%s\n" "no" >&6; }
65237908 fi
65247909
65257910
65647949 case $ac_val in #(
65657950 *${as_nl}*)
65667951 case $ac_var in #(
6567 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6568 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7952 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7953 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
65697954 esac
65707955 case $ac_var in #(
65717956 _ | IFS | as_nl) ;; #(
65957980 /^ac_cv_env_/b end
65967981 t clear
65977982 :clear
6598 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7983 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
65997984 t end
66007985 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
66017986 :end' >>confcache
66027987 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
66037988 if test -w "$cache_file"; then
66047989 if test "x$cache_file" != "x/dev/null"; then
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6606 $as_echo "$as_me: updating cache $cache_file" >&6;}
7990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7991 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
66077992 if test ! -f "$cache_file" || test -h "$cache_file"; then
66087993 cat confcache >"$cache_file"
66097994 else
66178002 fi
66188003 fi
66198004 else
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6621 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8006 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
66228007 fi
66238008 fi
66248009 rm -f confcache
66718056 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
66728057 # 1. Remove the extension, and $U if already installed.
66738058 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6674 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8059 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
66758060 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
66768061 # will be set to the directory where LIBOBJS objects are built.
66778062 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
66828067 LTLIBOBJS=$ac_ltlibobjs
66838068
66848069
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
6686 $as_echo_n "checking that generated files are newer than configure... " >&6; }
8070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
8071 printf %s "checking that generated files are newer than configure... " >&6; }
66878072 if test -n "$am_sleep_pid"; then
66888073 # Hide warnings about reused PIDs.
66898074 wait $am_sleep_pid 2>/dev/null
66908075 fi
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
6692 $as_echo "done" >&6; }
8076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
8077 printf "%s\n" "done" >&6; }
66938078 if test -n "$EXEEXT"; then
66948079 am__EXEEXT_TRUE=
66958080 am__EXEEXT_FALSE='#'
67238108 ac_write_fail=0
67248109 ac_clean_files_save=$ac_clean_files
67258110 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6727 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8112 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
67288113 as_write_fail=0
67298114 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
67308115 #! $SHELL
67478132
67488133 # Be more Bourne compatible
67498134 DUALCASE=1; export DUALCASE # for MKS sh
6750 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8135 as_nop=:
8136 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
8137 then :
67518138 emulate sh
67528139 NULLCMD=:
67538140 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
67548141 # is contrary to our usage. Disable this feature.
67558142 alias -g '${1+"$@"}'='"$@"'
67568143 setopt NO_GLOB_SUBST
6757 else
8144 else $as_nop
67588145 case `(set -o) 2>/dev/null` in #(
67598146 *posix*) :
67608147 set -o posix ;; #(
67648151 fi
67658152
67668153
8154
8155 # Reset variables that may have inherited troublesome values from
8156 # the environment.
8157
8158 # IFS needs to be set, to space, tab, and newline, in precisely that order.
8159 # (If _AS_PATH_WALK were called with IFS unset, it would have the
8160 # side effect of setting IFS to empty, thus disabling word splitting.)
8161 # Quoting is to prevent editors from complaining about space-tab.
67678162 as_nl='
67688163 '
67698164 export as_nl
6770 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6771 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6772 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6773 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6774 # Prefer a ksh shell builtin over an external printf program on Solaris,
6775 # but without wasting forks for bash or zsh.
6776 if test -z "$BASH_VERSION$ZSH_VERSION" \
6777 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6778 as_echo='print -r --'
6779 as_echo_n='print -rn --'
6780 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6781 as_echo='printf %s\n'
6782 as_echo_n='printf %s'
6783 else
6784 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6785 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6786 as_echo_n='/usr/ucb/echo -n'
6787 else
6788 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6789 as_echo_n_body='eval
6790 arg=$1;
6791 case $arg in #(
6792 *"$as_nl"*)
6793 expr "X$arg" : "X\\(.*\\)$as_nl";
6794 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6795 esac;
6796 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6797 '
6798 export as_echo_n_body
6799 as_echo_n='sh -c $as_echo_n_body as_echo'
6800 fi
6801 export as_echo_body
6802 as_echo='sh -c $as_echo_body as_echo'
6803 fi
8165 IFS=" "" $as_nl"
8166
8167 PS1='$ '
8168 PS2='> '
8169 PS4='+ '
8170
8171 # Ensure predictable behavior from utilities with locale-dependent output.
8172 LC_ALL=C
8173 export LC_ALL
8174 LANGUAGE=C
8175 export LANGUAGE
8176
8177 # We cannot yet rely on "unset" to work, but we need these variables
8178 # to be unset--not just set to an empty or harmless value--now, to
8179 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
8180 # also avoids known problems related to "unset" and subshell syntax
8181 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
8182 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
8183 do eval test \${$as_var+y} \
8184 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8185 done
8186
8187 # Ensure that fds 0, 1, and 2 are open.
8188 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
8189 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
8190 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
68048191
68058192 # The user is always right.
6806 if test "${PATH_SEPARATOR+set}" != set; then
8193 if ${PATH_SEPARATOR+false} :; then
68078194 PATH_SEPARATOR=:
68088195 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
68098196 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
68118198 }
68128199 fi
68138200
6814
6815 # IFS
6816 # We need space, tab and new line, in precisely that order. Quoting is
6817 # there to prevent editors from complaining about space-tab.
6818 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6819 # splitting by setting IFS to empty value.)
6820 IFS=" "" $as_nl"
68218201
68228202 # Find who we are. Look in the path if we contain no directory separator.
68238203 as_myself=
68278207 for as_dir in $PATH
68288208 do
68298209 IFS=$as_save_IFS
6830 test -z "$as_dir" && as_dir=.
6831 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8210 case $as_dir in #(((
8211 '') as_dir=./ ;;
8212 */) ;;
8213 *) as_dir=$as_dir/ ;;
8214 esac
8215 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
68328216 done
68338217 IFS=$as_save_IFS
68348218
68408224 as_myself=$0
68418225 fi
68428226 if test ! -f "$as_myself"; then
6843 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8227 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
68448228 exit 1
68458229 fi
68468230
6847 # Unset variables that we do not need and which cause bugs (e.g. in
6848 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6849 # suppresses any "Segmentation fault" message there. '((' could
6850 # trigger a bug in pdksh 5.2.14.
6851 for as_var in BASH_ENV ENV MAIL MAILPATH
6852 do eval test x\${$as_var+set} = xset \
6853 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6854 done
6855 PS1='$ '
6856 PS2='> '
6857 PS4='+ '
6858
6859 # NLS nuisances.
6860 LC_ALL=C
6861 export LC_ALL
6862 LANGUAGE=C
6863 export LANGUAGE
6864
6865 # CDPATH.
6866 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
68678231
68688232
68698233 # as_fn_error STATUS ERROR [LINENO LOG_FD]
68768240 as_status=$1; test $as_status -eq 0 && as_status=1
68778241 if test "$4"; then
68788242 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6879 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8243 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
68808244 fi
6881 $as_echo "$as_me: error: $2" >&2
8245 printf "%s\n" "$as_me: error: $2" >&2
68828246 as_fn_exit $as_status
68838247 } # as_fn_error
8248
68848249
68858250
68868251 # as_fn_set_status STATUS
69098274 { eval $1=; unset $1;}
69108275 }
69118276 as_unset=as_fn_unset
8277
69128278 # as_fn_append VAR VALUE
69138279 # ----------------------
69148280 # Append the text in VALUE to the end of the definition contained in VAR. Take
69158281 # advantage of any shell optimizations that allow amortized linear growth over
69168282 # repeated appends, instead of the typical quadratic growth present in naive
69178283 # implementations.
6918 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8284 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
8285 then :
69198286 eval 'as_fn_append ()
69208287 {
69218288 eval $1+=\$2
69228289 }'
6923 else
8290 else $as_nop
69248291 as_fn_append ()
69258292 {
69268293 eval $1=\$$1\$2
69328299 # Perform arithmetic evaluation on the ARGs, and store the result in the
69338300 # global $as_val. Take advantage of shells that can avoid forks. The arguments
69348301 # must be portable across $(()) and expr.
6935 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8302 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
8303 then :
69368304 eval 'as_fn_arith ()
69378305 {
69388306 as_val=$(( $* ))
69398307 }'
6940 else
8308 else $as_nop
69418309 as_fn_arith ()
69428310 {
69438311 as_val=`expr "$@" || test $? -eq 1`
69688336 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69698337 X"$0" : 'X\(//\)$' \| \
69708338 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6971 $as_echo X/"$0" |
8339 printf "%s\n" X/"$0" |
69728340 sed '/^.*\/\([^/][^/]*\)\/*$/{
69738341 s//\1/
69748342 q
69908358 as_cr_digits='0123456789'
69918359 as_cr_alnum=$as_cr_Letters$as_cr_digits
69928360
8361
8362 # Determine whether it's possible to make 'echo' print without a newline.
8363 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
8364 # for compatibility with existing Makefiles.
69938365 ECHO_C= ECHO_N= ECHO_T=
69948366 case `echo -n x` in #(((((
69958367 -n*)
70028374 *)
70038375 ECHO_N='-n';;
70048376 esac
8377
8378 # For backward compatibility with old third-party macros, we provide
8379 # the shell variables $as_echo and $as_echo_n. New code should use
8380 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
8381 as_echo='printf %s\n'
8382 as_echo_n='printf %s'
70058383
70068384 rm -f conf$$ conf$$.exe conf$$.file
70078385 if test -d conf$$.dir; then
70448422 as_dirs=
70458423 while :; do
70468424 case $as_dir in #(
7047 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8425 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
70488426 *) as_qdir=$as_dir;;
70498427 esac
70508428 as_dirs="'$as_qdir' $as_dirs"
70538431 X"$as_dir" : 'X\(//\)[^/]' \| \
70548432 X"$as_dir" : 'X\(//\)$' \| \
70558433 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7056 $as_echo X"$as_dir" |
8434 printf "%s\n" X"$as_dir" |
70578435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
70588436 s//\1/
70598437 q
71158493 # report actual input values of CONFIG_FILES etc. instead of their
71168494 # values after options handling.
71178495 ac_log="
7118 This file was extended by dosfstools $as_me 4.2, which was
7119 generated by GNU Autoconf 2.69. Invocation command line was
8496 This file was extended by dosfstools $as_me 4.2+git, which was
8497 generated by GNU Autoconf 2.71. Invocation command line was
71208498
71218499 CONFIG_FILES = $CONFIG_FILES
71228500 CONFIG_HEADERS = $CONFIG_HEADERS
71698547 Report bugs to the package provider."
71708548
71718549 _ACEOF
8550 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
8551 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
71728552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7173 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8553 ac_cs_config='$ac_cs_config_escaped'
71748554 ac_cs_version="\\
7175 dosfstools config.status 4.2
7176 configured by $0, generated by GNU Autoconf 2.69,
8555 dosfstools config.status 4.2+git
8556 configured by $0, generated by GNU Autoconf 2.71,
71778557 with options \\"\$ac_cs_config\\"
71788558
7179 Copyright (C) 2012 Free Software Foundation, Inc.
8559 Copyright (C) 2021 Free Software Foundation, Inc.
71808560 This config.status script is free software; the Free Software Foundation
71818561 gives unlimited permission to copy, distribute and modify it."
71828562
72168596 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
72178597 ac_cs_recheck=: ;;
72188598 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7219 $as_echo "$ac_cs_version"; exit ;;
8599 printf "%s\n" "$ac_cs_version"; exit ;;
72208600 --config | --confi | --conf | --con | --co | --c )
7221 $as_echo "$ac_cs_config"; exit ;;
8601 printf "%s\n" "$ac_cs_config"; exit ;;
72228602 --debug | --debu | --deb | --de | --d | -d )
72238603 debug=: ;;
72248604 --file | --fil | --fi | --f )
72258605 $ac_shift
72268606 case $ac_optarg in
7227 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8607 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
72288608 '') as_fn_error $? "missing file argument" ;;
72298609 esac
72308610 as_fn_append CONFIG_FILES " '$ac_optarg'"
72318611 ac_need_defaults=false;;
72328612 --he | --h | --help | --hel | -h )
7233 $as_echo "$ac_cs_usage"; exit ;;
8613 printf "%s\n" "$ac_cs_usage"; exit ;;
72348614 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
72358615 | -silent | --silent | --silen | --sile | --sil | --si | --s)
72368616 ac_cs_silent=: ;;
72588638 if \$ac_cs_recheck; then
72598639 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
72608640 shift
7261 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8641 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
72628642 CONFIG_SHELL='$SHELL'
72638643 export CONFIG_SHELL
72648644 exec "\$@"
72728652 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
72738653 ## Running $as_me. ##
72748654 _ASBOX
7275 $as_echo "$ac_log"
8655 printf "%s\n" "$ac_log"
72768656 } >&5
72778657
72788658 _ACEOF
73108690 # We use the long form for the default assignment because of an extremely
73118691 # bizarre bug on SunOS 4.1.3.
73128692 if $ac_need_defaults; then
7313 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7314 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8693 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
8694 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
73158695 fi
73168696
73178697 # Have a temporary directory for convenience. Make it in the build tree
75398919 esac ||
75408920 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
75418921 esac
7542 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8922 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
75438923 as_fn_append ac_file_inputs " '$ac_f'"
75448924 done
75458925
75478927 # use $as_me), people would be surprised to read:
75488928 # /* config.h. Generated by config.status. */
75498929 configure_input='Generated from '`
7550 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8930 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
75518931 `' by configure.'
75528932 if test x"$ac_file" != x-; then
75538933 configure_input="$ac_file. $configure_input"
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7555 $as_echo "$as_me: creating $ac_file" >&6;}
8934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8935 printf "%s\n" "$as_me: creating $ac_file" >&6;}
75568936 fi
75578937 # Neutralize special characters interpreted by sed in replacement strings.
75588938 case $configure_input in #(
75598939 *\&* | *\|* | *\\* )
7560 ac_sed_conf_input=`$as_echo "$configure_input" |
8940 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
75618941 sed 's/[\\\\&|]/\\\\&/g'`;; #(
75628942 *) ac_sed_conf_input=$configure_input;;
75638943 esac
75748954 X"$ac_file" : 'X\(//\)[^/]' \| \
75758955 X"$ac_file" : 'X\(//\)$' \| \
75768956 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7577 $as_echo X"$ac_file" |
8957 printf "%s\n" X"$ac_file" |
75788958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
75798959 s//\1/
75808960 q
75988978 case "$ac_dir" in
75998979 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
76008980 *)
7601 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8981 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
76028982 # A ".." for each directory in $ac_dir_suffix.
7603 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8983 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
76048984 case $ac_top_builddir_sub in
76058985 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
76068986 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
76629042 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
76639043 *datarootdir*) ac_datarootdir_seen=yes;;
76649044 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7666 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9046 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
76679047 _ACEOF
76689048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
76699049 ac_datarootdir_hack='
77079087 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
77089088 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
77099089 "$ac_tmp/out"`; test -z "$ac_out"; } &&
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
77119091 which seems to be undefined. Please make sure it is defined" >&5
7712 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9092 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
77139093 which seems to be undefined. Please make sure it is defined" >&2;}
77149094
77159095 rm -f "$ac_tmp/stdin"
77219101 ;;
77229102
77239103
7724 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7725 $as_echo "$as_me: executing $ac_file commands" >&6;}
9104 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9105 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
77269106 ;;
77279107 esac
77289108
77489128 for am_mf
77499129 do
77509130 # Strip MF so we end up with the name of the file.
7751 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
9131 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
77529132 # Check whether this is an Automake generated Makefile which includes
77539133 # dependency-tracking related rules and includes.
77549134 # Grep'ing the whole file directly is not great: AIX grep has a line
77609140 X"$am_mf" : 'X\(//\)[^/]' \| \
77619141 X"$am_mf" : 'X\(//\)$' \| \
77629142 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
7763 $as_echo X"$am_mf" |
9143 printf "%s\n" X"$am_mf" |
77649144 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
77659145 s//\1/
77669146 q
77829162 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
77839163 X"$am_mf" : 'X\(//\)$' \| \
77849164 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
7785 $as_echo X/"$am_mf" |
9165 printf "%s\n" X/"$am_mf" |
77869166 sed '/^.*\/\([^/][^/]*\)\/*$/{
77879167 s//\1/
77889168 q
78079187 (exit $ac_status); } || am_rc=$?
78089188 done
78099189 if test $am_rc -ne 0; then
7810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9190 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9191 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
78129192 as_fn_error $? "Something went wrong bootstrapping makefile fragments
7813 for automatic dependency tracking. Try re-running configure with the
9193 for automatic dependency tracking. If GNU make was not used, consider
9194 re-running the configure script with MAKE=\"gmake\" (or whatever is
9195 necessary). You can also try re-running configure with the
78149196 '--disable-dependency-tracking' option to at least be able to build
78159197 the package (albeit without support for automatic dependency tracking).
78169198 See \`config.log' for more details" "$LINENO" 5; }
78569238 $ac_cs_success || as_fn_exit 1
78579239 fi
78589240 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7860 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7861 fi
7862
9241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9242 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9243 fi
9244
9245
1313 # You should have received a copy of the GNU General Public License
1414 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1515
16 AC_INIT([dosfstools], [4.2])
16 AC_INIT([dosfstools], [4.2+git])
1717 AC_SUBST([RELEASE_DATE], [2021-01-31])
1818 AM_INIT_AUTOMAKE([1.11 foreign subdir-objects parallel-tests])
1919
5959 sys/ioccom.h \
6060 sys/mkdev.h \
6161 sys/queue.h \
62 sys/sysmacros.h \
6263 ])
6364
6465 AC_CHECK_HEADERS([endian.h sys/endian.h libkern/OSByteOrder.h])
22
33 scriptversion=2018-03-07.03; # UTC
44
5 # Copyright (C) 1999-2018 Free Software Foundation, Inc.
5 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
66
77 # This program is free software; you can redistribute it and/or modify
88 # it under the terms of the GNU General Public License as published by
00 #!/bin/sh
11 # install - install a program, script, or datafile
22
3 scriptversion=2018-03-11.20; # UTC
3 scriptversion=2020-11-14.01; # UTC
44
55 # This originates from X11R5 (mit/util/scripts/install.sh), which was
66 # later released in X11R6 (xc/config/util/install.sh) with the
6868 # Desired mode of installed file.
6969 mode=0755
7070
71 # Create dirs (including intermediate dirs) using mode 755.
72 # This is like GNU 'install' as of coreutils 8.32 (2020).
73 mkdir_umask=22
74
75 backupsuffix=
7176 chgrpcmd=
7277 chmodcmd=$chmodprog
7378 chowncmd=
98103 --version display version info and exit.
99104
100105 -c (ignored)
101 -C install only if different (preserve the last data modification time)
106 -C install only if different (preserve data modification time)
102107 -d create directories instead of installing files.
103108 -g GROUP $chgrpprog installed files to GROUP.
104109 -m MODE $chmodprog installed files to MODE.
105110 -o USER $chownprog installed files to USER.
111 -p pass -p to $cpprog.
106112 -s $stripprog installed files.
113 -S SUFFIX attempt to back up existing files, with suffix SUFFIX.
107114 -t DIRECTORY install into DIRECTORY.
108115 -T report an error if DSTFILE is a directory.
109116
110117 Environment variables override the default commands:
111118 CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
112119 RMPROG STRIPPROG
120
121 By default, rm is invoked with -f; when overridden with RMPROG,
122 it's up to you to specify -f if you want it.
123
124 If -S is not specified, no backups are attempted.
125
126 Email bug reports to bug-automake@gnu.org.
127 Automake home page: https://www.gnu.org/software/automake/
113128 "
114129
115130 while test $# -ne 0; do
136151 -o) chowncmd="$chownprog $2"
137152 shift;;
138153
154 -p) cpprog="$cpprog -p";;
155
139156 -s) stripcmd=$stripprog;;
157
158 -S) backupsuffix="$2"
159 shift;;
140160
141161 -t)
142162 is_target_a_directory=always
254274 dstdir=$dst
255275 test -d "$dstdir"
256276 dstdir_status=$?
277 # Don't chown directories that already exist.
278 if test $dstdir_status = 0; then
279 chowncmd=""
280 fi
257281 else
258282
259283 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
300324 if test $dstdir_status != 0; then
301325 case $posix_mkdir in
302326 '')
303 # Create intermediate dirs using mode 755 as modified by the umask.
304 # This is like FreeBSD 'install' as of 1997-10-28.
305 umask=`umask`
306 case $stripcmd.$umask in
307 # Optimize common cases.
308 *[2367][2367]) mkdir_umask=$umask;;
309 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
310
311 *[0-7])
312 mkdir_umask=`expr $umask + 22 \
313 - $umask % 100 % 40 + $umask % 20 \
314 - $umask % 10 % 4 + $umask % 2
315 `;;
316 *) mkdir_umask=$umask,go-w;;
317 esac
318
319327 # With -d, create the new directory with the user-specified mode.
320328 # Otherwise, rely on $mkdir_umask.
321329 if test -n "$dir_arg"; then
325333 fi
326334
327335 posix_mkdir=false
328 case $umask in
329 *[123567][0-7][0-7])
330 # POSIX mkdir -p sets u+wx bits regardless of umask, which
331 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
332 ;;
333 *)
334 # Note that $RANDOM variable is not portable (e.g. dash); Use it
335 # here however when possible just to lower collision chance.
336 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
337
338 trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0
339
340 # Because "mkdir -p" follows existing symlinks and we likely work
341 # directly in world-writeable /tmp, make sure that the '$tmpdir'
342 # directory is successfully created first before we actually test
343 # 'mkdir -p' feature.
344 if (umask $mkdir_umask &&
345 $mkdirprog $mkdir_mode "$tmpdir" &&
346 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
347 then
348 if test -z "$dir_arg" || {
349 # Check for POSIX incompatibilities with -m.
350 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
351 # other-writable bit of parent directory when it shouldn't.
352 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
353 test_tmpdir="$tmpdir/a"
354 ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
355 case $ls_ld_tmpdir in
356 d????-?r-*) different_mode=700;;
357 d????-?--*) different_mode=755;;
358 *) false;;
359 esac &&
360 $mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
361 ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
362 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
363 }
364 }
365 then posix_mkdir=:
366 fi
367 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
368 else
369 # Remove any dirs left behind by ancient mkdir implementations.
370 rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
371 fi
372 trap '' 0;;
373 esac;;
336 # The $RANDOM variable is not portable (e.g., dash). Use it
337 # here however when possible just to lower collision chance.
338 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
339
340 trap '
341 ret=$?
342 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null
343 exit $ret
344 ' 0
345
346 # Because "mkdir -p" follows existing symlinks and we likely work
347 # directly in world-writeable /tmp, make sure that the '$tmpdir'
348 # directory is successfully created first before we actually test
349 # 'mkdir -p'.
350 if (umask $mkdir_umask &&
351 $mkdirprog $mkdir_mode "$tmpdir" &&
352 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
353 then
354 if test -z "$dir_arg" || {
355 # Check for POSIX incompatibilities with -m.
356 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
357 # other-writable bit of parent directory when it shouldn't.
358 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
359 test_tmpdir="$tmpdir/a"
360 ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
361 case $ls_ld_tmpdir in
362 d????-?r-*) different_mode=700;;
363 d????-?--*) different_mode=755;;
364 *) false;;
365 esac &&
366 $mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
367 ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
368 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
369 }
370 }
371 then posix_mkdir=:
372 fi
373 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
374 else
375 # Remove any dirs left behind by ancient mkdir implementations.
376 rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
377 fi
378 trap '' 0;;
374379 esac
375380
376381 if
381386 then :
382387 else
383388
384 # The umask is ridiculous, or mkdir does not conform to POSIX,
389 # mkdir does not conform to POSIX,
385390 # or it failed possibly due to a race condition. Create the
386391 # directory the slow way, step by step, checking for races as we go.
387392
410415 prefixes=
411416 else
412417 if $posix_mkdir; then
413 (umask=$mkdir_umask &&
418 (umask $mkdir_umask &&
414419 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
415420 # Don't fail if two instances are running concurrently.
416421 test -d "$prefix" || exit 1
450455 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
451456
452457 # Copy the file name to the temp name.
453 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
458 (umask $cp_umask &&
459 { test -z "$stripcmd" || {
460 # Create $dsttmp read-write so that cp doesn't create it read-only,
461 # which would cause strip to fail.
462 if test -z "$doit"; then
463 : >"$dsttmp" # No need to fork-exec 'touch'.
464 else
465 $doit touch "$dsttmp"
466 fi
467 }
468 } &&
469 $doit_exec $cpprog "$src" "$dsttmp") &&
454470
455471 # and set any options; do chmod last to preserve setuid bits.
456472 #
476492 then
477493 rm -f "$dsttmp"
478494 else
495 # If $backupsuffix is set, and the file being installed
496 # already exists, attempt a backup. Don't worry if it fails,
497 # e.g., if mv doesn't support -f.
498 if test -n "$backupsuffix" && test -f "$dst"; then
499 $doit $mvcmd -f "$dst" "$dst$backupsuffix" 2>/dev/null
500 fi
501
479502 # Rename the file to the real destination.
480503 $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
481504
490513 # file should still install successfully.
491514 {
492515 test ! -f "$dst" ||
493 $doit $rmcmd -f "$dst" 2>/dev/null ||
516 $doit $rmcmd "$dst" 2>/dev/null ||
494517 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
495 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
518 { $doit $rmcmd "$rmtmp" 2>/dev/null; :; }
496519 } ||
497520 { echo "$0: cannot unlink or rename $dst" >&2
498521 (exit 1); exit 1
0 # Makefile.in generated by automake 1.16.1 from Makefile.am.
0 # Makefile.in generated by automake 1.16.4 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2018 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
178178 CHECKATARI = @CHECKATARI@
179179 CPP = @CPP@
180180 CPPFLAGS = @CPPFLAGS@
181 CSCOPE = @CSCOPE@
182 CTAGS = @CTAGS@
181183 CYGPATH_W = @CYGPATH_W@
182184 DEFS = @DEFS@
183185 DEPDIR = @DEPDIR@
185187 ECHO_N = @ECHO_N@
186188 ECHO_T = @ECHO_T@
187189 EGREP = @EGREP@
190 ETAGS = @ETAGS@
188191 EXEEXT = @EXEEXT@
189192 GREP = @GREP@
190193 INSTALL = @INSTALL@
355358
356359 cscope cscopelist:
357360
358
359361 distdir: $(BUILT_SOURCES)
360362 $(MAKE) $(AM_MAKEFLAGS) distdir-am
361363
22
33 scriptversion=2018-03-07.03; # UTC
44
5 # Copyright (C) 1996-2018 Free Software Foundation, Inc.
5 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
66 # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
77
88 # This program is free software; you can redistribute it and/or modify
0 # Makefile.in generated by automake 1.16.1 from Makefile.am.
0 # Makefile.in generated by automake 1.16.4 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2018 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
220220 unique=`for i in $$list; do \
221221 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
222222 done | $(am__uniquify_input)`
223 ETAGS = etags
224 CTAGS = ctags
225223 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/version.h.in \
226224 $(top_srcdir)/depcomp
227225 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
238236 CHECKATARI = @CHECKATARI@
239237 CPP = @CPP@
240238 CPPFLAGS = @CPPFLAGS@
239 CSCOPE = @CSCOPE@
240 CTAGS = @CTAGS@
241241 CYGPATH_W = @CYGPATH_W@
242242 DEFS = @DEFS@
243243 DEPDIR = @DEPDIR@
245245 ECHO_N = @ECHO_N@
246246 ECHO_T = @ECHO_T@
247247 EGREP = @EGREP@
248 ETAGS = @ETAGS@
248249 EXEEXT = @EXEEXT@
249250 GREP = @GREP@
250251 INSTALL = @INSTALL@
710711
711712 distclean-tags:
712713 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
713
714714 distdir: $(BUILT_SOURCES)
715715 $(MAKE) $(AM_MAKEFLAGS) distdir-am
716716
66 #include <sys/types.h>
77 #include <sys/stat.h>
88 #include <sys/ioctl.h>
9 #include <sys/sysmacros.h>
109 #include <unistd.h>
1110 #include <stdint.h>
1211 #include <stdio.h>
1312 #include <limits.h>
13
14 #ifdef HAVE_SYS_SYSMACROS_H
15 #include <sys/sysmacros.h>
16 #endif
1417
1518 #ifdef HAVE_LINUX_HDREG_H
1619 #include <linux/hdreg.h>
3232 #include <stdlib.h>
3333 #include <sys/types.h>
3434 #include <time.h>
35 #include <errno.h>
36 #include <ctype.h>
3537
3638 #include "common.h"
3739 #include "fsck.fat.h"
671673 {
672674 time_t now;
673675 struct tm *mtime;
676 char *source_date_epoch = NULL;
674677 off_t offset;
675678 int created;
676679 DIR_ENT de;
686689 if (de.name[0] == 0xe5)
687690 de.name[0] = 0x05;
688691
689 now = time(NULL);
690 mtime = (now != (time_t)-1) ? localtime(&now) : NULL;
692 source_date_epoch = getenv("SOURCE_DATE_EPOCH");
693 if (source_date_epoch) {
694 char *tmp = NULL;
695 long long conversion = 0;
696 errno = 0;
697 conversion = strtoll(source_date_epoch, &tmp, 10);
698 now = conversion;
699 if (!isdigit((unsigned char)*source_date_epoch) || *tmp != '\0'
700 || errno != 0 || (long long)now != conversion) {
701 die("SOURCE_DATE_EPOCH is too big or contains non-digits: \"%s\"",
702 source_date_epoch);
703 }
704 mtime = gmtime(&now);
705 } else {
706 now = time(NULL);
707 mtime = (now != (time_t)-1) ? localtime(&now) : NULL;
708 }
709
691710 if (mtime && mtime->tm_year >= 80 && mtime->tm_year <= 207) {
692711 de.time = htole16((unsigned short)((mtime->tm_sec >> 1) +
693712 (mtime->tm_min << 5) +
2929 #include <string.h>
3030 #include <stdarg.h>
3131 #include <errno.h>
32 #include <ctype.h>
3233 #include <wctype.h>
3334 #include <termios.h>
3435 #include <sys/time.h>
297298 uint32_t generate_volume_id(void)
298299 {
299300 struct timeval now;
300
301 if (gettimeofday(&now, NULL) != 0 || now.tv_sec == (time_t)-1 || now.tv_sec < 0) {
301 char *source_date_epoch = NULL;
302
303 source_date_epoch = getenv("SOURCE_DATE_EPOCH");
304 if (source_date_epoch) {
305 char *tmp = NULL;
306 long long conversion = 0;
307 errno = 0;
308 conversion = strtoll(source_date_epoch, &tmp, 10);
309 if (!isdigit((unsigned char)*source_date_epoch) || *tmp != '\0'
310 || errno != 0) {
311 die("SOURCE_DATE_EPOCH is too big or contains non-digits: \"%s\"",
312 source_date_epoch);
313 }
314 return (uint32_t)conversion;
315 } else if (gettimeofday(&now, NULL) != 0 || now.tv_sec == (time_t)-1 || now.tv_sec < 0) {
302316 srand(getpid());
303317 /* rand() returns int from [0,RAND_MAX], therefore only 31 bits */
304318 return (((uint32_t)(rand() & 0xFFFF)) << 16) | ((uint32_t)(rand() & 0xFFFF));
2323 #include <sys/types.h>
2424 #include <sys/stat.h>
2525 #include <sys/ioctl.h>
26
27 #ifdef HAVE_SYS_SYSMACROS_H
2628 #include <sys/sysmacros.h>
29 #endif
2730
2831 #ifdef HAVE_LINUX_LOOP_H
2932 #include <linux/loop.h>
122122 if (fat_table > fs->nfats)
123123 die("Requested FAT table %ld does not exist.", fat_table);
124124 if (fat_table > 2)
125 die("Reading FAT table greather than 2 is implemented yet.");
125 die("Reading FAT table greather than 2 is not implemented yet.");
126126
127127 /* Clean up from previous pass */
128128 release_fat(fs);
151151 errno = 0;
152152 conversion = strtoll(newserial, &tmp, 16);
153153
154 if (!*newserial || isspace(*newserial) || *tmp || conversion < 0) {
154 if (!*newserial || isspace((unsigned char)*newserial) || *tmp || conversion < 0) {
155155 fprintf(stderr, "fatlabel: volume ID must be a hexadecimal number\n");
156156 exit(1);
157157 }
181181 }
182182
183183
184 static void usage(int error, int usage_only)
184 static void usage(char *name, int error, int usage_only)
185185 {
186186 FILE *f = error ? stderr : stdout;
187187 int status = error ? 1 : 0;
188188
189 fprintf(f, "Usage: fatlabel [OPTIONS] DEVICE [NEW]\n");
189 fprintf(f, "fatlabel " VERSION " (" VERSION_DATE ")\n");
190 fprintf(f, "Usage: %s [OPTIONS] DEVICE [NEW]\n", name);
190191 if (usage_only)
191192 exit(status);
192193
237238 case 'c':
238239 errno = 0;
239240 codepage = strtol(optarg, &tmp, 10);
240 if (!*optarg || isspace(*optarg) || *tmp || errno || codepage < 0 || codepage > INT_MAX) {
241 if (!*optarg || isspace((unsigned char)*optarg) || *tmp || errno || codepage < 0 || codepage > INT_MAX) {
241242 fprintf(stderr, "Invalid codepage : %s\n", optarg);
242 usage(1, 0);
243 usage(argv[0], 1, 0);
243244 }
244245 if (!set_dos_codepage(codepage))
245 usage(1, 0);
246 usage(argv[0], 1, 0);
246247 break;
247248
248249 case 'V':
251252 break;
252253
253254 case 'h':
254 usage(0, 0);
255 usage(argv[0], 0, 0);
255256 break;
256257
257258 case '?':
258 usage(1, 0);
259 usage(argv[0], 1, 0);
259260 exit(1);
260261
261262 default:
273274 } else if (optind == argc - 1) {
274275 change = false;
275276 } else {
276 usage(1, 1);
277 usage(argv[0], 1, 1);
277278 }
278279
279280 if (change || reset)
123123 rw = interactive = 1;
124124 check_atari();
125125
126 printf("fsck.fat " VERSION " (" VERSION_DATE ")\n");
127
126128 while ((c = getopt_long(argc, argv, "Aac:d:bfF:lnprStu:UvVwy",
127129 long_options, NULL)) != -1)
128130 switch (c) {
144146 case 'c':
145147 errno = 0;
146148 codepage = strtol(optarg, &tmp, 10);
147 if (!*optarg || isspace(*optarg) || *tmp || errno || codepage < 0 || codepage > INT_MAX) {
149 if (!*optarg || isspace((unsigned char)*optarg) || *tmp || errno || codepage < 0 || codepage > INT_MAX) {
148150 fprintf(stderr, "Invalid codepage : %s\n", optarg);
149151 usage(argv[0], 2);
150152 }
160162 case 'F':
161163 errno = 0;
162164 fat_table = strtol(optarg, &tmp, 10);
163 if (!*optarg || isspace(*optarg) || *tmp || errno || fat_table < 0 || fat_table > 255) {
165 if (!*optarg || isspace((unsigned char)*optarg) || *tmp || errno || fat_table < 0 || fat_table > 255) {
164166 fprintf(stderr, "Invalid FAT table : %s\n", optarg);
165167 usage(argv[0], 2);
166168 }
227229 if (optind != argc - 1)
228230 usage(argv[0], 2);
229231
230 printf("fsck.fat " VERSION " (" VERSION_DATE ")\n");
231232 fs_open(argv[optind], rw);
232233
233234 read_boot(&fs);
467467
468468 check = end;
469469 while (*check) {
470 if (!isspace(*check)) {
470 if (!isspace((unsigned char)*check)) {
471471 fprintf(stderr,
472472 "Badly formed number in bad blocks file line %d\n",
473473 lineno);
10731073 }
10741074
10751075 /* If is not available then generate random 32 bit disk signature */
1076 if (invariant)
1076 if (invariant || getenv("SOURCE_DATE_EPOCH"))
10771077 disk_sig = volume_id;
10781078 else if (!disk_sig)
10791079 disk_sig = generate_volume_id();
10941094 partition[3] = 0;
10951095
10961096 /* Partition type */
1097 if (le16toh(bs.heads) > 254 || le16toh(bs.secs_track) > 63) { /* CHS values are out of range for MBR, use LBA */
1097 if (le16toh(bs.heads) > 255 || le16toh(bs.secs_track) > 63) { /* CHS values are out of range for MBR, use LBA */
10981098 if (size_fat != 32)
10991099 partition[4] = 0x0E; /* BIG FAT16 (LBA) */
11001100 else
11111111 partition[4] = 0x0C; /* FAT32 (LBA) */
11121112
11131113 /* CHS address of the last sector */
1114 if (le16toh(bs.heads) > 254 || le16toh(bs.secs_track) > 63 || num_sectors >= le16toh(bs.secs_track) * le16toh(bs.heads) * 1024) {
1114 if (le16toh(bs.heads) > 255 || le16toh(bs.secs_track) > 63 || num_sectors >= le16toh(bs.secs_track) * le16toh(bs.heads) * 1024) {
11151115 /* If CHS address is too large use tuple (1023, 254, 63) */
11161116 partition[5] = 254;
11171117 partition[6] = 255;
12151215 device_name, le16toh(bs.heads),
12161216 (le16toh(bs.heads) != 1) ? "s" : "", le16toh(bs.secs_track),
12171217 (le16toh(bs.secs_track) != 1) ? "s" : "");
1218 printf("hidden sectors 0x%04x;\n", hidden_sectors);
1218 printf("hidden sectors %u;\n", hidden_sectors);
12191219 printf("logical sector size is %d,\n", sector_size);
12201220 printf("using 0x%02x media descriptor, with %u sectors;\n",
12211221 (int)(bs.media), (unsigned)num_sectors);
12861286 de->name[0] = 0x05;
12871287 de->attr = ATTR_VOLUME;
12881288 if (create_time != (time_t)-1) {
1289 if (!invariant)
1289 if (!invariant && !getenv("SOURCE_DATE_EPOCH"))
12901290 ctime = localtime(&create_time);
12911291 else
12921292 ctime = gmtime(&create_time);
14541454 fprintf(stderr, " -v Verbose execution\n");
14551455 fprintf(stderr, " --variant=TYPE Select variant TYPE of filesystem (standard or Atari)\n");
14561456 fprintf(stderr, "\n");
1457 fprintf(stderr, " --invariant Use constants for randomly generated or time based values\n");
14581457 fprintf(stderr, " --offset=SECTOR Write the filesystem at a specific sector into the device file.\n");
14591458 fprintf(stderr, " --help Show this help message and exit\n");
14601459 exit(exitval);
14761475 int blocks_specified = 0;
14771476 struct timeval create_timeval;
14781477 long long conversion;
1478 char *source_date_epoch = NULL;
14791479
14801480 enum {OPT_HELP=1000, OPT_INVARIANT, OPT_MBR, OPT_VARIANT, OPT_CODEPAGE, OPT_OFFSET};
14811481 const struct option long_options[] = {
14961496 program_name = p + 1;
14971497 }
14981498
1499 if (gettimeofday(&create_timeval, NULL) == 0 && create_timeval.tv_sec != (time_t)-1)
1499 source_date_epoch = getenv("SOURCE_DATE_EPOCH");
1500 if (source_date_epoch) {
1501 errno = 0;
1502 conversion = strtoll(source_date_epoch, &tmp, 10);
1503 create_time = conversion;
1504 if (!isdigit((unsigned char)*source_date_epoch) || *tmp != '\0'
1505 || errno != 0 || (long long)create_time != conversion) {
1506 die("SOURCE_DATE_EPOCH is too big or contains non-digits: \"%s\"",
1507 source_date_epoch);
1508 }
1509 } else if (gettimeofday(&create_timeval, NULL) == 0 && create_timeval.tv_sec != (time_t)-1) {
15001510 create_time = create_timeval.tv_sec;
1511 }
1512
15011513 volume_id = generate_volume_id();
15021514 check_atari();
15031515
15181530 case 'b': /* b : location of backup boot sector */
15191531 errno = 0;
15201532 conversion = strtol(optarg, &tmp, 0);
1521 if (!*optarg || isspace(*optarg) || *tmp || errno || conversion < 0 || conversion > 0xffff) {
1533 if (!*optarg || isspace((unsigned char)*optarg) || *tmp || errno || conversion < 0 || conversion > 0xffff) {
15221534 printf("Bad location for backup boot sector : %s\n", optarg);
15231535 usage(argv[0], 1);
15241536 }
15381550 case 'D': /* D : Choose Drive Number */
15391551 errno = 0;
15401552 conversion = strtol(optarg, &tmp, 0);
1541 if (!*optarg || isspace(*optarg) || *tmp || errno || conversion < 0x00 || conversion > 0xFF) {
1553 if (!*optarg || isspace((unsigned char)*optarg) || *tmp || errno || conversion < 0x00 || conversion > 0xFF) {
15421554 printf ("Bad drive number: %s\n", optarg);
15431555 usage(argv[0], 1);
15441556 }
15491561 case 'f': /* f : Choose number of FATs */
15501562 errno = 0;
15511563 conversion = strtol(optarg, &tmp, 0);
1552 if (!*optarg || isspace(*optarg) || *tmp || errno || conversion < 1 || conversion > 4) {
1564 if (!*optarg || isspace((unsigned char)*optarg) || *tmp || errno || conversion < 1 || conversion > 4) {
15531565 printf("Bad number of FATs : %s\n", optarg);
15541566 usage(argv[0], 1);
15551567 }
15591571 case 'F': /* F : Choose FAT size */
15601572 errno = 0;
15611573 conversion = strtol(optarg, &tmp, 0);
1562 if (!*optarg || isspace(*optarg) || *tmp || errno || (conversion != 12 && conversion != 16 && conversion != 32)) {
1574 if (!*optarg || isspace((unsigned char)*optarg) || *tmp || errno || (conversion != 12 && conversion != 16 && conversion != 32)) {
15631575 printf("Bad FAT type : %s\n", optarg);
15641576 usage(argv[0], 1);
15651577 }
15701582 case 'g': /* g : geometry: heads and sectors per track */
15711583 errno = 0;
15721584 conversion = strtol(optarg, &tmp, 0);
1573 if (!*optarg || isspace(*optarg) || tmp[0] != '/' || !tmp[1] || isspace(tmp[1]) || errno || conversion <= 0 || conversion > UINT16_MAX) {
1585 if (!*optarg || isspace((unsigned char)*optarg) || tmp[0] != '/' || !tmp[1] || isspace((unsigned char)tmp[1]) || errno || conversion <= 0 || conversion > UINT16_MAX) {
15741586 printf("Bad format of geometry : %s\n", optarg);
15751587 usage(argv[0], 1);
15761588 }
15861598 case 'h': /* h : number of hidden sectors */
15871599 errno = 0;
15881600 conversion = strtoll(optarg, &tmp, 0);
1589 if (!*optarg || isspace(*optarg) || *tmp || errno || conversion < 0 || conversion > UINT32_MAX) {
1601 if (!*optarg || isspace((unsigned char)*optarg) || *tmp || errno || conversion < 0 || conversion > UINT32_MAX) {
15901602 printf("Bad number of hidden sectors : %s\n", optarg);
15911603 usage(argv[0], 1);
15921604 }
16021614 errno = 0;
16031615 conversion = strtoll(optarg, &tmp, 16);
16041616
1605 if (!*optarg || isspace(*optarg) || *tmp || conversion < 0) {
1617 if (!*optarg || isspace((unsigned char)*optarg) || *tmp || conversion < 0) {
16061618 printf("Volume ID must be a hexadecimal number\n");
16071619 usage(argv[0], 1);
16081620 }
16861698 case 'M': /* M : FAT Media byte */
16871699 errno = 0;
16881700 conversion = strtol(optarg, &tmp, 0);
1689 if (!*optarg || isspace(*optarg) || *tmp || errno) {
1701 if (!*optarg || isspace((unsigned char)*optarg) || *tmp || errno) {
16901702 printf("Bad number for media descriptor : %s\n", optarg);
16911703 usage(argv[0], 1);
16921704 }
17041716 case OPT_CODEPAGE: /* --codepage : Code page */
17051717 errno = 0;
17061718 conversion = strtol(optarg, &tmp, 10);
1707 if (!*optarg || isspace(*optarg) || *tmp || errno || conversion < 0 || conversion > INT_MAX) {
1719 if (!*optarg || isspace((unsigned char)*optarg) || *tmp || errno || conversion < 0 || conversion > INT_MAX) {
17081720 fprintf(stderr, "Invalid codepage : %s\n", optarg);
17091721 usage(argv[0], 1);
17101722 }
17151727 case 'r': /* r : Root directory entries */
17161728 errno = 0;
17171729 conversion = strtol(optarg, &tmp, 0);
1718 if (!*optarg || isspace(*optarg) || *tmp || errno || conversion < 16 || conversion > 32768) {
1730 if (!*optarg || isspace((unsigned char)*optarg) || *tmp || errno || conversion < 16 || conversion > 32768) {
17191731 printf("Bad number of root directory entries : %s\n", optarg);
17201732 usage(argv[0], 1);
17211733 }
17261738 case 'R': /* R : number of reserved sectors */
17271739 errno = 0;
17281740 conversion = strtol(optarg, &tmp, 0);
1729 if (!*optarg || isspace(*optarg) || *tmp || errno || conversion < 1 || conversion > 0xffff) {
1741 if (!*optarg || isspace((unsigned char)*optarg) || *tmp || errno || conversion < 1 || conversion > 0xffff) {
17301742 printf("Bad number of reserved sectors : %s\n", optarg);
17311743 usage(argv[0], 1);
17321744 }
17361748 case 's': /* s : Sectors per cluster */
17371749 errno = 0;
17381750 conversion = strtol(optarg, &tmp, 0);
1739 if (!*optarg || isspace(*optarg) || *tmp || errno || (conversion != 1 && conversion != 2
1751 if (!*optarg || isspace((unsigned char)*optarg) || *tmp || errno || (conversion != 1 && conversion != 2
17401752 && conversion != 4 && conversion != 8 && conversion != 16
17411753 && conversion != 32 && conversion != 64 && conversion != 128)) {
17421754 printf("Bad number of sectors per cluster : %s\n", optarg);
17481760 case 'S': /* S : Sector size */
17491761 errno = 0;
17501762 conversion = strtol(optarg, &tmp, 0);
1751 if (!*optarg || isspace(*optarg) || *tmp || errno || (conversion != 512 && conversion != 1024 &&
1763 if (!*optarg || isspace((unsigned char)*optarg) || *tmp || errno || (conversion != 512 && conversion != 1024 &&
17521764 conversion != 2048 && conversion != 4096 && conversion != 8192 &&
17531765 conversion != 16384 && conversion != 32768)) {
17541766 printf("Bad logical sector size : %s\n", optarg);
17991811 case OPT_OFFSET:
18001812 errno = 0;
18011813 conversion = strtoll(optarg, &tmp, 0);
1802 if (!*optarg || isspace(*optarg) || *tmp || errno) {
1814 if (!*optarg || isspace((unsigned char)*optarg) || *tmp || errno) {
18031815 printf("Bad number for offset : %s\n", optarg);
18041816 usage(argv[0], 1);
18051817 }
18371849 errno = 0;
18381850 conversion = strtoll(argv[optind], &tmp, 0);
18391851
1840 if (!*argv[optind] || isspace(*argv[optind]) || *tmp || errno || conversion < 0) {
1852 if (!*argv[optind] || isspace((unsigned char)*argv[optind]) || *tmp || errno || conversion < 0) {
18411853 printf("Bad block count : %s\n", argv[optind]);
18421854 usage(argv[0], 1);
18431855 }
22
33 scriptversion=2018-03-07.03; # UTC
44
5 # Copyright (C) 2011-2018 Free Software Foundation, Inc.
5 # Copyright (C) 2011-2021 Free Software Foundation, Inc.
66 #
77 # This program is free software; you can redistribute it and/or modify
88 # it under the terms of the GNU General Public License as published by
4141 {
4242 cat <<END
4343 Usage:
44 test-driver --test-name=NAME --log-file=PATH --trs-file=PATH
45 [--expect-failure={yes|no}] [--color-tests={yes|no}]
46 [--enable-hard-errors={yes|no}] [--]
44 test-driver --test-name NAME --log-file PATH --trs-file PATH
45 [--expect-failure {yes|no}] [--color-tests {yes|no}]
46 [--enable-hard-errors {yes|no}] [--]
4747 TEST-SCRIPT [TEST-SCRIPT-ARGUMENTS]
48
4849 The '--test-name', '--log-file' and '--trs-file' options are mandatory.
50 See the GNU Automake documentation for information.
4951 END
5052 }
5153
102104 trap "st=141; $do_exit" 13
103105 trap "st=143; $do_exit" 15
104106
105 # Test script is run here.
106 "$@" >$log_file 2>&1
107 # Test script is run here. We create the file first, then append to it,
108 # to ameliorate tests themselves also writing to the log file. Our tests
109 # don't, but others can (automake bug#35762).
110 : >"$log_file"
111 "$@" >>"$log_file" 2>&1
107112 estatus=$?
108113
109114 if test $enable_hard_errors = no && test $estatus -eq 99; then
125130 # know whether the test passed or failed simply by looking at the '.log'
126131 # file, without the need of also peaking into the corresponding '.trs'
127132 # file (automake bug#11814).
128 echo "$res $test_name (exit status: $estatus)" >>$log_file
133 echo "$res $test_name (exit status: $estatus)" >>"$log_file"
129134
130135 # Report outcome to console.
131136 echo "${col}${res}${std}: $test_name"
0 # Makefile.in generated by automake 1.16.1 from Makefile.am.
0 # Makefile.in generated by automake 1.16.4 from Makefile.am.
11 # @configure_input@
22
3 # Copyright (C) 1994-2018 Free Software Foundation, Inc.
3 # Copyright (C) 1994-2021 Free Software Foundation, Inc.
44
55 # This Makefile.in is free software; the Free Software Foundation
66 # gives unlimited permission to copy and/or distribute it,
298298 bases='$(TEST_LOGS)'; \
299299 bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \
300300 bases=`echo $$bases`
301 AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)'
301302 RECHECK_LOGS = $(TEST_LOGS)
302303 AM_RECURSIVE_TARGETS = check recheck
303304 TEST_SUITE_LOG = test-suite.log
340341 CHECKATARI = @CHECKATARI@
341342 CPP = @CPP@
342343 CPPFLAGS = @CPPFLAGS@
344 CSCOPE = @CSCOPE@
345 CTAGS = @CTAGS@
343346 CYGPATH_W = @CYGPATH_W@
344347 DEFS = @DEFS@
345348 DEPDIR = @DEPDIR@
347350 ECHO_N = @ECHO_N@
348351 ECHO_T = @ECHO_T@
349352 EGREP = @EGREP@
353 ETAGS = @ETAGS@
350354 EXEEXT = @EXEEXT@
351355 GREP = @GREP@
352356 INSTALL = @INSTALL@
708712 test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \
709713 fi; \
710714 echo "$${col}$$br$${std}"; \
711 echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \
715 echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \
712716 echo "$${col}$$br$${std}"; \
713717 create_testsuite_report --maybe-color; \
714718 echo "$$col$$br$$std"; \
784788 @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \
785789 @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_LABEL_LOG_DRIVER_FLAGS) $(LABEL_LOG_DRIVER_FLAGS) -- $(LABEL_LOG_COMPILE) \
786790 @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT)
787
788791 distdir: $(BUILT_SOURCES)
789792 $(MAKE) $(AM_MAKEFLAGS) distdir-am
790793
4040 fi
4141
4242
43 if [ -f "$testname.args" ]; then
44 ARGS=$(cat "$testname.args")
43 if [ -f "${srcdir}/${testname}.args" ]; then
44 ARGS=$(cat "${srcdir}/${testname}.args")
4545 else
4646 ARGS=
4747 fi
5151 rm -f "${testname}.out" "${testname}.refimg"
5252
5353 xxd -r "${srcdir}/${testname}.xxd" "${testname}.refimg" || exit 99
54 run_mkfs -C -v --invariant $ARGS "${testname}.out" $SIZE || exit 99
54 (export SOURCE_DATE_EPOCH=1426325213; run_mkfs -C -v -i 0x1234abcd $ARGS "${testname}.out" $SIZE) || exit 99
5555
5656 echo
5757 echo "Comparing..."