Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for Complexity 1.13.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 ## '+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; 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 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell [email protected] and [email protected]
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302 return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381 else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398 else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512 *)
513 ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537 else
538 as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
562
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568 #
569 # Initializations.
570 #
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
579
580 # Identity of this package.
581 PACKAGE_NAME='Complexity'
582 PACKAGE_TARNAME='complexity'
583 PACKAGE_VERSION='1.13'
584 PACKAGE_STRING='Complexity 1.13'
585 PACKAGE_BUGREPORT='[email protected]'
586 PACKAGE_URL=''
587
588 ac_unique_file="src/complexity.c"
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 ac_func_list=
626 ac_header_list=
627 ac_subst_vars='gltests_LTLIBOBJS
628 gltests_LIBOBJS
629 gl_LTLIBOBJS
630 gl_LIBOBJS
631 am__EXEEXT_FALSE
632 am__EXEEXT_TRUE
633 LTLIBOBJS
634 LIBOBJS
635 AG_MF_FALSE
636 AG_MF_TRUE
637 ao_LIBS
638 ao_CFLAGS
639 RANLIB
640 ARFLAGS
641 AR
642 LIBGNU_LTLIBDEPS
643 LIBGNU_LIBDEPS
644 gltests_WITNESS
645 HAVE_CRTDEFS_H
646 HAVE_WINT_T
647 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
648 NEXT_WCHAR_H
649 REPLACE_WCSTOK
650 REPLACE_WCSFTIME
651 REPLACE_WCSWIDTH
652 REPLACE_WCWIDTH
653 REPLACE_WCSNRTOMBS
654 REPLACE_WCSRTOMBS
655 REPLACE_WCRTOMB
656 REPLACE_MBSNRTOWCS
657 REPLACE_MBSRTOWCS
658 REPLACE_MBRLEN
659 REPLACE_MBRTOWC
660 REPLACE_MBSINIT
661 REPLACE_WCTOB
662 REPLACE_BTOWC
663 REPLACE_MBSTATE_T
664 HAVE_DECL_WCWIDTH
665 HAVE_DECL_WCTOB
666 HAVE_WCSFTIME
667 HAVE_WCSWIDTH
668 HAVE_WCSTOK
669 HAVE_WCSSTR
670 HAVE_WCSPBRK
671 HAVE_WCSSPN
672 HAVE_WCSCSPN
673 HAVE_WCSRCHR
674 HAVE_WCSCHR
675 HAVE_WCSDUP
676 HAVE_WCSXFRM
677 HAVE_WCSCOLL
678 HAVE_WCSNCASECMP
679 HAVE_WCSCASECMP
680 HAVE_WCSNCMP
681 HAVE_WCSCMP
682 HAVE_WCSNCAT
683 HAVE_WCSCAT
684 HAVE_WCPNCPY
685 HAVE_WCSNCPY
686 HAVE_WCPCPY
687 HAVE_WCSCPY
688 HAVE_WCSNLEN
689 HAVE_WCSLEN
690 HAVE_WMEMSET
691 HAVE_WMEMPCPY
692 HAVE_WMEMMOVE
693 HAVE_WMEMCPY
694 HAVE_WMEMCMP
695 HAVE_WMEMCHR
696 HAVE_WCSNRTOMBS
697 HAVE_WCSRTOMBS
698 HAVE_WCRTOMB
699 HAVE_MBSNRTOWCS
700 HAVE_MBSRTOWCS
701 HAVE_MBRLEN
702 HAVE_MBRTOWC
703 HAVE_MBSINIT
704 HAVE_BTOWC
705 GNULIB_WCSFTIME
706 GNULIB_WCSWIDTH
707 GNULIB_WCSTOK
708 GNULIB_WCSSTR
709 GNULIB_WCSPBRK
710 GNULIB_WCSSPN
711 GNULIB_WCSCSPN
712 GNULIB_WCSRCHR
713 GNULIB_WCSCHR
714 GNULIB_WCSDUP
715 GNULIB_WCSXFRM
716 GNULIB_WCSCOLL
717 GNULIB_WCSNCASECMP
718 GNULIB_WCSCASECMP
719 GNULIB_WCSNCMP
720 GNULIB_WCSCMP
721 GNULIB_WCSNCAT
722 GNULIB_WCSCAT
723 GNULIB_WCPNCPY
724 GNULIB_WCSNCPY
725 GNULIB_WCPCPY
726 GNULIB_WCSCPY
727 GNULIB_WCSNLEN
728 GNULIB_WCSLEN
729 GNULIB_WMEMSET
730 GNULIB_WMEMPCPY
731 GNULIB_WMEMMOVE
732 GNULIB_WMEMCPY
733 GNULIB_WMEMCMP
734 GNULIB_WMEMCHR
735 GNULIB_WCWIDTH
736 GNULIB_WCSNRTOMBS
737 GNULIB_WCSRTOMBS
738 GNULIB_WCRTOMB
739 GNULIB_MBSNRTOWCS
740 GNULIB_MBSRTOWCS
741 GNULIB_MBRLEN
742 GNULIB_MBRTOWC
743 GNULIB_MBSINIT
744 GNULIB_WCTOB
745 GNULIB_BTOWC
746 HAVE_FEATURES_H
747 HAVE_UNISTD_H
748 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
749 NEXT_UNISTD_H
750 WINDOWS_STAT_INODES
751 WINDOWS_64_BIT_OFF_T
752 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
753 NEXT_SYS_TYPES_H
754 NEXT_AS_FIRST_DIRECTIVE_STRING_H
755 NEXT_STRING_H
756 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
757 NEXT_STDLIB_H
758 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
759 NEXT_STDIO_H
760 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
761 NEXT_STDDEF_H
762 GL_GENERATE_STDDEF_H_FALSE
763 GL_GENERATE_STDDEF_H_TRUE
764 STDDEF_H
765 HAVE_WCHAR_T
766 HAVE_MAX_ALIGN_T
767 REPLACE_NULL
768 HAVE__BOOL
769 GL_GENERATE_STDBOOL_H_FALSE
770 GL_GENERATE_STDBOOL_H_TRUE
771 STDBOOL_H
772 REPLACE_VSPRINTF
773 REPLACE_VSNPRINTF
774 REPLACE_VPRINTF
775 REPLACE_VFPRINTF
776 REPLACE_VDPRINTF
777 REPLACE_VASPRINTF
778 REPLACE_TMPFILE
779 REPLACE_STDIO_WRITE_FUNCS
780 REPLACE_STDIO_READ_FUNCS
781 REPLACE_SPRINTF
782 REPLACE_SNPRINTF
783 REPLACE_RENAMEAT
784 REPLACE_RENAME
785 REPLACE_REMOVE
786 REPLACE_PRINTF
787 REPLACE_POPEN
788 REPLACE_PERROR
789 REPLACE_OBSTACK_PRINTF
790 REPLACE_GETLINE
791 REPLACE_GETDELIM
792 REPLACE_FTELLO
793 REPLACE_FTELL
794 REPLACE_FSEEKO
795 REPLACE_FSEEK
796 REPLACE_FREOPEN
797 REPLACE_FPURGE
798 REPLACE_FPRINTF
799 REPLACE_FOPEN
800 REPLACE_FFLUSH
801 REPLACE_FDOPEN
802 REPLACE_FCLOSE
803 REPLACE_DPRINTF
804 HAVE_VDPRINTF
805 HAVE_VASPRINTF
806 HAVE_RENAMEAT
807 HAVE_POPEN
808 HAVE_PCLOSE
809 HAVE_FTELLO
810 HAVE_FSEEKO
811 HAVE_DPRINTF
812 HAVE_DECL_VSNPRINTF
813 HAVE_DECL_SNPRINTF
814 HAVE_DECL_OBSTACK_PRINTF
815 HAVE_DECL_GETLINE
816 HAVE_DECL_GETDELIM
817 HAVE_DECL_FTELLO
818 HAVE_DECL_FSEEKO
819 HAVE_DECL_FPURGE
820 GNULIB_VSPRINTF_POSIX
821 GNULIB_VSNPRINTF
822 GNULIB_VPRINTF_POSIX
823 GNULIB_VPRINTF
824 GNULIB_VFPRINTF_POSIX
825 GNULIB_VFPRINTF
826 GNULIB_VDPRINTF
827 GNULIB_VSCANF
828 GNULIB_VFSCANF
829 GNULIB_VASPRINTF
830 GNULIB_TMPFILE
831 GNULIB_STDIO_H_SIGPIPE
832 GNULIB_STDIO_H_NONBLOCKING
833 GNULIB_SPRINTF_POSIX
834 GNULIB_SNPRINTF
835 GNULIB_SCANF
836 GNULIB_RENAMEAT
837 GNULIB_RENAME
838 GNULIB_REMOVE
839 GNULIB_PUTS
840 GNULIB_PUTCHAR
841 GNULIB_PUTC
842 GNULIB_PRINTF_POSIX
843 GNULIB_PRINTF
844 GNULIB_POPEN
845 GNULIB_PERROR
846 GNULIB_PCLOSE
847 GNULIB_OBSTACK_PRINTF_POSIX
848 GNULIB_OBSTACK_PRINTF
849 GNULIB_GETLINE
850 GNULIB_GETDELIM
851 GNULIB_GETCHAR
852 GNULIB_GETC
853 GNULIB_FWRITE
854 GNULIB_FTELLO
855 GNULIB_FTELL
856 GNULIB_FSEEKO
857 GNULIB_FSEEK
858 GNULIB_FSCANF
859 GNULIB_FREOPEN
860 GNULIB_FREAD
861 GNULIB_FPUTS
862 GNULIB_FPUTC
863 GNULIB_FPURGE
864 GNULIB_FPRINTF_POSIX
865 GNULIB_FPRINTF
866 GNULIB_FOPEN
867 GNULIB_FGETS
868 GNULIB_FGETC
869 GNULIB_FFLUSH
870 GNULIB_FDOPEN
871 GNULIB_FCLOSE
872 GNULIB_DPRINTF
873 UNDEFINE_STRTOK_R
874 REPLACE_STRSIGNAL
875 REPLACE_STRERRORNAME_NP
876 REPLACE_STRERROR_R
877 REPLACE_STRERROR
878 REPLACE_STRTOK_R
879 REPLACE_STRCASESTR
880 REPLACE_STRSTR
881 REPLACE_STRNLEN
882 REPLACE_STRNDUP
883 REPLACE_STRNCAT
884 REPLACE_STRDUP
885 REPLACE_STRCHRNUL
886 REPLACE_STPNCPY
887 REPLACE_MEMMEM
888 REPLACE_MEMCHR
889 HAVE_STRVERSCMP
890 HAVE_DECL_STRSIGNAL
891 HAVE_SIGDESCR_NP
892 HAVE_SIGABBREV_NP
893 HAVE_STRERRORNAME_NP
894 HAVE_DECL_STRERROR_R
895 HAVE_DECL_STRTOK_R
896 HAVE_STRCASESTR
897 HAVE_STRSEP
898 HAVE_STRPBRK
899 HAVE_DECL_STRNLEN
900 HAVE_DECL_STRNDUP
901 HAVE_DECL_STRDUP
902 HAVE_STRCHRNUL
903 HAVE_STPNCPY
904 HAVE_STPCPY
905 HAVE_RAWMEMCHR
906 HAVE_DECL_MEMRCHR
907 HAVE_MEMPCPY
908 HAVE_DECL_MEMMEM
909 HAVE_FFSLL
910 HAVE_FFSL
911 HAVE_EXPLICIT_BZERO
912 HAVE_MBSLEN
913 GNULIB_STRVERSCMP
914 GNULIB_STRSIGNAL
915 GNULIB_SIGDESCR_NP
916 GNULIB_SIGABBREV_NP
917 GNULIB_STRERRORNAME_NP
918 GNULIB_STRERROR_R
919 GNULIB_STRERROR
920 GNULIB_MBSTOK_R
921 GNULIB_MBSSEP
922 GNULIB_MBSSPN
923 GNULIB_MBSPBRK
924 GNULIB_MBSCSPN
925 GNULIB_MBSCASESTR
926 GNULIB_MBSPCASECMP
927 GNULIB_MBSNCASECMP
928 GNULIB_MBSCASECMP
929 GNULIB_MBSSTR
930 GNULIB_MBSRCHR
931 GNULIB_MBSCHR
932 GNULIB_MBSNLEN
933 GNULIB_MBSLEN
934 GNULIB_STRTOK_R
935 GNULIB_STRCASESTR
936 GNULIB_STRSTR
937 GNULIB_STRSEP
938 GNULIB_STRPBRK
939 GNULIB_STRNLEN
940 GNULIB_STRNDUP
941 GNULIB_STRNCAT
942 GNULIB_STRDUP
943 GNULIB_STRCHRNUL
944 GNULIB_STPNCPY
945 GNULIB_STPCPY
946 GNULIB_RAWMEMCHR
947 GNULIB_MEMRCHR
948 GNULIB_MEMPCPY
949 GNULIB_MEMMEM
950 GNULIB_MEMCHR
951 GNULIB_FFSLL
952 GNULIB_FFSL
953 GNULIB_EXPLICIT_BZERO
954 REPLACE_WCTOMB
955 REPLACE_UNSETENV
956 REPLACE_STRTOLD
957 REPLACE_STRTOD
958 REPLACE_SETSTATE
959 REPLACE_SETENV
960 REPLACE_REALPATH
961 REPLACE_REALLOC
962 REPLACE_RANDOM_R
963 REPLACE_RANDOM
964 REPLACE_QSORT_R
965 REPLACE_PUTENV
966 REPLACE_PTSNAME_R
967 REPLACE_PTSNAME
968 REPLACE_POSIX_MEMALIGN
969 REPLACE_MKSTEMP
970 REPLACE_MBTOWC
971 REPLACE_MALLOC
972 REPLACE_INITSTATE
973 REPLACE_CANONICALIZE_FILE_NAME
974 REPLACE_CALLOC
975 REPLACE_ALIGNED_ALLOC
976 HAVE_DECL_UNSETENV
977 HAVE_UNLOCKPT
978 HAVE_SYS_LOADAVG_H
979 HAVE_STRUCT_RANDOM_DATA
980 HAVE_STRTOULL
981 HAVE_STRTOLL
982 HAVE_STRTOLD
983 HAVE_STRTOD
984 HAVE_DECL_SETSTATE
985 HAVE_SETSTATE
986 HAVE_DECL_SETENV
987 HAVE_SETENV
988 HAVE_SECURE_GETENV
989 HAVE_RPMATCH
990 HAVE_REALPATH
991 HAVE_REALLOCARRAY
992 HAVE_RANDOM_R
993 HAVE_RANDOM_H
994 HAVE_RANDOM
995 HAVE_QSORT_R
996 HAVE_PTSNAME_R
997 HAVE_PTSNAME
998 HAVE_POSIX_OPENPT
999 HAVE_POSIX_MEMALIGN
1000 HAVE_MKSTEMPS
1001 HAVE_MKSTEMP
1002 HAVE_MKOSTEMPS
1003 HAVE_MKOSTEMP
1004 HAVE_MKDTEMP
1005 HAVE_MBTOWC
1006 HAVE_DECL_INITSTATE
1007 HAVE_INITSTATE
1008 HAVE_GRANTPT
1009 HAVE_GETSUBOPT
1010 HAVE_DECL_GETLOADAVG
1011 HAVE_CANONICALIZE_FILE_NAME
1012 HAVE_ATOLL
1013 HAVE_ALIGNED_ALLOC
1014 HAVE__EXIT
1015 GNULIB_WCTOMB
1016 GNULIB_UNSETENV
1017 GNULIB_UNLOCKPT
1018 GNULIB_SYSTEM_POSIX
1019 GNULIB_STRTOULL
1020 GNULIB_STRTOLL
1021 GNULIB_STRTOLD
1022 GNULIB_STRTOD
1023 GNULIB_SETENV
1024 GNULIB_SECURE_GETENV
1025 GNULIB_RPMATCH
1026 GNULIB_REALPATH
1027 GNULIB_REALLOC_POSIX
1028 GNULIB_REALLOCARRAY
1029 GNULIB_RANDOM_R
1030 GNULIB_RANDOM
1031 GNULIB_QSORT_R
1032 GNULIB_PUTENV
1033 GNULIB_PTSNAME_R
1034 GNULIB_PTSNAME
1035 GNULIB_POSIX_OPENPT
1036 GNULIB_POSIX_MEMALIGN
1037 GNULIB_MKSTEMPS
1038 GNULIB_MKSTEMP
1039 GNULIB_MKOSTEMPS
1040 GNULIB_MKOSTEMP
1041 GNULIB_MKDTEMP
1042 GNULIB_MBTOWC
1043 GNULIB_MALLOC_POSIX
1044 GNULIB_GRANTPT
1045 GNULIB_GETSUBOPT
1046 GNULIB_GETLOADAVG
1047 GNULIB_CANONICALIZE_FILE_NAME
1048 GNULIB_CALLOC_POSIX
1049 GNULIB_ATOLL
1050 GNULIB_ALIGNED_ALLOC
1051 GNULIB__EXIT
1052 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1053 NEXT_INTTYPES_H
1054 UINT64_MAX_EQ_ULONG_MAX
1055 UINT32_MAX_LT_UINTMAX_MAX
1056 PRIPTR_PREFIX
1057 INT64_MAX_EQ_LONG_MAX
1058 INT32_MAX_LT_INTMAX_MAX
1059 REPLACE_STRTOUMAX
1060 REPLACE_STRTOIMAX
1061 HAVE_IMAXDIV_T
1062 HAVE_DECL_STRTOUMAX
1063 HAVE_DECL_STRTOIMAX
1064 HAVE_DECL_IMAXDIV
1065 HAVE_DECL_IMAXABS
1066 GNULIB_STRTOUMAX
1067 GNULIB_STRTOIMAX
1068 GNULIB_IMAXDIV
1069 GNULIB_IMAXABS
1070 GL_GENERATE_STDINT_H_FALSE
1071 GL_GENERATE_STDINT_H_TRUE
1072 STDINT_H
1073 HAVE_SYS_INTTYPES_H
1074 HAVE_SYS_BITYPES_H
1075 HAVE_C99_STDINT_H
1076 WINT_T_SUFFIX
1077 WCHAR_T_SUFFIX
1078 SIG_ATOMIC_T_SUFFIX
1079 SIZE_T_SUFFIX
1080 PTRDIFF_T_SUFFIX
1081 HAVE_SIGNED_WINT_T
1082 HAVE_SIGNED_WCHAR_T
1083 HAVE_SIGNED_SIG_ATOMIC_T
1084 BITSIZEOF_WINT_T
1085 BITSIZEOF_WCHAR_T
1086 BITSIZEOF_SIG_ATOMIC_T
1087 BITSIZEOF_SIZE_T
1088 BITSIZEOF_PTRDIFF_T
1089 APPLE_UNIVERSAL_BUILD
1090 HAVE_STDINT_H
1091 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1092 NEXT_STDINT_H
1093 HAVE_SYS_TYPES_H
1094 HAVE_INTTYPES_H
1095 HAVE_WCHAR_H
1096 GNULIB_OVERRIDES_WINT_T
1097 GL_GENERATE_LIMITS_H_FALSE
1098 GL_GENERATE_LIMITS_H_TRUE
1099 LIMITS_H
1100 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1101 NEXT_LIMITS_H
1102 REPLACE_ITOLD
1103 GL_GENERATE_FLOAT_H_FALSE
1104 GL_GENERATE_FLOAT_H_TRUE
1105 FLOAT_H
1106 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1107 NEXT_FLOAT_H
1108 EOVERFLOW_VALUE
1109 EOVERFLOW_HIDDEN
1110 ENOLINK_VALUE
1111 ENOLINK_HIDDEN
1112 EMULTIHOP_VALUE
1113 EMULTIHOP_HIDDEN
1114 GL_GENERATE_ERRNO_H_FALSE
1115 GL_GENERATE_ERRNO_H_TRUE
1116 ERRNO_H
1117 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1118 NEXT_ERRNO_H
1119 host_os
1120 host_vendor
1121 host_cpu
1122 host
1123 build_os
1124 build_vendor
1125 build_cpu
1126 build
1127 PRAGMA_COLUMNS
1128 PRAGMA_SYSTEM_HEADER
1129 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1130 INCLUDE_NEXT
1131 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1132 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1133 UNISTD_H_HAVE_WINSOCK2_H
1134 UNISTD_H_HAVE_SYS_RANDOM_H
1135 REPLACE_WRITE
1136 REPLACE_USLEEP
1137 REPLACE_UNLINKAT
1138 REPLACE_UNLINK
1139 REPLACE_TTYNAME_R
1140 REPLACE_TRUNCATE
1141 REPLACE_SYMLINKAT
1142 REPLACE_SYMLINK
1143 REPLACE_SLEEP
1144 REPLACE_RMDIR
1145 REPLACE_READLINKAT
1146 REPLACE_READLINK
1147 REPLACE_READ
1148 REPLACE_PWRITE
1149 REPLACE_PREAD
1150 REPLACE_LSEEK
1151 REPLACE_LINKAT
1152 REPLACE_LINK
1153 REPLACE_LCHOWN
1154 REPLACE_ISATTY
1155 REPLACE_GETPASS
1156 REPLACE_GETPAGESIZE
1157 REPLACE_GETGROUPS
1158 REPLACE_GETLOGIN_R
1159 REPLACE_GETDTABLESIZE
1160 REPLACE_GETDOMAINNAME
1161 REPLACE_GETCWD
1162 REPLACE_FTRUNCATE
1163 REPLACE_FCHOWNAT
1164 REPLACE_FACCESSAT
1165 REPLACE_DUP2
1166 REPLACE_DUP
1167 REPLACE_CLOSE
1168 REPLACE_CHOWN
1169 REPLACE_ACCESS
1170 HAVE_SYS_PARAM_H
1171 HAVE_OS_H
1172 HAVE_DECL_TTYNAME_R
1173 HAVE_DECL_TRUNCATE
1174 HAVE_DECL_SETHOSTNAME
1175 HAVE_DECL_GETUSERSHELL
1176 HAVE_DECL_GETPAGESIZE
1177 HAVE_DECL_GETLOGIN_R
1178 HAVE_DECL_GETLOGIN
1179 HAVE_DECL_GETDOMAINNAME
1180 HAVE_DECL_FDATASYNC
1181 HAVE_DECL_FCHDIR
1182 HAVE_DECL_ENVIRON
1183 HAVE_USLEEP
1184 HAVE_UNLINKAT
1185 HAVE_SYMLINKAT
1186 HAVE_SYMLINK
1187 HAVE_SLEEP
1188 HAVE_SETHOSTNAME
1189 HAVE_READLINKAT
1190 HAVE_READLINK
1191 HAVE_PWRITE
1192 HAVE_PREAD
1193 HAVE_PIPE2
1194 HAVE_PIPE
1195 HAVE_LINKAT
1196 HAVE_LINK
1197 HAVE_LCHOWN
1198 HAVE_GROUP_MEMBER
1199 HAVE_GETPASS
1200 HAVE_GETPAGESIZE
1201 HAVE_GETLOGIN
1202 HAVE_GETHOSTNAME
1203 HAVE_GETGROUPS
1204 HAVE_GETENTROPY
1205 HAVE_GETDTABLESIZE
1206 HAVE_FTRUNCATE
1207 HAVE_FSYNC
1208 HAVE_FDATASYNC
1209 HAVE_FCHOWNAT
1210 HAVE_FCHDIR
1211 HAVE_FACCESSAT
1212 HAVE_EUIDACCESS
1213 HAVE_DUP3
1214 HAVE_COPY_FILE_RANGE
1215 HAVE_CHOWN
1216 GNULIB_WRITE
1217 GNULIB_USLEEP
1218 GNULIB_UNLINKAT
1219 GNULIB_UNLINK
1220 GNULIB_UNISTD_H_SIGPIPE
1221 GNULIB_UNISTD_H_NONBLOCKING
1222 GNULIB_TTYNAME_R
1223 GNULIB_TRUNCATE
1224 GNULIB_SYMLINKAT
1225 GNULIB_SYMLINK
1226 GNULIB_SLEEP
1227 GNULIB_SETHOSTNAME
1228 GNULIB_RMDIR
1229 GNULIB_READLINKAT
1230 GNULIB_READLINK
1231 GNULIB_READ
1232 GNULIB_PWRITE
1233 GNULIB_PREAD
1234 GNULIB_PIPE2
1235 GNULIB_PIPE
1236 GNULIB_LSEEK
1237 GNULIB_LINKAT
1238 GNULIB_LINK
1239 GNULIB_LCHOWN
1240 GNULIB_ISATTY
1241 GNULIB_GROUP_MEMBER
1242 GNULIB_GETUSERSHELL
1243 GNULIB_GETPASS
1244 GNULIB_GETPAGESIZE
1245 GNULIB_GETOPT_POSIX
1246 GNULIB_GETLOGIN_R
1247 GNULIB_GETLOGIN
1248 GNULIB_GETHOSTNAME
1249 GNULIB_GETGROUPS
1250 GNULIB_GETENTROPY
1251 GNULIB_GETDTABLESIZE
1252 GNULIB_GETDOMAINNAME
1253 GNULIB_GETCWD
1254 GNULIB_FTRUNCATE
1255 GNULIB_FSYNC
1256 GNULIB_FDATASYNC
1257 GNULIB_FCHOWNAT
1258 GNULIB_FCHDIR
1259 GNULIB_FACCESSAT
1260 GNULIB_EUIDACCESS
1261 GNULIB_ENVIRON
1262 GNULIB_DUP3
1263 GNULIB_DUP2
1264 GNULIB_DUP
1265 GNULIB_COPY_FILE_RANGE
1266 GNULIB_CLOSE
1267 GNULIB_CHOWN
1268 GNULIB_CHDIR
1269 GNULIB_ACCESS
1270 HAVE_ALLOCA_H
1271 GL_GENERATE_ALLOCA_H_FALSE
1272 GL_GENERATE_ALLOCA_H_TRUE
1273 ALLOCA_H
1274 ALLOCA
1275 GL_COND_LIBTOOL_FALSE
1276 GL_COND_LIBTOOL_TRUE
1277 EGREP
1278 GREP
1279 CPP
1280 am__fastdepCC_FALSE
1281 am__fastdepCC_TRUE
1282 CCDEPMODE
1283 am__nodep
1284 AMDEPBACKSLASH
1285 AMDEP_FALSE
1286 AMDEP_TRUE
1287 am__include
1288 DEPDIR
1289 OBJEXT
1290 EXEEXT
1291 ac_ct_CC
1292 CPPFLAGS
1293 LDFLAGS
1294 CFLAGS
1295 CC
1296 AM_BACKSLASH
1297 AM_DEFAULT_VERBOSITY
1298 AM_DEFAULT_V
1299 AM_V
1300 am__untar
1301 am__tar
1302 AMTAR
1303 am__leading_dot
1304 SET_MAKE
1305 AWK
1306 mkdir_p
1307 MKDIR_P
1308 INSTALL_STRIP_PROGRAM
1309 STRIP
1310 install_sh
1311 MAKEINFO
1312 AUTOHEADER
1313 AUTOMAKE
1314 AUTOCONF
1315 ACLOCAL
1316 VERSION
1317 PACKAGE
1318 CYGPATH_W
1319 am__isrc
1320 INSTALL_DATA
1321 INSTALL_SCRIPT
1322 INSTALL_PROGRAM
1323 target_alias
1324 host_alias
1325 build_alias
1326 LIBS
1327 ECHO_T
1328 ECHO_N
1329 ECHO_C
1330 DEFS
1331 mandir
1332 localedir
1333 libdir
1334 psdir
1335 pdfdir
1336 dvidir
1337 htmldir
1338 infodir
1339 docdir
1340 oldincludedir
1341 includedir
1342 localstatedir
1343 sharedstatedir
1344 sysconfdir
1345 datadir
1346 datarootdir
1347 libexecdir
1348 sbindir
1349 bindir
1350 program_transform_name
1351 prefix
1352 exec_prefix
1353 PACKAGE_URL
1354 PACKAGE_BUGREPORT
1355 PACKAGE_STRING
1356 PACKAGE_VERSION
1357 PACKAGE_TARNAME
1358 PACKAGE_NAME
1359 PATH_SEPARATOR
1360 SHELL
1361 am__quote'
1362 ac_subst_files=''
1363 ac_user_opts='
1364 enable_option_checking
1365 enable_silent_rules
1366 enable_dependency_tracking
1367 enable_cross_guesses
1368 '
1369 ac_precious_vars='build_alias
1370 host_alias
1371 target_alias
1372 CC
1373 CFLAGS
1374 LDFLAGS
1375 LIBS
1376 CPPFLAGS
1377 CPP'
1378
1379
1380 # Initialize some variables set by options.
1381 ac_init_help=
1382 ac_init_version=false
1383 ac_unrecognized_opts=
1384 ac_unrecognized_sep=
1385 # The variables have the same names as the options, with
1386 # dashes changed to underlines.
1387 cache_file=/dev/null
1388 exec_prefix=NONE
1389 no_create=
1390 no_recursion=
1391 prefix=NONE
1392 program_prefix=NONE
1393 program_suffix=NONE
1394 program_transform_name=s,x,x,
1395 silent=
1396 site=
1397 srcdir=
1398 verbose=
1399 x_includes=NONE
1400 x_libraries=NONE
1401
1402 # Installation directory options.
1403 # These are left unexpanded so users can "make install exec_prefix=/foo"
1404 # and all the variables that are supposed to be based on exec_prefix
1405 # by default will actually change.
1406 # Use braces instead of parens because sh, perl, etc. also accept them.
1407 # (The list follows the same order as the GNU Coding Standards.)
1408 bindir='${exec_prefix}/bin'
1409 sbindir='${exec_prefix}/sbin'
1410 libexecdir='${exec_prefix}/libexec'
1411 datarootdir='${prefix}/share'
1412 datadir='${datarootdir}'
1413 sysconfdir='${prefix}/etc'
1414 sharedstatedir='${prefix}/com'
1415 localstatedir='${prefix}/var'
1416 includedir='${prefix}/include'
1417 oldincludedir='/usr/include'
1418 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1419 infodir='${datarootdir}/info'
1420 htmldir='${docdir}'
1421 dvidir='${docdir}'
1422 pdfdir='${docdir}'
1423 psdir='${docdir}'
1424 libdir='${exec_prefix}/lib'
1425 localedir='${datarootdir}/locale'
1426 mandir='${datarootdir}/man'
1427
1428 ac_prev=
1429 ac_dashdash=
1430 for ac_option
1431 do
1432 # If the previous option needs an argument, assign it.
1433 if test -n "$ac_prev"; then
1434 eval $ac_prev=\$ac_option
1435 ac_prev=
1436 continue
1437 fi
1438
1439 case $ac_option in
1440 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1441 *=) ac_optarg= ;;
1442 *) ac_optarg=yes ;;
1443 esac
1444
1445 # Accept the important Cygnus configure options, so we can diagnose typos.
1446
1447 case $ac_dashdash$ac_option in
1448 --)
1449 ac_dashdash=yes ;;
1450
1451 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1452 ac_prev=bindir ;;
1453 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1454 bindir=$ac_optarg ;;
1455
1456 -build | --build | --buil | --bui | --bu)
1457 ac_prev=build_alias ;;
1458 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1459 build_alias=$ac_optarg ;;
1460
1461 -cache-file | --cache-file | --cache-fil | --cache-fi \
1462 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1463 ac_prev=cache_file ;;
1464 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1465 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1466 cache_file=$ac_optarg ;;
1467
1468 --config-cache | -C)
1469 cache_file=config.cache ;;
1470
1471 -datadir | --datadir | --datadi | --datad)
1472 ac_prev=datadir ;;
1473 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1474 datadir=$ac_optarg ;;
1475
1476 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1477 | --dataroo | --dataro | --datar)
1478 ac_prev=datarootdir ;;
1479 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1480 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1481 datarootdir=$ac_optarg ;;
1482
1483 -disable-* | --disable-*)
1484 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1485 # Reject names that are not valid shell variable names.
1486 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1487 as_fn_error $? "invalid feature name: $ac_useropt"
1488 ac_useropt_orig=$ac_useropt
1489 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1490 case $ac_user_opts in
1491 *"
1492 "enable_$ac_useropt"
1493 "*) ;;
1494 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1495 ac_unrecognized_sep=', ';;
1496 esac
1497 eval enable_$ac_useropt=no ;;
1498
1499 -docdir | --docdir | --docdi | --doc | --do)
1500 ac_prev=docdir ;;
1501 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1502 docdir=$ac_optarg ;;
1503
1504 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1505 ac_prev=dvidir ;;
1506 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1507 dvidir=$ac_optarg ;;
1508
1509 -enable-* | --enable-*)
1510 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1511 # Reject names that are not valid shell variable names.
1512 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1513 as_fn_error $? "invalid feature name: $ac_useropt"
1514 ac_useropt_orig=$ac_useropt
1515 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1516 case $ac_user_opts in
1517 *"
1518 "enable_$ac_useropt"
1519 "*) ;;
1520 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1521 ac_unrecognized_sep=', ';;
1522 esac
1523 eval enable_$ac_useropt=\$ac_optarg ;;
1524
1525 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1526 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1527 | --exec | --exe | --ex)
1528 ac_prev=exec_prefix ;;
1529 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1530 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1531 | --exec=* | --exe=* | --ex=*)
1532 exec_prefix=$ac_optarg ;;
1533
1534 -gas | --gas | --ga | --g)
1535 # Obsolete; use --with-gas.
1536 with_gas=yes ;;
1537
1538 -help | --help | --hel | --he | -h)
1539 ac_init_help=long ;;
1540 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1541 ac_init_help=recursive ;;
1542 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1543 ac_init_help=short ;;
1544
1545 -host | --host | --hos | --ho)
1546 ac_prev=host_alias ;;
1547 -host=* | --host=* | --hos=* | --ho=*)
1548 host_alias=$ac_optarg ;;
1549
1550 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1551 ac_prev=htmldir ;;
1552 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1553 | --ht=*)
1554 htmldir=$ac_optarg ;;
1555
1556 -includedir | --includedir | --includedi | --included | --include \
1557 | --includ | --inclu | --incl | --inc)
1558 ac_prev=includedir ;;
1559 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1560 | --includ=* | --inclu=* | --incl=* | --inc=*)
1561 includedir=$ac_optarg ;;
1562
1563 -infodir | --infodir | --infodi | --infod | --info | --inf)
1564 ac_prev=infodir ;;
1565 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1566 infodir=$ac_optarg ;;
1567
1568 -libdir | --libdir | --libdi | --libd)
1569 ac_prev=libdir ;;
1570 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1571 libdir=$ac_optarg ;;
1572
1573 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1574 | --libexe | --libex | --libe)
1575 ac_prev=libexecdir ;;
1576 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1577 | --libexe=* | --libex=* | --libe=*)
1578 libexecdir=$ac_optarg ;;
1579
1580 -localedir | --localedir | --localedi | --localed | --locale)
1581 ac_prev=localedir ;;
1582 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1583 localedir=$ac_optarg ;;
1584
1585 -localstatedir | --localstatedir | --localstatedi | --localstated \
1586 | --localstate | --localstat | --localsta | --localst | --locals)
1587 ac_prev=localstatedir ;;
1588 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1589 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1590 localstatedir=$ac_optarg ;;
1591
1592 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1593 ac_prev=mandir ;;
1594 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1595 mandir=$ac_optarg ;;
1596
1597 -nfp | --nfp | --nf)
1598 # Obsolete; use --without-fp.
1599 with_fp=no ;;
1600
1601 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1602 | --no-cr | --no-c | -n)
1603 no_create=yes ;;
1604
1605 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1606 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1607 no_recursion=yes ;;
1608
1609 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1610 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1611 | --oldin | --oldi | --old | --ol | --o)
1612 ac_prev=oldincludedir ;;
1613 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1614 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1615 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1616 oldincludedir=$ac_optarg ;;
1617
1618 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1619 ac_prev=prefix ;;
1620 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1621 prefix=$ac_optarg ;;
1622
1623 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1624 | --program-pre | --program-pr | --program-p)
1625 ac_prev=program_prefix ;;
1626 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1627 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1628 program_prefix=$ac_optarg ;;
1629
1630 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1631 | --program-suf | --program-su | --program-s)
1632 ac_prev=program_suffix ;;
1633 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1634 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1635 program_suffix=$ac_optarg ;;
1636
1637 -program-transform-name | --program-transform-name \
1638 | --program-transform-nam | --program-transform-na \
1639 | --program-transform-n | --program-transform- \
1640 | --program-transform | --program-transfor \
1641 | --program-transfo | --program-transf \
1642 | --program-trans | --program-tran \
1643 | --progr-tra | --program-tr | --program-t)
1644 ac_prev=program_transform_name ;;
1645 -program-transform-name=* | --program-transform-name=* \
1646 | --program-transform-nam=* | --program-transform-na=* \
1647 | --program-transform-n=* | --program-transform-=* \
1648 | --program-transform=* | --program-transfor=* \
1649 | --program-transfo=* | --program-transf=* \
1650 | --program-trans=* | --program-tran=* \
1651 | --progr-tra=* | --program-tr=* | --program-t=*)
1652 program_transform_name=$ac_optarg ;;
1653
1654 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1655 ac_prev=pdfdir ;;
1656 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1657 pdfdir=$ac_optarg ;;
1658
1659 -psdir | --psdir | --psdi | --psd | --ps)
1660 ac_prev=psdir ;;
1661 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1662 psdir=$ac_optarg ;;
1663
1664 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1665 | -silent | --silent | --silen | --sile | --sil)
1666 silent=yes ;;
1667
1668 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1669 ac_prev=sbindir ;;
1670 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1671 | --sbi=* | --sb=*)
1672 sbindir=$ac_optarg ;;
1673
1674 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1675 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1676 | --sharedst | --shareds | --shared | --share | --shar \
1677 | --sha | --sh)
1678 ac_prev=sharedstatedir ;;
1679 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1680 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1681 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1682 | --sha=* | --sh=*)
1683 sharedstatedir=$ac_optarg ;;
1684
1685 -site | --site | --sit)
1686 ac_prev=site ;;
1687 -site=* | --site=* | --sit=*)
1688 site=$ac_optarg ;;
1689
1690 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1691 ac_prev=srcdir ;;
1692 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1693 srcdir=$ac_optarg ;;
1694
1695 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1696 | --syscon | --sysco | --sysc | --sys | --sy)
1697 ac_prev=sysconfdir ;;
1698 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1699 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1700 sysconfdir=$ac_optarg ;;
1701
1702 -target | --target | --targe | --targ | --tar | --ta | --t)
1703 ac_prev=target_alias ;;
1704 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1705 target_alias=$ac_optarg ;;
1706
1707 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1708 verbose=yes ;;
1709
1710 -version | --version | --versio | --versi | --vers | -V)
1711 ac_init_version=: ;;
1712
1713 -with-* | --with-*)
1714 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1715 # Reject names that are not valid shell variable names.
1716 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1717 as_fn_error $? "invalid package name: $ac_useropt"
1718 ac_useropt_orig=$ac_useropt
1719 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1720 case $ac_user_opts in
1721 *"
1722 "with_$ac_useropt"
1723 "*) ;;
1724 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1725 ac_unrecognized_sep=', ';;
1726 esac
1727 eval with_$ac_useropt=\$ac_optarg ;;
1728
1729 -without-* | --without-*)
1730 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1731 # Reject names that are not valid shell variable names.
1732 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1733 as_fn_error $? "invalid package name: $ac_useropt"
1734 ac_useropt_orig=$ac_useropt
1735 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1736 case $ac_user_opts in
1737 *"
1738 "with_$ac_useropt"
1739 "*) ;;
1740 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1741 ac_unrecognized_sep=', ';;
1742 esac
1743 eval with_$ac_useropt=no ;;
1744
1745 --x)
1746 # Obsolete; use --with-x.
1747 with_x=yes ;;
1748
1749 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1750 | --x-incl | --x-inc | --x-in | --x-i)
1751 ac_prev=x_includes ;;
1752 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1753 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1754 x_includes=$ac_optarg ;;
1755
1756 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1757 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1758 ac_prev=x_libraries ;;
1759 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1760 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1761 x_libraries=$ac_optarg ;;
1762
1763 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1764 Try \`$0 --help' for more information"
1765 ;;
1766
1767 *=*)
1768 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1769 # Reject names that are not valid shell variable names.
1770 case $ac_envvar in #(
1771 '' | [0-9]* | *[!_$as_cr_alnum]* )
1772 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1773 esac
1774 eval $ac_envvar=\$ac_optarg
1775 export $ac_envvar ;;
1776
1777 *)
1778 # FIXME: should be removed in autoconf 3.0.
1779 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1780 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1781 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1782 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1783 ;;
1784
1785 esac
1786 done
1787
1788 if test -n "$ac_prev"; then
1789 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1790 as_fn_error $? "missing argument to $ac_option"
1791 fi
1792
1793 if test -n "$ac_unrecognized_opts"; then
1794 case $enable_option_checking in
1795 no) ;;
1796 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1797 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1798 esac
1799 fi
1800
1801 # Check all directory arguments for consistency.
1802 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1803 datadir sysconfdir sharedstatedir localstatedir includedir \
1804 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1805 libdir localedir mandir
1806 do
1807 eval ac_val=\$$ac_var
1808 # Remove trailing slashes.
1809 case $ac_val in
1810 */ )
1811 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1812 eval $ac_var=\$ac_val;;
1813 esac
1814 # Be sure to have absolute directory names.
1815 case $ac_val in
1816 [\\/$]* | ?:[\\/]* ) continue;;
1817 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1818 esac
1819 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1820 done
1821
1822 # There might be people who depend on the old broken behavior: `$host'
1823 # used to hold the argument of --host etc.
1824 # FIXME: To remove some day.
1825 build=$build_alias
1826 host=$host_alias
1827 target=$target_alias
1828
1829 # FIXME: To remove some day.
1830 if test "x$host_alias" != x; then
1831 if test "x$build_alias" = x; then
1832 cross_compiling=maybe
1833 elif test "x$build_alias" != "x$host_alias"; then
1834 cross_compiling=yes
1835 fi
1836 fi
1837
1838 ac_tool_prefix=
1839 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1840
1841 test "$silent" = yes && exec 6>/dev/null
1842
1843
1844 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1845 ac_ls_di=`ls -di .` &&
1846 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1847 as_fn_error $? "working directory cannot be determined"
1848 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1849 as_fn_error $? "pwd does not report name of working directory"
1850
1851
1852 # Find the source files, if location was not specified.
1853 if test -z "$srcdir"; then
1854 ac_srcdir_defaulted=yes
1855 # Try the directory containing this script, then the parent directory.
1856 ac_confdir=`$as_dirname -- "$as_myself" ||
1857 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1858 X"$as_myself" : 'X\(//\)[^/]' \| \
1859 X"$as_myself" : 'X\(//\)$' \| \
1860 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1861 $as_echo X"$as_myself" |
1862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1863 s//\1/
1864 q
1865 }
1866 /^X\(\/\/\)[^/].*/{
1867 s//\1/
1868 q
1869 }
1870 /^X\(\/\/\)$/{
1871 s//\1/
1872 q
1873 }
1874 /^X\(\/\).*/{
1875 s//\1/
1876 q
1877 }
1878 s/.*/./; q'`
1879 srcdir=$ac_confdir
1880 if test ! -r "$srcdir/$ac_unique_file"; then
1881 srcdir=..
1882 fi
1883 else
1884 ac_srcdir_defaulted=no
1885 fi
1886 if test ! -r "$srcdir/$ac_unique_file"; then
1887 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1888 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1889 fi
1890 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1891 ac_abs_confdir=`(
1892 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1893 pwd)`
1894 # When building in place, set srcdir=.
1895 if test "$ac_abs_confdir" = "$ac_pwd"; then
1896 srcdir=.
1897 fi
1898 # Remove unnecessary trailing slashes from srcdir.
1899 # Double slashes in file names in object file debugging info
1900 # mess up M-x gdb in Emacs.
1901 case $srcdir in
1902 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1903 esac
1904 for ac_var in $ac_precious_vars; do
1905 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1906 eval ac_env_${ac_var}_value=\$${ac_var}
1907 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1908 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1909 done
1910
1911 #
1912 # Report the --help message.
1913 #
1914 if test "$ac_init_help" = "long"; then
1915 # Omit some internal or obsolete options to make the list less imposing.
1916 # This message is too long to be a string in the A/UX 3.1 sh.
1917 cat <<_ACEOF
1918 \`configure' configures Complexity 1.13 to adapt to many kinds of systems.
1919
1920 Usage: $0 [OPTION]... [VAR=VALUE]...
1921
1922 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1923 VAR=VALUE. See below for descriptions of some of the useful variables.
1924
1925 Defaults for the options are specified in brackets.
1926
1927 Configuration:
1928 -h, --help display this help and exit
1929 --help=short display options specific to this package
1930 --help=recursive display the short help of all the included packages
1931 -V, --version display version information and exit
1932 -q, --quiet, --silent do not print \`checking ...' messages
1933 --cache-file=FILE cache test results in FILE [disabled]
1934 -C, --config-cache alias for \`--cache-file=config.cache'
1935 -n, --no-create do not create output files
1936 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1937
1938 Installation directories:
1939 --prefix=PREFIX install architecture-independent files in PREFIX
1940 [$ac_default_prefix]
1941 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1942 [PREFIX]
1943
1944 By default, \`make install' will install all the files in
1945 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1946 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1947 for instance \`--prefix=\$HOME'.
1948
1949 For better control, use the options below.
1950
1951 Fine tuning of the installation directories:
1952 --bindir=DIR user executables [EPREFIX/bin]
1953 --sbindir=DIR system admin executables [EPREFIX/sbin]
1954 --libexecdir=DIR program executables [EPREFIX/libexec]
1955 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1956 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1957 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1958 --libdir=DIR object code libraries [EPREFIX/lib]
1959 --includedir=DIR C header files [PREFIX/include]
1960 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1961 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1962 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1963 --infodir=DIR info documentation [DATAROOTDIR/info]
1964 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1965 --mandir=DIR man documentation [DATAROOTDIR/man]
1966 --docdir=DIR documentation root [DATAROOTDIR/doc/complexity]
1967 --htmldir=DIR html documentation [DOCDIR]
1968 --dvidir=DIR dvi documentation [DOCDIR]
1969 --pdfdir=DIR pdf documentation [DOCDIR]
1970 --psdir=DIR ps documentation [DOCDIR]
1971 _ACEOF
1972
1973 cat <<\_ACEOF
1974
1975 Program names:
1976 --program-prefix=PREFIX prepend PREFIX to installed program names
1977 --program-suffix=SUFFIX append SUFFIX to installed program names
1978 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1979
1980 System types:
1981 --build=BUILD configure for building on BUILD [guessed]
1982 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1983 _ACEOF
1984 fi
1985
1986 if test -n "$ac_init_help"; then
1987 case $ac_init_help in
1988 short | recursive ) echo "Configuration of Complexity 1.13:";;
1989 esac
1990 cat <<\_ACEOF
1991
1992 Optional Features:
1993 --disable-option-checking ignore unrecognized --enable/--with options
1994 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1995 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1996 --enable-silent-rules less verbose build output (undo: "make V=1")
1997 --disable-silent-rules verbose build output (undo: "make V=0")
1998 --enable-dependency-tracking
1999 do not reject slow dependency extractors
2000 --disable-dependency-tracking
2001 speeds up one-time build
2002 --enable-cross-guesses={conservative|risky}
2003 specify policy for cross-compilation guesses
2004
2005 Some influential environment variables:
2006 CC C compiler command
2007 CFLAGS C compiler flags
2008 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2009 nonstandard directory <lib dir>
2010 LIBS libraries to pass to the linker, e.g. -l<library>
2011 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2012 you have headers in a nonstandard directory <include dir>
2013 CPP C preprocessor
2014
2015 Use these variables to override the choices made by `configure' or to help
2016 it to find libraries and programs with nonstandard names/locations.
2017
2018 Report bugs to <[email protected]>.
2019 _ACEOF
2020 ac_status=$?
2021 fi
2022
2023 if test "$ac_init_help" = "recursive"; then
2024 # If there are subdirs, report their specific --help.
2025 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2026 test -d "$ac_dir" ||
2027 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2028 continue
2029 ac_builddir=.
2030
2031 case "$ac_dir" in
2032 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2033 *)
2034 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2035 # A ".." for each directory in $ac_dir_suffix.
2036 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2037 case $ac_top_builddir_sub in
2038 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2039 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2040 esac ;;
2041 esac
2042 ac_abs_top_builddir=$ac_pwd
2043 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2044 # for backward compatibility:
2045 ac_top_builddir=$ac_top_build_prefix
2046
2047 case $srcdir in
2048 .) # We are building in place.
2049 ac_srcdir=.
2050 ac_top_srcdir=$ac_top_builddir_sub
2051 ac_abs_top_srcdir=$ac_pwd ;;
2052 [\\/]* | ?:[\\/]* ) # Absolute name.
2053 ac_srcdir=$srcdir$ac_dir_suffix;
2054 ac_top_srcdir=$srcdir
2055 ac_abs_top_srcdir=$srcdir ;;
2056 *) # Relative name.
2057 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2058 ac_top_srcdir=$ac_top_build_prefix$srcdir
2059 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2060 esac
2061 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2062
2063 cd "$ac_dir" || { ac_status=$?; continue; }
2064 # Check for guested configure.
2065 if test -f "$ac_srcdir/configure.gnu"; then
2066 echo &&
2067 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2068 elif test -f "$ac_srcdir/configure"; then
2069 echo &&
2070 $SHELL "$ac_srcdir/configure" --help=recursive
2071 else
2072 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2073 fi || ac_status=$?
2074 cd "$ac_pwd" || { ac_status=$?; break; }
2075 done
2076 fi
2077
2078 test -n "$ac_init_help" && exit $ac_status
2079 if $ac_init_version; then
2080 cat <<\_ACEOF
2081 Complexity configure 1.13
2082 generated by GNU Autoconf 2.69
2083
2084 Copyright (C) 2012 Free Software Foundation, Inc.
2085 This configure script is free software; the Free Software Foundation
2086 gives unlimited permission to copy, distribute and modify it.
2087 _ACEOF
2088 exit
2089 fi
2090
2091 ## ------------------------ ##
2092 ## Autoconf initialization. ##
2093 ## ------------------------ ##
2094
2095 # ac_fn_c_try_compile LINENO
2096 # --------------------------
2097 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2098 ac_fn_c_try_compile ()
2099 {
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 rm -f conftest.$ac_objext
2102 if { { ac_try="$ac_compile"
2103 case "(($ac_try" in
2104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2105 *) ac_try_echo=$ac_try;;
2106 esac
2107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2108 $as_echo "$ac_try_echo"; } >&5
2109 (eval "$ac_compile") 2>conftest.err
2110 ac_status=$?
2111 if test -s conftest.err; then
2112 grep -v '^ *+' conftest.err >conftest.er1
2113 cat conftest.er1 >&5
2114 mv -f conftest.er1 conftest.err
2115 fi
2116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2117 test $ac_status = 0; } && {
2118 test -z "$ac_c_werror_flag" ||
2119 test ! -s conftest.err
2120 } && test -s conftest.$ac_objext; then :
2121 ac_retval=0
2122 else
2123 $as_echo "$as_me: failed program was:" >&5
2124 sed 's/^/| /' conftest.$ac_ext >&5
2125
2126 ac_retval=1
2127 fi
2128 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2129 as_fn_set_status $ac_retval
2130
2131 } # ac_fn_c_try_compile
2132
2133 # ac_fn_c_try_cpp LINENO
2134 # ----------------------
2135 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2136 ac_fn_c_try_cpp ()
2137 {
2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2139 if { { ac_try="$ac_cpp conftest.$ac_ext"
2140 case "(($ac_try" in
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2143 esac
2144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2145 $as_echo "$ac_try_echo"; } >&5
2146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2147 ac_status=$?
2148 if test -s conftest.err; then
2149 grep -v '^ *+' conftest.err >conftest.er1
2150 cat conftest.er1 >&5
2151 mv -f conftest.er1 conftest.err
2152 fi
2153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2154 test $ac_status = 0; } > conftest.i && {
2155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2156 test ! -s conftest.err
2157 }; then :
2158 ac_retval=0
2159 else
2160 $as_echo "$as_me: failed program was:" >&5
2161 sed 's/^/| /' conftest.$ac_ext >&5
2162
2163 ac_retval=1
2164 fi
2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166 as_fn_set_status $ac_retval
2167
2168 } # ac_fn_c_try_cpp
2169
2170 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2171 # -------------------------------------------------------
2172 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2173 # the include files in INCLUDES and setting the cache variable VAR
2174 # accordingly.
2175 ac_fn_c_check_header_mongrel ()
2176 {
2177 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2178 if eval \${$3+:} false; then :
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2180 $as_echo_n "checking for $2... " >&6; }
2181 if eval \${$3+:} false; then :
2182 $as_echo_n "(cached) " >&6
2183 fi
2184 eval ac_res=\$$3
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2186 $as_echo "$ac_res" >&6; }
2187 else
2188 # Is the header compilable?
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2190 $as_echo_n "checking $2 usability... " >&6; }
2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h. */
2193 $4
2194 #include <$2>
2195 _ACEOF
2196 if ac_fn_c_try_compile "$LINENO"; then :
2197 ac_header_compiler=yes
2198 else
2199 ac_header_compiler=no
2200 fi
2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2203 $as_echo "$ac_header_compiler" >&6; }
2204
2205 # Is the header present?
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2207 $as_echo_n "checking $2 presence... " >&6; }
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2210 #include <$2>
2211 _ACEOF
2212 if ac_fn_c_try_cpp "$LINENO"; then :
2213 ac_header_preproc=yes
2214 else
2215 ac_header_preproc=no
2216 fi
2217 rm -f conftest.err conftest.i conftest.$ac_ext
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2219 $as_echo "$ac_header_preproc" >&6; }
2220
2221 # So? What about this header?
2222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2223 yes:no: )
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2225 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2227 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2228 ;;
2229 no:yes:* )
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2231 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2233 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2235 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2237 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2239 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2240 ( $as_echo "## ---------------------------- ##
2241 ## Report this to [email protected] ##
2242 ## ---------------------------- ##"
2243 ) | sed "s/^/$as_me: WARNING: /" >&2
2244 ;;
2245 esac
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2247 $as_echo_n "checking for $2... " >&6; }
2248 if eval \${$3+:} false; then :
2249 $as_echo_n "(cached) " >&6
2250 else
2251 eval "$3=\$ac_header_compiler"
2252 fi
2253 eval ac_res=\$$3
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2255 $as_echo "$ac_res" >&6; }
2256 fi
2257 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2258
2259 } # ac_fn_c_check_header_mongrel
2260
2261 # ac_fn_c_try_run LINENO
2262 # ----------------------
2263 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2264 # that executables *can* be run.
2265 ac_fn_c_try_run ()
2266 {
2267 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2268 if { { ac_try="$ac_link"
2269 case "(($ac_try" in
2270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2271 *) ac_try_echo=$ac_try;;
2272 esac
2273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2274 $as_echo "$ac_try_echo"; } >&5
2275 (eval "$ac_link") 2>&5
2276 ac_status=$?
2277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2278 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2279 { { case "(($ac_try" in
2280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2281 *) ac_try_echo=$ac_try;;
2282 esac
2283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2284 $as_echo "$ac_try_echo"; } >&5
2285 (eval "$ac_try") 2>&5
2286 ac_status=$?
2287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2288 test $ac_status = 0; }; }; then :
2289 ac_retval=0
2290 else
2291 $as_echo "$as_me: program exited with status $ac_status" >&5
2292 $as_echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2294
2295 ac_retval=$ac_status
2296 fi
2297 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2298 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2299 as_fn_set_status $ac_retval
2300
2301 } # ac_fn_c_try_run
2302
2303 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2304 # -------------------------------------------------------
2305 # Tests whether HEADER exists and can be compiled using the include files in
2306 # INCLUDES, setting the cache variable VAR accordingly.
2307 ac_fn_c_check_header_compile ()
2308 {
2309 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2311 $as_echo_n "checking for $2... " >&6; }
2312 if eval \${$3+:} false; then :
2313 $as_echo_n "(cached) " >&6
2314 else
2315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2316 /* end confdefs.h. */
2317 $4
2318 #include <$2>
2319 _ACEOF
2320 if ac_fn_c_try_compile "$LINENO"; then :
2321 eval "$3=yes"
2322 else
2323 eval "$3=no"
2324 fi
2325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2326 fi
2327 eval ac_res=\$$3
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2329 $as_echo "$ac_res" >&6; }
2330 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2331
2332 } # ac_fn_c_check_header_compile
2333
2334 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2335 # -------------------------------------------
2336 # Tests whether TYPE exists after having included INCLUDES, setting cache
2337 # variable VAR accordingly.
2338 ac_fn_c_check_type ()
2339 {
2340 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342 $as_echo_n "checking for $2... " >&6; }
2343 if eval \${$3+:} false; then :
2344 $as_echo_n "(cached) " >&6
2345 else
2346 eval "$3=no"
2347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h. */
2349 $4
2350 int
2351 main ()
2352 {
2353 if (sizeof ($2))
2354 return 0;
2355 ;
2356 return 0;
2357 }
2358 _ACEOF
2359 if ac_fn_c_try_compile "$LINENO"; then :
2360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361 /* end confdefs.h. */
2362 $4
2363 int
2364 main ()
2365 {
2366 if (sizeof (($2)))
2367 return 0;
2368 ;
2369 return 0;
2370 }
2371 _ACEOF
2372 if ac_fn_c_try_compile "$LINENO"; then :
2373
2374 else
2375 eval "$3=yes"
2376 fi
2377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2378 fi
2379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2380 fi
2381 eval ac_res=\$$3
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2383 $as_echo "$ac_res" >&6; }
2384 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2385
2386 } # ac_fn_c_check_type
2387
2388 # ac_fn_c_try_link LINENO
2389 # -----------------------
2390 # Try to link conftest.$ac_ext, and return whether this succeeded.
2391 ac_fn_c_try_link ()
2392 {
2393 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2394 rm -f conftest.$ac_objext conftest$ac_exeext
2395 if { { ac_try="$ac_link"
2396 case "(($ac_try" in
2397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398 *) ac_try_echo=$ac_try;;
2399 esac
2400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2401 $as_echo "$ac_try_echo"; } >&5
2402 (eval "$ac_link") 2>conftest.err
2403 ac_status=$?
2404 if test -s conftest.err; then
2405 grep -v '^ *+' conftest.err >conftest.er1
2406 cat conftest.er1 >&5
2407 mv -f conftest.er1 conftest.err
2408 fi
2409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2410 test $ac_status = 0; } && {
2411 test -z "$ac_c_werror_flag" ||
2412 test ! -s conftest.err
2413 } && test -s conftest$ac_exeext && {
2414 test "$cross_compiling" = yes ||
2415 test -x conftest$ac_exeext
2416 }; then :
2417 ac_retval=0
2418 else
2419 $as_echo "$as_me: failed program was:" >&5
2420 sed 's/^/| /' conftest.$ac_ext >&5
2421
2422 ac_retval=1
2423 fi
2424 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2425 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2426 # interfere with the next link command; also delete a directory that is
2427 # left behind by Apple's compiler. We do this before executing the actions.
2428 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2429 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2430 as_fn_set_status $ac_retval
2431
2432 } # ac_fn_c_try_link
2433
2434 # ac_fn_c_check_func LINENO FUNC VAR
2435 # ----------------------------------
2436 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2437 ac_fn_c_check_func ()
2438 {
2439 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2441 $as_echo_n "checking for $2... " >&6; }
2442 if eval \${$3+:} false; then :
2443 $as_echo_n "(cached) " >&6
2444 else
2445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2446 /* end confdefs.h. */
2447 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2449 #define $2 innocuous_$2
2450
2451 /* System header to define __stub macros and hopefully few prototypes,
2452 which can conflict with char $2 (); below.
2453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2454 <limits.h> exists even on freestanding compilers. */
2455
2456 #ifdef __STDC__
2457 # include <limits.h>
2458 #else
2459 # include <assert.h>
2460 #endif
2461
2462 #undef $2
2463
2464 /* Override any GCC internal prototype to avoid an error.
2465 Use char because int might match the return type of a GCC
2466 builtin and then its argument prototype would still apply. */
2467 #ifdef __cplusplus
2468 extern "C"
2469 #endif
2470 char $2 ();
2471 /* The GNU C library defines this for functions which it implements
2472 to always fail with ENOSYS. Some functions are actually named
2473 something starting with __ and the normal name is an alias. */
2474 #if defined __stub_$2 || defined __stub___$2
2475 choke me
2476 #endif
2477
2478 int
2479 main ()
2480 {
2481 return $2 ();
2482 ;
2483 return 0;
2484 }
2485 _ACEOF
2486 if ac_fn_c_try_link "$LINENO"; then :
2487 eval "$3=yes"
2488 else
2489 eval "$3=no"
2490 fi
2491 rm -f core conftest.err conftest.$ac_objext \
2492 conftest$ac_exeext conftest.$ac_ext
2493 fi
2494 eval ac_res=\$$3
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2496 $as_echo "$ac_res" >&6; }
2497 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2498
2499 } # ac_fn_c_check_func
2500
2501 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2502 # --------------------------------------------
2503 # Tries to find the compile-time value of EXPR in a program that includes
2504 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2505 # computed
2506 ac_fn_c_compute_int ()
2507 {
2508 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2509 if test "$cross_compiling" = yes; then
2510 # Depending upon the size, compute the lo and hi bounds.
2511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2512 /* end confdefs.h. */
2513 $4
2514 int
2515 main ()
2516 {
2517 static int test_array [1 - 2 * !(($2) >= 0)];
2518 test_array [0] = 0;
2519 return test_array [0];
2520
2521 ;
2522 return 0;
2523 }
2524 _ACEOF
2525 if ac_fn_c_try_compile "$LINENO"; then :
2526 ac_lo=0 ac_mid=0
2527 while :; do
2528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2529 /* end confdefs.h. */
2530 $4
2531 int
2532 main ()
2533 {
2534 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2535 test_array [0] = 0;
2536 return test_array [0];
2537
2538 ;
2539 return 0;
2540 }
2541 _ACEOF
2542 if ac_fn_c_try_compile "$LINENO"; then :
2543 ac_hi=$ac_mid; break
2544 else
2545 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2546 if test $ac_lo -le $ac_mid; then
2547 ac_lo= ac_hi=
2548 break
2549 fi
2550 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2551 fi
2552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2553 done
2554 else
2555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556 /* end confdefs.h. */
2557 $4
2558 int
2559 main ()
2560 {
2561 static int test_array [1 - 2 * !(($2) < 0)];
2562 test_array [0] = 0;
2563 return test_array [0];
2564
2565 ;
2566 return 0;
2567 }
2568 _ACEOF
2569 if ac_fn_c_try_compile "$LINENO"; then :
2570 ac_hi=-1 ac_mid=-1
2571 while :; do
2572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573 /* end confdefs.h. */
2574 $4
2575 int
2576 main ()
2577 {
2578 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2579 test_array [0] = 0;
2580 return test_array [0];
2581
2582 ;
2583 return 0;
2584 }
2585 _ACEOF
2586 if ac_fn_c_try_compile "$LINENO"; then :
2587 ac_lo=$ac_mid; break
2588 else
2589 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2590 if test $ac_mid -le $ac_hi; then
2591 ac_lo= ac_hi=
2592 break
2593 fi
2594 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2595 fi
2596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2597 done
2598 else
2599 ac_lo= ac_hi=
2600 fi
2601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2602 fi
2603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2604 # Binary search between lo and hi bounds.
2605 while test "x$ac_lo" != "x$ac_hi"; do
2606 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2608 /* end confdefs.h. */
2609 $4
2610 int
2611 main ()
2612 {
2613 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2614 test_array [0] = 0;
2615 return test_array [0];
2616
2617 ;
2618 return 0;
2619 }
2620 _ACEOF
2621 if ac_fn_c_try_compile "$LINENO"; then :
2622 ac_hi=$ac_mid
2623 else
2624 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2625 fi
2626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2627 done
2628 case $ac_lo in #((
2629 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2630 '') ac_retval=1 ;;
2631 esac
2632 else
2633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634 /* end confdefs.h. */
2635 $4
2636 static long int longval () { return $2; }
2637 static unsigned long int ulongval () { return $2; }
2638 #include <stdio.h>
2639 #include <stdlib.h>
2640 int
2641 main ()
2642 {
2643
2644 FILE *f = fopen ("conftest.val", "w");
2645 if (! f)
2646 return 1;
2647 if (($2) < 0)
2648 {
2649 long int i = longval ();
2650 if (i != ($2))
2651 return 1;
2652 fprintf (f, "%ld", i);
2653 }
2654 else
2655 {
2656 unsigned long int i = ulongval ();
2657 if (i != ($2))
2658 return 1;
2659 fprintf (f, "%lu", i);
2660 }
2661 /* Do not output a trailing newline, as this causes \r\n confusion
2662 on some platforms. */
2663 return ferror (f) || fclose (f) != 0;
2664
2665 ;
2666 return 0;
2667 }
2668 _ACEOF
2669 if ac_fn_c_try_run "$LINENO"; then :
2670 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2671 else
2672 ac_retval=1
2673 fi
2674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2675 conftest.$ac_objext conftest.beam conftest.$ac_ext
2676 rm -f conftest.val
2677
2678 fi
2679 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2680 as_fn_set_status $ac_retval
2681
2682 } # ac_fn_c_compute_int
2683
2684 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2685 # ---------------------------------------------
2686 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2687 # accordingly.
2688 ac_fn_c_check_decl ()
2689 {
2690 ac_save_ac_compile="$ac_compile"
2691 if test -n "$ac_compile_for_check_decl"; then
2692 ac_compile="$ac_compile_for_check_decl"
2693 fi
2694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2695 as_decl_name=`echo $2|sed 's/ *(.*//'`
2696 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2698 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2699 if eval \${$3+:} false; then :
2700 $as_echo_n "(cached) " >&6
2701 else
2702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2703 /* end confdefs.h. */
2704 $4
2705 int
2706 main ()
2707 {
2708 #ifndef $as_decl_name
2709 #ifdef __cplusplus
2710 (void) $as_decl_use;
2711 #else
2712 (void) $as_decl_name;
2713 #endif
2714 #endif
2715
2716 ;
2717 return 0;
2718 }
2719 _ACEOF
2720 if ac_fn_c_try_compile "$LINENO"; then :
2721 eval "$3=yes"
2722 else
2723 eval "$3=no"
2724 fi
2725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2726 fi
2727 eval ac_res=\$$3
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2729 $as_echo "$ac_res" >&6; }
2730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2731 ac_compile="$ac_save_ac_compile"
2732
2733 } # ac_fn_c_check_decl
2734 cat >config.log <<_ACEOF
2735 This file contains any messages produced by compilers while
2736 running configure, to aid debugging if configure makes a mistake.
2737
2738 It was created by Complexity $as_me 1.13, which was
2739 generated by GNU Autoconf 2.69. Invocation command line was
2740
2741 $ $0 $@
2742
2743 _ACEOF
2744 exec 5>>config.log
2745 {
2746 cat <<_ASUNAME
2747 ## --------- ##
2748 ## Platform. ##
2749 ## --------- ##
2750
2751 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2752 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2753 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2754 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2755 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2756
2757 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2758 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2759
2760 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2761 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2762 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2763 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2764 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2765 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2766 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2767
2768 _ASUNAME
2769
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2772 do
2773 IFS=$as_save_IFS
2774 test -z "$as_dir" && as_dir=.
2775 $as_echo "PATH: $as_dir"
2776 done
2777 IFS=$as_save_IFS
2778
2779 } >&5
2780
2781 cat >&5 <<_ACEOF
2782
2783
2784 ## ----------- ##
2785 ## Core tests. ##
2786 ## ----------- ##
2787
2788 _ACEOF
2789
2790
2791 # Keep a trace of the command line.
2792 # Strip out --no-create and --no-recursion so they do not pile up.
2793 # Strip out --silent because we don't want to record it for future runs.
2794 # Also quote any args containing shell meta-characters.
2795 # Make two passes to allow for proper duplicate-argument suppression.
2796 ac_configure_args=
2797 ac_configure_args0=
2798 ac_configure_args1=
2799 ac_must_keep_next=false
2800 for ac_pass in 1 2
2801 do
2802 for ac_arg
2803 do
2804 case $ac_arg in
2805 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2806 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2807 | -silent | --silent | --silen | --sile | --sil)
2808 continue ;;
2809 *\'*)
2810 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2811 esac
2812 case $ac_pass in
2813 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2814 2)
2815 as_fn_append ac_configure_args1 " '$ac_arg'"
2816 if test $ac_must_keep_next = true; then
2817 ac_must_keep_next=false # Got value, back to normal.
2818 else
2819 case $ac_arg in
2820 *=* | --config-cache | -C | -disable-* | --disable-* \
2821 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2822 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2823 | -with-* | --with-* | -without-* | --without-* | --x)
2824 case "$ac_configure_args0 " in
2825 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2826 esac
2827 ;;
2828 -* ) ac_must_keep_next=true ;;
2829 esac
2830 fi
2831 as_fn_append ac_configure_args " '$ac_arg'"
2832 ;;
2833 esac
2834 done
2835 done
2836 { ac_configure_args0=; unset ac_configure_args0;}
2837 { ac_configure_args1=; unset ac_configure_args1;}
2838
2839 # When interrupted or exit'd, cleanup temporary files, and complete
2840 # config.log. We remove comments because anyway the quotes in there
2841 # would cause problems or look ugly.
2842 # WARNING: Use '\'' to represent an apostrophe within the trap.
2843 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2844 trap 'exit_status=$?
2845 # Save into config.log some information that might help in debugging.
2846 {
2847 echo
2848
2849 $as_echo "## ---------------- ##
2850 ## Cache variables. ##
2851 ## ---------------- ##"
2852 echo
2853 # The following way of writing the cache mishandles newlines in values,
2854 (
2855 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2856 eval ac_val=\$$ac_var
2857 case $ac_val in #(
2858 *${as_nl}*)
2859 case $ac_var in #(
2860 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2861 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2862 esac
2863 case $ac_var in #(
2864 _ | IFS | as_nl) ;; #(
2865 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2866 *) { eval $ac_var=; unset $ac_var;} ;;
2867 esac ;;
2868 esac
2869 done
2870 (set) 2>&1 |
2871 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2872 *${as_nl}ac_space=\ *)
2873 sed -n \
2874 "s/'\''/'\''\\\\'\'''\''/g;
2875 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2876 ;; #(
2877 *)
2878 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2879 ;;
2880 esac |
2881 sort
2882 )
2883 echo
2884
2885 $as_echo "## ----------------- ##
2886 ## Output variables. ##
2887 ## ----------------- ##"
2888 echo
2889 for ac_var in $ac_subst_vars
2890 do
2891 eval ac_val=\$$ac_var
2892 case $ac_val in
2893 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2894 esac
2895 $as_echo "$ac_var='\''$ac_val'\''"
2896 done | sort
2897 echo
2898
2899 if test -n "$ac_subst_files"; then
2900 $as_echo "## ------------------- ##
2901 ## File substitutions. ##
2902 ## ------------------- ##"
2903 echo
2904 for ac_var in $ac_subst_files
2905 do
2906 eval ac_val=\$$ac_var
2907 case $ac_val in
2908 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2909 esac
2910 $as_echo "$ac_var='\''$ac_val'\''"
2911 done | sort
2912 echo
2913 fi
2914
2915 if test -s confdefs.h; then
2916 $as_echo "## ----------- ##
2917 ## confdefs.h. ##
2918 ## ----------- ##"
2919 echo
2920 cat confdefs.h
2921 echo
2922 fi
2923 test "$ac_signal" != 0 &&
2924 $as_echo "$as_me: caught signal $ac_signal"
2925 $as_echo "$as_me: exit $exit_status"
2926 } >&5
2927 rm -f core *.core core.conftest.* &&
2928 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2929 exit $exit_status
2930 ' 0
2931 for ac_signal in 1 2 13 15; do
2932 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2933 done
2934 ac_signal=0
2935
2936 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2937 rm -f -r conftest* confdefs.h
2938
2939 $as_echo "/* confdefs.h */" > confdefs.h
2940
2941 # Predefined preprocessor variables.
2942
2943 cat >>confdefs.h <<_ACEOF
2944 #define PACKAGE_NAME "$PACKAGE_NAME"
2945 _ACEOF
2946
2947 cat >>confdefs.h <<_ACEOF
2948 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2949 _ACEOF
2950
2951 cat >>confdefs.h <<_ACEOF
2952 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2953 _ACEOF
2954
2955 cat >>confdefs.h <<_ACEOF
2956 #define PACKAGE_STRING "$PACKAGE_STRING"
2957 _ACEOF
2958
2959 cat >>confdefs.h <<_ACEOF
2960 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2961 _ACEOF
2962
2963 cat >>confdefs.h <<_ACEOF
2964 #define PACKAGE_URL "$PACKAGE_URL"
2965 _ACEOF
2966
2967
2968 # Let the site file select an alternate cache file if it wants to.
2969 # Prefer an explicitly selected file to automatically selected ones.
2970 ac_site_file1=NONE
2971 ac_site_file2=NONE
2972 if test -n "$CONFIG_SITE"; then
2973 # We do not want a PATH search for config.site.
2974 case $CONFIG_SITE in #((
2975 -*) ac_site_file1=./$CONFIG_SITE;;
2976 */*) ac_site_file1=$CONFIG_SITE;;
2977 *) ac_site_file1=./$CONFIG_SITE;;
2978 esac
2979 elif test "x$prefix" != xNONE; then
2980 ac_site_file1=$prefix/share/config.site
2981 ac_site_file2=$prefix/etc/config.site
2982 else
2983 ac_site_file1=$ac_default_prefix/share/config.site
2984 ac_site_file2=$ac_default_prefix/etc/config.site
2985 fi
2986 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2987 do
2988 test "x$ac_site_file" = xNONE && continue
2989 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2991 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2992 sed 's/^/| /' "$ac_site_file" >&5
2993 . "$ac_site_file" \
2994 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2996 as_fn_error $? "failed to load site script $ac_site_file
2997 See \`config.log' for more details" "$LINENO" 5; }
2998 fi
2999 done
3000
3001 if test -r "$cache_file"; then
3002 # Some versions of bash will fail to source /dev/null (special files
3003 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3004 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3006 $as_echo "$as_me: loading cache $cache_file" >&6;}
3007 case $cache_file in
3008 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3009 *) . "./$cache_file";;
3010 esac
3011 fi
3012 else
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3014 $as_echo "$as_me: creating cache $cache_file" >&6;}
3015 >$cache_file
3016 fi
3017
3018 as_fn_append ac_func_list " _set_invalid_parameter_handler"
3019 as_fn_append ac_header_list " limits.h"
3020 as_fn_append ac_header_list " wchar.h"
3021 as_fn_append ac_header_list " stdint.h"
3022 as_fn_append ac_header_list " inttypes.h"
3023 as_fn_append ac_header_list " sys/mman.h"
3024 as_fn_append ac_func_list " mprotect"
3025 as_fn_append ac_func_list " snprintf"
3026 as_fn_append ac_header_list " unistd.h"
3027 as_fn_append ac_func_list " vasnprintf"
3028 as_fn_append ac_header_list " features.h"
3029 as_fn_append ac_header_list " crtdefs.h"
3030 # Check that the precious variables saved in the cache have kept the same
3031 # value.
3032 ac_cache_corrupted=false
3033 for ac_var in $ac_precious_vars; do
3034 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3035 eval ac_new_set=\$ac_env_${ac_var}_set
3036 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3037 eval ac_new_val=\$ac_env_${ac_var}_value
3038 case $ac_old_set,$ac_new_set in
3039 set,)
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3041 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3042 ac_cache_corrupted=: ;;
3043 ,set)
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3045 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3046 ac_cache_corrupted=: ;;
3047 ,);;
3048 *)
3049 if test "x$ac_old_val" != "x$ac_new_val"; then
3050 # differences in whitespace do not lead to failure.
3051 ac_old_val_w=`echo x $ac_old_val`
3052 ac_new_val_w=`echo x $ac_new_val`
3053 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3055 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3056 ac_cache_corrupted=:
3057 else
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3059 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3060 eval $ac_var=\$ac_old_val
3061 fi
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3063 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3065 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3066 fi;;
3067 esac
3068 # Pass precious variables to config.status.
3069 if test "$ac_new_set" = set; then
3070 case $ac_new_val in
3071 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3072 *) ac_arg=$ac_var=$ac_new_val ;;
3073 esac
3074 case " $ac_configure_args " in
3075 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3076 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3077 esac
3078 fi
3079 done
3080 if $ac_cache_corrupted; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3084 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3085 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3086 fi
3087 ## -------------------- ##
3088 ## Main body of script. ##
3089 ## -------------------- ##
3090
3091 ac_ext=c
3092 ac_cpp='$CPP $CPPFLAGS'
3093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3096
3097
3098
3099 $as_echo "## --------------------------- ##
3100 ## Configuring complexity 1.13 ##
3101 ## --------------------------- ##"
3102
3103
3104 ac_config_headers="$ac_config_headers config.h"
3105
3106 ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile src/Makefile tests/Makefile"
3107
3108 ac_aux_dir=
3109 for ac_dir in build-aux "$srcdir"/build-aux; do
3110 if test -f "$ac_dir/install-sh"; then
3111 ac_aux_dir=$ac_dir
3112 ac_install_sh="$ac_aux_dir/install-sh -c"
3113 break
3114 elif test -f "$ac_dir/install.sh"; then
3115 ac_aux_dir=$ac_dir
3116 ac_install_sh="$ac_aux_dir/install.sh -c"
3117 break
3118 elif test -f "$ac_dir/shtool"; then
3119 ac_aux_dir=$ac_dir
3120 ac_install_sh="$ac_aux_dir/shtool install -c"
3121 break
3122 fi
3123 done
3124 if test -z "$ac_aux_dir"; then
3125 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3126 fi
3127
3128 # These three variables are undocumented and unsupported,
3129 # and are intended to be withdrawn in a future Autoconf release.
3130 # They can cause serious problems if a builder's source tree is in a directory
3131 # whose full name contains unusual characters.
3132 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3133 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3134 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3135
3136
3137
3138 am__api_version='1.16'
3139
3140 # Find a good install program. We prefer a C program (faster),
3141 # so one script is as good as another. But avoid the broken or
3142 # incompatible versions:
3143 # SysV /etc/install, /usr/sbin/install
3144 # SunOS /usr/etc/install
3145 # IRIX /sbin/install
3146 # AIX /bin/install
3147 # AmigaOS /C/install, which installs bootblocks on floppy discs
3148 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3149 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3150 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3151 # OS/2's system install, which has a completely different semantic
3152 # ./install, which can be erroneously created by make from ./install.sh.
3153 # Reject install programs that cannot install multiple files.
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3155 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3156 if test -z "$INSTALL"; then
3157 if ${ac_cv_path_install+:} false; then :
3158 $as_echo_n "(cached) " >&6
3159 else
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 for as_dir in $PATH
3162 do
3163 IFS=$as_save_IFS
3164 test -z "$as_dir" && as_dir=.
3165 # Account for people who put trailing slashes in PATH elements.
3166 case $as_dir/ in #((
3167 ./ | .// | /[cC]/* | \
3168 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3169 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3170 /usr/ucb/* ) ;;
3171 *)
3172 # OSF1 and SCO ODT 3.0 have their own names for install.
3173 # Don't use installbsd from OSF since it installs stuff as root
3174 # by default.
3175 for ac_prog in ginstall scoinst install; do
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3178 if test $ac_prog = install &&
3179 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3180 # AIX install. It has an incompatible calling convention.
3181 :
3182 elif test $ac_prog = install &&
3183 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3184 # program-specific install script used by HP pwplus--don't use.
3185 :
3186 else
3187 rm -rf conftest.one conftest.two conftest.dir
3188 echo one > conftest.one
3189 echo two > conftest.two
3190 mkdir conftest.dir
3191 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3192 test -s conftest.one && test -s conftest.two &&
3193 test -s conftest.dir/conftest.one &&
3194 test -s conftest.dir/conftest.two
3195 then
3196 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3197 break 3
3198 fi
3199 fi
3200 fi
3201 done
3202 done
3203 ;;
3204 esac
3205
3206 done
3207 IFS=$as_save_IFS
3208
3209 rm -rf conftest.one conftest.two conftest.dir
3210
3211 fi
3212 if test "${ac_cv_path_install+set}" = set; then
3213 INSTALL=$ac_cv_path_install
3214 else
3215 # As a last resort, use the slow shell script. Don't cache a
3216 # value for INSTALL within a source directory, because that will
3217 # break other packages using the cache if that directory is
3218 # removed, or if the value is a relative name.
3219 INSTALL=$ac_install_sh
3220 fi
3221 fi
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3223 $as_echo "$INSTALL" >&6; }
3224
3225 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3226 # It thinks the first close brace ends the variable substitution.
3227 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3228
3229 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3230
3231 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3232
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3234 $as_echo_n "checking whether build environment is sane... " >&6; }
3235 # Reject unsafe characters in $srcdir or the absolute working directory
3236 # name. Accept space and tab only in the latter.
3237 am_lf='
3238 '
3239 case `pwd` in
3240 *[\\\"\#\$\&\'\`$am_lf]*)
3241 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3242 esac
3243 case $srcdir in
3244 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3245 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3246 esac
3247
3248 # Do 'set' in a subshell so we don't clobber the current shell's
3249 # arguments. Must try -L first in case configure is actually a
3250 # symlink; some systems play weird games with the mod time of symlinks
3251 # (eg FreeBSD returns the mod time of the symlink's containing
3252 # directory).
3253 if (
3254 am_has_slept=no
3255 for am_try in 1 2; do
3256 echo "timestamp, slept: $am_has_slept" > conftest.file
3257 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3258 if test "$*" = "X"; then
3259 # -L didn't work.
3260 set X `ls -t "$srcdir/configure" conftest.file`
3261 fi
3262 if test "$*" != "X $srcdir/configure conftest.file" \
3263 && test "$*" != "X conftest.file $srcdir/configure"; then
3264
3265 # If neither matched, then we have a broken ls. This can happen
3266 # if, for instance, CONFIG_SHELL is bash and it inherits a
3267 # broken ls alias from the environment. This has actually
3268 # happened. Such a system could not be considered "sane".
3269 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3270 alias in your environment" "$LINENO" 5
3271 fi
3272 if test "$2" = conftest.file || test $am_try -eq 2; then
3273 break
3274 fi
3275 # Just in case.
3276 sleep 1
3277 am_has_slept=yes
3278 done
3279 test "$2" = conftest.file
3280 )
3281 then
3282 # Ok.
3283 :
3284 else
3285 as_fn_error $? "newly created file is older than distributed files!
3286 Check your system clock" "$LINENO" 5
3287 fi
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3289 $as_echo "yes" >&6; }
3290 # If we didn't sleep, we still need to ensure time stamps of config.status and
3291 # generated files are strictly newer.
3292 am_sleep_pid=
3293 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3294 ( sleep 1 ) &
3295 am_sleep_pid=$!
3296 fi
3297
3298 rm -f conftest.file
3299
3300 test "$program_prefix" != NONE &&
3301 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3302 # Use a double $ so make ignores it.
3303 test "$program_suffix" != NONE &&
3304 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3305 # Double any \ or $.
3306 # By default was `s,x,x', remove it if useless.
3307 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3308 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3309
3310 # Expand $ac_aux_dir to an absolute path.
3311 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3312
3313 if test x"${MISSING+set}" != xset; then
3314 case $am_aux_dir in
3315 *\ * | *\ *)
3316 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3317 *)
3318 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3319 esac
3320 fi
3321 # Use eval to expand $SHELL
3322 if eval "$MISSING --is-lightweight"; then
3323 am_missing_run="$MISSING "
3324 else
3325 am_missing_run=
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3327 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3328 fi
3329
3330 if test x"${install_sh+set}" != xset; then
3331 case $am_aux_dir in
3332 *\ * | *\ *)
3333 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3334 *)
3335 install_sh="\${SHELL} $am_aux_dir/install-sh"
3336 esac
3337 fi
3338
3339 # Installed binaries are usually stripped using 'strip' when the user
3340 # run "make install-strip". However 'strip' might not be the right
3341 # tool to use in cross-compilation environments, therefore Automake
3342 # will honor the 'STRIP' environment variable to overrule this program.
3343 if test "$cross_compiling" != no; then
3344 if test -n "$ac_tool_prefix"; then
3345 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3346 set dummy ${ac_tool_prefix}strip; ac_word=$2
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348 $as_echo_n "checking for $ac_word... " >&6; }
3349 if ${ac_cv_prog_STRIP+:} false; then :
3350 $as_echo_n "(cached) " >&6
3351 else
3352 if test -n "$STRIP"; then
3353 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3354 else
3355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356 for as_dir in $PATH
3357 do
3358 IFS=$as_save_IFS
3359 test -z "$as_dir" && as_dir=.
3360 for ac_exec_ext in '' $ac_executable_extensions; do
3361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3362 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3364 break 2
3365 fi
3366 done
3367 done
3368 IFS=$as_save_IFS
3369
3370 fi
3371 fi
3372 STRIP=$ac_cv_prog_STRIP
3373 if test -n "$STRIP"; then
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3375 $as_echo "$STRIP" >&6; }
3376 else
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378 $as_echo "no" >&6; }
3379 fi
3380
3381
3382 fi
3383 if test -z "$ac_cv_prog_STRIP"; then
3384 ac_ct_STRIP=$STRIP
3385 # Extract the first word of "strip", so it can be a program name with args.
3386 set dummy strip; ac_word=$2
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3388 $as_echo_n "checking for $ac_word... " >&6; }
3389 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3390 $as_echo_n "(cached) " >&6
3391 else
3392 if test -n "$ac_ct_STRIP"; then
3393 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3394 else
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 for as_dir in $PATH
3397 do
3398 IFS=$as_save_IFS
3399 test -z "$as_dir" && as_dir=.
3400 for ac_exec_ext in '' $ac_executable_extensions; do
3401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3402 ac_cv_prog_ac_ct_STRIP="strip"
3403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3404 break 2
3405 fi
3406 done
3407 done
3408 IFS=$as_save_IFS
3409
3410 fi
3411 fi
3412 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3413 if test -n "$ac_ct_STRIP"; then
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3415 $as_echo "$ac_ct_STRIP" >&6; }
3416 else
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 $as_echo "no" >&6; }
3419 fi
3420
3421 if test "x$ac_ct_STRIP" = x; then
3422 STRIP=":"
3423 else
3424 case $cross_compiling:$ac_tool_warned in
3425 yes:)
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3428 ac_tool_warned=yes ;;
3429 esac
3430 STRIP=$ac_ct_STRIP
3431 fi
3432 else
3433 STRIP="$ac_cv_prog_STRIP"
3434 fi
3435
3436 fi
3437 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3438
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3440 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3441 if test -z "$MKDIR_P"; then
3442 if ${ac_cv_path_mkdir+:} false; then :
3443 $as_echo_n "(cached) " >&6
3444 else
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3447 do
3448 IFS=$as_save_IFS
3449 test -z "$as_dir" && as_dir=.
3450 for ac_prog in mkdir gmkdir; do
3451 for ac_exec_ext in '' $ac_executable_extensions; do
3452 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3453 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3454 'mkdir (GNU coreutils) '* | \
3455 'mkdir (coreutils) '* | \
3456 'mkdir (fileutils) '4.1*)
3457 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3458 break 3;;
3459 esac
3460 done
3461 done
3462 done
3463 IFS=$as_save_IFS
3464
3465 fi
3466
3467 test -d ./--version && rmdir ./--version
3468 if test "${ac_cv_path_mkdir+set}" = set; then
3469 MKDIR_P="$ac_cv_path_mkdir -p"
3470 else
3471 # As a last resort, use the slow shell script. Don't cache a
3472 # value for MKDIR_P within a source directory, because that will
3473 # break other packages using the cache if that directory is
3474 # removed, or if the value is a relative name.
3475 MKDIR_P="$ac_install_sh -d"
3476 fi
3477 fi
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3479 $as_echo "$MKDIR_P" >&6; }
3480
3481 for ac_prog in gawk mawk nawk awk
3482 do
3483 # Extract the first word of "$ac_prog", so it can be a program name with args.
3484 set dummy $ac_prog; ac_word=$2
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3486 $as_echo_n "checking for $ac_word... " >&6; }
3487 if ${ac_cv_prog_AWK+:} false; then :
3488 $as_echo_n "(cached) " >&6
3489 else
3490 if test -n "$AWK"; then
3491 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3492 else
3493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494 for as_dir in $PATH
3495 do
3496 IFS=$as_save_IFS
3497 test -z "$as_dir" && as_dir=.
3498 for ac_exec_ext in '' $ac_executable_extensions; do
3499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3500 ac_cv_prog_AWK="$ac_prog"
3501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3502 break 2
3503 fi
3504 done
3505 done
3506 IFS=$as_save_IFS
3507
3508 fi
3509 fi
3510 AWK=$ac_cv_prog_AWK
3511 if test -n "$AWK"; then
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3513 $as_echo "$AWK" >&6; }
3514 else
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3516 $as_echo "no" >&6; }
3517 fi
3518
3519
3520 test -n "$AWK" && break
3521 done
3522
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3524 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3525 set x ${MAKE-make}
3526 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3527 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3528 $as_echo_n "(cached) " >&6
3529 else
3530 cat >conftest.make <<\_ACEOF
3531 SHELL = /bin/sh
3532 all:
3533 @echo '@@@%%%=$(MAKE)=@@@%%%'
3534 _ACEOF
3535 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3536 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3537 *@@@%%%=?*=@@@%%%*)
3538 eval ac_cv_prog_make_${ac_make}_set=yes;;
3539 *)
3540 eval ac_cv_prog_make_${ac_make}_set=no;;
3541 esac
3542 rm -f conftest.make
3543 fi
3544 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3546 $as_echo "yes" >&6; }
3547 SET_MAKE=
3548 else
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3550 $as_echo "no" >&6; }
3551 SET_MAKE="MAKE=${MAKE-make}"
3552 fi
3553
3554 rm -rf .tst 2>/dev/null
3555 mkdir .tst 2>/dev/null
3556 if test -d .tst; then
3557 am__leading_dot=.
3558 else
3559 am__leading_dot=_
3560 fi
3561 rmdir .tst 2>/dev/null
3562
3563 # Check whether --enable-silent-rules was given.
3564 if test "${enable_silent_rules+set}" = set; then :
3565 enableval=$enable_silent_rules;
3566 fi
3567
3568 case $enable_silent_rules in # (((
3569 yes) AM_DEFAULT_VERBOSITY=0;;
3570 no) AM_DEFAULT_VERBOSITY=1;;
3571 *) AM_DEFAULT_VERBOSITY=1;;
3572 esac
3573 am_make=${MAKE-make}
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3575 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3576 if ${am_cv_make_support_nested_variables+:} false; then :
3577 $as_echo_n "(cached) " >&6
3578 else
3579 if $as_echo 'TRUE=$(BAR$(V))
3580 BAR0=false
3581 BAR1=true
3582 V=1
3583 am__doit:
3584 @$(TRUE)
3585 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3586 am_cv_make_support_nested_variables=yes
3587 else
3588 am_cv_make_support_nested_variables=no
3589 fi
3590 fi
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3592 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3593 if test $am_cv_make_support_nested_variables = yes; then
3594 AM_V='$(V)'
3595 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3596 else
3597 AM_V=$AM_DEFAULT_VERBOSITY
3598 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3599 fi
3600 AM_BACKSLASH='\'
3601
3602 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3603 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3604 # is not polluted with repeated "-I."
3605 am__isrc=' -I$(srcdir)'
3606 # test to see if srcdir already configured
3607 if test -f $srcdir/config.status; then
3608 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3609 fi
3610 fi
3611
3612 # test whether we have cygpath
3613 if test -z "$CYGPATH_W"; then
3614 if (cygpath --version) >/dev/null 2>/dev/null; then
3615 CYGPATH_W='cygpath -w'
3616 else
3617 CYGPATH_W=echo
3618 fi
3619 fi
3620
3621
3622 # Define the identity of the package.
3623 PACKAGE='complexity'
3624 VERSION='1.13'
3625
3626
3627 cat >>confdefs.h <<_ACEOF
3628 #define PACKAGE "$PACKAGE"
3629 _ACEOF
3630
3631
3632 cat >>confdefs.h <<_ACEOF
3633 #define VERSION "$VERSION"
3634 _ACEOF
3635
3636 # Some tools Automake needs.
3637
3638 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3639
3640
3641 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3642
3643
3644 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3645
3646
3647 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3648
3649
3650 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3651
3652 # For better backward compatibility. To be removed once Automake 1.9.x
3653 # dies out for good. For more background, see:
3654 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3655 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3656 mkdir_p='$(MKDIR_P)'
3657
3658 # We need awk for the "check" target (and possibly the TAP driver). The
3659 # system "awk" is bad on some platforms.
3660 # Always define AMTAR for backward compatibility. Yes, it's still used
3661 # in the wild :-( We should find a proper way to deprecate it ...
3662 AMTAR='$${TAR-tar}'
3663
3664
3665 # We'll loop over all known methods to create a tar archive until one works.
3666 _am_tools='gnutar pax cpio none'
3667
3668 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3669
3670
3671
3672
3673
3674
3675 # POSIX will say in a future version that running "rm -f" with no argument
3676 # is OK; and we want to be able to make that assumption in our Makefile
3677 # recipes. So use an aggressive probe to check that the usage we want is
3678 # actually supported "in the wild" to an acceptable degree.
3679 # See automake bug#10828.
3680 # To make any issue more visible, cause the running configure to be aborted
3681 # by default if the 'rm' program in use doesn't match our expectations; the
3682 # user can still override this though.
3683 if rm -f && rm -fr && rm -rf; then : OK; else
3684 cat >&2 <<'END'
3685 Oops!
3686
3687 Your 'rm' program seems unable to run without file operands specified
3688 on the command line, even when the '-f' option is present. This is contrary
3689 to the behaviour of most rm programs out there, and not conforming with
3690 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3691
3692 Please tell [email protected] about your system, including the value
3693 of your $PATH and any error possibly output before this message. This
3694 can help us improve future automake versions.
3695
3696 END
3697 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3698 echo 'Configuration will proceed anyway, since you have set the' >&2
3699 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3700 echo >&2
3701 else
3702 cat >&2 <<'END'
3703 Aborting the configuration process, to ensure you take notice of the issue.
3704
3705 You can download and install GNU coreutils to get an 'rm' implementation
3706 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3707
3708 If you want to complete the configuration process using your problematic
3709 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3710 to "yes", and re-run configure.
3711
3712 END
3713 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3714 fi
3715 fi
3716
3717 DEPDIR="${am__leading_dot}deps"
3718
3719 ac_config_commands="$ac_config_commands depfiles"
3720
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3722 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3723 cat > confinc.mk << 'END'
3724 am__doit:
3725 @echo this is the am__doit target >confinc.out
3726 .PHONY: am__doit
3727 END
3728 am__include="#"
3729 am__quote=
3730 # BSD make does it like this.
3731 echo '.include "confinc.mk" # ignored' > confmf.BSD
3732 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3733 echo 'include confinc.mk # ignored' > confmf.GNU
3734 _am_result=no
3735 for s in GNU BSD; do
3736 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3737 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3738 ac_status=$?
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); }
3741 case $?:`cat confinc.out 2>/dev/null` in #(
3742 '0:this is the am__doit target') :
3743 case $s in #(
3744 BSD) :
3745 am__include='.include' am__quote='"' ;; #(
3746 *) :
3747 am__include='include' am__quote='' ;;
3748 esac ;; #(
3749 *) :
3750 ;;
3751 esac
3752 if test "$am__include" != "#"; then
3753 _am_result="yes ($s style)"
3754 break
3755 fi
3756 done
3757 rm -f confinc.* confmf.*
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3759 $as_echo "${_am_result}" >&6; }
3760
3761 # Check whether --enable-dependency-tracking was given.
3762 if test "${enable_dependency_tracking+set}" = set; then :
3763 enableval=$enable_dependency_tracking;
3764 fi
3765
3766 if test "x$enable_dependency_tracking" != xno; then
3767 am_depcomp="$ac_aux_dir/depcomp"
3768 AMDEPBACKSLASH='\'
3769 am__nodep='_no'
3770 fi
3771 if test "x$enable_dependency_tracking" != xno; then
3772 AMDEP_TRUE=
3773 AMDEP_FALSE='#'
3774 else
3775 AMDEP_TRUE='#'
3776 AMDEP_FALSE=
3777 fi
3778
3779
3780 ac_ext=c
3781 ac_cpp='$CPP $CPPFLAGS'
3782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3785 if test -n "$ac_tool_prefix"; then
3786 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3787 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3789 $as_echo_n "checking for $ac_word... " >&6; }
3790 if ${ac_cv_prog_CC+:} false; then :
3791 $as_echo_n "(cached) " >&6
3792 else
3793 if test -n "$CC"; then
3794 ac_cv_prog_CC="$CC" # Let the user override the test.
3795 else
3796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797 for as_dir in $PATH
3798 do
3799 IFS=$as_save_IFS
3800 test -z "$as_dir" && as_dir=.
3801 for ac_exec_ext in '' $ac_executable_extensions; do
3802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3803 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3805 break 2
3806 fi
3807 done
3808 done
3809 IFS=$as_save_IFS
3810
3811 fi
3812 fi
3813 CC=$ac_cv_prog_CC
3814 if test -n "$CC"; then
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3816 $as_echo "$CC" >&6; }
3817 else
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3819 $as_echo "no" >&6; }
3820 fi
3821
3822
3823 fi
3824 if test -z "$ac_cv_prog_CC"; then
3825 ac_ct_CC=$CC
3826 # Extract the first word of "gcc", so it can be a program name with args.
3827 set dummy gcc; ac_word=$2
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3829 $as_echo_n "checking for $ac_word... " >&6; }
3830 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3831 $as_echo_n "(cached) " >&6
3832 else
3833 if test -n "$ac_ct_CC"; then
3834 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3835 else
3836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 for as_dir in $PATH
3838 do
3839 IFS=$as_save_IFS
3840 test -z "$as_dir" && as_dir=.
3841 for ac_exec_ext in '' $ac_executable_extensions; do
3842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3843 ac_cv_prog_ac_ct_CC="gcc"
3844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3845 break 2
3846 fi
3847 done
3848 done
3849 IFS=$as_save_IFS
3850
3851 fi
3852 fi
3853 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3854 if test -n "$ac_ct_CC"; then
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3856 $as_echo "$ac_ct_CC" >&6; }
3857 else
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3859 $as_echo "no" >&6; }
3860 fi
3861
3862 if test "x$ac_ct_CC" = x; then
3863 CC=""
3864 else
3865 case $cross_compiling:$ac_tool_warned in
3866 yes:)
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3869 ac_tool_warned=yes ;;
3870 esac
3871 CC=$ac_ct_CC
3872 fi
3873 else
3874 CC="$ac_cv_prog_CC"
3875 fi
3876
3877 if test -z "$CC"; then
3878 if test -n "$ac_tool_prefix"; then
3879 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3880 set dummy ${ac_tool_prefix}cc; ac_word=$2
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3882 $as_echo_n "checking for $ac_word... " >&6; }
3883 if ${ac_cv_prog_CC+:} false; then :
3884 $as_echo_n "(cached) " >&6
3885 else
3886 if test -n "$CC"; then
3887 ac_cv_prog_CC="$CC" # Let the user override the test.
3888 else
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 for as_dir in $PATH
3891 do
3892 IFS=$as_save_IFS
3893 test -z "$as_dir" && as_dir=.
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3896 ac_cv_prog_CC="${ac_tool_prefix}cc"
3897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3898 break 2
3899 fi
3900 done
3901 done
3902 IFS=$as_save_IFS
3903
3904 fi
3905 fi
3906 CC=$ac_cv_prog_CC
3907 if test -n "$CC"; then
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3909 $as_echo "$CC" >&6; }
3910 else
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3912 $as_echo "no" >&6; }
3913 fi
3914
3915
3916 fi
3917 fi
3918 if test -z "$CC"; then
3919 # Extract the first word of "cc", so it can be a program name with args.
3920 set dummy cc; ac_word=$2
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3922 $as_echo_n "checking for $ac_word... " >&6; }
3923 if ${ac_cv_prog_CC+:} false; then :
3924 $as_echo_n "(cached) " >&6
3925 else
3926 if test -n "$CC"; then
3927 ac_cv_prog_CC="$CC" # Let the user override the test.
3928 else
3929 ac_prog_rejected=no
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 for as_dir in $PATH
3932 do
3933 IFS=$as_save_IFS
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3937 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3938 ac_prog_rejected=yes
3939 continue
3940 fi
3941 ac_cv_prog_CC="cc"
3942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3943 break 2
3944 fi
3945 done
3946 done
3947 IFS=$as_save_IFS
3948
3949 if test $ac_prog_rejected = yes; then
3950 # We found a bogon in the path, so make sure we never use it.
3951 set dummy $ac_cv_prog_CC
3952 shift
3953 if test $# != 0; then
3954 # We chose a different compiler from the bogus one.
3955 # However, it has the same basename, so the bogon will be chosen
3956 # first if we set CC to just the basename; use the full file name.
3957 shift
3958 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3959 fi
3960 fi
3961 fi
3962 fi
3963 CC=$ac_cv_prog_CC
3964 if test -n "$CC"; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3966 $as_echo "$CC" >&6; }
3967 else
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969 $as_echo "no" >&6; }
3970 fi
3971
3972
3973 fi
3974 if test -z "$CC"; then
3975 if test -n "$ac_tool_prefix"; then
3976 for ac_prog in cl.exe
3977 do
3978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981 $as_echo_n "checking for $ac_word... " >&6; }
3982 if ${ac_cv_prog_CC+:} false; then :
3983 $as_echo_n "(cached) " >&6
3984 else
3985 if test -n "$CC"; then
3986 ac_cv_prog_CC="$CC" # Let the user override the test.
3987 else
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3990 do
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3995 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3997 break 2
3998 fi
3999 done
4000 done
4001 IFS=$as_save_IFS
4002
4003 fi
4004 fi
4005 CC=$ac_cv_prog_CC
4006 if test -n "$CC"; then
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4008 $as_echo "$CC" >&6; }
4009 else
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011 $as_echo "no" >&6; }
4012 fi
4013
4014
4015 test -n "$CC" && break
4016 done
4017 fi
4018 if test -z "$CC"; then
4019 ac_ct_CC=$CC
4020 for ac_prog in cl.exe
4021 do
4022 # Extract the first word of "$ac_prog", so it can be a program name with args.
4023 set dummy $ac_prog; ac_word=$2
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4025 $as_echo_n "checking for $ac_word... " >&6; }
4026 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4027 $as_echo_n "(cached) " >&6
4028 else
4029 if test -n "$ac_ct_CC"; then
4030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4031 else
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 for as_dir in $PATH
4034 do
4035 IFS=$as_save_IFS
4036 test -z "$as_dir" && as_dir=.
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4039 ac_cv_prog_ac_ct_CC="$ac_prog"
4040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4041 break 2
4042 fi
4043 done
4044 done
4045 IFS=$as_save_IFS
4046
4047 fi
4048 fi
4049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4050 if test -n "$ac_ct_CC"; then
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4052 $as_echo "$ac_ct_CC" >&6; }
4053 else
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055 $as_echo "no" >&6; }
4056 fi
4057
4058
4059 test -n "$ac_ct_CC" && break
4060 done
4061
4062 if test "x$ac_ct_CC" = x; then
4063 CC=""
4064 else
4065 case $cross_compiling:$ac_tool_warned in
4066 yes:)
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4069 ac_tool_warned=yes ;;
4070 esac
4071 CC=$ac_ct_CC
4072 fi
4073 fi
4074
4075 fi
4076 if test -z "$CC"; then
4077 if test -n "$ac_tool_prefix"; then
4078 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4079 set dummy ${ac_tool_prefix}clang; ac_word=$2
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4081 $as_echo_n "checking for $ac_word... " >&6; }
4082 if ${ac_cv_prog_CC+:} false; then :
4083 $as_echo_n "(cached) " >&6
4084 else
4085 if test -n "$CC"; then
4086 ac_cv_prog_CC="$CC" # Let the user override the test.
4087 else
4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 for as_dir in $PATH
4090 do
4091 IFS=$as_save_IFS
4092 test -z "$as_dir" && as_dir=.
4093 for ac_exec_ext in '' $ac_executable_extensions; do
4094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4095 ac_cv_prog_CC="${ac_tool_prefix}clang"
4096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4097 break 2
4098 fi
4099 done
4100 done
4101 IFS=$as_save_IFS
4102
4103 fi
4104 fi
4105 CC=$ac_cv_prog_CC
4106 if test -n "$CC"; then
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4108 $as_echo "$CC" >&6; }
4109 else
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111 $as_echo "no" >&6; }
4112 fi
4113
4114
4115 fi
4116 if test -z "$ac_cv_prog_CC"; then
4117 ac_ct_CC=$CC
4118 # Extract the first word of "clang", so it can be a program name with args.
4119 set dummy clang; ac_word=$2
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4121 $as_echo_n "checking for $ac_word... " >&6; }
4122 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4123 $as_echo_n "(cached) " >&6
4124 else
4125 if test -n "$ac_ct_CC"; then
4126 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4127 else
4128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 for as_dir in $PATH
4130 do
4131 IFS=$as_save_IFS
4132 test -z "$as_dir" && as_dir=.
4133 for ac_exec_ext in '' $ac_executable_extensions; do
4134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4135 ac_cv_prog_ac_ct_CC="clang"
4136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4137 break 2
4138 fi
4139 done
4140 done
4141 IFS=$as_save_IFS
4142
4143 fi
4144 fi
4145 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4146 if test -n "$ac_ct_CC"; then
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4148 $as_echo "$ac_ct_CC" >&6; }
4149 else
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151 $as_echo "no" >&6; }
4152 fi
4153
4154 if test "x$ac_ct_CC" = x; then
4155 CC=""
4156 else
4157 case $cross_compiling:$ac_tool_warned in
4158 yes:)
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4161 ac_tool_warned=yes ;;
4162 esac
4163 CC=$ac_ct_CC
4164 fi
4165 else
4166 CC="$ac_cv_prog_CC"
4167 fi
4168
4169 fi
4170
4171
4172 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4174 as_fn_error $? "no acceptable C compiler found in \$PATH
4175 See \`config.log' for more details" "$LINENO" 5; }
4176
4177 # Provide some information about the compiler.
4178 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4179 set X $ac_compile
4180 ac_compiler=$2
4181 for ac_option in --version -v -V -qversion -version; do
4182 { { ac_try="$ac_compiler $ac_option >&5"
4183 case "(($ac_try" in
4184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4185 *) ac_try_echo=$ac_try;;
4186 esac
4187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4188 $as_echo "$ac_try_echo"; } >&5
4189 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4190 ac_status=$?
4191 if test -s conftest.err; then
4192 sed '10a\
4193 ... rest of stderr output deleted ...
4194 10q' conftest.err >conftest.er1
4195 cat conftest.er1 >&5
4196 fi
4197 rm -f conftest.er1 conftest.err
4198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4199 test $ac_status = 0; }
4200 done
4201
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4204
4205 int
4206 main ()
4207 {
4208
4209 ;
4210 return 0;
4211 }
4212 _ACEOF
4213 ac_clean_files_save=$ac_clean_files
4214 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4215 # Try to create an executable without -o first, disregard a.out.
4216 # It will help us diagnose broken compilers, and finding out an intuition
4217 # of exeext.
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4219 $as_echo_n "checking whether the C compiler works... " >&6; }
4220 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4221
4222 # The possible output files:
4223 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4224
4225 ac_rmfiles=
4226 for ac_file in $ac_files
4227 do
4228 case $ac_file in
4229 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4230 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4231 esac
4232 done
4233 rm -f $ac_rmfiles
4234
4235 if { { ac_try="$ac_link_default"
4236 case "(($ac_try" in
4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238 *) ac_try_echo=$ac_try;;
4239 esac
4240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4241 $as_echo "$ac_try_echo"; } >&5
4242 (eval "$ac_link_default") 2>&5
4243 ac_status=$?
4244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4245 test $ac_status = 0; }; then :
4246 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4247 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4248 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4249 # so that the user can short-circuit this test for compilers unknown to
4250 # Autoconf.
4251 for ac_file in $ac_files ''
4252 do
4253 test -f "$ac_file" || continue
4254 case $ac_file in
4255 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4256 ;;
4257 [ab].out )
4258 # We found the default executable, but exeext='' is most
4259 # certainly right.
4260 break;;
4261 *.* )
4262 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4263 then :; else
4264 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4265 fi
4266 # We set ac_cv_exeext here because the later test for it is not
4267 # safe: cross compilers may not add the suffix if given an `-o'
4268 # argument, so we may need to know it at that point already.
4269 # Even if this section looks crufty: it has the advantage of
4270 # actually working.
4271 break;;
4272 * )
4273 break;;
4274 esac
4275 done
4276 test "$ac_cv_exeext" = no && ac_cv_exeext=
4277
4278 else
4279 ac_file=''
4280 fi
4281 if test -z "$ac_file"; then :
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283 $as_echo "no" >&6; }
4284 $as_echo "$as_me: failed program was:" >&5
4285 sed 's/^/| /' conftest.$ac_ext >&5
4286
4287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4289 as_fn_error 77 "C compiler cannot create executables
4290 See \`config.log' for more details" "$LINENO" 5; }
4291 else
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4293 $as_echo "yes" >&6; }
4294 fi
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4296 $as_echo_n "checking for C compiler default output file name... " >&6; }
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4298 $as_echo "$ac_file" >&6; }
4299 ac_exeext=$ac_cv_exeext
4300
4301 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4302 ac_clean_files=$ac_clean_files_save
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4304 $as_echo_n "checking for suffix of executables... " >&6; }
4305 if { { ac_try="$ac_link"
4306 case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4309 esac
4310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4311 $as_echo "$ac_try_echo"; } >&5
4312 (eval "$ac_link") 2>&5
4313 ac_status=$?
4314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4315 test $ac_status = 0; }; then :
4316 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4317 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4318 # work properly (i.e., refer to `conftest.exe'), while it won't with
4319 # `rm'.
4320 for ac_file in conftest.exe conftest conftest.*; do
4321 test -f "$ac_file" || continue
4322 case $ac_file in
4323 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4324 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4325 break;;
4326 * ) break;;
4327 esac
4328 done
4329 else
4330 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4332 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4333 See \`config.log' for more details" "$LINENO" 5; }
4334 fi
4335 rm -f conftest conftest$ac_cv_exeext
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4337 $as_echo "$ac_cv_exeext" >&6; }
4338
4339 rm -f conftest.$ac_ext
4340 EXEEXT=$ac_cv_exeext
4341 ac_exeext=$EXEEXT
4342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h. */
4344 #include <stdio.h>
4345 int
4346 main ()
4347 {
4348 FILE *f = fopen ("conftest.out", "w");
4349 return ferror (f) || fclose (f) != 0;
4350
4351 ;
4352 return 0;
4353 }
4354 _ACEOF
4355 ac_clean_files="$ac_clean_files conftest.out"
4356 # Check that the compiler produces executables we can run. If not, either
4357 # the compiler is broken, or we cross compile.
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4359 $as_echo_n "checking whether we are cross compiling... " >&6; }
4360 if test "$cross_compiling" != yes; then
4361 { { ac_try="$ac_link"
4362 case "(($ac_try" in
4363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4364 *) ac_try_echo=$ac_try;;
4365 esac
4366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4367 $as_echo "$ac_try_echo"; } >&5
4368 (eval "$ac_link") 2>&5
4369 ac_status=$?
4370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4371 test $ac_status = 0; }
4372 if { ac_try='./conftest$ac_cv_exeext'
4373 { { case "(($ac_try" in
4374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375 *) ac_try_echo=$ac_try;;
4376 esac
4377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4378 $as_echo "$ac_try_echo"; } >&5
4379 (eval "$ac_try") 2>&5
4380 ac_status=$?
4381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4382 test $ac_status = 0; }; }; then
4383 cross_compiling=no
4384 else
4385 if test "$cross_compiling" = maybe; then
4386 cross_compiling=yes
4387 else
4388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4390 as_fn_error $? "cannot run C compiled programs.
4391 If you meant to cross compile, use \`--host'.
4392 See \`config.log' for more details" "$LINENO" 5; }
4393 fi
4394 fi
4395 fi
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4397 $as_echo "$cross_compiling" >&6; }
4398
4399 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4400 ac_clean_files=$ac_clean_files_save
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4402 $as_echo_n "checking for suffix of object files... " >&6; }
4403 if ${ac_cv_objext+:} false; then :
4404 $as_echo_n "(cached) " >&6
4405 else
4406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4407 /* end confdefs.h. */
4408
4409 int
4410 main ()
4411 {
4412
4413 ;
4414 return 0;
4415 }
4416 _ACEOF
4417 rm -f conftest.o conftest.obj
4418 if { { ac_try="$ac_compile"
4419 case "(($ac_try" in
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4422 esac
4423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4424 $as_echo "$ac_try_echo"; } >&5
4425 (eval "$ac_compile") 2>&5
4426 ac_status=$?
4427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4428 test $ac_status = 0; }; then :
4429 for ac_file in conftest.o conftest.obj conftest.*; do
4430 test -f "$ac_file" || continue;
4431 case $ac_file in
4432 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4433 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4434 break;;
4435 esac
4436 done
4437 else
4438 $as_echo "$as_me: failed program was:" >&5
4439 sed 's/^/| /' conftest.$ac_ext >&5
4440
4441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4443 as_fn_error $? "cannot compute suffix of object files: cannot compile
4444 See \`config.log' for more details" "$LINENO" 5; }
4445 fi
4446 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4447 fi
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4449 $as_echo "$ac_cv_objext" >&6; }
4450 OBJEXT=$ac_cv_objext
4451 ac_objext=$OBJEXT
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4453 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4454 if ${ac_cv_c_compiler_gnu+:} false; then :
4455 $as_echo_n "(cached) " >&6
4456 else
4457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458 /* end confdefs.h. */
4459
4460 int
4461 main ()
4462 {
4463 #ifndef __GNUC__
4464 choke me
4465 #endif
4466
4467 ;
4468 return 0;
4469 }
4470 _ACEOF
4471 if ac_fn_c_try_compile "$LINENO"; then :
4472 ac_compiler_gnu=yes
4473 else
4474 ac_compiler_gnu=no
4475 fi
4476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4477 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4478
4479 fi
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4481 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4482 if test $ac_compiler_gnu = yes; then
4483 GCC=yes
4484 else
4485 GCC=
4486 fi
4487 ac_test_CFLAGS=${CFLAGS+set}
4488 ac_save_CFLAGS=$CFLAGS
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4490 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4491 if ${ac_cv_prog_cc_g+:} false; then :
4492 $as_echo_n "(cached) " >&6
4493 else
4494 ac_save_c_werror_flag=$ac_c_werror_flag
4495 ac_c_werror_flag=yes
4496 ac_cv_prog_cc_g=no
4497 CFLAGS="-g"
4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h. */
4500
4501 int
4502 main ()
4503 {
4504
4505 ;
4506 return 0;
4507 }
4508 _ACEOF
4509 if ac_fn_c_try_compile "$LINENO"; then :
4510 ac_cv_prog_cc_g=yes
4511 else
4512 CFLAGS=""
4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514 /* end confdefs.h. */
4515
4516 int
4517 main ()
4518 {
4519
4520 ;
4521 return 0;
4522 }
4523 _ACEOF
4524 if ac_fn_c_try_compile "$LINENO"; then :
4525
4526 else
4527 ac_c_werror_flag=$ac_save_c_werror_flag
4528 CFLAGS="-g"
4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4531
4532 int
4533 main ()
4534 {
4535
4536 ;
4537 return 0;
4538 }
4539 _ACEOF
4540 if ac_fn_c_try_compile "$LINENO"; then :
4541 ac_cv_prog_cc_g=yes
4542 fi
4543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4544 fi
4545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4546 fi
4547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4548 ac_c_werror_flag=$ac_save_c_werror_flag
4549 fi
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4551 $as_echo "$ac_cv_prog_cc_g" >&6; }
4552 if test "$ac_test_CFLAGS" = set; then
4553 CFLAGS=$ac_save_CFLAGS
4554 elif test $ac_cv_prog_cc_g = yes; then
4555 if test "$GCC" = yes; then
4556 CFLAGS="-g -O2"
4557 else
4558 CFLAGS="-g"
4559 fi
4560 else
4561 if test "$GCC" = yes; then
4562 CFLAGS="-O2"
4563 else
4564 CFLAGS=
4565 fi
4566 fi
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4568 $as_echo_n "checking for $CC option to enable C11 features... " >&6; }
4569 if ${ac_cv_prog_cc_c11+:} false; then :
4570 $as_echo_n "(cached) " >&6
4571 else
4572 ac_cv_prog_cc_c11=no
4573 ac_save_CC=$CC
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4576 #include <stdarg.h>
4577 #include <stdbool.h>
4578 #include <stddef.h>
4579 #include <stdlib.h>
4580 #include <wchar.h>
4581 #include <stdio.h>
4582
4583 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4584 #define debug(...) fprintf (stderr, __VA_ARGS__)
4585 #define showlist(...) puts (#__VA_ARGS__)
4586 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4587 static void
4588 test_varargs_macros (void)
4589 {
4590 int x = 1234;
4591 int y = 5678;
4592 debug ("Flag");
4593 debug ("X = %d\n", x);
4594 showlist (The first, second, and third items.);
4595 report (x>y, "x is %d but y is %d", x, y);
4596 }
4597
4598 // Check long long types.
4599 #define BIG64 18446744073709551615ull
4600 #define BIG32 4294967295ul
4601 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4602 #if !BIG_OK
4603 your preprocessor is broken;
4604 #endif
4605 #if BIG_OK
4606 #else
4607 your preprocessor is broken;
4608 #endif
4609 static long long int bignum = -9223372036854775807LL;
4610 static unsigned long long int ubignum = BIG64;
4611
4612 struct incomplete_array
4613 {
4614 int datasize;
4615 double data[];
4616 };
4617
4618 struct named_init {
4619 int number;
4620 const wchar_t *name;
4621 double average;
4622 };
4623
4624 typedef const char *ccp;
4625
4626 static inline int
4627 test_restrict (ccp restrict text)
4628 {
4629 // See if C++-style comments work.
4630 // Iterate through items via the restricted pointer.
4631 // Also check for declarations in for loops.
4632 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4633 continue;
4634 return 0;
4635 }
4636
4637 // Check varargs and va_copy.
4638 static bool
4639 test_varargs (const char *format, ...)
4640 {
4641 va_list args;
4642 va_start (args, format);
4643 va_list args_copy;
4644 va_copy (args_copy, args);
4645
4646 const char *str = "";
4647 int number = 0;
4648 float fnumber = 0;
4649
4650 while (*format)
4651 {
4652 switch (*format++)
4653 {
4654 case 's': // string
4655 str = va_arg (args_copy, const char *);
4656 break;
4657 case 'd': // int
4658 number = va_arg (args_copy, int);
4659 break;
4660 case 'f': // float
4661 fnumber = va_arg (args_copy, double);
4662 break;
4663 default:
4664 break;
4665 }
4666 }
4667 va_end (args_copy);
4668 va_end (args);
4669
4670 return *str && number && fnumber;
4671 }
4672 // Check _Alignas.
4673 char _Alignas (double) aligned_as_double;
4674 char _Alignas (0) no_special_alignment;
4675 extern char aligned_as_int;
4676 char _Alignas (0) _Alignas (int) aligned_as_int;
4677
4678 // Check _Alignof.
4679 enum
4680 {
4681 int_alignment = _Alignof (int),
4682 int_array_alignment = _Alignof (int[100]),
4683 char_alignment = _Alignof (char)
4684 };
4685 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
4686
4687 // Check _Noreturn.
4688 int _Noreturn does_not_return (void) { for (;;) continue; }
4689
4690 // Check _Static_assert.
4691 struct test_static_assert
4692 {
4693 int x;
4694 _Static_assert (sizeof (int) <= sizeof (long int),
4695 "_Static_assert does not work in struct");
4696 long int y;
4697 };
4698
4699 // Check UTF-8 literals.
4700 #define u8 syntax error!
4701 char const utf8_literal[] = u8"happens to be ASCII" "another string";
4702
4703 // Check duplicate typedefs.
4704 typedef long *long_ptr;
4705 typedef long int *long_ptr;
4706 typedef long_ptr long_ptr;
4707
4708 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
4709 struct anonymous
4710 {
4711 union {
4712 struct { int i; int j; };
4713 struct { int k; long int l; } w;
4714 };
4715 int m;
4716 } v1;
4717
4718 int
4719 main ()
4720 {
4721
4722 // Check bool.
4723 _Bool success = false;
4724
4725 // Check restrict.
4726 if (test_restrict ("String literal") == 0)
4727 success = true;
4728 char *restrict newvar = "Another string";
4729
4730 // Check varargs.
4731 success &= test_varargs ("s, d' f .", "string", 65, 34.234);
4732 test_varargs_macros ();
4733
4734 // Check flexible array members.
4735 struct incomplete_array *ia =
4736 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4737 ia->datasize = 10;
4738 for (int i = 0; i < ia->datasize; ++i)
4739 ia->data[i] = i * 1.234;
4740
4741 // Check named initializers.
4742 struct named_init ni = {
4743 .number = 34,
4744 .name = L"Test wide string",
4745 .average = 543.34343,
4746 };
4747
4748 ni.number = 58;
4749
4750 int dynamic_array[ni.number];
4751 dynamic_array[ni.number - 1] = 543;
4752
4753 // work around unused variable warnings
4754 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4755 || dynamic_array[ni.number - 1] != 543);
4756
4757 v1.i = 2;
4758 v1.w.k = 5;
4759 _Static_assert ((offsetof (struct anonymous, i)
4760 == offsetof (struct anonymous, w.k)),
4761 "Anonymous union alignment botch");
4762
4763 ;
4764 return 0;
4765 }
4766 _ACEOF
4767 for ac_arg in '' -std=gnu11
4768 do
4769 CC="$ac_save_CC $ac_arg"
4770 if ac_fn_c_try_compile "$LINENO"; then :
4771 ac_cv_prog_cc_c11=$ac_arg
4772 fi
4773 rm -f core conftest.err conftest.$ac_objext
4774 test "x$ac_cv_prog_cc_c11" != "xno" && break
4775 done
4776 rm -f conftest.$ac_ext
4777 CC=$ac_save_CC
4778
4779 fi
4780 # AC_CACHE_VAL
4781 ac_prog_cc_stdc_options=
4782 case "x$ac_cv_prog_cc_c11" in
4783 x)
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4785 $as_echo "none needed" >&6; } ;;
4786 xno)
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4788 $as_echo "unsupported" >&6; } ;;
4789 *)
4790 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11"
4791 CC=$CC$ac_prog_cc_stdc_options
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4793 $as_echo "$ac_cv_prog_cc_c11" >&6; } ;;
4794 esac
4795 if test "x$ac_cv_prog_cc_c11" != xno; then :
4796 ac_prog_cc_stdc=c11
4797 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4798 else
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4800 $as_echo_n "checking for $CC option to enable C99 features... " >&6; }
4801 if ${ac_cv_prog_cc_c99+:} false; then :
4802 $as_echo_n "(cached) " >&6
4803 else
4804 ac_cv_prog_cc_c99=no
4805 ac_save_CC=$CC
4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4807 /* end confdefs.h. */
4808 #include <stdarg.h>
4809 #include <stdbool.h>
4810 #include <stddef.h>
4811 #include <stdlib.h>
4812 #include <wchar.h>
4813 #include <stdio.h>
4814
4815 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4816 #define debug(...) fprintf (stderr, __VA_ARGS__)
4817 #define showlist(...) puts (#__VA_ARGS__)
4818 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4819 static void
4820 test_varargs_macros (void)
4821 {
4822 int x = 1234;
4823 int y = 5678;
4824 debug ("Flag");
4825 debug ("X = %d\n", x);
4826 showlist (The first, second, and third items.);
4827 report (x>y, "x is %d but y is %d", x, y);
4828 }
4829
4830 // Check long long types.
4831 #define BIG64 18446744073709551615ull
4832 #define BIG32 4294967295ul
4833 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4834 #if !BIG_OK
4835 your preprocessor is broken;
4836 #endif
4837 #if BIG_OK
4838 #else
4839 your preprocessor is broken;
4840 #endif
4841 static long long int bignum = -9223372036854775807LL;
4842 static unsigned long long int ubignum = BIG64;
4843
4844 struct incomplete_array
4845 {
4846 int datasize;
4847 double data[];
4848 };
4849
4850 struct named_init {
4851 int number;
4852 const wchar_t *name;
4853 double average;
4854 };
4855
4856 typedef const char *ccp;
4857
4858 static inline int
4859 test_restrict (ccp restrict text)
4860 {
4861 // See if C++-style comments work.
4862 // Iterate through items via the restricted pointer.
4863 // Also check for declarations in for loops.
4864 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4865 continue;
4866 return 0;
4867 }
4868
4869 // Check varargs and va_copy.
4870 static bool
4871 test_varargs (const char *format, ...)
4872 {
4873 va_list args;
4874 va_start (args, format);
4875 va_list args_copy;
4876 va_copy (args_copy, args);
4877
4878 const char *str = "";
4879 int number = 0;
4880 float fnumber = 0;
4881
4882 while (*format)
4883 {
4884 switch (*format++)
4885 {
4886 case 's': // string
4887 str = va_arg (args_copy, const char *);
4888 break;
4889 case 'd': // int
4890 number = va_arg (args_copy, int);
4891 break;
4892 case 'f': // float
4893 fnumber = va_arg (args_copy, double);
4894 break;
4895 default:
4896 break;
4897 }
4898 }
4899 va_end (args_copy);
4900 va_end (args);
4901
4902 return *str && number && fnumber;
4903 }
4904 int
4905 main ()
4906 {
4907
4908 // Check bool.
4909 _Bool success = false;
4910
4911 // Check restrict.
4912 if (test_restrict ("String literal") == 0)
4913 success = true;
4914 char *restrict newvar = "Another string";
4915
4916 // Check varargs.
4917 success &= test_varargs ("s, d' f .", "string", 65, 34.234);
4918 test_varargs_macros ();
4919
4920 // Check flexible array members.
4921 struct incomplete_array *ia =
4922 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4923 ia->datasize = 10;
4924 for (int i = 0; i < ia->datasize; ++i)
4925 ia->data[i] = i * 1.234;
4926
4927 // Check named initializers.
4928 struct named_init ni = {
4929 .number = 34,
4930 .name = L"Test wide string",
4931 .average = 543.34343,
4932 };
4933
4934 ni.number = 58;
4935
4936 int dynamic_array[ni.number];
4937 dynamic_array[ni.number - 1] = 543;
4938
4939 // work around unused variable warnings
4940 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4941 || dynamic_array[ni.number - 1] != 543);
4942
4943 ;
4944 return 0;
4945 }
4946 _ACEOF
4947 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99
4948 do
4949 CC="$ac_save_CC $ac_arg"
4950 if ac_fn_c_try_compile "$LINENO"; then :
4951 ac_cv_prog_cc_c99=$ac_arg
4952 fi
4953 rm -f core conftest.err conftest.$ac_objext
4954 test "x$ac_cv_prog_cc_c99" != "xno" && break
4955 done
4956 rm -f conftest.$ac_ext
4957 CC=$ac_save_CC
4958
4959 fi
4960 # AC_CACHE_VAL
4961 ac_prog_cc_stdc_options=
4962 case "x$ac_cv_prog_cc_c99" in
4963 x)
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4965 $as_echo "none needed" >&6; } ;;
4966 xno)
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4968 $as_echo "unsupported" >&6; } ;;
4969 *)
4970 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99"
4971 CC=$CC$ac_prog_cc_stdc_options
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4973 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4974 esac
4975 if test "x$ac_cv_prog_cc_c99" != xno; then :
4976 ac_prog_cc_stdc=c99
4977 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4978 else
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4980 $as_echo_n "checking for $CC option to enable C89 features... " >&6; }
4981 if ${ac_cv_prog_cc_c89+:} false; then :
4982 $as_echo_n "(cached) " >&6
4983 else
4984 ac_cv_prog_cc_c89=no
4985 ac_save_CC=$CC
4986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4987 /* end confdefs.h. */
4988 #include <stdarg.h>
4989 #include <stdio.h>
4990 struct stat;
4991 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4992 struct buf { int x; };
4993 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4994 static char *e (p, i)
4995 char **p;
4996 int i;
4997 {
4998 return p[i];
4999 }
5000 static char *f (char * (*g) (char **, int), char **p, ...)
5001 {
5002 char *s;
5003 va_list v;
5004 va_start (v,p);
5005 s = g (p, va_arg (v,int));
5006 va_end (v);
5007 return s;
5008 }
5009
5010 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5011 function prototypes and stuff, but not '\xHH' hex character constants.
5012 These don't provoke an error unfortunately, instead are silently treated
5013 as 'x'. The following induces an error, until -std is added to get
5014 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5015 array size at least. It's necessary to write '\x00'==0 to get something
5016 that's true only with -std. */
5017 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5018
5019 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5020 inside strings and character constants. */
5021 #define FOO(x) 'x'
5022 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5023
5024 int test (int i, double x);
5025 struct s1 {int (*f) (int a);};
5026 struct s2 {int (*f) (double a);};
5027 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5028 int argc;
5029 char **argv;
5030 int
5031 main ()
5032 {
5033 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5034 ;
5035 return 0;
5036 }
5037 _ACEOF
5038 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5039 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5040 do
5041 CC="$ac_save_CC $ac_arg"
5042 if ac_fn_c_try_compile "$LINENO"; then :
5043 ac_cv_prog_cc_c89=$ac_arg
5044 fi
5045 rm -f core conftest.err conftest.$ac_objext
5046 test "x$ac_cv_prog_cc_c89" != "xno" && break
5047 done
5048 rm -f conftest.$ac_ext
5049 CC=$ac_save_CC
5050
5051 fi
5052 # AC_CACHE_VAL
5053 ac_prog_cc_stdc_options=
5054 case "x$ac_cv_prog_cc_c89" in
5055 x)
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5057 $as_echo "none needed" >&6; } ;;
5058 xno)
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5060 $as_echo "unsupported" >&6; } ;;
5061 *)
5062 ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89"
5063 CC=$CC$ac_prog_cc_stdc_options
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5065 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5066 esac
5067 if test "x$ac_cv_prog_cc_c89" != xno; then :
5068 ac_prog_cc_stdc=c89
5069 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5070 else
5071 ac_prog_cc_stdc=no
5072 ac_cv_prog_cc_stdc=no
5073 fi
5074
5075 fi
5076
5077 fi
5078
5079 ac_ext=c
5080 ac_cpp='$CPP $CPPFLAGS'
5081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5084
5085
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
5087 $as_echo_n "checking whether the compiler is clang... " >&6; }
5088 if ${gl_cv_compiler_clang+:} false; then :
5089 $as_echo_n "(cached) " >&6
5090 else
5091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092 /* end confdefs.h. */
5093
5094 #ifdef __clang__
5095 barfbarf
5096 #endif
5097
5098 int
5099 main ()
5100 {
5101
5102 ;
5103 return 0;
5104 }
5105
5106 _ACEOF
5107 if ac_fn_c_try_compile "$LINENO"; then :
5108 gl_cv_compiler_clang=no
5109 else
5110 gl_cv_compiler_clang=yes
5111 fi
5112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5113
5114 fi
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
5116 $as_echo "$gl_cv_compiler_clang" >&6; }
5117
5118
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
5120 $as_echo_n "checking for compiler option needed when checking for declarations... " >&6; }
5121 if ${gl_cv_compiler_check_decl_option+:} false; then :
5122 $as_echo_n "(cached) " >&6
5123 else
5124 if test $gl_cv_compiler_clang = yes; then
5125 save_ac_compile="$ac_compile"
5126 ac_compile="$ac_compile -Werror=implicit-function-declaration"
5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128 /* end confdefs.h. */
5129
5130 int
5131 main ()
5132 {
5133
5134 ;
5135 return 0;
5136 }
5137 _ACEOF
5138 if ac_fn_c_try_compile "$LINENO"; then :
5139 gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
5140 else
5141 gl_cv_compiler_check_decl_option=none
5142 fi
5143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5144 ac_compile="$save_ac_compile"
5145 else
5146 gl_cv_compiler_check_decl_option=none
5147 fi
5148
5149 fi
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
5151 $as_echo "$gl_cv_compiler_check_decl_option" >&6; }
5152 if test "x$gl_cv_compiler_check_decl_option" != xnone; then
5153 ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
5154 else
5155 ac_compile_for_check_decl="$ac_compile"
5156 fi
5157
5158
5159 depcc="$CC" am_compiler_list=
5160
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5162 $as_echo_n "checking dependency style of $depcc... " >&6; }
5163 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5164 $as_echo_n "(cached) " >&6
5165 else
5166 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5167 # We make a subdir and do the tests there. Otherwise we can end up
5168 # making bogus files that we don't know about and never remove. For
5169 # instance it was reported that on HP-UX the gcc test will end up
5170 # making a dummy file named 'D' -- because '-MD' means "put the output
5171 # in D".
5172 rm -rf conftest.dir
5173 mkdir conftest.dir
5174 # Copy depcomp to subdir because otherwise we won't find it if we're
5175 # using a relative directory.
5176 cp "$am_depcomp" conftest.dir
5177 cd conftest.dir
5178 # We will build objects and dependencies in a subdirectory because
5179 # it helps to detect inapplicable dependency modes. For instance
5180 # both Tru64's cc and ICC support -MD to output dependencies as a
5181 # side effect of compilation, but ICC will put the dependencies in
5182 # the current directory while Tru64 will put them in the object
5183 # directory.
5184 mkdir sub
5185
5186 am_cv_CC_dependencies_compiler_type=none
5187 if test "$am_compiler_list" = ""; then
5188 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5189 fi
5190 am__universal=false
5191 case " $depcc " in #(
5192 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5193 esac
5194
5195 for depmode in $am_compiler_list; do
5196 # Setup a source with many dependencies, because some compilers
5197 # like to wrap large dependency lists on column 80 (with \), and
5198 # we should not choose a depcomp mode which is confused by this.
5199 #
5200 # We need to recreate these files for each test, as the compiler may
5201 # overwrite some of them when testing with obscure command lines.
5202 # This happens at least with the AIX C compiler.
5203 : > sub/conftest.c
5204 for i in 1 2 3 4 5 6; do
5205 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5206 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5207 # Solaris 10 /bin/sh.
5208 echo '/* dummy */' > sub/conftst$i.h
5209 done
5210 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5211
5212 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5213 # mode. It turns out that the SunPro C++ compiler does not properly
5214 # handle '-M -o', and we need to detect this. Also, some Intel
5215 # versions had trouble with output in subdirs.
5216 am__obj=sub/conftest.${OBJEXT-o}
5217 am__minus_obj="-o $am__obj"
5218 case $depmode in
5219 gcc)
5220 # This depmode causes a compiler race in universal mode.
5221 test "$am__universal" = false || continue
5222 ;;
5223 nosideeffect)
5224 # After this tag, mechanisms are not by side-effect, so they'll
5225 # only be used when explicitly requested.
5226 if test "x$enable_dependency_tracking" = xyes; then
5227 continue
5228 else
5229 break
5230 fi
5231 ;;
5232 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5233 # This compiler won't grok '-c -o', but also, the minuso test has
5234 # not run yet. These depmodes are late enough in the game, and
5235 # so weak that their functioning should not be impacted.
5236 am__obj=conftest.${OBJEXT-o}
5237 am__minus_obj=
5238 ;;
5239 none) break ;;
5240 esac
5241 if depmode=$depmode \
5242 source=sub/conftest.c object=$am__obj \
5243 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5244 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5245 >/dev/null 2>conftest.err &&
5246 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5247 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5248 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5249 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5250 # icc doesn't choke on unknown options, it will just issue warnings
5251 # or remarks (even with -Werror). So we grep stderr for any message
5252 # that says an option was ignored or not supported.
5253 # When given -MP, icc 7.0 and 7.1 complain thusly:
5254 # icc: Command line warning: ignoring option '-M'; no argument required
5255 # The diagnosis changed in icc 8.0:
5256 # icc: Command line remark: option '-MP' not supported
5257 if (grep 'ignoring option' conftest.err ||
5258 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5259 am_cv_CC_dependencies_compiler_type=$depmode
5260 break
5261 fi
5262 fi
5263 done
5264
5265 cd ..
5266 rm -rf conftest.dir
5267 else
5268 am_cv_CC_dependencies_compiler_type=none
5269 fi
5270
5271 fi
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5273 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5274 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5275
5276 if
5277 test "x$enable_dependency_tracking" != xno \
5278 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5279 am__fastdepCC_TRUE=
5280 am__fastdepCC_FALSE='#'
5281 else
5282 am__fastdepCC_TRUE='#'
5283 am__fastdepCC_FALSE=
5284 fi
5285
5286
5287
5288 ac_ext=c
5289 ac_cpp='$CPP $CPPFLAGS'
5290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5294 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5295 # On Suns, sometimes $CPP names a directory.
5296 if test -n "$CPP" && test -d "$CPP"; then
5297 CPP=
5298 fi
5299 if test -z "$CPP"; then
5300 if ${ac_cv_prog_CPP+:} false; then :
5301 $as_echo_n "(cached) " >&6
5302 else
5303 # Double quotes because CPP needs to be expanded
5304 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5305 do
5306 ac_preproc_ok=false
5307 for ac_c_preproc_warn_flag in '' yes
5308 do
5309 # Use a header file that comes with gcc, so configuring glibc
5310 # with a fresh cross-compiler works.
5311 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5312 # <limits.h> exists even on freestanding compilers.
5313 # On the NeXT, cc -E runs the code through the compiler's parser,
5314 # not just through cpp. "Syntax error" is here to catch this case.
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316 /* end confdefs.h. */
5317 #ifdef __STDC__
5318 # include <limits.h>
5319 #else
5320 # include <assert.h>
5321 #endif
5322 Syntax error
5323 _ACEOF
5324 if ac_fn_c_try_cpp "$LINENO"; then :
5325
5326 else
5327 # Broken: fails on valid input.
5328 continue
5329 fi
5330 rm -f conftest.err conftest.i conftest.$ac_ext
5331
5332 # OK, works on sane cases. Now check whether nonexistent headers
5333 # can be detected and how.
5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335 /* end confdefs.h. */
5336 #include <ac_nonexistent.h>
5337 _ACEOF
5338 if ac_fn_c_try_cpp "$LINENO"; then :
5339 # Broken: success on invalid input.
5340 continue
5341 else
5342 # Passes both tests.
5343 ac_preproc_ok=:
5344 break
5345 fi
5346 rm -f conftest.err conftest.i conftest.$ac_ext
5347
5348 done
5349 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5350 rm -f conftest.i conftest.err conftest.$ac_ext
5351 if $ac_preproc_ok; then :
5352 break
5353 fi
5354
5355 done
5356 ac_cv_prog_CPP=$CPP
5357
5358 fi
5359 CPP=$ac_cv_prog_CPP
5360 else
5361 ac_cv_prog_CPP=$CPP
5362 fi
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5364 $as_echo "$CPP" >&6; }
5365 ac_preproc_ok=false
5366 for ac_c_preproc_warn_flag in '' yes
5367 do
5368 # Use a header file that comes with gcc, so configuring glibc
5369 # with a fresh cross-compiler works.
5370 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5371 # <limits.h> exists even on freestanding compilers.
5372 # On the NeXT, cc -E runs the code through the compiler's parser,
5373 # not just through cpp. "Syntax error" is here to catch this case.
5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5376 #ifdef __STDC__
5377 # include <limits.h>
5378 #else
5379 # include <assert.h>
5380 #endif
5381 Syntax error
5382 _ACEOF
5383 if ac_fn_c_try_cpp "$LINENO"; then :
5384
5385 else
5386 # Broken: fails on valid input.
5387 continue
5388 fi
5389 rm -f conftest.err conftest.i conftest.$ac_ext
5390
5391 # OK, works on sane cases. Now check whether nonexistent headers
5392 # can be detected and how.
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5395 #include <ac_nonexistent.h>
5396 _ACEOF
5397 if ac_fn_c_try_cpp "$LINENO"; then :
5398 # Broken: success on invalid input.
5399 continue
5400 else
5401 # Passes both tests.
5402 ac_preproc_ok=:
5403 break
5404 fi
5405 rm -f conftest.err conftest.i conftest.$ac_ext
5406
5407 done
5408 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5409 rm -f conftest.i conftest.err conftest.$ac_ext
5410 if $ac_preproc_ok; then :
5411
5412 else
5413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5415 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5416 See \`config.log' for more details" "$LINENO" 5; }
5417 fi
5418
5419 ac_ext=c
5420 ac_cpp='$CPP $CPPFLAGS'
5421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5424
5425
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5427 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5428 if ${ac_cv_path_GREP+:} false; then :
5429 $as_echo_n "(cached) " >&6
5430 else
5431 if test -z "$GREP"; then
5432 ac_path_GREP_found=false
5433 # Loop through the user's path and test for each of PROGNAME-LIST
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5435 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5436 do
5437 IFS=$as_save_IFS
5438 test -z "$as_dir" && as_dir=.
5439 for ac_prog in grep ggrep; do
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5442 as_fn_executable_p "$ac_path_GREP" || continue
5443 # Check for GNU ac_path_GREP and select it if it is found.
5444 # Check for GNU $ac_path_GREP
5445 case `"$ac_path_GREP" --version 2>&1` in
5446 *GNU*)
5447 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5448 *)
5449 ac_count=0
5450 $as_echo_n 0123456789 >"conftest.in"
5451 while :
5452 do
5453 cat "conftest.in" "conftest.in" >"conftest.tmp"
5454 mv "conftest.tmp" "conftest.in"
5455 cp "conftest.in" "conftest.nl"
5456 $as_echo 'GREP' >> "conftest.nl"
5457 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5458 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5459 as_fn_arith $ac_count + 1 && ac_count=$as_val
5460 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5461 # Best one so far, save it but keep looking for a better one
5462 ac_cv_path_GREP="$ac_path_GREP"
5463 ac_path_GREP_max=$ac_count
5464 fi
5465 # 10*(2^10) chars as input seems more than enough
5466 test $ac_count -gt 10 && break
5467 done
5468 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5469 esac
5470
5471 $ac_path_GREP_found && break 3
5472 done
5473 done
5474 done
5475 IFS=$as_save_IFS
5476 if test -z "$ac_cv_path_GREP"; then
5477 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5478 fi
5479 else
5480 ac_cv_path_GREP=$GREP
5481 fi
5482
5483 fi
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5485 $as_echo "$ac_cv_path_GREP" >&6; }
5486 GREP="$ac_cv_path_GREP"
5487
5488
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5490 $as_echo_n "checking for egrep... " >&6; }
5491 if ${ac_cv_path_EGREP+:} false; then :
5492 $as_echo_n "(cached) " >&6
5493 else
5494 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5495 then ac_cv_path_EGREP="$GREP -E"
5496 else
5497 if test -z "$EGREP"; then
5498 ac_path_EGREP_found=false
5499 # Loop through the user's path and test for each of PROGNAME-LIST
5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5502 do
5503 IFS=$as_save_IFS
5504 test -z "$as_dir" && as_dir=.
5505 for ac_prog in egrep; do
5506 for ac_exec_ext in '' $ac_executable_extensions; do
5507 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5508 as_fn_executable_p "$ac_path_EGREP" || continue
5509 # Check for GNU ac_path_EGREP and select it if it is found.
5510 # Check for GNU $ac_path_EGREP
5511 case `"$ac_path_EGREP" --version 2>&1` in
5512 *GNU*)
5513 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5514 *)
5515 ac_count=0
5516 $as_echo_n 0123456789 >"conftest.in"
5517 while :
5518 do
5519 cat "conftest.in" "conftest.in" >"conftest.tmp"
5520 mv "conftest.tmp" "conftest.in"
5521 cp "conftest.in" "conftest.nl"
5522 $as_echo 'EGREP' >> "conftest.nl"
5523 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5524 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5525 as_fn_arith $ac_count + 1 && ac_count=$as_val
5526 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5527 # Best one so far, save it but keep looking for a better one
5528 ac_cv_path_EGREP="$ac_path_EGREP"
5529 ac_path_EGREP_max=$ac_count
5530 fi
5531 # 10*(2^10) chars as input seems more than enough
5532 test $ac_count -gt 10 && break
5533 done
5534 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5535 esac
5536
5537 $ac_path_EGREP_found && break 3
5538 done
5539 done
5540 done
5541 IFS=$as_save_IFS
5542 if test -z "$ac_cv_path_EGREP"; then
5543 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5544 fi
5545 else
5546 ac_cv_path_EGREP=$EGREP
5547 fi
5548
5549 fi
5550 fi
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5552 $as_echo "$ac_cv_path_EGREP" >&6; }
5553 EGREP="$ac_cv_path_EGREP"
5554
5555
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5557 $as_echo_n "checking for ANSI C header files... " >&6; }
5558 if ${ac_cv_header_stdc+:} false; then :
5559 $as_echo_n "(cached) " >&6
5560 else
5561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5562 /* end confdefs.h. */
5563 #include <stdlib.h>
5564 #include <stdarg.h>
5565 #include <string.h>
5566 #include <float.h>
5567
5568 int
5569 main ()
5570 {
5571
5572 ;
5573 return 0;
5574 }
5575 _ACEOF
5576 if ac_fn_c_try_compile "$LINENO"; then :
5577 ac_cv_header_stdc=yes
5578 else
5579 ac_cv_header_stdc=no
5580 fi
5581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582
5583 if test $ac_cv_header_stdc = yes; then
5584 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586 /* end confdefs.h. */
5587 #include <string.h>
5588
5589 _ACEOF
5590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5591 $EGREP "memchr" >/dev/null 2>&1; then :
5592
5593 else
5594 ac_cv_header_stdc=no
5595 fi
5596 rm -f conftest*
5597
5598 fi
5599
5600 if test $ac_cv_header_stdc = yes; then
5601 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h. */
5604 #include <stdlib.h>
5605
5606 _ACEOF
5607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5608 $EGREP "free" >/dev/null 2>&1; then :
5609
5610 else
5611 ac_cv_header_stdc=no
5612 fi
5613 rm -f conftest*
5614
5615 fi
5616
5617 if test $ac_cv_header_stdc = yes; then
5618 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5619 if test "$cross_compiling" = yes; then :
5620 :
5621 else
5622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623 /* end confdefs.h. */
5624 #include <ctype.h>
5625 #include <stdlib.h>
5626 #if ((' ' & 0x0FF) == 0x020)
5627 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5628 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5629 #else
5630 # define ISLOWER(c) \
5631 (('a' <= (c) && (c) <= 'i') \
5632 || ('j' <= (c) && (c) <= 'r') \
5633 || ('s' <= (c) && (c) <= 'z'))
5634 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5635 #endif
5636
5637 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5638 int
5639 main ()
5640 {
5641 int i;
5642 for (i = 0; i < 256; i++)
5643 if (XOR (islower (i), ISLOWER (i))
5644 || toupper (i) != TOUPPER (i))
5645 return 2;
5646 return 0;
5647 }
5648 _ACEOF
5649 if ac_fn_c_try_run "$LINENO"; then :
5650
5651 else
5652 ac_cv_header_stdc=no
5653 fi
5654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5655 conftest.$ac_objext conftest.beam conftest.$ac_ext
5656 fi
5657
5658 fi
5659 fi
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5661 $as_echo "$ac_cv_header_stdc" >&6; }
5662 if test $ac_cv_header_stdc = yes; then
5663
5664 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5665
5666 fi
5667
5668 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5669 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5670 inttypes.h stdint.h unistd.h
5671 do :
5672 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5673 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5674 "
5675 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5676 cat >>confdefs.h <<_ACEOF
5677 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5678 _ACEOF
5679
5680 fi
5681
5682 done
5683
5684
5685
5686 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5687 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5688 MINIX=yes
5689 else
5690 MINIX=
5691 fi
5692
5693
5694 if test "$MINIX" = yes; then
5695
5696 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5697
5698
5699 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5700
5701
5702 $as_echo "#define _MINIX 1" >>confdefs.h
5703
5704
5705 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5706
5707 fi
5708
5709
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5711 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5712 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5713 $as_echo_n "(cached) " >&6
5714 else
5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716 /* end confdefs.h. */
5717
5718 # define __EXTENSIONS__ 1
5719 $ac_includes_default
5720 int
5721 main ()
5722 {
5723
5724 ;
5725 return 0;
5726 }
5727 _ACEOF
5728 if ac_fn_c_try_compile "$LINENO"; then :
5729 ac_cv_safe_to_define___extensions__=yes
5730 else
5731 ac_cv_safe_to_define___extensions__=no
5732 fi
5733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5734 fi
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5736 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5737 test $ac_cv_safe_to_define___extensions__ = yes &&
5738 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5739
5740 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5741
5742 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
5743
5744 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5745
5746 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
5747
5748 $as_echo "#define _OPENBSD_SOURCE 1" >>confdefs.h
5749
5750 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5751
5752 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
5753
5754 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
5755
5756 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
5757
5758 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
5759
5760 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
5761
5762 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
5763
5764 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
5765
5766 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5767
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
5769 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
5770 if ${ac_cv_should_define__xopen_source+:} false; then :
5771 $as_echo_n "(cached) " >&6
5772 else
5773 ac_cv_should_define__xopen_source=no
5774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5775 /* end confdefs.h. */
5776
5777 #include <wchar.h>
5778 mbstate_t x;
5779 int
5780 main ()
5781 {
5782
5783 ;
5784 return 0;
5785 }
5786 _ACEOF
5787 if ac_fn_c_try_compile "$LINENO"; then :
5788
5789 else
5790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791 /* end confdefs.h. */
5792
5793 #define _XOPEN_SOURCE 500
5794 #include <wchar.h>
5795 mbstate_t x;
5796 int
5797 main ()
5798 {
5799
5800 ;
5801 return 0;
5802 }
5803 _ACEOF
5804 if ac_fn_c_try_compile "$LINENO"; then :
5805 ac_cv_should_define__xopen_source=yes
5806 fi
5807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5808 fi
5809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5810 fi
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
5812 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
5813 test $ac_cv_should_define__xopen_source = yes &&
5814 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
5815
5816 $as_echo "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827 # Check whether --enable-cross-guesses was given.
5828 if test "${enable_cross_guesses+set}" = set; then :
5829 enableval=$enable_cross_guesses; if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
5831 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
5832 enableval=conservative
5833 fi
5834 gl_cross_guesses="$enableval"
5835 else
5836 gl_cross_guesses=conservative
5837 fi
5838
5839 if test $gl_cross_guesses = risky; then
5840 gl_cross_guess_normal="guessing yes"
5841 gl_cross_guess_inverted="guessing no"
5842 else
5843 gl_cross_guess_normal="guessing no"
5844 gl_cross_guess_inverted="guessing yes"
5845 fi
5846 LIBC_FATAL_STDERR_=1
5847 export LIBC_FATAL_STDERR_
5848
5849
5850 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5851 if test "x$ac_cv_type_size_t" = xyes; then :
5852
5853 else
5854
5855 cat >>confdefs.h <<_ACEOF
5856 #define size_t unsigned int
5857 _ACEOF
5858
5859 fi
5860
5861 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5862 # for constant arguments. Useless!
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5864 $as_echo_n "checking for working alloca.h... " >&6; }
5865 if ${ac_cv_working_alloca_h+:} false; then :
5866 $as_echo_n "(cached) " >&6
5867 else
5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h. */
5870 #include <alloca.h>
5871 int
5872 main ()
5873 {
5874 char *p = (char *) alloca (2 * sizeof (int));
5875 if (p) return 0;
5876 ;
5877 return 0;
5878 }
5879 _ACEOF
5880 if ac_fn_c_try_link "$LINENO"; then :
5881 ac_cv_working_alloca_h=yes
5882 else
5883 ac_cv_working_alloca_h=no
5884 fi
5885 rm -f core conftest.err conftest.$ac_objext \
5886 conftest$ac_exeext conftest.$ac_ext
5887 fi
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5889 $as_echo "$ac_cv_working_alloca_h" >&6; }
5890 if test $ac_cv_working_alloca_h = yes; then
5891
5892 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5893
5894 fi
5895
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5897 $as_echo_n "checking for alloca... " >&6; }
5898 if ${ac_cv_func_alloca_works+:} false; then :
5899 $as_echo_n "(cached) " >&6
5900 else
5901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5902 /* end confdefs.h. */
5903 #ifdef __GNUC__
5904 # define alloca __builtin_alloca
5905 #else
5906 # ifdef _MSC_VER
5907 # include <malloc.h>
5908 # define alloca _alloca
5909 # else
5910 # ifdef HAVE_ALLOCA_H
5911 # include <alloca.h>
5912 # else
5913 # ifdef _AIX
5914 #pragma alloca
5915 # else
5916 # ifndef alloca /* predefined by HP cc +Olibcalls */
5917 void *alloca (size_t);
5918 # endif
5919 # endif
5920 # endif
5921 # endif
5922 #endif
5923
5924 int
5925 main ()
5926 {
5927 char *p = (char *) alloca (1);
5928 if (p) return 0;
5929 ;
5930 return 0;
5931 }
5932 _ACEOF
5933 if ac_fn_c_try_link "$LINENO"; then :
5934 ac_cv_func_alloca_works=yes
5935 else
5936 ac_cv_func_alloca_works=no
5937 fi
5938 rm -f core conftest.err conftest.$ac_objext \
5939 conftest$ac_exeext conftest.$ac_ext
5940 fi
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5942 $as_echo "$ac_cv_func_alloca_works" >&6; }
5943
5944 if test $ac_cv_func_alloca_works = yes; then
5945
5946 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5947
5948 else
5949 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5950 # that cause trouble. Some versions do not even contain alloca or
5951 # contain a buggy version. If you still want to use their alloca,
5952 # use ar to extract alloca.o from them instead of compiling alloca.c.
5953
5954
5955
5956
5957
5958 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5959
5960 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5961
5962
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5964 $as_echo_n "checking stack direction for C alloca... " >&6; }
5965 if ${ac_cv_c_stack_direction+:} false; then :
5966 $as_echo_n "(cached) " >&6
5967 else
5968 if test "$cross_compiling" = yes; then :
5969 ac_cv_c_stack_direction=0
5970 else
5971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972 /* end confdefs.h. */
5973 $ac_includes_default
5974 int
5975 find_stack_direction (int *addr, int depth)
5976 {
5977 int dir, dummy = 0;
5978 if (! addr)
5979 addr = &dummy;
5980 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5981 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5982 return dir + dummy;
5983 }
5984
5985 int
5986 main (int argc, char **argv)
5987 {
5988 return find_stack_direction (0, argc + !argv + 20) < 0;
5989 }
5990 _ACEOF
5991 if ac_fn_c_try_run "$LINENO"; then :
5992 ac_cv_c_stack_direction=1
5993 else
5994 ac_cv_c_stack_direction=-1
5995 fi
5996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5997 conftest.$ac_objext conftest.beam conftest.$ac_ext
5998 fi
5999
6000 fi
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6002 $as_echo "$ac_cv_c_stack_direction" >&6; }
6003 cat >>confdefs.h <<_ACEOF
6004 #define STACK_DIRECTION $ac_cv_c_stack_direction
6005 _ACEOF
6006
6007
6008 fi
6009
6010
6011 GNULIB_ACCESS=0;
6012 GNULIB_CHDIR=0;
6013 GNULIB_CHOWN=0;
6014 GNULIB_CLOSE=0;
6015 GNULIB_COPY_FILE_RANGE=0;
6016 GNULIB_DUP=0;
6017 GNULIB_DUP2=0;
6018 GNULIB_DUP3=0;
6019 GNULIB_ENVIRON=0;
6020 GNULIB_EUIDACCESS=0;
6021 GNULIB_FACCESSAT=0;
6022 GNULIB_FCHDIR=0;
6023 GNULIB_FCHOWNAT=0;
6024 GNULIB_FDATASYNC=0;
6025 GNULIB_FSYNC=0;
6026 GNULIB_FTRUNCATE=0;
6027 GNULIB_GETCWD=0;
6028 GNULIB_GETDOMAINNAME=0;
6029 GNULIB_GETDTABLESIZE=0;
6030 GNULIB_GETENTROPY=0;
6031 GNULIB_GETGROUPS=0;
6032 GNULIB_GETHOSTNAME=0;
6033 GNULIB_GETLOGIN=0;
6034 GNULIB_GETLOGIN_R=0;
6035 GNULIB_GETOPT_POSIX=0;
6036 GNULIB_GETPAGESIZE=0;
6037 GNULIB_GETPASS=0;
6038 GNULIB_GETUSERSHELL=0;
6039 GNULIB_GROUP_MEMBER=0;
6040 GNULIB_ISATTY=0;
6041 GNULIB_LCHOWN=0;
6042 GNULIB_LINK=0;
6043 GNULIB_LINKAT=0;
6044 GNULIB_LSEEK=0;
6045 GNULIB_PIPE=0;
6046 GNULIB_PIPE2=0;
6047 GNULIB_PREAD=0;
6048 GNULIB_PWRITE=0;
6049 GNULIB_READ=0;
6050 GNULIB_READLINK=0;
6051 GNULIB_READLINKAT=0;
6052 GNULIB_RMDIR=0;
6053 GNULIB_SETHOSTNAME=0;
6054 GNULIB_SLEEP=0;
6055 GNULIB_SYMLINK=0;
6056 GNULIB_SYMLINKAT=0;
6057 GNULIB_TRUNCATE=0;
6058 GNULIB_TTYNAME_R=0;
6059 GNULIB_UNISTD_H_NONBLOCKING=0;
6060 GNULIB_UNISTD_H_SIGPIPE=0;
6061 GNULIB_UNLINK=0;
6062 GNULIB_UNLINKAT=0;
6063 GNULIB_USLEEP=0;
6064 GNULIB_WRITE=0;
6065 HAVE_CHOWN=1;
6066 HAVE_COPY_FILE_RANGE=1;
6067 HAVE_DUP3=1;
6068 HAVE_EUIDACCESS=1;
6069 HAVE_FACCESSAT=1;
6070 HAVE_FCHDIR=1;
6071 HAVE_FCHOWNAT=1;
6072 HAVE_FDATASYNC=1;
6073 HAVE_FSYNC=1;
6074 HAVE_FTRUNCATE=1;
6075 HAVE_GETDTABLESIZE=1;
6076 HAVE_GETENTROPY=1;
6077 HAVE_GETGROUPS=1;
6078 HAVE_GETHOSTNAME=1;
6079 HAVE_GETLOGIN=1;
6080 HAVE_GETPAGESIZE=1;
6081 HAVE_GETPASS=1;
6082 HAVE_GROUP_MEMBER=1;
6083 HAVE_LCHOWN=1;
6084 HAVE_LINK=1;
6085 HAVE_LINKAT=1;
6086 HAVE_PIPE=1;
6087 HAVE_PIPE2=1;
6088 HAVE_PREAD=1;
6089 HAVE_PWRITE=1;
6090 HAVE_READLINK=1;
6091 HAVE_READLINKAT=1;
6092 HAVE_SETHOSTNAME=1;
6093 HAVE_SLEEP=1;
6094 HAVE_SYMLINK=1;
6095 HAVE_SYMLINKAT=1;
6096 HAVE_UNLINKAT=1;
6097 HAVE_USLEEP=1;
6098 HAVE_DECL_ENVIRON=1;
6099 HAVE_DECL_FCHDIR=1;
6100 HAVE_DECL_FDATASYNC=1;
6101 HAVE_DECL_GETDOMAINNAME=1;
6102 HAVE_DECL_GETLOGIN=1;
6103 HAVE_DECL_GETLOGIN_R=1;
6104 HAVE_DECL_GETPAGESIZE=1;
6105 HAVE_DECL_GETUSERSHELL=1;
6106 HAVE_DECL_SETHOSTNAME=1;
6107 HAVE_DECL_TRUNCATE=1;
6108 HAVE_DECL_TTYNAME_R=1;
6109 HAVE_OS_H=0;
6110 HAVE_SYS_PARAM_H=0;
6111 REPLACE_ACCESS=0;
6112 REPLACE_CHOWN=0;
6113 REPLACE_CLOSE=0;
6114 REPLACE_DUP=0;
6115 REPLACE_DUP2=0;
6116 REPLACE_FACCESSAT=0;
6117 REPLACE_FCHOWNAT=0;
6118 REPLACE_FTRUNCATE=0;
6119 REPLACE_GETCWD=0;
6120 REPLACE_GETDOMAINNAME=0;
6121 REPLACE_GETDTABLESIZE=0;
6122 REPLACE_GETLOGIN_R=0;
6123 REPLACE_GETGROUPS=0;
6124 REPLACE_GETPAGESIZE=0;
6125 REPLACE_GETPASS=0;
6126 REPLACE_ISATTY=0;
6127 REPLACE_LCHOWN=0;
6128 REPLACE_LINK=0;
6129 REPLACE_LINKAT=0;
6130 REPLACE_LSEEK=0;
6131 REPLACE_PREAD=0;
6132 REPLACE_PWRITE=0;
6133 REPLACE_READ=0;
6134 REPLACE_READLINK=0;
6135 REPLACE_READLINKAT=0;
6136 REPLACE_RMDIR=0;
6137 REPLACE_SLEEP=0;
6138 REPLACE_SYMLINK=0;
6139 REPLACE_SYMLINKAT=0;
6140 REPLACE_TRUNCATE=0;
6141 REPLACE_TTYNAME_R=0;
6142 REPLACE_UNLINK=0;
6143 REPLACE_UNLINKAT=0;
6144 REPLACE_USLEEP=0;
6145 REPLACE_WRITE=0;
6146 UNISTD_H_HAVE_SYS_RANDOM_H=0;
6147 UNISTD_H_HAVE_WINSOCK2_H=0;
6148 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
6149
6150
6151
6152
6153
6154 for ac_func in $ac_func_list
6155 do :
6156 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6157 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6158 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6159 cat >>confdefs.h <<_ACEOF
6160 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6161 _ACEOF
6162
6163 fi
6164 done
6165
6166
6167
6168
6169
6170 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
6171 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
6172
6173 $as_echo "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
6174
6175 else
6176 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
6177 fi
6178
6179
6180
6181
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6183 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6184 if ${gl_cv_have_include_next+:} false; then :
6185 $as_echo_n "(cached) " >&6
6186 else
6187 rm -rf conftestd1a conftestd1b conftestd2
6188 mkdir conftestd1a conftestd1b conftestd2
6189 cat <<EOF > conftestd1a/conftest.h
6190 #define DEFINED_IN_CONFTESTD1
6191 #include_next <conftest.h>
6192 #ifdef DEFINED_IN_CONFTESTD2
6193 int foo;
6194 #else
6195 #error "include_next doesn't work"
6196 #endif
6197 EOF
6198 cat <<EOF > conftestd1b/conftest.h
6199 #define DEFINED_IN_CONFTESTD1
6200 #include <stdio.h>
6201 #include_next <conftest.h>
6202 #ifdef DEFINED_IN_CONFTESTD2
6203 int foo;
6204 #else
6205 #error "include_next doesn't work"
6206 #endif
6207 EOF
6208 cat <<EOF > conftestd2/conftest.h
6209 #ifndef DEFINED_IN_CONFTESTD1
6210 #error "include_next test doesn't work"
6211 #endif
6212 #define DEFINED_IN_CONFTESTD2
6213 EOF
6214 gl_save_CPPFLAGS="$CPPFLAGS"
6215 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6217 /* end confdefs.h. */
6218 #include <conftest.h>
6219 _ACEOF
6220 if ac_fn_c_try_compile "$LINENO"; then :
6221 gl_cv_have_include_next=yes
6222 else
6223 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h. */
6226 #include <conftest.h>
6227 _ACEOF
6228 if ac_fn_c_try_compile "$LINENO"; then :
6229 gl_cv_have_include_next=buggy
6230 else
6231 gl_cv_have_include_next=no
6232 fi
6233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6234
6235 fi
6236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6237 CPPFLAGS="$gl_save_CPPFLAGS"
6238 rm -rf conftestd1a conftestd1b conftestd2
6239
6240 fi
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6242 $as_echo "$gl_cv_have_include_next" >&6; }
6243 PRAGMA_SYSTEM_HEADER=
6244 if test $gl_cv_have_include_next = yes; then
6245 INCLUDE_NEXT=include_next
6246 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6247 if test -n "$GCC"; then
6248 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6249 fi
6250 else
6251 if test $gl_cv_have_include_next = buggy; then
6252 INCLUDE_NEXT=include
6253 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6254 else
6255 INCLUDE_NEXT=include
6256 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6257 fi
6258 fi
6259
6260
6261
6262
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether source code line length is unlimited" >&5
6264 $as_echo_n "checking whether source code line length is unlimited... " >&6; }
6265 if ${gl_cv_source_line_length_unlimited+:} false; then :
6266 $as_echo_n "(cached) " >&6
6267 else
6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6270
6271 #ifdef __TANDEM
6272 choke me
6273 #endif
6274
6275 _ACEOF
6276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6277 $EGREP "choke me" >/dev/null 2>&1; then :
6278 gl_cv_source_line_length_unlimited=no
6279 else
6280 gl_cv_source_line_length_unlimited=yes
6281 fi
6282 rm -f conftest*
6283
6284
6285 fi
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_source_line_length_unlimited" >&5
6287 $as_echo "$gl_cv_source_line_length_unlimited" >&6; }
6288 if test $gl_cv_source_line_length_unlimited = no; then
6289 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
6290 else
6291 PRAGMA_COLUMNS=
6292 fi
6293
6294
6295 # Make sure we can run config.sub.
6296 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6297 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6298
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6300 $as_echo_n "checking build system type... " >&6; }
6301 if ${ac_cv_build+:} false; then :
6302 $as_echo_n "(cached) " >&6
6303 else
6304 ac_build_alias=$build_alias
6305 test "x$ac_build_alias" = x &&
6306 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6307 test "x$ac_build_alias" = x &&
6308 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6309 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6310 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6311
6312 fi
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6314 $as_echo "$ac_cv_build" >&6; }
6315 case $ac_cv_build in
6316 *-*-*) ;;
6317 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6318 esac
6319 build=$ac_cv_build
6320 ac_save_IFS=$IFS; IFS='-'
6321 set x $ac_cv_build
6322 shift
6323 build_cpu=$1
6324 build_vendor=$2
6325 shift; shift
6326 # Remember, the first character of IFS is used to create $*,
6327 # except with old shells:
6328 build_os=$*
6329 IFS=$ac_save_IFS
6330 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6331
6332
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6334 $as_echo_n "checking host system type... " >&6; }
6335 if ${ac_cv_host+:} false; then :
6336 $as_echo_n "(cached) " >&6
6337 else
6338 if test "x$host_alias" = x; then
6339 ac_cv_host=$ac_cv_build
6340 else
6341 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6342 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6343 fi
6344
6345 fi
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6347 $as_echo "$ac_cv_host" >&6; }
6348 case $ac_cv_host in
6349 *-*-*) ;;
6350 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6351 esac
6352 host=$ac_cv_host
6353 ac_save_IFS=$IFS; IFS='-'
6354 set x $ac_cv_host
6355 shift
6356 host_cpu=$1
6357 host_vendor=$2
6358 shift; shift
6359 # Remember, the first character of IFS is used to create $*,
6360 # except with old shells:
6361 host_os=$*
6362 IFS=$ac_save_IFS
6363 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6364
6365
6366
6367
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
6369 $as_echo_n "checking for complete errno.h... " >&6; }
6370 if ${gl_cv_header_errno_h_complete+:} false; then :
6371 $as_echo_n "(cached) " >&6
6372 else
6373
6374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6375 /* end confdefs.h. */
6376
6377 #include <errno.h>
6378 #if !defined ETXTBSY
6379 booboo
6380 #endif
6381 #if !defined ENOMSG
6382 booboo
6383 #endif
6384 #if !defined EIDRM
6385 booboo
6386 #endif
6387 #if !defined ENOLINK
6388 booboo
6389 #endif
6390 #if !defined EPROTO
6391 booboo
6392 #endif
6393 #if !defined EMULTIHOP
6394 booboo
6395 #endif
6396 #if !defined EBADMSG
6397 booboo
6398 #endif
6399 #if !defined EOVERFLOW
6400 booboo
6401 #endif
6402 #if !defined ENOTSUP
6403 booboo
6404 #endif
6405 #if !defined ENETRESET
6406 booboo
6407 #endif
6408 #if !defined ECONNABORTED
6409 booboo
6410 #endif
6411 #if !defined ESTALE
6412 booboo
6413 #endif
6414 #if !defined EDQUOT
6415 booboo
6416 #endif
6417 #if !defined ECANCELED
6418 booboo
6419 #endif
6420 #if !defined EOWNERDEAD
6421 booboo
6422 #endif
6423 #if !defined ENOTRECOVERABLE
6424 booboo
6425 #endif
6426 #if !defined EILSEQ
6427 booboo
6428 #endif
6429
6430 _ACEOF
6431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6432 $EGREP "booboo" >/dev/null 2>&1; then :
6433 gl_cv_header_errno_h_complete=no
6434 else
6435 gl_cv_header_errno_h_complete=yes
6436 fi
6437 rm -f conftest*
6438
6439
6440 fi
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
6442 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
6443 if test $gl_cv_header_errno_h_complete = yes; then
6444 ERRNO_H=''
6445 else
6446
6447
6448
6449
6450
6451
6452
6453
6454 if test $gl_cv_have_include_next = yes; then
6455 gl_cv_next_errno_h='<'errno.h'>'
6456 else
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
6458 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
6459 if ${gl_cv_next_errno_h+:} false; then :
6460 $as_echo_n "(cached) " >&6
6461 else
6462
6463
6464
6465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466 /* end confdefs.h. */
6467 #include <errno.h>
6468 _ACEOF
6469 case "$host_os" in
6470 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6471 *) gl_absname_cpp="$ac_cpp" ;;
6472 esac
6473
6474 case "$host_os" in
6475 mingw*)
6476 gl_dirsep_regex='[/\\]'
6477 ;;
6478 *)
6479 gl_dirsep_regex='\/'
6480 ;;
6481 esac
6482 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6483 gl_header_literal_regex=`echo 'errno.h' \
6484 | sed -e "$gl_make_literal_regex_sed"`
6485 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6486 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6487 s|^/[^/]|//&|
6488 p
6489 q
6490 }'
6491
6492 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6493 sed -n "$gl_absolute_header_sed"`
6494
6495 gl_header=$gl_cv_absolute_errno_h
6496 gl_cv_next_errno_h='"'$gl_header'"'
6497
6498
6499 fi
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
6501 $as_echo "$gl_cv_next_errno_h" >&6; }
6502 fi
6503 NEXT_ERRNO_H=$gl_cv_next_errno_h
6504
6505 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6506 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6507 gl_next_as_first_directive='<'errno.h'>'
6508 else
6509 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6510 gl_next_as_first_directive=$gl_cv_next_errno_h
6511 fi
6512 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
6513
6514
6515
6516
6517 ERRNO_H='errno.h'
6518 fi
6519
6520 if test -n "$ERRNO_H"; then
6521 GL_GENERATE_ERRNO_H_TRUE=
6522 GL_GENERATE_ERRNO_H_FALSE='#'
6523 else
6524 GL_GENERATE_ERRNO_H_TRUE='#'
6525 GL_GENERATE_ERRNO_H_FALSE=
6526 fi
6527
6528
6529 if test -n "$ERRNO_H"; then
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
6531 $as_echo_n "checking for EMULTIHOP value... " >&6; }
6532 if ${gl_cv_header_errno_h_EMULTIHOP+:} false; then :
6533 $as_echo_n "(cached) " >&6
6534 else
6535
6536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6538
6539 #include <errno.h>
6540 #ifdef EMULTIHOP
6541 yes
6542 #endif
6543
6544 _ACEOF
6545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6546 $EGREP "yes" >/dev/null 2>&1; then :
6547 gl_cv_header_errno_h_EMULTIHOP=yes
6548 else
6549 gl_cv_header_errno_h_EMULTIHOP=no
6550 fi
6551 rm -f conftest*
6552
6553 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555 /* end confdefs.h. */
6556
6557 #define _XOPEN_SOURCE_EXTENDED 1
6558 #include <errno.h>
6559 #ifdef EMULTIHOP
6560 yes
6561 #endif
6562
6563 _ACEOF
6564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6565 $EGREP "yes" >/dev/null 2>&1; then :
6566 gl_cv_header_errno_h_EMULTIHOP=hidden
6567 fi
6568 rm -f conftest*
6569
6570 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
6571 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
6572 #define _XOPEN_SOURCE_EXTENDED 1
6573 #include <errno.h>
6574 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6575 #include <stdio.h>
6576 #include <stdlib.h>
6577 "; then :
6578
6579 fi
6580
6581 fi
6582 fi
6583
6584 fi
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
6586 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
6587 case $gl_cv_header_errno_h_EMULTIHOP in
6588 yes | no)
6589 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
6590 ;;
6591 *)
6592 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
6593 ;;
6594 esac
6595
6596
6597 fi
6598
6599
6600 if test -n "$ERRNO_H"; then
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
6602 $as_echo_n "checking for ENOLINK value... " >&6; }
6603 if ${gl_cv_header_errno_h_ENOLINK+:} false; then :
6604 $as_echo_n "(cached) " >&6
6605 else
6606
6607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608 /* end confdefs.h. */
6609
6610 #include <errno.h>
6611 #ifdef ENOLINK
6612 yes
6613 #endif
6614
6615 _ACEOF
6616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6617 $EGREP "yes" >/dev/null 2>&1; then :
6618 gl_cv_header_errno_h_ENOLINK=yes
6619 else
6620 gl_cv_header_errno_h_ENOLINK=no
6621 fi
6622 rm -f conftest*
6623
6624 if test $gl_cv_header_errno_h_ENOLINK = no; then
6625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6626 /* end confdefs.h. */
6627
6628 #define _XOPEN_SOURCE_EXTENDED 1
6629 #include <errno.h>
6630 #ifdef ENOLINK
6631 yes
6632 #endif
6633
6634 _ACEOF
6635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6636 $EGREP "yes" >/dev/null 2>&1; then :
6637 gl_cv_header_errno_h_ENOLINK=hidden
6638 fi
6639 rm -f conftest*
6640
6641 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
6642 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
6643 #define _XOPEN_SOURCE_EXTENDED 1
6644 #include <errno.h>
6645 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6646 #include <stdio.h>
6647 #include <stdlib.h>
6648 "; then :
6649
6650 fi
6651
6652 fi
6653 fi
6654
6655 fi
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
6657 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
6658 case $gl_cv_header_errno_h_ENOLINK in
6659 yes | no)
6660 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
6661 ;;
6662 *)
6663 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
6664 ;;
6665 esac
6666
6667
6668 fi
6669
6670
6671 if test -n "$ERRNO_H"; then
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
6673 $as_echo_n "checking for EOVERFLOW value... " >&6; }
6674 if ${gl_cv_header_errno_h_EOVERFLOW+:} false; then :
6675 $as_echo_n "(cached) " >&6
6676 else
6677
6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679 /* end confdefs.h. */
6680
6681 #include <errno.h>
6682 #ifdef EOVERFLOW
6683 yes
6684 #endif
6685
6686 _ACEOF
6687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6688 $EGREP "yes" >/dev/null 2>&1; then :
6689 gl_cv_header_errno_h_EOVERFLOW=yes
6690 else
6691 gl_cv_header_errno_h_EOVERFLOW=no
6692 fi
6693 rm -f conftest*
6694
6695 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
6696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697 /* end confdefs.h. */
6698
6699 #define _XOPEN_SOURCE_EXTENDED 1
6700 #include <errno.h>
6701 #ifdef EOVERFLOW
6702 yes
6703 #endif
6704
6705 _ACEOF
6706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6707 $EGREP "yes" >/dev/null 2>&1; then :
6708 gl_cv_header_errno_h_EOVERFLOW=hidden
6709 fi
6710 rm -f conftest*
6711
6712 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
6713 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
6714 #define _XOPEN_SOURCE_EXTENDED 1
6715 #include <errno.h>
6716 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6717 #include <stdio.h>
6718 #include <stdlib.h>
6719 "; then :
6720
6721 fi
6722
6723 fi
6724 fi
6725
6726 fi
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
6728 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
6729 case $gl_cv_header_errno_h_EOVERFLOW in
6730 yes | no)
6731 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
6732 ;;
6733 *)
6734 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
6735 ;;
6736 esac
6737
6738
6739 fi
6740
6741
6742
6743
6744
6745
6746
6747
6748 for ac_header in $ac_header_list
6749 do :
6750 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6751 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6752 "
6753 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6754 cat >>confdefs.h <<_ACEOF
6755 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6756 _ACEOF
6757
6758 fi
6759
6760 done
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774 if test $gl_cv_have_include_next = yes; then
6775 gl_cv_next_limits_h='<'limits.h'>'
6776 else
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
6778 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
6779 if ${gl_cv_next_limits_h+:} false; then :
6780 $as_echo_n "(cached) " >&6
6781 else
6782
6783 if test $ac_cv_header_limits_h = yes; then
6784
6785
6786
6787
6788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6789 /* end confdefs.h. */
6790 #include <limits.h>
6791 _ACEOF
6792 case "$host_os" in
6793 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6794 *) gl_absname_cpp="$ac_cpp" ;;
6795 esac
6796
6797 case "$host_os" in
6798 mingw*)
6799 gl_dirsep_regex='[/\\]'
6800 ;;
6801 *)
6802 gl_dirsep_regex='\/'
6803 ;;
6804 esac
6805 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6806 gl_header_literal_regex=`echo 'limits.h' \
6807 | sed -e "$gl_make_literal_regex_sed"`
6808 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6809 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6810 s|^/[^/]|//&|
6811 p
6812 q
6813 }'
6814
6815 gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6816 sed -n "$gl_absolute_header_sed"`
6817
6818 gl_header=$gl_cv_absolute_limits_h
6819 gl_cv_next_limits_h='"'$gl_header'"'
6820 else
6821 gl_cv_next_limits_h='<'limits.h'>'
6822 fi
6823
6824
6825 fi
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
6827 $as_echo "$gl_cv_next_limits_h" >&6; }
6828 fi
6829 NEXT_LIMITS_H=$gl_cv_next_limits_h
6830
6831 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6832 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6833 gl_next_as_first_directive='<'limits.h'>'
6834 else
6835 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6836 gl_next_as_first_directive=$gl_cv_next_limits_h
6837 fi
6838 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
6839
6840
6841
6842
6843
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc." >&5
6845 $as_echo_n "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... " >&6; }
6846 if ${gl_cv_header_limits_width+:} false; then :
6847 $as_echo_n "(cached) " >&6
6848 else
6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6851 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
6852 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
6853 #endif
6854 #include <limits.h>
6855 long long llm = LLONG_MAX;
6856 int wb = WORD_BIT;
6857 int ullw = ULLONG_WIDTH;
6858
6859 int
6860 main ()
6861 {
6862
6863 ;
6864 return 0;
6865 }
6866 _ACEOF
6867 if ac_fn_c_try_compile "$LINENO"; then :
6868 gl_cv_header_limits_width=yes
6869 else
6870 gl_cv_header_limits_width=no
6871 fi
6872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6873 fi
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
6875 $as_echo "$gl_cv_header_limits_width" >&6; }
6876 if test "$gl_cv_header_limits_width" = yes; then
6877 LIMITS_H=
6878 else
6879 LIMITS_H=limits.h
6880 fi
6881
6882 if test -n "$LIMITS_H"; then
6883 GL_GENERATE_LIMITS_H_TRUE=
6884 GL_GENERATE_LIMITS_H_FALSE='#'
6885 else
6886 GL_GENERATE_LIMITS_H_TRUE='#'
6887 GL_GENERATE_LIMITS_H_FALSE=
6888 fi
6889
6890
6891
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
6893 $as_echo_n "checking for wint_t... " >&6; }
6894 if ${gt_cv_c_wint_t+:} false; then :
6895 $as_echo_n "(cached) " >&6
6896 else
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6899
6900 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
6901 <wchar.h>.
6902 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
6903 before <wchar.h>. */
6904 #include <stddef.h>
6905 #include <stdio.h>
6906 #include <time.h>
6907 #include <wchar.h>
6908 wint_t foo = (wchar_t)'\0';
6909 int
6910 main ()
6911 {
6912
6913 ;
6914 return 0;
6915 }
6916 _ACEOF
6917 if ac_fn_c_try_compile "$LINENO"; then :
6918 gt_cv_c_wint_t=yes
6919 else
6920 gt_cv_c_wint_t=no
6921 fi
6922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6923 fi
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
6925 $as_echo "$gt_cv_c_wint_t" >&6; }
6926 if test $gt_cv_c_wint_t = yes; then
6927
6928 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
6929
6930
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wint_t is large enough" >&5
6932 $as_echo_n "checking whether wint_t is large enough... " >&6; }
6933 if ${gl_cv_type_wint_t_large_enough+:} false; then :
6934 $as_echo_n "(cached) " >&6
6935 else
6936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6937 /* end confdefs.h. */
6938
6939 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
6940 <wchar.h>.
6941 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6942 included before <wchar.h>. */
6943 #if !(defined __GLIBC__ && !defined __UCLIBC__)
6944 # include <stddef.h>
6945 # include <stdio.h>
6946 # include <time.h>
6947 #endif
6948 #include <wchar.h>
6949 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
6950
6951 int
6952 main ()
6953 {
6954
6955 ;
6956 return 0;
6957 }
6958 _ACEOF
6959 if ac_fn_c_try_compile "$LINENO"; then :
6960 gl_cv_type_wint_t_large_enough=yes
6961 else
6962 gl_cv_type_wint_t_large_enough=no
6963 fi
6964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6965 fi
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_large_enough" >&5
6967 $as_echo "$gl_cv_type_wint_t_large_enough" >&6; }
6968 if test $gl_cv_type_wint_t_large_enough = no; then
6969 GNULIB_OVERRIDES_WINT_T=1
6970 else
6971 GNULIB_OVERRIDES_WINT_T=0
6972 fi
6973 else
6974 GNULIB_OVERRIDES_WINT_T=0
6975 fi
6976
6977
6978
6979
6980
6981
6982
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler produces multi-arch binaries" >&5
6984 $as_echo_n "checking whether the compiler produces multi-arch binaries... " >&6; }
6985 if ${gl_cv_c_multiarch+:} false; then :
6986 $as_echo_n "(cached) " >&6
6987 else
6988 gl_cv_c_multiarch=no
6989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6990 /* end confdefs.h. */
6991 #ifndef __APPLE_CC__
6992 not a universal capable compiler
6993 #endif
6994 typedef int dummy;
6995
6996 _ACEOF
6997 if ac_fn_c_try_compile "$LINENO"; then :
6998
6999 arch=
7000 prev=
7001 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
7002 if test -n "$prev"; then
7003 case $word in
7004 i?86 | x86_64 | ppc | ppc64 | arm | arm64)
7005 if test -z "$arch" || test "$arch" = "$word"; then
7006 arch="$word"
7007 else
7008 gl_cv_c_multiarch=yes
7009 fi
7010 ;;
7011 esac
7012 prev=
7013 else
7014 if test "x$word" = "x-arch"; then
7015 prev=arch
7016 fi
7017 fi
7018 done
7019
7020 fi
7021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7022
7023 fi
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_multiarch" >&5
7025 $as_echo "$gl_cv_c_multiarch" >&6; }
7026 if test $gl_cv_c_multiarch = yes; then
7027 APPLE_UNIVERSAL_BUILD=1
7028 else
7029 APPLE_UNIVERSAL_BUILD=0
7030 fi
7031
7032
7033
7034
7035
7036
7037
7038
7039 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7040
7041
7042 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7043
7044
7045
7046 if test $ac_cv_header_wchar_h = yes; then
7047 HAVE_WCHAR_H=1
7048 else
7049 HAVE_WCHAR_H=0
7050 fi
7051
7052
7053 if test $ac_cv_header_inttypes_h = yes; then
7054 HAVE_INTTYPES_H=1
7055 else
7056 HAVE_INTTYPES_H=0
7057 fi
7058
7059
7060 if test $ac_cv_header_sys_types_h = yes; then
7061 HAVE_SYS_TYPES_H=1
7062 else
7063 HAVE_SYS_TYPES_H=0
7064 fi
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076 if test $gl_cv_have_include_next = yes; then
7077 gl_cv_next_stdint_h='<'stdint.h'>'
7078 else
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
7080 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
7081 if ${gl_cv_next_stdint_h+:} false; then :
7082 $as_echo_n "(cached) " >&6
7083 else
7084
7085 if test $ac_cv_header_stdint_h = yes; then
7086
7087
7088
7089
7090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7091 /* end confdefs.h. */
7092 #include <stdint.h>
7093 _ACEOF
7094 case "$host_os" in
7095 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7096 *) gl_absname_cpp="$ac_cpp" ;;
7097 esac
7098
7099 case "$host_os" in
7100 mingw*)
7101 gl_dirsep_regex='[/\\]'
7102 ;;
7103 *)
7104 gl_dirsep_regex='\/'
7105 ;;
7106 esac
7107 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7108 gl_header_literal_regex=`echo 'stdint.h' \
7109 | sed -e "$gl_make_literal_regex_sed"`
7110 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7111 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7112 s|^/[^/]|//&|
7113 p
7114 q
7115 }'
7116
7117 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7118 sed -n "$gl_absolute_header_sed"`
7119
7120 gl_header=$gl_cv_absolute_stdint_h
7121 gl_cv_next_stdint_h='"'$gl_header'"'
7122 else
7123 gl_cv_next_stdint_h='<'stdint.h'>'
7124 fi
7125
7126
7127 fi
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
7129 $as_echo "$gl_cv_next_stdint_h" >&6; }
7130 fi
7131 NEXT_STDINT_H=$gl_cv_next_stdint_h
7132
7133 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7134 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7135 gl_next_as_first_directive='<'stdint.h'>'
7136 else
7137 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7138 gl_next_as_first_directive=$gl_cv_next_stdint_h
7139 fi
7140 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
7141
7142
7143
7144
7145 if test $ac_cv_header_stdint_h = yes; then
7146 HAVE_STDINT_H=1
7147 else
7148 HAVE_STDINT_H=0
7149 fi
7150
7151
7152 if test $ac_cv_header_stdint_h = yes; then
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
7154 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
7155 if ${gl_cv_header_working_stdint_h+:} false; then :
7156 $as_echo_n "(cached) " >&6
7157 else
7158 gl_cv_header_working_stdint_h=no
7159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160 /* end confdefs.h. */
7161
7162
7163 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7164 #define __STDC_CONSTANT_MACROS 1
7165 #define __STDC_LIMIT_MACROS 1
7166 #include <stdint.h>
7167 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
7168 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
7169 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
7170 #endif
7171
7172
7173 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7174 included before <wchar.h>. */
7175 #include <stddef.h>
7176 #include <signal.h>
7177 #if HAVE_WCHAR_H
7178 # include <stdio.h>
7179 # include <time.h>
7180 # include <wchar.h>
7181 #endif
7182
7183
7184 #ifdef INT8_MAX
7185 int8_t a1 = INT8_MAX;
7186 int8_t a1min = INT8_MIN;
7187 #endif
7188 #ifdef INT16_MAX
7189 int16_t a2 = INT16_MAX;
7190 int16_t a2min = INT16_MIN;
7191 #endif
7192 #ifdef INT32_MAX
7193 int32_t a3 = INT32_MAX;
7194 int32_t a3min = INT32_MIN;
7195 #endif
7196 #ifdef INT64_MAX
7197 int64_t a4 = INT64_MAX;
7198 int64_t a4min = INT64_MIN;
7199 #endif
7200 #ifdef UINT8_MAX
7201 uint8_t b1 = UINT8_MAX;
7202 #else
7203 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
7204 #endif
7205 #ifdef UINT16_MAX
7206 uint16_t b2 = UINT16_MAX;
7207 #endif
7208 #ifdef UINT32_MAX
7209 uint32_t b3 = UINT32_MAX;
7210 #endif
7211 #ifdef UINT64_MAX
7212 uint64_t b4 = UINT64_MAX;
7213 #endif
7214 int_least8_t c1 = INT8_C (0x7f);
7215 int_least8_t c1max = INT_LEAST8_MAX;
7216 int_least8_t c1min = INT_LEAST8_MIN;
7217 int_least16_t c2 = INT16_C (0x7fff);
7218 int_least16_t c2max = INT_LEAST16_MAX;
7219 int_least16_t c2min = INT_LEAST16_MIN;
7220 int_least32_t c3 = INT32_C (0x7fffffff);
7221 int_least32_t c3max = INT_LEAST32_MAX;
7222 int_least32_t c3min = INT_LEAST32_MIN;
7223 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
7224 int_least64_t c4max = INT_LEAST64_MAX;
7225 int_least64_t c4min = INT_LEAST64_MIN;
7226 uint_least8_t d1 = UINT8_C (0xff);
7227 uint_least8_t d1max = UINT_LEAST8_MAX;
7228 uint_least16_t d2 = UINT16_C (0xffff);
7229 uint_least16_t d2max = UINT_LEAST16_MAX;
7230 uint_least32_t d3 = UINT32_C (0xffffffff);
7231 uint_least32_t d3max = UINT_LEAST32_MAX;
7232 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
7233 uint_least64_t d4max = UINT_LEAST64_MAX;
7234 int_fast8_t e1 = INT_FAST8_MAX;
7235 int_fast8_t e1min = INT_FAST8_MIN;
7236 int_fast16_t e2 = INT_FAST16_MAX;
7237 int_fast16_t e2min = INT_FAST16_MIN;
7238 int_fast32_t e3 = INT_FAST32_MAX;
7239 int_fast32_t e3min = INT_FAST32_MIN;
7240 int_fast64_t e4 = INT_FAST64_MAX;
7241 int_fast64_t e4min = INT_FAST64_MIN;
7242 uint_fast8_t f1 = UINT_FAST8_MAX;
7243 uint_fast16_t f2 = UINT_FAST16_MAX;
7244 uint_fast32_t f3 = UINT_FAST32_MAX;
7245 uint_fast64_t f4 = UINT_FAST64_MAX;
7246 #ifdef INTPTR_MAX
7247 intptr_t g = INTPTR_MAX;
7248 intptr_t gmin = INTPTR_MIN;
7249 #endif
7250 #ifdef UINTPTR_MAX
7251 uintptr_t h = UINTPTR_MAX;
7252 #endif
7253 intmax_t i = INTMAX_MAX;
7254 uintmax_t j = UINTMAX_MAX;
7255
7256 /* Check that SIZE_MAX has the correct type, if possible. */
7257 #if 201112 <= __STDC_VERSION__
7258 int k = _Generic (SIZE_MAX, size_t: 0);
7259 #elif (2 <= __GNUC__ || 4 <= __clang_major__ || defined __IBM__TYPEOF__ \
7260 || (0x5110 <= __SUNPRO_C && !__STDC__))
7261 extern size_t k;
7262 extern __typeof__ (SIZE_MAX) k;
7263 #endif
7264
7265 #include <limits.h> /* for CHAR_BIT */
7266 #define TYPE_MINIMUM(t) \
7267 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
7268 #define TYPE_MAXIMUM(t) \
7269 ((t) ((t) 0 < (t) -1 \
7270 ? (t) -1 \
7271 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
7272 struct s {
7273 int check_PTRDIFF:
7274 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
7275 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
7276 ? 1 : -1;
7277 /* Detect bug in FreeBSD 6.0 / ia64. */
7278 int check_SIG_ATOMIC:
7279 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
7280 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
7281 ? 1 : -1;
7282 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
7283 int check_WCHAR:
7284 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
7285 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
7286 ? 1 : -1;
7287 /* Detect bug in mingw. */
7288 int check_WINT:
7289 WINT_MIN == TYPE_MINIMUM (wint_t)
7290 && WINT_MAX == TYPE_MAXIMUM (wint_t)
7291 ? 1 : -1;
7292
7293 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
7294 int check_UINT8_C:
7295 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
7296 int check_UINT16_C:
7297 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
7298
7299 /* Detect bugs in OpenBSD 3.9 stdint.h. */
7300 #ifdef UINT8_MAX
7301 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
7302 #endif
7303 #ifdef UINT16_MAX
7304 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
7305 #endif
7306 #ifdef UINT32_MAX
7307 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
7308 #endif
7309 #ifdef UINT64_MAX
7310 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
7311 #endif
7312 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
7313 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
7314 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
7315 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
7316 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
7317 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
7318 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
7319 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
7320 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
7321 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
7322 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
7323 };
7324
7325 int
7326 main ()
7327 {
7328
7329 ;
7330 return 0;
7331 }
7332 _ACEOF
7333 if ac_fn_c_try_compile "$LINENO"; then :
7334 if test "$cross_compiling" = yes; then :
7335 case "$host_os" in
7336 # Guess yes on native Windows.
7337 mingw*) gl_cv_header_working_stdint_h="guessing yes" ;;
7338 # In general, assume it works.
7339 *) gl_cv_header_working_stdint_h="guessing yes" ;;
7340 esac
7341
7342 else
7343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7344 /* end confdefs.h. */
7345
7346
7347 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7348 #define __STDC_CONSTANT_MACROS 1
7349 #define __STDC_LIMIT_MACROS 1
7350 #include <stdint.h>
7351
7352
7353 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7354 included before <wchar.h>. */
7355 #include <stddef.h>
7356 #include <signal.h>
7357 #if HAVE_WCHAR_H
7358 # include <stdio.h>
7359 # include <time.h>
7360 # include <wchar.h>
7361 #endif
7362
7363
7364 #include <stdio.h>
7365 #include <string.h>
7366 #define MVAL(macro) MVAL1(macro)
7367 #define MVAL1(expression) #expression
7368 static const char *macro_values[] =
7369 {
7370 #ifdef INT8_MAX
7371 MVAL (INT8_MAX),
7372 #endif
7373 #ifdef INT16_MAX
7374 MVAL (INT16_MAX),
7375 #endif
7376 #ifdef INT32_MAX
7377 MVAL (INT32_MAX),
7378 #endif
7379 #ifdef INT64_MAX
7380 MVAL (INT64_MAX),
7381 #endif
7382 #ifdef UINT8_MAX
7383 MVAL (UINT8_MAX),
7384 #endif
7385 #ifdef UINT16_MAX
7386 MVAL (UINT16_MAX),
7387 #endif
7388 #ifdef UINT32_MAX
7389 MVAL (UINT32_MAX),
7390 #endif
7391 #ifdef UINT64_MAX
7392 MVAL (UINT64_MAX),
7393 #endif
7394 NULL
7395 };
7396
7397 int
7398 main ()
7399 {
7400
7401 const char **mv;
7402 for (mv = macro_values; *mv != NULL; mv++)
7403 {
7404 const char *value = *mv;
7405 /* Test whether it looks like a cast expression. */
7406 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
7407 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
7408 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
7409 || strncmp (value, "((int)"/*)*/, 6) == 0
7410 || strncmp (value, "((signed short)"/*)*/, 15) == 0
7411 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
7412 return mv - macro_values + 1;
7413 }
7414 return 0;
7415
7416 ;
7417 return 0;
7418 }
7419 _ACEOF
7420 if ac_fn_c_try_run "$LINENO"; then :
7421 gl_cv_header_working_stdint_h=yes
7422 fi
7423 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7424 conftest.$ac_objext conftest.beam conftest.$ac_ext
7425 fi
7426
7427
7428 fi
7429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7430
7431 fi
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
7433 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
7434 fi
7435
7436 HAVE_C99_STDINT_H=0
7437 HAVE_SYS_BITYPES_H=0
7438 HAVE_SYS_INTTYPES_H=0
7439 STDINT_H=stdint.h
7440 case "$gl_cv_header_working_stdint_h" in
7441 *yes)
7442 HAVE_C99_STDINT_H=1
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h works without ISO C predefines" >&5
7444 $as_echo_n "checking whether stdint.h works without ISO C predefines... " >&6; }
7445 if ${gl_cv_header_stdint_without_STDC_macros+:} false; then :
7446 $as_echo_n "(cached) " >&6
7447 else
7448 gl_cv_header_stdint_without_STDC_macros=no
7449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7450 /* end confdefs.h. */
7451
7452
7453 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7454 #include <stdint.h>
7455
7456
7457 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7458 included before <wchar.h>. */
7459 #include <stddef.h>
7460 #include <signal.h>
7461 #if HAVE_WCHAR_H
7462 # include <stdio.h>
7463 # include <time.h>
7464 # include <wchar.h>
7465 #endif
7466
7467
7468 intmax_t im = INTMAX_MAX;
7469 int32_t i32 = INT32_C (0x7fffffff);
7470
7471 int
7472 main ()
7473 {
7474
7475 ;
7476 return 0;
7477 }
7478 _ACEOF
7479 if ac_fn_c_try_compile "$LINENO"; then :
7480 gl_cv_header_stdint_without_STDC_macros=yes
7481 fi
7482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7483
7484 fi
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_without_STDC_macros" >&5
7486 $as_echo "$gl_cv_header_stdint_without_STDC_macros" >&6; }
7487
7488 if test $gl_cv_header_stdint_without_STDC_macros = no; then
7489
7490 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
7491
7492
7493 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
7494
7495 fi
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
7497 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
7498 if ${gl_cv_header_stdint_width+:} false; then :
7499 $as_echo_n "(cached) " >&6
7500 else
7501 gl_cv_header_stdint_width=no
7502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503 /* end confdefs.h. */
7504
7505 /* Work if build is not clean. */
7506 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
7507 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
7508 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
7509 #endif
7510 #include <stdint.h>
7511
7512 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7513 included before <wchar.h>. */
7514 #include <stddef.h>
7515 #include <signal.h>
7516 #if HAVE_WCHAR_H
7517 # include <stdio.h>
7518 # include <time.h>
7519 # include <wchar.h>
7520 #endif
7521
7522 int iw = UINTMAX_WIDTH;
7523
7524 int
7525 main ()
7526 {
7527
7528 ;
7529 return 0;
7530 }
7531 _ACEOF
7532 if ac_fn_c_try_compile "$LINENO"; then :
7533 gl_cv_header_stdint_width=yes
7534 fi
7535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7536 fi
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
7538 $as_echo "$gl_cv_header_stdint_width" >&6; }
7539 if test "$gl_cv_header_stdint_width" = yes; then
7540 STDINT_H=
7541 fi
7542 ;;
7543 *)
7544 for ac_header in sys/inttypes.h sys/bitypes.h
7545 do :
7546 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7547 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7548 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7549 cat >>confdefs.h <<_ACEOF
7550 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7551 _ACEOF
7552
7553 fi
7554
7555 done
7556
7557 if test $ac_cv_header_sys_inttypes_h = yes; then
7558 HAVE_SYS_INTTYPES_H=1
7559 fi
7560 if test $ac_cv_header_sys_bitypes_h = yes; then
7561 HAVE_SYS_BITYPES_H=1
7562 fi
7563
7564
7565 if test $APPLE_UNIVERSAL_BUILD = 0; then
7566
7567
7568 for gltype in ptrdiff_t size_t ; do
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
7570 $as_echo_n "checking for bit size of $gltype... " >&6; }
7571 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
7572 $as_echo_n "(cached) " >&6
7573 else
7574 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
7575 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7576 included before <wchar.h>. */
7577 #include <stddef.h>
7578 #include <signal.h>
7579 #if HAVE_WCHAR_H
7580 # include <stdio.h>
7581 # include <time.h>
7582 # include <wchar.h>
7583 #endif
7584
7585 #include <limits.h>"; then :
7586
7587 else
7588 result=unknown
7589 fi
7590
7591 eval gl_cv_bitsizeof_${gltype}=\$result
7592
7593 fi
7594 eval ac_res=\$gl_cv_bitsizeof_${gltype}
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7596 $as_echo "$ac_res" >&6; }
7597 eval result=\$gl_cv_bitsizeof_${gltype}
7598 if test $result = unknown; then
7599 result=0
7600 fi
7601 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7602 cat >>confdefs.h <<_ACEOF
7603 #define BITSIZEOF_${GLTYPE} $result
7604 _ACEOF
7605
7606 eval BITSIZEOF_${GLTYPE}=\$result
7607 done
7608
7609
7610 fi
7611
7612
7613 for gltype in sig_atomic_t wchar_t wint_t ; do
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
7615 $as_echo_n "checking for bit size of $gltype... " >&6; }
7616 if eval \${gl_cv_bitsizeof_${gltype}+:} false; then :
7617 $as_echo_n "(cached) " >&6
7618 else
7619 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
7620 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7621 included before <wchar.h>. */
7622 #include <stddef.h>
7623 #include <signal.h>
7624 #if HAVE_WCHAR_H
7625 # include <stdio.h>
7626 # include <time.h>
7627 # include <wchar.h>
7628 #endif
7629
7630 #include <limits.h>"; then :
7631
7632 else
7633 result=unknown
7634 fi
7635
7636 eval gl_cv_bitsizeof_${gltype}=\$result
7637
7638 fi
7639 eval ac_res=\$gl_cv_bitsizeof_${gltype}
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7641 $as_echo "$ac_res" >&6; }
7642 eval result=\$gl_cv_bitsizeof_${gltype}
7643 if test $result = unknown; then
7644 result=0
7645 fi
7646 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7647 cat >>confdefs.h <<_ACEOF
7648 #define BITSIZEOF_${GLTYPE} $result
7649 _ACEOF
7650
7651 eval BITSIZEOF_${GLTYPE}=\$result
7652 done
7653
7654
7655
7656
7657 for gltype in sig_atomic_t wchar_t wint_t ; do
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
7659 $as_echo_n "checking whether $gltype is signed... " >&6; }
7660 if eval \${gl_cv_type_${gltype}_signed+:} false; then :
7661 $as_echo_n "(cached) " >&6
7662 else
7663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664 /* end confdefs.h. */
7665
7666 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7667 included before <wchar.h>. */
7668 #include <stddef.h>
7669 #include <signal.h>
7670 #if HAVE_WCHAR_H
7671 # include <stdio.h>
7672 # include <time.h>
7673 # include <wchar.h>
7674 #endif
7675
7676 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
7677 int
7678 main ()
7679 {
7680
7681 ;
7682 return 0;
7683 }
7684 _ACEOF
7685 if ac_fn_c_try_compile "$LINENO"; then :
7686 result=yes
7687 else
7688 result=no
7689 fi
7690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7691 eval gl_cv_type_${gltype}_signed=\$result
7692
7693 fi
7694 eval ac_res=\$gl_cv_type_${gltype}_signed
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7696 $as_echo "$ac_res" >&6; }
7697 eval result=\$gl_cv_type_${gltype}_signed
7698 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7699 if test "$result" = yes; then
7700 cat >>confdefs.h <<_ACEOF
7701 #define HAVE_SIGNED_${GLTYPE} 1
7702 _ACEOF
7703
7704 eval HAVE_SIGNED_${GLTYPE}=1
7705 else
7706 eval HAVE_SIGNED_${GLTYPE}=0
7707 fi
7708 done
7709
7710
7711 gl_cv_type_ptrdiff_t_signed=yes
7712 gl_cv_type_size_t_signed=no
7713 if test $APPLE_UNIVERSAL_BUILD = 0; then
7714
7715
7716 for gltype in ptrdiff_t size_t ; do
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
7718 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
7719 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
7720 $as_echo_n "(cached) " >&6
7721 else
7722 eval gl_cv_type_${gltype}_suffix=no
7723 eval result=\$gl_cv_type_${gltype}_signed
7724 if test "$result" = yes; then
7725 glsufu=
7726 else
7727 glsufu=u
7728 fi
7729 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
7730 case $glsuf in
7731 '') gltype1='int';;
7732 l) gltype1='long int';;
7733 ll) gltype1='long long int';;
7734 i64) gltype1='__int64';;
7735 u) gltype1='unsigned int';;
7736 ul) gltype1='unsigned long int';;
7737 ull) gltype1='unsigned long long int';;
7738 ui64)gltype1='unsigned __int64';;
7739 esac
7740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7741 /* end confdefs.h. */
7742
7743 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7744 included before <wchar.h>. */
7745 #include <stddef.h>
7746 #include <signal.h>
7747 #if HAVE_WCHAR_H
7748 # include <stdio.h>
7749 # include <time.h>
7750 # include <wchar.h>
7751 #endif
7752
7753 extern $gltype foo;
7754 extern $gltype1 foo;
7755 int
7756 main ()
7757 {
7758
7759 ;
7760 return 0;
7761 }
7762 _ACEOF
7763 if ac_fn_c_try_compile "$LINENO"; then :
7764 eval gl_cv_type_${gltype}_suffix=\$glsuf
7765 fi
7766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7767 eval result=\$gl_cv_type_${gltype}_suffix
7768 test "$result" != no && break
7769 done
7770 fi
7771 eval ac_res=\$gl_cv_type_${gltype}_suffix
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7773 $as_echo "$ac_res" >&6; }
7774 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7775 eval result=\$gl_cv_type_${gltype}_suffix
7776 test "$result" = no && result=
7777 eval ${GLTYPE}_SUFFIX=\$result
7778 cat >>confdefs.h <<_ACEOF
7779 #define ${GLTYPE}_SUFFIX $result
7780 _ACEOF
7781
7782 done
7783
7784
7785 fi
7786
7787
7788 for gltype in sig_atomic_t wchar_t wint_t ; do
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
7790 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
7791 if eval \${gl_cv_type_${gltype}_suffix+:} false; then :
7792 $as_echo_n "(cached) " >&6
7793 else
7794 eval gl_cv_type_${gltype}_suffix=no
7795 eval result=\$gl_cv_type_${gltype}_signed
7796 if test "$result" = yes; then
7797 glsufu=
7798 else
7799 glsufu=u
7800 fi
7801 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
7802 case $glsuf in
7803 '') gltype1='int';;
7804 l) gltype1='long int';;
7805 ll) gltype1='long long int';;
7806 i64) gltype1='__int64';;
7807 u) gltype1='unsigned int';;
7808 ul) gltype1='unsigned long int';;
7809 ull) gltype1='unsigned long long int';;
7810 ui64)gltype1='unsigned __int64';;
7811 esac
7812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813 /* end confdefs.h. */
7814
7815 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7816 included before <wchar.h>. */
7817 #include <stddef.h>
7818 #include <signal.h>
7819 #if HAVE_WCHAR_H
7820 # include <stdio.h>
7821 # include <time.h>
7822 # include <wchar.h>
7823 #endif
7824
7825 extern $gltype foo;
7826 extern $gltype1 foo;
7827 int
7828 main ()
7829 {
7830
7831 ;
7832 return 0;
7833 }
7834 _ACEOF
7835 if ac_fn_c_try_compile "$LINENO"; then :
7836 eval gl_cv_type_${gltype}_suffix=\$glsuf
7837 fi
7838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7839 eval result=\$gl_cv_type_${gltype}_suffix
7840 test "$result" != no && break
7841 done
7842 fi
7843 eval ac_res=\$gl_cv_type_${gltype}_suffix
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7845 $as_echo "$ac_res" >&6; }
7846 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7847 eval result=\$gl_cv_type_${gltype}_suffix
7848 test "$result" = no && result=
7849 eval ${GLTYPE}_SUFFIX=\$result
7850 cat >>confdefs.h <<_ACEOF
7851 #define ${GLTYPE}_SUFFIX $result
7852 _ACEOF
7853
7854 done
7855
7856
7857
7858 if test $GNULIB_OVERRIDES_WINT_T = 1; then
7859 BITSIZEOF_WINT_T=32
7860 fi
7861
7862 ;;
7863 esac
7864
7865
7866
7867 LIMITS_H='limits.h'
7868 if test -n "$LIMITS_H"; then
7869 GL_GENERATE_LIMITS_H_TRUE=
7870 GL_GENERATE_LIMITS_H_FALSE='#'
7871 else
7872 GL_GENERATE_LIMITS_H_TRUE='#'
7873 GL_GENERATE_LIMITS_H_FALSE=
7874 fi
7875
7876
7877
7878
7879
7880
7881
7882 if test -n "$STDINT_H"; then
7883 GL_GENERATE_STDINT_H_TRUE=
7884 GL_GENERATE_STDINT_H_FALSE='#'
7885 else
7886 GL_GENERATE_STDINT_H_TRUE='#'
7887 GL_GENERATE_STDINT_H_FALSE=
7888 fi
7889
7890
7891
7892
7893
7894 GNULIB_IMAXABS=0;
7895 GNULIB_IMAXDIV=0;
7896 GNULIB_STRTOIMAX=0;
7897 GNULIB_STRTOUMAX=0;
7898 HAVE_DECL_IMAXABS=1;
7899 HAVE_DECL_IMAXDIV=1;
7900 HAVE_DECL_STRTOIMAX=1;
7901 HAVE_DECL_STRTOUMAX=1;
7902 HAVE_IMAXDIV_T=1;
7903 REPLACE_STRTOIMAX=0;
7904 REPLACE_STRTOUMAX=0;
7905 INT32_MAX_LT_INTMAX_MAX=1;
7906 INT64_MAX_EQ_LONG_MAX='defined _LP64';
7907 PRIPTR_PREFIX=__PRIPTR_PREFIX;
7908 UINT32_MAX_LT_UINTMAX_MAX=1;
7909 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
7910
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
7912 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7913 if ${ac_cv_c_restrict+:} false; then :
7914 $as_echo_n "(cached) " >&6
7915 else
7916 ac_cv_c_restrict=no
7917 # The order here caters to the fact that C++ does not require restrict.
7918 for ac_kw in __restrict __restrict__ _Restrict restrict; do
7919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920 /* end confdefs.h. */
7921 typedef int *int_ptr;
7922 int foo (int_ptr $ac_kw ip) { return ip[0]; }
7923 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
7924 int bar (int ip[$ac_kw]) { return ip[0]; }
7925
7926 int
7927 main ()
7928 {
7929 int s[1];
7930 int *$ac_kw t = s;
7931 t[0] = 0;
7932 return foo (t) + bar (t);
7933
7934 ;
7935 return 0;
7936 }
7937 _ACEOF
7938 if ac_fn_c_try_compile "$LINENO"; then :
7939 ac_cv_c_restrict=$ac_kw
7940 fi
7941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7942 test "$ac_cv_c_restrict" != no && break
7943 done
7944
7945 fi
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
7947 $as_echo "$ac_cv_c_restrict" >&6; }
7948
7949 case $ac_cv_c_restrict in
7950 restrict) ;;
7951 no) $as_echo "#define restrict /**/" >>confdefs.h
7952 ;;
7953 *) cat >>confdefs.h <<_ACEOF
7954 #define restrict $ac_cv_c_restrict
7955 _ACEOF
7956 ;;
7957 esac
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973 if test $gl_cv_have_include_next = yes; then
7974 gl_cv_next_inttypes_h='<'inttypes.h'>'
7975 else
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
7977 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
7978 if ${gl_cv_next_inttypes_h+:} false; then :
7979 $as_echo_n "(cached) " >&6
7980 else
7981
7982 if test $ac_cv_header_inttypes_h = yes; then
7983
7984
7985
7986
7987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7988 /* end confdefs.h. */
7989 #include <inttypes.h>
7990 _ACEOF
7991 case "$host_os" in
7992 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7993 *) gl_absname_cpp="$ac_cpp" ;;
7994 esac
7995
7996 case "$host_os" in
7997 mingw*)
7998 gl_dirsep_regex='[/\\]'
7999 ;;
8000 *)
8001 gl_dirsep_regex='\/'
8002 ;;
8003 esac
8004 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8005 gl_header_literal_regex=`echo 'inttypes.h' \
8006 | sed -e "$gl_make_literal_regex_sed"`
8007 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8008 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8009 s|^/[^/]|//&|
8010 p
8011 q
8012 }'
8013
8014 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8015 sed -n "$gl_absolute_header_sed"`
8016
8017 gl_header=$gl_cv_absolute_inttypes_h
8018 gl_cv_next_inttypes_h='"'$gl_header'"'
8019 else
8020 gl_cv_next_inttypes_h='<'inttypes.h'>'
8021 fi
8022
8023
8024 fi
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
8026 $as_echo "$gl_cv_next_inttypes_h" >&6; }
8027 fi
8028 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
8029
8030 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8031 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8032 gl_next_as_first_directive='<'inttypes.h'>'
8033 else
8034 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8035 gl_next_as_first_directive=$gl_cv_next_inttypes_h
8036 fi
8037 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052 GNULIB__EXIT=0;
8053 GNULIB_ALIGNED_ALLOC=0;
8054 GNULIB_ATOLL=0;
8055 GNULIB_CALLOC_POSIX=0;
8056 GNULIB_CANONICALIZE_FILE_NAME=0;
8057 GNULIB_GETLOADAVG=0;
8058 GNULIB_GETSUBOPT=0;
8059 GNULIB_GRANTPT=0;
8060 GNULIB_MALLOC_POSIX=0;
8061 GNULIB_MBTOWC=0;
8062 GNULIB_MKDTEMP=0;
8063 GNULIB_MKOSTEMP=0;
8064 GNULIB_MKOSTEMPS=0;
8065 GNULIB_MKSTEMP=0;
8066 GNULIB_MKSTEMPS=0;
8067 GNULIB_POSIX_MEMALIGN=0;
8068 GNULIB_POSIX_OPENPT=0;
8069 GNULIB_PTSNAME=0;
8070 GNULIB_PTSNAME_R=0;
8071 GNULIB_PUTENV=0;
8072 GNULIB_QSORT_R=0;
8073 GNULIB_RANDOM=0;
8074 GNULIB_RANDOM_R=0;
8075 GNULIB_REALLOCARRAY=0;
8076 GNULIB_REALLOC_POSIX=0;
8077 GNULIB_REALPATH=0;
8078 GNULIB_RPMATCH=0;
8079 GNULIB_SECURE_GETENV=0;
8080 GNULIB_SETENV=0;
8081 GNULIB_STRTOD=0;
8082 GNULIB_STRTOLD=0;
8083 GNULIB_STRTOLL=0;
8084 GNULIB_STRTOULL=0;
8085 GNULIB_SYSTEM_POSIX=0;
8086 GNULIB_UNLOCKPT=0;
8087 GNULIB_UNSETENV=0;
8088 GNULIB_WCTOMB=0;
8089 HAVE__EXIT=1;
8090 HAVE_ALIGNED_ALLOC=1;
8091 HAVE_ATOLL=1;
8092 HAVE_CANONICALIZE_FILE_NAME=1;
8093 HAVE_DECL_GETLOADAVG=1;
8094 HAVE_GETSUBOPT=1;
8095 HAVE_GRANTPT=1;
8096 HAVE_INITSTATE=1;
8097 HAVE_DECL_INITSTATE=1;
8098 HAVE_MBTOWC=1;
8099 HAVE_MKDTEMP=1;
8100 HAVE_MKOSTEMP=1;
8101 HAVE_MKOSTEMPS=1;
8102 HAVE_MKSTEMP=1;
8103 HAVE_MKSTEMPS=1;
8104 HAVE_POSIX_MEMALIGN=1;
8105 HAVE_POSIX_OPENPT=1;
8106 HAVE_PTSNAME=1;
8107 HAVE_PTSNAME_R=1;
8108 HAVE_QSORT_R=1;
8109 HAVE_RANDOM=1;
8110 HAVE_RANDOM_H=1;
8111 HAVE_RANDOM_R=1;
8112 HAVE_REALLOCARRAY=1;
8113 HAVE_REALPATH=1;
8114 HAVE_RPMATCH=1;
8115 HAVE_SECURE_GETENV=1;
8116 HAVE_SETENV=1;
8117 HAVE_DECL_SETENV=1;
8118 HAVE_SETSTATE=1;
8119 HAVE_DECL_SETSTATE=1;
8120 HAVE_STRTOD=1;
8121 HAVE_STRTOLD=1;
8122 HAVE_STRTOLL=1;
8123 HAVE_STRTOULL=1;
8124 HAVE_STRUCT_RANDOM_DATA=1;
8125 HAVE_SYS_LOADAVG_H=0;
8126 HAVE_UNLOCKPT=1;
8127 HAVE_DECL_UNSETENV=1;
8128 REPLACE_ALIGNED_ALLOC=0;
8129 REPLACE_CALLOC=0;
8130 REPLACE_CANONICALIZE_FILE_NAME=0;
8131 REPLACE_INITSTATE=0;
8132 REPLACE_MALLOC=0;
8133 REPLACE_MBTOWC=0;
8134 REPLACE_MKSTEMP=0;
8135 REPLACE_POSIX_MEMALIGN=0;
8136 REPLACE_PTSNAME=0;
8137 REPLACE_PTSNAME_R=0;
8138 REPLACE_PUTENV=0;
8139 REPLACE_QSORT_R=0;
8140 REPLACE_RANDOM=0;
8141 REPLACE_RANDOM_R=0;
8142 REPLACE_REALLOC=0;
8143 REPLACE_REALPATH=0;
8144 REPLACE_SETENV=0;
8145 REPLACE_SETSTATE=0;
8146 REPLACE_STRTOD=0;
8147 REPLACE_STRTOLD=0;
8148 REPLACE_UNSETENV=0;
8149 REPLACE_WCTOMB=0;
8150
8151
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
8153 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
8154 if ${gl_cv_func_malloc_posix+:} false; then :
8155 $as_echo_n "(cached) " >&6
8156 else
8157
8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159 /* end confdefs.h. */
8160
8161 int
8162 main ()
8163 {
8164 #if defined _WIN32 && ! defined __CYGWIN__
8165 choke me
8166 #endif
8167
8168 ;
8169 return 0;
8170 }
8171 _ACEOF
8172 if ac_fn_c_try_compile "$LINENO"; then :
8173 gl_cv_func_malloc_posix=yes
8174 else
8175 gl_cv_func_malloc_posix=no
8176 fi
8177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8178
8179 fi
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
8181 $as_echo "$gl_cv_func_malloc_posix" >&6; }
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191 GNULIB_EXPLICIT_BZERO=0;
8192 GNULIB_FFSL=0;
8193 GNULIB_FFSLL=0;
8194 GNULIB_MEMCHR=0;
8195 GNULIB_MEMMEM=0;
8196 GNULIB_MEMPCPY=0;
8197 GNULIB_MEMRCHR=0;
8198 GNULIB_RAWMEMCHR=0;
8199 GNULIB_STPCPY=0;
8200 GNULIB_STPNCPY=0;
8201 GNULIB_STRCHRNUL=0;
8202 GNULIB_STRDUP=0;
8203 GNULIB_STRNCAT=0;
8204 GNULIB_STRNDUP=0;
8205 GNULIB_STRNLEN=0;
8206 GNULIB_STRPBRK=0;
8207 GNULIB_STRSEP=0;
8208 GNULIB_STRSTR=0;
8209 GNULIB_STRCASESTR=0;
8210 GNULIB_STRTOK_R=0;
8211 GNULIB_MBSLEN=0;
8212 GNULIB_MBSNLEN=0;
8213 GNULIB_MBSCHR=0;
8214 GNULIB_MBSRCHR=0;
8215 GNULIB_MBSSTR=0;
8216 GNULIB_MBSCASECMP=0;
8217 GNULIB_MBSNCASECMP=0;
8218 GNULIB_MBSPCASECMP=0;
8219 GNULIB_MBSCASESTR=0;
8220 GNULIB_MBSCSPN=0;
8221 GNULIB_MBSPBRK=0;
8222 GNULIB_MBSSPN=0;
8223 GNULIB_MBSSEP=0;
8224 GNULIB_MBSTOK_R=0;
8225 GNULIB_STRERROR=0;
8226 GNULIB_STRERROR_R=0;
8227 GNULIB_STRERRORNAME_NP=0;
8228 GNULIB_SIGABBREV_NP=0;
8229 GNULIB_SIGDESCR_NP=0;
8230 GNULIB_STRSIGNAL=0;
8231 GNULIB_STRVERSCMP=0;
8232 HAVE_MBSLEN=0;
8233 HAVE_EXPLICIT_BZERO=1;
8234 HAVE_FFSL=1;
8235 HAVE_FFSLL=1;
8236 HAVE_DECL_MEMMEM=1;
8237 HAVE_MEMPCPY=1;
8238 HAVE_DECL_MEMRCHR=1;
8239 HAVE_RAWMEMCHR=1;
8240 HAVE_STPCPY=1;
8241 HAVE_STPNCPY=1;
8242 HAVE_STRCHRNUL=1;
8243 HAVE_DECL_STRDUP=1;
8244 HAVE_DECL_STRNDUP=1;
8245 HAVE_DECL_STRNLEN=1;
8246 HAVE_STRPBRK=1;
8247 HAVE_STRSEP=1;
8248 HAVE_STRCASESTR=1;
8249 HAVE_DECL_STRTOK_R=1;
8250 HAVE_DECL_STRERROR_R=1;
8251 HAVE_STRERRORNAME_NP=1;
8252 HAVE_SIGABBREV_NP=1;
8253 HAVE_SIGDESCR_NP=1;
8254 HAVE_DECL_STRSIGNAL=1;
8255 HAVE_STRVERSCMP=1;
8256 REPLACE_MEMCHR=0;
8257 REPLACE_MEMMEM=0;
8258 REPLACE_STPNCPY=0;
8259 REPLACE_STRCHRNUL=0;
8260 REPLACE_STRDUP=0;
8261 REPLACE_STRNCAT=0;
8262 REPLACE_STRNDUP=0;
8263 REPLACE_STRNLEN=0;
8264 REPLACE_STRSTR=0;
8265 REPLACE_STRCASESTR=0;
8266 REPLACE_STRTOK_R=0;
8267 REPLACE_STRERROR=0;
8268 REPLACE_STRERROR_R=0;
8269 REPLACE_STRERRORNAME_NP=0;
8270 REPLACE_STRSIGNAL=0;
8271 UNDEFINE_STRTOK_R=0;
8272
8273
8274
8275
8276
8277
8278 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
8279 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
8280 # irrelevant for anonymous mappings.
8281 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8282 if test "x$ac_cv_func_mmap" = xyes; then :
8283 gl_have_mmap=yes
8284 else
8285 gl_have_mmap=no
8286 fi
8287
8288
8289 # Try to allow MAP_ANONYMOUS.
8290 gl_have_mmap_anonymous=no
8291 if test $gl_have_mmap = yes; then
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
8293 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
8294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8295 /* end confdefs.h. */
8296
8297 #include <sys/mman.h>
8298 #ifdef MAP_ANONYMOUS
8299 I cannot identify this map
8300 #endif
8301
8302 _ACEOF
8303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8304 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
8305 gl_have_mmap_anonymous=yes
8306 fi
8307 rm -f conftest*
8308
8309 if test $gl_have_mmap_anonymous != yes; then
8310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8311 /* end confdefs.h. */
8312
8313 #include <sys/mman.h>
8314 #ifdef MAP_ANON
8315 I cannot identify this map
8316 #endif
8317
8318 _ACEOF
8319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8320 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
8321
8322 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
8323
8324 gl_have_mmap_anonymous=yes
8325 fi
8326 rm -f conftest*
8327
8328 fi
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
8330 $as_echo "$gl_have_mmap_anonymous" >&6; }
8331 if test $gl_have_mmap_anonymous = yes; then
8332
8333 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
8334
8335 fi
8336 fi
8337
8338
8339
8340
8341
8342 # Detect platform-specific bugs in some versions of glibc:
8343 # memchr should not dereference anything with length 0
8344 # https://bugzilla.redhat.com/show_bug.cgi?id=499689
8345 # memchr should not dereference overestimated length after a match
8346 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
8347 # https://sourceware.org/bugzilla/show_bug.cgi?id=10162
8348 # memchr should cast the second argument to 'unsigned char'.
8349 # This bug exists in Android 4.3.
8350 # Assume that memchr works on platforms that lack mprotect.
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
8352 $as_echo_n "checking whether memchr works... " >&6; }
8353 if ${gl_cv_func_memchr_works+:} false; then :
8354 $as_echo_n "(cached) " >&6
8355 else
8356 if test "$cross_compiling" = yes; then :
8357 case "$host_os" in
8358 # Guess no on Android.
8359 linux*-android*) gl_cv_func_memchr_works="guessing no" ;;
8360 # Guess yes on native Windows.
8361 mingw*) gl_cv_func_memchr_works="guessing yes" ;;
8362 # If we don't know, obey --enable-cross-guesses.
8363 *) gl_cv_func_memchr_works="$gl_cross_guess_normal" ;;
8364 esac
8365
8366 else
8367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8368 /* end confdefs.h. */
8369
8370 #include <string.h>
8371 #if HAVE_SYS_MMAN_H
8372 # include <fcntl.h>
8373 # include <unistd.h>
8374 # include <sys/types.h>
8375 # include <sys/mman.h>
8376 # ifndef MAP_FILE
8377 # define MAP_FILE 0
8378 # endif
8379 #endif
8380
8381 int
8382 main ()
8383 {
8384
8385 int result = 0;
8386 char *fence = NULL;
8387 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
8388 # if HAVE_MAP_ANONYMOUS
8389 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
8390 const int fd = -1;
8391 # else /* !HAVE_MAP_ANONYMOUS */
8392 const int flags = MAP_FILE | MAP_PRIVATE;
8393 int fd = open ("/dev/zero", O_RDONLY, 0666);
8394 if (fd >= 0)
8395 # endif
8396 {
8397 int pagesize = getpagesize ();
8398 char *two_pages =
8399 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
8400 flags, fd, 0);
8401 if (two_pages != (char *)(-1)
8402 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
8403 fence = two_pages + pagesize;
8404 }
8405 #endif
8406 if (fence)
8407 {
8408 if (memchr (fence, 0, 0))
8409 result |= 1;
8410 strcpy (fence - 9, "12345678");
8411 if (memchr (fence - 9, 0, 79) != fence - 1)
8412 result |= 2;
8413 if (memchr (fence - 1, 0, 3) != fence - 1)
8414 result |= 4;
8415 }
8416 /* Test against bug on Android 4.3. */
8417 {
8418 char input[3];
8419 input[0] = 'a';
8420 input[1] = 'b';
8421 input[2] = 'c';
8422 if (memchr (input, 0x789abc00 | 'b', 3) != input + 1)
8423 result |= 8;
8424 }
8425 return result;
8426
8427 ;
8428 return 0;
8429 }
8430 _ACEOF
8431 if ac_fn_c_try_run "$LINENO"; then :
8432 gl_cv_func_memchr_works=yes
8433 else
8434 gl_cv_func_memchr_works=no
8435 fi
8436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8437 conftest.$ac_objext conftest.beam conftest.$ac_ext
8438 fi
8439
8440
8441 fi
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
8443 $as_echo "$gl_cv_func_memchr_works" >&6; }
8444 case "$gl_cv_func_memchr_works" in
8445 *yes) ;;
8446 *) REPLACE_MEMCHR=1 ;;
8447 esac
8448
8449
8450 GNULIB_DPRINTF=0;
8451 GNULIB_FCLOSE=0;
8452 GNULIB_FDOPEN=0;
8453 GNULIB_FFLUSH=0;
8454 GNULIB_FGETC=0;
8455 GNULIB_FGETS=0;
8456 GNULIB_FOPEN=0;
8457 GNULIB_FPRINTF=0;
8458 GNULIB_FPRINTF_POSIX=0;
8459 GNULIB_FPURGE=0;
8460 GNULIB_FPUTC=0;
8461 GNULIB_FPUTS=0;
8462 GNULIB_FREAD=0;
8463 GNULIB_FREOPEN=0;
8464 GNULIB_FSCANF=0;
8465 GNULIB_FSEEK=0;
8466 GNULIB_FSEEKO=0;
8467 GNULIB_FTELL=0;
8468 GNULIB_FTELLO=0;
8469 GNULIB_FWRITE=0;
8470 GNULIB_GETC=0;
8471 GNULIB_GETCHAR=0;
8472 GNULIB_GETDELIM=0;
8473 GNULIB_GETLINE=0;
8474 GNULIB_OBSTACK_PRINTF=0;
8475 GNULIB_OBSTACK_PRINTF_POSIX=0;
8476 GNULIB_PCLOSE=0;
8477 GNULIB_PERROR=0;
8478 GNULIB_POPEN=0;
8479 GNULIB_PRINTF=0;
8480 GNULIB_PRINTF_POSIX=0;
8481 GNULIB_PUTC=0;
8482 GNULIB_PUTCHAR=0;
8483 GNULIB_PUTS=0;
8484 GNULIB_REMOVE=0;
8485 GNULIB_RENAME=0;
8486 GNULIB_RENAMEAT=0;
8487 GNULIB_SCANF=0;
8488 GNULIB_SNPRINTF=0;
8489 GNULIB_SPRINTF_POSIX=0;
8490 GNULIB_STDIO_H_NONBLOCKING=0;
8491 GNULIB_STDIO_H_SIGPIPE=0;
8492 GNULIB_TMPFILE=0;
8493 GNULIB_VASPRINTF=0;
8494 GNULIB_VFSCANF=0;
8495 GNULIB_VSCANF=0;
8496 GNULIB_VDPRINTF=0;
8497 GNULIB_VFPRINTF=0;
8498 GNULIB_VFPRINTF_POSIX=0;
8499 GNULIB_VPRINTF=0;
8500 GNULIB_VPRINTF_POSIX=0;
8501 GNULIB_VSNPRINTF=0;
8502 GNULIB_VSPRINTF_POSIX=0;
8503 HAVE_DECL_FPURGE=1;
8504 HAVE_DECL_FSEEKO=1;
8505 HAVE_DECL_FTELLO=1;
8506 HAVE_DECL_GETDELIM=1;
8507 HAVE_DECL_GETLINE=1;
8508 HAVE_DECL_OBSTACK_PRINTF=1;
8509 HAVE_DECL_SNPRINTF=1;
8510 HAVE_DECL_VSNPRINTF=1;
8511 HAVE_DPRINTF=1;
8512 HAVE_FSEEKO=1;
8513 HAVE_FTELLO=1;
8514 HAVE_PCLOSE=1;
8515 HAVE_POPEN=1;
8516 HAVE_RENAMEAT=1;
8517 HAVE_VASPRINTF=1;
8518 HAVE_VDPRINTF=1;
8519 REPLACE_DPRINTF=0;
8520 REPLACE_FCLOSE=0;
8521 REPLACE_FDOPEN=0;
8522 REPLACE_FFLUSH=0;
8523 REPLACE_FOPEN=0;
8524 REPLACE_FPRINTF=0;
8525 REPLACE_FPURGE=0;
8526 REPLACE_FREOPEN=0;
8527 REPLACE_FSEEK=0;
8528 REPLACE_FSEEKO=0;
8529 REPLACE_FTELL=0;
8530 REPLACE_FTELLO=0;
8531 REPLACE_GETDELIM=0;
8532 REPLACE_GETLINE=0;
8533 REPLACE_OBSTACK_PRINTF=0;
8534 REPLACE_PERROR=0;
8535 REPLACE_POPEN=0;
8536 REPLACE_PRINTF=0;
8537 REPLACE_REMOVE=0;
8538 REPLACE_RENAME=0;
8539 REPLACE_RENAMEAT=0;
8540 REPLACE_SNPRINTF=0;
8541 REPLACE_SPRINTF=0;
8542 REPLACE_STDIO_READ_FUNCS=0;
8543 REPLACE_STDIO_WRITE_FUNCS=0;
8544 REPLACE_TMPFILE=0;
8545 REPLACE_VASPRINTF=0;
8546 REPLACE_VDPRINTF=0;
8547 REPLACE_VFPRINTF=0;
8548 REPLACE_VPRINTF=0;
8549 REPLACE_VSNPRINTF=0;
8550 REPLACE_VSPRINTF=0;
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
8561 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
8562 if ${gl_cv_func_snprintf_retval_c99+:} false; then :
8563 $as_echo_n "(cached) " >&6
8564 else
8565
8566 if test "$cross_compiling" = yes; then :
8567 case "$host_os" in
8568 # Guess yes on glibc systems.
8569 *-gnu* | gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
8570 # Guess yes on musl systems.
8571 *-musl*) gl_cv_func_snprintf_retval_c99="guessing yes";;
8572 # Guess yes on FreeBSD >= 5.
8573 freebsd[1-4].*) gl_cv_func_snprintf_retval_c99="guessing no";;
8574 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
8575 # Guess yes on Mac OS X >= 10.3.
8576 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
8577 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
8578 # Guess yes on OpenBSD >= 3.9.
8579 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
8580 gl_cv_func_snprintf_retval_c99="guessing no";;
8581 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
8582 # Guess yes on Solaris >= 2.10.
8583 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
8584 solaris*) gl_cv_func_printf_sizes_c99="guessing no";;
8585 # Guess yes on AIX >= 4.
8586 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
8587 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
8588 # Guess yes on NetBSD >= 3.
8589 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
8590 gl_cv_func_snprintf_retval_c99="guessing no";;
8591 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
8592 # Guess yes on BeOS.
8593 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
8594 # Guess yes on Android.
8595 linux*-android*) gl_cv_func_snprintf_retval_c99="guessing yes";;
8596 # Guess yes on MSVC, no on mingw.
8597 mingw*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8598 /* end confdefs.h. */
8599
8600 #ifdef _MSC_VER
8601 Known
8602 #endif
8603
8604 _ACEOF
8605 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8606 $EGREP "Known" >/dev/null 2>&1; then :
8607 gl_cv_func_snprintf_retval_c99="guessing yes"
8608 else
8609 gl_cv_func_snprintf_retval_c99="guessing no"
8610 fi
8611 rm -f conftest*
8612
8613 ;;
8614 # If we don't know, obey --enable-cross-guesses.
8615 *) gl_cv_func_snprintf_retval_c99="$gl_cross_guess_normal";;
8616 esac
8617
8618 else
8619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8620 /* end confdefs.h. */
8621
8622 #include <stdio.h>
8623 #include <string.h>
8624 #if HAVE_SNPRINTF
8625 # define my_snprintf snprintf
8626 #else
8627 # include <stdarg.h>
8628 static int my_snprintf (char *buf, int size, const char *format, ...)
8629 {
8630 va_list args;
8631 int ret;
8632 va_start (args, format);
8633 ret = vsnprintf (buf, size, format, args);
8634 va_end (args);
8635 return ret;
8636 }
8637 #endif
8638 static char buf[100];
8639 int main ()
8640 {
8641 strcpy (buf, "ABCDEF");
8642 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
8643 return 1;
8644 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
8645 return 2;
8646 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
8647 return 3;
8648 return 0;
8649 }
8650 _ACEOF
8651 if ac_fn_c_try_run "$LINENO"; then :
8652 gl_cv_func_snprintf_retval_c99=yes
8653 else
8654 gl_cv_func_snprintf_retval_c99=no
8655 fi
8656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8657 conftest.$ac_objext conftest.beam conftest.$ac_ext
8658 fi
8659
8660
8661 fi
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
8663 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
8664
8665 ac_fn_c_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default"
8666 if test "x$ac_cv_have_decl_snprintf" = xyes; then :
8667 ac_have_decl=1
8668 else
8669 ac_have_decl=0
8670 fi
8671
8672 cat >>confdefs.h <<_ACEOF
8673 #define HAVE_DECL_SNPRINTF $ac_have_decl
8674 _ACEOF
8675
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
8677 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
8678 if ${ac_cv_header_stdbool_h+:} false; then :
8679 $as_echo_n "(cached) " >&6
8680 else
8681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8682 /* end confdefs.h. */
8683
8684 #include <stdbool.h>
8685
8686 #ifdef __cplusplus
8687 typedef bool Bool;
8688 #else
8689 typedef _Bool Bool;
8690 #ifndef bool
8691 "error: bool is not defined"
8692 #endif
8693 #ifndef false
8694 "error: false is not defined"
8695 #endif
8696 #if false
8697 "error: false is not 0"
8698 #endif
8699 #ifndef true
8700 "error: true is not defined"
8701 #endif
8702 #if true != 1
8703 "error: true is not 1"
8704 #endif
8705 #endif
8706
8707 #ifndef __bool_true_false_are_defined
8708 "error: __bool_true_false_are_defined is not defined"
8709 #endif
8710
8711 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
8712
8713 char a[true == 1 ? 1 : -1];
8714 char b[false == 0 ? 1 : -1];
8715 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8716 char d[(bool) 0.5 == true ? 1 : -1];
8717 /* See body of main program for 'e'. */
8718 char f[(Bool) 0.0 == false ? 1 : -1];
8719 char g[true];
8720 char h[sizeof (Bool)];
8721 char i[sizeof s.t];
8722 enum { j = false, k = true, l = false * true, m = true * 256 };
8723 /* The following fails for
8724 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
8725 Bool n[m];
8726 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8727 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
8728 /* Catch a bug in an HP-UX C compiler. See
8729 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8730 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
8731 */
8732 Bool q = true;
8733 Bool *pq = &q;
8734 bool *qq = &q;
8735
8736 int
8737 main ()
8738 {
8739
8740 bool e = &s;
8741 *pq |= q; *pq |= ! q;
8742 *qq |= q; *qq |= ! q;
8743 /* Refer to every declared value, to avoid compiler optimizations. */
8744 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
8745 + !m + !n + !o + !p + !q + !pq + !qq);
8746
8747 ;
8748 return 0;
8749 }
8750 _ACEOF
8751 if ac_fn_c_try_compile "$LINENO"; then :
8752 ac_cv_header_stdbool_h=yes
8753 else
8754 ac_cv_header_stdbool_h=no
8755 fi
8756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8757 fi
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
8759 $as_echo "$ac_cv_header_stdbool_h" >&6; }
8760 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
8761 if test "x$ac_cv_type__Bool" = xyes; then :
8762
8763 cat >>confdefs.h <<_ACEOF
8764 #define HAVE__BOOL 1
8765 _ACEOF
8766
8767
8768 fi
8769
8770
8771
8772 REPLACE_NULL=0;
8773 HAVE_MAX_ALIGN_T=1;
8774 HAVE_WCHAR_T=1;
8775
8776
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
8778 $as_echo_n "checking for wchar_t... " >&6; }
8779 if ${gt_cv_c_wchar_t+:} false; then :
8780 $as_echo_n "(cached) " >&6
8781 else
8782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8783 /* end confdefs.h. */
8784 #include <stddef.h>
8785 wchar_t foo = (wchar_t)'\0';
8786 int
8787 main ()
8788 {
8789
8790 ;
8791 return 0;
8792 }
8793 _ACEOF
8794 if ac_fn_c_try_compile "$LINENO"; then :
8795 gt_cv_c_wchar_t=yes
8796 else
8797 gt_cv_c_wchar_t=no
8798 fi
8799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8800 fi
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
8802 $as_echo "$gt_cv_c_wchar_t" >&6; }
8803 if test $gt_cv_c_wchar_t = yes; then
8804
8805 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
8806
8807 fi
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819 if test $gl_cv_have_include_next = yes; then
8820 gl_cv_next_string_h='<'string.h'>'
8821 else
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
8823 $as_echo_n "checking absolute name of <string.h>... " >&6; }
8824 if ${gl_cv_next_string_h+:} false; then :
8825 $as_echo_n "(cached) " >&6
8826 else
8827
8828
8829
8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8832 #include <string.h>
8833 _ACEOF
8834 case "$host_os" in
8835 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8836 *) gl_absname_cpp="$ac_cpp" ;;
8837 esac
8838
8839 case "$host_os" in
8840 mingw*)
8841 gl_dirsep_regex='[/\\]'
8842 ;;
8843 *)
8844 gl_dirsep_regex='\/'
8845 ;;
8846 esac
8847 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8848 gl_header_literal_regex=`echo 'string.h' \
8849 | sed -e "$gl_make_literal_regex_sed"`
8850 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8851 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8852 s|^/[^/]|//&|
8853 p
8854 q
8855 }'
8856
8857 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8858 sed -n "$gl_absolute_header_sed"`
8859
8860 gl_header=$gl_cv_absolute_string_h
8861 gl_cv_next_string_h='"'$gl_header'"'
8862
8863
8864 fi
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
8866 $as_echo "$gl_cv_next_string_h" >&6; }
8867 fi
8868 NEXT_STRING_H=$gl_cv_next_string_h
8869
8870 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8871 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8872 gl_next_as_first_directive='<'string.h'>'
8873 else
8874 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8875 gl_next_as_first_directive=$gl_cv_next_string_h
8876 fi
8877 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
8893 "
8894 if test "x$ac_cv_type_pid_t" = xyes; then :
8895
8896 else
8897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8898 /* end confdefs.h. */
8899
8900 #if defined _WIN64 && !defined __CYGWIN__
8901 LLP64
8902 #endif
8903
8904 int
8905 main ()
8906 {
8907
8908 ;
8909 return 0;
8910 }
8911
8912 _ACEOF
8913 if ac_fn_c_try_compile "$LINENO"; then :
8914 gl_pid_type='int'
8915 else
8916 gl_pid_type='__int64'
8917 fi
8918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8919
8920 cat >>confdefs.h <<_ACEOF
8921 #define pid_t $gl_pid_type
8922 _ACEOF
8923
8924
8925 fi
8926
8927
8928 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
8929 if test "x$ac_cv_type_mode_t" = xyes; then :
8930
8931 else
8932
8933 cat >>confdefs.h <<_ACEOF
8934 #define mode_t int
8935 _ACEOF
8936
8937 fi
8938
8939
8940
8941 WINDOWS_64_BIT_OFF_T=0
8942
8943
8944
8945
8946
8947 $as_echo "#define _USE_STD_STAT 1" >>confdefs.h
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959 if test $gl_cv_have_include_next = yes; then
8960 gl_cv_next_sys_types_h='<'sys/types.h'>'
8961 else
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
8963 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
8964 if ${gl_cv_next_sys_types_h+:} false; then :
8965 $as_echo_n "(cached) " >&6
8966 else
8967
8968
8969
8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8972 #include <sys/types.h>
8973 _ACEOF
8974 case "$host_os" in
8975 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8976 *) gl_absname_cpp="$ac_cpp" ;;
8977 esac
8978
8979 case "$host_os" in
8980 mingw*)
8981 gl_dirsep_regex='[/\\]'
8982 ;;
8983 *)
8984 gl_dirsep_regex='\/'
8985 ;;
8986 esac
8987 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8988 gl_header_literal_regex=`echo 'sys/types.h' \
8989 | sed -e "$gl_make_literal_regex_sed"`
8990 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8991 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8992 s|^/[^/]|//&|
8993 p
8994 q
8995 }'
8996
8997 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8998 sed -n "$gl_absolute_header_sed"`
8999
9000 gl_header=$gl_cv_absolute_sys_types_h
9001 gl_cv_next_sys_types_h='"'$gl_header'"'
9002
9003
9004 fi
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
9006 $as_echo "$gl_cv_next_sys_types_h" >&6; }
9007 fi
9008 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
9009
9010 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9011 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9012 gl_next_as_first_directive='<'sys/types.h'>'
9013 else
9014 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9015 gl_next_as_first_directive=$gl_cv_next_sys_types_h
9016 fi
9017 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030 WINDOWS_STAT_INODES=0
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042 if test $ac_cv_header_features_h = yes; then
9043 HAVE_FEATURES_H=1
9044 else
9045 HAVE_FEATURES_H=0
9046 fi
9047
9048
9049
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9051 $as_echo_n "checking for inttypes.h... " >&6; }
9052 if ${gl_cv_header_inttypes_h+:} false; then :
9053 $as_echo_n "(cached) " >&6
9054 else
9055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9056 /* end confdefs.h. */
9057
9058 #include <sys/types.h>
9059 #include <inttypes.h>
9060
9061 int
9062 main ()
9063 {
9064 uintmax_t i = (uintmax_t) -1; return !i;
9065 ;
9066 return 0;
9067 }
9068 _ACEOF
9069 if ac_fn_c_try_compile "$LINENO"; then :
9070 gl_cv_header_inttypes_h=yes
9071 else
9072 gl_cv_header_inttypes_h=no
9073 fi
9074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9075 fi
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
9077 $as_echo "$gl_cv_header_inttypes_h" >&6; }
9078 if test $gl_cv_header_inttypes_h = yes; then
9079
9080 cat >>confdefs.h <<_ACEOF
9081 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
9082 _ACEOF
9083
9084 fi
9085
9086
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
9088 $as_echo_n "checking for stdint.h... " >&6; }
9089 if ${gl_cv_header_stdint_h+:} false; then :
9090 $as_echo_n "(cached) " >&6
9091 else
9092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9093 /* end confdefs.h. */
9094 #include <sys/types.h>
9095 #include <stdint.h>
9096 int
9097 main ()
9098 {
9099 uintmax_t i = (uintmax_t) -1; return !i;
9100 ;
9101 return 0;
9102 }
9103 _ACEOF
9104 if ac_fn_c_try_compile "$LINENO"; then :
9105 gl_cv_header_stdint_h=yes
9106 else
9107 gl_cv_header_stdint_h=no
9108 fi
9109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9110 fi
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
9112 $as_echo "$gl_cv_header_stdint_h" >&6; }
9113 if test $gl_cv_header_stdint_h = yes; then
9114
9115 cat >>confdefs.h <<_ACEOF
9116 #define HAVE_STDINT_H_WITH_UINTMAX 1
9117 _ACEOF
9118
9119 fi
9120
9121
9122
9123
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9125 $as_echo_n "checking for intmax_t... " >&6; }
9126 if ${gt_cv_c_intmax_t+:} false; then :
9127 $as_echo_n "(cached) " >&6
9128 else
9129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9130 /* end confdefs.h. */
9131
9132 #include <stddef.h>
9133 #include <stdlib.h>
9134 #if HAVE_STDINT_H_WITH_UINTMAX
9135 #include <stdint.h>
9136 #endif
9137 #if HAVE_INTTYPES_H_WITH_UINTMAX
9138 #include <inttypes.h>
9139 #endif
9140
9141 int
9142 main ()
9143 {
9144 intmax_t x = -1; return !x;
9145 ;
9146 return 0;
9147 }
9148 _ACEOF
9149 if ac_fn_c_try_compile "$LINENO"; then :
9150 gt_cv_c_intmax_t=yes
9151 else
9152 gt_cv_c_intmax_t=no
9153 fi
9154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9155 fi
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9157 $as_echo "$gt_cv_c_intmax_t" >&6; }
9158 if test $gt_cv_c_intmax_t = yes; then
9159
9160 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9161
9162 else
9163
9164 cat >>confdefs.h <<_ACEOF
9165 #define intmax_t long long
9166 _ACEOF
9167
9168 fi
9169
9170
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
9172 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
9173 if ${gl_cv_cc_double_expbit0+:} false; then :
9174 $as_echo_n "(cached) " >&6
9175 else
9176
9177 if test "$cross_compiling" = yes; then :
9178
9179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9180 /* end confdefs.h. */
9181
9182 #if defined arm || defined __arm || defined __arm__
9183 mixed_endianness
9184 #endif
9185
9186 _ACEOF
9187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9188 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
9189 gl_cv_cc_double_expbit0="unknown"
9190 else
9191
9192 :
9193 if ${ac_cv_c_bigendian+:} false; then :
9194 $as_echo_n "(cached) " >&6
9195 else
9196 ac_cv_c_bigendian=unknown
9197 # See if we're dealing with a universal compiler.
9198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h. */
9200 #ifndef __APPLE_CC__
9201 not a universal capable compiler
9202 #endif
9203 typedef int dummy;
9204
9205 _ACEOF
9206 if ac_fn_c_try_compile "$LINENO"; then :
9207
9208 # Check for potential -arch flags. It is not universal unless
9209 # there are at least two -arch flags with different values.
9210 ac_arch=
9211 ac_prev=
9212 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9213 if test -n "$ac_prev"; then
9214 case $ac_word in
9215 i?86 | x86_64 | ppc | ppc64)
9216 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9217 ac_arch=$ac_word
9218 else
9219 ac_cv_c_bigendian=universal
9220 break
9221 fi
9222 ;;
9223 esac
9224 ac_prev=
9225 elif test "x$ac_word" = "x-arch"; then
9226 ac_prev=arch
9227 fi
9228 done
9229 fi
9230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9231 if test $ac_cv_c_bigendian = unknown; then
9232 # See if sys/param.h defines the BYTE_ORDER macro.
9233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9234 /* end confdefs.h. */
9235 #include <sys/types.h>
9236 #include <sys/param.h>
9237
9238 int
9239 main ()
9240 {
9241 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9242 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9243 && LITTLE_ENDIAN)
9244 bogus endian macros
9245 #endif
9246
9247 ;
9248 return 0;
9249 }
9250 _ACEOF
9251 if ac_fn_c_try_compile "$LINENO"; then :
9252 # It does; now see whether it defined to BIG_ENDIAN or not.
9253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9254 /* end confdefs.h. */
9255 #include <sys/types.h>
9256 #include <sys/param.h>
9257
9258 int
9259 main ()
9260 {
9261 #if BYTE_ORDER != BIG_ENDIAN
9262 not big endian
9263 #endif
9264
9265 ;
9266 return 0;
9267 }
9268 _ACEOF
9269 if ac_fn_c_try_compile "$LINENO"; then :
9270 ac_cv_c_bigendian=yes
9271 else
9272 ac_cv_c_bigendian=no
9273 fi
9274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9275 fi
9276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9277 fi
9278 if test $ac_cv_c_bigendian = unknown; then
9279 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9281 /* end confdefs.h. */
9282 #include <limits.h>
9283
9284 int
9285 main ()
9286 {
9287 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9288 bogus endian macros
9289 #endif
9290
9291 ;
9292 return 0;
9293 }
9294 _ACEOF
9295 if ac_fn_c_try_compile "$LINENO"; then :
9296 # It does; now see whether it defined to _BIG_ENDIAN or not.
9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h. */
9299 #include <limits.h>
9300
9301 int
9302 main ()
9303 {
9304 #ifndef _BIG_ENDIAN
9305 not big endian
9306 #endif
9307
9308 ;
9309 return 0;
9310 }
9311 _ACEOF
9312 if ac_fn_c_try_compile "$LINENO"; then :
9313 ac_cv_c_bigendian=yes
9314 else
9315 ac_cv_c_bigendian=no
9316 fi
9317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9318 fi
9319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9320 fi
9321 if test $ac_cv_c_bigendian = unknown; then
9322 # Compile a test program.
9323 if test "$cross_compiling" = yes; then :
9324 # Try to guess by grepping values from an object file.
9325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9326 /* end confdefs.h. */
9327 short int ascii_mm[] =
9328 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9329 short int ascii_ii[] =
9330 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9331 int use_ascii (int i) {
9332 return ascii_mm[i] + ascii_ii[i];
9333 }
9334 short int ebcdic_ii[] =
9335 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9336 short int ebcdic_mm[] =
9337 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9338 int use_ebcdic (int i) {
9339 return ebcdic_mm[i] + ebcdic_ii[i];
9340 }
9341 extern int foo;
9342
9343 int
9344 main ()
9345 {
9346 return use_ascii (foo) == use_ebcdic (foo);
9347 ;
9348 return 0;
9349 }
9350 _ACEOF
9351 if ac_fn_c_try_compile "$LINENO"; then :
9352 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9353 ac_cv_c_bigendian=yes
9354 fi
9355 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9356 if test "$ac_cv_c_bigendian" = unknown; then
9357 ac_cv_c_bigendian=no
9358 else
9359 # finding both strings is unlikely to happen, but who knows?
9360 ac_cv_c_bigendian=unknown
9361 fi
9362 fi
9363 fi
9364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9365 else
9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9368 $ac_includes_default
9369 int
9370 main ()
9371 {
9372
9373 /* Are we little or big endian? From Harbison&Steele. */
9374 union
9375 {
9376 long int l;
9377 char c[sizeof (long int)];
9378 } u;
9379 u.l = 1;
9380 return u.c[sizeof (long int) - 1] == 1;
9381
9382 ;
9383 return 0;
9384 }
9385 _ACEOF
9386 if ac_fn_c_try_run "$LINENO"; then :
9387 ac_cv_c_bigendian=no
9388 else
9389 ac_cv_c_bigendian=yes
9390 fi
9391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9392 conftest.$ac_objext conftest.beam conftest.$ac_ext
9393 fi
9394
9395 fi
9396 fi
9397 :
9398 case $ac_cv_c_bigendian in #(
9399 yes)
9400 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
9401 no)
9402 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
9403 universal)
9404
9405 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9406
9407 ;; #(
9408 *)
9409 gl_cv_cc_double_expbit0="unknown" ;;
9410 esac
9411
9412
9413 fi
9414 rm -f conftest*
9415
9416
9417 else
9418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9419 /* end confdefs.h. */
9420
9421 #include <float.h>
9422 #include <stddef.h>
9423 #include <stdio.h>
9424 #include <string.h>
9425 #define NWORDS \
9426 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
9427 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
9428 static unsigned int ored_words[NWORDS];
9429 static unsigned int anded_words[NWORDS];
9430 static void add_to_ored_words (double x)
9431 {
9432 memory_double m;
9433 size_t i;
9434 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
9435 memset (&m, 0, sizeof (memory_double));
9436 m.value = x;
9437 for (i = 0; i < NWORDS; i++)
9438 {
9439 ored_words[i] |= m.word[i];
9440 anded_words[i] &= m.word[i];
9441 }
9442 }
9443 int main ()
9444 {
9445 size_t j;
9446 FILE *fp = fopen ("conftest.out", "w");
9447 if (fp == NULL)
9448 return 1;
9449 for (j = 0; j < NWORDS; j++)
9450 anded_words[j] = ~ (unsigned int) 0;
9451 add_to_ored_words (0.25);
9452 add_to_ored_words (0.5);
9453 add_to_ored_words (1.0);
9454 add_to_ored_words (2.0);
9455 add_to_ored_words (4.0);
9456 /* Remove bits that are common (e.g. if representation of the first mantissa
9457 bit is explicit). */
9458 for (j = 0; j < NWORDS; j++)
9459 ored_words[j] &= ~anded_words[j];
9460 /* Now find the nonzero word. */
9461 for (j = 0; j < NWORDS; j++)
9462 if (ored_words[j] != 0)
9463 break;
9464 if (j < NWORDS)
9465 {
9466 size_t i;
9467 for (i = j + 1; i < NWORDS; i++)
9468 if (ored_words[i] != 0)
9469 {
9470 fprintf (fp, "unknown");
9471 return (fclose (fp) != 0);
9472 }
9473 for (i = 0; ; i++)
9474 if ((ored_words[j] >> i) & 1)
9475 {
9476 fprintf (fp, "word %d bit %d", (int) j, (int) i);
9477 return (fclose (fp) != 0);
9478 }
9479 }
9480 fprintf (fp, "unknown");
9481 return (fclose (fp) != 0);
9482 }
9483
9484 _ACEOF
9485 if ac_fn_c_try_run "$LINENO"; then :
9486 gl_cv_cc_double_expbit0=`cat conftest.out`
9487 else
9488 gl_cv_cc_double_expbit0="unknown"
9489 fi
9490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9491 conftest.$ac_objext conftest.beam conftest.$ac_ext
9492 fi
9493
9494 rm -f conftest.out
9495
9496 fi
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
9498 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
9499 case "$gl_cv_cc_double_expbit0" in
9500 word*bit*)
9501 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
9502 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
9503
9504 cat >>confdefs.h <<_ACEOF
9505 #define DBL_EXPBIT0_WORD $word
9506 _ACEOF
9507
9508
9509 cat >>confdefs.h <<_ACEOF
9510 #define DBL_EXPBIT0_BIT $bit
9511 _ACEOF
9512
9513 ;;
9514 esac
9515
9516
9517
9518
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf truncates the result as in C99" >&5
9520 $as_echo_n "checking whether snprintf truncates the result as in C99... " >&6; }
9521 if ${gl_cv_func_snprintf_truncation_c99+:} false; then :
9522 $as_echo_n "(cached) " >&6
9523 else
9524
9525 if test "$cross_compiling" = yes; then :
9526
9527 case "$host_os" in
9528 # Guess yes on glibc systems.
9529 *-gnu* | gnu*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
9530 # Guess yes on musl systems.
9531 *-musl*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
9532 # Guess yes on FreeBSD >= 5.
9533 freebsd[1-4].*) gl_cv_func_snprintf_truncation_c99="guessing no";;
9534 freebsd* | kfreebsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
9535 # Guess yes on Mac OS X >= 10.3.
9536 darwin[1-6].*) gl_cv_func_snprintf_truncation_c99="guessing no";;
9537 darwin*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
9538 # Guess yes on OpenBSD >= 3.9.
9539 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
9540 gl_cv_func_snprintf_truncation_c99="guessing no";;
9541 openbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
9542 # Guess yes on Solaris >= 2.6.
9543 solaris2.[0-5] | solaris2.[0-5].*)
9544 gl_cv_func_snprintf_truncation_c99="guessing no";;
9545 solaris*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
9546 # Guess yes on AIX >= 4.
9547 aix[1-3]*) gl_cv_func_snprintf_truncation_c99="guessing no";;
9548 aix*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
9549 # Guess yes on HP-UX >= 11.
9550 hpux[7-9]* | hpux10*) gl_cv_func_snprintf_truncation_c99="guessing no";;
9551 hpux*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
9552 # Guess yes on IRIX >= 6.5.
9553 irix6.5) gl_cv_func_snprintf_truncation_c99="guessing yes";;
9554 # Guess yes on OSF/1 >= 5.
9555 osf[3-4]*) gl_cv_func_snprintf_truncation_c99="guessing no";;
9556 osf*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
9557 # Guess yes on NetBSD >= 3.
9558 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
9559 gl_cv_func_snprintf_truncation_c99="guessing no";;
9560 netbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
9561 # Guess yes on BeOS.
9562 beos*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
9563 # Guess yes on Android.
9564 linux*-android*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
9565 # Guess no on native Windows.
9566 mingw*) gl_cv_func_snprintf_truncation_c99="guessing no";;
9567 # If we don't know, obey --enable-cross-guesses.
9568 *) gl_cv_func_snprintf_truncation_c99="$gl_cross_guess_normal";;
9569 esac
9570
9571 else
9572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9573 /* end confdefs.h. */
9574
9575 #include <stdio.h>
9576 #include <string.h>
9577 #if HAVE_SNPRINTF
9578 # define my_snprintf snprintf
9579 #else
9580 # include <stdarg.h>
9581 static int my_snprintf (char *buf, int size, const char *format, ...)
9582 {
9583 va_list args;
9584 int ret;
9585 va_start (args, format);
9586 ret = vsnprintf (buf, size, format, args);
9587 va_end (args);
9588 return ret;
9589 }
9590 #endif
9591 static char buf[100];
9592 int main ()
9593 {
9594 strcpy (buf, "ABCDEF");
9595 my_snprintf (buf, 3, "%d %d", 4567, 89);
9596 if (memcmp (buf, "45\0DEF", 6) != 0)
9597 return 1;
9598 return 0;
9599 }
9600 _ACEOF
9601 if ac_fn_c_try_run "$LINENO"; then :
9602 gl_cv_func_snprintf_truncation_c99=yes
9603 else
9604 gl_cv_func_snprintf_truncation_c99=no
9605 fi
9606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9607 conftest.$ac_objext conftest.beam conftest.$ac_ext
9608 fi
9609
9610
9611 fi
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_truncation_c99" >&5
9613 $as_echo "$gl_cv_func_snprintf_truncation_c99" >&6; }
9614
9615
9616
9617
9618
9619 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
9620 do :
9621 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9622 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9623 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9624 cat >>confdefs.h <<_ACEOF
9625 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9626 _ACEOF
9627
9628 fi
9629 done
9630
9631 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
9632 "
9633 if test "x$ac_cv_have_decl__snprintf" = xyes; then :
9634 ac_have_decl=1
9635 else
9636 ac_have_decl=0
9637 fi
9638
9639 cat >>confdefs.h <<_ACEOF
9640 #define HAVE_DECL__SNPRINTF $ac_have_decl
9641 _ACEOF
9642
9643
9644
9645 case "$gl_cv_func_snprintf_retval_c99" in
9646 *yes)
9647
9648 $as_echo "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
9649
9650 ;;
9651 esac
9652
9653 case "$gl_cv_func_snprintf_truncation_c99" in
9654 *yes)
9655
9656 $as_echo "#define HAVE_SNPRINTF_TRUNCATION_C99 1" >>confdefs.h
9657
9658 ;;
9659 esac
9660
9661
9662 GNULIB_BTOWC=0;
9663 GNULIB_WCTOB=0;
9664 GNULIB_MBSINIT=0;
9665 GNULIB_MBRTOWC=0;
9666 GNULIB_MBRLEN=0;
9667 GNULIB_MBSRTOWCS=0;
9668 GNULIB_MBSNRTOWCS=0;
9669 GNULIB_WCRTOMB=0;
9670 GNULIB_WCSRTOMBS=0;
9671 GNULIB_WCSNRTOMBS=0;
9672 GNULIB_WCWIDTH=0;
9673 GNULIB_WMEMCHR=0;
9674 GNULIB_WMEMCMP=0;
9675 GNULIB_WMEMCPY=0;
9676 GNULIB_WMEMMOVE=0;
9677 GNULIB_WMEMPCPY=0;
9678 GNULIB_WMEMSET=0;
9679 GNULIB_WCSLEN=0;
9680 GNULIB_WCSNLEN=0;
9681 GNULIB_WCSCPY=0;
9682 GNULIB_WCPCPY=0;
9683 GNULIB_WCSNCPY=0;
9684 GNULIB_WCPNCPY=0;
9685 GNULIB_WCSCAT=0;
9686 GNULIB_WCSNCAT=0;
9687 GNULIB_WCSCMP=0;
9688 GNULIB_WCSNCMP=0;
9689 GNULIB_WCSCASECMP=0;
9690 GNULIB_WCSNCASECMP=0;
9691 GNULIB_WCSCOLL=0;
9692 GNULIB_WCSXFRM=0;
9693 GNULIB_WCSDUP=0;
9694 GNULIB_WCSCHR=0;
9695 GNULIB_WCSRCHR=0;
9696 GNULIB_WCSCSPN=0;
9697 GNULIB_WCSSPN=0;
9698 GNULIB_WCSPBRK=0;
9699 GNULIB_WCSSTR=0;
9700 GNULIB_WCSTOK=0;
9701 GNULIB_WCSWIDTH=0;
9702 GNULIB_WCSFTIME=0;
9703 HAVE_BTOWC=1;
9704 HAVE_MBSINIT=1;
9705 HAVE_MBRTOWC=1;
9706 HAVE_MBRLEN=1;
9707 HAVE_MBSRTOWCS=1;
9708 HAVE_MBSNRTOWCS=1;
9709 HAVE_WCRTOMB=1;
9710 HAVE_WCSRTOMBS=1;
9711 HAVE_WCSNRTOMBS=1;
9712 HAVE_WMEMCHR=1;
9713 HAVE_WMEMCMP=1;
9714 HAVE_WMEMCPY=1;
9715 HAVE_WMEMMOVE=1;
9716 HAVE_WMEMPCPY=1;
9717 HAVE_WMEMSET=1;
9718 HAVE_WCSLEN=1;
9719 HAVE_WCSNLEN=1;
9720 HAVE_WCSCPY=1;
9721 HAVE_WCPCPY=1;
9722 HAVE_WCSNCPY=1;
9723 HAVE_WCPNCPY=1;
9724 HAVE_WCSCAT=1;
9725 HAVE_WCSNCAT=1;
9726 HAVE_WCSCMP=1;
9727 HAVE_WCSNCMP=1;
9728 HAVE_WCSCASECMP=1;
9729 HAVE_WCSNCASECMP=1;
9730 HAVE_WCSCOLL=1;
9731 HAVE_WCSXFRM=1;
9732 HAVE_WCSDUP=1;
9733 HAVE_WCSCHR=1;
9734 HAVE_WCSRCHR=1;
9735 HAVE_WCSCSPN=1;
9736 HAVE_WCSSPN=1;
9737 HAVE_WCSPBRK=1;
9738 HAVE_WCSSTR=1;
9739 HAVE_WCSTOK=1;
9740 HAVE_WCSWIDTH=1;
9741 HAVE_WCSFTIME=1;
9742 HAVE_DECL_WCTOB=1;
9743 HAVE_DECL_WCWIDTH=1;
9744 REPLACE_MBSTATE_T=0;
9745 REPLACE_BTOWC=0;
9746 REPLACE_WCTOB=0;
9747 REPLACE_MBSINIT=0;
9748 REPLACE_MBRTOWC=0;
9749 REPLACE_MBRLEN=0;
9750 REPLACE_MBSRTOWCS=0;
9751 REPLACE_MBSNRTOWCS=0;
9752 REPLACE_WCRTOMB=0;
9753 REPLACE_WCSRTOMBS=0;
9754 REPLACE_WCSNRTOMBS=0;
9755 REPLACE_WCWIDTH=0;
9756 REPLACE_WCSWIDTH=0;
9757 REPLACE_WCSFTIME=0;
9758 REPLACE_WCSTOK=0;
9759
9760
9761
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
9763 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
9764 if ${gl_cv_header_wchar_h_correct_inline+:} false; then :
9765 $as_echo_n "(cached) " >&6
9766 else
9767 gl_cv_header_wchar_h_correct_inline=yes
9768 case "$host_os" in
9769 *-gnu* | gnu*)
9770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9771 /* end confdefs.h. */
9772
9773 #define wcstod renamed_wcstod
9774 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9775 <wchar.h>.
9776 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9777 included before <wchar.h>. */
9778 #include <stddef.h>
9779 #include <stdio.h>
9780 #include <time.h>
9781 #include <wchar.h>
9782 extern int zero (void);
9783 int main () { return zero(); }
9784
9785 _ACEOF
9786 save_ac_compile="$ac_compile"
9787 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
9788 if echo '#include "conftest.c"' >conftest1.c \
9789 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9790 (eval $ac_compile) 2>&5
9791 ac_status=$?
9792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9793 test $ac_status = 0; }; then
9794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9795 /* end confdefs.h. */
9796
9797 #define wcstod renamed_wcstod
9798 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9799 <wchar.h>.
9800 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9801 included before <wchar.h>. */
9802 #include <stddef.h>
9803 #include <stdio.h>
9804 #include <time.h>
9805 #include <wchar.h>
9806 int zero (void) { return 0; }
9807
9808 _ACEOF
9809 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
9810 if echo '#include "conftest.c"' >conftest2.c \
9811 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9812 (eval $ac_compile) 2>&5
9813 ac_status=$?
9814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9815 test $ac_status = 0; }; then
9816 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
9817 :
9818 else
9819 gl_cv_header_wchar_h_correct_inline=no
9820 fi
9821 fi
9822 fi
9823 ac_compile="$save_ac_compile"
9824 rm -f conftest12.c conftest12.$ac_objext conftest$ac_exeext
9825 ;;
9826 esac
9827
9828 fi
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
9830 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
9831 if test $gl_cv_header_wchar_h_correct_inline = no; then
9832 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
9833 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
9834 C99 mode. You have four options:
9835 - Add the flag -fgnu89-inline to CC and reconfigure, or
9836 - Fix your include files, using parts of
9837 <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
9838 - Use a gcc version older than 4.3, or
9839 - Don't use the flags -std=c99 or -std=gnu99.
9840 Configuration aborted." "$LINENO" 5
9841 fi
9842
9843
9844
9845
9846
9847 if test $ac_cv_header_crtdefs_h = yes; then
9848 HAVE_CRTDEFS_H=1
9849 else
9850 HAVE_CRTDEFS_H=0
9851 fi
9852
9853
9854
9855 if false; then
9856 GL_COND_LIBTOOL_TRUE=
9857 GL_COND_LIBTOOL_FALSE='#'
9858 else
9859 GL_COND_LIBTOOL_TRUE='#'
9860 GL_COND_LIBTOOL_FALSE=
9861 fi
9862
9863 gl_cond_libtool=false
9864 gl_libdeps=
9865 gl_ltlibdeps=
9866 gl_m4_base='m4'
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877 gl_source_base='lib'
9878
9879
9880 if test $ac_cv_func_alloca_works = no; then
9881 :
9882 fi
9883
9884 # Define an additional variable used in the Makefile substitution.
9885 if test $ac_cv_working_alloca_h = yes; then
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
9887 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
9888 if ${gl_cv_rpl_alloca+:} false; then :
9889 $as_echo_n "(cached) " >&6
9890 else
9891
9892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9893 /* end confdefs.h. */
9894
9895 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
9896 Need own alloca
9897 #endif
9898
9899 _ACEOF
9900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9901 $EGREP "Need own alloca" >/dev/null 2>&1; then :
9902 gl_cv_rpl_alloca=yes
9903 else
9904 gl_cv_rpl_alloca=no
9905 fi
9906 rm -f conftest*
9907
9908
9909 fi
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
9911 $as_echo "$gl_cv_rpl_alloca" >&6; }
9912 if test $gl_cv_rpl_alloca = yes; then
9913
9914 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9915
9916 ALLOCA_H=alloca.h
9917 else
9918 ALLOCA_H=
9919 fi
9920 else
9921 ALLOCA_H=alloca.h
9922 fi
9923
9924 if test -n "$ALLOCA_H"; then
9925 GL_GENERATE_ALLOCA_H_TRUE=
9926 GL_GENERATE_ALLOCA_H_FALSE='#'
9927 else
9928 GL_GENERATE_ALLOCA_H_TRUE='#'
9929 GL_GENERATE_ALLOCA_H_FALSE=
9930 fi
9931
9932
9933 if test $ac_cv_working_alloca_h = yes; then
9934 HAVE_ALLOCA_H=1
9935 else
9936 HAVE_ALLOCA_H=0
9937 fi
9938
9939
9940
9941
9942
9943
9944 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
9945 REPLACE_CLOSE=1
9946 fi
9947
9948
9949
9950
9951 if test $REPLACE_CLOSE = 1; then
9952
9953
9954
9955
9956
9957
9958
9959
9960 gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
9961
9962 fi
9963
9964
9965
9966
9967
9968 GNULIB_CLOSE=1
9969
9970
9971
9972
9973
9974 $as_echo "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
9975
9976
9977
9978
9979
9980
9981
9982
9983 FLOAT_H=
9984 REPLACE_FLOAT_LDBL=0
9985 case "$host_os" in
9986 aix* | beos* | openbsd* | mirbsd* | irix*)
9987 FLOAT_H=float.h
9988 ;;
9989 freebsd* | dragonfly*)
9990 case "$host_cpu" in
9991 i[34567]86 )
9992 FLOAT_H=float.h
9993 ;;
9994 x86_64 )
9995 # On x86_64 systems, the C compiler may still be generating
9996 # 32-bit code.
9997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9998 /* end confdefs.h. */
9999 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
10000 int ok;
10001 #else
10002 error fail
10003 #endif
10004
10005 _ACEOF
10006 if ac_fn_c_try_compile "$LINENO"; then :
10007
10008 else
10009 FLOAT_H=float.h
10010 fi
10011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10012 ;;
10013 esac
10014 ;;
10015 linux*)
10016 case "$host_cpu" in
10017 powerpc*)
10018 FLOAT_H=float.h
10019 ;;
10020 esac
10021 ;;
10022 esac
10023 case "$host_os" in
10024 aix* | freebsd* | dragonfly* | linux*)
10025 if test -n "$FLOAT_H"; then
10026 REPLACE_FLOAT_LDBL=1
10027 fi
10028 ;;
10029 esac
10030
10031 REPLACE_ITOLD=0
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
10033 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
10034 if ${gl_cv_func_itold_works+:} false; then :
10035 $as_echo_n "(cached) " >&6
10036 else
10037
10038 if test "$cross_compiling" = yes; then :
10039 case "$host" in
10040 sparc*-*-linux*)
10041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10042 /* end confdefs.h. */
10043 #if defined __LP64__ || defined __arch64__
10044 int ok;
10045 #else
10046 error fail
10047 #endif
10048
10049 _ACEOF
10050 if ac_fn_c_try_compile "$LINENO"; then :
10051 gl_cv_func_itold_works="guessing no"
10052 else
10053 gl_cv_func_itold_works="guessing yes"
10054 fi
10055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10056 ;;
10057 # Guess yes on native Windows.
10058 mingw*) gl_cv_func_itold_works="guessing yes" ;;
10059 *) gl_cv_func_itold_works="guessing yes" ;;
10060 esac
10061
10062 else
10063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10064 /* end confdefs.h. */
10065
10066 int i = -1;
10067 volatile long double ld;
10068 int main ()
10069 {
10070 ld += i * 1.0L;
10071 if (ld > 0)
10072 return 1;
10073 return 0;
10074 }
10075 _ACEOF
10076 if ac_fn_c_try_run "$LINENO"; then :
10077 gl_cv_func_itold_works=yes
10078 else
10079 gl_cv_func_itold_works=no
10080 fi
10081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10082 conftest.$ac_objext conftest.beam conftest.$ac_ext
10083 fi
10084
10085
10086 fi
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
10088 $as_echo "$gl_cv_func_itold_works" >&6; }
10089 case "$gl_cv_func_itold_works" in
10090 *no)
10091 REPLACE_ITOLD=1
10092 FLOAT_H=float.h
10093 ;;
10094 esac
10095
10096 if test -n "$FLOAT_H"; then
10097
10098
10099
10100
10101
10102
10103
10104
10105 if test $gl_cv_have_include_next = yes; then
10106 gl_cv_next_float_h='<'float.h'>'
10107 else
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
10109 $as_echo_n "checking absolute name of <float.h>... " >&6; }
10110 if ${gl_cv_next_float_h+:} false; then :
10111 $as_echo_n "(cached) " >&6
10112 else
10113
10114
10115
10116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117 /* end confdefs.h. */
10118 #include <float.h>
10119 _ACEOF
10120 case "$host_os" in
10121 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10122 *) gl_absname_cpp="$ac_cpp" ;;
10123 esac
10124
10125 case "$host_os" in
10126 mingw*)
10127 gl_dirsep_regex='[/\\]'
10128 ;;
10129 *)
10130 gl_dirsep_regex='\/'
10131 ;;
10132 esac
10133 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10134 gl_header_literal_regex=`echo 'float.h' \
10135 | sed -e "$gl_make_literal_regex_sed"`
10136 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10137 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10138 s|^/[^/]|//&|
10139 p
10140 q
10141 }'
10142
10143 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10144 sed -n "$gl_absolute_header_sed"`
10145
10146 gl_header=$gl_cv_absolute_float_h
10147 gl_cv_next_float_h='"'$gl_header'"'
10148
10149
10150 fi
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
10152 $as_echo "$gl_cv_next_float_h" >&6; }
10153 fi
10154 NEXT_FLOAT_H=$gl_cv_next_float_h
10155
10156 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10157 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10158 gl_next_as_first_directive='<'float.h'>'
10159 else
10160 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10161 gl_next_as_first_directive=$gl_cv_next_float_h
10162 fi
10163 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
10164
10165
10166
10167
10168 fi
10169
10170 if test -n "$FLOAT_H"; then
10171 GL_GENERATE_FLOAT_H_TRUE=
10172 GL_GENERATE_FLOAT_H_FALSE='#'
10173 else
10174 GL_GENERATE_FLOAT_H_TRUE='#'
10175 GL_GENERATE_FLOAT_H_FALSE=
10176 fi
10177
10178
10179
10180 if test $REPLACE_FLOAT_LDBL = 1; then
10181
10182
10183
10184
10185
10186
10187
10188
10189 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
10190
10191 fi
10192 if test $REPLACE_ITOLD = 1; then
10193
10194
10195
10196
10197
10198
10199
10200
10201 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
10202
10203 fi
10204
10205
10206
10207
10208
10209 if test $gl_cv_func_malloc_posix = yes; then
10210
10211 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
10212
10213 else
10214 REPLACE_MALLOC=1
10215 fi
10216
10217 if test $REPLACE_MALLOC = 1; then
10218
10219
10220
10221
10222
10223
10224
10225
10226 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
10227
10228 fi
10229
10230
10231
10232
10233
10234 GNULIB_MALLOC_POSIX=1
10235
10236
10237
10238
10239
10240 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
10241
10242
10243
10244
10245 if test $REPLACE_MEMCHR = 1; then
10246
10247
10248
10249
10250
10251
10252
10253
10254 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
10255
10256
10257 for ac_header in bp-sym.h
10258 do :
10259 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
10260 if test "x$ac_cv_header_bp_sym_h" = xyes; then :
10261 cat >>confdefs.h <<_ACEOF
10262 #define HAVE_BP_SYM_H 1
10263 _ACEOF
10264
10265 fi
10266
10267 done
10268
10269
10270 fi
10271
10272
10273
10274
10275
10276 GNULIB_MEMCHR=1
10277
10278
10279
10280
10281
10282 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
10283
10284
10285
10286
10287 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
10288
10289
10290
10291
10292
10293
10294
10295
10296 gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
10297
10298 fi
10299
10300
10301 for ac_header in stdint.h
10302 do :
10303 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10304 if test "x$ac_cv_header_stdint_h" = xyes; then :
10305 cat >>confdefs.h <<_ACEOF
10306 #define HAVE_STDINT_H 1
10307 _ACEOF
10308
10309 fi
10310
10311 done
10312
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
10314 $as_echo_n "checking for SIZE_MAX... " >&6; }
10315 if ${gl_cv_size_max+:} false; then :
10316 $as_echo_n "(cached) " >&6
10317 else
10318
10319 gl_cv_size_max=no
10320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10321 /* end confdefs.h. */
10322
10323 #include <limits.h>
10324 #if HAVE_STDINT_H
10325 #include <stdint.h>
10326 #endif
10327 #ifdef SIZE_MAX
10328 Found it
10329 #endif
10330
10331 _ACEOF
10332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10333 $EGREP "Found it" >/dev/null 2>&1; then :
10334 gl_cv_size_max=yes
10335 fi
10336 rm -f conftest*
10337
10338 if test $gl_cv_size_max != yes; then
10339 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
10340 #include <limits.h>"; then :
10341
10342 else
10343 size_t_bits_minus_1=
10344 fi
10345
10346 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
10347
10348 else
10349 fits_in_uint=
10350 fi
10351
10352 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10353 if test $fits_in_uint = 1; then
10354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10355 /* end confdefs.h. */
10356 #include <stddef.h>
10357 extern size_t foo;
10358 extern unsigned long foo;
10359
10360 int
10361 main ()
10362 {
10363
10364 ;
10365 return 0;
10366 }
10367 _ACEOF
10368 if ac_fn_c_try_compile "$LINENO"; then :
10369 fits_in_uint=0
10370 fi
10371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10372 fi
10373 if test $fits_in_uint = 1; then
10374 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10375 else
10376 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10377 fi
10378 else
10379 gl_cv_size_max='((size_t)~(size_t)0)'
10380 fi
10381 fi
10382
10383 fi
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10385 $as_echo "$gl_cv_size_max" >&6; }
10386 if test "$gl_cv_size_max" != yes; then
10387
10388 cat >>confdefs.h <<_ACEOF
10389 #define SIZE_MAX $gl_cv_size_max
10390 _ACEOF
10391
10392 fi
10393
10394
10395
10396
10397 gl_cv_func_snprintf_usable=no
10398 for ac_func in snprintf
10399 do :
10400 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
10401 if test "x$ac_cv_func_snprintf" = xyes; then :
10402 cat >>confdefs.h <<_ACEOF
10403 #define HAVE_SNPRINTF 1
10404 _ACEOF
10405
10406 fi
10407 done
10408
10409 if test $ac_cv_func_snprintf = yes; then
10410
10411
10412
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
10414 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
10415 if ${gl_cv_func_snprintf_size1+:} false; then :
10416 $as_echo_n "(cached) " >&6
10417 else
10418
10419 if test "$cross_compiling" = yes; then :
10420 case "$host_os" in
10421 # Guess yes on Android.
10422 linux*-android*) gl_cv_func_snprintf_size1="guessing yes" ;;
10423 # Guess yes on native Windows.
10424 mingw*) gl_cv_func_snprintf_size1="guessing yes" ;;
10425 *) gl_cv_func_snprintf_size1="guessing yes" ;;
10426 esac
10427
10428 else
10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10430 /* end confdefs.h. */
10431
10432 #include <stdio.h>
10433 #if HAVE_SNPRINTF
10434 # define my_snprintf snprintf
10435 #else
10436 # include <stdarg.h>
10437 static int my_snprintf (char *buf, int size, const char *format, ...)
10438 {
10439 va_list args;
10440 int ret;
10441 va_start (args, format);
10442 ret = vsnprintf (buf, size, format, args);
10443 va_end (args);
10444 return ret;
10445 }
10446 #endif
10447 int main()
10448 {
10449 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
10450 my_snprintf (buf, 1, "%d", 12345);
10451 return buf[1] != 'E';
10452 }
10453 _ACEOF
10454 if ac_fn_c_try_run "$LINENO"; then :
10455 gl_cv_func_snprintf_size1=yes
10456 else
10457 gl_cv_func_snprintf_size1=no
10458 fi
10459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10460 conftest.$ac_objext conftest.beam conftest.$ac_ext
10461 fi
10462
10463
10464 fi
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
10466 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
10467
10468 case "$gl_cv_func_snprintf_size1" in
10469 *yes)
10470
10471 case "$gl_cv_func_snprintf_retval_c99" in
10472 *yes)
10473
10474
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
10476 $as_echo_n "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
10477 if ${gl_cv_func_printf_positions+:} false; then :
10478 $as_echo_n "(cached) " >&6
10479 else
10480
10481 if test "$cross_compiling" = yes; then :
10482
10483 case "$host_os" in
10484 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
10485 gl_cv_func_printf_positions="guessing no";;
10486 beos*) gl_cv_func_printf_positions="guessing no";;
10487 # Guess yes on Android.
10488 linux*-android*) gl_cv_func_printf_positions="guessing yes";;
10489 # Guess no on native Windows.
10490 mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
10491 *) gl_cv_func_printf_positions="guessing yes";;
10492 esac
10493
10494 else
10495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10496 /* end confdefs.h. */
10497
10498 #include <stdio.h>
10499 #include <string.h>
10500 /* The string "%2$d %1$d", with dollar characters protected from the shell's
10501 dollar expansion (possibly an autoconf bug). */
10502 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
10503 static char buf[100];
10504 int main ()
10505 {
10506 sprintf (buf, format, 33, 55);
10507 return (strcmp (buf, "55 33") != 0);
10508 }
10509 _ACEOF
10510 if ac_fn_c_try_run "$LINENO"; then :
10511 gl_cv_func_printf_positions=yes
10512 else
10513 gl_cv_func_printf_positions=no
10514 fi
10515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10516 conftest.$ac_objext conftest.beam conftest.$ac_ext
10517 fi
10518
10519
10520 fi
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
10522 $as_echo "$gl_cv_func_printf_positions" >&6; }
10523
10524 case "$gl_cv_func_printf_positions" in
10525 *yes)
10526 gl_cv_func_snprintf_usable=yes
10527 ;;
10528 esac
10529 ;;
10530 esac
10531 ;;
10532 esac
10533 fi
10534 if test $gl_cv_func_snprintf_usable = no; then
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545 gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
10546
10547 if test $ac_cv_func_snprintf = yes; then
10548 REPLACE_SNPRINTF=1
10549 else
10550
10551 if test $ac_cv_have_decl_snprintf = yes; then
10552 REPLACE_SNPRINTF=1
10553 fi
10554 fi
10555 :
10556
10557 fi
10558
10559 if test $ac_cv_have_decl_snprintf = no; then
10560 HAVE_DECL_SNPRINTF=0
10561 fi
10562
10563
10564
10565
10566
10567
10568 GNULIB_SNPRINTF=1
10569
10570
10571
10572
10573
10574 $as_echo "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
10575
10576
10577
10578
10579
10580 cat >>confdefs.h <<_ACEOF
10581 #define GNULIB_SNPRINTF 1
10582 _ACEOF
10583
10584
10585
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
10587 $as_echo_n "checking for ssize_t... " >&6; }
10588 if ${gt_cv_ssize_t+:} false; then :
10589 $as_echo_n "(cached) " >&6
10590 else
10591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10592 /* end confdefs.h. */
10593 #include <sys/types.h>
10594 int
10595 main ()
10596 {
10597 int x = sizeof (ssize_t *) + sizeof (ssize_t);
10598 return !x;
10599 ;
10600 return 0;
10601 }
10602 _ACEOF
10603 if ac_fn_c_try_compile "$LINENO"; then :
10604 gt_cv_ssize_t=yes
10605 else
10606 gt_cv_ssize_t=no
10607 fi
10608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10609 fi
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
10611 $as_echo "$gt_cv_ssize_t" >&6; }
10612 if test $gt_cv_ssize_t = no; then
10613
10614 $as_echo "#define ssize_t int" >>confdefs.h
10615
10616 fi
10617
10618
10619
10620
10621
10622 if test "$ac_cv_header_stdbool_h" = yes; then
10623 case "$host_os" in
10624 solaris*)
10625 if test -z "$GCC"; then
10626 STDBOOL_H='stdbool.h'
10627 else
10628 STDBOOL_H=''
10629 fi
10630 ;;
10631 *)
10632 STDBOOL_H=''
10633 ;;
10634 esac
10635 else
10636 STDBOOL_H='stdbool.h'
10637 fi
10638
10639 if test -n "$STDBOOL_H"; then
10640 GL_GENERATE_STDBOOL_H_TRUE=
10641 GL_GENERATE_STDBOOL_H_FALSE='#'
10642 else
10643 GL_GENERATE_STDBOOL_H_TRUE='#'
10644 GL_GENERATE_STDBOOL_H_FALSE=
10645 fi
10646
10647
10648 if test "$ac_cv_type__Bool" = yes; then
10649 HAVE__BOOL=1
10650 else
10651 HAVE__BOOL=0
10652 fi
10653
10654
10655
10656
10657
10658 STDDEF_H=
10659
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
10661 $as_echo_n "checking for good max_align_t... " >&6; }
10662 if ${gl_cv_type_max_align_t+:} false; then :
10663 $as_echo_n "(cached) " >&6
10664 else
10665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10666 /* end confdefs.h. */
10667 #include <stddef.h>
10668 unsigned int s = sizeof (max_align_t);
10669 #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__
10670 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
10671 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
10672 #endif
10673
10674 int
10675 main ()
10676 {
10677
10678 ;
10679 return 0;
10680 }
10681 _ACEOF
10682 if ac_fn_c_try_compile "$LINENO"; then :
10683 gl_cv_type_max_align_t=yes
10684 else
10685 gl_cv_type_max_align_t=no
10686 fi
10687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10688
10689 fi
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
10691 $as_echo "$gl_cv_type_max_align_t" >&6; }
10692 if test $gl_cv_type_max_align_t = no; then
10693 HAVE_MAX_ALIGN_T=0
10694 STDDEF_H=stddef.h
10695 fi
10696
10697 if test $gt_cv_c_wchar_t = no; then
10698 HAVE_WCHAR_T=0
10699 STDDEF_H=stddef.h
10700 fi
10701
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
10703 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
10704 if ${gl_cv_decl_null_works+:} false; then :
10705 $as_echo_n "(cached) " >&6
10706 else
10707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10708 /* end confdefs.h. */
10709 #include <stddef.h>
10710 int test[2 * (sizeof NULL == sizeof (void *)) -1];
10711
10712 int
10713 main ()
10714 {
10715
10716 ;
10717 return 0;
10718 }
10719 _ACEOF
10720 if ac_fn_c_try_compile "$LINENO"; then :
10721 gl_cv_decl_null_works=yes
10722 else
10723 gl_cv_decl_null_works=no
10724 fi
10725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10726 fi
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
10728 $as_echo "$gl_cv_decl_null_works" >&6; }
10729 if test $gl_cv_decl_null_works = no; then
10730 REPLACE_NULL=1
10731 STDDEF_H=stddef.h
10732 fi
10733
10734
10735 if test -n "$STDDEF_H"; then
10736 GL_GENERATE_STDDEF_H_TRUE=
10737 GL_GENERATE_STDDEF_H_FALSE='#'
10738 else
10739 GL_GENERATE_STDDEF_H_TRUE='#'
10740 GL_GENERATE_STDDEF_H_FALSE=
10741 fi
10742
10743 if test -n "$STDDEF_H"; then
10744
10745
10746
10747
10748
10749
10750
10751
10752 if test $gl_cv_have_include_next = yes; then
10753 gl_cv_next_stddef_h='<'stddef.h'>'
10754 else
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
10756 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
10757 if ${gl_cv_next_stddef_h+:} false; then :
10758 $as_echo_n "(cached) " >&6
10759 else
10760
10761
10762
10763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10764 /* end confdefs.h. */
10765 #include <stddef.h>
10766 _ACEOF
10767 case "$host_os" in
10768 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10769 *) gl_absname_cpp="$ac_cpp" ;;
10770 esac
10771
10772 case "$host_os" in
10773 mingw*)
10774 gl_dirsep_regex='[/\\]'
10775 ;;
10776 *)
10777 gl_dirsep_regex='\/'
10778 ;;
10779 esac
10780 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10781 gl_header_literal_regex=`echo 'stddef.h' \
10782 | sed -e "$gl_make_literal_regex_sed"`
10783 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10784 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10785 s|^/[^/]|//&|
10786 p
10787 q
10788 }'
10789
10790 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10791 sed -n "$gl_absolute_header_sed"`
10792
10793 gl_header=$gl_cv_absolute_stddef_h
10794 gl_cv_next_stddef_h='"'$gl_header'"'
10795
10796
10797 fi
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
10799 $as_echo "$gl_cv_next_stddef_h" >&6; }
10800 fi
10801 NEXT_STDDEF_H=$gl_cv_next_stddef_h
10802
10803 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10804 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10805 gl_next_as_first_directive='<'stddef.h'>'
10806 else
10807 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10808 gl_next_as_first_directive=$gl_cv_next_stddef_h
10809 fi
10810 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
10811
10812
10813
10814
10815 fi
10816
10817
10818
10819
10820 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831 if test $gl_cv_have_include_next = yes; then
10832 gl_cv_next_stdio_h='<'stdio.h'>'
10833 else
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
10835 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
10836 if ${gl_cv_next_stdio_h+:} false; then :
10837 $as_echo_n "(cached) " >&6
10838 else
10839
10840
10841
10842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10843 /* end confdefs.h. */
10844 #include <stdio.h>
10845 _ACEOF
10846 case "$host_os" in
10847 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10848 *) gl_absname_cpp="$ac_cpp" ;;
10849 esac
10850
10851 case "$host_os" in
10852 mingw*)
10853 gl_dirsep_regex='[/\\]'
10854 ;;
10855 *)
10856 gl_dirsep_regex='\/'
10857 ;;
10858 esac
10859 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10860 gl_header_literal_regex=`echo 'stdio.h' \
10861 | sed -e "$gl_make_literal_regex_sed"`
10862 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10863 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10864 s|^/[^/]|//&|
10865 p
10866 q
10867 }'
10868
10869 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10870 sed -n "$gl_absolute_header_sed"`
10871
10872 gl_header=$gl_cv_absolute_stdio_h
10873 gl_cv_next_stdio_h='"'$gl_header'"'
10874
10875
10876 fi
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
10878 $as_echo "$gl_cv_next_stdio_h" >&6; }
10879 fi
10880 NEXT_STDIO_H=$gl_cv_next_stdio_h
10881
10882 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10883 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10884 gl_next_as_first_directive='<'stdio.h'>'
10885 else
10886 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10887 gl_next_as_first_directive=$gl_cv_next_stdio_h
10888 fi
10889 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
10890
10891
10892
10893
10894
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
10896 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
10897 if ${gl_cv_func_printf_attribute_flavor+:} false; then :
10898 $as_echo_n "(cached) " >&6
10899 else
10900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10901 /* end confdefs.h. */
10902
10903 #define __STDC_FORMAT_MACROS 1
10904 #include <stdio.h>
10905 #include <inttypes.h>
10906 /* For non-mingw systems, compilation will trivially succeed.
10907 For mingw, compilation will succeed for older mingw (system
10908 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
10909 #if (defined _WIN32 && ! defined __CYGWIN__) && \
10910 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
10911 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
10912 #endif
10913
10914 int
10915 main ()
10916 {
10917
10918 ;
10919 return 0;
10920 }
10921 _ACEOF
10922 if ac_fn_c_try_compile "$LINENO"; then :
10923 gl_cv_func_printf_attribute_flavor=system
10924 else
10925 gl_cv_func_printf_attribute_flavor=gnu
10926 fi
10927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10928 fi
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
10930 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
10931 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
10932
10933 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
10934
10935 fi
10936
10937 GNULIB_FSCANF=1
10938
10939
10940 cat >>confdefs.h <<_ACEOF
10941 #define GNULIB_FSCANF 1
10942 _ACEOF
10943
10944
10945 GNULIB_SCANF=1
10946
10947
10948 cat >>confdefs.h <<_ACEOF
10949 #define GNULIB_SCANF 1
10950 _ACEOF
10951
10952
10953 GNULIB_FGETC=1
10954 GNULIB_GETC=1
10955 GNULIB_GETCHAR=1
10956 GNULIB_FGETS=1
10957 GNULIB_FREAD=1
10958
10959
10960 GNULIB_FPRINTF=1
10961 GNULIB_PRINTF=1
10962 GNULIB_VFPRINTF=1
10963 GNULIB_VPRINTF=1
10964 GNULIB_FPUTC=1
10965 GNULIB_PUTC=1
10966 GNULIB_PUTCHAR=1
10967 GNULIB_FPUTS=1
10968 GNULIB_PUTS=1
10969 GNULIB_FWRITE=1
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989 if test $gl_cv_have_include_next = yes; then
10990 gl_cv_next_stdlib_h='<'stdlib.h'>'
10991 else
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
10993 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
10994 if ${gl_cv_next_stdlib_h+:} false; then :
10995 $as_echo_n "(cached) " >&6
10996 else
10997
10998
10999
11000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11001 /* end confdefs.h. */
11002 #include <stdlib.h>
11003 _ACEOF
11004 case "$host_os" in
11005 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11006 *) gl_absname_cpp="$ac_cpp" ;;
11007 esac
11008
11009 case "$host_os" in
11010 mingw*)
11011 gl_dirsep_regex='[/\\]'
11012 ;;
11013 *)
11014 gl_dirsep_regex='\/'
11015 ;;
11016 esac
11017 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11018 gl_header_literal_regex=`echo 'stdlib.h' \
11019 | sed -e "$gl_make_literal_regex_sed"`
11020 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11021 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11022 s|^/[^/]|//&|
11023 p
11024 q
11025 }'
11026
11027 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11028 sed -n "$gl_absolute_header_sed"`
11029
11030 gl_header=$gl_cv_absolute_stdlib_h
11031 gl_cv_next_stdlib_h='"'$gl_header'"'
11032
11033
11034 fi
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
11036 $as_echo "$gl_cv_next_stdlib_h" >&6; }
11037 fi
11038 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
11039
11040 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11041 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11042 gl_next_as_first_directive='<'stdlib.h'>'
11043 else
11044 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11045 gl_next_as_first_directive=$gl_cv_next_stdlib_h
11046 fi
11047 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076 if test $gl_cv_have_include_next = yes; then
11077 gl_cv_next_unistd_h='<'unistd.h'>'
11078 else
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
11080 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
11081 if ${gl_cv_next_unistd_h+:} false; then :
11082 $as_echo_n "(cached) " >&6
11083 else
11084
11085 if test $ac_cv_header_unistd_h = yes; then
11086
11087
11088
11089
11090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11091 /* end confdefs.h. */
11092 #include <unistd.h>
11093 _ACEOF
11094 case "$host_os" in
11095 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11096 *) gl_absname_cpp="$ac_cpp" ;;
11097 esac
11098
11099 case "$host_os" in
11100 mingw*)
11101 gl_dirsep_regex='[/\\]'
11102 ;;
11103 *)
11104 gl_dirsep_regex='\/'
11105 ;;
11106 esac
11107 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11108 gl_header_literal_regex=`echo 'unistd.h' \
11109 | sed -e "$gl_make_literal_regex_sed"`
11110 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11111 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11112 s|^/[^/]|//&|
11113 p
11114 q
11115 }'
11116
11117 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11118 sed -n "$gl_absolute_header_sed"`
11119
11120 gl_header=$gl_cv_absolute_unistd_h
11121 gl_cv_next_unistd_h='"'$gl_header'"'
11122 else
11123 gl_cv_next_unistd_h='<'unistd.h'>'
11124 fi
11125
11126
11127 fi
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
11129 $as_echo "$gl_cv_next_unistd_h" >&6; }
11130 fi
11131 NEXT_UNISTD_H=$gl_cv_next_unistd_h
11132
11133 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11134 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11135 gl_next_as_first_directive='<'unistd.h'>'
11136 else
11137 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11138 gl_next_as_first_directive=$gl_cv_next_unistd_h
11139 fi
11140 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
11141
11142
11143
11144
11145 if test $ac_cv_header_unistd_h = yes; then
11146 HAVE_UNISTD_H=1
11147 else
11148 HAVE_UNISTD_H=0
11149 fi
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165 if test $ac_cv_func_vasnprintf = no; then
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
11207
11208 if test $ac_cv_func_vasnprintf = yes; then
11209
11210 $as_echo "#define REPLACE_VASNPRINTF 1" >>confdefs.h
11211
11212 fi
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
11223 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
11224
11225 else
11226
11227 $as_echo "#define ptrdiff_t long" >>confdefs.h
11228
11229
11230 fi
11231
11232
11233
11234
11235
11236
11237
11238 fi
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252 if test $gl_cv_have_include_next = yes; then
11253 gl_cv_next_wchar_h='<'wchar.h'>'
11254 else
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
11256 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
11257 if ${gl_cv_next_wchar_h+:} false; then :
11258 $as_echo_n "(cached) " >&6
11259 else
11260
11261 if test $ac_cv_header_wchar_h = yes; then
11262
11263
11264
11265
11266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11267 /* end confdefs.h. */
11268 #include <wchar.h>
11269 _ACEOF
11270 case "$host_os" in
11271 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11272 *) gl_absname_cpp="$ac_cpp" ;;
11273 esac
11274
11275 case "$host_os" in
11276 mingw*)
11277 gl_dirsep_regex='[/\\]'
11278 ;;
11279 *)
11280 gl_dirsep_regex='\/'
11281 ;;
11282 esac
11283 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11284 gl_header_literal_regex=`echo 'wchar.h' \
11285 | sed -e "$gl_make_literal_regex_sed"`
11286 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11287 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11288 s|^/[^/]|//&|
11289 p
11290 q
11291 }'
11292
11293 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11294 sed -n "$gl_absolute_header_sed"`
11295
11296 gl_header=$gl_cv_absolute_wchar_h
11297 gl_cv_next_wchar_h='"'$gl_header'"'
11298 else
11299 gl_cv_next_wchar_h='<'wchar.h'>'
11300 fi
11301
11302
11303 fi
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
11305 $as_echo "$gl_cv_next_wchar_h" >&6; }
11306 fi
11307 NEXT_WCHAR_H=$gl_cv_next_wchar_h
11308
11309 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11310 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11311 gl_next_as_first_directive='<'wchar.h'>'
11312 else
11313 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11314 gl_next_as_first_directive=$gl_cv_next_wchar_h
11315 fi
11316 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
11317
11318
11319
11320
11321 if test $ac_cv_header_wchar_h = yes; then
11322 HAVE_WCHAR_H=1
11323 else
11324 HAVE_WCHAR_H=0
11325 fi
11326
11327
11328
11329
11330
11331 if test $gt_cv_c_wint_t = yes; then
11332 HAVE_WINT_T=1
11333 else
11334 HAVE_WINT_T=0
11335 fi
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348 for ac_header in stdint.h
11349 do :
11350 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11351 if test "x$ac_cv_header_stdint_h" = xyes; then :
11352 cat >>confdefs.h <<_ACEOF
11353 #define HAVE_STDINT_H 1
11354 _ACEOF
11355
11356 fi
11357
11358 done
11359
11360
11361 # End of code from modules
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371 gltests_libdeps=
11372 gltests_ltlibdeps=
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383 gl_source_base='tests'
11384 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
11385
11386 gl_module_indicator_condition=$gltests_WITNESS
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396 LIBGNU_LIBDEPS="$gl_libdeps"
11397
11398 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
11399
11400
11401
11402
11403
11404
11405
11406
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
11408 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
11409 if ${gl_cv_c_amsterdam_compiler+:} false; then :
11410 $as_echo_n "(cached) " >&6
11411 else
11412
11413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11414 /* end confdefs.h. */
11415
11416 #ifdef __ACK__
11417 Amsterdam
11418 #endif
11419
11420 _ACEOF
11421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11422 $EGREP "Amsterdam" >/dev/null 2>&1; then :
11423 gl_cv_c_amsterdam_compiler=yes
11424 else
11425 gl_cv_c_amsterdam_compiler=no
11426 fi
11427 rm -f conftest*
11428
11429
11430 fi
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
11432 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
11433
11434 if test $gl_cv_c_amsterdam_compiler = yes; then
11435 if test -z "$AR"; then
11436 AR='cc -c.a'
11437 fi
11438 if test -z "$ARFLAGS"; then
11439 ARFLAGS='-o'
11440 fi
11441 else
11442 :
11443 fi
11444
11445 if test -n "$ac_tool_prefix"; then
11446 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11447 set dummy ${ac_tool_prefix}ar; ac_word=$2
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11449 $as_echo_n "checking for $ac_word... " >&6; }
11450 if ${ac_cv_prog_AR+:} false; then :
11451 $as_echo_n "(cached) " >&6
11452 else
11453 if test -n "$AR"; then
11454 ac_cv_prog_AR="$AR" # Let the user override the test.
11455 else
11456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11457 for as_dir in $PATH
11458 do
11459 IFS=$as_save_IFS
11460 test -z "$as_dir" && as_dir=.
11461 for ac_exec_ext in '' $ac_executable_extensions; do
11462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11463 ac_cv_prog_AR="${ac_tool_prefix}ar"
11464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11465 break 2
11466 fi
11467 done
11468 done
11469 IFS=$as_save_IFS
11470
11471 fi
11472 fi
11473 AR=$ac_cv_prog_AR
11474 if test -n "$AR"; then
11475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11476 $as_echo "$AR" >&6; }
11477 else
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11479 $as_echo "no" >&6; }
11480 fi
11481
11482
11483 fi
11484 if test -z "$ac_cv_prog_AR"; then
11485 ac_ct_AR=$AR
11486 # Extract the first word of "ar", so it can be a program name with args.
11487 set dummy ar; ac_word=$2
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11489 $as_echo_n "checking for $ac_word... " >&6; }
11490 if ${ac_cv_prog_ac_ct_AR+:} false; then :
11491 $as_echo_n "(cached) " >&6
11492 else
11493 if test -n "$ac_ct_AR"; then
11494 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11495 else
11496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11497 for as_dir in $PATH
11498 do
11499 IFS=$as_save_IFS
11500 test -z "$as_dir" && as_dir=.
11501 for ac_exec_ext in '' $ac_executable_extensions; do
11502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11503 ac_cv_prog_ac_ct_AR="ar"
11504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11505 break 2
11506 fi
11507 done
11508 done
11509 IFS=$as_save_IFS
11510
11511 fi
11512 fi
11513 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11514 if test -n "$ac_ct_AR"; then
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11516 $as_echo "$ac_ct_AR" >&6; }
11517 else
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11519 $as_echo "no" >&6; }
11520 fi
11521
11522 if test "x$ac_ct_AR" = x; then
11523 AR="ar"
11524 else
11525 case $cross_compiling:$ac_tool_warned in
11526 yes:)
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11529 ac_tool_warned=yes ;;
11530 esac
11531 AR=$ac_ct_AR
11532 fi
11533 else
11534 AR="$ac_cv_prog_AR"
11535 fi
11536
11537 if test -z "$ARFLAGS"; then
11538 ARFLAGS='cr'
11539 fi
11540
11541
11542
11543 if test -z "$RANLIB"; then
11544 if test $gl_cv_c_amsterdam_compiler = yes; then
11545 RANLIB=':'
11546 else
11547 if test -n "$ac_tool_prefix"; then
11548 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11549 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11551 $as_echo_n "checking for $ac_word... " >&6; }
11552 if ${ac_cv_prog_RANLIB+:} false; then :
11553 $as_echo_n "(cached) " >&6
11554 else
11555 if test -n "$RANLIB"; then
11556 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11557 else
11558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11559 for as_dir in $PATH
11560 do
11561 IFS=$as_save_IFS
11562 test -z "$as_dir" && as_dir=.
11563 for ac_exec_ext in '' $ac_executable_extensions; do
11564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11565 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11567 break 2
11568 fi
11569 done
11570 done
11571 IFS=$as_save_IFS
11572
11573 fi
11574 fi
11575 RANLIB=$ac_cv_prog_RANLIB
11576 if test -n "$RANLIB"; then
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11578 $as_echo "$RANLIB" >&6; }
11579 else
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11581 $as_echo "no" >&6; }
11582 fi
11583
11584
11585 fi
11586 if test -z "$ac_cv_prog_RANLIB"; then
11587 ac_ct_RANLIB=$RANLIB
11588 # Extract the first word of "ranlib", so it can be a program name with args.
11589 set dummy ranlib; ac_word=$2
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11591 $as_echo_n "checking for $ac_word... " >&6; }
11592 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
11593 $as_echo_n "(cached) " >&6
11594 else
11595 if test -n "$ac_ct_RANLIB"; then
11596 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11597 else
11598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11599 for as_dir in $PATH
11600 do
11601 IFS=$as_save_IFS
11602 test -z "$as_dir" && as_dir=.
11603 for ac_exec_ext in '' $ac_executable_extensions; do
11604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11605 ac_cv_prog_ac_ct_RANLIB="ranlib"
11606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11607 break 2
11608 fi
11609 done
11610 done
11611 IFS=$as_save_IFS
11612
11613 fi
11614 fi
11615 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11616 if test -n "$ac_ct_RANLIB"; then
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11618 $as_echo "$ac_ct_RANLIB" >&6; }
11619 else
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11621 $as_echo "no" >&6; }
11622 fi
11623
11624 if test "x$ac_ct_RANLIB" = x; then
11625 RANLIB=":"
11626 else
11627 case $cross_compiling:$ac_tool_warned in
11628 yes:)
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11630 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11631 ac_tool_warned=yes ;;
11632 esac
11633 RANLIB=$ac_ct_RANLIB
11634 fi
11635 else
11636 RANLIB="$ac_cv_prog_RANLIB"
11637 fi
11638
11639 fi
11640 fi
11641
11642
11643
11644
11645 # Pre-early section.
11646
11647
11648
11649 # Code from module absolute-header:
11650 # Code from module alloca-opt:
11651 # Code from module attribute:
11652 # Code from module c99:
11653 # Code from module close:
11654 # Code from module errno:
11655 # Code from module extensions:
11656 # Code from module extern-inline:
11657 # Code from module fd-hook:
11658 # Code from module fdl:
11659 # Code from module float:
11660 # Code from module gendocs:
11661 # Code from module gpl-3.0:
11662 # Code from module include_next:
11663 # Code from module inttypes-incomplete:
11664 # Code from module limits-h:
11665 # Code from module malloc-posix:
11666 # Code from module memchr:
11667 # Code from module msvc-inval:
11668 # Code from module multiarch:
11669 # Code from module size_max:
11670 # Code from module snippet/_Noreturn:
11671 # Code from module snippet/arg-nonnull:
11672 # Code from module snippet/c++defs:
11673 # Code from module snippet/warn-on-use:
11674 # Code from module snprintf:
11675 # Code from module ssize_t:
11676 # Code from module std-gnu11:
11677 # Code from module stdbool:
11678 # Code from module stddef:
11679 # Code from module stdint:
11680 # Code from module stdio:
11681 # Code from module stdlib:
11682 # Code from module string:
11683 # Code from module sys_types:
11684 # Code from module unistd:
11685 # Code from module vasnprintf:
11686 # Code from module verify:
11687 # Code from module wchar:
11688 # Code from module xsize:
11689
11690 if test "X${ac_cv_header_autoopts_options_h}" = Xno
11691 then :
11692 else
11693 f=`autoopts-config cflags` 2>/dev/null
11694 if test X"${f}" = X
11695 then
11696 :
11697 else
11698
11699 $as_echo "#define HAVE_LIBOPTS 1" >>confdefs.h
11700
11701 CFLAGS="${CFLAGS} ${f}"
11702 ao_CFLAGS="${f}"
11703
11704
11705 f=`autoopts-config ldflags` 2>/dev/null
11706 LIBS="${LIBS} ${f}"
11707 ao_LIBS="${f}"
11708
11709 fi
11710 fi
11711 test -z "${ao_LIBS}" && \
11712 as_fn_error $? "libopts was not found" "$LINENO" 5
11713
11714 if autogen -MF/tmp/ag-bogus-$$ --help >/dev/null
11715 then ag_cv_ag_supports_mf=true
11716 else ag_cv_ag_supports_mf=false
11717 fi
11718
11719 if $ag_cv_ag_supports_mf; then
11720 AG_MF_TRUE=
11721 AG_MF_FALSE='#'
11722 else
11723 AG_MF_TRUE='#'
11724 AG_MF_FALSE=
11725 fi
11726
11727
11728
11729 cat >confcache <<\_ACEOF
11730 # This file is a shell script that caches the results of configure
11731 # tests run on this system so they can be shared between configure
11732 # scripts and configure runs, see configure's option --config-cache.
11733 # It is not useful on other systems. If it contains results you don't
11734 # want to keep, you may remove or edit it.
11735 #
11736 # config.status only pays attention to the cache file if you give it
11737 # the --recheck option to rerun configure.
11738 #
11739 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11740 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11741 # following values.
11742
11743 _ACEOF
11744
11745 # The following way of writing the cache mishandles newlines in values,
11746 # but we know of no workaround that is simple, portable, and efficient.
11747 # So, we kill variables containing newlines.
11748 # Ultrix sh set writes to stderr and can't be redirected directly,
11749 # and sets the high bit in the cache file unless we assign to the vars.
11750 (
11751 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11752 eval ac_val=\$$ac_var
11753 case $ac_val in #(
11754 *${as_nl}*)
11755 case $ac_var in #(
11756 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11757 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11758 esac
11759 case $ac_var in #(
11760 _ | IFS | as_nl) ;; #(
11761 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11762 *) { eval $ac_var=; unset $ac_var;} ;;
11763 esac ;;
11764 esac
11765 done
11766
11767 (set) 2>&1 |
11768 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11769 *${as_nl}ac_space=\ *)
11770 # `set' does not quote correctly, so add quotes: double-quote
11771 # substitution turns \\\\ into \\, and sed turns \\ into \.
11772 sed -n \
11773 "s/'/'\\\\''/g;
11774 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11775 ;; #(
11776 *)
11777 # `set' quotes correctly as required by POSIX, so do not add quotes.
11778 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11779 ;;
11780 esac |
11781 sort
11782 ) |
11783 sed '
11784 /^ac_cv_env_/b end
11785 t clear
11786 :clear
11787 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11788 t end
11789 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11790 :end' >>confcache
11791 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11792 if test -w "$cache_file"; then
11793 if test "x$cache_file" != "x/dev/null"; then
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11795 $as_echo "$as_me: updating cache $cache_file" >&6;}
11796 if test ! -f "$cache_file" || test -h "$cache_file"; then
11797 cat confcache >"$cache_file"
11798 else
11799 case $cache_file in #(
11800 */* | ?:*)
11801 mv -f confcache "$cache_file"$$ &&
11802 mv -f "$cache_file"$$ "$cache_file" ;; #(
11803 *)
11804 mv -f confcache "$cache_file" ;;
11805 esac
11806 fi
11807 fi
11808 else
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11810 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11811 fi
11812 fi
11813 rm -f confcache
11814
11815 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11816 # Let make expand exec_prefix.
11817 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11818
11819 DEFS=-DHAVE_CONFIG_H
11820
11821 ac_libobjs=
11822 ac_ltlibobjs=
11823 U=
11824 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11825 # 1. Remove the extension, and $U if already installed.
11826 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11827 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11828 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11829 # will be set to the directory where LIBOBJS objects are built.
11830 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11831 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11832 done
11833 LIBOBJS=$ac_libobjs
11834
11835 LTLIBOBJS=$ac_ltlibobjs
11836
11837
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11839 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11840 if test -n "$am_sleep_pid"; then
11841 # Hide warnings about reused PIDs.
11842 wait $am_sleep_pid 2>/dev/null
11843 fi
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11845 $as_echo "done" >&6; }
11846 if test -n "$EXEEXT"; then
11847 am__EXEEXT_TRUE=
11848 am__EXEEXT_FALSE='#'
11849 else
11850 am__EXEEXT_TRUE='#'
11851 am__EXEEXT_FALSE=
11852 fi
11853
11854 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11855 as_fn_error $? "conditional \"AMDEP\" was never defined.
11856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11857 fi
11858 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11859 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11861 fi
11862 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
11863 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
11864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11865 fi
11866 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
11867 as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
11868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11869 fi
11870 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
11871 as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
11872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11873 fi
11874 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
11875 as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
11876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11877 fi
11878 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
11879 as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
11880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11881 fi
11882 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
11883 as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
11884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11885 fi
11886 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
11887 as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
11888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11889 fi
11890 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
11891 as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
11892 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11893 fi
11894 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
11895 as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
11896 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11897 fi
11898
11899
11900 gl_libobjs=
11901 gl_ltlibobjs=
11902 if test -n "$gl_LIBOBJS"; then
11903 # Remove the extension.
11904 sed_drop_objext='s/\.o$//;s/\.obj$//'
11905 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
11906 gl_libobjs="$gl_libobjs $i.$ac_objext"
11907 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
11908 done
11909 fi
11910 gl_LIBOBJS=$gl_libobjs
11911
11912 gl_LTLIBOBJS=$gl_ltlibobjs
11913
11914
11915
11916 gltests_libobjs=
11917 gltests_ltlibobjs=
11918 if test -n "$gltests_LIBOBJS"; then
11919 # Remove the extension.
11920 sed_drop_objext='s/\.o$//;s/\.obj$//'
11921 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
11922 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
11923 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
11924 done
11925 fi
11926 gltests_LIBOBJS=$gltests_libobjs
11927
11928 gltests_LTLIBOBJS=$gltests_ltlibobjs
11929
11930
11931 if test -z "${AG_MF_TRUE}" && test -z "${AG_MF_FALSE}"; then
11932 as_fn_error $? "conditional \"AG_MF\" was never defined.
11933 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11934 fi
11935
11936 : "${CONFIG_STATUS=./config.status}"
11937 ac_write_fail=0
11938 ac_clean_files_save=$ac_clean_files
11939 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11941 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11942 as_write_fail=0
11943 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11944 #! $SHELL
11945 # Generated by $as_me.
11946 # Run this file to recreate the current configuration.
11947 # Compiler output produced by configure, useful for debugging
11948 # configure, is in config.log if it exists.
11949
11950 debug=false
11951 ac_cs_recheck=false
11952 ac_cs_silent=false
11953
11954 SHELL=\${CONFIG_SHELL-$SHELL}
11955 export SHELL
11956 _ASEOF
11957 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11958 ## -------------------- ##
11959 ## M4sh Initialization. ##
11960 ## -------------------- ##
11961
11962 # Be more Bourne compatible
11963 DUALCASE=1; export DUALCASE # for MKS sh
11964 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11965 emulate sh
11966 NULLCMD=:
11967 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11968 # is contrary to our usage. Disable this feature.
11969 alias -g '${1+"$@"}'='"$@"'
11970 setopt NO_GLOB_SUBST
11971 else
11972 case `(set -o) 2>/dev/null` in #(
11973 *posix*) :
11974 set -o posix ;; #(
11975 *) :
11976 ;;
11977 esac
11978 fi
11979
11980
11981 as_nl='
11982 '
11983 export as_nl
11984 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11985 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11986 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11987 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11988 # Prefer a ksh shell builtin over an external printf program on Solaris,
11989 # but without wasting forks for bash or zsh.
11990 if test -z "$BASH_VERSION$ZSH_VERSION" \
11991 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11992 as_echo='print -r --'
11993 as_echo_n='print -rn --'
11994 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11995 as_echo='printf %s\n'
11996 as_echo_n='printf %s'
11997 else
11998 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11999 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12000 as_echo_n='/usr/ucb/echo -n'
12001 else
12002 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12003 as_echo_n_body='eval
12004 arg=$1;
12005 case $arg in #(
12006 *"$as_nl"*)
12007 expr "X$arg" : "X\\(.*\\)$as_nl";
12008 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12009 esac;
12010 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12011 '
12012 export as_echo_n_body
12013 as_echo_n='sh -c $as_echo_n_body as_echo'
12014 fi
12015 export as_echo_body
12016 as_echo='sh -c $as_echo_body as_echo'
12017 fi
12018
12019 # The user is always right.
12020 if test "${PATH_SEPARATOR+set}" != set; then
12021 PATH_SEPARATOR=:
12022 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12023 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12024 PATH_SEPARATOR=';'
12025 }
12026 fi
12027
12028
12029 # IFS
12030 # We need space, tab and new line, in precisely that order. Quoting is
12031 # there to prevent editors from complaining about space-tab.
12032 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12033 # splitting by setting IFS to empty value.)
12034 IFS=" "" $as_nl"
12035
12036 # Find who we are. Look in the path if we contain no directory separator.
12037 as_myself=
12038 case $0 in #((
12039 *[\\/]* ) as_myself=$0 ;;
12040 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12041 for as_dir in $PATH
12042 do
12043 IFS=$as_save_IFS
12044 test -z "$as_dir" && as_dir=.
12045 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12046 done
12047 IFS=$as_save_IFS
12048
12049 ;;
12050 esac
12051 # We did not find ourselves, most probably we were run as `sh COMMAND'
12052 # in which case we are not to be found in the path.
12053 if test "x$as_myself" = x; then
12054 as_myself=$0
12055 fi
12056 if test ! -f "$as_myself"; then
12057 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12058 exit 1
12059 fi
12060
12061 # Unset variables that we do not need and which cause bugs (e.g. in
12062 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12063 # suppresses any "Segmentation fault" message there. '((' could
12064 # trigger a bug in pdksh 5.2.14.
12065 for as_var in BASH_ENV ENV MAIL MAILPATH
12066 do eval test x\${$as_var+set} = xset \
12067 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12068 done
12069 PS1='$ '
12070 PS2='> '
12071 ## '+ '
12072
12073 # NLS nuisances.
12074 LC_ALL=C
12075 export LC_ALL
12076 LANGUAGE=C
12077 export LANGUAGE
12078
12079 # CDPATH.
12080 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12081
12082
12083 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12084 # ----------------------------------------
12085 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12086 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12087 # script with STATUS, using 1 if that was 0.
12088 as_fn_error ()
12089 {
12090 as_status=$1; test $as_status -eq 0 && as_status=1
12091 if test "$4"; then
12092 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12093 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12094 fi
12095 $as_echo "$as_me: error: $2" >&2
12096 as_fn_exit $as_status
12097 } # as_fn_error
12098
12099
12100 # as_fn_set_status STATUS
12101 # -----------------------
12102 # Set $? to STATUS, without forking.
12103 as_fn_set_status ()
12104 {
12105 return $1
12106 } # as_fn_set_status
12107
12108 # as_fn_exit STATUS
12109 # -----------------
12110 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12111 as_fn_exit ()
12112 {
12113 set +e
12114 as_fn_set_status $1
12115 exit $1
12116 } # as_fn_exit
12117
12118 # as_fn_unset VAR
12119 # ---------------
12120 # Portably unset VAR.
12121 as_fn_unset ()
12122 {
12123 { eval $1=; unset $1;}
12124 }
12125 as_unset=as_fn_unset
12126 # as_fn_append VAR VALUE
12127 # ----------------------
12128 # Append the text in VALUE to the end of the definition contained in VAR. Take
12129 # advantage of any shell optimizations that allow amortized linear growth over
12130 # repeated appends, instead of the typical quadratic growth present in naive
12131 # implementations.
12132 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12133 eval 'as_fn_append ()
12134 {
12135 eval $1+=\$2
12136 }'
12137 else
12138 as_fn_append ()
12139 {
12140 eval $1=\$$1\$2
12141 }
12142 fi # as_fn_append
12143
12144 # as_fn_arith ARG...
12145 # ------------------
12146 # Perform arithmetic evaluation on the ARGs, and store the result in the
12147 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12148 # must be portable across $(()) and expr.
12149 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12150 eval 'as_fn_arith ()
12151 {
12152 as_val=$(( $* ))
12153 }'
12154 else
12155 as_fn_arith ()
12156 {
12157 as_val=`expr "$@" || test $? -eq 1`
12158 }
12159 fi # as_fn_arith
12160
12161
12162 if expr a : '\(a\)' >/dev/null 2>&1 &&
12163 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12164 as_expr=expr
12165 else
12166 as_expr=false
12167 fi
12168
12169 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12170 as_basename=basename
12171 else
12172 as_basename=false
12173 fi
12174
12175 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12176 as_dirname=dirname
12177 else
12178 as_dirname=false
12179 fi
12180
12181 as_me=`$as_basename -- "$0" ||
12182 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12183 X"$0" : 'X\(//\)$' \| \
12184 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12185 $as_echo X/"$0" |
12186 sed '/^.*\/\([^/][^/]*\)\/*$/{
12187 s//\1/
12188 q
12189 }
12190 /^X\/\(\/\/\)$/{
12191 s//\1/
12192 q
12193 }
12194 /^X\/\(\/\).*/{
12195 s//\1/
12196 q
12197 }
12198 s/.*/./; q'`
12199
12200 # Avoid depending upon Character Ranges.
12201 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12202 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12203 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12204 as_cr_digits='0123456789'
12205 as_cr_alnum=$as_cr_Letters$as_cr_digits
12206
12207 ECHO_C= ECHO_N= ECHO_T=
12208 case `echo -n x` in #(((((
12209 -n*)
12210 case `echo 'xy\c'` in
12211 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12212 xy) ECHO_C='\c';;
12213 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12214 ECHO_T=' ';;
12215 esac;;
12216 *)
12217 ECHO_N='-n';;
12218 esac
12219
12220 rm -f conf$$ conf$$.exe conf$$.file
12221 if test -d conf$$.dir; then
12222 rm -f conf$$.dir/conf$$.file
12223 else
12224 rm -f conf$$.dir
12225 mkdir conf$$.dir 2>/dev/null
12226 fi
12227 if (echo >conf$$.file) 2>/dev/null; then
12228 if ln -s conf$$.file conf$$ 2>/dev/null; then
12229 as_ln_s='ln -s'
12230 # ... but there are two gotchas:
12231 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12232 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12233 # In both cases, we have to default to `cp -pR'.
12234 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12235 as_ln_s='cp -pR'
12236 elif ln conf$$.file conf$$ 2>/dev/null; then
12237 as_ln_s=ln
12238 else
12239 as_ln_s='cp -pR'
12240 fi
12241 else
12242 as_ln_s='cp -pR'
12243 fi
12244 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12245 rmdir conf$$.dir 2>/dev/null
12246
12247
12248 # as_fn_mkdir_p
12249 # -------------
12250 # Create "$as_dir" as a directory, including parents if necessary.
12251 as_fn_mkdir_p ()
12252 {
12253
12254 case $as_dir in #(
12255 -*) as_dir=./$as_dir;;
12256 esac
12257 test -d "$as_dir" || eval $as_mkdir_p || {
12258 as_dirs=
12259 while :; do
12260 case $as_dir in #(
12261 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12262 *) as_qdir=$as_dir;;
12263 esac
12264 as_dirs="'$as_qdir' $as_dirs"
12265 as_dir=`$as_dirname -- "$as_dir" ||
12266 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12267 X"$as_dir" : 'X\(//\)[^/]' \| \
12268 X"$as_dir" : 'X\(//\)$' \| \
12269 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12270 $as_echo X"$as_dir" |
12271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12272 s//\1/
12273 q
12274 }
12275 /^X\(\/\/\)[^/].*/{
12276 s//\1/
12277 q
12278 }
12279 /^X\(\/\/\)$/{
12280 s//\1/
12281 q
12282 }
12283 /^X\(\/\).*/{
12284 s//\1/
12285 q
12286 }
12287 s/.*/./; q'`
12288 test -d "$as_dir" && break
12289 done
12290 test -z "$as_dirs" || eval "mkdir $as_dirs"
12291 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12292
12293
12294 } # as_fn_mkdir_p
12295 if mkdir -p . 2>/dev/null; then
12296 as_mkdir_p='mkdir -p "$as_dir"'
12297 else
12298 test -d ./-p && rmdir ./-p
12299 as_mkdir_p=false
12300 fi
12301
12302
12303 # as_fn_executable_p FILE
12304 # -----------------------
12305 # Test if FILE is an executable regular file.
12306 as_fn_executable_p ()
12307 {
12308 test -f "$1" && test -x "$1"
12309 } # as_fn_executable_p
12310 as_test_x='test -x'
12311 as_executable_p=as_fn_executable_p
12312
12313 # Sed expression to map a string onto a valid CPP name.
12314 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12315
12316 # Sed expression to map a string onto a valid variable name.
12317 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12318
12319
12320 exec 6>&1
12321 ## ----------------------------------- ##
12322 ## Main body of $CONFIG_STATUS script. ##
12323 ## ----------------------------------- ##
12324 _ASEOF
12325 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12326
12327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12328 # Save the log message, to keep $0 and so on meaningful, and to
12329 # report actual input values of CONFIG_FILES etc. instead of their
12330 # values after options handling.
12331 ac_log="
12332 This file was extended by Complexity $as_me 1.13, which was
12333 generated by GNU Autoconf 2.69. Invocation command line was
12334
12335 CONFIG_FILES = $CONFIG_FILES
12336 CONFIG_HEADERS = $CONFIG_HEADERS
12337 CONFIG_LINKS = $CONFIG_LINKS
12338 CONFIG_COMMANDS = $CONFIG_COMMANDS
12339 $ $0 $@
12340
12341 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12342 "
12343
12344 _ACEOF
12345
12346 case $ac_config_files in *"
12347 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12348 esac
12349
12350 case $ac_config_headers in *"
12351 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12352 esac
12353
12354
12355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12356 # Files that config.status was made for.
12357 config_files="$ac_config_files"
12358 config_headers="$ac_config_headers"
12359 config_commands="$ac_config_commands"
12360
12361 _ACEOF
12362
12363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12364 ac_cs_usage="\
12365 \`$as_me' instantiates files and other configuration actions
12366 from templates according to the current configuration. Unless the files
12367 and actions are specified as TAGs, all are instantiated by default.
12368
12369 Usage: $0 [OPTION]... [TAG]...
12370
12371 -h, --help print this help, then exit
12372 -V, --version print version number and configuration settings, then exit
12373 --config print configuration, then exit
12374 -q, --quiet, --silent
12375 do not print progress messages
12376 -d, --debug don't remove temporary files
12377 --recheck update $as_me by reconfiguring in the same conditions
12378 --file=FILE[:TEMPLATE]
12379 instantiate the configuration file FILE
12380 --header=FILE[:TEMPLATE]
12381 instantiate the configuration header FILE
12382
12383 Configuration files:
12384 $config_files
12385
12386 Configuration headers:
12387 $config_headers
12388
12389 Configuration commands:
12390 $config_commands
12391
12392 Report bugs to <[email protected]>."
12393
12394 _ACEOF
12395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12396 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12397 ac_cs_version="\\
12398 Complexity config.status 1.13
12399 configured by $0, generated by GNU Autoconf 2.69,
12400 with options \\"\$ac_cs_config\\"
12401
12402 Copyright (C) 2012 Free Software Foundation, Inc.
12403 This config.status script is free software; the Free Software Foundation
12404 gives unlimited permission to copy, distribute and modify it."
12405
12406 ac_pwd='$ac_pwd'
12407 srcdir='$srcdir'
12408 INSTALL='$INSTALL'
12409 MKDIR_P='$MKDIR_P'
12410 AWK='$AWK'
12411 test -n "\$AWK" || AWK=awk
12412 _ACEOF
12413
12414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12415 # The default lists apply if the user does not specify any file.
12416 ac_need_defaults=:
12417 while test $# != 0
12418 do
12419 case $1 in
12420 --*=?*)
12421 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12422 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12423 ac_shift=:
12424 ;;
12425 --*=)
12426 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12427 ac_optarg=
12428 ac_shift=:
12429 ;;
12430 *)
12431 ac_option=$1
12432 ac_optarg=$2
12433 ac_shift=shift
12434 ;;
12435 esac
12436
12437 case $ac_option in
12438 # Handling of the options.
12439 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12440 ac_cs_recheck=: ;;
12441 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12442 $as_echo "$ac_cs_version"; exit ;;
12443 --config | --confi | --conf | --con | --co | --c )
12444 $as_echo "$ac_cs_config"; exit ;;
12445 --debug | --debu | --deb | --de | --d | -d )
12446 debug=: ;;
12447 --file | --fil | --fi | --f )
12448 $ac_shift
12449 case $ac_optarg in
12450 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12451 '') as_fn_error $? "missing file argument" ;;
12452 esac
12453 as_fn_append CONFIG_FILES " '$ac_optarg'"
12454 ac_need_defaults=false;;
12455 --header | --heade | --head | --hea )
12456 $ac_shift
12457 case $ac_optarg in
12458 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12459 esac
12460 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12461 ac_need_defaults=false;;
12462 --he | --h)
12463 # Conflict between --help and --header
12464 as_fn_error $? "ambiguous option: \`$1'
12465 Try \`$0 --help' for more information.";;
12466 --help | --hel | -h )
12467 $as_echo "$ac_cs_usage"; exit ;;
12468 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12469 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12470 ac_cs_silent=: ;;
12471
12472 # This is an error.
12473 -*) as_fn_error $? "unrecognized option: \`$1'
12474 Try \`$0 --help' for more information." ;;
12475
12476 *) as_fn_append ac_config_targets " $1"
12477 ac_need_defaults=false ;;
12478
12479 esac
12480 shift
12481 done
12482
12483 ac_configure_extra_args=
12484
12485 if $ac_cs_silent; then
12486 exec 6>/dev/null
12487 ac_configure_extra_args="$ac_configure_extra_args --silent"
12488 fi
12489
12490 _ACEOF
12491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12492 if \$ac_cs_recheck; then
12493 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12494 shift
12495 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12496 CONFIG_SHELL='$SHELL'
12497 export CONFIG_SHELL
12498 exec "\$@"
12499 fi
12500
12501 _ACEOF
12502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12503 exec 5>>config.log
12504 {
12505 echo
12506 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12507 ## Running $as_me. ##
12508 _ASBOX
12509 $as_echo "$ac_log"
12510 } >&5
12511
12512 _ACEOF
12513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12514 #
12515 # INIT-COMMANDS
12516 #
12517 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12518
12519 _ACEOF
12520
12521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12522
12523 # Handling of arguments.
12524 for ac_config_target in $ac_config_targets
12525 do
12526 case $ac_config_target in
12527 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12528 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12529 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12530 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
12531 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12532 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
12533 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12534
12535 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12536 esac
12537 done
12538
12539
12540 # If the user did not use the arguments to specify the items to instantiate,
12541 # then the envvar interface is used. Set only those that are not.
12542 # We use the long form for the default assignment because of an extremely
12543 # bizarre bug on SunOS 4.1.3.
12544 if $ac_need_defaults; then
12545 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12546 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12547 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12548 fi
12549
12550 # Have a temporary directory for convenience. Make it in the build tree
12551 # simply because there is no reason against having it here, and in addition,
12552 # creating and moving files from /tmp can sometimes cause problems.
12553 # Hook for its removal unless debugging.
12554 # Note that there is a small window in which the directory will not be cleaned:
12555 # after its creation but before its name has been assigned to `$tmp'.
12556 $debug ||
12557 {
12558 tmp= ac_tmp=
12559 trap 'exit_status=$?
12560 : "${ac_tmp:=$tmp}"
12561 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12562 ' 0
12563 trap 'as_fn_exit 1' 1 2 13 15
12564 }
12565 # Create a (secure) tmp directory for tmp files.
12566
12567 {
12568 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12569 test -d "$tmp"
12570 } ||
12571 {
12572 tmp=./conf$$-$RANDOM
12573 (umask 077 && mkdir "$tmp")
12574 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12575 ac_tmp=$tmp
12576
12577 # Set up the scripts for CONFIG_FILES section.
12578 # No need to generate them if there are no CONFIG_FILES.
12579 # This happens for instance with `./config.status config.h'.
12580 if test -n "$CONFIG_FILES"; then
12581
12582
12583 ac_cr=`echo X | tr X '\015'`
12584 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12585 # But we know of no other shell where ac_cr would be empty at this
12586 # point, so we can use a bashism as a fallback.
12587 if test "x$ac_cr" = x; then
12588 eval ac_cr=\$\'\\r\'
12589 fi
12590 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12591 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12592 ac_cs_awk_cr='\\r'
12593 else
12594 ac_cs_awk_cr=$ac_cr
12595 fi
12596
12597 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12598 _ACEOF
12599
12600
12601 {
12602 echo "cat >conf$$subs.awk <<_ACEOF" &&
12603 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12604 echo "_ACEOF"
12605 } >conf$$subs.sh ||
12606 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12607 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12608 ac_delim='%!_!# '
12609 for ac_last_try in false false false false false :; do
12610 . ./conf$$subs.sh ||
12611 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12612
12613 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12614 if test $ac_delim_n = $ac_delim_num; then
12615 break
12616 elif $ac_last_try; then
12617 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12618 else
12619 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12620 fi
12621 done
12622 rm -f conf$$subs.sh
12623
12624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12625 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12626 _ACEOF
12627 sed -n '
12628 h
12629 s/^/S["/; s/!.*/"]=/
12630 p
12631 g
12632 s/^[^!]*!//
12633 :repl
12634 t repl
12635 s/'"$ac_delim"'$//
12636 t delim
12637 :nl
12638 h
12639 s/\(.\{148\}\)..*/\1/
12640 t more1
12641 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12642 p
12643 n
12644 b repl
12645 :more1
12646 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12647 p
12648 g
12649 s/.\{148\}//
12650 t nl
12651 :delim
12652 h
12653 s/\(.\{148\}\)..*/\1/
12654 t more2
12655 s/["\\]/\\&/g; s/^/"/; s/$/"/
12656 p
12657 b
12658 :more2
12659 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12660 p
12661 g
12662 s/.\{148\}//
12663 t delim
12664 ' <conf$$subs.awk | sed '
12665 /^[^""]/{
12666 N
12667 s/\n//
12668 }
12669 ' >>$CONFIG_STATUS || ac_write_fail=1
12670 rm -f conf$$subs.awk
12671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12672 _ACAWK
12673 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12674 for (key in S) S_is_set[key] = 1
12675 FS = ""
12676
12677 }
12678 {
12679 line = $ 0
12680 nfields = split(line, field, "@")
12681 substed = 0
12682 len = length(field[1])
12683 for (i = 2; i < nfields; i++) {
12684 key = field[i]
12685 keylen = length(key)
12686 if (S_is_set[key]) {
12687 value = S[key]
12688 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12689 len += length(value) + length(field[++i])
12690 substed = 1
12691 } else
12692 len += 1 + keylen
12693 }
12694
12695 print line
12696 }
12697
12698 _ACAWK
12699 _ACEOF
12700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12701 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12702 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12703 else
12704 cat
12705 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12706 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12707 _ACEOF
12708
12709 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12710 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12711 # trailing colons and then remove the whole line if VPATH becomes empty
12712 # (actually we leave an empty line to preserve line numbers).
12713 if test "x$srcdir" = x.; then
12714 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12715 h
12716 s///
12717 s/^/:/
12718 s/[ ]*$/:/
12719 s/:\$(srcdir):/:/g
12720 s/:\${srcdir}:/:/g
12721 s/:@srcdir@:/:/g
12722 s/^:*//
12723 s/:*$//
12724 x
12725 s/\(=[ ]*\).*/\1/
12726 G
12727 s/\n//
12728 s/^[^=]*=[ ]*$//
12729 }'
12730 fi
12731
12732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12733 fi # test -n "$CONFIG_FILES"
12734
12735 # Set up the scripts for CONFIG_HEADERS section.
12736 # No need to generate them if there are no CONFIG_HEADERS.
12737 # This happens for instance with `./config.status Makefile'.
12738 if test -n "$CONFIG_HEADERS"; then
12739 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12740 BEGIN {
12741 _ACEOF
12742
12743 # Transform confdefs.h into an awk script `defines.awk', embedded as
12744 # here-document in config.status, that substitutes the proper values into
12745 # config.h.in to produce config.h.
12746
12747 # Create a delimiter string that does not exist in confdefs.h, to ease
12748 # handling of long lines.
12749 ac_delim='%!_!# '
12750 for ac_last_try in false false :; do
12751 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12752 if test -z "$ac_tt"; then
12753 break
12754 elif $ac_last_try; then
12755 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12756 else
12757 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12758 fi
12759 done
12760
12761 # For the awk script, D is an array of macro values keyed by name,
12762 # likewise P contains macro parameters if any. Preserve backslash
12763 # newline sequences.
12764
12765 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12766 sed -n '
12767 s/.\{148\}/&'"$ac_delim"'/g
12768 t rset
12769 :rset
12770 s/^[ ]*#[ ]*define[ ][ ]*/ /
12771 t def
12772 d
12773 :def
12774 s/\\$//
12775 t bsnl
12776 s/["\\]/\\&/g
12777 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12778 D["\1"]=" \3"/p
12779 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12780 d
12781 :bsnl
12782 s/["\\]/\\&/g
12783 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12784 D["\1"]=" \3\\\\\\n"\\/p
12785 t cont
12786 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12787 t cont
12788 d
12789 :cont
12790 n
12791 s/.\{148\}/&'"$ac_delim"'/g
12792 t clear
12793 :clear
12794 s/\\$//
12795 t bsnlc
12796 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12797 d
12798 :bsnlc
12799 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12800 b cont
12801 ' <confdefs.h | sed '
12802 s/'"$ac_delim"'/"\\\
12803 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12804
12805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12806 for (key in D) D_is_set[key] = 1
12807 FS = ""
12808 }
12809 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12810 line = \$ 0
12811 split(line, arg, " ")
12812 if (arg[1] == "#") {
12813 defundef = arg[2]
12814 mac1 = arg[3]
12815 } else {
12816 defundef = substr(arg[1], 2)
12817 mac1 = arg[2]
12818 }
12819 split(mac1, mac2, "(") #)
12820 macro = mac2[1]
12821 prefix = substr(line, 1, index(line, defundef) - 1)
12822 if (D_is_set[macro]) {
12823 # Preserve the white space surrounding the "#".
12824 print prefix "define", macro P[macro] D[macro]
12825 next
12826 } else {
12827 # Replace #undef with comments. This is necessary, for example,
12828 # in the case of _POSIX_SOURCE, which is predefined and required
12829 # on some systems where configure will not decide to define it.
12830 if (defundef == "undef") {
12831 print "/*", prefix defundef, macro, "*/"
12832 next
12833 }
12834 }
12835 }
12836 { print }
12837 _ACAWK
12838 _ACEOF
12839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12840 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12841 fi # test -n "$CONFIG_HEADERS"
12842
12843
12844 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12845 shift
12846 for ac_tag
12847 do
12848 case $ac_tag in
12849 :[FHLC]) ac_mode=$ac_tag; continue;;
12850 esac
12851 case $ac_mode$ac_tag in
12852 :[FHL]*:*);;
12853 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12854 :[FH]-) ac_tag=-:-;;
12855 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12856 esac
12857 ac_save_IFS=$IFS
12858 IFS=:
12859 set x $ac_tag
12860 IFS=$ac_save_IFS
12861 shift
12862 ac_file=$1
12863 shift
12864
12865 case $ac_mode in
12866 :L) ac_source=$1;;
12867 :[FH])
12868 ac_file_inputs=
12869 for ac_f
12870 do
12871 case $ac_f in
12872 -) ac_f="$ac_tmp/stdin";;
12873 *) # Look for the file first in the build tree, then in the source tree
12874 # (if the path is not absolute). The absolute path cannot be DOS-style,
12875 # because $ac_f cannot contain `:'.
12876 test -f "$ac_f" ||
12877 case $ac_f in
12878 [\\/$]*) false;;
12879 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12880 esac ||
12881 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12882 esac
12883 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12884 as_fn_append ac_file_inputs " '$ac_f'"
12885 done
12886
12887 # Let's still pretend it is `configure' which instantiates (i.e., don't
12888 # use $as_me), people would be surprised to read:
12889 # /* config.h. Generated by config.status. */
12890 configure_input='Generated from '`
12891 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12892 `' by configure.'
12893 if test x"$ac_file" != x-; then
12894 configure_input="$ac_file. $configure_input"
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12896 $as_echo "$as_me: creating $ac_file" >&6;}
12897 fi
12898 # Neutralize special characters interpreted by sed in replacement strings.
12899 case $configure_input in #(
12900 *\&* | *\|* | *\\* )
12901 ac_sed_conf_input=`$as_echo "$configure_input" |
12902 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12903 *) ac_sed_conf_input=$configure_input;;
12904 esac
12905
12906 case $ac_tag in
12907 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12908 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12909 esac
12910 ;;
12911 esac
12912
12913 ac_dir=`$as_dirname -- "$ac_file" ||
12914 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12915 X"$ac_file" : 'X\(//\)[^/]' \| \
12916 X"$ac_file" : 'X\(//\)$' \| \
12917 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12918 $as_echo X"$ac_file" |
12919 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12920 s//\1/
12921 q
12922 }
12923 /^X\(\/\/\)[^/].*/{
12924 s//\1/
12925 q
12926 }
12927 /^X\(\/\/\)$/{
12928 s//\1/
12929 q
12930 }
12931 /^X\(\/\).*/{
12932 s//\1/
12933 q
12934 }
12935 s/.*/./; q'`
12936 as_dir="$ac_dir"; as_fn_mkdir_p
12937 ac_builddir=.
12938
12939 case "$ac_dir" in
12940 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12941 *)
12942 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12943 # A ".." for each directory in $ac_dir_suffix.
12944 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12945 case $ac_top_builddir_sub in
12946 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12947 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12948 esac ;;
12949 esac
12950 ac_abs_top_builddir=$ac_pwd
12951 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12952 # for backward compatibility:
12953 ac_top_builddir=$ac_top_build_prefix
12954
12955 case $srcdir in
12956 .) # We are building in place.
12957 ac_srcdir=.
12958 ac_top_srcdir=$ac_top_builddir_sub
12959 ac_abs_top_srcdir=$ac_pwd ;;
12960 [\\/]* | ?:[\\/]* ) # Absolute name.
12961 ac_srcdir=$srcdir$ac_dir_suffix;
12962 ac_top_srcdir=$srcdir
12963 ac_abs_top_srcdir=$srcdir ;;
12964 *) # Relative name.
12965 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12966 ac_top_srcdir=$ac_top_build_prefix$srcdir
12967 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12968 esac
12969 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12970
12971
12972 case $ac_mode in
12973 :F)
12974 #
12975 # CONFIG_FILE
12976 #
12977
12978 case $INSTALL in
12979 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12980 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12981 esac
12982 ac_MKDIR_P=$MKDIR_P
12983 case $MKDIR_P in
12984 [\\/$]* | ?:[\\/]* ) ;;
12985 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12986 esac
12987 _ACEOF
12988
12989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12990 # If the template does not know about datarootdir, expand it.
12991 # FIXME: This hack should be removed a few years after 2.60.
12992 ac_datarootdir_hack=; ac_datarootdir_seen=
12993 ac_sed_dataroot='
12994 /datarootdir/ {
12995 p
12996 q
12997 }
12998 /@datadir@/p
12999 /@docdir@/p
13000 /@infodir@/p
13001 /@localedir@/p
13002 /@mandir@/p'
13003 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13004 *datarootdir*) ac_datarootdir_seen=yes;;
13005 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13007 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13008 _ACEOF
13009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13010 ac_datarootdir_hack='
13011 s&@datadir@&$datadir&g
13012 s&@docdir@&$docdir&g
13013 s&@infodir@&$infodir&g
13014 s&@localedir@&$localedir&g
13015 s&@mandir@&$mandir&g
13016 s&\\\${datarootdir}&$datarootdir&g' ;;
13017 esac
13018 _ACEOF
13019
13020 # Neutralize VPATH when `$srcdir' = `.'.
13021 # Shell code in configure.ac might set extrasub.
13022 # FIXME: do we really want to maintain this feature?
13023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13024 ac_sed_extra="$ac_vpsub
13025 $extrasub
13026 _ACEOF
13027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13028 :t
13029 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13030 s|@configure_input@|$ac_sed_conf_input|;t t
13031 s&@top_builddir@&$ac_top_builddir_sub&;t t
13032 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13033 s&@srcdir@&$ac_srcdir&;t t
13034 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13035 s&@top_srcdir@&$ac_top_srcdir&;t t
13036 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13037 s&@builddir@&$ac_builddir&;t t
13038 s&@abs_builddir@&$ac_abs_builddir&;t t
13039 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13040 s&@INSTALL@&$ac_INSTALL&;t t
13041 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13042 $ac_datarootdir_hack
13043 "
13044 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13045 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13046
13047 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13048 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13049 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13050 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13052 which seems to be undefined. Please make sure it is defined" >&5
13053 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13054 which seems to be undefined. Please make sure it is defined" >&2;}
13055
13056 rm -f "$ac_tmp/stdin"
13057 case $ac_file in
13058 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13059 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13060 esac \
13061 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13062 ;;
13063 :H)
13064 #
13065 # CONFIG_HEADER
13066 #
13067 if test x"$ac_file" != x-; then
13068 {
13069 $as_echo "/* $configure_input */" \
13070 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13071 } >"$ac_tmp/config.h" \
13072 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13073 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13075 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13076 else
13077 rm -f "$ac_file"
13078 mv "$ac_tmp/config.h" "$ac_file" \
13079 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13080 fi
13081 else
13082 $as_echo "/* $configure_input */" \
13083 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13084 || as_fn_error $? "could not create -" "$LINENO" 5
13085 fi
13086 # Compute "$ac_file"'s index in $config_headers.
13087 _am_arg="$ac_file"
13088 _am_stamp_count=1
13089 for _am_header in $config_headers :; do
13090 case $_am_header in
13091 $_am_arg | $_am_arg:* )
13092 break ;;
13093 * )
13094 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13095 esac
13096 done
13097 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13098 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13099 X"$_am_arg" : 'X\(//\)[^/]' \| \
13100 X"$_am_arg" : 'X\(//\)$' \| \
13101 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13102 $as_echo X"$_am_arg" |
13103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13104 s//\1/
13105 q
13106 }
13107 /^X\(\/\/\)[^/].*/{
13108 s//\1/
13109 q
13110 }
13111 /^X\(\/\/\)$/{
13112 s//\1/
13113 q
13114 }
13115 /^X\(\/\).*/{
13116 s//\1/
13117 q
13118 }
13119 s/.*/./; q'`/stamp-h$_am_stamp_count
13120 ;;
13121
13122 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13123 $as_echo "$as_me: executing $ac_file commands" >&6;}
13124 ;;
13125 esac
13126
13127
13128 case $ac_file$ac_mode in
13129 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13130 # Older Autoconf quotes --file arguments for eval, but not when files
13131 # are listed without --file. Let's play safe and only enable the eval
13132 # if we detect the quoting.
13133 # TODO: see whether this extra hack can be removed once we start
13134 # requiring Autoconf 2.70 or later.
13135 case $CONFIG_FILES in #(
13136 *\'*) :
13137 eval set x "$CONFIG_FILES" ;; #(
13138 *) :
13139 set x $CONFIG_FILES ;; #(
13140 *) :
13141 ;;
13142 esac
13143 shift
13144 # Used to flag and report bootstrapping failures.
13145 am_rc=0
13146 for am_mf
13147 do
13148 # Strip MF so we end up with the name of the file.
13149 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
13150 # Check whether this is an Automake generated Makefile which includes
13151 # dependency-tracking related rules and includes.
13152 # Grep'ing the whole file directly is not great: AIX grep has a line
13153 # limit of 2048, but all sed's we know have understand at least 4000.
13154 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13155 || continue
13156 am_dirpart=`$as_dirname -- "$am_mf" ||
13157 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13158 X"$am_mf" : 'X\(//\)[^/]' \| \
13159 X"$am_mf" : 'X\(//\)$' \| \
13160 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13161 $as_echo X"$am_mf" |
13162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13163 s//\1/
13164 q
13165 }
13166 /^X\(\/\/\)[^/].*/{
13167 s//\1/
13168 q
13169 }
13170 /^X\(\/\/\)$/{
13171 s//\1/
13172 q
13173 }
13174 /^X\(\/\).*/{
13175 s//\1/
13176 q
13177 }
13178 s/.*/./; q'`
13179 am_filepart=`$as_basename -- "$am_mf" ||
13180 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13181 X"$am_mf" : 'X\(//\)$' \| \
13182 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13183 $as_echo X/"$am_mf" |
13184 sed '/^.*\/\([^/][^/]*\)\/*$/{
13185 s//\1/
13186 q
13187 }
13188 /^X\/\(\/\/\)$/{
13189 s//\1/
13190 q
13191 }
13192 /^X\/\(\/\).*/{
13193 s//\1/
13194 q
13195 }
13196 s/.*/./; q'`
13197 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13198 && sed -e '/# am--include-marker/d' "$am_filepart" \
13199 | $MAKE -f - am--depfiles" >&5
13200 (cd "$am_dirpart" \
13201 && sed -e '/# am--include-marker/d' "$am_filepart" \
13202 | $MAKE -f - am--depfiles) >&5 2>&5
13203 ac_status=$?
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } || am_rc=$?
13206 done
13207 if test $am_rc -ne 0; then
13208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13210 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13211 for automatic dependency tracking. Try re-running configure with the
13212 '--disable-dependency-tracking' option to at least be able to build
13213 the package (albeit without support for automatic dependency tracking).
13214 See \`config.log' for more details" "$LINENO" 5; }
13215 fi
13216 { am_dirpart=; unset am_dirpart;}
13217 { am_filepart=; unset am_filepart;}
13218 { am_mf=; unset am_mf;}
13219 { am_rc=; unset am_rc;}
13220 rm -f conftest-deps.mk
13221 }
13222 ;;
13223
13224 esac
13225 done # for ac_tag
13226
13227
13228 as_fn_exit 0
13229 _ACEOF
13230 ac_clean_files=$ac_clean_files_save
13231
13232 test $ac_write_fail = 0 ||
13233 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13234
13235
13236 # configure is writing to config.log, and then calls config.status.
13237 # config.status does its own redirection, appending to config.log.
13238 # Unfortunately, on DOS this fails, as config.log is still kept open
13239 # by configure, so config.status won't be able to write to it; its
13240 # output is simply discarded. So we exec the FD to /dev/null,
13241 # effectively closing config.log, so it can be properly (re)opened and
13242 # appended to by config.status. When coming back to configure, we
13243 # need to make the FD available again.
13244 if test "$no_create" != yes; then
13245 ac_cs_success=:
13246 ac_config_status_args=
13247 test "$silent" = yes &&
13248 ac_config_status_args="$ac_config_status_args --quiet"
13249 exec 5>/dev/null
13250 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13251 exec 5>>config.log
13252 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13253 # would make configure fail if this is the last instruction.
13254 $ac_cs_success || as_fn_exit 1
13255 fi
13256 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13258 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13259 fi
13260