Replace clear_hook_in_cleanup with scoped_restore_hook_in
[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_header_list " unistd.h"
3311 as_fn_append ac_func_list " btowc"
3312 as_fn_append ac_func_list " isblank"
3313 as_fn_append ac_func_list " iswctype"
3314 as_fn_append ac_func_list " mbsrtowcs"
3315 as_fn_append ac_func_list " mempcpy"
3316 as_fn_append ac_func_list " wmemchr"
3317 as_fn_append ac_func_list " wmemcpy"
3318 as_fn_append ac_func_list " wmempcpy"
3319 as_fn_append ac_header_list " wctype.h"
3320 gl_fnmatch_required=GNU
3321 as_fn_append ac_header_list " sys/time.h"
3322 as_fn_append ac_header_list " sys/socket.h"
3323 as_fn_append ac_func_list " gettimeofday"
3324 as_fn_append ac_header_list " limits.h"
3325 as_fn_append ac_header_list " wchar.h"
3326 as_fn_append ac_header_list " stdint.h"
3327 as_fn_append ac_header_list " inttypes.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_func_list " setenv"
3337 as_fn_append ac_header_list " sys/stat.h"
3338 as_fn_append ac_header_list " features.h"
3339 as_fn_append ac_func_list " iswcntrl"
3340 # Check that the precious variables saved in the cache have kept the same
3341 # value.
3342 ac_cache_corrupted=false
3343 for ac_var in $ac_precious_vars; do
3344 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3345 eval ac_new_set=\$ac_env_${ac_var}_set
3346 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3347 eval ac_new_val=\$ac_env_${ac_var}_value
3348 case $ac_old_set,$ac_new_set in
3349 set,)
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3351 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3352 ac_cache_corrupted=: ;;
3353 ,set)
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3355 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3356 ac_cache_corrupted=: ;;
3357 ,);;
3358 *)
3359 if test "x$ac_old_val" != "x$ac_new_val"; then
3360 # differences in whitespace do not lead to failure.
3361 ac_old_val_w=`echo x $ac_old_val`
3362 ac_new_val_w=`echo x $ac_new_val`
3363 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3365 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3366 ac_cache_corrupted=:
3367 else
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3369 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3370 eval $ac_var=\$ac_old_val
3371 fi
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3373 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3375 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3376 fi;;
3377 esac
3378 # Pass precious variables to config.status.
3379 if test "$ac_new_set" = set; then
3380 case $ac_new_val in
3381 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3382 *) ac_arg=$ac_var=$ac_new_val ;;
3383 esac
3384 case " $ac_configure_args " in
3385 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3386 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3387 esac
3388 fi
3389 done
3390 if $ac_cache_corrupted; then
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3394 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3395 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3396 fi
3397 ## -------------------- ##
3398 ## Main body of script. ##
3399 ## -------------------- ##
3400
3401 ac_ext=c
3402 ac_cpp='$CPP $CPPFLAGS'
3403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3406
3407
3408 ac_config_headers="$ac_config_headers config.h:config.in"
3409
3410
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3412 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3413 # Check whether --enable-maintainer-mode was given.
3414 if test "${enable_maintainer_mode+set}" = set; then :
3415 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3416 else
3417 USE_MAINTAINER_MODE=no
3418 fi
3419
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3421 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3422 if test $USE_MAINTAINER_MODE = yes; then
3423 MAINTAINER_MODE_TRUE=
3424 MAINTAINER_MODE_FALSE='#'
3425 else
3426 MAINTAINER_MODE_TRUE='#'
3427 MAINTAINER_MODE_FALSE=
3428 fi
3429
3430 MAINT=$MAINTAINER_MODE_TRUE
3431
3432
3433
3434 ac_ext=c
3435 ac_cpp='$CPP $CPPFLAGS'
3436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3439 if test -n "$ac_tool_prefix"; then
3440 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3441 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3443 $as_echo_n "checking for $ac_word... " >&6; }
3444 if test "${ac_cv_prog_CC+set}" = set; then :
3445 $as_echo_n "(cached) " >&6
3446 else
3447 if test -n "$CC"; then
3448 ac_cv_prog_CC="$CC" # Let the user override the test.
3449 else
3450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451 for as_dir in $PATH
3452 do
3453 IFS=$as_save_IFS
3454 test -z "$as_dir" && as_dir=.
3455 for ac_exec_ext in '' $ac_executable_extensions; do
3456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3457 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 break 2
3460 fi
3461 done
3462 done
3463 IFS=$as_save_IFS
3464
3465 fi
3466 fi
3467 CC=$ac_cv_prog_CC
3468 if test -n "$CC"; then
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3470 $as_echo "$CC" >&6; }
3471 else
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473 $as_echo "no" >&6; }
3474 fi
3475
3476
3477 fi
3478 if test -z "$ac_cv_prog_CC"; then
3479 ac_ct_CC=$CC
3480 # Extract the first word of "gcc", so it can be a program name with args.
3481 set dummy gcc; ac_word=$2
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3483 $as_echo_n "checking for $ac_word... " >&6; }
3484 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3485 $as_echo_n "(cached) " >&6
3486 else
3487 if test -n "$ac_ct_CC"; then
3488 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3489 else
3490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3491 for as_dir in $PATH
3492 do
3493 IFS=$as_save_IFS
3494 test -z "$as_dir" && as_dir=.
3495 for ac_exec_ext in '' $ac_executable_extensions; do
3496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3497 ac_cv_prog_ac_ct_CC="gcc"
3498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3499 break 2
3500 fi
3501 done
3502 done
3503 IFS=$as_save_IFS
3504
3505 fi
3506 fi
3507 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3508 if test -n "$ac_ct_CC"; then
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3510 $as_echo "$ac_ct_CC" >&6; }
3511 else
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3513 $as_echo "no" >&6; }
3514 fi
3515
3516 if test "x$ac_ct_CC" = x; then
3517 CC=""
3518 else
3519 case $cross_compiling:$ac_tool_warned in
3520 yes:)
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3523 ac_tool_warned=yes ;;
3524 esac
3525 CC=$ac_ct_CC
3526 fi
3527 else
3528 CC="$ac_cv_prog_CC"
3529 fi
3530
3531 if test -z "$CC"; then
3532 if test -n "$ac_tool_prefix"; then
3533 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3534 set dummy ${ac_tool_prefix}cc; ac_word=$2
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536 $as_echo_n "checking for $ac_word... " >&6; }
3537 if test "${ac_cv_prog_CC+set}" = set; then :
3538 $as_echo_n "(cached) " >&6
3539 else
3540 if test -n "$CC"; then
3541 ac_cv_prog_CC="$CC" # Let the user override the test.
3542 else
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544 for as_dir in $PATH
3545 do
3546 IFS=$as_save_IFS
3547 test -z "$as_dir" && as_dir=.
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3550 ac_cv_prog_CC="${ac_tool_prefix}cc"
3551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3552 break 2
3553 fi
3554 done
3555 done
3556 IFS=$as_save_IFS
3557
3558 fi
3559 fi
3560 CC=$ac_cv_prog_CC
3561 if test -n "$CC"; then
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3563 $as_echo "$CC" >&6; }
3564 else
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 $as_echo "no" >&6; }
3567 fi
3568
3569
3570 fi
3571 fi
3572 if test -z "$CC"; then
3573 # Extract the first word of "cc", so it can be a program name with args.
3574 set dummy cc; ac_word=$2
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3576 $as_echo_n "checking for $ac_word... " >&6; }
3577 if test "${ac_cv_prog_CC+set}" = set; then :
3578 $as_echo_n "(cached) " >&6
3579 else
3580 if test -n "$CC"; then
3581 ac_cv_prog_CC="$CC" # Let the user override the test.
3582 else
3583 ac_prog_rejected=no
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 for as_dir in $PATH
3586 do
3587 IFS=$as_save_IFS
3588 test -z "$as_dir" && as_dir=.
3589 for ac_exec_ext in '' $ac_executable_extensions; do
3590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3591 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3592 ac_prog_rejected=yes
3593 continue
3594 fi
3595 ac_cv_prog_CC="cc"
3596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3597 break 2
3598 fi
3599 done
3600 done
3601 IFS=$as_save_IFS
3602
3603 if test $ac_prog_rejected = yes; then
3604 # We found a bogon in the path, so make sure we never use it.
3605 set dummy $ac_cv_prog_CC
3606 shift
3607 if test $# != 0; then
3608 # We chose a different compiler from the bogus one.
3609 # However, it has the same basename, so the bogon will be chosen
3610 # first if we set CC to just the basename; use the full file name.
3611 shift
3612 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3613 fi
3614 fi
3615 fi
3616 fi
3617 CC=$ac_cv_prog_CC
3618 if test -n "$CC"; then
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3620 $as_echo "$CC" >&6; }
3621 else
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623 $as_echo "no" >&6; }
3624 fi
3625
3626
3627 fi
3628 if test -z "$CC"; then
3629 if test -n "$ac_tool_prefix"; then
3630 for ac_prog in cl.exe
3631 do
3632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3633 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635 $as_echo_n "checking for $ac_word... " >&6; }
3636 if test "${ac_cv_prog_CC+set}" = set; then :
3637 $as_echo_n "(cached) " >&6
3638 else
3639 if test -n "$CC"; then
3640 ac_cv_prog_CC="$CC" # Let the user override the test.
3641 else
3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3643 for as_dir in $PATH
3644 do
3645 IFS=$as_save_IFS
3646 test -z "$as_dir" && as_dir=.
3647 for ac_exec_ext in '' $ac_executable_extensions; do
3648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3649 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 break 2
3652 fi
3653 done
3654 done
3655 IFS=$as_save_IFS
3656
3657 fi
3658 fi
3659 CC=$ac_cv_prog_CC
3660 if test -n "$CC"; then
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3662 $as_echo "$CC" >&6; }
3663 else
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3665 $as_echo "no" >&6; }
3666 fi
3667
3668
3669 test -n "$CC" && break
3670 done
3671 fi
3672 if test -z "$CC"; then
3673 ac_ct_CC=$CC
3674 for ac_prog in cl.exe
3675 do
3676 # Extract the first word of "$ac_prog", so it can be a program name with args.
3677 set dummy $ac_prog; ac_word=$2
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3679 $as_echo_n "checking for $ac_word... " >&6; }
3680 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3681 $as_echo_n "(cached) " >&6
3682 else
3683 if test -n "$ac_ct_CC"; then
3684 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3685 else
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687 for as_dir in $PATH
3688 do
3689 IFS=$as_save_IFS
3690 test -z "$as_dir" && as_dir=.
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3693 ac_cv_prog_ac_ct_CC="$ac_prog"
3694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3695 break 2
3696 fi
3697 done
3698 done
3699 IFS=$as_save_IFS
3700
3701 fi
3702 fi
3703 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3704 if test -n "$ac_ct_CC"; then
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3706 $as_echo "$ac_ct_CC" >&6; }
3707 else
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3709 $as_echo "no" >&6; }
3710 fi
3711
3712
3713 test -n "$ac_ct_CC" && break
3714 done
3715
3716 if test "x$ac_ct_CC" = x; then
3717 CC=""
3718 else
3719 case $cross_compiling:$ac_tool_warned in
3720 yes:)
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3722 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3723 ac_tool_warned=yes ;;
3724 esac
3725 CC=$ac_ct_CC
3726 fi
3727 fi
3728
3729 fi
3730
3731
3732 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3734 as_fn_error "no acceptable C compiler found in \$PATH
3735 See \`config.log' for more details." "$LINENO" 5; }
3736
3737 # Provide some information about the compiler.
3738 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3739 set X $ac_compile
3740 ac_compiler=$2
3741 for ac_option in --version -v -V -qversion; do
3742 { { ac_try="$ac_compiler $ac_option >&5"
3743 case "(($ac_try" in
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3746 esac
3747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3748 $as_echo "$ac_try_echo"; } >&5
3749 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3750 ac_status=$?
3751 if test -s conftest.err; then
3752 sed '10a\
3753 ... rest of stderr output deleted ...
3754 10q' conftest.err >conftest.er1
3755 cat conftest.er1 >&5
3756 rm -f conftest.er1 conftest.err
3757 fi
3758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3759 test $ac_status = 0; }
3760 done
3761
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3764 #include <stdio.h>
3765 int
3766 main ()
3767 {
3768 FILE *f = fopen ("conftest.out", "w");
3769 return ferror (f) || fclose (f) != 0;
3770
3771 ;
3772 return 0;
3773 }
3774 _ACEOF
3775 ac_clean_files_save=$ac_clean_files
3776 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3777 # Try to create an executable without -o first, disregard a.out.
3778 # It will help us diagnose broken compilers, and finding out an intuition
3779 # of exeext.
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3781 $as_echo_n "checking for C compiler default output file name... " >&6; }
3782 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3783
3784 # The possible output files:
3785 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3786
3787 ac_rmfiles=
3788 for ac_file in $ac_files
3789 do
3790 case $ac_file in
3791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3792 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3793 esac
3794 done
3795 rm -f $ac_rmfiles
3796
3797 if { { ac_try="$ac_link_default"
3798 case "(($ac_try" in
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3801 esac
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804 (eval "$ac_link_default") 2>&5
3805 ac_status=$?
3806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3807 test $ac_status = 0; }; then :
3808 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3809 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3810 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3811 # so that the user can short-circuit this test for compilers unknown to
3812 # Autoconf.
3813 for ac_file in $ac_files ''
3814 do
3815 test -f "$ac_file" || continue
3816 case $ac_file in
3817 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3818 ;;
3819 [ab].out )
3820 # We found the default executable, but exeext='' is most
3821 # certainly right.
3822 break;;
3823 *.* )
3824 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3825 then :; else
3826 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3827 fi
3828 # We set ac_cv_exeext here because the later test for it is not
3829 # safe: cross compilers may not add the suffix if given an `-o'
3830 # argument, so we may need to know it at that point already.
3831 # Even if this section looks crufty: it has the advantage of
3832 # actually working.
3833 break;;
3834 * )
3835 break;;
3836 esac
3837 done
3838 test "$ac_cv_exeext" = no && ac_cv_exeext=
3839
3840 else
3841 ac_file=''
3842 fi
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3844 $as_echo "$ac_file" >&6; }
3845 if test -z "$ac_file"; then :
3846 $as_echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3848
3849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3851 { as_fn_set_status 77
3852 as_fn_error "C compiler cannot create executables
3853 See \`config.log' for more details." "$LINENO" 5; }; }
3854 fi
3855 ac_exeext=$ac_cv_exeext
3856
3857 # Check that the compiler produces executables we can run. If not, either
3858 # the compiler is broken, or we cross compile.
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3860 $as_echo_n "checking whether the C compiler works... " >&6; }
3861 # If not cross compiling, check that we can run a simple program.
3862 if test "$cross_compiling" != yes; then
3863 if { ac_try='./$ac_file'
3864 { { case "(($ac_try" in
3865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866 *) ac_try_echo=$ac_try;;
3867 esac
3868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3869 $as_echo "$ac_try_echo"; } >&5
3870 (eval "$ac_try") 2>&5
3871 ac_status=$?
3872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3873 test $ac_status = 0; }; }; then
3874 cross_compiling=no
3875 else
3876 if test "$cross_compiling" = maybe; then
3877 cross_compiling=yes
3878 else
3879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3881 as_fn_error "cannot run C compiled programs.
3882 If you meant to cross compile, use \`--host'.
3883 See \`config.log' for more details." "$LINENO" 5; }
3884 fi
3885 fi
3886 fi
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3888 $as_echo "yes" >&6; }
3889
3890 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3891 ac_clean_files=$ac_clean_files_save
3892 # Check that the compiler produces executables we can run. If not, either
3893 # the compiler is broken, or we cross compile.
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3895 $as_echo_n "checking whether we are cross compiling... " >&6; }
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3897 $as_echo "$cross_compiling" >&6; }
3898
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3900 $as_echo_n "checking for suffix of executables... " >&6; }
3901 if { { ac_try="$ac_link"
3902 case "(($ac_try" in
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3905 esac
3906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3907 $as_echo "$ac_try_echo"; } >&5
3908 (eval "$ac_link") 2>&5
3909 ac_status=$?
3910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3911 test $ac_status = 0; }; then :
3912 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3913 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3914 # work properly (i.e., refer to `conftest.exe'), while it won't with
3915 # `rm'.
3916 for ac_file in conftest.exe conftest conftest.*; do
3917 test -f "$ac_file" || continue
3918 case $ac_file in
3919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3920 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3921 break;;
3922 * ) break;;
3923 esac
3924 done
3925 else
3926 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3928 as_fn_error "cannot compute suffix of executables: cannot compile and link
3929 See \`config.log' for more details." "$LINENO" 5; }
3930 fi
3931 rm -f conftest$ac_cv_exeext
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3933 $as_echo "$ac_cv_exeext" >&6; }
3934
3935 rm -f conftest.$ac_ext
3936 EXEEXT=$ac_cv_exeext
3937 ac_exeext=$EXEEXT
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3939 $as_echo_n "checking for suffix of object files... " >&6; }
3940 if test "${ac_cv_objext+set}" = set; then :
3941 $as_echo_n "(cached) " >&6
3942 else
3943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h. */
3945
3946 int
3947 main ()
3948 {
3949
3950 ;
3951 return 0;
3952 }
3953 _ACEOF
3954 rm -f conftest.o conftest.obj
3955 if { { ac_try="$ac_compile"
3956 case "(($ac_try" in
3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;;
3959 esac
3960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3961 $as_echo "$ac_try_echo"; } >&5
3962 (eval "$ac_compile") 2>&5
3963 ac_status=$?
3964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3965 test $ac_status = 0; }; then :
3966 for ac_file in conftest.o conftest.obj conftest.*; do
3967 test -f "$ac_file" || continue;
3968 case $ac_file in
3969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3970 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3971 break;;
3972 esac
3973 done
3974 else
3975 $as_echo "$as_me: failed program was:" >&5
3976 sed 's/^/| /' conftest.$ac_ext >&5
3977
3978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3980 as_fn_error "cannot compute suffix of object files: cannot compile
3981 See \`config.log' for more details." "$LINENO" 5; }
3982 fi
3983 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3984 fi
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3986 $as_echo "$ac_cv_objext" >&6; }
3987 OBJEXT=$ac_cv_objext
3988 ac_objext=$OBJEXT
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3990 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3991 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3992 $as_echo_n "(cached) " >&6
3993 else
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995 /* end confdefs.h. */
3996
3997 int
3998 main ()
3999 {
4000 #ifndef __GNUC__
4001 choke me
4002 #endif
4003
4004 ;
4005 return 0;
4006 }
4007 _ACEOF
4008 if ac_fn_c_try_compile "$LINENO"; then :
4009 ac_compiler_gnu=yes
4010 else
4011 ac_compiler_gnu=no
4012 fi
4013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4015
4016 fi
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4018 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4019 if test $ac_compiler_gnu = yes; then
4020 GCC=yes
4021 else
4022 GCC=
4023 fi
4024 ac_test_CFLAGS=${CFLAGS+set}
4025 ac_save_CFLAGS=$CFLAGS
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4027 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4028 if test "${ac_cv_prog_cc_g+set}" = set; then :
4029 $as_echo_n "(cached) " >&6
4030 else
4031 ac_save_c_werror_flag=$ac_c_werror_flag
4032 ac_c_werror_flag=yes
4033 ac_cv_prog_cc_g=no
4034 CFLAGS="-g"
4035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4036 /* end confdefs.h. */
4037
4038 int
4039 main ()
4040 {
4041
4042 ;
4043 return 0;
4044 }
4045 _ACEOF
4046 if ac_fn_c_try_compile "$LINENO"; then :
4047 ac_cv_prog_cc_g=yes
4048 else
4049 CFLAGS=""
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4052
4053 int
4054 main ()
4055 {
4056
4057 ;
4058 return 0;
4059 }
4060 _ACEOF
4061 if ac_fn_c_try_compile "$LINENO"; then :
4062
4063 else
4064 ac_c_werror_flag=$ac_save_c_werror_flag
4065 CFLAGS="-g"
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h. */
4068
4069 int
4070 main ()
4071 {
4072
4073 ;
4074 return 0;
4075 }
4076 _ACEOF
4077 if ac_fn_c_try_compile "$LINENO"; then :
4078 ac_cv_prog_cc_g=yes
4079 fi
4080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4081 fi
4082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4083 fi
4084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4085 ac_c_werror_flag=$ac_save_c_werror_flag
4086 fi
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4088 $as_echo "$ac_cv_prog_cc_g" >&6; }
4089 if test "$ac_test_CFLAGS" = set; then
4090 CFLAGS=$ac_save_CFLAGS
4091 elif test $ac_cv_prog_cc_g = yes; then
4092 if test "$GCC" = yes; then
4093 CFLAGS="-g -O2"
4094 else
4095 CFLAGS="-g"
4096 fi
4097 else
4098 if test "$GCC" = yes; then
4099 CFLAGS="-O2"
4100 else
4101 CFLAGS=
4102 fi
4103 fi
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4105 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4106 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4107 $as_echo_n "(cached) " >&6
4108 else
4109 ac_cv_prog_cc_c89=no
4110 ac_save_CC=$CC
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4113 #include <stdarg.h>
4114 #include <stdio.h>
4115 #include <sys/types.h>
4116 #include <sys/stat.h>
4117 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4118 struct buf { int x; };
4119 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4120 static char *e (p, i)
4121 char **p;
4122 int i;
4123 {
4124 return p[i];
4125 }
4126 static char *f (char * (*g) (char **, int), char **p, ...)
4127 {
4128 char *s;
4129 va_list v;
4130 va_start (v,p);
4131 s = g (p, va_arg (v,int));
4132 va_end (v);
4133 return s;
4134 }
4135
4136 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4137 function prototypes and stuff, but not '\xHH' hex character constants.
4138 These don't provoke an error unfortunately, instead are silently treated
4139 as 'x'. The following induces an error, until -std is added to get
4140 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4141 array size at least. It's necessary to write '\x00'==0 to get something
4142 that's true only with -std. */
4143 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4144
4145 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4146 inside strings and character constants. */
4147 #define FOO(x) 'x'
4148 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4149
4150 int test (int i, double x);
4151 struct s1 {int (*f) (int a);};
4152 struct s2 {int (*f) (double a);};
4153 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4154 int argc;
4155 char **argv;
4156 int
4157 main ()
4158 {
4159 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4160 ;
4161 return 0;
4162 }
4163 _ACEOF
4164 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4165 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4166 do
4167 CC="$ac_save_CC $ac_arg"
4168 if ac_fn_c_try_compile "$LINENO"; then :
4169 ac_cv_prog_cc_c89=$ac_arg
4170 fi
4171 rm -f core conftest.err conftest.$ac_objext
4172 test "x$ac_cv_prog_cc_c89" != "xno" && break
4173 done
4174 rm -f conftest.$ac_ext
4175 CC=$ac_save_CC
4176
4177 fi
4178 # AC_CACHE_VAL
4179 case "x$ac_cv_prog_cc_c89" in
4180 x)
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4182 $as_echo "none needed" >&6; } ;;
4183 xno)
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4185 $as_echo "unsupported" >&6; } ;;
4186 *)
4187 CC="$CC $ac_cv_prog_cc_c89"
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4189 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4190 esac
4191 if test "x$ac_cv_prog_cc_c89" != xno; then :
4192
4193 fi
4194
4195 ac_ext=c
4196 ac_cpp='$CPP $CPPFLAGS'
4197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4200
4201
4202 ac_ext=c
4203 ac_cpp='$CPP $CPPFLAGS'
4204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4208 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4209 # On Suns, sometimes $CPP names a directory.
4210 if test -n "$CPP" && test -d "$CPP"; then
4211 CPP=
4212 fi
4213 if test -z "$CPP"; then
4214 if test "${ac_cv_prog_CPP+set}" = set; then :
4215 $as_echo_n "(cached) " >&6
4216 else
4217 # Double quotes because CPP needs to be expanded
4218 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4219 do
4220 ac_preproc_ok=false
4221 for ac_c_preproc_warn_flag in '' yes
4222 do
4223 # Use a header file that comes with gcc, so configuring glibc
4224 # with a fresh cross-compiler works.
4225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4226 # <limits.h> exists even on freestanding compilers.
4227 # On the NeXT, cc -E runs the code through the compiler's parser,
4228 # not just through cpp. "Syntax error" is here to catch this case.
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230 /* end confdefs.h. */
4231 #ifdef __STDC__
4232 # include <limits.h>
4233 #else
4234 # include <assert.h>
4235 #endif
4236 Syntax error
4237 _ACEOF
4238 if ac_fn_c_try_cpp "$LINENO"; then :
4239
4240 else
4241 # Broken: fails on valid input.
4242 continue
4243 fi
4244 rm -f conftest.err conftest.$ac_ext
4245
4246 # OK, works on sane cases. Now check whether nonexistent headers
4247 # can be detected and how.
4248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4249 /* end confdefs.h. */
4250 #include <ac_nonexistent.h>
4251 _ACEOF
4252 if ac_fn_c_try_cpp "$LINENO"; then :
4253 # Broken: success on invalid input.
4254 continue
4255 else
4256 # Passes both tests.
4257 ac_preproc_ok=:
4258 break
4259 fi
4260 rm -f conftest.err conftest.$ac_ext
4261
4262 done
4263 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4264 rm -f conftest.err conftest.$ac_ext
4265 if $ac_preproc_ok; then :
4266 break
4267 fi
4268
4269 done
4270 ac_cv_prog_CPP=$CPP
4271
4272 fi
4273 CPP=$ac_cv_prog_CPP
4274 else
4275 ac_cv_prog_CPP=$CPP
4276 fi
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4278 $as_echo "$CPP" >&6; }
4279 ac_preproc_ok=false
4280 for ac_c_preproc_warn_flag in '' yes
4281 do
4282 # Use a header file that comes with gcc, so configuring glibc
4283 # with a fresh cross-compiler works.
4284 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4285 # <limits.h> exists even on freestanding compilers.
4286 # On the NeXT, cc -E runs the code through the compiler's parser,
4287 # not just through cpp. "Syntax error" is here to catch this case.
4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h. */
4290 #ifdef __STDC__
4291 # include <limits.h>
4292 #else
4293 # include <assert.h>
4294 #endif
4295 Syntax error
4296 _ACEOF
4297 if ac_fn_c_try_cpp "$LINENO"; then :
4298
4299 else
4300 # Broken: fails on valid input.
4301 continue
4302 fi
4303 rm -f conftest.err conftest.$ac_ext
4304
4305 # OK, works on sane cases. Now check whether nonexistent headers
4306 # can be detected and how.
4307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308 /* end confdefs.h. */
4309 #include <ac_nonexistent.h>
4310 _ACEOF
4311 if ac_fn_c_try_cpp "$LINENO"; then :
4312 # Broken: success on invalid input.
4313 continue
4314 else
4315 # Passes both tests.
4316 ac_preproc_ok=:
4317 break
4318 fi
4319 rm -f conftest.err conftest.$ac_ext
4320
4321 done
4322 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4323 rm -f conftest.err conftest.$ac_ext
4324 if $ac_preproc_ok; then :
4325
4326 else
4327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4328 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4329 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4330 See \`config.log' for more details." "$LINENO" 5; }
4331 fi
4332
4333 ac_ext=c
4334 ac_cpp='$CPP $CPPFLAGS'
4335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4338
4339
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4341 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4342 if test "${ac_cv_path_GREP+set}" = set; then :
4343 $as_echo_n "(cached) " >&6
4344 else
4345 if test -z "$GREP"; then
4346 ac_path_GREP_found=false
4347 # Loop through the user's path and test for each of PROGNAME-LIST
4348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4350 do
4351 IFS=$as_save_IFS
4352 test -z "$as_dir" && as_dir=.
4353 for ac_prog in grep ggrep; do
4354 for ac_exec_ext in '' $ac_executable_extensions; do
4355 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4356 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4357 # Check for GNU ac_path_GREP and select it if it is found.
4358 # Check for GNU $ac_path_GREP
4359 case `"$ac_path_GREP" --version 2>&1` in
4360 *GNU*)
4361 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4362 *)
4363 ac_count=0
4364 $as_echo_n 0123456789 >"conftest.in"
4365 while :
4366 do
4367 cat "conftest.in" "conftest.in" >"conftest.tmp"
4368 mv "conftest.tmp" "conftest.in"
4369 cp "conftest.in" "conftest.nl"
4370 $as_echo 'GREP' >> "conftest.nl"
4371 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4372 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4373 as_fn_arith $ac_count + 1 && ac_count=$as_val
4374 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4375 # Best one so far, save it but keep looking for a better one
4376 ac_cv_path_GREP="$ac_path_GREP"
4377 ac_path_GREP_max=$ac_count
4378 fi
4379 # 10*(2^10) chars as input seems more than enough
4380 test $ac_count -gt 10 && break
4381 done
4382 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4383 esac
4384
4385 $ac_path_GREP_found && break 3
4386 done
4387 done
4388 done
4389 IFS=$as_save_IFS
4390 if test -z "$ac_cv_path_GREP"; then
4391 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4392 fi
4393 else
4394 ac_cv_path_GREP=$GREP
4395 fi
4396
4397 fi
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4399 $as_echo "$ac_cv_path_GREP" >&6; }
4400 GREP="$ac_cv_path_GREP"
4401
4402
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4404 $as_echo_n "checking for egrep... " >&6; }
4405 if test "${ac_cv_path_EGREP+set}" = set; then :
4406 $as_echo_n "(cached) " >&6
4407 else
4408 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4409 then ac_cv_path_EGREP="$GREP -E"
4410 else
4411 if test -z "$EGREP"; then
4412 ac_path_EGREP_found=false
4413 # Loop through the user's path and test for each of PROGNAME-LIST
4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4416 do
4417 IFS=$as_save_IFS
4418 test -z "$as_dir" && as_dir=.
4419 for ac_prog in egrep; do
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4422 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4423 # Check for GNU ac_path_EGREP and select it if it is found.
4424 # Check for GNU $ac_path_EGREP
4425 case `"$ac_path_EGREP" --version 2>&1` in
4426 *GNU*)
4427 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4428 *)
4429 ac_count=0
4430 $as_echo_n 0123456789 >"conftest.in"
4431 while :
4432 do
4433 cat "conftest.in" "conftest.in" >"conftest.tmp"
4434 mv "conftest.tmp" "conftest.in"
4435 cp "conftest.in" "conftest.nl"
4436 $as_echo 'EGREP' >> "conftest.nl"
4437 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4438 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4439 as_fn_arith $ac_count + 1 && ac_count=$as_val
4440 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4441 # Best one so far, save it but keep looking for a better one
4442 ac_cv_path_EGREP="$ac_path_EGREP"
4443 ac_path_EGREP_max=$ac_count
4444 fi
4445 # 10*(2^10) chars as input seems more than enough
4446 test $ac_count -gt 10 && break
4447 done
4448 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4449 esac
4450
4451 $ac_path_EGREP_found && break 3
4452 done
4453 done
4454 done
4455 IFS=$as_save_IFS
4456 if test -z "$ac_cv_path_EGREP"; then
4457 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4458 fi
4459 else
4460 ac_cv_path_EGREP=$EGREP
4461 fi
4462
4463 fi
4464 fi
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4466 $as_echo "$ac_cv_path_EGREP" >&6; }
4467 EGREP="$ac_cv_path_EGREP"
4468
4469
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4471 $as_echo_n "checking for ANSI C header files... " >&6; }
4472 if test "${ac_cv_header_stdc+set}" = set; then :
4473 $as_echo_n "(cached) " >&6
4474 else
4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476 /* end confdefs.h. */
4477 #include <stdlib.h>
4478 #include <stdarg.h>
4479 #include <string.h>
4480 #include <float.h>
4481
4482 int
4483 main ()
4484 {
4485
4486 ;
4487 return 0;
4488 }
4489 _ACEOF
4490 if ac_fn_c_try_compile "$LINENO"; then :
4491 ac_cv_header_stdc=yes
4492 else
4493 ac_cv_header_stdc=no
4494 fi
4495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4496
4497 if test $ac_cv_header_stdc = yes; then
4498 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500 /* end confdefs.h. */
4501 #include <string.h>
4502
4503 _ACEOF
4504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4505 $EGREP "memchr" >/dev/null 2>&1; then :
4506
4507 else
4508 ac_cv_header_stdc=no
4509 fi
4510 rm -f conftest*
4511
4512 fi
4513
4514 if test $ac_cv_header_stdc = yes; then
4515 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4518 #include <stdlib.h>
4519
4520 _ACEOF
4521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4522 $EGREP "free" >/dev/null 2>&1; then :
4523
4524 else
4525 ac_cv_header_stdc=no
4526 fi
4527 rm -f conftest*
4528
4529 fi
4530
4531 if test $ac_cv_header_stdc = yes; then
4532 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4533 if test "$cross_compiling" = yes; then :
4534 :
4535 else
4536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4538 #include <ctype.h>
4539 #include <stdlib.h>
4540 #if ((' ' & 0x0FF) == 0x020)
4541 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4542 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4543 #else
4544 # define ISLOWER(c) \
4545 (('a' <= (c) && (c) <= 'i') \
4546 || ('j' <= (c) && (c) <= 'r') \
4547 || ('s' <= (c) && (c) <= 'z'))
4548 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4549 #endif
4550
4551 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4552 int
4553 main ()
4554 {
4555 int i;
4556 for (i = 0; i < 256; i++)
4557 if (XOR (islower (i), ISLOWER (i))
4558 || toupper (i) != TOUPPER (i))
4559 return 2;
4560 return 0;
4561 }
4562 _ACEOF
4563 if ac_fn_c_try_run "$LINENO"; then :
4564
4565 else
4566 ac_cv_header_stdc=no
4567 fi
4568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4569 conftest.$ac_objext conftest.beam conftest.$ac_ext
4570 fi
4571
4572 fi
4573 fi
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4575 $as_echo "$ac_cv_header_stdc" >&6; }
4576 if test $ac_cv_header_stdc = yes; then
4577
4578 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4579
4580 fi
4581
4582 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4583 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4584 inttypes.h stdint.h unistd.h
4585 do :
4586 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4587 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4588 "
4589 eval as_val=\$$as_ac_Header
4590 if test "x$as_val" = x""yes; then :
4591 cat >>confdefs.h <<_ACEOF
4592 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4593 _ACEOF
4594
4595 fi
4596
4597 done
4598
4599
4600
4601 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4602 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4603 MINIX=yes
4604 else
4605 MINIX=
4606 fi
4607
4608
4609 if test "$MINIX" = yes; then
4610
4611 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4612
4613
4614 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4615
4616
4617 $as_echo "#define _MINIX 1" >>confdefs.h
4618
4619
4620 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4621
4622 fi
4623
4624
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4626 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4627 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4628 $as_echo_n "(cached) " >&6
4629 else
4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h. */
4632
4633 # define __EXTENSIONS__ 1
4634 $ac_includes_default
4635 int
4636 main ()
4637 {
4638
4639 ;
4640 return 0;
4641 }
4642 _ACEOF
4643 if ac_fn_c_try_compile "$LINENO"; then :
4644 ac_cv_safe_to_define___extensions__=yes
4645 else
4646 ac_cv_safe_to_define___extensions__=no
4647 fi
4648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4649 fi
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4651 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4652 test $ac_cv_safe_to_define___extensions__ = yes &&
4653 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4654
4655 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4656
4657 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4658
4659 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4660
4661 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4662
4663 $as_echo "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4664
4665 $as_echo "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4666
4667 $as_echo "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4668
4669 $as_echo "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4670
4671 $as_echo "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4672
4673 $as_echo "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4674
4675 $as_echo "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4676
4677 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4678
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4680 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4681 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
4682 $as_echo_n "(cached) " >&6
4683 else
4684 ac_cv_should_define__xopen_source=no
4685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686 /* end confdefs.h. */
4687
4688 #include <wchar.h>
4689 mbstate_t x;
4690 int
4691 main ()
4692 {
4693
4694 ;
4695 return 0;
4696 }
4697 _ACEOF
4698 if ac_fn_c_try_compile "$LINENO"; then :
4699
4700 else
4701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702 /* end confdefs.h. */
4703
4704 #define _XOPEN_SOURCE 500
4705 #include <wchar.h>
4706 mbstate_t x;
4707 int
4708 main ()
4709 {
4710
4711 ;
4712 return 0;
4713 }
4714 _ACEOF
4715 if ac_fn_c_try_compile "$LINENO"; then :
4716 ac_cv_should_define__xopen_source=yes
4717 fi
4718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4719 fi
4720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4721 fi
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4723 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
4724 test $ac_cv_should_define__xopen_source = yes &&
4725 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4738 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4739 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4740 $as_echo_n "(cached) " >&6
4741 else
4742
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4745
4746 #ifdef __ACK__
4747 Amsterdam
4748 #endif
4749
4750 _ACEOF
4751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4752 $EGREP "Amsterdam" >/dev/null 2>&1; then :
4753 gl_cv_c_amsterdam_compiler=yes
4754 else
4755 gl_cv_c_amsterdam_compiler=no
4756 fi
4757 rm -f conftest*
4758
4759
4760 fi
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4762 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4763
4764 if test $gl_cv_c_amsterdam_compiler = yes; then
4765 if test -z "$AR"; then
4766 AR='cc -c.a'
4767 fi
4768 if test -z "$ARFLAGS"; then
4769 ARFLAGS='-o'
4770 fi
4771 else
4772 :
4773 fi
4774
4775 if test -n "$ac_tool_prefix"; then
4776 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4777 set dummy ${ac_tool_prefix}ar; ac_word=$2
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4779 $as_echo_n "checking for $ac_word... " >&6; }
4780 if test "${ac_cv_prog_AR+set}" = set; then :
4781 $as_echo_n "(cached) " >&6
4782 else
4783 if test -n "$AR"; then
4784 ac_cv_prog_AR="$AR" # Let the user override the test.
4785 else
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH
4788 do
4789 IFS=$as_save_IFS
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4793 ac_cv_prog_AR="${ac_tool_prefix}ar"
4794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 break 2
4796 fi
4797 done
4798 done
4799 IFS=$as_save_IFS
4800
4801 fi
4802 fi
4803 AR=$ac_cv_prog_AR
4804 if test -n "$AR"; then
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4806 $as_echo "$AR" >&6; }
4807 else
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809 $as_echo "no" >&6; }
4810 fi
4811
4812
4813 fi
4814 if test -z "$ac_cv_prog_AR"; then
4815 ac_ct_AR=$AR
4816 # Extract the first word of "ar", so it can be a program name with args.
4817 set dummy ar; ac_word=$2
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 $as_echo_n "checking for $ac_word... " >&6; }
4820 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4821 $as_echo_n "(cached) " >&6
4822 else
4823 if test -n "$ac_ct_AR"; then
4824 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4825 else
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4828 do
4829 IFS=$as_save_IFS
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833 ac_cv_prog_ac_ct_AR="ar"
4834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 break 2
4836 fi
4837 done
4838 done
4839 IFS=$as_save_IFS
4840
4841 fi
4842 fi
4843 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4844 if test -n "$ac_ct_AR"; then
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4846 $as_echo "$ac_ct_AR" >&6; }
4847 else
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849 $as_echo "no" >&6; }
4850 fi
4851
4852 if test "x$ac_ct_AR" = x; then
4853 AR="ar"
4854 else
4855 case $cross_compiling:$ac_tool_warned in
4856 yes:)
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4858 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4859 ac_tool_warned=yes ;;
4860 esac
4861 AR=$ac_ct_AR
4862 fi
4863 else
4864 AR="$ac_cv_prog_AR"
4865 fi
4866
4867 if test -z "$ARFLAGS"; then
4868 ARFLAGS='cr'
4869 fi
4870
4871
4872
4873 if test -z "$RANLIB"; then
4874 if test $gl_cv_c_amsterdam_compiler = yes; then
4875 RANLIB=':'
4876 else
4877 if test -n "$ac_tool_prefix"; then
4878 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4879 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4881 $as_echo_n "checking for $ac_word... " >&6; }
4882 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4883 $as_echo_n "(cached) " >&6
4884 else
4885 if test -n "$RANLIB"; then
4886 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4887 else
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in $PATH
4890 do
4891 IFS=$as_save_IFS
4892 test -z "$as_dir" && as_dir=.
4893 for ac_exec_ext in '' $ac_executable_extensions; do
4894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4895 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4897 break 2
4898 fi
4899 done
4900 done
4901 IFS=$as_save_IFS
4902
4903 fi
4904 fi
4905 RANLIB=$ac_cv_prog_RANLIB
4906 if test -n "$RANLIB"; then
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4908 $as_echo "$RANLIB" >&6; }
4909 else
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4911 $as_echo "no" >&6; }
4912 fi
4913
4914
4915 fi
4916 if test -z "$ac_cv_prog_RANLIB"; then
4917 ac_ct_RANLIB=$RANLIB
4918 # Extract the first word of "ranlib", so it can be a program name with args.
4919 set dummy ranlib; ac_word=$2
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4921 $as_echo_n "checking for $ac_word... " >&6; }
4922 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 if test -n "$ac_ct_RANLIB"; then
4926 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4927 else
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH
4930 do
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
4933 for ac_exec_ext in '' $ac_executable_extensions; do
4934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4935 ac_cv_prog_ac_ct_RANLIB="ranlib"
4936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 break 2
4938 fi
4939 done
4940 done
4941 IFS=$as_save_IFS
4942
4943 fi
4944 fi
4945 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4946 if test -n "$ac_ct_RANLIB"; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4948 $as_echo "$ac_ct_RANLIB" >&6; }
4949 else
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 $as_echo "no" >&6; }
4952 fi
4953
4954 if test "x$ac_ct_RANLIB" = x; then
4955 RANLIB=":"
4956 else
4957 case $cross_compiling:$ac_tool_warned in
4958 yes:)
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4960 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4961 ac_tool_warned=yes ;;
4962 esac
4963 RANLIB=$ac_ct_RANLIB
4964 fi
4965 else
4966 RANLIB="$ac_cv_prog_RANLIB"
4967 fi
4968
4969 fi
4970 fi
4971
4972
4973 ac_aux_dir=
4974 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4975 for ac_t in install-sh install.sh shtool; do
4976 if test -f "$ac_dir/$ac_t"; then
4977 ac_aux_dir=$ac_dir
4978 ac_install_sh="$ac_aux_dir/$ac_t -c"
4979 break 2
4980 fi
4981 done
4982 done
4983 if test -z "$ac_aux_dir"; then
4984 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4985 fi
4986
4987 # These three variables are undocumented and unsupported,
4988 # and are intended to be withdrawn in a future Autoconf release.
4989 # They can cause serious problems if a builder's source tree is in a directory
4990 # whose full name contains unusual characters.
4991 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4992 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4993 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4994
4995
4996 # Make sure we can run config.sub.
4997 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4998 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4999
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5001 $as_echo_n "checking build system type... " >&6; }
5002 if test "${ac_cv_build+set}" = set; then :
5003 $as_echo_n "(cached) " >&6
5004 else
5005 ac_build_alias=$build_alias
5006 test "x$ac_build_alias" = x &&
5007 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5008 test "x$ac_build_alias" = x &&
5009 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5010 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5011 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5012
5013 fi
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5015 $as_echo "$ac_cv_build" >&6; }
5016 case $ac_cv_build in
5017 *-*-*) ;;
5018 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5019 esac
5020 build=$ac_cv_build
5021 ac_save_IFS=$IFS; IFS='-'
5022 set x $ac_cv_build
5023 shift
5024 build_cpu=$1
5025 build_vendor=$2
5026 shift; shift
5027 # Remember, the first character of IFS is used to create $*,
5028 # except with old shells:
5029 build_os=$*
5030 IFS=$ac_save_IFS
5031 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5032
5033
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5035 $as_echo_n "checking host system type... " >&6; }
5036 if test "${ac_cv_host+set}" = set; then :
5037 $as_echo_n "(cached) " >&6
5038 else
5039 if test "x$host_alias" = x; then
5040 ac_cv_host=$ac_cv_build
5041 else
5042 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5043 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5044 fi
5045
5046 fi
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5048 $as_echo "$ac_cv_host" >&6; }
5049 case $ac_cv_host in
5050 *-*-*) ;;
5051 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5052 esac
5053 host=$ac_cv_host
5054 ac_save_IFS=$IFS; IFS='-'
5055 set x $ac_cv_host
5056 shift
5057 host_cpu=$1
5058 host_vendor=$2
5059 shift; shift
5060 # Remember, the first character of IFS is used to create $*,
5061 # except with old shells:
5062 host_os=$*
5063 IFS=$ac_save_IFS
5064 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5065
5066
5067
5068
5069
5070 # IEEE behaviour is the default on all CPUs except Alpha and SH
5071 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
5072 # and the GCC 4.1.2 manual).
5073 case "$host_cpu" in
5074 alpha*)
5075 # On Alpha systems, a compiler option provides the behaviour.
5076 # See the ieee(3) manual page, also available at
5077 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
5078 if test -n "$GCC"; then
5079 # GCC has the option -mieee.
5080 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
5081 CPPFLAGS="$CPPFLAGS -mieee"
5082 else
5083 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
5084 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
5085 CPPFLAGS="$CPPFLAGS -ieee"
5086 fi
5087 ;;
5088 sh*)
5089 if test -n "$GCC"; then
5090 # GCC has the option -mieee.
5091 CPPFLAGS="$CPPFLAGS -mieee"
5092 fi
5093 ;;
5094 esac
5095
5096 # Check whether --enable-largefile was given.
5097 if test "${enable_largefile+set}" = set; then :
5098 enableval=$enable_largefile;
5099 fi
5100
5101 if test "$enable_largefile" != no; then
5102
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5104 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5105 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5106 $as_echo_n "(cached) " >&6
5107 else
5108 ac_cv_sys_largefile_CC=no
5109 if test "$GCC" != yes; then
5110 ac_save_CC=$CC
5111 while :; do
5112 # IRIX 6.2 and later do not support large files by default,
5113 # so use the C compiler's -n32 option if that helps.
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h. */
5116 #include <sys/types.h>
5117 /* Check that off_t can represent 2**63 - 1 correctly.
5118 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5119 since some C++ compilers masquerading as C compilers
5120 incorrectly reject 9223372036854775807. */
5121 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5122 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5123 && LARGE_OFF_T % 2147483647 == 1)
5124 ? 1 : -1];
5125 int
5126 main ()
5127 {
5128
5129 ;
5130 return 0;
5131 }
5132 _ACEOF
5133 if ac_fn_c_try_compile "$LINENO"; then :
5134 break
5135 fi
5136 rm -f core conftest.err conftest.$ac_objext
5137 CC="$CC -n32"
5138 if ac_fn_c_try_compile "$LINENO"; then :
5139 ac_cv_sys_largefile_CC=' -n32'; break
5140 fi
5141 rm -f core conftest.err conftest.$ac_objext
5142 break
5143 done
5144 CC=$ac_save_CC
5145 rm -f conftest.$ac_ext
5146 fi
5147 fi
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5149 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5150 if test "$ac_cv_sys_largefile_CC" != no; then
5151 CC=$CC$ac_cv_sys_largefile_CC
5152 fi
5153
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5155 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5156 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5157 $as_echo_n "(cached) " >&6
5158 else
5159 while :; do
5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h. */
5162 #include <sys/types.h>
5163 /* Check that off_t can represent 2**63 - 1 correctly.
5164 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5165 since some C++ compilers masquerading as C compilers
5166 incorrectly reject 9223372036854775807. */
5167 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5168 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5169 && LARGE_OFF_T % 2147483647 == 1)
5170 ? 1 : -1];
5171 int
5172 main ()
5173 {
5174
5175 ;
5176 return 0;
5177 }
5178 _ACEOF
5179 if ac_fn_c_try_compile "$LINENO"; then :
5180 ac_cv_sys_file_offset_bits=no; break
5181 fi
5182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184 /* end confdefs.h. */
5185 #define _FILE_OFFSET_BITS 64
5186 #include <sys/types.h>
5187 /* Check that off_t can represent 2**63 - 1 correctly.
5188 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5189 since some C++ compilers masquerading as C compilers
5190 incorrectly reject 9223372036854775807. */
5191 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5192 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5193 && LARGE_OFF_T % 2147483647 == 1)
5194 ? 1 : -1];
5195 int
5196 main ()
5197 {
5198
5199 ;
5200 return 0;
5201 }
5202 _ACEOF
5203 if ac_fn_c_try_compile "$LINENO"; then :
5204 ac_cv_sys_file_offset_bits=64; break
5205 fi
5206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5207 ac_cv_sys_file_offset_bits=unknown
5208 break
5209 done
5210 fi
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5212 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5213 case $ac_cv_sys_file_offset_bits in #(
5214 no | unknown) ;;
5215 *)
5216 cat >>confdefs.h <<_ACEOF
5217 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5218 _ACEOF
5219 ;;
5220 esac
5221 rm -rf conftest*
5222 if test $ac_cv_sys_file_offset_bits = unknown; then
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5224 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5225 if test "${ac_cv_sys_large_files+set}" = set; then :
5226 $as_echo_n "(cached) " >&6
5227 else
5228 while :; do
5229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5230 /* end confdefs.h. */
5231 #include <sys/types.h>
5232 /* Check that off_t can represent 2**63 - 1 correctly.
5233 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5234 since some C++ compilers masquerading as C compilers
5235 incorrectly reject 9223372036854775807. */
5236 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5237 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5238 && LARGE_OFF_T % 2147483647 == 1)
5239 ? 1 : -1];
5240 int
5241 main ()
5242 {
5243
5244 ;
5245 return 0;
5246 }
5247 _ACEOF
5248 if ac_fn_c_try_compile "$LINENO"; then :
5249 ac_cv_sys_large_files=no; break
5250 fi
5251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h. */
5254 #define _LARGE_FILES 1
5255 #include <sys/types.h>
5256 /* Check that off_t can represent 2**63 - 1 correctly.
5257 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5258 since some C++ compilers masquerading as C compilers
5259 incorrectly reject 9223372036854775807. */
5260 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5261 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5262 && LARGE_OFF_T % 2147483647 == 1)
5263 ? 1 : -1];
5264 int
5265 main ()
5266 {
5267
5268 ;
5269 return 0;
5270 }
5271 _ACEOF
5272 if ac_fn_c_try_compile "$LINENO"; then :
5273 ac_cv_sys_large_files=1; break
5274 fi
5275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5276 ac_cv_sys_large_files=unknown
5277 break
5278 done
5279 fi
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5281 $as_echo "$ac_cv_sys_large_files" >&6; }
5282 case $ac_cv_sys_large_files in #(
5283 no | unknown) ;;
5284 *)
5285 cat >>confdefs.h <<_ACEOF
5286 #define _LARGE_FILES $ac_cv_sys_large_files
5287 _ACEOF
5288 ;;
5289 esac
5290 rm -rf conftest*
5291 fi
5292
5293
5294 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
5295
5296 fi
5297
5298
5299
5300 # Pre-early section.
5301
5302
5303
5304 # Code from module absolute-header:
5305 # Code from module alloca:
5306 # Code from module alloca-opt:
5307 # Code from module canonicalize-lgpl:
5308 # Code from module chdir:
5309 # Code from module configmake:
5310 # Code from module dirent:
5311 # Code from module dirfd:
5312 # Code from module dirname-lgpl:
5313 # Code from module dosname:
5314 # Code from module double-slash-root:
5315 # Code from module environ:
5316 # Code from module errno:
5317 # Code from module extensions:
5318 # Code from module extern-inline:
5319 # Code from module flexmember:
5320 # Code from module float:
5321 # Code from module fnmatch:
5322 # Code from module fnmatch-gnu:
5323 # Code from module fpieee:
5324
5325 # Code from module fpucw:
5326 # Code from module frexp:
5327 # Code from module frexpl:
5328 # Code from module gettimeofday:
5329 # Code from module hard-locale:
5330 # Code from module include_next:
5331 # Code from module inttypes:
5332 # Code from module inttypes-incomplete:
5333 # Code from module isnand-nolibm:
5334 # Code from module isnanl-nolibm:
5335 # Code from module largefile:
5336
5337 # Code from module limits-h:
5338 # Code from module localcharset:
5339 # Code from module lstat:
5340 # Code from module malloc-posix:
5341 # Code from module malloca:
5342 # Code from module math:
5343 # Code from module mbrtowc:
5344 # Code from module mbsinit:
5345 # Code from module mbsrtowcs:
5346 # Code from module memchr:
5347 # Code from module memmem:
5348 # Code from module memmem-simple:
5349 # Code from module multiarch:
5350 # Code from module nocrash:
5351 # Code from module pathmax:
5352 # Code from module rawmemchr:
5353 # Code from module readlink:
5354 # Code from module rename:
5355 # Code from module rmdir:
5356 # Code from module same-inode:
5357 # Code from module setenv:
5358 # Code from module signal-h:
5359 # Code from module snippet/_Noreturn:
5360 # Code from module snippet/arg-nonnull:
5361 # Code from module snippet/c++defs:
5362 # Code from module snippet/warn-on-use:
5363 # Code from module ssize_t:
5364 # Code from module stat:
5365 # Code from module stdbool:
5366 # Code from module stddef:
5367 # Code from module stdint:
5368 # Code from module stdio:
5369 # Code from module stdlib:
5370 # Code from module strchrnul:
5371 # Code from module streq:
5372 # Code from module string:
5373 # Code from module strnlen1:
5374 # Code from module strstr:
5375 # Code from module strstr-simple:
5376 # Code from module strtok_r:
5377 # Code from module sys_stat:
5378 # Code from module sys_time:
5379 # Code from module sys_types:
5380 # Code from module time:
5381 # Code from module unistd:
5382 # Code from module unsetenv:
5383 # Code from module update-copyright:
5384 # Code from module verify:
5385 # Code from module wchar:
5386 # Code from module wctype-h:
5387
5388 ac_ext=c
5389 ac_cpp='$CPP $CPPFLAGS'
5390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5393 if test -n "$ac_tool_prefix"; then
5394 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5395 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397 $as_echo_n "checking for $ac_word... " >&6; }
5398 if test "${ac_cv_prog_CC+set}" = set; then :
5399 $as_echo_n "(cached) " >&6
5400 else
5401 if test -n "$CC"; then
5402 ac_cv_prog_CC="$CC" # Let the user override the test.
5403 else
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 for as_dir in $PATH
5406 do
5407 IFS=$as_save_IFS
5408 test -z "$as_dir" && as_dir=.
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5411 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5413 break 2
5414 fi
5415 done
5416 done
5417 IFS=$as_save_IFS
5418
5419 fi
5420 fi
5421 CC=$ac_cv_prog_CC
5422 if test -n "$CC"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5424 $as_echo "$CC" >&6; }
5425 else
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }
5428 fi
5429
5430
5431 fi
5432 if test -z "$ac_cv_prog_CC"; then
5433 ac_ct_CC=$CC
5434 # Extract the first word of "gcc", so it can be a program name with args.
5435 set dummy gcc; ac_word=$2
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5437 $as_echo_n "checking for $ac_word... " >&6; }
5438 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5439 $as_echo_n "(cached) " >&6
5440 else
5441 if test -n "$ac_ct_CC"; then
5442 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5443 else
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 for as_dir in $PATH
5446 do
5447 IFS=$as_save_IFS
5448 test -z "$as_dir" && as_dir=.
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5451 ac_cv_prog_ac_ct_CC="gcc"
5452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5453 break 2
5454 fi
5455 done
5456 done
5457 IFS=$as_save_IFS
5458
5459 fi
5460 fi
5461 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5462 if test -n "$ac_ct_CC"; then
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5464 $as_echo "$ac_ct_CC" >&6; }
5465 else
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467 $as_echo "no" >&6; }
5468 fi
5469
5470 if test "x$ac_ct_CC" = x; then
5471 CC=""
5472 else
5473 case $cross_compiling:$ac_tool_warned in
5474 yes:)
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5477 ac_tool_warned=yes ;;
5478 esac
5479 CC=$ac_ct_CC
5480 fi
5481 else
5482 CC="$ac_cv_prog_CC"
5483 fi
5484
5485 if test -z "$CC"; then
5486 if test -n "$ac_tool_prefix"; then
5487 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5488 set dummy ${ac_tool_prefix}cc; ac_word=$2
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5490 $as_echo_n "checking for $ac_word... " >&6; }
5491 if test "${ac_cv_prog_CC+set}" = set; then :
5492 $as_echo_n "(cached) " >&6
5493 else
5494 if test -n "$CC"; then
5495 ac_cv_prog_CC="$CC" # Let the user override the test.
5496 else
5497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498 for as_dir in $PATH
5499 do
5500 IFS=$as_save_IFS
5501 test -z "$as_dir" && as_dir=.
5502 for ac_exec_ext in '' $ac_executable_extensions; do
5503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5504 ac_cv_prog_CC="${ac_tool_prefix}cc"
5505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5506 break 2
5507 fi
5508 done
5509 done
5510 IFS=$as_save_IFS
5511
5512 fi
5513 fi
5514 CC=$ac_cv_prog_CC
5515 if test -n "$CC"; then
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5517 $as_echo "$CC" >&6; }
5518 else
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520 $as_echo "no" >&6; }
5521 fi
5522
5523
5524 fi
5525 fi
5526 if test -z "$CC"; then
5527 # Extract the first word of "cc", so it can be a program name with args.
5528 set dummy cc; ac_word=$2
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5530 $as_echo_n "checking for $ac_word... " >&6; }
5531 if test "${ac_cv_prog_CC+set}" = set; then :
5532 $as_echo_n "(cached) " >&6
5533 else
5534 if test -n "$CC"; then
5535 ac_cv_prog_CC="$CC" # Let the user override the test.
5536 else
5537 ac_prog_rejected=no
5538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 for as_dir in $PATH
5540 do
5541 IFS=$as_save_IFS
5542 test -z "$as_dir" && as_dir=.
5543 for ac_exec_ext in '' $ac_executable_extensions; do
5544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5545 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5546 ac_prog_rejected=yes
5547 continue
5548 fi
5549 ac_cv_prog_CC="cc"
5550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5551 break 2
5552 fi
5553 done
5554 done
5555 IFS=$as_save_IFS
5556
5557 if test $ac_prog_rejected = yes; then
5558 # We found a bogon in the path, so make sure we never use it.
5559 set dummy $ac_cv_prog_CC
5560 shift
5561 if test $# != 0; then
5562 # We chose a different compiler from the bogus one.
5563 # However, it has the same basename, so the bogon will be chosen
5564 # first if we set CC to just the basename; use the full file name.
5565 shift
5566 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5567 fi
5568 fi
5569 fi
5570 fi
5571 CC=$ac_cv_prog_CC
5572 if test -n "$CC"; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5574 $as_echo "$CC" >&6; }
5575 else
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 $as_echo "no" >&6; }
5578 fi
5579
5580
5581 fi
5582 if test -z "$CC"; then
5583 if test -n "$ac_tool_prefix"; then
5584 for ac_prog in cl.exe
5585 do
5586 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5587 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5589 $as_echo_n "checking for $ac_word... " >&6; }
5590 if test "${ac_cv_prog_CC+set}" = set; then :
5591 $as_echo_n "(cached) " >&6
5592 else
5593 if test -n "$CC"; then
5594 ac_cv_prog_CC="$CC" # Let the user override the test.
5595 else
5596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597 for as_dir in $PATH
5598 do
5599 IFS=$as_save_IFS
5600 test -z "$as_dir" && as_dir=.
5601 for ac_exec_ext in '' $ac_executable_extensions; do
5602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5603 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5605 break 2
5606 fi
5607 done
5608 done
5609 IFS=$as_save_IFS
5610
5611 fi
5612 fi
5613 CC=$ac_cv_prog_CC
5614 if test -n "$CC"; then
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5616 $as_echo "$CC" >&6; }
5617 else
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5619 $as_echo "no" >&6; }
5620 fi
5621
5622
5623 test -n "$CC" && break
5624 done
5625 fi
5626 if test -z "$CC"; then
5627 ac_ct_CC=$CC
5628 for ac_prog in cl.exe
5629 do
5630 # Extract the first word of "$ac_prog", so it can be a program name with args.
5631 set dummy $ac_prog; ac_word=$2
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5633 $as_echo_n "checking for $ac_word... " >&6; }
5634 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5635 $as_echo_n "(cached) " >&6
5636 else
5637 if test -n "$ac_ct_CC"; then
5638 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5639 else
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 for as_dir in $PATH
5642 do
5643 IFS=$as_save_IFS
5644 test -z "$as_dir" && as_dir=.
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5647 ac_cv_prog_ac_ct_CC="$ac_prog"
5648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5649 break 2
5650 fi
5651 done
5652 done
5653 IFS=$as_save_IFS
5654
5655 fi
5656 fi
5657 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5658 if test -n "$ac_ct_CC"; then
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5660 $as_echo "$ac_ct_CC" >&6; }
5661 else
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663 $as_echo "no" >&6; }
5664 fi
5665
5666
5667 test -n "$ac_ct_CC" && break
5668 done
5669
5670 if test "x$ac_ct_CC" = x; then
5671 CC=""
5672 else
5673 case $cross_compiling:$ac_tool_warned in
5674 yes:)
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5677 ac_tool_warned=yes ;;
5678 esac
5679 CC=$ac_ct_CC
5680 fi
5681 fi
5682
5683 fi
5684
5685
5686 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5688 as_fn_error "no acceptable C compiler found in \$PATH
5689 See \`config.log' for more details." "$LINENO" 5; }
5690
5691 # Provide some information about the compiler.
5692 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5693 set X $ac_compile
5694 ac_compiler=$2
5695 for ac_option in --version -v -V -qversion; do
5696 { { ac_try="$ac_compiler $ac_option >&5"
5697 case "(($ac_try" in
5698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5699 *) ac_try_echo=$ac_try;;
5700 esac
5701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5702 $as_echo "$ac_try_echo"; } >&5
5703 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5704 ac_status=$?
5705 if test -s conftest.err; then
5706 sed '10a\
5707 ... rest of stderr output deleted ...
5708 10q' conftest.err >conftest.er1
5709 cat conftest.er1 >&5
5710 rm -f conftest.er1 conftest.err
5711 fi
5712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5713 test $ac_status = 0; }
5714 done
5715
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5717 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5718 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5719 $as_echo_n "(cached) " >&6
5720 else
5721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5722 /* end confdefs.h. */
5723
5724 int
5725 main ()
5726 {
5727 #ifndef __GNUC__
5728 choke me
5729 #endif
5730
5731 ;
5732 return 0;
5733 }
5734 _ACEOF
5735 if ac_fn_c_try_compile "$LINENO"; then :
5736 ac_compiler_gnu=yes
5737 else
5738 ac_compiler_gnu=no
5739 fi
5740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5741 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5742
5743 fi
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5745 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5746 if test $ac_compiler_gnu = yes; then
5747 GCC=yes
5748 else
5749 GCC=
5750 fi
5751 ac_test_CFLAGS=${CFLAGS+set}
5752 ac_save_CFLAGS=$CFLAGS
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5754 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5755 if test "${ac_cv_prog_cc_g+set}" = set; then :
5756 $as_echo_n "(cached) " >&6
5757 else
5758 ac_save_c_werror_flag=$ac_c_werror_flag
5759 ac_c_werror_flag=yes
5760 ac_cv_prog_cc_g=no
5761 CFLAGS="-g"
5762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5763 /* end confdefs.h. */
5764
5765 int
5766 main ()
5767 {
5768
5769 ;
5770 return 0;
5771 }
5772 _ACEOF
5773 if ac_fn_c_try_compile "$LINENO"; then :
5774 ac_cv_prog_cc_g=yes
5775 else
5776 CFLAGS=""
5777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5779
5780 int
5781 main ()
5782 {
5783
5784 ;
5785 return 0;
5786 }
5787 _ACEOF
5788 if ac_fn_c_try_compile "$LINENO"; then :
5789
5790 else
5791 ac_c_werror_flag=$ac_save_c_werror_flag
5792 CFLAGS="-g"
5793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794 /* end confdefs.h. */
5795
5796 int
5797 main ()
5798 {
5799
5800 ;
5801 return 0;
5802 }
5803 _ACEOF
5804 if ac_fn_c_try_compile "$LINENO"; then :
5805 ac_cv_prog_cc_g=yes
5806 fi
5807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5808 fi
5809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5810 fi
5811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812 ac_c_werror_flag=$ac_save_c_werror_flag
5813 fi
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5815 $as_echo "$ac_cv_prog_cc_g" >&6; }
5816 if test "$ac_test_CFLAGS" = set; then
5817 CFLAGS=$ac_save_CFLAGS
5818 elif test $ac_cv_prog_cc_g = yes; then
5819 if test "$GCC" = yes; then
5820 CFLAGS="-g -O2"
5821 else
5822 CFLAGS="-g"
5823 fi
5824 else
5825 if test "$GCC" = yes; then
5826 CFLAGS="-O2"
5827 else
5828 CFLAGS=
5829 fi
5830 fi
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5832 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5833 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5834 $as_echo_n "(cached) " >&6
5835 else
5836 ac_cv_prog_cc_c89=no
5837 ac_save_CC=$CC
5838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839 /* end confdefs.h. */
5840 #include <stdarg.h>
5841 #include <stdio.h>
5842 #include <sys/types.h>
5843 #include <sys/stat.h>
5844 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5845 struct buf { int x; };
5846 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5847 static char *e (p, i)
5848 char **p;
5849 int i;
5850 {
5851 return p[i];
5852 }
5853 static char *f (char * (*g) (char **, int), char **p, ...)
5854 {
5855 char *s;
5856 va_list v;
5857 va_start (v,p);
5858 s = g (p, va_arg (v,int));
5859 va_end (v);
5860 return s;
5861 }
5862
5863 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5864 function prototypes and stuff, but not '\xHH' hex character constants.
5865 These don't provoke an error unfortunately, instead are silently treated
5866 as 'x'. The following induces an error, until -std is added to get
5867 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5868 array size at least. It's necessary to write '\x00'==0 to get something
5869 that's true only with -std. */
5870 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5871
5872 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5873 inside strings and character constants. */
5874 #define FOO(x) 'x'
5875 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5876
5877 int test (int i, double x);
5878 struct s1 {int (*f) (int a);};
5879 struct s2 {int (*f) (double a);};
5880 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5881 int argc;
5882 char **argv;
5883 int
5884 main ()
5885 {
5886 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5887 ;
5888 return 0;
5889 }
5890 _ACEOF
5891 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5892 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5893 do
5894 CC="$ac_save_CC $ac_arg"
5895 if ac_fn_c_try_compile "$LINENO"; then :
5896 ac_cv_prog_cc_c89=$ac_arg
5897 fi
5898 rm -f core conftest.err conftest.$ac_objext
5899 test "x$ac_cv_prog_cc_c89" != "xno" && break
5900 done
5901 rm -f conftest.$ac_ext
5902 CC=$ac_save_CC
5903
5904 fi
5905 # AC_CACHE_VAL
5906 case "x$ac_cv_prog_cc_c89" in
5907 x)
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5909 $as_echo "none needed" >&6; } ;;
5910 xno)
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5912 $as_echo "unsupported" >&6; } ;;
5913 *)
5914 CC="$CC $ac_cv_prog_cc_c89"
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5916 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5917 esac
5918 if test "x$ac_cv_prog_cc_c89" != xno; then :
5919
5920 fi
5921
5922 ac_ext=c
5923 ac_cpp='$CPP $CPPFLAGS'
5924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5927
5928
5929 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5930
5931
5932 ac_aux_dir=
5933 for ac_dir in ../.. "$srcdir"/../..; do
5934 for ac_t in install-sh install.sh shtool; do
5935 if test -f "$ac_dir/$ac_t"; then
5936 ac_aux_dir=$ac_dir
5937 ac_install_sh="$ac_aux_dir/$ac_t -c"
5938 break 2
5939 fi
5940 done
5941 done
5942 if test -z "$ac_aux_dir"; then
5943 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5944 fi
5945
5946 # These three variables are undocumented and unsupported,
5947 # and are intended to be withdrawn in a future Autoconf release.
5948 # They can cause serious problems if a builder's source tree is in a directory
5949 # whose full name contains unusual characters.
5950 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5951 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5952 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5953
5954
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5956 $as_echo_n "checking target system type... " >&6; }
5957 if test "${ac_cv_target+set}" = set; then :
5958 $as_echo_n "(cached) " >&6
5959 else
5960 if test "x$target_alias" = x; then
5961 ac_cv_target=$ac_cv_host
5962 else
5963 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5964 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5965 fi
5966
5967 fi
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5969 $as_echo "$ac_cv_target" >&6; }
5970 case $ac_cv_target in
5971 *-*-*) ;;
5972 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5973 esac
5974 target=$ac_cv_target
5975 ac_save_IFS=$IFS; IFS='-'
5976 set x $ac_cv_target
5977 shift
5978 target_cpu=$1
5979 target_vendor=$2
5980 shift; shift
5981 # Remember, the first character of IFS is used to create $*,
5982 # except with old shells:
5983 target_os=$*
5984 IFS=$ac_save_IFS
5985 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5986
5987
5988 # The aliases save the names the user supplied, while $host etc.
5989 # will get canonicalized.
5990 test -n "$target_alias" &&
5991 test "$program_prefix$program_suffix$program_transform_name" = \
5992 NONENONEs,x,x, &&
5993 program_prefix=${target_alias}-
5994
5995
5996
5997
5998
5999
6000
6001 LIBC_FATAL_STDERR_=1
6002 export LIBC_FATAL_STDERR_
6003
6004 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6005 # for constant arguments. Useless!
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6007 $as_echo_n "checking for working alloca.h... " >&6; }
6008 if test "${ac_cv_working_alloca_h+set}" = set; then :
6009 $as_echo_n "(cached) " >&6
6010 else
6011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012 /* end confdefs.h. */
6013 #include <alloca.h>
6014 int
6015 main ()
6016 {
6017 char *p = (char *) alloca (2 * sizeof (int));
6018 if (p) return 0;
6019 ;
6020 return 0;
6021 }
6022 _ACEOF
6023 if ac_fn_c_try_link "$LINENO"; then :
6024 ac_cv_working_alloca_h=yes
6025 else
6026 ac_cv_working_alloca_h=no
6027 fi
6028 rm -f core conftest.err conftest.$ac_objext \
6029 conftest$ac_exeext conftest.$ac_ext
6030 fi
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6032 $as_echo "$ac_cv_working_alloca_h" >&6; }
6033 if test $ac_cv_working_alloca_h = yes; then
6034
6035 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6036
6037 fi
6038
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6040 $as_echo_n "checking for alloca... " >&6; }
6041 if test "${ac_cv_func_alloca_works+set}" = set; then :
6042 $as_echo_n "(cached) " >&6
6043 else
6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6046 #ifdef __GNUC__
6047 # define alloca __builtin_alloca
6048 #else
6049 # ifdef _MSC_VER
6050 # include <malloc.h>
6051 # define alloca _alloca
6052 # else
6053 # ifdef HAVE_ALLOCA_H
6054 # include <alloca.h>
6055 # else
6056 # ifdef _AIX
6057 #pragma alloca
6058 # else
6059 # ifndef alloca /* predefined by HP cc +Olibcalls */
6060 char *alloca ();
6061 # endif
6062 # endif
6063 # endif
6064 # endif
6065 #endif
6066
6067 int
6068 main ()
6069 {
6070 char *p = (char *) alloca (1);
6071 if (p) return 0;
6072 ;
6073 return 0;
6074 }
6075 _ACEOF
6076 if ac_fn_c_try_link "$LINENO"; then :
6077 ac_cv_func_alloca_works=yes
6078 else
6079 ac_cv_func_alloca_works=no
6080 fi
6081 rm -f core conftest.err conftest.$ac_objext \
6082 conftest$ac_exeext conftest.$ac_ext
6083 fi
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6085 $as_echo "$ac_cv_func_alloca_works" >&6; }
6086
6087 if test $ac_cv_func_alloca_works = yes; then
6088
6089 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6090
6091 else
6092 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6093 # that cause trouble. Some versions do not even contain alloca or
6094 # contain a buggy version. If you still want to use their alloca,
6095 # use ar to extract alloca.o from them instead of compiling alloca.c.
6096
6097
6098
6099
6100
6101 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6102
6103 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6104
6105
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
6107 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
6108 if test "${ac_cv_os_cray+set}" = set; then :
6109 $as_echo_n "(cached) " >&6
6110 else
6111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112 /* end confdefs.h. */
6113 #if defined CRAY && ! defined CRAY2
6114 webecray
6115 #else
6116 wenotbecray
6117 #endif
6118
6119 _ACEOF
6120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6121 $EGREP "webecray" >/dev/null 2>&1; then :
6122 ac_cv_os_cray=yes
6123 else
6124 ac_cv_os_cray=no
6125 fi
6126 rm -f conftest*
6127
6128 fi
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6130 $as_echo "$ac_cv_os_cray" >&6; }
6131 if test $ac_cv_os_cray = yes; then
6132 for ac_func in _getb67 GETB67 getb67; do
6133 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6134 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6135 eval as_val=\$$as_ac_var
6136 if test "x$as_val" = x""yes; then :
6137
6138 cat >>confdefs.h <<_ACEOF
6139 #define CRAY_STACKSEG_END $ac_func
6140 _ACEOF
6141
6142 break
6143 fi
6144
6145 done
6146 fi
6147
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6149 $as_echo_n "checking stack direction for C alloca... " >&6; }
6150 if test "${ac_cv_c_stack_direction+set}" = set; then :
6151 $as_echo_n "(cached) " >&6
6152 else
6153 if test "$cross_compiling" = yes; then :
6154 ac_cv_c_stack_direction=0
6155 else
6156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6157 /* end confdefs.h. */
6158 $ac_includes_default
6159 int
6160 find_stack_direction (int *addr, int depth)
6161 {
6162 int dir, dummy = 0;
6163 if (! addr)
6164 addr = &dummy;
6165 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6166 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6167 return dir + dummy;
6168 }
6169
6170 int
6171 main (int argc, char **argv)
6172 {
6173 return find_stack_direction (0, argc + !argv + 20) < 0;
6174 }
6175 _ACEOF
6176 if ac_fn_c_try_run "$LINENO"; then :
6177 ac_cv_c_stack_direction=1
6178 else
6179 ac_cv_c_stack_direction=-1
6180 fi
6181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6182 conftest.$ac_objext conftest.beam conftest.$ac_ext
6183 fi
6184
6185 fi
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6187 $as_echo "$ac_cv_c_stack_direction" >&6; }
6188 cat >>confdefs.h <<_ACEOF
6189 #define STACK_DIRECTION $ac_cv_c_stack_direction
6190 _ACEOF
6191
6192
6193 fi
6194
6195
6196 GNULIB__EXIT=0;
6197 GNULIB_ATOLL=0;
6198 GNULIB_CALLOC_POSIX=0;
6199 GNULIB_CANONICALIZE_FILE_NAME=0;
6200 GNULIB_GETLOADAVG=0;
6201 GNULIB_GETSUBOPT=0;
6202 GNULIB_GRANTPT=0;
6203 GNULIB_MALLOC_POSIX=0;
6204 GNULIB_MBTOWC=0;
6205 GNULIB_MKDTEMP=0;
6206 GNULIB_MKOSTEMP=0;
6207 GNULIB_MKOSTEMPS=0;
6208 GNULIB_MKSTEMP=0;
6209 GNULIB_MKSTEMPS=0;
6210 GNULIB_POSIX_OPENPT=0;
6211 GNULIB_PTSNAME=0;
6212 GNULIB_PTSNAME_R=0;
6213 GNULIB_PUTENV=0;
6214 GNULIB_QSORT_R=0;
6215 GNULIB_RANDOM=0;
6216 GNULIB_RANDOM_R=0;
6217 GNULIB_REALLOC_POSIX=0;
6218 GNULIB_REALPATH=0;
6219 GNULIB_RPMATCH=0;
6220 GNULIB_SECURE_GETENV=0;
6221 GNULIB_SETENV=0;
6222 GNULIB_STRTOD=0;
6223 GNULIB_STRTOLL=0;
6224 GNULIB_STRTOULL=0;
6225 GNULIB_SYSTEM_POSIX=0;
6226 GNULIB_UNLOCKPT=0;
6227 GNULIB_UNSETENV=0;
6228 GNULIB_WCTOMB=0;
6229 HAVE__EXIT=1;
6230 HAVE_ATOLL=1;
6231 HAVE_CANONICALIZE_FILE_NAME=1;
6232 HAVE_DECL_GETLOADAVG=1;
6233 HAVE_GETSUBOPT=1;
6234 HAVE_GRANTPT=1;
6235 HAVE_MKDTEMP=1;
6236 HAVE_MKOSTEMP=1;
6237 HAVE_MKOSTEMPS=1;
6238 HAVE_MKSTEMP=1;
6239 HAVE_MKSTEMPS=1;
6240 HAVE_POSIX_OPENPT=1;
6241 HAVE_PTSNAME=1;
6242 HAVE_PTSNAME_R=1;
6243 HAVE_QSORT_R=1;
6244 HAVE_RANDOM=1;
6245 HAVE_RANDOM_H=1;
6246 HAVE_RANDOM_R=1;
6247 HAVE_REALPATH=1;
6248 HAVE_RPMATCH=1;
6249 HAVE_SECURE_GETENV=1;
6250 HAVE_SETENV=1;
6251 HAVE_DECL_SETENV=1;
6252 HAVE_STRTOD=1;
6253 HAVE_STRTOLL=1;
6254 HAVE_STRTOULL=1;
6255 HAVE_STRUCT_RANDOM_DATA=1;
6256 HAVE_SYS_LOADAVG_H=0;
6257 HAVE_UNLOCKPT=1;
6258 HAVE_DECL_UNSETENV=1;
6259 REPLACE_CALLOC=0;
6260 REPLACE_CANONICALIZE_FILE_NAME=0;
6261 REPLACE_MALLOC=0;
6262 REPLACE_MBTOWC=0;
6263 REPLACE_MKSTEMP=0;
6264 REPLACE_PTSNAME=0;
6265 REPLACE_PTSNAME_R=0;
6266 REPLACE_PUTENV=0;
6267 REPLACE_QSORT_R=0;
6268 REPLACE_RANDOM_R=0;
6269 REPLACE_REALLOC=0;
6270 REPLACE_REALPATH=0;
6271 REPLACE_SETENV=0;
6272 REPLACE_STRTOD=0;
6273 REPLACE_UNSETENV=0;
6274 REPLACE_WCTOMB=0;
6275
6276
6277
6278
6279 for ac_func in $ac_func_list
6280 do :
6281 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6282 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6283 eval as_val=\$$as_ac_var
6284 if test "x$as_val" = x""yes; then :
6285 cat >>confdefs.h <<_ACEOF
6286 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6287 _ACEOF
6288
6289 fi
6290 done
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
6301 $as_echo_n "checking whether // is distinct from /... " >&6; }
6302 if test "${gl_cv_double_slash_root+set}" = set; then :
6303 $as_echo_n "(cached) " >&6
6304 else
6305 if test x"$cross_compiling" = xyes ; then
6306 # When cross-compiling, there is no way to tell whether // is special
6307 # short of a list of hosts. However, the only known hosts to date
6308 # that have a distinct // are Apollo DomainOS (too old to port to),
6309 # Cygwin, and z/OS. If anyone knows of another system for which // has
6310 # special semantics and is distinct from /, please report it to
6311 # <bug-gnulib@gnu.org>.
6312 case $host in
6313 *-cygwin | i370-ibm-openedition)
6314 gl_cv_double_slash_root=yes ;;
6315 *)
6316 # Be optimistic and assume that / and // are the same when we
6317 # don't know.
6318 gl_cv_double_slash_root='unknown, assuming no' ;;
6319 esac
6320 else
6321 set x `ls -di / // 2>/dev/null`
6322 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
6323 gl_cv_double_slash_root=no
6324 else
6325 gl_cv_double_slash_root=yes
6326 fi
6327 fi
6328 fi
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
6330 $as_echo "$gl_cv_double_slash_root" >&6; }
6331 if test "$gl_cv_double_slash_root" = yes; then
6332
6333 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
6334
6335 fi
6336
6337
6338
6339
6340
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
6342 $as_echo_n "checking whether realpath works... " >&6; }
6343 if test "${gl_cv_func_realpath_works+set}" = set; then :
6344 $as_echo_n "(cached) " >&6
6345 else
6346
6347 touch conftest.a
6348 mkdir conftest.d
6349 if test "$cross_compiling" = yes; then :
6350 case "$host_os" in
6351 # Guess yes on glibc systems.
6352 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
6353 # If we don't know, assume the worst.
6354 *) gl_cv_func_realpath_works="guessing no" ;;
6355 esac
6356
6357 else
6358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6359 /* end confdefs.h. */
6360
6361
6362
6363 #include <stdlib.h>
6364 #if defined __MACH__ && defined __APPLE__
6365 /* Avoid a crash on Mac OS X. */
6366 #include <mach/mach.h>
6367 #include <mach/mach_error.h>
6368 #include <mach/thread_status.h>
6369 #include <mach/exception.h>
6370 #include <mach/task.h>
6371 #include <pthread.h>
6372 /* The exception port on which our thread listens. */
6373 static mach_port_t our_exception_port;
6374 /* The main function of the thread listening for exceptions of type
6375 EXC_BAD_ACCESS. */
6376 static void *
6377 mach_exception_thread (void *arg)
6378 {
6379 /* Buffer for a message to be received. */
6380 struct {
6381 mach_msg_header_t head;
6382 mach_msg_body_t msgh_body;
6383 char data[1024];
6384 } msg;
6385 mach_msg_return_t retval;
6386 /* Wait for a message on the exception port. */
6387 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
6388 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
6389 if (retval != MACH_MSG_SUCCESS)
6390 abort ();
6391 exit (1);
6392 }
6393 static void
6394 nocrash_init (void)
6395 {
6396 mach_port_t self = mach_task_self ();
6397 /* Allocate a port on which the thread shall listen for exceptions. */
6398 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
6399 == KERN_SUCCESS) {
6400 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
6401 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
6402 MACH_MSG_TYPE_MAKE_SEND)
6403 == KERN_SUCCESS) {
6404 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
6405 for us. */
6406 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
6407 /* Create the thread listening on the exception port. */
6408 pthread_attr_t attr;
6409 pthread_t thread;
6410 if (pthread_attr_init (&attr) == 0
6411 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
6412 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
6413 pthread_attr_destroy (&attr);
6414 /* Replace the exception port info for these exceptions with our own.
6415 Note that we replace the exception port for the entire task, not only
6416 for a particular thread. This has the effect that when our exception
6417 port gets the message, the thread specific exception port has already
6418 been asked, and we don't need to bother about it.
6419 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
6420 task_set_exception_ports (self, mask, our_exception_port,
6421 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
6422 }
6423 }
6424 }
6425 }
6426 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
6427 /* Avoid a crash on native Windows. */
6428 #define WIN32_LEAN_AND_MEAN
6429 #include <windows.h>
6430 #include <winerror.h>
6431 static LONG WINAPI
6432 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
6433 {
6434 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
6435 {
6436 case EXCEPTION_ACCESS_VIOLATION:
6437 case EXCEPTION_IN_PAGE_ERROR:
6438 case EXCEPTION_STACK_OVERFLOW:
6439 case EXCEPTION_GUARD_PAGE:
6440 case EXCEPTION_PRIV_INSTRUCTION:
6441 case EXCEPTION_ILLEGAL_INSTRUCTION:
6442 case EXCEPTION_DATATYPE_MISALIGNMENT:
6443 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
6444 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
6445 exit (1);
6446 }
6447 return EXCEPTION_CONTINUE_SEARCH;
6448 }
6449 static void
6450 nocrash_init (void)
6451 {
6452 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
6453 }
6454 #else
6455 /* Avoid a crash on POSIX systems. */
6456 #include <signal.h>
6457 #include <unistd.h>
6458 /* A POSIX signal handler. */
6459 static void
6460 exception_handler (int sig)
6461 {
6462 _exit (1);
6463 }
6464 static void
6465 nocrash_init (void)
6466 {
6467 #ifdef SIGSEGV
6468 signal (SIGSEGV, exception_handler);
6469 #endif
6470 #ifdef SIGBUS
6471 signal (SIGBUS, exception_handler);
6472 #endif
6473 }
6474 #endif
6475
6476 #include <stdlib.h>
6477 #include <string.h>
6478
6479 int
6480 main ()
6481 {
6482
6483 int result = 0;
6484 {
6485 char *name = realpath ("conftest.a", NULL);
6486 if (!(name && *name == '/'))
6487 result |= 1;
6488 free (name);
6489 }
6490 {
6491 char *name = realpath ("conftest.b/../conftest.a", NULL);
6492 if (name != NULL)
6493 result |= 2;
6494 free (name);
6495 }
6496 {
6497 char *name = realpath ("conftest.a/", NULL);
6498 if (name != NULL)
6499 result |= 4;
6500 free (name);
6501 }
6502 {
6503 char *name1 = realpath (".", NULL);
6504 char *name2 = realpath ("conftest.d//./..", NULL);
6505 if (! name1 || ! name2 || strcmp (name1, name2))
6506 result |= 8;
6507 free (name1);
6508 free (name2);
6509 }
6510 return result;
6511
6512 ;
6513 return 0;
6514 }
6515
6516 _ACEOF
6517 if ac_fn_c_try_run "$LINENO"; then :
6518 gl_cv_func_realpath_works=yes
6519 else
6520 gl_cv_func_realpath_works=no
6521 fi
6522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6523 conftest.$ac_objext conftest.beam conftest.$ac_ext
6524 fi
6525
6526 rm -rf conftest.a conftest.d
6527
6528 fi
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
6530 $as_echo "$gl_cv_func_realpath_works" >&6; }
6531 case "$gl_cv_func_realpath_works" in
6532 *yes)
6533
6534 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
6535
6536 ;;
6537 esac
6538
6539
6540
6541
6542 for ac_header in $ac_header_list
6543 do :
6544 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6545 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6546 "
6547 eval as_val=\$$as_ac_Header
6548 if test "x$as_val" = x""yes; then :
6549 cat >>confdefs.h <<_ACEOF
6550 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6551 _ACEOF
6552
6553 fi
6554
6555 done
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567 GNULIB_CHDIR=0;
6568 GNULIB_CHOWN=0;
6569 GNULIB_CLOSE=0;
6570 GNULIB_DUP=0;
6571 GNULIB_DUP2=0;
6572 GNULIB_DUP3=0;
6573 GNULIB_ENVIRON=0;
6574 GNULIB_EUIDACCESS=0;
6575 GNULIB_FACCESSAT=0;
6576 GNULIB_FCHDIR=0;
6577 GNULIB_FCHOWNAT=0;
6578 GNULIB_FDATASYNC=0;
6579 GNULIB_FSYNC=0;
6580 GNULIB_FTRUNCATE=0;
6581 GNULIB_GETCWD=0;
6582 GNULIB_GETDOMAINNAME=0;
6583 GNULIB_GETDTABLESIZE=0;
6584 GNULIB_GETGROUPS=0;
6585 GNULIB_GETHOSTNAME=0;
6586 GNULIB_GETLOGIN=0;
6587 GNULIB_GETLOGIN_R=0;
6588 GNULIB_GETPAGESIZE=0;
6589 GNULIB_GETUSERSHELL=0;
6590 GNULIB_GROUP_MEMBER=0;
6591 GNULIB_ISATTY=0;
6592 GNULIB_LCHOWN=0;
6593 GNULIB_LINK=0;
6594 GNULIB_LINKAT=0;
6595 GNULIB_LSEEK=0;
6596 GNULIB_PIPE=0;
6597 GNULIB_PIPE2=0;
6598 GNULIB_PREAD=0;
6599 GNULIB_PWRITE=0;
6600 GNULIB_READ=0;
6601 GNULIB_READLINK=0;
6602 GNULIB_READLINKAT=0;
6603 GNULIB_RMDIR=0;
6604 GNULIB_SETHOSTNAME=0;
6605 GNULIB_SLEEP=0;
6606 GNULIB_SYMLINK=0;
6607 GNULIB_SYMLINKAT=0;
6608 GNULIB_TTYNAME_R=0;
6609 GNULIB_UNISTD_H_NONBLOCKING=0;
6610 GNULIB_UNISTD_H_SIGPIPE=0;
6611 GNULIB_UNLINK=0;
6612 GNULIB_UNLINKAT=0;
6613 GNULIB_USLEEP=0;
6614 GNULIB_WRITE=0;
6615 HAVE_CHOWN=1;
6616 HAVE_DUP2=1;
6617 HAVE_DUP3=1;
6618 HAVE_EUIDACCESS=1;
6619 HAVE_FACCESSAT=1;
6620 HAVE_FCHDIR=1;
6621 HAVE_FCHOWNAT=1;
6622 HAVE_FDATASYNC=1;
6623 HAVE_FSYNC=1;
6624 HAVE_FTRUNCATE=1;
6625 HAVE_GETDTABLESIZE=1;
6626 HAVE_GETGROUPS=1;
6627 HAVE_GETHOSTNAME=1;
6628 HAVE_GETLOGIN=1;
6629 HAVE_GETPAGESIZE=1;
6630 HAVE_GROUP_MEMBER=1;
6631 HAVE_LCHOWN=1;
6632 HAVE_LINK=1;
6633 HAVE_LINKAT=1;
6634 HAVE_PIPE=1;
6635 HAVE_PIPE2=1;
6636 HAVE_PREAD=1;
6637 HAVE_PWRITE=1;
6638 HAVE_READLINK=1;
6639 HAVE_READLINKAT=1;
6640 HAVE_SETHOSTNAME=1;
6641 HAVE_SLEEP=1;
6642 HAVE_SYMLINK=1;
6643 HAVE_SYMLINKAT=1;
6644 HAVE_UNLINKAT=1;
6645 HAVE_USLEEP=1;
6646 HAVE_DECL_ENVIRON=1;
6647 HAVE_DECL_FCHDIR=1;
6648 HAVE_DECL_FDATASYNC=1;
6649 HAVE_DECL_GETDOMAINNAME=1;
6650 HAVE_DECL_GETLOGIN_R=1;
6651 HAVE_DECL_GETPAGESIZE=1;
6652 HAVE_DECL_GETUSERSHELL=1;
6653 HAVE_DECL_SETHOSTNAME=1;
6654 HAVE_DECL_TTYNAME_R=1;
6655 HAVE_OS_H=0;
6656 HAVE_SYS_PARAM_H=0;
6657 REPLACE_CHOWN=0;
6658 REPLACE_CLOSE=0;
6659 REPLACE_DUP=0;
6660 REPLACE_DUP2=0;
6661 REPLACE_FCHOWNAT=0;
6662 REPLACE_FTRUNCATE=0;
6663 REPLACE_GETCWD=0;
6664 REPLACE_GETDOMAINNAME=0;
6665 REPLACE_GETDTABLESIZE=0;
6666 REPLACE_GETLOGIN_R=0;
6667 REPLACE_GETGROUPS=0;
6668 REPLACE_GETPAGESIZE=0;
6669 REPLACE_ISATTY=0;
6670 REPLACE_LCHOWN=0;
6671 REPLACE_LINK=0;
6672 REPLACE_LINKAT=0;
6673 REPLACE_LSEEK=0;
6674 REPLACE_PREAD=0;
6675 REPLACE_PWRITE=0;
6676 REPLACE_READ=0;
6677 REPLACE_READLINK=0;
6678 REPLACE_READLINKAT=0;
6679 REPLACE_RMDIR=0;
6680 REPLACE_SLEEP=0;
6681 REPLACE_SYMLINK=0;
6682 REPLACE_SYMLINKAT=0;
6683 REPLACE_TTYNAME_R=0;
6684 REPLACE_UNLINK=0;
6685 REPLACE_UNLINKAT=0;
6686 REPLACE_USLEEP=0;
6687 REPLACE_WRITE=0;
6688 UNISTD_H_HAVE_WINSOCK2_H=0;
6689 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
6690
6691
6692
6693 GNULIB_OPENDIR=0;
6694 GNULIB_READDIR=0;
6695 GNULIB_REWINDDIR=0;
6696 GNULIB_CLOSEDIR=0;
6697 GNULIB_DIRFD=0;
6698 GNULIB_FDOPENDIR=0;
6699 GNULIB_SCANDIR=0;
6700 GNULIB_ALPHASORT=0;
6701 HAVE_OPENDIR=1;
6702 HAVE_READDIR=1;
6703 HAVE_REWINDDIR=1;
6704 HAVE_CLOSEDIR=1;
6705 HAVE_DECL_DIRFD=1;
6706 HAVE_DECL_FDOPENDIR=1;
6707 HAVE_FDOPENDIR=1;
6708 HAVE_SCANDIR=1;
6709 HAVE_ALPHASORT=1;
6710 REPLACE_OPENDIR=0;
6711 REPLACE_CLOSEDIR=0;
6712 REPLACE_DIRFD=0;
6713 REPLACE_FDOPENDIR=0;
6714
6715
6716
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6718 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6719 if test "${gl_cv_have_include_next+set}" = set; then :
6720 $as_echo_n "(cached) " >&6
6721 else
6722 rm -rf conftestd1a conftestd1b conftestd2
6723 mkdir conftestd1a conftestd1b conftestd2
6724 cat <<EOF > conftestd1a/conftest.h
6725 #define DEFINED_IN_CONFTESTD1
6726 #include_next <conftest.h>
6727 #ifdef DEFINED_IN_CONFTESTD2
6728 int foo;
6729 #else
6730 #error "include_next doesn't work"
6731 #endif
6732 EOF
6733 cat <<EOF > conftestd1b/conftest.h
6734 #define DEFINED_IN_CONFTESTD1
6735 #include <stdio.h>
6736 #include_next <conftest.h>
6737 #ifdef DEFINED_IN_CONFTESTD2
6738 int foo;
6739 #else
6740 #error "include_next doesn't work"
6741 #endif
6742 EOF
6743 cat <<EOF > conftestd2/conftest.h
6744 #ifndef DEFINED_IN_CONFTESTD1
6745 #error "include_next test doesn't work"
6746 #endif
6747 #define DEFINED_IN_CONFTESTD2
6748 EOF
6749 gl_save_CPPFLAGS="$CPPFLAGS"
6750 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6752 /* end confdefs.h. */
6753 #include <conftest.h>
6754 _ACEOF
6755 if ac_fn_c_try_compile "$LINENO"; then :
6756 gl_cv_have_include_next=yes
6757 else
6758 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760 /* end confdefs.h. */
6761 #include <conftest.h>
6762 _ACEOF
6763 if ac_fn_c_try_compile "$LINENO"; then :
6764 gl_cv_have_include_next=buggy
6765 else
6766 gl_cv_have_include_next=no
6767 fi
6768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6769
6770 fi
6771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6772 CPPFLAGS="$gl_save_CPPFLAGS"
6773 rm -rf conftestd1a conftestd1b conftestd2
6774
6775 fi
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6777 $as_echo "$gl_cv_have_include_next" >&6; }
6778 PRAGMA_SYSTEM_HEADER=
6779 if test $gl_cv_have_include_next = yes; then
6780 INCLUDE_NEXT=include_next
6781 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6782 if test -n "$GCC"; then
6783 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6784 fi
6785 else
6786 if test $gl_cv_have_include_next = buggy; then
6787 INCLUDE_NEXT=include
6788 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6789 else
6790 INCLUDE_NEXT=include
6791 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6792 fi
6793 fi
6794
6795
6796
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
6798 $as_echo_n "checking whether system header files limit the line length... " >&6; }
6799 if test "${gl_cv_pragma_columns+set}" = set; then :
6800 $as_echo_n "(cached) " >&6
6801 else
6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803 /* end confdefs.h. */
6804
6805 #ifdef __TANDEM
6806 choke me
6807 #endif
6808
6809 _ACEOF
6810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6811 $EGREP "choke me" >/dev/null 2>&1; then :
6812 gl_cv_pragma_columns=yes
6813 else
6814 gl_cv_pragma_columns=no
6815 fi
6816 rm -f conftest*
6817
6818
6819 fi
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
6821 $as_echo "$gl_cv_pragma_columns" >&6; }
6822 if test $gl_cv_pragma_columns = yes; then
6823 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
6824 else
6825 PRAGMA_COLUMNS=
6826 fi
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if environ is properly declared" >&5
6841 $as_echo_n "checking if environ is properly declared... " >&6; }
6842 if test "${gt_cv_var_environ_declaration+set}" = set; then :
6843 $as_echo_n "(cached) " >&6
6844 else
6845
6846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h. */
6848 #if HAVE_UNISTD_H
6849 #include <unistd.h>
6850 #endif
6851 /* mingw, BeOS, Haiku declare environ in <stdlib.h>, not in <unistd.h>. */
6852 #include <stdlib.h>
6853
6854 extern struct { int foo; } environ;
6855 int
6856 main ()
6857 {
6858 environ.foo = 1;
6859 ;
6860 return 0;
6861 }
6862 _ACEOF
6863 if ac_fn_c_try_compile "$LINENO"; then :
6864 gt_cv_var_environ_declaration=no
6865 else
6866 gt_cv_var_environ_declaration=yes
6867 fi
6868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6869 fi
6870
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_var_environ_declaration" >&5
6872 $as_echo "$gt_cv_var_environ_declaration" >&6; }
6873 if test $gt_cv_var_environ_declaration = yes; then
6874
6875 $as_echo "#define HAVE_ENVIRON_DECL 1" >>confdefs.h
6876
6877 fi
6878
6879
6880 if test $gt_cv_var_environ_declaration != yes; then
6881 HAVE_DECL_ENVIRON=0
6882 fi
6883
6884
6885
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
6887 $as_echo_n "checking for complete errno.h... " >&6; }
6888 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
6889 $as_echo_n "(cached) " >&6
6890 else
6891
6892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6893 /* end confdefs.h. */
6894
6895 #include <errno.h>
6896 #if !defined ETXTBSY
6897 booboo
6898 #endif
6899 #if !defined ENOMSG
6900 booboo
6901 #endif
6902 #if !defined EIDRM
6903 booboo
6904 #endif
6905 #if !defined ENOLINK
6906 booboo
6907 #endif
6908 #if !defined EPROTO
6909 booboo
6910 #endif
6911 #if !defined EMULTIHOP
6912 booboo
6913 #endif
6914 #if !defined EBADMSG
6915 booboo
6916 #endif
6917 #if !defined EOVERFLOW
6918 booboo
6919 #endif
6920 #if !defined ENOTSUP
6921 booboo
6922 #endif
6923 #if !defined ENETRESET
6924 booboo
6925 #endif
6926 #if !defined ECONNABORTED
6927 booboo
6928 #endif
6929 #if !defined ESTALE
6930 booboo
6931 #endif
6932 #if !defined EDQUOT
6933 booboo
6934 #endif
6935 #if !defined ECANCELED
6936 booboo
6937 #endif
6938 #if !defined EOWNERDEAD
6939 booboo
6940 #endif
6941 #if !defined ENOTRECOVERABLE
6942 booboo
6943 #endif
6944 #if !defined EILSEQ
6945 booboo
6946 #endif
6947
6948 _ACEOF
6949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6950 $EGREP "booboo" >/dev/null 2>&1; then :
6951 gl_cv_header_errno_h_complete=no
6952 else
6953 gl_cv_header_errno_h_complete=yes
6954 fi
6955 rm -f conftest*
6956
6957
6958 fi
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
6960 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
6961 if test $gl_cv_header_errno_h_complete = yes; then
6962 ERRNO_H=''
6963 else
6964
6965
6966
6967
6968
6969
6970
6971
6972 if test $gl_cv_have_include_next = yes; then
6973 gl_cv_next_errno_h='<'errno.h'>'
6974 else
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
6976 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
6977 if test "${gl_cv_next_errno_h+set}" = set; then :
6978 $as_echo_n "(cached) " >&6
6979 else
6980
6981
6982
6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h. */
6985 #include <errno.h>
6986 _ACEOF
6987 case "$host_os" in
6988 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6989 *) gl_absname_cpp="$ac_cpp" ;;
6990 esac
6991
6992 case "$host_os" in
6993 mingw*)
6994 gl_dirsep_regex='[/\\]'
6995 ;;
6996 *)
6997 gl_dirsep_regex='\/'
6998 ;;
6999 esac
7000 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7001 gl_header_literal_regex=`echo 'errno.h' \
7002 | sed -e "$gl_make_literal_regex_sed"`
7003 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7004 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7005 s|^/[^/]|//&|
7006 p
7007 q
7008 }'
7009
7010 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7011 sed -n "$gl_absolute_header_sed"`
7012
7013 gl_header=$gl_cv_absolute_errno_h
7014 gl_cv_next_errno_h='"'$gl_header'"'
7015
7016
7017 fi
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
7019 $as_echo "$gl_cv_next_errno_h" >&6; }
7020 fi
7021 NEXT_ERRNO_H=$gl_cv_next_errno_h
7022
7023 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7024 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7025 gl_next_as_first_directive='<'errno.h'>'
7026 else
7027 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7028 gl_next_as_first_directive=$gl_cv_next_errno_h
7029 fi
7030 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
7031
7032
7033
7034
7035 ERRNO_H='errno.h'
7036 fi
7037
7038 if test -n "$ERRNO_H"; then
7039 GL_GENERATE_ERRNO_H_TRUE=
7040 GL_GENERATE_ERRNO_H_FALSE='#'
7041 else
7042 GL_GENERATE_ERRNO_H_TRUE='#'
7043 GL_GENERATE_ERRNO_H_FALSE=
7044 fi
7045
7046
7047 if test -n "$ERRNO_H"; then
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
7049 $as_echo_n "checking for EMULTIHOP value... " >&6; }
7050 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
7051 $as_echo_n "(cached) " >&6
7052 else
7053
7054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h. */
7056
7057 #include <errno.h>
7058 #ifdef EMULTIHOP
7059 yes
7060 #endif
7061
7062 _ACEOF
7063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7064 $EGREP "yes" >/dev/null 2>&1; then :
7065 gl_cv_header_errno_h_EMULTIHOP=yes
7066 else
7067 gl_cv_header_errno_h_EMULTIHOP=no
7068 fi
7069 rm -f conftest*
7070
7071 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
7072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7073 /* end confdefs.h. */
7074
7075 #define _XOPEN_SOURCE_EXTENDED 1
7076 #include <errno.h>
7077 #ifdef EMULTIHOP
7078 yes
7079 #endif
7080
7081 _ACEOF
7082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7083 $EGREP "yes" >/dev/null 2>&1; then :
7084 gl_cv_header_errno_h_EMULTIHOP=hidden
7085 fi
7086 rm -f conftest*
7087
7088 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
7089 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
7090 #define _XOPEN_SOURCE_EXTENDED 1
7091 #include <errno.h>
7092 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7093 #include <stdio.h>
7094 #include <stdlib.h>
7095 "; then :
7096
7097 fi
7098
7099 fi
7100 fi
7101
7102 fi
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7104 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7105 case $gl_cv_header_errno_h_EMULTIHOP in
7106 yes | no)
7107 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
7108 ;;
7109 *)
7110 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
7111 ;;
7112 esac
7113
7114
7115 fi
7116
7117
7118 if test -n "$ERRNO_H"; then
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7120 $as_echo_n "checking for ENOLINK value... " >&6; }
7121 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
7122 $as_echo_n "(cached) " >&6
7123 else
7124
7125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126 /* end confdefs.h. */
7127
7128 #include <errno.h>
7129 #ifdef ENOLINK
7130 yes
7131 #endif
7132
7133 _ACEOF
7134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7135 $EGREP "yes" >/dev/null 2>&1; then :
7136 gl_cv_header_errno_h_ENOLINK=yes
7137 else
7138 gl_cv_header_errno_h_ENOLINK=no
7139 fi
7140 rm -f conftest*
7141
7142 if test $gl_cv_header_errno_h_ENOLINK = no; then
7143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144 /* end confdefs.h. */
7145
7146 #define _XOPEN_SOURCE_EXTENDED 1
7147 #include <errno.h>
7148 #ifdef ENOLINK
7149 yes
7150 #endif
7151
7152 _ACEOF
7153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7154 $EGREP "yes" >/dev/null 2>&1; then :
7155 gl_cv_header_errno_h_ENOLINK=hidden
7156 fi
7157 rm -f conftest*
7158
7159 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
7160 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
7161 #define _XOPEN_SOURCE_EXTENDED 1
7162 #include <errno.h>
7163 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7164 #include <stdio.h>
7165 #include <stdlib.h>
7166 "; then :
7167
7168 fi
7169
7170 fi
7171 fi
7172
7173 fi
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7175 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7176 case $gl_cv_header_errno_h_ENOLINK in
7177 yes | no)
7178 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
7179 ;;
7180 *)
7181 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
7182 ;;
7183 esac
7184
7185
7186 fi
7187
7188
7189 if test -n "$ERRNO_H"; then
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7191 $as_echo_n "checking for EOVERFLOW value... " >&6; }
7192 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
7193 $as_echo_n "(cached) " >&6
7194 else
7195
7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197 /* end confdefs.h. */
7198
7199 #include <errno.h>
7200 #ifdef EOVERFLOW
7201 yes
7202 #endif
7203
7204 _ACEOF
7205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7206 $EGREP "yes" >/dev/null 2>&1; then :
7207 gl_cv_header_errno_h_EOVERFLOW=yes
7208 else
7209 gl_cv_header_errno_h_EOVERFLOW=no
7210 fi
7211 rm -f conftest*
7212
7213 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215 /* end confdefs.h. */
7216
7217 #define _XOPEN_SOURCE_EXTENDED 1
7218 #include <errno.h>
7219 #ifdef EOVERFLOW
7220 yes
7221 #endif
7222
7223 _ACEOF
7224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7225 $EGREP "yes" >/dev/null 2>&1; then :
7226 gl_cv_header_errno_h_EOVERFLOW=hidden
7227 fi
7228 rm -f conftest*
7229
7230 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7231 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
7232 #define _XOPEN_SOURCE_EXTENDED 1
7233 #include <errno.h>
7234 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7235 #include <stdio.h>
7236 #include <stdlib.h>
7237 "; then :
7238
7239 fi
7240
7241 fi
7242 fi
7243
7244 fi
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7246 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7247 case $gl_cv_header_errno_h_EOVERFLOW in
7248 yes | no)
7249 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
7250 ;;
7251 *)
7252 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
7253 ;;
7254 esac
7255
7256
7257 fi
7258
7259
7260
7261
7262
7263
7264
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
7266 $as_echo_n "checking for mbstate_t... " >&6; }
7267 if test "${ac_cv_type_mbstate_t+set}" = set; then :
7268 $as_echo_n "(cached) " >&6
7269 else
7270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271 /* end confdefs.h. */
7272 $ac_includes_default
7273 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7274 <wchar.h>.
7275 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7276 included before <wchar.h>. */
7277 #include <stddef.h>
7278 #include <stdio.h>
7279 #include <time.h>
7280 #include <wchar.h>
7281 int
7282 main ()
7283 {
7284 mbstate_t x; return sizeof x;
7285 ;
7286 return 0;
7287 }
7288 _ACEOF
7289 if ac_fn_c_try_compile "$LINENO"; then :
7290 ac_cv_type_mbstate_t=yes
7291 else
7292 ac_cv_type_mbstate_t=no
7293 fi
7294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7295 fi
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
7297 $as_echo "$ac_cv_type_mbstate_t" >&6; }
7298 if test $ac_cv_type_mbstate_t = yes; then
7299
7300 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
7301
7302 else
7303
7304 $as_echo "#define mbstate_t int" >>confdefs.h
7305
7306 fi
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327 GNULIB_ACOSF=0;
7328 GNULIB_ACOSL=0;
7329 GNULIB_ASINF=0;
7330 GNULIB_ASINL=0;
7331 GNULIB_ATANF=0;
7332 GNULIB_ATANL=0;
7333 GNULIB_ATAN2F=0;
7334 GNULIB_CBRT=0;
7335 GNULIB_CBRTF=0;
7336 GNULIB_CBRTL=0;
7337 GNULIB_CEIL=0;
7338 GNULIB_CEILF=0;
7339 GNULIB_CEILL=0;
7340 GNULIB_COPYSIGN=0;
7341 GNULIB_COPYSIGNF=0;
7342 GNULIB_COPYSIGNL=0;
7343 GNULIB_COSF=0;
7344 GNULIB_COSL=0;
7345 GNULIB_COSHF=0;
7346 GNULIB_EXPF=0;
7347 GNULIB_EXPL=0;
7348 GNULIB_EXP2=0;
7349 GNULIB_EXP2F=0;
7350 GNULIB_EXP2L=0;
7351 GNULIB_EXPM1=0;
7352 GNULIB_EXPM1F=0;
7353 GNULIB_EXPM1L=0;
7354 GNULIB_FABSF=0;
7355 GNULIB_FABSL=0;
7356 GNULIB_FLOOR=0;
7357 GNULIB_FLOORF=0;
7358 GNULIB_FLOORL=0;
7359 GNULIB_FMA=0;
7360 GNULIB_FMAF=0;
7361 GNULIB_FMAL=0;
7362 GNULIB_FMOD=0;
7363 GNULIB_FMODF=0;
7364 GNULIB_FMODL=0;
7365 GNULIB_FREXPF=0;
7366 GNULIB_FREXP=0;
7367 GNULIB_FREXPL=0;
7368 GNULIB_HYPOT=0;
7369 GNULIB_HYPOTF=0;
7370 GNULIB_HYPOTL=0;
7371 GNULIB_ILOGB=0;
7372 GNULIB_ILOGBF=0;
7373 GNULIB_ILOGBL=0;
7374 GNULIB_ISFINITE=0;
7375 GNULIB_ISINF=0;
7376 GNULIB_ISNAN=0;
7377 GNULIB_ISNANF=0;
7378 GNULIB_ISNAND=0;
7379 GNULIB_ISNANL=0;
7380 GNULIB_LDEXPF=0;
7381 GNULIB_LDEXPL=0;
7382 GNULIB_LOG=0;
7383 GNULIB_LOGF=0;
7384 GNULIB_LOGL=0;
7385 GNULIB_LOG10=0;
7386 GNULIB_LOG10F=0;
7387 GNULIB_LOG10L=0;
7388 GNULIB_LOG1P=0;
7389 GNULIB_LOG1PF=0;
7390 GNULIB_LOG1PL=0;
7391 GNULIB_LOG2=0;
7392 GNULIB_LOG2F=0;
7393 GNULIB_LOG2L=0;
7394 GNULIB_LOGB=0;
7395 GNULIB_LOGBF=0;
7396 GNULIB_LOGBL=0;
7397 GNULIB_MODF=0;
7398 GNULIB_MODFF=0;
7399 GNULIB_MODFL=0;
7400 GNULIB_POWF=0;
7401 GNULIB_REMAINDER=0;
7402 GNULIB_REMAINDERF=0;
7403 GNULIB_REMAINDERL=0;
7404 GNULIB_RINT=0;
7405 GNULIB_RINTF=0;
7406 GNULIB_RINTL=0;
7407 GNULIB_ROUND=0;
7408 GNULIB_ROUNDF=0;
7409 GNULIB_ROUNDL=0;
7410 GNULIB_SIGNBIT=0;
7411 GNULIB_SINF=0;
7412 GNULIB_SINL=0;
7413 GNULIB_SINHF=0;
7414 GNULIB_SQRTF=0;
7415 GNULIB_SQRTL=0;
7416 GNULIB_TANF=0;
7417 GNULIB_TANL=0;
7418 GNULIB_TANHF=0;
7419 GNULIB_TRUNC=0;
7420 GNULIB_TRUNCF=0;
7421 GNULIB_TRUNCL=0;
7422 HAVE_ACOSF=1;
7423 HAVE_ACOSL=1;
7424 HAVE_ASINF=1;
7425 HAVE_ASINL=1;
7426 HAVE_ATANF=1;
7427 HAVE_ATANL=1;
7428 HAVE_ATAN2F=1;
7429 HAVE_CBRT=1;
7430 HAVE_CBRTF=1;
7431 HAVE_CBRTL=1;
7432 HAVE_COPYSIGN=1;
7433 HAVE_COPYSIGNL=1;
7434 HAVE_COSF=1;
7435 HAVE_COSL=1;
7436 HAVE_COSHF=1;
7437 HAVE_EXPF=1;
7438 HAVE_EXPL=1;
7439 HAVE_EXPM1=1;
7440 HAVE_EXPM1F=1;
7441 HAVE_FABSF=1;
7442 HAVE_FABSL=1;
7443 HAVE_FMA=1;
7444 HAVE_FMAF=1;
7445 HAVE_FMAL=1;
7446 HAVE_FMODF=1;
7447 HAVE_FMODL=1;
7448 HAVE_FREXPF=1;
7449 HAVE_HYPOTF=1;
7450 HAVE_HYPOTL=1;
7451 HAVE_ILOGB=1;
7452 HAVE_ILOGBF=1;
7453 HAVE_ILOGBL=1;
7454 HAVE_ISNANF=1;
7455 HAVE_ISNAND=1;
7456 HAVE_ISNANL=1;
7457 HAVE_LDEXPF=1;
7458 HAVE_LOGF=1;
7459 HAVE_LOGL=1;
7460 HAVE_LOG10F=1;
7461 HAVE_LOG10L=1;
7462 HAVE_LOG1P=1;
7463 HAVE_LOG1PF=1;
7464 HAVE_LOG1PL=1;
7465 HAVE_LOGBF=1;
7466 HAVE_LOGBL=1;
7467 HAVE_MODFF=1;
7468 HAVE_MODFL=1;
7469 HAVE_POWF=1;
7470 HAVE_REMAINDER=1;
7471 HAVE_REMAINDERF=1;
7472 HAVE_RINT=1;
7473 HAVE_RINTL=1;
7474 HAVE_SINF=1;
7475 HAVE_SINL=1;
7476 HAVE_SINHF=1;
7477 HAVE_SQRTF=1;
7478 HAVE_SQRTL=1;
7479 HAVE_TANF=1;
7480 HAVE_TANL=1;
7481 HAVE_TANHF=1;
7482 HAVE_DECL_ACOSL=1;
7483 HAVE_DECL_ASINL=1;
7484 HAVE_DECL_ATANL=1;
7485 HAVE_DECL_CBRTF=1;
7486 HAVE_DECL_CBRTL=1;
7487 HAVE_DECL_CEILF=1;
7488 HAVE_DECL_CEILL=1;
7489 HAVE_DECL_COPYSIGNF=1;
7490 HAVE_DECL_COSL=1;
7491 HAVE_DECL_EXPL=1;
7492 HAVE_DECL_EXP2=1;
7493 HAVE_DECL_EXP2F=1;
7494 HAVE_DECL_EXP2L=1;
7495 HAVE_DECL_EXPM1L=1;
7496 HAVE_DECL_FLOORF=1;
7497 HAVE_DECL_FLOORL=1;
7498 HAVE_DECL_FREXPL=1;
7499 HAVE_DECL_LDEXPL=1;
7500 HAVE_DECL_LOGL=1;
7501 HAVE_DECL_LOG10L=1;
7502 HAVE_DECL_LOG2=1;
7503 HAVE_DECL_LOG2F=1;
7504 HAVE_DECL_LOG2L=1;
7505 HAVE_DECL_LOGB=1;
7506 HAVE_DECL_REMAINDER=1;
7507 HAVE_DECL_REMAINDERL=1;
7508 HAVE_DECL_RINTF=1;
7509 HAVE_DECL_ROUND=1;
7510 HAVE_DECL_ROUNDF=1;
7511 HAVE_DECL_ROUNDL=1;
7512 HAVE_DECL_SINL=1;
7513 HAVE_DECL_SQRTL=1;
7514 HAVE_DECL_TANL=1;
7515 HAVE_DECL_TRUNC=1;
7516 HAVE_DECL_TRUNCF=1;
7517 HAVE_DECL_TRUNCL=1;
7518 REPLACE_CBRTF=0;
7519 REPLACE_CBRTL=0;
7520 REPLACE_CEIL=0;
7521 REPLACE_CEILF=0;
7522 REPLACE_CEILL=0;
7523 REPLACE_EXPM1=0;
7524 REPLACE_EXPM1F=0;
7525 REPLACE_EXP2=0;
7526 REPLACE_EXP2L=0;
7527 REPLACE_FABSL=0;
7528 REPLACE_FLOOR=0;
7529 REPLACE_FLOORF=0;
7530 REPLACE_FLOORL=0;
7531 REPLACE_FMA=0;
7532 REPLACE_FMAF=0;
7533 REPLACE_FMAL=0;
7534 REPLACE_FMOD=0;
7535 REPLACE_FMODF=0;
7536 REPLACE_FMODL=0;
7537 REPLACE_FREXPF=0;
7538 REPLACE_FREXP=0;
7539 REPLACE_FREXPL=0;
7540 REPLACE_HUGE_VAL=0;
7541 REPLACE_HYPOT=0;
7542 REPLACE_HYPOTF=0;
7543 REPLACE_HYPOTL=0;
7544 REPLACE_ILOGB=0;
7545 REPLACE_ILOGBF=0;
7546 REPLACE_ISFINITE=0;
7547 REPLACE_ISINF=0;
7548 REPLACE_ISNAN=0;
7549 REPLACE_LDEXPL=0;
7550 REPLACE_LOG=0;
7551 REPLACE_LOGF=0;
7552 REPLACE_LOGL=0;
7553 REPLACE_LOG10=0;
7554 REPLACE_LOG10F=0;
7555 REPLACE_LOG10L=0;
7556 REPLACE_LOG1P=0;
7557 REPLACE_LOG1PF=0;
7558 REPLACE_LOG1PL=0;
7559 REPLACE_LOG2=0;
7560 REPLACE_LOG2F=0;
7561 REPLACE_LOG2L=0;
7562 REPLACE_LOGB=0;
7563 REPLACE_LOGBF=0;
7564 REPLACE_LOGBL=0;
7565 REPLACE_MODF=0;
7566 REPLACE_MODFF=0;
7567 REPLACE_MODFL=0;
7568 REPLACE_NAN=0;
7569 REPLACE_REMAINDER=0;
7570 REPLACE_REMAINDERF=0;
7571 REPLACE_REMAINDERL=0;
7572 REPLACE_ROUND=0;
7573 REPLACE_ROUNDF=0;
7574 REPLACE_ROUNDL=0;
7575 REPLACE_SIGNBIT=0;
7576 REPLACE_SIGNBIT_USING_GCC=0;
7577 REPLACE_SQRTL=0;
7578 REPLACE_TRUNC=0;
7579 REPLACE_TRUNCF=0;
7580 REPLACE_TRUNCL=0;
7581
7582
7583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
7584 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
7585 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
7586 $as_echo_n "(cached) " >&6
7587 else
7588
7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h. */
7591 #include <math.h>
7592 double x;
7593 int
7594 main ()
7595 {
7596 int e; return frexp (x, &e) > 0;
7597 ;
7598 return 0;
7599 }
7600 _ACEOF
7601 if ac_fn_c_try_link "$LINENO"; then :
7602 gl_cv_func_frexp_no_libm=yes
7603 else
7604 gl_cv_func_frexp_no_libm=no
7605 fi
7606 rm -f core conftest.err conftest.$ac_objext \
7607 conftest$ac_exeext conftest.$ac_ext
7608
7609 fi
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
7611 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
7612
7613 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
7614 if test "x$ac_cv_have_decl_alarm" = x""yes; then :
7615 ac_have_decl=1
7616 else
7617 ac_have_decl=0
7618 fi
7619
7620 cat >>confdefs.h <<_ACEOF
7621 #define HAVE_DECL_ALARM $ac_have_decl
7622 _ACEOF
7623
7624
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
7626 $as_echo_n "checking whether long double and double are the same... " >&6; }
7627 if test "${gl_cv_long_double_equals_double+set}" = set; then :
7628 $as_echo_n "(cached) " >&6
7629 else
7630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7631 /* end confdefs.h. */
7632 #include <float.h>
7633 int
7634 main ()
7635 {
7636 typedef int check[sizeof (long double) == sizeof (double)
7637 && LDBL_MANT_DIG == DBL_MANT_DIG
7638 && LDBL_MAX_EXP == DBL_MAX_EXP
7639 && LDBL_MIN_EXP == DBL_MIN_EXP
7640 ? 1 : -1];
7641
7642 ;
7643 return 0;
7644 }
7645 _ACEOF
7646 if ac_fn_c_try_compile "$LINENO"; then :
7647 gl_cv_long_double_equals_double=yes
7648 else
7649 gl_cv_long_double_equals_double=no
7650 fi
7651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7652
7653 fi
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
7655 $as_echo "$gl_cv_long_double_equals_double" >&6; }
7656 if test $gl_cv_long_double_equals_double = yes; then
7657
7658 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
7659
7660 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
7661 else
7662 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
7663 fi
7664
7665
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
7667 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7668 if test "${ac_cv_c_restrict+set}" = set; then :
7669 $as_echo_n "(cached) " >&6
7670 else
7671 ac_cv_c_restrict=no
7672 # The order here caters to the fact that C++ does not require restrict.
7673 for ac_kw in __restrict __restrict__ _Restrict restrict; do
7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675 /* end confdefs.h. */
7676 typedef int *int_ptr;
7677 int foo (int_ptr $ac_kw ip) { return ip[0]; }
7678 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
7679 int bar (int ip[$ac_kw]) { return ip[0]; }
7680
7681 int
7682 main ()
7683 {
7684 int s[1];
7685 int *$ac_kw t = s;
7686 t[0] = 0;
7687 return foo (t) + bar (t);
7688
7689 ;
7690 return 0;
7691 }
7692 _ACEOF
7693 if ac_fn_c_try_compile "$LINENO"; then :
7694 ac_cv_c_restrict=$ac_kw
7695 fi
7696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7697 test "$ac_cv_c_restrict" != no && break
7698 done
7699
7700 fi
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
7702 $as_echo "$ac_cv_c_restrict" >&6; }
7703
7704 case $ac_cv_c_restrict in
7705 restrict) ;;
7706 no) $as_echo "#define restrict /**/" >>confdefs.h
7707 ;;
7708 *) cat >>confdefs.h <<_ACEOF
7709 #define restrict $ac_cv_c_restrict
7710 _ACEOF
7711 ;;
7712 esac
7713
7714
7715 GNULIB_GETTIMEOFDAY=0;
7716 HAVE_GETTIMEOFDAY=1;
7717 HAVE_STRUCT_TIMEVAL=1;
7718 HAVE_SYS_TIME_H=1;
7719 HAVE_TIMEZONE_T=0;
7720 REPLACE_GETTIMEOFDAY=0;
7721 REPLACE_STRUCT_TIMEVAL=0;
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740 if test $gl_cv_have_include_next = yes; then
7741 gl_cv_next_sys_time_h='<'sys/time.h'>'
7742 else
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
7744 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
7745 if test "${gl_cv_next_sys_time_h+set}" = set; then :
7746 $as_echo_n "(cached) " >&6
7747 else
7748
7749 if test $ac_cv_header_sys_time_h = yes; then
7750
7751
7752
7753
7754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755 /* end confdefs.h. */
7756 #include <sys/time.h>
7757 _ACEOF
7758 case "$host_os" in
7759 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7760 *) gl_absname_cpp="$ac_cpp" ;;
7761 esac
7762
7763 case "$host_os" in
7764 mingw*)
7765 gl_dirsep_regex='[/\\]'
7766 ;;
7767 *)
7768 gl_dirsep_regex='\/'
7769 ;;
7770 esac
7771 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7772 gl_header_literal_regex=`echo 'sys/time.h' \
7773 | sed -e "$gl_make_literal_regex_sed"`
7774 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7775 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7776 s|^/[^/]|//&|
7777 p
7778 q
7779 }'
7780
7781 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7782 sed -n "$gl_absolute_header_sed"`
7783
7784 gl_header=$gl_cv_absolute_sys_time_h
7785 gl_cv_next_sys_time_h='"'$gl_header'"'
7786 else
7787 gl_cv_next_sys_time_h='<'sys/time.h'>'
7788 fi
7789
7790
7791 fi
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
7793 $as_echo "$gl_cv_next_sys_time_h" >&6; }
7794 fi
7795 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
7796
7797 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7798 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7799 gl_next_as_first_directive='<'sys/time.h'>'
7800 else
7801 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7802 gl_next_as_first_directive=$gl_cv_next_sys_time_h
7803 fi
7804 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
7805
7806
7807
7808
7809
7810 if test $ac_cv_header_sys_time_h != yes; then
7811 HAVE_SYS_TIME_H=0
7812 fi
7813
7814
7815
7816
7817
7818 if test $ac_cv_header_sys_socket_h != yes; then
7819 for ac_header in winsock2.h
7820 do :
7821 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
7822 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
7823 cat >>confdefs.h <<_ACEOF
7824 #define HAVE_WINSOCK2_H 1
7825 _ACEOF
7826
7827 fi
7828
7829 done
7830
7831 fi
7832 if test "$ac_cv_header_winsock2_h" = yes; then
7833 HAVE_WINSOCK2_H=1
7834 UNISTD_H_HAVE_WINSOCK2_H=1
7835 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
7836 else
7837 HAVE_WINSOCK2_H=0
7838 fi
7839
7840
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7842 $as_echo_n "checking for struct timeval... " >&6; }
7843 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
7844 $as_echo_n "(cached) " >&6
7845 else
7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h. */
7848 #if HAVE_SYS_TIME_H
7849 #include <sys/time.h>
7850 #endif
7851 #include <time.h>
7852 #if HAVE_WINSOCK2_H
7853 # include <winsock2.h>
7854 #endif
7855
7856 int
7857 main ()
7858 {
7859 static struct timeval x; x.tv_sec = x.tv_usec;
7860 ;
7861 return 0;
7862 }
7863 _ACEOF
7864 if ac_fn_c_try_compile "$LINENO"; then :
7865 gl_cv_sys_struct_timeval=yes
7866 else
7867 gl_cv_sys_struct_timeval=no
7868 fi
7869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7870
7871 fi
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
7873 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
7874 if test $gl_cv_sys_struct_timeval != yes; then
7875 HAVE_STRUCT_TIMEVAL=0
7876 else
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
7878 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
7879 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
7880 $as_echo_n "(cached) " >&6
7881 else
7882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7883 /* end confdefs.h. */
7884 #if HAVE_SYS_TIME_H
7885 #include <sys/time.h>
7886 #endif
7887 #include <time.h>
7888 #if HAVE_WINSOCK2_H
7889 # include <winsock2.h>
7890 #endif
7891
7892 int
7893 main ()
7894 {
7895 static struct timeval x;
7896 typedef int verify_tv_sec_type[
7897 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
7898 ];
7899
7900 ;
7901 return 0;
7902 }
7903 _ACEOF
7904 if ac_fn_c_try_compile "$LINENO"; then :
7905 gl_cv_sys_struct_timeval_tv_sec=yes
7906 else
7907 gl_cv_sys_struct_timeval_tv_sec=no
7908 fi
7909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7910
7911 fi
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
7913 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
7914 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
7915 REPLACE_STRUCT_TIMEVAL=1
7916 fi
7917 fi
7918
7919
7920 for gl_func in gettimeofday; do
7921 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7923 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7924 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7925 $as_echo_n "(cached) " >&6
7926 else
7927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928 /* end confdefs.h. */
7929
7930 #if HAVE_SYS_TIME_H
7931 # include <sys/time.h>
7932 #endif
7933 #include <time.h>
7934
7935 int
7936 main ()
7937 {
7938 #undef $gl_func
7939 (void) $gl_func;
7940 ;
7941 return 0;
7942 }
7943 _ACEOF
7944 if ac_fn_c_try_compile "$LINENO"; then :
7945 eval "$as_gl_Symbol=yes"
7946 else
7947 eval "$as_gl_Symbol=no"
7948 fi
7949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7950 fi
7951 eval ac_res=\$$as_gl_Symbol
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7953 $as_echo "$ac_res" >&6; }
7954 eval as_val=\$$as_gl_Symbol
7955 if test "x$as_val" = x""yes; then :
7956 cat >>confdefs.h <<_ACEOF
7957 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7958 _ACEOF
7959
7960 eval ac_cv_have_decl_$gl_func=yes
7961 fi
7962 done
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982 if test $gl_cv_have_include_next = yes; then
7983 gl_cv_next_limits_h='<'limits.h'>'
7984 else
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
7986 $as_echo_n "checking absolute name of <limits.h>... " >&6; }
7987 if test "${gl_cv_next_limits_h+set}" = set; then :
7988 $as_echo_n "(cached) " >&6
7989 else
7990
7991 if test $ac_cv_header_limits_h = yes; then
7992
7993
7994
7995
7996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7997 /* end confdefs.h. */
7998 #include <limits.h>
7999 _ACEOF
8000 case "$host_os" in
8001 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8002 *) gl_absname_cpp="$ac_cpp" ;;
8003 esac
8004
8005 case "$host_os" in
8006 mingw*)
8007 gl_dirsep_regex='[/\\]'
8008 ;;
8009 *)
8010 gl_dirsep_regex='\/'
8011 ;;
8012 esac
8013 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8014 gl_header_literal_regex=`echo 'limits.h' \
8015 | sed -e "$gl_make_literal_regex_sed"`
8016 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8017 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8018 s|^/[^/]|//&|
8019 p
8020 q
8021 }'
8022
8023 gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8024 sed -n "$gl_absolute_header_sed"`
8025
8026 gl_header=$gl_cv_absolute_limits_h
8027 gl_cv_next_limits_h='"'$gl_header'"'
8028 else
8029 gl_cv_next_limits_h='<'limits.h'>'
8030 fi
8031
8032
8033 fi
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
8035 $as_echo "$gl_cv_next_limits_h" >&6; }
8036 fi
8037 NEXT_LIMITS_H=$gl_cv_next_limits_h
8038
8039 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8040 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8041 gl_next_as_first_directive='<'limits.h'>'
8042 else
8043 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8044 gl_next_as_first_directive=$gl_cv_next_limits_h
8045 fi
8046 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
8047
8048
8049
8050
8051
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether limits.h has ULLONG_WIDTH etc." >&5
8053 $as_echo_n "checking whether limits.h has ULLONG_WIDTH etc.... " >&6; }
8054 if test "${gl_cv_header_limits_width+set}" = set; then :
8055 $as_echo_n "(cached) " >&6
8056 else
8057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8058 /* end confdefs.h. */
8059 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
8060 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
8061 #endif
8062 #include <limits.h>
8063 int ullw = ULLONG_WIDTH;
8064 int
8065 main ()
8066 {
8067
8068 ;
8069 return 0;
8070 }
8071 _ACEOF
8072 if ac_fn_c_try_compile "$LINENO"; then :
8073 gl_cv_header_limits_width=yes
8074 else
8075 gl_cv_header_limits_width=no
8076 fi
8077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8078 fi
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
8080 $as_echo "$gl_cv_header_limits_width" >&6; }
8081 if test "$gl_cv_header_limits_width" = yes; then
8082 LIMITS_H=
8083 else
8084 LIMITS_H=limits.h
8085 fi
8086
8087 if test -n "$LIMITS_H"; then
8088 GL_GENERATE_LIMITS_H_TRUE=
8089 GL_GENERATE_LIMITS_H_FALSE='#'
8090 else
8091 GL_GENERATE_LIMITS_H_TRUE='#'
8092 GL_GENERATE_LIMITS_H_FALSE=
8093 fi
8094
8095
8096
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
8098 $as_echo_n "checking for unsigned long long int... " >&6; }
8099 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
8100 $as_echo_n "(cached) " >&6
8101 else
8102 ac_cv_type_unsigned_long_long_int=yes
8103 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
8104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8105 /* end confdefs.h. */
8106
8107 /* For now, do not test the preprocessor; as of 2007 there are too many
8108 implementations with broken preprocessors. Perhaps this can
8109 be revisited in 2012. In the meantime, code should not expect
8110 #if to work with literals wider than 32 bits. */
8111 /* Test literals. */
8112 long long int ll = 9223372036854775807ll;
8113 long long int nll = -9223372036854775807LL;
8114 unsigned long long int ull = 18446744073709551615ULL;
8115 /* Test constant expressions. */
8116 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
8117 ? 1 : -1)];
8118 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
8119 ? 1 : -1)];
8120 int i = 63;
8121 int
8122 main ()
8123 {
8124 /* Test availability of runtime routines for shift and division. */
8125 long long int llmax = 9223372036854775807ll;
8126 unsigned long long int ullmax = 18446744073709551615ull;
8127 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
8128 | (llmax / ll) | (llmax % ll)
8129 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
8130 | (ullmax / ull) | (ullmax % ull));
8131 ;
8132 return 0;
8133 }
8134
8135 _ACEOF
8136 if ac_fn_c_try_link "$LINENO"; then :
8137
8138 else
8139 ac_cv_type_unsigned_long_long_int=no
8140 fi
8141 rm -f core conftest.err conftest.$ac_objext \
8142 conftest$ac_exeext conftest.$ac_ext
8143 fi
8144 fi
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
8146 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
8147 if test $ac_cv_type_unsigned_long_long_int = yes; then
8148
8149 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
8150
8151 fi
8152
8153
8154
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
8156 $as_echo_n "checking for long long int... " >&6; }
8157 if test "${ac_cv_type_long_long_int+set}" = set; then :
8158 $as_echo_n "(cached) " >&6
8159 else
8160 ac_cv_type_long_long_int=yes
8161 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
8162 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
8163 if test $ac_cv_type_long_long_int = yes; then
8164 if test "$cross_compiling" = yes; then :
8165 :
8166 else
8167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8168 /* end confdefs.h. */
8169 #include <limits.h>
8170 #ifndef LLONG_MAX
8171 # define HALF \
8172 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
8173 # define LLONG_MAX (HALF - 1 + HALF)
8174 #endif
8175 int
8176 main ()
8177 {
8178 long long int n = 1;
8179 int i;
8180 for (i = 0; ; i++)
8181 {
8182 long long int m = n << i;
8183 if (m >> i != n)
8184 return 1;
8185 if (LLONG_MAX / 2 < m)
8186 break;
8187 }
8188 return 0;
8189 ;
8190 return 0;
8191 }
8192 _ACEOF
8193 if ac_fn_c_try_run "$LINENO"; then :
8194
8195 else
8196 ac_cv_type_long_long_int=no
8197 fi
8198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8199 conftest.$ac_objext conftest.beam conftest.$ac_ext
8200 fi
8201
8202 fi
8203 fi
8204 fi
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
8206 $as_echo "$ac_cv_type_long_long_int" >&6; }
8207 if test $ac_cv_type_long_long_int = yes; then
8208
8209 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
8210
8211 fi
8212
8213
8214
8215
8216
8217
8218 gl_cv_c_multiarch=no
8219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8220 /* end confdefs.h. */
8221 #ifndef __APPLE_CC__
8222 not a universal capable compiler
8223 #endif
8224 typedef int dummy;
8225
8226 _ACEOF
8227 if ac_fn_c_try_compile "$LINENO"; then :
8228
8229 arch=
8230 prev=
8231 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
8232 if test -n "$prev"; then
8233 case $word in
8234 i?86 | x86_64 | ppc | ppc64)
8235 if test -z "$arch" || test "$arch" = "$word"; then
8236 arch="$word"
8237 else
8238 gl_cv_c_multiarch=yes
8239 fi
8240 ;;
8241 esac
8242 prev=
8243 else
8244 if test "x$word" = "x-arch"; then
8245 prev=arch
8246 fi
8247 fi
8248 done
8249
8250 fi
8251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8252 if test $gl_cv_c_multiarch = yes; then
8253 APPLE_UNIVERSAL_BUILD=1
8254 else
8255 APPLE_UNIVERSAL_BUILD=0
8256 fi
8257
8258
8259
8260
8261
8262
8263
8264 if test $ac_cv_type_long_long_int = yes; then
8265 HAVE_LONG_LONG_INT=1
8266 else
8267 HAVE_LONG_LONG_INT=0
8268 fi
8269
8270
8271 if test $ac_cv_type_unsigned_long_long_int = yes; then
8272 HAVE_UNSIGNED_LONG_LONG_INT=1
8273 else
8274 HAVE_UNSIGNED_LONG_LONG_INT=0
8275 fi
8276
8277
8278
8279 if test $ac_cv_header_wchar_h = yes; then
8280 HAVE_WCHAR_H=1
8281 else
8282 HAVE_WCHAR_H=0
8283 fi
8284
8285
8286 if test $ac_cv_header_inttypes_h = yes; then
8287 HAVE_INTTYPES_H=1
8288 else
8289 HAVE_INTTYPES_H=0
8290 fi
8291
8292
8293 if test $ac_cv_header_sys_types_h = yes; then
8294 HAVE_SYS_TYPES_H=1
8295 else
8296 HAVE_SYS_TYPES_H=0
8297 fi
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309 if test $gl_cv_have_include_next = yes; then
8310 gl_cv_next_stdint_h='<'stdint.h'>'
8311 else
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
8313 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
8314 if test "${gl_cv_next_stdint_h+set}" = set; then :
8315 $as_echo_n "(cached) " >&6
8316 else
8317
8318 if test $ac_cv_header_stdint_h = yes; then
8319
8320
8321
8322
8323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324 /* end confdefs.h. */
8325 #include <stdint.h>
8326 _ACEOF
8327 case "$host_os" in
8328 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8329 *) gl_absname_cpp="$ac_cpp" ;;
8330 esac
8331
8332 case "$host_os" in
8333 mingw*)
8334 gl_dirsep_regex='[/\\]'
8335 ;;
8336 *)
8337 gl_dirsep_regex='\/'
8338 ;;
8339 esac
8340 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8341 gl_header_literal_regex=`echo 'stdint.h' \
8342 | sed -e "$gl_make_literal_regex_sed"`
8343 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8344 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8345 s|^/[^/]|//&|
8346 p
8347 q
8348 }'
8349
8350 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8351 sed -n "$gl_absolute_header_sed"`
8352
8353 gl_header=$gl_cv_absolute_stdint_h
8354 gl_cv_next_stdint_h='"'$gl_header'"'
8355 else
8356 gl_cv_next_stdint_h='<'stdint.h'>'
8357 fi
8358
8359
8360 fi
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
8362 $as_echo "$gl_cv_next_stdint_h" >&6; }
8363 fi
8364 NEXT_STDINT_H=$gl_cv_next_stdint_h
8365
8366 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8367 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8368 gl_next_as_first_directive='<'stdint.h'>'
8369 else
8370 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8371 gl_next_as_first_directive=$gl_cv_next_stdint_h
8372 fi
8373 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
8374
8375
8376
8377
8378 if test $ac_cv_header_stdint_h = yes; then
8379 HAVE_STDINT_H=1
8380 else
8381 HAVE_STDINT_H=0
8382 fi
8383
8384
8385 if test $ac_cv_header_stdint_h = yes; then
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
8387 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
8388 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
8389 $as_echo_n "(cached) " >&6
8390 else
8391 gl_cv_header_working_stdint_h=no
8392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8393 /* end confdefs.h. */
8394
8395
8396 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8397 #define __STDC_CONSTANT_MACROS 1
8398 #define __STDC_LIMIT_MACROS 1
8399 #include <stdint.h>
8400 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
8401 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
8402 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
8403 #endif
8404
8405
8406 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8407 included before <wchar.h>. */
8408 #include <stddef.h>
8409 #include <signal.h>
8410 #if HAVE_WCHAR_H
8411 # include <stdio.h>
8412 # include <time.h>
8413 # include <wchar.h>
8414 #endif
8415
8416
8417 #ifdef INT8_MAX
8418 int8_t a1 = INT8_MAX;
8419 int8_t a1min = INT8_MIN;
8420 #endif
8421 #ifdef INT16_MAX
8422 int16_t a2 = INT16_MAX;
8423 int16_t a2min = INT16_MIN;
8424 #endif
8425 #ifdef INT32_MAX
8426 int32_t a3 = INT32_MAX;
8427 int32_t a3min = INT32_MIN;
8428 #endif
8429 #ifdef INT64_MAX
8430 int64_t a4 = INT64_MAX;
8431 int64_t a4min = INT64_MIN;
8432 #endif
8433 #ifdef UINT8_MAX
8434 uint8_t b1 = UINT8_MAX;
8435 #else
8436 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
8437 #endif
8438 #ifdef UINT16_MAX
8439 uint16_t b2 = UINT16_MAX;
8440 #endif
8441 #ifdef UINT32_MAX
8442 uint32_t b3 = UINT32_MAX;
8443 #endif
8444 #ifdef UINT64_MAX
8445 uint64_t b4 = UINT64_MAX;
8446 #endif
8447 int_least8_t c1 = INT8_C (0x7f);
8448 int_least8_t c1max = INT_LEAST8_MAX;
8449 int_least8_t c1min = INT_LEAST8_MIN;
8450 int_least16_t c2 = INT16_C (0x7fff);
8451 int_least16_t c2max = INT_LEAST16_MAX;
8452 int_least16_t c2min = INT_LEAST16_MIN;
8453 int_least32_t c3 = INT32_C (0x7fffffff);
8454 int_least32_t c3max = INT_LEAST32_MAX;
8455 int_least32_t c3min = INT_LEAST32_MIN;
8456 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
8457 int_least64_t c4max = INT_LEAST64_MAX;
8458 int_least64_t c4min = INT_LEAST64_MIN;
8459 uint_least8_t d1 = UINT8_C (0xff);
8460 uint_least8_t d1max = UINT_LEAST8_MAX;
8461 uint_least16_t d2 = UINT16_C (0xffff);
8462 uint_least16_t d2max = UINT_LEAST16_MAX;
8463 uint_least32_t d3 = UINT32_C (0xffffffff);
8464 uint_least32_t d3max = UINT_LEAST32_MAX;
8465 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
8466 uint_least64_t d4max = UINT_LEAST64_MAX;
8467 int_fast8_t e1 = INT_FAST8_MAX;
8468 int_fast8_t e1min = INT_FAST8_MIN;
8469 int_fast16_t e2 = INT_FAST16_MAX;
8470 int_fast16_t e2min = INT_FAST16_MIN;
8471 int_fast32_t e3 = INT_FAST32_MAX;
8472 int_fast32_t e3min = INT_FAST32_MIN;
8473 int_fast64_t e4 = INT_FAST64_MAX;
8474 int_fast64_t e4min = INT_FAST64_MIN;
8475 uint_fast8_t f1 = UINT_FAST8_MAX;
8476 uint_fast16_t f2 = UINT_FAST16_MAX;
8477 uint_fast32_t f3 = UINT_FAST32_MAX;
8478 uint_fast64_t f4 = UINT_FAST64_MAX;
8479 #ifdef INTPTR_MAX
8480 intptr_t g = INTPTR_MAX;
8481 intptr_t gmin = INTPTR_MIN;
8482 #endif
8483 #ifdef UINTPTR_MAX
8484 uintptr_t h = UINTPTR_MAX;
8485 #endif
8486 intmax_t i = INTMAX_MAX;
8487 uintmax_t j = UINTMAX_MAX;
8488
8489 /* Check that SIZE_MAX has the correct type, if possible. */
8490 #if 201112 <= __STDC_VERSION__
8491 int k = _Generic (SIZE_MAX, size_t: 0);
8492 #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
8493 || (0x5110 <= __SUNPRO_C && !__STDC__))
8494 extern size_t k;
8495 extern __typeof__ (SIZE_MAX) k;
8496 #endif
8497
8498 #include <limits.h> /* for CHAR_BIT */
8499 #define TYPE_MINIMUM(t) \
8500 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
8501 #define TYPE_MAXIMUM(t) \
8502 ((t) ((t) 0 < (t) -1 \
8503 ? (t) -1 \
8504 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
8505 struct s {
8506 int check_PTRDIFF:
8507 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
8508 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
8509 ? 1 : -1;
8510 /* Detect bug in FreeBSD 6.0 / ia64. */
8511 int check_SIG_ATOMIC:
8512 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
8513 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
8514 ? 1 : -1;
8515 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
8516 int check_WCHAR:
8517 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
8518 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
8519 ? 1 : -1;
8520 /* Detect bug in mingw. */
8521 int check_WINT:
8522 WINT_MIN == TYPE_MINIMUM (wint_t)
8523 && WINT_MAX == TYPE_MAXIMUM (wint_t)
8524 ? 1 : -1;
8525
8526 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
8527 int check_UINT8_C:
8528 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
8529 int check_UINT16_C:
8530 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
8531
8532 /* Detect bugs in OpenBSD 3.9 stdint.h. */
8533 #ifdef UINT8_MAX
8534 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
8535 #endif
8536 #ifdef UINT16_MAX
8537 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
8538 #endif
8539 #ifdef UINT32_MAX
8540 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
8541 #endif
8542 #ifdef UINT64_MAX
8543 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
8544 #endif
8545 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
8546 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
8547 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
8548 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
8549 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
8550 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
8551 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
8552 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
8553 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
8554 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
8555 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
8556 };
8557
8558 int
8559 main ()
8560 {
8561
8562 ;
8563 return 0;
8564 }
8565 _ACEOF
8566 if ac_fn_c_try_compile "$LINENO"; then :
8567 if test "$cross_compiling" = yes; then :
8568 gl_cv_header_working_stdint_h=yes
8569
8570 else
8571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8572 /* end confdefs.h. */
8573
8574
8575 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8576 #define __STDC_CONSTANT_MACROS 1
8577 #define __STDC_LIMIT_MACROS 1
8578 #include <stdint.h>
8579
8580
8581 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8582 included before <wchar.h>. */
8583 #include <stddef.h>
8584 #include <signal.h>
8585 #if HAVE_WCHAR_H
8586 # include <stdio.h>
8587 # include <time.h>
8588 # include <wchar.h>
8589 #endif
8590
8591
8592 #include <stdio.h>
8593 #include <string.h>
8594 #define MVAL(macro) MVAL1(macro)
8595 #define MVAL1(expression) #expression
8596 static const char *macro_values[] =
8597 {
8598 #ifdef INT8_MAX
8599 MVAL (INT8_MAX),
8600 #endif
8601 #ifdef INT16_MAX
8602 MVAL (INT16_MAX),
8603 #endif
8604 #ifdef INT32_MAX
8605 MVAL (INT32_MAX),
8606 #endif
8607 #ifdef INT64_MAX
8608 MVAL (INT64_MAX),
8609 #endif
8610 #ifdef UINT8_MAX
8611 MVAL (UINT8_MAX),
8612 #endif
8613 #ifdef UINT16_MAX
8614 MVAL (UINT16_MAX),
8615 #endif
8616 #ifdef UINT32_MAX
8617 MVAL (UINT32_MAX),
8618 #endif
8619 #ifdef UINT64_MAX
8620 MVAL (UINT64_MAX),
8621 #endif
8622 NULL
8623 };
8624
8625 int
8626 main ()
8627 {
8628
8629 const char **mv;
8630 for (mv = macro_values; *mv != NULL; mv++)
8631 {
8632 const char *value = *mv;
8633 /* Test whether it looks like a cast expression. */
8634 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
8635 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
8636 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
8637 || strncmp (value, "((int)"/*)*/, 6) == 0
8638 || strncmp (value, "((signed short)"/*)*/, 15) == 0
8639 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
8640 return mv - macro_values + 1;
8641 }
8642 return 0;
8643
8644 ;
8645 return 0;
8646 }
8647 _ACEOF
8648 if ac_fn_c_try_run "$LINENO"; then :
8649 gl_cv_header_working_stdint_h=yes
8650 fi
8651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8652 conftest.$ac_objext conftest.beam conftest.$ac_ext
8653 fi
8654
8655
8656 fi
8657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8658
8659 fi
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
8661 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
8662 fi
8663
8664 HAVE_C99_STDINT_H=0
8665 HAVE_SYS_BITYPES_H=0
8666 HAVE_SYS_INTTYPES_H=0
8667 STDINT_H=stdint.h
8668 if test "$gl_cv_header_working_stdint_h" = yes; then
8669 HAVE_C99_STDINT_H=1
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
8671 $as_echo_n "checking whether stdint.h predates C++11... " >&6; }
8672 if test "${gl_cv_header_stdint_predates_cxx11_h+set}" = set; then :
8673 $as_echo_n "(cached) " >&6
8674 else
8675 gl_cv_header_stdint_predates_cxx11_h=yes
8676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8677 /* end confdefs.h. */
8678
8679
8680 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8681 #include <stdint.h>
8682
8683
8684 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8685 included before <wchar.h>. */
8686 #include <stddef.h>
8687 #include <signal.h>
8688 #if HAVE_WCHAR_H
8689 # include <stdio.h>
8690 # include <time.h>
8691 # include <wchar.h>
8692 #endif
8693
8694
8695 intmax_t im = INTMAX_MAX;
8696 int32_t i32 = INT32_C (0x7fffffff);
8697
8698 int
8699 main ()
8700 {
8701
8702 ;
8703 return 0;
8704 }
8705 _ACEOF
8706 if ac_fn_c_try_compile "$LINENO"; then :
8707 gl_cv_header_stdint_predates_cxx11_h=no
8708 fi
8709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8710 fi
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
8712 $as_echo "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
8713
8714 if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
8715
8716 $as_echo "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
8717
8718
8719 $as_echo "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
8720
8721 fi
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
8723 $as_echo_n "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
8724 if test "${gl_cv_header_stdint_width+set}" = set; then :
8725 $as_echo_n "(cached) " >&6
8726 else
8727 gl_cv_header_stdint_width=no
8728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729 /* end confdefs.h. */
8730
8731 /* Work if build is not clean. */
8732 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
8733 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
8734 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
8735 #endif
8736 #include <stdint.h>
8737
8738 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8739 included before <wchar.h>. */
8740 #include <stddef.h>
8741 #include <signal.h>
8742 #if HAVE_WCHAR_H
8743 # include <stdio.h>
8744 # include <time.h>
8745 # include <wchar.h>
8746 #endif
8747
8748 int iw = UINTMAX_WIDTH;
8749
8750 int
8751 main ()
8752 {
8753
8754 ;
8755 return 0;
8756 }
8757 _ACEOF
8758 if ac_fn_c_try_compile "$LINENO"; then :
8759 gl_cv_header_stdint_width=yes
8760 fi
8761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8762 fi
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
8764 $as_echo "$gl_cv_header_stdint_width" >&6; }
8765 if test "$gl_cv_header_stdint_width" = yes; then
8766 STDINT_H=
8767 fi
8768 else
8769 for ac_header in sys/inttypes.h sys/bitypes.h
8770 do :
8771 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8772 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8773 eval as_val=\$$as_ac_Header
8774 if test "x$as_val" = x""yes; then :
8775 cat >>confdefs.h <<_ACEOF
8776 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8777 _ACEOF
8778
8779 fi
8780
8781 done
8782
8783 if test $ac_cv_header_sys_inttypes_h = yes; then
8784 HAVE_SYS_INTTYPES_H=1
8785 fi
8786 if test $ac_cv_header_sys_bitypes_h = yes; then
8787 HAVE_SYS_BITYPES_H=1
8788 fi
8789
8790
8791 if test $APPLE_UNIVERSAL_BUILD = 0; then
8792
8793
8794 for gltype in ptrdiff_t size_t ; do
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8796 $as_echo_n "checking for bit size of $gltype... " >&6; }
8797 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8798 $as_echo_n "(cached) " >&6
8799 else
8800 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8801 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8802 included before <wchar.h>. */
8803 #include <stddef.h>
8804 #include <signal.h>
8805 #if HAVE_WCHAR_H
8806 # include <stdio.h>
8807 # include <time.h>
8808 # include <wchar.h>
8809 #endif
8810
8811 #include <limits.h>"; then :
8812
8813 else
8814 result=unknown
8815 fi
8816
8817 eval gl_cv_bitsizeof_${gltype}=\$result
8818
8819 fi
8820 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8822 $as_echo "$ac_res" >&6; }
8823 eval result=\$gl_cv_bitsizeof_${gltype}
8824 if test $result = unknown; then
8825 result=0
8826 fi
8827 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8828 cat >>confdefs.h <<_ACEOF
8829 #define BITSIZEOF_${GLTYPE} $result
8830 _ACEOF
8831
8832 eval BITSIZEOF_${GLTYPE}=\$result
8833 done
8834
8835
8836 fi
8837
8838
8839 for gltype in sig_atomic_t wchar_t wint_t ; do
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8841 $as_echo_n "checking for bit size of $gltype... " >&6; }
8842 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8843 $as_echo_n "(cached) " >&6
8844 else
8845 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8846 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8847 included before <wchar.h>. */
8848 #include <stddef.h>
8849 #include <signal.h>
8850 #if HAVE_WCHAR_H
8851 # include <stdio.h>
8852 # include <time.h>
8853 # include <wchar.h>
8854 #endif
8855
8856 #include <limits.h>"; then :
8857
8858 else
8859 result=unknown
8860 fi
8861
8862 eval gl_cv_bitsizeof_${gltype}=\$result
8863
8864 fi
8865 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8867 $as_echo "$ac_res" >&6; }
8868 eval result=\$gl_cv_bitsizeof_${gltype}
8869 if test $result = unknown; then
8870 result=0
8871 fi
8872 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8873 cat >>confdefs.h <<_ACEOF
8874 #define BITSIZEOF_${GLTYPE} $result
8875 _ACEOF
8876
8877 eval BITSIZEOF_${GLTYPE}=\$result
8878 done
8879
8880
8881
8882
8883 for gltype in sig_atomic_t wchar_t wint_t ; do
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
8885 $as_echo_n "checking whether $gltype is signed... " >&6; }
8886 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
8887 $as_echo_n "(cached) " >&6
8888 else
8889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8890 /* end confdefs.h. */
8891
8892 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8893 included before <wchar.h>. */
8894 #include <stddef.h>
8895 #include <signal.h>
8896 #if HAVE_WCHAR_H
8897 # include <stdio.h>
8898 # include <time.h>
8899 # include <wchar.h>
8900 #endif
8901
8902 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
8903 int
8904 main ()
8905 {
8906
8907 ;
8908 return 0;
8909 }
8910 _ACEOF
8911 if ac_fn_c_try_compile "$LINENO"; then :
8912 result=yes
8913 else
8914 result=no
8915 fi
8916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8917 eval gl_cv_type_${gltype}_signed=\$result
8918
8919 fi
8920 eval ac_res=\$gl_cv_type_${gltype}_signed
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8922 $as_echo "$ac_res" >&6; }
8923 eval result=\$gl_cv_type_${gltype}_signed
8924 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8925 if test "$result" = yes; then
8926 cat >>confdefs.h <<_ACEOF
8927 #define HAVE_SIGNED_${GLTYPE} 1
8928 _ACEOF
8929
8930 eval HAVE_SIGNED_${GLTYPE}=1
8931 else
8932 eval HAVE_SIGNED_${GLTYPE}=0
8933 fi
8934 done
8935
8936
8937 gl_cv_type_ptrdiff_t_signed=yes
8938 gl_cv_type_size_t_signed=no
8939 if test $APPLE_UNIVERSAL_BUILD = 0; then
8940
8941
8942 for gltype in ptrdiff_t size_t ; do
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8944 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8945 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8946 $as_echo_n "(cached) " >&6
8947 else
8948 eval gl_cv_type_${gltype}_suffix=no
8949 eval result=\$gl_cv_type_${gltype}_signed
8950 if test "$result" = yes; then
8951 glsufu=
8952 else
8953 glsufu=u
8954 fi
8955 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8956 case $glsuf in
8957 '') gltype1='int';;
8958 l) gltype1='long int';;
8959 ll) gltype1='long long int';;
8960 i64) gltype1='__int64';;
8961 u) gltype1='unsigned int';;
8962 ul) gltype1='unsigned long int';;
8963 ull) gltype1='unsigned long long int';;
8964 ui64)gltype1='unsigned __int64';;
8965 esac
8966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8967 /* end confdefs.h. */
8968
8969 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8970 included before <wchar.h>. */
8971 #include <stddef.h>
8972 #include <signal.h>
8973 #if HAVE_WCHAR_H
8974 # include <stdio.h>
8975 # include <time.h>
8976 # include <wchar.h>
8977 #endif
8978
8979 extern $gltype foo;
8980 extern $gltype1 foo;
8981 int
8982 main ()
8983 {
8984
8985 ;
8986 return 0;
8987 }
8988 _ACEOF
8989 if ac_fn_c_try_compile "$LINENO"; then :
8990 eval gl_cv_type_${gltype}_suffix=\$glsuf
8991 fi
8992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8993 eval result=\$gl_cv_type_${gltype}_suffix
8994 test "$result" != no && break
8995 done
8996 fi
8997 eval ac_res=\$gl_cv_type_${gltype}_suffix
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8999 $as_echo "$ac_res" >&6; }
9000 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
9001 eval result=\$gl_cv_type_${gltype}_suffix
9002 test "$result" = no && result=
9003 eval ${GLTYPE}_SUFFIX=\$result
9004 cat >>confdefs.h <<_ACEOF
9005 #define ${GLTYPE}_SUFFIX $result
9006 _ACEOF
9007
9008 done
9009
9010
9011 fi
9012
9013
9014 for gltype in sig_atomic_t wchar_t wint_t ; do
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
9016 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
9017 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
9018 $as_echo_n "(cached) " >&6
9019 else
9020 eval gl_cv_type_${gltype}_suffix=no
9021 eval result=\$gl_cv_type_${gltype}_signed
9022 if test "$result" = yes; then
9023 glsufu=
9024 else
9025 glsufu=u
9026 fi
9027 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
9028 case $glsuf in
9029 '') gltype1='int';;
9030 l) gltype1='long int';;
9031 ll) gltype1='long long int';;
9032 i64) gltype1='__int64';;
9033 u) gltype1='unsigned int';;
9034 ul) gltype1='unsigned long int';;
9035 ull) gltype1='unsigned long long int';;
9036 ui64)gltype1='unsigned __int64';;
9037 esac
9038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039 /* end confdefs.h. */
9040
9041 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9042 included before <wchar.h>. */
9043 #include <stddef.h>
9044 #include <signal.h>
9045 #if HAVE_WCHAR_H
9046 # include <stdio.h>
9047 # include <time.h>
9048 # include <wchar.h>
9049 #endif
9050
9051 extern $gltype foo;
9052 extern $gltype1 foo;
9053 int
9054 main ()
9055 {
9056
9057 ;
9058 return 0;
9059 }
9060 _ACEOF
9061 if ac_fn_c_try_compile "$LINENO"; then :
9062 eval gl_cv_type_${gltype}_suffix=\$glsuf
9063 fi
9064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9065 eval result=\$gl_cv_type_${gltype}_suffix
9066 test "$result" != no && break
9067 done
9068 fi
9069 eval ac_res=\$gl_cv_type_${gltype}_suffix
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9071 $as_echo "$ac_res" >&6; }
9072 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
9073 eval result=\$gl_cv_type_${gltype}_suffix
9074 test "$result" = no && result=
9075 eval ${GLTYPE}_SUFFIX=\$result
9076 cat >>confdefs.h <<_ACEOF
9077 #define ${GLTYPE}_SUFFIX $result
9078 _ACEOF
9079
9080 done
9081
9082
9083
9084 if test $BITSIZEOF_WINT_T -lt 32; then
9085 BITSIZEOF_WINT_T=32
9086 fi
9087
9088 fi
9089
9090 # The substitute stdint.h needs the substitute limit.h's _GL_INTEGER_WIDTH.
9091 LIMITS_H=limits.h
9092 if test -n "$LIMITS_H"; then
9093 GL_GENERATE_LIMITS_H_TRUE=
9094 GL_GENERATE_LIMITS_H_FALSE='#'
9095 else
9096 GL_GENERATE_LIMITS_H_TRUE='#'
9097 GL_GENERATE_LIMITS_H_FALSE=
9098 fi
9099
9100
9101
9102
9103
9104
9105 if test -n "$STDINT_H"; then
9106 GL_GENERATE_STDINT_H_TRUE=
9107 GL_GENERATE_STDINT_H_FALSE='#'
9108 else
9109 GL_GENERATE_STDINT_H_TRUE='#'
9110 GL_GENERATE_STDINT_H_FALSE=
9111 fi
9112
9113
9114
9115
9116
9117 GNULIB_IMAXABS=0;
9118 GNULIB_IMAXDIV=0;
9119 GNULIB_STRTOIMAX=0;
9120 GNULIB_STRTOUMAX=0;
9121 HAVE_DECL_IMAXABS=1;
9122 HAVE_DECL_IMAXDIV=1;
9123 HAVE_DECL_STRTOIMAX=1;
9124 HAVE_DECL_STRTOUMAX=1;
9125 REPLACE_STRTOIMAX=0;
9126 REPLACE_STRTOUMAX=0;
9127 INT32_MAX_LT_INTMAX_MAX=1;
9128 INT64_MAX_EQ_LONG_MAX='defined _LP64';
9129 PRI_MACROS_BROKEN=0;
9130 PRIPTR_PREFIX=__PRIPTR_PREFIX;
9131 UINT32_MAX_LT_UINTMAX_MAX=1;
9132 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148 if test $gl_cv_have_include_next = yes; then
9149 gl_cv_next_inttypes_h='<'inttypes.h'>'
9150 else
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
9152 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
9153 if test "${gl_cv_next_inttypes_h+set}" = set; then :
9154 $as_echo_n "(cached) " >&6
9155 else
9156
9157 if test $ac_cv_header_inttypes_h = yes; then
9158
9159
9160
9161
9162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h. */
9164 #include <inttypes.h>
9165 _ACEOF
9166 case "$host_os" in
9167 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9168 *) gl_absname_cpp="$ac_cpp" ;;
9169 esac
9170
9171 case "$host_os" in
9172 mingw*)
9173 gl_dirsep_regex='[/\\]'
9174 ;;
9175 *)
9176 gl_dirsep_regex='\/'
9177 ;;
9178 esac
9179 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9180 gl_header_literal_regex=`echo 'inttypes.h' \
9181 | sed -e "$gl_make_literal_regex_sed"`
9182 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9183 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9184 s|^/[^/]|//&|
9185 p
9186 q
9187 }'
9188
9189 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9190 sed -n "$gl_absolute_header_sed"`
9191
9192 gl_header=$gl_cv_absolute_inttypes_h
9193 gl_cv_next_inttypes_h='"'$gl_header'"'
9194 else
9195 gl_cv_next_inttypes_h='<'inttypes.h'>'
9196 fi
9197
9198
9199 fi
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
9201 $as_echo "$gl_cv_next_inttypes_h" >&6; }
9202 fi
9203 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
9204
9205 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9206 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9207 gl_next_as_first_directive='<'inttypes.h'>'
9208 else
9209 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9210 gl_next_as_first_directive=$gl_cv_next_inttypes_h
9211 fi
9212 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
9213
9214
9215
9216
9217
9218
9219
9220
9221 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
9222 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9224 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9225 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
9226 $as_echo_n "(cached) " >&6
9227 else
9228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9229 /* end confdefs.h. */
9230 #include <inttypes.h>
9231
9232 int
9233 main ()
9234 {
9235 #undef $gl_func
9236 (void) $gl_func;
9237 ;
9238 return 0;
9239 }
9240 _ACEOF
9241 if ac_fn_c_try_compile "$LINENO"; then :
9242 eval "$as_gl_Symbol=yes"
9243 else
9244 eval "$as_gl_Symbol=no"
9245 fi
9246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9247 fi
9248 eval ac_res=\$$as_gl_Symbol
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9250 $as_echo "$ac_res" >&6; }
9251 eval as_val=\$$as_gl_Symbol
9252 if test "x$as_val" = x""yes; then :
9253 cat >>confdefs.h <<_ACEOF
9254 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9255 _ACEOF
9256
9257 eval ac_cv_have_decl_$gl_func=yes
9258 fi
9259 done
9260
9261
9262
9263 for ac_header in inttypes.h
9264 do :
9265 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
9266 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
9267 cat >>confdefs.h <<_ACEOF
9268 #define HAVE_INTTYPES_H 1
9269 _ACEOF
9270
9271 fi
9272
9273 done
9274
9275 if test $ac_cv_header_inttypes_h = yes; then
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
9277 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
9278 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
9279 $as_echo_n "(cached) " >&6
9280 else
9281
9282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9283 /* end confdefs.h. */
9284
9285 #include <inttypes.h>
9286 #ifdef PRId32
9287 char *p = PRId32;
9288 #endif
9289
9290 int
9291 main ()
9292 {
9293
9294 ;
9295 return 0;
9296 }
9297 _ACEOF
9298 if ac_fn_c_try_compile "$LINENO"; then :
9299 gt_cv_inttypes_pri_broken=no
9300 else
9301 gt_cv_inttypes_pri_broken=yes
9302 fi
9303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9304
9305 fi
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
9307 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
9308 fi
9309 if test "$gt_cv_inttypes_pri_broken" = yes; then
9310
9311 cat >>confdefs.h <<_ACEOF
9312 #define PRI_MACROS_BROKEN 1
9313 _ACEOF
9314
9315 PRI_MACROS_BROKEN=1
9316 else
9317 PRI_MACROS_BROKEN=0
9318 fi
9319
9320
9321
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
9323 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
9324 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
9325 $as_echo_n "(cached) " >&6
9326 else
9327
9328 if test "$cross_compiling" = yes; then :
9329
9330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9331 /* end confdefs.h. */
9332
9333 #if defined arm || defined __arm || defined __arm__
9334 mixed_endianness
9335 #endif
9336
9337 _ACEOF
9338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9339 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
9340 gl_cv_cc_double_expbit0="unknown"
9341 else
9342
9343 :
9344 if test "${ac_cv_c_bigendian+set}" = set; then :
9345 $as_echo_n "(cached) " >&6
9346 else
9347 ac_cv_c_bigendian=unknown
9348 # See if we're dealing with a universal compiler.
9349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9350 /* end confdefs.h. */
9351 #ifndef __APPLE_CC__
9352 not a universal capable compiler
9353 #endif
9354 typedef int dummy;
9355
9356 _ACEOF
9357 if ac_fn_c_try_compile "$LINENO"; then :
9358
9359 # Check for potential -arch flags. It is not universal unless
9360 # there are at least two -arch flags with different values.
9361 ac_arch=
9362 ac_prev=
9363 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9364 if test -n "$ac_prev"; then
9365 case $ac_word in
9366 i?86 | x86_64 | ppc | ppc64)
9367 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9368 ac_arch=$ac_word
9369 else
9370 ac_cv_c_bigendian=universal
9371 break
9372 fi
9373 ;;
9374 esac
9375 ac_prev=
9376 elif test "x$ac_word" = "x-arch"; then
9377 ac_prev=arch
9378 fi
9379 done
9380 fi
9381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9382 if test $ac_cv_c_bigendian = unknown; then
9383 # See if sys/param.h defines the BYTE_ORDER macro.
9384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9385 /* end confdefs.h. */
9386 #include <sys/types.h>
9387 #include <sys/param.h>
9388
9389 int
9390 main ()
9391 {
9392 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9393 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9394 && LITTLE_ENDIAN)
9395 bogus endian macros
9396 #endif
9397
9398 ;
9399 return 0;
9400 }
9401 _ACEOF
9402 if ac_fn_c_try_compile "$LINENO"; then :
9403 # It does; now see whether it defined to BIG_ENDIAN or not.
9404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9405 /* end confdefs.h. */
9406 #include <sys/types.h>
9407 #include <sys/param.h>
9408
9409 int
9410 main ()
9411 {
9412 #if BYTE_ORDER != BIG_ENDIAN
9413 not big endian
9414 #endif
9415
9416 ;
9417 return 0;
9418 }
9419 _ACEOF
9420 if ac_fn_c_try_compile "$LINENO"; then :
9421 ac_cv_c_bigendian=yes
9422 else
9423 ac_cv_c_bigendian=no
9424 fi
9425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9426 fi
9427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9428 fi
9429 if test $ac_cv_c_bigendian = unknown; then
9430 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9432 /* end confdefs.h. */
9433 #include <limits.h>
9434
9435 int
9436 main ()
9437 {
9438 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9439 bogus endian macros
9440 #endif
9441
9442 ;
9443 return 0;
9444 }
9445 _ACEOF
9446 if ac_fn_c_try_compile "$LINENO"; then :
9447 # It does; now see whether it defined to _BIG_ENDIAN or not.
9448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449 /* end confdefs.h. */
9450 #include <limits.h>
9451
9452 int
9453 main ()
9454 {
9455 #ifndef _BIG_ENDIAN
9456 not big endian
9457 #endif
9458
9459 ;
9460 return 0;
9461 }
9462 _ACEOF
9463 if ac_fn_c_try_compile "$LINENO"; then :
9464 ac_cv_c_bigendian=yes
9465 else
9466 ac_cv_c_bigendian=no
9467 fi
9468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9469 fi
9470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9471 fi
9472 if test $ac_cv_c_bigendian = unknown; then
9473 # Compile a test program.
9474 if test "$cross_compiling" = yes; then :
9475 # Try to guess by grepping values from an object file.
9476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477 /* end confdefs.h. */
9478 short int ascii_mm[] =
9479 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9480 short int ascii_ii[] =
9481 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9482 int use_ascii (int i) {
9483 return ascii_mm[i] + ascii_ii[i];
9484 }
9485 short int ebcdic_ii[] =
9486 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9487 short int ebcdic_mm[] =
9488 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9489 int use_ebcdic (int i) {
9490 return ebcdic_mm[i] + ebcdic_ii[i];
9491 }
9492 extern int foo;
9493
9494 int
9495 main ()
9496 {
9497 return use_ascii (foo) == use_ebcdic (foo);
9498 ;
9499 return 0;
9500 }
9501 _ACEOF
9502 if ac_fn_c_try_compile "$LINENO"; then :
9503 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9504 ac_cv_c_bigendian=yes
9505 fi
9506 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9507 if test "$ac_cv_c_bigendian" = unknown; then
9508 ac_cv_c_bigendian=no
9509 else
9510 # finding both strings is unlikely to happen, but who knows?
9511 ac_cv_c_bigendian=unknown
9512 fi
9513 fi
9514 fi
9515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9516 else
9517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9518 /* end confdefs.h. */
9519 $ac_includes_default
9520 int
9521 main ()
9522 {
9523
9524 /* Are we little or big endian? From Harbison&Steele. */
9525 union
9526 {
9527 long int l;
9528 char c[sizeof (long int)];
9529 } u;
9530 u.l = 1;
9531 return u.c[sizeof (long int) - 1] == 1;
9532
9533 ;
9534 return 0;
9535 }
9536 _ACEOF
9537 if ac_fn_c_try_run "$LINENO"; then :
9538 ac_cv_c_bigendian=no
9539 else
9540 ac_cv_c_bigendian=yes
9541 fi
9542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9543 conftest.$ac_objext conftest.beam conftest.$ac_ext
9544 fi
9545
9546 fi
9547 fi
9548 :
9549 case $ac_cv_c_bigendian in #(
9550 yes)
9551 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
9552 no)
9553 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
9554 universal)
9555
9556 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9557
9558 ;; #(
9559 *)
9560 gl_cv_cc_double_expbit0="unknown" ;;
9561 esac
9562
9563
9564 fi
9565 rm -f conftest*
9566
9567
9568 else
9569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h. */
9571
9572 #include <float.h>
9573 #include <stddef.h>
9574 #include <stdio.h>
9575 #include <string.h>
9576 #define NWORDS \
9577 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
9578 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
9579 static unsigned int ored_words[NWORDS];
9580 static unsigned int anded_words[NWORDS];
9581 static void add_to_ored_words (double x)
9582 {
9583 memory_double m;
9584 size_t i;
9585 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
9586 memset (&m, 0, sizeof (memory_double));
9587 m.value = x;
9588 for (i = 0; i < NWORDS; i++)
9589 {
9590 ored_words[i] |= m.word[i];
9591 anded_words[i] &= m.word[i];
9592 }
9593 }
9594 int main ()
9595 {
9596 size_t j;
9597 FILE *fp = fopen ("conftest.out", "w");
9598 if (fp == NULL)
9599 return 1;
9600 for (j = 0; j < NWORDS; j++)
9601 anded_words[j] = ~ (unsigned int) 0;
9602 add_to_ored_words (0.25);
9603 add_to_ored_words (0.5);
9604 add_to_ored_words (1.0);
9605 add_to_ored_words (2.0);
9606 add_to_ored_words (4.0);
9607 /* Remove bits that are common (e.g. if representation of the first mantissa
9608 bit is explicit). */
9609 for (j = 0; j < NWORDS; j++)
9610 ored_words[j] &= ~anded_words[j];
9611 /* Now find the nonzero word. */
9612 for (j = 0; j < NWORDS; j++)
9613 if (ored_words[j] != 0)
9614 break;
9615 if (j < NWORDS)
9616 {
9617 size_t i;
9618 for (i = j + 1; i < NWORDS; i++)
9619 if (ored_words[i] != 0)
9620 {
9621 fprintf (fp, "unknown");
9622 return (fclose (fp) != 0);
9623 }
9624 for (i = 0; ; i++)
9625 if ((ored_words[j] >> i) & 1)
9626 {
9627 fprintf (fp, "word %d bit %d", (int) j, (int) i);
9628 return (fclose (fp) != 0);
9629 }
9630 }
9631 fprintf (fp, "unknown");
9632 return (fclose (fp) != 0);
9633 }
9634
9635 _ACEOF
9636 if ac_fn_c_try_run "$LINENO"; then :
9637 gl_cv_cc_double_expbit0=`cat conftest.out`
9638 else
9639 gl_cv_cc_double_expbit0="unknown"
9640 fi
9641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9642 conftest.$ac_objext conftest.beam conftest.$ac_ext
9643 fi
9644
9645 rm -f conftest.out
9646
9647 fi
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
9649 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
9650 case "$gl_cv_cc_double_expbit0" in
9651 word*bit*)
9652 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
9653 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
9654
9655 cat >>confdefs.h <<_ACEOF
9656 #define DBL_EXPBIT0_WORD $word
9657 _ACEOF
9658
9659
9660 cat >>confdefs.h <<_ACEOF
9661 #define DBL_EXPBIT0_BIT $bit
9662 _ACEOF
9663
9664 ;;
9665 esac
9666
9667
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9669 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9670 if test "${ac_cv_c_bigendian+set}" = set; then :
9671 $as_echo_n "(cached) " >&6
9672 else
9673 ac_cv_c_bigendian=unknown
9674 # See if we're dealing with a universal compiler.
9675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9676 /* end confdefs.h. */
9677 #ifndef __APPLE_CC__
9678 not a universal capable compiler
9679 #endif
9680 typedef int dummy;
9681
9682 _ACEOF
9683 if ac_fn_c_try_compile "$LINENO"; then :
9684
9685 # Check for potential -arch flags. It is not universal unless
9686 # there are at least two -arch flags with different values.
9687 ac_arch=
9688 ac_prev=
9689 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9690 if test -n "$ac_prev"; then
9691 case $ac_word in
9692 i?86 | x86_64 | ppc | ppc64)
9693 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9694 ac_arch=$ac_word
9695 else
9696 ac_cv_c_bigendian=universal
9697 break
9698 fi
9699 ;;
9700 esac
9701 ac_prev=
9702 elif test "x$ac_word" = "x-arch"; then
9703 ac_prev=arch
9704 fi
9705 done
9706 fi
9707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9708 if test $ac_cv_c_bigendian = unknown; then
9709 # See if sys/param.h defines the BYTE_ORDER macro.
9710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9711 /* end confdefs.h. */
9712 #include <sys/types.h>
9713 #include <sys/param.h>
9714
9715 int
9716 main ()
9717 {
9718 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9719 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9720 && LITTLE_ENDIAN)
9721 bogus endian macros
9722 #endif
9723
9724 ;
9725 return 0;
9726 }
9727 _ACEOF
9728 if ac_fn_c_try_compile "$LINENO"; then :
9729 # It does; now see whether it defined to BIG_ENDIAN or not.
9730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9731 /* end confdefs.h. */
9732 #include <sys/types.h>
9733 #include <sys/param.h>
9734
9735 int
9736 main ()
9737 {
9738 #if BYTE_ORDER != BIG_ENDIAN
9739 not big endian
9740 #endif
9741
9742 ;
9743 return 0;
9744 }
9745 _ACEOF
9746 if ac_fn_c_try_compile "$LINENO"; then :
9747 ac_cv_c_bigendian=yes
9748 else
9749 ac_cv_c_bigendian=no
9750 fi
9751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9752 fi
9753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9754 fi
9755 if test $ac_cv_c_bigendian = unknown; then
9756 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9758 /* end confdefs.h. */
9759 #include <limits.h>
9760
9761 int
9762 main ()
9763 {
9764 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9765 bogus endian macros
9766 #endif
9767
9768 ;
9769 return 0;
9770 }
9771 _ACEOF
9772 if ac_fn_c_try_compile "$LINENO"; then :
9773 # It does; now see whether it defined to _BIG_ENDIAN or not.
9774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h. */
9776 #include <limits.h>
9777
9778 int
9779 main ()
9780 {
9781 #ifndef _BIG_ENDIAN
9782 not big endian
9783 #endif
9784
9785 ;
9786 return 0;
9787 }
9788 _ACEOF
9789 if ac_fn_c_try_compile "$LINENO"; then :
9790 ac_cv_c_bigendian=yes
9791 else
9792 ac_cv_c_bigendian=no
9793 fi
9794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9795 fi
9796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9797 fi
9798 if test $ac_cv_c_bigendian = unknown; then
9799 # Compile a test program.
9800 if test "$cross_compiling" = yes; then :
9801 # Try to guess by grepping values from an object file.
9802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h. */
9804 short int ascii_mm[] =
9805 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9806 short int ascii_ii[] =
9807 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9808 int use_ascii (int i) {
9809 return ascii_mm[i] + ascii_ii[i];
9810 }
9811 short int ebcdic_ii[] =
9812 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9813 short int ebcdic_mm[] =
9814 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9815 int use_ebcdic (int i) {
9816 return ebcdic_mm[i] + ebcdic_ii[i];
9817 }
9818 extern int foo;
9819
9820 int
9821 main ()
9822 {
9823 return use_ascii (foo) == use_ebcdic (foo);
9824 ;
9825 return 0;
9826 }
9827 _ACEOF
9828 if ac_fn_c_try_compile "$LINENO"; then :
9829 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9830 ac_cv_c_bigendian=yes
9831 fi
9832 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9833 if test "$ac_cv_c_bigendian" = unknown; then
9834 ac_cv_c_bigendian=no
9835 else
9836 # finding both strings is unlikely to happen, but who knows?
9837 ac_cv_c_bigendian=unknown
9838 fi
9839 fi
9840 fi
9841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9842 else
9843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9844 /* end confdefs.h. */
9845 $ac_includes_default
9846 int
9847 main ()
9848 {
9849
9850 /* Are we little or big endian? From Harbison&Steele. */
9851 union
9852 {
9853 long int l;
9854 char c[sizeof (long int)];
9855 } u;
9856 u.l = 1;
9857 return u.c[sizeof (long int) - 1] == 1;
9858
9859 ;
9860 return 0;
9861 }
9862 _ACEOF
9863 if ac_fn_c_try_run "$LINENO"; then :
9864 ac_cv_c_bigendian=no
9865 else
9866 ac_cv_c_bigendian=yes
9867 fi
9868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9869 conftest.$ac_objext conftest.beam conftest.$ac_ext
9870 fi
9871
9872 fi
9873 fi
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9875 $as_echo "$ac_cv_c_bigendian" >&6; }
9876 case $ac_cv_c_bigendian in #(
9877 yes)
9878 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9879 ;; #(
9880 no)
9881 ;; #(
9882 universal)
9883
9884 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9885
9886 ;; #(
9887 *)
9888 as_fn_error "unknown endianness
9889 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9890 esac
9891
9892
9893
9894
9895 case "$host_os" in
9896 mingw*)
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
9898 $as_echo_n "checking for 64-bit off_t... " >&6; }
9899 if test "${gl_cv_type_off_t_64+set}" = set; then :
9900 $as_echo_n "(cached) " >&6
9901 else
9902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9903 /* end confdefs.h. */
9904 #include <sys/types.h>
9905 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
9906
9907 int
9908 main ()
9909 {
9910
9911 ;
9912 return 0;
9913 }
9914 _ACEOF
9915 if ac_fn_c_try_compile "$LINENO"; then :
9916 gl_cv_type_off_t_64=yes
9917 else
9918 gl_cv_type_off_t_64=no
9919 fi
9920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9921
9922 fi
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
9924 $as_echo "$gl_cv_type_off_t_64" >&6; }
9925 if test $gl_cv_type_off_t_64 = no; then
9926 WINDOWS_64_BIT_OFF_T=1
9927 else
9928 WINDOWS_64_BIT_OFF_T=0
9929 fi
9930 WINDOWS_64_BIT_ST_SIZE=1
9931 ;;
9932 *)
9933 WINDOWS_64_BIT_OFF_T=0
9934 WINDOWS_64_BIT_ST_SIZE=0
9935 ;;
9936 esac
9937
9938
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9940 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9941 if test "${am_cv_langinfo_codeset+set}" = set; then :
9942 $as_echo_n "(cached) " >&6
9943 else
9944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9945 /* end confdefs.h. */
9946 #include <langinfo.h>
9947 int
9948 main ()
9949 {
9950 char* cs = nl_langinfo(CODESET); return !cs;
9951 ;
9952 return 0;
9953 }
9954 _ACEOF
9955 if ac_fn_c_try_link "$LINENO"; then :
9956 am_cv_langinfo_codeset=yes
9957 else
9958 am_cv_langinfo_codeset=no
9959 fi
9960 rm -f core conftest.err conftest.$ac_objext \
9961 conftest$ac_exeext conftest.$ac_ext
9962
9963 fi
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9965 $as_echo "$am_cv_langinfo_codeset" >&6; }
9966 if test $am_cv_langinfo_codeset = yes; then
9967
9968 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9969
9970 fi
9971
9972
9973
9974
9975
9976
9977
9978
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
9980 $as_echo_n "checking for working fcntl.h... " >&6; }
9981 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
9982 $as_echo_n "(cached) " >&6
9983 else
9984 if test "$cross_compiling" = yes; then :
9985 gl_cv_header_working_fcntl_h=cross-compiling
9986 else
9987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9988 /* end confdefs.h. */
9989 #include <sys/types.h>
9990 #include <sys/stat.h>
9991 #if HAVE_UNISTD_H
9992 # include <unistd.h>
9993 #else /* on Windows with MSVC */
9994 # include <io.h>
9995 # include <stdlib.h>
9996 # defined sleep(n) _sleep ((n) * 1000)
9997 #endif
9998 #include <fcntl.h>
9999 #ifndef O_NOATIME
10000 #define O_NOATIME 0
10001 #endif
10002 #ifndef O_NOFOLLOW
10003 #define O_NOFOLLOW 0
10004 #endif
10005 static int const constants[] =
10006 {
10007 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10008 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10009 };
10010
10011 int
10012 main ()
10013 {
10014
10015 int result = !constants;
10016 #if HAVE_SYMLINK
10017 {
10018 static char const sym[] = "conftest.sym";
10019 if (symlink ("/dev/null", sym) != 0)
10020 result |= 2;
10021 else
10022 {
10023 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10024 if (fd >= 0)
10025 {
10026 close (fd);
10027 result |= 4;
10028 }
10029 }
10030 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10031 result |= 2;
10032 else
10033 {
10034 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10035 if (fd >= 0)
10036 {
10037 close (fd);
10038 result |= 4;
10039 }
10040 }
10041 unlink (sym);
10042 }
10043 #endif
10044 {
10045 static char const file[] = "confdefs.h";
10046 int fd = open (file, O_RDONLY | O_NOATIME);
10047 if (fd < 0)
10048 result |= 8;
10049 else
10050 {
10051 struct stat st0;
10052 if (fstat (fd, &st0) != 0)
10053 result |= 16;
10054 else
10055 {
10056 char c;
10057 sleep (1);
10058 if (read (fd, &c, 1) != 1)
10059 result |= 24;
10060 else
10061 {
10062 if (close (fd) != 0)
10063 result |= 32;
10064 else
10065 {
10066 struct stat st1;
10067 if (stat (file, &st1) != 0)
10068 result |= 40;
10069 else
10070 if (st0.st_atime != st1.st_atime)
10071 result |= 64;
10072 }
10073 }
10074 }
10075 }
10076 }
10077 return result;
10078 ;
10079 return 0;
10080 }
10081 _ACEOF
10082 if ac_fn_c_try_run "$LINENO"; then :
10083 gl_cv_header_working_fcntl_h=yes
10084 else
10085 case $? in #(
10086 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10087 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10088 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10089 *) gl_cv_header_working_fcntl_h='no';;
10090 esac
10091 fi
10092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10093 conftest.$ac_objext conftest.beam conftest.$ac_ext
10094 fi
10095
10096 fi
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10098 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10099
10100 case $gl_cv_header_working_fcntl_h in #(
10101 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10102 *) ac_val=1;;
10103 esac
10104
10105 cat >>confdefs.h <<_ACEOF
10106 #define HAVE_WORKING_O_NOATIME $ac_val
10107 _ACEOF
10108
10109
10110 case $gl_cv_header_working_fcntl_h in #(
10111 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10112 *) ac_val=1;;
10113 esac
10114
10115 cat >>confdefs.h <<_ACEOF
10116 #define HAVE_WORKING_O_NOFOLLOW $ac_val
10117 _ACEOF
10118
10119
10120 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
10121 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
10122 ac_have_decl=1
10123 else
10124 ac_have_decl=0
10125 fi
10126
10127 cat >>confdefs.h <<_ACEOF
10128 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10129 _ACEOF
10130
10131
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
10133 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
10134 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
10135 $as_echo_n "(cached) " >&6
10136 else
10137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10138 /* end confdefs.h. */
10139
10140 #include <features.h>
10141 #ifdef __GNU_LIBRARY__
10142 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10143 Lucky GNU user
10144 #endif
10145 #endif
10146 #ifdef __UCLIBC__
10147 Lucky user
10148 #endif
10149
10150 _ACEOF
10151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10152 $EGREP "Lucky" >/dev/null 2>&1; then :
10153 ac_cv_gnu_library_2_1=yes
10154 else
10155 ac_cv_gnu_library_2_1=no
10156 fi
10157 rm -f conftest*
10158
10159
10160
10161 fi
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
10163 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
10164
10165 GLIBC21="$ac_cv_gnu_library_2_1"
10166
10167
10168
10169 GNULIB_FCHMODAT=0;
10170 GNULIB_FSTAT=0;
10171 GNULIB_FSTATAT=0;
10172 GNULIB_FUTIMENS=0;
10173 GNULIB_LCHMOD=0;
10174 GNULIB_LSTAT=0;
10175 GNULIB_MKDIRAT=0;
10176 GNULIB_MKFIFO=0;
10177 GNULIB_MKFIFOAT=0;
10178 GNULIB_MKNOD=0;
10179 GNULIB_MKNODAT=0;
10180 GNULIB_STAT=0;
10181 GNULIB_UTIMENSAT=0;
10182 HAVE_FCHMODAT=1;
10183 HAVE_FSTATAT=1;
10184 HAVE_FUTIMENS=1;
10185 HAVE_LCHMOD=1;
10186 HAVE_LSTAT=1;
10187 HAVE_MKDIRAT=1;
10188 HAVE_MKFIFO=1;
10189 HAVE_MKFIFOAT=1;
10190 HAVE_MKNOD=1;
10191 HAVE_MKNODAT=1;
10192 HAVE_UTIMENSAT=1;
10193 REPLACE_FSTAT=0;
10194 REPLACE_FSTATAT=0;
10195 REPLACE_FUTIMENS=0;
10196 REPLACE_LSTAT=0;
10197 REPLACE_MKDIR=0;
10198 REPLACE_MKFIFO=0;
10199 REPLACE_MKNOD=0;
10200 REPLACE_STAT=0;
10201 REPLACE_UTIMENSAT=0;
10202
10203
10204
10205
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
10207 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
10208 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
10209 $as_echo_n "(cached) " >&6
10210 else
10211 rm -f conftest.sym conftest.file
10212 echo >conftest.file
10213 if test "$cross_compiling" = yes; then :
10214 case "$host_os" in
10215 *-gnu*)
10216 # Guess yes on glibc systems.
10217 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
10218 *)
10219 # If we don't know, assume the worst.
10220 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
10221 esac
10222
10223 else
10224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10225 /* end confdefs.h. */
10226 $ac_includes_default
10227 int
10228 main ()
10229 {
10230 struct stat sbuf;
10231 if (symlink ("conftest.file", "conftest.sym") != 0)
10232 return 1;
10233 /* Linux will dereference the symlink and fail, as required by
10234 POSIX. That is better in the sense that it means we will not
10235 have to compile and use the lstat wrapper. */
10236 return lstat ("conftest.sym/", &sbuf) == 0;
10237
10238 ;
10239 return 0;
10240 }
10241 _ACEOF
10242 if ac_fn_c_try_run "$LINENO"; then :
10243 gl_cv_func_lstat_dereferences_slashed_symlink=yes
10244 else
10245 gl_cv_func_lstat_dereferences_slashed_symlink=no
10246 fi
10247 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10248 conftest.$ac_objext conftest.beam conftest.$ac_ext
10249 fi
10250
10251 rm -f conftest.sym conftest.file
10252
10253 fi
10254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
10255 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
10256 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
10257 *yes)
10258
10259 cat >>confdefs.h <<_ACEOF
10260 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
10261 _ACEOF
10262
10263 ;;
10264 esac
10265
10266
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
10268 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
10269 if test "${gl_cv_func_malloc_posix+set}" = set; then :
10270 $as_echo_n "(cached) " >&6
10271 else
10272
10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h. */
10275
10276 int
10277 main ()
10278 {
10279 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
10280 choke me
10281 #endif
10282
10283 ;
10284 return 0;
10285 }
10286 _ACEOF
10287 if ac_fn_c_try_compile "$LINENO"; then :
10288 gl_cv_func_malloc_posix=yes
10289 else
10290 gl_cv_func_malloc_posix=no
10291 fi
10292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10293
10294 fi
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
10296 $as_echo "$gl_cv_func_malloc_posix" >&6; }
10297
10298
10299
10300 for ac_header in stdlib.h
10301 do :
10302 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
10303 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
10304 cat >>confdefs.h <<_ACEOF
10305 #define HAVE_STDLIB_H 1
10306 _ACEOF
10307
10308 fi
10309
10310 done
10311
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
10313 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
10314 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
10315 $as_echo_n "(cached) " >&6
10316 else
10317 if test "$cross_compiling" = yes; then :
10318 case "$host_os" in
10319 # Guess yes on platforms where we know the result.
10320 *-gnu* | freebsd* | netbsd* | openbsd* \
10321 | hpux* | solaris* | cygwin* | mingw*)
10322 ac_cv_func_malloc_0_nonnull=yes ;;
10323 # If we don't know, assume the worst.
10324 *) ac_cv_func_malloc_0_nonnull=no ;;
10325 esac
10326
10327 else
10328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329 /* end confdefs.h. */
10330 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
10331 # include <stdlib.h>
10332 #else
10333 char *malloc ();
10334 #endif
10335
10336 int
10337 main ()
10338 {
10339 char *p = malloc (0);
10340 int result = !p;
10341 free (p);
10342 return result;
10343 ;
10344 return 0;
10345 }
10346
10347 _ACEOF
10348 if ac_fn_c_try_run "$LINENO"; then :
10349 ac_cv_func_malloc_0_nonnull=yes
10350 else
10351 ac_cv_func_malloc_0_nonnull=no
10352 fi
10353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10354 conftest.$ac_objext conftest.beam conftest.$ac_ext
10355 fi
10356
10357
10358 fi
10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
10360 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
10361 if test $ac_cv_func_malloc_0_nonnull = yes; then :
10362 gl_cv_func_malloc_0_nonnull=1
10363 else
10364 gl_cv_func_malloc_0_nonnull=0
10365 fi
10366
10367
10368 cat >>confdefs.h <<_ACEOF
10369 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
10370 _ACEOF
10371
10372
10373
10374
10375
10376 GNULIB_BTOWC=0;
10377 GNULIB_WCTOB=0;
10378 GNULIB_MBSINIT=0;
10379 GNULIB_MBRTOWC=0;
10380 GNULIB_MBRLEN=0;
10381 GNULIB_MBSRTOWCS=0;
10382 GNULIB_MBSNRTOWCS=0;
10383 GNULIB_WCRTOMB=0;
10384 GNULIB_WCSRTOMBS=0;
10385 GNULIB_WCSNRTOMBS=0;
10386 GNULIB_WCWIDTH=0;
10387 GNULIB_WMEMCHR=0;
10388 GNULIB_WMEMCMP=0;
10389 GNULIB_WMEMCPY=0;
10390 GNULIB_WMEMMOVE=0;
10391 GNULIB_WMEMSET=0;
10392 GNULIB_WCSLEN=0;
10393 GNULIB_WCSNLEN=0;
10394 GNULIB_WCSCPY=0;
10395 GNULIB_WCPCPY=0;
10396 GNULIB_WCSNCPY=0;
10397 GNULIB_WCPNCPY=0;
10398 GNULIB_WCSCAT=0;
10399 GNULIB_WCSNCAT=0;
10400 GNULIB_WCSCMP=0;
10401 GNULIB_WCSNCMP=0;
10402 GNULIB_WCSCASECMP=0;
10403 GNULIB_WCSNCASECMP=0;
10404 GNULIB_WCSCOLL=0;
10405 GNULIB_WCSXFRM=0;
10406 GNULIB_WCSDUP=0;
10407 GNULIB_WCSCHR=0;
10408 GNULIB_WCSRCHR=0;
10409 GNULIB_WCSCSPN=0;
10410 GNULIB_WCSSPN=0;
10411 GNULIB_WCSPBRK=0;
10412 GNULIB_WCSSTR=0;
10413 GNULIB_WCSTOK=0;
10414 GNULIB_WCSWIDTH=0;
10415 HAVE_BTOWC=1;
10416 HAVE_MBSINIT=1;
10417 HAVE_MBRTOWC=1;
10418 HAVE_MBRLEN=1;
10419 HAVE_MBSRTOWCS=1;
10420 HAVE_MBSNRTOWCS=1;
10421 HAVE_WCRTOMB=1;
10422 HAVE_WCSRTOMBS=1;
10423 HAVE_WCSNRTOMBS=1;
10424 HAVE_WMEMCHR=1;
10425 HAVE_WMEMCMP=1;
10426 HAVE_WMEMCPY=1;
10427 HAVE_WMEMMOVE=1;
10428 HAVE_WMEMSET=1;
10429 HAVE_WCSLEN=1;
10430 HAVE_WCSNLEN=1;
10431 HAVE_WCSCPY=1;
10432 HAVE_WCPCPY=1;
10433 HAVE_WCSNCPY=1;
10434 HAVE_WCPNCPY=1;
10435 HAVE_WCSCAT=1;
10436 HAVE_WCSNCAT=1;
10437 HAVE_WCSCMP=1;
10438 HAVE_WCSNCMP=1;
10439 HAVE_WCSCASECMP=1;
10440 HAVE_WCSNCASECMP=1;
10441 HAVE_WCSCOLL=1;
10442 HAVE_WCSXFRM=1;
10443 HAVE_WCSDUP=1;
10444 HAVE_WCSCHR=1;
10445 HAVE_WCSRCHR=1;
10446 HAVE_WCSCSPN=1;
10447 HAVE_WCSSPN=1;
10448 HAVE_WCSPBRK=1;
10449 HAVE_WCSSTR=1;
10450 HAVE_WCSTOK=1;
10451 HAVE_WCSWIDTH=1;
10452 HAVE_DECL_WCTOB=1;
10453 HAVE_DECL_WCWIDTH=1;
10454 REPLACE_MBSTATE_T=0;
10455 REPLACE_BTOWC=0;
10456 REPLACE_WCTOB=0;
10457 REPLACE_MBSINIT=0;
10458 REPLACE_MBRTOWC=0;
10459 REPLACE_MBRLEN=0;
10460 REPLACE_MBSRTOWCS=0;
10461 REPLACE_MBSNRTOWCS=0;
10462 REPLACE_WCRTOMB=0;
10463 REPLACE_WCSRTOMBS=0;
10464 REPLACE_WCSNRTOMBS=0;
10465 REPLACE_WCWIDTH=0;
10466 REPLACE_WCSWIDTH=0;
10467
10468
10469
10470
10471
10472
10473
10474
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
10476 $as_echo_n "checking for a traditional japanese locale... " >&6; }
10477 if test "${gt_cv_locale_ja+set}" = set; then :
10478 $as_echo_n "(cached) " >&6
10479 else
10480
10481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10482 /* end confdefs.h. */
10483
10484 #include <locale.h>
10485 #include <time.h>
10486 #if HAVE_LANGINFO_CODESET
10487 # include <langinfo.h>
10488 #endif
10489 #include <stdlib.h>
10490 #include <string.h>
10491 struct tm t;
10492 char buf[16];
10493 int main ()
10494 {
10495 const char *p;
10496 /* Check whether the given locale name is recognized by the system. */
10497 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10498 /* On native Windows, setlocale(category, "") looks at the system settings,
10499 not at the environment variables. Also, when an encoding suffix such
10500 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10501 category of the locale to "C". */
10502 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10503 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10504 return 1;
10505 #else
10506 if (setlocale (LC_ALL, "") == NULL) return 1;
10507 #endif
10508 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10509 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10510 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10511 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10512 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10513 some unit tests fail.
10514 On MirBSD 10, when an unsupported locale is specified, setlocale()
10515 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10516 #if HAVE_LANGINFO_CODESET
10517 {
10518 const char *cs = nl_langinfo (CODESET);
10519 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10520 || strcmp (cs, "UTF-8") == 0)
10521 return 1;
10522 }
10523 #endif
10524 #ifdef __CYGWIN__
10525 /* On Cygwin, avoid locale names without encoding suffix, because the
10526 locale_charset() function relies on the encoding suffix. Note that
10527 LC_ALL is set on the command line. */
10528 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10529 #endif
10530 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
10531 on Cygwin 1.5.x. */
10532 if (MB_CUR_MAX == 1)
10533 return 1;
10534 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10535 This excludes the UTF-8 encoding (except on MirBSD). */
10536 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10537 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10538 for (p = buf; *p != '\0'; p++)
10539 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10540 return 1;
10541 return 0;
10542 }
10543
10544 _ACEOF
10545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10546 (eval $ac_link) 2>&5
10547 ac_status=$?
10548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10549 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10550 case "$host_os" in
10551 # Handle native Windows specially, because there setlocale() interprets
10552 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10553 # "fr" or "fra" as "French" or "French_France.1252",
10554 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10555 # "ja" as "Japanese" or "Japanese_Japan.932",
10556 # and similar.
10557 mingw*)
10558 # Note that on native Windows, the Japanese locale is
10559 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
10560 # cannot use it here.
10561 gt_cv_locale_ja=none
10562 ;;
10563 *)
10564 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10565 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10566 # configure script would override the LC_ALL setting. Likewise for
10567 # LC_CTYPE, which is also set at the beginning of the configure script.
10568 # Test for the AIX locale name.
10569 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10570 gt_cv_locale_ja=ja_JP
10571 else
10572 # Test for the locale name with explicit encoding suffix.
10573 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10574 gt_cv_locale_ja=ja_JP.EUC-JP
10575 else
10576 # Test for the HP-UX, OSF/1, NetBSD locale name.
10577 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10578 gt_cv_locale_ja=ja_JP.eucJP
10579 else
10580 # Test for the IRIX, FreeBSD locale name.
10581 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10582 gt_cv_locale_ja=ja_JP.EUC
10583 else
10584 # Test for the Solaris 7 locale name.
10585 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10586 gt_cv_locale_ja=ja
10587 else
10588 # Special test for NetBSD 1.6.
10589 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
10590 gt_cv_locale_ja=ja_JP.eucJP
10591 else
10592 # None found.
10593 gt_cv_locale_ja=none
10594 fi
10595 fi
10596 fi
10597 fi
10598 fi
10599 fi
10600 ;;
10601 esac
10602 fi
10603 rm -fr conftest*
10604
10605 fi
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
10607 $as_echo "$gt_cv_locale_ja" >&6; }
10608 LOCALE_JA=$gt_cv_locale_ja
10609
10610
10611
10612
10613
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
10615 $as_echo_n "checking for a transitional chinese locale... " >&6; }
10616 if test "${gt_cv_locale_zh_CN+set}" = set; then :
10617 $as_echo_n "(cached) " >&6
10618 else
10619
10620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10621 /* end confdefs.h. */
10622
10623 #include <locale.h>
10624 #include <stdlib.h>
10625 #include <time.h>
10626 #if HAVE_LANGINFO_CODESET
10627 # include <langinfo.h>
10628 #endif
10629 #include <stdlib.h>
10630 #include <string.h>
10631 struct tm t;
10632 char buf[16];
10633 int main ()
10634 {
10635 const char *p;
10636 /* Check whether the given locale name is recognized by the system. */
10637 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10638 /* On native Windows, setlocale(category, "") looks at the system settings,
10639 not at the environment variables. Also, when an encoding suffix such
10640 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10641 category of the locale to "C". */
10642 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10643 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10644 return 1;
10645 #else
10646 if (setlocale (LC_ALL, "") == NULL) return 1;
10647 #endif
10648 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10649 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10650 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10651 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10652 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10653 some unit tests fail.
10654 On MirBSD 10, when an unsupported locale is specified, setlocale()
10655 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10656 #if HAVE_LANGINFO_CODESET
10657 {
10658 const char *cs = nl_langinfo (CODESET);
10659 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10660 || strcmp (cs, "UTF-8") == 0)
10661 return 1;
10662 }
10663 #endif
10664 #ifdef __CYGWIN__
10665 /* On Cygwin, avoid locale names without encoding suffix, because the
10666 locale_charset() function relies on the encoding suffix. Note that
10667 LC_ALL is set on the command line. */
10668 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10669 #endif
10670 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10671 This excludes the UTF-8 encoding (except on MirBSD). */
10672 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10673 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10674 for (p = buf; *p != '\0'; p++)
10675 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10676 return 1;
10677 /* Check whether a typical GB18030 multibyte sequence is recognized as a
10678 single wide character. This excludes the GB2312 and GBK encodings. */
10679 if (mblen ("\203\062\332\066", 5) != 4)
10680 return 1;
10681 return 0;
10682 }
10683
10684 _ACEOF
10685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10686 (eval $ac_link) 2>&5
10687 ac_status=$?
10688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10689 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10690 case "$host_os" in
10691 # Handle native Windows specially, because there setlocale() interprets
10692 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10693 # "fr" or "fra" as "French" or "French_France.1252",
10694 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10695 # "ja" as "Japanese" or "Japanese_Japan.932",
10696 # and similar.
10697 mingw*)
10698 # Test for the hypothetical native Windows locale name.
10699 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10700 gt_cv_locale_zh_CN=Chinese_China.54936
10701 else
10702 # None found.
10703 gt_cv_locale_zh_CN=none
10704 fi
10705 ;;
10706 solaris2.8)
10707 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
10708 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
10709 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
10710 gt_cv_locale_zh_CN=none
10711 ;;
10712 *)
10713 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10714 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10715 # configure script would override the LC_ALL setting. Likewise for
10716 # LC_CTYPE, which is also set at the beginning of the configure script.
10717 # Test for the locale name without encoding suffix.
10718 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10719 gt_cv_locale_zh_CN=zh_CN
10720 else
10721 # Test for the locale name with explicit encoding suffix.
10722 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10723 gt_cv_locale_zh_CN=zh_CN.GB18030
10724 else
10725 # None found.
10726 gt_cv_locale_zh_CN=none
10727 fi
10728 fi
10729 ;;
10730 esac
10731 else
10732 # If there was a link error, due to mblen(), the system is so old that
10733 # it certainly doesn't have a chinese locale.
10734 gt_cv_locale_zh_CN=none
10735 fi
10736 rm -fr conftest*
10737
10738 fi
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
10740 $as_echo "$gt_cv_locale_zh_CN" >&6; }
10741 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
10742
10743
10744
10745
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
10747 $as_echo_n "checking for a french Unicode locale... " >&6; }
10748 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
10749 $as_echo_n "(cached) " >&6
10750 else
10751
10752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10753 /* end confdefs.h. */
10754
10755 #include <locale.h>
10756 #include <time.h>
10757 #if HAVE_LANGINFO_CODESET
10758 # include <langinfo.h>
10759 #endif
10760 #include <stdlib.h>
10761 #include <string.h>
10762 struct tm t;
10763 char buf[16];
10764 int main () {
10765 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
10766 imitates locale dependent behaviour by looking at the environment
10767 variables, and all locales use the UTF-8 encoding. */
10768 #if !(defined __BEOS__ || defined __HAIKU__)
10769 /* Check whether the given locale name is recognized by the system. */
10770 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10771 /* On native Windows, setlocale(category, "") looks at the system settings,
10772 not at the environment variables. Also, when an encoding suffix such
10773 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10774 category of the locale to "C". */
10775 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10776 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10777 return 1;
10778 # else
10779 if (setlocale (LC_ALL, "") == NULL) return 1;
10780 # endif
10781 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10782 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10783 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10784 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10785 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10786 some unit tests fail. */
10787 # if HAVE_LANGINFO_CODESET
10788 {
10789 const char *cs = nl_langinfo (CODESET);
10790 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10791 return 1;
10792 }
10793 # endif
10794 # ifdef __CYGWIN__
10795 /* On Cygwin, avoid locale names without encoding suffix, because the
10796 locale_charset() function relies on the encoding suffix. Note that
10797 LC_ALL is set on the command line. */
10798 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10799 # endif
10800 /* Check whether in the abbreviation of the second month, the second
10801 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
10802 two bytes long, with UTF-8 encoding. */
10803 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10804 if (strftime (buf, sizeof (buf), "%b", &t) < 4
10805 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
10806 return 1;
10807 #endif
10808 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10809 /* Check whether the decimal separator is a comma.
10810 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10811 are nl_langinfo(RADIXCHAR) are both ".". */
10812 if (localeconv () ->decimal_point[0] != ',') return 1;
10813 #endif
10814 return 0;
10815 }
10816
10817 _ACEOF
10818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10819 (eval $ac_link) 2>&5
10820 ac_status=$?
10821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10822 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10823 case "$host_os" in
10824 # Handle native Windows specially, because there setlocale() interprets
10825 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10826 # "fr" or "fra" as "French" or "French_France.1252",
10827 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10828 # "ja" as "Japanese" or "Japanese_Japan.932",
10829 # and similar.
10830 mingw*)
10831 # Test for the hypothetical native Windows locale name.
10832 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10833 gt_cv_locale_fr_utf8=French_France.65001
10834 else
10835 # None found.
10836 gt_cv_locale_fr_utf8=none
10837 fi
10838 ;;
10839 *)
10840 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10841 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10842 # configure script would override the LC_ALL setting. Likewise for
10843 # LC_CTYPE, which is also set at the beginning of the configure script.
10844 # Test for the usual locale name.
10845 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10846 gt_cv_locale_fr_utf8=fr_FR
10847 else
10848 # Test for the locale name with explicit encoding suffix.
10849 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10850 gt_cv_locale_fr_utf8=fr_FR.UTF-8
10851 else
10852 # Test for the Solaris 7 locale name.
10853 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10854 gt_cv_locale_fr_utf8=fr.UTF-8
10855 else
10856 # None found.
10857 gt_cv_locale_fr_utf8=none
10858 fi
10859 fi
10860 fi
10861 ;;
10862 esac
10863 fi
10864 rm -fr conftest*
10865
10866 fi
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
10868 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
10869 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
10870
10871
10872
10873
10874
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
10876 $as_echo_n "checking for a traditional french locale... " >&6; }
10877 if test "${gt_cv_locale_fr+set}" = set; then :
10878 $as_echo_n "(cached) " >&6
10879 else
10880
10881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10882 /* end confdefs.h. */
10883
10884 #include <locale.h>
10885 #include <time.h>
10886 #if HAVE_LANGINFO_CODESET
10887 # include <langinfo.h>
10888 #endif
10889 #include <stdlib.h>
10890 #include <string.h>
10891 struct tm t;
10892 char buf[16];
10893 int main () {
10894 /* Check whether the given locale name is recognized by the system. */
10895 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10896 /* On native Windows, setlocale(category, "") looks at the system settings,
10897 not at the environment variables. Also, when an encoding suffix such
10898 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10899 category of the locale to "C". */
10900 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10901 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10902 return 1;
10903 #else
10904 if (setlocale (LC_ALL, "") == NULL) return 1;
10905 #endif
10906 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10907 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10908 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10909 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10910 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10911 some unit tests fail.
10912 On MirBSD 10, when an unsupported locale is specified, setlocale()
10913 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10914 #if HAVE_LANGINFO_CODESET
10915 {
10916 const char *cs = nl_langinfo (CODESET);
10917 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10918 || strcmp (cs, "UTF-8") == 0)
10919 return 1;
10920 }
10921 #endif
10922 #ifdef __CYGWIN__
10923 /* On Cygwin, avoid locale names without encoding suffix, because the
10924 locale_charset() function relies on the encoding suffix. Note that
10925 LC_ALL is set on the command line. */
10926 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10927 #endif
10928 /* Check whether in the abbreviation of the second month, the second
10929 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
10930 one byte long. This excludes the UTF-8 encoding. */
10931 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10932 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
10933 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10934 /* Check whether the decimal separator is a comma.
10935 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10936 are nl_langinfo(RADIXCHAR) are both ".". */
10937 if (localeconv () ->decimal_point[0] != ',') return 1;
10938 #endif
10939 return 0;
10940 }
10941
10942 _ACEOF
10943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10944 (eval $ac_link) 2>&5
10945 ac_status=$?
10946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10947 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10948 case "$host_os" in
10949 # Handle native Windows specially, because there setlocale() interprets
10950 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10951 # "fr" or "fra" as "French" or "French_France.1252",
10952 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10953 # "ja" as "Japanese" or "Japanese_Japan.932",
10954 # and similar.
10955 mingw*)
10956 # Test for the native Windows locale name.
10957 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10958 gt_cv_locale_fr=French_France.1252
10959 else
10960 # None found.
10961 gt_cv_locale_fr=none
10962 fi
10963 ;;
10964 *)
10965 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10966 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10967 # configure script would override the LC_ALL setting. Likewise for
10968 # LC_CTYPE, which is also set at the beginning of the configure script.
10969 # Test for the usual locale name.
10970 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10971 gt_cv_locale_fr=fr_FR
10972 else
10973 # Test for the locale name with explicit encoding suffix.
10974 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10975 gt_cv_locale_fr=fr_FR.ISO-8859-1
10976 else
10977 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
10978 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10979 gt_cv_locale_fr=fr_FR.ISO8859-1
10980 else
10981 # Test for the HP-UX locale name.
10982 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10983 gt_cv_locale_fr=fr_FR.iso88591
10984 else
10985 # Test for the Solaris 7 locale name.
10986 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10987 gt_cv_locale_fr=fr
10988 else
10989 # None found.
10990 gt_cv_locale_fr=none
10991 fi
10992 fi
10993 fi
10994 fi
10995 fi
10996 ;;
10997 esac
10998 fi
10999 rm -fr conftest*
11000
11001 fi
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
11003 $as_echo "$gt_cv_locale_fr" >&6; }
11004 LOCALE_FR=$gt_cv_locale_fr
11005
11006
11007
11008
11009
11010
11011
11012 GNULIB_FFSL=0;
11013 GNULIB_FFSLL=0;
11014 GNULIB_MEMCHR=0;
11015 GNULIB_MEMMEM=0;
11016 GNULIB_MEMPCPY=0;
11017 GNULIB_MEMRCHR=0;
11018 GNULIB_RAWMEMCHR=0;
11019 GNULIB_STPCPY=0;
11020 GNULIB_STPNCPY=0;
11021 GNULIB_STRCHRNUL=0;
11022 GNULIB_STRDUP=0;
11023 GNULIB_STRNCAT=0;
11024 GNULIB_STRNDUP=0;
11025 GNULIB_STRNLEN=0;
11026 GNULIB_STRPBRK=0;
11027 GNULIB_STRSEP=0;
11028 GNULIB_STRSTR=0;
11029 GNULIB_STRCASESTR=0;
11030 GNULIB_STRTOK_R=0;
11031 GNULIB_MBSLEN=0;
11032 GNULIB_MBSNLEN=0;
11033 GNULIB_MBSCHR=0;
11034 GNULIB_MBSRCHR=0;
11035 GNULIB_MBSSTR=0;
11036 GNULIB_MBSCASECMP=0;
11037 GNULIB_MBSNCASECMP=0;
11038 GNULIB_MBSPCASECMP=0;
11039 GNULIB_MBSCASESTR=0;
11040 GNULIB_MBSCSPN=0;
11041 GNULIB_MBSPBRK=0;
11042 GNULIB_MBSSPN=0;
11043 GNULIB_MBSSEP=0;
11044 GNULIB_MBSTOK_R=0;
11045 GNULIB_STRERROR=0;
11046 GNULIB_STRERROR_R=0;
11047 GNULIB_STRSIGNAL=0;
11048 GNULIB_STRVERSCMP=0;
11049 HAVE_MBSLEN=0;
11050 HAVE_FFSL=1;
11051 HAVE_FFSLL=1;
11052 HAVE_MEMCHR=1;
11053 HAVE_DECL_MEMMEM=1;
11054 HAVE_MEMPCPY=1;
11055 HAVE_DECL_MEMRCHR=1;
11056 HAVE_RAWMEMCHR=1;
11057 HAVE_STPCPY=1;
11058 HAVE_STPNCPY=1;
11059 HAVE_STRCHRNUL=1;
11060 HAVE_DECL_STRDUP=1;
11061 HAVE_DECL_STRNDUP=1;
11062 HAVE_DECL_STRNLEN=1;
11063 HAVE_STRPBRK=1;
11064 HAVE_STRSEP=1;
11065 HAVE_STRCASESTR=1;
11066 HAVE_DECL_STRTOK_R=1;
11067 HAVE_DECL_STRERROR_R=1;
11068 HAVE_DECL_STRSIGNAL=1;
11069 HAVE_STRVERSCMP=1;
11070 REPLACE_MEMCHR=0;
11071 REPLACE_MEMMEM=0;
11072 REPLACE_STPNCPY=0;
11073 REPLACE_STRDUP=0;
11074 REPLACE_STRSTR=0;
11075 REPLACE_STRCASESTR=0;
11076 REPLACE_STRCHRNUL=0;
11077 REPLACE_STRERROR=0;
11078 REPLACE_STRERROR_R=0;
11079 REPLACE_STRNCAT=0;
11080 REPLACE_STRNDUP=0;
11081 REPLACE_STRNLEN=0;
11082 REPLACE_STRSIGNAL=0;
11083 REPLACE_STRTOK_R=0;
11084 UNDEFINE_STRTOK_R=0;
11085
11086
11087
11088
11089
11090 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
11091 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
11092 # irrelevant for anonymous mappings.
11093 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11094 if test "x$ac_cv_func_mmap" = x""yes; then :
11095 gl_have_mmap=yes
11096 else
11097 gl_have_mmap=no
11098 fi
11099
11100
11101 # Try to allow MAP_ANONYMOUS.
11102 gl_have_mmap_anonymous=no
11103 if test $gl_have_mmap = yes; then
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
11105 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
11106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11107 /* end confdefs.h. */
11108
11109 #include <sys/mman.h>
11110 #ifdef MAP_ANONYMOUS
11111 I cannot identify this map
11112 #endif
11113
11114 _ACEOF
11115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11116 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
11117 gl_have_mmap_anonymous=yes
11118 fi
11119 rm -f conftest*
11120
11121 if test $gl_have_mmap_anonymous != yes; then
11122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11123 /* end confdefs.h. */
11124
11125 #include <sys/mman.h>
11126 #ifdef MAP_ANON
11127 I cannot identify this map
11128 #endif
11129
11130 _ACEOF
11131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11132 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
11133
11134 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
11135
11136 gl_have_mmap_anonymous=yes
11137 fi
11138 rm -f conftest*
11139
11140 fi
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
11142 $as_echo "$gl_have_mmap_anonymous" >&6; }
11143 if test $gl_have_mmap_anonymous = yes; then
11144
11145 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
11146
11147 fi
11148 fi
11149
11150
11151
11152
11153
11154
11155 if test $HAVE_MEMCHR = 1; then
11156 # Detect platform-specific bugs in some versions of glibc:
11157 # memchr should not dereference anything with length 0
11158 # http://bugzilla.redhat.com/499689
11159 # memchr should not dereference overestimated length after a match
11160 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
11161 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
11162 # Assume that memchr works on platforms that lack mprotect.
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
11164 $as_echo_n "checking whether memchr works... " >&6; }
11165 if test "${gl_cv_func_memchr_works+set}" = set; then :
11166 $as_echo_n "(cached) " >&6
11167 else
11168 if test "$cross_compiling" = yes; then :
11169 gl_cv_func_memchr_works="guessing no"
11170 else
11171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11172 /* end confdefs.h. */
11173
11174 #include <string.h>
11175 #if HAVE_SYS_MMAN_H
11176 # include <fcntl.h>
11177 # include <unistd.h>
11178 # include <sys/types.h>
11179 # include <sys/mman.h>
11180 # ifndef MAP_FILE
11181 # define MAP_FILE 0
11182 # endif
11183 #endif
11184
11185 int
11186 main ()
11187 {
11188
11189 int result = 0;
11190 char *fence = NULL;
11191 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
11192 # if HAVE_MAP_ANONYMOUS
11193 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
11194 const int fd = -1;
11195 # else /* !HAVE_MAP_ANONYMOUS */
11196 const int flags = MAP_FILE | MAP_PRIVATE;
11197 int fd = open ("/dev/zero", O_RDONLY, 0666);
11198 if (fd >= 0)
11199 # endif
11200 {
11201 int pagesize = getpagesize ();
11202 char *two_pages =
11203 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
11204 flags, fd, 0);
11205 if (two_pages != (char *)(-1)
11206 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
11207 fence = two_pages + pagesize;
11208 }
11209 #endif
11210 if (fence)
11211 {
11212 if (memchr (fence, 0, 0))
11213 result |= 1;
11214 strcpy (fence - 9, "12345678");
11215 if (memchr (fence - 9, 0, 79) != fence - 1)
11216 result |= 2;
11217 if (memchr (fence - 1, 0, 3) != fence - 1)
11218 result |= 4;
11219 }
11220 return result;
11221
11222 ;
11223 return 0;
11224 }
11225 _ACEOF
11226 if ac_fn_c_try_run "$LINENO"; then :
11227 gl_cv_func_memchr_works=yes
11228 else
11229 gl_cv_func_memchr_works=no
11230 fi
11231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11232 conftest.$ac_objext conftest.beam conftest.$ac_ext
11233 fi
11234
11235 fi
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
11237 $as_echo "$gl_cv_func_memchr_works" >&6; }
11238 if test "$gl_cv_func_memchr_works" != yes; then
11239 REPLACE_MEMCHR=1
11240 fi
11241 fi
11242
11243 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
11244 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
11245 ac_have_decl=1
11246 else
11247 ac_have_decl=0
11248 fi
11249
11250 cat >>confdefs.h <<_ACEOF
11251 #define HAVE_DECL_MEMMEM $ac_have_decl
11252 _ACEOF
11253
11254
11255
11256
11257
11258 for ac_func in memmem
11259 do :
11260 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
11261 if test "x$ac_cv_func_memmem" = x""yes; then :
11262 cat >>confdefs.h <<_ACEOF
11263 #define HAVE_MEMMEM 1
11264 _ACEOF
11265
11266 fi
11267 done
11268
11269 if test $ac_cv_func_memmem = yes; then
11270 HAVE_MEMMEM=1
11271 else
11272 HAVE_MEMMEM=0
11273 fi
11274
11275 if test $ac_cv_have_decl_memmem = no; then
11276 HAVE_DECL_MEMMEM=0
11277 else
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
11279 $as_echo_n "checking whether memmem works... " >&6; }
11280 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
11281 $as_echo_n "(cached) " >&6
11282 else
11283 if test "$cross_compiling" = yes; then :
11284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11285 /* end confdefs.h. */
11286
11287 #ifdef __GNU_LIBRARY__
11288 #include <features.h>
11289 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
11290 || __GLIBC_MINOR__ > 12)) \
11291 || (__GLIBC__ > 2)) \
11292 || defined __UCLIBC__
11293 Lucky user
11294 #endif
11295 #elif defined __CYGWIN__
11296 #include <cygwin/version.h>
11297 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
11298 Lucky user
11299 #endif
11300 #else
11301 Lucky user
11302 #endif
11303
11304 _ACEOF
11305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11306 $EGREP "Lucky user" >/dev/null 2>&1; then :
11307 gl_cv_func_memmem_works_always="guessing yes"
11308 else
11309 gl_cv_func_memmem_works_always="guessing no"
11310 fi
11311 rm -f conftest*
11312
11313
11314 else
11315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11316 /* end confdefs.h. */
11317
11318 #include <string.h> /* for memmem */
11319 #define P "_EF_BF_BD"
11320 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
11321 #define NEEDLE P P P P P
11322
11323 int
11324 main ()
11325 {
11326
11327 int result = 0;
11328 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
11329 result |= 1;
11330 /* Check for empty needle behavior. */
11331 {
11332 const char *haystack = "AAA";
11333 if (memmem (haystack, 3, NULL, 0) != haystack)
11334 result |= 2;
11335 }
11336 return result;
11337
11338 ;
11339 return 0;
11340 }
11341 _ACEOF
11342 if ac_fn_c_try_run "$LINENO"; then :
11343 gl_cv_func_memmem_works_always=yes
11344 else
11345 gl_cv_func_memmem_works_always=no
11346 fi
11347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11348 conftest.$ac_objext conftest.beam conftest.$ac_ext
11349 fi
11350
11351
11352 fi
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
11354 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
11355 case "$gl_cv_func_memmem_works_always" in
11356 *yes) ;;
11357 *)
11358 REPLACE_MEMMEM=1
11359 ;;
11360 esac
11361 fi
11362 :
11363
11364
11365 GNULIB_DPRINTF=0;
11366 GNULIB_FCLOSE=0;
11367 GNULIB_FDOPEN=0;
11368 GNULIB_FFLUSH=0;
11369 GNULIB_FGETC=0;
11370 GNULIB_FGETS=0;
11371 GNULIB_FOPEN=0;
11372 GNULIB_FPRINTF=0;
11373 GNULIB_FPRINTF_POSIX=0;
11374 GNULIB_FPURGE=0;
11375 GNULIB_FPUTC=0;
11376 GNULIB_FPUTS=0;
11377 GNULIB_FREAD=0;
11378 GNULIB_FREOPEN=0;
11379 GNULIB_FSCANF=0;
11380 GNULIB_FSEEK=0;
11381 GNULIB_FSEEKO=0;
11382 GNULIB_FTELL=0;
11383 GNULIB_FTELLO=0;
11384 GNULIB_FWRITE=0;
11385 GNULIB_GETC=0;
11386 GNULIB_GETCHAR=0;
11387 GNULIB_GETDELIM=0;
11388 GNULIB_GETLINE=0;
11389 GNULIB_OBSTACK_PRINTF=0;
11390 GNULIB_OBSTACK_PRINTF_POSIX=0;
11391 GNULIB_PCLOSE=0;
11392 GNULIB_PERROR=0;
11393 GNULIB_POPEN=0;
11394 GNULIB_PRINTF=0;
11395 GNULIB_PRINTF_POSIX=0;
11396 GNULIB_PUTC=0;
11397 GNULIB_PUTCHAR=0;
11398 GNULIB_PUTS=0;
11399 GNULIB_REMOVE=0;
11400 GNULIB_RENAME=0;
11401 GNULIB_RENAMEAT=0;
11402 GNULIB_SCANF=0;
11403 GNULIB_SNPRINTF=0;
11404 GNULIB_SPRINTF_POSIX=0;
11405 GNULIB_STDIO_H_NONBLOCKING=0;
11406 GNULIB_STDIO_H_SIGPIPE=0;
11407 GNULIB_TMPFILE=0;
11408 GNULIB_VASPRINTF=0;
11409 GNULIB_VFSCANF=0;
11410 GNULIB_VSCANF=0;
11411 GNULIB_VDPRINTF=0;
11412 GNULIB_VFPRINTF=0;
11413 GNULIB_VFPRINTF_POSIX=0;
11414 GNULIB_VPRINTF=0;
11415 GNULIB_VPRINTF_POSIX=0;
11416 GNULIB_VSNPRINTF=0;
11417 GNULIB_VSPRINTF_POSIX=0;
11418 HAVE_DECL_FPURGE=1;
11419 HAVE_DECL_FSEEKO=1;
11420 HAVE_DECL_FTELLO=1;
11421 HAVE_DECL_GETDELIM=1;
11422 HAVE_DECL_GETLINE=1;
11423 HAVE_DECL_OBSTACK_PRINTF=1;
11424 HAVE_DECL_SNPRINTF=1;
11425 HAVE_DECL_VSNPRINTF=1;
11426 HAVE_DPRINTF=1;
11427 HAVE_FSEEKO=1;
11428 HAVE_FTELLO=1;
11429 HAVE_PCLOSE=1;
11430 HAVE_POPEN=1;
11431 HAVE_RENAMEAT=1;
11432 HAVE_VASPRINTF=1;
11433 HAVE_VDPRINTF=1;
11434 REPLACE_DPRINTF=0;
11435 REPLACE_FCLOSE=0;
11436 REPLACE_FDOPEN=0;
11437 REPLACE_FFLUSH=0;
11438 REPLACE_FOPEN=0;
11439 REPLACE_FPRINTF=0;
11440 REPLACE_FPURGE=0;
11441 REPLACE_FREOPEN=0;
11442 REPLACE_FSEEK=0;
11443 REPLACE_FSEEKO=0;
11444 REPLACE_FTELL=0;
11445 REPLACE_FTELLO=0;
11446 REPLACE_GETDELIM=0;
11447 REPLACE_GETLINE=0;
11448 REPLACE_OBSTACK_PRINTF=0;
11449 REPLACE_PERROR=0;
11450 REPLACE_POPEN=0;
11451 REPLACE_PRINTF=0;
11452 REPLACE_REMOVE=0;
11453 REPLACE_RENAME=0;
11454 REPLACE_RENAMEAT=0;
11455 REPLACE_SNPRINTF=0;
11456 REPLACE_SPRINTF=0;
11457 REPLACE_STDIO_READ_FUNCS=0;
11458 REPLACE_STDIO_WRITE_FUNCS=0;
11459 REPLACE_TMPFILE=0;
11460 REPLACE_VASPRINTF=0;
11461 REPLACE_VDPRINTF=0;
11462 REPLACE_VFPRINTF=0;
11463 REPLACE_VPRINTF=0;
11464 REPLACE_VSNPRINTF=0;
11465 REPLACE_VSPRINTF=0;
11466
11467
11468
11469 ac_fn_c_check_decl "$LINENO" "setenv" "ac_cv_have_decl_setenv" "$ac_includes_default"
11470 if test "x$ac_cv_have_decl_setenv" = x""yes; then :
11471 ac_have_decl=1
11472 else
11473 ac_have_decl=0
11474 fi
11475
11476 cat >>confdefs.h <<_ACEOF
11477 #define HAVE_DECL_SETENV $ac_have_decl
11478 _ACEOF
11479
11480
11481
11482
11483
11484
11485 if test $ac_cv_have_decl_setenv = no; then
11486 HAVE_DECL_SETENV=0
11487 fi
11488
11489
11490
11491
11492
11493 for ac_header in search.h
11494 do :
11495 ac_fn_c_check_header_mongrel "$LINENO" "search.h" "ac_cv_header_search_h" "$ac_includes_default"
11496 if test "x$ac_cv_header_search_h" = x""yes; then :
11497 cat >>confdefs.h <<_ACEOF
11498 #define HAVE_SEARCH_H 1
11499 _ACEOF
11500
11501 fi
11502
11503 done
11504
11505 for ac_func in tsearch
11506 do :
11507 ac_fn_c_check_func "$LINENO" "tsearch" "ac_cv_func_tsearch"
11508 if test "x$ac_cv_func_tsearch" = x""yes; then :
11509 cat >>confdefs.h <<_ACEOF
11510 #define HAVE_TSEARCH 1
11511 _ACEOF
11512
11513 fi
11514 done
11515
11516
11517
11518
11519 GNULIB_PTHREAD_SIGMASK=0;
11520 GNULIB_RAISE=0;
11521 GNULIB_SIGNAL_H_SIGPIPE=0;
11522 GNULIB_SIGPROCMASK=0;
11523 GNULIB_SIGACTION=0;
11524 HAVE_POSIX_SIGNALBLOCKING=1;
11525 HAVE_PTHREAD_SIGMASK=1;
11526 HAVE_RAISE=1;
11527 HAVE_SIGSET_T=1;
11528 HAVE_SIGINFO_T=1;
11529 HAVE_SIGACTION=1;
11530 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
11531
11532 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
11533
11534 HAVE_SIGHANDLER_T=1;
11535 REPLACE_PTHREAD_SIGMASK=0;
11536 REPLACE_RAISE=0;
11537
11538
11539 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
11540 #include <signal.h>
11541 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
11542 #include <sys/types.h>
11543
11544 "
11545 if test "x$ac_cv_type_sigset_t" = x""yes; then :
11546
11547 cat >>confdefs.h <<_ACEOF
11548 #define HAVE_SIGSET_T 1
11549 _ACEOF
11550
11551 gl_cv_type_sigset_t=yes
11552 else
11553 gl_cv_type_sigset_t=no
11554 fi
11555
11556 if test $gl_cv_type_sigset_t != yes; then
11557 HAVE_SIGSET_T=0
11558 fi
11559
11560 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11561 if test "x$ac_cv_type_pid_t" = x""yes; then :
11562
11563 else
11564
11565 cat >>confdefs.h <<_ACEOF
11566 #define pid_t int
11567 _ACEOF
11568
11569 fi
11570
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11572 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11573 if test "${ac_cv_type_uid_t+set}" = set; then :
11574 $as_echo_n "(cached) " >&6
11575 else
11576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11577 /* end confdefs.h. */
11578 #include <sys/types.h>
11579
11580 _ACEOF
11581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11582 $EGREP "uid_t" >/dev/null 2>&1; then :
11583 ac_cv_type_uid_t=yes
11584 else
11585 ac_cv_type_uid_t=no
11586 fi
11587 rm -f conftest*
11588
11589 fi
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11591 $as_echo "$ac_cv_type_uid_t" >&6; }
11592 if test $ac_cv_type_uid_t = no; then
11593
11594 $as_echo "#define uid_t int" >>confdefs.h
11595
11596
11597 $as_echo "#define gid_t int" >>confdefs.h
11598
11599 fi
11600
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
11602 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
11603 if test "${ac_cv_header_stdbool_h+set}" = set; then :
11604 $as_echo_n "(cached) " >&6
11605 else
11606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11607 /* end confdefs.h. */
11608
11609 #include <stdbool.h>
11610
11611 #ifdef __cplusplus
11612 typedef bool Bool;
11613 #else
11614 typedef _Bool Bool;
11615 #ifndef bool
11616 "error: bool is not defined"
11617 #endif
11618 #ifndef false
11619 "error: false is not defined"
11620 #endif
11621 #if false
11622 "error: false is not 0"
11623 #endif
11624 #ifndef true
11625 "error: true is not defined"
11626 #endif
11627 #if true != 1
11628 "error: true is not 1"
11629 #endif
11630 #endif
11631
11632 #ifndef __bool_true_false_are_defined
11633 "error: __bool_true_false_are_defined is not defined"
11634 #endif
11635
11636 struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
11637
11638 char a[true == 1 ? 1 : -1];
11639 char b[false == 0 ? 1 : -1];
11640 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11641 char d[(bool) 0.5 == true ? 1 : -1];
11642 /* See body of main program for 'e'. */
11643 char f[(Bool) 0.0 == false ? 1 : -1];
11644 char g[true];
11645 char h[sizeof (Bool)];
11646 char i[sizeof s.t];
11647 enum { j = false, k = true, l = false * true, m = true * 256 };
11648 /* The following fails for
11649 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
11650 Bool n[m];
11651 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11652 char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11653 /* Catch a bug in an HP-UX C compiler. See
11654 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11655 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11656 */
11657 Bool q = true;
11658 Bool *pq = &q;
11659 bool *qq = &q;
11660
11661 int
11662 main ()
11663 {
11664
11665 bool e = &s;
11666 *pq |= q; *pq |= ! q;
11667 *qq |= q; *qq |= ! q;
11668 /* Refer to every declared value, to avoid compiler optimizations. */
11669 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11670 + !m + !n + !o + !p + !q + !pq + !qq);
11671
11672 ;
11673 return 0;
11674 }
11675 _ACEOF
11676 if ac_fn_c_try_compile "$LINENO"; then :
11677 ac_cv_header_stdbool_h=yes
11678 else
11679 ac_cv_header_stdbool_h=no
11680 fi
11681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11682 fi
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
11684 $as_echo "$ac_cv_header_stdbool_h" >&6; }
11685 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
11686 if test "x$ac_cv_type__Bool" = x""yes; then :
11687
11688 cat >>confdefs.h <<_ACEOF
11689 #define HAVE__BOOL 1
11690 _ACEOF
11691
11692
11693 fi
11694
11695
11696
11697 REPLACE_NULL=0;
11698 HAVE_MAX_ALIGN_T=1;
11699 HAVE_WCHAR_T=1;
11700
11701
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
11703 $as_echo_n "checking for wchar_t... " >&6; }
11704 if test "${gt_cv_c_wchar_t+set}" = set; then :
11705 $as_echo_n "(cached) " >&6
11706 else
11707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11708 /* end confdefs.h. */
11709 #include <stddef.h>
11710 wchar_t foo = (wchar_t)'\0';
11711 int
11712 main ()
11713 {
11714
11715 ;
11716 return 0;
11717 }
11718 _ACEOF
11719 if ac_fn_c_try_compile "$LINENO"; then :
11720 gt_cv_c_wchar_t=yes
11721 else
11722 gt_cv_c_wchar_t=no
11723 fi
11724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11725 fi
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
11727 $as_echo "$gt_cv_c_wchar_t" >&6; }
11728 if test $gt_cv_c_wchar_t = yes; then
11729
11730 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11731
11732 fi
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745 if test $gl_cv_have_include_next = yes; then
11746 gl_cv_next_string_h='<'string.h'>'
11747 else
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
11749 $as_echo_n "checking absolute name of <string.h>... " >&6; }
11750 if test "${gl_cv_next_string_h+set}" = set; then :
11751 $as_echo_n "(cached) " >&6
11752 else
11753
11754
11755
11756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11757 /* end confdefs.h. */
11758 #include <string.h>
11759 _ACEOF
11760 case "$host_os" in
11761 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11762 *) gl_absname_cpp="$ac_cpp" ;;
11763 esac
11764
11765 case "$host_os" in
11766 mingw*)
11767 gl_dirsep_regex='[/\\]'
11768 ;;
11769 *)
11770 gl_dirsep_regex='\/'
11771 ;;
11772 esac
11773 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11774 gl_header_literal_regex=`echo 'string.h' \
11775 | sed -e "$gl_make_literal_regex_sed"`
11776 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11777 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11778 s|^/[^/]|//&|
11779 p
11780 q
11781 }'
11782
11783 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11784 sed -n "$gl_absolute_header_sed"`
11785
11786 gl_header=$gl_cv_absolute_string_h
11787 gl_cv_next_string_h='"'$gl_header'"'
11788
11789
11790 fi
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
11792 $as_echo "$gl_cv_next_string_h" >&6; }
11793 fi
11794 NEXT_STRING_H=$gl_cv_next_string_h
11795
11796 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11797 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11798 gl_next_as_first_directive='<'string.h'>'
11799 else
11800 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11801 gl_next_as_first_directive=$gl_cv_next_string_h
11802 fi
11803 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
11804
11805
11806
11807
11808
11809
11810 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
11811 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11813 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11814 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11815 $as_echo_n "(cached) " >&6
11816 else
11817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11818 /* end confdefs.h. */
11819 #include <string.h>
11820
11821 int
11822 main ()
11823 {
11824 #undef $gl_func
11825 (void) $gl_func;
11826 ;
11827 return 0;
11828 }
11829 _ACEOF
11830 if ac_fn_c_try_compile "$LINENO"; then :
11831 eval "$as_gl_Symbol=yes"
11832 else
11833 eval "$as_gl_Symbol=no"
11834 fi
11835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11836 fi
11837 eval ac_res=\$$as_gl_Symbol
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11839 $as_echo "$ac_res" >&6; }
11840 eval as_val=\$$as_gl_Symbol
11841 if test "x$as_val" = x""yes; then :
11842 cat >>confdefs.h <<_ACEOF
11843 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11844 _ACEOF
11845
11846 eval ac_cv_have_decl_$gl_func=yes
11847 fi
11848 done
11849
11850
11851
11852
11853
11854 if test "$gl_cv_func_memchr_works" != yes; then
11855 REPLACE_STRSTR=1
11856 else
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
11858 $as_echo_n "checking whether strstr works... " >&6; }
11859 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
11860 $as_echo_n "(cached) " >&6
11861 else
11862 if test "$cross_compiling" = yes; then :
11863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11864 /* end confdefs.h. */
11865
11866 #ifdef __GNU_LIBRARY__
11867 #include <features.h>
11868 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
11869 || defined __UCLIBC__
11870 Lucky user
11871 #endif
11872 #elif defined __CYGWIN__
11873 #include <cygwin/version.h>
11874 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
11875 Lucky user
11876 #endif
11877 #else
11878 Lucky user
11879 #endif
11880
11881 _ACEOF
11882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11883 $EGREP "Lucky user" >/dev/null 2>&1; then :
11884 gl_cv_func_strstr_works_always="guessing yes"
11885 else
11886 gl_cv_func_strstr_works_always="guessing no"
11887 fi
11888 rm -f conftest*
11889
11890
11891 else
11892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11893 /* end confdefs.h. */
11894
11895 #include <string.h> /* for strstr */
11896 #define P "_EF_BF_BD"
11897 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
11898 #define NEEDLE P P P P P
11899
11900 int
11901 main ()
11902 {
11903 return !!strstr (HAYSTACK, NEEDLE);
11904
11905 ;
11906 return 0;
11907 }
11908 _ACEOF
11909 if ac_fn_c_try_run "$LINENO"; then :
11910 gl_cv_func_strstr_works_always=yes
11911 else
11912 gl_cv_func_strstr_works_always=no
11913 fi
11914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11915 conftest.$ac_objext conftest.beam conftest.$ac_ext
11916 fi
11917
11918
11919 fi
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
11921 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
11922 case "$gl_cv_func_strstr_works_always" in
11923 *yes) ;;
11924 *)
11925 REPLACE_STRSTR=1
11926 ;;
11927 esac
11928 fi
11929
11930 ac_fn_c_check_decl "$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
11931 if test "x$ac_cv_have_decl_strtok_r" = x""yes; then :
11932 ac_have_decl=1
11933 else
11934 ac_have_decl=0
11935 fi
11936
11937 cat >>confdefs.h <<_ACEOF
11938 #define HAVE_DECL_STRTOK_R $ac_have_decl
11939 _ACEOF
11940
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11942 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11943 if test "${ac_cv_header_stat_broken+set}" = set; then :
11944 $as_echo_n "(cached) " >&6
11945 else
11946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11947 /* end confdefs.h. */
11948 #include <sys/types.h>
11949 #include <sys/stat.h>
11950
11951 #if defined S_ISBLK && defined S_IFDIR
11952 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11953 #endif
11954
11955 #if defined S_ISBLK && defined S_IFCHR
11956 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11957 #endif
11958
11959 #if defined S_ISLNK && defined S_IFREG
11960 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11961 #endif
11962
11963 #if defined S_ISSOCK && defined S_IFREG
11964 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11965 #endif
11966
11967 _ACEOF
11968 if ac_fn_c_try_compile "$LINENO"; then :
11969 ac_cv_header_stat_broken=no
11970 else
11971 ac_cv_header_stat_broken=yes
11972 fi
11973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11974 fi
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11976 $as_echo "$ac_cv_header_stat_broken" >&6; }
11977 if test $ac_cv_header_stat_broken = yes; then
11978
11979 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11980
11981 fi
11982
11983
11984
11985 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11986 if test "x$ac_cv_type_mode_t" = x""yes; then :
11987
11988 else
11989
11990 cat >>confdefs.h <<_ACEOF
11991 #define mode_t int
11992 _ACEOF
11993
11994 fi
11995
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11997 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11998 if test -z "$MKDIR_P"; then
11999 if test "${ac_cv_path_mkdir+set}" = set; then :
12000 $as_echo_n "(cached) " >&6
12001 else
12002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12003 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
12004 do
12005 IFS=$as_save_IFS
12006 test -z "$as_dir" && as_dir=.
12007 for ac_prog in mkdir gmkdir; do
12008 for ac_exec_ext in '' $ac_executable_extensions; do
12009 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
12010 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
12011 'mkdir (GNU coreutils) '* | \
12012 'mkdir (coreutils) '* | \
12013 'mkdir (fileutils) '4.1*)
12014 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
12015 break 3;;
12016 esac
12017 done
12018 done
12019 done
12020 IFS=$as_save_IFS
12021
12022 fi
12023
12024 if test "${ac_cv_path_mkdir+set}" = set; then
12025 MKDIR_P="$ac_cv_path_mkdir -p"
12026 else
12027 # As a last resort, use the slow shell script. Don't cache a
12028 # value for MKDIR_P within a source directory, because that will
12029 # break other packages using the cache if that directory is
12030 # removed, or if the value is a relative name.
12031 test -d ./--version && rmdir ./--version
12032 MKDIR_P="$ac_install_sh -d"
12033 fi
12034 fi
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
12036 $as_echo "$MKDIR_P" >&6; }
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056 if test $gl_cv_have_include_next = yes; then
12057 gl_cv_next_sys_types_h='<'sys/types.h'>'
12058 else
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
12060 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
12061 if test "${gl_cv_next_sys_types_h+set}" = set; then :
12062 $as_echo_n "(cached) " >&6
12063 else
12064
12065
12066
12067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12068 /* end confdefs.h. */
12069 #include <sys/types.h>
12070 _ACEOF
12071 case "$host_os" in
12072 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12073 *) gl_absname_cpp="$ac_cpp" ;;
12074 esac
12075
12076 case "$host_os" in
12077 mingw*)
12078 gl_dirsep_regex='[/\\]'
12079 ;;
12080 *)
12081 gl_dirsep_regex='\/'
12082 ;;
12083 esac
12084 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12085 gl_header_literal_regex=`echo 'sys/types.h' \
12086 | sed -e "$gl_make_literal_regex_sed"`
12087 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12088 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12089 s|^/[^/]|//&|
12090 p
12091 q
12092 }'
12093
12094 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12095 sed -n "$gl_absolute_header_sed"`
12096
12097 gl_header=$gl_cv_absolute_sys_types_h
12098 gl_cv_next_sys_types_h='"'$gl_header'"'
12099
12100
12101 fi
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
12103 $as_echo "$gl_cv_next_sys_types_h" >&6; }
12104 fi
12105 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
12106
12107 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12108 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12109 gl_next_as_first_directive='<'sys/types.h'>'
12110 else
12111 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12112 gl_next_as_first_directive=$gl_cv_next_sys_types_h
12113 fi
12114 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127 GNULIB_MKTIME=0;
12128 GNULIB_NANOSLEEP=0;
12129 GNULIB_STRPTIME=0;
12130 GNULIB_TIMEGM=0;
12131 GNULIB_TIME_R=0;
12132 GNULIB_TIME_RZ=0;
12133 HAVE_DECL_LOCALTIME_R=1;
12134 HAVE_NANOSLEEP=1;
12135 HAVE_STRPTIME=1;
12136 HAVE_TIMEGM=1;
12137 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
12138 REPLACE_MKTIME=GNULIB_PORTCHECK;
12139 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
12140 REPLACE_TIMEGM=GNULIB_PORTCHECK;
12141
12142 : ${GNULIB_GETTIMEOFDAY=0};
12143 REPLACE_GMTIME=0;
12144 REPLACE_LOCALTIME=0;
12145
12146
12147
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
12149 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
12150 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
12151 $as_echo_n "(cached) " >&6
12152 else
12153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12154 /* end confdefs.h. */
12155 #include <time.h>
12156
12157 int
12158 main ()
12159 {
12160 static struct timespec x; x.tv_sec = x.tv_nsec;
12161 ;
12162 return 0;
12163 }
12164 _ACEOF
12165 if ac_fn_c_try_compile "$LINENO"; then :
12166 gl_cv_sys_struct_timespec_in_time_h=yes
12167 else
12168 gl_cv_sys_struct_timespec_in_time_h=no
12169 fi
12170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12171 fi
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
12173 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
12174
12175 TIME_H_DEFINES_STRUCT_TIMESPEC=0
12176 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
12177 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
12178 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
12179 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
12180 TIME_H_DEFINES_STRUCT_TIMESPEC=1
12181 else
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
12183 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
12184 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
12185 $as_echo_n "(cached) " >&6
12186 else
12187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12188 /* end confdefs.h. */
12189 #include <sys/time.h>
12190
12191 int
12192 main ()
12193 {
12194 static struct timespec x; x.tv_sec = x.tv_nsec;
12195 ;
12196 return 0;
12197 }
12198 _ACEOF
12199 if ac_fn_c_try_compile "$LINENO"; then :
12200 gl_cv_sys_struct_timespec_in_sys_time_h=yes
12201 else
12202 gl_cv_sys_struct_timespec_in_sys_time_h=no
12203 fi
12204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12205 fi
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
12207 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
12208 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
12209 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
12210 else
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
12212 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
12213 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
12214 $as_echo_n "(cached) " >&6
12215 else
12216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12217 /* end confdefs.h. */
12218 #include <pthread.h>
12219
12220 int
12221 main ()
12222 {
12223 static struct timespec x; x.tv_sec = x.tv_nsec;
12224 ;
12225 return 0;
12226 }
12227 _ACEOF
12228 if ac_fn_c_try_compile "$LINENO"; then :
12229 gl_cv_sys_struct_timespec_in_pthread_h=yes
12230 else
12231 gl_cv_sys_struct_timespec_in_pthread_h=no
12232 fi
12233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12234 fi
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
12236 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
12237 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
12238 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
12239 else
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
12241 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
12242 if test "${gl_cv_sys_struct_timespec_in_unistd_h+set}" = set; then :
12243 $as_echo_n "(cached) " >&6
12244 else
12245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12246 /* end confdefs.h. */
12247 #include <unistd.h>
12248
12249 int
12250 main ()
12251 {
12252 static struct timespec x; x.tv_sec = x.tv_nsec;
12253 ;
12254 return 0;
12255 }
12256 _ACEOF
12257 if ac_fn_c_try_compile "$LINENO"; then :
12258 gl_cv_sys_struct_timespec_in_unistd_h=yes
12259 else
12260 gl_cv_sys_struct_timespec_in_unistd_h=no
12261 fi
12262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12263 fi
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
12265 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
12266 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
12267 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
12268 fi
12269 fi
12270 fi
12271 fi
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288 if test $gl_cv_have_include_next = yes; then
12289 gl_cv_next_time_h='<'time.h'>'
12290 else
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
12292 $as_echo_n "checking absolute name of <time.h>... " >&6; }
12293 if test "${gl_cv_next_time_h+set}" = set; then :
12294 $as_echo_n "(cached) " >&6
12295 else
12296
12297
12298
12299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300 /* end confdefs.h. */
12301 #include <time.h>
12302 _ACEOF
12303 case "$host_os" in
12304 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12305 *) gl_absname_cpp="$ac_cpp" ;;
12306 esac
12307
12308 case "$host_os" in
12309 mingw*)
12310 gl_dirsep_regex='[/\\]'
12311 ;;
12312 *)
12313 gl_dirsep_regex='\/'
12314 ;;
12315 esac
12316 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12317 gl_header_literal_regex=`echo 'time.h' \
12318 | sed -e "$gl_make_literal_regex_sed"`
12319 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12320 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12321 s|^/[^/]|//&|
12322 p
12323 q
12324 }'
12325
12326 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12327 sed -n "$gl_absolute_header_sed"`
12328
12329 gl_header=$gl_cv_absolute_time_h
12330 gl_cv_next_time_h='"'$gl_header'"'
12331
12332
12333 fi
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
12335 $as_echo "$gl_cv_next_time_h" >&6; }
12336 fi
12337 NEXT_TIME_H=$gl_cv_next_time_h
12338
12339 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12340 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12341 gl_next_as_first_directive='<'time.h'>'
12342 else
12343 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12344 gl_next_as_first_directive=$gl_cv_next_time_h
12345 fi
12346 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
12347
12348
12349
12350
12351
12352
12353 ac_fn_c_check_decl "$LINENO" "unsetenv" "ac_cv_have_decl_unsetenv" "$ac_includes_default"
12354 if test "x$ac_cv_have_decl_unsetenv" = x""yes; then :
12355 ac_have_decl=1
12356 else
12357 ac_have_decl=0
12358 fi
12359
12360 cat >>confdefs.h <<_ACEOF
12361 #define HAVE_DECL_UNSETENV $ac_have_decl
12362 _ACEOF
12363
12364
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
12366 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
12367 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
12368 $as_echo_n "(cached) " >&6
12369 else
12370 gl_cv_header_wchar_h_correct_inline=yes
12371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12372 /* end confdefs.h. */
12373
12374 #define wcstod renamed_wcstod
12375 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12376 <wchar.h>.
12377 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12378 included before <wchar.h>. */
12379 #include <stddef.h>
12380 #include <stdio.h>
12381 #include <time.h>
12382 #include <wchar.h>
12383 extern int zero (void);
12384 int main () { return zero(); }
12385
12386 _ACEOF
12387 save_ac_compile="$ac_compile"
12388 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
12389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12390 (eval $ac_compile) 2>&5
12391 ac_status=$?
12392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12393 test $ac_status = 0; }; then
12394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12395 /* end confdefs.h. */
12396
12397 #define wcstod renamed_wcstod
12398 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12399 <wchar.h>.
12400 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12401 included before <wchar.h>. */
12402 #include <stddef.h>
12403 #include <stdio.h>
12404 #include <time.h>
12405 #include <wchar.h>
12406 int zero (void) { return 0; }
12407
12408 _ACEOF
12409 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
12410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12411 (eval $ac_compile) 2>&5
12412 ac_status=$?
12413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12414 test $ac_status = 0; }; then
12415 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
12416 :
12417 else
12418 gl_cv_header_wchar_h_correct_inline=no
12419 fi
12420 fi
12421 fi
12422 ac_compile="$save_ac_compile"
12423 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
12424
12425 fi
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
12427 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
12428 if test $gl_cv_header_wchar_h_correct_inline = no; then
12429 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
12430 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
12431 C99 mode. You have four options:
12432 - Add the flag -fgnu89-inline to CC and reconfigure, or
12433 - Fix your include files, using parts of
12434 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
12435 - Use a gcc version older than 4.3, or
12436 - Don't use the flags -std=c99 or -std=gnu99.
12437 Configuration aborted." "$LINENO" 5
12438 fi
12439
12440
12441
12442
12443
12444 if test $ac_cv_header_features_h = yes; then
12445 HAVE_FEATURES_H=1
12446 else
12447 HAVE_FEATURES_H=0
12448 fi
12449
12450
12451
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
12453 $as_echo_n "checking for wint_t... " >&6; }
12454 if test "${gt_cv_c_wint_t+set}" = set; then :
12455 $as_echo_n "(cached) " >&6
12456 else
12457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12458 /* end confdefs.h. */
12459
12460 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12461 <wchar.h>.
12462 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
12463 before <wchar.h>. */
12464 #include <stddef.h>
12465 #include <stdio.h>
12466 #include <time.h>
12467 #include <wchar.h>
12468 wint_t foo = (wchar_t)'\0';
12469 int
12470 main ()
12471 {
12472
12473 ;
12474 return 0;
12475 }
12476 _ACEOF
12477 if ac_fn_c_try_compile "$LINENO"; then :
12478 gt_cv_c_wint_t=yes
12479 else
12480 gt_cv_c_wint_t=no
12481 fi
12482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12483 fi
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
12485 $as_echo "$gt_cv_c_wint_t" >&6; }
12486 if test $gt_cv_c_wint_t = yes; then
12487
12488 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
12489
12490 fi
12491
12492
12493 GNULIB_ISWBLANK=0;
12494 GNULIB_WCTYPE=0;
12495 GNULIB_ISWCTYPE=0;
12496 GNULIB_WCTRANS=0;
12497 GNULIB_TOWCTRANS=0;
12498 HAVE_ISWBLANK=1;
12499 HAVE_WCTYPE_T=1;
12500 HAVE_WCTRANS_T=1;
12501 REPLACE_ISWBLANK=0;
12502
12503
12504
12505
12506 if false; then
12507 GL_COND_LIBTOOL_TRUE=
12508 GL_COND_LIBTOOL_FALSE='#'
12509 else
12510 GL_COND_LIBTOOL_TRUE='#'
12511 GL_COND_LIBTOOL_FALSE=
12512 fi
12513
12514 gl_cond_libtool=false
12515 gl_libdeps=
12516 gl_ltlibdeps=
12517 gl_m4_base='import/m4'
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527 gl_source_base='import'
12528
12529
12530 if test $ac_cv_func_alloca_works = no; then
12531 :
12532 fi
12533
12534 # Define an additional variable used in the Makefile substitution.
12535 if test $ac_cv_working_alloca_h = yes; then
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
12537 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
12538 if test "${gl_cv_rpl_alloca+set}" = set; then :
12539 $as_echo_n "(cached) " >&6
12540 else
12541
12542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12543 /* end confdefs.h. */
12544
12545 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
12546 Need own alloca
12547 #endif
12548
12549 _ACEOF
12550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12551 $EGREP "Need own alloca" >/dev/null 2>&1; then :
12552 gl_cv_rpl_alloca=yes
12553 else
12554 gl_cv_rpl_alloca=no
12555 fi
12556 rm -f conftest*
12557
12558
12559 fi
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
12561 $as_echo "$gl_cv_rpl_alloca" >&6; }
12562 if test $gl_cv_rpl_alloca = yes; then
12563
12564 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12565
12566 ALLOCA_H=alloca.h
12567 else
12568 ALLOCA_H=
12569 fi
12570 else
12571 ALLOCA_H=alloca.h
12572 fi
12573
12574 if test -n "$ALLOCA_H"; then
12575 GL_GENERATE_ALLOCA_H_TRUE=
12576 GL_GENERATE_ALLOCA_H_FALSE='#'
12577 else
12578 GL_GENERATE_ALLOCA_H_TRUE='#'
12579 GL_GENERATE_ALLOCA_H_FALSE=
12580 fi
12581
12582
12583
12584
12585
12586 if test $ac_cv_func_canonicalize_file_name = no; then
12587 HAVE_CANONICALIZE_FILE_NAME=0
12588 if test $ac_cv_func_realpath = no; then
12589 HAVE_REALPATH=0
12590 else
12591 case "$gl_cv_func_realpath_works" in
12592 *yes) ;;
12593 *) REPLACE_REALPATH=1 ;;
12594 esac
12595 fi
12596 else
12597 case "$gl_cv_func_realpath_works" in
12598 *yes)
12599 ;;
12600 *)
12601 REPLACE_CANONICALIZE_FILE_NAME=1
12602 REPLACE_REALPATH=1
12603 ;;
12604 esac
12605 fi
12606
12607 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
12608
12609
12610
12611
12612
12613
12614
12615
12616 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
12617
12618 fi
12619
12620
12621 cat >>confdefs.h <<_ACEOF
12622 #define GNULIB_CANONICALIZE_LGPL 1
12623 _ACEOF
12624
12625
12626
12627
12628
12629
12630
12631 GNULIB_CANONICALIZE_FILE_NAME=1
12632
12633
12634
12635
12636
12637 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
12638
12639
12640
12641
12642
12643
12644
12645
12646 GNULIB_REALPATH=1
12647
12648
12649
12650
12651
12652 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
12653
12654
12655
12656
12657
12658
12659
12660
12661 GNULIB_CHDIR=1
12662
12663
12664
12665
12666
12667 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
12668
12669
12670
12671
12672 if test "x$datarootdir" = x; then
12673 datarootdir='${datadir}'
12674
12675 fi
12676 if test "x$docdir" = x; then
12677 docdir='${datarootdir}/doc/${PACKAGE}'
12678
12679 fi
12680 if test "x$htmldir" = x; then
12681 htmldir='${docdir}'
12682
12683 fi
12684 if test "x$dvidir" = x; then
12685 dvidir='${docdir}'
12686
12687 fi
12688 if test "x$pdfdir" = x; then
12689 pdfdir='${docdir}'
12690
12691 fi
12692 if test "x$psdir" = x; then
12693 psdir='${docdir}'
12694
12695 fi
12696 if test "x$lispdir" = x; then
12697 lispdir='${datarootdir}/emacs/site-lisp'
12698
12699 fi
12700 if test "x$localedir" = x; then
12701 localedir='${datarootdir}/locale'
12702
12703 fi
12704 if test "x$runstatedir" = x; then
12705 runstatedir='${localstatedir}/run'
12706
12707 fi
12708
12709 pkglibexecdir='${libexecdir}/${PACKAGE}'
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724 if test $gl_cv_have_include_next = yes; then
12725 gl_cv_next_dirent_h='<'dirent.h'>'
12726 else
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
12728 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
12729 if test "${gl_cv_next_dirent_h+set}" = set; then :
12730 $as_echo_n "(cached) " >&6
12731 else
12732
12733 if test $ac_cv_header_dirent_h = yes; then
12734
12735
12736
12737
12738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12739 /* end confdefs.h. */
12740 #include <dirent.h>
12741 _ACEOF
12742 case "$host_os" in
12743 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12744 *) gl_absname_cpp="$ac_cpp" ;;
12745 esac
12746
12747 case "$host_os" in
12748 mingw*)
12749 gl_dirsep_regex='[/\\]'
12750 ;;
12751 *)
12752 gl_dirsep_regex='\/'
12753 ;;
12754 esac
12755 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12756 gl_header_literal_regex=`echo 'dirent.h' \
12757 | sed -e "$gl_make_literal_regex_sed"`
12758 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12759 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12760 s|^/[^/]|//&|
12761 p
12762 q
12763 }'
12764
12765 gl_cv_absolute_dirent_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12766 sed -n "$gl_absolute_header_sed"`
12767
12768 gl_header=$gl_cv_absolute_dirent_h
12769 gl_cv_next_dirent_h='"'$gl_header'"'
12770 else
12771 gl_cv_next_dirent_h='<'dirent.h'>'
12772 fi
12773
12774
12775 fi
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
12777 $as_echo "$gl_cv_next_dirent_h" >&6; }
12778 fi
12779 NEXT_DIRENT_H=$gl_cv_next_dirent_h
12780
12781 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12782 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12783 gl_next_as_first_directive='<'dirent.h'>'
12784 else
12785 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12786 gl_next_as_first_directive=$gl_cv_next_dirent_h
12787 fi
12788 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
12789
12790
12791
12792
12793 if test $ac_cv_header_dirent_h = yes; then
12794 HAVE_DIRENT_H=1
12795 else
12796 HAVE_DIRENT_H=0
12797 fi
12798
12799
12800
12801 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
12802 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
12804 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12805 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
12806 $as_echo_n "(cached) " >&6
12807 else
12808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12809 /* end confdefs.h. */
12810 #include <dirent.h>
12811
12812 int
12813 main ()
12814 {
12815 #undef $gl_func
12816 (void) $gl_func;
12817 ;
12818 return 0;
12819 }
12820 _ACEOF
12821 if ac_fn_c_try_compile "$LINENO"; then :
12822 eval "$as_gl_Symbol=yes"
12823 else
12824 eval "$as_gl_Symbol=no"
12825 fi
12826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12827 fi
12828 eval ac_res=\$$as_gl_Symbol
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12830 $as_echo "$ac_res" >&6; }
12831 eval as_val=\$$as_gl_Symbol
12832 if test "x$as_val" = x""yes; then :
12833 cat >>confdefs.h <<_ACEOF
12834 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
12835 _ACEOF
12836
12837 eval ac_cv_have_decl_$gl_func=yes
12838 fi
12839 done
12840
12841
12842
12843
12844
12845
12846
12847 for ac_func in dirfd
12848 do :
12849 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
12850 if test "x$ac_cv_func_dirfd" = x""yes; then :
12851 cat >>confdefs.h <<_ACEOF
12852 #define HAVE_DIRFD 1
12853 _ACEOF
12854
12855 fi
12856 done
12857
12858 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
12859 #include <dirent.h>
12860 "
12861 if test "x$ac_cv_have_decl_dirfd" = x""yes; then :
12862 ac_have_decl=1
12863 else
12864 ac_have_decl=0
12865 fi
12866
12867 cat >>confdefs.h <<_ACEOF
12868 #define HAVE_DECL_DIRFD $ac_have_decl
12869 _ACEOF
12870
12871 if test $ac_cv_have_decl_dirfd = no; then
12872 HAVE_DECL_DIRFD=0
12873 fi
12874
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
12876 $as_echo_n "checking whether dirfd is a macro... " >&6; }
12877 if test "${gl_cv_func_dirfd_macro+set}" = set; then :
12878 $as_echo_n "(cached) " >&6
12879 else
12880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h. */
12882
12883 #include <sys/types.h>
12884 #include <dirent.h>
12885 #ifdef dirfd
12886 dirent_header_defines_dirfd
12887 #endif
12888 _ACEOF
12889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12890 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
12891 gl_cv_func_dirfd_macro=yes
12892 else
12893 gl_cv_func_dirfd_macro=no
12894 fi
12895 rm -f conftest*
12896
12897 fi
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
12899 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
12900
12901 # Use the replacement if we have no function or macro with that name,
12902 # or if OS/2 kLIBC whose dirfd() does not work.
12903 # Replace only if the system declares dirfd already.
12904 case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in
12905 no,no,*,yes | *,*,os2*,yes)
12906 REPLACE_DIRFD=1
12907
12908 $as_echo "#define REPLACE_DIRFD 1" >>confdefs.h
12909 ;;
12910 esac
12911
12912 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no \
12913 || test $REPLACE_DIRFD = 1; then
12914
12915
12916
12917
12918
12919
12920
12921
12922 gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
12923
12924
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
12926 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
12927 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then :
12928 $as_echo_n "(cached) " >&6
12929 else
12930
12931 dirfd_save_CFLAGS=$CFLAGS
12932 for ac_expr in d_fd dd_fd; do
12933
12934 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
12935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936 /* end confdefs.h. */
12937
12938 #include <sys/types.h>
12939 #include <dirent.h>
12940 int
12941 main ()
12942 {
12943 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
12944 ;
12945 return 0;
12946 }
12947 _ACEOF
12948 if ac_fn_c_try_compile "$LINENO"; then :
12949 dir_fd_found=yes
12950
12951 fi
12952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12953 CFLAGS=$dirfd_save_CFLAGS
12954 test "$dir_fd_found" = yes && break
12955 done
12956 test "$dir_fd_found" = yes || ac_expr=no_such_member
12957
12958 gl_cv_sys_dir_fd_member_name=$ac_expr
12959
12960
12961 fi
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
12963 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
12964 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
12965
12966 cat >>confdefs.h <<_ACEOF
12967 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
12968 _ACEOF
12969
12970 fi
12971
12972
12973 fi
12974
12975
12976
12977
12978
12979 GNULIB_DIRFD=1
12980
12981
12982
12983
12984
12985 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
12996 $as_echo_n "checking whether // is distinct from /... " >&6; }
12997 if test "${gl_cv_double_slash_root+set}" = set; then :
12998 $as_echo_n "(cached) " >&6
12999 else
13000 if test x"$cross_compiling" = xyes ; then
13001 # When cross-compiling, there is no way to tell whether // is special
13002 # short of a list of hosts. However, the only known hosts to date
13003 # that have a distinct // are Apollo DomainOS (too old to port to),
13004 # Cygwin, and z/OS. If anyone knows of another system for which // has
13005 # special semantics and is distinct from /, please report it to
13006 # <bug-gnulib@gnu.org>.
13007 case $host in
13008 *-cygwin | i370-ibm-openedition)
13009 gl_cv_double_slash_root=yes ;;
13010 *)
13011 # Be optimistic and assume that / and // are the same when we
13012 # don't know.
13013 gl_cv_double_slash_root='unknown, assuming no' ;;
13014 esac
13015 else
13016 set x `ls -di / // 2>/dev/null`
13017 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
13018 gl_cv_double_slash_root=no
13019 else
13020 gl_cv_double_slash_root=yes
13021 fi
13022 fi
13023 fi
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
13025 $as_echo "$gl_cv_double_slash_root" >&6; }
13026 if test "$gl_cv_double_slash_root" = yes; then
13027
13028 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
13029
13030 fi
13031
13032
13033
13034
13035
13036
13037
13038 GNULIB_ENVIRON=1
13039
13040
13041
13042
13043
13044 $as_echo "#define GNULIB_TEST_ENVIRON 1" >>confdefs.h
13045
13046
13047
13048
13049
13050
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array member" >&5
13052 $as_echo_n "checking for flexible array member... " >&6; }
13053 if test "${ac_cv_c_flexmember+set}" = set; then :
13054 $as_echo_n "(cached) " >&6
13055 else
13056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13057 /* end confdefs.h. */
13058 #include <stdlib.h>
13059 #include <stdio.h>
13060 #include <stddef.h>
13061 struct s { int n; double d[]; };
13062 int
13063 main ()
13064 {
13065 int m = getchar ();
13066 size_t nbytes = offsetof (struct s, d) + m * sizeof (double);
13067 nbytes += sizeof (struct s) - 1;
13068 nbytes -= nbytes % sizeof (struct s);
13069 struct s *p = malloc (nbytes);
13070 p->d[0] = 0.0;
13071 return p->d != (double *) NULL;
13072 ;
13073 return 0;
13074 }
13075 _ACEOF
13076 if ac_fn_c_try_compile "$LINENO"; then :
13077 ac_cv_c_flexmember=yes
13078 else
13079 ac_cv_c_flexmember=no
13080 fi
13081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13082 fi
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
13084 $as_echo "$ac_cv_c_flexmember" >&6; }
13085 if test $ac_cv_c_flexmember = yes; then
13086
13087 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
13088
13089 else
13090 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
13091
13092 fi
13093
13094
13095
13096
13097 FLOAT_H=
13098 REPLACE_FLOAT_LDBL=0
13099 case "$host_os" in
13100 aix* | beos* | openbsd* | mirbsd* | irix*)
13101 FLOAT_H=float.h
13102 ;;
13103 freebsd*)
13104 case "$host_cpu" in
13105 i[34567]86 )
13106 FLOAT_H=float.h
13107 ;;
13108 x86_64 )
13109 # On x86_64 systems, the C compiler may still be generating
13110 # 32-bit code.
13111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13112 /* end confdefs.h. */
13113 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
13114 yes
13115 #endif
13116 _ACEOF
13117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13118 $EGREP "yes" >/dev/null 2>&1; then :
13119
13120 else
13121 FLOAT_H=float.h
13122 fi
13123 rm -f conftest*
13124
13125 ;;
13126 esac
13127 ;;
13128 linux*)
13129 case "$host_cpu" in
13130 powerpc*)
13131 FLOAT_H=float.h
13132 ;;
13133 esac
13134 ;;
13135 esac
13136 case "$host_os" in
13137 aix* | freebsd* | linux*)
13138 if test -n "$FLOAT_H"; then
13139 REPLACE_FLOAT_LDBL=1
13140 fi
13141 ;;
13142 esac
13143
13144 REPLACE_ITOLD=0
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
13146 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
13147 if test "${gl_cv_func_itold_works+set}" = set; then :
13148 $as_echo_n "(cached) " >&6
13149 else
13150
13151 if test "$cross_compiling" = yes; then :
13152 case "$host" in
13153 sparc*-*-linux*)
13154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13155 /* end confdefs.h. */
13156 #if defined __LP64__ || defined __arch64__
13157 yes
13158 #endif
13159 _ACEOF
13160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13161 $EGREP "yes" >/dev/null 2>&1; then :
13162 gl_cv_func_itold_works="guessing no"
13163 else
13164 gl_cv_func_itold_works="guessing yes"
13165 fi
13166 rm -f conftest*
13167
13168 ;;
13169 *) gl_cv_func_itold_works="guessing yes" ;;
13170 esac
13171
13172 else
13173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13174 /* end confdefs.h. */
13175
13176 int i = -1;
13177 volatile long double ld;
13178 int main ()
13179 {
13180 ld += i * 1.0L;
13181 if (ld > 0)
13182 return 1;
13183 return 0;
13184 }
13185 _ACEOF
13186 if ac_fn_c_try_run "$LINENO"; then :
13187 gl_cv_func_itold_works=yes
13188 else
13189 gl_cv_func_itold_works=no
13190 fi
13191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13192 conftest.$ac_objext conftest.beam conftest.$ac_ext
13193 fi
13194
13195
13196 fi
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
13198 $as_echo "$gl_cv_func_itold_works" >&6; }
13199 case "$gl_cv_func_itold_works" in
13200 *no)
13201 REPLACE_ITOLD=1
13202 FLOAT_H=float.h
13203 ;;
13204 esac
13205
13206 if test -n "$FLOAT_H"; then
13207
13208
13209
13210
13211
13212
13213
13214
13215 if test $gl_cv_have_include_next = yes; then
13216 gl_cv_next_float_h='<'float.h'>'
13217 else
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
13219 $as_echo_n "checking absolute name of <float.h>... " >&6; }
13220 if test "${gl_cv_next_float_h+set}" = set; then :
13221 $as_echo_n "(cached) " >&6
13222 else
13223
13224
13225
13226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13227 /* end confdefs.h. */
13228 #include <float.h>
13229 _ACEOF
13230 case "$host_os" in
13231 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13232 *) gl_absname_cpp="$ac_cpp" ;;
13233 esac
13234
13235 case "$host_os" in
13236 mingw*)
13237 gl_dirsep_regex='[/\\]'
13238 ;;
13239 *)
13240 gl_dirsep_regex='\/'
13241 ;;
13242 esac
13243 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13244 gl_header_literal_regex=`echo 'float.h' \
13245 | sed -e "$gl_make_literal_regex_sed"`
13246 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13247 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13248 s|^/[^/]|//&|
13249 p
13250 q
13251 }'
13252
13253 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13254 sed -n "$gl_absolute_header_sed"`
13255
13256 gl_header=$gl_cv_absolute_float_h
13257 gl_cv_next_float_h='"'$gl_header'"'
13258
13259
13260 fi
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
13262 $as_echo "$gl_cv_next_float_h" >&6; }
13263 fi
13264 NEXT_FLOAT_H=$gl_cv_next_float_h
13265
13266 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13267 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13268 gl_next_as_first_directive='<'float.h'>'
13269 else
13270 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13271 gl_next_as_first_directive=$gl_cv_next_float_h
13272 fi
13273 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
13274
13275
13276
13277
13278 fi
13279
13280 if test -n "$FLOAT_H"; then
13281 GL_GENERATE_FLOAT_H_TRUE=
13282 GL_GENERATE_FLOAT_H_FALSE='#'
13283 else
13284 GL_GENERATE_FLOAT_H_TRUE='#'
13285 GL_GENERATE_FLOAT_H_FALSE=
13286 fi
13287
13288
13289
13290 if test $REPLACE_FLOAT_LDBL = 1; then
13291
13292
13293
13294
13295
13296
13297
13298
13299 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
13300
13301 fi
13302 if test $REPLACE_ITOLD = 1; then
13303
13304
13305
13306
13307
13308
13309
13310
13311 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
13312
13313 fi
13314
13315
13316
13317
13318
13319 FNMATCH_H=
13320 gl_fnmatch_required_lowercase=`
13321 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
13322 `
13323 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
13325 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
13326 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
13327 $as_echo_n "(cached) " >&6
13328 else
13329 if test $gl_fnmatch_required = GNU; then
13330 gl_fnmatch_gnu_start=
13331 gl_fnmatch_gnu_end=
13332 else
13333 gl_fnmatch_gnu_start='#if 0'
13334 gl_fnmatch_gnu_end='#endif'
13335 fi
13336 if test "$cross_compiling" = yes; then :
13337 eval "$gl_fnmatch_cache_var=\"guessing no\""
13338 else
13339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340 /* end confdefs.h. */
13341 #include <fnmatch.h>
13342 static int
13343 y (char const *pattern, char const *string, int flags)
13344 {
13345 return fnmatch (pattern, string, flags) == 0;
13346 }
13347 static int
13348 n (char const *pattern, char const *string, int flags)
13349 {
13350 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
13351 }
13352
13353 int
13354 main ()
13355 {
13356 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
13357 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
13358 static char const A_1[] = { 'A' - 1, 0 };
13359 static char const A01[] = { 'A' + 1, 0 };
13360 static char const a_1[] = { 'a' - 1, 0 };
13361 static char const a01[] = { 'a' + 1, 0 };
13362 static char const bs_1[] = { '\\\\' - 1, 0 };
13363 static char const bs01[] = { '\\\\' + 1, 0 };
13364 int result = 0;
13365 if (!n ("a*", "", 0))
13366 return 1;
13367 if (!y ("a*", "abc", 0))
13368 return 1;
13369 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
13370 return 1;
13371 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
13372 return 2;
13373 if (!y ("a\\\\bc", "abc", 0))
13374 return 3;
13375 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
13376 return 3;
13377 if (!y ("*x", ".x", 0))
13378 return 4;
13379 if (!n ("*x", ".x", FNM_PERIOD))
13380 return 4;
13381 if (!y (Apat, "\\\\", 0))
13382 return 5;
13383 if (!y (Apat, "A", 0))
13384 return 5;
13385 if (!y (apat, "\\\\", 0))
13386 return 5;
13387 if (!y (apat, "a", 0))
13388 return 5;
13389 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
13390 return 5;
13391 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
13392 return 5;
13393 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
13394 return 5;
13395 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
13396 return 5;
13397 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
13398 return 5;
13399 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
13400 return 5;
13401 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
13402 return 5;
13403 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
13404 return 5;
13405 $gl_fnmatch_gnu_start
13406 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
13407 result |= 8;
13408 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
13409 result |= 16;
13410 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
13411 result |= 32;
13412 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
13413 result |= 64;
13414 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
13415 result |= 64;
13416 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
13417 result |= 64;
13418 $gl_fnmatch_gnu_end
13419 return result;
13420
13421 ;
13422 return 0;
13423 }
13424 _ACEOF
13425 if ac_fn_c_try_run "$LINENO"; then :
13426 eval "$gl_fnmatch_cache_var=yes"
13427 else
13428 eval "$gl_fnmatch_cache_var=no"
13429 fi
13430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13431 conftest.$ac_objext conftest.beam conftest.$ac_ext
13432 fi
13433
13434
13435 fi
13436 eval ac_res=\$$gl_fnmatch_cache_var
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13438 $as_echo "$ac_res" >&6; }
13439 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
13440 if test "$gl_fnmatch_result" = yes; then
13441 rm -f "$gl_source_base/fnmatch.h"
13442 else
13443 FNMATCH_H=fnmatch.h
13444 fi
13445
13446 if test -n "$FNMATCH_H"; then
13447 GL_GENERATE_FNMATCH_H_TRUE=
13448 GL_GENERATE_FNMATCH_H_FALSE='#'
13449 else
13450 GL_GENERATE_FNMATCH_H_TRUE='#'
13451 GL_GENERATE_FNMATCH_H_FALSE=
13452 fi
13453
13454
13455 if test -n "$FNMATCH_H"; then
13456
13457
13458
13459
13460
13461
13462
13463
13464 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
13465
13466
13467
13468 cat >>confdefs.h <<_ACEOF
13469 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
13470 _ACEOF
13471
13472
13473 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
13474 "
13475 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
13476 ac_have_decl=1
13477 else
13478 ac_have_decl=0
13479 fi
13480
13481 cat >>confdefs.h <<_ACEOF
13482 #define HAVE_DECL_ISBLANK $ac_have_decl
13483 _ACEOF
13484
13485
13486
13487
13488 fi
13489
13490
13491
13492
13493
13494 if test -n "$FNMATCH_H"; then
13495
13496
13497
13498
13499
13500
13501
13502
13503 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
13504
13505
13506
13507 cat >>confdefs.h <<_ACEOF
13508 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
13509 _ACEOF
13510
13511
13512 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
13513 "
13514 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
13515 ac_have_decl=1
13516 else
13517 ac_have_decl=0
13518 fi
13519
13520 cat >>confdefs.h <<_ACEOF
13521 #define HAVE_DECL_ISBLANK $ac_have_decl
13522 _ACEOF
13523
13524
13525
13526
13527 fi
13528
13529
13530
13531 FREXP_LIBM=
13532 if test $gl_cv_func_frexp_no_libm = no; then
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
13534 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
13535 if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
13536 $as_echo_n "(cached) " >&6
13537 else
13538
13539 save_LIBS="$LIBS"
13540 LIBS="$LIBS -lm"
13541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13542 /* end confdefs.h. */
13543 #include <math.h>
13544 double x;
13545 int
13546 main ()
13547 {
13548 int e; return frexp (x, &e) > 0;
13549 ;
13550 return 0;
13551 }
13552 _ACEOF
13553 if ac_fn_c_try_link "$LINENO"; then :
13554 gl_cv_func_frexp_in_libm=yes
13555 else
13556 gl_cv_func_frexp_in_libm=no
13557 fi
13558 rm -f core conftest.err conftest.$ac_objext \
13559 conftest$ac_exeext conftest.$ac_ext
13560 LIBS="$save_LIBS"
13561
13562 fi
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
13564 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
13565 if test $gl_cv_func_frexp_in_libm = yes; then
13566 FREXP_LIBM=-lm
13567 fi
13568 fi
13569 if test $gl_cv_func_frexp_no_libm = yes \
13570 || test $gl_cv_func_frexp_in_libm = yes; then
13571 save_LIBS="$LIBS"
13572 LIBS="$LIBS $FREXP_LIBM"
13573
13574
13575
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
13577 $as_echo_n "checking whether frexp works... " >&6; }
13578 if test "${gl_cv_func_frexp_works+set}" = set; then :
13579 $as_echo_n "(cached) " >&6
13580 else
13581
13582 if test "$cross_compiling" = yes; then :
13583 case "$host_os" in
13584 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
13585 *) gl_cv_func_frexp_works="guessing yes";;
13586 esac
13587
13588 else
13589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590 /* end confdefs.h. */
13591
13592 #include <float.h>
13593 #include <math.h>
13594 #include <string.h>
13595 #if HAVE_DECL_ALARM
13596 # include <signal.h>
13597 # include <unistd.h>
13598 #endif
13599 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
13600 ICC 10.0 has a bug when optimizing the expression -zero.
13601 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
13602 to PowerPC on Mac OS X 10.5. */
13603 #if defined __hpux || defined __sgi || defined __ICC
13604 static double
13605 compute_minus_zero (void)
13606 {
13607 return -DBL_MIN * DBL_MIN;
13608 }
13609 # define minus_zero compute_minus_zero ()
13610 #else
13611 double minus_zero = -0.0;
13612 #endif
13613 int main()
13614 {
13615 int result = 0;
13616 int i;
13617 volatile double x;
13618 double zero = 0.0;
13619 #if HAVE_DECL_ALARM
13620 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
13621 number. Let the test fail in this case. */
13622 signal (SIGALRM, SIG_DFL);
13623 alarm (5);
13624 #endif
13625 /* Test on denormalized numbers. */
13626 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
13627 ;
13628 if (x > 0.0)
13629 {
13630 int exp;
13631 double y = frexp (x, &exp);
13632 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
13633 On NetBSD: y = 0.75. Correct: y = 0.5. */
13634 if (y != 0.5)
13635 result |= 1;
13636 }
13637 /* Test on infinite numbers. */
13638 x = 1.0 / zero;
13639 {
13640 int exp;
13641 double y = frexp (x, &exp);
13642 if (y != x)
13643 result |= 2;
13644 }
13645 /* Test on negative zero. */
13646 x = minus_zero;
13647 {
13648 int exp;
13649 double y = frexp (x, &exp);
13650 if (memcmp (&y, &x, sizeof x))
13651 result |= 4;
13652 }
13653 return result;
13654 }
13655 _ACEOF
13656 if ac_fn_c_try_run "$LINENO"; then :
13657 gl_cv_func_frexp_works=yes
13658 else
13659 gl_cv_func_frexp_works=no
13660 fi
13661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13662 conftest.$ac_objext conftest.beam conftest.$ac_ext
13663 fi
13664
13665
13666 fi
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
13668 $as_echo "$gl_cv_func_frexp_works" >&6; }
13669
13670 LIBS="$save_LIBS"
13671 case "$gl_cv_func_frexp_works" in
13672 *yes) gl_func_frexp=yes ;;
13673 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
13674 esac
13675 else
13676 gl_func_frexp=no
13677 fi
13678 if test $gl_func_frexp = yes; then
13679
13680 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
13681
13682 fi
13683
13684
13685 if test $gl_func_frexp != yes; then
13686
13687
13688
13689
13690
13691
13692
13693
13694 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
13695
13696 fi
13697
13698
13699
13700
13701
13702 GNULIB_FREXP=1
13703
13704
13705
13706
13707
13708 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
13719 "
13720 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
13721
13722 else
13723 HAVE_DECL_FREXPL=0
13724 fi
13725
13726
13727 FREXPL_LIBM=
13728 if test $HAVE_DECL_FREXPL = 1; then
13729
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
13731 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
13732 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
13733 $as_echo_n "(cached) " >&6
13734 else
13735
13736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13737 /* end confdefs.h. */
13738 #include <math.h>
13739 long double x;
13740 int
13741 main ()
13742 {
13743 int e; return frexpl (x, &e) > 0;
13744 ;
13745 return 0;
13746 }
13747 _ACEOF
13748 if ac_fn_c_try_link "$LINENO"; then :
13749 gl_cv_func_frexpl_no_libm=yes
13750 else
13751 gl_cv_func_frexpl_no_libm=no
13752 fi
13753 rm -f core conftest.err conftest.$ac_objext \
13754 conftest$ac_exeext conftest.$ac_ext
13755
13756 fi
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
13758 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
13759
13760 if test $gl_cv_func_frexpl_no_libm = no; then
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
13762 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
13763 if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
13764 $as_echo_n "(cached) " >&6
13765 else
13766
13767 save_LIBS="$LIBS"
13768 LIBS="$LIBS -lm"
13769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13770 /* end confdefs.h. */
13771 #include <math.h>
13772 long double x;
13773 int
13774 main ()
13775 {
13776 int e; return frexpl (x, &e) > 0;
13777 ;
13778 return 0;
13779 }
13780 _ACEOF
13781 if ac_fn_c_try_link "$LINENO"; then :
13782 gl_cv_func_frexpl_in_libm=yes
13783 else
13784 gl_cv_func_frexpl_in_libm=no
13785 fi
13786 rm -f core conftest.err conftest.$ac_objext \
13787 conftest$ac_exeext conftest.$ac_ext
13788 LIBS="$save_LIBS"
13789
13790 fi
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
13792 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
13793 if test $gl_cv_func_frexpl_in_libm = yes; then
13794 FREXPL_LIBM=-lm
13795 fi
13796 fi
13797 if test $gl_cv_func_frexpl_no_libm = yes \
13798 || test $gl_cv_func_frexpl_in_libm = yes; then
13799 save_LIBS="$LIBS"
13800 LIBS="$LIBS $FREXPL_LIBM"
13801
13802
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
13804 $as_echo_n "checking whether frexpl works... " >&6; }
13805 if test "${gl_cv_func_frexpl_works+set}" = set; then :
13806 $as_echo_n "(cached) " >&6
13807 else
13808
13809 if test "$cross_compiling" = yes; then :
13810
13811 case "$host_os" in
13812 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
13813 gl_cv_func_frexpl_works="guessing no";;
13814 *) gl_cv_func_frexpl_works="guessing yes";;
13815 esac
13816
13817 else
13818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13819 /* end confdefs.h. */
13820
13821 #include <float.h>
13822 #include <math.h>
13823 /* Override the values of <float.h>, like done in float.in.h. */
13824 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
13825 # undef LDBL_MIN_EXP
13826 # define LDBL_MIN_EXP (-16381)
13827 #endif
13828 #if defined __i386__ && defined __FreeBSD__
13829 # undef LDBL_MIN_EXP
13830 # define LDBL_MIN_EXP (-16381)
13831 #endif
13832 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
13833 # undef LDBL_MIN_EXP
13834 # define LDBL_MIN_EXP DBL_MIN_EXP
13835 #endif
13836 #if defined __sgi && (LDBL_MANT_DIG >= 106)
13837 # if defined __GNUC__
13838 # undef LDBL_MIN_EXP
13839 # define LDBL_MIN_EXP DBL_MIN_EXP
13840 # endif
13841 #endif
13842 extern
13843 #ifdef __cplusplus
13844 "C"
13845 #endif
13846 long double frexpl (long double, int *);
13847 int main()
13848 {
13849 int result = 0;
13850 volatile long double x;
13851 /* Test on finite numbers that fails on AIX 5.1. */
13852 x = 16.0L;
13853 {
13854 int exp = -9999;
13855 frexpl (x, &exp);
13856 if (exp != 5)
13857 result |= 1;
13858 }
13859 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
13860 function returns an invalid (incorrectly normalized) value: it returns
13861 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
13862 but the correct result is
13863 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
13864 x = 1.01L;
13865 {
13866 int exp = -9999;
13867 long double y = frexpl (x, &exp);
13868 if (!(exp == 1 && y == 0.505L))
13869 result |= 2;
13870 }
13871 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
13872 LDBL_MAX_EXP = 16384.
13873 In the loop end test, we test x against Infinity, rather than comparing
13874 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
13875 {
13876 int i;
13877 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
13878 {
13879 int exp = -9999;
13880 frexpl (x, &exp);
13881 if (exp != i)
13882 {
13883 result |= 4;
13884 break;
13885 }
13886 }
13887 }
13888 /* Test on denormalized numbers. */
13889 {
13890 int i;
13891 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
13892 ;
13893 if (x > 0.0L)
13894 {
13895 int exp;
13896 long double y = frexpl (x, &exp);
13897 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
13898 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
13899 if (exp != LDBL_MIN_EXP - 1)
13900 result |= 8;
13901 }
13902 }
13903 /* Test on infinite numbers. */
13904 x = 1.0L / 0.0L;
13905 {
13906 int exp;
13907 long double y = frexpl (x, &exp);
13908 if (y != x)
13909 result |= 16;
13910 }
13911 return result;
13912 }
13913 _ACEOF
13914 if ac_fn_c_try_run "$LINENO"; then :
13915 gl_cv_func_frexpl_works=yes
13916 else
13917 gl_cv_func_frexpl_works=no
13918 fi
13919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13920 conftest.$ac_objext conftest.beam conftest.$ac_ext
13921 fi
13922
13923
13924 fi
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
13926 $as_echo "$gl_cv_func_frexpl_works" >&6; }
13927
13928 LIBS="$save_LIBS"
13929 case "$gl_cv_func_frexpl_works" in
13930 *yes) gl_func_frexpl=yes ;;
13931 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
13932 esac
13933 else
13934 gl_func_frexpl=no
13935 fi
13936 if test $gl_func_frexpl = yes; then
13937
13938 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
13939
13940 fi
13941 fi
13942 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
13943 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
13944
13945 FREXPL_LIBM="$FREXP_LIBM"
13946 else
13947 FREXPL_LIBM=
13948 fi
13949 fi
13950
13951
13952 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
13953
13954
13955
13956
13957
13958
13959
13960
13961 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
13962
13963 fi
13964
13965
13966
13967
13968
13969 GNULIB_FREXPL=1
13970
13971
13972
13973
13974
13975 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985 gl_gettimeofday_timezone=void
13986 if test $ac_cv_func_gettimeofday != yes; then
13987 HAVE_GETTIMEOFDAY=0
13988 else
13989
13990
13991
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
13993 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
13994 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
13995 $as_echo_n "(cached) " >&6
13996 else
13997 if test "$cross_compiling" = yes; then :
13998 # When cross-compiling:
13999 case "$host_os" in
14000 # Guess all is fine on glibc systems.
14001 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
14002 # If we don't know, assume the worst.
14003 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
14004 esac
14005
14006 else
14007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14008 /* end confdefs.h. */
14009 #include <string.h>
14010 #include <sys/time.h>
14011 #include <time.h>
14012 #include <stdlib.h>
14013
14014 int
14015 main ()
14016 {
14017
14018 time_t t = 0;
14019 struct tm *lt;
14020 struct tm saved_lt;
14021 struct timeval tv;
14022 lt = localtime (&t);
14023 saved_lt = *lt;
14024 gettimeofday (&tv, NULL);
14025 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
14026
14027 ;
14028 return 0;
14029 }
14030 _ACEOF
14031 if ac_fn_c_try_run "$LINENO"; then :
14032 gl_cv_func_gettimeofday_clobber=no
14033 else
14034 gl_cv_func_gettimeofday_clobber=yes
14035 fi
14036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14037 conftest.$ac_objext conftest.beam conftest.$ac_ext
14038 fi
14039
14040 fi
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
14042 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
14043
14044 case "$gl_cv_func_gettimeofday_clobber" in
14045 *yes)
14046 REPLACE_GETTIMEOFDAY=1
14047
14048 REPLACE_GMTIME=1
14049 REPLACE_LOCALTIME=1
14050
14051
14052 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
14053
14054 ;;
14055 esac
14056
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
14058 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
14059 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
14060 $as_echo_n "(cached) " >&6
14061 else
14062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14063 /* end confdefs.h. */
14064 #include <sys/time.h>
14065 struct timeval c;
14066 int gettimeofday (struct timeval *restrict, void *restrict);
14067
14068 int
14069 main ()
14070 {
14071 /* glibc uses struct timezone * rather than the POSIX void *
14072 if _GNU_SOURCE is defined. However, since the only portable
14073 use of gettimeofday uses NULL as the second parameter, and
14074 since the glibc definition is actually more typesafe, it is
14075 not worth wrapping this to get a compliant signature. */
14076 int (*f) (struct timeval *restrict, void *restrict)
14077 = gettimeofday;
14078 int x = f (&c, 0);
14079 return !(x | c.tv_sec | c.tv_usec);
14080
14081 ;
14082 return 0;
14083 }
14084 _ACEOF
14085 if ac_fn_c_try_compile "$LINENO"; then :
14086 gl_cv_func_gettimeofday_posix_signature=yes
14087 else
14088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h. */
14090 #include <sys/time.h>
14091 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
14092
14093 int
14094 main ()
14095 {
14096
14097 ;
14098 return 0;
14099 }
14100 _ACEOF
14101 if ac_fn_c_try_compile "$LINENO"; then :
14102 gl_cv_func_gettimeofday_posix_signature=almost
14103 else
14104 gl_cv_func_gettimeofday_posix_signature=no
14105 fi
14106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14107 fi
14108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14109 fi
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
14111 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
14112 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
14113 gl_gettimeofday_timezone='struct timezone'
14114 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
14115 REPLACE_GETTIMEOFDAY=1
14116 fi
14117 if test $REPLACE_STRUCT_TIMEVAL = 1; then
14118 REPLACE_GETTIMEOFDAY=1
14119 fi
14120
14121 fi
14122
14123 cat >>confdefs.h <<_ACEOF
14124 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
14125 _ACEOF
14126
14127
14128 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
14129
14130
14131
14132
14133
14134
14135
14136
14137 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
14138
14139
14140 for ac_header in sys/timeb.h
14141 do :
14142 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
14143 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
14144 cat >>confdefs.h <<_ACEOF
14145 #define HAVE_SYS_TIMEB_H 1
14146 _ACEOF
14147
14148 fi
14149
14150 done
14151
14152 for ac_func in _ftime
14153 do :
14154 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
14155 if test "x$ac_cv_func__ftime" = x""yes; then :
14156 cat >>confdefs.h <<_ACEOF
14157 #define HAVE__FTIME 1
14158 _ACEOF
14159
14160 fi
14161 done
14162
14163
14164 fi
14165
14166
14167
14168
14169
14170 GNULIB_GETTIMEOFDAY=1
14171
14172
14173
14174
14175
14176 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
14177
14178
14179
14180
14181 :
14182
14183
14184
14185
14186
14187
14188 PRIPTR_PREFIX=
14189 if test -n "$STDINT_H"; then
14190 PRIPTR_PREFIX='"l"'
14191 else
14192 for glpfx in '' l ll I64; do
14193 case $glpfx in
14194 '') gltype1='int';;
14195 l) gltype1='long int';;
14196 ll) gltype1='long long int';;
14197 I64) gltype1='__int64';;
14198 esac
14199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14200 /* end confdefs.h. */
14201 #include <stdint.h>
14202 extern intptr_t foo;
14203 extern $gltype1 foo;
14204 int
14205 main ()
14206 {
14207
14208 ;
14209 return 0;
14210 }
14211 _ACEOF
14212 if ac_fn_c_try_compile "$LINENO"; then :
14213 PRIPTR_PREFIX='"'$glpfx'"'
14214 fi
14215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14216 test -n "$PRIPTR_PREFIX" && break
14217 done
14218 fi
14219
14220
14221
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
14223 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
14224 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
14225 $as_echo_n "(cached) " >&6
14226 else
14227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14228 /* end confdefs.h. */
14229 /* Work also in C++ mode. */
14230 #define __STDC_LIMIT_MACROS 1
14231
14232 /* Work if build is not clean. */
14233 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
14234
14235 #include <limits.h>
14236 #if HAVE_STDINT_H
14237 #include <stdint.h>
14238 #endif
14239
14240 #if defined INT32_MAX && defined INTMAX_MAX
14241 #define CONDITION (INT32_MAX < INTMAX_MAX)
14242 #elif HAVE_LONG_LONG_INT
14243 #define CONDITION (sizeof (int) < sizeof (long long int))
14244 #else
14245 #define CONDITION 0
14246 #endif
14247 int test[CONDITION ? 1 : -1];
14248 int
14249 main ()
14250 {
14251
14252 ;
14253 return 0;
14254 }
14255 _ACEOF
14256 if ac_fn_c_try_compile "$LINENO"; then :
14257 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
14258 else
14259 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
14260 fi
14261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14262 fi
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
14264 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
14265 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
14266 INT32_MAX_LT_INTMAX_MAX=1;
14267 else
14268 INT32_MAX_LT_INTMAX_MAX=0;
14269 fi
14270
14271
14272 if test $APPLE_UNIVERSAL_BUILD = 0; then
14273
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
14275 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
14276 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
14277 $as_echo_n "(cached) " >&6
14278 else
14279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14280 /* end confdefs.h. */
14281 /* Work also in C++ mode. */
14282 #define __STDC_LIMIT_MACROS 1
14283
14284 /* Work if build is not clean. */
14285 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
14286
14287 #include <limits.h>
14288 #if HAVE_STDINT_H
14289 #include <stdint.h>
14290 #endif
14291
14292 #if defined INT64_MAX
14293 #define CONDITION (INT64_MAX == LONG_MAX)
14294 #elif HAVE_LONG_LONG_INT
14295 #define CONDITION (sizeof (long long int) == sizeof (long int))
14296 #else
14297 #define CONDITION 0
14298 #endif
14299 int test[CONDITION ? 1 : -1];
14300 int
14301 main ()
14302 {
14303
14304 ;
14305 return 0;
14306 }
14307 _ACEOF
14308 if ac_fn_c_try_compile "$LINENO"; then :
14309 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
14310 else
14311 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
14312 fi
14313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14314 fi
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
14316 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
14317 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
14318 INT64_MAX_EQ_LONG_MAX=1;
14319 else
14320 INT64_MAX_EQ_LONG_MAX=0;
14321 fi
14322
14323
14324 else
14325 INT64_MAX_EQ_LONG_MAX=-1
14326 fi
14327
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
14329 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
14330 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
14331 $as_echo_n "(cached) " >&6
14332 else
14333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14334 /* end confdefs.h. */
14335 /* Work also in C++ mode. */
14336 #define __STDC_LIMIT_MACROS 1
14337
14338 /* Work if build is not clean. */
14339 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
14340
14341 #include <limits.h>
14342 #if HAVE_STDINT_H
14343 #include <stdint.h>
14344 #endif
14345
14346 #if defined UINT32_MAX && defined UINTMAX_MAX
14347 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
14348 #elif HAVE_LONG_LONG_INT
14349 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
14350 #else
14351 #define CONDITION 0
14352 #endif
14353 int test[CONDITION ? 1 : -1];
14354 int
14355 main ()
14356 {
14357
14358 ;
14359 return 0;
14360 }
14361 _ACEOF
14362 if ac_fn_c_try_compile "$LINENO"; then :
14363 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
14364 else
14365 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
14366 fi
14367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14368 fi
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
14370 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
14371 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
14372 UINT32_MAX_LT_UINTMAX_MAX=1;
14373 else
14374 UINT32_MAX_LT_UINTMAX_MAX=0;
14375 fi
14376
14377
14378 if test $APPLE_UNIVERSAL_BUILD = 0; then
14379
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
14381 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
14382 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
14383 $as_echo_n "(cached) " >&6
14384 else
14385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14386 /* end confdefs.h. */
14387 /* Work also in C++ mode. */
14388 #define __STDC_LIMIT_MACROS 1
14389
14390 /* Work if build is not clean. */
14391 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
14392
14393 #include <limits.h>
14394 #if HAVE_STDINT_H
14395 #include <stdint.h>
14396 #endif
14397
14398 #if defined UINT64_MAX
14399 #define CONDITION (UINT64_MAX == ULONG_MAX)
14400 #elif HAVE_LONG_LONG_INT
14401 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
14402 #else
14403 #define CONDITION 0
14404 #endif
14405 int test[CONDITION ? 1 : -1];
14406 int
14407 main ()
14408 {
14409
14410 ;
14411 return 0;
14412 }
14413 _ACEOF
14414 if ac_fn_c_try_compile "$LINENO"; then :
14415 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
14416 else
14417 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
14418 fi
14419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14420 fi
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
14422 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
14423 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
14424 UINT64_MAX_EQ_ULONG_MAX=1;
14425 else
14426 UINT64_MAX_EQ_ULONG_MAX=0;
14427 fi
14428
14429
14430 else
14431 UINT64_MAX_EQ_ULONG_MAX=-1
14432 fi
14433
14434
14435
14436
14437
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
14439 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
14440 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
14441 $as_echo_n "(cached) " >&6
14442 else
14443
14444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14445 /* end confdefs.h. */
14446 #include <math.h>
14447 #if __GNUC__ >= 4
14448 # undef isnand
14449 # define isnand(x) __builtin_isnan ((double)(x))
14450 #else
14451 # undef isnand
14452 # define isnand(x) isnan ((double)(x))
14453 #endif
14454 double x;
14455 int
14456 main ()
14457 {
14458 return isnand (x);
14459 ;
14460 return 0;
14461 }
14462 _ACEOF
14463 if ac_fn_c_try_link "$LINENO"; then :
14464 gl_cv_func_isnand_no_libm=yes
14465 else
14466 gl_cv_func_isnand_no_libm=no
14467 fi
14468 rm -f core conftest.err conftest.$ac_objext \
14469 conftest$ac_exeext conftest.$ac_ext
14470
14471 fi
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
14473 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
14474
14475 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
14476 if test $gl_cv_func_isnand_no_libm = yes; then
14477
14478 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
14479
14480 fi
14481
14482 if test $gl_func_isnand_no_libm != yes; then
14483
14484
14485
14486
14487
14488
14489
14490
14491 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
14492
14493
14494
14495
14496 fi
14497
14498
14499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
14500 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
14501 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
14502 $as_echo_n "(cached) " >&6
14503 else
14504
14505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14506 /* end confdefs.h. */
14507 #include <math.h>
14508 #if __GNUC__ >= 4
14509 # undef isnanl
14510 # define isnanl(x) __builtin_isnanl ((long double)(x))
14511 #elif defined isnan
14512 # undef isnanl
14513 # define isnanl(x) isnan ((long double)(x))
14514 #endif
14515 long double x;
14516 int
14517 main ()
14518 {
14519 return isnanl (x);
14520 ;
14521 return 0;
14522 }
14523 _ACEOF
14524 if ac_fn_c_try_link "$LINENO"; then :
14525 gl_cv_func_isnanl_no_libm=yes
14526 else
14527 gl_cv_func_isnanl_no_libm=no
14528 fi
14529 rm -f core conftest.err conftest.$ac_objext \
14530 conftest$ac_exeext conftest.$ac_ext
14531
14532 fi
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
14534 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
14535
14536 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
14537 if test $gl_func_isnanl_no_libm = yes; then
14538
14539
14540
14541
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
14543 $as_echo_n "checking whether isnanl works... " >&6; }
14544 if test "${gl_cv_func_isnanl_works+set}" = set; then :
14545 $as_echo_n "(cached) " >&6
14546 else
14547
14548 if test "$cross_compiling" = yes; then :
14549 gl_cv_func_isnanl_works="guessing yes"
14550 else
14551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14552 /* end confdefs.h. */
14553
14554 #include <float.h>
14555 #include <limits.h>
14556 #include <math.h>
14557 #if __GNUC__ >= 4
14558 # undef isnanl
14559 # define isnanl(x) __builtin_isnanl ((long double)(x))
14560 #elif defined isnan
14561 # undef isnanl
14562 # define isnanl(x) isnan ((long double)(x))
14563 #endif
14564 #define NWORDS \
14565 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14566 typedef union { unsigned int word[NWORDS]; long double value; }
14567 memory_long_double;
14568 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
14569 runtime type conversion. */
14570 #ifdef __sgi
14571 static long double NaNl ()
14572 {
14573 double zero = 0.0;
14574 return zero / zero;
14575 }
14576 #else
14577 # define NaNl() (0.0L / 0.0L)
14578 #endif
14579 int main ()
14580 {
14581 int result = 0;
14582
14583 if (!isnanl (NaNl ()))
14584 result |= 1;
14585
14586 {
14587 memory_long_double m;
14588 unsigned int i;
14589
14590 /* The isnanl function should be immune against changes in the sign bit and
14591 in the mantissa bits. The xor operation twiddles a bit that can only be
14592 a sign bit or a mantissa bit (since the exponent never extends to
14593 bit 31). */
14594 m.value = NaNl ();
14595 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
14596 for (i = 0; i < NWORDS; i++)
14597 m.word[i] |= 1;
14598 if (!isnanl (m.value))
14599 result |= 1;
14600 }
14601
14602 #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
14603 /* Representation of an 80-bit 'long double' as an initializer for a sequence
14604 of 'unsigned int' words. */
14605 # ifdef WORDS_BIGENDIAN
14606 # define LDBL80_WORDS(exponent,manthi,mantlo) \
14607 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
14608 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
14609 (unsigned int) (mantlo) << 16 \
14610 }
14611 # else
14612 # define LDBL80_WORDS(exponent,manthi,mantlo) \
14613 { mantlo, manthi, exponent }
14614 # endif
14615 { /* Quiet NaN. */
14616 static memory_long_double x =
14617 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
14618 if (!isnanl (x.value))
14619 result |= 2;
14620 }
14621 {
14622 /* Signalling NaN. */
14623 static memory_long_double x =
14624 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
14625 if (!isnanl (x.value))
14626 result |= 2;
14627 }
14628 /* isnanl should return something even for noncanonical values. */
14629 { /* Pseudo-NaN. */
14630 static memory_long_double x =
14631 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
14632 if (isnanl (x.value) && !isnanl (x.value))
14633 result |= 4;
14634 }
14635 { /* Pseudo-Infinity. */
14636 static memory_long_double x =
14637 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
14638 if (isnanl (x.value) && !isnanl (x.value))
14639 result |= 8;
14640 }
14641 { /* Pseudo-Zero. */
14642 static memory_long_double x =
14643 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
14644 if (isnanl (x.value) && !isnanl (x.value))
14645 result |= 16;
14646 }
14647 { /* Unnormalized number. */
14648 static memory_long_double x =
14649 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
14650 if (isnanl (x.value) && !isnanl (x.value))
14651 result |= 32;
14652 }
14653 { /* Pseudo-Denormal. */
14654 static memory_long_double x =
14655 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
14656 if (isnanl (x.value) && !isnanl (x.value))
14657 result |= 64;
14658 }
14659 #endif
14660
14661 return result;
14662 }
14663 _ACEOF
14664 if ac_fn_c_try_run "$LINENO"; then :
14665 gl_cv_func_isnanl_works=yes
14666 else
14667 gl_cv_func_isnanl_works=no
14668 fi
14669 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14670 conftest.$ac_objext conftest.beam conftest.$ac_ext
14671 fi
14672
14673
14674 fi
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
14676 $as_echo "$gl_cv_func_isnanl_works" >&6; }
14677
14678 case "$gl_cv_func_isnanl_works" in
14679 *yes) ;;
14680 *) gl_func_isnanl_no_libm=no ;;
14681 esac
14682 fi
14683 if test $gl_func_isnanl_no_libm = yes; then
14684
14685 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
14686
14687 fi
14688
14689 if test $gl_func_isnanl_no_libm != yes; then
14690
14691
14692
14693
14694
14695
14696
14697
14698 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
14699
14700
14701
14702
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
14704 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
14705 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
14706 $as_echo_n "(cached) " >&6
14707 else
14708
14709 if test "$cross_compiling" = yes; then :
14710
14711 gl_cv_cc_long_double_expbit0="unknown"
14712
14713 else
14714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14715 /* end confdefs.h. */
14716
14717 #include <float.h>
14718 #include <stddef.h>
14719 #include <stdio.h>
14720 #include <string.h>
14721 #define NWORDS \
14722 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14723 typedef union { long double value; unsigned int word[NWORDS]; }
14724 memory_long_double;
14725 static unsigned int ored_words[NWORDS];
14726 static unsigned int anded_words[NWORDS];
14727 static void add_to_ored_words (long double x)
14728 {
14729 memory_long_double m;
14730 size_t i;
14731 /* Clear it first, in case
14732 sizeof (long double) < sizeof (memory_long_double). */
14733 memset (&m, 0, sizeof (memory_long_double));
14734 m.value = x;
14735 for (i = 0; i < NWORDS; i++)
14736 {
14737 ored_words[i] |= m.word[i];
14738 anded_words[i] &= m.word[i];
14739 }
14740 }
14741 int main ()
14742 {
14743 size_t j;
14744 FILE *fp = fopen ("conftest.out", "w");
14745 if (fp == NULL)
14746 return 1;
14747 for (j = 0; j < NWORDS; j++)
14748 anded_words[j] = ~ (unsigned int) 0;
14749 add_to_ored_words (0.25L);
14750 add_to_ored_words (0.5L);
14751 add_to_ored_words (1.0L);
14752 add_to_ored_words (2.0L);
14753 add_to_ored_words (4.0L);
14754 /* Remove bits that are common (e.g. if representation of the first mantissa
14755 bit is explicit). */
14756 for (j = 0; j < NWORDS; j++)
14757 ored_words[j] &= ~anded_words[j];
14758 /* Now find the nonzero word. */
14759 for (j = 0; j < NWORDS; j++)
14760 if (ored_words[j] != 0)
14761 break;
14762 if (j < NWORDS)
14763 {
14764 size_t i;
14765 for (i = j + 1; i < NWORDS; i++)
14766 if (ored_words[i] != 0)
14767 {
14768 fprintf (fp, "unknown");
14769 return (fclose (fp) != 0);
14770 }
14771 for (i = 0; ; i++)
14772 if ((ored_words[j] >> i) & 1)
14773 {
14774 fprintf (fp, "word %d bit %d", (int) j, (int) i);
14775 return (fclose (fp) != 0);
14776 }
14777 }
14778 fprintf (fp, "unknown");
14779 return (fclose (fp) != 0);
14780 }
14781
14782 _ACEOF
14783 if ac_fn_c_try_run "$LINENO"; then :
14784 gl_cv_cc_long_double_expbit0=`cat conftest.out`
14785 else
14786 gl_cv_cc_long_double_expbit0="unknown"
14787 fi
14788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14789 conftest.$ac_objext conftest.beam conftest.$ac_ext
14790 fi
14791
14792 rm -f conftest.out
14793
14794 fi
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
14796 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
14797 case "$gl_cv_cc_long_double_expbit0" in
14798 word*bit*)
14799 word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
14800 bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
14801
14802 cat >>confdefs.h <<_ACEOF
14803 #define LDBL_EXPBIT0_WORD $word
14804 _ACEOF
14805
14806
14807 cat >>confdefs.h <<_ACEOF
14808 #define LDBL_EXPBIT0_BIT $bit
14809 _ACEOF
14810
14811 ;;
14812 esac
14813
14814
14815
14816 fi
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
14828
14829
14830
14831
14832 if test $ac_cv_func_lstat = yes; then
14833
14834 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
14835 *no)
14836 REPLACE_LSTAT=1
14837 ;;
14838 esac
14839 else
14840 HAVE_LSTAT=0
14841 fi
14842
14843 if test $REPLACE_LSTAT = 1; then
14844
14845
14846
14847
14848
14849
14850
14851
14852 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
14853
14854 :
14855 fi
14856
14857
14858
14859
14860
14861 GNULIB_LSTAT=1
14862
14863
14864
14865
14866
14867 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
14868
14869
14870
14871
14872
14873
14874 if test $gl_cv_func_malloc_posix = yes; then
14875
14876 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
14877
14878 else
14879 REPLACE_MALLOC=1
14880 fi
14881
14882 if test $REPLACE_MALLOC = 1; then
14883
14884
14885
14886
14887
14888
14889
14890
14891 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
14892
14893 fi
14894
14895
14896
14897
14898
14899 GNULIB_MALLOC_POSIX=1
14900
14901
14902
14903
14904
14905 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920
14921
14922
14923
14924 if test $gl_cv_have_include_next = yes; then
14925 gl_cv_next_math_h='<'math.h'>'
14926 else
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
14928 $as_echo_n "checking absolute name of <math.h>... " >&6; }
14929 if test "${gl_cv_next_math_h+set}" = set; then :
14930 $as_echo_n "(cached) " >&6
14931 else
14932
14933 if test $ac_cv_header_math_h = yes; then
14934
14935
14936
14937
14938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14939 /* end confdefs.h. */
14940 #include <math.h>
14941 _ACEOF
14942 case "$host_os" in
14943 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14944 *) gl_absname_cpp="$ac_cpp" ;;
14945 esac
14946
14947 case "$host_os" in
14948 mingw*)
14949 gl_dirsep_regex='[/\\]'
14950 ;;
14951 *)
14952 gl_dirsep_regex='\/'
14953 ;;
14954 esac
14955 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14956 gl_header_literal_regex=`echo 'math.h' \
14957 | sed -e "$gl_make_literal_regex_sed"`
14958 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14959 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14960 s|^/[^/]|//&|
14961 p
14962 q
14963 }'
14964
14965 gl_cv_absolute_math_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14966 sed -n "$gl_absolute_header_sed"`
14967
14968 gl_header=$gl_cv_absolute_math_h
14969 gl_cv_next_math_h='"'$gl_header'"'
14970 else
14971 gl_cv_next_math_h='<'math.h'>'
14972 fi
14973
14974
14975 fi
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
14977 $as_echo "$gl_cv_next_math_h" >&6; }
14978 fi
14979 NEXT_MATH_H=$gl_cv_next_math_h
14980
14981 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14982 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14983 gl_next_as_first_directive='<'math.h'>'
14984 else
14985 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14986 gl_next_as_first_directive=$gl_cv_next_math_h
14987 fi
14988 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
14989
14990
14991
14992
14993
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
14995 $as_echo_n "checking whether NAN macro works... " >&6; }
14996 if test "${gl_cv_header_math_nan_works+set}" = set; then :
14997 $as_echo_n "(cached) " >&6
14998 else
14999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15000 /* end confdefs.h. */
15001 #include <math.h>
15002 int
15003 main ()
15004 {
15005 /* Solaris 10 has a broken definition of NAN. Other platforms
15006 fail to provide NAN, or provide it only in C99 mode; this
15007 test only needs to fail when NAN is provided but wrong. */
15008 float f = 1.0f;
15009 #ifdef NAN
15010 f = NAN;
15011 #endif
15012 return f == 0;
15013 ;
15014 return 0;
15015 }
15016 _ACEOF
15017 if ac_fn_c_try_compile "$LINENO"; then :
15018 gl_cv_header_math_nan_works=yes
15019 else
15020 gl_cv_header_math_nan_works=no
15021 fi
15022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15023 fi
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
15025 $as_echo "$gl_cv_header_math_nan_works" >&6; }
15026 if test $gl_cv_header_math_nan_works = no; then
15027 REPLACE_NAN=1
15028 fi
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
15030 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
15031 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
15032 $as_echo_n "(cached) " >&6
15033 else
15034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15035 /* end confdefs.h. */
15036 #include <math.h>
15037 int
15038 main ()
15039 {
15040 /* Solaris 10 has a broken definition of HUGE_VAL. */
15041 double d = HUGE_VAL;
15042 return d == 0;
15043 ;
15044 return 0;
15045 }
15046 _ACEOF
15047 if ac_fn_c_try_compile "$LINENO"; then :
15048 gl_cv_header_math_huge_val_works=yes
15049 else
15050 gl_cv_header_math_huge_val_works=no
15051 fi
15052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15053 fi
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
15055 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
15056 if test $gl_cv_header_math_huge_val_works = no; then
15057 REPLACE_HUGE_VAL=1
15058 fi
15059
15060
15061 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
15062 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15064 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15065 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
15066 $as_echo_n "(cached) " >&6
15067 else
15068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15069 /* end confdefs.h. */
15070 #include <math.h>
15071 int
15072 main ()
15073 {
15074 #undef $gl_func
15075 (void) $gl_func;
15076 ;
15077 return 0;
15078 }
15079 _ACEOF
15080 if ac_fn_c_try_compile "$LINENO"; then :
15081 eval "$as_gl_Symbol=yes"
15082 else
15083 eval "$as_gl_Symbol=no"
15084 fi
15085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15086 fi
15087 eval ac_res=\$$as_gl_Symbol
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15089 $as_echo "$ac_res" >&6; }
15090 eval as_val=\$$as_gl_Symbol
15091 if test "x$as_val" = x""yes; then :
15092 cat >>confdefs.h <<_ACEOF
15093 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15094 _ACEOF
15095
15096 eval ac_cv_have_decl_$gl_func=yes
15097 fi
15098 done
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15112
15113
15114
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15116 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15117 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15118 $as_echo_n "(cached) " >&6
15119 else
15120
15121 case "$host_os" in
15122 # Guess no on AIX and OSF/1.
15123 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15124 # Guess yes otherwise.
15125 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15126 esac
15127 if test $LOCALE_JA != none; then
15128 if test "$cross_compiling" = yes; then :
15129 :
15130 else
15131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15132 /* end confdefs.h. */
15133
15134 #include <locale.h>
15135 #include <string.h>
15136 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15137 <wchar.h>.
15138 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15139 included before <wchar.h>. */
15140 #include <stddef.h>
15141 #include <stdio.h>
15142 #include <time.h>
15143 #include <wchar.h>
15144 int main ()
15145 {
15146 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15147 {
15148 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15149 mbstate_t state;
15150 wchar_t wc;
15151
15152 memset (&state, '\0', sizeof (mbstate_t));
15153 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15154 if (mbsinit (&state))
15155 return 1;
15156 }
15157 return 0;
15158 }
15159 _ACEOF
15160 if ac_fn_c_try_run "$LINENO"; then :
15161 gl_cv_func_mbrtowc_incomplete_state=yes
15162 else
15163 gl_cv_func_mbrtowc_incomplete_state=no
15164 fi
15165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15166 conftest.$ac_objext conftest.beam conftest.$ac_ext
15167 fi
15168
15169 fi
15170
15171 fi
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15173 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15174
15175
15176
15177
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15179 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15180 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
15181 $as_echo_n "(cached) " >&6
15182 else
15183
15184 case "$host_os" in
15185 # Guess no on Solaris 8.
15186 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15187 # Guess yes otherwise.
15188 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15189 esac
15190 if test $LOCALE_ZH_CN != none; then
15191 if test "$cross_compiling" = yes; then :
15192 :
15193 else
15194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15195 /* end confdefs.h. */
15196
15197 #include <locale.h>
15198 #include <stdlib.h>
15199 #include <string.h>
15200 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15201 <wchar.h>.
15202 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15203 included before <wchar.h>. */
15204 #include <stddef.h>
15205 #include <stdio.h>
15206 #include <time.h>
15207 #include <wchar.h>
15208 int main ()
15209 {
15210 /* This fails on Solaris 8:
15211 mbrtowc returns 2, and sets wc to 0x00F0.
15212 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15213 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15214 {
15215 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15216 mbstate_t state;
15217 wchar_t wc;
15218
15219 memset (&state, '\0', sizeof (mbstate_t));
15220 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15221 && mbtowc (&wc, input + 3, 6) == 4)
15222 return 1;
15223 }
15224 return 0;
15225 }
15226 _ACEOF
15227 if ac_fn_c_try_run "$LINENO"; then :
15228 gl_cv_func_mbrtowc_sanitycheck=yes
15229 else
15230 gl_cv_func_mbrtowc_sanitycheck=no
15231 fi
15232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15233 conftest.$ac_objext conftest.beam conftest.$ac_ext
15234 fi
15235
15236 fi
15237
15238 fi
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15240 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15241
15242 REPLACE_MBSTATE_T=0
15243 case "$gl_cv_func_mbrtowc_incomplete_state" in
15244 *yes) ;;
15245 *) REPLACE_MBSTATE_T=1 ;;
15246 esac
15247 case "$gl_cv_func_mbrtowc_sanitycheck" in
15248 *yes) ;;
15249 *) REPLACE_MBSTATE_T=1 ;;
15250 esac
15251 else
15252 REPLACE_MBSTATE_T=1
15253 fi
15254
15255
15256
15257 if test $ac_cv_func_mbrtowc = no; then
15258 HAVE_MBRTOWC=0
15259 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
15260 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15261 <wchar.h>.
15262 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15263 included before <wchar.h>. */
15264 #include <stddef.h>
15265 #include <stdio.h>
15266 #include <time.h>
15267 #include <wchar.h>
15268
15269 "
15270 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
15271 ac_have_decl=1
15272 else
15273 ac_have_decl=0
15274 fi
15275
15276 cat >>confdefs.h <<_ACEOF
15277 #define HAVE_DECL_MBRTOWC $ac_have_decl
15278 _ACEOF
15279
15280 if test $ac_cv_have_decl_mbrtowc = yes; then
15281 REPLACE_MBRTOWC=1
15282 fi
15283 else
15284 if test $REPLACE_MBSTATE_T = 1; then
15285 REPLACE_MBRTOWC=1
15286 else
15287
15288
15289
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
15291 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
15292 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
15293 $as_echo_n "(cached) " >&6
15294 else
15295
15296 case "$host_os" in
15297 # Guess no on Solaris.
15298 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
15299 # Guess yes otherwise.
15300 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
15301 esac
15302 if test $LOCALE_FR_UTF8 != none; then
15303 if test "$cross_compiling" = yes; then :
15304 :
15305 else
15306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15307 /* end confdefs.h. */
15308
15309 #include <locale.h>
15310 #include <stdlib.h>
15311 #include <string.h>
15312 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15313 <wchar.h>.
15314 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15315 included before <wchar.h>. */
15316 #include <stddef.h>
15317 #include <stdio.h>
15318 #include <time.h>
15319 #include <wchar.h>
15320 int main ()
15321 {
15322 int result = 0;
15323
15324 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15325 {
15326 char input[] = "\303\237er";
15327 mbstate_t state;
15328 wchar_t wc;
15329 size_t ret;
15330
15331 memset (&state, '\0', sizeof (mbstate_t));
15332 wc = (wchar_t) 0xBADFACE;
15333 ret = mbrtowc (&wc, input, 5, &state);
15334 if (ret != 2)
15335 result |= 1;
15336 if (!mbsinit (&state))
15337 result |= 2;
15338
15339 memset (&state, '\0', sizeof (mbstate_t));
15340 ret = mbrtowc (NULL, input, 5, &state);
15341 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
15342 result |= 4;
15343 if (!mbsinit (&state))
15344 result |= 8;
15345 }
15346 return result;
15347 }
15348 _ACEOF
15349 if ac_fn_c_try_run "$LINENO"; then :
15350 gl_cv_func_mbrtowc_null_arg1=yes
15351 else
15352 gl_cv_func_mbrtowc_null_arg1=no
15353 fi
15354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15355 conftest.$ac_objext conftest.beam conftest.$ac_ext
15356 fi
15357
15358 fi
15359
15360 fi
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
15362 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
15363
15364
15365
15366
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
15368 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
15369 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
15370 $as_echo_n "(cached) " >&6
15371 else
15372
15373 case "$host_os" in
15374 # Guess no on OSF/1.
15375 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
15376 # Guess yes otherwise.
15377 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
15378 esac
15379 if test $LOCALE_FR_UTF8 != none; then
15380 if test "$cross_compiling" = yes; then :
15381 :
15382 else
15383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15384 /* end confdefs.h. */
15385
15386 #include <locale.h>
15387 #include <string.h>
15388 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15389 <wchar.h>.
15390 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15391 included before <wchar.h>. */
15392 #include <stddef.h>
15393 #include <stdio.h>
15394 #include <time.h>
15395 #include <wchar.h>
15396 int main ()
15397 {
15398 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15399 {
15400 mbstate_t state;
15401 wchar_t wc;
15402 int ret;
15403
15404 memset (&state, '\0', sizeof (mbstate_t));
15405 wc = (wchar_t) 0xBADFACE;
15406 mbrtowc (&wc, NULL, 5, &state);
15407 /* Check that wc was not modified. */
15408 if (wc != (wchar_t) 0xBADFACE)
15409 return 1;
15410 }
15411 return 0;
15412 }
15413 _ACEOF
15414 if ac_fn_c_try_run "$LINENO"; then :
15415 gl_cv_func_mbrtowc_null_arg2=yes
15416 else
15417 gl_cv_func_mbrtowc_null_arg2=no
15418 fi
15419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15420 conftest.$ac_objext conftest.beam conftest.$ac_ext
15421 fi
15422
15423 fi
15424
15425 fi
15426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
15427 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
15428
15429
15430
15431
15432
15433
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
15435 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
15436 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
15437 $as_echo_n "(cached) " >&6
15438 else
15439
15440 case "$host_os" in
15441 # Guess no on HP-UX, Solaris, native Windows.
15442 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
15443 # Guess yes otherwise.
15444 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
15445 esac
15446 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
15447 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
15448 if test "$cross_compiling" = yes; then :
15449 :
15450 else
15451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15452 /* end confdefs.h. */
15453
15454 #include <locale.h>
15455 #include <string.h>
15456 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15457 <wchar.h>.
15458 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15459 included before <wchar.h>. */
15460 #include <stddef.h>
15461 #include <stdio.h>
15462 #include <time.h>
15463 #include <wchar.h>
15464 int main ()
15465 {
15466 int result = 0;
15467 int found_some_locale = 0;
15468 /* This fails on Solaris. */
15469 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15470 {
15471 char input[] = "B\303\274\303\237er"; /* "Büßer" */
15472 mbstate_t state;
15473 wchar_t wc;
15474
15475 memset (&state, '\0', sizeof (mbstate_t));
15476 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15477 {
15478 input[1] = '\0';
15479 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
15480 result |= 1;
15481 }
15482 found_some_locale = 1;
15483 }
15484 /* This fails on HP-UX 11.11. */
15485 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15486 {
15487 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15488 mbstate_t state;
15489 wchar_t wc;
15490
15491 memset (&state, '\0', sizeof (mbstate_t));
15492 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15493 {
15494 input[1] = '\0';
15495 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
15496 result |= 2;
15497 }
15498 found_some_locale = 1;
15499 }
15500 /* This fails on native Windows. */
15501 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
15502 {
15503 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
15504 mbstate_t state;
15505 wchar_t wc;
15506
15507 memset (&state, '\0', sizeof (mbstate_t));
15508 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
15509 {
15510 input[3] = '\0';
15511 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
15512 result |= 4;
15513 }
15514 found_some_locale = 1;
15515 }
15516 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
15517 {
15518 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
15519 mbstate_t state;
15520 wchar_t wc;
15521
15522 memset (&state, '\0', sizeof (mbstate_t));
15523 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
15524 {
15525 input[3] = '\0';
15526 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
15527 result |= 8;
15528 }
15529 found_some_locale = 1;
15530 }
15531 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
15532 {
15533 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
15534 mbstate_t state;
15535 wchar_t wc;
15536
15537 memset (&state, '\0', sizeof (mbstate_t));
15538 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
15539 {
15540 input[3] = '\0';
15541 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
15542 result |= 16;
15543 }
15544 found_some_locale = 1;
15545 }
15546 return (found_some_locale ? result : 77);
15547 }
15548 _ACEOF
15549 if ac_fn_c_try_run "$LINENO"; then :
15550 gl_cv_func_mbrtowc_retval=yes
15551 else
15552 if test $? != 77; then
15553 gl_cv_func_mbrtowc_retval=no
15554 fi
15555
15556 fi
15557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15558 conftest.$ac_objext conftest.beam conftest.$ac_ext
15559 fi
15560
15561 fi
15562
15563 fi
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
15565 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
15566
15567
15568
15569
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
15571 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
15572 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
15573 $as_echo_n "(cached) " >&6
15574 else
15575
15576 case "$host_os" in
15577 # Guess no on Solaris 8 and 9.
15578 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
15579 # Guess yes otherwise.
15580 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
15581 esac
15582 if test $LOCALE_ZH_CN != none; then
15583 if test "$cross_compiling" = yes; then :
15584 :
15585 else
15586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15587 /* end confdefs.h. */
15588
15589 #include <locale.h>
15590 #include <string.h>
15591 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15592 <wchar.h>.
15593 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15594 included before <wchar.h>. */
15595 #include <stddef.h>
15596 #include <stdio.h>
15597 #include <time.h>
15598 #include <wchar.h>
15599 int main ()
15600 {
15601 /* This fails on Solaris 8 and 9. */
15602 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15603 {
15604 mbstate_t state;
15605 wchar_t wc;
15606
15607 memset (&state, '\0', sizeof (mbstate_t));
15608 if (mbrtowc (&wc, "", 1, &state) != 0)
15609 return 1;
15610 }
15611 return 0;
15612 }
15613 _ACEOF
15614 if ac_fn_c_try_run "$LINENO"; then :
15615 gl_cv_func_mbrtowc_nul_retval=yes
15616 else
15617 gl_cv_func_mbrtowc_nul_retval=no
15618 fi
15619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15620 conftest.$ac_objext conftest.beam conftest.$ac_ext
15621 fi
15622
15623 fi
15624
15625 fi
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
15627 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
15628
15629
15630
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
15632 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
15633 if test "${gl_cv_func_mbrtowc_empty_input+set}" = set; then :
15634 $as_echo_n "(cached) " >&6
15635 else
15636
15637 case "$host_os" in
15638 # Guess no on AIX and glibc systems.
15639 aix* | *-gnu*)
15640 gl_cv_func_mbrtowc_empty_input="guessing no" ;;
15641 *) gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
15642 esac
15643 if test "$cross_compiling" = yes; then :
15644 :
15645 else
15646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15647 /* end confdefs.h. */
15648
15649 #include <wchar.h>
15650 static wchar_t wc;
15651 static mbstate_t mbs;
15652 int
15653 main (void)
15654 {
15655 return mbrtowc (&wc, "", 0, &mbs) != (size_t) -2;
15656 }
15657 _ACEOF
15658 if ac_fn_c_try_run "$LINENO"; then :
15659 gl_cv_func_mbrtowc_empty_input=yes
15660 else
15661 gl_cv_func_mbrtowc_empty_input=no
15662 fi
15663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15664 conftest.$ac_objext conftest.beam conftest.$ac_ext
15665 fi
15666
15667
15668 fi
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
15670 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
15671
15672
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C locale is free of encoding errors" >&5
15674 $as_echo_n "checking whether the C locale is free of encoding errors... " >&6; }
15675 if test "${gl_cv_C_locale_sans_EILSEQ+set}" = set; then :
15676 $as_echo_n "(cached) " >&6
15677 else
15678
15679 gl_cv_C_locale_sans_EILSEQ="guessing no"
15680
15681 if test "$cross_compiling" = yes; then :
15682 :
15683 else
15684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15685 /* end confdefs.h. */
15686 #include <limits.h>
15687 #include <locale.h>
15688 #include <wchar.h>
15689
15690 int
15691 main ()
15692 {
15693
15694 int i;
15695 char *locale = setlocale (LC_ALL, "C");
15696 if (! locale)
15697 return 1;
15698 for (i = CHAR_MIN; i <= CHAR_MAX; i++)
15699 {
15700 char c = i;
15701 wchar_t wc;
15702 mbstate_t mbs = { 0, };
15703 size_t ss = mbrtowc (&wc, &c, 1, &mbs);
15704 if (1 < ss)
15705 return 1;
15706 }
15707 return 0;
15708
15709 ;
15710 return 0;
15711 }
15712 _ACEOF
15713 if ac_fn_c_try_run "$LINENO"; then :
15714 gl_cv_C_locale_sans_EILSEQ=yes
15715 else
15716 gl_cv_C_locale_sans_EILSEQ=no
15717 fi
15718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15719 conftest.$ac_objext conftest.beam conftest.$ac_ext
15720 fi
15721
15722 fi
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_C_locale_sans_EILSEQ" >&5
15724 $as_echo "$gl_cv_C_locale_sans_EILSEQ" >&6; }
15725
15726 case "$gl_cv_func_mbrtowc_null_arg1" in
15727 *yes) ;;
15728 *)
15729 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
15730
15731 REPLACE_MBRTOWC=1
15732 ;;
15733 esac
15734 case "$gl_cv_func_mbrtowc_null_arg2" in
15735 *yes) ;;
15736 *)
15737 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
15738
15739 REPLACE_MBRTOWC=1
15740 ;;
15741 esac
15742 case "$gl_cv_func_mbrtowc_retval" in
15743 *yes) ;;
15744 *)
15745 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
15746
15747 REPLACE_MBRTOWC=1
15748 ;;
15749 esac
15750 case "$gl_cv_func_mbrtowc_nul_retval" in
15751 *yes) ;;
15752 *)
15753 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
15754
15755 REPLACE_MBRTOWC=1
15756 ;;
15757 esac
15758 case "$gl_cv_func_mbrtowc_empty_input" in
15759 *yes) ;;
15760 *)
15761 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
15762
15763 REPLACE_MBRTOWC=1
15764 ;;
15765 esac
15766 case $gl_cv_C_locale_sans_EILSEQ in
15767 *yes) ;;
15768 *)
15769 $as_echo "#define C_LOCALE_MAYBE_EILSEQ 1" >>confdefs.h
15770
15771 REPLACE_MBRTOWC=1
15772 ;;
15773 esac
15774 fi
15775 fi
15776
15777 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
15778
15779
15780
15781
15782
15783
15784
15785
15786 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
15787
15788
15789 :
15790
15791 fi
15792
15793
15794
15795
15796
15797 GNULIB_MBRTOWC=1
15798
15799
15800
15801
15802
15803 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15819
15820
15821
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15823 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15824 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15825 $as_echo_n "(cached) " >&6
15826 else
15827
15828 case "$host_os" in
15829 # Guess no on AIX and OSF/1.
15830 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15831 # Guess yes otherwise.
15832 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15833 esac
15834 if test $LOCALE_JA != none; then
15835 if test "$cross_compiling" = yes; then :
15836 :
15837 else
15838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15839 /* end confdefs.h. */
15840
15841 #include <locale.h>
15842 #include <string.h>
15843 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15844 <wchar.h>.
15845 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15846 included before <wchar.h>. */
15847 #include <stddef.h>
15848 #include <stdio.h>
15849 #include <time.h>
15850 #include <wchar.h>
15851 int main ()
15852 {
15853 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15854 {
15855 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15856 mbstate_t state;
15857 wchar_t wc;
15858
15859 memset (&state, '\0', sizeof (mbstate_t));
15860 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15861 if (mbsinit (&state))
15862 return 1;
15863 }
15864 return 0;
15865 }
15866 _ACEOF
15867 if ac_fn_c_try_run "$LINENO"; then :
15868 gl_cv_func_mbrtowc_incomplete_state=yes
15869 else
15870 gl_cv_func_mbrtowc_incomplete_state=no
15871 fi
15872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15873 conftest.$ac_objext conftest.beam conftest.$ac_ext
15874 fi
15875
15876 fi
15877
15878 fi
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15880 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15881
15882
15883
15884
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15886 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15887 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
15888 $as_echo_n "(cached) " >&6
15889 else
15890
15891 case "$host_os" in
15892 # Guess no on Solaris 8.
15893 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15894 # Guess yes otherwise.
15895 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15896 esac
15897 if test $LOCALE_ZH_CN != none; then
15898 if test "$cross_compiling" = yes; then :
15899 :
15900 else
15901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15902 /* end confdefs.h. */
15903
15904 #include <locale.h>
15905 #include <stdlib.h>
15906 #include <string.h>
15907 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15908 <wchar.h>.
15909 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15910 included before <wchar.h>. */
15911 #include <stddef.h>
15912 #include <stdio.h>
15913 #include <time.h>
15914 #include <wchar.h>
15915 int main ()
15916 {
15917 /* This fails on Solaris 8:
15918 mbrtowc returns 2, and sets wc to 0x00F0.
15919 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15920 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15921 {
15922 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15923 mbstate_t state;
15924 wchar_t wc;
15925
15926 memset (&state, '\0', sizeof (mbstate_t));
15927 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15928 && mbtowc (&wc, input + 3, 6) == 4)
15929 return 1;
15930 }
15931 return 0;
15932 }
15933 _ACEOF
15934 if ac_fn_c_try_run "$LINENO"; then :
15935 gl_cv_func_mbrtowc_sanitycheck=yes
15936 else
15937 gl_cv_func_mbrtowc_sanitycheck=no
15938 fi
15939 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15940 conftest.$ac_objext conftest.beam conftest.$ac_ext
15941 fi
15942
15943 fi
15944
15945 fi
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15947 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15948
15949 REPLACE_MBSTATE_T=0
15950 case "$gl_cv_func_mbrtowc_incomplete_state" in
15951 *yes) ;;
15952 *) REPLACE_MBSTATE_T=1 ;;
15953 esac
15954 case "$gl_cv_func_mbrtowc_sanitycheck" in
15955 *yes) ;;
15956 *) REPLACE_MBSTATE_T=1 ;;
15957 esac
15958 else
15959 REPLACE_MBSTATE_T=1
15960 fi
15961
15962
15963
15964 if test $ac_cv_func_mbsinit = no; then
15965 HAVE_MBSINIT=0
15966 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
15967 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15968 <wchar.h>.
15969 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15970 included before <wchar.h>. */
15971 #include <stddef.h>
15972 #include <stdio.h>
15973 #include <time.h>
15974 #include <wchar.h>
15975
15976 "
15977 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
15978 ac_have_decl=1
15979 else
15980 ac_have_decl=0
15981 fi
15982
15983 cat >>confdefs.h <<_ACEOF
15984 #define HAVE_DECL_MBSINIT $ac_have_decl
15985 _ACEOF
15986
15987 if test $ac_cv_have_decl_mbsinit = yes; then
15988 REPLACE_MBSINIT=1
15989 fi
15990 else
15991 if test $REPLACE_MBSTATE_T = 1; then
15992 REPLACE_MBSINIT=1
15993 else
15994 case "$host_os" in
15995 mingw*) REPLACE_MBSINIT=1 ;;
15996 esac
15997 fi
15998 fi
15999
16000 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
16001
16002
16003
16004
16005
16006
16007
16008
16009 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
16010
16011
16012 :
16013
16014 fi
16015
16016
16017
16018
16019
16020 GNULIB_MBSINIT=1
16021
16022
16023
16024
16025
16026 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
16041
16042
16043
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
16045 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
16046 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
16047 $as_echo_n "(cached) " >&6
16048 else
16049
16050 case "$host_os" in
16051 # Guess no on AIX and OSF/1.
16052 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
16053 # Guess yes otherwise.
16054 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
16055 esac
16056 if test $LOCALE_JA != none; then
16057 if test "$cross_compiling" = yes; then :
16058 :
16059 else
16060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16061 /* end confdefs.h. */
16062
16063 #include <locale.h>
16064 #include <string.h>
16065 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16066 <wchar.h>.
16067 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16068 included before <wchar.h>. */
16069 #include <stddef.h>
16070 #include <stdio.h>
16071 #include <time.h>
16072 #include <wchar.h>
16073 int main ()
16074 {
16075 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
16076 {
16077 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
16078 mbstate_t state;
16079 wchar_t wc;
16080
16081 memset (&state, '\0', sizeof (mbstate_t));
16082 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
16083 if (mbsinit (&state))
16084 return 1;
16085 }
16086 return 0;
16087 }
16088 _ACEOF
16089 if ac_fn_c_try_run "$LINENO"; then :
16090 gl_cv_func_mbrtowc_incomplete_state=yes
16091 else
16092 gl_cv_func_mbrtowc_incomplete_state=no
16093 fi
16094 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16095 conftest.$ac_objext conftest.beam conftest.$ac_ext
16096 fi
16097
16098 fi
16099
16100 fi
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
16102 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
16103
16104
16105
16106
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
16108 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
16109 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
16110 $as_echo_n "(cached) " >&6
16111 else
16112
16113 case "$host_os" in
16114 # Guess no on Solaris 8.
16115 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
16116 # Guess yes otherwise.
16117 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
16118 esac
16119 if test $LOCALE_ZH_CN != none; then
16120 if test "$cross_compiling" = yes; then :
16121 :
16122 else
16123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16124 /* end confdefs.h. */
16125
16126 #include <locale.h>
16127 #include <stdlib.h>
16128 #include <string.h>
16129 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16130 <wchar.h>.
16131 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16132 included before <wchar.h>. */
16133 #include <stddef.h>
16134 #include <stdio.h>
16135 #include <time.h>
16136 #include <wchar.h>
16137 int main ()
16138 {
16139 /* This fails on Solaris 8:
16140 mbrtowc returns 2, and sets wc to 0x00F0.
16141 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
16142 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
16143 {
16144 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
16145 mbstate_t state;
16146 wchar_t wc;
16147
16148 memset (&state, '\0', sizeof (mbstate_t));
16149 if (mbrtowc (&wc, input + 3, 6, &state) != 4
16150 && mbtowc (&wc, input + 3, 6) == 4)
16151 return 1;
16152 }
16153 return 0;
16154 }
16155 _ACEOF
16156 if ac_fn_c_try_run "$LINENO"; then :
16157 gl_cv_func_mbrtowc_sanitycheck=yes
16158 else
16159 gl_cv_func_mbrtowc_sanitycheck=no
16160 fi
16161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16162 conftest.$ac_objext conftest.beam conftest.$ac_ext
16163 fi
16164
16165 fi
16166
16167 fi
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
16169 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
16170
16171 REPLACE_MBSTATE_T=0
16172 case "$gl_cv_func_mbrtowc_incomplete_state" in
16173 *yes) ;;
16174 *) REPLACE_MBSTATE_T=1 ;;
16175 esac
16176 case "$gl_cv_func_mbrtowc_sanitycheck" in
16177 *yes) ;;
16178 *) REPLACE_MBSTATE_T=1 ;;
16179 esac
16180 else
16181 REPLACE_MBSTATE_T=1
16182 fi
16183
16184
16185
16186 if test $ac_cv_func_mbsrtowcs = no; then
16187 HAVE_MBSRTOWCS=0
16188 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
16189 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16190 <wchar.h>.
16191 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16192 included before <wchar.h>. */
16193 #include <stddef.h>
16194 #include <stdio.h>
16195 #include <time.h>
16196 #include <wchar.h>
16197
16198 "
16199 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
16200 ac_have_decl=1
16201 else
16202 ac_have_decl=0
16203 fi
16204
16205 cat >>confdefs.h <<_ACEOF
16206 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
16207 _ACEOF
16208
16209 if test $ac_cv_have_decl_mbsrtowcs = yes; then
16210 REPLACE_MBSRTOWCS=1
16211 fi
16212 else
16213 if test $REPLACE_MBSTATE_T = 1; then
16214 REPLACE_MBSRTOWCS=1
16215 else
16216
16217
16218
16219
16220
16221
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
16223 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
16224 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
16225 $as_echo_n "(cached) " >&6
16226 else
16227
16228 case "$host_os" in
16229 # Guess no on HP-UX, Solaris, mingw.
16230 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
16231 # Guess yes otherwise.
16232 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
16233 esac
16234 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
16235 if test "$cross_compiling" = yes; then :
16236 :
16237 else
16238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16239 /* end confdefs.h. */
16240
16241 #include <locale.h>
16242 #include <string.h>
16243 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
16244 <wchar.h>.
16245 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16246 included before <wchar.h>. */
16247 #include <stddef.h>
16248 #include <stdio.h>
16249 #include <time.h>
16250 #include <wchar.h>
16251 int main ()
16252 {
16253 int result = 0;
16254 /* Test whether the function supports a NULL destination argument.
16255 This fails on native Windows. */
16256 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
16257 {
16258 const char input[] = "\337er";
16259 const char *src = input;
16260 mbstate_t state;
16261
16262 memset (&state, '\0', sizeof (mbstate_t));
16263 if (mbsrtowcs (NULL, &src, 1, &state) != 3
16264 || src != input)
16265 result |= 1;
16266 }
16267 /* Test whether the function works when started with a conversion state
16268 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
16269 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
16270 {
16271 const char input[] = "B\303\274\303\237er";
16272 mbstate_t state;
16273
16274 memset (&state, '\0', sizeof (mbstate_t));
16275 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
16276 if (!mbsinit (&state))
16277 {
16278 const char *src = input + 2;
16279 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
16280 result |= 2;
16281 }
16282 }
16283 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
16284 {
16285 const char input[] = "<\306\374\313\334\270\354>";
16286 mbstate_t state;
16287
16288 memset (&state, '\0', sizeof (mbstate_t));
16289 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
16290 if (!mbsinit (&state))
16291 {
16292 const char *src = input + 4;
16293 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
16294 result |= 4;
16295 }
16296 }
16297 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
16298 {
16299 const char input[] = "B\250\271\201\060\211\070er";
16300 mbstate_t state;
16301
16302 memset (&state, '\0', sizeof (mbstate_t));
16303 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
16304 if (!mbsinit (&state))
16305 {
16306 const char *src = input + 2;
16307 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
16308 result |= 8;
16309 }
16310 }
16311 return result;
16312 }
16313 _ACEOF
16314 if ac_fn_c_try_run "$LINENO"; then :
16315 gl_cv_func_mbsrtowcs_works=yes
16316 else
16317 gl_cv_func_mbsrtowcs_works=no
16318 fi
16319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16320 conftest.$ac_objext conftest.beam conftest.$ac_ext
16321 fi
16322
16323 fi
16324
16325 fi
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
16327 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
16328
16329 case "$gl_cv_func_mbsrtowcs_works" in
16330 *yes) ;;
16331 *) REPLACE_MBSRTOWCS=1 ;;
16332 esac
16333 fi
16334 fi
16335
16336 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
16337
16338
16339
16340
16341
16342
16343
16344
16345 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
16356
16357
16358 :
16359
16360 fi
16361
16362
16363
16364
16365
16366 GNULIB_MBSRTOWCS=1
16367
16368
16369
16370
16371
16372 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
16373
16374
16375
16376
16377 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
16378
16379
16380
16381
16382
16383
16384
16385
16386 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
16387
16388
16389 for ac_header in bp-sym.h
16390 do :
16391 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
16392 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
16393 cat >>confdefs.h <<_ACEOF
16394 #define HAVE_BP_SYM_H 1
16395 _ACEOF
16396
16397 fi
16398
16399 done
16400
16401
16402 fi
16403
16404
16405
16406
16407
16408 GNULIB_MEMCHR=1
16409
16410
16411
16412
16413
16414 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
16415
16416
16417
16418
16419
16420 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
16422 $as_echo_n "checking whether memmem works in linear time... " >&6; }
16423 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
16424 $as_echo_n "(cached) " >&6
16425 else
16426 if test "$cross_compiling" = yes; then :
16427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16428 /* end confdefs.h. */
16429
16430 #include <features.h>
16431 #ifdef __GNU_LIBRARY__
16432 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
16433 && !defined __UCLIBC__
16434 Lucky user
16435 #endif
16436 #endif
16437 #ifdef __CYGWIN__
16438 #include <cygwin/version.h>
16439 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
16440 Lucky user
16441 #endif
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_fast="guessing yes"
16448 else
16449 gl_cv_func_memmem_works_fast="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 <signal.h> /* for signal */
16459 #include <string.h> /* for memmem */
16460 #include <stdlib.h> /* for malloc */
16461 #include <unistd.h> /* for alarm */
16462 static void quit (int sig) { _exit (sig + 128); }
16463
16464 int
16465 main ()
16466 {
16467
16468 int result = 0;
16469 size_t m = 1000000;
16470 char *haystack = (char *) malloc (2 * m + 1);
16471 char *needle = (char *) malloc (m + 1);
16472 /* Failure to compile this test due to missing alarm is okay,
16473 since all such platforms (mingw) also lack memmem. */
16474 signal (SIGALRM, quit);
16475 alarm (5);
16476 /* Check for quadratic performance. */
16477 if (haystack && needle)
16478 {
16479 memset (haystack, 'A', 2 * m);
16480 haystack[2 * m] = 'B';
16481 memset (needle, 'A', m);
16482 needle[m] = 'B';
16483 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
16484 result |= 1;
16485 }
16486 return result;
16487
16488 ;
16489 return 0;
16490 }
16491 _ACEOF
16492 if ac_fn_c_try_run "$LINENO"; then :
16493 gl_cv_func_memmem_works_fast=yes
16494 else
16495 gl_cv_func_memmem_works_fast=no
16496 fi
16497 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16498 conftest.$ac_objext conftest.beam conftest.$ac_ext
16499 fi
16500
16501
16502 fi
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
16504 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
16505 case "$gl_cv_func_memmem_works_fast" in
16506 *yes) ;;
16507 *)
16508 REPLACE_MEMMEM=1
16509 ;;
16510 esac
16511 fi
16512
16513 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
16514
16515
16516
16517
16518
16519
16520
16521
16522 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
16523
16524 fi
16525
16526
16527
16528
16529 for ac_func in memmem
16530 do :
16531 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
16532 if test "x$ac_cv_func_memmem" = x""yes; then :
16533 cat >>confdefs.h <<_ACEOF
16534 #define HAVE_MEMMEM 1
16535 _ACEOF
16536
16537 fi
16538 done
16539
16540 if test $ac_cv_func_memmem = yes; then
16541 HAVE_MEMMEM=1
16542 else
16543 HAVE_MEMMEM=0
16544 fi
16545
16546 if test $ac_cv_have_decl_memmem = no; then
16547 HAVE_DECL_MEMMEM=0
16548 else
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
16550 $as_echo_n "checking whether memmem works... " >&6; }
16551 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
16552 $as_echo_n "(cached) " >&6
16553 else
16554 if test "$cross_compiling" = yes; then :
16555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16556 /* end confdefs.h. */
16557
16558 #ifdef __GNU_LIBRARY__
16559 #include <features.h>
16560 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
16561 || __GLIBC_MINOR__ > 12)) \
16562 || (__GLIBC__ > 2)) \
16563 || defined __UCLIBC__
16564 Lucky user
16565 #endif
16566 #elif defined __CYGWIN__
16567 #include <cygwin/version.h>
16568 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
16569 Lucky user
16570 #endif
16571 #else
16572 Lucky user
16573 #endif
16574
16575 _ACEOF
16576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16577 $EGREP "Lucky user" >/dev/null 2>&1; then :
16578 gl_cv_func_memmem_works_always="guessing yes"
16579 else
16580 gl_cv_func_memmem_works_always="guessing no"
16581 fi
16582 rm -f conftest*
16583
16584
16585 else
16586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16587 /* end confdefs.h. */
16588
16589 #include <string.h> /* for memmem */
16590 #define P "_EF_BF_BD"
16591 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
16592 #define NEEDLE P P P P P
16593
16594 int
16595 main ()
16596 {
16597
16598 int result = 0;
16599 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
16600 result |= 1;
16601 /* Check for empty needle behavior. */
16602 {
16603 const char *haystack = "AAA";
16604 if (memmem (haystack, 3, NULL, 0) != haystack)
16605 result |= 2;
16606 }
16607 return result;
16608
16609 ;
16610 return 0;
16611 }
16612 _ACEOF
16613 if ac_fn_c_try_run "$LINENO"; then :
16614 gl_cv_func_memmem_works_always=yes
16615 else
16616 gl_cv_func_memmem_works_always=no
16617 fi
16618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16619 conftest.$ac_objext conftest.beam conftest.$ac_ext
16620 fi
16621
16622
16623 fi
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
16625 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
16626 case "$gl_cv_func_memmem_works_always" in
16627 *yes) ;;
16628 *)
16629 REPLACE_MEMMEM=1
16630 ;;
16631 esac
16632 fi
16633 :
16634
16635 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
16636
16637
16638
16639
16640
16641
16642
16643
16644 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
16645
16646 fi
16647
16648
16649
16650
16651
16652 GNULIB_MEMMEM=1
16653
16654
16655
16656
16657
16658 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670 for ac_func in rawmemchr
16671 do :
16672 ac_fn_c_check_func "$LINENO" "rawmemchr" "ac_cv_func_rawmemchr"
16673 if test "x$ac_cv_func_rawmemchr" = x""yes; then :
16674 cat >>confdefs.h <<_ACEOF
16675 #define HAVE_RAWMEMCHR 1
16676 _ACEOF
16677
16678 fi
16679 done
16680
16681 if test $ac_cv_func_rawmemchr = no; then
16682 HAVE_RAWMEMCHR=0
16683 fi
16684
16685 if test $HAVE_RAWMEMCHR = 0; then
16686
16687
16688
16689
16690
16691
16692
16693
16694 gl_LIBOBJS="$gl_LIBOBJS rawmemchr.$ac_objext"
16695
16696 :
16697 fi
16698
16699
16700
16701
16702
16703 GNULIB_RAWMEMCHR=1
16704
16705
16706
16707
16708
16709 $as_echo "#define GNULIB_TEST_RAWMEMCHR 1" >>confdefs.h
16710
16711
16712
16713
16714
16715
16716 if test $ac_cv_func_readlink = no; then
16717 HAVE_READLINK=0
16718 else
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
16720 $as_echo_n "checking whether readlink signature is correct... " >&6; }
16721 if test "${gl_cv_decl_readlink_works+set}" = set; then :
16722 $as_echo_n "(cached) " >&6
16723 else
16724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16725 /* end confdefs.h. */
16726 #include <unistd.h>
16727 /* Cause compilation failure if original declaration has wrong type. */
16728 ssize_t readlink (const char *, char *, size_t);
16729 int
16730 main ()
16731 {
16732
16733 ;
16734 return 0;
16735 }
16736 _ACEOF
16737 if ac_fn_c_try_compile "$LINENO"; then :
16738 gl_cv_decl_readlink_works=yes
16739 else
16740 gl_cv_decl_readlink_works=no
16741 fi
16742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16743 fi
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
16745 $as_echo "$gl_cv_decl_readlink_works" >&6; }
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
16747 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
16748 if test "${gl_cv_func_readlink_works+set}" = set; then :
16749 $as_echo_n "(cached) " >&6
16750 else
16751 # We have readlink, so assume ln -s works.
16752 ln -s conftest.no-such conftest.link
16753 ln -s conftest.link conftest.lnk2
16754 if test "$cross_compiling" = yes; then :
16755 case "$host_os" in
16756 # Guess yes on glibc systems.
16757 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
16758 # If we don't know, assume the worst.
16759 *) gl_cv_func_readlink_works="guessing no" ;;
16760 esac
16761
16762 else
16763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16764 /* end confdefs.h. */
16765 #include <unistd.h>
16766
16767 int
16768 main ()
16769 {
16770 char buf[20];
16771 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
16772 ;
16773 return 0;
16774 }
16775 _ACEOF
16776 if ac_fn_c_try_run "$LINENO"; then :
16777 gl_cv_func_readlink_works=yes
16778 else
16779 gl_cv_func_readlink_works=no
16780 fi
16781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16782 conftest.$ac_objext conftest.beam conftest.$ac_ext
16783 fi
16784
16785 rm -f conftest.link conftest.lnk2
16786 fi
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
16788 $as_echo "$gl_cv_func_readlink_works" >&6; }
16789 case "$gl_cv_func_readlink_works" in
16790 *yes)
16791 if test "$gl_cv_decl_readlink_works" != yes; then
16792 REPLACE_READLINK=1
16793 fi
16794 ;;
16795 *)
16796
16797 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
16798
16799 REPLACE_READLINK=1
16800 ;;
16801 esac
16802 fi
16803
16804 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
16805
16806
16807
16808
16809
16810
16811
16812
16813 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16814
16815
16816 :
16817
16818 fi
16819
16820
16821
16822
16823
16824 GNULIB_READLINK=1
16825
16826
16827
16828
16829
16830 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
16831
16832
16833
16834
16835
16836
16837
16838
16839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
16840 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
16841 if test "${gl_cv_func_rename_slash_dst_works+set}" = set; then :
16842 $as_echo_n "(cached) " >&6
16843 else
16844 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
16845 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
16846 as_fn_error "cannot create temporary files" "$LINENO" 5
16847 # Assume that if we have lstat, we can also check symlinks.
16848 if test $ac_cv_func_lstat = yes; then
16849 ln -s conftest.f conftest.lnk
16850 fi
16851 if test "$cross_compiling" = yes; then :
16852 case "$host_os" in
16853 # Guess yes on glibc systems.
16854 *-gnu*) gl_cv_func_rename_slash_dst_works="guessing yes" ;;
16855 # If we don't know, assume the worst.
16856 *) gl_cv_func_rename_slash_dst_works="guessing no" ;;
16857 esac
16858
16859 else
16860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16861 /* end confdefs.h. */
16862
16863 # include <stdio.h>
16864 # include <stdlib.h>
16865
16866 int
16867 main ()
16868 {
16869 int result = 0;
16870 if (rename ("conftest.f1", "conftest.f2/") == 0)
16871 result |= 1;
16872 if (rename ("conftest.d1", "conftest.d2/") != 0)
16873 result |= 2;
16874 #if HAVE_LSTAT
16875 if (rename ("conftest.f", "conftest.lnk/") == 0)
16876 result |= 4;
16877 #endif
16878 return result;
16879
16880 ;
16881 return 0;
16882 }
16883 _ACEOF
16884 if ac_fn_c_try_run "$LINENO"; then :
16885 gl_cv_func_rename_slash_dst_works=yes
16886 else
16887 gl_cv_func_rename_slash_dst_works=no
16888 fi
16889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16890 conftest.$ac_objext conftest.beam conftest.$ac_ext
16891 fi
16892
16893 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
16894
16895 fi
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
16897 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
16898 case "$gl_cv_func_rename_slash_dst_works" in
16899 *yes) ;;
16900 *)
16901 REPLACE_RENAME=1
16902
16903 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
16904
16905 ;;
16906 esac
16907
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
16909 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
16910 if test "${gl_cv_func_rename_slash_src_works+set}" = set; then :
16911 $as_echo_n "(cached) " >&6
16912 else
16913 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
16914 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
16915 as_fn_error "cannot create temporary files" "$LINENO" 5
16916 # Assume that if we have lstat, we can also check symlinks.
16917 if test $ac_cv_func_lstat = yes; then
16918 ln -s conftest.f conftest.lnk
16919 fi
16920 if test "$cross_compiling" = yes; then :
16921 case "$host_os" in
16922 # Guess yes on glibc systems.
16923 *-gnu*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
16924 # If we don't know, assume the worst.
16925 *) gl_cv_func_rename_slash_src_works="guessing no" ;;
16926 esac
16927
16928 else
16929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16930 /* end confdefs.h. */
16931
16932 # include <stdio.h>
16933 # include <stdlib.h>
16934
16935 int
16936 main ()
16937 {
16938 int result = 0;
16939 if (rename ("conftest.f1/", "conftest.d3") == 0)
16940 result |= 1;
16941 if (rename ("conftest.d1/", "conftest.d2") != 0)
16942 result |= 2;
16943 #if HAVE_LSTAT
16944 if (rename ("conftest.lnk/", "conftest.f") == 0)
16945 result |= 4;
16946 #endif
16947 return result;
16948
16949 ;
16950 return 0;
16951 }
16952 _ACEOF
16953 if ac_fn_c_try_run "$LINENO"; then :
16954 gl_cv_func_rename_slash_src_works=yes
16955 else
16956 gl_cv_func_rename_slash_src_works=no
16957 fi
16958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16959 conftest.$ac_objext conftest.beam conftest.$ac_ext
16960 fi
16961
16962 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
16963
16964 fi
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
16966 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
16967 case "$gl_cv_func_rename_slash_src_works" in
16968 *yes) ;;
16969 *)
16970 REPLACE_RENAME=1
16971
16972 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
16973
16974 ;;
16975 esac
16976
16977
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
16979 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
16980 if test "${gl_cv_func_rename_link_works+set}" = set; then :
16981 $as_echo_n "(cached) " >&6
16982 else
16983 if test $ac_cv_func_link = yes; then
16984 rm -rf conftest.f conftest.f1
16985 if touch conftest.f && ln conftest.f conftest.f1 &&
16986 set x `ls -i conftest.f conftest.f1` && test "" = ""; then
16987 if test "$cross_compiling" = yes; then :
16988 case "$host_os" in
16989 # Guess yes on glibc systems.
16990 *-gnu*) gl_cv_func_rename_link_works="guessing yes" ;;
16991 # If we don't know, assume the worst.
16992 *) gl_cv_func_rename_link_works="guessing no" ;;
16993 esac
16994
16995 else
16996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16997 /* end confdefs.h. */
16998
16999 # include <stdio.h>
17000 # include <stdlib.h>
17001 # include <unistd.h>
17002
17003 int
17004 main ()
17005 {
17006 int result = 0;
17007 if (rename ("conftest.f", "conftest.f1"))
17008 result |= 1;
17009 if (unlink ("conftest.f1"))
17010 result |= 2;
17011 if (rename ("conftest.f", "conftest.f"))
17012 result |= 4;
17013 if (rename ("conftest.f1", "conftest.f1") == 0)
17014 result |= 8;
17015 return result;
17016
17017 ;
17018 return 0;
17019 }
17020 _ACEOF
17021 if ac_fn_c_try_run "$LINENO"; then :
17022 gl_cv_func_rename_link_works=yes
17023 else
17024 gl_cv_func_rename_link_works=no
17025 fi
17026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17027 conftest.$ac_objext conftest.beam conftest.$ac_ext
17028 fi
17029
17030 else
17031 gl_cv_func_rename_link_works="guessing no"
17032 fi
17033 rm -rf conftest.f conftest.f1
17034 else
17035 gl_cv_func_rename_link_works=yes
17036 fi
17037
17038 fi
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
17040 $as_echo "$gl_cv_func_rename_link_works" >&6; }
17041 case "$gl_cv_func_rename_link_works" in
17042 *yes) ;;
17043 *)
17044 REPLACE_RENAME=1
17045
17046 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
17047
17048 ;;
17049 esac
17050
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
17052 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
17053 if test "${gl_cv_func_rename_dest_works+set}" = set; then :
17054 $as_echo_n "(cached) " >&6
17055 else
17056 rm -rf conftest.f conftest.d1 conftest.d2
17057 touch conftest.f && mkdir conftest.d1 conftest.d2 ||
17058 as_fn_error "cannot create temporary files" "$LINENO" 5
17059 if test "$cross_compiling" = yes; then :
17060 case "$host_os" in
17061 # Guess yes on glibc systems.
17062 *-gnu*) gl_cv_func_rename_dest_works="guessing yes" ;;
17063 # If we don't know, assume the worst.
17064 *) gl_cv_func_rename_dest_works="guessing no" ;;
17065 esac
17066
17067 else
17068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17069 /* end confdefs.h. */
17070
17071 # include <stdio.h>
17072 # include <stdlib.h>
17073
17074 int
17075 main ()
17076 {
17077 int result = 0;
17078 if (rename ("conftest.d1", "conftest.d2") != 0)
17079 result |= 1;
17080 if (rename ("conftest.d2", "conftest.f") == 0)
17081 result |= 2;
17082 return result;
17083
17084 ;
17085 return 0;
17086 }
17087 _ACEOF
17088 if ac_fn_c_try_run "$LINENO"; then :
17089 gl_cv_func_rename_dest_works=yes
17090 else
17091 gl_cv_func_rename_dest_works=no
17092 fi
17093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17094 conftest.$ac_objext conftest.beam conftest.$ac_ext
17095 fi
17096
17097 rm -rf conftest.f conftest.d1 conftest.d2
17098
17099 fi
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
17101 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
17102 case "$gl_cv_func_rename_dest_works" in
17103 *yes) ;;
17104 *)
17105 REPLACE_RENAME=1
17106
17107 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
17108
17109 ;;
17110 esac
17111
17112 if test $REPLACE_RENAME = 1; then
17113
17114
17115
17116
17117
17118
17119
17120
17121 gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
17122
17123 fi
17124
17125
17126
17127
17128
17129 GNULIB_RENAME=1
17130
17131
17132
17133
17134
17135 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
17136
17137
17138
17139
17140
17141
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
17143 $as_echo_n "checking whether rmdir works... " >&6; }
17144 if test "${gl_cv_func_rmdir_works+set}" = set; then :
17145 $as_echo_n "(cached) " >&6
17146 else
17147 mkdir conftest.dir
17148 touch conftest.file
17149 if test "$cross_compiling" = yes; then :
17150 case "$host_os" in
17151 # Guess yes on glibc systems.
17152 *-gnu*) gl_cv_func_rmdir_works="guessing yes" ;;
17153 # If we don't know, assume the worst.
17154 *) gl_cv_func_rmdir_works="guessing no" ;;
17155 esac
17156
17157 else
17158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17159 /* end confdefs.h. */
17160 #include <stdio.h>
17161 #include <errno.h>
17162 #if HAVE_UNISTD_H
17163 # include <unistd.h>
17164 #else /* on Windows with MSVC */
17165 # include <direct.h>
17166 #endif
17167
17168 int
17169 main ()
17170 {
17171 int result = 0;
17172 if (!rmdir ("conftest.file/"))
17173 result |= 1;
17174 else if (errno != ENOTDIR)
17175 result |= 2;
17176 if (!rmdir ("conftest.dir/./"))
17177 result |= 4;
17178 return result;
17179
17180 ;
17181 return 0;
17182 }
17183 _ACEOF
17184 if ac_fn_c_try_run "$LINENO"; then :
17185 gl_cv_func_rmdir_works=yes
17186 else
17187 gl_cv_func_rmdir_works=no
17188 fi
17189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17190 conftest.$ac_objext conftest.beam conftest.$ac_ext
17191 fi
17192
17193 rm -rf conftest.dir conftest.file
17194 fi
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
17196 $as_echo "$gl_cv_func_rmdir_works" >&6; }
17197 case "$gl_cv_func_rmdir_works" in
17198 *yes) ;;
17199 *)
17200 REPLACE_RMDIR=1
17201 ;;
17202 esac
17203
17204 if test $REPLACE_RMDIR = 1; then
17205
17206
17207
17208
17209
17210
17211
17212
17213 gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
17214
17215 fi
17216
17217
17218
17219
17220
17221 GNULIB_RMDIR=1
17222
17223
17224
17225
17226
17227 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
17228
17229
17230
17231
17232
17233 if test $ac_cv_func_setenv = no; then
17234 HAVE_SETENV=0
17235 else
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setenv validates arguments" >&5
17237 $as_echo_n "checking whether setenv validates arguments... " >&6; }
17238 if test "${gl_cv_func_setenv_works+set}" = set; then :
17239 $as_echo_n "(cached) " >&6
17240 else
17241 if test "$cross_compiling" = yes; then :
17242 case "$host_os" in
17243 # Guess yes on glibc systems.
17244 *-gnu*) gl_cv_func_setenv_works="guessing yes" ;;
17245 # If we don't know, assume the worst.
17246 *) gl_cv_func_setenv_works="guessing no" ;;
17247 esac
17248
17249 else
17250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17251 /* end confdefs.h. */
17252
17253 #include <stdlib.h>
17254 #include <errno.h>
17255 #include <string.h>
17256
17257 int
17258 main ()
17259 {
17260
17261 int result = 0;
17262 {
17263 if (setenv ("", "", 0) != -1)
17264 result |= 1;
17265 else if (errno != EINVAL)
17266 result |= 2;
17267 }
17268 {
17269 if (setenv ("a", "=", 1) != 0)
17270 result |= 4;
17271 else if (strcmp (getenv ("a"), "=") != 0)
17272 result |= 8;
17273 }
17274 return result;
17275
17276 ;
17277 return 0;
17278 }
17279 _ACEOF
17280 if ac_fn_c_try_run "$LINENO"; then :
17281 gl_cv_func_setenv_works=yes
17282 else
17283 gl_cv_func_setenv_works=no
17284 fi
17285 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17286 conftest.$ac_objext conftest.beam conftest.$ac_ext
17287 fi
17288
17289 fi
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_setenv_works" >&5
17291 $as_echo "$gl_cv_func_setenv_works" >&6; }
17292 case "$gl_cv_func_setenv_works" in
17293 *yes) ;;
17294 *)
17295 REPLACE_SETENV=1
17296 ;;
17297 esac
17298 fi
17299
17300 if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
17301
17302
17303
17304
17305
17306
17307
17308
17309 gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
17310
17311 fi
17312
17313
17314
17315
17316
17317 GNULIB_SETENV=1
17318
17319
17320
17321
17322
17323 $as_echo "#define GNULIB_TEST_SETENV 1" >>confdefs.h
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338 if test $gl_cv_have_include_next = yes; then
17339 gl_cv_next_signal_h='<'signal.h'>'
17340 else
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
17342 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
17343 if test "${gl_cv_next_signal_h+set}" = set; then :
17344 $as_echo_n "(cached) " >&6
17345 else
17346
17347
17348
17349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17350 /* end confdefs.h. */
17351 #include <signal.h>
17352 _ACEOF
17353 case "$host_os" in
17354 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17355 *) gl_absname_cpp="$ac_cpp" ;;
17356 esac
17357
17358 case "$host_os" in
17359 mingw*)
17360 gl_dirsep_regex='[/\\]'
17361 ;;
17362 *)
17363 gl_dirsep_regex='\/'
17364 ;;
17365 esac
17366 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17367 gl_header_literal_regex=`echo 'signal.h' \
17368 | sed -e "$gl_make_literal_regex_sed"`
17369 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17370 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17371 s|^/[^/]|//&|
17372 p
17373 q
17374 }'
17375
17376 gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17377 sed -n "$gl_absolute_header_sed"`
17378
17379 gl_header=$gl_cv_absolute_signal_h
17380 gl_cv_next_signal_h='"'$gl_header'"'
17381
17382
17383 fi
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
17385 $as_echo "$gl_cv_next_signal_h" >&6; }
17386 fi
17387 NEXT_SIGNAL_H=$gl_cv_next_signal_h
17388
17389 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17390 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17391 gl_next_as_first_directive='<'signal.h'>'
17392 else
17393 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17394 gl_next_as_first_directive=$gl_cv_next_signal_h
17395 fi
17396 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
17397
17398
17399
17400
17401
17402 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
17403 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
17404 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
17405 #include <signal.h>
17406
17407 "
17408 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
17409
17410 else
17411 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
17412 fi
17413
17414
17415
17416
17417
17418
17419
17420 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
17421 #include <signal.h>
17422
17423 "
17424 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
17425
17426 else
17427 HAVE_SIGHANDLER_T=0
17428 fi
17429
17430
17431
17432 for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do
17433 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17435 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17436 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17437 $as_echo_n "(cached) " >&6
17438 else
17439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17440 /* end confdefs.h. */
17441 #include <signal.h>
17442
17443 int
17444 main ()
17445 {
17446 #undef $gl_func
17447 (void) $gl_func;
17448 ;
17449 return 0;
17450 }
17451 _ACEOF
17452 if ac_fn_c_try_compile "$LINENO"; then :
17453 eval "$as_gl_Symbol=yes"
17454 else
17455 eval "$as_gl_Symbol=no"
17456 fi
17457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17458 fi
17459 eval ac_res=\$$as_gl_Symbol
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17461 $as_echo "$ac_res" >&6; }
17462 eval as_val=\$$as_gl_Symbol
17463 if test "x$as_val" = x""yes; then :
17464 cat >>confdefs.h <<_ACEOF
17465 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17466 _ACEOF
17467
17468 eval ac_cv_have_decl_$gl_func=yes
17469 fi
17470 done
17471
17472
17473
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
17475 $as_echo_n "checking for ssize_t... " >&6; }
17476 if test "${gt_cv_ssize_t+set}" = set; then :
17477 $as_echo_n "(cached) " >&6
17478 else
17479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17480 /* end confdefs.h. */
17481 #include <sys/types.h>
17482 int
17483 main ()
17484 {
17485 int x = sizeof (ssize_t *) + sizeof (ssize_t);
17486 return !x;
17487 ;
17488 return 0;
17489 }
17490 _ACEOF
17491 if ac_fn_c_try_compile "$LINENO"; then :
17492 gt_cv_ssize_t=yes
17493 else
17494 gt_cv_ssize_t=no
17495 fi
17496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17497 fi
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
17499 $as_echo "$gt_cv_ssize_t" >&6; }
17500 if test $gt_cv_ssize_t = no; then
17501
17502 $as_echo "#define ssize_t int" >>confdefs.h
17503
17504 fi
17505
17506
17507
17508
17509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
17510 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
17511 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
17512 $as_echo_n "(cached) " >&6
17513 else
17514 if test "$cross_compiling" = yes; then :
17515 case $host_os in
17516 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
17517 *) gl_cv_func_stat_dir_slash="guessing yes";;
17518 esac
17519 else
17520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17521 /* end confdefs.h. */
17522 #include <sys/stat.h>
17523
17524 int
17525 main ()
17526 {
17527 struct stat st; return stat (".", &st) != stat ("./", &st);
17528 ;
17529 return 0;
17530 }
17531 _ACEOF
17532 if ac_fn_c_try_run "$LINENO"; then :
17533 gl_cv_func_stat_dir_slash=yes
17534 else
17535 gl_cv_func_stat_dir_slash=no
17536 fi
17537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17538 conftest.$ac_objext conftest.beam conftest.$ac_ext
17539 fi
17540
17541 fi
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
17543 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
17545 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
17546 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
17547 $as_echo_n "(cached) " >&6
17548 else
17549 touch conftest.tmp
17550 # Assume that if we have lstat, we can also check symlinks.
17551 if test $ac_cv_func_lstat = yes; then
17552 ln -s conftest.tmp conftest.lnk
17553 fi
17554 if test "$cross_compiling" = yes; then :
17555 case "$host_os" in
17556 # Guess yes on glibc systems.
17557 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
17558 # If we don't know, assume the worst.
17559 *) gl_cv_func_stat_file_slash="guessing no" ;;
17560 esac
17561
17562 else
17563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17564 /* end confdefs.h. */
17565 #include <sys/stat.h>
17566
17567 int
17568 main ()
17569 {
17570 int result = 0;
17571 struct stat st;
17572 if (!stat ("conftest.tmp/", &st))
17573 result |= 1;
17574 #if HAVE_LSTAT
17575 if (!stat ("conftest.lnk/", &st))
17576 result |= 2;
17577 #endif
17578 return result;
17579
17580 ;
17581 return 0;
17582 }
17583 _ACEOF
17584 if ac_fn_c_try_run "$LINENO"; then :
17585 gl_cv_func_stat_file_slash=yes
17586 else
17587 gl_cv_func_stat_file_slash=no
17588 fi
17589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17590 conftest.$ac_objext conftest.beam conftest.$ac_ext
17591 fi
17592
17593 rm -f conftest.tmp conftest.lnk
17594 fi
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
17596 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
17597 case $gl_cv_func_stat_dir_slash in
17598 *no) REPLACE_STAT=1
17599
17600 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
17601 ;;
17602 esac
17603 case $gl_cv_func_stat_file_slash in
17604 *no) REPLACE_STAT=1
17605
17606 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
17607 ;;
17608 esac
17609
17610 if test $REPLACE_STAT = 1; then
17611
17612
17613
17614
17615
17616
17617
17618
17619 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
17620
17621 :
17622 fi
17623
17624
17625
17626
17627
17628 GNULIB_STAT=1
17629
17630
17631
17632
17633
17634 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
17635
17636
17637
17638
17639
17640
17641 # Define two additional variables used in the Makefile substitution.
17642
17643 if test "$ac_cv_header_stdbool_h" = yes; then
17644 STDBOOL_H=''
17645 else
17646 STDBOOL_H='stdbool.h'
17647 fi
17648
17649 if test -n "$STDBOOL_H"; then
17650 GL_GENERATE_STDBOOL_H_TRUE=
17651 GL_GENERATE_STDBOOL_H_FALSE='#'
17652 else
17653 GL_GENERATE_STDBOOL_H_TRUE='#'
17654 GL_GENERATE_STDBOOL_H_FALSE=
17655 fi
17656
17657
17658 if test "$ac_cv_type__Bool" = yes; then
17659 HAVE__BOOL=1
17660 else
17661 HAVE__BOOL=0
17662 fi
17663
17664
17665
17666
17667
17668 STDDEF_H=
17669 ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
17670
17671 "
17672 if test "x$ac_cv_type_max_align_t" = x""yes; then :
17673
17674 else
17675 HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
17676 fi
17677
17678 if test $gt_cv_c_wchar_t = no; then
17679 HAVE_WCHAR_T=0
17680 STDDEF_H=stddef.h
17681 fi
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
17683 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
17684 if test "${gl_cv_decl_null_works+set}" = set; then :
17685 $as_echo_n "(cached) " >&6
17686 else
17687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17688 /* end confdefs.h. */
17689 #include <stddef.h>
17690 int test[2 * (sizeof NULL == sizeof (void *)) -1];
17691
17692 int
17693 main ()
17694 {
17695
17696 ;
17697 return 0;
17698 }
17699 _ACEOF
17700 if ac_fn_c_try_compile "$LINENO"; then :
17701 gl_cv_decl_null_works=yes
17702 else
17703 gl_cv_decl_null_works=no
17704 fi
17705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17706 fi
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
17708 $as_echo "$gl_cv_decl_null_works" >&6; }
17709 if test $gl_cv_decl_null_works = no; then
17710 REPLACE_NULL=1
17711 STDDEF_H=stddef.h
17712 fi
17713
17714 if test -n "$STDDEF_H"; then
17715 GL_GENERATE_STDDEF_H_TRUE=
17716 GL_GENERATE_STDDEF_H_FALSE='#'
17717 else
17718 GL_GENERATE_STDDEF_H_TRUE='#'
17719 GL_GENERATE_STDDEF_H_FALSE=
17720 fi
17721
17722 if test -n "$STDDEF_H"; then
17723
17724
17725
17726
17727
17728
17729
17730
17731 if test $gl_cv_have_include_next = yes; then
17732 gl_cv_next_stddef_h='<'stddef.h'>'
17733 else
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
17735 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
17736 if test "${gl_cv_next_stddef_h+set}" = set; then :
17737 $as_echo_n "(cached) " >&6
17738 else
17739
17740
17741
17742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17743 /* end confdefs.h. */
17744 #include <stddef.h>
17745 _ACEOF
17746 case "$host_os" in
17747 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17748 *) gl_absname_cpp="$ac_cpp" ;;
17749 esac
17750
17751 case "$host_os" in
17752 mingw*)
17753 gl_dirsep_regex='[/\\]'
17754 ;;
17755 *)
17756 gl_dirsep_regex='\/'
17757 ;;
17758 esac
17759 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17760 gl_header_literal_regex=`echo 'stddef.h' \
17761 | sed -e "$gl_make_literal_regex_sed"`
17762 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17763 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17764 s|^/[^/]|//&|
17765 p
17766 q
17767 }'
17768
17769 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17770 sed -n "$gl_absolute_header_sed"`
17771
17772 gl_header=$gl_cv_absolute_stddef_h
17773 gl_cv_next_stddef_h='"'$gl_header'"'
17774
17775
17776 fi
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
17778 $as_echo "$gl_cv_next_stddef_h" >&6; }
17779 fi
17780 NEXT_STDDEF_H=$gl_cv_next_stddef_h
17781
17782 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17783 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17784 gl_next_as_first_directive='<'stddef.h'>'
17785 else
17786 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17787 gl_next_as_first_directive=$gl_cv_next_stddef_h
17788 fi
17789 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
17790
17791
17792
17793
17794 fi
17795
17796
17797
17798
17799 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810 if test $gl_cv_have_include_next = yes; then
17811 gl_cv_next_stdio_h='<'stdio.h'>'
17812 else
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
17814 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
17815 if test "${gl_cv_next_stdio_h+set}" = set; then :
17816 $as_echo_n "(cached) " >&6
17817 else
17818
17819
17820
17821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17822 /* end confdefs.h. */
17823 #include <stdio.h>
17824 _ACEOF
17825 case "$host_os" in
17826 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17827 *) gl_absname_cpp="$ac_cpp" ;;
17828 esac
17829
17830 case "$host_os" in
17831 mingw*)
17832 gl_dirsep_regex='[/\\]'
17833 ;;
17834 *)
17835 gl_dirsep_regex='\/'
17836 ;;
17837 esac
17838 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17839 gl_header_literal_regex=`echo 'stdio.h' \
17840 | sed -e "$gl_make_literal_regex_sed"`
17841 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17842 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17843 s|^/[^/]|//&|
17844 p
17845 q
17846 }'
17847
17848 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17849 sed -n "$gl_absolute_header_sed"`
17850
17851 gl_header=$gl_cv_absolute_stdio_h
17852 gl_cv_next_stdio_h='"'$gl_header'"'
17853
17854
17855 fi
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
17857 $as_echo "$gl_cv_next_stdio_h" >&6; }
17858 fi
17859 NEXT_STDIO_H=$gl_cv_next_stdio_h
17860
17861 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17862 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17863 gl_next_as_first_directive='<'stdio.h'>'
17864 else
17865 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17866 gl_next_as_first_directive=$gl_cv_next_stdio_h
17867 fi
17868 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
17869
17870
17871
17872
17873
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
17875 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
17876 if test "${gl_cv_func_printf_attribute_flavor+set}" = set; then :
17877 $as_echo_n "(cached) " >&6
17878 else
17879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17880 /* end confdefs.h. */
17881
17882 #define __STDC_FORMAT_MACROS 1
17883 #include <stdio.h>
17884 #include <inttypes.h>
17885 /* For non-mingw systems, compilation will trivially succeed.
17886 For mingw, compilation will succeed for older mingw (system
17887 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
17888 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
17889 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
17890 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
17891 #endif
17892
17893 int
17894 main ()
17895 {
17896
17897 ;
17898 return 0;
17899 }
17900 _ACEOF
17901 if ac_fn_c_try_compile "$LINENO"; then :
17902 gl_cv_func_printf_attribute_flavor=system
17903 else
17904 gl_cv_func_printf_attribute_flavor=gnu
17905 fi
17906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17907 fi
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
17909 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
17910 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
17911
17912 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
17913
17914 fi
17915
17916 GNULIB_FSCANF=1
17917
17918
17919 cat >>confdefs.h <<_ACEOF
17920 #define GNULIB_FSCANF 1
17921 _ACEOF
17922
17923
17924 GNULIB_SCANF=1
17925
17926
17927 cat >>confdefs.h <<_ACEOF
17928 #define GNULIB_SCANF 1
17929 _ACEOF
17930
17931
17932 GNULIB_FGETC=1
17933 GNULIB_GETC=1
17934 GNULIB_GETCHAR=1
17935 GNULIB_FGETS=1
17936 GNULIB_FREAD=1
17937
17938
17939 GNULIB_FPRINTF=1
17940 GNULIB_PRINTF=1
17941 GNULIB_VFPRINTF=1
17942 GNULIB_VPRINTF=1
17943 GNULIB_FPUTC=1
17944 GNULIB_PUTC=1
17945 GNULIB_PUTCHAR=1
17946 GNULIB_FPUTS=1
17947 GNULIB_PUTS=1
17948 GNULIB_FWRITE=1
17949
17950
17951
17952
17953 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
17954 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17956 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17957 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17958 $as_echo_n "(cached) " >&6
17959 else
17960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17961 /* end confdefs.h. */
17962 #include <stdio.h>
17963
17964 int
17965 main ()
17966 {
17967 #undef $gl_func
17968 (void) $gl_func;
17969 ;
17970 return 0;
17971 }
17972 _ACEOF
17973 if ac_fn_c_try_compile "$LINENO"; then :
17974 eval "$as_gl_Symbol=yes"
17975 else
17976 eval "$as_gl_Symbol=no"
17977 fi
17978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17979 fi
17980 eval ac_res=\$$as_gl_Symbol
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17982 $as_echo "$ac_res" >&6; }
17983 eval as_val=\$$as_gl_Symbol
17984 if test "x$as_val" = x""yes; then :
17985 cat >>confdefs.h <<_ACEOF
17986 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17987 _ACEOF
17988
17989 eval ac_cv_have_decl_$gl_func=yes
17990 fi
17991 done
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004 if test $gl_cv_have_include_next = yes; then
18005 gl_cv_next_stdlib_h='<'stdlib.h'>'
18006 else
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
18008 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
18009 if test "${gl_cv_next_stdlib_h+set}" = set; then :
18010 $as_echo_n "(cached) " >&6
18011 else
18012
18013
18014
18015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18016 /* end confdefs.h. */
18017 #include <stdlib.h>
18018 _ACEOF
18019 case "$host_os" in
18020 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18021 *) gl_absname_cpp="$ac_cpp" ;;
18022 esac
18023
18024 case "$host_os" in
18025 mingw*)
18026 gl_dirsep_regex='[/\\]'
18027 ;;
18028 *)
18029 gl_dirsep_regex='\/'
18030 ;;
18031 esac
18032 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18033 gl_header_literal_regex=`echo 'stdlib.h' \
18034 | sed -e "$gl_make_literal_regex_sed"`
18035 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18036 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18037 s|^/[^/]|//&|
18038 p
18039 q
18040 }'
18041
18042 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18043 sed -n "$gl_absolute_header_sed"`
18044
18045 gl_header=$gl_cv_absolute_stdlib_h
18046 gl_cv_next_stdlib_h='"'$gl_header'"'
18047
18048
18049 fi
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
18051 $as_echo "$gl_cv_next_stdlib_h" >&6; }
18052 fi
18053 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
18054
18055 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18056 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18057 gl_next_as_first_directive='<'stdlib.h'>'
18058 else
18059 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18060 gl_next_as_first_directive=$gl_cv_next_stdlib_h
18061 fi
18062 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
18063
18064
18065
18066
18067
18068
18069 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
18070 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18072 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18073 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
18074 $as_echo_n "(cached) " >&6
18075 else
18076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18077 /* end confdefs.h. */
18078 #include <stdlib.h>
18079 #if HAVE_SYS_LOADAVG_H
18080 # include <sys/loadavg.h>
18081 #endif
18082 #if HAVE_RANDOM_H
18083 # include <random.h>
18084 #endif
18085
18086 int
18087 main ()
18088 {
18089 #undef $gl_func
18090 (void) $gl_func;
18091 ;
18092 return 0;
18093 }
18094 _ACEOF
18095 if ac_fn_c_try_compile "$LINENO"; then :
18096 eval "$as_gl_Symbol=yes"
18097 else
18098 eval "$as_gl_Symbol=no"
18099 fi
18100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18101 fi
18102 eval ac_res=\$$as_gl_Symbol
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18104 $as_echo "$ac_res" >&6; }
18105 eval as_val=\$$as_gl_Symbol
18106 if test "x$as_val" = x""yes; then :
18107 cat >>confdefs.h <<_ACEOF
18108 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18109 _ACEOF
18110
18111 eval ac_cv_have_decl_$gl_func=yes
18112 fi
18113 done
18114
18115
18116
18117
18118
18119
18120 for ac_func in strchrnul
18121 do :
18122 ac_fn_c_check_func "$LINENO" "strchrnul" "ac_cv_func_strchrnul"
18123 if test "x$ac_cv_func_strchrnul" = x""yes; then :
18124 cat >>confdefs.h <<_ACEOF
18125 #define HAVE_STRCHRNUL 1
18126 _ACEOF
18127
18128 fi
18129 done
18130
18131 if test $ac_cv_func_strchrnul = no; then
18132 HAVE_STRCHRNUL=0
18133 else
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strchrnul works" >&5
18135 $as_echo_n "checking whether strchrnul works... " >&6; }
18136 if test "${gl_cv_func_strchrnul_works+set}" = set; then :
18137 $as_echo_n "(cached) " >&6
18138 else
18139 if test "$cross_compiling" = yes; then :
18140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18141 /* end confdefs.h. */
18142
18143 #if defined __CYGWIN__
18144 #include <cygwin/version.h>
18145 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 9)
18146 Lucky user
18147 #endif
18148 #else
18149 Lucky user
18150 #endif
18151
18152 _ACEOF
18153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18154 $EGREP "Lucky user" >/dev/null 2>&1; then :
18155 gl_cv_func_strchrnul_works="guessing yes"
18156 else
18157 gl_cv_func_strchrnul_works="guessing no"
18158 fi
18159 rm -f conftest*
18160
18161
18162 else
18163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18164 /* end confdefs.h. */
18165
18166 #include <string.h> /* for strchrnul */
18167
18168 int
18169 main ()
18170 {
18171 const char *buf = "a";
18172 return strchrnul (buf, 'b') != buf + 1;
18173
18174 ;
18175 return 0;
18176 }
18177 _ACEOF
18178 if ac_fn_c_try_run "$LINENO"; then :
18179 gl_cv_func_strchrnul_works=yes
18180 else
18181 gl_cv_func_strchrnul_works=no
18182 fi
18183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18184 conftest.$ac_objext conftest.beam conftest.$ac_ext
18185 fi
18186
18187
18188 fi
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strchrnul_works" >&5
18190 $as_echo "$gl_cv_func_strchrnul_works" >&6; }
18191 case "$gl_cv_func_strchrnul_works" in
18192 *yes) ;;
18193 *) REPLACE_STRCHRNUL=1 ;;
18194 esac
18195 fi
18196
18197 if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then
18198
18199
18200
18201
18202
18203
18204
18205
18206 gl_LIBOBJS="$gl_LIBOBJS strchrnul.$ac_objext"
18207
18208 :
18209 fi
18210
18211
18212
18213
18214
18215 GNULIB_STRCHRNUL=1
18216
18217
18218
18219
18220
18221 $as_echo "#define GNULIB_TEST_STRCHRNUL 1" >>confdefs.h
18222
18223
18224
18225
18226
18227
18228
18229
18230 if test $REPLACE_STRSTR = 0; then
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
18232 $as_echo_n "checking whether strstr works in linear time... " >&6; }
18233 if test "${gl_cv_func_strstr_linear+set}" = set; then :
18234 $as_echo_n "(cached) " >&6
18235 else
18236 if test "$cross_compiling" = yes; then :
18237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18238 /* end confdefs.h. */
18239
18240 #include <features.h>
18241 #ifdef __GNU_LIBRARY__
18242 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
18243 && !(defined __i386__ || defined __x86_64__) \
18244 && !defined __UCLIBC__
18245 Lucky user
18246 #endif
18247 #endif
18248 #ifdef __CYGWIN__
18249 #include <cygwin/version.h>
18250 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
18251 Lucky user
18252 #endif
18253 #endif
18254
18255 _ACEOF
18256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18257 $EGREP "Lucky user" >/dev/null 2>&1; then :
18258 gl_cv_func_strstr_linear="guessing yes"
18259 else
18260 gl_cv_func_strstr_linear="guessing no"
18261 fi
18262 rm -f conftest*
18263
18264
18265 else
18266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18267 /* end confdefs.h. */
18268
18269 #ifdef __MVS__
18270 /* z/OS does not deliver signals while strstr() is running (thanks to
18271 restrictions on its LE runtime), which prevents us from limiting the
18272 running time of this test. */
18273 # error "This test does not work properly on z/OS"
18274 #endif
18275 #include <signal.h> /* for signal */
18276 #include <string.h> /* for strstr */
18277 #include <stdlib.h> /* for malloc */
18278 #include <unistd.h> /* for alarm */
18279 static void quit (int sig) { _exit (sig + 128); }
18280
18281 int
18282 main ()
18283 {
18284
18285 int result = 0;
18286 size_t m = 1000000;
18287 char *haystack = (char *) malloc (2 * m + 2);
18288 char *needle = (char *) malloc (m + 2);
18289 /* Failure to compile this test due to missing alarm is okay,
18290 since all such platforms (mingw) also have quadratic strstr. */
18291 signal (SIGALRM, quit);
18292 alarm (5);
18293 /* Check for quadratic performance. */
18294 if (haystack && needle)
18295 {
18296 memset (haystack, 'A', 2 * m);
18297 haystack[2 * m] = 'B';
18298 haystack[2 * m + 1] = 0;
18299 memset (needle, 'A', m);
18300 needle[m] = 'B';
18301 needle[m + 1] = 0;
18302 if (!strstr (haystack, needle))
18303 result |= 1;
18304 }
18305 return result;
18306
18307 ;
18308 return 0;
18309 }
18310 _ACEOF
18311 if ac_fn_c_try_run "$LINENO"; then :
18312 gl_cv_func_strstr_linear=yes
18313 else
18314 gl_cv_func_strstr_linear=no
18315 fi
18316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18317 conftest.$ac_objext conftest.beam conftest.$ac_ext
18318 fi
18319
18320
18321 fi
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
18323 $as_echo "$gl_cv_func_strstr_linear" >&6; }
18324 case "$gl_cv_func_strstr_linear" in
18325 *yes) ;;
18326 *)
18327 REPLACE_STRSTR=1
18328 ;;
18329 esac
18330 fi
18331
18332 if test $REPLACE_STRSTR = 1; then
18333
18334
18335
18336
18337
18338
18339
18340
18341 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
18342
18343 fi
18344
18345
18346
18347 if test "$gl_cv_func_memchr_works" != yes; then
18348 REPLACE_STRSTR=1
18349 else
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
18351 $as_echo_n "checking whether strstr works... " >&6; }
18352 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
18353 $as_echo_n "(cached) " >&6
18354 else
18355 if test "$cross_compiling" = yes; then :
18356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18357 /* end confdefs.h. */
18358
18359 #ifdef __GNU_LIBRARY__
18360 #include <features.h>
18361 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
18362 || defined __UCLIBC__
18363 Lucky user
18364 #endif
18365 #elif defined __CYGWIN__
18366 #include <cygwin/version.h>
18367 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
18368 Lucky user
18369 #endif
18370 #else
18371 Lucky user
18372 #endif
18373
18374 _ACEOF
18375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18376 $EGREP "Lucky user" >/dev/null 2>&1; then :
18377 gl_cv_func_strstr_works_always="guessing yes"
18378 else
18379 gl_cv_func_strstr_works_always="guessing no"
18380 fi
18381 rm -f conftest*
18382
18383
18384 else
18385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18386 /* end confdefs.h. */
18387
18388 #include <string.h> /* for strstr */
18389 #define P "_EF_BF_BD"
18390 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
18391 #define NEEDLE P P P P P
18392
18393 int
18394 main ()
18395 {
18396 return !!strstr (HAYSTACK, NEEDLE);
18397
18398 ;
18399 return 0;
18400 }
18401 _ACEOF
18402 if ac_fn_c_try_run "$LINENO"; then :
18403 gl_cv_func_strstr_works_always=yes
18404 else
18405 gl_cv_func_strstr_works_always=no
18406 fi
18407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18408 conftest.$ac_objext conftest.beam conftest.$ac_ext
18409 fi
18410
18411
18412 fi
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
18414 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
18415 case "$gl_cv_func_strstr_works_always" in
18416 *yes) ;;
18417 *)
18418 REPLACE_STRSTR=1
18419 ;;
18420 esac
18421 fi
18422
18423 if test $REPLACE_STRSTR = 1; then
18424
18425
18426
18427
18428
18429
18430
18431
18432 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
18433
18434 fi
18435
18436
18437
18438
18439
18440 GNULIB_STRSTR=1
18441
18442
18443
18444
18445
18446 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
18447
18448
18449
18450
18451
18452
18453
18454 for ac_func in strtok_r
18455 do :
18456 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
18457 if test "x$ac_cv_func_strtok_r" = x""yes; then :
18458 cat >>confdefs.h <<_ACEOF
18459 #define HAVE_STRTOK_R 1
18460 _ACEOF
18461
18462 fi
18463 done
18464
18465 if test $ac_cv_func_strtok_r = yes; then
18466 HAVE_STRTOK_R=1
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
18468 $as_echo_n "checking whether strtok_r works... " >&6; }
18469 if test "${gl_cv_func_strtok_r_works+set}" = set; then :
18470 $as_echo_n "(cached) " >&6
18471 else
18472 if test "$cross_compiling" = yes; then :
18473
18474 case "$host_os" in
18475 # Guess no on glibc systems.
18476 *-gnu*) gl_cv_func_strtok_r_works="guessing no";;
18477 *) gl_cv_func_strtok_r_works="guessing yes";;
18478 esac
18479
18480 else
18481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18482 /* end confdefs.h. */
18483
18484 #ifndef __OPTIMIZE__
18485 # define __OPTIMIZE__ 1
18486 #endif
18487 #undef __OPTIMIZE_SIZE__
18488 #undef __NO_INLINE__
18489 #include <stdlib.h>
18490 #include <string.h>
18491
18492 int
18493 main ()
18494 {
18495 static const char dummy[] = "\177\01a";
18496 char delimiters[] = "xxxxxxxx";
18497 char *save_ptr = (char *) dummy;
18498 strtok_r (delimiters, "x", &save_ptr);
18499 strtok_r (NULL, "x", &save_ptr);
18500 return 0;
18501
18502 ;
18503 return 0;
18504 }
18505
18506 _ACEOF
18507 if ac_fn_c_try_run "$LINENO"; then :
18508 gl_cv_func_strtok_r_works=yes
18509 else
18510 gl_cv_func_strtok_r_works=no
18511 fi
18512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18513 conftest.$ac_objext conftest.beam conftest.$ac_ext
18514 fi
18515
18516
18517 fi
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
18519 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
18520 case "$gl_cv_func_strtok_r_works" in
18521 *no)
18522 UNDEFINE_STRTOK_R=1
18523 ;;
18524 esac
18525 else
18526 HAVE_STRTOK_R=0
18527 fi
18528
18529 if test $ac_cv_have_decl_strtok_r = no; then
18530 HAVE_DECL_STRTOK_R=0
18531 fi
18532
18533 if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
18534
18535
18536
18537
18538
18539
18540
18541
18542 gl_LIBOBJS="$gl_LIBOBJS strtok_r.$ac_objext"
18543
18544
18545 :
18546
18547 fi
18548
18549
18550
18551
18552
18553 GNULIB_STRTOK_R=1
18554
18555
18556
18557
18558
18559 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577 if test $gl_cv_have_include_next = yes; then
18578 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18579 else
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
18581 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
18582 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
18583 $as_echo_n "(cached) " >&6
18584 else
18585
18586 if test $ac_cv_header_sys_stat_h = yes; then
18587
18588
18589
18590
18591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18592 /* end confdefs.h. */
18593 #include <sys/stat.h>
18594 _ACEOF
18595 case "$host_os" in
18596 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18597 *) gl_absname_cpp="$ac_cpp" ;;
18598 esac
18599
18600 case "$host_os" in
18601 mingw*)
18602 gl_dirsep_regex='[/\\]'
18603 ;;
18604 *)
18605 gl_dirsep_regex='\/'
18606 ;;
18607 esac
18608 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18609 gl_header_literal_regex=`echo 'sys/stat.h' \
18610 | sed -e "$gl_make_literal_regex_sed"`
18611 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18612 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18613 s|^/[^/]|//&|
18614 p
18615 q
18616 }'
18617
18618 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18619 sed -n "$gl_absolute_header_sed"`
18620
18621 gl_header=$gl_cv_absolute_sys_stat_h
18622 gl_cv_next_sys_stat_h='"'$gl_header'"'
18623 else
18624 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
18625 fi
18626
18627
18628 fi
18629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
18630 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
18631 fi
18632 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
18633
18634 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18635 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18636 gl_next_as_first_directive='<'sys/stat.h'>'
18637 else
18638 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18639 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
18640 fi
18641 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
18654
18655 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
18656
18657 fi
18658
18659 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
18660 #include <sys/stat.h>
18661 "
18662 if test "x$ac_cv_type_nlink_t" = x""yes; then :
18663
18664 else
18665
18666 $as_echo "#define nlink_t int" >>confdefs.h
18667
18668 fi
18669
18670
18671
18672 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
18673 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18675 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18676 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
18677 $as_echo_n "(cached) " >&6
18678 else
18679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18680 /* end confdefs.h. */
18681 #include <sys/stat.h>
18682
18683 int
18684 main ()
18685 {
18686 #undef $gl_func
18687 (void) $gl_func;
18688 ;
18689 return 0;
18690 }
18691 _ACEOF
18692 if ac_fn_c_try_compile "$LINENO"; then :
18693 eval "$as_gl_Symbol=yes"
18694 else
18695 eval "$as_gl_Symbol=no"
18696 fi
18697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18698 fi
18699 eval ac_res=\$$as_gl_Symbol
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18701 $as_echo "$ac_res" >&6; }
18702 eval as_val=\$$as_gl_Symbol
18703 if test "x$as_val" = x""yes; then :
18704 cat >>confdefs.h <<_ACEOF
18705 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18706 _ACEOF
18707
18708 eval ac_cv_have_decl_$gl_func=yes
18709 fi
18710 done
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735 if test $gl_cv_have_include_next = yes; then
18736 gl_cv_next_unistd_h='<'unistd.h'>'
18737 else
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
18739 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
18740 if test "${gl_cv_next_unistd_h+set}" = set; then :
18741 $as_echo_n "(cached) " >&6
18742 else
18743
18744 if test $ac_cv_header_unistd_h = yes; then
18745
18746
18747
18748
18749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18750 /* end confdefs.h. */
18751 #include <unistd.h>
18752 _ACEOF
18753 case "$host_os" in
18754 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18755 *) gl_absname_cpp="$ac_cpp" ;;
18756 esac
18757
18758 case "$host_os" in
18759 mingw*)
18760 gl_dirsep_regex='[/\\]'
18761 ;;
18762 *)
18763 gl_dirsep_regex='\/'
18764 ;;
18765 esac
18766 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18767 gl_header_literal_regex=`echo 'unistd.h' \
18768 | sed -e "$gl_make_literal_regex_sed"`
18769 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18770 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18771 s|^/[^/]|//&|
18772 p
18773 q
18774 }'
18775
18776 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18777 sed -n "$gl_absolute_header_sed"`
18778
18779 gl_header=$gl_cv_absolute_unistd_h
18780 gl_cv_next_unistd_h='"'$gl_header'"'
18781 else
18782 gl_cv_next_unistd_h='<'unistd.h'>'
18783 fi
18784
18785
18786 fi
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
18788 $as_echo "$gl_cv_next_unistd_h" >&6; }
18789 fi
18790 NEXT_UNISTD_H=$gl_cv_next_unistd_h
18791
18792 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18793 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18794 gl_next_as_first_directive='<'unistd.h'>'
18795 else
18796 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18797 gl_next_as_first_directive=$gl_cv_next_unistd_h
18798 fi
18799 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
18800
18801
18802
18803
18804 if test $ac_cv_header_unistd_h = yes; then
18805 HAVE_UNISTD_H=1
18806 else
18807 HAVE_UNISTD_H=0
18808 fi
18809
18810
18811
18812
18813
18814
18815
18816 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
18817 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18819 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18820 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
18821 $as_echo_n "(cached) " >&6
18822 else
18823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18824 /* end confdefs.h. */
18825
18826 #if HAVE_UNISTD_H
18827 # include <unistd.h>
18828 #endif
18829 /* Some systems declare various items in the wrong headers. */
18830 #if !(defined __GLIBC__ && !defined __UCLIBC__)
18831 # include <fcntl.h>
18832 # include <stdio.h>
18833 # include <stdlib.h>
18834 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18835 # include <io.h>
18836 # endif
18837 #endif
18838
18839 int
18840 main ()
18841 {
18842 #undef $gl_func
18843 (void) $gl_func;
18844 ;
18845 return 0;
18846 }
18847 _ACEOF
18848 if ac_fn_c_try_compile "$LINENO"; then :
18849 eval "$as_gl_Symbol=yes"
18850 else
18851 eval "$as_gl_Symbol=no"
18852 fi
18853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18854 fi
18855 eval ac_res=\$$as_gl_Symbol
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18857 $as_echo "$ac_res" >&6; }
18858 eval as_val=\$$as_gl_Symbol
18859 if test "x$as_val" = x""yes; then :
18860 cat >>confdefs.h <<_ACEOF
18861 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18862 _ACEOF
18863
18864 eval ac_cv_have_decl_$gl_func=yes
18865 fi
18866 done
18867
18868
18869
18870
18871
18872 if test $ac_cv_have_decl_unsetenv = no; then
18873 HAVE_DECL_UNSETENV=0
18874 fi
18875 for ac_func in unsetenv
18876 do :
18877 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
18878 if test "x$ac_cv_func_unsetenv" = x""yes; then :
18879 cat >>confdefs.h <<_ACEOF
18880 #define HAVE_UNSETENV 1
18881 _ACEOF
18882
18883 fi
18884 done
18885
18886 if test $ac_cv_func_unsetenv = no; then
18887 HAVE_UNSETENV=0
18888 else
18889 HAVE_UNSETENV=1
18890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsetenv() return type" >&5
18891 $as_echo_n "checking for unsetenv() return type... " >&6; }
18892 if test "${gt_cv_func_unsetenv_ret+set}" = set; then :
18893 $as_echo_n "(cached) " >&6
18894 else
18895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18896 /* end confdefs.h. */
18897
18898 #undef _BSD
18899 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
18900 #include <stdlib.h>
18901 extern
18902 #ifdef __cplusplus
18903 "C"
18904 #endif
18905 int unsetenv (const char *name);
18906
18907 int
18908 main ()
18909 {
18910
18911 ;
18912 return 0;
18913 }
18914 _ACEOF
18915 if ac_fn_c_try_compile "$LINENO"; then :
18916 gt_cv_func_unsetenv_ret='int'
18917 else
18918 gt_cv_func_unsetenv_ret='void'
18919 fi
18920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18921 fi
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_unsetenv_ret" >&5
18923 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
18924 if test $gt_cv_func_unsetenv_ret = 'void'; then
18925
18926 $as_echo "#define VOID_UNSETENV 1" >>confdefs.h
18927
18928 REPLACE_UNSETENV=1
18929 fi
18930
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether unsetenv obeys POSIX" >&5
18932 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
18933 if test "${gl_cv_func_unsetenv_works+set}" = set; then :
18934 $as_echo_n "(cached) " >&6
18935 else
18936 if test "$cross_compiling" = yes; then :
18937 case "$host_os" in
18938 # Guess yes on glibc systems.
18939 *-gnu*) gl_cv_func_unsetenv_works="guessing yes" ;;
18940 # If we don't know, assume the worst.
18941 *) gl_cv_func_unsetenv_works="guessing no" ;;
18942 esac
18943
18944 else
18945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18946 /* end confdefs.h. */
18947
18948 #include <stdlib.h>
18949 #include <errno.h>
18950 extern char **environ;
18951
18952 int
18953 main ()
18954 {
18955
18956 char entry1[] = "a=1";
18957 char entry2[] = "b=2";
18958 char *env[] = { entry1, entry2, NULL };
18959 if (putenv ((char *) "a=1")) return 1;
18960 if (putenv (entry2)) return 2;
18961 entry2[0] = 'a';
18962 unsetenv ("a");
18963 if (getenv ("a")) return 3;
18964 if (!unsetenv ("") || errno != EINVAL) return 4;
18965 entry2[0] = 'b';
18966 environ = env;
18967 if (!getenv ("a")) return 5;
18968 entry2[0] = 'a';
18969 unsetenv ("a");
18970 if (getenv ("a")) return 6;
18971
18972 ;
18973 return 0;
18974 }
18975 _ACEOF
18976 if ac_fn_c_try_run "$LINENO"; then :
18977 gl_cv_func_unsetenv_works=yes
18978 else
18979 gl_cv_func_unsetenv_works=no
18980 fi
18981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18982 conftest.$ac_objext conftest.beam conftest.$ac_ext
18983 fi
18984
18985 fi
18986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unsetenv_works" >&5
18987 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
18988 case "$gl_cv_func_unsetenv_works" in
18989 *yes) ;;
18990 *)
18991 REPLACE_UNSETENV=1
18992 ;;
18993 esac
18994 fi
18995
18996 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
18997
18998
18999
19000
19001
19002
19003
19004
19005 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
19006
19007
19008
19009
19010
19011 fi
19012
19013
19014
19015
19016
19017 GNULIB_UNSETENV=1
19018
19019
19020
19021
19022
19023 $as_echo "#define GNULIB_TEST_UNSETENV 1" >>confdefs.h
19024
19025
19026
19027
19028
19029
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039 if test $gl_cv_have_include_next = yes; then
19040 gl_cv_next_wchar_h='<'wchar.h'>'
19041 else
19042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
19043 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
19044 if test "${gl_cv_next_wchar_h+set}" = set; then :
19045 $as_echo_n "(cached) " >&6
19046 else
19047
19048 if test $ac_cv_header_wchar_h = yes; then
19049
19050
19051
19052
19053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19054 /* end confdefs.h. */
19055 #include <wchar.h>
19056 _ACEOF
19057 case "$host_os" in
19058 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19059 *) gl_absname_cpp="$ac_cpp" ;;
19060 esac
19061
19062 case "$host_os" in
19063 mingw*)
19064 gl_dirsep_regex='[/\\]'
19065 ;;
19066 *)
19067 gl_dirsep_regex='\/'
19068 ;;
19069 esac
19070 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19071 gl_header_literal_regex=`echo 'wchar.h' \
19072 | sed -e "$gl_make_literal_regex_sed"`
19073 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19074 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19075 s|^/[^/]|//&|
19076 p
19077 q
19078 }'
19079
19080 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19081 sed -n "$gl_absolute_header_sed"`
19082
19083 gl_header=$gl_cv_absolute_wchar_h
19084 gl_cv_next_wchar_h='"'$gl_header'"'
19085 else
19086 gl_cv_next_wchar_h='<'wchar.h'>'
19087 fi
19088
19089
19090 fi
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
19092 $as_echo "$gl_cv_next_wchar_h" >&6; }
19093 fi
19094 NEXT_WCHAR_H=$gl_cv_next_wchar_h
19095
19096 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19097 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19098 gl_next_as_first_directive='<'wchar.h'>'
19099 else
19100 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19101 gl_next_as_first_directive=$gl_cv_next_wchar_h
19102 fi
19103 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
19104
19105
19106
19107
19108 if test $ac_cv_header_wchar_h = yes; then
19109 HAVE_WCHAR_H=1
19110 else
19111 HAVE_WCHAR_H=0
19112 fi
19113
19114
19115
19116
19117
19118 if test $gt_cv_c_wint_t = yes; then
19119 HAVE_WINT_T=1
19120 else
19121 HAVE_WINT_T=0
19122 fi
19123
19124
19125
19126 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
19127 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19129 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19130 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
19131 $as_echo_n "(cached) " >&6
19132 else
19133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19134 /* end confdefs.h. */
19135
19136 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19137 <wchar.h>.
19138 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19139 included before <wchar.h>. */
19140 #if !(defined __GLIBC__ && !defined __UCLIBC__)
19141 # include <stddef.h>
19142 # include <stdio.h>
19143 # include <time.h>
19144 #endif
19145 #include <wchar.h>
19146
19147 int
19148 main ()
19149 {
19150 #undef $gl_func
19151 (void) $gl_func;
19152 ;
19153 return 0;
19154 }
19155 _ACEOF
19156 if ac_fn_c_try_compile "$LINENO"; then :
19157 eval "$as_gl_Symbol=yes"
19158 else
19159 eval "$as_gl_Symbol=no"
19160 fi
19161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19162 fi
19163 eval ac_res=\$$as_gl_Symbol
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19165 $as_echo "$ac_res" >&6; }
19166 eval as_val=\$$as_gl_Symbol
19167 if test "x$as_val" = x""yes; then :
19168 cat >>confdefs.h <<_ACEOF
19169 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19170 _ACEOF
19171
19172 eval ac_cv_have_decl_$gl_func=yes
19173 fi
19174 done
19175
19176
19177
19178
19179
19180
19181
19182 if test $ac_cv_func_iswcntrl = yes; then
19183 HAVE_ISWCNTRL=1
19184 else
19185 HAVE_ISWCNTRL=0
19186 fi
19187
19188
19189
19190 if test $gt_cv_c_wint_t = yes; then
19191 HAVE_WINT_T=1
19192 else
19193 HAVE_WINT_T=0
19194 fi
19195
19196
19197
19198
19199
19200
19201
19202
19203
19204
19205
19206 if test $gl_cv_have_include_next = yes; then
19207 gl_cv_next_wctype_h='<'wctype.h'>'
19208 else
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
19210 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
19211 if test "${gl_cv_next_wctype_h+set}" = set; then :
19212 $as_echo_n "(cached) " >&6
19213 else
19214
19215 if test $ac_cv_header_wctype_h = yes; then
19216
19217
19218
19219
19220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19221 /* end confdefs.h. */
19222 #include <wctype.h>
19223 _ACEOF
19224 case "$host_os" in
19225 aix*) gl_absname_cpp="$ac_cpp -C" ;;
19226 *) gl_absname_cpp="$ac_cpp" ;;
19227 esac
19228
19229 case "$host_os" in
19230 mingw*)
19231 gl_dirsep_regex='[/\\]'
19232 ;;
19233 *)
19234 gl_dirsep_regex='\/'
19235 ;;
19236 esac
19237 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19238 gl_header_literal_regex=`echo 'wctype.h' \
19239 | sed -e "$gl_make_literal_regex_sed"`
19240 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19241 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19242 s|^/[^/]|//&|
19243 p
19244 q
19245 }'
19246
19247 gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19248 sed -n "$gl_absolute_header_sed"`
19249
19250 gl_header=$gl_cv_absolute_wctype_h
19251 gl_cv_next_wctype_h='"'$gl_header'"'
19252 else
19253 gl_cv_next_wctype_h='<'wctype.h'>'
19254 fi
19255
19256
19257 fi
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
19259 $as_echo "$gl_cv_next_wctype_h" >&6; }
19260 fi
19261 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
19262
19263 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19264 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19265 gl_next_as_first_directive='<'wctype.h'>'
19266 else
19267 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19268 gl_next_as_first_directive=$gl_cv_next_wctype_h
19269 fi
19270 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
19271
19272
19273
19274
19275 if test $ac_cv_header_wctype_h = yes; then
19276 if test $ac_cv_func_iswcntrl = yes; then
19277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
19278 $as_echo_n "checking whether iswcntrl works... " >&6; }
19279 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
19280 $as_echo_n "(cached) " >&6
19281 else
19282
19283 if test "$cross_compiling" = yes; then :
19284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19285 /* end confdefs.h. */
19286 #include <stdlib.h>
19287 #if __GNU_LIBRARY__ == 1
19288 Linux libc5 i18n is broken.
19289 #endif
19290 int
19291 main ()
19292 {
19293
19294 ;
19295 return 0;
19296 }
19297 _ACEOF
19298 if ac_fn_c_try_compile "$LINENO"; then :
19299 gl_cv_func_iswcntrl_works="guessing yes"
19300 else
19301 gl_cv_func_iswcntrl_works="guessing no"
19302 fi
19303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19304
19305 else
19306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19307 /* end confdefs.h. */
19308
19309 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
19310 included before <wchar.h>.
19311 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
19312 must be included before <wchar.h>. */
19313 #include <stddef.h>
19314 #include <stdio.h>
19315 #include <time.h>
19316 #include <wchar.h>
19317 #include <wctype.h>
19318 int main () { return iswprint ('x') == 0; }
19319
19320 _ACEOF
19321 if ac_fn_c_try_run "$LINENO"; then :
19322 gl_cv_func_iswcntrl_works=yes
19323 else
19324 gl_cv_func_iswcntrl_works=no
19325 fi
19326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19327 conftest.$ac_objext conftest.beam conftest.$ac_ext
19328 fi
19329
19330
19331 fi
19332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
19333 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
19334 fi
19335 HAVE_WCTYPE_H=1
19336 else
19337 HAVE_WCTYPE_H=0
19338 fi
19339
19340
19341 case "$gl_cv_func_iswcntrl_works" in
19342 *yes) REPLACE_ISWCNTRL=0 ;;
19343 *) REPLACE_ISWCNTRL=1 ;;
19344 esac
19345
19346
19347 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
19348 :
19349 fi
19350
19351 if test $REPLACE_ISWCNTRL = 1; then
19352 REPLACE_TOWLOWER=1
19353 else
19354 for ac_func in towlower
19355 do :
19356 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
19357 if test "x$ac_cv_func_towlower" = x""yes; then :
19358 cat >>confdefs.h <<_ACEOF
19359 #define HAVE_TOWLOWER 1
19360 _ACEOF
19361
19362 fi
19363 done
19364
19365 if test $ac_cv_func_towlower = yes; then
19366 REPLACE_TOWLOWER=0
19367 else
19368 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
19369 included before <wchar.h>.
19370 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
19371 must be included before <wchar.h>. */
19372 #include <stddef.h>
19373 #include <stdio.h>
19374 #include <time.h>
19375 #include <wchar.h>
19376 #if HAVE_WCTYPE_H
19377 # include <wctype.h>
19378 #endif
19379
19380 "
19381 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
19382 ac_have_decl=1
19383 else
19384 ac_have_decl=0
19385 fi
19386
19387 cat >>confdefs.h <<_ACEOF
19388 #define HAVE_DECL_TOWLOWER $ac_have_decl
19389 _ACEOF
19390
19391 if test $ac_cv_have_decl_towlower = yes; then
19392 REPLACE_TOWLOWER=1
19393 else
19394 REPLACE_TOWLOWER=0
19395 fi
19396 fi
19397 fi
19398
19399
19400 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
19401 :
19402 fi
19403
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
19405 $as_echo_n "checking for wctype_t... " >&6; }
19406 if test "${gl_cv_type_wctype_t+set}" = set; then :
19407 $as_echo_n "(cached) " >&6
19408 else
19409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19410 /* end confdefs.h. */
19411 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
19412 included before <wchar.h>.
19413 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
19414 must be included before <wchar.h>. */
19415 #include <stddef.h>
19416 #include <stdio.h>
19417 #include <time.h>
19418 #include <wchar.h>
19419 #if HAVE_WCTYPE_H
19420 # include <wctype.h>
19421 #endif
19422 wctype_t a;
19423
19424 int
19425 main ()
19426 {
19427
19428 ;
19429 return 0;
19430 }
19431 _ACEOF
19432 if ac_fn_c_try_compile "$LINENO"; then :
19433 gl_cv_type_wctype_t=yes
19434 else
19435 gl_cv_type_wctype_t=no
19436 fi
19437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19438
19439 fi
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
19441 $as_echo "$gl_cv_type_wctype_t" >&6; }
19442 if test $gl_cv_type_wctype_t = no; then
19443 HAVE_WCTYPE_T=0
19444 fi
19445
19446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
19447 $as_echo_n "checking for wctrans_t... " >&6; }
19448 if test "${gl_cv_type_wctrans_t+set}" = set; then :
19449 $as_echo_n "(cached) " >&6
19450 else
19451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19452 /* end confdefs.h. */
19453 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
19454 included before <wchar.h>.
19455 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
19456 must be included before <wchar.h>. */
19457 #include <stddef.h>
19458 #include <stdio.h>
19459 #include <time.h>
19460 #include <wchar.h>
19461 #include <wctype.h>
19462 wctrans_t a;
19463
19464 int
19465 main ()
19466 {
19467
19468 ;
19469 return 0;
19470 }
19471 _ACEOF
19472 if ac_fn_c_try_compile "$LINENO"; then :
19473 gl_cv_type_wctrans_t=yes
19474 else
19475 gl_cv_type_wctrans_t=no
19476 fi
19477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19478
19479 fi
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
19481 $as_echo "$gl_cv_type_wctrans_t" >&6; }
19482 if test $gl_cv_type_wctrans_t = no; then
19483 HAVE_WCTRANS_T=0
19484 fi
19485
19486
19487 for gl_func in wctype iswctype wctrans towctrans ; do
19488 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
19490 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19491 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
19492 $as_echo_n "(cached) " >&6
19493 else
19494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19495 /* end confdefs.h. */
19496
19497 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19498 <wchar.h>.
19499 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19500 included before <wchar.h>. */
19501 #if !(defined __GLIBC__ && !defined __UCLIBC__)
19502 # include <stddef.h>
19503 # include <stdio.h>
19504 # include <time.h>
19505 # include <wchar.h>
19506 #endif
19507 #include <wctype.h>
19508
19509 int
19510 main ()
19511 {
19512 #undef $gl_func
19513 (void) $gl_func;
19514 ;
19515 return 0;
19516 }
19517 _ACEOF
19518 if ac_fn_c_try_compile "$LINENO"; then :
19519 eval "$as_gl_Symbol=yes"
19520 else
19521 eval "$as_gl_Symbol=no"
19522 fi
19523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19524 fi
19525 eval ac_res=\$$as_gl_Symbol
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19527 $as_echo "$ac_res" >&6; }
19528 eval as_val=\$$as_gl_Symbol
19529 if test "x$as_val" = x""yes; then :
19530 cat >>confdefs.h <<_ACEOF
19531 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19532 _ACEOF
19533
19534 eval ac_cv_have_decl_$gl_func=yes
19535 fi
19536 done
19537
19538
19539 # End of code from modules
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549 gltests_libdeps=
19550 gltests_ltlibdeps=
19551
19552
19553
19554
19555
19556
19557
19558
19559
19560 gl_source_base='tests'
19561 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
19562
19563 gl_module_indicator_condition=$gltests_WITNESS
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573 LIBGNU_LIBDEPS="$gl_libdeps"
19574
19575 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
19576
19577
19578
19579 # We don't use automake, but gnulib does. This line lets us generate
19580 # its Makefile.in.
19581 am__api_version='1.11'
19582
19583 # Find a good install program. We prefer a C program (faster),
19584 # so one script is as good as another. But avoid the broken or
19585 # incompatible versions:
19586 # SysV /etc/install, /usr/sbin/install
19587 # SunOS /usr/etc/install
19588 # IRIX /sbin/install
19589 # AIX /bin/install
19590 # AmigaOS /C/install, which installs bootblocks on floppy discs
19591 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19592 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19593 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19594 # OS/2's system install, which has a completely different semantic
19595 # ./install, which can be erroneously created by make from ./install.sh.
19596 # Reject install programs that cannot install multiple files.
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
19598 $as_echo_n "checking for a BSD-compatible install... " >&6; }
19599 if test -z "$INSTALL"; then
19600 if test "${ac_cv_path_install+set}" = set; then :
19601 $as_echo_n "(cached) " >&6
19602 else
19603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19604 for as_dir in $PATH
19605 do
19606 IFS=$as_save_IFS
19607 test -z "$as_dir" && as_dir=.
19608 # Account for people who put trailing slashes in PATH elements.
19609 case $as_dir/ in #((
19610 ./ | .// | /[cC]/* | \
19611 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19612 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
19613 /usr/ucb/* ) ;;
19614 *)
19615 # OSF1 and SCO ODT 3.0 have their own names for install.
19616 # Don't use installbsd from OSF since it installs stuff as root
19617 # by default.
19618 for ac_prog in ginstall scoinst install; do
19619 for ac_exec_ext in '' $ac_executable_extensions; do
19620 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19621 if test $ac_prog = install &&
19622 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19623 # AIX install. It has an incompatible calling convention.
19624 :
19625 elif test $ac_prog = install &&
19626 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19627 # program-specific install script used by HP pwplus--don't use.
19628 :
19629 else
19630 rm -rf conftest.one conftest.two conftest.dir
19631 echo one > conftest.one
19632 echo two > conftest.two
19633 mkdir conftest.dir
19634 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
19635 test -s conftest.one && test -s conftest.two &&
19636 test -s conftest.dir/conftest.one &&
19637 test -s conftest.dir/conftest.two
19638 then
19639 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19640 break 3
19641 fi
19642 fi
19643 fi
19644 done
19645 done
19646 ;;
19647 esac
19648
19649 done
19650 IFS=$as_save_IFS
19651
19652 rm -rf conftest.one conftest.two conftest.dir
19653
19654 fi
19655 if test "${ac_cv_path_install+set}" = set; then
19656 INSTALL=$ac_cv_path_install
19657 else
19658 # As a last resort, use the slow shell script. Don't cache a
19659 # value for INSTALL within a source directory, because that will
19660 # break other packages using the cache if that directory is
19661 # removed, or if the value is a relative name.
19662 INSTALL=$ac_install_sh
19663 fi
19664 fi
19665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
19666 $as_echo "$INSTALL" >&6; }
19667
19668 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19669 # It thinks the first close brace ends the variable substitution.
19670 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19671
19672 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19673
19674 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19675
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
19677 $as_echo_n "checking whether build environment is sane... " >&6; }
19678 # Just in case
19679 sleep 1
19680 echo timestamp > conftest.file
19681 # Reject unsafe characters in $srcdir or the absolute working directory
19682 # name. Accept space and tab only in the latter.
19683 am_lf='
19684 '
19685 case `pwd` in
19686 *[\\\"\#\$\&\'\`$am_lf]*)
19687 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
19688 esac
19689 case $srcdir in
19690 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
19691 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
19692 esac
19693
19694 # Do `set' in a subshell so we don't clobber the current shell's
19695 # arguments. Must try -L first in case configure is actually a
19696 # symlink; some systems play weird games with the mod time of symlinks
19697 # (eg FreeBSD returns the mod time of the symlink's containing
19698 # directory).
19699 if (
19700 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
19701 if test "$*" = "X"; then
19702 # -L didn't work.
19703 set X `ls -t "$srcdir/configure" conftest.file`
19704 fi
19705 rm -f conftest.file
19706 if test "$*" != "X $srcdir/configure conftest.file" \
19707 && test "$*" != "X conftest.file $srcdir/configure"; then
19708
19709 # If neither matched, then we have a broken ls. This can happen
19710 # if, for instance, CONFIG_SHELL is bash and it inherits a
19711 # broken ls alias from the environment. This has actually
19712 # happened. Such a system could not be considered "sane".
19713 as_fn_error "ls -t appears to fail. Make sure there is not a broken
19714 alias in your environment" "$LINENO" 5
19715 fi
19716
19717 test "$2" = conftest.file
19718 )
19719 then
19720 # Ok.
19721 :
19722 else
19723 as_fn_error "newly created file is older than distributed files!
19724 Check your system clock" "$LINENO" 5
19725 fi
19726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19727 $as_echo "yes" >&6; }
19728 test "$program_prefix" != NONE &&
19729 program_transform_name="s&^&$program_prefix&;$program_transform_name"
19730 # Use a double $ so make ignores it.
19731 test "$program_suffix" != NONE &&
19732 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
19733 # Double any \ or $.
19734 # By default was `s,x,x', remove it if useless.
19735 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
19736 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
19737
19738 # expand $ac_aux_dir to an absolute path
19739 am_aux_dir=`cd $ac_aux_dir && pwd`
19740
19741 if test x"${MISSING+set}" != xset; then
19742 case $am_aux_dir in
19743 *\ * | *\ *)
19744 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
19745 *)
19746 MISSING="\${SHELL} $am_aux_dir/missing" ;;
19747 esac
19748 fi
19749 # Use eval to expand $SHELL
19750 if eval "$MISSING --run true"; then
19751 am_missing_run="$MISSING --run "
19752 else
19753 am_missing_run=
19754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
19755 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
19756 fi
19757
19758 if test x"${install_sh}" != xset; then
19759 case $am_aux_dir in
19760 *\ * | *\ *)
19761 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
19762 *)
19763 install_sh="\${SHELL} $am_aux_dir/install-sh"
19764 esac
19765 fi
19766
19767 # Installed binaries are usually stripped using `strip' when the user
19768 # run `make install-strip'. However `strip' might not be the right
19769 # tool to use in cross-compilation environments, therefore Automake
19770 # will honor the `STRIP' environment variable to overrule this program.
19771 if test "$cross_compiling" != no; then
19772 if test -n "$ac_tool_prefix"; then
19773 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
19774 set dummy ${ac_tool_prefix}strip; ac_word=$2
19775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19776 $as_echo_n "checking for $ac_word... " >&6; }
19777 if test "${ac_cv_prog_STRIP+set}" = set; then :
19778 $as_echo_n "(cached) " >&6
19779 else
19780 if test -n "$STRIP"; then
19781 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
19782 else
19783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19784 for as_dir in $PATH
19785 do
19786 IFS=$as_save_IFS
19787 test -z "$as_dir" && as_dir=.
19788 for ac_exec_ext in '' $ac_executable_extensions; do
19789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19790 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
19791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19792 break 2
19793 fi
19794 done
19795 done
19796 IFS=$as_save_IFS
19797
19798 fi
19799 fi
19800 STRIP=$ac_cv_prog_STRIP
19801 if test -n "$STRIP"; then
19802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
19803 $as_echo "$STRIP" >&6; }
19804 else
19805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19806 $as_echo "no" >&6; }
19807 fi
19808
19809
19810 fi
19811 if test -z "$ac_cv_prog_STRIP"; then
19812 ac_ct_STRIP=$STRIP
19813 # Extract the first word of "strip", so it can be a program name with args.
19814 set dummy strip; ac_word=$2
19815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19816 $as_echo_n "checking for $ac_word... " >&6; }
19817 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
19818 $as_echo_n "(cached) " >&6
19819 else
19820 if test -n "$ac_ct_STRIP"; then
19821 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
19822 else
19823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19824 for as_dir in $PATH
19825 do
19826 IFS=$as_save_IFS
19827 test -z "$as_dir" && as_dir=.
19828 for ac_exec_ext in '' $ac_executable_extensions; do
19829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19830 ac_cv_prog_ac_ct_STRIP="strip"
19831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19832 break 2
19833 fi
19834 done
19835 done
19836 IFS=$as_save_IFS
19837
19838 fi
19839 fi
19840 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
19841 if test -n "$ac_ct_STRIP"; then
19842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
19843 $as_echo "$ac_ct_STRIP" >&6; }
19844 else
19845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19846 $as_echo "no" >&6; }
19847 fi
19848
19849 if test "x$ac_ct_STRIP" = x; then
19850 STRIP=":"
19851 else
19852 case $cross_compiling:$ac_tool_warned in
19853 yes:)
19854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19856 ac_tool_warned=yes ;;
19857 esac
19858 STRIP=$ac_ct_STRIP
19859 fi
19860 else
19861 STRIP="$ac_cv_prog_STRIP"
19862 fi
19863
19864 fi
19865 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
19866
19867 mkdir_p="$MKDIR_P"
19868 case $mkdir_p in
19869 [\\/$]* | ?:[\\/]*) ;;
19870 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
19871 esac
19872
19873 for ac_prog in gawk mawk nawk awk
19874 do
19875 # Extract the first word of "$ac_prog", so it can be a program name with args.
19876 set dummy $ac_prog; ac_word=$2
19877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19878 $as_echo_n "checking for $ac_word... " >&6; }
19879 if test "${ac_cv_prog_AWK+set}" = set; then :
19880 $as_echo_n "(cached) " >&6
19881 else
19882 if test -n "$AWK"; then
19883 ac_cv_prog_AWK="$AWK" # Let the user override the test.
19884 else
19885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19886 for as_dir in $PATH
19887 do
19888 IFS=$as_save_IFS
19889 test -z "$as_dir" && as_dir=.
19890 for ac_exec_ext in '' $ac_executable_extensions; do
19891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19892 ac_cv_prog_AWK="$ac_prog"
19893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19894 break 2
19895 fi
19896 done
19897 done
19898 IFS=$as_save_IFS
19899
19900 fi
19901 fi
19902 AWK=$ac_cv_prog_AWK
19903 if test -n "$AWK"; then
19904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
19905 $as_echo "$AWK" >&6; }
19906 else
19907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19908 $as_echo "no" >&6; }
19909 fi
19910
19911
19912 test -n "$AWK" && break
19913 done
19914
19915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19916 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
19917 set x ${MAKE-make}
19918 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
19919 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
19920 $as_echo_n "(cached) " >&6
19921 else
19922 cat >conftest.make <<\_ACEOF
19923 SHELL = /bin/sh
19924 all:
19925 @echo '@@@%%%=$(MAKE)=@@@%%%'
19926 _ACEOF
19927 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19928 case `${MAKE-make} -f conftest.make 2>/dev/null` in
19929 *@@@%%%=?*=@@@%%%*)
19930 eval ac_cv_prog_make_${ac_make}_set=yes;;
19931 *)
19932 eval ac_cv_prog_make_${ac_make}_set=no;;
19933 esac
19934 rm -f conftest.make
19935 fi
19936 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
19937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19938 $as_echo "yes" >&6; }
19939 SET_MAKE=
19940 else
19941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19942 $as_echo "no" >&6; }
19943 SET_MAKE="MAKE=${MAKE-make}"
19944 fi
19945
19946 rm -rf .tst 2>/dev/null
19947 mkdir .tst 2>/dev/null
19948 if test -d .tst; then
19949 am__leading_dot=.
19950 else
19951 am__leading_dot=_
19952 fi
19953 rmdir .tst 2>/dev/null
19954
19955 DEPDIR="${am__leading_dot}deps"
19956
19957 ac_config_commands="$ac_config_commands depfiles"
19958
19959
19960 am_make=${MAKE-make}
19961 cat > confinc << 'END'
19962 am__doit:
19963 @echo this is the am__doit target
19964 .PHONY: am__doit
19965 END
19966 # If we don't find an include directive, just comment out the code.
19967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
19968 $as_echo_n "checking for style of include used by $am_make... " >&6; }
19969 am__include="#"
19970 am__quote=
19971 _am_result=none
19972 # First try GNU make style include.
19973 echo "include confinc" > confmf
19974 # Ignore all kinds of additional output from `make'.
19975 case `$am_make -s -f confmf 2> /dev/null` in #(
19976 *the\ am__doit\ target*)
19977 am__include=include
19978 am__quote=
19979 _am_result=GNU
19980 ;;
19981 esac
19982 # Now try BSD make style include.
19983 if test "$am__include" = "#"; then
19984 echo '.include "confinc"' > confmf
19985 case `$am_make -s -f confmf 2> /dev/null` in #(
19986 *the\ am__doit\ target*)
19987 am__include=.include
19988 am__quote="\""
19989 _am_result=BSD
19990 ;;
19991 esac
19992 fi
19993
19994
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
19996 $as_echo "$_am_result" >&6; }
19997 rm -f confinc confmf
19998
19999 # Check whether --enable-dependency-tracking was given.
20000 if test "${enable_dependency_tracking+set}" = set; then :
20001 enableval=$enable_dependency_tracking;
20002 fi
20003
20004 if test "x$enable_dependency_tracking" != xno; then
20005 am_depcomp="$ac_aux_dir/depcomp"
20006 AMDEPBACKSLASH='\'
20007 fi
20008 if test "x$enable_dependency_tracking" != xno; then
20009 AMDEP_TRUE=
20010 AMDEP_FALSE='#'
20011 else
20012 AMDEP_TRUE='#'
20013 AMDEP_FALSE=
20014 fi
20015
20016
20017 if test "`cd $srcdir && pwd`" != "`pwd`"; then
20018 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
20019 # is not polluted with repeated "-I."
20020 am__isrc=' -I$(srcdir)'
20021 # test to see if srcdir already configured
20022 if test -f $srcdir/config.status; then
20023 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
20024 fi
20025 fi
20026
20027 # test whether we have cygpath
20028 if test -z "$CYGPATH_W"; then
20029 if (cygpath --version) >/dev/null 2>/dev/null; then
20030 CYGPATH_W='cygpath -w'
20031 else
20032 CYGPATH_W=echo
20033 fi
20034 fi
20035
20036
20037 # Define the identity of the package.
20038 PACKAGE=libgnu
20039 VERSION=UNUSED-VERSION
20040
20041
20042 # Some tools Automake needs.
20043
20044 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
20045
20046
20047 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
20048
20049
20050 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
20051
20052
20053 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
20054
20055
20056 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
20057
20058 # We need awk for the "check" target. The system "awk" is bad on
20059 # some platforms.
20060 # Always define AMTAR for backward compatibility.
20061
20062 AMTAR=${AMTAR-"${am_missing_run}tar"}
20063
20064 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
20065
20066
20067
20068
20069 depcc="$CC" am_compiler_list=
20070
20071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
20072 $as_echo_n "checking dependency style of $depcc... " >&6; }
20073 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
20074 $as_echo_n "(cached) " >&6
20075 else
20076 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20077 # We make a subdir and do the tests there. Otherwise we can end up
20078 # making bogus files that we don't know about and never remove. For
20079 # instance it was reported that on HP-UX the gcc test will end up
20080 # making a dummy file named `D' -- because `-MD' means `put the output
20081 # in D'.
20082 mkdir conftest.dir
20083 # Copy depcomp to subdir because otherwise we won't find it if we're
20084 # using a relative directory.
20085 cp "$am_depcomp" conftest.dir
20086 cd conftest.dir
20087 # We will build objects and dependencies in a subdirectory because
20088 # it helps to detect inapplicable dependency modes. For instance
20089 # both Tru64's cc and ICC support -MD to output dependencies as a
20090 # side effect of compilation, but ICC will put the dependencies in
20091 # the current directory while Tru64 will put them in the object
20092 # directory.
20093 mkdir sub
20094
20095 am_cv_CC_dependencies_compiler_type=none
20096 if test "$am_compiler_list" = ""; then
20097 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20098 fi
20099 am__universal=false
20100 case " $depcc " in #(
20101 *\ -arch\ *\ -arch\ *) am__universal=true ;;
20102 esac
20103
20104 for depmode in $am_compiler_list; do
20105 # Setup a source with many dependencies, because some compilers
20106 # like to wrap large dependency lists on column 80 (with \), and
20107 # we should not choose a depcomp mode which is confused by this.
20108 #
20109 # We need to recreate these files for each test, as the compiler may
20110 # overwrite some of them when testing with obscure command lines.
20111 # This happens at least with the AIX C compiler.
20112 : > sub/conftest.c
20113 for i in 1 2 3 4 5 6; do
20114 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20115 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20116 # Solaris 8's {/usr,}/bin/sh.
20117 touch sub/conftst$i.h
20118 done
20119 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20120
20121 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20122 # mode. It turns out that the SunPro C++ compiler does not properly
20123 # handle `-M -o', and we need to detect this. Also, some Intel
20124 # versions had trouble with output in subdirs
20125 am__obj=sub/conftest.${OBJEXT-o}
20126 am__minus_obj="-o $am__obj"
20127 case $depmode in
20128 gcc)
20129 # This depmode causes a compiler race in universal mode.
20130 test "$am__universal" = false || continue
20131 ;;
20132 nosideeffect)
20133 # after this tag, mechanisms are not by side-effect, so they'll
20134 # only be used when explicitly requested
20135 if test "x$enable_dependency_tracking" = xyes; then
20136 continue
20137 else
20138 break
20139 fi
20140 ;;
20141 msvisualcpp | msvcmsys)
20142 # This compiler won't grok `-c -o', but also, the minuso test has
20143 # not run yet. These depmodes are late enough in the game, and
20144 # so weak that their functioning should not be impacted.
20145 am__obj=conftest.${OBJEXT-o}
20146 am__minus_obj=
20147 ;;
20148 none) break ;;
20149 esac
20150 if depmode=$depmode \
20151 source=sub/conftest.c object=$am__obj \
20152 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20153 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
20154 >/dev/null 2>conftest.err &&
20155 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
20156 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20157 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
20158 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20159 # icc doesn't choke on unknown options, it will just issue warnings
20160 # or remarks (even with -Werror). So we grep stderr for any message
20161 # that says an option was ignored or not supported.
20162 # When given -MP, icc 7.0 and 7.1 complain thusly:
20163 # icc: Command line warning: ignoring option '-M'; no argument required
20164 # The diagnosis changed in icc 8.0:
20165 # icc: Command line remark: option '-MP' not supported
20166 if (grep 'ignoring option' conftest.err ||
20167 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20168 am_cv_CC_dependencies_compiler_type=$depmode
20169 break
20170 fi
20171 fi
20172 done
20173
20174 cd ..
20175 rm -rf conftest.dir
20176 else
20177 am_cv_CC_dependencies_compiler_type=none
20178 fi
20179
20180 fi
20181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
20182 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
20183 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20184
20185 if
20186 test "x$enable_dependency_tracking" != xno \
20187 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20188 am__fastdepCC_TRUE=
20189 am__fastdepCC_FALSE='#'
20190 else
20191 am__fastdepCC_TRUE='#'
20192 am__fastdepCC_FALSE=
20193 fi
20194
20195
20196
20197
20198 # --------------------- #
20199 # Checks for programs. #
20200 # --------------------- #
20201
20202
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
20204 $as_echo_n "checking whether ln -s works... " >&6; }
20205 LN_S=$as_ln_s
20206 if test "$LN_S" = "ln -s"; then
20207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20208 $as_echo "yes" >&6; }
20209 else
20210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
20211 $as_echo "no, using $LN_S" >&6; }
20212 fi
20213
20214 if test -n "$ac_tool_prefix"; then
20215 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
20216 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
20217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20218 $as_echo_n "checking for $ac_word... " >&6; }
20219 if test "${ac_cv_prog_RANLIB+set}" = set; then :
20220 $as_echo_n "(cached) " >&6
20221 else
20222 if test -n "$RANLIB"; then
20223 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
20224 else
20225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20226 for as_dir in $PATH
20227 do
20228 IFS=$as_save_IFS
20229 test -z "$as_dir" && as_dir=.
20230 for ac_exec_ext in '' $ac_executable_extensions; do
20231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20232 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
20233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20234 break 2
20235 fi
20236 done
20237 done
20238 IFS=$as_save_IFS
20239
20240 fi
20241 fi
20242 RANLIB=$ac_cv_prog_RANLIB
20243 if test -n "$RANLIB"; then
20244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
20245 $as_echo "$RANLIB" >&6; }
20246 else
20247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20248 $as_echo "no" >&6; }
20249 fi
20250
20251
20252 fi
20253 if test -z "$ac_cv_prog_RANLIB"; then
20254 ac_ct_RANLIB=$RANLIB
20255 # Extract the first word of "ranlib", so it can be a program name with args.
20256 set dummy ranlib; ac_word=$2
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20258 $as_echo_n "checking for $ac_word... " >&6; }
20259 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
20260 $as_echo_n "(cached) " >&6
20261 else
20262 if test -n "$ac_ct_RANLIB"; then
20263 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
20264 else
20265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20266 for as_dir in $PATH
20267 do
20268 IFS=$as_save_IFS
20269 test -z "$as_dir" && as_dir=.
20270 for ac_exec_ext in '' $ac_executable_extensions; do
20271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20272 ac_cv_prog_ac_ct_RANLIB="ranlib"
20273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20274 break 2
20275 fi
20276 done
20277 done
20278 IFS=$as_save_IFS
20279
20280 fi
20281 fi
20282 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
20283 if test -n "$ac_ct_RANLIB"; then
20284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
20285 $as_echo "$ac_ct_RANLIB" >&6; }
20286 else
20287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20288 $as_echo "no" >&6; }
20289 fi
20290
20291 if test "x$ac_ct_RANLIB" = x; then
20292 RANLIB=":"
20293 else
20294 case $cross_compiling:$ac_tool_warned in
20295 yes:)
20296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20298 ac_tool_warned=yes ;;
20299 esac
20300 RANLIB=$ac_ct_RANLIB
20301 fi
20302 else
20303 RANLIB="$ac_cv_prog_RANLIB"
20304 fi
20305
20306
20307 if test -n "$ac_tool_prefix"; then
20308 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
20309 set dummy ${ac_tool_prefix}ar; ac_word=$2
20310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20311 $as_echo_n "checking for $ac_word... " >&6; }
20312 if test "${ac_cv_prog_AR+set}" = set; then :
20313 $as_echo_n "(cached) " >&6
20314 else
20315 if test -n "$AR"; then
20316 ac_cv_prog_AR="$AR" # Let the user override the test.
20317 else
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 for ac_exec_ext in '' $ac_executable_extensions; do
20324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20325 ac_cv_prog_AR="${ac_tool_prefix}ar"
20326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20327 break 2
20328 fi
20329 done
20330 done
20331 IFS=$as_save_IFS
20332
20333 fi
20334 fi
20335 AR=$ac_cv_prog_AR
20336 if test -n "$AR"; then
20337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
20338 $as_echo "$AR" >&6; }
20339 else
20340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20341 $as_echo "no" >&6; }
20342 fi
20343
20344
20345 fi
20346 if test -z "$ac_cv_prog_AR"; then
20347 ac_ct_AR=$AR
20348 # Extract the first word of "ar", so it can be a program name with args.
20349 set dummy ar; ac_word=$2
20350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20351 $as_echo_n "checking for $ac_word... " >&6; }
20352 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
20353 $as_echo_n "(cached) " >&6
20354 else
20355 if test -n "$ac_ct_AR"; then
20356 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
20357 else
20358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20359 for as_dir in $PATH
20360 do
20361 IFS=$as_save_IFS
20362 test -z "$as_dir" && as_dir=.
20363 for ac_exec_ext in '' $ac_executable_extensions; do
20364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20365 ac_cv_prog_ac_ct_AR="ar"
20366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20367 break 2
20368 fi
20369 done
20370 done
20371 IFS=$as_save_IFS
20372
20373 fi
20374 fi
20375 ac_ct_AR=$ac_cv_prog_ac_ct_AR
20376 if test -n "$ac_ct_AR"; then
20377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
20378 $as_echo "$ac_ct_AR" >&6; }
20379 else
20380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20381 $as_echo "no" >&6; }
20382 fi
20383
20384 if test "x$ac_ct_AR" = x; then
20385 AR=""
20386 else
20387 case $cross_compiling:$ac_tool_warned in
20388 yes:)
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20391 ac_tool_warned=yes ;;
20392 esac
20393 AR=$ac_ct_AR
20394 fi
20395 else
20396 AR="$ac_cv_prog_AR"
20397 fi
20398
20399
20400 # ---------------------- #
20401 # Checks for libraries. #
20402 # ---------------------- #
20403
20404 ac_config_files="$ac_config_files Makefile import/Makefile"
20405
20406 ac_config_commands="$ac_config_commands default"
20407
20408 cat >confcache <<\_ACEOF
20409 # This file is a shell script that caches the results of configure
20410 # tests run on this system so they can be shared between configure
20411 # scripts and configure runs, see configure's option --config-cache.
20412 # It is not useful on other systems. If it contains results you don't
20413 # want to keep, you may remove or edit it.
20414 #
20415 # config.status only pays attention to the cache file if you give it
20416 # the --recheck option to rerun configure.
20417 #
20418 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20419 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20420 # following values.
20421
20422 _ACEOF
20423
20424 # The following way of writing the cache mishandles newlines in values,
20425 # but we know of no workaround that is simple, portable, and efficient.
20426 # So, we kill variables containing newlines.
20427 # Ultrix sh set writes to stderr and can't be redirected directly,
20428 # and sets the high bit in the cache file unless we assign to the vars.
20429 (
20430 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20431 eval ac_val=\$$ac_var
20432 case $ac_val in #(
20433 *${as_nl}*)
20434 case $ac_var in #(
20435 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20436 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20437 esac
20438 case $ac_var in #(
20439 _ | IFS | as_nl) ;; #(
20440 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20441 *) { eval $ac_var=; unset $ac_var;} ;;
20442 esac ;;
20443 esac
20444 done
20445
20446 (set) 2>&1 |
20447 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20448 *${as_nl}ac_space=\ *)
20449 # `set' does not quote correctly, so add quotes: double-quote
20450 # substitution turns \\\\ into \\, and sed turns \\ into \.
20451 sed -n \
20452 "s/'/'\\\\''/g;
20453 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20454 ;; #(
20455 *)
20456 # `set' quotes correctly as required by POSIX, so do not add quotes.
20457 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20458 ;;
20459 esac |
20460 sort
20461 ) |
20462 sed '
20463 /^ac_cv_env_/b end
20464 t clear
20465 :clear
20466 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20467 t end
20468 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20469 :end' >>confcache
20470 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20471 if test -w "$cache_file"; then
20472 test "x$cache_file" != "x/dev/null" &&
20473 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20474 $as_echo "$as_me: updating cache $cache_file" >&6;}
20475 cat confcache >$cache_file
20476 else
20477 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20478 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20479 fi
20480 fi
20481 rm -f confcache
20482
20483 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20484 # Let make expand exec_prefix.
20485 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20486
20487 DEFS=-DHAVE_CONFIG_H
20488
20489 ac_libobjs=
20490 ac_ltlibobjs=
20491 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20492 # 1. Remove the extension, and $U if already installed.
20493 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20494 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20495 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20496 # will be set to the directory where LIBOBJS objects are built.
20497 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20498 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20499 done
20500 LIBOBJS=$ac_libobjs
20501
20502 LTLIBOBJS=$ac_ltlibobjs
20503
20504
20505 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20506 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
20507 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20508 fi
20509 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
20510 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
20511 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20512 fi
20513 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
20514 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
20515 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20516 fi
20517 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
20518 as_fn_error "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
20519 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20520 fi
20521 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
20522 as_fn_error "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
20523 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20524 fi
20525 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
20526 as_fn_error "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
20527 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20528 fi
20529 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
20530 as_fn_error "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
20531 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20532 fi
20533 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
20534 as_fn_error "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
20535 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20536 fi
20537 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
20538 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
20539 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20540 fi
20541
20542
20543 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
20544 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
20545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20546 fi
20547 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
20548 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
20549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20550 fi
20551
20552 gl_libobjs=
20553 gl_ltlibobjs=
20554 if test -n "$gl_LIBOBJS"; then
20555 # Remove the extension.
20556 sed_drop_objext='s/\.o$//;s/\.obj$//'
20557 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
20558 gl_libobjs="$gl_libobjs $i.$ac_objext"
20559 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
20560 done
20561 fi
20562 gl_LIBOBJS=$gl_libobjs
20563
20564 gl_LTLIBOBJS=$gl_ltlibobjs
20565
20566
20567
20568 gltests_libobjs=
20569 gltests_ltlibobjs=
20570 if test -n "$gltests_LIBOBJS"; then
20571 # Remove the extension.
20572 sed_drop_objext='s/\.o$//;s/\.obj$//'
20573 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
20574 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
20575 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
20576 done
20577 fi
20578 gltests_LIBOBJS=$gltests_libobjs
20579
20580 gltests_LTLIBOBJS=$gltests_ltlibobjs
20581
20582
20583 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20584 as_fn_error "conditional \"AMDEP\" was never defined.
20585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20586 fi
20587 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20588 as_fn_error "conditional \"am__fastdepCC\" was never defined.
20589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20590 fi
20591 if test -n "$EXEEXT"; then
20592 am__EXEEXT_TRUE=
20593 am__EXEEXT_FALSE='#'
20594 else
20595 am__EXEEXT_TRUE='#'
20596 am__EXEEXT_FALSE=
20597 fi
20598
20599
20600 : ${CONFIG_STATUS=./config.status}
20601 ac_write_fail=0
20602 ac_clean_files_save=$ac_clean_files
20603 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20604 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20605 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20606 as_write_fail=0
20607 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20608 #! $SHELL
20609 # Generated by $as_me.
20610 # Run this file to recreate the current configuration.
20611 # Compiler output produced by configure, useful for debugging
20612 # configure, is in config.log if it exists.
20613
20614 debug=false
20615 ac_cs_recheck=false
20616 ac_cs_silent=false
20617
20618 SHELL=\${CONFIG_SHELL-$SHELL}
20619 export SHELL
20620 _ASEOF
20621 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20622 ## -------------------- ##
20623 ## M4sh Initialization. ##
20624 ## -------------------- ##
20625
20626 # Be more Bourne compatible
20627 DUALCASE=1; export DUALCASE # for MKS sh
20628 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20629 emulate sh
20630 NULLCMD=:
20631 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20632 # is contrary to our usage. Disable this feature.
20633 alias -g '${1+"$@"}'='"$@"'
20634 setopt NO_GLOB_SUBST
20635 else
20636 case `(set -o) 2>/dev/null` in #(
20637 *posix*) :
20638 set -o posix ;; #(
20639 *) :
20640 ;;
20641 esac
20642 fi
20643
20644
20645 as_nl='
20646 '
20647 export as_nl
20648 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20649 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20650 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20651 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20652 # Prefer a ksh shell builtin over an external printf program on Solaris,
20653 # but without wasting forks for bash or zsh.
20654 if test -z "$BASH_VERSION$ZSH_VERSION" \
20655 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20656 as_echo='print -r --'
20657 as_echo_n='print -rn --'
20658 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20659 as_echo='printf %s\n'
20660 as_echo_n='printf %s'
20661 else
20662 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20663 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20664 as_echo_n='/usr/ucb/echo -n'
20665 else
20666 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20667 as_echo_n_body='eval
20668 arg=$1;
20669 case $arg in #(
20670 *"$as_nl"*)
20671 expr "X$arg" : "X\\(.*\\)$as_nl";
20672 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20673 esac;
20674 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20675 '
20676 export as_echo_n_body
20677 as_echo_n='sh -c $as_echo_n_body as_echo'
20678 fi
20679 export as_echo_body
20680 as_echo='sh -c $as_echo_body as_echo'
20681 fi
20682
20683 # The user is always right.
20684 if test "${PATH_SEPARATOR+set}" != set; then
20685 PATH_SEPARATOR=:
20686 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20687 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20688 PATH_SEPARATOR=';'
20689 }
20690 fi
20691
20692
20693 # IFS
20694 # We need space, tab and new line, in precisely that order. Quoting is
20695 # there to prevent editors from complaining about space-tab.
20696 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20697 # splitting by setting IFS to empty value.)
20698 IFS=" "" $as_nl"
20699
20700 # Find who we are. Look in the path if we contain no directory separator.
20701 case $0 in #((
20702 *[\\/]* ) as_myself=$0 ;;
20703 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20704 for as_dir in $PATH
20705 do
20706 IFS=$as_save_IFS
20707 test -z "$as_dir" && as_dir=.
20708 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20709 done
20710 IFS=$as_save_IFS
20711
20712 ;;
20713 esac
20714 # We did not find ourselves, most probably we were run as `sh COMMAND'
20715 # in which case we are not to be found in the path.
20716 if test "x$as_myself" = x; then
20717 as_myself=$0
20718 fi
20719 if test ! -f "$as_myself"; then
20720 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20721 exit 1
20722 fi
20723
20724 # Unset variables that we do not need and which cause bugs (e.g. in
20725 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20726 # suppresses any "Segmentation fault" message there. '((' could
20727 # trigger a bug in pdksh 5.2.14.
20728 for as_var in BASH_ENV ENV MAIL MAILPATH
20729 do eval test x\${$as_var+set} = xset \
20730 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20731 done
20732 PS1='$ '
20733 PS2='> '
20734 PS4='+ '
20735
20736 # NLS nuisances.
20737 LC_ALL=C
20738 export LC_ALL
20739 LANGUAGE=C
20740 export LANGUAGE
20741
20742 # CDPATH.
20743 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20744
20745
20746 # as_fn_error ERROR [LINENO LOG_FD]
20747 # ---------------------------------
20748 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20749 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20750 # script with status $?, using 1 if that was 0.
20751 as_fn_error ()
20752 {
20753 as_status=$?; test $as_status -eq 0 && as_status=1
20754 if test "$3"; then
20755 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20756 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
20757 fi
20758 $as_echo "$as_me: error: $1" >&2
20759 as_fn_exit $as_status
20760 } # as_fn_error
20761
20762
20763 # as_fn_set_status STATUS
20764 # -----------------------
20765 # Set $? to STATUS, without forking.
20766 as_fn_set_status ()
20767 {
20768 return $1
20769 } # as_fn_set_status
20770
20771 # as_fn_exit STATUS
20772 # -----------------
20773 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20774 as_fn_exit ()
20775 {
20776 set +e
20777 as_fn_set_status $1
20778 exit $1
20779 } # as_fn_exit
20780
20781 # as_fn_unset VAR
20782 # ---------------
20783 # Portably unset VAR.
20784 as_fn_unset ()
20785 {
20786 { eval $1=; unset $1;}
20787 }
20788 as_unset=as_fn_unset
20789 # as_fn_append VAR VALUE
20790 # ----------------------
20791 # Append the text in VALUE to the end of the definition contained in VAR. Take
20792 # advantage of any shell optimizations that allow amortized linear growth over
20793 # repeated appends, instead of the typical quadratic growth present in naive
20794 # implementations.
20795 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20796 eval 'as_fn_append ()
20797 {
20798 eval $1+=\$2
20799 }'
20800 else
20801 as_fn_append ()
20802 {
20803 eval $1=\$$1\$2
20804 }
20805 fi # as_fn_append
20806
20807 # as_fn_arith ARG...
20808 # ------------------
20809 # Perform arithmetic evaluation on the ARGs, and store the result in the
20810 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20811 # must be portable across $(()) and expr.
20812 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20813 eval 'as_fn_arith ()
20814 {
20815 as_val=$(( $* ))
20816 }'
20817 else
20818 as_fn_arith ()
20819 {
20820 as_val=`expr "$@" || test $? -eq 1`
20821 }
20822 fi # as_fn_arith
20823
20824
20825 if expr a : '\(a\)' >/dev/null 2>&1 &&
20826 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20827 as_expr=expr
20828 else
20829 as_expr=false
20830 fi
20831
20832 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20833 as_basename=basename
20834 else
20835 as_basename=false
20836 fi
20837
20838 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20839 as_dirname=dirname
20840 else
20841 as_dirname=false
20842 fi
20843
20844 as_me=`$as_basename -- "$0" ||
20845 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20846 X"$0" : 'X\(//\)$' \| \
20847 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20848 $as_echo X/"$0" |
20849 sed '/^.*\/\([^/][^/]*\)\/*$/{
20850 s//\1/
20851 q
20852 }
20853 /^X\/\(\/\/\)$/{
20854 s//\1/
20855 q
20856 }
20857 /^X\/\(\/\).*/{
20858 s//\1/
20859 q
20860 }
20861 s/.*/./; q'`
20862
20863 # Avoid depending upon Character Ranges.
20864 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20865 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20866 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20867 as_cr_digits='0123456789'
20868 as_cr_alnum=$as_cr_Letters$as_cr_digits
20869
20870 ECHO_C= ECHO_N= ECHO_T=
20871 case `echo -n x` in #(((((
20872 -n*)
20873 case `echo 'xy\c'` in
20874 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20875 xy) ECHO_C='\c';;
20876 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20877 ECHO_T=' ';;
20878 esac;;
20879 *)
20880 ECHO_N='-n';;
20881 esac
20882
20883 rm -f conf$$ conf$$.exe conf$$.file
20884 if test -d conf$$.dir; then
20885 rm -f conf$$.dir/conf$$.file
20886 else
20887 rm -f conf$$.dir
20888 mkdir conf$$.dir 2>/dev/null
20889 fi
20890 if (echo >conf$$.file) 2>/dev/null; then
20891 if ln -s conf$$.file conf$$ 2>/dev/null; then
20892 as_ln_s='ln -s'
20893 # ... but there are two gotchas:
20894 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20895 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20896 # In both cases, we have to default to `cp -p'.
20897 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20898 as_ln_s='cp -p'
20899 elif ln conf$$.file conf$$ 2>/dev/null; then
20900 as_ln_s=ln
20901 else
20902 as_ln_s='cp -p'
20903 fi
20904 else
20905 as_ln_s='cp -p'
20906 fi
20907 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20908 rmdir conf$$.dir 2>/dev/null
20909
20910
20911 # as_fn_mkdir_p
20912 # -------------
20913 # Create "$as_dir" as a directory, including parents if necessary.
20914 as_fn_mkdir_p ()
20915 {
20916
20917 case $as_dir in #(
20918 -*) as_dir=./$as_dir;;
20919 esac
20920 test -d "$as_dir" || eval $as_mkdir_p || {
20921 as_dirs=
20922 while :; do
20923 case $as_dir in #(
20924 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20925 *) as_qdir=$as_dir;;
20926 esac
20927 as_dirs="'$as_qdir' $as_dirs"
20928 as_dir=`$as_dirname -- "$as_dir" ||
20929 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20930 X"$as_dir" : 'X\(//\)[^/]' \| \
20931 X"$as_dir" : 'X\(//\)$' \| \
20932 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20933 $as_echo X"$as_dir" |
20934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20935 s//\1/
20936 q
20937 }
20938 /^X\(\/\/\)[^/].*/{
20939 s//\1/
20940 q
20941 }
20942 /^X\(\/\/\)$/{
20943 s//\1/
20944 q
20945 }
20946 /^X\(\/\).*/{
20947 s//\1/
20948 q
20949 }
20950 s/.*/./; q'`
20951 test -d "$as_dir" && break
20952 done
20953 test -z "$as_dirs" || eval "mkdir $as_dirs"
20954 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
20955
20956
20957 } # as_fn_mkdir_p
20958 if mkdir -p . 2>/dev/null; then
20959 as_mkdir_p='mkdir -p "$as_dir"'
20960 else
20961 test -d ./-p && rmdir ./-p
20962 as_mkdir_p=false
20963 fi
20964
20965 if test -x / >/dev/null 2>&1; then
20966 as_test_x='test -x'
20967 else
20968 if ls -dL / >/dev/null 2>&1; then
20969 as_ls_L_option=L
20970 else
20971 as_ls_L_option=
20972 fi
20973 as_test_x='
20974 eval sh -c '\''
20975 if test -d "$1"; then
20976 test -d "$1/.";
20977 else
20978 case $1 in #(
20979 -*)set "./$1";;
20980 esac;
20981 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20982 ???[sx]*):;;*)false;;esac;fi
20983 '\'' sh
20984 '
20985 fi
20986 as_executable_p=$as_test_x
20987
20988 # Sed expression to map a string onto a valid CPP name.
20989 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20990
20991 # Sed expression to map a string onto a valid variable name.
20992 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20993
20994
20995 exec 6>&1
20996 ## ----------------------------------- ##
20997 ## Main body of $CONFIG_STATUS script. ##
20998 ## ----------------------------------- ##
20999 _ASEOF
21000 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21001
21002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21003 # Save the log message, to keep $0 and so on meaningful, and to
21004 # report actual input values of CONFIG_FILES etc. instead of their
21005 # values after options handling.
21006 ac_log="
21007 This file was extended by $as_me, which was
21008 generated by GNU Autoconf 2.64. Invocation command line was
21009
21010 CONFIG_FILES = $CONFIG_FILES
21011 CONFIG_HEADERS = $CONFIG_HEADERS
21012 CONFIG_LINKS = $CONFIG_LINKS
21013 CONFIG_COMMANDS = $CONFIG_COMMANDS
21014 $ $0 $@
21015
21016 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21017 "
21018
21019 _ACEOF
21020
21021 case $ac_config_files in *"
21022 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21023 esac
21024
21025 case $ac_config_headers in *"
21026 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21027 esac
21028
21029
21030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21031 # Files that config.status was made for.
21032 config_files="$ac_config_files"
21033 config_headers="$ac_config_headers"
21034 config_commands="$ac_config_commands"
21035
21036 _ACEOF
21037
21038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21039 ac_cs_usage="\
21040 \`$as_me' instantiates files and other configuration actions
21041 from templates according to the current configuration. Unless the files
21042 and actions are specified as TAGs, all are instantiated by default.
21043
21044 Usage: $0 [OPTION]... [TAG]...
21045
21046 -h, --help print this help, then exit
21047 -V, --version print version number and configuration settings, then exit
21048 -q, --quiet, --silent
21049 do not print progress messages
21050 -d, --debug don't remove temporary files
21051 --recheck update $as_me by reconfiguring in the same conditions
21052 --file=FILE[:TEMPLATE]
21053 instantiate the configuration file FILE
21054 --header=FILE[:TEMPLATE]
21055 instantiate the configuration header FILE
21056
21057 Configuration files:
21058 $config_files
21059
21060 Configuration headers:
21061 $config_headers
21062
21063 Configuration commands:
21064 $config_commands
21065
21066 Report bugs to the package provider."
21067
21068 _ACEOF
21069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21070 ac_cs_version="\\
21071 config.status
21072 configured by $0, generated by GNU Autoconf 2.64,
21073 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21074
21075 Copyright (C) 2009 Free Software Foundation, Inc.
21076 This config.status script is free software; the Free Software Foundation
21077 gives unlimited permission to copy, distribute and modify it."
21078
21079 ac_pwd='$ac_pwd'
21080 srcdir='$srcdir'
21081 INSTALL='$INSTALL'
21082 MKDIR_P='$MKDIR_P'
21083 AWK='$AWK'
21084 test -n "\$AWK" || AWK=awk
21085 _ACEOF
21086
21087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21088 # The default lists apply if the user does not specify any file.
21089 ac_need_defaults=:
21090 while test $# != 0
21091 do
21092 case $1 in
21093 --*=*)
21094 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21095 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21096 ac_shift=:
21097 ;;
21098 *)
21099 ac_option=$1
21100 ac_optarg=$2
21101 ac_shift=shift
21102 ;;
21103 esac
21104
21105 case $ac_option in
21106 # Handling of the options.
21107 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21108 ac_cs_recheck=: ;;
21109 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21110 $as_echo "$ac_cs_version"; exit ;;
21111 --debug | --debu | --deb | --de | --d | -d )
21112 debug=: ;;
21113 --file | --fil | --fi | --f )
21114 $ac_shift
21115 case $ac_optarg in
21116 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21117 esac
21118 as_fn_append CONFIG_FILES " '$ac_optarg'"
21119 ac_need_defaults=false;;
21120 --header | --heade | --head | --hea )
21121 $ac_shift
21122 case $ac_optarg in
21123 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21124 esac
21125 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21126 ac_need_defaults=false;;
21127 --he | --h)
21128 # Conflict between --help and --header
21129 as_fn_error "ambiguous option: \`$1'
21130 Try \`$0 --help' for more information.";;
21131 --help | --hel | -h )
21132 $as_echo "$ac_cs_usage"; exit ;;
21133 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21134 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21135 ac_cs_silent=: ;;
21136
21137 # This is an error.
21138 -*) as_fn_error "unrecognized option: \`$1'
21139 Try \`$0 --help' for more information." ;;
21140
21141 *) as_fn_append ac_config_targets " $1"
21142 ac_need_defaults=false ;;
21143
21144 esac
21145 shift
21146 done
21147
21148 ac_configure_extra_args=
21149
21150 if $ac_cs_silent; then
21151 exec 6>/dev/null
21152 ac_configure_extra_args="$ac_configure_extra_args --silent"
21153 fi
21154
21155 _ACEOF
21156 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21157 if \$ac_cs_recheck; then
21158 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21159 shift
21160 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21161 CONFIG_SHELL='$SHELL'
21162 export CONFIG_SHELL
21163 exec "\$@"
21164 fi
21165
21166 _ACEOF
21167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21168 exec 5>>config.log
21169 {
21170 echo
21171 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21172 ## Running $as_me. ##
21173 _ASBOX
21174 $as_echo "$ac_log"
21175 } >&5
21176
21177 _ACEOF
21178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21179 #
21180 # INIT-COMMANDS
21181 #
21182 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21183
21184 _ACEOF
21185
21186 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21187
21188 # Handling of arguments.
21189 for ac_config_target in $ac_config_targets
21190 do
21191 case $ac_config_target in
21192 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
21193 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21194 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21195 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
21196 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
21197
21198 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21199 esac
21200 done
21201
21202
21203 # If the user did not use the arguments to specify the items to instantiate,
21204 # then the envvar interface is used. Set only those that are not.
21205 # We use the long form for the default assignment because of an extremely
21206 # bizarre bug on SunOS 4.1.3.
21207 if $ac_need_defaults; then
21208 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21209 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21210 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21211 fi
21212
21213 # Have a temporary directory for convenience. Make it in the build tree
21214 # simply because there is no reason against having it here, and in addition,
21215 # creating and moving files from /tmp can sometimes cause problems.
21216 # Hook for its removal unless debugging.
21217 # Note that there is a small window in which the directory will not be cleaned:
21218 # after its creation but before its name has been assigned to `$tmp'.
21219 $debug ||
21220 {
21221 tmp=
21222 trap 'exit_status=$?
21223 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21224 ' 0
21225 trap 'as_fn_exit 1' 1 2 13 15
21226 }
21227 # Create a (secure) tmp directory for tmp files.
21228
21229 {
21230 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21231 test -n "$tmp" && test -d "$tmp"
21232 } ||
21233 {
21234 tmp=./conf$$-$RANDOM
21235 (umask 077 && mkdir "$tmp")
21236 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
21237
21238 # Set up the scripts for CONFIG_FILES section.
21239 # No need to generate them if there are no CONFIG_FILES.
21240 # This happens for instance with `./config.status config.h'.
21241 if test -n "$CONFIG_FILES"; then
21242
21243
21244 ac_cr=`echo X | tr X '\015'`
21245 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21246 # But we know of no other shell where ac_cr would be empty at this
21247 # point, so we can use a bashism as a fallback.
21248 if test "x$ac_cr" = x; then
21249 eval ac_cr=\$\'\\r\'
21250 fi
21251 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21252 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21253 ac_cs_awk_cr='\r'
21254 else
21255 ac_cs_awk_cr=$ac_cr
21256 fi
21257
21258 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21259 _ACEOF
21260
21261
21262 {
21263 echo "cat >conf$$subs.awk <<_ACEOF" &&
21264 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21265 echo "_ACEOF"
21266 } >conf$$subs.sh ||
21267 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21268 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21269 ac_delim='%!_!# '
21270 for ac_last_try in false false false false false :; do
21271 . ./conf$$subs.sh ||
21272 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21273
21274 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21275 if test $ac_delim_n = $ac_delim_num; then
21276 break
21277 elif $ac_last_try; then
21278 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
21279 else
21280 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21281 fi
21282 done
21283 rm -f conf$$subs.sh
21284
21285 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21286 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21287 _ACEOF
21288 sed -n '
21289 h
21290 s/^/S["/; s/!.*/"]=/
21291 p
21292 g
21293 s/^[^!]*!//
21294 :repl
21295 t repl
21296 s/'"$ac_delim"'$//
21297 t delim
21298 :nl
21299 h
21300 s/\(.\{148\}\).*/\1/
21301 t more1
21302 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21303 p
21304 n
21305 b repl
21306 :more1
21307 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21308 p
21309 g
21310 s/.\{148\}//
21311 t nl
21312 :delim
21313 h
21314 s/\(.\{148\}\).*/\1/
21315 t more2
21316 s/["\\]/\\&/g; s/^/"/; s/$/"/
21317 p
21318 b
21319 :more2
21320 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21321 p
21322 g
21323 s/.\{148\}//
21324 t delim
21325 ' <conf$$subs.awk | sed '
21326 /^[^""]/{
21327 N
21328 s/\n//
21329 }
21330 ' >>$CONFIG_STATUS || ac_write_fail=1
21331 rm -f conf$$subs.awk
21332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21333 _ACAWK
21334 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21335 for (key in S) S_is_set[key] = 1
21336 FS = "\a"
21337
21338 }
21339 {
21340 line = $ 0
21341 nfields = split(line, field, "@")
21342 substed = 0
21343 len = length(field[1])
21344 for (i = 2; i < nfields; i++) {
21345 key = field[i]
21346 keylen = length(key)
21347 if (S_is_set[key]) {
21348 value = S[key]
21349 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21350 len += length(value) + length(field[++i])
21351 substed = 1
21352 } else
21353 len += 1 + keylen
21354 }
21355
21356 print line
21357 }
21358
21359 _ACAWK
21360 _ACEOF
21361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21362 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21363 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21364 else
21365 cat
21366 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21367 || as_fn_error "could not setup config files machinery" "$LINENO" 5
21368 _ACEOF
21369
21370 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21371 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21372 # trailing colons and then remove the whole line if VPATH becomes empty
21373 # (actually we leave an empty line to preserve line numbers).
21374 if test "x$srcdir" = x.; then
21375 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21376 s/:*\$(srcdir):*/:/
21377 s/:*\${srcdir}:*/:/
21378 s/:*@srcdir@:*/:/
21379 s/^\([^=]*=[ ]*\):*/\1/
21380 s/:*$//
21381 s/^[^=]*=[ ]*$//
21382 }'
21383 fi
21384
21385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21386 fi # test -n "$CONFIG_FILES"
21387
21388 # Set up the scripts for CONFIG_HEADERS section.
21389 # No need to generate them if there are no CONFIG_HEADERS.
21390 # This happens for instance with `./config.status Makefile'.
21391 if test -n "$CONFIG_HEADERS"; then
21392 cat >"$tmp/defines.awk" <<\_ACAWK ||
21393 BEGIN {
21394 _ACEOF
21395
21396 # Transform confdefs.h into an awk script `defines.awk', embedded as
21397 # here-document in config.status, that substitutes the proper values into
21398 # config.h.in to produce config.h.
21399
21400 # Create a delimiter string that does not exist in confdefs.h, to ease
21401 # handling of long lines.
21402 ac_delim='%!_!# '
21403 for ac_last_try in false false :; do
21404 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21405 if test -z "$ac_t"; then
21406 break
21407 elif $ac_last_try; then
21408 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
21409 else
21410 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21411 fi
21412 done
21413
21414 # For the awk script, D is an array of macro values keyed by name,
21415 # likewise P contains macro parameters if any. Preserve backslash
21416 # newline sequences.
21417
21418 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21419 sed -n '
21420 s/.\{148\}/&'"$ac_delim"'/g
21421 t rset
21422 :rset
21423 s/^[ ]*#[ ]*define[ ][ ]*/ /
21424 t def
21425 d
21426 :def
21427 s/\\$//
21428 t bsnl
21429 s/["\\]/\\&/g
21430 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21431 D["\1"]=" \3"/p
21432 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21433 d
21434 :bsnl
21435 s/["\\]/\\&/g
21436 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21437 D["\1"]=" \3\\\\\\n"\\/p
21438 t cont
21439 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21440 t cont
21441 d
21442 :cont
21443 n
21444 s/.\{148\}/&'"$ac_delim"'/g
21445 t clear
21446 :clear
21447 s/\\$//
21448 t bsnlc
21449 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21450 d
21451 :bsnlc
21452 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21453 b cont
21454 ' <confdefs.h | sed '
21455 s/'"$ac_delim"'/"\\\
21456 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21457
21458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21459 for (key in D) D_is_set[key] = 1
21460 FS = "\a"
21461 }
21462 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21463 line = \$ 0
21464 split(line, arg, " ")
21465 if (arg[1] == "#") {
21466 defundef = arg[2]
21467 mac1 = arg[3]
21468 } else {
21469 defundef = substr(arg[1], 2)
21470 mac1 = arg[2]
21471 }
21472 split(mac1, mac2, "(") #)
21473 macro = mac2[1]
21474 prefix = substr(line, 1, index(line, defundef) - 1)
21475 if (D_is_set[macro]) {
21476 # Preserve the white space surrounding the "#".
21477 print prefix "define", macro P[macro] D[macro]
21478 next
21479 } else {
21480 # Replace #undef with comments. This is necessary, for example,
21481 # in the case of _POSIX_SOURCE, which is predefined and required
21482 # on some systems where configure will not decide to define it.
21483 if (defundef == "undef") {
21484 print "/*", prefix defundef, macro, "*/"
21485 next
21486 }
21487 }
21488 }
21489 { print }
21490 _ACAWK
21491 _ACEOF
21492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21493 as_fn_error "could not setup config headers machinery" "$LINENO" 5
21494 fi # test -n "$CONFIG_HEADERS"
21495
21496
21497 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21498 shift
21499 for ac_tag
21500 do
21501 case $ac_tag in
21502 :[FHLC]) ac_mode=$ac_tag; continue;;
21503 esac
21504 case $ac_mode$ac_tag in
21505 :[FHL]*:*);;
21506 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
21507 :[FH]-) ac_tag=-:-;;
21508 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21509 esac
21510 ac_save_IFS=$IFS
21511 IFS=:
21512 set x $ac_tag
21513 IFS=$ac_save_IFS
21514 shift
21515 ac_file=$1
21516 shift
21517
21518 case $ac_mode in
21519 :L) ac_source=$1;;
21520 :[FH])
21521 ac_file_inputs=
21522 for ac_f
21523 do
21524 case $ac_f in
21525 -) ac_f="$tmp/stdin";;
21526 *) # Look for the file first in the build tree, then in the source tree
21527 # (if the path is not absolute). The absolute path cannot be DOS-style,
21528 # because $ac_f cannot contain `:'.
21529 test -f "$ac_f" ||
21530 case $ac_f in
21531 [\\/$]*) false;;
21532 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21533 esac ||
21534 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21535 esac
21536 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21537 as_fn_append ac_file_inputs " '$ac_f'"
21538 done
21539
21540 # Let's still pretend it is `configure' which instantiates (i.e., don't
21541 # use $as_me), people would be surprised to read:
21542 # /* config.h. Generated by config.status. */
21543 configure_input='Generated from '`
21544 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21545 `' by configure.'
21546 if test x"$ac_file" != x-; then
21547 configure_input="$ac_file. $configure_input"
21548 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21549 $as_echo "$as_me: creating $ac_file" >&6;}
21550 fi
21551 # Neutralize special characters interpreted by sed in replacement strings.
21552 case $configure_input in #(
21553 *\&* | *\|* | *\\* )
21554 ac_sed_conf_input=`$as_echo "$configure_input" |
21555 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21556 *) ac_sed_conf_input=$configure_input;;
21557 esac
21558
21559 case $ac_tag in
21560 *:-:* | *:-) cat >"$tmp/stdin" \
21561 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
21562 esac
21563 ;;
21564 esac
21565
21566 ac_dir=`$as_dirname -- "$ac_file" ||
21567 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21568 X"$ac_file" : 'X\(//\)[^/]' \| \
21569 X"$ac_file" : 'X\(//\)$' \| \
21570 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21571 $as_echo X"$ac_file" |
21572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21573 s//\1/
21574 q
21575 }
21576 /^X\(\/\/\)[^/].*/{
21577 s//\1/
21578 q
21579 }
21580 /^X\(\/\/\)$/{
21581 s//\1/
21582 q
21583 }
21584 /^X\(\/\).*/{
21585 s//\1/
21586 q
21587 }
21588 s/.*/./; q'`
21589 as_dir="$ac_dir"; as_fn_mkdir_p
21590 ac_builddir=.
21591
21592 case "$ac_dir" in
21593 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21594 *)
21595 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21596 # A ".." for each directory in $ac_dir_suffix.
21597 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21598 case $ac_top_builddir_sub in
21599 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21600 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21601 esac ;;
21602 esac
21603 ac_abs_top_builddir=$ac_pwd
21604 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21605 # for backward compatibility:
21606 ac_top_builddir=$ac_top_build_prefix
21607
21608 case $srcdir in
21609 .) # We are building in place.
21610 ac_srcdir=.
21611 ac_top_srcdir=$ac_top_builddir_sub
21612 ac_abs_top_srcdir=$ac_pwd ;;
21613 [\\/]* | ?:[\\/]* ) # Absolute name.
21614 ac_srcdir=$srcdir$ac_dir_suffix;
21615 ac_top_srcdir=$srcdir
21616 ac_abs_top_srcdir=$srcdir ;;
21617 *) # Relative name.
21618 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21619 ac_top_srcdir=$ac_top_build_prefix$srcdir
21620 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21621 esac
21622 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21623
21624
21625 case $ac_mode in
21626 :F)
21627 #
21628 # CONFIG_FILE
21629 #
21630
21631 case $INSTALL in
21632 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21633 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21634 esac
21635 ac_MKDIR_P=$MKDIR_P
21636 case $MKDIR_P in
21637 [\\/$]* | ?:[\\/]* ) ;;
21638 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21639 esac
21640 _ACEOF
21641
21642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21643 # If the template does not know about datarootdir, expand it.
21644 # FIXME: This hack should be removed a few years after 2.60.
21645 ac_datarootdir_hack=; ac_datarootdir_seen=
21646 ac_sed_dataroot='
21647 /datarootdir/ {
21648 p
21649 q
21650 }
21651 /@datadir@/p
21652 /@docdir@/p
21653 /@infodir@/p
21654 /@localedir@/p
21655 /@mandir@/p'
21656 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21657 *datarootdir*) ac_datarootdir_seen=yes;;
21658 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21660 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21661 _ACEOF
21662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21663 ac_datarootdir_hack='
21664 s&@datadir@&$datadir&g
21665 s&@docdir@&$docdir&g
21666 s&@infodir@&$infodir&g
21667 s&@localedir@&$localedir&g
21668 s&@mandir@&$mandir&g
21669 s&\\\${datarootdir}&$datarootdir&g' ;;
21670 esac
21671 _ACEOF
21672
21673 # Neutralize VPATH when `$srcdir' = `.'.
21674 # Shell code in configure.ac might set extrasub.
21675 # FIXME: do we really want to maintain this feature?
21676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21677 ac_sed_extra="$ac_vpsub
21678 $extrasub
21679 _ACEOF
21680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21681 :t
21682 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21683 s|@configure_input@|$ac_sed_conf_input|;t t
21684 s&@top_builddir@&$ac_top_builddir_sub&;t t
21685 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21686 s&@srcdir@&$ac_srcdir&;t t
21687 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21688 s&@top_srcdir@&$ac_top_srcdir&;t t
21689 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21690 s&@builddir@&$ac_builddir&;t t
21691 s&@abs_builddir@&$ac_abs_builddir&;t t
21692 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21693 s&@INSTALL@&$ac_INSTALL&;t t
21694 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21695 $ac_datarootdir_hack
21696 "
21697 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21698 || as_fn_error "could not create $ac_file" "$LINENO" 5
21699
21700 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21701 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21702 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21704 which seems to be undefined. Please make sure it is defined." >&5
21705 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21706 which seems to be undefined. Please make sure it is defined." >&2;}
21707
21708 rm -f "$tmp/stdin"
21709 case $ac_file in
21710 -) cat "$tmp/out" && rm -f "$tmp/out";;
21711 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21712 esac \
21713 || as_fn_error "could not create $ac_file" "$LINENO" 5
21714 ;;
21715 :H)
21716 #
21717 # CONFIG_HEADER
21718 #
21719 if test x"$ac_file" != x-; then
21720 {
21721 $as_echo "/* $configure_input */" \
21722 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21723 } >"$tmp/config.h" \
21724 || as_fn_error "could not create $ac_file" "$LINENO" 5
21725 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21726 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21727 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21728 else
21729 rm -f "$ac_file"
21730 mv "$tmp/config.h" "$ac_file" \
21731 || as_fn_error "could not create $ac_file" "$LINENO" 5
21732 fi
21733 else
21734 $as_echo "/* $configure_input */" \
21735 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21736 || as_fn_error "could not create -" "$LINENO" 5
21737 fi
21738 # Compute "$ac_file"'s index in $config_headers.
21739 _am_arg="$ac_file"
21740 _am_stamp_count=1
21741 for _am_header in $config_headers :; do
21742 case $_am_header in
21743 $_am_arg | $_am_arg:* )
21744 break ;;
21745 * )
21746 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21747 esac
21748 done
21749 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21750 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21751 X"$_am_arg" : 'X\(//\)[^/]' \| \
21752 X"$_am_arg" : 'X\(//\)$' \| \
21753 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21754 $as_echo X"$_am_arg" |
21755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21756 s//\1/
21757 q
21758 }
21759 /^X\(\/\/\)[^/].*/{
21760 s//\1/
21761 q
21762 }
21763 /^X\(\/\/\)$/{
21764 s//\1/
21765 q
21766 }
21767 /^X\(\/\).*/{
21768 s//\1/
21769 q
21770 }
21771 s/.*/./; q'`/stamp-h$_am_stamp_count
21772 ;;
21773
21774 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21775 $as_echo "$as_me: executing $ac_file commands" >&6;}
21776 ;;
21777 esac
21778
21779
21780 case $ac_file$ac_mode in
21781 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21782 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21783 # are listed without --file. Let's play safe and only enable the eval
21784 # if we detect the quoting.
21785 case $CONFIG_FILES in
21786 *\'*) eval set x "$CONFIG_FILES" ;;
21787 *) set x $CONFIG_FILES ;;
21788 esac
21789 shift
21790 for mf
21791 do
21792 # Strip MF so we end up with the name of the file.
21793 mf=`echo "$mf" | sed -e 's/:.*$//'`
21794 # Check whether this is an Automake generated Makefile or not.
21795 # We used to match only the files named `Makefile.in', but
21796 # some people rename them; so instead we look at the file content.
21797 # Grep'ing the first line is not enough: some people post-process
21798 # each Makefile.in and add a new line on top of each file to say so.
21799 # Grep'ing the whole file is not good either: AIX grep has a line
21800 # limit of 2048, but all sed's we know have understand at least 4000.
21801 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21802 dirpart=`$as_dirname -- "$mf" ||
21803 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21804 X"$mf" : 'X\(//\)[^/]' \| \
21805 X"$mf" : 'X\(//\)$' \| \
21806 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21807 $as_echo X"$mf" |
21808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21809 s//\1/
21810 q
21811 }
21812 /^X\(\/\/\)[^/].*/{
21813 s//\1/
21814 q
21815 }
21816 /^X\(\/\/\)$/{
21817 s//\1/
21818 q
21819 }
21820 /^X\(\/\).*/{
21821 s//\1/
21822 q
21823 }
21824 s/.*/./; q'`
21825 else
21826 continue
21827 fi
21828 # Extract the definition of DEPDIR, am__include, and am__quote
21829 # from the Makefile without running `make'.
21830 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21831 test -z "$DEPDIR" && continue
21832 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21833 test -z "am__include" && continue
21834 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21835 # When using ansi2knr, U may be empty or an underscore; expand it
21836 U=`sed -n 's/^U = //p' < "$mf"`
21837 # Find all dependency output files, they are included files with
21838 # $(DEPDIR) in their names. We invoke sed twice because it is the
21839 # simplest approach to changing $(DEPDIR) to its actual value in the
21840 # expansion.
21841 for file in `sed -n "
21842 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21843 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21844 # Make sure the directory exists.
21845 test -f "$dirpart/$file" && continue
21846 fdir=`$as_dirname -- "$file" ||
21847 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21848 X"$file" : 'X\(//\)[^/]' \| \
21849 X"$file" : 'X\(//\)$' \| \
21850 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21851 $as_echo X"$file" |
21852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21853 s//\1/
21854 q
21855 }
21856 /^X\(\/\/\)[^/].*/{
21857 s//\1/
21858 q
21859 }
21860 /^X\(\/\/\)$/{
21861 s//\1/
21862 q
21863 }
21864 /^X\(\/\).*/{
21865 s//\1/
21866 q
21867 }
21868 s/.*/./; q'`
21869 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21870 # echo "creating $dirpart/$file"
21871 echo '# dummy' > "$dirpart/$file"
21872 done
21873 done
21874 }
21875 ;;
21876 "default":C)
21877 case x$CONFIG_HEADERS in
21878 xconfig.h:config.in)
21879 echo > stamp-h ;;
21880 esac
21881 ;;
21882
21883 esac
21884 done # for ac_tag
21885
21886
21887 as_fn_exit 0
21888 _ACEOF
21889 ac_clean_files=$ac_clean_files_save
21890
21891 test $ac_write_fail = 0 ||
21892 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
21893
21894
21895 # configure is writing to config.log, and then calls config.status.
21896 # config.status does its own redirection, appending to config.log.
21897 # Unfortunately, on DOS this fails, as config.log is still kept open
21898 # by configure, so config.status won't be able to write to it; its
21899 # output is simply discarded. So we exec the FD to /dev/null,
21900 # effectively closing config.log, so it can be properly (re)opened and
21901 # appended to by config.status. When coming back to configure, we
21902 # need to make the FD available again.
21903 if test "$no_create" != yes; then
21904 ac_cs_success=:
21905 ac_config_status_args=
21906 test "$silent" = yes &&
21907 ac_config_status_args="$ac_config_status_args --quiet"
21908 exec 5>/dev/null
21909 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21910 exec 5>>config.log
21911 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21912 # would make configure fail if this is the last instruction.
21913 $ac_cs_success || as_fn_exit $?
21914 fi
21915 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21917 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21918 fi
21919
21920
21921 exit 0
This page took 0.514098 seconds and 4 git commands to generate.