ld: fix regressions with rett instructions in sparc tests.
[deliverable/binutils-gdb.git] / gdb / gnulib / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
177 fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198 fi
199 fi
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233 fi
234 exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252 { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261 return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332 else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349 else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459 *)
460 ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484 else
485 as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="import/memmem.c"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
557 #include <stdio.h>
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
560 #endif
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
563 #endif
564 #ifdef STDC_HEADERS
565 # include <stdlib.h>
566 # include <stddef.h>
567 #else
568 # ifdef HAVE_STDLIB_H
569 # include <stdlib.h>
570 # endif
571 #endif
572 #ifdef HAVE_STRING_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574 # include <memory.h>
575 # endif
576 # include <string.h>
577 #endif
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
580 #endif
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
583 #endif
584 #ifdef HAVE_STDINT_H
585 # include <stdint.h>
586 #endif
587 #ifdef HAVE_UNISTD_H
588 # include <unistd.h>
589 #endif"
590
591 ac_func_list=
592 ac_header_list=
593 gl_fnmatch_required=POSIX
594 ac_subst_vars='am__EXEEXT_FALSE
595 am__EXEEXT_TRUE
596 gltests_LTLIBOBJS
597 gltests_LIBOBJS
598 gl_LTLIBOBJS
599 gl_LIBOBJS
600 LTLIBOBJS
601 LIBOBJS
602 LN_S
603 am__fastdepCC_FALSE
604 am__fastdepCC_TRUE
605 CCDEPMODE
606 AMDEPBACKSLASH
607 AMDEP_FALSE
608 AMDEP_TRUE
609 am__quote
610 am__include
611 DEPDIR
612 am__untar
613 am__tar
614 AMTAR
615 am__leading_dot
616 SET_MAKE
617 AWK
618 mkdir_p
619 INSTALL_STRIP_PROGRAM
620 STRIP
621 install_sh
622 MAKEINFO
623 AUTOHEADER
624 AUTOMAKE
625 AUTOCONF
626 ACLOCAL
627 VERSION
628 PACKAGE
629 CYGPATH_W
630 am__isrc
631 INSTALL_DATA
632 INSTALL_SCRIPT
633 INSTALL_PROGRAM
634 LIBGNU_LTLIBDEPS
635 LIBGNU_LIBDEPS
636 gltests_WITNESS
637 REPLACE_TOWLOWER
638 REPLACE_ISWCNTRL
639 HAVE_WCTYPE_H
640 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
641 NEXT_WCTYPE_H
642 HAVE_ISWCNTRL
643 REPLACE_ISWBLANK
644 HAVE_WCTRANS_T
645 HAVE_WCTYPE_T
646 HAVE_ISWBLANK
647 GNULIB_TOWCTRANS
648 GNULIB_WCTRANS
649 GNULIB_ISWCTYPE
650 GNULIB_WCTYPE
651 GNULIB_ISWBLANK
652 HAVE_WINT_T
653 HAVE_FEATURES_H
654 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
655 NEXT_WCHAR_H
656 HAVE_UNISTD_H
657 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
658 NEXT_UNISTD_H
659 UNISTD_H_DEFINES_STRUCT_TIMESPEC
660 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
661 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
662 TIME_H_DEFINES_STRUCT_TIMESPEC
663 NEXT_AS_FIRST_DIRECTIVE_TIME_H
664 NEXT_TIME_H
665 REPLACE_LOCALTIME
666 REPLACE_GMTIME
667 REPLACE_TIMEGM
668 REPLACE_NANOSLEEP
669 REPLACE_MKTIME
670 REPLACE_LOCALTIME_R
671 HAVE_TIMEGM
672 HAVE_STRPTIME
673 HAVE_NANOSLEEP
674 HAVE_DECL_LOCALTIME_R
675 GNULIB_TIME_RZ
676 GNULIB_TIME_R
677 GNULIB_TIMEGM
678 GNULIB_STRPTIME
679 GNULIB_NANOSLEEP
680 GNULIB_MKTIME
681 WINDOWS_64_BIT_OFF_T
682 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
683 NEXT_SYS_TYPES_H
684 MKDIR_P
685 WINDOWS_64_BIT_ST_SIZE
686 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
687 NEXT_SYS_STAT_H
688 NEXT_AS_FIRST_DIRECTIVE_STRING_H
689 NEXT_STRING_H
690 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
691 NEXT_STDLIB_H
692 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
693 NEXT_STDIO_H
694 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
695 NEXT_STDDEF_H
696 GL_GENERATE_STDDEF_H_FALSE
697 GL_GENERATE_STDDEF_H_TRUE
698 STDDEF_H
699 HAVE_WCHAR_T
700 HAVE_MAX_ALIGN_T
701 REPLACE_NULL
702 HAVE__BOOL
703 GL_GENERATE_STDBOOL_H_FALSE
704 GL_GENERATE_STDBOOL_H_TRUE
705 STDBOOL_H
706 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
707 NEXT_SIGNAL_H
708 REPLACE_RAISE
709 REPLACE_PTHREAD_SIGMASK
710 HAVE_SIGHANDLER_T
711 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
712 HAVE_STRUCT_SIGACTION_SA_SIGACTION
713 HAVE_SIGACTION
714 HAVE_SIGINFO_T
715 HAVE_SIGSET_T
716 HAVE_RAISE
717 HAVE_PTHREAD_SIGMASK
718 HAVE_POSIX_SIGNALBLOCKING
719 GNULIB_SIGACTION
720 GNULIB_SIGPROCMASK
721 GNULIB_SIGNAL_H_SIGPIPE
722 GNULIB_RAISE
723 GNULIB_PTHREAD_SIGMASK
724 REPLACE_VSPRINTF
725 REPLACE_VSNPRINTF
726 REPLACE_VPRINTF
727 REPLACE_VFPRINTF
728 REPLACE_VDPRINTF
729 REPLACE_VASPRINTF
730 REPLACE_TMPFILE
731 REPLACE_STDIO_WRITE_FUNCS
732 REPLACE_STDIO_READ_FUNCS
733 REPLACE_SPRINTF
734 REPLACE_SNPRINTF
735 REPLACE_RENAMEAT
736 REPLACE_RENAME
737 REPLACE_REMOVE
738 REPLACE_PRINTF
739 REPLACE_POPEN
740 REPLACE_PERROR
741 REPLACE_OBSTACK_PRINTF
742 REPLACE_GETLINE
743 REPLACE_GETDELIM
744 REPLACE_FTELLO
745 REPLACE_FTELL
746 REPLACE_FSEEKO
747 REPLACE_FSEEK
748 REPLACE_FREOPEN
749 REPLACE_FPURGE
750 REPLACE_FPRINTF
751 REPLACE_FOPEN
752 REPLACE_FFLUSH
753 REPLACE_FDOPEN
754 REPLACE_FCLOSE
755 REPLACE_DPRINTF
756 HAVE_VDPRINTF
757 HAVE_VASPRINTF
758 HAVE_RENAMEAT
759 HAVE_POPEN
760 HAVE_PCLOSE
761 HAVE_FTELLO
762 HAVE_FSEEKO
763 HAVE_DPRINTF
764 HAVE_DECL_VSNPRINTF
765 HAVE_DECL_SNPRINTF
766 HAVE_DECL_OBSTACK_PRINTF
767 HAVE_DECL_GETLINE
768 HAVE_DECL_GETDELIM
769 HAVE_DECL_FTELLO
770 HAVE_DECL_FSEEKO
771 HAVE_DECL_FPURGE
772 GNULIB_VSPRINTF_POSIX
773 GNULIB_VSNPRINTF
774 GNULIB_VPRINTF_POSIX
775 GNULIB_VPRINTF
776 GNULIB_VFPRINTF_POSIX
777 GNULIB_VFPRINTF
778 GNULIB_VDPRINTF
779 GNULIB_VSCANF
780 GNULIB_VFSCANF
781 GNULIB_VASPRINTF
782 GNULIB_TMPFILE
783 GNULIB_STDIO_H_SIGPIPE
784 GNULIB_STDIO_H_NONBLOCKING
785 GNULIB_SPRINTF_POSIX
786 GNULIB_SNPRINTF
787 GNULIB_SCANF
788 GNULIB_RENAMEAT
789 GNULIB_RENAME
790 GNULIB_REMOVE
791 GNULIB_PUTS
792 GNULIB_PUTCHAR
793 GNULIB_PUTC
794 GNULIB_PRINTF_POSIX
795 GNULIB_PRINTF
796 GNULIB_POPEN
797 GNULIB_PERROR
798 GNULIB_PCLOSE
799 GNULIB_OBSTACK_PRINTF_POSIX
800 GNULIB_OBSTACK_PRINTF
801 GNULIB_GETLINE
802 GNULIB_GETDELIM
803 GNULIB_GETCHAR
804 GNULIB_GETC
805 GNULIB_FWRITE
806 GNULIB_FTELLO
807 GNULIB_FTELL
808 GNULIB_FSEEKO
809 GNULIB_FSEEK
810 GNULIB_FSCANF
811 GNULIB_FREOPEN
812 GNULIB_FREAD
813 GNULIB_FPUTS
814 GNULIB_FPUTC
815 GNULIB_FPURGE
816 GNULIB_FPRINTF_POSIX
817 GNULIB_FPRINTF
818 GNULIB_FOPEN
819 GNULIB_FGETS
820 GNULIB_FGETC
821 GNULIB_FFLUSH
822 GNULIB_FDOPEN
823 GNULIB_FCLOSE
824 GNULIB_DPRINTF
825 UNDEFINE_STRTOK_R
826 REPLACE_STRTOK_R
827 REPLACE_STRSIGNAL
828 REPLACE_STRNLEN
829 REPLACE_STRNDUP
830 REPLACE_STRNCAT
831 REPLACE_STRERROR_R
832 REPLACE_STRERROR
833 REPLACE_STRCHRNUL
834 REPLACE_STRCASESTR
835 REPLACE_STRSTR
836 REPLACE_STRDUP
837 REPLACE_STPNCPY
838 REPLACE_MEMMEM
839 REPLACE_MEMCHR
840 HAVE_STRVERSCMP
841 HAVE_DECL_STRSIGNAL
842 HAVE_DECL_STRERROR_R
843 HAVE_DECL_STRTOK_R
844 HAVE_STRCASESTR
845 HAVE_STRSEP
846 HAVE_STRPBRK
847 HAVE_DECL_STRNLEN
848 HAVE_DECL_STRNDUP
849 HAVE_DECL_STRDUP
850 HAVE_STRCHRNUL
851 HAVE_STPNCPY
852 HAVE_STPCPY
853 HAVE_RAWMEMCHR
854 HAVE_DECL_MEMRCHR
855 HAVE_MEMPCPY
856 HAVE_DECL_MEMMEM
857 HAVE_MEMCHR
858 HAVE_FFSLL
859 HAVE_FFSL
860 HAVE_MBSLEN
861 GNULIB_STRVERSCMP
862 GNULIB_STRSIGNAL
863 GNULIB_STRERROR_R
864 GNULIB_STRERROR
865 GNULIB_MBSTOK_R
866 GNULIB_MBSSEP
867 GNULIB_MBSSPN
868 GNULIB_MBSPBRK
869 GNULIB_MBSCSPN
870 GNULIB_MBSCASESTR
871 GNULIB_MBSPCASECMP
872 GNULIB_MBSNCASECMP
873 GNULIB_MBSCASECMP
874 GNULIB_MBSSTR
875 GNULIB_MBSRCHR
876 GNULIB_MBSCHR
877 GNULIB_MBSNLEN
878 GNULIB_MBSLEN
879 GNULIB_STRTOK_R
880 GNULIB_STRCASESTR
881 GNULIB_STRSTR
882 GNULIB_STRSEP
883 GNULIB_STRPBRK
884 GNULIB_STRNLEN
885 GNULIB_STRNDUP
886 GNULIB_STRNCAT
887 GNULIB_STRDUP
888 GNULIB_STRCHRNUL
889 GNULIB_STPNCPY
890 GNULIB_STPCPY
891 GNULIB_RAWMEMCHR
892 GNULIB_MEMRCHR
893 GNULIB_MEMPCPY
894 GNULIB_MEMMEM
895 GNULIB_MEMCHR
896 GNULIB_FFSLL
897 GNULIB_FFSL
898 LOCALE_FR
899 LOCALE_FR_UTF8
900 LOCALE_ZH_CN
901 LOCALE_JA
902 REPLACE_WCSWIDTH
903 REPLACE_WCWIDTH
904 REPLACE_WCSNRTOMBS
905 REPLACE_WCSRTOMBS
906 REPLACE_WCRTOMB
907 REPLACE_MBSNRTOWCS
908 REPLACE_MBSRTOWCS
909 REPLACE_MBRLEN
910 REPLACE_MBRTOWC
911 REPLACE_MBSINIT
912 REPLACE_WCTOB
913 REPLACE_BTOWC
914 REPLACE_MBSTATE_T
915 HAVE_DECL_WCWIDTH
916 HAVE_DECL_WCTOB
917 HAVE_WCSWIDTH
918 HAVE_WCSTOK
919 HAVE_WCSSTR
920 HAVE_WCSPBRK
921 HAVE_WCSSPN
922 HAVE_WCSCSPN
923 HAVE_WCSRCHR
924 HAVE_WCSCHR
925 HAVE_WCSDUP
926 HAVE_WCSXFRM
927 HAVE_WCSCOLL
928 HAVE_WCSNCASECMP
929 HAVE_WCSCASECMP
930 HAVE_WCSNCMP
931 HAVE_WCSCMP
932 HAVE_WCSNCAT
933 HAVE_WCSCAT
934 HAVE_WCPNCPY
935 HAVE_WCSNCPY
936 HAVE_WCPCPY
937 HAVE_WCSCPY
938 HAVE_WCSNLEN
939 HAVE_WCSLEN
940 HAVE_WMEMSET
941 HAVE_WMEMMOVE
942 HAVE_WMEMCPY
943 HAVE_WMEMCMP
944 HAVE_WMEMCHR
945 HAVE_WCSNRTOMBS
946 HAVE_WCSRTOMBS
947 HAVE_WCRTOMB
948 HAVE_MBSNRTOWCS
949 HAVE_MBSRTOWCS
950 HAVE_MBRLEN
951 HAVE_MBRTOWC
952 HAVE_MBSINIT
953 HAVE_BTOWC
954 GNULIB_WCSWIDTH
955 GNULIB_WCSTOK
956 GNULIB_WCSSTR
957 GNULIB_WCSPBRK
958 GNULIB_WCSSPN
959 GNULIB_WCSCSPN
960 GNULIB_WCSRCHR
961 GNULIB_WCSCHR
962 GNULIB_WCSDUP
963 GNULIB_WCSXFRM
964 GNULIB_WCSCOLL
965 GNULIB_WCSNCASECMP
966 GNULIB_WCSCASECMP
967 GNULIB_WCSNCMP
968 GNULIB_WCSCMP
969 GNULIB_WCSNCAT
970 GNULIB_WCSCAT
971 GNULIB_WCPNCPY
972 GNULIB_WCSNCPY
973 GNULIB_WCPCPY
974 GNULIB_WCSCPY
975 GNULIB_WCSNLEN
976 GNULIB_WCSLEN
977 GNULIB_WMEMSET
978 GNULIB_WMEMMOVE
979 GNULIB_WMEMCPY
980 GNULIB_WMEMCMP
981 GNULIB_WMEMCHR
982 GNULIB_WCWIDTH
983 GNULIB_WCSNRTOMBS
984 GNULIB_WCSRTOMBS
985 GNULIB_WCRTOMB
986 GNULIB_MBSNRTOWCS
987 GNULIB_MBSRTOWCS
988 GNULIB_MBRLEN
989 GNULIB_MBRTOWC
990 GNULIB_MBSINIT
991 GNULIB_WCTOB
992 GNULIB_BTOWC
993 NEXT_AS_FIRST_DIRECTIVE_MATH_H
994 NEXT_MATH_H
995 REPLACE_UTIMENSAT
996 REPLACE_STAT
997 REPLACE_MKNOD
998 REPLACE_MKFIFO
999 REPLACE_MKDIR
1000 REPLACE_LSTAT
1001 REPLACE_FUTIMENS
1002 REPLACE_FSTATAT
1003 REPLACE_FSTAT
1004 HAVE_UTIMENSAT
1005 HAVE_MKNODAT
1006 HAVE_MKNOD
1007 HAVE_MKFIFOAT
1008 HAVE_MKFIFO
1009 HAVE_MKDIRAT
1010 HAVE_LSTAT
1011 HAVE_LCHMOD
1012 HAVE_FUTIMENS
1013 HAVE_FSTATAT
1014 HAVE_FCHMODAT
1015 GNULIB_UTIMENSAT
1016 GNULIB_STAT
1017 GNULIB_MKNODAT
1018 GNULIB_MKNOD
1019 GNULIB_MKFIFOAT
1020 GNULIB_MKFIFO
1021 GNULIB_MKDIRAT
1022 GNULIB_LSTAT
1023 GNULIB_LCHMOD
1024 GNULIB_FUTIMENS
1025 GNULIB_FSTATAT
1026 GNULIB_FSTAT
1027 GNULIB_FCHMODAT
1028 LOCALCHARSET_TESTS_ENVIRONMENT
1029 GLIBC21
1030 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1031 NEXT_INTTYPES_H
1032 UINT64_MAX_EQ_ULONG_MAX
1033 UINT32_MAX_LT_UINTMAX_MAX
1034 PRIPTR_PREFIX
1035 PRI_MACROS_BROKEN
1036 INT64_MAX_EQ_LONG_MAX
1037 INT32_MAX_LT_INTMAX_MAX
1038 REPLACE_STRTOUMAX
1039 REPLACE_STRTOIMAX
1040 HAVE_DECL_STRTOUMAX
1041 HAVE_DECL_STRTOIMAX
1042 HAVE_DECL_IMAXDIV
1043 HAVE_DECL_IMAXABS
1044 GNULIB_STRTOUMAX
1045 GNULIB_STRTOIMAX
1046 GNULIB_IMAXDIV
1047 GNULIB_IMAXABS
1048 GL_GENERATE_STDINT_H_FALSE
1049 GL_GENERATE_STDINT_H_TRUE
1050 STDINT_H
1051 HAVE_SYS_INTTYPES_H
1052 HAVE_SYS_BITYPES_H
1053 HAVE_C99_STDINT_H
1054 WINT_T_SUFFIX
1055 WCHAR_T_SUFFIX
1056 SIG_ATOMIC_T_SUFFIX
1057 SIZE_T_SUFFIX
1058 PTRDIFF_T_SUFFIX
1059 HAVE_SIGNED_WINT_T
1060 HAVE_SIGNED_WCHAR_T
1061 HAVE_SIGNED_SIG_ATOMIC_T
1062 BITSIZEOF_WINT_T
1063 BITSIZEOF_WCHAR_T
1064 BITSIZEOF_SIG_ATOMIC_T
1065 BITSIZEOF_SIZE_T
1066 BITSIZEOF_PTRDIFF_T
1067 APPLE_UNIVERSAL_BUILD
1068 HAVE_STDINT_H
1069 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1070 NEXT_STDINT_H
1071 HAVE_SYS_TYPES_H
1072 HAVE_INTTYPES_H
1073 HAVE_WCHAR_H
1074 HAVE_UNSIGNED_LONG_LONG_INT
1075 HAVE_LONG_LONG_INT
1076 GL_GENERATE_LIMITS_H_FALSE
1077 GL_GENERATE_LIMITS_H_TRUE
1078 LIMITS_H
1079 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1080 NEXT_LIMITS_H
1081 HAVE_WINSOCK2_H
1082 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1083 NEXT_SYS_TIME_H
1084 REPLACE_STRUCT_TIMEVAL
1085 REPLACE_GETTIMEOFDAY
1086 HAVE_TIMEZONE_T
1087 HAVE_SYS_TIME_H
1088 HAVE_STRUCT_TIMEVAL
1089 HAVE_GETTIMEOFDAY
1090 GNULIB_GETTIMEOFDAY
1091 FREXPL_LIBM
1092 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1093 FREXP_LIBM
1094 REPLACE_TRUNCL
1095 REPLACE_TRUNCF
1096 REPLACE_TRUNC
1097 REPLACE_SQRTL
1098 REPLACE_SIGNBIT_USING_GCC
1099 REPLACE_SIGNBIT
1100 REPLACE_ROUNDL
1101 REPLACE_ROUNDF
1102 REPLACE_ROUND
1103 REPLACE_REMAINDERL
1104 REPLACE_REMAINDERF
1105 REPLACE_REMAINDER
1106 REPLACE_NAN
1107 REPLACE_MODFL
1108 REPLACE_MODFF
1109 REPLACE_MODF
1110 REPLACE_LOGBL
1111 REPLACE_LOGBF
1112 REPLACE_LOGB
1113 REPLACE_LOG2L
1114 REPLACE_LOG2F
1115 REPLACE_LOG2
1116 REPLACE_LOG1PL
1117 REPLACE_LOG1PF
1118 REPLACE_LOG1P
1119 REPLACE_LOG10L
1120 REPLACE_LOG10F
1121 REPLACE_LOG10
1122 REPLACE_LOGL
1123 REPLACE_LOGF
1124 REPLACE_LOG
1125 REPLACE_LDEXPL
1126 REPLACE_ISNAN
1127 REPLACE_ISINF
1128 REPLACE_ISFINITE
1129 REPLACE_ILOGBF
1130 REPLACE_ILOGB
1131 REPLACE_HYPOTL
1132 REPLACE_HYPOTF
1133 REPLACE_HYPOT
1134 REPLACE_HUGE_VAL
1135 REPLACE_FREXPL
1136 REPLACE_FREXP
1137 REPLACE_FREXPF
1138 REPLACE_FMODL
1139 REPLACE_FMODF
1140 REPLACE_FMOD
1141 REPLACE_FMAL
1142 REPLACE_FMAF
1143 REPLACE_FMA
1144 REPLACE_FLOORL
1145 REPLACE_FLOORF
1146 REPLACE_FLOOR
1147 REPLACE_FABSL
1148 REPLACE_EXP2L
1149 REPLACE_EXP2
1150 REPLACE_EXPM1F
1151 REPLACE_EXPM1
1152 REPLACE_CEILL
1153 REPLACE_CEILF
1154 REPLACE_CEIL
1155 REPLACE_CBRTL
1156 REPLACE_CBRTF
1157 HAVE_DECL_TRUNCL
1158 HAVE_DECL_TRUNCF
1159 HAVE_DECL_TRUNC
1160 HAVE_DECL_TANL
1161 HAVE_DECL_SQRTL
1162 HAVE_DECL_SINL
1163 HAVE_DECL_ROUNDL
1164 HAVE_DECL_ROUNDF
1165 HAVE_DECL_ROUND
1166 HAVE_DECL_RINTF
1167 HAVE_DECL_REMAINDERL
1168 HAVE_DECL_REMAINDER
1169 HAVE_DECL_LOGB
1170 HAVE_DECL_LOG2L
1171 HAVE_DECL_LOG2F
1172 HAVE_DECL_LOG2
1173 HAVE_DECL_LOG10L
1174 HAVE_DECL_LOGL
1175 HAVE_DECL_LDEXPL
1176 HAVE_DECL_FREXPL
1177 HAVE_DECL_FLOORL
1178 HAVE_DECL_FLOORF
1179 HAVE_DECL_EXPM1L
1180 HAVE_DECL_EXP2L
1181 HAVE_DECL_EXP2F
1182 HAVE_DECL_EXP2
1183 HAVE_DECL_EXPL
1184 HAVE_DECL_COSL
1185 HAVE_DECL_COPYSIGNF
1186 HAVE_DECL_CEILL
1187 HAVE_DECL_CEILF
1188 HAVE_DECL_CBRTL
1189 HAVE_DECL_CBRTF
1190 HAVE_DECL_ATANL
1191 HAVE_DECL_ASINL
1192 HAVE_DECL_ACOSL
1193 HAVE_TANHF
1194 HAVE_TANL
1195 HAVE_TANF
1196 HAVE_SQRTL
1197 HAVE_SQRTF
1198 HAVE_SINHF
1199 HAVE_SINL
1200 HAVE_SINF
1201 HAVE_RINTL
1202 HAVE_RINT
1203 HAVE_REMAINDERF
1204 HAVE_REMAINDER
1205 HAVE_POWF
1206 HAVE_MODFL
1207 HAVE_MODFF
1208 HAVE_LOGBL
1209 HAVE_LOGBF
1210 HAVE_LOG1PL
1211 HAVE_LOG1PF
1212 HAVE_LOG1P
1213 HAVE_LOG10L
1214 HAVE_LOG10F
1215 HAVE_LOGL
1216 HAVE_LOGF
1217 HAVE_LDEXPF
1218 HAVE_ISNANL
1219 HAVE_ISNAND
1220 HAVE_ISNANF
1221 HAVE_ILOGBL
1222 HAVE_ILOGBF
1223 HAVE_ILOGB
1224 HAVE_HYPOTL
1225 HAVE_HYPOTF
1226 HAVE_FREXPF
1227 HAVE_FMODL
1228 HAVE_FMODF
1229 HAVE_FMAL
1230 HAVE_FMAF
1231 HAVE_FMA
1232 HAVE_FABSL
1233 HAVE_FABSF
1234 HAVE_EXPM1F
1235 HAVE_EXPM1
1236 HAVE_EXPL
1237 HAVE_EXPF
1238 HAVE_COSHF
1239 HAVE_COSL
1240 HAVE_COSF
1241 HAVE_COPYSIGNL
1242 HAVE_COPYSIGN
1243 HAVE_CBRTL
1244 HAVE_CBRTF
1245 HAVE_CBRT
1246 HAVE_ATAN2F
1247 HAVE_ATANL
1248 HAVE_ATANF
1249 HAVE_ASINL
1250 HAVE_ASINF
1251 HAVE_ACOSL
1252 HAVE_ACOSF
1253 GNULIB_TRUNCL
1254 GNULIB_TRUNCF
1255 GNULIB_TRUNC
1256 GNULIB_TANHF
1257 GNULIB_TANL
1258 GNULIB_TANF
1259 GNULIB_SQRTL
1260 GNULIB_SQRTF
1261 GNULIB_SINHF
1262 GNULIB_SINL
1263 GNULIB_SINF
1264 GNULIB_SIGNBIT
1265 GNULIB_ROUNDL
1266 GNULIB_ROUNDF
1267 GNULIB_ROUND
1268 GNULIB_RINTL
1269 GNULIB_RINTF
1270 GNULIB_RINT
1271 GNULIB_REMAINDERL
1272 GNULIB_REMAINDERF
1273 GNULIB_REMAINDER
1274 GNULIB_POWF
1275 GNULIB_MODFL
1276 GNULIB_MODFF
1277 GNULIB_MODF
1278 GNULIB_LOGBL
1279 GNULIB_LOGBF
1280 GNULIB_LOGB
1281 GNULIB_LOG2L
1282 GNULIB_LOG2F
1283 GNULIB_LOG2
1284 GNULIB_LOG1PL
1285 GNULIB_LOG1PF
1286 GNULIB_LOG1P
1287 GNULIB_LOG10L
1288 GNULIB_LOG10F
1289 GNULIB_LOG10
1290 GNULIB_LOGL
1291 GNULIB_LOGF
1292 GNULIB_LOG
1293 GNULIB_LDEXPL
1294 GNULIB_LDEXPF
1295 GNULIB_ISNANL
1296 GNULIB_ISNAND
1297 GNULIB_ISNANF
1298 GNULIB_ISNAN
1299 GNULIB_ISINF
1300 GNULIB_ISFINITE
1301 GNULIB_ILOGBL
1302 GNULIB_ILOGBF
1303 GNULIB_ILOGB
1304 GNULIB_HYPOTL
1305 GNULIB_HYPOTF
1306 GNULIB_HYPOT
1307 GNULIB_FREXPL
1308 GNULIB_FREXP
1309 GNULIB_FREXPF
1310 GNULIB_FMODL
1311 GNULIB_FMODF
1312 GNULIB_FMOD
1313 GNULIB_FMAL
1314 GNULIB_FMAF
1315 GNULIB_FMA
1316 GNULIB_FLOORL
1317 GNULIB_FLOORF
1318 GNULIB_FLOOR
1319 GNULIB_FABSL
1320 GNULIB_FABSF
1321 GNULIB_EXPM1L
1322 GNULIB_EXPM1F
1323 GNULIB_EXPM1
1324 GNULIB_EXP2L
1325 GNULIB_EXP2F
1326 GNULIB_EXP2
1327 GNULIB_EXPL
1328 GNULIB_EXPF
1329 GNULIB_COSHF
1330 GNULIB_COSL
1331 GNULIB_COSF
1332 GNULIB_COPYSIGNL
1333 GNULIB_COPYSIGNF
1334 GNULIB_COPYSIGN
1335 GNULIB_CEILL
1336 GNULIB_CEILF
1337 GNULIB_CEIL
1338 GNULIB_CBRTL
1339 GNULIB_CBRTF
1340 GNULIB_CBRT
1341 GNULIB_ATAN2F
1342 GNULIB_ATANL
1343 GNULIB_ATANF
1344 GNULIB_ASINL
1345 GNULIB_ASINF
1346 GNULIB_ACOSL
1347 GNULIB_ACOSF
1348 GL_GENERATE_FNMATCH_H_FALSE
1349 GL_GENERATE_FNMATCH_H_TRUE
1350 FNMATCH_H
1351 REPLACE_ITOLD
1352 GL_GENERATE_FLOAT_H_FALSE
1353 GL_GENERATE_FLOAT_H_TRUE
1354 FLOAT_H
1355 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1356 NEXT_FLOAT_H
1357 EOVERFLOW_VALUE
1358 EOVERFLOW_HIDDEN
1359 ENOLINK_VALUE
1360 ENOLINK_HIDDEN
1361 EMULTIHOP_VALUE
1362 EMULTIHOP_HIDDEN
1363 GL_GENERATE_ERRNO_H_FALSE
1364 GL_GENERATE_ERRNO_H_TRUE
1365 ERRNO_H
1366 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1367 NEXT_ERRNO_H
1368 HAVE_DIRENT_H
1369 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1370 NEXT_DIRENT_H
1371 PRAGMA_COLUMNS
1372 PRAGMA_SYSTEM_HEADER
1373 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1374 INCLUDE_NEXT
1375 REPLACE_FDOPENDIR
1376 REPLACE_DIRFD
1377 REPLACE_CLOSEDIR
1378 REPLACE_OPENDIR
1379 HAVE_ALPHASORT
1380 HAVE_SCANDIR
1381 HAVE_FDOPENDIR
1382 HAVE_DECL_FDOPENDIR
1383 HAVE_DECL_DIRFD
1384 HAVE_CLOSEDIR
1385 HAVE_REWINDDIR
1386 HAVE_READDIR
1387 HAVE_OPENDIR
1388 GNULIB_ALPHASORT
1389 GNULIB_SCANDIR
1390 GNULIB_FDOPENDIR
1391 GNULIB_DIRFD
1392 GNULIB_CLOSEDIR
1393 GNULIB_REWINDDIR
1394 GNULIB_READDIR
1395 GNULIB_OPENDIR
1396 pkglibexecdir
1397 runstatedir
1398 lispdir
1399 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1400 UNISTD_H_HAVE_WINSOCK2_H
1401 REPLACE_WRITE
1402 REPLACE_USLEEP
1403 REPLACE_UNLINKAT
1404 REPLACE_UNLINK
1405 REPLACE_TTYNAME_R
1406 REPLACE_SYMLINKAT
1407 REPLACE_SYMLINK
1408 REPLACE_SLEEP
1409 REPLACE_RMDIR
1410 REPLACE_READLINKAT
1411 REPLACE_READLINK
1412 REPLACE_READ
1413 REPLACE_PWRITE
1414 REPLACE_PREAD
1415 REPLACE_LSEEK
1416 REPLACE_LINKAT
1417 REPLACE_LINK
1418 REPLACE_LCHOWN
1419 REPLACE_ISATTY
1420 REPLACE_GETPAGESIZE
1421 REPLACE_GETGROUPS
1422 REPLACE_GETLOGIN_R
1423 REPLACE_GETDTABLESIZE
1424 REPLACE_GETDOMAINNAME
1425 REPLACE_GETCWD
1426 REPLACE_FTRUNCATE
1427 REPLACE_FCHOWNAT
1428 REPLACE_DUP2
1429 REPLACE_DUP
1430 REPLACE_CLOSE
1431 REPLACE_CHOWN
1432 HAVE_SYS_PARAM_H
1433 HAVE_OS_H
1434 HAVE_DECL_TTYNAME_R
1435 HAVE_DECL_SETHOSTNAME
1436 HAVE_DECL_GETUSERSHELL
1437 HAVE_DECL_GETPAGESIZE
1438 HAVE_DECL_GETLOGIN_R
1439 HAVE_DECL_GETDOMAINNAME
1440 HAVE_DECL_FDATASYNC
1441 HAVE_DECL_FCHDIR
1442 HAVE_DECL_ENVIRON
1443 HAVE_USLEEP
1444 HAVE_UNLINKAT
1445 HAVE_SYMLINKAT
1446 HAVE_SYMLINK
1447 HAVE_SLEEP
1448 HAVE_SETHOSTNAME
1449 HAVE_READLINKAT
1450 HAVE_READLINK
1451 HAVE_PWRITE
1452 HAVE_PREAD
1453 HAVE_PIPE2
1454 HAVE_PIPE
1455 HAVE_LINKAT
1456 HAVE_LINK
1457 HAVE_LCHOWN
1458 HAVE_GROUP_MEMBER
1459 HAVE_GETPAGESIZE
1460 HAVE_GETLOGIN
1461 HAVE_GETHOSTNAME
1462 HAVE_GETGROUPS
1463 HAVE_GETDTABLESIZE
1464 HAVE_FTRUNCATE
1465 HAVE_FSYNC
1466 HAVE_FDATASYNC
1467 HAVE_FCHOWNAT
1468 HAVE_FCHDIR
1469 HAVE_FACCESSAT
1470 HAVE_EUIDACCESS
1471 HAVE_DUP3
1472 HAVE_DUP2
1473 HAVE_CHOWN
1474 GNULIB_WRITE
1475 GNULIB_USLEEP
1476 GNULIB_UNLINKAT
1477 GNULIB_UNLINK
1478 GNULIB_UNISTD_H_SIGPIPE
1479 GNULIB_UNISTD_H_NONBLOCKING
1480 GNULIB_TTYNAME_R
1481 GNULIB_SYMLINKAT
1482 GNULIB_SYMLINK
1483 GNULIB_SLEEP
1484 GNULIB_SETHOSTNAME
1485 GNULIB_RMDIR
1486 GNULIB_READLINKAT
1487 GNULIB_READLINK
1488 GNULIB_READ
1489 GNULIB_PWRITE
1490 GNULIB_PREAD
1491 GNULIB_PIPE2
1492 GNULIB_PIPE
1493 GNULIB_LSEEK
1494 GNULIB_LINKAT
1495 GNULIB_LINK
1496 GNULIB_LCHOWN
1497 GNULIB_ISATTY
1498 GNULIB_GROUP_MEMBER
1499 GNULIB_GETUSERSHELL
1500 GNULIB_GETPAGESIZE
1501 GNULIB_GETLOGIN_R
1502 GNULIB_GETLOGIN
1503 GNULIB_GETHOSTNAME
1504 GNULIB_GETGROUPS
1505 GNULIB_GETDTABLESIZE
1506 GNULIB_GETDOMAINNAME
1507 GNULIB_GETCWD
1508 GNULIB_FTRUNCATE
1509 GNULIB_FSYNC
1510 GNULIB_FDATASYNC
1511 GNULIB_FCHOWNAT
1512 GNULIB_FCHDIR
1513 GNULIB_FACCESSAT
1514 GNULIB_EUIDACCESS
1515 GNULIB_ENVIRON
1516 GNULIB_DUP3
1517 GNULIB_DUP2
1518 GNULIB_DUP
1519 GNULIB_CLOSE
1520 GNULIB_CHOWN
1521 GNULIB_CHDIR
1522 REPLACE_WCTOMB
1523 REPLACE_UNSETENV
1524 REPLACE_STRTOD
1525 REPLACE_SETENV
1526 REPLACE_REALPATH
1527 REPLACE_REALLOC
1528 REPLACE_RANDOM_R
1529 REPLACE_QSORT_R
1530 REPLACE_PUTENV
1531 REPLACE_PTSNAME_R
1532 REPLACE_PTSNAME
1533 REPLACE_MKSTEMP
1534 REPLACE_MBTOWC
1535 REPLACE_MALLOC
1536 REPLACE_CANONICALIZE_FILE_NAME
1537 REPLACE_CALLOC
1538 HAVE_DECL_UNSETENV
1539 HAVE_UNLOCKPT
1540 HAVE_SYS_LOADAVG_H
1541 HAVE_STRUCT_RANDOM_DATA
1542 HAVE_STRTOULL
1543 HAVE_STRTOLL
1544 HAVE_STRTOD
1545 HAVE_DECL_SETENV
1546 HAVE_SETENV
1547 HAVE_SECURE_GETENV
1548 HAVE_RPMATCH
1549 HAVE_REALPATH
1550 HAVE_RANDOM_R
1551 HAVE_RANDOM_H
1552 HAVE_RANDOM
1553 HAVE_QSORT_R
1554 HAVE_PTSNAME_R
1555 HAVE_PTSNAME
1556 HAVE_POSIX_OPENPT
1557 HAVE_MKSTEMPS
1558 HAVE_MKSTEMP
1559 HAVE_MKOSTEMPS
1560 HAVE_MKOSTEMP
1561 HAVE_MKDTEMP
1562 HAVE_GRANTPT
1563 HAVE_GETSUBOPT
1564 HAVE_DECL_GETLOADAVG
1565 HAVE_CANONICALIZE_FILE_NAME
1566 HAVE_ATOLL
1567 HAVE__EXIT
1568 GNULIB_WCTOMB
1569 GNULIB_UNSETENV
1570 GNULIB_UNLOCKPT
1571 GNULIB_SYSTEM_POSIX
1572 GNULIB_STRTOULL
1573 GNULIB_STRTOLL
1574 GNULIB_STRTOD
1575 GNULIB_SETENV
1576 GNULIB_SECURE_GETENV
1577 GNULIB_RPMATCH
1578 GNULIB_REALPATH
1579 GNULIB_REALLOC_POSIX
1580 GNULIB_RANDOM_R
1581 GNULIB_RANDOM
1582 GNULIB_QSORT_R
1583 GNULIB_PUTENV
1584 GNULIB_PTSNAME_R
1585 GNULIB_PTSNAME
1586 GNULIB_POSIX_OPENPT
1587 GNULIB_MKSTEMPS
1588 GNULIB_MKSTEMP
1589 GNULIB_MKOSTEMPS
1590 GNULIB_MKOSTEMP
1591 GNULIB_MKDTEMP
1592 GNULIB_MBTOWC
1593 GNULIB_MALLOC_POSIX
1594 GNULIB_GRANTPT
1595 GNULIB_GETSUBOPT
1596 GNULIB_GETLOADAVG
1597 GNULIB_CANONICALIZE_FILE_NAME
1598 GNULIB_CALLOC_POSIX
1599 GNULIB_ATOLL
1600 GNULIB__EXIT
1601 GL_GENERATE_ALLOCA_H_FALSE
1602 GL_GENERATE_ALLOCA_H_TRUE
1603 ALLOCA_H
1604 ALLOCA
1605 GL_COND_LIBTOOL_FALSE
1606 GL_COND_LIBTOOL_TRUE
1607 target_os
1608 target_vendor
1609 target_cpu
1610 target
1611 host_os
1612 host_vendor
1613 host_cpu
1614 host
1615 build_os
1616 build_vendor
1617 build_cpu
1618 build
1619 RANLIB
1620 ARFLAGS
1621 AR
1622 EGREP
1623 GREP
1624 CPP
1625 OBJEXT
1626 EXEEXT
1627 ac_ct_CC
1628 CPPFLAGS
1629 LDFLAGS
1630 CFLAGS
1631 CC
1632 MAINT
1633 MAINTAINER_MODE_FALSE
1634 MAINTAINER_MODE_TRUE
1635 target_alias
1636 host_alias
1637 build_alias
1638 LIBS
1639 ECHO_T
1640 ECHO_N
1641 ECHO_C
1642 DEFS
1643 mandir
1644 localedir
1645 libdir
1646 psdir
1647 pdfdir
1648 dvidir
1649 htmldir
1650 infodir
1651 docdir
1652 oldincludedir
1653 includedir
1654 localstatedir
1655 sharedstatedir
1656 sysconfdir
1657 datadir
1658 datarootdir
1659 libexecdir
1660 sbindir
1661 bindir
1662 program_transform_name
1663 prefix
1664 exec_prefix
1665 PACKAGE_URL
1666 PACKAGE_BUGREPORT
1667 PACKAGE_STRING
1668 PACKAGE_VERSION
1669 PACKAGE_TARNAME
1670 PACKAGE_NAME
1671 PATH_SEPARATOR
1672 SHELL'
1673 ac_subst_files=''
1674 ac_user_opts='
1675 enable_option_checking
1676 enable_maintainer_mode
1677 enable_largefile
1678 enable_dependency_tracking
1679 '
1680 ac_precious_vars='build_alias
1681 host_alias
1682 target_alias
1683 CC
1684 CFLAGS
1685 LDFLAGS
1686 LIBS
1687 CPPFLAGS
1688 CPP'
1689
1690
1691 # Initialize some variables set by options.
1692 ac_init_help=
1693 ac_init_version=false
1694 ac_unrecognized_opts=
1695 ac_unrecognized_sep=
1696 # The variables have the same names as the options, with
1697 # dashes changed to underlines.
1698 cache_file=/dev/null
1699 exec_prefix=NONE
1700 no_create=
1701 no_recursion=
1702 prefix=NONE
1703 program_prefix=NONE
1704 program_suffix=NONE
1705 program_transform_name=s,x,x,
1706 silent=
1707 site=
1708 srcdir=
1709 verbose=
1710 x_includes=NONE
1711 x_libraries=NONE
1712
1713 # Installation directory options.
1714 # These are left unexpanded so users can "make install exec_prefix=/foo"
1715 # and all the variables that are supposed to be based on exec_prefix
1716 # by default will actually change.
1717 # Use braces instead of parens because sh, perl, etc. also accept them.
1718 # (The list follows the same order as the GNU Coding Standards.)
1719 bindir='${exec_prefix}/bin'
1720 sbindir='${exec_prefix}/sbin'
1721 libexecdir='${exec_prefix}/libexec'
1722 datarootdir='${prefix}/share'
1723 datadir='${datarootdir}'
1724 sysconfdir='${prefix}/etc'
1725 sharedstatedir='${prefix}/com'
1726 localstatedir='${prefix}/var'
1727 includedir='${prefix}/include'
1728 oldincludedir='/usr/include'
1729 docdir='${datarootdir}/doc/${PACKAGE}'
1730 infodir='${datarootdir}/info'
1731 htmldir='${docdir}'
1732 dvidir='${docdir}'
1733 pdfdir='${docdir}'
1734 psdir='${docdir}'
1735 libdir='${exec_prefix}/lib'
1736 localedir='${datarootdir}/locale'
1737 mandir='${datarootdir}/man'
1738
1739 ac_prev=
1740 ac_dashdash=
1741 for ac_option
1742 do
1743 # If the previous option needs an argument, assign it.
1744 if test -n "$ac_prev"; then
1745 eval $ac_prev=\$ac_option
1746 ac_prev=
1747 continue
1748 fi
1749
1750 case $ac_option in
1751 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1752 *) ac_optarg=yes ;;
1753 esac
1754
1755 # Accept the important Cygnus configure options, so we can diagnose typos.
1756
1757 case $ac_dashdash$ac_option in
1758 --)
1759 ac_dashdash=yes ;;
1760
1761 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1762 ac_prev=bindir ;;
1763 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1764 bindir=$ac_optarg ;;
1765
1766 -build | --build | --buil | --bui | --bu)
1767 ac_prev=build_alias ;;
1768 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1769 build_alias=$ac_optarg ;;
1770
1771 -cache-file | --cache-file | --cache-fil | --cache-fi \
1772 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1773 ac_prev=cache_file ;;
1774 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1775 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1776 cache_file=$ac_optarg ;;
1777
1778 --config-cache | -C)
1779 cache_file=config.cache ;;
1780
1781 -datadir | --datadir | --datadi | --datad)
1782 ac_prev=datadir ;;
1783 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1784 datadir=$ac_optarg ;;
1785
1786 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1787 | --dataroo | --dataro | --datar)
1788 ac_prev=datarootdir ;;
1789 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1790 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1791 datarootdir=$ac_optarg ;;
1792
1793 -disable-* | --disable-*)
1794 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1795 # Reject names that are not valid shell variable names.
1796 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1797 as_fn_error "invalid feature name: $ac_useropt"
1798 ac_useropt_orig=$ac_useropt
1799 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1800 case $ac_user_opts in
1801 *"
1802 "enable_$ac_useropt"
1803 "*) ;;
1804 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1805 ac_unrecognized_sep=', ';;
1806 esac
1807 eval enable_$ac_useropt=no ;;
1808
1809 -docdir | --docdir | --docdi | --doc | --do)
1810 ac_prev=docdir ;;
1811 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1812 docdir=$ac_optarg ;;
1813
1814 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1815 ac_prev=dvidir ;;
1816 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1817 dvidir=$ac_optarg ;;
1818
1819 -enable-* | --enable-*)
1820 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1821 # Reject names that are not valid shell variable names.
1822 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1823 as_fn_error "invalid feature name: $ac_useropt"
1824 ac_useropt_orig=$ac_useropt
1825 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1826 case $ac_user_opts in
1827 *"
1828 "enable_$ac_useropt"
1829 "*) ;;
1830 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1831 ac_unrecognized_sep=', ';;
1832 esac
1833 eval enable_$ac_useropt=\$ac_optarg ;;
1834
1835 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1836 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1837 | --exec | --exe | --ex)
1838 ac_prev=exec_prefix ;;
1839 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1840 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1841 | --exec=* | --exe=* | --ex=*)
1842 exec_prefix=$ac_optarg ;;
1843
1844 -gas | --gas | --ga | --g)
1845 # Obsolete; use --with-gas.
1846 with_gas=yes ;;
1847
1848 -help | --help | --hel | --he | -h)
1849 ac_init_help=long ;;
1850 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1851 ac_init_help=recursive ;;
1852 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1853 ac_init_help=short ;;
1854
1855 -host | --host | --hos | --ho)
1856 ac_prev=host_alias ;;
1857 -host=* | --host=* | --hos=* | --ho=*)
1858 host_alias=$ac_optarg ;;
1859
1860 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1861 ac_prev=htmldir ;;
1862 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1863 | --ht=*)
1864 htmldir=$ac_optarg ;;
1865
1866 -includedir | --includedir | --includedi | --included | --include \
1867 | --includ | --inclu | --incl | --inc)
1868 ac_prev=includedir ;;
1869 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1870 | --includ=* | --inclu=* | --incl=* | --inc=*)
1871 includedir=$ac_optarg ;;
1872
1873 -infodir | --infodir | --infodi | --infod | --info | --inf)
1874 ac_prev=infodir ;;
1875 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1876 infodir=$ac_optarg ;;
1877
1878 -libdir | --libdir | --libdi | --libd)
1879 ac_prev=libdir ;;
1880 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1881 libdir=$ac_optarg ;;
1882
1883 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1884 | --libexe | --libex | --libe)
1885 ac_prev=libexecdir ;;
1886 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1887 | --libexe=* | --libex=* | --libe=*)
1888 libexecdir=$ac_optarg ;;
1889
1890 -localedir | --localedir | --localedi | --localed | --locale)
1891 ac_prev=localedir ;;
1892 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1893 localedir=$ac_optarg ;;
1894
1895 -localstatedir | --localstatedir | --localstatedi | --localstated \
1896 | --localstate | --localstat | --localsta | --localst | --locals)
1897 ac_prev=localstatedir ;;
1898 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1899 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1900 localstatedir=$ac_optarg ;;
1901
1902 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1903 ac_prev=mandir ;;
1904 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1905 mandir=$ac_optarg ;;
1906
1907 -nfp | --nfp | --nf)
1908 # Obsolete; use --without-fp.
1909 with_fp=no ;;
1910
1911 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1912 | --no-cr | --no-c | -n)
1913 no_create=yes ;;
1914
1915 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1916 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1917 no_recursion=yes ;;
1918
1919 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1920 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1921 | --oldin | --oldi | --old | --ol | --o)
1922 ac_prev=oldincludedir ;;
1923 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1924 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1925 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1926 oldincludedir=$ac_optarg ;;
1927
1928 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1929 ac_prev=prefix ;;
1930 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1931 prefix=$ac_optarg ;;
1932
1933 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1934 | --program-pre | --program-pr | --program-p)
1935 ac_prev=program_prefix ;;
1936 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1937 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1938 program_prefix=$ac_optarg ;;
1939
1940 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1941 | --program-suf | --program-su | --program-s)
1942 ac_prev=program_suffix ;;
1943 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1944 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1945 program_suffix=$ac_optarg ;;
1946
1947 -program-transform-name | --program-transform-name \
1948 | --program-transform-nam | --program-transform-na \
1949 | --program-transform-n | --program-transform- \
1950 | --program-transform | --program-transfor \
1951 | --program-transfo | --program-transf \
1952 | --program-trans | --program-tran \
1953 | --progr-tra | --program-tr | --program-t)
1954 ac_prev=program_transform_name ;;
1955 -program-transform-name=* | --program-transform-name=* \
1956 | --program-transform-nam=* | --program-transform-na=* \
1957 | --program-transform-n=* | --program-transform-=* \
1958 | --program-transform=* | --program-transfor=* \
1959 | --program-transfo=* | --program-transf=* \
1960 | --program-trans=* | --program-tran=* \
1961 | --progr-tra=* | --program-tr=* | --program-t=*)
1962 program_transform_name=$ac_optarg ;;
1963
1964 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1965 ac_prev=pdfdir ;;
1966 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1967 pdfdir=$ac_optarg ;;
1968
1969 -psdir | --psdir | --psdi | --psd | --ps)
1970 ac_prev=psdir ;;
1971 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1972 psdir=$ac_optarg ;;
1973
1974 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1975 | -silent | --silent | --silen | --sile | --sil)
1976 silent=yes ;;
1977
1978 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1979 ac_prev=sbindir ;;
1980 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1981 | --sbi=* | --sb=*)
1982 sbindir=$ac_optarg ;;
1983
1984 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1985 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1986 | --sharedst | --shareds | --shared | --share | --shar \
1987 | --sha | --sh)
1988 ac_prev=sharedstatedir ;;
1989 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1990 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1991 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1992 | --sha=* | --sh=*)
1993 sharedstatedir=$ac_optarg ;;
1994
1995 -site | --site | --sit)
1996 ac_prev=site ;;
1997 -site=* | --site=* | --sit=*)
1998 site=$ac_optarg ;;
1999
2000 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2001 ac_prev=srcdir ;;
2002 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2003 srcdir=$ac_optarg ;;
2004
2005 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2006 | --syscon | --sysco | --sysc | --sys | --sy)
2007 ac_prev=sysconfdir ;;
2008 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2009 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2010 sysconfdir=$ac_optarg ;;
2011
2012 -target | --target | --targe | --targ | --tar | --ta | --t)
2013 ac_prev=target_alias ;;
2014 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2015 target_alias=$ac_optarg ;;
2016
2017 -v | -verbose | --verbose | --verbos | --verbo | --verb)
2018 verbose=yes ;;
2019
2020 -version | --version | --versio | --versi | --vers | -V)
2021 ac_init_version=: ;;
2022
2023 -with-* | --with-*)
2024 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2025 # Reject names that are not valid shell variable names.
2026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2027 as_fn_error "invalid package name: $ac_useropt"
2028 ac_useropt_orig=$ac_useropt
2029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2030 case $ac_user_opts in
2031 *"
2032 "with_$ac_useropt"
2033 "*) ;;
2034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2035 ac_unrecognized_sep=', ';;
2036 esac
2037 eval with_$ac_useropt=\$ac_optarg ;;
2038
2039 -without-* | --without-*)
2040 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2041 # Reject names that are not valid shell variable names.
2042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2043 as_fn_error "invalid package name: $ac_useropt"
2044 ac_useropt_orig=$ac_useropt
2045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2046 case $ac_user_opts in
2047 *"
2048 "with_$ac_useropt"
2049 "*) ;;
2050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2051 ac_unrecognized_sep=', ';;
2052 esac
2053 eval with_$ac_useropt=no ;;
2054
2055 --x)
2056 # Obsolete; use --with-x.
2057 with_x=yes ;;
2058
2059 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2060 | --x-incl | --x-inc | --x-in | --x-i)
2061 ac_prev=x_includes ;;
2062 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2063 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2064 x_includes=$ac_optarg ;;
2065
2066 -x-libraries | --x-libraries | --x-librarie | --x-librari \
2067 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2068 ac_prev=x_libraries ;;
2069 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2070 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2071 x_libraries=$ac_optarg ;;
2072
2073 -*) as_fn_error "unrecognized option: \`$ac_option'
2074 Try \`$0 --help' for more information."
2075 ;;
2076
2077 *=*)
2078 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2079 # Reject names that are not valid shell variable names.
2080 case $ac_envvar in #(
2081 '' | [0-9]* | *[!_$as_cr_alnum]* )
2082 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
2083 esac
2084 eval $ac_envvar=\$ac_optarg
2085 export $ac_envvar ;;
2086
2087 *)
2088 # FIXME: should be removed in autoconf 3.0.
2089 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2090 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2091 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2092 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
2093 ;;
2094
2095 esac
2096 done
2097
2098 if test -n "$ac_prev"; then
2099 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2100 as_fn_error "missing argument to $ac_option"
2101 fi
2102
2103 if test -n "$ac_unrecognized_opts"; then
2104 case $enable_option_checking in
2105 no) ;;
2106 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
2107 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2108 esac
2109 fi
2110
2111 # Check all directory arguments for consistency.
2112 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2113 datadir sysconfdir sharedstatedir localstatedir includedir \
2114 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2115 libdir localedir mandir
2116 do
2117 eval ac_val=\$$ac_var
2118 # Remove trailing slashes.
2119 case $ac_val in
2120 */ )
2121 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2122 eval $ac_var=\$ac_val;;
2123 esac
2124 # Be sure to have absolute directory names.
2125 case $ac_val in
2126 [\\/$]* | ?:[\\/]* ) continue;;
2127 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2128 esac
2129 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
2130 done
2131
2132 # There might be people who depend on the old broken behavior: `$host'
2133 # used to hold the argument of --host etc.
2134 # FIXME: To remove some day.
2135 build=$build_alias
2136 host=$host_alias
2137 target=$target_alias
2138
2139 # FIXME: To remove some day.
2140 if test "x$host_alias" != x; then
2141 if test "x$build_alias" = x; then
2142 cross_compiling=maybe
2143 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2144 If a cross compiler is detected then cross compile mode will be used." >&2
2145 elif test "x$build_alias" != "x$host_alias"; then
2146 cross_compiling=yes
2147 fi
2148 fi
2149
2150 ac_tool_prefix=
2151 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2152
2153 test "$silent" = yes && exec 6>/dev/null
2154
2155
2156 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2157 ac_ls_di=`ls -di .` &&
2158 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2159 as_fn_error "working directory cannot be determined"
2160 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2161 as_fn_error "pwd does not report name of working directory"
2162
2163
2164 # Find the source files, if location was not specified.
2165 if test -z "$srcdir"; then
2166 ac_srcdir_defaulted=yes
2167 # Try the directory containing this script, then the parent directory.
2168 ac_confdir=`$as_dirname -- "$as_myself" ||
2169 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2170 X"$as_myself" : 'X\(//\)[^/]' \| \
2171 X"$as_myself" : 'X\(//\)$' \| \
2172 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2173 $as_echo X"$as_myself" |
2174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2175 s//\1/
2176 q
2177 }
2178 /^X\(\/\/\)[^/].*/{
2179 s//\1/
2180 q
2181 }
2182 /^X\(\/\/\)$/{
2183 s//\1/
2184 q
2185 }
2186 /^X\(\/\).*/{
2187 s//\1/
2188 q
2189 }
2190 s/.*/./; q'`
2191 srcdir=$ac_confdir
2192 if test ! -r "$srcdir/$ac_unique_file"; then
2193 srcdir=..
2194 fi
2195 else
2196 ac_srcdir_defaulted=no
2197 fi
2198 if test ! -r "$srcdir/$ac_unique_file"; then
2199 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2200 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
2201 fi
2202 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2203 ac_abs_confdir=`(
2204 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2205 pwd)`
2206 # When building in place, set srcdir=.
2207 if test "$ac_abs_confdir" = "$ac_pwd"; then
2208 srcdir=.
2209 fi
2210 # Remove unnecessary trailing slashes from srcdir.
2211 # Double slashes in file names in object file debugging info
2212 # mess up M-x gdb in Emacs.
2213 case $srcdir in
2214 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2215 esac
2216 for ac_var in $ac_precious_vars; do
2217 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2218 eval ac_env_${ac_var}_value=\$${ac_var}
2219 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2220 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2221 done
2222
2223 #
2224 # Report the --help message.
2225 #
2226 if test "$ac_init_help" = "long"; then
2227 # Omit some internal or obsolete options to make the list less imposing.
2228 # This message is too long to be a string in the A/UX 3.1 sh.
2229 cat <<_ACEOF
2230 \`configure' configures this package to adapt to many kinds of systems.
2231
2232 Usage: $0 [OPTION]... [VAR=VALUE]...
2233
2234 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2235 VAR=VALUE. See below for descriptions of some of the useful variables.
2236
2237 Defaults for the options are specified in brackets.
2238
2239 Configuration:
2240 -h, --help display this help and exit
2241 --help=short display options specific to this package
2242 --help=recursive display the short help of all the included packages
2243 -V, --version display version information and exit
2244 -q, --quiet, --silent do not print \`checking...' messages
2245 --cache-file=FILE cache test results in FILE [disabled]
2246 -C, --config-cache alias for \`--cache-file=config.cache'
2247 -n, --no-create do not create output files
2248 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2249
2250 Installation directories:
2251 --prefix=PREFIX install architecture-independent files in PREFIX
2252 [$ac_default_prefix]
2253 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2254 [PREFIX]
2255
2256 By default, \`make install' will install all the files in
2257 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2258 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2259 for instance \`--prefix=\$HOME'.
2260
2261 For better control, use the options below.
2262
2263 Fine tuning of the installation directories:
2264 --bindir=DIR user executables [EPREFIX/bin]
2265 --sbindir=DIR system admin executables [EPREFIX/sbin]
2266 --libexecdir=DIR program executables [EPREFIX/libexec]
2267 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2268 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2269 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2270 --libdir=DIR object code libraries [EPREFIX/lib]
2271 --includedir=DIR C header files [PREFIX/include]
2272 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2273 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2274 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2275 --infodir=DIR info documentation [DATAROOTDIR/info]
2276 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2277 --mandir=DIR man documentation [DATAROOTDIR/man]
2278 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2279 --htmldir=DIR html documentation [DOCDIR]
2280 --dvidir=DIR dvi documentation [DOCDIR]
2281 --pdfdir=DIR pdf documentation [DOCDIR]
2282 --psdir=DIR ps documentation [DOCDIR]
2283 _ACEOF
2284
2285 cat <<\_ACEOF
2286
2287 Program names:
2288 --program-prefix=PREFIX prepend PREFIX to installed program names
2289 --program-suffix=SUFFIX append SUFFIX to installed program names
2290 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2291
2292 System types:
2293 --build=BUILD configure for building on BUILD [guessed]
2294 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2295 --target=TARGET configure for building compilers for TARGET [HOST]
2296 _ACEOF
2297 fi
2298
2299 if test -n "$ac_init_help"; then
2300
2301 cat <<\_ACEOF
2302
2303 Optional Features:
2304 --disable-option-checking ignore unrecognized --enable/--with options
2305 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2306 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2307 --enable-maintainer-mode enable make rules and dependencies not useful
2308 (and sometimes confusing) to the casual installer
2309 --disable-largefile omit support for large files
2310 --disable-dependency-tracking speeds up one-time build
2311 --enable-dependency-tracking do not reject slow dependency extractors
2312
2313 Some influential environment variables:
2314 CC C compiler command
2315 CFLAGS C compiler flags
2316 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2317 nonstandard directory <lib dir>
2318 LIBS libraries to pass to the linker, e.g. -l<library>
2319 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2320 you have headers in a nonstandard directory <include dir>
2321 CPP C preprocessor
2322
2323 Use these variables to override the choices made by `configure' or to help
2324 it to find libraries and programs with nonstandard names/locations.
2325
2326 Report bugs to the package provider.
2327 _ACEOF
2328 ac_status=$?
2329 fi
2330
2331 if test "$ac_init_help" = "recursive"; then
2332 # If there are subdirs, report their specific --help.
2333 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2334 test -d "$ac_dir" ||
2335 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2336 continue
2337 ac_builddir=.
2338
2339 case "$ac_dir" in
2340 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2341 *)
2342 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2343 # A ".." for each directory in $ac_dir_suffix.
2344 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2345 case $ac_top_builddir_sub in
2346 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2347 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2348 esac ;;
2349 esac
2350 ac_abs_top_builddir=$ac_pwd
2351 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2352 # for backward compatibility:
2353 ac_top_builddir=$ac_top_build_prefix
2354
2355 case $srcdir in
2356 .) # We are building in place.
2357 ac_srcdir=.
2358 ac_top_srcdir=$ac_top_builddir_sub
2359 ac_abs_top_srcdir=$ac_pwd ;;
2360 [\\/]* | ?:[\\/]* ) # Absolute name.
2361 ac_srcdir=$srcdir$ac_dir_suffix;
2362 ac_top_srcdir=$srcdir
2363 ac_abs_top_srcdir=$srcdir ;;
2364 *) # Relative name.
2365 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2366 ac_top_srcdir=$ac_top_build_prefix$srcdir
2367 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2368 esac
2369 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2370
2371 cd "$ac_dir" || { ac_status=$?; continue; }
2372 # Check for guested configure.
2373 if test -f "$ac_srcdir/configure.gnu"; then
2374 echo &&
2375 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2376 elif test -f "$ac_srcdir/configure"; then
2377 echo &&
2378 $SHELL "$ac_srcdir/configure" --help=recursive
2379 else
2380 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2381 fi || ac_status=$?
2382 cd "$ac_pwd" || { ac_status=$?; break; }
2383 done
2384 fi
2385
2386 test -n "$ac_init_help" && exit $ac_status
2387 if $ac_init_version; then
2388 cat <<\_ACEOF
2389 configure
2390 generated by GNU Autoconf 2.64
2391
2392 Copyright (C) 2009 Free Software Foundation, Inc.
2393 This configure script is free software; the Free Software Foundation
2394 gives unlimited permission to copy, distribute and modify it.
2395 _ACEOF
2396 exit
2397 fi
2398
2399 ## ------------------------ ##
2400 ## Autoconf initialization. ##
2401 ## ------------------------ ##
2402
2403 # ac_fn_c_try_compile LINENO
2404 # --------------------------
2405 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2406 ac_fn_c_try_compile ()
2407 {
2408 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409 rm -f conftest.$ac_objext
2410 if { { ac_try="$ac_compile"
2411 case "(($ac_try" in
2412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413 *) ac_try_echo=$ac_try;;
2414 esac
2415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2416 $as_echo "$ac_try_echo"; } >&5
2417 (eval "$ac_compile") 2>conftest.err
2418 ac_status=$?
2419 if test -s conftest.err; then
2420 grep -v '^ *+' conftest.err >conftest.er1
2421 cat conftest.er1 >&5
2422 mv -f conftest.er1 conftest.err
2423 fi
2424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2425 test $ac_status = 0; } && {
2426 test -z "$ac_c_werror_flag" ||
2427 test ! -s conftest.err
2428 } && test -s conftest.$ac_objext; then :
2429 ac_retval=0
2430 else
2431 $as_echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.$ac_ext >&5
2433
2434 ac_retval=1
2435 fi
2436 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2437 return $ac_retval
2438
2439 } # ac_fn_c_try_compile
2440
2441 # ac_fn_c_try_cpp LINENO
2442 # ----------------------
2443 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2444 ac_fn_c_try_cpp ()
2445 {
2446 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2447 if { { ac_try="$ac_cpp conftest.$ac_ext"
2448 case "(($ac_try" in
2449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450 *) ac_try_echo=$ac_try;;
2451 esac
2452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2453 $as_echo "$ac_try_echo"; } >&5
2454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2455 ac_status=$?
2456 if test -s conftest.err; then
2457 grep -v '^ *+' conftest.err >conftest.er1
2458 cat conftest.er1 >&5
2459 mv -f conftest.er1 conftest.err
2460 fi
2461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2462 test $ac_status = 0; } >/dev/null && {
2463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2464 test ! -s conftest.err
2465 }; then :
2466 ac_retval=0
2467 else
2468 $as_echo "$as_me: failed program was:" >&5
2469 sed 's/^/| /' conftest.$ac_ext >&5
2470
2471 ac_retval=1
2472 fi
2473 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2474 return $ac_retval
2475
2476 } # ac_fn_c_try_cpp
2477
2478 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2479 # -------------------------------------------------------
2480 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2481 # the include files in INCLUDES and setting the cache variable VAR
2482 # accordingly.
2483 ac_fn_c_check_header_mongrel ()
2484 {
2485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2486 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2488 $as_echo_n "checking for $2... " >&6; }
2489 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2490 $as_echo_n "(cached) " >&6
2491 fi
2492 eval ac_res=\$$3
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2494 $as_echo "$ac_res" >&6; }
2495 else
2496 # Is the header compilable?
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2498 $as_echo_n "checking $2 usability... " >&6; }
2499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2500 /* end confdefs.h. */
2501 $4
2502 #include <$2>
2503 _ACEOF
2504 if ac_fn_c_try_compile "$LINENO"; then :
2505 ac_header_compiler=yes
2506 else
2507 ac_header_compiler=no
2508 fi
2509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2511 $as_echo "$ac_header_compiler" >&6; }
2512
2513 # Is the header present?
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2515 $as_echo_n "checking $2 presence... " >&6; }
2516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2517 /* end confdefs.h. */
2518 #include <$2>
2519 _ACEOF
2520 if ac_fn_c_try_cpp "$LINENO"; then :
2521 ac_header_preproc=yes
2522 else
2523 ac_header_preproc=no
2524 fi
2525 rm -f conftest.err conftest.$ac_ext
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2527 $as_echo "$ac_header_preproc" >&6; }
2528
2529 # So? What about this header?
2530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2531 yes:no: )
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2533 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2535 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2536 ;;
2537 no:yes:* )
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2539 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2541 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2543 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2545 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2547 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2548 ;;
2549 esac
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2551 $as_echo_n "checking for $2... " >&6; }
2552 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2553 $as_echo_n "(cached) " >&6
2554 else
2555 eval "$3=\$ac_header_compiler"
2556 fi
2557 eval ac_res=\$$3
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2559 $as_echo "$ac_res" >&6; }
2560 fi
2561 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2562
2563 } # ac_fn_c_check_header_mongrel
2564
2565 # ac_fn_c_try_run LINENO
2566 # ----------------------
2567 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2568 # that executables *can* be run.
2569 ac_fn_c_try_run ()
2570 {
2571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2572 if { { ac_try="$ac_link"
2573 case "(($ac_try" in
2574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575 *) ac_try_echo=$ac_try;;
2576 esac
2577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2578 $as_echo "$ac_try_echo"; } >&5
2579 (eval "$ac_link") 2>&5
2580 ac_status=$?
2581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2582 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2583 { { case "(($ac_try" in
2584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2585 *) ac_try_echo=$ac_try;;
2586 esac
2587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2588 $as_echo "$ac_try_echo"; } >&5
2589 (eval "$ac_try") 2>&5
2590 ac_status=$?
2591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2592 test $ac_status = 0; }; }; then :
2593 ac_retval=0
2594 else
2595 $as_echo "$as_me: program exited with status $ac_status" >&5
2596 $as_echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2598
2599 ac_retval=$ac_status
2600 fi
2601 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2602 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2603 return $ac_retval
2604
2605 } # ac_fn_c_try_run
2606
2607 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2608 # -------------------------------------------------------
2609 # Tests whether HEADER exists and can be compiled using the include files in
2610 # INCLUDES, setting the cache variable VAR accordingly.
2611 ac_fn_c_check_header_compile ()
2612 {
2613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2615 $as_echo_n "checking for $2... " >&6; }
2616 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2617 $as_echo_n "(cached) " >&6
2618 else
2619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2620 /* end confdefs.h. */
2621 $4
2622 #include <$2>
2623 _ACEOF
2624 if ac_fn_c_try_compile "$LINENO"; then :
2625 eval "$3=yes"
2626 else
2627 eval "$3=no"
2628 fi
2629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2630 fi
2631 eval ac_res=\$$3
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2633 $as_echo "$ac_res" >&6; }
2634 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2635
2636 } # ac_fn_c_check_header_compile
2637
2638 # ac_fn_c_try_link LINENO
2639 # -----------------------
2640 # Try to link conftest.$ac_ext, and return whether this succeeded.
2641 ac_fn_c_try_link ()
2642 {
2643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2644 rm -f conftest.$ac_objext conftest$ac_exeext
2645 if { { ac_try="$ac_link"
2646 case "(($ac_try" in
2647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648 *) ac_try_echo=$ac_try;;
2649 esac
2650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2651 $as_echo "$ac_try_echo"; } >&5
2652 (eval "$ac_link") 2>conftest.err
2653 ac_status=$?
2654 if test -s conftest.err; then
2655 grep -v '^ *+' conftest.err >conftest.er1
2656 cat conftest.er1 >&5
2657 mv -f conftest.er1 conftest.err
2658 fi
2659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2660 test $ac_status = 0; } && {
2661 test -z "$ac_c_werror_flag" ||
2662 test ! -s conftest.err
2663 } && test -s conftest$ac_exeext && {
2664 test "$cross_compiling" = yes ||
2665 $as_test_x conftest$ac_exeext
2666 }; then :
2667 ac_retval=0
2668 else
2669 $as_echo "$as_me: failed program was:" >&5
2670 sed 's/^/| /' conftest.$ac_ext >&5
2671
2672 ac_retval=1
2673 fi
2674 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2675 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2676 # interfere with the next link command; also delete a directory that is
2677 # left behind by Apple's compiler. We do this before executing the actions.
2678 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2679 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2680 return $ac_retval
2681
2682 } # ac_fn_c_try_link
2683
2684 # ac_fn_c_check_func LINENO FUNC VAR
2685 # ----------------------------------
2686 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2687 ac_fn_c_check_func ()
2688 {
2689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2691 $as_echo_n "checking for $2... " >&6; }
2692 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2693 $as_echo_n "(cached) " >&6
2694 else
2695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2696 /* end confdefs.h. */
2697 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2699 #define $2 innocuous_$2
2700
2701 /* System header to define __stub macros and hopefully few prototypes,
2702 which can conflict with char $2 (); below.
2703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2704 <limits.h> exists even on freestanding compilers. */
2705
2706 #ifdef __STDC__
2707 # include <limits.h>
2708 #else
2709 # include <assert.h>
2710 #endif
2711
2712 #undef $2
2713
2714 /* Override any GCC internal prototype to avoid an error.
2715 Use char because int might match the return type of a GCC
2716 builtin and then its argument prototype would still apply. */
2717 #ifdef __cplusplus
2718 extern "C"
2719 #endif
2720 char $2 ();
2721 /* The GNU C library defines this for functions which it implements
2722 to always fail with ENOSYS. Some functions are actually named
2723 something starting with __ and the normal name is an alias. */
2724 #if defined __stub_$2 || defined __stub___$2
2725 choke me
2726 #endif
2727
2728 int
2729 main ()
2730 {
2731 return $2 ();
2732 ;
2733 return 0;
2734 }
2735 _ACEOF
2736 if ac_fn_c_try_link "$LINENO"; then :
2737 eval "$3=yes"
2738 else
2739 eval "$3=no"
2740 fi
2741 rm -f core conftest.err conftest.$ac_objext \
2742 conftest$ac_exeext conftest.$ac_ext
2743 fi
2744 eval ac_res=\$$3
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2746 $as_echo "$ac_res" >&6; }
2747 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2748
2749 } # ac_fn_c_check_func
2750
2751 # ac_fn_c_check_decl LINENO SYMBOL VAR
2752 # ------------------------------------
2753 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2754 ac_fn_c_check_decl ()
2755 {
2756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2758 $as_echo_n "checking whether $2 is declared... " >&6; }
2759 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2760 $as_echo_n "(cached) " >&6
2761 else
2762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2763 /* end confdefs.h. */
2764 $4
2765 int
2766 main ()
2767 {
2768 #ifndef $2
2769 (void) $2;
2770 #endif
2771
2772 ;
2773 return 0;
2774 }
2775 _ACEOF
2776 if ac_fn_c_try_compile "$LINENO"; then :
2777 eval "$3=yes"
2778 else
2779 eval "$3=no"
2780 fi
2781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2782 fi
2783 eval ac_res=\$$3
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2785 $as_echo "$ac_res" >&6; }
2786 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2787
2788 } # ac_fn_c_check_decl
2789
2790 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2791 # --------------------------------------------
2792 # Tries to find the compile-time value of EXPR in a program that includes
2793 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2794 # computed
2795 ac_fn_c_compute_int ()
2796 {
2797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2798 if test "$cross_compiling" = yes; then
2799 # Depending upon the size, compute the lo and hi bounds.
2800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2801 /* end confdefs.h. */
2802 $4
2803 int
2804 main ()
2805 {
2806 static int test_array [1 - 2 * !(($2) >= 0)];
2807 test_array [0] = 0
2808
2809 ;
2810 return 0;
2811 }
2812 _ACEOF
2813 if ac_fn_c_try_compile "$LINENO"; then :
2814 ac_lo=0 ac_mid=0
2815 while :; do
2816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2817 /* end confdefs.h. */
2818 $4
2819 int
2820 main ()
2821 {
2822 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2823 test_array [0] = 0
2824
2825 ;
2826 return 0;
2827 }
2828 _ACEOF
2829 if ac_fn_c_try_compile "$LINENO"; then :
2830 ac_hi=$ac_mid; break
2831 else
2832 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2833 if test $ac_lo -le $ac_mid; then
2834 ac_lo= ac_hi=
2835 break
2836 fi
2837 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2838 fi
2839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2840 done
2841 else
2842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2843 /* end confdefs.h. */
2844 $4
2845 int
2846 main ()
2847 {
2848 static int test_array [1 - 2 * !(($2) < 0)];
2849 test_array [0] = 0
2850
2851 ;
2852 return 0;
2853 }
2854 _ACEOF
2855 if ac_fn_c_try_compile "$LINENO"; then :
2856 ac_hi=-1 ac_mid=-1
2857 while :; do
2858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2859 /* end confdefs.h. */
2860 $4
2861 int
2862 main ()
2863 {
2864 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2865 test_array [0] = 0
2866
2867 ;
2868 return 0;
2869 }
2870 _ACEOF
2871 if ac_fn_c_try_compile "$LINENO"; then :
2872 ac_lo=$ac_mid; break
2873 else
2874 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2875 if test $ac_mid -le $ac_hi; then
2876 ac_lo= ac_hi=
2877 break
2878 fi
2879 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2880 fi
2881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2882 done
2883 else
2884 ac_lo= ac_hi=
2885 fi
2886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2887 fi
2888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2889 # Binary search between lo and hi bounds.
2890 while test "x$ac_lo" != "x$ac_hi"; do
2891 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2893 /* end confdefs.h. */
2894 $4
2895 int
2896 main ()
2897 {
2898 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2899 test_array [0] = 0
2900
2901 ;
2902 return 0;
2903 }
2904 _ACEOF
2905 if ac_fn_c_try_compile "$LINENO"; then :
2906 ac_hi=$ac_mid
2907 else
2908 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2909 fi
2910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2911 done
2912 case $ac_lo in #((
2913 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2914 '') ac_retval=1 ;;
2915 esac
2916 else
2917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2918 /* end confdefs.h. */
2919 $4
2920 static long int longval () { return $2; }
2921 static unsigned long int ulongval () { return $2; }
2922 #include <stdio.h>
2923 #include <stdlib.h>
2924 int
2925 main ()
2926 {
2927
2928 FILE *f = fopen ("conftest.val", "w");
2929 if (! f)
2930 return 1;
2931 if (($2) < 0)
2932 {
2933 long int i = longval ();
2934 if (i != ($2))
2935 return 1;
2936 fprintf (f, "%ld", i);
2937 }
2938 else
2939 {
2940 unsigned long int i = ulongval ();
2941 if (i != ($2))
2942 return 1;
2943 fprintf (f, "%lu", i);
2944 }
2945 /* Do not output a trailing newline, as this causes \r\n confusion
2946 on some platforms. */
2947 return ferror (f) || fclose (f) != 0;
2948
2949 ;
2950 return 0;
2951 }
2952 _ACEOF
2953 if ac_fn_c_try_run "$LINENO"; then :
2954 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2955 else
2956 ac_retval=1
2957 fi
2958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2959 conftest.$ac_objext conftest.beam conftest.$ac_ext
2960 rm -f conftest.val
2961
2962 fi
2963 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2964 return $ac_retval
2965
2966 } # ac_fn_c_compute_int
2967
2968 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2969 # -------------------------------------------
2970 # Tests whether TYPE exists after having included INCLUDES, setting cache
2971 # variable VAR accordingly.
2972 ac_fn_c_check_type ()
2973 {
2974 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2976 $as_echo_n "checking for $2... " >&6; }
2977 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2978 $as_echo_n "(cached) " >&6
2979 else
2980 eval "$3=no"
2981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2982 /* end confdefs.h. */
2983 $4
2984 int
2985 main ()
2986 {
2987 if (sizeof ($2))
2988 return 0;
2989 ;
2990 return 0;
2991 }
2992 _ACEOF
2993 if ac_fn_c_try_compile "$LINENO"; then :
2994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2995 /* end confdefs.h. */
2996 $4
2997 int
2998 main ()
2999 {
3000 if (sizeof (($2)))
3001 return 0;
3002 ;
3003 return 0;
3004 }
3005 _ACEOF
3006 if ac_fn_c_try_compile "$LINENO"; then :
3007
3008 else
3009 eval "$3=yes"
3010 fi
3011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3012 fi
3013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3014 fi
3015 eval ac_res=\$$3
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3017 $as_echo "$ac_res" >&6; }
3018 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3019
3020 } # ac_fn_c_check_type
3021 cat >config.log <<_ACEOF
3022 This file contains any messages produced by compilers while
3023 running configure, to aid debugging if configure makes a mistake.
3024
3025 It was created by $as_me, which was
3026 generated by GNU Autoconf 2.64. Invocation command line was
3027
3028 $ $0 $@
3029
3030 _ACEOF
3031 exec 5>>config.log
3032 {
3033 cat <<_ASUNAME
3034 ## --------- ##
3035 ## Platform. ##
3036 ## --------- ##
3037
3038 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3039 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3040 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3041 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3042 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3043
3044 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3045 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3046
3047 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3048 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3049 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3050 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3051 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3052 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3053 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3054
3055 _ASUNAME
3056
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3058 for as_dir in $PATH
3059 do
3060 IFS=$as_save_IFS
3061 test -z "$as_dir" && as_dir=.
3062 $as_echo "PATH: $as_dir"
3063 done
3064 IFS=$as_save_IFS
3065
3066 } >&5
3067
3068 cat >&5 <<_ACEOF
3069
3070
3071 ## ----------- ##
3072 ## Core tests. ##
3073 ## ----------- ##
3074
3075 _ACEOF
3076
3077
3078 # Keep a trace of the command line.
3079 # Strip out --no-create and --no-recursion so they do not pile up.
3080 # Strip out --silent because we don't want to record it for future runs.
3081 # Also quote any args containing shell meta-characters.
3082 # Make two passes to allow for proper duplicate-argument suppression.
3083 ac_configure_args=
3084 ac_configure_args0=
3085 ac_configure_args1=
3086 ac_must_keep_next=false
3087 for ac_pass in 1 2
3088 do
3089 for ac_arg
3090 do
3091 case $ac_arg in
3092 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3094 | -silent | --silent | --silen | --sile | --sil)
3095 continue ;;
3096 *\'*)
3097 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3098 esac
3099 case $ac_pass in
3100 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3101 2)
3102 as_fn_append ac_configure_args1 " '$ac_arg'"
3103 if test $ac_must_keep_next = true; then
3104 ac_must_keep_next=false # Got value, back to normal.
3105 else
3106 case $ac_arg in
3107 *=* | --config-cache | -C | -disable-* | --disable-* \
3108 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3109 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3110 | -with-* | --with-* | -without-* | --without-* | --x)
3111 case "$ac_configure_args0 " in
3112 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3113 esac
3114 ;;
3115 -* ) ac_must_keep_next=true ;;
3116 esac
3117 fi
3118 as_fn_append ac_configure_args " '$ac_arg'"
3119 ;;
3120 esac
3121 done
3122 done
3123 { ac_configure_args0=; unset ac_configure_args0;}
3124 { ac_configure_args1=; unset ac_configure_args1;}
3125
3126 # When interrupted or exit'd, cleanup temporary files, and complete
3127 # config.log. We remove comments because anyway the quotes in there
3128 # would cause problems or look ugly.
3129 # WARNING: Use '\'' to represent an apostrophe within the trap.
3130 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3131 trap 'exit_status=$?
3132 # Save into config.log some information that might help in debugging.
3133 {
3134 echo
3135
3136 cat <<\_ASBOX
3137 ## ---------------- ##
3138 ## Cache variables. ##
3139 ## ---------------- ##
3140 _ASBOX
3141 echo
3142 # The following way of writing the cache mishandles newlines in values,
3143 (
3144 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3145 eval ac_val=\$$ac_var
3146 case $ac_val in #(
3147 *${as_nl}*)
3148 case $ac_var in #(
3149 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3150 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3151 esac
3152 case $ac_var in #(
3153 _ | IFS | as_nl) ;; #(
3154 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3155 *) { eval $ac_var=; unset $ac_var;} ;;
3156 esac ;;
3157 esac
3158 done
3159 (set) 2>&1 |
3160 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3161 *${as_nl}ac_space=\ *)
3162 sed -n \
3163 "s/'\''/'\''\\\\'\'''\''/g;
3164 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3165 ;; #(
3166 *)
3167 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3168 ;;
3169 esac |
3170 sort
3171 )
3172 echo
3173
3174 cat <<\_ASBOX
3175 ## ----------------- ##
3176 ## Output variables. ##
3177 ## ----------------- ##
3178 _ASBOX
3179 echo
3180 for ac_var in $ac_subst_vars
3181 do
3182 eval ac_val=\$$ac_var
3183 case $ac_val in
3184 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3185 esac
3186 $as_echo "$ac_var='\''$ac_val'\''"
3187 done | sort
3188 echo
3189
3190 if test -n "$ac_subst_files"; then
3191 cat <<\_ASBOX
3192 ## ------------------- ##
3193 ## File substitutions. ##
3194 ## ------------------- ##
3195 _ASBOX
3196 echo
3197 for ac_var in $ac_subst_files
3198 do
3199 eval ac_val=\$$ac_var
3200 case $ac_val in
3201 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3202 esac
3203 $as_echo "$ac_var='\''$ac_val'\''"
3204 done | sort
3205 echo
3206 fi
3207
3208 if test -s confdefs.h; then
3209 cat <<\_ASBOX
3210 ## ----------- ##
3211 ## confdefs.h. ##
3212 ## ----------- ##
3213 _ASBOX
3214 echo
3215 cat confdefs.h
3216 echo
3217 fi
3218 test "$ac_signal" != 0 &&
3219 $as_echo "$as_me: caught signal $ac_signal"
3220 $as_echo "$as_me: exit $exit_status"
3221 } >&5
3222 rm -f core *.core core.conftest.* &&
3223 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3224 exit $exit_status
3225 ' 0
3226 for ac_signal in 1 2 13 15; do
3227 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3228 done
3229 ac_signal=0
3230
3231 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3232 rm -f -r conftest* confdefs.h
3233
3234 $as_echo "/* confdefs.h */" > confdefs.h
3235
3236 # Predefined preprocessor variables.
3237
3238 cat >>confdefs.h <<_ACEOF
3239 #define PACKAGE_NAME "$PACKAGE_NAME"
3240 _ACEOF
3241
3242 cat >>confdefs.h <<_ACEOF
3243 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3244 _ACEOF
3245
3246 cat >>confdefs.h <<_ACEOF
3247 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3248 _ACEOF
3249
3250 cat >>confdefs.h <<_ACEOF
3251 #define PACKAGE_STRING "$PACKAGE_STRING"
3252 _ACEOF
3253
3254 cat >>confdefs.h <<_ACEOF
3255 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3256 _ACEOF
3257
3258 cat >>confdefs.h <<_ACEOF
3259 #define PACKAGE_URL "$PACKAGE_URL"
3260 _ACEOF
3261
3262
3263 # Let the site file select an alternate cache file if it wants to.
3264 # Prefer an explicitly selected file to automatically selected ones.
3265 ac_site_file1=NONE
3266 ac_site_file2=NONE
3267 if test -n "$CONFIG_SITE"; then
3268 ac_site_file1=$CONFIG_SITE
3269 elif test "x$prefix" != xNONE; then
3270 ac_site_file1=$prefix/share/config.site
3271 ac_site_file2=$prefix/etc/config.site
3272 else
3273 ac_site_file1=$ac_default_prefix/share/config.site
3274 ac_site_file2=$ac_default_prefix/etc/config.site
3275 fi
3276 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3277 do
3278 test "x$ac_site_file" = xNONE && continue
3279 if test -r "$ac_site_file"; then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3281 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3282 sed 's/^/| /' "$ac_site_file" >&5
3283 . "$ac_site_file"
3284 fi
3285 done
3286
3287 if test -r "$cache_file"; then
3288 # Some versions of bash will fail to source /dev/null (special
3289 # files actually), so we avoid doing that.
3290 if test -f "$cache_file"; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3292 $as_echo "$as_me: loading cache $cache_file" >&6;}
3293 case $cache_file in
3294 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3295 *) . "./$cache_file";;
3296 esac
3297 fi
3298 else
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3300 $as_echo "$as_me: creating cache $cache_file" >&6;}
3301 >$cache_file
3302 fi
3303
3304 as_fn_append ac_func_list " canonicalize_file_name"
3305 as_fn_append ac_func_list " getcwd"
3306 as_fn_append ac_func_list " readlink"
3307 as_fn_append ac_func_list " realpath"
3308 as_fn_append ac_header_list " sys/param.h"
3309 as_fn_append ac_header_list " dirent.h"
3310 as_fn_append ac_func_list " btowc"
3311 as_fn_append ac_func_list " isblank"
3312 as_fn_append ac_func_list " iswctype"
3313 as_fn_append ac_func_list " mbsrtowcs"
3314 as_fn_append ac_func_list " mempcpy"
3315 as_fn_append ac_func_list " wmemchr"
3316 as_fn_append ac_func_list " wmemcpy"
3317 as_fn_append ac_func_list " wmempcpy"
3318 as_fn_append ac_header_list " wctype.h"
3319 gl_fnmatch_required=GNU
3320 as_fn_append ac_header_list " sys/time.h"
3321 as_fn_append ac_header_list " sys/socket.h"
3322 as_fn_append ac_func_list " gettimeofday"
3323 as_fn_append ac_header_list " limits.h"
3324 as_fn_append ac_header_list " wchar.h"
3325 as_fn_append ac_header_list " stdint.h"
3326 as_fn_append ac_header_list " inttypes.h"
3327 as_fn_append ac_header_list " unistd.h"
3328 as_fn_append ac_func_list " symlink"
3329 as_fn_append ac_func_list " lstat"
3330 as_fn_append ac_header_list " math.h"
3331 as_fn_append ac_func_list " mbsinit"
3332 as_fn_append ac_func_list " mbrtowc"
3333 as_fn_append ac_header_list " sys/mman.h"
3334 as_fn_append ac_func_list " mprotect"
3335 as_fn_append ac_func_list " link"
3336 as_fn_append ac_header_list " sys/stat.h"
3337 as_fn_append ac_header_list " features.h"
3338 as_fn_append ac_func_list " iswcntrl"
3339 # Check that the precious variables saved in the cache have kept the same
3340 # value.
3341 ac_cache_corrupted=false
3342 for ac_var in $ac_precious_vars; do
3343 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3344 eval ac_new_set=\$ac_env_${ac_var}_set
3345 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3346 eval ac_new_val=\$ac_env_${ac_var}_value
3347 case $ac_old_set,$ac_new_set in
3348 set,)
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3350 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3351 ac_cache_corrupted=: ;;
3352 ,set)
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3354 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3355 ac_cache_corrupted=: ;;
3356 ,);;
3357 *)
3358 if test "x$ac_old_val" != "x$ac_new_val"; then
3359 # differences in whitespace do not lead to failure.
3360 ac_old_val_w=`echo x $ac_old_val`
3361 ac_new_val_w=`echo x $ac_new_val`
3362 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3364 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3365 ac_cache_corrupted=:
3366 else
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3368 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3369 eval $ac_var=\$ac_old_val
3370 fi
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3372 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3374 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3375 fi;;
3376 esac
3377 # Pass precious variables to config.status.
3378 if test "$ac_new_set" = set; then
3379 case $ac_new_val in
3380 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3381 *) ac_arg=$ac_var=$ac_new_val ;;
3382 esac
3383 case " $ac_configure_args " in
3384 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3385 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3386 esac
3387 fi
3388 done
3389 if $ac_cache_corrupted; then
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3393 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3394 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3395 fi
3396 ## -------------------- ##
3397 ## Main body of script. ##
3398 ## -------------------- ##
3399
3400 ac_ext=c
3401 ac_cpp='$CPP $CPPFLAGS'
3402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405
3406
3407 ac_config_headers="$ac_config_headers config.h:config.in"
3408
3409
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3411 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3412 # Check whether --enable-maintainer-mode was given.
3413 if test "${enable_maintainer_mode+set}" = set; then :
3414 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3415 else
3416 USE_MAINTAINER_MODE=no
3417 fi
3418
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3420 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3421 if test $USE_MAINTAINER_MODE = yes; then
3422 MAINTAINER_MODE_TRUE=
3423 MAINTAINER_MODE_FALSE='#'
3424 else
3425 MAINTAINER_MODE_TRUE='#'
3426 MAINTAINER_MODE_FALSE=
3427 fi
3428
3429 MAINT=$MAINTAINER_MODE_TRUE
3430
3431
3432
3433 ac_ext=c
3434 ac_cpp='$CPP $CPPFLAGS'
3435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3438 if test -n "$ac_tool_prefix"; then
3439 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3440 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3442 $as_echo_n "checking for $ac_word... " >&6; }
3443 if test "${ac_cv_prog_CC+set}" = set; then :
3444 $as_echo_n "(cached) " >&6
3445 else
3446 if test -n "$CC"; then
3447 ac_cv_prog_CC="$CC" # Let the user override the test.
3448 else
3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450 for as_dir in $PATH
3451 do
3452 IFS=$as_save_IFS
3453 test -z "$as_dir" && as_dir=.
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3456 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3458 break 2
3459 fi
3460 done
3461 done
3462 IFS=$as_save_IFS
3463
3464 fi
3465 fi
3466 CC=$ac_cv_prog_CC
3467 if test -n "$CC"; then
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3469 $as_echo "$CC" >&6; }
3470 else
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472 $as_echo "no" >&6; }
3473 fi
3474
3475
3476 fi
3477 if test -z "$ac_cv_prog_CC"; then
3478 ac_ct_CC=$CC
3479 # Extract the first word of "gcc", so it can be a program name with args.
3480 set dummy gcc; ac_word=$2
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482 $as_echo_n "checking for $ac_word... " >&6; }
3483 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3484 $as_echo_n "(cached) " >&6
3485 else
3486 if test -n "$ac_ct_CC"; then
3487 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3488 else
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 for as_dir in $PATH
3491 do
3492 IFS=$as_save_IFS
3493 test -z "$as_dir" && as_dir=.
3494 for ac_exec_ext in '' $ac_executable_extensions; do
3495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3496 ac_cv_prog_ac_ct_CC="gcc"
3497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3498 break 2
3499 fi
3500 done
3501 done
3502 IFS=$as_save_IFS
3503
3504 fi
3505 fi
3506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3507 if test -n "$ac_ct_CC"; then
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3509 $as_echo "$ac_ct_CC" >&6; }
3510 else
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3513 fi
3514
3515 if test "x$ac_ct_CC" = x; then
3516 CC=""
3517 else
3518 case $cross_compiling:$ac_tool_warned in
3519 yes:)
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3522 ac_tool_warned=yes ;;
3523 esac
3524 CC=$ac_ct_CC
3525 fi
3526 else
3527 CC="$ac_cv_prog_CC"
3528 fi
3529
3530 if test -z "$CC"; then
3531 if test -n "$ac_tool_prefix"; then
3532 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3533 set dummy ${ac_tool_prefix}cc; ac_word=$2
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3535 $as_echo_n "checking for $ac_word... " >&6; }
3536 if test "${ac_cv_prog_CC+set}" = set; then :
3537 $as_echo_n "(cached) " >&6
3538 else
3539 if test -n "$CC"; then
3540 ac_cv_prog_CC="$CC" # Let the user override the test.
3541 else
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 for as_dir in $PATH
3544 do
3545 IFS=$as_save_IFS
3546 test -z "$as_dir" && as_dir=.
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3549 ac_cv_prog_CC="${ac_tool_prefix}cc"
3550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3551 break 2
3552 fi
3553 done
3554 done
3555 IFS=$as_save_IFS
3556
3557 fi
3558 fi
3559 CC=$ac_cv_prog_CC
3560 if test -n "$CC"; then
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3562 $as_echo "$CC" >&6; }
3563 else
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3565 $as_echo "no" >&6; }
3566 fi
3567
3568
3569 fi
3570 fi
3571 if test -z "$CC"; then
3572 # Extract the first word of "cc", so it can be a program name with args.
3573 set dummy cc; ac_word=$2
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3575 $as_echo_n "checking for $ac_word... " >&6; }
3576 if test "${ac_cv_prog_CC+set}" = set; then :
3577 $as_echo_n "(cached) " >&6
3578 else
3579 if test -n "$CC"; then
3580 ac_cv_prog_CC="$CC" # Let the user override the test.
3581 else
3582 ac_prog_rejected=no
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584 for as_dir in $PATH
3585 do
3586 IFS=$as_save_IFS
3587 test -z "$as_dir" && as_dir=.
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3590 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3591 ac_prog_rejected=yes
3592 continue
3593 fi
3594 ac_cv_prog_CC="cc"
3595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3596 break 2
3597 fi
3598 done
3599 done
3600 IFS=$as_save_IFS
3601
3602 if test $ac_prog_rejected = yes; then
3603 # We found a bogon in the path, so make sure we never use it.
3604 set dummy $ac_cv_prog_CC
3605 shift
3606 if test $# != 0; then
3607 # We chose a different compiler from the bogus one.
3608 # However, it has the same basename, so the bogon will be chosen
3609 # first if we set CC to just the basename; use the full file name.
3610 shift
3611 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3612 fi
3613 fi
3614 fi
3615 fi
3616 CC=$ac_cv_prog_CC
3617 if test -n "$CC"; then
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3619 $as_echo "$CC" >&6; }
3620 else
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622 $as_echo "no" >&6; }
3623 fi
3624
3625
3626 fi
3627 if test -z "$CC"; then
3628 if test -n "$ac_tool_prefix"; then
3629 for ac_prog in cl.exe
3630 do
3631 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634 $as_echo_n "checking for $ac_word... " >&6; }
3635 if test "${ac_cv_prog_CC+set}" = set; then :
3636 $as_echo_n "(cached) " >&6
3637 else
3638 if test -n "$CC"; then
3639 ac_cv_prog_CC="$CC" # Let the user override the test.
3640 else
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH
3643 do
3644 IFS=$as_save_IFS
3645 test -z "$as_dir" && as_dir=.
3646 for ac_exec_ext in '' $ac_executable_extensions; do
3647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3648 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3650 break 2
3651 fi
3652 done
3653 done
3654 IFS=$as_save_IFS
3655
3656 fi
3657 fi
3658 CC=$ac_cv_prog_CC
3659 if test -n "$CC"; then
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3661 $as_echo "$CC" >&6; }
3662 else
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664 $as_echo "no" >&6; }
3665 fi
3666
3667
3668 test -n "$CC" && break
3669 done
3670 fi
3671 if test -z "$CC"; then
3672 ac_ct_CC=$CC
3673 for ac_prog in cl.exe
3674 do
3675 # Extract the first word of "$ac_prog", so it can be a program name with args.
3676 set dummy $ac_prog; ac_word=$2
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678 $as_echo_n "checking for $ac_word... " >&6; }
3679 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3680 $as_echo_n "(cached) " >&6
3681 else
3682 if test -n "$ac_ct_CC"; then
3683 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3684 else
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 for as_dir in $PATH
3687 do
3688 IFS=$as_save_IFS
3689 test -z "$as_dir" && as_dir=.
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3692 ac_cv_prog_ac_ct_CC="$ac_prog"
3693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3694 break 2
3695 fi
3696 done
3697 done
3698 IFS=$as_save_IFS
3699
3700 fi
3701 fi
3702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3703 if test -n "$ac_ct_CC"; then
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3705 $as_echo "$ac_ct_CC" >&6; }
3706 else
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708 $as_echo "no" >&6; }
3709 fi
3710
3711
3712 test -n "$ac_ct_CC" && break
3713 done
3714
3715 if test "x$ac_ct_CC" = x; then
3716 CC=""
3717 else
3718 case $cross_compiling:$ac_tool_warned in
3719 yes:)
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3722 ac_tool_warned=yes ;;
3723 esac
3724 CC=$ac_ct_CC
3725 fi
3726 fi
3727
3728 fi
3729
3730
3731 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3733 as_fn_error "no acceptable C compiler found in \$PATH
3734 See \`config.log' for more details." "$LINENO" 5; }
3735
3736 # Provide some information about the compiler.
3737 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3738 set X $ac_compile
3739 ac_compiler=$2
3740 for ac_option in --version -v -V -qversion; do
3741 { { ac_try="$ac_compiler $ac_option >&5"
3742 case "(($ac_try" in
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3745 esac
3746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3747 $as_echo "$ac_try_echo"; } >&5
3748 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3749 ac_status=$?
3750 if test -s conftest.err; then
3751 sed '10a\
3752 ... rest of stderr output deleted ...
3753 10q' conftest.err >conftest.er1
3754 cat conftest.er1 >&5
3755 rm -f conftest.er1 conftest.err
3756 fi
3757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3758 test $ac_status = 0; }
3759 done
3760
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3763 #include <stdio.h>
3764 int
3765 main ()
3766 {
3767 FILE *f = fopen ("conftest.out", "w");
3768 return ferror (f) || fclose (f) != 0;
3769
3770 ;
3771 return 0;
3772 }
3773 _ACEOF
3774 ac_clean_files_save=$ac_clean_files
3775 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3776 # Try to create an executable without -o first, disregard a.out.
3777 # It will help us diagnose broken compilers, and finding out an intuition
3778 # of exeext.
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3780 $as_echo_n "checking for C compiler default output file name... " >&6; }
3781 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3782
3783 # The possible output files:
3784 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3785
3786 ac_rmfiles=
3787 for ac_file in $ac_files
3788 do
3789 case $ac_file in
3790 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3791 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3792 esac
3793 done
3794 rm -f $ac_rmfiles
3795
3796 if { { ac_try="$ac_link_default"
3797 case "(($ac_try" in
3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3800 esac
3801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802 $as_echo "$ac_try_echo"; } >&5
3803 (eval "$ac_link_default") 2>&5
3804 ac_status=$?
3805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3806 test $ac_status = 0; }; then :
3807 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3808 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3809 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3810 # so that the user can short-circuit this test for compilers unknown to
3811 # Autoconf.
3812 for ac_file in $ac_files ''
3813 do
3814 test -f "$ac_file" || continue
3815 case $ac_file in
3816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3817 ;;
3818 [ab].out )
3819 # We found the default executable, but exeext='' is most
3820 # certainly right.
3821 break;;
3822 *.* )
3823 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3824 then :; else
3825 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3826 fi
3827 # We set ac_cv_exeext here because the later test for it is not
3828 # safe: cross compilers may not add the suffix if given an `-o'
3829 # argument, so we may need to know it at that point already.
3830 # Even if this section looks crufty: it has the advantage of
3831 # actually working.
3832 break;;
3833 * )
3834 break;;
3835 esac
3836 done
3837 test "$ac_cv_exeext" = no && ac_cv_exeext=
3838
3839 else
3840 ac_file=''
3841 fi
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3843 $as_echo "$ac_file" >&6; }
3844 if test -z "$ac_file"; then :
3845 $as_echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3847
3848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3850 { as_fn_set_status 77
3851 as_fn_error "C compiler cannot create executables
3852 See \`config.log' for more details." "$LINENO" 5; }; }
3853 fi
3854 ac_exeext=$ac_cv_exeext
3855
3856 # Check that the compiler produces executables we can run. If not, either
3857 # the compiler is broken, or we cross compile.
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3859 $as_echo_n "checking whether the C compiler works... " >&6; }
3860 # If not cross compiling, check that we can run a simple program.
3861 if test "$cross_compiling" != yes; then
3862 if { ac_try='./$ac_file'
3863 { { case "(($ac_try" in
3864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865 *) ac_try_echo=$ac_try;;
3866 esac
3867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3868 $as_echo "$ac_try_echo"; } >&5
3869 (eval "$ac_try") 2>&5
3870 ac_status=$?
3871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3872 test $ac_status = 0; }; }; then
3873 cross_compiling=no
3874 else
3875 if test "$cross_compiling" = maybe; then
3876 cross_compiling=yes
3877 else
3878 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3879 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3880 as_fn_error "cannot run C compiled programs.
3881 If you meant to cross compile, use \`--host'.
3882 See \`config.log' for more details." "$LINENO" 5; }
3883 fi
3884 fi
3885 fi
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3887 $as_echo "yes" >&6; }
3888
3889 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3890 ac_clean_files=$ac_clean_files_save
3891 # Check that the compiler produces executables we can run. If not, either
3892 # the compiler is broken, or we cross compile.
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3894 $as_echo_n "checking whether we are cross compiling... " >&6; }
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3896 $as_echo "$cross_compiling" >&6; }
3897
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3899 $as_echo_n "checking for suffix of executables... " >&6; }
3900 if { { ac_try="$ac_link"
3901 case "(($ac_try" in
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3904 esac
3905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3906 $as_echo "$ac_try_echo"; } >&5
3907 (eval "$ac_link") 2>&5
3908 ac_status=$?
3909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3910 test $ac_status = 0; }; then :
3911 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3912 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3913 # work properly (i.e., refer to `conftest.exe'), while it won't with
3914 # `rm'.
3915 for ac_file in conftest.exe conftest conftest.*; do
3916 test -f "$ac_file" || continue
3917 case $ac_file in
3918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3919 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3920 break;;
3921 * ) break;;
3922 esac
3923 done
3924 else
3925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927 as_fn_error "cannot compute suffix of executables: cannot compile and link
3928 See \`config.log' for more details." "$LINENO" 5; }
3929 fi
3930 rm -f conftest$ac_cv_exeext
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3932 $as_echo "$ac_cv_exeext" >&6; }
3933
3934 rm -f conftest.$ac_ext
3935 EXEEXT=$ac_cv_exeext
3936 ac_exeext=$EXEEXT
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3938 $as_echo_n "checking for suffix of object files... " >&6; }
3939 if test "${ac_cv_objext+set}" = set; then :
3940 $as_echo_n "(cached) " >&6
3941 else
3942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h. */
3944
3945 int
3946 main ()
3947 {
3948
3949 ;
3950 return 0;
3951 }
3952 _ACEOF
3953 rm -f conftest.o conftest.obj
3954 if { { ac_try="$ac_compile"
3955 case "(($ac_try" in
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3958 esac
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 $as_echo "$ac_try_echo"; } >&5
3961 (eval "$ac_compile") 2>&5
3962 ac_status=$?
3963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }; then :
3965 for ac_file in conftest.o conftest.obj conftest.*; do
3966 test -f "$ac_file" || continue;
3967 case $ac_file in
3968 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3969 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3970 break;;
3971 esac
3972 done
3973 else
3974 $as_echo "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3976
3977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3979 as_fn_error "cannot compute suffix of object files: cannot compile
3980 See \`config.log' for more details." "$LINENO" 5; }
3981 fi
3982 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3983 fi
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3985 $as_echo "$ac_cv_objext" >&6; }
3986 OBJEXT=$ac_cv_objext
3987 ac_objext=$OBJEXT
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3989 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3990 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3991 $as_echo_n "(cached) " >&6
3992 else
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3995
3996 int
3997 main ()
3998 {
3999 #ifndef __GNUC__
4000 choke me
4001 #endif
4002
4003 ;
4004 return 0;
4005 }
4006 _ACEOF
4007 if ac_fn_c_try_compile "$LINENO"; then :
4008 ac_compiler_gnu=yes
4009 else
4010 ac_compiler_gnu=no
4011 fi
4012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4013 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4014
4015 fi
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4017 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4018 if test $ac_compiler_gnu = yes; then
4019 GCC=yes
4020 else
4021 GCC=
4022 fi
4023 ac_test_CFLAGS=${CFLAGS+set}
4024 ac_save_CFLAGS=$CFLAGS
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4026 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4027 if test "${ac_cv_prog_cc_g+set}" = set; then :
4028 $as_echo_n "(cached) " >&6
4029 else
4030 ac_save_c_werror_flag=$ac_c_werror_flag
4031 ac_c_werror_flag=yes
4032 ac_cv_prog_cc_g=no
4033 CFLAGS="-g"
4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4035 /* end confdefs.h. */
4036
4037 int
4038 main ()
4039 {
4040
4041 ;
4042 return 0;
4043 }
4044 _ACEOF
4045 if ac_fn_c_try_compile "$LINENO"; then :
4046 ac_cv_prog_cc_g=yes
4047 else
4048 CFLAGS=""
4049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h. */
4051
4052 int
4053 main ()
4054 {
4055
4056 ;
4057 return 0;
4058 }
4059 _ACEOF
4060 if ac_fn_c_try_compile "$LINENO"; then :
4061
4062 else
4063 ac_c_werror_flag=$ac_save_c_werror_flag
4064 CFLAGS="-g"
4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h. */
4067
4068 int
4069 main ()
4070 {
4071
4072 ;
4073 return 0;
4074 }
4075 _ACEOF
4076 if ac_fn_c_try_compile "$LINENO"; then :
4077 ac_cv_prog_cc_g=yes
4078 fi
4079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4080 fi
4081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4082 fi
4083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084 ac_c_werror_flag=$ac_save_c_werror_flag
4085 fi
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4087 $as_echo "$ac_cv_prog_cc_g" >&6; }
4088 if test "$ac_test_CFLAGS" = set; then
4089 CFLAGS=$ac_save_CFLAGS
4090 elif test $ac_cv_prog_cc_g = yes; then
4091 if test "$GCC" = yes; then
4092 CFLAGS="-g -O2"
4093 else
4094 CFLAGS="-g"
4095 fi
4096 else
4097 if test "$GCC" = yes; then
4098 CFLAGS="-O2"
4099 else
4100 CFLAGS=
4101 fi
4102 fi
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4104 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4105 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4106 $as_echo_n "(cached) " >&6
4107 else
4108 ac_cv_prog_cc_c89=no
4109 ac_save_CC=$CC
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4112 #include <stdarg.h>
4113 #include <stdio.h>
4114 #include <sys/types.h>
4115 #include <sys/stat.h>
4116 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4117 struct buf { int x; };
4118 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4119 static char *e (p, i)
4120 char **p;
4121 int i;
4122 {
4123 return p[i];
4124 }
4125 static char *f (char * (*g) (char **, int), char **p, ...)
4126 {
4127 char *s;
4128 va_list v;
4129 va_start (v,p);
4130 s = g (p, va_arg (v,int));
4131 va_end (v);
4132 return s;
4133 }
4134
4135 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4136 function prototypes and stuff, but not '\xHH' hex character constants.
4137 These don't provoke an error unfortunately, instead are silently treated
4138 as 'x'. The following induces an error, until -std is added to get
4139 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4140 array size at least. It's necessary to write '\x00'==0 to get something
4141 that's true only with -std. */
4142 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4143
4144 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4145 inside strings and character constants. */
4146 #define FOO(x) 'x'
4147 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4148
4149 int test (int i, double x);
4150 struct s1 {int (*f) (int a);};
4151 struct s2 {int (*f) (double a);};
4152 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4153 int argc;
4154 char **argv;
4155 int
4156 main ()
4157 {
4158 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4159 ;
4160 return 0;
4161 }
4162 _ACEOF
4163 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4164 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4165 do
4166 CC="$ac_save_CC $ac_arg"
4167 if ac_fn_c_try_compile "$LINENO"; then :
4168 ac_cv_prog_cc_c89=$ac_arg
4169 fi
4170 rm -f core conftest.err conftest.$ac_objext
4171 test "x$ac_cv_prog_cc_c89" != "xno" && break
4172 done
4173 rm -f conftest.$ac_ext
4174 CC=$ac_save_CC
4175
4176 fi
4177 # AC_CACHE_VAL
4178 case "x$ac_cv_prog_cc_c89" in
4179 x)
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4181 $as_echo "none needed" >&6; } ;;
4182 xno)
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4184 $as_echo "unsupported" >&6; } ;;
4185 *)
4186 CC="$CC $ac_cv_prog_cc_c89"
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4188 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4189 esac
4190 if test "x$ac_cv_prog_cc_c89" != xno; then :
4191
4192 fi
4193
4194 ac_ext=c
4195 ac_cpp='$CPP $CPPFLAGS'
4196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4199
4200
4201 ac_ext=c
4202 ac_cpp='$CPP $CPPFLAGS'
4203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4207 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4208 # On Suns, sometimes $CPP names a directory.
4209 if test -n "$CPP" && test -d "$CPP"; then
4210 CPP=
4211 fi
4212 if test -z "$CPP"; then
4213 if test "${ac_cv_prog_CPP+set}" = set; then :
4214 $as_echo_n "(cached) " >&6
4215 else
4216 # Double quotes because CPP needs to be expanded
4217 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4218 do
4219 ac_preproc_ok=false
4220 for ac_c_preproc_warn_flag in '' yes
4221 do
4222 # Use a header file that comes with gcc, so configuring glibc
4223 # with a fresh cross-compiler works.
4224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4225 # <limits.h> exists even on freestanding compilers.
4226 # On the NeXT, cc -E runs the code through the compiler's parser,
4227 # not just through cpp. "Syntax error" is here to catch this case.
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229 /* end confdefs.h. */
4230 #ifdef __STDC__
4231 # include <limits.h>
4232 #else
4233 # include <assert.h>
4234 #endif
4235 Syntax error
4236 _ACEOF
4237 if ac_fn_c_try_cpp "$LINENO"; then :
4238
4239 else
4240 # Broken: fails on valid input.
4241 continue
4242 fi
4243 rm -f conftest.err conftest.$ac_ext
4244
4245 # OK, works on sane cases. Now check whether nonexistent headers
4246 # can be detected and how.
4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4249 #include <ac_nonexistent.h>
4250 _ACEOF
4251 if ac_fn_c_try_cpp "$LINENO"; then :
4252 # Broken: success on invalid input.
4253 continue
4254 else
4255 # Passes both tests.
4256 ac_preproc_ok=:
4257 break
4258 fi
4259 rm -f conftest.err conftest.$ac_ext
4260
4261 done
4262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4263 rm -f conftest.err conftest.$ac_ext
4264 if $ac_preproc_ok; then :
4265 break
4266 fi
4267
4268 done
4269 ac_cv_prog_CPP=$CPP
4270
4271 fi
4272 CPP=$ac_cv_prog_CPP
4273 else
4274 ac_cv_prog_CPP=$CPP
4275 fi
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4277 $as_echo "$CPP" >&6; }
4278 ac_preproc_ok=false
4279 for ac_c_preproc_warn_flag in '' yes
4280 do
4281 # Use a header file that comes with gcc, so configuring glibc
4282 # with a fresh cross-compiler works.
4283 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4284 # <limits.h> exists even on freestanding compilers.
4285 # On the NeXT, cc -E runs the code through the compiler's parser,
4286 # not just through cpp. "Syntax error" is here to catch this case.
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h. */
4289 #ifdef __STDC__
4290 # include <limits.h>
4291 #else
4292 # include <assert.h>
4293 #endif
4294 Syntax error
4295 _ACEOF
4296 if ac_fn_c_try_cpp "$LINENO"; then :
4297
4298 else
4299 # Broken: fails on valid input.
4300 continue
4301 fi
4302 rm -f conftest.err conftest.$ac_ext
4303
4304 # OK, works on sane cases. Now check whether nonexistent headers
4305 # can be detected and how.
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4308 #include <ac_nonexistent.h>
4309 _ACEOF
4310 if ac_fn_c_try_cpp "$LINENO"; then :
4311 # Broken: success on invalid input.
4312 continue
4313 else
4314 # Passes both tests.
4315 ac_preproc_ok=:
4316 break
4317 fi
4318 rm -f conftest.err conftest.$ac_ext
4319
4320 done
4321 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4322 rm -f conftest.err conftest.$ac_ext
4323 if $ac_preproc_ok; then :
4324
4325 else
4326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4328 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4329 See \`config.log' for more details." "$LINENO" 5; }
4330 fi
4331
4332 ac_ext=c
4333 ac_cpp='$CPP $CPPFLAGS'
4334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4337
4338
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4340 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4341 if test "${ac_cv_path_GREP+set}" = set; then :
4342 $as_echo_n "(cached) " >&6
4343 else
4344 if test -z "$GREP"; then
4345 ac_path_GREP_found=false
4346 # Loop through the user's path and test for each of PROGNAME-LIST
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4349 do
4350 IFS=$as_save_IFS
4351 test -z "$as_dir" && as_dir=.
4352 for ac_prog in grep ggrep; do
4353 for ac_exec_ext in '' $ac_executable_extensions; do
4354 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4355 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4356 # Check for GNU ac_path_GREP and select it if it is found.
4357 # Check for GNU $ac_path_GREP
4358 case `"$ac_path_GREP" --version 2>&1` in
4359 *GNU*)
4360 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4361 *)
4362 ac_count=0
4363 $as_echo_n 0123456789 >"conftest.in"
4364 while :
4365 do
4366 cat "conftest.in" "conftest.in" >"conftest.tmp"
4367 mv "conftest.tmp" "conftest.in"
4368 cp "conftest.in" "conftest.nl"
4369 $as_echo 'GREP' >> "conftest.nl"
4370 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4371 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4372 as_fn_arith $ac_count + 1 && ac_count=$as_val
4373 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4374 # Best one so far, save it but keep looking for a better one
4375 ac_cv_path_GREP="$ac_path_GREP"
4376 ac_path_GREP_max=$ac_count
4377 fi
4378 # 10*(2^10) chars as input seems more than enough
4379 test $ac_count -gt 10 && break
4380 done
4381 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4382 esac
4383
4384 $ac_path_GREP_found && break 3
4385 done
4386 done
4387 done
4388 IFS=$as_save_IFS
4389 if test -z "$ac_cv_path_GREP"; then
4390 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4391 fi
4392 else
4393 ac_cv_path_GREP=$GREP
4394 fi
4395
4396 fi
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4398 $as_echo "$ac_cv_path_GREP" >&6; }
4399 GREP="$ac_cv_path_GREP"
4400
4401
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4403 $as_echo_n "checking for egrep... " >&6; }
4404 if test "${ac_cv_path_EGREP+set}" = set; then :
4405 $as_echo_n "(cached) " >&6
4406 else
4407 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4408 then ac_cv_path_EGREP="$GREP -E"
4409 else
4410 if test -z "$EGREP"; then
4411 ac_path_EGREP_found=false
4412 # Loop through the user's path and test for each of PROGNAME-LIST
4413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4415 do
4416 IFS=$as_save_IFS
4417 test -z "$as_dir" && as_dir=.
4418 for ac_prog in egrep; do
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4421 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4422 # Check for GNU ac_path_EGREP and select it if it is found.
4423 # Check for GNU $ac_path_EGREP
4424 case `"$ac_path_EGREP" --version 2>&1` in
4425 *GNU*)
4426 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4427 *)
4428 ac_count=0
4429 $as_echo_n 0123456789 >"conftest.in"
4430 while :
4431 do
4432 cat "conftest.in" "conftest.in" >"conftest.tmp"
4433 mv "conftest.tmp" "conftest.in"
4434 cp "conftest.in" "conftest.nl"
4435 $as_echo 'EGREP' >> "conftest.nl"
4436 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4437 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4438 as_fn_arith $ac_count + 1 && ac_count=$as_val
4439 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4440 # Best one so far, save it but keep looking for a better one
4441 ac_cv_path_EGREP="$ac_path_EGREP"
4442 ac_path_EGREP_max=$ac_count
4443 fi
4444 # 10*(2^10) chars as input seems more than enough
4445 test $ac_count -gt 10 && break
4446 done
4447 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4448 esac
4449
4450 $ac_path_EGREP_found && break 3
4451 done
4452 done
4453 done
4454 IFS=$as_save_IFS
4455 if test -z "$ac_cv_path_EGREP"; then
4456 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4457 fi
4458 else
4459 ac_cv_path_EGREP=$EGREP
4460 fi
4461
4462 fi
4463 fi
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4465 $as_echo "$ac_cv_path_EGREP" >&6; }
4466 EGREP="$ac_cv_path_EGREP"
4467
4468
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4470 $as_echo_n "checking for ANSI C header files... " >&6; }
4471 if test "${ac_cv_header_stdc+set}" = set; then :
4472 $as_echo_n "(cached) " >&6
4473 else
4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4475 /* end confdefs.h. */
4476 #include <stdlib.h>
4477 #include <stdarg.h>
4478 #include <string.h>
4479 #include <float.h>
4480
4481 int
4482 main ()
4483 {
4484
4485 ;
4486 return 0;
4487 }
4488 _ACEOF
4489 if ac_fn_c_try_compile "$LINENO"; then :
4490 ac_cv_header_stdc=yes
4491 else
4492 ac_cv_header_stdc=no
4493 fi
4494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4495
4496 if test $ac_cv_header_stdc = yes; then
4497 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h. */
4500 #include <string.h>
4501
4502 _ACEOF
4503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4504 $EGREP "memchr" >/dev/null 2>&1; then :
4505
4506 else
4507 ac_cv_header_stdc=no
4508 fi
4509 rm -f conftest*
4510
4511 fi
4512
4513 if test $ac_cv_header_stdc = yes; then
4514 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516 /* end confdefs.h. */
4517 #include <stdlib.h>
4518
4519 _ACEOF
4520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4521 $EGREP "free" >/dev/null 2>&1; then :
4522
4523 else
4524 ac_cv_header_stdc=no
4525 fi
4526 rm -f conftest*
4527
4528 fi
4529
4530 if test $ac_cv_header_stdc = yes; then
4531 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4532 if test "$cross_compiling" = yes; then :
4533 :
4534 else
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536 /* end confdefs.h. */
4537 #include <ctype.h>
4538 #include <stdlib.h>
4539 #if ((' ' & 0x0FF) == 0x020)
4540 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4541 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4542 #else
4543 # define ISLOWER(c) \
4544 (('a' <= (c) && (c) <= 'i') \
4545 || ('j' <= (c) && (c) <= 'r') \
4546 || ('s' <= (c) && (c) <= 'z'))
4547 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4548 #endif
4549
4550 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4551 int
4552 main ()
4553 {
4554 int i;
4555 for (i = 0; i < 256; i++)
4556 if (XOR (islower (i), ISLOWER (i))
4557 || toupper (i) != TOUPPER (i))
4558 return 2;
4559 return 0;
4560 }
4561 _ACEOF
4562 if ac_fn_c_try_run "$LINENO"; then :
4563
4564 else
4565 ac_cv_header_stdc=no
4566 fi
4567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4568 conftest.$ac_objext conftest.beam conftest.$ac_ext
4569 fi
4570
4571 fi
4572 fi
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4574 $as_echo "$ac_cv_header_stdc" >&6; }
4575 if test $ac_cv_header_stdc = yes; then
4576
4577 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4578
4579 fi
4580
4581 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4582 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4583 inttypes.h stdint.h unistd.h
4584 do :
4585 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4586 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4587 "
4588 eval as_val=\$$as_ac_Header
4589 if test "x$as_val" = x""yes; then :
4590 cat >>confdefs.h <<_ACEOF
4591 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4592 _ACEOF
4593
4594 fi
4595
4596 done
4597
4598
4599
4600 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4601 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4602 MINIX=yes
4603 else
4604 MINIX=
4605 fi
4606
4607
4608 if test "$MINIX" = yes; then
4609
4610 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4611
4612
4613 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4614
4615
4616 $as_echo "#define _MINIX 1" >>confdefs.h
4617
4618
4619 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4620
4621 fi
4622
4623
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4625 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4626 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4627 $as_echo_n "(cached) " >&6
4628 else
4629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h. */
4631
4632 # define __EXTENSIONS__ 1
4633 $ac_includes_default
4634 int
4635 main ()
4636 {
4637
4638 ;
4639 return 0;
4640 }
4641 _ACEOF
4642 if ac_fn_c_try_compile "$LINENO"; then :
4643 ac_cv_safe_to_define___extensions__=yes
4644 else
4645 ac_cv_safe_to_define___extensions__=no
4646 fi
4647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4648 fi
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4650 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4651 test $ac_cv_safe_to_define___extensions__ = yes &&
4652 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4653
4654 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4655
4656 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4657
4658 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4659
4660 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4661
4662 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4663
4664 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4665
4666 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4667
4668 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4669
4670 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4671
4672 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4673
4674 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4675
4676 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4677
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4679 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4680 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
4681 $as_echo_n "(cached) " >&6
4682 else
4683 ac_cv_should_define__xopen_source=no
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h. */
4686
4687 #include <wchar.h>
4688 mbstate_t x;
4689 int
4690 main ()
4691 {
4692
4693 ;
4694 return 0;
4695 }
4696 _ACEOF
4697 if ac_fn_c_try_compile "$LINENO"; then :
4698
4699 else
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4702
4703 #define _XOPEN_SOURCE 500
4704 #include <wchar.h>
4705 mbstate_t x;
4706 int
4707 main ()
4708 {
4709
4710 ;
4711 return 0;
4712 }
4713 _ACEOF
4714 if ac_fn_c_try_compile "$LINENO"; then :
4715 ac_cv_should_define__xopen_source=yes
4716 fi
4717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4718 fi
4719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4720 fi
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4722 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
4723 test $ac_cv_should_define__xopen_source = yes &&
4724 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4737 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4738 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4739 $as_echo_n "(cached) " >&6
4740 else
4741
4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h. */
4744
4745 #ifdef __ACK__
4746 Amsterdam
4747 #endif
4748
4749 _ACEOF
4750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4751 $EGREP "Amsterdam" >/dev/null 2>&1; then :
4752 gl_cv_c_amsterdam_compiler=yes
4753 else
4754 gl_cv_c_amsterdam_compiler=no
4755 fi
4756 rm -f conftest*
4757
4758
4759 fi
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4761 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4762
4763 if test $gl_cv_c_amsterdam_compiler = yes; then
4764 if test -z "$AR"; then
4765 AR='cc -c.a'
4766 fi
4767 if test -z "$ARFLAGS"; then
4768 ARFLAGS='-o'
4769 fi
4770 else
4771 :
4772 fi
4773
4774 if test -n "$ac_tool_prefix"; then
4775 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4776 set dummy ${ac_tool_prefix}ar; ac_word=$2
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if test "${ac_cv_prog_AR+set}" = set; then :
4780 $as_echo_n "(cached) " >&6
4781 else
4782 if test -n "$AR"; then
4783 ac_cv_prog_AR="$AR" # Let the user override the test.
4784 else
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH
4787 do
4788 IFS=$as_save_IFS
4789 test -z "$as_dir" && as_dir=.
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792 ac_cv_prog_AR="${ac_tool_prefix}ar"
4793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 break 2
4795 fi
4796 done
4797 done
4798 IFS=$as_save_IFS
4799
4800 fi
4801 fi
4802 AR=$ac_cv_prog_AR
4803 if test -n "$AR"; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4805 $as_echo "$AR" >&6; }
4806 else
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4809 fi
4810
4811
4812 fi
4813 if test -z "$ac_cv_prog_AR"; then
4814 ac_ct_AR=$AR
4815 # Extract the first word of "ar", so it can be a program name with args.
4816 set dummy ar; ac_word=$2
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818 $as_echo_n "checking for $ac_word... " >&6; }
4819 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4820 $as_echo_n "(cached) " >&6
4821 else
4822 if test -n "$ac_ct_AR"; then
4823 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4824 else
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4827 do
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_prog_ac_ct_AR="ar"
4833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 break 2
4835 fi
4836 done
4837 done
4838 IFS=$as_save_IFS
4839
4840 fi
4841 fi
4842 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4843 if test -n "$ac_ct_AR"; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4845 $as_echo "$ac_ct_AR" >&6; }
4846 else
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848 $as_echo "no" >&6; }
4849 fi
4850
4851 if test "x$ac_ct_AR" = x; then
4852 AR="ar"
4853 else
4854 case $cross_compiling:$ac_tool_warned in
4855 yes:)
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4858 ac_tool_warned=yes ;;
4859 esac
4860 AR=$ac_ct_AR
4861 fi
4862 else
4863 AR="$ac_cv_prog_AR"
4864 fi
4865
4866 if test -z "$ARFLAGS"; then
4867 ARFLAGS='cr'
4868 fi
4869
4870
4871
4872 if test -z "$RANLIB"; then
4873 if test $gl_cv_c_amsterdam_compiler = yes; then
4874 RANLIB=':'
4875 else
4876 if test -n "$ac_tool_prefix"; then
4877 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4878 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4880 $as_echo_n "checking for $ac_word... " >&6; }
4881 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4882 $as_echo_n "(cached) " >&6
4883 else
4884 if test -n "$RANLIB"; then
4885 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4886 else
4887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888 for as_dir in $PATH
4889 do
4890 IFS=$as_save_IFS
4891 test -z "$as_dir" && as_dir=.
4892 for ac_exec_ext in '' $ac_executable_extensions; do
4893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4894 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4896 break 2
4897 fi
4898 done
4899 done
4900 IFS=$as_save_IFS
4901
4902 fi
4903 fi
4904 RANLIB=$ac_cv_prog_RANLIB
4905 if test -n "$RANLIB"; then
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4907 $as_echo "$RANLIB" >&6; }
4908 else
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4910 $as_echo "no" >&6; }
4911 fi
4912
4913
4914 fi
4915 if test -z "$ac_cv_prog_RANLIB"; then
4916 ac_ct_RANLIB=$RANLIB
4917 # Extract the first word of "ranlib", so it can be a program name with args.
4918 set dummy ranlib; ac_word=$2
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4920 $as_echo_n "checking for $ac_word... " >&6; }
4921 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4922 $as_echo_n "(cached) " >&6
4923 else
4924 if test -n "$ac_ct_RANLIB"; then
4925 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4926 else
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 for as_dir in $PATH
4929 do
4930 IFS=$as_save_IFS
4931 test -z "$as_dir" && as_dir=.
4932 for ac_exec_ext in '' $ac_executable_extensions; do
4933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4934 ac_cv_prog_ac_ct_RANLIB="ranlib"
4935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4936 break 2
4937 fi
4938 done
4939 done
4940 IFS=$as_save_IFS
4941
4942 fi
4943 fi
4944 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4945 if test -n "$ac_ct_RANLIB"; then
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4947 $as_echo "$ac_ct_RANLIB" >&6; }
4948 else
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4950 $as_echo "no" >&6; }
4951 fi
4952
4953 if test "x$ac_ct_RANLIB" = x; then
4954 RANLIB=":"
4955 else
4956 case $cross_compiling:$ac_tool_warned in
4957 yes:)
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4960 ac_tool_warned=yes ;;
4961 esac
4962 RANLIB=$ac_ct_RANLIB
4963 fi
4964 else
4965 RANLIB="$ac_cv_prog_RANLIB"
4966 fi
4967
4968 fi
4969 fi
4970
4971
4972 ac_aux_dir=
4973 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4974 for ac_t in install-sh install.sh shtool; do
4975 if test -f "$ac_dir/$ac_t"; then
4976 ac_aux_dir=$ac_dir
4977 ac_install_sh="$ac_aux_dir/$ac_t -c"
4978 break 2
4979 fi
4980 done
4981 done
4982 if test -z "$ac_aux_dir"; then
4983 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4984 fi
4985
4986 # These three variables are undocumented and unsupported,
4987 # and are intended to be withdrawn in a future Autoconf release.
4988 # They can cause serious problems if a builder's source tree is in a directory
4989 # whose full name contains unusual characters.
4990 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4991 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4992 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4993
4994
4995 # Make sure we can run config.sub.
4996 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4997 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4998
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5000 $as_echo_n "checking build system type... " >&6; }
5001 if test "${ac_cv_build+set}" = set; then :
5002 $as_echo_n "(cached) " >&6
5003 else
5004 ac_build_alias=$build_alias
5005 test "x$ac_build_alias" = x &&
5006 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5007 test "x$ac_build_alias" = x &&
5008 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5009 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5010 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5011
5012 fi
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5014 $as_echo "$ac_cv_build" >&6; }
5015 case $ac_cv_build in
5016 *-*-*) ;;
5017 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5018 esac
5019 build=$ac_cv_build
5020 ac_save_IFS=$IFS; IFS='-'
5021 set x $ac_cv_build
5022 shift
5023 build_cpu=$1
5024 build_vendor=$2
5025 shift; shift
5026 # Remember, the first character of IFS is used to create $*,
5027 # except with old shells:
5028 build_os=$*
5029 IFS=$ac_save_IFS
5030 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5031
5032
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5034 $as_echo_n "checking host system type... " >&6; }
5035 if test "${ac_cv_host+set}" = set; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 if test "x$host_alias" = x; then
5039 ac_cv_host=$ac_cv_build
5040 else
5041 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5042 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5043 fi
5044
5045 fi
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5047 $as_echo "$ac_cv_host" >&6; }
5048 case $ac_cv_host in
5049 *-*-*) ;;
5050 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5051 esac
5052 host=$ac_cv_host
5053 ac_save_IFS=$IFS; IFS='-'
5054 set x $ac_cv_host
5055 shift
5056 host_cpu=$1
5057 host_vendor=$2
5058 shift; shift
5059 # Remember, the first character of IFS is used to create $*,
5060 # except with old shells:
5061 host_os=$*
5062 IFS=$ac_save_IFS
5063 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5064
5065
5066
5067
5068
5069 # IEEE behaviour is the default on all CPUs except Alpha and SH
5070 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
5071 # and the GCC 4.1.2 manual).
5072 case "$host_cpu" in
5073 alpha*)
5074 # On Alpha systems, a compiler option provides the behaviour.
5075 # See the ieee(3) manual page, also available at
5076 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
5077 if test -n "$GCC"; then
5078 # GCC has the option -mieee.
5079 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
5080 CPPFLAGS="$CPPFLAGS -mieee"
5081 else
5082 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
5083 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
5084 CPPFLAGS="$CPPFLAGS -ieee"
5085 fi
5086 ;;
5087 sh*)
5088 if test -n "$GCC"; then
5089 # GCC has the option -mieee.
5090 CPPFLAGS="$CPPFLAGS -mieee"
5091 fi
5092 ;;
5093 esac
5094
5095 # Check whether --enable-largefile was given.
5096 if test "${enable_largefile+set}" = set; then :
5097 enableval=$enable_largefile;
5098 fi
5099
5100 if test "$enable_largefile" != no; then
5101
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5103 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5104 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5105 $as_echo_n "(cached) " >&6
5106 else
5107 ac_cv_sys_largefile_CC=no
5108 if test "$GCC" != yes; then
5109 ac_save_CC=$CC
5110 while :; do
5111 # IRIX 6.2 and later do not support large files by default,
5112 # so use the C compiler's -n32 option if that helps.
5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h. */
5115 #include <sys/types.h>
5116 /* Check that off_t can represent 2**63 - 1 correctly.
5117 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5118 since some C++ compilers masquerading as C compilers
5119 incorrectly reject 9223372036854775807. */
5120 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5121 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5122 && LARGE_OFF_T % 2147483647 == 1)
5123 ? 1 : -1];
5124 int
5125 main ()
5126 {
5127
5128 ;
5129 return 0;
5130 }
5131 _ACEOF
5132 if ac_fn_c_try_compile "$LINENO"; then :
5133 break
5134 fi
5135 rm -f core conftest.err conftest.$ac_objext
5136 CC="$CC -n32"
5137 if ac_fn_c_try_compile "$LINENO"; then :
5138 ac_cv_sys_largefile_CC=' -n32'; break
5139 fi
5140 rm -f core conftest.err conftest.$ac_objext
5141 break
5142 done
5143 CC=$ac_save_CC
5144 rm -f conftest.$ac_ext
5145 fi
5146 fi
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5148 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5149 if test "$ac_cv_sys_largefile_CC" != no; then
5150 CC=$CC$ac_cv_sys_largefile_CC
5151 fi
5152
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5154 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5155 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5156 $as_echo_n "(cached) " >&6
5157 else
5158 while :; do
5159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5160 /* end confdefs.h. */
5161 #include <sys/types.h>
5162 /* Check that off_t can represent 2**63 - 1 correctly.
5163 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5164 since some C++ compilers masquerading as C compilers
5165 incorrectly reject 9223372036854775807. */
5166 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5167 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5168 && LARGE_OFF_T % 2147483647 == 1)
5169 ? 1 : -1];
5170 int
5171 main ()
5172 {
5173
5174 ;
5175 return 0;
5176 }
5177 _ACEOF
5178 if ac_fn_c_try_compile "$LINENO"; then :
5179 ac_cv_sys_file_offset_bits=no; break
5180 fi
5181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183 /* end confdefs.h. */
5184 #define _FILE_OFFSET_BITS 64
5185 #include <sys/types.h>
5186 /* Check that off_t can represent 2**63 - 1 correctly.
5187 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5188 since some C++ compilers masquerading as C compilers
5189 incorrectly reject 9223372036854775807. */
5190 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5191 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5192 && LARGE_OFF_T % 2147483647 == 1)
5193 ? 1 : -1];
5194 int
5195 main ()
5196 {
5197
5198 ;
5199 return 0;
5200 }
5201 _ACEOF
5202 if ac_fn_c_try_compile "$LINENO"; then :
5203 ac_cv_sys_file_offset_bits=64; break
5204 fi
5205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5206 ac_cv_sys_file_offset_bits=unknown
5207 break
5208 done
5209 fi
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5211 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5212 case $ac_cv_sys_file_offset_bits in #(
5213 no | unknown) ;;
5214 *)
5215 cat >>confdefs.h <<_ACEOF
5216 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5217 _ACEOF
5218 ;;
5219 esac
5220 rm -rf conftest*
5221 if test $ac_cv_sys_file_offset_bits = unknown; then
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5223 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5224 if test "${ac_cv_sys_large_files+set}" = set; then :
5225 $as_echo_n "(cached) " >&6
5226 else
5227 while :; do
5228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5229 /* end confdefs.h. */
5230 #include <sys/types.h>
5231 /* Check that off_t can represent 2**63 - 1 correctly.
5232 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5233 since some C++ compilers masquerading as C compilers
5234 incorrectly reject 9223372036854775807. */
5235 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5236 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5237 && LARGE_OFF_T % 2147483647 == 1)
5238 ? 1 : -1];
5239 int
5240 main ()
5241 {
5242
5243 ;
5244 return 0;
5245 }
5246 _ACEOF
5247 if ac_fn_c_try_compile "$LINENO"; then :
5248 ac_cv_sys_large_files=no; break
5249 fi
5250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252 /* end confdefs.h. */
5253 #define _LARGE_FILES 1
5254 #include <sys/types.h>
5255 /* Check that off_t can represent 2**63 - 1 correctly.
5256 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5257 since some C++ compilers masquerading as C compilers
5258 incorrectly reject 9223372036854775807. */
5259 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5260 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5261 && LARGE_OFF_T % 2147483647 == 1)
5262 ? 1 : -1];
5263 int
5264 main ()
5265 {
5266
5267 ;
5268 return 0;
5269 }
5270 _ACEOF
5271 if ac_fn_c_try_compile "$LINENO"; then :
5272 ac_cv_sys_large_files=1; break
5273 fi
5274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5275 ac_cv_sys_large_files=unknown
5276 break
5277 done
5278 fi
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5280 $as_echo "$ac_cv_sys_large_files" >&6; }
5281 case $ac_cv_sys_large_files in #(
5282 no | unknown) ;;
5283 *)
5284 cat >>confdefs.h <<_ACEOF
5285 #define _LARGE_FILES $ac_cv_sys_large_files
5286 _ACEOF
5287 ;;
5288 esac
5289 rm -rf conftest*
5290 fi
5291
5292
5293 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
5294
5295 fi
5296
5297
5298
5299 # Pre-early section.
5300
5301
5302
5303 # Code from module absolute-header:
5304 # Code from module alloca:
5305 # Code from module alloca-opt:
5306 # Code from module canonicalize-lgpl:
5307 # Code from module chdir:
5308 # Code from module configmake:
5309 # Code from module dirent:
5310 # Code from module dirfd:
5311 # Code from module dirname-lgpl:
5312 # Code from module dosname:
5313 # Code from module double-slash-root:
5314 # Code from module errno:
5315 # Code from module extensions:
5316 # Code from module extern-inline:
5317 # Code from module flexmember:
5318 # Code from module float:
5319 # Code from module fnmatch:
5320 # Code from module fnmatch-gnu:
5321 # Code from module fpieee:
5322
5323 # Code from module fpucw:
5324 # Code from module frexp:
5325 # Code from module frexpl:
5326 # Code from module gettimeofday:
5327 # Code from module hard-locale:
5328 # Code from module include_next:
5329 # Code from module inttypes:
5330 # Code from module inttypes-incomplete:
5331 # Code from module isnand-nolibm:
5332 # Code from module isnanl-nolibm:
5333 # Code from module largefile:
5334
5335 # Code from module limits-h:
5336 # Code from module localcharset:
5337 # Code from module lstat:
5338 # Code from module malloc-posix:
5339 # Code from module malloca:
5340 # Code from module math:
5341 # Code from module mbrtowc:
5342 # Code from module mbsinit:
5343 # Code from module mbsrtowcs:
5344 # Code from module memchr:
5345 # Code from module memmem:
5346 # Code from module memmem-simple:
5347 # Code from module multiarch:
5348 # Code from module nocrash:
5349 # Code from module pathmax:
5350 # Code from module rawmemchr:
5351 # Code from module readlink:
5352 # Code from module rename:
5353 # Code from module rmdir:
5354 # Code from module same-inode:
5355 # Code from module signal-h:
5356 # Code from module snippet/_Noreturn:
5357 # Code from module snippet/arg-nonnull:
5358 # Code from module snippet/c++defs:
5359 # Code from module snippet/warn-on-use:
5360 # Code from module ssize_t:
5361 # Code from module stat:
5362 # Code from module stdbool:
5363 # Code from module stddef:
5364 # Code from module stdint:
5365 # Code from module stdio:
5366 # Code from module stdlib:
5367 # Code from module strchrnul:
5368 # Code from module streq:
5369 # Code from module string:
5370 # Code from module strnlen1:
5371 # Code from module strstr:
5372 # Code from module strstr-simple:
5373 # Code from module strtok_r:
5374 # Code from module sys_stat:
5375 # Code from module sys_time:
5376 # Code from module sys_types:
5377 # Code from module time:
5378 # Code from module unistd:
5379 # Code from module update-copyright:
5380 # Code from module verify:
5381 # Code from module wchar:
5382 # Code from module wctype-h:
5383
5384 ac_ext=c
5385 ac_cpp='$CPP $CPPFLAGS'
5386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5389 if test -n "$ac_tool_prefix"; then
5390 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5391 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393 $as_echo_n "checking for $ac_word... " >&6; }
5394 if test "${ac_cv_prog_CC+set}" = set; then :
5395 $as_echo_n "(cached) " >&6
5396 else
5397 if test -n "$CC"; then
5398 ac_cv_prog_CC="$CC" # Let the user override the test.
5399 else
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401 for as_dir in $PATH
5402 do
5403 IFS=$as_save_IFS
5404 test -z "$as_dir" && as_dir=.
5405 for ac_exec_ext in '' $ac_executable_extensions; do
5406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5407 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5409 break 2
5410 fi
5411 done
5412 done
5413 IFS=$as_save_IFS
5414
5415 fi
5416 fi
5417 CC=$ac_cv_prog_CC
5418 if test -n "$CC"; then
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5420 $as_echo "$CC" >&6; }
5421 else
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5424 fi
5425
5426
5427 fi
5428 if test -z "$ac_cv_prog_CC"; then
5429 ac_ct_CC=$CC
5430 # Extract the first word of "gcc", so it can be a program name with args.
5431 set dummy gcc; ac_word=$2
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5433 $as_echo_n "checking for $ac_word... " >&6; }
5434 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5435 $as_echo_n "(cached) " >&6
5436 else
5437 if test -n "$ac_ct_CC"; then
5438 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5439 else
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441 for as_dir in $PATH
5442 do
5443 IFS=$as_save_IFS
5444 test -z "$as_dir" && as_dir=.
5445 for ac_exec_ext in '' $ac_executable_extensions; do
5446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5447 ac_cv_prog_ac_ct_CC="gcc"
5448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5449 break 2
5450 fi
5451 done
5452 done
5453 IFS=$as_save_IFS
5454
5455 fi
5456 fi
5457 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5458 if test -n "$ac_ct_CC"; then
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5460 $as_echo "$ac_ct_CC" >&6; }
5461 else
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463 $as_echo "no" >&6; }
5464 fi
5465
5466 if test "x$ac_ct_CC" = x; then
5467 CC=""
5468 else
5469 case $cross_compiling:$ac_tool_warned in
5470 yes:)
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5473 ac_tool_warned=yes ;;
5474 esac
5475 CC=$ac_ct_CC
5476 fi
5477 else
5478 CC="$ac_cv_prog_CC"
5479 fi
5480
5481 if test -z "$CC"; then
5482 if test -n "$ac_tool_prefix"; then
5483 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5484 set dummy ${ac_tool_prefix}cc; ac_word=$2
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486 $as_echo_n "checking for $ac_word... " >&6; }
5487 if test "${ac_cv_prog_CC+set}" = set; then :
5488 $as_echo_n "(cached) " >&6
5489 else
5490 if test -n "$CC"; then
5491 ac_cv_prog_CC="$CC" # Let the user override the test.
5492 else
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494 for as_dir in $PATH
5495 do
5496 IFS=$as_save_IFS
5497 test -z "$as_dir" && as_dir=.
5498 for ac_exec_ext in '' $ac_executable_extensions; do
5499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5500 ac_cv_prog_CC="${ac_tool_prefix}cc"
5501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502 break 2
5503 fi
5504 done
5505 done
5506 IFS=$as_save_IFS
5507
5508 fi
5509 fi
5510 CC=$ac_cv_prog_CC
5511 if test -n "$CC"; then
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5513 $as_echo "$CC" >&6; }
5514 else
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516 $as_echo "no" >&6; }
5517 fi
5518
5519
5520 fi
5521 fi
5522 if test -z "$CC"; then
5523 # Extract the first word of "cc", so it can be a program name with args.
5524 set dummy cc; ac_word=$2
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5526 $as_echo_n "checking for $ac_word... " >&6; }
5527 if test "${ac_cv_prog_CC+set}" = set; then :
5528 $as_echo_n "(cached) " >&6
5529 else
5530 if test -n "$CC"; then
5531 ac_cv_prog_CC="$CC" # Let the user override the test.
5532 else
5533 ac_prog_rejected=no
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 for as_dir in $PATH
5536 do
5537 IFS=$as_save_IFS
5538 test -z "$as_dir" && as_dir=.
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5541 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5542 ac_prog_rejected=yes
5543 continue
5544 fi
5545 ac_cv_prog_CC="cc"
5546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5547 break 2
5548 fi
5549 done
5550 done
5551 IFS=$as_save_IFS
5552
5553 if test $ac_prog_rejected = yes; then
5554 # We found a bogon in the path, so make sure we never use it.
5555 set dummy $ac_cv_prog_CC
5556 shift
5557 if test $# != 0; then
5558 # We chose a different compiler from the bogus one.
5559 # However, it has the same basename, so the bogon will be chosen
5560 # first if we set CC to just the basename; use the full file name.
5561 shift
5562 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5563 fi
5564 fi
5565 fi
5566 fi
5567 CC=$ac_cv_prog_CC
5568 if test -n "$CC"; then
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5570 $as_echo "$CC" >&6; }
5571 else
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5573 $as_echo "no" >&6; }
5574 fi
5575
5576
5577 fi
5578 if test -z "$CC"; then
5579 if test -n "$ac_tool_prefix"; then
5580 for ac_prog in cl.exe
5581 do
5582 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5583 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5585 $as_echo_n "checking for $ac_word... " >&6; }
5586 if test "${ac_cv_prog_CC+set}" = set; then :
5587 $as_echo_n "(cached) " >&6
5588 else
5589 if test -n "$CC"; then
5590 ac_cv_prog_CC="$CC" # Let the user override the test.
5591 else
5592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593 for as_dir in $PATH
5594 do
5595 IFS=$as_save_IFS
5596 test -z "$as_dir" && as_dir=.
5597 for ac_exec_ext in '' $ac_executable_extensions; do
5598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5599 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5601 break 2
5602 fi
5603 done
5604 done
5605 IFS=$as_save_IFS
5606
5607 fi
5608 fi
5609 CC=$ac_cv_prog_CC
5610 if test -n "$CC"; then
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5612 $as_echo "$CC" >&6; }
5613 else
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615 $as_echo "no" >&6; }
5616 fi
5617
5618
5619 test -n "$CC" && break
5620 done
5621 fi
5622 if test -z "$CC"; then
5623 ac_ct_CC=$CC
5624 for ac_prog in cl.exe
5625 do
5626 # Extract the first word of "$ac_prog", so it can be a program name with args.
5627 set dummy $ac_prog; ac_word=$2
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5629 $as_echo_n "checking for $ac_word... " >&6; }
5630 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5631 $as_echo_n "(cached) " >&6
5632 else
5633 if test -n "$ac_ct_CC"; then
5634 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5635 else
5636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637 for as_dir in $PATH
5638 do
5639 IFS=$as_save_IFS
5640 test -z "$as_dir" && as_dir=.
5641 for ac_exec_ext in '' $ac_executable_extensions; do
5642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5643 ac_cv_prog_ac_ct_CC="$ac_prog"
5644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5645 break 2
5646 fi
5647 done
5648 done
5649 IFS=$as_save_IFS
5650
5651 fi
5652 fi
5653 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5654 if test -n "$ac_ct_CC"; then
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5656 $as_echo "$ac_ct_CC" >&6; }
5657 else
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5659 $as_echo "no" >&6; }
5660 fi
5661
5662
5663 test -n "$ac_ct_CC" && break
5664 done
5665
5666 if test "x$ac_ct_CC" = x; then
5667 CC=""
5668 else
5669 case $cross_compiling:$ac_tool_warned in
5670 yes:)
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5673 ac_tool_warned=yes ;;
5674 esac
5675 CC=$ac_ct_CC
5676 fi
5677 fi
5678
5679 fi
5680
5681
5682 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5683 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5684 as_fn_error "no acceptable C compiler found in \$PATH
5685 See \`config.log' for more details." "$LINENO" 5; }
5686
5687 # Provide some information about the compiler.
5688 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5689 set X $ac_compile
5690 ac_compiler=$2
5691 for ac_option in --version -v -V -qversion; do
5692 { { ac_try="$ac_compiler $ac_option >&5"
5693 case "(($ac_try" in
5694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695 *) ac_try_echo=$ac_try;;
5696 esac
5697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5698 $as_echo "$ac_try_echo"; } >&5
5699 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5700 ac_status=$?
5701 if test -s conftest.err; then
5702 sed '10a\
5703 ... rest of stderr output deleted ...
5704 10q' conftest.err >conftest.er1
5705 cat conftest.er1 >&5
5706 rm -f conftest.er1 conftest.err
5707 fi
5708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5709 test $ac_status = 0; }
5710 done
5711
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5713 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5714 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5715 $as_echo_n "(cached) " >&6
5716 else
5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718 /* end confdefs.h. */
5719
5720 int
5721 main ()
5722 {
5723 #ifndef __GNUC__
5724 choke me
5725 #endif
5726
5727 ;
5728 return 0;
5729 }
5730 _ACEOF
5731 if ac_fn_c_try_compile "$LINENO"; then :
5732 ac_compiler_gnu=yes
5733 else
5734 ac_compiler_gnu=no
5735 fi
5736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5737 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5738
5739 fi
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5741 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5742 if test $ac_compiler_gnu = yes; then
5743 GCC=yes
5744 else
5745 GCC=
5746 fi
5747 ac_test_CFLAGS=${CFLAGS+set}
5748 ac_save_CFLAGS=$CFLAGS
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5750 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5751 if test "${ac_cv_prog_cc_g+set}" = set; then :
5752 $as_echo_n "(cached) " >&6
5753 else
5754 ac_save_c_werror_flag=$ac_c_werror_flag
5755 ac_c_werror_flag=yes
5756 ac_cv_prog_cc_g=no
5757 CFLAGS="-g"
5758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5760
5761 int
5762 main ()
5763 {
5764
5765 ;
5766 return 0;
5767 }
5768 _ACEOF
5769 if ac_fn_c_try_compile "$LINENO"; then :
5770 ac_cv_prog_cc_g=yes
5771 else
5772 CFLAGS=""
5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774 /* end confdefs.h. */
5775
5776 int
5777 main ()
5778 {
5779
5780 ;
5781 return 0;
5782 }
5783 _ACEOF
5784 if ac_fn_c_try_compile "$LINENO"; then :
5785
5786 else
5787 ac_c_werror_flag=$ac_save_c_werror_flag
5788 CFLAGS="-g"
5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5791
5792 int
5793 main ()
5794 {
5795
5796 ;
5797 return 0;
5798 }
5799 _ACEOF
5800 if ac_fn_c_try_compile "$LINENO"; then :
5801 ac_cv_prog_cc_g=yes
5802 fi
5803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5804 fi
5805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5806 fi
5807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5808 ac_c_werror_flag=$ac_save_c_werror_flag
5809 fi
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5811 $as_echo "$ac_cv_prog_cc_g" >&6; }
5812 if test "$ac_test_CFLAGS" = set; then
5813 CFLAGS=$ac_save_CFLAGS
5814 elif test $ac_cv_prog_cc_g = yes; then
5815 if test "$GCC" = yes; then
5816 CFLAGS="-g -O2"
5817 else
5818 CFLAGS="-g"
5819 fi
5820 else
5821 if test "$GCC" = yes; then
5822 CFLAGS="-O2"
5823 else
5824 CFLAGS=
5825 fi
5826 fi
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5828 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5829 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5830 $as_echo_n "(cached) " >&6
5831 else
5832 ac_cv_prog_cc_c89=no
5833 ac_save_CC=$CC
5834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835 /* end confdefs.h. */
5836 #include <stdarg.h>
5837 #include <stdio.h>
5838 #include <sys/types.h>
5839 #include <sys/stat.h>
5840 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5841 struct buf { int x; };
5842 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5843 static char *e (p, i)
5844 char **p;
5845 int i;
5846 {
5847 return p[i];
5848 }
5849 static char *f (char * (*g) (char **, int), char **p, ...)
5850 {
5851 char *s;
5852 va_list v;
5853 va_start (v,p);
5854 s = g (p, va_arg (v,int));
5855 va_end (v);
5856 return s;
5857 }
5858
5859 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5860 function prototypes and stuff, but not '\xHH' hex character constants.
5861 These don't provoke an error unfortunately, instead are silently treated
5862 as 'x'. The following induces an error, until -std is added to get
5863 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5864 array size at least. It's necessary to write '\x00'==0 to get something
5865 that's true only with -std. */
5866 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5867
5868 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5869 inside strings and character constants. */
5870 #define FOO(x) 'x'
5871 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5872
5873 int test (int i, double x);
5874 struct s1 {int (*f) (int a);};
5875 struct s2 {int (*f) (double a);};
5876 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5877 int argc;
5878 char **argv;
5879 int
5880 main ()
5881 {
5882 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5883 ;
5884 return 0;
5885 }
5886 _ACEOF
5887 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5888 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5889 do
5890 CC="$ac_save_CC $ac_arg"
5891 if ac_fn_c_try_compile "$LINENO"; then :
5892 ac_cv_prog_cc_c89=$ac_arg
5893 fi
5894 rm -f core conftest.err conftest.$ac_objext
5895 test "x$ac_cv_prog_cc_c89" != "xno" && break
5896 done
5897 rm -f conftest.$ac_ext
5898 CC=$ac_save_CC
5899
5900 fi
5901 # AC_CACHE_VAL
5902 case "x$ac_cv_prog_cc_c89" in
5903 x)
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5905 $as_echo "none needed" >&6; } ;;
5906 xno)
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5908 $as_echo "unsupported" >&6; } ;;
5909 *)
5910 CC="$CC $ac_cv_prog_cc_c89"
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5912 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5913 esac
5914 if test "x$ac_cv_prog_cc_c89" != xno; then :
5915
5916 fi
5917
5918 ac_ext=c
5919 ac_cpp='$CPP $CPPFLAGS'
5920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5923
5924
5925 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5926
5927
5928 ac_aux_dir=
5929 for ac_dir in ../.. "$srcdir"/../..; do
5930 for ac_t in install-sh install.sh shtool; do
5931 if test -f "$ac_dir/$ac_t"; then
5932 ac_aux_dir=$ac_dir
5933 ac_install_sh="$ac_aux_dir/$ac_t -c"
5934 break 2
5935 fi
5936 done
5937 done
5938 if test -z "$ac_aux_dir"; then
5939 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5940 fi
5941
5942 # These three variables are undocumented and unsupported,
5943 # and are intended to be withdrawn in a future Autoconf release.
5944 # They can cause serious problems if a builder's source tree is in a directory
5945 # whose full name contains unusual characters.
5946 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5947 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5948 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5949
5950
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5952 $as_echo_n "checking target system type... " >&6; }
5953 if test "${ac_cv_target+set}" = set; then :
5954 $as_echo_n "(cached) " >&6
5955 else
5956 if test "x$target_alias" = x; then
5957 ac_cv_target=$ac_cv_host
5958 else
5959 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5960 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5961 fi
5962
5963 fi
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5965 $as_echo "$ac_cv_target" >&6; }
5966 case $ac_cv_target in
5967 *-*-*) ;;
5968 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5969 esac
5970 target=$ac_cv_target
5971 ac_save_IFS=$IFS; IFS='-'
5972 set x $ac_cv_target
5973 shift
5974 target_cpu=$1
5975 target_vendor=$2
5976 shift; shift
5977 # Remember, the first character of IFS is used to create $*,
5978 # except with old shells:
5979 target_os=$*
5980 IFS=$ac_save_IFS
5981 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5982
5983
5984 # The aliases save the names the user supplied, while $host etc.
5985 # will get canonicalized.
5986 test -n "$target_alias" &&
5987 test "$program_prefix$program_suffix$program_transform_name" = \
5988 NONENONEs,x,x, &&
5989 program_prefix=${target_alias}-
5990
5991
5992
5993
5994
5995
5996
5997 LIBC_FATAL_STDERR_=1
5998 export LIBC_FATAL_STDERR_
5999
6000 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6001 # for constant arguments. Useless!
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6003 $as_echo_n "checking for working alloca.h... " >&6; }
6004 if test "${ac_cv_working_alloca_h+set}" = set; then :
6005 $as_echo_n "(cached) " >&6
6006 else
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6009 #include <alloca.h>
6010 int
6011 main ()
6012 {
6013 char *p = (char *) alloca (2 * sizeof (int));
6014 if (p) return 0;
6015 ;
6016 return 0;
6017 }
6018 _ACEOF
6019 if ac_fn_c_try_link "$LINENO"; then :
6020 ac_cv_working_alloca_h=yes
6021 else
6022 ac_cv_working_alloca_h=no
6023 fi
6024 rm -f core conftest.err conftest.$ac_objext \
6025 conftest$ac_exeext conftest.$ac_ext
6026 fi
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6028 $as_echo "$ac_cv_working_alloca_h" >&6; }
6029 if test $ac_cv_working_alloca_h = yes; then
6030
6031 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6032
6033 fi
6034
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6036 $as_echo_n "checking for alloca... " >&6; }
6037 if test "${ac_cv_func_alloca_works+set}" = set; then :
6038 $as_echo_n "(cached) " >&6
6039 else
6040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6041 /* end confdefs.h. */
6042 #ifdef __GNUC__
6043 # define alloca __builtin_alloca
6044 #else
6045 # ifdef _MSC_VER
6046 # include <malloc.h>
6047 # define alloca _alloca
6048 # else
6049 # ifdef HAVE_ALLOCA_H
6050 # include <alloca.h>
6051 # else
6052 # ifdef _AIX
6053 #pragma alloca
6054 # else
6055 # ifndef alloca /* predefined by HP cc +Olibcalls */
6056 char *alloca ();
6057 # endif
6058 # endif
6059 # endif
6060 # endif
6061 #endif
6062
6063 int
6064 main ()
6065 {
6066 char *p = (char *) alloca (1);
6067 if (p) return 0;
6068 ;
6069 return 0;
6070 }
6071 _ACEOF
6072 if ac_fn_c_try_link "$LINENO"; then :
6073 ac_cv_func_alloca_works=yes
6074 else
6075 ac_cv_func_alloca_works=no
6076 fi
6077 rm -f core conftest.err conftest.$ac_objext \
6078 conftest$ac_exeext conftest.$ac_ext
6079 fi
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6081 $as_echo "$ac_cv_func_alloca_works" >&6; }
6082
6083 if test $ac_cv_func_alloca_works = yes; then
6084
6085 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6086
6087 else
6088 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6089 # that cause trouble. Some versions do not even contain alloca or
6090 # contain a buggy version. If you still want to use their alloca,
6091 # use ar to extract alloca.o from them instead of compiling alloca.c.
6092
6093
6094
6095
6096
6097 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6098
6099 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6100
6101
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
6103 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
6104 if test "${ac_cv_os_cray+set}" = set; then :
6105 $as_echo_n "(cached) " >&6
6106 else
6107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6109 #if defined CRAY && ! defined CRAY2
6110 webecray
6111 #else
6112 wenotbecray
6113 #endif
6114
6115 _ACEOF
6116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6117 $EGREP "webecray" >/dev/null 2>&1; then :
6118 ac_cv_os_cray=yes
6119 else
6120 ac_cv_os_cray=no
6121 fi
6122 rm -f conftest*
6123
6124 fi
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6126 $as_echo "$ac_cv_os_cray" >&6; }
6127 if test $ac_cv_os_cray = yes; then
6128 for ac_func in _getb67 GETB67 getb67; do
6129 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6130 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6131 eval as_val=\$$as_ac_var
6132 if test "x$as_val" = x""yes; then :
6133
6134 cat >>confdefs.h <<_ACEOF
6135 #define CRAY_STACKSEG_END $ac_func
6136 _ACEOF
6137
6138 break
6139 fi
6140
6141 done
6142 fi
6143
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6145 $as_echo_n "checking stack direction for C alloca... " >&6; }
6146 if test "${ac_cv_c_stack_direction+set}" = set; then :
6147 $as_echo_n "(cached) " >&6
6148 else
6149 if test "$cross_compiling" = yes; then :
6150 ac_cv_c_stack_direction=0
6151 else
6152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153 /* end confdefs.h. */
6154 $ac_includes_default
6155 int
6156 find_stack_direction (int *addr, int depth)
6157 {
6158 int dir, dummy = 0;
6159 if (! addr)
6160 addr = &dummy;
6161 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6162 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6163 return dir + dummy;
6164 }
6165
6166 int
6167 main (int argc, char **argv)
6168 {
6169 return find_stack_direction (0, argc + !argv + 20) < 0;
6170 }
6171 _ACEOF
6172 if ac_fn_c_try_run "$LINENO"; then :
6173 ac_cv_c_stack_direction=1
6174 else
6175 ac_cv_c_stack_direction=-1
6176 fi
6177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6178 conftest.$ac_objext conftest.beam conftest.$ac_ext
6179 fi
6180
6181 fi
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6183 $as_echo "$ac_cv_c_stack_direction" >&6; }
6184 cat >>confdefs.h <<_ACEOF
6185 #define STACK_DIRECTION $ac_cv_c_stack_direction
6186 _ACEOF
6187
6188
6189 fi
6190
6191
6192 GNULIB__EXIT=0;
6193 GNULIB_ATOLL=0;
6194 GNULIB_CALLOC_POSIX=0;
6195 GNULIB_CANONICALIZE_FILE_NAME=0;
6196 GNULIB_GETLOADAVG=0;
6197 GNULIB_GETSUBOPT=0;
6198 GNULIB_GRANTPT=0;
6199 GNULIB_MALLOC_POSIX=0;
6200 GNULIB_MBTOWC=0;
6201 GNULIB_MKDTEMP=0;
6202 GNULIB_MKOSTEMP=0;
6203 GNULIB_MKOSTEMPS=0;
6204 GNULIB_MKSTEMP=0;
6205 GNULIB_MKSTEMPS=0;
6206 GNULIB_POSIX_OPENPT=0;
6207 GNULIB_PTSNAME=0;
6208 GNULIB_PTSNAME_R=0;
6209 GNULIB_PUTENV=0;
6210 GNULIB_QSORT_R=0;
6211 GNULIB_RANDOM=0;
6212 GNULIB_RANDOM_R=0;
6213 GNULIB_REALLOC_POSIX=0;
6214 GNULIB_REALPATH=0;
6215 GNULIB_RPMATCH=0;
6216 GNULIB_SECURE_GETENV=0;
6217 GNULIB_SETENV=0;
6218 GNULIB_STRTOD=0;
6219 GNULIB_STRTOLL=0;
6220 GNULIB_STRTOULL=0;
6221 GNULIB_SYSTEM_POSIX=0;
6222 GNULIB_UNLOCKPT=0;
6223 GNULIB_UNSETENV=0;
6224 GNULIB_WCTOMB=0;
6225 HAVE__EXIT=1;
6226 HAVE_ATOLL=1;
6227 HAVE_CANONICALIZE_FILE_NAME=1;
6228 HAVE_DECL_GETLOADAVG=1;
6229 HAVE_GETSUBOPT=1;
6230 HAVE_GRANTPT=1;
6231 HAVE_MKDTEMP=1;
6232 HAVE_MKOSTEMP=1;
6233 HAVE_MKOSTEMPS=1;
6234 HAVE_MKSTEMP=1;
6235 HAVE_MKSTEMPS=1;
6236 HAVE_POSIX_OPENPT=1;
6237 HAVE_PTSNAME=1;
6238 HAVE_PTSNAME_R=1;
6239 HAVE_QSORT_R=1;
6240 HAVE_RANDOM=1;
6241 HAVE_RANDOM_H=1;
6242 HAVE_RANDOM_R=1;
6243 HAVE_REALPATH=1;
6244 HAVE_RPMATCH=1;
6245 HAVE_SECURE_GETENV=1;
6246 HAVE_SETENV=1;
6247 HAVE_DECL_SETENV=1;
6248 HAVE_STRTOD=1;
6249 HAVE_STRTOLL=1;
6250 HAVE_STRTOULL=1;
6251 HAVE_STRUCT_RANDOM_DATA=1;
6252 HAVE_SYS_LOADAVG_H=0;
6253 HAVE_UNLOCKPT=1;
6254 HAVE_DECL_UNSETENV=1;
6255 REPLACE_CALLOC=0;
6256 REPLACE_CANONICALIZE_FILE_NAME=0;
6257 REPLACE_MALLOC=0;
6258 REPLACE_MBTOWC=0;
6259 REPLACE_MKSTEMP=0;
6260 REPLACE_PTSNAME=0;
6261 REPLACE_PTSNAME_R=0;
6262 REPLACE_PUTENV=0;
6263 REPLACE_QSORT_R=0;
6264 REPLACE_RANDOM_R=0;
6265 REPLACE_REALLOC=0;
6266 REPLACE_REALPATH=0;
6267 REPLACE_SETENV=0;
6268 REPLACE_STRTOD=0;
6269 REPLACE_UNSETENV=0;
6270 REPLACE_WCTOMB=0;
6271
6272
6273
6274
6275 for ac_func in $ac_func_list
6276 do :
6277 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6278 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6279 eval as_val=\$$as_ac_var
6280 if test "x$as_val" = x""yes; then :
6281 cat >>confdefs.h <<_ACEOF
6282 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6283 _ACEOF
6284
6285 fi
6286 done
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
6297 $as_echo_n "checking whether // is distinct from /... " >&6; }
6298 if test "${gl_cv_double_slash_root+set}" = set; then :
6299 $as_echo_n "(cached) " >&6
6300 else
6301 if test x"$cross_compiling" = xyes ; then
6302 # When cross-compiling, there is no way to tell whether // is special
6303 # short of a list of hosts. However, the only known hosts to date
6304 # that have a distinct // are Apollo DomainOS (too old to port to),
6305 # Cygwin, and z/OS. If anyone knows of another system for which // has
6306 # special semantics and is distinct from /, please report it to
6307 # <bug-gnulib@gnu.org>.
6308 case $host in
6309 *-cygwin | i370-ibm-openedition)
6310 gl_cv_double_slash_root=yes ;;
6311 *)
6312 # Be optimistic and assume that / and // are the same when we
6313 # don't know.
6314 gl_cv_double_slash_root='unknown, assuming no' ;;
6315 esac
6316 else
6317 set x `ls -di / // 2>/dev/null`
6318 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
6319 gl_cv_double_slash_root=no
6320 else
6321 gl_cv_double_slash_root=yes
6322 fi
6323 fi
6324 fi
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
6326 $as_echo "$gl_cv_double_slash_root" >&6; }
6327 if test "$gl_cv_double_slash_root" = yes; then
6328
6329 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
6330
6331 fi
6332
6333
6334
6335
6336
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
6338 $as_echo_n "checking whether realpath works... " >&6; }
6339 if test "${gl_cv_func_realpath_works+set}" = set; then :
6340 $as_echo_n "(cached) " >&6
6341 else
6342
6343 touch conftest.a
6344 mkdir conftest.d
6345 if test "$cross_compiling" = yes; then :
6346 case "$host_os" in
6347 # Guess yes on glibc systems.
6348 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
6349 # If we don't know, assume the worst.
6350 *) gl_cv_func_realpath_works="guessing no" ;;
6351 esac
6352
6353 else
6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6356
6357
6358
6359 #include <stdlib.h>
6360 #if defined __MACH__ && defined __APPLE__
6361 /* Avoid a crash on Mac OS X. */
6362 #include <mach/mach.h>
6363 #include <mach/mach_error.h>
6364 #include <mach/thread_status.h>
6365 #include <mach/exception.h>
6366 #include <mach/task.h>
6367 #include <pthread.h>
6368 /* The exception port on which our thread listens. */
6369 static mach_port_t our_exception_port;
6370 /* The main function of the thread listening for exceptions of type
6371 EXC_BAD_ACCESS. */
6372 static void *
6373 mach_exception_thread (void *arg)
6374 {
6375 /* Buffer for a message to be received. */
6376 struct {
6377 mach_msg_header_t head;
6378 mach_msg_body_t msgh_body;
6379 char data[1024];
6380 } msg;
6381 mach_msg_return_t retval;
6382 /* Wait for a message on the exception port. */
6383 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
6384 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
6385 if (retval != MACH_MSG_SUCCESS)
6386 abort ();
6387 exit (1);
6388 }
6389 static void
6390 nocrash_init (void)
6391 {
6392 mach_port_t self = mach_task_self ();
6393 /* Allocate a port on which the thread shall listen for exceptions. */
6394 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
6395 == KERN_SUCCESS) {
6396 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
6397 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
6398 MACH_MSG_TYPE_MAKE_SEND)
6399 == KERN_SUCCESS) {
6400 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
6401 for us. */
6402 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
6403 /* Create the thread listening on the exception port. */
6404 pthread_attr_t attr;
6405 pthread_t thread;
6406 if (pthread_attr_init (&attr) == 0
6407 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
6408 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
6409 pthread_attr_destroy (&attr);
6410 /* Replace the exception port info for these exceptions with our own.
6411 Note that we replace the exception port for the entire task, not only
6412 for a particular thread. This has the effect that when our exception
6413 port gets the message, the thread specific exception port has already
6414 been asked, and we don't need to bother about it.
6415 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
6416 task_set_exception_ports (self, mask, our_exception_port,
6417 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
6418 }
6419 }
6420 }
6421 }
6422 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
6423 /* Avoid a crash on native Windows. */
6424 #define WIN32_LEAN_AND_MEAN
6425 #include <windows.h>
6426 #include <winerror.h>
6427 static LONG WINAPI
6428 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
6429 {
6430 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
6431 {
6432 case EXCEPTION_ACCESS_VIOLATION:
6433 case EXCEPTION_IN_PAGE_ERROR:
6434 case EXCEPTION_STACK_OVERFLOW:
6435 case EXCEPTION_GUARD_PAGE:
6436 case EXCEPTION_PRIV_INSTRUCTION:
6437 case EXCEPTION_ILLEGAL_INSTRUCTION:
6438 case EXCEPTION_DATATYPE_MISALIGNMENT:
6439 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
6440 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
6441 exit (1);
6442 }
6443 return EXCEPTION_CONTINUE_SEARCH;
6444 }
6445 static void
6446 nocrash_init (void)
6447 {
6448 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
6449 }
6450 #else
6451 /* Avoid a crash on POSIX systems. */
6452 #include <signal.h>
6453 #include <unistd.h>
6454 /* A POSIX signal handler. */
6455 static void
6456 exception_handler (int sig)
6457 {
6458 _exit (1);
6459 }
6460 static void
6461 nocrash_init (void)
6462 {
6463 #ifdef SIGSEGV
6464 signal (SIGSEGV, exception_handler);
6465 #endif
6466 #ifdef SIGBUS
6467 signal (SIGBUS, exception_handler);
6468 #endif
6469 }
6470 #endif
6471
6472 #include <stdlib.h>
6473 #include <string.h>
6474
6475 int
6476 main ()
6477 {
6478
6479 int result = 0;
6480 {
6481 char *name = realpath ("conftest.a", NULL);
6482 if (!(name && *name == '/'))
6483 result |= 1;
6484 free (name);
6485 }
6486 {
6487 char *name = realpath ("conftest.b/../conftest.a", NULL);
6488 if (name != NULL)
6489 result |= 2;
6490 free (name);
6491 }
6492 {
6493 char *name = realpath ("conftest.a/", NULL);
6494 if (name != NULL)
6495 result |= 4;
6496 free (name);
6497 }
6498 {
6499 char *name1 = realpath (".", NULL);
6500 char *name2 = realpath ("conftest.d//./..", NULL);
6501 if (! name1 || ! name2 || strcmp (name1, name2))
6502 result |= 8;
6503 free (name1);
6504 free (name2);
6505 }
6506 return result;
6507
6508 ;
6509 return 0;
6510 }
6511
6512 _ACEOF
6513 if ac_fn_c_try_run "$LINENO"; then :
6514 gl_cv_func_realpath_works=yes
6515 else
6516 gl_cv_func_realpath_works=no
6517 fi
6518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6519 conftest.$ac_objext conftest.beam conftest.$ac_ext
6520 fi
6521
6522 rm -rf conftest.a conftest.d
6523
6524 fi
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
6526 $as_echo "$gl_cv_func_realpath_works" >&6; }
6527 case "$gl_cv_func_realpath_works" in
6528 *yes)
6529
6530 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
6531
6532 ;;
6533 esac
6534
6535
6536
6537
6538 for ac_header in $ac_header_list
6539 do :
6540 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6541 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6542 "
6543 eval as_val=\$$as_ac_Header
6544 if test "x$as_val" = x""yes; then :
6545 cat >>confdefs.h <<_ACEOF
6546 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6547 _ACEOF
6548
6549 fi
6550
6551 done
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563 GNULIB_CHDIR=0;
6564 GNULIB_CHOWN=0;
6565 GNULIB_CLOSE=0;
6566 GNULIB_DUP=0;
6567 GNULIB_DUP2=0;
6568 GNULIB_DUP3=0;
6569 GNULIB_ENVIRON=0;
6570 GNULIB_EUIDACCESS=0;
6571 GNULIB_FACCESSAT=0;
6572 GNULIB_FCHDIR=0;
6573 GNULIB_FCHOWNAT=0;
6574 GNULIB_FDATASYNC=0;
6575 GNULIB_FSYNC=0;
6576 GNULIB_FTRUNCATE=0;
6577 GNULIB_GETCWD=0;
6578 GNULIB_GETDOMAINNAME=0;
6579 GNULIB_GETDTABLESIZE=0;
6580 GNULIB_GETGROUPS=0;
6581 GNULIB_GETHOSTNAME=0;
6582 GNULIB_GETLOGIN=0;
6583 GNULIB_GETLOGIN_R=0;
6584 GNULIB_GETPAGESIZE=0;
6585 GNULIB_GETUSERSHELL=0;
6586 GNULIB_GROUP_MEMBER=0;
6587 GNULIB_ISATTY=0;
6588 GNULIB_LCHOWN=0;
6589 GNULIB_LINK=0;
6590 GNULIB_LINKAT=0;
6591 GNULIB_LSEEK=0;
6592 GNULIB_PIPE=0;
6593 GNULIB_PIPE2=0;
6594 GNULIB_PREAD=0;
6595 GNULIB_PWRITE=0;
6596 GNULIB_READ=0;
6597 GNULIB_READLINK=0;
6598 GNULIB_READLINKAT=0;
6599 GNULIB_RMDIR=0;
6600 GNULIB_SETHOSTNAME=0;
6601 GNULIB_SLEEP=0;
6602 GNULIB_SYMLINK=0;
6603 GNULIB_SYMLINKAT=0;
6604 GNULIB_TTYNAME_R=0;
6605 GNULIB_UNISTD_H_NONBLOCKING=0;
6606 GNULIB_UNISTD_H_SIGPIPE=0;
6607 GNULIB_UNLINK=0;
6608 GNULIB_UNLINKAT=0;
6609 GNULIB_USLEEP=0;
6610 GNULIB_WRITE=0;
6611 HAVE_CHOWN=1;
6612 HAVE_DUP2=1;
6613 HAVE_DUP3=1;
6614 HAVE_EUIDACCESS=1;
6615 HAVE_FACCESSAT=1;
6616 HAVE_FCHDIR=1;
6617 HAVE_FCHOWNAT=1;
6618 HAVE_FDATASYNC=1;
6619 HAVE_FSYNC=1;
6620 HAVE_FTRUNCATE=1;
6621 HAVE_GETDTABLESIZE=1;
6622 HAVE_GETGROUPS=1;
6623 HAVE_GETHOSTNAME=1;
6624 HAVE_GETLOGIN=1;
6625 HAVE_GETPAGESIZE=1;
6626 HAVE_GROUP_MEMBER=1;
6627 HAVE_LCHOWN=1;
6628 HAVE_LINK=1;
6629 HAVE_LINKAT=1;
6630 HAVE_PIPE=1;
6631 HAVE_PIPE2=1;
6632 HAVE_PREAD=1;
6633 HAVE_PWRITE=1;
6634 HAVE_READLINK=1;
6635 HAVE_READLINKAT=1;
6636 HAVE_SETHOSTNAME=1;
6637 HAVE_SLEEP=1;
6638 HAVE_SYMLINK=1;
6639 HAVE_SYMLINKAT=1;
6640 HAVE_UNLINKAT=1;
6641 HAVE_USLEEP=1;
6642 HAVE_DECL_ENVIRON=1;
6643 HAVE_DECL_FCHDIR=1;
6644 HAVE_DECL_FDATASYNC=1;
6645 HAVE_DECL_GETDOMAINNAME=1;
6646 HAVE_DECL_GETLOGIN_R=1;
6647 HAVE_DECL_GETPAGESIZE=1;
6648 HAVE_DECL_GETUSERSHELL=1;
6649 HAVE_DECL_SETHOSTNAME=1;
6650 HAVE_DECL_TTYNAME_R=1;
6651 HAVE_OS_H=0;
6652 HAVE_SYS_PARAM_H=0;
6653 REPLACE_CHOWN=0;
6654 REPLACE_CLOSE=0;
6655 REPLACE_DUP=0;
6656 REPLACE_DUP2=0;
6657 REPLACE_FCHOWNAT=0;
6658 REPLACE_FTRUNCATE=0;
6659 REPLACE_GETCWD=0;
6660 REPLACE_GETDOMAINNAME=0;
6661 REPLACE_GETDTABLESIZE=0;
6662 REPLACE_GETLOGIN_R=0;
6663 REPLACE_GETGROUPS=0;
6664 REPLACE_GETPAGESIZE=0;
6665 REPLACE_ISATTY=0;
6666 REPLACE_LCHOWN=0;
6667 REPLACE_LINK=0;
6668 REPLACE_LINKAT=0;
6669 REPLACE_LSEEK=0;
6670 REPLACE_PREAD=0;
6671 REPLACE_PWRITE=0;
6672 REPLACE_READ=0;
6673 REPLACE_READLINK=0;
6674 REPLACE_READLINKAT=0;
6675 REPLACE_RMDIR=0;
6676 REPLACE_SLEEP=0;
6677 REPLACE_SYMLINK=0;
6678 REPLACE_SYMLINKAT=0;
6679 REPLACE_TTYNAME_R=0;
6680 REPLACE_UNLINK=0;
6681 REPLACE_UNLINKAT=0;
6682 REPLACE_USLEEP=0;
6683 REPLACE_WRITE=0;
6684 UNISTD_H_HAVE_WINSOCK2_H=0;
6685 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
6686
6687
6688
6689 GNULIB_OPENDIR=0;
6690 GNULIB_READDIR=0;
6691 GNULIB_REWINDDIR=0;
6692 GNULIB_CLOSEDIR=0;
6693 GNULIB_DIRFD=0;
6694 GNULIB_FDOPENDIR=0;
6695 GNULIB_SCANDIR=0;
6696 GNULIB_ALPHASORT=0;
6697 HAVE_OPENDIR=1;
6698 HAVE_READDIR=1;
6699 HAVE_REWINDDIR=1;
6700 HAVE_CLOSEDIR=1;
6701 HAVE_DECL_DIRFD=1;
6702 HAVE_DECL_FDOPENDIR=1;
6703 HAVE_FDOPENDIR=1;
6704 HAVE_SCANDIR=1;
6705 HAVE_ALPHASORT=1;
6706 REPLACE_OPENDIR=0;
6707 REPLACE_CLOSEDIR=0;
6708 REPLACE_DIRFD=0;
6709 REPLACE_FDOPENDIR=0;
6710
6711
6712
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6714 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6715 if test "${gl_cv_have_include_next+set}" = set; then :
6716 $as_echo_n "(cached) " >&6
6717 else
6718 rm -rf conftestd1a conftestd1b conftestd2
6719 mkdir conftestd1a conftestd1b conftestd2
6720 cat <<EOF > conftestd1a/conftest.h
6721 #define DEFINED_IN_CONFTESTD1
6722 #include_next <conftest.h>
6723 #ifdef DEFINED_IN_CONFTESTD2
6724 int foo;
6725 #else
6726 #error "include_next doesn't work"
6727 #endif
6728 EOF
6729 cat <<EOF > conftestd1b/conftest.h
6730 #define DEFINED_IN_CONFTESTD1
6731 #include <stdio.h>
6732 #include_next <conftest.h>
6733 #ifdef DEFINED_IN_CONFTESTD2
6734 int foo;
6735 #else
6736 #error "include_next doesn't work"
6737 #endif
6738 EOF
6739 cat <<EOF > conftestd2/conftest.h
6740 #ifndef DEFINED_IN_CONFTESTD1
6741 #error "include_next test doesn't work"
6742 #endif
6743 #define DEFINED_IN_CONFTESTD2
6744 EOF
6745 gl_save_CPPFLAGS="$CPPFLAGS"
6746 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748 /* end confdefs.h. */
6749 #include <conftest.h>
6750 _ACEOF
6751 if ac_fn_c_try_compile "$LINENO"; then :
6752 gl_cv_have_include_next=yes
6753 else
6754 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756 /* end confdefs.h. */
6757 #include <conftest.h>
6758 _ACEOF
6759 if ac_fn_c_try_compile "$LINENO"; then :
6760 gl_cv_have_include_next=buggy
6761 else
6762 gl_cv_have_include_next=no
6763 fi
6764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6765
6766 fi
6767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 CPPFLAGS="$gl_save_CPPFLAGS"
6769 rm -rf conftestd1a conftestd1b conftestd2
6770
6771 fi
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6773 $as_echo "$gl_cv_have_include_next" >&6; }
6774 PRAGMA_SYSTEM_HEADER=
6775 if test $gl_cv_have_include_next = yes; then
6776 INCLUDE_NEXT=include_next
6777 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6778 if test -n "$GCC"; then
6779 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6780 fi
6781 else
6782 if test $gl_cv_have_include_next = buggy; then
6783 INCLUDE_NEXT=include
6784 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6785 else
6786 INCLUDE_NEXT=include
6787 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6788 fi
6789 fi
6790
6791
6792
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
6794 $as_echo_n "checking whether system header files limit the line length... " >&6; }
6795 if test "${gl_cv_pragma_columns+set}" = set; then :
6796 $as_echo_n "(cached) " >&6
6797 else
6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h. */
6800
6801 #ifdef __TANDEM
6802 choke me
6803 #endif
6804
6805 _ACEOF
6806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6807 $EGREP "choke me" >/dev/null 2>&1; then :
6808 gl_cv_pragma_columns=yes
6809 else
6810 gl_cv_pragma_columns=no
6811 fi
6812 rm -f conftest*
6813
6814
6815 fi
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
6817 $as_echo "$gl_cv_pragma_columns" >&6; }
6818 if test $gl_cv_pragma_columns = yes; then
6819 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
6820 else
6821 PRAGMA_COLUMNS=
6822 fi
6823
6824
6825
6826
6827
6828
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
6830 $as_echo_n "checking for complete errno.h... " >&6; }
6831 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
6832 $as_echo_n "(cached) " >&6
6833 else
6834
6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836 /* end confdefs.h. */
6837
6838 #include <errno.h>
6839 #if !defined ETXTBSY
6840 booboo
6841 #endif
6842 #if !defined ENOMSG
6843 booboo
6844 #endif
6845 #if !defined EIDRM
6846 booboo
6847 #endif
6848 #if !defined ENOLINK
6849 booboo
6850 #endif
6851 #if !defined EPROTO
6852 booboo
6853 #endif
6854 #if !defined EMULTIHOP
6855 booboo
6856 #endif
6857 #if !defined EBADMSG
6858 booboo
6859 #endif
6860 #if !defined EOVERFLOW
6861 booboo
6862 #endif
6863 #if !defined ENOTSUP
6864 booboo
6865 #endif
6866 #if !defined ENETRESET
6867 booboo
6868 #endif
6869 #if !defined ECONNABORTED
6870 booboo
6871 #endif
6872 #if !defined ESTALE
6873 booboo
6874 #endif
6875 #if !defined EDQUOT
6876 booboo
6877 #endif
6878 #if !defined ECANCELED
6879 booboo
6880 #endif
6881 #if !defined EOWNERDEAD
6882 booboo
6883 #endif
6884 #if !defined ENOTRECOVERABLE
6885 booboo
6886 #endif
6887 #if !defined EILSEQ
6888 booboo
6889 #endif
6890
6891 _ACEOF
6892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6893 $EGREP "booboo" >/dev/null 2>&1; then :
6894 gl_cv_header_errno_h_complete=no
6895 else
6896 gl_cv_header_errno_h_complete=yes
6897 fi
6898 rm -f conftest*
6899
6900
6901 fi
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
6903 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
6904 if test $gl_cv_header_errno_h_complete = yes; then
6905 ERRNO_H=''
6906 else
6907
6908
6909
6910
6911
6912
6913
6914
6915 if test $gl_cv_have_include_next = yes; then
6916 gl_cv_next_errno_h='<'errno.h'>'
6917 else
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
6919 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
6920 if test "${gl_cv_next_errno_h+set}" = set; then :
6921 $as_echo_n "(cached) " >&6
6922 else
6923
6924
6925
6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h. */
6928 #include <errno.h>
6929 _ACEOF
6930 case "$host_os" in
6931 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6932 *) gl_absname_cpp="$ac_cpp" ;;
6933 esac
6934
6935 case "$host_os" in
6936 mingw*)
6937 gl_dirsep_regex='[/\\]'
6938 ;;
6939 *)
6940 gl_dirsep_regex='\/'
6941 ;;
6942 esac
6943 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6944 gl_header_literal_regex=`echo 'errno.h' \
6945 | sed -e "$gl_make_literal_regex_sed"`
6946 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6947 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6948 s|^/[^/]|//&|
6949 p
6950 q
6951 }'
6952
6953 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6954 sed -n "$gl_absolute_header_sed"`
6955
6956 gl_header=$gl_cv_absolute_errno_h
6957 gl_cv_next_errno_h='"'$gl_header'"'
6958
6959
6960 fi
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
6962 $as_echo "$gl_cv_next_errno_h" >&6; }
6963 fi
6964 NEXT_ERRNO_H=$gl_cv_next_errno_h
6965
6966 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6967 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6968 gl_next_as_first_directive='<'errno.h'>'
6969 else
6970 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6971 gl_next_as_first_directive=$gl_cv_next_errno_h
6972 fi
6973 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
6974
6975
6976
6977
6978 ERRNO_H='errno.h'
6979 fi
6980
6981 if test -n "$ERRNO_H"; then
6982 GL_GENERATE_ERRNO_H_TRUE=
6983 GL_GENERATE_ERRNO_H_FALSE='#'
6984 else
6985 GL_GENERATE_ERRNO_H_TRUE='#'
6986 GL_GENERATE_ERRNO_H_FALSE=
6987 fi
6988
6989
6990 if test -n "$ERRNO_H"; then
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
6992 $as_echo_n "checking for EMULTIHOP value... " >&6; }
6993 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
6994 $as_echo_n "(cached) " >&6
6995 else
6996
6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h. */
6999
7000 #include <errno.h>
7001 #ifdef EMULTIHOP
7002 yes
7003 #endif
7004
7005 _ACEOF
7006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7007 $EGREP "yes" >/dev/null 2>&1; then :
7008 gl_cv_header_errno_h_EMULTIHOP=yes
7009 else
7010 gl_cv_header_errno_h_EMULTIHOP=no
7011 fi
7012 rm -f conftest*
7013
7014 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
7015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7016 /* end confdefs.h. */
7017
7018 #define _XOPEN_SOURCE_EXTENDED 1
7019 #include <errno.h>
7020 #ifdef EMULTIHOP
7021 yes
7022 #endif
7023
7024 _ACEOF
7025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7026 $EGREP "yes" >/dev/null 2>&1; then :
7027 gl_cv_header_errno_h_EMULTIHOP=hidden
7028 fi
7029 rm -f conftest*
7030
7031 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
7032 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
7033 #define _XOPEN_SOURCE_EXTENDED 1
7034 #include <errno.h>
7035 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7036 #include <stdio.h>
7037 #include <stdlib.h>
7038 "; then :
7039
7040 fi
7041
7042 fi
7043 fi
7044
7045 fi
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7047 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7048 case $gl_cv_header_errno_h_EMULTIHOP in
7049 yes | no)
7050 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
7051 ;;
7052 *)
7053 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
7054 ;;
7055 esac
7056
7057
7058 fi
7059
7060
7061 if test -n "$ERRNO_H"; then
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7063 $as_echo_n "checking for ENOLINK value... " >&6; }
7064 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
7065 $as_echo_n "(cached) " >&6
7066 else
7067
7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h. */
7070
7071 #include <errno.h>
7072 #ifdef ENOLINK
7073 yes
7074 #endif
7075
7076 _ACEOF
7077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7078 $EGREP "yes" >/dev/null 2>&1; then :
7079 gl_cv_header_errno_h_ENOLINK=yes
7080 else
7081 gl_cv_header_errno_h_ENOLINK=no
7082 fi
7083 rm -f conftest*
7084
7085 if test $gl_cv_header_errno_h_ENOLINK = no; then
7086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7087 /* end confdefs.h. */
7088
7089 #define _XOPEN_SOURCE_EXTENDED 1
7090 #include <errno.h>
7091 #ifdef ENOLINK
7092 yes
7093 #endif
7094
7095 _ACEOF
7096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7097 $EGREP "yes" >/dev/null 2>&1; then :
7098 gl_cv_header_errno_h_ENOLINK=hidden
7099 fi
7100 rm -f conftest*
7101
7102 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
7103 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
7104 #define _XOPEN_SOURCE_EXTENDED 1
7105 #include <errno.h>
7106 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7107 #include <stdio.h>
7108 #include <stdlib.h>
7109 "; then :
7110
7111 fi
7112
7113 fi
7114 fi
7115
7116 fi
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7118 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7119 case $gl_cv_header_errno_h_ENOLINK in
7120 yes | no)
7121 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
7122 ;;
7123 *)
7124 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
7125 ;;
7126 esac
7127
7128
7129 fi
7130
7131
7132 if test -n "$ERRNO_H"; then
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7134 $as_echo_n "checking for EOVERFLOW value... " >&6; }
7135 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
7136 $as_echo_n "(cached) " >&6
7137 else
7138
7139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7140 /* end confdefs.h. */
7141
7142 #include <errno.h>
7143 #ifdef EOVERFLOW
7144 yes
7145 #endif
7146
7147 _ACEOF
7148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7149 $EGREP "yes" >/dev/null 2>&1; then :
7150 gl_cv_header_errno_h_EOVERFLOW=yes
7151 else
7152 gl_cv_header_errno_h_EOVERFLOW=no
7153 fi
7154 rm -f conftest*
7155
7156 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158 /* end confdefs.h. */
7159
7160 #define _XOPEN_SOURCE_EXTENDED 1
7161 #include <errno.h>
7162 #ifdef EOVERFLOW
7163 yes
7164 #endif
7165
7166 _ACEOF
7167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7168 $EGREP "yes" >/dev/null 2>&1; then :
7169 gl_cv_header_errno_h_EOVERFLOW=hidden
7170 fi
7171 rm -f conftest*
7172
7173 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7174 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
7175 #define _XOPEN_SOURCE_EXTENDED 1
7176 #include <errno.h>
7177 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7178 #include <stdio.h>
7179 #include <stdlib.h>
7180 "; then :
7181
7182 fi
7183
7184 fi
7185 fi
7186
7187 fi
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7189 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7190 case $gl_cv_header_errno_h_EOVERFLOW in
7191 yes | no)
7192 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
7193 ;;
7194 *)
7195 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
7196 ;;
7197 esac
7198
7199
7200 fi
7201
7202
7203
7204
7205
7206
7207
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
7209 $as_echo_n "checking for mbstate_t... " >&6; }
7210 if test "${ac_cv_type_mbstate_t+set}" = set; then :
7211 $as_echo_n "(cached) " >&6
7212 else
7213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7214 /* end confdefs.h. */
7215 $ac_includes_default
7216 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7217 <wchar.h>.
7218 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7219 included before <wchar.h>. */
7220 #include <stddef.h>
7221 #include <stdio.h>
7222 #include <time.h>
7223 #include <wchar.h>
7224 int
7225 main ()
7226 {
7227 mbstate_t x; return sizeof x;
7228 ;
7229 return 0;
7230 }
7231 _ACEOF
7232 if ac_fn_c_try_compile "$LINENO"; then :
7233 ac_cv_type_mbstate_t=yes
7234 else
7235 ac_cv_type_mbstate_t=no
7236 fi
7237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7238 fi
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
7240 $as_echo "$ac_cv_type_mbstate_t" >&6; }
7241 if test $ac_cv_type_mbstate_t = yes; then
7242
7243 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
7244
7245 else
7246
7247 $as_echo "#define mbstate_t int" >>confdefs.h
7248
7249 fi
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270 GNULIB_ACOSF=0;
7271 GNULIB_ACOSL=0;
7272 GNULIB_ASINF=0;
7273 GNULIB_ASINL=0;
7274 GNULIB_ATANF=0;
7275 GNULIB_ATANL=0;
7276 GNULIB_ATAN2F=0;
7277 GNULIB_CBRT=0;
7278 GNULIB_CBRTF=0;
7279 GNULIB_CBRTL=0;
7280 GNULIB_CEIL=0;
7281 GNULIB_CEILF=0;
7282 GNULIB_CEILL=0;
7283 GNULIB_COPYSIGN=0;
7284 GNULIB_COPYSIGNF=0;
7285 GNULIB_COPYSIGNL=0;
7286 GNULIB_COSF=0;
7287 GNULIB_COSL=0;
7288 GNULIB_COSHF=0;
7289 GNULIB_EXPF=0;
7290 GNULIB_EXPL=0;
7291 GNULIB_EXP2=0;
7292 GNULIB_EXP2F=0;
7293 GNULIB_EXP2L=0;
7294 GNULIB_EXPM1=0;
7295 GNULIB_EXPM1F=0;
7296 GNULIB_EXPM1L=0;
7297 GNULIB_FABSF=0;
7298 GNULIB_FABSL=0;
7299 GNULIB_FLOOR=0;
7300 GNULIB_FLOORF=0;
7301 GNULIB_FLOORL=0;
7302 GNULIB_FMA=0;
7303 GNULIB_FMAF=0;
7304 GNULIB_FMAL=0;
7305 GNULIB_FMOD=0;
7306 GNULIB_FMODF=0;
7307 GNULIB_FMODL=0;
7308 GNULIB_FREXPF=0;
7309 GNULIB_FREXP=0;
7310 GNULIB_FREXPL=0;
7311 GNULIB_HYPOT=0;
7312 GNULIB_HYPOTF=0;
7313 GNULIB_HYPOTL=0;
7314 GNULIB_ILOGB=0;
7315 GNULIB_ILOGBF=0;
7316 GNULIB_ILOGBL=0;
7317 GNULIB_ISFINITE=0;
7318 GNULIB_ISINF=0;
7319 GNULIB_ISNAN=0;
7320 GNULIB_ISNANF=0;
7321 GNULIB_ISNAND=0;
7322 GNULIB_ISNANL=0;
7323 GNULIB_LDEXPF=0;
7324 GNULIB_LDEXPL=0;
7325 GNULIB_LOG=0;
7326 GNULIB_LOGF=0;
7327 GNULIB_LOGL=0;
7328 GNULIB_LOG10=0;
7329 GNULIB_LOG10F=0;
7330 GNULIB_LOG10L=0;
7331 GNULIB_LOG1P=0;
7332 GNULIB_LOG1PF=0;
7333 GNULIB_LOG1PL=0;
7334 GNULIB_LOG2=0;
7335 GNULIB_LOG2F=0;
7336 GNULIB_LOG2L=0;
7337 GNULIB_LOGB=0;
7338 GNULIB_LOGBF=0;
7339 GNULIB_LOGBL=0;
7340 GNULIB_MODF=0;
7341 GNULIB_MODFF=0;
7342 GNULIB_MODFL=0;
7343 GNULIB_POWF=0;
7344 GNULIB_REMAINDER=0;
7345 GNULIB_REMAINDERF=0;
7346 GNULIB_REMAINDERL=0;
7347 GNULIB_RINT=0;
7348 GNULIB_RINTF=0;
7349 GNULIB_RINTL=0;
7350 GNULIB_ROUND=0;
7351 GNULIB_ROUNDF=0;
7352 GNULIB_ROUNDL=0;
7353 GNULIB_SIGNBIT=0;
7354 GNULIB_SINF=0;
7355 GNULIB_SINL=0;
7356 GNULIB_SINHF=0;
7357 GNULIB_SQRTF=0;
7358 GNULIB_SQRTL=0;
7359 GNULIB_TANF=0;
7360 GNULIB_TANL=0;
7361 GNULIB_TANHF=0;
7362 GNULIB_TRUNC=0;
7363 GNULIB_TRUNCF=0;
7364 GNULIB_TRUNCL=0;
7365 HAVE_ACOSF=1;
7366 HAVE_ACOSL=1;
7367 HAVE_ASINF=1;
7368 HAVE_ASINL=1;
7369 HAVE_ATANF=1;
7370 HAVE_ATANL=1;
7371 HAVE_ATAN2F=1;
7372 HAVE_CBRT=1;
7373 HAVE_CBRTF=1;
7374 HAVE_CBRTL=1;
7375 HAVE_COPYSIGN=1;
7376 HAVE_COPYSIGNL=1;
7377 HAVE_COSF=1;
7378 HAVE_COSL=1;
7379 HAVE_COSHF=1;
7380 HAVE_EXPF=1;
7381 HAVE_EXPL=1;
7382 HAVE_EXPM1=1;
7383 HAVE_EXPM1F=1;
7384 HAVE_FABSF=1;
7385 HAVE_FABSL=1;
7386 HAVE_FMA=1;
7387 HAVE_FMAF=1;
7388 HAVE_FMAL=1;
7389 HAVE_FMODF=1;
7390 HAVE_FMODL=1;
7391 HAVE_FREXPF=1;
7392 HAVE_HYPOTF=1;
7393 HAVE_HYPOTL=1;
7394 HAVE_ILOGB=1;
7395 HAVE_ILOGBF=1;
7396 HAVE_ILOGBL=1;
7397 HAVE_ISNANF=1;
7398 HAVE_ISNAND=1;
7399 HAVE_ISNANL=1;
7400 HAVE_LDEXPF=1;
7401 HAVE_LOGF=1;
7402 HAVE_LOGL=1;
7403 HAVE_LOG10F=1;
7404 HAVE_LOG10L=1;
7405 HAVE_LOG1P=1;
7406 HAVE_LOG1PF=1;
7407 HAVE_LOG1PL=1;
7408 HAVE_LOGBF=1;
7409 HAVE_LOGBL=1;
7410 HAVE_MODFF=1;
7411 HAVE_MODFL=1;
7412 HAVE_POWF=1;
7413 HAVE_REMAINDER=1;
7414 HAVE_REMAINDERF=1;
7415 HAVE_RINT=1;
7416 HAVE_RINTL=1;
7417 HAVE_SINF=1;
7418 HAVE_SINL=1;
7419 HAVE_SINHF=1;
7420 HAVE_SQRTF=1;
7421 HAVE_SQRTL=1;
7422 HAVE_TANF=1;
7423 HAVE_TANL=1;
7424 HAVE_TANHF=1;
7425 HAVE_DECL_ACOSL=1;
7426 HAVE_DECL_ASINL=1;
7427 HAVE_DECL_ATANL=1;
7428 HAVE_DECL_CBRTF=1;
7429 HAVE_DECL_CBRTL=1;
7430 HAVE_DECL_CEILF=1;
7431 HAVE_DECL_CEILL=1;
7432 HAVE_DECL_COPYSIGNF=1;
7433 HAVE_DECL_COSL=1;
7434 HAVE_DECL_EXPL=1;
7435 HAVE_DECL_EXP2=1;
7436 HAVE_DECL_EXP2F=1;
7437 HAVE_DECL_EXP2L=1;
7438 HAVE_DECL_EXPM1L=1;
7439 HAVE_DECL_FLOORF=1;
7440 HAVE_DECL_FLOORL=1;
7441 HAVE_DECL_FREXPL=1;
7442 HAVE_DECL_LDEXPL=1;
7443 HAVE_DECL_LOGL=1;
7444 HAVE_DECL_LOG10L=1;
7445 HAVE_DECL_LOG2=1;
7446 HAVE_DECL_LOG2F=1;
7447 HAVE_DECL_LOG2L=1;
7448 HAVE_DECL_LOGB=1;
7449 HAVE_DECL_REMAINDER=1;
7450 HAVE_DECL_REMAINDERL=1;
7451 HAVE_DECL_RINTF=1;
7452 HAVE_DECL_ROUND=1;
7453 HAVE_DECL_ROUNDF=1;
7454 HAVE_DECL_ROUNDL=1;
7455 HAVE_DECL_SINL=1;
7456 HAVE_DECL_SQRTL=1;
7457 HAVE_DECL_TANL=1;
7458 HAVE_DECL_TRUNC=1;
7459 HAVE_DECL_TRUNCF=1;
7460 HAVE_DECL_TRUNCL=1;
7461 REPLACE_CBRTF=0;
7462 REPLACE_CBRTL=0;
7463 REPLACE_CEIL=0;
7464 REPLACE_CEILF=0;
7465 REPLACE_CEILL=0;
7466 REPLACE_EXPM1=0;
7467 REPLACE_EXPM1F=0;
7468 REPLACE_EXP2=0;
7469 REPLACE_EXP2L=0;
7470 REPLACE_FABSL=0;
7471 REPLACE_FLOOR=0;
7472 REPLACE_FLOORF=0;
7473 REPLACE_FLOORL=0;
7474 REPLACE_FMA=0;
7475 REPLACE_FMAF=0;
7476 REPLACE_FMAL=0;
7477 REPLACE_FMOD=0;
7478 REPLACE_FMODF=0;
7479 REPLACE_FMODL=0;
7480 REPLACE_FREXPF=0;
7481 REPLACE_FREXP=0;
7482 REPLACE_FREXPL=0;
7483 REPLACE_HUGE_VAL=0;
7484 REPLACE_HYPOT=0;
7485 REPLACE_HYPOTF=0;
7486 REPLACE_HYPOTL=0;
7487 REPLACE_ILOGB=0;
7488 REPLACE_ILOGBF=0;
7489 REPLACE_ISFINITE=0;
7490 REPLACE_ISINF=0;
7491 REPLACE_ISNAN=0;
7492 REPLACE_LDEXPL=0;
7493 REPLACE_LOG=0;
7494 REPLACE_LOGF=0;
7495 REPLACE_LOGL=0;
7496 REPLACE_LOG10=0;
7497 REPLACE_LOG10F=0;
7498 REPLACE_LOG10L=0;
7499 REPLACE_LOG1P=0;
7500 REPLACE_LOG1PF=0;
7501 REPLACE_LOG1PL=0;
7502 REPLACE_LOG2=0;
7503 REPLACE_LOG2F=0;
7504 REPLACE_LOG2L=0;
7505 REPLACE_LOGB=0;
7506 REPLACE_LOGBF=0;
7507 REPLACE_LOGBL=0;
7508 REPLACE_MODF=0;
7509 REPLACE_MODFF=0;
7510 REPLACE_MODFL=0;
7511 REPLACE_NAN=0;
7512 REPLACE_REMAINDER=0;
7513 REPLACE_REMAINDERF=0;
7514 REPLACE_REMAINDERL=0;
7515 REPLACE_ROUND=0;
7516 REPLACE_ROUNDF=0;
7517 REPLACE_ROUNDL=0;
7518 REPLACE_SIGNBIT=0;
7519 REPLACE_SIGNBIT_USING_GCC=0;
7520 REPLACE_SQRTL=0;
7521 REPLACE_TRUNC=0;
7522 REPLACE_TRUNCF=0;
7523 REPLACE_TRUNCL=0;
7524
7525
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
7527 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
7528 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
7529 $as_echo_n "(cached) " >&6
7530 else
7531
7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533 /* end confdefs.h. */
7534 #include <math.h>
7535 double x;
7536 int
7537 main ()
7538 {
7539 int e; return frexp (x, &e) > 0;
7540 ;
7541 return 0;
7542 }
7543 _ACEOF
7544 if ac_fn_c_try_link "$LINENO"; then :
7545 gl_cv_func_frexp_no_libm=yes
7546 else
7547 gl_cv_func_frexp_no_libm=no
7548 fi
7549 rm -f core conftest.err conftest.$ac_objext \
7550 conftest$ac_exeext conftest.$ac_ext
7551
7552 fi
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
7554 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
7555
7556 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
7557 if test "x$ac_cv_have_decl_alarm" = x""yes; then :
7558 ac_have_decl=1
7559 else
7560 ac_have_decl=0
7561 fi
7562
7563 cat >>confdefs.h <<_ACEOF
7564 #define HAVE_DECL_ALARM $ac_have_decl
7565 _ACEOF
7566
7567
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
7569 $as_echo_n "checking whether long double and double are the same... " >&6; }
7570 if test "${gl_cv_long_double_equals_double+set}" = set; then :
7571 $as_echo_n "(cached) " >&6
7572 else
7573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7574 /* end confdefs.h. */
7575 #include <float.h>
7576 int
7577 main ()
7578 {
7579 typedef int check[sizeof (long double) == sizeof (double)
7580 && LDBL_MANT_DIG == DBL_MANT_DIG
7581 && LDBL_MAX_EXP == DBL_MAX_EXP
7582 && LDBL_MIN_EXP == DBL_MIN_EXP
7583 ? 1 : -1];
7584
7585 ;
7586 return 0;
7587 }
7588 _ACEOF
7589 if ac_fn_c_try_compile "$LINENO"; then :
7590 gl_cv_long_double_equals_double=yes
7591 else
7592 gl_cv_long_double_equals_double=no
7593 fi
7594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7595
7596 fi
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
7598 $as_echo "$gl_cv_long_double_equals_double" >&6; }
7599 if test $gl_cv_long_double_equals_double = yes; then
7600
7601 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
7602
7603 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
7604 else
7605 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
7606 fi
7607
7608
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
7610 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7611 if test "${ac_cv_c_restrict+set}" = set; then :
7612 $as_echo_n "(cached) " >&6
7613 else
7614 ac_cv_c_restrict=no
7615 # The order here caters to the fact that C++ does not require restrict.
7616 for ac_kw in __restrict __restrict__ _Restrict restrict; do
7617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7618 /* end confdefs.h. */
7619 typedef int *int_ptr;
7620 int foo (int_ptr $ac_kw ip) { return ip[0]; }
7621 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
7622 int bar (int ip[$ac_kw]) { return ip[0]; }
7623
7624 int
7625 main ()
7626 {
7627 int s[1];
7628 int *$ac_kw t = s;
7629 t[0] = 0;
7630 return foo (t) + bar (t);
7631
7632 ;
7633 return 0;
7634 }
7635 _ACEOF
7636 if ac_fn_c_try_compile "$LINENO"; then :
7637 ac_cv_c_restrict=$ac_kw
7638 fi
7639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7640 test "$ac_cv_c_restrict" != no && break
7641 done
7642
7643 fi
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
7645 $as_echo "$ac_cv_c_restrict" >&6; }
7646
7647 case $ac_cv_c_restrict in
7648 restrict) ;;
7649 no) $as_echo "#define restrict /**/" >>confdefs.h
7650 ;;
7651 *) cat >>confdefs.h <<_ACEOF
7652 #define restrict $ac_cv_c_restrict
7653 _ACEOF
7654 ;;
7655 esac
7656
7657
7658 GNULIB_GETTIMEOFDAY=0;
7659 HAVE_GETTIMEOFDAY=1;
7660 HAVE_STRUCT_TIMEVAL=1;
7661 HAVE_SYS_TIME_H=1;
7662 HAVE_TIMEZONE_T=0;
7663 REPLACE_GETTIMEOFDAY=0;
7664 REPLACE_STRUCT_TIMEVAL=0;
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683 if test $gl_cv_have_include_next = yes; then
7684 gl_cv_next_sys_time_h='<'sys/time.h'>'
7685 else
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
7687 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
7688 if test "${gl_cv_next_sys_time_h+set}" = set; then :
7689 $as_echo_n "(cached) " >&6
7690 else
7691
7692 if test $ac_cv_header_sys_time_h = yes; then
7693
7694
7695
7696
7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698 /* end confdefs.h. */
7699 #include <sys/time.h>
7700 _ACEOF
7701 case "$host_os" in
7702 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7703 *) gl_absname_cpp="$ac_cpp" ;;
7704 esac
7705
7706 case "$host_os" in
7707 mingw*)
7708 gl_dirsep_regex='[/\\]'
7709 ;;
7710 *)
7711 gl_dirsep_regex='\/'
7712 ;;
7713 esac
7714 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7715 gl_header_literal_regex=`echo 'sys/time.h' \
7716 | sed -e "$gl_make_literal_regex_sed"`
7717 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7718 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7719 s|^/[^/]|//&|
7720 p
7721 q
7722 }'
7723
7724 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7725 sed -n "$gl_absolute_header_sed"`
7726
7727 gl_header=$gl_cv_absolute_sys_time_h
7728 gl_cv_next_sys_time_h='"'$gl_header'"'
7729 else
7730 gl_cv_next_sys_time_h='<'sys/time.h'>'
7731 fi
7732
7733
7734 fi
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
7736 $as_echo "$gl_cv_next_sys_time_h" >&6; }
7737 fi
7738 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
7739
7740 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7741 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7742 gl_next_as_first_directive='<'sys/time.h'>'
7743 else
7744 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7745 gl_next_as_first_directive=$gl_cv_next_sys_time_h
7746 fi
7747 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
7748
7749
7750
7751
7752
7753 if test $ac_cv_header_sys_time_h != yes; then
7754 HAVE_SYS_TIME_H=0
7755 fi
7756
7757
7758
7759
7760
7761 if test $ac_cv_header_sys_socket_h != yes; then
7762 for ac_header in winsock2.h
7763 do :
7764 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
7765 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
7766 cat >>confdefs.h <<_ACEOF
7767 #define HAVE_WINSOCK2_H 1
7768 _ACEOF
7769
7770 fi
7771
7772 done
7773
7774 fi
7775 if test "$ac_cv_header_winsock2_h" = yes; then
7776 HAVE_WINSOCK2_H=1
7777 UNISTD_H_HAVE_WINSOCK2_H=1
7778 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
7779 else
7780 HAVE_WINSOCK2_H=0
7781 fi
7782
7783
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7785 $as_echo_n "checking for struct timeval... " >&6; }
7786 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
7787 $as_echo_n "(cached) " >&6
7788 else
7789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h. */
7791 #if HAVE_SYS_TIME_H
7792 #include <sys/time.h>
7793 #endif
7794 #include <time.h>
7795 #if HAVE_WINSOCK2_H
7796 # include <winsock2.h>
7797 #endif
7798
7799 int
7800 main ()
7801 {
7802 static struct timeval x; x.tv_sec = x.tv_usec;
7803 ;
7804 return 0;
7805 }
7806 _ACEOF
7807 if ac_fn_c_try_compile "$LINENO"; then :
7808 gl_cv_sys_struct_timeval=yes
7809 else
7810 gl_cv_sys_struct_timeval=no
7811 fi
7812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7813
7814 fi
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
7816 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
7817 if test $gl_cv_sys_struct_timeval != yes; then
7818 HAVE_STRUCT_TIMEVAL=0
7819 else
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
7821 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
7822 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
7823 $as_echo_n "(cached) " >&6
7824 else
7825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826 /* end confdefs.h. */
7827 #if HAVE_SYS_TIME_H
7828 #include <sys/time.h>
7829 #endif
7830 #include <time.h>
7831 #if HAVE_WINSOCK2_H
7832 # include <winsock2.h>
7833 #endif
7834
7835 int
7836 main ()
7837 {
7838 static struct timeval x;
7839 typedef int verify_tv_sec_type[
7840 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
7841 ];
7842
7843 ;
7844 return 0;
7845 }
7846 _ACEOF
7847 if ac_fn_c_try_compile "$LINENO"; then :
7848 gl_cv_sys_struct_timeval_tv_sec=yes
7849 else
7850 gl_cv_sys_struct_timeval_tv_sec=no
7851 fi
7852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7853
7854 fi
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
7856 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
7857 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
7858 REPLACE_STRUCT_TIMEVAL=1
7859 fi
7860 fi
7861
7862
7863 for gl_func in gettimeofday; do
7864 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7866 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7867 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7868 $as_echo_n "(cached) " >&6
7869 else
7870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h. */
7872
7873 #if HAVE_SYS_TIME_H
7874 # include <sys/time.h>
7875 #endif
7876 #include <time.h>
7877
7878 int
7879 main ()
7880 {
7881 #undef $gl_func
7882 (void) $gl_func;
7883 ;
7884 return 0;
7885 }
7886 _ACEOF
7887 if ac_fn_c_try_compile "$LINENO"; then :
7888 eval "$as_gl_Symbol=yes"
7889 else
7890 eval "$as_gl_Symbol=no"
7891 fi
7892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7893 fi
7894 eval ac_res=\$$as_gl_Symbol
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7896 $as_echo "$ac_res" >&6; }
7897 eval as_val=\$$as_gl_Symbol
7898 if test "x$as_val" = x""yes; then :
7899 cat >>confdefs.h <<_ACEOF
7900 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7901 _ACEOF
7902
7903 eval ac_cv_have_decl_$gl_func=yes
7904 fi
7905 done
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925 if test $gl_cv_have_include_next = yes; then
7926 gl_cv_next_limits_h='<'limits.h'>'
7927 else
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
7929 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
7930 if test "${gl_cv_next_limits_h+set}" = set; then :
7931 $as_echo_n "(cached) " >&6
7932 else
7933
7934 if test $ac_cv_header_limits_h = yes; then
7935
7936
7937
7938
7939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7940 /* end confdefs.h. */
7941 #include <limits.h>
7942 _ACEOF
7943 case "$host_os" in
7944 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7945 *) gl_absname_cpp="$ac_cpp" ;;
7946 esac
7947
7948 case "$host_os" in
7949 mingw*)
7950 gl_dirsep_regex='[/\\]'
7951 ;;
7952 *)
7953 gl_dirsep_regex='\/'
7954 ;;
7955 esac
7956 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7957 gl_header_literal_regex=`echo 'limits.h' \
7958 | sed -e "$gl_make_literal_regex_sed"`
7959 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7960 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7961 s|^/[^/]|//&|
7962 p
7963 q
7964 }'
7965
7966 gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7967 sed -n "$gl_absolute_header_sed"`
7968
7969 gl_header=$gl_cv_absolute_limits_h
7970 gl_cv_next_limits_h='"'$gl_header'"'
7971 else
7972 gl_cv_next_limits_h='<'limits.h'>'
7973 fi
7974
7975
7976 fi
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
7978 $as_echo "$gl_cv_next_limits_h" >&6; }
7979 fi
7980 NEXT_LIMITS_H=$gl_cv_next_limits_h
7981
7982 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7983 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7984 gl_next_as_first_directive='<'limits.h'>'
7985 else
7986 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7987 gl_next_as_first_directive=$gl_cv_next_limits_h
7988 fi
7989 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
7990
7991
7992
7993
7994
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has ULLONG_WIDTH etc." >&5
7996 $as_echo_n "checking whether limits.h has ULLONG_WIDTH etc.... " >&6; }
7997 if test "${gl_cv_header_limits_width+set}" = set; then :
7998 $as_echo_n "(cached) " >&6
7999 else
8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8002 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
8003 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
8004 #endif
8005 #include <limits.h>
8006 int ullw = ULLONG_WIDTH;
8007 int
8008 main ()
8009 {
8010
8011 ;
8012 return 0;
8013 }
8014 _ACEOF
8015 if ac_fn_c_try_compile "$LINENO"; then :
8016 gl_cv_header_limits_width=yes
8017 else
8018 gl_cv_header_limits_width=no
8019 fi
8020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8021 fi
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
8023 $as_echo "$gl_cv_header_limits_width" >&6; }
8024 if test "$gl_cv_header_limits_width" = yes; then
8025 LIMITS_H=
8026 else
8027 LIMITS_H=limits.h
8028 fi
8029
8030 if test -n "$LIMITS_H"; then
8031 GL_GENERATE_LIMITS_H_TRUE=
8032 GL_GENERATE_LIMITS_H_FALSE='#'
8033 else
8034 GL_GENERATE_LIMITS_H_TRUE='#'
8035 GL_GENERATE_LIMITS_H_FALSE=
8036 fi
8037
8038
8039
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
8041 $as_echo_n "checking for unsigned long long int... " >&6; }
8042 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
8043 $as_echo_n "(cached) " >&6
8044 else
8045 ac_cv_type_unsigned_long_long_int=yes
8046 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
8047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048 /* end confdefs.h. */
8049
8050 /* For now, do not test the preprocessor; as of 2007 there are too many
8051 implementations with broken preprocessors. Perhaps this can
8052 be revisited in 2012. In the meantime, code should not expect
8053 #if to work with literals wider than 32 bits. */
8054 /* Test literals. */
8055 long long int ll = 9223372036854775807ll;
8056 long long int nll = -9223372036854775807LL;
8057 unsigned long long int ull = 18446744073709551615ULL;
8058 /* Test constant expressions. */
8059 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
8060 ? 1 : -1)];
8061 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
8062 ? 1 : -1)];
8063 int i = 63;
8064 int
8065 main ()
8066 {
8067 /* Test availability of runtime routines for shift and division. */
8068 long long int llmax = 9223372036854775807ll;
8069 unsigned long long int ullmax = 18446744073709551615ull;
8070 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
8071 | (llmax / ll) | (llmax % ll)
8072 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
8073 | (ullmax / ull) | (ullmax % ull));
8074 ;
8075 return 0;
8076 }
8077
8078 _ACEOF
8079 if ac_fn_c_try_link "$LINENO"; then :
8080
8081 else
8082 ac_cv_type_unsigned_long_long_int=no
8083 fi
8084 rm -f core conftest.err conftest.$ac_objext \
8085 conftest$ac_exeext conftest.$ac_ext
8086 fi
8087 fi
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
8089 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
8090 if test $ac_cv_type_unsigned_long_long_int = yes; then
8091
8092 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
8093
8094 fi
8095
8096
8097
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
8099 $as_echo_n "checking for long long int... " >&6; }
8100 if test "${ac_cv_type_long_long_int+set}" = set; then :
8101 $as_echo_n "(cached) " >&6
8102 else
8103 ac_cv_type_long_long_int=yes
8104 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
8105 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
8106 if test $ac_cv_type_long_long_int = yes; then
8107 if test "$cross_compiling" = yes; then :
8108 :
8109 else
8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h. */
8112 #include <limits.h>
8113 #ifndef LLONG_MAX
8114 # define HALF \
8115 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
8116 # define LLONG_MAX (HALF - 1 + HALF)
8117 #endif
8118 int
8119 main ()
8120 {
8121 long long int n = 1;
8122 int i;
8123 for (i = 0; ; i++)
8124 {
8125 long long int m = n << i;
8126 if (m >> i != n)
8127 return 1;
8128 if (LLONG_MAX / 2 < m)
8129 break;
8130 }
8131 return 0;
8132 ;
8133 return 0;
8134 }
8135 _ACEOF
8136 if ac_fn_c_try_run "$LINENO"; then :
8137
8138 else
8139 ac_cv_type_long_long_int=no
8140 fi
8141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8142 conftest.$ac_objext conftest.beam conftest.$ac_ext
8143 fi
8144
8145 fi
8146 fi
8147 fi
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
8149 $as_echo "$ac_cv_type_long_long_int" >&6; }
8150 if test $ac_cv_type_long_long_int = yes; then
8151
8152 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
8153
8154 fi
8155
8156
8157
8158
8159
8160
8161 gl_cv_c_multiarch=no
8162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8163 /* end confdefs.h. */
8164 #ifndef __APPLE_CC__
8165 not a universal capable compiler
8166 #endif
8167 typedef int dummy;
8168
8169 _ACEOF
8170 if ac_fn_c_try_compile "$LINENO"; then :
8171
8172 arch=
8173 prev=
8174 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
8175 if test -n "$prev"; then
8176 case $word in
8177 i?86 | x86_64 | ppc | ppc64)
8178 if test -z "$arch" || test "$arch" = "$word"; then
8179 arch="$word"
8180 else
8181 gl_cv_c_multiarch=yes
8182 fi
8183 ;;
8184 esac
8185 prev=
8186 else
8187 if test "x$word" = "x-arch"; then
8188 prev=arch
8189 fi
8190 fi
8191 done
8192
8193 fi
8194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8195 if test $gl_cv_c_multiarch = yes; then
8196 APPLE_UNIVERSAL_BUILD=1
8197 else
8198 APPLE_UNIVERSAL_BUILD=0
8199 fi
8200
8201
8202
8203
8204
8205
8206
8207 if test $ac_cv_type_long_long_int = yes; then
8208 HAVE_LONG_LONG_INT=1
8209 else
8210 HAVE_LONG_LONG_INT=0
8211 fi
8212
8213
8214 if test $ac_cv_type_unsigned_long_long_int = yes; then
8215 HAVE_UNSIGNED_LONG_LONG_INT=1
8216 else
8217 HAVE_UNSIGNED_LONG_LONG_INT=0
8218 fi
8219
8220
8221
8222 if test $ac_cv_header_wchar_h = yes; then
8223 HAVE_WCHAR_H=1
8224 else
8225 HAVE_WCHAR_H=0
8226 fi
8227
8228
8229 if test $ac_cv_header_inttypes_h = yes; then
8230 HAVE_INTTYPES_H=1
8231 else
8232 HAVE_INTTYPES_H=0
8233 fi
8234
8235
8236 if test $ac_cv_header_sys_types_h = yes; then
8237 HAVE_SYS_TYPES_H=1
8238 else
8239 HAVE_SYS_TYPES_H=0
8240 fi
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252 if test $gl_cv_have_include_next = yes; then
8253 gl_cv_next_stdint_h='<'stdint.h'>'
8254 else
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
8256 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
8257 if test "${gl_cv_next_stdint_h+set}" = set; then :
8258 $as_echo_n "(cached) " >&6
8259 else
8260
8261 if test $ac_cv_header_stdint_h = yes; then
8262
8263
8264
8265
8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h. */
8268 #include <stdint.h>
8269 _ACEOF
8270 case "$host_os" in
8271 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8272 *) gl_absname_cpp="$ac_cpp" ;;
8273 esac
8274
8275 case "$host_os" in
8276 mingw*)
8277 gl_dirsep_regex='[/\\]'
8278 ;;
8279 *)
8280 gl_dirsep_regex='\/'
8281 ;;
8282 esac
8283 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8284 gl_header_literal_regex=`echo 'stdint.h' \
8285 | sed -e "$gl_make_literal_regex_sed"`
8286 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8287 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8288 s|^/[^/]|//&|
8289 p
8290 q
8291 }'
8292
8293 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8294 sed -n "$gl_absolute_header_sed"`
8295
8296 gl_header=$gl_cv_absolute_stdint_h
8297 gl_cv_next_stdint_h='"'$gl_header'"'
8298 else
8299 gl_cv_next_stdint_h='<'stdint.h'>'
8300 fi
8301
8302
8303 fi
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
8305 $as_echo "$gl_cv_next_stdint_h" >&6; }
8306 fi
8307 NEXT_STDINT_H=$gl_cv_next_stdint_h
8308
8309 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8310 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8311 gl_next_as_first_directive='<'stdint.h'>'
8312 else
8313 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8314 gl_next_as_first_directive=$gl_cv_next_stdint_h
8315 fi
8316 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
8317
8318
8319
8320
8321 if test $ac_cv_header_stdint_h = yes; then
8322 HAVE_STDINT_H=1
8323 else
8324 HAVE_STDINT_H=0
8325 fi
8326
8327
8328 if test $ac_cv_header_stdint_h = yes; then
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
8330 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
8331 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
8332 $as_echo_n "(cached) " >&6
8333 else
8334 gl_cv_header_working_stdint_h=no
8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h. */
8337
8338
8339 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8340 #define __STDC_CONSTANT_MACROS 1
8341 #define __STDC_LIMIT_MACROS 1
8342 #include <stdint.h>
8343 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
8344 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
8345 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
8346 #endif
8347
8348
8349 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8350 included before <wchar.h>. */
8351 #include <stddef.h>
8352 #include <signal.h>
8353 #if HAVE_WCHAR_H
8354 # include <stdio.h>
8355 # include <time.h>
8356 # include <wchar.h>
8357 #endif
8358
8359
8360 #ifdef INT8_MAX
8361 int8_t a1 = INT8_MAX;
8362 int8_t a1min = INT8_MIN;
8363 #endif
8364 #ifdef INT16_MAX
8365 int16_t a2 = INT16_MAX;
8366 int16_t a2min = INT16_MIN;
8367 #endif
8368 #ifdef INT32_MAX
8369 int32_t a3 = INT32_MAX;
8370 int32_t a3min = INT32_MIN;
8371 #endif
8372 #ifdef INT64_MAX
8373 int64_t a4 = INT64_MAX;
8374 int64_t a4min = INT64_MIN;
8375 #endif
8376 #ifdef UINT8_MAX
8377 uint8_t b1 = UINT8_MAX;
8378 #else
8379 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
8380 #endif
8381 #ifdef UINT16_MAX
8382 uint16_t b2 = UINT16_MAX;
8383 #endif
8384 #ifdef UINT32_MAX
8385 uint32_t b3 = UINT32_MAX;
8386 #endif
8387 #ifdef UINT64_MAX
8388 uint64_t b4 = UINT64_MAX;
8389 #endif
8390 int_least8_t c1 = INT8_C (0x7f);
8391 int_least8_t c1max = INT_LEAST8_MAX;
8392 int_least8_t c1min = INT_LEAST8_MIN;
8393 int_least16_t c2 = INT16_C (0x7fff);
8394 int_least16_t c2max = INT_LEAST16_MAX;
8395 int_least16_t c2min = INT_LEAST16_MIN;
8396 int_least32_t c3 = INT32_C (0x7fffffff);
8397 int_least32_t c3max = INT_LEAST32_MAX;
8398 int_least32_t c3min = INT_LEAST32_MIN;
8399 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
8400 int_least64_t c4max = INT_LEAST64_MAX;
8401 int_least64_t c4min = INT_LEAST64_MIN;
8402 uint_least8_t d1 = UINT8_C (0xff);
8403 uint_least8_t d1max = UINT_LEAST8_MAX;
8404 uint_least16_t d2 = UINT16_C (0xffff);
8405 uint_least16_t d2max = UINT_LEAST16_MAX;
8406 uint_least32_t d3 = UINT32_C (0xffffffff);
8407 uint_least32_t d3max = UINT_LEAST32_MAX;
8408 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
8409 uint_least64_t d4max = UINT_LEAST64_MAX;
8410 int_fast8_t e1 = INT_FAST8_MAX;
8411 int_fast8_t e1min = INT_FAST8_MIN;
8412 int_fast16_t e2 = INT_FAST16_MAX;
8413 int_fast16_t e2min = INT_FAST16_MIN;
8414 int_fast32_t e3 = INT_FAST32_MAX;
8415 int_fast32_t e3min = INT_FAST32_MIN;
8416 int_fast64_t e4 = INT_FAST64_MAX;
8417 int_fast64_t e4min = INT_FAST64_MIN;
8418 uint_fast8_t f1 = UINT_FAST8_MAX;
8419 uint_fast16_t f2 = UINT_FAST16_MAX;
8420 uint_fast32_t f3 = UINT_FAST32_MAX;
8421 uint_fast64_t f4 = UINT_FAST64_MAX;
8422 #ifdef INTPTR_MAX
8423 intptr_t g = INTPTR_MAX;
8424 intptr_t gmin = INTPTR_MIN;
8425 #endif
8426 #ifdef UINTPTR_MAX
8427 uintptr_t h = UINTPTR_MAX;
8428 #endif
8429 intmax_t i = INTMAX_MAX;
8430 uintmax_t j = UINTMAX_MAX;
8431
8432 /* Check that SIZE_MAX has the correct type, if possible. */
8433 #if 201112 <= __STDC_VERSION__
8434 int k = _Generic (SIZE_MAX, size_t: 0);
8435 #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
8436 || (0x5110 <= __SUNPRO_C && !__STDC__))
8437 extern size_t k;
8438 extern __typeof__ (SIZE_MAX) k;
8439 #endif
8440
8441 #include <limits.h> /* for CHAR_BIT */
8442 #define TYPE_MINIMUM(t) \
8443 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
8444 #define TYPE_MAXIMUM(t) \
8445 ((t) ((t) 0 < (t) -1 \
8446 ? (t) -1 \
8447 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
8448 struct s {
8449 int check_PTRDIFF:
8450 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
8451 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
8452 ? 1 : -1;
8453 /* Detect bug in FreeBSD 6.0 / ia64. */
8454 int check_SIG_ATOMIC:
8455 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
8456 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
8457 ? 1 : -1;
8458 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
8459 int check_WCHAR:
8460 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
8461 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
8462 ? 1 : -1;
8463 /* Detect bug in mingw. */
8464 int check_WINT:
8465 WINT_MIN == TYPE_MINIMUM (wint_t)
8466 && WINT_MAX == TYPE_MAXIMUM (wint_t)
8467 ? 1 : -1;
8468
8469 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
8470 int check_UINT8_C:
8471 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
8472 int check_UINT16_C:
8473 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
8474
8475 /* Detect bugs in OpenBSD 3.9 stdint.h. */
8476 #ifdef UINT8_MAX
8477 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
8478 #endif
8479 #ifdef UINT16_MAX
8480 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
8481 #endif
8482 #ifdef UINT32_MAX
8483 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
8484 #endif
8485 #ifdef UINT64_MAX
8486 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
8487 #endif
8488 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
8489 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
8490 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
8491 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
8492 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
8493 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
8494 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
8495 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
8496 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
8497 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
8498 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
8499 };
8500
8501 int
8502 main ()
8503 {
8504
8505 ;
8506 return 0;
8507 }
8508 _ACEOF
8509 if ac_fn_c_try_compile "$LINENO"; then :
8510 if test "$cross_compiling" = yes; then :
8511 gl_cv_header_working_stdint_h=yes
8512
8513 else
8514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h. */
8516
8517
8518 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8519 #define __STDC_CONSTANT_MACROS 1
8520 #define __STDC_LIMIT_MACROS 1
8521 #include <stdint.h>
8522
8523
8524 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8525 included before <wchar.h>. */
8526 #include <stddef.h>
8527 #include <signal.h>
8528 #if HAVE_WCHAR_H
8529 # include <stdio.h>
8530 # include <time.h>
8531 # include <wchar.h>
8532 #endif
8533
8534
8535 #include <stdio.h>
8536 #include <string.h>
8537 #define MVAL(macro) MVAL1(macro)
8538 #define MVAL1(expression) #expression
8539 static const char *macro_values[] =
8540 {
8541 #ifdef INT8_MAX
8542 MVAL (INT8_MAX),
8543 #endif
8544 #ifdef INT16_MAX
8545 MVAL (INT16_MAX),
8546 #endif
8547 #ifdef INT32_MAX
8548 MVAL (INT32_MAX),
8549 #endif
8550 #ifdef INT64_MAX
8551 MVAL (INT64_MAX),
8552 #endif
8553 #ifdef UINT8_MAX
8554 MVAL (UINT8_MAX),
8555 #endif
8556 #ifdef UINT16_MAX
8557 MVAL (UINT16_MAX),
8558 #endif
8559 #ifdef UINT32_MAX
8560 MVAL (UINT32_MAX),
8561 #endif
8562 #ifdef UINT64_MAX
8563 MVAL (UINT64_MAX),
8564 #endif
8565 NULL
8566 };
8567
8568 int
8569 main ()
8570 {
8571
8572 const char **mv;
8573 for (mv = macro_values; *mv != NULL; mv++)
8574 {
8575 const char *value = *mv;
8576 /* Test whether it looks like a cast expression. */
8577 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
8578 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
8579 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
8580 || strncmp (value, "((int)"/*)*/, 6) == 0
8581 || strncmp (value, "((signed short)"/*)*/, 15) == 0
8582 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
8583 return mv - macro_values + 1;
8584 }
8585 return 0;
8586
8587 ;
8588 return 0;
8589 }
8590 _ACEOF
8591 if ac_fn_c_try_run "$LINENO"; then :
8592 gl_cv_header_working_stdint_h=yes
8593 fi
8594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8595 conftest.$ac_objext conftest.beam conftest.$ac_ext
8596 fi
8597
8598
8599 fi
8600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8601
8602 fi
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
8604 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
8605 fi
8606
8607 HAVE_C99_STDINT_H=0
8608 HAVE_SYS_BITYPES_H=0
8609 HAVE_SYS_INTTYPES_H=0
8610 STDINT_H=stdint.h
8611 if test "$gl_cv_header_working_stdint_h" = yes; then
8612 HAVE_C99_STDINT_H=1
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
8614 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
8615 if test "${gl_cv_header_stdint_predates_cxx11_h+set}" = set; then :
8616 $as_echo_n "(cached) " >&6
8617 else
8618 gl_cv_header_stdint_predates_cxx11_h=yes
8619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8620 /* end confdefs.h. */
8621
8622
8623 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8624 #include <stdint.h>
8625
8626
8627 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8628 included before <wchar.h>. */
8629 #include <stddef.h>
8630 #include <signal.h>
8631 #if HAVE_WCHAR_H
8632 # include <stdio.h>
8633 # include <time.h>
8634 # include <wchar.h>
8635 #endif
8636
8637
8638 intmax_t im = INTMAX_MAX;
8639 int32_t i32 = INT32_C (0x7fffffff);
8640
8641 int
8642 main ()
8643 {
8644
8645 ;
8646 return 0;
8647 }
8648 _ACEOF
8649 if ac_fn_c_try_compile "$LINENO"; then :
8650 gl_cv_header_stdint_predates_cxx11_h=no
8651 fi
8652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8653 fi
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
8655 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
8656
8657 if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
8658
8659 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
8660
8661
8662 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
8663
8664 fi
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
8666 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
8667 if test "${gl_cv_header_stdint_width+set}" = set; then :
8668 $as_echo_n "(cached) " >&6
8669 else
8670 gl_cv_header_stdint_width=no
8671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h. */
8673
8674 /* Work if build is not clean. */
8675 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
8676 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
8677 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
8678 #endif
8679 #include <stdint.h>
8680
8681 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8682 included before <wchar.h>. */
8683 #include <stddef.h>
8684 #include <signal.h>
8685 #if HAVE_WCHAR_H
8686 # include <stdio.h>
8687 # include <time.h>
8688 # include <wchar.h>
8689 #endif
8690
8691 int iw = UINTMAX_WIDTH;
8692
8693 int
8694 main ()
8695 {
8696
8697 ;
8698 return 0;
8699 }
8700 _ACEOF
8701 if ac_fn_c_try_compile "$LINENO"; then :
8702 gl_cv_header_stdint_width=yes
8703 fi
8704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8705 fi
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
8707 $as_echo "$gl_cv_header_stdint_width" >&6; }
8708 if test "$gl_cv_header_stdint_width" = yes; then
8709 STDINT_H=
8710 fi
8711 else
8712 for ac_header in sys/inttypes.h sys/bitypes.h
8713 do :
8714 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8715 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8716 eval as_val=\$$as_ac_Header
8717 if test "x$as_val" = x""yes; then :
8718 cat >>confdefs.h <<_ACEOF
8719 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8720 _ACEOF
8721
8722 fi
8723
8724 done
8725
8726 if test $ac_cv_header_sys_inttypes_h = yes; then
8727 HAVE_SYS_INTTYPES_H=1
8728 fi
8729 if test $ac_cv_header_sys_bitypes_h = yes; then
8730 HAVE_SYS_BITYPES_H=1
8731 fi
8732
8733
8734 if test $APPLE_UNIVERSAL_BUILD = 0; then
8735
8736
8737 for gltype in ptrdiff_t size_t ; do
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8739 $as_echo_n "checking for bit size of $gltype... " >&6; }
8740 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8741 $as_echo_n "(cached) " >&6
8742 else
8743 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8744 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8745 included before <wchar.h>. */
8746 #include <stddef.h>
8747 #include <signal.h>
8748 #if HAVE_WCHAR_H
8749 # include <stdio.h>
8750 # include <time.h>
8751 # include <wchar.h>
8752 #endif
8753
8754 #include <limits.h>"; then :
8755
8756 else
8757 result=unknown
8758 fi
8759
8760 eval gl_cv_bitsizeof_${gltype}=\$result
8761
8762 fi
8763 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8765 $as_echo "$ac_res" >&6; }
8766 eval result=\$gl_cv_bitsizeof_${gltype}
8767 if test $result = unknown; then
8768 result=0
8769 fi
8770 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8771 cat >>confdefs.h <<_ACEOF
8772 #define BITSIZEOF_${GLTYPE} $result
8773 _ACEOF
8774
8775 eval BITSIZEOF_${GLTYPE}=\$result
8776 done
8777
8778
8779 fi
8780
8781
8782 for gltype in sig_atomic_t wchar_t wint_t ; do
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8784 $as_echo_n "checking for bit size of $gltype... " >&6; }
8785 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8786 $as_echo_n "(cached) " >&6
8787 else
8788 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8789 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8790 included before <wchar.h>. */
8791 #include <stddef.h>
8792 #include <signal.h>
8793 #if HAVE_WCHAR_H
8794 # include <stdio.h>
8795 # include <time.h>
8796 # include <wchar.h>
8797 #endif
8798
8799 #include <limits.h>"; then :
8800
8801 else
8802 result=unknown
8803 fi
8804
8805 eval gl_cv_bitsizeof_${gltype}=\$result
8806
8807 fi
8808 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8810 $as_echo "$ac_res" >&6; }
8811 eval result=\$gl_cv_bitsizeof_${gltype}
8812 if test $result = unknown; then
8813 result=0
8814 fi
8815 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8816 cat >>confdefs.h <<_ACEOF
8817 #define BITSIZEOF_${GLTYPE} $result
8818 _ACEOF
8819
8820 eval BITSIZEOF_${GLTYPE}=\$result
8821 done
8822
8823
8824
8825
8826 for gltype in sig_atomic_t wchar_t wint_t ; do
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
8828 $as_echo_n "checking whether $gltype is signed... " >&6; }
8829 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
8830 $as_echo_n "(cached) " >&6
8831 else
8832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8833 /* end confdefs.h. */
8834
8835 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8836 included before <wchar.h>. */
8837 #include <stddef.h>
8838 #include <signal.h>
8839 #if HAVE_WCHAR_H
8840 # include <stdio.h>
8841 # include <time.h>
8842 # include <wchar.h>
8843 #endif
8844
8845 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
8846 int
8847 main ()
8848 {
8849
8850 ;
8851 return 0;
8852 }
8853 _ACEOF
8854 if ac_fn_c_try_compile "$LINENO"; then :
8855 result=yes
8856 else
8857 result=no
8858 fi
8859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8860 eval gl_cv_type_${gltype}_signed=\$result
8861
8862 fi
8863 eval ac_res=\$gl_cv_type_${gltype}_signed
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8865 $as_echo "$ac_res" >&6; }
8866 eval result=\$gl_cv_type_${gltype}_signed
8867 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8868 if test "$result" = yes; then
8869 cat >>confdefs.h <<_ACEOF
8870 #define HAVE_SIGNED_${GLTYPE} 1
8871 _ACEOF
8872
8873 eval HAVE_SIGNED_${GLTYPE}=1
8874 else
8875 eval HAVE_SIGNED_${GLTYPE}=0
8876 fi
8877 done
8878
8879
8880 gl_cv_type_ptrdiff_t_signed=yes
8881 gl_cv_type_size_t_signed=no
8882 if test $APPLE_UNIVERSAL_BUILD = 0; then
8883
8884
8885 for gltype in ptrdiff_t size_t ; do
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8887 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8888 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8889 $as_echo_n "(cached) " >&6
8890 else
8891 eval gl_cv_type_${gltype}_suffix=no
8892 eval result=\$gl_cv_type_${gltype}_signed
8893 if test "$result" = yes; then
8894 glsufu=
8895 else
8896 glsufu=u
8897 fi
8898 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8899 case $glsuf in
8900 '') gltype1='int';;
8901 l) gltype1='long int';;
8902 ll) gltype1='long long int';;
8903 i64) gltype1='__int64';;
8904 u) gltype1='unsigned int';;
8905 ul) gltype1='unsigned long int';;
8906 ull) gltype1='unsigned long long int';;
8907 ui64)gltype1='unsigned __int64';;
8908 esac
8909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8910 /* end confdefs.h. */
8911
8912 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8913 included before <wchar.h>. */
8914 #include <stddef.h>
8915 #include <signal.h>
8916 #if HAVE_WCHAR_H
8917 # include <stdio.h>
8918 # include <time.h>
8919 # include <wchar.h>
8920 #endif
8921
8922 extern $gltype foo;
8923 extern $gltype1 foo;
8924 int
8925 main ()
8926 {
8927
8928 ;
8929 return 0;
8930 }
8931 _ACEOF
8932 if ac_fn_c_try_compile "$LINENO"; then :
8933 eval gl_cv_type_${gltype}_suffix=\$glsuf
8934 fi
8935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8936 eval result=\$gl_cv_type_${gltype}_suffix
8937 test "$result" != no && break
8938 done
8939 fi
8940 eval ac_res=\$gl_cv_type_${gltype}_suffix
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8942 $as_echo "$ac_res" >&6; }
8943 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8944 eval result=\$gl_cv_type_${gltype}_suffix
8945 test "$result" = no && result=
8946 eval ${GLTYPE}_SUFFIX=\$result
8947 cat >>confdefs.h <<_ACEOF
8948 #define ${GLTYPE}_SUFFIX $result
8949 _ACEOF
8950
8951 done
8952
8953
8954 fi
8955
8956
8957 for gltype in sig_atomic_t wchar_t wint_t ; do
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8959 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8960 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8961 $as_echo_n "(cached) " >&6
8962 else
8963 eval gl_cv_type_${gltype}_suffix=no
8964 eval result=\$gl_cv_type_${gltype}_signed
8965 if test "$result" = yes; then
8966 glsufu=
8967 else
8968 glsufu=u
8969 fi
8970 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8971 case $glsuf in
8972 '') gltype1='int';;
8973 l) gltype1='long int';;
8974 ll) gltype1='long long int';;
8975 i64) gltype1='__int64';;
8976 u) gltype1='unsigned int';;
8977 ul) gltype1='unsigned long int';;
8978 ull) gltype1='unsigned long long int';;
8979 ui64)gltype1='unsigned __int64';;
8980 esac
8981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8982 /* end confdefs.h. */
8983
8984 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8985 included before <wchar.h>. */
8986 #include <stddef.h>
8987 #include <signal.h>
8988 #if HAVE_WCHAR_H
8989 # include <stdio.h>
8990 # include <time.h>
8991 # include <wchar.h>
8992 #endif
8993
8994 extern $gltype foo;
8995 extern $gltype1 foo;
8996 int
8997 main ()
8998 {
8999
9000 ;
9001 return 0;
9002 }
9003 _ACEOF
9004 if ac_fn_c_try_compile "$LINENO"; then :
9005 eval gl_cv_type_${gltype}_suffix=\$glsuf
9006 fi
9007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9008 eval result=\$gl_cv_type_${gltype}_suffix
9009 test "$result" != no && break
9010 done
9011 fi
9012 eval ac_res=\$gl_cv_type_${gltype}_suffix
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9014 $as_echo "$ac_res" >&6; }
9015 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
9016 eval result=\$gl_cv_type_${gltype}_suffix
9017 test "$result" = no && result=
9018 eval ${GLTYPE}_SUFFIX=\$result
9019 cat >>confdefs.h <<_ACEOF
9020 #define ${GLTYPE}_SUFFIX $result
9021 _ACEOF
9022
9023 done
9024
9025
9026
9027 if test $BITSIZEOF_WINT_T -lt 32; then
9028 BITSIZEOF_WINT_T=32
9029 fi
9030
9031 fi
9032
9033 # The substitute stdint.h needs the substitute limit.h's _GL_INTEGER_WIDTH.
9034 LIMITS_H=limits.h
9035 if test -n "$LIMITS_H"; then
9036 GL_GENERATE_LIMITS_H_TRUE=
9037 GL_GENERATE_LIMITS_H_FALSE='#'
9038 else
9039 GL_GENERATE_LIMITS_H_TRUE='#'
9040 GL_GENERATE_LIMITS_H_FALSE=
9041 fi
9042
9043
9044
9045
9046
9047
9048 if test -n "$STDINT_H"; then
9049 GL_GENERATE_STDINT_H_TRUE=
9050 GL_GENERATE_STDINT_H_FALSE='#'
9051 else
9052 GL_GENERATE_STDINT_H_TRUE='#'
9053 GL_GENERATE_STDINT_H_FALSE=
9054 fi
9055
9056
9057
9058
9059
9060 GNULIB_IMAXABS=0;
9061 GNULIB_IMAXDIV=0;
9062 GNULIB_STRTOIMAX=0;
9063 GNULIB_STRTOUMAX=0;
9064 HAVE_DECL_IMAXABS=1;
9065 HAVE_DECL_IMAXDIV=1;
9066 HAVE_DECL_STRTOIMAX=1;
9067 HAVE_DECL_STRTOUMAX=1;
9068 REPLACE_STRTOIMAX=0;
9069 REPLACE_STRTOUMAX=0;
9070 INT32_MAX_LT_INTMAX_MAX=1;
9071 INT64_MAX_EQ_LONG_MAX='defined _LP64';
9072 PRI_MACROS_BROKEN=0;
9073 PRIPTR_PREFIX=__PRIPTR_PREFIX;
9074 UINT32_MAX_LT_UINTMAX_MAX=1;
9075 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091 if test $gl_cv_have_include_next = yes; then
9092 gl_cv_next_inttypes_h='<'inttypes.h'>'
9093 else
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
9095 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
9096 if test "${gl_cv_next_inttypes_h+set}" = set; then :
9097 $as_echo_n "(cached) " >&6
9098 else
9099
9100 if test $ac_cv_header_inttypes_h = yes; then
9101
9102
9103
9104
9105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9106 /* end confdefs.h. */
9107 #include <inttypes.h>
9108 _ACEOF
9109 case "$host_os" in
9110 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9111 *) gl_absname_cpp="$ac_cpp" ;;
9112 esac
9113
9114 case "$host_os" in
9115 mingw*)
9116 gl_dirsep_regex='[/\\]'
9117 ;;
9118 *)
9119 gl_dirsep_regex='\/'
9120 ;;
9121 esac
9122 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9123 gl_header_literal_regex=`echo 'inttypes.h' \
9124 | sed -e "$gl_make_literal_regex_sed"`
9125 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9126 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9127 s|^/[^/]|//&|
9128 p
9129 q
9130 }'
9131
9132 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9133 sed -n "$gl_absolute_header_sed"`
9134
9135 gl_header=$gl_cv_absolute_inttypes_h
9136 gl_cv_next_inttypes_h='"'$gl_header'"'
9137 else
9138 gl_cv_next_inttypes_h='<'inttypes.h'>'
9139 fi
9140
9141
9142 fi
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
9144 $as_echo "$gl_cv_next_inttypes_h" >&6; }
9145 fi
9146 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
9147
9148 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9149 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9150 gl_next_as_first_directive='<'inttypes.h'>'
9151 else
9152 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9153 gl_next_as_first_directive=$gl_cv_next_inttypes_h
9154 fi
9155 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
9156
9157
9158
9159
9160
9161
9162
9163
9164 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
9165 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9167 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9168 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
9169 $as_echo_n "(cached) " >&6
9170 else
9171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9172 /* end confdefs.h. */
9173 #include <inttypes.h>
9174
9175 int
9176 main ()
9177 {
9178 #undef $gl_func
9179 (void) $gl_func;
9180 ;
9181 return 0;
9182 }
9183 _ACEOF
9184 if ac_fn_c_try_compile "$LINENO"; then :
9185 eval "$as_gl_Symbol=yes"
9186 else
9187 eval "$as_gl_Symbol=no"
9188 fi
9189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9190 fi
9191 eval ac_res=\$$as_gl_Symbol
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9193 $as_echo "$ac_res" >&6; }
9194 eval as_val=\$$as_gl_Symbol
9195 if test "x$as_val" = x""yes; then :
9196 cat >>confdefs.h <<_ACEOF
9197 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9198 _ACEOF
9199
9200 eval ac_cv_have_decl_$gl_func=yes
9201 fi
9202 done
9203
9204
9205
9206 for ac_header in inttypes.h
9207 do :
9208 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
9209 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
9210 cat >>confdefs.h <<_ACEOF
9211 #define HAVE_INTTYPES_H 1
9212 _ACEOF
9213
9214 fi
9215
9216 done
9217
9218 if test $ac_cv_header_inttypes_h = yes; then
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
9220 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
9221 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
9222 $as_echo_n "(cached) " >&6
9223 else
9224
9225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226 /* end confdefs.h. */
9227
9228 #include <inttypes.h>
9229 #ifdef PRId32
9230 char *p = PRId32;
9231 #endif
9232
9233 int
9234 main ()
9235 {
9236
9237 ;
9238 return 0;
9239 }
9240 _ACEOF
9241 if ac_fn_c_try_compile "$LINENO"; then :
9242 gt_cv_inttypes_pri_broken=no
9243 else
9244 gt_cv_inttypes_pri_broken=yes
9245 fi
9246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9247
9248 fi
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
9250 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
9251 fi
9252 if test "$gt_cv_inttypes_pri_broken" = yes; then
9253
9254 cat >>confdefs.h <<_ACEOF
9255 #define PRI_MACROS_BROKEN 1
9256 _ACEOF
9257
9258 PRI_MACROS_BROKEN=1
9259 else
9260 PRI_MACROS_BROKEN=0
9261 fi
9262
9263
9264
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
9266 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
9267 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
9268 $as_echo_n "(cached) " >&6
9269 else
9270
9271 if test "$cross_compiling" = yes; then :
9272
9273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9274 /* end confdefs.h. */
9275
9276 #if defined arm || defined __arm || defined __arm__
9277 mixed_endianness
9278 #endif
9279
9280 _ACEOF
9281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9282 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
9283 gl_cv_cc_double_expbit0="unknown"
9284 else
9285
9286 :
9287 if test "${ac_cv_c_bigendian+set}" = set; then :
9288 $as_echo_n "(cached) " >&6
9289 else
9290 ac_cv_c_bigendian=unknown
9291 # See if we're dealing with a universal compiler.
9292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9293 /* end confdefs.h. */
9294 #ifndef __APPLE_CC__
9295 not a universal capable compiler
9296 #endif
9297 typedef int dummy;
9298
9299 _ACEOF
9300 if ac_fn_c_try_compile "$LINENO"; then :
9301
9302 # Check for potential -arch flags. It is not universal unless
9303 # there are at least two -arch flags with different values.
9304 ac_arch=
9305 ac_prev=
9306 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9307 if test -n "$ac_prev"; then
9308 case $ac_word in
9309 i?86 | x86_64 | ppc | ppc64)
9310 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9311 ac_arch=$ac_word
9312 else
9313 ac_cv_c_bigendian=universal
9314 break
9315 fi
9316 ;;
9317 esac
9318 ac_prev=
9319 elif test "x$ac_word" = "x-arch"; then
9320 ac_prev=arch
9321 fi
9322 done
9323 fi
9324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9325 if test $ac_cv_c_bigendian = unknown; then
9326 # See if sys/param.h defines the BYTE_ORDER macro.
9327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9328 /* end confdefs.h. */
9329 #include <sys/types.h>
9330 #include <sys/param.h>
9331
9332 int
9333 main ()
9334 {
9335 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9336 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9337 && LITTLE_ENDIAN)
9338 bogus endian macros
9339 #endif
9340
9341 ;
9342 return 0;
9343 }
9344 _ACEOF
9345 if ac_fn_c_try_compile "$LINENO"; then :
9346 # It does; now see whether it defined to BIG_ENDIAN or not.
9347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9348 /* end confdefs.h. */
9349 #include <sys/types.h>
9350 #include <sys/param.h>
9351
9352 int
9353 main ()
9354 {
9355 #if BYTE_ORDER != BIG_ENDIAN
9356 not big endian
9357 #endif
9358
9359 ;
9360 return 0;
9361 }
9362 _ACEOF
9363 if ac_fn_c_try_compile "$LINENO"; then :
9364 ac_cv_c_bigendian=yes
9365 else
9366 ac_cv_c_bigendian=no
9367 fi
9368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9369 fi
9370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9371 fi
9372 if test $ac_cv_c_bigendian = unknown; then
9373 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9375 /* end confdefs.h. */
9376 #include <limits.h>
9377
9378 int
9379 main ()
9380 {
9381 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9382 bogus endian macros
9383 #endif
9384
9385 ;
9386 return 0;
9387 }
9388 _ACEOF
9389 if ac_fn_c_try_compile "$LINENO"; then :
9390 # It does; now see whether it defined to _BIG_ENDIAN or not.
9391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9392 /* end confdefs.h. */
9393 #include <limits.h>
9394
9395 int
9396 main ()
9397 {
9398 #ifndef _BIG_ENDIAN
9399 not big endian
9400 #endif
9401
9402 ;
9403 return 0;
9404 }
9405 _ACEOF
9406 if ac_fn_c_try_compile "$LINENO"; then :
9407 ac_cv_c_bigendian=yes
9408 else
9409 ac_cv_c_bigendian=no
9410 fi
9411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9412 fi
9413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9414 fi
9415 if test $ac_cv_c_bigendian = unknown; then
9416 # Compile a test program.
9417 if test "$cross_compiling" = yes; then :
9418 # Try to guess by grepping values from an object file.
9419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9420 /* end confdefs.h. */
9421 short int ascii_mm[] =
9422 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9423 short int ascii_ii[] =
9424 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9425 int use_ascii (int i) {
9426 return ascii_mm[i] + ascii_ii[i];
9427 }
9428 short int ebcdic_ii[] =
9429 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9430 short int ebcdic_mm[] =
9431 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9432 int use_ebcdic (int i) {
9433 return ebcdic_mm[i] + ebcdic_ii[i];
9434 }
9435 extern int foo;
9436
9437 int
9438 main ()
9439 {
9440 return use_ascii (foo) == use_ebcdic (foo);
9441 ;
9442 return 0;
9443 }
9444 _ACEOF
9445 if ac_fn_c_try_compile "$LINENO"; then :
9446 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9447 ac_cv_c_bigendian=yes
9448 fi
9449 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9450 if test "$ac_cv_c_bigendian" = unknown; then
9451 ac_cv_c_bigendian=no
9452 else
9453 # finding both strings is unlikely to happen, but who knows?
9454 ac_cv_c_bigendian=unknown
9455 fi
9456 fi
9457 fi
9458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9459 else
9460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9461 /* end confdefs.h. */
9462 $ac_includes_default
9463 int
9464 main ()
9465 {
9466
9467 /* Are we little or big endian? From Harbison&Steele. */
9468 union
9469 {
9470 long int l;
9471 char c[sizeof (long int)];
9472 } u;
9473 u.l = 1;
9474 return u.c[sizeof (long int) - 1] == 1;
9475
9476 ;
9477 return 0;
9478 }
9479 _ACEOF
9480 if ac_fn_c_try_run "$LINENO"; then :
9481 ac_cv_c_bigendian=no
9482 else
9483 ac_cv_c_bigendian=yes
9484 fi
9485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9486 conftest.$ac_objext conftest.beam conftest.$ac_ext
9487 fi
9488
9489 fi
9490 fi
9491 :
9492 case $ac_cv_c_bigendian in #(
9493 yes)
9494 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
9495 no)
9496 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
9497 universal)
9498
9499 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9500
9501 ;; #(
9502 *)
9503 gl_cv_cc_double_expbit0="unknown" ;;
9504 esac
9505
9506
9507 fi
9508 rm -f conftest*
9509
9510
9511 else
9512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9513 /* end confdefs.h. */
9514
9515 #include <float.h>
9516 #include <stddef.h>
9517 #include <stdio.h>
9518 #include <string.h>
9519 #define NWORDS \
9520 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
9521 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
9522 static unsigned int ored_words[NWORDS];
9523 static unsigned int anded_words[NWORDS];
9524 static void add_to_ored_words (double x)
9525 {
9526 memory_double m;
9527 size_t i;
9528 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
9529 memset (&m, 0, sizeof (memory_double));
9530 m.value = x;
9531 for (i = 0; i < NWORDS; i++)
9532 {
9533 ored_words[i] |= m.word[i];
9534 anded_words[i] &= m.word[i];
9535 }
9536 }
9537 int main ()
9538 {
9539 size_t j;
9540 FILE *fp = fopen ("conftest.out", "w");
9541 if (fp == NULL)
9542 return 1;
9543 for (j = 0; j < NWORDS; j++)
9544 anded_words[j] = ~ (unsigned int) 0;
9545 add_to_ored_words (0.25);
9546 add_to_ored_words (0.5);
9547 add_to_ored_words (1.0);
9548 add_to_ored_words (2.0);
9549 add_to_ored_words (4.0);
9550 /* Remove bits that are common (e.g. if representation of the first mantissa
9551 bit is explicit). */
9552 for (j = 0; j < NWORDS; j++)
9553 ored_words[j] &= ~anded_words[j];
9554 /* Now find the nonzero word. */
9555 for (j = 0; j < NWORDS; j++)
9556 if (ored_words[j] != 0)
9557 break;
9558 if (j < NWORDS)
9559 {
9560 size_t i;
9561 for (i = j + 1; i < NWORDS; i++)
9562 if (ored_words[i] != 0)
9563 {
9564 fprintf (fp, "unknown");
9565 return (fclose (fp) != 0);
9566 }
9567 for (i = 0; ; i++)
9568 if ((ored_words[j] >> i) & 1)
9569 {
9570 fprintf (fp, "word %d bit %d", (int) j, (int) i);
9571 return (fclose (fp) != 0);
9572 }
9573 }
9574 fprintf (fp, "unknown");
9575 return (fclose (fp) != 0);
9576 }
9577
9578 _ACEOF
9579 if ac_fn_c_try_run "$LINENO"; then :
9580 gl_cv_cc_double_expbit0=`cat conftest.out`
9581 else
9582 gl_cv_cc_double_expbit0="unknown"
9583 fi
9584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9585 conftest.$ac_objext conftest.beam conftest.$ac_ext
9586 fi
9587
9588 rm -f conftest.out
9589
9590 fi
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
9592 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
9593 case "$gl_cv_cc_double_expbit0" in
9594 word*bit*)
9595 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
9596 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
9597
9598 cat >>confdefs.h <<_ACEOF
9599 #define DBL_EXPBIT0_WORD $word
9600 _ACEOF
9601
9602
9603 cat >>confdefs.h <<_ACEOF
9604 #define DBL_EXPBIT0_BIT $bit
9605 _ACEOF
9606
9607 ;;
9608 esac
9609
9610
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9612 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9613 if test "${ac_cv_c_bigendian+set}" = set; then :
9614 $as_echo_n "(cached) " >&6
9615 else
9616 ac_cv_c_bigendian=unknown
9617 # See if we're dealing with a universal compiler.
9618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9619 /* end confdefs.h. */
9620 #ifndef __APPLE_CC__
9621 not a universal capable compiler
9622 #endif
9623 typedef int dummy;
9624
9625 _ACEOF
9626 if ac_fn_c_try_compile "$LINENO"; then :
9627
9628 # Check for potential -arch flags. It is not universal unless
9629 # there are at least two -arch flags with different values.
9630 ac_arch=
9631 ac_prev=
9632 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9633 if test -n "$ac_prev"; then
9634 case $ac_word in
9635 i?86 | x86_64 | ppc | ppc64)
9636 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9637 ac_arch=$ac_word
9638 else
9639 ac_cv_c_bigendian=universal
9640 break
9641 fi
9642 ;;
9643 esac
9644 ac_prev=
9645 elif test "x$ac_word" = "x-arch"; then
9646 ac_prev=arch
9647 fi
9648 done
9649 fi
9650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9651 if test $ac_cv_c_bigendian = unknown; then
9652 # See if sys/param.h defines the BYTE_ORDER macro.
9653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654 /* end confdefs.h. */
9655 #include <sys/types.h>
9656 #include <sys/param.h>
9657
9658 int
9659 main ()
9660 {
9661 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9662 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9663 && LITTLE_ENDIAN)
9664 bogus endian macros
9665 #endif
9666
9667 ;
9668 return 0;
9669 }
9670 _ACEOF
9671 if ac_fn_c_try_compile "$LINENO"; then :
9672 # It does; now see whether it defined to BIG_ENDIAN or not.
9673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674 /* end confdefs.h. */
9675 #include <sys/types.h>
9676 #include <sys/param.h>
9677
9678 int
9679 main ()
9680 {
9681 #if BYTE_ORDER != BIG_ENDIAN
9682 not big endian
9683 #endif
9684
9685 ;
9686 return 0;
9687 }
9688 _ACEOF
9689 if ac_fn_c_try_compile "$LINENO"; then :
9690 ac_cv_c_bigendian=yes
9691 else
9692 ac_cv_c_bigendian=no
9693 fi
9694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9695 fi
9696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9697 fi
9698 if test $ac_cv_c_bigendian = unknown; then
9699 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9701 /* end confdefs.h. */
9702 #include <limits.h>
9703
9704 int
9705 main ()
9706 {
9707 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9708 bogus endian macros
9709 #endif
9710
9711 ;
9712 return 0;
9713 }
9714 _ACEOF
9715 if ac_fn_c_try_compile "$LINENO"; then :
9716 # It does; now see whether it defined to _BIG_ENDIAN or not.
9717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9718 /* end confdefs.h. */
9719 #include <limits.h>
9720
9721 int
9722 main ()
9723 {
9724 #ifndef _BIG_ENDIAN
9725 not big endian
9726 #endif
9727
9728 ;
9729 return 0;
9730 }
9731 _ACEOF
9732 if ac_fn_c_try_compile "$LINENO"; then :
9733 ac_cv_c_bigendian=yes
9734 else
9735 ac_cv_c_bigendian=no
9736 fi
9737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9738 fi
9739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9740 fi
9741 if test $ac_cv_c_bigendian = unknown; then
9742 # Compile a test program.
9743 if test "$cross_compiling" = yes; then :
9744 # Try to guess by grepping values from an object file.
9745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9746 /* end confdefs.h. */
9747 short int ascii_mm[] =
9748 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9749 short int ascii_ii[] =
9750 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9751 int use_ascii (int i) {
9752 return ascii_mm[i] + ascii_ii[i];
9753 }
9754 short int ebcdic_ii[] =
9755 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9756 short int ebcdic_mm[] =
9757 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9758 int use_ebcdic (int i) {
9759 return ebcdic_mm[i] + ebcdic_ii[i];
9760 }
9761 extern int foo;
9762
9763 int
9764 main ()
9765 {
9766 return use_ascii (foo) == use_ebcdic (foo);
9767 ;
9768 return 0;
9769 }
9770 _ACEOF
9771 if ac_fn_c_try_compile "$LINENO"; then :
9772 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9773 ac_cv_c_bigendian=yes
9774 fi
9775 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9776 if test "$ac_cv_c_bigendian" = unknown; then
9777 ac_cv_c_bigendian=no
9778 else
9779 # finding both strings is unlikely to happen, but who knows?
9780 ac_cv_c_bigendian=unknown
9781 fi
9782 fi
9783 fi
9784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9785 else
9786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9787 /* end confdefs.h. */
9788 $ac_includes_default
9789 int
9790 main ()
9791 {
9792
9793 /* Are we little or big endian? From Harbison&Steele. */
9794 union
9795 {
9796 long int l;
9797 char c[sizeof (long int)];
9798 } u;
9799 u.l = 1;
9800 return u.c[sizeof (long int) - 1] == 1;
9801
9802 ;
9803 return 0;
9804 }
9805 _ACEOF
9806 if ac_fn_c_try_run "$LINENO"; then :
9807 ac_cv_c_bigendian=no
9808 else
9809 ac_cv_c_bigendian=yes
9810 fi
9811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9812 conftest.$ac_objext conftest.beam conftest.$ac_ext
9813 fi
9814
9815 fi
9816 fi
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9818 $as_echo "$ac_cv_c_bigendian" >&6; }
9819 case $ac_cv_c_bigendian in #(
9820 yes)
9821 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9822 ;; #(
9823 no)
9824 ;; #(
9825 universal)
9826
9827 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9828
9829 ;; #(
9830 *)
9831 as_fn_error "unknown endianness
9832 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9833 esac
9834
9835
9836
9837
9838 case "$host_os" in
9839 mingw*)
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
9841 $as_echo_n "checking for 64-bit off_t... " >&6; }
9842 if test "${gl_cv_type_off_t_64+set}" = set; then :
9843 $as_echo_n "(cached) " >&6
9844 else
9845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9846 /* end confdefs.h. */
9847 #include <sys/types.h>
9848 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
9849
9850 int
9851 main ()
9852 {
9853
9854 ;
9855 return 0;
9856 }
9857 _ACEOF
9858 if ac_fn_c_try_compile "$LINENO"; then :
9859 gl_cv_type_off_t_64=yes
9860 else
9861 gl_cv_type_off_t_64=no
9862 fi
9863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9864
9865 fi
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
9867 $as_echo "$gl_cv_type_off_t_64" >&6; }
9868 if test $gl_cv_type_off_t_64 = no; then
9869 WINDOWS_64_BIT_OFF_T=1
9870 else
9871 WINDOWS_64_BIT_OFF_T=0
9872 fi
9873 WINDOWS_64_BIT_ST_SIZE=1
9874 ;;
9875 *)
9876 WINDOWS_64_BIT_OFF_T=0
9877 WINDOWS_64_BIT_ST_SIZE=0
9878 ;;
9879 esac
9880
9881
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9883 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9884 if test "${am_cv_langinfo_codeset+set}" = set; then :
9885 $as_echo_n "(cached) " >&6
9886 else
9887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888 /* end confdefs.h. */
9889 #include <langinfo.h>
9890 int
9891 main ()
9892 {
9893 char* cs = nl_langinfo(CODESET); return !cs;
9894 ;
9895 return 0;
9896 }
9897 _ACEOF
9898 if ac_fn_c_try_link "$LINENO"; then :
9899 am_cv_langinfo_codeset=yes
9900 else
9901 am_cv_langinfo_codeset=no
9902 fi
9903 rm -f core conftest.err conftest.$ac_objext \
9904 conftest$ac_exeext conftest.$ac_ext
9905
9906 fi
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9908 $as_echo "$am_cv_langinfo_codeset" >&6; }
9909 if test $am_cv_langinfo_codeset = yes; then
9910
9911 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9912
9913 fi
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
9925 $as_echo_n "checking for working fcntl.h... " >&6; }
9926 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
9927 $as_echo_n "(cached) " >&6
9928 else
9929 if test "$cross_compiling" = yes; then :
9930 gl_cv_header_working_fcntl_h=cross-compiling
9931 else
9932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9933 /* end confdefs.h. */
9934 #include <sys/types.h>
9935 #include <sys/stat.h>
9936 #if HAVE_UNISTD_H
9937 # include <unistd.h>
9938 #else /* on Windows with MSVC */
9939 # include <io.h>
9940 # include <stdlib.h>
9941 # defined sleep(n) _sleep ((n) * 1000)
9942 #endif
9943 #include <fcntl.h>
9944 #ifndef O_NOATIME
9945 #define O_NOATIME 0
9946 #endif
9947 #ifndef O_NOFOLLOW
9948 #define O_NOFOLLOW 0
9949 #endif
9950 static int const constants[] =
9951 {
9952 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
9953 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
9954 };
9955
9956 int
9957 main ()
9958 {
9959
9960 int result = !constants;
9961 #if HAVE_SYMLINK
9962 {
9963 static char const sym[] = "conftest.sym";
9964 if (symlink ("/dev/null", sym) != 0)
9965 result |= 2;
9966 else
9967 {
9968 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
9969 if (fd >= 0)
9970 {
9971 close (fd);
9972 result |= 4;
9973 }
9974 }
9975 if (unlink (sym) != 0 || symlink (".", sym) != 0)
9976 result |= 2;
9977 else
9978 {
9979 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
9980 if (fd >= 0)
9981 {
9982 close (fd);
9983 result |= 4;
9984 }
9985 }
9986 unlink (sym);
9987 }
9988 #endif
9989 {
9990 static char const file[] = "confdefs.h";
9991 int fd = open (file, O_RDONLY | O_NOATIME);
9992 if (fd < 0)
9993 result |= 8;
9994 else
9995 {
9996 struct stat st0;
9997 if (fstat (fd, &st0) != 0)
9998 result |= 16;
9999 else
10000 {
10001 char c;
10002 sleep (1);
10003 if (read (fd, &c, 1) != 1)
10004 result |= 24;
10005 else
10006 {
10007 if (close (fd) != 0)
10008 result |= 32;
10009 else
10010 {
10011 struct stat st1;
10012 if (stat (file, &st1) != 0)
10013 result |= 40;
10014 else
10015 if (st0.st_atime != st1.st_atime)
10016 result |= 64;
10017 }
10018 }
10019 }
10020 }
10021 }
10022 return result;
10023 ;
10024 return 0;
10025 }
10026 _ACEOF
10027 if ac_fn_c_try_run "$LINENO"; then :
10028 gl_cv_header_working_fcntl_h=yes
10029 else
10030 case $? in #(
10031 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10032 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10033 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10034 *) gl_cv_header_working_fcntl_h='no';;
10035 esac
10036 fi
10037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10038 conftest.$ac_objext conftest.beam conftest.$ac_ext
10039 fi
10040
10041 fi
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10043 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10044
10045 case $gl_cv_header_working_fcntl_h in #(
10046 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10047 *) ac_val=1;;
10048 esac
10049
10050 cat >>confdefs.h <<_ACEOF
10051 #define HAVE_WORKING_O_NOATIME $ac_val
10052 _ACEOF
10053
10054
10055 case $gl_cv_header_working_fcntl_h in #(
10056 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10057 *) ac_val=1;;
10058 esac
10059
10060 cat >>confdefs.h <<_ACEOF
10061 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10062 _ACEOF
10063
10064
10065 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
10066 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
10067 ac_have_decl=1
10068 else
10069 ac_have_decl=0
10070 fi
10071
10072 cat >>confdefs.h <<_ACEOF
10073 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10074 _ACEOF
10075
10076
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
10078 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
10079 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
10080 $as_echo_n "(cached) " >&6
10081 else
10082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10083 /* end confdefs.h. */
10084
10085 #include <features.h>
10086 #ifdef __GNU_LIBRARY__
10087 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10088 Lucky GNU user
10089 #endif
10090 #endif
10091 #ifdef __UCLIBC__
10092 Lucky user
10093 #endif
10094
10095 _ACEOF
10096 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10097 $EGREP "Lucky" >/dev/null 2>&1; then :
10098 ac_cv_gnu_library_2_1=yes
10099 else
10100 ac_cv_gnu_library_2_1=no
10101 fi
10102 rm -f conftest*
10103
10104
10105
10106 fi
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
10108 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
10109
10110 GLIBC21="$ac_cv_gnu_library_2_1"
10111
10112
10113
10114 GNULIB_FCHMODAT=0;
10115 GNULIB_FSTAT=0;
10116 GNULIB_FSTATAT=0;
10117 GNULIB_FUTIMENS=0;
10118 GNULIB_LCHMOD=0;
10119 GNULIB_LSTAT=0;
10120 GNULIB_MKDIRAT=0;
10121 GNULIB_MKFIFO=0;
10122 GNULIB_MKFIFOAT=0;
10123 GNULIB_MKNOD=0;
10124 GNULIB_MKNODAT=0;
10125 GNULIB_STAT=0;
10126 GNULIB_UTIMENSAT=0;
10127 HAVE_FCHMODAT=1;
10128 HAVE_FSTATAT=1;
10129 HAVE_FUTIMENS=1;
10130 HAVE_LCHMOD=1;
10131 HAVE_LSTAT=1;
10132 HAVE_MKDIRAT=1;
10133 HAVE_MKFIFO=1;
10134 HAVE_MKFIFOAT=1;
10135 HAVE_MKNOD=1;
10136 HAVE_MKNODAT=1;
10137 HAVE_UTIMENSAT=1;
10138 REPLACE_FSTAT=0;
10139 REPLACE_FSTATAT=0;
10140 REPLACE_FUTIMENS=0;
10141 REPLACE_LSTAT=0;
10142 REPLACE_MKDIR=0;
10143 REPLACE_MKFIFO=0;
10144 REPLACE_MKNOD=0;
10145 REPLACE_STAT=0;
10146 REPLACE_UTIMENSAT=0;
10147
10148
10149
10150
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
10152 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
10153 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
10154 $as_echo_n "(cached) " >&6
10155 else
10156 rm -f conftest.sym conftest.file
10157 echo >conftest.file
10158 if test "$cross_compiling" = yes; then :
10159 case "$host_os" in
10160 *-gnu*)
10161 # Guess yes on glibc systems.
10162 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
10163 *)
10164 # If we don't know, assume the worst.
10165 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
10166 esac
10167
10168 else
10169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10170 /* end confdefs.h. */
10171 $ac_includes_default
10172 int
10173 main ()
10174 {
10175 struct stat sbuf;
10176 if (symlink ("conftest.file", "conftest.sym") != 0)
10177 return 1;
10178 /* Linux will dereference the symlink and fail, as required by
10179 POSIX. That is better in the sense that it means we will not
10180 have to compile and use the lstat wrapper. */
10181 return lstat ("conftest.sym/", &sbuf) == 0;
10182
10183 ;
10184 return 0;
10185 }
10186 _ACEOF
10187 if ac_fn_c_try_run "$LINENO"; then :
10188 gl_cv_func_lstat_dereferences_slashed_symlink=yes
10189 else
10190 gl_cv_func_lstat_dereferences_slashed_symlink=no
10191 fi
10192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10193 conftest.$ac_objext conftest.beam conftest.$ac_ext
10194 fi
10195
10196 rm -f conftest.sym conftest.file
10197
10198 fi
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
10200 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
10201 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
10202 *yes)
10203
10204 cat >>confdefs.h <<_ACEOF
10205 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10206 _ACEOF
10207
10208 ;;
10209 esac
10210
10211
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
10213 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
10214 if test "${gl_cv_func_malloc_posix+set}" = set; then :
10215 $as_echo_n "(cached) " >&6
10216 else
10217
10218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10219 /* end confdefs.h. */
10220
10221 int
10222 main ()
10223 {
10224 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
10225 choke me
10226 #endif
10227
10228 ;
10229 return 0;
10230 }
10231 _ACEOF
10232 if ac_fn_c_try_compile "$LINENO"; then :
10233 gl_cv_func_malloc_posix=yes
10234 else
10235 gl_cv_func_malloc_posix=no
10236 fi
10237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10238
10239 fi
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
10241 $as_echo "$gl_cv_func_malloc_posix" >&6; }
10242
10243
10244
10245 for ac_header in stdlib.h
10246 do :
10247 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
10248 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
10249 cat >>confdefs.h <<_ACEOF
10250 #define HAVE_STDLIB_H 1
10251 _ACEOF
10252
10253 fi
10254
10255 done
10256
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
10258 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
10259 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
10260 $as_echo_n "(cached) " >&6
10261 else
10262 if test "$cross_compiling" = yes; then :
10263 case "$host_os" in
10264 # Guess yes on platforms where we know the result.
10265 *-gnu* | freebsd* | netbsd* | openbsd* \
10266 | hpux* | solaris* | cygwin* | mingw*)
10267 ac_cv_func_malloc_0_nonnull=yes ;;
10268 # If we don't know, assume the worst.
10269 *) ac_cv_func_malloc_0_nonnull=no ;;
10270 esac
10271
10272 else
10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h. */
10275 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
10276 # include <stdlib.h>
10277 #else
10278 char *malloc ();
10279 #endif
10280
10281 int
10282 main ()
10283 {
10284 char *p = malloc (0);
10285 int result = !p;
10286 free (p);
10287 return result;
10288 ;
10289 return 0;
10290 }
10291
10292 _ACEOF
10293 if ac_fn_c_try_run "$LINENO"; then :
10294 ac_cv_func_malloc_0_nonnull=yes
10295 else
10296 ac_cv_func_malloc_0_nonnull=no
10297 fi
10298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10299 conftest.$ac_objext conftest.beam conftest.$ac_ext
10300 fi
10301
10302
10303 fi
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
10305 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
10306 if test $ac_cv_func_malloc_0_nonnull = yes; then :
10307 gl_cv_func_malloc_0_nonnull=1
10308 else
10309 gl_cv_func_malloc_0_nonnull=0
10310 fi
10311
10312
10313 cat >>confdefs.h <<_ACEOF
10314 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
10315 _ACEOF
10316
10317
10318
10319
10320
10321 GNULIB_BTOWC=0;
10322 GNULIB_WCTOB=0;
10323 GNULIB_MBSINIT=0;
10324 GNULIB_MBRTOWC=0;
10325 GNULIB_MBRLEN=0;
10326 GNULIB_MBSRTOWCS=0;
10327 GNULIB_MBSNRTOWCS=0;
10328 GNULIB_WCRTOMB=0;
10329 GNULIB_WCSRTOMBS=0;
10330 GNULIB_WCSNRTOMBS=0;
10331 GNULIB_WCWIDTH=0;
10332 GNULIB_WMEMCHR=0;
10333 GNULIB_WMEMCMP=0;
10334 GNULIB_WMEMCPY=0;
10335 GNULIB_WMEMMOVE=0;
10336 GNULIB_WMEMSET=0;
10337 GNULIB_WCSLEN=0;
10338 GNULIB_WCSNLEN=0;
10339 GNULIB_WCSCPY=0;
10340 GNULIB_WCPCPY=0;
10341 GNULIB_WCSNCPY=0;
10342 GNULIB_WCPNCPY=0;
10343 GNULIB_WCSCAT=0;
10344 GNULIB_WCSNCAT=0;
10345 GNULIB_WCSCMP=0;
10346 GNULIB_WCSNCMP=0;
10347 GNULIB_WCSCASECMP=0;
10348 GNULIB_WCSNCASECMP=0;
10349 GNULIB_WCSCOLL=0;
10350 GNULIB_WCSXFRM=0;
10351 GNULIB_WCSDUP=0;
10352 GNULIB_WCSCHR=0;
10353 GNULIB_WCSRCHR=0;
10354 GNULIB_WCSCSPN=0;
10355 GNULIB_WCSSPN=0;
10356 GNULIB_WCSPBRK=0;
10357 GNULIB_WCSSTR=0;
10358 GNULIB_WCSTOK=0;
10359 GNULIB_WCSWIDTH=0;
10360 HAVE_BTOWC=1;
10361 HAVE_MBSINIT=1;
10362 HAVE_MBRTOWC=1;
10363 HAVE_MBRLEN=1;
10364 HAVE_MBSRTOWCS=1;
10365 HAVE_MBSNRTOWCS=1;
10366 HAVE_WCRTOMB=1;
10367 HAVE_WCSRTOMBS=1;
10368 HAVE_WCSNRTOMBS=1;
10369 HAVE_WMEMCHR=1;
10370 HAVE_WMEMCMP=1;
10371 HAVE_WMEMCPY=1;
10372 HAVE_WMEMMOVE=1;
10373 HAVE_WMEMSET=1;
10374 HAVE_WCSLEN=1;
10375 HAVE_WCSNLEN=1;
10376 HAVE_WCSCPY=1;
10377 HAVE_WCPCPY=1;
10378 HAVE_WCSNCPY=1;
10379 HAVE_WCPNCPY=1;
10380 HAVE_WCSCAT=1;
10381 HAVE_WCSNCAT=1;
10382 HAVE_WCSCMP=1;
10383 HAVE_WCSNCMP=1;
10384 HAVE_WCSCASECMP=1;
10385 HAVE_WCSNCASECMP=1;
10386 HAVE_WCSCOLL=1;
10387 HAVE_WCSXFRM=1;
10388 HAVE_WCSDUP=1;
10389 HAVE_WCSCHR=1;
10390 HAVE_WCSRCHR=1;
10391 HAVE_WCSCSPN=1;
10392 HAVE_WCSSPN=1;
10393 HAVE_WCSPBRK=1;
10394 HAVE_WCSSTR=1;
10395 HAVE_WCSTOK=1;
10396 HAVE_WCSWIDTH=1;
10397 HAVE_DECL_WCTOB=1;
10398 HAVE_DECL_WCWIDTH=1;
10399 REPLACE_MBSTATE_T=0;
10400 REPLACE_BTOWC=0;
10401 REPLACE_WCTOB=0;
10402 REPLACE_MBSINIT=0;
10403 REPLACE_MBRTOWC=0;
10404 REPLACE_MBRLEN=0;
10405 REPLACE_MBSRTOWCS=0;
10406 REPLACE_MBSNRTOWCS=0;
10407 REPLACE_WCRTOMB=0;
10408 REPLACE_WCSRTOMBS=0;
10409 REPLACE_WCSNRTOMBS=0;
10410 REPLACE_WCWIDTH=0;
10411 REPLACE_WCSWIDTH=0;
10412
10413
10414
10415
10416
10417
10418
10419
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
10421 $as_echo_n "checking for a traditional japanese locale... " >&6; }
10422 if test "${gt_cv_locale_ja+set}" = set; then :
10423 $as_echo_n "(cached) " >&6
10424 else
10425
10426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427 /* end confdefs.h. */
10428
10429 #include <locale.h>
10430 #include <time.h>
10431 #if HAVE_LANGINFO_CODESET
10432 # include <langinfo.h>
10433 #endif
10434 #include <stdlib.h>
10435 #include <string.h>
10436 struct tm t;
10437 char buf[16];
10438 int main ()
10439 {
10440 const char *p;
10441 /* Check whether the given locale name is recognized by the system. */
10442 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10443 /* On native Windows, setlocale(category, "") looks at the system settings,
10444 not at the environment variables. Also, when an encoding suffix such
10445 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10446 category of the locale to "C". */
10447 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10448 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10449 return 1;
10450 #else
10451 if (setlocale (LC_ALL, "") == NULL) return 1;
10452 #endif
10453 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10454 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10455 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10456 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10457 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10458 some unit tests fail.
10459 On MirBSD 10, when an unsupported locale is specified, setlocale()
10460 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10461 #if HAVE_LANGINFO_CODESET
10462 {
10463 const char *cs = nl_langinfo (CODESET);
10464 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10465 || strcmp (cs, "UTF-8") == 0)
10466 return 1;
10467 }
10468 #endif
10469 #ifdef __CYGWIN__
10470 /* On Cygwin, avoid locale names without encoding suffix, because the
10471 locale_charset() function relies on the encoding suffix. Note that
10472 LC_ALL is set on the command line. */
10473 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10474 #endif
10475 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
10476 on Cygwin 1.5.x. */
10477 if (MB_CUR_MAX == 1)
10478 return 1;
10479 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10480 This excludes the UTF-8 encoding (except on MirBSD). */
10481 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10482 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10483 for (p = buf; *p != '\0'; p++)
10484 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10485 return 1;
10486 return 0;
10487 }
10488
10489 _ACEOF
10490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10491 (eval $ac_link) 2>&5
10492 ac_status=$?
10493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10494 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10495 case "$host_os" in
10496 # Handle native Windows specially, because there setlocale() interprets
10497 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10498 # "fr" or "fra" as "French" or "French_France.1252",
10499 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10500 # "ja" as "Japanese" or "Japanese_Japan.932",
10501 # and similar.
10502 mingw*)
10503 # Note that on native Windows, the Japanese locale is
10504 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
10505 # cannot use it here.
10506 gt_cv_locale_ja=none
10507 ;;
10508 *)
10509 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10510 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10511 # configure script would override the LC_ALL setting. Likewise for
10512 # LC_CTYPE, which is also set at the beginning of the configure script.
10513 # Test for the AIX locale name.
10514 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10515 gt_cv_locale_ja=ja_JP
10516 else
10517 # Test for the locale name with explicit encoding suffix.
10518 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10519 gt_cv_locale_ja=ja_JP.EUC-JP
10520 else
10521 # Test for the HP-UX, OSF/1, NetBSD locale name.
10522 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10523 gt_cv_locale_ja=ja_JP.eucJP
10524 else
10525 # Test for the IRIX, FreeBSD locale name.
10526 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10527 gt_cv_locale_ja=ja_JP.EUC
10528 else
10529 # Test for the Solaris 7 locale name.
10530 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10531 gt_cv_locale_ja=ja
10532 else
10533 # Special test for NetBSD 1.6.
10534 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
10535 gt_cv_locale_ja=ja_JP.eucJP
10536 else
10537 # None found.
10538 gt_cv_locale_ja=none
10539 fi
10540 fi
10541 fi
10542 fi
10543 fi
10544 fi
10545 ;;
10546 esac
10547 fi
10548 rm -fr conftest*
10549
10550 fi
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
10552 $as_echo "$gt_cv_locale_ja" >&6; }
10553 LOCALE_JA=$gt_cv_locale_ja
10554
10555
10556
10557
10558
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
10560 $as_echo_n "checking for a transitional chinese locale... " >&6; }
10561 if test "${gt_cv_locale_zh_CN+set}" = set; then :
10562 $as_echo_n "(cached) " >&6
10563 else
10564
10565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10566 /* end confdefs.h. */
10567
10568 #include <locale.h>
10569 #include <stdlib.h>
10570 #include <time.h>
10571 #if HAVE_LANGINFO_CODESET
10572 # include <langinfo.h>
10573 #endif
10574 #include <stdlib.h>
10575 #include <string.h>
10576 struct tm t;
10577 char buf[16];
10578 int main ()
10579 {
10580 const char *p;
10581 /* Check whether the given locale name is recognized by the system. */
10582 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10583 /* On native Windows, setlocale(category, "") looks at the system settings,
10584 not at the environment variables. Also, when an encoding suffix such
10585 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10586 category of the locale to "C". */
10587 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10588 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10589 return 1;
10590 #else
10591 if (setlocale (LC_ALL, "") == NULL) return 1;
10592 #endif
10593 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10594 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10595 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10596 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10597 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10598 some unit tests fail.
10599 On MirBSD 10, when an unsupported locale is specified, setlocale()
10600 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10601 #if HAVE_LANGINFO_CODESET
10602 {
10603 const char *cs = nl_langinfo (CODESET);
10604 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10605 || strcmp (cs, "UTF-8") == 0)
10606 return 1;
10607 }
10608 #endif
10609 #ifdef __CYGWIN__
10610 /* On Cygwin, avoid locale names without encoding suffix, because the
10611 locale_charset() function relies on the encoding suffix. Note that
10612 LC_ALL is set on the command line. */
10613 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10614 #endif
10615 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10616 This excludes the UTF-8 encoding (except on MirBSD). */
10617 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10618 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10619 for (p = buf; *p != '\0'; p++)
10620 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10621 return 1;
10622 /* Check whether a typical GB18030 multibyte sequence is recognized as a
10623 single wide character. This excludes the GB2312 and GBK encodings. */
10624 if (mblen ("\203\062\332\066", 5) != 4)
10625 return 1;
10626 return 0;
10627 }
10628
10629 _ACEOF
10630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10631 (eval $ac_link) 2>&5
10632 ac_status=$?
10633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10634 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10635 case "$host_os" in
10636 # Handle native Windows specially, because there setlocale() interprets
10637 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10638 # "fr" or "fra" as "French" or "French_France.1252",
10639 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10640 # "ja" as "Japanese" or "Japanese_Japan.932",
10641 # and similar.
10642 mingw*)
10643 # Test for the hypothetical native Windows locale name.
10644 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10645 gt_cv_locale_zh_CN=Chinese_China.54936
10646 else
10647 # None found.
10648 gt_cv_locale_zh_CN=none
10649 fi
10650 ;;
10651 solaris2.8)
10652 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
10653 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
10654 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
10655 gt_cv_locale_zh_CN=none
10656 ;;
10657 *)
10658 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10659 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10660 # configure script would override the LC_ALL setting. Likewise for
10661 # LC_CTYPE, which is also set at the beginning of the configure script.
10662 # Test for the locale name without encoding suffix.
10663 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10664 gt_cv_locale_zh_CN=zh_CN
10665 else
10666 # Test for the locale name with explicit encoding suffix.
10667 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10668 gt_cv_locale_zh_CN=zh_CN.GB18030
10669 else
10670 # None found.
10671 gt_cv_locale_zh_CN=none
10672 fi
10673 fi
10674 ;;
10675 esac
10676 else
10677 # If there was a link error, due to mblen(), the system is so old that
10678 # it certainly doesn't have a chinese locale.
10679 gt_cv_locale_zh_CN=none
10680 fi
10681 rm -fr conftest*
10682
10683 fi
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
10685 $as_echo "$gt_cv_locale_zh_CN" >&6; }
10686 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
10687
10688
10689
10690
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
10692 $as_echo_n "checking for a french Unicode locale... " >&6; }
10693 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
10694 $as_echo_n "(cached) " >&6
10695 else
10696
10697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10698 /* end confdefs.h. */
10699
10700 #include <locale.h>
10701 #include <time.h>
10702 #if HAVE_LANGINFO_CODESET
10703 # include <langinfo.h>
10704 #endif
10705 #include <stdlib.h>
10706 #include <string.h>
10707 struct tm t;
10708 char buf[16];
10709 int main () {
10710 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
10711 imitates locale dependent behaviour by looking at the environment
10712 variables, and all locales use the UTF-8 encoding. */
10713 #if !(defined __BEOS__ || defined __HAIKU__)
10714 /* Check whether the given locale name is recognized by the system. */
10715 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10716 /* On native Windows, setlocale(category, "") looks at the system settings,
10717 not at the environment variables. Also, when an encoding suffix such
10718 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10719 category of the locale to "C". */
10720 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10721 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10722 return 1;
10723 # else
10724 if (setlocale (LC_ALL, "") == NULL) return 1;
10725 # endif
10726 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10727 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10728 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10729 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10730 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10731 some unit tests fail. */
10732 # if HAVE_LANGINFO_CODESET
10733 {
10734 const char *cs = nl_langinfo (CODESET);
10735 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10736 return 1;
10737 }
10738 # endif
10739 # ifdef __CYGWIN__
10740 /* On Cygwin, avoid locale names without encoding suffix, because the
10741 locale_charset() function relies on the encoding suffix. Note that
10742 LC_ALL is set on the command line. */
10743 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10744 # endif
10745 /* Check whether in the abbreviation of the second month, the second
10746 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
10747 two bytes long, with UTF-8 encoding. */
10748 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10749 if (strftime (buf, sizeof (buf), "%b", &t) < 4
10750 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
10751 return 1;
10752 #endif
10753 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10754 /* Check whether the decimal separator is a comma.
10755 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10756 are nl_langinfo(RADIXCHAR) are both ".". */
10757 if (localeconv () ->decimal_point[0] != ',') return 1;
10758 #endif
10759 return 0;
10760 }
10761
10762 _ACEOF
10763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10764 (eval $ac_link) 2>&5
10765 ac_status=$?
10766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10767 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10768 case "$host_os" in
10769 # Handle native Windows specially, because there setlocale() interprets
10770 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10771 # "fr" or "fra" as "French" or "French_France.1252",
10772 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10773 # "ja" as "Japanese" or "Japanese_Japan.932",
10774 # and similar.
10775 mingw*)
10776 # Test for the hypothetical native Windows locale name.
10777 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10778 gt_cv_locale_fr_utf8=French_France.65001
10779 else
10780 # None found.
10781 gt_cv_locale_fr_utf8=none
10782 fi
10783 ;;
10784 *)
10785 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10786 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10787 # configure script would override the LC_ALL setting. Likewise for
10788 # LC_CTYPE, which is also set at the beginning of the configure script.
10789 # Test for the usual locale name.
10790 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10791 gt_cv_locale_fr_utf8=fr_FR
10792 else
10793 # Test for the locale name with explicit encoding suffix.
10794 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10795 gt_cv_locale_fr_utf8=fr_FR.UTF-8
10796 else
10797 # Test for the Solaris 7 locale name.
10798 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10799 gt_cv_locale_fr_utf8=fr.UTF-8
10800 else
10801 # None found.
10802 gt_cv_locale_fr_utf8=none
10803 fi
10804 fi
10805 fi
10806 ;;
10807 esac
10808 fi
10809 rm -fr conftest*
10810
10811 fi
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
10813 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
10814 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
10815
10816
10817
10818
10819
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
10821 $as_echo_n "checking for a traditional french locale... " >&6; }
10822 if test "${gt_cv_locale_fr+set}" = set; then :
10823 $as_echo_n "(cached) " >&6
10824 else
10825
10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827 /* end confdefs.h. */
10828
10829 #include <locale.h>
10830 #include <time.h>
10831 #if HAVE_LANGINFO_CODESET
10832 # include <langinfo.h>
10833 #endif
10834 #include <stdlib.h>
10835 #include <string.h>
10836 struct tm t;
10837 char buf[16];
10838 int main () {
10839 /* Check whether the given locale name is recognized by the system. */
10840 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10841 /* On native Windows, setlocale(category, "") looks at the system settings,
10842 not at the environment variables. Also, when an encoding suffix such
10843 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10844 category of the locale to "C". */
10845 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10846 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10847 return 1;
10848 #else
10849 if (setlocale (LC_ALL, "") == NULL) return 1;
10850 #endif
10851 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10852 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10853 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10854 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10855 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10856 some unit tests fail.
10857 On MirBSD 10, when an unsupported locale is specified, setlocale()
10858 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10859 #if HAVE_LANGINFO_CODESET
10860 {
10861 const char *cs = nl_langinfo (CODESET);
10862 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10863 || strcmp (cs, "UTF-8") == 0)
10864 return 1;
10865 }
10866 #endif
10867 #ifdef __CYGWIN__
10868 /* On Cygwin, avoid locale names without encoding suffix, because the
10869 locale_charset() function relies on the encoding suffix. Note that
10870 LC_ALL is set on the command line. */
10871 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10872 #endif
10873 /* Check whether in the abbreviation of the second month, the second
10874 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
10875 one byte long. This excludes the UTF-8 encoding. */
10876 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10877 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
10878 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10879 /* Check whether the decimal separator is a comma.
10880 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10881 are nl_langinfo(RADIXCHAR) are both ".". */
10882 if (localeconv () ->decimal_point[0] != ',') return 1;
10883 #endif
10884 return 0;
10885 }
10886
10887 _ACEOF
10888 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10889 (eval $ac_link) 2>&5
10890 ac_status=$?
10891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10892 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10893 case "$host_os" in
10894 # Handle native Windows specially, because there setlocale() interprets
10895 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10896 # "fr" or "fra" as "French" or "French_France.1252",
10897 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10898 # "ja" as "Japanese" or "Japanese_Japan.932",
10899 # and similar.
10900 mingw*)
10901 # Test for the native Windows locale name.
10902 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10903 gt_cv_locale_fr=French_France.1252
10904 else
10905 # None found.
10906 gt_cv_locale_fr=none
10907 fi
10908 ;;
10909 *)
10910 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10911 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10912 # configure script would override the LC_ALL setting. Likewise for
10913 # LC_CTYPE, which is also set at the beginning of the configure script.
10914 # Test for the usual locale name.
10915 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10916 gt_cv_locale_fr=fr_FR
10917 else
10918 # Test for the locale name with explicit encoding suffix.
10919 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10920 gt_cv_locale_fr=fr_FR.ISO-8859-1
10921 else
10922 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
10923 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10924 gt_cv_locale_fr=fr_FR.ISO8859-1
10925 else
10926 # Test for the HP-UX locale name.
10927 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10928 gt_cv_locale_fr=fr_FR.iso88591
10929 else
10930 # Test for the Solaris 7 locale name.
10931 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10932 gt_cv_locale_fr=fr
10933 else
10934 # None found.
10935 gt_cv_locale_fr=none
10936 fi
10937 fi
10938 fi
10939 fi
10940 fi
10941 ;;
10942 esac
10943 fi
10944 rm -fr conftest*
10945
10946 fi
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
10948 $as_echo "$gt_cv_locale_fr" >&6; }
10949 LOCALE_FR=$gt_cv_locale_fr
10950
10951
10952
10953
10954
10955
10956
10957 GNULIB_FFSL=0;
10958 GNULIB_FFSLL=0;
10959 GNULIB_MEMCHR=0;
10960 GNULIB_MEMMEM=0;
10961 GNULIB_MEMPCPY=0;
10962 GNULIB_MEMRCHR=0;
10963 GNULIB_RAWMEMCHR=0;
10964 GNULIB_STPCPY=0;
10965 GNULIB_STPNCPY=0;
10966 GNULIB_STRCHRNUL=0;
10967 GNULIB_STRDUP=0;
10968 GNULIB_STRNCAT=0;
10969 GNULIB_STRNDUP=0;
10970 GNULIB_STRNLEN=0;
10971 GNULIB_STRPBRK=0;
10972 GNULIB_STRSEP=0;
10973 GNULIB_STRSTR=0;
10974 GNULIB_STRCASESTR=0;
10975 GNULIB_STRTOK_R=0;
10976 GNULIB_MBSLEN=0;
10977 GNULIB_MBSNLEN=0;
10978 GNULIB_MBSCHR=0;
10979 GNULIB_MBSRCHR=0;
10980 GNULIB_MBSSTR=0;
10981 GNULIB_MBSCASECMP=0;
10982 GNULIB_MBSNCASECMP=0;
10983 GNULIB_MBSPCASECMP=0;
10984 GNULIB_MBSCASESTR=0;
10985 GNULIB_MBSCSPN=0;
10986 GNULIB_MBSPBRK=0;
10987 GNULIB_MBSSPN=0;
10988 GNULIB_MBSSEP=0;
10989 GNULIB_MBSTOK_R=0;
10990 GNULIB_STRERROR=0;
10991 GNULIB_STRERROR_R=0;
10992 GNULIB_STRSIGNAL=0;
10993 GNULIB_STRVERSCMP=0;
10994 HAVE_MBSLEN=0;
10995 HAVE_FFSL=1;
10996 HAVE_FFSLL=1;
10997 HAVE_MEMCHR=1;
10998 HAVE_DECL_MEMMEM=1;
10999 HAVE_MEMPCPY=1;
11000 HAVE_DECL_MEMRCHR=1;
11001 HAVE_RAWMEMCHR=1;
11002 HAVE_STPCPY=1;
11003 HAVE_STPNCPY=1;
11004 HAVE_STRCHRNUL=1;
11005 HAVE_DECL_STRDUP=1;
11006 HAVE_DECL_STRNDUP=1;
11007 HAVE_DECL_STRNLEN=1;
11008 HAVE_STRPBRK=1;
11009 HAVE_STRSEP=1;
11010 HAVE_STRCASESTR=1;
11011 HAVE_DECL_STRTOK_R=1;
11012 HAVE_DECL_STRERROR_R=1;
11013 HAVE_DECL_STRSIGNAL=1;
11014 HAVE_STRVERSCMP=1;
11015 REPLACE_MEMCHR=0;
11016 REPLACE_MEMMEM=0;
11017 REPLACE_STPNCPY=0;
11018 REPLACE_STRDUP=0;
11019 REPLACE_STRSTR=0;
11020 REPLACE_STRCASESTR=0;
11021 REPLACE_STRCHRNUL=0;
11022 REPLACE_STRERROR=0;
11023 REPLACE_STRERROR_R=0;
11024 REPLACE_STRNCAT=0;
11025 REPLACE_STRNDUP=0;
11026 REPLACE_STRNLEN=0;
11027 REPLACE_STRSIGNAL=0;
11028 REPLACE_STRTOK_R=0;
11029 UNDEFINE_STRTOK_R=0;
11030
11031
11032
11033
11034
11035 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
11036 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
11037 # irrelevant for anonymous mappings.
11038 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11039 if test "x$ac_cv_func_mmap" = x""yes; then :
11040 gl_have_mmap=yes
11041 else
11042 gl_have_mmap=no
11043 fi
11044
11045
11046 # Try to allow MAP_ANONYMOUS.
11047 gl_have_mmap_anonymous=no
11048 if test $gl_have_mmap = yes; then
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
11050 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
11051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11052 /* end confdefs.h. */
11053
11054 #include <sys/mman.h>
11055 #ifdef MAP_ANONYMOUS
11056 I cannot identify this map
11057 #endif
11058
11059 _ACEOF
11060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11061 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
11062 gl_have_mmap_anonymous=yes
11063 fi
11064 rm -f conftest*
11065
11066 if test $gl_have_mmap_anonymous != yes; then
11067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11068 /* end confdefs.h. */
11069
11070 #include <sys/mman.h>
11071 #ifdef MAP_ANON
11072 I cannot identify this map
11073 #endif
11074
11075 _ACEOF
11076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11077 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
11078
11079 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
11080
11081 gl_have_mmap_anonymous=yes
11082 fi
11083 rm -f conftest*
11084
11085 fi
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
11087 $as_echo "$gl_have_mmap_anonymous" >&6; }
11088 if test $gl_have_mmap_anonymous = yes; then
11089
11090 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
11091
11092 fi
11093 fi
11094
11095
11096
11097
11098
11099
11100 if test $HAVE_MEMCHR = 1; then
11101 # Detect platform-specific bugs in some versions of glibc:
11102 # memchr should not dereference anything with length 0
11103 # http://bugzilla.redhat.com/499689
11104 # memchr should not dereference overestimated length after a match
11105 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
11106 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
11107 # Assume that memchr works on platforms that lack mprotect.
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
11109 $as_echo_n "checking whether memchr works... " >&6; }
11110 if test "${gl_cv_func_memchr_works+set}" = set; then :
11111 $as_echo_n "(cached) " >&6
11112 else
11113 if test "$cross_compiling" = yes; then :
11114 gl_cv_func_memchr_works="guessing no"
11115 else
11116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11117 /* end confdefs.h. */
11118
11119 #include <string.h>
11120 #if HAVE_SYS_MMAN_H
11121 # include <fcntl.h>
11122 # include <unistd.h>
11123 # include <sys/types.h>
11124 # include <sys/mman.h>
11125 # ifndef MAP_FILE
11126 # define MAP_FILE 0
11127 # endif
11128 #endif
11129
11130 int
11131 main ()
11132 {
11133
11134 int result = 0;
11135 char *fence = NULL;
11136 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
11137 # if HAVE_MAP_ANONYMOUS
11138 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
11139 const int fd = -1;
11140 # else /* !HAVE_MAP_ANONYMOUS */
11141 const int flags = MAP_FILE | MAP_PRIVATE;
11142 int fd = open ("/dev/zero", O_RDONLY, 0666);
11143 if (fd >= 0)
11144 # endif
11145 {
11146 int pagesize = getpagesize ();
11147 char *two_pages =
11148 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
11149 flags, fd, 0);
11150 if (two_pages != (char *)(-1)
11151 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
11152 fence = two_pages + pagesize;
11153 }
11154 #endif
11155 if (fence)
11156 {
11157 if (memchr (fence, 0, 0))
11158 result |= 1;
11159 strcpy (fence - 9, "12345678");
11160 if (memchr (fence - 9, 0, 79) != fence - 1)
11161 result |= 2;
11162 if (memchr (fence - 1, 0, 3) != fence - 1)
11163 result |= 4;
11164 }
11165 return result;
11166
11167 ;
11168 return 0;
11169 }
11170 _ACEOF
11171 if ac_fn_c_try_run "$LINENO"; then :
11172 gl_cv_func_memchr_works=yes
11173 else
11174 gl_cv_func_memchr_works=no
11175 fi
11176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11177 conftest.$ac_objext conftest.beam conftest.$ac_ext
11178 fi
11179
11180 fi
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
11182 $as_echo "$gl_cv_func_memchr_works" >&6; }
11183 if test "$gl_cv_func_memchr_works" != yes; then
11184 REPLACE_MEMCHR=1
11185 fi
11186 fi
11187
11188 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
11189 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
11190 ac_have_decl=1
11191 else
11192 ac_have_decl=0
11193 fi
11194
11195 cat >>confdefs.h <<_ACEOF
11196 #define HAVE_DECL_MEMMEM $ac_have_decl
11197 _ACEOF
11198
11199
11200
11201
11202
11203 for ac_func in memmem
11204 do :
11205 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
11206 if test "x$ac_cv_func_memmem" = x""yes; then :
11207 cat >>confdefs.h <<_ACEOF
11208 #define HAVE_MEMMEM 1
11209 _ACEOF
11210
11211 fi
11212 done
11213
11214 if test $ac_cv_func_memmem = yes; then
11215 HAVE_MEMMEM=1
11216 else
11217 HAVE_MEMMEM=0
11218 fi
11219
11220 if test $ac_cv_have_decl_memmem = no; then
11221 HAVE_DECL_MEMMEM=0
11222 else
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
11224 $as_echo_n "checking whether memmem works... " >&6; }
11225 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
11226 $as_echo_n "(cached) " >&6
11227 else
11228 if test "$cross_compiling" = yes; then :
11229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11230 /* end confdefs.h. */
11231
11232 #ifdef __GNU_LIBRARY__
11233 #include <features.h>
11234 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
11235 || __GLIBC_MINOR__ > 12)) \
11236 || (__GLIBC__ > 2)) \
11237 || defined __UCLIBC__
11238 Lucky user
11239 #endif
11240 #elif defined __CYGWIN__
11241 #include <cygwin/version.h>
11242 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
11243 Lucky user
11244 #endif
11245 #else
11246 Lucky user
11247 #endif
11248
11249 _ACEOF
11250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11251 $EGREP "Lucky user" >/dev/null 2>&1; then :
11252 gl_cv_func_memmem_works_always="guessing yes"
11253 else
11254 gl_cv_func_memmem_works_always="guessing no"
11255 fi
11256 rm -f conftest*
11257
11258
11259 else
11260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11261 /* end confdefs.h. */
11262
11263 #include <string.h> /* for memmem */
11264 #define P "_EF_BF_BD"
11265 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
11266 #define NEEDLE P P P P P
11267
11268 int
11269 main ()
11270 {
11271
11272 int result = 0;
11273 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
11274 result |= 1;
11275 /* Check for empty needle behavior. */
11276 {
11277 const char *haystack = "AAA";
11278 if (memmem (haystack, 3, NULL, 0) != haystack)
11279 result |= 2;
11280 }
11281 return result;
11282
11283 ;
11284 return 0;
11285 }
11286 _ACEOF
11287 if ac_fn_c_try_run "$LINENO"; then :
11288 gl_cv_func_memmem_works_always=yes
11289 else
11290 gl_cv_func_memmem_works_always=no
11291 fi
11292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11293 conftest.$ac_objext conftest.beam conftest.$ac_ext
11294 fi
11295
11296
11297 fi
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
11299 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
11300 case "$gl_cv_func_memmem_works_always" in
11301 *yes) ;;
11302 *)
11303 REPLACE_MEMMEM=1
11304 ;;
11305 esac
11306 fi
11307 :
11308
11309
11310 GNULIB_DPRINTF=0;
11311 GNULIB_FCLOSE=0;
11312 GNULIB_FDOPEN=0;
11313 GNULIB_FFLUSH=0;
11314 GNULIB_FGETC=0;
11315 GNULIB_FGETS=0;
11316 GNULIB_FOPEN=0;
11317 GNULIB_FPRINTF=0;
11318 GNULIB_FPRINTF_POSIX=0;
11319 GNULIB_FPURGE=0;
11320 GNULIB_FPUTC=0;
11321 GNULIB_FPUTS=0;
11322 GNULIB_FREAD=0;
11323 GNULIB_FREOPEN=0;
11324 GNULIB_FSCANF=0;
11325 GNULIB_FSEEK=0;
11326 GNULIB_FSEEKO=0;
11327 GNULIB_FTELL=0;
11328 GNULIB_FTELLO=0;
11329 GNULIB_FWRITE=0;
11330 GNULIB_GETC=0;
11331 GNULIB_GETCHAR=0;
11332 GNULIB_GETDELIM=0;
11333 GNULIB_GETLINE=0;
11334 GNULIB_OBSTACK_PRINTF=0;
11335 GNULIB_OBSTACK_PRINTF_POSIX=0;
11336 GNULIB_PCLOSE=0;
11337 GNULIB_PERROR=0;
11338 GNULIB_POPEN=0;
11339 GNULIB_PRINTF=0;
11340 GNULIB_PRINTF_POSIX=0;
11341 GNULIB_PUTC=0;
11342 GNULIB_PUTCHAR=0;
11343 GNULIB_PUTS=0;
11344 GNULIB_REMOVE=0;
11345 GNULIB_RENAME=0;
11346 GNULIB_RENAMEAT=0;
11347 GNULIB_SCANF=0;
11348 GNULIB_SNPRINTF=0;
11349 GNULIB_SPRINTF_POSIX=0;
11350 GNULIB_STDIO_H_NONBLOCKING=0;
11351 GNULIB_STDIO_H_SIGPIPE=0;
11352 GNULIB_TMPFILE=0;
11353 GNULIB_VASPRINTF=0;
11354 GNULIB_VFSCANF=0;
11355 GNULIB_VSCANF=0;
11356 GNULIB_VDPRINTF=0;
11357 GNULIB_VFPRINTF=0;
11358 GNULIB_VFPRINTF_POSIX=0;
11359 GNULIB_VPRINTF=0;
11360 GNULIB_VPRINTF_POSIX=0;
11361 GNULIB_VSNPRINTF=0;
11362 GNULIB_VSPRINTF_POSIX=0;
11363 HAVE_DECL_FPURGE=1;
11364 HAVE_DECL_FSEEKO=1;
11365 HAVE_DECL_FTELLO=1;
11366 HAVE_DECL_GETDELIM=1;
11367 HAVE_DECL_GETLINE=1;
11368 HAVE_DECL_OBSTACK_PRINTF=1;
11369 HAVE_DECL_SNPRINTF=1;
11370 HAVE_DECL_VSNPRINTF=1;
11371 HAVE_DPRINTF=1;
11372 HAVE_FSEEKO=1;
11373 HAVE_FTELLO=1;
11374 HAVE_PCLOSE=1;
11375 HAVE_POPEN=1;
11376 HAVE_RENAMEAT=1;
11377 HAVE_VASPRINTF=1;
11378 HAVE_VDPRINTF=1;
11379 REPLACE_DPRINTF=0;
11380 REPLACE_FCLOSE=0;
11381 REPLACE_FDOPEN=0;
11382 REPLACE_FFLUSH=0;
11383 REPLACE_FOPEN=0;
11384 REPLACE_FPRINTF=0;
11385 REPLACE_FPURGE=0;
11386 REPLACE_FREOPEN=0;
11387 REPLACE_FSEEK=0;
11388 REPLACE_FSEEKO=0;
11389 REPLACE_FTELL=0;
11390 REPLACE_FTELLO=0;
11391 REPLACE_GETDELIM=0;
11392 REPLACE_GETLINE=0;
11393 REPLACE_OBSTACK_PRINTF=0;
11394 REPLACE_PERROR=0;
11395 REPLACE_POPEN=0;
11396 REPLACE_PRINTF=0;
11397 REPLACE_REMOVE=0;
11398 REPLACE_RENAME=0;
11399 REPLACE_RENAMEAT=0;
11400 REPLACE_SNPRINTF=0;
11401 REPLACE_SPRINTF=0;
11402 REPLACE_STDIO_READ_FUNCS=0;
11403 REPLACE_STDIO_WRITE_FUNCS=0;
11404 REPLACE_TMPFILE=0;
11405 REPLACE_VASPRINTF=0;
11406 REPLACE_VDPRINTF=0;
11407 REPLACE_VFPRINTF=0;
11408 REPLACE_VPRINTF=0;
11409 REPLACE_VSNPRINTF=0;
11410 REPLACE_VSPRINTF=0;
11411
11412
11413
11414
11415 GNULIB_PTHREAD_SIGMASK=0;
11416 GNULIB_RAISE=0;
11417 GNULIB_SIGNAL_H_SIGPIPE=0;
11418 GNULIB_SIGPROCMASK=0;
11419 GNULIB_SIGACTION=0;
11420 HAVE_POSIX_SIGNALBLOCKING=1;
11421 HAVE_PTHREAD_SIGMASK=1;
11422 HAVE_RAISE=1;
11423 HAVE_SIGSET_T=1;
11424 HAVE_SIGINFO_T=1;
11425 HAVE_SIGACTION=1;
11426 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
11427
11428 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
11429
11430 HAVE_SIGHANDLER_T=1;
11431 REPLACE_PTHREAD_SIGMASK=0;
11432 REPLACE_RAISE=0;
11433
11434
11435 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
11436 #include <signal.h>
11437 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
11438 #include <sys/types.h>
11439
11440 "
11441 if test "x$ac_cv_type_sigset_t" = x""yes; then :
11442
11443 cat >>confdefs.h <<_ACEOF
11444 #define HAVE_SIGSET_T 1
11445 _ACEOF
11446
11447 gl_cv_type_sigset_t=yes
11448 else
11449 gl_cv_type_sigset_t=no
11450 fi
11451
11452 if test $gl_cv_type_sigset_t != yes; then
11453 HAVE_SIGSET_T=0
11454 fi
11455
11456 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11457 if test "x$ac_cv_type_pid_t" = x""yes; then :
11458
11459 else
11460
11461 cat >>confdefs.h <<_ACEOF
11462 #define pid_t int
11463 _ACEOF
11464
11465 fi
11466
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11468 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11469 if test "${ac_cv_type_uid_t+set}" = set; then :
11470 $as_echo_n "(cached) " >&6
11471 else
11472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11473 /* end confdefs.h. */
11474 #include <sys/types.h>
11475
11476 _ACEOF
11477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11478 $EGREP "uid_t" >/dev/null 2>&1; then :
11479 ac_cv_type_uid_t=yes
11480 else
11481 ac_cv_type_uid_t=no
11482 fi
11483 rm -f conftest*
11484
11485 fi
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11487 $as_echo "$ac_cv_type_uid_t" >&6; }
11488 if test $ac_cv_type_uid_t = no; then
11489
11490 $as_echo "#define uid_t int" >>confdefs.h
11491
11492
11493 $as_echo "#define gid_t int" >>confdefs.h
11494
11495 fi
11496
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
11498 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
11499 if test "${ac_cv_header_stdbool_h+set}" = set; then :
11500 $as_echo_n "(cached) " >&6
11501 else
11502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h. */
11504
11505 #include <stdbool.h>
11506
11507 #ifdef __cplusplus
11508 typedef bool Bool;
11509 #else
11510 typedef _Bool Bool;
11511 #ifndef bool
11512 "error: bool is not defined"
11513 #endif
11514 #ifndef false
11515 "error: false is not defined"
11516 #endif
11517 #if false
11518 "error: false is not 0"
11519 #endif
11520 #ifndef true
11521 "error: true is not defined"
11522 #endif
11523 #if true != 1
11524 "error: true is not 1"
11525 #endif
11526 #endif
11527
11528 #ifndef __bool_true_false_are_defined
11529 "error: __bool_true_false_are_defined is not defined"
11530 #endif
11531
11532 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
11533
11534 char a[true == 1 ? 1 : -1];
11535 char b[false == 0 ? 1 : -1];
11536 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11537 char d[(bool) 0.5 == true ? 1 : -1];
11538 /* See body of main program for 'e'. */
11539 char f[(Bool) 0.0 == false ? 1 : -1];
11540 char g[true];
11541 char h[sizeof (Bool)];
11542 char i[sizeof s.t];
11543 enum { j = false, k = true, l = false * true, m = true * 256 };
11544 /* The following fails for
11545 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
11546 Bool n[m];
11547 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11548 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11549 /* Catch a bug in an HP-UX C compiler. See
11550 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11551 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11552 */
11553 Bool q = true;
11554 Bool *pq = &q;
11555 bool *qq = &q;
11556
11557 int
11558 main ()
11559 {
11560
11561 bool e = &s;
11562 *pq |= q; *pq |= ! q;
11563 *qq |= q; *qq |= ! q;
11564 /* Refer to every declared value, to avoid compiler optimizations. */
11565 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11566 + !m + !n + !o + !p + !q + !pq + !qq);
11567
11568 ;
11569 return 0;
11570 }
11571 _ACEOF
11572 if ac_fn_c_try_compile "$LINENO"; then :
11573 ac_cv_header_stdbool_h=yes
11574 else
11575 ac_cv_header_stdbool_h=no
11576 fi
11577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11578 fi
11579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
11580 $as_echo "$ac_cv_header_stdbool_h" >&6; }
11581 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
11582 if test "x$ac_cv_type__Bool" = x""yes; then :
11583
11584 cat >>confdefs.h <<_ACEOF
11585 #define HAVE__BOOL 1
11586 _ACEOF
11587
11588
11589 fi
11590
11591
11592
11593 REPLACE_NULL=0;
11594 HAVE_MAX_ALIGN_T=1;
11595 HAVE_WCHAR_T=1;
11596
11597
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
11599 $as_echo_n "checking for wchar_t... " >&6; }
11600 if test "${gt_cv_c_wchar_t+set}" = set; then :
11601 $as_echo_n "(cached) " >&6
11602 else
11603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11604 /* end confdefs.h. */
11605 #include <stddef.h>
11606 wchar_t foo = (wchar_t)'\0';
11607 int
11608 main ()
11609 {
11610
11611 ;
11612 return 0;
11613 }
11614 _ACEOF
11615 if ac_fn_c_try_compile "$LINENO"; then :
11616 gt_cv_c_wchar_t=yes
11617 else
11618 gt_cv_c_wchar_t=no
11619 fi
11620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11621 fi
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
11623 $as_echo "$gt_cv_c_wchar_t" >&6; }
11624 if test $gt_cv_c_wchar_t = yes; then
11625
11626 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11627
11628 fi
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641 if test $gl_cv_have_include_next = yes; then
11642 gl_cv_next_string_h='<'string.h'>'
11643 else
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
11645 $as_echo_n "checking absolute name of <string.h>... " >&6; }
11646 if test "${gl_cv_next_string_h+set}" = set; then :
11647 $as_echo_n "(cached) " >&6
11648 else
11649
11650
11651
11652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11653 /* end confdefs.h. */
11654 #include <string.h>
11655 _ACEOF
11656 case "$host_os" in
11657 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11658 *) gl_absname_cpp="$ac_cpp" ;;
11659 esac
11660
11661 case "$host_os" in
11662 mingw*)
11663 gl_dirsep_regex='[/\\]'
11664 ;;
11665 *)
11666 gl_dirsep_regex='\/'
11667 ;;
11668 esac
11669 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11670 gl_header_literal_regex=`echo 'string.h' \
11671 | sed -e "$gl_make_literal_regex_sed"`
11672 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11673 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11674 s|^/[^/]|//&|
11675 p
11676 q
11677 }'
11678
11679 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11680 sed -n "$gl_absolute_header_sed"`
11681
11682 gl_header=$gl_cv_absolute_string_h
11683 gl_cv_next_string_h='"'$gl_header'"'
11684
11685
11686 fi
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
11688 $as_echo "$gl_cv_next_string_h" >&6; }
11689 fi
11690 NEXT_STRING_H=$gl_cv_next_string_h
11691
11692 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11693 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11694 gl_next_as_first_directive='<'string.h'>'
11695 else
11696 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11697 gl_next_as_first_directive=$gl_cv_next_string_h
11698 fi
11699 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
11700
11701
11702
11703
11704
11705
11706 for gl_func in ffsl ffsll memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r strsignal strverscmp; do
11707 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11709 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11710 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11711 $as_echo_n "(cached) " >&6
11712 else
11713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11714 /* end confdefs.h. */
11715 #include <string.h>
11716
11717 int
11718 main ()
11719 {
11720 #undef $gl_func
11721 (void) $gl_func;
11722 ;
11723 return 0;
11724 }
11725 _ACEOF
11726 if ac_fn_c_try_compile "$LINENO"; then :
11727 eval "$as_gl_Symbol=yes"
11728 else
11729 eval "$as_gl_Symbol=no"
11730 fi
11731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11732 fi
11733 eval ac_res=\$$as_gl_Symbol
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11735 $as_echo "$ac_res" >&6; }
11736 eval as_val=\$$as_gl_Symbol
11737 if test "x$as_val" = x""yes; then :
11738 cat >>confdefs.h <<_ACEOF
11739 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11740 _ACEOF
11741
11742 eval ac_cv_have_decl_$gl_func=yes
11743 fi
11744 done
11745
11746
11747
11748
11749
11750 if test "$gl_cv_func_memchr_works" != yes; then
11751 REPLACE_STRSTR=1
11752 else
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
11754 $as_echo_n "checking whether strstr works... " >&6; }
11755 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
11756 $as_echo_n "(cached) " >&6
11757 else
11758 if test "$cross_compiling" = yes; then :
11759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11760 /* end confdefs.h. */
11761
11762 #ifdef __GNU_LIBRARY__
11763 #include <features.h>
11764 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
11765 || defined __UCLIBC__
11766 Lucky user
11767 #endif
11768 #elif defined __CYGWIN__
11769 #include <cygwin/version.h>
11770 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
11771 Lucky user
11772 #endif
11773 #else
11774 Lucky user
11775 #endif
11776
11777 _ACEOF
11778 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11779 $EGREP "Lucky user" >/dev/null 2>&1; then :
11780 gl_cv_func_strstr_works_always="guessing yes"
11781 else
11782 gl_cv_func_strstr_works_always="guessing no"
11783 fi
11784 rm -f conftest*
11785
11786
11787 else
11788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11789 /* end confdefs.h. */
11790
11791 #include <string.h> /* for strstr */
11792 #define P "_EF_BF_BD"
11793 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
11794 #define NEEDLE P P P P P
11795
11796 int
11797 main ()
11798 {
11799 return !!strstr (HAYSTACK, NEEDLE);
11800
11801 ;
11802 return 0;
11803 }
11804 _ACEOF
11805 if ac_fn_c_try_run "$LINENO"; then :
11806 gl_cv_func_strstr_works_always=yes
11807 else
11808 gl_cv_func_strstr_works_always=no
11809 fi
11810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11811 conftest.$ac_objext conftest.beam conftest.$ac_ext
11812 fi
11813
11814
11815 fi
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
11817 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
11818 case "$gl_cv_func_strstr_works_always" in
11819 *yes) ;;
11820 *)
11821 REPLACE_STRSTR=1
11822 ;;
11823 esac
11824 fi
11825
11826 ac_fn_c_check_decl "$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
11827 if test "x$ac_cv_have_decl_strtok_r" = x""yes; then :
11828 ac_have_decl=1
11829 else
11830 ac_have_decl=0
11831 fi
11832
11833 cat >>confdefs.h <<_ACEOF
11834 #define HAVE_DECL_STRTOK_R $ac_have_decl
11835 _ACEOF
11836
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11838 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11839 if test "${ac_cv_header_stat_broken+set}" = set; then :
11840 $as_echo_n "(cached) " >&6
11841 else
11842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11843 /* end confdefs.h. */
11844 #include <sys/types.h>
11845 #include <sys/stat.h>
11846
11847 #if defined S_ISBLK && defined S_IFDIR
11848 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11849 #endif
11850
11851 #if defined S_ISBLK && defined S_IFCHR
11852 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11853 #endif
11854
11855 #if defined S_ISLNK && defined S_IFREG
11856 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11857 #endif
11858
11859 #if defined S_ISSOCK && defined S_IFREG
11860 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11861 #endif
11862
11863 _ACEOF
11864 if ac_fn_c_try_compile "$LINENO"; then :
11865 ac_cv_header_stat_broken=no
11866 else
11867 ac_cv_header_stat_broken=yes
11868 fi
11869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11870 fi
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11872 $as_echo "$ac_cv_header_stat_broken" >&6; }
11873 if test $ac_cv_header_stat_broken = yes; then
11874
11875 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11876
11877 fi
11878
11879
11880
11881 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11882 if test "x$ac_cv_type_mode_t" = x""yes; then :
11883
11884 else
11885
11886 cat >>confdefs.h <<_ACEOF
11887 #define mode_t int
11888 _ACEOF
11889
11890 fi
11891
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11893 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11894 if test -z "$MKDIR_P"; then
11895 if test "${ac_cv_path_mkdir+set}" = set; then :
11896 $as_echo_n "(cached) " >&6
11897 else
11898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11899 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11900 do
11901 IFS=$as_save_IFS
11902 test -z "$as_dir" && as_dir=.
11903 for ac_prog in mkdir gmkdir; do
11904 for ac_exec_ext in '' $ac_executable_extensions; do
11905 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
11906 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11907 'mkdir (GNU coreutils) '* | \
11908 'mkdir (coreutils) '* | \
11909 'mkdir (fileutils) '4.1*)
11910 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11911 break 3;;
11912 esac
11913 done
11914 done
11915 done
11916 IFS=$as_save_IFS
11917
11918 fi
11919
11920 if test "${ac_cv_path_mkdir+set}" = set; then
11921 MKDIR_P="$ac_cv_path_mkdir -p"
11922 else
11923 # As a last resort, use the slow shell script. Don't cache a
11924 # value for MKDIR_P within a source directory, because that will
11925 # break other packages using the cache if that directory is
11926 # removed, or if the value is a relative name.
11927 test -d ./--version && rmdir ./--version
11928 MKDIR_P="$ac_install_sh -d"
11929 fi
11930 fi
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11932 $as_echo "$MKDIR_P" >&6; }
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952 if test $gl_cv_have_include_next = yes; then
11953 gl_cv_next_sys_types_h='<'sys/types.h'>'
11954 else
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
11956 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
11957 if test "${gl_cv_next_sys_types_h+set}" = set; then :
11958 $as_echo_n "(cached) " >&6
11959 else
11960
11961
11962
11963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11964 /* end confdefs.h. */
11965 #include <sys/types.h>
11966 _ACEOF
11967 case "$host_os" in
11968 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11969 *) gl_absname_cpp="$ac_cpp" ;;
11970 esac
11971
11972 case "$host_os" in
11973 mingw*)
11974 gl_dirsep_regex='[/\\]'
11975 ;;
11976 *)
11977 gl_dirsep_regex='\/'
11978 ;;
11979 esac
11980 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11981 gl_header_literal_regex=`echo 'sys/types.h' \
11982 | sed -e "$gl_make_literal_regex_sed"`
11983 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11984 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11985 s|^/[^/]|//&|
11986 p
11987 q
11988 }'
11989
11990 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11991 sed -n "$gl_absolute_header_sed"`
11992
11993 gl_header=$gl_cv_absolute_sys_types_h
11994 gl_cv_next_sys_types_h='"'$gl_header'"'
11995
11996
11997 fi
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
11999 $as_echo "$gl_cv_next_sys_types_h" >&6; }
12000 fi
12001 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
12002
12003 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12004 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12005 gl_next_as_first_directive='<'sys/types.h'>'
12006 else
12007 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12008 gl_next_as_first_directive=$gl_cv_next_sys_types_h
12009 fi
12010 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023 GNULIB_MKTIME=0;
12024 GNULIB_NANOSLEEP=0;
12025 GNULIB_STRPTIME=0;
12026 GNULIB_TIMEGM=0;
12027 GNULIB_TIME_R=0;
12028 GNULIB_TIME_RZ=0;
12029 HAVE_DECL_LOCALTIME_R=1;
12030 HAVE_NANOSLEEP=1;
12031 HAVE_STRPTIME=1;
12032 HAVE_TIMEGM=1;
12033 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
12034 REPLACE_MKTIME=GNULIB_PORTCHECK;
12035 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
12036 REPLACE_TIMEGM=GNULIB_PORTCHECK;
12037
12038 : ${GNULIB_GETTIMEOFDAY=0};
12039 REPLACE_GMTIME=0;
12040 REPLACE_LOCALTIME=0;
12041
12042
12043
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
12045 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
12046 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
12047 $as_echo_n "(cached) " >&6
12048 else
12049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12050 /* end confdefs.h. */
12051 #include <time.h>
12052
12053 int
12054 main ()
12055 {
12056 static struct timespec x; x.tv_sec = x.tv_nsec;
12057 ;
12058 return 0;
12059 }
12060 _ACEOF
12061 if ac_fn_c_try_compile "$LINENO"; then :
12062 gl_cv_sys_struct_timespec_in_time_h=yes
12063 else
12064 gl_cv_sys_struct_timespec_in_time_h=no
12065 fi
12066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12067 fi
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
12069 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
12070
12071 TIME_H_DEFINES_STRUCT_TIMESPEC=0
12072 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
12073 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
12074 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
12075 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
12076 TIME_H_DEFINES_STRUCT_TIMESPEC=1
12077 else
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
12079 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
12080 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
12081 $as_echo_n "(cached) " >&6
12082 else
12083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12084 /* end confdefs.h. */
12085 #include <sys/time.h>
12086
12087 int
12088 main ()
12089 {
12090 static struct timespec x; x.tv_sec = x.tv_nsec;
12091 ;
12092 return 0;
12093 }
12094 _ACEOF
12095 if ac_fn_c_try_compile "$LINENO"; then :
12096 gl_cv_sys_struct_timespec_in_sys_time_h=yes
12097 else
12098 gl_cv_sys_struct_timespec_in_sys_time_h=no
12099 fi
12100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12101 fi
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
12103 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
12104 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
12105 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
12106 else
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
12108 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
12109 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
12110 $as_echo_n "(cached) " >&6
12111 else
12112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12113 /* end confdefs.h. */
12114 #include <pthread.h>
12115
12116 int
12117 main ()
12118 {
12119 static struct timespec x; x.tv_sec = x.tv_nsec;
12120 ;
12121 return 0;
12122 }
12123 _ACEOF
12124 if ac_fn_c_try_compile "$LINENO"; then :
12125 gl_cv_sys_struct_timespec_in_pthread_h=yes
12126 else
12127 gl_cv_sys_struct_timespec_in_pthread_h=no
12128 fi
12129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12130 fi
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
12132 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
12133 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
12134 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
12135 else
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
12137 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
12138 if test "${gl_cv_sys_struct_timespec_in_unistd_h+set}" = set; then :
12139 $as_echo_n "(cached) " >&6
12140 else
12141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12142 /* end confdefs.h. */
12143 #include <unistd.h>
12144
12145 int
12146 main ()
12147 {
12148 static struct timespec x; x.tv_sec = x.tv_nsec;
12149 ;
12150 return 0;
12151 }
12152 _ACEOF
12153 if ac_fn_c_try_compile "$LINENO"; then :
12154 gl_cv_sys_struct_timespec_in_unistd_h=yes
12155 else
12156 gl_cv_sys_struct_timespec_in_unistd_h=no
12157 fi
12158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12159 fi
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
12161 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
12162 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
12163 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
12164 fi
12165 fi
12166 fi
12167 fi
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184 if test $gl_cv_have_include_next = yes; then
12185 gl_cv_next_time_h='<'time.h'>'
12186 else
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
12188 $as_echo_n "checking absolute name of <time.h>... " >&6; }
12189 if test "${gl_cv_next_time_h+set}" = set; then :
12190 $as_echo_n "(cached) " >&6
12191 else
12192
12193
12194
12195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196 /* end confdefs.h. */
12197 #include <time.h>
12198 _ACEOF
12199 case "$host_os" in
12200 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12201 *) gl_absname_cpp="$ac_cpp" ;;
12202 esac
12203
12204 case "$host_os" in
12205 mingw*)
12206 gl_dirsep_regex='[/\\]'
12207 ;;
12208 *)
12209 gl_dirsep_regex='\/'
12210 ;;
12211 esac
12212 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12213 gl_header_literal_regex=`echo 'time.h' \
12214 | sed -e "$gl_make_literal_regex_sed"`
12215 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12216 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12217 s|^/[^/]|//&|
12218 p
12219 q
12220 }'
12221
12222 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12223 sed -n "$gl_absolute_header_sed"`
12224
12225 gl_header=$gl_cv_absolute_time_h
12226 gl_cv_next_time_h='"'$gl_header'"'
12227
12228
12229 fi
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
12231 $as_echo "$gl_cv_next_time_h" >&6; }
12232 fi
12233 NEXT_TIME_H=$gl_cv_next_time_h
12234
12235 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12236 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12237 gl_next_as_first_directive='<'time.h'>'
12238 else
12239 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12240 gl_next_as_first_directive=$gl_cv_next_time_h
12241 fi
12242 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
12243
12244
12245
12246
12247
12248
12249
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
12251 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
12252 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
12253 $as_echo_n "(cached) " >&6
12254 else
12255 gl_cv_header_wchar_h_correct_inline=yes
12256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12257 /* end confdefs.h. */
12258
12259 #define wcstod renamed_wcstod
12260 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12261 <wchar.h>.
12262 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12263 included before <wchar.h>. */
12264 #include <stddef.h>
12265 #include <stdio.h>
12266 #include <time.h>
12267 #include <wchar.h>
12268 extern int zero (void);
12269 int main () { return zero(); }
12270
12271 _ACEOF
12272 save_ac_compile="$ac_compile"
12273 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
12274 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12275 (eval $ac_compile) 2>&5
12276 ac_status=$?
12277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12278 test $ac_status = 0; }; then
12279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12280 /* end confdefs.h. */
12281
12282 #define wcstod renamed_wcstod
12283 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12284 <wchar.h>.
12285 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12286 included before <wchar.h>. */
12287 #include <stddef.h>
12288 #include <stdio.h>
12289 #include <time.h>
12290 #include <wchar.h>
12291 int zero (void) { return 0; }
12292
12293 _ACEOF
12294 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
12295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12296 (eval $ac_compile) 2>&5
12297 ac_status=$?
12298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12299 test $ac_status = 0; }; then
12300 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
12301 :
12302 else
12303 gl_cv_header_wchar_h_correct_inline=no
12304 fi
12305 fi
12306 fi
12307 ac_compile="$save_ac_compile"
12308 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
12309
12310 fi
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
12312 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
12313 if test $gl_cv_header_wchar_h_correct_inline = no; then
12314 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
12315 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
12316 C99 mode. You have four options:
12317 - Add the flag -fgnu89-inline to CC and reconfigure, or
12318 - Fix your include files, using parts of
12319 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
12320 - Use a gcc version older than 4.3, or
12321 - Don't use the flags -std=c99 or -std=gnu99.
12322 Configuration aborted." "$LINENO" 5
12323 fi
12324
12325
12326
12327
12328
12329 if test $ac_cv_header_features_h = yes; then
12330 HAVE_FEATURES_H=1
12331 else
12332 HAVE_FEATURES_H=0
12333 fi
12334
12335
12336
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
12338 $as_echo_n "checking for wint_t... " >&6; }
12339 if test "${gt_cv_c_wint_t+set}" = set; then :
12340 $as_echo_n "(cached) " >&6
12341 else
12342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343 /* end confdefs.h. */
12344
12345 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12346 <wchar.h>.
12347 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
12348 before <wchar.h>. */
12349 #include <stddef.h>
12350 #include <stdio.h>
12351 #include <time.h>
12352 #include <wchar.h>
12353 wint_t foo = (wchar_t)'\0';
12354 int
12355 main ()
12356 {
12357
12358 ;
12359 return 0;
12360 }
12361 _ACEOF
12362 if ac_fn_c_try_compile "$LINENO"; then :
12363 gt_cv_c_wint_t=yes
12364 else
12365 gt_cv_c_wint_t=no
12366 fi
12367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12368 fi
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
12370 $as_echo "$gt_cv_c_wint_t" >&6; }
12371 if test $gt_cv_c_wint_t = yes; then
12372
12373 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
12374
12375 fi
12376
12377
12378 GNULIB_ISWBLANK=0;
12379 GNULIB_WCTYPE=0;
12380 GNULIB_ISWCTYPE=0;
12381 GNULIB_WCTRANS=0;
12382 GNULIB_TOWCTRANS=0;
12383 HAVE_ISWBLANK=1;
12384 HAVE_WCTYPE_T=1;
12385 HAVE_WCTRANS_T=1;
12386 REPLACE_ISWBLANK=0;
12387
12388
12389
12390
12391 if false; then
12392 GL_COND_LIBTOOL_TRUE=
12393 GL_COND_LIBTOOL_FALSE='#'
12394 else
12395 GL_COND_LIBTOOL_TRUE='#'
12396 GL_COND_LIBTOOL_FALSE=
12397 fi
12398
12399 gl_cond_libtool=false
12400 gl_libdeps=
12401 gl_ltlibdeps=
12402 gl_m4_base='import/m4'
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412 gl_source_base='import'
12413
12414
12415 if test $ac_cv_func_alloca_works = no; then
12416 :
12417 fi
12418
12419 # Define an additional variable used in the Makefile substitution.
12420 if test $ac_cv_working_alloca_h = yes; then
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
12422 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
12423 if test "${gl_cv_rpl_alloca+set}" = set; then :
12424 $as_echo_n "(cached) " >&6
12425 else
12426
12427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12428 /* end confdefs.h. */
12429
12430 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
12431 Need own alloca
12432 #endif
12433
12434 _ACEOF
12435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12436 $EGREP "Need own alloca" >/dev/null 2>&1; then :
12437 gl_cv_rpl_alloca=yes
12438 else
12439 gl_cv_rpl_alloca=no
12440 fi
12441 rm -f conftest*
12442
12443
12444 fi
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
12446 $as_echo "$gl_cv_rpl_alloca" >&6; }
12447 if test $gl_cv_rpl_alloca = yes; then
12448
12449 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12450
12451 ALLOCA_H=alloca.h
12452 else
12453 ALLOCA_H=
12454 fi
12455 else
12456 ALLOCA_H=alloca.h
12457 fi
12458
12459 if test -n "$ALLOCA_H"; then
12460 GL_GENERATE_ALLOCA_H_TRUE=
12461 GL_GENERATE_ALLOCA_H_FALSE='#'
12462 else
12463 GL_GENERATE_ALLOCA_H_TRUE='#'
12464 GL_GENERATE_ALLOCA_H_FALSE=
12465 fi
12466
12467
12468
12469
12470
12471 if test $ac_cv_func_canonicalize_file_name = no; then
12472 HAVE_CANONICALIZE_FILE_NAME=0
12473 if test $ac_cv_func_realpath = no; then
12474 HAVE_REALPATH=0
12475 else
12476 case "$gl_cv_func_realpath_works" in
12477 *yes) ;;
12478 *) REPLACE_REALPATH=1 ;;
12479 esac
12480 fi
12481 else
12482 case "$gl_cv_func_realpath_works" in
12483 *yes)
12484 ;;
12485 *)
12486 REPLACE_CANONICALIZE_FILE_NAME=1
12487 REPLACE_REALPATH=1
12488 ;;
12489 esac
12490 fi
12491
12492 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
12493
12494
12495
12496
12497
12498
12499
12500
12501 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
12502
12503 fi
12504
12505
12506 cat >>confdefs.h <<_ACEOF
12507 #define GNULIB_CANONICALIZE_LGPL 1
12508 _ACEOF
12509
12510
12511
12512
12513
12514
12515
12516 GNULIB_CANONICALIZE_FILE_NAME=1
12517
12518
12519
12520
12521
12522 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
12523
12524
12525
12526
12527
12528
12529
12530
12531 GNULIB_REALPATH=1
12532
12533
12534
12535
12536
12537 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
12538
12539
12540
12541
12542
12543
12544
12545
12546 GNULIB_CHDIR=1
12547
12548
12549
12550
12551
12552 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
12553
12554
12555
12556
12557 if test "x$datarootdir" = x; then
12558 datarootdir='${datadir}'
12559
12560 fi
12561 if test "x$docdir" = x; then
12562 docdir='${datarootdir}/doc/${PACKAGE}'
12563
12564 fi
12565 if test "x$htmldir" = x; then
12566 htmldir='${docdir}'
12567
12568 fi
12569 if test "x$dvidir" = x; then
12570 dvidir='${docdir}'
12571
12572 fi
12573 if test "x$pdfdir" = x; then
12574 pdfdir='${docdir}'
12575
12576 fi
12577 if test "x$psdir" = x; then
12578 psdir='${docdir}'
12579
12580 fi
12581 if test "x$lispdir" = x; then
12582 lispdir='${datarootdir}/emacs/site-lisp'
12583
12584 fi
12585 if test "x$localedir" = x; then
12586 localedir='${datarootdir}/locale'
12587
12588 fi
12589 if test "x$runstatedir" = x; then
12590 runstatedir='${localstatedir}/run'
12591
12592 fi
12593
12594 pkglibexecdir='${libexecdir}/${PACKAGE}'
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609 if test $gl_cv_have_include_next = yes; then
12610 gl_cv_next_dirent_h='<'dirent.h'>'
12611 else
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
12613 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
12614 if test "${gl_cv_next_dirent_h+set}" = set; then :
12615 $as_echo_n "(cached) " >&6
12616 else
12617
12618 if test $ac_cv_header_dirent_h = yes; then
12619
12620
12621
12622
12623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12624 /* end confdefs.h. */
12625 #include <dirent.h>
12626 _ACEOF
12627 case "$host_os" in
12628 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12629 *) gl_absname_cpp="$ac_cpp" ;;
12630 esac
12631
12632 case "$host_os" in
12633 mingw*)
12634 gl_dirsep_regex='[/\\]'
12635 ;;
12636 *)
12637 gl_dirsep_regex='\/'
12638 ;;
12639 esac
12640 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12641 gl_header_literal_regex=`echo 'dirent.h' \
12642 | sed -e "$gl_make_literal_regex_sed"`
12643 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12644 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12645 s|^/[^/]|//&|
12646 p
12647 q
12648 }'
12649
12650 gl_cv_absolute_dirent_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12651 sed -n "$gl_absolute_header_sed"`
12652
12653 gl_header=$gl_cv_absolute_dirent_h
12654 gl_cv_next_dirent_h='"'$gl_header'"'
12655 else
12656 gl_cv_next_dirent_h='<'dirent.h'>'
12657 fi
12658
12659
12660 fi
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
12662 $as_echo "$gl_cv_next_dirent_h" >&6; }
12663 fi
12664 NEXT_DIRENT_H=$gl_cv_next_dirent_h
12665
12666 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12667 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12668 gl_next_as_first_directive='<'dirent.h'>'
12669 else
12670 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12671 gl_next_as_first_directive=$gl_cv_next_dirent_h
12672 fi
12673 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
12674
12675
12676
12677
12678 if test $ac_cv_header_dirent_h = yes; then
12679 HAVE_DIRENT_H=1
12680 else
12681 HAVE_DIRENT_H=0
12682 fi
12683
12684
12685
12686 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
12687 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
12689 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12690 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
12691 $as_echo_n "(cached) " >&6
12692 else
12693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12694 /* end confdefs.h. */
12695 #include <dirent.h>
12696
12697 int
12698 main ()
12699 {
12700 #undef $gl_func
12701 (void) $gl_func;
12702 ;
12703 return 0;
12704 }
12705 _ACEOF
12706 if ac_fn_c_try_compile "$LINENO"; then :
12707 eval "$as_gl_Symbol=yes"
12708 else
12709 eval "$as_gl_Symbol=no"
12710 fi
12711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12712 fi
12713 eval ac_res=\$$as_gl_Symbol
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12715 $as_echo "$ac_res" >&6; }
12716 eval as_val=\$$as_gl_Symbol
12717 if test "x$as_val" = x""yes; then :
12718 cat >>confdefs.h <<_ACEOF
12719 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
12720 _ACEOF
12721
12722 eval ac_cv_have_decl_$gl_func=yes
12723 fi
12724 done
12725
12726
12727
12728
12729
12730
12731
12732 for ac_func in dirfd
12733 do :
12734 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
12735 if test "x$ac_cv_func_dirfd" = x""yes; then :
12736 cat >>confdefs.h <<_ACEOF
12737 #define HAVE_DIRFD 1
12738 _ACEOF
12739
12740 fi
12741 done
12742
12743 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
12744 #include <dirent.h>
12745 "
12746 if test "x$ac_cv_have_decl_dirfd" = x""yes; then :
12747 ac_have_decl=1
12748 else
12749 ac_have_decl=0
12750 fi
12751
12752 cat >>confdefs.h <<_ACEOF
12753 #define HAVE_DECL_DIRFD $ac_have_decl
12754 _ACEOF
12755
12756 if test $ac_cv_have_decl_dirfd = no; then
12757 HAVE_DECL_DIRFD=0
12758 fi
12759
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
12761 $as_echo_n "checking whether dirfd is a macro... " >&6; }
12762 if test "${gl_cv_func_dirfd_macro+set}" = set; then :
12763 $as_echo_n "(cached) " >&6
12764 else
12765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12766 /* end confdefs.h. */
12767
12768 #include <sys/types.h>
12769 #include <dirent.h>
12770 #ifdef dirfd
12771 dirent_header_defines_dirfd
12772 #endif
12773 _ACEOF
12774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12775 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
12776 gl_cv_func_dirfd_macro=yes
12777 else
12778 gl_cv_func_dirfd_macro=no
12779 fi
12780 rm -f conftest*
12781
12782 fi
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
12784 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
12785
12786 # Use the replacement if we have no function or macro with that name,
12787 # or if OS/2 kLIBC whose dirfd() does not work.
12788 # Replace only if the system declares dirfd already.
12789 case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in
12790 no,no,*,yes | *,*,os2*,yes)
12791 REPLACE_DIRFD=1
12792
12793 $as_echo "#define REPLACE_DIRFD 1" >>confdefs.h
12794 ;;
12795 esac
12796
12797 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no \
12798 || test $REPLACE_DIRFD = 1; then
12799
12800
12801
12802
12803
12804
12805
12806
12807 gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
12808
12809
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
12811 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
12812 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then :
12813 $as_echo_n "(cached) " >&6
12814 else
12815
12816 dirfd_save_CFLAGS=$CFLAGS
12817 for ac_expr in d_fd dd_fd; do
12818
12819 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
12820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12821 /* end confdefs.h. */
12822
12823 #include <sys/types.h>
12824 #include <dirent.h>
12825 int
12826 main ()
12827 {
12828 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
12829 ;
12830 return 0;
12831 }
12832 _ACEOF
12833 if ac_fn_c_try_compile "$LINENO"; then :
12834 dir_fd_found=yes
12835
12836 fi
12837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12838 CFLAGS=$dirfd_save_CFLAGS
12839 test "$dir_fd_found" = yes && break
12840 done
12841 test "$dir_fd_found" = yes || ac_expr=no_such_member
12842
12843 gl_cv_sys_dir_fd_member_name=$ac_expr
12844
12845
12846 fi
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
12848 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
12849 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
12850
12851 cat >>confdefs.h <<_ACEOF
12852 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
12853 _ACEOF
12854
12855 fi
12856
12857
12858 fi
12859
12860
12861
12862
12863
12864 GNULIB_DIRFD=1
12865
12866
12867
12868
12869
12870 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
12881 $as_echo_n "checking whether // is distinct from /... " >&6; }
12882 if test "${gl_cv_double_slash_root+set}" = set; then :
12883 $as_echo_n "(cached) " >&6
12884 else
12885 if test x"$cross_compiling" = xyes ; then
12886 # When cross-compiling, there is no way to tell whether // is special
12887 # short of a list of hosts. However, the only known hosts to date
12888 # that have a distinct // are Apollo DomainOS (too old to port to),
12889 # Cygwin, and z/OS. If anyone knows of another system for which // has
12890 # special semantics and is distinct from /, please report it to
12891 # <bug-gnulib@gnu.org>.
12892 case $host in
12893 *-cygwin | i370-ibm-openedition)
12894 gl_cv_double_slash_root=yes ;;
12895 *)
12896 # Be optimistic and assume that / and // are the same when we
12897 # don't know.
12898 gl_cv_double_slash_root='unknown, assuming no' ;;
12899 esac
12900 else
12901 set x `ls -di / // 2>/dev/null`
12902 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
12903 gl_cv_double_slash_root=no
12904 else
12905 gl_cv_double_slash_root=yes
12906 fi
12907 fi
12908 fi
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
12910 $as_echo "$gl_cv_double_slash_root" >&6; }
12911 if test "$gl_cv_double_slash_root" = yes; then
12912
12913 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
12914
12915 fi
12916
12917
12918
12919
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
12921 $as_echo_n "checking for flexible array member... " >&6; }
12922 if test "${ac_cv_c_flexmember+set}" = set; then :
12923 $as_echo_n "(cached) " >&6
12924 else
12925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12926 /* end confdefs.h. */
12927 #include <stdlib.h>
12928 #include <stdio.h>
12929 #include <stddef.h>
12930 struct s { int n; double d[]; };
12931 int
12932 main ()
12933 {
12934 int m = getchar ();
12935 size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
12936 nbytes += sizeof (struct s) - 1;
12937 nbytes -= nbytes % sizeof (struct s);
12938 struct s *p = malloc (nbytes);
12939 p->d[0] = 0.0;
12940 return p->d != (double *) NULL;
12941 ;
12942 return 0;
12943 }
12944 _ACEOF
12945 if ac_fn_c_try_compile "$LINENO"; then :
12946 ac_cv_c_flexmember=yes
12947 else
12948 ac_cv_c_flexmember=no
12949 fi
12950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12951 fi
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
12953 $as_echo "$ac_cv_c_flexmember" >&6; }
12954 if test $ac_cv_c_flexmember = yes; then
12955
12956 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
12957
12958 else
12959 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
12960
12961 fi
12962
12963
12964
12965
12966 FLOAT_H=
12967 REPLACE_FLOAT_LDBL=0
12968 case "$host_os" in
12969 aix* | beos* | openbsd* | mirbsd* | irix*)
12970 FLOAT_H=float.h
12971 ;;
12972 freebsd*)
12973 case "$host_cpu" in
12974 i[34567]86 )
12975 FLOAT_H=float.h
12976 ;;
12977 x86_64 )
12978 # On x86_64 systems, the C compiler may still be generating
12979 # 32-bit code.
12980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12981 /* end confdefs.h. */
12982 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
12983 yes
12984 #endif
12985 _ACEOF
12986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12987 $EGREP "yes" >/dev/null 2>&1; then :
12988
12989 else
12990 FLOAT_H=float.h
12991 fi
12992 rm -f conftest*
12993
12994 ;;
12995 esac
12996 ;;
12997 linux*)
12998 case "$host_cpu" in
12999 powerpc*)
13000 FLOAT_H=float.h
13001 ;;
13002 esac
13003 ;;
13004 esac
13005 case "$host_os" in
13006 aix* | freebsd* | linux*)
13007 if test -n "$FLOAT_H"; then
13008 REPLACE_FLOAT_LDBL=1
13009 fi
13010 ;;
13011 esac
13012
13013 REPLACE_ITOLD=0
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
13015 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
13016 if test "${gl_cv_func_itold_works+set}" = set; then :
13017 $as_echo_n "(cached) " >&6
13018 else
13019
13020 if test "$cross_compiling" = yes; then :
13021 case "$host" in
13022 sparc*-*-linux*)
13023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13024 /* end confdefs.h. */
13025 #if defined __LP64__ || defined __arch64__
13026 yes
13027 #endif
13028 _ACEOF
13029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13030 $EGREP "yes" >/dev/null 2>&1; then :
13031 gl_cv_func_itold_works="guessing no"
13032 else
13033 gl_cv_func_itold_works="guessing yes"
13034 fi
13035 rm -f conftest*
13036
13037 ;;
13038 *) gl_cv_func_itold_works="guessing yes" ;;
13039 esac
13040
13041 else
13042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13043 /* end confdefs.h. */
13044
13045 int i = -1;
13046 volatile long double ld;
13047 int main ()
13048 {
13049 ld += i * 1.0L;
13050 if (ld > 0)
13051 return 1;
13052 return 0;
13053 }
13054 _ACEOF
13055 if ac_fn_c_try_run "$LINENO"; then :
13056 gl_cv_func_itold_works=yes
13057 else
13058 gl_cv_func_itold_works=no
13059 fi
13060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13061 conftest.$ac_objext conftest.beam conftest.$ac_ext
13062 fi
13063
13064
13065 fi
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
13067 $as_echo "$gl_cv_func_itold_works" >&6; }
13068 case "$gl_cv_func_itold_works" in
13069 *no)
13070 REPLACE_ITOLD=1
13071 FLOAT_H=float.h
13072 ;;
13073 esac
13074
13075 if test -n "$FLOAT_H"; then
13076
13077
13078
13079
13080
13081
13082
13083
13084 if test $gl_cv_have_include_next = yes; then
13085 gl_cv_next_float_h='<'float.h'>'
13086 else
13087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
13088 $as_echo_n "checking absolute name of <float.h>... " >&6; }
13089 if test "${gl_cv_next_float_h+set}" = set; then :
13090 $as_echo_n "(cached) " >&6
13091 else
13092
13093
13094
13095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13096 /* end confdefs.h. */
13097 #include <float.h>
13098 _ACEOF
13099 case "$host_os" in
13100 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13101 *) gl_absname_cpp="$ac_cpp" ;;
13102 esac
13103
13104 case "$host_os" in
13105 mingw*)
13106 gl_dirsep_regex='[/\\]'
13107 ;;
13108 *)
13109 gl_dirsep_regex='\/'
13110 ;;
13111 esac
13112 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13113 gl_header_literal_regex=`echo 'float.h' \
13114 | sed -e "$gl_make_literal_regex_sed"`
13115 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13116 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13117 s|^/[^/]|//&|
13118 p
13119 q
13120 }'
13121
13122 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13123 sed -n "$gl_absolute_header_sed"`
13124
13125 gl_header=$gl_cv_absolute_float_h
13126 gl_cv_next_float_h='"'$gl_header'"'
13127
13128
13129 fi
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
13131 $as_echo "$gl_cv_next_float_h" >&6; }
13132 fi
13133 NEXT_FLOAT_H=$gl_cv_next_float_h
13134
13135 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13136 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13137 gl_next_as_first_directive='<'float.h'>'
13138 else
13139 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13140 gl_next_as_first_directive=$gl_cv_next_float_h
13141 fi
13142 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
13143
13144
13145
13146
13147 fi
13148
13149 if test -n "$FLOAT_H"; then
13150 GL_GENERATE_FLOAT_H_TRUE=
13151 GL_GENERATE_FLOAT_H_FALSE='#'
13152 else
13153 GL_GENERATE_FLOAT_H_TRUE='#'
13154 GL_GENERATE_FLOAT_H_FALSE=
13155 fi
13156
13157
13158
13159 if test $REPLACE_FLOAT_LDBL = 1; then
13160
13161
13162
13163
13164
13165
13166
13167
13168 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
13169
13170 fi
13171 if test $REPLACE_ITOLD = 1; then
13172
13173
13174
13175
13176
13177
13178
13179
13180 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
13181
13182 fi
13183
13184
13185
13186
13187
13188 FNMATCH_H=
13189 gl_fnmatch_required_lowercase=`
13190 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
13191 `
13192 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
13194 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
13195 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
13196 $as_echo_n "(cached) " >&6
13197 else
13198 if test $gl_fnmatch_required = GNU; then
13199 gl_fnmatch_gnu_start=
13200 gl_fnmatch_gnu_end=
13201 else
13202 gl_fnmatch_gnu_start='#if 0'
13203 gl_fnmatch_gnu_end='#endif'
13204 fi
13205 if test "$cross_compiling" = yes; then :
13206 eval "$gl_fnmatch_cache_var=\"guessing no\""
13207 else
13208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13209 /* end confdefs.h. */
13210 #include <fnmatch.h>
13211 static int
13212 y (char const *pattern, char const *string, int flags)
13213 {
13214 return fnmatch (pattern, string, flags) == 0;
13215 }
13216 static int
13217 n (char const *pattern, char const *string, int flags)
13218 {
13219 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
13220 }
13221
13222 int
13223 main ()
13224 {
13225 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
13226 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
13227 static char const A_1[] = { 'A' - 1, 0 };
13228 static char const A01[] = { 'A' + 1, 0 };
13229 static char const a_1[] = { 'a' - 1, 0 };
13230 static char const a01[] = { 'a' + 1, 0 };
13231 static char const bs_1[] = { '\\\\' - 1, 0 };
13232 static char const bs01[] = { '\\\\' + 1, 0 };
13233 int result = 0;
13234 if (!n ("a*", "", 0))
13235 return 1;
13236 if (!y ("a*", "abc", 0))
13237 return 1;
13238 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
13239 return 1;
13240 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
13241 return 2;
13242 if (!y ("a\\\\bc", "abc", 0))
13243 return 3;
13244 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
13245 return 3;
13246 if (!y ("*x", ".x", 0))
13247 return 4;
13248 if (!n ("*x", ".x", FNM_PERIOD))
13249 return 4;
13250 if (!y (Apat, "\\\\", 0))
13251 return 5;
13252 if (!y (Apat, "A", 0))
13253 return 5;
13254 if (!y (apat, "\\\\", 0))
13255 return 5;
13256 if (!y (apat, "a", 0))
13257 return 5;
13258 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
13259 return 5;
13260 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
13261 return 5;
13262 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
13263 return 5;
13264 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
13265 return 5;
13266 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
13267 return 5;
13268 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
13269 return 5;
13270 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
13271 return 5;
13272 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
13273 return 5;
13274 $gl_fnmatch_gnu_start
13275 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
13276 result |= 8;
13277 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
13278 result |= 16;
13279 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
13280 result |= 32;
13281 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
13282 result |= 64;
13283 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
13284 result |= 64;
13285 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
13286 result |= 64;
13287 $gl_fnmatch_gnu_end
13288 return result;
13289
13290 ;
13291 return 0;
13292 }
13293 _ACEOF
13294 if ac_fn_c_try_run "$LINENO"; then :
13295 eval "$gl_fnmatch_cache_var=yes"
13296 else
13297 eval "$gl_fnmatch_cache_var=no"
13298 fi
13299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13300 conftest.$ac_objext conftest.beam conftest.$ac_ext
13301 fi
13302
13303
13304 fi
13305 eval ac_res=\$$gl_fnmatch_cache_var
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13307 $as_echo "$ac_res" >&6; }
13308 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
13309 if test "$gl_fnmatch_result" = yes; then
13310 rm -f "$gl_source_base/fnmatch.h"
13311 else
13312 FNMATCH_H=fnmatch.h
13313 fi
13314
13315 if test -n "$FNMATCH_H"; then
13316 GL_GENERATE_FNMATCH_H_TRUE=
13317 GL_GENERATE_FNMATCH_H_FALSE='#'
13318 else
13319 GL_GENERATE_FNMATCH_H_TRUE='#'
13320 GL_GENERATE_FNMATCH_H_FALSE=
13321 fi
13322
13323
13324 if test -n "$FNMATCH_H"; then
13325
13326
13327
13328
13329
13330
13331
13332
13333 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
13334
13335
13336
13337 cat >>confdefs.h <<_ACEOF
13338 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
13339 _ACEOF
13340
13341
13342 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
13343 "
13344 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
13345 ac_have_decl=1
13346 else
13347 ac_have_decl=0
13348 fi
13349
13350 cat >>confdefs.h <<_ACEOF
13351 #define HAVE_DECL_ISBLANK $ac_have_decl
13352 _ACEOF
13353
13354
13355
13356
13357 fi
13358
13359
13360
13361
13362
13363 if test -n "$FNMATCH_H"; then
13364
13365
13366
13367
13368
13369
13370
13371
13372 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
13373
13374
13375
13376 cat >>confdefs.h <<_ACEOF
13377 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
13378 _ACEOF
13379
13380
13381 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
13382 "
13383 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
13384 ac_have_decl=1
13385 else
13386 ac_have_decl=0
13387 fi
13388
13389 cat >>confdefs.h <<_ACEOF
13390 #define HAVE_DECL_ISBLANK $ac_have_decl
13391 _ACEOF
13392
13393
13394
13395
13396 fi
13397
13398
13399
13400 FREXP_LIBM=
13401 if test $gl_cv_func_frexp_no_libm = no; then
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
13403 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
13404 if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
13405 $as_echo_n "(cached) " >&6
13406 else
13407
13408 save_LIBS="$LIBS"
13409 LIBS="$LIBS -lm"
13410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13411 /* end confdefs.h. */
13412 #include <math.h>
13413 double x;
13414 int
13415 main ()
13416 {
13417 int e; return frexp (x, &e) > 0;
13418 ;
13419 return 0;
13420 }
13421 _ACEOF
13422 if ac_fn_c_try_link "$LINENO"; then :
13423 gl_cv_func_frexp_in_libm=yes
13424 else
13425 gl_cv_func_frexp_in_libm=no
13426 fi
13427 rm -f core conftest.err conftest.$ac_objext \
13428 conftest$ac_exeext conftest.$ac_ext
13429 LIBS="$save_LIBS"
13430
13431 fi
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
13433 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
13434 if test $gl_cv_func_frexp_in_libm = yes; then
13435 FREXP_LIBM=-lm
13436 fi
13437 fi
13438 if test $gl_cv_func_frexp_no_libm = yes \
13439 || test $gl_cv_func_frexp_in_libm = yes; then
13440 save_LIBS="$LIBS"
13441 LIBS="$LIBS $FREXP_LIBM"
13442
13443
13444
13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
13446 $as_echo_n "checking whether frexp works... " >&6; }
13447 if test "${gl_cv_func_frexp_works+set}" = set; then :
13448 $as_echo_n "(cached) " >&6
13449 else
13450
13451 if test "$cross_compiling" = yes; then :
13452 case "$host_os" in
13453 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
13454 *) gl_cv_func_frexp_works="guessing yes";;
13455 esac
13456
13457 else
13458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13459 /* end confdefs.h. */
13460
13461 #include <float.h>
13462 #include <math.h>
13463 #include <string.h>
13464 #if HAVE_DECL_ALARM
13465 # include <signal.h>
13466 # include <unistd.h>
13467 #endif
13468 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
13469 ICC 10.0 has a bug when optimizing the expression -zero.
13470 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
13471 to PowerPC on Mac OS X 10.5. */
13472 #if defined __hpux || defined __sgi || defined __ICC
13473 static double
13474 compute_minus_zero (void)
13475 {
13476 return -DBL_MIN * DBL_MIN;
13477 }
13478 # define minus_zero compute_minus_zero ()
13479 #else
13480 double minus_zero = -0.0;
13481 #endif
13482 int main()
13483 {
13484 int result = 0;
13485 int i;
13486 volatile double x;
13487 double zero = 0.0;
13488 #if HAVE_DECL_ALARM
13489 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
13490 number. Let the test fail in this case. */
13491 signal (SIGALRM, SIG_DFL);
13492 alarm (5);
13493 #endif
13494 /* Test on denormalized numbers. */
13495 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
13496 ;
13497 if (x > 0.0)
13498 {
13499 int exp;
13500 double y = frexp (x, &exp);
13501 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
13502 On NetBSD: y = 0.75. Correct: y = 0.5. */
13503 if (y != 0.5)
13504 result |= 1;
13505 }
13506 /* Test on infinite numbers. */
13507 x = 1.0 / zero;
13508 {
13509 int exp;
13510 double y = frexp (x, &exp);
13511 if (y != x)
13512 result |= 2;
13513 }
13514 /* Test on negative zero. */
13515 x = minus_zero;
13516 {
13517 int exp;
13518 double y = frexp (x, &exp);
13519 if (memcmp (&y, &x, sizeof x))
13520 result |= 4;
13521 }
13522 return result;
13523 }
13524 _ACEOF
13525 if ac_fn_c_try_run "$LINENO"; then :
13526 gl_cv_func_frexp_works=yes
13527 else
13528 gl_cv_func_frexp_works=no
13529 fi
13530 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13531 conftest.$ac_objext conftest.beam conftest.$ac_ext
13532 fi
13533
13534
13535 fi
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
13537 $as_echo "$gl_cv_func_frexp_works" >&6; }
13538
13539 LIBS="$save_LIBS"
13540 case "$gl_cv_func_frexp_works" in
13541 *yes) gl_func_frexp=yes ;;
13542 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
13543 esac
13544 else
13545 gl_func_frexp=no
13546 fi
13547 if test $gl_func_frexp = yes; then
13548
13549 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
13550
13551 fi
13552
13553
13554 if test $gl_func_frexp != yes; then
13555
13556
13557
13558
13559
13560
13561
13562
13563 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
13564
13565 fi
13566
13567
13568
13569
13570
13571 GNULIB_FREXP=1
13572
13573
13574
13575
13576
13577 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
13588 "
13589 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
13590
13591 else
13592 HAVE_DECL_FREXPL=0
13593 fi
13594
13595
13596 FREXPL_LIBM=
13597 if test $HAVE_DECL_FREXPL = 1; then
13598
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
13600 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
13601 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
13602 $as_echo_n "(cached) " >&6
13603 else
13604
13605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13606 /* end confdefs.h. */
13607 #include <math.h>
13608 long double x;
13609 int
13610 main ()
13611 {
13612 int e; return frexpl (x, &e) > 0;
13613 ;
13614 return 0;
13615 }
13616 _ACEOF
13617 if ac_fn_c_try_link "$LINENO"; then :
13618 gl_cv_func_frexpl_no_libm=yes
13619 else
13620 gl_cv_func_frexpl_no_libm=no
13621 fi
13622 rm -f core conftest.err conftest.$ac_objext \
13623 conftest$ac_exeext conftest.$ac_ext
13624
13625 fi
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
13627 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
13628
13629 if test $gl_cv_func_frexpl_no_libm = no; then
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
13631 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
13632 if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
13633 $as_echo_n "(cached) " >&6
13634 else
13635
13636 save_LIBS="$LIBS"
13637 LIBS="$LIBS -lm"
13638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13639 /* end confdefs.h. */
13640 #include <math.h>
13641 long double x;
13642 int
13643 main ()
13644 {
13645 int e; return frexpl (x, &e) > 0;
13646 ;
13647 return 0;
13648 }
13649 _ACEOF
13650 if ac_fn_c_try_link "$LINENO"; then :
13651 gl_cv_func_frexpl_in_libm=yes
13652 else
13653 gl_cv_func_frexpl_in_libm=no
13654 fi
13655 rm -f core conftest.err conftest.$ac_objext \
13656 conftest$ac_exeext conftest.$ac_ext
13657 LIBS="$save_LIBS"
13658
13659 fi
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
13661 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
13662 if test $gl_cv_func_frexpl_in_libm = yes; then
13663 FREXPL_LIBM=-lm
13664 fi
13665 fi
13666 if test $gl_cv_func_frexpl_no_libm = yes \
13667 || test $gl_cv_func_frexpl_in_libm = yes; then
13668 save_LIBS="$LIBS"
13669 LIBS="$LIBS $FREXPL_LIBM"
13670
13671
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
13673 $as_echo_n "checking whether frexpl works... " >&6; }
13674 if test "${gl_cv_func_frexpl_works+set}" = set; then :
13675 $as_echo_n "(cached) " >&6
13676 else
13677
13678 if test "$cross_compiling" = yes; then :
13679
13680 case "$host_os" in
13681 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
13682 gl_cv_func_frexpl_works="guessing no";;
13683 *) gl_cv_func_frexpl_works="guessing yes";;
13684 esac
13685
13686 else
13687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13688 /* end confdefs.h. */
13689
13690 #include <float.h>
13691 #include <math.h>
13692 /* Override the values of <float.h>, like done in float.in.h. */
13693 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
13694 # undef LDBL_MIN_EXP
13695 # define LDBL_MIN_EXP (-16381)
13696 #endif
13697 #if defined __i386__ && defined __FreeBSD__
13698 # undef LDBL_MIN_EXP
13699 # define LDBL_MIN_EXP (-16381)
13700 #endif
13701 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
13702 # undef LDBL_MIN_EXP
13703 # define LDBL_MIN_EXP DBL_MIN_EXP
13704 #endif
13705 #if defined __sgi && (LDBL_MANT_DIG >= 106)
13706 # if defined __GNUC__
13707 # undef LDBL_MIN_EXP
13708 # define LDBL_MIN_EXP DBL_MIN_EXP
13709 # endif
13710 #endif
13711 extern
13712 #ifdef __cplusplus
13713 "C"
13714 #endif
13715 long double frexpl (long double, int *);
13716 int main()
13717 {
13718 int result = 0;
13719 volatile long double x;
13720 /* Test on finite numbers that fails on AIX 5.1. */
13721 x = 16.0L;
13722 {
13723 int exp = -9999;
13724 frexpl (x, &exp);
13725 if (exp != 5)
13726 result |= 1;
13727 }
13728 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
13729 function returns an invalid (incorrectly normalized) value: it returns
13730 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
13731 but the correct result is
13732 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
13733 x = 1.01L;
13734 {
13735 int exp = -9999;
13736 long double y = frexpl (x, &exp);
13737 if (!(exp == 1 && y == 0.505L))
13738 result |= 2;
13739 }
13740 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
13741 LDBL_MAX_EXP = 16384.
13742 In the loop end test, we test x against Infinity, rather than comparing
13743 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
13744 {
13745 int i;
13746 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
13747 {
13748 int exp = -9999;
13749 frexpl (x, &exp);
13750 if (exp != i)
13751 {
13752 result |= 4;
13753 break;
13754 }
13755 }
13756 }
13757 /* Test on denormalized numbers. */
13758 {
13759 int i;
13760 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
13761 ;
13762 if (x > 0.0L)
13763 {
13764 int exp;
13765 long double y = frexpl (x, &exp);
13766 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
13767 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
13768 if (exp != LDBL_MIN_EXP - 1)
13769 result |= 8;
13770 }
13771 }
13772 /* Test on infinite numbers. */
13773 x = 1.0L / 0.0L;
13774 {
13775 int exp;
13776 long double y = frexpl (x, &exp);
13777 if (y != x)
13778 result |= 16;
13779 }
13780 return result;
13781 }
13782 _ACEOF
13783 if ac_fn_c_try_run "$LINENO"; then :
13784 gl_cv_func_frexpl_works=yes
13785 else
13786 gl_cv_func_frexpl_works=no
13787 fi
13788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13789 conftest.$ac_objext conftest.beam conftest.$ac_ext
13790 fi
13791
13792
13793 fi
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
13795 $as_echo "$gl_cv_func_frexpl_works" >&6; }
13796
13797 LIBS="$save_LIBS"
13798 case "$gl_cv_func_frexpl_works" in
13799 *yes) gl_func_frexpl=yes ;;
13800 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
13801 esac
13802 else
13803 gl_func_frexpl=no
13804 fi
13805 if test $gl_func_frexpl = yes; then
13806
13807 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
13808
13809 fi
13810 fi
13811 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
13812 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
13813
13814 FREXPL_LIBM="$FREXP_LIBM"
13815 else
13816 FREXPL_LIBM=
13817 fi
13818 fi
13819
13820
13821 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
13822
13823
13824
13825
13826
13827
13828
13829
13830 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
13831
13832 fi
13833
13834
13835
13836
13837
13838 GNULIB_FREXPL=1
13839
13840
13841
13842
13843
13844 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
13845
13846
13847
13848
13849
13850
13851
13852
13853
13854 gl_gettimeofday_timezone=void
13855 if test $ac_cv_func_gettimeofday != yes; then
13856 HAVE_GETTIMEOFDAY=0
13857 else
13858
13859
13860
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
13862 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
13863 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
13864 $as_echo_n "(cached) " >&6
13865 else
13866 if test "$cross_compiling" = yes; then :
13867 # When cross-compiling:
13868 case "$host_os" in
13869 # Guess all is fine on glibc systems.
13870 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
13871 # If we don't know, assume the worst.
13872 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
13873 esac
13874
13875 else
13876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13877 /* end confdefs.h. */
13878 #include <string.h>
13879 #include <sys/time.h>
13880 #include <time.h>
13881 #include <stdlib.h>
13882
13883 int
13884 main ()
13885 {
13886
13887 time_t t = 0;
13888 struct tm *lt;
13889 struct tm saved_lt;
13890 struct timeval tv;
13891 lt = localtime (&t);
13892 saved_lt = *lt;
13893 gettimeofday (&tv, NULL);
13894 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
13895
13896 ;
13897 return 0;
13898 }
13899 _ACEOF
13900 if ac_fn_c_try_run "$LINENO"; then :
13901 gl_cv_func_gettimeofday_clobber=no
13902 else
13903 gl_cv_func_gettimeofday_clobber=yes
13904 fi
13905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13906 conftest.$ac_objext conftest.beam conftest.$ac_ext
13907 fi
13908
13909 fi
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
13911 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
13912
13913 case "$gl_cv_func_gettimeofday_clobber" in
13914 *yes)
13915 REPLACE_GETTIMEOFDAY=1
13916
13917 REPLACE_GMTIME=1
13918 REPLACE_LOCALTIME=1
13919
13920
13921 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
13922
13923 ;;
13924 esac
13925
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
13927 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
13928 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
13929 $as_echo_n "(cached) " >&6
13930 else
13931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13932 /* end confdefs.h. */
13933 #include <sys/time.h>
13934 struct timeval c;
13935 int gettimeofday (struct timeval *restrict, void *restrict);
13936
13937 int
13938 main ()
13939 {
13940 /* glibc uses struct timezone * rather than the POSIX void *
13941 if _GNU_SOURCE is defined. However, since the only portable
13942 use of gettimeofday uses NULL as the second parameter, and
13943 since the glibc definition is actually more typesafe, it is
13944 not worth wrapping this to get a compliant signature. */
13945 int (*f) (struct timeval *restrict, void *restrict)
13946 = gettimeofday;
13947 int x = f (&c, 0);
13948 return !(x | c.tv_sec | c.tv_usec);
13949
13950 ;
13951 return 0;
13952 }
13953 _ACEOF
13954 if ac_fn_c_try_compile "$LINENO"; then :
13955 gl_cv_func_gettimeofday_posix_signature=yes
13956 else
13957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13958 /* end confdefs.h. */
13959 #include <sys/time.h>
13960 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
13961
13962 int
13963 main ()
13964 {
13965
13966 ;
13967 return 0;
13968 }
13969 _ACEOF
13970 if ac_fn_c_try_compile "$LINENO"; then :
13971 gl_cv_func_gettimeofday_posix_signature=almost
13972 else
13973 gl_cv_func_gettimeofday_posix_signature=no
13974 fi
13975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13976 fi
13977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13978 fi
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
13980 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
13981 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
13982 gl_gettimeofday_timezone='struct timezone'
13983 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
13984 REPLACE_GETTIMEOFDAY=1
13985 fi
13986 if test $REPLACE_STRUCT_TIMEVAL = 1; then
13987 REPLACE_GETTIMEOFDAY=1
13988 fi
13989
13990 fi
13991
13992 cat >>confdefs.h <<_ACEOF
13993 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
13994 _ACEOF
13995
13996
13997 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
13998
13999
14000
14001
14002
14003
14004
14005
14006 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
14007
14008
14009 for ac_header in sys/timeb.h
14010 do :
14011 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
14012 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
14013 cat >>confdefs.h <<_ACEOF
14014 #define HAVE_SYS_TIMEB_H 1
14015 _ACEOF
14016
14017 fi
14018
14019 done
14020
14021 for ac_func in _ftime
14022 do :
14023 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
14024 if test "x$ac_cv_func__ftime" = x""yes; then :
14025 cat >>confdefs.h <<_ACEOF
14026 #define HAVE__FTIME 1
14027 _ACEOF
14028
14029 fi
14030 done
14031
14032
14033 fi
14034
14035
14036
14037
14038
14039 GNULIB_GETTIMEOFDAY=1
14040
14041
14042
14043
14044
14045 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
14046
14047
14048
14049
14050 :
14051
14052
14053
14054
14055
14056
14057 PRIPTR_PREFIX=
14058 if test -n "$STDINT_H"; then
14059 PRIPTR_PREFIX='"l"'
14060 else
14061 for glpfx in '' l ll I64; do
14062 case $glpfx in
14063 '') gltype1='int';;
14064 l) gltype1='long int';;
14065 ll) gltype1='long long int';;
14066 I64) gltype1='__int64';;
14067 esac
14068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14069 /* end confdefs.h. */
14070 #include <stdint.h>
14071 extern intptr_t foo;
14072 extern $gltype1 foo;
14073 int
14074 main ()
14075 {
14076
14077 ;
14078 return 0;
14079 }
14080 _ACEOF
14081 if ac_fn_c_try_compile "$LINENO"; then :
14082 PRIPTR_PREFIX='"'$glpfx'"'
14083 fi
14084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14085 test -n "$PRIPTR_PREFIX" && break
14086 done
14087 fi
14088
14089
14090
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
14092 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
14093 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
14094 $as_echo_n "(cached) " >&6
14095 else
14096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14097 /* end confdefs.h. */
14098 /* Work also in C++ mode. */
14099 #define __STDC_LIMIT_MACROS 1
14100
14101 /* Work if build is not clean. */
14102 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
14103
14104 #include <limits.h>
14105 #if HAVE_STDINT_H
14106 #include <stdint.h>
14107 #endif
14108
14109 #if defined INT32_MAX && defined INTMAX_MAX
14110 #define CONDITION (INT32_MAX < INTMAX_MAX)
14111 #elif HAVE_LONG_LONG_INT
14112 #define CONDITION (sizeof (int) < sizeof (long long int))
14113 #else
14114 #define CONDITION 0
14115 #endif
14116 int test[CONDITION ? 1 : -1];
14117 int
14118 main ()
14119 {
14120
14121 ;
14122 return 0;
14123 }
14124 _ACEOF
14125 if ac_fn_c_try_compile "$LINENO"; then :
14126 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
14127 else
14128 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
14129 fi
14130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14131 fi
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
14133 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
14134 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
14135 INT32_MAX_LT_INTMAX_MAX=1;
14136 else
14137 INT32_MAX_LT_INTMAX_MAX=0;
14138 fi
14139
14140
14141 if test $APPLE_UNIVERSAL_BUILD = 0; then
14142
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
14144 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
14145 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
14146 $as_echo_n "(cached) " >&6
14147 else
14148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14149 /* end confdefs.h. */
14150 /* Work also in C++ mode. */
14151 #define __STDC_LIMIT_MACROS 1
14152
14153 /* Work if build is not clean. */
14154 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
14155
14156 #include <limits.h>
14157 #if HAVE_STDINT_H
14158 #include <stdint.h>
14159 #endif
14160
14161 #if defined INT64_MAX
14162 #define CONDITION (INT64_MAX == LONG_MAX)
14163 #elif HAVE_LONG_LONG_INT
14164 #define CONDITION (sizeof (long long int) == sizeof (long int))
14165 #else
14166 #define CONDITION 0
14167 #endif
14168 int test[CONDITION ? 1 : -1];
14169 int
14170 main ()
14171 {
14172
14173 ;
14174 return 0;
14175 }
14176 _ACEOF
14177 if ac_fn_c_try_compile "$LINENO"; then :
14178 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
14179 else
14180 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
14181 fi
14182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14183 fi
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
14185 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
14186 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
14187 INT64_MAX_EQ_LONG_MAX=1;
14188 else
14189 INT64_MAX_EQ_LONG_MAX=0;
14190 fi
14191
14192
14193 else
14194 INT64_MAX_EQ_LONG_MAX=-1
14195 fi
14196
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
14198 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
14199 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
14200 $as_echo_n "(cached) " >&6
14201 else
14202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14203 /* end confdefs.h. */
14204 /* Work also in C++ mode. */
14205 #define __STDC_LIMIT_MACROS 1
14206
14207 /* Work if build is not clean. */
14208 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
14209
14210 #include <limits.h>
14211 #if HAVE_STDINT_H
14212 #include <stdint.h>
14213 #endif
14214
14215 #if defined UINT32_MAX && defined UINTMAX_MAX
14216 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
14217 #elif HAVE_LONG_LONG_INT
14218 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
14219 #else
14220 #define CONDITION 0
14221 #endif
14222 int test[CONDITION ? 1 : -1];
14223 int
14224 main ()
14225 {
14226
14227 ;
14228 return 0;
14229 }
14230 _ACEOF
14231 if ac_fn_c_try_compile "$LINENO"; then :
14232 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
14233 else
14234 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
14235 fi
14236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14237 fi
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
14239 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
14240 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
14241 UINT32_MAX_LT_UINTMAX_MAX=1;
14242 else
14243 UINT32_MAX_LT_UINTMAX_MAX=0;
14244 fi
14245
14246
14247 if test $APPLE_UNIVERSAL_BUILD = 0; then
14248
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
14250 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
14251 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
14252 $as_echo_n "(cached) " >&6
14253 else
14254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14255 /* end confdefs.h. */
14256 /* Work also in C++ mode. */
14257 #define __STDC_LIMIT_MACROS 1
14258
14259 /* Work if build is not clean. */
14260 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
14261
14262 #include <limits.h>
14263 #if HAVE_STDINT_H
14264 #include <stdint.h>
14265 #endif
14266
14267 #if defined UINT64_MAX
14268 #define CONDITION (UINT64_MAX == ULONG_MAX)
14269 #elif HAVE_LONG_LONG_INT
14270 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
14271 #else
14272 #define CONDITION 0
14273 #endif
14274 int test[CONDITION ? 1 : -1];
14275 int
14276 main ()
14277 {
14278
14279 ;
14280 return 0;
14281 }
14282 _ACEOF
14283 if ac_fn_c_try_compile "$LINENO"; then :
14284 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
14285 else
14286 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
14287 fi
14288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14289 fi
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
14291 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
14292 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
14293 UINT64_MAX_EQ_ULONG_MAX=1;
14294 else
14295 UINT64_MAX_EQ_ULONG_MAX=0;
14296 fi
14297
14298
14299 else
14300 UINT64_MAX_EQ_ULONG_MAX=-1
14301 fi
14302
14303
14304
14305
14306
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
14308 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
14309 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
14310 $as_echo_n "(cached) " >&6
14311 else
14312
14313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14314 /* end confdefs.h. */
14315 #include <math.h>
14316 #if __GNUC__ >= 4
14317 # undef isnand
14318 # define isnand(x) __builtin_isnan ((double)(x))
14319 #else
14320 # undef isnand
14321 # define isnand(x) isnan ((double)(x))
14322 #endif
14323 double x;
14324 int
14325 main ()
14326 {
14327 return isnand (x);
14328 ;
14329 return 0;
14330 }
14331 _ACEOF
14332 if ac_fn_c_try_link "$LINENO"; then :
14333 gl_cv_func_isnand_no_libm=yes
14334 else
14335 gl_cv_func_isnand_no_libm=no
14336 fi
14337 rm -f core conftest.err conftest.$ac_objext \
14338 conftest$ac_exeext conftest.$ac_ext
14339
14340 fi
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
14342 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
14343
14344 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
14345 if test $gl_cv_func_isnand_no_libm = yes; then
14346
14347 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
14348
14349 fi
14350
14351 if test $gl_func_isnand_no_libm != yes; then
14352
14353
14354
14355
14356
14357
14358
14359
14360 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
14361
14362
14363
14364
14365 fi
14366
14367
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
14369 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
14370 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
14371 $as_echo_n "(cached) " >&6
14372 else
14373
14374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14375 /* end confdefs.h. */
14376 #include <math.h>
14377 #if __GNUC__ >= 4
14378 # undef isnanl
14379 # define isnanl(x) __builtin_isnanl ((long double)(x))
14380 #elif defined isnan
14381 # undef isnanl
14382 # define isnanl(x) isnan ((long double)(x))
14383 #endif
14384 long double x;
14385 int
14386 main ()
14387 {
14388 return isnanl (x);
14389 ;
14390 return 0;
14391 }
14392 _ACEOF
14393 if ac_fn_c_try_link "$LINENO"; then :
14394 gl_cv_func_isnanl_no_libm=yes
14395 else
14396 gl_cv_func_isnanl_no_libm=no
14397 fi
14398 rm -f core conftest.err conftest.$ac_objext \
14399 conftest$ac_exeext conftest.$ac_ext
14400
14401 fi
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
14403 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
14404
14405 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
14406 if test $gl_func_isnanl_no_libm = yes; then
14407
14408
14409
14410
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
14412 $as_echo_n "checking whether isnanl works... " >&6; }
14413 if test "${gl_cv_func_isnanl_works+set}" = set; then :
14414 $as_echo_n "(cached) " >&6
14415 else
14416
14417 if test "$cross_compiling" = yes; then :
14418 gl_cv_func_isnanl_works="guessing yes"
14419 else
14420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14421 /* end confdefs.h. */
14422
14423 #include <float.h>
14424 #include <limits.h>
14425 #include <math.h>
14426 #if __GNUC__ >= 4
14427 # undef isnanl
14428 # define isnanl(x) __builtin_isnanl ((long double)(x))
14429 #elif defined isnan
14430 # undef isnanl
14431 # define isnanl(x) isnan ((long double)(x))
14432 #endif
14433 #define NWORDS \
14434 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14435 typedef union { unsigned int word[NWORDS]; long double value; }
14436 memory_long_double;
14437 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
14438 runtime type conversion. */
14439 #ifdef __sgi
14440 static long double NaNl ()
14441 {
14442 double zero = 0.0;
14443 return zero / zero;
14444 }
14445 #else
14446 # define NaNl() (0.0L / 0.0L)
14447 #endif
14448 int main ()
14449 {
14450 int result = 0;
14451
14452 if (!isnanl (NaNl ()))
14453 result |= 1;
14454
14455 {
14456 memory_long_double m;
14457 unsigned int i;
14458
14459 /* The isnanl function should be immune against changes in the sign bit and
14460 in the mantissa bits. The xor operation twiddles a bit that can only be
14461 a sign bit or a mantissa bit (since the exponent never extends to
14462 bit 31). */
14463 m.value = NaNl ();
14464 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
14465 for (i = 0; i < NWORDS; i++)
14466 m.word[i] |= 1;
14467 if (!isnanl (m.value))
14468 result |= 1;
14469 }
14470
14471 #if ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
14472 /* Representation of an 80-bit 'long double' as an initializer for a sequence
14473 of 'unsigned int' words. */
14474 # ifdef WORDS_BIGENDIAN
14475 # define LDBL80_WORDS(exponent,manthi,mantlo) \
14476 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
14477 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
14478 (unsigned int) (mantlo) << 16 \
14479 }
14480 # else
14481 # define LDBL80_WORDS(exponent,manthi,mantlo) \
14482 { mantlo, manthi, exponent }
14483 # endif
14484 { /* Quiet NaN. */
14485 static memory_long_double x =
14486 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
14487 if (!isnanl (x.value))
14488 result |= 2;
14489 }
14490 {
14491 /* Signalling NaN. */
14492 static memory_long_double x =
14493 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
14494 if (!isnanl (x.value))
14495 result |= 2;
14496 }
14497 /* isnanl should return something even for noncanonical values. */
14498 { /* Pseudo-NaN. */
14499 static memory_long_double x =
14500 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
14501 if (isnanl (x.value) && !isnanl (x.value))
14502 result |= 4;
14503 }
14504 { /* Pseudo-Infinity. */
14505 static memory_long_double x =
14506 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
14507 if (isnanl (x.value) && !isnanl (x.value))
14508 result |= 8;
14509 }
14510 { /* Pseudo-Zero. */
14511 static memory_long_double x =
14512 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
14513 if (isnanl (x.value) && !isnanl (x.value))
14514 result |= 16;
14515 }
14516 { /* Unnormalized number. */
14517 static memory_long_double x =
14518 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
14519 if (isnanl (x.value) && !isnanl (x.value))
14520 result |= 32;
14521 }
14522 { /* Pseudo-Denormal. */
14523 static memory_long_double x =
14524 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
14525 if (isnanl (x.value) && !isnanl (x.value))
14526 result |= 64;
14527 }
14528 #endif
14529
14530 return result;
14531 }
14532 _ACEOF
14533 if ac_fn_c_try_run "$LINENO"; then :
14534 gl_cv_func_isnanl_works=yes
14535 else
14536 gl_cv_func_isnanl_works=no
14537 fi
14538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14539 conftest.$ac_objext conftest.beam conftest.$ac_ext
14540 fi
14541
14542
14543 fi
14544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
14545 $as_echo "$gl_cv_func_isnanl_works" >&6; }
14546
14547 case "$gl_cv_func_isnanl_works" in
14548 *yes) ;;
14549 *) gl_func_isnanl_no_libm=no ;;
14550 esac
14551 fi
14552 if test $gl_func_isnanl_no_libm = yes; then
14553
14554 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
14555
14556 fi
14557
14558 if test $gl_func_isnanl_no_libm != yes; then
14559
14560
14561
14562
14563
14564
14565
14566
14567 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
14568
14569
14570
14571
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
14573 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
14574 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
14575 $as_echo_n "(cached) " >&6
14576 else
14577
14578 if test "$cross_compiling" = yes; then :
14579
14580 gl_cv_cc_long_double_expbit0="unknown"
14581
14582 else
14583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14584 /* end confdefs.h. */
14585
14586 #include <float.h>
14587 #include <stddef.h>
14588 #include <stdio.h>
14589 #include <string.h>
14590 #define NWORDS \
14591 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14592 typedef union { long double value; unsigned int word[NWORDS]; }
14593 memory_long_double;
14594 static unsigned int ored_words[NWORDS];
14595 static unsigned int anded_words[NWORDS];
14596 static void add_to_ored_words (long double x)
14597 {
14598 memory_long_double m;
14599 size_t i;
14600 /* Clear it first, in case
14601 sizeof (long double) < sizeof (memory_long_double). */
14602 memset (&m, 0, sizeof (memory_long_double));
14603 m.value = x;
14604 for (i = 0; i < NWORDS; i++)
14605 {
14606 ored_words[i] |= m.word[i];
14607 anded_words[i] &= m.word[i];
14608 }
14609 }
14610 int main ()
14611 {
14612 size_t j;
14613 FILE *fp = fopen ("conftest.out", "w");
14614 if (fp == NULL)
14615 return 1;
14616 for (j = 0; j < NWORDS; j++)
14617 anded_words[j] = ~ (unsigned int) 0;
14618 add_to_ored_words (0.25L);
14619 add_to_ored_words (0.5L);
14620 add_to_ored_words (1.0L);
14621 add_to_ored_words (2.0L);
14622 add_to_ored_words (4.0L);
14623 /* Remove bits that are common (e.g. if representation of the first mantissa
14624 bit is explicit). */
14625 for (j = 0; j < NWORDS; j++)
14626 ored_words[j] &= ~anded_words[j];
14627 /* Now find the nonzero word. */
14628 for (j = 0; j < NWORDS; j++)
14629 if (ored_words[j] != 0)
14630 break;
14631 if (j < NWORDS)
14632 {
14633 size_t i;
14634 for (i = j + 1; i < NWORDS; i++)
14635 if (ored_words[i] != 0)
14636 {
14637 fprintf (fp, "unknown");
14638 return (fclose (fp) != 0);
14639 }
14640 for (i = 0; ; i++)
14641 if ((ored_words[j] >> i) & 1)
14642 {
14643 fprintf (fp, "word %d bit %d", (int) j, (int) i);
14644 return (fclose (fp) != 0);
14645 }
14646 }
14647 fprintf (fp, "unknown");
14648 return (fclose (fp) != 0);
14649 }
14650
14651 _ACEOF
14652 if ac_fn_c_try_run "$LINENO"; then :
14653 gl_cv_cc_long_double_expbit0=`cat conftest.out`
14654 else
14655 gl_cv_cc_long_double_expbit0="unknown"
14656 fi
14657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14658 conftest.$ac_objext conftest.beam conftest.$ac_ext
14659 fi
14660
14661 rm -f conftest.out
14662
14663 fi
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
14665 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
14666 case "$gl_cv_cc_long_double_expbit0" in
14667 word*bit*)
14668 word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
14669 bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
14670
14671 cat >>confdefs.h <<_ACEOF
14672 #define LDBL_EXPBIT0_WORD $word
14673 _ACEOF
14674
14675
14676 cat >>confdefs.h <<_ACEOF
14677 #define LDBL_EXPBIT0_BIT $bit
14678 _ACEOF
14679
14680 ;;
14681 esac
14682
14683
14684
14685 fi
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
14697
14698
14699
14700
14701 if test $ac_cv_func_lstat = yes; then
14702
14703 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
14704 *no)
14705 REPLACE_LSTAT=1
14706 ;;
14707 esac
14708 else
14709 HAVE_LSTAT=0
14710 fi
14711
14712 if test $REPLACE_LSTAT = 1; then
14713
14714
14715
14716
14717
14718
14719
14720
14721 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
14722
14723 :
14724 fi
14725
14726
14727
14728
14729
14730 GNULIB_LSTAT=1
14731
14732
14733
14734
14735
14736 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
14737
14738
14739
14740
14741
14742
14743 if test $gl_cv_func_malloc_posix = yes; then
14744
14745 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
14746
14747 else
14748 REPLACE_MALLOC=1
14749 fi
14750
14751 if test $REPLACE_MALLOC = 1; then
14752
14753
14754
14755
14756
14757
14758
14759
14760 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
14761
14762 fi
14763
14764
14765
14766
14767
14768 GNULIB_MALLOC_POSIX=1
14769
14770
14771
14772
14773
14774 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793 if test $gl_cv_have_include_next = yes; then
14794 gl_cv_next_math_h='<'math.h'>'
14795 else
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
14797 $as_echo_n "checking absolute name of <math.h>... " >&6; }
14798 if test "${gl_cv_next_math_h+set}" = set; then :
14799 $as_echo_n "(cached) " >&6
14800 else
14801
14802 if test $ac_cv_header_math_h = yes; then
14803
14804
14805
14806
14807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14808 /* end confdefs.h. */
14809 #include <math.h>
14810 _ACEOF
14811 case "$host_os" in
14812 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14813 *) gl_absname_cpp="$ac_cpp" ;;
14814 esac
14815
14816 case "$host_os" in
14817 mingw*)
14818 gl_dirsep_regex='[/\\]'
14819 ;;
14820 *)
14821 gl_dirsep_regex='\/'
14822 ;;
14823 esac
14824 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14825 gl_header_literal_regex=`echo 'math.h' \
14826 | sed -e "$gl_make_literal_regex_sed"`
14827 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14828 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14829 s|^/[^/]|//&|
14830 p
14831 q
14832 }'
14833
14834 gl_cv_absolute_math_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14835 sed -n "$gl_absolute_header_sed"`
14836
14837 gl_header=$gl_cv_absolute_math_h
14838 gl_cv_next_math_h='"'$gl_header'"'
14839 else
14840 gl_cv_next_math_h='<'math.h'>'
14841 fi
14842
14843
14844 fi
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
14846 $as_echo "$gl_cv_next_math_h" >&6; }
14847 fi
14848 NEXT_MATH_H=$gl_cv_next_math_h
14849
14850 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14851 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14852 gl_next_as_first_directive='<'math.h'>'
14853 else
14854 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14855 gl_next_as_first_directive=$gl_cv_next_math_h
14856 fi
14857 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
14858
14859
14860
14861
14862
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
14864 $as_echo_n "checking whether NAN macro works... " >&6; }
14865 if test "${gl_cv_header_math_nan_works+set}" = set; then :
14866 $as_echo_n "(cached) " >&6
14867 else
14868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14869 /* end confdefs.h. */
14870 #include <math.h>
14871 int
14872 main ()
14873 {
14874 /* Solaris 10 has a broken definition of NAN. Other platforms
14875 fail to provide NAN, or provide it only in C99 mode; this
14876 test only needs to fail when NAN is provided but wrong. */
14877 float f = 1.0f;
14878 #ifdef NAN
14879 f = NAN;
14880 #endif
14881 return f == 0;
14882 ;
14883 return 0;
14884 }
14885 _ACEOF
14886 if ac_fn_c_try_compile "$LINENO"; then :
14887 gl_cv_header_math_nan_works=yes
14888 else
14889 gl_cv_header_math_nan_works=no
14890 fi
14891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14892 fi
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
14894 $as_echo "$gl_cv_header_math_nan_works" >&6; }
14895 if test $gl_cv_header_math_nan_works = no; then
14896 REPLACE_NAN=1
14897 fi
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
14899 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
14900 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
14901 $as_echo_n "(cached) " >&6
14902 else
14903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14904 /* end confdefs.h. */
14905 #include <math.h>
14906 int
14907 main ()
14908 {
14909 /* Solaris 10 has a broken definition of HUGE_VAL. */
14910 double d = HUGE_VAL;
14911 return d == 0;
14912 ;
14913 return 0;
14914 }
14915 _ACEOF
14916 if ac_fn_c_try_compile "$LINENO"; then :
14917 gl_cv_header_math_huge_val_works=yes
14918 else
14919 gl_cv_header_math_huge_val_works=no
14920 fi
14921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14922 fi
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
14924 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
14925 if test $gl_cv_header_math_huge_val_works = no; then
14926 REPLACE_HUGE_VAL=1
14927 fi
14928
14929
14930 for gl_func in acosf acosl asinf asinl atanf atanl cbrt cbrtf cbrtl ceilf ceill copysign copysignf copysignl cosf cosl coshf expf expl exp2 exp2f exp2l expm1 expm1f expm1l fabsf fabsl floorf floorl fma fmaf fmal fmod fmodf fmodl frexpf frexpl hypotf hypotl ilogb ilogbf ilogbl ldexpf ldexpl log logf logl log10 log10f log10l log1p log1pf log1pl log2 log2f log2l logb logbf logbl modf modff modfl powf remainder remainderf remainderl rint rintf rintl round roundf roundl sinf sinl sinhf sqrtf sqrtl tanf tanl tanhf trunc truncf truncl; do
14931 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14933 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14934 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14935 $as_echo_n "(cached) " >&6
14936 else
14937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14938 /* end confdefs.h. */
14939 #include <math.h>
14940 int
14941 main ()
14942 {
14943 #undef $gl_func
14944 (void) $gl_func;
14945 ;
14946 return 0;
14947 }
14948 _ACEOF
14949 if ac_fn_c_try_compile "$LINENO"; then :
14950 eval "$as_gl_Symbol=yes"
14951 else
14952 eval "$as_gl_Symbol=no"
14953 fi
14954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14955 fi
14956 eval ac_res=\$$as_gl_Symbol
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14958 $as_echo "$ac_res" >&6; }
14959 eval as_val=\$$as_gl_Symbol
14960 if test "x$as_val" = x""yes; then :
14961 cat >>confdefs.h <<_ACEOF
14962 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14963 _ACEOF
14964
14965 eval ac_cv_have_decl_$gl_func=yes
14966 fi
14967 done
14968
14969
14970
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
14981
14982
14983
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
14985 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
14986 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
14987 $as_echo_n "(cached) " >&6
14988 else
14989
14990 case "$host_os" in
14991 # Guess no on AIX and OSF/1.
14992 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
14993 # Guess yes otherwise.
14994 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
14995 esac
14996 if test $LOCALE_JA != none; then
14997 if test "$cross_compiling" = yes; then :
14998 :
14999 else
15000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15001 /* end confdefs.h. */
15002
15003 #include <locale.h>
15004 #include <string.h>
15005 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15006 <wchar.h>.
15007 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15008 included before <wchar.h>. */
15009 #include <stddef.h>
15010 #include <stdio.h>
15011 #include <time.h>
15012 #include <wchar.h>
15013 int main ()
15014 {
15015 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15016 {
15017 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15018 mbstate_t state;
15019 wchar_t wc;
15020
15021 memset (&state, '\0', sizeof (mbstate_t));
15022 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15023 if (mbsinit (&state))
15024 return 1;
15025 }
15026 return 0;
15027 }
15028 _ACEOF
15029 if ac_fn_c_try_run "$LINENO"; then :
15030 gl_cv_func_mbrtowc_incomplete_state=yes
15031 else
15032 gl_cv_func_mbrtowc_incomplete_state=no
15033 fi
15034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15035 conftest.$ac_objext conftest.beam conftest.$ac_ext
15036 fi
15037
15038 fi
15039
15040 fi
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15042 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15043
15044
15045
15046
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15048 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15049 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
15050 $as_echo_n "(cached) " >&6
15051 else
15052
15053 case "$host_os" in
15054 # Guess no on Solaris 8.
15055 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15056 # Guess yes otherwise.
15057 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15058 esac
15059 if test $LOCALE_ZH_CN != none; then
15060 if test "$cross_compiling" = yes; then :
15061 :
15062 else
15063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15064 /* end confdefs.h. */
15065
15066 #include <locale.h>
15067 #include <stdlib.h>
15068 #include <string.h>
15069 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15070 <wchar.h>.
15071 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15072 included before <wchar.h>. */
15073 #include <stddef.h>
15074 #include <stdio.h>
15075 #include <time.h>
15076 #include <wchar.h>
15077 int main ()
15078 {
15079 /* This fails on Solaris 8:
15080 mbrtowc returns 2, and sets wc to 0x00F0.
15081 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15082 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15083 {
15084 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15085 mbstate_t state;
15086 wchar_t wc;
15087
15088 memset (&state, '\0', sizeof (mbstate_t));
15089 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15090 && mbtowc (&wc, input + 3, 6) == 4)
15091 return 1;
15092 }
15093 return 0;
15094 }
15095 _ACEOF
15096 if ac_fn_c_try_run "$LINENO"; then :
15097 gl_cv_func_mbrtowc_sanitycheck=yes
15098 else
15099 gl_cv_func_mbrtowc_sanitycheck=no
15100 fi
15101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15102 conftest.$ac_objext conftest.beam conftest.$ac_ext
15103 fi
15104
15105 fi
15106
15107 fi
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15109 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15110
15111 REPLACE_MBSTATE_T=0
15112 case "$gl_cv_func_mbrtowc_incomplete_state" in
15113 *yes) ;;
15114 *) REPLACE_MBSTATE_T=1 ;;
15115 esac
15116 case "$gl_cv_func_mbrtowc_sanitycheck" in
15117 *yes) ;;
15118 *) REPLACE_MBSTATE_T=1 ;;
15119 esac
15120 else
15121 REPLACE_MBSTATE_T=1
15122 fi
15123
15124
15125
15126 if test $ac_cv_func_mbrtowc = no; then
15127 HAVE_MBRTOWC=0
15128 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
15129 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15130 <wchar.h>.
15131 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15132 included before <wchar.h>. */
15133 #include <stddef.h>
15134 #include <stdio.h>
15135 #include <time.h>
15136 #include <wchar.h>
15137
15138 "
15139 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
15140 ac_have_decl=1
15141 else
15142 ac_have_decl=0
15143 fi
15144
15145 cat >>confdefs.h <<_ACEOF
15146 #define HAVE_DECL_MBRTOWC $ac_have_decl
15147 _ACEOF
15148
15149 if test $ac_cv_have_decl_mbrtowc = yes; then
15150 REPLACE_MBRTOWC=1
15151 fi
15152 else
15153 if test $REPLACE_MBSTATE_T = 1; then
15154 REPLACE_MBRTOWC=1
15155 else
15156
15157
15158
15159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
15160 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
15161 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
15162 $as_echo_n "(cached) " >&6
15163 else
15164
15165 case "$host_os" in
15166 # Guess no on Solaris.
15167 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
15168 # Guess yes otherwise.
15169 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
15170 esac
15171 if test $LOCALE_FR_UTF8 != none; then
15172 if test "$cross_compiling" = yes; then :
15173 :
15174 else
15175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15176 /* end confdefs.h. */
15177
15178 #include <locale.h>
15179 #include <stdlib.h>
15180 #include <string.h>
15181 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15182 <wchar.h>.
15183 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15184 included before <wchar.h>. */
15185 #include <stddef.h>
15186 #include <stdio.h>
15187 #include <time.h>
15188 #include <wchar.h>
15189 int main ()
15190 {
15191 int result = 0;
15192
15193 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15194 {
15195 char input[] = "\303\237er";
15196 mbstate_t state;
15197 wchar_t wc;
15198 size_t ret;
15199
15200 memset (&state, '\0', sizeof (mbstate_t));
15201 wc = (wchar_t) 0xBADFACE;
15202 ret = mbrtowc (&wc, input, 5, &state);
15203 if (ret != 2)
15204 result |= 1;
15205 if (!mbsinit (&state))
15206 result |= 2;
15207
15208 memset (&state, '\0', sizeof (mbstate_t));
15209 ret = mbrtowc (NULL, input, 5, &state);
15210 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
15211 result |= 4;
15212 if (!mbsinit (&state))
15213 result |= 8;
15214 }
15215 return result;
15216 }
15217 _ACEOF
15218 if ac_fn_c_try_run "$LINENO"; then :
15219 gl_cv_func_mbrtowc_null_arg1=yes
15220 else
15221 gl_cv_func_mbrtowc_null_arg1=no
15222 fi
15223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15224 conftest.$ac_objext conftest.beam conftest.$ac_ext
15225 fi
15226
15227 fi
15228
15229 fi
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
15231 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
15232
15233
15234
15235
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
15237 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
15238 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
15239 $as_echo_n "(cached) " >&6
15240 else
15241
15242 case "$host_os" in
15243 # Guess no on OSF/1.
15244 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
15245 # Guess yes otherwise.
15246 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
15247 esac
15248 if test $LOCALE_FR_UTF8 != none; then
15249 if test "$cross_compiling" = yes; then :
15250 :
15251 else
15252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15253 /* end confdefs.h. */
15254
15255 #include <locale.h>
15256 #include <string.h>
15257 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15258 <wchar.h>.
15259 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15260 included before <wchar.h>. */
15261 #include <stddef.h>
15262 #include <stdio.h>
15263 #include <time.h>
15264 #include <wchar.h>
15265 int main ()
15266 {
15267 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15268 {
15269 mbstate_t state;
15270 wchar_t wc;
15271 int ret;
15272
15273 memset (&state, '\0', sizeof (mbstate_t));
15274 wc = (wchar_t) 0xBADFACE;
15275 mbrtowc (&wc, NULL, 5, &state);
15276 /* Check that wc was not modified. */
15277 if (wc != (wchar_t) 0xBADFACE)
15278 return 1;
15279 }
15280 return 0;
15281 }
15282 _ACEOF
15283 if ac_fn_c_try_run "$LINENO"; then :
15284 gl_cv_func_mbrtowc_null_arg2=yes
15285 else
15286 gl_cv_func_mbrtowc_null_arg2=no
15287 fi
15288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15289 conftest.$ac_objext conftest.beam conftest.$ac_ext
15290 fi
15291
15292 fi
15293
15294 fi
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
15296 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
15297
15298
15299
15300
15301
15302
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
15304 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
15305 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
15306 $as_echo_n "(cached) " >&6
15307 else
15308
15309 case "$host_os" in
15310 # Guess no on HP-UX, Solaris, native Windows.
15311 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
15312 # Guess yes otherwise.
15313 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
15314 esac
15315 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
15316 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
15317 if test "$cross_compiling" = yes; then :
15318 :
15319 else
15320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15321 /* end confdefs.h. */
15322
15323 #include <locale.h>
15324 #include <string.h>
15325 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15326 <wchar.h>.
15327 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15328 included before <wchar.h>. */
15329 #include <stddef.h>
15330 #include <stdio.h>
15331 #include <time.h>
15332 #include <wchar.h>
15333 int main ()
15334 {
15335 int result = 0;
15336 int found_some_locale = 0;
15337 /* This fails on Solaris. */
15338 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15339 {
15340 char input[] = "B\303\274\303\237er"; /* "Büßer" */
15341 mbstate_t state;
15342 wchar_t wc;
15343
15344 memset (&state, '\0', sizeof (mbstate_t));
15345 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15346 {
15347 input[1] = '\0';
15348 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
15349 result |= 1;
15350 }
15351 found_some_locale = 1;
15352 }
15353 /* This fails on HP-UX 11.11. */
15354 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15355 {
15356 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15357 mbstate_t state;
15358 wchar_t wc;
15359
15360 memset (&state, '\0', sizeof (mbstate_t));
15361 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15362 {
15363 input[1] = '\0';
15364 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
15365 result |= 2;
15366 }
15367 found_some_locale = 1;
15368 }
15369 /* This fails on native Windows. */
15370 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
15371 {
15372 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
15373 mbstate_t state;
15374 wchar_t wc;
15375
15376 memset (&state, '\0', sizeof (mbstate_t));
15377 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
15378 {
15379 input[3] = '\0';
15380 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
15381 result |= 4;
15382 }
15383 found_some_locale = 1;
15384 }
15385 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
15386 {
15387 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
15388 mbstate_t state;
15389 wchar_t wc;
15390
15391 memset (&state, '\0', sizeof (mbstate_t));
15392 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
15393 {
15394 input[3] = '\0';
15395 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
15396 result |= 8;
15397 }
15398 found_some_locale = 1;
15399 }
15400 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
15401 {
15402 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
15403 mbstate_t state;
15404 wchar_t wc;
15405
15406 memset (&state, '\0', sizeof (mbstate_t));
15407 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
15408 {
15409 input[3] = '\0';
15410 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
15411 result |= 16;
15412 }
15413 found_some_locale = 1;
15414 }
15415 return (found_some_locale ? result : 77);
15416 }
15417 _ACEOF
15418 if ac_fn_c_try_run "$LINENO"; then :
15419 gl_cv_func_mbrtowc_retval=yes
15420 else
15421 if test $? != 77; then
15422 gl_cv_func_mbrtowc_retval=no
15423 fi
15424
15425 fi
15426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15427 conftest.$ac_objext conftest.beam conftest.$ac_ext
15428 fi
15429
15430 fi
15431
15432 fi
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
15434 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
15435
15436
15437
15438
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
15440 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
15441 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
15442 $as_echo_n "(cached) " >&6
15443 else
15444
15445 case "$host_os" in
15446 # Guess no on Solaris 8 and 9.
15447 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
15448 # Guess yes otherwise.
15449 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
15450 esac
15451 if test $LOCALE_ZH_CN != none; then
15452 if test "$cross_compiling" = yes; then :
15453 :
15454 else
15455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15456 /* end confdefs.h. */
15457
15458 #include <locale.h>
15459 #include <string.h>
15460 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15461 <wchar.h>.
15462 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15463 included before <wchar.h>. */
15464 #include <stddef.h>
15465 #include <stdio.h>
15466 #include <time.h>
15467 #include <wchar.h>
15468 int main ()
15469 {
15470 /* This fails on Solaris 8 and 9. */
15471 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15472 {
15473 mbstate_t state;
15474 wchar_t wc;
15475
15476 memset (&state, '\0', sizeof (mbstate_t));
15477 if (mbrtowc (&wc, "", 1, &state) != 0)
15478 return 1;
15479 }
15480 return 0;
15481 }
15482 _ACEOF
15483 if ac_fn_c_try_run "$LINENO"; then :
15484 gl_cv_func_mbrtowc_nul_retval=yes
15485 else
15486 gl_cv_func_mbrtowc_nul_retval=no
15487 fi
15488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15489 conftest.$ac_objext conftest.beam conftest.$ac_ext
15490 fi
15491
15492 fi
15493
15494 fi
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
15496 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
15497
15498
15499
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
15501 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
15502 if test "${gl_cv_func_mbrtowc_empty_input+set}" = set; then :
15503 $as_echo_n "(cached) " >&6
15504 else
15505
15506 case "$host_os" in
15507 # Guess no on AIX and glibc systems.
15508 aix* | *-gnu*)
15509 gl_cv_func_mbrtowc_empty_input="guessing no" ;;
15510 *) gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
15511 esac
15512 if test "$cross_compiling" = yes; then :
15513 :
15514 else
15515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15516 /* end confdefs.h. */
15517
15518 #include <wchar.h>
15519 static wchar_t wc;
15520 static mbstate_t mbs;
15521 int
15522 main (void)
15523 {
15524 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
15525 }
15526 _ACEOF
15527 if ac_fn_c_try_run "$LINENO"; then :
15528 gl_cv_func_mbrtowc_empty_input=yes
15529 else
15530 gl_cv_func_mbrtowc_empty_input=no
15531 fi
15532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15533 conftest.$ac_objext conftest.beam conftest.$ac_ext
15534 fi
15535
15536
15537 fi
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
15539 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
15540
15541
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
15543 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
15544 if test "${gl_cv_C_locale_sans_EILSEQ+set}" = set; then :
15545 $as_echo_n "(cached) " >&6
15546 else
15547
15548 gl_cv_C_locale_sans_EILSEQ="guessing no"
15549
15550 if test "$cross_compiling" = yes; then :
15551 :
15552 else
15553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15554 /* end confdefs.h. */
15555 #include <limits.h>
15556 #include <locale.h>
15557 #include <wchar.h>
15558
15559 int
15560 main ()
15561 {
15562
15563 int i;
15564 char *locale = setlocale (LC_ALL, "C");
15565 if (! locale)
15566 return 1;
15567 for (i = CHAR_MIN; i <= CHAR_MAX; i++)
15568 {
15569 char c = i;
15570 wchar_t wc;
15571 mbstate_t mbs = { 0, };
15572 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
15573 if (1 < ss)
15574 return 1;
15575 }
15576 return 0;
15577
15578 ;
15579 return 0;
15580 }
15581 _ACEOF
15582 if ac_fn_c_try_run "$LINENO"; then :
15583 gl_cv_C_locale_sans_EILSEQ=yes
15584 else
15585 gl_cv_C_locale_sans_EILSEQ=no
15586 fi
15587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15588 conftest.$ac_objext conftest.beam conftest.$ac_ext
15589 fi
15590
15591 fi
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_C_locale_sans_EILSEQ" >&5
15593 $as_echo "$gl_cv_C_locale_sans_EILSEQ" >&6; }
15594
15595 case "$gl_cv_func_mbrtowc_null_arg1" in
15596 *yes) ;;
15597 *)
15598 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
15599
15600 REPLACE_MBRTOWC=1
15601 ;;
15602 esac
15603 case "$gl_cv_func_mbrtowc_null_arg2" in
15604 *yes) ;;
15605 *)
15606 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
15607
15608 REPLACE_MBRTOWC=1
15609 ;;
15610 esac
15611 case "$gl_cv_func_mbrtowc_retval" in
15612 *yes) ;;
15613 *)
15614 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
15615
15616 REPLACE_MBRTOWC=1
15617 ;;
15618 esac
15619 case "$gl_cv_func_mbrtowc_nul_retval" in
15620 *yes) ;;
15621 *)
15622 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
15623
15624 REPLACE_MBRTOWC=1
15625 ;;
15626 esac
15627 case "$gl_cv_func_mbrtowc_empty_input" in
15628 *yes) ;;
15629 *)
15630 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
15631
15632 REPLACE_MBRTOWC=1
15633 ;;
15634 esac
15635 case $gl_cv_C_locale_sans_EILSEQ in
15636 *yes) ;;
15637 *)
15638 $as_echo "#define C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
15639
15640 REPLACE_MBRTOWC=1
15641 ;;
15642 esac
15643 fi
15644 fi
15645
15646 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
15647
15648
15649
15650
15651
15652
15653
15654
15655 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
15656
15657
15658 :
15659
15660 fi
15661
15662
15663
15664
15665
15666 GNULIB_MBRTOWC=1
15667
15668
15669
15670
15671
15672 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15688
15689
15690
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15692 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15693 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15694 $as_echo_n "(cached) " >&6
15695 else
15696
15697 case "$host_os" in
15698 # Guess no on AIX and OSF/1.
15699 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15700 # Guess yes otherwise.
15701 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15702 esac
15703 if test $LOCALE_JA != none; then
15704 if test "$cross_compiling" = yes; then :
15705 :
15706 else
15707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15708 /* end confdefs.h. */
15709
15710 #include <locale.h>
15711 #include <string.h>
15712 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15713 <wchar.h>.
15714 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15715 included before <wchar.h>. */
15716 #include <stddef.h>
15717 #include <stdio.h>
15718 #include <time.h>
15719 #include <wchar.h>
15720 int main ()
15721 {
15722 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15723 {
15724 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15725 mbstate_t state;
15726 wchar_t wc;
15727
15728 memset (&state, '\0', sizeof (mbstate_t));
15729 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15730 if (mbsinit (&state))
15731 return 1;
15732 }
15733 return 0;
15734 }
15735 _ACEOF
15736 if ac_fn_c_try_run "$LINENO"; then :
15737 gl_cv_func_mbrtowc_incomplete_state=yes
15738 else
15739 gl_cv_func_mbrtowc_incomplete_state=no
15740 fi
15741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15742 conftest.$ac_objext conftest.beam conftest.$ac_ext
15743 fi
15744
15745 fi
15746
15747 fi
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15749 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15750
15751
15752
15753
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15755 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15756 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
15757 $as_echo_n "(cached) " >&6
15758 else
15759
15760 case "$host_os" in
15761 # Guess no on Solaris 8.
15762 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15763 # Guess yes otherwise.
15764 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15765 esac
15766 if test $LOCALE_ZH_CN != none; then
15767 if test "$cross_compiling" = yes; then :
15768 :
15769 else
15770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15771 /* end confdefs.h. */
15772
15773 #include <locale.h>
15774 #include <stdlib.h>
15775 #include <string.h>
15776 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15777 <wchar.h>.
15778 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15779 included before <wchar.h>. */
15780 #include <stddef.h>
15781 #include <stdio.h>
15782 #include <time.h>
15783 #include <wchar.h>
15784 int main ()
15785 {
15786 /* This fails on Solaris 8:
15787 mbrtowc returns 2, and sets wc to 0x00F0.
15788 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15789 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15790 {
15791 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15792 mbstate_t state;
15793 wchar_t wc;
15794
15795 memset (&state, '\0', sizeof (mbstate_t));
15796 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15797 && mbtowc (&wc, input + 3, 6) == 4)
15798 return 1;
15799 }
15800 return 0;
15801 }
15802 _ACEOF
15803 if ac_fn_c_try_run "$LINENO"; then :
15804 gl_cv_func_mbrtowc_sanitycheck=yes
15805 else
15806 gl_cv_func_mbrtowc_sanitycheck=no
15807 fi
15808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15809 conftest.$ac_objext conftest.beam conftest.$ac_ext
15810 fi
15811
15812 fi
15813
15814 fi
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15816 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15817
15818 REPLACE_MBSTATE_T=0
15819 case "$gl_cv_func_mbrtowc_incomplete_state" in
15820 *yes) ;;
15821 *) REPLACE_MBSTATE_T=1 ;;
15822 esac
15823 case "$gl_cv_func_mbrtowc_sanitycheck" in
15824 *yes) ;;
15825 *) REPLACE_MBSTATE_T=1 ;;
15826 esac
15827 else
15828 REPLACE_MBSTATE_T=1
15829 fi
15830
15831
15832
15833 if test $ac_cv_func_mbsinit = no; then
15834 HAVE_MBSINIT=0
15835 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
15836 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15837 <wchar.h>.
15838 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15839 included before <wchar.h>. */
15840 #include <stddef.h>
15841 #include <stdio.h>
15842 #include <time.h>
15843 #include <wchar.h>
15844
15845 "
15846 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
15847 ac_have_decl=1
15848 else
15849 ac_have_decl=0
15850 fi
15851
15852 cat >>confdefs.h <<_ACEOF
15853 #define HAVE_DECL_MBSINIT $ac_have_decl
15854 _ACEOF
15855
15856 if test $ac_cv_have_decl_mbsinit = yes; then
15857 REPLACE_MBSINIT=1
15858 fi
15859 else
15860 if test $REPLACE_MBSTATE_T = 1; then
15861 REPLACE_MBSINIT=1
15862 else
15863 case "$host_os" in
15864 mingw*) REPLACE_MBSINIT=1 ;;
15865 esac
15866 fi
15867 fi
15868
15869 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
15870
15871
15872
15873
15874
15875
15876
15877
15878 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
15879
15880
15881 :
15882
15883 fi
15884
15885
15886
15887
15888
15889 GNULIB_MBSINIT=1
15890
15891
15892
15893
15894
15895 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15910
15911
15912
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15914 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15915 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15916 $as_echo_n "(cached) " >&6
15917 else
15918
15919 case "$host_os" in
15920 # Guess no on AIX and OSF/1.
15921 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15922 # Guess yes otherwise.
15923 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15924 esac
15925 if test $LOCALE_JA != none; then
15926 if test "$cross_compiling" = yes; then :
15927 :
15928 else
15929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15930 /* end confdefs.h. */
15931
15932 #include <locale.h>
15933 #include <string.h>
15934 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15935 <wchar.h>.
15936 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15937 included before <wchar.h>. */
15938 #include <stddef.h>
15939 #include <stdio.h>
15940 #include <time.h>
15941 #include <wchar.h>
15942 int main ()
15943 {
15944 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15945 {
15946 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15947 mbstate_t state;
15948 wchar_t wc;
15949
15950 memset (&state, '\0', sizeof (mbstate_t));
15951 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15952 if (mbsinit (&state))
15953 return 1;
15954 }
15955 return 0;
15956 }
15957 _ACEOF
15958 if ac_fn_c_try_run "$LINENO"; then :
15959 gl_cv_func_mbrtowc_incomplete_state=yes
15960 else
15961 gl_cv_func_mbrtowc_incomplete_state=no
15962 fi
15963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15964 conftest.$ac_objext conftest.beam conftest.$ac_ext
15965 fi
15966
15967 fi
15968
15969 fi
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15971 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15972
15973
15974
15975
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15977 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15978 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
15979 $as_echo_n "(cached) " >&6
15980 else
15981
15982 case "$host_os" in
15983 # Guess no on Solaris 8.
15984 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15985 # Guess yes otherwise.
15986 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15987 esac
15988 if test $LOCALE_ZH_CN != none; then
15989 if test "$cross_compiling" = yes; then :
15990 :
15991 else
15992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15993 /* end confdefs.h. */
15994
15995 #include <locale.h>
15996 #include <stdlib.h>
15997 #include <string.h>
15998 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15999 <wchar.h>.
16000 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16001 included before <wchar.h>. */
16002 #include <stddef.h>
16003 #include <stdio.h>
16004 #include <time.h>
16005 #include <wchar.h>
16006 int main ()
16007 {
16008 /* This fails on Solaris 8:
16009 mbrtowc returns 2, and sets wc to 0x00F0.
16010 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
16011 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
16012 {
16013 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
16014 mbstate_t state;
16015 wchar_t wc;
16016
16017 memset (&state, '\0', sizeof (mbstate_t));
16018 if (mbrtowc (&wc, input + 3, 6, &state) != 4
16019 && mbtowc (&wc, input + 3, 6) == 4)
16020 return 1;
16021 }
16022 return 0;
16023 }
16024 _ACEOF
16025 if ac_fn_c_try_run "$LINENO"; then :
16026 gl_cv_func_mbrtowc_sanitycheck=yes
16027 else
16028 gl_cv_func_mbrtowc_sanitycheck=no
16029 fi
16030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16031 conftest.$ac_objext conftest.beam conftest.$ac_ext
16032 fi
16033
16034 fi
16035
16036 fi
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
16038 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
16039
16040 REPLACE_MBSTATE_T=0
16041 case "$gl_cv_func_mbrtowc_incomplete_state" in
16042 *yes) ;;
16043 *) REPLACE_MBSTATE_T=1 ;;
16044 esac
16045 case "$gl_cv_func_mbrtowc_sanitycheck" in
16046 *yes) ;;
16047 *) REPLACE_MBSTATE_T=1 ;;
16048 esac
16049 else
16050 REPLACE_MBSTATE_T=1
16051 fi
16052
16053
16054
16055 if test $ac_cv_func_mbsrtowcs = no; then
16056 HAVE_MBSRTOWCS=0
16057 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
16058 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16059 <wchar.h>.
16060 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16061 included before <wchar.h>. */
16062 #include <stddef.h>
16063 #include <stdio.h>
16064 #include <time.h>
16065 #include <wchar.h>
16066
16067 "
16068 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
16069 ac_have_decl=1
16070 else
16071 ac_have_decl=0
16072 fi
16073
16074 cat >>confdefs.h <<_ACEOF
16075 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
16076 _ACEOF
16077
16078 if test $ac_cv_have_decl_mbsrtowcs = yes; then
16079 REPLACE_MBSRTOWCS=1
16080 fi
16081 else
16082 if test $REPLACE_MBSTATE_T = 1; then
16083 REPLACE_MBSRTOWCS=1
16084 else
16085
16086
16087
16088
16089
16090
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
16092 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
16093 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
16094 $as_echo_n "(cached) " >&6
16095 else
16096
16097 case "$host_os" in
16098 # Guess no on HP-UX, Solaris, mingw.
16099 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
16100 # Guess yes otherwise.
16101 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
16102 esac
16103 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
16104 if test "$cross_compiling" = yes; then :
16105 :
16106 else
16107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16108 /* end confdefs.h. */
16109
16110 #include <locale.h>
16111 #include <string.h>
16112 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16113 <wchar.h>.
16114 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16115 included before <wchar.h>. */
16116 #include <stddef.h>
16117 #include <stdio.h>
16118 #include <time.h>
16119 #include <wchar.h>
16120 int main ()
16121 {
16122 int result = 0;
16123 /* Test whether the function supports a NULL destination argument.
16124 This fails on native Windows. */
16125 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
16126 {
16127 const char input[] = "\337er";
16128 const char *src = input;
16129 mbstate_t state;
16130
16131 memset (&state, '\0', sizeof (mbstate_t));
16132 if (mbsrtowcs (NULL, &src, 1, &state) != 3
16133 || src != input)
16134 result |= 1;
16135 }
16136 /* Test whether the function works when started with a conversion state
16137 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
16138 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
16139 {
16140 const char input[] = "B\303\274\303\237er";
16141 mbstate_t state;
16142
16143 memset (&state, '\0', sizeof (mbstate_t));
16144 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
16145 if (!mbsinit (&state))
16146 {
16147 const char *src = input + 2;
16148 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
16149 result |= 2;
16150 }
16151 }
16152 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
16153 {
16154 const char input[] = "<\306\374\313\334\270\354>";
16155 mbstate_t state;
16156
16157 memset (&state, '\0', sizeof (mbstate_t));
16158 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
16159 if (!mbsinit (&state))
16160 {
16161 const char *src = input + 4;
16162 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
16163 result |= 4;
16164 }
16165 }
16166 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
16167 {
16168 const char input[] = "B\250\271\201\060\211\070er";
16169 mbstate_t state;
16170
16171 memset (&state, '\0', sizeof (mbstate_t));
16172 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
16173 if (!mbsinit (&state))
16174 {
16175 const char *src = input + 2;
16176 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
16177 result |= 8;
16178 }
16179 }
16180 return result;
16181 }
16182 _ACEOF
16183 if ac_fn_c_try_run "$LINENO"; then :
16184 gl_cv_func_mbsrtowcs_works=yes
16185 else
16186 gl_cv_func_mbsrtowcs_works=no
16187 fi
16188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16189 conftest.$ac_objext conftest.beam conftest.$ac_ext
16190 fi
16191
16192 fi
16193
16194 fi
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
16196 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
16197
16198 case "$gl_cv_func_mbsrtowcs_works" in
16199 *yes) ;;
16200 *) REPLACE_MBSRTOWCS=1 ;;
16201 esac
16202 fi
16203 fi
16204
16205 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
16206
16207
16208
16209
16210
16211
16212
16213
16214 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
16215
16216
16217
16218
16219
16220
16221
16222
16223
16224 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
16225
16226
16227 :
16228
16229 fi
16230
16231
16232
16233
16234
16235 GNULIB_MBSRTOWCS=1
16236
16237
16238
16239
16240
16241 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
16242
16243
16244
16245
16246 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
16247
16248
16249
16250
16251
16252
16253
16254
16255 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
16256
16257
16258 for ac_header in bp-sym.h
16259 do :
16260 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
16261 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
16262 cat >>confdefs.h <<_ACEOF
16263 #define HAVE_BP_SYM_H 1
16264 _ACEOF
16265
16266 fi
16267
16268 done
16269
16270
16271 fi
16272
16273
16274
16275
16276
16277 GNULIB_MEMCHR=1
16278
16279
16280
16281
16282
16283 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
16284
16285
16286
16287
16288
16289 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
16291 $as_echo_n "checking whether memmem works in linear time... " >&6; }
16292 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
16293 $as_echo_n "(cached) " >&6
16294 else
16295 if test "$cross_compiling" = yes; then :
16296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16297 /* end confdefs.h. */
16298
16299 #include <features.h>
16300 #ifdef __GNU_LIBRARY__
16301 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
16302 && !defined __UCLIBC__
16303 Lucky user
16304 #endif
16305 #endif
16306 #ifdef __CYGWIN__
16307 #include <cygwin/version.h>
16308 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
16309 Lucky user
16310 #endif
16311 #endif
16312
16313 _ACEOF
16314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16315 $EGREP "Lucky user" >/dev/null 2>&1; then :
16316 gl_cv_func_memmem_works_fast="guessing yes"
16317 else
16318 gl_cv_func_memmem_works_fast="guessing no"
16319 fi
16320 rm -f conftest*
16321
16322
16323 else
16324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16325 /* end confdefs.h. */
16326
16327 #include <signal.h> /* for signal */
16328 #include <string.h> /* for memmem */
16329 #include <stdlib.h> /* for malloc */
16330 #include <unistd.h> /* for alarm */
16331 static void quit (int sig) { _exit (sig + 128); }
16332
16333 int
16334 main ()
16335 {
16336
16337 int result = 0;
16338 size_t m = 1000000;
16339 char *haystack = (char *) malloc (2 * m + 1);
16340 char *needle = (char *) malloc (m + 1);
16341 /* Failure to compile this test due to missing alarm is okay,
16342 since all such platforms (mingw) also lack memmem. */
16343 signal (SIGALRM, quit);
16344 alarm (5);
16345 /* Check for quadratic performance. */
16346 if (haystack && needle)
16347 {
16348 memset (haystack, 'A', 2 * m);
16349 haystack[2 * m] = 'B';
16350 memset (needle, 'A', m);
16351 needle[m] = 'B';
16352 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
16353 result |= 1;
16354 }
16355 return result;
16356
16357 ;
16358 return 0;
16359 }
16360 _ACEOF
16361 if ac_fn_c_try_run "$LINENO"; then :
16362 gl_cv_func_memmem_works_fast=yes
16363 else
16364 gl_cv_func_memmem_works_fast=no
16365 fi
16366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16367 conftest.$ac_objext conftest.beam conftest.$ac_ext
16368 fi
16369
16370
16371 fi
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
16373 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
16374 case "$gl_cv_func_memmem_works_fast" in
16375 *yes) ;;
16376 *)
16377 REPLACE_MEMMEM=1
16378 ;;
16379 esac
16380 fi
16381
16382 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
16383
16384
16385
16386
16387
16388
16389
16390
16391 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
16392
16393 fi
16394
16395
16396
16397
16398 for ac_func in memmem
16399 do :
16400 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
16401 if test "x$ac_cv_func_memmem" = x""yes; then :
16402 cat >>confdefs.h <<_ACEOF
16403 #define HAVE_MEMMEM 1
16404 _ACEOF
16405
16406 fi
16407 done
16408
16409 if test $ac_cv_func_memmem = yes; then
16410 HAVE_MEMMEM=1
16411 else
16412 HAVE_MEMMEM=0
16413 fi
16414
16415 if test $ac_cv_have_decl_memmem = no; then
16416 HAVE_DECL_MEMMEM=0
16417 else
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
16419 $as_echo_n "checking whether memmem works... " >&6; }
16420 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
16421 $as_echo_n "(cached) " >&6
16422 else
16423 if test "$cross_compiling" = yes; then :
16424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16425 /* end confdefs.h. */
16426
16427 #ifdef __GNU_LIBRARY__
16428 #include <features.h>
16429 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
16430 || __GLIBC_MINOR__ > 12)) \
16431 || (__GLIBC__ > 2)) \
16432 || defined __UCLIBC__
16433 Lucky user
16434 #endif
16435 #elif defined __CYGWIN__
16436 #include <cygwin/version.h>
16437 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
16438 Lucky user
16439 #endif
16440 #else
16441 Lucky user
16442 #endif
16443
16444 _ACEOF
16445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16446 $EGREP "Lucky user" >/dev/null 2>&1; then :
16447 gl_cv_func_memmem_works_always="guessing yes"
16448 else
16449 gl_cv_func_memmem_works_always="guessing no"
16450 fi
16451 rm -f conftest*
16452
16453
16454 else
16455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16456 /* end confdefs.h. */
16457
16458 #include <string.h> /* for memmem */
16459 #define P "_EF_BF_BD"
16460 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
16461 #define NEEDLE P P P P P
16462
16463 int
16464 main ()
16465 {
16466
16467 int result = 0;
16468 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
16469 result |= 1;
16470 /* Check for empty needle behavior. */
16471 {
16472 const char *haystack = "AAA";
16473 if (memmem (haystack, 3, NULL, 0) != haystack)
16474 result |= 2;
16475 }
16476 return result;
16477
16478 ;
16479 return 0;
16480 }
16481 _ACEOF
16482 if ac_fn_c_try_run "$LINENO"; then :
16483 gl_cv_func_memmem_works_always=yes
16484 else
16485 gl_cv_func_memmem_works_always=no
16486 fi
16487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16488 conftest.$ac_objext conftest.beam conftest.$ac_ext
16489 fi
16490
16491
16492 fi
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
16494 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
16495 case "$gl_cv_func_memmem_works_always" in
16496 *yes) ;;
16497 *)
16498 REPLACE_MEMMEM=1
16499 ;;
16500 esac
16501 fi
16502 :
16503
16504 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
16505
16506
16507
16508
16509
16510
16511
16512
16513 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
16514
16515 fi
16516
16517
16518
16519
16520
16521 GNULIB_MEMMEM=1
16522
16523
16524
16525
16526
16527 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
16528
16529
16530
16531
16532
16533
16534
16535
16536
16537
16538
16539 for ac_func in rawmemchr
16540 do :
16541 ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
16542 if test "x$ac_cv_func_rawmemchr" = x""yes; then :
16543 cat >>confdefs.h <<_ACEOF
16544 #define HAVE_RAWMEMCHR 1
16545 _ACEOF
16546
16547 fi
16548 done
16549
16550 if test $ac_cv_func_rawmemchr = no; then
16551 HAVE_RAWMEMCHR=0
16552 fi
16553
16554 if test $HAVE_RAWMEMCHR = 0; then
16555
16556
16557
16558
16559
16560
16561
16562
16563 gl_LIBOBJS="$gl_LIBOBJS rawmemchr.$ac_objext"
16564
16565 :
16566 fi
16567
16568
16569
16570
16571
16572 GNULIB_RAWMEMCHR=1
16573
16574
16575
16576
16577
16578 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
16579
16580
16581
16582
16583
16584
16585 if test $ac_cv_func_readlink = no; then
16586 HAVE_READLINK=0
16587 else
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
16589 $as_echo_n "checking whether readlink signature is correct... " >&6; }
16590 if test "${gl_cv_decl_readlink_works+set}" = set; then :
16591 $as_echo_n "(cached) " >&6
16592 else
16593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16594 /* end confdefs.h. */
16595 #include <unistd.h>
16596 /* Cause compilation failure if original declaration has wrong type. */
16597 ssize_t readlink (const char *, char *, size_t);
16598 int
16599 main ()
16600 {
16601
16602 ;
16603 return 0;
16604 }
16605 _ACEOF
16606 if ac_fn_c_try_compile "$LINENO"; then :
16607 gl_cv_decl_readlink_works=yes
16608 else
16609 gl_cv_decl_readlink_works=no
16610 fi
16611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16612 fi
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
16614 $as_echo "$gl_cv_decl_readlink_works" >&6; }
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
16616 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
16617 if test "${gl_cv_func_readlink_works+set}" = set; then :
16618 $as_echo_n "(cached) " >&6
16619 else
16620 # We have readlink, so assume ln -s works.
16621 ln -s conftest.no-such conftest.link
16622 ln -s conftest.link conftest.lnk2
16623 if test "$cross_compiling" = yes; then :
16624 case "$host_os" in
16625 # Guess yes on glibc systems.
16626 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
16627 # If we don't know, assume the worst.
16628 *) gl_cv_func_readlink_works="guessing no" ;;
16629 esac
16630
16631 else
16632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16633 /* end confdefs.h. */
16634 #include <unistd.h>
16635
16636 int
16637 main ()
16638 {
16639 char buf[20];
16640 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
16641 ;
16642 return 0;
16643 }
16644 _ACEOF
16645 if ac_fn_c_try_run "$LINENO"; then :
16646 gl_cv_func_readlink_works=yes
16647 else
16648 gl_cv_func_readlink_works=no
16649 fi
16650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16651 conftest.$ac_objext conftest.beam conftest.$ac_ext
16652 fi
16653
16654 rm -f conftest.link conftest.lnk2
16655 fi
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
16657 $as_echo "$gl_cv_func_readlink_works" >&6; }
16658 case "$gl_cv_func_readlink_works" in
16659 *yes)
16660 if test "$gl_cv_decl_readlink_works" != yes; then
16661 REPLACE_READLINK=1
16662 fi
16663 ;;
16664 *)
16665
16666 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
16667
16668 REPLACE_READLINK=1
16669 ;;
16670 esac
16671 fi
16672
16673 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
16674
16675
16676
16677
16678
16679
16680
16681
16682 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16683
16684
16685 :
16686
16687 fi
16688
16689
16690
16691
16692
16693 GNULIB_READLINK=1
16694
16695
16696
16697
16698
16699 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
16700
16701
16702
16703
16704
16705
16706
16707
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
16709 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
16710 if test "${gl_cv_func_rename_slash_dst_works+set}" = set; then :
16711 $as_echo_n "(cached) " >&6
16712 else
16713 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
16714 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
16715 as_fn_error "cannot create temporary files" "$LINENO" 5
16716 # Assume that if we have lstat, we can also check symlinks.
16717 if test $ac_cv_func_lstat = yes; then
16718 ln -s conftest.f conftest.lnk
16719 fi
16720 if test "$cross_compiling" = yes; then :
16721 case "$host_os" in
16722 # Guess yes on glibc systems.
16723 *-gnu*) gl_cv_func_rename_slash_dst_works="guessing yes" ;;
16724 # If we don't know, assume the worst.
16725 *) gl_cv_func_rename_slash_dst_works="guessing no" ;;
16726 esac
16727
16728 else
16729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16730 /* end confdefs.h. */
16731
16732 # include <stdio.h>
16733 # include <stdlib.h>
16734
16735 int
16736 main ()
16737 {
16738 int result = 0;
16739 if (rename ("conftest.f1", "conftest.f2/") == 0)
16740 result |= 1;
16741 if (rename ("conftest.d1", "conftest.d2/") != 0)
16742 result |= 2;
16743 #if HAVE_LSTAT
16744 if (rename ("conftest.f", "conftest.lnk/") == 0)
16745 result |= 4;
16746 #endif
16747 return result;
16748
16749 ;
16750 return 0;
16751 }
16752 _ACEOF
16753 if ac_fn_c_try_run "$LINENO"; then :
16754 gl_cv_func_rename_slash_dst_works=yes
16755 else
16756 gl_cv_func_rename_slash_dst_works=no
16757 fi
16758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16759 conftest.$ac_objext conftest.beam conftest.$ac_ext
16760 fi
16761
16762 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
16763
16764 fi
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
16766 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
16767 case "$gl_cv_func_rename_slash_dst_works" in
16768 *yes) ;;
16769 *)
16770 REPLACE_RENAME=1
16771
16772 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
16773
16774 ;;
16775 esac
16776
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
16778 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
16779 if test "${gl_cv_func_rename_slash_src_works+set}" = set; then :
16780 $as_echo_n "(cached) " >&6
16781 else
16782 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
16783 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
16784 as_fn_error "cannot create temporary files" "$LINENO" 5
16785 # Assume that if we have lstat, we can also check symlinks.
16786 if test $ac_cv_func_lstat = yes; then
16787 ln -s conftest.f conftest.lnk
16788 fi
16789 if test "$cross_compiling" = yes; then :
16790 case "$host_os" in
16791 # Guess yes on glibc systems.
16792 *-gnu*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
16793 # If we don't know, assume the worst.
16794 *) gl_cv_func_rename_slash_src_works="guessing no" ;;
16795 esac
16796
16797 else
16798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16799 /* end confdefs.h. */
16800
16801 # include <stdio.h>
16802 # include <stdlib.h>
16803
16804 int
16805 main ()
16806 {
16807 int result = 0;
16808 if (rename ("conftest.f1/", "conftest.d3") == 0)
16809 result |= 1;
16810 if (rename ("conftest.d1/", "conftest.d2") != 0)
16811 result |= 2;
16812 #if HAVE_LSTAT
16813 if (rename ("conftest.lnk/", "conftest.f") == 0)
16814 result |= 4;
16815 #endif
16816 return result;
16817
16818 ;
16819 return 0;
16820 }
16821 _ACEOF
16822 if ac_fn_c_try_run "$LINENO"; then :
16823 gl_cv_func_rename_slash_src_works=yes
16824 else
16825 gl_cv_func_rename_slash_src_works=no
16826 fi
16827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16828 conftest.$ac_objext conftest.beam conftest.$ac_ext
16829 fi
16830
16831 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
16832
16833 fi
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
16835 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
16836 case "$gl_cv_func_rename_slash_src_works" in
16837 *yes) ;;
16838 *)
16839 REPLACE_RENAME=1
16840
16841 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
16842
16843 ;;
16844 esac
16845
16846
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
16848 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
16849 if test "${gl_cv_func_rename_link_works+set}" = set; then :
16850 $as_echo_n "(cached) " >&6
16851 else
16852 if test $ac_cv_func_link = yes; then
16853 rm -rf conftest.f conftest.f1
16854 if touch conftest.f && ln conftest.f conftest.f1 &&
16855 set x `ls -i conftest.f conftest.f1` && test "" = ""; then
16856 if test "$cross_compiling" = yes; then :
16857 case "$host_os" in
16858 # Guess yes on glibc systems.
16859 *-gnu*) gl_cv_func_rename_link_works="guessing yes" ;;
16860 # If we don't know, assume the worst.
16861 *) gl_cv_func_rename_link_works="guessing no" ;;
16862 esac
16863
16864 else
16865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16866 /* end confdefs.h. */
16867
16868 # include <stdio.h>
16869 # include <stdlib.h>
16870 # include <unistd.h>
16871
16872 int
16873 main ()
16874 {
16875 int result = 0;
16876 if (rename ("conftest.f", "conftest.f1"))
16877 result |= 1;
16878 if (unlink ("conftest.f1"))
16879 result |= 2;
16880 if (rename ("conftest.f", "conftest.f"))
16881 result |= 4;
16882 if (rename ("conftest.f1", "conftest.f1") == 0)
16883 result |= 8;
16884 return result;
16885
16886 ;
16887 return 0;
16888 }
16889 _ACEOF
16890 if ac_fn_c_try_run "$LINENO"; then :
16891 gl_cv_func_rename_link_works=yes
16892 else
16893 gl_cv_func_rename_link_works=no
16894 fi
16895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16896 conftest.$ac_objext conftest.beam conftest.$ac_ext
16897 fi
16898
16899 else
16900 gl_cv_func_rename_link_works="guessing no"
16901 fi
16902 rm -rf conftest.f conftest.f1
16903 else
16904 gl_cv_func_rename_link_works=yes
16905 fi
16906
16907 fi
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
16909 $as_echo "$gl_cv_func_rename_link_works" >&6; }
16910 case "$gl_cv_func_rename_link_works" in
16911 *yes) ;;
16912 *)
16913 REPLACE_RENAME=1
16914
16915 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
16916
16917 ;;
16918 esac
16919
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
16921 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
16922 if test "${gl_cv_func_rename_dest_works+set}" = set; then :
16923 $as_echo_n "(cached) " >&6
16924 else
16925 rm -rf conftest.f conftest.d1 conftest.d2
16926 touch conftest.f && mkdir conftest.d1 conftest.d2 ||
16927 as_fn_error "cannot create temporary files" "$LINENO" 5
16928 if test "$cross_compiling" = yes; then :
16929 case "$host_os" in
16930 # Guess yes on glibc systems.
16931 *-gnu*) gl_cv_func_rename_dest_works="guessing yes" ;;
16932 # If we don't know, assume the worst.
16933 *) gl_cv_func_rename_dest_works="guessing no" ;;
16934 esac
16935
16936 else
16937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16938 /* end confdefs.h. */
16939
16940 # include <stdio.h>
16941 # include <stdlib.h>
16942
16943 int
16944 main ()
16945 {
16946 int result = 0;
16947 if (rename ("conftest.d1", "conftest.d2") != 0)
16948 result |= 1;
16949 if (rename ("conftest.d2", "conftest.f") == 0)
16950 result |= 2;
16951 return result;
16952
16953 ;
16954 return 0;
16955 }
16956 _ACEOF
16957 if ac_fn_c_try_run "$LINENO"; then :
16958 gl_cv_func_rename_dest_works=yes
16959 else
16960 gl_cv_func_rename_dest_works=no
16961 fi
16962 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16963 conftest.$ac_objext conftest.beam conftest.$ac_ext
16964 fi
16965
16966 rm -rf conftest.f conftest.d1 conftest.d2
16967
16968 fi
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
16970 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
16971 case "$gl_cv_func_rename_dest_works" in
16972 *yes) ;;
16973 *)
16974 REPLACE_RENAME=1
16975
16976 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
16977
16978 ;;
16979 esac
16980
16981 if test $REPLACE_RENAME = 1; then
16982
16983
16984
16985
16986
16987
16988
16989
16990 gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
16991
16992 fi
16993
16994
16995
16996
16997
16998 GNULIB_RENAME=1
16999
17000
17001
17002
17003
17004 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
17005
17006
17007
17008
17009
17010
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
17012 $as_echo_n "checking whether rmdir works... " >&6; }
17013 if test "${gl_cv_func_rmdir_works+set}" = set; then :
17014 $as_echo_n "(cached) " >&6
17015 else
17016 mkdir conftest.dir
17017 touch conftest.file
17018 if test "$cross_compiling" = yes; then :
17019 case "$host_os" in
17020 # Guess yes on glibc systems.
17021 *-gnu*) gl_cv_func_rmdir_works="guessing yes" ;;
17022 # If we don't know, assume the worst.
17023 *) gl_cv_func_rmdir_works="guessing no" ;;
17024 esac
17025
17026 else
17027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17028 /* end confdefs.h. */
17029 #include <stdio.h>
17030 #include <errno.h>
17031 #if HAVE_UNISTD_H
17032 # include <unistd.h>
17033 #else /* on Windows with MSVC */
17034 # include <direct.h>
17035 #endif
17036
17037 int
17038 main ()
17039 {
17040 int result = 0;
17041 if (!rmdir ("conftest.file/"))
17042 result |= 1;
17043 else if (errno != ENOTDIR)
17044 result |= 2;
17045 if (!rmdir ("conftest.dir/./"))
17046 result |= 4;
17047 return result;
17048
17049 ;
17050 return 0;
17051 }
17052 _ACEOF
17053 if ac_fn_c_try_run "$LINENO"; then :
17054 gl_cv_func_rmdir_works=yes
17055 else
17056 gl_cv_func_rmdir_works=no
17057 fi
17058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17059 conftest.$ac_objext conftest.beam conftest.$ac_ext
17060 fi
17061
17062 rm -rf conftest.dir conftest.file
17063 fi
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
17065 $as_echo "$gl_cv_func_rmdir_works" >&6; }
17066 case "$gl_cv_func_rmdir_works" in
17067 *yes) ;;
17068 *)
17069 REPLACE_RMDIR=1
17070 ;;
17071 esac
17072
17073 if test $REPLACE_RMDIR = 1; then
17074
17075
17076
17077
17078
17079
17080
17081
17082 gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
17083
17084 fi
17085
17086
17087
17088
17089
17090 GNULIB_RMDIR=1
17091
17092
17093
17094
17095
17096 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
17097
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107
17108
17109
17110
17111 if test $gl_cv_have_include_next = yes; then
17112 gl_cv_next_signal_h='<'signal.h'>'
17113 else
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
17115 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
17116 if test "${gl_cv_next_signal_h+set}" = set; then :
17117 $as_echo_n "(cached) " >&6
17118 else
17119
17120
17121
17122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17123 /* end confdefs.h. */
17124 #include <signal.h>
17125 _ACEOF
17126 case "$host_os" in
17127 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17128 *) gl_absname_cpp="$ac_cpp" ;;
17129 esac
17130
17131 case "$host_os" in
17132 mingw*)
17133 gl_dirsep_regex='[/\\]'
17134 ;;
17135 *)
17136 gl_dirsep_regex='\/'
17137 ;;
17138 esac
17139 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17140 gl_header_literal_regex=`echo 'signal.h' \
17141 | sed -e "$gl_make_literal_regex_sed"`
17142 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17143 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17144 s|^/[^/]|//&|
17145 p
17146 q
17147 }'
17148
17149 gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17150 sed -n "$gl_absolute_header_sed"`
17151
17152 gl_header=$gl_cv_absolute_signal_h
17153 gl_cv_next_signal_h='"'$gl_header'"'
17154
17155
17156 fi
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
17158 $as_echo "$gl_cv_next_signal_h" >&6; }
17159 fi
17160 NEXT_SIGNAL_H=$gl_cv_next_signal_h
17161
17162 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17163 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17164 gl_next_as_first_directive='<'signal.h'>'
17165 else
17166 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17167 gl_next_as_first_directive=$gl_cv_next_signal_h
17168 fi
17169 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
17170
17171
17172
17173
17174
17175 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
17176 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
17177 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
17178 #include <signal.h>
17179
17180 "
17181 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
17182
17183 else
17184 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
17185 fi
17186
17187
17188
17189
17190
17191
17192
17193 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
17194 #include <signal.h>
17195
17196 "
17197 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
17198
17199 else
17200 HAVE_SIGHANDLER_T=0
17201 fi
17202
17203
17204
17205 for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do
17206 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17208 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17209 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17210 $as_echo_n "(cached) " >&6
17211 else
17212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17213 /* end confdefs.h. */
17214 #include <signal.h>
17215
17216 int
17217 main ()
17218 {
17219 #undef $gl_func
17220 (void) $gl_func;
17221 ;
17222 return 0;
17223 }
17224 _ACEOF
17225 if ac_fn_c_try_compile "$LINENO"; then :
17226 eval "$as_gl_Symbol=yes"
17227 else
17228 eval "$as_gl_Symbol=no"
17229 fi
17230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17231 fi
17232 eval ac_res=\$$as_gl_Symbol
17233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17234 $as_echo "$ac_res" >&6; }
17235 eval as_val=\$$as_gl_Symbol
17236 if test "x$as_val" = x""yes; then :
17237 cat >>confdefs.h <<_ACEOF
17238 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17239 _ACEOF
17240
17241 eval ac_cv_have_decl_$gl_func=yes
17242 fi
17243 done
17244
17245
17246
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
17248 $as_echo_n "checking for ssize_t... " >&6; }
17249 if test "${gt_cv_ssize_t+set}" = set; then :
17250 $as_echo_n "(cached) " >&6
17251 else
17252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17253 /* end confdefs.h. */
17254 #include <sys/types.h>
17255 int
17256 main ()
17257 {
17258 int x = sizeof (ssize_t *) + sizeof (ssize_t);
17259 return !x;
17260 ;
17261 return 0;
17262 }
17263 _ACEOF
17264 if ac_fn_c_try_compile "$LINENO"; then :
17265 gt_cv_ssize_t=yes
17266 else
17267 gt_cv_ssize_t=no
17268 fi
17269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17270 fi
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
17272 $as_echo "$gt_cv_ssize_t" >&6; }
17273 if test $gt_cv_ssize_t = no; then
17274
17275 $as_echo "#define ssize_t int" >>confdefs.h
17276
17277 fi
17278
17279
17280
17281
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
17283 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
17284 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
17285 $as_echo_n "(cached) " >&6
17286 else
17287 if test "$cross_compiling" = yes; then :
17288 case $host_os in
17289 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
17290 *) gl_cv_func_stat_dir_slash="guessing yes";;
17291 esac
17292 else
17293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17294 /* end confdefs.h. */
17295 #include <sys/stat.h>
17296
17297 int
17298 main ()
17299 {
17300 struct stat st; return stat (".", &st) != stat ("./", &st);
17301 ;
17302 return 0;
17303 }
17304 _ACEOF
17305 if ac_fn_c_try_run "$LINENO"; then :
17306 gl_cv_func_stat_dir_slash=yes
17307 else
17308 gl_cv_func_stat_dir_slash=no
17309 fi
17310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17311 conftest.$ac_objext conftest.beam conftest.$ac_ext
17312 fi
17313
17314 fi
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
17316 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
17318 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
17319 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
17320 $as_echo_n "(cached) " >&6
17321 else
17322 touch conftest.tmp
17323 # Assume that if we have lstat, we can also check symlinks.
17324 if test $ac_cv_func_lstat = yes; then
17325 ln -s conftest.tmp conftest.lnk
17326 fi
17327 if test "$cross_compiling" = yes; then :
17328 case "$host_os" in
17329 # Guess yes on glibc systems.
17330 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
17331 # If we don't know, assume the worst.
17332 *) gl_cv_func_stat_file_slash="guessing no" ;;
17333 esac
17334
17335 else
17336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17337 /* end confdefs.h. */
17338 #include <sys/stat.h>
17339
17340 int
17341 main ()
17342 {
17343 int result = 0;
17344 struct stat st;
17345 if (!stat ("conftest.tmp/", &st))
17346 result |= 1;
17347 #if HAVE_LSTAT
17348 if (!stat ("conftest.lnk/", &st))
17349 result |= 2;
17350 #endif
17351 return result;
17352
17353 ;
17354 return 0;
17355 }
17356 _ACEOF
17357 if ac_fn_c_try_run "$LINENO"; then :
17358 gl_cv_func_stat_file_slash=yes
17359 else
17360 gl_cv_func_stat_file_slash=no
17361 fi
17362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17363 conftest.$ac_objext conftest.beam conftest.$ac_ext
17364 fi
17365
17366 rm -f conftest.tmp conftest.lnk
17367 fi
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
17369 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
17370 case $gl_cv_func_stat_dir_slash in
17371 *no) REPLACE_STAT=1
17372
17373 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
17374 ;;
17375 esac
17376 case $gl_cv_func_stat_file_slash in
17377 *no) REPLACE_STAT=1
17378
17379 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
17380 ;;
17381 esac
17382
17383 if test $REPLACE_STAT = 1; then
17384
17385
17386
17387
17388
17389
17390
17391
17392 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
17393
17394 :
17395 fi
17396
17397
17398
17399
17400
17401 GNULIB_STAT=1
17402
17403
17404
17405
17406
17407 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
17408
17409
17410
17411
17412
17413
17414 # Define two additional variables used in the Makefile substitution.
17415
17416 if test "$ac_cv_header_stdbool_h" = yes; then
17417 STDBOOL_H=''
17418 else
17419 STDBOOL_H='stdbool.h'
17420 fi
17421
17422 if test -n "$STDBOOL_H"; then
17423 GL_GENERATE_STDBOOL_H_TRUE=
17424 GL_GENERATE_STDBOOL_H_FALSE='#'
17425 else
17426 GL_GENERATE_STDBOOL_H_TRUE='#'
17427 GL_GENERATE_STDBOOL_H_FALSE=
17428 fi
17429
17430
17431 if test "$ac_cv_type__Bool" = yes; then
17432 HAVE__BOOL=1
17433 else
17434 HAVE__BOOL=0
17435 fi
17436
17437
17438
17439
17440
17441 STDDEF_H=
17442 ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
17443
17444 "
17445 if test "x$ac_cv_type_max_align_t" = x""yes; then :
17446
17447 else
17448 HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
17449 fi
17450
17451 if test $gt_cv_c_wchar_t = no; then
17452 HAVE_WCHAR_T=0
17453 STDDEF_H=stddef.h
17454 fi
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
17456 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
17457 if test "${gl_cv_decl_null_works+set}" = set; then :
17458 $as_echo_n "(cached) " >&6
17459 else
17460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17461 /* end confdefs.h. */
17462 #include <stddef.h>
17463 int test[2 * (sizeof NULL == sizeof (void *)) -1];
17464
17465 int
17466 main ()
17467 {
17468
17469 ;
17470 return 0;
17471 }
17472 _ACEOF
17473 if ac_fn_c_try_compile "$LINENO"; then :
17474 gl_cv_decl_null_works=yes
17475 else
17476 gl_cv_decl_null_works=no
17477 fi
17478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17479 fi
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
17481 $as_echo "$gl_cv_decl_null_works" >&6; }
17482 if test $gl_cv_decl_null_works = no; then
17483 REPLACE_NULL=1
17484 STDDEF_H=stddef.h
17485 fi
17486
17487 if test -n "$STDDEF_H"; then
17488 GL_GENERATE_STDDEF_H_TRUE=
17489 GL_GENERATE_STDDEF_H_FALSE='#'
17490 else
17491 GL_GENERATE_STDDEF_H_TRUE='#'
17492 GL_GENERATE_STDDEF_H_FALSE=
17493 fi
17494
17495 if test -n "$STDDEF_H"; then
17496
17497
17498
17499
17500
17501
17502
17503
17504 if test $gl_cv_have_include_next = yes; then
17505 gl_cv_next_stddef_h='<'stddef.h'>'
17506 else
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
17508 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
17509 if test "${gl_cv_next_stddef_h+set}" = set; then :
17510 $as_echo_n "(cached) " >&6
17511 else
17512
17513
17514
17515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17516 /* end confdefs.h. */
17517 #include <stddef.h>
17518 _ACEOF
17519 case "$host_os" in
17520 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17521 *) gl_absname_cpp="$ac_cpp" ;;
17522 esac
17523
17524 case "$host_os" in
17525 mingw*)
17526 gl_dirsep_regex='[/\\]'
17527 ;;
17528 *)
17529 gl_dirsep_regex='\/'
17530 ;;
17531 esac
17532 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17533 gl_header_literal_regex=`echo 'stddef.h' \
17534 | sed -e "$gl_make_literal_regex_sed"`
17535 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17536 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17537 s|^/[^/]|//&|
17538 p
17539 q
17540 }'
17541
17542 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17543 sed -n "$gl_absolute_header_sed"`
17544
17545 gl_header=$gl_cv_absolute_stddef_h
17546 gl_cv_next_stddef_h='"'$gl_header'"'
17547
17548
17549 fi
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
17551 $as_echo "$gl_cv_next_stddef_h" >&6; }
17552 fi
17553 NEXT_STDDEF_H=$gl_cv_next_stddef_h
17554
17555 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17556 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17557 gl_next_as_first_directive='<'stddef.h'>'
17558 else
17559 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17560 gl_next_as_first_directive=$gl_cv_next_stddef_h
17561 fi
17562 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
17563
17564
17565
17566
17567 fi
17568
17569
17570
17571
17572 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583 if test $gl_cv_have_include_next = yes; then
17584 gl_cv_next_stdio_h='<'stdio.h'>'
17585 else
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
17587 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
17588 if test "${gl_cv_next_stdio_h+set}" = set; then :
17589 $as_echo_n "(cached) " >&6
17590 else
17591
17592
17593
17594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17595 /* end confdefs.h. */
17596 #include <stdio.h>
17597 _ACEOF
17598 case "$host_os" in
17599 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17600 *) gl_absname_cpp="$ac_cpp" ;;
17601 esac
17602
17603 case "$host_os" in
17604 mingw*)
17605 gl_dirsep_regex='[/\\]'
17606 ;;
17607 *)
17608 gl_dirsep_regex='\/'
17609 ;;
17610 esac
17611 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17612 gl_header_literal_regex=`echo 'stdio.h' \
17613 | sed -e "$gl_make_literal_regex_sed"`
17614 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17615 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17616 s|^/[^/]|//&|
17617 p
17618 q
17619 }'
17620
17621 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17622 sed -n "$gl_absolute_header_sed"`
17623
17624 gl_header=$gl_cv_absolute_stdio_h
17625 gl_cv_next_stdio_h='"'$gl_header'"'
17626
17627
17628 fi
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
17630 $as_echo "$gl_cv_next_stdio_h" >&6; }
17631 fi
17632 NEXT_STDIO_H=$gl_cv_next_stdio_h
17633
17634 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17635 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17636 gl_next_as_first_directive='<'stdio.h'>'
17637 else
17638 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17639 gl_next_as_first_directive=$gl_cv_next_stdio_h
17640 fi
17641 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
17642
17643
17644
17645
17646
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
17648 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
17649 if test "${gl_cv_func_printf_attribute_flavor+set}" = set; then :
17650 $as_echo_n "(cached) " >&6
17651 else
17652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17653 /* end confdefs.h. */
17654
17655 #define __STDC_FORMAT_MACROS 1
17656 #include <stdio.h>
17657 #include <inttypes.h>
17658 /* For non-mingw systems, compilation will trivially succeed.
17659 For mingw, compilation will succeed for older mingw (system
17660 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
17661 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
17662 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
17663 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
17664 #endif
17665
17666 int
17667 main ()
17668 {
17669
17670 ;
17671 return 0;
17672 }
17673 _ACEOF
17674 if ac_fn_c_try_compile "$LINENO"; then :
17675 gl_cv_func_printf_attribute_flavor=system
17676 else
17677 gl_cv_func_printf_attribute_flavor=gnu
17678 fi
17679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17680 fi
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
17682 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
17683 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
17684
17685 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
17686
17687 fi
17688
17689 GNULIB_FSCANF=1
17690
17691
17692 cat >>confdefs.h <<_ACEOF
17693 #define GNULIB_FSCANF 1
17694 _ACEOF
17695
17696
17697 GNULIB_SCANF=1
17698
17699
17700 cat >>confdefs.h <<_ACEOF
17701 #define GNULIB_SCANF 1
17702 _ACEOF
17703
17704
17705 GNULIB_FGETC=1
17706 GNULIB_GETC=1
17707 GNULIB_GETCHAR=1
17708 GNULIB_FGETS=1
17709 GNULIB_FREAD=1
17710
17711
17712 GNULIB_FPRINTF=1
17713 GNULIB_PRINTF=1
17714 GNULIB_VFPRINTF=1
17715 GNULIB_VPRINTF=1
17716 GNULIB_FPUTC=1
17717 GNULIB_PUTC=1
17718 GNULIB_PUTCHAR=1
17719 GNULIB_FPUTS=1
17720 GNULIB_PUTS=1
17721 GNULIB_FWRITE=1
17722
17723
17724
17725
17726 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
17727 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17729 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17730 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17731 $as_echo_n "(cached) " >&6
17732 else
17733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17734 /* end confdefs.h. */
17735 #include <stdio.h>
17736
17737 int
17738 main ()
17739 {
17740 #undef $gl_func
17741 (void) $gl_func;
17742 ;
17743 return 0;
17744 }
17745 _ACEOF
17746 if ac_fn_c_try_compile "$LINENO"; then :
17747 eval "$as_gl_Symbol=yes"
17748 else
17749 eval "$as_gl_Symbol=no"
17750 fi
17751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17752 fi
17753 eval ac_res=\$$as_gl_Symbol
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17755 $as_echo "$ac_res" >&6; }
17756 eval as_val=\$$as_gl_Symbol
17757 if test "x$as_val" = x""yes; then :
17758 cat >>confdefs.h <<_ACEOF
17759 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17760 _ACEOF
17761
17762 eval ac_cv_have_decl_$gl_func=yes
17763 fi
17764 done
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777 if test $gl_cv_have_include_next = yes; then
17778 gl_cv_next_stdlib_h='<'stdlib.h'>'
17779 else
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
17781 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
17782 if test "${gl_cv_next_stdlib_h+set}" = set; then :
17783 $as_echo_n "(cached) " >&6
17784 else
17785
17786
17787
17788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17789 /* end confdefs.h. */
17790 #include <stdlib.h>
17791 _ACEOF
17792 case "$host_os" in
17793 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17794 *) gl_absname_cpp="$ac_cpp" ;;
17795 esac
17796
17797 case "$host_os" in
17798 mingw*)
17799 gl_dirsep_regex='[/\\]'
17800 ;;
17801 *)
17802 gl_dirsep_regex='\/'
17803 ;;
17804 esac
17805 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17806 gl_header_literal_regex=`echo 'stdlib.h' \
17807 | sed -e "$gl_make_literal_regex_sed"`
17808 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17809 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17810 s|^/[^/]|//&|
17811 p
17812 q
17813 }'
17814
17815 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17816 sed -n "$gl_absolute_header_sed"`
17817
17818 gl_header=$gl_cv_absolute_stdlib_h
17819 gl_cv_next_stdlib_h='"'$gl_header'"'
17820
17821
17822 fi
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
17824 $as_echo "$gl_cv_next_stdlib_h" >&6; }
17825 fi
17826 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
17827
17828 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17829 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17830 gl_next_as_first_directive='<'stdlib.h'>'
17831 else
17832 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17833 gl_next_as_first_directive=$gl_cv_next_stdlib_h
17834 fi
17835 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
17836
17837
17838
17839
17840
17841
17842 for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps posix_openpt ptsname ptsname_r qsort_r random random_r realpath rpmatch secure_getenv setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do
17843 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17845 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17846 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17847 $as_echo_n "(cached) " >&6
17848 else
17849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17850 /* end confdefs.h. */
17851 #include <stdlib.h>
17852 #if HAVE_SYS_LOADAVG_H
17853 # include <sys/loadavg.h>
17854 #endif
17855 #if HAVE_RANDOM_H
17856 # include <random.h>
17857 #endif
17858
17859 int
17860 main ()
17861 {
17862 #undef $gl_func
17863 (void) $gl_func;
17864 ;
17865 return 0;
17866 }
17867 _ACEOF
17868 if ac_fn_c_try_compile "$LINENO"; then :
17869 eval "$as_gl_Symbol=yes"
17870 else
17871 eval "$as_gl_Symbol=no"
17872 fi
17873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17874 fi
17875 eval ac_res=\$$as_gl_Symbol
17876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17877 $as_echo "$ac_res" >&6; }
17878 eval as_val=\$$as_gl_Symbol
17879 if test "x$as_val" = x""yes; then :
17880 cat >>confdefs.h <<_ACEOF
17881 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17882 _ACEOF
17883
17884 eval ac_cv_have_decl_$gl_func=yes
17885 fi
17886 done
17887
17888
17889
17890
17891
17892
17893 for ac_func in strchrnul
17894 do :
17895 ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
17896 if test "x$ac_cv_func_strchrnul" = x""yes; then :
17897 cat >>confdefs.h <<_ACEOF
17898 #define HAVE_STRCHRNUL 1
17899 _ACEOF
17900
17901 fi
17902 done
17903
17904 if test $ac_cv_func_strchrnul = no; then
17905 HAVE_STRCHRNUL=0
17906 else
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
17908 $as_echo_n "checking whether strchrnul works... " >&6; }
17909 if test "${gl_cv_func_strchrnul_works+set}" = set; then :
17910 $as_echo_n "(cached) " >&6
17911 else
17912 if test "$cross_compiling" = yes; then :
17913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17914 /* end confdefs.h. */
17915
17916 #if defined __CYGWIN__
17917 #include <cygwin/version.h>
17918 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
17919 Lucky user
17920 #endif
17921 #else
17922 Lucky user
17923 #endif
17924
17925 _ACEOF
17926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17927 $EGREP "Lucky user" >/dev/null 2>&1; then :
17928 gl_cv_func_strchrnul_works="guessing yes"
17929 else
17930 gl_cv_func_strchrnul_works="guessing no"
17931 fi
17932 rm -f conftest*
17933
17934
17935 else
17936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17937 /* end confdefs.h. */
17938
17939 #include <string.h> /* for strchrnul */
17940
17941 int
17942 main ()
17943 {
17944 const char *buf = "a";
17945 return strchrnul (buf, 'b') != buf + 1;
17946
17947 ;
17948 return 0;
17949 }
17950 _ACEOF
17951 if ac_fn_c_try_run "$LINENO"; then :
17952 gl_cv_func_strchrnul_works=yes
17953 else
17954 gl_cv_func_strchrnul_works=no
17955 fi
17956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17957 conftest.$ac_objext conftest.beam conftest.$ac_ext
17958 fi
17959
17960
17961 fi
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
17963 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
17964 case "$gl_cv_func_strchrnul_works" in
17965 *yes) ;;
17966 *) REPLACE_STRCHRNUL=1 ;;
17967 esac
17968 fi
17969
17970 if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
17971
17972
17973
17974
17975
17976
17977
17978
17979 gl_LIBOBJS="$gl_LIBOBJS strchrnul.$ac_objext"
17980
17981 :
17982 fi
17983
17984
17985
17986
17987
17988 GNULIB_STRCHRNUL=1
17989
17990
17991
17992
17993
17994 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
17995
17996
17997
17998
17999
18000
18001
18002
18003 if test $REPLACE_STRSTR = 0; then
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
18005 $as_echo_n "checking whether strstr works in linear time... " >&6; }
18006 if test "${gl_cv_func_strstr_linear+set}" = set; then :
18007 $as_echo_n "(cached) " >&6
18008 else
18009 if test "$cross_compiling" = yes; then :
18010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18011 /* end confdefs.h. */
18012
18013 #include <features.h>
18014 #ifdef __GNU_LIBRARY__
18015 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
18016 && !(defined __i386__ || defined __x86_64__) \
18017 && !defined __UCLIBC__
18018 Lucky user
18019 #endif
18020 #endif
18021 #ifdef __CYGWIN__
18022 #include <cygwin/version.h>
18023 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
18024 Lucky user
18025 #endif
18026 #endif
18027
18028 _ACEOF
18029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18030 $EGREP "Lucky user" >/dev/null 2>&1; then :
18031 gl_cv_func_strstr_linear="guessing yes"
18032 else
18033 gl_cv_func_strstr_linear="guessing no"
18034 fi
18035 rm -f conftest*
18036
18037
18038 else
18039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18040 /* end confdefs.h. */
18041
18042 #ifdef __MVS__
18043 /* z/OS does not deliver signals while strstr() is running (thanks to
18044 restrictions on its LE runtime), which prevents us from limiting the
18045 running time of this test. */
18046 # error "This test does not work properly on z/OS"
18047 #endif
18048 #include <signal.h> /* for signal */
18049 #include <string.h> /* for strstr */
18050 #include <stdlib.h> /* for malloc */
18051 #include <unistd.h> /* for alarm */
18052 static void quit (int sig) { _exit (sig + 128); }
18053
18054 int
18055 main ()
18056 {
18057
18058 int result = 0;
18059 size_t m = 1000000;
18060 char *haystack = (char *) malloc (2 * m + 2);
18061 char *needle = (char *) malloc (m + 2);
18062 /* Failure to compile this test due to missing alarm is okay,
18063 since all such platforms (mingw) also have quadratic strstr. */
18064 signal (SIGALRM, quit);
18065 alarm (5);
18066 /* Check for quadratic performance. */
18067 if (haystack && needle)
18068 {
18069 memset (haystack, 'A', 2 * m);
18070 haystack[2 * m] = 'B';
18071 haystack[2 * m + 1] = 0;
18072 memset (needle, 'A', m);
18073 needle[m] = 'B';
18074 needle[m + 1] = 0;
18075 if (!strstr (haystack, needle))
18076 result |= 1;
18077 }
18078 return result;
18079
18080 ;
18081 return 0;
18082 }
18083 _ACEOF
18084 if ac_fn_c_try_run "$LINENO"; then :
18085 gl_cv_func_strstr_linear=yes
18086 else
18087 gl_cv_func_strstr_linear=no
18088 fi
18089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18090 conftest.$ac_objext conftest.beam conftest.$ac_ext
18091 fi
18092
18093
18094 fi
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
18096 $as_echo "$gl_cv_func_strstr_linear" >&6; }
18097 case "$gl_cv_func_strstr_linear" in
18098 *yes) ;;
18099 *)
18100 REPLACE_STRSTR=1
18101 ;;
18102 esac
18103 fi
18104
18105 if test $REPLACE_STRSTR = 1; then
18106
18107
18108
18109
18110
18111
18112
18113
18114 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
18115
18116 fi
18117
18118
18119
18120 if test "$gl_cv_func_memchr_works" != yes; then
18121 REPLACE_STRSTR=1
18122 else
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
18124 $as_echo_n "checking whether strstr works... " >&6; }
18125 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
18126 $as_echo_n "(cached) " >&6
18127 else
18128 if test "$cross_compiling" = yes; then :
18129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18130 /* end confdefs.h. */
18131
18132 #ifdef __GNU_LIBRARY__
18133 #include <features.h>
18134 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
18135 || defined __UCLIBC__
18136 Lucky user
18137 #endif
18138 #elif defined __CYGWIN__
18139 #include <cygwin/version.h>
18140 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
18141 Lucky user
18142 #endif
18143 #else
18144 Lucky user
18145 #endif
18146
18147 _ACEOF
18148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18149 $EGREP "Lucky user" >/dev/null 2>&1; then :
18150 gl_cv_func_strstr_works_always="guessing yes"
18151 else
18152 gl_cv_func_strstr_works_always="guessing no"
18153 fi
18154 rm -f conftest*
18155
18156
18157 else
18158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18159 /* end confdefs.h. */
18160
18161 #include <string.h> /* for strstr */
18162 #define P "_EF_BF_BD"
18163 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
18164 #define NEEDLE P P P P P
18165
18166 int
18167 main ()
18168 {
18169 return !!strstr (HAYSTACK, NEEDLE);
18170
18171 ;
18172 return 0;
18173 }
18174 _ACEOF
18175 if ac_fn_c_try_run "$LINENO"; then :
18176 gl_cv_func_strstr_works_always=yes
18177 else
18178 gl_cv_func_strstr_works_always=no
18179 fi
18180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18181 conftest.$ac_objext conftest.beam conftest.$ac_ext
18182 fi
18183
18184
18185 fi
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
18187 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
18188 case "$gl_cv_func_strstr_works_always" in
18189 *yes) ;;
18190 *)
18191 REPLACE_STRSTR=1
18192 ;;
18193 esac
18194 fi
18195
18196 if test $REPLACE_STRSTR = 1; then
18197
18198
18199
18200
18201
18202
18203
18204
18205 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
18206
18207 fi
18208
18209
18210
18211
18212
18213 GNULIB_STRSTR=1
18214
18215
18216
18217
18218
18219 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
18220
18221
18222
18223
18224
18225
18226
18227 for ac_func in strtok_r
18228 do :
18229 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
18230 if test "x$ac_cv_func_strtok_r" = x""yes; then :
18231 cat >>confdefs.h <<_ACEOF
18232 #define HAVE_STRTOK_R 1
18233 _ACEOF
18234
18235 fi
18236 done
18237
18238 if test $ac_cv_func_strtok_r = yes; then
18239 HAVE_STRTOK_R=1
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
18241 $as_echo_n "checking whether strtok_r works... " >&6; }
18242 if test "${gl_cv_func_strtok_r_works+set}" = set; then :
18243 $as_echo_n "(cached) " >&6
18244 else
18245 if test "$cross_compiling" = yes; then :
18246
18247 case "$host_os" in
18248 # Guess no on glibc systems.
18249 *-gnu*) gl_cv_func_strtok_r_works="guessing no";;
18250 *) gl_cv_func_strtok_r_works="guessing yes";;
18251 esac
18252
18253 else
18254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18255 /* end confdefs.h. */
18256
18257 #ifndef __OPTIMIZE__
18258 # define __OPTIMIZE__ 1
18259 #endif
18260 #undef __OPTIMIZE_SIZE__
18261 #undef __NO_INLINE__
18262 #include <stdlib.h>
18263 #include <string.h>
18264
18265 int
18266 main ()
18267 {
18268 static const char dummy[] = "\177\01a";
18269 char delimiters[] = "xxxxxxxx";
18270 char *save_ptr = (char *) dummy;
18271 strtok_r (delimiters, "x", &save_ptr);
18272 strtok_r (NULL, "x", &save_ptr);
18273 return 0;
18274
18275 ;
18276 return 0;
18277 }
18278
18279 _ACEOF
18280 if ac_fn_c_try_run "$LINENO"; then :
18281 gl_cv_func_strtok_r_works=yes
18282 else
18283 gl_cv_func_strtok_r_works=no
18284 fi
18285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18286 conftest.$ac_objext conftest.beam conftest.$ac_ext
18287 fi
18288
18289
18290 fi
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
18292 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
18293 case "$gl_cv_func_strtok_r_works" in
18294 *no)
18295 UNDEFINE_STRTOK_R=1
18296 ;;
18297 esac
18298 else
18299 HAVE_STRTOK_R=0
18300 fi
18301
18302 if test $ac_cv_have_decl_strtok_r = no; then
18303 HAVE_DECL_STRTOK_R=0
18304 fi
18305
18306 if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
18307
18308
18309
18310
18311
18312
18313
18314
18315 gl_LIBOBJS="$gl_LIBOBJS strtok_r.$ac_objext"
18316
18317
18318 :
18319
18320 fi
18321
18322
18323
18324
18325
18326 GNULIB_STRTOK_R=1
18327
18328
18329
18330
18331
18332 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350 if test $gl_cv_have_include_next = yes; then
18351 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18352 else
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
18354 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
18355 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
18356 $as_echo_n "(cached) " >&6
18357 else
18358
18359 if test $ac_cv_header_sys_stat_h = yes; then
18360
18361
18362
18363
18364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18365 /* end confdefs.h. */
18366 #include <sys/stat.h>
18367 _ACEOF
18368 case "$host_os" in
18369 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18370 *) gl_absname_cpp="$ac_cpp" ;;
18371 esac
18372
18373 case "$host_os" in
18374 mingw*)
18375 gl_dirsep_regex='[/\\]'
18376 ;;
18377 *)
18378 gl_dirsep_regex='\/'
18379 ;;
18380 esac
18381 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18382 gl_header_literal_regex=`echo 'sys/stat.h' \
18383 | sed -e "$gl_make_literal_regex_sed"`
18384 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18385 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18386 s|^/[^/]|//&|
18387 p
18388 q
18389 }'
18390
18391 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18392 sed -n "$gl_absolute_header_sed"`
18393
18394 gl_header=$gl_cv_absolute_sys_stat_h
18395 gl_cv_next_sys_stat_h='"'$gl_header'"'
18396 else
18397 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18398 fi
18399
18400
18401 fi
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
18403 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
18404 fi
18405 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
18406
18407 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18408 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18409 gl_next_as_first_directive='<'sys/stat.h'>'
18410 else
18411 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18412 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
18413 fi
18414 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
18427
18428 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
18429
18430 fi
18431
18432 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
18433 #include <sys/stat.h>
18434 "
18435 if test "x$ac_cv_type_nlink_t" = x""yes; then :
18436
18437 else
18438
18439 $as_echo "#define nlink_t int" >>confdefs.h
18440
18441 fi
18442
18443
18444
18445 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
18446 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18448 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18449 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
18450 $as_echo_n "(cached) " >&6
18451 else
18452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18453 /* end confdefs.h. */
18454 #include <sys/stat.h>
18455
18456 int
18457 main ()
18458 {
18459 #undef $gl_func
18460 (void) $gl_func;
18461 ;
18462 return 0;
18463 }
18464 _ACEOF
18465 if ac_fn_c_try_compile "$LINENO"; then :
18466 eval "$as_gl_Symbol=yes"
18467 else
18468 eval "$as_gl_Symbol=no"
18469 fi
18470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18471 fi
18472 eval ac_res=\$$as_gl_Symbol
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18474 $as_echo "$ac_res" >&6; }
18475 eval as_val=\$$as_gl_Symbol
18476 if test "x$as_val" = x""yes; then :
18477 cat >>confdefs.h <<_ACEOF
18478 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18479 _ACEOF
18480
18481 eval ac_cv_have_decl_$gl_func=yes
18482 fi
18483 done
18484
18485
18486
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507
18508 if test $gl_cv_have_include_next = yes; then
18509 gl_cv_next_unistd_h='<'unistd.h'>'
18510 else
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
18512 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
18513 if test "${gl_cv_next_unistd_h+set}" = set; then :
18514 $as_echo_n "(cached) " >&6
18515 else
18516
18517 if test $ac_cv_header_unistd_h = yes; then
18518
18519
18520
18521
18522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18523 /* end confdefs.h. */
18524 #include <unistd.h>
18525 _ACEOF
18526 case "$host_os" in
18527 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18528 *) gl_absname_cpp="$ac_cpp" ;;
18529 esac
18530
18531 case "$host_os" in
18532 mingw*)
18533 gl_dirsep_regex='[/\\]'
18534 ;;
18535 *)
18536 gl_dirsep_regex='\/'
18537 ;;
18538 esac
18539 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18540 gl_header_literal_regex=`echo 'unistd.h' \
18541 | sed -e "$gl_make_literal_regex_sed"`
18542 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18543 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18544 s|^/[^/]|//&|
18545 p
18546 q
18547 }'
18548
18549 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18550 sed -n "$gl_absolute_header_sed"`
18551
18552 gl_header=$gl_cv_absolute_unistd_h
18553 gl_cv_next_unistd_h='"'$gl_header'"'
18554 else
18555 gl_cv_next_unistd_h='<'unistd.h'>'
18556 fi
18557
18558
18559 fi
18560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
18561 $as_echo "$gl_cv_next_unistd_h" >&6; }
18562 fi
18563 NEXT_UNISTD_H=$gl_cv_next_unistd_h
18564
18565 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18566 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18567 gl_next_as_first_directive='<'unistd.h'>'
18568 else
18569 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18570 gl_next_as_first_directive=$gl_cv_next_unistd_h
18571 fi
18572 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
18573
18574
18575
18576
18577 if test $ac_cv_header_unistd_h = yes; then
18578 HAVE_UNISTD_H=1
18579 else
18580 HAVE_UNISTD_H=0
18581 fi
18582
18583
18584
18585
18586
18587
18588
18589 for gl_func in chdir chown dup dup2 dup3 environ euidaccess faccessat fchdir fchownat fdatasync fsync ftruncate getcwd getdomainname getdtablesize getgroups gethostname getlogin getlogin_r getpagesize getusershell setusershell endusershell group_member isatty lchown link linkat lseek pipe pipe2 pread pwrite readlink readlinkat rmdir sethostname sleep symlink symlinkat ttyname_r unlink unlinkat usleep; do
18590 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18592 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18593 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
18594 $as_echo_n "(cached) " >&6
18595 else
18596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18597 /* end confdefs.h. */
18598
18599 #if HAVE_UNISTD_H
18600 # include <unistd.h>
18601 #endif
18602 /* Some systems declare various items in the wrong headers. */
18603 #if !(defined __GLIBC__ && !defined __UCLIBC__)
18604 # include <fcntl.h>
18605 # include <stdio.h>
18606 # include <stdlib.h>
18607 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18608 # include <io.h>
18609 # endif
18610 #endif
18611
18612 int
18613 main ()
18614 {
18615 #undef $gl_func
18616 (void) $gl_func;
18617 ;
18618 return 0;
18619 }
18620 _ACEOF
18621 if ac_fn_c_try_compile "$LINENO"; then :
18622 eval "$as_gl_Symbol=yes"
18623 else
18624 eval "$as_gl_Symbol=no"
18625 fi
18626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18627 fi
18628 eval ac_res=\$$as_gl_Symbol
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18630 $as_echo "$ac_res" >&6; }
18631 eval as_val=\$$as_gl_Symbol
18632 if test "x$as_val" = x""yes; then :
18633 cat >>confdefs.h <<_ACEOF
18634 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18635 _ACEOF
18636
18637 eval ac_cv_have_decl_$gl_func=yes
18638 fi
18639 done
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654 if test $gl_cv_have_include_next = yes; then
18655 gl_cv_next_wchar_h='<'wchar.h'>'
18656 else
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
18658 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
18659 if test "${gl_cv_next_wchar_h+set}" = set; then :
18660 $as_echo_n "(cached) " >&6
18661 else
18662
18663 if test $ac_cv_header_wchar_h = yes; then
18664
18665
18666
18667
18668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18669 /* end confdefs.h. */
18670 #include <wchar.h>
18671 _ACEOF
18672 case "$host_os" in
18673 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18674 *) gl_absname_cpp="$ac_cpp" ;;
18675 esac
18676
18677 case "$host_os" in
18678 mingw*)
18679 gl_dirsep_regex='[/\\]'
18680 ;;
18681 *)
18682 gl_dirsep_regex='\/'
18683 ;;
18684 esac
18685 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18686 gl_header_literal_regex=`echo 'wchar.h' \
18687 | sed -e "$gl_make_literal_regex_sed"`
18688 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18689 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18690 s|^/[^/]|//&|
18691 p
18692 q
18693 }'
18694
18695 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18696 sed -n "$gl_absolute_header_sed"`
18697
18698 gl_header=$gl_cv_absolute_wchar_h
18699 gl_cv_next_wchar_h='"'$gl_header'"'
18700 else
18701 gl_cv_next_wchar_h='<'wchar.h'>'
18702 fi
18703
18704
18705 fi
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
18707 $as_echo "$gl_cv_next_wchar_h" >&6; }
18708 fi
18709 NEXT_WCHAR_H=$gl_cv_next_wchar_h
18710
18711 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18712 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18713 gl_next_as_first_directive='<'wchar.h'>'
18714 else
18715 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18716 gl_next_as_first_directive=$gl_cv_next_wchar_h
18717 fi
18718 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
18719
18720
18721
18722
18723 if test $ac_cv_header_wchar_h = yes; then
18724 HAVE_WCHAR_H=1
18725 else
18726 HAVE_WCHAR_H=0
18727 fi
18728
18729
18730
18731
18732
18733 if test $gt_cv_c_wint_t = yes; then
18734 HAVE_WINT_T=1
18735 else
18736 HAVE_WINT_T=0
18737 fi
18738
18739
18740
18741 for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth ; do
18742 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18744 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18745 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
18746 $as_echo_n "(cached) " >&6
18747 else
18748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18749 /* end confdefs.h. */
18750
18751 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18752 <wchar.h>.
18753 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18754 included before <wchar.h>. */
18755 #if !(defined __GLIBC__ && !defined __UCLIBC__)
18756 # include <stddef.h>
18757 # include <stdio.h>
18758 # include <time.h>
18759 #endif
18760 #include <wchar.h>
18761
18762 int
18763 main ()
18764 {
18765 #undef $gl_func
18766 (void) $gl_func;
18767 ;
18768 return 0;
18769 }
18770 _ACEOF
18771 if ac_fn_c_try_compile "$LINENO"; then :
18772 eval "$as_gl_Symbol=yes"
18773 else
18774 eval "$as_gl_Symbol=no"
18775 fi
18776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18777 fi
18778 eval ac_res=\$$as_gl_Symbol
18779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18780 $as_echo "$ac_res" >&6; }
18781 eval as_val=\$$as_gl_Symbol
18782 if test "x$as_val" = x""yes; then :
18783 cat >>confdefs.h <<_ACEOF
18784 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18785 _ACEOF
18786
18787 eval ac_cv_have_decl_$gl_func=yes
18788 fi
18789 done
18790
18791
18792
18793
18794
18795
18796
18797 if test $ac_cv_func_iswcntrl = yes; then
18798 HAVE_ISWCNTRL=1
18799 else
18800 HAVE_ISWCNTRL=0
18801 fi
18802
18803
18804
18805 if test $gt_cv_c_wint_t = yes; then
18806 HAVE_WINT_T=1
18807 else
18808 HAVE_WINT_T=0
18809 fi
18810
18811
18812
18813
18814
18815
18816
18817
18818
18819
18820
18821 if test $gl_cv_have_include_next = yes; then
18822 gl_cv_next_wctype_h='<'wctype.h'>'
18823 else
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
18825 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
18826 if test "${gl_cv_next_wctype_h+set}" = set; then :
18827 $as_echo_n "(cached) " >&6
18828 else
18829
18830 if test $ac_cv_header_wctype_h = yes; then
18831
18832
18833
18834
18835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18836 /* end confdefs.h. */
18837 #include <wctype.h>
18838 _ACEOF
18839 case "$host_os" in
18840 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18841 *) gl_absname_cpp="$ac_cpp" ;;
18842 esac
18843
18844 case "$host_os" in
18845 mingw*)
18846 gl_dirsep_regex='[/\\]'
18847 ;;
18848 *)
18849 gl_dirsep_regex='\/'
18850 ;;
18851 esac
18852 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18853 gl_header_literal_regex=`echo 'wctype.h' \
18854 | sed -e "$gl_make_literal_regex_sed"`
18855 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18856 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18857 s|^/[^/]|//&|
18858 p
18859 q
18860 }'
18861
18862 gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18863 sed -n "$gl_absolute_header_sed"`
18864
18865 gl_header=$gl_cv_absolute_wctype_h
18866 gl_cv_next_wctype_h='"'$gl_header'"'
18867 else
18868 gl_cv_next_wctype_h='<'wctype.h'>'
18869 fi
18870
18871
18872 fi
18873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
18874 $as_echo "$gl_cv_next_wctype_h" >&6; }
18875 fi
18876 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
18877
18878 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18879 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18880 gl_next_as_first_directive='<'wctype.h'>'
18881 else
18882 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18883 gl_next_as_first_directive=$gl_cv_next_wctype_h
18884 fi
18885 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
18886
18887
18888
18889
18890 if test $ac_cv_header_wctype_h = yes; then
18891 if test $ac_cv_func_iswcntrl = yes; then
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
18893 $as_echo_n "checking whether iswcntrl works... " >&6; }
18894 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
18895 $as_echo_n "(cached) " >&6
18896 else
18897
18898 if test "$cross_compiling" = yes; then :
18899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18900 /* end confdefs.h. */
18901 #include <stdlib.h>
18902 #if __GNU_LIBRARY__ == 1
18903 Linux libc5 i18n is broken.
18904 #endif
18905 int
18906 main ()
18907 {
18908
18909 ;
18910 return 0;
18911 }
18912 _ACEOF
18913 if ac_fn_c_try_compile "$LINENO"; then :
18914 gl_cv_func_iswcntrl_works="guessing yes"
18915 else
18916 gl_cv_func_iswcntrl_works="guessing no"
18917 fi
18918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18919
18920 else
18921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18922 /* end confdefs.h. */
18923
18924 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18925 included before <wchar.h>.
18926 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18927 must be included before <wchar.h>. */
18928 #include <stddef.h>
18929 #include <stdio.h>
18930 #include <time.h>
18931 #include <wchar.h>
18932 #include <wctype.h>
18933 int main () { return iswprint ('x') == 0; }
18934
18935 _ACEOF
18936 if ac_fn_c_try_run "$LINENO"; then :
18937 gl_cv_func_iswcntrl_works=yes
18938 else
18939 gl_cv_func_iswcntrl_works=no
18940 fi
18941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18942 conftest.$ac_objext conftest.beam conftest.$ac_ext
18943 fi
18944
18945
18946 fi
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
18948 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
18949 fi
18950 HAVE_WCTYPE_H=1
18951 else
18952 HAVE_WCTYPE_H=0
18953 fi
18954
18955
18956 case "$gl_cv_func_iswcntrl_works" in
18957 *yes) REPLACE_ISWCNTRL=0 ;;
18958 *) REPLACE_ISWCNTRL=1 ;;
18959 esac
18960
18961
18962 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
18963 :
18964 fi
18965
18966 if test $REPLACE_ISWCNTRL = 1; then
18967 REPLACE_TOWLOWER=1
18968 else
18969 for ac_func in towlower
18970 do :
18971 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
18972 if test "x$ac_cv_func_towlower" = x""yes; then :
18973 cat >>confdefs.h <<_ACEOF
18974 #define HAVE_TOWLOWER 1
18975 _ACEOF
18976
18977 fi
18978 done
18979
18980 if test $ac_cv_func_towlower = yes; then
18981 REPLACE_TOWLOWER=0
18982 else
18983 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18984 included before <wchar.h>.
18985 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18986 must be included before <wchar.h>. */
18987 #include <stddef.h>
18988 #include <stdio.h>
18989 #include <time.h>
18990 #include <wchar.h>
18991 #if HAVE_WCTYPE_H
18992 # include <wctype.h>
18993 #endif
18994
18995 "
18996 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
18997 ac_have_decl=1
18998 else
18999 ac_have_decl=0
19000 fi
19001
19002 cat >>confdefs.h <<_ACEOF
19003 #define HAVE_DECL_TOWLOWER $ac_have_decl
19004 _ACEOF
19005
19006 if test $ac_cv_have_decl_towlower = yes; then
19007 REPLACE_TOWLOWER=1
19008 else
19009 REPLACE_TOWLOWER=0
19010 fi
19011 fi
19012 fi
19013
19014
19015 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
19016 :
19017 fi
19018
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
19020 $as_echo_n "checking for wctype_t... " >&6; }
19021 if test "${gl_cv_type_wctype_t+set}" = set; then :
19022 $as_echo_n "(cached) " >&6
19023 else
19024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19025 /* end confdefs.h. */
19026 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
19027 included before <wchar.h>.
19028 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
19029 must be included before <wchar.h>. */
19030 #include <stddef.h>
19031 #include <stdio.h>
19032 #include <time.h>
19033 #include <wchar.h>
19034 #if HAVE_WCTYPE_H
19035 # include <wctype.h>
19036 #endif
19037 wctype_t a;
19038
19039 int
19040 main ()
19041 {
19042
19043 ;
19044 return 0;
19045 }
19046 _ACEOF
19047 if ac_fn_c_try_compile "$LINENO"; then :
19048 gl_cv_type_wctype_t=yes
19049 else
19050 gl_cv_type_wctype_t=no
19051 fi
19052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19053
19054 fi
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
19056 $as_echo "$gl_cv_type_wctype_t" >&6; }
19057 if test $gl_cv_type_wctype_t = no; then
19058 HAVE_WCTYPE_T=0
19059 fi
19060
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
19062 $as_echo_n "checking for wctrans_t... " >&6; }
19063 if test "${gl_cv_type_wctrans_t+set}" = set; then :
19064 $as_echo_n "(cached) " >&6
19065 else
19066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19067 /* end confdefs.h. */
19068 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
19069 included before <wchar.h>.
19070 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
19071 must be included before <wchar.h>. */
19072 #include <stddef.h>
19073 #include <stdio.h>
19074 #include <time.h>
19075 #include <wchar.h>
19076 #include <wctype.h>
19077 wctrans_t a;
19078
19079 int
19080 main ()
19081 {
19082
19083 ;
19084 return 0;
19085 }
19086 _ACEOF
19087 if ac_fn_c_try_compile "$LINENO"; then :
19088 gl_cv_type_wctrans_t=yes
19089 else
19090 gl_cv_type_wctrans_t=no
19091 fi
19092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19093
19094 fi
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
19096 $as_echo "$gl_cv_type_wctrans_t" >&6; }
19097 if test $gl_cv_type_wctrans_t = no; then
19098 HAVE_WCTRANS_T=0
19099 fi
19100
19101
19102 for gl_func in wctype iswctype wctrans towctrans ; do
19103 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19105 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19106 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
19107 $as_echo_n "(cached) " >&6
19108 else
19109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19110 /* end confdefs.h. */
19111
19112 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19113 <wchar.h>.
19114 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19115 included before <wchar.h>. */
19116 #if !(defined __GLIBC__ && !defined __UCLIBC__)
19117 # include <stddef.h>
19118 # include <stdio.h>
19119 # include <time.h>
19120 # include <wchar.h>
19121 #endif
19122 #include <wctype.h>
19123
19124 int
19125 main ()
19126 {
19127 #undef $gl_func
19128 (void) $gl_func;
19129 ;
19130 return 0;
19131 }
19132 _ACEOF
19133 if ac_fn_c_try_compile "$LINENO"; then :
19134 eval "$as_gl_Symbol=yes"
19135 else
19136 eval "$as_gl_Symbol=no"
19137 fi
19138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19139 fi
19140 eval ac_res=\$$as_gl_Symbol
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19142 $as_echo "$ac_res" >&6; }
19143 eval as_val=\$$as_gl_Symbol
19144 if test "x$as_val" = x""yes; then :
19145 cat >>confdefs.h <<_ACEOF
19146 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19147 _ACEOF
19148
19149 eval ac_cv_have_decl_$gl_func=yes
19150 fi
19151 done
19152
19153
19154 # End of code from modules
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164 gltests_libdeps=
19165 gltests_ltlibdeps=
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175 gl_source_base='tests'
19176 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
19177
19178 gl_module_indicator_condition=$gltests_WITNESS
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188 LIBGNU_LIBDEPS="$gl_libdeps"
19189
19190 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
19191
19192
19193
19194 # We don't use automake, but gnulib does. This line lets us generate
19195 # its Makefile.in.
19196 am__api_version='1.11'
19197
19198 # Find a good install program. We prefer a C program (faster),
19199 # so one script is as good as another. But avoid the broken or
19200 # incompatible versions:
19201 # SysV /etc/install, /usr/sbin/install
19202 # SunOS /usr/etc/install
19203 # IRIX /sbin/install
19204 # AIX /bin/install
19205 # AmigaOS /C/install, which installs bootblocks on floppy discs
19206 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19207 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19208 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19209 # OS/2's system install, which has a completely different semantic
19210 # ./install, which can be erroneously created by make from ./install.sh.
19211 # Reject install programs that cannot install multiple files.
19212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
19213 $as_echo_n "checking for a BSD-compatible install... " >&6; }
19214 if test -z "$INSTALL"; then
19215 if test "${ac_cv_path_install+set}" = set; then :
19216 $as_echo_n "(cached) " >&6
19217 else
19218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19219 for as_dir in $PATH
19220 do
19221 IFS=$as_save_IFS
19222 test -z "$as_dir" && as_dir=.
19223 # Account for people who put trailing slashes in PATH elements.
19224 case $as_dir/ in #((
19225 ./ | .// | /[cC]/* | \
19226 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19227 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
19228 /usr/ucb/* ) ;;
19229 *)
19230 # OSF1 and SCO ODT 3.0 have their own names for install.
19231 # Don't use installbsd from OSF since it installs stuff as root
19232 # by default.
19233 for ac_prog in ginstall scoinst install; do
19234 for ac_exec_ext in '' $ac_executable_extensions; do
19235 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19236 if test $ac_prog = install &&
19237 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19238 # AIX install. It has an incompatible calling convention.
19239 :
19240 elif test $ac_prog = install &&
19241 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19242 # program-specific install script used by HP pwplus--don't use.
19243 :
19244 else
19245 rm -rf conftest.one conftest.two conftest.dir
19246 echo one > conftest.one
19247 echo two > conftest.two
19248 mkdir conftest.dir
19249 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
19250 test -s conftest.one && test -s conftest.two &&
19251 test -s conftest.dir/conftest.one &&
19252 test -s conftest.dir/conftest.two
19253 then
19254 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19255 break 3
19256 fi
19257 fi
19258 fi
19259 done
19260 done
19261 ;;
19262 esac
19263
19264 done
19265 IFS=$as_save_IFS
19266
19267 rm -rf conftest.one conftest.two conftest.dir
19268
19269 fi
19270 if test "${ac_cv_path_install+set}" = set; then
19271 INSTALL=$ac_cv_path_install
19272 else
19273 # As a last resort, use the slow shell script. Don't cache a
19274 # value for INSTALL within a source directory, because that will
19275 # break other packages using the cache if that directory is
19276 # removed, or if the value is a relative name.
19277 INSTALL=$ac_install_sh
19278 fi
19279 fi
19280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
19281 $as_echo "$INSTALL" >&6; }
19282
19283 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19284 # It thinks the first close brace ends the variable substitution.
19285 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19286
19287 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19288
19289 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19290
19291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
19292 $as_echo_n "checking whether build environment is sane... " >&6; }
19293 # Just in case
19294 sleep 1
19295 echo timestamp > conftest.file
19296 # Reject unsafe characters in $srcdir or the absolute working directory
19297 # name. Accept space and tab only in the latter.
19298 am_lf='
19299 '
19300 case `pwd` in
19301 *[\\\"\#\$\&\'\`$am_lf]*)
19302 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
19303 esac
19304 case $srcdir in
19305 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
19306 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
19307 esac
19308
19309 # Do `set' in a subshell so we don't clobber the current shell's
19310 # arguments. Must try -L first in case configure is actually a
19311 # symlink; some systems play weird games with the mod time of symlinks
19312 # (eg FreeBSD returns the mod time of the symlink's containing
19313 # directory).
19314 if (
19315 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
19316 if test "$*" = "X"; then
19317 # -L didn't work.
19318 set X `ls -t "$srcdir/configure" conftest.file`
19319 fi
19320 rm -f conftest.file
19321 if test "$*" != "X $srcdir/configure conftest.file" \
19322 && test "$*" != "X conftest.file $srcdir/configure"; then
19323
19324 # If neither matched, then we have a broken ls. This can happen
19325 # if, for instance, CONFIG_SHELL is bash and it inherits a
19326 # broken ls alias from the environment. This has actually
19327 # happened. Such a system could not be considered "sane".
19328 as_fn_error "ls -t appears to fail. Make sure there is not a broken
19329 alias in your environment" "$LINENO" 5
19330 fi
19331
19332 test "$2" = conftest.file
19333 )
19334 then
19335 # Ok.
19336 :
19337 else
19338 as_fn_error "newly created file is older than distributed files!
19339 Check your system clock" "$LINENO" 5
19340 fi
19341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19342 $as_echo "yes" >&6; }
19343 test "$program_prefix" != NONE &&
19344 program_transform_name="s&^&$program_prefix&;$program_transform_name"
19345 # Use a double $ so make ignores it.
19346 test "$program_suffix" != NONE &&
19347 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
19348 # Double any \ or $.
19349 # By default was `s,x,x', remove it if useless.
19350 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
19351 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
19352
19353 # expand $ac_aux_dir to an absolute path
19354 am_aux_dir=`cd $ac_aux_dir && pwd`
19355
19356 if test x"${MISSING+set}" != xset; then
19357 case $am_aux_dir in
19358 *\ * | *\ *)
19359 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
19360 *)
19361 MISSING="\${SHELL} $am_aux_dir/missing" ;;
19362 esac
19363 fi
19364 # Use eval to expand $SHELL
19365 if eval "$MISSING --run true"; then
19366 am_missing_run="$MISSING --run "
19367 else
19368 am_missing_run=
19369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
19370 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
19371 fi
19372
19373 if test x"${install_sh}" != xset; then
19374 case $am_aux_dir in
19375 *\ * | *\ *)
19376 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
19377 *)
19378 install_sh="\${SHELL} $am_aux_dir/install-sh"
19379 esac
19380 fi
19381
19382 # Installed binaries are usually stripped using `strip' when the user
19383 # run `make install-strip'. However `strip' might not be the right
19384 # tool to use in cross-compilation environments, therefore Automake
19385 # will honor the `STRIP' environment variable to overrule this program.
19386 if test "$cross_compiling" != no; then
19387 if test -n "$ac_tool_prefix"; then
19388 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19389 set dummy ${ac_tool_prefix}strip; ac_word=$2
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19391 $as_echo_n "checking for $ac_word... " >&6; }
19392 if test "${ac_cv_prog_STRIP+set}" = set; then :
19393 $as_echo_n "(cached) " >&6
19394 else
19395 if test -n "$STRIP"; then
19396 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
19397 else
19398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19399 for as_dir in $PATH
19400 do
19401 IFS=$as_save_IFS
19402 test -z "$as_dir" && as_dir=.
19403 for ac_exec_ext in '' $ac_executable_extensions; do
19404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19405 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
19406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19407 break 2
19408 fi
19409 done
19410 done
19411 IFS=$as_save_IFS
19412
19413 fi
19414 fi
19415 STRIP=$ac_cv_prog_STRIP
19416 if test -n "$STRIP"; then
19417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
19418 $as_echo "$STRIP" >&6; }
19419 else
19420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19421 $as_echo "no" >&6; }
19422 fi
19423
19424
19425 fi
19426 if test -z "$ac_cv_prog_STRIP"; then
19427 ac_ct_STRIP=$STRIP
19428 # Extract the first word of "strip", so it can be a program name with args.
19429 set dummy strip; ac_word=$2
19430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19431 $as_echo_n "checking for $ac_word... " >&6; }
19432 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
19433 $as_echo_n "(cached) " >&6
19434 else
19435 if test -n "$ac_ct_STRIP"; then
19436 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
19437 else
19438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19439 for as_dir in $PATH
19440 do
19441 IFS=$as_save_IFS
19442 test -z "$as_dir" && as_dir=.
19443 for ac_exec_ext in '' $ac_executable_extensions; do
19444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19445 ac_cv_prog_ac_ct_STRIP="strip"
19446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19447 break 2
19448 fi
19449 done
19450 done
19451 IFS=$as_save_IFS
19452
19453 fi
19454 fi
19455 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
19456 if test -n "$ac_ct_STRIP"; then
19457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
19458 $as_echo "$ac_ct_STRIP" >&6; }
19459 else
19460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19461 $as_echo "no" >&6; }
19462 fi
19463
19464 if test "x$ac_ct_STRIP" = x; then
19465 STRIP=":"
19466 else
19467 case $cross_compiling:$ac_tool_warned in
19468 yes:)
19469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19471 ac_tool_warned=yes ;;
19472 esac
19473 STRIP=$ac_ct_STRIP
19474 fi
19475 else
19476 STRIP="$ac_cv_prog_STRIP"
19477 fi
19478
19479 fi
19480 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
19481
19482 mkdir_p="$MKDIR_P"
19483 case $mkdir_p in
19484 [\\/$]* | ?:[\\/]*) ;;
19485 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
19486 esac
19487
19488 for ac_prog in gawk mawk nawk awk
19489 do
19490 # Extract the first word of "$ac_prog", so it can be a program name with args.
19491 set dummy $ac_prog; ac_word=$2
19492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19493 $as_echo_n "checking for $ac_word... " >&6; }
19494 if test "${ac_cv_prog_AWK+set}" = set; then :
19495 $as_echo_n "(cached) " >&6
19496 else
19497 if test -n "$AWK"; then
19498 ac_cv_prog_AWK="$AWK" # Let the user override the test.
19499 else
19500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19501 for as_dir in $PATH
19502 do
19503 IFS=$as_save_IFS
19504 test -z "$as_dir" && as_dir=.
19505 for ac_exec_ext in '' $ac_executable_extensions; do
19506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19507 ac_cv_prog_AWK="$ac_prog"
19508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19509 break 2
19510 fi
19511 done
19512 done
19513 IFS=$as_save_IFS
19514
19515 fi
19516 fi
19517 AWK=$ac_cv_prog_AWK
19518 if test -n "$AWK"; then
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
19520 $as_echo "$AWK" >&6; }
19521 else
19522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19523 $as_echo "no" >&6; }
19524 fi
19525
19526
19527 test -n "$AWK" && break
19528 done
19529
19530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19531 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
19532 set x ${MAKE-make}
19533 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
19534 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
19535 $as_echo_n "(cached) " >&6
19536 else
19537 cat >conftest.make <<\_ACEOF
19538 SHELL = /bin/sh
19539 all:
19540 @echo '@@@%%%=$(MAKE)=@@@%%%'
19541 _ACEOF
19542 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19543 case `${MAKE-make} -f conftest.make 2>/dev/null` in
19544 *@@@%%%=?*=@@@%%%*)
19545 eval ac_cv_prog_make_${ac_make}_set=yes;;
19546 *)
19547 eval ac_cv_prog_make_${ac_make}_set=no;;
19548 esac
19549 rm -f conftest.make
19550 fi
19551 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19553 $as_echo "yes" >&6; }
19554 SET_MAKE=
19555 else
19556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19557 $as_echo "no" >&6; }
19558 SET_MAKE="MAKE=${MAKE-make}"
19559 fi
19560
19561 rm -rf .tst 2>/dev/null
19562 mkdir .tst 2>/dev/null
19563 if test -d .tst; then
19564 am__leading_dot=.
19565 else
19566 am__leading_dot=_
19567 fi
19568 rmdir .tst 2>/dev/null
19569
19570 DEPDIR="${am__leading_dot}deps"
19571
19572 ac_config_commands="$ac_config_commands depfiles"
19573
19574
19575 am_make=${MAKE-make}
19576 cat > confinc << 'END'
19577 am__doit:
19578 @echo this is the am__doit target
19579 .PHONY: am__doit
19580 END
19581 # If we don't find an include directive, just comment out the code.
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
19583 $as_echo_n "checking for style of include used by $am_make... " >&6; }
19584 am__include="#"
19585 am__quote=
19586 _am_result=none
19587 # First try GNU make style include.
19588 echo "include confinc" > confmf
19589 # Ignore all kinds of additional output from `make'.
19590 case `$am_make -s -f confmf 2> /dev/null` in #(
19591 *the\ am__doit\ target*)
19592 am__include=include
19593 am__quote=
19594 _am_result=GNU
19595 ;;
19596 esac
19597 # Now try BSD make style include.
19598 if test "$am__include" = "#"; then
19599 echo '.include "confinc"' > confmf
19600 case `$am_make -s -f confmf 2> /dev/null` in #(
19601 *the\ am__doit\ target*)
19602 am__include=.include
19603 am__quote="\""
19604 _am_result=BSD
19605 ;;
19606 esac
19607 fi
19608
19609
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
19611 $as_echo "$_am_result" >&6; }
19612 rm -f confinc confmf
19613
19614 # Check whether --enable-dependency-tracking was given.
19615 if test "${enable_dependency_tracking+set}" = set; then :
19616 enableval=$enable_dependency_tracking;
19617 fi
19618
19619 if test "x$enable_dependency_tracking" != xno; then
19620 am_depcomp="$ac_aux_dir/depcomp"
19621 AMDEPBACKSLASH='\'
19622 fi
19623 if test "x$enable_dependency_tracking" != xno; then
19624 AMDEP_TRUE=
19625 AMDEP_FALSE='#'
19626 else
19627 AMDEP_TRUE='#'
19628 AMDEP_FALSE=
19629 fi
19630
19631
19632 if test "`cd $srcdir && pwd`" != "`pwd`"; then
19633 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
19634 # is not polluted with repeated "-I."
19635 am__isrc=' -I$(srcdir)'
19636 # test to see if srcdir already configured
19637 if test -f $srcdir/config.status; then
19638 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
19639 fi
19640 fi
19641
19642 # test whether we have cygpath
19643 if test -z "$CYGPATH_W"; then
19644 if (cygpath --version) >/dev/null 2>/dev/null; then
19645 CYGPATH_W='cygpath -w'
19646 else
19647 CYGPATH_W=echo
19648 fi
19649 fi
19650
19651
19652 # Define the identity of the package.
19653 PACKAGE=libgnu
19654 VERSION=UNUSED-VERSION
19655
19656
19657 # Some tools Automake needs.
19658
19659 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
19660
19661
19662 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19663
19664
19665 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
19666
19667
19668 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19669
19670
19671 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
19672
19673 # We need awk for the "check" target. The system "awk" is bad on
19674 # some platforms.
19675 # Always define AMTAR for backward compatibility.
19676
19677 AMTAR=${AMTAR-"${am_missing_run}tar"}
19678
19679 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
19680
19681
19682
19683
19684 depcc="$CC" am_compiler_list=
19685
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
19687 $as_echo_n "checking dependency style of $depcc... " >&6; }
19688 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
19689 $as_echo_n "(cached) " >&6
19690 else
19691 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19692 # We make a subdir and do the tests there. Otherwise we can end up
19693 # making bogus files that we don't know about and never remove. For
19694 # instance it was reported that on HP-UX the gcc test will end up
19695 # making a dummy file named `D' -- because `-MD' means `put the output
19696 # in D'.
19697 mkdir conftest.dir
19698 # Copy depcomp to subdir because otherwise we won't find it if we're
19699 # using a relative directory.
19700 cp "$am_depcomp" conftest.dir
19701 cd conftest.dir
19702 # We will build objects and dependencies in a subdirectory because
19703 # it helps to detect inapplicable dependency modes. For instance
19704 # both Tru64's cc and ICC support -MD to output dependencies as a
19705 # side effect of compilation, but ICC will put the dependencies in
19706 # the current directory while Tru64 will put them in the object
19707 # directory.
19708 mkdir sub
19709
19710 am_cv_CC_dependencies_compiler_type=none
19711 if test "$am_compiler_list" = ""; then
19712 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19713 fi
19714 am__universal=false
19715 case " $depcc " in #(
19716 *\ -arch\ *\ -arch\ *) am__universal=true ;;
19717 esac
19718
19719 for depmode in $am_compiler_list; do
19720 # Setup a source with many dependencies, because some compilers
19721 # like to wrap large dependency lists on column 80 (with \), and
19722 # we should not choose a depcomp mode which is confused by this.
19723 #
19724 # We need to recreate these files for each test, as the compiler may
19725 # overwrite some of them when testing with obscure command lines.
19726 # This happens at least with the AIX C compiler.
19727 : > sub/conftest.c
19728 for i in 1 2 3 4 5 6; do
19729 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19730 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19731 # Solaris 8's {/usr,}/bin/sh.
19732 touch sub/conftst$i.h
19733 done
19734 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19735
19736 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19737 # mode. It turns out that the SunPro C++ compiler does not properly
19738 # handle `-M -o', and we need to detect this. Also, some Intel
19739 # versions had trouble with output in subdirs
19740 am__obj=sub/conftest.${OBJEXT-o}
19741 am__minus_obj="-o $am__obj"
19742 case $depmode in
19743 gcc)
19744 # This depmode causes a compiler race in universal mode.
19745 test "$am__universal" = false || continue
19746 ;;
19747 nosideeffect)
19748 # after this tag, mechanisms are not by side-effect, so they'll
19749 # only be used when explicitly requested
19750 if test "x$enable_dependency_tracking" = xyes; then
19751 continue
19752 else
19753 break
19754 fi
19755 ;;
19756 msvisualcpp | msvcmsys)
19757 # This compiler won't grok `-c -o', but also, the minuso test has
19758 # not run yet. These depmodes are late enough in the game, and
19759 # so weak that their functioning should not be impacted.
19760 am__obj=conftest.${OBJEXT-o}
19761 am__minus_obj=
19762 ;;
19763 none) break ;;
19764 esac
19765 if depmode=$depmode \
19766 source=sub/conftest.c object=$am__obj \
19767 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19768 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
19769 >/dev/null 2>conftest.err &&
19770 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19771 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19772 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
19773 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19774 # icc doesn't choke on unknown options, it will just issue warnings
19775 # or remarks (even with -Werror). So we grep stderr for any message
19776 # that says an option was ignored or not supported.
19777 # When given -MP, icc 7.0 and 7.1 complain thusly:
19778 # icc: Command line warning: ignoring option '-M'; no argument required
19779 # The diagnosis changed in icc 8.0:
19780 # icc: Command line remark: option '-MP' not supported
19781 if (grep 'ignoring option' conftest.err ||
19782 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19783 am_cv_CC_dependencies_compiler_type=$depmode
19784 break
19785 fi
19786 fi
19787 done
19788
19789 cd ..
19790 rm -rf conftest.dir
19791 else
19792 am_cv_CC_dependencies_compiler_type=none
19793 fi
19794
19795 fi
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
19797 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
19798 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19799
19800 if
19801 test "x$enable_dependency_tracking" != xno \
19802 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19803 am__fastdepCC_TRUE=
19804 am__fastdepCC_FALSE='#'
19805 else
19806 am__fastdepCC_TRUE='#'
19807 am__fastdepCC_FALSE=
19808 fi
19809
19810
19811
19812
19813 # --------------------- #
19814 # Checks for programs. #
19815 # --------------------- #
19816
19817
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
19819 $as_echo_n "checking whether ln -s works... " >&6; }
19820 LN_S=$as_ln_s
19821 if test "$LN_S" = "ln -s"; then
19822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19823 $as_echo "yes" >&6; }
19824 else
19825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
19826 $as_echo "no, using $LN_S" >&6; }
19827 fi
19828
19829 if test -n "$ac_tool_prefix"; then
19830 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19831 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19833 $as_echo_n "checking for $ac_word... " >&6; }
19834 if test "${ac_cv_prog_RANLIB+set}" = set; then :
19835 $as_echo_n "(cached) " >&6
19836 else
19837 if test -n "$RANLIB"; then
19838 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19839 else
19840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19841 for as_dir in $PATH
19842 do
19843 IFS=$as_save_IFS
19844 test -z "$as_dir" && as_dir=.
19845 for ac_exec_ext in '' $ac_executable_extensions; do
19846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19847 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19849 break 2
19850 fi
19851 done
19852 done
19853 IFS=$as_save_IFS
19854
19855 fi
19856 fi
19857 RANLIB=$ac_cv_prog_RANLIB
19858 if test -n "$RANLIB"; then
19859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19860 $as_echo "$RANLIB" >&6; }
19861 else
19862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19863 $as_echo "no" >&6; }
19864 fi
19865
19866
19867 fi
19868 if test -z "$ac_cv_prog_RANLIB"; then
19869 ac_ct_RANLIB=$RANLIB
19870 # Extract the first word of "ranlib", so it can be a program name with args.
19871 set dummy ranlib; ac_word=$2
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19873 $as_echo_n "checking for $ac_word... " >&6; }
19874 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
19875 $as_echo_n "(cached) " >&6
19876 else
19877 if test -n "$ac_ct_RANLIB"; then
19878 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19879 else
19880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19881 for as_dir in $PATH
19882 do
19883 IFS=$as_save_IFS
19884 test -z "$as_dir" && as_dir=.
19885 for ac_exec_ext in '' $ac_executable_extensions; do
19886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19887 ac_cv_prog_ac_ct_RANLIB="ranlib"
19888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19889 break 2
19890 fi
19891 done
19892 done
19893 IFS=$as_save_IFS
19894
19895 fi
19896 fi
19897 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19898 if test -n "$ac_ct_RANLIB"; then
19899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19900 $as_echo "$ac_ct_RANLIB" >&6; }
19901 else
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19903 $as_echo "no" >&6; }
19904 fi
19905
19906 if test "x$ac_ct_RANLIB" = x; then
19907 RANLIB=":"
19908 else
19909 case $cross_compiling:$ac_tool_warned in
19910 yes:)
19911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19913 ac_tool_warned=yes ;;
19914 esac
19915 RANLIB=$ac_ct_RANLIB
19916 fi
19917 else
19918 RANLIB="$ac_cv_prog_RANLIB"
19919 fi
19920
19921
19922 if test -n "$ac_tool_prefix"; then
19923 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19924 set dummy ${ac_tool_prefix}ar; ac_word=$2
19925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19926 $as_echo_n "checking for $ac_word... " >&6; }
19927 if test "${ac_cv_prog_AR+set}" = set; then :
19928 $as_echo_n "(cached) " >&6
19929 else
19930 if test -n "$AR"; then
19931 ac_cv_prog_AR="$AR" # Let the user override the test.
19932 else
19933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19934 for as_dir in $PATH
19935 do
19936 IFS=$as_save_IFS
19937 test -z "$as_dir" && as_dir=.
19938 for ac_exec_ext in '' $ac_executable_extensions; do
19939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19940 ac_cv_prog_AR="${ac_tool_prefix}ar"
19941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19942 break 2
19943 fi
19944 done
19945 done
19946 IFS=$as_save_IFS
19947
19948 fi
19949 fi
19950 AR=$ac_cv_prog_AR
19951 if test -n "$AR"; then
19952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
19953 $as_echo "$AR" >&6; }
19954 else
19955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19956 $as_echo "no" >&6; }
19957 fi
19958
19959
19960 fi
19961 if test -z "$ac_cv_prog_AR"; then
19962 ac_ct_AR=$AR
19963 # Extract the first word of "ar", so it can be a program name with args.
19964 set dummy ar; ac_word=$2
19965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19966 $as_echo_n "checking for $ac_word... " >&6; }
19967 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
19968 $as_echo_n "(cached) " >&6
19969 else
19970 if test -n "$ac_ct_AR"; then
19971 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
19972 else
19973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19974 for as_dir in $PATH
19975 do
19976 IFS=$as_save_IFS
19977 test -z "$as_dir" && as_dir=.
19978 for ac_exec_ext in '' $ac_executable_extensions; do
19979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19980 ac_cv_prog_ac_ct_AR="ar"
19981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19982 break 2
19983 fi
19984 done
19985 done
19986 IFS=$as_save_IFS
19987
19988 fi
19989 fi
19990 ac_ct_AR=$ac_cv_prog_ac_ct_AR
19991 if test -n "$ac_ct_AR"; then
19992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
19993 $as_echo "$ac_ct_AR" >&6; }
19994 else
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19996 $as_echo "no" >&6; }
19997 fi
19998
19999 if test "x$ac_ct_AR" = x; then
20000 AR=""
20001 else
20002 case $cross_compiling:$ac_tool_warned in
20003 yes:)
20004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20006 ac_tool_warned=yes ;;
20007 esac
20008 AR=$ac_ct_AR
20009 fi
20010 else
20011 AR="$ac_cv_prog_AR"
20012 fi
20013
20014
20015 # ---------------------- #
20016 # Checks for libraries. #
20017 # ---------------------- #
20018
20019 ac_config_files="$ac_config_files Makefile import/Makefile"
20020
20021 ac_config_commands="$ac_config_commands default"
20022
20023 cat >confcache <<\_ACEOF
20024 # This file is a shell script that caches the results of configure
20025 # tests run on this system so they can be shared between configure
20026 # scripts and configure runs, see configure's option --config-cache.
20027 # It is not useful on other systems. If it contains results you don't
20028 # want to keep, you may remove or edit it.
20029 #
20030 # config.status only pays attention to the cache file if you give it
20031 # the --recheck option to rerun configure.
20032 #
20033 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20034 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20035 # following values.
20036
20037 _ACEOF
20038
20039 # The following way of writing the cache mishandles newlines in values,
20040 # but we know of no workaround that is simple, portable, and efficient.
20041 # So, we kill variables containing newlines.
20042 # Ultrix sh set writes to stderr and can't be redirected directly,
20043 # and sets the high bit in the cache file unless we assign to the vars.
20044 (
20045 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20046 eval ac_val=\$$ac_var
20047 case $ac_val in #(
20048 *${as_nl}*)
20049 case $ac_var in #(
20050 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20051 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20052 esac
20053 case $ac_var in #(
20054 _ | IFS | as_nl) ;; #(
20055 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20056 *) { eval $ac_var=; unset $ac_var;} ;;
20057 esac ;;
20058 esac
20059 done
20060
20061 (set) 2>&1 |
20062 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20063 *${as_nl}ac_space=\ *)
20064 # `set' does not quote correctly, so add quotes: double-quote
20065 # substitution turns \\\\ into \\, and sed turns \\ into \.
20066 sed -n \
20067 "s/'/'\\\\''/g;
20068 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20069 ;; #(
20070 *)
20071 # `set' quotes correctly as required by POSIX, so do not add quotes.
20072 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20073 ;;
20074 esac |
20075 sort
20076 ) |
20077 sed '
20078 /^ac_cv_env_/b end
20079 t clear
20080 :clear
20081 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20082 t end
20083 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20084 :end' >>confcache
20085 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20086 if test -w "$cache_file"; then
20087 test "x$cache_file" != "x/dev/null" &&
20088 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20089 $as_echo "$as_me: updating cache $cache_file" >&6;}
20090 cat confcache >$cache_file
20091 else
20092 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20093 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20094 fi
20095 fi
20096 rm -f confcache
20097
20098 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20099 # Let make expand exec_prefix.
20100 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20101
20102 DEFS=-DHAVE_CONFIG_H
20103
20104 ac_libobjs=
20105 ac_ltlibobjs=
20106 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20107 # 1. Remove the extension, and $U if already installed.
20108 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20109 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20110 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20111 # will be set to the directory where LIBOBJS objects are built.
20112 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20113 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20114 done
20115 LIBOBJS=$ac_libobjs
20116
20117 LTLIBOBJS=$ac_ltlibobjs
20118
20119
20120 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20121 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
20122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20123 fi
20124 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
20125 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
20126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20127 fi
20128 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
20129 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
20130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20131 fi
20132 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
20133 as_fn_error "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
20134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20135 fi
20136 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
20137 as_fn_error "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
20138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20139 fi
20140 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
20141 as_fn_error "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
20142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20143 fi
20144 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
20145 as_fn_error "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
20146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20147 fi
20148 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
20149 as_fn_error "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
20150 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20151 fi
20152 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
20153 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
20154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20155 fi
20156
20157
20158 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
20159 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
20160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20161 fi
20162 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
20163 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
20164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20165 fi
20166
20167 gl_libobjs=
20168 gl_ltlibobjs=
20169 if test -n "$gl_LIBOBJS"; then
20170 # Remove the extension.
20171 sed_drop_objext='s/\.o$//;s/\.obj$//'
20172 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
20173 gl_libobjs="$gl_libobjs $i.$ac_objext"
20174 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
20175 done
20176 fi
20177 gl_LIBOBJS=$gl_libobjs
20178
20179 gl_LTLIBOBJS=$gl_ltlibobjs
20180
20181
20182
20183 gltests_libobjs=
20184 gltests_ltlibobjs=
20185 if test -n "$gltests_LIBOBJS"; then
20186 # Remove the extension.
20187 sed_drop_objext='s/\.o$//;s/\.obj$//'
20188 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
20189 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
20190 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
20191 done
20192 fi
20193 gltests_LIBOBJS=$gltests_libobjs
20194
20195 gltests_LTLIBOBJS=$gltests_ltlibobjs
20196
20197
20198 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20199 as_fn_error "conditional \"AMDEP\" was never defined.
20200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20201 fi
20202 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20203 as_fn_error "conditional \"am__fastdepCC\" was never defined.
20204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20205 fi
20206 if test -n "$EXEEXT"; then
20207 am__EXEEXT_TRUE=
20208 am__EXEEXT_FALSE='#'
20209 else
20210 am__EXEEXT_TRUE='#'
20211 am__EXEEXT_FALSE=
20212 fi
20213
20214
20215 : ${CONFIG_STATUS=./config.status}
20216 ac_write_fail=0
20217 ac_clean_files_save=$ac_clean_files
20218 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20219 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20220 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20221 as_write_fail=0
20222 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20223 #! $SHELL
20224 # Generated by $as_me.
20225 # Run this file to recreate the current configuration.
20226 # Compiler output produced by configure, useful for debugging
20227 # configure, is in config.log if it exists.
20228
20229 debug=false
20230 ac_cs_recheck=false
20231 ac_cs_silent=false
20232
20233 SHELL=\${CONFIG_SHELL-$SHELL}
20234 export SHELL
20235 _ASEOF
20236 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20237 ## -------------------- ##
20238 ## M4sh Initialization. ##
20239 ## -------------------- ##
20240
20241 # Be more Bourne compatible
20242 DUALCASE=1; export DUALCASE # for MKS sh
20243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20244 emulate sh
20245 NULLCMD=:
20246 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20247 # is contrary to our usage. Disable this feature.
20248 alias -g '${1+"$@"}'='"$@"'
20249 setopt NO_GLOB_SUBST
20250 else
20251 case `(set -o) 2>/dev/null` in #(
20252 *posix*) :
20253 set -o posix ;; #(
20254 *) :
20255 ;;
20256 esac
20257 fi
20258
20259
20260 as_nl='
20261 '
20262 export as_nl
20263 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20264 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20265 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20266 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20267 # Prefer a ksh shell builtin over an external printf program on Solaris,
20268 # but without wasting forks for bash or zsh.
20269 if test -z "$BASH_VERSION$ZSH_VERSION" \
20270 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20271 as_echo='print -r --'
20272 as_echo_n='print -rn --'
20273 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20274 as_echo='printf %s\n'
20275 as_echo_n='printf %s'
20276 else
20277 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20278 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20279 as_echo_n='/usr/ucb/echo -n'
20280 else
20281 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20282 as_echo_n_body='eval
20283 arg=$1;
20284 case $arg in #(
20285 *"$as_nl"*)
20286 expr "X$arg" : "X\\(.*\\)$as_nl";
20287 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20288 esac;
20289 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20290 '
20291 export as_echo_n_body
20292 as_echo_n='sh -c $as_echo_n_body as_echo'
20293 fi
20294 export as_echo_body
20295 as_echo='sh -c $as_echo_body as_echo'
20296 fi
20297
20298 # The user is always right.
20299 if test "${PATH_SEPARATOR+set}" != set; then
20300 PATH_SEPARATOR=:
20301 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20302 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20303 PATH_SEPARATOR=';'
20304 }
20305 fi
20306
20307
20308 # IFS
20309 # We need space, tab and new line, in precisely that order. Quoting is
20310 # there to prevent editors from complaining about space-tab.
20311 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20312 # splitting by setting IFS to empty value.)
20313 IFS=" "" $as_nl"
20314
20315 # Find who we are. Look in the path if we contain no directory separator.
20316 case $0 in #((
20317 *[\\/]* ) as_myself=$0 ;;
20318 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20319 for as_dir in $PATH
20320 do
20321 IFS=$as_save_IFS
20322 test -z "$as_dir" && as_dir=.
20323 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20324 done
20325 IFS=$as_save_IFS
20326
20327 ;;
20328 esac
20329 # We did not find ourselves, most probably we were run as `sh COMMAND'
20330 # in which case we are not to be found in the path.
20331 if test "x$as_myself" = x; then
20332 as_myself=$0
20333 fi
20334 if test ! -f "$as_myself"; then
20335 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20336 exit 1
20337 fi
20338
20339 # Unset variables that we do not need and which cause bugs (e.g. in
20340 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20341 # suppresses any "Segmentation fault" message there. '((' could
20342 # trigger a bug in pdksh 5.2.14.
20343 for as_var in BASH_ENV ENV MAIL MAILPATH
20344 do eval test x\${$as_var+set} = xset \
20345 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20346 done
20347 PS1='$ '
20348 PS2='> '
20349 PS4='+ '
20350
20351 # NLS nuisances.
20352 LC_ALL=C
20353 export LC_ALL
20354 LANGUAGE=C
20355 export LANGUAGE
20356
20357 # CDPATH.
20358 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20359
20360
20361 # as_fn_error ERROR [LINENO LOG_FD]
20362 # ---------------------------------
20363 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20364 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20365 # script with status $?, using 1 if that was 0.
20366 as_fn_error ()
20367 {
20368 as_status=$?; test $as_status -eq 0 && as_status=1
20369 if test "$3"; then
20370 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20371 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
20372 fi
20373 $as_echo "$as_me: error: $1" >&2
20374 as_fn_exit $as_status
20375 } # as_fn_error
20376
20377
20378 # as_fn_set_status STATUS
20379 # -----------------------
20380 # Set $? to STATUS, without forking.
20381 as_fn_set_status ()
20382 {
20383 return $1
20384 } # as_fn_set_status
20385
20386 # as_fn_exit STATUS
20387 # -----------------
20388 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20389 as_fn_exit ()
20390 {
20391 set +e
20392 as_fn_set_status $1
20393 exit $1
20394 } # as_fn_exit
20395
20396 # as_fn_unset VAR
20397 # ---------------
20398 # Portably unset VAR.
20399 as_fn_unset ()
20400 {
20401 { eval $1=; unset $1;}
20402 }
20403 as_unset=as_fn_unset
20404 # as_fn_append VAR VALUE
20405 # ----------------------
20406 # Append the text in VALUE to the end of the definition contained in VAR. Take
20407 # advantage of any shell optimizations that allow amortized linear growth over
20408 # repeated appends, instead of the typical quadratic growth present in naive
20409 # implementations.
20410 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20411 eval 'as_fn_append ()
20412 {
20413 eval $1+=\$2
20414 }'
20415 else
20416 as_fn_append ()
20417 {
20418 eval $1=\$$1\$2
20419 }
20420 fi # as_fn_append
20421
20422 # as_fn_arith ARG...
20423 # ------------------
20424 # Perform arithmetic evaluation on the ARGs, and store the result in the
20425 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20426 # must be portable across $(()) and expr.
20427 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20428 eval 'as_fn_arith ()
20429 {
20430 as_val=$(( $* ))
20431 }'
20432 else
20433 as_fn_arith ()
20434 {
20435 as_val=`expr "$@" || test $? -eq 1`
20436 }
20437 fi # as_fn_arith
20438
20439
20440 if expr a : '\(a\)' >/dev/null 2>&1 &&
20441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20442 as_expr=expr
20443 else
20444 as_expr=false
20445 fi
20446
20447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20448 as_basename=basename
20449 else
20450 as_basename=false
20451 fi
20452
20453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20454 as_dirname=dirname
20455 else
20456 as_dirname=false
20457 fi
20458
20459 as_me=`$as_basename -- "$0" ||
20460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20461 X"$0" : 'X\(//\)$' \| \
20462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20463 $as_echo X/"$0" |
20464 sed '/^.*\/\([^/][^/]*\)\/*$/{
20465 s//\1/
20466 q
20467 }
20468 /^X\/\(\/\/\)$/{
20469 s//\1/
20470 q
20471 }
20472 /^X\/\(\/\).*/{
20473 s//\1/
20474 q
20475 }
20476 s/.*/./; q'`
20477
20478 # Avoid depending upon Character Ranges.
20479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20482 as_cr_digits='0123456789'
20483 as_cr_alnum=$as_cr_Letters$as_cr_digits
20484
20485 ECHO_C= ECHO_N= ECHO_T=
20486 case `echo -n x` in #(((((
20487 -n*)
20488 case `echo 'xy\c'` in
20489 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20490 xy) ECHO_C='\c';;
20491 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20492 ECHO_T=' ';;
20493 esac;;
20494 *)
20495 ECHO_N='-n';;
20496 esac
20497
20498 rm -f conf$$ conf$$.exe conf$$.file
20499 if test -d conf$$.dir; then
20500 rm -f conf$$.dir/conf$$.file
20501 else
20502 rm -f conf$$.dir
20503 mkdir conf$$.dir 2>/dev/null
20504 fi
20505 if (echo >conf$$.file) 2>/dev/null; then
20506 if ln -s conf$$.file conf$$ 2>/dev/null; then
20507 as_ln_s='ln -s'
20508 # ... but there are two gotchas:
20509 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20510 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20511 # In both cases, we have to default to `cp -p'.
20512 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20513 as_ln_s='cp -p'
20514 elif ln conf$$.file conf$$ 2>/dev/null; then
20515 as_ln_s=ln
20516 else
20517 as_ln_s='cp -p'
20518 fi
20519 else
20520 as_ln_s='cp -p'
20521 fi
20522 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20523 rmdir conf$$.dir 2>/dev/null
20524
20525
20526 # as_fn_mkdir_p
20527 # -------------
20528 # Create "$as_dir" as a directory, including parents if necessary.
20529 as_fn_mkdir_p ()
20530 {
20531
20532 case $as_dir in #(
20533 -*) as_dir=./$as_dir;;
20534 esac
20535 test -d "$as_dir" || eval $as_mkdir_p || {
20536 as_dirs=
20537 while :; do
20538 case $as_dir in #(
20539 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20540 *) as_qdir=$as_dir;;
20541 esac
20542 as_dirs="'$as_qdir' $as_dirs"
20543 as_dir=`$as_dirname -- "$as_dir" ||
20544 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20545 X"$as_dir" : 'X\(//\)[^/]' \| \
20546 X"$as_dir" : 'X\(//\)$' \| \
20547 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20548 $as_echo X"$as_dir" |
20549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20550 s//\1/
20551 q
20552 }
20553 /^X\(\/\/\)[^/].*/{
20554 s//\1/
20555 q
20556 }
20557 /^X\(\/\/\)$/{
20558 s//\1/
20559 q
20560 }
20561 /^X\(\/\).*/{
20562 s//\1/
20563 q
20564 }
20565 s/.*/./; q'`
20566 test -d "$as_dir" && break
20567 done
20568 test -z "$as_dirs" || eval "mkdir $as_dirs"
20569 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
20570
20571
20572 } # as_fn_mkdir_p
20573 if mkdir -p . 2>/dev/null; then
20574 as_mkdir_p='mkdir -p "$as_dir"'
20575 else
20576 test -d ./-p && rmdir ./-p
20577 as_mkdir_p=false
20578 fi
20579
20580 if test -x / >/dev/null 2>&1; then
20581 as_test_x='test -x'
20582 else
20583 if ls -dL / >/dev/null 2>&1; then
20584 as_ls_L_option=L
20585 else
20586 as_ls_L_option=
20587 fi
20588 as_test_x='
20589 eval sh -c '\''
20590 if test -d "$1"; then
20591 test -d "$1/.";
20592 else
20593 case $1 in #(
20594 -*)set "./$1";;
20595 esac;
20596 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20597 ???[sx]*):;;*)false;;esac;fi
20598 '\'' sh
20599 '
20600 fi
20601 as_executable_p=$as_test_x
20602
20603 # Sed expression to map a string onto a valid CPP name.
20604 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20605
20606 # Sed expression to map a string onto a valid variable name.
20607 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20608
20609
20610 exec 6>&1
20611 ## ----------------------------------- ##
20612 ## Main body of $CONFIG_STATUS script. ##
20613 ## ----------------------------------- ##
20614 _ASEOF
20615 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20616
20617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20618 # Save the log message, to keep $0 and so on meaningful, and to
20619 # report actual input values of CONFIG_FILES etc. instead of their
20620 # values after options handling.
20621 ac_log="
20622 This file was extended by $as_me, which was
20623 generated by GNU Autoconf 2.64. Invocation command line was
20624
20625 CONFIG_FILES = $CONFIG_FILES
20626 CONFIG_HEADERS = $CONFIG_HEADERS
20627 CONFIG_LINKS = $CONFIG_LINKS
20628 CONFIG_COMMANDS = $CONFIG_COMMANDS
20629 $ $0 $@
20630
20631 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20632 "
20633
20634 _ACEOF
20635
20636 case $ac_config_files in *"
20637 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20638 esac
20639
20640 case $ac_config_headers in *"
20641 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20642 esac
20643
20644
20645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20646 # Files that config.status was made for.
20647 config_files="$ac_config_files"
20648 config_headers="$ac_config_headers"
20649 config_commands="$ac_config_commands"
20650
20651 _ACEOF
20652
20653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20654 ac_cs_usage="\
20655 \`$as_me' instantiates files and other configuration actions
20656 from templates according to the current configuration. Unless the files
20657 and actions are specified as TAGs, all are instantiated by default.
20658
20659 Usage: $0 [OPTION]... [TAG]...
20660
20661 -h, --help print this help, then exit
20662 -V, --version print version number and configuration settings, then exit
20663 -q, --quiet, --silent
20664 do not print progress messages
20665 -d, --debug don't remove temporary files
20666 --recheck update $as_me by reconfiguring in the same conditions
20667 --file=FILE[:TEMPLATE]
20668 instantiate the configuration file FILE
20669 --header=FILE[:TEMPLATE]
20670 instantiate the configuration header FILE
20671
20672 Configuration files:
20673 $config_files
20674
20675 Configuration headers:
20676 $config_headers
20677
20678 Configuration commands:
20679 $config_commands
20680
20681 Report bugs to the package provider."
20682
20683 _ACEOF
20684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20685 ac_cs_version="\\
20686 config.status
20687 configured by $0, generated by GNU Autoconf 2.64,
20688 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20689
20690 Copyright (C) 2009 Free Software Foundation, Inc.
20691 This config.status script is free software; the Free Software Foundation
20692 gives unlimited permission to copy, distribute and modify it."
20693
20694 ac_pwd='$ac_pwd'
20695 srcdir='$srcdir'
20696 INSTALL='$INSTALL'
20697 MKDIR_P='$MKDIR_P'
20698 AWK='$AWK'
20699 test -n "\$AWK" || AWK=awk
20700 _ACEOF
20701
20702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20703 # The default lists apply if the user does not specify any file.
20704 ac_need_defaults=:
20705 while test $# != 0
20706 do
20707 case $1 in
20708 --*=*)
20709 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20710 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20711 ac_shift=:
20712 ;;
20713 *)
20714 ac_option=$1
20715 ac_optarg=$2
20716 ac_shift=shift
20717 ;;
20718 esac
20719
20720 case $ac_option in
20721 # Handling of the options.
20722 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20723 ac_cs_recheck=: ;;
20724 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20725 $as_echo "$ac_cs_version"; exit ;;
20726 --debug | --debu | --deb | --de | --d | -d )
20727 debug=: ;;
20728 --file | --fil | --fi | --f )
20729 $ac_shift
20730 case $ac_optarg in
20731 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20732 esac
20733 as_fn_append CONFIG_FILES " '$ac_optarg'"
20734 ac_need_defaults=false;;
20735 --header | --heade | --head | --hea )
20736 $ac_shift
20737 case $ac_optarg in
20738 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20739 esac
20740 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20741 ac_need_defaults=false;;
20742 --he | --h)
20743 # Conflict between --help and --header
20744 as_fn_error "ambiguous option: \`$1'
20745 Try \`$0 --help' for more information.";;
20746 --help | --hel | -h )
20747 $as_echo "$ac_cs_usage"; exit ;;
20748 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20749 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20750 ac_cs_silent=: ;;
20751
20752 # This is an error.
20753 -*) as_fn_error "unrecognized option: \`$1'
20754 Try \`$0 --help' for more information." ;;
20755
20756 *) as_fn_append ac_config_targets " $1"
20757 ac_need_defaults=false ;;
20758
20759 esac
20760 shift
20761 done
20762
20763 ac_configure_extra_args=
20764
20765 if $ac_cs_silent; then
20766 exec 6>/dev/null
20767 ac_configure_extra_args="$ac_configure_extra_args --silent"
20768 fi
20769
20770 _ACEOF
20771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20772 if \$ac_cs_recheck; then
20773 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20774 shift
20775 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20776 CONFIG_SHELL='$SHELL'
20777 export CONFIG_SHELL
20778 exec "\$@"
20779 fi
20780
20781 _ACEOF
20782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20783 exec 5>>config.log
20784 {
20785 echo
20786 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20787 ## Running $as_me. ##
20788 _ASBOX
20789 $as_echo "$ac_log"
20790 } >&5
20791
20792 _ACEOF
20793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20794 #
20795 # INIT-COMMANDS
20796 #
20797 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20798
20799 _ACEOF
20800
20801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20802
20803 # Handling of arguments.
20804 for ac_config_target in $ac_config_targets
20805 do
20806 case $ac_config_target in
20807 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
20808 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20809 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20810 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
20811 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20812
20813 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20814 esac
20815 done
20816
20817
20818 # If the user did not use the arguments to specify the items to instantiate,
20819 # then the envvar interface is used. Set only those that are not.
20820 # We use the long form for the default assignment because of an extremely
20821 # bizarre bug on SunOS 4.1.3.
20822 if $ac_need_defaults; then
20823 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20824 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20825 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20826 fi
20827
20828 # Have a temporary directory for convenience. Make it in the build tree
20829 # simply because there is no reason against having it here, and in addition,
20830 # creating and moving files from /tmp can sometimes cause problems.
20831 # Hook for its removal unless debugging.
20832 # Note that there is a small window in which the directory will not be cleaned:
20833 # after its creation but before its name has been assigned to `$tmp'.
20834 $debug ||
20835 {
20836 tmp=
20837 trap 'exit_status=$?
20838 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20839 ' 0
20840 trap 'as_fn_exit 1' 1 2 13 15
20841 }
20842 # Create a (secure) tmp directory for tmp files.
20843
20844 {
20845 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20846 test -n "$tmp" && test -d "$tmp"
20847 } ||
20848 {
20849 tmp=./conf$$-$RANDOM
20850 (umask 077 && mkdir "$tmp")
20851 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
20852
20853 # Set up the scripts for CONFIG_FILES section.
20854 # No need to generate them if there are no CONFIG_FILES.
20855 # This happens for instance with `./config.status config.h'.
20856 if test -n "$CONFIG_FILES"; then
20857
20858
20859 ac_cr=`echo X | tr X '\015'`
20860 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20861 # But we know of no other shell where ac_cr would be empty at this
20862 # point, so we can use a bashism as a fallback.
20863 if test "x$ac_cr" = x; then
20864 eval ac_cr=\$\'\\r\'
20865 fi
20866 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20867 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20868 ac_cs_awk_cr='\r'
20869 else
20870 ac_cs_awk_cr=$ac_cr
20871 fi
20872
20873 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20874 _ACEOF
20875
20876
20877 {
20878 echo "cat >conf$$subs.awk <<_ACEOF" &&
20879 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20880 echo "_ACEOF"
20881 } >conf$$subs.sh ||
20882 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20883 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20884 ac_delim='%!_!# '
20885 for ac_last_try in false false false false false :; do
20886 . ./conf$$subs.sh ||
20887 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20888
20889 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20890 if test $ac_delim_n = $ac_delim_num; then
20891 break
20892 elif $ac_last_try; then
20893 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20894 else
20895 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20896 fi
20897 done
20898 rm -f conf$$subs.sh
20899
20900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20901 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20902 _ACEOF
20903 sed -n '
20904 h
20905 s/^/S["/; s/!.*/"]=/
20906 p
20907 g
20908 s/^[^!]*!//
20909 :repl
20910 t repl
20911 s/'"$ac_delim"'$//
20912 t delim
20913 :nl
20914 h
20915 s/\(.\{148\}\).*/\1/
20916 t more1
20917 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20918 p
20919 n
20920 b repl
20921 :more1
20922 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20923 p
20924 g
20925 s/.\{148\}//
20926 t nl
20927 :delim
20928 h
20929 s/\(.\{148\}\).*/\1/
20930 t more2
20931 s/["\\]/\\&/g; s/^/"/; s/$/"/
20932 p
20933 b
20934 :more2
20935 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20936 p
20937 g
20938 s/.\{148\}//
20939 t delim
20940 ' <conf$$subs.awk | sed '
20941 /^[^""]/{
20942 N
20943 s/\n//
20944 }
20945 ' >>$CONFIG_STATUS || ac_write_fail=1
20946 rm -f conf$$subs.awk
20947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20948 _ACAWK
20949 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20950 for (key in S) S_is_set[key] = 1
20951 FS = "\a"
20952
20953 }
20954 {
20955 line = $ 0
20956 nfields = split(line, field, "@")
20957 substed = 0
20958 len = length(field[1])
20959 for (i = 2; i < nfields; i++) {
20960 key = field[i]
20961 keylen = length(key)
20962 if (S_is_set[key]) {
20963 value = S[key]
20964 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20965 len += length(value) + length(field[++i])
20966 substed = 1
20967 } else
20968 len += 1 + keylen
20969 }
20970
20971 print line
20972 }
20973
20974 _ACAWK
20975 _ACEOF
20976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20977 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20978 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20979 else
20980 cat
20981 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20982 || as_fn_error "could not setup config files machinery" "$LINENO" 5
20983 _ACEOF
20984
20985 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20986 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20987 # trailing colons and then remove the whole line if VPATH becomes empty
20988 # (actually we leave an empty line to preserve line numbers).
20989 if test "x$srcdir" = x.; then
20990 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20991 s/:*\$(srcdir):*/:/
20992 s/:*\${srcdir}:*/:/
20993 s/:*@srcdir@:*/:/
20994 s/^\([^=]*=[ ]*\):*/\1/
20995 s/:*$//
20996 s/^[^=]*=[ ]*$//
20997 }'
20998 fi
20999
21000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21001 fi # test -n "$CONFIG_FILES"
21002
21003 # Set up the scripts for CONFIG_HEADERS section.
21004 # No need to generate them if there are no CONFIG_HEADERS.
21005 # This happens for instance with `./config.status Makefile'.
21006 if test -n "$CONFIG_HEADERS"; then
21007 cat >"$tmp/defines.awk" <<\_ACAWK ||
21008 BEGIN {
21009 _ACEOF
21010
21011 # Transform confdefs.h into an awk script `defines.awk', embedded as
21012 # here-document in config.status, that substitutes the proper values into
21013 # config.h.in to produce config.h.
21014
21015 # Create a delimiter string that does not exist in confdefs.h, to ease
21016 # handling of long lines.
21017 ac_delim='%!_!# '
21018 for ac_last_try in false false :; do
21019 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21020 if test -z "$ac_t"; then
21021 break
21022 elif $ac_last_try; then
21023 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
21024 else
21025 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21026 fi
21027 done
21028
21029 # For the awk script, D is an array of macro values keyed by name,
21030 # likewise P contains macro parameters if any. Preserve backslash
21031 # newline sequences.
21032
21033 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21034 sed -n '
21035 s/.\{148\}/&'"$ac_delim"'/g
21036 t rset
21037 :rset
21038 s/^[ ]*#[ ]*define[ ][ ]*/ /
21039 t def
21040 d
21041 :def
21042 s/\\$//
21043 t bsnl
21044 s/["\\]/\\&/g
21045 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21046 D["\1"]=" \3"/p
21047 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21048 d
21049 :bsnl
21050 s/["\\]/\\&/g
21051 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21052 D["\1"]=" \3\\\\\\n"\\/p
21053 t cont
21054 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21055 t cont
21056 d
21057 :cont
21058 n
21059 s/.\{148\}/&'"$ac_delim"'/g
21060 t clear
21061 :clear
21062 s/\\$//
21063 t bsnlc
21064 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21065 d
21066 :bsnlc
21067 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21068 b cont
21069 ' <confdefs.h | sed '
21070 s/'"$ac_delim"'/"\\\
21071 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21072
21073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21074 for (key in D) D_is_set[key] = 1
21075 FS = "\a"
21076 }
21077 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21078 line = \$ 0
21079 split(line, arg, " ")
21080 if (arg[1] == "#") {
21081 defundef = arg[2]
21082 mac1 = arg[3]
21083 } else {
21084 defundef = substr(arg[1], 2)
21085 mac1 = arg[2]
21086 }
21087 split(mac1, mac2, "(") #)
21088 macro = mac2[1]
21089 prefix = substr(line, 1, index(line, defundef) - 1)
21090 if (D_is_set[macro]) {
21091 # Preserve the white space surrounding the "#".
21092 print prefix "define", macro P[macro] D[macro]
21093 next
21094 } else {
21095 # Replace #undef with comments. This is necessary, for example,
21096 # in the case of _POSIX_SOURCE, which is predefined and required
21097 # on some systems where configure will not decide to define it.
21098 if (defundef == "undef") {
21099 print "/*", prefix defundef, macro, "*/"
21100 next
21101 }
21102 }
21103 }
21104 { print }
21105 _ACAWK
21106 _ACEOF
21107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21108 as_fn_error "could not setup config headers machinery" "$LINENO" 5
21109 fi # test -n "$CONFIG_HEADERS"
21110
21111
21112 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21113 shift
21114 for ac_tag
21115 do
21116 case $ac_tag in
21117 :[FHLC]) ac_mode=$ac_tag; continue;;
21118 esac
21119 case $ac_mode$ac_tag in
21120 :[FHL]*:*);;
21121 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
21122 :[FH]-) ac_tag=-:-;;
21123 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21124 esac
21125 ac_save_IFS=$IFS
21126 IFS=:
21127 set x $ac_tag
21128 IFS=$ac_save_IFS
21129 shift
21130 ac_file=$1
21131 shift
21132
21133 case $ac_mode in
21134 :L) ac_source=$1;;
21135 :[FH])
21136 ac_file_inputs=
21137 for ac_f
21138 do
21139 case $ac_f in
21140 -) ac_f="$tmp/stdin";;
21141 *) # Look for the file first in the build tree, then in the source tree
21142 # (if the path is not absolute). The absolute path cannot be DOS-style,
21143 # because $ac_f cannot contain `:'.
21144 test -f "$ac_f" ||
21145 case $ac_f in
21146 [\\/$]*) false;;
21147 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21148 esac ||
21149 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21150 esac
21151 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21152 as_fn_append ac_file_inputs " '$ac_f'"
21153 done
21154
21155 # Let's still pretend it is `configure' which instantiates (i.e., don't
21156 # use $as_me), people would be surprised to read:
21157 # /* config.h. Generated by config.status. */
21158 configure_input='Generated from '`
21159 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21160 `' by configure.'
21161 if test x"$ac_file" != x-; then
21162 configure_input="$ac_file. $configure_input"
21163 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21164 $as_echo "$as_me: creating $ac_file" >&6;}
21165 fi
21166 # Neutralize special characters interpreted by sed in replacement strings.
21167 case $configure_input in #(
21168 *\&* | *\|* | *\\* )
21169 ac_sed_conf_input=`$as_echo "$configure_input" |
21170 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21171 *) ac_sed_conf_input=$configure_input;;
21172 esac
21173
21174 case $ac_tag in
21175 *:-:* | *:-) cat >"$tmp/stdin" \
21176 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
21177 esac
21178 ;;
21179 esac
21180
21181 ac_dir=`$as_dirname -- "$ac_file" ||
21182 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21183 X"$ac_file" : 'X\(//\)[^/]' \| \
21184 X"$ac_file" : 'X\(//\)$' \| \
21185 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21186 $as_echo X"$ac_file" |
21187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21188 s//\1/
21189 q
21190 }
21191 /^X\(\/\/\)[^/].*/{
21192 s//\1/
21193 q
21194 }
21195 /^X\(\/\/\)$/{
21196 s//\1/
21197 q
21198 }
21199 /^X\(\/\).*/{
21200 s//\1/
21201 q
21202 }
21203 s/.*/./; q'`
21204 as_dir="$ac_dir"; as_fn_mkdir_p
21205 ac_builddir=.
21206
21207 case "$ac_dir" in
21208 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21209 *)
21210 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21211 # A ".." for each directory in $ac_dir_suffix.
21212 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21213 case $ac_top_builddir_sub in
21214 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21215 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21216 esac ;;
21217 esac
21218 ac_abs_top_builddir=$ac_pwd
21219 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21220 # for backward compatibility:
21221 ac_top_builddir=$ac_top_build_prefix
21222
21223 case $srcdir in
21224 .) # We are building in place.
21225 ac_srcdir=.
21226 ac_top_srcdir=$ac_top_builddir_sub
21227 ac_abs_top_srcdir=$ac_pwd ;;
21228 [\\/]* | ?:[\\/]* ) # Absolute name.
21229 ac_srcdir=$srcdir$ac_dir_suffix;
21230 ac_top_srcdir=$srcdir
21231 ac_abs_top_srcdir=$srcdir ;;
21232 *) # Relative name.
21233 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21234 ac_top_srcdir=$ac_top_build_prefix$srcdir
21235 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21236 esac
21237 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21238
21239
21240 case $ac_mode in
21241 :F)
21242 #
21243 # CONFIG_FILE
21244 #
21245
21246 case $INSTALL in
21247 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21248 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21249 esac
21250 ac_MKDIR_P=$MKDIR_P
21251 case $MKDIR_P in
21252 [\\/$]* | ?:[\\/]* ) ;;
21253 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21254 esac
21255 _ACEOF
21256
21257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21258 # If the template does not know about datarootdir, expand it.
21259 # FIXME: This hack should be removed a few years after 2.60.
21260 ac_datarootdir_hack=; ac_datarootdir_seen=
21261 ac_sed_dataroot='
21262 /datarootdir/ {
21263 p
21264 q
21265 }
21266 /@datadir@/p
21267 /@docdir@/p
21268 /@infodir@/p
21269 /@localedir@/p
21270 /@mandir@/p'
21271 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21272 *datarootdir*) ac_datarootdir_seen=yes;;
21273 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21275 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21276 _ACEOF
21277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21278 ac_datarootdir_hack='
21279 s&@datadir@&$datadir&g
21280 s&@docdir@&$docdir&g
21281 s&@infodir@&$infodir&g
21282 s&@localedir@&$localedir&g
21283 s&@mandir@&$mandir&g
21284 s&\\\${datarootdir}&$datarootdir&g' ;;
21285 esac
21286 _ACEOF
21287
21288 # Neutralize VPATH when `$srcdir' = `.'.
21289 # Shell code in configure.ac might set extrasub.
21290 # FIXME: do we really want to maintain this feature?
21291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21292 ac_sed_extra="$ac_vpsub
21293 $extrasub
21294 _ACEOF
21295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21296 :t
21297 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21298 s|@configure_input@|$ac_sed_conf_input|;t t
21299 s&@top_builddir@&$ac_top_builddir_sub&;t t
21300 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21301 s&@srcdir@&$ac_srcdir&;t t
21302 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21303 s&@top_srcdir@&$ac_top_srcdir&;t t
21304 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21305 s&@builddir@&$ac_builddir&;t t
21306 s&@abs_builddir@&$ac_abs_builddir&;t t
21307 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21308 s&@INSTALL@&$ac_INSTALL&;t t
21309 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21310 $ac_datarootdir_hack
21311 "
21312 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21313 || as_fn_error "could not create $ac_file" "$LINENO" 5
21314
21315 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21316 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21317 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21319 which seems to be undefined. Please make sure it is defined." >&5
21320 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21321 which seems to be undefined. Please make sure it is defined." >&2;}
21322
21323 rm -f "$tmp/stdin"
21324 case $ac_file in
21325 -) cat "$tmp/out" && rm -f "$tmp/out";;
21326 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21327 esac \
21328 || as_fn_error "could not create $ac_file" "$LINENO" 5
21329 ;;
21330 :H)
21331 #
21332 # CONFIG_HEADER
21333 #
21334 if test x"$ac_file" != x-; then
21335 {
21336 $as_echo "/* $configure_input */" \
21337 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21338 } >"$tmp/config.h" \
21339 || as_fn_error "could not create $ac_file" "$LINENO" 5
21340 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21341 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21342 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21343 else
21344 rm -f "$ac_file"
21345 mv "$tmp/config.h" "$ac_file" \
21346 || as_fn_error "could not create $ac_file" "$LINENO" 5
21347 fi
21348 else
21349 $as_echo "/* $configure_input */" \
21350 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21351 || as_fn_error "could not create -" "$LINENO" 5
21352 fi
21353 # Compute "$ac_file"'s index in $config_headers.
21354 _am_arg="$ac_file"
21355 _am_stamp_count=1
21356 for _am_header in $config_headers :; do
21357 case $_am_header in
21358 $_am_arg | $_am_arg:* )
21359 break ;;
21360 * )
21361 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21362 esac
21363 done
21364 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21365 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21366 X"$_am_arg" : 'X\(//\)[^/]' \| \
21367 X"$_am_arg" : 'X\(//\)$' \| \
21368 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21369 $as_echo X"$_am_arg" |
21370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21371 s//\1/
21372 q
21373 }
21374 /^X\(\/\/\)[^/].*/{
21375 s//\1/
21376 q
21377 }
21378 /^X\(\/\/\)$/{
21379 s//\1/
21380 q
21381 }
21382 /^X\(\/\).*/{
21383 s//\1/
21384 q
21385 }
21386 s/.*/./; q'`/stamp-h$_am_stamp_count
21387 ;;
21388
21389 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21390 $as_echo "$as_me: executing $ac_file commands" >&6;}
21391 ;;
21392 esac
21393
21394
21395 case $ac_file$ac_mode in
21396 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21397 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21398 # are listed without --file. Let's play safe and only enable the eval
21399 # if we detect the quoting.
21400 case $CONFIG_FILES in
21401 *\'*) eval set x "$CONFIG_FILES" ;;
21402 *) set x $CONFIG_FILES ;;
21403 esac
21404 shift
21405 for mf
21406 do
21407 # Strip MF so we end up with the name of the file.
21408 mf=`echo "$mf" | sed -e 's/:.*$//'`
21409 # Check whether this is an Automake generated Makefile or not.
21410 # We used to match only the files named `Makefile.in', but
21411 # some people rename them; so instead we look at the file content.
21412 # Grep'ing the first line is not enough: some people post-process
21413 # each Makefile.in and add a new line on top of each file to say so.
21414 # Grep'ing the whole file is not good either: AIX grep has a line
21415 # limit of 2048, but all sed's we know have understand at least 4000.
21416 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21417 dirpart=`$as_dirname -- "$mf" ||
21418 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21419 X"$mf" : 'X\(//\)[^/]' \| \
21420 X"$mf" : 'X\(//\)$' \| \
21421 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21422 $as_echo X"$mf" |
21423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21424 s//\1/
21425 q
21426 }
21427 /^X\(\/\/\)[^/].*/{
21428 s//\1/
21429 q
21430 }
21431 /^X\(\/\/\)$/{
21432 s//\1/
21433 q
21434 }
21435 /^X\(\/\).*/{
21436 s//\1/
21437 q
21438 }
21439 s/.*/./; q'`
21440 else
21441 continue
21442 fi
21443 # Extract the definition of DEPDIR, am__include, and am__quote
21444 # from the Makefile without running `make'.
21445 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21446 test -z "$DEPDIR" && continue
21447 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21448 test -z "am__include" && continue
21449 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21450 # When using ansi2knr, U may be empty or an underscore; expand it
21451 U=`sed -n 's/^U = //p' < "$mf"`
21452 # Find all dependency output files, they are included files with
21453 # $(DEPDIR) in their names. We invoke sed twice because it is the
21454 # simplest approach to changing $(DEPDIR) to its actual value in the
21455 # expansion.
21456 for file in `sed -n "
21457 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21458 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21459 # Make sure the directory exists.
21460 test -f "$dirpart/$file" && continue
21461 fdir=`$as_dirname -- "$file" ||
21462 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21463 X"$file" : 'X\(//\)[^/]' \| \
21464 X"$file" : 'X\(//\)$' \| \
21465 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21466 $as_echo X"$file" |
21467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21468 s//\1/
21469 q
21470 }
21471 /^X\(\/\/\)[^/].*/{
21472 s//\1/
21473 q
21474 }
21475 /^X\(\/\/\)$/{
21476 s//\1/
21477 q
21478 }
21479 /^X\(\/\).*/{
21480 s//\1/
21481 q
21482 }
21483 s/.*/./; q'`
21484 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21485 # echo "creating $dirpart/$file"
21486 echo '# dummy' > "$dirpart/$file"
21487 done
21488 done
21489 }
21490 ;;
21491 "default":C)
21492 case x$CONFIG_HEADERS in
21493 xconfig.h:config.in)
21494 echo > stamp-h ;;
21495 esac
21496 ;;
21497
21498 esac
21499 done # for ac_tag
21500
21501
21502 as_fn_exit 0
21503 _ACEOF
21504 ac_clean_files=$ac_clean_files_save
21505
21506 test $ac_write_fail = 0 ||
21507 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
21508
21509
21510 # configure is writing to config.log, and then calls config.status.
21511 # config.status does its own redirection, appending to config.log.
21512 # Unfortunately, on DOS this fails, as config.log is still kept open
21513 # by configure, so config.status won't be able to write to it; its
21514 # output is simply discarded. So we exec the FD to /dev/null,
21515 # effectively closing config.log, so it can be properly (re)opened and
21516 # appended to by config.status. When coming back to configure, we
21517 # need to make the FD available again.
21518 if test "$no_create" != yes; then
21519 ac_cs_success=:
21520 ac_config_status_args=
21521 test "$silent" = yes &&
21522 ac_config_status_args="$ac_config_status_args --quiet"
21523 exec 5>/dev/null
21524 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21525 exec 5>>config.log
21526 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21527 # would make configure fail if this is the last instruction.
21528 $ac_cs_success || as_fn_exit $?
21529 fi
21530 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21532 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21533 fi
21534
21535
21536 exit 0
This page took 0.56598 seconds and 4 git commands to generate.