Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for binfmt-support 2.2.2.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else $as_nop
191 as_have_required=no
192 fi
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
195
196 else $as_nop
197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 do
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
209 /*)
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219 break 2
220 fi
221 fi
222 done;;
223 esac
224 as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
229
230 else $as_nop
231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi
236 fi
237
238
239 if test "x$CONFIG_SHELL" != x
240 then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno
263 then :
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 printf "%s\n" "$0: Please tell [email protected] and
271 $0: [email protected] about your system, including any
272 $0: error possibly output before this message. Then install
273 $0: a modern shell, or manually run the script under such a
274 $0: shell if you do have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
302 as_fn_set_status ()
303 {
304 return $1
305 } # as_fn_set_status
306
307 # as_fn_exit STATUS
308 # -----------------
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
310 as_fn_exit ()
311 {
312 set +e
313 as_fn_set_status $1
314 exit $1
315 } # as_fn_exit
316 # as_fn_nop
317 # ---------
318 # Do nothing but, unlike ":", preserve the value of $?.
319 as_fn_nop ()
320 {
321 return $?
322 }
323 as_nop=as_fn_nop
324
325 # as_fn_mkdir_p
326 # -------------
327 # Create "$as_dir" as a directory, including parents if necessary.
328 as_fn_mkdir_p ()
329 {
330
331 case $as_dir in #(
332 -*) as_dir=./$as_dir;;
333 esac
334 test -d "$as_dir" || eval $as_mkdir_p || {
335 as_dirs=
336 while :; do
337 case $as_dir in #(
338 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 *) as_qdir=$as_dir;;
340 esac
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 printf "%s\n" X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)[^/].*/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\).*/{
361 s//\1/
362 q
363 }
364 s/.*/./; q'`
365 test -d "$as_dir" && break
366 done
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369
370
371 } # as_fn_mkdir_p
372
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p ()
377 {
378 test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
385 # implementations.
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
387 then :
388 eval 'as_fn_append ()
389 {
390 eval $1+=\$2
391 }'
392 else $as_nop
393 as_fn_append ()
394 {
395 eval $1=\$$1\$2
396 }
397 fi # as_fn_append
398
399 # as_fn_arith ARG...
400 # ------------------
401 # Perform arithmetic evaluation on the ARGs, and store the result in the
402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
403 # must be portable across $(()) and expr.
404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
405 then :
406 eval 'as_fn_arith ()
407 {
408 as_val=$(( $* ))
409 }'
410 else $as_nop
411 as_fn_arith ()
412 {
413 as_val=`expr "$@" || test $? -eq 1`
414 }
415 fi # as_fn_arith
416
417 # as_fn_nop
418 # ---------
419 # Do nothing but, unlike ":", preserve the value of $?.
420 as_fn_nop ()
421 {
422 return $?
423 }
424 as_nop=as_fn_nop
425
426 # as_fn_error STATUS ERROR [LINENO LOG_FD]
427 # ----------------------------------------
428 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
429 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
430 # script with STATUS, using 1 if that was 0.
431 as_fn_error ()
432 {
433 as_status=$1; test $as_status -eq 0 && as_status=1
434 if test "$4"; then
435 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
437 fi
438 printf "%s\n" "$as_me: error: $2" >&2
439 as_fn_exit $as_status
440 } # as_fn_error
441
442 if expr a : '\(a\)' >/dev/null 2>&1 &&
443 test "X`expr 00001 : '.*\(...\)'`" = X001; then
444 as_expr=expr
445 else
446 as_expr=false
447 fi
448
449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
450 as_basename=basename
451 else
452 as_basename=false
453 fi
454
455 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
456 as_dirname=dirname
457 else
458 as_dirname=false
459 fi
460
461 as_me=`$as_basename -- "$0" ||
462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
463 X"$0" : 'X\(//\)$' \| \
464 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
465 printf "%s\n" X/"$0" |
466 sed '/^.*\/\([^/][^/]*\)\/*$/{
467 s//\1/
468 q
469 }
470 /^X\/\(\/\/\)$/{
471 s//\1/
472 q
473 }
474 /^X\/\(\/\).*/{
475 s//\1/
476 q
477 }
478 s/.*/./; q'`
479
480 # Avoid depending upon Character Ranges.
481 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
482 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
483 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
484 as_cr_digits='0123456789'
485 as_cr_alnum=$as_cr_Letters$as_cr_digits
486
487
488 as_lineno_1=$LINENO as_lineno_1a=$LINENO
489 as_lineno_2=$LINENO as_lineno_2a=$LINENO
490 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
491 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
492 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 sed -n '
494 p
495 /[$]LINENO/=
496 ' <$as_myself |
497 sed '
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549 rm -f conf$$.dir/conf$$.file
550 else
551 rm -f conf$$.dir
552 mkdir conf$$.dir 2>/dev/null
553 fi
554 if (echo >conf$$.file) 2>/dev/null; then
555 if ln -s conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s='ln -s'
557 # ... but there are two gotchas:
558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
560 # In both cases, we have to default to `cp -pR'.
561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562 as_ln_s='cp -pR'
563 elif ln conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s=ln
565 else
566 as_ln_s='cp -pR'
567 fi
568 else
569 as_ln_s='cp -pR'
570 fi
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
573
574 if mkdir -p . 2>/dev/null; then
575 as_mkdir_p='mkdir -p "$as_dir"'
576 else
577 test -d ./-p && rmdir ./-p
578 as_mkdir_p=false
579 fi
580
581 as_test_x='test -x'
582 as_executable_p=as_fn_executable_p
583
584 # Sed expression to map a string onto a valid CPP name.
585 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
586
587 # Sed expression to map a string onto a valid variable name.
588 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
589
590
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
593
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599 #
600 # Initializations.
601 #
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
610
611 # Identity of this package.
612 PACKAGE_NAME='binfmt-support'
613 PACKAGE_TARNAME='binfmt-support'
614 PACKAGE_VERSION='2.2.2'
615 PACKAGE_STRING='binfmt-support 2.2.2'
616 PACKAGE_BUGREPORT='[email protected]'
617 PACKAGE_URL=''
618
619 ac_unique_file="src/update-binfmts.c"
620 # Factoring default headers for most tests.
621 ac_includes_default="\
622 #include <stddef.h>
623 #ifdef HAVE_STDIO_H
624 # include <stdio.h>
625 #endif
626 #ifdef HAVE_STDLIB_H
627 # include <stdlib.h>
628 #endif
629 #ifdef HAVE_STRING_H
630 # include <string.h>
631 #endif
632 #ifdef HAVE_INTTYPES_H
633 # include <inttypes.h>
634 #endif
635 #ifdef HAVE_STDINT_H
636 # include <stdint.h>
637 #endif
638 #ifdef HAVE_STRINGS_H
639 # include <strings.h>
640 #endif
641 #ifdef HAVE_SYS_TYPES_H
642 # include <sys/types.h>
643 #endif
644 #ifdef HAVE_SYS_STAT_H
645 # include <sys/stat.h>
646 #endif
647 #ifdef HAVE_UNISTD_H
648 # include <unistd.h>
649 #endif"
650
651 ac_header_c_list=
652 ac_config_libobj_dir=gl/lib
653 ac_func_c_list=
654 gl_getopt_required=POSIX
655 ac_subst_vars='gltests_LIBOBJDEPS
656 gltests_LTLIBOBJS
657 gltests_LIBOBJS
658 gl_LIBOBJDEPS
659 gl_LTLIBOBJS
660 gl_LIBOBJS
661 am__EXEEXT_FALSE
662 am__EXEEXT_TRUE
663 LTLIBOBJS
664 LIBOBJS
665 procdir
666 importdir
667 admindir
668 CROSS_COMPILING_FALSE
669 CROSS_COMPILING_TRUE
670 HAVE_SYSTEMD_FALSE
671 HAVE_SYSTEMD_TRUE
672 systemdsystemunitdir
673 INSTALL_SYSTEMD_FALSE
674 INSTALL_SYSTEMD_TRUE
675 INSTALL_UPSTART_FALSE
676 INSTALL_UPSTART_TRUE
677 INSTALL_OPENRC_FALSE
678 INSTALL_OPENRC_TRUE
679 INSTALL_SYSVINIT_FALSE
680 INSTALL_SYSVINIT_TRUE
681 libpipeline_LIBS
682 libpipeline_CFLAGS
683 PKG_CONFIG_LIBDIR
684 PKG_CONFIG_PATH
685 PKG_CONFIG
686 LIBGNU_LTLIBDEPS
687 LIBGNU_LIBDEPS
688 GL_CFLAG_GNULIB_WARNINGS
689 GL_CFLAG_ALLOW_WARNINGS
690 gltests_WITNESS
691 GL_GNULIB_MDA_WCSDUP
692 GL_GNULIB_WCSFTIME
693 GL_GNULIB_WCSWIDTH
694 GL_GNULIB_WCSTOK
695 GL_GNULIB_WCSSTR
696 GL_GNULIB_WCSPBRK
697 GL_GNULIB_WCSSPN
698 GL_GNULIB_WCSCSPN
699 GL_GNULIB_WCSRCHR
700 GL_GNULIB_WCSCHR
701 GL_GNULIB_WCSDUP
702 GL_GNULIB_WCSXFRM
703 GL_GNULIB_WCSCOLL
704 GL_GNULIB_WCSNCASECMP
705 GL_GNULIB_WCSCASECMP
706 GL_GNULIB_WCSNCMP
707 GL_GNULIB_WCSCMP
708 GL_GNULIB_WCSNCAT
709 GL_GNULIB_WCSCAT
710 GL_GNULIB_WCPNCPY
711 GL_GNULIB_WCSNCPY
712 GL_GNULIB_WCPCPY
713 GL_GNULIB_WCSCPY
714 GL_GNULIB_WCSNLEN
715 GL_GNULIB_WCSLEN
716 GL_GNULIB_WMEMSET
717 GL_GNULIB_WMEMPCPY
718 GL_GNULIB_WMEMMOVE
719 GL_GNULIB_WMEMCPY
720 GL_GNULIB_WMEMCMP
721 GL_GNULIB_WMEMCHR
722 GL_GNULIB_WCWIDTH
723 GL_GNULIB_WCSNRTOMBS
724 GL_GNULIB_WCSRTOMBS
725 GL_GNULIB_WCRTOMB
726 GL_GNULIB_MBSNRTOWCS
727 GL_GNULIB_MBSRTOWCS
728 GL_GNULIB_MBRLEN
729 GL_GNULIB_MBRTOWC
730 GL_GNULIB_MBSINIT
731 GL_GNULIB_WCTOB
732 GL_GNULIB_BTOWC
733 HAVE_CRTDEFS_H
734 HAVE_WINT_T
735 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
736 NEXT_WCHAR_H
737 REPLACE_WCSTOK
738 REPLACE_WCSFTIME
739 REPLACE_WCSWIDTH
740 REPLACE_WCWIDTH
741 REPLACE_WCSNRTOMBS
742 REPLACE_WCSRTOMBS
743 REPLACE_WCRTOMB
744 REPLACE_MBSNRTOWCS
745 REPLACE_MBSRTOWCS
746 REPLACE_MBRLEN
747 REPLACE_MBRTOWC
748 REPLACE_MBSINIT
749 REPLACE_WCTOB
750 REPLACE_BTOWC
751 REPLACE_MBSTATE_T
752 HAVE_DECL_WCWIDTH
753 HAVE_DECL_WCSDUP
754 HAVE_DECL_WCTOB
755 HAVE_WCSFTIME
756 HAVE_WCSWIDTH
757 HAVE_WCSTOK
758 HAVE_WCSSTR
759 HAVE_WCSPBRK
760 HAVE_WCSSPN
761 HAVE_WCSCSPN
762 HAVE_WCSRCHR
763 HAVE_WCSCHR
764 HAVE_WCSDUP
765 HAVE_WCSXFRM
766 HAVE_WCSCOLL
767 HAVE_WCSNCASECMP
768 HAVE_WCSCASECMP
769 HAVE_WCSNCMP
770 HAVE_WCSCMP
771 HAVE_WCSNCAT
772 HAVE_WCSCAT
773 HAVE_WCPNCPY
774 HAVE_WCSNCPY
775 HAVE_WCPCPY
776 HAVE_WCSCPY
777 HAVE_WCSNLEN
778 HAVE_WCSLEN
779 HAVE_WMEMSET
780 HAVE_WMEMPCPY
781 HAVE_WMEMMOVE
782 HAVE_WMEMCPY
783 HAVE_WMEMCMP
784 HAVE_WMEMCHR
785 HAVE_WCSNRTOMBS
786 HAVE_WCSRTOMBS
787 HAVE_WCRTOMB
788 HAVE_MBSNRTOWCS
789 HAVE_MBSRTOWCS
790 HAVE_MBRLEN
791 HAVE_MBRTOWC
792 HAVE_MBSINIT
793 HAVE_BTOWC
794 HAVE_FEATURES_H
795 HAVE_UNISTD_H
796 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
797 NEXT_UNISTD_H
798 GL_GNULIB_MDA_TZSET
799 GL_GNULIB_TZSET
800 GL_GNULIB_TIME_RZ
801 GL_GNULIB_TIME_R
802 GL_GNULIB_TIMESPEC_GETRES
803 GL_GNULIB_TIMESPEC_GET
804 GL_GNULIB_TIMEGM
805 GL_GNULIB_STRPTIME
806 GL_GNULIB_STRFTIME
807 GL_GNULIB_NANOSLEEP
808 GL_GNULIB_LOCALTIME
809 GL_GNULIB_MKTIME
810 GL_GNULIB_CTIME
811 TIME_H_DEFINES_TIME_UTC
812 UNISTD_H_DEFINES_STRUCT_TIMESPEC
813 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
814 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
815 TIME_H_DEFINES_STRUCT_TIMESPEC
816 NEXT_AS_FIRST_DIRECTIVE_TIME_H
817 NEXT_TIME_H
818 REPLACE_LOCALTIME
819 REPLACE_GMTIME
820 GNULIB_GETTIMEOFDAY
821 REPLACE_TZSET
822 REPLACE_TIMEGM
823 REPLACE_STRFTIME
824 REPLACE_NANOSLEEP
825 REPLACE_MKTIME
826 REPLACE_LOCALTIME_R
827 REPLACE_CTIME
828 HAVE_TIMEZONE_T
829 HAVE_TIMESPEC_GETRES
830 HAVE_TIMESPEC_GET
831 HAVE_TIMEGM
832 HAVE_STRPTIME
833 HAVE_NANOSLEEP
834 HAVE_DECL_LOCALTIME_R
835 GL_GENERATE_SYSEXITS_H_FALSE
836 GL_GENERATE_SYSEXITS_H_TRUE
837 SYSEXITS_H
838 HAVE_SYSEXITS_H
839 NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H
840 NEXT_SYSEXITS_H
841 WINDOWS_STAT_INODES
842 WINDOWS_64_BIT_OFF_T
843 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
844 NEXT_SYS_TYPES_H
845 GL_COND_OBJ_STRNLEN_FALSE
846 GL_COND_OBJ_STRNLEN_TRUE
847 GL_COND_OBJ_STRNDUP_FALSE
848 GL_COND_OBJ_STRNDUP_TRUE
849 GL_GNULIB_FFS
850 HAVE_STRINGS_H
851 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
852 NEXT_STRINGS_H
853 NEXT_AS_FIRST_DIRECTIVE_STRING_H
854 NEXT_STRING_H
855 GL_COND_OBJ_STRERROR_OVERRIDE_FALSE
856 GL_COND_OBJ_STRERROR_OVERRIDE_TRUE
857 GL_COND_OBJ_STRERROR_FALSE
858 GL_COND_OBJ_STRERROR_TRUE
859 GL_COND_OBJ_STRCHRNUL_FALSE
860 GL_COND_OBJ_STRCHRNUL_TRUE
861 GL_COND_OBJ_STRNCASECMP_FALSE
862 GL_COND_OBJ_STRNCASECMP_TRUE
863 GL_COND_OBJ_STRCASECMP_FALSE
864 GL_COND_OBJ_STRCASECMP_TRUE
865 HAVE_DECL_STRNCASECMP
866 HAVE_STRCASECMP
867 HAVE_FFS
868 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
869 NEXT_STDLIB_H
870 GL_COND_OBJ_STDIO_WRITE_FALSE
871 GL_COND_OBJ_STDIO_WRITE_TRUE
872 GL_COND_OBJ_STDIO_READ_FALSE
873 GL_COND_OBJ_STDIO_READ_TRUE
874 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
875 NEXT_STDIO_H
876 GL_GENERATE_STDINT_H_FALSE
877 GL_GENERATE_STDINT_H_TRUE
878 STDINT_H
879 GL_GENERATE_STDDEF_H_FALSE
880 GL_GENERATE_STDDEF_H_TRUE
881 STDDEF_H
882 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
883 NEXT_STDDEF_H
884 HAVE_WCHAR_T
885 HAVE_MAX_ALIGN_T
886 REPLACE_NULL
887 GL_GENERATE_STDBOOL_H_FALSE
888 GL_GENERATE_STDBOOL_H_TRUE
889 STDBOOL_H
890 HAVE__BOOL
891 GL_GENERATE_STDARG_H_FALSE
892 GL_GENERATE_STDARG_H_TRUE
893 STDARG_H
894 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
895 NEXT_STDARG_H
896 GL_GENERATE_STDALIGN_H_FALSE
897 GL_GENERATE_STDALIGN_H_TRUE
898 STDALIGN_H
899 GL_COND_OBJ_STAT_FALSE
900 GL_COND_OBJ_STAT_TRUE
901 GL_COND_OBJ_SLEEP_FALSE
902 GL_COND_OBJ_SLEEP_TRUE
903 GL_COND_OBJ_RMDIR_FALSE
904 GL_COND_OBJ_RMDIR_TRUE
905 GL_COND_OBJ_RENAME_FALSE
906 GL_COND_OBJ_RENAME_TRUE
907 GL_COND_OBJ_REALLOCARRAY_FALSE
908 GL_COND_OBJ_REALLOCARRAY_TRUE
909 GL_COND_OBJ_READLINK_FALSE
910 GL_COND_OBJ_READLINK_TRUE
911 GL_COND_OBJ_RAWMEMCHR_FALSE
912 GL_COND_OBJ_RAWMEMCHR_TRUE
913 GL_COND_OBJ_OPEN_FALSE
914 GL_COND_OBJ_OPEN_TRUE
915 GL_COND_OBJ_MSVC_NOTHROW_FALSE
916 GL_COND_OBJ_MSVC_NOTHROW_TRUE
917 GL_COND_OBJ_MSVC_INVAL_FALSE
918 GL_COND_OBJ_MSVC_INVAL_TRUE
919 GL_COND_OBJ_MEMPCPY_FALSE
920 GL_COND_OBJ_MEMPCPY_TRUE
921 GL_GNULIB_MDA_STRDUP
922 GL_GNULIB_MDA_MEMCCPY
923 GL_GNULIB_STRVERSCMP
924 GL_GNULIB_STRSIGNAL
925 GL_GNULIB_SIGDESCR_NP
926 GL_GNULIB_SIGABBREV_NP
927 GL_GNULIB_STRERRORNAME_NP
928 GL_GNULIB_STRERROR_R
929 GL_GNULIB_STRERROR
930 GL_GNULIB_MBSTOK_R
931 GL_GNULIB_MBSSEP
932 GL_GNULIB_MBSSPN
933 GL_GNULIB_MBSPBRK
934 GL_GNULIB_MBSCSPN
935 GL_GNULIB_MBSCASESTR
936 GL_GNULIB_MBSPCASECMP
937 GL_GNULIB_MBSNCASECMP
938 GL_GNULIB_MBSCASECMP
939 GL_GNULIB_MBSSTR
940 GL_GNULIB_MBSRCHR
941 GL_GNULIB_MBSCHR
942 GL_GNULIB_MBSNLEN
943 GL_GNULIB_MBSLEN
944 GL_GNULIB_STRTOK_R
945 GL_GNULIB_STRCASESTR
946 GL_GNULIB_STRSTR
947 GL_GNULIB_STRSEP
948 GL_GNULIB_STRPBRK
949 GL_GNULIB_STRNLEN
950 GL_GNULIB_STRNDUP
951 GL_GNULIB_STRNCAT
952 GL_GNULIB_STRDUP
953 GL_GNULIB_STRCHRNUL
954 GL_GNULIB_STPNCPY
955 GL_GNULIB_STPCPY
956 GL_GNULIB_RAWMEMCHR
957 GL_GNULIB_MEMRCHR
958 GL_GNULIB_MEMPCPY
959 GL_GNULIB_MEMMEM
960 GL_GNULIB_MEMCHR
961 GL_GNULIB_FFSLL
962 GL_GNULIB_FFSL
963 GL_GNULIB_EXPLICIT_BZERO
964 GL_COND_OBJ_MEMCHR_FALSE
965 GL_COND_OBJ_MEMCHR_TRUE
966 UNDEFINE_STRTOK_R
967 REPLACE_STRSIGNAL
968 REPLACE_STRERRORNAME_NP
969 REPLACE_STRERROR_R
970 REPLACE_STRERROR
971 REPLACE_STRTOK_R
972 REPLACE_STRCASESTR
973 REPLACE_STRSTR
974 REPLACE_STRNLEN
975 REPLACE_STRNDUP
976 REPLACE_STRNCAT
977 REPLACE_STRDUP
978 REPLACE_STRCHRNUL
979 REPLACE_STPNCPY
980 REPLACE_MEMMEM
981 REPLACE_MEMCHR
982 REPLACE_FFSLL
983 HAVE_STRVERSCMP
984 HAVE_DECL_STRSIGNAL
985 HAVE_SIGDESCR_NP
986 HAVE_SIGABBREV_NP
987 HAVE_STRERRORNAME_NP
988 HAVE_DECL_STRERROR_R
989 HAVE_DECL_STRTOK_R
990 HAVE_STRCASESTR
991 HAVE_STRSEP
992 HAVE_STRPBRK
993 HAVE_DECL_STRNLEN
994 HAVE_DECL_STRNDUP
995 HAVE_DECL_STRDUP
996 HAVE_STRCHRNUL
997 HAVE_STPNCPY
998 HAVE_STPCPY
999 HAVE_RAWMEMCHR
1000 HAVE_DECL_MEMRCHR
1001 HAVE_MEMPCPY
1002 HAVE_DECL_MEMMEM
1003 HAVE_FFSLL
1004 HAVE_FFSL
1005 HAVE_EXPLICIT_BZERO
1006 HAVE_MBSLEN
1007 GL_COND_OBJ_LSTAT_FALSE
1008 GL_COND_OBJ_LSTAT_TRUE
1009 GL_GENERATE_LIMITS_H_FALSE
1010 GL_GENERATE_LIMITS_H_TRUE
1011 LIMITS_H
1012 IGNORE_UNUSED_LIBRARIES_CFLAGS
1013 GL_GNULIB_STRTOUMAX
1014 GL_GNULIB_STRTOIMAX
1015 GL_GNULIB_IMAXDIV
1016 GL_GNULIB_IMAXABS
1017 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1018 NEXT_INTTYPES_H
1019 UINT64_MAX_EQ_ULONG_MAX
1020 UINT32_MAX_LT_UINTMAX_MAX
1021 PRIPTR_PREFIX
1022 INT64_MAX_EQ_LONG_MAX
1023 INT32_MAX_LT_INTMAX_MAX
1024 REPLACE_STRTOUMAX
1025 REPLACE_STRTOIMAX
1026 HAVE_IMAXDIV_T
1027 HAVE_DECL_STRTOUMAX
1028 HAVE_DECL_STRTOIMAX
1029 HAVE_DECL_IMAXDIV
1030 HAVE_DECL_IMAXABS
1031 HAVE_SYS_INTTYPES_H
1032 HAVE_SYS_BITYPES_H
1033 HAVE_C99_STDINT_H
1034 WINT_T_SUFFIX
1035 WCHAR_T_SUFFIX
1036 SIG_ATOMIC_T_SUFFIX
1037 SIZE_T_SUFFIX
1038 PTRDIFF_T_SUFFIX
1039 HAVE_SIGNED_WINT_T
1040 HAVE_SIGNED_WCHAR_T
1041 HAVE_SIGNED_SIG_ATOMIC_T
1042 BITSIZEOF_WINT_T
1043 BITSIZEOF_WCHAR_T
1044 BITSIZEOF_SIG_ATOMIC_T
1045 BITSIZEOF_SIZE_T
1046 BITSIZEOF_PTRDIFF_T
1047 APPLE_UNIVERSAL_BUILD
1048 HAVE_STDINT_H
1049 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1050 NEXT_STDINT_H
1051 HAVE_SYS_TYPES_H
1052 HAVE_INTTYPES_H
1053 HAVE_WCHAR_H
1054 GNULIBHEADERS_OVERRIDE_WINT_T
1055 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1056 NEXT_LIMITS_H
1057 LTLIBINTL
1058 LIBINTL
1059 GL_COND_OBJ_GETOPT_FALSE
1060 GL_COND_OBJ_GETOPT_TRUE
1061 GL_GENERATE_GETOPT_CDEFS_H_FALSE
1062 GL_GENERATE_GETOPT_CDEFS_H_TRUE
1063 GETOPT_CDEFS_H
1064 GL_GENERATE_GETOPT_H_FALSE
1065 GL_GENERATE_GETOPT_H_TRUE
1066 GETOPT_H
1067 HAVE_SYS_CDEFS_H
1068 HAVE_GETOPT_H
1069 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1070 NEXT_GETOPT_H
1071 GL_COND_OBJ_GETLINE_FALSE
1072 GL_COND_OBJ_GETLINE_TRUE
1073 GL_COND_OBJ_GETDTABLESIZE_FALSE
1074 GL_COND_OBJ_GETDTABLESIZE_TRUE
1075 GL_GNULIB_MDA_TEMPNAM
1076 GL_GNULIB_MDA_PUTW
1077 GL_GNULIB_MDA_GETW
1078 GL_GNULIB_MDA_FILENO
1079 GL_GNULIB_MDA_FDOPEN
1080 GL_GNULIB_MDA_FCLOSEALL
1081 GL_GNULIB_VSPRINTF_POSIX
1082 GL_GNULIB_VSNPRINTF
1083 GL_GNULIB_VPRINTF_POSIX
1084 GL_GNULIB_VPRINTF
1085 GL_GNULIB_VFPRINTF_POSIX
1086 GL_GNULIB_VFPRINTF
1087 GL_GNULIB_VDPRINTF
1088 GL_GNULIB_VSCANF
1089 GL_GNULIB_VFSCANF
1090 GL_GNULIB_VASPRINTF
1091 GL_GNULIB_TMPFILE
1092 GL_GNULIB_STDIO_H_SIGPIPE
1093 GL_GNULIB_STDIO_H_NONBLOCKING
1094 GL_GNULIB_SPRINTF_POSIX
1095 GL_GNULIB_SNPRINTF
1096 GL_GNULIB_SCANF
1097 GL_GNULIB_RENAMEAT
1098 GL_GNULIB_RENAME
1099 GL_GNULIB_REMOVE
1100 GL_GNULIB_PUTS
1101 GL_GNULIB_PUTCHAR
1102 GL_GNULIB_PUTC
1103 GL_GNULIB_PRINTF_POSIX
1104 GL_GNULIB_PRINTF
1105 GL_GNULIB_POPEN
1106 GL_GNULIB_PERROR
1107 GL_GNULIB_PCLOSE
1108 GL_GNULIB_OBSTACK_PRINTF_POSIX
1109 GL_GNULIB_OBSTACK_PRINTF
1110 GL_GNULIB_GETLINE
1111 GL_GNULIB_GETDELIM
1112 GL_GNULIB_GETCHAR
1113 GL_GNULIB_GETC
1114 GL_GNULIB_FWRITE
1115 GL_GNULIB_FTELLO
1116 GL_GNULIB_FTELL
1117 GL_GNULIB_FSEEKO
1118 GL_GNULIB_FSEEK
1119 GL_GNULIB_FSCANF
1120 GL_GNULIB_FREOPEN
1121 GL_GNULIB_FREAD
1122 GL_GNULIB_FPUTS
1123 GL_GNULIB_FPUTC
1124 GL_GNULIB_FPURGE
1125 GL_GNULIB_FPRINTF_POSIX
1126 GL_GNULIB_FPRINTF
1127 GL_GNULIB_FOPEN_GNU
1128 GL_GNULIB_FOPEN
1129 GL_GNULIB_FGETS
1130 GL_GNULIB_FGETC
1131 GL_GNULIB_FFLUSH
1132 GL_GNULIB_FDOPEN
1133 GL_GNULIB_FCLOSE
1134 GL_GNULIB_DPRINTF
1135 GL_COND_OBJ_GETDELIM_FALSE
1136 GL_COND_OBJ_GETDELIM_TRUE
1137 REPLACE_VSPRINTF
1138 REPLACE_VSNPRINTF
1139 REPLACE_VPRINTF
1140 REPLACE_VFPRINTF
1141 REPLACE_VDPRINTF
1142 REPLACE_VASPRINTF
1143 REPLACE_TMPFILE
1144 REPLACE_STDIO_WRITE_FUNCS
1145 REPLACE_STDIO_READ_FUNCS
1146 REPLACE_SPRINTF
1147 REPLACE_SNPRINTF
1148 REPLACE_RENAMEAT
1149 REPLACE_RENAME
1150 REPLACE_REMOVE
1151 REPLACE_PRINTF
1152 REPLACE_POPEN
1153 REPLACE_PERROR
1154 REPLACE_OBSTACK_PRINTF
1155 REPLACE_GETLINE
1156 REPLACE_GETDELIM
1157 REPLACE_FTELLO
1158 REPLACE_FTELL
1159 REPLACE_FSEEKO
1160 REPLACE_FSEEK
1161 REPLACE_FREOPEN
1162 REPLACE_FPURGE
1163 REPLACE_FPRINTF
1164 REPLACE_FOPEN_FOR_FOPEN_GNU
1165 REPLACE_FOPEN
1166 REPLACE_FFLUSH
1167 REPLACE_FDOPEN
1168 REPLACE_FCLOSE
1169 REPLACE_DPRINTF
1170 HAVE_VDPRINTF
1171 HAVE_VASPRINTF
1172 HAVE_RENAMEAT
1173 HAVE_POPEN
1174 HAVE_PCLOSE
1175 HAVE_FTELLO
1176 HAVE_FSEEKO
1177 HAVE_DPRINTF
1178 HAVE_DECL_VSNPRINTF
1179 HAVE_DECL_SNPRINTF
1180 HAVE_DECL_OBSTACK_PRINTF
1181 HAVE_DECL_GETLINE
1182 HAVE_DECL_GETDELIM
1183 HAVE_DECL_FTELLO
1184 HAVE_DECL_FSEEKO
1185 HAVE_DECL_FPURGE
1186 HAVE_DECL_FCLOSEALL
1187 GL_GNULIB_MDA_UMASK
1188 GL_GNULIB_MDA_MKDIR
1189 GL_GNULIB_MDA_CHMOD
1190 GL_GNULIB_OVERRIDES_STRUCT_STAT
1191 GL_GNULIB_UTIMENSAT
1192 GL_GNULIB_STAT
1193 GL_GNULIB_MKNODAT
1194 GL_GNULIB_MKNOD
1195 GL_GNULIB_MKFIFOAT
1196 GL_GNULIB_MKFIFO
1197 GL_GNULIB_MKDIRAT
1198 GL_GNULIB_MKDIR
1199 GL_GNULIB_LSTAT
1200 GL_GNULIB_LCHMOD
1201 GL_GNULIB_GETUMASK
1202 GL_GNULIB_FUTIMENS
1203 GL_GNULIB_FSTATAT
1204 GL_GNULIB_FSTAT
1205 GL_GNULIB_FCHMODAT
1206 WINDOWS_64_BIT_ST_SIZE
1207 WINDOWS_STAT_TIMESPEC
1208 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1209 NEXT_SYS_STAT_H
1210 GL_COND_OBJ_FSTAT_FALSE
1211 GL_COND_OBJ_FSTAT_TRUE
1212 REPLACE_UTIMENSAT
1213 REPLACE_STAT
1214 REPLACE_MKNODAT
1215 REPLACE_MKNOD
1216 REPLACE_MKFIFOAT
1217 REPLACE_MKFIFO
1218 REPLACE_MKDIR
1219 REPLACE_LSTAT
1220 REPLACE_FUTIMENS
1221 REPLACE_FSTATAT
1222 REPLACE_FSTAT
1223 REPLACE_FCHMODAT
1224 HAVE_UTIMENSAT
1225 HAVE_MKNODAT
1226 HAVE_MKNOD
1227 HAVE_MKFIFOAT
1228 HAVE_MKFIFO
1229 HAVE_MKDIRAT
1230 HAVE_LSTAT
1231 HAVE_LCHMOD
1232 HAVE_GETUMASK
1233 HAVE_FUTIMENS
1234 HAVE_FSTATAT
1235 HAVE_FCHMODAT
1236 GL_COND_OBJ_FREE_FALSE
1237 GL_COND_OBJ_FREE_TRUE
1238 GL_COND_OBJ_ITOLD_FALSE
1239 GL_COND_OBJ_ITOLD_TRUE
1240 GL_COND_OBJ_FLOAT_FALSE
1241 GL_COND_OBJ_FLOAT_TRUE
1242 GL_GENERATE_FLOAT_H_FALSE
1243 GL_GENERATE_FLOAT_H_TRUE
1244 FLOAT_H
1245 REPLACE_ITOLD
1246 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1247 NEXT_FLOAT_H
1248 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1249 NEXT_FCNTL_H
1250 GL_GNULIB_MDA_OPEN
1251 GL_GNULIB_MDA_CREAT
1252 GL_GNULIB_OPENAT
1253 GL_GNULIB_OPEN
1254 GL_GNULIB_NONBLOCKING
1255 GL_GNULIB_FCNTL
1256 GL_GNULIB_CREAT
1257 GL_COND_OBJ_FCNTL_FALSE
1258 GL_COND_OBJ_FCNTL_TRUE
1259 REPLACE_OPENAT
1260 REPLACE_OPEN
1261 REPLACE_FCNTL
1262 REPLACE_CREAT
1263 HAVE_OPENAT
1264 HAVE_FCNTL
1265 GL_COND_OBJ_ERROR_FALSE
1266 GL_COND_OBJ_ERROR_TRUE
1267 GL_GENERATE_ERRNO_H_FALSE
1268 GL_GENERATE_ERRNO_H_TRUE
1269 ERRNO_H
1270 EOVERFLOW_VALUE
1271 EOVERFLOW_HIDDEN
1272 ENOLINK_VALUE
1273 ENOLINK_HIDDEN
1274 EMULTIHOP_VALUE
1275 EMULTIHOP_HIDDEN
1276 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1277 NEXT_ERRNO_H
1278 PRAGMA_COLUMNS
1279 PRAGMA_SYSTEM_HEADER
1280 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1281 INCLUDE_NEXT
1282 GL_COND_OBJ_DUP2_FALSE
1283 GL_COND_OBJ_DUP2_TRUE
1284 GL_COND_OBJ_CLOSE_FALSE
1285 GL_COND_OBJ_CLOSE_TRUE
1286 HAVE_WINSOCK2_H
1287 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1288 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1289 UNISTD_H_HAVE_WINSOCK2_H
1290 UNISTD_H_HAVE_SYS_RANDOM_H
1291 REPLACE_WRITE
1292 REPLACE_USLEEP
1293 REPLACE_UNLINKAT
1294 REPLACE_UNLINK
1295 REPLACE_TTYNAME_R
1296 REPLACE_TRUNCATE
1297 REPLACE_SYMLINKAT
1298 REPLACE_SYMLINK
1299 REPLACE_SLEEP
1300 REPLACE_RMDIR
1301 REPLACE_READLINKAT
1302 REPLACE_READLINK
1303 REPLACE_READ
1304 REPLACE_PWRITE
1305 REPLACE_PREAD
1306 REPLACE_LSEEK
1307 REPLACE_LINKAT
1308 REPLACE_LINK
1309 REPLACE_LCHOWN
1310 REPLACE_ISATTY
1311 REPLACE_GETPASS_FOR_GETPASS_GNU
1312 REPLACE_GETPASS
1313 REPLACE_GETPAGESIZE
1314 REPLACE_GETGROUPS
1315 REPLACE_GETLOGIN_R
1316 REPLACE_GETDTABLESIZE
1317 REPLACE_GETDOMAINNAME
1318 REPLACE_GETCWD
1319 REPLACE_FTRUNCATE
1320 REPLACE_FCHOWNAT
1321 REPLACE_FACCESSAT
1322 REPLACE_EXECVPE
1323 REPLACE_EXECVP
1324 REPLACE_EXECVE
1325 REPLACE_EXECV
1326 REPLACE_EXECLP
1327 REPLACE_EXECLE
1328 REPLACE_EXECL
1329 REPLACE_DUP2
1330 REPLACE_DUP
1331 REPLACE_COPY_FILE_RANGE
1332 REPLACE_CLOSE
1333 REPLACE_CHOWN
1334 REPLACE_ACCESS
1335 HAVE_SYS_PARAM_H
1336 HAVE_OS_H
1337 HAVE_DECL_TTYNAME_R
1338 HAVE_DECL_TRUNCATE
1339 HAVE_DECL_SETHOSTNAME
1340 HAVE_DECL_GETUSERSHELL
1341 HAVE_DECL_GETPAGESIZE
1342 HAVE_DECL_GETLOGIN_R
1343 HAVE_DECL_GETLOGIN
1344 HAVE_DECL_GETDOMAINNAME
1345 HAVE_DECL_FDATASYNC
1346 HAVE_DECL_FCHDIR
1347 HAVE_DECL_EXECVPE
1348 HAVE_DECL_ENVIRON
1349 HAVE_USLEEP
1350 HAVE_UNLINKAT
1351 HAVE_SYMLINKAT
1352 HAVE_SYMLINK
1353 HAVE_SLEEP
1354 HAVE_SETHOSTNAME
1355 HAVE_READLINKAT
1356 HAVE_READLINK
1357 HAVE_PWRITE
1358 HAVE_PREAD
1359 HAVE_PIPE2
1360 HAVE_PIPE
1361 HAVE_LINKAT
1362 HAVE_LINK
1363 HAVE_LCHOWN
1364 HAVE_GROUP_MEMBER
1365 HAVE_GETPASS
1366 HAVE_GETPAGESIZE
1367 HAVE_GETLOGIN
1368 HAVE_GETHOSTNAME
1369 HAVE_GETGROUPS
1370 HAVE_GETENTROPY
1371 HAVE_GETDTABLESIZE
1372 HAVE_FTRUNCATE
1373 HAVE_FSYNC
1374 HAVE_FDATASYNC
1375 HAVE_FCHOWNAT
1376 HAVE_FCHDIR
1377 HAVE_FACCESSAT
1378 HAVE_EXECVPE
1379 HAVE_EUIDACCESS
1380 HAVE_DUP3
1381 HAVE_COPY_FILE_RANGE
1382 HAVE_CHOWN
1383 GL_GNULIB_MDA_WRITE
1384 GL_GNULIB_MDA_UNLINK
1385 GL_GNULIB_MDA_SWAB
1386 GL_GNULIB_MDA_RMDIR
1387 GL_GNULIB_MDA_READ
1388 GL_GNULIB_MDA_LSEEK
1389 GL_GNULIB_MDA_ISATTY
1390 GL_GNULIB_MDA_GETPID
1391 GL_GNULIB_MDA_GETCWD
1392 GL_GNULIB_MDA_EXECVPE
1393 GL_GNULIB_MDA_EXECVP
1394 GL_GNULIB_MDA_EXECVE
1395 GL_GNULIB_MDA_EXECV
1396 GL_GNULIB_MDA_EXECLP
1397 GL_GNULIB_MDA_EXECLE
1398 GL_GNULIB_MDA_EXECL
1399 GL_GNULIB_MDA_DUP2
1400 GL_GNULIB_MDA_DUP
1401 GL_GNULIB_MDA_CLOSE
1402 GL_GNULIB_MDA_CHDIR
1403 GL_GNULIB_MDA_ACCESS
1404 GL_GNULIB_WRITE
1405 GL_GNULIB_USLEEP
1406 GL_GNULIB_UNLINKAT
1407 GL_GNULIB_UNLINK
1408 GL_GNULIB_UNISTD_H_SIGPIPE
1409 GL_GNULIB_UNISTD_H_NONBLOCKING
1410 GL_GNULIB_UNISTD_H_GETOPT
1411 GL_GNULIB_TTYNAME_R
1412 GL_GNULIB_TRUNCATE
1413 GL_GNULIB_SYMLINKAT
1414 GL_GNULIB_SYMLINK
1415 GL_GNULIB_SLEEP
1416 GL_GNULIB_SETHOSTNAME
1417 GL_GNULIB_RMDIR
1418 GL_GNULIB_READLINKAT
1419 GL_GNULIB_READLINK
1420 GL_GNULIB_READ
1421 GL_GNULIB_PWRITE
1422 GL_GNULIB_PREAD
1423 GL_GNULIB_PIPE2
1424 GL_GNULIB_PIPE
1425 GL_GNULIB_LSEEK
1426 GL_GNULIB_LINKAT
1427 GL_GNULIB_LINK
1428 GL_GNULIB_LCHOWN
1429 GL_GNULIB_ISATTY
1430 GL_GNULIB_GROUP_MEMBER
1431 GL_GNULIB_GETUSERSHELL
1432 GL_GNULIB_GETPASS_GNU
1433 GL_GNULIB_GETPASS
1434 GL_GNULIB_GETPAGESIZE
1435 GL_GNULIB_GETOPT_POSIX
1436 GL_GNULIB_GETLOGIN_R
1437 GL_GNULIB_GETLOGIN
1438 GL_GNULIB_GETHOSTNAME
1439 GL_GNULIB_GETGROUPS
1440 GL_GNULIB_GETENTROPY
1441 GL_GNULIB_GETDTABLESIZE
1442 GL_GNULIB_GETDOMAINNAME
1443 GL_GNULIB_GETCWD
1444 GL_GNULIB_FTRUNCATE
1445 GL_GNULIB_FSYNC
1446 GL_GNULIB_FDATASYNC
1447 GL_GNULIB_FCHOWNAT
1448 GL_GNULIB_FCHDIR
1449 GL_GNULIB_FACCESSAT
1450 GL_GNULIB_EXECVPE
1451 GL_GNULIB_EXECVP
1452 GL_GNULIB_EXECVE
1453 GL_GNULIB_EXECV
1454 GL_GNULIB_EXECLP
1455 GL_GNULIB_EXECLE
1456 GL_GNULIB_EXECL
1457 GL_GNULIB_EUIDACCESS
1458 GL_GNULIB_ENVIRON
1459 GL_GNULIB_DUP3
1460 GL_GNULIB_DUP2
1461 GL_GNULIB_DUP
1462 GL_GNULIB_COPY_FILE_RANGE
1463 GL_GNULIB_CLOSE
1464 GL_GNULIB_CHOWN
1465 GL_GNULIB_CHDIR
1466 GL_GNULIB_ACCESS
1467 GL_COND_OBJ_CANONICALIZE_LGPL_FALSE
1468 GL_COND_OBJ_CANONICALIZE_LGPL_TRUE
1469 GL_GNULIB_MDA_PUTENV
1470 GL_GNULIB_MDA_MKTEMP
1471 GL_GNULIB_MDA_GCVT
1472 GL_GNULIB_MDA_FCVT
1473 GL_GNULIB_MDA_ECVT
1474 GL_GNULIB_WCTOMB
1475 GL_GNULIB_UNSETENV
1476 GL_GNULIB_UNLOCKPT
1477 GL_GNULIB_SYSTEM_POSIX
1478 GL_GNULIB_STRTOULL
1479 GL_GNULIB_STRTOUL
1480 GL_GNULIB_STRTOLL
1481 GL_GNULIB_STRTOLD
1482 GL_GNULIB_STRTOL
1483 GL_GNULIB_STRTOD
1484 GL_GNULIB_SETENV
1485 GL_GNULIB_SECURE_GETENV
1486 GL_GNULIB_RPMATCH
1487 GL_GNULIB_REALPATH
1488 GL_GNULIB_REALLOC_POSIX
1489 GL_GNULIB_REALLOC_GNU
1490 GL_GNULIB_REALLOCARRAY
1491 GL_GNULIB_RANDOM_R
1492 GL_GNULIB_RANDOM
1493 GL_GNULIB_QSORT_R
1494 GL_GNULIB_PUTENV
1495 GL_GNULIB_PTSNAME_R
1496 GL_GNULIB_PTSNAME
1497 GL_GNULIB_POSIX_OPENPT
1498 GL_GNULIB_POSIX_MEMALIGN
1499 GL_GNULIB_MKSTEMPS
1500 GL_GNULIB_MKSTEMP
1501 GL_GNULIB_MKOSTEMPS
1502 GL_GNULIB_MKOSTEMP
1503 GL_GNULIB_MKDTEMP
1504 GL_GNULIB_MBTOWC
1505 GL_GNULIB_MALLOC_POSIX
1506 GL_GNULIB_MALLOC_GNU
1507 GL_GNULIB_GRANTPT
1508 GL_GNULIB_GETSUBOPT
1509 GL_GNULIB_GETLOADAVG
1510 GL_GNULIB_FREE_POSIX
1511 GL_GNULIB_CANONICALIZE_FILE_NAME
1512 GL_GNULIB_CALLOC_POSIX
1513 GL_GNULIB_CALLOC_GNU
1514 GL_GNULIB_ATOLL
1515 GL_GNULIB_ALIGNED_ALLOC
1516 GL_GNULIB__EXIT
1517 REPLACE_WCTOMB
1518 REPLACE_UNSETENV
1519 REPLACE_STRTOULL
1520 REPLACE_STRTOUL
1521 REPLACE_STRTOLL
1522 REPLACE_STRTOLD
1523 REPLACE_STRTOL
1524 REPLACE_STRTOD
1525 REPLACE_SETSTATE
1526 REPLACE_SETENV
1527 REPLACE_REALPATH
1528 REPLACE_REALLOCARRAY
1529 REPLACE_REALLOC_FOR_REALLOC_POSIX
1530 REPLACE_REALLOC_FOR_REALLOC_GNU
1531 REPLACE_RANDOM_R
1532 REPLACE_RANDOM
1533 REPLACE_QSORT_R
1534 REPLACE_PUTENV
1535 REPLACE_PTSNAME_R
1536 REPLACE_PTSNAME
1537 REPLACE_POSIX_MEMALIGN
1538 REPLACE_MKSTEMP
1539 REPLACE_MBTOWC
1540 REPLACE_MALLOC_FOR_MALLOC_POSIX
1541 REPLACE_MALLOC_FOR_MALLOC_GNU
1542 REPLACE_INITSTATE
1543 REPLACE_FREE
1544 REPLACE_CANONICALIZE_FILE_NAME
1545 REPLACE_CALLOC_FOR_CALLOC_POSIX
1546 REPLACE_CALLOC_FOR_CALLOC_GNU
1547 REPLACE_ALIGNED_ALLOC
1548 HAVE_DECL_UNSETENV
1549 HAVE_UNLOCKPT
1550 HAVE_SYS_LOADAVG_H
1551 HAVE_STRUCT_RANDOM_DATA
1552 HAVE_STRTOULL
1553 HAVE_STRTOUL
1554 HAVE_STRTOLL
1555 HAVE_STRTOLD
1556 HAVE_STRTOL
1557 HAVE_STRTOD
1558 HAVE_DECL_SETSTATE
1559 HAVE_SETSTATE
1560 HAVE_DECL_SETENV
1561 HAVE_SETENV
1562 HAVE_SECURE_GETENV
1563 HAVE_RPMATCH
1564 HAVE_REALPATH
1565 HAVE_REALLOCARRAY
1566 HAVE_RANDOM_R
1567 HAVE_RANDOM_H
1568 HAVE_RANDOM
1569 HAVE_QSORT_R
1570 HAVE_PTSNAME_R
1571 HAVE_PTSNAME
1572 HAVE_POSIX_OPENPT
1573 HAVE_POSIX_MEMALIGN
1574 HAVE_MKSTEMPS
1575 HAVE_MKSTEMP
1576 HAVE_MKOSTEMPS
1577 HAVE_MKOSTEMP
1578 HAVE_MKDTEMP
1579 HAVE_MBTOWC
1580 HAVE_DECL_INITSTATE
1581 HAVE_INITSTATE
1582 HAVE_GRANTPT
1583 HAVE_GETSUBOPT
1584 HAVE_DECL_GETLOADAVG
1585 HAVE_DECL_GCVT
1586 HAVE_DECL_FCVT
1587 HAVE_DECL_ECVT
1588 HAVE_CANONICALIZE_FILE_NAME
1589 HAVE_ATOLL
1590 HAVE_ALIGNED_ALLOC
1591 HAVE__EXIT
1592 GL_GENERATE_ALLOCA_H_FALSE
1593 GL_GENERATE_ALLOCA_H_TRUE
1594 ALLOCA_H
1595 HAVE_ALLOCA_H
1596 ALLOCA
1597 GL_COND_LIBTOOL_FALSE
1598 GL_COND_LIBTOOL_TRUE
1599 WARN_CFLAGS
1600 RANLIB
1601 ARFLAGS
1602 AR
1603 EGREP
1604 GREP
1605 CPP
1606 host_os
1607 host_vendor
1608 host_cpu
1609 host
1610 build_os
1611 build_vendor
1612 build_cpu
1613 build
1614 am__fastdepCC_FALSE
1615 am__fastdepCC_TRUE
1616 CCDEPMODE
1617 am__nodep
1618 AMDEPBACKSLASH
1619 AMDEP_FALSE
1620 AMDEP_TRUE
1621 am__include
1622 DEPDIR
1623 OBJEXT
1624 EXEEXT
1625 ac_ct_CC
1626 CPPFLAGS
1627 LDFLAGS
1628 CFLAGS
1629 CC
1630 MAINT
1631 MAINTAINER_MODE_FALSE
1632 MAINTAINER_MODE_TRUE
1633 AM_BACKSLASH
1634 AM_DEFAULT_VERBOSITY
1635 AM_DEFAULT_V
1636 AM_V
1637 CSCOPE
1638 ETAGS
1639 CTAGS
1640 am__untar
1641 am__tar
1642 AMTAR
1643 am__leading_dot
1644 SET_MAKE
1645 AWK
1646 mkdir_p
1647 MKDIR_P
1648 INSTALL_STRIP_PROGRAM
1649 STRIP
1650 install_sh
1651 MAKEINFO
1652 AUTOHEADER
1653 AUTOMAKE
1654 AUTOCONF
1655 ACLOCAL
1656 VERSION
1657 PACKAGE
1658 CYGPATH_W
1659 am__isrc
1660 INSTALL_DATA
1661 INSTALL_SCRIPT
1662 INSTALL_PROGRAM
1663 target_alias
1664 host_alias
1665 build_alias
1666 LIBS
1667 ECHO_T
1668 ECHO_N
1669 ECHO_C
1670 DEFS
1671 mandir
1672 localedir
1673 libdir
1674 psdir
1675 pdfdir
1676 dvidir
1677 htmldir
1678 infodir
1679 docdir
1680 oldincludedir
1681 includedir
1682 runstatedir
1683 localstatedir
1684 sharedstatedir
1685 sysconfdir
1686 datadir
1687 datarootdir
1688 libexecdir
1689 sbindir
1690 bindir
1691 program_transform_name
1692 prefix
1693 exec_prefix
1694 PACKAGE_URL
1695 PACKAGE_BUGREPORT
1696 PACKAGE_STRING
1697 PACKAGE_VERSION
1698 PACKAGE_TARNAME
1699 PACKAGE_NAME
1700 PATH_SEPARATOR
1701 SHELL
1702 am__quote'
1703 ac_subst_files=''
1704 ac_user_opts='
1705 enable_option_checking
1706 enable_silent_rules
1707 enable_maintainer_mode
1708 enable_dependency_tracking
1709 enable_largefile
1710 enable_year2038
1711 enable_gcc_warnings
1712 enable_cross_guesses
1713 enable_sysvinit
1714 enable_openrc
1715 enable_upstart
1716 enable_systemd
1717 with_systemdsystemunitdir
1718 '
1719 ac_precious_vars='build_alias
1720 host_alias
1721 target_alias
1722 CC
1723 CFLAGS
1724 LDFLAGS
1725 LIBS
1726 CPPFLAGS
1727 CPP
1728 PKG_CONFIG
1729 PKG_CONFIG_PATH
1730 PKG_CONFIG_LIBDIR
1731 libpipeline_CFLAGS
1732 libpipeline_LIBS'
1733
1734
1735 # Initialize some variables set by options.
1736 ac_init_help=
1737 ac_init_version=false
1738 ac_unrecognized_opts=
1739 ac_unrecognized_sep=
1740 # The variables have the same names as the options, with
1741 # dashes changed to underlines.
1742 cache_file=/dev/null
1743 exec_prefix=NONE
1744 no_create=
1745 no_recursion=
1746 prefix=NONE
1747 program_prefix=NONE
1748 program_suffix=NONE
1749 program_transform_name=s,x,x,
1750 silent=
1751 site=
1752 srcdir=
1753 verbose=
1754 x_includes=NONE
1755 x_libraries=NONE
1756
1757 # Installation directory options.
1758 # These are left unexpanded so users can "make install exec_prefix=/foo"
1759 # and all the variables that are supposed to be based on exec_prefix
1760 # by default will actually change.
1761 # Use braces instead of parens because sh, perl, etc. also accept them.
1762 # (The list follows the same order as the GNU Coding Standards.)
1763 bindir='${exec_prefix}/bin'
1764 sbindir='${exec_prefix}/sbin'
1765 libexecdir='${exec_prefix}/libexec'
1766 datarootdir='${prefix}/share'
1767 datadir='${datarootdir}'
1768 sysconfdir='${prefix}/etc'
1769 sharedstatedir='${prefix}/com'
1770 localstatedir='${prefix}/var'
1771 runstatedir='${localstatedir}/run'
1772 includedir='${prefix}/include'
1773 oldincludedir='/usr/include'
1774 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1775 infodir='${datarootdir}/info'
1776 htmldir='${docdir}'
1777 dvidir='${docdir}'
1778 pdfdir='${docdir}'
1779 psdir='${docdir}'
1780 libdir='${exec_prefix}/lib'
1781 localedir='${datarootdir}/locale'
1782 mandir='${datarootdir}/man'
1783
1784 ac_prev=
1785 ac_dashdash=
1786 for ac_option
1787 do
1788 # If the previous option needs an argument, assign it.
1789 if test -n "$ac_prev"; then
1790 eval $ac_prev=\$ac_option
1791 ac_prev=
1792 continue
1793 fi
1794
1795 case $ac_option in
1796 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1797 *=) ac_optarg= ;;
1798 *) ac_optarg=yes ;;
1799 esac
1800
1801 case $ac_dashdash$ac_option in
1802 --)
1803 ac_dashdash=yes ;;
1804
1805 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1806 ac_prev=bindir ;;
1807 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1808 bindir=$ac_optarg ;;
1809
1810 -build | --build | --buil | --bui | --bu)
1811 ac_prev=build_alias ;;
1812 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1813 build_alias=$ac_optarg ;;
1814
1815 -cache-file | --cache-file | --cache-fil | --cache-fi \
1816 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1817 ac_prev=cache_file ;;
1818 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1819 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1820 cache_file=$ac_optarg ;;
1821
1822 --config-cache | -C)
1823 cache_file=config.cache ;;
1824
1825 -datadir | --datadir | --datadi | --datad)
1826 ac_prev=datadir ;;
1827 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1828 datadir=$ac_optarg ;;
1829
1830 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1831 | --dataroo | --dataro | --datar)
1832 ac_prev=datarootdir ;;
1833 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1834 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1835 datarootdir=$ac_optarg ;;
1836
1837 -disable-* | --disable-*)
1838 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1839 # Reject names that are not valid shell variable names.
1840 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1841 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1842 ac_useropt_orig=$ac_useropt
1843 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1844 case $ac_user_opts in
1845 *"
1846 "enable_$ac_useropt"
1847 "*) ;;
1848 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1849 ac_unrecognized_sep=', ';;
1850 esac
1851 eval enable_$ac_useropt=no ;;
1852
1853 -docdir | --docdir | --docdi | --doc | --do)
1854 ac_prev=docdir ;;
1855 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1856 docdir=$ac_optarg ;;
1857
1858 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1859 ac_prev=dvidir ;;
1860 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1861 dvidir=$ac_optarg ;;
1862
1863 -enable-* | --enable-*)
1864 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1865 # Reject names that are not valid shell variable names.
1866 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1867 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1868 ac_useropt_orig=$ac_useropt
1869 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1870 case $ac_user_opts in
1871 *"
1872 "enable_$ac_useropt"
1873 "*) ;;
1874 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1875 ac_unrecognized_sep=', ';;
1876 esac
1877 eval enable_$ac_useropt=\$ac_optarg ;;
1878
1879 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1880 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1881 | --exec | --exe | --ex)
1882 ac_prev=exec_prefix ;;
1883 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1884 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1885 | --exec=* | --exe=* | --ex=*)
1886 exec_prefix=$ac_optarg ;;
1887
1888 -gas | --gas | --ga | --g)
1889 # Obsolete; use --with-gas.
1890 with_gas=yes ;;
1891
1892 -help | --help | --hel | --he | -h)
1893 ac_init_help=long ;;
1894 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1895 ac_init_help=recursive ;;
1896 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1897 ac_init_help=short ;;
1898
1899 -host | --host | --hos | --ho)
1900 ac_prev=host_alias ;;
1901 -host=* | --host=* | --hos=* | --ho=*)
1902 host_alias=$ac_optarg ;;
1903
1904 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1905 ac_prev=htmldir ;;
1906 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1907 | --ht=*)
1908 htmldir=$ac_optarg ;;
1909
1910 -includedir | --includedir | --includedi | --included | --include \
1911 | --includ | --inclu | --incl | --inc)
1912 ac_prev=includedir ;;
1913 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1914 | --includ=* | --inclu=* | --incl=* | --inc=*)
1915 includedir=$ac_optarg ;;
1916
1917 -infodir | --infodir | --infodi | --infod | --info | --inf)
1918 ac_prev=infodir ;;
1919 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1920 infodir=$ac_optarg ;;
1921
1922 -libdir | --libdir | --libdi | --libd)
1923 ac_prev=libdir ;;
1924 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1925 libdir=$ac_optarg ;;
1926
1927 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1928 | --libexe | --libex | --libe)
1929 ac_prev=libexecdir ;;
1930 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1931 | --libexe=* | --libex=* | --libe=*)
1932 libexecdir=$ac_optarg ;;
1933
1934 -localedir | --localedir | --localedi | --localed | --locale)
1935 ac_prev=localedir ;;
1936 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1937 localedir=$ac_optarg ;;
1938
1939 -localstatedir | --localstatedir | --localstatedi | --localstated \
1940 | --localstate | --localstat | --localsta | --localst | --locals)
1941 ac_prev=localstatedir ;;
1942 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1943 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1944 localstatedir=$ac_optarg ;;
1945
1946 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1947 ac_prev=mandir ;;
1948 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1949 mandir=$ac_optarg ;;
1950
1951 -nfp | --nfp | --nf)
1952 # Obsolete; use --without-fp.
1953 with_fp=no ;;
1954
1955 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1956 | --no-cr | --no-c | -n)
1957 no_create=yes ;;
1958
1959 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1960 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1961 no_recursion=yes ;;
1962
1963 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1964 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1965 | --oldin | --oldi | --old | --ol | --o)
1966 ac_prev=oldincludedir ;;
1967 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1968 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1969 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1970 oldincludedir=$ac_optarg ;;
1971
1972 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1973 ac_prev=prefix ;;
1974 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1975 prefix=$ac_optarg ;;
1976
1977 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1978 | --program-pre | --program-pr | --program-p)
1979 ac_prev=program_prefix ;;
1980 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1981 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1982 program_prefix=$ac_optarg ;;
1983
1984 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1985 | --program-suf | --program-su | --program-s)
1986 ac_prev=program_suffix ;;
1987 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1988 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1989 program_suffix=$ac_optarg ;;
1990
1991 -program-transform-name | --program-transform-name \
1992 | --program-transform-nam | --program-transform-na \
1993 | --program-transform-n | --program-transform- \
1994 | --program-transform | --program-transfor \
1995 | --program-transfo | --program-transf \
1996 | --program-trans | --program-tran \
1997 | --progr-tra | --program-tr | --program-t)
1998 ac_prev=program_transform_name ;;
1999 -program-transform-name=* | --program-transform-name=* \
2000 | --program-transform-nam=* | --program-transform-na=* \
2001 | --program-transform-n=* | --program-transform-=* \
2002 | --program-transform=* | --program-transfor=* \
2003 | --program-transfo=* | --program-transf=* \
2004 | --program-trans=* | --program-tran=* \
2005 | --progr-tra=* | --program-tr=* | --program-t=*)
2006 program_transform_name=$ac_optarg ;;
2007
2008 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
2009 ac_prev=pdfdir ;;
2010 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
2011 pdfdir=$ac_optarg ;;
2012
2013 -psdir | --psdir | --psdi | --psd | --ps)
2014 ac_prev=psdir ;;
2015 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2016 psdir=$ac_optarg ;;
2017
2018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2019 | -silent | --silent | --silen | --sile | --sil)
2020 silent=yes ;;
2021
2022 -runstatedir | --runstatedir | --runstatedi | --runstated \
2023 | --runstate | --runstat | --runsta | --runst | --runs \
2024 | --run | --ru | --r)
2025 ac_prev=runstatedir ;;
2026 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
2027 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
2028 | --run=* | --ru=* | --r=*)
2029 runstatedir=$ac_optarg ;;
2030
2031 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2032 ac_prev=sbindir ;;
2033 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2034 | --sbi=* | --sb=*)
2035 sbindir=$ac_optarg ;;
2036
2037 -sharedstatedir | --sharedstatedir | --sharedstatedi \
2038 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2039 | --sharedst | --shareds | --shared | --share | --shar \
2040 | --sha | --sh)
2041 ac_prev=sharedstatedir ;;
2042 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2043 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2044 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2045 | --sha=* | --sh=*)
2046 sharedstatedir=$ac_optarg ;;
2047
2048 -site | --site | --sit)
2049 ac_prev=site ;;
2050 -site=* | --site=* | --sit=*)
2051 site=$ac_optarg ;;
2052
2053 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2054 ac_prev=srcdir ;;
2055 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2056 srcdir=$ac_optarg ;;
2057
2058 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2059 | --syscon | --sysco | --sysc | --sys | --sy)
2060 ac_prev=sysconfdir ;;
2061 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2062 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2063 sysconfdir=$ac_optarg ;;
2064
2065 -target | --target | --targe | --targ | --tar | --ta | --t)
2066 ac_prev=target_alias ;;
2067 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2068 target_alias=$ac_optarg ;;
2069
2070 -v | -verbose | --verbose | --verbos | --verbo | --verb)
2071 verbose=yes ;;
2072
2073 -version | --version | --versio | --versi | --vers | -V)
2074 ac_init_version=: ;;
2075
2076 -with-* | --with-*)
2077 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2078 # Reject names that are not valid shell variable names.
2079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2080 as_fn_error $? "invalid package name: \`$ac_useropt'"
2081 ac_useropt_orig=$ac_useropt
2082 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
2083 case $ac_user_opts in
2084 *"
2085 "with_$ac_useropt"
2086 "*) ;;
2087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2088 ac_unrecognized_sep=', ';;
2089 esac
2090 eval with_$ac_useropt=\$ac_optarg ;;
2091
2092 -without-* | --without-*)
2093 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2094 # Reject names that are not valid shell variable names.
2095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2096 as_fn_error $? "invalid package name: \`$ac_useropt'"
2097 ac_useropt_orig=$ac_useropt
2098 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
2099 case $ac_user_opts in
2100 *"
2101 "with_$ac_useropt"
2102 "*) ;;
2103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2104 ac_unrecognized_sep=', ';;
2105 esac
2106 eval with_$ac_useropt=no ;;
2107
2108 --x)
2109 # Obsolete; use --with-x.
2110 with_x=yes ;;
2111
2112 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2113 | --x-incl | --x-inc | --x-in | --x-i)
2114 ac_prev=x_includes ;;
2115 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2116 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2117 x_includes=$ac_optarg ;;
2118
2119 -x-libraries | --x-libraries | --x-librarie | --x-librari \
2120 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2121 ac_prev=x_libraries ;;
2122 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2123 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2124 x_libraries=$ac_optarg ;;
2125
2126 -*) as_fn_error $? "unrecognized option: \`$ac_option'
2127 Try \`$0 --help' for more information"
2128 ;;
2129
2130 *=*)
2131 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2132 # Reject names that are not valid shell variable names.
2133 case $ac_envvar in #(
2134 '' | [0-9]* | *[!_$as_cr_alnum]* )
2135 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2136 esac
2137 eval $ac_envvar=\$ac_optarg
2138 export $ac_envvar ;;
2139
2140 *)
2141 # FIXME: should be removed in autoconf 3.0.
2142 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
2143 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2144 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
2145 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2146 ;;
2147
2148 esac
2149 done
2150
2151 if test -n "$ac_prev"; then
2152 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2153 as_fn_error $? "missing argument to $ac_option"
2154 fi
2155
2156 if test -n "$ac_unrecognized_opts"; then
2157 case $enable_option_checking in
2158 no) ;;
2159 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2160 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2161 esac
2162 fi
2163
2164 # Check all directory arguments for consistency.
2165 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2166 datadir sysconfdir sharedstatedir localstatedir includedir \
2167 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2168 libdir localedir mandir runstatedir
2169 do
2170 eval ac_val=\$$ac_var
2171 # Remove trailing slashes.
2172 case $ac_val in
2173 */ )
2174 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2175 eval $ac_var=\$ac_val;;
2176 esac
2177 # Be sure to have absolute directory names.
2178 case $ac_val in
2179 [\\/$]* | ?:[\\/]* ) continue;;
2180 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2181 esac
2182 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2183 done
2184
2185 # There might be people who depend on the old broken behavior: `$host'
2186 # used to hold the argument of --host etc.
2187 # FIXME: To remove some day.
2188 build=$build_alias
2189 host=$host_alias
2190 target=$target_alias
2191
2192 # FIXME: To remove some day.
2193 if test "x$host_alias" != x; then
2194 if test "x$build_alias" = x; then
2195 cross_compiling=maybe
2196 elif test "x$build_alias" != "x$host_alias"; then
2197 cross_compiling=yes
2198 fi
2199 fi
2200
2201 ac_tool_prefix=
2202 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2203
2204 test "$silent" = yes && exec 6>/dev/null
2205
2206
2207 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2208 ac_ls_di=`ls -di .` &&
2209 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2210 as_fn_error $? "working directory cannot be determined"
2211 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2212 as_fn_error $? "pwd does not report name of working directory"
2213
2214
2215 # Find the source files, if location was not specified.
2216 if test -z "$srcdir"; then
2217 ac_srcdir_defaulted=yes
2218 # Try the directory containing this script, then the parent directory.
2219 ac_confdir=`$as_dirname -- "$as_myself" ||
2220 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2221 X"$as_myself" : 'X\(//\)[^/]' \| \
2222 X"$as_myself" : 'X\(//\)$' \| \
2223 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2224 printf "%s\n" X"$as_myself" |
2225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2226 s//\1/
2227 q
2228 }
2229 /^X\(\/\/\)[^/].*/{
2230 s//\1/
2231 q
2232 }
2233 /^X\(\/\/\)$/{
2234 s//\1/
2235 q
2236 }
2237 /^X\(\/\).*/{
2238 s//\1/
2239 q
2240 }
2241 s/.*/./; q'`
2242 srcdir=$ac_confdir
2243 if test ! -r "$srcdir/$ac_unique_file"; then
2244 srcdir=..
2245 fi
2246 else
2247 ac_srcdir_defaulted=no
2248 fi
2249 if test ! -r "$srcdir/$ac_unique_file"; then
2250 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2251 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2252 fi
2253 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2254 ac_abs_confdir=`(
2255 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2256 pwd)`
2257 # When building in place, set srcdir=.
2258 if test "$ac_abs_confdir" = "$ac_pwd"; then
2259 srcdir=.
2260 fi
2261 # Remove unnecessary trailing slashes from srcdir.
2262 # Double slashes in file names in object file debugging info
2263 # mess up M-x gdb in Emacs.
2264 case $srcdir in
2265 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2266 esac
2267 for ac_var in $ac_precious_vars; do
2268 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2269 eval ac_env_${ac_var}_value=\$${ac_var}
2270 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2271 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2272 done
2273
2274 #
2275 # Report the --help message.
2276 #
2277 if test "$ac_init_help" = "long"; then
2278 # Omit some internal or obsolete options to make the list less imposing.
2279 # This message is too long to be a string in the A/UX 3.1 sh.
2280 cat <<_ACEOF
2281 \`configure' configures binfmt-support 2.2.2 to adapt to many kinds of systems.
2282
2283 Usage: $0 [OPTION]... [VAR=VALUE]...
2284
2285 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2286 VAR=VALUE. See below for descriptions of some of the useful variables.
2287
2288 Defaults for the options are specified in brackets.
2289
2290 Configuration:
2291 -h, --help display this help and exit
2292 --help=short display options specific to this package
2293 --help=recursive display the short help of all the included packages
2294 -V, --version display version information and exit
2295 -q, --quiet, --silent do not print \`checking ...' messages
2296 --cache-file=FILE cache test results in FILE [disabled]
2297 -C, --config-cache alias for \`--cache-file=config.cache'
2298 -n, --no-create do not create output files
2299 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2300
2301 Installation directories:
2302 --prefix=PREFIX install architecture-independent files in PREFIX
2303 [$ac_default_prefix]
2304 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2305 [PREFIX]
2306
2307 By default, \`make install' will install all the files in
2308 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2309 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2310 for instance \`--prefix=\$HOME'.
2311
2312 For better control, use the options below.
2313
2314 Fine tuning of the installation directories:
2315 --bindir=DIR user executables [EPREFIX/bin]
2316 --sbindir=DIR system admin executables [EPREFIX/sbin]
2317 --libexecdir=DIR program executables [EPREFIX/libexec]
2318 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2319 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2320 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2321 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
2322 --libdir=DIR object code libraries [EPREFIX/lib]
2323 --includedir=DIR C header files [PREFIX/include]
2324 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2325 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2326 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2327 --infodir=DIR info documentation [DATAROOTDIR/info]
2328 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2329 --mandir=DIR man documentation [DATAROOTDIR/man]
2330 --docdir=DIR documentation root [DATAROOTDIR/doc/binfmt-support]
2331 --htmldir=DIR html documentation [DOCDIR]
2332 --dvidir=DIR dvi documentation [DOCDIR]
2333 --pdfdir=DIR pdf documentation [DOCDIR]
2334 --psdir=DIR ps documentation [DOCDIR]
2335 _ACEOF
2336
2337 cat <<\_ACEOF
2338
2339 Program names:
2340 --program-prefix=PREFIX prepend PREFIX to installed program names
2341 --program-suffix=SUFFIX append SUFFIX to installed program names
2342 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2343
2344 System types:
2345 --build=BUILD configure for building on BUILD [guessed]
2346 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2347 _ACEOF
2348 fi
2349
2350 if test -n "$ac_init_help"; then
2351 case $ac_init_help in
2352 short | recursive ) echo "Configuration of binfmt-support 2.2.2:";;
2353 esac
2354 cat <<\_ACEOF
2355
2356 Optional Features:
2357 --disable-option-checking ignore unrecognized --enable/--with options
2358 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2359 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2360 --enable-silent-rules less verbose build output (undo: "make V=1")
2361 --disable-silent-rules verbose build output (undo: "make V=0")
2362 --enable-maintainer-mode
2363 enable make rules and dependencies not useful (and
2364 sometimes confusing) to the casual installer
2365 --enable-dependency-tracking
2366 do not reject slow dependency extractors
2367 --disable-dependency-tracking
2368 speeds up one-time build
2369 --disable-largefile omit support for large files
2370 --disable-year2038 omit support for timestamps past the year 2038
2371 --enable-gcc-warnings=TYPE
2372 control generation of GCC warnings. The TYPE 'no'
2373 disables warnings; 'yes' generates cheap warnings if
2374 available (default); 'expensive' in addition
2375 generates expensive-to-compute warnings if available
2376 --enable-cross-guesses={conservative|risky}
2377 specify policy for cross-compilation guesses
2378 --enable-sysvinit Install sysvinit script
2379 --enable-openrc Install OpenRC script
2380 --disable-upstart Install Upstart job
2381 --disable-systemd Install systemd unit
2382
2383 Optional Packages:
2384 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2385 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2386 --with-systemdsystemunitdir=DIR
2387 Directory for systemd service files
2388
2389 Some influential environment variables:
2390 CC C compiler command
2391 CFLAGS C compiler flags
2392 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2393 nonstandard directory <lib dir>
2394 LIBS libraries to pass to the linker, e.g. -l<library>
2395 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2396 you have headers in a nonstandard directory <include dir>
2397 CPP C preprocessor
2398 PKG_CONFIG path to pkg-config utility
2399 PKG_CONFIG_PATH
2400 directories to add to pkg-config's search path
2401 PKG_CONFIG_LIBDIR
2402 path overriding pkg-config's built-in search path
2403 libpipeline_CFLAGS
2404 C compiler flags for libpipeline, overriding pkg-config
2405 libpipeline_LIBS
2406 linker flags for libpipeline, overriding pkg-config
2407
2408 Use these variables to override the choices made by `configure' or to help
2409 it to find libraries and programs with nonstandard names/locations.
2410
2411 Report bugs to <[email protected]>.
2412 _ACEOF
2413 ac_status=$?
2414 fi
2415
2416 if test "$ac_init_help" = "recursive"; then
2417 # If there are subdirs, report their specific --help.
2418 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2419 test -d "$ac_dir" ||
2420 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2421 continue
2422 ac_builddir=.
2423
2424 case "$ac_dir" in
2425 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2426 *)
2427 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2428 # A ".." for each directory in $ac_dir_suffix.
2429 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2430 case $ac_top_builddir_sub in
2431 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2432 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2433 esac ;;
2434 esac
2435 ac_abs_top_builddir=$ac_pwd
2436 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2437 # for backward compatibility:
2438 ac_top_builddir=$ac_top_build_prefix
2439
2440 case $srcdir in
2441 .) # We are building in place.
2442 ac_srcdir=.
2443 ac_top_srcdir=$ac_top_builddir_sub
2444 ac_abs_top_srcdir=$ac_pwd ;;
2445 [\\/]* | ?:[\\/]* ) # Absolute name.
2446 ac_srcdir=$srcdir$ac_dir_suffix;
2447 ac_top_srcdir=$srcdir
2448 ac_abs_top_srcdir=$srcdir ;;
2449 *) # Relative name.
2450 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2451 ac_top_srcdir=$ac_top_build_prefix$srcdir
2452 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2453 esac
2454 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2455
2456 cd "$ac_dir" || { ac_status=$?; continue; }
2457 # Check for configure.gnu first; this name is used for a wrapper for
2458 # Metaconfig's "Configure" on case-insensitive file systems.
2459 if test -f "$ac_srcdir/configure.gnu"; then
2460 echo &&
2461 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2462 elif test -f "$ac_srcdir/configure"; then
2463 echo &&
2464 $SHELL "$ac_srcdir/configure" --help=recursive
2465 else
2466 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2467 fi || ac_status=$?
2468 cd "$ac_pwd" || { ac_status=$?; break; }
2469 done
2470 fi
2471
2472 test -n "$ac_init_help" && exit $ac_status
2473 if $ac_init_version; then
2474 cat <<\_ACEOF
2475 binfmt-support configure 2.2.2
2476 generated by GNU Autoconf 2.71
2477
2478 Copyright (C) 2021 Free Software Foundation, Inc.
2479 This configure script is free software; the Free Software Foundation
2480 gives unlimited permission to copy, distribute and modify it.
2481 _ACEOF
2482 exit
2483 fi
2484
2485 ## ------------------------ ##
2486 ## Autoconf initialization. ##
2487 ## ------------------------ ##
2488
2489 # ac_fn_c_try_compile LINENO
2490 # --------------------------
2491 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2492 ac_fn_c_try_compile ()
2493 {
2494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2495 rm -f conftest.$ac_objext conftest.beam
2496 if { { ac_try="$ac_compile"
2497 case "(($ac_try" in
2498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499 *) ac_try_echo=$ac_try;;
2500 esac
2501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2502 printf "%s\n" "$ac_try_echo"; } >&5
2503 (eval "$ac_compile") 2>conftest.err
2504 ac_status=$?
2505 if test -s conftest.err; then
2506 grep -v '^ *+' conftest.err >conftest.er1
2507 cat conftest.er1 >&5
2508 mv -f conftest.er1 conftest.err
2509 fi
2510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2511 test $ac_status = 0; } && {
2512 test -z "$ac_c_werror_flag" ||
2513 test ! -s conftest.err
2514 } && test -s conftest.$ac_objext
2515 then :
2516 ac_retval=0
2517 else $as_nop
2518 printf "%s\n" "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.$ac_ext >&5
2520
2521 ac_retval=1
2522 fi
2523 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2524 as_fn_set_status $ac_retval
2525
2526 } # ac_fn_c_try_compile
2527
2528 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2529 # -------------------------------------------------------
2530 # Tests whether HEADER exists and can be compiled using the include files in
2531 # INCLUDES, setting the cache variable VAR accordingly.
2532 ac_fn_c_check_header_compile ()
2533 {
2534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2536 printf %s "checking for $2... " >&6; }
2537 if eval test \${$3+y}
2538 then :
2539 printf %s "(cached) " >&6
2540 else $as_nop
2541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2542 /* end confdefs.h. */
2543 $4
2544 #include <$2>
2545 _ACEOF
2546 if ac_fn_c_try_compile "$LINENO"
2547 then :
2548 eval "$3=yes"
2549 else $as_nop
2550 eval "$3=no"
2551 fi
2552 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2553 fi
2554 eval ac_res=\$$3
2555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2556 printf "%s\n" "$ac_res" >&6; }
2557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2558
2559 } # ac_fn_c_check_header_compile
2560
2561 # ac_fn_c_try_cpp LINENO
2562 # ----------------------
2563 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2564 ac_fn_c_try_cpp ()
2565 {
2566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2567 if { { ac_try="$ac_cpp conftest.$ac_ext"
2568 case "(($ac_try" in
2569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2570 *) ac_try_echo=$ac_try;;
2571 esac
2572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2573 printf "%s\n" "$ac_try_echo"; } >&5
2574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2575 ac_status=$?
2576 if test -s conftest.err; then
2577 grep -v '^ *+' conftest.err >conftest.er1
2578 cat conftest.er1 >&5
2579 mv -f conftest.er1 conftest.err
2580 fi
2581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2582 test $ac_status = 0; } > conftest.i && {
2583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2584 test ! -s conftest.err
2585 }
2586 then :
2587 ac_retval=0
2588 else $as_nop
2589 printf "%s\n" "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2591
2592 ac_retval=1
2593 fi
2594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2595 as_fn_set_status $ac_retval
2596
2597 } # ac_fn_c_try_cpp
2598
2599 # ac_fn_c_try_link LINENO
2600 # -----------------------
2601 # Try to link conftest.$ac_ext, and return whether this succeeded.
2602 ac_fn_c_try_link ()
2603 {
2604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2605 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2606 if { { ac_try="$ac_link"
2607 case "(($ac_try" in
2608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2609 *) ac_try_echo=$ac_try;;
2610 esac
2611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2612 printf "%s\n" "$ac_try_echo"; } >&5
2613 (eval "$ac_link") 2>conftest.err
2614 ac_status=$?
2615 if test -s conftest.err; then
2616 grep -v '^ *+' conftest.err >conftest.er1
2617 cat conftest.er1 >&5
2618 mv -f conftest.er1 conftest.err
2619 fi
2620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2621 test $ac_status = 0; } && {
2622 test -z "$ac_c_werror_flag" ||
2623 test ! -s conftest.err
2624 } && test -s conftest$ac_exeext && {
2625 test "$cross_compiling" = yes ||
2626 test -x conftest$ac_exeext
2627 }
2628 then :
2629 ac_retval=0
2630 else $as_nop
2631 printf "%s\n" "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2633
2634 ac_retval=1
2635 fi
2636 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2637 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2638 # interfere with the next link command; also delete a directory that is
2639 # left behind by Apple's compiler. We do this before executing the actions.
2640 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2642 as_fn_set_status $ac_retval
2643
2644 } # ac_fn_c_try_link
2645
2646 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2647 # -------------------------------------------
2648 # Tests whether TYPE exists after having included INCLUDES, setting cache
2649 # variable VAR accordingly.
2650 ac_fn_c_check_type ()
2651 {
2652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2654 printf %s "checking for $2... " >&6; }
2655 if eval test \${$3+y}
2656 then :
2657 printf %s "(cached) " >&6
2658 else $as_nop
2659 eval "$3=no"
2660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2661 /* end confdefs.h. */
2662 $4
2663 int
2664 main (void)
2665 {
2666 if (sizeof ($2))
2667 return 0;
2668 ;
2669 return 0;
2670 }
2671 _ACEOF
2672 if ac_fn_c_try_compile "$LINENO"
2673 then :
2674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2675 /* end confdefs.h. */
2676 $4
2677 int
2678 main (void)
2679 {
2680 if (sizeof (($2)))
2681 return 0;
2682 ;
2683 return 0;
2684 }
2685 _ACEOF
2686 if ac_fn_c_try_compile "$LINENO"
2687 then :
2688
2689 else $as_nop
2690 eval "$3=yes"
2691 fi
2692 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2693 fi
2694 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2695 fi
2696 eval ac_res=\$$3
2697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2698 printf "%s\n" "$ac_res" >&6; }
2699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2700
2701 } # ac_fn_c_check_type
2702
2703 # ac_fn_c_try_run LINENO
2704 # ----------------------
2705 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2706 # executables *can* be run.
2707 ac_fn_c_try_run ()
2708 {
2709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2710 if { { ac_try="$ac_link"
2711 case "(($ac_try" in
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2714 esac
2715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2716 printf "%s\n" "$ac_try_echo"; } >&5
2717 (eval "$ac_link") 2>&5
2718 ac_status=$?
2719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2720 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2721 { { case "(($ac_try" in
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2724 esac
2725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2726 printf "%s\n" "$ac_try_echo"; } >&5
2727 (eval "$ac_try") 2>&5
2728 ac_status=$?
2729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2730 test $ac_status = 0; }; }
2731 then :
2732 ac_retval=0
2733 else $as_nop
2734 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2735 printf "%s\n" "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2737
2738 ac_retval=$ac_status
2739 fi
2740 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2742 as_fn_set_status $ac_retval
2743
2744 } # ac_fn_c_try_run
2745
2746 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2747 # ------------------------------------------------------------------
2748 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2749 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2750 ac_fn_check_decl ()
2751 {
2752 ac_save_ac_compile="$ac_compile"
2753 if test -n "$ac_compile_for_check_decl"; then
2754 ac_compile="$ac_compile_for_check_decl"
2755 fi
2756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2757 as_decl_name=`echo $2|sed 's/ *(.*//'`
2758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2759 printf %s "checking whether $as_decl_name is declared... " >&6; }
2760 if eval test \${$3+y}
2761 then :
2762 printf %s "(cached) " >&6
2763 else $as_nop
2764 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2765 eval ac_save_FLAGS=\$$6
2766 as_fn_append $6 " $5"
2767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2768 /* end confdefs.h. */
2769 $4
2770 int
2771 main (void)
2772 {
2773 #ifndef $as_decl_name
2774 #ifdef __cplusplus
2775 (void) $as_decl_use;
2776 #else
2777 (void) $as_decl_name;
2778 #endif
2779 #endif
2780
2781 ;
2782 return 0;
2783 }
2784 _ACEOF
2785 if ac_fn_c_try_compile "$LINENO"
2786 then :
2787 eval "$3=yes"
2788 else $as_nop
2789 eval "$3=no"
2790 fi
2791 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2792 eval $6=\$ac_save_FLAGS
2793
2794 fi
2795 eval ac_res=\$$3
2796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2797 printf "%s\n" "$ac_res" >&6; }
2798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2799 ac_compile="$ac_save_ac_compile"
2800
2801 } # ac_fn_check_decl
2802
2803 # ac_fn_c_check_func LINENO FUNC VAR
2804 # ----------------------------------
2805 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2806 ac_fn_c_check_func ()
2807 {
2808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2810 printf %s "checking for $2... " >&6; }
2811 if eval test \${$3+y}
2812 then :
2813 printf %s "(cached) " >&6
2814 else $as_nop
2815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2816 /* end confdefs.h. */
2817 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2819 #define $2 innocuous_$2
2820
2821 /* System header to define __stub macros and hopefully few prototypes,
2822 which can conflict with char $2 (); below. */
2823
2824 #include <limits.h>
2825 #undef $2
2826
2827 /* Override any GCC internal prototype to avoid an error.
2828 Use char because int might match the return type of a GCC
2829 builtin and then its argument prototype would still apply. */
2830 #ifdef __cplusplus
2831 extern "C"
2832 #endif
2833 char $2 ();
2834 /* The GNU C library defines this for functions which it implements
2835 to always fail with ENOSYS. Some functions are actually named
2836 something starting with __ and the normal name is an alias. */
2837 #if defined __stub_$2 || defined __stub___$2
2838 choke me
2839 #endif
2840
2841 int
2842 main (void)
2843 {
2844 return $2 ();
2845 ;
2846 return 0;
2847 }
2848 _ACEOF
2849 if ac_fn_c_try_link "$LINENO"
2850 then :
2851 eval "$3=yes"
2852 else $as_nop
2853 eval "$3=no"
2854 fi
2855 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2856 conftest$ac_exeext conftest.$ac_ext
2857 fi
2858 eval ac_res=\$$3
2859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2860 printf "%s\n" "$ac_res" >&6; }
2861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2862
2863 } # ac_fn_c_check_func
2864
2865 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2866 # --------------------------------------------
2867 # Tries to find the compile-time value of EXPR in a program that includes
2868 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2869 # computed
2870 ac_fn_c_compute_int ()
2871 {
2872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2873 if test "$cross_compiling" = yes; then
2874 # Depending upon the size, compute the lo and hi bounds.
2875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2876 /* end confdefs.h. */
2877 $4
2878 int
2879 main (void)
2880 {
2881 static int test_array [1 - 2 * !(($2) >= 0)];
2882 test_array [0] = 0;
2883 return test_array [0];
2884
2885 ;
2886 return 0;
2887 }
2888 _ACEOF
2889 if ac_fn_c_try_compile "$LINENO"
2890 then :
2891 ac_lo=0 ac_mid=0
2892 while :; do
2893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2894 /* end confdefs.h. */
2895 $4
2896 int
2897 main (void)
2898 {
2899 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2900 test_array [0] = 0;
2901 return test_array [0];
2902
2903 ;
2904 return 0;
2905 }
2906 _ACEOF
2907 if ac_fn_c_try_compile "$LINENO"
2908 then :
2909 ac_hi=$ac_mid; break
2910 else $as_nop
2911 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2912 if test $ac_lo -le $ac_mid; then
2913 ac_lo= ac_hi=
2914 break
2915 fi
2916 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2917 fi
2918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2919 done
2920 else $as_nop
2921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2922 /* end confdefs.h. */
2923 $4
2924 int
2925 main (void)
2926 {
2927 static int test_array [1 - 2 * !(($2) < 0)];
2928 test_array [0] = 0;
2929 return test_array [0];
2930
2931 ;
2932 return 0;
2933 }
2934 _ACEOF
2935 if ac_fn_c_try_compile "$LINENO"
2936 then :
2937 ac_hi=-1 ac_mid=-1
2938 while :; do
2939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2940 /* end confdefs.h. */
2941 $4
2942 int
2943 main (void)
2944 {
2945 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2946 test_array [0] = 0;
2947 return test_array [0];
2948
2949 ;
2950 return 0;
2951 }
2952 _ACEOF
2953 if ac_fn_c_try_compile "$LINENO"
2954 then :
2955 ac_lo=$ac_mid; break
2956 else $as_nop
2957 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2958 if test $ac_mid -le $ac_hi; then
2959 ac_lo= ac_hi=
2960 break
2961 fi
2962 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2963 fi
2964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2965 done
2966 else $as_nop
2967 ac_lo= ac_hi=
2968 fi
2969 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2970 fi
2971 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2972 # Binary search between lo and hi bounds.
2973 while test "x$ac_lo" != "x$ac_hi"; do
2974 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2976 /* end confdefs.h. */
2977 $4
2978 int
2979 main (void)
2980 {
2981 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2982 test_array [0] = 0;
2983 return test_array [0];
2984
2985 ;
2986 return 0;
2987 }
2988 _ACEOF
2989 if ac_fn_c_try_compile "$LINENO"
2990 then :
2991 ac_hi=$ac_mid
2992 else $as_nop
2993 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2994 fi
2995 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2996 done
2997 case $ac_lo in #((
2998 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2999 '') ac_retval=1 ;;
3000 esac
3001 else
3002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3003 /* end confdefs.h. */
3004 $4
3005 static long int longval (void) { return $2; }
3006 static unsigned long int ulongval (void) { return $2; }
3007 #include <stdio.h>
3008 #include <stdlib.h>
3009 int
3010 main (void)
3011 {
3012
3013 FILE *f = fopen ("conftest.val", "w");
3014 if (! f)
3015 return 1;
3016 if (($2) < 0)
3017 {
3018 long int i = longval ();
3019 if (i != ($2))
3020 return 1;
3021 fprintf (f, "%ld", i);
3022 }
3023 else
3024 {
3025 unsigned long int i = ulongval ();
3026 if (i != ($2))
3027 return 1;
3028 fprintf (f, "%lu", i);
3029 }
3030 /* Do not output a trailing newline, as this causes \r\n confusion
3031 on some platforms. */
3032 return ferror (f) || fclose (f) != 0;
3033
3034 ;
3035 return 0;
3036 }
3037 _ACEOF
3038 if ac_fn_c_try_run "$LINENO"
3039 then :
3040 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3041 else $as_nop
3042 ac_retval=1
3043 fi
3044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3045 conftest.$ac_objext conftest.beam conftest.$ac_ext
3046 rm -f conftest.val
3047
3048 fi
3049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3050 as_fn_set_status $ac_retval
3051
3052 } # ac_fn_c_compute_int
3053
3054 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3055 # ----------------------------------------------------
3056 # Tries to find if the field MEMBER exists in type AGGR, after including
3057 # INCLUDES, setting cache variable VAR accordingly.
3058 ac_fn_c_check_member ()
3059 {
3060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3062 printf %s "checking for $2.$3... " >&6; }
3063 if eval test \${$4+y}
3064 then :
3065 printf %s "(cached) " >&6
3066 else $as_nop
3067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3068 /* end confdefs.h. */
3069 $5
3070 int
3071 main (void)
3072 {
3073 static $2 ac_aggr;
3074 if (ac_aggr.$3)
3075 return 0;
3076 ;
3077 return 0;
3078 }
3079 _ACEOF
3080 if ac_fn_c_try_compile "$LINENO"
3081 then :
3082 eval "$4=yes"
3083 else $as_nop
3084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3085 /* end confdefs.h. */
3086 $5
3087 int
3088 main (void)
3089 {
3090 static $2 ac_aggr;
3091 if (sizeof ac_aggr.$3)
3092 return 0;
3093 ;
3094 return 0;
3095 }
3096 _ACEOF
3097 if ac_fn_c_try_compile "$LINENO"
3098 then :
3099 eval "$4=yes"
3100 else $as_nop
3101 eval "$4=no"
3102 fi
3103 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3104 fi
3105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3106 fi
3107 eval ac_res=\$$4
3108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3109 printf "%s\n" "$ac_res" >&6; }
3110 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3111
3112 } # ac_fn_c_check_member
3113 ac_configure_args_raw=
3114 for ac_arg
3115 do
3116 case $ac_arg in
3117 *\'*)
3118 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3119 esac
3120 as_fn_append ac_configure_args_raw " '$ac_arg'"
3121 done
3122
3123 case $ac_configure_args_raw in
3124 *$as_nl*)
3125 ac_safe_unquote= ;;
3126 *)
3127 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
3128 ac_unsafe_a="$ac_unsafe_z#~"
3129 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
3130 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
3131 esac
3132
3133 cat >config.log <<_ACEOF
3134 This file contains any messages produced by compilers while
3135 running configure, to aid debugging if configure makes a mistake.
3136
3137 It was created by binfmt-support $as_me 2.2.2, which was
3138 generated by GNU Autoconf 2.71. Invocation command line was
3139
3140 $ $0$ac_configure_args_raw
3141
3142 _ACEOF
3143 exec 5>>config.log
3144 {
3145 cat <<_ASUNAME
3146 ## --------- ##
3147 ## Platform. ##
3148 ## --------- ##
3149
3150 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3151 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3152 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3153 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3154 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3155
3156 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3157 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3158
3159 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3160 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3161 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3162 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3163 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3164 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3165 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3166
3167 _ASUNAME
3168
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH
3171 do
3172 IFS=$as_save_IFS
3173 case $as_dir in #(((
3174 '') as_dir=./ ;;
3175 */) ;;
3176 *) as_dir=$as_dir/ ;;
3177 esac
3178 printf "%s\n" "PATH: $as_dir"
3179 done
3180 IFS=$as_save_IFS
3181
3182 } >&5
3183
3184 cat >&5 <<_ACEOF
3185
3186
3187 ## ----------- ##
3188 ## Core tests. ##
3189 ## ----------- ##
3190
3191 _ACEOF
3192
3193
3194 # Keep a trace of the command line.
3195 # Strip out --no-create and --no-recursion so they do not pile up.
3196 # Strip out --silent because we don't want to record it for future runs.
3197 # Also quote any args containing shell meta-characters.
3198 # Make two passes to allow for proper duplicate-argument suppression.
3199 ac_configure_args=
3200 ac_configure_args0=
3201 ac_configure_args1=
3202 ac_must_keep_next=false
3203 for ac_pass in 1 2
3204 do
3205 for ac_arg
3206 do
3207 case $ac_arg in
3208 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3209 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3210 | -silent | --silent | --silen | --sile | --sil)
3211 continue ;;
3212 *\'*)
3213 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3214 esac
3215 case $ac_pass in
3216 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3217 2)
3218 as_fn_append ac_configure_args1 " '$ac_arg'"
3219 if test $ac_must_keep_next = true; then
3220 ac_must_keep_next=false # Got value, back to normal.
3221 else
3222 case $ac_arg in
3223 *=* | --config-cache | -C | -disable-* | --disable-* \
3224 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3225 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3226 | -with-* | --with-* | -without-* | --without-* | --x)
3227 case "$ac_configure_args0 " in
3228 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3229 esac
3230 ;;
3231 -* ) ac_must_keep_next=true ;;
3232 esac
3233 fi
3234 as_fn_append ac_configure_args " '$ac_arg'"
3235 ;;
3236 esac
3237 done
3238 done
3239 { ac_configure_args0=; unset ac_configure_args0;}
3240 { ac_configure_args1=; unset ac_configure_args1;}
3241
3242 # When interrupted or exit'd, cleanup temporary files, and complete
3243 # config.log. We remove comments because anyway the quotes in there
3244 # would cause problems or look ugly.
3245 # WARNING: Use '\'' to represent an apostrophe within the trap.
3246 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3247 trap 'exit_status=$?
3248 # Sanitize IFS.
3249 IFS=" "" $as_nl"
3250 # Save into config.log some information that might help in debugging.
3251 {
3252 echo
3253
3254 printf "%s\n" "## ---------------- ##
3255 ## Cache variables. ##
3256 ## ---------------- ##"
3257 echo
3258 # The following way of writing the cache mishandles newlines in values,
3259 (
3260 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3261 eval ac_val=\$$ac_var
3262 case $ac_val in #(
3263 *${as_nl}*)
3264 case $ac_var in #(
3265 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3266 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3267 esac
3268 case $ac_var in #(
3269 _ | IFS | as_nl) ;; #(
3270 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3271 *) { eval $ac_var=; unset $ac_var;} ;;
3272 esac ;;
3273 esac
3274 done
3275 (set) 2>&1 |
3276 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3277 *${as_nl}ac_space=\ *)
3278 sed -n \
3279 "s/'\''/'\''\\\\'\'''\''/g;
3280 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3281 ;; #(
3282 *)
3283 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3284 ;;
3285 esac |
3286 sort
3287 )
3288 echo
3289
3290 printf "%s\n" "## ----------------- ##
3291 ## Output variables. ##
3292 ## ----------------- ##"
3293 echo
3294 for ac_var in $ac_subst_vars
3295 do
3296 eval ac_val=\$$ac_var
3297 case $ac_val in
3298 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3299 esac
3300 printf "%s\n" "$ac_var='\''$ac_val'\''"
3301 done | sort
3302 echo
3303
3304 if test -n "$ac_subst_files"; then
3305 printf "%s\n" "## ------------------- ##
3306 ## File substitutions. ##
3307 ## ------------------- ##"
3308 echo
3309 for ac_var in $ac_subst_files
3310 do
3311 eval ac_val=\$$ac_var
3312 case $ac_val in
3313 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3314 esac
3315 printf "%s\n" "$ac_var='\''$ac_val'\''"
3316 done | sort
3317 echo
3318 fi
3319
3320 if test -s confdefs.h; then
3321 printf "%s\n" "## ----------- ##
3322 ## confdefs.h. ##
3323 ## ----------- ##"
3324 echo
3325 cat confdefs.h
3326 echo
3327 fi
3328 test "$ac_signal" != 0 &&
3329 printf "%s\n" "$as_me: caught signal $ac_signal"
3330 printf "%s\n" "$as_me: exit $exit_status"
3331 } >&5
3332 rm -f core *.core core.conftest.* &&
3333 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3334 exit $exit_status
3335 ' 0
3336 for ac_signal in 1 2 13 15; do
3337 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3338 done
3339 ac_signal=0
3340
3341 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3342 rm -f -r conftest* confdefs.h
3343
3344 printf "%s\n" "/* confdefs.h */" > confdefs.h
3345
3346 # Predefined preprocessor variables.
3347
3348 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
3349
3350 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
3351
3352 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
3353
3354 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
3355
3356 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
3357
3358 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
3359
3360
3361 # Let the site file select an alternate cache file if it wants to.
3362 # Prefer an explicitly selected file to automatically selected ones.
3363 if test -n "$CONFIG_SITE"; then
3364 ac_site_files="$CONFIG_SITE"
3365 elif test "x$prefix" != xNONE; then
3366 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
3367 else
3368 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
3369 fi
3370
3371 for ac_site_file in $ac_site_files
3372 do
3373 case $ac_site_file in #(
3374 */*) :
3375 ;; #(
3376 *) :
3377 ac_site_file=./$ac_site_file ;;
3378 esac
3379 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
3380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3381 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
3382 sed 's/^/| /' "$ac_site_file" >&5
3383 . "$ac_site_file" \
3384 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3385 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3386 as_fn_error $? "failed to load site script $ac_site_file
3387 See \`config.log' for more details" "$LINENO" 5; }
3388 fi
3389 done
3390
3391 if test -r "$cache_file"; then
3392 # Some versions of bash will fail to source /dev/null (special files
3393 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3394 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3396 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
3397 case $cache_file in
3398 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3399 *) . "./$cache_file";;
3400 esac
3401 fi
3402 else
3403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3404 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
3405 >$cache_file
3406 fi
3407
3408 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3409 # Test code for whether the C compiler supports C89 (global declarations)
3410 ac_c_conftest_c89_globals='
3411 /* Does the compiler advertise C89 conformance?
3412 Do not test the value of __STDC__, because some compilers set it to 0
3413 while being otherwise adequately conformant. */
3414 #if !defined __STDC__
3415 # error "Compiler does not advertise C89 conformance"
3416 #endif
3417
3418 #include <stddef.h>
3419 #include <stdarg.h>
3420 struct stat;
3421 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
3422 struct buf { int x; };
3423 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3424 static char *e (p, i)
3425 char **p;
3426 int i;
3427 {
3428 return p[i];
3429 }
3430 static char *f (char * (*g) (char **, int), char **p, ...)
3431 {
3432 char *s;
3433 va_list v;
3434 va_start (v,p);
3435 s = g (p, va_arg (v,int));
3436 va_end (v);
3437 return s;
3438 }
3439
3440 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3441 function prototypes and stuff, but not \xHH hex character constants.
3442 These do not provoke an error unfortunately, instead are silently treated
3443 as an "x". The following induces an error, until -std is added to get
3444 proper ANSI mode. Curiously \x00 != x always comes out true, for an
3445 array size at least. It is necessary to write \x00 == 0 to get something
3446 that is true only with -std. */
3447 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3448
3449 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3450 inside strings and character constants. */
3451 #define FOO(x) '\''x'\''
3452 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3453
3454 int test (int i, double x);
3455 struct s1 {int (*f) (int a);};
3456 struct s2 {int (*f) (double a);};
3457 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3458 int, int);'
3459
3460 # Test code for whether the C compiler supports C89 (body of main).
3461 ac_c_conftest_c89_main='
3462 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3463 '
3464
3465 # Test code for whether the C compiler supports C99 (global declarations)
3466 ac_c_conftest_c99_globals='
3467 // Does the compiler advertise C99 conformance?
3468 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3469 # error "Compiler does not advertise C99 conformance"
3470 #endif
3471
3472 #include <stdbool.h>
3473 extern int puts (const char *);
3474 extern int printf (const char *, ...);
3475 extern int dprintf (int, const char *, ...);
3476 extern void *malloc (size_t);
3477
3478 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3479 // dprintf is used instead of fprintf to avoid needing to declare
3480 // FILE and stderr.
3481 #define debug(...) dprintf (2, __VA_ARGS__)
3482 #define showlist(...) puts (#__VA_ARGS__)
3483 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3484 static void
3485 test_varargs_macros (void)
3486 {
3487 int x = 1234;
3488 int y = 5678;
3489 debug ("Flag");
3490 debug ("X = %d\n", x);
3491 showlist (The first, second, and third items.);
3492 report (x>y, "x is %d but y is %d", x, y);
3493 }
3494
3495 // Check long long types.
3496 #define BIG64 18446744073709551615ull
3497 #define BIG32 4294967295ul
3498 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3499 #if !BIG_OK
3500 #error "your preprocessor is broken"
3501 #endif
3502 #if BIG_OK
3503 #else
3504 #error "your preprocessor is broken"
3505 #endif
3506 static long long int bignum = -9223372036854775807LL;
3507 static unsigned long long int ubignum = BIG64;
3508
3509 struct incomplete_array
3510 {
3511 int datasize;
3512 double data[];
3513 };
3514
3515 struct named_init {
3516 int number;
3517 const wchar_t *name;
3518 double average;
3519 };
3520
3521 typedef const char *ccp;
3522
3523 static inline int
3524 test_restrict (ccp restrict text)
3525 {
3526 // See if C++-style comments work.
3527 // Iterate through items via the restricted pointer.
3528 // Also check for declarations in for loops.
3529 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3530 continue;
3531 return 0;
3532 }
3533
3534 // Check varargs and va_copy.
3535 static bool
3536 test_varargs (const char *format, ...)
3537 {
3538 va_list args;
3539 va_start (args, format);
3540 va_list args_copy;
3541 va_copy (args_copy, args);
3542
3543 const char *str = "";
3544 int number = 0;
3545 float fnumber = 0;
3546
3547 while (*format)
3548 {
3549 switch (*format++)
3550 {
3551 case '\''s'\'': // string
3552 str = va_arg (args_copy, const char *);
3553 break;
3554 case '\''d'\'': // int
3555 number = va_arg (args_copy, int);
3556 break;
3557 case '\''f'\'': // float
3558 fnumber = va_arg (args_copy, double);
3559 break;
3560 default:
3561 break;
3562 }
3563 }
3564 va_end (args_copy);
3565 va_end (args);
3566
3567 return *str && number && fnumber;
3568 }
3569 '
3570
3571 # Test code for whether the C compiler supports C99 (body of main).
3572 ac_c_conftest_c99_main='
3573 // Check bool.
3574 _Bool success = false;
3575 success |= (argc != 0);
3576
3577 // Check restrict.
3578 if (test_restrict ("String literal") == 0)
3579 success = true;
3580 char *restrict newvar = "Another string";
3581
3582 // Check varargs.
3583 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3584 test_varargs_macros ();
3585
3586 // Check flexible array members.
3587 struct incomplete_array *ia =
3588 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3589 ia->datasize = 10;
3590 for (int i = 0; i < ia->datasize; ++i)
3591 ia->data[i] = i * 1.234;
3592
3593 // Check named initializers.
3594 struct named_init ni = {
3595 .number = 34,
3596 .name = L"Test wide string",
3597 .average = 543.34343,
3598 };
3599
3600 ni.number = 58;
3601
3602 int dynamic_array[ni.number];
3603 dynamic_array[0] = argv[0][0];
3604 dynamic_array[ni.number - 1] = 543;
3605
3606 // work around unused variable warnings
3607 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3608 || dynamic_array[ni.number - 1] != 543);
3609 '
3610
3611 # Test code for whether the C compiler supports C11 (global declarations)
3612 ac_c_conftest_c11_globals='
3613 // Does the compiler advertise C11 conformance?
3614 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3615 # error "Compiler does not advertise C11 conformance"
3616 #endif
3617
3618 // Check _Alignas.
3619 char _Alignas (double) aligned_as_double;
3620 char _Alignas (0) no_special_alignment;
3621 extern char aligned_as_int;
3622 char _Alignas (0) _Alignas (int) aligned_as_int;
3623
3624 // Check _Alignof.
3625 enum
3626 {
3627 int_alignment = _Alignof (int),
3628 int_array_alignment = _Alignof (int[100]),
3629 char_alignment = _Alignof (char)
3630 };
3631 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3632
3633 // Check _Noreturn.
3634 int _Noreturn does_not_return (void) { for (;;) continue; }
3635
3636 // Check _Static_assert.
3637 struct test_static_assert
3638 {
3639 int x;
3640 _Static_assert (sizeof (int) <= sizeof (long int),
3641 "_Static_assert does not work in struct");
3642 long int y;
3643 };
3644
3645 // Check UTF-8 literals.
3646 #define u8 syntax error!
3647 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3648
3649 // Check duplicate typedefs.
3650 typedef long *long_ptr;
3651 typedef long int *long_ptr;
3652 typedef long_ptr long_ptr;
3653
3654 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3655 struct anonymous
3656 {
3657 union {
3658 struct { int i; int j; };
3659 struct { int k; long int l; } w;
3660 };
3661 int m;
3662 } v1;
3663 '
3664
3665 # Test code for whether the C compiler supports C11 (body of main).
3666 ac_c_conftest_c11_main='
3667 _Static_assert ((offsetof (struct anonymous, i)
3668 == offsetof (struct anonymous, w.k)),
3669 "Anonymous union alignment botch");
3670 v1.i = 2;
3671 v1.w.k = 5;
3672 ok |= v1.i != 5;
3673 '
3674
3675 # Test code for whether the C compiler supports C11 (complete).
3676 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3677 ${ac_c_conftest_c99_globals}
3678 ${ac_c_conftest_c11_globals}
3679
3680 int
3681 main (int argc, char **argv)
3682 {
3683 int ok = 0;
3684 ${ac_c_conftest_c89_main}
3685 ${ac_c_conftest_c99_main}
3686 ${ac_c_conftest_c11_main}
3687 return ok;
3688 }
3689 "
3690
3691 # Test code for whether the C compiler supports C99 (complete).
3692 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3693 ${ac_c_conftest_c99_globals}
3694
3695 int
3696 main (int argc, char **argv)
3697 {
3698 int ok = 0;
3699 ${ac_c_conftest_c89_main}
3700 ${ac_c_conftest_c99_main}
3701 return ok;
3702 }
3703 "
3704
3705 # Test code for whether the C compiler supports C89 (complete).
3706 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3707
3708 int
3709 main (int argc, char **argv)
3710 {
3711 int ok = 0;
3712 ${ac_c_conftest_c89_main}
3713 return ok;
3714 }
3715 "
3716
3717 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3718 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3719 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3720 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3721 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3722 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3723 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3724 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3725 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3726 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3727 as_fn_append ac_func_c_list " flockfile HAVE_FLOCKFILE"
3728 as_fn_append ac_func_c_list " funlockfile HAVE_FUNLOCKFILE"
3729 as_fn_append ac_header_c_list " features.h features_h HAVE_FEATURES_H"
3730 as_fn_append ac_header_c_list " linewrap.h linewrap_h HAVE_LINEWRAP_H"
3731 as_fn_append ac_func_c_list " canonicalize_file_name HAVE_CANONICALIZE_FILE_NAME"
3732 as_fn_append ac_func_c_list " faccessat HAVE_FACCESSAT"
3733 as_fn_append ac_func_c_list " realpath HAVE_REALPATH"
3734 as_fn_append ac_func_c_list " lstat HAVE_LSTAT"
3735 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
3736 as_fn_append ac_func_c_list " _set_invalid_parameter_handler HAVE__SET_INVALID_PARAMETER_HANDLER"
3737 as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H"
3738 as_fn_append ac_func_c_list " fcntl HAVE_FCNTL"
3739 as_fn_append ac_func_c_list " symlink HAVE_SYMLINK"
3740 as_fn_append ac_func_c_list " getdelim HAVE_GETDELIM"
3741 as_fn_append ac_func_c_list " getdtablesize HAVE_GETDTABLESIZE"
3742 gl_getopt_required=GNU
3743 as_fn_append ac_header_c_list " getopt.h getopt_h HAVE_GETOPT_H"
3744 as_fn_append ac_header_c_list " sys/cdefs.h sys_cdefs_h HAVE_SYS_CDEFS_H"
3745 as_fn_append ac_func_c_list " getprogname HAVE_GETPROGNAME"
3746 as_fn_append ac_func_c_list " getexecname HAVE_GETEXECNAME"
3747 as_fn_append ac_header_c_list " limits.h limits_h HAVE_LIMITS_H"
3748 as_fn_append ac_header_c_list " sys/mman.h sys_mman_h HAVE_SYS_MMAN_H"
3749 as_fn_append ac_func_c_list " mprotect HAVE_MPROTECT"
3750 as_fn_append ac_func_c_list " readlink HAVE_READLINK"
3751 as_fn_append ac_func_c_list " link HAVE_LINK"
3752 as_fn_append ac_func_c_list " sleep HAVE_SLEEP"
3753 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
3754 as_fn_append ac_func_c_list " strndup HAVE_STRNDUP"
3755 as_fn_append ac_header_c_list " sysexits.h sysexits_h HAVE_SYSEXITS_H"
3756 as_fn_append ac_func_c_list " vasnprintf HAVE_VASNPRINTF"
3757 as_fn_append ac_func_c_list " snprintf HAVE_SNPRINTF"
3758 as_fn_append ac_header_c_list " crtdefs.h crtdefs_h HAVE_CRTDEFS_H"
3759
3760 # Auxiliary files required by this configure script.
3761 ac_aux_files="config.guess config.sub compile missing install-sh"
3762
3763 # Locations in which to look for auxiliary files.
3764 ac_aux_dir_candidates="${srcdir}/build-aux"
3765
3766 # Search for a directory containing all of the required auxiliary files,
3767 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3768 # If we don't find one directory that contains all the files we need,
3769 # we report the set of missing files from the *first* directory in
3770 # $ac_aux_dir_candidates and give up.
3771 ac_missing_aux_files=""
3772 ac_first_candidate=:
3773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 as_found=false
3776 for as_dir in $ac_aux_dir_candidates
3777 do
3778 IFS=$as_save_IFS
3779 case $as_dir in #(((
3780 '') as_dir=./ ;;
3781 */) ;;
3782 *) as_dir=$as_dir/ ;;
3783 esac
3784 as_found=:
3785
3786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3787 ac_aux_dir_found=yes
3788 ac_install_sh=
3789 for ac_aux in $ac_aux_files
3790 do
3791 # As a special case, if "install-sh" is required, that requirement
3792 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3793 # and $ac_install_sh is set appropriately for whichever one is found.
3794 if test x"$ac_aux" = x"install-sh"
3795 then
3796 if test -f "${as_dir}install-sh"; then
3797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3798 ac_install_sh="${as_dir}install-sh -c"
3799 elif test -f "${as_dir}install.sh"; then
3800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3801 ac_install_sh="${as_dir}install.sh -c"
3802 elif test -f "${as_dir}shtool"; then
3803 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3804 ac_install_sh="${as_dir}shtool install -c"
3805 else
3806 ac_aux_dir_found=no
3807 if $ac_first_candidate; then
3808 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3809 else
3810 break
3811 fi
3812 fi
3813 else
3814 if test -f "${as_dir}${ac_aux}"; then
3815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3816 else
3817 ac_aux_dir_found=no
3818 if $ac_first_candidate; then
3819 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3820 else
3821 break
3822 fi
3823 fi
3824 fi
3825 done
3826 if test "$ac_aux_dir_found" = yes; then
3827 ac_aux_dir="$as_dir"
3828 break
3829 fi
3830 ac_first_candidate=false
3831
3832 as_found=false
3833 done
3834 IFS=$as_save_IFS
3835 if $as_found
3836 then :
3837
3838 else $as_nop
3839 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3840 fi
3841
3842
3843 # These three variables are undocumented and unsupported,
3844 # and are intended to be withdrawn in a future Autoconf release.
3845 # They can cause serious problems if a builder's source tree is in a directory
3846 # whose full name contains unusual characters.
3847 if test -f "${ac_aux_dir}config.guess"; then
3848 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3849 fi
3850 if test -f "${ac_aux_dir}config.sub"; then
3851 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3852 fi
3853 if test -f "$ac_aux_dir/configure"; then
3854 ac_configure="$SHELL ${ac_aux_dir}configure"
3855 fi
3856
3857 # Check that the precious variables saved in the cache have kept the same
3858 # value.
3859 ac_cache_corrupted=false
3860 for ac_var in $ac_precious_vars; do
3861 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3862 eval ac_new_set=\$ac_env_${ac_var}_set
3863 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3864 eval ac_new_val=\$ac_env_${ac_var}_value
3865 case $ac_old_set,$ac_new_set in
3866 set,)
3867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3868 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3869 ac_cache_corrupted=: ;;
3870 ,set)
3871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3872 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3873 ac_cache_corrupted=: ;;
3874 ,);;
3875 *)
3876 if test "x$ac_old_val" != "x$ac_new_val"; then
3877 # differences in whitespace do not lead to failure.
3878 ac_old_val_w=`echo x $ac_old_val`
3879 ac_new_val_w=`echo x $ac_new_val`
3880 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3882 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3883 ac_cache_corrupted=:
3884 else
3885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3886 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3887 eval $ac_var=\$ac_old_val
3888 fi
3889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3890 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3892 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3893 fi;;
3894 esac
3895 # Pass precious variables to config.status.
3896 if test "$ac_new_set" = set; then
3897 case $ac_new_val in
3898 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3899 *) ac_arg=$ac_var=$ac_new_val ;;
3900 esac
3901 case " $ac_configure_args " in
3902 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3903 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3904 esac
3905 fi
3906 done
3907 if $ac_cache_corrupted; then
3908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3909 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3911 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3912 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3913 and start over" "$LINENO" 5
3914 fi
3915 ## -------------------- ##
3916 ## Main body of script. ##
3917 ## -------------------- ##
3918
3919 ac_ext=c
3920 ac_cpp='$CPP $CPPFLAGS'
3921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3924
3925
3926
3927 am__api_version='1.16'
3928
3929
3930
3931 # Find a good install program. We prefer a C program (faster),
3932 # so one script is as good as another. But avoid the broken or
3933 # incompatible versions:
3934 # SysV /etc/install, /usr/sbin/install
3935 # SunOS /usr/etc/install
3936 # IRIX /sbin/install
3937 # AIX /bin/install
3938 # AmigaOS /C/install, which installs bootblocks on floppy discs
3939 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3940 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3941 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3942 # OS/2's system install, which has a completely different semantic
3943 # ./install, which can be erroneously created by make from ./install.sh.
3944 # Reject install programs that cannot install multiple files.
3945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3946 printf %s "checking for a BSD-compatible install... " >&6; }
3947 if test -z "$INSTALL"; then
3948 if test ${ac_cv_path_install+y}
3949 then :
3950 printf %s "(cached) " >&6
3951 else $as_nop
3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 for as_dir in $PATH
3954 do
3955 IFS=$as_save_IFS
3956 case $as_dir in #(((
3957 '') as_dir=./ ;;
3958 */) ;;
3959 *) as_dir=$as_dir/ ;;
3960 esac
3961 # Account for fact that we put trailing slashes in our PATH walk.
3962 case $as_dir in #((
3963 ./ | /[cC]/* | \
3964 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3965 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3966 /usr/ucb/* ) ;;
3967 *)
3968 # OSF1 and SCO ODT 3.0 have their own names for install.
3969 # Don't use installbsd from OSF since it installs stuff as root
3970 # by default.
3971 for ac_prog in ginstall scoinst install; do
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3974 if test $ac_prog = install &&
3975 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3976 # AIX install. It has an incompatible calling convention.
3977 :
3978 elif test $ac_prog = install &&
3979 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3980 # program-specific install script used by HP pwplus--don't use.
3981 :
3982 else
3983 rm -rf conftest.one conftest.two conftest.dir
3984 echo one > conftest.one
3985 echo two > conftest.two
3986 mkdir conftest.dir
3987 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3988 test -s conftest.one && test -s conftest.two &&
3989 test -s conftest.dir/conftest.one &&
3990 test -s conftest.dir/conftest.two
3991 then
3992 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3993 break 3
3994 fi
3995 fi
3996 fi
3997 done
3998 done
3999 ;;
4000 esac
4001
4002 done
4003 IFS=$as_save_IFS
4004
4005 rm -rf conftest.one conftest.two conftest.dir
4006
4007 fi
4008 if test ${ac_cv_path_install+y}; then
4009 INSTALL=$ac_cv_path_install
4010 else
4011 # As a last resort, use the slow shell script. Don't cache a
4012 # value for INSTALL within a source directory, because that will
4013 # break other packages using the cache if that directory is
4014 # removed, or if the value is a relative name.
4015 INSTALL=$ac_install_sh
4016 fi
4017 fi
4018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4019 printf "%s\n" "$INSTALL" >&6; }
4020
4021 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4022 # It thinks the first close brace ends the variable substitution.
4023 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4024
4025 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4026
4027 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4028
4029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4030 printf %s "checking whether build environment is sane... " >&6; }
4031 # Reject unsafe characters in $srcdir or the absolute working directory
4032 # name. Accept space and tab only in the latter.
4033 am_lf='
4034 '
4035 case `pwd` in
4036 *[\\\"\#\$\&\'\`$am_lf]*)
4037 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4038 esac
4039 case $srcdir in
4040 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4041 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4042 esac
4043
4044 # Do 'set' in a subshell so we don't clobber the current shell's
4045 # arguments. Must try -L first in case configure is actually a
4046 # symlink; some systems play weird games with the mod time of symlinks
4047 # (eg FreeBSD returns the mod time of the symlink's containing
4048 # directory).
4049 if (
4050 am_has_slept=no
4051 for am_try in 1 2; do
4052 echo "timestamp, slept: $am_has_slept" > conftest.file
4053 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4054 if test "$*" = "X"; then
4055 # -L didn't work.
4056 set X `ls -t "$srcdir/configure" conftest.file`
4057 fi
4058 if test "$*" != "X $srcdir/configure conftest.file" \
4059 && test "$*" != "X conftest.file $srcdir/configure"; then
4060
4061 # If neither matched, then we have a broken ls. This can happen
4062 # if, for instance, CONFIG_SHELL is bash and it inherits a
4063 # broken ls alias from the environment. This has actually
4064 # happened. Such a system could not be considered "sane".
4065 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4066 alias in your environment" "$LINENO" 5
4067 fi
4068 if test "$2" = conftest.file || test $am_try -eq 2; then
4069 break
4070 fi
4071 # Just in case.
4072 sleep 1
4073 am_has_slept=yes
4074 done
4075 test "$2" = conftest.file
4076 )
4077 then
4078 # Ok.
4079 :
4080 else
4081 as_fn_error $? "newly created file is older than distributed files!
4082 Check your system clock" "$LINENO" 5
4083 fi
4084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4085 printf "%s\n" "yes" >&6; }
4086 # If we didn't sleep, we still need to ensure time stamps of config.status and
4087 # generated files are strictly newer.
4088 am_sleep_pid=
4089 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4090 ( sleep 1 ) &
4091 am_sleep_pid=$!
4092 fi
4093
4094 rm -f conftest.file
4095
4096 test "$program_prefix" != NONE &&
4097 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4098 # Use a double $ so make ignores it.
4099 test "$program_suffix" != NONE &&
4100 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4101 # Double any \ or $.
4102 # By default was `s,x,x', remove it if useless.
4103 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4104 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4105
4106
4107 # Expand $ac_aux_dir to an absolute path.
4108 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4109
4110
4111 if test x"${MISSING+set}" != xset; then
4112 MISSING="\${SHELL} '$am_aux_dir/missing'"
4113 fi
4114 # Use eval to expand $SHELL
4115 if eval "$MISSING --is-lightweight"; then
4116 am_missing_run="$MISSING "
4117 else
4118 am_missing_run=
4119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4120 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4121 fi
4122
4123 if test x"${install_sh+set}" != xset; then
4124 case $am_aux_dir in
4125 *\ * | *\ *)
4126 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4127 *)
4128 install_sh="\${SHELL} $am_aux_dir/install-sh"
4129 esac
4130 fi
4131
4132 # Installed binaries are usually stripped using 'strip' when the user
4133 # run "make install-strip". However 'strip' might not be the right
4134 # tool to use in cross-compilation environments, therefore Automake
4135 # will honor the 'STRIP' environment variable to overrule this program.
4136 if test "$cross_compiling" != no; then
4137 if test -n "$ac_tool_prefix"; then
4138 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4139 set dummy ${ac_tool_prefix}strip; ac_word=$2
4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4141 printf %s "checking for $ac_word... " >&6; }
4142 if test ${ac_cv_prog_STRIP+y}
4143 then :
4144 printf %s "(cached) " >&6
4145 else $as_nop
4146 if test -n "$STRIP"; then
4147 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4148 else
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 for as_dir in $PATH
4151 do
4152 IFS=$as_save_IFS
4153 case $as_dir in #(((
4154 '') as_dir=./ ;;
4155 */) ;;
4156 *) as_dir=$as_dir/ ;;
4157 esac
4158 for ac_exec_ext in '' $ac_executable_extensions; do
4159 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4160 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4162 break 2
4163 fi
4164 done
4165 done
4166 IFS=$as_save_IFS
4167
4168 fi
4169 fi
4170 STRIP=$ac_cv_prog_STRIP
4171 if test -n "$STRIP"; then
4172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4173 printf "%s\n" "$STRIP" >&6; }
4174 else
4175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4176 printf "%s\n" "no" >&6; }
4177 fi
4178
4179
4180 fi
4181 if test -z "$ac_cv_prog_STRIP"; then
4182 ac_ct_STRIP=$STRIP
4183 # Extract the first word of "strip", so it can be a program name with args.
4184 set dummy strip; ac_word=$2
4185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4186 printf %s "checking for $ac_word... " >&6; }
4187 if test ${ac_cv_prog_ac_ct_STRIP+y}
4188 then :
4189 printf %s "(cached) " >&6
4190 else $as_nop
4191 if test -n "$ac_ct_STRIP"; then
4192 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4193 else
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 for as_dir in $PATH
4196 do
4197 IFS=$as_save_IFS
4198 case $as_dir in #(((
4199 '') as_dir=./ ;;
4200 */) ;;
4201 *) as_dir=$as_dir/ ;;
4202 esac
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4205 ac_cv_prog_ac_ct_STRIP="strip"
4206 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4207 break 2
4208 fi
4209 done
4210 done
4211 IFS=$as_save_IFS
4212
4213 fi
4214 fi
4215 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4216 if test -n "$ac_ct_STRIP"; then
4217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4218 printf "%s\n" "$ac_ct_STRIP" >&6; }
4219 else
4220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221 printf "%s\n" "no" >&6; }
4222 fi
4223
4224 if test "x$ac_ct_STRIP" = x; then
4225 STRIP=":"
4226 else
4227 case $cross_compiling:$ac_tool_warned in
4228 yes:)
4229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4230 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4231 ac_tool_warned=yes ;;
4232 esac
4233 STRIP=$ac_ct_STRIP
4234 fi
4235 else
4236 STRIP="$ac_cv_prog_STRIP"
4237 fi
4238
4239 fi
4240 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4241
4242
4243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4244 printf %s "checking for a race-free mkdir -p... " >&6; }
4245 if test -z "$MKDIR_P"; then
4246 if test ${ac_cv_path_mkdir+y}
4247 then :
4248 printf %s "(cached) " >&6
4249 else $as_nop
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4252 do
4253 IFS=$as_save_IFS
4254 case $as_dir in #(((
4255 '') as_dir=./ ;;
4256 */) ;;
4257 *) as_dir=$as_dir/ ;;
4258 esac
4259 for ac_prog in mkdir gmkdir; do
4260 for ac_exec_ext in '' $ac_executable_extensions; do
4261 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4262 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4263 'mkdir ('*'coreutils) '* | \
4264 'BusyBox '* | \
4265 'mkdir (fileutils) '4.1*)
4266 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4267 break 3;;
4268 esac
4269 done
4270 done
4271 done
4272 IFS=$as_save_IFS
4273
4274 fi
4275
4276 test -d ./--version && rmdir ./--version
4277 if test ${ac_cv_path_mkdir+y}; then
4278 MKDIR_P="$ac_cv_path_mkdir -p"
4279 else
4280 # As a last resort, use the slow shell script. Don't cache a
4281 # value for MKDIR_P within a source directory, because that will
4282 # break other packages using the cache if that directory is
4283 # removed, or if the value is a relative name.
4284 MKDIR_P="$ac_install_sh -d"
4285 fi
4286 fi
4287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4288 printf "%s\n" "$MKDIR_P" >&6; }
4289
4290 for ac_prog in gawk mawk nawk awk
4291 do
4292 # Extract the first word of "$ac_prog", so it can be a program name with args.
4293 set dummy $ac_prog; ac_word=$2
4294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4295 printf %s "checking for $ac_word... " >&6; }
4296 if test ${ac_cv_prog_AWK+y}
4297 then :
4298 printf %s "(cached) " >&6
4299 else $as_nop
4300 if test -n "$AWK"; then
4301 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4302 else
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 for as_dir in $PATH
4305 do
4306 IFS=$as_save_IFS
4307 case $as_dir in #(((
4308 '') as_dir=./ ;;
4309 */) ;;
4310 *) as_dir=$as_dir/ ;;
4311 esac
4312 for ac_exec_ext in '' $ac_executable_extensions; do
4313 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4314 ac_cv_prog_AWK="$ac_prog"
4315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4316 break 2
4317 fi
4318 done
4319 done
4320 IFS=$as_save_IFS
4321
4322 fi
4323 fi
4324 AWK=$ac_cv_prog_AWK
4325 if test -n "$AWK"; then
4326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4327 printf "%s\n" "$AWK" >&6; }
4328 else
4329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4330 printf "%s\n" "no" >&6; }
4331 fi
4332
4333
4334 test -n "$AWK" && break
4335 done
4336
4337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4338 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4339 set x ${MAKE-make}
4340 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4341 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4342 then :
4343 printf %s "(cached) " >&6
4344 else $as_nop
4345 cat >conftest.make <<\_ACEOF
4346 SHELL = /bin/sh
4347 all:
4348 @echo '@@@%%%=$(MAKE)=@@@%%%'
4349 _ACEOF
4350 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4351 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4352 *@@@%%%=?*=@@@%%%*)
4353 eval ac_cv_prog_make_${ac_make}_set=yes;;
4354 *)
4355 eval ac_cv_prog_make_${ac_make}_set=no;;
4356 esac
4357 rm -f conftest.make
4358 fi
4359 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4361 printf "%s\n" "yes" >&6; }
4362 SET_MAKE=
4363 else
4364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365 printf "%s\n" "no" >&6; }
4366 SET_MAKE="MAKE=${MAKE-make}"
4367 fi
4368
4369 rm -rf .tst 2>/dev/null
4370 mkdir .tst 2>/dev/null
4371 if test -d .tst; then
4372 am__leading_dot=.
4373 else
4374 am__leading_dot=_
4375 fi
4376 rmdir .tst 2>/dev/null
4377
4378 # Check whether --enable-silent-rules was given.
4379 if test ${enable_silent_rules+y}
4380 then :
4381 enableval=$enable_silent_rules;
4382 fi
4383
4384 case $enable_silent_rules in # (((
4385 yes) AM_DEFAULT_VERBOSITY=0;;
4386 no) AM_DEFAULT_VERBOSITY=1;;
4387 *) AM_DEFAULT_VERBOSITY=1;;
4388 esac
4389 am_make=${MAKE-make}
4390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4391 printf %s "checking whether $am_make supports nested variables... " >&6; }
4392 if test ${am_cv_make_support_nested_variables+y}
4393 then :
4394 printf %s "(cached) " >&6
4395 else $as_nop
4396 if printf "%s\n" 'TRUE=$(BAR$(V))
4397 BAR0=false
4398 BAR1=true
4399 V=1
4400 am__doit:
4401 @$(TRUE)
4402 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4403 am_cv_make_support_nested_variables=yes
4404 else
4405 am_cv_make_support_nested_variables=no
4406 fi
4407 fi
4408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4409 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4410 if test $am_cv_make_support_nested_variables = yes; then
4411 AM_V='$(V)'
4412 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4413 else
4414 AM_V=$AM_DEFAULT_VERBOSITY
4415 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4416 fi
4417 AM_BACKSLASH='\'
4418
4419 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4420 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4421 # is not polluted with repeated "-I."
4422 am__isrc=' -I$(srcdir)'
4423 # test to see if srcdir already configured
4424 if test -f $srcdir/config.status; then
4425 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4426 fi
4427 fi
4428
4429 # test whether we have cygpath
4430 if test -z "$CYGPATH_W"; then
4431 if (cygpath --version) >/dev/null 2>/dev/null; then
4432 CYGPATH_W='cygpath -w'
4433 else
4434 CYGPATH_W=echo
4435 fi
4436 fi
4437
4438
4439 # Define the identity of the package.
4440 PACKAGE='binfmt-support'
4441 VERSION='2.2.2'
4442
4443
4444 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4445
4446
4447 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4448
4449 # Some tools Automake needs.
4450
4451 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4452
4453
4454 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4455
4456
4457 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4458
4459
4460 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4461
4462
4463 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4464
4465 # For better backward compatibility. To be removed once Automake 1.9.x
4466 # dies out for good. For more background, see:
4467 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4468 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4469 mkdir_p='$(MKDIR_P)'
4470
4471 # We need awk for the "check" target (and possibly the TAP driver). The
4472 # system "awk" is bad on some platforms.
4473 # Always define AMTAR for backward compatibility. Yes, it's still used
4474 # in the wild :-( We should find a proper way to deprecate it ...
4475 AMTAR='$${TAR-tar}'
4476
4477
4478 # We'll loop over all known methods to create a tar archive until one works.
4479 _am_tools='gnutar pax cpio none'
4480
4481 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4482
4483
4484
4485
4486
4487 # Variables for tags utilities; see am/tags.am
4488 if test -z "$CTAGS"; then
4489 CTAGS=ctags
4490 fi
4491
4492 if test -z "$ETAGS"; then
4493 ETAGS=etags
4494 fi
4495
4496 if test -z "$CSCOPE"; then
4497 CSCOPE=cscope
4498 fi
4499
4500
4501
4502 # POSIX will say in a future version that running "rm -f" with no argument
4503 # is OK; and we want to be able to make that assumption in our Makefile
4504 # recipes. So use an aggressive probe to check that the usage we want is
4505 # actually supported "in the wild" to an acceptable degree.
4506 # See automake bug#10828.
4507 # To make any issue more visible, cause the running configure to be aborted
4508 # by default if the 'rm' program in use doesn't match our expectations; the
4509 # user can still override this though.
4510 if rm -f && rm -fr && rm -rf; then : OK; else
4511 cat >&2 <<'END'
4512 Oops!
4513
4514 Your 'rm' program seems unable to run without file operands specified
4515 on the command line, even when the '-f' option is present. This is contrary
4516 to the behaviour of most rm programs out there, and not conforming with
4517 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4518
4519 Please tell [email protected] about your system, including the value
4520 of your $PATH and any error possibly output before this message. This
4521 can help us improve future automake versions.
4522
4523 END
4524 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4525 echo 'Configuration will proceed anyway, since you have set the' >&2
4526 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4527 echo >&2
4528 else
4529 cat >&2 <<'END'
4530 Aborting the configuration process, to ensure you take notice of the issue.
4531
4532 You can download and install GNU coreutils to get an 'rm' implementation
4533 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4534
4535 If you want to complete the configuration process using your problematic
4536 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4537 to "yes", and re-run configure.
4538
4539 END
4540 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4541 fi
4542 fi
4543
4544
4545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4546 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4547 # Check whether --enable-maintainer-mode was given.
4548 if test ${enable_maintainer_mode+y}
4549 then :
4550 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4551 else $as_nop
4552 USE_MAINTAINER_MODE=no
4553 fi
4554
4555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4556 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
4557 if test $USE_MAINTAINER_MODE = yes; then
4558 MAINTAINER_MODE_TRUE=
4559 MAINTAINER_MODE_FALSE='#'
4560 else
4561 MAINTAINER_MODE_TRUE='#'
4562 MAINTAINER_MODE_FALSE=
4563 fi
4564
4565 MAINT=$MAINTAINER_MODE_TRUE
4566
4567
4568 # Check whether --enable-silent-rules was given.
4569 if test ${enable_silent_rules+y}
4570 then :
4571 enableval=$enable_silent_rules;
4572 fi
4573
4574 case $enable_silent_rules in # (((
4575 yes) AM_DEFAULT_VERBOSITY=0;;
4576 no) AM_DEFAULT_VERBOSITY=1;;
4577 *) AM_DEFAULT_VERBOSITY=0;;
4578 esac
4579 am_make=${MAKE-make}
4580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4581 printf %s "checking whether $am_make supports nested variables... " >&6; }
4582 if test ${am_cv_make_support_nested_variables+y}
4583 then :
4584 printf %s "(cached) " >&6
4585 else $as_nop
4586 if printf "%s\n" 'TRUE=$(BAR$(V))
4587 BAR0=false
4588 BAR1=true
4589 V=1
4590 am__doit:
4591 @$(TRUE)
4592 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4593 am_cv_make_support_nested_variables=yes
4594 else
4595 am_cv_make_support_nested_variables=no
4596 fi
4597 fi
4598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4599 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4600 if test $am_cv_make_support_nested_variables = yes; then
4601 AM_V='$(V)'
4602 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4603 else
4604 AM_V=$AM_DEFAULT_VERBOSITY
4605 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4606 fi
4607 AM_BACKSLASH='\'
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620 DEPDIR="${am__leading_dot}deps"
4621
4622 ac_config_commands="$ac_config_commands depfiles"
4623
4624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4625 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4626 cat > confinc.mk << 'END'
4627 am__doit:
4628 @echo this is the am__doit target >confinc.out
4629 .PHONY: am__doit
4630 END
4631 am__include="#"
4632 am__quote=
4633 # BSD make does it like this.
4634 echo '.include "confinc.mk" # ignored' > confmf.BSD
4635 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4636 echo 'include confinc.mk # ignored' > confmf.GNU
4637 _am_result=no
4638 for s in GNU BSD; do
4639 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4640 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4641 ac_status=$?
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }
4644 case $?:`cat confinc.out 2>/dev/null` in #(
4645 '0:this is the am__doit target') :
4646 case $s in #(
4647 BSD) :
4648 am__include='.include' am__quote='"' ;; #(
4649 *) :
4650 am__include='include' am__quote='' ;;
4651 esac ;; #(
4652 *) :
4653 ;;
4654 esac
4655 if test "$am__include" != "#"; then
4656 _am_result="yes ($s style)"
4657 break
4658 fi
4659 done
4660 rm -f confinc.* confmf.*
4661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4662 printf "%s\n" "${_am_result}" >&6; }
4663
4664 # Check whether --enable-dependency-tracking was given.
4665 if test ${enable_dependency_tracking+y}
4666 then :
4667 enableval=$enable_dependency_tracking;
4668 fi
4669
4670 if test "x$enable_dependency_tracking" != xno; then
4671 am_depcomp="$ac_aux_dir/depcomp"
4672 AMDEPBACKSLASH='\'
4673 am__nodep='_no'
4674 fi
4675 if test "x$enable_dependency_tracking" != xno; then
4676 AMDEP_TRUE=
4677 AMDEP_FALSE='#'
4678 else
4679 AMDEP_TRUE='#'
4680 AMDEP_FALSE=
4681 fi
4682
4683
4684 ac_ext=c
4685 ac_cpp='$CPP $CPPFLAGS'
4686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4689 if test -n "$ac_tool_prefix"; then
4690 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4691 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4693 printf %s "checking for $ac_word... " >&6; }
4694 if test ${ac_cv_prog_CC+y}
4695 then :
4696 printf %s "(cached) " >&6
4697 else $as_nop
4698 if test -n "$CC"; then
4699 ac_cv_prog_CC="$CC" # Let the user override the test.
4700 else
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4703 do
4704 IFS=$as_save_IFS
4705 case $as_dir in #(((
4706 '') as_dir=./ ;;
4707 */) ;;
4708 *) as_dir=$as_dir/ ;;
4709 esac
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4712 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4714 break 2
4715 fi
4716 done
4717 done
4718 IFS=$as_save_IFS
4719
4720 fi
4721 fi
4722 CC=$ac_cv_prog_CC
4723 if test -n "$CC"; then
4724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4725 printf "%s\n" "$CC" >&6; }
4726 else
4727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728 printf "%s\n" "no" >&6; }
4729 fi
4730
4731
4732 fi
4733 if test -z "$ac_cv_prog_CC"; then
4734 ac_ct_CC=$CC
4735 # Extract the first word of "gcc", so it can be a program name with args.
4736 set dummy gcc; ac_word=$2
4737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 printf %s "checking for $ac_word... " >&6; }
4739 if test ${ac_cv_prog_ac_ct_CC+y}
4740 then :
4741 printf %s "(cached) " >&6
4742 else $as_nop
4743 if test -n "$ac_ct_CC"; then
4744 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4745 else
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4748 do
4749 IFS=$as_save_IFS
4750 case $as_dir in #(((
4751 '') as_dir=./ ;;
4752 */) ;;
4753 *) as_dir=$as_dir/ ;;
4754 esac
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4757 ac_cv_prog_ac_ct_CC="gcc"
4758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4759 break 2
4760 fi
4761 done
4762 done
4763 IFS=$as_save_IFS
4764
4765 fi
4766 fi
4767 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4768 if test -n "$ac_ct_CC"; then
4769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4770 printf "%s\n" "$ac_ct_CC" >&6; }
4771 else
4772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773 printf "%s\n" "no" >&6; }
4774 fi
4775
4776 if test "x$ac_ct_CC" = x; then
4777 CC=""
4778 else
4779 case $cross_compiling:$ac_tool_warned in
4780 yes:)
4781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4782 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4783 ac_tool_warned=yes ;;
4784 esac
4785 CC=$ac_ct_CC
4786 fi
4787 else
4788 CC="$ac_cv_prog_CC"
4789 fi
4790
4791 if test -z "$CC"; then
4792 if test -n "$ac_tool_prefix"; then
4793 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4794 set dummy ${ac_tool_prefix}cc; ac_word=$2
4795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4796 printf %s "checking for $ac_word... " >&6; }
4797 if test ${ac_cv_prog_CC+y}
4798 then :
4799 printf %s "(cached) " >&6
4800 else $as_nop
4801 if test -n "$CC"; then
4802 ac_cv_prog_CC="$CC" # Let the user override the test.
4803 else
4804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 for as_dir in $PATH
4806 do
4807 IFS=$as_save_IFS
4808 case $as_dir in #(((
4809 '') as_dir=./ ;;
4810 */) ;;
4811 *) as_dir=$as_dir/ ;;
4812 esac
4813 for ac_exec_ext in '' $ac_executable_extensions; do
4814 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4815 ac_cv_prog_CC="${ac_tool_prefix}cc"
4816 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4817 break 2
4818 fi
4819 done
4820 done
4821 IFS=$as_save_IFS
4822
4823 fi
4824 fi
4825 CC=$ac_cv_prog_CC
4826 if test -n "$CC"; then
4827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4828 printf "%s\n" "$CC" >&6; }
4829 else
4830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831 printf "%s\n" "no" >&6; }
4832 fi
4833
4834
4835 fi
4836 fi
4837 if test -z "$CC"; then
4838 # Extract the first word of "cc", so it can be a program name with args.
4839 set dummy cc; ac_word=$2
4840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4841 printf %s "checking for $ac_word... " >&6; }
4842 if test ${ac_cv_prog_CC+y}
4843 then :
4844 printf %s "(cached) " >&6
4845 else $as_nop
4846 if test -n "$CC"; then
4847 ac_cv_prog_CC="$CC" # Let the user override the test.
4848 else
4849 ac_prog_rejected=no
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 for as_dir in $PATH
4852 do
4853 IFS=$as_save_IFS
4854 case $as_dir in #(((
4855 '') as_dir=./ ;;
4856 */) ;;
4857 *) as_dir=$as_dir/ ;;
4858 esac
4859 for ac_exec_ext in '' $ac_executable_extensions; do
4860 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4861 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4862 ac_prog_rejected=yes
4863 continue
4864 fi
4865 ac_cv_prog_CC="cc"
4866 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4867 break 2
4868 fi
4869 done
4870 done
4871 IFS=$as_save_IFS
4872
4873 if test $ac_prog_rejected = yes; then
4874 # We found a bogon in the path, so make sure we never use it.
4875 set dummy $ac_cv_prog_CC
4876 shift
4877 if test $# != 0; then
4878 # We chose a different compiler from the bogus one.
4879 # However, it has the same basename, so the bogon will be chosen
4880 # first if we set CC to just the basename; use the full file name.
4881 shift
4882 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4883 fi
4884 fi
4885 fi
4886 fi
4887 CC=$ac_cv_prog_CC
4888 if test -n "$CC"; then
4889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4890 printf "%s\n" "$CC" >&6; }
4891 else
4892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893 printf "%s\n" "no" >&6; }
4894 fi
4895
4896
4897 fi
4898 if test -z "$CC"; then
4899 if test -n "$ac_tool_prefix"; then
4900 for ac_prog in cl.exe
4901 do
4902 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4903 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4905 printf %s "checking for $ac_word... " >&6; }
4906 if test ${ac_cv_prog_CC+y}
4907 then :
4908 printf %s "(cached) " >&6
4909 else $as_nop
4910 if test -n "$CC"; then
4911 ac_cv_prog_CC="$CC" # Let the user override the test.
4912 else
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH
4915 do
4916 IFS=$as_save_IFS
4917 case $as_dir in #(((
4918 '') as_dir=./ ;;
4919 */) ;;
4920 *) as_dir=$as_dir/ ;;
4921 esac
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4924 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4926 break 2
4927 fi
4928 done
4929 done
4930 IFS=$as_save_IFS
4931
4932 fi
4933 fi
4934 CC=$ac_cv_prog_CC
4935 if test -n "$CC"; then
4936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4937 printf "%s\n" "$CC" >&6; }
4938 else
4939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 printf "%s\n" "no" >&6; }
4941 fi
4942
4943
4944 test -n "$CC" && break
4945 done
4946 fi
4947 if test -z "$CC"; then
4948 ac_ct_CC=$CC
4949 for ac_prog in cl.exe
4950 do
4951 # Extract the first word of "$ac_prog", so it can be a program name with args.
4952 set dummy $ac_prog; ac_word=$2
4953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954 printf %s "checking for $ac_word... " >&6; }
4955 if test ${ac_cv_prog_ac_ct_CC+y}
4956 then :
4957 printf %s "(cached) " >&6
4958 else $as_nop
4959 if test -n "$ac_ct_CC"; then
4960 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4961 else
4962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963 for as_dir in $PATH
4964 do
4965 IFS=$as_save_IFS
4966 case $as_dir in #(((
4967 '') as_dir=./ ;;
4968 */) ;;
4969 *) as_dir=$as_dir/ ;;
4970 esac
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4973 ac_cv_prog_ac_ct_CC="$ac_prog"
4974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4975 break 2
4976 fi
4977 done
4978 done
4979 IFS=$as_save_IFS
4980
4981 fi
4982 fi
4983 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4984 if test -n "$ac_ct_CC"; then
4985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4986 printf "%s\n" "$ac_ct_CC" >&6; }
4987 else
4988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4989 printf "%s\n" "no" >&6; }
4990 fi
4991
4992
4993 test -n "$ac_ct_CC" && break
4994 done
4995
4996 if test "x$ac_ct_CC" = x; then
4997 CC=""
4998 else
4999 case $cross_compiling:$ac_tool_warned in
5000 yes:)
5001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5002 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5003 ac_tool_warned=yes ;;
5004 esac
5005 CC=$ac_ct_CC
5006 fi
5007 fi
5008
5009 fi
5010 if test -z "$CC"; then
5011 if test -n "$ac_tool_prefix"; then
5012 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5013 set dummy ${ac_tool_prefix}clang; ac_word=$2
5014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5015 printf %s "checking for $ac_word... " >&6; }
5016 if test ${ac_cv_prog_CC+y}
5017 then :
5018 printf %s "(cached) " >&6
5019 else $as_nop
5020 if test -n "$CC"; then
5021 ac_cv_prog_CC="$CC" # Let the user override the test.
5022 else
5023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 for as_dir in $PATH
5025 do
5026 IFS=$as_save_IFS
5027 case $as_dir in #(((
5028 '') as_dir=./ ;;
5029 */) ;;
5030 *) as_dir=$as_dir/ ;;
5031 esac
5032 for ac_exec_ext in '' $ac_executable_extensions; do
5033 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5034 ac_cv_prog_CC="${ac_tool_prefix}clang"
5035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5036 break 2
5037 fi
5038 done
5039 done
5040 IFS=$as_save_IFS
5041
5042 fi
5043 fi
5044 CC=$ac_cv_prog_CC
5045 if test -n "$CC"; then
5046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5047 printf "%s\n" "$CC" >&6; }
5048 else
5049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5050 printf "%s\n" "no" >&6; }
5051 fi
5052
5053
5054 fi
5055 if test -z "$ac_cv_prog_CC"; then
5056 ac_ct_CC=$CC
5057 # Extract the first word of "clang", so it can be a program name with args.
5058 set dummy clang; ac_word=$2
5059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060 printf %s "checking for $ac_word... " >&6; }
5061 if test ${ac_cv_prog_ac_ct_CC+y}
5062 then :
5063 printf %s "(cached) " >&6
5064 else $as_nop
5065 if test -n "$ac_ct_CC"; then
5066 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5067 else
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 for as_dir in $PATH
5070 do
5071 IFS=$as_save_IFS
5072 case $as_dir in #(((
5073 '') as_dir=./ ;;
5074 */) ;;
5075 *) as_dir=$as_dir/ ;;
5076 esac
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5079 ac_cv_prog_ac_ct_CC="clang"
5080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5081 break 2
5082 fi
5083 done
5084 done
5085 IFS=$as_save_IFS
5086
5087 fi
5088 fi
5089 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5090 if test -n "$ac_ct_CC"; then
5091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5092 printf "%s\n" "$ac_ct_CC" >&6; }
5093 else
5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095 printf "%s\n" "no" >&6; }
5096 fi
5097
5098 if test "x$ac_ct_CC" = x; then
5099 CC=""
5100 else
5101 case $cross_compiling:$ac_tool_warned in
5102 yes:)
5103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5104 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5105 ac_tool_warned=yes ;;
5106 esac
5107 CC=$ac_ct_CC
5108 fi
5109 else
5110 CC="$ac_cv_prog_CC"
5111 fi
5112
5113 fi
5114
5115
5116 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5117 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5118 as_fn_error $? "no acceptable C compiler found in \$PATH
5119 See \`config.log' for more details" "$LINENO" 5; }
5120
5121 # Provide some information about the compiler.
5122 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5123 set X $ac_compile
5124 ac_compiler=$2
5125 for ac_option in --version -v -V -qversion -version; do
5126 { { ac_try="$ac_compiler $ac_option >&5"
5127 case "(($ac_try" in
5128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5129 *) ac_try_echo=$ac_try;;
5130 esac
5131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5132 printf "%s\n" "$ac_try_echo"; } >&5
5133 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5134 ac_status=$?
5135 if test -s conftest.err; then
5136 sed '10a\
5137 ... rest of stderr output deleted ...
5138 10q' conftest.err >conftest.er1
5139 cat conftest.er1 >&5
5140 fi
5141 rm -f conftest.er1 conftest.err
5142 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5143 test $ac_status = 0; }
5144 done
5145
5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5147 /* end confdefs.h. */
5148
5149 int
5150 main (void)
5151 {
5152
5153 ;
5154 return 0;
5155 }
5156 _ACEOF
5157 ac_clean_files_save=$ac_clean_files
5158 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5159 # Try to create an executable without -o first, disregard a.out.
5160 # It will help us diagnose broken compilers, and finding out an intuition
5161 # of exeext.
5162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5163 printf %s "checking whether the C compiler works... " >&6; }
5164 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5165
5166 # The possible output files:
5167 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5168
5169 ac_rmfiles=
5170 for ac_file in $ac_files
5171 do
5172 case $ac_file in
5173 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5174 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5175 esac
5176 done
5177 rm -f $ac_rmfiles
5178
5179 if { { ac_try="$ac_link_default"
5180 case "(($ac_try" in
5181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5182 *) ac_try_echo=$ac_try;;
5183 esac
5184 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5185 printf "%s\n" "$ac_try_echo"; } >&5
5186 (eval "$ac_link_default") 2>&5
5187 ac_status=$?
5188 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5189 test $ac_status = 0; }
5190 then :
5191 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5192 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5193 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5194 # so that the user can short-circuit this test for compilers unknown to
5195 # Autoconf.
5196 for ac_file in $ac_files ''
5197 do
5198 test -f "$ac_file" || continue
5199 case $ac_file in
5200 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5201 ;;
5202 [ab].out )
5203 # We found the default executable, but exeext='' is most
5204 # certainly right.
5205 break;;
5206 *.* )
5207 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
5208 then :; else
5209 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5210 fi
5211 # We set ac_cv_exeext here because the later test for it is not
5212 # safe: cross compilers may not add the suffix if given an `-o'
5213 # argument, so we may need to know it at that point already.
5214 # Even if this section looks crufty: it has the advantage of
5215 # actually working.
5216 break;;
5217 * )
5218 break;;
5219 esac
5220 done
5221 test "$ac_cv_exeext" = no && ac_cv_exeext=
5222
5223 else $as_nop
5224 ac_file=''
5225 fi
5226 if test -z "$ac_file"
5227 then :
5228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229 printf "%s\n" "no" >&6; }
5230 printf "%s\n" "$as_me: failed program was:" >&5
5231 sed 's/^/| /' conftest.$ac_ext >&5
5232
5233 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5234 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5235 as_fn_error 77 "C compiler cannot create executables
5236 See \`config.log' for more details" "$LINENO" 5; }
5237 else $as_nop
5238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5239 printf "%s\n" "yes" >&6; }
5240 fi
5241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5242 printf %s "checking for C compiler default output file name... " >&6; }
5243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5244 printf "%s\n" "$ac_file" >&6; }
5245 ac_exeext=$ac_cv_exeext
5246
5247 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5248 ac_clean_files=$ac_clean_files_save
5249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5250 printf %s "checking for suffix of executables... " >&6; }
5251 if { { ac_try="$ac_link"
5252 case "(($ac_try" in
5253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5254 *) ac_try_echo=$ac_try;;
5255 esac
5256 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5257 printf "%s\n" "$ac_try_echo"; } >&5
5258 (eval "$ac_link") 2>&5
5259 ac_status=$?
5260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5261 test $ac_status = 0; }
5262 then :
5263 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5264 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5265 # work properly (i.e., refer to `conftest.exe'), while it won't with
5266 # `rm'.
5267 for ac_file in conftest.exe conftest conftest.*; do
5268 test -f "$ac_file" || continue
5269 case $ac_file in
5270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5271 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5272 break;;
5273 * ) break;;
5274 esac
5275 done
5276 else $as_nop
5277 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5278 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5279 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5280 See \`config.log' for more details" "$LINENO" 5; }
5281 fi
5282 rm -f conftest conftest$ac_cv_exeext
5283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5284 printf "%s\n" "$ac_cv_exeext" >&6; }
5285
5286 rm -f conftest.$ac_ext
5287 EXEEXT=$ac_cv_exeext
5288 ac_exeext=$EXEEXT
5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5291 #include <stdio.h>
5292 int
5293 main (void)
5294 {
5295 FILE *f = fopen ("conftest.out", "w");
5296 return ferror (f) || fclose (f) != 0;
5297
5298 ;
5299 return 0;
5300 }
5301 _ACEOF
5302 ac_clean_files="$ac_clean_files conftest.out"
5303 # Check that the compiler produces executables we can run. If not, either
5304 # the compiler is broken, or we cross compile.
5305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5306 printf %s "checking whether we are cross compiling... " >&6; }
5307 if test "$cross_compiling" != yes; then
5308 { { ac_try="$ac_link"
5309 case "(($ac_try" in
5310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5311 *) ac_try_echo=$ac_try;;
5312 esac
5313 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5314 printf "%s\n" "$ac_try_echo"; } >&5
5315 (eval "$ac_link") 2>&5
5316 ac_status=$?
5317 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5318 test $ac_status = 0; }
5319 if { ac_try='./conftest$ac_cv_exeext'
5320 { { case "(($ac_try" in
5321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5322 *) ac_try_echo=$ac_try;;
5323 esac
5324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5325 printf "%s\n" "$ac_try_echo"; } >&5
5326 (eval "$ac_try") 2>&5
5327 ac_status=$?
5328 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5329 test $ac_status = 0; }; }; then
5330 cross_compiling=no
5331 else
5332 if test "$cross_compiling" = maybe; then
5333 cross_compiling=yes
5334 else
5335 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5336 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5337 as_fn_error 77 "cannot run C compiled programs.
5338 If you meant to cross compile, use \`--host'.
5339 See \`config.log' for more details" "$LINENO" 5; }
5340 fi
5341 fi
5342 fi
5343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5344 printf "%s\n" "$cross_compiling" >&6; }
5345
5346 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5347 ac_clean_files=$ac_clean_files_save
5348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5349 printf %s "checking for suffix of object files... " >&6; }
5350 if test ${ac_cv_objext+y}
5351 then :
5352 printf %s "(cached) " >&6
5353 else $as_nop
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h. */
5356
5357 int
5358 main (void)
5359 {
5360
5361 ;
5362 return 0;
5363 }
5364 _ACEOF
5365 rm -f conftest.o conftest.obj
5366 if { { ac_try="$ac_compile"
5367 case "(($ac_try" in
5368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369 *) ac_try_echo=$ac_try;;
5370 esac
5371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5372 printf "%s\n" "$ac_try_echo"; } >&5
5373 (eval "$ac_compile") 2>&5
5374 ac_status=$?
5375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5376 test $ac_status = 0; }
5377 then :
5378 for ac_file in conftest.o conftest.obj conftest.*; do
5379 test -f "$ac_file" || continue;
5380 case $ac_file in
5381 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5382 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5383 break;;
5384 esac
5385 done
5386 else $as_nop
5387 printf "%s\n" "$as_me: failed program was:" >&5
5388 sed 's/^/| /' conftest.$ac_ext >&5
5389
5390 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5391 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5392 as_fn_error $? "cannot compute suffix of object files: cannot compile
5393 See \`config.log' for more details" "$LINENO" 5; }
5394 fi
5395 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5396 fi
5397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5398 printf "%s\n" "$ac_cv_objext" >&6; }
5399 OBJEXT=$ac_cv_objext
5400 ac_objext=$OBJEXT
5401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5402 printf %s "checking whether the compiler supports GNU C... " >&6; }
5403 if test ${ac_cv_c_compiler_gnu+y}
5404 then :
5405 printf %s "(cached) " >&6
5406 else $as_nop
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5409
5410 int
5411 main (void)
5412 {
5413 #ifndef __GNUC__
5414 choke me
5415 #endif
5416
5417 ;
5418 return 0;
5419 }
5420 _ACEOF
5421 if ac_fn_c_try_compile "$LINENO"
5422 then :
5423 ac_compiler_gnu=yes
5424 else $as_nop
5425 ac_compiler_gnu=no
5426 fi
5427 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5428 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5429
5430 fi
5431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5432 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5433 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5434
5435 if test $ac_compiler_gnu = yes; then
5436 GCC=yes
5437 else
5438 GCC=
5439 fi
5440 ac_test_CFLAGS=${CFLAGS+y}
5441 ac_save_CFLAGS=$CFLAGS
5442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5443 printf %s "checking whether $CC accepts -g... " >&6; }
5444 if test ${ac_cv_prog_cc_g+y}
5445 then :
5446 printf %s "(cached) " >&6
5447 else $as_nop
5448 ac_save_c_werror_flag=$ac_c_werror_flag
5449 ac_c_werror_flag=yes
5450 ac_cv_prog_cc_g=no
5451 CFLAGS="-g"
5452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453 /* end confdefs.h. */
5454
5455 int
5456 main (void)
5457 {
5458
5459 ;
5460 return 0;
5461 }
5462 _ACEOF
5463 if ac_fn_c_try_compile "$LINENO"
5464 then :
5465 ac_cv_prog_cc_g=yes
5466 else $as_nop
5467 CFLAGS=""
5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5469 /* end confdefs.h. */
5470
5471 int
5472 main (void)
5473 {
5474
5475 ;
5476 return 0;
5477 }
5478 _ACEOF
5479 if ac_fn_c_try_compile "$LINENO"
5480 then :
5481
5482 else $as_nop
5483 ac_c_werror_flag=$ac_save_c_werror_flag
5484 CFLAGS="-g"
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486 /* end confdefs.h. */
5487
5488 int
5489 main (void)
5490 {
5491
5492 ;
5493 return 0;
5494 }
5495 _ACEOF
5496 if ac_fn_c_try_compile "$LINENO"
5497 then :
5498 ac_cv_prog_cc_g=yes
5499 fi
5500 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5501 fi
5502 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5503 fi
5504 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5505 ac_c_werror_flag=$ac_save_c_werror_flag
5506 fi
5507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5508 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5509 if test $ac_test_CFLAGS; then
5510 CFLAGS=$ac_save_CFLAGS
5511 elif test $ac_cv_prog_cc_g = yes; then
5512 if test "$GCC" = yes; then
5513 CFLAGS="-g -O2"
5514 else
5515 CFLAGS="-g"
5516 fi
5517 else
5518 if test "$GCC" = yes; then
5519 CFLAGS="-O2"
5520 else
5521 CFLAGS=
5522 fi
5523 fi
5524 ac_prog_cc_stdc=no
5525 if test x$ac_prog_cc_stdc = xno
5526 then :
5527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5528 printf %s "checking for $CC option to enable C11 features... " >&6; }
5529 if test ${ac_cv_prog_cc_c11+y}
5530 then :
5531 printf %s "(cached) " >&6
5532 else $as_nop
5533 ac_cv_prog_cc_c11=no
5534 ac_save_CC=$CC
5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536 /* end confdefs.h. */
5537 $ac_c_conftest_c11_program
5538 _ACEOF
5539 for ac_arg in '' -std=gnu11
5540 do
5541 CC="$ac_save_CC $ac_arg"
5542 if ac_fn_c_try_compile "$LINENO"
5543 then :
5544 ac_cv_prog_cc_c11=$ac_arg
5545 fi
5546 rm -f core conftest.err conftest.$ac_objext conftest.beam
5547 test "x$ac_cv_prog_cc_c11" != "xno" && break
5548 done
5549 rm -f conftest.$ac_ext
5550 CC=$ac_save_CC
5551 fi
5552
5553 if test "x$ac_cv_prog_cc_c11" = xno
5554 then :
5555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5556 printf "%s\n" "unsupported" >&6; }
5557 else $as_nop
5558 if test "x$ac_cv_prog_cc_c11" = x
5559 then :
5560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5561 printf "%s\n" "none needed" >&6; }
5562 else $as_nop
5563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5564 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5565 CC="$CC $ac_cv_prog_cc_c11"
5566 fi
5567 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5568 ac_prog_cc_stdc=c11
5569 fi
5570 fi
5571 if test x$ac_prog_cc_stdc = xno
5572 then :
5573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5574 printf %s "checking for $CC option to enable C99 features... " >&6; }
5575 if test ${ac_cv_prog_cc_c99+y}
5576 then :
5577 printf %s "(cached) " >&6
5578 else $as_nop
5579 ac_cv_prog_cc_c99=no
5580 ac_save_CC=$CC
5581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5582 /* end confdefs.h. */
5583 $ac_c_conftest_c99_program
5584 _ACEOF
5585 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5586 do
5587 CC="$ac_save_CC $ac_arg"
5588 if ac_fn_c_try_compile "$LINENO"
5589 then :
5590 ac_cv_prog_cc_c99=$ac_arg
5591 fi
5592 rm -f core conftest.err conftest.$ac_objext conftest.beam
5593 test "x$ac_cv_prog_cc_c99" != "xno" && break
5594 done
5595 rm -f conftest.$ac_ext
5596 CC=$ac_save_CC
5597 fi
5598
5599 if test "x$ac_cv_prog_cc_c99" = xno
5600 then :
5601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5602 printf "%s\n" "unsupported" >&6; }
5603 else $as_nop
5604 if test "x$ac_cv_prog_cc_c99" = x
5605 then :
5606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5607 printf "%s\n" "none needed" >&6; }
5608 else $as_nop
5609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5610 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5611 CC="$CC $ac_cv_prog_cc_c99"
5612 fi
5613 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5614 ac_prog_cc_stdc=c99
5615 fi
5616 fi
5617 if test x$ac_prog_cc_stdc = xno
5618 then :
5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5620 printf %s "checking for $CC option to enable C89 features... " >&6; }
5621 if test ${ac_cv_prog_cc_c89+y}
5622 then :
5623 printf %s "(cached) " >&6
5624 else $as_nop
5625 ac_cv_prog_cc_c89=no
5626 ac_save_CC=$CC
5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5629 $ac_c_conftest_c89_program
5630 _ACEOF
5631 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5632 do
5633 CC="$ac_save_CC $ac_arg"
5634 if ac_fn_c_try_compile "$LINENO"
5635 then :
5636 ac_cv_prog_cc_c89=$ac_arg
5637 fi
5638 rm -f core conftest.err conftest.$ac_objext conftest.beam
5639 test "x$ac_cv_prog_cc_c89" != "xno" && break
5640 done
5641 rm -f conftest.$ac_ext
5642 CC=$ac_save_CC
5643 fi
5644
5645 if test "x$ac_cv_prog_cc_c89" = xno
5646 then :
5647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5648 printf "%s\n" "unsupported" >&6; }
5649 else $as_nop
5650 if test "x$ac_cv_prog_cc_c89" = x
5651 then :
5652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5653 printf "%s\n" "none needed" >&6; }
5654 else $as_nop
5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5656 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5657 CC="$CC $ac_cv_prog_cc_c89"
5658 fi
5659 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5660 ac_prog_cc_stdc=c89
5661 fi
5662 fi
5663
5664 ac_ext=c
5665 ac_cpp='$CPP $CPPFLAGS'
5666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5669
5670
5671 ac_ext=c
5672 ac_cpp='$CPP $CPPFLAGS'
5673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5677 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5678 if test ${am_cv_prog_cc_c_o+y}
5679 then :
5680 printf %s "(cached) " >&6
5681 else $as_nop
5682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683 /* end confdefs.h. */
5684
5685 int
5686 main (void)
5687 {
5688
5689 ;
5690 return 0;
5691 }
5692 _ACEOF
5693 # Make sure it works both with $CC and with simple cc.
5694 # Following AC_PROG_CC_C_O, we do the test twice because some
5695 # compilers refuse to overwrite an existing .o file with -o,
5696 # though they will create one.
5697 am_cv_prog_cc_c_o=yes
5698 for am_i in 1 2; do
5699 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5700 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5701 ac_status=$?
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); } \
5704 && test -f conftest2.$ac_objext; then
5705 : OK
5706 else
5707 am_cv_prog_cc_c_o=no
5708 break
5709 fi
5710 done
5711 rm -f core conftest*
5712 unset am_i
5713 fi
5714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5715 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5716 if test "$am_cv_prog_cc_c_o" != yes; then
5717 # Losing compiler, so override with the script.
5718 # FIXME: It is wrong to rewrite CC.
5719 # But if we don't then we get into trouble of one sort or another.
5720 # A longer-term fix would be to have automake use am__CC in this case,
5721 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5722 CC="$am_aux_dir/compile $CC"
5723 fi
5724 ac_ext=c
5725 ac_cpp='$CPP $CPPFLAGS'
5726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5729
5730
5731
5732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
5733 printf %s "checking whether the compiler is clang... " >&6; }
5734 if test ${gl_cv_compiler_clang+y}
5735 then :
5736 printf %s "(cached) " >&6
5737 else $as_nop
5738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739 /* end confdefs.h. */
5740
5741 #ifdef __clang__
5742 barfbarf
5743 #endif
5744
5745 int
5746 main (void)
5747 {
5748
5749 ;
5750 return 0;
5751 }
5752
5753 _ACEOF
5754 if ac_fn_c_try_compile "$LINENO"
5755 then :
5756 gl_cv_compiler_clang=no
5757 else $as_nop
5758 gl_cv_compiler_clang=yes
5759 fi
5760 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5761
5762 fi
5763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
5764 printf "%s\n" "$gl_cv_compiler_clang" >&6; }
5765
5766
5767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
5768 printf %s "checking for compiler option needed when checking for declarations... " >&6; }
5769 if test ${gl_cv_compiler_check_decl_option+y}
5770 then :
5771 printf %s "(cached) " >&6
5772 else $as_nop
5773 if test $gl_cv_compiler_clang = yes; then
5774 save_ac_compile="$ac_compile"
5775 ac_compile="$ac_compile -Werror=implicit-function-declaration"
5776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5777 /* end confdefs.h. */
5778
5779 int
5780 main (void)
5781 {
5782
5783 ;
5784 return 0;
5785 }
5786 _ACEOF
5787 if ac_fn_c_try_compile "$LINENO"
5788 then :
5789 gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
5790 else $as_nop
5791 gl_cv_compiler_check_decl_option=none
5792 fi
5793 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5794 ac_compile="$save_ac_compile"
5795 else
5796 gl_cv_compiler_check_decl_option=none
5797 fi
5798
5799 fi
5800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
5801 printf "%s\n" "$gl_cv_compiler_check_decl_option" >&6; }
5802 if test "x$gl_cv_compiler_check_decl_option" != xnone; then
5803 ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
5804 else
5805 ac_compile_for_check_decl="$ac_compile"
5806 fi
5807
5808
5809 depcc="$CC" am_compiler_list=
5810
5811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5812 printf %s "checking dependency style of $depcc... " >&6; }
5813 if test ${am_cv_CC_dependencies_compiler_type+y}
5814 then :
5815 printf %s "(cached) " >&6
5816 else $as_nop
5817 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5818 # We make a subdir and do the tests there. Otherwise we can end up
5819 # making bogus files that we don't know about and never remove. For
5820 # instance it was reported that on HP-UX the gcc test will end up
5821 # making a dummy file named 'D' -- because '-MD' means "put the output
5822 # in D".
5823 rm -rf conftest.dir
5824 mkdir conftest.dir
5825 # Copy depcomp to subdir because otherwise we won't find it if we're
5826 # using a relative directory.
5827 cp "$am_depcomp" conftest.dir
5828 cd conftest.dir
5829 # We will build objects and dependencies in a subdirectory because
5830 # it helps to detect inapplicable dependency modes. For instance
5831 # both Tru64's cc and ICC support -MD to output dependencies as a
5832 # side effect of compilation, but ICC will put the dependencies in
5833 # the current directory while Tru64 will put them in the object
5834 # directory.
5835 mkdir sub
5836
5837 am_cv_CC_dependencies_compiler_type=none
5838 if test "$am_compiler_list" = ""; then
5839 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5840 fi
5841 am__universal=false
5842 case " $depcc " in #(
5843 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5844 esac
5845
5846 for depmode in $am_compiler_list; do
5847 # Setup a source with many dependencies, because some compilers
5848 # like to wrap large dependency lists on column 80 (with \), and
5849 # we should not choose a depcomp mode which is confused by this.
5850 #
5851 # We need to recreate these files for each test, as the compiler may
5852 # overwrite some of them when testing with obscure command lines.
5853 # This happens at least with the AIX C compiler.
5854 : > sub/conftest.c
5855 for i in 1 2 3 4 5 6; do
5856 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5857 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5858 # Solaris 10 /bin/sh.
5859 echo '/* dummy */' > sub/conftst$i.h
5860 done
5861 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5862
5863 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5864 # mode. It turns out that the SunPro C++ compiler does not properly
5865 # handle '-M -o', and we need to detect this. Also, some Intel
5866 # versions had trouble with output in subdirs.
5867 am__obj=sub/conftest.${OBJEXT-o}
5868 am__minus_obj="-o $am__obj"
5869 case $depmode in
5870 gcc)
5871 # This depmode causes a compiler race in universal mode.
5872 test "$am__universal" = false || continue
5873 ;;
5874 nosideeffect)
5875 # After this tag, mechanisms are not by side-effect, so they'll
5876 # only be used when explicitly requested.
5877 if test "x$enable_dependency_tracking" = xyes; then
5878 continue
5879 else
5880 break
5881 fi
5882 ;;
5883 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5884 # This compiler won't grok '-c -o', but also, the minuso test has
5885 # not run yet. These depmodes are late enough in the game, and
5886 # so weak that their functioning should not be impacted.
5887 am__obj=conftest.${OBJEXT-o}
5888 am__minus_obj=
5889 ;;
5890 none) break ;;
5891 esac
5892 if depmode=$depmode \
5893 source=sub/conftest.c object=$am__obj \
5894 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5895 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5896 >/dev/null 2>conftest.err &&
5897 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5898 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5899 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5900 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5901 # icc doesn't choke on unknown options, it will just issue warnings
5902 # or remarks (even with -Werror). So we grep stderr for any message
5903 # that says an option was ignored or not supported.
5904 # When given -MP, icc 7.0 and 7.1 complain thusly:
5905 # icc: Command line warning: ignoring option '-M'; no argument required
5906 # The diagnosis changed in icc 8.0:
5907 # icc: Command line remark: option '-MP' not supported
5908 if (grep 'ignoring option' conftest.err ||
5909 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5910 am_cv_CC_dependencies_compiler_type=$depmode
5911 break
5912 fi
5913 fi
5914 done
5915
5916 cd ..
5917 rm -rf conftest.dir
5918 else
5919 am_cv_CC_dependencies_compiler_type=none
5920 fi
5921
5922 fi
5923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5924 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5925 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5926
5927 if
5928 test "x$enable_dependency_tracking" != xno \
5929 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5930 am__fastdepCC_TRUE=
5931 am__fastdepCC_FALSE='#'
5932 else
5933 am__fastdepCC_TRUE='#'
5934 am__fastdepCC_FALSE=
5935 fi
5936
5937
5938
5939 ac_header= ac_cache=
5940 for ac_item in $ac_header_c_list
5941 do
5942 if test $ac_cache; then
5943 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5944 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5945 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5946 fi
5947 ac_header= ac_cache=
5948 elif test $ac_header; then
5949 ac_cache=$ac_item
5950 else
5951 ac_header=$ac_item
5952 fi
5953 done
5954
5955
5956
5957
5958
5959
5960
5961
5962 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5963 then :
5964
5965 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5966
5967 fi
5968
5969
5970
5971
5972
5973
5974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5975 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5976 if test ${ac_cv_safe_to_define___extensions__+y}
5977 then :
5978 printf %s "(cached) " >&6
5979 else $as_nop
5980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5981 /* end confdefs.h. */
5982
5983 # define __EXTENSIONS__ 1
5984 $ac_includes_default
5985 int
5986 main (void)
5987 {
5988
5989 ;
5990 return 0;
5991 }
5992 _ACEOF
5993 if ac_fn_c_try_compile "$LINENO"
5994 then :
5995 ac_cv_safe_to_define___extensions__=yes
5996 else $as_nop
5997 ac_cv_safe_to_define___extensions__=no
5998 fi
5999 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6000 fi
6001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6002 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
6003
6004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6005 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6006 if test ${ac_cv_should_define__xopen_source+y}
6007 then :
6008 printf %s "(cached) " >&6
6009 else $as_nop
6010 ac_cv_should_define__xopen_source=no
6011 if test $ac_cv_header_wchar_h = yes
6012 then :
6013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014 /* end confdefs.h. */
6015
6016 #include <wchar.h>
6017 mbstate_t x;
6018 int
6019 main (void)
6020 {
6021
6022 ;
6023 return 0;
6024 }
6025 _ACEOF
6026 if ac_fn_c_try_compile "$LINENO"
6027 then :
6028
6029 else $as_nop
6030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031 /* end confdefs.h. */
6032
6033 #define _XOPEN_SOURCE 500
6034 #include <wchar.h>
6035 mbstate_t x;
6036 int
6037 main (void)
6038 {
6039
6040 ;
6041 return 0;
6042 }
6043 _ACEOF
6044 if ac_fn_c_try_compile "$LINENO"
6045 then :
6046 ac_cv_should_define__xopen_source=yes
6047 fi
6048 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6049 fi
6050 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6051 fi
6052 fi
6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6054 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
6055
6056 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
6057
6058 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6059
6060 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
6061
6062 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
6063
6064 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
6065
6066 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
6067
6068 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6069
6070 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
6071
6072 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
6073
6074 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
6075
6076 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
6077
6078 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
6079
6080 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
6081
6082 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
6083
6084 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
6085
6086 if test $ac_cv_header_minix_config_h = yes
6087 then :
6088 MINIX=yes
6089 printf "%s\n" "#define _MINIX 1" >>confdefs.h
6090
6091 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
6092
6093 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
6094
6095 else $as_nop
6096 MINIX=
6097 fi
6098 if test $ac_cv_safe_to_define___extensions__ = yes
6099 then :
6100 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
6101
6102 fi
6103 if test $ac_cv_should_define__xopen_source = yes
6104 then :
6105 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
6106
6107 fi
6108
6109
6110
6111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if tar --sort=name works" >&5
6112 printf %s "checking if tar --sort=name works... " >&6; }
6113 rm -rf conftest.dir
6114 mkdir conftest.dir
6115 echo GrepMe > conftest.dir/file
6116 { echo "$as_me:$LINENO: ${TAR-tar} chof - conftest.dir --sort=name >conftest.tar" >&5
6117 (${TAR-tar} chof - conftest.dir --sort=name >conftest.tar) >&5 2>&5
6118 ac_status=$?
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }
6121 if test -s conftest.tar; then
6122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6123 printf "%s\n" "yes" >&6; }
6124 am__tar="$am__tar --sort=name"
6125 else
6126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6127 printf "%s\n" "no" >&6; }
6128 fi
6129 rm -rf conftest.dir
6130
6131
6132 ac_config_headers="$ac_config_headers config.h"
6133
6134
6135
6136 # Make sure we can run config.sub.
6137 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6138 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6139
6140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6141 printf %s "checking build system type... " >&6; }
6142 if test ${ac_cv_build+y}
6143 then :
6144 printf %s "(cached) " >&6
6145 else $as_nop
6146 ac_build_alias=$build_alias
6147 test "x$ac_build_alias" = x &&
6148 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6149 test "x$ac_build_alias" = x &&
6150 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6151 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6152 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6153
6154 fi
6155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6156 printf "%s\n" "$ac_cv_build" >&6; }
6157 case $ac_cv_build in
6158 *-*-*) ;;
6159 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6160 esac
6161 build=$ac_cv_build
6162 ac_save_IFS=$IFS; IFS='-'
6163 set x $ac_cv_build
6164 shift
6165 build_cpu=$1
6166 build_vendor=$2
6167 shift; shift
6168 # Remember, the first character of IFS is used to create $*,
6169 # except with old shells:
6170 build_os=$*
6171 IFS=$ac_save_IFS
6172 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6173
6174
6175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6176 printf %s "checking host system type... " >&6; }
6177 if test ${ac_cv_host+y}
6178 then :
6179 printf %s "(cached) " >&6
6180 else $as_nop
6181 if test "x$host_alias" = x; then
6182 ac_cv_host=$ac_cv_build
6183 else
6184 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6185 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6186 fi
6187
6188 fi
6189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6190 printf "%s\n" "$ac_cv_host" >&6; }
6191 case $ac_cv_host in
6192 *-*-*) ;;
6193 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6194 esac
6195 host=$ac_cv_host
6196 ac_save_IFS=$IFS; IFS='-'
6197 set x $ac_cv_host
6198 shift
6199 host_cpu=$1
6200 host_vendor=$2
6201 shift; shift
6202 # Remember, the first character of IFS is used to create $*,
6203 # except with old shells:
6204 host_os=$*
6205 IFS=$ac_save_IFS
6206 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6207
6208
6209
6210 # Check $PATH for the following programs and append suitable options.
6211 ac_ext=c
6212 ac_cpp='$CPP $CPPFLAGS'
6213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6216 if test -n "$ac_tool_prefix"; then
6217 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6218 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6220 printf %s "checking for $ac_word... " >&6; }
6221 if test ${ac_cv_prog_CC+y}
6222 then :
6223 printf %s "(cached) " >&6
6224 else $as_nop
6225 if test -n "$CC"; then
6226 ac_cv_prog_CC="$CC" # Let the user override the test.
6227 else
6228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229 for as_dir in $PATH
6230 do
6231 IFS=$as_save_IFS
6232 case $as_dir in #(((
6233 '') as_dir=./ ;;
6234 */) ;;
6235 *) as_dir=$as_dir/ ;;
6236 esac
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6239 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6241 break 2
6242 fi
6243 done
6244 done
6245 IFS=$as_save_IFS
6246
6247 fi
6248 fi
6249 CC=$ac_cv_prog_CC
6250 if test -n "$CC"; then
6251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6252 printf "%s\n" "$CC" >&6; }
6253 else
6254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255 printf "%s\n" "no" >&6; }
6256 fi
6257
6258
6259 fi
6260 if test -z "$ac_cv_prog_CC"; then
6261 ac_ct_CC=$CC
6262 # Extract the first word of "gcc", so it can be a program name with args.
6263 set dummy gcc; ac_word=$2
6264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6265 printf %s "checking for $ac_word... " >&6; }
6266 if test ${ac_cv_prog_ac_ct_CC+y}
6267 then :
6268 printf %s "(cached) " >&6
6269 else $as_nop
6270 if test -n "$ac_ct_CC"; then
6271 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6272 else
6273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274 for as_dir in $PATH
6275 do
6276 IFS=$as_save_IFS
6277 case $as_dir in #(((
6278 '') as_dir=./ ;;
6279 */) ;;
6280 *) as_dir=$as_dir/ ;;
6281 esac
6282 for ac_exec_ext in '' $ac_executable_extensions; do
6283 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6284 ac_cv_prog_ac_ct_CC="gcc"
6285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6286 break 2
6287 fi
6288 done
6289 done
6290 IFS=$as_save_IFS
6291
6292 fi
6293 fi
6294 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6295 if test -n "$ac_ct_CC"; then
6296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6297 printf "%s\n" "$ac_ct_CC" >&6; }
6298 else
6299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300 printf "%s\n" "no" >&6; }
6301 fi
6302
6303 if test "x$ac_ct_CC" = x; then
6304 CC=""
6305 else
6306 case $cross_compiling:$ac_tool_warned in
6307 yes:)
6308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6309 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6310 ac_tool_warned=yes ;;
6311 esac
6312 CC=$ac_ct_CC
6313 fi
6314 else
6315 CC="$ac_cv_prog_CC"
6316 fi
6317
6318 if test -z "$CC"; then
6319 if test -n "$ac_tool_prefix"; then
6320 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6321 set dummy ${ac_tool_prefix}cc; ac_word=$2
6322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6323 printf %s "checking for $ac_word... " >&6; }
6324 if test ${ac_cv_prog_CC+y}
6325 then :
6326 printf %s "(cached) " >&6
6327 else $as_nop
6328 if test -n "$CC"; then
6329 ac_cv_prog_CC="$CC" # Let the user override the test.
6330 else
6331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332 for as_dir in $PATH
6333 do
6334 IFS=$as_save_IFS
6335 case $as_dir in #(((
6336 '') as_dir=./ ;;
6337 */) ;;
6338 *) as_dir=$as_dir/ ;;
6339 esac
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6342 ac_cv_prog_CC="${ac_tool_prefix}cc"
6343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6344 break 2
6345 fi
6346 done
6347 done
6348 IFS=$as_save_IFS
6349
6350 fi
6351 fi
6352 CC=$ac_cv_prog_CC
6353 if test -n "$CC"; then
6354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6355 printf "%s\n" "$CC" >&6; }
6356 else
6357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6358 printf "%s\n" "no" >&6; }
6359 fi
6360
6361
6362 fi
6363 fi
6364 if test -z "$CC"; then
6365 # Extract the first word of "cc", so it can be a program name with args.
6366 set dummy cc; ac_word=$2
6367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6368 printf %s "checking for $ac_word... " >&6; }
6369 if test ${ac_cv_prog_CC+y}
6370 then :
6371 printf %s "(cached) " >&6
6372 else $as_nop
6373 if test -n "$CC"; then
6374 ac_cv_prog_CC="$CC" # Let the user override the test.
6375 else
6376 ac_prog_rejected=no
6377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378 for as_dir in $PATH
6379 do
6380 IFS=$as_save_IFS
6381 case $as_dir in #(((
6382 '') as_dir=./ ;;
6383 */) ;;
6384 *) as_dir=$as_dir/ ;;
6385 esac
6386 for ac_exec_ext in '' $ac_executable_extensions; do
6387 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6388 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6389 ac_prog_rejected=yes
6390 continue
6391 fi
6392 ac_cv_prog_CC="cc"
6393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6394 break 2
6395 fi
6396 done
6397 done
6398 IFS=$as_save_IFS
6399
6400 if test $ac_prog_rejected = yes; then
6401 # We found a bogon in the path, so make sure we never use it.
6402 set dummy $ac_cv_prog_CC
6403 shift
6404 if test $# != 0; then
6405 # We chose a different compiler from the bogus one.
6406 # However, it has the same basename, so the bogon will be chosen
6407 # first if we set CC to just the basename; use the full file name.
6408 shift
6409 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
6410 fi
6411 fi
6412 fi
6413 fi
6414 CC=$ac_cv_prog_CC
6415 if test -n "$CC"; then
6416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6417 printf "%s\n" "$CC" >&6; }
6418 else
6419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6420 printf "%s\n" "no" >&6; }
6421 fi
6422
6423
6424 fi
6425 if test -z "$CC"; then
6426 if test -n "$ac_tool_prefix"; then
6427 for ac_prog in cl.exe
6428 do
6429 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6430 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6432 printf %s "checking for $ac_word... " >&6; }
6433 if test ${ac_cv_prog_CC+y}
6434 then :
6435 printf %s "(cached) " >&6
6436 else $as_nop
6437 if test -n "$CC"; then
6438 ac_cv_prog_CC="$CC" # Let the user override the test.
6439 else
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 for as_dir in $PATH
6442 do
6443 IFS=$as_save_IFS
6444 case $as_dir in #(((
6445 '') as_dir=./ ;;
6446 */) ;;
6447 *) as_dir=$as_dir/ ;;
6448 esac
6449 for ac_exec_ext in '' $ac_executable_extensions; do
6450 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6451 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6452 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6453 break 2
6454 fi
6455 done
6456 done
6457 IFS=$as_save_IFS
6458
6459 fi
6460 fi
6461 CC=$ac_cv_prog_CC
6462 if test -n "$CC"; then
6463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6464 printf "%s\n" "$CC" >&6; }
6465 else
6466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6467 printf "%s\n" "no" >&6; }
6468 fi
6469
6470
6471 test -n "$CC" && break
6472 done
6473 fi
6474 if test -z "$CC"; then
6475 ac_ct_CC=$CC
6476 for ac_prog in cl.exe
6477 do
6478 # Extract the first word of "$ac_prog", so it can be a program name with args.
6479 set dummy $ac_prog; ac_word=$2
6480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481 printf %s "checking for $ac_word... " >&6; }
6482 if test ${ac_cv_prog_ac_ct_CC+y}
6483 then :
6484 printf %s "(cached) " >&6
6485 else $as_nop
6486 if test -n "$ac_ct_CC"; then
6487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6488 else
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 for as_dir in $PATH
6491 do
6492 IFS=$as_save_IFS
6493 case $as_dir in #(((
6494 '') as_dir=./ ;;
6495 */) ;;
6496 *) as_dir=$as_dir/ ;;
6497 esac
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6500 ac_cv_prog_ac_ct_CC="$ac_prog"
6501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6502 break 2
6503 fi
6504 done
6505 done
6506 IFS=$as_save_IFS
6507
6508 fi
6509 fi
6510 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6511 if test -n "$ac_ct_CC"; then
6512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6513 printf "%s\n" "$ac_ct_CC" >&6; }
6514 else
6515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516 printf "%s\n" "no" >&6; }
6517 fi
6518
6519
6520 test -n "$ac_ct_CC" && break
6521 done
6522
6523 if test "x$ac_ct_CC" = x; then
6524 CC=""
6525 else
6526 case $cross_compiling:$ac_tool_warned in
6527 yes:)
6528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6529 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6530 ac_tool_warned=yes ;;
6531 esac
6532 CC=$ac_ct_CC
6533 fi
6534 fi
6535
6536 fi
6537 if test -z "$CC"; then
6538 if test -n "$ac_tool_prefix"; then
6539 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
6540 set dummy ${ac_tool_prefix}clang; ac_word=$2
6541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542 printf %s "checking for $ac_word... " >&6; }
6543 if test ${ac_cv_prog_CC+y}
6544 then :
6545 printf %s "(cached) " >&6
6546 else $as_nop
6547 if test -n "$CC"; then
6548 ac_cv_prog_CC="$CC" # Let the user override the test.
6549 else
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 for as_dir in $PATH
6552 do
6553 IFS=$as_save_IFS
6554 case $as_dir in #(((
6555 '') as_dir=./ ;;
6556 */) ;;
6557 *) as_dir=$as_dir/ ;;
6558 esac
6559 for ac_exec_ext in '' $ac_executable_extensions; do
6560 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6561 ac_cv_prog_CC="${ac_tool_prefix}clang"
6562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6563 break 2
6564 fi
6565 done
6566 done
6567 IFS=$as_save_IFS
6568
6569 fi
6570 fi
6571 CC=$ac_cv_prog_CC
6572 if test -n "$CC"; then
6573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6574 printf "%s\n" "$CC" >&6; }
6575 else
6576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6577 printf "%s\n" "no" >&6; }
6578 fi
6579
6580
6581 fi
6582 if test -z "$ac_cv_prog_CC"; then
6583 ac_ct_CC=$CC
6584 # Extract the first word of "clang", so it can be a program name with args.
6585 set dummy clang; ac_word=$2
6586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6587 printf %s "checking for $ac_word... " >&6; }
6588 if test ${ac_cv_prog_ac_ct_CC+y}
6589 then :
6590 printf %s "(cached) " >&6
6591 else $as_nop
6592 if test -n "$ac_ct_CC"; then
6593 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6594 else
6595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596 for as_dir in $PATH
6597 do
6598 IFS=$as_save_IFS
6599 case $as_dir in #(((
6600 '') as_dir=./ ;;
6601 */) ;;
6602 *) as_dir=$as_dir/ ;;
6603 esac
6604 for ac_exec_ext in '' $ac_executable_extensions; do
6605 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6606 ac_cv_prog_ac_ct_CC="clang"
6607 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6608 break 2
6609 fi
6610 done
6611 done
6612 IFS=$as_save_IFS
6613
6614 fi
6615 fi
6616 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6617 if test -n "$ac_ct_CC"; then
6618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6619 printf "%s\n" "$ac_ct_CC" >&6; }
6620 else
6621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6622 printf "%s\n" "no" >&6; }
6623 fi
6624
6625 if test "x$ac_ct_CC" = x; then
6626 CC=""
6627 else
6628 case $cross_compiling:$ac_tool_warned in
6629 yes:)
6630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6631 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6632 ac_tool_warned=yes ;;
6633 esac
6634 CC=$ac_ct_CC
6635 fi
6636 else
6637 CC="$ac_cv_prog_CC"
6638 fi
6639
6640 fi
6641
6642
6643 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6644 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6645 as_fn_error $? "no acceptable C compiler found in \$PATH
6646 See \`config.log' for more details" "$LINENO" 5; }
6647
6648 # Provide some information about the compiler.
6649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6650 set X $ac_compile
6651 ac_compiler=$2
6652 for ac_option in --version -v -V -qversion -version; do
6653 { { ac_try="$ac_compiler $ac_option >&5"
6654 case "(($ac_try" in
6655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6656 *) ac_try_echo=$ac_try;;
6657 esac
6658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6659 printf "%s\n" "$ac_try_echo"; } >&5
6660 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6661 ac_status=$?
6662 if test -s conftest.err; then
6663 sed '10a\
6664 ... rest of stderr output deleted ...
6665 10q' conftest.err >conftest.er1
6666 cat conftest.er1 >&5
6667 fi
6668 rm -f conftest.er1 conftest.err
6669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6670 test $ac_status = 0; }
6671 done
6672
6673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
6674 printf %s "checking whether the compiler supports GNU C... " >&6; }
6675 if test ${ac_cv_c_compiler_gnu+y}
6676 then :
6677 printf %s "(cached) " >&6
6678 else $as_nop
6679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6680 /* end confdefs.h. */
6681
6682 int
6683 main (void)
6684 {
6685 #ifndef __GNUC__
6686 choke me
6687 #endif
6688
6689 ;
6690 return 0;
6691 }
6692 _ACEOF
6693 if ac_fn_c_try_compile "$LINENO"
6694 then :
6695 ac_compiler_gnu=yes
6696 else $as_nop
6697 ac_compiler_gnu=no
6698 fi
6699 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6700 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6701
6702 fi
6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6704 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
6705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6706
6707 if test $ac_compiler_gnu = yes; then
6708 GCC=yes
6709 else
6710 GCC=
6711 fi
6712 ac_test_CFLAGS=${CFLAGS+y}
6713 ac_save_CFLAGS=$CFLAGS
6714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6715 printf %s "checking whether $CC accepts -g... " >&6; }
6716 if test ${ac_cv_prog_cc_g+y}
6717 then :
6718 printf %s "(cached) " >&6
6719 else $as_nop
6720 ac_save_c_werror_flag=$ac_c_werror_flag
6721 ac_c_werror_flag=yes
6722 ac_cv_prog_cc_g=no
6723 CFLAGS="-g"
6724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6725 /* end confdefs.h. */
6726
6727 int
6728 main (void)
6729 {
6730
6731 ;
6732 return 0;
6733 }
6734 _ACEOF
6735 if ac_fn_c_try_compile "$LINENO"
6736 then :
6737 ac_cv_prog_cc_g=yes
6738 else $as_nop
6739 CFLAGS=""
6740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741 /* end confdefs.h. */
6742
6743 int
6744 main (void)
6745 {
6746
6747 ;
6748 return 0;
6749 }
6750 _ACEOF
6751 if ac_fn_c_try_compile "$LINENO"
6752 then :
6753
6754 else $as_nop
6755 ac_c_werror_flag=$ac_save_c_werror_flag
6756 CFLAGS="-g"
6757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758 /* end confdefs.h. */
6759
6760 int
6761 main (void)
6762 {
6763
6764 ;
6765 return 0;
6766 }
6767 _ACEOF
6768 if ac_fn_c_try_compile "$LINENO"
6769 then :
6770 ac_cv_prog_cc_g=yes
6771 fi
6772 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6773 fi
6774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6775 fi
6776 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6777 ac_c_werror_flag=$ac_save_c_werror_flag
6778 fi
6779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6780 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
6781 if test $ac_test_CFLAGS; then
6782 CFLAGS=$ac_save_CFLAGS
6783 elif test $ac_cv_prog_cc_g = yes; then
6784 if test "$GCC" = yes; then
6785 CFLAGS="-g -O2"
6786 else
6787 CFLAGS="-g"
6788 fi
6789 else
6790 if test "$GCC" = yes; then
6791 CFLAGS="-O2"
6792 else
6793 CFLAGS=
6794 fi
6795 fi
6796 ac_prog_cc_stdc=no
6797 if test x$ac_prog_cc_stdc = xno
6798 then :
6799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
6800 printf %s "checking for $CC option to enable C11 features... " >&6; }
6801 if test ${ac_cv_prog_cc_c11+y}
6802 then :
6803 printf %s "(cached) " >&6
6804 else $as_nop
6805 ac_cv_prog_cc_c11=no
6806 ac_save_CC=$CC
6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808 /* end confdefs.h. */
6809 $ac_c_conftest_c11_program
6810 _ACEOF
6811 for ac_arg in '' -std=gnu11
6812 do
6813 CC="$ac_save_CC $ac_arg"
6814 if ac_fn_c_try_compile "$LINENO"
6815 then :
6816 ac_cv_prog_cc_c11=$ac_arg
6817 fi
6818 rm -f core conftest.err conftest.$ac_objext conftest.beam
6819 test "x$ac_cv_prog_cc_c11" != "xno" && break
6820 done
6821 rm -f conftest.$ac_ext
6822 CC=$ac_save_CC
6823 fi
6824
6825 if test "x$ac_cv_prog_cc_c11" = xno
6826 then :
6827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6828 printf "%s\n" "unsupported" >&6; }
6829 else $as_nop
6830 if test "x$ac_cv_prog_cc_c11" = x
6831 then :
6832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6833 printf "%s\n" "none needed" >&6; }
6834 else $as_nop
6835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
6836 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
6837 CC="$CC $ac_cv_prog_cc_c11"
6838 fi
6839 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
6840 ac_prog_cc_stdc=c11
6841 fi
6842 fi
6843 if test x$ac_prog_cc_stdc = xno
6844 then :
6845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
6846 printf %s "checking for $CC option to enable C99 features... " >&6; }
6847 if test ${ac_cv_prog_cc_c99+y}
6848 then :
6849 printf %s "(cached) " >&6
6850 else $as_nop
6851 ac_cv_prog_cc_c99=no
6852 ac_save_CC=$CC
6853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6854 /* end confdefs.h. */
6855 $ac_c_conftest_c99_program
6856 _ACEOF
6857 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
6858 do
6859 CC="$ac_save_CC $ac_arg"
6860 if ac_fn_c_try_compile "$LINENO"
6861 then :
6862 ac_cv_prog_cc_c99=$ac_arg
6863 fi
6864 rm -f core conftest.err conftest.$ac_objext conftest.beam
6865 test "x$ac_cv_prog_cc_c99" != "xno" && break
6866 done
6867 rm -f conftest.$ac_ext
6868 CC=$ac_save_CC
6869 fi
6870
6871 if test "x$ac_cv_prog_cc_c99" = xno
6872 then :
6873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6874 printf "%s\n" "unsupported" >&6; }
6875 else $as_nop
6876 if test "x$ac_cv_prog_cc_c99" = x
6877 then :
6878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6879 printf "%s\n" "none needed" >&6; }
6880 else $as_nop
6881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6882 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
6883 CC="$CC $ac_cv_prog_cc_c99"
6884 fi
6885 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6886 ac_prog_cc_stdc=c99
6887 fi
6888 fi
6889 if test x$ac_prog_cc_stdc = xno
6890 then :
6891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
6892 printf %s "checking for $CC option to enable C89 features... " >&6; }
6893 if test ${ac_cv_prog_cc_c89+y}
6894 then :
6895 printf %s "(cached) " >&6
6896 else $as_nop
6897 ac_cv_prog_cc_c89=no
6898 ac_save_CC=$CC
6899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900 /* end confdefs.h. */
6901 $ac_c_conftest_c89_program
6902 _ACEOF
6903 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6904 do
6905 CC="$ac_save_CC $ac_arg"
6906 if ac_fn_c_try_compile "$LINENO"
6907 then :
6908 ac_cv_prog_cc_c89=$ac_arg
6909 fi
6910 rm -f core conftest.err conftest.$ac_objext conftest.beam
6911 test "x$ac_cv_prog_cc_c89" != "xno" && break
6912 done
6913 rm -f conftest.$ac_ext
6914 CC=$ac_save_CC
6915 fi
6916
6917 if test "x$ac_cv_prog_cc_c89" = xno
6918 then :
6919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6920 printf "%s\n" "unsupported" >&6; }
6921 else $as_nop
6922 if test "x$ac_cv_prog_cc_c89" = x
6923 then :
6924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6925 printf "%s\n" "none needed" >&6; }
6926 else $as_nop
6927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6928 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
6929 CC="$CC $ac_cv_prog_cc_c89"
6930 fi
6931 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6932 ac_prog_cc_stdc=c89
6933 fi
6934 fi
6935
6936 ac_ext=c
6937 ac_cpp='$CPP $CPPFLAGS'
6938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6941
6942
6943 ac_ext=c
6944 ac_cpp='$CPP $CPPFLAGS'
6945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6949 printf %s "checking whether $CC understands -c and -o together... " >&6; }
6950 if test ${am_cv_prog_cc_c_o+y}
6951 then :
6952 printf %s "(cached) " >&6
6953 else $as_nop
6954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955 /* end confdefs.h. */
6956
6957 int
6958 main (void)
6959 {
6960
6961 ;
6962 return 0;
6963 }
6964 _ACEOF
6965 # Make sure it works both with $CC and with simple cc.
6966 # Following AC_PROG_CC_C_O, we do the test twice because some
6967 # compilers refuse to overwrite an existing .o file with -o,
6968 # though they will create one.
6969 am_cv_prog_cc_c_o=yes
6970 for am_i in 1 2; do
6971 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6972 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6973 ac_status=$?
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } \
6976 && test -f conftest2.$ac_objext; then
6977 : OK
6978 else
6979 am_cv_prog_cc_c_o=no
6980 break
6981 fi
6982 done
6983 rm -f core conftest*
6984 unset am_i
6985 fi
6986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6987 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
6988 if test "$am_cv_prog_cc_c_o" != yes; then
6989 # Losing compiler, so override with the script.
6990 # FIXME: It is wrong to rewrite CC.
6991 # But if we don't then we get into trouble of one sort or another.
6992 # A longer-term fix would be to have automake use am__CC in this case,
6993 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6994 CC="$am_aux_dir/compile $CC"
6995 fi
6996 ac_ext=c
6997 ac_cpp='$CPP $CPPFLAGS'
6998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7001
7002
7003
7004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
7005 printf %s "checking whether the compiler is clang... " >&6; }
7006 if test ${gl_cv_compiler_clang+y}
7007 then :
7008 printf %s "(cached) " >&6
7009 else $as_nop
7010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7011 /* end confdefs.h. */
7012
7013 #ifdef __clang__
7014 barfbarf
7015 #endif
7016
7017 int
7018 main (void)
7019 {
7020
7021 ;
7022 return 0;
7023 }
7024
7025 _ACEOF
7026 if ac_fn_c_try_compile "$LINENO"
7027 then :
7028 gl_cv_compiler_clang=no
7029 else $as_nop
7030 gl_cv_compiler_clang=yes
7031 fi
7032 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7033
7034 fi
7035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
7036 printf "%s\n" "$gl_cv_compiler_clang" >&6; }
7037
7038
7039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
7040 printf %s "checking for compiler option needed when checking for declarations... " >&6; }
7041 if test ${gl_cv_compiler_check_decl_option+y}
7042 then :
7043 printf %s "(cached) " >&6
7044 else $as_nop
7045 if test $gl_cv_compiler_clang = yes; then
7046 save_ac_compile="$ac_compile"
7047 ac_compile="$ac_compile -Werror=implicit-function-declaration"
7048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h. */
7050
7051 int
7052 main (void)
7053 {
7054
7055 ;
7056 return 0;
7057 }
7058 _ACEOF
7059 if ac_fn_c_try_compile "$LINENO"
7060 then :
7061 gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
7062 else $as_nop
7063 gl_cv_compiler_check_decl_option=none
7064 fi
7065 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7066 ac_compile="$save_ac_compile"
7067 else
7068 gl_cv_compiler_check_decl_option=none
7069 fi
7070
7071 fi
7072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
7073 printf "%s\n" "$gl_cv_compiler_check_decl_option" >&6; }
7074 if test "x$gl_cv_compiler_check_decl_option" != xnone; then
7075 ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
7076 else
7077 ac_compile_for_check_decl="$ac_compile"
7078 fi
7079
7080
7081 depcc="$CC" am_compiler_list=
7082
7083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7084 printf %s "checking dependency style of $depcc... " >&6; }
7085 if test ${am_cv_CC_dependencies_compiler_type+y}
7086 then :
7087 printf %s "(cached) " >&6
7088 else $as_nop
7089 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7090 # We make a subdir and do the tests there. Otherwise we can end up
7091 # making bogus files that we don't know about and never remove. For
7092 # instance it was reported that on HP-UX the gcc test will end up
7093 # making a dummy file named 'D' -- because '-MD' means "put the output
7094 # in D".
7095 rm -rf conftest.dir
7096 mkdir conftest.dir
7097 # Copy depcomp to subdir because otherwise we won't find it if we're
7098 # using a relative directory.
7099 cp "$am_depcomp" conftest.dir
7100 cd conftest.dir
7101 # We will build objects and dependencies in a subdirectory because
7102 # it helps to detect inapplicable dependency modes. For instance
7103 # both Tru64's cc and ICC support -MD to output dependencies as a
7104 # side effect of compilation, but ICC will put the dependencies in
7105 # the current directory while Tru64 will put them in the object
7106 # directory.
7107 mkdir sub
7108
7109 am_cv_CC_dependencies_compiler_type=none
7110 if test "$am_compiler_list" = ""; then
7111 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7112 fi
7113 am__universal=false
7114 case " $depcc " in #(
7115 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7116 esac
7117
7118 for depmode in $am_compiler_list; do
7119 # Setup a source with many dependencies, because some compilers
7120 # like to wrap large dependency lists on column 80 (with \), and
7121 # we should not choose a depcomp mode which is confused by this.
7122 #
7123 # We need to recreate these files for each test, as the compiler may
7124 # overwrite some of them when testing with obscure command lines.
7125 # This happens at least with the AIX C compiler.
7126 : > sub/conftest.c
7127 for i in 1 2 3 4 5 6; do
7128 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7129 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7130 # Solaris 10 /bin/sh.
7131 echo '/* dummy */' > sub/conftst$i.h
7132 done
7133 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7134
7135 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7136 # mode. It turns out that the SunPro C++ compiler does not properly
7137 # handle '-M -o', and we need to detect this. Also, some Intel
7138 # versions had trouble with output in subdirs.
7139 am__obj=sub/conftest.${OBJEXT-o}
7140 am__minus_obj="-o $am__obj"
7141 case $depmode in
7142 gcc)
7143 # This depmode causes a compiler race in universal mode.
7144 test "$am__universal" = false || continue
7145 ;;
7146 nosideeffect)
7147 # After this tag, mechanisms are not by side-effect, so they'll
7148 # only be used when explicitly requested.
7149 if test "x$enable_dependency_tracking" = xyes; then
7150 continue
7151 else
7152 break
7153 fi
7154 ;;
7155 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7156 # This compiler won't grok '-c -o', but also, the minuso test has
7157 # not run yet. These depmodes are late enough in the game, and
7158 # so weak that their functioning should not be impacted.
7159 am__obj=conftest.${OBJEXT-o}
7160 am__minus_obj=
7161 ;;
7162 none) break ;;
7163 esac
7164 if depmode=$depmode \
7165 source=sub/conftest.c object=$am__obj \
7166 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7167 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7168 >/dev/null 2>conftest.err &&
7169 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7170 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7171 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7172 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7173 # icc doesn't choke on unknown options, it will just issue warnings
7174 # or remarks (even with -Werror). So we grep stderr for any message
7175 # that says an option was ignored or not supported.
7176 # When given -MP, icc 7.0 and 7.1 complain thusly:
7177 # icc: Command line warning: ignoring option '-M'; no argument required
7178 # The diagnosis changed in icc 8.0:
7179 # icc: Command line remark: option '-MP' not supported
7180 if (grep 'ignoring option' conftest.err ||
7181 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7182 am_cv_CC_dependencies_compiler_type=$depmode
7183 break
7184 fi
7185 fi
7186 done
7187
7188 cd ..
7189 rm -rf conftest.dir
7190 else
7191 am_cv_CC_dependencies_compiler_type=none
7192 fi
7193
7194 fi
7195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7196 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
7197 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7198
7199 if
7200 test "x$enable_dependency_tracking" != xno \
7201 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7202 am__fastdepCC_TRUE=
7203 am__fastdepCC_FALSE='#'
7204 else
7205 am__fastdepCC_TRUE='#'
7206 am__fastdepCC_FALSE=
7207 fi
7208
7209
7210
7211
7212
7213
7214 case "$host_os" in
7215 openbsd*)
7216
7217 printf "%s\n" "#define _ISOC11_SOURCE 1" >>confdefs.h
7218
7219 ;;
7220 esac
7221
7222 ac_ext=c
7223 ac_cpp='$CPP $CPPFLAGS'
7224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7228 printf %s "checking how to run the C preprocessor... " >&6; }
7229 # On Suns, sometimes $CPP names a directory.
7230 if test -n "$CPP" && test -d "$CPP"; then
7231 CPP=
7232 fi
7233 if test -z "$CPP"; then
7234 if test ${ac_cv_prog_CPP+y}
7235 then :
7236 printf %s "(cached) " >&6
7237 else $as_nop
7238 # Double quotes because $CC needs to be expanded
7239 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
7240 do
7241 ac_preproc_ok=false
7242 for ac_c_preproc_warn_flag in '' yes
7243 do
7244 # Use a header file that comes with gcc, so configuring glibc
7245 # with a fresh cross-compiler works.
7246 # On the NeXT, cc -E runs the code through the compiler's parser,
7247 # not just through cpp. "Syntax error" is here to catch this case.
7248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7249 /* end confdefs.h. */
7250 #include <limits.h>
7251 Syntax error
7252 _ACEOF
7253 if ac_fn_c_try_cpp "$LINENO"
7254 then :
7255
7256 else $as_nop
7257 # Broken: fails on valid input.
7258 continue
7259 fi
7260 rm -f conftest.err conftest.i conftest.$ac_ext
7261
7262 # OK, works on sane cases. Now check whether nonexistent headers
7263 # can be detected and how.
7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h. */
7266 #include <ac_nonexistent.h>
7267 _ACEOF
7268 if ac_fn_c_try_cpp "$LINENO"
7269 then :
7270 # Broken: success on invalid input.
7271 continue
7272 else $as_nop
7273 # Passes both tests.
7274 ac_preproc_ok=:
7275 break
7276 fi
7277 rm -f conftest.err conftest.i conftest.$ac_ext
7278
7279 done
7280 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7281 rm -f conftest.i conftest.err conftest.$ac_ext
7282 if $ac_preproc_ok
7283 then :
7284 break
7285 fi
7286
7287 done
7288 ac_cv_prog_CPP=$CPP
7289
7290 fi
7291 CPP=$ac_cv_prog_CPP
7292 else
7293 ac_cv_prog_CPP=$CPP
7294 fi
7295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7296 printf "%s\n" "$CPP" >&6; }
7297 ac_preproc_ok=false
7298 for ac_c_preproc_warn_flag in '' yes
7299 do
7300 # Use a header file that comes with gcc, so configuring glibc
7301 # with a fresh cross-compiler works.
7302 # On the NeXT, cc -E runs the code through the compiler's parser,
7303 # not just through cpp. "Syntax error" is here to catch this case.
7304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7305 /* end confdefs.h. */
7306 #include <limits.h>
7307 Syntax error
7308 _ACEOF
7309 if ac_fn_c_try_cpp "$LINENO"
7310 then :
7311
7312 else $as_nop
7313 # Broken: fails on valid input.
7314 continue
7315 fi
7316 rm -f conftest.err conftest.i conftest.$ac_ext
7317
7318 # OK, works on sane cases. Now check whether nonexistent headers
7319 # can be detected and how.
7320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321 /* end confdefs.h. */
7322 #include <ac_nonexistent.h>
7323 _ACEOF
7324 if ac_fn_c_try_cpp "$LINENO"
7325 then :
7326 # Broken: success on invalid input.
7327 continue
7328 else $as_nop
7329 # Passes both tests.
7330 ac_preproc_ok=:
7331 break
7332 fi
7333 rm -f conftest.err conftest.i conftest.$ac_ext
7334
7335 done
7336 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7337 rm -f conftest.i conftest.err conftest.$ac_ext
7338 if $ac_preproc_ok
7339 then :
7340
7341 else $as_nop
7342 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7343 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
7344 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7345 See \`config.log' for more details" "$LINENO" 5; }
7346 fi
7347
7348 ac_ext=c
7349 ac_cpp='$CPP $CPPFLAGS'
7350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7353
7354
7355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7356 printf %s "checking for grep that handles long lines and -e... " >&6; }
7357 if test ${ac_cv_path_GREP+y}
7358 then :
7359 printf %s "(cached) " >&6
7360 else $as_nop
7361 if test -z "$GREP"; then
7362 ac_path_GREP_found=false
7363 # Loop through the user's path and test for each of PROGNAME-LIST
7364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7366 do
7367 IFS=$as_save_IFS
7368 case $as_dir in #(((
7369 '') as_dir=./ ;;
7370 */) ;;
7371 *) as_dir=$as_dir/ ;;
7372 esac
7373 for ac_prog in grep ggrep
7374 do
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7377 as_fn_executable_p "$ac_path_GREP" || continue
7378 # Check for GNU ac_path_GREP and select it if it is found.
7379 # Check for GNU $ac_path_GREP
7380 case `"$ac_path_GREP" --version 2>&1` in
7381 *GNU*)
7382 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7383 *)
7384 ac_count=0
7385 printf %s 0123456789 >"conftest.in"
7386 while :
7387 do
7388 cat "conftest.in" "conftest.in" >"conftest.tmp"
7389 mv "conftest.tmp" "conftest.in"
7390 cp "conftest.in" "conftest.nl"
7391 printf "%s\n" 'GREP' >> "conftest.nl"
7392 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7393 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7394 as_fn_arith $ac_count + 1 && ac_count=$as_val
7395 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7396 # Best one so far, save it but keep looking for a better one
7397 ac_cv_path_GREP="$ac_path_GREP"
7398 ac_path_GREP_max=$ac_count
7399 fi
7400 # 10*(2^10) chars as input seems more than enough
7401 test $ac_count -gt 10 && break
7402 done
7403 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7404 esac
7405
7406 $ac_path_GREP_found && break 3
7407 done
7408 done
7409 done
7410 IFS=$as_save_IFS
7411 if test -z "$ac_cv_path_GREP"; then
7412 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7413 fi
7414 else
7415 ac_cv_path_GREP=$GREP
7416 fi
7417
7418 fi
7419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7420 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7421 GREP="$ac_cv_path_GREP"
7422
7423
7424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7425 printf %s "checking for egrep... " >&6; }
7426 if test ${ac_cv_path_EGREP+y}
7427 then :
7428 printf %s "(cached) " >&6
7429 else $as_nop
7430 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7431 then ac_cv_path_EGREP="$GREP -E"
7432 else
7433 if test -z "$EGREP"; then
7434 ac_path_EGREP_found=false
7435 # Loop through the user's path and test for each of PROGNAME-LIST
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7438 do
7439 IFS=$as_save_IFS
7440 case $as_dir in #(((
7441 '') as_dir=./ ;;
7442 */) ;;
7443 *) as_dir=$as_dir/ ;;
7444 esac
7445 for ac_prog in egrep
7446 do
7447 for ac_exec_ext in '' $ac_executable_extensions; do
7448 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7449 as_fn_executable_p "$ac_path_EGREP" || continue
7450 # Check for GNU ac_path_EGREP and select it if it is found.
7451 # Check for GNU $ac_path_EGREP
7452 case `"$ac_path_EGREP" --version 2>&1` in
7453 *GNU*)
7454 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7455 *)
7456 ac_count=0
7457 printf %s 0123456789 >"conftest.in"
7458 while :
7459 do
7460 cat "conftest.in" "conftest.in" >"conftest.tmp"
7461 mv "conftest.tmp" "conftest.in"
7462 cp "conftest.in" "conftest.nl"
7463 printf "%s\n" 'EGREP' >> "conftest.nl"
7464 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7465 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7466 as_fn_arith $ac_count + 1 && ac_count=$as_val
7467 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7468 # Best one so far, save it but keep looking for a better one
7469 ac_cv_path_EGREP="$ac_path_EGREP"
7470 ac_path_EGREP_max=$ac_count
7471 fi
7472 # 10*(2^10) chars as input seems more than enough
7473 test $ac_count -gt 10 && break
7474 done
7475 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7476 esac
7477
7478 $ac_path_EGREP_found && break 3
7479 done
7480 done
7481 done
7482 IFS=$as_save_IFS
7483 if test -z "$ac_cv_path_EGREP"; then
7484 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7485 fi
7486 else
7487 ac_cv_path_EGREP=$EGREP
7488 fi
7489
7490 fi
7491 fi
7492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7493 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7494 EGREP="$ac_cv_path_EGREP"
7495
7496
7497
7498
7499
7500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
7501 printf %s "checking for Minix Amsterdam compiler... " >&6; }
7502 if test ${gl_cv_c_amsterdam_compiler+y}
7503 then :
7504 printf %s "(cached) " >&6
7505 else $as_nop
7506
7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508 /* end confdefs.h. */
7509
7510 #ifdef __ACK__
7511 Amsterdam
7512 #endif
7513
7514 _ACEOF
7515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7516 $EGREP "Amsterdam" >/dev/null 2>&1
7517 then :
7518 gl_cv_c_amsterdam_compiler=yes
7519 else $as_nop
7520 gl_cv_c_amsterdam_compiler=no
7521 fi
7522 rm -rf conftest*
7523
7524
7525 fi
7526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
7527 printf "%s\n" "$gl_cv_c_amsterdam_compiler" >&6; }
7528
7529 if test $gl_cv_c_amsterdam_compiler = yes; then
7530 if test -z "$AR"; then
7531 AR='cc -c.a'
7532 fi
7533 if test -z "$ARFLAGS"; then
7534 ARFLAGS='-o'
7535 fi
7536 else
7537 :
7538 fi
7539
7540 if test -n "$ac_tool_prefix"; then
7541 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7542 set dummy ${ac_tool_prefix}ar; ac_word=$2
7543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7544 printf %s "checking for $ac_word... " >&6; }
7545 if test ${ac_cv_prog_AR+y}
7546 then :
7547 printf %s "(cached) " >&6
7548 else $as_nop
7549 if test -n "$AR"; then
7550 ac_cv_prog_AR="$AR" # Let the user override the test.
7551 else
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553 for as_dir in $PATH
7554 do
7555 IFS=$as_save_IFS
7556 case $as_dir in #(((
7557 '') as_dir=./ ;;
7558 */) ;;
7559 *) as_dir=$as_dir/ ;;
7560 esac
7561 for ac_exec_ext in '' $ac_executable_extensions; do
7562 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7563 ac_cv_prog_AR="${ac_tool_prefix}ar"
7564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7565 break 2
7566 fi
7567 done
7568 done
7569 IFS=$as_save_IFS
7570
7571 fi
7572 fi
7573 AR=$ac_cv_prog_AR
7574 if test -n "$AR"; then
7575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7576 printf "%s\n" "$AR" >&6; }
7577 else
7578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7579 printf "%s\n" "no" >&6; }
7580 fi
7581
7582
7583 fi
7584 if test -z "$ac_cv_prog_AR"; then
7585 ac_ct_AR=$AR
7586 # Extract the first word of "ar", so it can be a program name with args.
7587 set dummy ar; ac_word=$2
7588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7589 printf %s "checking for $ac_word... " >&6; }
7590 if test ${ac_cv_prog_ac_ct_AR+y}
7591 then :
7592 printf %s "(cached) " >&6
7593 else $as_nop
7594 if test -n "$ac_ct_AR"; then
7595 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7596 else
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 for as_dir in $PATH
7599 do
7600 IFS=$as_save_IFS
7601 case $as_dir in #(((
7602 '') as_dir=./ ;;
7603 */) ;;
7604 *) as_dir=$as_dir/ ;;
7605 esac
7606 for ac_exec_ext in '' $ac_executable_extensions; do
7607 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7608 ac_cv_prog_ac_ct_AR="ar"
7609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7610 break 2
7611 fi
7612 done
7613 done
7614 IFS=$as_save_IFS
7615
7616 fi
7617 fi
7618 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7619 if test -n "$ac_ct_AR"; then
7620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7621 printf "%s\n" "$ac_ct_AR" >&6; }
7622 else
7623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624 printf "%s\n" "no" >&6; }
7625 fi
7626
7627 if test "x$ac_ct_AR" = x; then
7628 AR="ar"
7629 else
7630 case $cross_compiling:$ac_tool_warned in
7631 yes:)
7632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7633 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7634 ac_tool_warned=yes ;;
7635 esac
7636 AR=$ac_ct_AR
7637 fi
7638 else
7639 AR="$ac_cv_prog_AR"
7640 fi
7641
7642 if test -z "$ARFLAGS"; then
7643 ARFLAGS='cr'
7644 fi
7645
7646
7647
7648 if test -z "$RANLIB"; then
7649 if test $gl_cv_c_amsterdam_compiler = yes; then
7650 RANLIB=':'
7651 else
7652 if test -n "$ac_tool_prefix"; then
7653 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7654 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656 printf %s "checking for $ac_word... " >&6; }
7657 if test ${ac_cv_prog_RANLIB+y}
7658 then :
7659 printf %s "(cached) " >&6
7660 else $as_nop
7661 if test -n "$RANLIB"; then
7662 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7663 else
7664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665 for as_dir in $PATH
7666 do
7667 IFS=$as_save_IFS
7668 case $as_dir in #(((
7669 '') as_dir=./ ;;
7670 */) ;;
7671 *) as_dir=$as_dir/ ;;
7672 esac
7673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7675 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7677 break 2
7678 fi
7679 done
7680 done
7681 IFS=$as_save_IFS
7682
7683 fi
7684 fi
7685 RANLIB=$ac_cv_prog_RANLIB
7686 if test -n "$RANLIB"; then
7687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7688 printf "%s\n" "$RANLIB" >&6; }
7689 else
7690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 printf "%s\n" "no" >&6; }
7692 fi
7693
7694
7695 fi
7696 if test -z "$ac_cv_prog_RANLIB"; then
7697 ac_ct_RANLIB=$RANLIB
7698 # Extract the first word of "ranlib", so it can be a program name with args.
7699 set dummy ranlib; ac_word=$2
7700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701 printf %s "checking for $ac_word... " >&6; }
7702 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7703 then :
7704 printf %s "(cached) " >&6
7705 else $as_nop
7706 if test -n "$ac_ct_RANLIB"; then
7707 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7708 else
7709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7710 for as_dir in $PATH
7711 do
7712 IFS=$as_save_IFS
7713 case $as_dir in #(((
7714 '') as_dir=./ ;;
7715 */) ;;
7716 *) as_dir=$as_dir/ ;;
7717 esac
7718 for ac_exec_ext in '' $ac_executable_extensions; do
7719 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7720 ac_cv_prog_ac_ct_RANLIB="ranlib"
7721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7722 break 2
7723 fi
7724 done
7725 done
7726 IFS=$as_save_IFS
7727
7728 fi
7729 fi
7730 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7731 if test -n "$ac_ct_RANLIB"; then
7732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7733 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7734 else
7735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736 printf "%s\n" "no" >&6; }
7737 fi
7738
7739 if test "x$ac_ct_RANLIB" = x; then
7740 RANLIB=":"
7741 else
7742 case $cross_compiling:$ac_tool_warned in
7743 yes:)
7744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7745 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7746 ac_tool_warned=yes ;;
7747 esac
7748 RANLIB=$ac_ct_RANLIB
7749 fi
7750 else
7751 RANLIB="$ac_cv_prog_RANLIB"
7752 fi
7753
7754 fi
7755 fi
7756
7757
7758
7759 # Check whether --enable-largefile was given.
7760 if test ${enable_largefile+y}
7761 then :
7762 enableval=$enable_largefile;
7763 fi
7764
7765 if test "$enable_largefile" != no
7766 then :
7767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7768 printf %s "checking for special C compiler options needed for large files... " >&6; }
7769 if test ${ac_cv_sys_largefile_CC+y}
7770 then :
7771 printf %s "(cached) " >&6
7772 else $as_nop
7773 ac_cv_sys_largefile_CC=no
7774 if test "$GCC" != yes; then
7775 ac_save_CC=$CC
7776 while :; do
7777 # IRIX 6.2 and later do not support large files by default,
7778 # so use the C compiler's -n32 option if that helps.
7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780 /* end confdefs.h. */
7781 #include <sys/types.h>
7782 /* Check that off_t can represent 2**63 - 1 correctly.
7783 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7784 since some C++ compilers masquerading as C compilers
7785 incorrectly reject 9223372036854775807. */
7786 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7787 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7788 && LARGE_OFF_T % 2147483647 == 1)
7789 ? 1 : -1];
7790 int
7791 main (void)
7792 {
7793
7794 ;
7795 return 0;
7796 }
7797 _ACEOF
7798 if ac_fn_c_try_compile "$LINENO"
7799 then :
7800 break
7801 fi
7802 rm -f core conftest.err conftest.$ac_objext conftest.beam
7803 CC="$CC -n32"
7804 if ac_fn_c_try_compile "$LINENO"
7805 then :
7806 ac_cv_sys_largefile_CC=' -n32'; break
7807 fi
7808 rm -f core conftest.err conftest.$ac_objext conftest.beam
7809 break
7810 done
7811 CC=$ac_save_CC
7812 rm -f conftest.$ac_ext
7813 fi
7814 fi
7815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7816 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
7817 if test "$ac_cv_sys_largefile_CC" != no; then
7818 CC=$CC$ac_cv_sys_largefile_CC
7819 fi
7820
7821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7822 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7823 if test ${ac_cv_sys_file_offset_bits+y}
7824 then :
7825 printf %s "(cached) " >&6
7826 else $as_nop
7827 while :; do
7828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7829 /* end confdefs.h. */
7830 #include <sys/types.h>
7831 /* Check that off_t can represent 2**63 - 1 correctly.
7832 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7833 since some C++ compilers masquerading as C compilers
7834 incorrectly reject 9223372036854775807. */
7835 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7836 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7837 && LARGE_OFF_T % 2147483647 == 1)
7838 ? 1 : -1];
7839 int
7840 main (void)
7841 {
7842
7843 ;
7844 return 0;
7845 }
7846 _ACEOF
7847 if ac_fn_c_try_compile "$LINENO"
7848 then :
7849 ac_cv_sys_file_offset_bits=no; break
7850 fi
7851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853 /* end confdefs.h. */
7854 #undef _FILE_OFFSET_BITS
7855 #define _FILE_OFFSET_BITS 64
7856 #include <sys/types.h>
7857 /* Check that off_t can represent 2**63 - 1 correctly.
7858 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7859 since some C++ compilers masquerading as C compilers
7860 incorrectly reject 9223372036854775807. */
7861 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7862 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7863 && LARGE_OFF_T % 2147483647 == 1)
7864 ? 1 : -1];
7865 int
7866 main (void)
7867 {
7868
7869 ;
7870 return 0;
7871 }
7872 _ACEOF
7873 if ac_fn_c_try_compile "$LINENO"
7874 then :
7875 ac_cv_sys_file_offset_bits=64; break
7876 fi
7877 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7878 ac_cv_sys_file_offset_bits=unknown
7879 break
7880 done
7881 fi
7882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7883 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
7884 case $ac_cv_sys_file_offset_bits in #(
7885 no | unknown) ;;
7886 *)
7887 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
7888 ;;
7889 esac
7890 rm -rf conftest*
7891 case $ac_cv_sys_file_offset_bits in #(
7892 unknown) :
7893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7894 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
7895 if test ${ac_cv_sys_large_files+y}
7896 then :
7897 printf %s "(cached) " >&6
7898 else $as_nop
7899 while :; do
7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901 /* end confdefs.h. */
7902 #include <sys/types.h>
7903 /* Check that off_t can represent 2**63 - 1 correctly.
7904 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7905 since some C++ compilers masquerading as C compilers
7906 incorrectly reject 9223372036854775807. */
7907 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7908 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7909 && LARGE_OFF_T % 2147483647 == 1)
7910 ? 1 : -1];
7911 int
7912 main (void)
7913 {
7914
7915 ;
7916 return 0;
7917 }
7918 _ACEOF
7919 if ac_fn_c_try_compile "$LINENO"
7920 then :
7921 ac_cv_sys_large_files=no; break
7922 fi
7923 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7926 #undef _LARGE_FILES
7927 #define _LARGE_FILES 1
7928 #include <sys/types.h>
7929 /* Check that off_t can represent 2**63 - 1 correctly.
7930 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7931 since some C++ compilers masquerading as C compilers
7932 incorrectly reject 9223372036854775807. */
7933 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7934 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7935 && LARGE_OFF_T % 2147483647 == 1)
7936 ? 1 : -1];
7937 int
7938 main (void)
7939 {
7940
7941 ;
7942 return 0;
7943 }
7944 _ACEOF
7945 if ac_fn_c_try_compile "$LINENO"
7946 then :
7947 ac_cv_sys_large_files=1; break
7948 fi
7949 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7950 ac_cv_sys_large_files=unknown
7951 break
7952 done
7953 fi
7954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7955 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
7956 case $ac_cv_sys_large_files in #(
7957 no | unknown) ;;
7958 *)
7959 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
7960 ;;
7961 esac
7962 rm -rf conftest* ;; #(
7963 64) :
7964
7965 # Check whether --enable-year2038 was given.
7966 if test ${enable_year2038+y}
7967 then :
7968 enableval=$enable_year2038;
7969 fi
7970
7971 if test "$enable_year2038" != no
7972 then :
7973
7974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for time_t past the year 2038" >&5
7975 printf %s "checking for time_t past the year 2038... " >&6; }
7976 if test ${gl_cv_type_time_t_y2038+y}
7977 then :
7978 printf %s "(cached) " >&6
7979 else $as_nop
7980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7981 /* end confdefs.h. */
7982
7983 #include <time.h>
7984 /* Check that time_t can represent 2**32 - 1 correctly. */
7985 #define LARGE_TIME_T \\
7986 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
7987 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
7988 && LARGE_TIME_T % 65537 == 0)
7989 ? 1 : -1];
7990
7991 _ACEOF
7992 if ac_fn_c_try_compile "$LINENO"
7993 then :
7994 gl_cv_type_time_t_y2038=yes
7995 else $as_nop
7996 gl_cv_type_time_t_y2038=no
7997 fi
7998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7999
8000 fi
8001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_time_t_y2038" >&5
8002 printf "%s\n" "$gl_cv_type_time_t_y2038" >&6; }
8003 if test "$gl_cv_type_time_t_y2038" = no; then
8004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit time_t with _TIME_BITS=64" >&5
8005 printf %s "checking for 64-bit time_t with _TIME_BITS=64... " >&6; }
8006 if test ${gl_cv_type_time_t_bits_macro+y}
8007 then :
8008 printf %s "(cached) " >&6
8009 else $as_nop
8010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011 /* end confdefs.h. */
8012 #define _TIME_BITS 64
8013 #define _FILE_OFFSET_BITS 64
8014
8015 #include <time.h>
8016 /* Check that time_t can represent 2**32 - 1 correctly. */
8017 #define LARGE_TIME_T \\
8018 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
8019 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
8020 && LARGE_TIME_T % 65537 == 0)
8021 ? 1 : -1];
8022
8023 _ACEOF
8024 if ac_fn_c_try_compile "$LINENO"
8025 then :
8026 gl_cv_type_time_t_bits_macro=yes
8027 else $as_nop
8028 gl_cv_type_time_t_bits_macro=no
8029 fi
8030 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8031
8032 fi
8033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_time_t_bits_macro" >&5
8034 printf "%s\n" "$gl_cv_type_time_t_bits_macro" >&6; }
8035 if test "$gl_cv_type_time_t_bits_macro" = yes; then
8036
8037 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
8038
8039
8040 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
8041
8042 gl_cv_type_time_t_y2038=yes
8043 fi
8044 fi
8045 if test $gl_cv_type_time_t_y2038 = no; then
8046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047 /* end confdefs.h. */
8048 #ifdef _USE_32BIT_TIME_T
8049 int ok;
8050 #else
8051 error fail
8052 #endif
8053
8054 _ACEOF
8055 if ac_fn_c_try_compile "$LINENO"
8056 then :
8057 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8058 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8059 as_fn_error $? "The 'time_t' type stops working after January 2038.
8060 Remove _USE_32BIT_TIME_T from the compiler flags.
8061 See \`config.log' for more details" "$LINENO" 5; }
8062 else $as_nop
8063 # If not cross-compiling and says we should check,
8064 # and 'touch' works with a large timestamp, then evidently wider time_t
8065 # is desired and supported, so fail and ask the builder to fix the
8066 # problem. Otherwise, just warn the builder.
8067
8068 if test "$gl_warned_about_y2038" != yes; then
8069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The 'time_t' type stops working after January 2038,
8070 and this package needs a wider 'time_t' type
8071 if there is any way to access timestamps after that.
8072 Configure with 'CC=\"${CC} -m64\"' perhaps?" >&5
8073 printf "%s\n" "$as_me: WARNING: The 'time_t' type stops working after January 2038,
8074 and this package needs a wider 'time_t' type
8075 if there is any way to access timestamps after that.
8076 Configure with 'CC=\"${CC} -m64\"' perhaps?" >&2;}
8077 gl_warned_about_y2038=yes
8078 fi
8079
8080 fi
8081 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8082 fi
8083 fi
8084 ;; #(
8085 *) :
8086 ;;
8087 esac
8088 fi
8089
8090
8091
8092 case "$host_os" in
8093 mingw*)
8094
8095 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
8096
8097 ;;
8098 esac
8099
8100
8101
8102 # Pre-early section.
8103
8104
8105
8106
8107 # Code from module absolute-header:
8108 # Code from module alloca:
8109 # Code from module alloca-opt:
8110 # Code from module argp:
8111 # Code from module array-list:
8112 # Code from module attribute:
8113 # Code from module basename-lgpl:
8114 # Code from module builtin-expect:
8115 # Code from module c99:
8116 # Code from module calloc-gnu:
8117 # Code from module calloc-posix:
8118 # Code from module canonicalize-lgpl:
8119 # Code from module chdir:
8120 # Code from module cloexec:
8121 # Code from module close:
8122 # Code from module dirname-lgpl:
8123 # Code from module double-slash-root:
8124 # Code from module dup2:
8125 # Code from module eloop-threshold:
8126 # Code from module errno:
8127 # Code from module error:
8128 # Code from module exitfail:
8129 # Code from module extensions:
8130 # Code from module extern-inline:
8131 # Code from module fcntl:
8132 # Code from module fcntl-h:
8133 # Code from module fd-hook:
8134 # Code from module filename:
8135 # Code from module float:
8136 # Code from module free-posix:
8137 # Code from module fstat:
8138 # Code from module gen-header:
8139 # Code from module getdelim:
8140 # Code from module getdtablesize:
8141 # Code from module getline:
8142 # Code from module getopt-gnu:
8143 # Code from module getopt-posix:
8144 # Code from module getprogname:
8145 # Code from module gettext-h:
8146 # Code from module gitlog-to-changelog:
8147 # Code from module gnupload:
8148 # Code from module hash-map:
8149 # Code from module hash-pjw-bare:
8150 # Code from module ialloc:
8151 # Code from module idx:
8152 # Code from module include_next:
8153 # Code from module intprops:
8154 # Code from module inttypes-incomplete:
8155 # Code from module largefile:
8156
8157
8158 # Code from module lib-ignore:
8159 # Code from module libc-config:
8160 # Code from module limits-h:
8161 # Code from module list:
8162 # Code from module lstat:
8163 # Code from module malloc-gnu:
8164 # Code from module malloc-posix:
8165 # Code from module malloca:
8166 # Code from module manywarnings:
8167 # Code from module map:
8168 # Code from module memchr:
8169 # Code from module mempcpy:
8170 # Code from module minmax:
8171 # Code from module msvc-inval:
8172 # Code from module msvc-nothrow:
8173 # Code from module multiarch:
8174 # Code from module nocrash:
8175 # Code from module omap:
8176 # Code from module open:
8177 # Code from module pathmax:
8178 # Code from module rawmemchr:
8179 # Code from module rbtree-omap:
8180 # Code from module readlink:
8181 # Code from module realloc-gnu:
8182 # Code from module realloc-posix:
8183 # Code from module reallocarray:
8184 # Code from module rename:
8185 # Code from module rmdir:
8186 # Code from module same-inode:
8187 # Code from module scratch_buffer:
8188 # Code from module size_max:
8189 # Code from module sleep:
8190 # Code from module snippet/_Noreturn:
8191 # Code from module snippet/arg-nonnull:
8192 # Code from module snippet/c++defs:
8193 # Code from module snippet/warn-on-use:
8194 # Code from module ssize_t:
8195 # Code from module stat:
8196 # Code from module stat-time:
8197 # Code from module std-gnu11:
8198 # Code from module stdalign:
8199 # Code from module stdarg:
8200
8201
8202
8203 # Code from module stdbool:
8204 # Code from module stddef:
8205 # Code from module stdint:
8206 # Code from module stdio:
8207 # Code from module stdlib:
8208 # Code from module stdopen:
8209 # Code from module strcase:
8210 # Code from module strchrnul:
8211 # Code from module strerror:
8212 # Code from module strerror-override:
8213 # Code from module string:
8214 # Code from module strings:
8215 # Code from module strndup:
8216 # Code from module strnlen:
8217 # Code from module sys_stat:
8218 # Code from module sys_types:
8219 # Code from module sysexits:
8220 # Code from module time:
8221 # Code from module unistd:
8222 # Code from module vararrays:
8223 # Code from module vasnprintf:
8224 # Code from module vasprintf:
8225 # Code from module verify:
8226 # Code from module vsnprintf:
8227 # Code from module warnings:
8228 # Code from module wchar:
8229 # Code from module xalloc:
8230 # Code from module xalloc-die:
8231 # Code from module xalloc-oversized:
8232 # Code from module xlist:
8233 # Code from module xmap:
8234 # Code from module xomap:
8235 # Code from module xsize:
8236 # Code from module xstdopen:
8237 # Code from module xstrndup:
8238 # Code from module xvasprintf:
8239
8240 ac_ext=c
8241 ac_cpp='$CPP $CPPFLAGS'
8242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8246 printf %s "checking how to run the C preprocessor... " >&6; }
8247 # On Suns, sometimes $CPP names a directory.
8248 if test -n "$CPP" && test -d "$CPP"; then
8249 CPP=
8250 fi
8251 if test -z "$CPP"; then
8252 if test ${ac_cv_prog_CPP+y}
8253 then :
8254 printf %s "(cached) " >&6
8255 else $as_nop
8256 # Double quotes because $CC needs to be expanded
8257 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
8258 do
8259 ac_preproc_ok=false
8260 for ac_c_preproc_warn_flag in '' yes
8261 do
8262 # Use a header file that comes with gcc, so configuring glibc
8263 # with a fresh cross-compiler works.
8264 # On the NeXT, cc -E runs the code through the compiler's parser,
8265 # not just through cpp. "Syntax error" is here to catch this case.
8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h. */
8268 #include <limits.h>
8269 Syntax error
8270 _ACEOF
8271 if ac_fn_c_try_cpp "$LINENO"
8272 then :
8273
8274 else $as_nop
8275 # Broken: fails on valid input.
8276 continue
8277 fi
8278 rm -f conftest.err conftest.i conftest.$ac_ext
8279
8280 # OK, works on sane cases. Now check whether nonexistent headers
8281 # can be detected and how.
8282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8283 /* end confdefs.h. */
8284 #include <ac_nonexistent.h>
8285 _ACEOF
8286 if ac_fn_c_try_cpp "$LINENO"
8287 then :
8288 # Broken: success on invalid input.
8289 continue
8290 else $as_nop
8291 # Passes both tests.
8292 ac_preproc_ok=:
8293 break
8294 fi
8295 rm -f conftest.err conftest.i conftest.$ac_ext
8296
8297 done
8298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8299 rm -f conftest.i conftest.err conftest.$ac_ext
8300 if $ac_preproc_ok
8301 then :
8302 break
8303 fi
8304
8305 done
8306 ac_cv_prog_CPP=$CPP
8307
8308 fi
8309 CPP=$ac_cv_prog_CPP
8310 else
8311 ac_cv_prog_CPP=$CPP
8312 fi
8313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8314 printf "%s\n" "$CPP" >&6; }
8315 ac_preproc_ok=false
8316 for ac_c_preproc_warn_flag in '' yes
8317 do
8318 # Use a header file that comes with gcc, so configuring glibc
8319 # with a fresh cross-compiler works.
8320 # On the NeXT, cc -E runs the code through the compiler's parser,
8321 # not just through cpp. "Syntax error" is here to catch this case.
8322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h. */
8324 #include <limits.h>
8325 Syntax error
8326 _ACEOF
8327 if ac_fn_c_try_cpp "$LINENO"
8328 then :
8329
8330 else $as_nop
8331 # Broken: fails on valid input.
8332 continue
8333 fi
8334 rm -f conftest.err conftest.i conftest.$ac_ext
8335
8336 # OK, works on sane cases. Now check whether nonexistent headers
8337 # can be detected and how.
8338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339 /* end confdefs.h. */
8340 #include <ac_nonexistent.h>
8341 _ACEOF
8342 if ac_fn_c_try_cpp "$LINENO"
8343 then :
8344 # Broken: success on invalid input.
8345 continue
8346 else $as_nop
8347 # Passes both tests.
8348 ac_preproc_ok=:
8349 break
8350 fi
8351 rm -f conftest.err conftest.i conftest.$ac_ext
8352
8353 done
8354 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8355 rm -f conftest.i conftest.err conftest.$ac_ext
8356 if $ac_preproc_ok
8357 then :
8358
8359 else $as_nop
8360 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8361 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8362 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8363 See \`config.log' for more details" "$LINENO" 5; }
8364 fi
8365
8366 ac_ext=c
8367 ac_cpp='$CPP $CPPFLAGS'
8368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8371
8372 CFLAGS="$CFLAGS -Wall"
8373
8374 # Check whether --enable-gcc-warnings was given.
8375 if test ${enable_gcc_warnings+y}
8376 then :
8377 enableval=$enable_gcc_warnings; case $enableval in
8378 no|yes|expensive) ;;
8379 *) as_fn_error $? "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
8380 esac
8381 binfmt_gcc_warnings=$enableval
8382 else $as_nop
8383 binfmt_gcc_warnings=yes
8384
8385 fi
8386
8387 if test "$binfmt_gcc_warnings" != no; then
8388
8389 ac_ext=c
8390 ac_cpp='$CPP $CPPFLAGS'
8391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8394
8395
8396
8397 if test -n "$GCC"; then
8398
8399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
8400 printf %s "checking whether -Wno-missing-field-initializers is supported... " >&6; }
8401 if test ${gl_cv_cc_nomfi_supported+y}
8402 then :
8403 printf %s "(cached) " >&6
8404 else $as_nop
8405 gl_save_CFLAGS="$CFLAGS"
8406 CFLAGS="$CFLAGS -Wextra -Werror -Wno-missing-field-initializers"
8407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408 /* end confdefs.h. */
8409
8410 int
8411 main (void)
8412 {
8413
8414 ;
8415 return 0;
8416 }
8417 _ACEOF
8418 if ac_fn_c_try_compile "$LINENO"
8419 then :
8420 gl_cv_cc_nomfi_supported=yes
8421 else $as_nop
8422 gl_cv_cc_nomfi_supported=no
8423 fi
8424 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8425 CFLAGS="$gl_save_CFLAGS"
8426
8427 fi
8428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
8429 printf "%s\n" "$gl_cv_cc_nomfi_supported" >&6; }
8430
8431 if test "$gl_cv_cc_nomfi_supported" = yes; then
8432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
8433 printf %s "checking whether -Wno-missing-field-initializers is needed... " >&6; }
8434 if test ${gl_cv_cc_nomfi_needed+y}
8435 then :
8436 printf %s "(cached) " >&6
8437 else $as_nop
8438 gl_save_CFLAGS="$CFLAGS"
8439 CFLAGS="$CFLAGS -Wextra -Werror"
8440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8441 /* end confdefs.h. */
8442 int f (void)
8443 {
8444 typedef struct { int a; int b; } s_t;
8445 s_t s1 = { 0, };
8446 return s1.b;
8447 }
8448
8449 int
8450 main (void)
8451 {
8452
8453 ;
8454 return 0;
8455 }
8456 _ACEOF
8457 if ac_fn_c_try_compile "$LINENO"
8458 then :
8459 gl_cv_cc_nomfi_needed=no
8460 else $as_nop
8461 gl_cv_cc_nomfi_needed=yes
8462 fi
8463 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8464 CFLAGS="$gl_save_CFLAGS"
8465
8466 fi
8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
8468 printf "%s\n" "$gl_cv_cc_nomfi_needed" >&6; }
8469 fi
8470
8471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
8472 printf %s "checking whether -Wuninitialized is supported... " >&6; }
8473 if test ${gl_cv_cc_uninitialized_supported+y}
8474 then :
8475 printf %s "(cached) " >&6
8476 else $as_nop
8477 gl_save_CFLAGS="$CFLAGS"
8478 CFLAGS="$CFLAGS -Werror -Wuninitialized"
8479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480 /* end confdefs.h. */
8481
8482 int
8483 main (void)
8484 {
8485
8486 ;
8487 return 0;
8488 }
8489 _ACEOF
8490 if ac_fn_c_try_compile "$LINENO"
8491 then :
8492 gl_cv_cc_uninitialized_supported=yes
8493 else $as_nop
8494 gl_cv_cc_uninitialized_supported=no
8495 fi
8496 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8497 CFLAGS="$gl_save_CFLAGS"
8498
8499 fi
8500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
8501 printf "%s\n" "$gl_cv_cc_uninitialized_supported" >&6; }
8502
8503 fi
8504
8505 # List all gcc warning categories.
8506 # To compare this list to your installed GCC's, run this Bash command:
8507 #
8508 # comm -3 \
8509 # <((sed -n 's/^ *\(-[^ 0-9][^ ]*\).*/\1/p' manywarnings.m4; \
8510 # awk '/^[^#]/ {print warnings}' ../build-aux/gcc-warning.spec) | sort) \
8511 # <(LC_ALL=C gcc --help=warnings | sed -n 's/^ \(-[^ ]*\) .*/\1/p' | sort)
8512
8513 warnings=
8514 for gl_manywarn_item in -fanalyzer -fno-common \
8515 -Wall \
8516 -Warith-conversion \
8517 -Wbad-function-cast \
8518 -Wcast-align=strict \
8519 -Wdate-time \
8520 -Wdisabled-optimization \
8521 -Wdouble-promotion \
8522 -Wduplicated-branches \
8523 -Wduplicated-cond \
8524 -Wextra \
8525 -Wformat-signedness \
8526 -Winit-self \
8527 -Winline \
8528 -Winvalid-pch \
8529 -Wlogical-op \
8530 -Wmissing-declarations \
8531 -Wmissing-include-dirs \
8532 -Wmissing-prototypes \
8533 -Wnested-externs \
8534 -Wnull-dereference \
8535 -Wold-style-definition \
8536 -Wopenmp-simd \
8537 -Woverlength-strings \
8538 -Wpacked \
8539 -Wpointer-arith \
8540 -Wshadow \
8541 -Wstack-protector \
8542 -Wstrict-overflow \
8543 -Wstrict-prototypes \
8544 -Wsuggest-attribute=cold \
8545 -Wsuggest-attribute=const \
8546 -Wsuggest-attribute=format \
8547 -Wsuggest-attribute=malloc \
8548 -Wsuggest-attribute=noreturn \
8549 -Wsuggest-attribute=pure \
8550 -Wsuggest-final-methods \
8551 -Wsuggest-final-types \
8552 -Wsync-nand \
8553 -Wsystem-headers \
8554 -Wtrampolines \
8555 -Wuninitialized \
8556 -Wunknown-pragmas \
8557 -Wunsafe-loop-optimizations \
8558 -Wunused-macros \
8559 -Wvariadic-macros \
8560 -Wvector-operation-performance \
8561 -Wvla \
8562 -Wwrite-strings \
8563 \
8564 ; do
8565 as_fn_append warnings " $gl_manywarn_item"
8566 done
8567
8568 # gcc --help=warnings outputs an unusual form for these options; list
8569 # them here so that the above 'comm' command doesn't report a false match.
8570 as_fn_append warnings ' -Warray-bounds=2'
8571 as_fn_append warnings ' -Wattribute-alias=2'
8572 as_fn_append warnings ' -Wformat-overflow=2'
8573 as_fn_append warnings ' -Wformat=2'
8574 as_fn_append warnings ' -Wformat-truncation=2'
8575 as_fn_append warnings ' -Wimplicit-fallthrough=5'
8576 as_fn_append warnings ' -Wshift-overflow=2'
8577 as_fn_append warnings ' -Wunused-const-variable=2'
8578 as_fn_append warnings ' -Wvla-larger-than=4031'
8579
8580 # These are needed for older GCC versions.
8581 if test -n "$GCC"; then
8582 case `($CC --version) 2>/dev/null` in
8583 'gcc (GCC) '[0-3].* | \
8584 'gcc (GCC) '4.[0-7].*)
8585 as_fn_append warnings ' -fdiagnostics-show-option'
8586 as_fn_append warnings ' -funit-at-a-time'
8587 ;;
8588 esac
8589 fi
8590
8591 # Disable specific options as needed.
8592 if test "$gl_cv_cc_nomfi_needed" = yes; then
8593 as_fn_append warnings ' -Wno-missing-field-initializers'
8594 fi
8595
8596 if test "$gl_cv_cc_uninitialized_supported" = no; then
8597 as_fn_append warnings ' -Wno-uninitialized'
8598 fi
8599
8600 # This warning have too many false alarms in GCC 11.2.1.
8601 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101713
8602 as_fn_append warnings ' -Wno-analyzer-malloc-leak'
8603
8604 ac_ext=c
8605 ac_cpp='$CPP $CPPFLAGS'
8606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8609
8610
8611 nw=
8612 nw="$nw -Wsystem-headers"
8613 nw="$nw -Wmissing-field-initializers"
8614 if test "$binfmt_gcc_warnings" != expensive; then
8615 nw="$nw -fanalyzer"
8616 fi
8617
8618 gl_warn_set=
8619 set x $warnings; shift
8620 for gl_warn_item
8621 do
8622 case " $nw " in
8623 *" $gl_warn_item "*)
8624 ;;
8625 *)
8626 as_fn_append gl_warn_set " $gl_warn_item"
8627 ;;
8628 esac
8629 done
8630 warnings=$gl_warn_set
8631
8632 for w in $warnings; do
8633
8634 ac_ext=c
8635 ac_cpp='$CPP $CPPFLAGS'
8636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8639
8640
8641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
8642 printf %s "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
8643 if test ${gl_cv_warn_c__Werror__Wunknown_warning_option+y}
8644 then :
8645 printf %s "(cached) " >&6
8646 else $as_nop
8647
8648 gl_save_compiler_FLAGS="$CFLAGS"
8649 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
8650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8651 /* end confdefs.h. */
8652
8653 int
8654 main (void)
8655 {
8656
8657 ;
8658 return 0;
8659 }
8660 _ACEOF
8661 if ac_fn_c_try_link "$LINENO"
8662 then :
8663 gl_cv_warn_c__Werror__Wunknown_warning_option=yes
8664 else $as_nop
8665 gl_cv_warn_c__Werror__Wunknown_warning_option=no
8666 fi
8667 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8668 conftest$ac_exeext conftest.$ac_ext
8669 CFLAGS="$gl_save_compiler_FLAGS"
8670
8671 fi
8672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
8673 printf "%s\n" "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
8674 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes
8675 then :
8676 gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
8677 else $as_nop
8678 gl_unknown_warnings_are_errors=
8679 fi
8680
8681 ac_ext=c
8682 ac_cpp='$CPP $CPPFLAGS'
8683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8686
8687
8688
8689
8690 as_gl_Warn=`printf "%s\n" "gl_cv_warn_c_$w" | $as_tr_sh`
8691 gl_positive="$w"
8692 case $gl_positive in
8693 -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
8694 esac
8695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
8696 printf %s "checking whether C compiler handles $w... " >&6; }
8697 if eval test \${$as_gl_Warn+y}
8698 then :
8699 printf %s "(cached) " >&6
8700 else $as_nop
8701
8702 gl_save_compiler_FLAGS="$CFLAGS"
8703 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive"
8704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8705 /* end confdefs.h. */
8706
8707 int
8708 main (void)
8709 {
8710
8711 ;
8712 return 0;
8713 }
8714 _ACEOF
8715 if ac_fn_c_try_link "$LINENO"
8716 then :
8717 eval "$as_gl_Warn=yes"
8718 else $as_nop
8719 eval "$as_gl_Warn=no"
8720 fi
8721 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8722 conftest$ac_exeext conftest.$ac_ext
8723 CFLAGS="$gl_save_compiler_FLAGS"
8724
8725 fi
8726 eval ac_res=\$$as_gl_Warn
8727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8728 printf "%s\n" "$ac_res" >&6; }
8729 if eval test \"x\$"$as_gl_Warn"\" = x"yes"
8730 then :
8731 as_fn_append WARN_CFLAGS " $w"
8732 fi
8733
8734
8735 done
8736
8737
8738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-missing-field-initializers" >&5
8739 printf %s "checking whether C compiler handles -Wno-missing-field-initializers... " >&6; }
8740 if test ${gl_cv_warn_c__Wno_missing_field_initializers+y}
8741 then :
8742 printf %s "(cached) " >&6
8743 else $as_nop
8744
8745 gl_save_compiler_FLAGS="$CFLAGS"
8746 as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wmissing-field-initializers"
8747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8748 /* end confdefs.h. */
8749
8750 int
8751 main (void)
8752 {
8753
8754 ;
8755 return 0;
8756 }
8757 _ACEOF
8758 if ac_fn_c_try_link "$LINENO"
8759 then :
8760 gl_cv_warn_c__Wno_missing_field_initializers=yes
8761 else $as_nop
8762 gl_cv_warn_c__Wno_missing_field_initializers=no
8763 fi
8764 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8765 conftest$ac_exeext conftest.$ac_ext
8766 CFLAGS="$gl_save_compiler_FLAGS"
8767
8768 fi
8769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_missing_field_initializers" >&5
8770 printf "%s\n" "$gl_cv_warn_c__Wno_missing_field_initializers" >&6; }
8771 if test "x$gl_cv_warn_c__Wno_missing_field_initializers" = xyes
8772 then :
8773 as_fn_append WARN_CFLAGS " -Wno-missing-field-initializers"
8774 fi
8775
8776
8777 fi
8778
8779
8780
8781 # Check for various header files and associated libraries.
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791 # Check whether --enable-cross-guesses was given.
8792 if test ${enable_cross_guesses+y}
8793 then :
8794 enableval=$enable_cross_guesses; if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then
8795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
8796 printf "%s\n" "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
8797 enableval=conservative
8798 fi
8799 gl_cross_guesses="$enableval"
8800 else $as_nop
8801 gl_cross_guesses=conservative
8802 fi
8803
8804 if test $gl_cross_guesses = risky; then
8805 gl_cross_guess_normal="guessing yes"
8806 gl_cross_guess_inverted="guessing no"
8807 else
8808 gl_cross_guess_normal="guessing no"
8809 gl_cross_guess_inverted="guessing yes"
8810 fi
8811 LIBC_FATAL_STDERR_=1
8812 export LIBC_FATAL_STDERR_
8813
8814
8815 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8816 if test "x$ac_cv_type_size_t" = xyes
8817 then :
8818
8819 else $as_nop
8820
8821 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
8822
8823 fi
8824
8825 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8826 # for constant arguments. Useless!
8827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8828 printf %s "checking for working alloca.h... " >&6; }
8829 if test ${ac_cv_working_alloca_h+y}
8830 then :
8831 printf %s "(cached) " >&6
8832 else $as_nop
8833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8834 /* end confdefs.h. */
8835 #include <alloca.h>
8836 int
8837 main (void)
8838 {
8839 char *p = (char *) alloca (2 * sizeof (int));
8840 if (p) return 0;
8841 ;
8842 return 0;
8843 }
8844 _ACEOF
8845 if ac_fn_c_try_link "$LINENO"
8846 then :
8847 ac_cv_working_alloca_h=yes
8848 else $as_nop
8849 ac_cv_working_alloca_h=no
8850 fi
8851 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8852 conftest$ac_exeext conftest.$ac_ext
8853 fi
8854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8855 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
8856 if test $ac_cv_working_alloca_h = yes; then
8857
8858 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
8859
8860 fi
8861
8862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8863 printf %s "checking for alloca... " >&6; }
8864 if test ${ac_cv_func_alloca_works+y}
8865 then :
8866 printf %s "(cached) " >&6
8867 else $as_nop
8868 if test $ac_cv_working_alloca_h = yes; then
8869 ac_cv_func_alloca_works=yes
8870 else
8871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8872 /* end confdefs.h. */
8873 #include <stdlib.h>
8874 #include <stddef.h>
8875 #ifndef alloca
8876 # ifdef __GNUC__
8877 # define alloca __builtin_alloca
8878 # elif defined _MSC_VER
8879 # include <malloc.h>
8880 # define alloca _alloca
8881 # else
8882 # ifdef __cplusplus
8883 extern "C"
8884 # endif
8885 void *alloca (size_t);
8886 # endif
8887 #endif
8888
8889 int
8890 main (void)
8891 {
8892 char *p = (char *) alloca (1);
8893 if (p) return 0;
8894 ;
8895 return 0;
8896 }
8897 _ACEOF
8898 if ac_fn_c_try_link "$LINENO"
8899 then :
8900 ac_cv_func_alloca_works=yes
8901 else $as_nop
8902 ac_cv_func_alloca_works=no
8903 fi
8904 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8905 conftest$ac_exeext conftest.$ac_ext
8906 fi
8907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8908 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
8909 fi
8910
8911 if test $ac_cv_func_alloca_works = yes; then
8912
8913 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
8914
8915 else
8916 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8917 # that cause trouble. Some versions do not even contain alloca or
8918 # contain a buggy version. If you still want to use their alloca,
8919 # use ar to extract alloca.o from them instead of compiling alloca.c.
8920
8921
8922
8923
8924
8925 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8926
8927 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
8928
8929
8930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8931 printf %s "checking stack direction for C alloca... " >&6; }
8932 if test ${ac_cv_c_stack_direction+y}
8933 then :
8934 printf %s "(cached) " >&6
8935 else $as_nop
8936 if test "$cross_compiling" = yes
8937 then :
8938 ac_cv_c_stack_direction=0
8939 else $as_nop
8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941 /* end confdefs.h. */
8942 $ac_includes_default
8943 int
8944 find_stack_direction (int *addr, int depth)
8945 {
8946 int dir, dummy = 0;
8947 if (! addr)
8948 addr = &dummy;
8949 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8950 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8951 return dir + dummy;
8952 }
8953
8954 int
8955 main (int argc, char **argv)
8956 {
8957 return find_stack_direction (0, argc + !argv + 20) < 0;
8958 }
8959 _ACEOF
8960 if ac_fn_c_try_run "$LINENO"
8961 then :
8962 ac_cv_c_stack_direction=1
8963 else $as_nop
8964 ac_cv_c_stack_direction=-1
8965 fi
8966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8967 conftest.$ac_objext conftest.beam conftest.$ac_ext
8968 fi
8969
8970 fi
8971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8972 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
8973 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
8974
8975
8976 fi
8977
8978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
8979 printf %s "checking for inline... " >&6; }
8980 if test ${ac_cv_c_inline+y}
8981 then :
8982 printf %s "(cached) " >&6
8983 else $as_nop
8984 ac_cv_c_inline=no
8985 for ac_kw in inline __inline__ __inline; do
8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987 /* end confdefs.h. */
8988 #ifndef __cplusplus
8989 typedef int foo_t;
8990 static $ac_kw foo_t static_foo (void) {return 0; }
8991 $ac_kw foo_t foo (void) {return 0; }
8992 #endif
8993
8994 _ACEOF
8995 if ac_fn_c_try_compile "$LINENO"
8996 then :
8997 ac_cv_c_inline=$ac_kw
8998 fi
8999 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9000 test "$ac_cv_c_inline" != no && break
9001 done
9002
9003 fi
9004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9005 printf "%s\n" "$ac_cv_c_inline" >&6; }
9006
9007 case $ac_cv_c_inline in
9008 inline | yes) ;;
9009 *)
9010 case $ac_cv_c_inline in
9011 no) ac_val=;;
9012 *) ac_val=$ac_cv_c_inline;;
9013 esac
9014 cat >>confdefs.h <<_ACEOF
9015 #ifndef __cplusplus
9016 #define inline $ac_val
9017 #endif
9018 _ACEOF
9019 ;;
9020 esac
9021
9022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9023 printf %s "checking for C/C++ restrict keyword... " >&6; }
9024 if test ${ac_cv_c_restrict+y}
9025 then :
9026 printf %s "(cached) " >&6
9027 else $as_nop
9028 ac_cv_c_restrict=no
9029 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
9030 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
9031 # Put 'restrict' last, because C++ lacks it.
9032 for ac_kw in __restrict__ __restrict _Restrict restrict; do
9033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9034 /* end confdefs.h. */
9035 typedef int *int_ptr;
9036 int foo (int_ptr $ac_kw ip) { return ip[0]; }
9037 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
9038 int bar (int ip[$ac_kw]) { return ip[0]; }
9039
9040 int
9041 main (void)
9042 {
9043 int s[1];
9044 int *$ac_kw t = s;
9045 t[0] = 0;
9046 return foo (t) + bar (t);
9047
9048 ;
9049 return 0;
9050 }
9051 _ACEOF
9052 if ac_fn_c_try_compile "$LINENO"
9053 then :
9054 ac_cv_c_restrict=$ac_kw
9055 fi
9056 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9057 test "$ac_cv_c_restrict" != no && break
9058 done
9059
9060 fi
9061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9062 printf "%s\n" "$ac_cv_c_restrict" >&6; }
9063
9064 case $ac_cv_c_restrict in
9065 restrict) ;;
9066 no) printf "%s\n" "#define restrict /**/" >>confdefs.h
9067 ;;
9068 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
9069 ;;
9070 esac
9071
9072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
9073 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
9074 if test ${ac_cv_c_undeclared_builtin_options+y}
9075 then :
9076 printf %s "(cached) " >&6
9077 else $as_nop
9078 ac_save_CFLAGS=$CFLAGS
9079 ac_cv_c_undeclared_builtin_options='cannot detect'
9080 for ac_arg in '' -fno-builtin; do
9081 CFLAGS="$ac_save_CFLAGS $ac_arg"
9082 # This test program should *not* compile successfully.
9083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9084 /* end confdefs.h. */
9085
9086 int
9087 main (void)
9088 {
9089 (void) strchr;
9090 ;
9091 return 0;
9092 }
9093 _ACEOF
9094 if ac_fn_c_try_compile "$LINENO"
9095 then :
9096
9097 else $as_nop
9098 # This test program should compile successfully.
9099 # No library function is consistently available on
9100 # freestanding implementations, so test against a dummy
9101 # declaration. Include always-available headers on the
9102 # off chance that they somehow elicit warnings.
9103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9104 /* end confdefs.h. */
9105 #include <float.h>
9106 #include <limits.h>
9107 #include <stdarg.h>
9108 #include <stddef.h>
9109 extern void ac_decl (int, char *);
9110
9111 int
9112 main (void)
9113 {
9114 (void) ac_decl (0, (char *) 0);
9115 (void) ac_decl;
9116
9117 ;
9118 return 0;
9119 }
9120 _ACEOF
9121 if ac_fn_c_try_compile "$LINENO"
9122 then :
9123 if test x"$ac_arg" = x
9124 then :
9125 ac_cv_c_undeclared_builtin_options='none needed'
9126 else $as_nop
9127 ac_cv_c_undeclared_builtin_options=$ac_arg
9128 fi
9129 break
9130 fi
9131 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9132 fi
9133 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9134 done
9135 CFLAGS=$ac_save_CFLAGS
9136
9137 fi
9138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
9139 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
9140 case $ac_cv_c_undeclared_builtin_options in #(
9141 'cannot detect') :
9142 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9143 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
9144 as_fn_error $? "cannot make $CC report undeclared builtins
9145 See \`config.log' for more details" "$LINENO" 5; } ;; #(
9146 'none needed') :
9147 ac_c_undeclared_builtin_options='' ;; #(
9148 *) :
9149 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
9150 esac
9151
9152 ac_fn_check_decl "$LINENO" "clearerr_unlocked" "ac_cv_have_decl_clearerr_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
9153 if test "x$ac_cv_have_decl_clearerr_unlocked" = xyes
9154 then :
9155 ac_have_decl=1
9156 else $as_nop
9157 ac_have_decl=0
9158 fi
9159 printf "%s\n" "#define HAVE_DECL_CLEARERR_UNLOCKED $ac_have_decl" >>confdefs.h
9160
9161 ac_fn_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
9162 if test "x$ac_cv_have_decl_feof_unlocked" = xyes
9163 then :
9164 ac_have_decl=1
9165 else $as_nop
9166 ac_have_decl=0
9167 fi
9168 printf "%s\n" "#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl" >>confdefs.h
9169
9170 ac_fn_check_decl "$LINENO" "ferror_unlocked" "ac_cv_have_decl_ferror_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
9171 if test "x$ac_cv_have_decl_ferror_unlocked" = xyes
9172 then :
9173 ac_have_decl=1
9174 else $as_nop
9175 ac_have_decl=0
9176 fi
9177 printf "%s\n" "#define HAVE_DECL_FERROR_UNLOCKED $ac_have_decl" >>confdefs.h
9178
9179 ac_fn_check_decl "$LINENO" "fflush_unlocked" "ac_cv_have_decl_fflush_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
9180 if test "x$ac_cv_have_decl_fflush_unlocked" = xyes
9181 then :
9182 ac_have_decl=1
9183 else $as_nop
9184 ac_have_decl=0
9185 fi
9186 printf "%s\n" "#define HAVE_DECL_FFLUSH_UNLOCKED $ac_have_decl" >>confdefs.h
9187
9188 ac_fn_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
9189 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes
9190 then :
9191 ac_have_decl=1
9192 else $as_nop
9193 ac_have_decl=0
9194 fi
9195 printf "%s\n" "#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl" >>confdefs.h
9196
9197 ac_fn_check_decl "$LINENO" "fputc_unlocked" "ac_cv_have_decl_fputc_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
9198 if test "x$ac_cv_have_decl_fputc_unlocked" = xyes
9199 then :
9200 ac_have_decl=1
9201 else $as_nop
9202 ac_have_decl=0
9203 fi
9204 printf "%s\n" "#define HAVE_DECL_FPUTC_UNLOCKED $ac_have_decl" >>confdefs.h
9205
9206 ac_fn_check_decl "$LINENO" "fputs_unlocked" "ac_cv_have_decl_fputs_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
9207 if test "x$ac_cv_have_decl_fputs_unlocked" = xyes
9208 then :
9209 ac_have_decl=1
9210 else $as_nop
9211 ac_have_decl=0
9212 fi
9213 printf "%s\n" "#define HAVE_DECL_FPUTS_UNLOCKED $ac_have_decl" >>confdefs.h
9214
9215 ac_fn_check_decl "$LINENO" "fread_unlocked" "ac_cv_have_decl_fread_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
9216 if test "x$ac_cv_have_decl_fread_unlocked" = xyes
9217 then :
9218 ac_have_decl=1
9219 else $as_nop
9220 ac_have_decl=0
9221 fi
9222 printf "%s\n" "#define HAVE_DECL_FREAD_UNLOCKED $ac_have_decl" >>confdefs.h
9223
9224 ac_fn_check_decl "$LINENO" "fwrite_unlocked" "ac_cv_have_decl_fwrite_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
9225 if test "x$ac_cv_have_decl_fwrite_unlocked" = xyes
9226 then :
9227 ac_have_decl=1
9228 else $as_nop
9229 ac_have_decl=0
9230 fi
9231 printf "%s\n" "#define HAVE_DECL_FWRITE_UNLOCKED $ac_have_decl" >>confdefs.h
9232
9233 ac_fn_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
9234 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
9235 then :
9236 ac_have_decl=1
9237 else $as_nop
9238 ac_have_decl=0
9239 fi
9240 printf "%s\n" "#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl" >>confdefs.h
9241
9242 ac_fn_check_decl "$LINENO" "getchar_unlocked" "ac_cv_have_decl_getchar_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
9243 if test "x$ac_cv_have_decl_getchar_unlocked" = xyes
9244 then :
9245 ac_have_decl=1
9246 else $as_nop
9247 ac_have_decl=0
9248 fi
9249 printf "%s\n" "#define HAVE_DECL_GETCHAR_UNLOCKED $ac_have_decl" >>confdefs.h
9250
9251 ac_fn_check_decl "$LINENO" "putc_unlocked" "ac_cv_have_decl_putc_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
9252 if test "x$ac_cv_have_decl_putc_unlocked" = xyes
9253 then :
9254 ac_have_decl=1
9255 else $as_nop
9256 ac_have_decl=0
9257 fi
9258 printf "%s\n" "#define HAVE_DECL_PUTC_UNLOCKED $ac_have_decl" >>confdefs.h
9259
9260 ac_fn_check_decl "$LINENO" "putchar_unlocked" "ac_cv_have_decl_putchar_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
9261 if test "x$ac_cv_have_decl_putchar_unlocked" = xyes
9262 then :
9263 ac_have_decl=1
9264 else $as_nop
9265 ac_have_decl=0
9266 fi
9267 printf "%s\n" "#define HAVE_DECL_PUTCHAR_UNLOCKED $ac_have_decl" >>confdefs.h
9268
9269 ac_func=
9270 for ac_item in $ac_func_c_list
9271 do
9272 if test $ac_func; then
9273 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
9274 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
9275 echo "#define $ac_item 1" >> confdefs.h
9276 fi
9277 ac_func=
9278 else
9279 ac_func=$ac_item
9280 fi
9281 done
9282
9283
9284
9285 ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
9286 if test "x$ac_cv_have_decl_strerror_r" = xyes
9287 then :
9288 ac_have_decl=1
9289 else $as_nop
9290 ac_have_decl=0
9291 fi
9292 printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
9293
9294
9295 if test $ac_cv_have_decl_strerror_r = yes; then
9296 # For backward compatibility's sake, define HAVE_STRERROR_R.
9297 # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
9298 # as AC_CHECK_DECLS_ONCE.)
9299
9300 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
9301
9302 fi
9303
9304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
9305 printf %s "checking whether strerror_r returns char *... " >&6; }
9306 if test ${ac_cv_func_strerror_r_char_p+y}
9307 then :
9308 printf %s "(cached) " >&6
9309 else $as_nop
9310
9311 ac_cv_func_strerror_r_char_p=no
9312 if test $ac_cv_have_decl_strerror_r = yes; then
9313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9314 /* end confdefs.h. */
9315 #include <string.h>
9316 int
9317 main (void)
9318 {
9319
9320 char buf[100];
9321 char x = *strerror_r (0, buf, sizeof buf);
9322 char *p = strerror_r (0, buf, sizeof buf);
9323 return !p || x;
9324
9325 ;
9326 return 0;
9327 }
9328 _ACEOF
9329 if ac_fn_c_try_compile "$LINENO"
9330 then :
9331 ac_cv_func_strerror_r_char_p=yes
9332 fi
9333 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9334
9335 fi
9336
9337 fi
9338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
9339 printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
9340 if test $ac_cv_func_strerror_r_char_p = yes; then
9341
9342 printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
9343
9344 fi
9345
9346
9347 HAVE__EXIT=1;
9348 HAVE_ALIGNED_ALLOC=1;
9349 HAVE_ATOLL=1;
9350 HAVE_CANONICALIZE_FILE_NAME=1;
9351 HAVE_DECL_ECVT=1;
9352 HAVE_DECL_FCVT=1;
9353 HAVE_DECL_GCVT=1;
9354 HAVE_DECL_GETLOADAVG=1;
9355 HAVE_GETSUBOPT=1;
9356 HAVE_GRANTPT=1;
9357 HAVE_INITSTATE=1;
9358 HAVE_DECL_INITSTATE=1;
9359 HAVE_MBTOWC=1;
9360 HAVE_MKDTEMP=1;
9361 HAVE_MKOSTEMP=1;
9362 HAVE_MKOSTEMPS=1;
9363 HAVE_MKSTEMP=1;
9364 HAVE_MKSTEMPS=1;
9365 HAVE_POSIX_MEMALIGN=1;
9366 HAVE_POSIX_OPENPT=1;
9367 HAVE_PTSNAME=1;
9368 HAVE_PTSNAME_R=1;
9369 HAVE_QSORT_R=1;
9370 HAVE_RANDOM=1;
9371 HAVE_RANDOM_H=1;
9372 HAVE_RANDOM_R=1;
9373 HAVE_REALLOCARRAY=1;
9374 HAVE_REALPATH=1;
9375 HAVE_RPMATCH=1;
9376 HAVE_SECURE_GETENV=1;
9377 HAVE_SETENV=1;
9378 HAVE_DECL_SETENV=1;
9379 HAVE_SETSTATE=1;
9380 HAVE_DECL_SETSTATE=1;
9381 HAVE_STRTOD=1;
9382 HAVE_STRTOL=1;
9383 HAVE_STRTOLD=1;
9384 HAVE_STRTOLL=1;
9385 HAVE_STRTOUL=1;
9386 HAVE_STRTOULL=1;
9387 HAVE_STRUCT_RANDOM_DATA=1;
9388 HAVE_SYS_LOADAVG_H=0;
9389 HAVE_UNLOCKPT=1;
9390 HAVE_DECL_UNSETENV=1;
9391 REPLACE_ALIGNED_ALLOC=0;
9392 REPLACE_CALLOC_FOR_CALLOC_GNU=0;
9393 REPLACE_CALLOC_FOR_CALLOC_POSIX=0;
9394 REPLACE_CANONICALIZE_FILE_NAME=0;
9395 REPLACE_FREE=0;
9396 REPLACE_INITSTATE=0;
9397 REPLACE_MALLOC_FOR_MALLOC_GNU=0;
9398 REPLACE_MALLOC_FOR_MALLOC_POSIX=0;
9399 REPLACE_MBTOWC=0;
9400 REPLACE_MKSTEMP=0;
9401 REPLACE_POSIX_MEMALIGN=0;
9402 REPLACE_PTSNAME=0;
9403 REPLACE_PTSNAME_R=0;
9404 REPLACE_PUTENV=0;
9405 REPLACE_QSORT_R=0;
9406 REPLACE_RANDOM=0;
9407 REPLACE_RANDOM_R=0;
9408 REPLACE_REALLOC_FOR_REALLOC_GNU=0;
9409 REPLACE_REALLOC_FOR_REALLOC_POSIX=0;
9410 REPLACE_REALLOCARRAY=0;
9411 REPLACE_REALPATH=0;
9412 REPLACE_SETENV=0;
9413 REPLACE_SETSTATE=0;
9414 REPLACE_STRTOD=0;
9415 REPLACE_STRTOL=0;
9416 REPLACE_STRTOLD=0;
9417 REPLACE_STRTOLL=0;
9418 REPLACE_STRTOUL=0;
9419 REPLACE_STRTOULL=0;
9420 REPLACE_UNSETENV=0;
9421 REPLACE_WCTOMB=0;
9422
9423
9424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc is ptrdiff_t safe" >&5
9425 printf %s "checking whether malloc is ptrdiff_t safe... " >&6; }
9426 if test ${gl_cv_malloc_ptrdiff+y}
9427 then :
9428 printf %s "(cached) " >&6
9429 else $as_nop
9430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9431 /* end confdefs.h. */
9432 #include <stdint.h>
9433
9434 int
9435 main (void)
9436 {
9437 /* 64-bit ptrdiff_t is so wide that no practical platform
9438 can exceed it. */
9439 #define WIDE_PTRDIFF (PTRDIFF_MAX >> 31 >> 31 != 0)
9440
9441 /* On rare machines where size_t fits in ptrdiff_t there
9442 is no problem. */
9443 #define NARROW_SIZE (SIZE_MAX <= PTRDIFF_MAX)
9444
9445 /* glibc 2.30 and later malloc refuses to exceed ptrdiff_t
9446 bounds even on 32-bit platforms. We don't know which
9447 non-glibc systems are safe. */
9448 #define KNOWN_SAFE (2 < __GLIBC__ + (30 <= __GLIBC_MINOR__))
9449
9450 #if WIDE_PTRDIFF || NARROW_SIZE || KNOWN_SAFE
9451 return 0;
9452 #else
9453 #error "malloc might not be ptrdiff_t safe"
9454 syntax error
9455 #endif
9456
9457 ;
9458 return 0;
9459 }
9460 _ACEOF
9461 if ac_fn_c_try_compile "$LINENO"
9462 then :
9463 gl_cv_malloc_ptrdiff=yes
9464 else $as_nop
9465 gl_cv_malloc_ptrdiff=no
9466 fi
9467 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9468
9469 fi
9470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_malloc_ptrdiff" >&5
9471 printf "%s\n" "$gl_cv_malloc_ptrdiff" >&6; }
9472
9473
9474
9475
9476 test "$gl_cv_malloc_ptrdiff" = yes || REPLACE_MALLOC_FOR_MALLOC_POSIX=1
9477
9478
9479
9480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc set errno on failure" >&5
9481 printf %s "checking whether malloc, realloc, calloc set errno on failure... " >&6; }
9482 if test ${gl_cv_func_malloc_posix+y}
9483 then :
9484 printf %s "(cached) " >&6
9485 else $as_nop
9486
9487 case "$host_os" in
9488 mingw*)
9489 gl_cv_func_malloc_posix=no ;;
9490 irix* | solaris*)
9491
9492 gl_cv_func_malloc_posix=no ;;
9493 *)
9494 gl_cv_func_malloc_posix=yes ;;
9495 esac
9496
9497 fi
9498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
9499 printf "%s\n" "$gl_cv_func_malloc_posix" >&6; }
9500
9501
9502
9503
9504
9505 if test "$gl_cv_func_malloc_posix" = yes; then
9506
9507 printf "%s\n" "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
9508
9509 else
9510 REPLACE_MALLOC_FOR_MALLOC_POSIX=1
9511 fi
9512
9513
9514
9515
9516 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
9517 REPLACE_CALLOC_FOR_CALLOC_POSIX=1
9518 fi
9519
9520
9521
9522 GL_GNULIB__EXIT=0
9523
9524
9525
9526 GL_GNULIB_ALIGNED_ALLOC=0
9527
9528
9529
9530 GL_GNULIB_ATOLL=0
9531
9532
9533
9534 GL_GNULIB_CALLOC_GNU=0
9535
9536
9537
9538 GL_GNULIB_CALLOC_POSIX=0
9539
9540
9541
9542 GL_GNULIB_CANONICALIZE_FILE_NAME=0
9543
9544
9545
9546 GL_GNULIB_FREE_POSIX=0
9547
9548
9549
9550 GL_GNULIB_GETLOADAVG=0
9551
9552
9553
9554 GL_GNULIB_GETSUBOPT=0
9555
9556
9557
9558 GL_GNULIB_GRANTPT=0
9559
9560
9561
9562 GL_GNULIB_MALLOC_GNU=0
9563
9564
9565
9566 GL_GNULIB_MALLOC_POSIX=0
9567
9568
9569
9570 GL_GNULIB_MBTOWC=0
9571
9572
9573
9574 GL_GNULIB_MKDTEMP=0
9575
9576
9577
9578 GL_GNULIB_MKOSTEMP=0
9579
9580
9581
9582 GL_GNULIB_MKOSTEMPS=0
9583
9584
9585
9586 GL_GNULIB_MKSTEMP=0
9587
9588
9589
9590 GL_GNULIB_MKSTEMPS=0
9591
9592
9593
9594 GL_GNULIB_POSIX_MEMALIGN=0
9595
9596
9597
9598 GL_GNULIB_POSIX_OPENPT=0
9599
9600
9601
9602 GL_GNULIB_PTSNAME=0
9603
9604
9605
9606 GL_GNULIB_PTSNAME_R=0
9607
9608
9609
9610 GL_GNULIB_PUTENV=0
9611
9612
9613
9614 GL_GNULIB_QSORT_R=0
9615
9616
9617
9618 GL_GNULIB_RANDOM=0
9619
9620
9621
9622 GL_GNULIB_RANDOM_R=0
9623
9624
9625
9626 GL_GNULIB_REALLOCARRAY=0
9627
9628
9629
9630 GL_GNULIB_REALLOC_GNU=0
9631
9632
9633
9634 GL_GNULIB_REALLOC_POSIX=0
9635
9636
9637
9638 GL_GNULIB_REALPATH=0
9639
9640
9641
9642 GL_GNULIB_RPMATCH=0
9643
9644
9645
9646 GL_GNULIB_SECURE_GETENV=0
9647
9648
9649
9650 GL_GNULIB_SETENV=0
9651
9652
9653
9654 GL_GNULIB_STRTOD=0
9655
9656
9657
9658 GL_GNULIB_STRTOL=0
9659
9660
9661
9662 GL_GNULIB_STRTOLD=0
9663
9664
9665
9666 GL_GNULIB_STRTOLL=0
9667
9668
9669
9670 GL_GNULIB_STRTOUL=0
9671
9672
9673
9674 GL_GNULIB_STRTOULL=0
9675
9676
9677
9678 GL_GNULIB_SYSTEM_POSIX=0
9679
9680
9681
9682 GL_GNULIB_UNLOCKPT=0
9683
9684
9685
9686 GL_GNULIB_UNSETENV=0
9687
9688
9689
9690 GL_GNULIB_WCTOMB=0
9691
9692
9693
9694 GL_GNULIB_MDA_ECVT=1
9695
9696
9697
9698 GL_GNULIB_MDA_FCVT=1
9699
9700
9701
9702 GL_GNULIB_MDA_GCVT=1
9703
9704
9705
9706 GL_GNULIB_MDA_MKTEMP=1
9707
9708
9709
9710 GL_GNULIB_MDA_PUTENV=1
9711
9712
9713
9714
9715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
9716 printf %s "checking whether lstat correctly handles trailing slash... " >&6; }
9717 if test ${gl_cv_func_lstat_dereferences_slashed_symlink+y}
9718 then :
9719 printf %s "(cached) " >&6
9720 else $as_nop
9721 rm -f conftest.sym conftest.file
9722 echo >conftest.file
9723 if test "$cross_compiling" = yes
9724 then :
9725 case "$host_os" in
9726 linux-* | linux)
9727 # Guess yes on Linux systems.
9728 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
9729 *-gnu* | gnu*)
9730 # Guess yes on glibc systems.
9731 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
9732 mingw*)
9733 # Guess no on native Windows.
9734 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
9735 *)
9736 # If we don't know, obey --enable-cross-guesses.
9737 gl_cv_func_lstat_dereferences_slashed_symlink="$gl_cross_guess_normal" ;;
9738 esac
9739
9740 else $as_nop
9741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9742 /* end confdefs.h. */
9743 $ac_includes_default
9744 int
9745 main (void)
9746 {
9747 struct stat sbuf;
9748 if (symlink ("conftest.file", "conftest.sym") != 0)
9749 return 1;
9750 /* Linux will dereference the symlink and fail, as required by
9751 POSIX. That is better in the sense that it means we will not
9752 have to compile and use the lstat wrapper. */
9753 return lstat ("conftest.sym/", &sbuf) == 0;
9754
9755 ;
9756 return 0;
9757 }
9758 _ACEOF
9759 if ac_fn_c_try_run "$LINENO"
9760 then :
9761 gl_cv_func_lstat_dereferences_slashed_symlink=yes
9762 else $as_nop
9763 gl_cv_func_lstat_dereferences_slashed_symlink=no
9764 fi
9765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9766 conftest.$ac_objext conftest.beam conftest.$ac_ext
9767 fi
9768
9769 rm -f conftest.sym conftest.file
9770
9771 fi
9772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
9773 printf "%s\n" "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9774 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
9775 *yes)
9776
9777 printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h
9778
9779 ;;
9780 esac
9781
9782
9783
9784
9785
9786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
9787 printf %s "checking whether // is distinct from /... " >&6; }
9788 if test ${gl_cv_double_slash_root+y}
9789 then :
9790 printf %s "(cached) " >&6
9791 else $as_nop
9792 if test x"$cross_compiling" = xyes ; then
9793 # When cross-compiling, there is no way to tell whether // is special
9794 # short of a list of hosts. However, the only known hosts to date
9795 # that have a distinct // are Apollo DomainOS (too old to port to),
9796 # Cygwin, and z/OS. If anyone knows of another system for which // has
9797 # special semantics and is distinct from /, please report it to
9798 # <[email protected]>.
9799 case $host in
9800 *-cygwin | i370-ibm-openedition)
9801 gl_cv_double_slash_root=yes ;;
9802 *)
9803 # Be optimistic and assume that / and // are the same when we
9804 # don't know.
9805 gl_cv_double_slash_root='unknown, assuming no' ;;
9806 esac
9807 else
9808 set x `ls -di / // 2>/dev/null`
9809 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
9810 gl_cv_double_slash_root=no
9811 else
9812 gl_cv_double_slash_root=yes
9813 fi
9814 fi
9815 fi
9816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
9817 printf "%s\n" "$gl_cv_double_slash_root" >&6; }
9818 if test "$gl_cv_double_slash_root" = yes; then
9819
9820 printf "%s\n" "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
9821
9822 fi
9823
9824
9825
9826
9827
9828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
9829 printf %s "checking whether realpath works... " >&6; }
9830 if test ${gl_cv_func_realpath_works+y}
9831 then :
9832 printf %s "(cached) " >&6
9833 else $as_nop
9834
9835 rm -rf conftest.a conftest.d
9836 touch conftest.a
9837 # Assume that if we have lstat, we can also check symlinks.
9838 if test $ac_cv_func_lstat = yes; then
9839 ln -s conftest.a conftest.l
9840 fi
9841 mkdir conftest.d
9842 if test "$cross_compiling" = yes
9843 then :
9844 case "$host_os" in
9845 # Guess yes on glibc systems.
9846 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
9847 # Guess 'nearly' on musl systems.
9848 *-musl*) gl_cv_func_realpath_works="guessing nearly" ;;
9849 # Guess no on Cygwin.
9850 cygwin*) gl_cv_func_realpath_works="guessing no" ;;
9851 # Guess no on native Windows.
9852 mingw*) gl_cv_func_realpath_works="guessing no" ;;
9853 # If we don't know, obey --enable-cross-guesses.
9854 *) gl_cv_func_realpath_works="$gl_cross_guess_normal" ;;
9855 esac
9856
9857 else $as_nop
9858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9859 /* end confdefs.h. */
9860
9861
9862
9863 #include <stdlib.h>
9864 #if defined __MACH__ && defined __APPLE__
9865 /* Avoid a crash on Mac OS X. */
9866 #include <mach/mach.h>
9867 #include <mach/mach_error.h>
9868 #include <mach/thread_status.h>
9869 #include <mach/exception.h>
9870 #include <mach/task.h>
9871 #include <pthread.h>
9872 /* The exception port on which our thread listens. */
9873 static mach_port_t our_exception_port;
9874 /* The main function of the thread listening for exceptions of type
9875 EXC_BAD_ACCESS. */
9876 static void *
9877 mach_exception_thread (void *arg)
9878 {
9879 /* Buffer for a message to be received. */
9880 struct {
9881 mach_msg_header_t head;
9882 mach_msg_body_t msgh_body;
9883 char data[1024];
9884 } msg;
9885 mach_msg_return_t retval;
9886 /* Wait for a message on the exception port. */
9887 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
9888 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
9889 if (retval != MACH_MSG_SUCCESS)
9890 abort ();
9891 exit (1);
9892 }
9893 static void
9894 nocrash_init (void)
9895 {
9896 mach_port_t self = mach_task_self ();
9897 /* Allocate a port on which the thread shall listen for exceptions. */
9898 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
9899 == KERN_SUCCESS) {
9900 /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
9901 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
9902 MACH_MSG_TYPE_MAKE_SEND)
9903 == KERN_SUCCESS) {
9904 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
9905 for us. */
9906 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
9907 /* Create the thread listening on the exception port. */
9908 pthread_attr_t attr;
9909 pthread_t thread;
9910 if (pthread_attr_init (&attr) == 0
9911 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
9912 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
9913 pthread_attr_destroy (&attr);
9914 /* Replace the exception port info for these exceptions with our own.
9915 Note that we replace the exception port for the entire task, not only
9916 for a particular thread. This has the effect that when our exception
9917 port gets the message, the thread specific exception port has already
9918 been asked, and we don't need to bother about it.
9919 See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
9920 task_set_exception_ports (self, mask, our_exception_port,
9921 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
9922 }
9923 }
9924 }
9925 }
9926 #elif defined _WIN32 && ! defined __CYGWIN__
9927 /* Avoid a crash on native Windows. */
9928 #define WIN32_LEAN_AND_MEAN
9929 #include <windows.h>
9930 #include <winerror.h>
9931 static LONG WINAPI
9932 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
9933 {
9934 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
9935 {
9936 case EXCEPTION_ACCESS_VIOLATION:
9937 case EXCEPTION_IN_PAGE_ERROR:
9938 case EXCEPTION_STACK_OVERFLOW:
9939 case EXCEPTION_GUARD_PAGE:
9940 case EXCEPTION_PRIV_INSTRUCTION:
9941 case EXCEPTION_ILLEGAL_INSTRUCTION:
9942 case EXCEPTION_DATATYPE_MISALIGNMENT:
9943 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
9944 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
9945 exit (1);
9946 }
9947 return EXCEPTION_CONTINUE_SEARCH;
9948 }
9949 static void
9950 nocrash_init (void)
9951 {
9952 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
9953 }
9954 #else
9955 /* Avoid a crash on POSIX systems. */
9956 #include <signal.h>
9957 #include <unistd.h>
9958 /* A POSIX signal handler. */
9959 static void
9960 exception_handler (int sig)
9961 {
9962 _exit (1);
9963 }
9964 static void
9965 nocrash_init (void)
9966 {
9967 #ifdef SIGSEGV
9968 signal (SIGSEGV, exception_handler);
9969 #endif
9970 #ifdef SIGBUS
9971 signal (SIGBUS, exception_handler);
9972 #endif
9973 }
9974 #endif
9975
9976 #include <errno.h>
9977 #include <stdlib.h>
9978 #include <string.h>
9979
9980 int
9981 main (void)
9982 {
9983
9984 int result = 0;
9985 /* This test fails on Solaris 10. */
9986 {
9987 char *name = realpath ("conftest.a", NULL);
9988 if (!(name && *name == '/'))
9989 result |= 1;
9990 free (name);
9991 }
9992 /* This test fails on older versions of Cygwin. */
9993 {
9994 char *name = realpath ("conftest.b/../conftest.a", NULL);
9995 if (name != NULL)
9996 result |= 2;
9997 free (name);
9998 }
9999 /* This test fails on Cygwin 2.9. */
10000 #if HAVE_LSTAT
10001 {
10002 char *name = realpath ("conftest.l/../conftest.a", NULL);
10003 if (name != NULL || errno != ENOTDIR)
10004 result |= 4;
10005 free (name);
10006 }
10007 #endif
10008 /* This test fails on Mac OS X 10.13, OpenBSD 6.0. */
10009 {
10010 char *name = realpath ("conftest.a/", NULL);
10011 if (name != NULL)
10012 result |= 8;
10013 free (name);
10014 }
10015 /* This test fails on AIX 7, Solaris 10. */
10016 {
10017 char *name1 = realpath (".", NULL);
10018 char *name2 = realpath ("conftest.d//./..", NULL);
10019 if (! name1 || ! name2 || strcmp (name1, name2))
10020 result |= 16;
10021 free (name1);
10022 free (name2);
10023 }
10024 #ifdef __linux__
10025 /* On Linux, // is the same as /. See also double-slash-root.m4.
10026 realpath() should respect this.
10027 This test fails on musl libc 1.2.2. */
10028 {
10029 char *name = realpath ("//", NULL);
10030 if (! name || strcmp (name, "/"))
10031 result |= 32;
10032 free (name);
10033 }
10034 #endif
10035 return result;
10036
10037 ;
10038 return 0;
10039 }
10040
10041 _ACEOF
10042 if ac_fn_c_try_run "$LINENO"
10043 then :
10044 gl_cv_func_realpath_works=yes
10045 else $as_nop
10046 case $? in
10047 32) gl_cv_func_realpath_works=nearly ;;
10048 *) gl_cv_func_realpath_works=no ;;
10049 esac
10050
10051 fi
10052 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10053 conftest.$ac_objext conftest.beam conftest.$ac_ext
10054 fi
10055
10056 rm -rf conftest.a conftest.l conftest.d
10057
10058 fi
10059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
10060 printf "%s\n" "$gl_cv_func_realpath_works" >&6; }
10061 case "$gl_cv_func_realpath_works" in
10062 *yes)
10063
10064 printf "%s\n" "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
10065
10066 ;;
10067 *nearly)
10068
10069 printf "%s\n" "#define FUNC_REALPATH_NEARLY_WORKS 1" >>confdefs.h
10070
10071 ;;
10072 esac
10073
10074
10075
10076
10077
10078
10079
10080
10081 case "$host_os" in
10082 mingw*) ;;
10083 *) ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
10084 if test "x$ac_cv_func_getcwd" = xyes
10085 then :
10086 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
10087
10088 fi
10089 ;;
10090 esac
10091
10092
10093
10094
10095
10096
10097
10098 GL_GNULIB_ACCESS=0
10099
10100
10101
10102 GL_GNULIB_CHDIR=0
10103
10104
10105
10106 GL_GNULIB_CHOWN=0
10107
10108
10109
10110 GL_GNULIB_CLOSE=0
10111
10112
10113
10114 GL_GNULIB_COPY_FILE_RANGE=0
10115
10116
10117
10118 GL_GNULIB_DUP=0
10119
10120
10121
10122 GL_GNULIB_DUP2=0
10123
10124
10125
10126 GL_GNULIB_DUP3=0
10127
10128
10129
10130 GL_GNULIB_ENVIRON=0
10131
10132
10133
10134 GL_GNULIB_EUIDACCESS=0
10135
10136
10137
10138 GL_GNULIB_EXECL=0
10139
10140
10141
10142 GL_GNULIB_EXECLE=0
10143
10144
10145
10146 GL_GNULIB_EXECLP=0
10147
10148
10149
10150 GL_GNULIB_EXECV=0
10151
10152
10153
10154 GL_GNULIB_EXECVE=0
10155
10156
10157
10158 GL_GNULIB_EXECVP=0
10159
10160
10161
10162 GL_GNULIB_EXECVPE=0
10163
10164
10165
10166 GL_GNULIB_FACCESSAT=0
10167
10168
10169
10170 GL_GNULIB_FCHDIR=0
10171
10172
10173
10174 GL_GNULIB_FCHOWNAT=0
10175
10176
10177
10178 GL_GNULIB_FDATASYNC=0
10179
10180
10181
10182 GL_GNULIB_FSYNC=0
10183
10184
10185
10186 GL_GNULIB_FTRUNCATE=0
10187
10188
10189
10190 GL_GNULIB_GETCWD=0
10191
10192
10193
10194 GL_GNULIB_GETDOMAINNAME=0
10195
10196
10197
10198 GL_GNULIB_GETDTABLESIZE=0
10199
10200
10201
10202 GL_GNULIB_GETENTROPY=0
10203
10204
10205
10206 GL_GNULIB_GETGROUPS=0
10207
10208
10209
10210 GL_GNULIB_GETHOSTNAME=0
10211
10212
10213
10214 GL_GNULIB_GETLOGIN=0
10215
10216
10217
10218 GL_GNULIB_GETLOGIN_R=0
10219
10220
10221
10222 GL_GNULIB_GETOPT_POSIX=0
10223
10224
10225
10226 GL_GNULIB_GETPAGESIZE=0
10227
10228
10229
10230 GL_GNULIB_GETPASS=0
10231
10232
10233
10234 GL_GNULIB_GETPASS_GNU=0
10235
10236
10237
10238 GL_GNULIB_GETUSERSHELL=0
10239
10240
10241
10242 GL_GNULIB_GROUP_MEMBER=0
10243
10244
10245
10246 GL_GNULIB_ISATTY=0
10247
10248
10249
10250 GL_GNULIB_LCHOWN=0
10251
10252
10253
10254 GL_GNULIB_LINK=0
10255
10256
10257
10258 GL_GNULIB_LINKAT=0
10259
10260
10261
10262 GL_GNULIB_LSEEK=0
10263
10264
10265
10266 GL_GNULIB_PIPE=0
10267
10268
10269
10270 GL_GNULIB_PIPE2=0
10271
10272
10273
10274 GL_GNULIB_PREAD=0
10275
10276
10277
10278 GL_GNULIB_PWRITE=0
10279
10280
10281
10282 GL_GNULIB_READ=0
10283
10284
10285
10286 GL_GNULIB_READLINK=0
10287
10288
10289
10290 GL_GNULIB_READLINKAT=0
10291
10292
10293
10294 GL_GNULIB_RMDIR=0
10295
10296
10297
10298 GL_GNULIB_SETHOSTNAME=0
10299
10300
10301
10302 GL_GNULIB_SLEEP=0
10303
10304
10305
10306 GL_GNULIB_SYMLINK=0
10307
10308
10309
10310 GL_GNULIB_SYMLINKAT=0
10311
10312
10313
10314 GL_GNULIB_TRUNCATE=0
10315
10316
10317
10318 GL_GNULIB_TTYNAME_R=0
10319
10320
10321
10322 GL_GNULIB_UNISTD_H_GETOPT=0
10323
10324
10325
10326 GL_GNULIB_UNISTD_H_NONBLOCKING=0
10327
10328
10329
10330 GL_GNULIB_UNISTD_H_SIGPIPE=0
10331
10332
10333
10334 GL_GNULIB_UNLINK=0
10335
10336
10337
10338 GL_GNULIB_UNLINKAT=0
10339
10340
10341
10342 GL_GNULIB_USLEEP=0
10343
10344
10345
10346 GL_GNULIB_WRITE=0
10347
10348
10349
10350 GL_GNULIB_MDA_ACCESS=1
10351
10352
10353
10354 GL_GNULIB_MDA_CHDIR=1
10355
10356
10357
10358 GL_GNULIB_MDA_CLOSE=1
10359
10360
10361
10362 GL_GNULIB_MDA_DUP=1
10363
10364
10365
10366 GL_GNULIB_MDA_DUP2=1
10367
10368
10369
10370 GL_GNULIB_MDA_EXECL=1
10371
10372
10373
10374 GL_GNULIB_MDA_EXECLE=1
10375
10376
10377
10378 GL_GNULIB_MDA_EXECLP=1
10379
10380
10381
10382 GL_GNULIB_MDA_EXECV=1
10383
10384
10385
10386 GL_GNULIB_MDA_EXECVE=1
10387
10388
10389
10390 GL_GNULIB_MDA_EXECVP=1
10391
10392
10393
10394 GL_GNULIB_MDA_EXECVPE=1
10395
10396
10397
10398 GL_GNULIB_MDA_GETCWD=1
10399
10400
10401
10402 GL_GNULIB_MDA_GETPID=1
10403
10404
10405
10406 GL_GNULIB_MDA_ISATTY=1
10407
10408
10409
10410 GL_GNULIB_MDA_LSEEK=1
10411
10412
10413
10414 GL_GNULIB_MDA_READ=1
10415
10416
10417
10418 GL_GNULIB_MDA_RMDIR=1
10419
10420
10421
10422 GL_GNULIB_MDA_SWAB=1
10423
10424
10425
10426 GL_GNULIB_MDA_UNLINK=1
10427
10428
10429
10430 GL_GNULIB_MDA_WRITE=1
10431
10432
10433
10434
10435 HAVE_CHOWN=1;
10436 HAVE_COPY_FILE_RANGE=1;
10437 HAVE_DUP3=1;
10438 HAVE_EUIDACCESS=1;
10439 HAVE_EXECVPE=1;
10440 HAVE_FACCESSAT=1;
10441 HAVE_FCHDIR=1;
10442 HAVE_FCHOWNAT=1;
10443 HAVE_FDATASYNC=1;
10444 HAVE_FSYNC=1;
10445 HAVE_FTRUNCATE=1;
10446 HAVE_GETDTABLESIZE=1;
10447 HAVE_GETENTROPY=1;
10448 HAVE_GETGROUPS=1;
10449 HAVE_GETHOSTNAME=1;
10450 HAVE_GETLOGIN=1;
10451 HAVE_GETPAGESIZE=1;
10452 HAVE_GETPASS=1;
10453 HAVE_GROUP_MEMBER=1;
10454 HAVE_LCHOWN=1;
10455 HAVE_LINK=1;
10456 HAVE_LINKAT=1;
10457 HAVE_PIPE=1;
10458 HAVE_PIPE2=1;
10459 HAVE_PREAD=1;
10460 HAVE_PWRITE=1;
10461 HAVE_READLINK=1;
10462 HAVE_READLINKAT=1;
10463 HAVE_SETHOSTNAME=1;
10464 HAVE_SLEEP=1;
10465 HAVE_SYMLINK=1;
10466 HAVE_SYMLINKAT=1;
10467 HAVE_UNLINKAT=1;
10468 HAVE_USLEEP=1;
10469 HAVE_DECL_ENVIRON=1;
10470 HAVE_DECL_EXECVPE=1;
10471 HAVE_DECL_FCHDIR=1;
10472 HAVE_DECL_FDATASYNC=1;
10473 HAVE_DECL_GETDOMAINNAME=1;
10474 HAVE_DECL_GETLOGIN=1;
10475 HAVE_DECL_GETLOGIN_R=1;
10476 HAVE_DECL_GETPAGESIZE=1;
10477 HAVE_DECL_GETUSERSHELL=1;
10478 HAVE_DECL_SETHOSTNAME=1;
10479 HAVE_DECL_TRUNCATE=1;
10480 HAVE_DECL_TTYNAME_R=1;
10481 HAVE_OS_H=0;
10482 HAVE_SYS_PARAM_H=0;
10483 REPLACE_ACCESS=0;
10484 REPLACE_CHOWN=0;
10485 REPLACE_CLOSE=0;
10486 REPLACE_COPY_FILE_RANGE=0;
10487 REPLACE_DUP=0;
10488 REPLACE_DUP2=0;
10489 REPLACE_EXECL=0;
10490 REPLACE_EXECLE=0;
10491 REPLACE_EXECLP=0;
10492 REPLACE_EXECV=0;
10493 REPLACE_EXECVE=0;
10494 REPLACE_EXECVP=0;
10495 REPLACE_EXECVPE=0;
10496 REPLACE_FACCESSAT=0;
10497 REPLACE_FCHOWNAT=0;
10498 REPLACE_FTRUNCATE=0;
10499 REPLACE_GETCWD=0;
10500 REPLACE_GETDOMAINNAME=0;
10501 REPLACE_GETDTABLESIZE=0;
10502 REPLACE_GETLOGIN_R=0;
10503 REPLACE_GETGROUPS=0;
10504 REPLACE_GETPAGESIZE=0;
10505 REPLACE_GETPASS=0;
10506 REPLACE_GETPASS_FOR_GETPASS_GNU=0;
10507 REPLACE_ISATTY=0;
10508 REPLACE_LCHOWN=0;
10509 REPLACE_LINK=0;
10510 REPLACE_LINKAT=0;
10511 REPLACE_LSEEK=0;
10512 REPLACE_PREAD=0;
10513 REPLACE_PWRITE=0;
10514 REPLACE_READ=0;
10515 REPLACE_READLINK=0;
10516 REPLACE_READLINKAT=0;
10517 REPLACE_RMDIR=0;
10518 REPLACE_SLEEP=0;
10519 REPLACE_SYMLINK=0;
10520 REPLACE_SYMLINKAT=0;
10521 REPLACE_TRUNCATE=0;
10522 REPLACE_TTYNAME_R=0;
10523 REPLACE_UNLINK=0;
10524 REPLACE_UNLINKAT=0;
10525 REPLACE_USLEEP=0;
10526 REPLACE_WRITE=0;
10527 UNISTD_H_HAVE_SYS_RANDOM_H=0;
10528 UNISTD_H_HAVE_WINSOCK2_H=0;
10529 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
10530
10531
10532
10533
10534
10535 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
10536 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
10537
10538 printf "%s\n" "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
10539
10540 else
10541 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
10542 fi
10543
10544
10545
10546 gl_mda_defines='
10547 #if defined _WIN32 && !defined __CYGWIN__
10548 #define access _access
10549 #define chdir _chdir
10550 #define chmod _chmod
10551 #define close _close
10552 #define creat _creat
10553 #define dup _dup
10554 #define dup2 _dup2
10555 #define ecvt _ecvt
10556 #define execl _execl
10557 #define execle _execle
10558 #define execlp _execlp
10559 #define execv _execv
10560 #define execve _execve
10561 #define execvp _execvp
10562 #define execvpe _execvpe
10563 #define fcloseall _fcloseall
10564 #define fcvt _fcvt
10565 #define fdopen _fdopen
10566 #define fileno _fileno
10567 #define gcvt _gcvt
10568 #define getcwd _getcwd
10569 #define getpid _getpid
10570 #define getw _getw
10571 #define isatty _isatty
10572 #define j0 _j0
10573 #define j1 _j1
10574 #define jn _jn
10575 #define lfind _lfind
10576 #define lsearch _lsearch
10577 #define lseek _lseek
10578 #define memccpy _memccpy
10579 #define mkdir _mkdir
10580 #define mktemp _mktemp
10581 #define open _open
10582 #define putenv _putenv
10583 #define putw _putw
10584 #define read _read
10585 #define rmdir _rmdir
10586 #define strdup _strdup
10587 #define swab _swab
10588 #define tempnam _tempnam
10589 #define tzset _tzset
10590 #define umask _umask
10591 #define unlink _unlink
10592 #define utime _utime
10593 #define wcsdup _wcsdup
10594 #define write _write
10595 #define y0 _y0
10596 #define y1 _y1
10597 #define yn _yn
10598 #endif
10599 '
10600
10601
10602
10603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
10604 printf %s "checking whether the preprocessor supports include_next... " >&6; }
10605 if test ${gl_cv_have_include_next+y}
10606 then :
10607 printf %s "(cached) " >&6
10608 else $as_nop
10609 rm -rf conftestd1a conftestd1b conftestd2
10610 mkdir conftestd1a conftestd1b conftestd2
10611 cat <<EOF > conftestd1a/conftest.h
10612 #define DEFINED_IN_CONFTESTD1
10613 #include_next <conftest.h>
10614 #ifdef DEFINED_IN_CONFTESTD2
10615 int foo;
10616 #else
10617 #error "include_next doesn't work"
10618 #endif
10619 EOF
10620 cat <<EOF > conftestd1b/conftest.h
10621 #define DEFINED_IN_CONFTESTD1
10622 #include <stdio.h>
10623 #include_next <conftest.h>
10624 #ifdef DEFINED_IN_CONFTESTD2
10625 int foo;
10626 #else
10627 #error "include_next doesn't work"
10628 #endif
10629 EOF
10630 cat <<EOF > conftestd2/conftest.h
10631 #ifndef DEFINED_IN_CONFTESTD1
10632 #error "include_next test doesn't work"
10633 #endif
10634 #define DEFINED_IN_CONFTESTD2
10635 EOF
10636 gl_save_CPPFLAGS="$CPPFLAGS"
10637 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
10638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10639 /* end confdefs.h. */
10640 #include <conftest.h>
10641 _ACEOF
10642 if ac_fn_c_try_compile "$LINENO"
10643 then :
10644 gl_cv_have_include_next=yes
10645 else $as_nop
10646 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
10647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10648 /* end confdefs.h. */
10649 #include <conftest.h>
10650 _ACEOF
10651 if ac_fn_c_try_compile "$LINENO"
10652 then :
10653 gl_cv_have_include_next=buggy
10654 else $as_nop
10655 gl_cv_have_include_next=no
10656 fi
10657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10658
10659 fi
10660 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10661 CPPFLAGS="$gl_save_CPPFLAGS"
10662 rm -rf conftestd1a conftestd1b conftestd2
10663
10664 fi
10665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
10666 printf "%s\n" "$gl_cv_have_include_next" >&6; }
10667 PRAGMA_SYSTEM_HEADER=
10668 if test $gl_cv_have_include_next = yes; then
10669 INCLUDE_NEXT=include_next
10670 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
10671 if test -n "$GCC"; then
10672 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
10673 fi
10674 else
10675 if test $gl_cv_have_include_next = buggy; then
10676 INCLUDE_NEXT=include
10677 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
10678 else
10679 INCLUDE_NEXT=include
10680 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
10681 fi
10682 fi
10683
10684
10685
10686
10687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether source code line length is unlimited" >&5
10688 printf %s "checking whether source code line length is unlimited... " >&6; }
10689 if test ${gl_cv_source_line_length_unlimited+y}
10690 then :
10691 printf %s "(cached) " >&6
10692 else $as_nop
10693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h. */
10695
10696 #ifdef __TANDEM
10697 choke me
10698 #endif
10699
10700 _ACEOF
10701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10702 $EGREP "choke me" >/dev/null 2>&1
10703 then :
10704 gl_cv_source_line_length_unlimited=no
10705 else $as_nop
10706 gl_cv_source_line_length_unlimited=yes
10707 fi
10708 rm -rf conftest*
10709
10710
10711 fi
10712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_source_line_length_unlimited" >&5
10713 printf "%s\n" "$gl_cv_source_line_length_unlimited" >&6; }
10714 if test $gl_cv_source_line_length_unlimited = no; then
10715 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
10716 else
10717 PRAGMA_COLUMNS=
10718 fi
10719
10720
10721
10722
10723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
10724 printf %s "checking for complete errno.h... " >&6; }
10725 if test ${gl_cv_header_errno_h_complete+y}
10726 then :
10727 printf %s "(cached) " >&6
10728 else $as_nop
10729
10730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10731 /* end confdefs.h. */
10732
10733 #include <errno.h>
10734 #if !defined ETXTBSY
10735 booboo
10736 #endif
10737 #if !defined ENOMSG
10738 booboo
10739 #endif
10740 #if !defined EIDRM
10741 booboo
10742 #endif
10743 #if !defined ENOLINK
10744 booboo
10745 #endif
10746 #if !defined EPROTO
10747 booboo
10748 #endif
10749 #if !defined EMULTIHOP
10750 booboo
10751 #endif
10752 #if !defined EBADMSG
10753 booboo
10754 #endif
10755 #if !defined EOVERFLOW
10756 booboo
10757 #endif
10758 #if !defined ENOTSUP
10759 booboo
10760 #endif
10761 #if !defined ENETRESET
10762 booboo
10763 #endif
10764 #if !defined ECONNABORTED
10765 booboo
10766 #endif
10767 #if !defined ESTALE
10768 booboo
10769 #endif
10770 #if !defined EDQUOT
10771 booboo
10772 #endif
10773 #if !defined ECANCELED
10774 booboo
10775 #endif
10776 #if !defined EOWNERDEAD
10777 booboo
10778 #endif
10779 #if !defined ENOTRECOVERABLE
10780 booboo
10781 #endif
10782 #if !defined EILSEQ
10783 booboo
10784 #endif
10785
10786 _ACEOF
10787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10788 $EGREP "booboo" >/dev/null 2>&1
10789 then :
10790 gl_cv_header_errno_h_complete=no
10791 else $as_nop
10792 gl_cv_header_errno_h_complete=yes
10793 fi
10794 rm -rf conftest*
10795
10796
10797 fi
10798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
10799 printf "%s\n" "$gl_cv_header_errno_h_complete" >&6; }
10800 if test $gl_cv_header_errno_h_complete = yes; then
10801 GL_GENERATE_ERRNO_H=false
10802 else
10803
10804
10805
10806
10807
10808
10809
10810
10811 if test $gl_cv_have_include_next = yes; then
10812 gl_cv_next_errno_h='<'errno.h'>'
10813 else
10814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
10815 printf %s "checking absolute name of <errno.h>... " >&6; }
10816 if test ${gl_cv_next_errno_h+y}
10817 then :
10818 printf %s "(cached) " >&6
10819 else $as_nop
10820
10821
10822
10823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10824 /* end confdefs.h. */
10825 #include <errno.h>
10826 _ACEOF
10827 case "$host_os" in
10828 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10829 *) gl_absname_cpp="$ac_cpp" ;;
10830 esac
10831
10832 case "$host_os" in
10833 mingw*)
10834 gl_dirsep_regex='[/\\]'
10835 ;;
10836 *)
10837 gl_dirsep_regex='\/'
10838 ;;
10839 esac
10840 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10841 gl_header_literal_regex=`echo 'errno.h' \
10842 | sed -e "$gl_make_literal_regex_sed"`
10843 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10844 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10845 s|^/[^/]|//&|
10846 p
10847 q
10848 }'
10849
10850 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10851 sed -n "$gl_absolute_header_sed"`
10852
10853 gl_header=$gl_cv_absolute_errno_h
10854 gl_cv_next_errno_h='"'$gl_header'"'
10855
10856
10857 fi
10858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
10859 printf "%s\n" "$gl_cv_next_errno_h" >&6; }
10860 fi
10861 NEXT_ERRNO_H=$gl_cv_next_errno_h
10862
10863 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10864 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10865 gl_next_as_first_directive='<'errno.h'>'
10866 else
10867 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10868 gl_next_as_first_directive=$gl_cv_next_errno_h
10869 fi
10870 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
10871
10872
10873
10874
10875 GL_GENERATE_ERRNO_H=true
10876 fi
10877
10878 if $GL_GENERATE_ERRNO_H; then
10879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
10880 printf %s "checking for EMULTIHOP value... " >&6; }
10881 if test ${gl_cv_header_errno_h_EMULTIHOP+y}
10882 then :
10883 printf %s "(cached) " >&6
10884 else $as_nop
10885
10886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10887 /* end confdefs.h. */
10888
10889 #include <errno.h>
10890 #ifdef EMULTIHOP
10891 yes
10892 #endif
10893
10894 _ACEOF
10895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10896 $EGREP "yes" >/dev/null 2>&1
10897 then :
10898 gl_cv_header_errno_h_EMULTIHOP=yes
10899 else $as_nop
10900 gl_cv_header_errno_h_EMULTIHOP=no
10901 fi
10902 rm -rf conftest*
10903
10904 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
10905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10906 /* end confdefs.h. */
10907
10908 #define _XOPEN_SOURCE_EXTENDED 1
10909 #include <errno.h>
10910 #ifdef EMULTIHOP
10911 yes
10912 #endif
10913
10914 _ACEOF
10915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10916 $EGREP "yes" >/dev/null 2>&1
10917 then :
10918 gl_cv_header_errno_h_EMULTIHOP=hidden
10919 fi
10920 rm -rf conftest*
10921
10922 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
10923 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
10924 #define _XOPEN_SOURCE_EXTENDED 1
10925 #include <errno.h>
10926 /* The following two lines are a workaround against an autoconf-2.52 bug. */
10927 #include <stdio.h>
10928 #include <stdlib.h>
10929 "
10930 then :
10931
10932 fi
10933
10934 fi
10935 fi
10936
10937 fi
10938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
10939 printf "%s\n" "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
10940 case $gl_cv_header_errno_h_EMULTIHOP in
10941 yes | no)
10942 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
10943 ;;
10944 *)
10945 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
10946 ;;
10947 esac
10948
10949
10950 fi
10951
10952
10953 if $GL_GENERATE_ERRNO_H; then
10954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
10955 printf %s "checking for ENOLINK value... " >&6; }
10956 if test ${gl_cv_header_errno_h_ENOLINK+y}
10957 then :
10958 printf %s "(cached) " >&6
10959 else $as_nop
10960
10961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10962 /* end confdefs.h. */
10963
10964 #include <errno.h>
10965 #ifdef ENOLINK
10966 yes
10967 #endif
10968
10969 _ACEOF
10970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10971 $EGREP "yes" >/dev/null 2>&1
10972 then :
10973 gl_cv_header_errno_h_ENOLINK=yes
10974 else $as_nop
10975 gl_cv_header_errno_h_ENOLINK=no
10976 fi
10977 rm -rf conftest*
10978
10979 if test $gl_cv_header_errno_h_ENOLINK = no; then
10980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10981 /* end confdefs.h. */
10982
10983 #define _XOPEN_SOURCE_EXTENDED 1
10984 #include <errno.h>
10985 #ifdef ENOLINK
10986 yes
10987 #endif
10988
10989 _ACEOF
10990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10991 $EGREP "yes" >/dev/null 2>&1
10992 then :
10993 gl_cv_header_errno_h_ENOLINK=hidden
10994 fi
10995 rm -rf conftest*
10996
10997 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
10998 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
10999 #define _XOPEN_SOURCE_EXTENDED 1
11000 #include <errno.h>
11001 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11002 #include <stdio.h>
11003 #include <stdlib.h>
11004 "
11005 then :
11006
11007 fi
11008
11009 fi
11010 fi
11011
11012 fi
11013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
11014 printf "%s\n" "$gl_cv_header_errno_h_ENOLINK" >&6; }
11015 case $gl_cv_header_errno_h_ENOLINK in
11016 yes | no)
11017 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
11018 ;;
11019 *)
11020 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
11021 ;;
11022 esac
11023
11024
11025 fi
11026
11027
11028 if $GL_GENERATE_ERRNO_H; then
11029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
11030 printf %s "checking for EOVERFLOW value... " >&6; }
11031 if test ${gl_cv_header_errno_h_EOVERFLOW+y}
11032 then :
11033 printf %s "(cached) " >&6
11034 else $as_nop
11035
11036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11037 /* end confdefs.h. */
11038
11039 #include <errno.h>
11040 #ifdef EOVERFLOW
11041 yes
11042 #endif
11043
11044 _ACEOF
11045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11046 $EGREP "yes" >/dev/null 2>&1
11047 then :
11048 gl_cv_header_errno_h_EOVERFLOW=yes
11049 else $as_nop
11050 gl_cv_header_errno_h_EOVERFLOW=no
11051 fi
11052 rm -rf conftest*
11053
11054 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
11055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11056 /* end confdefs.h. */
11057
11058 #define _XOPEN_SOURCE_EXTENDED 1
11059 #include <errno.h>
11060 #ifdef EOVERFLOW
11061 yes
11062 #endif
11063
11064 _ACEOF
11065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11066 $EGREP "yes" >/dev/null 2>&1
11067 then :
11068 gl_cv_header_errno_h_EOVERFLOW=hidden
11069 fi
11070 rm -rf conftest*
11071
11072 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
11073 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
11074 #define _XOPEN_SOURCE_EXTENDED 1
11075 #include <errno.h>
11076 /* The following two lines are a workaround against an autoconf-2.52 bug. */
11077 #include <stdio.h>
11078 #include <stdlib.h>
11079 "
11080 then :
11081
11082 fi
11083
11084 fi
11085 fi
11086
11087 fi
11088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
11089 printf "%s\n" "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
11090 case $gl_cv_header_errno_h_EOVERFLOW in
11091 yes | no)
11092 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
11093 ;;
11094 *)
11095 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
11096 ;;
11097 esac
11098
11099
11100 fi
11101
11102
11103
11104
11105
11106
11107 HAVE_FCNTL=1;
11108 HAVE_OPENAT=1;
11109 REPLACE_CREAT=0;
11110 REPLACE_FCNTL=0;
11111 REPLACE_OPEN=0;
11112 REPLACE_OPENAT=0;
11113
11114
11115
11116
11117 GL_GNULIB_CREAT=0
11118
11119
11120
11121 GL_GNULIB_FCNTL=0
11122
11123
11124
11125 GL_GNULIB_NONBLOCKING=0
11126
11127
11128
11129 GL_GNULIB_OPEN=0
11130
11131
11132
11133 GL_GNULIB_OPENAT=0
11134
11135
11136
11137 GL_GNULIB_MDA_CREAT=1
11138
11139
11140
11141 GL_GNULIB_MDA_OPEN=1
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
11152 printf %s "checking for working fcntl.h... " >&6; }
11153 if test ${gl_cv_header_working_fcntl_h+y}
11154 then :
11155 printf %s "(cached) " >&6
11156 else $as_nop
11157 if test "$cross_compiling" = yes
11158 then :
11159 case "$host_os" in
11160 # Guess 'no' on native Windows.
11161 mingw*) gl_cv_header_working_fcntl_h='no' ;;
11162 *) gl_cv_header_working_fcntl_h=cross-compiling ;;
11163 esac
11164
11165 else $as_nop
11166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11167 /* end confdefs.h. */
11168 #include <sys/types.h>
11169 #include <sys/stat.h>
11170 #if HAVE_UNISTD_H
11171 # include <unistd.h>
11172 #else /* on Windows with MSVC */
11173 # include <io.h>
11174 # include <stdlib.h>
11175 # defined sleep(n) _sleep ((n) * 1000)
11176 #endif
11177 #include <fcntl.h>
11178
11179
11180 $gl_mda_defines
11181
11182 #ifndef O_NOATIME
11183 #define O_NOATIME 0
11184 #endif
11185 #ifndef O_NOFOLLOW
11186 #define O_NOFOLLOW 0
11187 #endif
11188 static int const constants[] =
11189 {
11190 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
11191 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
11192 };
11193
11194 int
11195 main (void)
11196 {
11197
11198 int result = !constants;
11199 #if HAVE_SYMLINK
11200 {
11201 static char const sym[] = "conftest.sym";
11202 if (symlink ("/dev/null", sym) != 0)
11203 result |= 2;
11204 else
11205 {
11206 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
11207 if (fd >= 0)
11208 {
11209 close (fd);
11210 result |= 4;
11211 }
11212 }
11213 if (unlink (sym) != 0 || symlink (".", sym) != 0)
11214 result |= 2;
11215 else
11216 {
11217 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
11218 if (fd >= 0)
11219 {
11220 close (fd);
11221 result |= 4;
11222 }
11223 }
11224 unlink (sym);
11225 }
11226 #endif
11227 {
11228 static char const file[] = "confdefs.h";
11229 int fd = open (file, O_RDONLY | O_NOATIME);
11230 if (fd < 0)
11231 result |= 8;
11232 else
11233 {
11234 struct stat st0;
11235 if (fstat (fd, &st0) != 0)
11236 result |= 16;
11237 else
11238 {
11239 char c;
11240 sleep (1);
11241 if (read (fd, &c, 1) != 1)
11242 result |= 24;
11243 else
11244 {
11245 if (close (fd) != 0)
11246 result |= 32;
11247 else
11248 {
11249 struct stat st1;
11250 if (stat (file, &st1) != 0)
11251 result |= 40;
11252 else
11253 if (st0.st_atime != st1.st_atime)
11254 result |= 64;
11255 }
11256 }
11257 }
11258 }
11259 }
11260 return result;
11261 ;
11262 return 0;
11263 }
11264 _ACEOF
11265 if ac_fn_c_try_run "$LINENO"
11266 then :
11267 gl_cv_header_working_fcntl_h=yes
11268 else $as_nop
11269 case $? in #(
11270 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
11271 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
11272 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
11273 *) gl_cv_header_working_fcntl_h='no';;
11274 esac
11275 fi
11276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11277 conftest.$ac_objext conftest.beam conftest.$ac_ext
11278 fi
11279
11280
11281 fi
11282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
11283 printf "%s\n" "$gl_cv_header_working_fcntl_h" >&6; }
11284
11285 case $gl_cv_header_working_fcntl_h in #(
11286 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
11287 *) ac_val=1;;
11288 esac
11289
11290 printf "%s\n" "#define HAVE_WORKING_O_NOATIME $ac_val" >>confdefs.h
11291
11292
11293 case $gl_cv_header_working_fcntl_h in #(
11294 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
11295 *) ac_val=1;;
11296 esac
11297
11298 printf "%s\n" "#define HAVE_WORKING_O_NOFOLLOW $ac_val" >>confdefs.h
11299
11300
11301
11302 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
11303 "
11304 if test "x$ac_cv_type_pid_t" = xyes
11305 then :
11306
11307 else $as_nop
11308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11309 /* end confdefs.h. */
11310
11311 #if defined _WIN64 && !defined __CYGWIN__
11312 LLP64
11313 #endif
11314
11315 int
11316 main (void)
11317 {
11318
11319 ;
11320 return 0;
11321 }
11322
11323 _ACEOF
11324 if ac_fn_c_try_compile "$LINENO"
11325 then :
11326 ac_pid_type='int'
11327 else $as_nop
11328 ac_pid_type='__int64'
11329 fi
11330 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11331
11332 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
11333
11334
11335 fi
11336
11337
11338 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11339 if test "x$ac_cv_type_mode_t" = xyes
11340 then :
11341
11342 else $as_nop
11343
11344 printf "%s\n" "#define mode_t int" >>confdefs.h
11345
11346 fi
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359 if test $gl_cv_have_include_next = yes; then
11360 gl_cv_next_fcntl_h='<'fcntl.h'>'
11361 else
11362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
11363 printf %s "checking absolute name of <fcntl.h>... " >&6; }
11364 if test ${gl_cv_next_fcntl_h+y}
11365 then :
11366 printf %s "(cached) " >&6
11367 else $as_nop
11368
11369
11370
11371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11372 /* end confdefs.h. */
11373 #include <fcntl.h>
11374 _ACEOF
11375 case "$host_os" in
11376 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11377 *) gl_absname_cpp="$ac_cpp" ;;
11378 esac
11379
11380 case "$host_os" in
11381 mingw*)
11382 gl_dirsep_regex='[/\\]'
11383 ;;
11384 *)
11385 gl_dirsep_regex='\/'
11386 ;;
11387 esac
11388 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11389 gl_header_literal_regex=`echo 'fcntl.h' \
11390 | sed -e "$gl_make_literal_regex_sed"`
11391 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11392 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11393 s|^/[^/]|//&|
11394 p
11395 q
11396 }'
11397
11398 gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11399 sed -n "$gl_absolute_header_sed"`
11400
11401 gl_header=$gl_cv_absolute_fcntl_h
11402 gl_cv_next_fcntl_h='"'$gl_header'"'
11403
11404
11405 fi
11406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
11407 printf "%s\n" "$gl_cv_next_fcntl_h" >&6; }
11408 fi
11409 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
11410
11411 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11412 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11413 gl_next_as_first_directive='<'fcntl.h'>'
11414 else
11415 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11416 gl_next_as_first_directive=$gl_cv_next_fcntl_h
11417 fi
11418 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433 HAVE_FCHMODAT=1;
11434 HAVE_FSTATAT=1;
11435 HAVE_FUTIMENS=1;
11436 HAVE_GETUMASK=1;
11437 HAVE_LCHMOD=1;
11438 HAVE_LSTAT=1;
11439 HAVE_MKDIRAT=1;
11440 HAVE_MKFIFO=1;
11441 HAVE_MKFIFOAT=1;
11442 HAVE_MKNOD=1;
11443 HAVE_MKNODAT=1;
11444 HAVE_UTIMENSAT=1;
11445 REPLACE_FCHMODAT=0;
11446 REPLACE_FSTAT=0;
11447 REPLACE_FSTATAT=0;
11448 REPLACE_FUTIMENS=0;
11449 REPLACE_LSTAT=0;
11450 REPLACE_MKDIR=0;
11451 REPLACE_MKFIFO=0;
11452 REPLACE_MKFIFOAT=0;
11453 REPLACE_MKNOD=0;
11454 REPLACE_MKNODAT=0;
11455 REPLACE_STAT=0;
11456 REPLACE_UTIMENSAT=0;
11457
11458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11459 printf %s "checking whether stat file-mode macros are broken... " >&6; }
11460 if test ${ac_cv_header_stat_broken+y}
11461 then :
11462 printf %s "(cached) " >&6
11463 else $as_nop
11464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11465 /* end confdefs.h. */
11466 #include <sys/types.h>
11467 #include <sys/stat.h>
11468
11469 #if defined S_ISBLK && defined S_IFDIR
11470 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11471 #endif
11472
11473 #if defined S_ISBLK && defined S_IFCHR
11474 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11475 #endif
11476
11477 #if defined S_ISLNK && defined S_IFREG
11478 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11479 #endif
11480
11481 #if defined S_ISSOCK && defined S_IFREG
11482 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11483 #endif
11484
11485 _ACEOF
11486 if ac_fn_c_try_compile "$LINENO"
11487 then :
11488 ac_cv_header_stat_broken=no
11489 else $as_nop
11490 ac_cv_header_stat_broken=yes
11491 fi
11492 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11493 fi
11494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11495 printf "%s\n" "$ac_cv_header_stat_broken" >&6; }
11496 if test $ac_cv_header_stat_broken = yes; then
11497
11498 printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11499
11500 fi
11501
11502
11503
11504 case "$host_os" in
11505 mingw*)
11506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
11507 printf %s "checking for 64-bit off_t... " >&6; }
11508 if test ${gl_cv_type_off_t_64+y}
11509 then :
11510 printf %s "(cached) " >&6
11511 else $as_nop
11512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11513 /* end confdefs.h. */
11514 #include <sys/types.h>
11515 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
11516
11517 int
11518 main (void)
11519 {
11520
11521 ;
11522 return 0;
11523 }
11524 _ACEOF
11525 if ac_fn_c_try_compile "$LINENO"
11526 then :
11527 gl_cv_type_off_t_64=yes
11528 else $as_nop
11529 gl_cv_type_off_t_64=no
11530 fi
11531 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11532
11533 fi
11534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
11535 printf "%s\n" "$gl_cv_type_off_t_64" >&6; }
11536 if test $gl_cv_type_off_t_64 = no; then
11537 WINDOWS_64_BIT_OFF_T=1
11538 else
11539 WINDOWS_64_BIT_OFF_T=0
11540 fi
11541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
11542 printf %s "checking for 64-bit st_size... " >&6; }
11543 if test ${gl_cv_member_st_size_64+y}
11544 then :
11545 printf %s "(cached) " >&6
11546 else $as_nop
11547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11548 /* end confdefs.h. */
11549 #include <sys/types.h>
11550 struct stat buf;
11551 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
11552
11553 int
11554 main (void)
11555 {
11556
11557 ;
11558 return 0;
11559 }
11560 _ACEOF
11561 if ac_fn_c_try_compile "$LINENO"
11562 then :
11563 gl_cv_member_st_size_64=yes
11564 else $as_nop
11565 gl_cv_member_st_size_64=no
11566 fi
11567 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11568
11569 fi
11570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
11571 printf "%s\n" "$gl_cv_member_st_size_64" >&6; }
11572 if test $gl_cv_member_st_size_64 = no; then
11573 WINDOWS_64_BIT_ST_SIZE=1
11574 else
11575 WINDOWS_64_BIT_ST_SIZE=0
11576 fi
11577 ;;
11578 *)
11579 WINDOWS_64_BIT_OFF_T=0
11580 WINDOWS_64_BIT_ST_SIZE=0
11581 ;;
11582 esac
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598 if test $gl_cv_have_include_next = yes; then
11599 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
11600 else
11601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
11602 printf %s "checking absolute name of <sys/stat.h>... " >&6; }
11603 if test ${gl_cv_next_sys_stat_h+y}
11604 then :
11605 printf %s "(cached) " >&6
11606 else $as_nop
11607
11608 if test $ac_cv_header_sys_stat_h = yes; then
11609
11610
11611
11612
11613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11614 /* end confdefs.h. */
11615 #include <sys/stat.h>
11616 _ACEOF
11617 case "$host_os" in
11618 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11619 *) gl_absname_cpp="$ac_cpp" ;;
11620 esac
11621
11622 case "$host_os" in
11623 mingw*)
11624 gl_dirsep_regex='[/\\]'
11625 ;;
11626 *)
11627 gl_dirsep_regex='\/'
11628 ;;
11629 esac
11630 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11631 gl_header_literal_regex=`echo 'sys/stat.h' \
11632 | sed -e "$gl_make_literal_regex_sed"`
11633 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11634 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11635 s|^/[^/]|//&|
11636 p
11637 q
11638 }'
11639
11640 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11641 sed -n "$gl_absolute_header_sed"`
11642
11643 gl_header=$gl_cv_absolute_sys_stat_h
11644 gl_cv_next_sys_stat_h='"'$gl_header'"'
11645 else
11646 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
11647 fi
11648
11649
11650 fi
11651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
11652 printf "%s\n" "$gl_cv_next_sys_stat_h" >&6; }
11653 fi
11654 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
11655
11656 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11657 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11658 gl_next_as_first_directive='<'sys/stat.h'>'
11659 else
11660 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11661 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
11662 fi
11663 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
11664
11665
11666
11667
11668
11669
11670
11671
11672 WINDOWS_STAT_TIMESPEC=0
11673
11674
11675
11676
11677
11678
11679
11680
11681 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
11682 #include <sys/stat.h>
11683 "
11684 if test "x$ac_cv_type_nlink_t" = xyes
11685 then :
11686
11687 else $as_nop
11688
11689 printf "%s\n" "#define nlink_t int" >>confdefs.h
11690
11691 fi
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702 case "$host_os" in
11703 mingw*)
11704 ac_fn_c_check_header_compile "$LINENO" "sdkddkver.h" "ac_cv_header_sdkddkver_h" "$ac_includes_default"
11705 if test "x$ac_cv_header_sdkddkver_h" = xyes
11706 then :
11707 printf "%s\n" "#define HAVE_SDKDDKVER_H 1" >>confdefs.h
11708
11709 fi
11710
11711 ;;
11712 esac
11713
11714
11715
11716
11717
11718
11719
11720 GL_GNULIB_FCHMODAT=0
11721
11722
11723
11724 GL_GNULIB_FSTAT=0
11725
11726
11727
11728 GL_GNULIB_FSTATAT=0
11729
11730
11731
11732 GL_GNULIB_FUTIMENS=0
11733
11734
11735
11736 GL_GNULIB_GETUMASK=0
11737
11738
11739
11740 GL_GNULIB_LCHMOD=0
11741
11742
11743
11744 GL_GNULIB_LSTAT=0
11745
11746
11747
11748 GL_GNULIB_MKDIR=0
11749
11750
11751
11752 GL_GNULIB_MKDIRAT=0
11753
11754
11755
11756 GL_GNULIB_MKFIFO=0
11757
11758
11759
11760 GL_GNULIB_MKFIFOAT=0
11761
11762
11763
11764 GL_GNULIB_MKNOD=0
11765
11766
11767
11768 GL_GNULIB_MKNODAT=0
11769
11770
11771
11772 GL_GNULIB_STAT=0
11773
11774
11775
11776 GL_GNULIB_UTIMENSAT=0
11777
11778
11779
11780 GL_GNULIB_OVERRIDES_STRUCT_STAT=0
11781
11782
11783
11784 GL_GNULIB_MDA_CHMOD=1
11785
11786
11787
11788 GL_GNULIB_MDA_MKDIR=1
11789
11790
11791
11792 GL_GNULIB_MDA_UMASK=1
11793
11794
11795
11796
11797 HAVE_DECL_FCLOSEALL=1;
11798 HAVE_DECL_FPURGE=1;
11799 HAVE_DECL_FSEEKO=1;
11800 HAVE_DECL_FTELLO=1;
11801 HAVE_DECL_GETDELIM=1;
11802 HAVE_DECL_GETLINE=1;
11803 HAVE_DECL_OBSTACK_PRINTF=1;
11804 HAVE_DECL_SNPRINTF=1;
11805 HAVE_DECL_VSNPRINTF=1;
11806 HAVE_DPRINTF=1;
11807 HAVE_FSEEKO=1;
11808 HAVE_FTELLO=1;
11809 HAVE_PCLOSE=1;
11810 HAVE_POPEN=1;
11811 HAVE_RENAMEAT=1;
11812 HAVE_VASPRINTF=1;
11813 HAVE_VDPRINTF=1;
11814 REPLACE_DPRINTF=0;
11815 REPLACE_FCLOSE=0;
11816 REPLACE_FDOPEN=0;
11817 REPLACE_FFLUSH=0;
11818 REPLACE_FOPEN=0;
11819 REPLACE_FOPEN_FOR_FOPEN_GNU=0;
11820 REPLACE_FPRINTF=0;
11821 REPLACE_FPURGE=0;
11822 REPLACE_FREOPEN=0;
11823 REPLACE_FSEEK=0;
11824 REPLACE_FSEEKO=0;
11825 REPLACE_FTELL=0;
11826 REPLACE_FTELLO=0;
11827 REPLACE_GETDELIM=0;
11828 REPLACE_GETLINE=0;
11829 REPLACE_OBSTACK_PRINTF=0;
11830 REPLACE_PERROR=0;
11831 REPLACE_POPEN=0;
11832 REPLACE_PRINTF=0;
11833 REPLACE_REMOVE=0;
11834 REPLACE_RENAME=0;
11835 REPLACE_RENAMEAT=0;
11836 REPLACE_SNPRINTF=0;
11837 REPLACE_SPRINTF=0;
11838 REPLACE_STDIO_READ_FUNCS=0;
11839 REPLACE_STDIO_WRITE_FUNCS=0;
11840 REPLACE_TMPFILE=0;
11841 REPLACE_VASPRINTF=0;
11842 REPLACE_VDPRINTF=0;
11843 REPLACE_VFPRINTF=0;
11844 REPLACE_VPRINTF=0;
11845 REPLACE_VSNPRINTF=0;
11846 REPLACE_VSPRINTF=0;
11847
11848 ac_fn_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
11849 if test "x$ac_cv_have_decl_getdelim" = xyes
11850 then :
11851 ac_have_decl=1
11852 else $as_nop
11853 ac_have_decl=0
11854 fi
11855 printf "%s\n" "#define HAVE_DECL_GETDELIM $ac_have_decl" >>confdefs.h
11856
11857
11858
11859
11860 GL_GNULIB_DPRINTF=0
11861
11862
11863
11864 GL_GNULIB_FCLOSE=0
11865
11866
11867
11868 GL_GNULIB_FDOPEN=0
11869
11870
11871
11872 GL_GNULIB_FFLUSH=0
11873
11874
11875
11876 GL_GNULIB_FGETC=0
11877
11878
11879
11880 GL_GNULIB_FGETS=0
11881
11882
11883
11884 GL_GNULIB_FOPEN=0
11885
11886
11887
11888 GL_GNULIB_FOPEN_GNU=0
11889
11890
11891
11892 GL_GNULIB_FPRINTF=0
11893
11894
11895
11896 GL_GNULIB_FPRINTF_POSIX=0
11897
11898
11899
11900 GL_GNULIB_FPURGE=0
11901
11902
11903
11904 GL_GNULIB_FPUTC=0
11905
11906
11907
11908 GL_GNULIB_FPUTS=0
11909
11910
11911
11912 GL_GNULIB_FREAD=0
11913
11914
11915
11916 GL_GNULIB_FREOPEN=0
11917
11918
11919
11920 GL_GNULIB_FSCANF=0
11921
11922
11923
11924 GL_GNULIB_FSEEK=0
11925
11926
11927
11928 GL_GNULIB_FSEEKO=0
11929
11930
11931
11932 GL_GNULIB_FTELL=0
11933
11934
11935
11936 GL_GNULIB_FTELLO=0
11937
11938
11939
11940 GL_GNULIB_FWRITE=0
11941
11942
11943
11944 GL_GNULIB_GETC=0
11945
11946
11947
11948 GL_GNULIB_GETCHAR=0
11949
11950
11951
11952 GL_GNULIB_GETDELIM=0
11953
11954
11955
11956 GL_GNULIB_GETLINE=0
11957
11958
11959
11960 GL_GNULIB_OBSTACK_PRINTF=0
11961
11962
11963
11964 GL_GNULIB_OBSTACK_PRINTF_POSIX=0
11965
11966
11967
11968 GL_GNULIB_PCLOSE=0
11969
11970
11971
11972 GL_GNULIB_PERROR=0
11973
11974
11975
11976 GL_GNULIB_POPEN=0
11977
11978
11979
11980 GL_GNULIB_PRINTF=0
11981
11982
11983
11984 GL_GNULIB_PRINTF_POSIX=0
11985
11986
11987
11988 GL_GNULIB_PUTC=0
11989
11990
11991
11992 GL_GNULIB_PUTCHAR=0
11993
11994
11995
11996 GL_GNULIB_PUTS=0
11997
11998
11999
12000 GL_GNULIB_REMOVE=0
12001
12002
12003
12004 GL_GNULIB_RENAME=0
12005
12006
12007
12008 GL_GNULIB_RENAMEAT=0
12009
12010
12011
12012 GL_GNULIB_SCANF=0
12013
12014
12015
12016 GL_GNULIB_SNPRINTF=0
12017
12018
12019
12020 GL_GNULIB_SPRINTF_POSIX=0
12021
12022
12023
12024 GL_GNULIB_STDIO_H_NONBLOCKING=0
12025
12026
12027
12028 GL_GNULIB_STDIO_H_SIGPIPE=0
12029
12030
12031
12032 GL_GNULIB_TMPFILE=0
12033
12034
12035
12036 GL_GNULIB_VASPRINTF=0
12037
12038
12039
12040 GL_GNULIB_VFSCANF=0
12041
12042
12043
12044 GL_GNULIB_VSCANF=0
12045
12046
12047
12048 GL_GNULIB_VDPRINTF=0
12049
12050
12051
12052 GL_GNULIB_VFPRINTF=0
12053
12054
12055
12056 GL_GNULIB_VFPRINTF_POSIX=0
12057
12058
12059
12060 GL_GNULIB_VPRINTF=0
12061
12062
12063
12064 GL_GNULIB_VPRINTF_POSIX=0
12065
12066
12067
12068 GL_GNULIB_VSNPRINTF=0
12069
12070
12071
12072 GL_GNULIB_VSPRINTF_POSIX=0
12073
12074
12075
12076 GL_GNULIB_MDA_FCLOSEALL=1
12077
12078
12079
12080 GL_GNULIB_MDA_FDOPEN=1
12081
12082
12083
12084 GL_GNULIB_MDA_FILENO=1
12085
12086
12087
12088 GL_GNULIB_MDA_GETW=1
12089
12090
12091
12092 GL_GNULIB_MDA_PUTW=1
12093
12094
12095
12096 GL_GNULIB_MDA_TEMPNAM=1
12097
12098
12099
12100
12101 ac_fn_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12102 if test "x$ac_cv_have_decl_getdtablesize" = xyes
12103 then :
12104 ac_have_decl=1
12105 else $as_nop
12106 ac_have_decl=0
12107 fi
12108 printf "%s\n" "#define HAVE_DECL_GETDTABLESIZE $ac_have_decl" >>confdefs.h
12109
12110 ac_fn_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12111 if test "x$ac_cv_have_decl_getline" = xyes
12112 then :
12113 ac_have_decl=1
12114 else $as_nop
12115 ac_have_decl=0
12116 fi
12117 printf "%s\n" "#define HAVE_DECL_GETLINE $ac_have_decl" >>confdefs.h
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133 if test $gl_cv_have_include_next = yes; then
12134 gl_cv_next_getopt_h='<'getopt.h'>'
12135 else
12136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
12137 printf %s "checking absolute name of <getopt.h>... " >&6; }
12138 if test ${gl_cv_next_getopt_h+y}
12139 then :
12140 printf %s "(cached) " >&6
12141 else $as_nop
12142
12143 if test $ac_cv_header_getopt_h = yes; then
12144
12145
12146
12147
12148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12149 /* end confdefs.h. */
12150 #include <getopt.h>
12151 _ACEOF
12152 case "$host_os" in
12153 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12154 *) gl_absname_cpp="$ac_cpp" ;;
12155 esac
12156
12157 case "$host_os" in
12158 mingw*)
12159 gl_dirsep_regex='[/\\]'
12160 ;;
12161 *)
12162 gl_dirsep_regex='\/'
12163 ;;
12164 esac
12165 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12166 gl_header_literal_regex=`echo 'getopt.h' \
12167 | sed -e "$gl_make_literal_regex_sed"`
12168 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12169 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12170 s|^/[^/]|//&|
12171 p
12172 q
12173 }'
12174
12175 gl_cv_absolute_getopt_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12176 sed -n "$gl_absolute_header_sed"`
12177
12178 gl_header=$gl_cv_absolute_getopt_h
12179 gl_cv_next_getopt_h='"'$gl_header'"'
12180 else
12181 gl_cv_next_getopt_h='<'getopt.h'>'
12182 fi
12183
12184
12185 fi
12186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
12187 printf "%s\n" "$gl_cv_next_getopt_h" >&6; }
12188 fi
12189 NEXT_GETOPT_H=$gl_cv_next_getopt_h
12190
12191 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12192 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12193 gl_next_as_first_directive='<'getopt.h'>'
12194 else
12195 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12196 gl_next_as_first_directive=$gl_cv_next_getopt_h
12197 fi
12198 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
12199
12200
12201
12202
12203 if test $ac_cv_header_getopt_h = yes; then
12204 HAVE_GETOPT_H=1
12205 else
12206 HAVE_GETOPT_H=0
12207 fi
12208
12209
12210 gl_replace_getopt=
12211
12212 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
12213 for ac_header in getopt.h
12214 do :
12215 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
12216 if test "x$ac_cv_header_getopt_h" = xyes
12217 then :
12218 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
12219
12220 else $as_nop
12221 gl_replace_getopt=yes
12222 fi
12223
12224 done
12225 fi
12226
12227 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
12228
12229 for ac_func in getopt_long_only
12230 do :
12231 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
12232 if test "x$ac_cv_func_getopt_long_only" = xyes
12233 then :
12234 printf "%s\n" "#define HAVE_GETOPT_LONG_ONLY 1" >>confdefs.h
12235
12236 else $as_nop
12237 gl_replace_getopt=yes
12238 fi
12239
12240 done
12241 fi
12242
12243 if test -z "$gl_replace_getopt"; then
12244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
12245 printf %s "checking whether getopt is POSIX compatible... " >&6; }
12246 if test ${gl_cv_func_getopt_posix+y}
12247 then :
12248 printf %s "(cached) " >&6
12249 else $as_nop
12250
12251 if test $cross_compiling = no; then
12252 if test "$cross_compiling" = yes
12253 then :
12254 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12255 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12256 as_fn_error $? "cannot run test program while cross compiling
12257 See \`config.log' for more details" "$LINENO" 5; }
12258 else $as_nop
12259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12260 /* end confdefs.h. */
12261
12262 #include <unistd.h>
12263 #include <stdlib.h>
12264 #include <string.h>
12265
12266 int
12267 main ()
12268 {
12269 static char program[] = "program";
12270 static char a[] = "-a";
12271 static char foo[] = "foo";
12272 static char bar[] = "bar";
12273 char *argv[] = { program, a, foo, bar, NULL };
12274 int c;
12275
12276 c = getopt (4, argv, "ab");
12277 if (!(c == 'a'))
12278 return 1;
12279 c = getopt (4, argv, "ab");
12280 if (!(c == -1))
12281 return 2;
12282 if (!(optind == 2))
12283 return 3;
12284 return 0;
12285 }
12286
12287 _ACEOF
12288 if ac_fn_c_try_run "$LINENO"
12289 then :
12290 gl_cv_func_getopt_posix=maybe
12291 else $as_nop
12292 gl_cv_func_getopt_posix=no
12293 fi
12294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12295 conftest.$ac_objext conftest.beam conftest.$ac_ext
12296 fi
12297
12298 if test $gl_cv_func_getopt_posix = maybe; then
12299 if test "$cross_compiling" = yes
12300 then :
12301 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12302 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12303 as_fn_error $? "cannot run test program while cross compiling
12304 See \`config.log' for more details" "$LINENO" 5; }
12305 else $as_nop
12306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12307 /* end confdefs.h. */
12308
12309 #include <unistd.h>
12310 #include <stdlib.h>
12311 #include <string.h>
12312
12313 int
12314 main ()
12315 {
12316 static char program[] = "program";
12317 static char donald[] = "donald";
12318 static char p[] = "-p";
12319 static char billy[] = "billy";
12320 static char duck[] = "duck";
12321 static char a[] = "-a";
12322 static char bar[] = "bar";
12323 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
12324 int c;
12325
12326 c = getopt (7, argv, "+abp:q:");
12327 if (!(c == -1))
12328 return 4;
12329 if (!(strcmp (argv[0], "program") == 0))
12330 return 5;
12331 if (!(strcmp (argv[1], "donald") == 0))
12332 return 6;
12333 if (!(strcmp (argv[2], "-p") == 0))
12334 return 7;
12335 if (!(strcmp (argv[3], "billy") == 0))
12336 return 8;
12337 if (!(strcmp (argv[4], "duck") == 0))
12338 return 9;
12339 if (!(strcmp (argv[5], "-a") == 0))
12340 return 10;
12341 if (!(strcmp (argv[6], "bar") == 0))
12342 return 11;
12343 if (!(optind == 1))
12344 return 12;
12345 return 0;
12346 }
12347
12348 _ACEOF
12349 if ac_fn_c_try_run "$LINENO"
12350 then :
12351 gl_cv_func_getopt_posix=maybe
12352 else $as_nop
12353 gl_cv_func_getopt_posix=no
12354 fi
12355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12356 conftest.$ac_objext conftest.beam conftest.$ac_ext
12357 fi
12358
12359 fi
12360 if test $gl_cv_func_getopt_posix = maybe; then
12361 if test "$cross_compiling" = yes
12362 then :
12363 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12364 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12365 as_fn_error $? "cannot run test program while cross compiling
12366 See \`config.log' for more details" "$LINENO" 5; }
12367 else $as_nop
12368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12369 /* end confdefs.h. */
12370
12371 #include <unistd.h>
12372 #include <stdlib.h>
12373 #include <string.h>
12374
12375 int
12376 main ()
12377 {
12378 static char program[] = "program";
12379 static char ab[] = "-ab";
12380 char *argv[3] = { program, ab, NULL };
12381 if (getopt (2, argv, "ab:") != 'a')
12382 return 13;
12383 if (getopt (2, argv, "ab:") != '?')
12384 return 14;
12385 if (optopt != 'b')
12386 return 15;
12387 if (optind != 2)
12388 return 16;
12389 return 0;
12390 }
12391
12392 _ACEOF
12393 if ac_fn_c_try_run "$LINENO"
12394 then :
12395 gl_cv_func_getopt_posix=yes
12396 else $as_nop
12397 gl_cv_func_getopt_posix=no
12398 fi
12399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12400 conftest.$ac_objext conftest.beam conftest.$ac_ext
12401 fi
12402
12403 fi
12404 else
12405 case "$host_os" in
12406 darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
12407 *) gl_cv_func_getopt_posix="guessing yes";;
12408 esac
12409 fi
12410
12411 fi
12412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
12413 printf "%s\n" "$gl_cv_func_getopt_posix" >&6; }
12414 case "$gl_cv_func_getopt_posix" in
12415 *no) gl_replace_getopt=yes ;;
12416 esac
12417 fi
12418
12419 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
12420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
12421 printf %s "checking for working GNU getopt function... " >&6; }
12422 if test ${gl_cv_func_getopt_gnu+y}
12423 then :
12424 printf %s "(cached) " >&6
12425 else $as_nop
12426 # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
12427 # optstring is necessary for programs like m4 that have POSIX-mandated
12428 # semantics for supporting options interspersed with files.
12429 # Also, since getopt_long is a GNU extension, we require optind=0.
12430 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
12431 # so take care to revert to the correct (non-)export state.
12432 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
12433 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
12434 xx) gl_had_POSIXLY_CORRECT=exported ;;
12435 x) gl_had_POSIXLY_CORRECT=yes ;;
12436 *) gl_had_POSIXLY_CORRECT= ;;
12437 esac
12438 POSIXLY_CORRECT=1
12439 export POSIXLY_CORRECT
12440 if test "$cross_compiling" = yes
12441 then :
12442 gl_cv_func_getopt_gnu="$gl_cross_guess_normal"
12443
12444 else $as_nop
12445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12446 /* end confdefs.h. */
12447 #include <getopt.h>
12448 #include <stddef.h>
12449 #include <string.h>
12450
12451 #include <stdlib.h>
12452 #if defined __MACH__ && defined __APPLE__
12453 /* Avoid a crash on Mac OS X. */
12454 #include <mach/mach.h>
12455 #include <mach/mach_error.h>
12456 #include <mach/thread_status.h>
12457 #include <mach/exception.h>
12458 #include <mach/task.h>
12459 #include <pthread.h>
12460 /* The exception port on which our thread listens. */
12461 static mach_port_t our_exception_port;
12462 /* The main function of the thread listening for exceptions of type
12463 EXC_BAD_ACCESS. */
12464 static void *
12465 mach_exception_thread (void *arg)
12466 {
12467 /* Buffer for a message to be received. */
12468 struct {
12469 mach_msg_header_t head;
12470 mach_msg_body_t msgh_body;
12471 char data[1024];
12472 } msg;
12473 mach_msg_return_t retval;
12474 /* Wait for a message on the exception port. */
12475 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
12476 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
12477 if (retval != MACH_MSG_SUCCESS)
12478 abort ();
12479 exit (1);
12480 }
12481 static void
12482 nocrash_init (void)
12483 {
12484 mach_port_t self = mach_task_self ();
12485 /* Allocate a port on which the thread shall listen for exceptions. */
12486 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
12487 == KERN_SUCCESS) {
12488 /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
12489 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
12490 MACH_MSG_TYPE_MAKE_SEND)
12491 == KERN_SUCCESS) {
12492 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
12493 for us. */
12494 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
12495 /* Create the thread listening on the exception port. */
12496 pthread_attr_t attr;
12497 pthread_t thread;
12498 if (pthread_attr_init (&attr) == 0
12499 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
12500 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
12501 pthread_attr_destroy (&attr);
12502 /* Replace the exception port info for these exceptions with our own.
12503 Note that we replace the exception port for the entire task, not only
12504 for a particular thread. This has the effect that when our exception
12505 port gets the message, the thread specific exception port has already
12506 been asked, and we don't need to bother about it.
12507 See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
12508 task_set_exception_ports (self, mask, our_exception_port,
12509 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
12510 }
12511 }
12512 }
12513 }
12514 #elif defined _WIN32 && ! defined __CYGWIN__
12515 /* Avoid a crash on native Windows. */
12516 #define WIN32_LEAN_AND_MEAN
12517 #include <windows.h>
12518 #include <winerror.h>
12519 static LONG WINAPI
12520 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
12521 {
12522 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
12523 {
12524 case EXCEPTION_ACCESS_VIOLATION:
12525 case EXCEPTION_IN_PAGE_ERROR:
12526 case EXCEPTION_STACK_OVERFLOW:
12527 case EXCEPTION_GUARD_PAGE:
12528 case EXCEPTION_PRIV_INSTRUCTION:
12529 case EXCEPTION_ILLEGAL_INSTRUCTION:
12530 case EXCEPTION_DATATYPE_MISALIGNMENT:
12531 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
12532 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
12533 exit (1);
12534 }
12535 return EXCEPTION_CONTINUE_SEARCH;
12536 }
12537 static void
12538 nocrash_init (void)
12539 {
12540 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
12541 }
12542 #else
12543 /* Avoid a crash on POSIX systems. */
12544 #include <signal.h>
12545 #include <unistd.h>
12546 /* A POSIX signal handler. */
12547 static void
12548 exception_handler (int sig)
12549 {
12550 _exit (1);
12551 }
12552 static void
12553 nocrash_init (void)
12554 {
12555 #ifdef SIGSEGV
12556 signal (SIGSEGV, exception_handler);
12557 #endif
12558 #ifdef SIGBUS
12559 signal (SIGBUS, exception_handler);
12560 #endif
12561 }
12562 #endif
12563
12564
12565 int
12566 main (void)
12567 {
12568
12569 int result = 0;
12570
12571 nocrash_init();
12572
12573 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
12574 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
12575 OSF/1 5.1, Solaris 10. */
12576 {
12577 static char conftest[] = "conftest";
12578 static char plus[] = "-+";
12579 char *argv[3] = { conftest, plus, NULL };
12580 opterr = 0;
12581 if (getopt (2, argv, "+a") != '?')
12582 result |= 1;
12583 }
12584 /* This code succeeds on glibc 2.8, mingw,
12585 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
12586 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
12587 {
12588 static char program[] = "program";
12589 static char p[] = "-p";
12590 static char foo[] = "foo";
12591 static char bar[] = "bar";
12592 char *argv[] = { program, p, foo, bar, NULL };
12593
12594 optind = 1;
12595 if (getopt (4, argv, "p::") != 'p')
12596 result |= 2;
12597 else if (optarg != NULL)
12598 result |= 4;
12599 else if (getopt (4, argv, "p::") != -1)
12600 result |= 6;
12601 else if (optind != 2)
12602 result |= 8;
12603 }
12604 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
12605 {
12606 static char program[] = "program";
12607 static char foo[] = "foo";
12608 static char p[] = "-p";
12609 char *argv[] = { program, foo, p, NULL };
12610 optind = 0;
12611 if (getopt (3, argv, "-p") != 1)
12612 result |= 16;
12613 else if (getopt (3, argv, "-p") != 'p')
12614 result |= 16;
12615 }
12616 /* This code fails on glibc 2.11. */
12617 {
12618 static char program[] = "program";
12619 static char b[] = "-b";
12620 static char a[] = "-a";
12621 char *argv[] = { program, b, a, NULL };
12622 optind = opterr = 0;
12623 if (getopt (3, argv, "+:a:b") != 'b')
12624 result |= 32;
12625 else if (getopt (3, argv, "+:a:b") != ':')
12626 result |= 32;
12627 }
12628 /* This code dumps core on glibc 2.14. */
12629 {
12630 static char program[] = "program";
12631 static char w[] = "-W";
12632 static char dummy[] = "dummy";
12633 char *argv[] = { program, w, dummy, NULL };
12634 optind = opterr = 1;
12635 if (getopt (3, argv, "W;") != 'W')
12636 result |= 64;
12637 }
12638 return result;
12639
12640 ;
12641 return 0;
12642 }
12643 _ACEOF
12644 if ac_fn_c_try_run "$LINENO"
12645 then :
12646 gl_cv_func_getopt_gnu=yes
12647 else $as_nop
12648 gl_cv_func_getopt_gnu=no
12649 fi
12650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12651 conftest.$ac_objext conftest.beam conftest.$ac_ext
12652 fi
12653
12654 case $gl_had_POSIXLY_CORRECT in
12655 exported) ;;
12656 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
12657 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
12658 esac
12659
12660 fi
12661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
12662 printf "%s\n" "$gl_cv_func_getopt_gnu" >&6; }
12663 if test "$gl_cv_func_getopt_gnu" != yes; then
12664 gl_replace_getopt=yes
12665 else
12666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
12667 printf %s "checking for working GNU getopt_long function... " >&6; }
12668 if test ${gl_cv_func_getopt_long_gnu+y}
12669 then :
12670 printf %s "(cached) " >&6
12671 else $as_nop
12672 if test "$cross_compiling" = yes
12673 then :
12674 case "$host_os" in
12675 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
12676 *) gl_cv_func_getopt_long_gnu="guessing yes";;
12677 esac
12678
12679 else $as_nop
12680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12681 /* end confdefs.h. */
12682 #include <getopt.h>
12683 #include <stddef.h>
12684 #include <string.h>
12685
12686 int
12687 main (void)
12688 {
12689 static const struct option long_options[] =
12690 {
12691 { "xtremely-",no_argument, NULL, 1003 },
12692 { "xtra", no_argument, NULL, 1001 },
12693 { "xtreme", no_argument, NULL, 1002 },
12694 { "xtremely", no_argument, NULL, 1003 },
12695 { NULL, 0, NULL, 0 }
12696 };
12697 /* This code fails on OpenBSD 5.0. */
12698 {
12699 static char program[] = "program";
12700 static char xtremel[] = "--xtremel";
12701 char *argv[] = { program, xtremel, NULL };
12702 int option_index;
12703 optind = 1; opterr = 0;
12704 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
12705 return 1;
12706 }
12707 return 0;
12708
12709 ;
12710 return 0;
12711 }
12712 _ACEOF
12713 if ac_fn_c_try_run "$LINENO"
12714 then :
12715 gl_cv_func_getopt_long_gnu=yes
12716 else $as_nop
12717 gl_cv_func_getopt_long_gnu=no
12718 fi
12719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12720 conftest.$ac_objext conftest.beam conftest.$ac_ext
12721 fi
12722
12723
12724 fi
12725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
12726 printf "%s\n" "$gl_cv_func_getopt_long_gnu" >&6; }
12727 case "$gl_cv_func_getopt_long_gnu" in
12728 *yes) ;;
12729 *) gl_replace_getopt=yes ;;
12730 esac
12731 fi
12732 fi
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748 if test $gl_cv_have_include_next = yes; then
12749 gl_cv_next_limits_h='<'limits.h'>'
12750 else
12751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
12752 printf %s "checking absolute name of <limits.h>... " >&6; }
12753 if test ${gl_cv_next_limits_h+y}
12754 then :
12755 printf %s "(cached) " >&6
12756 else $as_nop
12757
12758 if test $ac_cv_header_limits_h = yes; then
12759
12760
12761
12762
12763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12764 /* end confdefs.h. */
12765 #include <limits.h>
12766 _ACEOF
12767 case "$host_os" in
12768 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12769 *) gl_absname_cpp="$ac_cpp" ;;
12770 esac
12771
12772 case "$host_os" in
12773 mingw*)
12774 gl_dirsep_regex='[/\\]'
12775 ;;
12776 *)
12777 gl_dirsep_regex='\/'
12778 ;;
12779 esac
12780 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12781 gl_header_literal_regex=`echo 'limits.h' \
12782 | sed -e "$gl_make_literal_regex_sed"`
12783 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12784 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12785 s|^/[^/]|//&|
12786 p
12787 q
12788 }'
12789
12790 gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12791 sed -n "$gl_absolute_header_sed"`
12792
12793 gl_header=$gl_cv_absolute_limits_h
12794 gl_cv_next_limits_h='"'$gl_header'"'
12795 else
12796 gl_cv_next_limits_h='<'limits.h'>'
12797 fi
12798
12799
12800 fi
12801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
12802 printf "%s\n" "$gl_cv_next_limits_h" >&6; }
12803 fi
12804 NEXT_LIMITS_H=$gl_cv_next_limits_h
12805
12806 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12807 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12808 gl_next_as_first_directive='<'limits.h'>'
12809 else
12810 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12811 gl_next_as_first_directive=$gl_cv_next_limits_h
12812 fi
12813 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
12814
12815
12816
12817
12818
12819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether limits.h has WORD_BIT, BOOL_WIDTH etc." >&5
12820 printf %s "checking whether limits.h has WORD_BIT, BOOL_WIDTH etc.... " >&6; }
12821 if test ${gl_cv_header_limits_width+y}
12822 then :
12823 printf %s "(cached) " >&6
12824 else $as_nop
12825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12826 /* end confdefs.h. */
12827 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
12828 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
12829 #endif
12830 #include <limits.h>
12831 long long llm = LLONG_MAX;
12832 int wb = WORD_BIT;
12833 int ullw = ULLONG_WIDTH;
12834 int bw = BOOL_WIDTH;
12835
12836 int
12837 main (void)
12838 {
12839
12840 ;
12841 return 0;
12842 }
12843 _ACEOF
12844 if ac_fn_c_try_compile "$LINENO"
12845 then :
12846 gl_cv_header_limits_width=yes
12847 else $as_nop
12848 gl_cv_header_limits_width=no
12849 fi
12850 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12851 fi
12852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
12853 printf "%s\n" "$gl_cv_header_limits_width" >&6; }
12854 if test "$gl_cv_header_limits_width" = yes; then
12855 GL_GENERATE_LIMITS_H=false
12856 else
12857 GL_GENERATE_LIMITS_H=true
12858 fi
12859
12860
12861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
12862 printf %s "checking for wint_t... " >&6; }
12863 if test ${gt_cv_c_wint_t+y}
12864 then :
12865 printf %s "(cached) " >&6
12866 else $as_nop
12867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12868 /* end confdefs.h. */
12869 #include <wchar.h>
12870 wint_t foo = (wchar_t)'\0';
12871 int
12872 main (void)
12873 {
12874
12875 ;
12876 return 0;
12877 }
12878 _ACEOF
12879 if ac_fn_c_try_compile "$LINENO"
12880 then :
12881 gt_cv_c_wint_t=yes
12882 else $as_nop
12883 gt_cv_c_wint_t=no
12884 fi
12885 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12886 fi
12887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
12888 printf "%s\n" "$gt_cv_c_wint_t" >&6; }
12889 if test $gt_cv_c_wint_t = yes; then
12890
12891 printf "%s\n" "#define HAVE_WINT_T 1" >>confdefs.h
12892
12893
12894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wint_t is large enough" >&5
12895 printf %s "checking whether wint_t is large enough... " >&6; }
12896 if test ${gl_cv_type_wint_t_large_enough+y}
12897 then :
12898 printf %s "(cached) " >&6
12899 else $as_nop
12900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12901 /* end confdefs.h. */
12902 #include <wchar.h>
12903 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
12904
12905 int
12906 main (void)
12907 {
12908
12909 ;
12910 return 0;
12911 }
12912 _ACEOF
12913 if ac_fn_c_try_compile "$LINENO"
12914 then :
12915 gl_cv_type_wint_t_large_enough=yes
12916 else $as_nop
12917 gl_cv_type_wint_t_large_enough=no
12918 fi
12919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12920 fi
12921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_large_enough" >&5
12922 printf "%s\n" "$gl_cv_type_wint_t_large_enough" >&6; }
12923 if test $gl_cv_type_wint_t_large_enough = no; then
12924 GNULIBHEADERS_OVERRIDE_WINT_T=1
12925 else
12926 GNULIBHEADERS_OVERRIDE_WINT_T=0
12927 fi
12928 else
12929 GNULIBHEADERS_OVERRIDE_WINT_T=0
12930 fi
12931
12932
12933
12934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler produces multi-arch binaries" >&5
12935 printf %s "checking whether the compiler produces multi-arch binaries... " >&6; }
12936 if test ${gl_cv_c_multiarch+y}
12937 then :
12938 printf %s "(cached) " >&6
12939 else $as_nop
12940 gl_cv_c_multiarch=no
12941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12942 /* end confdefs.h. */
12943 #ifndef __APPLE_CC__
12944 not a universal capable compiler
12945 #endif
12946 typedef int dummy;
12947
12948 _ACEOF
12949 if ac_fn_c_try_compile "$LINENO"
12950 then :
12951
12952 arch=
12953 prev=
12954 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
12955 if test -n "$prev"; then
12956 case $word in
12957 i?86 | x86_64 | ppc | ppc64 | arm | arm64)
12958 if test -z "$arch" || test "$arch" = "$word"; then
12959 arch="$word"
12960 else
12961 gl_cv_c_multiarch=yes
12962 fi
12963 ;;
12964 esac
12965 prev=
12966 else
12967 if test "x$word" = "x-arch"; then
12968 prev=arch
12969 fi
12970 fi
12971 done
12972
12973 fi
12974 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12975
12976 fi
12977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_multiarch" >&5
12978 printf "%s\n" "$gl_cv_c_multiarch" >&6; }
12979 if test $gl_cv_c_multiarch = yes; then
12980 APPLE_UNIVERSAL_BUILD=1
12981 else
12982 APPLE_UNIVERSAL_BUILD=0
12983 fi
12984
12985
12986
12987
12988
12989
12990
12991
12992 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
12993
12994
12995 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
12996
12997
12998
12999 if test $ac_cv_header_wchar_h = yes; then
13000 HAVE_WCHAR_H=1
13001 else
13002 HAVE_WCHAR_H=0
13003 fi
13004
13005
13006
13007 if test $ac_cv_header_inttypes_h = yes; then
13008 HAVE_INTTYPES_H=1
13009 else
13010 HAVE_INTTYPES_H=0
13011 fi
13012
13013
13014
13015 if test $ac_cv_header_sys_types_h = yes; then
13016 HAVE_SYS_TYPES_H=1
13017 else
13018 HAVE_SYS_TYPES_H=0
13019 fi
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031 if test $gl_cv_have_include_next = yes; then
13032 gl_cv_next_stdint_h='<'stdint.h'>'
13033 else
13034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
13035 printf %s "checking absolute name of <stdint.h>... " >&6; }
13036 if test ${gl_cv_next_stdint_h+y}
13037 then :
13038 printf %s "(cached) " >&6
13039 else $as_nop
13040
13041 if test $ac_cv_header_stdint_h = yes; then
13042
13043
13044
13045
13046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13047 /* end confdefs.h. */
13048 #include <stdint.h>
13049 _ACEOF
13050 case "$host_os" in
13051 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13052 *) gl_absname_cpp="$ac_cpp" ;;
13053 esac
13054
13055 case "$host_os" in
13056 mingw*)
13057 gl_dirsep_regex='[/\\]'
13058 ;;
13059 *)
13060 gl_dirsep_regex='\/'
13061 ;;
13062 esac
13063 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13064 gl_header_literal_regex=`echo 'stdint.h' \
13065 | sed -e "$gl_make_literal_regex_sed"`
13066 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13067 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13068 s|^/[^/]|//&|
13069 p
13070 q
13071 }'
13072
13073 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13074 sed -n "$gl_absolute_header_sed"`
13075
13076 gl_header=$gl_cv_absolute_stdint_h
13077 gl_cv_next_stdint_h='"'$gl_header'"'
13078 else
13079 gl_cv_next_stdint_h='<'stdint.h'>'
13080 fi
13081
13082
13083 fi
13084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
13085 printf "%s\n" "$gl_cv_next_stdint_h" >&6; }
13086 fi
13087 NEXT_STDINT_H=$gl_cv_next_stdint_h
13088
13089 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13090 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13091 gl_next_as_first_directive='<'stdint.h'>'
13092 else
13093 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13094 gl_next_as_first_directive=$gl_cv_next_stdint_h
13095 fi
13096 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
13097
13098
13099
13100
13101 if test $ac_cv_header_stdint_h = yes; then
13102 HAVE_STDINT_H=1
13103 else
13104 HAVE_STDINT_H=0
13105 fi
13106
13107
13108 if test $ac_cv_header_stdint_h = yes; then
13109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
13110 printf %s "checking whether stdint.h conforms to C99... " >&6; }
13111 if test ${gl_cv_header_working_stdint_h+y}
13112 then :
13113 printf %s "(cached) " >&6
13114 else $as_nop
13115 gl_cv_header_working_stdint_h=no
13116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117 /* end confdefs.h. */
13118
13119
13120 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
13121 #define __STDC_CONSTANT_MACROS 1
13122 #define __STDC_LIMIT_MACROS 1
13123 #include <stdint.h>
13124 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
13125 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
13126 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
13127 #endif
13128
13129
13130 #include <stddef.h>
13131 #include <signal.h>
13132 #if HAVE_WCHAR_H
13133 # include <wchar.h>
13134 #endif
13135
13136
13137 #ifdef INT8_MAX
13138 int8_t a1 = INT8_MAX;
13139 int8_t a1min = INT8_MIN;
13140 #endif
13141 #ifdef INT16_MAX
13142 int16_t a2 = INT16_MAX;
13143 int16_t a2min = INT16_MIN;
13144 #endif
13145 #ifdef INT32_MAX
13146 int32_t a3 = INT32_MAX;
13147 int32_t a3min = INT32_MIN;
13148 #endif
13149 #ifdef INT64_MAX
13150 int64_t a4 = INT64_MAX;
13151 int64_t a4min = INT64_MIN;
13152 #endif
13153 #ifdef UINT8_MAX
13154 uint8_t b1 = UINT8_MAX;
13155 #else
13156 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
13157 #endif
13158 #ifdef UINT16_MAX
13159 uint16_t b2 = UINT16_MAX;
13160 #endif
13161 #ifdef UINT32_MAX
13162 uint32_t b3 = UINT32_MAX;
13163 #endif
13164 #ifdef UINT64_MAX
13165 uint64_t b4 = UINT64_MAX;
13166 #endif
13167 int_least8_t c1 = INT8_C (0x7f);
13168 int_least8_t c1max = INT_LEAST8_MAX;
13169 int_least8_t c1min = INT_LEAST8_MIN;
13170 int_least16_t c2 = INT16_C (0x7fff);
13171 int_least16_t c2max = INT_LEAST16_MAX;
13172 int_least16_t c2min = INT_LEAST16_MIN;
13173 int_least32_t c3 = INT32_C (0x7fffffff);
13174 int_least32_t c3max = INT_LEAST32_MAX;
13175 int_least32_t c3min = INT_LEAST32_MIN;
13176 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
13177 int_least64_t c4max = INT_LEAST64_MAX;
13178 int_least64_t c4min = INT_LEAST64_MIN;
13179 uint_least8_t d1 = UINT8_C (0xff);
13180 uint_least8_t d1max = UINT_LEAST8_MAX;
13181 uint_least16_t d2 = UINT16_C (0xffff);
13182 uint_least16_t d2max = UINT_LEAST16_MAX;
13183 uint_least32_t d3 = UINT32_C (0xffffffff);
13184 uint_least32_t d3max = UINT_LEAST32_MAX;
13185 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
13186 uint_least64_t d4max = UINT_LEAST64_MAX;
13187 int_fast8_t e1 = INT_FAST8_MAX;
13188 int_fast8_t e1min = INT_FAST8_MIN;
13189 int_fast16_t e2 = INT_FAST16_MAX;
13190 int_fast16_t e2min = INT_FAST16_MIN;
13191 int_fast32_t e3 = INT_FAST32_MAX;
13192 int_fast32_t e3min = INT_FAST32_MIN;
13193 int_fast64_t e4 = INT_FAST64_MAX;
13194 int_fast64_t e4min = INT_FAST64_MIN;
13195 uint_fast8_t f1 = UINT_FAST8_MAX;
13196 uint_fast16_t f2 = UINT_FAST16_MAX;
13197 uint_fast32_t f3 = UINT_FAST32_MAX;
13198 uint_fast64_t f4 = UINT_FAST64_MAX;
13199 #ifdef INTPTR_MAX
13200 intptr_t g = INTPTR_MAX;
13201 intptr_t gmin = INTPTR_MIN;
13202 #endif
13203 #ifdef UINTPTR_MAX
13204 uintptr_t h = UINTPTR_MAX;
13205 #endif
13206 intmax_t i = INTMAX_MAX;
13207 uintmax_t j = UINTMAX_MAX;
13208
13209 /* Check that SIZE_MAX has the correct type, if possible. */
13210 #if 201112 <= __STDC_VERSION__
13211 int k = _Generic (SIZE_MAX, size_t: 0);
13212 #elif (2 <= __GNUC__ || 4 <= __clang_major__ || defined __IBM__TYPEOF__ \
13213 || (0x5110 <= __SUNPRO_C && !__STDC__))
13214 extern size_t k;
13215 extern __typeof__ (SIZE_MAX) k;
13216 #endif
13217
13218 #include <limits.h> /* for CHAR_BIT */
13219 #define TYPE_MINIMUM(t) \
13220 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
13221 #define TYPE_MAXIMUM(t) \
13222 ((t) ((t) 0 < (t) -1 \
13223 ? (t) -1 \
13224 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
13225 struct s {
13226 int check_PTRDIFF:
13227 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
13228 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
13229 ? 1 : -1;
13230 /* Detect bug in FreeBSD 6.0/ia64 and FreeBSD 13.0/arm64. */
13231 int check_SIG_ATOMIC:
13232 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
13233 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
13234 ? 1 : -1;
13235 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
13236 int check_WCHAR:
13237 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
13238 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
13239 ? 1 : -1;
13240 /* Detect bug in mingw. */
13241 int check_WINT:
13242 WINT_MIN == TYPE_MINIMUM (wint_t)
13243 && WINT_MAX == TYPE_MAXIMUM (wint_t)
13244 ? 1 : -1;
13245
13246 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
13247 int check_UINT8_C:
13248 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
13249 int check_UINT16_C:
13250 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
13251
13252 /* Detect bugs in OpenBSD 3.9 stdint.h. */
13253 #ifdef UINT8_MAX
13254 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
13255 #endif
13256 #ifdef UINT16_MAX
13257 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
13258 #endif
13259 #ifdef UINT32_MAX
13260 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
13261 #endif
13262 #ifdef UINT64_MAX
13263 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
13264 #endif
13265 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
13266 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
13267 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
13268 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
13269 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
13270 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
13271 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
13272 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
13273 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
13274 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
13275 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
13276 };
13277
13278 int
13279 main (void)
13280 {
13281
13282 ;
13283 return 0;
13284 }
13285 _ACEOF
13286 if ac_fn_c_try_compile "$LINENO"
13287 then :
13288 if test "$cross_compiling" = yes
13289 then :
13290 case "$host_os" in
13291 # Guess yes on native Windows.
13292 mingw*) gl_cv_header_working_stdint_h="guessing yes" ;;
13293 # In general, assume it works.
13294 *) gl_cv_header_working_stdint_h="guessing yes" ;;
13295 esac
13296
13297 else $as_nop
13298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h. */
13300
13301
13302 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
13303 #define __STDC_CONSTANT_MACROS 1
13304 #define __STDC_LIMIT_MACROS 1
13305 #include <stdint.h>
13306
13307
13308 #include <stddef.h>
13309 #include <signal.h>
13310 #if HAVE_WCHAR_H
13311 # include <wchar.h>
13312 #endif
13313
13314
13315 #include <stdio.h>
13316 #include <string.h>
13317 #define MVAL(macro) MVAL1(macro)
13318 #define MVAL1(expression) #expression
13319 static const char *macro_values[] =
13320 {
13321 #ifdef INT8_MAX
13322 MVAL (INT8_MAX),
13323 #endif
13324 #ifdef INT16_MAX
13325 MVAL (INT16_MAX),
13326 #endif
13327 #ifdef INT32_MAX
13328 MVAL (INT32_MAX),
13329 #endif
13330 #ifdef INT64_MAX
13331 MVAL (INT64_MAX),
13332 #endif
13333 #ifdef UINT8_MAX
13334 MVAL (UINT8_MAX),
13335 #endif
13336 #ifdef UINT16_MAX
13337 MVAL (UINT16_MAX),
13338 #endif
13339 #ifdef UINT32_MAX
13340 MVAL (UINT32_MAX),
13341 #endif
13342 #ifdef UINT64_MAX
13343 MVAL (UINT64_MAX),
13344 #endif
13345 NULL
13346 };
13347
13348 int
13349 main (void)
13350 {
13351
13352 const char **mv;
13353 for (mv = macro_values; *mv != NULL; mv++)
13354 {
13355 const char *value = *mv;
13356 /* Test whether it looks like a cast expression. */
13357 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
13358 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
13359 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
13360 || strncmp (value, "((int)"/*)*/, 6) == 0
13361 || strncmp (value, "((signed short)"/*)*/, 15) == 0
13362 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
13363 return mv - macro_values + 1;
13364 }
13365 return 0;
13366
13367 ;
13368 return 0;
13369 }
13370 _ACEOF
13371 if ac_fn_c_try_run "$LINENO"
13372 then :
13373 gl_cv_header_working_stdint_h=yes
13374 fi
13375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13376 conftest.$ac_objext conftest.beam conftest.$ac_ext
13377 fi
13378
13379
13380 fi
13381 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13382
13383 fi
13384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
13385 printf "%s\n" "$gl_cv_header_working_stdint_h" >&6; }
13386 fi
13387
13388 HAVE_C99_STDINT_H=0
13389 HAVE_SYS_BITYPES_H=0
13390 HAVE_SYS_INTTYPES_H=0
13391 GL_GENERATE_STDINT_H=true
13392 case "$gl_cv_header_working_stdint_h" in
13393 *yes)
13394 HAVE_C99_STDINT_H=1
13395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h works without ISO C predefines" >&5
13396 printf %s "checking whether stdint.h works without ISO C predefines... " >&6; }
13397 if test ${gl_cv_header_stdint_without_STDC_macros+y}
13398 then :
13399 printf %s "(cached) " >&6
13400 else $as_nop
13401 gl_cv_header_stdint_without_STDC_macros=no
13402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13403 /* end confdefs.h. */
13404
13405
13406 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
13407 #include <stdint.h>
13408
13409
13410 #include <stddef.h>
13411 #include <signal.h>
13412 #if HAVE_WCHAR_H
13413 # include <wchar.h>
13414 #endif
13415
13416
13417 intmax_t im = INTMAX_MAX;
13418 int32_t i32 = INT32_C (0x7fffffff);
13419
13420 int
13421 main (void)
13422 {
13423
13424 ;
13425 return 0;
13426 }
13427 _ACEOF
13428 if ac_fn_c_try_compile "$LINENO"
13429 then :
13430 gl_cv_header_stdint_without_STDC_macros=yes
13431 fi
13432 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13433
13434 fi
13435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_without_STDC_macros" >&5
13436 printf "%s\n" "$gl_cv_header_stdint_without_STDC_macros" >&6; }
13437
13438 if test $gl_cv_header_stdint_without_STDC_macros = no; then
13439
13440 printf "%s\n" "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
13441
13442
13443 printf "%s\n" "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
13444
13445 fi
13446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
13447 printf %s "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
13448 if test ${gl_cv_header_stdint_width+y}
13449 then :
13450 printf %s "(cached) " >&6
13451 else $as_nop
13452 gl_cv_header_stdint_width=no
13453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13454 /* end confdefs.h. */
13455
13456 /* Work if build is not clean. */
13457 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
13458 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
13459 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
13460 #endif
13461 #include <stdint.h>
13462
13463 #include <stddef.h>
13464 #include <signal.h>
13465 #if HAVE_WCHAR_H
13466 # include <wchar.h>
13467 #endif
13468
13469 int iw = UINTMAX_WIDTH;
13470
13471 int
13472 main (void)
13473 {
13474
13475 ;
13476 return 0;
13477 }
13478 _ACEOF
13479 if ac_fn_c_try_compile "$LINENO"
13480 then :
13481 gl_cv_header_stdint_width=yes
13482 fi
13483 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13484 fi
13485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
13486 printf "%s\n" "$gl_cv_header_stdint_width" >&6; }
13487 if test "$gl_cv_header_stdint_width" = yes; then
13488 GL_GENERATE_STDINT_H=false
13489 fi
13490 ;;
13491 *)
13492 ac_fn_c_check_header_compile "$LINENO" "sys/inttypes.h" "ac_cv_header_sys_inttypes_h" "$ac_includes_default"
13493 if test "x$ac_cv_header_sys_inttypes_h" = xyes
13494 then :
13495 printf "%s\n" "#define HAVE_SYS_INTTYPES_H 1" >>confdefs.h
13496
13497 fi
13498 ac_fn_c_check_header_compile "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default"
13499 if test "x$ac_cv_header_sys_bitypes_h" = xyes
13500 then :
13501 printf "%s\n" "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
13502
13503 fi
13504
13505 if test $ac_cv_header_sys_inttypes_h = yes; then
13506 HAVE_SYS_INTTYPES_H=1
13507 fi
13508 if test $ac_cv_header_sys_bitypes_h = yes; then
13509 HAVE_SYS_BITYPES_H=1
13510 fi
13511
13512
13513 if test $APPLE_UNIVERSAL_BUILD = 0; then
13514
13515
13516 for gltype in ptrdiff_t size_t ; do
13517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
13518 printf %s "checking for bit size of $gltype... " >&6; }
13519 if eval test \${gl_cv_bitsizeof_${gltype}+y}
13520 then :
13521 printf %s "(cached) " >&6
13522 else $as_nop
13523 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
13524 #include <stddef.h>
13525 #include <signal.h>
13526 #if HAVE_WCHAR_H
13527 # include <wchar.h>
13528 #endif
13529
13530 #include <limits.h>"
13531 then :
13532
13533 else $as_nop
13534 result=unknown
13535 fi
13536
13537 eval gl_cv_bitsizeof_${gltype}=\$result
13538
13539 fi
13540 eval ac_res=\$gl_cv_bitsizeof_${gltype}
13541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13542 printf "%s\n" "$ac_res" >&6; }
13543 eval result=\$gl_cv_bitsizeof_${gltype}
13544 if test $result = unknown; then
13545 result=0
13546 fi
13547 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13548 printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h
13549
13550 eval BITSIZEOF_${GLTYPE}=\$result
13551 done
13552
13553
13554 fi
13555
13556
13557 for gltype in sig_atomic_t wchar_t wint_t ; do
13558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
13559 printf %s "checking for bit size of $gltype... " >&6; }
13560 if eval test \${gl_cv_bitsizeof_${gltype}+y}
13561 then :
13562 printf %s "(cached) " >&6
13563 else $as_nop
13564 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
13565 #include <stddef.h>
13566 #include <signal.h>
13567 #if HAVE_WCHAR_H
13568 # include <wchar.h>
13569 #endif
13570
13571 #include <limits.h>"
13572 then :
13573
13574 else $as_nop
13575 result=unknown
13576 fi
13577
13578 eval gl_cv_bitsizeof_${gltype}=\$result
13579
13580 fi
13581 eval ac_res=\$gl_cv_bitsizeof_${gltype}
13582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13583 printf "%s\n" "$ac_res" >&6; }
13584 eval result=\$gl_cv_bitsizeof_${gltype}
13585 if test $result = unknown; then
13586 result=0
13587 fi
13588 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13589 printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h
13590
13591 eval BITSIZEOF_${GLTYPE}=\$result
13592 done
13593
13594
13595
13596
13597 for gltype in sig_atomic_t wchar_t wint_t ; do
13598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
13599 printf %s "checking whether $gltype is signed... " >&6; }
13600 if eval test \${gl_cv_type_${gltype}_signed+y}
13601 then :
13602 printf %s "(cached) " >&6
13603 else $as_nop
13604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13605 /* end confdefs.h. */
13606
13607 #include <stddef.h>
13608 #include <signal.h>
13609 #if HAVE_WCHAR_H
13610 # include <wchar.h>
13611 #endif
13612
13613 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
13614 int
13615 main (void)
13616 {
13617
13618 ;
13619 return 0;
13620 }
13621 _ACEOF
13622 if ac_fn_c_try_compile "$LINENO"
13623 then :
13624 result=yes
13625 else $as_nop
13626 result=no
13627 fi
13628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13629 eval gl_cv_type_${gltype}_signed=\$result
13630
13631 fi
13632 eval ac_res=\$gl_cv_type_${gltype}_signed
13633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13634 printf "%s\n" "$ac_res" >&6; }
13635 eval result=\$gl_cv_type_${gltype}_signed
13636 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13637 if test "$result" = yes; then
13638 printf "%s\n" "#define HAVE_SIGNED_${GLTYPE} 1" >>confdefs.h
13639
13640 eval HAVE_SIGNED_${GLTYPE}=1
13641 else
13642 eval HAVE_SIGNED_${GLTYPE}=0
13643 fi
13644 done
13645
13646
13647 gl_cv_type_ptrdiff_t_signed=yes
13648 gl_cv_type_size_t_signed=no
13649 if test $APPLE_UNIVERSAL_BUILD = 0; then
13650
13651
13652 for gltype in ptrdiff_t size_t ; do
13653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
13654 printf %s "checking for $gltype integer literal suffix... " >&6; }
13655 if eval test \${gl_cv_type_${gltype}_suffix+y}
13656 then :
13657 printf %s "(cached) " >&6
13658 else $as_nop
13659 eval gl_cv_type_${gltype}_suffix=no
13660 eval result=\$gl_cv_type_${gltype}_signed
13661 if test "$result" = yes; then
13662 glsufu=
13663 else
13664 glsufu=u
13665 fi
13666 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
13667 case $glsuf in
13668 '') gltype1='int';;
13669 l) gltype1='long int';;
13670 ll) gltype1='long long int';;
13671 i64) gltype1='__int64';;
13672 u) gltype1='unsigned int';;
13673 ul) gltype1='unsigned long int';;
13674 ull) gltype1='unsigned long long int';;
13675 ui64)gltype1='unsigned __int64';;
13676 esac
13677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13678 /* end confdefs.h. */
13679
13680 #include <stddef.h>
13681 #include <signal.h>
13682 #if HAVE_WCHAR_H
13683 # include <wchar.h>
13684 #endif
13685
13686 extern $gltype foo;
13687 extern $gltype1 foo;
13688 int
13689 main (void)
13690 {
13691
13692 ;
13693 return 0;
13694 }
13695 _ACEOF
13696 if ac_fn_c_try_compile "$LINENO"
13697 then :
13698 eval gl_cv_type_${gltype}_suffix=\$glsuf
13699 fi
13700 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13701 eval result=\$gl_cv_type_${gltype}_suffix
13702 test "$result" != no && break
13703 done
13704 fi
13705 eval ac_res=\$gl_cv_type_${gltype}_suffix
13706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13707 printf "%s\n" "$ac_res" >&6; }
13708 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13709 eval result=\$gl_cv_type_${gltype}_suffix
13710 test "$result" = no && result=
13711 eval ${GLTYPE}_SUFFIX=\$result
13712 printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h
13713
13714 done
13715
13716
13717 fi
13718
13719
13720 for gltype in sig_atomic_t wchar_t wint_t ; do
13721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
13722 printf %s "checking for $gltype integer literal suffix... " >&6; }
13723 if eval test \${gl_cv_type_${gltype}_suffix+y}
13724 then :
13725 printf %s "(cached) " >&6
13726 else $as_nop
13727 eval gl_cv_type_${gltype}_suffix=no
13728 eval result=\$gl_cv_type_${gltype}_signed
13729 if test "$result" = yes; then
13730 glsufu=
13731 else
13732 glsufu=u
13733 fi
13734 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
13735 case $glsuf in
13736 '') gltype1='int';;
13737 l) gltype1='long int';;
13738 ll) gltype1='long long int';;
13739 i64) gltype1='__int64';;
13740 u) gltype1='unsigned int';;
13741 ul) gltype1='unsigned long int';;
13742 ull) gltype1='unsigned long long int';;
13743 ui64)gltype1='unsigned __int64';;
13744 esac
13745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13746 /* end confdefs.h. */
13747
13748 #include <stddef.h>
13749 #include <signal.h>
13750 #if HAVE_WCHAR_H
13751 # include <wchar.h>
13752 #endif
13753
13754 extern $gltype foo;
13755 extern $gltype1 foo;
13756 int
13757 main (void)
13758 {
13759
13760 ;
13761 return 0;
13762 }
13763 _ACEOF
13764 if ac_fn_c_try_compile "$LINENO"
13765 then :
13766 eval gl_cv_type_${gltype}_suffix=\$glsuf
13767 fi
13768 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13769 eval result=\$gl_cv_type_${gltype}_suffix
13770 test "$result" != no && break
13771 done
13772 fi
13773 eval ac_res=\$gl_cv_type_${gltype}_suffix
13774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13775 printf "%s\n" "$ac_res" >&6; }
13776 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13777 eval result=\$gl_cv_type_${gltype}_suffix
13778 test "$result" = no && result=
13779 eval ${GLTYPE}_SUFFIX=\$result
13780 printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h
13781
13782 done
13783
13784
13785
13786 if test $GNULIBHEADERS_OVERRIDE_WINT_T = 1; then
13787 BITSIZEOF_WINT_T=32
13788 fi
13789
13790 ;;
13791 esac
13792
13793
13794
13795 GL_GENERATE_LIMITS_H=true
13796
13797
13798
13799
13800
13801
13802
13803 HAVE_DECL_IMAXABS=1;
13804 HAVE_DECL_IMAXDIV=1;
13805 HAVE_DECL_STRTOIMAX=1;
13806 HAVE_DECL_STRTOUMAX=1;
13807 HAVE_IMAXDIV_T=1;
13808 REPLACE_STRTOIMAX=0;
13809 REPLACE_STRTOUMAX=0;
13810 INT32_MAX_LT_INTMAX_MAX=1;
13811 INT64_MAX_EQ_LONG_MAX='defined _LP64';
13812 PRIPTR_PREFIX=__PRIPTR_PREFIX;
13813 UINT32_MAX_LT_UINTMAX_MAX=1;
13814 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830 if test $gl_cv_have_include_next = yes; then
13831 gl_cv_next_inttypes_h='<'inttypes.h'>'
13832 else
13833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
13834 printf %s "checking absolute name of <inttypes.h>... " >&6; }
13835 if test ${gl_cv_next_inttypes_h+y}
13836 then :
13837 printf %s "(cached) " >&6
13838 else $as_nop
13839
13840 if test $ac_cv_header_inttypes_h = yes; then
13841
13842
13843
13844
13845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13846 /* end confdefs.h. */
13847 #include <inttypes.h>
13848 _ACEOF
13849 case "$host_os" in
13850 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13851 *) gl_absname_cpp="$ac_cpp" ;;
13852 esac
13853
13854 case "$host_os" in
13855 mingw*)
13856 gl_dirsep_regex='[/\\]'
13857 ;;
13858 *)
13859 gl_dirsep_regex='\/'
13860 ;;
13861 esac
13862 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13863 gl_header_literal_regex=`echo 'inttypes.h' \
13864 | sed -e "$gl_make_literal_regex_sed"`
13865 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13866 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13867 s|^/[^/]|//&|
13868 p
13869 q
13870 }'
13871
13872 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13873 sed -n "$gl_absolute_header_sed"`
13874
13875 gl_header=$gl_cv_absolute_inttypes_h
13876 gl_cv_next_inttypes_h='"'$gl_header'"'
13877 else
13878 gl_cv_next_inttypes_h='<'inttypes.h'>'
13879 fi
13880
13881
13882 fi
13883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
13884 printf "%s\n" "$gl_cv_next_inttypes_h" >&6; }
13885 fi
13886 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
13887
13888 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13889 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13890 gl_next_as_first_directive='<'inttypes.h'>'
13891 else
13892 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13893 gl_next_as_first_directive=$gl_cv_next_inttypes_h
13894 fi
13895 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910
13911 GL_GNULIB_IMAXABS=0
13912
13913
13914
13915 GL_GNULIB_IMAXDIV=0
13916
13917
13918
13919 GL_GNULIB_STRTOIMAX=0
13920
13921
13922
13923 GL_GNULIB_STRTOUMAX=0
13924
13925
13926
13927
13928
13929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc (0) returns nonnull" >&5
13930 printf %s "checking whether malloc (0) returns nonnull... " >&6; }
13931 if test ${ac_cv_func_malloc_0_nonnull+y}
13932 then :
13933 printf %s "(cached) " >&6
13934 else $as_nop
13935 if test "$cross_compiling" = yes
13936 then :
13937 case "$host_os" in
13938 # Guess yes on platforms where we know the result.
13939 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
13940 | gnu* | *-musl* | midnightbsd* \
13941 | hpux* | solaris* | cygwin* | mingw* | msys* )
13942 ac_cv_func_malloc_0_nonnull="guessing yes" ;;
13943 # If we don't know, obey --enable-cross-guesses.
13944 *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;;
13945 esac
13946
13947 else $as_nop
13948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13949 /* end confdefs.h. */
13950 #include <stdlib.h>
13951
13952 int
13953 main (void)
13954 {
13955 void *p = malloc (0);
13956 int result = !p;
13957 free (p);
13958 return result;
13959 ;
13960 return 0;
13961 }
13962
13963 _ACEOF
13964 if ac_fn_c_try_run "$LINENO"
13965 then :
13966 ac_cv_func_malloc_0_nonnull=yes
13967 else $as_nop
13968 ac_cv_func_malloc_0_nonnull=no
13969 fi
13970 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13971 conftest.$ac_objext conftest.beam conftest.$ac_ext
13972 fi
13973
13974
13975 fi
13976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
13977 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
13978 case $ac_cv_func_malloc_0_nonnull in #(
13979 *yes) :
13980 gl_cv_func_malloc_0_nonnull=1 ;; #(
13981 *) :
13982 gl_cv_func_malloc_0_nonnull=0 ;;
13983 esac
13984
13985
13986 printf "%s\n" "#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull" >>confdefs.h
13987
13988
13989
13990
13991
13992 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
13993 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
13994 # irrelevant for anonymous mappings.
13995 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13996 if test "x$ac_cv_func_mmap" = xyes
13997 then :
13998 gl_have_mmap=yes
13999 else $as_nop
14000 gl_have_mmap=no
14001 fi
14002
14003
14004 # Try to allow MAP_ANONYMOUS.
14005 gl_have_mmap_anonymous=no
14006 if test $gl_have_mmap = yes; then
14007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
14008 printf %s "checking for MAP_ANONYMOUS... " >&6; }
14009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14010 /* end confdefs.h. */
14011
14012 #include <sys/mman.h>
14013 #ifdef MAP_ANONYMOUS
14014 I cannot identify this map
14015 #endif
14016
14017 _ACEOF
14018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14019 $EGREP "I cannot identify this map" >/dev/null 2>&1
14020 then :
14021 gl_have_mmap_anonymous=yes
14022 fi
14023 rm -rf conftest*
14024
14025 if test $gl_have_mmap_anonymous != yes; then
14026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14027 /* end confdefs.h. */
14028
14029 #include <sys/mman.h>
14030 #ifdef MAP_ANON
14031 I cannot identify this map
14032 #endif
14033
14034 _ACEOF
14035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14036 $EGREP "I cannot identify this map" >/dev/null 2>&1
14037 then :
14038
14039 printf "%s\n" "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
14040
14041 gl_have_mmap_anonymous=yes
14042 fi
14043 rm -rf conftest*
14044
14045 fi
14046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
14047 printf "%s\n" "$gl_have_mmap_anonymous" >&6; }
14048 if test $gl_have_mmap_anonymous = yes; then
14049
14050 printf "%s\n" "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
14051
14052 fi
14053 fi
14054
14055
14056
14057
14058 HAVE_MBSLEN=0;
14059 HAVE_EXPLICIT_BZERO=1;
14060 HAVE_FFSL=1;
14061 HAVE_FFSLL=1;
14062 HAVE_DECL_MEMMEM=1;
14063 HAVE_MEMPCPY=1;
14064 HAVE_DECL_MEMRCHR=1;
14065 HAVE_RAWMEMCHR=1;
14066 HAVE_STPCPY=1;
14067 HAVE_STPNCPY=1;
14068 HAVE_STRCHRNUL=1;
14069 HAVE_DECL_STRDUP=1;
14070 HAVE_DECL_STRNDUP=1;
14071 HAVE_DECL_STRNLEN=1;
14072 HAVE_STRPBRK=1;
14073 HAVE_STRSEP=1;
14074 HAVE_STRCASESTR=1;
14075 HAVE_DECL_STRTOK_R=1;
14076 HAVE_DECL_STRERROR_R=1;
14077 HAVE_STRERRORNAME_NP=1;
14078 HAVE_SIGABBREV_NP=1;
14079 HAVE_SIGDESCR_NP=1;
14080 HAVE_DECL_STRSIGNAL=1;
14081 HAVE_STRVERSCMP=1;
14082 REPLACE_FFSLL=0;
14083 REPLACE_MEMCHR=0;
14084 REPLACE_MEMMEM=0;
14085 REPLACE_STPNCPY=0;
14086 REPLACE_STRCHRNUL=0;
14087 REPLACE_STRDUP=0;
14088 REPLACE_STRNCAT=0;
14089 REPLACE_STRNDUP=0;
14090 REPLACE_STRNLEN=0;
14091 REPLACE_STRSTR=0;
14092 REPLACE_STRCASESTR=0;
14093 REPLACE_STRTOK_R=0;
14094 REPLACE_STRERROR=0;
14095 REPLACE_STRERROR_R=0;
14096 REPLACE_STRERRORNAME_NP=0;
14097 REPLACE_STRSIGNAL=0;
14098 UNDEFINE_STRTOK_R=0;
14099
14100
14101
14102
14103
14104
14105
14106
14107 # Detect platform-specific bugs in some versions of glibc:
14108 # memchr should not dereference anything with length 0
14109 # https://bugzilla.redhat.com/show_bug.cgi?id=499689
14110 # memchr should not dereference overestimated length after a match
14111 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
14112 # https://sourceware.org/bugzilla/show_bug.cgi?id=10162
14113 # memchr should cast the second argument to 'unsigned char'.
14114 # This bug exists in Android 4.3.
14115 # Assume that memchr works on platforms that lack mprotect.
14116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
14117 printf %s "checking whether memchr works... " >&6; }
14118 if test ${gl_cv_func_memchr_works+y}
14119 then :
14120 printf %s "(cached) " >&6
14121 else $as_nop
14122 if test "$cross_compiling" = yes
14123 then :
14124 case "$host_os" in
14125 # Guess no on Android.
14126 linux*-android*) gl_cv_func_memchr_works="guessing no" ;;
14127 # Guess yes on native Windows.
14128 mingw*) gl_cv_func_memchr_works="guessing yes" ;;
14129 # If we don't know, obey --enable-cross-guesses.
14130 *) gl_cv_func_memchr_works="$gl_cross_guess_normal" ;;
14131 esac
14132
14133 else $as_nop
14134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14135 /* end confdefs.h. */
14136
14137 #include <string.h>
14138 #if HAVE_SYS_MMAN_H
14139 # include <fcntl.h>
14140 # include <unistd.h>
14141 # include <sys/types.h>
14142 # include <sys/mman.h>
14143 # ifndef MAP_FILE
14144 # define MAP_FILE 0
14145 # endif
14146 #endif
14147
14148 int
14149 main (void)
14150 {
14151
14152 int result = 0;
14153 char *fence = NULL;
14154 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
14155 # if HAVE_MAP_ANONYMOUS
14156 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
14157 const int fd = -1;
14158 # else /* !HAVE_MAP_ANONYMOUS */
14159 const int flags = MAP_FILE | MAP_PRIVATE;
14160 int fd = open ("/dev/zero", O_RDONLY, 0666);
14161 if (fd >= 0)
14162 # endif
14163 {
14164 int pagesize = getpagesize ();
14165 char *two_pages =
14166 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
14167 flags, fd, 0);
14168 if (two_pages != (char *)(-1)
14169 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
14170 fence = two_pages + pagesize;
14171 }
14172 #endif
14173 if (fence)
14174 {
14175 /* Test against bugs on glibc systems. */
14176 if (memchr (fence, 0, 0))
14177 result |= 1;
14178 strcpy (fence - 9, "12345678");
14179 if (memchr (fence - 9, 0, 79) != fence - 1)
14180 result |= 2;
14181 if (memchr (fence - 1, 0, 3) != fence - 1)
14182 result |= 4;
14183 /* Test against bug on AIX 7.2. */
14184 if (memchr (fence - 4, '6', 16) != fence - 4)
14185 result |= 8;
14186 }
14187 /* Test against bug on Android 4.3. */
14188 {
14189 char input[3];
14190 input[0] = 'a';
14191 input[1] = 'b';
14192 input[2] = 'c';
14193 if (memchr (input, 0x789abc00 | 'b', 3) != input + 1)
14194 result |= 16;
14195 }
14196 return result;
14197
14198 ;
14199 return 0;
14200 }
14201 _ACEOF
14202 if ac_fn_c_try_run "$LINENO"
14203 then :
14204 gl_cv_func_memchr_works=yes
14205 else $as_nop
14206 gl_cv_func_memchr_works=no
14207 fi
14208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14209 conftest.$ac_objext conftest.beam conftest.$ac_ext
14210 fi
14211
14212
14213 fi
14214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
14215 printf "%s\n" "$gl_cv_func_memchr_works" >&6; }
14216 case "$gl_cv_func_memchr_works" in
14217 *yes) ;;
14218 *) REPLACE_MEMCHR=1 ;;
14219 esac
14220
14221
14222
14223 GL_GNULIB_EXPLICIT_BZERO=0
14224
14225
14226
14227 GL_GNULIB_FFSL=0
14228
14229
14230
14231 GL_GNULIB_FFSLL=0
14232
14233
14234
14235 GL_GNULIB_MEMCHR=0
14236
14237
14238
14239 GL_GNULIB_MEMMEM=0
14240
14241
14242
14243 GL_GNULIB_MEMPCPY=0
14244
14245
14246
14247 GL_GNULIB_MEMRCHR=0
14248
14249
14250
14251 GL_GNULIB_RAWMEMCHR=0
14252
14253
14254
14255 GL_GNULIB_STPCPY=0
14256
14257
14258
14259 GL_GNULIB_STPNCPY=0
14260
14261
14262
14263 GL_GNULIB_STRCHRNUL=0
14264
14265
14266
14267 GL_GNULIB_STRDUP=0
14268
14269
14270
14271 GL_GNULIB_STRNCAT=0
14272
14273
14274
14275 GL_GNULIB_STRNDUP=0
14276
14277
14278
14279 GL_GNULIB_STRNLEN=0
14280
14281
14282
14283 GL_GNULIB_STRPBRK=0
14284
14285
14286
14287 GL_GNULIB_STRSEP=0
14288
14289
14290
14291 GL_GNULIB_STRSTR=0
14292
14293
14294
14295 GL_GNULIB_STRCASESTR=0
14296
14297
14298
14299 GL_GNULIB_STRTOK_R=0
14300
14301
14302
14303 GL_GNULIB_MBSLEN=0
14304
14305
14306
14307 GL_GNULIB_MBSNLEN=0
14308
14309
14310
14311 GL_GNULIB_MBSCHR=0
14312
14313
14314
14315 GL_GNULIB_MBSRCHR=0
14316
14317
14318
14319 GL_GNULIB_MBSSTR=0
14320
14321
14322
14323 GL_GNULIB_MBSCASECMP=0
14324
14325
14326
14327 GL_GNULIB_MBSNCASECMP=0
14328
14329
14330
14331 GL_GNULIB_MBSPCASECMP=0
14332
14333
14334
14335 GL_GNULIB_MBSCASESTR=0
14336
14337
14338
14339 GL_GNULIB_MBSCSPN=0
14340
14341
14342
14343 GL_GNULIB_MBSPBRK=0
14344
14345
14346
14347 GL_GNULIB_MBSSPN=0
14348
14349
14350
14351 GL_GNULIB_MBSSEP=0
14352
14353
14354
14355 GL_GNULIB_MBSTOK_R=0
14356
14357
14358
14359 GL_GNULIB_STRERROR=0
14360
14361
14362
14363 GL_GNULIB_STRERROR_R=0
14364
14365
14366
14367 GL_GNULIB_STRERRORNAME_NP=0
14368
14369
14370
14371 GL_GNULIB_SIGABBREV_NP=0
14372
14373
14374
14375 GL_GNULIB_SIGDESCR_NP=0
14376
14377
14378
14379 GL_GNULIB_STRSIGNAL=0
14380
14381
14382
14383 GL_GNULIB_STRVERSCMP=0
14384
14385
14386
14387 GL_GNULIB_MDA_MEMCCPY=1
14388
14389
14390
14391 GL_GNULIB_MDA_STRDUP=1
14392
14393
14394
14395
14396
14397
14398
14399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
14400 printf %s "checking whether <limits.h> defines MIN and MAX... " >&6; }
14401 if test ${gl_cv_minmax_in_limits_h+y}
14402 then :
14403 printf %s "(cached) " >&6
14404 else $as_nop
14405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14406 /* end confdefs.h. */
14407 #include <limits.h>
14408 int x = MIN (42, 17);
14409 int
14410 main (void)
14411 {
14412
14413 ;
14414 return 0;
14415 }
14416 _ACEOF
14417 if ac_fn_c_try_compile "$LINENO"
14418 then :
14419 gl_cv_minmax_in_limits_h=yes
14420 else $as_nop
14421 gl_cv_minmax_in_limits_h=no
14422 fi
14423 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14424 fi
14425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
14426 printf "%s\n" "$gl_cv_minmax_in_limits_h" >&6; }
14427 if test $gl_cv_minmax_in_limits_h = yes; then
14428
14429 printf "%s\n" "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
14430
14431 fi
14432
14433
14434
14435
14436
14437
14438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
14439 printf %s "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
14440 if test ${gl_cv_minmax_in_sys_param_h+y}
14441 then :
14442 printf %s "(cached) " >&6
14443 else $as_nop
14444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h. */
14446 #include <sys/param.h>
14447 int x = MIN (42, 17);
14448 int
14449 main (void)
14450 {
14451
14452 ;
14453 return 0;
14454 }
14455 _ACEOF
14456 if ac_fn_c_try_compile "$LINENO"
14457 then :
14458 gl_cv_minmax_in_sys_param_h=yes
14459 else $as_nop
14460 gl_cv_minmax_in_sys_param_h=no
14461 fi
14462 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14463 fi
14464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
14465 printf "%s\n" "$gl_cv_minmax_in_sys_param_h" >&6; }
14466 if test $gl_cv_minmax_in_sys_param_h = yes; then
14467
14468 printf "%s\n" "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
14469
14470 fi
14471
14472
14473
14474
14475
14476
14477
14478
14479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
14480 printf %s "checking for O_CLOEXEC... " >&6; }
14481 if test ${gl_cv_macro_O_CLOEXEC+y}
14482 then :
14483 printf %s "(cached) " >&6
14484 else $as_nop
14485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14486 /* end confdefs.h. */
14487 #include <fcntl.h>
14488 #ifndef O_CLOEXEC
14489 choke me;
14490 #endif
14491
14492 int
14493 main (void)
14494 {
14495 return O_CLOEXEC;
14496 ;
14497 return 0;
14498 }
14499 _ACEOF
14500 if ac_fn_c_try_compile "$LINENO"
14501 then :
14502 gl_cv_macro_O_CLOEXEC=yes
14503 else $as_nop
14504 gl_cv_macro_O_CLOEXEC=no
14505 fi
14506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14507 fi
14508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5
14509 printf "%s\n" "$gl_cv_macro_O_CLOEXEC" >&6; }
14510
14511
14512
14513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
14514 printf %s "checking for promoted mode_t type... " >&6; }
14515 if test ${gl_cv_promoted_mode_t+y}
14516 then :
14517 printf %s "(cached) " >&6
14518 else $as_nop
14519
14520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14521 /* end confdefs.h. */
14522 #include <sys/types.h>
14523 int
14524 main (void)
14525 {
14526 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
14527 ;
14528 return 0;
14529 }
14530 _ACEOF
14531 if ac_fn_c_try_compile "$LINENO"
14532 then :
14533 gl_cv_promoted_mode_t='int'
14534 else $as_nop
14535 gl_cv_promoted_mode_t='mode_t'
14536 fi
14537 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14538
14539 fi
14540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
14541 printf "%s\n" "$gl_cv_promoted_mode_t" >&6; }
14542
14543 printf "%s\n" "#define PROMOTED_MODE_T $gl_cv_promoted_mode_t" >>confdefs.h
14544
14545
14546
14547
14548
14549
14550 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
14551 REPLACE_REALLOC_FOR_REALLOC_POSIX=1
14552 fi
14553
14554
14555
14556
14557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
14558 printf %s "checking for stdbool.h that conforms to C99... " >&6; }
14559 if test ${ac_cv_header_stdbool_h+y}
14560 then :
14561 printf %s "(cached) " >&6
14562 else $as_nop
14563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14564 /* end confdefs.h. */
14565
14566 #include <stdbool.h>
14567
14568 #ifdef __cplusplus
14569 typedef bool Bool;
14570 #else
14571 typedef _Bool Bool;
14572 #ifndef bool
14573 "error: bool is not defined"
14574 #endif
14575 #ifndef false
14576 "error: false is not defined"
14577 #endif
14578 #if false
14579 "error: false is not 0"
14580 #endif
14581 #ifndef true
14582 "error: true is not defined"
14583 #endif
14584 #if true != 1
14585 "error: true is not 1"
14586 #endif
14587 #endif
14588
14589 #ifndef __bool_true_false_are_defined
14590 "error: __bool_true_false_are_defined is not defined"
14591 #endif
14592
14593 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
14594
14595 char a[true == 1 ? 1 : -1];
14596 char b[false == 0 ? 1 : -1];
14597 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14598 char d[(bool) 0.5 == true ? 1 : -1];
14599 /* See body of main program for 'e'. */
14600 char f[(Bool) 0.0 == false ? 1 : -1];
14601 char g[true];
14602 char h[sizeof (Bool)];
14603 char i[sizeof s.t];
14604 enum { j = false, k = true, l = false * true, m = true * 256 };
14605 /* The following fails for
14606 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
14607 Bool n[m];
14608 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14609 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14610 /* Catch a bug in an HP-UX C compiler. See
14611 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14612 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
14613 */
14614 Bool q = true;
14615 Bool *pq = &q;
14616 bool *qq = &q;
14617
14618 int
14619 main (void)
14620 {
14621
14622 bool e = &s;
14623 *pq |= q; *pq |= ! q;
14624 *qq |= q; *qq |= ! q;
14625 /* Refer to every declared value, to avoid compiler optimizations. */
14626 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14627 + !m + !n + !o + !p + !q + !pq + !qq);
14628
14629 ;
14630 return 0;
14631 }
14632 _ACEOF
14633 if ac_fn_c_try_compile "$LINENO"
14634 then :
14635 ac_cv_header_stdbool_h=yes
14636 else $as_nop
14637 ac_cv_header_stdbool_h=no
14638 fi
14639 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14640 fi
14641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
14642 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
14643 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
14644 if test "x$ac_cv_type__Bool" = xyes
14645 then :
14646
14647 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
14648
14649
14650 fi
14651
14652
14653
14654 REPLACE_NULL=0;
14655 HAVE_MAX_ALIGN_T=1;
14656 HAVE_WCHAR_T=1;
14657
14658
14659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
14660 printf %s "checking for wchar_t... " >&6; }
14661 if test ${gt_cv_c_wchar_t+y}
14662 then :
14663 printf %s "(cached) " >&6
14664 else $as_nop
14665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14666 /* end confdefs.h. */
14667 #include <stddef.h>
14668 wchar_t foo = (wchar_t)'\0';
14669 int
14670 main (void)
14671 {
14672
14673 ;
14674 return 0;
14675 }
14676 _ACEOF
14677 if ac_fn_c_try_compile "$LINENO"
14678 then :
14679 gt_cv_c_wchar_t=yes
14680 else $as_nop
14681 gt_cv_c_wchar_t=no
14682 fi
14683 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14684 fi
14685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
14686 printf "%s\n" "$gt_cv_c_wchar_t" >&6; }
14687 if test $gt_cv_c_wchar_t = yes; then
14688
14689 printf "%s\n" "#define HAVE_WCHAR_T 1" >>confdefs.h
14690
14691 fi
14692
14693
14694
14695
14696
14697
14698
14699 GL_GENERATE_STDDEF_H=false
14700
14701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
14702 printf %s "checking for good max_align_t... " >&6; }
14703 if test ${gl_cv_type_max_align_t+y}
14704 then :
14705 printf %s "(cached) " >&6
14706 else $as_nop
14707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14708 /* end confdefs.h. */
14709 #include <stddef.h>
14710 unsigned int s = sizeof (max_align_t);
14711 #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__
14712 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
14713 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
14714 #endif
14715 typedef struct { char a; max_align_t b; } max_helper;
14716 typedef struct { char a; long b; } long_helper;
14717 typedef struct { char a; double b; } double_helper;
14718 typedef struct { char a; long double b; } long_double_helper;
14719 int check3[2 * (offsetof (long_helper, b) <= offsetof (max_helper, b)) - 1];
14720 int check4[2 * (offsetof (double_helper, b) <= offsetof (max_helper, b)) - 1];
14721 int check5[2 * (offsetof (long_double_helper, b) <= offsetof (max_helper, b)) - 1];
14722
14723 int
14724 main (void)
14725 {
14726
14727 ;
14728 return 0;
14729 }
14730 _ACEOF
14731 if ac_fn_c_try_compile "$LINENO"
14732 then :
14733 gl_cv_type_max_align_t=yes
14734 else $as_nop
14735 gl_cv_type_max_align_t=no
14736 fi
14737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14738
14739 fi
14740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
14741 printf "%s\n" "$gl_cv_type_max_align_t" >&6; }
14742 if test $gl_cv_type_max_align_t = no; then
14743 HAVE_MAX_ALIGN_T=0
14744 GL_GENERATE_STDDEF_H=true
14745 fi
14746
14747 if test $gt_cv_c_wchar_t = no; then
14748 HAVE_WCHAR_T=0
14749 GL_GENERATE_STDDEF_H=true
14750 fi
14751
14752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
14753 printf %s "checking whether NULL can be used in arbitrary expressions... " >&6; }
14754 if test ${gl_cv_decl_null_works+y}
14755 then :
14756 printf %s "(cached) " >&6
14757 else $as_nop
14758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14759 /* end confdefs.h. */
14760 #include <stddef.h>
14761 int test[2 * (sizeof NULL == sizeof (void *)) -1];
14762
14763 int
14764 main (void)
14765 {
14766
14767 ;
14768 return 0;
14769 }
14770 _ACEOF
14771 if ac_fn_c_try_compile "$LINENO"
14772 then :
14773 gl_cv_decl_null_works=yes
14774 else $as_nop
14775 gl_cv_decl_null_works=no
14776 fi
14777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14778 fi
14779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
14780 printf "%s\n" "$gl_cv_decl_null_works" >&6; }
14781 if test $gl_cv_decl_null_works = no; then
14782 REPLACE_NULL=1
14783 GL_GENERATE_STDDEF_H=true
14784 fi
14785
14786 if $GL_GENERATE_STDDEF_H; then
14787
14788
14789
14790
14791
14792
14793
14794
14795 if test $gl_cv_have_include_next = yes; then
14796 gl_cv_next_stddef_h='<'stddef.h'>'
14797 else
14798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
14799 printf %s "checking absolute name of <stddef.h>... " >&6; }
14800 if test ${gl_cv_next_stddef_h+y}
14801 then :
14802 printf %s "(cached) " >&6
14803 else $as_nop
14804
14805
14806
14807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14808 /* end confdefs.h. */
14809 #include <stddef.h>
14810 _ACEOF
14811 case "$host_os" in
14812 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14813 *) gl_absname_cpp="$ac_cpp" ;;
14814 esac
14815
14816 case "$host_os" in
14817 mingw*)
14818 gl_dirsep_regex='[/\\]'
14819 ;;
14820 *)
14821 gl_dirsep_regex='\/'
14822 ;;
14823 esac
14824 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14825 gl_header_literal_regex=`echo 'stddef.h' \
14826 | sed -e "$gl_make_literal_regex_sed"`
14827 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14828 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14829 s|^/[^/]|//&|
14830 p
14831 q
14832 }'
14833
14834 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14835 sed -n "$gl_absolute_header_sed"`
14836
14837 gl_header=$gl_cv_absolute_stddef_h
14838 gl_cv_next_stddef_h='"'$gl_header'"'
14839
14840
14841 fi
14842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
14843 printf "%s\n" "$gl_cv_next_stddef_h" >&6; }
14844 fi
14845 NEXT_STDDEF_H=$gl_cv_next_stddef_h
14846
14847 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14848 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14849 gl_next_as_first_directive='<'stddef.h'>'
14850 else
14851 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14852 gl_next_as_first_directive=$gl_cv_next_stddef_h
14853 fi
14854 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
14855
14856
14857
14858
14859 fi
14860
14861
14862
14863 ac_fn_check_decl "$LINENO" "fcloseall" "ac_cv_have_decl_fcloseall" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
14864 if test "x$ac_cv_have_decl_fcloseall" = xyes
14865 then :
14866 ac_have_decl=1
14867 else $as_nop
14868 ac_have_decl=0
14869 fi
14870 printf "%s\n" "#define HAVE_DECL_FCLOSEALL $ac_have_decl" >>confdefs.h
14871
14872
14873
14874
14875 printf "%s\n" "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
14876
14877
14878
14879
14880
14881
14882
14883
14884
14885 if test $gl_cv_have_include_next = yes; then
14886 gl_cv_next_stdio_h='<'stdio.h'>'
14887 else
14888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
14889 printf %s "checking absolute name of <stdio.h>... " >&6; }
14890 if test ${gl_cv_next_stdio_h+y}
14891 then :
14892 printf %s "(cached) " >&6
14893 else $as_nop
14894
14895
14896
14897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14898 /* end confdefs.h. */
14899 #include <stdio.h>
14900 _ACEOF
14901 case "$host_os" in
14902 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14903 *) gl_absname_cpp="$ac_cpp" ;;
14904 esac
14905
14906 case "$host_os" in
14907 mingw*)
14908 gl_dirsep_regex='[/\\]'
14909 ;;
14910 *)
14911 gl_dirsep_regex='\/'
14912 ;;
14913 esac
14914 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14915 gl_header_literal_regex=`echo 'stdio.h' \
14916 | sed -e "$gl_make_literal_regex_sed"`
14917 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14918 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14919 s|^/[^/]|//&|
14920 p
14921 q
14922 }'
14923
14924 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14925 sed -n "$gl_absolute_header_sed"`
14926
14927 gl_header=$gl_cv_absolute_stdio_h
14928 gl_cv_next_stdio_h='"'$gl_header'"'
14929
14930
14931 fi
14932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
14933 printf "%s\n" "$gl_cv_next_stdio_h" >&6; }
14934 fi
14935 NEXT_STDIO_H=$gl_cv_next_stdio_h
14936
14937 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14938 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14939 gl_next_as_first_directive='<'stdio.h'>'
14940 else
14941 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14942 gl_next_as_first_directive=$gl_cv_next_stdio_h
14943 fi
14944 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
14945
14946
14947
14948
14949
14950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
14951 printf %s "checking which flavor of printf attribute matches inttypes macros... " >&6; }
14952 if test ${gl_cv_func_printf_attribute_flavor+y}
14953 then :
14954 printf %s "(cached) " >&6
14955 else $as_nop
14956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14957 /* end confdefs.h. */
14958
14959 #define __STDC_FORMAT_MACROS 1
14960 #include <stdio.h>
14961 #include <inttypes.h>
14962 /* For non-mingw systems, compilation will trivially succeed.
14963 For mingw, compilation will succeed for older mingw (system
14964 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
14965 #if (defined _WIN32 && ! defined __CYGWIN__) && \
14966 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
14967 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
14968 #endif
14969
14970 int
14971 main (void)
14972 {
14973
14974 ;
14975 return 0;
14976 }
14977 _ACEOF
14978 if ac_fn_c_try_compile "$LINENO"
14979 then :
14980 gl_cv_func_printf_attribute_flavor=system
14981 else $as_nop
14982 gl_cv_func_printf_attribute_flavor=gnu
14983 fi
14984 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14985 fi
14986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
14987 printf "%s\n" "$gl_cv_func_printf_attribute_flavor" >&6; }
14988 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
14989
14990 printf "%s\n" "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
14991
14992 fi
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006 if test $ac_cv_have_decl_fcloseall = no; then
15007 HAVE_DECL_FCLOSEALL=0
15008 fi
15009
15010 ac_fn_check_decl "$LINENO" "ecvt" "ac_cv_have_decl_ecvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15011 if test "x$ac_cv_have_decl_ecvt" = xyes
15012 then :
15013 ac_have_decl=1
15014 else $as_nop
15015 ac_have_decl=0
15016 fi
15017 printf "%s\n" "#define HAVE_DECL_ECVT $ac_have_decl" >>confdefs.h
15018
15019 ac_fn_check_decl "$LINENO" "fcvt" "ac_cv_have_decl_fcvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15020 if test "x$ac_cv_have_decl_fcvt" = xyes
15021 then :
15022 ac_have_decl=1
15023 else $as_nop
15024 ac_have_decl=0
15025 fi
15026 printf "%s\n" "#define HAVE_DECL_FCVT $ac_have_decl" >>confdefs.h
15027
15028 ac_fn_check_decl "$LINENO" "gcvt" "ac_cv_have_decl_gcvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15029 if test "x$ac_cv_have_decl_gcvt" = xyes
15030 then :
15031 ac_have_decl=1
15032 else $as_nop
15033 ac_have_decl=0
15034 fi
15035 printf "%s\n" "#define HAVE_DECL_GCVT $ac_have_decl" >>confdefs.h
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047 if test $gl_cv_have_include_next = yes; then
15048 gl_cv_next_stdlib_h='<'stdlib.h'>'
15049 else
15050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
15051 printf %s "checking absolute name of <stdlib.h>... " >&6; }
15052 if test ${gl_cv_next_stdlib_h+y}
15053 then :
15054 printf %s "(cached) " >&6
15055 else $as_nop
15056
15057
15058
15059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15060 /* end confdefs.h. */
15061 #include <stdlib.h>
15062 _ACEOF
15063 case "$host_os" in
15064 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15065 *) gl_absname_cpp="$ac_cpp" ;;
15066 esac
15067
15068 case "$host_os" in
15069 mingw*)
15070 gl_dirsep_regex='[/\\]'
15071 ;;
15072 *)
15073 gl_dirsep_regex='\/'
15074 ;;
15075 esac
15076 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15077 gl_header_literal_regex=`echo 'stdlib.h' \
15078 | sed -e "$gl_make_literal_regex_sed"`
15079 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15080 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15081 s|^/[^/]|//&|
15082 p
15083 q
15084 }'
15085
15086 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15087 sed -n "$gl_absolute_header_sed"`
15088
15089 gl_header=$gl_cv_absolute_stdlib_h
15090 gl_cv_next_stdlib_h='"'$gl_header'"'
15091
15092
15093 fi
15094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
15095 printf "%s\n" "$gl_cv_next_stdlib_h" >&6; }
15096 fi
15097 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
15098
15099 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15100 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15101 gl_next_as_first_directive='<'stdlib.h'>'
15102 else
15103 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15104 gl_next_as_first_directive=$gl_cv_next_stdlib_h
15105 fi
15106 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119 if test $ac_cv_have_decl_ecvt = no; then
15120 HAVE_DECL_ECVT=0
15121 fi
15122
15123 if test $ac_cv_have_decl_fcvt = no; then
15124 HAVE_DECL_FCVT=0
15125 fi
15126
15127 if test $ac_cv_have_decl_gcvt = no; then
15128 HAVE_DECL_GCVT=0
15129 fi
15130
15131
15132 HAVE_FFS=1;
15133 HAVE_STRCASECMP=1;
15134 HAVE_DECL_STRNCASECMP=1;
15135
15136
15137 REPLACE_STRERROR_0=0
15138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
15139 printf %s "checking whether strerror(0) succeeds... " >&6; }
15140 if test ${gl_cv_func_strerror_0_works+y}
15141 then :
15142 printf %s "(cached) " >&6
15143 else $as_nop
15144 if test "$cross_compiling" = yes
15145 then :
15146 case "$host_os" in
15147 # Guess yes on glibc systems.
15148 *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
15149 # Guess yes on musl systems.
15150 *-musl*) gl_cv_func_strerror_0_works="guessing yes" ;;
15151 # Guess yes on native Windows.
15152 mingw*) gl_cv_func_strerror_0_works="guessing yes" ;;
15153 # If we don't know, obey --enable-cross-guesses.
15154 *) gl_cv_func_strerror_0_works="$gl_cross_guess_normal" ;;
15155 esac
15156
15157 else $as_nop
15158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15159 /* end confdefs.h. */
15160 #include <string.h>
15161 #include <errno.h>
15162
15163 int
15164 main (void)
15165 {
15166 int result = 0;
15167 char *str;
15168 errno = 0;
15169 str = strerror (0);
15170 if (!*str) result |= 1;
15171 if (errno) result |= 2;
15172 if (strstr (str, "nknown") || strstr (str, "ndefined"))
15173 result |= 4;
15174 return result;
15175 ;
15176 return 0;
15177 }
15178 _ACEOF
15179 if ac_fn_c_try_run "$LINENO"
15180 then :
15181 gl_cv_func_strerror_0_works=yes
15182 else $as_nop
15183 gl_cv_func_strerror_0_works=no
15184 fi
15185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15186 conftest.$ac_objext conftest.beam conftest.$ac_ext
15187 fi
15188
15189
15190 fi
15191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
15192 printf "%s\n" "$gl_cv_func_strerror_0_works" >&6; }
15193 case "$gl_cv_func_strerror_0_works" in
15194 *yes) ;;
15195 *)
15196 REPLACE_STRERROR_0=1
15197
15198 printf "%s\n" "#define REPLACE_STRERROR_0 1" >>confdefs.h
15199
15200 ;;
15201 esac
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213 if test $gl_cv_have_include_next = yes; then
15214 gl_cv_next_string_h='<'string.h'>'
15215 else
15216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
15217 printf %s "checking absolute name of <string.h>... " >&6; }
15218 if test ${gl_cv_next_string_h+y}
15219 then :
15220 printf %s "(cached) " >&6
15221 else $as_nop
15222
15223
15224
15225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15226 /* end confdefs.h. */
15227 #include <string.h>
15228 _ACEOF
15229 case "$host_os" in
15230 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15231 *) gl_absname_cpp="$ac_cpp" ;;
15232 esac
15233
15234 case "$host_os" in
15235 mingw*)
15236 gl_dirsep_regex='[/\\]'
15237 ;;
15238 *)
15239 gl_dirsep_regex='\/'
15240 ;;
15241 esac
15242 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15243 gl_header_literal_regex=`echo 'string.h' \
15244 | sed -e "$gl_make_literal_regex_sed"`
15245 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15246 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15247 s|^/[^/]|//&|
15248 p
15249 q
15250 }'
15251
15252 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15253 sed -n "$gl_absolute_header_sed"`
15254
15255 gl_header=$gl_cv_absolute_string_h
15256 gl_cv_next_string_h='"'$gl_header'"'
15257
15258
15259 fi
15260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
15261 printf "%s\n" "$gl_cv_next_string_h" >&6; }
15262 fi
15263 NEXT_STRING_H=$gl_cv_next_string_h
15264
15265 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15266 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15267 gl_next_as_first_directive='<'string.h'>'
15268 else
15269 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15270 gl_next_as_first_directive=$gl_cv_next_string_h
15271 fi
15272 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
15273
15274
15275
15276
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296 if test $gl_cv_have_include_next = yes; then
15297 gl_cv_next_strings_h='<'strings.h'>'
15298 else
15299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <strings.h>" >&5
15300 printf %s "checking absolute name of <strings.h>... " >&6; }
15301 if test ${gl_cv_next_strings_h+y}
15302 then :
15303 printf %s "(cached) " >&6
15304 else $as_nop
15305
15306 if test $ac_cv_header_strings_h = yes; then
15307
15308
15309
15310
15311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15312 /* end confdefs.h. */
15313 #include <strings.h>
15314 _ACEOF
15315 case "$host_os" in
15316 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15317 *) gl_absname_cpp="$ac_cpp" ;;
15318 esac
15319
15320 case "$host_os" in
15321 mingw*)
15322 gl_dirsep_regex='[/\\]'
15323 ;;
15324 *)
15325 gl_dirsep_regex='\/'
15326 ;;
15327 esac
15328 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15329 gl_header_literal_regex=`echo 'strings.h' \
15330 | sed -e "$gl_make_literal_regex_sed"`
15331 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15332 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15333 s|^/[^/]|//&|
15334 p
15335 q
15336 }'
15337
15338 gl_cv_absolute_strings_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15339 sed -n "$gl_absolute_header_sed"`
15340
15341 gl_header=$gl_cv_absolute_strings_h
15342 gl_cv_next_strings_h='"'$gl_header'"'
15343 else
15344 gl_cv_next_strings_h='<'strings.h'>'
15345 fi
15346
15347
15348 fi
15349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_strings_h" >&5
15350 printf "%s\n" "$gl_cv_next_strings_h" >&6; }
15351 fi
15352 NEXT_STRINGS_H=$gl_cv_next_strings_h
15353
15354 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15355 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15356 gl_next_as_first_directive='<'strings.h'>'
15357 else
15358 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15359 gl_next_as_first_directive=$gl_cv_next_strings_h
15360 fi
15361 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
15362
15363
15364
15365
15366 if test $ac_cv_header_strings_h = yes; then
15367 HAVE_STRINGS_H=1
15368 else
15369 HAVE_STRINGS_H=0
15370 fi
15371
15372
15373
15374
15375
15376
15377
15378
15379 GL_GNULIB_FFS=0
15380
15381
15382
15383 ac_fn_check_decl "$LINENO" "strndup" "ac_cv_have_decl_strndup" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15384 if test "x$ac_cv_have_decl_strndup" = xyes
15385 then :
15386 ac_have_decl=1
15387 else $as_nop
15388 ac_have_decl=0
15389 fi
15390 printf "%s\n" "#define HAVE_DECL_STRNDUP $ac_have_decl" >>confdefs.h
15391
15392
15393 ac_fn_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15394 if test "x$ac_cv_have_decl_strnlen" = xyes
15395 then :
15396 ac_have_decl=1
15397 else $as_nop
15398 ac_have_decl=0
15399 fi
15400 printf "%s\n" "#define HAVE_DECL_STRNLEN $ac_have_decl" >>confdefs.h
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414 printf "%s\n" "#define _USE_STD_STAT 1" >>confdefs.h
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425 if test $gl_cv_have_include_next = yes; then
15426 gl_cv_next_sys_types_h='<'sys/types.h'>'
15427 else
15428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
15429 printf %s "checking absolute name of <sys/types.h>... " >&6; }
15430 if test ${gl_cv_next_sys_types_h+y}
15431 then :
15432 printf %s "(cached) " >&6
15433 else $as_nop
15434
15435
15436
15437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15438 /* end confdefs.h. */
15439 #include <sys/types.h>
15440 _ACEOF
15441 case "$host_os" in
15442 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15443 *) gl_absname_cpp="$ac_cpp" ;;
15444 esac
15445
15446 case "$host_os" in
15447 mingw*)
15448 gl_dirsep_regex='[/\\]'
15449 ;;
15450 *)
15451 gl_dirsep_regex='\/'
15452 ;;
15453 esac
15454 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15455 gl_header_literal_regex=`echo 'sys/types.h' \
15456 | sed -e "$gl_make_literal_regex_sed"`
15457 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15458 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15459 s|^/[^/]|//&|
15460 p
15461 q
15462 }'
15463
15464 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15465 sed -n "$gl_absolute_header_sed"`
15466
15467 gl_header=$gl_cv_absolute_sys_types_h
15468 gl_cv_next_sys_types_h='"'$gl_header'"'
15469
15470
15471 fi
15472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
15473 printf "%s\n" "$gl_cv_next_sys_types_h" >&6; }
15474 fi
15475 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
15476
15477 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15478 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15479 gl_next_as_first_directive='<'sys/types.h'>'
15480 else
15481 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15482 gl_next_as_first_directive=$gl_cv_next_sys_types_h
15483 fi
15484 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497 WINDOWS_STAT_INODES=0
15498
15499
15500
15501
15502
15503
15504
15505 HAVE_DECL_LOCALTIME_R=1;
15506 HAVE_NANOSLEEP=1;
15507 HAVE_STRPTIME=1;
15508 HAVE_TIMEGM=1;
15509 HAVE_TIMESPEC_GET=1;
15510 HAVE_TIMESPEC_GETRES=1;
15511 HAVE_TIMEZONE_T=0;
15512 REPLACE_CTIME=GNULIB_PORTCHECK;
15513 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
15514 REPLACE_MKTIME=GNULIB_PORTCHECK;
15515 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
15516 REPLACE_STRFTIME=GNULIB_PORTCHECK;
15517 REPLACE_TIMEGM=GNULIB_PORTCHECK;
15518 REPLACE_TZSET=GNULIB_PORTCHECK;
15519
15520 : ${GNULIB_GETTIMEOFDAY=0};
15521 REPLACE_GMTIME=0;
15522 REPLACE_LOCALTIME=0;
15523
15524
15525
15526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
15527 printf %s "checking for struct timespec in <time.h>... " >&6; }
15528 if test ${gl_cv_sys_struct_timespec_in_time_h+y}
15529 then :
15530 printf %s "(cached) " >&6
15531 else $as_nop
15532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15533 /* end confdefs.h. */
15534 #include <time.h>
15535
15536 int
15537 main (void)
15538 {
15539 static struct timespec x; x.tv_sec = x.tv_nsec;
15540 ;
15541 return 0;
15542 }
15543 _ACEOF
15544 if ac_fn_c_try_compile "$LINENO"
15545 then :
15546 gl_cv_sys_struct_timespec_in_time_h=yes
15547 else $as_nop
15548 gl_cv_sys_struct_timespec_in_time_h=no
15549 fi
15550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15551 fi
15552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
15553 printf "%s\n" "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
15554
15555 TIME_H_DEFINES_STRUCT_TIMESPEC=0
15556 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
15557 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
15558 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
15559 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
15560 TIME_H_DEFINES_STRUCT_TIMESPEC=1
15561 else
15562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
15563 printf %s "checking for struct timespec in <sys/time.h>... " >&6; }
15564 if test ${gl_cv_sys_struct_timespec_in_sys_time_h+y}
15565 then :
15566 printf %s "(cached) " >&6
15567 else $as_nop
15568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15569 /* end confdefs.h. */
15570 #include <sys/time.h>
15571
15572 int
15573 main (void)
15574 {
15575 static struct timespec x; x.tv_sec = x.tv_nsec;
15576 ;
15577 return 0;
15578 }
15579 _ACEOF
15580 if ac_fn_c_try_compile "$LINENO"
15581 then :
15582 gl_cv_sys_struct_timespec_in_sys_time_h=yes
15583 else $as_nop
15584 gl_cv_sys_struct_timespec_in_sys_time_h=no
15585 fi
15586 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15587 fi
15588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
15589 printf "%s\n" "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
15590 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
15591 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
15592 else
15593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
15594 printf %s "checking for struct timespec in <pthread.h>... " >&6; }
15595 if test ${gl_cv_sys_struct_timespec_in_pthread_h+y}
15596 then :
15597 printf %s "(cached) " >&6
15598 else $as_nop
15599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15600 /* end confdefs.h. */
15601 #include <pthread.h>
15602
15603 int
15604 main (void)
15605 {
15606 static struct timespec x; x.tv_sec = x.tv_nsec;
15607 ;
15608 return 0;
15609 }
15610 _ACEOF
15611 if ac_fn_c_try_compile "$LINENO"
15612 then :
15613 gl_cv_sys_struct_timespec_in_pthread_h=yes
15614 else $as_nop
15615 gl_cv_sys_struct_timespec_in_pthread_h=no
15616 fi
15617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15618 fi
15619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
15620 printf "%s\n" "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
15621 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
15622 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
15623 else
15624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
15625 printf %s "checking for struct timespec in <unistd.h>... " >&6; }
15626 if test ${gl_cv_sys_struct_timespec_in_unistd_h+y}
15627 then :
15628 printf %s "(cached) " >&6
15629 else $as_nop
15630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15631 /* end confdefs.h. */
15632 #include <unistd.h>
15633
15634 int
15635 main (void)
15636 {
15637 static struct timespec x; x.tv_sec = x.tv_nsec;
15638 ;
15639 return 0;
15640 }
15641 _ACEOF
15642 if ac_fn_c_try_compile "$LINENO"
15643 then :
15644 gl_cv_sys_struct_timespec_in_unistd_h=yes
15645 else $as_nop
15646 gl_cv_sys_struct_timespec_in_unistd_h=no
15647 fi
15648 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15649 fi
15650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
15651 printf "%s\n" "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
15652 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
15653 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
15654 fi
15655 fi
15656 fi
15657 fi
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674 if test $gl_cv_have_include_next = yes; then
15675 gl_cv_next_time_h='<'time.h'>'
15676 else
15677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
15678 printf %s "checking absolute name of <time.h>... " >&6; }
15679 if test ${gl_cv_next_time_h+y}
15680 then :
15681 printf %s "(cached) " >&6
15682 else $as_nop
15683
15684
15685
15686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15687 /* end confdefs.h. */
15688 #include <time.h>
15689 _ACEOF
15690 case "$host_os" in
15691 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15692 *) gl_absname_cpp="$ac_cpp" ;;
15693 esac
15694
15695 case "$host_os" in
15696 mingw*)
15697 gl_dirsep_regex='[/\\]'
15698 ;;
15699 *)
15700 gl_dirsep_regex='\/'
15701 ;;
15702 esac
15703 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15704 gl_header_literal_regex=`echo 'time.h' \
15705 | sed -e "$gl_make_literal_regex_sed"`
15706 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15707 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15708 s|^/[^/]|//&|
15709 p
15710 q
15711 }'
15712
15713 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15714 sed -n "$gl_absolute_header_sed"`
15715
15716 gl_header=$gl_cv_absolute_time_h
15717 gl_cv_next_time_h='"'$gl_header'"'
15718
15719
15720 fi
15721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
15722 printf "%s\n" "$gl_cv_next_time_h" >&6; }
15723 fi
15724 NEXT_TIME_H=$gl_cv_next_time_h
15725
15726 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15727 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15728 gl_next_as_first_directive='<'time.h'>'
15729 else
15730 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15731 gl_next_as_first_directive=$gl_cv_next_time_h
15732 fi
15733 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
15734
15735
15736
15737
15738
15739
15740
15741
15742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIME_UTC in <time.h>" >&5
15743 printf %s "checking for TIME_UTC in <time.h>... " >&6; }
15744 if test ${gl_cv_time_h_has_TIME_UTC+y}
15745 then :
15746 printf %s "(cached) " >&6
15747 else $as_nop
15748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15749 /* end confdefs.h. */
15750 #include <time.h>
15751
15752 int
15753 main (void)
15754 {
15755 static int x = TIME_UTC; x++;
15756 ;
15757 return 0;
15758 }
15759 _ACEOF
15760 if ac_fn_c_try_compile "$LINENO"
15761 then :
15762 gl_cv_time_h_has_TIME_UTC=yes
15763 else $as_nop
15764 gl_cv_time_h_has_TIME_UTC=no
15765 fi
15766 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15767 fi
15768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_h_has_TIME_UTC" >&5
15769 printf "%s\n" "$gl_cv_time_h_has_TIME_UTC" >&6; }
15770 if test $gl_cv_time_h_has_TIME_UTC = yes; then
15771 TIME_H_DEFINES_TIME_UTC=1
15772 else
15773 TIME_H_DEFINES_TIME_UTC=0
15774 fi
15775
15776
15777
15778
15779 GL_GNULIB_CTIME=0
15780
15781
15782
15783 GL_GNULIB_MKTIME=0
15784
15785
15786
15787 GL_GNULIB_LOCALTIME=0
15788
15789
15790
15791 GL_GNULIB_NANOSLEEP=0
15792
15793
15794
15795 GL_GNULIB_STRFTIME=0
15796
15797
15798
15799 GL_GNULIB_STRPTIME=0
15800
15801
15802
15803 GL_GNULIB_TIMEGM=0
15804
15805
15806
15807 GL_GNULIB_TIMESPEC_GET=0
15808
15809
15810
15811 GL_GNULIB_TIMESPEC_GETRES=0
15812
15813
15814
15815 GL_GNULIB_TIME_R=0
15816
15817
15818
15819 GL_GNULIB_TIME_RZ=0
15820
15821
15822
15823 GL_GNULIB_TZSET=0
15824
15825
15826
15827 GL_GNULIB_MDA_TZSET=1
15828
15829
15830
15831 ac_fn_check_decl "$LINENO" "execvpe" "ac_cv_have_decl_execvpe" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15832 if test "x$ac_cv_have_decl_execvpe" = xyes
15833 then :
15834 ac_have_decl=1
15835 else $as_nop
15836 ac_have_decl=0
15837 fi
15838 printf "%s\n" "#define HAVE_DECL_EXECVPE $ac_have_decl" >>confdefs.h
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852 if test $gl_cv_have_include_next = yes; then
15853 gl_cv_next_unistd_h='<'unistd.h'>'
15854 else
15855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15856 printf %s "checking absolute name of <unistd.h>... " >&6; }
15857 if test ${gl_cv_next_unistd_h+y}
15858 then :
15859 printf %s "(cached) " >&6
15860 else $as_nop
15861
15862 if test $ac_cv_header_unistd_h = yes; then
15863
15864
15865
15866
15867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15868 /* end confdefs.h. */
15869 #include <unistd.h>
15870 _ACEOF
15871 case "$host_os" in
15872 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15873 *) gl_absname_cpp="$ac_cpp" ;;
15874 esac
15875
15876 case "$host_os" in
15877 mingw*)
15878 gl_dirsep_regex='[/\\]'
15879 ;;
15880 *)
15881 gl_dirsep_regex='\/'
15882 ;;
15883 esac
15884 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15885 gl_header_literal_regex=`echo 'unistd.h' \
15886 | sed -e "$gl_make_literal_regex_sed"`
15887 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15888 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15889 s|^/[^/]|//&|
15890 p
15891 q
15892 }'
15893
15894 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15895 sed -n "$gl_absolute_header_sed"`
15896
15897 gl_header=$gl_cv_absolute_unistd_h
15898 gl_cv_next_unistd_h='"'$gl_header'"'
15899 else
15900 gl_cv_next_unistd_h='<'unistd.h'>'
15901 fi
15902
15903
15904 fi
15905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15906 printf "%s\n" "$gl_cv_next_unistd_h" >&6; }
15907 fi
15908 NEXT_UNISTD_H=$gl_cv_next_unistd_h
15909
15910 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15911 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15912 gl_next_as_first_directive='<'unistd.h'>'
15913 else
15914 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15915 gl_next_as_first_directive=$gl_cv_next_unistd_h
15916 fi
15917 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
15918
15919
15920
15921
15922 if test $ac_cv_header_unistd_h = yes; then
15923 HAVE_UNISTD_H=1
15924 else
15925 HAVE_UNISTD_H=0
15926 fi
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940 if test $ac_cv_have_decl_execvpe = no; then
15941 HAVE_DECL_EXECVPE=0
15942 fi
15943
15944
15945
15946
15947 if test $ac_cv_header_features_h = yes; then
15948 HAVE_FEATURES_H=1
15949 else
15950 HAVE_FEATURES_H=0
15951 fi
15952
15953
15954
15955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
15956 printf %s "checking for inttypes.h... " >&6; }
15957 if test ${gl_cv_header_inttypes_h+y}
15958 then :
15959 printf %s "(cached) " >&6
15960 else $as_nop
15961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15962 /* end confdefs.h. */
15963
15964 #include <sys/types.h>
15965 #include <inttypes.h>
15966
15967 int
15968 main (void)
15969 {
15970 uintmax_t i = (uintmax_t) -1; return !i;
15971 ;
15972 return 0;
15973 }
15974 _ACEOF
15975 if ac_fn_c_try_compile "$LINENO"
15976 then :
15977 gl_cv_header_inttypes_h=yes
15978 else $as_nop
15979 gl_cv_header_inttypes_h=no
15980 fi
15981 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15982 fi
15983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
15984 printf "%s\n" "$gl_cv_header_inttypes_h" >&6; }
15985 if test $gl_cv_header_inttypes_h = yes; then
15986
15987 printf "%s\n" "#define HAVE_INTTYPES_H_WITH_UINTMAX 1" >>confdefs.h
15988
15989 fi
15990
15991
15992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
15993 printf %s "checking for stdint.h... " >&6; }
15994 if test ${gl_cv_header_stdint_h+y}
15995 then :
15996 printf %s "(cached) " >&6
15997 else $as_nop
15998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15999 /* end confdefs.h. */
16000 #include <sys/types.h>
16001 #include <stdint.h>
16002 int
16003 main (void)
16004 {
16005 uintmax_t i = (uintmax_t) -1; return !i;
16006 ;
16007 return 0;
16008 }
16009 _ACEOF
16010 if ac_fn_c_try_compile "$LINENO"
16011 then :
16012 gl_cv_header_stdint_h=yes
16013 else $as_nop
16014 gl_cv_header_stdint_h=no
16015 fi
16016 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16017 fi
16018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
16019 printf "%s\n" "$gl_cv_header_stdint_h" >&6; }
16020 if test $gl_cv_header_stdint_h = yes; then
16021
16022 printf "%s\n" "#define HAVE_STDINT_H_WITH_UINTMAX 1" >>confdefs.h
16023
16024 fi
16025
16026
16027
16028
16029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
16030 printf %s "checking for intmax_t... " >&6; }
16031 if test ${gt_cv_c_intmax_t+y}
16032 then :
16033 printf %s "(cached) " >&6
16034 else $as_nop
16035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16036 /* end confdefs.h. */
16037
16038 #include <stddef.h>
16039 #include <stdlib.h>
16040 #if HAVE_STDINT_H_WITH_UINTMAX
16041 #include <stdint.h>
16042 #endif
16043 #if HAVE_INTTYPES_H_WITH_UINTMAX
16044 #include <inttypes.h>
16045 #endif
16046
16047 int
16048 main (void)
16049 {
16050 intmax_t x = -1; return !x;
16051 ;
16052 return 0;
16053 }
16054 _ACEOF
16055 if ac_fn_c_try_compile "$LINENO"
16056 then :
16057 gt_cv_c_intmax_t=yes
16058 else $as_nop
16059 gt_cv_c_intmax_t=no
16060 fi
16061 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16062 fi
16063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
16064 printf "%s\n" "$gt_cv_c_intmax_t" >&6; }
16065 if test $gt_cv_c_intmax_t = yes; then
16066
16067 printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h
16068
16069 else
16070
16071 printf "%s\n" "#define intmax_t long long" >>confdefs.h
16072
16073 fi
16074
16075
16076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
16077 printf %s "checking where to find the exponent in a 'double'... " >&6; }
16078 if test ${gl_cv_cc_double_expbit0+y}
16079 then :
16080 printf %s "(cached) " >&6
16081 else $as_nop
16082
16083 if test "$cross_compiling" = yes
16084 then :
16085
16086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16087 /* end confdefs.h. */
16088
16089 #if defined arm || defined __arm || defined __arm__
16090 mixed_endianness
16091 #endif
16092
16093 _ACEOF
16094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16095 $EGREP "mixed_endianness" >/dev/null 2>&1
16096 then :
16097 gl_cv_cc_double_expbit0="unknown"
16098 else $as_nop
16099
16100 :
16101 if test ${ac_cv_c_bigendian+y}
16102 then :
16103 printf %s "(cached) " >&6
16104 else $as_nop
16105 ac_cv_c_bigendian=unknown
16106 # See if we're dealing with a universal compiler.
16107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16108 /* end confdefs.h. */
16109 #ifndef __APPLE_CC__
16110 not a universal capable compiler
16111 #endif
16112 typedef int dummy;
16113
16114 _ACEOF
16115 if ac_fn_c_try_compile "$LINENO"
16116 then :
16117
16118 # Check for potential -arch flags. It is not universal unless
16119 # there are at least two -arch flags with different values.
16120 ac_arch=
16121 ac_prev=
16122 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16123 if test -n "$ac_prev"; then
16124 case $ac_word in
16125 i?86 | x86_64 | ppc | ppc64)
16126 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16127 ac_arch=$ac_word
16128 else
16129 ac_cv_c_bigendian=universal
16130 break
16131 fi
16132 ;;
16133 esac
16134 ac_prev=
16135 elif test "x$ac_word" = "x-arch"; then
16136 ac_prev=arch
16137 fi
16138 done
16139 fi
16140 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16141 if test $ac_cv_c_bigendian = unknown; then
16142 # See if sys/param.h defines the BYTE_ORDER macro.
16143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16144 /* end confdefs.h. */
16145 #include <sys/types.h>
16146 #include <sys/param.h>
16147
16148 int
16149 main (void)
16150 {
16151 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16152 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16153 && LITTLE_ENDIAN)
16154 bogus endian macros
16155 #endif
16156
16157 ;
16158 return 0;
16159 }
16160 _ACEOF
16161 if ac_fn_c_try_compile "$LINENO"
16162 then :
16163 # It does; now see whether it defined to BIG_ENDIAN or not.
16164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16165 /* end confdefs.h. */
16166 #include <sys/types.h>
16167 #include <sys/param.h>
16168
16169 int
16170 main (void)
16171 {
16172 #if BYTE_ORDER != BIG_ENDIAN
16173 not big endian
16174 #endif
16175
16176 ;
16177 return 0;
16178 }
16179 _ACEOF
16180 if ac_fn_c_try_compile "$LINENO"
16181 then :
16182 ac_cv_c_bigendian=yes
16183 else $as_nop
16184 ac_cv_c_bigendian=no
16185 fi
16186 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16187 fi
16188 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16189 fi
16190 if test $ac_cv_c_bigendian = unknown; then
16191 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16193 /* end confdefs.h. */
16194 #include <limits.h>
16195
16196 int
16197 main (void)
16198 {
16199 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16200 bogus endian macros
16201 #endif
16202
16203 ;
16204 return 0;
16205 }
16206 _ACEOF
16207 if ac_fn_c_try_compile "$LINENO"
16208 then :
16209 # It does; now see whether it defined to _BIG_ENDIAN or not.
16210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16211 /* end confdefs.h. */
16212 #include <limits.h>
16213
16214 int
16215 main (void)
16216 {
16217 #ifndef _BIG_ENDIAN
16218 not big endian
16219 #endif
16220
16221 ;
16222 return 0;
16223 }
16224 _ACEOF
16225 if ac_fn_c_try_compile "$LINENO"
16226 then :
16227 ac_cv_c_bigendian=yes
16228 else $as_nop
16229 ac_cv_c_bigendian=no
16230 fi
16231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16232 fi
16233 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16234 fi
16235 if test $ac_cv_c_bigendian = unknown; then
16236 # Compile a test program.
16237 if test "$cross_compiling" = yes
16238 then :
16239 # Try to guess by grepping values from an object file.
16240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16241 /* end confdefs.h. */
16242 unsigned short int ascii_mm[] =
16243 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16244 unsigned short int ascii_ii[] =
16245 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16246 int use_ascii (int i) {
16247 return ascii_mm[i] + ascii_ii[i];
16248 }
16249 unsigned short int ebcdic_ii[] =
16250 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16251 unsigned short int ebcdic_mm[] =
16252 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16253 int use_ebcdic (int i) {
16254 return ebcdic_mm[i] + ebcdic_ii[i];
16255 }
16256 extern int foo;
16257
16258 int
16259 main (void)
16260 {
16261 return use_ascii (foo) == use_ebcdic (foo);
16262 ;
16263 return 0;
16264 }
16265 _ACEOF
16266 if ac_fn_c_try_compile "$LINENO"
16267 then :
16268 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16269 ac_cv_c_bigendian=yes
16270 fi
16271 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16272 if test "$ac_cv_c_bigendian" = unknown; then
16273 ac_cv_c_bigendian=no
16274 else
16275 # finding both strings is unlikely to happen, but who knows?
16276 ac_cv_c_bigendian=unknown
16277 fi
16278 fi
16279 fi
16280 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16281 else $as_nop
16282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16283 /* end confdefs.h. */
16284 $ac_includes_default
16285 int
16286 main (void)
16287 {
16288
16289 /* Are we little or big endian? From Harbison&Steele. */
16290 union
16291 {
16292 long int l;
16293 char c[sizeof (long int)];
16294 } u;
16295 u.l = 1;
16296 return u.c[sizeof (long int) - 1] == 1;
16297
16298 ;
16299 return 0;
16300 }
16301 _ACEOF
16302 if ac_fn_c_try_run "$LINENO"
16303 then :
16304 ac_cv_c_bigendian=no
16305 else $as_nop
16306 ac_cv_c_bigendian=yes
16307 fi
16308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16309 conftest.$ac_objext conftest.beam conftest.$ac_ext
16310 fi
16311
16312 fi
16313 fi
16314 :
16315 case $ac_cv_c_bigendian in #(
16316 yes)
16317 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
16318 no)
16319 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
16320 universal)
16321
16322 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16323
16324 ;; #(
16325 *)
16326 gl_cv_cc_double_expbit0="unknown" ;;
16327 esac
16328
16329
16330 fi
16331 rm -rf conftest*
16332
16333
16334 else $as_nop
16335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16336 /* end confdefs.h. */
16337
16338 #include <float.h>
16339 #include <stddef.h>
16340 #include <stdio.h>
16341 #include <string.h>
16342 #define NWORDS \
16343 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
16344 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
16345 static unsigned int ored_words[NWORDS];
16346 static unsigned int anded_words[NWORDS];
16347 static void add_to_ored_words (double x)
16348 {
16349 memory_double m;
16350 size_t i;
16351 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
16352 memset (&m, 0, sizeof (memory_double));
16353 m.value = x;
16354 for (i = 0; i < NWORDS; i++)
16355 {
16356 ored_words[i] |= m.word[i];
16357 anded_words[i] &= m.word[i];
16358 }
16359 }
16360 int main ()
16361 {
16362 size_t j;
16363 FILE *fp = fopen ("conftest.out", "w");
16364 if (fp == NULL)
16365 return 1;
16366 for (j = 0; j < NWORDS; j++)
16367 anded_words[j] = ~ (unsigned int) 0;
16368 add_to_ored_words (0.25);
16369 add_to_ored_words (0.5);
16370 add_to_ored_words (1.0);
16371 add_to_ored_words (2.0);
16372 add_to_ored_words (4.0);
16373 /* Remove bits that are common (e.g. if representation of the first mantissa
16374 bit is explicit). */
16375 for (j = 0; j < NWORDS; j++)
16376 ored_words[j] &= ~anded_words[j];
16377 /* Now find the nonzero word. */
16378 for (j = 0; j < NWORDS; j++)
16379 if (ored_words[j] != 0)
16380 break;
16381 if (j < NWORDS)
16382 {
16383 size_t i;
16384 for (i = j + 1; i < NWORDS; i++)
16385 if (ored_words[i] != 0)
16386 {
16387 fprintf (fp, "unknown");
16388 return (fclose (fp) != 0);
16389 }
16390 for (i = 0; ; i++)
16391 if ((ored_words[j] >> i) & 1)
16392 {
16393 fprintf (fp, "word %d bit %d", (int) j, (int) i);
16394 return (fclose (fp) != 0);
16395 }
16396 }
16397 fprintf (fp, "unknown");
16398 return (fclose (fp) != 0);
16399 }
16400
16401 _ACEOF
16402 if ac_fn_c_try_run "$LINENO"
16403 then :
16404 gl_cv_cc_double_expbit0=`cat conftest.out`
16405 else $as_nop
16406 gl_cv_cc_double_expbit0="unknown"
16407 fi
16408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16409 conftest.$ac_objext conftest.beam conftest.$ac_ext
16410 fi
16411
16412 rm -f conftest.out
16413
16414 fi
16415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
16416 printf "%s\n" "$gl_cv_cc_double_expbit0" >&6; }
16417 case "$gl_cv_cc_double_expbit0" in
16418 word*bit*)
16419 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
16420 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
16421
16422 printf "%s\n" "#define DBL_EXPBIT0_WORD $word" >>confdefs.h
16423
16424
16425 printf "%s\n" "#define DBL_EXPBIT0_BIT $bit" >>confdefs.h
16426
16427 ;;
16428 esac
16429
16430
16431
16432
16433
16434
16435
16436
16437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
16438 printf %s "checking whether snprintf returns a byte count as in C99... " >&6; }
16439 if test ${gl_cv_func_snprintf_retval_c99+y}
16440 then :
16441 printf %s "(cached) " >&6
16442 else $as_nop
16443
16444 if test "$cross_compiling" = yes
16445 then :
16446 case "$host_os" in
16447 # Guess yes on glibc systems.
16448 *-gnu* | gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
16449 # Guess yes on musl systems.
16450 *-musl*) gl_cv_func_snprintf_retval_c99="guessing yes";;
16451 # Guess yes on FreeBSD >= 5.
16452 freebsd[1-4].*) gl_cv_func_snprintf_retval_c99="guessing no";;
16453 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
16454 midnightbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
16455 # Guess yes on Mac OS X >= 10.3.
16456 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
16457 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
16458 # Guess yes on OpenBSD >= 3.9.
16459 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
16460 gl_cv_func_snprintf_retval_c99="guessing no";;
16461 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
16462 # Guess yes on Solaris >= 2.10.
16463 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
16464 solaris*) gl_cv_func_printf_sizes_c99="guessing no";;
16465 # Guess yes on AIX >= 4.
16466 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
16467 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
16468 # Guess yes on NetBSD >= 3.
16469 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
16470 gl_cv_func_snprintf_retval_c99="guessing no";;
16471 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
16472 # Guess yes on BeOS.
16473 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
16474 # Guess yes on Android.
16475 linux*-android*) gl_cv_func_snprintf_retval_c99="guessing yes";;
16476 # Guess yes on MSVC, no on mingw.
16477 mingw*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16478 /* end confdefs.h. */
16479
16480 #ifdef _MSC_VER
16481 Known
16482 #endif
16483
16484 _ACEOF
16485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16486 $EGREP "Known" >/dev/null 2>&1
16487 then :
16488 gl_cv_func_snprintf_retval_c99="guessing yes"
16489 else $as_nop
16490 gl_cv_func_snprintf_retval_c99="guessing no"
16491 fi
16492 rm -rf conftest*
16493
16494 ;;
16495 # If we don't know, obey --enable-cross-guesses.
16496 *) gl_cv_func_snprintf_retval_c99="$gl_cross_guess_normal";;
16497 esac
16498
16499 else $as_nop
16500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16501 /* end confdefs.h. */
16502
16503 #include <stdio.h>
16504 #include <string.h>
16505 #if HAVE_SNPRINTF
16506 # define my_snprintf snprintf
16507 #else
16508 # include <stdarg.h>
16509 static int my_snprintf (char *buf, int size, const char *format, ...)
16510 {
16511 va_list args;
16512 int ret;
16513 va_start (args, format);
16514 ret = vsnprintf (buf, size, format, args);
16515 va_end (args);
16516 return ret;
16517 }
16518 #endif
16519 static char buf[100];
16520 int main ()
16521 {
16522 strcpy (buf, "ABCDEF");
16523 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
16524 return 1;
16525 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
16526 return 2;
16527 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
16528 return 3;
16529 return 0;
16530 }
16531 _ACEOF
16532 if ac_fn_c_try_run "$LINENO"
16533 then :
16534 gl_cv_func_snprintf_retval_c99=yes
16535 else $as_nop
16536 gl_cv_func_snprintf_retval_c99=no
16537 fi
16538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16539 conftest.$ac_objext conftest.beam conftest.$ac_ext
16540 fi
16541
16542
16543 fi
16544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
16545 printf "%s\n" "$gl_cv_func_snprintf_retval_c99" >&6; }
16546
16547
16548
16549
16550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf truncates the result as in C99" >&5
16551 printf %s "checking whether snprintf truncates the result as in C99... " >&6; }
16552 if test ${gl_cv_func_snprintf_truncation_c99+y}
16553 then :
16554 printf %s "(cached) " >&6
16555 else $as_nop
16556
16557 if test "$cross_compiling" = yes
16558 then :
16559
16560 case "$host_os" in
16561 # Guess yes on glibc systems.
16562 *-gnu* | gnu*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
16563 # Guess yes on musl systems.
16564 *-musl*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
16565 # Guess yes on FreeBSD >= 5.
16566 freebsd[1-4].*) gl_cv_func_snprintf_truncation_c99="guessing no";;
16567 freebsd* | kfreebsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
16568 midnightbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
16569 # Guess yes on Mac OS X >= 10.3.
16570 darwin[1-6].*) gl_cv_func_snprintf_truncation_c99="guessing no";;
16571 darwin*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
16572 # Guess yes on OpenBSD >= 3.9.
16573 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
16574 gl_cv_func_snprintf_truncation_c99="guessing no";;
16575 openbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
16576 # Guess yes on Solaris >= 2.6.
16577 solaris2.[0-5] | solaris2.[0-5].*)
16578 gl_cv_func_snprintf_truncation_c99="guessing no";;
16579 solaris*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
16580 # Guess yes on AIX >= 4.
16581 aix[1-3]*) gl_cv_func_snprintf_truncation_c99="guessing no";;
16582 aix*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
16583 # Guess yes on HP-UX >= 11.
16584 hpux[7-9]* | hpux10*) gl_cv_func_snprintf_truncation_c99="guessing no";;
16585 hpux*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
16586 # Guess yes on IRIX >= 6.5.
16587 irix6.5) gl_cv_func_snprintf_truncation_c99="guessing yes";;
16588 # Guess yes on OSF/1 >= 5.
16589 osf[3-4]*) gl_cv_func_snprintf_truncation_c99="guessing no";;
16590 osf*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
16591 # Guess yes on NetBSD >= 3.
16592 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
16593 gl_cv_func_snprintf_truncation_c99="guessing no";;
16594 netbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
16595 # Guess yes on BeOS.
16596 beos*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
16597 # Guess yes on Android.
16598 linux*-android*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
16599 # Guess no on native Windows.
16600 mingw*) gl_cv_func_snprintf_truncation_c99="guessing no";;
16601 # If we don't know, obey --enable-cross-guesses.
16602 *) gl_cv_func_snprintf_truncation_c99="$gl_cross_guess_normal";;
16603 esac
16604
16605 else $as_nop
16606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16607 /* end confdefs.h. */
16608
16609 #include <stdio.h>
16610 #include <string.h>
16611 #if HAVE_SNPRINTF
16612 # define my_snprintf snprintf
16613 #else
16614 # include <stdarg.h>
16615 static int my_snprintf (char *buf, int size, const char *format, ...)
16616 {
16617 va_list args;
16618 int ret;
16619 va_start (args, format);
16620 ret = vsnprintf (buf, size, format, args);
16621 va_end (args);
16622 return ret;
16623 }
16624 #endif
16625 static char buf[100];
16626 int main ()
16627 {
16628 strcpy (buf, "ABCDEF");
16629 my_snprintf (buf, 3, "%d %d", 4567, 89);
16630 if (memcmp (buf, "45\0DEF", 6) != 0)
16631 return 1;
16632 return 0;
16633 }
16634 _ACEOF
16635 if ac_fn_c_try_run "$LINENO"
16636 then :
16637 gl_cv_func_snprintf_truncation_c99=yes
16638 else $as_nop
16639 gl_cv_func_snprintf_truncation_c99=no
16640 fi
16641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16642 conftest.$ac_objext conftest.beam conftest.$ac_ext
16643 fi
16644
16645
16646 fi
16647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_truncation_c99" >&5
16648 printf "%s\n" "$gl_cv_func_snprintf_truncation_c99" >&6; }
16649
16650
16651
16652
16653
16654 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
16655 if test "x$ac_cv_func_snprintf" = xyes
16656 then :
16657 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
16658
16659 fi
16660 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
16661 if test "x$ac_cv_func_strnlen" = xyes
16662 then :
16663 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
16664
16665 fi
16666 ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
16667 if test "x$ac_cv_func_wcslen" = xyes
16668 then :
16669 printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
16670
16671 fi
16672 ac_fn_c_check_func "$LINENO" "wcsnlen" "ac_cv_func_wcsnlen"
16673 if test "x$ac_cv_func_wcsnlen" = xyes
16674 then :
16675 printf "%s\n" "#define HAVE_WCSNLEN 1" >>confdefs.h
16676
16677 fi
16678 ac_fn_c_check_func "$LINENO" "mbrtowc" "ac_cv_func_mbrtowc"
16679 if test "x$ac_cv_func_mbrtowc" = xyes
16680 then :
16681 printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h
16682
16683 fi
16684 ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"
16685 if test "x$ac_cv_func_wcrtomb" = xyes
16686 then :
16687 printf "%s\n" "#define HAVE_WCRTOMB 1" >>confdefs.h
16688
16689 fi
16690
16691 ac_fn_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
16692 " "$ac_c_undeclared_builtin_options" "CFLAGS"
16693 if test "x$ac_cv_have_decl__snprintf" = xyes
16694 then :
16695 ac_have_decl=1
16696 else $as_nop
16697 ac_have_decl=0
16698 fi
16699 printf "%s\n" "#define HAVE_DECL__SNPRINTF $ac_have_decl" >>confdefs.h
16700
16701
16702
16703 case "$gl_cv_func_snprintf_retval_c99" in
16704 *yes)
16705
16706 printf "%s\n" "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
16707
16708 ;;
16709 esac
16710
16711 case "$gl_cv_func_snprintf_truncation_c99" in
16712 *yes)
16713
16714 printf "%s\n" "#define HAVE_SNPRINTF_TRUNCATION_C99 1" >>confdefs.h
16715
16716 ;;
16717 esac
16718
16719 ac_fn_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
16720 if test "x$ac_cv_have_decl_vsnprintf" = xyes
16721 then :
16722 ac_have_decl=1
16723 else $as_nop
16724 ac_have_decl=0
16725 fi
16726 printf "%s\n" "#define HAVE_DECL_VSNPRINTF $ac_have_decl" >>confdefs.h
16727
16728
16729 HAVE_BTOWC=1;
16730 HAVE_MBSINIT=1;
16731 HAVE_MBRTOWC=1;
16732 HAVE_MBRLEN=1;
16733 HAVE_MBSRTOWCS=1;
16734 HAVE_MBSNRTOWCS=1;
16735 HAVE_WCRTOMB=1;
16736 HAVE_WCSRTOMBS=1;
16737 HAVE_WCSNRTOMBS=1;
16738 HAVE_WMEMCHR=1;
16739 HAVE_WMEMCMP=1;
16740 HAVE_WMEMCPY=1;
16741 HAVE_WMEMMOVE=1;
16742 HAVE_WMEMPCPY=1;
16743 HAVE_WMEMSET=1;
16744 HAVE_WCSLEN=1;
16745 HAVE_WCSNLEN=1;
16746 HAVE_WCSCPY=1;
16747 HAVE_WCPCPY=1;
16748 HAVE_WCSNCPY=1;
16749 HAVE_WCPNCPY=1;
16750 HAVE_WCSCAT=1;
16751 HAVE_WCSNCAT=1;
16752 HAVE_WCSCMP=1;
16753 HAVE_WCSNCMP=1;
16754 HAVE_WCSCASECMP=1;
16755 HAVE_WCSNCASECMP=1;
16756 HAVE_WCSCOLL=1;
16757 HAVE_WCSXFRM=1;
16758 HAVE_WCSDUP=1;
16759 HAVE_WCSCHR=1;
16760 HAVE_WCSRCHR=1;
16761 HAVE_WCSCSPN=1;
16762 HAVE_WCSSPN=1;
16763 HAVE_WCSPBRK=1;
16764 HAVE_WCSSTR=1;
16765 HAVE_WCSTOK=1;
16766 HAVE_WCSWIDTH=1;
16767 HAVE_WCSFTIME=1;
16768 HAVE_DECL_WCTOB=1;
16769 HAVE_DECL_WCSDUP=1;
16770 HAVE_DECL_WCWIDTH=1;
16771 REPLACE_MBSTATE_T=0;
16772 REPLACE_BTOWC=0;
16773 REPLACE_WCTOB=0;
16774 REPLACE_MBSINIT=0;
16775 REPLACE_MBRTOWC=0;
16776 REPLACE_MBRLEN=0;
16777 REPLACE_MBSRTOWCS=0;
16778 REPLACE_MBSNRTOWCS=0;
16779 REPLACE_WCRTOMB=0;
16780 REPLACE_WCSRTOMBS=0;
16781 REPLACE_WCSNRTOMBS=0;
16782 REPLACE_WCWIDTH=0;
16783 REPLACE_WCSWIDTH=0;
16784 REPLACE_WCSFTIME=0;
16785 REPLACE_WCSTOK=0;
16786
16787
16788
16789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
16790 printf %s "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
16791 if test ${gl_cv_header_wchar_h_correct_inline+y}
16792 then :
16793 printf %s "(cached) " >&6
16794 else $as_nop
16795 gl_cv_header_wchar_h_correct_inline=yes
16796 case "$host_os" in
16797 *-gnu* | gnu*)
16798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16799 /* end confdefs.h. */
16800
16801
16802 #define wcstod renamed_wcstod
16803 #include <wchar.h>
16804 extern int zero (void);
16805 int main () { return zero(); }
16806
16807 _ACEOF
16808 save_ac_compile="$ac_compile"
16809 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
16810 if echo '#include "conftest.c"' >conftest1.c \
16811 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16812 (eval $ac_compile) 2>&5
16813 ac_status=$?
16814 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16815 test $ac_status = 0; }; then
16816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16817 /* end confdefs.h. */
16818
16819
16820 #define wcstod renamed_wcstod
16821 #include <wchar.h>
16822 int zero (void) { return 0; }
16823
16824 _ACEOF
16825 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
16826 if echo '#include "conftest.c"' >conftest2.c \
16827 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16828 (eval $ac_compile) 2>&5
16829 ac_status=$?
16830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16831 test $ac_status = 0; }; then
16832 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
16833 :
16834 else
16835 gl_cv_header_wchar_h_correct_inline=no
16836 fi
16837 fi
16838 fi
16839 ac_compile="$save_ac_compile"
16840 rm -f conftest12.c conftest12.$ac_objext conftest$ac_exeext
16841 ;;
16842 esac
16843
16844 fi
16845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
16846 printf "%s\n" "$gl_cv_header_wchar_h_correct_inline" >&6; }
16847 if test $gl_cv_header_wchar_h_correct_inline = no; then
16848 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
16849 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
16850 C99 mode. You have four options:
16851 - Add the flag -fgnu89-inline to CC and reconfigure, or
16852 - Fix your include files, using parts of
16853 <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
16854 - Use a gcc version older than 4.3, or
16855 - Don't use the flags -std=c99 or -std=gnu99.
16856 Configuration aborted." "$LINENO" 5
16857 fi
16858
16859
16860
16861
16862 if test $ac_cv_header_crtdefs_h = yes; then
16863 HAVE_CRTDEFS_H=1
16864 else
16865 HAVE_CRTDEFS_H=0
16866 fi
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881 if test $gl_cv_have_include_next = yes; then
16882 gl_cv_next_wchar_h='<'wchar.h'>'
16883 else
16884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
16885 printf %s "checking absolute name of <wchar.h>... " >&6; }
16886 if test ${gl_cv_next_wchar_h+y}
16887 then :
16888 printf %s "(cached) " >&6
16889 else $as_nop
16890
16891 if test $ac_cv_header_wchar_h = yes; then
16892
16893
16894
16895
16896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16897 /* end confdefs.h. */
16898 #include <wchar.h>
16899 _ACEOF
16900 case "$host_os" in
16901 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16902 *) gl_absname_cpp="$ac_cpp" ;;
16903 esac
16904
16905 case "$host_os" in
16906 mingw*)
16907 gl_dirsep_regex='[/\\]'
16908 ;;
16909 *)
16910 gl_dirsep_regex='\/'
16911 ;;
16912 esac
16913 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16914 gl_header_literal_regex=`echo 'wchar.h' \
16915 | sed -e "$gl_make_literal_regex_sed"`
16916 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16917 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16918 s|^/[^/]|//&|
16919 p
16920 q
16921 }'
16922
16923 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16924 sed -n "$gl_absolute_header_sed"`
16925
16926 gl_header=$gl_cv_absolute_wchar_h
16927 gl_cv_next_wchar_h='"'$gl_header'"'
16928 else
16929 gl_cv_next_wchar_h='<'wchar.h'>'
16930 fi
16931
16932
16933 fi
16934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
16935 printf "%s\n" "$gl_cv_next_wchar_h" >&6; }
16936 fi
16937 NEXT_WCHAR_H=$gl_cv_next_wchar_h
16938
16939 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16940 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16941 gl_next_as_first_directive='<'wchar.h'>'
16942 else
16943 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16944 gl_next_as_first_directive=$gl_cv_next_wchar_h
16945 fi
16946 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
16947
16948
16949
16950
16951 if test $ac_cv_header_wchar_h = yes; then
16952 HAVE_WCHAR_H=1
16953 else
16954 HAVE_WCHAR_H=0
16955 fi
16956
16957
16958
16959
16960
16961 if test $gt_cv_c_wint_t = yes; then
16962 HAVE_WINT_T=1
16963 else
16964 HAVE_WINT_T=0
16965 fi
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976 ac_fn_check_decl "$LINENO" "wcsdup" "ac_cv_have_decl_wcsdup" "
16977 #include <wchar.h>
16978
16979 " "$ac_c_undeclared_builtin_options" "CFLAGS"
16980 if test "x$ac_cv_have_decl_wcsdup" = xyes
16981 then :
16982 ac_have_decl=1
16983 else $as_nop
16984 ac_have_decl=0
16985 fi
16986 printf "%s\n" "#define HAVE_DECL_WCSDUP $ac_have_decl" >>confdefs.h
16987
16988 if test $ac_cv_have_decl_wcsdup = no; then
16989 HAVE_DECL_WCSDUP=0
16990 fi
16991
16992
16993
16994 GL_GNULIB_BTOWC=0
16995
16996
16997
16998 GL_GNULIB_WCTOB=0
16999
17000
17001
17002 GL_GNULIB_MBSINIT=0
17003
17004
17005
17006 GL_GNULIB_MBRTOWC=0
17007
17008
17009
17010 GL_GNULIB_MBRLEN=0
17011
17012
17013
17014 GL_GNULIB_MBSRTOWCS=0
17015
17016
17017
17018 GL_GNULIB_MBSNRTOWCS=0
17019
17020
17021
17022 GL_GNULIB_WCRTOMB=0
17023
17024
17025
17026 GL_GNULIB_WCSRTOMBS=0
17027
17028
17029
17030 GL_GNULIB_WCSNRTOMBS=0
17031
17032
17033
17034 GL_GNULIB_WCWIDTH=0
17035
17036
17037
17038 GL_GNULIB_WMEMCHR=0
17039
17040
17041
17042 GL_GNULIB_WMEMCMP=0
17043
17044
17045
17046 GL_GNULIB_WMEMCPY=0
17047
17048
17049
17050 GL_GNULIB_WMEMMOVE=0
17051
17052
17053
17054 GL_GNULIB_WMEMPCPY=0
17055
17056
17057
17058 GL_GNULIB_WMEMSET=0
17059
17060
17061
17062 GL_GNULIB_WCSLEN=0
17063
17064
17065
17066 GL_GNULIB_WCSNLEN=0
17067
17068
17069
17070 GL_GNULIB_WCSCPY=0
17071
17072
17073
17074 GL_GNULIB_WCPCPY=0
17075
17076
17077
17078 GL_GNULIB_WCSNCPY=0
17079
17080
17081
17082 GL_GNULIB_WCPNCPY=0
17083
17084
17085
17086 GL_GNULIB_WCSCAT=0
17087
17088
17089
17090 GL_GNULIB_WCSNCAT=0
17091
17092
17093
17094 GL_GNULIB_WCSCMP=0
17095
17096
17097
17098 GL_GNULIB_WCSNCMP=0
17099
17100
17101
17102 GL_GNULIB_WCSCASECMP=0
17103
17104
17105
17106 GL_GNULIB_WCSNCASECMP=0
17107
17108
17109
17110 GL_GNULIB_WCSCOLL=0
17111
17112
17113
17114 GL_GNULIB_WCSXFRM=0
17115
17116
17117
17118 GL_GNULIB_WCSDUP=0
17119
17120
17121
17122 GL_GNULIB_WCSCHR=0
17123
17124
17125
17126 GL_GNULIB_WCSRCHR=0
17127
17128
17129
17130 GL_GNULIB_WCSCSPN=0
17131
17132
17133
17134 GL_GNULIB_WCSSPN=0
17135
17136
17137
17138 GL_GNULIB_WCSPBRK=0
17139
17140
17141
17142 GL_GNULIB_WCSSTR=0
17143
17144
17145
17146 GL_GNULIB_WCSTOK=0
17147
17148
17149
17150 GL_GNULIB_WCSWIDTH=0
17151
17152
17153
17154 GL_GNULIB_WCSFTIME=0
17155
17156
17157
17158 GL_GNULIB_MDA_WCSDUP=1
17159
17160
17161
17162
17163
17164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler option to allow warnings" >&5
17165 printf %s "checking for C compiler option to allow warnings... " >&6; }
17166 if test ${gl_cv_cc_wallow+y}
17167 then :
17168 printf %s "(cached) " >&6
17169 else $as_nop
17170 rm -f conftest*
17171 echo 'int dummy;' > conftest.c
17172 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c 2>conftest1.err'
17173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17174 (eval $ac_try) 2>&5
17175 ac_status=$?
17176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17177 test $ac_status = 0; }; } >/dev/null
17178 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Wno-error -c conftest.c 2>conftest2.err'
17179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17180 (eval $ac_try) 2>&5
17181 ac_status=$?
17182 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17183 test $ac_status = 0; }; } >/dev/null
17184 if test $? = 0 && test `wc -l < conftest1.err` = `wc -l < conftest2.err`; then
17185 gl_cv_cc_wallow='-Wno-error'
17186 else
17187 gl_cv_cc_wallow=none
17188 fi
17189 rm -f conftest*
17190
17191 fi
17192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_wallow" >&5
17193 printf "%s\n" "$gl_cv_cc_wallow" >&6; }
17194 case "$gl_cv_cc_wallow" in
17195 none) GL_CFLAG_ALLOW_WARNINGS='' ;;
17196 *) GL_CFLAG_ALLOW_WARNINGS="$gl_cv_cc_wallow" ;;
17197 esac
17198
17199
17200
17201
17202 GL_CFLAG_GNULIB_WARNINGS=''
17203 if test -n "$GL_CFLAG_ALLOW_WARNINGS"; then
17204 cat > conftest.c <<\EOF
17205 #if __GNUC__ >= 3 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
17206 -Wno-cast-qual
17207 -Wno-conversion
17208 -Wno-float-equal
17209 -Wno-sign-compare
17210 -Wno-undef
17211 -Wno-unused-function
17212 -Wno-unused-parameter
17213 #endif
17214 #if __GNUC__ + (__GNUC_MINOR__ >= 9) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
17215 -Wno-float-conversion
17216 #endif
17217 #if __GNUC__ >= 7 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
17218 -Wimplicit-fallthrough
17219 #endif
17220 #if __GNUC__ + (__GNUC_MINOR__ >= 8) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
17221 -Wno-pedantic
17222 #endif
17223 #if __GNUC__ + (__GNUC_MINOR__ >= 3) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
17224 -Wno-sign-conversion
17225 -Wno-type-limits
17226 #endif
17227 #if __GNUC__ + (__GNUC_MINOR__ >= 5) > 4
17228 -Wno-unsuffixed-float-constants
17229 #endif
17230 EOF
17231 gl_command="$CC $CFLAGS $CPPFLAGS -E conftest.c > conftest.out"
17232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gl_command\""; } >&5
17233 (eval $gl_command) 2>&5
17234 ac_status=$?
17235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17236 test $ac_status = 0; }; then
17237 gl_options=`grep -v '#' conftest.out`
17238 for word in $gl_options; do
17239 GL_CFLAG_GNULIB_WARNINGS="$GL_CFLAG_GNULIB_WARNINGS $word"
17240 done
17241 fi
17242 rm -f conftest.c conftest.out
17243 fi
17244
17245
17246
17247
17248 if false; then
17249 GL_COND_LIBTOOL_TRUE=
17250 GL_COND_LIBTOOL_FALSE='#'
17251 else
17252 GL_COND_LIBTOOL_TRUE='#'
17253 GL_COND_LIBTOOL_FALSE=
17254 fi
17255
17256 gl_cond_libtool=false
17257 gl_libdeps=
17258 gl_ltlibdeps=
17259 gl_m4_base='gl/m4'
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272 gl_source_base='gl/lib'
17273 gl_source_base_prefix=
17274
17275
17276 if test $ac_cv_func_alloca_works = no; then
17277 :
17278 fi
17279
17280 # Define an additional variable used in the Makefile substitution.
17281 if test $ac_cv_working_alloca_h = yes; then
17282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
17283 printf %s "checking for alloca as a compiler built-in... " >&6; }
17284 if test ${gl_cv_rpl_alloca+y}
17285 then :
17286 printf %s "(cached) " >&6
17287 else $as_nop
17288
17289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17290 /* end confdefs.h. */
17291
17292 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
17293 Need own alloca
17294 #endif
17295
17296 _ACEOF
17297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17298 $EGREP "Need own alloca" >/dev/null 2>&1
17299 then :
17300 gl_cv_rpl_alloca=yes
17301 else $as_nop
17302 gl_cv_rpl_alloca=no
17303 fi
17304 rm -rf conftest*
17305
17306
17307 fi
17308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
17309 printf "%s\n" "$gl_cv_rpl_alloca" >&6; }
17310 if test $gl_cv_rpl_alloca = yes; then
17311
17312 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
17313
17314 GL_GENERATE_ALLOCA_H=true
17315 else
17316 GL_GENERATE_ALLOCA_H=false
17317 fi
17318 else
17319 GL_GENERATE_ALLOCA_H=true
17320 fi
17321
17322 if test $ac_cv_working_alloca_h = yes; then
17323 HAVE_ALLOCA_H=1
17324 else
17325 HAVE_ALLOCA_H=0
17326 fi
17327
17328
17329
17330
17331
17332
17333 case "$GL_GENERATE_ALLOCA_H" in
17334 false) ALLOCA_H='' ;;
17335 true)
17336 if test -z "$ALLOCA_H"; then
17337 ALLOCA_H="${gl_source_base_prefix}alloca.h"
17338 fi
17339 ;;
17340 *) echo "*** GL_GENERATE_ALLOCA_H is not set correctly" 1>&2; exit 1 ;;
17341 esac
17342
17343
17344 if $GL_GENERATE_ALLOCA_H; then
17345 GL_GENERATE_ALLOCA_H_TRUE=
17346 GL_GENERATE_ALLOCA_H_FALSE='#'
17347 else
17348 GL_GENERATE_ALLOCA_H_TRUE='#'
17349 GL_GENERATE_ALLOCA_H_FALSE=
17350 fi
17351 :
17352 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
17353 GL_GENERATE_ALLOCA_H_TRUE='#'
17354 GL_GENERATE_ALLOCA_H_FALSE='#'
17355 fi
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367 ac_fn_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
17368 " "$ac_c_undeclared_builtin_options" "CFLAGS"
17369 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
17370 then :
17371 ac_have_decl=1
17372 else $as_nop
17373 ac_have_decl=0
17374 fi
17375 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl" >>confdefs.h
17376 if test $ac_have_decl = 1
17377 then :
17378
17379 else $as_nop
17380
17381 printf "%s\n" "#define GNULIB_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
17382
17383 fi
17384
17385 ac_fn_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
17386 " "$ac_c_undeclared_builtin_options" "CFLAGS"
17387 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
17388 then :
17389 ac_have_decl=1
17390 else $as_nop
17391 ac_have_decl=0
17392 fi
17393 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl" >>confdefs.h
17394 if test $ac_have_decl = 1
17395 then :
17396
17397 else $as_nop
17398
17399 printf "%s\n" "#define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
17400
17401 fi
17402
17403
17404 # Check if program_invocation_name and program_invocation_short_name
17405 # are defined elsewhere. It is improbable that only one of them will
17406 # be defined and other not, I prefer to stay on the safe side and to
17407 # test each one separately.
17408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_name is defined" >&5
17409 printf %s "checking whether program_invocation_name is defined... " >&6; }
17410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17411 /* end confdefs.h. */
17412 extern char *program_invocation_name;
17413 int
17414 main (void)
17415 {
17416 program_invocation_name = "test";
17417 ;
17418 return 0;
17419 }
17420 _ACEOF
17421 if ac_fn_c_try_link "$LINENO"
17422 then :
17423
17424 printf "%s\n" "#define HAVE_PROGRAM_INVOCATION_NAME 1" >>confdefs.h
17425
17426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17427 printf "%s\n" "yes" >&6; }
17428
17429 else $as_nop
17430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17431 printf "%s\n" "no" >&6; }
17432 fi
17433 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17434 conftest$ac_exeext conftest.$ac_ext
17435
17436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether program_invocation_short_name is defined" >&5
17437 printf %s "checking whether program_invocation_short_name is defined... " >&6; }
17438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17439 /* end confdefs.h. */
17440 extern char *program_invocation_short_name;
17441 int
17442 main (void)
17443 {
17444 program_invocation_short_name = "test";
17445 ;
17446 return 0;
17447 }
17448 _ACEOF
17449 if ac_fn_c_try_link "$LINENO"
17450 then :
17451
17452 printf "%s\n" "#define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1" >>confdefs.h
17453
17454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17455 printf "%s\n" "yes" >&6; }
17456
17457 else $as_nop
17458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17459 printf "%s\n" "no" >&6; }
17460 fi
17461 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17462 conftest$ac_exeext conftest.$ac_ext
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
17484 printf %s "checking for __builtin_expect... " >&6; }
17485 if test ${gl_cv___builtin_expect+y}
17486 then :
17487 printf %s "(cached) " >&6
17488 else $as_nop
17489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17490 /* end confdefs.h. */
17491
17492 int
17493 main (int argc, char **argv)
17494 {
17495 argc = __builtin_expect (argc, 100);
17496 return argv[argc != 100][0];
17497 }
17498 _ACEOF
17499 if ac_fn_c_try_link "$LINENO"
17500 then :
17501 gl_cv___builtin_expect=yes
17502 else $as_nop
17503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17504 /* end confdefs.h. */
17505
17506 #include <builtins.h>
17507 int
17508 main (int argc, char **argv)
17509 {
17510 argc = __builtin_expect (argc, 100);
17511 return argv[argc != 100][0];
17512 }
17513 _ACEOF
17514 if ac_fn_c_try_link "$LINENO"
17515 then :
17516 gl_cv___builtin_expect="in <builtins.h>"
17517 else $as_nop
17518 gl_cv___builtin_expect=no
17519 fi
17520 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17521 conftest$ac_exeext conftest.$ac_ext
17522 fi
17523 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17524 conftest$ac_exeext conftest.$ac_ext
17525 fi
17526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv___builtin_expect" >&5
17527 printf "%s\n" "$gl_cv___builtin_expect" >&6; }
17528 if test "$gl_cv___builtin_expect" = yes; then
17529 printf "%s\n" "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
17530
17531 elif test "$gl_cv___builtin_expect" = "in <builtins.h>"; then
17532 printf "%s\n" "#define HAVE___BUILTIN_EXPECT 2" >>confdefs.h
17533
17534 fi
17535
17536
17537
17538
17539
17540 REPLACE_CALLOC_FOR_CALLOC_GNU="$REPLACE_CALLOC_FOR_CALLOC_POSIX"
17541 if test $REPLACE_CALLOC_FOR_CALLOC_GNU = 0; then
17542
17543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether calloc (0, n) and calloc (n, 0) return nonnull" >&5
17544 printf %s "checking whether calloc (0, n) and calloc (n, 0) return nonnull... " >&6; }
17545 if test ${ac_cv_func_calloc_0_nonnull+y}
17546 then :
17547 printf %s "(cached) " >&6
17548 else $as_nop
17549 if test $cross_compiling != yes; then
17550 ac_cv_func_calloc_0_nonnull=yes
17551 if test "$cross_compiling" = yes
17552 then :
17553 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17554 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17555 as_fn_error $? "cannot run test program while cross compiling
17556 See \`config.log' for more details" "$LINENO" 5; }
17557 else $as_nop
17558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17559 /* end confdefs.h. */
17560 $ac_includes_default
17561 int
17562 main (void)
17563 {
17564 int result = 0;
17565 char * volatile p = calloc (0, 0);
17566 if (!p)
17567 result |= 1;
17568 free (p);
17569 return result;
17570
17571 ;
17572 return 0;
17573 }
17574 _ACEOF
17575 if ac_fn_c_try_run "$LINENO"
17576 then :
17577
17578 else $as_nop
17579 ac_cv_func_calloc_0_nonnull=no
17580 fi
17581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17582 conftest.$ac_objext conftest.beam conftest.$ac_ext
17583 fi
17584
17585 else
17586 case "$host_os" in
17587 # Guess yes on glibc systems.
17588 *-gnu* | gnu*) ac_cv_func_calloc_0_nonnull="guessing yes" ;;
17589 # Guess yes on musl systems.
17590 *-musl*) ac_cv_func_calloc_0_nonnull="guessing yes" ;;
17591 # Guess yes on native Windows.
17592 mingw*) ac_cv_func_calloc_0_nonnull="guessing yes" ;;
17593 # If we don't know, obey --enable-cross-guesses.
17594 *) ac_cv_func_calloc_0_nonnull="$gl_cross_guess_normal" ;;
17595 esac
17596 fi
17597
17598 fi
17599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_calloc_0_nonnull" >&5
17600 printf "%s\n" "$ac_cv_func_calloc_0_nonnull" >&6; }
17601 case $ac_cv_func_calloc_0_nonnull in #(
17602 *yes) :
17603 ;; #(
17604 *) :
17605 REPLACE_CALLOC_FOR_CALLOC_GNU=1 ;;
17606 esac
17607
17608 fi
17609
17610 if test $REPLACE_CALLOC_FOR_CALLOC_GNU = 1; then
17611
17612
17613
17614
17615
17616
17617
17618
17619 gl_LIBOBJS="$gl_LIBOBJS calloc.$ac_objext"
17620
17621 fi
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631 GL_GNULIB_CALLOC_GNU=1
17632
17633
17634
17635
17636
17637 printf "%s\n" "#define GNULIB_TEST_CALLOC_GNU 1" >>confdefs.h
17638
17639
17640
17641
17642
17643
17644 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
17645 REPLACE_CALLOC_FOR_CALLOC_POSIX=1
17646 fi
17647
17648 if test $REPLACE_CALLOC_FOR_CALLOC_POSIX = 1; then
17649
17650
17651
17652
17653
17654
17655
17656
17657 gl_LIBOBJS="$gl_LIBOBJS calloc.$ac_objext"
17658
17659 fi
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669 GL_GNULIB_CALLOC_POSIX=1
17670
17671
17672
17673
17674
17675 printf "%s\n" "#define GNULIB_TEST_CALLOC_POSIX 1" >>confdefs.h
17676
17677
17678
17679
17680
17681
17682 if test $ac_cv_func_canonicalize_file_name = no; then
17683 HAVE_CANONICALIZE_FILE_NAME=0
17684 if test $ac_cv_func_realpath = no; then
17685 HAVE_REALPATH=0
17686 else
17687 case "$gl_cv_func_realpath_works" in
17688 *yes) ;;
17689 *) REPLACE_REALPATH=1 ;;
17690 esac
17691 fi
17692 else
17693 case "$gl_cv_func_realpath_works" in
17694 *yes)
17695 ;;
17696 *)
17697 REPLACE_CANONICALIZE_FILE_NAME=1
17698 REPLACE_REALPATH=1
17699 ;;
17700 esac
17701 fi
17702
17703
17704 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
17705 GL_COND_OBJ_CANONICALIZE_LGPL_TRUE=
17706 GL_COND_OBJ_CANONICALIZE_LGPL_FALSE='#'
17707 else
17708 GL_COND_OBJ_CANONICALIZE_LGPL_TRUE='#'
17709 GL_COND_OBJ_CANONICALIZE_LGPL_FALSE=
17710 fi
17711 :
17712 if test -z "${GL_COND_OBJ_CANONICALIZE_LGPL_TRUE}" && test -z "${GL_COND_OBJ_CANONICALIZE_LGPL_FALSE}"; then
17713 GL_COND_OBJ_CANONICALIZE_LGPL_TRUE='#'
17714 GL_COND_OBJ_CANONICALIZE_LGPL_FALSE='#'
17715 fi
17716
17717
17718
17719 printf "%s\n" "#define GNULIB_CANONICALIZE_LGPL 1" >>confdefs.h
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731 GL_GNULIB_CANONICALIZE_FILE_NAME=1
17732
17733
17734
17735
17736
17737 printf "%s\n" "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750 GL_GNULIB_REALPATH=1
17751
17752
17753
17754
17755
17756 printf "%s\n" "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769 GL_GNULIB_CHDIR=1
17770
17771
17772
17773
17774
17775 printf "%s\n" "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
17776
17777
17778
17779
17780
17781 printf "%s\n" "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
17782
17783
17784
17785
17786
17787
17788 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
17789 REPLACE_CLOSE=1
17790 fi
17791
17792
17793
17794
17795
17796
17797 if test $ac_cv_header_sys_socket_h != yes; then
17798 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
17799 if test "x$ac_cv_header_winsock2_h" = xyes
17800 then :
17801 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
17802
17803 fi
17804
17805 fi
17806 if test "$ac_cv_header_winsock2_h" = yes; then
17807 HAVE_WINSOCK2_H=1
17808 UNISTD_H_HAVE_WINSOCK2_H=1
17809 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
17810 else
17811 HAVE_WINSOCK2_H=0
17812 fi
17813
17814
17815 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
17816 REPLACE_CLOSE=1
17817 fi
17818
17819
17820
17821
17822 if test $REPLACE_CLOSE = 1; then
17823 GL_COND_OBJ_CLOSE_TRUE=
17824 GL_COND_OBJ_CLOSE_FALSE='#'
17825 else
17826 GL_COND_OBJ_CLOSE_TRUE='#'
17827 GL_COND_OBJ_CLOSE_FALSE=
17828 fi
17829 :
17830 if test -z "${GL_COND_OBJ_CLOSE_TRUE}" && test -z "${GL_COND_OBJ_CLOSE_FALSE}"; then
17831 GL_COND_OBJ_CLOSE_TRUE='#'
17832 GL_COND_OBJ_CLOSE_FALSE='#'
17833 fi
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844 GL_GNULIB_CLOSE=1
17845
17846
17847
17848
17849
17850 printf "%s\n" "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
17851
17852
17853
17854
17855
17856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
17857 printf %s "checking whether // is distinct from /... " >&6; }
17858 if test ${gl_cv_double_slash_root+y}
17859 then :
17860 printf %s "(cached) " >&6
17861 else $as_nop
17862 if test x"$cross_compiling" = xyes ; then
17863 # When cross-compiling, there is no way to tell whether // is special
17864 # short of a list of hosts. However, the only known hosts to date
17865 # that have a distinct // are Apollo DomainOS (too old to port to),
17866 # Cygwin, and z/OS. If anyone knows of another system for which // has
17867 # special semantics and is distinct from /, please report it to
17868 # <[email protected]>.
17869 case $host in
17870 *-cygwin | i370-ibm-openedition)
17871 gl_cv_double_slash_root=yes ;;
17872 *)
17873 # Be optimistic and assume that / and // are the same when we
17874 # don't know.
17875 gl_cv_double_slash_root='unknown, assuming no' ;;
17876 esac
17877 else
17878 set x `ls -di / // 2>/dev/null`
17879 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
17880 gl_cv_double_slash_root=no
17881 else
17882 gl_cv_double_slash_root=yes
17883 fi
17884 fi
17885 fi
17886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
17887 printf "%s\n" "$gl_cv_double_slash_root" >&6; }
17888 if test "$gl_cv_double_slash_root" = yes; then
17889
17890 printf "%s\n" "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
17891
17892 fi
17893
17894
17895
17896
17897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
17898 printf %s "checking whether dup2 works... " >&6; }
17899 if test ${gl_cv_func_dup2_works+y}
17900 then :
17901 printf %s "(cached) " >&6
17902 else $as_nop
17903 if test "$cross_compiling" = yes
17904 then :
17905 case "$host_os" in
17906 mingw*) # on this platform, dup2 always returns 0 for success
17907 gl_cv_func_dup2_works="guessing no" ;;
17908 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
17909 gl_cv_func_dup2_works="guessing no" ;;
17910 aix* | freebsd*)
17911 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
17912 # not EBADF.
17913 gl_cv_func_dup2_works="guessing no" ;;
17914 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
17915 gl_cv_func_dup2_works="guessing no" ;;
17916 *-android*) # implemented using dup3(), which fails if oldfd == newfd
17917 gl_cv_func_dup2_works="guessing no" ;;
17918 os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
17919 gl_cv_func_dup2_works="guessing no" ;;
17920 *) gl_cv_func_dup2_works="guessing yes" ;;
17921 esac
17922 else $as_nop
17923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17924 /* end confdefs.h. */
17925
17926 #include <errno.h>
17927 #include <fcntl.h>
17928 #include <limits.h>
17929 #include <sys/resource.h>
17930 #include <unistd.h>
17931
17932
17933 $gl_mda_defines
17934
17935 #ifndef RLIM_SAVED_CUR
17936 # define RLIM_SAVED_CUR RLIM_INFINITY
17937 #endif
17938 #ifndef RLIM_SAVED_MAX
17939 # define RLIM_SAVED_MAX RLIM_INFINITY
17940 #endif
17941
17942 int
17943 main (void)
17944 {
17945 int result = 0;
17946 int bad_fd = INT_MAX;
17947 struct rlimit rlim;
17948 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
17949 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
17950 && rlim.rlim_cur != RLIM_INFINITY
17951 && rlim.rlim_cur != RLIM_SAVED_MAX
17952 && rlim.rlim_cur != RLIM_SAVED_CUR)
17953 bad_fd = rlim.rlim_cur;
17954 #ifdef FD_CLOEXEC
17955 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
17956 result |= 1;
17957 #endif
17958 if (dup2 (1, 1) != 1)
17959 result |= 2;
17960 #ifdef FD_CLOEXEC
17961 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
17962 result |= 4;
17963 #endif
17964 close (0);
17965 if (dup2 (0, 0) != -1)
17966 result |= 8;
17967 /* Many gnulib modules require POSIX conformance of EBADF. */
17968 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
17969 result |= 16;
17970 /* Flush out some cygwin core dumps. */
17971 if (dup2 (2, -1) != -1 || errno != EBADF)
17972 result |= 32;
17973 dup2 (2, 255);
17974 dup2 (2, 256);
17975 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
17976 {
17977 int fd = open (".", O_RDONLY);
17978 if (fd == -1)
17979 result |= 64;
17980 else if (dup2 (fd, fd + 1) == -1)
17981 result |= 128;
17982 close (fd);
17983 }
17984 return result;
17985 ;
17986 return 0;
17987 }
17988
17989 _ACEOF
17990 if ac_fn_c_try_run "$LINENO"
17991 then :
17992 gl_cv_func_dup2_works=yes
17993 else $as_nop
17994 gl_cv_func_dup2_works=no
17995 fi
17996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17997 conftest.$ac_objext conftest.beam conftest.$ac_ext
17998 fi
17999
18000
18001 fi
18002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
18003 printf "%s\n" "$gl_cv_func_dup2_works" >&6; }
18004 case "$gl_cv_func_dup2_works" in
18005 *yes) ;;
18006 *)
18007 REPLACE_DUP2=1
18008 ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
18009 if test "x$ac_cv_func_setdtablesize" = xyes
18010 then :
18011 printf "%s\n" "#define HAVE_SETDTABLESIZE 1" >>confdefs.h
18012
18013 fi
18014
18015 ;;
18016 esac
18017
18018
18019
18020 if test $REPLACE_DUP2 = 1; then
18021 GL_COND_OBJ_DUP2_TRUE=
18022 GL_COND_OBJ_DUP2_FALSE='#'
18023 else
18024 GL_COND_OBJ_DUP2_TRUE='#'
18025 GL_COND_OBJ_DUP2_FALSE=
18026 fi
18027 :
18028 if test -z "${GL_COND_OBJ_DUP2_TRUE}" && test -z "${GL_COND_OBJ_DUP2_FALSE}"; then
18029 GL_COND_OBJ_DUP2_TRUE='#'
18030 GL_COND_OBJ_DUP2_FALSE='#'
18031 fi
18032
18033 if test -z "$GL_COND_OBJ_DUP2_TRUE"; then :
18034
18035
18036
18037 fi
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047 GL_GNULIB_DUP2=1
18048
18049
18050
18051
18052
18053 printf "%s\n" "#define GNULIB_TEST_DUP2 1" >>confdefs.h
18054
18055
18056
18057
18058
18059
18060
18061
18062 case "$GL_GENERATE_ERRNO_H" in
18063 false) ERRNO_H='' ;;
18064 true)
18065 if test -z "$ERRNO_H"; then
18066 ERRNO_H="${gl_source_base_prefix}errno.h"
18067 fi
18068 ;;
18069 *) echo "*** GL_GENERATE_ERRNO_H is not set correctly" 1>&2; exit 1 ;;
18070 esac
18071
18072
18073 if $GL_GENERATE_ERRNO_H; then
18074 GL_GENERATE_ERRNO_H_TRUE=
18075 GL_GENERATE_ERRNO_H_FALSE='#'
18076 else
18077 GL_GENERATE_ERRNO_H_TRUE='#'
18078 GL_GENERATE_ERRNO_H_FALSE=
18079 fi
18080 :
18081 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
18082 GL_GENERATE_ERRNO_H_TRUE='#'
18083 GL_GENERATE_ERRNO_H_FALSE='#'
18084 fi
18085
18086
18087
18088
18089
18090
18091
18092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
18093 printf %s "checking for error_at_line... " >&6; }
18094 if test ${ac_cv_lib_error_at_line+y}
18095 then :
18096 printf %s "(cached) " >&6
18097 else $as_nop
18098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18099 /* end confdefs.h. */
18100 #include <error.h>
18101 int
18102 main (void)
18103 {
18104 error_at_line (0, 0, "", 0, "an error occurred");
18105 ;
18106 return 0;
18107 }
18108 _ACEOF
18109 if ac_fn_c_try_link "$LINENO"
18110 then :
18111 ac_cv_lib_error_at_line=yes
18112 else $as_nop
18113 ac_cv_lib_error_at_line=no
18114 fi
18115 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18116 conftest$ac_exeext conftest.$ac_ext
18117 fi
18118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
18119 printf "%s\n" "$ac_cv_lib_error_at_line" >&6; }
18120
18121
18122 if test "$ac_cv_lib_error_at_line" = no; then
18123 GL_COND_OBJ_ERROR_TRUE=
18124 GL_COND_OBJ_ERROR_FALSE='#'
18125 else
18126 GL_COND_OBJ_ERROR_TRUE='#'
18127 GL_COND_OBJ_ERROR_FALSE=
18128 fi
18129 :
18130 if test -z "${GL_COND_OBJ_ERROR_TRUE}" && test -z "${GL_COND_OBJ_ERROR_FALSE}"; then
18131 GL_COND_OBJ_ERROR_TRUE='#'
18132 GL_COND_OBJ_ERROR_FALSE='#'
18133 fi
18134
18135 if test -z "$GL_COND_OBJ_ERROR_TRUE"; then :
18136
18137
18138
18139
18140
18141 :
18142
18143
18144 fi
18145
18146
18147
18148
18149
18150
18151
18152 if test $ac_cv_func_fcntl = no; then
18153
18154
18155
18156 if test $ac_cv_func_fcntl = no; then
18157 HAVE_FCNTL=0
18158 else
18159 REPLACE_FCNTL=1
18160 fi
18161
18162 else
18163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
18164 printf %s "checking whether fcntl handles F_DUPFD correctly... " >&6; }
18165 if test ${gl_cv_func_fcntl_f_dupfd_works+y}
18166 then :
18167 printf %s "(cached) " >&6
18168 else $as_nop
18169 if test "$cross_compiling" = yes
18170 then :
18171 case $host_os in
18172 aix* | cygwin* | haiku*)
18173 gl_cv_func_fcntl_f_dupfd_works="guessing no" ;;
18174 *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;;
18175 esac
18176 else $as_nop
18177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18178 /* end confdefs.h. */
18179 #include <errno.h>
18180 #include <fcntl.h>
18181 #include <limits.h>
18182 #include <sys/resource.h>
18183 #include <unistd.h>
18184
18185
18186 $gl_mda_defines
18187
18188 #ifndef RLIM_SAVED_CUR
18189 # define RLIM_SAVED_CUR RLIM_INFINITY
18190 #endif
18191 #ifndef RLIM_SAVED_MAX
18192 # define RLIM_SAVED_MAX RLIM_INFINITY
18193 #endif
18194
18195 int
18196 main (void)
18197 {
18198 int result = 0;
18199 int bad_fd = INT_MAX;
18200 struct rlimit rlim;
18201 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
18202 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
18203 && rlim.rlim_cur != RLIM_INFINITY
18204 && rlim.rlim_cur != RLIM_SAVED_MAX
18205 && rlim.rlim_cur != RLIM_SAVED_CUR)
18206 bad_fd = rlim.rlim_cur;
18207 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
18208 if (errno != EINVAL) result |= 2;
18209 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
18210 if (errno != EINVAL) result |= 8;
18211 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
18212 {
18213 int fd;
18214 fd = open (".", O_RDONLY);
18215 if (fd == -1)
18216 result |= 16;
18217 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
18218 result |= 32;
18219
18220 close (fd);
18221 }
18222 return result;
18223 ;
18224 return 0;
18225 }
18226 _ACEOF
18227 if ac_fn_c_try_run "$LINENO"
18228 then :
18229 gl_cv_func_fcntl_f_dupfd_works=yes
18230 else $as_nop
18231 gl_cv_func_fcntl_f_dupfd_works=no
18232 fi
18233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18234 conftest.$ac_objext conftest.beam conftest.$ac_ext
18235 fi
18236
18237 fi
18238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
18239 printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
18240 case $gl_cv_func_fcntl_f_dupfd_works in
18241 *yes) ;;
18242 *)
18243
18244
18245 if test $ac_cv_func_fcntl = no; then
18246 HAVE_FCNTL=0
18247 else
18248 REPLACE_FCNTL=1
18249 fi
18250
18251
18252 printf "%s\n" "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
18253 ;;
18254 esac
18255
18256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
18257 printf %s "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
18258 if test ${gl_cv_func_fcntl_f_dupfd_cloexec+y}
18259 then :
18260 printf %s "(cached) " >&6
18261 else $as_nop
18262 if test "$cross_compiling" = yes
18263 then :
18264 case "$host_os" in
18265 # Guess no on NetBSD.
18266 netbsd*) gl_cv_func_fcntl_f_dupfd_cloexec="guessing no" ;;
18267 *) gl_cv_func_fcntl_f_dupfd_cloexec="$gl_cross_guess_normal" ;;
18268 esac
18269
18270 else $as_nop
18271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18272 /* end confdefs.h. */
18273 #include <fcntl.h>
18274 #include <unistd.h>
18275 int main (int argc, char *argv[])
18276 {
18277 if (argc == 1)
18278 /* parent process */
18279 {
18280 if (fcntl (1, F_DUPFD_CLOEXEC, 10) < 0)
18281 return 1;
18282 return execl ("./conftest", "./conftest", "child", NULL);
18283 }
18284 else
18285 /* child process */
18286 return (fcntl (10, F_GETFL) < 0 ? 0 : 42);
18287 }
18288
18289
18290 _ACEOF
18291 if ac_fn_c_try_run "$LINENO"
18292 then :
18293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18294 /* end confdefs.h. */
18295
18296 #ifdef __linux__
18297 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
18298 it to support the semantics on older kernels that failed with EINVAL. */
18299 choke me
18300 #endif
18301
18302 int
18303 main (void)
18304 {
18305
18306 ;
18307 return 0;
18308 }
18309 _ACEOF
18310 if ac_fn_c_try_compile "$LINENO"
18311 then :
18312 gl_cv_func_fcntl_f_dupfd_cloexec=yes
18313 else $as_nop
18314 gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
18315 fi
18316 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18317
18318 else $as_nop
18319 gl_cv_func_fcntl_f_dupfd_cloexec=no
18320 fi
18321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18322 conftest.$ac_objext conftest.beam conftest.$ac_ext
18323 fi
18324
18325
18326 fi
18327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
18328 printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
18329 case "$gl_cv_func_fcntl_f_dupfd_cloexec" in
18330 *yes) ;;
18331 *)
18332
18333
18334 if test $ac_cv_func_fcntl = no; then
18335 HAVE_FCNTL=0
18336 else
18337 REPLACE_FCNTL=1
18338 fi
18339
18340 ;;
18341 esac
18342 fi
18343
18344
18345
18346 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
18347 GL_COND_OBJ_FCNTL_TRUE=
18348 GL_COND_OBJ_FCNTL_FALSE='#'
18349 else
18350 GL_COND_OBJ_FCNTL_TRUE='#'
18351 GL_COND_OBJ_FCNTL_FALSE=
18352 fi
18353 :
18354 if test -z "${GL_COND_OBJ_FCNTL_TRUE}" && test -z "${GL_COND_OBJ_FCNTL_FALSE}"; then
18355 GL_COND_OBJ_FCNTL_TRUE='#'
18356 GL_COND_OBJ_FCNTL_FALSE='#'
18357 fi
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368 GL_GNULIB_FCNTL=1
18369
18370
18371
18372
18373
18374 printf "%s\n" "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388 GL_GENERATE_FLOAT_H=false
18389 REPLACE_FLOAT_LDBL=0
18390 case "$host_os" in
18391 aix* | beos* | openbsd* | mirbsd* | irix*)
18392 GL_GENERATE_FLOAT_H=true
18393 ;;
18394 freebsd* | dragonfly*)
18395 case "$host_cpu" in
18396 i[34567]86 )
18397 GL_GENERATE_FLOAT_H=true
18398 ;;
18399 x86_64 )
18400 # On x86_64 systems, the C compiler may still be generating
18401 # 32-bit code.
18402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18403 /* end confdefs.h. */
18404 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
18405 int ok;
18406 #else
18407 error fail
18408 #endif
18409
18410 _ACEOF
18411 if ac_fn_c_try_compile "$LINENO"
18412 then :
18413
18414 else $as_nop
18415 GL_GENERATE_FLOAT_H=true
18416 fi
18417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18418 ;;
18419 esac
18420 ;;
18421 linux*)
18422 case "$host_cpu" in
18423 powerpc*)
18424 GL_GENERATE_FLOAT_H=true
18425 ;;
18426 esac
18427 ;;
18428 esac
18429 case "$host_os" in
18430 aix* | freebsd* | dragonfly* | linux*)
18431 if $GL_GENERATE_FLOAT_H; then
18432 REPLACE_FLOAT_LDBL=1
18433 fi
18434 ;;
18435 esac
18436
18437 REPLACE_ITOLD=0
18438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
18439 printf %s "checking whether conversion from 'int' to 'long double' works... " >&6; }
18440 if test ${gl_cv_func_itold_works+y}
18441 then :
18442 printf %s "(cached) " >&6
18443 else $as_nop
18444
18445 if test "$cross_compiling" = yes
18446 then :
18447 case "$host" in
18448 sparc*-*-linux*)
18449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18450 /* end confdefs.h. */
18451 #if defined __LP64__ || defined __arch64__
18452 int ok;
18453 #else
18454 error fail
18455 #endif
18456
18457 _ACEOF
18458 if ac_fn_c_try_compile "$LINENO"
18459 then :
18460 gl_cv_func_itold_works="guessing no"
18461 else $as_nop
18462 gl_cv_func_itold_works="guessing yes"
18463 fi
18464 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18465 ;;
18466 # Guess yes on native Windows.
18467 mingw*) gl_cv_func_itold_works="guessing yes" ;;
18468 *) gl_cv_func_itold_works="guessing yes" ;;
18469 esac
18470
18471 else $as_nop
18472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18473 /* end confdefs.h. */
18474
18475 int i = -1;
18476 volatile long double ld;
18477 int main ()
18478 {
18479 ld += i * 1.0L;
18480 if (ld > 0)
18481 return 1;
18482 return 0;
18483 }
18484 _ACEOF
18485 if ac_fn_c_try_run "$LINENO"
18486 then :
18487 gl_cv_func_itold_works=yes
18488 else $as_nop
18489 gl_cv_func_itold_works=no
18490 fi
18491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18492 conftest.$ac_objext conftest.beam conftest.$ac_ext
18493 fi
18494
18495
18496 fi
18497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
18498 printf "%s\n" "$gl_cv_func_itold_works" >&6; }
18499 case "$gl_cv_func_itold_works" in
18500 *no)
18501 REPLACE_ITOLD=1
18502 GL_GENERATE_FLOAT_H=true
18503 ;;
18504 esac
18505
18506 if $GL_GENERATE_FLOAT_H; then
18507
18508
18509
18510
18511
18512
18513
18514
18515 if test $gl_cv_have_include_next = yes; then
18516 gl_cv_next_float_h='<'float.h'>'
18517 else
18518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
18519 printf %s "checking absolute name of <float.h>... " >&6; }
18520 if test ${gl_cv_next_float_h+y}
18521 then :
18522 printf %s "(cached) " >&6
18523 else $as_nop
18524
18525
18526
18527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18528 /* end confdefs.h. */
18529 #include <float.h>
18530 _ACEOF
18531 case "$host_os" in
18532 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18533 *) gl_absname_cpp="$ac_cpp" ;;
18534 esac
18535
18536 case "$host_os" in
18537 mingw*)
18538 gl_dirsep_regex='[/\\]'
18539 ;;
18540 *)
18541 gl_dirsep_regex='\/'
18542 ;;
18543 esac
18544 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18545 gl_header_literal_regex=`echo 'float.h' \
18546 | sed -e "$gl_make_literal_regex_sed"`
18547 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18548 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18549 s|^/[^/]|//&|
18550 p
18551 q
18552 }'
18553
18554 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18555 sed -n "$gl_absolute_header_sed"`
18556
18557 gl_header=$gl_cv_absolute_float_h
18558 gl_cv_next_float_h='"'$gl_header'"'
18559
18560
18561 fi
18562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
18563 printf "%s\n" "$gl_cv_next_float_h" >&6; }
18564 fi
18565 NEXT_FLOAT_H=$gl_cv_next_float_h
18566
18567 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18568 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18569 gl_next_as_first_directive='<'float.h'>'
18570 else
18571 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18572 gl_next_as_first_directive=$gl_cv_next_float_h
18573 fi
18574 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
18575
18576
18577
18578
18579 fi
18580
18581
18582
18583
18584
18585
18586 case "$GL_GENERATE_FLOAT_H" in
18587 false) FLOAT_H='' ;;
18588 true)
18589 if test -z "$FLOAT_H"; then
18590 FLOAT_H="${gl_source_base_prefix}float.h"
18591 fi
18592 ;;
18593 *) echo "*** GL_GENERATE_FLOAT_H is not set correctly" 1>&2; exit 1 ;;
18594 esac
18595
18596
18597 if $GL_GENERATE_FLOAT_H; then
18598 GL_GENERATE_FLOAT_H_TRUE=
18599 GL_GENERATE_FLOAT_H_FALSE='#'
18600 else
18601 GL_GENERATE_FLOAT_H_TRUE='#'
18602 GL_GENERATE_FLOAT_H_FALSE=
18603 fi
18604 :
18605 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
18606 GL_GENERATE_FLOAT_H_TRUE='#'
18607 GL_GENERATE_FLOAT_H_FALSE='#'
18608 fi
18609
18610
18611
18612
18613
18614
18615
18616 if test $REPLACE_FLOAT_LDBL = 1; then
18617 GL_COND_OBJ_FLOAT_TRUE=
18618 GL_COND_OBJ_FLOAT_FALSE='#'
18619 else
18620 GL_COND_OBJ_FLOAT_TRUE='#'
18621 GL_COND_OBJ_FLOAT_FALSE=
18622 fi
18623 :
18624 if test -z "${GL_COND_OBJ_FLOAT_TRUE}" && test -z "${GL_COND_OBJ_FLOAT_FALSE}"; then
18625 GL_COND_OBJ_FLOAT_TRUE='#'
18626 GL_COND_OBJ_FLOAT_FALSE='#'
18627 fi
18628
18629
18630 if test $REPLACE_ITOLD = 1; then
18631 GL_COND_OBJ_ITOLD_TRUE=
18632 GL_COND_OBJ_ITOLD_FALSE='#'
18633 else
18634 GL_COND_OBJ_ITOLD_TRUE='#'
18635 GL_COND_OBJ_ITOLD_FALSE=
18636 fi
18637 :
18638 if test -z "${GL_COND_OBJ_ITOLD_TRUE}" && test -z "${GL_COND_OBJ_ITOLD_FALSE}"; then
18639 GL_COND_OBJ_ITOLD_TRUE='#'
18640 GL_COND_OBJ_ITOLD_FALSE='#'
18641 fi
18642
18643
18644
18645
18646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether free is known to preserve errno" >&5
18647 printf %s "checking whether free is known to preserve errno... " >&6; }
18648 if test ${gl_cv_func_free_preserves_errno+y}
18649 then :
18650 printf %s "(cached) " >&6
18651 else $as_nop
18652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18653 /* end confdefs.h. */
18654 #include <stdlib.h>
18655
18656 int
18657 main (void)
18658 {
18659 #if 2 < __GLIBC__ + (33 <= __GLIBC_MINOR__)
18660 #elif defined __OpenBSD__
18661 #elif defined __sun
18662 #else
18663 #error "'free' is not known to preserve errno"
18664 #endif
18665
18666 ;
18667 return 0;
18668 }
18669 _ACEOF
18670 if ac_fn_c_try_compile "$LINENO"
18671 then :
18672 gl_cv_func_free_preserves_errno=yes
18673 else $as_nop
18674 gl_cv_func_free_preserves_errno=no
18675 fi
18676 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18677
18678 fi
18679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_free_preserves_errno" >&5
18680 printf "%s\n" "$gl_cv_func_free_preserves_errno" >&6; }
18681
18682 case $gl_cv_func_free_preserves_errno in
18683 *yes)
18684
18685 printf "%s\n" "#define HAVE_FREE_POSIX 1" >>confdefs.h
18686
18687 ;;
18688 *) REPLACE_FREE=1 ;;
18689 esac
18690
18691
18692 if test $REPLACE_FREE = 1; then
18693 GL_COND_OBJ_FREE_TRUE=
18694 GL_COND_OBJ_FREE_FALSE='#'
18695 else
18696 GL_COND_OBJ_FREE_TRUE='#'
18697 GL_COND_OBJ_FREE_FALSE=
18698 fi
18699 :
18700 if test -z "${GL_COND_OBJ_FREE_TRUE}" && test -z "${GL_COND_OBJ_FREE_FALSE}"; then
18701 GL_COND_OBJ_FREE_TRUE='#'
18702 GL_COND_OBJ_FREE_FALSE='#'
18703 fi
18704
18705 if test -z "$GL_COND_OBJ_FREE_TRUE"; then :
18706
18707 :
18708
18709 fi
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719 GL_GNULIB_FREE_POSIX=1
18720
18721
18722
18723
18724
18725 printf "%s\n" "#define GNULIB_TEST_FREE_POSIX 1" >>confdefs.h
18726
18727
18728
18729
18730
18731
18732
18733 case "$host_os" in
18734 mingw* | solaris*)
18735 REPLACE_FSTAT=1
18736 ;;
18737 esac
18738
18739
18740
18741
18742 if test $REPLACE_FSTAT = 1; then
18743 GL_COND_OBJ_FSTAT_TRUE=
18744 GL_COND_OBJ_FSTAT_FALSE='#'
18745 else
18746 GL_COND_OBJ_FSTAT_TRUE='#'
18747 GL_COND_OBJ_FSTAT_FALSE=
18748 fi
18749 :
18750 if test -z "${GL_COND_OBJ_FSTAT_TRUE}" && test -z "${GL_COND_OBJ_FSTAT_FALSE}"; then
18751 GL_COND_OBJ_FSTAT_TRUE='#'
18752 GL_COND_OBJ_FSTAT_FALSE='#'
18753 fi
18754
18755 if test -z "$GL_COND_OBJ_FSTAT_TRUE"; then :
18756
18757 case "$host_os" in
18758 mingw*)
18759
18760
18761
18762
18763
18764
18765
18766
18767 gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
18768
18769 ;;
18770 esac
18771
18772
18773
18774 :
18775
18776
18777 fi
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787 GL_GNULIB_FSTAT=1
18788
18789
18790
18791
18792
18793 printf "%s\n" "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
18794
18795
18796
18797
18798
18799
18800
18801
18802
18803
18804
18805 if test $ac_cv_func_getdelim = yes; then
18806 HAVE_GETDELIM=1
18807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
18808 printf %s "checking for working getdelim function... " >&6; }
18809 if test ${gl_cv_func_working_getdelim+y}
18810 then :
18811 printf %s "(cached) " >&6
18812 else $as_nop
18813 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
18814 if test "$cross_compiling" = yes
18815 then :
18816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18817 /* end confdefs.h. */
18818
18819 #include <features.h>
18820 #ifdef __GNU_LIBRARY__
18821 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
18822 Lucky GNU user
18823 #endif
18824 #endif
18825
18826 _ACEOF
18827 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18828 $EGREP "Lucky GNU user" >/dev/null 2>&1
18829 then :
18830 gl_cv_func_working_getdelim="guessing yes"
18831 else $as_nop
18832 case "$host_os" in
18833 *-musl*) gl_cv_func_working_getdelim="guessing yes" ;;
18834 *) gl_cv_func_working_getdelim="$gl_cross_guess_normal" ;;
18835 esac
18836
18837 fi
18838 rm -rf conftest*
18839
18840
18841 else $as_nop
18842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18843 /* end confdefs.h. */
18844
18845 # include <stdio.h>
18846 # include <stdlib.h>
18847 # include <string.h>
18848 int main ()
18849 {
18850 FILE *in = fopen ("./conftest.data", "r");
18851 if (!in)
18852 return 1;
18853 {
18854 /* Test result for a NULL buffer and a zero size.
18855 Based on a test program from Karl Heuer. */
18856 char *line = NULL;
18857 size_t siz = 0;
18858 int len = getdelim (&line, &siz, '\n', in);
18859 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
18860 { free (line); fclose (in); return 2; }
18861 free (line);
18862 }
18863 {
18864 /* Test result for a NULL buffer and a non-zero size.
18865 This crashes on FreeBSD 8.0. */
18866 char *line = NULL;
18867 size_t siz = (size_t)(~0) / 4;
18868 if (getdelim (&line, &siz, '\n', in) == -1)
18869 { fclose (in); return 3; }
18870 free (line);
18871 }
18872 fclose (in);
18873 return 0;
18874 }
18875
18876 _ACEOF
18877 if ac_fn_c_try_run "$LINENO"
18878 then :
18879 gl_cv_func_working_getdelim=yes
18880 else $as_nop
18881 gl_cv_func_working_getdelim=no
18882 fi
18883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18884 conftest.$ac_objext conftest.beam conftest.$ac_ext
18885 fi
18886
18887
18888 fi
18889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
18890 printf "%s\n" "$gl_cv_func_working_getdelim" >&6; }
18891 case "$gl_cv_func_working_getdelim" in
18892 *yes) ;;
18893 *) REPLACE_GETDELIM=1 ;;
18894 esac
18895 else
18896 HAVE_GETDELIM=0
18897 fi
18898
18899 if test $ac_cv_have_decl_getdelim = no; then
18900 HAVE_DECL_GETDELIM=0
18901 fi
18902
18903
18904 if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
18905 GL_COND_OBJ_GETDELIM_TRUE=
18906 GL_COND_OBJ_GETDELIM_FALSE='#'
18907 else
18908 GL_COND_OBJ_GETDELIM_TRUE='#'
18909 GL_COND_OBJ_GETDELIM_FALSE=
18910 fi
18911 :
18912 if test -z "${GL_COND_OBJ_GETDELIM_TRUE}" && test -z "${GL_COND_OBJ_GETDELIM_FALSE}"; then
18913 GL_COND_OBJ_GETDELIM_TRUE='#'
18914 GL_COND_OBJ_GETDELIM_FALSE='#'
18915 fi
18916
18917 if test -z "$GL_COND_OBJ_GETDELIM_TRUE"; then :
18918
18919
18920 ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile"
18921 if test "x$ac_cv_func_flockfile" = xyes
18922 then :
18923 printf "%s\n" "#define HAVE_FLOCKFILE 1" >>confdefs.h
18924
18925 fi
18926 ac_fn_c_check_func "$LINENO" "funlockfile" "ac_cv_func_funlockfile"
18927 if test "x$ac_cv_func_funlockfile" = xyes
18928 then :
18929 printf "%s\n" "#define HAVE_FUNLOCKFILE 1" >>confdefs.h
18930
18931 fi
18932
18933 ac_fn_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
18934 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
18935 then :
18936 ac_have_decl=1
18937 else $as_nop
18938 ac_have_decl=0
18939 fi
18940 printf "%s\n" "#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl" >>confdefs.h
18941
18942
18943
18944 fi
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954 GL_GNULIB_GETDELIM=1
18955
18956
18957
18958
18959
18960 printf "%s\n" "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
18961
18962
18963
18964
18965
18966
18967
18968
18969 if test $ac_cv_func_getdtablesize = yes &&
18970 test $ac_cv_have_decl_getdtablesize = yes; then
18971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
18972 printf %s "checking whether getdtablesize works... " >&6; }
18973 if test ${gl_cv_func_getdtablesize_works+y}
18974 then :
18975 printf %s "(cached) " >&6
18976 else $as_nop
18977 case "$host_os" in
18978 vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;;
18979 *)
18980 if test "$cross_compiling" = yes
18981 then :
18982 case "$host_os" in
18983 cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
18984 gl_cv_func_getdtablesize_works="guessing no" ;;
18985 *) gl_cv_func_getdtablesize_works="guessing yes" ;;
18986 esac
18987
18988 else $as_nop
18989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18990 /* end confdefs.h. */
18991
18992 #include <unistd.h>
18993
18994
18995 $gl_mda_defines
18996
18997
18998 int
18999 main (void)
19000 {
19001 int size = getdtablesize();
19002 if (dup2 (0, getdtablesize()) != -1)
19003 return 1;
19004 if (size != getdtablesize())
19005 return 2;
19006
19007 ;
19008 return 0;
19009 }
19010 _ACEOF
19011 if ac_fn_c_try_run "$LINENO"
19012 then :
19013 gl_cv_func_getdtablesize_works=yes
19014 else $as_nop
19015 gl_cv_func_getdtablesize_works=no
19016 fi
19017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19018 conftest.$ac_objext conftest.beam conftest.$ac_ext
19019 fi
19020
19021 ;;
19022 esac
19023
19024 fi
19025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
19026 printf "%s\n" "$gl_cv_func_getdtablesize_works" >&6; }
19027 case "$gl_cv_func_getdtablesize_works" in
19028 *yes | "no (limitation)") ;;
19029 *) REPLACE_GETDTABLESIZE=1 ;;
19030 esac
19031 else
19032 HAVE_GETDTABLESIZE=0
19033 fi
19034
19035
19036 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
19037 GL_COND_OBJ_GETDTABLESIZE_TRUE=
19038 GL_COND_OBJ_GETDTABLESIZE_FALSE='#'
19039 else
19040 GL_COND_OBJ_GETDTABLESIZE_TRUE='#'
19041 GL_COND_OBJ_GETDTABLESIZE_FALSE=
19042 fi
19043 :
19044 if test -z "${GL_COND_OBJ_GETDTABLESIZE_TRUE}" && test -z "${GL_COND_OBJ_GETDTABLESIZE_FALSE}"; then
19045 GL_COND_OBJ_GETDTABLESIZE_TRUE='#'
19046 GL_COND_OBJ_GETDTABLESIZE_FALSE='#'
19047 fi
19048
19049 if test -z "$GL_COND_OBJ_GETDTABLESIZE_TRUE"; then :
19050
19051 :
19052
19053 fi
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063 GL_GNULIB_GETDTABLESIZE=1
19064
19065
19066
19067
19068
19069 printf "%s\n" "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080 gl_getline_needs_run_time_check=no
19081 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
19082 if test "x$ac_cv_func_getline" = xyes
19083 then :
19084 gl_getline_needs_run_time_check=yes
19085 else $as_nop
19086 am_cv_func_working_getline=no
19087 fi
19088
19089 if test $gl_getline_needs_run_time_check = yes; then
19090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
19091 printf %s "checking for working getline function... " >&6; }
19092 if test ${am_cv_func_working_getline+y}
19093 then :
19094 printf %s "(cached) " >&6
19095 else $as_nop
19096 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
19097 if test "$cross_compiling" = yes
19098 then :
19099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19100 /* end confdefs.h. */
19101
19102 #include <features.h>
19103 #ifdef __GNU_LIBRARY__
19104 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
19105 Lucky GNU user
19106 #endif
19107 #endif
19108
19109 _ACEOF
19110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19111 $EGREP "Lucky GNU user" >/dev/null 2>&1
19112 then :
19113 am_cv_func_working_getline="guessing yes"
19114 else $as_nop
19115 case "$host_os" in
19116 *-musl*) am_cv_func_working_getline="guessing yes" ;;
19117 *) am_cv_func_working_getline="$gl_cross_guess_normal" ;;
19118 esac
19119
19120 fi
19121 rm -rf conftest*
19122
19123
19124 else $as_nop
19125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19126 /* end confdefs.h. */
19127
19128 # include <stdio.h>
19129 # include <stdlib.h>
19130 # include <string.h>
19131 int main ()
19132 {
19133 FILE *in = fopen ("./conftest.data", "r");
19134 if (!in)
19135 return 1;
19136 {
19137 /* Test result for a NULL buffer and a zero size.
19138 Based on a test program from Karl Heuer. */
19139 char *line = NULL;
19140 size_t siz = 0;
19141 int len = getline (&line, &siz, in);
19142 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
19143 { free (line); fclose (in); return 2; }
19144 free (line);
19145 }
19146 {
19147 /* Test result for a NULL buffer and a non-zero size.
19148 This crashes on FreeBSD 8.0. */
19149 char *line = NULL;
19150 size_t siz = (size_t)(~0) / 4;
19151 if (getline (&line, &siz, in) == -1)
19152 { fclose (in); return 3; }
19153 free (line);
19154 }
19155 fclose (in);
19156 return 0;
19157 }
19158
19159 _ACEOF
19160 if ac_fn_c_try_run "$LINENO"
19161 then :
19162 am_cv_func_working_getline=yes
19163 else $as_nop
19164 am_cv_func_working_getline=no
19165 fi
19166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19167 conftest.$ac_objext conftest.beam conftest.$ac_ext
19168 fi
19169
19170
19171 fi
19172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
19173 printf "%s\n" "$am_cv_func_working_getline" >&6; }
19174 fi
19175
19176 if test $ac_cv_have_decl_getline = no; then
19177 HAVE_DECL_GETLINE=0
19178 fi
19179
19180 case "$am_cv_func_working_getline" in
19181 *yes) ;;
19182 *)
19183 REPLACE_GETLINE=1
19184 ;;
19185 esac
19186
19187
19188 if test $REPLACE_GETLINE = 1; then
19189 GL_COND_OBJ_GETLINE_TRUE=
19190 GL_COND_OBJ_GETLINE_FALSE='#'
19191 else
19192 GL_COND_OBJ_GETLINE_TRUE='#'
19193 GL_COND_OBJ_GETLINE_FALSE=
19194 fi
19195 :
19196 if test -z "${GL_COND_OBJ_GETLINE_TRUE}" && test -z "${GL_COND_OBJ_GETLINE_FALSE}"; then
19197 GL_COND_OBJ_GETLINE_TRUE='#'
19198 GL_COND_OBJ_GETLINE_FALSE='#'
19199 fi
19200
19201 if test -z "$GL_COND_OBJ_GETLINE_TRUE"; then :
19202
19203
19204 :
19205
19206
19207 fi
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217 GL_GNULIB_GETLINE=1
19218
19219
19220
19221
19222
19223 printf "%s\n" "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236 REPLACE_GETOPT=1
19237
19238 GL_GENERATE_GETOPT_H=false
19239 GL_GENERATE_GETOPT_CDEFS_H=false
19240 if test $REPLACE_GETOPT = 1; then
19241
19242
19243 if test $ac_cv_header_sys_cdefs_h = yes; then
19244 HAVE_SYS_CDEFS_H=1
19245 else
19246 HAVE_SYS_CDEFS_H=0
19247 fi
19248
19249
19250
19251 printf "%s\n" "#define __GETOPT_PREFIX rpl_" >>confdefs.h
19252
19253 GL_GENERATE_GETOPT_H=true
19254 GL_GENERATE_GETOPT_CDEFS_H=true
19255
19256 fi
19257
19258
19259
19260
19261
19262 case "$GL_GENERATE_GETOPT_H" in
19263 false) GETOPT_H='' ;;
19264 true)
19265 if test -z "$GETOPT_H"; then
19266 GETOPT_H="${gl_source_base_prefix}getopt.h"
19267 fi
19268 ;;
19269 *) echo "*** GL_GENERATE_GETOPT_H is not set correctly" 1>&2; exit 1 ;;
19270 esac
19271
19272
19273 if $GL_GENERATE_GETOPT_H; then
19274 GL_GENERATE_GETOPT_H_TRUE=
19275 GL_GENERATE_GETOPT_H_FALSE='#'
19276 else
19277 GL_GENERATE_GETOPT_H_TRUE='#'
19278 GL_GENERATE_GETOPT_H_FALSE=
19279 fi
19280 :
19281 if test -z "${GL_GENERATE_GETOPT_H_TRUE}" && test -z "${GL_GENERATE_GETOPT_H_FALSE}"; then
19282 GL_GENERATE_GETOPT_H_TRUE='#'
19283 GL_GENERATE_GETOPT_H_FALSE='#'
19284 fi
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294 case "$GL_GENERATE_GETOPT_CDEFS_H" in
19295 false) GETOPT_CDEFS_H='' ;;
19296 true)
19297 if test -z "$GETOPT_CDEFS_H"; then
19298 GETOPT_CDEFS_H="${gl_source_base_prefix}getopt-cdefs.h"
19299 fi
19300 ;;
19301 *) echo "*** GL_GENERATE_GETOPT_CDEFS_H is not set correctly" 1>&2; exit 1 ;;
19302 esac
19303
19304
19305 if $GL_GENERATE_GETOPT_CDEFS_H; then
19306 GL_GENERATE_GETOPT_CDEFS_H_TRUE=
19307 GL_GENERATE_GETOPT_CDEFS_H_FALSE='#'
19308 else
19309 GL_GENERATE_GETOPT_CDEFS_H_TRUE='#'
19310 GL_GENERATE_GETOPT_CDEFS_H_FALSE=
19311 fi
19312 :
19313 if test -z "${GL_GENERATE_GETOPT_CDEFS_H_TRUE}" && test -z "${GL_GENERATE_GETOPT_CDEFS_H_FALSE}"; then
19314 GL_GENERATE_GETOPT_CDEFS_H_TRUE='#'
19315 GL_GENERATE_GETOPT_CDEFS_H_FALSE='#'
19316 fi
19317
19318
19319
19320
19321
19322
19323
19324 if test $REPLACE_GETOPT = 1; then
19325 GL_COND_OBJ_GETOPT_TRUE=
19326 GL_COND_OBJ_GETOPT_FALSE='#'
19327 else
19328 GL_COND_OBJ_GETOPT_TRUE='#'
19329 GL_COND_OBJ_GETOPT_FALSE=
19330 fi
19331 :
19332 if test -z "${GL_COND_OBJ_GETOPT_TRUE}" && test -z "${GL_COND_OBJ_GETOPT_FALSE}"; then
19333 GL_COND_OBJ_GETOPT_TRUE='#'
19334 GL_COND_OBJ_GETOPT_FALSE='#'
19335 fi
19336
19337 if test -z "$GL_COND_OBJ_GETOPT_TRUE"; then :
19338
19339
19340
19341
19342
19343
19344
19345 GL_GNULIB_UNISTD_H_GETOPT=1
19346
19347
19348
19349 fi
19350
19351
19352
19353
19354
19355
19356
19357
19358
19359 GL_GNULIB_GETOPT_POSIX=1
19360
19361
19362
19363
19364
19365 printf "%s\n" "#define GNULIB_TEST_GETOPT_POSIX 1" >>confdefs.h
19366
19367
19368
19369
19370
19371
19372 ac_found=0
19373 ac_fn_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
19374 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19375 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
19376 then :
19377 ac_have_decl=1
19378 else $as_nop
19379 ac_have_decl=0
19380 fi
19381 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl" >>confdefs.h
19382 if test $ac_have_decl = 1
19383 then :
19384 ac_found=1
19385 fi
19386
19387 ac_fn_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
19388 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19389 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
19390 then :
19391 ac_have_decl=1
19392 else $as_nop
19393 ac_have_decl=0
19394 fi
19395 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl" >>confdefs.h
19396 if test $ac_have_decl = 1
19397 then :
19398 ac_found=1
19399 fi
19400
19401 ac_fn_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
19402 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19403 if test "x$ac_cv_have_decl___argv" = xyes
19404 then :
19405 ac_have_decl=1
19406 else $as_nop
19407 ac_have_decl=0
19408 fi
19409 printf "%s\n" "#define HAVE_DECL___ARGV $ac_have_decl" >>confdefs.h
19410 if test $ac_have_decl = 1
19411 then :
19412 ac_found=1
19413 fi
19414
19415
19416 # Incur the cost of this test only if none of the above worked.
19417 if test $ac_found = 0; then
19418 # On OpenBSD 5.1, using the global __progname variable appears to be
19419 # the only way to implement getprogname.
19420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
19421 printf %s "checking whether __progname is defined in default libraries... " >&6; }
19422 if test ${gl_cv_var___progname+y}
19423 then :
19424 printf %s "(cached) " >&6
19425 else $as_nop
19426
19427 gl_cv_var___progname=
19428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19429 /* end confdefs.h. */
19430 extern char *__progname;
19431 int
19432 main (void)
19433 {
19434 return *__progname;
19435
19436 ;
19437 return 0;
19438 }
19439 _ACEOF
19440 if ac_fn_c_try_link "$LINENO"
19441 then :
19442 gl_cv_var___progname=yes
19443
19444 fi
19445 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19446 conftest$ac_exeext conftest.$ac_ext
19447
19448
19449 fi
19450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
19451 printf "%s\n" "$gl_cv_var___progname" >&6; }
19452 if test "$gl_cv_var___progname" = yes; then
19453
19454 printf "%s\n" "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
19455
19456 fi
19457 fi
19458
19459
19460
19461
19462
19463
19464
19465
19466
19467
19468
19469
19470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler flag to ignore unused libraries" >&5
19471 printf %s "checking for C compiler flag to ignore unused libraries... " >&6; }
19472 if test ${gl_cv_prog_c_ignore_unused_libraries+y}
19473 then :
19474 printf %s "(cached) " >&6
19475 else $as_nop
19476 gl_cv_prog_c_ignore_unused_libraries=none
19477 gl_saved_ldflags=$LDFLAGS
19478 gl_saved_libs=$LIBS
19479 # Link with -lm to detect binutils 2.16 bug with --as-needed; see
19480 # <https://lists.gnu.org/r/bug-gnulib/2006-06/msg00131.html>.
19481 LIBS="$LIBS -lm"
19482 # Use long option sequences like '-z ignore' to test for the feature,
19483 # to forestall problems with linkers that have -z, -i, -g, -n, etc. flags.
19484 # GCC + binutils likes '-Wl,--as-needed'.
19485 # GCC + Solaris ld likes '-Wl,-z,ignore'.
19486 # Sun C likes '-Wl,-z,ignore'. '-z ignore' is accepted but has no effect.
19487 # Don't try bare '--as-needed'; nothing likes it and the HP-UX 11.11
19488 # native cc issues annoying warnings and then ignores it,
19489 # which would cause us to incorrectly conclude that it worked.
19490 for gl_flags in '-Wl,--as-needed' \
19491 '-Wl,-z,ignore' \
19492 '-z ignore'
19493
19494 do
19495 LDFLAGS="$gl_flags $LDFLAGS"
19496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19497 /* end confdefs.h. */
19498
19499 int
19500 main (void)
19501 {
19502
19503 ;
19504 return 0;
19505 }
19506 _ACEOF
19507 if ac_fn_c_try_link "$LINENO"
19508 then :
19509 gl_cv_prog_c_ignore_unused_libraries=$gl_flags
19510 fi
19511 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19512 conftest$ac_exeext conftest.$ac_ext
19513 LDFLAGS=$gl_saved_ldflags
19514 test "$gl_cv_prog_c_ignore_unused_libraries" != none &&
19515 break
19516 done
19517 LIBS=$gl_saved_libs
19518
19519 fi
19520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_c_ignore_unused_libraries" >&5
19521 printf "%s\n" "$gl_cv_prog_c_ignore_unused_libraries" >&6; }
19522 IGNORE_UNUSED_LIBRARIES_CFLAGS=
19523 if test "$gl_cv_prog_c_ignore_unused_libraries" != none; then
19524 IGNORE_UNUSED_LIBRARIES_CFLAGS="$gl_cv_prog_c_ignore_unused_libraries"
19525 fi
19526
19527
19528
19529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the __inline keyword" >&5
19530 printf %s "checking whether the compiler supports the __inline keyword... " >&6; }
19531 if test ${gl_cv_c___inline+y}
19532 then :
19533 printf %s "(cached) " >&6
19534 else $as_nop
19535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19536 /* end confdefs.h. */
19537 typedef int foo_t;
19538 static __inline foo_t foo (void) { return 0; }
19539 int
19540 main (void)
19541 {
19542 return foo ();
19543 ;
19544 return 0;
19545 }
19546 _ACEOF
19547 if ac_fn_c_try_compile "$LINENO"
19548 then :
19549 gl_cv_c___inline=yes
19550 else $as_nop
19551 gl_cv_c___inline=no
19552 fi
19553 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19554 fi
19555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c___inline" >&5
19556 printf "%s\n" "$gl_cv_c___inline" >&6; }
19557 if test $gl_cv_c___inline = yes; then
19558
19559 printf "%s\n" "#define HAVE___INLINE 1" >>confdefs.h
19560
19561 fi
19562
19563
19564
19565
19566
19567
19568 case "$GL_GENERATE_LIMITS_H" in
19569 false) LIMITS_H='' ;;
19570 true)
19571 if test -z "$LIMITS_H"; then
19572 LIMITS_H="${gl_source_base_prefix}limits.h"
19573 fi
19574 ;;
19575 *) echo "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;;
19576 esac
19577
19578
19579 if $GL_GENERATE_LIMITS_H; then
19580 GL_GENERATE_LIMITS_H_TRUE=
19581 GL_GENERATE_LIMITS_H_FALSE='#'
19582 else
19583 GL_GENERATE_LIMITS_H_TRUE='#'
19584 GL_GENERATE_LIMITS_H_FALSE=
19585 fi
19586 :
19587 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
19588 GL_GENERATE_LIMITS_H_TRUE='#'
19589 GL_GENERATE_LIMITS_H_FALSE='#'
19590 fi
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601 if test $ac_cv_func_lstat = yes; then
19602
19603 case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in
19604 solaris* | *no)
19605 REPLACE_LSTAT=1
19606 ;;
19607 esac
19608 else
19609 HAVE_LSTAT=0
19610 fi
19611
19612
19613 if test $REPLACE_LSTAT = 1; then
19614 GL_COND_OBJ_LSTAT_TRUE=
19615 GL_COND_OBJ_LSTAT_FALSE='#'
19616 else
19617 GL_COND_OBJ_LSTAT_TRUE='#'
19618 GL_COND_OBJ_LSTAT_FALSE=
19619 fi
19620 :
19621 if test -z "${GL_COND_OBJ_LSTAT_TRUE}" && test -z "${GL_COND_OBJ_LSTAT_FALSE}"; then
19622 GL_COND_OBJ_LSTAT_TRUE='#'
19623 GL_COND_OBJ_LSTAT_FALSE='#'
19624 fi
19625
19626 if test -z "$GL_COND_OBJ_LSTAT_TRUE"; then :
19627
19628 :
19629
19630 fi
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640 GL_GNULIB_LSTAT=1
19641
19642
19643
19644
19645
19646 printf "%s\n" "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
19647
19648
19649
19650
19651
19652
19653 REPLACE_MALLOC_FOR_MALLOC_GNU="$REPLACE_MALLOC_FOR_MALLOC_POSIX"
19654 if test $REPLACE_MALLOC_FOR_MALLOC_GNU = 0; then
19655
19656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc (0) returns nonnull" >&5
19657 printf %s "checking whether malloc (0) returns nonnull... " >&6; }
19658 if test ${ac_cv_func_malloc_0_nonnull+y}
19659 then :
19660 printf %s "(cached) " >&6
19661 else $as_nop
19662 if test "$cross_compiling" = yes
19663 then :
19664 case "$host_os" in
19665 # Guess yes on platforms where we know the result.
19666 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
19667 | gnu* | *-musl* | midnightbsd* \
19668 | hpux* | solaris* | cygwin* | mingw* | msys* )
19669 ac_cv_func_malloc_0_nonnull="guessing yes" ;;
19670 # If we don't know, obey --enable-cross-guesses.
19671 *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;;
19672 esac
19673
19674 else $as_nop
19675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19676 /* end confdefs.h. */
19677 #include <stdlib.h>
19678
19679 int
19680 main (void)
19681 {
19682 void *p = malloc (0);
19683 int result = !p;
19684 free (p);
19685 return result;
19686 ;
19687 return 0;
19688 }
19689
19690 _ACEOF
19691 if ac_fn_c_try_run "$LINENO"
19692 then :
19693 ac_cv_func_malloc_0_nonnull=yes
19694 else $as_nop
19695 ac_cv_func_malloc_0_nonnull=no
19696 fi
19697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19698 conftest.$ac_objext conftest.beam conftest.$ac_ext
19699 fi
19700
19701
19702 fi
19703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
19704 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
19705 case $ac_cv_func_malloc_0_nonnull in #(
19706 *yes) :
19707 ;; #(
19708 *) :
19709 REPLACE_MALLOC_FOR_MALLOC_GNU=1 ;;
19710 esac
19711
19712 fi
19713
19714 if test $REPLACE_MALLOC_FOR_MALLOC_GNU = 1; then
19715
19716
19717
19718
19719
19720
19721
19722
19723 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
19724
19725 fi
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735 GL_GNULIB_MALLOC_GNU=1
19736
19737
19738
19739
19740
19741 printf "%s\n" "#define GNULIB_TEST_MALLOC_GNU 1" >>confdefs.h
19742
19743
19744
19745
19746 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
19747
19748
19749
19750
19751
19752
19753
19754
19755 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
19756
19757 fi
19758
19759
19760
19761
19762
19763
19764
19765
19766
19767 GL_GNULIB_MALLOC_POSIX=1
19768
19769
19770
19771
19772
19773 printf "%s\n" "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
19774
19775
19776
19777
19778
19779
19780
19781
19782 if test $REPLACE_MEMCHR = 1; then
19783 GL_COND_OBJ_MEMCHR_TRUE=
19784 GL_COND_OBJ_MEMCHR_FALSE='#'
19785 else
19786 GL_COND_OBJ_MEMCHR_TRUE='#'
19787 GL_COND_OBJ_MEMCHR_FALSE=
19788 fi
19789 :
19790 if test -z "${GL_COND_OBJ_MEMCHR_TRUE}" && test -z "${GL_COND_OBJ_MEMCHR_FALSE}"; then
19791 GL_COND_OBJ_MEMCHR_TRUE='#'
19792 GL_COND_OBJ_MEMCHR_FALSE='#'
19793 fi
19794
19795 if test -z "$GL_COND_OBJ_MEMCHR_TRUE"; then :
19796
19797
19798 ac_fn_c_check_header_compile "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
19799 if test "x$ac_cv_header_bp_sym_h" = xyes
19800 then :
19801 printf "%s\n" "#define HAVE_BP_SYM_H 1" >>confdefs.h
19802
19803 fi
19804
19805
19806
19807 fi
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822 GL_GNULIB_MEMCHR=1
19823
19824
19825
19826
19827
19828 printf "%s\n" "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838 ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
19839 if test "x$ac_cv_func_mempcpy" = xyes
19840 then :
19841 printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
19842
19843 fi
19844
19845 if test $ac_cv_func_mempcpy = no; then
19846 HAVE_MEMPCPY=0
19847 fi
19848
19849
19850 if test $HAVE_MEMPCPY = 0; then
19851 GL_COND_OBJ_MEMPCPY_TRUE=
19852 GL_COND_OBJ_MEMPCPY_FALSE='#'
19853 else
19854 GL_COND_OBJ_MEMPCPY_TRUE='#'
19855 GL_COND_OBJ_MEMPCPY_FALSE=
19856 fi
19857 :
19858 if test -z "${GL_COND_OBJ_MEMPCPY_TRUE}" && test -z "${GL_COND_OBJ_MEMPCPY_FALSE}"; then
19859 GL_COND_OBJ_MEMPCPY_TRUE='#'
19860 GL_COND_OBJ_MEMPCPY_FALSE='#'
19861 fi
19862
19863 if test -z "$GL_COND_OBJ_MEMPCPY_TRUE"; then :
19864
19865
19866 :
19867
19868
19869 fi
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884 GL_GNULIB_MEMPCPY=1
19885
19886
19887
19888
19889
19890 printf "%s\n" "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
19891
19892
19893
19894
19895
19896
19897
19898
19899 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
19900 GL_COND_OBJ_MSVC_INVAL_TRUE=
19901 GL_COND_OBJ_MSVC_INVAL_FALSE='#'
19902 else
19903 GL_COND_OBJ_MSVC_INVAL_TRUE='#'
19904 GL_COND_OBJ_MSVC_INVAL_FALSE=
19905 fi
19906 :
19907 if test -z "${GL_COND_OBJ_MSVC_INVAL_TRUE}" && test -z "${GL_COND_OBJ_MSVC_INVAL_FALSE}"; then
19908 GL_COND_OBJ_MSVC_INVAL_TRUE='#'
19909 GL_COND_OBJ_MSVC_INVAL_FALSE='#'
19910 fi
19911
19912
19913
19914 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
19915 GL_COND_OBJ_MSVC_NOTHROW_TRUE=
19916 GL_COND_OBJ_MSVC_NOTHROW_FALSE='#'
19917 else
19918 GL_COND_OBJ_MSVC_NOTHROW_TRUE='#'
19919 GL_COND_OBJ_MSVC_NOTHROW_FALSE=
19920 fi
19921 :
19922 if test -z "${GL_COND_OBJ_MSVC_NOTHROW_TRUE}" && test -z "${GL_COND_OBJ_MSVC_NOTHROW_FALSE}"; then
19923 GL_COND_OBJ_MSVC_NOTHROW_TRUE='#'
19924 GL_COND_OBJ_MSVC_NOTHROW_FALSE='#'
19925 fi
19926
19927
19928
19929 printf "%s\n" "#define GNULIB_MSVC_NOTHROW 1" >>confdefs.h
19930
19931
19932
19933
19934
19935
19936 case "$host_os" in
19937 mingw* | pw*)
19938 REPLACE_OPEN=1
19939 ;;
19940 *)
19941
19942 if test "$gl_cv_macro_O_CLOEXEC" != yes; then
19943 REPLACE_OPEN=1
19944 fi
19945
19946
19947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
19948 printf %s "checking whether open recognizes a trailing slash... " >&6; }
19949 if test ${gl_cv_func_open_slash+y}
19950 then :
19951 printf %s "(cached) " >&6
19952 else $as_nop
19953 # Assume that if we have lstat, we can also check symlinks.
19954 if test $ac_cv_func_lstat = yes; then
19955 touch conftest.tmp
19956 ln -s conftest.tmp conftest.lnk
19957 fi
19958 if test "$cross_compiling" = yes
19959 then :
19960
19961 case "$host_os" in
19962 freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
19963 gl_cv_func_open_slash="guessing no" ;;
19964 *)
19965 gl_cv_func_open_slash="guessing yes" ;;
19966 esac
19967
19968 else $as_nop
19969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19970 /* end confdefs.h. */
19971
19972 #include <fcntl.h>
19973 #if HAVE_UNISTD_H
19974 # include <unistd.h>
19975 #endif
19976
19977
19978 $gl_mda_defines
19979
19980 int main ()
19981 {
19982 int result = 0;
19983 #if HAVE_LSTAT
19984 if (open ("conftest.lnk/", O_RDONLY) != -1)
19985 result |= 1;
19986 #endif
19987 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
19988 result |= 2;
19989 return result;
19990 }
19991 _ACEOF
19992 if ac_fn_c_try_run "$LINENO"
19993 then :
19994 gl_cv_func_open_slash=yes
19995 else $as_nop
19996 gl_cv_func_open_slash=no
19997 fi
19998 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19999 conftest.$ac_objext conftest.beam conftest.$ac_ext
20000 fi
20001
20002 rm -f conftest.sl conftest.tmp conftest.lnk
20003
20004 fi
20005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
20006 printf "%s\n" "$gl_cv_func_open_slash" >&6; }
20007 case "$gl_cv_func_open_slash" in
20008 *no)
20009
20010 printf "%s\n" "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
20011
20012 ;;
20013 esac
20014
20015 case "$gl_cv_func_open_slash" in
20016 *no)
20017 REPLACE_OPEN=1
20018 ;;
20019 esac
20020 ;;
20021 esac
20022
20023
20024
20025
20026 if test $REPLACE_OPEN = 1; then
20027 GL_COND_OBJ_OPEN_TRUE=
20028 GL_COND_OBJ_OPEN_FALSE='#'
20029 else
20030 GL_COND_OBJ_OPEN_TRUE='#'
20031 GL_COND_OBJ_OPEN_FALSE=
20032 fi
20033 :
20034 if test -z "${GL_COND_OBJ_OPEN_TRUE}" && test -z "${GL_COND_OBJ_OPEN_FALSE}"; then
20035 GL_COND_OBJ_OPEN_TRUE='#'
20036 GL_COND_OBJ_OPEN_FALSE='#'
20037 fi
20038
20039 if test -z "$GL_COND_OBJ_OPEN_TRUE"; then :
20040
20041
20042
20043 :
20044
20045
20046 fi
20047
20048
20049
20050
20051
20052
20053
20054
20055
20056 GL_GNULIB_OPEN=1
20057
20058
20059
20060
20061
20062 printf "%s\n" "#define GNULIB_TEST_OPEN 1" >>confdefs.h
20063
20064
20065
20066
20067
20068
20069
20070
20071
20072
20073 ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
20074 if test "x$ac_cv_func_rawmemchr" = xyes
20075 then :
20076 printf "%s\n" "#define HAVE_RAWMEMCHR 1" >>confdefs.h
20077
20078 fi
20079
20080 if test $ac_cv_func_rawmemchr = no; then
20081 HAVE_RAWMEMCHR=0
20082 fi
20083
20084
20085 if test $HAVE_RAWMEMCHR = 0; then
20086 GL_COND_OBJ_RAWMEMCHR_TRUE=
20087 GL_COND_OBJ_RAWMEMCHR_FALSE='#'
20088 else
20089 GL_COND_OBJ_RAWMEMCHR_TRUE='#'
20090 GL_COND_OBJ_RAWMEMCHR_FALSE=
20091 fi
20092 :
20093 if test -z "${GL_COND_OBJ_RAWMEMCHR_TRUE}" && test -z "${GL_COND_OBJ_RAWMEMCHR_FALSE}"; then
20094 GL_COND_OBJ_RAWMEMCHR_TRUE='#'
20095 GL_COND_OBJ_RAWMEMCHR_FALSE='#'
20096 fi
20097
20098 if test -z "$GL_COND_OBJ_RAWMEMCHR_TRUE"; then :
20099
20100 :
20101
20102 fi
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117 GL_GNULIB_RAWMEMCHR=1
20118
20119
20120
20121
20122
20123 printf "%s\n" "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
20124
20125
20126
20127
20128
20129
20130 if test $ac_cv_func_readlink = no; then
20131 HAVE_READLINK=0
20132 else
20133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
20134 printf %s "checking whether readlink signature is correct... " >&6; }
20135 if test ${gl_cv_decl_readlink_works+y}
20136 then :
20137 printf %s "(cached) " >&6
20138 else $as_nop
20139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20140 /* end confdefs.h. */
20141 #include <unistd.h>
20142 /* Cause compilation failure if original declaration has wrong type. */
20143 ssize_t readlink (const char *, char *, size_t);
20144 int
20145 main (void)
20146 {
20147
20148 ;
20149 return 0;
20150 }
20151 _ACEOF
20152 if ac_fn_c_try_compile "$LINENO"
20153 then :
20154 gl_cv_decl_readlink_works=yes
20155 else $as_nop
20156 gl_cv_decl_readlink_works=no
20157 fi
20158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20159 fi
20160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
20161 printf "%s\n" "$gl_cv_decl_readlink_works" >&6; }
20162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
20163 printf %s "checking whether readlink handles trailing slash correctly... " >&6; }
20164 if test ${gl_cv_func_readlink_trailing_slash+y}
20165 then :
20166 printf %s "(cached) " >&6
20167 else $as_nop
20168 # We have readlink, so assume ln -s works.
20169 ln -s conftest.no-such conftest.link
20170 ln -s conftest.link conftest.lnk2
20171 if test "$cross_compiling" = yes
20172 then :
20173 case "$host_os" in
20174 # Guess yes on Linux or glibc systems.
20175 linux-* | linux | *-gnu* | gnu*)
20176 gl_cv_func_readlink_trailing_slash="guessing yes" ;;
20177 # Guess no on AIX or HP-UX.
20178 aix* | hpux*)
20179 gl_cv_func_readlink_trailing_slash="guessing no" ;;
20180 # If we don't know, obey --enable-cross-guesses.
20181 *)
20182 gl_cv_func_readlink_trailing_slash="$gl_cross_guess_normal" ;;
20183 esac
20184
20185 else $as_nop
20186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20187 /* end confdefs.h. */
20188 #include <unistd.h>
20189
20190 int
20191 main (void)
20192 {
20193 char buf[20];
20194 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
20195 ;
20196 return 0;
20197 }
20198 _ACEOF
20199 if ac_fn_c_try_run "$LINENO"
20200 then :
20201 gl_cv_func_readlink_trailing_slash=yes
20202 else $as_nop
20203 gl_cv_func_readlink_trailing_slash=no
20204 fi
20205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20206 conftest.$ac_objext conftest.beam conftest.$ac_ext
20207 fi
20208
20209 rm -f conftest.link conftest.lnk2
20210 fi
20211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_trailing_slash" >&5
20212 printf "%s\n" "$gl_cv_func_readlink_trailing_slash" >&6; }
20213 case "$gl_cv_func_readlink_trailing_slash" in
20214 *yes)
20215 if test "$gl_cv_decl_readlink_works" != yes; then
20216 REPLACE_READLINK=1
20217 fi
20218 ;;
20219 *)
20220
20221 printf "%s\n" "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
20222
20223 REPLACE_READLINK=1
20224 ;;
20225 esac
20226
20227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether readlink truncates results correctly" >&5
20228 printf %s "checking whether readlink truncates results correctly... " >&6; }
20229 if test ${gl_cv_func_readlink_truncate+y}
20230 then :
20231 printf %s "(cached) " >&6
20232 else $as_nop
20233 # We have readlink, so assume ln -s works.
20234 ln -s ab conftest.link
20235 if test "$cross_compiling" = yes
20236 then :
20237 case "$host_os" in
20238 # Guess yes on Linux or glibc systems.
20239 linux-* | linux | *-gnu* | gnu*)
20240 gl_cv_func_readlink_truncate="guessing yes" ;;
20241 # Guess no on AIX or HP-UX.
20242 aix* | hpux*)
20243 gl_cv_func_readlink_truncate="guessing no" ;;
20244 # If we don't know, obey --enable-cross-guesses.
20245 *)
20246 gl_cv_func_readlink_truncate="$gl_cross_guess_normal" ;;
20247 esac
20248
20249 else $as_nop
20250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20251 /* end confdefs.h. */
20252 #include <unistd.h>
20253
20254 int
20255 main (void)
20256 {
20257 char c;
20258 return readlink ("conftest.link", &c, 1) != 1;
20259 ;
20260 return 0;
20261 }
20262 _ACEOF
20263 if ac_fn_c_try_run "$LINENO"
20264 then :
20265 gl_cv_func_readlink_truncate=yes
20266 else $as_nop
20267 gl_cv_func_readlink_truncate=no
20268 fi
20269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20270 conftest.$ac_objext conftest.beam conftest.$ac_ext
20271 fi
20272
20273 rm -f conftest.link conftest.lnk2
20274 fi
20275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_truncate" >&5
20276 printf "%s\n" "$gl_cv_func_readlink_truncate" >&6; }
20277 case $gl_cv_func_readlink_truncate in
20278 *yes)
20279 if test "$gl_cv_decl_readlink_works" != yes; then
20280 REPLACE_READLINK=1
20281 fi
20282 ;;
20283 *)
20284
20285 printf "%s\n" "#define READLINK_TRUNCATE_BUG 1" >>confdefs.h
20286
20287 REPLACE_READLINK=1
20288 ;;
20289 esac
20290 fi
20291
20292
20293 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
20294 GL_COND_OBJ_READLINK_TRUE=
20295 GL_COND_OBJ_READLINK_FALSE='#'
20296 else
20297 GL_COND_OBJ_READLINK_TRUE='#'
20298 GL_COND_OBJ_READLINK_FALSE=
20299 fi
20300 :
20301 if test -z "${GL_COND_OBJ_READLINK_TRUE}" && test -z "${GL_COND_OBJ_READLINK_FALSE}"; then
20302 GL_COND_OBJ_READLINK_TRUE='#'
20303 GL_COND_OBJ_READLINK_FALSE='#'
20304 fi
20305
20306 if test -z "$GL_COND_OBJ_READLINK_TRUE"; then :
20307
20308
20309 :
20310
20311
20312 fi
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322 GL_GNULIB_READLINK=1
20323
20324
20325
20326
20327
20328 printf "%s\n" "#define GNULIB_TEST_READLINK 1" >>confdefs.h
20329
20330
20331
20332
20333
20334
20335 if test $REPLACE_REALLOC_FOR_REALLOC_GNU = 0; then
20336
20337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether realloc (0, 0) returns nonnull" >&5
20338 printf %s "checking whether realloc (0, 0) returns nonnull... " >&6; }
20339 if test ${ac_cv_func_realloc_0_nonnull+y}
20340 then :
20341 printf %s "(cached) " >&6
20342 else $as_nop
20343 if test "$cross_compiling" = yes
20344 then :
20345 case "$host_os" in
20346 # Guess yes on platforms where we know the result.
20347 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
20348 | gnu* | *-musl* | midnightbsd* \
20349 | hpux* | solaris* | cygwin* | mingw* | msys* )
20350 ac_cv_func_realloc_0_nonnull="guessing yes" ;;
20351 # If we don't know, obey --enable-cross-guesses.
20352 *) ac_cv_func_realloc_0_nonnull="$gl_cross_guess_normal" ;;
20353 esac
20354
20355 else $as_nop
20356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20357 /* end confdefs.h. */
20358 #include <stdlib.h>
20359
20360 int
20361 main (void)
20362 {
20363 void *p = realloc (0, 0);
20364 int result = !p;
20365 free (p);
20366 return result;
20367 ;
20368 return 0;
20369 }
20370
20371 _ACEOF
20372 if ac_fn_c_try_run "$LINENO"
20373 then :
20374 ac_cv_func_realloc_0_nonnull=yes
20375 else $as_nop
20376 ac_cv_func_realloc_0_nonnull=no
20377 fi
20378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20379 conftest.$ac_objext conftest.beam conftest.$ac_ext
20380 fi
20381
20382
20383 fi
20384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
20385 printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; }
20386 case $ac_cv_func_realloc_0_nonnull in #(
20387 *yes) :
20388 ;; #(
20389 *) :
20390 REPLACE_REALLOC_FOR_REALLOC_GNU=1 ;;
20391 esac
20392
20393 fi
20394
20395 if test $REPLACE_REALLOC_FOR_REALLOC_GNU = 1; then
20396
20397
20398
20399
20400
20401
20402
20403
20404 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
20405
20406 fi
20407
20408
20409
20410
20411
20412
20413
20414
20415
20416 GL_GNULIB_REALLOC_GNU=1
20417
20418
20419
20420
20421
20422 printf "%s\n" "#define GNULIB_TEST_REALLOC_GNU 1" >>confdefs.h
20423
20424
20425
20426
20427
20428
20429 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
20430 REPLACE_REALLOC_FOR_REALLOC_POSIX=1
20431 fi
20432
20433 if test $REPLACE_REALLOC_FOR_REALLOC_POSIX = 1; then
20434
20435
20436
20437
20438
20439
20440
20441
20442 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
20443
20444 fi
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454 GL_GNULIB_REALLOC_POSIX=1
20455
20456
20457
20458
20459
20460 printf "%s\n" "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
20461
20462
20463
20464
20465
20466
20467
20468
20469 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
20470 if test "x$ac_cv_func_reallocarray" = xyes
20471 then :
20472 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
20473
20474 fi
20475
20476 if test "$ac_cv_func_reallocarray" = no; then
20477 HAVE_REALLOCARRAY=0
20478 elif test "$gl_cv_malloc_ptrdiff" = no; then
20479 REPLACE_REALLOCARRAY=1
20480 fi
20481
20482
20483 if test $HAVE_REALLOCARRAY = 0 || test $REPLACE_REALLOCARRAY = 1; then
20484 GL_COND_OBJ_REALLOCARRAY_TRUE=
20485 GL_COND_OBJ_REALLOCARRAY_FALSE='#'
20486 else
20487 GL_COND_OBJ_REALLOCARRAY_TRUE='#'
20488 GL_COND_OBJ_REALLOCARRAY_FALSE=
20489 fi
20490 :
20491 if test -z "${GL_COND_OBJ_REALLOCARRAY_TRUE}" && test -z "${GL_COND_OBJ_REALLOCARRAY_FALSE}"; then
20492 GL_COND_OBJ_REALLOCARRAY_TRUE='#'
20493 GL_COND_OBJ_REALLOCARRAY_FALSE='#'
20494 fi
20495
20496 if test -z "$GL_COND_OBJ_REALLOCARRAY_TRUE"; then :
20497
20498 :
20499
20500 fi
20501
20502
20503 printf "%s\n" "#define GNULIB_REALLOCARRAY 1" >>confdefs.h
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515 GL_GNULIB_REALLOCARRAY=1
20516
20517
20518
20519
20520
20521 printf "%s\n" "#define GNULIB_TEST_REALLOCARRAY 1" >>confdefs.h
20522
20523
20524
20525
20526
20527
20528
20529
20530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
20531 printf %s "checking whether rename honors trailing slash on destination... " >&6; }
20532 if test ${gl_cv_func_rename_slash_dst_works+y}
20533 then :
20534 printf %s "(cached) " >&6
20535 else $as_nop
20536 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
20537 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
20538 as_fn_error $? "cannot create temporary files" "$LINENO" 5
20539 # Assume that if we have lstat, we can also check symlinks.
20540 if test $ac_cv_func_lstat = yes; then
20541 ln -s conftest.f conftest.lnk
20542 fi
20543 if test "$cross_compiling" = yes
20544 then :
20545 case "$host_os" in
20546 # Guess yes on Linux systems.
20547 linux-* | linux) gl_cv_func_rename_slash_dst_works="guessing yes" ;;
20548 # Guess yes on glibc systems.
20549 *-gnu*) gl_cv_func_rename_slash_dst_works="guessing yes" ;;
20550 # Guess no on native Windows.
20551 mingw*) gl_cv_func_rename_slash_dst_works="guessing no" ;;
20552 # If we don't know, obey --enable-cross-guesses.
20553 *) gl_cv_func_rename_slash_dst_works="$gl_cross_guess_normal" ;;
20554 esac
20555
20556 else $as_nop
20557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20558 /* end confdefs.h. */
20559
20560 # include <stdio.h>
20561 # include <stdlib.h>
20562
20563 int
20564 main (void)
20565 {
20566 int result = 0;
20567 if (rename ("conftest.f1", "conftest.f2/") == 0)
20568 result |= 1;
20569 if (rename ("conftest.d1", "conftest.d2/") != 0)
20570 result |= 2;
20571 #if HAVE_LSTAT
20572 if (rename ("conftest.f", "conftest.lnk/") == 0)
20573 result |= 4;
20574 #endif
20575 return result;
20576
20577 ;
20578 return 0;
20579 }
20580 _ACEOF
20581 if ac_fn_c_try_run "$LINENO"
20582 then :
20583 gl_cv_func_rename_slash_dst_works=yes
20584 else $as_nop
20585 gl_cv_func_rename_slash_dst_works=no
20586 fi
20587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20588 conftest.$ac_objext conftest.beam conftest.$ac_ext
20589 fi
20590
20591 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
20592
20593 fi
20594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
20595 printf "%s\n" "$gl_cv_func_rename_slash_dst_works" >&6; }
20596 case "$gl_cv_func_rename_slash_dst_works" in
20597 *yes) ;;
20598 *)
20599 REPLACE_RENAME=1
20600
20601 printf "%s\n" "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
20602
20603 ;;
20604 esac
20605
20606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
20607 printf %s "checking whether rename honors trailing slash on source... " >&6; }
20608 if test ${gl_cv_func_rename_slash_src_works+y}
20609 then :
20610 printf %s "(cached) " >&6
20611 else $as_nop
20612 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
20613 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
20614 as_fn_error $? "cannot create temporary files" "$LINENO" 5
20615 # Assume that if we have lstat, we can also check symlinks.
20616 if test $ac_cv_func_lstat = yes; then
20617 ln -s conftest.f conftest.lnk
20618 fi
20619 if test "$cross_compiling" = yes
20620 then :
20621 case "$host_os" in
20622 # Guess yes on Linux systems.
20623 linux-* | linux) gl_cv_func_rename_slash_src_works="guessing yes" ;;
20624 # Guess yes on glibc systems.
20625 *-gnu*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
20626 # Guess yes on native Windows.
20627 mingw*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
20628 # If we don't know, obey --enable-cross-guesses.
20629 *) gl_cv_func_rename_slash_src_works="$gl_cross_guess_normal" ;;
20630 esac
20631
20632 else $as_nop
20633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20634 /* end confdefs.h. */
20635
20636 # include <stdio.h>
20637 # include <stdlib.h>
20638
20639 int
20640 main (void)
20641 {
20642 int result = 0;
20643 if (rename ("conftest.f1/", "conftest.d3") == 0)
20644 result |= 1;
20645 if (rename ("conftest.d1/", "conftest.d2") != 0)
20646 result |= 2;
20647 #if HAVE_LSTAT
20648 if (rename ("conftest.lnk/", "conftest.f") == 0)
20649 result |= 4;
20650 #endif
20651 return result;
20652
20653 ;
20654 return 0;
20655 }
20656 _ACEOF
20657 if ac_fn_c_try_run "$LINENO"
20658 then :
20659 gl_cv_func_rename_slash_src_works=yes
20660 else $as_nop
20661 gl_cv_func_rename_slash_src_works=no
20662 fi
20663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20664 conftest.$ac_objext conftest.beam conftest.$ac_ext
20665 fi
20666
20667 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
20668
20669 fi
20670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
20671 printf "%s\n" "$gl_cv_func_rename_slash_src_works" >&6; }
20672 case "$gl_cv_func_rename_slash_src_works" in
20673 *yes) ;;
20674 *)
20675 REPLACE_RENAME=1
20676
20677 printf "%s\n" "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
20678
20679 ;;
20680 esac
20681
20682
20683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
20684 printf %s "checking whether rename manages hard links correctly... " >&6; }
20685 if test ${gl_cv_func_rename_link_works+y}
20686 then :
20687 printf %s "(cached) " >&6
20688 else $as_nop
20689 if test $ac_cv_func_link = yes; then
20690 if test $cross_compiling != yes; then
20691 rm -rf conftest.f conftest.f1 conftest.f2
20692 if touch conftest.f conftest.f2 && ln conftest.f conftest.f1 &&
20693 set x `ls -i conftest.f conftest.f1` && test "" = ""; then
20694 if test "$cross_compiling" = yes
20695 then :
20696 :
20697
20698 else $as_nop
20699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20700 /* end confdefs.h. */
20701
20702 # include <errno.h>
20703 # include <stdio.h>
20704 # include <stdlib.h>
20705 # include <unistd.h>
20706
20707
20708 $gl_mda_defines
20709
20710 int
20711 main (void)
20712 {
20713 int result = 0;
20714 if (rename ("conftest.f", "conftest.f1"))
20715 result |= 1;
20716 if (unlink ("conftest.f1"))
20717 result |= 2;
20718
20719 /* Allow either the POSIX-required behavior, where the
20720 previous rename kept conftest.f, or the (better) NetBSD
20721 behavior, where it removed conftest.f. */
20722 if (rename ("conftest.f", "conftest.f") != 0
20723 && errno != ENOENT)
20724 result |= 4;
20725
20726 if (rename ("conftest.f1", "conftest.f1") == 0)
20727 result |= 8;
20728 if (rename ("conftest.f2", "conftest.f2") != 0)
20729 result |= 16;
20730 return result;
20731
20732 ;
20733 return 0;
20734 }
20735 _ACEOF
20736 if ac_fn_c_try_run "$LINENO"
20737 then :
20738 gl_cv_func_rename_link_works=yes
20739 else $as_nop
20740 gl_cv_func_rename_link_works=no
20741 fi
20742 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20743 conftest.$ac_objext conftest.beam conftest.$ac_ext
20744 fi
20745
20746 else
20747 gl_cv_func_rename_link_works="guessing no"
20748 fi
20749 rm -rf conftest.f conftest.f1 conftest.f2
20750 else
20751 case "$host_os" in
20752 # Guess yes on Linux systems.
20753 linux-* | linux) gl_cv_func_rename_link_works="guessing yes" ;;
20754 # Guess yes on glibc systems.
20755 *-gnu*) gl_cv_func_rename_link_works="guessing yes" ;;
20756 # Guess yes on native Windows.
20757 mingw*) gl_cv_func_rename_link_works="guessing yes" ;;
20758 # If we don't know, obey --enable-cross-guesses.
20759 *) gl_cv_func_rename_link_works="$gl_cross_guess_normal" ;;
20760 esac
20761 fi
20762 else
20763 gl_cv_func_rename_link_works=yes
20764 fi
20765
20766 fi
20767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
20768 printf "%s\n" "$gl_cv_func_rename_link_works" >&6; }
20769 case "$gl_cv_func_rename_link_works" in
20770 *yes) ;;
20771 *)
20772 REPLACE_RENAME=1
20773
20774 printf "%s\n" "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
20775
20776 ;;
20777 esac
20778
20779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
20780 printf %s "checking whether rename manages existing destinations correctly... " >&6; }
20781 if test ${gl_cv_func_rename_dest_works+y}
20782 then :
20783 printf %s "(cached) " >&6
20784 else $as_nop
20785 rm -rf conftest.f conftest.d1 conftest.d2
20786 touch conftest.f && mkdir conftest.d1 conftest.d2 ||
20787 as_fn_error $? "cannot create temporary files" "$LINENO" 5
20788 if test "$cross_compiling" = yes
20789 then :
20790 case "$host_os" in
20791 # Guess yes on Linux systems.
20792 linux-* | linux) gl_cv_func_rename_dest_works="guessing yes" ;;
20793 # Guess yes on glibc systems.
20794 *-gnu*) gl_cv_func_rename_dest_works="guessing yes" ;;
20795 # Guess no on native Windows.
20796 mingw*) gl_cv_func_rename_dest_works="guessing no" ;;
20797 # If we don't know, obey --enable-cross-guesses.
20798 *) gl_cv_func_rename_dest_works="$gl_cross_guess_normal" ;;
20799 esac
20800
20801 else $as_nop
20802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20803 /* end confdefs.h. */
20804
20805 # include <stdio.h>
20806 # include <stdlib.h>
20807
20808 int
20809 main (void)
20810 {
20811 int result = 0;
20812 if (rename ("conftest.d1", "conftest.d2") != 0)
20813 result |= 1;
20814 if (rename ("conftest.d2", "conftest.f") == 0)
20815 result |= 2;
20816 return result;
20817
20818 ;
20819 return 0;
20820 }
20821 _ACEOF
20822 if ac_fn_c_try_run "$LINENO"
20823 then :
20824 gl_cv_func_rename_dest_works=yes
20825 else $as_nop
20826 gl_cv_func_rename_dest_works=no
20827 fi
20828 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20829 conftest.$ac_objext conftest.beam conftest.$ac_ext
20830 fi
20831
20832 rm -rf conftest.f conftest.d1 conftest.d2
20833
20834 fi
20835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
20836 printf "%s\n" "$gl_cv_func_rename_dest_works" >&6; }
20837 case "$gl_cv_func_rename_dest_works" in
20838 *yes) ;;
20839 *)
20840 REPLACE_RENAME=1
20841
20842 printf "%s\n" "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
20843
20844 ;;
20845 esac
20846
20847
20848 if test $REPLACE_RENAME = 1; then
20849 GL_COND_OBJ_RENAME_TRUE=
20850 GL_COND_OBJ_RENAME_FALSE='#'
20851 else
20852 GL_COND_OBJ_RENAME_TRUE='#'
20853 GL_COND_OBJ_RENAME_FALSE=
20854 fi
20855 :
20856 if test -z "${GL_COND_OBJ_RENAME_TRUE}" && test -z "${GL_COND_OBJ_RENAME_FALSE}"; then
20857 GL_COND_OBJ_RENAME_TRUE='#'
20858 GL_COND_OBJ_RENAME_FALSE='#'
20859 fi
20860
20861
20862
20863
20864
20865
20866
20867
20868
20869
20870 GL_GNULIB_RENAME=1
20871
20872
20873
20874
20875
20876 printf "%s\n" "#define GNULIB_TEST_RENAME 1" >>confdefs.h
20877
20878
20879
20880
20881
20882
20883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
20884 printf %s "checking whether rmdir works... " >&6; }
20885 if test ${gl_cv_func_rmdir_works+y}
20886 then :
20887 printf %s "(cached) " >&6
20888 else $as_nop
20889 mkdir conftest.dir
20890 touch conftest.file
20891 if test "$cross_compiling" = yes
20892 then :
20893 case "$host_os" in
20894 # Guess yes on Linux systems.
20895 linux-* | linux) gl_cv_func_rmdir_works="guessing yes" ;;
20896 # Guess yes on glibc systems.
20897 *-gnu* | gnu*) gl_cv_func_rmdir_works="guessing yes" ;;
20898 # Guess no on native Windows.
20899 mingw*) gl_cv_func_rmdir_works="guessing no" ;;
20900 # If we don't know, obey --enable-cross-guesses.
20901 *) gl_cv_func_rmdir_works="$gl_cross_guess_normal" ;;
20902 esac
20903
20904 else $as_nop
20905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20906 /* end confdefs.h. */
20907 #include <stdio.h>
20908 #include <errno.h>
20909 #if HAVE_UNISTD_H
20910 # include <unistd.h>
20911 #else /* on Windows with MSVC */
20912 # include <direct.h>
20913 #endif
20914
20915
20916 $gl_mda_defines
20917
20918 int
20919 main (void)
20920 {
20921 int result = 0;
20922 if (!rmdir ("conftest.file/"))
20923 result |= 1;
20924 else if (errno != ENOTDIR)
20925 result |= 2;
20926 if (!rmdir ("conftest.dir/./"))
20927 result |= 4;
20928 return result;
20929
20930 ;
20931 return 0;
20932 }
20933 _ACEOF
20934 if ac_fn_c_try_run "$LINENO"
20935 then :
20936 gl_cv_func_rmdir_works=yes
20937 else $as_nop
20938 gl_cv_func_rmdir_works=no
20939 fi
20940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20941 conftest.$ac_objext conftest.beam conftest.$ac_ext
20942 fi
20943
20944 rm -rf conftest.dir conftest.file
20945 fi
20946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
20947 printf "%s\n" "$gl_cv_func_rmdir_works" >&6; }
20948 case "$gl_cv_func_rmdir_works" in
20949 *yes) ;;
20950 *)
20951 REPLACE_RMDIR=1
20952 ;;
20953 esac
20954
20955
20956 if test $REPLACE_RMDIR = 1; then
20957 GL_COND_OBJ_RMDIR_TRUE=
20958 GL_COND_OBJ_RMDIR_FALSE='#'
20959 else
20960 GL_COND_OBJ_RMDIR_TRUE='#'
20961 GL_COND_OBJ_RMDIR_FALSE=
20962 fi
20963 :
20964 if test -z "${GL_COND_OBJ_RMDIR_TRUE}" && test -z "${GL_COND_OBJ_RMDIR_FALSE}"; then
20965 GL_COND_OBJ_RMDIR_TRUE='#'
20966 GL_COND_OBJ_RMDIR_FALSE='#'
20967 fi
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978 GL_GNULIB_RMDIR=1
20979
20980
20981
20982
20983
20984 printf "%s\n" "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
20985
20986
20987
20988
20989
20990 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20991 if test "x$ac_cv_header_stdint_h" = xyes
20992 then :
20993 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
20994
20995 fi
20996
20997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20998 printf %s "checking for SIZE_MAX... " >&6; }
20999 if test ${gl_cv_size_max+y}
21000 then :
21001 printf %s "(cached) " >&6
21002 else $as_nop
21003
21004 gl_cv_size_max=no
21005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21006 /* end confdefs.h. */
21007
21008 #include <limits.h>
21009 #if HAVE_STDINT_H
21010 #include <stdint.h>
21011 #endif
21012 #ifdef SIZE_MAX
21013 Found it
21014 #endif
21015
21016 _ACEOF
21017 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21018 $EGREP "Found it" >/dev/null 2>&1
21019 then :
21020 gl_cv_size_max=yes
21021 fi
21022 rm -rf conftest*
21023
21024 if test $gl_cv_size_max != yes; then
21025 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
21026 #include <limits.h>"
21027 then :
21028
21029 else $as_nop
21030 size_t_bits_minus_1=
21031 fi
21032
21033 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"
21034 then :
21035
21036 else $as_nop
21037 fits_in_uint=
21038 fi
21039
21040 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
21041 if test $fits_in_uint = 1; then
21042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21043 /* end confdefs.h. */
21044 #include <stddef.h>
21045 extern size_t foo;
21046 extern unsigned long foo;
21047
21048 int
21049 main (void)
21050 {
21051
21052 ;
21053 return 0;
21054 }
21055 _ACEOF
21056 if ac_fn_c_try_compile "$LINENO"
21057 then :
21058 fits_in_uint=0
21059 fi
21060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21061 fi
21062 if test $fits_in_uint = 1; then
21063 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
21064 else
21065 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
21066 fi
21067 else
21068 gl_cv_size_max='((size_t)~(size_t)0)'
21069 fi
21070 fi
21071
21072 fi
21073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
21074 printf "%s\n" "$gl_cv_size_max" >&6; }
21075 if test "$gl_cv_size_max" != yes; then
21076
21077 printf "%s\n" "#define SIZE_MAX $gl_cv_size_max" >>confdefs.h
21078
21079 fi
21080
21081
21082
21083
21084 ac_fn_check_decl "$LINENO" "sleep" "ac_cv_have_decl_sleep" "#include <unistd.h>
21085 " "$ac_c_undeclared_builtin_options" "CFLAGS"
21086 if test "x$ac_cv_have_decl_sleep" = xyes
21087 then :
21088 ac_have_decl=1
21089 else $as_nop
21090 ac_have_decl=0
21091 fi
21092 printf "%s\n" "#define HAVE_DECL_SLEEP $ac_have_decl" >>confdefs.h
21093
21094
21095 if test $ac_cv_have_decl_sleep != yes; then
21096 HAVE_SLEEP=0
21097 else
21098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working sleep" >&5
21099 printf %s "checking for working sleep... " >&6; }
21100 if test ${gl_cv_func_sleep_works+y}
21101 then :
21102 printf %s "(cached) " >&6
21103 else $as_nop
21104 if test "$cross_compiling" = yes
21105 then :
21106 case "$host_os" in
21107 # Guess yes on glibc systems.
21108 *-gnu* | gnu*) gl_cv_func_sleep_works="guessing yes" ;;
21109 # Guess yes on musl systems.
21110 *-musl*) gl_cv_func_sleep_works="guessing yes" ;;
21111 # Guess no on native Windows.
21112 mingw*) gl_cv_func_sleep_works="guessing no" ;;
21113 # If we don't know, obey --enable-cross-guesses.
21114 *) gl_cv_func_sleep_works="$gl_cross_guess_normal" ;;
21115 esac
21116
21117 else $as_nop
21118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21119 /* end confdefs.h. */
21120
21121 #include <errno.h>
21122 #include <unistd.h>
21123 #include <signal.h>
21124 static void
21125 handle_alarm (int sig)
21126 {
21127 if (sig != SIGALRM)
21128 _exit (2);
21129 }
21130
21131 int
21132 main (void)
21133 {
21134
21135 /* Failure to compile this test due to missing alarm is okay,
21136 since all such platforms (mingw) also lack sleep. */
21137 unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days. */
21138 unsigned int remaining;
21139 signal (SIGALRM, handle_alarm);
21140 alarm (1);
21141 remaining = sleep (pentecost);
21142 if (remaining > pentecost)
21143 return 3;
21144 if (remaining <= pentecost - 10)
21145 return 4;
21146 return 0;
21147
21148 ;
21149 return 0;
21150 }
21151 _ACEOF
21152 if ac_fn_c_try_run "$LINENO"
21153 then :
21154 gl_cv_func_sleep_works=yes
21155 else $as_nop
21156 gl_cv_func_sleep_works=no
21157 fi
21158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21159 conftest.$ac_objext conftest.beam conftest.$ac_ext
21160 fi
21161
21162 fi
21163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_sleep_works" >&5
21164 printf "%s\n" "$gl_cv_func_sleep_works" >&6; }
21165 case "$gl_cv_func_sleep_works" in
21166 *yes) ;;
21167 *)
21168 REPLACE_SLEEP=1
21169 ;;
21170 esac
21171 fi
21172
21173
21174 if test $HAVE_SLEEP = 0 || test $REPLACE_SLEEP = 1; then
21175 GL_COND_OBJ_SLEEP_TRUE=
21176 GL_COND_OBJ_SLEEP_FALSE='#'
21177 else
21178 GL_COND_OBJ_SLEEP_TRUE='#'
21179 GL_COND_OBJ_SLEEP_FALSE=
21180 fi
21181 :
21182 if test -z "${GL_COND_OBJ_SLEEP_TRUE}" && test -z "${GL_COND_OBJ_SLEEP_FALSE}"; then
21183 GL_COND_OBJ_SLEEP_TRUE='#'
21184 GL_COND_OBJ_SLEEP_FALSE='#'
21185 fi
21186
21187
21188
21189
21190
21191
21192
21193
21194
21195
21196 GL_GNULIB_SLEEP=1
21197
21198
21199
21200
21201
21202 printf "%s\n" "#define GNULIB_TEST_SLEEP 1" >>confdefs.h
21203
21204
21205
21206
21207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
21208 printf %s "checking for ssize_t... " >&6; }
21209 if test ${gt_cv_ssize_t+y}
21210 then :
21211 printf %s "(cached) " >&6
21212 else $as_nop
21213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21214 /* end confdefs.h. */
21215 #include <sys/types.h>
21216 int
21217 main (void)
21218 {
21219 int x = sizeof (ssize_t *) + sizeof (ssize_t);
21220 return !x;
21221 ;
21222 return 0;
21223 }
21224 _ACEOF
21225 if ac_fn_c_try_compile "$LINENO"
21226 then :
21227 gt_cv_ssize_t=yes
21228 else $as_nop
21229 gt_cv_ssize_t=no
21230 fi
21231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21232 fi
21233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
21234 printf "%s\n" "$gt_cv_ssize_t" >&6; }
21235 if test $gt_cv_ssize_t = no; then
21236
21237 printf "%s\n" "#define ssize_t int" >>confdefs.h
21238
21239 fi
21240
21241
21242
21243
21244
21245 case "$host_os" in
21246 mingw*)
21247 REPLACE_STAT=1
21248 ;;
21249 *)
21250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
21251 printf %s "checking whether stat handles trailing slashes on files... " >&6; }
21252 if test ${gl_cv_func_stat_file_slash+y}
21253 then :
21254 printf %s "(cached) " >&6
21255 else $as_nop
21256 touch conftest.tmp
21257 # Assume that if we have lstat, we can also check symlinks.
21258 if test $ac_cv_func_lstat = yes; then
21259 ln -s conftest.tmp conftest.lnk
21260 fi
21261 if test "$cross_compiling" = yes
21262 then :
21263 case "$host_os" in
21264 # Guess yes on Linux systems.
21265 linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;;
21266 # Guess yes on glibc systems.
21267 *-gnu* | gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
21268 # If we don't know, obey --enable-cross-guesses.
21269 *) gl_cv_func_stat_file_slash="$gl_cross_guess_normal" ;;
21270 esac
21271
21272 else $as_nop
21273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21274 /* end confdefs.h. */
21275 #include <sys/stat.h>
21276
21277 int
21278 main (void)
21279 {
21280 int result = 0;
21281 struct stat st;
21282 if (!stat ("conftest.tmp/", &st))
21283 result |= 1;
21284 #if HAVE_LSTAT
21285 if (!stat ("conftest.lnk/", &st))
21286 result |= 2;
21287 #endif
21288 return result;
21289
21290 ;
21291 return 0;
21292 }
21293 _ACEOF
21294 if ac_fn_c_try_run "$LINENO"
21295 then :
21296 gl_cv_func_stat_file_slash=yes
21297 else $as_nop
21298 gl_cv_func_stat_file_slash=no
21299 fi
21300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21301 conftest.$ac_objext conftest.beam conftest.$ac_ext
21302 fi
21303
21304 rm -f conftest.tmp conftest.lnk
21305 fi
21306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
21307 printf "%s\n" "$gl_cv_func_stat_file_slash" >&6; }
21308 case $gl_cv_func_stat_file_slash in
21309 *no)
21310 REPLACE_STAT=1
21311
21312 printf "%s\n" "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
21313 ;;
21314 esac
21315 case $host_os in
21316 solaris*)
21317 REPLACE_FSTAT=1 ;;
21318 esac
21319 ;;
21320 esac
21321
21322
21323 if test $REPLACE_STAT = 1; then
21324 GL_COND_OBJ_STAT_TRUE=
21325 GL_COND_OBJ_STAT_FALSE='#'
21326 else
21327 GL_COND_OBJ_STAT_TRUE='#'
21328 GL_COND_OBJ_STAT_FALSE=
21329 fi
21330 :
21331 if test -z "${GL_COND_OBJ_STAT_TRUE}" && test -z "${GL_COND_OBJ_STAT_FALSE}"; then
21332 GL_COND_OBJ_STAT_TRUE='#'
21333 GL_COND_OBJ_STAT_FALSE='#'
21334 fi
21335
21336 if test -z "$GL_COND_OBJ_STAT_TRUE"; then :
21337
21338 case "$host_os" in
21339 mingw*)
21340
21341
21342
21343
21344
21345
21346
21347
21348 gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
21349
21350 ;;
21351 esac
21352
21353
21354
21355 :
21356
21357
21358 fi
21359
21360
21361
21362
21363
21364
21365
21366
21367
21368 GL_GNULIB_STAT=1
21369
21370
21371
21372
21373
21374 printf "%s\n" "#define GNULIB_TEST_STAT 1" >>confdefs.h
21375
21376
21377
21378
21379
21380
21381
21382 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
21383 #include <sys/stat.h>
21384 "
21385 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes
21386 then :
21387
21388 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1" >>confdefs.h
21389
21390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
21391 printf %s "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
21392 if test ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+y}
21393 then :
21394 printf %s "(cached) " >&6
21395 else $as_nop
21396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21397 /* end confdefs.h. */
21398
21399 #include <sys/types.h>
21400 #include <sys/stat.h>
21401 #if HAVE_SYS_TIME_H
21402 # include <sys/time.h>
21403 #endif
21404 #include <time.h>
21405 struct timespec ts;
21406 struct stat st;
21407
21408 int
21409 main (void)
21410 {
21411
21412 st.st_atim = ts;
21413
21414 ;
21415 return 0;
21416 }
21417 _ACEOF
21418 if ac_fn_c_try_compile "$LINENO"
21419 then :
21420 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
21421 else $as_nop
21422 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
21423 fi
21424 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21425 fi
21426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
21427 printf "%s\n" "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
21428 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
21429
21430 printf "%s\n" "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
21431
21432 fi
21433 else $as_nop
21434 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
21435 #include <sys/stat.h>
21436 "
21437 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes
21438 then :
21439
21440 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1" >>confdefs.h
21441
21442
21443 else $as_nop
21444 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
21445 #include <sys/stat.h>
21446 "
21447 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes
21448 then :
21449
21450 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1" >>confdefs.h
21451
21452
21453 else $as_nop
21454 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
21455 #include <sys/stat.h>
21456 "
21457 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes
21458 then :
21459
21460 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1" >>confdefs.h
21461
21462
21463 fi
21464
21465 fi
21466
21467 fi
21468
21469 fi
21470
21471
21472
21473
21474
21475 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
21476 #include <sys/stat.h>
21477 "
21478 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes
21479 then :
21480
21481 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1" >>confdefs.h
21482
21483
21484 else $as_nop
21485 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
21486 #include <sys/stat.h>
21487 "
21488 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes
21489 then :
21490
21491 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1" >>confdefs.h
21492
21493
21494 else $as_nop
21495 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
21496 #include <sys/stat.h>
21497 "
21498 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes
21499 then :
21500
21501 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1" >>confdefs.h
21502
21503
21504 fi
21505
21506 fi
21507
21508 fi
21509
21510
21511
21512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working stdalign.h" >&5
21513 printf %s "checking for working stdalign.h... " >&6; }
21514 if test ${gl_cv_header_working_stdalign_h+y}
21515 then :
21516 printf %s "(cached) " >&6
21517 else $as_nop
21518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21519 /* end confdefs.h. */
21520 #include <stdint.h>
21521 #include <stdalign.h>
21522 #include <stddef.h>
21523
21524 /* Test that alignof yields a result consistent with offsetof.
21525 This catches GCC bug 52023
21526 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
21527 #ifdef __cplusplus
21528 template <class t> struct alignof_helper { char a; t b; };
21529 # define ao(type) offsetof (alignof_helper<type>, b)
21530 #else
21531 # define ao(type) offsetof (struct { char a; type b; }, b)
21532 #endif
21533 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
21534 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
21535 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
21536
21537 /* Test _Alignas only on platforms where gnulib can help. */
21538 #if \
21539 ((defined __cplusplus && 201103 <= __cplusplus) \
21540 || (__TINYC__ && defined __attribute__) \
21541 || (defined __APPLE__ && defined __MACH__ \
21542 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
21543 : __GNUC__) \
21544 || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \
21545 || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \
21546 || 1300 <= _MSC_VER)
21547 struct alignas_test { char c; char alignas (8) alignas_8; };
21548 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
21549 ? 1 : -1];
21550 #endif
21551
21552 int
21553 main (void)
21554 {
21555
21556 ;
21557 return 0;
21558 }
21559 _ACEOF
21560 if ac_fn_c_try_compile "$LINENO"
21561 then :
21562 gl_cv_header_working_stdalign_h=yes
21563 else $as_nop
21564 gl_cv_header_working_stdalign_h=no
21565 fi
21566 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21567 fi
21568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
21569 printf "%s\n" "$gl_cv_header_working_stdalign_h" >&6; }
21570
21571 if test $gl_cv_header_working_stdalign_h = yes; then
21572 GL_GENERATE_STDALIGN_H=false
21573 else
21574 GL_GENERATE_STDALIGN_H=true
21575 fi
21576
21577
21578
21579
21580
21581 case "$GL_GENERATE_STDALIGN_H" in
21582 false) STDALIGN_H='' ;;
21583 true)
21584 if test -z "$STDALIGN_H"; then
21585 STDALIGN_H="${gl_source_base_prefix}stdalign.h"
21586 fi
21587 ;;
21588 *) echo "*** GL_GENERATE_STDALIGN_H is not set correctly" 1>&2; exit 1 ;;
21589 esac
21590
21591
21592 if $GL_GENERATE_STDALIGN_H; then
21593 GL_GENERATE_STDALIGN_H_TRUE=
21594 GL_GENERATE_STDALIGN_H_FALSE='#'
21595 else
21596 GL_GENERATE_STDALIGN_H_TRUE='#'
21597 GL_GENERATE_STDALIGN_H_FALSE=
21598 fi
21599 :
21600 if test -z "${GL_GENERATE_STDALIGN_H_TRUE}" && test -z "${GL_GENERATE_STDALIGN_H_FALSE}"; then
21601 GL_GENERATE_STDALIGN_H_TRUE='#'
21602 GL_GENERATE_STDALIGN_H_FALSE='#'
21603 fi
21604
21605
21606
21607
21608
21609
21610
21611 GL_GENERATE_STDARG_H=false
21612 NEXT_STDARG_H='<stdarg.h>'
21613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
21614 printf %s "checking for va_copy... " >&6; }
21615 if test ${gl_cv_func_va_copy+y}
21616 then :
21617 printf %s "(cached) " >&6
21618 else $as_nop
21619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21620 /* end confdefs.h. */
21621 #include <stdarg.h>
21622 int
21623 main (void)
21624 {
21625
21626 #ifndef va_copy
21627 void (*func) (va_list, va_list) = va_copy;
21628 #endif
21629
21630 ;
21631 return 0;
21632 }
21633 _ACEOF
21634 if ac_fn_c_try_compile "$LINENO"
21635 then :
21636 gl_cv_func_va_copy=yes
21637 else $as_nop
21638 gl_cv_func_va_copy=no
21639 fi
21640 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21641
21642 fi
21643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_va_copy" >&5
21644 printf "%s\n" "$gl_cv_func_va_copy" >&6; }
21645 if test $gl_cv_func_va_copy = no; then
21646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21647 /* end confdefs.h. */
21648 #if defined _AIX && !defined __GNUC__
21649 AIX vaccine
21650 #endif
21651
21652 _ACEOF
21653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21654 $EGREP "vaccine" >/dev/null 2>&1
21655 then :
21656 gl_aixcc=yes
21657 else $as_nop
21658 gl_aixcc=no
21659 fi
21660 rm -rf conftest*
21661
21662 if test $gl_aixcc = yes; then
21663 GL_GENERATE_STDARG_H=true
21664
21665
21666
21667
21668
21669
21670
21671
21672 if test $gl_cv_have_include_next = yes; then
21673 gl_cv_next_stdarg_h='<'stdarg.h'>'
21674 else
21675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdarg.h>" >&5
21676 printf %s "checking absolute name of <stdarg.h>... " >&6; }
21677 if test ${gl_cv_next_stdarg_h+y}
21678 then :
21679 printf %s "(cached) " >&6
21680 else $as_nop
21681
21682
21683
21684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21685 /* end confdefs.h. */
21686 #include <stdarg.h>
21687 _ACEOF
21688 case "$host_os" in
21689 aix*) gl_absname_cpp="$ac_cpp -C" ;;
21690 *) gl_absname_cpp="$ac_cpp" ;;
21691 esac
21692
21693 case "$host_os" in
21694 mingw*)
21695 gl_dirsep_regex='[/\\]'
21696 ;;
21697 *)
21698 gl_dirsep_regex='\/'
21699 ;;
21700 esac
21701 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21702 gl_header_literal_regex=`echo 'stdarg.h' \
21703 | sed -e "$gl_make_literal_regex_sed"`
21704 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21705 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21706 s|^/[^/]|//&|
21707 p
21708 q
21709 }'
21710
21711 gl_cv_absolute_stdarg_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21712 sed -n "$gl_absolute_header_sed"`
21713
21714 gl_header=$gl_cv_absolute_stdarg_h
21715 gl_cv_next_stdarg_h='"'$gl_header'"'
21716
21717
21718 fi
21719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdarg_h" >&5
21720 printf "%s\n" "$gl_cv_next_stdarg_h" >&6; }
21721 fi
21722 NEXT_STDARG_H=$gl_cv_next_stdarg_h
21723
21724 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21725 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21726 gl_next_as_first_directive='<'stdarg.h'>'
21727 else
21728 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21729 gl_next_as_first_directive=$gl_cv_next_stdarg_h
21730 fi
21731 NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
21732
21733
21734
21735
21736 if test "$gl_cv_next_stdarg_h" = '""'; then
21737 gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
21738 NEXT_STDARG_H="$gl_cv_next_stdarg_h"
21739 fi
21740 else
21741
21742
21743 exec 9>&6 6>/dev/null
21744
21745 if test ${gl_cv_func___va_copy+y}
21746 then :
21747 printf %s "(cached) " >&6
21748 else $as_nop
21749
21750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21751 /* end confdefs.h. */
21752 #include <stdarg.h>
21753 int
21754 main (void)
21755 {
21756
21757 #ifndef __va_copy
21758 error, bail out
21759 #endif
21760
21761 ;
21762 return 0;
21763 }
21764 _ACEOF
21765 if ac_fn_c_try_compile "$LINENO"
21766 then :
21767 gl_cv_func___va_copy=yes
21768 else $as_nop
21769 gl_cv_func___va_copy=no
21770 fi
21771 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21772 fi
21773
21774
21775 exec 6>&9 9>&-
21776
21777
21778 if test $gl_cv_func___va_copy = yes; then
21779
21780 printf "%s\n" "#define va_copy __va_copy" >>confdefs.h
21781
21782 else
21783
21784
21785 printf "%s\n" "#define va_copy gl_va_copy" >>confdefs.h
21786
21787 fi
21788 fi
21789 fi
21790
21791
21792
21793
21794
21795
21796 case "$GL_GENERATE_STDARG_H" in
21797 false) STDARG_H='' ;;
21798 true)
21799 if test -z "$STDARG_H"; then
21800 STDARG_H="${gl_source_base_prefix}stdarg.h"
21801 fi
21802 ;;
21803 *) echo "*** GL_GENERATE_STDARG_H is not set correctly" 1>&2; exit 1 ;;
21804 esac
21805
21806
21807 if $GL_GENERATE_STDARG_H; then
21808 GL_GENERATE_STDARG_H_TRUE=
21809 GL_GENERATE_STDARG_H_FALSE='#'
21810 else
21811 GL_GENERATE_STDARG_H_TRUE='#'
21812 GL_GENERATE_STDARG_H_FALSE=
21813 fi
21814 :
21815 if test -z "${GL_GENERATE_STDARG_H_TRUE}" && test -z "${GL_GENERATE_STDARG_H_FALSE}"; then
21816 GL_GENERATE_STDARG_H_TRUE='#'
21817 GL_GENERATE_STDARG_H_FALSE='#'
21818 fi
21819
21820
21821
21822
21823
21824
21825
21826
21827
21828
21829 if test "$ac_cv_header_stdbool_h" = yes; then
21830 case "$host_os" in
21831 solaris*)
21832 if test -z "$GCC"; then
21833 GL_GENERATE_STDBOOL_H=true
21834 else
21835 GL_GENERATE_STDBOOL_H=false
21836 fi
21837 ;;
21838 *)
21839 GL_GENERATE_STDBOOL_H=false
21840 ;;
21841 esac
21842 else
21843 GL_GENERATE_STDBOOL_H=true
21844 fi
21845
21846 if test "$ac_cv_type__Bool" = yes; then
21847 HAVE__BOOL=1
21848 else
21849 HAVE__BOOL=0
21850 fi
21851
21852
21853
21854
21855
21856
21857 case "$GL_GENERATE_STDBOOL_H" in
21858 false) STDBOOL_H='' ;;
21859 true)
21860 if test -z "$STDBOOL_H"; then
21861 STDBOOL_H="${gl_source_base_prefix}stdbool.h"
21862 fi
21863 ;;
21864 *) echo "*** GL_GENERATE_STDBOOL_H is not set correctly" 1>&2; exit 1 ;;
21865 esac
21866
21867
21868 if $GL_GENERATE_STDBOOL_H; then
21869 GL_GENERATE_STDBOOL_H_TRUE=
21870 GL_GENERATE_STDBOOL_H_FALSE='#'
21871 else
21872 GL_GENERATE_STDBOOL_H_TRUE='#'
21873 GL_GENERATE_STDBOOL_H_FALSE=
21874 fi
21875 :
21876 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
21877 GL_GENERATE_STDBOOL_H_TRUE='#'
21878 GL_GENERATE_STDBOOL_H_FALSE='#'
21879 fi
21880
21881
21882
21883
21884
21885
21886
21887
21888
21889
21890
21891
21892
21893
21894
21895
21896 case "$GL_GENERATE_STDDEF_H" in
21897 false) STDDEF_H='' ;;
21898 true)
21899 if test -z "$STDDEF_H"; then
21900 STDDEF_H="${gl_source_base_prefix}stddef.h"
21901 fi
21902 ;;
21903 *) echo "*** GL_GENERATE_STDDEF_H is not set correctly" 1>&2; exit 1 ;;
21904 esac
21905
21906
21907 if $GL_GENERATE_STDDEF_H; then
21908 GL_GENERATE_STDDEF_H_TRUE=
21909 GL_GENERATE_STDDEF_H_FALSE='#'
21910 else
21911 GL_GENERATE_STDDEF_H_TRUE='#'
21912 GL_GENERATE_STDDEF_H_FALSE=
21913 fi
21914 :
21915 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
21916 GL_GENERATE_STDDEF_H_TRUE='#'
21917 GL_GENERATE_STDDEF_H_FALSE='#'
21918 fi
21919
21920
21921
21922
21923
21924
21925
21926
21927
21928
21929
21930 case "$GL_GENERATE_STDINT_H" in
21931 false) STDINT_H='' ;;
21932 true)
21933 if test -z "$STDINT_H"; then
21934 STDINT_H="${gl_source_base_prefix}stdint.h"
21935 fi
21936 ;;
21937 *) echo "*** GL_GENERATE_STDINT_H is not set correctly" 1>&2; exit 1 ;;
21938 esac
21939
21940
21941 if $GL_GENERATE_STDINT_H; then
21942 GL_GENERATE_STDINT_H_TRUE=
21943 GL_GENERATE_STDINT_H_FALSE='#'
21944 else
21945 GL_GENERATE_STDINT_H_TRUE='#'
21946 GL_GENERATE_STDINT_H_FALSE=
21947 fi
21948 :
21949 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
21950 GL_GENERATE_STDINT_H_TRUE='#'
21951 GL_GENERATE_STDINT_H_FALSE='#'
21952 fi
21953
21954
21955
21956
21957
21958
21959
21960
21961
21962 case "$GL_GENERATE_LIMITS_H" in
21963 false) LIMITS_H='' ;;
21964 true)
21965 if test -z "$LIMITS_H"; then
21966 LIMITS_H="${gl_source_base_prefix}limits.h"
21967 fi
21968 ;;
21969 *) echo "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;;
21970 esac
21971
21972
21973 if $GL_GENERATE_LIMITS_H; then
21974 GL_GENERATE_LIMITS_H_TRUE=
21975 GL_GENERATE_LIMITS_H_FALSE='#'
21976 else
21977 GL_GENERATE_LIMITS_H_TRUE='#'
21978 GL_GENERATE_LIMITS_H_FALSE=
21979 fi
21980 :
21981 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
21982 GL_GENERATE_LIMITS_H_TRUE='#'
21983 GL_GENERATE_LIMITS_H_FALSE='#'
21984 fi
21985
21986
21987
21988
21989
21990
21991
21992
21993
21994
21995
21996
21997
21998
21999 if test $REPLACE_STDIO_READ_FUNCS = 1; then
22000 GL_COND_OBJ_STDIO_READ_TRUE=
22001 GL_COND_OBJ_STDIO_READ_FALSE='#'
22002 else
22003 GL_COND_OBJ_STDIO_READ_TRUE='#'
22004 GL_COND_OBJ_STDIO_READ_FALSE=
22005 fi
22006 :
22007 if test -z "${GL_COND_OBJ_STDIO_READ_TRUE}" && test -z "${GL_COND_OBJ_STDIO_READ_FALSE}"; then
22008 GL_COND_OBJ_STDIO_READ_TRUE='#'
22009 GL_COND_OBJ_STDIO_READ_FALSE='#'
22010 fi
22011
22012
22013 if test $REPLACE_STDIO_WRITE_FUNCS = 1; then
22014 GL_COND_OBJ_STDIO_WRITE_TRUE=
22015 GL_COND_OBJ_STDIO_WRITE_FALSE='#'
22016 else
22017 GL_COND_OBJ_STDIO_WRITE_TRUE='#'
22018 GL_COND_OBJ_STDIO_WRITE_FALSE=
22019 fi
22020 :
22021 if test -z "${GL_COND_OBJ_STDIO_WRITE_TRUE}" && test -z "${GL_COND_OBJ_STDIO_WRITE_FALSE}"; then
22022 GL_COND_OBJ_STDIO_WRITE_TRUE='#'
22023 GL_COND_OBJ_STDIO_WRITE_FALSE='#'
22024 fi
22025
22026
22027
22028
22029
22030
22031
22032
22033
22034
22035 GL_GNULIB_FSCANF=1
22036
22037
22038
22039
22040
22041 printf "%s\n" "#define GNULIB_TEST_FSCANF 1" >>confdefs.h
22042
22043
22044
22045
22046
22047 printf "%s\n" "#define GNULIB_FSCANF 1" >>confdefs.h
22048
22049
22050
22051
22052
22053
22054
22055
22056
22057
22058
22059 GL_GNULIB_SCANF=1
22060
22061
22062
22063
22064
22065 printf "%s\n" "#define GNULIB_TEST_SCANF 1" >>confdefs.h
22066
22067
22068
22069
22070
22071 printf "%s\n" "#define GNULIB_SCANF 1" >>confdefs.h
22072
22073
22074
22075
22076
22077
22078
22079
22080
22081
22082
22083 GL_GNULIB_FGETC=1
22084
22085
22086
22087
22088
22089 printf "%s\n" "#define GNULIB_TEST_FGETC 1" >>confdefs.h
22090
22091
22092
22093
22094
22095
22096
22097
22098
22099
22100
22101
22102 GL_GNULIB_GETC=1
22103
22104
22105
22106
22107
22108 printf "%s\n" "#define GNULIB_TEST_GETC 1" >>confdefs.h
22109
22110
22111
22112
22113
22114
22115
22116
22117
22118
22119
22120
22121 GL_GNULIB_GETCHAR=1
22122
22123
22124
22125
22126
22127 printf "%s\n" "#define GNULIB_TEST_GETCHAR 1" >>confdefs.h
22128
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138
22139
22140 GL_GNULIB_FGETS=1
22141
22142
22143
22144
22145
22146 printf "%s\n" "#define GNULIB_TEST_FGETS 1" >>confdefs.h
22147
22148
22149
22150
22151
22152
22153
22154
22155
22156
22157
22158
22159 GL_GNULIB_FREAD=1
22160
22161
22162
22163
22164
22165 printf "%s\n" "#define GNULIB_TEST_FREAD 1" >>confdefs.h
22166
22167
22168
22169
22170
22171
22172
22173
22174
22175
22176
22177
22178 GL_GNULIB_FPRINTF=1
22179
22180
22181
22182
22183
22184 printf "%s\n" "#define GNULIB_TEST_FPRINTF 1" >>confdefs.h
22185
22186
22187
22188
22189
22190
22191
22192
22193
22194
22195
22196
22197 GL_GNULIB_PRINTF=1
22198
22199
22200
22201
22202
22203 printf "%s\n" "#define GNULIB_TEST_PRINTF 1" >>confdefs.h
22204
22205
22206
22207
22208
22209
22210
22211
22212
22213
22214
22215
22216 GL_GNULIB_VFPRINTF=1
22217
22218
22219
22220
22221
22222 printf "%s\n" "#define GNULIB_TEST_VFPRINTF 1" >>confdefs.h
22223
22224
22225
22226
22227
22228
22229
22230
22231
22232
22233
22234
22235 GL_GNULIB_VPRINTF=1
22236
22237
22238
22239
22240
22241 printf "%s\n" "#define GNULIB_TEST_VPRINTF 1" >>confdefs.h
22242
22243
22244
22245
22246
22247
22248
22249
22250
22251
22252
22253
22254 GL_GNULIB_FPUTC=1
22255
22256
22257
22258
22259
22260 printf "%s\n" "#define GNULIB_TEST_FPUTC 1" >>confdefs.h
22261
22262
22263
22264
22265
22266
22267
22268
22269
22270
22271
22272
22273 GL_GNULIB_PUTC=1
22274
22275
22276
22277
22278
22279 printf "%s\n" "#define GNULIB_TEST_PUTC 1" >>confdefs.h
22280
22281
22282
22283
22284
22285
22286
22287
22288
22289
22290
22291
22292 GL_GNULIB_PUTCHAR=1
22293
22294
22295
22296
22297
22298 printf "%s\n" "#define GNULIB_TEST_PUTCHAR 1" >>confdefs.h
22299
22300
22301
22302
22303
22304
22305
22306
22307
22308
22309
22310
22311 GL_GNULIB_FPUTS=1
22312
22313
22314
22315
22316
22317 printf "%s\n" "#define GNULIB_TEST_FPUTS 1" >>confdefs.h
22318
22319
22320
22321
22322
22323
22324
22325
22326
22327
22328
22329
22330 GL_GNULIB_PUTS=1
22331
22332
22333
22334
22335
22336 printf "%s\n" "#define GNULIB_TEST_PUTS 1" >>confdefs.h
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347
22348
22349 GL_GNULIB_FWRITE=1
22350
22351
22352
22353
22354
22355 printf "%s\n" "#define GNULIB_TEST_FWRITE 1" >>confdefs.h
22356
22357
22358
22359
22360
22361
22362
22363
22364
22365
22366
22367
22368
22369 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
22370 if test "x$ac_cv_func_strcasecmp" = xyes
22371 then :
22372 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
22373
22374 fi
22375
22376 if test $ac_cv_func_strcasecmp = no; then
22377 HAVE_STRCASECMP=0
22378 fi
22379
22380
22381
22382 ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
22383 if test "x$ac_cv_func_strncasecmp" = xyes
22384 then :
22385 printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h
22386
22387 fi
22388
22389 if test $ac_cv_func_strncasecmp = yes; then
22390 HAVE_STRNCASECMP=1
22391 else
22392 HAVE_STRNCASECMP=0
22393 fi
22394 ac_fn_check_decl "$LINENO" "strncasecmp" "ac_cv_have_decl_strncasecmp" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
22395 if test "x$ac_cv_have_decl_strncasecmp" = xyes
22396 then :
22397 ac_have_decl=1
22398 else $as_nop
22399 ac_have_decl=0
22400 fi
22401 printf "%s\n" "#define HAVE_DECL_STRNCASECMP $ac_have_decl" >>confdefs.h
22402
22403 if test $ac_cv_have_decl_strncasecmp = no; then
22404 HAVE_DECL_STRNCASECMP=0
22405 fi
22406
22407
22408
22409 if test $HAVE_STRCASECMP = 0; then
22410 GL_COND_OBJ_STRCASECMP_TRUE=
22411 GL_COND_OBJ_STRCASECMP_FALSE='#'
22412 else
22413 GL_COND_OBJ_STRCASECMP_TRUE='#'
22414 GL_COND_OBJ_STRCASECMP_FALSE=
22415 fi
22416 :
22417 if test -z "${GL_COND_OBJ_STRCASECMP_TRUE}" && test -z "${GL_COND_OBJ_STRCASECMP_FALSE}"; then
22418 GL_COND_OBJ_STRCASECMP_TRUE='#'
22419 GL_COND_OBJ_STRCASECMP_FALSE='#'
22420 fi
22421
22422 if test -z "$GL_COND_OBJ_STRCASECMP_TRUE"; then :
22423
22424
22425 :
22426
22427
22428 fi
22429
22430 if test $HAVE_STRNCASECMP = 0; then
22431 GL_COND_OBJ_STRNCASECMP_TRUE=
22432 GL_COND_OBJ_STRNCASECMP_FALSE='#'
22433 else
22434 GL_COND_OBJ_STRNCASECMP_TRUE='#'
22435 GL_COND_OBJ_STRNCASECMP_FALSE=
22436 fi
22437 :
22438 if test -z "${GL_COND_OBJ_STRNCASECMP_TRUE}" && test -z "${GL_COND_OBJ_STRNCASECMP_FALSE}"; then
22439 GL_COND_OBJ_STRNCASECMP_TRUE='#'
22440 GL_COND_OBJ_STRNCASECMP_FALSE='#'
22441 fi
22442
22443 if test -z "$GL_COND_OBJ_STRNCASECMP_TRUE"; then :
22444
22445
22446 :
22447
22448
22449 fi
22450
22451
22452
22453
22454 ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
22455 if test "x$ac_cv_func_strchrnul" = xyes
22456 then :
22457 printf "%s\n" "#define HAVE_STRCHRNUL 1" >>confdefs.h
22458
22459 fi
22460
22461 if test $ac_cv_func_strchrnul = no; then
22462 HAVE_STRCHRNUL=0
22463 else
22464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
22465 printf %s "checking whether strchrnul works... " >&6; }
22466 if test ${gl_cv_func_strchrnul_works+y}
22467 then :
22468 printf %s "(cached) " >&6
22469 else $as_nop
22470 if test "$cross_compiling" = yes
22471 then :
22472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22473 /* end confdefs.h. */
22474
22475 #if defined __CYGWIN__
22476 #include <cygwin/version.h>
22477 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
22478 Lucky user
22479 #endif
22480 #else
22481 Lucky user
22482 #endif
22483
22484 _ACEOF
22485 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22486 $EGREP "Lucky user" >/dev/null 2>&1
22487 then :
22488 gl_cv_func_strchrnul_works="guessing yes"
22489 else $as_nop
22490 gl_cv_func_strchrnul_works="guessing no"
22491 fi
22492 rm -rf conftest*
22493
22494
22495 else $as_nop
22496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22497 /* end confdefs.h. */
22498
22499 #include <string.h> /* for strchrnul */
22500
22501 int
22502 main (void)
22503 {
22504 const char *buf = "a";
22505 return strchrnul (buf, 'b') != buf + 1;
22506
22507 ;
22508 return 0;
22509 }
22510 _ACEOF
22511 if ac_fn_c_try_run "$LINENO"
22512 then :
22513 gl_cv_func_strchrnul_works=yes
22514 else $as_nop
22515 gl_cv_func_strchrnul_works=no
22516 fi
22517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22518 conftest.$ac_objext conftest.beam conftest.$ac_ext
22519 fi
22520
22521
22522 fi
22523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
22524 printf "%s\n" "$gl_cv_func_strchrnul_works" >&6; }
22525 case "$gl_cv_func_strchrnul_works" in
22526 *yes) ;;
22527 *) REPLACE_STRCHRNUL=1 ;;
22528 esac
22529 fi
22530
22531
22532 if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
22533 GL_COND_OBJ_STRCHRNUL_TRUE=
22534 GL_COND_OBJ_STRCHRNUL_FALSE='#'
22535 else
22536 GL_COND_OBJ_STRCHRNUL_TRUE='#'
22537 GL_COND_OBJ_STRCHRNUL_FALSE=
22538 fi
22539 :
22540 if test -z "${GL_COND_OBJ_STRCHRNUL_TRUE}" && test -z "${GL_COND_OBJ_STRCHRNUL_FALSE}"; then
22541 GL_COND_OBJ_STRCHRNUL_TRUE='#'
22542 GL_COND_OBJ_STRCHRNUL_FALSE='#'
22543 fi
22544
22545 if test -z "$GL_COND_OBJ_STRCHRNUL_TRUE"; then :
22546
22547 :
22548
22549 fi
22550
22551
22552
22553
22554
22555
22556
22557
22558
22559
22560
22561
22562
22563
22564 GL_GNULIB_STRCHRNUL=1
22565
22566
22567
22568
22569
22570 printf "%s\n" "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
22571
22572
22573
22574
22575
22576
22577
22578
22579 if test "$GL_GENERATE_ERRNO_H:$REPLACE_STRERROR_0" = false:0; then
22580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
22581 printf %s "checking for working strerror function... " >&6; }
22582 if test ${gl_cv_func_working_strerror+y}
22583 then :
22584 printf %s "(cached) " >&6
22585 else $as_nop
22586 if test "$cross_compiling" = yes
22587 then :
22588 case "$host_os" in
22589 # Guess yes on glibc systems.
22590 *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;;
22591 # Guess yes on musl systems.
22592 *-musl*) gl_cv_func_working_strerror="guessing yes" ;;
22593 # If we don't know, obey --enable-cross-guesses.
22594 *) gl_cv_func_working_strerror="$gl_cross_guess_normal" ;;
22595 esac
22596
22597 else $as_nop
22598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22599 /* end confdefs.h. */
22600 #include <string.h>
22601
22602 int
22603 main (void)
22604 {
22605 if (!*strerror (-2)) return 1;
22606 ;
22607 return 0;
22608 }
22609 _ACEOF
22610 if ac_fn_c_try_run "$LINENO"
22611 then :
22612 gl_cv_func_working_strerror=yes
22613 else $as_nop
22614 gl_cv_func_working_strerror=no
22615 fi
22616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22617 conftest.$ac_objext conftest.beam conftest.$ac_ext
22618 fi
22619
22620
22621 fi
22622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
22623 printf "%s\n" "$gl_cv_func_working_strerror" >&6; }
22624 case "$gl_cv_func_working_strerror" in
22625 *yes) ;;
22626 *)
22627 REPLACE_STRERROR=1
22628 ;;
22629 esac
22630
22631 else
22632 REPLACE_STRERROR=1
22633 fi
22634
22635
22636 if test $REPLACE_STRERROR = 1; then
22637 GL_COND_OBJ_STRERROR_TRUE=
22638 GL_COND_OBJ_STRERROR_FALSE='#'
22639 else
22640 GL_COND_OBJ_STRERROR_TRUE='#'
22641 GL_COND_OBJ_STRERROR_FALSE=
22642 fi
22643 :
22644 if test -z "${GL_COND_OBJ_STRERROR_TRUE}" && test -z "${GL_COND_OBJ_STRERROR_FALSE}"; then
22645 GL_COND_OBJ_STRERROR_TRUE='#'
22646 GL_COND_OBJ_STRERROR_FALSE='#'
22647 fi
22648
22649
22650
22651 printf "%s\n" "#define GNULIB_STRERROR 1" >>confdefs.h
22652
22653
22654
22655
22656
22657
22658
22659
22660
22661
22662
22663
22664
22665
22666
22667
22668 GL_GNULIB_STRERROR=1
22669
22670
22671
22672
22673
22674 printf "%s\n" "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
22675
22676
22677
22678
22679
22680
22681 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
22682 GL_COND_OBJ_STRERROR_OVERRIDE_TRUE=
22683 GL_COND_OBJ_STRERROR_OVERRIDE_FALSE='#'
22684 else
22685 GL_COND_OBJ_STRERROR_OVERRIDE_TRUE='#'
22686 GL_COND_OBJ_STRERROR_OVERRIDE_FALSE=
22687 fi
22688 :
22689 if test -z "${GL_COND_OBJ_STRERROR_OVERRIDE_TRUE}" && test -z "${GL_COND_OBJ_STRERROR_OVERRIDE_FALSE}"; then
22690 GL_COND_OBJ_STRERROR_OVERRIDE_TRUE='#'
22691 GL_COND_OBJ_STRERROR_OVERRIDE_FALSE='#'
22692 fi
22693
22694 if test -z "$GL_COND_OBJ_STRERROR_OVERRIDE_TRUE"; then :
22695
22696
22697
22698
22699
22700 if test $ac_cv_header_sys_socket_h != yes; then
22701 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
22702 if test "x$ac_cv_header_winsock2_h" = xyes
22703 then :
22704 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
22705
22706 fi
22707
22708 fi
22709 if test "$ac_cv_header_winsock2_h" = yes; then
22710 HAVE_WINSOCK2_H=1
22711 UNISTD_H_HAVE_WINSOCK2_H=1
22712 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
22713 else
22714 HAVE_WINSOCK2_H=0
22715 fi
22716
22717
22718
22719 fi
22720
22721
22722
22723
22724
22725
22726
22727
22728
22729
22730
22731
22732
22733
22734
22735
22736
22737
22738
22739
22740
22741
22742
22743
22744
22745 if test $ac_cv_have_decl_strndup = no; then
22746 HAVE_DECL_STRNDUP=0
22747 fi
22748
22749 if test $ac_cv_func_strndup = yes; then
22750 HAVE_STRNDUP=1
22751 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
22752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strndup" >&5
22753 printf %s "checking for working strndup... " >&6; }
22754 if test ${gl_cv_func_strndup_works+y}
22755 then :
22756 printf %s "(cached) " >&6
22757 else $as_nop
22758 if test "$cross_compiling" = yes
22759 then :
22760
22761 case $host_os in
22762 aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
22763 *) gl_cv_func_strndup_works="guessing yes";;
22764 esac
22765
22766 else $as_nop
22767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22768 /* end confdefs.h. */
22769
22770 #include <string.h>
22771 #include <stdlib.h>
22772 int
22773 main (void)
22774 {
22775
22776 #if !HAVE_DECL_STRNDUP
22777 extern
22778 #ifdef __cplusplus
22779 "C"
22780 #endif
22781 char *strndup (const char *, size_t);
22782 #endif
22783 int result;
22784 char *s;
22785 s = strndup ("some longer string", 15);
22786 free (s);
22787 s = strndup ("shorter string", 13);
22788 result = s[13] != '\0';
22789 free (s);
22790 return result;
22791 ;
22792 return 0;
22793 }
22794 _ACEOF
22795 if ac_fn_c_try_run "$LINENO"
22796 then :
22797 gl_cv_func_strndup_works=yes
22798 else $as_nop
22799 gl_cv_func_strndup_works=no
22800 fi
22801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22802 conftest.$ac_objext conftest.beam conftest.$ac_ext
22803 fi
22804
22805 fi
22806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strndup_works" >&5
22807 printf "%s\n" "$gl_cv_func_strndup_works" >&6; }
22808 case $gl_cv_func_strndup_works in
22809 *no) REPLACE_STRNDUP=1 ;;
22810 esac
22811 else
22812 HAVE_STRNDUP=0
22813 fi
22814
22815
22816 if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
22817 GL_COND_OBJ_STRNDUP_TRUE=
22818 GL_COND_OBJ_STRNDUP_FALSE='#'
22819 else
22820 GL_COND_OBJ_STRNDUP_TRUE='#'
22821 GL_COND_OBJ_STRNDUP_FALSE=
22822 fi
22823 :
22824 if test -z "${GL_COND_OBJ_STRNDUP_TRUE}" && test -z "${GL_COND_OBJ_STRNDUP_FALSE}"; then
22825 GL_COND_OBJ_STRNDUP_TRUE='#'
22826 GL_COND_OBJ_STRNDUP_FALSE='#'
22827 fi
22828
22829
22830
22831
22832
22833
22834
22835
22836
22837
22838
22839
22840
22841
22842
22843 GL_GNULIB_STRNDUP=1
22844
22845
22846
22847
22848
22849 printf "%s\n" "#define GNULIB_TEST_STRNDUP 1" >>confdefs.h
22850
22851
22852
22853
22854
22855
22856
22857
22858
22859 if test $ac_cv_have_decl_strnlen = no; then
22860 HAVE_DECL_STRNLEN=0
22861 else
22862
22863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
22864 printf %s "checking for working strnlen... " >&6; }
22865 if test ${ac_cv_func_strnlen_working+y}
22866 then :
22867 printf %s "(cached) " >&6
22868 else $as_nop
22869 if test "$cross_compiling" = yes
22870 then :
22871 # Guess no on AIX systems, yes otherwise.
22872 case "$host_os" in
22873 aix*) ac_cv_func_strnlen_working=no;;
22874 *) ac_cv_func_strnlen_working=yes;;
22875 esac
22876 else $as_nop
22877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22878 /* end confdefs.h. */
22879 $ac_includes_default
22880 int
22881 main (void)
22882 {
22883
22884 #define S "foobar"
22885 #define S_LEN (sizeof S - 1)
22886
22887 /* At least one implementation is buggy: that of AIX 4.3 would
22888 give strnlen (S, 1) == 3. */
22889
22890 int i;
22891 for (i = 0; i < S_LEN + 1; ++i)
22892 {
22893 int expected = i <= S_LEN ? i : S_LEN;
22894 if (strnlen (S, i) != expected)
22895 return 1;
22896 }
22897 return 0;
22898
22899 ;
22900 return 0;
22901 }
22902 _ACEOF
22903 if ac_fn_c_try_run "$LINENO"
22904 then :
22905 ac_cv_func_strnlen_working=yes
22906 else $as_nop
22907 ac_cv_func_strnlen_working=no
22908 fi
22909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22910 conftest.$ac_objext conftest.beam conftest.$ac_ext
22911 fi
22912
22913 fi
22914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
22915 printf "%s\n" "$ac_cv_func_strnlen_working" >&6; }
22916 test $ac_cv_func_strnlen_working = no && :
22917
22918
22919 if test $ac_cv_func_strnlen_working = no; then
22920 REPLACE_STRNLEN=1
22921 fi
22922 fi
22923
22924
22925 if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
22926 GL_COND_OBJ_STRNLEN_TRUE=
22927 GL_COND_OBJ_STRNLEN_FALSE='#'
22928 else
22929 GL_COND_OBJ_STRNLEN_TRUE='#'
22930 GL_COND_OBJ_STRNLEN_FALSE=
22931 fi
22932 :
22933 if test -z "${GL_COND_OBJ_STRNLEN_TRUE}" && test -z "${GL_COND_OBJ_STRNLEN_FALSE}"; then
22934 GL_COND_OBJ_STRNLEN_TRUE='#'
22935 GL_COND_OBJ_STRNLEN_FALSE='#'
22936 fi
22937
22938 if test -z "$GL_COND_OBJ_STRNLEN_TRUE"; then :
22939
22940 :
22941
22942 fi
22943
22944
22945
22946
22947
22948
22949
22950
22951
22952
22953
22954
22955
22956
22957 GL_GNULIB_STRNLEN=1
22958
22959
22960
22961
22962
22963 printf "%s\n" "#define GNULIB_TEST_STRNLEN 1" >>confdefs.h
22964
22965
22966
22967
22968
22969
22970
22971
22972
22973
22974
22975
22976
22977
22978
22979
22980
22981
22982
22983 if test $ac_cv_header_sysexits_h = yes; then
22984 HAVE_SYSEXITS_H=1
22985
22986
22987
22988
22989
22990
22991
22992
22993
22994 if test $gl_cv_have_include_next = yes; then
22995 gl_cv_next_sysexits_h='<'sysexits.h'>'
22996 else
22997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sysexits.h>" >&5
22998 printf %s "checking absolute name of <sysexits.h>... " >&6; }
22999 if test ${gl_cv_next_sysexits_h+y}
23000 then :
23001 printf %s "(cached) " >&6
23002 else $as_nop
23003
23004 if test $ac_cv_header_sysexits_h = yes; then
23005
23006
23007
23008
23009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23010 /* end confdefs.h. */
23011 #include <sysexits.h>
23012 _ACEOF
23013 case "$host_os" in
23014 aix*) gl_absname_cpp="$ac_cpp -C" ;;
23015 *) gl_absname_cpp="$ac_cpp" ;;
23016 esac
23017
23018 case "$host_os" in
23019 mingw*)
23020 gl_dirsep_regex='[/\\]'
23021 ;;
23022 *)
23023 gl_dirsep_regex='\/'
23024 ;;
23025 esac
23026 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
23027 gl_header_literal_regex=`echo 'sysexits.h' \
23028 | sed -e "$gl_make_literal_regex_sed"`
23029 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
23030 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
23031 s|^/[^/]|//&|
23032 p
23033 q
23034 }'
23035
23036 gl_cv_absolute_sysexits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23037 sed -n "$gl_absolute_header_sed"`
23038
23039 gl_header=$gl_cv_absolute_sysexits_h
23040 gl_cv_next_sysexits_h='"'$gl_header'"'
23041 else
23042 gl_cv_next_sysexits_h='<'sysexits.h'>'
23043 fi
23044
23045
23046 fi
23047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sysexits_h" >&5
23048 printf "%s\n" "$gl_cv_next_sysexits_h" >&6; }
23049 fi
23050 NEXT_SYSEXITS_H=$gl_cv_next_sysexits_h
23051
23052 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23053 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23054 gl_next_as_first_directive='<'sysexits.h'>'
23055 else
23056 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23057 gl_next_as_first_directive=$gl_cv_next_sysexits_h
23058 fi
23059 NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H=$gl_next_as_first_directive
23060
23061
23062
23063
23064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23065 /* end confdefs.h. */
23066 #include <sysexits.h>
23067 int
23068 main (void)
23069 {
23070 switch (0)
23071 {
23072 case EX_OK:
23073 case EX_USAGE:
23074 case EX_DATAERR:
23075 case EX_NOINPUT:
23076 case EX_NOUSER:
23077 case EX_NOHOST:
23078 case EX_UNAVAILABLE:
23079 case EX_SOFTWARE:
23080 case EX_OSERR:
23081 case EX_OSFILE:
23082 case EX_CANTCREAT:
23083 case EX_IOERR:
23084 case EX_TEMPFAIL:
23085 case EX_PROTOCOL:
23086 case EX_NOPERM:
23087 case EX_CONFIG:
23088 break;
23089 }
23090
23091 ;
23092 return 0;
23093 }
23094 _ACEOF
23095 if ac_fn_c_try_compile "$LINENO"
23096 then :
23097 GL_GENERATE_SYSEXITS_H=false
23098 else $as_nop
23099 GL_GENERATE_SYSEXITS_H=true
23100 fi
23101 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23102 else
23103 HAVE_SYSEXITS_H=0
23104 GL_GENERATE_SYSEXITS_H=true
23105 fi
23106
23107
23108
23109
23110
23111
23112 case "$GL_GENERATE_SYSEXITS_H" in
23113 false) SYSEXITS_H='' ;;
23114 true)
23115 if test -z "$SYSEXITS_H"; then
23116 SYSEXITS_H="${gl_source_base_prefix}sysexits.h"
23117 fi
23118 ;;
23119 *) echo "*** GL_GENERATE_SYSEXITS_H is not set correctly" 1>&2; exit 1 ;;
23120 esac
23121
23122
23123 if $GL_GENERATE_SYSEXITS_H; then
23124 GL_GENERATE_SYSEXITS_H_TRUE=
23125 GL_GENERATE_SYSEXITS_H_FALSE='#'
23126 else
23127 GL_GENERATE_SYSEXITS_H_TRUE='#'
23128 GL_GENERATE_SYSEXITS_H_FALSE=
23129 fi
23130 :
23131 if test -z "${GL_GENERATE_SYSEXITS_H_TRUE}" && test -z "${GL_GENERATE_SYSEXITS_H_FALSE}"; then
23132 GL_GENERATE_SYSEXITS_H_TRUE='#'
23133 GL_GENERATE_SYSEXITS_H_FALSE='#'
23134 fi
23135
23136
23137
23138
23139
23140
23141
23142
23143
23144
23145
23146
23147
23148
23149
23150
23151
23152
23153
23154
23155
23156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for variable-length arrays" >&5
23157 printf %s "checking for variable-length arrays... " >&6; }
23158 if test ${ac_cv_c_vararrays+y}
23159 then :
23160 printf %s "(cached) " >&6
23161 else $as_nop
23162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23163 /* end confdefs.h. */
23164 #ifdef __STDC_NO_VLA__
23165 defined
23166 #endif
23167
23168 _ACEOF
23169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23170 $EGREP "defined" >/dev/null 2>&1
23171 then :
23172 ac_cv_c_vararrays='no: __STDC_NO_VLA__ is defined'
23173 else $as_nop
23174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23175 /* end confdefs.h. */
23176 /* Test for VLA support. This test is partly inspired
23177 from examples in the C standard. Use at least two VLA
23178 functions to detect the GCC 3.4.3 bug described in:
23179 https://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00014.html
23180 */
23181 #ifdef __STDC_NO_VLA__
23182 syntax error;
23183 #else
23184 extern int n;
23185 int B[100];
23186 int fvla (int m, int C[m][m]);
23187
23188 int
23189 simple (int count, int all[static count])
23190 {
23191 return all[count - 1];
23192 }
23193
23194 int
23195 fvla (int m, int C[m][m])
23196 {
23197 typedef int VLA[m][m];
23198 VLA x;
23199 int D[m];
23200 static int (*q)[m] = &B;
23201 int (*s)[n] = q;
23202 return C && &x[0][0] == &D[0] && &D[0] == s[0];
23203 }
23204 #endif
23205
23206 int
23207 main (void)
23208 {
23209
23210 ;
23211 return 0;
23212 }
23213 _ACEOF
23214 if ac_fn_c_try_compile "$LINENO"
23215 then :
23216 ac_cv_c_vararrays=yes
23217 else $as_nop
23218 ac_cv_c_vararrays=no
23219 fi
23220 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23221 fi
23222 rm -rf conftest*
23223
23224 fi
23225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_vararrays" >&5
23226 printf "%s\n" "$ac_cv_c_vararrays" >&6; }
23227 if test "$ac_cv_c_vararrays" = yes; then
23228
23229 printf "%s\n" "#define HAVE_C_VARARRAYS 1" >>confdefs.h
23230
23231 elif test "$ac_cv_c_vararrays" = no; then
23232
23233 printf "%s\n" "#define __STDC_NO_VLA__ 1" >>confdefs.h
23234
23235 fi
23236
23237
23238
23239
23240 if test $ac_cv_func_vasnprintf = no; then
23241
23242
23243
23244
23245
23246
23247
23248
23249
23250
23251 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
23252
23253
23254
23255
23256
23257
23258
23259
23260
23261 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
23262
23263
23264
23265
23266
23267
23268
23269
23270
23271 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
23272
23273
23274
23275
23276
23277
23278
23279
23280
23281 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
23282
23283 if test $ac_cv_func_vasnprintf = yes; then
23284
23285 printf "%s\n" "#define REPLACE_VASNPRINTF 1" >>confdefs.h
23286
23287 fi
23288
23289
23290
23291
23292
23293
23294
23295
23296
23297 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
23298 if test "x$ac_cv_type_ptrdiff_t" = xyes
23299 then :
23300
23301 else $as_nop
23302
23303 printf "%s\n" "#define ptrdiff_t long" >>confdefs.h
23304
23305
23306 fi
23307
23308
23309
23310
23311
23312
23313
23314 fi
23315
23316
23317 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
23318 if test "x$ac_cv_func_vasprintf" = xyes
23319 then :
23320 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
23321
23322 fi
23323
23324 if test $ac_cv_func_vasprintf = no; then
23325
23326
23327
23328
23329
23330
23331
23332
23333
23334 gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
23335
23336
23337
23338
23339
23340
23341
23342
23343
23344 gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
23345
23346
23347 if test $ac_cv_func_vasprintf = yes; then
23348 REPLACE_VASPRINTF=1
23349 else
23350 HAVE_VASPRINTF=0
23351 fi
23352
23353
23354
23355
23356
23357
23358
23359
23360 fi
23361
23362
23363
23364
23365
23366
23367
23368
23369
23370
23371 GL_GNULIB_VASPRINTF=1
23372
23373
23374
23375
23376
23377 printf "%s\n" "#define GNULIB_TEST_VASPRINTF 1" >>confdefs.h
23378
23379
23380
23381
23382
23383
23384 gl_cv_func_vsnprintf_usable=no
23385 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
23386 if test "x$ac_cv_func_vsnprintf" = xyes
23387 then :
23388 printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h
23389
23390 fi
23391
23392 if test $ac_cv_func_vsnprintf = yes; then
23393
23394
23395
23396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
23397 printf %s "checking whether snprintf respects a size of 1... " >&6; }
23398 if test ${gl_cv_func_snprintf_size1+y}
23399 then :
23400 printf %s "(cached) " >&6
23401 else $as_nop
23402
23403 if test "$cross_compiling" = yes
23404 then :
23405 case "$host_os" in
23406 # Guess yes on Android.
23407 linux*-android*) gl_cv_func_snprintf_size1="guessing yes" ;;
23408 # Guess yes on native Windows.
23409 mingw*) gl_cv_func_snprintf_size1="guessing yes" ;;
23410 *) gl_cv_func_snprintf_size1="guessing yes" ;;
23411 esac
23412
23413 else $as_nop
23414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23415 /* end confdefs.h. */
23416
23417 #include <stdio.h>
23418 #if HAVE_SNPRINTF
23419 # define my_snprintf snprintf
23420 #else
23421 # include <stdarg.h>
23422 static int my_snprintf (char *buf, int size, const char *format, ...)
23423 {
23424 va_list args;
23425 int ret;
23426 va_start (args, format);
23427 ret = vsnprintf (buf, size, format, args);
23428 va_end (args);
23429 return ret;
23430 }
23431 #endif
23432 int main()
23433 {
23434 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
23435 my_snprintf (buf, 1, "%d", 12345);
23436 return buf[1] != 'E';
23437 }
23438 _ACEOF
23439 if ac_fn_c_try_run "$LINENO"
23440 then :
23441 gl_cv_func_snprintf_size1=yes
23442 else $as_nop
23443 gl_cv_func_snprintf_size1=no
23444 fi
23445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23446 conftest.$ac_objext conftest.beam conftest.$ac_ext
23447 fi
23448
23449
23450 fi
23451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
23452 printf "%s\n" "$gl_cv_func_snprintf_size1" >&6; }
23453
23454 case "$gl_cv_func_snprintf_size1" in
23455 *yes)
23456
23457 case "$gl_cv_func_snprintf_retval_c99" in
23458 *yes)
23459
23460
23461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
23462 printf %s "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
23463 if test ${gl_cv_func_printf_positions+y}
23464 then :
23465 printf %s "(cached) " >&6
23466 else $as_nop
23467
23468 if test "$cross_compiling" = yes
23469 then :
23470
23471 case "$host_os" in
23472 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
23473 gl_cv_func_printf_positions="guessing no";;
23474 beos*) gl_cv_func_printf_positions="guessing no";;
23475 # Guess yes on Android.
23476 linux*-android*) gl_cv_func_printf_positions="guessing yes";;
23477 # Guess no on native Windows.
23478 mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
23479 *) gl_cv_func_printf_positions="guessing yes";;
23480 esac
23481
23482 else $as_nop
23483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23484 /* end confdefs.h. */
23485
23486 #include <stdio.h>
23487 #include <string.h>
23488 /* The string "%2$d %1$d", with dollar characters protected from the shell's
23489 dollar expansion (possibly an autoconf bug). */
23490 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
23491 static char buf[100];
23492 int main ()
23493 {
23494 sprintf (buf, format, 33, 55);
23495 return (strcmp (buf, "55 33") != 0);
23496 }
23497 _ACEOF
23498 if ac_fn_c_try_run "$LINENO"
23499 then :
23500 gl_cv_func_printf_positions=yes
23501 else $as_nop
23502 gl_cv_func_printf_positions=no
23503 fi
23504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23505 conftest.$ac_objext conftest.beam conftest.$ac_ext
23506 fi
23507
23508
23509 fi
23510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
23511 printf "%s\n" "$gl_cv_func_printf_positions" >&6; }
23512
23513 case "$gl_cv_func_printf_positions" in
23514 *yes)
23515 gl_cv_func_vsnprintf_usable=yes
23516 ;;
23517 esac
23518 ;;
23519 esac
23520 ;;
23521 esac
23522 fi
23523 if test $gl_cv_func_vsnprintf_usable = no; then
23524
23525
23526
23527
23528
23529
23530
23531
23532
23533
23534 gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
23535
23536 if test $ac_cv_func_vsnprintf = yes; then
23537 REPLACE_VSNPRINTF=1
23538 else
23539
23540 if test $ac_cv_have_decl_vsnprintf = yes; then
23541 REPLACE_VSNPRINTF=1
23542 fi
23543 fi
23544 :
23545
23546 fi
23547
23548 if test $ac_cv_have_decl_vsnprintf = no; then
23549 HAVE_DECL_VSNPRINTF=0
23550 fi
23551
23552
23553
23554
23555
23556
23557
23558
23559
23560
23561 GL_GNULIB_VSNPRINTF=1
23562
23563
23564
23565
23566
23567 printf "%s\n" "#define GNULIB_TEST_VSNPRINTF 1" >>confdefs.h
23568
23569
23570
23571
23572
23573
23574
23575
23576
23577
23578
23579
23580
23581
23582
23583 :
23584
23585
23586 printf "%s\n" "#define GNULIB_XALLOC 1" >>confdefs.h
23587
23588
23589
23590
23591 printf "%s\n" "#define GNULIB_XALLOC_DIE 1" >>confdefs.h
23592
23593
23594
23595
23596 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
23597 if test "x$ac_cv_header_stdint_h" = xyes
23598 then :
23599 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
23600
23601 fi
23602
23603
23604
23605
23606 :
23607
23608
23609 :
23610
23611 # End of code from modules
23612
23613
23614
23615
23616
23617
23618
23619
23620
23621
23622
23623 gltests_libdeps=
23624 gltests_ltlibdeps=
23625
23626
23627
23628
23629
23630
23631
23632
23633
23634
23635
23636
23637 gl_source_base='tests'
23638 gl_source_base_prefix=
23639 gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
23640
23641 gl_module_indicator_condition=$gltests_WITNESS
23642
23643
23644
23645
23646
23647
23648
23649
23650
23651
23652
23653
23654 LIBGNU_LIBDEPS="$gl_libdeps"
23655
23656 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
23657
23658
23659
23660 # Checks for structures and compiler characteristics.
23661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23662 printf %s "checking for an ANSI C-conforming const... " >&6; }
23663 if test ${ac_cv_c_const+y}
23664 then :
23665 printf %s "(cached) " >&6
23666 else $as_nop
23667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23668 /* end confdefs.h. */
23669
23670 int
23671 main (void)
23672 {
23673
23674 #ifndef __cplusplus
23675 /* Ultrix mips cc rejects this sort of thing. */
23676 typedef int charset[2];
23677 const charset cs = { 0, 0 };
23678 /* SunOS 4.1.1 cc rejects this. */
23679 char const *const *pcpcc;
23680 char **ppc;
23681 /* NEC SVR4.0.2 mips cc rejects this. */
23682 struct point {int x, y;};
23683 static struct point const zero = {0,0};
23684 /* IBM XL C 1.02.0.0 rejects this.
23685 It does not let you subtract one const X* pointer from another in
23686 an arm of an if-expression whose if-part is not a constant
23687 expression */
23688 const char *g = "string";
23689 pcpcc = &g + (g ? g-g : 0);
23690 /* HPUX 7.0 cc rejects these. */
23691 ++pcpcc;
23692 ppc = (char**) pcpcc;
23693 pcpcc = (char const *const *) ppc;
23694 { /* SCO 3.2v4 cc rejects this sort of thing. */
23695 char tx;
23696 char *t = &tx;
23697 char const *s = 0 ? (char *) 0 : (char const *) 0;
23698
23699 *t++ = 0;
23700 if (s) return 0;
23701 }
23702 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23703 int x[] = {25, 17};
23704 const int *foo = &x[0];
23705 ++foo;
23706 }
23707 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23708 typedef const int *iptr;
23709 iptr p = 0;
23710 ++p;
23711 }
23712 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
23713 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23714 struct s { int j; const int *ap[3]; } bx;
23715 struct s *b = &bx; b->j = 5;
23716 }
23717 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23718 const int foo = 10;
23719 if (!foo) return 0;
23720 }
23721 return !cs[0] && !zero.x;
23722 #endif
23723
23724 ;
23725 return 0;
23726 }
23727 _ACEOF
23728 if ac_fn_c_try_compile "$LINENO"
23729 then :
23730 ac_cv_c_const=yes
23731 else $as_nop
23732 ac_cv_c_const=no
23733 fi
23734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23735 fi
23736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23737 printf "%s\n" "$ac_cv_c_const" >&6; }
23738 if test $ac_cv_c_const = no; then
23739
23740 printf "%s\n" "#define const /**/" >>confdefs.h
23741
23742 fi
23743
23744 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23745 if test "x$ac_cv_type_size_t" = xyes
23746 then :
23747
23748 else $as_nop
23749
23750 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
23751
23752 fi
23753
23754
23755
23756
23757
23758
23759
23760
23761
23762 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
23763 if test -n "$ac_tool_prefix"; then
23764 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23765 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23767 printf %s "checking for $ac_word... " >&6; }
23768 if test ${ac_cv_path_PKG_CONFIG+y}
23769 then :
23770 printf %s "(cached) " >&6
23771 else $as_nop
23772 case $PKG_CONFIG in
23773 [\\/]* | ?:[\\/]*)
23774 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23775 ;;
23776 *)
23777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23778 for as_dir in $PATH
23779 do
23780 IFS=$as_save_IFS
23781 case $as_dir in #(((
23782 '') as_dir=./ ;;
23783 */) ;;
23784 *) as_dir=$as_dir/ ;;
23785 esac
23786 for ac_exec_ext in '' $ac_executable_extensions; do
23787 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23788 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
23789 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23790 break 2
23791 fi
23792 done
23793 done
23794 IFS=$as_save_IFS
23795
23796 ;;
23797 esac
23798 fi
23799 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23800 if test -n "$PKG_CONFIG"; then
23801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23802 printf "%s\n" "$PKG_CONFIG" >&6; }
23803 else
23804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23805 printf "%s\n" "no" >&6; }
23806 fi
23807
23808
23809 fi
23810 if test -z "$ac_cv_path_PKG_CONFIG"; then
23811 ac_pt_PKG_CONFIG=$PKG_CONFIG
23812 # Extract the first word of "pkg-config", so it can be a program name with args.
23813 set dummy pkg-config; ac_word=$2
23814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23815 printf %s "checking for $ac_word... " >&6; }
23816 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
23817 then :
23818 printf %s "(cached) " >&6
23819 else $as_nop
23820 case $ac_pt_PKG_CONFIG in
23821 [\\/]* | ?:[\\/]*)
23822 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
23823 ;;
23824 *)
23825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23826 for as_dir in $PATH
23827 do
23828 IFS=$as_save_IFS
23829 case $as_dir in #(((
23830 '') as_dir=./ ;;
23831 */) ;;
23832 *) as_dir=$as_dir/ ;;
23833 esac
23834 for ac_exec_ext in '' $ac_executable_extensions; do
23835 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23836 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
23837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23838 break 2
23839 fi
23840 done
23841 done
23842 IFS=$as_save_IFS
23843
23844 ;;
23845 esac
23846 fi
23847 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23848 if test -n "$ac_pt_PKG_CONFIG"; then
23849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
23850 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
23851 else
23852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23853 printf "%s\n" "no" >&6; }
23854 fi
23855
23856 if test "x$ac_pt_PKG_CONFIG" = x; then
23857 PKG_CONFIG=""
23858 else
23859 case $cross_compiling:$ac_tool_warned in
23860 yes:)
23861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23862 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23863 ac_tool_warned=yes ;;
23864 esac
23865 PKG_CONFIG=$ac_pt_PKG_CONFIG
23866 fi
23867 else
23868 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23869 fi
23870
23871 fi
23872 if test -n "$PKG_CONFIG"; then
23873 _pkg_min_version=0.9.0
23874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
23875 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
23876 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
23877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23878 printf "%s\n" "yes" >&6; }
23879 else
23880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23881 printf "%s\n" "no" >&6; }
23882 PKG_CONFIG=""
23883 fi
23884 fi
23885
23886 pkg_failed=no
23887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libpipeline" >&5
23888 printf %s "checking for libpipeline... " >&6; }
23889
23890 if test -n "$libpipeline_CFLAGS"; then
23891 pkg_cv_libpipeline_CFLAGS="$libpipeline_CFLAGS"
23892 elif test -n "$PKG_CONFIG"; then
23893 if test -n "$PKG_CONFIG" && \
23894 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipeline\""; } >&5
23895 ($PKG_CONFIG --exists --print-errors "libpipeline") 2>&5
23896 ac_status=$?
23897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23898 test $ac_status = 0; }; then
23899 pkg_cv_libpipeline_CFLAGS=`$PKG_CONFIG --cflags "libpipeline" 2>/dev/null`
23900 test "x$?" != "x0" && pkg_failed=yes
23901 else
23902 pkg_failed=yes
23903 fi
23904 else
23905 pkg_failed=untried
23906 fi
23907 if test -n "$libpipeline_LIBS"; then
23908 pkg_cv_libpipeline_LIBS="$libpipeline_LIBS"
23909 elif test -n "$PKG_CONFIG"; then
23910 if test -n "$PKG_CONFIG" && \
23911 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpipeline\""; } >&5
23912 ($PKG_CONFIG --exists --print-errors "libpipeline") 2>&5
23913 ac_status=$?
23914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23915 test $ac_status = 0; }; then
23916 pkg_cv_libpipeline_LIBS=`$PKG_CONFIG --libs "libpipeline" 2>/dev/null`
23917 test "x$?" != "x0" && pkg_failed=yes
23918 else
23919 pkg_failed=yes
23920 fi
23921 else
23922 pkg_failed=untried
23923 fi
23924
23925
23926
23927 if test $pkg_failed = yes; then
23928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23929 printf "%s\n" "no" >&6; }
23930
23931 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23932 _pkg_short_errors_supported=yes
23933 else
23934 _pkg_short_errors_supported=no
23935 fi
23936 if test $_pkg_short_errors_supported = yes; then
23937 libpipeline_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpipeline" 2>&1`
23938 else
23939 libpipeline_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpipeline" 2>&1`
23940 fi
23941 # Put the nasty error message in config.log where it belongs
23942 echo "$libpipeline_PKG_ERRORS" >&5
23943
23944 as_fn_error $? "Package requirements (libpipeline) were not met:
23945
23946 $libpipeline_PKG_ERRORS
23947
23948 Consider adjusting the PKG_CONFIG_PATH environment variable if you
23949 installed software in a non-standard prefix.
23950
23951 Alternatively, you may set the environment variables libpipeline_CFLAGS
23952 and libpipeline_LIBS to avoid the need to call pkg-config.
23953 See the pkg-config man page for more details." "$LINENO" 5
23954 elif test $pkg_failed = untried; then
23955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23956 printf "%s\n" "no" >&6; }
23957 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23958 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23959 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
23960 is in your PATH or set the PKG_CONFIG environment variable to the full
23961 path to pkg-config.
23962
23963 Alternatively, you may set the environment variables libpipeline_CFLAGS
23964 and libpipeline_LIBS to avoid the need to call pkg-config.
23965 See the pkg-config man page for more details.
23966
23967 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
23968 See \`config.log' for more details" "$LINENO" 5; }
23969 else
23970 libpipeline_CFLAGS=$pkg_cv_libpipeline_CFLAGS
23971 libpipeline_LIBS=$pkg_cv_libpipeline_LIBS
23972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23973 printf "%s\n" "yes" >&6; }
23974
23975 fi
23976
23977 # Check whether --enable-sysvinit was given.
23978 if test ${enable_sysvinit+y}
23979 then :
23980 enableval=$enable_sysvinit;
23981 fi
23982
23983 if test "x$enable_sysvinit" = xyes; then
23984 INSTALL_SYSVINIT_TRUE=
23985 INSTALL_SYSVINIT_FALSE='#'
23986 else
23987 INSTALL_SYSVINIT_TRUE='#'
23988 INSTALL_SYSVINIT_FALSE=
23989 fi
23990
23991
23992 # Check whether --enable-openrc was given.
23993 if test ${enable_openrc+y}
23994 then :
23995 enableval=$enable_openrc;
23996 fi
23997
23998 if test "x$enable_openrc" = xyes; then
23999 INSTALL_OPENRC_TRUE=
24000 INSTALL_OPENRC_FALSE='#'
24001 else
24002 INSTALL_OPENRC_TRUE='#'
24003 INSTALL_OPENRC_FALSE=
24004 fi
24005
24006
24007 if test "x$enable_sysvinit" = xyes && test "x$enable_openrc" = xyes; then
24008 as_fn_error $? "--enable-sysvinit and --enable-openrc are mutually exclusive" "$LINENO" 5
24009 fi
24010
24011 # Check whether --enable-upstart was given.
24012 if test ${enable_upstart+y}
24013 then :
24014 enableval=$enable_upstart;
24015 fi
24016
24017 if test "x$enable_upstart" != xno; then
24018 INSTALL_UPSTART_TRUE=
24019 INSTALL_UPSTART_FALSE='#'
24020 else
24021 INSTALL_UPSTART_TRUE='#'
24022 INSTALL_UPSTART_FALSE=
24023 fi
24024
24025
24026 # Check whether --enable-systemd was given.
24027 if test ${enable_systemd+y}
24028 then :
24029 enableval=$enable_systemd;
24030 fi
24031
24032 if test "x$enable_systemd" != xno; then
24033 INSTALL_SYSTEMD_TRUE=
24034 INSTALL_SYSTEMD_FALSE='#'
24035 else
24036 INSTALL_SYSTEMD_TRUE='#'
24037 INSTALL_SYSTEMD_FALSE=
24038 fi
24039
24040
24041
24042 # Check whether --with-systemdsystemunitdir was given.
24043 if test ${with_systemdsystemunitdir+y}
24044 then :
24045 withval=$with_systemdsystemunitdir;
24046 else $as_nop
24047 with_systemdsystemunitdir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
24048 fi
24049
24050 systemdsystemunitdir=$with_systemdsystemunitdir
24051
24052 if test "x$with_systemdsystemunitdir" != x; then
24053 HAVE_SYSTEMD_TRUE=
24054 HAVE_SYSTEMD_FALSE='#'
24055 else
24056 HAVE_SYSTEMD_TRUE='#'
24057 HAVE_SYSTEMD_FALSE=
24058 fi
24059
24060
24061 # If we're cross-compiling, tests won't work.
24062 if test "x$cross_compiling" = xyes; then
24063 CROSS_COMPILING_TRUE=
24064 CROSS_COMPILING_FALSE='#'
24065 else
24066 CROSS_COMPILING_TRUE='#'
24067 CROSS_COMPILING_FALSE=
24068 fi
24069
24070
24071 admindir='$(localstatedir)/lib/binfmts'
24072
24073 importdir='$(datadir)/binfmts'
24074
24075 procdir='/proc/sys/fs/binfmt_misc'
24076
24077
24078 ac_config_files="$ac_config_files Makefile gl/lib/Makefile doc/Makefile init/Makefile init/openrc/Makefile init/systemd/Makefile init/sysvinit/Makefile init/upstart/Makefile man/Makefile src/Makefile src/tests/Makefile"
24079
24080 cat >confcache <<\_ACEOF
24081 # This file is a shell script that caches the results of configure
24082 # tests run on this system so they can be shared between configure
24083 # scripts and configure runs, see configure's option --config-cache.
24084 # It is not useful on other systems. If it contains results you don't
24085 # want to keep, you may remove or edit it.
24086 #
24087 # config.status only pays attention to the cache file if you give it
24088 # the --recheck option to rerun configure.
24089 #
24090 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24091 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24092 # following values.
24093
24094 _ACEOF
24095
24096 # The following way of writing the cache mishandles newlines in values,
24097 # but we know of no workaround that is simple, portable, and efficient.
24098 # So, we kill variables containing newlines.
24099 # Ultrix sh set writes to stderr and can't be redirected directly,
24100 # and sets the high bit in the cache file unless we assign to the vars.
24101 (
24102 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24103 eval ac_val=\$$ac_var
24104 case $ac_val in #(
24105 *${as_nl}*)
24106 case $ac_var in #(
24107 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24108 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24109 esac
24110 case $ac_var in #(
24111 _ | IFS | as_nl) ;; #(
24112 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24113 *) { eval $ac_var=; unset $ac_var;} ;;
24114 esac ;;
24115 esac
24116 done
24117
24118 (set) 2>&1 |
24119 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24120 *${as_nl}ac_space=\ *)
24121 # `set' does not quote correctly, so add quotes: double-quote
24122 # substitution turns \\\\ into \\, and sed turns \\ into \.
24123 sed -n \
24124 "s/'/'\\\\''/g;
24125 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24126 ;; #(
24127 *)
24128 # `set' quotes correctly as required by POSIX, so do not add quotes.
24129 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24130 ;;
24131 esac |
24132 sort
24133 ) |
24134 sed '
24135 /^ac_cv_env_/b end
24136 t clear
24137 :clear
24138 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
24139 t end
24140 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24141 :end' >>confcache
24142 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24143 if test -w "$cache_file"; then
24144 if test "x$cache_file" != "x/dev/null"; then
24145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24146 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
24147 if test ! -f "$cache_file" || test -h "$cache_file"; then
24148 cat confcache >"$cache_file"
24149 else
24150 case $cache_file in #(
24151 */* | ?:*)
24152 mv -f confcache "$cache_file"$$ &&
24153 mv -f "$cache_file"$$ "$cache_file" ;; #(
24154 *)
24155 mv -f confcache "$cache_file" ;;
24156 esac
24157 fi
24158 fi
24159 else
24160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24161 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
24162 fi
24163 fi
24164 rm -f confcache
24165
24166 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24167 # Let make expand exec_prefix.
24168 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24169
24170 DEFS=-DHAVE_CONFIG_H
24171
24172 ac_libobjs=
24173 ac_ltlibobjs=
24174 U=
24175 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24176 # 1. Remove the extension, and $U if already installed.
24177 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24178 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
24179 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24180 # will be set to the directory where LIBOBJS objects are built.
24181 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24182 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24183 done
24184 LIBOBJS=$ac_libobjs
24185
24186 LTLIBOBJS=$ac_ltlibobjs
24187
24188
24189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
24190 printf %s "checking that generated files are newer than configure... " >&6; }
24191 if test -n "$am_sleep_pid"; then
24192 # Hide warnings about reused PIDs.
24193 wait $am_sleep_pid 2>/dev/null
24194 fi
24195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
24196 printf "%s\n" "done" >&6; }
24197 if test -n "$EXEEXT"; then
24198 am__EXEEXT_TRUE=
24199 am__EXEEXT_FALSE='#'
24200 else
24201 am__EXEEXT_TRUE='#'
24202 am__EXEEXT_FALSE=
24203 fi
24204
24205 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24206 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
24207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24208 fi
24209 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24210 as_fn_error $? "conditional \"AMDEP\" was never defined.
24211 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24212 fi
24213 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24214 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24216 fi
24217 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24218 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24220 fi
24221 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
24222 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
24223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24224 fi
24225
24226
24227 gl_libobjs=
24228 gl_ltlibobjs=
24229 gl_libobjdeps=
24230 if test -n "$gl_LIBOBJS"; then
24231 # Remove the extension.
24232 sed_drop_objext='s/\.o$//;s/\.obj$//'
24233 sed_dirname1='s,//*,/,g'
24234 sed_dirname2='s,\(.\)/$,\1,'
24235 sed_dirname3='s,^[^/]*$,.,'
24236 sed_dirname4='s,\(.\)/[^/]*$,\1,'
24237 sed_basename1='s,.*/,,'
24238 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24239 gl_libobjs="$gl_libobjs $i.$ac_objext"
24240 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
24241 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
24242 i_base=`echo "$i" | sed -e "$sed_basename1"`
24243 gl_libobjdeps="$gl_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Po"
24244 done
24245 fi
24246 gl_LIBOBJS=$gl_libobjs
24247
24248 gl_LTLIBOBJS=$gl_ltlibobjs
24249
24250 gl_LIBOBJDEPS=$gl_libobjdeps
24251
24252
24253
24254 gltests_libobjs=
24255 gltests_ltlibobjs=
24256 gltests_libobjdeps=
24257 if test -n "$gltests_LIBOBJS"; then
24258 # Remove the extension.
24259 sed_drop_objext='s/\.o$//;s/\.obj$//'
24260 sed_dirname1='s,//*,/,g'
24261 sed_dirname2='s,\(.\)/$,\1,'
24262 sed_dirname3='s,^[^/]*$,.,'
24263 sed_dirname4='s,\(.\)/[^/]*$,\1,'
24264 sed_basename1='s,.*/,,'
24265 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
24266 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
24267 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
24268 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
24269 i_base=`echo "$i" | sed -e "$sed_basename1"`
24270 gltests_libobjdeps="$gltests_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Po"
24271 done
24272 fi
24273 gltests_LIBOBJS=$gltests_libobjs
24274
24275 gltests_LTLIBOBJS=$gltests_ltlibobjs
24276
24277 gltests_LIBOBJDEPS=$gltests_libobjdeps
24278
24279
24280 if test -z "${INSTALL_SYSVINIT_TRUE}" && test -z "${INSTALL_SYSVINIT_FALSE}"; then
24281 as_fn_error $? "conditional \"INSTALL_SYSVINIT\" was never defined.
24282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24283 fi
24284 if test -z "${INSTALL_OPENRC_TRUE}" && test -z "${INSTALL_OPENRC_FALSE}"; then
24285 as_fn_error $? "conditional \"INSTALL_OPENRC\" was never defined.
24286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24287 fi
24288 if test -z "${INSTALL_UPSTART_TRUE}" && test -z "${INSTALL_UPSTART_FALSE}"; then
24289 as_fn_error $? "conditional \"INSTALL_UPSTART\" was never defined.
24290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24291 fi
24292 if test -z "${INSTALL_SYSTEMD_TRUE}" && test -z "${INSTALL_SYSTEMD_FALSE}"; then
24293 as_fn_error $? "conditional \"INSTALL_SYSTEMD\" was never defined.
24294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24295 fi
24296 if test -z "${HAVE_SYSTEMD_TRUE}" && test -z "${HAVE_SYSTEMD_FALSE}"; then
24297 as_fn_error $? "conditional \"HAVE_SYSTEMD\" was never defined.
24298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24299 fi
24300 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
24301 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
24302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24303 fi
24304
24305 : "${CONFIG_STATUS=./config.status}"
24306 ac_write_fail=0
24307 ac_clean_files_save=$ac_clean_files
24308 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24310 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
24311 as_write_fail=0
24312 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24313 #! $SHELL
24314 # Generated by $as_me.
24315 # Run this file to recreate the current configuration.
24316 # Compiler output produced by configure, useful for debugging
24317 # configure, is in config.log if it exists.
24318
24319 debug=false
24320 ac_cs_recheck=false
24321 ac_cs_silent=false
24322
24323 SHELL=\${CONFIG_SHELL-$SHELL}
24324 export SHELL
24325 _ASEOF
24326 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24327 ## -------------------- ##
24328 ## M4sh Initialization. ##
24329 ## -------------------- ##
24330
24331 # Be more Bourne compatible
24332 DUALCASE=1; export DUALCASE # for MKS sh
24333 as_nop=:
24334 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
24335 then :
24336 emulate sh
24337 NULLCMD=:
24338 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24339 # is contrary to our usage. Disable this feature.
24340 alias -g '${1+"$@"}'='"$@"'
24341 setopt NO_GLOB_SUBST
24342 else $as_nop
24343 case `(set -o) 2>/dev/null` in #(
24344 *posix*) :
24345 set -o posix ;; #(
24346 *) :
24347 ;;
24348 esac
24349 fi
24350
24351
24352
24353 # Reset variables that may have inherited troublesome values from
24354 # the environment.
24355
24356 # IFS needs to be set, to space, tab, and newline, in precisely that order.
24357 # (If _AS_PATH_WALK were called with IFS unset, it would have the
24358 # side effect of setting IFS to empty, thus disabling word splitting.)
24359 # Quoting is to prevent editors from complaining about space-tab.
24360 as_nl='
24361 '
24362 export as_nl
24363 IFS=" "" $as_nl"
24364
24365 PS1='$ '
24366 PS2='> '
24367 PS4='+ '
24368
24369 # Ensure predictable behavior from utilities with locale-dependent output.
24370 LC_ALL=C
24371 export LC_ALL
24372 LANGUAGE=C
24373 export LANGUAGE
24374
24375 # We cannot yet rely on "unset" to work, but we need these variables
24376 # to be unset--not just set to an empty or harmless value--now, to
24377 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
24378 # also avoids known problems related to "unset" and subshell syntax
24379 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
24380 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
24381 do eval test \${$as_var+y} \
24382 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24383 done
24384
24385 # Ensure that fds 0, 1, and 2 are open.
24386 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
24387 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
24388 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
24389
24390 # The user is always right.
24391 if ${PATH_SEPARATOR+false} :; then
24392 PATH_SEPARATOR=:
24393 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24394 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24395 PATH_SEPARATOR=';'
24396 }
24397 fi
24398
24399
24400 # Find who we are. Look in the path if we contain no directory separator.
24401 as_myself=
24402 case $0 in #((
24403 *[\\/]* ) as_myself=$0 ;;
24404 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24405 for as_dir in $PATH
24406 do
24407 IFS=$as_save_IFS
24408 case $as_dir in #(((
24409 '') as_dir=./ ;;
24410 */) ;;
24411 *) as_dir=$as_dir/ ;;
24412 esac
24413 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
24414 done
24415 IFS=$as_save_IFS
24416
24417 ;;
24418 esac
24419 # We did not find ourselves, most probably we were run as `sh COMMAND'
24420 # in which case we are not to be found in the path.
24421 if test "x$as_myself" = x; then
24422 as_myself=$0
24423 fi
24424 if test ! -f "$as_myself"; then
24425 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24426 exit 1
24427 fi
24428
24429
24430
24431 # as_fn_error STATUS ERROR [LINENO LOG_FD]
24432 # ----------------------------------------
24433 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24434 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24435 # script with STATUS, using 1 if that was 0.
24436 as_fn_error ()
24437 {
24438 as_status=$1; test $as_status -eq 0 && as_status=1
24439 if test "$4"; then
24440 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24441 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
24442 fi
24443 printf "%s\n" "$as_me: error: $2" >&2
24444 as_fn_exit $as_status
24445 } # as_fn_error
24446
24447
24448
24449 # as_fn_set_status STATUS
24450 # -----------------------
24451 # Set $? to STATUS, without forking.
24452 as_fn_set_status ()
24453 {
24454 return $1
24455 } # as_fn_set_status
24456
24457 # as_fn_exit STATUS
24458 # -----------------
24459 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24460 as_fn_exit ()
24461 {
24462 set +e
24463 as_fn_set_status $1
24464 exit $1
24465 } # as_fn_exit
24466
24467 # as_fn_unset VAR
24468 # ---------------
24469 # Portably unset VAR.
24470 as_fn_unset ()
24471 {
24472 { eval $1=; unset $1;}
24473 }
24474 as_unset=as_fn_unset
24475
24476 # as_fn_append VAR VALUE
24477 # ----------------------
24478 # Append the text in VALUE to the end of the definition contained in VAR. Take
24479 # advantage of any shell optimizations that allow amortized linear growth over
24480 # repeated appends, instead of the typical quadratic growth present in naive
24481 # implementations.
24482 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
24483 then :
24484 eval 'as_fn_append ()
24485 {
24486 eval $1+=\$2
24487 }'
24488 else $as_nop
24489 as_fn_append ()
24490 {
24491 eval $1=\$$1\$2
24492 }
24493 fi # as_fn_append
24494
24495 # as_fn_arith ARG...
24496 # ------------------
24497 # Perform arithmetic evaluation on the ARGs, and store the result in the
24498 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24499 # must be portable across $(()) and expr.
24500 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
24501 then :
24502 eval 'as_fn_arith ()
24503 {
24504 as_val=$(( $* ))
24505 }'
24506 else $as_nop
24507 as_fn_arith ()
24508 {
24509 as_val=`expr "$@" || test $? -eq 1`
24510 }
24511 fi # as_fn_arith
24512
24513
24514 if expr a : '\(a\)' >/dev/null 2>&1 &&
24515 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24516 as_expr=expr
24517 else
24518 as_expr=false
24519 fi
24520
24521 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24522 as_basename=basename
24523 else
24524 as_basename=false
24525 fi
24526
24527 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24528 as_dirname=dirname
24529 else
24530 as_dirname=false
24531 fi
24532
24533 as_me=`$as_basename -- "$0" ||
24534 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24535 X"$0" : 'X\(//\)$' \| \
24536 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24537 printf "%s\n" X/"$0" |
24538 sed '/^.*\/\([^/][^/]*\)\/*$/{
24539 s//\1/
24540 q
24541 }
24542 /^X\/\(\/\/\)$/{
24543 s//\1/
24544 q
24545 }
24546 /^X\/\(\/\).*/{
24547 s//\1/
24548 q
24549 }
24550 s/.*/./; q'`
24551
24552 # Avoid depending upon Character Ranges.
24553 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24554 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24555 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24556 as_cr_digits='0123456789'
24557 as_cr_alnum=$as_cr_Letters$as_cr_digits
24558
24559
24560 # Determine whether it's possible to make 'echo' print without a newline.
24561 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
24562 # for compatibility with existing Makefiles.
24563 ECHO_C= ECHO_N= ECHO_T=
24564 case `echo -n x` in #(((((
24565 -n*)
24566 case `echo 'xy\c'` in
24567 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24568 xy) ECHO_C='\c';;
24569 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
24570 ECHO_T=' ';;
24571 esac;;
24572 *)
24573 ECHO_N='-n';;
24574 esac
24575
24576 # For backward compatibility with old third-party macros, we provide
24577 # the shell variables $as_echo and $as_echo_n. New code should use
24578 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
24579 as_echo='printf %s\n'
24580 as_echo_n='printf %s'
24581
24582 rm -f conf$$ conf$$.exe conf$$.file
24583 if test -d conf$$.dir; then
24584 rm -f conf$$.dir/conf$$.file
24585 else
24586 rm -f conf$$.dir
24587 mkdir conf$$.dir 2>/dev/null
24588 fi
24589 if (echo >conf$$.file) 2>/dev/null; then
24590 if ln -s conf$$.file conf$$ 2>/dev/null; then
24591 as_ln_s='ln -s'
24592 # ... but there are two gotchas:
24593 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24594 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24595 # In both cases, we have to default to `cp -pR'.
24596 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24597 as_ln_s='cp -pR'
24598 elif ln conf$$.file conf$$ 2>/dev/null; then
24599 as_ln_s=ln
24600 else
24601 as_ln_s='cp -pR'
24602 fi
24603 else
24604 as_ln_s='cp -pR'
24605 fi
24606 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24607 rmdir conf$$.dir 2>/dev/null
24608
24609
24610 # as_fn_mkdir_p
24611 # -------------
24612 # Create "$as_dir" as a directory, including parents if necessary.
24613 as_fn_mkdir_p ()
24614 {
24615
24616 case $as_dir in #(
24617 -*) as_dir=./$as_dir;;
24618 esac
24619 test -d "$as_dir" || eval $as_mkdir_p || {
24620 as_dirs=
24621 while :; do
24622 case $as_dir in #(
24623 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
24624 *) as_qdir=$as_dir;;
24625 esac
24626 as_dirs="'$as_qdir' $as_dirs"
24627 as_dir=`$as_dirname -- "$as_dir" ||
24628 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24629 X"$as_dir" : 'X\(//\)[^/]' \| \
24630 X"$as_dir" : 'X\(//\)$' \| \
24631 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24632 printf "%s\n" X"$as_dir" |
24633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24634 s//\1/
24635 q
24636 }
24637 /^X\(\/\/\)[^/].*/{
24638 s//\1/
24639 q
24640 }
24641 /^X\(\/\/\)$/{
24642 s//\1/
24643 q
24644 }
24645 /^X\(\/\).*/{
24646 s//\1/
24647 q
24648 }
24649 s/.*/./; q'`
24650 test -d "$as_dir" && break
24651 done
24652 test -z "$as_dirs" || eval "mkdir $as_dirs"
24653 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
24654
24655
24656 } # as_fn_mkdir_p
24657 if mkdir -p . 2>/dev/null; then
24658 as_mkdir_p='mkdir -p "$as_dir"'
24659 else
24660 test -d ./-p && rmdir ./-p
24661 as_mkdir_p=false
24662 fi
24663
24664
24665 # as_fn_executable_p FILE
24666 # -----------------------
24667 # Test if FILE is an executable regular file.
24668 as_fn_executable_p ()
24669 {
24670 test -f "$1" && test -x "$1"
24671 } # as_fn_executable_p
24672 as_test_x='test -x'
24673 as_executable_p=as_fn_executable_p
24674
24675 # Sed expression to map a string onto a valid CPP name.
24676 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24677
24678 # Sed expression to map a string onto a valid variable name.
24679 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24680
24681
24682 exec 6>&1
24683 ## ----------------------------------- ##
24684 ## Main body of $CONFIG_STATUS script. ##
24685 ## ----------------------------------- ##
24686 _ASEOF
24687 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
24688
24689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24690 # Save the log message, to keep $0 and so on meaningful, and to
24691 # report actual input values of CONFIG_FILES etc. instead of their
24692 # values after options handling.
24693 ac_log="
24694 This file was extended by binfmt-support $as_me 2.2.2, which was
24695 generated by GNU Autoconf 2.71. Invocation command line was
24696
24697 CONFIG_FILES = $CONFIG_FILES
24698 CONFIG_HEADERS = $CONFIG_HEADERS
24699 CONFIG_LINKS = $CONFIG_LINKS
24700 CONFIG_COMMANDS = $CONFIG_COMMANDS
24701 $ $0 $@
24702
24703 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24704 "
24705
24706 _ACEOF
24707
24708 case $ac_config_files in *"
24709 "*) set x $ac_config_files; shift; ac_config_files=$*;;
24710 esac
24711
24712 case $ac_config_headers in *"
24713 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
24714 esac
24715
24716
24717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24718 # Files that config.status was made for.
24719 config_files="$ac_config_files"
24720 config_headers="$ac_config_headers"
24721 config_commands="$ac_config_commands"
24722
24723 _ACEOF
24724
24725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24726 ac_cs_usage="\
24727 \`$as_me' instantiates files and other configuration actions
24728 from templates according to the current configuration. Unless the files
24729 and actions are specified as TAGs, all are instantiated by default.
24730
24731 Usage: $0 [OPTION]... [TAG]...
24732
24733 -h, --help print this help, then exit
24734 -V, --version print version number and configuration settings, then exit
24735 --config print configuration, then exit
24736 -q, --quiet, --silent
24737 do not print progress messages
24738 -d, --debug don't remove temporary files
24739 --recheck update $as_me by reconfiguring in the same conditions
24740 --file=FILE[:TEMPLATE]
24741 instantiate the configuration file FILE
24742 --header=FILE[:TEMPLATE]
24743 instantiate the configuration header FILE
24744
24745 Configuration files:
24746 $config_files
24747
24748 Configuration headers:
24749 $config_headers
24750
24751 Configuration commands:
24752 $config_commands
24753
24754 Report bugs to <[email protected]>."
24755
24756 _ACEOF
24757 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
24758 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
24759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24760 ac_cs_config='$ac_cs_config_escaped'
24761 ac_cs_version="\\
24762 binfmt-support config.status 2.2.2
24763 configured by $0, generated by GNU Autoconf 2.71,
24764 with options \\"\$ac_cs_config\\"
24765
24766 Copyright (C) 2021 Free Software Foundation, Inc.
24767 This config.status script is free software; the Free Software Foundation
24768 gives unlimited permission to copy, distribute and modify it."
24769
24770 ac_pwd='$ac_pwd'
24771 srcdir='$srcdir'
24772 INSTALL='$INSTALL'
24773 MKDIR_P='$MKDIR_P'
24774 AWK='$AWK'
24775 test -n "\$AWK" || AWK=awk
24776 _ACEOF
24777
24778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24779 # The default lists apply if the user does not specify any file.
24780 ac_need_defaults=:
24781 while test $# != 0
24782 do
24783 case $1 in
24784 --*=?*)
24785 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24786 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24787 ac_shift=:
24788 ;;
24789 --*=)
24790 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24791 ac_optarg=
24792 ac_shift=:
24793 ;;
24794 *)
24795 ac_option=$1
24796 ac_optarg=$2
24797 ac_shift=shift
24798 ;;
24799 esac
24800
24801 case $ac_option in
24802 # Handling of the options.
24803 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24804 ac_cs_recheck=: ;;
24805 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24806 printf "%s\n" "$ac_cs_version"; exit ;;
24807 --config | --confi | --conf | --con | --co | --c )
24808 printf "%s\n" "$ac_cs_config"; exit ;;
24809 --debug | --debu | --deb | --de | --d | -d )
24810 debug=: ;;
24811 --file | --fil | --fi | --f )
24812 $ac_shift
24813 case $ac_optarg in
24814 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24815 '') as_fn_error $? "missing file argument" ;;
24816 esac
24817 as_fn_append CONFIG_FILES " '$ac_optarg'"
24818 ac_need_defaults=false;;
24819 --header | --heade | --head | --hea )
24820 $ac_shift
24821 case $ac_optarg in
24822 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24823 esac
24824 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
24825 ac_need_defaults=false;;
24826 --he | --h)
24827 # Conflict between --help and --header
24828 as_fn_error $? "ambiguous option: \`$1'
24829 Try \`$0 --help' for more information.";;
24830 --help | --hel | -h )
24831 printf "%s\n" "$ac_cs_usage"; exit ;;
24832 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24833 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24834 ac_cs_silent=: ;;
24835
24836 # This is an error.
24837 -*) as_fn_error $? "unrecognized option: \`$1'
24838 Try \`$0 --help' for more information." ;;
24839
24840 *) as_fn_append ac_config_targets " $1"
24841 ac_need_defaults=false ;;
24842
24843 esac
24844 shift
24845 done
24846
24847 ac_configure_extra_args=
24848
24849 if $ac_cs_silent; then
24850 exec 6>/dev/null
24851 ac_configure_extra_args="$ac_configure_extra_args --silent"
24852 fi
24853
24854 _ACEOF
24855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24856 if \$ac_cs_recheck; then
24857 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24858 shift
24859 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
24860 CONFIG_SHELL='$SHELL'
24861 export CONFIG_SHELL
24862 exec "\$@"
24863 fi
24864
24865 _ACEOF
24866 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24867 exec 5>>config.log
24868 {
24869 echo
24870 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24871 ## Running $as_me. ##
24872 _ASBOX
24873 printf "%s\n" "$ac_log"
24874 } >&5
24875
24876 _ACEOF
24877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24878 #
24879 # INIT-COMMANDS
24880 #
24881 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
24882
24883 _ACEOF
24884
24885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24886
24887 # Handling of arguments.
24888 for ac_config_target in $ac_config_targets
24889 do
24890 case $ac_config_target in
24891 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24892 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24893 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24894 "gl/lib/Makefile") CONFIG_FILES="$CONFIG_FILES gl/lib/Makefile" ;;
24895 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24896 "init/Makefile") CONFIG_FILES="$CONFIG_FILES init/Makefile" ;;
24897 "init/openrc/Makefile") CONFIG_FILES="$CONFIG_FILES init/openrc/Makefile" ;;
24898 "init/systemd/Makefile") CONFIG_FILES="$CONFIG_FILES init/systemd/Makefile" ;;
24899 "init/sysvinit/Makefile") CONFIG_FILES="$CONFIG_FILES init/sysvinit/Makefile" ;;
24900 "init/upstart/Makefile") CONFIG_FILES="$CONFIG_FILES init/upstart/Makefile" ;;
24901 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24902 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24903 "src/tests/Makefile") CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;;
24904
24905 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24906 esac
24907 done
24908
24909
24910 # If the user did not use the arguments to specify the items to instantiate,
24911 # then the envvar interface is used. Set only those that are not.
24912 # We use the long form for the default assignment because of an extremely
24913 # bizarre bug on SunOS 4.1.3.
24914 if $ac_need_defaults; then
24915 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
24916 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
24917 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
24918 fi
24919
24920 # Have a temporary directory for convenience. Make it in the build tree
24921 # simply because there is no reason against having it here, and in addition,
24922 # creating and moving files from /tmp can sometimes cause problems.
24923 # Hook for its removal unless debugging.
24924 # Note that there is a small window in which the directory will not be cleaned:
24925 # after its creation but before its name has been assigned to `$tmp'.
24926 $debug ||
24927 {
24928 tmp= ac_tmp=
24929 trap 'exit_status=$?
24930 : "${ac_tmp:=$tmp}"
24931 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24932 ' 0
24933 trap 'as_fn_exit 1' 1 2 13 15
24934 }
24935 # Create a (secure) tmp directory for tmp files.
24936
24937 {
24938 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24939 test -d "$tmp"
24940 } ||
24941 {
24942 tmp=./conf$$-$RANDOM
24943 (umask 077 && mkdir "$tmp")
24944 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24945 ac_tmp=$tmp
24946
24947 # Set up the scripts for CONFIG_FILES section.
24948 # No need to generate them if there are no CONFIG_FILES.
24949 # This happens for instance with `./config.status config.h'.
24950 if test -n "$CONFIG_FILES"; then
24951
24952
24953 ac_cr=`echo X | tr X '\015'`
24954 # On cygwin, bash can eat \r inside `` if the user requested igncr.
24955 # But we know of no other shell where ac_cr would be empty at this
24956 # point, so we can use a bashism as a fallback.
24957 if test "x$ac_cr" = x; then
24958 eval ac_cr=\$\'\\r\'
24959 fi
24960 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24961 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24962 ac_cs_awk_cr='\\r'
24963 else
24964 ac_cs_awk_cr=$ac_cr
24965 fi
24966
24967 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24968 _ACEOF
24969
24970
24971 {
24972 echo "cat >conf$$subs.awk <<_ACEOF" &&
24973 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24974 echo "_ACEOF"
24975 } >conf$$subs.sh ||
24976 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24977 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24978 ac_delim='%!_!# '
24979 for ac_last_try in false false false false false :; do
24980 . ./conf$$subs.sh ||
24981 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24982
24983 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24984 if test $ac_delim_n = $ac_delim_num; then
24985 break
24986 elif $ac_last_try; then
24987 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24988 else
24989 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24990 fi
24991 done
24992 rm -f conf$$subs.sh
24993
24994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24995 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24996 _ACEOF
24997 sed -n '
24998 h
24999 s/^/S["/; s/!.*/"]=/
25000 p
25001 g
25002 s/^[^!]*!//
25003 :repl
25004 t repl
25005 s/'"$ac_delim"'$//
25006 t delim
25007 :nl
25008 h
25009 s/\(.\{148\}\)..*/\1/
25010 t more1
25011 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25012 p
25013 n
25014 b repl
25015 :more1
25016 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25017 p
25018 g
25019 s/.\{148\}//
25020 t nl
25021 :delim
25022 h
25023 s/\(.\{148\}\)..*/\1/
25024 t more2
25025 s/["\\]/\\&/g; s/^/"/; s/$/"/
25026 p
25027 b
25028 :more2
25029 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25030 p
25031 g
25032 s/.\{148\}//
25033 t delim
25034 ' <conf$$subs.awk | sed '
25035 /^[^""]/{
25036 N
25037 s/\n//
25038 }
25039 ' >>$CONFIG_STATUS || ac_write_fail=1
25040 rm -f conf$$subs.awk
25041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25042 _ACAWK
25043 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25044 for (key in S) S_is_set[key] = 1
25045 FS = ""
25046
25047 }
25048 {
25049 line = $ 0
25050 nfields = split(line, field, "@")
25051 substed = 0
25052 len = length(field[1])
25053 for (i = 2; i < nfields; i++) {
25054 key = field[i]
25055 keylen = length(key)
25056 if (S_is_set[key]) {
25057 value = S[key]
25058 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25059 len += length(value) + length(field[++i])
25060 substed = 1
25061 } else
25062 len += 1 + keylen
25063 }
25064
25065 print line
25066 }
25067
25068 _ACAWK
25069 _ACEOF
25070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25071 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25072 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25073 else
25074 cat
25075 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
25076 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
25077 _ACEOF
25078
25079 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25080 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
25081 # trailing colons and then remove the whole line if VPATH becomes empty
25082 # (actually we leave an empty line to preserve line numbers).
25083 if test "x$srcdir" = x.; then
25084 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
25085 h
25086 s///
25087 s/^/:/
25088 s/[ ]*$/:/
25089 s/:\$(srcdir):/:/g
25090 s/:\${srcdir}:/:/g
25091 s/:@srcdir@:/:/g
25092 s/^:*//
25093 s/:*$//
25094 x
25095 s/\(=[ ]*\).*/\1/
25096 G
25097 s/\n//
25098 s/^[^=]*=[ ]*$//
25099 }'
25100 fi
25101
25102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25103 fi # test -n "$CONFIG_FILES"
25104
25105 # Set up the scripts for CONFIG_HEADERS section.
25106 # No need to generate them if there are no CONFIG_HEADERS.
25107 # This happens for instance with `./config.status Makefile'.
25108 if test -n "$CONFIG_HEADERS"; then
25109 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
25110 BEGIN {
25111 _ACEOF
25112
25113 # Transform confdefs.h into an awk script `defines.awk', embedded as
25114 # here-document in config.status, that substitutes the proper values into
25115 # config.h.in to produce config.h.
25116
25117 # Create a delimiter string that does not exist in confdefs.h, to ease
25118 # handling of long lines.
25119 ac_delim='%!_!# '
25120 for ac_last_try in false false :; do
25121 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
25122 if test -z "$ac_tt"; then
25123 break
25124 elif $ac_last_try; then
25125 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
25126 else
25127 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25128 fi
25129 done
25130
25131 # For the awk script, D is an array of macro values keyed by name,
25132 # likewise P contains macro parameters if any. Preserve backslash
25133 # newline sequences.
25134
25135 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25136 sed -n '
25137 s/.\{148\}/&'"$ac_delim"'/g
25138 t rset
25139 :rset
25140 s/^[ ]*#[ ]*define[ ][ ]*/ /
25141 t def
25142 d
25143 :def
25144 s/\\$//
25145 t bsnl
25146 s/["\\]/\\&/g
25147 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25148 D["\1"]=" \3"/p
25149 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25150 d
25151 :bsnl
25152 s/["\\]/\\&/g
25153 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25154 D["\1"]=" \3\\\\\\n"\\/p
25155 t cont
25156 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25157 t cont
25158 d
25159 :cont
25160 n
25161 s/.\{148\}/&'"$ac_delim"'/g
25162 t clear
25163 :clear
25164 s/\\$//
25165 t bsnlc
25166 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25167 d
25168 :bsnlc
25169 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25170 b cont
25171 ' <confdefs.h | sed '
25172 s/'"$ac_delim"'/"\\\
25173 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25174
25175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25176 for (key in D) D_is_set[key] = 1
25177 FS = ""
25178 }
25179 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25180 line = \$ 0
25181 split(line, arg, " ")
25182 if (arg[1] == "#") {
25183 defundef = arg[2]
25184 mac1 = arg[3]
25185 } else {
25186 defundef = substr(arg[1], 2)
25187 mac1 = arg[2]
25188 }
25189 split(mac1, mac2, "(") #)
25190 macro = mac2[1]
25191 prefix = substr(line, 1, index(line, defundef) - 1)
25192 if (D_is_set[macro]) {
25193 # Preserve the white space surrounding the "#".
25194 print prefix "define", macro P[macro] D[macro]
25195 next
25196 } else {
25197 # Replace #undef with comments. This is necessary, for example,
25198 # in the case of _POSIX_SOURCE, which is predefined and required
25199 # on some systems where configure will not decide to define it.
25200 if (defundef == "undef") {
25201 print "/*", prefix defundef, macro, "*/"
25202 next
25203 }
25204 }
25205 }
25206 { print }
25207 _ACAWK
25208 _ACEOF
25209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25210 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
25211 fi # test -n "$CONFIG_HEADERS"
25212
25213
25214 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25215 shift
25216 for ac_tag
25217 do
25218 case $ac_tag in
25219 :[FHLC]) ac_mode=$ac_tag; continue;;
25220 esac
25221 case $ac_mode$ac_tag in
25222 :[FHL]*:*);;
25223 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
25224 :[FH]-) ac_tag=-:-;;
25225 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25226 esac
25227 ac_save_IFS=$IFS
25228 IFS=:
25229 set x $ac_tag
25230 IFS=$ac_save_IFS
25231 shift
25232 ac_file=$1
25233 shift
25234
25235 case $ac_mode in
25236 :L) ac_source=$1;;
25237 :[FH])
25238 ac_file_inputs=
25239 for ac_f
25240 do
25241 case $ac_f in
25242 -) ac_f="$ac_tmp/stdin";;
25243 *) # Look for the file first in the build tree, then in the source tree
25244 # (if the path is not absolute). The absolute path cannot be DOS-style,
25245 # because $ac_f cannot contain `:'.
25246 test -f "$ac_f" ||
25247 case $ac_f in
25248 [\\/$]*) false;;
25249 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25250 esac ||
25251 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25252 esac
25253 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25254 as_fn_append ac_file_inputs " '$ac_f'"
25255 done
25256
25257 # Let's still pretend it is `configure' which instantiates (i.e., don't
25258 # use $as_me), people would be surprised to read:
25259 # /* config.h. Generated by config.status. */
25260 configure_input='Generated from '`
25261 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25262 `' by configure.'
25263 if test x"$ac_file" != x-; then
25264 configure_input="$ac_file. $configure_input"
25265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25266 printf "%s\n" "$as_me: creating $ac_file" >&6;}
25267 fi
25268 # Neutralize special characters interpreted by sed in replacement strings.
25269 case $configure_input in #(
25270 *\&* | *\|* | *\\* )
25271 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
25272 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25273 *) ac_sed_conf_input=$configure_input;;
25274 esac
25275
25276 case $ac_tag in
25277 *:-:* | *:-) cat >"$ac_tmp/stdin" \
25278 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
25279 esac
25280 ;;
25281 esac
25282
25283 ac_dir=`$as_dirname -- "$ac_file" ||
25284 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25285 X"$ac_file" : 'X\(//\)[^/]' \| \
25286 X"$ac_file" : 'X\(//\)$' \| \
25287 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25288 printf "%s\n" X"$ac_file" |
25289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25290 s//\1/
25291 q
25292 }
25293 /^X\(\/\/\)[^/].*/{
25294 s//\1/
25295 q
25296 }
25297 /^X\(\/\/\)$/{
25298 s//\1/
25299 q
25300 }
25301 /^X\(\/\).*/{
25302 s//\1/
25303 q
25304 }
25305 s/.*/./; q'`
25306 as_dir="$ac_dir"; as_fn_mkdir_p
25307 ac_builddir=.
25308
25309 case "$ac_dir" in
25310 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25311 *)
25312 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
25313 # A ".." for each directory in $ac_dir_suffix.
25314 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25315 case $ac_top_builddir_sub in
25316 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25317 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25318 esac ;;
25319 esac
25320 ac_abs_top_builddir=$ac_pwd
25321 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25322 # for backward compatibility:
25323 ac_top_builddir=$ac_top_build_prefix
25324
25325 case $srcdir in
25326 .) # We are building in place.
25327 ac_srcdir=.
25328 ac_top_srcdir=$ac_top_builddir_sub
25329 ac_abs_top_srcdir=$ac_pwd ;;
25330 [\\/]* | ?:[\\/]* ) # Absolute name.
25331 ac_srcdir=$srcdir$ac_dir_suffix;
25332 ac_top_srcdir=$srcdir
25333 ac_abs_top_srcdir=$srcdir ;;
25334 *) # Relative name.
25335 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25336 ac_top_srcdir=$ac_top_build_prefix$srcdir
25337 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25338 esac
25339 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25340
25341
25342 case $ac_mode in
25343 :F)
25344 #
25345 # CONFIG_FILE
25346 #
25347
25348 case $INSTALL in
25349 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25350 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25351 esac
25352 ac_MKDIR_P=$MKDIR_P
25353 case $MKDIR_P in
25354 [\\/$]* | ?:[\\/]* ) ;;
25355 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25356 esac
25357 _ACEOF
25358
25359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25360 # If the template does not know about datarootdir, expand it.
25361 # FIXME: This hack should be removed a few years after 2.60.
25362 ac_datarootdir_hack=; ac_datarootdir_seen=
25363 ac_sed_dataroot='
25364 /datarootdir/ {
25365 p
25366 q
25367 }
25368 /@datadir@/p
25369 /@docdir@/p
25370 /@infodir@/p
25371 /@localedir@/p
25372 /@mandir@/p'
25373 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25374 *datarootdir*) ac_datarootdir_seen=yes;;
25375 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25377 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25378 _ACEOF
25379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25380 ac_datarootdir_hack='
25381 s&@datadir@&$datadir&g
25382 s&@docdir@&$docdir&g
25383 s&@infodir@&$infodir&g
25384 s&@localedir@&$localedir&g
25385 s&@mandir@&$mandir&g
25386 s&\\\${datarootdir}&$datarootdir&g' ;;
25387 esac
25388 _ACEOF
25389
25390 # Neutralize VPATH when `$srcdir' = `.'.
25391 # Shell code in configure.ac might set extrasub.
25392 # FIXME: do we really want to maintain this feature?
25393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25394 ac_sed_extra="$ac_vpsub
25395 $extrasub
25396 _ACEOF
25397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25398 :t
25399 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25400 s|@configure_input@|$ac_sed_conf_input|;t t
25401 s&@top_builddir@&$ac_top_builddir_sub&;t t
25402 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25403 s&@srcdir@&$ac_srcdir&;t t
25404 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25405 s&@top_srcdir@&$ac_top_srcdir&;t t
25406 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25407 s&@builddir@&$ac_builddir&;t t
25408 s&@abs_builddir@&$ac_abs_builddir&;t t
25409 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25410 s&@INSTALL@&$ac_INSTALL&;t t
25411 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25412 $ac_datarootdir_hack
25413 "
25414 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
25415 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25416
25417 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25418 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
25419 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
25420 "$ac_tmp/out"`; test -z "$ac_out"; } &&
25421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25422 which seems to be undefined. Please make sure it is defined" >&5
25423 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25424 which seems to be undefined. Please make sure it is defined" >&2;}
25425
25426 rm -f "$ac_tmp/stdin"
25427 case $ac_file in
25428 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
25429 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
25430 esac \
25431 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25432 ;;
25433 :H)
25434 #
25435 # CONFIG_HEADER
25436 #
25437 if test x"$ac_file" != x-; then
25438 {
25439 printf "%s\n" "/* $configure_input */" >&1 \
25440 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
25441 } >"$ac_tmp/config.h" \
25442 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25443 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
25444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
25445 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
25446 else
25447 rm -f "$ac_file"
25448 mv "$ac_tmp/config.h" "$ac_file" \
25449 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25450 fi
25451 else
25452 printf "%s\n" "/* $configure_input */" >&1 \
25453 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
25454 || as_fn_error $? "could not create -" "$LINENO" 5
25455 fi
25456 # Compute "$ac_file"'s index in $config_headers.
25457 _am_arg="$ac_file"
25458 _am_stamp_count=1
25459 for _am_header in $config_headers :; do
25460 case $_am_header in
25461 $_am_arg | $_am_arg:* )
25462 break ;;
25463 * )
25464 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25465 esac
25466 done
25467 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25468 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25469 X"$_am_arg" : 'X\(//\)[^/]' \| \
25470 X"$_am_arg" : 'X\(//\)$' \| \
25471 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25472 printf "%s\n" X"$_am_arg" |
25473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25474 s//\1/
25475 q
25476 }
25477 /^X\(\/\/\)[^/].*/{
25478 s//\1/
25479 q
25480 }
25481 /^X\(\/\/\)$/{
25482 s//\1/
25483 q
25484 }
25485 /^X\(\/\).*/{
25486 s//\1/
25487 q
25488 }
25489 s/.*/./; q'`/stamp-h$_am_stamp_count
25490 ;;
25491
25492 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
25493 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
25494 ;;
25495 esac
25496
25497
25498 case $ac_file$ac_mode in
25499 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
25500 # Older Autoconf quotes --file arguments for eval, but not when files
25501 # are listed without --file. Let's play safe and only enable the eval
25502 # if we detect the quoting.
25503 # TODO: see whether this extra hack can be removed once we start
25504 # requiring Autoconf 2.70 or later.
25505 case $CONFIG_FILES in #(
25506 *\'*) :
25507 eval set x "$CONFIG_FILES" ;; #(
25508 *) :
25509 set x $CONFIG_FILES ;; #(
25510 *) :
25511 ;;
25512 esac
25513 shift
25514 # Used to flag and report bootstrapping failures.
25515 am_rc=0
25516 for am_mf
25517 do
25518 # Strip MF so we end up with the name of the file.
25519 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
25520 # Check whether this is an Automake generated Makefile which includes
25521 # dependency-tracking related rules and includes.
25522 # Grep'ing the whole file directly is not great: AIX grep has a line
25523 # limit of 2048, but all sed's we know have understand at least 4000.
25524 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
25525 || continue
25526 am_dirpart=`$as_dirname -- "$am_mf" ||
25527 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25528 X"$am_mf" : 'X\(//\)[^/]' \| \
25529 X"$am_mf" : 'X\(//\)$' \| \
25530 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
25531 printf "%s\n" X"$am_mf" |
25532 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25533 s//\1/
25534 q
25535 }
25536 /^X\(\/\/\)[^/].*/{
25537 s//\1/
25538 q
25539 }
25540 /^X\(\/\/\)$/{
25541 s//\1/
25542 q
25543 }
25544 /^X\(\/\).*/{
25545 s//\1/
25546 q
25547 }
25548 s/.*/./; q'`
25549 am_filepart=`$as_basename -- "$am_mf" ||
25550 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
25551 X"$am_mf" : 'X\(//\)$' \| \
25552 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
25553 printf "%s\n" X/"$am_mf" |
25554 sed '/^.*\/\([^/][^/]*\)\/*$/{
25555 s//\1/
25556 q
25557 }
25558 /^X\/\(\/\/\)$/{
25559 s//\1/
25560 q
25561 }
25562 /^X\/\(\/\).*/{
25563 s//\1/
25564 q
25565 }
25566 s/.*/./; q'`
25567 { echo "$as_me:$LINENO: cd "$am_dirpart" \
25568 && sed -e '/# am--include-marker/d' "$am_filepart" \
25569 | $MAKE -f - am--depfiles" >&5
25570 (cd "$am_dirpart" \
25571 && sed -e '/# am--include-marker/d' "$am_filepart" \
25572 | $MAKE -f - am--depfiles) >&5 2>&5
25573 ac_status=$?
25574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25575 (exit $ac_status); } || am_rc=$?
25576 done
25577 if test $am_rc -ne 0; then
25578 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25579 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
25580 as_fn_error $? "Something went wrong bootstrapping makefile fragments
25581 for automatic dependency tracking. If GNU make was not used, consider
25582 re-running the configure script with MAKE=\"gmake\" (or whatever is
25583 necessary). You can also try re-running configure with the
25584 '--disable-dependency-tracking' option to at least be able to build
25585 the package (albeit without support for automatic dependency tracking).
25586 See \`config.log' for more details" "$LINENO" 5; }
25587 fi
25588 { am_dirpart=; unset am_dirpart;}
25589 { am_filepart=; unset am_filepart;}
25590 { am_mf=; unset am_mf;}
25591 { am_rc=; unset am_rc;}
25592 rm -f conftest-deps.mk
25593 }
25594 ;;
25595
25596 esac
25597 done # for ac_tag
25598
25599
25600 as_fn_exit 0
25601 _ACEOF
25602 ac_clean_files=$ac_clean_files_save
25603
25604 test $ac_write_fail = 0 ||
25605 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25606
25607
25608 # configure is writing to config.log, and then calls config.status.
25609 # config.status does its own redirection, appending to config.log.
25610 # Unfortunately, on DOS this fails, as config.log is still kept open
25611 # by configure, so config.status won't be able to write to it; its
25612 # output is simply discarded. So we exec the FD to /dev/null,
25613 # effectively closing config.log, so it can be properly (re)opened and
25614 # appended to by config.status. When coming back to configure, we
25615 # need to make the FD available again.
25616 if test "$no_create" != yes; then
25617 ac_cs_success=:
25618 ac_config_status_args=
25619 test "$silent" = yes &&
25620 ac_config_status_args="$ac_config_status_args --quiet"
25621 exec 5>/dev/null
25622 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25623 exec 5>>config.log
25624 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25625 # would make configure fail if this is the last instruction.
25626 $ac_cs_success || as_fn_exit 1
25627 fi
25628 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25630 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
25631 fi
25632
25633