gdbserver/tracepoint: Add casts out of tpoint->handle
[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 WINT_T_SUFFIX
1052 WCHAR_T_SUFFIX
1053 SIG_ATOMIC_T_SUFFIX
1054 SIZE_T_SUFFIX
1055 PTRDIFF_T_SUFFIX
1056 HAVE_SIGNED_WINT_T
1057 HAVE_SIGNED_WCHAR_T
1058 HAVE_SIGNED_SIG_ATOMIC_T
1059 BITSIZEOF_WINT_T
1060 BITSIZEOF_WCHAR_T
1061 BITSIZEOF_SIG_ATOMIC_T
1062 BITSIZEOF_SIZE_T
1063 BITSIZEOF_PTRDIFF_T
1064 APPLE_UNIVERSAL_BUILD
1065 HAVE_SYS_BITYPES_H
1066 HAVE_SYS_INTTYPES_H
1067 HAVE_STDINT_H
1068 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1069 NEXT_STDINT_H
1070 HAVE_SYS_TYPES_H
1071 HAVE_INTTYPES_H
1072 HAVE_WCHAR_H
1073 HAVE_UNSIGNED_LONG_LONG_INT
1074 HAVE_LONG_LONG_INT
1075 HAVE_WINSOCK2_H
1076 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1077 NEXT_SYS_TIME_H
1078 REPLACE_STRUCT_TIMEVAL
1079 REPLACE_GETTIMEOFDAY
1080 HAVE_TIMEZONE_T
1081 HAVE_SYS_TIME_H
1082 HAVE_STRUCT_TIMEVAL
1083 HAVE_GETTIMEOFDAY
1084 GNULIB_GETTIMEOFDAY
1085 FREXPL_LIBM
1086 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1087 FREXP_LIBM
1088 REPLACE_TRUNCL
1089 REPLACE_TRUNCF
1090 REPLACE_TRUNC
1091 REPLACE_SQRTL
1092 REPLACE_SIGNBIT_USING_GCC
1093 REPLACE_SIGNBIT
1094 REPLACE_ROUNDL
1095 REPLACE_ROUNDF
1096 REPLACE_ROUND
1097 REPLACE_REMAINDERL
1098 REPLACE_REMAINDERF
1099 REPLACE_REMAINDER
1100 REPLACE_NAN
1101 REPLACE_MODFL
1102 REPLACE_MODFF
1103 REPLACE_MODF
1104 REPLACE_LOGBL
1105 REPLACE_LOGBF
1106 REPLACE_LOGB
1107 REPLACE_LOG2L
1108 REPLACE_LOG2F
1109 REPLACE_LOG2
1110 REPLACE_LOG1PL
1111 REPLACE_LOG1PF
1112 REPLACE_LOG1P
1113 REPLACE_LOG10L
1114 REPLACE_LOG10F
1115 REPLACE_LOG10
1116 REPLACE_LOGL
1117 REPLACE_LOGF
1118 REPLACE_LOG
1119 REPLACE_LDEXPL
1120 REPLACE_ISNAN
1121 REPLACE_ISINF
1122 REPLACE_ISFINITE
1123 REPLACE_ILOGBF
1124 REPLACE_ILOGB
1125 REPLACE_HYPOTL
1126 REPLACE_HYPOTF
1127 REPLACE_HYPOT
1128 REPLACE_HUGE_VAL
1129 REPLACE_FREXPL
1130 REPLACE_FREXP
1131 REPLACE_FREXPF
1132 REPLACE_FMODL
1133 REPLACE_FMODF
1134 REPLACE_FMOD
1135 REPLACE_FMAL
1136 REPLACE_FMAF
1137 REPLACE_FMA
1138 REPLACE_FLOORL
1139 REPLACE_FLOORF
1140 REPLACE_FLOOR
1141 REPLACE_FABSL
1142 REPLACE_EXP2L
1143 REPLACE_EXP2
1144 REPLACE_EXPM1F
1145 REPLACE_EXPM1
1146 REPLACE_CEILL
1147 REPLACE_CEILF
1148 REPLACE_CEIL
1149 REPLACE_CBRTL
1150 REPLACE_CBRTF
1151 HAVE_DECL_TRUNCL
1152 HAVE_DECL_TRUNCF
1153 HAVE_DECL_TRUNC
1154 HAVE_DECL_TANL
1155 HAVE_DECL_SQRTL
1156 HAVE_DECL_SINL
1157 HAVE_DECL_ROUNDL
1158 HAVE_DECL_ROUNDF
1159 HAVE_DECL_ROUND
1160 HAVE_DECL_RINTF
1161 HAVE_DECL_REMAINDERL
1162 HAVE_DECL_REMAINDER
1163 HAVE_DECL_LOGB
1164 HAVE_DECL_LOG2L
1165 HAVE_DECL_LOG2F
1166 HAVE_DECL_LOG2
1167 HAVE_DECL_LOG10L
1168 HAVE_DECL_LOGL
1169 HAVE_DECL_LDEXPL
1170 HAVE_DECL_FREXPL
1171 HAVE_DECL_FLOORL
1172 HAVE_DECL_FLOORF
1173 HAVE_DECL_EXPM1L
1174 HAVE_DECL_EXP2L
1175 HAVE_DECL_EXP2F
1176 HAVE_DECL_EXP2
1177 HAVE_DECL_EXPL
1178 HAVE_DECL_COSL
1179 HAVE_DECL_COPYSIGNF
1180 HAVE_DECL_CEILL
1181 HAVE_DECL_CEILF
1182 HAVE_DECL_CBRTL
1183 HAVE_DECL_CBRTF
1184 HAVE_DECL_ATANL
1185 HAVE_DECL_ASINL
1186 HAVE_DECL_ACOSL
1187 HAVE_TANHF
1188 HAVE_TANL
1189 HAVE_TANF
1190 HAVE_SQRTL
1191 HAVE_SQRTF
1192 HAVE_SINHF
1193 HAVE_SINL
1194 HAVE_SINF
1195 HAVE_RINTL
1196 HAVE_RINT
1197 HAVE_REMAINDERF
1198 HAVE_REMAINDER
1199 HAVE_POWF
1200 HAVE_MODFL
1201 HAVE_MODFF
1202 HAVE_LOGBL
1203 HAVE_LOGBF
1204 HAVE_LOG1PL
1205 HAVE_LOG1PF
1206 HAVE_LOG1P
1207 HAVE_LOG10L
1208 HAVE_LOG10F
1209 HAVE_LOGL
1210 HAVE_LOGF
1211 HAVE_LDEXPF
1212 HAVE_ISNANL
1213 HAVE_ISNAND
1214 HAVE_ISNANF
1215 HAVE_ILOGBL
1216 HAVE_ILOGBF
1217 HAVE_ILOGB
1218 HAVE_HYPOTL
1219 HAVE_HYPOTF
1220 HAVE_FREXPF
1221 HAVE_FMODL
1222 HAVE_FMODF
1223 HAVE_FMAL
1224 HAVE_FMAF
1225 HAVE_FMA
1226 HAVE_FABSL
1227 HAVE_FABSF
1228 HAVE_EXPM1F
1229 HAVE_EXPM1
1230 HAVE_EXPL
1231 HAVE_EXPF
1232 HAVE_COSHF
1233 HAVE_COSL
1234 HAVE_COSF
1235 HAVE_COPYSIGNL
1236 HAVE_COPYSIGN
1237 HAVE_CBRTL
1238 HAVE_CBRTF
1239 HAVE_CBRT
1240 HAVE_ATAN2F
1241 HAVE_ATANL
1242 HAVE_ATANF
1243 HAVE_ASINL
1244 HAVE_ASINF
1245 HAVE_ACOSL
1246 HAVE_ACOSF
1247 GNULIB_TRUNCL
1248 GNULIB_TRUNCF
1249 GNULIB_TRUNC
1250 GNULIB_TANHF
1251 GNULIB_TANL
1252 GNULIB_TANF
1253 GNULIB_SQRTL
1254 GNULIB_SQRTF
1255 GNULIB_SINHF
1256 GNULIB_SINL
1257 GNULIB_SINF
1258 GNULIB_SIGNBIT
1259 GNULIB_ROUNDL
1260 GNULIB_ROUNDF
1261 GNULIB_ROUND
1262 GNULIB_RINTL
1263 GNULIB_RINTF
1264 GNULIB_RINT
1265 GNULIB_REMAINDERL
1266 GNULIB_REMAINDERF
1267 GNULIB_REMAINDER
1268 GNULIB_POWF
1269 GNULIB_MODFL
1270 GNULIB_MODFF
1271 GNULIB_MODF
1272 GNULIB_LOGBL
1273 GNULIB_LOGBF
1274 GNULIB_LOGB
1275 GNULIB_LOG2L
1276 GNULIB_LOG2F
1277 GNULIB_LOG2
1278 GNULIB_LOG1PL
1279 GNULIB_LOG1PF
1280 GNULIB_LOG1P
1281 GNULIB_LOG10L
1282 GNULIB_LOG10F
1283 GNULIB_LOG10
1284 GNULIB_LOGL
1285 GNULIB_LOGF
1286 GNULIB_LOG
1287 GNULIB_LDEXPL
1288 GNULIB_LDEXPF
1289 GNULIB_ISNANL
1290 GNULIB_ISNAND
1291 GNULIB_ISNANF
1292 GNULIB_ISNAN
1293 GNULIB_ISINF
1294 GNULIB_ISFINITE
1295 GNULIB_ILOGBL
1296 GNULIB_ILOGBF
1297 GNULIB_ILOGB
1298 GNULIB_HYPOTL
1299 GNULIB_HYPOTF
1300 GNULIB_HYPOT
1301 GNULIB_FREXPL
1302 GNULIB_FREXP
1303 GNULIB_FREXPF
1304 GNULIB_FMODL
1305 GNULIB_FMODF
1306 GNULIB_FMOD
1307 GNULIB_FMAL
1308 GNULIB_FMAF
1309 GNULIB_FMA
1310 GNULIB_FLOORL
1311 GNULIB_FLOORF
1312 GNULIB_FLOOR
1313 GNULIB_FABSL
1314 GNULIB_FABSF
1315 GNULIB_EXPM1L
1316 GNULIB_EXPM1F
1317 GNULIB_EXPM1
1318 GNULIB_EXP2L
1319 GNULIB_EXP2F
1320 GNULIB_EXP2
1321 GNULIB_EXPL
1322 GNULIB_EXPF
1323 GNULIB_COSHF
1324 GNULIB_COSL
1325 GNULIB_COSF
1326 GNULIB_COPYSIGNL
1327 GNULIB_COPYSIGNF
1328 GNULIB_COPYSIGN
1329 GNULIB_CEILL
1330 GNULIB_CEILF
1331 GNULIB_CEIL
1332 GNULIB_CBRTL
1333 GNULIB_CBRTF
1334 GNULIB_CBRT
1335 GNULIB_ATAN2F
1336 GNULIB_ATANL
1337 GNULIB_ATANF
1338 GNULIB_ASINL
1339 GNULIB_ASINF
1340 GNULIB_ACOSL
1341 GNULIB_ACOSF
1342 GL_GENERATE_FNMATCH_H_FALSE
1343 GL_GENERATE_FNMATCH_H_TRUE
1344 FNMATCH_H
1345 REPLACE_ITOLD
1346 GL_GENERATE_FLOAT_H_FALSE
1347 GL_GENERATE_FLOAT_H_TRUE
1348 FLOAT_H
1349 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1350 NEXT_FLOAT_H
1351 EOVERFLOW_VALUE
1352 EOVERFLOW_HIDDEN
1353 ENOLINK_VALUE
1354 ENOLINK_HIDDEN
1355 EMULTIHOP_VALUE
1356 EMULTIHOP_HIDDEN
1357 GL_GENERATE_ERRNO_H_FALSE
1358 GL_GENERATE_ERRNO_H_TRUE
1359 ERRNO_H
1360 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1361 NEXT_ERRNO_H
1362 HAVE_DIRENT_H
1363 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1364 NEXT_DIRENT_H
1365 PRAGMA_COLUMNS
1366 PRAGMA_SYSTEM_HEADER
1367 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1368 INCLUDE_NEXT
1369 REPLACE_FDOPENDIR
1370 REPLACE_DIRFD
1371 REPLACE_CLOSEDIR
1372 REPLACE_OPENDIR
1373 HAVE_ALPHASORT
1374 HAVE_SCANDIR
1375 HAVE_FDOPENDIR
1376 HAVE_DECL_FDOPENDIR
1377 HAVE_DECL_DIRFD
1378 HAVE_CLOSEDIR
1379 HAVE_REWINDDIR
1380 HAVE_READDIR
1381 HAVE_OPENDIR
1382 GNULIB_ALPHASORT
1383 GNULIB_SCANDIR
1384 GNULIB_FDOPENDIR
1385 GNULIB_DIRFD
1386 GNULIB_CLOSEDIR
1387 GNULIB_REWINDDIR
1388 GNULIB_READDIR
1389 GNULIB_OPENDIR
1390 pkglibexecdir
1391 runstatedir
1392 lispdir
1393 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1394 UNISTD_H_HAVE_WINSOCK2_H
1395 REPLACE_WRITE
1396 REPLACE_USLEEP
1397 REPLACE_UNLINKAT
1398 REPLACE_UNLINK
1399 REPLACE_TTYNAME_R
1400 REPLACE_SYMLINKAT
1401 REPLACE_SYMLINK
1402 REPLACE_SLEEP
1403 REPLACE_RMDIR
1404 REPLACE_READLINKAT
1405 REPLACE_READLINK
1406 REPLACE_READ
1407 REPLACE_PWRITE
1408 REPLACE_PREAD
1409 REPLACE_LSEEK
1410 REPLACE_LINKAT
1411 REPLACE_LINK
1412 REPLACE_LCHOWN
1413 REPLACE_ISATTY
1414 REPLACE_GETPAGESIZE
1415 REPLACE_GETGROUPS
1416 REPLACE_GETLOGIN_R
1417 REPLACE_GETDTABLESIZE
1418 REPLACE_GETDOMAINNAME
1419 REPLACE_GETCWD
1420 REPLACE_FTRUNCATE
1421 REPLACE_FCHOWNAT
1422 REPLACE_DUP2
1423 REPLACE_DUP
1424 REPLACE_CLOSE
1425 REPLACE_CHOWN
1426 HAVE_SYS_PARAM_H
1427 HAVE_OS_H
1428 HAVE_DECL_TTYNAME_R
1429 HAVE_DECL_SETHOSTNAME
1430 HAVE_DECL_GETUSERSHELL
1431 HAVE_DECL_GETPAGESIZE
1432 HAVE_DECL_GETLOGIN_R
1433 HAVE_DECL_GETDOMAINNAME
1434 HAVE_DECL_FDATASYNC
1435 HAVE_DECL_FCHDIR
1436 HAVE_DECL_ENVIRON
1437 HAVE_USLEEP
1438 HAVE_UNLINKAT
1439 HAVE_SYMLINKAT
1440 HAVE_SYMLINK
1441 HAVE_SLEEP
1442 HAVE_SETHOSTNAME
1443 HAVE_READLINKAT
1444 HAVE_READLINK
1445 HAVE_PWRITE
1446 HAVE_PREAD
1447 HAVE_PIPE2
1448 HAVE_PIPE
1449 HAVE_LINKAT
1450 HAVE_LINK
1451 HAVE_LCHOWN
1452 HAVE_GROUP_MEMBER
1453 HAVE_GETPAGESIZE
1454 HAVE_GETLOGIN
1455 HAVE_GETHOSTNAME
1456 HAVE_GETGROUPS
1457 HAVE_GETDTABLESIZE
1458 HAVE_FTRUNCATE
1459 HAVE_FSYNC
1460 HAVE_FDATASYNC
1461 HAVE_FCHOWNAT
1462 HAVE_FCHDIR
1463 HAVE_FACCESSAT
1464 HAVE_EUIDACCESS
1465 HAVE_DUP3
1466 HAVE_DUP2
1467 HAVE_CHOWN
1468 GNULIB_WRITE
1469 GNULIB_USLEEP
1470 GNULIB_UNLINKAT
1471 GNULIB_UNLINK
1472 GNULIB_UNISTD_H_SIGPIPE
1473 GNULIB_UNISTD_H_NONBLOCKING
1474 GNULIB_TTYNAME_R
1475 GNULIB_SYMLINKAT
1476 GNULIB_SYMLINK
1477 GNULIB_SLEEP
1478 GNULIB_SETHOSTNAME
1479 GNULIB_RMDIR
1480 GNULIB_READLINKAT
1481 GNULIB_READLINK
1482 GNULIB_READ
1483 GNULIB_PWRITE
1484 GNULIB_PREAD
1485 GNULIB_PIPE2
1486 GNULIB_PIPE
1487 GNULIB_LSEEK
1488 GNULIB_LINKAT
1489 GNULIB_LINK
1490 GNULIB_LCHOWN
1491 GNULIB_ISATTY
1492 GNULIB_GROUP_MEMBER
1493 GNULIB_GETUSERSHELL
1494 GNULIB_GETPAGESIZE
1495 GNULIB_GETLOGIN_R
1496 GNULIB_GETLOGIN
1497 GNULIB_GETHOSTNAME
1498 GNULIB_GETGROUPS
1499 GNULIB_GETDTABLESIZE
1500 GNULIB_GETDOMAINNAME
1501 GNULIB_GETCWD
1502 GNULIB_FTRUNCATE
1503 GNULIB_FSYNC
1504 GNULIB_FDATASYNC
1505 GNULIB_FCHOWNAT
1506 GNULIB_FCHDIR
1507 GNULIB_FACCESSAT
1508 GNULIB_EUIDACCESS
1509 GNULIB_ENVIRON
1510 GNULIB_DUP3
1511 GNULIB_DUP2
1512 GNULIB_DUP
1513 GNULIB_CLOSE
1514 GNULIB_CHOWN
1515 GNULIB_CHDIR
1516 REPLACE_WCTOMB
1517 REPLACE_UNSETENV
1518 REPLACE_STRTOD
1519 REPLACE_SETENV
1520 REPLACE_REALPATH
1521 REPLACE_REALLOC
1522 REPLACE_RANDOM_R
1523 REPLACE_QSORT_R
1524 REPLACE_PUTENV
1525 REPLACE_PTSNAME_R
1526 REPLACE_PTSNAME
1527 REPLACE_MKSTEMP
1528 REPLACE_MBTOWC
1529 REPLACE_MALLOC
1530 REPLACE_CANONICALIZE_FILE_NAME
1531 REPLACE_CALLOC
1532 HAVE_DECL_UNSETENV
1533 HAVE_UNLOCKPT
1534 HAVE_SYS_LOADAVG_H
1535 HAVE_STRUCT_RANDOM_DATA
1536 HAVE_STRTOULL
1537 HAVE_STRTOLL
1538 HAVE_STRTOD
1539 HAVE_DECL_SETENV
1540 HAVE_SETENV
1541 HAVE_SECURE_GETENV
1542 HAVE_RPMATCH
1543 HAVE_REALPATH
1544 HAVE_RANDOM_R
1545 HAVE_RANDOM_H
1546 HAVE_RANDOM
1547 HAVE_PTSNAME_R
1548 HAVE_PTSNAME
1549 HAVE_POSIX_OPENPT
1550 HAVE_MKSTEMPS
1551 HAVE_MKSTEMP
1552 HAVE_MKOSTEMPS
1553 HAVE_MKOSTEMP
1554 HAVE_MKDTEMP
1555 HAVE_GRANTPT
1556 HAVE_GETSUBOPT
1557 HAVE_DECL_GETLOADAVG
1558 HAVE_CANONICALIZE_FILE_NAME
1559 HAVE_ATOLL
1560 HAVE__EXIT
1561 GNULIB_WCTOMB
1562 GNULIB_UNSETENV
1563 GNULIB_UNLOCKPT
1564 GNULIB_SYSTEM_POSIX
1565 GNULIB_STRTOULL
1566 GNULIB_STRTOLL
1567 GNULIB_STRTOD
1568 GNULIB_SETENV
1569 GNULIB_SECURE_GETENV
1570 GNULIB_RPMATCH
1571 GNULIB_REALPATH
1572 GNULIB_REALLOC_POSIX
1573 GNULIB_RANDOM_R
1574 GNULIB_RANDOM
1575 GNULIB_QSORT_R
1576 GNULIB_PUTENV
1577 GNULIB_PTSNAME_R
1578 GNULIB_PTSNAME
1579 GNULIB_POSIX_OPENPT
1580 GNULIB_MKSTEMPS
1581 GNULIB_MKSTEMP
1582 GNULIB_MKOSTEMPS
1583 GNULIB_MKOSTEMP
1584 GNULIB_MKDTEMP
1585 GNULIB_MBTOWC
1586 GNULIB_MALLOC_POSIX
1587 GNULIB_GRANTPT
1588 GNULIB_GETSUBOPT
1589 GNULIB_GETLOADAVG
1590 GNULIB_CANONICALIZE_FILE_NAME
1591 GNULIB_CALLOC_POSIX
1592 GNULIB_ATOLL
1593 GNULIB__EXIT
1594 GL_GENERATE_ALLOCA_H_FALSE
1595 GL_GENERATE_ALLOCA_H_TRUE
1596 ALLOCA_H
1597 ALLOCA
1598 GL_COND_LIBTOOL_FALSE
1599 GL_COND_LIBTOOL_TRUE
1600 target_os
1601 target_vendor
1602 target_cpu
1603 target
1604 host_os
1605 host_vendor
1606 host_cpu
1607 host
1608 build_os
1609 build_vendor
1610 build_cpu
1611 build
1612 RANLIB
1613 ARFLAGS
1614 AR
1615 EGREP
1616 GREP
1617 CPP
1618 OBJEXT
1619 EXEEXT
1620 ac_ct_CC
1621 CPPFLAGS
1622 LDFLAGS
1623 CFLAGS
1624 CC
1625 MAINT
1626 MAINTAINER_MODE_FALSE
1627 MAINTAINER_MODE_TRUE
1628 target_alias
1629 host_alias
1630 build_alias
1631 LIBS
1632 ECHO_T
1633 ECHO_N
1634 ECHO_C
1635 DEFS
1636 mandir
1637 localedir
1638 libdir
1639 psdir
1640 pdfdir
1641 dvidir
1642 htmldir
1643 infodir
1644 docdir
1645 oldincludedir
1646 includedir
1647 localstatedir
1648 sharedstatedir
1649 sysconfdir
1650 datadir
1651 datarootdir
1652 libexecdir
1653 sbindir
1654 bindir
1655 program_transform_name
1656 prefix
1657 exec_prefix
1658 PACKAGE_URL
1659 PACKAGE_BUGREPORT
1660 PACKAGE_STRING
1661 PACKAGE_VERSION
1662 PACKAGE_TARNAME
1663 PACKAGE_NAME
1664 PATH_SEPARATOR
1665 SHELL'
1666 ac_subst_files=''
1667 ac_user_opts='
1668 enable_option_checking
1669 enable_maintainer_mode
1670 enable_largefile
1671 enable_dependency_tracking
1672 '
1673 ac_precious_vars='build_alias
1674 host_alias
1675 target_alias
1676 CC
1677 CFLAGS
1678 LDFLAGS
1679 LIBS
1680 CPPFLAGS
1681 CPP'
1682
1683
1684 # Initialize some variables set by options.
1685 ac_init_help=
1686 ac_init_version=false
1687 ac_unrecognized_opts=
1688 ac_unrecognized_sep=
1689 # The variables have the same names as the options, with
1690 # dashes changed to underlines.
1691 cache_file=/dev/null
1692 exec_prefix=NONE
1693 no_create=
1694 no_recursion=
1695 prefix=NONE
1696 program_prefix=NONE
1697 program_suffix=NONE
1698 program_transform_name=s,x,x,
1699 silent=
1700 site=
1701 srcdir=
1702 verbose=
1703 x_includes=NONE
1704 x_libraries=NONE
1705
1706 # Installation directory options.
1707 # These are left unexpanded so users can "make install exec_prefix=/foo"
1708 # and all the variables that are supposed to be based on exec_prefix
1709 # by default will actually change.
1710 # Use braces instead of parens because sh, perl, etc. also accept them.
1711 # (The list follows the same order as the GNU Coding Standards.)
1712 bindir='${exec_prefix}/bin'
1713 sbindir='${exec_prefix}/sbin'
1714 libexecdir='${exec_prefix}/libexec'
1715 datarootdir='${prefix}/share'
1716 datadir='${datarootdir}'
1717 sysconfdir='${prefix}/etc'
1718 sharedstatedir='${prefix}/com'
1719 localstatedir='${prefix}/var'
1720 includedir='${prefix}/include'
1721 oldincludedir='/usr/include'
1722 docdir='${datarootdir}/doc/${PACKAGE}'
1723 infodir='${datarootdir}/info'
1724 htmldir='${docdir}'
1725 dvidir='${docdir}'
1726 pdfdir='${docdir}'
1727 psdir='${docdir}'
1728 libdir='${exec_prefix}/lib'
1729 localedir='${datarootdir}/locale'
1730 mandir='${datarootdir}/man'
1731
1732 ac_prev=
1733 ac_dashdash=
1734 for ac_option
1735 do
1736 # If the previous option needs an argument, assign it.
1737 if test -n "$ac_prev"; then
1738 eval $ac_prev=\$ac_option
1739 ac_prev=
1740 continue
1741 fi
1742
1743 case $ac_option in
1744 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1745 *) ac_optarg=yes ;;
1746 esac
1747
1748 # Accept the important Cygnus configure options, so we can diagnose typos.
1749
1750 case $ac_dashdash$ac_option in
1751 --)
1752 ac_dashdash=yes ;;
1753
1754 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1755 ac_prev=bindir ;;
1756 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1757 bindir=$ac_optarg ;;
1758
1759 -build | --build | --buil | --bui | --bu)
1760 ac_prev=build_alias ;;
1761 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1762 build_alias=$ac_optarg ;;
1763
1764 -cache-file | --cache-file | --cache-fil | --cache-fi \
1765 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1766 ac_prev=cache_file ;;
1767 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1768 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1769 cache_file=$ac_optarg ;;
1770
1771 --config-cache | -C)
1772 cache_file=config.cache ;;
1773
1774 -datadir | --datadir | --datadi | --datad)
1775 ac_prev=datadir ;;
1776 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1777 datadir=$ac_optarg ;;
1778
1779 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1780 | --dataroo | --dataro | --datar)
1781 ac_prev=datarootdir ;;
1782 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1783 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1784 datarootdir=$ac_optarg ;;
1785
1786 -disable-* | --disable-*)
1787 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1788 # Reject names that are not valid shell variable names.
1789 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1790 as_fn_error "invalid feature name: $ac_useropt"
1791 ac_useropt_orig=$ac_useropt
1792 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1793 case $ac_user_opts in
1794 *"
1795 "enable_$ac_useropt"
1796 "*) ;;
1797 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1798 ac_unrecognized_sep=', ';;
1799 esac
1800 eval enable_$ac_useropt=no ;;
1801
1802 -docdir | --docdir | --docdi | --doc | --do)
1803 ac_prev=docdir ;;
1804 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1805 docdir=$ac_optarg ;;
1806
1807 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1808 ac_prev=dvidir ;;
1809 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1810 dvidir=$ac_optarg ;;
1811
1812 -enable-* | --enable-*)
1813 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1814 # Reject names that are not valid shell variable names.
1815 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1816 as_fn_error "invalid feature name: $ac_useropt"
1817 ac_useropt_orig=$ac_useropt
1818 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1819 case $ac_user_opts in
1820 *"
1821 "enable_$ac_useropt"
1822 "*) ;;
1823 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1824 ac_unrecognized_sep=', ';;
1825 esac
1826 eval enable_$ac_useropt=\$ac_optarg ;;
1827
1828 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1829 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1830 | --exec | --exe | --ex)
1831 ac_prev=exec_prefix ;;
1832 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1833 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1834 | --exec=* | --exe=* | --ex=*)
1835 exec_prefix=$ac_optarg ;;
1836
1837 -gas | --gas | --ga | --g)
1838 # Obsolete; use --with-gas.
1839 with_gas=yes ;;
1840
1841 -help | --help | --hel | --he | -h)
1842 ac_init_help=long ;;
1843 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1844 ac_init_help=recursive ;;
1845 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1846 ac_init_help=short ;;
1847
1848 -host | --host | --hos | --ho)
1849 ac_prev=host_alias ;;
1850 -host=* | --host=* | --hos=* | --ho=*)
1851 host_alias=$ac_optarg ;;
1852
1853 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1854 ac_prev=htmldir ;;
1855 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1856 | --ht=*)
1857 htmldir=$ac_optarg ;;
1858
1859 -includedir | --includedir | --includedi | --included | --include \
1860 | --includ | --inclu | --incl | --inc)
1861 ac_prev=includedir ;;
1862 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1863 | --includ=* | --inclu=* | --incl=* | --inc=*)
1864 includedir=$ac_optarg ;;
1865
1866 -infodir | --infodir | --infodi | --infod | --info | --inf)
1867 ac_prev=infodir ;;
1868 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1869 infodir=$ac_optarg ;;
1870
1871 -libdir | --libdir | --libdi | --libd)
1872 ac_prev=libdir ;;
1873 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1874 libdir=$ac_optarg ;;
1875
1876 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1877 | --libexe | --libex | --libe)
1878 ac_prev=libexecdir ;;
1879 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1880 | --libexe=* | --libex=* | --libe=*)
1881 libexecdir=$ac_optarg ;;
1882
1883 -localedir | --localedir | --localedi | --localed | --locale)
1884 ac_prev=localedir ;;
1885 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1886 localedir=$ac_optarg ;;
1887
1888 -localstatedir | --localstatedir | --localstatedi | --localstated \
1889 | --localstate | --localstat | --localsta | --localst | --locals)
1890 ac_prev=localstatedir ;;
1891 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1892 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1893 localstatedir=$ac_optarg ;;
1894
1895 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1896 ac_prev=mandir ;;
1897 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1898 mandir=$ac_optarg ;;
1899
1900 -nfp | --nfp | --nf)
1901 # Obsolete; use --without-fp.
1902 with_fp=no ;;
1903
1904 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1905 | --no-cr | --no-c | -n)
1906 no_create=yes ;;
1907
1908 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1909 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1910 no_recursion=yes ;;
1911
1912 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1913 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1914 | --oldin | --oldi | --old | --ol | --o)
1915 ac_prev=oldincludedir ;;
1916 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1917 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1918 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1919 oldincludedir=$ac_optarg ;;
1920
1921 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1922 ac_prev=prefix ;;
1923 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1924 prefix=$ac_optarg ;;
1925
1926 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1927 | --program-pre | --program-pr | --program-p)
1928 ac_prev=program_prefix ;;
1929 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1930 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1931 program_prefix=$ac_optarg ;;
1932
1933 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1934 | --program-suf | --program-su | --program-s)
1935 ac_prev=program_suffix ;;
1936 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1937 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1938 program_suffix=$ac_optarg ;;
1939
1940 -program-transform-name | --program-transform-name \
1941 | --program-transform-nam | --program-transform-na \
1942 | --program-transform-n | --program-transform- \
1943 | --program-transform | --program-transfor \
1944 | --program-transfo | --program-transf \
1945 | --program-trans | --program-tran \
1946 | --progr-tra | --program-tr | --program-t)
1947 ac_prev=program_transform_name ;;
1948 -program-transform-name=* | --program-transform-name=* \
1949 | --program-transform-nam=* | --program-transform-na=* \
1950 | --program-transform-n=* | --program-transform-=* \
1951 | --program-transform=* | --program-transfor=* \
1952 | --program-transfo=* | --program-transf=* \
1953 | --program-trans=* | --program-tran=* \
1954 | --progr-tra=* | --program-tr=* | --program-t=*)
1955 program_transform_name=$ac_optarg ;;
1956
1957 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1958 ac_prev=pdfdir ;;
1959 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1960 pdfdir=$ac_optarg ;;
1961
1962 -psdir | --psdir | --psdi | --psd | --ps)
1963 ac_prev=psdir ;;
1964 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1965 psdir=$ac_optarg ;;
1966
1967 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1968 | -silent | --silent | --silen | --sile | --sil)
1969 silent=yes ;;
1970
1971 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1972 ac_prev=sbindir ;;
1973 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1974 | --sbi=* | --sb=*)
1975 sbindir=$ac_optarg ;;
1976
1977 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1978 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1979 | --sharedst | --shareds | --shared | --share | --shar \
1980 | --sha | --sh)
1981 ac_prev=sharedstatedir ;;
1982 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1983 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1984 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1985 | --sha=* | --sh=*)
1986 sharedstatedir=$ac_optarg ;;
1987
1988 -site | --site | --sit)
1989 ac_prev=site ;;
1990 -site=* | --site=* | --sit=*)
1991 site=$ac_optarg ;;
1992
1993 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1994 ac_prev=srcdir ;;
1995 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1996 srcdir=$ac_optarg ;;
1997
1998 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1999 | --syscon | --sysco | --sysc | --sys | --sy)
2000 ac_prev=sysconfdir ;;
2001 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2002 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2003 sysconfdir=$ac_optarg ;;
2004
2005 -target | --target | --targe | --targ | --tar | --ta | --t)
2006 ac_prev=target_alias ;;
2007 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2008 target_alias=$ac_optarg ;;
2009
2010 -v | -verbose | --verbose | --verbos | --verbo | --verb)
2011 verbose=yes ;;
2012
2013 -version | --version | --versio | --versi | --vers | -V)
2014 ac_init_version=: ;;
2015
2016 -with-* | --with-*)
2017 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2018 # Reject names that are not valid shell variable names.
2019 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2020 as_fn_error "invalid package name: $ac_useropt"
2021 ac_useropt_orig=$ac_useropt
2022 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2023 case $ac_user_opts in
2024 *"
2025 "with_$ac_useropt"
2026 "*) ;;
2027 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2028 ac_unrecognized_sep=', ';;
2029 esac
2030 eval with_$ac_useropt=\$ac_optarg ;;
2031
2032 -without-* | --without-*)
2033 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2034 # Reject names that are not valid shell variable names.
2035 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2036 as_fn_error "invalid package name: $ac_useropt"
2037 ac_useropt_orig=$ac_useropt
2038 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2039 case $ac_user_opts in
2040 *"
2041 "with_$ac_useropt"
2042 "*) ;;
2043 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2044 ac_unrecognized_sep=', ';;
2045 esac
2046 eval with_$ac_useropt=no ;;
2047
2048 --x)
2049 # Obsolete; use --with-x.
2050 with_x=yes ;;
2051
2052 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2053 | --x-incl | --x-inc | --x-in | --x-i)
2054 ac_prev=x_includes ;;
2055 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2056 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2057 x_includes=$ac_optarg ;;
2058
2059 -x-libraries | --x-libraries | --x-librarie | --x-librari \
2060 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2061 ac_prev=x_libraries ;;
2062 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2063 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2064 x_libraries=$ac_optarg ;;
2065
2066 -*) as_fn_error "unrecognized option: \`$ac_option'
2067 Try \`$0 --help' for more information."
2068 ;;
2069
2070 *=*)
2071 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2072 # Reject names that are not valid shell variable names.
2073 case $ac_envvar in #(
2074 '' | [0-9]* | *[!_$as_cr_alnum]* )
2075 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
2076 esac
2077 eval $ac_envvar=\$ac_optarg
2078 export $ac_envvar ;;
2079
2080 *)
2081 # FIXME: should be removed in autoconf 3.0.
2082 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2083 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2084 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2085 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
2086 ;;
2087
2088 esac
2089 done
2090
2091 if test -n "$ac_prev"; then
2092 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2093 as_fn_error "missing argument to $ac_option"
2094 fi
2095
2096 if test -n "$ac_unrecognized_opts"; then
2097 case $enable_option_checking in
2098 no) ;;
2099 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
2100 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2101 esac
2102 fi
2103
2104 # Check all directory arguments for consistency.
2105 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2106 datadir sysconfdir sharedstatedir localstatedir includedir \
2107 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2108 libdir localedir mandir
2109 do
2110 eval ac_val=\$$ac_var
2111 # Remove trailing slashes.
2112 case $ac_val in
2113 */ )
2114 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2115 eval $ac_var=\$ac_val;;
2116 esac
2117 # Be sure to have absolute directory names.
2118 case $ac_val in
2119 [\\/$]* | ?:[\\/]* ) continue;;
2120 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2121 esac
2122 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
2123 done
2124
2125 # There might be people who depend on the old broken behavior: `$host'
2126 # used to hold the argument of --host etc.
2127 # FIXME: To remove some day.
2128 build=$build_alias
2129 host=$host_alias
2130 target=$target_alias
2131
2132 # FIXME: To remove some day.
2133 if test "x$host_alias" != x; then
2134 if test "x$build_alias" = x; then
2135 cross_compiling=maybe
2136 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2137 If a cross compiler is detected then cross compile mode will be used." >&2
2138 elif test "x$build_alias" != "x$host_alias"; then
2139 cross_compiling=yes
2140 fi
2141 fi
2142
2143 ac_tool_prefix=
2144 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2145
2146 test "$silent" = yes && exec 6>/dev/null
2147
2148
2149 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2150 ac_ls_di=`ls -di .` &&
2151 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2152 as_fn_error "working directory cannot be determined"
2153 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2154 as_fn_error "pwd does not report name of working directory"
2155
2156
2157 # Find the source files, if location was not specified.
2158 if test -z "$srcdir"; then
2159 ac_srcdir_defaulted=yes
2160 # Try the directory containing this script, then the parent directory.
2161 ac_confdir=`$as_dirname -- "$as_myself" ||
2162 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2163 X"$as_myself" : 'X\(//\)[^/]' \| \
2164 X"$as_myself" : 'X\(//\)$' \| \
2165 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2166 $as_echo X"$as_myself" |
2167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2168 s//\1/
2169 q
2170 }
2171 /^X\(\/\/\)[^/].*/{
2172 s//\1/
2173 q
2174 }
2175 /^X\(\/\/\)$/{
2176 s//\1/
2177 q
2178 }
2179 /^X\(\/\).*/{
2180 s//\1/
2181 q
2182 }
2183 s/.*/./; q'`
2184 srcdir=$ac_confdir
2185 if test ! -r "$srcdir/$ac_unique_file"; then
2186 srcdir=..
2187 fi
2188 else
2189 ac_srcdir_defaulted=no
2190 fi
2191 if test ! -r "$srcdir/$ac_unique_file"; then
2192 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2193 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
2194 fi
2195 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2196 ac_abs_confdir=`(
2197 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2198 pwd)`
2199 # When building in place, set srcdir=.
2200 if test "$ac_abs_confdir" = "$ac_pwd"; then
2201 srcdir=.
2202 fi
2203 # Remove unnecessary trailing slashes from srcdir.
2204 # Double slashes in file names in object file debugging info
2205 # mess up M-x gdb in Emacs.
2206 case $srcdir in
2207 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2208 esac
2209 for ac_var in $ac_precious_vars; do
2210 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2211 eval ac_env_${ac_var}_value=\$${ac_var}
2212 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2213 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2214 done
2215
2216 #
2217 # Report the --help message.
2218 #
2219 if test "$ac_init_help" = "long"; then
2220 # Omit some internal or obsolete options to make the list less imposing.
2221 # This message is too long to be a string in the A/UX 3.1 sh.
2222 cat <<_ACEOF
2223 \`configure' configures this package to adapt to many kinds of systems.
2224
2225 Usage: $0 [OPTION]... [VAR=VALUE]...
2226
2227 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2228 VAR=VALUE. See below for descriptions of some of the useful variables.
2229
2230 Defaults for the options are specified in brackets.
2231
2232 Configuration:
2233 -h, --help display this help and exit
2234 --help=short display options specific to this package
2235 --help=recursive display the short help of all the included packages
2236 -V, --version display version information and exit
2237 -q, --quiet, --silent do not print \`checking...' messages
2238 --cache-file=FILE cache test results in FILE [disabled]
2239 -C, --config-cache alias for \`--cache-file=config.cache'
2240 -n, --no-create do not create output files
2241 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2242
2243 Installation directories:
2244 --prefix=PREFIX install architecture-independent files in PREFIX
2245 [$ac_default_prefix]
2246 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2247 [PREFIX]
2248
2249 By default, \`make install' will install all the files in
2250 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2251 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2252 for instance \`--prefix=\$HOME'.
2253
2254 For better control, use the options below.
2255
2256 Fine tuning of the installation directories:
2257 --bindir=DIR user executables [EPREFIX/bin]
2258 --sbindir=DIR system admin executables [EPREFIX/sbin]
2259 --libexecdir=DIR program executables [EPREFIX/libexec]
2260 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2261 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2262 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2263 --libdir=DIR object code libraries [EPREFIX/lib]
2264 --includedir=DIR C header files [PREFIX/include]
2265 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2266 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2267 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2268 --infodir=DIR info documentation [DATAROOTDIR/info]
2269 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2270 --mandir=DIR man documentation [DATAROOTDIR/man]
2271 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2272 --htmldir=DIR html documentation [DOCDIR]
2273 --dvidir=DIR dvi documentation [DOCDIR]
2274 --pdfdir=DIR pdf documentation [DOCDIR]
2275 --psdir=DIR ps documentation [DOCDIR]
2276 _ACEOF
2277
2278 cat <<\_ACEOF
2279
2280 Program names:
2281 --program-prefix=PREFIX prepend PREFIX to installed program names
2282 --program-suffix=SUFFIX append SUFFIX to installed program names
2283 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2284
2285 System types:
2286 --build=BUILD configure for building on BUILD [guessed]
2287 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2288 --target=TARGET configure for building compilers for TARGET [HOST]
2289 _ACEOF
2290 fi
2291
2292 if test -n "$ac_init_help"; then
2293
2294 cat <<\_ACEOF
2295
2296 Optional Features:
2297 --disable-option-checking ignore unrecognized --enable/--with options
2298 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2299 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2300 --enable-maintainer-mode enable make rules and dependencies not useful
2301 (and sometimes confusing) to the casual installer
2302 --disable-largefile omit support for large files
2303 --disable-dependency-tracking speeds up one-time build
2304 --enable-dependency-tracking do not reject slow dependency extractors
2305
2306 Some influential environment variables:
2307 CC C compiler command
2308 CFLAGS C compiler flags
2309 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2310 nonstandard directory <lib dir>
2311 LIBS libraries to pass to the linker, e.g. -l<library>
2312 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2313 you have headers in a nonstandard directory <include dir>
2314 CPP C preprocessor
2315
2316 Use these variables to override the choices made by `configure' or to help
2317 it to find libraries and programs with nonstandard names/locations.
2318
2319 Report bugs to the package provider.
2320 _ACEOF
2321 ac_status=$?
2322 fi
2323
2324 if test "$ac_init_help" = "recursive"; then
2325 # If there are subdirs, report their specific --help.
2326 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2327 test -d "$ac_dir" ||
2328 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2329 continue
2330 ac_builddir=.
2331
2332 case "$ac_dir" in
2333 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2334 *)
2335 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2336 # A ".." for each directory in $ac_dir_suffix.
2337 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2338 case $ac_top_builddir_sub in
2339 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2340 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2341 esac ;;
2342 esac
2343 ac_abs_top_builddir=$ac_pwd
2344 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2345 # for backward compatibility:
2346 ac_top_builddir=$ac_top_build_prefix
2347
2348 case $srcdir in
2349 .) # We are building in place.
2350 ac_srcdir=.
2351 ac_top_srcdir=$ac_top_builddir_sub
2352 ac_abs_top_srcdir=$ac_pwd ;;
2353 [\\/]* | ?:[\\/]* ) # Absolute name.
2354 ac_srcdir=$srcdir$ac_dir_suffix;
2355 ac_top_srcdir=$srcdir
2356 ac_abs_top_srcdir=$srcdir ;;
2357 *) # Relative name.
2358 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2359 ac_top_srcdir=$ac_top_build_prefix$srcdir
2360 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2361 esac
2362 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2363
2364 cd "$ac_dir" || { ac_status=$?; continue; }
2365 # Check for guested configure.
2366 if test -f "$ac_srcdir/configure.gnu"; then
2367 echo &&
2368 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2369 elif test -f "$ac_srcdir/configure"; then
2370 echo &&
2371 $SHELL "$ac_srcdir/configure" --help=recursive
2372 else
2373 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2374 fi || ac_status=$?
2375 cd "$ac_pwd" || { ac_status=$?; break; }
2376 done
2377 fi
2378
2379 test -n "$ac_init_help" && exit $ac_status
2380 if $ac_init_version; then
2381 cat <<\_ACEOF
2382 configure
2383 generated by GNU Autoconf 2.64
2384
2385 Copyright (C) 2009 Free Software Foundation, Inc.
2386 This configure script is free software; the Free Software Foundation
2387 gives unlimited permission to copy, distribute and modify it.
2388 _ACEOF
2389 exit
2390 fi
2391
2392 ## ------------------------ ##
2393 ## Autoconf initialization. ##
2394 ## ------------------------ ##
2395
2396 # ac_fn_c_try_compile LINENO
2397 # --------------------------
2398 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2399 ac_fn_c_try_compile ()
2400 {
2401 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2402 rm -f conftest.$ac_objext
2403 if { { ac_try="$ac_compile"
2404 case "(($ac_try" in
2405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406 *) ac_try_echo=$ac_try;;
2407 esac
2408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2409 $as_echo "$ac_try_echo"; } >&5
2410 (eval "$ac_compile") 2>conftest.err
2411 ac_status=$?
2412 if test -s conftest.err; then
2413 grep -v '^ *+' conftest.err >conftest.er1
2414 cat conftest.er1 >&5
2415 mv -f conftest.er1 conftest.err
2416 fi
2417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2418 test $ac_status = 0; } && {
2419 test -z "$ac_c_werror_flag" ||
2420 test ! -s conftest.err
2421 } && test -s conftest.$ac_objext; then :
2422 ac_retval=0
2423 else
2424 $as_echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2426
2427 ac_retval=1
2428 fi
2429 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2430 return $ac_retval
2431
2432 } # ac_fn_c_try_compile
2433
2434 # ac_fn_c_try_cpp LINENO
2435 # ----------------------
2436 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2437 ac_fn_c_try_cpp ()
2438 {
2439 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2440 if { { ac_try="$ac_cpp conftest.$ac_ext"
2441 case "(($ac_try" in
2442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2443 *) ac_try_echo=$ac_try;;
2444 esac
2445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2446 $as_echo "$ac_try_echo"; } >&5
2447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2448 ac_status=$?
2449 if test -s conftest.err; then
2450 grep -v '^ *+' conftest.err >conftest.er1
2451 cat conftest.er1 >&5
2452 mv -f conftest.er1 conftest.err
2453 fi
2454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2455 test $ac_status = 0; } >/dev/null && {
2456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2457 test ! -s conftest.err
2458 }; then :
2459 ac_retval=0
2460 else
2461 $as_echo "$as_me: failed program was:" >&5
2462 sed 's/^/| /' conftest.$ac_ext >&5
2463
2464 ac_retval=1
2465 fi
2466 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2467 return $ac_retval
2468
2469 } # ac_fn_c_try_cpp
2470
2471 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2472 # -------------------------------------------------------
2473 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2474 # the include files in INCLUDES and setting the cache variable VAR
2475 # accordingly.
2476 ac_fn_c_check_header_mongrel ()
2477 {
2478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2479 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2481 $as_echo_n "checking for $2... " >&6; }
2482 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2483 $as_echo_n "(cached) " >&6
2484 fi
2485 eval ac_res=\$$3
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2487 $as_echo "$ac_res" >&6; }
2488 else
2489 # Is the header compilable?
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2491 $as_echo_n "checking $2 usability... " >&6; }
2492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2493 /* end confdefs.h. */
2494 $4
2495 #include <$2>
2496 _ACEOF
2497 if ac_fn_c_try_compile "$LINENO"; then :
2498 ac_header_compiler=yes
2499 else
2500 ac_header_compiler=no
2501 fi
2502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2504 $as_echo "$ac_header_compiler" >&6; }
2505
2506 # Is the header present?
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2508 $as_echo_n "checking $2 presence... " >&6; }
2509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2510 /* end confdefs.h. */
2511 #include <$2>
2512 _ACEOF
2513 if ac_fn_c_try_cpp "$LINENO"; then :
2514 ac_header_preproc=yes
2515 else
2516 ac_header_preproc=no
2517 fi
2518 rm -f conftest.err conftest.$ac_ext
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2520 $as_echo "$ac_header_preproc" >&6; }
2521
2522 # So? What about this header?
2523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2524 yes:no: )
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2526 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2528 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2529 ;;
2530 no:yes:* )
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2532 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2534 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2536 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2538 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2540 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2541 ;;
2542 esac
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2544 $as_echo_n "checking for $2... " >&6; }
2545 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2546 $as_echo_n "(cached) " >&6
2547 else
2548 eval "$3=\$ac_header_compiler"
2549 fi
2550 eval ac_res=\$$3
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2552 $as_echo "$ac_res" >&6; }
2553 fi
2554 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2555
2556 } # ac_fn_c_check_header_mongrel
2557
2558 # ac_fn_c_try_run LINENO
2559 # ----------------------
2560 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2561 # that executables *can* be run.
2562 ac_fn_c_try_run ()
2563 {
2564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2565 if { { ac_try="$ac_link"
2566 case "(($ac_try" in
2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568 *) ac_try_echo=$ac_try;;
2569 esac
2570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2571 $as_echo "$ac_try_echo"; } >&5
2572 (eval "$ac_link") 2>&5
2573 ac_status=$?
2574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2575 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2576 { { case "(($ac_try" in
2577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2578 *) ac_try_echo=$ac_try;;
2579 esac
2580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2581 $as_echo "$ac_try_echo"; } >&5
2582 (eval "$ac_try") 2>&5
2583 ac_status=$?
2584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2585 test $ac_status = 0; }; }; then :
2586 ac_retval=0
2587 else
2588 $as_echo "$as_me: program exited with status $ac_status" >&5
2589 $as_echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2591
2592 ac_retval=$ac_status
2593 fi
2594 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2595 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2596 return $ac_retval
2597
2598 } # ac_fn_c_try_run
2599
2600 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2601 # -------------------------------------------------------
2602 # Tests whether HEADER exists and can be compiled using the include files in
2603 # INCLUDES, setting the cache variable VAR accordingly.
2604 ac_fn_c_check_header_compile ()
2605 {
2606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2608 $as_echo_n "checking for $2... " >&6; }
2609 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2610 $as_echo_n "(cached) " >&6
2611 else
2612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2613 /* end confdefs.h. */
2614 $4
2615 #include <$2>
2616 _ACEOF
2617 if ac_fn_c_try_compile "$LINENO"; then :
2618 eval "$3=yes"
2619 else
2620 eval "$3=no"
2621 fi
2622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2623 fi
2624 eval ac_res=\$$3
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2626 $as_echo "$ac_res" >&6; }
2627 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2628
2629 } # ac_fn_c_check_header_compile
2630
2631 # ac_fn_c_try_link LINENO
2632 # -----------------------
2633 # Try to link conftest.$ac_ext, and return whether this succeeded.
2634 ac_fn_c_try_link ()
2635 {
2636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2637 rm -f conftest.$ac_objext conftest$ac_exeext
2638 if { { ac_try="$ac_link"
2639 case "(($ac_try" in
2640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641 *) ac_try_echo=$ac_try;;
2642 esac
2643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2644 $as_echo "$ac_try_echo"; } >&5
2645 (eval "$ac_link") 2>conftest.err
2646 ac_status=$?
2647 if test -s conftest.err; then
2648 grep -v '^ *+' conftest.err >conftest.er1
2649 cat conftest.er1 >&5
2650 mv -f conftest.er1 conftest.err
2651 fi
2652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2653 test $ac_status = 0; } && {
2654 test -z "$ac_c_werror_flag" ||
2655 test ! -s conftest.err
2656 } && test -s conftest$ac_exeext && {
2657 test "$cross_compiling" = yes ||
2658 $as_test_x conftest$ac_exeext
2659 }; then :
2660 ac_retval=0
2661 else
2662 $as_echo "$as_me: failed program was:" >&5
2663 sed 's/^/| /' conftest.$ac_ext >&5
2664
2665 ac_retval=1
2666 fi
2667 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2668 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2669 # interfere with the next link command; also delete a directory that is
2670 # left behind by Apple's compiler. We do this before executing the actions.
2671 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2672 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2673 return $ac_retval
2674
2675 } # ac_fn_c_try_link
2676
2677 # ac_fn_c_check_func LINENO FUNC VAR
2678 # ----------------------------------
2679 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2680 ac_fn_c_check_func ()
2681 {
2682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2684 $as_echo_n "checking for $2... " >&6; }
2685 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2686 $as_echo_n "(cached) " >&6
2687 else
2688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2689 /* end confdefs.h. */
2690 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2692 #define $2 innocuous_$2
2693
2694 /* System header to define __stub macros and hopefully few prototypes,
2695 which can conflict with char $2 (); below.
2696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2697 <limits.h> exists even on freestanding compilers. */
2698
2699 #ifdef __STDC__
2700 # include <limits.h>
2701 #else
2702 # include <assert.h>
2703 #endif
2704
2705 #undef $2
2706
2707 /* Override any GCC internal prototype to avoid an error.
2708 Use char because int might match the return type of a GCC
2709 builtin and then its argument prototype would still apply. */
2710 #ifdef __cplusplus
2711 extern "C"
2712 #endif
2713 char $2 ();
2714 /* The GNU C library defines this for functions which it implements
2715 to always fail with ENOSYS. Some functions are actually named
2716 something starting with __ and the normal name is an alias. */
2717 #if defined __stub_$2 || defined __stub___$2
2718 choke me
2719 #endif
2720
2721 int
2722 main ()
2723 {
2724 return $2 ();
2725 ;
2726 return 0;
2727 }
2728 _ACEOF
2729 if ac_fn_c_try_link "$LINENO"; then :
2730 eval "$3=yes"
2731 else
2732 eval "$3=no"
2733 fi
2734 rm -f core conftest.err conftest.$ac_objext \
2735 conftest$ac_exeext conftest.$ac_ext
2736 fi
2737 eval ac_res=\$$3
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2739 $as_echo "$ac_res" >&6; }
2740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2741
2742 } # ac_fn_c_check_func
2743
2744 # ac_fn_c_check_decl LINENO SYMBOL VAR
2745 # ------------------------------------
2746 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2747 ac_fn_c_check_decl ()
2748 {
2749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2751 $as_echo_n "checking whether $2 is declared... " >&6; }
2752 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2753 $as_echo_n "(cached) " >&6
2754 else
2755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2756 /* end confdefs.h. */
2757 $4
2758 int
2759 main ()
2760 {
2761 #ifndef $2
2762 (void) $2;
2763 #endif
2764
2765 ;
2766 return 0;
2767 }
2768 _ACEOF
2769 if ac_fn_c_try_compile "$LINENO"; then :
2770 eval "$3=yes"
2771 else
2772 eval "$3=no"
2773 fi
2774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2775 fi
2776 eval ac_res=\$$3
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2778 $as_echo "$ac_res" >&6; }
2779 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2780
2781 } # ac_fn_c_check_decl
2782
2783 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2784 # --------------------------------------------
2785 # Tries to find the compile-time value of EXPR in a program that includes
2786 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2787 # computed
2788 ac_fn_c_compute_int ()
2789 {
2790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2791 if test "$cross_compiling" = yes; then
2792 # Depending upon the size, compute the lo and hi bounds.
2793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2794 /* end confdefs.h. */
2795 $4
2796 int
2797 main ()
2798 {
2799 static int test_array [1 - 2 * !(($2) >= 0)];
2800 test_array [0] = 0
2801
2802 ;
2803 return 0;
2804 }
2805 _ACEOF
2806 if ac_fn_c_try_compile "$LINENO"; then :
2807 ac_lo=0 ac_mid=0
2808 while :; do
2809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2810 /* end confdefs.h. */
2811 $4
2812 int
2813 main ()
2814 {
2815 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2816 test_array [0] = 0
2817
2818 ;
2819 return 0;
2820 }
2821 _ACEOF
2822 if ac_fn_c_try_compile "$LINENO"; then :
2823 ac_hi=$ac_mid; break
2824 else
2825 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2826 if test $ac_lo -le $ac_mid; then
2827 ac_lo= ac_hi=
2828 break
2829 fi
2830 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2831 fi
2832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2833 done
2834 else
2835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2836 /* end confdefs.h. */
2837 $4
2838 int
2839 main ()
2840 {
2841 static int test_array [1 - 2 * !(($2) < 0)];
2842 test_array [0] = 0
2843
2844 ;
2845 return 0;
2846 }
2847 _ACEOF
2848 if ac_fn_c_try_compile "$LINENO"; then :
2849 ac_hi=-1 ac_mid=-1
2850 while :; do
2851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2852 /* end confdefs.h. */
2853 $4
2854 int
2855 main ()
2856 {
2857 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2858 test_array [0] = 0
2859
2860 ;
2861 return 0;
2862 }
2863 _ACEOF
2864 if ac_fn_c_try_compile "$LINENO"; then :
2865 ac_lo=$ac_mid; break
2866 else
2867 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2868 if test $ac_mid -le $ac_hi; then
2869 ac_lo= ac_hi=
2870 break
2871 fi
2872 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2873 fi
2874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2875 done
2876 else
2877 ac_lo= ac_hi=
2878 fi
2879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2880 fi
2881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2882 # Binary search between lo and hi bounds.
2883 while test "x$ac_lo" != "x$ac_hi"; do
2884 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2886 /* end confdefs.h. */
2887 $4
2888 int
2889 main ()
2890 {
2891 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2892 test_array [0] = 0
2893
2894 ;
2895 return 0;
2896 }
2897 _ACEOF
2898 if ac_fn_c_try_compile "$LINENO"; then :
2899 ac_hi=$ac_mid
2900 else
2901 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2902 fi
2903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2904 done
2905 case $ac_lo in #((
2906 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2907 '') ac_retval=1 ;;
2908 esac
2909 else
2910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2911 /* end confdefs.h. */
2912 $4
2913 static long int longval () { return $2; }
2914 static unsigned long int ulongval () { return $2; }
2915 #include <stdio.h>
2916 #include <stdlib.h>
2917 int
2918 main ()
2919 {
2920
2921 FILE *f = fopen ("conftest.val", "w");
2922 if (! f)
2923 return 1;
2924 if (($2) < 0)
2925 {
2926 long int i = longval ();
2927 if (i != ($2))
2928 return 1;
2929 fprintf (f, "%ld", i);
2930 }
2931 else
2932 {
2933 unsigned long int i = ulongval ();
2934 if (i != ($2))
2935 return 1;
2936 fprintf (f, "%lu", i);
2937 }
2938 /* Do not output a trailing newline, as this causes \r\n confusion
2939 on some platforms. */
2940 return ferror (f) || fclose (f) != 0;
2941
2942 ;
2943 return 0;
2944 }
2945 _ACEOF
2946 if ac_fn_c_try_run "$LINENO"; then :
2947 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2948 else
2949 ac_retval=1
2950 fi
2951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2952 conftest.$ac_objext conftest.beam conftest.$ac_ext
2953 rm -f conftest.val
2954
2955 fi
2956 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2957 return $ac_retval
2958
2959 } # ac_fn_c_compute_int
2960
2961 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2962 # -------------------------------------------
2963 # Tests whether TYPE exists after having included INCLUDES, setting cache
2964 # variable VAR accordingly.
2965 ac_fn_c_check_type ()
2966 {
2967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2969 $as_echo_n "checking for $2... " >&6; }
2970 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2971 $as_echo_n "(cached) " >&6
2972 else
2973 eval "$3=no"
2974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2975 /* end confdefs.h. */
2976 $4
2977 int
2978 main ()
2979 {
2980 if (sizeof ($2))
2981 return 0;
2982 ;
2983 return 0;
2984 }
2985 _ACEOF
2986 if ac_fn_c_try_compile "$LINENO"; then :
2987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2988 /* end confdefs.h. */
2989 $4
2990 int
2991 main ()
2992 {
2993 if (sizeof (($2)))
2994 return 0;
2995 ;
2996 return 0;
2997 }
2998 _ACEOF
2999 if ac_fn_c_try_compile "$LINENO"; then :
3000
3001 else
3002 eval "$3=yes"
3003 fi
3004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3005 fi
3006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3007 fi
3008 eval ac_res=\$$3
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3010 $as_echo "$ac_res" >&6; }
3011 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3012
3013 } # ac_fn_c_check_type
3014 cat >config.log <<_ACEOF
3015 This file contains any messages produced by compilers while
3016 running configure, to aid debugging if configure makes a mistake.
3017
3018 It was created by $as_me, which was
3019 generated by GNU Autoconf 2.64. Invocation command line was
3020
3021 $ $0 $@
3022
3023 _ACEOF
3024 exec 5>>config.log
3025 {
3026 cat <<_ASUNAME
3027 ## --------- ##
3028 ## Platform. ##
3029 ## --------- ##
3030
3031 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3032 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3033 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3034 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3035 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3036
3037 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3038 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3039
3040 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3041 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3042 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3043 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3044 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3045 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3046 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3047
3048 _ASUNAME
3049
3050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051 for as_dir in $PATH
3052 do
3053 IFS=$as_save_IFS
3054 test -z "$as_dir" && as_dir=.
3055 $as_echo "PATH: $as_dir"
3056 done
3057 IFS=$as_save_IFS
3058
3059 } >&5
3060
3061 cat >&5 <<_ACEOF
3062
3063
3064 ## ----------- ##
3065 ## Core tests. ##
3066 ## ----------- ##
3067
3068 _ACEOF
3069
3070
3071 # Keep a trace of the command line.
3072 # Strip out --no-create and --no-recursion so they do not pile up.
3073 # Strip out --silent because we don't want to record it for future runs.
3074 # Also quote any args containing shell meta-characters.
3075 # Make two passes to allow for proper duplicate-argument suppression.
3076 ac_configure_args=
3077 ac_configure_args0=
3078 ac_configure_args1=
3079 ac_must_keep_next=false
3080 for ac_pass in 1 2
3081 do
3082 for ac_arg
3083 do
3084 case $ac_arg in
3085 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3087 | -silent | --silent | --silen | --sile | --sil)
3088 continue ;;
3089 *\'*)
3090 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3091 esac
3092 case $ac_pass in
3093 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3094 2)
3095 as_fn_append ac_configure_args1 " '$ac_arg'"
3096 if test $ac_must_keep_next = true; then
3097 ac_must_keep_next=false # Got value, back to normal.
3098 else
3099 case $ac_arg in
3100 *=* | --config-cache | -C | -disable-* | --disable-* \
3101 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3102 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3103 | -with-* | --with-* | -without-* | --without-* | --x)
3104 case "$ac_configure_args0 " in
3105 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3106 esac
3107 ;;
3108 -* ) ac_must_keep_next=true ;;
3109 esac
3110 fi
3111 as_fn_append ac_configure_args " '$ac_arg'"
3112 ;;
3113 esac
3114 done
3115 done
3116 { ac_configure_args0=; unset ac_configure_args0;}
3117 { ac_configure_args1=; unset ac_configure_args1;}
3118
3119 # When interrupted or exit'd, cleanup temporary files, and complete
3120 # config.log. We remove comments because anyway the quotes in there
3121 # would cause problems or look ugly.
3122 # WARNING: Use '\'' to represent an apostrophe within the trap.
3123 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3124 trap 'exit_status=$?
3125 # Save into config.log some information that might help in debugging.
3126 {
3127 echo
3128
3129 cat <<\_ASBOX
3130 ## ---------------- ##
3131 ## Cache variables. ##
3132 ## ---------------- ##
3133 _ASBOX
3134 echo
3135 # The following way of writing the cache mishandles newlines in values,
3136 (
3137 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3138 eval ac_val=\$$ac_var
3139 case $ac_val in #(
3140 *${as_nl}*)
3141 case $ac_var in #(
3142 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3143 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3144 esac
3145 case $ac_var in #(
3146 _ | IFS | as_nl) ;; #(
3147 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3148 *) { eval $ac_var=; unset $ac_var;} ;;
3149 esac ;;
3150 esac
3151 done
3152 (set) 2>&1 |
3153 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3154 *${as_nl}ac_space=\ *)
3155 sed -n \
3156 "s/'\''/'\''\\\\'\'''\''/g;
3157 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3158 ;; #(
3159 *)
3160 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3161 ;;
3162 esac |
3163 sort
3164 )
3165 echo
3166
3167 cat <<\_ASBOX
3168 ## ----------------- ##
3169 ## Output variables. ##
3170 ## ----------------- ##
3171 _ASBOX
3172 echo
3173 for ac_var in $ac_subst_vars
3174 do
3175 eval ac_val=\$$ac_var
3176 case $ac_val in
3177 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3178 esac
3179 $as_echo "$ac_var='\''$ac_val'\''"
3180 done | sort
3181 echo
3182
3183 if test -n "$ac_subst_files"; then
3184 cat <<\_ASBOX
3185 ## ------------------- ##
3186 ## File substitutions. ##
3187 ## ------------------- ##
3188 _ASBOX
3189 echo
3190 for ac_var in $ac_subst_files
3191 do
3192 eval ac_val=\$$ac_var
3193 case $ac_val in
3194 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3195 esac
3196 $as_echo "$ac_var='\''$ac_val'\''"
3197 done | sort
3198 echo
3199 fi
3200
3201 if test -s confdefs.h; then
3202 cat <<\_ASBOX
3203 ## ----------- ##
3204 ## confdefs.h. ##
3205 ## ----------- ##
3206 _ASBOX
3207 echo
3208 cat confdefs.h
3209 echo
3210 fi
3211 test "$ac_signal" != 0 &&
3212 $as_echo "$as_me: caught signal $ac_signal"
3213 $as_echo "$as_me: exit $exit_status"
3214 } >&5
3215 rm -f core *.core core.conftest.* &&
3216 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3217 exit $exit_status
3218 ' 0
3219 for ac_signal in 1 2 13 15; do
3220 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3221 done
3222 ac_signal=0
3223
3224 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3225 rm -f -r conftest* confdefs.h
3226
3227 $as_echo "/* confdefs.h */" > confdefs.h
3228
3229 # Predefined preprocessor variables.
3230
3231 cat >>confdefs.h <<_ACEOF
3232 #define PACKAGE_NAME "$PACKAGE_NAME"
3233 _ACEOF
3234
3235 cat >>confdefs.h <<_ACEOF
3236 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3237 _ACEOF
3238
3239 cat >>confdefs.h <<_ACEOF
3240 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3241 _ACEOF
3242
3243 cat >>confdefs.h <<_ACEOF
3244 #define PACKAGE_STRING "$PACKAGE_STRING"
3245 _ACEOF
3246
3247 cat >>confdefs.h <<_ACEOF
3248 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3249 _ACEOF
3250
3251 cat >>confdefs.h <<_ACEOF
3252 #define PACKAGE_URL "$PACKAGE_URL"
3253 _ACEOF
3254
3255
3256 # Let the site file select an alternate cache file if it wants to.
3257 # Prefer an explicitly selected file to automatically selected ones.
3258 ac_site_file1=NONE
3259 ac_site_file2=NONE
3260 if test -n "$CONFIG_SITE"; then
3261 ac_site_file1=$CONFIG_SITE
3262 elif test "x$prefix" != xNONE; then
3263 ac_site_file1=$prefix/share/config.site
3264 ac_site_file2=$prefix/etc/config.site
3265 else
3266 ac_site_file1=$ac_default_prefix/share/config.site
3267 ac_site_file2=$ac_default_prefix/etc/config.site
3268 fi
3269 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3270 do
3271 test "x$ac_site_file" = xNONE && continue
3272 if test -r "$ac_site_file"; then
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3274 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3275 sed 's/^/| /' "$ac_site_file" >&5
3276 . "$ac_site_file"
3277 fi
3278 done
3279
3280 if test -r "$cache_file"; then
3281 # Some versions of bash will fail to source /dev/null (special
3282 # files actually), so we avoid doing that.
3283 if test -f "$cache_file"; then
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3285 $as_echo "$as_me: loading cache $cache_file" >&6;}
3286 case $cache_file in
3287 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3288 *) . "./$cache_file";;
3289 esac
3290 fi
3291 else
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3293 $as_echo "$as_me: creating cache $cache_file" >&6;}
3294 >$cache_file
3295 fi
3296
3297 as_fn_append ac_func_list " canonicalize_file_name"
3298 as_fn_append ac_func_list " getcwd"
3299 as_fn_append ac_func_list " readlink"
3300 as_fn_append ac_func_list " realpath"
3301 as_fn_append ac_header_list " sys/param.h"
3302 as_fn_append ac_header_list " dirent.h"
3303 as_fn_append ac_func_list " btowc"
3304 as_fn_append ac_func_list " isblank"
3305 as_fn_append ac_func_list " iswctype"
3306 as_fn_append ac_func_list " mbsrtowcs"
3307 as_fn_append ac_func_list " mempcpy"
3308 as_fn_append ac_func_list " wmemchr"
3309 as_fn_append ac_func_list " wmemcpy"
3310 as_fn_append ac_func_list " wmempcpy"
3311 as_fn_append ac_header_list " wctype.h"
3312 gl_fnmatch_required=GNU
3313 as_fn_append ac_header_list " sys/time.h"
3314 as_fn_append ac_header_list " sys/socket.h"
3315 as_fn_append ac_func_list " gettimeofday"
3316 as_fn_append ac_header_list " wchar.h"
3317 as_fn_append ac_header_list " stdint.h"
3318 as_fn_append ac_header_list " inttypes.h"
3319 as_fn_append ac_header_list " unistd.h"
3320 as_fn_append ac_func_list " symlink"
3321 as_fn_append ac_func_list " lstat"
3322 as_fn_append ac_header_list " math.h"
3323 as_fn_append ac_func_list " mbsinit"
3324 as_fn_append ac_func_list " mbrtowc"
3325 as_fn_append ac_header_list " sys/mman.h"
3326 as_fn_append ac_func_list " mprotect"
3327 as_fn_append ac_func_list " link"
3328 as_fn_append ac_header_list " sys/stat.h"
3329 as_fn_append ac_header_list " features.h"
3330 as_fn_append ac_func_list " iswcntrl"
3331 # Check that the precious variables saved in the cache have kept the same
3332 # value.
3333 ac_cache_corrupted=false
3334 for ac_var in $ac_precious_vars; do
3335 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3336 eval ac_new_set=\$ac_env_${ac_var}_set
3337 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3338 eval ac_new_val=\$ac_env_${ac_var}_value
3339 case $ac_old_set,$ac_new_set in
3340 set,)
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3342 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3343 ac_cache_corrupted=: ;;
3344 ,set)
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3346 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3347 ac_cache_corrupted=: ;;
3348 ,);;
3349 *)
3350 if test "x$ac_old_val" != "x$ac_new_val"; then
3351 # differences in whitespace do not lead to failure.
3352 ac_old_val_w=`echo x $ac_old_val`
3353 ac_new_val_w=`echo x $ac_new_val`
3354 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3356 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3357 ac_cache_corrupted=:
3358 else
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3360 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3361 eval $ac_var=\$ac_old_val
3362 fi
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3364 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3366 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3367 fi;;
3368 esac
3369 # Pass precious variables to config.status.
3370 if test "$ac_new_set" = set; then
3371 case $ac_new_val in
3372 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3373 *) ac_arg=$ac_var=$ac_new_val ;;
3374 esac
3375 case " $ac_configure_args " in
3376 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3377 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3378 esac
3379 fi
3380 done
3381 if $ac_cache_corrupted; then
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3385 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3386 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3387 fi
3388 ## -------------------- ##
3389 ## Main body of script. ##
3390 ## -------------------- ##
3391
3392 ac_ext=c
3393 ac_cpp='$CPP $CPPFLAGS'
3394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397
3398
3399 ac_config_headers="$ac_config_headers config.h:config.in"
3400
3401
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3403 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3404 # Check whether --enable-maintainer-mode was given.
3405 if test "${enable_maintainer_mode+set}" = set; then :
3406 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3407 else
3408 USE_MAINTAINER_MODE=no
3409 fi
3410
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3412 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3413 if test $USE_MAINTAINER_MODE = yes; then
3414 MAINTAINER_MODE_TRUE=
3415 MAINTAINER_MODE_FALSE='#'
3416 else
3417 MAINTAINER_MODE_TRUE='#'
3418 MAINTAINER_MODE_FALSE=
3419 fi
3420
3421 MAINT=$MAINTAINER_MODE_TRUE
3422
3423
3424
3425 ac_ext=c
3426 ac_cpp='$CPP $CPPFLAGS'
3427 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3428 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3429 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3430 if test -n "$ac_tool_prefix"; then
3431 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3432 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3434 $as_echo_n "checking for $ac_word... " >&6; }
3435 if test "${ac_cv_prog_CC+set}" = set; then :
3436 $as_echo_n "(cached) " >&6
3437 else
3438 if test -n "$CC"; then
3439 ac_cv_prog_CC="$CC" # Let the user override the test.
3440 else
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH
3443 do
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3448 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3450 break 2
3451 fi
3452 done
3453 done
3454 IFS=$as_save_IFS
3455
3456 fi
3457 fi
3458 CC=$ac_cv_prog_CC
3459 if test -n "$CC"; then
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3461 $as_echo "$CC" >&6; }
3462 else
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464 $as_echo "no" >&6; }
3465 fi
3466
3467
3468 fi
3469 if test -z "$ac_cv_prog_CC"; then
3470 ac_ct_CC=$CC
3471 # Extract the first word of "gcc", so it can be a program name with args.
3472 set dummy gcc; ac_word=$2
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3474 $as_echo_n "checking for $ac_word... " >&6; }
3475 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3476 $as_echo_n "(cached) " >&6
3477 else
3478 if test -n "$ac_ct_CC"; then
3479 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3480 else
3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 for as_dir in $PATH
3483 do
3484 IFS=$as_save_IFS
3485 test -z "$as_dir" && as_dir=.
3486 for ac_exec_ext in '' $ac_executable_extensions; do
3487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3488 ac_cv_prog_ac_ct_CC="gcc"
3489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3490 break 2
3491 fi
3492 done
3493 done
3494 IFS=$as_save_IFS
3495
3496 fi
3497 fi
3498 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3499 if test -n "$ac_ct_CC"; then
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3501 $as_echo "$ac_ct_CC" >&6; }
3502 else
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504 $as_echo "no" >&6; }
3505 fi
3506
3507 if test "x$ac_ct_CC" = x; then
3508 CC=""
3509 else
3510 case $cross_compiling:$ac_tool_warned in
3511 yes:)
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3514 ac_tool_warned=yes ;;
3515 esac
3516 CC=$ac_ct_CC
3517 fi
3518 else
3519 CC="$ac_cv_prog_CC"
3520 fi
3521
3522 if test -z "$CC"; then
3523 if test -n "$ac_tool_prefix"; then
3524 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3525 set dummy ${ac_tool_prefix}cc; ac_word=$2
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3527 $as_echo_n "checking for $ac_word... " >&6; }
3528 if test "${ac_cv_prog_CC+set}" = set; then :
3529 $as_echo_n "(cached) " >&6
3530 else
3531 if test -n "$CC"; then
3532 ac_cv_prog_CC="$CC" # Let the user override the test.
3533 else
3534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535 for as_dir in $PATH
3536 do
3537 IFS=$as_save_IFS
3538 test -z "$as_dir" && as_dir=.
3539 for ac_exec_ext in '' $ac_executable_extensions; do
3540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3541 ac_cv_prog_CC="${ac_tool_prefix}cc"
3542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3543 break 2
3544 fi
3545 done
3546 done
3547 IFS=$as_save_IFS
3548
3549 fi
3550 fi
3551 CC=$ac_cv_prog_CC
3552 if test -n "$CC"; then
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3554 $as_echo "$CC" >&6; }
3555 else
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3557 $as_echo "no" >&6; }
3558 fi
3559
3560
3561 fi
3562 fi
3563 if test -z "$CC"; then
3564 # Extract the first word of "cc", so it can be a program name with args.
3565 set dummy cc; ac_word=$2
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3567 $as_echo_n "checking for $ac_word... " >&6; }
3568 if test "${ac_cv_prog_CC+set}" = set; then :
3569 $as_echo_n "(cached) " >&6
3570 else
3571 if test -n "$CC"; then
3572 ac_cv_prog_CC="$CC" # Let the user override the test.
3573 else
3574 ac_prog_rejected=no
3575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3576 for as_dir in $PATH
3577 do
3578 IFS=$as_save_IFS
3579 test -z "$as_dir" && as_dir=.
3580 for ac_exec_ext in '' $ac_executable_extensions; do
3581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3582 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3583 ac_prog_rejected=yes
3584 continue
3585 fi
3586 ac_cv_prog_CC="cc"
3587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3588 break 2
3589 fi
3590 done
3591 done
3592 IFS=$as_save_IFS
3593
3594 if test $ac_prog_rejected = yes; then
3595 # We found a bogon in the path, so make sure we never use it.
3596 set dummy $ac_cv_prog_CC
3597 shift
3598 if test $# != 0; then
3599 # We chose a different compiler from the bogus one.
3600 # However, it has the same basename, so the bogon will be chosen
3601 # first if we set CC to just the basename; use the full file name.
3602 shift
3603 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3604 fi
3605 fi
3606 fi
3607 fi
3608 CC=$ac_cv_prog_CC
3609 if test -n "$CC"; then
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3611 $as_echo "$CC" >&6; }
3612 else
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3614 $as_echo "no" >&6; }
3615 fi
3616
3617
3618 fi
3619 if test -z "$CC"; then
3620 if test -n "$ac_tool_prefix"; then
3621 for ac_prog in cl.exe
3622 do
3623 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3624 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3626 $as_echo_n "checking for $ac_word... " >&6; }
3627 if test "${ac_cv_prog_CC+set}" = set; then :
3628 $as_echo_n "(cached) " >&6
3629 else
3630 if test -n "$CC"; then
3631 ac_cv_prog_CC="$CC" # Let the user override the test.
3632 else
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 for as_dir in $PATH
3635 do
3636 IFS=$as_save_IFS
3637 test -z "$as_dir" && as_dir=.
3638 for ac_exec_ext in '' $ac_executable_extensions; do
3639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3640 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3642 break 2
3643 fi
3644 done
3645 done
3646 IFS=$as_save_IFS
3647
3648 fi
3649 fi
3650 CC=$ac_cv_prog_CC
3651 if test -n "$CC"; then
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3653 $as_echo "$CC" >&6; }
3654 else
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 $as_echo "no" >&6; }
3657 fi
3658
3659
3660 test -n "$CC" && break
3661 done
3662 fi
3663 if test -z "$CC"; then
3664 ac_ct_CC=$CC
3665 for ac_prog in cl.exe
3666 do
3667 # Extract the first word of "$ac_prog", so it can be a program name with args.
3668 set dummy $ac_prog; ac_word=$2
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3670 $as_echo_n "checking for $ac_word... " >&6; }
3671 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3672 $as_echo_n "(cached) " >&6
3673 else
3674 if test -n "$ac_ct_CC"; then
3675 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3676 else
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 for as_dir in $PATH
3679 do
3680 IFS=$as_save_IFS
3681 test -z "$as_dir" && as_dir=.
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3684 ac_cv_prog_ac_ct_CC="$ac_prog"
3685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3686 break 2
3687 fi
3688 done
3689 done
3690 IFS=$as_save_IFS
3691
3692 fi
3693 fi
3694 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3695 if test -n "$ac_ct_CC"; then
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3697 $as_echo "$ac_ct_CC" >&6; }
3698 else
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700 $as_echo "no" >&6; }
3701 fi
3702
3703
3704 test -n "$ac_ct_CC" && break
3705 done
3706
3707 if test "x$ac_ct_CC" = x; then
3708 CC=""
3709 else
3710 case $cross_compiling:$ac_tool_warned in
3711 yes:)
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3714 ac_tool_warned=yes ;;
3715 esac
3716 CC=$ac_ct_CC
3717 fi
3718 fi
3719
3720 fi
3721
3722
3723 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3725 as_fn_error "no acceptable C compiler found in \$PATH
3726 See \`config.log' for more details." "$LINENO" 5; }
3727
3728 # Provide some information about the compiler.
3729 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3730 set X $ac_compile
3731 ac_compiler=$2
3732 for ac_option in --version -v -V -qversion; do
3733 { { ac_try="$ac_compiler $ac_option >&5"
3734 case "(($ac_try" in
3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3737 esac
3738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3739 $as_echo "$ac_try_echo"; } >&5
3740 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3741 ac_status=$?
3742 if test -s conftest.err; then
3743 sed '10a\
3744 ... rest of stderr output deleted ...
3745 10q' conftest.err >conftest.er1
3746 cat conftest.er1 >&5
3747 rm -f conftest.er1 conftest.err
3748 fi
3749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3750 test $ac_status = 0; }
3751 done
3752
3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754 /* end confdefs.h. */
3755 #include <stdio.h>
3756 int
3757 main ()
3758 {
3759 FILE *f = fopen ("conftest.out", "w");
3760 return ferror (f) || fclose (f) != 0;
3761
3762 ;
3763 return 0;
3764 }
3765 _ACEOF
3766 ac_clean_files_save=$ac_clean_files
3767 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3768 # Try to create an executable without -o first, disregard a.out.
3769 # It will help us diagnose broken compilers, and finding out an intuition
3770 # of exeext.
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3772 $as_echo_n "checking for C compiler default output file name... " >&6; }
3773 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3774
3775 # The possible output files:
3776 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3777
3778 ac_rmfiles=
3779 for ac_file in $ac_files
3780 do
3781 case $ac_file in
3782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3783 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3784 esac
3785 done
3786 rm -f $ac_rmfiles
3787
3788 if { { ac_try="$ac_link_default"
3789 case "(($ac_try" in
3790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791 *) ac_try_echo=$ac_try;;
3792 esac
3793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3794 $as_echo "$ac_try_echo"; } >&5
3795 (eval "$ac_link_default") 2>&5
3796 ac_status=$?
3797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3798 test $ac_status = 0; }; then :
3799 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3800 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3801 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3802 # so that the user can short-circuit this test for compilers unknown to
3803 # Autoconf.
3804 for ac_file in $ac_files ''
3805 do
3806 test -f "$ac_file" || continue
3807 case $ac_file in
3808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3809 ;;
3810 [ab].out )
3811 # We found the default executable, but exeext='' is most
3812 # certainly right.
3813 break;;
3814 *.* )
3815 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3816 then :; else
3817 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3818 fi
3819 # We set ac_cv_exeext here because the later test for it is not
3820 # safe: cross compilers may not add the suffix if given an `-o'
3821 # argument, so we may need to know it at that point already.
3822 # Even if this section looks crufty: it has the advantage of
3823 # actually working.
3824 break;;
3825 * )
3826 break;;
3827 esac
3828 done
3829 test "$ac_cv_exeext" = no && ac_cv_exeext=
3830
3831 else
3832 ac_file=''
3833 fi
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3835 $as_echo "$ac_file" >&6; }
3836 if test -z "$ac_file"; then :
3837 $as_echo "$as_me: failed program was:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3839
3840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3842 { as_fn_set_status 77
3843 as_fn_error "C compiler cannot create executables
3844 See \`config.log' for more details." "$LINENO" 5; }; }
3845 fi
3846 ac_exeext=$ac_cv_exeext
3847
3848 # Check that the compiler produces executables we can run. If not, either
3849 # the compiler is broken, or we cross compile.
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3851 $as_echo_n "checking whether the C compiler works... " >&6; }
3852 # If not cross compiling, check that we can run a simple program.
3853 if test "$cross_compiling" != yes; then
3854 if { ac_try='./$ac_file'
3855 { { case "(($ac_try" in
3856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857 *) ac_try_echo=$ac_try;;
3858 esac
3859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3860 $as_echo "$ac_try_echo"; } >&5
3861 (eval "$ac_try") 2>&5
3862 ac_status=$?
3863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3864 test $ac_status = 0; }; }; then
3865 cross_compiling=no
3866 else
3867 if test "$cross_compiling" = maybe; then
3868 cross_compiling=yes
3869 else
3870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3872 as_fn_error "cannot run C compiled programs.
3873 If you meant to cross compile, use \`--host'.
3874 See \`config.log' for more details." "$LINENO" 5; }
3875 fi
3876 fi
3877 fi
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3879 $as_echo "yes" >&6; }
3880
3881 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3882 ac_clean_files=$ac_clean_files_save
3883 # Check that the compiler produces executables we can run. If not, either
3884 # the compiler is broken, or we cross compile.
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3886 $as_echo_n "checking whether we are cross compiling... " >&6; }
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3888 $as_echo "$cross_compiling" >&6; }
3889
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3891 $as_echo_n "checking for suffix of executables... " >&6; }
3892 if { { ac_try="$ac_link"
3893 case "(($ac_try" in
3894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895 *) ac_try_echo=$ac_try;;
3896 esac
3897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3898 $as_echo "$ac_try_echo"; } >&5
3899 (eval "$ac_link") 2>&5
3900 ac_status=$?
3901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3902 test $ac_status = 0; }; then :
3903 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3904 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3905 # work properly (i.e., refer to `conftest.exe'), while it won't with
3906 # `rm'.
3907 for ac_file in conftest.exe conftest conftest.*; do
3908 test -f "$ac_file" || continue
3909 case $ac_file in
3910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3911 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3912 break;;
3913 * ) break;;
3914 esac
3915 done
3916 else
3917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3919 as_fn_error "cannot compute suffix of executables: cannot compile and link
3920 See \`config.log' for more details." "$LINENO" 5; }
3921 fi
3922 rm -f conftest$ac_cv_exeext
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3924 $as_echo "$ac_cv_exeext" >&6; }
3925
3926 rm -f conftest.$ac_ext
3927 EXEEXT=$ac_cv_exeext
3928 ac_exeext=$EXEEXT
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3930 $as_echo_n "checking for suffix of object files... " >&6; }
3931 if test "${ac_cv_objext+set}" = set; then :
3932 $as_echo_n "(cached) " >&6
3933 else
3934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h. */
3936
3937 int
3938 main ()
3939 {
3940
3941 ;
3942 return 0;
3943 }
3944 _ACEOF
3945 rm -f conftest.o conftest.obj
3946 if { { ac_try="$ac_compile"
3947 case "(($ac_try" in
3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949 *) ac_try_echo=$ac_try;;
3950 esac
3951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3952 $as_echo "$ac_try_echo"; } >&5
3953 (eval "$ac_compile") 2>&5
3954 ac_status=$?
3955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3956 test $ac_status = 0; }; then :
3957 for ac_file in conftest.o conftest.obj conftest.*; do
3958 test -f "$ac_file" || continue;
3959 case $ac_file in
3960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3961 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3962 break;;
3963 esac
3964 done
3965 else
3966 $as_echo "$as_me: failed program was:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3968
3969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3971 as_fn_error "cannot compute suffix of object files: cannot compile
3972 See \`config.log' for more details." "$LINENO" 5; }
3973 fi
3974 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3975 fi
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3977 $as_echo "$ac_cv_objext" >&6; }
3978 OBJEXT=$ac_cv_objext
3979 ac_objext=$OBJEXT
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3981 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3982 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3983 $as_echo_n "(cached) " >&6
3984 else
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3987
3988 int
3989 main ()
3990 {
3991 #ifndef __GNUC__
3992 choke me
3993 #endif
3994
3995 ;
3996 return 0;
3997 }
3998 _ACEOF
3999 if ac_fn_c_try_compile "$LINENO"; then :
4000 ac_compiler_gnu=yes
4001 else
4002 ac_compiler_gnu=no
4003 fi
4004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4005 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4006
4007 fi
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4009 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4010 if test $ac_compiler_gnu = yes; then
4011 GCC=yes
4012 else
4013 GCC=
4014 fi
4015 ac_test_CFLAGS=${CFLAGS+set}
4016 ac_save_CFLAGS=$CFLAGS
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4018 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4019 if test "${ac_cv_prog_cc_g+set}" = set; then :
4020 $as_echo_n "(cached) " >&6
4021 else
4022 ac_save_c_werror_flag=$ac_c_werror_flag
4023 ac_c_werror_flag=yes
4024 ac_cv_prog_cc_g=no
4025 CFLAGS="-g"
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4028
4029 int
4030 main ()
4031 {
4032
4033 ;
4034 return 0;
4035 }
4036 _ACEOF
4037 if ac_fn_c_try_compile "$LINENO"; then :
4038 ac_cv_prog_cc_g=yes
4039 else
4040 CFLAGS=""
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4043
4044 int
4045 main ()
4046 {
4047
4048 ;
4049 return 0;
4050 }
4051 _ACEOF
4052 if ac_fn_c_try_compile "$LINENO"; then :
4053
4054 else
4055 ac_c_werror_flag=$ac_save_c_werror_flag
4056 CFLAGS="-g"
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4059
4060 int
4061 main ()
4062 {
4063
4064 ;
4065 return 0;
4066 }
4067 _ACEOF
4068 if ac_fn_c_try_compile "$LINENO"; then :
4069 ac_cv_prog_cc_g=yes
4070 fi
4071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072 fi
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074 fi
4075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4076 ac_c_werror_flag=$ac_save_c_werror_flag
4077 fi
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4079 $as_echo "$ac_cv_prog_cc_g" >&6; }
4080 if test "$ac_test_CFLAGS" = set; then
4081 CFLAGS=$ac_save_CFLAGS
4082 elif test $ac_cv_prog_cc_g = yes; then
4083 if test "$GCC" = yes; then
4084 CFLAGS="-g -O2"
4085 else
4086 CFLAGS="-g"
4087 fi
4088 else
4089 if test "$GCC" = yes; then
4090 CFLAGS="-O2"
4091 else
4092 CFLAGS=
4093 fi
4094 fi
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4096 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4097 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4098 $as_echo_n "(cached) " >&6
4099 else
4100 ac_cv_prog_cc_c89=no
4101 ac_save_CC=$CC
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4104 #include <stdarg.h>
4105 #include <stdio.h>
4106 #include <sys/types.h>
4107 #include <sys/stat.h>
4108 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4109 struct buf { int x; };
4110 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4111 static char *e (p, i)
4112 char **p;
4113 int i;
4114 {
4115 return p[i];
4116 }
4117 static char *f (char * (*g) (char **, int), char **p, ...)
4118 {
4119 char *s;
4120 va_list v;
4121 va_start (v,p);
4122 s = g (p, va_arg (v,int));
4123 va_end (v);
4124 return s;
4125 }
4126
4127 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4128 function prototypes and stuff, but not '\xHH' hex character constants.
4129 These don't provoke an error unfortunately, instead are silently treated
4130 as 'x'. The following induces an error, until -std is added to get
4131 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4132 array size at least. It's necessary to write '\x00'==0 to get something
4133 that's true only with -std. */
4134 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4135
4136 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4137 inside strings and character constants. */
4138 #define FOO(x) 'x'
4139 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4140
4141 int test (int i, double x);
4142 struct s1 {int (*f) (int a);};
4143 struct s2 {int (*f) (double a);};
4144 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4145 int argc;
4146 char **argv;
4147 int
4148 main ()
4149 {
4150 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4151 ;
4152 return 0;
4153 }
4154 _ACEOF
4155 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4156 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4157 do
4158 CC="$ac_save_CC $ac_arg"
4159 if ac_fn_c_try_compile "$LINENO"; then :
4160 ac_cv_prog_cc_c89=$ac_arg
4161 fi
4162 rm -f core conftest.err conftest.$ac_objext
4163 test "x$ac_cv_prog_cc_c89" != "xno" && break
4164 done
4165 rm -f conftest.$ac_ext
4166 CC=$ac_save_CC
4167
4168 fi
4169 # AC_CACHE_VAL
4170 case "x$ac_cv_prog_cc_c89" in
4171 x)
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4173 $as_echo "none needed" >&6; } ;;
4174 xno)
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4176 $as_echo "unsupported" >&6; } ;;
4177 *)
4178 CC="$CC $ac_cv_prog_cc_c89"
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4180 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4181 esac
4182 if test "x$ac_cv_prog_cc_c89" != xno; then :
4183
4184 fi
4185
4186 ac_ext=c
4187 ac_cpp='$CPP $CPPFLAGS'
4188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4191
4192
4193 ac_ext=c
4194 ac_cpp='$CPP $CPPFLAGS'
4195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4199 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4200 # On Suns, sometimes $CPP names a directory.
4201 if test -n "$CPP" && test -d "$CPP"; then
4202 CPP=
4203 fi
4204 if test -z "$CPP"; then
4205 if test "${ac_cv_prog_CPP+set}" = set; then :
4206 $as_echo_n "(cached) " >&6
4207 else
4208 # Double quotes because CPP needs to be expanded
4209 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4210 do
4211 ac_preproc_ok=false
4212 for ac_c_preproc_warn_flag in '' yes
4213 do
4214 # Use a header file that comes with gcc, so configuring glibc
4215 # with a fresh cross-compiler works.
4216 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4217 # <limits.h> exists even on freestanding compilers.
4218 # On the NeXT, cc -E runs the code through the compiler's parser,
4219 # not just through cpp. "Syntax error" is here to catch this case.
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4222 #ifdef __STDC__
4223 # include <limits.h>
4224 #else
4225 # include <assert.h>
4226 #endif
4227 Syntax error
4228 _ACEOF
4229 if ac_fn_c_try_cpp "$LINENO"; then :
4230
4231 else
4232 # Broken: fails on valid input.
4233 continue
4234 fi
4235 rm -f conftest.err conftest.$ac_ext
4236
4237 # OK, works on sane cases. Now check whether nonexistent headers
4238 # can be detected and how.
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240 /* end confdefs.h. */
4241 #include <ac_nonexistent.h>
4242 _ACEOF
4243 if ac_fn_c_try_cpp "$LINENO"; then :
4244 # Broken: success on invalid input.
4245 continue
4246 else
4247 # Passes both tests.
4248 ac_preproc_ok=:
4249 break
4250 fi
4251 rm -f conftest.err conftest.$ac_ext
4252
4253 done
4254 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4255 rm -f conftest.err conftest.$ac_ext
4256 if $ac_preproc_ok; then :
4257 break
4258 fi
4259
4260 done
4261 ac_cv_prog_CPP=$CPP
4262
4263 fi
4264 CPP=$ac_cv_prog_CPP
4265 else
4266 ac_cv_prog_CPP=$CPP
4267 fi
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4269 $as_echo "$CPP" >&6; }
4270 ac_preproc_ok=false
4271 for ac_c_preproc_warn_flag in '' yes
4272 do
4273 # Use a header file that comes with gcc, so configuring glibc
4274 # with a fresh cross-compiler works.
4275 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4276 # <limits.h> exists even on freestanding compilers.
4277 # On the NeXT, cc -E runs the code through the compiler's parser,
4278 # not just through cpp. "Syntax error" is here to catch this case.
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4281 #ifdef __STDC__
4282 # include <limits.h>
4283 #else
4284 # include <assert.h>
4285 #endif
4286 Syntax error
4287 _ACEOF
4288 if ac_fn_c_try_cpp "$LINENO"; then :
4289
4290 else
4291 # Broken: fails on valid input.
4292 continue
4293 fi
4294 rm -f conftest.err conftest.$ac_ext
4295
4296 # OK, works on sane cases. Now check whether nonexistent headers
4297 # can be detected and how.
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4300 #include <ac_nonexistent.h>
4301 _ACEOF
4302 if ac_fn_c_try_cpp "$LINENO"; then :
4303 # Broken: success on invalid input.
4304 continue
4305 else
4306 # Passes both tests.
4307 ac_preproc_ok=:
4308 break
4309 fi
4310 rm -f conftest.err conftest.$ac_ext
4311
4312 done
4313 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4314 rm -f conftest.err conftest.$ac_ext
4315 if $ac_preproc_ok; then :
4316
4317 else
4318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4319 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4320 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4321 See \`config.log' for more details." "$LINENO" 5; }
4322 fi
4323
4324 ac_ext=c
4325 ac_cpp='$CPP $CPPFLAGS'
4326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4329
4330
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4332 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4333 if test "${ac_cv_path_GREP+set}" = set; then :
4334 $as_echo_n "(cached) " >&6
4335 else
4336 if test -z "$GREP"; then
4337 ac_path_GREP_found=false
4338 # Loop through the user's path and test for each of PROGNAME-LIST
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4341 do
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
4344 for ac_prog in grep ggrep; do
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4347 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4348 # Check for GNU ac_path_GREP and select it if it is found.
4349 # Check for GNU $ac_path_GREP
4350 case `"$ac_path_GREP" --version 2>&1` in
4351 *GNU*)
4352 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4353 *)
4354 ac_count=0
4355 $as_echo_n 0123456789 >"conftest.in"
4356 while :
4357 do
4358 cat "conftest.in" "conftest.in" >"conftest.tmp"
4359 mv "conftest.tmp" "conftest.in"
4360 cp "conftest.in" "conftest.nl"
4361 $as_echo 'GREP' >> "conftest.nl"
4362 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4363 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4364 as_fn_arith $ac_count + 1 && ac_count=$as_val
4365 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4366 # Best one so far, save it but keep looking for a better one
4367 ac_cv_path_GREP="$ac_path_GREP"
4368 ac_path_GREP_max=$ac_count
4369 fi
4370 # 10*(2^10) chars as input seems more than enough
4371 test $ac_count -gt 10 && break
4372 done
4373 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4374 esac
4375
4376 $ac_path_GREP_found && break 3
4377 done
4378 done
4379 done
4380 IFS=$as_save_IFS
4381 if test -z "$ac_cv_path_GREP"; then
4382 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4383 fi
4384 else
4385 ac_cv_path_GREP=$GREP
4386 fi
4387
4388 fi
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4390 $as_echo "$ac_cv_path_GREP" >&6; }
4391 GREP="$ac_cv_path_GREP"
4392
4393
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4395 $as_echo_n "checking for egrep... " >&6; }
4396 if test "${ac_cv_path_EGREP+set}" = set; then :
4397 $as_echo_n "(cached) " >&6
4398 else
4399 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4400 then ac_cv_path_EGREP="$GREP -E"
4401 else
4402 if test -z "$EGREP"; then
4403 ac_path_EGREP_found=false
4404 # Loop through the user's path and test for each of PROGNAME-LIST
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4407 do
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
4410 for ac_prog in egrep; do
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4413 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4414 # Check for GNU ac_path_EGREP and select it if it is found.
4415 # Check for GNU $ac_path_EGREP
4416 case `"$ac_path_EGREP" --version 2>&1` in
4417 *GNU*)
4418 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4419 *)
4420 ac_count=0
4421 $as_echo_n 0123456789 >"conftest.in"
4422 while :
4423 do
4424 cat "conftest.in" "conftest.in" >"conftest.tmp"
4425 mv "conftest.tmp" "conftest.in"
4426 cp "conftest.in" "conftest.nl"
4427 $as_echo 'EGREP' >> "conftest.nl"
4428 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4429 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4430 as_fn_arith $ac_count + 1 && ac_count=$as_val
4431 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4432 # Best one so far, save it but keep looking for a better one
4433 ac_cv_path_EGREP="$ac_path_EGREP"
4434 ac_path_EGREP_max=$ac_count
4435 fi
4436 # 10*(2^10) chars as input seems more than enough
4437 test $ac_count -gt 10 && break
4438 done
4439 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4440 esac
4441
4442 $ac_path_EGREP_found && break 3
4443 done
4444 done
4445 done
4446 IFS=$as_save_IFS
4447 if test -z "$ac_cv_path_EGREP"; then
4448 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4449 fi
4450 else
4451 ac_cv_path_EGREP=$EGREP
4452 fi
4453
4454 fi
4455 fi
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4457 $as_echo "$ac_cv_path_EGREP" >&6; }
4458 EGREP="$ac_cv_path_EGREP"
4459
4460
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4462 $as_echo_n "checking for ANSI C header files... " >&6; }
4463 if test "${ac_cv_header_stdc+set}" = set; then :
4464 $as_echo_n "(cached) " >&6
4465 else
4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467 /* end confdefs.h. */
4468 #include <stdlib.h>
4469 #include <stdarg.h>
4470 #include <string.h>
4471 #include <float.h>
4472
4473 int
4474 main ()
4475 {
4476
4477 ;
4478 return 0;
4479 }
4480 _ACEOF
4481 if ac_fn_c_try_compile "$LINENO"; then :
4482 ac_cv_header_stdc=yes
4483 else
4484 ac_cv_header_stdc=no
4485 fi
4486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4487
4488 if test $ac_cv_header_stdc = yes; then
4489 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4492 #include <string.h>
4493
4494 _ACEOF
4495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4496 $EGREP "memchr" >/dev/null 2>&1; then :
4497
4498 else
4499 ac_cv_header_stdc=no
4500 fi
4501 rm -f conftest*
4502
4503 fi
4504
4505 if test $ac_cv_header_stdc = yes; then
4506 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4509 #include <stdlib.h>
4510
4511 _ACEOF
4512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4513 $EGREP "free" >/dev/null 2>&1; then :
4514
4515 else
4516 ac_cv_header_stdc=no
4517 fi
4518 rm -f conftest*
4519
4520 fi
4521
4522 if test $ac_cv_header_stdc = yes; then
4523 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4524 if test "$cross_compiling" = yes; then :
4525 :
4526 else
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4529 #include <ctype.h>
4530 #include <stdlib.h>
4531 #if ((' ' & 0x0FF) == 0x020)
4532 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4533 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4534 #else
4535 # define ISLOWER(c) \
4536 (('a' <= (c) && (c) <= 'i') \
4537 || ('j' <= (c) && (c) <= 'r') \
4538 || ('s' <= (c) && (c) <= 'z'))
4539 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4540 #endif
4541
4542 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4543 int
4544 main ()
4545 {
4546 int i;
4547 for (i = 0; i < 256; i++)
4548 if (XOR (islower (i), ISLOWER (i))
4549 || toupper (i) != TOUPPER (i))
4550 return 2;
4551 return 0;
4552 }
4553 _ACEOF
4554 if ac_fn_c_try_run "$LINENO"; then :
4555
4556 else
4557 ac_cv_header_stdc=no
4558 fi
4559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4560 conftest.$ac_objext conftest.beam conftest.$ac_ext
4561 fi
4562
4563 fi
4564 fi
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4566 $as_echo "$ac_cv_header_stdc" >&6; }
4567 if test $ac_cv_header_stdc = yes; then
4568
4569 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4570
4571 fi
4572
4573 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4574 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4575 inttypes.h stdint.h unistd.h
4576 do :
4577 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4578 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4579 "
4580 eval as_val=\$$as_ac_Header
4581 if test "x$as_val" = x""yes; then :
4582 cat >>confdefs.h <<_ACEOF
4583 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4584 _ACEOF
4585
4586 fi
4587
4588 done
4589
4590
4591
4592 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4593 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4594 MINIX=yes
4595 else
4596 MINIX=
4597 fi
4598
4599
4600 if test "$MINIX" = yes; then
4601
4602 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4603
4604
4605 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4606
4607
4608 $as_echo "#define _MINIX 1" >>confdefs.h
4609
4610
4611 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4612
4613 fi
4614
4615
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4617 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4618 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4619 $as_echo_n "(cached) " >&6
4620 else
4621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622 /* end confdefs.h. */
4623
4624 # define __EXTENSIONS__ 1
4625 $ac_includes_default
4626 int
4627 main ()
4628 {
4629
4630 ;
4631 return 0;
4632 }
4633 _ACEOF
4634 if ac_fn_c_try_compile "$LINENO"; then :
4635 ac_cv_safe_to_define___extensions__=yes
4636 else
4637 ac_cv_safe_to_define___extensions__=no
4638 fi
4639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4640 fi
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4642 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4643 test $ac_cv_safe_to_define___extensions__ = yes &&
4644 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4645
4646 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4647
4648 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4649
4650 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4651
4652 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
4653
4654 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4655
4656 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4657
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4659 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4660 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
4661 $as_echo_n "(cached) " >&6
4662 else
4663 ac_cv_should_define__xopen_source=no
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4666
4667 #include <wchar.h>
4668 mbstate_t x;
4669 int
4670 main ()
4671 {
4672
4673 ;
4674 return 0;
4675 }
4676 _ACEOF
4677 if ac_fn_c_try_compile "$LINENO"; then :
4678
4679 else
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h. */
4682
4683 #define _XOPEN_SOURCE 500
4684 #include <wchar.h>
4685 mbstate_t x;
4686 int
4687 main ()
4688 {
4689
4690 ;
4691 return 0;
4692 }
4693 _ACEOF
4694 if ac_fn_c_try_compile "$LINENO"; then :
4695 ac_cv_should_define__xopen_source=yes
4696 fi
4697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4698 fi
4699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4700 fi
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4702 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
4703 test $ac_cv_should_define__xopen_source = yes &&
4704 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4705
4706
4707
4708
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4710 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4711 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4712 $as_echo_n "(cached) " >&6
4713 else
4714
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4717
4718 #ifdef __ACK__
4719 Amsterdam
4720 #endif
4721
4722 _ACEOF
4723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4724 $EGREP "Amsterdam" >/dev/null 2>&1; then :
4725 gl_cv_c_amsterdam_compiler=yes
4726 else
4727 gl_cv_c_amsterdam_compiler=no
4728 fi
4729 rm -f conftest*
4730
4731
4732 fi
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4734 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4735 if test -z "$AR"; then
4736 if test $gl_cv_c_amsterdam_compiler = yes; then
4737 AR='cc -c.a'
4738 if test -z "$ARFLAGS"; then
4739 ARFLAGS='-o'
4740 fi
4741 else
4742 if test -n "$ac_tool_prefix"; then
4743 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4744 set dummy ${ac_tool_prefix}ar; ac_word=$2
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746 $as_echo_n "checking for $ac_word... " >&6; }
4747 if test "${ac_cv_prog_AR+set}" = set; then :
4748 $as_echo_n "(cached) " >&6
4749 else
4750 if test -n "$AR"; then
4751 ac_cv_prog_AR="$AR" # Let the user override the test.
4752 else
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 for as_dir in $PATH
4755 do
4756 IFS=$as_save_IFS
4757 test -z "$as_dir" && as_dir=.
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4760 ac_cv_prog_AR="${ac_tool_prefix}ar"
4761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 break 2
4763 fi
4764 done
4765 done
4766 IFS=$as_save_IFS
4767
4768 fi
4769 fi
4770 AR=$ac_cv_prog_AR
4771 if test -n "$AR"; then
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4773 $as_echo "$AR" >&6; }
4774 else
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4776 $as_echo "no" >&6; }
4777 fi
4778
4779
4780 fi
4781 if test -z "$ac_cv_prog_AR"; then
4782 ac_ct_AR=$AR
4783 # Extract the first word of "ar", so it can be a program name with args.
4784 set dummy ar; ac_word=$2
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4786 $as_echo_n "checking for $ac_word... " >&6; }
4787 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4788 $as_echo_n "(cached) " >&6
4789 else
4790 if test -n "$ac_ct_AR"; then
4791 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4792 else
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 for as_dir in $PATH
4795 do
4796 IFS=$as_save_IFS
4797 test -z "$as_dir" && as_dir=.
4798 for ac_exec_ext in '' $ac_executable_extensions; do
4799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4800 ac_cv_prog_ac_ct_AR="ar"
4801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 break 2
4803 fi
4804 done
4805 done
4806 IFS=$as_save_IFS
4807
4808 fi
4809 fi
4810 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4811 if test -n "$ac_ct_AR"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4813 $as_echo "$ac_ct_AR" >&6; }
4814 else
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816 $as_echo "no" >&6; }
4817 fi
4818
4819 if test "x$ac_ct_AR" = x; then
4820 AR="ar"
4821 else
4822 case $cross_compiling:$ac_tool_warned in
4823 yes:)
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4825 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4826 ac_tool_warned=yes ;;
4827 esac
4828 AR=$ac_ct_AR
4829 fi
4830 else
4831 AR="$ac_cv_prog_AR"
4832 fi
4833
4834 if test -z "$ARFLAGS"; then
4835 ARFLAGS='cr'
4836 fi
4837 fi
4838 else
4839 if test -z "$ARFLAGS"; then
4840 ARFLAGS='cr'
4841 fi
4842 fi
4843
4844
4845 if test -z "$RANLIB"; then
4846 if test $gl_cv_c_amsterdam_compiler = yes; then
4847 RANLIB=':'
4848 else
4849 if test -n "$ac_tool_prefix"; then
4850 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4851 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4853 $as_echo_n "checking for $ac_word... " >&6; }
4854 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4855 $as_echo_n "(cached) " >&6
4856 else
4857 if test -n "$RANLIB"; then
4858 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4859 else
4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 for as_dir in $PATH
4862 do
4863 IFS=$as_save_IFS
4864 test -z "$as_dir" && as_dir=.
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4867 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4869 break 2
4870 fi
4871 done
4872 done
4873 IFS=$as_save_IFS
4874
4875 fi
4876 fi
4877 RANLIB=$ac_cv_prog_RANLIB
4878 if test -n "$RANLIB"; then
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4880 $as_echo "$RANLIB" >&6; }
4881 else
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4883 $as_echo "no" >&6; }
4884 fi
4885
4886
4887 fi
4888 if test -z "$ac_cv_prog_RANLIB"; then
4889 ac_ct_RANLIB=$RANLIB
4890 # Extract the first word of "ranlib", so it can be a program name with args.
4891 set dummy ranlib; ac_word=$2
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4893 $as_echo_n "checking for $ac_word... " >&6; }
4894 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4895 $as_echo_n "(cached) " >&6
4896 else
4897 if test -n "$ac_ct_RANLIB"; then
4898 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4899 else
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH
4902 do
4903 IFS=$as_save_IFS
4904 test -z "$as_dir" && as_dir=.
4905 for ac_exec_ext in '' $ac_executable_extensions; do
4906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4907 ac_cv_prog_ac_ct_RANLIB="ranlib"
4908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4909 break 2
4910 fi
4911 done
4912 done
4913 IFS=$as_save_IFS
4914
4915 fi
4916 fi
4917 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4918 if test -n "$ac_ct_RANLIB"; then
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4920 $as_echo "$ac_ct_RANLIB" >&6; }
4921 else
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923 $as_echo "no" >&6; }
4924 fi
4925
4926 if test "x$ac_ct_RANLIB" = x; then
4927 RANLIB=":"
4928 else
4929 case $cross_compiling:$ac_tool_warned in
4930 yes:)
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4932 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4933 ac_tool_warned=yes ;;
4934 esac
4935 RANLIB=$ac_ct_RANLIB
4936 fi
4937 else
4938 RANLIB="$ac_cv_prog_RANLIB"
4939 fi
4940
4941 fi
4942 fi
4943
4944
4945
4946
4947
4948
4949
4950
4951 ac_aux_dir=
4952 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4953 for ac_t in install-sh install.sh shtool; do
4954 if test -f "$ac_dir/$ac_t"; then
4955 ac_aux_dir=$ac_dir
4956 ac_install_sh="$ac_aux_dir/$ac_t -c"
4957 break 2
4958 fi
4959 done
4960 done
4961 if test -z "$ac_aux_dir"; then
4962 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4963 fi
4964
4965 # These three variables are undocumented and unsupported,
4966 # and are intended to be withdrawn in a future Autoconf release.
4967 # They can cause serious problems if a builder's source tree is in a directory
4968 # whose full name contains unusual characters.
4969 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4970 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4971 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4972
4973
4974 # Make sure we can run config.sub.
4975 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4976 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4977
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4979 $as_echo_n "checking build system type... " >&6; }
4980 if test "${ac_cv_build+set}" = set; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 ac_build_alias=$build_alias
4984 test "x$ac_build_alias" = x &&
4985 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4986 test "x$ac_build_alias" = x &&
4987 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4988 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4989 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4990
4991 fi
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4993 $as_echo "$ac_cv_build" >&6; }
4994 case $ac_cv_build in
4995 *-*-*) ;;
4996 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4997 esac
4998 build=$ac_cv_build
4999 ac_save_IFS=$IFS; IFS='-'
5000 set x $ac_cv_build
5001 shift
5002 build_cpu=$1
5003 build_vendor=$2
5004 shift; shift
5005 # Remember, the first character of IFS is used to create $*,
5006 # except with old shells:
5007 build_os=$*
5008 IFS=$ac_save_IFS
5009 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5010
5011
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5013 $as_echo_n "checking host system type... " >&6; }
5014 if test "${ac_cv_host+set}" = set; then :
5015 $as_echo_n "(cached) " >&6
5016 else
5017 if test "x$host_alias" = x; then
5018 ac_cv_host=$ac_cv_build
5019 else
5020 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5021 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5022 fi
5023
5024 fi
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5026 $as_echo "$ac_cv_host" >&6; }
5027 case $ac_cv_host in
5028 *-*-*) ;;
5029 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5030 esac
5031 host=$ac_cv_host
5032 ac_save_IFS=$IFS; IFS='-'
5033 set x $ac_cv_host
5034 shift
5035 host_cpu=$1
5036 host_vendor=$2
5037 shift; shift
5038 # Remember, the first character of IFS is used to create $*,
5039 # except with old shells:
5040 host_os=$*
5041 IFS=$ac_save_IFS
5042 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5043
5044
5045
5046
5047
5048 # IEEE behaviour is the default on all CPUs except Alpha and SH
5049 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
5050 # and the GCC 4.1.2 manual).
5051 case "$host_cpu" in
5052 alpha*)
5053 # On Alpha systems, a compiler option provides the behaviour.
5054 # See the ieee(3) manual page, also available at
5055 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
5056 if test -n "$GCC"; then
5057 # GCC has the option -mieee.
5058 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
5059 CPPFLAGS="$CPPFLAGS -mieee"
5060 else
5061 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
5062 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
5063 CPPFLAGS="$CPPFLAGS -ieee"
5064 fi
5065 ;;
5066 sh*)
5067 if test -n "$GCC"; then
5068 # GCC has the option -mieee.
5069 CPPFLAGS="$CPPFLAGS -mieee"
5070 fi
5071 ;;
5072 esac
5073
5074 # Check whether --enable-largefile was given.
5075 if test "${enable_largefile+set}" = set; then :
5076 enableval=$enable_largefile;
5077 fi
5078
5079 if test "$enable_largefile" != no; then
5080
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5082 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5083 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5084 $as_echo_n "(cached) " >&6
5085 else
5086 ac_cv_sys_largefile_CC=no
5087 if test "$GCC" != yes; then
5088 ac_save_CC=$CC
5089 while :; do
5090 # IRIX 6.2 and later do not support large files by default,
5091 # so use the C compiler's -n32 option if that helps.
5092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5093 /* end confdefs.h. */
5094 #include <sys/types.h>
5095 /* Check that off_t can represent 2**63 - 1 correctly.
5096 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5097 since some C++ compilers masquerading as C compilers
5098 incorrectly reject 9223372036854775807. */
5099 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5100 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5101 && LARGE_OFF_T % 2147483647 == 1)
5102 ? 1 : -1];
5103 int
5104 main ()
5105 {
5106
5107 ;
5108 return 0;
5109 }
5110 _ACEOF
5111 if ac_fn_c_try_compile "$LINENO"; then :
5112 break
5113 fi
5114 rm -f core conftest.err conftest.$ac_objext
5115 CC="$CC -n32"
5116 if ac_fn_c_try_compile "$LINENO"; then :
5117 ac_cv_sys_largefile_CC=' -n32'; break
5118 fi
5119 rm -f core conftest.err conftest.$ac_objext
5120 break
5121 done
5122 CC=$ac_save_CC
5123 rm -f conftest.$ac_ext
5124 fi
5125 fi
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5127 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5128 if test "$ac_cv_sys_largefile_CC" != no; then
5129 CC=$CC$ac_cv_sys_largefile_CC
5130 fi
5131
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5133 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5134 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5135 $as_echo_n "(cached) " >&6
5136 else
5137 while :; do
5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h. */
5140 #include <sys/types.h>
5141 /* Check that off_t can represent 2**63 - 1 correctly.
5142 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5143 since some C++ compilers masquerading as C compilers
5144 incorrectly reject 9223372036854775807. */
5145 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5146 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5147 && LARGE_OFF_T % 2147483647 == 1)
5148 ? 1 : -1];
5149 int
5150 main ()
5151 {
5152
5153 ;
5154 return 0;
5155 }
5156 _ACEOF
5157 if ac_fn_c_try_compile "$LINENO"; then :
5158 ac_cv_sys_file_offset_bits=no; break
5159 fi
5160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163 #define _FILE_OFFSET_BITS 64
5164 #include <sys/types.h>
5165 /* Check that off_t can represent 2**63 - 1 correctly.
5166 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5167 since some C++ compilers masquerading as C compilers
5168 incorrectly reject 9223372036854775807. */
5169 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5170 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5171 && LARGE_OFF_T % 2147483647 == 1)
5172 ? 1 : -1];
5173 int
5174 main ()
5175 {
5176
5177 ;
5178 return 0;
5179 }
5180 _ACEOF
5181 if ac_fn_c_try_compile "$LINENO"; then :
5182 ac_cv_sys_file_offset_bits=64; break
5183 fi
5184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5185 ac_cv_sys_file_offset_bits=unknown
5186 break
5187 done
5188 fi
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5190 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5191 case $ac_cv_sys_file_offset_bits in #(
5192 no | unknown) ;;
5193 *)
5194 cat >>confdefs.h <<_ACEOF
5195 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5196 _ACEOF
5197 ;;
5198 esac
5199 rm -rf conftest*
5200 if test $ac_cv_sys_file_offset_bits = unknown; then
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5202 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5203 if test "${ac_cv_sys_large_files+set}" = set; then :
5204 $as_echo_n "(cached) " >&6
5205 else
5206 while :; do
5207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5208 /* end confdefs.h. */
5209 #include <sys/types.h>
5210 /* Check that off_t can represent 2**63 - 1 correctly.
5211 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5212 since some C++ compilers masquerading as C compilers
5213 incorrectly reject 9223372036854775807. */
5214 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5215 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5216 && LARGE_OFF_T % 2147483647 == 1)
5217 ? 1 : -1];
5218 int
5219 main ()
5220 {
5221
5222 ;
5223 return 0;
5224 }
5225 _ACEOF
5226 if ac_fn_c_try_compile "$LINENO"; then :
5227 ac_cv_sys_large_files=no; break
5228 fi
5229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231 /* end confdefs.h. */
5232 #define _LARGE_FILES 1
5233 #include <sys/types.h>
5234 /* Check that off_t can represent 2**63 - 1 correctly.
5235 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5236 since some C++ compilers masquerading as C compilers
5237 incorrectly reject 9223372036854775807. */
5238 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5239 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5240 && LARGE_OFF_T % 2147483647 == 1)
5241 ? 1 : -1];
5242 int
5243 main ()
5244 {
5245
5246 ;
5247 return 0;
5248 }
5249 _ACEOF
5250 if ac_fn_c_try_compile "$LINENO"; then :
5251 ac_cv_sys_large_files=1; break
5252 fi
5253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5254 ac_cv_sys_large_files=unknown
5255 break
5256 done
5257 fi
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5259 $as_echo "$ac_cv_sys_large_files" >&6; }
5260 case $ac_cv_sys_large_files in #(
5261 no | unknown) ;;
5262 *)
5263 cat >>confdefs.h <<_ACEOF
5264 #define _LARGE_FILES $ac_cv_sys_large_files
5265 _ACEOF
5266 ;;
5267 esac
5268 rm -rf conftest*
5269 fi
5270
5271
5272 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
5273
5274 fi
5275
5276
5277
5278 # Code from module absolute-header:
5279 # Code from module alloca:
5280 # Code from module alloca-opt:
5281 # Code from module canonicalize-lgpl:
5282 # Code from module chdir:
5283 # Code from module configmake:
5284 # Code from module dirent:
5285 # Code from module dirfd:
5286 # Code from module dirname-lgpl:
5287 # Code from module dosname:
5288 # Code from module double-slash-root:
5289 # Code from module errno:
5290 # Code from module extensions:
5291
5292 # Code from module extern-inline:
5293 # Code from module float:
5294 # Code from module fnmatch:
5295 # Code from module fnmatch-gnu:
5296 # Code from module fpieee:
5297
5298 # Code from module fpucw:
5299 # Code from module frexp:
5300 # Code from module frexpl:
5301 # Code from module gettimeofday:
5302 # Code from module include_next:
5303 # Code from module inttypes:
5304 # Code from module inttypes-incomplete:
5305 # Code from module isnand-nolibm:
5306 # Code from module isnanl-nolibm:
5307 # Code from module largefile:
5308
5309 # Code from module localcharset:
5310 # Code from module lstat:
5311 # Code from module malloc-posix:
5312 # Code from module malloca:
5313 # Code from module math:
5314 # Code from module mbrtowc:
5315 # Code from module mbsinit:
5316 # Code from module mbsrtowcs:
5317 # Code from module memchr:
5318 # Code from module memmem:
5319 # Code from module memmem-simple:
5320 # Code from module multiarch:
5321 # Code from module nocrash:
5322 # Code from module pathmax:
5323 # Code from module readlink:
5324 # Code from module rename:
5325 # Code from module rmdir:
5326 # Code from module same-inode:
5327 # Code from module signal-h:
5328 # Code from module snippet/_Noreturn:
5329 # Code from module snippet/arg-nonnull:
5330 # Code from module snippet/c++defs:
5331 # Code from module snippet/warn-on-use:
5332 # Code from module ssize_t:
5333 # Code from module stat:
5334 # Code from module stdbool:
5335 # Code from module stddef:
5336 # Code from module stdint:
5337 # Code from module stdio:
5338 # Code from module stdlib:
5339 # Code from module streq:
5340 # Code from module string:
5341 # Code from module strnlen1:
5342 # Code from module strstr:
5343 # Code from module strstr-simple:
5344 # Code from module strtok_r:
5345 # Code from module sys_stat:
5346 # Code from module sys_time:
5347 # Code from module sys_types:
5348 # Code from module time:
5349 # Code from module unistd:
5350 # Code from module update-copyright:
5351 # Code from module verify:
5352 # Code from module wchar:
5353 # Code from module wctype-h:
5354
5355 ac_ext=c
5356 ac_cpp='$CPP $CPPFLAGS'
5357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5360 if test -n "$ac_tool_prefix"; then
5361 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5362 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5364 $as_echo_n "checking for $ac_word... " >&6; }
5365 if test "${ac_cv_prog_CC+set}" = set; then :
5366 $as_echo_n "(cached) " >&6
5367 else
5368 if test -n "$CC"; then
5369 ac_cv_prog_CC="$CC" # Let the user override the test.
5370 else
5371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5372 for as_dir in $PATH
5373 do
5374 IFS=$as_save_IFS
5375 test -z "$as_dir" && as_dir=.
5376 for ac_exec_ext in '' $ac_executable_extensions; do
5377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5378 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5380 break 2
5381 fi
5382 done
5383 done
5384 IFS=$as_save_IFS
5385
5386 fi
5387 fi
5388 CC=$ac_cv_prog_CC
5389 if test -n "$CC"; then
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5391 $as_echo "$CC" >&6; }
5392 else
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394 $as_echo "no" >&6; }
5395 fi
5396
5397
5398 fi
5399 if test -z "$ac_cv_prog_CC"; then
5400 ac_ct_CC=$CC
5401 # Extract the first word of "gcc", so it can be a program name with args.
5402 set dummy gcc; ac_word=$2
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5404 $as_echo_n "checking for $ac_word... " >&6; }
5405 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5406 $as_echo_n "(cached) " >&6
5407 else
5408 if test -n "$ac_ct_CC"; then
5409 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5410 else
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 for as_dir in $PATH
5413 do
5414 IFS=$as_save_IFS
5415 test -z "$as_dir" && as_dir=.
5416 for ac_exec_ext in '' $ac_executable_extensions; do
5417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5418 ac_cv_prog_ac_ct_CC="gcc"
5419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5420 break 2
5421 fi
5422 done
5423 done
5424 IFS=$as_save_IFS
5425
5426 fi
5427 fi
5428 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5429 if test -n "$ac_ct_CC"; then
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5431 $as_echo "$ac_ct_CC" >&6; }
5432 else
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434 $as_echo "no" >&6; }
5435 fi
5436
5437 if test "x$ac_ct_CC" = x; then
5438 CC=""
5439 else
5440 case $cross_compiling:$ac_tool_warned in
5441 yes:)
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5444 ac_tool_warned=yes ;;
5445 esac
5446 CC=$ac_ct_CC
5447 fi
5448 else
5449 CC="$ac_cv_prog_CC"
5450 fi
5451
5452 if test -z "$CC"; then
5453 if test -n "$ac_tool_prefix"; then
5454 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5455 set dummy ${ac_tool_prefix}cc; ac_word=$2
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5457 $as_echo_n "checking for $ac_word... " >&6; }
5458 if test "${ac_cv_prog_CC+set}" = set; then :
5459 $as_echo_n "(cached) " >&6
5460 else
5461 if test -n "$CC"; then
5462 ac_cv_prog_CC="$CC" # Let the user override the test.
5463 else
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465 for as_dir in $PATH
5466 do
5467 IFS=$as_save_IFS
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5471 ac_cv_prog_CC="${ac_tool_prefix}cc"
5472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 break 2
5474 fi
5475 done
5476 done
5477 IFS=$as_save_IFS
5478
5479 fi
5480 fi
5481 CC=$ac_cv_prog_CC
5482 if test -n "$CC"; then
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5484 $as_echo "$CC" >&6; }
5485 else
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5488 fi
5489
5490
5491 fi
5492 fi
5493 if test -z "$CC"; then
5494 # Extract the first word of "cc", so it can be a program name with args.
5495 set dummy cc; ac_word=$2
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497 $as_echo_n "checking for $ac_word... " >&6; }
5498 if test "${ac_cv_prog_CC+set}" = set; then :
5499 $as_echo_n "(cached) " >&6
5500 else
5501 if test -n "$CC"; then
5502 ac_cv_prog_CC="$CC" # Let the user override the test.
5503 else
5504 ac_prog_rejected=no
5505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506 for as_dir in $PATH
5507 do
5508 IFS=$as_save_IFS
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5512 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5513 ac_prog_rejected=yes
5514 continue
5515 fi
5516 ac_cv_prog_CC="cc"
5517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5518 break 2
5519 fi
5520 done
5521 done
5522 IFS=$as_save_IFS
5523
5524 if test $ac_prog_rejected = yes; then
5525 # We found a bogon in the path, so make sure we never use it.
5526 set dummy $ac_cv_prog_CC
5527 shift
5528 if test $# != 0; then
5529 # We chose a different compiler from the bogus one.
5530 # However, it has the same basename, so the bogon will be chosen
5531 # first if we set CC to just the basename; use the full file name.
5532 shift
5533 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5534 fi
5535 fi
5536 fi
5537 fi
5538 CC=$ac_cv_prog_CC
5539 if test -n "$CC"; then
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5541 $as_echo "$CC" >&6; }
5542 else
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544 $as_echo "no" >&6; }
5545 fi
5546
5547
5548 fi
5549 if test -z "$CC"; then
5550 if test -n "$ac_tool_prefix"; then
5551 for ac_prog in cl.exe
5552 do
5553 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5554 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5556 $as_echo_n "checking for $ac_word... " >&6; }
5557 if test "${ac_cv_prog_CC+set}" = set; then :
5558 $as_echo_n "(cached) " >&6
5559 else
5560 if test -n "$CC"; then
5561 ac_cv_prog_CC="$CC" # Let the user override the test.
5562 else
5563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5564 for as_dir in $PATH
5565 do
5566 IFS=$as_save_IFS
5567 test -z "$as_dir" && as_dir=.
5568 for ac_exec_ext in '' $ac_executable_extensions; do
5569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5570 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5572 break 2
5573 fi
5574 done
5575 done
5576 IFS=$as_save_IFS
5577
5578 fi
5579 fi
5580 CC=$ac_cv_prog_CC
5581 if test -n "$CC"; then
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5583 $as_echo "$CC" >&6; }
5584 else
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586 $as_echo "no" >&6; }
5587 fi
5588
5589
5590 test -n "$CC" && break
5591 done
5592 fi
5593 if test -z "$CC"; then
5594 ac_ct_CC=$CC
5595 for ac_prog in cl.exe
5596 do
5597 # Extract the first word of "$ac_prog", so it can be a program name with args.
5598 set dummy $ac_prog; ac_word=$2
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5600 $as_echo_n "checking for $ac_word... " >&6; }
5601 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5602 $as_echo_n "(cached) " >&6
5603 else
5604 if test -n "$ac_ct_CC"; then
5605 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5606 else
5607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5608 for as_dir in $PATH
5609 do
5610 IFS=$as_save_IFS
5611 test -z "$as_dir" && as_dir=.
5612 for ac_exec_ext in '' $ac_executable_extensions; do
5613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5614 ac_cv_prog_ac_ct_CC="$ac_prog"
5615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5616 break 2
5617 fi
5618 done
5619 done
5620 IFS=$as_save_IFS
5621
5622 fi
5623 fi
5624 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5625 if test -n "$ac_ct_CC"; then
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5627 $as_echo "$ac_ct_CC" >&6; }
5628 else
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5630 $as_echo "no" >&6; }
5631 fi
5632
5633
5634 test -n "$ac_ct_CC" && break
5635 done
5636
5637 if test "x$ac_ct_CC" = x; then
5638 CC=""
5639 else
5640 case $cross_compiling:$ac_tool_warned in
5641 yes:)
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5644 ac_tool_warned=yes ;;
5645 esac
5646 CC=$ac_ct_CC
5647 fi
5648 fi
5649
5650 fi
5651
5652
5653 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5654 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5655 as_fn_error "no acceptable C compiler found in \$PATH
5656 See \`config.log' for more details." "$LINENO" 5; }
5657
5658 # Provide some information about the compiler.
5659 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5660 set X $ac_compile
5661 ac_compiler=$2
5662 for ac_option in --version -v -V -qversion; do
5663 { { ac_try="$ac_compiler $ac_option >&5"
5664 case "(($ac_try" in
5665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5667 esac
5668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5669 $as_echo "$ac_try_echo"; } >&5
5670 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5671 ac_status=$?
5672 if test -s conftest.err; then
5673 sed '10a\
5674 ... rest of stderr output deleted ...
5675 10q' conftest.err >conftest.er1
5676 cat conftest.er1 >&5
5677 rm -f conftest.er1 conftest.err
5678 fi
5679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5680 test $ac_status = 0; }
5681 done
5682
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5684 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5685 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5686 $as_echo_n "(cached) " >&6
5687 else
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689 /* end confdefs.h. */
5690
5691 int
5692 main ()
5693 {
5694 #ifndef __GNUC__
5695 choke me
5696 #endif
5697
5698 ;
5699 return 0;
5700 }
5701 _ACEOF
5702 if ac_fn_c_try_compile "$LINENO"; then :
5703 ac_compiler_gnu=yes
5704 else
5705 ac_compiler_gnu=no
5706 fi
5707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5708 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5709
5710 fi
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5712 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5713 if test $ac_compiler_gnu = yes; then
5714 GCC=yes
5715 else
5716 GCC=
5717 fi
5718 ac_test_CFLAGS=${CFLAGS+set}
5719 ac_save_CFLAGS=$CFLAGS
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5721 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5722 if test "${ac_cv_prog_cc_g+set}" = set; then :
5723 $as_echo_n "(cached) " >&6
5724 else
5725 ac_save_c_werror_flag=$ac_c_werror_flag
5726 ac_c_werror_flag=yes
5727 ac_cv_prog_cc_g=no
5728 CFLAGS="-g"
5729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h. */
5731
5732 int
5733 main ()
5734 {
5735
5736 ;
5737 return 0;
5738 }
5739 _ACEOF
5740 if ac_fn_c_try_compile "$LINENO"; then :
5741 ac_cv_prog_cc_g=yes
5742 else
5743 CFLAGS=""
5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5746
5747 int
5748 main ()
5749 {
5750
5751 ;
5752 return 0;
5753 }
5754 _ACEOF
5755 if ac_fn_c_try_compile "$LINENO"; then :
5756
5757 else
5758 ac_c_werror_flag=$ac_save_c_werror_flag
5759 CFLAGS="-g"
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5762
5763 int
5764 main ()
5765 {
5766
5767 ;
5768 return 0;
5769 }
5770 _ACEOF
5771 if ac_fn_c_try_compile "$LINENO"; then :
5772 ac_cv_prog_cc_g=yes
5773 fi
5774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5775 fi
5776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5777 fi
5778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5779 ac_c_werror_flag=$ac_save_c_werror_flag
5780 fi
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5782 $as_echo "$ac_cv_prog_cc_g" >&6; }
5783 if test "$ac_test_CFLAGS" = set; then
5784 CFLAGS=$ac_save_CFLAGS
5785 elif test $ac_cv_prog_cc_g = yes; then
5786 if test "$GCC" = yes; then
5787 CFLAGS="-g -O2"
5788 else
5789 CFLAGS="-g"
5790 fi
5791 else
5792 if test "$GCC" = yes; then
5793 CFLAGS="-O2"
5794 else
5795 CFLAGS=
5796 fi
5797 fi
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5799 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5800 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5801 $as_echo_n "(cached) " >&6
5802 else
5803 ac_cv_prog_cc_c89=no
5804 ac_save_CC=$CC
5805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5806 /* end confdefs.h. */
5807 #include <stdarg.h>
5808 #include <stdio.h>
5809 #include <sys/types.h>
5810 #include <sys/stat.h>
5811 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5812 struct buf { int x; };
5813 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5814 static char *e (p, i)
5815 char **p;
5816 int i;
5817 {
5818 return p[i];
5819 }
5820 static char *f (char * (*g) (char **, int), char **p, ...)
5821 {
5822 char *s;
5823 va_list v;
5824 va_start (v,p);
5825 s = g (p, va_arg (v,int));
5826 va_end (v);
5827 return s;
5828 }
5829
5830 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5831 function prototypes and stuff, but not '\xHH' hex character constants.
5832 These don't provoke an error unfortunately, instead are silently treated
5833 as 'x'. The following induces an error, until -std is added to get
5834 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5835 array size at least. It's necessary to write '\x00'==0 to get something
5836 that's true only with -std. */
5837 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5838
5839 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5840 inside strings and character constants. */
5841 #define FOO(x) 'x'
5842 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5843
5844 int test (int i, double x);
5845 struct s1 {int (*f) (int a);};
5846 struct s2 {int (*f) (double a);};
5847 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5848 int argc;
5849 char **argv;
5850 int
5851 main ()
5852 {
5853 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5854 ;
5855 return 0;
5856 }
5857 _ACEOF
5858 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5859 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5860 do
5861 CC="$ac_save_CC $ac_arg"
5862 if ac_fn_c_try_compile "$LINENO"; then :
5863 ac_cv_prog_cc_c89=$ac_arg
5864 fi
5865 rm -f core conftest.err conftest.$ac_objext
5866 test "x$ac_cv_prog_cc_c89" != "xno" && break
5867 done
5868 rm -f conftest.$ac_ext
5869 CC=$ac_save_CC
5870
5871 fi
5872 # AC_CACHE_VAL
5873 case "x$ac_cv_prog_cc_c89" in
5874 x)
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5876 $as_echo "none needed" >&6; } ;;
5877 xno)
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5879 $as_echo "unsupported" >&6; } ;;
5880 *)
5881 CC="$CC $ac_cv_prog_cc_c89"
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5883 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5884 esac
5885 if test "x$ac_cv_prog_cc_c89" != xno; then :
5886
5887 fi
5888
5889 ac_ext=c
5890 ac_cpp='$CPP $CPPFLAGS'
5891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5894
5895
5896 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5897
5898
5899 ac_aux_dir=
5900 for ac_dir in ../.. "$srcdir"/../..; do
5901 for ac_t in install-sh install.sh shtool; do
5902 if test -f "$ac_dir/$ac_t"; then
5903 ac_aux_dir=$ac_dir
5904 ac_install_sh="$ac_aux_dir/$ac_t -c"
5905 break 2
5906 fi
5907 done
5908 done
5909 if test -z "$ac_aux_dir"; then
5910 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5911 fi
5912
5913 # These three variables are undocumented and unsupported,
5914 # and are intended to be withdrawn in a future Autoconf release.
5915 # They can cause serious problems if a builder's source tree is in a directory
5916 # whose full name contains unusual characters.
5917 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5918 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5919 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5920
5921
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5923 $as_echo_n "checking target system type... " >&6; }
5924 if test "${ac_cv_target+set}" = set; then :
5925 $as_echo_n "(cached) " >&6
5926 else
5927 if test "x$target_alias" = x; then
5928 ac_cv_target=$ac_cv_host
5929 else
5930 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5931 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5932 fi
5933
5934 fi
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5936 $as_echo "$ac_cv_target" >&6; }
5937 case $ac_cv_target in
5938 *-*-*) ;;
5939 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5940 esac
5941 target=$ac_cv_target
5942 ac_save_IFS=$IFS; IFS='-'
5943 set x $ac_cv_target
5944 shift
5945 target_cpu=$1
5946 target_vendor=$2
5947 shift; shift
5948 # Remember, the first character of IFS is used to create $*,
5949 # except with old shells:
5950 target_os=$*
5951 IFS=$ac_save_IFS
5952 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5953
5954
5955 # The aliases save the names the user supplied, while $host etc.
5956 # will get canonicalized.
5957 test -n "$target_alias" &&
5958 test "$program_prefix$program_suffix$program_transform_name" = \
5959 NONENONEs,x,x, &&
5960 program_prefix=${target_alias}-
5961
5962
5963
5964
5965
5966
5967
5968 LIBC_FATAL_STDERR_=1
5969 export LIBC_FATAL_STDERR_
5970
5971 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5972 # for constant arguments. Useless!
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5974 $as_echo_n "checking for working alloca.h... " >&6; }
5975 if test "${ac_cv_working_alloca_h+set}" = set; then :
5976 $as_echo_n "(cached) " >&6
5977 else
5978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5979 /* end confdefs.h. */
5980 #include <alloca.h>
5981 int
5982 main ()
5983 {
5984 char *p = (char *) alloca (2 * sizeof (int));
5985 if (p) return 0;
5986 ;
5987 return 0;
5988 }
5989 _ACEOF
5990 if ac_fn_c_try_link "$LINENO"; then :
5991 ac_cv_working_alloca_h=yes
5992 else
5993 ac_cv_working_alloca_h=no
5994 fi
5995 rm -f core conftest.err conftest.$ac_objext \
5996 conftest$ac_exeext conftest.$ac_ext
5997 fi
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5999 $as_echo "$ac_cv_working_alloca_h" >&6; }
6000 if test $ac_cv_working_alloca_h = yes; then
6001
6002 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
6003
6004 fi
6005
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6007 $as_echo_n "checking for alloca... " >&6; }
6008 if test "${ac_cv_func_alloca_works+set}" = set; then :
6009 $as_echo_n "(cached) " >&6
6010 else
6011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012 /* end confdefs.h. */
6013 #ifdef __GNUC__
6014 # define alloca __builtin_alloca
6015 #else
6016 # ifdef _MSC_VER
6017 # include <malloc.h>
6018 # define alloca _alloca
6019 # else
6020 # ifdef HAVE_ALLOCA_H
6021 # include <alloca.h>
6022 # else
6023 # ifdef _AIX
6024 #pragma alloca
6025 # else
6026 # ifndef alloca /* predefined by HP cc +Olibcalls */
6027 char *alloca ();
6028 # endif
6029 # endif
6030 # endif
6031 # endif
6032 #endif
6033
6034 int
6035 main ()
6036 {
6037 char *p = (char *) alloca (1);
6038 if (p) return 0;
6039 ;
6040 return 0;
6041 }
6042 _ACEOF
6043 if ac_fn_c_try_link "$LINENO"; then :
6044 ac_cv_func_alloca_works=yes
6045 else
6046 ac_cv_func_alloca_works=no
6047 fi
6048 rm -f core conftest.err conftest.$ac_objext \
6049 conftest$ac_exeext conftest.$ac_ext
6050 fi
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6052 $as_echo "$ac_cv_func_alloca_works" >&6; }
6053
6054 if test $ac_cv_func_alloca_works = yes; then
6055
6056 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6057
6058 else
6059 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6060 # that cause trouble. Some versions do not even contain alloca or
6061 # contain a buggy version. If you still want to use their alloca,
6062 # use ar to extract alloca.o from them instead of compiling alloca.c.
6063
6064
6065
6066
6067
6068 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6069
6070 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6071
6072
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
6074 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
6075 if test "${ac_cv_os_cray+set}" = set; then :
6076 $as_echo_n "(cached) " >&6
6077 else
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h. */
6080 #if defined CRAY && ! defined CRAY2
6081 webecray
6082 #else
6083 wenotbecray
6084 #endif
6085
6086 _ACEOF
6087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6088 $EGREP "webecray" >/dev/null 2>&1; then :
6089 ac_cv_os_cray=yes
6090 else
6091 ac_cv_os_cray=no
6092 fi
6093 rm -f conftest*
6094
6095 fi
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6097 $as_echo "$ac_cv_os_cray" >&6; }
6098 if test $ac_cv_os_cray = yes; then
6099 for ac_func in _getb67 GETB67 getb67; do
6100 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6101 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6102 eval as_val=\$$as_ac_var
6103 if test "x$as_val" = x""yes; then :
6104
6105 cat >>confdefs.h <<_ACEOF
6106 #define CRAY_STACKSEG_END $ac_func
6107 _ACEOF
6108
6109 break
6110 fi
6111
6112 done
6113 fi
6114
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6116 $as_echo_n "checking stack direction for C alloca... " >&6; }
6117 if test "${ac_cv_c_stack_direction+set}" = set; then :
6118 $as_echo_n "(cached) " >&6
6119 else
6120 if test "$cross_compiling" = yes; then :
6121 ac_cv_c_stack_direction=0
6122 else
6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h. */
6125 $ac_includes_default
6126 int
6127 find_stack_direction (int *addr, int depth)
6128 {
6129 int dir, dummy = 0;
6130 if (! addr)
6131 addr = &dummy;
6132 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6133 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6134 return dir + dummy;
6135 }
6136
6137 int
6138 main (int argc, char **argv)
6139 {
6140 return find_stack_direction (0, argc + !argv + 20) < 0;
6141 }
6142 _ACEOF
6143 if ac_fn_c_try_run "$LINENO"; then :
6144 ac_cv_c_stack_direction=1
6145 else
6146 ac_cv_c_stack_direction=-1
6147 fi
6148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6149 conftest.$ac_objext conftest.beam conftest.$ac_ext
6150 fi
6151
6152 fi
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6154 $as_echo "$ac_cv_c_stack_direction" >&6; }
6155 cat >>confdefs.h <<_ACEOF
6156 #define STACK_DIRECTION $ac_cv_c_stack_direction
6157 _ACEOF
6158
6159
6160 fi
6161
6162
6163 GNULIB__EXIT=0;
6164 GNULIB_ATOLL=0;
6165 GNULIB_CALLOC_POSIX=0;
6166 GNULIB_CANONICALIZE_FILE_NAME=0;
6167 GNULIB_GETLOADAVG=0;
6168 GNULIB_GETSUBOPT=0;
6169 GNULIB_GRANTPT=0;
6170 GNULIB_MALLOC_POSIX=0;
6171 GNULIB_MBTOWC=0;
6172 GNULIB_MKDTEMP=0;
6173 GNULIB_MKOSTEMP=0;
6174 GNULIB_MKOSTEMPS=0;
6175 GNULIB_MKSTEMP=0;
6176 GNULIB_MKSTEMPS=0;
6177 GNULIB_POSIX_OPENPT=0;
6178 GNULIB_PTSNAME=0;
6179 GNULIB_PTSNAME_R=0;
6180 GNULIB_PUTENV=0;
6181 GNULIB_QSORT_R=0;
6182 GNULIB_RANDOM=0;
6183 GNULIB_RANDOM_R=0;
6184 GNULIB_REALLOC_POSIX=0;
6185 GNULIB_REALPATH=0;
6186 GNULIB_RPMATCH=0;
6187 GNULIB_SECURE_GETENV=0;
6188 GNULIB_SETENV=0;
6189 GNULIB_STRTOD=0;
6190 GNULIB_STRTOLL=0;
6191 GNULIB_STRTOULL=0;
6192 GNULIB_SYSTEM_POSIX=0;
6193 GNULIB_UNLOCKPT=0;
6194 GNULIB_UNSETENV=0;
6195 GNULIB_WCTOMB=0;
6196 HAVE__EXIT=1;
6197 HAVE_ATOLL=1;
6198 HAVE_CANONICALIZE_FILE_NAME=1;
6199 HAVE_DECL_GETLOADAVG=1;
6200 HAVE_GETSUBOPT=1;
6201 HAVE_GRANTPT=1;
6202 HAVE_MKDTEMP=1;
6203 HAVE_MKOSTEMP=1;
6204 HAVE_MKOSTEMPS=1;
6205 HAVE_MKSTEMP=1;
6206 HAVE_MKSTEMPS=1;
6207 HAVE_POSIX_OPENPT=1;
6208 HAVE_PTSNAME=1;
6209 HAVE_PTSNAME_R=1;
6210 HAVE_RANDOM=1;
6211 HAVE_RANDOM_H=1;
6212 HAVE_RANDOM_R=1;
6213 HAVE_REALPATH=1;
6214 HAVE_RPMATCH=1;
6215 HAVE_SECURE_GETENV=1;
6216 HAVE_SETENV=1;
6217 HAVE_DECL_SETENV=1;
6218 HAVE_STRTOD=1;
6219 HAVE_STRTOLL=1;
6220 HAVE_STRTOULL=1;
6221 HAVE_STRUCT_RANDOM_DATA=1;
6222 HAVE_SYS_LOADAVG_H=0;
6223 HAVE_UNLOCKPT=1;
6224 HAVE_DECL_UNSETENV=1;
6225 REPLACE_CALLOC=0;
6226 REPLACE_CANONICALIZE_FILE_NAME=0;
6227 REPLACE_MALLOC=0;
6228 REPLACE_MBTOWC=0;
6229 REPLACE_MKSTEMP=0;
6230 REPLACE_PTSNAME=0;
6231 REPLACE_PTSNAME_R=0;
6232 REPLACE_PUTENV=0;
6233 REPLACE_QSORT_R=0;
6234 REPLACE_RANDOM_R=0;
6235 REPLACE_REALLOC=0;
6236 REPLACE_REALPATH=0;
6237 REPLACE_SETENV=0;
6238 REPLACE_STRTOD=0;
6239 REPLACE_UNSETENV=0;
6240 REPLACE_WCTOMB=0;
6241
6242
6243
6244
6245 for ac_func in $ac_func_list
6246 do :
6247 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6248 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6249 eval as_val=\$$as_ac_var
6250 if test "x$as_val" = x""yes; then :
6251 cat >>confdefs.h <<_ACEOF
6252 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6253 _ACEOF
6254
6255 fi
6256 done
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
6267 $as_echo_n "checking whether // is distinct from /... " >&6; }
6268 if test "${gl_cv_double_slash_root+set}" = set; then :
6269 $as_echo_n "(cached) " >&6
6270 else
6271 if test x"$cross_compiling" = xyes ; then
6272 # When cross-compiling, there is no way to tell whether // is special
6273 # short of a list of hosts. However, the only known hosts to date
6274 # that have a distinct // are Apollo DomainOS (too old to port to),
6275 # Cygwin, and z/OS. If anyone knows of another system for which // has
6276 # special semantics and is distinct from /, please report it to
6277 # <bug-gnulib@gnu.org>.
6278 case $host in
6279 *-cygwin | i370-ibm-openedition)
6280 gl_cv_double_slash_root=yes ;;
6281 *)
6282 # Be optimistic and assume that / and // are the same when we
6283 # don't know.
6284 gl_cv_double_slash_root='unknown, assuming no' ;;
6285 esac
6286 else
6287 set x `ls -di / // 2>/dev/null`
6288 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
6289 gl_cv_double_slash_root=no
6290 else
6291 gl_cv_double_slash_root=yes
6292 fi
6293 fi
6294 fi
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
6296 $as_echo "$gl_cv_double_slash_root" >&6; }
6297 if test "$gl_cv_double_slash_root" = yes; then
6298
6299 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
6300
6301 fi
6302
6303
6304
6305
6306
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
6308 $as_echo_n "checking whether realpath works... " >&6; }
6309 if test "${gl_cv_func_realpath_works+set}" = set; then :
6310 $as_echo_n "(cached) " >&6
6311 else
6312
6313 touch conftest.a
6314 mkdir conftest.d
6315 if test "$cross_compiling" = yes; then :
6316 case "$host_os" in
6317 # Guess yes on glibc systems.
6318 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
6319 # If we don't know, assume the worst.
6320 *) gl_cv_func_realpath_works="guessing no" ;;
6321 esac
6322
6323 else
6324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325 /* end confdefs.h. */
6326
6327
6328
6329 #include <stdlib.h>
6330 #if defined __MACH__ && defined __APPLE__
6331 /* Avoid a crash on Mac OS X. */
6332 #include <mach/mach.h>
6333 #include <mach/mach_error.h>
6334 #include <mach/thread_status.h>
6335 #include <mach/exception.h>
6336 #include <mach/task.h>
6337 #include <pthread.h>
6338 /* The exception port on which our thread listens. */
6339 static mach_port_t our_exception_port;
6340 /* The main function of the thread listening for exceptions of type
6341 EXC_BAD_ACCESS. */
6342 static void *
6343 mach_exception_thread (void *arg)
6344 {
6345 /* Buffer for a message to be received. */
6346 struct {
6347 mach_msg_header_t head;
6348 mach_msg_body_t msgh_body;
6349 char data[1024];
6350 } msg;
6351 mach_msg_return_t retval;
6352 /* Wait for a message on the exception port. */
6353 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
6354 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
6355 if (retval != MACH_MSG_SUCCESS)
6356 abort ();
6357 exit (1);
6358 }
6359 static void
6360 nocrash_init (void)
6361 {
6362 mach_port_t self = mach_task_self ();
6363 /* Allocate a port on which the thread shall listen for exceptions. */
6364 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
6365 == KERN_SUCCESS) {
6366 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
6367 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
6368 MACH_MSG_TYPE_MAKE_SEND)
6369 == KERN_SUCCESS) {
6370 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
6371 for us. */
6372 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
6373 /* Create the thread listening on the exception port. */
6374 pthread_attr_t attr;
6375 pthread_t thread;
6376 if (pthread_attr_init (&attr) == 0
6377 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
6378 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
6379 pthread_attr_destroy (&attr);
6380 /* Replace the exception port info for these exceptions with our own.
6381 Note that we replace the exception port for the entire task, not only
6382 for a particular thread. This has the effect that when our exception
6383 port gets the message, the thread specific exception port has already
6384 been asked, and we don't need to bother about it.
6385 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
6386 task_set_exception_ports (self, mask, our_exception_port,
6387 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
6388 }
6389 }
6390 }
6391 }
6392 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
6393 /* Avoid a crash on native Windows. */
6394 #define WIN32_LEAN_AND_MEAN
6395 #include <windows.h>
6396 #include <winerror.h>
6397 static LONG WINAPI
6398 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
6399 {
6400 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
6401 {
6402 case EXCEPTION_ACCESS_VIOLATION:
6403 case EXCEPTION_IN_PAGE_ERROR:
6404 case EXCEPTION_STACK_OVERFLOW:
6405 case EXCEPTION_GUARD_PAGE:
6406 case EXCEPTION_PRIV_INSTRUCTION:
6407 case EXCEPTION_ILLEGAL_INSTRUCTION:
6408 case EXCEPTION_DATATYPE_MISALIGNMENT:
6409 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
6410 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
6411 exit (1);
6412 }
6413 return EXCEPTION_CONTINUE_SEARCH;
6414 }
6415 static void
6416 nocrash_init (void)
6417 {
6418 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
6419 }
6420 #else
6421 /* Avoid a crash on POSIX systems. */
6422 #include <signal.h>
6423 /* A POSIX signal handler. */
6424 static void
6425 exception_handler (int sig)
6426 {
6427 exit (1);
6428 }
6429 static void
6430 nocrash_init (void)
6431 {
6432 #ifdef SIGSEGV
6433 signal (SIGSEGV, exception_handler);
6434 #endif
6435 #ifdef SIGBUS
6436 signal (SIGBUS, exception_handler);
6437 #endif
6438 }
6439 #endif
6440
6441 #include <stdlib.h>
6442 #include <string.h>
6443
6444 int
6445 main ()
6446 {
6447
6448 int result = 0;
6449 {
6450 char *name = realpath ("conftest.a", NULL);
6451 if (!(name && *name == '/'))
6452 result |= 1;
6453 }
6454 {
6455 char *name = realpath ("conftest.b/../conftest.a", NULL);
6456 if (name != NULL)
6457 result |= 2;
6458 }
6459 {
6460 char *name = realpath ("conftest.a/", NULL);
6461 if (name != NULL)
6462 result |= 4;
6463 }
6464 {
6465 char *name1 = realpath (".", NULL);
6466 char *name2 = realpath ("conftest.d//./..", NULL);
6467 if (strcmp (name1, name2) != 0)
6468 result |= 8;
6469 }
6470 return result;
6471
6472 ;
6473 return 0;
6474 }
6475
6476 _ACEOF
6477 if ac_fn_c_try_run "$LINENO"; then :
6478 gl_cv_func_realpath_works=yes
6479 else
6480 gl_cv_func_realpath_works=no
6481 fi
6482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6483 conftest.$ac_objext conftest.beam conftest.$ac_ext
6484 fi
6485
6486 rm -rf conftest.a conftest.d
6487
6488 fi
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
6490 $as_echo "$gl_cv_func_realpath_works" >&6; }
6491 case "$gl_cv_func_realpath_works" in
6492 *yes)
6493
6494 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
6495
6496 ;;
6497 esac
6498
6499
6500
6501
6502 for ac_header in $ac_header_list
6503 do :
6504 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6505 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6506 "
6507 eval as_val=\$$as_ac_Header
6508 if test "x$as_val" = x""yes; then :
6509 cat >>confdefs.h <<_ACEOF
6510 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6511 _ACEOF
6512
6513 fi
6514
6515 done
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527 GNULIB_CHDIR=0;
6528 GNULIB_CHOWN=0;
6529 GNULIB_CLOSE=0;
6530 GNULIB_DUP=0;
6531 GNULIB_DUP2=0;
6532 GNULIB_DUP3=0;
6533 GNULIB_ENVIRON=0;
6534 GNULIB_EUIDACCESS=0;
6535 GNULIB_FACCESSAT=0;
6536 GNULIB_FCHDIR=0;
6537 GNULIB_FCHOWNAT=0;
6538 GNULIB_FDATASYNC=0;
6539 GNULIB_FSYNC=0;
6540 GNULIB_FTRUNCATE=0;
6541 GNULIB_GETCWD=0;
6542 GNULIB_GETDOMAINNAME=0;
6543 GNULIB_GETDTABLESIZE=0;
6544 GNULIB_GETGROUPS=0;
6545 GNULIB_GETHOSTNAME=0;
6546 GNULIB_GETLOGIN=0;
6547 GNULIB_GETLOGIN_R=0;
6548 GNULIB_GETPAGESIZE=0;
6549 GNULIB_GETUSERSHELL=0;
6550 GNULIB_GROUP_MEMBER=0;
6551 GNULIB_ISATTY=0;
6552 GNULIB_LCHOWN=0;
6553 GNULIB_LINK=0;
6554 GNULIB_LINKAT=0;
6555 GNULIB_LSEEK=0;
6556 GNULIB_PIPE=0;
6557 GNULIB_PIPE2=0;
6558 GNULIB_PREAD=0;
6559 GNULIB_PWRITE=0;
6560 GNULIB_READ=0;
6561 GNULIB_READLINK=0;
6562 GNULIB_READLINKAT=0;
6563 GNULIB_RMDIR=0;
6564 GNULIB_SETHOSTNAME=0;
6565 GNULIB_SLEEP=0;
6566 GNULIB_SYMLINK=0;
6567 GNULIB_SYMLINKAT=0;
6568 GNULIB_TTYNAME_R=0;
6569 GNULIB_UNISTD_H_NONBLOCKING=0;
6570 GNULIB_UNISTD_H_SIGPIPE=0;
6571 GNULIB_UNLINK=0;
6572 GNULIB_UNLINKAT=0;
6573 GNULIB_USLEEP=0;
6574 GNULIB_WRITE=0;
6575 HAVE_CHOWN=1;
6576 HAVE_DUP2=1;
6577 HAVE_DUP3=1;
6578 HAVE_EUIDACCESS=1;
6579 HAVE_FACCESSAT=1;
6580 HAVE_FCHDIR=1;
6581 HAVE_FCHOWNAT=1;
6582 HAVE_FDATASYNC=1;
6583 HAVE_FSYNC=1;
6584 HAVE_FTRUNCATE=1;
6585 HAVE_GETDTABLESIZE=1;
6586 HAVE_GETGROUPS=1;
6587 HAVE_GETHOSTNAME=1;
6588 HAVE_GETLOGIN=1;
6589 HAVE_GETPAGESIZE=1;
6590 HAVE_GROUP_MEMBER=1;
6591 HAVE_LCHOWN=1;
6592 HAVE_LINK=1;
6593 HAVE_LINKAT=1;
6594 HAVE_PIPE=1;
6595 HAVE_PIPE2=1;
6596 HAVE_PREAD=1;
6597 HAVE_PWRITE=1;
6598 HAVE_READLINK=1;
6599 HAVE_READLINKAT=1;
6600 HAVE_SETHOSTNAME=1;
6601 HAVE_SLEEP=1;
6602 HAVE_SYMLINK=1;
6603 HAVE_SYMLINKAT=1;
6604 HAVE_UNLINKAT=1;
6605 HAVE_USLEEP=1;
6606 HAVE_DECL_ENVIRON=1;
6607 HAVE_DECL_FCHDIR=1;
6608 HAVE_DECL_FDATASYNC=1;
6609 HAVE_DECL_GETDOMAINNAME=1;
6610 HAVE_DECL_GETLOGIN_R=1;
6611 HAVE_DECL_GETPAGESIZE=1;
6612 HAVE_DECL_GETUSERSHELL=1;
6613 HAVE_DECL_SETHOSTNAME=1;
6614 HAVE_DECL_TTYNAME_R=1;
6615 HAVE_OS_H=0;
6616 HAVE_SYS_PARAM_H=0;
6617 REPLACE_CHOWN=0;
6618 REPLACE_CLOSE=0;
6619 REPLACE_DUP=0;
6620 REPLACE_DUP2=0;
6621 REPLACE_FCHOWNAT=0;
6622 REPLACE_FTRUNCATE=0;
6623 REPLACE_GETCWD=0;
6624 REPLACE_GETDOMAINNAME=0;
6625 REPLACE_GETDTABLESIZE=0;
6626 REPLACE_GETLOGIN_R=0;
6627 REPLACE_GETGROUPS=0;
6628 REPLACE_GETPAGESIZE=0;
6629 REPLACE_ISATTY=0;
6630 REPLACE_LCHOWN=0;
6631 REPLACE_LINK=0;
6632 REPLACE_LINKAT=0;
6633 REPLACE_LSEEK=0;
6634 REPLACE_PREAD=0;
6635 REPLACE_PWRITE=0;
6636 REPLACE_READ=0;
6637 REPLACE_READLINK=0;
6638 REPLACE_READLINKAT=0;
6639 REPLACE_RMDIR=0;
6640 REPLACE_SLEEP=0;
6641 REPLACE_SYMLINK=0;
6642 REPLACE_SYMLINKAT=0;
6643 REPLACE_TTYNAME_R=0;
6644 REPLACE_UNLINK=0;
6645 REPLACE_UNLINKAT=0;
6646 REPLACE_USLEEP=0;
6647 REPLACE_WRITE=0;
6648 UNISTD_H_HAVE_WINSOCK2_H=0;
6649 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
6650
6651
6652
6653 GNULIB_OPENDIR=0;
6654 GNULIB_READDIR=0;
6655 GNULIB_REWINDDIR=0;
6656 GNULIB_CLOSEDIR=0;
6657 GNULIB_DIRFD=0;
6658 GNULIB_FDOPENDIR=0;
6659 GNULIB_SCANDIR=0;
6660 GNULIB_ALPHASORT=0;
6661 HAVE_OPENDIR=1;
6662 HAVE_READDIR=1;
6663 HAVE_REWINDDIR=1;
6664 HAVE_CLOSEDIR=1;
6665 HAVE_DECL_DIRFD=1;
6666 HAVE_DECL_FDOPENDIR=1;
6667 HAVE_FDOPENDIR=1;
6668 HAVE_SCANDIR=1;
6669 HAVE_ALPHASORT=1;
6670 REPLACE_OPENDIR=0;
6671 REPLACE_CLOSEDIR=0;
6672 REPLACE_DIRFD=0;
6673 REPLACE_FDOPENDIR=0;
6674
6675
6676
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6678 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6679 if test "${gl_cv_have_include_next+set}" = set; then :
6680 $as_echo_n "(cached) " >&6
6681 else
6682 rm -rf conftestd1a conftestd1b conftestd2
6683 mkdir conftestd1a conftestd1b conftestd2
6684 cat <<EOF > conftestd1a/conftest.h
6685 #define DEFINED_IN_CONFTESTD1
6686 #include_next <conftest.h>
6687 #ifdef DEFINED_IN_CONFTESTD2
6688 int foo;
6689 #else
6690 #error "include_next doesn't work"
6691 #endif
6692 EOF
6693 cat <<EOF > conftestd1b/conftest.h
6694 #define DEFINED_IN_CONFTESTD1
6695 #include <stdio.h>
6696 #include_next <conftest.h>
6697 #ifdef DEFINED_IN_CONFTESTD2
6698 int foo;
6699 #else
6700 #error "include_next doesn't work"
6701 #endif
6702 EOF
6703 cat <<EOF > conftestd2/conftest.h
6704 #ifndef DEFINED_IN_CONFTESTD1
6705 #error "include_next test doesn't work"
6706 #endif
6707 #define DEFINED_IN_CONFTESTD2
6708 EOF
6709 gl_save_CPPFLAGS="$CPPFLAGS"
6710 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712 /* end confdefs.h. */
6713 #include <conftest.h>
6714 _ACEOF
6715 if ac_fn_c_try_compile "$LINENO"; then :
6716 gl_cv_have_include_next=yes
6717 else
6718 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720 /* end confdefs.h. */
6721 #include <conftest.h>
6722 _ACEOF
6723 if ac_fn_c_try_compile "$LINENO"; then :
6724 gl_cv_have_include_next=buggy
6725 else
6726 gl_cv_have_include_next=no
6727 fi
6728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6729
6730 fi
6731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6732 CPPFLAGS="$gl_save_CPPFLAGS"
6733 rm -rf conftestd1a conftestd1b conftestd2
6734
6735 fi
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6737 $as_echo "$gl_cv_have_include_next" >&6; }
6738 PRAGMA_SYSTEM_HEADER=
6739 if test $gl_cv_have_include_next = yes; then
6740 INCLUDE_NEXT=include_next
6741 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6742 if test -n "$GCC"; then
6743 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6744 fi
6745 else
6746 if test $gl_cv_have_include_next = buggy; then
6747 INCLUDE_NEXT=include
6748 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6749 else
6750 INCLUDE_NEXT=include
6751 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6752 fi
6753 fi
6754
6755
6756
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
6758 $as_echo_n "checking whether system header files limit the line length... " >&6; }
6759 if test "${gl_cv_pragma_columns+set}" = set; then :
6760 $as_echo_n "(cached) " >&6
6761 else
6762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6763 /* end confdefs.h. */
6764
6765 #ifdef __TANDEM
6766 choke me
6767 #endif
6768
6769 _ACEOF
6770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6771 $EGREP "choke me" >/dev/null 2>&1; then :
6772 gl_cv_pragma_columns=yes
6773 else
6774 gl_cv_pragma_columns=no
6775 fi
6776 rm -f conftest*
6777
6778
6779 fi
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
6781 $as_echo "$gl_cv_pragma_columns" >&6; }
6782 if test $gl_cv_pragma_columns = yes; then
6783 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
6784 else
6785 PRAGMA_COLUMNS=
6786 fi
6787
6788
6789
6790
6791
6792
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
6794 $as_echo_n "checking for complete errno.h... " >&6; }
6795 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
6796 $as_echo_n "(cached) " >&6
6797 else
6798
6799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h. */
6801
6802 #include <errno.h>
6803 #if !defined ETXTBSY
6804 booboo
6805 #endif
6806 #if !defined ENOMSG
6807 booboo
6808 #endif
6809 #if !defined EIDRM
6810 booboo
6811 #endif
6812 #if !defined ENOLINK
6813 booboo
6814 #endif
6815 #if !defined EPROTO
6816 booboo
6817 #endif
6818 #if !defined EMULTIHOP
6819 booboo
6820 #endif
6821 #if !defined EBADMSG
6822 booboo
6823 #endif
6824 #if !defined EOVERFLOW
6825 booboo
6826 #endif
6827 #if !defined ENOTSUP
6828 booboo
6829 #endif
6830 #if !defined ENETRESET
6831 booboo
6832 #endif
6833 #if !defined ECONNABORTED
6834 booboo
6835 #endif
6836 #if !defined ESTALE
6837 booboo
6838 #endif
6839 #if !defined EDQUOT
6840 booboo
6841 #endif
6842 #if !defined ECANCELED
6843 booboo
6844 #endif
6845 #if !defined EOWNERDEAD
6846 booboo
6847 #endif
6848 #if !defined ENOTRECOVERABLE
6849 booboo
6850 #endif
6851 #if !defined EILSEQ
6852 booboo
6853 #endif
6854
6855 _ACEOF
6856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6857 $EGREP "booboo" >/dev/null 2>&1; then :
6858 gl_cv_header_errno_h_complete=no
6859 else
6860 gl_cv_header_errno_h_complete=yes
6861 fi
6862 rm -f conftest*
6863
6864
6865 fi
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
6867 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
6868 if test $gl_cv_header_errno_h_complete = yes; then
6869 ERRNO_H=''
6870 else
6871
6872
6873
6874
6875
6876
6877
6878
6879 if test $gl_cv_have_include_next = yes; then
6880 gl_cv_next_errno_h='<'errno.h'>'
6881 else
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
6883 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
6884 if test "${gl_cv_next_errno_h+set}" = set; then :
6885 $as_echo_n "(cached) " >&6
6886 else
6887
6888
6889
6890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891 /* end confdefs.h. */
6892 #include <errno.h>
6893 _ACEOF
6894 case "$host_os" in
6895 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6896 *) gl_absname_cpp="$ac_cpp" ;;
6897 esac
6898
6899 case "$host_os" in
6900 mingw*)
6901 gl_dirsep_regex='[/\\]'
6902 ;;
6903 *)
6904 gl_dirsep_regex='\/'
6905 ;;
6906 esac
6907 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6908 gl_header_literal_regex=`echo 'errno.h' \
6909 | sed -e "$gl_make_literal_regex_sed"`
6910 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6911 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6912 s|^/[^/]|//&|
6913 p
6914 q
6915 }'
6916
6917 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6918 sed -n "$gl_absolute_header_sed"`
6919
6920 gl_header=$gl_cv_absolute_errno_h
6921 gl_cv_next_errno_h='"'$gl_header'"'
6922
6923
6924 fi
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
6926 $as_echo "$gl_cv_next_errno_h" >&6; }
6927 fi
6928 NEXT_ERRNO_H=$gl_cv_next_errno_h
6929
6930 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6931 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6932 gl_next_as_first_directive='<'errno.h'>'
6933 else
6934 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6935 gl_next_as_first_directive=$gl_cv_next_errno_h
6936 fi
6937 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
6938
6939
6940
6941
6942 ERRNO_H='errno.h'
6943 fi
6944
6945 if test -n "$ERRNO_H"; then
6946 GL_GENERATE_ERRNO_H_TRUE=
6947 GL_GENERATE_ERRNO_H_FALSE='#'
6948 else
6949 GL_GENERATE_ERRNO_H_TRUE='#'
6950 GL_GENERATE_ERRNO_H_FALSE=
6951 fi
6952
6953
6954 if test -n "$ERRNO_H"; then
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
6956 $as_echo_n "checking for EMULTIHOP value... " >&6; }
6957 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
6958 $as_echo_n "(cached) " >&6
6959 else
6960
6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962 /* end confdefs.h. */
6963
6964 #include <errno.h>
6965 #ifdef EMULTIHOP
6966 yes
6967 #endif
6968
6969 _ACEOF
6970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6971 $EGREP "yes" >/dev/null 2>&1; then :
6972 gl_cv_header_errno_h_EMULTIHOP=yes
6973 else
6974 gl_cv_header_errno_h_EMULTIHOP=no
6975 fi
6976 rm -f conftest*
6977
6978 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
6979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6980 /* end confdefs.h. */
6981
6982 #define _XOPEN_SOURCE_EXTENDED 1
6983 #include <errno.h>
6984 #ifdef EMULTIHOP
6985 yes
6986 #endif
6987
6988 _ACEOF
6989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6990 $EGREP "yes" >/dev/null 2>&1; then :
6991 gl_cv_header_errno_h_EMULTIHOP=hidden
6992 fi
6993 rm -f conftest*
6994
6995 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
6996 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
6997 #define _XOPEN_SOURCE_EXTENDED 1
6998 #include <errno.h>
6999 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7000 #include <stdio.h>
7001 #include <stdlib.h>
7002 "; then :
7003
7004 fi
7005
7006 fi
7007 fi
7008
7009 fi
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7011 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7012 case $gl_cv_header_errno_h_EMULTIHOP in
7013 yes | no)
7014 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
7015 ;;
7016 *)
7017 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
7018 ;;
7019 esac
7020
7021
7022 fi
7023
7024
7025 if test -n "$ERRNO_H"; then
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7027 $as_echo_n "checking for ENOLINK value... " >&6; }
7028 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
7029 $as_echo_n "(cached) " >&6
7030 else
7031
7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033 /* end confdefs.h. */
7034
7035 #include <errno.h>
7036 #ifdef ENOLINK
7037 yes
7038 #endif
7039
7040 _ACEOF
7041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7042 $EGREP "yes" >/dev/null 2>&1; then :
7043 gl_cv_header_errno_h_ENOLINK=yes
7044 else
7045 gl_cv_header_errno_h_ENOLINK=no
7046 fi
7047 rm -f conftest*
7048
7049 if test $gl_cv_header_errno_h_ENOLINK = no; then
7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7052
7053 #define _XOPEN_SOURCE_EXTENDED 1
7054 #include <errno.h>
7055 #ifdef ENOLINK
7056 yes
7057 #endif
7058
7059 _ACEOF
7060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7061 $EGREP "yes" >/dev/null 2>&1; then :
7062 gl_cv_header_errno_h_ENOLINK=hidden
7063 fi
7064 rm -f conftest*
7065
7066 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
7067 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
7068 #define _XOPEN_SOURCE_EXTENDED 1
7069 #include <errno.h>
7070 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7071 #include <stdio.h>
7072 #include <stdlib.h>
7073 "; then :
7074
7075 fi
7076
7077 fi
7078 fi
7079
7080 fi
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7082 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7083 case $gl_cv_header_errno_h_ENOLINK in
7084 yes | no)
7085 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
7086 ;;
7087 *)
7088 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
7089 ;;
7090 esac
7091
7092
7093 fi
7094
7095
7096 if test -n "$ERRNO_H"; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7098 $as_echo_n "checking for EOVERFLOW value... " >&6; }
7099 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
7100 $as_echo_n "(cached) " >&6
7101 else
7102
7103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7104 /* end confdefs.h. */
7105
7106 #include <errno.h>
7107 #ifdef EOVERFLOW
7108 yes
7109 #endif
7110
7111 _ACEOF
7112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7113 $EGREP "yes" >/dev/null 2>&1; then :
7114 gl_cv_header_errno_h_EOVERFLOW=yes
7115 else
7116 gl_cv_header_errno_h_EOVERFLOW=no
7117 fi
7118 rm -f conftest*
7119
7120 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122 /* end confdefs.h. */
7123
7124 #define _XOPEN_SOURCE_EXTENDED 1
7125 #include <errno.h>
7126 #ifdef EOVERFLOW
7127 yes
7128 #endif
7129
7130 _ACEOF
7131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7132 $EGREP "yes" >/dev/null 2>&1; then :
7133 gl_cv_header_errno_h_EOVERFLOW=hidden
7134 fi
7135 rm -f conftest*
7136
7137 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7138 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
7139 #define _XOPEN_SOURCE_EXTENDED 1
7140 #include <errno.h>
7141 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7142 #include <stdio.h>
7143 #include <stdlib.h>
7144 "; then :
7145
7146 fi
7147
7148 fi
7149 fi
7150
7151 fi
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7153 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7154 case $gl_cv_header_errno_h_EOVERFLOW in
7155 yes | no)
7156 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
7157 ;;
7158 *)
7159 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
7160 ;;
7161 esac
7162
7163
7164 fi
7165
7166
7167
7168
7169
7170
7171
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
7173 $as_echo_n "checking for mbstate_t... " >&6; }
7174 if test "${ac_cv_type_mbstate_t+set}" = set; then :
7175 $as_echo_n "(cached) " >&6
7176 else
7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178 /* end confdefs.h. */
7179 $ac_includes_default
7180 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7181 <wchar.h>.
7182 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7183 included before <wchar.h>. */
7184 #include <stddef.h>
7185 #include <stdio.h>
7186 #include <time.h>
7187 #include <wchar.h>
7188 int
7189 main ()
7190 {
7191 mbstate_t x; return sizeof x;
7192 ;
7193 return 0;
7194 }
7195 _ACEOF
7196 if ac_fn_c_try_compile "$LINENO"; then :
7197 ac_cv_type_mbstate_t=yes
7198 else
7199 ac_cv_type_mbstate_t=no
7200 fi
7201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7202 fi
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
7204 $as_echo "$ac_cv_type_mbstate_t" >&6; }
7205 if test $ac_cv_type_mbstate_t = yes; then
7206
7207 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
7208
7209 else
7210
7211 $as_echo "#define mbstate_t int" >>confdefs.h
7212
7213 fi
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234 GNULIB_ACOSF=0;
7235 GNULIB_ACOSL=0;
7236 GNULIB_ASINF=0;
7237 GNULIB_ASINL=0;
7238 GNULIB_ATANF=0;
7239 GNULIB_ATANL=0;
7240 GNULIB_ATAN2F=0;
7241 GNULIB_CBRT=0;
7242 GNULIB_CBRTF=0;
7243 GNULIB_CBRTL=0;
7244 GNULIB_CEIL=0;
7245 GNULIB_CEILF=0;
7246 GNULIB_CEILL=0;
7247 GNULIB_COPYSIGN=0;
7248 GNULIB_COPYSIGNF=0;
7249 GNULIB_COPYSIGNL=0;
7250 GNULIB_COSF=0;
7251 GNULIB_COSL=0;
7252 GNULIB_COSHF=0;
7253 GNULIB_EXPF=0;
7254 GNULIB_EXPL=0;
7255 GNULIB_EXP2=0;
7256 GNULIB_EXP2F=0;
7257 GNULIB_EXP2L=0;
7258 GNULIB_EXPM1=0;
7259 GNULIB_EXPM1F=0;
7260 GNULIB_EXPM1L=0;
7261 GNULIB_FABSF=0;
7262 GNULIB_FABSL=0;
7263 GNULIB_FLOOR=0;
7264 GNULIB_FLOORF=0;
7265 GNULIB_FLOORL=0;
7266 GNULIB_FMA=0;
7267 GNULIB_FMAF=0;
7268 GNULIB_FMAL=0;
7269 GNULIB_FMOD=0;
7270 GNULIB_FMODF=0;
7271 GNULIB_FMODL=0;
7272 GNULIB_FREXPF=0;
7273 GNULIB_FREXP=0;
7274 GNULIB_FREXPL=0;
7275 GNULIB_HYPOT=0;
7276 GNULIB_HYPOTF=0;
7277 GNULIB_HYPOTL=0;
7278 GNULIB_ILOGB=0;
7279 GNULIB_ILOGBF=0;
7280 GNULIB_ILOGBL=0;
7281 GNULIB_ISFINITE=0;
7282 GNULIB_ISINF=0;
7283 GNULIB_ISNAN=0;
7284 GNULIB_ISNANF=0;
7285 GNULIB_ISNAND=0;
7286 GNULIB_ISNANL=0;
7287 GNULIB_LDEXPF=0;
7288 GNULIB_LDEXPL=0;
7289 GNULIB_LOG=0;
7290 GNULIB_LOGF=0;
7291 GNULIB_LOGL=0;
7292 GNULIB_LOG10=0;
7293 GNULIB_LOG10F=0;
7294 GNULIB_LOG10L=0;
7295 GNULIB_LOG1P=0;
7296 GNULIB_LOG1PF=0;
7297 GNULIB_LOG1PL=0;
7298 GNULIB_LOG2=0;
7299 GNULIB_LOG2F=0;
7300 GNULIB_LOG2L=0;
7301 GNULIB_LOGB=0;
7302 GNULIB_LOGBF=0;
7303 GNULIB_LOGBL=0;
7304 GNULIB_MODF=0;
7305 GNULIB_MODFF=0;
7306 GNULIB_MODFL=0;
7307 GNULIB_POWF=0;
7308 GNULIB_REMAINDER=0;
7309 GNULIB_REMAINDERF=0;
7310 GNULIB_REMAINDERL=0;
7311 GNULIB_RINT=0;
7312 GNULIB_RINTF=0;
7313 GNULIB_RINTL=0;
7314 GNULIB_ROUND=0;
7315 GNULIB_ROUNDF=0;
7316 GNULIB_ROUNDL=0;
7317 GNULIB_SIGNBIT=0;
7318 GNULIB_SINF=0;
7319 GNULIB_SINL=0;
7320 GNULIB_SINHF=0;
7321 GNULIB_SQRTF=0;
7322 GNULIB_SQRTL=0;
7323 GNULIB_TANF=0;
7324 GNULIB_TANL=0;
7325 GNULIB_TANHF=0;
7326 GNULIB_TRUNC=0;
7327 GNULIB_TRUNCF=0;
7328 GNULIB_TRUNCL=0;
7329 HAVE_ACOSF=1;
7330 HAVE_ACOSL=1;
7331 HAVE_ASINF=1;
7332 HAVE_ASINL=1;
7333 HAVE_ATANF=1;
7334 HAVE_ATANL=1;
7335 HAVE_ATAN2F=1;
7336 HAVE_CBRT=1;
7337 HAVE_CBRTF=1;
7338 HAVE_CBRTL=1;
7339 HAVE_COPYSIGN=1;
7340 HAVE_COPYSIGNL=1;
7341 HAVE_COSF=1;
7342 HAVE_COSL=1;
7343 HAVE_COSHF=1;
7344 HAVE_EXPF=1;
7345 HAVE_EXPL=1;
7346 HAVE_EXPM1=1;
7347 HAVE_EXPM1F=1;
7348 HAVE_FABSF=1;
7349 HAVE_FABSL=1;
7350 HAVE_FMA=1;
7351 HAVE_FMAF=1;
7352 HAVE_FMAL=1;
7353 HAVE_FMODF=1;
7354 HAVE_FMODL=1;
7355 HAVE_FREXPF=1;
7356 HAVE_HYPOTF=1;
7357 HAVE_HYPOTL=1;
7358 HAVE_ILOGB=1;
7359 HAVE_ILOGBF=1;
7360 HAVE_ILOGBL=1;
7361 HAVE_ISNANF=1;
7362 HAVE_ISNAND=1;
7363 HAVE_ISNANL=1;
7364 HAVE_LDEXPF=1;
7365 HAVE_LOGF=1;
7366 HAVE_LOGL=1;
7367 HAVE_LOG10F=1;
7368 HAVE_LOG10L=1;
7369 HAVE_LOG1P=1;
7370 HAVE_LOG1PF=1;
7371 HAVE_LOG1PL=1;
7372 HAVE_LOGBF=1;
7373 HAVE_LOGBL=1;
7374 HAVE_MODFF=1;
7375 HAVE_MODFL=1;
7376 HAVE_POWF=1;
7377 HAVE_REMAINDER=1;
7378 HAVE_REMAINDERF=1;
7379 HAVE_RINT=1;
7380 HAVE_RINTL=1;
7381 HAVE_SINF=1;
7382 HAVE_SINL=1;
7383 HAVE_SINHF=1;
7384 HAVE_SQRTF=1;
7385 HAVE_SQRTL=1;
7386 HAVE_TANF=1;
7387 HAVE_TANL=1;
7388 HAVE_TANHF=1;
7389 HAVE_DECL_ACOSL=1;
7390 HAVE_DECL_ASINL=1;
7391 HAVE_DECL_ATANL=1;
7392 HAVE_DECL_CBRTF=1;
7393 HAVE_DECL_CBRTL=1;
7394 HAVE_DECL_CEILF=1;
7395 HAVE_DECL_CEILL=1;
7396 HAVE_DECL_COPYSIGNF=1;
7397 HAVE_DECL_COSL=1;
7398 HAVE_DECL_EXPL=1;
7399 HAVE_DECL_EXP2=1;
7400 HAVE_DECL_EXP2F=1;
7401 HAVE_DECL_EXP2L=1;
7402 HAVE_DECL_EXPM1L=1;
7403 HAVE_DECL_FLOORF=1;
7404 HAVE_DECL_FLOORL=1;
7405 HAVE_DECL_FREXPL=1;
7406 HAVE_DECL_LDEXPL=1;
7407 HAVE_DECL_LOGL=1;
7408 HAVE_DECL_LOG10L=1;
7409 HAVE_DECL_LOG2=1;
7410 HAVE_DECL_LOG2F=1;
7411 HAVE_DECL_LOG2L=1;
7412 HAVE_DECL_LOGB=1;
7413 HAVE_DECL_REMAINDER=1;
7414 HAVE_DECL_REMAINDERL=1;
7415 HAVE_DECL_RINTF=1;
7416 HAVE_DECL_ROUND=1;
7417 HAVE_DECL_ROUNDF=1;
7418 HAVE_DECL_ROUNDL=1;
7419 HAVE_DECL_SINL=1;
7420 HAVE_DECL_SQRTL=1;
7421 HAVE_DECL_TANL=1;
7422 HAVE_DECL_TRUNC=1;
7423 HAVE_DECL_TRUNCF=1;
7424 HAVE_DECL_TRUNCL=1;
7425 REPLACE_CBRTF=0;
7426 REPLACE_CBRTL=0;
7427 REPLACE_CEIL=0;
7428 REPLACE_CEILF=0;
7429 REPLACE_CEILL=0;
7430 REPLACE_EXPM1=0;
7431 REPLACE_EXPM1F=0;
7432 REPLACE_EXP2=0;
7433 REPLACE_EXP2L=0;
7434 REPLACE_FABSL=0;
7435 REPLACE_FLOOR=0;
7436 REPLACE_FLOORF=0;
7437 REPLACE_FLOORL=0;
7438 REPLACE_FMA=0;
7439 REPLACE_FMAF=0;
7440 REPLACE_FMAL=0;
7441 REPLACE_FMOD=0;
7442 REPLACE_FMODF=0;
7443 REPLACE_FMODL=0;
7444 REPLACE_FREXPF=0;
7445 REPLACE_FREXP=0;
7446 REPLACE_FREXPL=0;
7447 REPLACE_HUGE_VAL=0;
7448 REPLACE_HYPOT=0;
7449 REPLACE_HYPOTF=0;
7450 REPLACE_HYPOTL=0;
7451 REPLACE_ILOGB=0;
7452 REPLACE_ILOGBF=0;
7453 REPLACE_ISFINITE=0;
7454 REPLACE_ISINF=0;
7455 REPLACE_ISNAN=0;
7456 REPLACE_LDEXPL=0;
7457 REPLACE_LOG=0;
7458 REPLACE_LOGF=0;
7459 REPLACE_LOGL=0;
7460 REPLACE_LOG10=0;
7461 REPLACE_LOG10F=0;
7462 REPLACE_LOG10L=0;
7463 REPLACE_LOG1P=0;
7464 REPLACE_LOG1PF=0;
7465 REPLACE_LOG1PL=0;
7466 REPLACE_LOG2=0;
7467 REPLACE_LOG2F=0;
7468 REPLACE_LOG2L=0;
7469 REPLACE_LOGB=0;
7470 REPLACE_LOGBF=0;
7471 REPLACE_LOGBL=0;
7472 REPLACE_MODF=0;
7473 REPLACE_MODFF=0;
7474 REPLACE_MODFL=0;
7475 REPLACE_NAN=0;
7476 REPLACE_REMAINDER=0;
7477 REPLACE_REMAINDERF=0;
7478 REPLACE_REMAINDERL=0;
7479 REPLACE_ROUND=0;
7480 REPLACE_ROUNDF=0;
7481 REPLACE_ROUNDL=0;
7482 REPLACE_SIGNBIT=0;
7483 REPLACE_SIGNBIT_USING_GCC=0;
7484 REPLACE_SQRTL=0;
7485 REPLACE_TRUNC=0;
7486 REPLACE_TRUNCF=0;
7487 REPLACE_TRUNCL=0;
7488
7489
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
7491 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
7492 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
7493 $as_echo_n "(cached) " >&6
7494 else
7495
7496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7497 /* end confdefs.h. */
7498 #include <math.h>
7499 double x;
7500 int
7501 main ()
7502 {
7503 int e; return frexp (x, &e) > 0;
7504 ;
7505 return 0;
7506 }
7507 _ACEOF
7508 if ac_fn_c_try_link "$LINENO"; then :
7509 gl_cv_func_frexp_no_libm=yes
7510 else
7511 gl_cv_func_frexp_no_libm=no
7512 fi
7513 rm -f core conftest.err conftest.$ac_objext \
7514 conftest$ac_exeext conftest.$ac_ext
7515
7516 fi
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
7518 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
7519
7520 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
7521 if test "x$ac_cv_have_decl_alarm" = x""yes; then :
7522 ac_have_decl=1
7523 else
7524 ac_have_decl=0
7525 fi
7526
7527 cat >>confdefs.h <<_ACEOF
7528 #define HAVE_DECL_ALARM $ac_have_decl
7529 _ACEOF
7530
7531
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
7533 $as_echo_n "checking whether long double and double are the same... " >&6; }
7534 if test "${gl_cv_long_double_equals_double+set}" = set; then :
7535 $as_echo_n "(cached) " >&6
7536 else
7537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7538 /* end confdefs.h. */
7539 #include <float.h>
7540 int
7541 main ()
7542 {
7543 typedef int check[sizeof (long double) == sizeof (double)
7544 && LDBL_MANT_DIG == DBL_MANT_DIG
7545 && LDBL_MAX_EXP == DBL_MAX_EXP
7546 && LDBL_MIN_EXP == DBL_MIN_EXP
7547 ? 1 : -1];
7548
7549 ;
7550 return 0;
7551 }
7552 _ACEOF
7553 if ac_fn_c_try_compile "$LINENO"; then :
7554 gl_cv_long_double_equals_double=yes
7555 else
7556 gl_cv_long_double_equals_double=no
7557 fi
7558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7559
7560 fi
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
7562 $as_echo "$gl_cv_long_double_equals_double" >&6; }
7563 if test $gl_cv_long_double_equals_double = yes; then
7564
7565 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
7566
7567 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
7568 else
7569 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
7570 fi
7571
7572
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
7574 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7575 if test "${ac_cv_c_restrict+set}" = set; then :
7576 $as_echo_n "(cached) " >&6
7577 else
7578 ac_cv_c_restrict=no
7579 # The order here caters to the fact that C++ does not require restrict.
7580 for ac_kw in __restrict __restrict__ _Restrict restrict; do
7581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7582 /* end confdefs.h. */
7583 typedef int *int_ptr;
7584 int foo (int_ptr $ac_kw ip) { return ip[0]; }
7585 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
7586 int bar (int ip[$ac_kw]) { return ip[0]; }
7587
7588 int
7589 main ()
7590 {
7591 int s[1];
7592 int *$ac_kw t = s;
7593 t[0] = 0;
7594 return foo (t) + bar (t);
7595
7596 ;
7597 return 0;
7598 }
7599 _ACEOF
7600 if ac_fn_c_try_compile "$LINENO"; then :
7601 ac_cv_c_restrict=$ac_kw
7602 fi
7603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7604 test "$ac_cv_c_restrict" != no && break
7605 done
7606
7607 fi
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
7609 $as_echo "$ac_cv_c_restrict" >&6; }
7610
7611 case $ac_cv_c_restrict in
7612 restrict) ;;
7613 no) $as_echo "#define restrict /**/" >>confdefs.h
7614 ;;
7615 *) cat >>confdefs.h <<_ACEOF
7616 #define restrict $ac_cv_c_restrict
7617 _ACEOF
7618 ;;
7619 esac
7620
7621
7622 GNULIB_GETTIMEOFDAY=0;
7623 HAVE_GETTIMEOFDAY=1;
7624 HAVE_STRUCT_TIMEVAL=1;
7625 HAVE_SYS_TIME_H=1;
7626 HAVE_TIMEZONE_T=0;
7627 REPLACE_GETTIMEOFDAY=0;
7628 REPLACE_STRUCT_TIMEVAL=0;
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647 if test $gl_cv_have_include_next = yes; then
7648 gl_cv_next_sys_time_h='<'sys/time.h'>'
7649 else
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
7651 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
7652 if test "${gl_cv_next_sys_time_h+set}" = set; then :
7653 $as_echo_n "(cached) " >&6
7654 else
7655
7656 if test $ac_cv_header_sys_time_h = yes; then
7657
7658
7659
7660
7661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7662 /* end confdefs.h. */
7663 #include <sys/time.h>
7664 _ACEOF
7665 case "$host_os" in
7666 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7667 *) gl_absname_cpp="$ac_cpp" ;;
7668 esac
7669
7670 case "$host_os" in
7671 mingw*)
7672 gl_dirsep_regex='[/\\]'
7673 ;;
7674 *)
7675 gl_dirsep_regex='\/'
7676 ;;
7677 esac
7678 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7679 gl_header_literal_regex=`echo 'sys/time.h' \
7680 | sed -e "$gl_make_literal_regex_sed"`
7681 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7682 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7683 s|^/[^/]|//&|
7684 p
7685 q
7686 }'
7687
7688 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7689 sed -n "$gl_absolute_header_sed"`
7690
7691 gl_header=$gl_cv_absolute_sys_time_h
7692 gl_cv_next_sys_time_h='"'$gl_header'"'
7693 else
7694 gl_cv_next_sys_time_h='<'sys/time.h'>'
7695 fi
7696
7697
7698 fi
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
7700 $as_echo "$gl_cv_next_sys_time_h" >&6; }
7701 fi
7702 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
7703
7704 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7705 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7706 gl_next_as_first_directive='<'sys/time.h'>'
7707 else
7708 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7709 gl_next_as_first_directive=$gl_cv_next_sys_time_h
7710 fi
7711 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
7712
7713
7714
7715
7716
7717 if test $ac_cv_header_sys_time_h != yes; then
7718 HAVE_SYS_TIME_H=0
7719 fi
7720
7721
7722
7723
7724
7725 if test $ac_cv_header_sys_socket_h != yes; then
7726 for ac_header in winsock2.h
7727 do :
7728 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
7729 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
7730 cat >>confdefs.h <<_ACEOF
7731 #define HAVE_WINSOCK2_H 1
7732 _ACEOF
7733
7734 fi
7735
7736 done
7737
7738 fi
7739 if test "$ac_cv_header_winsock2_h" = yes; then
7740 HAVE_WINSOCK2_H=1
7741 UNISTD_H_HAVE_WINSOCK2_H=1
7742 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
7743 else
7744 HAVE_WINSOCK2_H=0
7745 fi
7746
7747
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7749 $as_echo_n "checking for struct timeval... " >&6; }
7750 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
7751 $as_echo_n "(cached) " >&6
7752 else
7753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7754 /* end confdefs.h. */
7755 #if HAVE_SYS_TIME_H
7756 #include <sys/time.h>
7757 #endif
7758 #include <time.h>
7759 #if HAVE_WINSOCK2_H
7760 # include <winsock2.h>
7761 #endif
7762
7763 int
7764 main ()
7765 {
7766 static struct timeval x; x.tv_sec = x.tv_usec;
7767 ;
7768 return 0;
7769 }
7770 _ACEOF
7771 if ac_fn_c_try_compile "$LINENO"; then :
7772 gl_cv_sys_struct_timeval=yes
7773 else
7774 gl_cv_sys_struct_timeval=no
7775 fi
7776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7777
7778 fi
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
7780 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
7781 if test $gl_cv_sys_struct_timeval != yes; then
7782 HAVE_STRUCT_TIMEVAL=0
7783 else
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
7785 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
7786 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
7787 $as_echo_n "(cached) " >&6
7788 else
7789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h. */
7791 #if HAVE_SYS_TIME_H
7792 #include <sys/time.h>
7793 #endif
7794 #include <time.h>
7795 #if HAVE_WINSOCK2_H
7796 # include <winsock2.h>
7797 #endif
7798
7799 int
7800 main ()
7801 {
7802 static struct timeval x;
7803 typedef int verify_tv_sec_type[
7804 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
7805 ];
7806
7807 ;
7808 return 0;
7809 }
7810 _ACEOF
7811 if ac_fn_c_try_compile "$LINENO"; then :
7812 gl_cv_sys_struct_timeval_tv_sec=yes
7813 else
7814 gl_cv_sys_struct_timeval_tv_sec=no
7815 fi
7816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7817
7818 fi
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
7820 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
7821 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
7822 REPLACE_STRUCT_TIMEVAL=1
7823 fi
7824 fi
7825
7826
7827 for gl_func in gettimeofday; do
7828 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7830 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7831 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7832 $as_echo_n "(cached) " >&6
7833 else
7834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835 /* end confdefs.h. */
7836
7837 #if HAVE_SYS_TIME_H
7838 # include <sys/time.h>
7839 #endif
7840 #include <time.h>
7841
7842 int
7843 main ()
7844 {
7845 #undef $gl_func
7846 (void) $gl_func;
7847 ;
7848 return 0;
7849 }
7850 _ACEOF
7851 if ac_fn_c_try_compile "$LINENO"; then :
7852 eval "$as_gl_Symbol=yes"
7853 else
7854 eval "$as_gl_Symbol=no"
7855 fi
7856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7857 fi
7858 eval ac_res=\$$as_gl_Symbol
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7860 $as_echo "$ac_res" >&6; }
7861 eval as_val=\$$as_gl_Symbol
7862 if test "x$as_val" = x""yes; then :
7863 cat >>confdefs.h <<_ACEOF
7864 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7865 _ACEOF
7866
7867 eval ac_cv_have_decl_$gl_func=yes
7868 fi
7869 done
7870
7871
7872
7873
7874
7875
7876
7877
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7879 $as_echo_n "checking for unsigned long long int... " >&6; }
7880 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
7881 $as_echo_n "(cached) " >&6
7882 else
7883 ac_cv_type_unsigned_long_long_int=yes
7884 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h. */
7887
7888 /* For now, do not test the preprocessor; as of 2007 there are too many
7889 implementations with broken preprocessors. Perhaps this can
7890 be revisited in 2012. In the meantime, code should not expect
7891 #if to work with literals wider than 32 bits. */
7892 /* Test literals. */
7893 long long int ll = 9223372036854775807ll;
7894 long long int nll = -9223372036854775807LL;
7895 unsigned long long int ull = 18446744073709551615ULL;
7896 /* Test constant expressions. */
7897 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7898 ? 1 : -1)];
7899 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7900 ? 1 : -1)];
7901 int i = 63;
7902 int
7903 main ()
7904 {
7905 /* Test availability of runtime routines for shift and division. */
7906 long long int llmax = 9223372036854775807ll;
7907 unsigned long long int ullmax = 18446744073709551615ull;
7908 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7909 | (llmax / ll) | (llmax % ll)
7910 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7911 | (ullmax / ull) | (ullmax % ull));
7912 ;
7913 return 0;
7914 }
7915
7916 _ACEOF
7917 if ac_fn_c_try_link "$LINENO"; then :
7918
7919 else
7920 ac_cv_type_unsigned_long_long_int=no
7921 fi
7922 rm -f core conftest.err conftest.$ac_objext \
7923 conftest$ac_exeext conftest.$ac_ext
7924 fi
7925 fi
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7927 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7928 if test $ac_cv_type_unsigned_long_long_int = yes; then
7929
7930 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7931
7932 fi
7933
7934
7935
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7937 $as_echo_n "checking for long long int... " >&6; }
7938 if test "${ac_cv_type_long_long_int+set}" = set; then :
7939 $as_echo_n "(cached) " >&6
7940 else
7941 ac_cv_type_long_long_int=yes
7942 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7943 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
7944 if test $ac_cv_type_long_long_int = yes; then
7945 if test "$cross_compiling" = yes; then :
7946 :
7947 else
7948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h. */
7950 #include <limits.h>
7951 #ifndef LLONG_MAX
7952 # define HALF \
7953 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7954 # define LLONG_MAX (HALF - 1 + HALF)
7955 #endif
7956 int
7957 main ()
7958 {
7959 long long int n = 1;
7960 int i;
7961 for (i = 0; ; i++)
7962 {
7963 long long int m = n << i;
7964 if (m >> i != n)
7965 return 1;
7966 if (LLONG_MAX / 2 < m)
7967 break;
7968 }
7969 return 0;
7970 ;
7971 return 0;
7972 }
7973 _ACEOF
7974 if ac_fn_c_try_run "$LINENO"; then :
7975
7976 else
7977 ac_cv_type_long_long_int=no
7978 fi
7979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7980 conftest.$ac_objext conftest.beam conftest.$ac_ext
7981 fi
7982
7983 fi
7984 fi
7985 fi
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7987 $as_echo "$ac_cv_type_long_long_int" >&6; }
7988 if test $ac_cv_type_long_long_int = yes; then
7989
7990 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7991
7992 fi
7993
7994
7995
7996
7997
7998
7999 gl_cv_c_multiarch=no
8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8002 #ifndef __APPLE_CC__
8003 not a universal capable compiler
8004 #endif
8005 typedef int dummy;
8006
8007 _ACEOF
8008 if ac_fn_c_try_compile "$LINENO"; then :
8009
8010 arch=
8011 prev=
8012 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
8013 if test -n "$prev"; then
8014 case $word in
8015 i?86 | x86_64 | ppc | ppc64)
8016 if test -z "$arch" || test "$arch" = "$word"; then
8017 arch="$word"
8018 else
8019 gl_cv_c_multiarch=yes
8020 fi
8021 ;;
8022 esac
8023 prev=
8024 else
8025 if test "x$word" = "x-arch"; then
8026 prev=arch
8027 fi
8028 fi
8029 done
8030
8031 fi
8032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8033 if test $gl_cv_c_multiarch = yes; then
8034 APPLE_UNIVERSAL_BUILD=1
8035 else
8036 APPLE_UNIVERSAL_BUILD=0
8037 fi
8038
8039
8040
8041
8042
8043 if test $ac_cv_type_long_long_int = yes; then
8044 HAVE_LONG_LONG_INT=1
8045 else
8046 HAVE_LONG_LONG_INT=0
8047 fi
8048
8049
8050 if test $ac_cv_type_unsigned_long_long_int = yes; then
8051 HAVE_UNSIGNED_LONG_LONG_INT=1
8052 else
8053 HAVE_UNSIGNED_LONG_LONG_INT=0
8054 fi
8055
8056
8057
8058 if test $ac_cv_header_wchar_h = yes; then
8059 HAVE_WCHAR_H=1
8060 else
8061 HAVE_WCHAR_H=0
8062 fi
8063
8064
8065 if test $ac_cv_header_inttypes_h = yes; then
8066 HAVE_INTTYPES_H=1
8067 else
8068 HAVE_INTTYPES_H=0
8069 fi
8070
8071
8072 if test $ac_cv_header_sys_types_h = yes; then
8073 HAVE_SYS_TYPES_H=1
8074 else
8075 HAVE_SYS_TYPES_H=0
8076 fi
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088 if test $gl_cv_have_include_next = yes; then
8089 gl_cv_next_stdint_h='<'stdint.h'>'
8090 else
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
8092 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
8093 if test "${gl_cv_next_stdint_h+set}" = set; then :
8094 $as_echo_n "(cached) " >&6
8095 else
8096
8097 if test $ac_cv_header_stdint_h = yes; then
8098
8099
8100
8101
8102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8103 /* end confdefs.h. */
8104 #include <stdint.h>
8105 _ACEOF
8106 case "$host_os" in
8107 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8108 *) gl_absname_cpp="$ac_cpp" ;;
8109 esac
8110
8111 case "$host_os" in
8112 mingw*)
8113 gl_dirsep_regex='[/\\]'
8114 ;;
8115 *)
8116 gl_dirsep_regex='\/'
8117 ;;
8118 esac
8119 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8120 gl_header_literal_regex=`echo 'stdint.h' \
8121 | sed -e "$gl_make_literal_regex_sed"`
8122 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8123 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8124 s|^/[^/]|//&|
8125 p
8126 q
8127 }'
8128
8129 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8130 sed -n "$gl_absolute_header_sed"`
8131
8132 gl_header=$gl_cv_absolute_stdint_h
8133 gl_cv_next_stdint_h='"'$gl_header'"'
8134 else
8135 gl_cv_next_stdint_h='<'stdint.h'>'
8136 fi
8137
8138
8139 fi
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
8141 $as_echo "$gl_cv_next_stdint_h" >&6; }
8142 fi
8143 NEXT_STDINT_H=$gl_cv_next_stdint_h
8144
8145 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8146 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8147 gl_next_as_first_directive='<'stdint.h'>'
8148 else
8149 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8150 gl_next_as_first_directive=$gl_cv_next_stdint_h
8151 fi
8152 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
8153
8154
8155
8156
8157 if test $ac_cv_header_stdint_h = yes; then
8158 HAVE_STDINT_H=1
8159 else
8160 HAVE_STDINT_H=0
8161 fi
8162
8163
8164 if test $ac_cv_header_stdint_h = yes; then
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
8166 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
8167 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
8168 $as_echo_n "(cached) " >&6
8169 else
8170 gl_cv_header_working_stdint_h=no
8171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172 /* end confdefs.h. */
8173
8174
8175 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8176 #include <stdint.h>
8177 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
8178 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
8179 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
8180 #endif
8181
8182
8183 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8184 included before <wchar.h>. */
8185 #include <stddef.h>
8186 #include <signal.h>
8187 #if HAVE_WCHAR_H
8188 # include <stdio.h>
8189 # include <time.h>
8190 # include <wchar.h>
8191 #endif
8192
8193
8194 #ifdef INT8_MAX
8195 int8_t a1 = INT8_MAX;
8196 int8_t a1min = INT8_MIN;
8197 #endif
8198 #ifdef INT16_MAX
8199 int16_t a2 = INT16_MAX;
8200 int16_t a2min = INT16_MIN;
8201 #endif
8202 #ifdef INT32_MAX
8203 int32_t a3 = INT32_MAX;
8204 int32_t a3min = INT32_MIN;
8205 #endif
8206 #ifdef INT64_MAX
8207 int64_t a4 = INT64_MAX;
8208 int64_t a4min = INT64_MIN;
8209 #endif
8210 #ifdef UINT8_MAX
8211 uint8_t b1 = UINT8_MAX;
8212 #else
8213 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
8214 #endif
8215 #ifdef UINT16_MAX
8216 uint16_t b2 = UINT16_MAX;
8217 #endif
8218 #ifdef UINT32_MAX
8219 uint32_t b3 = UINT32_MAX;
8220 #endif
8221 #ifdef UINT64_MAX
8222 uint64_t b4 = UINT64_MAX;
8223 #endif
8224 int_least8_t c1 = INT8_C (0x7f);
8225 int_least8_t c1max = INT_LEAST8_MAX;
8226 int_least8_t c1min = INT_LEAST8_MIN;
8227 int_least16_t c2 = INT16_C (0x7fff);
8228 int_least16_t c2max = INT_LEAST16_MAX;
8229 int_least16_t c2min = INT_LEAST16_MIN;
8230 int_least32_t c3 = INT32_C (0x7fffffff);
8231 int_least32_t c3max = INT_LEAST32_MAX;
8232 int_least32_t c3min = INT_LEAST32_MIN;
8233 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
8234 int_least64_t c4max = INT_LEAST64_MAX;
8235 int_least64_t c4min = INT_LEAST64_MIN;
8236 uint_least8_t d1 = UINT8_C (0xff);
8237 uint_least8_t d1max = UINT_LEAST8_MAX;
8238 uint_least16_t d2 = UINT16_C (0xffff);
8239 uint_least16_t d2max = UINT_LEAST16_MAX;
8240 uint_least32_t d3 = UINT32_C (0xffffffff);
8241 uint_least32_t d3max = UINT_LEAST32_MAX;
8242 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
8243 uint_least64_t d4max = UINT_LEAST64_MAX;
8244 int_fast8_t e1 = INT_FAST8_MAX;
8245 int_fast8_t e1min = INT_FAST8_MIN;
8246 int_fast16_t e2 = INT_FAST16_MAX;
8247 int_fast16_t e2min = INT_FAST16_MIN;
8248 int_fast32_t e3 = INT_FAST32_MAX;
8249 int_fast32_t e3min = INT_FAST32_MIN;
8250 int_fast64_t e4 = INT_FAST64_MAX;
8251 int_fast64_t e4min = INT_FAST64_MIN;
8252 uint_fast8_t f1 = UINT_FAST8_MAX;
8253 uint_fast16_t f2 = UINT_FAST16_MAX;
8254 uint_fast32_t f3 = UINT_FAST32_MAX;
8255 uint_fast64_t f4 = UINT_FAST64_MAX;
8256 #ifdef INTPTR_MAX
8257 intptr_t g = INTPTR_MAX;
8258 intptr_t gmin = INTPTR_MIN;
8259 #endif
8260 #ifdef UINTPTR_MAX
8261 uintptr_t h = UINTPTR_MAX;
8262 #endif
8263 intmax_t i = INTMAX_MAX;
8264 uintmax_t j = UINTMAX_MAX;
8265
8266 #include <limits.h> /* for CHAR_BIT */
8267 #define TYPE_MINIMUM(t) \
8268 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
8269 #define TYPE_MAXIMUM(t) \
8270 ((t) ((t) 0 < (t) -1 \
8271 ? (t) -1 \
8272 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
8273 struct s {
8274 int check_PTRDIFF:
8275 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
8276 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
8277 ? 1 : -1;
8278 /* Detect bug in FreeBSD 6.0 / ia64. */
8279 int check_SIG_ATOMIC:
8280 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
8281 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
8282 ? 1 : -1;
8283 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
8284 int check_WCHAR:
8285 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
8286 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
8287 ? 1 : -1;
8288 /* Detect bug in mingw. */
8289 int check_WINT:
8290 WINT_MIN == TYPE_MINIMUM (wint_t)
8291 && WINT_MAX == TYPE_MAXIMUM (wint_t)
8292 ? 1 : -1;
8293
8294 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
8295 int check_UINT8_C:
8296 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
8297 int check_UINT16_C:
8298 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
8299
8300 /* Detect bugs in OpenBSD 3.9 stdint.h. */
8301 #ifdef UINT8_MAX
8302 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
8303 #endif
8304 #ifdef UINT16_MAX
8305 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
8306 #endif
8307 #ifdef UINT32_MAX
8308 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
8309 #endif
8310 #ifdef UINT64_MAX
8311 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
8312 #endif
8313 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
8314 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
8315 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
8316 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
8317 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
8318 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
8319 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
8320 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
8321 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
8322 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
8323 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
8324 };
8325
8326 int
8327 main ()
8328 {
8329
8330 ;
8331 return 0;
8332 }
8333 _ACEOF
8334 if ac_fn_c_try_compile "$LINENO"; then :
8335 if test "$cross_compiling" = yes; then :
8336 gl_cv_header_working_stdint_h=yes
8337
8338 else
8339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8340 /* end confdefs.h. */
8341
8342
8343 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8344 #include <stdint.h>
8345
8346
8347 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8348 included before <wchar.h>. */
8349 #include <stddef.h>
8350 #include <signal.h>
8351 #if HAVE_WCHAR_H
8352 # include <stdio.h>
8353 # include <time.h>
8354 # include <wchar.h>
8355 #endif
8356
8357
8358 #include <stdio.h>
8359 #include <string.h>
8360 #define MVAL(macro) MVAL1(macro)
8361 #define MVAL1(expression) #expression
8362 static const char *macro_values[] =
8363 {
8364 #ifdef INT8_MAX
8365 MVAL (INT8_MAX),
8366 #endif
8367 #ifdef INT16_MAX
8368 MVAL (INT16_MAX),
8369 #endif
8370 #ifdef INT32_MAX
8371 MVAL (INT32_MAX),
8372 #endif
8373 #ifdef INT64_MAX
8374 MVAL (INT64_MAX),
8375 #endif
8376 #ifdef UINT8_MAX
8377 MVAL (UINT8_MAX),
8378 #endif
8379 #ifdef UINT16_MAX
8380 MVAL (UINT16_MAX),
8381 #endif
8382 #ifdef UINT32_MAX
8383 MVAL (UINT32_MAX),
8384 #endif
8385 #ifdef UINT64_MAX
8386 MVAL (UINT64_MAX),
8387 #endif
8388 NULL
8389 };
8390
8391 int
8392 main ()
8393 {
8394
8395 const char **mv;
8396 for (mv = macro_values; *mv != NULL; mv++)
8397 {
8398 const char *value = *mv;
8399 /* Test whether it looks like a cast expression. */
8400 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
8401 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
8402 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
8403 || strncmp (value, "((int)"/*)*/, 6) == 0
8404 || strncmp (value, "((signed short)"/*)*/, 15) == 0
8405 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
8406 return mv - macro_values + 1;
8407 }
8408 return 0;
8409
8410 ;
8411 return 0;
8412 }
8413 _ACEOF
8414 if ac_fn_c_try_run "$LINENO"; then :
8415 gl_cv_header_working_stdint_h=yes
8416 fi
8417 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8418 conftest.$ac_objext conftest.beam conftest.$ac_ext
8419 fi
8420
8421
8422 fi
8423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8424
8425 fi
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
8427 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
8428 fi
8429 if test "$gl_cv_header_working_stdint_h" = yes; then
8430 STDINT_H=
8431 else
8432 for ac_header in sys/inttypes.h sys/bitypes.h
8433 do :
8434 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8435 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8436 eval as_val=\$$as_ac_Header
8437 if test "x$as_val" = x""yes; then :
8438 cat >>confdefs.h <<_ACEOF
8439 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8440 _ACEOF
8441
8442 fi
8443
8444 done
8445
8446 if test $ac_cv_header_sys_inttypes_h = yes; then
8447 HAVE_SYS_INTTYPES_H=1
8448 else
8449 HAVE_SYS_INTTYPES_H=0
8450 fi
8451
8452 if test $ac_cv_header_sys_bitypes_h = yes; then
8453 HAVE_SYS_BITYPES_H=1
8454 else
8455 HAVE_SYS_BITYPES_H=0
8456 fi
8457
8458
8459
8460
8461 if test $APPLE_UNIVERSAL_BUILD = 0; then
8462
8463
8464 for gltype in ptrdiff_t size_t ; do
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8466 $as_echo_n "checking for bit size of $gltype... " >&6; }
8467 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8468 $as_echo_n "(cached) " >&6
8469 else
8470 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8471 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8472 included before <wchar.h>. */
8473 #include <stddef.h>
8474 #include <signal.h>
8475 #if HAVE_WCHAR_H
8476 # include <stdio.h>
8477 # include <time.h>
8478 # include <wchar.h>
8479 #endif
8480
8481 #include <limits.h>"; then :
8482
8483 else
8484 result=unknown
8485 fi
8486
8487 eval gl_cv_bitsizeof_${gltype}=\$result
8488
8489 fi
8490 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8492 $as_echo "$ac_res" >&6; }
8493 eval result=\$gl_cv_bitsizeof_${gltype}
8494 if test $result = unknown; then
8495 result=0
8496 fi
8497 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8498 cat >>confdefs.h <<_ACEOF
8499 #define BITSIZEOF_${GLTYPE} $result
8500 _ACEOF
8501
8502 eval BITSIZEOF_${GLTYPE}=\$result
8503 done
8504
8505
8506 fi
8507
8508
8509 for gltype in sig_atomic_t wchar_t wint_t ; do
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8511 $as_echo_n "checking for bit size of $gltype... " >&6; }
8512 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8513 $as_echo_n "(cached) " >&6
8514 else
8515 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8516 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8517 included before <wchar.h>. */
8518 #include <stddef.h>
8519 #include <signal.h>
8520 #if HAVE_WCHAR_H
8521 # include <stdio.h>
8522 # include <time.h>
8523 # include <wchar.h>
8524 #endif
8525
8526 #include <limits.h>"; then :
8527
8528 else
8529 result=unknown
8530 fi
8531
8532 eval gl_cv_bitsizeof_${gltype}=\$result
8533
8534 fi
8535 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8537 $as_echo "$ac_res" >&6; }
8538 eval result=\$gl_cv_bitsizeof_${gltype}
8539 if test $result = unknown; then
8540 result=0
8541 fi
8542 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8543 cat >>confdefs.h <<_ACEOF
8544 #define BITSIZEOF_${GLTYPE} $result
8545 _ACEOF
8546
8547 eval BITSIZEOF_${GLTYPE}=\$result
8548 done
8549
8550
8551
8552
8553 for gltype in sig_atomic_t wchar_t wint_t ; do
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
8555 $as_echo_n "checking whether $gltype is signed... " >&6; }
8556 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
8557 $as_echo_n "(cached) " >&6
8558 else
8559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8560 /* end confdefs.h. */
8561
8562 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8563 included before <wchar.h>. */
8564 #include <stddef.h>
8565 #include <signal.h>
8566 #if HAVE_WCHAR_H
8567 # include <stdio.h>
8568 # include <time.h>
8569 # include <wchar.h>
8570 #endif
8571
8572 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
8573 int
8574 main ()
8575 {
8576
8577 ;
8578 return 0;
8579 }
8580 _ACEOF
8581 if ac_fn_c_try_compile "$LINENO"; then :
8582 result=yes
8583 else
8584 result=no
8585 fi
8586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8587 eval gl_cv_type_${gltype}_signed=\$result
8588
8589 fi
8590 eval ac_res=\$gl_cv_type_${gltype}_signed
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8592 $as_echo "$ac_res" >&6; }
8593 eval result=\$gl_cv_type_${gltype}_signed
8594 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8595 if test "$result" = yes; then
8596 cat >>confdefs.h <<_ACEOF
8597 #define HAVE_SIGNED_${GLTYPE} 1
8598 _ACEOF
8599
8600 eval HAVE_SIGNED_${GLTYPE}=1
8601 else
8602 eval HAVE_SIGNED_${GLTYPE}=0
8603 fi
8604 done
8605
8606
8607 gl_cv_type_ptrdiff_t_signed=yes
8608 gl_cv_type_size_t_signed=no
8609 if test $APPLE_UNIVERSAL_BUILD = 0; then
8610
8611
8612 for gltype in ptrdiff_t size_t ; do
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8614 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8615 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8616 $as_echo_n "(cached) " >&6
8617 else
8618 eval gl_cv_type_${gltype}_suffix=no
8619 eval result=\$gl_cv_type_${gltype}_signed
8620 if test "$result" = yes; then
8621 glsufu=
8622 else
8623 glsufu=u
8624 fi
8625 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8626 case $glsuf in
8627 '') gltype1='int';;
8628 l) gltype1='long int';;
8629 ll) gltype1='long long int';;
8630 i64) gltype1='__int64';;
8631 u) gltype1='unsigned int';;
8632 ul) gltype1='unsigned long int';;
8633 ull) gltype1='unsigned long long int';;
8634 ui64)gltype1='unsigned __int64';;
8635 esac
8636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637 /* end confdefs.h. */
8638
8639 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8640 included before <wchar.h>. */
8641 #include <stddef.h>
8642 #include <signal.h>
8643 #if HAVE_WCHAR_H
8644 # include <stdio.h>
8645 # include <time.h>
8646 # include <wchar.h>
8647 #endif
8648
8649 extern $gltype foo;
8650 extern $gltype1 foo;
8651 int
8652 main ()
8653 {
8654
8655 ;
8656 return 0;
8657 }
8658 _ACEOF
8659 if ac_fn_c_try_compile "$LINENO"; then :
8660 eval gl_cv_type_${gltype}_suffix=\$glsuf
8661 fi
8662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8663 eval result=\$gl_cv_type_${gltype}_suffix
8664 test "$result" != no && break
8665 done
8666 fi
8667 eval ac_res=\$gl_cv_type_${gltype}_suffix
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8669 $as_echo "$ac_res" >&6; }
8670 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8671 eval result=\$gl_cv_type_${gltype}_suffix
8672 test "$result" = no && result=
8673 eval ${GLTYPE}_SUFFIX=\$result
8674 cat >>confdefs.h <<_ACEOF
8675 #define ${GLTYPE}_SUFFIX $result
8676 _ACEOF
8677
8678 done
8679
8680
8681 fi
8682
8683
8684 for gltype in sig_atomic_t wchar_t wint_t ; do
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8686 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8687 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8688 $as_echo_n "(cached) " >&6
8689 else
8690 eval gl_cv_type_${gltype}_suffix=no
8691 eval result=\$gl_cv_type_${gltype}_signed
8692 if test "$result" = yes; then
8693 glsufu=
8694 else
8695 glsufu=u
8696 fi
8697 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8698 case $glsuf in
8699 '') gltype1='int';;
8700 l) gltype1='long int';;
8701 ll) gltype1='long long int';;
8702 i64) gltype1='__int64';;
8703 u) gltype1='unsigned int';;
8704 ul) gltype1='unsigned long int';;
8705 ull) gltype1='unsigned long long int';;
8706 ui64)gltype1='unsigned __int64';;
8707 esac
8708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8709 /* end confdefs.h. */
8710
8711 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8712 included before <wchar.h>. */
8713 #include <stddef.h>
8714 #include <signal.h>
8715 #if HAVE_WCHAR_H
8716 # include <stdio.h>
8717 # include <time.h>
8718 # include <wchar.h>
8719 #endif
8720
8721 extern $gltype foo;
8722 extern $gltype1 foo;
8723 int
8724 main ()
8725 {
8726
8727 ;
8728 return 0;
8729 }
8730 _ACEOF
8731 if ac_fn_c_try_compile "$LINENO"; then :
8732 eval gl_cv_type_${gltype}_suffix=\$glsuf
8733 fi
8734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8735 eval result=\$gl_cv_type_${gltype}_suffix
8736 test "$result" != no && break
8737 done
8738 fi
8739 eval ac_res=\$gl_cv_type_${gltype}_suffix
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8741 $as_echo "$ac_res" >&6; }
8742 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8743 eval result=\$gl_cv_type_${gltype}_suffix
8744 test "$result" = no && result=
8745 eval ${GLTYPE}_SUFFIX=\$result
8746 cat >>confdefs.h <<_ACEOF
8747 #define ${GLTYPE}_SUFFIX $result
8748 _ACEOF
8749
8750 done
8751
8752
8753
8754 if test $BITSIZEOF_WINT_T -lt 32; then
8755 BITSIZEOF_WINT_T=32
8756 fi
8757
8758 STDINT_H=stdint.h
8759 fi
8760
8761 if test -n "$STDINT_H"; then
8762 GL_GENERATE_STDINT_H_TRUE=
8763 GL_GENERATE_STDINT_H_FALSE='#'
8764 else
8765 GL_GENERATE_STDINT_H_TRUE='#'
8766 GL_GENERATE_STDINT_H_FALSE=
8767 fi
8768
8769
8770
8771
8772
8773 GNULIB_IMAXABS=0;
8774 GNULIB_IMAXDIV=0;
8775 GNULIB_STRTOIMAX=0;
8776 GNULIB_STRTOUMAX=0;
8777 HAVE_DECL_IMAXABS=1;
8778 HAVE_DECL_IMAXDIV=1;
8779 HAVE_DECL_STRTOIMAX=1;
8780 HAVE_DECL_STRTOUMAX=1;
8781 REPLACE_STRTOIMAX=0;
8782 REPLACE_STRTOUMAX=0;
8783 INT32_MAX_LT_INTMAX_MAX=1;
8784 INT64_MAX_EQ_LONG_MAX='defined _LP64';
8785 PRI_MACROS_BROKEN=0;
8786 PRIPTR_PREFIX=__PRIPTR_PREFIX;
8787 UINT32_MAX_LT_UINTMAX_MAX=1;
8788 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804 if test $gl_cv_have_include_next = yes; then
8805 gl_cv_next_inttypes_h='<'inttypes.h'>'
8806 else
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
8808 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
8809 if test "${gl_cv_next_inttypes_h+set}" = set; then :
8810 $as_echo_n "(cached) " >&6
8811 else
8812
8813 if test $ac_cv_header_inttypes_h = yes; then
8814
8815
8816
8817
8818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819 /* end confdefs.h. */
8820 #include <inttypes.h>
8821 _ACEOF
8822 case "$host_os" in
8823 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8824 *) gl_absname_cpp="$ac_cpp" ;;
8825 esac
8826
8827 case "$host_os" in
8828 mingw*)
8829 gl_dirsep_regex='[/\\]'
8830 ;;
8831 *)
8832 gl_dirsep_regex='\/'
8833 ;;
8834 esac
8835 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8836 gl_header_literal_regex=`echo 'inttypes.h' \
8837 | sed -e "$gl_make_literal_regex_sed"`
8838 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8839 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8840 s|^/[^/]|//&|
8841 p
8842 q
8843 }'
8844
8845 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8846 sed -n "$gl_absolute_header_sed"`
8847
8848 gl_header=$gl_cv_absolute_inttypes_h
8849 gl_cv_next_inttypes_h='"'$gl_header'"'
8850 else
8851 gl_cv_next_inttypes_h='<'inttypes.h'>'
8852 fi
8853
8854
8855 fi
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
8857 $as_echo "$gl_cv_next_inttypes_h" >&6; }
8858 fi
8859 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
8860
8861 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8862 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8863 gl_next_as_first_directive='<'inttypes.h'>'
8864 else
8865 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8866 gl_next_as_first_directive=$gl_cv_next_inttypes_h
8867 fi
8868 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
8869
8870
8871
8872
8873
8874
8875
8876
8877 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
8878 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8880 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8881 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8882 $as_echo_n "(cached) " >&6
8883 else
8884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8885 /* end confdefs.h. */
8886 #include <inttypes.h>
8887
8888 int
8889 main ()
8890 {
8891 #undef $gl_func
8892 (void) $gl_func;
8893 ;
8894 return 0;
8895 }
8896 _ACEOF
8897 if ac_fn_c_try_compile "$LINENO"; then :
8898 eval "$as_gl_Symbol=yes"
8899 else
8900 eval "$as_gl_Symbol=no"
8901 fi
8902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8903 fi
8904 eval ac_res=\$$as_gl_Symbol
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8906 $as_echo "$ac_res" >&6; }
8907 eval as_val=\$$as_gl_Symbol
8908 if test "x$as_val" = x""yes; then :
8909 cat >>confdefs.h <<_ACEOF
8910 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8911 _ACEOF
8912
8913 eval ac_cv_have_decl_$gl_func=yes
8914 fi
8915 done
8916
8917
8918
8919 for ac_header in inttypes.h
8920 do :
8921 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
8922 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
8923 cat >>confdefs.h <<_ACEOF
8924 #define HAVE_INTTYPES_H 1
8925 _ACEOF
8926
8927 fi
8928
8929 done
8930
8931 if test $ac_cv_header_inttypes_h = yes; then
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
8933 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
8934 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
8935 $as_echo_n "(cached) " >&6
8936 else
8937
8938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8939 /* end confdefs.h. */
8940
8941 #include <inttypes.h>
8942 #ifdef PRId32
8943 char *p = PRId32;
8944 #endif
8945
8946 int
8947 main ()
8948 {
8949
8950 ;
8951 return 0;
8952 }
8953 _ACEOF
8954 if ac_fn_c_try_compile "$LINENO"; then :
8955 gt_cv_inttypes_pri_broken=no
8956 else
8957 gt_cv_inttypes_pri_broken=yes
8958 fi
8959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8960
8961 fi
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
8963 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
8964 fi
8965 if test "$gt_cv_inttypes_pri_broken" = yes; then
8966
8967 cat >>confdefs.h <<_ACEOF
8968 #define PRI_MACROS_BROKEN 1
8969 _ACEOF
8970
8971 PRI_MACROS_BROKEN=1
8972 else
8973 PRI_MACROS_BROKEN=0
8974 fi
8975
8976
8977
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
8979 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
8980 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
8981 $as_echo_n "(cached) " >&6
8982 else
8983
8984 if test "$cross_compiling" = yes; then :
8985
8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987 /* end confdefs.h. */
8988
8989 #if defined arm || defined __arm || defined __arm__
8990 mixed_endianness
8991 #endif
8992
8993 _ACEOF
8994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8995 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
8996 gl_cv_cc_double_expbit0="unknown"
8997 else
8998
8999 :
9000 if test "${ac_cv_c_bigendian+set}" = set; then :
9001 $as_echo_n "(cached) " >&6
9002 else
9003 ac_cv_c_bigendian=unknown
9004 # See if we're dealing with a universal compiler.
9005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006 /* end confdefs.h. */
9007 #ifndef __APPLE_CC__
9008 not a universal capable compiler
9009 #endif
9010 typedef int dummy;
9011
9012 _ACEOF
9013 if ac_fn_c_try_compile "$LINENO"; then :
9014
9015 # Check for potential -arch flags. It is not universal unless
9016 # there are at least two -arch flags with different values.
9017 ac_arch=
9018 ac_prev=
9019 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9020 if test -n "$ac_prev"; then
9021 case $ac_word in
9022 i?86 | x86_64 | ppc | ppc64)
9023 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9024 ac_arch=$ac_word
9025 else
9026 ac_cv_c_bigendian=universal
9027 break
9028 fi
9029 ;;
9030 esac
9031 ac_prev=
9032 elif test "x$ac_word" = "x-arch"; then
9033 ac_prev=arch
9034 fi
9035 done
9036 fi
9037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9038 if test $ac_cv_c_bigendian = unknown; then
9039 # See if sys/param.h defines the BYTE_ORDER macro.
9040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9041 /* end confdefs.h. */
9042 #include <sys/types.h>
9043 #include <sys/param.h>
9044
9045 int
9046 main ()
9047 {
9048 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9049 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9050 && LITTLE_ENDIAN)
9051 bogus endian macros
9052 #endif
9053
9054 ;
9055 return 0;
9056 }
9057 _ACEOF
9058 if ac_fn_c_try_compile "$LINENO"; then :
9059 # It does; now see whether it defined to BIG_ENDIAN or not.
9060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061 /* end confdefs.h. */
9062 #include <sys/types.h>
9063 #include <sys/param.h>
9064
9065 int
9066 main ()
9067 {
9068 #if BYTE_ORDER != BIG_ENDIAN
9069 not big endian
9070 #endif
9071
9072 ;
9073 return 0;
9074 }
9075 _ACEOF
9076 if ac_fn_c_try_compile "$LINENO"; then :
9077 ac_cv_c_bigendian=yes
9078 else
9079 ac_cv_c_bigendian=no
9080 fi
9081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9082 fi
9083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9084 fi
9085 if test $ac_cv_c_bigendian = unknown; then
9086 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088 /* end confdefs.h. */
9089 #include <limits.h>
9090
9091 int
9092 main ()
9093 {
9094 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9095 bogus endian macros
9096 #endif
9097
9098 ;
9099 return 0;
9100 }
9101 _ACEOF
9102 if ac_fn_c_try_compile "$LINENO"; then :
9103 # It does; now see whether it defined to _BIG_ENDIAN or not.
9104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9105 /* end confdefs.h. */
9106 #include <limits.h>
9107
9108 int
9109 main ()
9110 {
9111 #ifndef _BIG_ENDIAN
9112 not big endian
9113 #endif
9114
9115 ;
9116 return 0;
9117 }
9118 _ACEOF
9119 if ac_fn_c_try_compile "$LINENO"; then :
9120 ac_cv_c_bigendian=yes
9121 else
9122 ac_cv_c_bigendian=no
9123 fi
9124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9125 fi
9126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9127 fi
9128 if test $ac_cv_c_bigendian = unknown; then
9129 # Compile a test program.
9130 if test "$cross_compiling" = yes; then :
9131 # Try to guess by grepping values from an object file.
9132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9133 /* end confdefs.h. */
9134 short int ascii_mm[] =
9135 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9136 short int ascii_ii[] =
9137 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9138 int use_ascii (int i) {
9139 return ascii_mm[i] + ascii_ii[i];
9140 }
9141 short int ebcdic_ii[] =
9142 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9143 short int ebcdic_mm[] =
9144 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9145 int use_ebcdic (int i) {
9146 return ebcdic_mm[i] + ebcdic_ii[i];
9147 }
9148 extern int foo;
9149
9150 int
9151 main ()
9152 {
9153 return use_ascii (foo) == use_ebcdic (foo);
9154 ;
9155 return 0;
9156 }
9157 _ACEOF
9158 if ac_fn_c_try_compile "$LINENO"; then :
9159 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9160 ac_cv_c_bigendian=yes
9161 fi
9162 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9163 if test "$ac_cv_c_bigendian" = unknown; then
9164 ac_cv_c_bigendian=no
9165 else
9166 # finding both strings is unlikely to happen, but who knows?
9167 ac_cv_c_bigendian=unknown
9168 fi
9169 fi
9170 fi
9171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9172 else
9173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9174 /* end confdefs.h. */
9175 $ac_includes_default
9176 int
9177 main ()
9178 {
9179
9180 /* Are we little or big endian? From Harbison&Steele. */
9181 union
9182 {
9183 long int l;
9184 char c[sizeof (long int)];
9185 } u;
9186 u.l = 1;
9187 return u.c[sizeof (long int) - 1] == 1;
9188
9189 ;
9190 return 0;
9191 }
9192 _ACEOF
9193 if ac_fn_c_try_run "$LINENO"; then :
9194 ac_cv_c_bigendian=no
9195 else
9196 ac_cv_c_bigendian=yes
9197 fi
9198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9199 conftest.$ac_objext conftest.beam conftest.$ac_ext
9200 fi
9201
9202 fi
9203 fi
9204 :
9205 case $ac_cv_c_bigendian in #(
9206 yes)
9207 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
9208 no)
9209 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
9210 universal)
9211
9212 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9213
9214 ;; #(
9215 *)
9216 gl_cv_cc_double_expbit0="unknown" ;;
9217 esac
9218
9219
9220 fi
9221 rm -f conftest*
9222
9223
9224 else
9225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226 /* end confdefs.h. */
9227
9228 #include <float.h>
9229 #include <stddef.h>
9230 #include <stdio.h>
9231 #include <string.h>
9232 #define NWORDS \
9233 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
9234 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
9235 static unsigned int ored_words[NWORDS];
9236 static unsigned int anded_words[NWORDS];
9237 static void add_to_ored_words (double x)
9238 {
9239 memory_double m;
9240 size_t i;
9241 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
9242 memset (&m, 0, sizeof (memory_double));
9243 m.value = x;
9244 for (i = 0; i < NWORDS; i++)
9245 {
9246 ored_words[i] |= m.word[i];
9247 anded_words[i] &= m.word[i];
9248 }
9249 }
9250 int main ()
9251 {
9252 size_t j;
9253 FILE *fp = fopen ("conftest.out", "w");
9254 if (fp == NULL)
9255 return 1;
9256 for (j = 0; j < NWORDS; j++)
9257 anded_words[j] = ~ (unsigned int) 0;
9258 add_to_ored_words (0.25);
9259 add_to_ored_words (0.5);
9260 add_to_ored_words (1.0);
9261 add_to_ored_words (2.0);
9262 add_to_ored_words (4.0);
9263 /* Remove bits that are common (e.g. if representation of the first mantissa
9264 bit is explicit). */
9265 for (j = 0; j < NWORDS; j++)
9266 ored_words[j] &= ~anded_words[j];
9267 /* Now find the nonzero word. */
9268 for (j = 0; j < NWORDS; j++)
9269 if (ored_words[j] != 0)
9270 break;
9271 if (j < NWORDS)
9272 {
9273 size_t i;
9274 for (i = j + 1; i < NWORDS; i++)
9275 if (ored_words[i] != 0)
9276 {
9277 fprintf (fp, "unknown");
9278 return (fclose (fp) != 0);
9279 }
9280 for (i = 0; ; i++)
9281 if ((ored_words[j] >> i) & 1)
9282 {
9283 fprintf (fp, "word %d bit %d", (int) j, (int) i);
9284 return (fclose (fp) != 0);
9285 }
9286 }
9287 fprintf (fp, "unknown");
9288 return (fclose (fp) != 0);
9289 }
9290
9291 _ACEOF
9292 if ac_fn_c_try_run "$LINENO"; then :
9293 gl_cv_cc_double_expbit0=`cat conftest.out`
9294 else
9295 gl_cv_cc_double_expbit0="unknown"
9296 fi
9297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9298 conftest.$ac_objext conftest.beam conftest.$ac_ext
9299 fi
9300
9301 rm -f conftest.out
9302
9303 fi
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
9305 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
9306 case "$gl_cv_cc_double_expbit0" in
9307 word*bit*)
9308 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
9309 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
9310
9311 cat >>confdefs.h <<_ACEOF
9312 #define DBL_EXPBIT0_WORD $word
9313 _ACEOF
9314
9315
9316 cat >>confdefs.h <<_ACEOF
9317 #define DBL_EXPBIT0_BIT $bit
9318 _ACEOF
9319
9320 ;;
9321 esac
9322
9323
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9325 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9326 if test "${ac_cv_c_bigendian+set}" = set; then :
9327 $as_echo_n "(cached) " >&6
9328 else
9329 ac_cv_c_bigendian=unknown
9330 # See if we're dealing with a universal compiler.
9331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9332 /* end confdefs.h. */
9333 #ifndef __APPLE_CC__
9334 not a universal capable compiler
9335 #endif
9336 typedef int dummy;
9337
9338 _ACEOF
9339 if ac_fn_c_try_compile "$LINENO"; then :
9340
9341 # Check for potential -arch flags. It is not universal unless
9342 # there are at least two -arch flags with different values.
9343 ac_arch=
9344 ac_prev=
9345 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9346 if test -n "$ac_prev"; then
9347 case $ac_word in
9348 i?86 | x86_64 | ppc | ppc64)
9349 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9350 ac_arch=$ac_word
9351 else
9352 ac_cv_c_bigendian=universal
9353 break
9354 fi
9355 ;;
9356 esac
9357 ac_prev=
9358 elif test "x$ac_word" = "x-arch"; then
9359 ac_prev=arch
9360 fi
9361 done
9362 fi
9363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9364 if test $ac_cv_c_bigendian = unknown; then
9365 # See if sys/param.h defines the BYTE_ORDER macro.
9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9368 #include <sys/types.h>
9369 #include <sys/param.h>
9370
9371 int
9372 main ()
9373 {
9374 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9375 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9376 && LITTLE_ENDIAN)
9377 bogus endian macros
9378 #endif
9379
9380 ;
9381 return 0;
9382 }
9383 _ACEOF
9384 if ac_fn_c_try_compile "$LINENO"; then :
9385 # It does; now see whether it defined to BIG_ENDIAN or not.
9386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9387 /* end confdefs.h. */
9388 #include <sys/types.h>
9389 #include <sys/param.h>
9390
9391 int
9392 main ()
9393 {
9394 #if BYTE_ORDER != BIG_ENDIAN
9395 not big endian
9396 #endif
9397
9398 ;
9399 return 0;
9400 }
9401 _ACEOF
9402 if ac_fn_c_try_compile "$LINENO"; then :
9403 ac_cv_c_bigendian=yes
9404 else
9405 ac_cv_c_bigendian=no
9406 fi
9407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9408 fi
9409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9410 fi
9411 if test $ac_cv_c_bigendian = unknown; then
9412 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9414 /* end confdefs.h. */
9415 #include <limits.h>
9416
9417 int
9418 main ()
9419 {
9420 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9421 bogus endian macros
9422 #endif
9423
9424 ;
9425 return 0;
9426 }
9427 _ACEOF
9428 if ac_fn_c_try_compile "$LINENO"; then :
9429 # It does; now see whether it defined to _BIG_ENDIAN or not.
9430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9431 /* end confdefs.h. */
9432 #include <limits.h>
9433
9434 int
9435 main ()
9436 {
9437 #ifndef _BIG_ENDIAN
9438 not big endian
9439 #endif
9440
9441 ;
9442 return 0;
9443 }
9444 _ACEOF
9445 if ac_fn_c_try_compile "$LINENO"; then :
9446 ac_cv_c_bigendian=yes
9447 else
9448 ac_cv_c_bigendian=no
9449 fi
9450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9451 fi
9452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9453 fi
9454 if test $ac_cv_c_bigendian = unknown; then
9455 # Compile a test program.
9456 if test "$cross_compiling" = yes; then :
9457 # Try to guess by grepping values from an object file.
9458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9459 /* end confdefs.h. */
9460 short int ascii_mm[] =
9461 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9462 short int ascii_ii[] =
9463 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9464 int use_ascii (int i) {
9465 return ascii_mm[i] + ascii_ii[i];
9466 }
9467 short int ebcdic_ii[] =
9468 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9469 short int ebcdic_mm[] =
9470 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9471 int use_ebcdic (int i) {
9472 return ebcdic_mm[i] + ebcdic_ii[i];
9473 }
9474 extern int foo;
9475
9476 int
9477 main ()
9478 {
9479 return use_ascii (foo) == use_ebcdic (foo);
9480 ;
9481 return 0;
9482 }
9483 _ACEOF
9484 if ac_fn_c_try_compile "$LINENO"; then :
9485 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9486 ac_cv_c_bigendian=yes
9487 fi
9488 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9489 if test "$ac_cv_c_bigendian" = unknown; then
9490 ac_cv_c_bigendian=no
9491 else
9492 # finding both strings is unlikely to happen, but who knows?
9493 ac_cv_c_bigendian=unknown
9494 fi
9495 fi
9496 fi
9497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9498 else
9499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9500 /* end confdefs.h. */
9501 $ac_includes_default
9502 int
9503 main ()
9504 {
9505
9506 /* Are we little or big endian? From Harbison&Steele. */
9507 union
9508 {
9509 long int l;
9510 char c[sizeof (long int)];
9511 } u;
9512 u.l = 1;
9513 return u.c[sizeof (long int) - 1] == 1;
9514
9515 ;
9516 return 0;
9517 }
9518 _ACEOF
9519 if ac_fn_c_try_run "$LINENO"; then :
9520 ac_cv_c_bigendian=no
9521 else
9522 ac_cv_c_bigendian=yes
9523 fi
9524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9525 conftest.$ac_objext conftest.beam conftest.$ac_ext
9526 fi
9527
9528 fi
9529 fi
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9531 $as_echo "$ac_cv_c_bigendian" >&6; }
9532 case $ac_cv_c_bigendian in #(
9533 yes)
9534 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9535 ;; #(
9536 no)
9537 ;; #(
9538 universal)
9539
9540 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9541
9542 ;; #(
9543 *)
9544 as_fn_error "unknown endianness
9545 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9546 esac
9547
9548
9549
9550
9551 case "$host_os" in
9552 mingw*)
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
9554 $as_echo_n "checking for 64-bit off_t... " >&6; }
9555 if test "${gl_cv_type_off_t_64+set}" = set; then :
9556 $as_echo_n "(cached) " >&6
9557 else
9558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9559 /* end confdefs.h. */
9560 #include <sys/types.h>
9561 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
9562
9563 int
9564 main ()
9565 {
9566
9567 ;
9568 return 0;
9569 }
9570 _ACEOF
9571 if ac_fn_c_try_compile "$LINENO"; then :
9572 gl_cv_type_off_t_64=yes
9573 else
9574 gl_cv_type_off_t_64=no
9575 fi
9576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9577
9578 fi
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
9580 $as_echo "$gl_cv_type_off_t_64" >&6; }
9581 if test $gl_cv_type_off_t_64 = no; then
9582 WINDOWS_64_BIT_OFF_T=1
9583 else
9584 WINDOWS_64_BIT_OFF_T=0
9585 fi
9586 WINDOWS_64_BIT_ST_SIZE=1
9587 ;;
9588 *)
9589 WINDOWS_64_BIT_OFF_T=0
9590 WINDOWS_64_BIT_ST_SIZE=0
9591 ;;
9592 esac
9593
9594
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9596 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9597 if test "${am_cv_langinfo_codeset+set}" = set; then :
9598 $as_echo_n "(cached) " >&6
9599 else
9600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9601 /* end confdefs.h. */
9602 #include <langinfo.h>
9603 int
9604 main ()
9605 {
9606 char* cs = nl_langinfo(CODESET); return !cs;
9607 ;
9608 return 0;
9609 }
9610 _ACEOF
9611 if ac_fn_c_try_link "$LINENO"; then :
9612 am_cv_langinfo_codeset=yes
9613 else
9614 am_cv_langinfo_codeset=no
9615 fi
9616 rm -f core conftest.err conftest.$ac_objext \
9617 conftest$ac_exeext conftest.$ac_ext
9618
9619 fi
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9621 $as_echo "$am_cv_langinfo_codeset" >&6; }
9622 if test $am_cv_langinfo_codeset = yes; then
9623
9624 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9625
9626 fi
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
9638 $as_echo_n "checking for working fcntl.h... " >&6; }
9639 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
9640 $as_echo_n "(cached) " >&6
9641 else
9642 if test "$cross_compiling" = yes; then :
9643 gl_cv_header_working_fcntl_h=cross-compiling
9644 else
9645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9646 /* end confdefs.h. */
9647 #include <sys/types.h>
9648 #include <sys/stat.h>
9649 #if HAVE_UNISTD_H
9650 # include <unistd.h>
9651 #else /* on Windows with MSVC */
9652 # include <io.h>
9653 # include <stdlib.h>
9654 # defined sleep(n) _sleep ((n) * 1000)
9655 #endif
9656 #include <fcntl.h>
9657 #ifndef O_NOATIME
9658 #define O_NOATIME 0
9659 #endif
9660 #ifndef O_NOFOLLOW
9661 #define O_NOFOLLOW 0
9662 #endif
9663 static int const constants[] =
9664 {
9665 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
9666 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
9667 };
9668
9669 int
9670 main ()
9671 {
9672
9673 int result = !constants;
9674 #if HAVE_SYMLINK
9675 {
9676 static char const sym[] = "conftest.sym";
9677 if (symlink ("/dev/null", sym) != 0)
9678 result |= 2;
9679 else
9680 {
9681 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
9682 if (fd >= 0)
9683 {
9684 close (fd);
9685 result |= 4;
9686 }
9687 }
9688 if (unlink (sym) != 0 || symlink (".", sym) != 0)
9689 result |= 2;
9690 else
9691 {
9692 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
9693 if (fd >= 0)
9694 {
9695 close (fd);
9696 result |= 4;
9697 }
9698 }
9699 unlink (sym);
9700 }
9701 #endif
9702 {
9703 static char const file[] = "confdefs.h";
9704 int fd = open (file, O_RDONLY | O_NOATIME);
9705 if (fd < 0)
9706 result |= 8;
9707 else
9708 {
9709 struct stat st0;
9710 if (fstat (fd, &st0) != 0)
9711 result |= 16;
9712 else
9713 {
9714 char c;
9715 sleep (1);
9716 if (read (fd, &c, 1) != 1)
9717 result |= 24;
9718 else
9719 {
9720 if (close (fd) != 0)
9721 result |= 32;
9722 else
9723 {
9724 struct stat st1;
9725 if (stat (file, &st1) != 0)
9726 result |= 40;
9727 else
9728 if (st0.st_atime != st1.st_atime)
9729 result |= 64;
9730 }
9731 }
9732 }
9733 }
9734 }
9735 return result;
9736 ;
9737 return 0;
9738 }
9739 _ACEOF
9740 if ac_fn_c_try_run "$LINENO"; then :
9741 gl_cv_header_working_fcntl_h=yes
9742 else
9743 case $? in #(
9744 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
9745 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
9746 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
9747 *) gl_cv_header_working_fcntl_h='no';;
9748 esac
9749 fi
9750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9751 conftest.$ac_objext conftest.beam conftest.$ac_ext
9752 fi
9753
9754 fi
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
9756 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
9757
9758 case $gl_cv_header_working_fcntl_h in #(
9759 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
9760 *) ac_val=1;;
9761 esac
9762
9763 cat >>confdefs.h <<_ACEOF
9764 #define HAVE_WORKING_O_NOATIME $ac_val
9765 _ACEOF
9766
9767
9768 case $gl_cv_header_working_fcntl_h in #(
9769 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
9770 *) ac_val=1;;
9771 esac
9772
9773 cat >>confdefs.h <<_ACEOF
9774 #define HAVE_WORKING_O_NOFOLLOW $ac_val
9775 _ACEOF
9776
9777
9778 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
9779 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
9780 ac_have_decl=1
9781 else
9782 ac_have_decl=0
9783 fi
9784
9785 cat >>confdefs.h <<_ACEOF
9786 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
9787 _ACEOF
9788
9789
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9791 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9792 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
9793 $as_echo_n "(cached) " >&6
9794 else
9795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9796 /* end confdefs.h. */
9797
9798 #include <features.h>
9799 #ifdef __GNU_LIBRARY__
9800 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9801 Lucky GNU user
9802 #endif
9803 #endif
9804 #ifdef __UCLIBC__
9805 Lucky user
9806 #endif
9807
9808 _ACEOF
9809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9810 $EGREP "Lucky" >/dev/null 2>&1; then :
9811 ac_cv_gnu_library_2_1=yes
9812 else
9813 ac_cv_gnu_library_2_1=no
9814 fi
9815 rm -f conftest*
9816
9817
9818
9819 fi
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9821 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9822
9823 GLIBC21="$ac_cv_gnu_library_2_1"
9824
9825
9826
9827 GNULIB_FCHMODAT=0;
9828 GNULIB_FSTAT=0;
9829 GNULIB_FSTATAT=0;
9830 GNULIB_FUTIMENS=0;
9831 GNULIB_LCHMOD=0;
9832 GNULIB_LSTAT=0;
9833 GNULIB_MKDIRAT=0;
9834 GNULIB_MKFIFO=0;
9835 GNULIB_MKFIFOAT=0;
9836 GNULIB_MKNOD=0;
9837 GNULIB_MKNODAT=0;
9838 GNULIB_STAT=0;
9839 GNULIB_UTIMENSAT=0;
9840 HAVE_FCHMODAT=1;
9841 HAVE_FSTATAT=1;
9842 HAVE_FUTIMENS=1;
9843 HAVE_LCHMOD=1;
9844 HAVE_LSTAT=1;
9845 HAVE_MKDIRAT=1;
9846 HAVE_MKFIFO=1;
9847 HAVE_MKFIFOAT=1;
9848 HAVE_MKNOD=1;
9849 HAVE_MKNODAT=1;
9850 HAVE_UTIMENSAT=1;
9851 REPLACE_FSTAT=0;
9852 REPLACE_FSTATAT=0;
9853 REPLACE_FUTIMENS=0;
9854 REPLACE_LSTAT=0;
9855 REPLACE_MKDIR=0;
9856 REPLACE_MKFIFO=0;
9857 REPLACE_MKNOD=0;
9858 REPLACE_STAT=0;
9859 REPLACE_UTIMENSAT=0;
9860
9861
9862
9863
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
9865 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
9866 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
9867 $as_echo_n "(cached) " >&6
9868 else
9869 rm -f conftest.sym conftest.file
9870 echo >conftest.file
9871 if test "$cross_compiling" = yes; then :
9872 case "$host_os" in
9873 *-gnu*)
9874 # Guess yes on glibc systems.
9875 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
9876 *)
9877 # If we don't know, assume the worst.
9878 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
9879 esac
9880
9881 else
9882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9883 /* end confdefs.h. */
9884 $ac_includes_default
9885 int
9886 main ()
9887 {
9888 struct stat sbuf;
9889 if (symlink ("conftest.file", "conftest.sym") != 0)
9890 return 1;
9891 /* Linux will dereference the symlink and fail, as required by
9892 POSIX. That is better in the sense that it means we will not
9893 have to compile and use the lstat wrapper. */
9894 return lstat ("conftest.sym/", &sbuf) == 0;
9895
9896 ;
9897 return 0;
9898 }
9899 _ACEOF
9900 if ac_fn_c_try_run "$LINENO"; then :
9901 gl_cv_func_lstat_dereferences_slashed_symlink=yes
9902 else
9903 gl_cv_func_lstat_dereferences_slashed_symlink=no
9904 fi
9905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9906 conftest.$ac_objext conftest.beam conftest.$ac_ext
9907 fi
9908
9909 rm -f conftest.sym conftest.file
9910
9911 fi
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
9913 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9914 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
9915 *yes)
9916
9917 cat >>confdefs.h <<_ACEOF
9918 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9919 _ACEOF
9920
9921 ;;
9922 esac
9923
9924
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
9926 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
9927 if test "${gl_cv_func_malloc_posix+set}" = set; then :
9928 $as_echo_n "(cached) " >&6
9929 else
9930
9931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9932 /* end confdefs.h. */
9933
9934 int
9935 main ()
9936 {
9937 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
9938 choke me
9939 #endif
9940
9941 ;
9942 return 0;
9943 }
9944 _ACEOF
9945 if ac_fn_c_try_compile "$LINENO"; then :
9946 gl_cv_func_malloc_posix=yes
9947 else
9948 gl_cv_func_malloc_posix=no
9949 fi
9950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9951
9952 fi
9953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
9954 $as_echo "$gl_cv_func_malloc_posix" >&6; }
9955
9956
9957
9958 for ac_header in stdlib.h
9959 do :
9960 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
9961 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
9962 cat >>confdefs.h <<_ACEOF
9963 #define HAVE_STDLIB_H 1
9964 _ACEOF
9965
9966 fi
9967
9968 done
9969
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
9971 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
9972 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
9973 $as_echo_n "(cached) " >&6
9974 else
9975 if test "$cross_compiling" = yes; then :
9976 case "$host_os" in
9977 # Guess yes on platforms where we know the result.
9978 *-gnu* | freebsd* | netbsd* | openbsd* \
9979 | hpux* | solaris* | cygwin* | mingw*)
9980 ac_cv_func_malloc_0_nonnull=yes ;;
9981 # If we don't know, assume the worst.
9982 *) ac_cv_func_malloc_0_nonnull=no ;;
9983 esac
9984
9985 else
9986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987 /* end confdefs.h. */
9988 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
9989 # include <stdlib.h>
9990 #else
9991 char *malloc ();
9992 #endif
9993
9994 int
9995 main ()
9996 {
9997 return ! malloc (0);
9998 ;
9999 return 0;
10000 }
10001
10002 _ACEOF
10003 if ac_fn_c_try_run "$LINENO"; then :
10004 ac_cv_func_malloc_0_nonnull=yes
10005 else
10006 ac_cv_func_malloc_0_nonnull=no
10007 fi
10008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10009 conftest.$ac_objext conftest.beam conftest.$ac_ext
10010 fi
10011
10012
10013 fi
10014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
10015 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
10016 if test $ac_cv_func_malloc_0_nonnull = yes; then :
10017 gl_cv_func_malloc_0_nonnull=1
10018 else
10019 gl_cv_func_malloc_0_nonnull=0
10020 fi
10021
10022
10023 cat >>confdefs.h <<_ACEOF
10024 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
10025 _ACEOF
10026
10027
10028
10029
10030
10031 GNULIB_BTOWC=0;
10032 GNULIB_WCTOB=0;
10033 GNULIB_MBSINIT=0;
10034 GNULIB_MBRTOWC=0;
10035 GNULIB_MBRLEN=0;
10036 GNULIB_MBSRTOWCS=0;
10037 GNULIB_MBSNRTOWCS=0;
10038 GNULIB_WCRTOMB=0;
10039 GNULIB_WCSRTOMBS=0;
10040 GNULIB_WCSNRTOMBS=0;
10041 GNULIB_WCWIDTH=0;
10042 GNULIB_WMEMCHR=0;
10043 GNULIB_WMEMCMP=0;
10044 GNULIB_WMEMCPY=0;
10045 GNULIB_WMEMMOVE=0;
10046 GNULIB_WMEMSET=0;
10047 GNULIB_WCSLEN=0;
10048 GNULIB_WCSNLEN=0;
10049 GNULIB_WCSCPY=0;
10050 GNULIB_WCPCPY=0;
10051 GNULIB_WCSNCPY=0;
10052 GNULIB_WCPNCPY=0;
10053 GNULIB_WCSCAT=0;
10054 GNULIB_WCSNCAT=0;
10055 GNULIB_WCSCMP=0;
10056 GNULIB_WCSNCMP=0;
10057 GNULIB_WCSCASECMP=0;
10058 GNULIB_WCSNCASECMP=0;
10059 GNULIB_WCSCOLL=0;
10060 GNULIB_WCSXFRM=0;
10061 GNULIB_WCSDUP=0;
10062 GNULIB_WCSCHR=0;
10063 GNULIB_WCSRCHR=0;
10064 GNULIB_WCSCSPN=0;
10065 GNULIB_WCSSPN=0;
10066 GNULIB_WCSPBRK=0;
10067 GNULIB_WCSSTR=0;
10068 GNULIB_WCSTOK=0;
10069 GNULIB_WCSWIDTH=0;
10070 HAVE_BTOWC=1;
10071 HAVE_MBSINIT=1;
10072 HAVE_MBRTOWC=1;
10073 HAVE_MBRLEN=1;
10074 HAVE_MBSRTOWCS=1;
10075 HAVE_MBSNRTOWCS=1;
10076 HAVE_WCRTOMB=1;
10077 HAVE_WCSRTOMBS=1;
10078 HAVE_WCSNRTOMBS=1;
10079 HAVE_WMEMCHR=1;
10080 HAVE_WMEMCMP=1;
10081 HAVE_WMEMCPY=1;
10082 HAVE_WMEMMOVE=1;
10083 HAVE_WMEMSET=1;
10084 HAVE_WCSLEN=1;
10085 HAVE_WCSNLEN=1;
10086 HAVE_WCSCPY=1;
10087 HAVE_WCPCPY=1;
10088 HAVE_WCSNCPY=1;
10089 HAVE_WCPNCPY=1;
10090 HAVE_WCSCAT=1;
10091 HAVE_WCSNCAT=1;
10092 HAVE_WCSCMP=1;
10093 HAVE_WCSNCMP=1;
10094 HAVE_WCSCASECMP=1;
10095 HAVE_WCSNCASECMP=1;
10096 HAVE_WCSCOLL=1;
10097 HAVE_WCSXFRM=1;
10098 HAVE_WCSDUP=1;
10099 HAVE_WCSCHR=1;
10100 HAVE_WCSRCHR=1;
10101 HAVE_WCSCSPN=1;
10102 HAVE_WCSSPN=1;
10103 HAVE_WCSPBRK=1;
10104 HAVE_WCSSTR=1;
10105 HAVE_WCSTOK=1;
10106 HAVE_WCSWIDTH=1;
10107 HAVE_DECL_WCTOB=1;
10108 HAVE_DECL_WCWIDTH=1;
10109 REPLACE_MBSTATE_T=0;
10110 REPLACE_BTOWC=0;
10111 REPLACE_WCTOB=0;
10112 REPLACE_MBSINIT=0;
10113 REPLACE_MBRTOWC=0;
10114 REPLACE_MBRLEN=0;
10115 REPLACE_MBSRTOWCS=0;
10116 REPLACE_MBSNRTOWCS=0;
10117 REPLACE_WCRTOMB=0;
10118 REPLACE_WCSRTOMBS=0;
10119 REPLACE_WCSNRTOMBS=0;
10120 REPLACE_WCWIDTH=0;
10121 REPLACE_WCSWIDTH=0;
10122
10123
10124
10125
10126
10127
10128
10129
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
10131 $as_echo_n "checking for a traditional japanese locale... " >&6; }
10132 if test "${gt_cv_locale_ja+set}" = set; then :
10133 $as_echo_n "(cached) " >&6
10134 else
10135
10136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10137 /* end confdefs.h. */
10138
10139 #include <locale.h>
10140 #include <time.h>
10141 #if HAVE_LANGINFO_CODESET
10142 # include <langinfo.h>
10143 #endif
10144 #include <stdlib.h>
10145 #include <string.h>
10146 struct tm t;
10147 char buf[16];
10148 int main ()
10149 {
10150 const char *p;
10151 /* Check whether the given locale name is recognized by the system. */
10152 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10153 /* On native Windows, setlocale(category, "") looks at the system settings,
10154 not at the environment variables. Also, when an encoding suffix such
10155 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10156 category of the locale to "C". */
10157 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10158 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10159 return 1;
10160 #else
10161 if (setlocale (LC_ALL, "") == NULL) return 1;
10162 #endif
10163 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10164 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10165 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10166 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10167 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10168 some unit tests fail.
10169 On MirBSD 10, when an unsupported locale is specified, setlocale()
10170 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10171 #if HAVE_LANGINFO_CODESET
10172 {
10173 const char *cs = nl_langinfo (CODESET);
10174 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10175 || strcmp (cs, "UTF-8") == 0)
10176 return 1;
10177 }
10178 #endif
10179 #ifdef __CYGWIN__
10180 /* On Cygwin, avoid locale names without encoding suffix, because the
10181 locale_charset() function relies on the encoding suffix. Note that
10182 LC_ALL is set on the command line. */
10183 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10184 #endif
10185 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
10186 on Cygwin 1.5.x. */
10187 if (MB_CUR_MAX == 1)
10188 return 1;
10189 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10190 This excludes the UTF-8 encoding (except on MirBSD). */
10191 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10192 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10193 for (p = buf; *p != '\0'; p++)
10194 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10195 return 1;
10196 return 0;
10197 }
10198
10199 _ACEOF
10200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10201 (eval $ac_link) 2>&5
10202 ac_status=$?
10203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10204 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10205 case "$host_os" in
10206 # Handle native Windows specially, because there setlocale() interprets
10207 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10208 # "fr" or "fra" as "French" or "French_France.1252",
10209 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10210 # "ja" as "Japanese" or "Japanese_Japan.932",
10211 # and similar.
10212 mingw*)
10213 # Note that on native Windows, the Japanese locale is
10214 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
10215 # cannot use it here.
10216 gt_cv_locale_ja=none
10217 ;;
10218 *)
10219 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10220 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10221 # configure script would override the LC_ALL setting. Likewise for
10222 # LC_CTYPE, which is also set at the beginning of the configure script.
10223 # Test for the AIX locale name.
10224 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10225 gt_cv_locale_ja=ja_JP
10226 else
10227 # Test for the locale name with explicit encoding suffix.
10228 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10229 gt_cv_locale_ja=ja_JP.EUC-JP
10230 else
10231 # Test for the HP-UX, OSF/1, NetBSD locale name.
10232 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10233 gt_cv_locale_ja=ja_JP.eucJP
10234 else
10235 # Test for the IRIX, FreeBSD locale name.
10236 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10237 gt_cv_locale_ja=ja_JP.EUC
10238 else
10239 # Test for the Solaris 7 locale name.
10240 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10241 gt_cv_locale_ja=ja
10242 else
10243 # Special test for NetBSD 1.6.
10244 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
10245 gt_cv_locale_ja=ja_JP.eucJP
10246 else
10247 # None found.
10248 gt_cv_locale_ja=none
10249 fi
10250 fi
10251 fi
10252 fi
10253 fi
10254 fi
10255 ;;
10256 esac
10257 fi
10258 rm -fr conftest*
10259
10260 fi
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
10262 $as_echo "$gt_cv_locale_ja" >&6; }
10263 LOCALE_JA=$gt_cv_locale_ja
10264
10265
10266
10267
10268
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
10270 $as_echo_n "checking for a transitional chinese locale... " >&6; }
10271 if test "${gt_cv_locale_zh_CN+set}" = set; then :
10272 $as_echo_n "(cached) " >&6
10273 else
10274
10275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10276 /* end confdefs.h. */
10277
10278 #include <locale.h>
10279 #include <stdlib.h>
10280 #include <time.h>
10281 #if HAVE_LANGINFO_CODESET
10282 # include <langinfo.h>
10283 #endif
10284 #include <stdlib.h>
10285 #include <string.h>
10286 struct tm t;
10287 char buf[16];
10288 int main ()
10289 {
10290 const char *p;
10291 /* Check whether the given locale name is recognized by the system. */
10292 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10293 /* On native Windows, setlocale(category, "") looks at the system settings,
10294 not at the environment variables. Also, when an encoding suffix such
10295 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10296 category of the locale to "C". */
10297 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10298 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10299 return 1;
10300 #else
10301 if (setlocale (LC_ALL, "") == NULL) return 1;
10302 #endif
10303 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10304 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10305 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10306 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10307 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10308 some unit tests fail.
10309 On MirBSD 10, when an unsupported locale is specified, setlocale()
10310 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10311 #if HAVE_LANGINFO_CODESET
10312 {
10313 const char *cs = nl_langinfo (CODESET);
10314 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10315 || strcmp (cs, "UTF-8") == 0)
10316 return 1;
10317 }
10318 #endif
10319 #ifdef __CYGWIN__
10320 /* On Cygwin, avoid locale names without encoding suffix, because the
10321 locale_charset() function relies on the encoding suffix. Note that
10322 LC_ALL is set on the command line. */
10323 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10324 #endif
10325 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10326 This excludes the UTF-8 encoding (except on MirBSD). */
10327 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10328 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10329 for (p = buf; *p != '\0'; p++)
10330 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10331 return 1;
10332 /* Check whether a typical GB18030 multibyte sequence is recognized as a
10333 single wide character. This excludes the GB2312 and GBK encodings. */
10334 if (mblen ("\203\062\332\066", 5) != 4)
10335 return 1;
10336 return 0;
10337 }
10338
10339 _ACEOF
10340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10341 (eval $ac_link) 2>&5
10342 ac_status=$?
10343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10344 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10345 case "$host_os" in
10346 # Handle native Windows specially, because there setlocale() interprets
10347 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10348 # "fr" or "fra" as "French" or "French_France.1252",
10349 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10350 # "ja" as "Japanese" or "Japanese_Japan.932",
10351 # and similar.
10352 mingw*)
10353 # Test for the hypothetical native Windows locale name.
10354 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10355 gt_cv_locale_zh_CN=Chinese_China.54936
10356 else
10357 # None found.
10358 gt_cv_locale_zh_CN=none
10359 fi
10360 ;;
10361 solaris2.8)
10362 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
10363 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
10364 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
10365 gt_cv_locale_zh_CN=none
10366 ;;
10367 *)
10368 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10369 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10370 # configure script would override the LC_ALL setting. Likewise for
10371 # LC_CTYPE, which is also set at the beginning of the configure script.
10372 # Test for the locale name without encoding suffix.
10373 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10374 gt_cv_locale_zh_CN=zh_CN
10375 else
10376 # Test for the locale name with explicit encoding suffix.
10377 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10378 gt_cv_locale_zh_CN=zh_CN.GB18030
10379 else
10380 # None found.
10381 gt_cv_locale_zh_CN=none
10382 fi
10383 fi
10384 ;;
10385 esac
10386 else
10387 # If there was a link error, due to mblen(), the system is so old that
10388 # it certainly doesn't have a chinese locale.
10389 gt_cv_locale_zh_CN=none
10390 fi
10391 rm -fr conftest*
10392
10393 fi
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
10395 $as_echo "$gt_cv_locale_zh_CN" >&6; }
10396 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
10397
10398
10399
10400
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
10402 $as_echo_n "checking for a french Unicode locale... " >&6; }
10403 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
10404 $as_echo_n "(cached) " >&6
10405 else
10406
10407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10408 /* end confdefs.h. */
10409
10410 #include <locale.h>
10411 #include <time.h>
10412 #if HAVE_LANGINFO_CODESET
10413 # include <langinfo.h>
10414 #endif
10415 #include <stdlib.h>
10416 #include <string.h>
10417 struct tm t;
10418 char buf[16];
10419 int main () {
10420 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
10421 imitates locale dependent behaviour by looking at the environment
10422 variables, and all locales use the UTF-8 encoding. */
10423 #if !(defined __BEOS__ || defined __HAIKU__)
10424 /* Check whether the given locale name is recognized by the system. */
10425 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10426 /* On native Windows, setlocale(category, "") looks at the system settings,
10427 not at the environment variables. Also, when an encoding suffix such
10428 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10429 category of the locale to "C". */
10430 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10431 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10432 return 1;
10433 # else
10434 if (setlocale (LC_ALL, "") == NULL) return 1;
10435 # endif
10436 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10437 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10438 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10439 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10440 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10441 some unit tests fail. */
10442 # if HAVE_LANGINFO_CODESET
10443 {
10444 const char *cs = nl_langinfo (CODESET);
10445 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10446 return 1;
10447 }
10448 # endif
10449 # ifdef __CYGWIN__
10450 /* On Cygwin, avoid locale names without encoding suffix, because the
10451 locale_charset() function relies on the encoding suffix. Note that
10452 LC_ALL is set on the command line. */
10453 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10454 # endif
10455 /* Check whether in the abbreviation of the second month, the second
10456 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
10457 two bytes long, with UTF-8 encoding. */
10458 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10459 if (strftime (buf, sizeof (buf), "%b", &t) < 4
10460 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
10461 return 1;
10462 #endif
10463 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10464 /* Check whether the decimal separator is a comma.
10465 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10466 are nl_langinfo(RADIXCHAR) are both ".". */
10467 if (localeconv () ->decimal_point[0] != ',') return 1;
10468 #endif
10469 return 0;
10470 }
10471
10472 _ACEOF
10473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10474 (eval $ac_link) 2>&5
10475 ac_status=$?
10476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10477 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10478 case "$host_os" in
10479 # Handle native Windows specially, because there setlocale() interprets
10480 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10481 # "fr" or "fra" as "French" or "French_France.1252",
10482 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10483 # "ja" as "Japanese" or "Japanese_Japan.932",
10484 # and similar.
10485 mingw*)
10486 # Test for the hypothetical native Windows locale name.
10487 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10488 gt_cv_locale_fr_utf8=French_France.65001
10489 else
10490 # None found.
10491 gt_cv_locale_fr_utf8=none
10492 fi
10493 ;;
10494 *)
10495 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10496 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10497 # configure script would override the LC_ALL setting. Likewise for
10498 # LC_CTYPE, which is also set at the beginning of the configure script.
10499 # Test for the usual locale name.
10500 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10501 gt_cv_locale_fr_utf8=fr_FR
10502 else
10503 # Test for the locale name with explicit encoding suffix.
10504 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10505 gt_cv_locale_fr_utf8=fr_FR.UTF-8
10506 else
10507 # Test for the Solaris 7 locale name.
10508 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10509 gt_cv_locale_fr_utf8=fr.UTF-8
10510 else
10511 # None found.
10512 gt_cv_locale_fr_utf8=none
10513 fi
10514 fi
10515 fi
10516 ;;
10517 esac
10518 fi
10519 rm -fr conftest*
10520
10521 fi
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
10523 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
10524 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
10525
10526
10527
10528
10529
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
10531 $as_echo_n "checking for a traditional french locale... " >&6; }
10532 if test "${gt_cv_locale_fr+set}" = set; then :
10533 $as_echo_n "(cached) " >&6
10534 else
10535
10536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10537 /* end confdefs.h. */
10538
10539 #include <locale.h>
10540 #include <time.h>
10541 #if HAVE_LANGINFO_CODESET
10542 # include <langinfo.h>
10543 #endif
10544 #include <stdlib.h>
10545 #include <string.h>
10546 struct tm t;
10547 char buf[16];
10548 int main () {
10549 /* Check whether the given locale name is recognized by the system. */
10550 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10551 /* On native Windows, setlocale(category, "") looks at the system settings,
10552 not at the environment variables. Also, when an encoding suffix such
10553 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10554 category of the locale to "C". */
10555 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10556 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10557 return 1;
10558 #else
10559 if (setlocale (LC_ALL, "") == NULL) return 1;
10560 #endif
10561 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10562 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10563 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10564 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10565 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10566 some unit tests fail.
10567 On MirBSD 10, when an unsupported locale is specified, setlocale()
10568 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10569 #if HAVE_LANGINFO_CODESET
10570 {
10571 const char *cs = nl_langinfo (CODESET);
10572 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10573 || strcmp (cs, "UTF-8") == 0)
10574 return 1;
10575 }
10576 #endif
10577 #ifdef __CYGWIN__
10578 /* On Cygwin, avoid locale names without encoding suffix, because the
10579 locale_charset() function relies on the encoding suffix. Note that
10580 LC_ALL is set on the command line. */
10581 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10582 #endif
10583 /* Check whether in the abbreviation of the second month, the second
10584 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
10585 one byte long. This excludes the UTF-8 encoding. */
10586 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10587 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
10588 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10589 /* Check whether the decimal separator is a comma.
10590 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10591 are nl_langinfo(RADIXCHAR) are both ".". */
10592 if (localeconv () ->decimal_point[0] != ',') return 1;
10593 #endif
10594 return 0;
10595 }
10596
10597 _ACEOF
10598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10599 (eval $ac_link) 2>&5
10600 ac_status=$?
10601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10602 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10603 case "$host_os" in
10604 # Handle native Windows specially, because there setlocale() interprets
10605 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10606 # "fr" or "fra" as "French" or "French_France.1252",
10607 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10608 # "ja" as "Japanese" or "Japanese_Japan.932",
10609 # and similar.
10610 mingw*)
10611 # Test for the native Windows locale name.
10612 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10613 gt_cv_locale_fr=French_France.1252
10614 else
10615 # None found.
10616 gt_cv_locale_fr=none
10617 fi
10618 ;;
10619 *)
10620 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10621 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10622 # configure script would override the LC_ALL setting. Likewise for
10623 # LC_CTYPE, which is also set at the beginning of the configure script.
10624 # Test for the usual locale name.
10625 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10626 gt_cv_locale_fr=fr_FR
10627 else
10628 # Test for the locale name with explicit encoding suffix.
10629 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10630 gt_cv_locale_fr=fr_FR.ISO-8859-1
10631 else
10632 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
10633 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10634 gt_cv_locale_fr=fr_FR.ISO8859-1
10635 else
10636 # Test for the HP-UX locale name.
10637 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10638 gt_cv_locale_fr=fr_FR.iso88591
10639 else
10640 # Test for the Solaris 7 locale name.
10641 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10642 gt_cv_locale_fr=fr
10643 else
10644 # None found.
10645 gt_cv_locale_fr=none
10646 fi
10647 fi
10648 fi
10649 fi
10650 fi
10651 ;;
10652 esac
10653 fi
10654 rm -fr conftest*
10655
10656 fi
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
10658 $as_echo "$gt_cv_locale_fr" >&6; }
10659 LOCALE_FR=$gt_cv_locale_fr
10660
10661
10662
10663
10664
10665
10666
10667 GNULIB_FFSL=0;
10668 GNULIB_FFSLL=0;
10669 GNULIB_MEMCHR=0;
10670 GNULIB_MEMMEM=0;
10671 GNULIB_MEMPCPY=0;
10672 GNULIB_MEMRCHR=0;
10673 GNULIB_RAWMEMCHR=0;
10674 GNULIB_STPCPY=0;
10675 GNULIB_STPNCPY=0;
10676 GNULIB_STRCHRNUL=0;
10677 GNULIB_STRDUP=0;
10678 GNULIB_STRNCAT=0;
10679 GNULIB_STRNDUP=0;
10680 GNULIB_STRNLEN=0;
10681 GNULIB_STRPBRK=0;
10682 GNULIB_STRSEP=0;
10683 GNULIB_STRSTR=0;
10684 GNULIB_STRCASESTR=0;
10685 GNULIB_STRTOK_R=0;
10686 GNULIB_MBSLEN=0;
10687 GNULIB_MBSNLEN=0;
10688 GNULIB_MBSCHR=0;
10689 GNULIB_MBSRCHR=0;
10690 GNULIB_MBSSTR=0;
10691 GNULIB_MBSCASECMP=0;
10692 GNULIB_MBSNCASECMP=0;
10693 GNULIB_MBSPCASECMP=0;
10694 GNULIB_MBSCASESTR=0;
10695 GNULIB_MBSCSPN=0;
10696 GNULIB_MBSPBRK=0;
10697 GNULIB_MBSSPN=0;
10698 GNULIB_MBSSEP=0;
10699 GNULIB_MBSTOK_R=0;
10700 GNULIB_STRERROR=0;
10701 GNULIB_STRERROR_R=0;
10702 GNULIB_STRSIGNAL=0;
10703 GNULIB_STRVERSCMP=0;
10704 HAVE_MBSLEN=0;
10705 HAVE_FFSL=1;
10706 HAVE_FFSLL=1;
10707 HAVE_MEMCHR=1;
10708 HAVE_DECL_MEMMEM=1;
10709 HAVE_MEMPCPY=1;
10710 HAVE_DECL_MEMRCHR=1;
10711 HAVE_RAWMEMCHR=1;
10712 HAVE_STPCPY=1;
10713 HAVE_STPNCPY=1;
10714 HAVE_STRCHRNUL=1;
10715 HAVE_DECL_STRDUP=1;
10716 HAVE_DECL_STRNDUP=1;
10717 HAVE_DECL_STRNLEN=1;
10718 HAVE_STRPBRK=1;
10719 HAVE_STRSEP=1;
10720 HAVE_STRCASESTR=1;
10721 HAVE_DECL_STRTOK_R=1;
10722 HAVE_DECL_STRERROR_R=1;
10723 HAVE_DECL_STRSIGNAL=1;
10724 HAVE_STRVERSCMP=1;
10725 REPLACE_MEMCHR=0;
10726 REPLACE_MEMMEM=0;
10727 REPLACE_STPNCPY=0;
10728 REPLACE_STRDUP=0;
10729 REPLACE_STRSTR=0;
10730 REPLACE_STRCASESTR=0;
10731 REPLACE_STRCHRNUL=0;
10732 REPLACE_STRERROR=0;
10733 REPLACE_STRERROR_R=0;
10734 REPLACE_STRNCAT=0;
10735 REPLACE_STRNDUP=0;
10736 REPLACE_STRNLEN=0;
10737 REPLACE_STRSIGNAL=0;
10738 REPLACE_STRTOK_R=0;
10739 UNDEFINE_STRTOK_R=0;
10740
10741
10742
10743
10744
10745 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
10746 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
10747 # irrelevant for anonymous mappings.
10748 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10749 if test "x$ac_cv_func_mmap" = x""yes; then :
10750 gl_have_mmap=yes
10751 else
10752 gl_have_mmap=no
10753 fi
10754
10755
10756 # Try to allow MAP_ANONYMOUS.
10757 gl_have_mmap_anonymous=no
10758 if test $gl_have_mmap = yes; then
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
10760 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
10761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10762 /* end confdefs.h. */
10763
10764 #include <sys/mman.h>
10765 #ifdef MAP_ANONYMOUS
10766 I cannot identify this map
10767 #endif
10768
10769 _ACEOF
10770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10771 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
10772 gl_have_mmap_anonymous=yes
10773 fi
10774 rm -f conftest*
10775
10776 if test $gl_have_mmap_anonymous != yes; then
10777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10778 /* end confdefs.h. */
10779
10780 #include <sys/mman.h>
10781 #ifdef MAP_ANON
10782 I cannot identify this map
10783 #endif
10784
10785 _ACEOF
10786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10787 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
10788
10789 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
10790
10791 gl_have_mmap_anonymous=yes
10792 fi
10793 rm -f conftest*
10794
10795 fi
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
10797 $as_echo "$gl_have_mmap_anonymous" >&6; }
10798 if test $gl_have_mmap_anonymous = yes; then
10799
10800 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
10801
10802 fi
10803 fi
10804
10805
10806
10807
10808
10809
10810 if test $HAVE_MEMCHR = 1; then
10811 # Detect platform-specific bugs in some versions of glibc:
10812 # memchr should not dereference anything with length 0
10813 # http://bugzilla.redhat.com/499689
10814 # memchr should not dereference overestimated length after a match
10815 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
10816 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
10817 # Assume that memchr works on platforms that lack mprotect.
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
10819 $as_echo_n "checking whether memchr works... " >&6; }
10820 if test "${gl_cv_func_memchr_works+set}" = set; then :
10821 $as_echo_n "(cached) " >&6
10822 else
10823 if test "$cross_compiling" = yes; then :
10824 gl_cv_func_memchr_works="guessing no"
10825 else
10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827 /* end confdefs.h. */
10828
10829 #include <string.h>
10830 #if HAVE_SYS_MMAN_H
10831 # include <fcntl.h>
10832 # include <unistd.h>
10833 # include <sys/types.h>
10834 # include <sys/mman.h>
10835 # ifndef MAP_FILE
10836 # define MAP_FILE 0
10837 # endif
10838 #endif
10839
10840 int
10841 main ()
10842 {
10843
10844 int result = 0;
10845 char *fence = NULL;
10846 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
10847 # if HAVE_MAP_ANONYMOUS
10848 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
10849 const int fd = -1;
10850 # else /* !HAVE_MAP_ANONYMOUS */
10851 const int flags = MAP_FILE | MAP_PRIVATE;
10852 int fd = open ("/dev/zero", O_RDONLY, 0666);
10853 if (fd >= 0)
10854 # endif
10855 {
10856 int pagesize = getpagesize ();
10857 char *two_pages =
10858 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
10859 flags, fd, 0);
10860 if (two_pages != (char *)(-1)
10861 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
10862 fence = two_pages + pagesize;
10863 }
10864 #endif
10865 if (fence)
10866 {
10867 if (memchr (fence, 0, 0))
10868 result |= 1;
10869 strcpy (fence - 9, "12345678");
10870 if (memchr (fence - 9, 0, 79) != fence - 1)
10871 result |= 2;
10872 if (memchr (fence - 1, 0, 3) != fence - 1)
10873 result |= 4;
10874 }
10875 return result;
10876
10877 ;
10878 return 0;
10879 }
10880 _ACEOF
10881 if ac_fn_c_try_run "$LINENO"; then :
10882 gl_cv_func_memchr_works=yes
10883 else
10884 gl_cv_func_memchr_works=no
10885 fi
10886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10887 conftest.$ac_objext conftest.beam conftest.$ac_ext
10888 fi
10889
10890 fi
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
10892 $as_echo "$gl_cv_func_memchr_works" >&6; }
10893 if test "$gl_cv_func_memchr_works" != yes; then
10894 REPLACE_MEMCHR=1
10895 fi
10896 fi
10897
10898 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
10899 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
10900 ac_have_decl=1
10901 else
10902 ac_have_decl=0
10903 fi
10904
10905 cat >>confdefs.h <<_ACEOF
10906 #define HAVE_DECL_MEMMEM $ac_have_decl
10907 _ACEOF
10908
10909
10910
10911
10912
10913 for ac_func in memmem
10914 do :
10915 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
10916 if test "x$ac_cv_func_memmem" = x""yes; then :
10917 cat >>confdefs.h <<_ACEOF
10918 #define HAVE_MEMMEM 1
10919 _ACEOF
10920
10921 fi
10922 done
10923
10924 if test $ac_cv_func_memmem = yes; then
10925 HAVE_MEMMEM=1
10926 else
10927 HAVE_MEMMEM=0
10928 fi
10929
10930 if test $ac_cv_have_decl_memmem = no; then
10931 HAVE_DECL_MEMMEM=0
10932 else
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
10934 $as_echo_n "checking whether memmem works... " >&6; }
10935 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
10936 $as_echo_n "(cached) " >&6
10937 else
10938 if test "$cross_compiling" = yes; then :
10939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940 /* end confdefs.h. */
10941
10942 #ifdef __GNU_LIBRARY__
10943 #include <features.h>
10944 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
10945 || __GLIBC_MINOR__ > 12)) \
10946 || (__GLIBC__ > 2)) \
10947 || defined __UCLIBC__
10948 Lucky user
10949 #endif
10950 #elif defined __CYGWIN__
10951 #include <cygwin/version.h>
10952 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
10953 Lucky user
10954 #endif
10955 #else
10956 Lucky user
10957 #endif
10958
10959 _ACEOF
10960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10961 $EGREP "Lucky user" >/dev/null 2>&1; then :
10962 gl_cv_func_memmem_works_always="guessing yes"
10963 else
10964 gl_cv_func_memmem_works_always="guessing no"
10965 fi
10966 rm -f conftest*
10967
10968
10969 else
10970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10971 /* end confdefs.h. */
10972
10973 #include <string.h> /* for memmem */
10974 #define P "_EF_BF_BD"
10975 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
10976 #define NEEDLE P P P P P
10977
10978 int
10979 main ()
10980 {
10981
10982 int result = 0;
10983 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
10984 result |= 1;
10985 /* Check for empty needle behavior. */
10986 {
10987 const char *haystack = "AAA";
10988 if (memmem (haystack, 3, NULL, 0) != haystack)
10989 result |= 2;
10990 }
10991 return result;
10992
10993 ;
10994 return 0;
10995 }
10996 _ACEOF
10997 if ac_fn_c_try_run "$LINENO"; then :
10998 gl_cv_func_memmem_works_always=yes
10999 else
11000 gl_cv_func_memmem_works_always=no
11001 fi
11002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11003 conftest.$ac_objext conftest.beam conftest.$ac_ext
11004 fi
11005
11006
11007 fi
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
11009 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
11010 case "$gl_cv_func_memmem_works_always" in
11011 *yes) ;;
11012 *)
11013 REPLACE_MEMMEM=1
11014 ;;
11015 esac
11016 fi
11017 :
11018
11019
11020 GNULIB_DPRINTF=0;
11021 GNULIB_FCLOSE=0;
11022 GNULIB_FDOPEN=0;
11023 GNULIB_FFLUSH=0;
11024 GNULIB_FGETC=0;
11025 GNULIB_FGETS=0;
11026 GNULIB_FOPEN=0;
11027 GNULIB_FPRINTF=0;
11028 GNULIB_FPRINTF_POSIX=0;
11029 GNULIB_FPURGE=0;
11030 GNULIB_FPUTC=0;
11031 GNULIB_FPUTS=0;
11032 GNULIB_FREAD=0;
11033 GNULIB_FREOPEN=0;
11034 GNULIB_FSCANF=0;
11035 GNULIB_FSEEK=0;
11036 GNULIB_FSEEKO=0;
11037 GNULIB_FTELL=0;
11038 GNULIB_FTELLO=0;
11039 GNULIB_FWRITE=0;
11040 GNULIB_GETC=0;
11041 GNULIB_GETCHAR=0;
11042 GNULIB_GETDELIM=0;
11043 GNULIB_GETLINE=0;
11044 GNULIB_OBSTACK_PRINTF=0;
11045 GNULIB_OBSTACK_PRINTF_POSIX=0;
11046 GNULIB_PCLOSE=0;
11047 GNULIB_PERROR=0;
11048 GNULIB_POPEN=0;
11049 GNULIB_PRINTF=0;
11050 GNULIB_PRINTF_POSIX=0;
11051 GNULIB_PUTC=0;
11052 GNULIB_PUTCHAR=0;
11053 GNULIB_PUTS=0;
11054 GNULIB_REMOVE=0;
11055 GNULIB_RENAME=0;
11056 GNULIB_RENAMEAT=0;
11057 GNULIB_SCANF=0;
11058 GNULIB_SNPRINTF=0;
11059 GNULIB_SPRINTF_POSIX=0;
11060 GNULIB_STDIO_H_NONBLOCKING=0;
11061 GNULIB_STDIO_H_SIGPIPE=0;
11062 GNULIB_TMPFILE=0;
11063 GNULIB_VASPRINTF=0;
11064 GNULIB_VFSCANF=0;
11065 GNULIB_VSCANF=0;
11066 GNULIB_VDPRINTF=0;
11067 GNULIB_VFPRINTF=0;
11068 GNULIB_VFPRINTF_POSIX=0;
11069 GNULIB_VPRINTF=0;
11070 GNULIB_VPRINTF_POSIX=0;
11071 GNULIB_VSNPRINTF=0;
11072 GNULIB_VSPRINTF_POSIX=0;
11073 HAVE_DECL_FPURGE=1;
11074 HAVE_DECL_FSEEKO=1;
11075 HAVE_DECL_FTELLO=1;
11076 HAVE_DECL_GETDELIM=1;
11077 HAVE_DECL_GETLINE=1;
11078 HAVE_DECL_OBSTACK_PRINTF=1;
11079 HAVE_DECL_SNPRINTF=1;
11080 HAVE_DECL_VSNPRINTF=1;
11081 HAVE_DPRINTF=1;
11082 HAVE_FSEEKO=1;
11083 HAVE_FTELLO=1;
11084 HAVE_PCLOSE=1;
11085 HAVE_POPEN=1;
11086 HAVE_RENAMEAT=1;
11087 HAVE_VASPRINTF=1;
11088 HAVE_VDPRINTF=1;
11089 REPLACE_DPRINTF=0;
11090 REPLACE_FCLOSE=0;
11091 REPLACE_FDOPEN=0;
11092 REPLACE_FFLUSH=0;
11093 REPLACE_FOPEN=0;
11094 REPLACE_FPRINTF=0;
11095 REPLACE_FPURGE=0;
11096 REPLACE_FREOPEN=0;
11097 REPLACE_FSEEK=0;
11098 REPLACE_FSEEKO=0;
11099 REPLACE_FTELL=0;
11100 REPLACE_FTELLO=0;
11101 REPLACE_GETDELIM=0;
11102 REPLACE_GETLINE=0;
11103 REPLACE_OBSTACK_PRINTF=0;
11104 REPLACE_PERROR=0;
11105 REPLACE_POPEN=0;
11106 REPLACE_PRINTF=0;
11107 REPLACE_REMOVE=0;
11108 REPLACE_RENAME=0;
11109 REPLACE_RENAMEAT=0;
11110 REPLACE_SNPRINTF=0;
11111 REPLACE_SPRINTF=0;
11112 REPLACE_STDIO_READ_FUNCS=0;
11113 REPLACE_STDIO_WRITE_FUNCS=0;
11114 REPLACE_TMPFILE=0;
11115 REPLACE_VASPRINTF=0;
11116 REPLACE_VDPRINTF=0;
11117 REPLACE_VFPRINTF=0;
11118 REPLACE_VPRINTF=0;
11119 REPLACE_VSNPRINTF=0;
11120 REPLACE_VSPRINTF=0;
11121
11122
11123
11124
11125 GNULIB_PTHREAD_SIGMASK=0;
11126 GNULIB_RAISE=0;
11127 GNULIB_SIGNAL_H_SIGPIPE=0;
11128 GNULIB_SIGPROCMASK=0;
11129 GNULIB_SIGACTION=0;
11130 HAVE_POSIX_SIGNALBLOCKING=1;
11131 HAVE_PTHREAD_SIGMASK=1;
11132 HAVE_RAISE=1;
11133 HAVE_SIGSET_T=1;
11134 HAVE_SIGINFO_T=1;
11135 HAVE_SIGACTION=1;
11136 HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
11137
11138 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
11139
11140 HAVE_SIGHANDLER_T=1;
11141 REPLACE_PTHREAD_SIGMASK=0;
11142 REPLACE_RAISE=0;
11143
11144
11145 ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
11146 #include <signal.h>
11147 /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>. */
11148 #include <sys/types.h>
11149
11150 "
11151 if test "x$ac_cv_type_sigset_t" = x""yes; then :
11152
11153 cat >>confdefs.h <<_ACEOF
11154 #define HAVE_SIGSET_T 1
11155 _ACEOF
11156
11157 gl_cv_type_sigset_t=yes
11158 else
11159 gl_cv_type_sigset_t=no
11160 fi
11161
11162 if test $gl_cv_type_sigset_t != yes; then
11163 HAVE_SIGSET_T=0
11164 fi
11165
11166 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11167 if test "x$ac_cv_type_pid_t" = x""yes; then :
11168
11169 else
11170
11171 cat >>confdefs.h <<_ACEOF
11172 #define pid_t int
11173 _ACEOF
11174
11175 fi
11176
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11178 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
11179 if test "${ac_cv_type_uid_t+set}" = set; then :
11180 $as_echo_n "(cached) " >&6
11181 else
11182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11183 /* end confdefs.h. */
11184 #include <sys/types.h>
11185
11186 _ACEOF
11187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11188 $EGREP "uid_t" >/dev/null 2>&1; then :
11189 ac_cv_type_uid_t=yes
11190 else
11191 ac_cv_type_uid_t=no
11192 fi
11193 rm -f conftest*
11194
11195 fi
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11197 $as_echo "$ac_cv_type_uid_t" >&6; }
11198 if test $ac_cv_type_uid_t = no; then
11199
11200 $as_echo "#define uid_t int" >>confdefs.h
11201
11202
11203 $as_echo "#define gid_t int" >>confdefs.h
11204
11205 fi
11206
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
11208 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
11209 if test "${ac_cv_header_stdbool_h+set}" = set; then :
11210 $as_echo_n "(cached) " >&6
11211 else
11212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11213 /* end confdefs.h. */
11214
11215 #include <stdbool.h>
11216 #ifndef bool
11217 "error: bool is not defined"
11218 #endif
11219 #ifndef false
11220 "error: false is not defined"
11221 #endif
11222 #if false
11223 "error: false is not 0"
11224 #endif
11225 #ifndef true
11226 "error: true is not defined"
11227 #endif
11228 #if true != 1
11229 "error: true is not 1"
11230 #endif
11231 #ifndef __bool_true_false_are_defined
11232 "error: __bool_true_false_are_defined is not defined"
11233 #endif
11234
11235 struct s { _Bool s: 1; _Bool t; } s;
11236
11237 char a[true == 1 ? 1 : -1];
11238 char b[false == 0 ? 1 : -1];
11239 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11240 char d[(bool) 0.5 == true ? 1 : -1];
11241 /* See body of main program for 'e'. */
11242 char f[(_Bool) 0.0 == false ? 1 : -1];
11243 char g[true];
11244 char h[sizeof (_Bool)];
11245 char i[sizeof s.t];
11246 enum { j = false, k = true, l = false * true, m = true * 256 };
11247 /* The following fails for
11248 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
11249 _Bool n[m];
11250 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11251 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11252 /* Catch a bug in an HP-UX C compiler. See
11253 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11254 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11255 */
11256 _Bool q = true;
11257 _Bool *pq = &q;
11258
11259 int
11260 main ()
11261 {
11262
11263 bool e = &s;
11264 *pq |= q;
11265 *pq |= ! q;
11266 /* Refer to every declared value, to avoid compiler optimizations. */
11267 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11268 + !m + !n + !o + !p + !q + !pq);
11269
11270 ;
11271 return 0;
11272 }
11273 _ACEOF
11274 if ac_fn_c_try_compile "$LINENO"; then :
11275 ac_cv_header_stdbool_h=yes
11276 else
11277 ac_cv_header_stdbool_h=no
11278 fi
11279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11280 fi
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
11282 $as_echo "$ac_cv_header_stdbool_h" >&6; }
11283 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
11284 if test "x$ac_cv_type__Bool" = x""yes; then :
11285
11286 cat >>confdefs.h <<_ACEOF
11287 #define HAVE__BOOL 1
11288 _ACEOF
11289
11290
11291 fi
11292
11293
11294
11295 REPLACE_NULL=0;
11296 HAVE_MAX_ALIGN_T=1;
11297 HAVE_WCHAR_T=1;
11298
11299
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
11301 $as_echo_n "checking for wchar_t... " >&6; }
11302 if test "${gt_cv_c_wchar_t+set}" = set; then :
11303 $as_echo_n "(cached) " >&6
11304 else
11305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306 /* end confdefs.h. */
11307 #include <stddef.h>
11308 wchar_t foo = (wchar_t)'\0';
11309 int
11310 main ()
11311 {
11312
11313 ;
11314 return 0;
11315 }
11316 _ACEOF
11317 if ac_fn_c_try_compile "$LINENO"; then :
11318 gt_cv_c_wchar_t=yes
11319 else
11320 gt_cv_c_wchar_t=no
11321 fi
11322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11323 fi
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
11325 $as_echo "$gt_cv_c_wchar_t" >&6; }
11326 if test $gt_cv_c_wchar_t = yes; then
11327
11328 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11329
11330 fi
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343 if test $gl_cv_have_include_next = yes; then
11344 gl_cv_next_string_h='<'string.h'>'
11345 else
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
11347 $as_echo_n "checking absolute name of <string.h>... " >&6; }
11348 if test "${gl_cv_next_string_h+set}" = set; then :
11349 $as_echo_n "(cached) " >&6
11350 else
11351
11352
11353
11354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11355 /* end confdefs.h. */
11356 #include <string.h>
11357 _ACEOF
11358 case "$host_os" in
11359 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11360 *) gl_absname_cpp="$ac_cpp" ;;
11361 esac
11362
11363 case "$host_os" in
11364 mingw*)
11365 gl_dirsep_regex='[/\\]'
11366 ;;
11367 *)
11368 gl_dirsep_regex='\/'
11369 ;;
11370 esac
11371 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11372 gl_header_literal_regex=`echo 'string.h' \
11373 | sed -e "$gl_make_literal_regex_sed"`
11374 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11375 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11376 s|^/[^/]|//&|
11377 p
11378 q
11379 }'
11380
11381 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11382 sed -n "$gl_absolute_header_sed"`
11383
11384 gl_header=$gl_cv_absolute_string_h
11385 gl_cv_next_string_h='"'$gl_header'"'
11386
11387
11388 fi
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
11390 $as_echo "$gl_cv_next_string_h" >&6; }
11391 fi
11392 NEXT_STRING_H=$gl_cv_next_string_h
11393
11394 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11395 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11396 gl_next_as_first_directive='<'string.h'>'
11397 else
11398 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11399 gl_next_as_first_directive=$gl_cv_next_string_h
11400 fi
11401 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
11402
11403
11404
11405
11406
11407
11408 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
11409 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11411 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11412 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11413 $as_echo_n "(cached) " >&6
11414 else
11415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11416 /* end confdefs.h. */
11417 #include <string.h>
11418
11419 int
11420 main ()
11421 {
11422 #undef $gl_func
11423 (void) $gl_func;
11424 ;
11425 return 0;
11426 }
11427 _ACEOF
11428 if ac_fn_c_try_compile "$LINENO"; then :
11429 eval "$as_gl_Symbol=yes"
11430 else
11431 eval "$as_gl_Symbol=no"
11432 fi
11433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11434 fi
11435 eval ac_res=\$$as_gl_Symbol
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11437 $as_echo "$ac_res" >&6; }
11438 eval as_val=\$$as_gl_Symbol
11439 if test "x$as_val" = x""yes; then :
11440 cat >>confdefs.h <<_ACEOF
11441 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11442 _ACEOF
11443
11444 eval ac_cv_have_decl_$gl_func=yes
11445 fi
11446 done
11447
11448
11449
11450
11451
11452 if test "$gl_cv_func_memchr_works" != yes; then
11453 REPLACE_STRSTR=1
11454 else
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
11456 $as_echo_n "checking whether strstr works... " >&6; }
11457 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
11458 $as_echo_n "(cached) " >&6
11459 else
11460 if test "$cross_compiling" = yes; then :
11461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11462 /* end confdefs.h. */
11463
11464 #ifdef __GNU_LIBRARY__
11465 #include <features.h>
11466 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
11467 || defined __UCLIBC__
11468 Lucky user
11469 #endif
11470 #elif defined __CYGWIN__
11471 #include <cygwin/version.h>
11472 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
11473 Lucky user
11474 #endif
11475 #else
11476 Lucky user
11477 #endif
11478
11479 _ACEOF
11480 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11481 $EGREP "Lucky user" >/dev/null 2>&1; then :
11482 gl_cv_func_strstr_works_always="guessing yes"
11483 else
11484 gl_cv_func_strstr_works_always="guessing no"
11485 fi
11486 rm -f conftest*
11487
11488
11489 else
11490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11491 /* end confdefs.h. */
11492
11493 #include <string.h> /* for strstr */
11494 #define P "_EF_BF_BD"
11495 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
11496 #define NEEDLE P P P P P
11497
11498 int
11499 main ()
11500 {
11501 return !!strstr (HAYSTACK, NEEDLE);
11502
11503 ;
11504 return 0;
11505 }
11506 _ACEOF
11507 if ac_fn_c_try_run "$LINENO"; then :
11508 gl_cv_func_strstr_works_always=yes
11509 else
11510 gl_cv_func_strstr_works_always=no
11511 fi
11512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11513 conftest.$ac_objext conftest.beam conftest.$ac_ext
11514 fi
11515
11516
11517 fi
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
11519 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
11520 case "$gl_cv_func_strstr_works_always" in
11521 *yes) ;;
11522 *)
11523 REPLACE_STRSTR=1
11524 ;;
11525 esac
11526 fi
11527
11528 ac_fn_c_check_decl "$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
11529 if test "x$ac_cv_have_decl_strtok_r" = x""yes; then :
11530 ac_have_decl=1
11531 else
11532 ac_have_decl=0
11533 fi
11534
11535 cat >>confdefs.h <<_ACEOF
11536 #define HAVE_DECL_STRTOK_R $ac_have_decl
11537 _ACEOF
11538
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11540 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11541 if test "${ac_cv_header_stat_broken+set}" = set; then :
11542 $as_echo_n "(cached) " >&6
11543 else
11544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11545 /* end confdefs.h. */
11546 #include <sys/types.h>
11547 #include <sys/stat.h>
11548
11549 #if defined S_ISBLK && defined S_IFDIR
11550 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11551 #endif
11552
11553 #if defined S_ISBLK && defined S_IFCHR
11554 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11555 #endif
11556
11557 #if defined S_ISLNK && defined S_IFREG
11558 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11559 #endif
11560
11561 #if defined S_ISSOCK && defined S_IFREG
11562 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11563 #endif
11564
11565 _ACEOF
11566 if ac_fn_c_try_compile "$LINENO"; then :
11567 ac_cv_header_stat_broken=no
11568 else
11569 ac_cv_header_stat_broken=yes
11570 fi
11571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11572 fi
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11574 $as_echo "$ac_cv_header_stat_broken" >&6; }
11575 if test $ac_cv_header_stat_broken = yes; then
11576
11577 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11578
11579 fi
11580
11581
11582
11583 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11584 if test "x$ac_cv_type_mode_t" = x""yes; then :
11585
11586 else
11587
11588 cat >>confdefs.h <<_ACEOF
11589 #define mode_t int
11590 _ACEOF
11591
11592 fi
11593
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11595 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11596 if test -z "$MKDIR_P"; then
11597 if test "${ac_cv_path_mkdir+set}" = set; then :
11598 $as_echo_n "(cached) " >&6
11599 else
11600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11601 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11602 do
11603 IFS=$as_save_IFS
11604 test -z "$as_dir" && as_dir=.
11605 for ac_prog in mkdir gmkdir; do
11606 for ac_exec_ext in '' $ac_executable_extensions; do
11607 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
11608 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11609 'mkdir (GNU coreutils) '* | \
11610 'mkdir (coreutils) '* | \
11611 'mkdir (fileutils) '4.1*)
11612 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11613 break 3;;
11614 esac
11615 done
11616 done
11617 done
11618 IFS=$as_save_IFS
11619
11620 fi
11621
11622 if test "${ac_cv_path_mkdir+set}" = set; then
11623 MKDIR_P="$ac_cv_path_mkdir -p"
11624 else
11625 # As a last resort, use the slow shell script. Don't cache a
11626 # value for MKDIR_P within a source directory, because that will
11627 # break other packages using the cache if that directory is
11628 # removed, or if the value is a relative name.
11629 test -d ./--version && rmdir ./--version
11630 MKDIR_P="$ac_install_sh -d"
11631 fi
11632 fi
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11634 $as_echo "$MKDIR_P" >&6; }
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654 if test $gl_cv_have_include_next = yes; then
11655 gl_cv_next_sys_types_h='<'sys/types.h'>'
11656 else
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
11658 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
11659 if test "${gl_cv_next_sys_types_h+set}" = set; then :
11660 $as_echo_n "(cached) " >&6
11661 else
11662
11663
11664
11665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11666 /* end confdefs.h. */
11667 #include <sys/types.h>
11668 _ACEOF
11669 case "$host_os" in
11670 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11671 *) gl_absname_cpp="$ac_cpp" ;;
11672 esac
11673
11674 case "$host_os" in
11675 mingw*)
11676 gl_dirsep_regex='[/\\]'
11677 ;;
11678 *)
11679 gl_dirsep_regex='\/'
11680 ;;
11681 esac
11682 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11683 gl_header_literal_regex=`echo 'sys/types.h' \
11684 | sed -e "$gl_make_literal_regex_sed"`
11685 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11686 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11687 s|^/[^/]|//&|
11688 p
11689 q
11690 }'
11691
11692 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11693 sed -n "$gl_absolute_header_sed"`
11694
11695 gl_header=$gl_cv_absolute_sys_types_h
11696 gl_cv_next_sys_types_h='"'$gl_header'"'
11697
11698
11699 fi
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
11701 $as_echo "$gl_cv_next_sys_types_h" >&6; }
11702 fi
11703 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
11704
11705 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11706 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11707 gl_next_as_first_directive='<'sys/types.h'>'
11708 else
11709 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11710 gl_next_as_first_directive=$gl_cv_next_sys_types_h
11711 fi
11712 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725 GNULIB_MKTIME=0;
11726 GNULIB_NANOSLEEP=0;
11727 GNULIB_STRPTIME=0;
11728 GNULIB_TIMEGM=0;
11729 GNULIB_TIME_R=0;
11730 GNULIB_TIME_RZ=0;
11731 HAVE_DECL_LOCALTIME_R=1;
11732 HAVE_NANOSLEEP=1;
11733 HAVE_STRPTIME=1;
11734 HAVE_TIMEGM=1;
11735 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
11736 REPLACE_MKTIME=GNULIB_PORTCHECK;
11737 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
11738 REPLACE_TIMEGM=GNULIB_PORTCHECK;
11739
11740 : ${GNULIB_GETTIMEOFDAY=0};
11741 REPLACE_GMTIME=0;
11742 REPLACE_LOCALTIME=0;
11743
11744
11745
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
11747 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
11748 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
11749 $as_echo_n "(cached) " >&6
11750 else
11751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11752 /* end confdefs.h. */
11753 #include <time.h>
11754
11755 int
11756 main ()
11757 {
11758 static struct timespec x; x.tv_sec = x.tv_nsec;
11759 ;
11760 return 0;
11761 }
11762 _ACEOF
11763 if ac_fn_c_try_compile "$LINENO"; then :
11764 gl_cv_sys_struct_timespec_in_time_h=yes
11765 else
11766 gl_cv_sys_struct_timespec_in_time_h=no
11767 fi
11768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11769 fi
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
11771 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
11772
11773 TIME_H_DEFINES_STRUCT_TIMESPEC=0
11774 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
11775 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
11776 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
11777 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
11778 TIME_H_DEFINES_STRUCT_TIMESPEC=1
11779 else
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
11781 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
11782 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
11783 $as_echo_n "(cached) " >&6
11784 else
11785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11786 /* end confdefs.h. */
11787 #include <sys/time.h>
11788
11789 int
11790 main ()
11791 {
11792 static struct timespec x; x.tv_sec = x.tv_nsec;
11793 ;
11794 return 0;
11795 }
11796 _ACEOF
11797 if ac_fn_c_try_compile "$LINENO"; then :
11798 gl_cv_sys_struct_timespec_in_sys_time_h=yes
11799 else
11800 gl_cv_sys_struct_timespec_in_sys_time_h=no
11801 fi
11802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11803 fi
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
11805 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
11806 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
11807 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
11808 else
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
11810 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
11811 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
11812 $as_echo_n "(cached) " >&6
11813 else
11814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11815 /* end confdefs.h. */
11816 #include <pthread.h>
11817
11818 int
11819 main ()
11820 {
11821 static struct timespec x; x.tv_sec = x.tv_nsec;
11822 ;
11823 return 0;
11824 }
11825 _ACEOF
11826 if ac_fn_c_try_compile "$LINENO"; then :
11827 gl_cv_sys_struct_timespec_in_pthread_h=yes
11828 else
11829 gl_cv_sys_struct_timespec_in_pthread_h=no
11830 fi
11831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11832 fi
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
11834 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
11835 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
11836 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
11837 else
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
11839 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
11840 if test "${gl_cv_sys_struct_timespec_in_unistd_h+set}" = set; then :
11841 $as_echo_n "(cached) " >&6
11842 else
11843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11844 /* end confdefs.h. */
11845 #include <unistd.h>
11846
11847 int
11848 main ()
11849 {
11850 static struct timespec x; x.tv_sec = x.tv_nsec;
11851 ;
11852 return 0;
11853 }
11854 _ACEOF
11855 if ac_fn_c_try_compile "$LINENO"; then :
11856 gl_cv_sys_struct_timespec_in_unistd_h=yes
11857 else
11858 gl_cv_sys_struct_timespec_in_unistd_h=no
11859 fi
11860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11861 fi
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
11863 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
11864 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
11865 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
11866 fi
11867 fi
11868 fi
11869 fi
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886 if test $gl_cv_have_include_next = yes; then
11887 gl_cv_next_time_h='<'time.h'>'
11888 else
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
11890 $as_echo_n "checking absolute name of <time.h>... " >&6; }
11891 if test "${gl_cv_next_time_h+set}" = set; then :
11892 $as_echo_n "(cached) " >&6
11893 else
11894
11895
11896
11897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11898 /* end confdefs.h. */
11899 #include <time.h>
11900 _ACEOF
11901 case "$host_os" in
11902 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11903 *) gl_absname_cpp="$ac_cpp" ;;
11904 esac
11905
11906 case "$host_os" in
11907 mingw*)
11908 gl_dirsep_regex='[/\\]'
11909 ;;
11910 *)
11911 gl_dirsep_regex='\/'
11912 ;;
11913 esac
11914 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11915 gl_header_literal_regex=`echo 'time.h' \
11916 | sed -e "$gl_make_literal_regex_sed"`
11917 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11918 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11919 s|^/[^/]|//&|
11920 p
11921 q
11922 }'
11923
11924 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11925 sed -n "$gl_absolute_header_sed"`
11926
11927 gl_header=$gl_cv_absolute_time_h
11928 gl_cv_next_time_h='"'$gl_header'"'
11929
11930
11931 fi
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
11933 $as_echo "$gl_cv_next_time_h" >&6; }
11934 fi
11935 NEXT_TIME_H=$gl_cv_next_time_h
11936
11937 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11938 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11939 gl_next_as_first_directive='<'time.h'>'
11940 else
11941 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11942 gl_next_as_first_directive=$gl_cv_next_time_h
11943 fi
11944 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
11945
11946
11947
11948
11949
11950
11951
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
11953 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
11954 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
11955 $as_echo_n "(cached) " >&6
11956 else
11957 gl_cv_header_wchar_h_correct_inline=yes
11958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11959 /* end confdefs.h. */
11960
11961 #define wcstod renamed_wcstod
11962 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11963 <wchar.h>.
11964 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11965 included before <wchar.h>. */
11966 #include <stddef.h>
11967 #include <stdio.h>
11968 #include <time.h>
11969 #include <wchar.h>
11970 extern int zero (void);
11971 int main () { return zero(); }
11972
11973 _ACEOF
11974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11975 (eval $ac_compile) 2>&5
11976 ac_status=$?
11977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11978 test $ac_status = 0; }; then
11979 mv conftest.$ac_objext conftest1.$ac_objext
11980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11981 /* end confdefs.h. */
11982
11983 #define wcstod renamed_wcstod
11984 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11985 <wchar.h>.
11986 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11987 included before <wchar.h>. */
11988 #include <stddef.h>
11989 #include <stdio.h>
11990 #include <time.h>
11991 #include <wchar.h>
11992 int zero (void) { return 0; }
11993
11994 _ACEOF
11995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11996 (eval $ac_compile) 2>&5
11997 ac_status=$?
11998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11999 test $ac_status = 0; }; then
12000 mv conftest.$ac_objext conftest2.$ac_objext
12001 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
12002 :
12003 else
12004 gl_cv_header_wchar_h_correct_inline=no
12005 fi
12006 fi
12007 fi
12008 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
12009
12010 fi
12011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
12012 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
12013 if test $gl_cv_header_wchar_h_correct_inline = no; then
12014 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
12015 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
12016 C99 mode. You have four options:
12017 - Add the flag -fgnu89-inline to CC and reconfigure, or
12018 - Fix your include files, using parts of
12019 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
12020 - Use a gcc version older than 4.3, or
12021 - Don't use the flags -std=c99 or -std=gnu99.
12022 Configuration aborted." "$LINENO" 5
12023 fi
12024
12025
12026
12027
12028
12029 if test $ac_cv_header_features_h = yes; then
12030 HAVE_FEATURES_H=1
12031 else
12032 HAVE_FEATURES_H=0
12033 fi
12034
12035
12036
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
12038 $as_echo_n "checking for wint_t... " >&6; }
12039 if test "${gt_cv_c_wint_t+set}" = set; then :
12040 $as_echo_n "(cached) " >&6
12041 else
12042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12043 /* end confdefs.h. */
12044
12045 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12046 <wchar.h>.
12047 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
12048 before <wchar.h>. */
12049 #include <stddef.h>
12050 #include <stdio.h>
12051 #include <time.h>
12052 #include <wchar.h>
12053 wint_t foo = (wchar_t)'\0';
12054 int
12055 main ()
12056 {
12057
12058 ;
12059 return 0;
12060 }
12061 _ACEOF
12062 if ac_fn_c_try_compile "$LINENO"; then :
12063 gt_cv_c_wint_t=yes
12064 else
12065 gt_cv_c_wint_t=no
12066 fi
12067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12068 fi
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
12070 $as_echo "$gt_cv_c_wint_t" >&6; }
12071 if test $gt_cv_c_wint_t = yes; then
12072
12073 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
12074
12075 fi
12076
12077
12078 GNULIB_ISWBLANK=0;
12079 GNULIB_WCTYPE=0;
12080 GNULIB_ISWCTYPE=0;
12081 GNULIB_WCTRANS=0;
12082 GNULIB_TOWCTRANS=0;
12083 HAVE_ISWBLANK=1;
12084 HAVE_WCTYPE_T=1;
12085 HAVE_WCTRANS_T=1;
12086 REPLACE_ISWBLANK=0;
12087
12088
12089
12090
12091 if false; then
12092 GL_COND_LIBTOOL_TRUE=
12093 GL_COND_LIBTOOL_FALSE='#'
12094 else
12095 GL_COND_LIBTOOL_TRUE='#'
12096 GL_COND_LIBTOOL_FALSE=
12097 fi
12098
12099 gl_cond_libtool=false
12100 gl_libdeps=
12101 gl_ltlibdeps=
12102 gl_m4_base='import/m4'
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112 gl_source_base='import'
12113
12114
12115 if test $ac_cv_func_alloca_works = no; then
12116 :
12117 fi
12118
12119 # Define an additional variable used in the Makefile substitution.
12120 if test $ac_cv_working_alloca_h = yes; then
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
12122 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
12123 if test "${gl_cv_rpl_alloca+set}" = set; then :
12124 $as_echo_n "(cached) " >&6
12125 else
12126
12127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12128 /* end confdefs.h. */
12129
12130 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
12131 Need own alloca
12132 #endif
12133
12134 _ACEOF
12135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12136 $EGREP "Need own alloca" >/dev/null 2>&1; then :
12137 gl_cv_rpl_alloca=yes
12138 else
12139 gl_cv_rpl_alloca=no
12140 fi
12141 rm -f conftest*
12142
12143
12144 fi
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
12146 $as_echo "$gl_cv_rpl_alloca" >&6; }
12147 if test $gl_cv_rpl_alloca = yes; then
12148
12149 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12150
12151 ALLOCA_H=alloca.h
12152 else
12153 ALLOCA_H=
12154 fi
12155 else
12156 ALLOCA_H=alloca.h
12157 fi
12158
12159 if test -n "$ALLOCA_H"; then
12160 GL_GENERATE_ALLOCA_H_TRUE=
12161 GL_GENERATE_ALLOCA_H_FALSE='#'
12162 else
12163 GL_GENERATE_ALLOCA_H_TRUE='#'
12164 GL_GENERATE_ALLOCA_H_FALSE=
12165 fi
12166
12167
12168
12169
12170
12171 if test $ac_cv_func_canonicalize_file_name = no; then
12172 HAVE_CANONICALIZE_FILE_NAME=0
12173 if test $ac_cv_func_realpath = no; then
12174 HAVE_REALPATH=0
12175 else
12176 case "$gl_cv_func_realpath_works" in
12177 *yes) ;;
12178 *) REPLACE_REALPATH=1 ;;
12179 esac
12180 fi
12181 else
12182 case "$gl_cv_func_realpath_works" in
12183 *yes)
12184 ;;
12185 *)
12186 REPLACE_CANONICALIZE_FILE_NAME=1
12187 REPLACE_REALPATH=1
12188 ;;
12189 esac
12190 fi
12191
12192 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
12193
12194
12195
12196
12197
12198
12199
12200
12201 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
12202
12203 fi
12204
12205
12206 cat >>confdefs.h <<_ACEOF
12207 #define GNULIB_CANONICALIZE_LGPL 1
12208 _ACEOF
12209
12210
12211
12212
12213
12214
12215
12216 GNULIB_CANONICALIZE_FILE_NAME=1
12217
12218
12219
12220
12221
12222 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
12223
12224
12225
12226
12227
12228
12229
12230
12231 GNULIB_REALPATH=1
12232
12233
12234
12235
12236
12237 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
12238
12239
12240
12241
12242
12243
12244
12245
12246 GNULIB_CHDIR=1
12247
12248
12249
12250
12251
12252 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
12253
12254
12255
12256
12257 if test "x$datarootdir" = x; then
12258 datarootdir='${datadir}'
12259
12260 fi
12261 if test "x$docdir" = x; then
12262 docdir='${datarootdir}/doc/${PACKAGE}'
12263
12264 fi
12265 if test "x$htmldir" = x; then
12266 htmldir='${docdir}'
12267
12268 fi
12269 if test "x$dvidir" = x; then
12270 dvidir='${docdir}'
12271
12272 fi
12273 if test "x$pdfdir" = x; then
12274 pdfdir='${docdir}'
12275
12276 fi
12277 if test "x$psdir" = x; then
12278 psdir='${docdir}'
12279
12280 fi
12281 if test "x$lispdir" = x; then
12282 lispdir='${datarootdir}/emacs/site-lisp'
12283
12284 fi
12285 if test "x$localedir" = x; then
12286 localedir='${datarootdir}/locale'
12287
12288 fi
12289 if test "x$runstatedir" = x; then
12290 runstatedir='${localstatedir}/run'
12291
12292 fi
12293
12294 pkglibexecdir='${libexecdir}/${PACKAGE}'
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309 if test $gl_cv_have_include_next = yes; then
12310 gl_cv_next_dirent_h='<'dirent.h'>'
12311 else
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
12313 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
12314 if test "${gl_cv_next_dirent_h+set}" = set; then :
12315 $as_echo_n "(cached) " >&6
12316 else
12317
12318 if test $ac_cv_header_dirent_h = yes; then
12319
12320
12321
12322
12323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12324 /* end confdefs.h. */
12325 #include <dirent.h>
12326 _ACEOF
12327 case "$host_os" in
12328 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12329 *) gl_absname_cpp="$ac_cpp" ;;
12330 esac
12331
12332 case "$host_os" in
12333 mingw*)
12334 gl_dirsep_regex='[/\\]'
12335 ;;
12336 *)
12337 gl_dirsep_regex='\/'
12338 ;;
12339 esac
12340 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12341 gl_header_literal_regex=`echo 'dirent.h' \
12342 | sed -e "$gl_make_literal_regex_sed"`
12343 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12344 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12345 s|^/[^/]|//&|
12346 p
12347 q
12348 }'
12349
12350 gl_cv_absolute_dirent_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12351 sed -n "$gl_absolute_header_sed"`
12352
12353 gl_header=$gl_cv_absolute_dirent_h
12354 gl_cv_next_dirent_h='"'$gl_header'"'
12355 else
12356 gl_cv_next_dirent_h='<'dirent.h'>'
12357 fi
12358
12359
12360 fi
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
12362 $as_echo "$gl_cv_next_dirent_h" >&6; }
12363 fi
12364 NEXT_DIRENT_H=$gl_cv_next_dirent_h
12365
12366 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12367 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12368 gl_next_as_first_directive='<'dirent.h'>'
12369 else
12370 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12371 gl_next_as_first_directive=$gl_cv_next_dirent_h
12372 fi
12373 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
12374
12375
12376
12377
12378 if test $ac_cv_header_dirent_h = yes; then
12379 HAVE_DIRENT_H=1
12380 else
12381 HAVE_DIRENT_H=0
12382 fi
12383
12384
12385
12386 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
12387 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
12389 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12390 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
12391 $as_echo_n "(cached) " >&6
12392 else
12393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12394 /* end confdefs.h. */
12395 #include <dirent.h>
12396
12397 int
12398 main ()
12399 {
12400 #undef $gl_func
12401 (void) $gl_func;
12402 ;
12403 return 0;
12404 }
12405 _ACEOF
12406 if ac_fn_c_try_compile "$LINENO"; then :
12407 eval "$as_gl_Symbol=yes"
12408 else
12409 eval "$as_gl_Symbol=no"
12410 fi
12411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12412 fi
12413 eval ac_res=\$$as_gl_Symbol
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12415 $as_echo "$ac_res" >&6; }
12416 eval as_val=\$$as_gl_Symbol
12417 if test "x$as_val" = x""yes; then :
12418 cat >>confdefs.h <<_ACEOF
12419 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
12420 _ACEOF
12421
12422 eval ac_cv_have_decl_$gl_func=yes
12423 fi
12424 done
12425
12426
12427
12428
12429
12430
12431
12432 for ac_func in dirfd
12433 do :
12434 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
12435 if test "x$ac_cv_func_dirfd" = x""yes; then :
12436 cat >>confdefs.h <<_ACEOF
12437 #define HAVE_DIRFD 1
12438 _ACEOF
12439
12440 fi
12441 done
12442
12443 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
12444 #include <dirent.h>
12445 "
12446 if test "x$ac_cv_have_decl_dirfd" = x""yes; then :
12447 ac_have_decl=1
12448 else
12449 ac_have_decl=0
12450 fi
12451
12452 cat >>confdefs.h <<_ACEOF
12453 #define HAVE_DECL_DIRFD $ac_have_decl
12454 _ACEOF
12455
12456 if test $ac_cv_have_decl_dirfd = no; then
12457 HAVE_DECL_DIRFD=0
12458 fi
12459
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
12461 $as_echo_n "checking whether dirfd is a macro... " >&6; }
12462 if test "${gl_cv_func_dirfd_macro+set}" = set; then :
12463 $as_echo_n "(cached) " >&6
12464 else
12465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12466 /* end confdefs.h. */
12467
12468 #include <sys/types.h>
12469 #include <dirent.h>
12470 #ifdef dirfd
12471 dirent_header_defines_dirfd
12472 #endif
12473 _ACEOF
12474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12475 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
12476 gl_cv_func_dirfd_macro=yes
12477 else
12478 gl_cv_func_dirfd_macro=no
12479 fi
12480 rm -f conftest*
12481
12482 fi
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
12484 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
12485
12486 # Use the replacement only if we have no function or macro with that name.
12487 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
12488 if test $ac_cv_have_decl_dirfd = yes; then
12489 # If the system declares dirfd already, let's declare rpl_dirfd instead.
12490 REPLACE_DIRFD=1
12491 fi
12492 fi
12493
12494 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
12495
12496
12497
12498
12499
12500
12501
12502
12503 gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
12504
12505
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
12507 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
12508 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then :
12509 $as_echo_n "(cached) " >&6
12510 else
12511
12512 dirfd_save_CFLAGS=$CFLAGS
12513 for ac_expr in d_fd dd_fd; do
12514
12515 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
12516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517 /* end confdefs.h. */
12518
12519 #include <sys/types.h>
12520 #include <dirent.h>
12521 int
12522 main ()
12523 {
12524 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
12525 ;
12526 return 0;
12527 }
12528 _ACEOF
12529 if ac_fn_c_try_compile "$LINENO"; then :
12530 dir_fd_found=yes
12531
12532 fi
12533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12534 CFLAGS=$dirfd_save_CFLAGS
12535 test "$dir_fd_found" = yes && break
12536 done
12537 test "$dir_fd_found" = yes || ac_expr=no_such_member
12538
12539 gl_cv_sys_dir_fd_member_name=$ac_expr
12540
12541
12542 fi
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
12544 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
12545 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
12546
12547 cat >>confdefs.h <<_ACEOF
12548 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
12549 _ACEOF
12550
12551 fi
12552
12553
12554 fi
12555
12556
12557
12558
12559
12560 GNULIB_DIRFD=1
12561
12562
12563
12564
12565
12566 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
12577 $as_echo_n "checking whether // is distinct from /... " >&6; }
12578 if test "${gl_cv_double_slash_root+set}" = set; then :
12579 $as_echo_n "(cached) " >&6
12580 else
12581 if test x"$cross_compiling" = xyes ; then
12582 # When cross-compiling, there is no way to tell whether // is special
12583 # short of a list of hosts. However, the only known hosts to date
12584 # that have a distinct // are Apollo DomainOS (too old to port to),
12585 # Cygwin, and z/OS. If anyone knows of another system for which // has
12586 # special semantics and is distinct from /, please report it to
12587 # <bug-gnulib@gnu.org>.
12588 case $host in
12589 *-cygwin | i370-ibm-openedition)
12590 gl_cv_double_slash_root=yes ;;
12591 *)
12592 # Be optimistic and assume that / and // are the same when we
12593 # don't know.
12594 gl_cv_double_slash_root='unknown, assuming no' ;;
12595 esac
12596 else
12597 set x `ls -di / // 2>/dev/null`
12598 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
12599 gl_cv_double_slash_root=no
12600 else
12601 gl_cv_double_slash_root=yes
12602 fi
12603 fi
12604 fi
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
12606 $as_echo "$gl_cv_double_slash_root" >&6; }
12607 if test "$gl_cv_double_slash_root" = yes; then
12608
12609 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
12610
12611 fi
12612
12613
12614
12615
12616
12617
12618 FLOAT_H=
12619 REPLACE_FLOAT_LDBL=0
12620 case "$host_os" in
12621 aix* | beos* | openbsd* | mirbsd* | irix*)
12622 FLOAT_H=float.h
12623 ;;
12624 freebsd*)
12625 case "$host_cpu" in
12626 i[34567]86 )
12627 FLOAT_H=float.h
12628 ;;
12629 x86_64 )
12630 # On x86_64 systems, the C compiler may still be generating
12631 # 32-bit code.
12632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12633 /* end confdefs.h. */
12634 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
12635 yes
12636 #endif
12637 _ACEOF
12638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12639 $EGREP "yes" >/dev/null 2>&1; then :
12640
12641 else
12642 FLOAT_H=float.h
12643 fi
12644 rm -f conftest*
12645
12646 ;;
12647 esac
12648 ;;
12649 linux*)
12650 case "$host_cpu" in
12651 powerpc*)
12652 FLOAT_H=float.h
12653 ;;
12654 esac
12655 ;;
12656 esac
12657 case "$host_os" in
12658 aix* | freebsd* | linux*)
12659 if test -n "$FLOAT_H"; then
12660 REPLACE_FLOAT_LDBL=1
12661 fi
12662 ;;
12663 esac
12664
12665 REPLACE_ITOLD=0
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
12667 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
12668 if test "${gl_cv_func_itold_works+set}" = set; then :
12669 $as_echo_n "(cached) " >&6
12670 else
12671
12672 if test "$cross_compiling" = yes; then :
12673 case "$host" in
12674 sparc*-*-linux*)
12675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12676 /* end confdefs.h. */
12677 #if defined __LP64__ || defined __arch64__
12678 yes
12679 #endif
12680 _ACEOF
12681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12682 $EGREP "yes" >/dev/null 2>&1; then :
12683 gl_cv_func_itold_works="guessing no"
12684 else
12685 gl_cv_func_itold_works="guessing yes"
12686 fi
12687 rm -f conftest*
12688
12689 ;;
12690 *) gl_cv_func_itold_works="guessing yes" ;;
12691 esac
12692
12693 else
12694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12695 /* end confdefs.h. */
12696
12697 int i = -1;
12698 volatile long double ld;
12699 int main ()
12700 {
12701 ld += i * 1.0L;
12702 if (ld > 0)
12703 return 1;
12704 return 0;
12705 }
12706 _ACEOF
12707 if ac_fn_c_try_run "$LINENO"; then :
12708 gl_cv_func_itold_works=yes
12709 else
12710 gl_cv_func_itold_works=no
12711 fi
12712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12713 conftest.$ac_objext conftest.beam conftest.$ac_ext
12714 fi
12715
12716
12717 fi
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
12719 $as_echo "$gl_cv_func_itold_works" >&6; }
12720 case "$gl_cv_func_itold_works" in
12721 *no)
12722 REPLACE_ITOLD=1
12723 FLOAT_H=float.h
12724 ;;
12725 esac
12726
12727 if test -n "$FLOAT_H"; then
12728
12729
12730
12731
12732
12733
12734
12735
12736 if test $gl_cv_have_include_next = yes; then
12737 gl_cv_next_float_h='<'float.h'>'
12738 else
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
12740 $as_echo_n "checking absolute name of <float.h>... " >&6; }
12741 if test "${gl_cv_next_float_h+set}" = set; then :
12742 $as_echo_n "(cached) " >&6
12743 else
12744
12745
12746
12747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12748 /* end confdefs.h. */
12749 #include <float.h>
12750 _ACEOF
12751 case "$host_os" in
12752 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12753 *) gl_absname_cpp="$ac_cpp" ;;
12754 esac
12755
12756 case "$host_os" in
12757 mingw*)
12758 gl_dirsep_regex='[/\\]'
12759 ;;
12760 *)
12761 gl_dirsep_regex='\/'
12762 ;;
12763 esac
12764 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12765 gl_header_literal_regex=`echo 'float.h' \
12766 | sed -e "$gl_make_literal_regex_sed"`
12767 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12768 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12769 s|^/[^/]|//&|
12770 p
12771 q
12772 }'
12773
12774 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12775 sed -n "$gl_absolute_header_sed"`
12776
12777 gl_header=$gl_cv_absolute_float_h
12778 gl_cv_next_float_h='"'$gl_header'"'
12779
12780
12781 fi
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
12783 $as_echo "$gl_cv_next_float_h" >&6; }
12784 fi
12785 NEXT_FLOAT_H=$gl_cv_next_float_h
12786
12787 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12788 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12789 gl_next_as_first_directive='<'float.h'>'
12790 else
12791 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12792 gl_next_as_first_directive=$gl_cv_next_float_h
12793 fi
12794 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
12795
12796
12797
12798
12799 fi
12800
12801 if test -n "$FLOAT_H"; then
12802 GL_GENERATE_FLOAT_H_TRUE=
12803 GL_GENERATE_FLOAT_H_FALSE='#'
12804 else
12805 GL_GENERATE_FLOAT_H_TRUE='#'
12806 GL_GENERATE_FLOAT_H_FALSE=
12807 fi
12808
12809
12810
12811 if test $REPLACE_FLOAT_LDBL = 1; then
12812
12813
12814
12815
12816
12817
12818
12819
12820 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
12821
12822 fi
12823 if test $REPLACE_ITOLD = 1; then
12824
12825
12826
12827
12828
12829
12830
12831
12832 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
12833
12834 fi
12835
12836
12837
12838
12839
12840 FNMATCH_H=
12841 gl_fnmatch_required_lowercase=`
12842 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
12843 `
12844 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
12846 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
12847 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
12848 $as_echo_n "(cached) " >&6
12849 else
12850 if test $gl_fnmatch_required = GNU; then
12851 gl_fnmatch_gnu_start=
12852 gl_fnmatch_gnu_end=
12853 else
12854 gl_fnmatch_gnu_start='#if 0'
12855 gl_fnmatch_gnu_end='#endif'
12856 fi
12857 if test "$cross_compiling" = yes; then :
12858 eval "$gl_fnmatch_cache_var=\"guessing no\""
12859 else
12860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861 /* end confdefs.h. */
12862 #include <fnmatch.h>
12863 static int
12864 y (char const *pattern, char const *string, int flags)
12865 {
12866 return fnmatch (pattern, string, flags) == 0;
12867 }
12868 static int
12869 n (char const *pattern, char const *string, int flags)
12870 {
12871 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
12872 }
12873
12874 int
12875 main ()
12876 {
12877 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
12878 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
12879 static char const A_1[] = { 'A' - 1, 0 };
12880 static char const A01[] = { 'A' + 1, 0 };
12881 static char const a_1[] = { 'a' - 1, 0 };
12882 static char const a01[] = { 'a' + 1, 0 };
12883 static char const bs_1[] = { '\\\\' - 1, 0 };
12884 static char const bs01[] = { '\\\\' + 1, 0 };
12885 int result = 0;
12886 if (!n ("a*", "", 0))
12887 return 1;
12888 if (!y ("a*", "abc", 0))
12889 return 1;
12890 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
12891 return 1;
12892 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
12893 return 2;
12894 if (!y ("a\\\\bc", "abc", 0))
12895 return 3;
12896 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
12897 return 3;
12898 if (!y ("*x", ".x", 0))
12899 return 4;
12900 if (!n ("*x", ".x", FNM_PERIOD))
12901 return 4;
12902 if (!y (Apat, "\\\\", 0))
12903 return 5;
12904 if (!y (Apat, "A", 0))
12905 return 5;
12906 if (!y (apat, "\\\\", 0))
12907 return 5;
12908 if (!y (apat, "a", 0))
12909 return 5;
12910 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
12911 return 5;
12912 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
12913 return 5;
12914 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
12915 return 5;
12916 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
12917 return 5;
12918 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
12919 return 5;
12920 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
12921 return 5;
12922 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
12923 return 5;
12924 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
12925 return 5;
12926 $gl_fnmatch_gnu_start
12927 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
12928 result |= 8;
12929 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
12930 result |= 16;
12931 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
12932 result |= 32;
12933 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
12934 result |= 64;
12935 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
12936 result |= 64;
12937 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
12938 result |= 64;
12939 $gl_fnmatch_gnu_end
12940 return result;
12941
12942 ;
12943 return 0;
12944 }
12945 _ACEOF
12946 if ac_fn_c_try_run "$LINENO"; then :
12947 eval "$gl_fnmatch_cache_var=yes"
12948 else
12949 eval "$gl_fnmatch_cache_var=no"
12950 fi
12951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12952 conftest.$ac_objext conftest.beam conftest.$ac_ext
12953 fi
12954
12955
12956 fi
12957 eval ac_res=\$$gl_fnmatch_cache_var
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12959 $as_echo "$ac_res" >&6; }
12960 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
12961 if test "$gl_fnmatch_result" = yes; then
12962 rm -f "$gl_source_base/fnmatch.h"
12963 else
12964 FNMATCH_H=fnmatch.h
12965 fi
12966
12967 if test -n "$FNMATCH_H"; then
12968 GL_GENERATE_FNMATCH_H_TRUE=
12969 GL_GENERATE_FNMATCH_H_FALSE='#'
12970 else
12971 GL_GENERATE_FNMATCH_H_TRUE='#'
12972 GL_GENERATE_FNMATCH_H_FALSE=
12973 fi
12974
12975
12976 if test -n "$FNMATCH_H"; then
12977
12978
12979
12980
12981
12982
12983
12984
12985 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
12986
12987
12988
12989 cat >>confdefs.h <<_ACEOF
12990 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
12991 _ACEOF
12992
12993
12994 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
12995 "
12996 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
12997 ac_have_decl=1
12998 else
12999 ac_have_decl=0
13000 fi
13001
13002 cat >>confdefs.h <<_ACEOF
13003 #define HAVE_DECL_ISBLANK $ac_have_decl
13004 _ACEOF
13005
13006
13007
13008
13009 fi
13010
13011
13012
13013
13014
13015 if test -n "$FNMATCH_H"; then
13016
13017
13018
13019
13020
13021
13022
13023
13024 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
13025
13026
13027
13028 cat >>confdefs.h <<_ACEOF
13029 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
13030 _ACEOF
13031
13032
13033 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
13034 "
13035 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
13036 ac_have_decl=1
13037 else
13038 ac_have_decl=0
13039 fi
13040
13041 cat >>confdefs.h <<_ACEOF
13042 #define HAVE_DECL_ISBLANK $ac_have_decl
13043 _ACEOF
13044
13045
13046
13047
13048 fi
13049
13050
13051
13052 FREXP_LIBM=
13053 if test $gl_cv_func_frexp_no_libm = no; then
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
13055 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
13056 if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
13057 $as_echo_n "(cached) " >&6
13058 else
13059
13060 save_LIBS="$LIBS"
13061 LIBS="$LIBS -lm"
13062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13063 /* end confdefs.h. */
13064 #include <math.h>
13065 double x;
13066 int
13067 main ()
13068 {
13069 int e; return frexp (x, &e) > 0;
13070 ;
13071 return 0;
13072 }
13073 _ACEOF
13074 if ac_fn_c_try_link "$LINENO"; then :
13075 gl_cv_func_frexp_in_libm=yes
13076 else
13077 gl_cv_func_frexp_in_libm=no
13078 fi
13079 rm -f core conftest.err conftest.$ac_objext \
13080 conftest$ac_exeext conftest.$ac_ext
13081 LIBS="$save_LIBS"
13082
13083 fi
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
13085 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
13086 if test $gl_cv_func_frexp_in_libm = yes; then
13087 FREXP_LIBM=-lm
13088 fi
13089 fi
13090 if test $gl_cv_func_frexp_no_libm = yes \
13091 || test $gl_cv_func_frexp_in_libm = yes; then
13092 save_LIBS="$LIBS"
13093 LIBS="$LIBS $FREXP_LIBM"
13094
13095
13096
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
13098 $as_echo_n "checking whether frexp works... " >&6; }
13099 if test "${gl_cv_func_frexp_works+set}" = set; then :
13100 $as_echo_n "(cached) " >&6
13101 else
13102
13103 if test "$cross_compiling" = yes; then :
13104 case "$host_os" in
13105 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
13106 *) gl_cv_func_frexp_works="guessing yes";;
13107 esac
13108
13109 else
13110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13111 /* end confdefs.h. */
13112
13113 #include <float.h>
13114 #include <math.h>
13115 #include <string.h>
13116 #if HAVE_DECL_ALARM
13117 # include <signal.h>
13118 # include <unistd.h>
13119 #endif
13120 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
13121 ICC 10.0 has a bug when optimizing the expression -zero.
13122 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
13123 to PowerPC on Mac OS X 10.5. */
13124 #if defined __hpux || defined __sgi || defined __ICC
13125 static double
13126 compute_minus_zero (void)
13127 {
13128 return -DBL_MIN * DBL_MIN;
13129 }
13130 # define minus_zero compute_minus_zero ()
13131 #else
13132 double minus_zero = -0.0;
13133 #endif
13134 int main()
13135 {
13136 int result = 0;
13137 int i;
13138 volatile double x;
13139 double zero = 0.0;
13140 #if HAVE_DECL_ALARM
13141 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
13142 number. Let the test fail in this case. */
13143 signal (SIGALRM, SIG_DFL);
13144 alarm (5);
13145 #endif
13146 /* Test on denormalized numbers. */
13147 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
13148 ;
13149 if (x > 0.0)
13150 {
13151 int exp;
13152 double y = frexp (x, &exp);
13153 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
13154 On NetBSD: y = 0.75. Correct: y = 0.5. */
13155 if (y != 0.5)
13156 result |= 1;
13157 }
13158 /* Test on infinite numbers. */
13159 x = 1.0 / zero;
13160 {
13161 int exp;
13162 double y = frexp (x, &exp);
13163 if (y != x)
13164 result |= 2;
13165 }
13166 /* Test on negative zero. */
13167 x = minus_zero;
13168 {
13169 int exp;
13170 double y = frexp (x, &exp);
13171 if (memcmp (&y, &x, sizeof x))
13172 result |= 4;
13173 }
13174 return result;
13175 }
13176 _ACEOF
13177 if ac_fn_c_try_run "$LINENO"; then :
13178 gl_cv_func_frexp_works=yes
13179 else
13180 gl_cv_func_frexp_works=no
13181 fi
13182 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13183 conftest.$ac_objext conftest.beam conftest.$ac_ext
13184 fi
13185
13186
13187 fi
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
13189 $as_echo "$gl_cv_func_frexp_works" >&6; }
13190
13191 LIBS="$save_LIBS"
13192 case "$gl_cv_func_frexp_works" in
13193 *yes) gl_func_frexp=yes ;;
13194 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
13195 esac
13196 else
13197 gl_func_frexp=no
13198 fi
13199 if test $gl_func_frexp = yes; then
13200
13201 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
13202
13203 fi
13204
13205
13206 if test $gl_func_frexp != yes; then
13207
13208
13209
13210
13211
13212
13213
13214
13215 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
13216
13217 fi
13218
13219
13220
13221
13222
13223 GNULIB_FREXP=1
13224
13225
13226
13227
13228
13229 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
13240 "
13241 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
13242
13243 else
13244 HAVE_DECL_FREXPL=0
13245 fi
13246
13247
13248 FREXPL_LIBM=
13249 if test $HAVE_DECL_FREXPL = 1; then
13250
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
13252 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
13253 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
13254 $as_echo_n "(cached) " >&6
13255 else
13256
13257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13258 /* end confdefs.h. */
13259 #include <math.h>
13260 long double x;
13261 int
13262 main ()
13263 {
13264 int e; return frexpl (x, &e) > 0;
13265 ;
13266 return 0;
13267 }
13268 _ACEOF
13269 if ac_fn_c_try_link "$LINENO"; then :
13270 gl_cv_func_frexpl_no_libm=yes
13271 else
13272 gl_cv_func_frexpl_no_libm=no
13273 fi
13274 rm -f core conftest.err conftest.$ac_objext \
13275 conftest$ac_exeext conftest.$ac_ext
13276
13277 fi
13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
13279 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
13280
13281 if test $gl_cv_func_frexpl_no_libm = no; then
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
13283 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
13284 if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
13285 $as_echo_n "(cached) " >&6
13286 else
13287
13288 save_LIBS="$LIBS"
13289 LIBS="$LIBS -lm"
13290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h. */
13292 #include <math.h>
13293 long double x;
13294 int
13295 main ()
13296 {
13297 int e; return frexpl (x, &e) > 0;
13298 ;
13299 return 0;
13300 }
13301 _ACEOF
13302 if ac_fn_c_try_link "$LINENO"; then :
13303 gl_cv_func_frexpl_in_libm=yes
13304 else
13305 gl_cv_func_frexpl_in_libm=no
13306 fi
13307 rm -f core conftest.err conftest.$ac_objext \
13308 conftest$ac_exeext conftest.$ac_ext
13309 LIBS="$save_LIBS"
13310
13311 fi
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
13313 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
13314 if test $gl_cv_func_frexpl_in_libm = yes; then
13315 FREXPL_LIBM=-lm
13316 fi
13317 fi
13318 if test $gl_cv_func_frexpl_no_libm = yes \
13319 || test $gl_cv_func_frexpl_in_libm = yes; then
13320 save_LIBS="$LIBS"
13321 LIBS="$LIBS $FREXPL_LIBM"
13322
13323
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
13325 $as_echo_n "checking whether frexpl works... " >&6; }
13326 if test "${gl_cv_func_frexpl_works+set}" = set; then :
13327 $as_echo_n "(cached) " >&6
13328 else
13329
13330 if test "$cross_compiling" = yes; then :
13331
13332 case "$host_os" in
13333 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
13334 gl_cv_func_frexpl_works="guessing no";;
13335 *) gl_cv_func_frexpl_works="guessing yes";;
13336 esac
13337
13338 else
13339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13340 /* end confdefs.h. */
13341
13342 #include <float.h>
13343 #include <math.h>
13344 /* Override the values of <float.h>, like done in float.in.h. */
13345 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
13346 # undef LDBL_MIN_EXP
13347 # define LDBL_MIN_EXP (-16381)
13348 #endif
13349 #if defined __i386__ && defined __FreeBSD__
13350 # undef LDBL_MIN_EXP
13351 # define LDBL_MIN_EXP (-16381)
13352 #endif
13353 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
13354 # undef LDBL_MIN_EXP
13355 # define LDBL_MIN_EXP DBL_MIN_EXP
13356 #endif
13357 #if defined __sgi && (LDBL_MANT_DIG >= 106)
13358 # if defined __GNUC__
13359 # undef LDBL_MIN_EXP
13360 # define LDBL_MIN_EXP DBL_MIN_EXP
13361 # endif
13362 #endif
13363 extern
13364 #ifdef __cplusplus
13365 "C"
13366 #endif
13367 long double frexpl (long double, int *);
13368 int main()
13369 {
13370 int result = 0;
13371 volatile long double x;
13372 /* Test on finite numbers that fails on AIX 5.1. */
13373 x = 16.0L;
13374 {
13375 int exp = -9999;
13376 frexpl (x, &exp);
13377 if (exp != 5)
13378 result |= 1;
13379 }
13380 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
13381 function returns an invalid (incorrectly normalized) value: it returns
13382 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
13383 but the correct result is
13384 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
13385 x = 1.01L;
13386 {
13387 int exp = -9999;
13388 long double y = frexpl (x, &exp);
13389 if (!(exp == 1 && y == 0.505L))
13390 result |= 2;
13391 }
13392 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
13393 LDBL_MAX_EXP = 16384.
13394 In the loop end test, we test x against Infinity, rather than comparing
13395 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
13396 {
13397 int i;
13398 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
13399 {
13400 int exp = -9999;
13401 frexpl (x, &exp);
13402 if (exp != i)
13403 {
13404 result |= 4;
13405 break;
13406 }
13407 }
13408 }
13409 /* Test on denormalized numbers. */
13410 {
13411 int i;
13412 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
13413 ;
13414 if (x > 0.0L)
13415 {
13416 int exp;
13417 long double y = frexpl (x, &exp);
13418 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
13419 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
13420 if (exp != LDBL_MIN_EXP - 1)
13421 result |= 8;
13422 }
13423 }
13424 /* Test on infinite numbers. */
13425 x = 1.0L / 0.0L;
13426 {
13427 int exp;
13428 long double y = frexpl (x, &exp);
13429 if (y != x)
13430 result |= 16;
13431 }
13432 return result;
13433 }
13434 _ACEOF
13435 if ac_fn_c_try_run "$LINENO"; then :
13436 gl_cv_func_frexpl_works=yes
13437 else
13438 gl_cv_func_frexpl_works=no
13439 fi
13440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13441 conftest.$ac_objext conftest.beam conftest.$ac_ext
13442 fi
13443
13444
13445 fi
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
13447 $as_echo "$gl_cv_func_frexpl_works" >&6; }
13448
13449 LIBS="$save_LIBS"
13450 case "$gl_cv_func_frexpl_works" in
13451 *yes) gl_func_frexpl=yes ;;
13452 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
13453 esac
13454 else
13455 gl_func_frexpl=no
13456 fi
13457 if test $gl_func_frexpl = yes; then
13458
13459 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
13460
13461 fi
13462 fi
13463 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
13464 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
13465
13466 FREXPL_LIBM="$FREXP_LIBM"
13467 else
13468 FREXPL_LIBM=
13469 fi
13470 fi
13471
13472
13473 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
13474
13475
13476
13477
13478
13479
13480
13481
13482 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
13483
13484 fi
13485
13486
13487
13488
13489
13490 GNULIB_FREXPL=1
13491
13492
13493
13494
13495
13496 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506 gl_gettimeofday_timezone=void
13507 if test $ac_cv_func_gettimeofday != yes; then
13508 HAVE_GETTIMEOFDAY=0
13509 else
13510
13511
13512
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
13514 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
13515 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
13516 $as_echo_n "(cached) " >&6
13517 else
13518 if test "$cross_compiling" = yes; then :
13519 # When cross-compiling:
13520 case "$host_os" in
13521 # Guess all is fine on glibc systems.
13522 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
13523 # If we don't know, assume the worst.
13524 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
13525 esac
13526
13527 else
13528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13529 /* end confdefs.h. */
13530 #include <string.h>
13531 #include <sys/time.h>
13532 #include <time.h>
13533 #include <stdlib.h>
13534
13535 int
13536 main ()
13537 {
13538
13539 time_t t = 0;
13540 struct tm *lt;
13541 struct tm saved_lt;
13542 struct timeval tv;
13543 lt = localtime (&t);
13544 saved_lt = *lt;
13545 gettimeofday (&tv, NULL);
13546 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
13547
13548 ;
13549 return 0;
13550 }
13551 _ACEOF
13552 if ac_fn_c_try_run "$LINENO"; then :
13553 gl_cv_func_gettimeofday_clobber=no
13554 else
13555 gl_cv_func_gettimeofday_clobber=yes
13556 fi
13557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13558 conftest.$ac_objext conftest.beam conftest.$ac_ext
13559 fi
13560
13561 fi
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
13563 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
13564
13565 case "$gl_cv_func_gettimeofday_clobber" in
13566 *yes)
13567 REPLACE_GETTIMEOFDAY=1
13568
13569 REPLACE_GMTIME=1
13570 REPLACE_LOCALTIME=1
13571
13572
13573 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
13574
13575 ;;
13576 esac
13577
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
13579 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
13580 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
13581 $as_echo_n "(cached) " >&6
13582 else
13583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13584 /* end confdefs.h. */
13585 #include <sys/time.h>
13586 struct timeval c;
13587 int gettimeofday (struct timeval *restrict, void *restrict);
13588
13589 int
13590 main ()
13591 {
13592 /* glibc uses struct timezone * rather than the POSIX void *
13593 if _GNU_SOURCE is defined. However, since the only portable
13594 use of gettimeofday uses NULL as the second parameter, and
13595 since the glibc definition is actually more typesafe, it is
13596 not worth wrapping this to get a compliant signature. */
13597 int (*f) (struct timeval *restrict, void *restrict)
13598 = gettimeofday;
13599 int x = f (&c, 0);
13600 return !(x | c.tv_sec | c.tv_usec);
13601
13602 ;
13603 return 0;
13604 }
13605 _ACEOF
13606 if ac_fn_c_try_compile "$LINENO"; then :
13607 gl_cv_func_gettimeofday_posix_signature=yes
13608 else
13609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13610 /* end confdefs.h. */
13611 #include <sys/time.h>
13612 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
13613
13614 int
13615 main ()
13616 {
13617
13618 ;
13619 return 0;
13620 }
13621 _ACEOF
13622 if ac_fn_c_try_compile "$LINENO"; then :
13623 gl_cv_func_gettimeofday_posix_signature=almost
13624 else
13625 gl_cv_func_gettimeofday_posix_signature=no
13626 fi
13627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13628 fi
13629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13630 fi
13631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
13632 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
13633 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
13634 gl_gettimeofday_timezone='struct timezone'
13635 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
13636 REPLACE_GETTIMEOFDAY=1
13637 fi
13638 if test $REPLACE_STRUCT_TIMEVAL = 1; then
13639 REPLACE_GETTIMEOFDAY=1
13640 fi
13641
13642 fi
13643
13644 cat >>confdefs.h <<_ACEOF
13645 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
13646 _ACEOF
13647
13648
13649 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
13650
13651
13652
13653
13654
13655
13656
13657
13658 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
13659
13660
13661 for ac_header in sys/timeb.h
13662 do :
13663 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
13664 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
13665 cat >>confdefs.h <<_ACEOF
13666 #define HAVE_SYS_TIMEB_H 1
13667 _ACEOF
13668
13669 fi
13670
13671 done
13672
13673 for ac_func in _ftime
13674 do :
13675 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
13676 if test "x$ac_cv_func__ftime" = x""yes; then :
13677 cat >>confdefs.h <<_ACEOF
13678 #define HAVE__FTIME 1
13679 _ACEOF
13680
13681 fi
13682 done
13683
13684
13685 fi
13686
13687
13688
13689
13690
13691 GNULIB_GETTIMEOFDAY=1
13692
13693
13694
13695
13696
13697 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
13698
13699
13700
13701
13702
13703
13704
13705
13706 PRIPTR_PREFIX=
13707 if test -n "$STDINT_H"; then
13708 PRIPTR_PREFIX='"l"'
13709 else
13710 for glpfx in '' l ll I64; do
13711 case $glpfx in
13712 '') gltype1='int';;
13713 l) gltype1='long int';;
13714 ll) gltype1='long long int';;
13715 I64) gltype1='__int64';;
13716 esac
13717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13718 /* end confdefs.h. */
13719 #include <stdint.h>
13720 extern intptr_t foo;
13721 extern $gltype1 foo;
13722 int
13723 main ()
13724 {
13725
13726 ;
13727 return 0;
13728 }
13729 _ACEOF
13730 if ac_fn_c_try_compile "$LINENO"; then :
13731 PRIPTR_PREFIX='"'$glpfx'"'
13732 fi
13733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13734 test -n "$PRIPTR_PREFIX" && break
13735 done
13736 fi
13737
13738
13739
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
13741 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
13742 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
13743 $as_echo_n "(cached) " >&6
13744 else
13745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13746 /* end confdefs.h. */
13747 /* Work also in C++ mode. */
13748 #define __STDC_LIMIT_MACROS 1
13749
13750 /* Work if build is not clean. */
13751 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13752
13753 #include <limits.h>
13754 #if HAVE_STDINT_H
13755 #include <stdint.h>
13756 #endif
13757
13758 #if defined INT32_MAX && defined INTMAX_MAX
13759 #define CONDITION (INT32_MAX < INTMAX_MAX)
13760 #elif HAVE_LONG_LONG_INT
13761 #define CONDITION (sizeof (int) < sizeof (long long int))
13762 #else
13763 #define CONDITION 0
13764 #endif
13765 int test[CONDITION ? 1 : -1];
13766 int
13767 main ()
13768 {
13769
13770 ;
13771 return 0;
13772 }
13773 _ACEOF
13774 if ac_fn_c_try_compile "$LINENO"; then :
13775 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
13776 else
13777 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
13778 fi
13779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13780 fi
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
13782 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
13783 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
13784 INT32_MAX_LT_INTMAX_MAX=1;
13785 else
13786 INT32_MAX_LT_INTMAX_MAX=0;
13787 fi
13788
13789
13790 if test $APPLE_UNIVERSAL_BUILD = 0; then
13791
13792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
13793 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
13794 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
13795 $as_echo_n "(cached) " >&6
13796 else
13797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13798 /* end confdefs.h. */
13799 /* Work also in C++ mode. */
13800 #define __STDC_LIMIT_MACROS 1
13801
13802 /* Work if build is not clean. */
13803 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13804
13805 #include <limits.h>
13806 #if HAVE_STDINT_H
13807 #include <stdint.h>
13808 #endif
13809
13810 #if defined INT64_MAX
13811 #define CONDITION (INT64_MAX == LONG_MAX)
13812 #elif HAVE_LONG_LONG_INT
13813 #define CONDITION (sizeof (long long int) == sizeof (long int))
13814 #else
13815 #define CONDITION 0
13816 #endif
13817 int test[CONDITION ? 1 : -1];
13818 int
13819 main ()
13820 {
13821
13822 ;
13823 return 0;
13824 }
13825 _ACEOF
13826 if ac_fn_c_try_compile "$LINENO"; then :
13827 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
13828 else
13829 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
13830 fi
13831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13832 fi
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
13834 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
13835 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
13836 INT64_MAX_EQ_LONG_MAX=1;
13837 else
13838 INT64_MAX_EQ_LONG_MAX=0;
13839 fi
13840
13841
13842 else
13843 INT64_MAX_EQ_LONG_MAX=-1
13844 fi
13845
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
13847 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
13848 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
13849 $as_echo_n "(cached) " >&6
13850 else
13851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13852 /* end confdefs.h. */
13853 /* Work also in C++ mode. */
13854 #define __STDC_LIMIT_MACROS 1
13855
13856 /* Work if build is not clean. */
13857 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13858
13859 #include <limits.h>
13860 #if HAVE_STDINT_H
13861 #include <stdint.h>
13862 #endif
13863
13864 #if defined UINT32_MAX && defined UINTMAX_MAX
13865 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
13866 #elif HAVE_LONG_LONG_INT
13867 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
13868 #else
13869 #define CONDITION 0
13870 #endif
13871 int test[CONDITION ? 1 : -1];
13872 int
13873 main ()
13874 {
13875
13876 ;
13877 return 0;
13878 }
13879 _ACEOF
13880 if ac_fn_c_try_compile "$LINENO"; then :
13881 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
13882 else
13883 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
13884 fi
13885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13886 fi
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
13888 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
13889 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
13890 UINT32_MAX_LT_UINTMAX_MAX=1;
13891 else
13892 UINT32_MAX_LT_UINTMAX_MAX=0;
13893 fi
13894
13895
13896 if test $APPLE_UNIVERSAL_BUILD = 0; then
13897
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
13899 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
13900 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
13901 $as_echo_n "(cached) " >&6
13902 else
13903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13904 /* end confdefs.h. */
13905 /* Work also in C++ mode. */
13906 #define __STDC_LIMIT_MACROS 1
13907
13908 /* Work if build is not clean. */
13909 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13910
13911 #include <limits.h>
13912 #if HAVE_STDINT_H
13913 #include <stdint.h>
13914 #endif
13915
13916 #if defined UINT64_MAX
13917 #define CONDITION (UINT64_MAX == ULONG_MAX)
13918 #elif HAVE_LONG_LONG_INT
13919 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
13920 #else
13921 #define CONDITION 0
13922 #endif
13923 int test[CONDITION ? 1 : -1];
13924 int
13925 main ()
13926 {
13927
13928 ;
13929 return 0;
13930 }
13931 _ACEOF
13932 if ac_fn_c_try_compile "$LINENO"; then :
13933 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
13934 else
13935 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
13936 fi
13937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13938 fi
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
13940 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
13941 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
13942 UINT64_MAX_EQ_ULONG_MAX=1;
13943 else
13944 UINT64_MAX_EQ_ULONG_MAX=0;
13945 fi
13946
13947
13948 else
13949 UINT64_MAX_EQ_ULONG_MAX=-1
13950 fi
13951
13952
13953
13954
13955
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
13957 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
13958 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
13959 $as_echo_n "(cached) " >&6
13960 else
13961
13962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13963 /* end confdefs.h. */
13964 #include <math.h>
13965 #if __GNUC__ >= 4
13966 # undef isnand
13967 # define isnand(x) __builtin_isnan ((double)(x))
13968 #else
13969 # undef isnand
13970 # define isnand(x) isnan ((double)(x))
13971 #endif
13972 double x;
13973 int
13974 main ()
13975 {
13976 return isnand (x);
13977 ;
13978 return 0;
13979 }
13980 _ACEOF
13981 if ac_fn_c_try_link "$LINENO"; then :
13982 gl_cv_func_isnand_no_libm=yes
13983 else
13984 gl_cv_func_isnand_no_libm=no
13985 fi
13986 rm -f core conftest.err conftest.$ac_objext \
13987 conftest$ac_exeext conftest.$ac_ext
13988
13989 fi
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
13991 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
13992
13993 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
13994 if test $gl_cv_func_isnand_no_libm = yes; then
13995
13996 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
13997
13998 fi
13999
14000 if test $gl_func_isnand_no_libm != yes; then
14001
14002
14003
14004
14005
14006
14007
14008
14009 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
14010
14011
14012
14013
14014 fi
14015
14016
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
14018 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
14019 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
14020 $as_echo_n "(cached) " >&6
14021 else
14022
14023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14024 /* end confdefs.h. */
14025 #include <math.h>
14026 #if __GNUC__ >= 4
14027 # undef isnanl
14028 # define isnanl(x) __builtin_isnanl ((long double)(x))
14029 #elif defined isnan
14030 # undef isnanl
14031 # define isnanl(x) isnan ((long double)(x))
14032 #endif
14033 long double x;
14034 int
14035 main ()
14036 {
14037 return isnanl (x);
14038 ;
14039 return 0;
14040 }
14041 _ACEOF
14042 if ac_fn_c_try_link "$LINENO"; then :
14043 gl_cv_func_isnanl_no_libm=yes
14044 else
14045 gl_cv_func_isnanl_no_libm=no
14046 fi
14047 rm -f core conftest.err conftest.$ac_objext \
14048 conftest$ac_exeext conftest.$ac_ext
14049
14050 fi
14051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
14052 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
14053
14054 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
14055 if test $gl_func_isnanl_no_libm = yes; then
14056
14057
14058
14059
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
14061 $as_echo_n "checking whether isnanl works... " >&6; }
14062 if test "${gl_cv_func_isnanl_works+set}" = set; then :
14063 $as_echo_n "(cached) " >&6
14064 else
14065
14066 if test "$cross_compiling" = yes; then :
14067 gl_cv_func_isnanl_works="guessing yes"
14068 else
14069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14070 /* end confdefs.h. */
14071
14072 #include <float.h>
14073 #include <limits.h>
14074 #include <math.h>
14075 #if __GNUC__ >= 4
14076 # undef isnanl
14077 # define isnanl(x) __builtin_isnanl ((long double)(x))
14078 #elif defined isnan
14079 # undef isnanl
14080 # define isnanl(x) isnan ((long double)(x))
14081 #endif
14082 #define NWORDS \
14083 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14084 typedef union { unsigned int word[NWORDS]; long double value; }
14085 memory_long_double;
14086 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
14087 runtime type conversion. */
14088 #ifdef __sgi
14089 static long double NaNl ()
14090 {
14091 double zero = 0.0;
14092 return zero / zero;
14093 }
14094 #else
14095 # define NaNl() (0.0L / 0.0L)
14096 #endif
14097 int main ()
14098 {
14099 int result = 0;
14100
14101 if (!isnanl (NaNl ()))
14102 result |= 1;
14103
14104 {
14105 memory_long_double m;
14106 unsigned int i;
14107
14108 /* The isnanl function should be immune against changes in the sign bit and
14109 in the mantissa bits. The xor operation twiddles a bit that can only be
14110 a sign bit or a mantissa bit (since the exponent never extends to
14111 bit 31). */
14112 m.value = NaNl ();
14113 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
14114 for (i = 0; i < NWORDS; i++)
14115 m.word[i] |= 1;
14116 if (!isnanl (m.value))
14117 result |= 1;
14118 }
14119
14120 #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
14121 /* Representation of an 80-bit 'long double' as an initializer for a sequence
14122 of 'unsigned int' words. */
14123 # ifdef WORDS_BIGENDIAN
14124 # define LDBL80_WORDS(exponent,manthi,mantlo) \
14125 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
14126 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
14127 (unsigned int) (mantlo) << 16 \
14128 }
14129 # else
14130 # define LDBL80_WORDS(exponent,manthi,mantlo) \
14131 { mantlo, manthi, exponent }
14132 # endif
14133 { /* Quiet NaN. */
14134 static memory_long_double x =
14135 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
14136 if (!isnanl (x.value))
14137 result |= 2;
14138 }
14139 {
14140 /* Signalling NaN. */
14141 static memory_long_double x =
14142 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
14143 if (!isnanl (x.value))
14144 result |= 2;
14145 }
14146 /* isnanl should return something even for noncanonical values. */
14147 { /* Pseudo-NaN. */
14148 static memory_long_double x =
14149 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
14150 if (isnanl (x.value) && !isnanl (x.value))
14151 result |= 4;
14152 }
14153 { /* Pseudo-Infinity. */
14154 static memory_long_double x =
14155 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
14156 if (isnanl (x.value) && !isnanl (x.value))
14157 result |= 8;
14158 }
14159 { /* Pseudo-Zero. */
14160 static memory_long_double x =
14161 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
14162 if (isnanl (x.value) && !isnanl (x.value))
14163 result |= 16;
14164 }
14165 { /* Unnormalized number. */
14166 static memory_long_double x =
14167 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
14168 if (isnanl (x.value) && !isnanl (x.value))
14169 result |= 32;
14170 }
14171 { /* Pseudo-Denormal. */
14172 static memory_long_double x =
14173 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
14174 if (isnanl (x.value) && !isnanl (x.value))
14175 result |= 64;
14176 }
14177 #endif
14178
14179 return result;
14180 }
14181 _ACEOF
14182 if ac_fn_c_try_run "$LINENO"; then :
14183 gl_cv_func_isnanl_works=yes
14184 else
14185 gl_cv_func_isnanl_works=no
14186 fi
14187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14188 conftest.$ac_objext conftest.beam conftest.$ac_ext
14189 fi
14190
14191
14192 fi
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
14194 $as_echo "$gl_cv_func_isnanl_works" >&6; }
14195
14196 case "$gl_cv_func_isnanl_works" in
14197 *yes) ;;
14198 *) gl_func_isnanl_no_libm=no ;;
14199 esac
14200 fi
14201 if test $gl_func_isnanl_no_libm = yes; then
14202
14203 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
14204
14205 fi
14206
14207 if test $gl_func_isnanl_no_libm != yes; then
14208
14209
14210
14211
14212
14213
14214
14215
14216 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
14217
14218
14219
14220
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
14222 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
14223 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
14224 $as_echo_n "(cached) " >&6
14225 else
14226
14227 if test "$cross_compiling" = yes; then :
14228
14229 gl_cv_cc_long_double_expbit0="unknown"
14230
14231 else
14232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14233 /* end confdefs.h. */
14234
14235 #include <float.h>
14236 #include <stddef.h>
14237 #include <stdio.h>
14238 #include <string.h>
14239 #define NWORDS \
14240 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14241 typedef union { long double value; unsigned int word[NWORDS]; }
14242 memory_long_double;
14243 static unsigned int ored_words[NWORDS];
14244 static unsigned int anded_words[NWORDS];
14245 static void add_to_ored_words (long double x)
14246 {
14247 memory_long_double m;
14248 size_t i;
14249 /* Clear it first, in case
14250 sizeof (long double) < sizeof (memory_long_double). */
14251 memset (&m, 0, sizeof (memory_long_double));
14252 m.value = x;
14253 for (i = 0; i < NWORDS; i++)
14254 {
14255 ored_words[i] |= m.word[i];
14256 anded_words[i] &= m.word[i];
14257 }
14258 }
14259 int main ()
14260 {
14261 size_t j;
14262 FILE *fp = fopen ("conftest.out", "w");
14263 if (fp == NULL)
14264 return 1;
14265 for (j = 0; j < NWORDS; j++)
14266 anded_words[j] = ~ (unsigned int) 0;
14267 add_to_ored_words (0.25L);
14268 add_to_ored_words (0.5L);
14269 add_to_ored_words (1.0L);
14270 add_to_ored_words (2.0L);
14271 add_to_ored_words (4.0L);
14272 /* Remove bits that are common (e.g. if representation of the first mantissa
14273 bit is explicit). */
14274 for (j = 0; j < NWORDS; j++)
14275 ored_words[j] &= ~anded_words[j];
14276 /* Now find the nonzero word. */
14277 for (j = 0; j < NWORDS; j++)
14278 if (ored_words[j] != 0)
14279 break;
14280 if (j < NWORDS)
14281 {
14282 size_t i;
14283 for (i = j + 1; i < NWORDS; i++)
14284 if (ored_words[i] != 0)
14285 {
14286 fprintf (fp, "unknown");
14287 return (fclose (fp) != 0);
14288 }
14289 for (i = 0; ; i++)
14290 if ((ored_words[j] >> i) & 1)
14291 {
14292 fprintf (fp, "word %d bit %d", (int) j, (int) i);
14293 return (fclose (fp) != 0);
14294 }
14295 }
14296 fprintf (fp, "unknown");
14297 return (fclose (fp) != 0);
14298 }
14299
14300 _ACEOF
14301 if ac_fn_c_try_run "$LINENO"; then :
14302 gl_cv_cc_long_double_expbit0=`cat conftest.out`
14303 else
14304 gl_cv_cc_long_double_expbit0="unknown"
14305 fi
14306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14307 conftest.$ac_objext conftest.beam conftest.$ac_ext
14308 fi
14309
14310 rm -f conftest.out
14311
14312 fi
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
14314 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
14315 case "$gl_cv_cc_long_double_expbit0" in
14316 word*bit*)
14317 word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
14318 bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
14319
14320 cat >>confdefs.h <<_ACEOF
14321 #define LDBL_EXPBIT0_WORD $word
14322 _ACEOF
14323
14324
14325 cat >>confdefs.h <<_ACEOF
14326 #define LDBL_EXPBIT0_BIT $bit
14327 _ACEOF
14328
14329 ;;
14330 esac
14331
14332
14333
14334 fi
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
14345
14346
14347
14348
14349 if test $ac_cv_func_lstat = yes; then
14350
14351 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
14352 *no)
14353 REPLACE_LSTAT=1
14354 ;;
14355 esac
14356 else
14357 HAVE_LSTAT=0
14358 fi
14359
14360 if test $REPLACE_LSTAT = 1; then
14361
14362
14363
14364
14365
14366
14367
14368
14369 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
14370
14371 :
14372 fi
14373
14374
14375
14376
14377
14378 GNULIB_LSTAT=1
14379
14380
14381
14382
14383
14384 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
14385
14386
14387
14388
14389
14390
14391 if test $gl_cv_func_malloc_posix = yes; then
14392
14393 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
14394
14395 else
14396 REPLACE_MALLOC=1
14397 fi
14398
14399 if test $REPLACE_MALLOC = 1; then
14400
14401
14402
14403
14404
14405
14406
14407
14408 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
14409
14410 fi
14411
14412
14413
14414
14415
14416 GNULIB_MALLOC_POSIX=1
14417
14418
14419
14420
14421
14422 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441 if test $gl_cv_have_include_next = yes; then
14442 gl_cv_next_math_h='<'math.h'>'
14443 else
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
14445 $as_echo_n "checking absolute name of <math.h>... " >&6; }
14446 if test "${gl_cv_next_math_h+set}" = set; then :
14447 $as_echo_n "(cached) " >&6
14448 else
14449
14450 if test $ac_cv_header_math_h = yes; then
14451
14452
14453
14454
14455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h. */
14457 #include <math.h>
14458 _ACEOF
14459 case "$host_os" in
14460 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14461 *) gl_absname_cpp="$ac_cpp" ;;
14462 esac
14463
14464 case "$host_os" in
14465 mingw*)
14466 gl_dirsep_regex='[/\\]'
14467 ;;
14468 *)
14469 gl_dirsep_regex='\/'
14470 ;;
14471 esac
14472 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14473 gl_header_literal_regex=`echo 'math.h' \
14474 | sed -e "$gl_make_literal_regex_sed"`
14475 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14476 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14477 s|^/[^/]|//&|
14478 p
14479 q
14480 }'
14481
14482 gl_cv_absolute_math_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14483 sed -n "$gl_absolute_header_sed"`
14484
14485 gl_header=$gl_cv_absolute_math_h
14486 gl_cv_next_math_h='"'$gl_header'"'
14487 else
14488 gl_cv_next_math_h='<'math.h'>'
14489 fi
14490
14491
14492 fi
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
14494 $as_echo "$gl_cv_next_math_h" >&6; }
14495 fi
14496 NEXT_MATH_H=$gl_cv_next_math_h
14497
14498 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14499 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14500 gl_next_as_first_directive='<'math.h'>'
14501 else
14502 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14503 gl_next_as_first_directive=$gl_cv_next_math_h
14504 fi
14505 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
14506
14507
14508
14509
14510
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
14512 $as_echo_n "checking whether NAN macro works... " >&6; }
14513 if test "${gl_cv_header_math_nan_works+set}" = set; then :
14514 $as_echo_n "(cached) " >&6
14515 else
14516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14517 /* end confdefs.h. */
14518 #include <math.h>
14519 int
14520 main ()
14521 {
14522 /* Solaris 10 has a broken definition of NAN. Other platforms
14523 fail to provide NAN, or provide it only in C99 mode; this
14524 test only needs to fail when NAN is provided but wrong. */
14525 float f = 1.0f;
14526 #ifdef NAN
14527 f = NAN;
14528 #endif
14529 return f == 0;
14530 ;
14531 return 0;
14532 }
14533 _ACEOF
14534 if ac_fn_c_try_compile "$LINENO"; then :
14535 gl_cv_header_math_nan_works=yes
14536 else
14537 gl_cv_header_math_nan_works=no
14538 fi
14539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14540 fi
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
14542 $as_echo "$gl_cv_header_math_nan_works" >&6; }
14543 if test $gl_cv_header_math_nan_works = no; then
14544 REPLACE_NAN=1
14545 fi
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
14547 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
14548 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
14549 $as_echo_n "(cached) " >&6
14550 else
14551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14552 /* end confdefs.h. */
14553 #include <math.h>
14554 int
14555 main ()
14556 {
14557 /* Solaris 10 has a broken definition of HUGE_VAL. */
14558 double d = HUGE_VAL;
14559 return d == 0;
14560 ;
14561 return 0;
14562 }
14563 _ACEOF
14564 if ac_fn_c_try_compile "$LINENO"; then :
14565 gl_cv_header_math_huge_val_works=yes
14566 else
14567 gl_cv_header_math_huge_val_works=no
14568 fi
14569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14570 fi
14571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
14572 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
14573 if test $gl_cv_header_math_huge_val_works = no; then
14574 REPLACE_HUGE_VAL=1
14575 fi
14576
14577
14578 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
14579 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14581 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14582 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14583 $as_echo_n "(cached) " >&6
14584 else
14585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14586 /* end confdefs.h. */
14587 #include <math.h>
14588 int
14589 main ()
14590 {
14591 #undef $gl_func
14592 (void) $gl_func;
14593 ;
14594 return 0;
14595 }
14596 _ACEOF
14597 if ac_fn_c_try_compile "$LINENO"; then :
14598 eval "$as_gl_Symbol=yes"
14599 else
14600 eval "$as_gl_Symbol=no"
14601 fi
14602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14603 fi
14604 eval ac_res=\$$as_gl_Symbol
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14606 $as_echo "$ac_res" >&6; }
14607 eval as_val=\$$as_gl_Symbol
14608 if test "x$as_val" = x""yes; then :
14609 cat >>confdefs.h <<_ACEOF
14610 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14611 _ACEOF
14612
14613 eval ac_cv_have_decl_$gl_func=yes
14614 fi
14615 done
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
14629
14630
14631
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
14633 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
14634 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
14635 $as_echo_n "(cached) " >&6
14636 else
14637
14638 case "$host_os" in
14639 # Guess no on AIX and OSF/1.
14640 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
14641 # Guess yes otherwise.
14642 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
14643 esac
14644 if test $LOCALE_JA != none; then
14645 if test "$cross_compiling" = yes; then :
14646 :
14647 else
14648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14649 /* end confdefs.h. */
14650
14651 #include <locale.h>
14652 #include <string.h>
14653 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14654 <wchar.h>.
14655 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14656 included before <wchar.h>. */
14657 #include <stddef.h>
14658 #include <stdio.h>
14659 #include <time.h>
14660 #include <wchar.h>
14661 int main ()
14662 {
14663 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14664 {
14665 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
14666 mbstate_t state;
14667 wchar_t wc;
14668
14669 memset (&state, '\0', sizeof (mbstate_t));
14670 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14671 if (mbsinit (&state))
14672 return 1;
14673 }
14674 return 0;
14675 }
14676 _ACEOF
14677 if ac_fn_c_try_run "$LINENO"; then :
14678 gl_cv_func_mbrtowc_incomplete_state=yes
14679 else
14680 gl_cv_func_mbrtowc_incomplete_state=no
14681 fi
14682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14683 conftest.$ac_objext conftest.beam conftest.$ac_ext
14684 fi
14685
14686 fi
14687
14688 fi
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
14690 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
14691
14692
14693
14694
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
14696 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
14697 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
14698 $as_echo_n "(cached) " >&6
14699 else
14700
14701 case "$host_os" in
14702 # Guess no on Solaris 8.
14703 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
14704 # Guess yes otherwise.
14705 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
14706 esac
14707 if test $LOCALE_ZH_CN != none; then
14708 if test "$cross_compiling" = yes; then :
14709 :
14710 else
14711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14712 /* end confdefs.h. */
14713
14714 #include <locale.h>
14715 #include <stdlib.h>
14716 #include <string.h>
14717 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14718 <wchar.h>.
14719 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14720 included before <wchar.h>. */
14721 #include <stddef.h>
14722 #include <stdio.h>
14723 #include <time.h>
14724 #include <wchar.h>
14725 int main ()
14726 {
14727 /* This fails on Solaris 8:
14728 mbrtowc returns 2, and sets wc to 0x00F0.
14729 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
14730 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
14731 {
14732 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
14733 mbstate_t state;
14734 wchar_t wc;
14735
14736 memset (&state, '\0', sizeof (mbstate_t));
14737 if (mbrtowc (&wc, input + 3, 6, &state) != 4
14738 && mbtowc (&wc, input + 3, 6) == 4)
14739 return 1;
14740 }
14741 return 0;
14742 }
14743 _ACEOF
14744 if ac_fn_c_try_run "$LINENO"; then :
14745 gl_cv_func_mbrtowc_sanitycheck=yes
14746 else
14747 gl_cv_func_mbrtowc_sanitycheck=no
14748 fi
14749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14750 conftest.$ac_objext conftest.beam conftest.$ac_ext
14751 fi
14752
14753 fi
14754
14755 fi
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
14757 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
14758
14759 REPLACE_MBSTATE_T=0
14760 case "$gl_cv_func_mbrtowc_incomplete_state" in
14761 *yes) ;;
14762 *) REPLACE_MBSTATE_T=1 ;;
14763 esac
14764 case "$gl_cv_func_mbrtowc_sanitycheck" in
14765 *yes) ;;
14766 *) REPLACE_MBSTATE_T=1 ;;
14767 esac
14768 else
14769 REPLACE_MBSTATE_T=1
14770 fi
14771
14772
14773
14774 if test $ac_cv_func_mbrtowc = no; then
14775 HAVE_MBRTOWC=0
14776 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
14777 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14778 <wchar.h>.
14779 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14780 included before <wchar.h>. */
14781 #include <stddef.h>
14782 #include <stdio.h>
14783 #include <time.h>
14784 #include <wchar.h>
14785
14786 "
14787 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
14788 ac_have_decl=1
14789 else
14790 ac_have_decl=0
14791 fi
14792
14793 cat >>confdefs.h <<_ACEOF
14794 #define HAVE_DECL_MBRTOWC $ac_have_decl
14795 _ACEOF
14796
14797 if test $ac_cv_have_decl_mbrtowc = yes; then
14798 REPLACE_MBRTOWC=1
14799 fi
14800 else
14801 if test $REPLACE_MBSTATE_T = 1; then
14802 REPLACE_MBRTOWC=1
14803 else
14804
14805
14806
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
14808 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
14809 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
14810 $as_echo_n "(cached) " >&6
14811 else
14812
14813 case "$host_os" in
14814 # Guess no on Solaris.
14815 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
14816 # Guess yes otherwise.
14817 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
14818 esac
14819 if test $LOCALE_FR_UTF8 != none; then
14820 if test "$cross_compiling" = yes; then :
14821 :
14822 else
14823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824 /* end confdefs.h. */
14825
14826 #include <locale.h>
14827 #include <stdlib.h>
14828 #include <string.h>
14829 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14830 <wchar.h>.
14831 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14832 included before <wchar.h>. */
14833 #include <stddef.h>
14834 #include <stdio.h>
14835 #include <time.h>
14836 #include <wchar.h>
14837 int main ()
14838 {
14839 int result = 0;
14840
14841 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14842 {
14843 char input[] = "\303\237er";
14844 mbstate_t state;
14845 wchar_t wc;
14846 size_t ret;
14847
14848 memset (&state, '\0', sizeof (mbstate_t));
14849 wc = (wchar_t) 0xBADFACE;
14850 ret = mbrtowc (&wc, input, 5, &state);
14851 if (ret != 2)
14852 result |= 1;
14853 if (!mbsinit (&state))
14854 result |= 2;
14855
14856 memset (&state, '\0', sizeof (mbstate_t));
14857 ret = mbrtowc (NULL, input, 5, &state);
14858 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
14859 result |= 4;
14860 if (!mbsinit (&state))
14861 result |= 8;
14862 }
14863 return result;
14864 }
14865 _ACEOF
14866 if ac_fn_c_try_run "$LINENO"; then :
14867 gl_cv_func_mbrtowc_null_arg1=yes
14868 else
14869 gl_cv_func_mbrtowc_null_arg1=no
14870 fi
14871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14872 conftest.$ac_objext conftest.beam conftest.$ac_ext
14873 fi
14874
14875 fi
14876
14877 fi
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
14879 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
14880
14881
14882
14883
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
14885 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
14886 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
14887 $as_echo_n "(cached) " >&6
14888 else
14889
14890 case "$host_os" in
14891 # Guess no on OSF/1.
14892 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
14893 # Guess yes otherwise.
14894 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
14895 esac
14896 if test $LOCALE_FR_UTF8 != none; then
14897 if test "$cross_compiling" = yes; then :
14898 :
14899 else
14900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14901 /* end confdefs.h. */
14902
14903 #include <locale.h>
14904 #include <string.h>
14905 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14906 <wchar.h>.
14907 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14908 included before <wchar.h>. */
14909 #include <stddef.h>
14910 #include <stdio.h>
14911 #include <time.h>
14912 #include <wchar.h>
14913 int main ()
14914 {
14915 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14916 {
14917 mbstate_t state;
14918 wchar_t wc;
14919 int ret;
14920
14921 memset (&state, '\0', sizeof (mbstate_t));
14922 wc = (wchar_t) 0xBADFACE;
14923 mbrtowc (&wc, NULL, 5, &state);
14924 /* Check that wc was not modified. */
14925 if (wc != (wchar_t) 0xBADFACE)
14926 return 1;
14927 }
14928 return 0;
14929 }
14930 _ACEOF
14931 if ac_fn_c_try_run "$LINENO"; then :
14932 gl_cv_func_mbrtowc_null_arg2=yes
14933 else
14934 gl_cv_func_mbrtowc_null_arg2=no
14935 fi
14936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14937 conftest.$ac_objext conftest.beam conftest.$ac_ext
14938 fi
14939
14940 fi
14941
14942 fi
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
14944 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
14945
14946
14947
14948
14949
14950
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
14952 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
14953 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
14954 $as_echo_n "(cached) " >&6
14955 else
14956
14957 case "$host_os" in
14958 # Guess no on HP-UX, Solaris, native Windows.
14959 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
14960 # Guess yes otherwise.
14961 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
14962 esac
14963 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
14964 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
14965 if test "$cross_compiling" = yes; then :
14966 :
14967 else
14968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14969 /* end confdefs.h. */
14970
14971 #include <locale.h>
14972 #include <string.h>
14973 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14974 <wchar.h>.
14975 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14976 included before <wchar.h>. */
14977 #include <stddef.h>
14978 #include <stdio.h>
14979 #include <time.h>
14980 #include <wchar.h>
14981 int main ()
14982 {
14983 int result = 0;
14984 int found_some_locale = 0;
14985 /* This fails on Solaris. */
14986 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14987 {
14988 char input[] = "B\303\274\303\237er"; /* "Büßer" */
14989 mbstate_t state;
14990 wchar_t wc;
14991
14992 memset (&state, '\0', sizeof (mbstate_t));
14993 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14994 {
14995 input[1] = '\0';
14996 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
14997 result |= 1;
14998 }
14999 found_some_locale = 1;
15000 }
15001 /* This fails on HP-UX 11.11. */
15002 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15003 {
15004 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15005 mbstate_t state;
15006 wchar_t wc;
15007
15008 memset (&state, '\0', sizeof (mbstate_t));
15009 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15010 {
15011 input[1] = '\0';
15012 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
15013 result |= 2;
15014 }
15015 found_some_locale = 1;
15016 }
15017 /* This fails on native Windows. */
15018 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
15019 {
15020 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
15021 mbstate_t state;
15022 wchar_t wc;
15023
15024 memset (&state, '\0', sizeof (mbstate_t));
15025 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
15026 {
15027 input[3] = '\0';
15028 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
15029 result |= 4;
15030 }
15031 found_some_locale = 1;
15032 }
15033 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
15034 {
15035 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
15036 mbstate_t state;
15037 wchar_t wc;
15038
15039 memset (&state, '\0', sizeof (mbstate_t));
15040 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
15041 {
15042 input[3] = '\0';
15043 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
15044 result |= 8;
15045 }
15046 found_some_locale = 1;
15047 }
15048 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
15049 {
15050 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
15051 mbstate_t state;
15052 wchar_t wc;
15053
15054 memset (&state, '\0', sizeof (mbstate_t));
15055 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
15056 {
15057 input[3] = '\0';
15058 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
15059 result |= 16;
15060 }
15061 found_some_locale = 1;
15062 }
15063 return (found_some_locale ? result : 77);
15064 }
15065 _ACEOF
15066 if ac_fn_c_try_run "$LINENO"; then :
15067 gl_cv_func_mbrtowc_retval=yes
15068 else
15069 if test $? != 77; then
15070 gl_cv_func_mbrtowc_retval=no
15071 fi
15072
15073 fi
15074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15075 conftest.$ac_objext conftest.beam conftest.$ac_ext
15076 fi
15077
15078 fi
15079
15080 fi
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
15082 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
15083
15084
15085
15086
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
15088 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
15089 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
15090 $as_echo_n "(cached) " >&6
15091 else
15092
15093 case "$host_os" in
15094 # Guess no on Solaris 8 and 9.
15095 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
15096 # Guess yes otherwise.
15097 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
15098 esac
15099 if test $LOCALE_ZH_CN != none; then
15100 if test "$cross_compiling" = yes; then :
15101 :
15102 else
15103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15104 /* end confdefs.h. */
15105
15106 #include <locale.h>
15107 #include <string.h>
15108 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15109 <wchar.h>.
15110 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15111 included before <wchar.h>. */
15112 #include <stddef.h>
15113 #include <stdio.h>
15114 #include <time.h>
15115 #include <wchar.h>
15116 int main ()
15117 {
15118 /* This fails on Solaris 8 and 9. */
15119 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15120 {
15121 mbstate_t state;
15122 wchar_t wc;
15123
15124 memset (&state, '\0', sizeof (mbstate_t));
15125 if (mbrtowc (&wc, "", 1, &state) != 0)
15126 return 1;
15127 }
15128 return 0;
15129 }
15130 _ACEOF
15131 if ac_fn_c_try_run "$LINENO"; then :
15132 gl_cv_func_mbrtowc_nul_retval=yes
15133 else
15134 gl_cv_func_mbrtowc_nul_retval=no
15135 fi
15136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15137 conftest.$ac_objext conftest.beam conftest.$ac_ext
15138 fi
15139
15140 fi
15141
15142 fi
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
15144 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
15145
15146
15147
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
15149 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
15150 if test "${gl_cv_func_mbrtowc_empty_input+set}" = set; then :
15151 $as_echo_n "(cached) " >&6
15152 else
15153
15154 case "$host_os" in
15155 # Guess no on AIX and glibc systems.
15156 aix* | *-gnu*)
15157 gl_cv_func_mbrtowc_empty_input="guessing no" ;;
15158 *) gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
15159 esac
15160 if test "$cross_compiling" = yes; then :
15161 :
15162 else
15163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15164 /* end confdefs.h. */
15165
15166 #include <wchar.h>
15167 static wchar_t wc;
15168 static mbstate_t mbs;
15169 int
15170 main (void)
15171 {
15172 return mbrtowc (&wc, "", 0, &mbs) == (size_t) -2;
15173 }
15174 _ACEOF
15175 if ac_fn_c_try_run "$LINENO"; then :
15176 gl_cv_func_mbrtowc_empty_input=no
15177 else
15178 gl_cv_func_mbrtowc_empty_input=yes
15179 fi
15180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15181 conftest.$ac_objext conftest.beam conftest.$ac_ext
15182 fi
15183
15184
15185 fi
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
15187 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
15188
15189 case "$gl_cv_func_mbrtowc_null_arg1" in
15190 *yes) ;;
15191 *)
15192 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
15193
15194 REPLACE_MBRTOWC=1
15195 ;;
15196 esac
15197 case "$gl_cv_func_mbrtowc_null_arg2" in
15198 *yes) ;;
15199 *)
15200 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
15201
15202 REPLACE_MBRTOWC=1
15203 ;;
15204 esac
15205 case "$gl_cv_func_mbrtowc_retval" in
15206 *yes) ;;
15207 *)
15208 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
15209
15210 REPLACE_MBRTOWC=1
15211 ;;
15212 esac
15213 case "$gl_cv_func_mbrtowc_nul_retval" in
15214 *yes) ;;
15215 *)
15216 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
15217
15218 REPLACE_MBRTOWC=1
15219 ;;
15220 esac
15221 case "$gl_cv_func_mbrtowc_empty_input" in
15222 *yes) ;;
15223 *)
15224 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
15225
15226 REPLACE_MBRTOWC=1
15227 ;;
15228 esac
15229 fi
15230 fi
15231
15232 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
15233
15234
15235
15236
15237
15238
15239
15240
15241 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
15242
15243
15244 :
15245
15246 fi
15247
15248
15249
15250
15251
15252 GNULIB_MBRTOWC=1
15253
15254
15255
15256
15257
15258 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15274
15275
15276
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15278 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15279 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15280 $as_echo_n "(cached) " >&6
15281 else
15282
15283 case "$host_os" in
15284 # Guess no on AIX and OSF/1.
15285 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15286 # Guess yes otherwise.
15287 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15288 esac
15289 if test $LOCALE_JA != none; then
15290 if test "$cross_compiling" = yes; then :
15291 :
15292 else
15293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15294 /* end confdefs.h. */
15295
15296 #include <locale.h>
15297 #include <string.h>
15298 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15299 <wchar.h>.
15300 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15301 included before <wchar.h>. */
15302 #include <stddef.h>
15303 #include <stdio.h>
15304 #include <time.h>
15305 #include <wchar.h>
15306 int main ()
15307 {
15308 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15309 {
15310 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15311 mbstate_t state;
15312 wchar_t wc;
15313
15314 memset (&state, '\0', sizeof (mbstate_t));
15315 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15316 if (mbsinit (&state))
15317 return 1;
15318 }
15319 return 0;
15320 }
15321 _ACEOF
15322 if ac_fn_c_try_run "$LINENO"; then :
15323 gl_cv_func_mbrtowc_incomplete_state=yes
15324 else
15325 gl_cv_func_mbrtowc_incomplete_state=no
15326 fi
15327 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15328 conftest.$ac_objext conftest.beam conftest.$ac_ext
15329 fi
15330
15331 fi
15332
15333 fi
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15335 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15336
15337
15338
15339
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15341 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15342 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
15343 $as_echo_n "(cached) " >&6
15344 else
15345
15346 case "$host_os" in
15347 # Guess no on Solaris 8.
15348 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15349 # Guess yes otherwise.
15350 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15351 esac
15352 if test $LOCALE_ZH_CN != none; then
15353 if test "$cross_compiling" = yes; then :
15354 :
15355 else
15356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357 /* end confdefs.h. */
15358
15359 #include <locale.h>
15360 #include <stdlib.h>
15361 #include <string.h>
15362 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15363 <wchar.h>.
15364 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15365 included before <wchar.h>. */
15366 #include <stddef.h>
15367 #include <stdio.h>
15368 #include <time.h>
15369 #include <wchar.h>
15370 int main ()
15371 {
15372 /* This fails on Solaris 8:
15373 mbrtowc returns 2, and sets wc to 0x00F0.
15374 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15375 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15376 {
15377 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15378 mbstate_t state;
15379 wchar_t wc;
15380
15381 memset (&state, '\0', sizeof (mbstate_t));
15382 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15383 && mbtowc (&wc, input + 3, 6) == 4)
15384 return 1;
15385 }
15386 return 0;
15387 }
15388 _ACEOF
15389 if ac_fn_c_try_run "$LINENO"; then :
15390 gl_cv_func_mbrtowc_sanitycheck=yes
15391 else
15392 gl_cv_func_mbrtowc_sanitycheck=no
15393 fi
15394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15395 conftest.$ac_objext conftest.beam conftest.$ac_ext
15396 fi
15397
15398 fi
15399
15400 fi
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15402 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15403
15404 REPLACE_MBSTATE_T=0
15405 case "$gl_cv_func_mbrtowc_incomplete_state" in
15406 *yes) ;;
15407 *) REPLACE_MBSTATE_T=1 ;;
15408 esac
15409 case "$gl_cv_func_mbrtowc_sanitycheck" in
15410 *yes) ;;
15411 *) REPLACE_MBSTATE_T=1 ;;
15412 esac
15413 else
15414 REPLACE_MBSTATE_T=1
15415 fi
15416
15417
15418
15419 if test $ac_cv_func_mbsinit = no; then
15420 HAVE_MBSINIT=0
15421 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
15422 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15423 <wchar.h>.
15424 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15425 included before <wchar.h>. */
15426 #include <stddef.h>
15427 #include <stdio.h>
15428 #include <time.h>
15429 #include <wchar.h>
15430
15431 "
15432 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
15433 ac_have_decl=1
15434 else
15435 ac_have_decl=0
15436 fi
15437
15438 cat >>confdefs.h <<_ACEOF
15439 #define HAVE_DECL_MBSINIT $ac_have_decl
15440 _ACEOF
15441
15442 if test $ac_cv_have_decl_mbsinit = yes; then
15443 REPLACE_MBSINIT=1
15444 fi
15445 else
15446 if test $REPLACE_MBSTATE_T = 1; then
15447 REPLACE_MBSINIT=1
15448 else
15449 case "$host_os" in
15450 mingw*) REPLACE_MBSINIT=1 ;;
15451 esac
15452 fi
15453 fi
15454
15455 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
15456
15457
15458
15459
15460
15461
15462
15463
15464 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
15465
15466
15467 :
15468
15469 fi
15470
15471
15472
15473
15474
15475 GNULIB_MBSINIT=1
15476
15477
15478
15479
15480
15481 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15496
15497
15498
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15500 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15501 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15502 $as_echo_n "(cached) " >&6
15503 else
15504
15505 case "$host_os" in
15506 # Guess no on AIX and OSF/1.
15507 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15508 # Guess yes otherwise.
15509 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15510 esac
15511 if test $LOCALE_JA != none; then
15512 if test "$cross_compiling" = yes; then :
15513 :
15514 else
15515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15516 /* end confdefs.h. */
15517
15518 #include <locale.h>
15519 #include <string.h>
15520 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15521 <wchar.h>.
15522 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15523 included before <wchar.h>. */
15524 #include <stddef.h>
15525 #include <stdio.h>
15526 #include <time.h>
15527 #include <wchar.h>
15528 int main ()
15529 {
15530 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15531 {
15532 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15533 mbstate_t state;
15534 wchar_t wc;
15535
15536 memset (&state, '\0', sizeof (mbstate_t));
15537 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15538 if (mbsinit (&state))
15539 return 1;
15540 }
15541 return 0;
15542 }
15543 _ACEOF
15544 if ac_fn_c_try_run "$LINENO"; then :
15545 gl_cv_func_mbrtowc_incomplete_state=yes
15546 else
15547 gl_cv_func_mbrtowc_incomplete_state=no
15548 fi
15549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15550 conftest.$ac_objext conftest.beam conftest.$ac_ext
15551 fi
15552
15553 fi
15554
15555 fi
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15557 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15558
15559
15560
15561
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15563 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15564 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
15565 $as_echo_n "(cached) " >&6
15566 else
15567
15568 case "$host_os" in
15569 # Guess no on Solaris 8.
15570 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15571 # Guess yes otherwise.
15572 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15573 esac
15574 if test $LOCALE_ZH_CN != none; then
15575 if test "$cross_compiling" = yes; then :
15576 :
15577 else
15578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15579 /* end confdefs.h. */
15580
15581 #include <locale.h>
15582 #include <stdlib.h>
15583 #include <string.h>
15584 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15585 <wchar.h>.
15586 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15587 included before <wchar.h>. */
15588 #include <stddef.h>
15589 #include <stdio.h>
15590 #include <time.h>
15591 #include <wchar.h>
15592 int main ()
15593 {
15594 /* This fails on Solaris 8:
15595 mbrtowc returns 2, and sets wc to 0x00F0.
15596 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15597 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15598 {
15599 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15600 mbstate_t state;
15601 wchar_t wc;
15602
15603 memset (&state, '\0', sizeof (mbstate_t));
15604 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15605 && mbtowc (&wc, input + 3, 6) == 4)
15606 return 1;
15607 }
15608 return 0;
15609 }
15610 _ACEOF
15611 if ac_fn_c_try_run "$LINENO"; then :
15612 gl_cv_func_mbrtowc_sanitycheck=yes
15613 else
15614 gl_cv_func_mbrtowc_sanitycheck=no
15615 fi
15616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15617 conftest.$ac_objext conftest.beam conftest.$ac_ext
15618 fi
15619
15620 fi
15621
15622 fi
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15624 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15625
15626 REPLACE_MBSTATE_T=0
15627 case "$gl_cv_func_mbrtowc_incomplete_state" in
15628 *yes) ;;
15629 *) REPLACE_MBSTATE_T=1 ;;
15630 esac
15631 case "$gl_cv_func_mbrtowc_sanitycheck" in
15632 *yes) ;;
15633 *) REPLACE_MBSTATE_T=1 ;;
15634 esac
15635 else
15636 REPLACE_MBSTATE_T=1
15637 fi
15638
15639
15640
15641 if test $ac_cv_func_mbsrtowcs = no; then
15642 HAVE_MBSRTOWCS=0
15643 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
15644 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15645 <wchar.h>.
15646 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15647 included before <wchar.h>. */
15648 #include <stddef.h>
15649 #include <stdio.h>
15650 #include <time.h>
15651 #include <wchar.h>
15652
15653 "
15654 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
15655 ac_have_decl=1
15656 else
15657 ac_have_decl=0
15658 fi
15659
15660 cat >>confdefs.h <<_ACEOF
15661 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
15662 _ACEOF
15663
15664 if test $ac_cv_have_decl_mbsrtowcs = yes; then
15665 REPLACE_MBSRTOWCS=1
15666 fi
15667 else
15668 if test $REPLACE_MBSTATE_T = 1; then
15669 REPLACE_MBSRTOWCS=1
15670 else
15671
15672
15673
15674
15675
15676
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
15678 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
15679 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
15680 $as_echo_n "(cached) " >&6
15681 else
15682
15683 case "$host_os" in
15684 # Guess no on HP-UX, Solaris, mingw.
15685 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
15686 # Guess yes otherwise.
15687 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
15688 esac
15689 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
15690 if test "$cross_compiling" = yes; then :
15691 :
15692 else
15693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15694 /* end confdefs.h. */
15695
15696 #include <locale.h>
15697 #include <string.h>
15698 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15699 <wchar.h>.
15700 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15701 included before <wchar.h>. */
15702 #include <stddef.h>
15703 #include <stdio.h>
15704 #include <time.h>
15705 #include <wchar.h>
15706 int main ()
15707 {
15708 int result = 0;
15709 /* Test whether the function supports a NULL destination argument.
15710 This fails on native Windows. */
15711 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
15712 {
15713 const char input[] = "\337er";
15714 const char *src = input;
15715 mbstate_t state;
15716
15717 memset (&state, '\0', sizeof (mbstate_t));
15718 if (mbsrtowcs (NULL, &src, 1, &state) != 3
15719 || src != input)
15720 result |= 1;
15721 }
15722 /* Test whether the function works when started with a conversion state
15723 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
15724 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15725 {
15726 const char input[] = "B\303\274\303\237er";
15727 mbstate_t state;
15728
15729 memset (&state, '\0', sizeof (mbstate_t));
15730 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
15731 if (!mbsinit (&state))
15732 {
15733 const char *src = input + 2;
15734 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
15735 result |= 2;
15736 }
15737 }
15738 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15739 {
15740 const char input[] = "<\306\374\313\334\270\354>";
15741 mbstate_t state;
15742
15743 memset (&state, '\0', sizeof (mbstate_t));
15744 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
15745 if (!mbsinit (&state))
15746 {
15747 const char *src = input + 4;
15748 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
15749 result |= 4;
15750 }
15751 }
15752 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15753 {
15754 const char input[] = "B\250\271\201\060\211\070er";
15755 mbstate_t state;
15756
15757 memset (&state, '\0', sizeof (mbstate_t));
15758 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
15759 if (!mbsinit (&state))
15760 {
15761 const char *src = input + 2;
15762 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
15763 result |= 8;
15764 }
15765 }
15766 return result;
15767 }
15768 _ACEOF
15769 if ac_fn_c_try_run "$LINENO"; then :
15770 gl_cv_func_mbsrtowcs_works=yes
15771 else
15772 gl_cv_func_mbsrtowcs_works=no
15773 fi
15774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15775 conftest.$ac_objext conftest.beam conftest.$ac_ext
15776 fi
15777
15778 fi
15779
15780 fi
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
15782 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
15783
15784 case "$gl_cv_func_mbsrtowcs_works" in
15785 *yes) ;;
15786 *) REPLACE_MBSRTOWCS=1 ;;
15787 esac
15788 fi
15789 fi
15790
15791 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
15792
15793
15794
15795
15796
15797
15798
15799
15800 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
15811
15812
15813 :
15814
15815 fi
15816
15817
15818
15819
15820
15821 GNULIB_MBSRTOWCS=1
15822
15823
15824
15825
15826
15827 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
15828
15829
15830
15831
15832 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
15833
15834
15835
15836
15837
15838
15839
15840
15841 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
15842
15843
15844 for ac_header in bp-sym.h
15845 do :
15846 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
15847 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
15848 cat >>confdefs.h <<_ACEOF
15849 #define HAVE_BP_SYM_H 1
15850 _ACEOF
15851
15852 fi
15853
15854 done
15855
15856
15857 fi
15858
15859
15860
15861
15862
15863 GNULIB_MEMCHR=1
15864
15865
15866
15867
15868
15869 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
15870
15871
15872
15873
15874
15875 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
15877 $as_echo_n "checking whether memmem works in linear time... " >&6; }
15878 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
15879 $as_echo_n "(cached) " >&6
15880 else
15881 if test "$cross_compiling" = yes; then :
15882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15883 /* end confdefs.h. */
15884
15885 #include <features.h>
15886 #ifdef __GNU_LIBRARY__
15887 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
15888 && !defined __UCLIBC__
15889 Lucky user
15890 #endif
15891 #endif
15892 #ifdef __CYGWIN__
15893 #include <cygwin/version.h>
15894 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
15895 Lucky user
15896 #endif
15897 #endif
15898
15899 _ACEOF
15900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15901 $EGREP "Lucky user" >/dev/null 2>&1; then :
15902 gl_cv_func_memmem_works_fast="guessing yes"
15903 else
15904 gl_cv_func_memmem_works_fast="guessing no"
15905 fi
15906 rm -f conftest*
15907
15908
15909 else
15910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15911 /* end confdefs.h. */
15912
15913 #include <signal.h> /* for signal */
15914 #include <string.h> /* for memmem */
15915 #include <stdlib.h> /* for malloc */
15916 #include <unistd.h> /* for alarm */
15917 static void quit (int sig) { exit (sig + 128); }
15918
15919 int
15920 main ()
15921 {
15922
15923 int result = 0;
15924 size_t m = 1000000;
15925 char *haystack = (char *) malloc (2 * m + 1);
15926 char *needle = (char *) malloc (m + 1);
15927 /* Failure to compile this test due to missing alarm is okay,
15928 since all such platforms (mingw) also lack memmem. */
15929 signal (SIGALRM, quit);
15930 alarm (5);
15931 /* Check for quadratic performance. */
15932 if (haystack && needle)
15933 {
15934 memset (haystack, 'A', 2 * m);
15935 haystack[2 * m] = 'B';
15936 memset (needle, 'A', m);
15937 needle[m] = 'B';
15938 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
15939 result |= 1;
15940 }
15941 return result;
15942
15943 ;
15944 return 0;
15945 }
15946 _ACEOF
15947 if ac_fn_c_try_run "$LINENO"; then :
15948 gl_cv_func_memmem_works_fast=yes
15949 else
15950 gl_cv_func_memmem_works_fast=no
15951 fi
15952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15953 conftest.$ac_objext conftest.beam conftest.$ac_ext
15954 fi
15955
15956
15957 fi
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
15959 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
15960 case "$gl_cv_func_memmem_works_fast" in
15961 *yes) ;;
15962 *)
15963 REPLACE_MEMMEM=1
15964 ;;
15965 esac
15966 fi
15967
15968 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
15969
15970
15971
15972
15973
15974
15975
15976
15977 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
15978
15979 fi
15980
15981
15982
15983
15984 for ac_func in memmem
15985 do :
15986 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
15987 if test "x$ac_cv_func_memmem" = x""yes; then :
15988 cat >>confdefs.h <<_ACEOF
15989 #define HAVE_MEMMEM 1
15990 _ACEOF
15991
15992 fi
15993 done
15994
15995 if test $ac_cv_func_memmem = yes; then
15996 HAVE_MEMMEM=1
15997 else
15998 HAVE_MEMMEM=0
15999 fi
16000
16001 if test $ac_cv_have_decl_memmem = no; then
16002 HAVE_DECL_MEMMEM=0
16003 else
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
16005 $as_echo_n "checking whether memmem works... " >&6; }
16006 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
16007 $as_echo_n "(cached) " >&6
16008 else
16009 if test "$cross_compiling" = yes; then :
16010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16011 /* end confdefs.h. */
16012
16013 #ifdef __GNU_LIBRARY__
16014 #include <features.h>
16015 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
16016 || __GLIBC_MINOR__ > 12)) \
16017 || (__GLIBC__ > 2)) \
16018 || defined __UCLIBC__
16019 Lucky user
16020 #endif
16021 #elif defined __CYGWIN__
16022 #include <cygwin/version.h>
16023 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
16024 Lucky user
16025 #endif
16026 #else
16027 Lucky user
16028 #endif
16029
16030 _ACEOF
16031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16032 $EGREP "Lucky user" >/dev/null 2>&1; then :
16033 gl_cv_func_memmem_works_always="guessing yes"
16034 else
16035 gl_cv_func_memmem_works_always="guessing no"
16036 fi
16037 rm -f conftest*
16038
16039
16040 else
16041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16042 /* end confdefs.h. */
16043
16044 #include <string.h> /* for memmem */
16045 #define P "_EF_BF_BD"
16046 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
16047 #define NEEDLE P P P P P
16048
16049 int
16050 main ()
16051 {
16052
16053 int result = 0;
16054 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
16055 result |= 1;
16056 /* Check for empty needle behavior. */
16057 {
16058 const char *haystack = "AAA";
16059 if (memmem (haystack, 3, NULL, 0) != haystack)
16060 result |= 2;
16061 }
16062 return result;
16063
16064 ;
16065 return 0;
16066 }
16067 _ACEOF
16068 if ac_fn_c_try_run "$LINENO"; then :
16069 gl_cv_func_memmem_works_always=yes
16070 else
16071 gl_cv_func_memmem_works_always=no
16072 fi
16073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16074 conftest.$ac_objext conftest.beam conftest.$ac_ext
16075 fi
16076
16077
16078 fi
16079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
16080 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
16081 case "$gl_cv_func_memmem_works_always" in
16082 *yes) ;;
16083 *)
16084 REPLACE_MEMMEM=1
16085 ;;
16086 esac
16087 fi
16088 :
16089
16090 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
16091
16092
16093
16094
16095
16096
16097
16098
16099 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
16100
16101 fi
16102
16103
16104
16105
16106
16107 GNULIB_MEMMEM=1
16108
16109
16110
16111
16112
16113 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124 if test $ac_cv_func_readlink = no; then
16125 HAVE_READLINK=0
16126 else
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
16128 $as_echo_n "checking whether readlink signature is correct... " >&6; }
16129 if test "${gl_cv_decl_readlink_works+set}" = set; then :
16130 $as_echo_n "(cached) " >&6
16131 else
16132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16133 /* end confdefs.h. */
16134 #include <unistd.h>
16135 /* Cause compilation failure if original declaration has wrong type. */
16136 ssize_t readlink (const char *, char *, size_t);
16137 int
16138 main ()
16139 {
16140
16141 ;
16142 return 0;
16143 }
16144 _ACEOF
16145 if ac_fn_c_try_compile "$LINENO"; then :
16146 gl_cv_decl_readlink_works=yes
16147 else
16148 gl_cv_decl_readlink_works=no
16149 fi
16150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16151 fi
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
16153 $as_echo "$gl_cv_decl_readlink_works" >&6; }
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
16155 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
16156 if test "${gl_cv_func_readlink_works+set}" = set; then :
16157 $as_echo_n "(cached) " >&6
16158 else
16159 # We have readlink, so assume ln -s works.
16160 ln -s conftest.no-such conftest.link
16161 ln -s conftest.link conftest.lnk2
16162 if test "$cross_compiling" = yes; then :
16163 case "$host_os" in
16164 # Guess yes on glibc systems.
16165 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
16166 # If we don't know, assume the worst.
16167 *) gl_cv_func_readlink_works="guessing no" ;;
16168 esac
16169
16170 else
16171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16172 /* end confdefs.h. */
16173 #include <unistd.h>
16174
16175 int
16176 main ()
16177 {
16178 char buf[20];
16179 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
16180 ;
16181 return 0;
16182 }
16183 _ACEOF
16184 if ac_fn_c_try_run "$LINENO"; then :
16185 gl_cv_func_readlink_works=yes
16186 else
16187 gl_cv_func_readlink_works=no
16188 fi
16189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16190 conftest.$ac_objext conftest.beam conftest.$ac_ext
16191 fi
16192
16193 rm -f conftest.link conftest.lnk2
16194 fi
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
16196 $as_echo "$gl_cv_func_readlink_works" >&6; }
16197 case "$gl_cv_func_readlink_works" in
16198 *yes)
16199 if test "$gl_cv_decl_readlink_works" != yes; then
16200 REPLACE_READLINK=1
16201 fi
16202 ;;
16203 *)
16204
16205 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
16206
16207 REPLACE_READLINK=1
16208 ;;
16209 esac
16210 fi
16211
16212 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
16213
16214
16215
16216
16217
16218
16219
16220
16221 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16222
16223
16224 :
16225
16226 fi
16227
16228
16229
16230
16231
16232 GNULIB_READLINK=1
16233
16234
16235
16236
16237
16238 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
16239
16240
16241
16242
16243
16244
16245
16246
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
16248 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
16249 if test "${gl_cv_func_rename_slash_dst_works+set}" = set; then :
16250 $as_echo_n "(cached) " >&6
16251 else
16252 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
16253 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
16254 as_fn_error "cannot create temporary files" "$LINENO" 5
16255 # Assume that if we have lstat, we can also check symlinks.
16256 if test $ac_cv_func_lstat = yes; then
16257 ln -s conftest.f conftest.lnk
16258 fi
16259 if test "$cross_compiling" = yes; then :
16260 case "$host_os" in
16261 # Guess yes on glibc systems.
16262 *-gnu*) gl_cv_func_rename_slash_dst_works="guessing yes" ;;
16263 # If we don't know, assume the worst.
16264 *) gl_cv_func_rename_slash_dst_works="guessing no" ;;
16265 esac
16266
16267 else
16268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16269 /* end confdefs.h. */
16270
16271 # include <stdio.h>
16272 # include <stdlib.h>
16273
16274 int
16275 main ()
16276 {
16277 int result = 0;
16278 if (rename ("conftest.f1", "conftest.f2/") == 0)
16279 result |= 1;
16280 if (rename ("conftest.d1", "conftest.d2/") != 0)
16281 result |= 2;
16282 #if HAVE_LSTAT
16283 if (rename ("conftest.f", "conftest.lnk/") == 0)
16284 result |= 4;
16285 #endif
16286 return result;
16287
16288 ;
16289 return 0;
16290 }
16291 _ACEOF
16292 if ac_fn_c_try_run "$LINENO"; then :
16293 gl_cv_func_rename_slash_dst_works=yes
16294 else
16295 gl_cv_func_rename_slash_dst_works=no
16296 fi
16297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16298 conftest.$ac_objext conftest.beam conftest.$ac_ext
16299 fi
16300
16301 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
16302
16303 fi
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
16305 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
16306 case "$gl_cv_func_rename_slash_dst_works" in
16307 *yes) ;;
16308 *)
16309 REPLACE_RENAME=1
16310
16311 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
16312
16313 ;;
16314 esac
16315
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
16317 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
16318 if test "${gl_cv_func_rename_slash_src_works+set}" = set; then :
16319 $as_echo_n "(cached) " >&6
16320 else
16321 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
16322 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
16323 as_fn_error "cannot create temporary files" "$LINENO" 5
16324 # Assume that if we have lstat, we can also check symlinks.
16325 if test $ac_cv_func_lstat = yes; then
16326 ln -s conftest.f conftest.lnk
16327 fi
16328 if test "$cross_compiling" = yes; then :
16329 case "$host_os" in
16330 # Guess yes on glibc systems.
16331 *-gnu*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
16332 # If we don't know, assume the worst.
16333 *) gl_cv_func_rename_slash_src_works="guessing no" ;;
16334 esac
16335
16336 else
16337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16338 /* end confdefs.h. */
16339
16340 # include <stdio.h>
16341 # include <stdlib.h>
16342
16343 int
16344 main ()
16345 {
16346 int result = 0;
16347 if (rename ("conftest.f1/", "conftest.d3") == 0)
16348 result |= 1;
16349 if (rename ("conftest.d1/", "conftest.d2") != 0)
16350 result |= 2;
16351 #if HAVE_LSTAT
16352 if (rename ("conftest.lnk/", "conftest.f") == 0)
16353 result |= 4;
16354 #endif
16355 return result;
16356
16357 ;
16358 return 0;
16359 }
16360 _ACEOF
16361 if ac_fn_c_try_run "$LINENO"; then :
16362 gl_cv_func_rename_slash_src_works=yes
16363 else
16364 gl_cv_func_rename_slash_src_works=no
16365 fi
16366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16367 conftest.$ac_objext conftest.beam conftest.$ac_ext
16368 fi
16369
16370 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
16371
16372 fi
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
16374 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
16375 case "$gl_cv_func_rename_slash_src_works" in
16376 *yes) ;;
16377 *)
16378 REPLACE_RENAME=1
16379
16380 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
16381
16382 ;;
16383 esac
16384
16385
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
16387 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
16388 if test "${gl_cv_func_rename_link_works+set}" = set; then :
16389 $as_echo_n "(cached) " >&6
16390 else
16391 if test $ac_cv_func_link = yes; then
16392 rm -rf conftest.f conftest.f1
16393 if touch conftest.f && ln conftest.f conftest.f1 &&
16394 set x `ls -i conftest.f conftest.f1` && test "" = ""; then
16395 if test "$cross_compiling" = yes; then :
16396 case "$host_os" in
16397 # Guess yes on glibc systems.
16398 *-gnu*) gl_cv_func_rename_link_works="guessing yes" ;;
16399 # If we don't know, assume the worst.
16400 *) gl_cv_func_rename_link_works="guessing no" ;;
16401 esac
16402
16403 else
16404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16405 /* end confdefs.h. */
16406
16407 # include <stdio.h>
16408 # include <stdlib.h>
16409 # include <unistd.h>
16410
16411 int
16412 main ()
16413 {
16414 int result = 0;
16415 if (rename ("conftest.f", "conftest.f1"))
16416 result |= 1;
16417 if (unlink ("conftest.f1"))
16418 result |= 2;
16419 if (rename ("conftest.f", "conftest.f"))
16420 result |= 4;
16421 if (rename ("conftest.f1", "conftest.f1") == 0)
16422 result |= 8;
16423 return result;
16424
16425 ;
16426 return 0;
16427 }
16428 _ACEOF
16429 if ac_fn_c_try_run "$LINENO"; then :
16430 gl_cv_func_rename_link_works=yes
16431 else
16432 gl_cv_func_rename_link_works=no
16433 fi
16434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16435 conftest.$ac_objext conftest.beam conftest.$ac_ext
16436 fi
16437
16438 else
16439 gl_cv_func_rename_link_works="guessing no"
16440 fi
16441 rm -rf conftest.f conftest.f1
16442 else
16443 gl_cv_func_rename_link_works=yes
16444 fi
16445
16446 fi
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
16448 $as_echo "$gl_cv_func_rename_link_works" >&6; }
16449 case "$gl_cv_func_rename_link_works" in
16450 *yes) ;;
16451 *)
16452 REPLACE_RENAME=1
16453
16454 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
16455
16456 ;;
16457 esac
16458
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
16460 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
16461 if test "${gl_cv_func_rename_dest_works+set}" = set; then :
16462 $as_echo_n "(cached) " >&6
16463 else
16464 rm -rf conftest.f conftest.d1 conftest.d2
16465 touch conftest.f && mkdir conftest.d1 conftest.d2 ||
16466 as_fn_error "cannot create temporary files" "$LINENO" 5
16467 if test "$cross_compiling" = yes; then :
16468 case "$host_os" in
16469 # Guess yes on glibc systems.
16470 *-gnu*) gl_cv_func_rename_dest_works="guessing yes" ;;
16471 # If we don't know, assume the worst.
16472 *) gl_cv_func_rename_dest_works="guessing no" ;;
16473 esac
16474
16475 else
16476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16477 /* end confdefs.h. */
16478
16479 # include <stdio.h>
16480 # include <stdlib.h>
16481
16482 int
16483 main ()
16484 {
16485 int result = 0;
16486 if (rename ("conftest.d1", "conftest.d2") != 0)
16487 result |= 1;
16488 if (rename ("conftest.d2", "conftest.f") == 0)
16489 result |= 2;
16490 return result;
16491
16492 ;
16493 return 0;
16494 }
16495 _ACEOF
16496 if ac_fn_c_try_run "$LINENO"; then :
16497 gl_cv_func_rename_dest_works=yes
16498 else
16499 gl_cv_func_rename_dest_works=no
16500 fi
16501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16502 conftest.$ac_objext conftest.beam conftest.$ac_ext
16503 fi
16504
16505 rm -rf conftest.f conftest.d1 conftest.d2
16506
16507 fi
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
16509 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
16510 case "$gl_cv_func_rename_dest_works" in
16511 *yes) ;;
16512 *)
16513 REPLACE_RENAME=1
16514
16515 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
16516
16517 ;;
16518 esac
16519
16520 if test $REPLACE_RENAME = 1; then
16521
16522
16523
16524
16525
16526
16527
16528
16529 gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
16530
16531 fi
16532
16533
16534
16535
16536
16537 GNULIB_RENAME=1
16538
16539
16540
16541
16542
16543 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
16544
16545
16546
16547
16548
16549
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
16551 $as_echo_n "checking whether rmdir works... " >&6; }
16552 if test "${gl_cv_func_rmdir_works+set}" = set; then :
16553 $as_echo_n "(cached) " >&6
16554 else
16555 mkdir conftest.dir
16556 touch conftest.file
16557 if test "$cross_compiling" = yes; then :
16558 case "$host_os" in
16559 # Guess yes on glibc systems.
16560 *-gnu*) gl_cv_func_rmdir_works="guessing yes" ;;
16561 # If we don't know, assume the worst.
16562 *) gl_cv_func_rmdir_works="guessing no" ;;
16563 esac
16564
16565 else
16566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16567 /* end confdefs.h. */
16568 #include <stdio.h>
16569 #include <errno.h>
16570 #if HAVE_UNISTD_H
16571 # include <unistd.h>
16572 #else /* on Windows with MSVC */
16573 # include <direct.h>
16574 #endif
16575
16576 int
16577 main ()
16578 {
16579 int result = 0;
16580 if (!rmdir ("conftest.file/"))
16581 result |= 1;
16582 else if (errno != ENOTDIR)
16583 result |= 2;
16584 if (!rmdir ("conftest.dir/./"))
16585 result |= 4;
16586 return result;
16587
16588 ;
16589 return 0;
16590 }
16591 _ACEOF
16592 if ac_fn_c_try_run "$LINENO"; then :
16593 gl_cv_func_rmdir_works=yes
16594 else
16595 gl_cv_func_rmdir_works=no
16596 fi
16597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16598 conftest.$ac_objext conftest.beam conftest.$ac_ext
16599 fi
16600
16601 rm -rf conftest.dir conftest.file
16602 fi
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
16604 $as_echo "$gl_cv_func_rmdir_works" >&6; }
16605 case "$gl_cv_func_rmdir_works" in
16606 *yes) ;;
16607 *)
16608 REPLACE_RMDIR=1
16609 ;;
16610 esac
16611
16612 if test $REPLACE_RMDIR = 1; then
16613
16614
16615
16616
16617
16618
16619
16620
16621 gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
16622
16623 fi
16624
16625
16626
16627
16628
16629 GNULIB_RMDIR=1
16630
16631
16632
16633
16634
16635 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
16636
16637
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650 if test $gl_cv_have_include_next = yes; then
16651 gl_cv_next_signal_h='<'signal.h'>'
16652 else
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
16654 $as_echo_n "checking absolute name of <signal.h>... " >&6; }
16655 if test "${gl_cv_next_signal_h+set}" = set; then :
16656 $as_echo_n "(cached) " >&6
16657 else
16658
16659
16660
16661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16662 /* end confdefs.h. */
16663 #include <signal.h>
16664 _ACEOF
16665 case "$host_os" in
16666 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16667 *) gl_absname_cpp="$ac_cpp" ;;
16668 esac
16669
16670 case "$host_os" in
16671 mingw*)
16672 gl_dirsep_regex='[/\\]'
16673 ;;
16674 *)
16675 gl_dirsep_regex='\/'
16676 ;;
16677 esac
16678 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16679 gl_header_literal_regex=`echo 'signal.h' \
16680 | sed -e "$gl_make_literal_regex_sed"`
16681 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16682 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16683 s|^/[^/]|//&|
16684 p
16685 q
16686 }'
16687
16688 gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16689 sed -n "$gl_absolute_header_sed"`
16690
16691 gl_header=$gl_cv_absolute_signal_h
16692 gl_cv_next_signal_h='"'$gl_header'"'
16693
16694
16695 fi
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
16697 $as_echo "$gl_cv_next_signal_h" >&6; }
16698 fi
16699 NEXT_SIGNAL_H=$gl_cv_next_signal_h
16700
16701 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16702 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16703 gl_next_as_first_directive='<'signal.h'>'
16704 else
16705 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16706 gl_next_as_first_directive=$gl_cv_next_signal_h
16707 fi
16708 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
16709
16710
16711
16712
16713
16714 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
16715 # then choke on 'volatile sig_atomic_t'. C99 requires that it compile.
16716 ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
16717 #include <signal.h>
16718
16719 "
16720 if test "x$ac_cv_type_volatile_sig_atomic_t" = x""yes; then :
16721
16722 else
16723 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
16724 fi
16725
16726
16727
16728
16729
16730
16731
16732 ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
16733 #include <signal.h>
16734
16735 "
16736 if test "x$ac_cv_type_sighandler_t" = x""yes; then :
16737
16738 else
16739 HAVE_SIGHANDLER_T=0
16740 fi
16741
16742
16743
16744 for gl_func in pthread_sigmask sigaction sigaddset sigdelset sigemptyset sigfillset sigismember sigpending sigprocmask; do
16745 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16747 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16748 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
16749 $as_echo_n "(cached) " >&6
16750 else
16751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16752 /* end confdefs.h. */
16753 #include <signal.h>
16754
16755 int
16756 main ()
16757 {
16758 #undef $gl_func
16759 (void) $gl_func;
16760 ;
16761 return 0;
16762 }
16763 _ACEOF
16764 if ac_fn_c_try_compile "$LINENO"; then :
16765 eval "$as_gl_Symbol=yes"
16766 else
16767 eval "$as_gl_Symbol=no"
16768 fi
16769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16770 fi
16771 eval ac_res=\$$as_gl_Symbol
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16773 $as_echo "$ac_res" >&6; }
16774 eval as_val=\$$as_gl_Symbol
16775 if test "x$as_val" = x""yes; then :
16776 cat >>confdefs.h <<_ACEOF
16777 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16778 _ACEOF
16779
16780 eval ac_cv_have_decl_$gl_func=yes
16781 fi
16782 done
16783
16784
16785
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
16787 $as_echo_n "checking for ssize_t... " >&6; }
16788 if test "${gt_cv_ssize_t+set}" = set; then :
16789 $as_echo_n "(cached) " >&6
16790 else
16791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16792 /* end confdefs.h. */
16793 #include <sys/types.h>
16794 int
16795 main ()
16796 {
16797 int x = sizeof (ssize_t *) + sizeof (ssize_t);
16798 return !x;
16799 ;
16800 return 0;
16801 }
16802 _ACEOF
16803 if ac_fn_c_try_compile "$LINENO"; then :
16804 gt_cv_ssize_t=yes
16805 else
16806 gt_cv_ssize_t=no
16807 fi
16808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16809 fi
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
16811 $as_echo "$gt_cv_ssize_t" >&6; }
16812 if test $gt_cv_ssize_t = no; then
16813
16814 $as_echo "#define ssize_t int" >>confdefs.h
16815
16816 fi
16817
16818
16819
16820
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
16822 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
16823 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
16824 $as_echo_n "(cached) " >&6
16825 else
16826 if test "$cross_compiling" = yes; then :
16827 case $host_os in
16828 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
16829 *) gl_cv_func_stat_dir_slash="guessing yes";;
16830 esac
16831 else
16832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16833 /* end confdefs.h. */
16834 #include <sys/stat.h>
16835
16836 int
16837 main ()
16838 {
16839 struct stat st; return stat (".", &st) != stat ("./", &st);
16840 ;
16841 return 0;
16842 }
16843 _ACEOF
16844 if ac_fn_c_try_run "$LINENO"; then :
16845 gl_cv_func_stat_dir_slash=yes
16846 else
16847 gl_cv_func_stat_dir_slash=no
16848 fi
16849 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16850 conftest.$ac_objext conftest.beam conftest.$ac_ext
16851 fi
16852
16853 fi
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
16855 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
16857 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
16858 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
16859 $as_echo_n "(cached) " >&6
16860 else
16861 touch conftest.tmp
16862 # Assume that if we have lstat, we can also check symlinks.
16863 if test $ac_cv_func_lstat = yes; then
16864 ln -s conftest.tmp conftest.lnk
16865 fi
16866 if test "$cross_compiling" = yes; then :
16867 case "$host_os" in
16868 # Guess yes on glibc systems.
16869 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
16870 # If we don't know, assume the worst.
16871 *) gl_cv_func_stat_file_slash="guessing no" ;;
16872 esac
16873
16874 else
16875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16876 /* end confdefs.h. */
16877 #include <sys/stat.h>
16878
16879 int
16880 main ()
16881 {
16882 int result = 0;
16883 struct stat st;
16884 if (!stat ("conftest.tmp/", &st))
16885 result |= 1;
16886 #if HAVE_LSTAT
16887 if (!stat ("conftest.lnk/", &st))
16888 result |= 2;
16889 #endif
16890 return result;
16891
16892 ;
16893 return 0;
16894 }
16895 _ACEOF
16896 if ac_fn_c_try_run "$LINENO"; then :
16897 gl_cv_func_stat_file_slash=yes
16898 else
16899 gl_cv_func_stat_file_slash=no
16900 fi
16901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16902 conftest.$ac_objext conftest.beam conftest.$ac_ext
16903 fi
16904
16905 rm -f conftest.tmp conftest.lnk
16906 fi
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
16908 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
16909 case $gl_cv_func_stat_dir_slash in
16910 *no) REPLACE_STAT=1
16911
16912 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
16913 ;;
16914 esac
16915 case $gl_cv_func_stat_file_slash in
16916 *no) REPLACE_STAT=1
16917
16918 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
16919 ;;
16920 esac
16921
16922 if test $REPLACE_STAT = 1; then
16923
16924
16925
16926
16927
16928
16929
16930
16931 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
16932
16933 :
16934 fi
16935
16936
16937
16938
16939
16940 GNULIB_STAT=1
16941
16942
16943
16944
16945
16946 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
16947
16948
16949
16950
16951
16952
16953 # Define two additional variables used in the Makefile substitution.
16954
16955 if test "$ac_cv_header_stdbool_h" = yes; then
16956 STDBOOL_H=''
16957 else
16958 STDBOOL_H='stdbool.h'
16959 fi
16960
16961 if test -n "$STDBOOL_H"; then
16962 GL_GENERATE_STDBOOL_H_TRUE=
16963 GL_GENERATE_STDBOOL_H_FALSE='#'
16964 else
16965 GL_GENERATE_STDBOOL_H_TRUE='#'
16966 GL_GENERATE_STDBOOL_H_FALSE=
16967 fi
16968
16969
16970 if test "$ac_cv_type__Bool" = yes; then
16971 HAVE__BOOL=1
16972 else
16973 HAVE__BOOL=0
16974 fi
16975
16976
16977
16978
16979
16980 STDDEF_H=
16981 ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
16982
16983 "
16984 if test "x$ac_cv_type_max_align_t" = x""yes; then :
16985
16986 else
16987 HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
16988 fi
16989
16990 if test $gt_cv_c_wchar_t = no; then
16991 HAVE_WCHAR_T=0
16992 STDDEF_H=stddef.h
16993 fi
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16995 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
16996 if test "${gl_cv_decl_null_works+set}" = set; then :
16997 $as_echo_n "(cached) " >&6
16998 else
16999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17000 /* end confdefs.h. */
17001 #include <stddef.h>
17002 int test[2 * (sizeof NULL == sizeof (void *)) -1];
17003
17004 int
17005 main ()
17006 {
17007
17008 ;
17009 return 0;
17010 }
17011 _ACEOF
17012 if ac_fn_c_try_compile "$LINENO"; then :
17013 gl_cv_decl_null_works=yes
17014 else
17015 gl_cv_decl_null_works=no
17016 fi
17017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17018 fi
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
17020 $as_echo "$gl_cv_decl_null_works" >&6; }
17021 if test $gl_cv_decl_null_works = no; then
17022 REPLACE_NULL=1
17023 STDDEF_H=stddef.h
17024 fi
17025
17026 if test -n "$STDDEF_H"; then
17027 GL_GENERATE_STDDEF_H_TRUE=
17028 GL_GENERATE_STDDEF_H_FALSE='#'
17029 else
17030 GL_GENERATE_STDDEF_H_TRUE='#'
17031 GL_GENERATE_STDDEF_H_FALSE=
17032 fi
17033
17034 if test -n "$STDDEF_H"; then
17035
17036
17037
17038
17039
17040
17041
17042
17043 if test $gl_cv_have_include_next = yes; then
17044 gl_cv_next_stddef_h='<'stddef.h'>'
17045 else
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
17047 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
17048 if test "${gl_cv_next_stddef_h+set}" = set; then :
17049 $as_echo_n "(cached) " >&6
17050 else
17051
17052
17053
17054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17055 /* end confdefs.h. */
17056 #include <stddef.h>
17057 _ACEOF
17058 case "$host_os" in
17059 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17060 *) gl_absname_cpp="$ac_cpp" ;;
17061 esac
17062
17063 case "$host_os" in
17064 mingw*)
17065 gl_dirsep_regex='[/\\]'
17066 ;;
17067 *)
17068 gl_dirsep_regex='\/'
17069 ;;
17070 esac
17071 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17072 gl_header_literal_regex=`echo 'stddef.h' \
17073 | sed -e "$gl_make_literal_regex_sed"`
17074 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17075 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17076 s|^/[^/]|//&|
17077 p
17078 q
17079 }'
17080
17081 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17082 sed -n "$gl_absolute_header_sed"`
17083
17084 gl_header=$gl_cv_absolute_stddef_h
17085 gl_cv_next_stddef_h='"'$gl_header'"'
17086
17087
17088 fi
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
17090 $as_echo "$gl_cv_next_stddef_h" >&6; }
17091 fi
17092 NEXT_STDDEF_H=$gl_cv_next_stddef_h
17093
17094 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17095 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17096 gl_next_as_first_directive='<'stddef.h'>'
17097 else
17098 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17099 gl_next_as_first_directive=$gl_cv_next_stddef_h
17100 fi
17101 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
17102
17103
17104
17105
17106 fi
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121 if test $gl_cv_have_include_next = yes; then
17122 gl_cv_next_stdio_h='<'stdio.h'>'
17123 else
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
17125 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
17126 if test "${gl_cv_next_stdio_h+set}" = set; then :
17127 $as_echo_n "(cached) " >&6
17128 else
17129
17130
17131
17132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17133 /* end confdefs.h. */
17134 #include <stdio.h>
17135 _ACEOF
17136 case "$host_os" in
17137 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17138 *) gl_absname_cpp="$ac_cpp" ;;
17139 esac
17140
17141 case "$host_os" in
17142 mingw*)
17143 gl_dirsep_regex='[/\\]'
17144 ;;
17145 *)
17146 gl_dirsep_regex='\/'
17147 ;;
17148 esac
17149 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17150 gl_header_literal_regex=`echo 'stdio.h' \
17151 | sed -e "$gl_make_literal_regex_sed"`
17152 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17153 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17154 s|^/[^/]|//&|
17155 p
17156 q
17157 }'
17158
17159 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17160 sed -n "$gl_absolute_header_sed"`
17161
17162 gl_header=$gl_cv_absolute_stdio_h
17163 gl_cv_next_stdio_h='"'$gl_header'"'
17164
17165
17166 fi
17167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
17168 $as_echo "$gl_cv_next_stdio_h" >&6; }
17169 fi
17170 NEXT_STDIO_H=$gl_cv_next_stdio_h
17171
17172 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17173 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17174 gl_next_as_first_directive='<'stdio.h'>'
17175 else
17176 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17177 gl_next_as_first_directive=$gl_cv_next_stdio_h
17178 fi
17179 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
17180
17181
17182
17183
17184
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
17186 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
17187 if test "${gl_cv_func_printf_attribute_flavor+set}" = set; then :
17188 $as_echo_n "(cached) " >&6
17189 else
17190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17191 /* end confdefs.h. */
17192
17193 #define __STDC_FORMAT_MACROS 1
17194 #include <stdio.h>
17195 #include <inttypes.h>
17196 /* For non-mingw systems, compilation will trivially succeed.
17197 For mingw, compilation will succeed for older mingw (system
17198 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
17199 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
17200 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
17201 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
17202 #endif
17203
17204 int
17205 main ()
17206 {
17207
17208 ;
17209 return 0;
17210 }
17211 _ACEOF
17212 if ac_fn_c_try_compile "$LINENO"; then :
17213 gl_cv_func_printf_attribute_flavor=system
17214 else
17215 gl_cv_func_printf_attribute_flavor=gnu
17216 fi
17217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17218 fi
17219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
17220 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
17221 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
17222
17223 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
17224
17225 fi
17226
17227 GNULIB_FSCANF=1
17228
17229
17230 cat >>confdefs.h <<_ACEOF
17231 #define GNULIB_FSCANF 1
17232 _ACEOF
17233
17234
17235 GNULIB_SCANF=1
17236
17237
17238 cat >>confdefs.h <<_ACEOF
17239 #define GNULIB_SCANF 1
17240 _ACEOF
17241
17242
17243 GNULIB_FGETC=1
17244 GNULIB_GETC=1
17245 GNULIB_GETCHAR=1
17246 GNULIB_FGETS=1
17247 GNULIB_FREAD=1
17248
17249
17250 GNULIB_FPRINTF=1
17251 GNULIB_PRINTF=1
17252 GNULIB_VFPRINTF=1
17253 GNULIB_VPRINTF=1
17254 GNULIB_FPUTC=1
17255 GNULIB_PUTC=1
17256 GNULIB_PUTCHAR=1
17257 GNULIB_FPUTS=1
17258 GNULIB_PUTS=1
17259 GNULIB_FWRITE=1
17260
17261
17262
17263
17264 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
17265 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17267 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17268 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17269 $as_echo_n "(cached) " >&6
17270 else
17271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17272 /* end confdefs.h. */
17273 #include <stdio.h>
17274
17275 int
17276 main ()
17277 {
17278 #undef $gl_func
17279 (void) $gl_func;
17280 ;
17281 return 0;
17282 }
17283 _ACEOF
17284 if ac_fn_c_try_compile "$LINENO"; then :
17285 eval "$as_gl_Symbol=yes"
17286 else
17287 eval "$as_gl_Symbol=no"
17288 fi
17289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17290 fi
17291 eval ac_res=\$$as_gl_Symbol
17292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17293 $as_echo "$ac_res" >&6; }
17294 eval as_val=\$$as_gl_Symbol
17295 if test "x$as_val" = x""yes; then :
17296 cat >>confdefs.h <<_ACEOF
17297 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17298 _ACEOF
17299
17300 eval ac_cv_have_decl_$gl_func=yes
17301 fi
17302 done
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315 if test $gl_cv_have_include_next = yes; then
17316 gl_cv_next_stdlib_h='<'stdlib.h'>'
17317 else
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
17319 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
17320 if test "${gl_cv_next_stdlib_h+set}" = set; then :
17321 $as_echo_n "(cached) " >&6
17322 else
17323
17324
17325
17326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17327 /* end confdefs.h. */
17328 #include <stdlib.h>
17329 _ACEOF
17330 case "$host_os" in
17331 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17332 *) gl_absname_cpp="$ac_cpp" ;;
17333 esac
17334
17335 case "$host_os" in
17336 mingw*)
17337 gl_dirsep_regex='[/\\]'
17338 ;;
17339 *)
17340 gl_dirsep_regex='\/'
17341 ;;
17342 esac
17343 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17344 gl_header_literal_regex=`echo 'stdlib.h' \
17345 | sed -e "$gl_make_literal_regex_sed"`
17346 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17347 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17348 s|^/[^/]|//&|
17349 p
17350 q
17351 }'
17352
17353 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17354 sed -n "$gl_absolute_header_sed"`
17355
17356 gl_header=$gl_cv_absolute_stdlib_h
17357 gl_cv_next_stdlib_h='"'$gl_header'"'
17358
17359
17360 fi
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
17362 $as_echo "$gl_cv_next_stdlib_h" >&6; }
17363 fi
17364 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
17365
17366 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17367 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17368 gl_next_as_first_directive='<'stdlib.h'>'
17369 else
17370 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17371 gl_next_as_first_directive=$gl_cv_next_stdlib_h
17372 fi
17373 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
17374
17375
17376
17377
17378
17379
17380 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 random random_r realpath rpmatch secure_getenv setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do
17381 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17383 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17384 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17385 $as_echo_n "(cached) " >&6
17386 else
17387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17388 /* end confdefs.h. */
17389 #include <stdlib.h>
17390 #if HAVE_SYS_LOADAVG_H
17391 # include <sys/loadavg.h>
17392 #endif
17393 #if HAVE_RANDOM_H
17394 # include <random.h>
17395 #endif
17396
17397 int
17398 main ()
17399 {
17400 #undef $gl_func
17401 (void) $gl_func;
17402 ;
17403 return 0;
17404 }
17405 _ACEOF
17406 if ac_fn_c_try_compile "$LINENO"; then :
17407 eval "$as_gl_Symbol=yes"
17408 else
17409 eval "$as_gl_Symbol=no"
17410 fi
17411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17412 fi
17413 eval ac_res=\$$as_gl_Symbol
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17415 $as_echo "$ac_res" >&6; }
17416 eval as_val=\$$as_gl_Symbol
17417 if test "x$as_val" = x""yes; then :
17418 cat >>confdefs.h <<_ACEOF
17419 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17420 _ACEOF
17421
17422 eval ac_cv_have_decl_$gl_func=yes
17423 fi
17424 done
17425
17426
17427
17428
17429
17430
17431
17432 if test $REPLACE_STRSTR = 0; then
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
17434 $as_echo_n "checking whether strstr works in linear time... " >&6; }
17435 if test "${gl_cv_func_strstr_linear+set}" = set; then :
17436 $as_echo_n "(cached) " >&6
17437 else
17438 if test "$cross_compiling" = yes; then :
17439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17440 /* end confdefs.h. */
17441
17442 #include <features.h>
17443 #ifdef __GNU_LIBRARY__
17444 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
17445 && !(defined __i386__ || defined __x86_64__) \
17446 && !defined __UCLIBC__
17447 Lucky user
17448 #endif
17449 #endif
17450 #ifdef __CYGWIN__
17451 #include <cygwin/version.h>
17452 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
17453 Lucky user
17454 #endif
17455 #endif
17456
17457 _ACEOF
17458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17459 $EGREP "Lucky user" >/dev/null 2>&1; then :
17460 gl_cv_func_strstr_linear="guessing yes"
17461 else
17462 gl_cv_func_strstr_linear="guessing no"
17463 fi
17464 rm -f conftest*
17465
17466
17467 else
17468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17469 /* end confdefs.h. */
17470
17471 #include <signal.h> /* for signal */
17472 #include <string.h> /* for strstr */
17473 #include <stdlib.h> /* for malloc */
17474 #include <unistd.h> /* for alarm */
17475 static void quit (int sig) { exit (sig + 128); }
17476
17477 int
17478 main ()
17479 {
17480
17481 int result = 0;
17482 size_t m = 1000000;
17483 char *haystack = (char *) malloc (2 * m + 2);
17484 char *needle = (char *) malloc (m + 2);
17485 /* Failure to compile this test due to missing alarm is okay,
17486 since all such platforms (mingw) also have quadratic strstr. */
17487 signal (SIGALRM, quit);
17488 alarm (5);
17489 /* Check for quadratic performance. */
17490 if (haystack && needle)
17491 {
17492 memset (haystack, 'A', 2 * m);
17493 haystack[2 * m] = 'B';
17494 haystack[2 * m + 1] = 0;
17495 memset (needle, 'A', m);
17496 needle[m] = 'B';
17497 needle[m + 1] = 0;
17498 if (!strstr (haystack, needle))
17499 result |= 1;
17500 }
17501 return result;
17502
17503 ;
17504 return 0;
17505 }
17506 _ACEOF
17507 if ac_fn_c_try_run "$LINENO"; then :
17508 gl_cv_func_strstr_linear=yes
17509 else
17510 gl_cv_func_strstr_linear=no
17511 fi
17512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17513 conftest.$ac_objext conftest.beam conftest.$ac_ext
17514 fi
17515
17516
17517 fi
17518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
17519 $as_echo "$gl_cv_func_strstr_linear" >&6; }
17520 case "$gl_cv_func_strstr_linear" in
17521 *yes) ;;
17522 *)
17523 REPLACE_STRSTR=1
17524 ;;
17525 esac
17526 fi
17527
17528 if test $REPLACE_STRSTR = 1; then
17529
17530
17531
17532
17533
17534
17535
17536
17537 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
17538
17539 fi
17540
17541
17542
17543 if test "$gl_cv_func_memchr_works" != yes; then
17544 REPLACE_STRSTR=1
17545 else
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
17547 $as_echo_n "checking whether strstr works... " >&6; }
17548 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
17549 $as_echo_n "(cached) " >&6
17550 else
17551 if test "$cross_compiling" = yes; then :
17552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17553 /* end confdefs.h. */
17554
17555 #ifdef __GNU_LIBRARY__
17556 #include <features.h>
17557 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
17558 || defined __UCLIBC__
17559 Lucky user
17560 #endif
17561 #elif defined __CYGWIN__
17562 #include <cygwin/version.h>
17563 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
17564 Lucky user
17565 #endif
17566 #else
17567 Lucky user
17568 #endif
17569
17570 _ACEOF
17571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17572 $EGREP "Lucky user" >/dev/null 2>&1; then :
17573 gl_cv_func_strstr_works_always="guessing yes"
17574 else
17575 gl_cv_func_strstr_works_always="guessing no"
17576 fi
17577 rm -f conftest*
17578
17579
17580 else
17581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17582 /* end confdefs.h. */
17583
17584 #include <string.h> /* for strstr */
17585 #define P "_EF_BF_BD"
17586 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
17587 #define NEEDLE P P P P P
17588
17589 int
17590 main ()
17591 {
17592 return !!strstr (HAYSTACK, NEEDLE);
17593
17594 ;
17595 return 0;
17596 }
17597 _ACEOF
17598 if ac_fn_c_try_run "$LINENO"; then :
17599 gl_cv_func_strstr_works_always=yes
17600 else
17601 gl_cv_func_strstr_works_always=no
17602 fi
17603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17604 conftest.$ac_objext conftest.beam conftest.$ac_ext
17605 fi
17606
17607
17608 fi
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
17610 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
17611 case "$gl_cv_func_strstr_works_always" in
17612 *yes) ;;
17613 *)
17614 REPLACE_STRSTR=1
17615 ;;
17616 esac
17617 fi
17618
17619 if test $REPLACE_STRSTR = 1; then
17620
17621
17622
17623
17624
17625
17626
17627
17628 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
17629
17630 fi
17631
17632
17633
17634
17635
17636 GNULIB_STRSTR=1
17637
17638
17639
17640
17641
17642 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
17643
17644
17645
17646
17647
17648
17649
17650 for ac_func in strtok_r
17651 do :
17652 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
17653 if test "x$ac_cv_func_strtok_r" = x""yes; then :
17654 cat >>confdefs.h <<_ACEOF
17655 #define HAVE_STRTOK_R 1
17656 _ACEOF
17657
17658 fi
17659 done
17660
17661 if test $ac_cv_func_strtok_r = yes; then
17662 HAVE_STRTOK_R=1
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
17664 $as_echo_n "checking whether strtok_r works... " >&6; }
17665 if test "${gl_cv_func_strtok_r_works+set}" = set; then :
17666 $as_echo_n "(cached) " >&6
17667 else
17668 if test "$cross_compiling" = yes; then :
17669
17670 case "$host_os" in
17671 # Guess no on glibc systems.
17672 *-gnu*) gl_cv_func_strtok_r_works="guessing no";;
17673 *) gl_cv_func_strtok_r_works="guessing yes";;
17674 esac
17675
17676 else
17677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17678 /* end confdefs.h. */
17679
17680 #ifndef __OPTIMIZE__
17681 # define __OPTIMIZE__ 1
17682 #endif
17683 #undef __OPTIMIZE_SIZE__
17684 #undef __NO_INLINE__
17685 #include <stdlib.h>
17686 #include <string.h>
17687
17688 int
17689 main ()
17690 {
17691 static const char dummy[] = "\177\01a";
17692 char delimiters[] = "xxxxxxxx";
17693 char *save_ptr = (char *) dummy;
17694 strtok_r (delimiters, "x", &save_ptr);
17695 strtok_r (NULL, "x", &save_ptr);
17696 return 0;
17697
17698 ;
17699 return 0;
17700 }
17701
17702 _ACEOF
17703 if ac_fn_c_try_run "$LINENO"; then :
17704 gl_cv_func_strtok_r_works=yes
17705 else
17706 gl_cv_func_strtok_r_works=no
17707 fi
17708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17709 conftest.$ac_objext conftest.beam conftest.$ac_ext
17710 fi
17711
17712
17713 fi
17714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
17715 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
17716 case "$gl_cv_func_strtok_r_works" in
17717 *no)
17718 UNDEFINE_STRTOK_R=1
17719 ;;
17720 esac
17721 else
17722 HAVE_STRTOK_R=0
17723 fi
17724
17725 if test $ac_cv_have_decl_strtok_r = no; then
17726 HAVE_DECL_STRTOK_R=0
17727 fi
17728
17729 if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
17730
17731
17732
17733
17734
17735
17736
17737
17738 gl_LIBOBJS="$gl_LIBOBJS strtok_r.$ac_objext"
17739
17740
17741 :
17742
17743 fi
17744
17745
17746
17747
17748
17749 GNULIB_STRTOK_R=1
17750
17751
17752
17753
17754
17755 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773 if test $gl_cv_have_include_next = yes; then
17774 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17775 else
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
17777 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
17778 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
17779 $as_echo_n "(cached) " >&6
17780 else
17781
17782 if test $ac_cv_header_sys_stat_h = yes; then
17783
17784
17785
17786
17787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17788 /* end confdefs.h. */
17789 #include <sys/stat.h>
17790 _ACEOF
17791 case "$host_os" in
17792 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17793 *) gl_absname_cpp="$ac_cpp" ;;
17794 esac
17795
17796 case "$host_os" in
17797 mingw*)
17798 gl_dirsep_regex='[/\\]'
17799 ;;
17800 *)
17801 gl_dirsep_regex='\/'
17802 ;;
17803 esac
17804 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17805 gl_header_literal_regex=`echo 'sys/stat.h' \
17806 | sed -e "$gl_make_literal_regex_sed"`
17807 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17808 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17809 s|^/[^/]|//&|
17810 p
17811 q
17812 }'
17813
17814 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17815 sed -n "$gl_absolute_header_sed"`
17816
17817 gl_header=$gl_cv_absolute_sys_stat_h
17818 gl_cv_next_sys_stat_h='"'$gl_header'"'
17819 else
17820 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17821 fi
17822
17823
17824 fi
17825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
17826 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
17827 fi
17828 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
17829
17830 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17831 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17832 gl_next_as_first_directive='<'sys/stat.h'>'
17833 else
17834 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17835 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
17836 fi
17837 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
17850
17851 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
17852
17853 fi
17854
17855 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
17856 #include <sys/stat.h>
17857 "
17858 if test "x$ac_cv_type_nlink_t" = x""yes; then :
17859
17860 else
17861
17862 $as_echo "#define nlink_t int" >>confdefs.h
17863
17864 fi
17865
17866
17867
17868 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
17869 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17871 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17872 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17873 $as_echo_n "(cached) " >&6
17874 else
17875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17876 /* end confdefs.h. */
17877 #include <sys/stat.h>
17878
17879 int
17880 main ()
17881 {
17882 #undef $gl_func
17883 (void) $gl_func;
17884 ;
17885 return 0;
17886 }
17887 _ACEOF
17888 if ac_fn_c_try_compile "$LINENO"; then :
17889 eval "$as_gl_Symbol=yes"
17890 else
17891 eval "$as_gl_Symbol=no"
17892 fi
17893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17894 fi
17895 eval ac_res=\$$as_gl_Symbol
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17897 $as_echo "$ac_res" >&6; }
17898 eval as_val=\$$as_gl_Symbol
17899 if test "x$as_val" = x""yes; then :
17900 cat >>confdefs.h <<_ACEOF
17901 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17902 _ACEOF
17903
17904 eval ac_cv_have_decl_$gl_func=yes
17905 fi
17906 done
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931 if test $gl_cv_have_include_next = yes; then
17932 gl_cv_next_unistd_h='<'unistd.h'>'
17933 else
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
17935 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
17936 if test "${gl_cv_next_unistd_h+set}" = set; then :
17937 $as_echo_n "(cached) " >&6
17938 else
17939
17940 if test $ac_cv_header_unistd_h = yes; then
17941
17942
17943
17944
17945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17946 /* end confdefs.h. */
17947 #include <unistd.h>
17948 _ACEOF
17949 case "$host_os" in
17950 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17951 *) gl_absname_cpp="$ac_cpp" ;;
17952 esac
17953
17954 case "$host_os" in
17955 mingw*)
17956 gl_dirsep_regex='[/\\]'
17957 ;;
17958 *)
17959 gl_dirsep_regex='\/'
17960 ;;
17961 esac
17962 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17963 gl_header_literal_regex=`echo 'unistd.h' \
17964 | sed -e "$gl_make_literal_regex_sed"`
17965 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17966 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17967 s|^/[^/]|//&|
17968 p
17969 q
17970 }'
17971
17972 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17973 sed -n "$gl_absolute_header_sed"`
17974
17975 gl_header=$gl_cv_absolute_unistd_h
17976 gl_cv_next_unistd_h='"'$gl_header'"'
17977 else
17978 gl_cv_next_unistd_h='<'unistd.h'>'
17979 fi
17980
17981
17982 fi
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
17984 $as_echo "$gl_cv_next_unistd_h" >&6; }
17985 fi
17986 NEXT_UNISTD_H=$gl_cv_next_unistd_h
17987
17988 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17989 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17990 gl_next_as_first_directive='<'unistd.h'>'
17991 else
17992 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17993 gl_next_as_first_directive=$gl_cv_next_unistd_h
17994 fi
17995 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
17996
17997
17998
17999
18000 if test $ac_cv_header_unistd_h = yes; then
18001 HAVE_UNISTD_H=1
18002 else
18003 HAVE_UNISTD_H=0
18004 fi
18005
18006
18007
18008
18009
18010
18011
18012 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
18013 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18015 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18016 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
18017 $as_echo_n "(cached) " >&6
18018 else
18019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18020 /* end confdefs.h. */
18021
18022 #if HAVE_UNISTD_H
18023 # include <unistd.h>
18024 #endif
18025 /* Some systems declare various items in the wrong headers. */
18026 #if !(defined __GLIBC__ && !defined __UCLIBC__)
18027 # include <fcntl.h>
18028 # include <stdio.h>
18029 # include <stdlib.h>
18030 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18031 # include <io.h>
18032 # endif
18033 #endif
18034
18035 int
18036 main ()
18037 {
18038 #undef $gl_func
18039 (void) $gl_func;
18040 ;
18041 return 0;
18042 }
18043 _ACEOF
18044 if ac_fn_c_try_compile "$LINENO"; then :
18045 eval "$as_gl_Symbol=yes"
18046 else
18047 eval "$as_gl_Symbol=no"
18048 fi
18049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18050 fi
18051 eval ac_res=\$$as_gl_Symbol
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18053 $as_echo "$ac_res" >&6; }
18054 eval as_val=\$$as_gl_Symbol
18055 if test "x$as_val" = x""yes; then :
18056 cat >>confdefs.h <<_ACEOF
18057 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18058 _ACEOF
18059
18060 eval ac_cv_have_decl_$gl_func=yes
18061 fi
18062 done
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077 if test $gl_cv_have_include_next = yes; then
18078 gl_cv_next_wchar_h='<'wchar.h'>'
18079 else
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
18081 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
18082 if test "${gl_cv_next_wchar_h+set}" = set; then :
18083 $as_echo_n "(cached) " >&6
18084 else
18085
18086 if test $ac_cv_header_wchar_h = yes; then
18087
18088
18089
18090
18091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18092 /* end confdefs.h. */
18093 #include <wchar.h>
18094 _ACEOF
18095 case "$host_os" in
18096 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18097 *) gl_absname_cpp="$ac_cpp" ;;
18098 esac
18099
18100 case "$host_os" in
18101 mingw*)
18102 gl_dirsep_regex='[/\\]'
18103 ;;
18104 *)
18105 gl_dirsep_regex='\/'
18106 ;;
18107 esac
18108 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18109 gl_header_literal_regex=`echo 'wchar.h' \
18110 | sed -e "$gl_make_literal_regex_sed"`
18111 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18112 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18113 s|^/[^/]|//&|
18114 p
18115 q
18116 }'
18117
18118 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18119 sed -n "$gl_absolute_header_sed"`
18120
18121 gl_header=$gl_cv_absolute_wchar_h
18122 gl_cv_next_wchar_h='"'$gl_header'"'
18123 else
18124 gl_cv_next_wchar_h='<'wchar.h'>'
18125 fi
18126
18127
18128 fi
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
18130 $as_echo "$gl_cv_next_wchar_h" >&6; }
18131 fi
18132 NEXT_WCHAR_H=$gl_cv_next_wchar_h
18133
18134 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18135 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18136 gl_next_as_first_directive='<'wchar.h'>'
18137 else
18138 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18139 gl_next_as_first_directive=$gl_cv_next_wchar_h
18140 fi
18141 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
18142
18143
18144
18145
18146 if test $ac_cv_header_wchar_h = yes; then
18147 HAVE_WCHAR_H=1
18148 else
18149 HAVE_WCHAR_H=0
18150 fi
18151
18152
18153
18154
18155
18156 if test $gt_cv_c_wint_t = yes; then
18157 HAVE_WINT_T=1
18158 else
18159 HAVE_WINT_T=0
18160 fi
18161
18162
18163
18164 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
18165 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18167 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18168 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
18169 $as_echo_n "(cached) " >&6
18170 else
18171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18172 /* end confdefs.h. */
18173
18174 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18175 <wchar.h>.
18176 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18177 included before <wchar.h>. */
18178 #if !(defined __GLIBC__ && !defined __UCLIBC__)
18179 # include <stddef.h>
18180 # include <stdio.h>
18181 # include <time.h>
18182 #endif
18183 #include <wchar.h>
18184
18185 int
18186 main ()
18187 {
18188 #undef $gl_func
18189 (void) $gl_func;
18190 ;
18191 return 0;
18192 }
18193 _ACEOF
18194 if ac_fn_c_try_compile "$LINENO"; then :
18195 eval "$as_gl_Symbol=yes"
18196 else
18197 eval "$as_gl_Symbol=no"
18198 fi
18199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18200 fi
18201 eval ac_res=\$$as_gl_Symbol
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18203 $as_echo "$ac_res" >&6; }
18204 eval as_val=\$$as_gl_Symbol
18205 if test "x$as_val" = x""yes; then :
18206 cat >>confdefs.h <<_ACEOF
18207 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18208 _ACEOF
18209
18210 eval ac_cv_have_decl_$gl_func=yes
18211 fi
18212 done
18213
18214
18215
18216
18217
18218
18219
18220 if test $ac_cv_func_iswcntrl = yes; then
18221 HAVE_ISWCNTRL=1
18222 else
18223 HAVE_ISWCNTRL=0
18224 fi
18225
18226
18227
18228 if test $gt_cv_c_wint_t = yes; then
18229 HAVE_WINT_T=1
18230 else
18231 HAVE_WINT_T=0
18232 fi
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244 if test $gl_cv_have_include_next = yes; then
18245 gl_cv_next_wctype_h='<'wctype.h'>'
18246 else
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
18248 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
18249 if test "${gl_cv_next_wctype_h+set}" = set; then :
18250 $as_echo_n "(cached) " >&6
18251 else
18252
18253 if test $ac_cv_header_wctype_h = yes; then
18254
18255
18256
18257
18258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18259 /* end confdefs.h. */
18260 #include <wctype.h>
18261 _ACEOF
18262 case "$host_os" in
18263 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18264 *) gl_absname_cpp="$ac_cpp" ;;
18265 esac
18266
18267 case "$host_os" in
18268 mingw*)
18269 gl_dirsep_regex='[/\\]'
18270 ;;
18271 *)
18272 gl_dirsep_regex='\/'
18273 ;;
18274 esac
18275 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18276 gl_header_literal_regex=`echo 'wctype.h' \
18277 | sed -e "$gl_make_literal_regex_sed"`
18278 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18279 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18280 s|^/[^/]|//&|
18281 p
18282 q
18283 }'
18284
18285 gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18286 sed -n "$gl_absolute_header_sed"`
18287
18288 gl_header=$gl_cv_absolute_wctype_h
18289 gl_cv_next_wctype_h='"'$gl_header'"'
18290 else
18291 gl_cv_next_wctype_h='<'wctype.h'>'
18292 fi
18293
18294
18295 fi
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
18297 $as_echo "$gl_cv_next_wctype_h" >&6; }
18298 fi
18299 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
18300
18301 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18302 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18303 gl_next_as_first_directive='<'wctype.h'>'
18304 else
18305 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18306 gl_next_as_first_directive=$gl_cv_next_wctype_h
18307 fi
18308 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
18309
18310
18311
18312
18313 if test $ac_cv_header_wctype_h = yes; then
18314 if test $ac_cv_func_iswcntrl = yes; then
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
18316 $as_echo_n "checking whether iswcntrl works... " >&6; }
18317 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
18318 $as_echo_n "(cached) " >&6
18319 else
18320
18321 if test "$cross_compiling" = yes; then :
18322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18323 /* end confdefs.h. */
18324 #include <stdlib.h>
18325 #if __GNU_LIBRARY__ == 1
18326 Linux libc5 i18n is broken.
18327 #endif
18328 int
18329 main ()
18330 {
18331
18332 ;
18333 return 0;
18334 }
18335 _ACEOF
18336 if ac_fn_c_try_compile "$LINENO"; then :
18337 gl_cv_func_iswcntrl_works="guessing yes"
18338 else
18339 gl_cv_func_iswcntrl_works="guessing no"
18340 fi
18341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18342
18343 else
18344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18345 /* end confdefs.h. */
18346
18347 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18348 included before <wchar.h>.
18349 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18350 must be included before <wchar.h>. */
18351 #include <stddef.h>
18352 #include <stdio.h>
18353 #include <time.h>
18354 #include <wchar.h>
18355 #include <wctype.h>
18356 int main () { return iswprint ('x') == 0; }
18357
18358 _ACEOF
18359 if ac_fn_c_try_run "$LINENO"; then :
18360 gl_cv_func_iswcntrl_works=yes
18361 else
18362 gl_cv_func_iswcntrl_works=no
18363 fi
18364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18365 conftest.$ac_objext conftest.beam conftest.$ac_ext
18366 fi
18367
18368
18369 fi
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
18371 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
18372 fi
18373 HAVE_WCTYPE_H=1
18374 else
18375 HAVE_WCTYPE_H=0
18376 fi
18377
18378
18379 case "$gl_cv_func_iswcntrl_works" in
18380 *yes) REPLACE_ISWCNTRL=0 ;;
18381 *) REPLACE_ISWCNTRL=1 ;;
18382 esac
18383
18384
18385 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
18386 :
18387 fi
18388
18389 if test $REPLACE_ISWCNTRL = 1; then
18390 REPLACE_TOWLOWER=1
18391 else
18392 for ac_func in towlower
18393 do :
18394 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
18395 if test "x$ac_cv_func_towlower" = x""yes; then :
18396 cat >>confdefs.h <<_ACEOF
18397 #define HAVE_TOWLOWER 1
18398 _ACEOF
18399
18400 fi
18401 done
18402
18403 if test $ac_cv_func_towlower = yes; then
18404 REPLACE_TOWLOWER=0
18405 else
18406 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18407 included before <wchar.h>.
18408 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18409 must be included before <wchar.h>. */
18410 #include <stddef.h>
18411 #include <stdio.h>
18412 #include <time.h>
18413 #include <wchar.h>
18414 #if HAVE_WCTYPE_H
18415 # include <wctype.h>
18416 #endif
18417
18418 "
18419 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
18420 ac_have_decl=1
18421 else
18422 ac_have_decl=0
18423 fi
18424
18425 cat >>confdefs.h <<_ACEOF
18426 #define HAVE_DECL_TOWLOWER $ac_have_decl
18427 _ACEOF
18428
18429 if test $ac_cv_have_decl_towlower = yes; then
18430 REPLACE_TOWLOWER=1
18431 else
18432 REPLACE_TOWLOWER=0
18433 fi
18434 fi
18435 fi
18436
18437
18438 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
18439 :
18440 fi
18441
18442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
18443 $as_echo_n "checking for wctype_t... " >&6; }
18444 if test "${gl_cv_type_wctype_t+set}" = set; then :
18445 $as_echo_n "(cached) " >&6
18446 else
18447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18448 /* end confdefs.h. */
18449 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18450 included before <wchar.h>.
18451 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18452 must be included before <wchar.h>. */
18453 #include <stddef.h>
18454 #include <stdio.h>
18455 #include <time.h>
18456 #include <wchar.h>
18457 #if HAVE_WCTYPE_H
18458 # include <wctype.h>
18459 #endif
18460 wctype_t a;
18461
18462 int
18463 main ()
18464 {
18465
18466 ;
18467 return 0;
18468 }
18469 _ACEOF
18470 if ac_fn_c_try_compile "$LINENO"; then :
18471 gl_cv_type_wctype_t=yes
18472 else
18473 gl_cv_type_wctype_t=no
18474 fi
18475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18476
18477 fi
18478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
18479 $as_echo "$gl_cv_type_wctype_t" >&6; }
18480 if test $gl_cv_type_wctype_t = no; then
18481 HAVE_WCTYPE_T=0
18482 fi
18483
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
18485 $as_echo_n "checking for wctrans_t... " >&6; }
18486 if test "${gl_cv_type_wctrans_t+set}" = set; then :
18487 $as_echo_n "(cached) " >&6
18488 else
18489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18490 /* end confdefs.h. */
18491 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18492 included before <wchar.h>.
18493 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18494 must be included before <wchar.h>. */
18495 #include <stddef.h>
18496 #include <stdio.h>
18497 #include <time.h>
18498 #include <wchar.h>
18499 #include <wctype.h>
18500 wctrans_t a;
18501
18502 int
18503 main ()
18504 {
18505
18506 ;
18507 return 0;
18508 }
18509 _ACEOF
18510 if ac_fn_c_try_compile "$LINENO"; then :
18511 gl_cv_type_wctrans_t=yes
18512 else
18513 gl_cv_type_wctrans_t=no
18514 fi
18515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18516
18517 fi
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
18519 $as_echo "$gl_cv_type_wctrans_t" >&6; }
18520 if test $gl_cv_type_wctrans_t = no; then
18521 HAVE_WCTRANS_T=0
18522 fi
18523
18524
18525 for gl_func in wctype iswctype wctrans towctrans ; do
18526 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18528 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18529 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
18530 $as_echo_n "(cached) " >&6
18531 else
18532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18533 /* end confdefs.h. */
18534
18535 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18536 <wchar.h>.
18537 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18538 included before <wchar.h>. */
18539 #if !(defined __GLIBC__ && !defined __UCLIBC__)
18540 # include <stddef.h>
18541 # include <stdio.h>
18542 # include <time.h>
18543 # include <wchar.h>
18544 #endif
18545 #include <wctype.h>
18546
18547 int
18548 main ()
18549 {
18550 #undef $gl_func
18551 (void) $gl_func;
18552 ;
18553 return 0;
18554 }
18555 _ACEOF
18556 if ac_fn_c_try_compile "$LINENO"; then :
18557 eval "$as_gl_Symbol=yes"
18558 else
18559 eval "$as_gl_Symbol=no"
18560 fi
18561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18562 fi
18563 eval ac_res=\$$as_gl_Symbol
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18565 $as_echo "$ac_res" >&6; }
18566 eval as_val=\$$as_gl_Symbol
18567 if test "x$as_val" = x""yes; then :
18568 cat >>confdefs.h <<_ACEOF
18569 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18570 _ACEOF
18571
18572 eval ac_cv_have_decl_$gl_func=yes
18573 fi
18574 done
18575
18576
18577 # End of code from modules
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587 gltests_libdeps=
18588 gltests_ltlibdeps=
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598 gl_source_base='tests'
18599 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
18600
18601 gl_module_indicator_condition=$gltests_WITNESS
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611 LIBGNU_LIBDEPS="$gl_libdeps"
18612
18613 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
18614
18615
18616
18617 # We don't use automake, but gnulib does. This line lets us generate
18618 # its Makefile.in.
18619 am__api_version='1.11'
18620
18621 # Find a good install program. We prefer a C program (faster),
18622 # so one script is as good as another. But avoid the broken or
18623 # incompatible versions:
18624 # SysV /etc/install, /usr/sbin/install
18625 # SunOS /usr/etc/install
18626 # IRIX /sbin/install
18627 # AIX /bin/install
18628 # AmigaOS /C/install, which installs bootblocks on floppy discs
18629 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18630 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
18631 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18632 # OS/2's system install, which has a completely different semantic
18633 # ./install, which can be erroneously created by make from ./install.sh.
18634 # Reject install programs that cannot install multiple files.
18635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
18636 $as_echo_n "checking for a BSD-compatible install... " >&6; }
18637 if test -z "$INSTALL"; then
18638 if test "${ac_cv_path_install+set}" = set; then :
18639 $as_echo_n "(cached) " >&6
18640 else
18641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18642 for as_dir in $PATH
18643 do
18644 IFS=$as_save_IFS
18645 test -z "$as_dir" && as_dir=.
18646 # Account for people who put trailing slashes in PATH elements.
18647 case $as_dir/ in #((
18648 ./ | .// | /[cC]/* | \
18649 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18650 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
18651 /usr/ucb/* ) ;;
18652 *)
18653 # OSF1 and SCO ODT 3.0 have their own names for install.
18654 # Don't use installbsd from OSF since it installs stuff as root
18655 # by default.
18656 for ac_prog in ginstall scoinst install; do
18657 for ac_exec_ext in '' $ac_executable_extensions; do
18658 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
18659 if test $ac_prog = install &&
18660 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18661 # AIX install. It has an incompatible calling convention.
18662 :
18663 elif test $ac_prog = install &&
18664 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18665 # program-specific install script used by HP pwplus--don't use.
18666 :
18667 else
18668 rm -rf conftest.one conftest.two conftest.dir
18669 echo one > conftest.one
18670 echo two > conftest.two
18671 mkdir conftest.dir
18672 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
18673 test -s conftest.one && test -s conftest.two &&
18674 test -s conftest.dir/conftest.one &&
18675 test -s conftest.dir/conftest.two
18676 then
18677 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18678 break 3
18679 fi
18680 fi
18681 fi
18682 done
18683 done
18684 ;;
18685 esac
18686
18687 done
18688 IFS=$as_save_IFS
18689
18690 rm -rf conftest.one conftest.two conftest.dir
18691
18692 fi
18693 if test "${ac_cv_path_install+set}" = set; then
18694 INSTALL=$ac_cv_path_install
18695 else
18696 # As a last resort, use the slow shell script. Don't cache a
18697 # value for INSTALL within a source directory, because that will
18698 # break other packages using the cache if that directory is
18699 # removed, or if the value is a relative name.
18700 INSTALL=$ac_install_sh
18701 fi
18702 fi
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
18704 $as_echo "$INSTALL" >&6; }
18705
18706 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18707 # It thinks the first close brace ends the variable substitution.
18708 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18709
18710 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18711
18712 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18713
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
18715 $as_echo_n "checking whether build environment is sane... " >&6; }
18716 # Just in case
18717 sleep 1
18718 echo timestamp > conftest.file
18719 # Reject unsafe characters in $srcdir or the absolute working directory
18720 # name. Accept space and tab only in the latter.
18721 am_lf='
18722 '
18723 case `pwd` in
18724 *[\\\"\#\$\&\'\`$am_lf]*)
18725 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
18726 esac
18727 case $srcdir in
18728 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
18729 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
18730 esac
18731
18732 # Do `set' in a subshell so we don't clobber the current shell's
18733 # arguments. Must try -L first in case configure is actually a
18734 # symlink; some systems play weird games with the mod time of symlinks
18735 # (eg FreeBSD returns the mod time of the symlink's containing
18736 # directory).
18737 if (
18738 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
18739 if test "$*" = "X"; then
18740 # -L didn't work.
18741 set X `ls -t "$srcdir/configure" conftest.file`
18742 fi
18743 rm -f conftest.file
18744 if test "$*" != "X $srcdir/configure conftest.file" \
18745 && test "$*" != "X conftest.file $srcdir/configure"; then
18746
18747 # If neither matched, then we have a broken ls. This can happen
18748 # if, for instance, CONFIG_SHELL is bash and it inherits a
18749 # broken ls alias from the environment. This has actually
18750 # happened. Such a system could not be considered "sane".
18751 as_fn_error "ls -t appears to fail. Make sure there is not a broken
18752 alias in your environment" "$LINENO" 5
18753 fi
18754
18755 test "$2" = conftest.file
18756 )
18757 then
18758 # Ok.
18759 :
18760 else
18761 as_fn_error "newly created file is older than distributed files!
18762 Check your system clock" "$LINENO" 5
18763 fi
18764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18765 $as_echo "yes" >&6; }
18766 test "$program_prefix" != NONE &&
18767 program_transform_name="s&^&$program_prefix&;$program_transform_name"
18768 # Use a double $ so make ignores it.
18769 test "$program_suffix" != NONE &&
18770 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
18771 # Double any \ or $.
18772 # By default was `s,x,x', remove it if useless.
18773 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
18774 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
18775
18776 # expand $ac_aux_dir to an absolute path
18777 am_aux_dir=`cd $ac_aux_dir && pwd`
18778
18779 if test x"${MISSING+set}" != xset; then
18780 case $am_aux_dir in
18781 *\ * | *\ *)
18782 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
18783 *)
18784 MISSING="\${SHELL} $am_aux_dir/missing" ;;
18785 esac
18786 fi
18787 # Use eval to expand $SHELL
18788 if eval "$MISSING --run true"; then
18789 am_missing_run="$MISSING --run "
18790 else
18791 am_missing_run=
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
18793 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
18794 fi
18795
18796 if test x"${install_sh}" != xset; then
18797 case $am_aux_dir in
18798 *\ * | *\ *)
18799 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
18800 *)
18801 install_sh="\${SHELL} $am_aux_dir/install-sh"
18802 esac
18803 fi
18804
18805 # Installed binaries are usually stripped using `strip' when the user
18806 # run `make install-strip'. However `strip' might not be the right
18807 # tool to use in cross-compilation environments, therefore Automake
18808 # will honor the `STRIP' environment variable to overrule this program.
18809 if test "$cross_compiling" != no; then
18810 if test -n "$ac_tool_prefix"; then
18811 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
18812 set dummy ${ac_tool_prefix}strip; ac_word=$2
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18814 $as_echo_n "checking for $ac_word... " >&6; }
18815 if test "${ac_cv_prog_STRIP+set}" = set; then :
18816 $as_echo_n "(cached) " >&6
18817 else
18818 if test -n "$STRIP"; then
18819 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
18820 else
18821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18822 for as_dir in $PATH
18823 do
18824 IFS=$as_save_IFS
18825 test -z "$as_dir" && as_dir=.
18826 for ac_exec_ext in '' $ac_executable_extensions; do
18827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18828 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
18829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18830 break 2
18831 fi
18832 done
18833 done
18834 IFS=$as_save_IFS
18835
18836 fi
18837 fi
18838 STRIP=$ac_cv_prog_STRIP
18839 if test -n "$STRIP"; then
18840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
18841 $as_echo "$STRIP" >&6; }
18842 else
18843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18844 $as_echo "no" >&6; }
18845 fi
18846
18847
18848 fi
18849 if test -z "$ac_cv_prog_STRIP"; then
18850 ac_ct_STRIP=$STRIP
18851 # Extract the first word of "strip", so it can be a program name with args.
18852 set dummy strip; ac_word=$2
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18854 $as_echo_n "checking for $ac_word... " >&6; }
18855 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
18856 $as_echo_n "(cached) " >&6
18857 else
18858 if test -n "$ac_ct_STRIP"; then
18859 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
18860 else
18861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18862 for as_dir in $PATH
18863 do
18864 IFS=$as_save_IFS
18865 test -z "$as_dir" && as_dir=.
18866 for ac_exec_ext in '' $ac_executable_extensions; do
18867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18868 ac_cv_prog_ac_ct_STRIP="strip"
18869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18870 break 2
18871 fi
18872 done
18873 done
18874 IFS=$as_save_IFS
18875
18876 fi
18877 fi
18878 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
18879 if test -n "$ac_ct_STRIP"; then
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
18881 $as_echo "$ac_ct_STRIP" >&6; }
18882 else
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18884 $as_echo "no" >&6; }
18885 fi
18886
18887 if test "x$ac_ct_STRIP" = x; then
18888 STRIP=":"
18889 else
18890 case $cross_compiling:$ac_tool_warned in
18891 yes:)
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18894 ac_tool_warned=yes ;;
18895 esac
18896 STRIP=$ac_ct_STRIP
18897 fi
18898 else
18899 STRIP="$ac_cv_prog_STRIP"
18900 fi
18901
18902 fi
18903 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
18904
18905 mkdir_p="$MKDIR_P"
18906 case $mkdir_p in
18907 [\\/$]* | ?:[\\/]*) ;;
18908 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
18909 esac
18910
18911 for ac_prog in gawk mawk nawk awk
18912 do
18913 # Extract the first word of "$ac_prog", so it can be a program name with args.
18914 set dummy $ac_prog; ac_word=$2
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18916 $as_echo_n "checking for $ac_word... " >&6; }
18917 if test "${ac_cv_prog_AWK+set}" = set; then :
18918 $as_echo_n "(cached) " >&6
18919 else
18920 if test -n "$AWK"; then
18921 ac_cv_prog_AWK="$AWK" # Let the user override the test.
18922 else
18923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18924 for as_dir in $PATH
18925 do
18926 IFS=$as_save_IFS
18927 test -z "$as_dir" && as_dir=.
18928 for ac_exec_ext in '' $ac_executable_extensions; do
18929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18930 ac_cv_prog_AWK="$ac_prog"
18931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18932 break 2
18933 fi
18934 done
18935 done
18936 IFS=$as_save_IFS
18937
18938 fi
18939 fi
18940 AWK=$ac_cv_prog_AWK
18941 if test -n "$AWK"; then
18942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
18943 $as_echo "$AWK" >&6; }
18944 else
18945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18946 $as_echo "no" >&6; }
18947 fi
18948
18949
18950 test -n "$AWK" && break
18951 done
18952
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18954 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
18955 set x ${MAKE-make}
18956 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
18957 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
18958 $as_echo_n "(cached) " >&6
18959 else
18960 cat >conftest.make <<\_ACEOF
18961 SHELL = /bin/sh
18962 all:
18963 @echo '@@@%%%=$(MAKE)=@@@%%%'
18964 _ACEOF
18965 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18966 case `${MAKE-make} -f conftest.make 2>/dev/null` in
18967 *@@@%%%=?*=@@@%%%*)
18968 eval ac_cv_prog_make_${ac_make}_set=yes;;
18969 *)
18970 eval ac_cv_prog_make_${ac_make}_set=no;;
18971 esac
18972 rm -f conftest.make
18973 fi
18974 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18976 $as_echo "yes" >&6; }
18977 SET_MAKE=
18978 else
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18980 $as_echo "no" >&6; }
18981 SET_MAKE="MAKE=${MAKE-make}"
18982 fi
18983
18984 rm -rf .tst 2>/dev/null
18985 mkdir .tst 2>/dev/null
18986 if test -d .tst; then
18987 am__leading_dot=.
18988 else
18989 am__leading_dot=_
18990 fi
18991 rmdir .tst 2>/dev/null
18992
18993 DEPDIR="${am__leading_dot}deps"
18994
18995 ac_config_commands="$ac_config_commands depfiles"
18996
18997
18998 am_make=${MAKE-make}
18999 cat > confinc << 'END'
19000 am__doit:
19001 @echo this is the am__doit target
19002 .PHONY: am__doit
19003 END
19004 # If we don't find an include directive, just comment out the code.
19005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
19006 $as_echo_n "checking for style of include used by $am_make... " >&6; }
19007 am__include="#"
19008 am__quote=
19009 _am_result=none
19010 # First try GNU make style include.
19011 echo "include confinc" > confmf
19012 # Ignore all kinds of additional output from `make'.
19013 case `$am_make -s -f confmf 2> /dev/null` in #(
19014 *the\ am__doit\ target*)
19015 am__include=include
19016 am__quote=
19017 _am_result=GNU
19018 ;;
19019 esac
19020 # Now try BSD make style include.
19021 if test "$am__include" = "#"; then
19022 echo '.include "confinc"' > confmf
19023 case `$am_make -s -f confmf 2> /dev/null` in #(
19024 *the\ am__doit\ target*)
19025 am__include=.include
19026 am__quote="\""
19027 _am_result=BSD
19028 ;;
19029 esac
19030 fi
19031
19032
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
19034 $as_echo "$_am_result" >&6; }
19035 rm -f confinc confmf
19036
19037 # Check whether --enable-dependency-tracking was given.
19038 if test "${enable_dependency_tracking+set}" = set; then :
19039 enableval=$enable_dependency_tracking;
19040 fi
19041
19042 if test "x$enable_dependency_tracking" != xno; then
19043 am_depcomp="$ac_aux_dir/depcomp"
19044 AMDEPBACKSLASH='\'
19045 fi
19046 if test "x$enable_dependency_tracking" != xno; then
19047 AMDEP_TRUE=
19048 AMDEP_FALSE='#'
19049 else
19050 AMDEP_TRUE='#'
19051 AMDEP_FALSE=
19052 fi
19053
19054
19055 if test "`cd $srcdir && pwd`" != "`pwd`"; then
19056 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
19057 # is not polluted with repeated "-I."
19058 am__isrc=' -I$(srcdir)'
19059 # test to see if srcdir already configured
19060 if test -f $srcdir/config.status; then
19061 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
19062 fi
19063 fi
19064
19065 # test whether we have cygpath
19066 if test -z "$CYGPATH_W"; then
19067 if (cygpath --version) >/dev/null 2>/dev/null; then
19068 CYGPATH_W='cygpath -w'
19069 else
19070 CYGPATH_W=echo
19071 fi
19072 fi
19073
19074
19075 # Define the identity of the package.
19076 PACKAGE=libgnu
19077 VERSION=UNUSED-VERSION
19078
19079
19080 # Some tools Automake needs.
19081
19082 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
19083
19084
19085 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19086
19087
19088 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
19089
19090
19091 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19092
19093
19094 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
19095
19096 # We need awk for the "check" target. The system "awk" is bad on
19097 # some platforms.
19098 # Always define AMTAR for backward compatibility.
19099
19100 AMTAR=${AMTAR-"${am_missing_run}tar"}
19101
19102 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
19103
19104
19105
19106
19107 depcc="$CC" am_compiler_list=
19108
19109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
19110 $as_echo_n "checking dependency style of $depcc... " >&6; }
19111 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
19112 $as_echo_n "(cached) " >&6
19113 else
19114 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19115 # We make a subdir and do the tests there. Otherwise we can end up
19116 # making bogus files that we don't know about and never remove. For
19117 # instance it was reported that on HP-UX the gcc test will end up
19118 # making a dummy file named `D' -- because `-MD' means `put the output
19119 # in D'.
19120 mkdir conftest.dir
19121 # Copy depcomp to subdir because otherwise we won't find it if we're
19122 # using a relative directory.
19123 cp "$am_depcomp" conftest.dir
19124 cd conftest.dir
19125 # We will build objects and dependencies in a subdirectory because
19126 # it helps to detect inapplicable dependency modes. For instance
19127 # both Tru64's cc and ICC support -MD to output dependencies as a
19128 # side effect of compilation, but ICC will put the dependencies in
19129 # the current directory while Tru64 will put them in the object
19130 # directory.
19131 mkdir sub
19132
19133 am_cv_CC_dependencies_compiler_type=none
19134 if test "$am_compiler_list" = ""; then
19135 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19136 fi
19137 am__universal=false
19138 case " $depcc " in #(
19139 *\ -arch\ *\ -arch\ *) am__universal=true ;;
19140 esac
19141
19142 for depmode in $am_compiler_list; do
19143 # Setup a source with many dependencies, because some compilers
19144 # like to wrap large dependency lists on column 80 (with \), and
19145 # we should not choose a depcomp mode which is confused by this.
19146 #
19147 # We need to recreate these files for each test, as the compiler may
19148 # overwrite some of them when testing with obscure command lines.
19149 # This happens at least with the AIX C compiler.
19150 : > sub/conftest.c
19151 for i in 1 2 3 4 5 6; do
19152 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19153 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19154 # Solaris 8's {/usr,}/bin/sh.
19155 touch sub/conftst$i.h
19156 done
19157 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19158
19159 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19160 # mode. It turns out that the SunPro C++ compiler does not properly
19161 # handle `-M -o', and we need to detect this. Also, some Intel
19162 # versions had trouble with output in subdirs
19163 am__obj=sub/conftest.${OBJEXT-o}
19164 am__minus_obj="-o $am__obj"
19165 case $depmode in
19166 gcc)
19167 # This depmode causes a compiler race in universal mode.
19168 test "$am__universal" = false || continue
19169 ;;
19170 nosideeffect)
19171 # after this tag, mechanisms are not by side-effect, so they'll
19172 # only be used when explicitly requested
19173 if test "x$enable_dependency_tracking" = xyes; then
19174 continue
19175 else
19176 break
19177 fi
19178 ;;
19179 msvisualcpp | msvcmsys)
19180 # This compiler won't grok `-c -o', but also, the minuso test has
19181 # not run yet. These depmodes are late enough in the game, and
19182 # so weak that their functioning should not be impacted.
19183 am__obj=conftest.${OBJEXT-o}
19184 am__minus_obj=
19185 ;;
19186 none) break ;;
19187 esac
19188 if depmode=$depmode \
19189 source=sub/conftest.c object=$am__obj \
19190 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19191 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
19192 >/dev/null 2>conftest.err &&
19193 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
19194 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19195 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
19196 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19197 # icc doesn't choke on unknown options, it will just issue warnings
19198 # or remarks (even with -Werror). So we grep stderr for any message
19199 # that says an option was ignored or not supported.
19200 # When given -MP, icc 7.0 and 7.1 complain thusly:
19201 # icc: Command line warning: ignoring option '-M'; no argument required
19202 # The diagnosis changed in icc 8.0:
19203 # icc: Command line remark: option '-MP' not supported
19204 if (grep 'ignoring option' conftest.err ||
19205 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19206 am_cv_CC_dependencies_compiler_type=$depmode
19207 break
19208 fi
19209 fi
19210 done
19211
19212 cd ..
19213 rm -rf conftest.dir
19214 else
19215 am_cv_CC_dependencies_compiler_type=none
19216 fi
19217
19218 fi
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
19220 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
19221 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19222
19223 if
19224 test "x$enable_dependency_tracking" != xno \
19225 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19226 am__fastdepCC_TRUE=
19227 am__fastdepCC_FALSE='#'
19228 else
19229 am__fastdepCC_TRUE='#'
19230 am__fastdepCC_FALSE=
19231 fi
19232
19233
19234
19235
19236 # --------------------- #
19237 # Checks for programs. #
19238 # --------------------- #
19239
19240
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
19242 $as_echo_n "checking whether ln -s works... " >&6; }
19243 LN_S=$as_ln_s
19244 if test "$LN_S" = "ln -s"; then
19245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19246 $as_echo "yes" >&6; }
19247 else
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
19249 $as_echo "no, using $LN_S" >&6; }
19250 fi
19251
19252 if test -n "$ac_tool_prefix"; then
19253 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19254 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19256 $as_echo_n "checking for $ac_word... " >&6; }
19257 if test "${ac_cv_prog_RANLIB+set}" = set; then :
19258 $as_echo_n "(cached) " >&6
19259 else
19260 if test -n "$RANLIB"; then
19261 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19262 else
19263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19264 for as_dir in $PATH
19265 do
19266 IFS=$as_save_IFS
19267 test -z "$as_dir" && as_dir=.
19268 for ac_exec_ext in '' $ac_executable_extensions; do
19269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19270 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19272 break 2
19273 fi
19274 done
19275 done
19276 IFS=$as_save_IFS
19277
19278 fi
19279 fi
19280 RANLIB=$ac_cv_prog_RANLIB
19281 if test -n "$RANLIB"; then
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19283 $as_echo "$RANLIB" >&6; }
19284 else
19285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19286 $as_echo "no" >&6; }
19287 fi
19288
19289
19290 fi
19291 if test -z "$ac_cv_prog_RANLIB"; then
19292 ac_ct_RANLIB=$RANLIB
19293 # Extract the first word of "ranlib", so it can be a program name with args.
19294 set dummy ranlib; ac_word=$2
19295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19296 $as_echo_n "checking for $ac_word... " >&6; }
19297 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
19298 $as_echo_n "(cached) " >&6
19299 else
19300 if test -n "$ac_ct_RANLIB"; then
19301 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19302 else
19303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19304 for as_dir in $PATH
19305 do
19306 IFS=$as_save_IFS
19307 test -z "$as_dir" && as_dir=.
19308 for ac_exec_ext in '' $ac_executable_extensions; do
19309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19310 ac_cv_prog_ac_ct_RANLIB="ranlib"
19311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19312 break 2
19313 fi
19314 done
19315 done
19316 IFS=$as_save_IFS
19317
19318 fi
19319 fi
19320 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19321 if test -n "$ac_ct_RANLIB"; then
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19323 $as_echo "$ac_ct_RANLIB" >&6; }
19324 else
19325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19326 $as_echo "no" >&6; }
19327 fi
19328
19329 if test "x$ac_ct_RANLIB" = x; then
19330 RANLIB=":"
19331 else
19332 case $cross_compiling:$ac_tool_warned in
19333 yes:)
19334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19335 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19336 ac_tool_warned=yes ;;
19337 esac
19338 RANLIB=$ac_ct_RANLIB
19339 fi
19340 else
19341 RANLIB="$ac_cv_prog_RANLIB"
19342 fi
19343
19344
19345 if test -n "$ac_tool_prefix"; then
19346 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19347 set dummy ${ac_tool_prefix}ar; ac_word=$2
19348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19349 $as_echo_n "checking for $ac_word... " >&6; }
19350 if test "${ac_cv_prog_AR+set}" = set; then :
19351 $as_echo_n "(cached) " >&6
19352 else
19353 if test -n "$AR"; then
19354 ac_cv_prog_AR="$AR" # Let the user override the test.
19355 else
19356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19357 for as_dir in $PATH
19358 do
19359 IFS=$as_save_IFS
19360 test -z "$as_dir" && as_dir=.
19361 for ac_exec_ext in '' $ac_executable_extensions; do
19362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19363 ac_cv_prog_AR="${ac_tool_prefix}ar"
19364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19365 break 2
19366 fi
19367 done
19368 done
19369 IFS=$as_save_IFS
19370
19371 fi
19372 fi
19373 AR=$ac_cv_prog_AR
19374 if test -n "$AR"; then
19375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
19376 $as_echo "$AR" >&6; }
19377 else
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19379 $as_echo "no" >&6; }
19380 fi
19381
19382
19383 fi
19384 if test -z "$ac_cv_prog_AR"; then
19385 ac_ct_AR=$AR
19386 # Extract the first word of "ar", so it can be a program name with args.
19387 set dummy ar; ac_word=$2
19388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19389 $as_echo_n "checking for $ac_word... " >&6; }
19390 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
19391 $as_echo_n "(cached) " >&6
19392 else
19393 if test -n "$ac_ct_AR"; then
19394 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
19395 else
19396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19397 for as_dir in $PATH
19398 do
19399 IFS=$as_save_IFS
19400 test -z "$as_dir" && as_dir=.
19401 for ac_exec_ext in '' $ac_executable_extensions; do
19402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19403 ac_cv_prog_ac_ct_AR="ar"
19404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19405 break 2
19406 fi
19407 done
19408 done
19409 IFS=$as_save_IFS
19410
19411 fi
19412 fi
19413 ac_ct_AR=$ac_cv_prog_ac_ct_AR
19414 if test -n "$ac_ct_AR"; then
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
19416 $as_echo "$ac_ct_AR" >&6; }
19417 else
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19419 $as_echo "no" >&6; }
19420 fi
19421
19422 if test "x$ac_ct_AR" = x; then
19423 AR=""
19424 else
19425 case $cross_compiling:$ac_tool_warned in
19426 yes:)
19427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19429 ac_tool_warned=yes ;;
19430 esac
19431 AR=$ac_ct_AR
19432 fi
19433 else
19434 AR="$ac_cv_prog_AR"
19435 fi
19436
19437
19438 # ---------------------- #
19439 # Checks for libraries. #
19440 # ---------------------- #
19441
19442 ac_config_files="$ac_config_files Makefile import/Makefile"
19443
19444 ac_config_commands="$ac_config_commands default"
19445
19446 cat >confcache <<\_ACEOF
19447 # This file is a shell script that caches the results of configure
19448 # tests run on this system so they can be shared between configure
19449 # scripts and configure runs, see configure's option --config-cache.
19450 # It is not useful on other systems. If it contains results you don't
19451 # want to keep, you may remove or edit it.
19452 #
19453 # config.status only pays attention to the cache file if you give it
19454 # the --recheck option to rerun configure.
19455 #
19456 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19457 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19458 # following values.
19459
19460 _ACEOF
19461
19462 # The following way of writing the cache mishandles newlines in values,
19463 # but we know of no workaround that is simple, portable, and efficient.
19464 # So, we kill variables containing newlines.
19465 # Ultrix sh set writes to stderr and can't be redirected directly,
19466 # and sets the high bit in the cache file unless we assign to the vars.
19467 (
19468 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19469 eval ac_val=\$$ac_var
19470 case $ac_val in #(
19471 *${as_nl}*)
19472 case $ac_var in #(
19473 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19474 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19475 esac
19476 case $ac_var in #(
19477 _ | IFS | as_nl) ;; #(
19478 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19479 *) { eval $ac_var=; unset $ac_var;} ;;
19480 esac ;;
19481 esac
19482 done
19483
19484 (set) 2>&1 |
19485 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19486 *${as_nl}ac_space=\ *)
19487 # `set' does not quote correctly, so add quotes: double-quote
19488 # substitution turns \\\\ into \\, and sed turns \\ into \.
19489 sed -n \
19490 "s/'/'\\\\''/g;
19491 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19492 ;; #(
19493 *)
19494 # `set' quotes correctly as required by POSIX, so do not add quotes.
19495 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19496 ;;
19497 esac |
19498 sort
19499 ) |
19500 sed '
19501 /^ac_cv_env_/b end
19502 t clear
19503 :clear
19504 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19505 t end
19506 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19507 :end' >>confcache
19508 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19509 if test -w "$cache_file"; then
19510 test "x$cache_file" != "x/dev/null" &&
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19512 $as_echo "$as_me: updating cache $cache_file" >&6;}
19513 cat confcache >$cache_file
19514 else
19515 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19516 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19517 fi
19518 fi
19519 rm -f confcache
19520
19521 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19522 # Let make expand exec_prefix.
19523 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19524
19525 DEFS=-DHAVE_CONFIG_H
19526
19527 ac_libobjs=
19528 ac_ltlibobjs=
19529 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19530 # 1. Remove the extension, and $U if already installed.
19531 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19532 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19533 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19534 # will be set to the directory where LIBOBJS objects are built.
19535 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19536 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19537 done
19538 LIBOBJS=$ac_libobjs
19539
19540 LTLIBOBJS=$ac_ltlibobjs
19541
19542
19543 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19544 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
19545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19546 fi
19547 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
19548 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
19549 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19550 fi
19551 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
19552 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
19553 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19554 fi
19555 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
19556 as_fn_error "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
19557 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19558 fi
19559 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
19560 as_fn_error "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
19561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19562 fi
19563 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
19564 as_fn_error "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
19565 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19566 fi
19567 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
19568 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
19569 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19570 fi
19571
19572
19573 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
19574 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
19575 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19576 fi
19577 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
19578 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
19579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19580 fi
19581
19582 gl_libobjs=
19583 gl_ltlibobjs=
19584 if test -n "$gl_LIBOBJS"; then
19585 # Remove the extension.
19586 sed_drop_objext='s/\.o$//;s/\.obj$//'
19587 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19588 gl_libobjs="$gl_libobjs $i.$ac_objext"
19589 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
19590 done
19591 fi
19592 gl_LIBOBJS=$gl_libobjs
19593
19594 gl_LTLIBOBJS=$gl_ltlibobjs
19595
19596
19597
19598 gltests_libobjs=
19599 gltests_ltlibobjs=
19600 if test -n "$gltests_LIBOBJS"; then
19601 # Remove the extension.
19602 sed_drop_objext='s/\.o$//;s/\.obj$//'
19603 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19604 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
19605 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
19606 done
19607 fi
19608 gltests_LIBOBJS=$gltests_libobjs
19609
19610 gltests_LTLIBOBJS=$gltests_ltlibobjs
19611
19612
19613 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19614 as_fn_error "conditional \"AMDEP\" was never defined.
19615 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19616 fi
19617 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19618 as_fn_error "conditional \"am__fastdepCC\" was never defined.
19619 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19620 fi
19621 if test -n "$EXEEXT"; then
19622 am__EXEEXT_TRUE=
19623 am__EXEEXT_FALSE='#'
19624 else
19625 am__EXEEXT_TRUE='#'
19626 am__EXEEXT_FALSE=
19627 fi
19628
19629
19630 : ${CONFIG_STATUS=./config.status}
19631 ac_write_fail=0
19632 ac_clean_files_save=$ac_clean_files
19633 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19634 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19635 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19636 as_write_fail=0
19637 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19638 #! $SHELL
19639 # Generated by $as_me.
19640 # Run this file to recreate the current configuration.
19641 # Compiler output produced by configure, useful for debugging
19642 # configure, is in config.log if it exists.
19643
19644 debug=false
19645 ac_cs_recheck=false
19646 ac_cs_silent=false
19647
19648 SHELL=\${CONFIG_SHELL-$SHELL}
19649 export SHELL
19650 _ASEOF
19651 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19652 ## -------------------- ##
19653 ## M4sh Initialization. ##
19654 ## -------------------- ##
19655
19656 # Be more Bourne compatible
19657 DUALCASE=1; export DUALCASE # for MKS sh
19658 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19659 emulate sh
19660 NULLCMD=:
19661 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19662 # is contrary to our usage. Disable this feature.
19663 alias -g '${1+"$@"}'='"$@"'
19664 setopt NO_GLOB_SUBST
19665 else
19666 case `(set -o) 2>/dev/null` in #(
19667 *posix*) :
19668 set -o posix ;; #(
19669 *) :
19670 ;;
19671 esac
19672 fi
19673
19674
19675 as_nl='
19676 '
19677 export as_nl
19678 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19679 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19680 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19681 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19682 # Prefer a ksh shell builtin over an external printf program on Solaris,
19683 # but without wasting forks for bash or zsh.
19684 if test -z "$BASH_VERSION$ZSH_VERSION" \
19685 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19686 as_echo='print -r --'
19687 as_echo_n='print -rn --'
19688 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19689 as_echo='printf %s\n'
19690 as_echo_n='printf %s'
19691 else
19692 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19693 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19694 as_echo_n='/usr/ucb/echo -n'
19695 else
19696 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19697 as_echo_n_body='eval
19698 arg=$1;
19699 case $arg in #(
19700 *"$as_nl"*)
19701 expr "X$arg" : "X\\(.*\\)$as_nl";
19702 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19703 esac;
19704 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19705 '
19706 export as_echo_n_body
19707 as_echo_n='sh -c $as_echo_n_body as_echo'
19708 fi
19709 export as_echo_body
19710 as_echo='sh -c $as_echo_body as_echo'
19711 fi
19712
19713 # The user is always right.
19714 if test "${PATH_SEPARATOR+set}" != set; then
19715 PATH_SEPARATOR=:
19716 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19717 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19718 PATH_SEPARATOR=';'
19719 }
19720 fi
19721
19722
19723 # IFS
19724 # We need space, tab and new line, in precisely that order. Quoting is
19725 # there to prevent editors from complaining about space-tab.
19726 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19727 # splitting by setting IFS to empty value.)
19728 IFS=" "" $as_nl"
19729
19730 # Find who we are. Look in the path if we contain no directory separator.
19731 case $0 in #((
19732 *[\\/]* ) as_myself=$0 ;;
19733 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19734 for as_dir in $PATH
19735 do
19736 IFS=$as_save_IFS
19737 test -z "$as_dir" && as_dir=.
19738 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19739 done
19740 IFS=$as_save_IFS
19741
19742 ;;
19743 esac
19744 # We did not find ourselves, most probably we were run as `sh COMMAND'
19745 # in which case we are not to be found in the path.
19746 if test "x$as_myself" = x; then
19747 as_myself=$0
19748 fi
19749 if test ! -f "$as_myself"; then
19750 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19751 exit 1
19752 fi
19753
19754 # Unset variables that we do not need and which cause bugs (e.g. in
19755 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19756 # suppresses any "Segmentation fault" message there. '((' could
19757 # trigger a bug in pdksh 5.2.14.
19758 for as_var in BASH_ENV ENV MAIL MAILPATH
19759 do eval test x\${$as_var+set} = xset \
19760 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19761 done
19762 PS1='$ '
19763 PS2='> '
19764 PS4='+ '
19765
19766 # NLS nuisances.
19767 LC_ALL=C
19768 export LC_ALL
19769 LANGUAGE=C
19770 export LANGUAGE
19771
19772 # CDPATH.
19773 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19774
19775
19776 # as_fn_error ERROR [LINENO LOG_FD]
19777 # ---------------------------------
19778 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19779 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19780 # script with status $?, using 1 if that was 0.
19781 as_fn_error ()
19782 {
19783 as_status=$?; test $as_status -eq 0 && as_status=1
19784 if test "$3"; then
19785 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19786 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
19787 fi
19788 $as_echo "$as_me: error: $1" >&2
19789 as_fn_exit $as_status
19790 } # as_fn_error
19791
19792
19793 # as_fn_set_status STATUS
19794 # -----------------------
19795 # Set $? to STATUS, without forking.
19796 as_fn_set_status ()
19797 {
19798 return $1
19799 } # as_fn_set_status
19800
19801 # as_fn_exit STATUS
19802 # -----------------
19803 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19804 as_fn_exit ()
19805 {
19806 set +e
19807 as_fn_set_status $1
19808 exit $1
19809 } # as_fn_exit
19810
19811 # as_fn_unset VAR
19812 # ---------------
19813 # Portably unset VAR.
19814 as_fn_unset ()
19815 {
19816 { eval $1=; unset $1;}
19817 }
19818 as_unset=as_fn_unset
19819 # as_fn_append VAR VALUE
19820 # ----------------------
19821 # Append the text in VALUE to the end of the definition contained in VAR. Take
19822 # advantage of any shell optimizations that allow amortized linear growth over
19823 # repeated appends, instead of the typical quadratic growth present in naive
19824 # implementations.
19825 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19826 eval 'as_fn_append ()
19827 {
19828 eval $1+=\$2
19829 }'
19830 else
19831 as_fn_append ()
19832 {
19833 eval $1=\$$1\$2
19834 }
19835 fi # as_fn_append
19836
19837 # as_fn_arith ARG...
19838 # ------------------
19839 # Perform arithmetic evaluation on the ARGs, and store the result in the
19840 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19841 # must be portable across $(()) and expr.
19842 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19843 eval 'as_fn_arith ()
19844 {
19845 as_val=$(( $* ))
19846 }'
19847 else
19848 as_fn_arith ()
19849 {
19850 as_val=`expr "$@" || test $? -eq 1`
19851 }
19852 fi # as_fn_arith
19853
19854
19855 if expr a : '\(a\)' >/dev/null 2>&1 &&
19856 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19857 as_expr=expr
19858 else
19859 as_expr=false
19860 fi
19861
19862 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19863 as_basename=basename
19864 else
19865 as_basename=false
19866 fi
19867
19868 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19869 as_dirname=dirname
19870 else
19871 as_dirname=false
19872 fi
19873
19874 as_me=`$as_basename -- "$0" ||
19875 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19876 X"$0" : 'X\(//\)$' \| \
19877 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19878 $as_echo X/"$0" |
19879 sed '/^.*\/\([^/][^/]*\)\/*$/{
19880 s//\1/
19881 q
19882 }
19883 /^X\/\(\/\/\)$/{
19884 s//\1/
19885 q
19886 }
19887 /^X\/\(\/\).*/{
19888 s//\1/
19889 q
19890 }
19891 s/.*/./; q'`
19892
19893 # Avoid depending upon Character Ranges.
19894 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19895 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19896 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19897 as_cr_digits='0123456789'
19898 as_cr_alnum=$as_cr_Letters$as_cr_digits
19899
19900 ECHO_C= ECHO_N= ECHO_T=
19901 case `echo -n x` in #(((((
19902 -n*)
19903 case `echo 'xy\c'` in
19904 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19905 xy) ECHO_C='\c';;
19906 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19907 ECHO_T=' ';;
19908 esac;;
19909 *)
19910 ECHO_N='-n';;
19911 esac
19912
19913 rm -f conf$$ conf$$.exe conf$$.file
19914 if test -d conf$$.dir; then
19915 rm -f conf$$.dir/conf$$.file
19916 else
19917 rm -f conf$$.dir
19918 mkdir conf$$.dir 2>/dev/null
19919 fi
19920 if (echo >conf$$.file) 2>/dev/null; then
19921 if ln -s conf$$.file conf$$ 2>/dev/null; then
19922 as_ln_s='ln -s'
19923 # ... but there are two gotchas:
19924 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19925 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19926 # In both cases, we have to default to `cp -p'.
19927 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19928 as_ln_s='cp -p'
19929 elif ln conf$$.file conf$$ 2>/dev/null; then
19930 as_ln_s=ln
19931 else
19932 as_ln_s='cp -p'
19933 fi
19934 else
19935 as_ln_s='cp -p'
19936 fi
19937 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19938 rmdir conf$$.dir 2>/dev/null
19939
19940
19941 # as_fn_mkdir_p
19942 # -------------
19943 # Create "$as_dir" as a directory, including parents if necessary.
19944 as_fn_mkdir_p ()
19945 {
19946
19947 case $as_dir in #(
19948 -*) as_dir=./$as_dir;;
19949 esac
19950 test -d "$as_dir" || eval $as_mkdir_p || {
19951 as_dirs=
19952 while :; do
19953 case $as_dir in #(
19954 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19955 *) as_qdir=$as_dir;;
19956 esac
19957 as_dirs="'$as_qdir' $as_dirs"
19958 as_dir=`$as_dirname -- "$as_dir" ||
19959 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19960 X"$as_dir" : 'X\(//\)[^/]' \| \
19961 X"$as_dir" : 'X\(//\)$' \| \
19962 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19963 $as_echo X"$as_dir" |
19964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19965 s//\1/
19966 q
19967 }
19968 /^X\(\/\/\)[^/].*/{
19969 s//\1/
19970 q
19971 }
19972 /^X\(\/\/\)$/{
19973 s//\1/
19974 q
19975 }
19976 /^X\(\/\).*/{
19977 s//\1/
19978 q
19979 }
19980 s/.*/./; q'`
19981 test -d "$as_dir" && break
19982 done
19983 test -z "$as_dirs" || eval "mkdir $as_dirs"
19984 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
19985
19986
19987 } # as_fn_mkdir_p
19988 if mkdir -p . 2>/dev/null; then
19989 as_mkdir_p='mkdir -p "$as_dir"'
19990 else
19991 test -d ./-p && rmdir ./-p
19992 as_mkdir_p=false
19993 fi
19994
19995 if test -x / >/dev/null 2>&1; then
19996 as_test_x='test -x'
19997 else
19998 if ls -dL / >/dev/null 2>&1; then
19999 as_ls_L_option=L
20000 else
20001 as_ls_L_option=
20002 fi
20003 as_test_x='
20004 eval sh -c '\''
20005 if test -d "$1"; then
20006 test -d "$1/.";
20007 else
20008 case $1 in #(
20009 -*)set "./$1";;
20010 esac;
20011 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20012 ???[sx]*):;;*)false;;esac;fi
20013 '\'' sh
20014 '
20015 fi
20016 as_executable_p=$as_test_x
20017
20018 # Sed expression to map a string onto a valid CPP name.
20019 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20020
20021 # Sed expression to map a string onto a valid variable name.
20022 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20023
20024
20025 exec 6>&1
20026 ## ----------------------------------- ##
20027 ## Main body of $CONFIG_STATUS script. ##
20028 ## ----------------------------------- ##
20029 _ASEOF
20030 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20031
20032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20033 # Save the log message, to keep $0 and so on meaningful, and to
20034 # report actual input values of CONFIG_FILES etc. instead of their
20035 # values after options handling.
20036 ac_log="
20037 This file was extended by $as_me, which was
20038 generated by GNU Autoconf 2.64. Invocation command line was
20039
20040 CONFIG_FILES = $CONFIG_FILES
20041 CONFIG_HEADERS = $CONFIG_HEADERS
20042 CONFIG_LINKS = $CONFIG_LINKS
20043 CONFIG_COMMANDS = $CONFIG_COMMANDS
20044 $ $0 $@
20045
20046 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20047 "
20048
20049 _ACEOF
20050
20051 case $ac_config_files in *"
20052 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20053 esac
20054
20055 case $ac_config_headers in *"
20056 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20057 esac
20058
20059
20060 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20061 # Files that config.status was made for.
20062 config_files="$ac_config_files"
20063 config_headers="$ac_config_headers"
20064 config_commands="$ac_config_commands"
20065
20066 _ACEOF
20067
20068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20069 ac_cs_usage="\
20070 \`$as_me' instantiates files and other configuration actions
20071 from templates according to the current configuration. Unless the files
20072 and actions are specified as TAGs, all are instantiated by default.
20073
20074 Usage: $0 [OPTION]... [TAG]...
20075
20076 -h, --help print this help, then exit
20077 -V, --version print version number and configuration settings, then exit
20078 -q, --quiet, --silent
20079 do not print progress messages
20080 -d, --debug don't remove temporary files
20081 --recheck update $as_me by reconfiguring in the same conditions
20082 --file=FILE[:TEMPLATE]
20083 instantiate the configuration file FILE
20084 --header=FILE[:TEMPLATE]
20085 instantiate the configuration header FILE
20086
20087 Configuration files:
20088 $config_files
20089
20090 Configuration headers:
20091 $config_headers
20092
20093 Configuration commands:
20094 $config_commands
20095
20096 Report bugs to the package provider."
20097
20098 _ACEOF
20099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20100 ac_cs_version="\\
20101 config.status
20102 configured by $0, generated by GNU Autoconf 2.64,
20103 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20104
20105 Copyright (C) 2009 Free Software Foundation, Inc.
20106 This config.status script is free software; the Free Software Foundation
20107 gives unlimited permission to copy, distribute and modify it."
20108
20109 ac_pwd='$ac_pwd'
20110 srcdir='$srcdir'
20111 INSTALL='$INSTALL'
20112 MKDIR_P='$MKDIR_P'
20113 AWK='$AWK'
20114 test -n "\$AWK" || AWK=awk
20115 _ACEOF
20116
20117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20118 # The default lists apply if the user does not specify any file.
20119 ac_need_defaults=:
20120 while test $# != 0
20121 do
20122 case $1 in
20123 --*=*)
20124 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20125 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20126 ac_shift=:
20127 ;;
20128 *)
20129 ac_option=$1
20130 ac_optarg=$2
20131 ac_shift=shift
20132 ;;
20133 esac
20134
20135 case $ac_option in
20136 # Handling of the options.
20137 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20138 ac_cs_recheck=: ;;
20139 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20140 $as_echo "$ac_cs_version"; exit ;;
20141 --debug | --debu | --deb | --de | --d | -d )
20142 debug=: ;;
20143 --file | --fil | --fi | --f )
20144 $ac_shift
20145 case $ac_optarg in
20146 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20147 esac
20148 as_fn_append CONFIG_FILES " '$ac_optarg'"
20149 ac_need_defaults=false;;
20150 --header | --heade | --head | --hea )
20151 $ac_shift
20152 case $ac_optarg in
20153 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20154 esac
20155 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20156 ac_need_defaults=false;;
20157 --he | --h)
20158 # Conflict between --help and --header
20159 as_fn_error "ambiguous option: \`$1'
20160 Try \`$0 --help' for more information.";;
20161 --help | --hel | -h )
20162 $as_echo "$ac_cs_usage"; exit ;;
20163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20164 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20165 ac_cs_silent=: ;;
20166
20167 # This is an error.
20168 -*) as_fn_error "unrecognized option: \`$1'
20169 Try \`$0 --help' for more information." ;;
20170
20171 *) as_fn_append ac_config_targets " $1"
20172 ac_need_defaults=false ;;
20173
20174 esac
20175 shift
20176 done
20177
20178 ac_configure_extra_args=
20179
20180 if $ac_cs_silent; then
20181 exec 6>/dev/null
20182 ac_configure_extra_args="$ac_configure_extra_args --silent"
20183 fi
20184
20185 _ACEOF
20186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20187 if \$ac_cs_recheck; then
20188 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20189 shift
20190 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20191 CONFIG_SHELL='$SHELL'
20192 export CONFIG_SHELL
20193 exec "\$@"
20194 fi
20195
20196 _ACEOF
20197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20198 exec 5>>config.log
20199 {
20200 echo
20201 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20202 ## Running $as_me. ##
20203 _ASBOX
20204 $as_echo "$ac_log"
20205 } >&5
20206
20207 _ACEOF
20208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20209 #
20210 # INIT-COMMANDS
20211 #
20212 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20213
20214 _ACEOF
20215
20216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20217
20218 # Handling of arguments.
20219 for ac_config_target in $ac_config_targets
20220 do
20221 case $ac_config_target in
20222 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
20223 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20224 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20225 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
20226 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
20227
20228 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20229 esac
20230 done
20231
20232
20233 # If the user did not use the arguments to specify the items to instantiate,
20234 # then the envvar interface is used. Set only those that are not.
20235 # We use the long form for the default assignment because of an extremely
20236 # bizarre bug on SunOS 4.1.3.
20237 if $ac_need_defaults; then
20238 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20239 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20240 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20241 fi
20242
20243 # Have a temporary directory for convenience. Make it in the build tree
20244 # simply because there is no reason against having it here, and in addition,
20245 # creating and moving files from /tmp can sometimes cause problems.
20246 # Hook for its removal unless debugging.
20247 # Note that there is a small window in which the directory will not be cleaned:
20248 # after its creation but before its name has been assigned to `$tmp'.
20249 $debug ||
20250 {
20251 tmp=
20252 trap 'exit_status=$?
20253 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20254 ' 0
20255 trap 'as_fn_exit 1' 1 2 13 15
20256 }
20257 # Create a (secure) tmp directory for tmp files.
20258
20259 {
20260 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20261 test -n "$tmp" && test -d "$tmp"
20262 } ||
20263 {
20264 tmp=./conf$$-$RANDOM
20265 (umask 077 && mkdir "$tmp")
20266 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
20267
20268 # Set up the scripts for CONFIG_FILES section.
20269 # No need to generate them if there are no CONFIG_FILES.
20270 # This happens for instance with `./config.status config.h'.
20271 if test -n "$CONFIG_FILES"; then
20272
20273
20274 ac_cr=`echo X | tr X '\015'`
20275 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20276 # But we know of no other shell where ac_cr would be empty at this
20277 # point, so we can use a bashism as a fallback.
20278 if test "x$ac_cr" = x; then
20279 eval ac_cr=\$\'\\r\'
20280 fi
20281 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20282 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20283 ac_cs_awk_cr='\r'
20284 else
20285 ac_cs_awk_cr=$ac_cr
20286 fi
20287
20288 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20289 _ACEOF
20290
20291
20292 {
20293 echo "cat >conf$$subs.awk <<_ACEOF" &&
20294 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20295 echo "_ACEOF"
20296 } >conf$$subs.sh ||
20297 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20298 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20299 ac_delim='%!_!# '
20300 for ac_last_try in false false false false false :; do
20301 . ./conf$$subs.sh ||
20302 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20303
20304 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20305 if test $ac_delim_n = $ac_delim_num; then
20306 break
20307 elif $ac_last_try; then
20308 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20309 else
20310 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20311 fi
20312 done
20313 rm -f conf$$subs.sh
20314
20315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20316 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20317 _ACEOF
20318 sed -n '
20319 h
20320 s/^/S["/; s/!.*/"]=/
20321 p
20322 g
20323 s/^[^!]*!//
20324 :repl
20325 t repl
20326 s/'"$ac_delim"'$//
20327 t delim
20328 :nl
20329 h
20330 s/\(.\{148\}\).*/\1/
20331 t more1
20332 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20333 p
20334 n
20335 b repl
20336 :more1
20337 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20338 p
20339 g
20340 s/.\{148\}//
20341 t nl
20342 :delim
20343 h
20344 s/\(.\{148\}\).*/\1/
20345 t more2
20346 s/["\\]/\\&/g; s/^/"/; s/$/"/
20347 p
20348 b
20349 :more2
20350 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20351 p
20352 g
20353 s/.\{148\}//
20354 t delim
20355 ' <conf$$subs.awk | sed '
20356 /^[^""]/{
20357 N
20358 s/\n//
20359 }
20360 ' >>$CONFIG_STATUS || ac_write_fail=1
20361 rm -f conf$$subs.awk
20362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20363 _ACAWK
20364 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20365 for (key in S) S_is_set[key] = 1
20366 FS = "\a"
20367
20368 }
20369 {
20370 line = $ 0
20371 nfields = split(line, field, "@")
20372 substed = 0
20373 len = length(field[1])
20374 for (i = 2; i < nfields; i++) {
20375 key = field[i]
20376 keylen = length(key)
20377 if (S_is_set[key]) {
20378 value = S[key]
20379 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20380 len += length(value) + length(field[++i])
20381 substed = 1
20382 } else
20383 len += 1 + keylen
20384 }
20385
20386 print line
20387 }
20388
20389 _ACAWK
20390 _ACEOF
20391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20392 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20393 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20394 else
20395 cat
20396 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20397 || as_fn_error "could not setup config files machinery" "$LINENO" 5
20398 _ACEOF
20399
20400 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20401 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20402 # trailing colons and then remove the whole line if VPATH becomes empty
20403 # (actually we leave an empty line to preserve line numbers).
20404 if test "x$srcdir" = x.; then
20405 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20406 s/:*\$(srcdir):*/:/
20407 s/:*\${srcdir}:*/:/
20408 s/:*@srcdir@:*/:/
20409 s/^\([^=]*=[ ]*\):*/\1/
20410 s/:*$//
20411 s/^[^=]*=[ ]*$//
20412 }'
20413 fi
20414
20415 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20416 fi # test -n "$CONFIG_FILES"
20417
20418 # Set up the scripts for CONFIG_HEADERS section.
20419 # No need to generate them if there are no CONFIG_HEADERS.
20420 # This happens for instance with `./config.status Makefile'.
20421 if test -n "$CONFIG_HEADERS"; then
20422 cat >"$tmp/defines.awk" <<\_ACAWK ||
20423 BEGIN {
20424 _ACEOF
20425
20426 # Transform confdefs.h into an awk script `defines.awk', embedded as
20427 # here-document in config.status, that substitutes the proper values into
20428 # config.h.in to produce config.h.
20429
20430 # Create a delimiter string that does not exist in confdefs.h, to ease
20431 # handling of long lines.
20432 ac_delim='%!_!# '
20433 for ac_last_try in false false :; do
20434 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20435 if test -z "$ac_t"; then
20436 break
20437 elif $ac_last_try; then
20438 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
20439 else
20440 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20441 fi
20442 done
20443
20444 # For the awk script, D is an array of macro values keyed by name,
20445 # likewise P contains macro parameters if any. Preserve backslash
20446 # newline sequences.
20447
20448 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20449 sed -n '
20450 s/.\{148\}/&'"$ac_delim"'/g
20451 t rset
20452 :rset
20453 s/^[ ]*#[ ]*define[ ][ ]*/ /
20454 t def
20455 d
20456 :def
20457 s/\\$//
20458 t bsnl
20459 s/["\\]/\\&/g
20460 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20461 D["\1"]=" \3"/p
20462 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20463 d
20464 :bsnl
20465 s/["\\]/\\&/g
20466 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20467 D["\1"]=" \3\\\\\\n"\\/p
20468 t cont
20469 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20470 t cont
20471 d
20472 :cont
20473 n
20474 s/.\{148\}/&'"$ac_delim"'/g
20475 t clear
20476 :clear
20477 s/\\$//
20478 t bsnlc
20479 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20480 d
20481 :bsnlc
20482 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20483 b cont
20484 ' <confdefs.h | sed '
20485 s/'"$ac_delim"'/"\\\
20486 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20487
20488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20489 for (key in D) D_is_set[key] = 1
20490 FS = "\a"
20491 }
20492 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20493 line = \$ 0
20494 split(line, arg, " ")
20495 if (arg[1] == "#") {
20496 defundef = arg[2]
20497 mac1 = arg[3]
20498 } else {
20499 defundef = substr(arg[1], 2)
20500 mac1 = arg[2]
20501 }
20502 split(mac1, mac2, "(") #)
20503 macro = mac2[1]
20504 prefix = substr(line, 1, index(line, defundef) - 1)
20505 if (D_is_set[macro]) {
20506 # Preserve the white space surrounding the "#".
20507 print prefix "define", macro P[macro] D[macro]
20508 next
20509 } else {
20510 # Replace #undef with comments. This is necessary, for example,
20511 # in the case of _POSIX_SOURCE, which is predefined and required
20512 # on some systems where configure will not decide to define it.
20513 if (defundef == "undef") {
20514 print "/*", prefix defundef, macro, "*/"
20515 next
20516 }
20517 }
20518 }
20519 { print }
20520 _ACAWK
20521 _ACEOF
20522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20523 as_fn_error "could not setup config headers machinery" "$LINENO" 5
20524 fi # test -n "$CONFIG_HEADERS"
20525
20526
20527 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20528 shift
20529 for ac_tag
20530 do
20531 case $ac_tag in
20532 :[FHLC]) ac_mode=$ac_tag; continue;;
20533 esac
20534 case $ac_mode$ac_tag in
20535 :[FHL]*:*);;
20536 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
20537 :[FH]-) ac_tag=-:-;;
20538 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20539 esac
20540 ac_save_IFS=$IFS
20541 IFS=:
20542 set x $ac_tag
20543 IFS=$ac_save_IFS
20544 shift
20545 ac_file=$1
20546 shift
20547
20548 case $ac_mode in
20549 :L) ac_source=$1;;
20550 :[FH])
20551 ac_file_inputs=
20552 for ac_f
20553 do
20554 case $ac_f in
20555 -) ac_f="$tmp/stdin";;
20556 *) # Look for the file first in the build tree, then in the source tree
20557 # (if the path is not absolute). The absolute path cannot be DOS-style,
20558 # because $ac_f cannot contain `:'.
20559 test -f "$ac_f" ||
20560 case $ac_f in
20561 [\\/$]*) false;;
20562 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20563 esac ||
20564 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20565 esac
20566 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20567 as_fn_append ac_file_inputs " '$ac_f'"
20568 done
20569
20570 # Let's still pretend it is `configure' which instantiates (i.e., don't
20571 # use $as_me), people would be surprised to read:
20572 # /* config.h. Generated by config.status. */
20573 configure_input='Generated from '`
20574 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20575 `' by configure.'
20576 if test x"$ac_file" != x-; then
20577 configure_input="$ac_file. $configure_input"
20578 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20579 $as_echo "$as_me: creating $ac_file" >&6;}
20580 fi
20581 # Neutralize special characters interpreted by sed in replacement strings.
20582 case $configure_input in #(
20583 *\&* | *\|* | *\\* )
20584 ac_sed_conf_input=`$as_echo "$configure_input" |
20585 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20586 *) ac_sed_conf_input=$configure_input;;
20587 esac
20588
20589 case $ac_tag in
20590 *:-:* | *:-) cat >"$tmp/stdin" \
20591 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
20592 esac
20593 ;;
20594 esac
20595
20596 ac_dir=`$as_dirname -- "$ac_file" ||
20597 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20598 X"$ac_file" : 'X\(//\)[^/]' \| \
20599 X"$ac_file" : 'X\(//\)$' \| \
20600 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20601 $as_echo X"$ac_file" |
20602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20603 s//\1/
20604 q
20605 }
20606 /^X\(\/\/\)[^/].*/{
20607 s//\1/
20608 q
20609 }
20610 /^X\(\/\/\)$/{
20611 s//\1/
20612 q
20613 }
20614 /^X\(\/\).*/{
20615 s//\1/
20616 q
20617 }
20618 s/.*/./; q'`
20619 as_dir="$ac_dir"; as_fn_mkdir_p
20620 ac_builddir=.
20621
20622 case "$ac_dir" in
20623 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20624 *)
20625 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20626 # A ".." for each directory in $ac_dir_suffix.
20627 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20628 case $ac_top_builddir_sub in
20629 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20630 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20631 esac ;;
20632 esac
20633 ac_abs_top_builddir=$ac_pwd
20634 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20635 # for backward compatibility:
20636 ac_top_builddir=$ac_top_build_prefix
20637
20638 case $srcdir in
20639 .) # We are building in place.
20640 ac_srcdir=.
20641 ac_top_srcdir=$ac_top_builddir_sub
20642 ac_abs_top_srcdir=$ac_pwd ;;
20643 [\\/]* | ?:[\\/]* ) # Absolute name.
20644 ac_srcdir=$srcdir$ac_dir_suffix;
20645 ac_top_srcdir=$srcdir
20646 ac_abs_top_srcdir=$srcdir ;;
20647 *) # Relative name.
20648 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20649 ac_top_srcdir=$ac_top_build_prefix$srcdir
20650 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20651 esac
20652 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20653
20654
20655 case $ac_mode in
20656 :F)
20657 #
20658 # CONFIG_FILE
20659 #
20660
20661 case $INSTALL in
20662 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20663 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20664 esac
20665 ac_MKDIR_P=$MKDIR_P
20666 case $MKDIR_P in
20667 [\\/$]* | ?:[\\/]* ) ;;
20668 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20669 esac
20670 _ACEOF
20671
20672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20673 # If the template does not know about datarootdir, expand it.
20674 # FIXME: This hack should be removed a few years after 2.60.
20675 ac_datarootdir_hack=; ac_datarootdir_seen=
20676 ac_sed_dataroot='
20677 /datarootdir/ {
20678 p
20679 q
20680 }
20681 /@datadir@/p
20682 /@docdir@/p
20683 /@infodir@/p
20684 /@localedir@/p
20685 /@mandir@/p'
20686 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20687 *datarootdir*) ac_datarootdir_seen=yes;;
20688 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20690 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20691 _ACEOF
20692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20693 ac_datarootdir_hack='
20694 s&@datadir@&$datadir&g
20695 s&@docdir@&$docdir&g
20696 s&@infodir@&$infodir&g
20697 s&@localedir@&$localedir&g
20698 s&@mandir@&$mandir&g
20699 s&\\\${datarootdir}&$datarootdir&g' ;;
20700 esac
20701 _ACEOF
20702
20703 # Neutralize VPATH when `$srcdir' = `.'.
20704 # Shell code in configure.ac might set extrasub.
20705 # FIXME: do we really want to maintain this feature?
20706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20707 ac_sed_extra="$ac_vpsub
20708 $extrasub
20709 _ACEOF
20710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20711 :t
20712 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20713 s|@configure_input@|$ac_sed_conf_input|;t t
20714 s&@top_builddir@&$ac_top_builddir_sub&;t t
20715 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20716 s&@srcdir@&$ac_srcdir&;t t
20717 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20718 s&@top_srcdir@&$ac_top_srcdir&;t t
20719 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20720 s&@builddir@&$ac_builddir&;t t
20721 s&@abs_builddir@&$ac_abs_builddir&;t t
20722 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20723 s&@INSTALL@&$ac_INSTALL&;t t
20724 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20725 $ac_datarootdir_hack
20726 "
20727 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20728 || as_fn_error "could not create $ac_file" "$LINENO" 5
20729
20730 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20731 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20732 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20734 which seems to be undefined. Please make sure it is defined." >&5
20735 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20736 which seems to be undefined. Please make sure it is defined." >&2;}
20737
20738 rm -f "$tmp/stdin"
20739 case $ac_file in
20740 -) cat "$tmp/out" && rm -f "$tmp/out";;
20741 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20742 esac \
20743 || as_fn_error "could not create $ac_file" "$LINENO" 5
20744 ;;
20745 :H)
20746 #
20747 # CONFIG_HEADER
20748 #
20749 if test x"$ac_file" != x-; then
20750 {
20751 $as_echo "/* $configure_input */" \
20752 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20753 } >"$tmp/config.h" \
20754 || as_fn_error "could not create $ac_file" "$LINENO" 5
20755 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20757 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20758 else
20759 rm -f "$ac_file"
20760 mv "$tmp/config.h" "$ac_file" \
20761 || as_fn_error "could not create $ac_file" "$LINENO" 5
20762 fi
20763 else
20764 $as_echo "/* $configure_input */" \
20765 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20766 || as_fn_error "could not create -" "$LINENO" 5
20767 fi
20768 # Compute "$ac_file"'s index in $config_headers.
20769 _am_arg="$ac_file"
20770 _am_stamp_count=1
20771 for _am_header in $config_headers :; do
20772 case $_am_header in
20773 $_am_arg | $_am_arg:* )
20774 break ;;
20775 * )
20776 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20777 esac
20778 done
20779 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20780 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20781 X"$_am_arg" : 'X\(//\)[^/]' \| \
20782 X"$_am_arg" : 'X\(//\)$' \| \
20783 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20784 $as_echo X"$_am_arg" |
20785 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20786 s//\1/
20787 q
20788 }
20789 /^X\(\/\/\)[^/].*/{
20790 s//\1/
20791 q
20792 }
20793 /^X\(\/\/\)$/{
20794 s//\1/
20795 q
20796 }
20797 /^X\(\/\).*/{
20798 s//\1/
20799 q
20800 }
20801 s/.*/./; q'`/stamp-h$_am_stamp_count
20802 ;;
20803
20804 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20805 $as_echo "$as_me: executing $ac_file commands" >&6;}
20806 ;;
20807 esac
20808
20809
20810 case $ac_file$ac_mode in
20811 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20812 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20813 # are listed without --file. Let's play safe and only enable the eval
20814 # if we detect the quoting.
20815 case $CONFIG_FILES in
20816 *\'*) eval set x "$CONFIG_FILES" ;;
20817 *) set x $CONFIG_FILES ;;
20818 esac
20819 shift
20820 for mf
20821 do
20822 # Strip MF so we end up with the name of the file.
20823 mf=`echo "$mf" | sed -e 's/:.*$//'`
20824 # Check whether this is an Automake generated Makefile or not.
20825 # We used to match only the files named `Makefile.in', but
20826 # some people rename them; so instead we look at the file content.
20827 # Grep'ing the first line is not enough: some people post-process
20828 # each Makefile.in and add a new line on top of each file to say so.
20829 # Grep'ing the whole file is not good either: AIX grep has a line
20830 # limit of 2048, but all sed's we know have understand at least 4000.
20831 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20832 dirpart=`$as_dirname -- "$mf" ||
20833 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20834 X"$mf" : 'X\(//\)[^/]' \| \
20835 X"$mf" : 'X\(//\)$' \| \
20836 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20837 $as_echo X"$mf" |
20838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20839 s//\1/
20840 q
20841 }
20842 /^X\(\/\/\)[^/].*/{
20843 s//\1/
20844 q
20845 }
20846 /^X\(\/\/\)$/{
20847 s//\1/
20848 q
20849 }
20850 /^X\(\/\).*/{
20851 s//\1/
20852 q
20853 }
20854 s/.*/./; q'`
20855 else
20856 continue
20857 fi
20858 # Extract the definition of DEPDIR, am__include, and am__quote
20859 # from the Makefile without running `make'.
20860 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20861 test -z "$DEPDIR" && continue
20862 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20863 test -z "am__include" && continue
20864 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20865 # When using ansi2knr, U may be empty or an underscore; expand it
20866 U=`sed -n 's/^U = //p' < "$mf"`
20867 # Find all dependency output files, they are included files with
20868 # $(DEPDIR) in their names. We invoke sed twice because it is the
20869 # simplest approach to changing $(DEPDIR) to its actual value in the
20870 # expansion.
20871 for file in `sed -n "
20872 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20873 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20874 # Make sure the directory exists.
20875 test -f "$dirpart/$file" && continue
20876 fdir=`$as_dirname -- "$file" ||
20877 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20878 X"$file" : 'X\(//\)[^/]' \| \
20879 X"$file" : 'X\(//\)$' \| \
20880 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20881 $as_echo X"$file" |
20882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20883 s//\1/
20884 q
20885 }
20886 /^X\(\/\/\)[^/].*/{
20887 s//\1/
20888 q
20889 }
20890 /^X\(\/\/\)$/{
20891 s//\1/
20892 q
20893 }
20894 /^X\(\/\).*/{
20895 s//\1/
20896 q
20897 }
20898 s/.*/./; q'`
20899 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20900 # echo "creating $dirpart/$file"
20901 echo '# dummy' > "$dirpart/$file"
20902 done
20903 done
20904 }
20905 ;;
20906 "default":C)
20907 case x$CONFIG_HEADERS in
20908 xconfig.h:config.in)
20909 echo > stamp-h ;;
20910 esac
20911 ;;
20912
20913 esac
20914 done # for ac_tag
20915
20916
20917 as_fn_exit 0
20918 _ACEOF
20919 ac_clean_files=$ac_clean_files_save
20920
20921 test $ac_write_fail = 0 ||
20922 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20923
20924
20925 # configure is writing to config.log, and then calls config.status.
20926 # config.status does its own redirection, appending to config.log.
20927 # Unfortunately, on DOS this fails, as config.log is still kept open
20928 # by configure, so config.status won't be able to write to it; its
20929 # output is simply discarded. So we exec the FD to /dev/null,
20930 # effectively closing config.log, so it can be properly (re)opened and
20931 # appended to by config.status. When coming back to configure, we
20932 # need to make the FD available again.
20933 if test "$no_create" != yes; then
20934 ac_cs_success=:
20935 ac_config_status_args=
20936 test "$silent" = yes &&
20937 ac_config_status_args="$ac_config_status_args --quiet"
20938 exec 5>/dev/null
20939 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20940 exec 5>>config.log
20941 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20942 # would make configure fail if this is the last instruction.
20943 $ac_cs_success || as_fn_exit $?
20944 fi
20945 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20947 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20948 fi
20949
20950
20951 exit 0
This page took 0.493969 seconds and 4 git commands to generate.