Update gnulib to current upstream master
[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 REPLACE_VSPRINTF
707 REPLACE_VSNPRINTF
708 REPLACE_VPRINTF
709 REPLACE_VFPRINTF
710 REPLACE_VDPRINTF
711 REPLACE_VASPRINTF
712 REPLACE_TMPFILE
713 REPLACE_STDIO_WRITE_FUNCS
714 REPLACE_STDIO_READ_FUNCS
715 REPLACE_SPRINTF
716 REPLACE_SNPRINTF
717 REPLACE_RENAMEAT
718 REPLACE_RENAME
719 REPLACE_REMOVE
720 REPLACE_PRINTF
721 REPLACE_POPEN
722 REPLACE_PERROR
723 REPLACE_OBSTACK_PRINTF
724 REPLACE_GETLINE
725 REPLACE_GETDELIM
726 REPLACE_FTELLO
727 REPLACE_FTELL
728 REPLACE_FSEEKO
729 REPLACE_FSEEK
730 REPLACE_FREOPEN
731 REPLACE_FPURGE
732 REPLACE_FPRINTF
733 REPLACE_FOPEN
734 REPLACE_FFLUSH
735 REPLACE_FDOPEN
736 REPLACE_FCLOSE
737 REPLACE_DPRINTF
738 HAVE_VDPRINTF
739 HAVE_VASPRINTF
740 HAVE_RENAMEAT
741 HAVE_POPEN
742 HAVE_PCLOSE
743 HAVE_FTELLO
744 HAVE_FSEEKO
745 HAVE_DPRINTF
746 HAVE_DECL_VSNPRINTF
747 HAVE_DECL_SNPRINTF
748 HAVE_DECL_OBSTACK_PRINTF
749 HAVE_DECL_GETLINE
750 HAVE_DECL_GETDELIM
751 HAVE_DECL_FTELLO
752 HAVE_DECL_FSEEKO
753 HAVE_DECL_FPURGE
754 GNULIB_VSPRINTF_POSIX
755 GNULIB_VSNPRINTF
756 GNULIB_VPRINTF_POSIX
757 GNULIB_VPRINTF
758 GNULIB_VFPRINTF_POSIX
759 GNULIB_VFPRINTF
760 GNULIB_VDPRINTF
761 GNULIB_VSCANF
762 GNULIB_VFSCANF
763 GNULIB_VASPRINTF
764 GNULIB_TMPFILE
765 GNULIB_STDIO_H_SIGPIPE
766 GNULIB_STDIO_H_NONBLOCKING
767 GNULIB_SPRINTF_POSIX
768 GNULIB_SNPRINTF
769 GNULIB_SCANF
770 GNULIB_RENAMEAT
771 GNULIB_RENAME
772 GNULIB_REMOVE
773 GNULIB_PUTS
774 GNULIB_PUTCHAR
775 GNULIB_PUTC
776 GNULIB_PRINTF_POSIX
777 GNULIB_PRINTF
778 GNULIB_POPEN
779 GNULIB_PERROR
780 GNULIB_PCLOSE
781 GNULIB_OBSTACK_PRINTF_POSIX
782 GNULIB_OBSTACK_PRINTF
783 GNULIB_GETLINE
784 GNULIB_GETDELIM
785 GNULIB_GETCHAR
786 GNULIB_GETC
787 GNULIB_FWRITE
788 GNULIB_FTELLO
789 GNULIB_FTELL
790 GNULIB_FSEEKO
791 GNULIB_FSEEK
792 GNULIB_FSCANF
793 GNULIB_FREOPEN
794 GNULIB_FREAD
795 GNULIB_FPUTS
796 GNULIB_FPUTC
797 GNULIB_FPURGE
798 GNULIB_FPRINTF_POSIX
799 GNULIB_FPRINTF
800 GNULIB_FOPEN
801 GNULIB_FGETS
802 GNULIB_FGETC
803 GNULIB_FFLUSH
804 GNULIB_FDOPEN
805 GNULIB_FCLOSE
806 GNULIB_DPRINTF
807 UNDEFINE_STRTOK_R
808 REPLACE_STRTOK_R
809 REPLACE_STRSIGNAL
810 REPLACE_STRNLEN
811 REPLACE_STRNDUP
812 REPLACE_STRNCAT
813 REPLACE_STRERROR_R
814 REPLACE_STRERROR
815 REPLACE_STRCHRNUL
816 REPLACE_STRCASESTR
817 REPLACE_STRSTR
818 REPLACE_STRDUP
819 REPLACE_STPNCPY
820 REPLACE_MEMMEM
821 REPLACE_MEMCHR
822 HAVE_STRVERSCMP
823 HAVE_DECL_STRSIGNAL
824 HAVE_DECL_STRERROR_R
825 HAVE_DECL_STRTOK_R
826 HAVE_STRCASESTR
827 HAVE_STRSEP
828 HAVE_STRPBRK
829 HAVE_DECL_STRNLEN
830 HAVE_DECL_STRNDUP
831 HAVE_DECL_STRDUP
832 HAVE_STRCHRNUL
833 HAVE_STPNCPY
834 HAVE_STPCPY
835 HAVE_RAWMEMCHR
836 HAVE_DECL_MEMRCHR
837 HAVE_MEMPCPY
838 HAVE_DECL_MEMMEM
839 HAVE_MEMCHR
840 HAVE_FFSLL
841 HAVE_FFSL
842 HAVE_MBSLEN
843 GNULIB_STRVERSCMP
844 GNULIB_STRSIGNAL
845 GNULIB_STRERROR_R
846 GNULIB_STRERROR
847 GNULIB_MBSTOK_R
848 GNULIB_MBSSEP
849 GNULIB_MBSSPN
850 GNULIB_MBSPBRK
851 GNULIB_MBSCSPN
852 GNULIB_MBSCASESTR
853 GNULIB_MBSPCASECMP
854 GNULIB_MBSNCASECMP
855 GNULIB_MBSCASECMP
856 GNULIB_MBSSTR
857 GNULIB_MBSRCHR
858 GNULIB_MBSCHR
859 GNULIB_MBSNLEN
860 GNULIB_MBSLEN
861 GNULIB_STRTOK_R
862 GNULIB_STRCASESTR
863 GNULIB_STRSTR
864 GNULIB_STRSEP
865 GNULIB_STRPBRK
866 GNULIB_STRNLEN
867 GNULIB_STRNDUP
868 GNULIB_STRNCAT
869 GNULIB_STRDUP
870 GNULIB_STRCHRNUL
871 GNULIB_STPNCPY
872 GNULIB_STPCPY
873 GNULIB_RAWMEMCHR
874 GNULIB_MEMRCHR
875 GNULIB_MEMPCPY
876 GNULIB_MEMMEM
877 GNULIB_MEMCHR
878 GNULIB_FFSLL
879 GNULIB_FFSL
880 LOCALE_FR
881 LOCALE_FR_UTF8
882 LOCALE_ZH_CN
883 LOCALE_JA
884 REPLACE_WCSWIDTH
885 REPLACE_WCWIDTH
886 REPLACE_WCSNRTOMBS
887 REPLACE_WCSRTOMBS
888 REPLACE_WCRTOMB
889 REPLACE_MBSNRTOWCS
890 REPLACE_MBSRTOWCS
891 REPLACE_MBRLEN
892 REPLACE_MBRTOWC
893 REPLACE_MBSINIT
894 REPLACE_WCTOB
895 REPLACE_BTOWC
896 REPLACE_MBSTATE_T
897 HAVE_DECL_WCWIDTH
898 HAVE_DECL_WCTOB
899 HAVE_WCSWIDTH
900 HAVE_WCSTOK
901 HAVE_WCSSTR
902 HAVE_WCSPBRK
903 HAVE_WCSSPN
904 HAVE_WCSCSPN
905 HAVE_WCSRCHR
906 HAVE_WCSCHR
907 HAVE_WCSDUP
908 HAVE_WCSXFRM
909 HAVE_WCSCOLL
910 HAVE_WCSNCASECMP
911 HAVE_WCSCASECMP
912 HAVE_WCSNCMP
913 HAVE_WCSCMP
914 HAVE_WCSNCAT
915 HAVE_WCSCAT
916 HAVE_WCPNCPY
917 HAVE_WCSNCPY
918 HAVE_WCPCPY
919 HAVE_WCSCPY
920 HAVE_WCSNLEN
921 HAVE_WCSLEN
922 HAVE_WMEMSET
923 HAVE_WMEMMOVE
924 HAVE_WMEMCPY
925 HAVE_WMEMCMP
926 HAVE_WMEMCHR
927 HAVE_WCSNRTOMBS
928 HAVE_WCSRTOMBS
929 HAVE_WCRTOMB
930 HAVE_MBSNRTOWCS
931 HAVE_MBSRTOWCS
932 HAVE_MBRLEN
933 HAVE_MBRTOWC
934 HAVE_MBSINIT
935 HAVE_BTOWC
936 GNULIB_WCSWIDTH
937 GNULIB_WCSTOK
938 GNULIB_WCSSTR
939 GNULIB_WCSPBRK
940 GNULIB_WCSSPN
941 GNULIB_WCSCSPN
942 GNULIB_WCSRCHR
943 GNULIB_WCSCHR
944 GNULIB_WCSDUP
945 GNULIB_WCSXFRM
946 GNULIB_WCSCOLL
947 GNULIB_WCSNCASECMP
948 GNULIB_WCSCASECMP
949 GNULIB_WCSNCMP
950 GNULIB_WCSCMP
951 GNULIB_WCSNCAT
952 GNULIB_WCSCAT
953 GNULIB_WCPNCPY
954 GNULIB_WCSNCPY
955 GNULIB_WCPCPY
956 GNULIB_WCSCPY
957 GNULIB_WCSNLEN
958 GNULIB_WCSLEN
959 GNULIB_WMEMSET
960 GNULIB_WMEMMOVE
961 GNULIB_WMEMCPY
962 GNULIB_WMEMCMP
963 GNULIB_WMEMCHR
964 GNULIB_WCWIDTH
965 GNULIB_WCSNRTOMBS
966 GNULIB_WCSRTOMBS
967 GNULIB_WCRTOMB
968 GNULIB_MBSNRTOWCS
969 GNULIB_MBSRTOWCS
970 GNULIB_MBRLEN
971 GNULIB_MBRTOWC
972 GNULIB_MBSINIT
973 GNULIB_WCTOB
974 GNULIB_BTOWC
975 NEXT_AS_FIRST_DIRECTIVE_MATH_H
976 NEXT_MATH_H
977 REPLACE_UTIMENSAT
978 REPLACE_STAT
979 REPLACE_MKNOD
980 REPLACE_MKFIFO
981 REPLACE_MKDIR
982 REPLACE_LSTAT
983 REPLACE_FUTIMENS
984 REPLACE_FSTATAT
985 REPLACE_FSTAT
986 HAVE_UTIMENSAT
987 HAVE_MKNODAT
988 HAVE_MKNOD
989 HAVE_MKFIFOAT
990 HAVE_MKFIFO
991 HAVE_MKDIRAT
992 HAVE_LSTAT
993 HAVE_LCHMOD
994 HAVE_FUTIMENS
995 HAVE_FSTATAT
996 HAVE_FCHMODAT
997 GNULIB_UTIMENSAT
998 GNULIB_STAT
999 GNULIB_MKNODAT
1000 GNULIB_MKNOD
1001 GNULIB_MKFIFOAT
1002 GNULIB_MKFIFO
1003 GNULIB_MKDIRAT
1004 GNULIB_LSTAT
1005 GNULIB_LCHMOD
1006 GNULIB_FUTIMENS
1007 GNULIB_FSTATAT
1008 GNULIB_FSTAT
1009 GNULIB_FCHMODAT
1010 LOCALCHARSET_TESTS_ENVIRONMENT
1011 GLIBC21
1012 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1013 NEXT_INTTYPES_H
1014 UINT64_MAX_EQ_ULONG_MAX
1015 UINT32_MAX_LT_UINTMAX_MAX
1016 PRIPTR_PREFIX
1017 PRI_MACROS_BROKEN
1018 INT64_MAX_EQ_LONG_MAX
1019 INT32_MAX_LT_INTMAX_MAX
1020 REPLACE_STRTOUMAX
1021 REPLACE_STRTOIMAX
1022 HAVE_DECL_STRTOUMAX
1023 HAVE_DECL_STRTOIMAX
1024 HAVE_DECL_IMAXDIV
1025 HAVE_DECL_IMAXABS
1026 GNULIB_STRTOUMAX
1027 GNULIB_STRTOIMAX
1028 GNULIB_IMAXDIV
1029 GNULIB_IMAXABS
1030 GL_GENERATE_STDINT_H_FALSE
1031 GL_GENERATE_STDINT_H_TRUE
1032 STDINT_H
1033 WINT_T_SUFFIX
1034 WCHAR_T_SUFFIX
1035 SIG_ATOMIC_T_SUFFIX
1036 SIZE_T_SUFFIX
1037 PTRDIFF_T_SUFFIX
1038 HAVE_SIGNED_WINT_T
1039 HAVE_SIGNED_WCHAR_T
1040 HAVE_SIGNED_SIG_ATOMIC_T
1041 BITSIZEOF_WINT_T
1042 BITSIZEOF_WCHAR_T
1043 BITSIZEOF_SIG_ATOMIC_T
1044 BITSIZEOF_SIZE_T
1045 BITSIZEOF_PTRDIFF_T
1046 APPLE_UNIVERSAL_BUILD
1047 HAVE_SYS_BITYPES_H
1048 HAVE_SYS_INTTYPES_H
1049 HAVE_STDINT_H
1050 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1051 NEXT_STDINT_H
1052 HAVE_SYS_TYPES_H
1053 HAVE_INTTYPES_H
1054 HAVE_WCHAR_H
1055 HAVE_UNSIGNED_LONG_LONG_INT
1056 HAVE_LONG_LONG_INT
1057 HAVE_WINSOCK2_H
1058 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
1059 NEXT_SYS_TIME_H
1060 REPLACE_STRUCT_TIMEVAL
1061 REPLACE_GETTIMEOFDAY
1062 HAVE_TIMEZONE_T
1063 HAVE_SYS_TIME_H
1064 HAVE_STRUCT_TIMEVAL
1065 HAVE_GETTIMEOFDAY
1066 GNULIB_GETTIMEOFDAY
1067 FREXPL_LIBM
1068 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1069 FREXP_LIBM
1070 REPLACE_TRUNCL
1071 REPLACE_TRUNCF
1072 REPLACE_TRUNC
1073 REPLACE_SQRTL
1074 REPLACE_SIGNBIT_USING_GCC
1075 REPLACE_SIGNBIT
1076 REPLACE_ROUNDL
1077 REPLACE_ROUNDF
1078 REPLACE_ROUND
1079 REPLACE_REMAINDERL
1080 REPLACE_REMAINDERF
1081 REPLACE_REMAINDER
1082 REPLACE_NAN
1083 REPLACE_MODFL
1084 REPLACE_MODFF
1085 REPLACE_MODF
1086 REPLACE_LOGBL
1087 REPLACE_LOGBF
1088 REPLACE_LOGB
1089 REPLACE_LOG2L
1090 REPLACE_LOG2F
1091 REPLACE_LOG2
1092 REPLACE_LOG1PL
1093 REPLACE_LOG1PF
1094 REPLACE_LOG1P
1095 REPLACE_LOG10L
1096 REPLACE_LOG10F
1097 REPLACE_LOG10
1098 REPLACE_LOGL
1099 REPLACE_LOGF
1100 REPLACE_LOG
1101 REPLACE_LDEXPL
1102 REPLACE_ISNAN
1103 REPLACE_ISINF
1104 REPLACE_ISFINITE
1105 REPLACE_ILOGBF
1106 REPLACE_ILOGB
1107 REPLACE_HYPOTL
1108 REPLACE_HYPOTF
1109 REPLACE_HYPOT
1110 REPLACE_HUGE_VAL
1111 REPLACE_FREXPL
1112 REPLACE_FREXP
1113 REPLACE_FREXPF
1114 REPLACE_FMODL
1115 REPLACE_FMODF
1116 REPLACE_FMOD
1117 REPLACE_FMAL
1118 REPLACE_FMAF
1119 REPLACE_FMA
1120 REPLACE_FLOORL
1121 REPLACE_FLOORF
1122 REPLACE_FLOOR
1123 REPLACE_FABSL
1124 REPLACE_EXP2L
1125 REPLACE_EXP2
1126 REPLACE_EXPM1F
1127 REPLACE_EXPM1
1128 REPLACE_CEILL
1129 REPLACE_CEILF
1130 REPLACE_CEIL
1131 REPLACE_CBRTL
1132 REPLACE_CBRTF
1133 HAVE_DECL_TRUNCL
1134 HAVE_DECL_TRUNCF
1135 HAVE_DECL_TRUNC
1136 HAVE_DECL_TANL
1137 HAVE_DECL_SQRTL
1138 HAVE_DECL_SINL
1139 HAVE_DECL_ROUNDL
1140 HAVE_DECL_ROUNDF
1141 HAVE_DECL_ROUND
1142 HAVE_DECL_RINTF
1143 HAVE_DECL_REMAINDERL
1144 HAVE_DECL_REMAINDER
1145 HAVE_DECL_LOGB
1146 HAVE_DECL_LOG2L
1147 HAVE_DECL_LOG2F
1148 HAVE_DECL_LOG2
1149 HAVE_DECL_LOG10L
1150 HAVE_DECL_LOGL
1151 HAVE_DECL_LDEXPL
1152 HAVE_DECL_FREXPL
1153 HAVE_DECL_FLOORL
1154 HAVE_DECL_FLOORF
1155 HAVE_DECL_EXPM1L
1156 HAVE_DECL_EXP2L
1157 HAVE_DECL_EXP2F
1158 HAVE_DECL_EXP2
1159 HAVE_DECL_EXPL
1160 HAVE_DECL_COSL
1161 HAVE_DECL_COPYSIGNF
1162 HAVE_DECL_CEILL
1163 HAVE_DECL_CEILF
1164 HAVE_DECL_CBRTL
1165 HAVE_DECL_CBRTF
1166 HAVE_DECL_ATANL
1167 HAVE_DECL_ASINL
1168 HAVE_DECL_ACOSL
1169 HAVE_TANHF
1170 HAVE_TANL
1171 HAVE_TANF
1172 HAVE_SQRTL
1173 HAVE_SQRTF
1174 HAVE_SINHF
1175 HAVE_SINL
1176 HAVE_SINF
1177 HAVE_RINTL
1178 HAVE_RINT
1179 HAVE_REMAINDERF
1180 HAVE_REMAINDER
1181 HAVE_POWF
1182 HAVE_MODFL
1183 HAVE_MODFF
1184 HAVE_LOGBL
1185 HAVE_LOGBF
1186 HAVE_LOG1PL
1187 HAVE_LOG1PF
1188 HAVE_LOG1P
1189 HAVE_LOG10L
1190 HAVE_LOG10F
1191 HAVE_LOGL
1192 HAVE_LOGF
1193 HAVE_LDEXPF
1194 HAVE_ISNANL
1195 HAVE_ISNAND
1196 HAVE_ISNANF
1197 HAVE_ILOGBL
1198 HAVE_ILOGBF
1199 HAVE_ILOGB
1200 HAVE_HYPOTL
1201 HAVE_HYPOTF
1202 HAVE_FREXPF
1203 HAVE_FMODL
1204 HAVE_FMODF
1205 HAVE_FMAL
1206 HAVE_FMAF
1207 HAVE_FMA
1208 HAVE_FABSL
1209 HAVE_FABSF
1210 HAVE_EXPM1F
1211 HAVE_EXPM1
1212 HAVE_EXPL
1213 HAVE_EXPF
1214 HAVE_COSHF
1215 HAVE_COSL
1216 HAVE_COSF
1217 HAVE_COPYSIGNL
1218 HAVE_COPYSIGN
1219 HAVE_CBRTL
1220 HAVE_CBRTF
1221 HAVE_CBRT
1222 HAVE_ATAN2F
1223 HAVE_ATANL
1224 HAVE_ATANF
1225 HAVE_ASINL
1226 HAVE_ASINF
1227 HAVE_ACOSL
1228 HAVE_ACOSF
1229 GNULIB_TRUNCL
1230 GNULIB_TRUNCF
1231 GNULIB_TRUNC
1232 GNULIB_TANHF
1233 GNULIB_TANL
1234 GNULIB_TANF
1235 GNULIB_SQRTL
1236 GNULIB_SQRTF
1237 GNULIB_SINHF
1238 GNULIB_SINL
1239 GNULIB_SINF
1240 GNULIB_SIGNBIT
1241 GNULIB_ROUNDL
1242 GNULIB_ROUNDF
1243 GNULIB_ROUND
1244 GNULIB_RINTL
1245 GNULIB_RINTF
1246 GNULIB_RINT
1247 GNULIB_REMAINDERL
1248 GNULIB_REMAINDERF
1249 GNULIB_REMAINDER
1250 GNULIB_POWF
1251 GNULIB_MODFL
1252 GNULIB_MODFF
1253 GNULIB_MODF
1254 GNULIB_LOGBL
1255 GNULIB_LOGBF
1256 GNULIB_LOGB
1257 GNULIB_LOG2L
1258 GNULIB_LOG2F
1259 GNULIB_LOG2
1260 GNULIB_LOG1PL
1261 GNULIB_LOG1PF
1262 GNULIB_LOG1P
1263 GNULIB_LOG10L
1264 GNULIB_LOG10F
1265 GNULIB_LOG10
1266 GNULIB_LOGL
1267 GNULIB_LOGF
1268 GNULIB_LOG
1269 GNULIB_LDEXPL
1270 GNULIB_LDEXPF
1271 GNULIB_ISNANL
1272 GNULIB_ISNAND
1273 GNULIB_ISNANF
1274 GNULIB_ISNAN
1275 GNULIB_ISINF
1276 GNULIB_ISFINITE
1277 GNULIB_ILOGBL
1278 GNULIB_ILOGBF
1279 GNULIB_ILOGB
1280 GNULIB_HYPOTL
1281 GNULIB_HYPOTF
1282 GNULIB_HYPOT
1283 GNULIB_FREXPL
1284 GNULIB_FREXP
1285 GNULIB_FREXPF
1286 GNULIB_FMODL
1287 GNULIB_FMODF
1288 GNULIB_FMOD
1289 GNULIB_FMAL
1290 GNULIB_FMAF
1291 GNULIB_FMA
1292 GNULIB_FLOORL
1293 GNULIB_FLOORF
1294 GNULIB_FLOOR
1295 GNULIB_FABSL
1296 GNULIB_FABSF
1297 GNULIB_EXPM1L
1298 GNULIB_EXPM1F
1299 GNULIB_EXPM1
1300 GNULIB_EXP2L
1301 GNULIB_EXP2F
1302 GNULIB_EXP2
1303 GNULIB_EXPL
1304 GNULIB_EXPF
1305 GNULIB_COSHF
1306 GNULIB_COSL
1307 GNULIB_COSF
1308 GNULIB_COPYSIGNL
1309 GNULIB_COPYSIGNF
1310 GNULIB_COPYSIGN
1311 GNULIB_CEILL
1312 GNULIB_CEILF
1313 GNULIB_CEIL
1314 GNULIB_CBRTL
1315 GNULIB_CBRTF
1316 GNULIB_CBRT
1317 GNULIB_ATAN2F
1318 GNULIB_ATANL
1319 GNULIB_ATANF
1320 GNULIB_ASINL
1321 GNULIB_ASINF
1322 GNULIB_ACOSL
1323 GNULIB_ACOSF
1324 GL_GENERATE_FNMATCH_H_FALSE
1325 GL_GENERATE_FNMATCH_H_TRUE
1326 FNMATCH_H
1327 REPLACE_ITOLD
1328 GL_GENERATE_FLOAT_H_FALSE
1329 GL_GENERATE_FLOAT_H_TRUE
1330 FLOAT_H
1331 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1332 NEXT_FLOAT_H
1333 EOVERFLOW_VALUE
1334 EOVERFLOW_HIDDEN
1335 ENOLINK_VALUE
1336 ENOLINK_HIDDEN
1337 EMULTIHOP_VALUE
1338 EMULTIHOP_HIDDEN
1339 GL_GENERATE_ERRNO_H_FALSE
1340 GL_GENERATE_ERRNO_H_TRUE
1341 ERRNO_H
1342 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1343 NEXT_ERRNO_H
1344 HAVE_DIRENT_H
1345 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1346 NEXT_DIRENT_H
1347 PRAGMA_COLUMNS
1348 PRAGMA_SYSTEM_HEADER
1349 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1350 INCLUDE_NEXT
1351 REPLACE_FDOPENDIR
1352 REPLACE_DIRFD
1353 REPLACE_CLOSEDIR
1354 REPLACE_OPENDIR
1355 HAVE_ALPHASORT
1356 HAVE_SCANDIR
1357 HAVE_FDOPENDIR
1358 HAVE_DECL_FDOPENDIR
1359 HAVE_DECL_DIRFD
1360 HAVE_CLOSEDIR
1361 HAVE_REWINDDIR
1362 HAVE_READDIR
1363 HAVE_OPENDIR
1364 GNULIB_ALPHASORT
1365 GNULIB_SCANDIR
1366 GNULIB_FDOPENDIR
1367 GNULIB_DIRFD
1368 GNULIB_CLOSEDIR
1369 GNULIB_REWINDDIR
1370 GNULIB_READDIR
1371 GNULIB_OPENDIR
1372 pkglibexecdir
1373 runstatedir
1374 lispdir
1375 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1376 UNISTD_H_HAVE_WINSOCK2_H
1377 REPLACE_WRITE
1378 REPLACE_USLEEP
1379 REPLACE_UNLINKAT
1380 REPLACE_UNLINK
1381 REPLACE_TTYNAME_R
1382 REPLACE_SYMLINKAT
1383 REPLACE_SYMLINK
1384 REPLACE_SLEEP
1385 REPLACE_RMDIR
1386 REPLACE_READLINKAT
1387 REPLACE_READLINK
1388 REPLACE_READ
1389 REPLACE_PWRITE
1390 REPLACE_PREAD
1391 REPLACE_LSEEK
1392 REPLACE_LINKAT
1393 REPLACE_LINK
1394 REPLACE_LCHOWN
1395 REPLACE_ISATTY
1396 REPLACE_GETPAGESIZE
1397 REPLACE_GETGROUPS
1398 REPLACE_GETLOGIN_R
1399 REPLACE_GETDTABLESIZE
1400 REPLACE_GETDOMAINNAME
1401 REPLACE_GETCWD
1402 REPLACE_FTRUNCATE
1403 REPLACE_FCHOWNAT
1404 REPLACE_DUP2
1405 REPLACE_DUP
1406 REPLACE_CLOSE
1407 REPLACE_CHOWN
1408 HAVE_SYS_PARAM_H
1409 HAVE_OS_H
1410 HAVE_DECL_TTYNAME_R
1411 HAVE_DECL_SETHOSTNAME
1412 HAVE_DECL_GETUSERSHELL
1413 HAVE_DECL_GETPAGESIZE
1414 HAVE_DECL_GETLOGIN_R
1415 HAVE_DECL_GETDOMAINNAME
1416 HAVE_DECL_FDATASYNC
1417 HAVE_DECL_FCHDIR
1418 HAVE_DECL_ENVIRON
1419 HAVE_USLEEP
1420 HAVE_UNLINKAT
1421 HAVE_SYMLINKAT
1422 HAVE_SYMLINK
1423 HAVE_SLEEP
1424 HAVE_SETHOSTNAME
1425 HAVE_READLINKAT
1426 HAVE_READLINK
1427 HAVE_PWRITE
1428 HAVE_PREAD
1429 HAVE_PIPE2
1430 HAVE_PIPE
1431 HAVE_LINKAT
1432 HAVE_LINK
1433 HAVE_LCHOWN
1434 HAVE_GROUP_MEMBER
1435 HAVE_GETPAGESIZE
1436 HAVE_GETLOGIN
1437 HAVE_GETHOSTNAME
1438 HAVE_GETGROUPS
1439 HAVE_GETDTABLESIZE
1440 HAVE_FTRUNCATE
1441 HAVE_FSYNC
1442 HAVE_FDATASYNC
1443 HAVE_FCHOWNAT
1444 HAVE_FCHDIR
1445 HAVE_FACCESSAT
1446 HAVE_EUIDACCESS
1447 HAVE_DUP3
1448 HAVE_DUP2
1449 HAVE_CHOWN
1450 GNULIB_WRITE
1451 GNULIB_USLEEP
1452 GNULIB_UNLINKAT
1453 GNULIB_UNLINK
1454 GNULIB_UNISTD_H_SIGPIPE
1455 GNULIB_UNISTD_H_NONBLOCKING
1456 GNULIB_TTYNAME_R
1457 GNULIB_SYMLINKAT
1458 GNULIB_SYMLINK
1459 GNULIB_SLEEP
1460 GNULIB_SETHOSTNAME
1461 GNULIB_RMDIR
1462 GNULIB_READLINKAT
1463 GNULIB_READLINK
1464 GNULIB_READ
1465 GNULIB_PWRITE
1466 GNULIB_PREAD
1467 GNULIB_PIPE2
1468 GNULIB_PIPE
1469 GNULIB_LSEEK
1470 GNULIB_LINKAT
1471 GNULIB_LINK
1472 GNULIB_LCHOWN
1473 GNULIB_ISATTY
1474 GNULIB_GROUP_MEMBER
1475 GNULIB_GETUSERSHELL
1476 GNULIB_GETPAGESIZE
1477 GNULIB_GETLOGIN_R
1478 GNULIB_GETLOGIN
1479 GNULIB_GETHOSTNAME
1480 GNULIB_GETGROUPS
1481 GNULIB_GETDTABLESIZE
1482 GNULIB_GETDOMAINNAME
1483 GNULIB_GETCWD
1484 GNULIB_FTRUNCATE
1485 GNULIB_FSYNC
1486 GNULIB_FDATASYNC
1487 GNULIB_FCHOWNAT
1488 GNULIB_FCHDIR
1489 GNULIB_FACCESSAT
1490 GNULIB_EUIDACCESS
1491 GNULIB_ENVIRON
1492 GNULIB_DUP3
1493 GNULIB_DUP2
1494 GNULIB_DUP
1495 GNULIB_CLOSE
1496 GNULIB_CHOWN
1497 GNULIB_CHDIR
1498 REPLACE_WCTOMB
1499 REPLACE_UNSETENV
1500 REPLACE_STRTOD
1501 REPLACE_SETENV
1502 REPLACE_REALPATH
1503 REPLACE_REALLOC
1504 REPLACE_RANDOM_R
1505 REPLACE_QSORT_R
1506 REPLACE_PUTENV
1507 REPLACE_PTSNAME_R
1508 REPLACE_PTSNAME
1509 REPLACE_MKSTEMP
1510 REPLACE_MBTOWC
1511 REPLACE_MALLOC
1512 REPLACE_CANONICALIZE_FILE_NAME
1513 REPLACE_CALLOC
1514 HAVE_DECL_UNSETENV
1515 HAVE_UNLOCKPT
1516 HAVE_SYS_LOADAVG_H
1517 HAVE_STRUCT_RANDOM_DATA
1518 HAVE_STRTOULL
1519 HAVE_STRTOLL
1520 HAVE_STRTOD
1521 HAVE_DECL_SETENV
1522 HAVE_SETENV
1523 HAVE_SECURE_GETENV
1524 HAVE_RPMATCH
1525 HAVE_REALPATH
1526 HAVE_RANDOM_R
1527 HAVE_RANDOM_H
1528 HAVE_RANDOM
1529 HAVE_PTSNAME_R
1530 HAVE_PTSNAME
1531 HAVE_POSIX_OPENPT
1532 HAVE_MKSTEMPS
1533 HAVE_MKSTEMP
1534 HAVE_MKOSTEMPS
1535 HAVE_MKOSTEMP
1536 HAVE_MKDTEMP
1537 HAVE_GRANTPT
1538 HAVE_GETSUBOPT
1539 HAVE_DECL_GETLOADAVG
1540 HAVE_CANONICALIZE_FILE_NAME
1541 HAVE_ATOLL
1542 HAVE__EXIT
1543 GNULIB_WCTOMB
1544 GNULIB_UNSETENV
1545 GNULIB_UNLOCKPT
1546 GNULIB_SYSTEM_POSIX
1547 GNULIB_STRTOULL
1548 GNULIB_STRTOLL
1549 GNULIB_STRTOD
1550 GNULIB_SETENV
1551 GNULIB_SECURE_GETENV
1552 GNULIB_RPMATCH
1553 GNULIB_REALPATH
1554 GNULIB_REALLOC_POSIX
1555 GNULIB_RANDOM_R
1556 GNULIB_RANDOM
1557 GNULIB_QSORT_R
1558 GNULIB_PUTENV
1559 GNULIB_PTSNAME_R
1560 GNULIB_PTSNAME
1561 GNULIB_POSIX_OPENPT
1562 GNULIB_MKSTEMPS
1563 GNULIB_MKSTEMP
1564 GNULIB_MKOSTEMPS
1565 GNULIB_MKOSTEMP
1566 GNULIB_MKDTEMP
1567 GNULIB_MBTOWC
1568 GNULIB_MALLOC_POSIX
1569 GNULIB_GRANTPT
1570 GNULIB_GETSUBOPT
1571 GNULIB_GETLOADAVG
1572 GNULIB_CANONICALIZE_FILE_NAME
1573 GNULIB_CALLOC_POSIX
1574 GNULIB_ATOLL
1575 GNULIB__EXIT
1576 GL_GENERATE_ALLOCA_H_FALSE
1577 GL_GENERATE_ALLOCA_H_TRUE
1578 ALLOCA_H
1579 ALLOCA
1580 GL_COND_LIBTOOL_FALSE
1581 GL_COND_LIBTOOL_TRUE
1582 target_os
1583 target_vendor
1584 target_cpu
1585 target
1586 host_os
1587 host_vendor
1588 host_cpu
1589 host
1590 build_os
1591 build_vendor
1592 build_cpu
1593 build
1594 RANLIB
1595 ARFLAGS
1596 AR
1597 EGREP
1598 GREP
1599 CPP
1600 OBJEXT
1601 EXEEXT
1602 ac_ct_CC
1603 CPPFLAGS
1604 LDFLAGS
1605 CFLAGS
1606 CC
1607 MAINT
1608 MAINTAINER_MODE_FALSE
1609 MAINTAINER_MODE_TRUE
1610 target_alias
1611 host_alias
1612 build_alias
1613 LIBS
1614 ECHO_T
1615 ECHO_N
1616 ECHO_C
1617 DEFS
1618 mandir
1619 localedir
1620 libdir
1621 psdir
1622 pdfdir
1623 dvidir
1624 htmldir
1625 infodir
1626 docdir
1627 oldincludedir
1628 includedir
1629 localstatedir
1630 sharedstatedir
1631 sysconfdir
1632 datadir
1633 datarootdir
1634 libexecdir
1635 sbindir
1636 bindir
1637 program_transform_name
1638 prefix
1639 exec_prefix
1640 PACKAGE_URL
1641 PACKAGE_BUGREPORT
1642 PACKAGE_STRING
1643 PACKAGE_VERSION
1644 PACKAGE_TARNAME
1645 PACKAGE_NAME
1646 PATH_SEPARATOR
1647 SHELL'
1648 ac_subst_files=''
1649 ac_user_opts='
1650 enable_option_checking
1651 enable_maintainer_mode
1652 enable_largefile
1653 enable_dependency_tracking
1654 '
1655 ac_precious_vars='build_alias
1656 host_alias
1657 target_alias
1658 CC
1659 CFLAGS
1660 LDFLAGS
1661 LIBS
1662 CPPFLAGS
1663 CPP'
1664
1665
1666 # Initialize some variables set by options.
1667 ac_init_help=
1668 ac_init_version=false
1669 ac_unrecognized_opts=
1670 ac_unrecognized_sep=
1671 # The variables have the same names as the options, with
1672 # dashes changed to underlines.
1673 cache_file=/dev/null
1674 exec_prefix=NONE
1675 no_create=
1676 no_recursion=
1677 prefix=NONE
1678 program_prefix=NONE
1679 program_suffix=NONE
1680 program_transform_name=s,x,x,
1681 silent=
1682 site=
1683 srcdir=
1684 verbose=
1685 x_includes=NONE
1686 x_libraries=NONE
1687
1688 # Installation directory options.
1689 # These are left unexpanded so users can "make install exec_prefix=/foo"
1690 # and all the variables that are supposed to be based on exec_prefix
1691 # by default will actually change.
1692 # Use braces instead of parens because sh, perl, etc. also accept them.
1693 # (The list follows the same order as the GNU Coding Standards.)
1694 bindir='${exec_prefix}/bin'
1695 sbindir='${exec_prefix}/sbin'
1696 libexecdir='${exec_prefix}/libexec'
1697 datarootdir='${prefix}/share'
1698 datadir='${datarootdir}'
1699 sysconfdir='${prefix}/etc'
1700 sharedstatedir='${prefix}/com'
1701 localstatedir='${prefix}/var'
1702 includedir='${prefix}/include'
1703 oldincludedir='/usr/include'
1704 docdir='${datarootdir}/doc/${PACKAGE}'
1705 infodir='${datarootdir}/info'
1706 htmldir='${docdir}'
1707 dvidir='${docdir}'
1708 pdfdir='${docdir}'
1709 psdir='${docdir}'
1710 libdir='${exec_prefix}/lib'
1711 localedir='${datarootdir}/locale'
1712 mandir='${datarootdir}/man'
1713
1714 ac_prev=
1715 ac_dashdash=
1716 for ac_option
1717 do
1718 # If the previous option needs an argument, assign it.
1719 if test -n "$ac_prev"; then
1720 eval $ac_prev=\$ac_option
1721 ac_prev=
1722 continue
1723 fi
1724
1725 case $ac_option in
1726 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1727 *) ac_optarg=yes ;;
1728 esac
1729
1730 # Accept the important Cygnus configure options, so we can diagnose typos.
1731
1732 case $ac_dashdash$ac_option in
1733 --)
1734 ac_dashdash=yes ;;
1735
1736 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1737 ac_prev=bindir ;;
1738 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1739 bindir=$ac_optarg ;;
1740
1741 -build | --build | --buil | --bui | --bu)
1742 ac_prev=build_alias ;;
1743 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1744 build_alias=$ac_optarg ;;
1745
1746 -cache-file | --cache-file | --cache-fil | --cache-fi \
1747 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1748 ac_prev=cache_file ;;
1749 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1750 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1751 cache_file=$ac_optarg ;;
1752
1753 --config-cache | -C)
1754 cache_file=config.cache ;;
1755
1756 -datadir | --datadir | --datadi | --datad)
1757 ac_prev=datadir ;;
1758 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1759 datadir=$ac_optarg ;;
1760
1761 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1762 | --dataroo | --dataro | --datar)
1763 ac_prev=datarootdir ;;
1764 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1765 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1766 datarootdir=$ac_optarg ;;
1767
1768 -disable-* | --disable-*)
1769 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1770 # Reject names that are not valid shell variable names.
1771 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1772 as_fn_error "invalid feature name: $ac_useropt"
1773 ac_useropt_orig=$ac_useropt
1774 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1775 case $ac_user_opts in
1776 *"
1777 "enable_$ac_useropt"
1778 "*) ;;
1779 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1780 ac_unrecognized_sep=', ';;
1781 esac
1782 eval enable_$ac_useropt=no ;;
1783
1784 -docdir | --docdir | --docdi | --doc | --do)
1785 ac_prev=docdir ;;
1786 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1787 docdir=$ac_optarg ;;
1788
1789 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1790 ac_prev=dvidir ;;
1791 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1792 dvidir=$ac_optarg ;;
1793
1794 -enable-* | --enable-*)
1795 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1796 # Reject names that are not valid shell variable names.
1797 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1798 as_fn_error "invalid feature name: $ac_useropt"
1799 ac_useropt_orig=$ac_useropt
1800 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1801 case $ac_user_opts in
1802 *"
1803 "enable_$ac_useropt"
1804 "*) ;;
1805 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1806 ac_unrecognized_sep=', ';;
1807 esac
1808 eval enable_$ac_useropt=\$ac_optarg ;;
1809
1810 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1811 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1812 | --exec | --exe | --ex)
1813 ac_prev=exec_prefix ;;
1814 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1815 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1816 | --exec=* | --exe=* | --ex=*)
1817 exec_prefix=$ac_optarg ;;
1818
1819 -gas | --gas | --ga | --g)
1820 # Obsolete; use --with-gas.
1821 with_gas=yes ;;
1822
1823 -help | --help | --hel | --he | -h)
1824 ac_init_help=long ;;
1825 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1826 ac_init_help=recursive ;;
1827 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1828 ac_init_help=short ;;
1829
1830 -host | --host | --hos | --ho)
1831 ac_prev=host_alias ;;
1832 -host=* | --host=* | --hos=* | --ho=*)
1833 host_alias=$ac_optarg ;;
1834
1835 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1836 ac_prev=htmldir ;;
1837 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1838 | --ht=*)
1839 htmldir=$ac_optarg ;;
1840
1841 -includedir | --includedir | --includedi | --included | --include \
1842 | --includ | --inclu | --incl | --inc)
1843 ac_prev=includedir ;;
1844 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1845 | --includ=* | --inclu=* | --incl=* | --inc=*)
1846 includedir=$ac_optarg ;;
1847
1848 -infodir | --infodir | --infodi | --infod | --info | --inf)
1849 ac_prev=infodir ;;
1850 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1851 infodir=$ac_optarg ;;
1852
1853 -libdir | --libdir | --libdi | --libd)
1854 ac_prev=libdir ;;
1855 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1856 libdir=$ac_optarg ;;
1857
1858 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1859 | --libexe | --libex | --libe)
1860 ac_prev=libexecdir ;;
1861 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1862 | --libexe=* | --libex=* | --libe=*)
1863 libexecdir=$ac_optarg ;;
1864
1865 -localedir | --localedir | --localedi | --localed | --locale)
1866 ac_prev=localedir ;;
1867 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1868 localedir=$ac_optarg ;;
1869
1870 -localstatedir | --localstatedir | --localstatedi | --localstated \
1871 | --localstate | --localstat | --localsta | --localst | --locals)
1872 ac_prev=localstatedir ;;
1873 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1874 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1875 localstatedir=$ac_optarg ;;
1876
1877 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1878 ac_prev=mandir ;;
1879 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1880 mandir=$ac_optarg ;;
1881
1882 -nfp | --nfp | --nf)
1883 # Obsolete; use --without-fp.
1884 with_fp=no ;;
1885
1886 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1887 | --no-cr | --no-c | -n)
1888 no_create=yes ;;
1889
1890 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1891 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1892 no_recursion=yes ;;
1893
1894 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1895 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1896 | --oldin | --oldi | --old | --ol | --o)
1897 ac_prev=oldincludedir ;;
1898 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1899 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1900 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1901 oldincludedir=$ac_optarg ;;
1902
1903 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1904 ac_prev=prefix ;;
1905 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1906 prefix=$ac_optarg ;;
1907
1908 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1909 | --program-pre | --program-pr | --program-p)
1910 ac_prev=program_prefix ;;
1911 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1912 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1913 program_prefix=$ac_optarg ;;
1914
1915 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1916 | --program-suf | --program-su | --program-s)
1917 ac_prev=program_suffix ;;
1918 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1919 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1920 program_suffix=$ac_optarg ;;
1921
1922 -program-transform-name | --program-transform-name \
1923 | --program-transform-nam | --program-transform-na \
1924 | --program-transform-n | --program-transform- \
1925 | --program-transform | --program-transfor \
1926 | --program-transfo | --program-transf \
1927 | --program-trans | --program-tran \
1928 | --progr-tra | --program-tr | --program-t)
1929 ac_prev=program_transform_name ;;
1930 -program-transform-name=* | --program-transform-name=* \
1931 | --program-transform-nam=* | --program-transform-na=* \
1932 | --program-transform-n=* | --program-transform-=* \
1933 | --program-transform=* | --program-transfor=* \
1934 | --program-transfo=* | --program-transf=* \
1935 | --program-trans=* | --program-tran=* \
1936 | --progr-tra=* | --program-tr=* | --program-t=*)
1937 program_transform_name=$ac_optarg ;;
1938
1939 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1940 ac_prev=pdfdir ;;
1941 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1942 pdfdir=$ac_optarg ;;
1943
1944 -psdir | --psdir | --psdi | --psd | --ps)
1945 ac_prev=psdir ;;
1946 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1947 psdir=$ac_optarg ;;
1948
1949 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1950 | -silent | --silent | --silen | --sile | --sil)
1951 silent=yes ;;
1952
1953 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1954 ac_prev=sbindir ;;
1955 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1956 | --sbi=* | --sb=*)
1957 sbindir=$ac_optarg ;;
1958
1959 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1960 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1961 | --sharedst | --shareds | --shared | --share | --shar \
1962 | --sha | --sh)
1963 ac_prev=sharedstatedir ;;
1964 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1965 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1966 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1967 | --sha=* | --sh=*)
1968 sharedstatedir=$ac_optarg ;;
1969
1970 -site | --site | --sit)
1971 ac_prev=site ;;
1972 -site=* | --site=* | --sit=*)
1973 site=$ac_optarg ;;
1974
1975 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1976 ac_prev=srcdir ;;
1977 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1978 srcdir=$ac_optarg ;;
1979
1980 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1981 | --syscon | --sysco | --sysc | --sys | --sy)
1982 ac_prev=sysconfdir ;;
1983 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1984 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1985 sysconfdir=$ac_optarg ;;
1986
1987 -target | --target | --targe | --targ | --tar | --ta | --t)
1988 ac_prev=target_alias ;;
1989 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1990 target_alias=$ac_optarg ;;
1991
1992 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1993 verbose=yes ;;
1994
1995 -version | --version | --versio | --versi | --vers | -V)
1996 ac_init_version=: ;;
1997
1998 -with-* | --with-*)
1999 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2000 # Reject names that are not valid shell variable names.
2001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2002 as_fn_error "invalid package name: $ac_useropt"
2003 ac_useropt_orig=$ac_useropt
2004 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2005 case $ac_user_opts in
2006 *"
2007 "with_$ac_useropt"
2008 "*) ;;
2009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2010 ac_unrecognized_sep=', ';;
2011 esac
2012 eval with_$ac_useropt=\$ac_optarg ;;
2013
2014 -without-* | --without-*)
2015 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2016 # Reject names that are not valid shell variable names.
2017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2018 as_fn_error "invalid package name: $ac_useropt"
2019 ac_useropt_orig=$ac_useropt
2020 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
2021 case $ac_user_opts in
2022 *"
2023 "with_$ac_useropt"
2024 "*) ;;
2025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2026 ac_unrecognized_sep=', ';;
2027 esac
2028 eval with_$ac_useropt=no ;;
2029
2030 --x)
2031 # Obsolete; use --with-x.
2032 with_x=yes ;;
2033
2034 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2035 | --x-incl | --x-inc | --x-in | --x-i)
2036 ac_prev=x_includes ;;
2037 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2038 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2039 x_includes=$ac_optarg ;;
2040
2041 -x-libraries | --x-libraries | --x-librarie | --x-librari \
2042 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2043 ac_prev=x_libraries ;;
2044 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2045 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2046 x_libraries=$ac_optarg ;;
2047
2048 -*) as_fn_error "unrecognized option: \`$ac_option'
2049 Try \`$0 --help' for more information."
2050 ;;
2051
2052 *=*)
2053 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2054 # Reject names that are not valid shell variable names.
2055 case $ac_envvar in #(
2056 '' | [0-9]* | *[!_$as_cr_alnum]* )
2057 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
2058 esac
2059 eval $ac_envvar=\$ac_optarg
2060 export $ac_envvar ;;
2061
2062 *)
2063 # FIXME: should be removed in autoconf 3.0.
2064 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2065 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2066 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2067 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
2068 ;;
2069
2070 esac
2071 done
2072
2073 if test -n "$ac_prev"; then
2074 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2075 as_fn_error "missing argument to $ac_option"
2076 fi
2077
2078 if test -n "$ac_unrecognized_opts"; then
2079 case $enable_option_checking in
2080 no) ;;
2081 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
2082 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2083 esac
2084 fi
2085
2086 # Check all directory arguments for consistency.
2087 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2088 datadir sysconfdir sharedstatedir localstatedir includedir \
2089 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2090 libdir localedir mandir
2091 do
2092 eval ac_val=\$$ac_var
2093 # Remove trailing slashes.
2094 case $ac_val in
2095 */ )
2096 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2097 eval $ac_var=\$ac_val;;
2098 esac
2099 # Be sure to have absolute directory names.
2100 case $ac_val in
2101 [\\/$]* | ?:[\\/]* ) continue;;
2102 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2103 esac
2104 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
2105 done
2106
2107 # There might be people who depend on the old broken behavior: `$host'
2108 # used to hold the argument of --host etc.
2109 # FIXME: To remove some day.
2110 build=$build_alias
2111 host=$host_alias
2112 target=$target_alias
2113
2114 # FIXME: To remove some day.
2115 if test "x$host_alias" != x; then
2116 if test "x$build_alias" = x; then
2117 cross_compiling=maybe
2118 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2119 If a cross compiler is detected then cross compile mode will be used." >&2
2120 elif test "x$build_alias" != "x$host_alias"; then
2121 cross_compiling=yes
2122 fi
2123 fi
2124
2125 ac_tool_prefix=
2126 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2127
2128 test "$silent" = yes && exec 6>/dev/null
2129
2130
2131 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2132 ac_ls_di=`ls -di .` &&
2133 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2134 as_fn_error "working directory cannot be determined"
2135 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2136 as_fn_error "pwd does not report name of working directory"
2137
2138
2139 # Find the source files, if location was not specified.
2140 if test -z "$srcdir"; then
2141 ac_srcdir_defaulted=yes
2142 # Try the directory containing this script, then the parent directory.
2143 ac_confdir=`$as_dirname -- "$as_myself" ||
2144 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2145 X"$as_myself" : 'X\(//\)[^/]' \| \
2146 X"$as_myself" : 'X\(//\)$' \| \
2147 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2148 $as_echo X"$as_myself" |
2149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2150 s//\1/
2151 q
2152 }
2153 /^X\(\/\/\)[^/].*/{
2154 s//\1/
2155 q
2156 }
2157 /^X\(\/\/\)$/{
2158 s//\1/
2159 q
2160 }
2161 /^X\(\/\).*/{
2162 s//\1/
2163 q
2164 }
2165 s/.*/./; q'`
2166 srcdir=$ac_confdir
2167 if test ! -r "$srcdir/$ac_unique_file"; then
2168 srcdir=..
2169 fi
2170 else
2171 ac_srcdir_defaulted=no
2172 fi
2173 if test ! -r "$srcdir/$ac_unique_file"; then
2174 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2175 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
2176 fi
2177 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2178 ac_abs_confdir=`(
2179 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2180 pwd)`
2181 # When building in place, set srcdir=.
2182 if test "$ac_abs_confdir" = "$ac_pwd"; then
2183 srcdir=.
2184 fi
2185 # Remove unnecessary trailing slashes from srcdir.
2186 # Double slashes in file names in object file debugging info
2187 # mess up M-x gdb in Emacs.
2188 case $srcdir in
2189 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2190 esac
2191 for ac_var in $ac_precious_vars; do
2192 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2193 eval ac_env_${ac_var}_value=\$${ac_var}
2194 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2195 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2196 done
2197
2198 #
2199 # Report the --help message.
2200 #
2201 if test "$ac_init_help" = "long"; then
2202 # Omit some internal or obsolete options to make the list less imposing.
2203 # This message is too long to be a string in the A/UX 3.1 sh.
2204 cat <<_ACEOF
2205 \`configure' configures this package to adapt to many kinds of systems.
2206
2207 Usage: $0 [OPTION]... [VAR=VALUE]...
2208
2209 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2210 VAR=VALUE. See below for descriptions of some of the useful variables.
2211
2212 Defaults for the options are specified in brackets.
2213
2214 Configuration:
2215 -h, --help display this help and exit
2216 --help=short display options specific to this package
2217 --help=recursive display the short help of all the included packages
2218 -V, --version display version information and exit
2219 -q, --quiet, --silent do not print \`checking...' messages
2220 --cache-file=FILE cache test results in FILE [disabled]
2221 -C, --config-cache alias for \`--cache-file=config.cache'
2222 -n, --no-create do not create output files
2223 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2224
2225 Installation directories:
2226 --prefix=PREFIX install architecture-independent files in PREFIX
2227 [$ac_default_prefix]
2228 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2229 [PREFIX]
2230
2231 By default, \`make install' will install all the files in
2232 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2233 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2234 for instance \`--prefix=\$HOME'.
2235
2236 For better control, use the options below.
2237
2238 Fine tuning of the installation directories:
2239 --bindir=DIR user executables [EPREFIX/bin]
2240 --sbindir=DIR system admin executables [EPREFIX/sbin]
2241 --libexecdir=DIR program executables [EPREFIX/libexec]
2242 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2243 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2244 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2245 --libdir=DIR object code libraries [EPREFIX/lib]
2246 --includedir=DIR C header files [PREFIX/include]
2247 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2248 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2249 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2250 --infodir=DIR info documentation [DATAROOTDIR/info]
2251 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2252 --mandir=DIR man documentation [DATAROOTDIR/man]
2253 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2254 --htmldir=DIR html documentation [DOCDIR]
2255 --dvidir=DIR dvi documentation [DOCDIR]
2256 --pdfdir=DIR pdf documentation [DOCDIR]
2257 --psdir=DIR ps documentation [DOCDIR]
2258 _ACEOF
2259
2260 cat <<\_ACEOF
2261
2262 Program names:
2263 --program-prefix=PREFIX prepend PREFIX to installed program names
2264 --program-suffix=SUFFIX append SUFFIX to installed program names
2265 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2266
2267 System types:
2268 --build=BUILD configure for building on BUILD [guessed]
2269 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2270 --target=TARGET configure for building compilers for TARGET [HOST]
2271 _ACEOF
2272 fi
2273
2274 if test -n "$ac_init_help"; then
2275
2276 cat <<\_ACEOF
2277
2278 Optional Features:
2279 --disable-option-checking ignore unrecognized --enable/--with options
2280 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2281 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2282 --enable-maintainer-mode enable make rules and dependencies not useful
2283 (and sometimes confusing) to the casual installer
2284 --disable-largefile omit support for large files
2285 --disable-dependency-tracking speeds up one-time build
2286 --enable-dependency-tracking do not reject slow dependency extractors
2287
2288 Some influential environment variables:
2289 CC C compiler command
2290 CFLAGS C compiler flags
2291 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2292 nonstandard directory <lib dir>
2293 LIBS libraries to pass to the linker, e.g. -l<library>
2294 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2295 you have headers in a nonstandard directory <include dir>
2296 CPP C preprocessor
2297
2298 Use these variables to override the choices made by `configure' or to help
2299 it to find libraries and programs with nonstandard names/locations.
2300
2301 Report bugs to the package provider.
2302 _ACEOF
2303 ac_status=$?
2304 fi
2305
2306 if test "$ac_init_help" = "recursive"; then
2307 # If there are subdirs, report their specific --help.
2308 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2309 test -d "$ac_dir" ||
2310 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2311 continue
2312 ac_builddir=.
2313
2314 case "$ac_dir" in
2315 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2316 *)
2317 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2318 # A ".." for each directory in $ac_dir_suffix.
2319 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2320 case $ac_top_builddir_sub in
2321 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2322 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2323 esac ;;
2324 esac
2325 ac_abs_top_builddir=$ac_pwd
2326 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2327 # for backward compatibility:
2328 ac_top_builddir=$ac_top_build_prefix
2329
2330 case $srcdir in
2331 .) # We are building in place.
2332 ac_srcdir=.
2333 ac_top_srcdir=$ac_top_builddir_sub
2334 ac_abs_top_srcdir=$ac_pwd ;;
2335 [\\/]* | ?:[\\/]* ) # Absolute name.
2336 ac_srcdir=$srcdir$ac_dir_suffix;
2337 ac_top_srcdir=$srcdir
2338 ac_abs_top_srcdir=$srcdir ;;
2339 *) # Relative name.
2340 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2341 ac_top_srcdir=$ac_top_build_prefix$srcdir
2342 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2343 esac
2344 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2345
2346 cd "$ac_dir" || { ac_status=$?; continue; }
2347 # Check for guested configure.
2348 if test -f "$ac_srcdir/configure.gnu"; then
2349 echo &&
2350 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2351 elif test -f "$ac_srcdir/configure"; then
2352 echo &&
2353 $SHELL "$ac_srcdir/configure" --help=recursive
2354 else
2355 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2356 fi || ac_status=$?
2357 cd "$ac_pwd" || { ac_status=$?; break; }
2358 done
2359 fi
2360
2361 test -n "$ac_init_help" && exit $ac_status
2362 if $ac_init_version; then
2363 cat <<\_ACEOF
2364 configure
2365 generated by GNU Autoconf 2.64
2366
2367 Copyright (C) 2009 Free Software Foundation, Inc.
2368 This configure script is free software; the Free Software Foundation
2369 gives unlimited permission to copy, distribute and modify it.
2370 _ACEOF
2371 exit
2372 fi
2373
2374 ## ------------------------ ##
2375 ## Autoconf initialization. ##
2376 ## ------------------------ ##
2377
2378 # ac_fn_c_try_compile LINENO
2379 # --------------------------
2380 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2381 ac_fn_c_try_compile ()
2382 {
2383 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2384 rm -f conftest.$ac_objext
2385 if { { ac_try="$ac_compile"
2386 case "(($ac_try" in
2387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388 *) ac_try_echo=$ac_try;;
2389 esac
2390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2391 $as_echo "$ac_try_echo"; } >&5
2392 (eval "$ac_compile") 2>conftest.err
2393 ac_status=$?
2394 if test -s conftest.err; then
2395 grep -v '^ *+' conftest.err >conftest.er1
2396 cat conftest.er1 >&5
2397 mv -f conftest.er1 conftest.err
2398 fi
2399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2400 test $ac_status = 0; } && {
2401 test -z "$ac_c_werror_flag" ||
2402 test ! -s conftest.err
2403 } && test -s conftest.$ac_objext; then :
2404 ac_retval=0
2405 else
2406 $as_echo "$as_me: failed program was:" >&5
2407 sed 's/^/| /' conftest.$ac_ext >&5
2408
2409 ac_retval=1
2410 fi
2411 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2412 return $ac_retval
2413
2414 } # ac_fn_c_try_compile
2415
2416 # ac_fn_c_try_cpp LINENO
2417 # ----------------------
2418 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2419 ac_fn_c_try_cpp ()
2420 {
2421 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2422 if { { ac_try="$ac_cpp conftest.$ac_ext"
2423 case "(($ac_try" in
2424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2425 *) ac_try_echo=$ac_try;;
2426 esac
2427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2428 $as_echo "$ac_try_echo"; } >&5
2429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2430 ac_status=$?
2431 if test -s conftest.err; then
2432 grep -v '^ *+' conftest.err >conftest.er1
2433 cat conftest.er1 >&5
2434 mv -f conftest.er1 conftest.err
2435 fi
2436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2437 test $ac_status = 0; } >/dev/null && {
2438 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2439 test ! -s conftest.err
2440 }; then :
2441 ac_retval=0
2442 else
2443 $as_echo "$as_me: failed program was:" >&5
2444 sed 's/^/| /' conftest.$ac_ext >&5
2445
2446 ac_retval=1
2447 fi
2448 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2449 return $ac_retval
2450
2451 } # ac_fn_c_try_cpp
2452
2453 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2454 # -------------------------------------------------------
2455 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2456 # the include files in INCLUDES and setting the cache variable VAR
2457 # accordingly.
2458 ac_fn_c_check_header_mongrel ()
2459 {
2460 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2461 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2463 $as_echo_n "checking for $2... " >&6; }
2464 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2465 $as_echo_n "(cached) " >&6
2466 fi
2467 eval ac_res=\$$3
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2469 $as_echo "$ac_res" >&6; }
2470 else
2471 # Is the header compilable?
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2473 $as_echo_n "checking $2 usability... " >&6; }
2474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2475 /* end confdefs.h. */
2476 $4
2477 #include <$2>
2478 _ACEOF
2479 if ac_fn_c_try_compile "$LINENO"; then :
2480 ac_header_compiler=yes
2481 else
2482 ac_header_compiler=no
2483 fi
2484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2486 $as_echo "$ac_header_compiler" >&6; }
2487
2488 # Is the header present?
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2490 $as_echo_n "checking $2 presence... " >&6; }
2491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2492 /* end confdefs.h. */
2493 #include <$2>
2494 _ACEOF
2495 if ac_fn_c_try_cpp "$LINENO"; then :
2496 ac_header_preproc=yes
2497 else
2498 ac_header_preproc=no
2499 fi
2500 rm -f conftest.err conftest.$ac_ext
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2502 $as_echo "$ac_header_preproc" >&6; }
2503
2504 # So? What about this header?
2505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2506 yes:no: )
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2508 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2510 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2511 ;;
2512 no:yes:* )
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2514 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2516 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2518 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2520 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2522 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2523 ;;
2524 esac
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2526 $as_echo_n "checking for $2... " >&6; }
2527 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2528 $as_echo_n "(cached) " >&6
2529 else
2530 eval "$3=\$ac_header_compiler"
2531 fi
2532 eval ac_res=\$$3
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2534 $as_echo "$ac_res" >&6; }
2535 fi
2536 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2537
2538 } # ac_fn_c_check_header_mongrel
2539
2540 # ac_fn_c_try_run LINENO
2541 # ----------------------
2542 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2543 # that executables *can* be run.
2544 ac_fn_c_try_run ()
2545 {
2546 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2547 if { { ac_try="$ac_link"
2548 case "(($ac_try" in
2549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550 *) ac_try_echo=$ac_try;;
2551 esac
2552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2553 $as_echo "$ac_try_echo"; } >&5
2554 (eval "$ac_link") 2>&5
2555 ac_status=$?
2556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2557 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2558 { { case "(($ac_try" in
2559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560 *) ac_try_echo=$ac_try;;
2561 esac
2562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2563 $as_echo "$ac_try_echo"; } >&5
2564 (eval "$ac_try") 2>&5
2565 ac_status=$?
2566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2567 test $ac_status = 0; }; }; then :
2568 ac_retval=0
2569 else
2570 $as_echo "$as_me: program exited with status $ac_status" >&5
2571 $as_echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2573
2574 ac_retval=$ac_status
2575 fi
2576 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2577 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2578 return $ac_retval
2579
2580 } # ac_fn_c_try_run
2581
2582 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2583 # -------------------------------------------------------
2584 # Tests whether HEADER exists and can be compiled using the include files in
2585 # INCLUDES, setting the cache variable VAR accordingly.
2586 ac_fn_c_check_header_compile ()
2587 {
2588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2590 $as_echo_n "checking for $2... " >&6; }
2591 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2592 $as_echo_n "(cached) " >&6
2593 else
2594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2595 /* end confdefs.h. */
2596 $4
2597 #include <$2>
2598 _ACEOF
2599 if ac_fn_c_try_compile "$LINENO"; then :
2600 eval "$3=yes"
2601 else
2602 eval "$3=no"
2603 fi
2604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2605 fi
2606 eval ac_res=\$$3
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2608 $as_echo "$ac_res" >&6; }
2609 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2610
2611 } # ac_fn_c_check_header_compile
2612
2613 # ac_fn_c_try_link LINENO
2614 # -----------------------
2615 # Try to link conftest.$ac_ext, and return whether this succeeded.
2616 ac_fn_c_try_link ()
2617 {
2618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2619 rm -f conftest.$ac_objext conftest$ac_exeext
2620 if { { ac_try="$ac_link"
2621 case "(($ac_try" in
2622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2623 *) ac_try_echo=$ac_try;;
2624 esac
2625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2626 $as_echo "$ac_try_echo"; } >&5
2627 (eval "$ac_link") 2>conftest.err
2628 ac_status=$?
2629 if test -s conftest.err; then
2630 grep -v '^ *+' conftest.err >conftest.er1
2631 cat conftest.er1 >&5
2632 mv -f conftest.er1 conftest.err
2633 fi
2634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2635 test $ac_status = 0; } && {
2636 test -z "$ac_c_werror_flag" ||
2637 test ! -s conftest.err
2638 } && test -s conftest$ac_exeext && {
2639 test "$cross_compiling" = yes ||
2640 $as_test_x conftest$ac_exeext
2641 }; then :
2642 ac_retval=0
2643 else
2644 $as_echo "$as_me: failed program was:" >&5
2645 sed 's/^/| /' conftest.$ac_ext >&5
2646
2647 ac_retval=1
2648 fi
2649 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2650 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2651 # interfere with the next link command; also delete a directory that is
2652 # left behind by Apple's compiler. We do this before executing the actions.
2653 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2654 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2655 return $ac_retval
2656
2657 } # ac_fn_c_try_link
2658
2659 # ac_fn_c_check_func LINENO FUNC VAR
2660 # ----------------------------------
2661 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2662 ac_fn_c_check_func ()
2663 {
2664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2666 $as_echo_n "checking for $2... " >&6; }
2667 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2668 $as_echo_n "(cached) " >&6
2669 else
2670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2671 /* end confdefs.h. */
2672 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2674 #define $2 innocuous_$2
2675
2676 /* System header to define __stub macros and hopefully few prototypes,
2677 which can conflict with char $2 (); below.
2678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2679 <limits.h> exists even on freestanding compilers. */
2680
2681 #ifdef __STDC__
2682 # include <limits.h>
2683 #else
2684 # include <assert.h>
2685 #endif
2686
2687 #undef $2
2688
2689 /* Override any GCC internal prototype to avoid an error.
2690 Use char because int might match the return type of a GCC
2691 builtin and then its argument prototype would still apply. */
2692 #ifdef __cplusplus
2693 extern "C"
2694 #endif
2695 char $2 ();
2696 /* The GNU C library defines this for functions which it implements
2697 to always fail with ENOSYS. Some functions are actually named
2698 something starting with __ and the normal name is an alias. */
2699 #if defined __stub_$2 || defined __stub___$2
2700 choke me
2701 #endif
2702
2703 int
2704 main ()
2705 {
2706 return $2 ();
2707 ;
2708 return 0;
2709 }
2710 _ACEOF
2711 if ac_fn_c_try_link "$LINENO"; then :
2712 eval "$3=yes"
2713 else
2714 eval "$3=no"
2715 fi
2716 rm -f core conftest.err conftest.$ac_objext \
2717 conftest$ac_exeext conftest.$ac_ext
2718 fi
2719 eval ac_res=\$$3
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2721 $as_echo "$ac_res" >&6; }
2722 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2723
2724 } # ac_fn_c_check_func
2725
2726 # ac_fn_c_check_decl LINENO SYMBOL VAR
2727 # ------------------------------------
2728 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2729 ac_fn_c_check_decl ()
2730 {
2731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2733 $as_echo_n "checking whether $2 is declared... " >&6; }
2734 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2735 $as_echo_n "(cached) " >&6
2736 else
2737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2738 /* end confdefs.h. */
2739 $4
2740 int
2741 main ()
2742 {
2743 #ifndef $2
2744 (void) $2;
2745 #endif
2746
2747 ;
2748 return 0;
2749 }
2750 _ACEOF
2751 if ac_fn_c_try_compile "$LINENO"; then :
2752 eval "$3=yes"
2753 else
2754 eval "$3=no"
2755 fi
2756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2757 fi
2758 eval ac_res=\$$3
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2760 $as_echo "$ac_res" >&6; }
2761 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2762
2763 } # ac_fn_c_check_decl
2764
2765 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2766 # --------------------------------------------
2767 # Tries to find the compile-time value of EXPR in a program that includes
2768 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2769 # computed
2770 ac_fn_c_compute_int ()
2771 {
2772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2773 if test "$cross_compiling" = yes; then
2774 # Depending upon the size, compute the lo and hi bounds.
2775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2776 /* end confdefs.h. */
2777 $4
2778 int
2779 main ()
2780 {
2781 static int test_array [1 - 2 * !(($2) >= 0)];
2782 test_array [0] = 0
2783
2784 ;
2785 return 0;
2786 }
2787 _ACEOF
2788 if ac_fn_c_try_compile "$LINENO"; then :
2789 ac_lo=0 ac_mid=0
2790 while :; do
2791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2792 /* end confdefs.h. */
2793 $4
2794 int
2795 main ()
2796 {
2797 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2798 test_array [0] = 0
2799
2800 ;
2801 return 0;
2802 }
2803 _ACEOF
2804 if ac_fn_c_try_compile "$LINENO"; then :
2805 ac_hi=$ac_mid; break
2806 else
2807 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2808 if test $ac_lo -le $ac_mid; then
2809 ac_lo= ac_hi=
2810 break
2811 fi
2812 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2813 fi
2814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2815 done
2816 else
2817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2818 /* end confdefs.h. */
2819 $4
2820 int
2821 main ()
2822 {
2823 static int test_array [1 - 2 * !(($2) < 0)];
2824 test_array [0] = 0
2825
2826 ;
2827 return 0;
2828 }
2829 _ACEOF
2830 if ac_fn_c_try_compile "$LINENO"; then :
2831 ac_hi=-1 ac_mid=-1
2832 while :; do
2833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2834 /* end confdefs.h. */
2835 $4
2836 int
2837 main ()
2838 {
2839 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2840 test_array [0] = 0
2841
2842 ;
2843 return 0;
2844 }
2845 _ACEOF
2846 if ac_fn_c_try_compile "$LINENO"; then :
2847 ac_lo=$ac_mid; break
2848 else
2849 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2850 if test $ac_mid -le $ac_hi; then
2851 ac_lo= ac_hi=
2852 break
2853 fi
2854 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2855 fi
2856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2857 done
2858 else
2859 ac_lo= ac_hi=
2860 fi
2861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2862 fi
2863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2864 # Binary search between lo and hi bounds.
2865 while test "x$ac_lo" != "x$ac_hi"; do
2866 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2868 /* end confdefs.h. */
2869 $4
2870 int
2871 main ()
2872 {
2873 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2874 test_array [0] = 0
2875
2876 ;
2877 return 0;
2878 }
2879 _ACEOF
2880 if ac_fn_c_try_compile "$LINENO"; then :
2881 ac_hi=$ac_mid
2882 else
2883 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2884 fi
2885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2886 done
2887 case $ac_lo in #((
2888 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2889 '') ac_retval=1 ;;
2890 esac
2891 else
2892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2893 /* end confdefs.h. */
2894 $4
2895 static long int longval () { return $2; }
2896 static unsigned long int ulongval () { return $2; }
2897 #include <stdio.h>
2898 #include <stdlib.h>
2899 int
2900 main ()
2901 {
2902
2903 FILE *f = fopen ("conftest.val", "w");
2904 if (! f)
2905 return 1;
2906 if (($2) < 0)
2907 {
2908 long int i = longval ();
2909 if (i != ($2))
2910 return 1;
2911 fprintf (f, "%ld", i);
2912 }
2913 else
2914 {
2915 unsigned long int i = ulongval ();
2916 if (i != ($2))
2917 return 1;
2918 fprintf (f, "%lu", i);
2919 }
2920 /* Do not output a trailing newline, as this causes \r\n confusion
2921 on some platforms. */
2922 return ferror (f) || fclose (f) != 0;
2923
2924 ;
2925 return 0;
2926 }
2927 _ACEOF
2928 if ac_fn_c_try_run "$LINENO"; then :
2929 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2930 else
2931 ac_retval=1
2932 fi
2933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2934 conftest.$ac_objext conftest.beam conftest.$ac_ext
2935 rm -f conftest.val
2936
2937 fi
2938 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2939 return $ac_retval
2940
2941 } # ac_fn_c_compute_int
2942
2943 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2944 # -------------------------------------------
2945 # Tests whether TYPE exists after having included INCLUDES, setting cache
2946 # variable VAR accordingly.
2947 ac_fn_c_check_type ()
2948 {
2949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2951 $as_echo_n "checking for $2... " >&6; }
2952 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2953 $as_echo_n "(cached) " >&6
2954 else
2955 eval "$3=no"
2956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2957 /* end confdefs.h. */
2958 $4
2959 int
2960 main ()
2961 {
2962 if (sizeof ($2))
2963 return 0;
2964 ;
2965 return 0;
2966 }
2967 _ACEOF
2968 if ac_fn_c_try_compile "$LINENO"; then :
2969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2970 /* end confdefs.h. */
2971 $4
2972 int
2973 main ()
2974 {
2975 if (sizeof (($2)))
2976 return 0;
2977 ;
2978 return 0;
2979 }
2980 _ACEOF
2981 if ac_fn_c_try_compile "$LINENO"; then :
2982
2983 else
2984 eval "$3=yes"
2985 fi
2986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2987 fi
2988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2989 fi
2990 eval ac_res=\$$3
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2992 $as_echo "$ac_res" >&6; }
2993 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2994
2995 } # ac_fn_c_check_type
2996 cat >config.log <<_ACEOF
2997 This file contains any messages produced by compilers while
2998 running configure, to aid debugging if configure makes a mistake.
2999
3000 It was created by $as_me, which was
3001 generated by GNU Autoconf 2.64. Invocation command line was
3002
3003 $ $0 $@
3004
3005 _ACEOF
3006 exec 5>>config.log
3007 {
3008 cat <<_ASUNAME
3009 ## --------- ##
3010 ## Platform. ##
3011 ## --------- ##
3012
3013 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3014 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3015 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3016 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3017 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3018
3019 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3020 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3021
3022 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3023 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3024 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3025 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3026 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3027 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3028 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3029
3030 _ASUNAME
3031
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 for as_dir in $PATH
3034 do
3035 IFS=$as_save_IFS
3036 test -z "$as_dir" && as_dir=.
3037 $as_echo "PATH: $as_dir"
3038 done
3039 IFS=$as_save_IFS
3040
3041 } >&5
3042
3043 cat >&5 <<_ACEOF
3044
3045
3046 ## ----------- ##
3047 ## Core tests. ##
3048 ## ----------- ##
3049
3050 _ACEOF
3051
3052
3053 # Keep a trace of the command line.
3054 # Strip out --no-create and --no-recursion so they do not pile up.
3055 # Strip out --silent because we don't want to record it for future runs.
3056 # Also quote any args containing shell meta-characters.
3057 # Make two passes to allow for proper duplicate-argument suppression.
3058 ac_configure_args=
3059 ac_configure_args0=
3060 ac_configure_args1=
3061 ac_must_keep_next=false
3062 for ac_pass in 1 2
3063 do
3064 for ac_arg
3065 do
3066 case $ac_arg in
3067 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3069 | -silent | --silent | --silen | --sile | --sil)
3070 continue ;;
3071 *\'*)
3072 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3073 esac
3074 case $ac_pass in
3075 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3076 2)
3077 as_fn_append ac_configure_args1 " '$ac_arg'"
3078 if test $ac_must_keep_next = true; then
3079 ac_must_keep_next=false # Got value, back to normal.
3080 else
3081 case $ac_arg in
3082 *=* | --config-cache | -C | -disable-* | --disable-* \
3083 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3084 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3085 | -with-* | --with-* | -without-* | --without-* | --x)
3086 case "$ac_configure_args0 " in
3087 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3088 esac
3089 ;;
3090 -* ) ac_must_keep_next=true ;;
3091 esac
3092 fi
3093 as_fn_append ac_configure_args " '$ac_arg'"
3094 ;;
3095 esac
3096 done
3097 done
3098 { ac_configure_args0=; unset ac_configure_args0;}
3099 { ac_configure_args1=; unset ac_configure_args1;}
3100
3101 # When interrupted or exit'd, cleanup temporary files, and complete
3102 # config.log. We remove comments because anyway the quotes in there
3103 # would cause problems or look ugly.
3104 # WARNING: Use '\'' to represent an apostrophe within the trap.
3105 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3106 trap 'exit_status=$?
3107 # Save into config.log some information that might help in debugging.
3108 {
3109 echo
3110
3111 cat <<\_ASBOX
3112 ## ---------------- ##
3113 ## Cache variables. ##
3114 ## ---------------- ##
3115 _ASBOX
3116 echo
3117 # The following way of writing the cache mishandles newlines in values,
3118 (
3119 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3120 eval ac_val=\$$ac_var
3121 case $ac_val in #(
3122 *${as_nl}*)
3123 case $ac_var in #(
3124 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3125 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3126 esac
3127 case $ac_var in #(
3128 _ | IFS | as_nl) ;; #(
3129 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3130 *) { eval $ac_var=; unset $ac_var;} ;;
3131 esac ;;
3132 esac
3133 done
3134 (set) 2>&1 |
3135 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3136 *${as_nl}ac_space=\ *)
3137 sed -n \
3138 "s/'\''/'\''\\\\'\'''\''/g;
3139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3140 ;; #(
3141 *)
3142 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3143 ;;
3144 esac |
3145 sort
3146 )
3147 echo
3148
3149 cat <<\_ASBOX
3150 ## ----------------- ##
3151 ## Output variables. ##
3152 ## ----------------- ##
3153 _ASBOX
3154 echo
3155 for ac_var in $ac_subst_vars
3156 do
3157 eval ac_val=\$$ac_var
3158 case $ac_val in
3159 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3160 esac
3161 $as_echo "$ac_var='\''$ac_val'\''"
3162 done | sort
3163 echo
3164
3165 if test -n "$ac_subst_files"; then
3166 cat <<\_ASBOX
3167 ## ------------------- ##
3168 ## File substitutions. ##
3169 ## ------------------- ##
3170 _ASBOX
3171 echo
3172 for ac_var in $ac_subst_files
3173 do
3174 eval ac_val=\$$ac_var
3175 case $ac_val in
3176 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3177 esac
3178 $as_echo "$ac_var='\''$ac_val'\''"
3179 done | sort
3180 echo
3181 fi
3182
3183 if test -s confdefs.h; then
3184 cat <<\_ASBOX
3185 ## ----------- ##
3186 ## confdefs.h. ##
3187 ## ----------- ##
3188 _ASBOX
3189 echo
3190 cat confdefs.h
3191 echo
3192 fi
3193 test "$ac_signal" != 0 &&
3194 $as_echo "$as_me: caught signal $ac_signal"
3195 $as_echo "$as_me: exit $exit_status"
3196 } >&5
3197 rm -f core *.core core.conftest.* &&
3198 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3199 exit $exit_status
3200 ' 0
3201 for ac_signal in 1 2 13 15; do
3202 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3203 done
3204 ac_signal=0
3205
3206 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3207 rm -f -r conftest* confdefs.h
3208
3209 $as_echo "/* confdefs.h */" > confdefs.h
3210
3211 # Predefined preprocessor variables.
3212
3213 cat >>confdefs.h <<_ACEOF
3214 #define PACKAGE_NAME "$PACKAGE_NAME"
3215 _ACEOF
3216
3217 cat >>confdefs.h <<_ACEOF
3218 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3219 _ACEOF
3220
3221 cat >>confdefs.h <<_ACEOF
3222 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3223 _ACEOF
3224
3225 cat >>confdefs.h <<_ACEOF
3226 #define PACKAGE_STRING "$PACKAGE_STRING"
3227 _ACEOF
3228
3229 cat >>confdefs.h <<_ACEOF
3230 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3231 _ACEOF
3232
3233 cat >>confdefs.h <<_ACEOF
3234 #define PACKAGE_URL "$PACKAGE_URL"
3235 _ACEOF
3236
3237
3238 # Let the site file select an alternate cache file if it wants to.
3239 # Prefer an explicitly selected file to automatically selected ones.
3240 ac_site_file1=NONE
3241 ac_site_file2=NONE
3242 if test -n "$CONFIG_SITE"; then
3243 ac_site_file1=$CONFIG_SITE
3244 elif test "x$prefix" != xNONE; then
3245 ac_site_file1=$prefix/share/config.site
3246 ac_site_file2=$prefix/etc/config.site
3247 else
3248 ac_site_file1=$ac_default_prefix/share/config.site
3249 ac_site_file2=$ac_default_prefix/etc/config.site
3250 fi
3251 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3252 do
3253 test "x$ac_site_file" = xNONE && continue
3254 if test -r "$ac_site_file"; then
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3256 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3257 sed 's/^/| /' "$ac_site_file" >&5
3258 . "$ac_site_file"
3259 fi
3260 done
3261
3262 if test -r "$cache_file"; then
3263 # Some versions of bash will fail to source /dev/null (special
3264 # files actually), so we avoid doing that.
3265 if test -f "$cache_file"; then
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3267 $as_echo "$as_me: loading cache $cache_file" >&6;}
3268 case $cache_file in
3269 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3270 *) . "./$cache_file";;
3271 esac
3272 fi
3273 else
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3275 $as_echo "$as_me: creating cache $cache_file" >&6;}
3276 >$cache_file
3277 fi
3278
3279 as_fn_append ac_func_list " canonicalize_file_name"
3280 as_fn_append ac_func_list " getcwd"
3281 as_fn_append ac_func_list " readlink"
3282 as_fn_append ac_func_list " realpath"
3283 as_fn_append ac_header_list " sys/param.h"
3284 as_fn_append ac_header_list " dirent.h"
3285 as_fn_append ac_func_list " btowc"
3286 as_fn_append ac_func_list " isblank"
3287 as_fn_append ac_func_list " iswctype"
3288 as_fn_append ac_func_list " mbsrtowcs"
3289 as_fn_append ac_func_list " mempcpy"
3290 as_fn_append ac_func_list " wmemchr"
3291 as_fn_append ac_func_list " wmemcpy"
3292 as_fn_append ac_func_list " wmempcpy"
3293 as_fn_append ac_header_list " wctype.h"
3294 gl_fnmatch_required=GNU
3295 as_fn_append ac_header_list " sys/time.h"
3296 as_fn_append ac_header_list " sys/socket.h"
3297 as_fn_append ac_func_list " gettimeofday"
3298 as_fn_append ac_header_list " wchar.h"
3299 as_fn_append ac_header_list " stdint.h"
3300 as_fn_append ac_header_list " inttypes.h"
3301 as_fn_append ac_header_list " unistd.h"
3302 as_fn_append ac_func_list " symlink"
3303 as_fn_append ac_func_list " lstat"
3304 as_fn_append ac_header_list " math.h"
3305 as_fn_append ac_func_list " mbsinit"
3306 as_fn_append ac_func_list " mbrtowc"
3307 as_fn_append ac_header_list " sys/mman.h"
3308 as_fn_append ac_func_list " mprotect"
3309 as_fn_append ac_func_list " link"
3310 as_fn_append ac_header_list " sys/stat.h"
3311 as_fn_append ac_header_list " features.h"
3312 as_fn_append ac_func_list " iswcntrl"
3313 # Check that the precious variables saved in the cache have kept the same
3314 # value.
3315 ac_cache_corrupted=false
3316 for ac_var in $ac_precious_vars; do
3317 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3318 eval ac_new_set=\$ac_env_${ac_var}_set
3319 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3320 eval ac_new_val=\$ac_env_${ac_var}_value
3321 case $ac_old_set,$ac_new_set in
3322 set,)
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3324 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3325 ac_cache_corrupted=: ;;
3326 ,set)
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3328 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3329 ac_cache_corrupted=: ;;
3330 ,);;
3331 *)
3332 if test "x$ac_old_val" != "x$ac_new_val"; then
3333 # differences in whitespace do not lead to failure.
3334 ac_old_val_w=`echo x $ac_old_val`
3335 ac_new_val_w=`echo x $ac_new_val`
3336 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3338 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3339 ac_cache_corrupted=:
3340 else
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3342 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3343 eval $ac_var=\$ac_old_val
3344 fi
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3346 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3348 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3349 fi;;
3350 esac
3351 # Pass precious variables to config.status.
3352 if test "$ac_new_set" = set; then
3353 case $ac_new_val in
3354 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3355 *) ac_arg=$ac_var=$ac_new_val ;;
3356 esac
3357 case " $ac_configure_args " in
3358 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3359 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3360 esac
3361 fi
3362 done
3363 if $ac_cache_corrupted; then
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3367 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3368 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3369 fi
3370 ## -------------------- ##
3371 ## Main body of script. ##
3372 ## -------------------- ##
3373
3374 ac_ext=c
3375 ac_cpp='$CPP $CPPFLAGS'
3376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3379
3380
3381 ac_config_headers="$ac_config_headers config.h:config.in"
3382
3383
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3385 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3386 # Check whether --enable-maintainer-mode was given.
3387 if test "${enable_maintainer_mode+set}" = set; then :
3388 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3389 else
3390 USE_MAINTAINER_MODE=no
3391 fi
3392
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3394 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3395 if test $USE_MAINTAINER_MODE = yes; then
3396 MAINTAINER_MODE_TRUE=
3397 MAINTAINER_MODE_FALSE='#'
3398 else
3399 MAINTAINER_MODE_TRUE='#'
3400 MAINTAINER_MODE_FALSE=
3401 fi
3402
3403 MAINT=$MAINTAINER_MODE_TRUE
3404
3405
3406
3407 ac_ext=c
3408 ac_cpp='$CPP $CPPFLAGS'
3409 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3410 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3411 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3412 if test -n "$ac_tool_prefix"; then
3413 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3414 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416 $as_echo_n "checking for $ac_word... " >&6; }
3417 if test "${ac_cv_prog_CC+set}" = set; then :
3418 $as_echo_n "(cached) " >&6
3419 else
3420 if test -n "$CC"; then
3421 ac_cv_prog_CC="$CC" # Let the user override the test.
3422 else
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 for as_dir in $PATH
3425 do
3426 IFS=$as_save_IFS
3427 test -z "$as_dir" && as_dir=.
3428 for ac_exec_ext in '' $ac_executable_extensions; do
3429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3430 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3432 break 2
3433 fi
3434 done
3435 done
3436 IFS=$as_save_IFS
3437
3438 fi
3439 fi
3440 CC=$ac_cv_prog_CC
3441 if test -n "$CC"; then
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3443 $as_echo "$CC" >&6; }
3444 else
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446 $as_echo "no" >&6; }
3447 fi
3448
3449
3450 fi
3451 if test -z "$ac_cv_prog_CC"; then
3452 ac_ct_CC=$CC
3453 # Extract the first word of "gcc", so it can be a program name with args.
3454 set dummy gcc; ac_word=$2
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456 $as_echo_n "checking for $ac_word... " >&6; }
3457 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3458 $as_echo_n "(cached) " >&6
3459 else
3460 if test -n "$ac_ct_CC"; then
3461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3462 else
3463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3464 for as_dir in $PATH
3465 do
3466 IFS=$as_save_IFS
3467 test -z "$as_dir" && as_dir=.
3468 for ac_exec_ext in '' $ac_executable_extensions; do
3469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3470 ac_cv_prog_ac_ct_CC="gcc"
3471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3472 break 2
3473 fi
3474 done
3475 done
3476 IFS=$as_save_IFS
3477
3478 fi
3479 fi
3480 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3481 if test -n "$ac_ct_CC"; then
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3483 $as_echo "$ac_ct_CC" >&6; }
3484 else
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3486 $as_echo "no" >&6; }
3487 fi
3488
3489 if test "x$ac_ct_CC" = x; then
3490 CC=""
3491 else
3492 case $cross_compiling:$ac_tool_warned in
3493 yes:)
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3496 ac_tool_warned=yes ;;
3497 esac
3498 CC=$ac_ct_CC
3499 fi
3500 else
3501 CC="$ac_cv_prog_CC"
3502 fi
3503
3504 if test -z "$CC"; then
3505 if test -n "$ac_tool_prefix"; then
3506 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3507 set dummy ${ac_tool_prefix}cc; ac_word=$2
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509 $as_echo_n "checking for $ac_word... " >&6; }
3510 if test "${ac_cv_prog_CC+set}" = set; then :
3511 $as_echo_n "(cached) " >&6
3512 else
3513 if test -n "$CC"; then
3514 ac_cv_prog_CC="$CC" # Let the user override the test.
3515 else
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 for as_dir in $PATH
3518 do
3519 IFS=$as_save_IFS
3520 test -z "$as_dir" && as_dir=.
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3523 ac_cv_prog_CC="${ac_tool_prefix}cc"
3524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 break 2
3526 fi
3527 done
3528 done
3529 IFS=$as_save_IFS
3530
3531 fi
3532 fi
3533 CC=$ac_cv_prog_CC
3534 if test -n "$CC"; then
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3536 $as_echo "$CC" >&6; }
3537 else
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539 $as_echo "no" >&6; }
3540 fi
3541
3542
3543 fi
3544 fi
3545 if test -z "$CC"; then
3546 # Extract the first word of "cc", so it can be a program name with args.
3547 set dummy cc; ac_word=$2
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3549 $as_echo_n "checking for $ac_word... " >&6; }
3550 if test "${ac_cv_prog_CC+set}" = set; then :
3551 $as_echo_n "(cached) " >&6
3552 else
3553 if test -n "$CC"; then
3554 ac_cv_prog_CC="$CC" # Let the user override the test.
3555 else
3556 ac_prog_rejected=no
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 for as_dir in $PATH
3559 do
3560 IFS=$as_save_IFS
3561 test -z "$as_dir" && as_dir=.
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3564 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3565 ac_prog_rejected=yes
3566 continue
3567 fi
3568 ac_cv_prog_CC="cc"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 break 2
3571 fi
3572 done
3573 done
3574 IFS=$as_save_IFS
3575
3576 if test $ac_prog_rejected = yes; then
3577 # We found a bogon in the path, so make sure we never use it.
3578 set dummy $ac_cv_prog_CC
3579 shift
3580 if test $# != 0; then
3581 # We chose a different compiler from the bogus one.
3582 # However, it has the same basename, so the bogon will be chosen
3583 # first if we set CC to just the basename; use the full file name.
3584 shift
3585 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3586 fi
3587 fi
3588 fi
3589 fi
3590 CC=$ac_cv_prog_CC
3591 if test -n "$CC"; then
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3593 $as_echo "$CC" >&6; }
3594 else
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596 $as_echo "no" >&6; }
3597 fi
3598
3599
3600 fi
3601 if test -z "$CC"; then
3602 if test -n "$ac_tool_prefix"; then
3603 for ac_prog in cl.exe
3604 do
3605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3606 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3608 $as_echo_n "checking for $ac_word... " >&6; }
3609 if test "${ac_cv_prog_CC+set}" = set; then :
3610 $as_echo_n "(cached) " >&6
3611 else
3612 if test -n "$CC"; then
3613 ac_cv_prog_CC="$CC" # Let the user override the test.
3614 else
3615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 for as_dir in $PATH
3617 do
3618 IFS=$as_save_IFS
3619 test -z "$as_dir" && as_dir=.
3620 for ac_exec_ext in '' $ac_executable_extensions; do
3621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3622 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3624 break 2
3625 fi
3626 done
3627 done
3628 IFS=$as_save_IFS
3629
3630 fi
3631 fi
3632 CC=$ac_cv_prog_CC
3633 if test -n "$CC"; then
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3635 $as_echo "$CC" >&6; }
3636 else
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3638 $as_echo "no" >&6; }
3639 fi
3640
3641
3642 test -n "$CC" && break
3643 done
3644 fi
3645 if test -z "$CC"; then
3646 ac_ct_CC=$CC
3647 for ac_prog in cl.exe
3648 do
3649 # Extract the first word of "$ac_prog", so it can be a program name with args.
3650 set dummy $ac_prog; ac_word=$2
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3652 $as_echo_n "checking for $ac_word... " >&6; }
3653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3654 $as_echo_n "(cached) " >&6
3655 else
3656 if test -n "$ac_ct_CC"; then
3657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3658 else
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3661 do
3662 IFS=$as_save_IFS
3663 test -z "$as_dir" && as_dir=.
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3666 ac_cv_prog_ac_ct_CC="$ac_prog"
3667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3668 break 2
3669 fi
3670 done
3671 done
3672 IFS=$as_save_IFS
3673
3674 fi
3675 fi
3676 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3677 if test -n "$ac_ct_CC"; then
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3679 $as_echo "$ac_ct_CC" >&6; }
3680 else
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682 $as_echo "no" >&6; }
3683 fi
3684
3685
3686 test -n "$ac_ct_CC" && break
3687 done
3688
3689 if test "x$ac_ct_CC" = x; then
3690 CC=""
3691 else
3692 case $cross_compiling:$ac_tool_warned in
3693 yes:)
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3696 ac_tool_warned=yes ;;
3697 esac
3698 CC=$ac_ct_CC
3699 fi
3700 fi
3701
3702 fi
3703
3704
3705 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3707 as_fn_error "no acceptable C compiler found in \$PATH
3708 See \`config.log' for more details." "$LINENO" 5; }
3709
3710 # Provide some information about the compiler.
3711 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3712 set X $ac_compile
3713 ac_compiler=$2
3714 for ac_option in --version -v -V -qversion; do
3715 { { ac_try="$ac_compiler $ac_option >&5"
3716 case "(($ac_try" in
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3719 esac
3720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3721 $as_echo "$ac_try_echo"; } >&5
3722 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3723 ac_status=$?
3724 if test -s conftest.err; then
3725 sed '10a\
3726 ... rest of stderr output deleted ...
3727 10q' conftest.err >conftest.er1
3728 cat conftest.er1 >&5
3729 rm -f conftest.er1 conftest.err
3730 fi
3731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3732 test $ac_status = 0; }
3733 done
3734
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3737 #include <stdio.h>
3738 int
3739 main ()
3740 {
3741 FILE *f = fopen ("conftest.out", "w");
3742 return ferror (f) || fclose (f) != 0;
3743
3744 ;
3745 return 0;
3746 }
3747 _ACEOF
3748 ac_clean_files_save=$ac_clean_files
3749 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3750 # Try to create an executable without -o first, disregard a.out.
3751 # It will help us diagnose broken compilers, and finding out an intuition
3752 # of exeext.
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3754 $as_echo_n "checking for C compiler default output file name... " >&6; }
3755 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3756
3757 # The possible output files:
3758 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3759
3760 ac_rmfiles=
3761 for ac_file in $ac_files
3762 do
3763 case $ac_file in
3764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3765 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3766 esac
3767 done
3768 rm -f $ac_rmfiles
3769
3770 if { { ac_try="$ac_link_default"
3771 case "(($ac_try" in
3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773 *) ac_try_echo=$ac_try;;
3774 esac
3775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3776 $as_echo "$ac_try_echo"; } >&5
3777 (eval "$ac_link_default") 2>&5
3778 ac_status=$?
3779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3780 test $ac_status = 0; }; then :
3781 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3782 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3783 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3784 # so that the user can short-circuit this test for compilers unknown to
3785 # Autoconf.
3786 for ac_file in $ac_files ''
3787 do
3788 test -f "$ac_file" || continue
3789 case $ac_file in
3790 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3791 ;;
3792 [ab].out )
3793 # We found the default executable, but exeext='' is most
3794 # certainly right.
3795 break;;
3796 *.* )
3797 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3798 then :; else
3799 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3800 fi
3801 # We set ac_cv_exeext here because the later test for it is not
3802 # safe: cross compilers may not add the suffix if given an `-o'
3803 # argument, so we may need to know it at that point already.
3804 # Even if this section looks crufty: it has the advantage of
3805 # actually working.
3806 break;;
3807 * )
3808 break;;
3809 esac
3810 done
3811 test "$ac_cv_exeext" = no && ac_cv_exeext=
3812
3813 else
3814 ac_file=''
3815 fi
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3817 $as_echo "$ac_file" >&6; }
3818 if test -z "$ac_file"; then :
3819 $as_echo "$as_me: failed program was:" >&5
3820 sed 's/^/| /' conftest.$ac_ext >&5
3821
3822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3824 { as_fn_set_status 77
3825 as_fn_error "C compiler cannot create executables
3826 See \`config.log' for more details." "$LINENO" 5; }; }
3827 fi
3828 ac_exeext=$ac_cv_exeext
3829
3830 # Check that the compiler produces executables we can run. If not, either
3831 # the compiler is broken, or we cross compile.
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3833 $as_echo_n "checking whether the C compiler works... " >&6; }
3834 # If not cross compiling, check that we can run a simple program.
3835 if test "$cross_compiling" != yes; then
3836 if { ac_try='./$ac_file'
3837 { { case "(($ac_try" in
3838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3840 esac
3841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3842 $as_echo "$ac_try_echo"; } >&5
3843 (eval "$ac_try") 2>&5
3844 ac_status=$?
3845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3846 test $ac_status = 0; }; }; then
3847 cross_compiling=no
3848 else
3849 if test "$cross_compiling" = maybe; then
3850 cross_compiling=yes
3851 else
3852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3854 as_fn_error "cannot run C compiled programs.
3855 If you meant to cross compile, use \`--host'.
3856 See \`config.log' for more details." "$LINENO" 5; }
3857 fi
3858 fi
3859 fi
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3861 $as_echo "yes" >&6; }
3862
3863 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3864 ac_clean_files=$ac_clean_files_save
3865 # Check that the compiler produces executables we can run. If not, either
3866 # the compiler is broken, or we cross compile.
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3868 $as_echo_n "checking whether we are cross compiling... " >&6; }
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3870 $as_echo "$cross_compiling" >&6; }
3871
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3873 $as_echo_n "checking for suffix of executables... " >&6; }
3874 if { { ac_try="$ac_link"
3875 case "(($ac_try" in
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3878 esac
3879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3880 $as_echo "$ac_try_echo"; } >&5
3881 (eval "$ac_link") 2>&5
3882 ac_status=$?
3883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3884 test $ac_status = 0; }; then :
3885 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3886 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3887 # work properly (i.e., refer to `conftest.exe'), while it won't with
3888 # `rm'.
3889 for ac_file in conftest.exe conftest conftest.*; do
3890 test -f "$ac_file" || continue
3891 case $ac_file in
3892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3893 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3894 break;;
3895 * ) break;;
3896 esac
3897 done
3898 else
3899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3901 as_fn_error "cannot compute suffix of executables: cannot compile and link
3902 See \`config.log' for more details." "$LINENO" 5; }
3903 fi
3904 rm -f conftest$ac_cv_exeext
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3906 $as_echo "$ac_cv_exeext" >&6; }
3907
3908 rm -f conftest.$ac_ext
3909 EXEEXT=$ac_cv_exeext
3910 ac_exeext=$EXEEXT
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3912 $as_echo_n "checking for suffix of object files... " >&6; }
3913 if test "${ac_cv_objext+set}" = set; then :
3914 $as_echo_n "(cached) " >&6
3915 else
3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h. */
3918
3919 int
3920 main ()
3921 {
3922
3923 ;
3924 return 0;
3925 }
3926 _ACEOF
3927 rm -f conftest.o conftest.obj
3928 if { { ac_try="$ac_compile"
3929 case "(($ac_try" in
3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3932 esac
3933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3934 $as_echo "$ac_try_echo"; } >&5
3935 (eval "$ac_compile") 2>&5
3936 ac_status=$?
3937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3938 test $ac_status = 0; }; then :
3939 for ac_file in conftest.o conftest.obj conftest.*; do
3940 test -f "$ac_file" || continue;
3941 case $ac_file in
3942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3943 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3944 break;;
3945 esac
3946 done
3947 else
3948 $as_echo "$as_me: failed program was:" >&5
3949 sed 's/^/| /' conftest.$ac_ext >&5
3950
3951 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3953 as_fn_error "cannot compute suffix of object files: cannot compile
3954 See \`config.log' for more details." "$LINENO" 5; }
3955 fi
3956 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3957 fi
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3959 $as_echo "$ac_cv_objext" >&6; }
3960 OBJEXT=$ac_cv_objext
3961 ac_objext=$OBJEXT
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3963 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3964 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3965 $as_echo_n "(cached) " >&6
3966 else
3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h. */
3969
3970 int
3971 main ()
3972 {
3973 #ifndef __GNUC__
3974 choke me
3975 #endif
3976
3977 ;
3978 return 0;
3979 }
3980 _ACEOF
3981 if ac_fn_c_try_compile "$LINENO"; then :
3982 ac_compiler_gnu=yes
3983 else
3984 ac_compiler_gnu=no
3985 fi
3986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3987 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3988
3989 fi
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3991 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3992 if test $ac_compiler_gnu = yes; then
3993 GCC=yes
3994 else
3995 GCC=
3996 fi
3997 ac_test_CFLAGS=${CFLAGS+set}
3998 ac_save_CFLAGS=$CFLAGS
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4000 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4001 if test "${ac_cv_prog_cc_g+set}" = set; then :
4002 $as_echo_n "(cached) " >&6
4003 else
4004 ac_save_c_werror_flag=$ac_c_werror_flag
4005 ac_c_werror_flag=yes
4006 ac_cv_prog_cc_g=no
4007 CFLAGS="-g"
4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009 /* end confdefs.h. */
4010
4011 int
4012 main ()
4013 {
4014
4015 ;
4016 return 0;
4017 }
4018 _ACEOF
4019 if ac_fn_c_try_compile "$LINENO"; then :
4020 ac_cv_prog_cc_g=yes
4021 else
4022 CFLAGS=""
4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h. */
4025
4026 int
4027 main ()
4028 {
4029
4030 ;
4031 return 0;
4032 }
4033 _ACEOF
4034 if ac_fn_c_try_compile "$LINENO"; then :
4035
4036 else
4037 ac_c_werror_flag=$ac_save_c_werror_flag
4038 CFLAGS="-g"
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4041
4042 int
4043 main ()
4044 {
4045
4046 ;
4047 return 0;
4048 }
4049 _ACEOF
4050 if ac_fn_c_try_compile "$LINENO"; then :
4051 ac_cv_prog_cc_g=yes
4052 fi
4053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4054 fi
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 fi
4057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4058 ac_c_werror_flag=$ac_save_c_werror_flag
4059 fi
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4061 $as_echo "$ac_cv_prog_cc_g" >&6; }
4062 if test "$ac_test_CFLAGS" = set; then
4063 CFLAGS=$ac_save_CFLAGS
4064 elif test $ac_cv_prog_cc_g = yes; then
4065 if test "$GCC" = yes; then
4066 CFLAGS="-g -O2"
4067 else
4068 CFLAGS="-g"
4069 fi
4070 else
4071 if test "$GCC" = yes; then
4072 CFLAGS="-O2"
4073 else
4074 CFLAGS=
4075 fi
4076 fi
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4078 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4079 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4080 $as_echo_n "(cached) " >&6
4081 else
4082 ac_cv_prog_cc_c89=no
4083 ac_save_CC=$CC
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4086 #include <stdarg.h>
4087 #include <stdio.h>
4088 #include <sys/types.h>
4089 #include <sys/stat.h>
4090 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4091 struct buf { int x; };
4092 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4093 static char *e (p, i)
4094 char **p;
4095 int i;
4096 {
4097 return p[i];
4098 }
4099 static char *f (char * (*g) (char **, int), char **p, ...)
4100 {
4101 char *s;
4102 va_list v;
4103 va_start (v,p);
4104 s = g (p, va_arg (v,int));
4105 va_end (v);
4106 return s;
4107 }
4108
4109 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4110 function prototypes and stuff, but not '\xHH' hex character constants.
4111 These don't provoke an error unfortunately, instead are silently treated
4112 as 'x'. The following induces an error, until -std is added to get
4113 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4114 array size at least. It's necessary to write '\x00'==0 to get something
4115 that's true only with -std. */
4116 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4117
4118 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4119 inside strings and character constants. */
4120 #define FOO(x) 'x'
4121 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4122
4123 int test (int i, double x);
4124 struct s1 {int (*f) (int a);};
4125 struct s2 {int (*f) (double a);};
4126 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4127 int argc;
4128 char **argv;
4129 int
4130 main ()
4131 {
4132 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4133 ;
4134 return 0;
4135 }
4136 _ACEOF
4137 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4138 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4139 do
4140 CC="$ac_save_CC $ac_arg"
4141 if ac_fn_c_try_compile "$LINENO"; then :
4142 ac_cv_prog_cc_c89=$ac_arg
4143 fi
4144 rm -f core conftest.err conftest.$ac_objext
4145 test "x$ac_cv_prog_cc_c89" != "xno" && break
4146 done
4147 rm -f conftest.$ac_ext
4148 CC=$ac_save_CC
4149
4150 fi
4151 # AC_CACHE_VAL
4152 case "x$ac_cv_prog_cc_c89" in
4153 x)
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4155 $as_echo "none needed" >&6; } ;;
4156 xno)
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4158 $as_echo "unsupported" >&6; } ;;
4159 *)
4160 CC="$CC $ac_cv_prog_cc_c89"
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4162 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4163 esac
4164 if test "x$ac_cv_prog_cc_c89" != xno; then :
4165
4166 fi
4167
4168 ac_ext=c
4169 ac_cpp='$CPP $CPPFLAGS'
4170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4173
4174
4175 ac_ext=c
4176 ac_cpp='$CPP $CPPFLAGS'
4177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4181 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4182 # On Suns, sometimes $CPP names a directory.
4183 if test -n "$CPP" && test -d "$CPP"; then
4184 CPP=
4185 fi
4186 if test -z "$CPP"; then
4187 if test "${ac_cv_prog_CPP+set}" = set; then :
4188 $as_echo_n "(cached) " >&6
4189 else
4190 # Double quotes because CPP needs to be expanded
4191 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4192 do
4193 ac_preproc_ok=false
4194 for ac_c_preproc_warn_flag in '' yes
4195 do
4196 # Use a header file that comes with gcc, so configuring glibc
4197 # with a fresh cross-compiler works.
4198 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4199 # <limits.h> exists even on freestanding compilers.
4200 # On the NeXT, cc -E runs the code through the compiler's parser,
4201 # not just through cpp. "Syntax error" is here to catch this case.
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4204 #ifdef __STDC__
4205 # include <limits.h>
4206 #else
4207 # include <assert.h>
4208 #endif
4209 Syntax error
4210 _ACEOF
4211 if ac_fn_c_try_cpp "$LINENO"; then :
4212
4213 else
4214 # Broken: fails on valid input.
4215 continue
4216 fi
4217 rm -f conftest.err conftest.$ac_ext
4218
4219 # OK, works on sane cases. Now check whether nonexistent headers
4220 # can be detected and how.
4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h. */
4223 #include <ac_nonexistent.h>
4224 _ACEOF
4225 if ac_fn_c_try_cpp "$LINENO"; then :
4226 # Broken: success on invalid input.
4227 continue
4228 else
4229 # Passes both tests.
4230 ac_preproc_ok=:
4231 break
4232 fi
4233 rm -f conftest.err conftest.$ac_ext
4234
4235 done
4236 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4237 rm -f conftest.err conftest.$ac_ext
4238 if $ac_preproc_ok; then :
4239 break
4240 fi
4241
4242 done
4243 ac_cv_prog_CPP=$CPP
4244
4245 fi
4246 CPP=$ac_cv_prog_CPP
4247 else
4248 ac_cv_prog_CPP=$CPP
4249 fi
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4251 $as_echo "$CPP" >&6; }
4252 ac_preproc_ok=false
4253 for ac_c_preproc_warn_flag in '' yes
4254 do
4255 # Use a header file that comes with gcc, so configuring glibc
4256 # with a fresh cross-compiler works.
4257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4258 # <limits.h> exists even on freestanding compilers.
4259 # On the NeXT, cc -E runs the code through the compiler's parser,
4260 # not just through cpp. "Syntax error" is here to catch this case.
4261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4262 /* end confdefs.h. */
4263 #ifdef __STDC__
4264 # include <limits.h>
4265 #else
4266 # include <assert.h>
4267 #endif
4268 Syntax error
4269 _ACEOF
4270 if ac_fn_c_try_cpp "$LINENO"; then :
4271
4272 else
4273 # Broken: fails on valid input.
4274 continue
4275 fi
4276 rm -f conftest.err conftest.$ac_ext
4277
4278 # OK, works on sane cases. Now check whether nonexistent headers
4279 # can be detected and how.
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4282 #include <ac_nonexistent.h>
4283 _ACEOF
4284 if ac_fn_c_try_cpp "$LINENO"; then :
4285 # Broken: success on invalid input.
4286 continue
4287 else
4288 # Passes both tests.
4289 ac_preproc_ok=:
4290 break
4291 fi
4292 rm -f conftest.err conftest.$ac_ext
4293
4294 done
4295 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4296 rm -f conftest.err conftest.$ac_ext
4297 if $ac_preproc_ok; then :
4298
4299 else
4300 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4301 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4302 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4303 See \`config.log' for more details." "$LINENO" 5; }
4304 fi
4305
4306 ac_ext=c
4307 ac_cpp='$CPP $CPPFLAGS'
4308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4311
4312
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4314 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4315 if test "${ac_cv_path_GREP+set}" = set; then :
4316 $as_echo_n "(cached) " >&6
4317 else
4318 if test -z "$GREP"; then
4319 ac_path_GREP_found=false
4320 # Loop through the user's path and test for each of PROGNAME-LIST
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4323 do
4324 IFS=$as_save_IFS
4325 test -z "$as_dir" && as_dir=.
4326 for ac_prog in grep ggrep; do
4327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4329 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4330 # Check for GNU ac_path_GREP and select it if it is found.
4331 # Check for GNU $ac_path_GREP
4332 case `"$ac_path_GREP" --version 2>&1` in
4333 *GNU*)
4334 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4335 *)
4336 ac_count=0
4337 $as_echo_n 0123456789 >"conftest.in"
4338 while :
4339 do
4340 cat "conftest.in" "conftest.in" >"conftest.tmp"
4341 mv "conftest.tmp" "conftest.in"
4342 cp "conftest.in" "conftest.nl"
4343 $as_echo 'GREP' >> "conftest.nl"
4344 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4345 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4346 as_fn_arith $ac_count + 1 && ac_count=$as_val
4347 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4348 # Best one so far, save it but keep looking for a better one
4349 ac_cv_path_GREP="$ac_path_GREP"
4350 ac_path_GREP_max=$ac_count
4351 fi
4352 # 10*(2^10) chars as input seems more than enough
4353 test $ac_count -gt 10 && break
4354 done
4355 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4356 esac
4357
4358 $ac_path_GREP_found && break 3
4359 done
4360 done
4361 done
4362 IFS=$as_save_IFS
4363 if test -z "$ac_cv_path_GREP"; then
4364 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4365 fi
4366 else
4367 ac_cv_path_GREP=$GREP
4368 fi
4369
4370 fi
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4372 $as_echo "$ac_cv_path_GREP" >&6; }
4373 GREP="$ac_cv_path_GREP"
4374
4375
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4377 $as_echo_n "checking for egrep... " >&6; }
4378 if test "${ac_cv_path_EGREP+set}" = set; then :
4379 $as_echo_n "(cached) " >&6
4380 else
4381 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4382 then ac_cv_path_EGREP="$GREP -E"
4383 else
4384 if test -z "$EGREP"; then
4385 ac_path_EGREP_found=false
4386 # Loop through the user's path and test for each of PROGNAME-LIST
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4389 do
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
4392 for ac_prog in egrep; do
4393 for ac_exec_ext in '' $ac_executable_extensions; do
4394 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4395 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4396 # Check for GNU ac_path_EGREP and select it if it is found.
4397 # Check for GNU $ac_path_EGREP
4398 case `"$ac_path_EGREP" --version 2>&1` in
4399 *GNU*)
4400 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4401 *)
4402 ac_count=0
4403 $as_echo_n 0123456789 >"conftest.in"
4404 while :
4405 do
4406 cat "conftest.in" "conftest.in" >"conftest.tmp"
4407 mv "conftest.tmp" "conftest.in"
4408 cp "conftest.in" "conftest.nl"
4409 $as_echo 'EGREP' >> "conftest.nl"
4410 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4411 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4412 as_fn_arith $ac_count + 1 && ac_count=$as_val
4413 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4414 # Best one so far, save it but keep looking for a better one
4415 ac_cv_path_EGREP="$ac_path_EGREP"
4416 ac_path_EGREP_max=$ac_count
4417 fi
4418 # 10*(2^10) chars as input seems more than enough
4419 test $ac_count -gt 10 && break
4420 done
4421 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4422 esac
4423
4424 $ac_path_EGREP_found && break 3
4425 done
4426 done
4427 done
4428 IFS=$as_save_IFS
4429 if test -z "$ac_cv_path_EGREP"; then
4430 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4431 fi
4432 else
4433 ac_cv_path_EGREP=$EGREP
4434 fi
4435
4436 fi
4437 fi
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4439 $as_echo "$ac_cv_path_EGREP" >&6; }
4440 EGREP="$ac_cv_path_EGREP"
4441
4442
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4444 $as_echo_n "checking for ANSI C header files... " >&6; }
4445 if test "${ac_cv_header_stdc+set}" = set; then :
4446 $as_echo_n "(cached) " >&6
4447 else
4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h. */
4450 #include <stdlib.h>
4451 #include <stdarg.h>
4452 #include <string.h>
4453 #include <float.h>
4454
4455 int
4456 main ()
4457 {
4458
4459 ;
4460 return 0;
4461 }
4462 _ACEOF
4463 if ac_fn_c_try_compile "$LINENO"; then :
4464 ac_cv_header_stdc=yes
4465 else
4466 ac_cv_header_stdc=no
4467 fi
4468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4469
4470 if test $ac_cv_header_stdc = yes; then
4471 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4473 /* end confdefs.h. */
4474 #include <string.h>
4475
4476 _ACEOF
4477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4478 $EGREP "memchr" >/dev/null 2>&1; then :
4479
4480 else
4481 ac_cv_header_stdc=no
4482 fi
4483 rm -f conftest*
4484
4485 fi
4486
4487 if test $ac_cv_header_stdc = yes; then
4488 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h. */
4491 #include <stdlib.h>
4492
4493 _ACEOF
4494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4495 $EGREP "free" >/dev/null 2>&1; then :
4496
4497 else
4498 ac_cv_header_stdc=no
4499 fi
4500 rm -f conftest*
4501
4502 fi
4503
4504 if test $ac_cv_header_stdc = yes; then
4505 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4506 if test "$cross_compiling" = yes; then :
4507 :
4508 else
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4511 #include <ctype.h>
4512 #include <stdlib.h>
4513 #if ((' ' & 0x0FF) == 0x020)
4514 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4515 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4516 #else
4517 # define ISLOWER(c) \
4518 (('a' <= (c) && (c) <= 'i') \
4519 || ('j' <= (c) && (c) <= 'r') \
4520 || ('s' <= (c) && (c) <= 'z'))
4521 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4522 #endif
4523
4524 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4525 int
4526 main ()
4527 {
4528 int i;
4529 for (i = 0; i < 256; i++)
4530 if (XOR (islower (i), ISLOWER (i))
4531 || toupper (i) != TOUPPER (i))
4532 return 2;
4533 return 0;
4534 }
4535 _ACEOF
4536 if ac_fn_c_try_run "$LINENO"; then :
4537
4538 else
4539 ac_cv_header_stdc=no
4540 fi
4541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4542 conftest.$ac_objext conftest.beam conftest.$ac_ext
4543 fi
4544
4545 fi
4546 fi
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4548 $as_echo "$ac_cv_header_stdc" >&6; }
4549 if test $ac_cv_header_stdc = yes; then
4550
4551 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4552
4553 fi
4554
4555 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4556 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4557 inttypes.h stdint.h unistd.h
4558 do :
4559 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4560 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4561 "
4562 eval as_val=\$$as_ac_Header
4563 if test "x$as_val" = x""yes; then :
4564 cat >>confdefs.h <<_ACEOF
4565 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4566 _ACEOF
4567
4568 fi
4569
4570 done
4571
4572
4573
4574 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4575 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4576 MINIX=yes
4577 else
4578 MINIX=
4579 fi
4580
4581
4582 if test "$MINIX" = yes; then
4583
4584 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4585
4586
4587 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4588
4589
4590 $as_echo "#define _MINIX 1" >>confdefs.h
4591
4592
4593 $as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h
4594
4595 fi
4596
4597
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4599 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4600 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4601 $as_echo_n "(cached) " >&6
4602 else
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4605
4606 # define __EXTENSIONS__ 1
4607 $ac_includes_default
4608 int
4609 main ()
4610 {
4611
4612 ;
4613 return 0;
4614 }
4615 _ACEOF
4616 if ac_fn_c_try_compile "$LINENO"; then :
4617 ac_cv_safe_to_define___extensions__=yes
4618 else
4619 ac_cv_safe_to_define___extensions__=no
4620 fi
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4622 fi
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4624 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4625 test $ac_cv_safe_to_define___extensions__ = yes &&
4626 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4627
4628 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4629
4630 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4631
4632 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4633
4634 $as_echo "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
4635
4636 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4637
4638 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4639
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4641 $as_echo_n "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4642 if test "${ac_cv_should_define__xopen_source+set}" = set; then :
4643 $as_echo_n "(cached) " >&6
4644 else
4645 ac_cv_should_define__xopen_source=no
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647 /* end confdefs.h. */
4648
4649 #include <wchar.h>
4650 mbstate_t x;
4651 int
4652 main ()
4653 {
4654
4655 ;
4656 return 0;
4657 }
4658 _ACEOF
4659 if ac_fn_c_try_compile "$LINENO"; then :
4660
4661 else
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4664
4665 #define _XOPEN_SOURCE 500
4666 #include <wchar.h>
4667 mbstate_t x;
4668 int
4669 main ()
4670 {
4671
4672 ;
4673 return 0;
4674 }
4675 _ACEOF
4676 if ac_fn_c_try_compile "$LINENO"; then :
4677 ac_cv_should_define__xopen_source=yes
4678 fi
4679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4680 fi
4681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4682 fi
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4684 $as_echo "$ac_cv_should_define__xopen_source" >&6; }
4685 test $ac_cv_should_define__xopen_source = yes &&
4686 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4687
4688
4689
4690
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4692 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4693 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4694 $as_echo_n "(cached) " >&6
4695 else
4696
4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h. */
4699
4700 #ifdef __ACK__
4701 Amsterdam
4702 #endif
4703
4704 _ACEOF
4705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4706 $EGREP "Amsterdam" >/dev/null 2>&1; then :
4707 gl_cv_c_amsterdam_compiler=yes
4708 else
4709 gl_cv_c_amsterdam_compiler=no
4710 fi
4711 rm -f conftest*
4712
4713
4714 fi
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4716 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4717 if test -z "$AR"; then
4718 if test $gl_cv_c_amsterdam_compiler = yes; then
4719 AR='cc -c.a'
4720 if test -z "$ARFLAGS"; then
4721 ARFLAGS='-o'
4722 fi
4723 else
4724 if test -n "$ac_tool_prefix"; then
4725 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4726 set dummy ${ac_tool_prefix}ar; ac_word=$2
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4728 $as_echo_n "checking for $ac_word... " >&6; }
4729 if test "${ac_cv_prog_AR+set}" = set; then :
4730 $as_echo_n "(cached) " >&6
4731 else
4732 if test -n "$AR"; then
4733 ac_cv_prog_AR="$AR" # Let the user override the test.
4734 else
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 for as_dir in $PATH
4737 do
4738 IFS=$as_save_IFS
4739 test -z "$as_dir" && as_dir=.
4740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4742 ac_cv_prog_AR="${ac_tool_prefix}ar"
4743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4744 break 2
4745 fi
4746 done
4747 done
4748 IFS=$as_save_IFS
4749
4750 fi
4751 fi
4752 AR=$ac_cv_prog_AR
4753 if test -n "$AR"; then
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4755 $as_echo "$AR" >&6; }
4756 else
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4758 $as_echo "no" >&6; }
4759 fi
4760
4761
4762 fi
4763 if test -z "$ac_cv_prog_AR"; then
4764 ac_ct_AR=$AR
4765 # Extract the first word of "ar", so it can be a program name with args.
4766 set dummy ar; ac_word=$2
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768 $as_echo_n "checking for $ac_word... " >&6; }
4769 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4770 $as_echo_n "(cached) " >&6
4771 else
4772 if test -n "$ac_ct_AR"; then
4773 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4774 else
4775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4776 for as_dir in $PATH
4777 do
4778 IFS=$as_save_IFS
4779 test -z "$as_dir" && as_dir=.
4780 for ac_exec_ext in '' $ac_executable_extensions; do
4781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4782 ac_cv_prog_ac_ct_AR="ar"
4783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4784 break 2
4785 fi
4786 done
4787 done
4788 IFS=$as_save_IFS
4789
4790 fi
4791 fi
4792 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4793 if test -n "$ac_ct_AR"; then
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4795 $as_echo "$ac_ct_AR" >&6; }
4796 else
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4798 $as_echo "no" >&6; }
4799 fi
4800
4801 if test "x$ac_ct_AR" = x; then
4802 AR="ar"
4803 else
4804 case $cross_compiling:$ac_tool_warned in
4805 yes:)
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4808 ac_tool_warned=yes ;;
4809 esac
4810 AR=$ac_ct_AR
4811 fi
4812 else
4813 AR="$ac_cv_prog_AR"
4814 fi
4815
4816 if test -z "$ARFLAGS"; then
4817 ARFLAGS='cr'
4818 fi
4819 fi
4820 else
4821 if test -z "$ARFLAGS"; then
4822 ARFLAGS='cr'
4823 fi
4824 fi
4825
4826
4827 if test -z "$RANLIB"; then
4828 if test $gl_cv_c_amsterdam_compiler = yes; then
4829 RANLIB=':'
4830 else
4831 if test -n "$ac_tool_prefix"; then
4832 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4833 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4835 $as_echo_n "checking for $ac_word... " >&6; }
4836 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4837 $as_echo_n "(cached) " >&6
4838 else
4839 if test -n "$RANLIB"; then
4840 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4841 else
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843 for as_dir in $PATH
4844 do
4845 IFS=$as_save_IFS
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4849 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 break 2
4852 fi
4853 done
4854 done
4855 IFS=$as_save_IFS
4856
4857 fi
4858 fi
4859 RANLIB=$ac_cv_prog_RANLIB
4860 if test -n "$RANLIB"; then
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4862 $as_echo "$RANLIB" >&6; }
4863 else
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865 $as_echo "no" >&6; }
4866 fi
4867
4868
4869 fi
4870 if test -z "$ac_cv_prog_RANLIB"; then
4871 ac_ct_RANLIB=$RANLIB
4872 # Extract the first word of "ranlib", so it can be a program name with args.
4873 set dummy ranlib; ac_word=$2
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4875 $as_echo_n "checking for $ac_word... " >&6; }
4876 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4877 $as_echo_n "(cached) " >&6
4878 else
4879 if test -n "$ac_ct_RANLIB"; then
4880 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4881 else
4882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883 for as_dir in $PATH
4884 do
4885 IFS=$as_save_IFS
4886 test -z "$as_dir" && as_dir=.
4887 for ac_exec_ext in '' $ac_executable_extensions; do
4888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4889 ac_cv_prog_ac_ct_RANLIB="ranlib"
4890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4891 break 2
4892 fi
4893 done
4894 done
4895 IFS=$as_save_IFS
4896
4897 fi
4898 fi
4899 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4900 if test -n "$ac_ct_RANLIB"; then
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4902 $as_echo "$ac_ct_RANLIB" >&6; }
4903 else
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4905 $as_echo "no" >&6; }
4906 fi
4907
4908 if test "x$ac_ct_RANLIB" = x; then
4909 RANLIB=":"
4910 else
4911 case $cross_compiling:$ac_tool_warned in
4912 yes:)
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4915 ac_tool_warned=yes ;;
4916 esac
4917 RANLIB=$ac_ct_RANLIB
4918 fi
4919 else
4920 RANLIB="$ac_cv_prog_RANLIB"
4921 fi
4922
4923 fi
4924 fi
4925
4926
4927
4928
4929
4930
4931
4932
4933 ac_aux_dir=
4934 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4935 for ac_t in install-sh install.sh shtool; do
4936 if test -f "$ac_dir/$ac_t"; then
4937 ac_aux_dir=$ac_dir
4938 ac_install_sh="$ac_aux_dir/$ac_t -c"
4939 break 2
4940 fi
4941 done
4942 done
4943 if test -z "$ac_aux_dir"; then
4944 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4945 fi
4946
4947 # These three variables are undocumented and unsupported,
4948 # and are intended to be withdrawn in a future Autoconf release.
4949 # They can cause serious problems if a builder's source tree is in a directory
4950 # whose full name contains unusual characters.
4951 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4952 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4953 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4954
4955
4956 # Make sure we can run config.sub.
4957 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4958 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4959
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4961 $as_echo_n "checking build system type... " >&6; }
4962 if test "${ac_cv_build+set}" = set; then :
4963 $as_echo_n "(cached) " >&6
4964 else
4965 ac_build_alias=$build_alias
4966 test "x$ac_build_alias" = x &&
4967 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4968 test "x$ac_build_alias" = x &&
4969 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4970 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4971 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4972
4973 fi
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4975 $as_echo "$ac_cv_build" >&6; }
4976 case $ac_cv_build in
4977 *-*-*) ;;
4978 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4979 esac
4980 build=$ac_cv_build
4981 ac_save_IFS=$IFS; IFS='-'
4982 set x $ac_cv_build
4983 shift
4984 build_cpu=$1
4985 build_vendor=$2
4986 shift; shift
4987 # Remember, the first character of IFS is used to create $*,
4988 # except with old shells:
4989 build_os=$*
4990 IFS=$ac_save_IFS
4991 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4992
4993
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4995 $as_echo_n "checking host system type... " >&6; }
4996 if test "${ac_cv_host+set}" = set; then :
4997 $as_echo_n "(cached) " >&6
4998 else
4999 if test "x$host_alias" = x; then
5000 ac_cv_host=$ac_cv_build
5001 else
5002 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5003 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5004 fi
5005
5006 fi
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5008 $as_echo "$ac_cv_host" >&6; }
5009 case $ac_cv_host in
5010 *-*-*) ;;
5011 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5012 esac
5013 host=$ac_cv_host
5014 ac_save_IFS=$IFS; IFS='-'
5015 set x $ac_cv_host
5016 shift
5017 host_cpu=$1
5018 host_vendor=$2
5019 shift; shift
5020 # Remember, the first character of IFS is used to create $*,
5021 # except with old shells:
5022 host_os=$*
5023 IFS=$ac_save_IFS
5024 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5025
5026
5027
5028
5029
5030 # IEEE behaviour is the default on all CPUs except Alpha and SH
5031 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
5032 # and the GCC 4.1.2 manual).
5033 case "$host_cpu" in
5034 alpha*)
5035 # On Alpha systems, a compiler option provides the behaviour.
5036 # See the ieee(3) manual page, also available at
5037 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
5038 if test -n "$GCC"; then
5039 # GCC has the option -mieee.
5040 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
5041 CPPFLAGS="$CPPFLAGS -mieee"
5042 else
5043 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
5044 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
5045 CPPFLAGS="$CPPFLAGS -ieee"
5046 fi
5047 ;;
5048 sh*)
5049 if test -n "$GCC"; then
5050 # GCC has the option -mieee.
5051 CPPFLAGS="$CPPFLAGS -mieee"
5052 fi
5053 ;;
5054 esac
5055
5056 # Check whether --enable-largefile was given.
5057 if test "${enable_largefile+set}" = set; then :
5058 enableval=$enable_largefile;
5059 fi
5060
5061 if test "$enable_largefile" != no; then
5062
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5064 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5065 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5066 $as_echo_n "(cached) " >&6
5067 else
5068 ac_cv_sys_largefile_CC=no
5069 if test "$GCC" != yes; then
5070 ac_save_CC=$CC
5071 while :; do
5072 # IRIX 6.2 and later do not support large files by default,
5073 # so use the C compiler's -n32 option if that helps.
5074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075 /* end confdefs.h. */
5076 #include <sys/types.h>
5077 /* Check that off_t can represent 2**63 - 1 correctly.
5078 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5079 since some C++ compilers masquerading as C compilers
5080 incorrectly reject 9223372036854775807. */
5081 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5082 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5083 && LARGE_OFF_T % 2147483647 == 1)
5084 ? 1 : -1];
5085 int
5086 main ()
5087 {
5088
5089 ;
5090 return 0;
5091 }
5092 _ACEOF
5093 if ac_fn_c_try_compile "$LINENO"; then :
5094 break
5095 fi
5096 rm -f core conftest.err conftest.$ac_objext
5097 CC="$CC -n32"
5098 if ac_fn_c_try_compile "$LINENO"; then :
5099 ac_cv_sys_largefile_CC=' -n32'; break
5100 fi
5101 rm -f core conftest.err conftest.$ac_objext
5102 break
5103 done
5104 CC=$ac_save_CC
5105 rm -f conftest.$ac_ext
5106 fi
5107 fi
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5109 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5110 if test "$ac_cv_sys_largefile_CC" != no; then
5111 CC=$CC$ac_cv_sys_largefile_CC
5112 fi
5113
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5115 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5116 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5117 $as_echo_n "(cached) " >&6
5118 else
5119 while :; do
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5122 #include <sys/types.h>
5123 /* Check that off_t can represent 2**63 - 1 correctly.
5124 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5125 since some C++ compilers masquerading as C compilers
5126 incorrectly reject 9223372036854775807. */
5127 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5128 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5129 && LARGE_OFF_T % 2147483647 == 1)
5130 ? 1 : -1];
5131 int
5132 main ()
5133 {
5134
5135 ;
5136 return 0;
5137 }
5138 _ACEOF
5139 if ac_fn_c_try_compile "$LINENO"; then :
5140 ac_cv_sys_file_offset_bits=no; break
5141 fi
5142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144 /* end confdefs.h. */
5145 #define _FILE_OFFSET_BITS 64
5146 #include <sys/types.h>
5147 /* Check that off_t can represent 2**63 - 1 correctly.
5148 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5149 since some C++ compilers masquerading as C compilers
5150 incorrectly reject 9223372036854775807. */
5151 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5152 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5153 && LARGE_OFF_T % 2147483647 == 1)
5154 ? 1 : -1];
5155 int
5156 main ()
5157 {
5158
5159 ;
5160 return 0;
5161 }
5162 _ACEOF
5163 if ac_fn_c_try_compile "$LINENO"; then :
5164 ac_cv_sys_file_offset_bits=64; break
5165 fi
5166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5167 ac_cv_sys_file_offset_bits=unknown
5168 break
5169 done
5170 fi
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5172 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5173 case $ac_cv_sys_file_offset_bits in #(
5174 no | unknown) ;;
5175 *)
5176 cat >>confdefs.h <<_ACEOF
5177 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5178 _ACEOF
5179 ;;
5180 esac
5181 rm -rf conftest*
5182 if test $ac_cv_sys_file_offset_bits = unknown; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5184 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5185 if test "${ac_cv_sys_large_files+set}" = set; then :
5186 $as_echo_n "(cached) " >&6
5187 else
5188 while :; do
5189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190 /* end confdefs.h. */
5191 #include <sys/types.h>
5192 /* Check that off_t can represent 2**63 - 1 correctly.
5193 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5194 since some C++ compilers masquerading as C compilers
5195 incorrectly reject 9223372036854775807. */
5196 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5197 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5198 && LARGE_OFF_T % 2147483647 == 1)
5199 ? 1 : -1];
5200 int
5201 main ()
5202 {
5203
5204 ;
5205 return 0;
5206 }
5207 _ACEOF
5208 if ac_fn_c_try_compile "$LINENO"; then :
5209 ac_cv_sys_large_files=no; break
5210 fi
5211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213 /* end confdefs.h. */
5214 #define _LARGE_FILES 1
5215 #include <sys/types.h>
5216 /* Check that off_t can represent 2**63 - 1 correctly.
5217 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5218 since some C++ compilers masquerading as C compilers
5219 incorrectly reject 9223372036854775807. */
5220 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5221 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5222 && LARGE_OFF_T % 2147483647 == 1)
5223 ? 1 : -1];
5224 int
5225 main ()
5226 {
5227
5228 ;
5229 return 0;
5230 }
5231 _ACEOF
5232 if ac_fn_c_try_compile "$LINENO"; then :
5233 ac_cv_sys_large_files=1; break
5234 fi
5235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5236 ac_cv_sys_large_files=unknown
5237 break
5238 done
5239 fi
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5241 $as_echo "$ac_cv_sys_large_files" >&6; }
5242 case $ac_cv_sys_large_files in #(
5243 no | unknown) ;;
5244 *)
5245 cat >>confdefs.h <<_ACEOF
5246 #define _LARGE_FILES $ac_cv_sys_large_files
5247 _ACEOF
5248 ;;
5249 esac
5250 rm -rf conftest*
5251 fi
5252
5253
5254 $as_echo "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
5255
5256 fi
5257
5258
5259
5260 # Code from module absolute-header:
5261 # Code from module alloca:
5262 # Code from module alloca-opt:
5263 # Code from module canonicalize-lgpl:
5264 # Code from module chdir:
5265 # Code from module configmake:
5266 # Code from module dirent:
5267 # Code from module dirfd:
5268 # Code from module dirname-lgpl:
5269 # Code from module dosname:
5270 # Code from module double-slash-root:
5271 # Code from module errno:
5272 # Code from module extensions:
5273
5274 # Code from module extern-inline:
5275 # Code from module float:
5276 # Code from module fnmatch:
5277 # Code from module fnmatch-gnu:
5278 # Code from module fpieee:
5279
5280 # Code from module fpucw:
5281 # Code from module frexp:
5282 # Code from module frexpl:
5283 # Code from module gettimeofday:
5284 # Code from module include_next:
5285 # Code from module inttypes:
5286 # Code from module inttypes-incomplete:
5287 # Code from module isnand-nolibm:
5288 # Code from module isnanl-nolibm:
5289 # Code from module largefile:
5290
5291 # Code from module localcharset:
5292 # Code from module lstat:
5293 # Code from module malloc-posix:
5294 # Code from module malloca:
5295 # Code from module math:
5296 # Code from module mbrtowc:
5297 # Code from module mbsinit:
5298 # Code from module mbsrtowcs:
5299 # Code from module memchr:
5300 # Code from module memmem:
5301 # Code from module memmem-simple:
5302 # Code from module multiarch:
5303 # Code from module nocrash:
5304 # Code from module pathmax:
5305 # Code from module readlink:
5306 # Code from module rename:
5307 # Code from module rmdir:
5308 # Code from module same-inode:
5309 # Code from module snippet/_Noreturn:
5310 # Code from module snippet/arg-nonnull:
5311 # Code from module snippet/c++defs:
5312 # Code from module snippet/warn-on-use:
5313 # Code from module ssize_t:
5314 # Code from module stat:
5315 # Code from module stdbool:
5316 # Code from module stddef:
5317 # Code from module stdint:
5318 # Code from module stdio:
5319 # Code from module stdlib:
5320 # Code from module streq:
5321 # Code from module string:
5322 # Code from module strnlen1:
5323 # Code from module strstr:
5324 # Code from module strstr-simple:
5325 # Code from module strtok_r:
5326 # Code from module sys_stat:
5327 # Code from module sys_time:
5328 # Code from module sys_types:
5329 # Code from module time:
5330 # Code from module unistd:
5331 # Code from module update-copyright:
5332 # Code from module verify:
5333 # Code from module wchar:
5334 # Code from module wctype-h:
5335
5336 ac_ext=c
5337 ac_cpp='$CPP $CPPFLAGS'
5338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5341 if test -n "$ac_tool_prefix"; then
5342 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5343 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5345 $as_echo_n "checking for $ac_word... " >&6; }
5346 if test "${ac_cv_prog_CC+set}" = set; then :
5347 $as_echo_n "(cached) " >&6
5348 else
5349 if test -n "$CC"; then
5350 ac_cv_prog_CC="$CC" # Let the user override the test.
5351 else
5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5353 for as_dir in $PATH
5354 do
5355 IFS=$as_save_IFS
5356 test -z "$as_dir" && as_dir=.
5357 for ac_exec_ext in '' $ac_executable_extensions; do
5358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5359 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5361 break 2
5362 fi
5363 done
5364 done
5365 IFS=$as_save_IFS
5366
5367 fi
5368 fi
5369 CC=$ac_cv_prog_CC
5370 if test -n "$CC"; then
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5372 $as_echo "$CC" >&6; }
5373 else
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5375 $as_echo "no" >&6; }
5376 fi
5377
5378
5379 fi
5380 if test -z "$ac_cv_prog_CC"; then
5381 ac_ct_CC=$CC
5382 # Extract the first word of "gcc", so it can be a program name with args.
5383 set dummy gcc; ac_word=$2
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5385 $as_echo_n "checking for $ac_word... " >&6; }
5386 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5387 $as_echo_n "(cached) " >&6
5388 else
5389 if test -n "$ac_ct_CC"; then
5390 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5391 else
5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5393 for as_dir in $PATH
5394 do
5395 IFS=$as_save_IFS
5396 test -z "$as_dir" && as_dir=.
5397 for ac_exec_ext in '' $ac_executable_extensions; do
5398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5399 ac_cv_prog_ac_ct_CC="gcc"
5400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5401 break 2
5402 fi
5403 done
5404 done
5405 IFS=$as_save_IFS
5406
5407 fi
5408 fi
5409 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5410 if test -n "$ac_ct_CC"; then
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5412 $as_echo "$ac_ct_CC" >&6; }
5413 else
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5415 $as_echo "no" >&6; }
5416 fi
5417
5418 if test "x$ac_ct_CC" = x; then
5419 CC=""
5420 else
5421 case $cross_compiling:$ac_tool_warned in
5422 yes:)
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5425 ac_tool_warned=yes ;;
5426 esac
5427 CC=$ac_ct_CC
5428 fi
5429 else
5430 CC="$ac_cv_prog_CC"
5431 fi
5432
5433 if test -z "$CC"; then
5434 if test -n "$ac_tool_prefix"; then
5435 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5436 set dummy ${ac_tool_prefix}cc; ac_word=$2
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5438 $as_echo_n "checking for $ac_word... " >&6; }
5439 if test "${ac_cv_prog_CC+set}" = set; then :
5440 $as_echo_n "(cached) " >&6
5441 else
5442 if test -n "$CC"; then
5443 ac_cv_prog_CC="$CC" # Let the user override the test.
5444 else
5445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446 for as_dir in $PATH
5447 do
5448 IFS=$as_save_IFS
5449 test -z "$as_dir" && as_dir=.
5450 for ac_exec_ext in '' $ac_executable_extensions; do
5451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5452 ac_cv_prog_CC="${ac_tool_prefix}cc"
5453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5454 break 2
5455 fi
5456 done
5457 done
5458 IFS=$as_save_IFS
5459
5460 fi
5461 fi
5462 CC=$ac_cv_prog_CC
5463 if test -n "$CC"; then
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5465 $as_echo "$CC" >&6; }
5466 else
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468 $as_echo "no" >&6; }
5469 fi
5470
5471
5472 fi
5473 fi
5474 if test -z "$CC"; then
5475 # Extract the first word of "cc", so it can be a program name with args.
5476 set dummy cc; ac_word=$2
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478 $as_echo_n "checking for $ac_word... " >&6; }
5479 if test "${ac_cv_prog_CC+set}" = set; then :
5480 $as_echo_n "(cached) " >&6
5481 else
5482 if test -n "$CC"; then
5483 ac_cv_prog_CC="$CC" # Let the user override the test.
5484 else
5485 ac_prog_rejected=no
5486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5487 for as_dir in $PATH
5488 do
5489 IFS=$as_save_IFS
5490 test -z "$as_dir" && as_dir=.
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5493 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5494 ac_prog_rejected=yes
5495 continue
5496 fi
5497 ac_cv_prog_CC="cc"
5498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5499 break 2
5500 fi
5501 done
5502 done
5503 IFS=$as_save_IFS
5504
5505 if test $ac_prog_rejected = yes; then
5506 # We found a bogon in the path, so make sure we never use it.
5507 set dummy $ac_cv_prog_CC
5508 shift
5509 if test $# != 0; then
5510 # We chose a different compiler from the bogus one.
5511 # However, it has the same basename, so the bogon will be chosen
5512 # first if we set CC to just the basename; use the full file name.
5513 shift
5514 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5515 fi
5516 fi
5517 fi
5518 fi
5519 CC=$ac_cv_prog_CC
5520 if test -n "$CC"; then
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5522 $as_echo "$CC" >&6; }
5523 else
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; }
5526 fi
5527
5528
5529 fi
5530 if test -z "$CC"; then
5531 if test -n "$ac_tool_prefix"; then
5532 for ac_prog in cl.exe
5533 do
5534 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5535 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5537 $as_echo_n "checking for $ac_word... " >&6; }
5538 if test "${ac_cv_prog_CC+set}" = set; then :
5539 $as_echo_n "(cached) " >&6
5540 else
5541 if test -n "$CC"; then
5542 ac_cv_prog_CC="$CC" # Let the user override the test.
5543 else
5544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545 for as_dir in $PATH
5546 do
5547 IFS=$as_save_IFS
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5551 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 break 2
5554 fi
5555 done
5556 done
5557 IFS=$as_save_IFS
5558
5559 fi
5560 fi
5561 CC=$ac_cv_prog_CC
5562 if test -n "$CC"; then
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5564 $as_echo "$CC" >&6; }
5565 else
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5567 $as_echo "no" >&6; }
5568 fi
5569
5570
5571 test -n "$CC" && break
5572 done
5573 fi
5574 if test -z "$CC"; then
5575 ac_ct_CC=$CC
5576 for ac_prog in cl.exe
5577 do
5578 # Extract the first word of "$ac_prog", so it can be a program name with args.
5579 set dummy $ac_prog; ac_word=$2
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5581 $as_echo_n "checking for $ac_word... " >&6; }
5582 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5583 $as_echo_n "(cached) " >&6
5584 else
5585 if test -n "$ac_ct_CC"; then
5586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5587 else
5588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 for as_dir in $PATH
5590 do
5591 IFS=$as_save_IFS
5592 test -z "$as_dir" && as_dir=.
5593 for ac_exec_ext in '' $ac_executable_extensions; do
5594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5595 ac_cv_prog_ac_ct_CC="$ac_prog"
5596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5597 break 2
5598 fi
5599 done
5600 done
5601 IFS=$as_save_IFS
5602
5603 fi
5604 fi
5605 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5606 if test -n "$ac_ct_CC"; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5608 $as_echo "$ac_ct_CC" >&6; }
5609 else
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611 $as_echo "no" >&6; }
5612 fi
5613
5614
5615 test -n "$ac_ct_CC" && break
5616 done
5617
5618 if test "x$ac_ct_CC" = x; then
5619 CC=""
5620 else
5621 case $cross_compiling:$ac_tool_warned in
5622 yes:)
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5625 ac_tool_warned=yes ;;
5626 esac
5627 CC=$ac_ct_CC
5628 fi
5629 fi
5630
5631 fi
5632
5633
5634 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5635 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5636 as_fn_error "no acceptable C compiler found in \$PATH
5637 See \`config.log' for more details." "$LINENO" 5; }
5638
5639 # Provide some information about the compiler.
5640 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5641 set X $ac_compile
5642 ac_compiler=$2
5643 for ac_option in --version -v -V -qversion; do
5644 { { ac_try="$ac_compiler $ac_option >&5"
5645 case "(($ac_try" in
5646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647 *) ac_try_echo=$ac_try;;
5648 esac
5649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5650 $as_echo "$ac_try_echo"; } >&5
5651 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5652 ac_status=$?
5653 if test -s conftest.err; then
5654 sed '10a\
5655 ... rest of stderr output deleted ...
5656 10q' conftest.err >conftest.er1
5657 cat conftest.er1 >&5
5658 rm -f conftest.er1 conftest.err
5659 fi
5660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5661 test $ac_status = 0; }
5662 done
5663
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5665 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5666 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5667 $as_echo_n "(cached) " >&6
5668 else
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5671
5672 int
5673 main ()
5674 {
5675 #ifndef __GNUC__
5676 choke me
5677 #endif
5678
5679 ;
5680 return 0;
5681 }
5682 _ACEOF
5683 if ac_fn_c_try_compile "$LINENO"; then :
5684 ac_compiler_gnu=yes
5685 else
5686 ac_compiler_gnu=no
5687 fi
5688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5690
5691 fi
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5693 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5694 if test $ac_compiler_gnu = yes; then
5695 GCC=yes
5696 else
5697 GCC=
5698 fi
5699 ac_test_CFLAGS=${CFLAGS+set}
5700 ac_save_CFLAGS=$CFLAGS
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5702 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5703 if test "${ac_cv_prog_cc_g+set}" = set; then :
5704 $as_echo_n "(cached) " >&6
5705 else
5706 ac_save_c_werror_flag=$ac_c_werror_flag
5707 ac_c_werror_flag=yes
5708 ac_cv_prog_cc_g=no
5709 CFLAGS="-g"
5710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711 /* end confdefs.h. */
5712
5713 int
5714 main ()
5715 {
5716
5717 ;
5718 return 0;
5719 }
5720 _ACEOF
5721 if ac_fn_c_try_compile "$LINENO"; then :
5722 ac_cv_prog_cc_g=yes
5723 else
5724 CFLAGS=""
5725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5726 /* end confdefs.h. */
5727
5728 int
5729 main ()
5730 {
5731
5732 ;
5733 return 0;
5734 }
5735 _ACEOF
5736 if ac_fn_c_try_compile "$LINENO"; then :
5737
5738 else
5739 ac_c_werror_flag=$ac_save_c_werror_flag
5740 CFLAGS="-g"
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h. */
5743
5744 int
5745 main ()
5746 {
5747
5748 ;
5749 return 0;
5750 }
5751 _ACEOF
5752 if ac_fn_c_try_compile "$LINENO"; then :
5753 ac_cv_prog_cc_g=yes
5754 fi
5755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5756 fi
5757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5758 fi
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760 ac_c_werror_flag=$ac_save_c_werror_flag
5761 fi
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5763 $as_echo "$ac_cv_prog_cc_g" >&6; }
5764 if test "$ac_test_CFLAGS" = set; then
5765 CFLAGS=$ac_save_CFLAGS
5766 elif test $ac_cv_prog_cc_g = yes; then
5767 if test "$GCC" = yes; then
5768 CFLAGS="-g -O2"
5769 else
5770 CFLAGS="-g"
5771 fi
5772 else
5773 if test "$GCC" = yes; then
5774 CFLAGS="-O2"
5775 else
5776 CFLAGS=
5777 fi
5778 fi
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5780 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5781 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5782 $as_echo_n "(cached) " >&6
5783 else
5784 ac_cv_prog_cc_c89=no
5785 ac_save_CC=$CC
5786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5787 /* end confdefs.h. */
5788 #include <stdarg.h>
5789 #include <stdio.h>
5790 #include <sys/types.h>
5791 #include <sys/stat.h>
5792 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5793 struct buf { int x; };
5794 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5795 static char *e (p, i)
5796 char **p;
5797 int i;
5798 {
5799 return p[i];
5800 }
5801 static char *f (char * (*g) (char **, int), char **p, ...)
5802 {
5803 char *s;
5804 va_list v;
5805 va_start (v,p);
5806 s = g (p, va_arg (v,int));
5807 va_end (v);
5808 return s;
5809 }
5810
5811 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5812 function prototypes and stuff, but not '\xHH' hex character constants.
5813 These don't provoke an error unfortunately, instead are silently treated
5814 as 'x'. The following induces an error, until -std is added to get
5815 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5816 array size at least. It's necessary to write '\x00'==0 to get something
5817 that's true only with -std. */
5818 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5819
5820 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5821 inside strings and character constants. */
5822 #define FOO(x) 'x'
5823 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5824
5825 int test (int i, double x);
5826 struct s1 {int (*f) (int a);};
5827 struct s2 {int (*f) (double a);};
5828 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5829 int argc;
5830 char **argv;
5831 int
5832 main ()
5833 {
5834 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5835 ;
5836 return 0;
5837 }
5838 _ACEOF
5839 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5840 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5841 do
5842 CC="$ac_save_CC $ac_arg"
5843 if ac_fn_c_try_compile "$LINENO"; then :
5844 ac_cv_prog_cc_c89=$ac_arg
5845 fi
5846 rm -f core conftest.err conftest.$ac_objext
5847 test "x$ac_cv_prog_cc_c89" != "xno" && break
5848 done
5849 rm -f conftest.$ac_ext
5850 CC=$ac_save_CC
5851
5852 fi
5853 # AC_CACHE_VAL
5854 case "x$ac_cv_prog_cc_c89" in
5855 x)
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5857 $as_echo "none needed" >&6; } ;;
5858 xno)
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5860 $as_echo "unsupported" >&6; } ;;
5861 *)
5862 CC="$CC $ac_cv_prog_cc_c89"
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5864 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5865 esac
5866 if test "x$ac_cv_prog_cc_c89" != xno; then :
5867
5868 fi
5869
5870 ac_ext=c
5871 ac_cpp='$CPP $CPPFLAGS'
5872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5875
5876
5877 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5878
5879
5880 ac_aux_dir=
5881 for ac_dir in ../.. "$srcdir"/../..; do
5882 for ac_t in install-sh install.sh shtool; do
5883 if test -f "$ac_dir/$ac_t"; then
5884 ac_aux_dir=$ac_dir
5885 ac_install_sh="$ac_aux_dir/$ac_t -c"
5886 break 2
5887 fi
5888 done
5889 done
5890 if test -z "$ac_aux_dir"; then
5891 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5892 fi
5893
5894 # These three variables are undocumented and unsupported,
5895 # and are intended to be withdrawn in a future Autoconf release.
5896 # They can cause serious problems if a builder's source tree is in a directory
5897 # whose full name contains unusual characters.
5898 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5899 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5900 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5901
5902
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5904 $as_echo_n "checking target system type... " >&6; }
5905 if test "${ac_cv_target+set}" = set; then :
5906 $as_echo_n "(cached) " >&6
5907 else
5908 if test "x$target_alias" = x; then
5909 ac_cv_target=$ac_cv_host
5910 else
5911 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5912 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5913 fi
5914
5915 fi
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5917 $as_echo "$ac_cv_target" >&6; }
5918 case $ac_cv_target in
5919 *-*-*) ;;
5920 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5921 esac
5922 target=$ac_cv_target
5923 ac_save_IFS=$IFS; IFS='-'
5924 set x $ac_cv_target
5925 shift
5926 target_cpu=$1
5927 target_vendor=$2
5928 shift; shift
5929 # Remember, the first character of IFS is used to create $*,
5930 # except with old shells:
5931 target_os=$*
5932 IFS=$ac_save_IFS
5933 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5934
5935
5936 # The aliases save the names the user supplied, while $host etc.
5937 # will get canonicalized.
5938 test -n "$target_alias" &&
5939 test "$program_prefix$program_suffix$program_transform_name" = \
5940 NONENONEs,x,x, &&
5941 program_prefix=${target_alias}-
5942
5943
5944
5945
5946
5947
5948
5949 LIBC_FATAL_STDERR_=1
5950 export LIBC_FATAL_STDERR_
5951
5952 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5953 # for constant arguments. Useless!
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5955 $as_echo_n "checking for working alloca.h... " >&6; }
5956 if test "${ac_cv_working_alloca_h+set}" = set; then :
5957 $as_echo_n "(cached) " >&6
5958 else
5959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5960 /* end confdefs.h. */
5961 #include <alloca.h>
5962 int
5963 main ()
5964 {
5965 char *p = (char *) alloca (2 * sizeof (int));
5966 if (p) return 0;
5967 ;
5968 return 0;
5969 }
5970 _ACEOF
5971 if ac_fn_c_try_link "$LINENO"; then :
5972 ac_cv_working_alloca_h=yes
5973 else
5974 ac_cv_working_alloca_h=no
5975 fi
5976 rm -f core conftest.err conftest.$ac_objext \
5977 conftest$ac_exeext conftest.$ac_ext
5978 fi
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5980 $as_echo "$ac_cv_working_alloca_h" >&6; }
5981 if test $ac_cv_working_alloca_h = yes; then
5982
5983 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5984
5985 fi
5986
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5988 $as_echo_n "checking for alloca... " >&6; }
5989 if test "${ac_cv_func_alloca_works+set}" = set; then :
5990 $as_echo_n "(cached) " >&6
5991 else
5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h. */
5994 #ifdef __GNUC__
5995 # define alloca __builtin_alloca
5996 #else
5997 # ifdef _MSC_VER
5998 # include <malloc.h>
5999 # define alloca _alloca
6000 # else
6001 # ifdef HAVE_ALLOCA_H
6002 # include <alloca.h>
6003 # else
6004 # ifdef _AIX
6005 #pragma alloca
6006 # else
6007 # ifndef alloca /* predefined by HP cc +Olibcalls */
6008 char *alloca ();
6009 # endif
6010 # endif
6011 # endif
6012 # endif
6013 #endif
6014
6015 int
6016 main ()
6017 {
6018 char *p = (char *) alloca (1);
6019 if (p) return 0;
6020 ;
6021 return 0;
6022 }
6023 _ACEOF
6024 if ac_fn_c_try_link "$LINENO"; then :
6025 ac_cv_func_alloca_works=yes
6026 else
6027 ac_cv_func_alloca_works=no
6028 fi
6029 rm -f core conftest.err conftest.$ac_objext \
6030 conftest$ac_exeext conftest.$ac_ext
6031 fi
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6033 $as_echo "$ac_cv_func_alloca_works" >&6; }
6034
6035 if test $ac_cv_func_alloca_works = yes; then
6036
6037 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
6038
6039 else
6040 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6041 # that cause trouble. Some versions do not even contain alloca or
6042 # contain a buggy version. If you still want to use their alloca,
6043 # use ar to extract alloca.o from them instead of compiling alloca.c.
6044
6045
6046
6047
6048
6049 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
6050
6051 $as_echo "#define C_ALLOCA 1" >>confdefs.h
6052
6053
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
6055 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
6056 if test "${ac_cv_os_cray+set}" = set; then :
6057 $as_echo_n "(cached) " >&6
6058 else
6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060 /* end confdefs.h. */
6061 #if defined CRAY && ! defined CRAY2
6062 webecray
6063 #else
6064 wenotbecray
6065 #endif
6066
6067 _ACEOF
6068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6069 $EGREP "webecray" >/dev/null 2>&1; then :
6070 ac_cv_os_cray=yes
6071 else
6072 ac_cv_os_cray=no
6073 fi
6074 rm -f conftest*
6075
6076 fi
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6078 $as_echo "$ac_cv_os_cray" >&6; }
6079 if test $ac_cv_os_cray = yes; then
6080 for ac_func in _getb67 GETB67 getb67; do
6081 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6082 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6083 eval as_val=\$$as_ac_var
6084 if test "x$as_val" = x""yes; then :
6085
6086 cat >>confdefs.h <<_ACEOF
6087 #define CRAY_STACKSEG_END $ac_func
6088 _ACEOF
6089
6090 break
6091 fi
6092
6093 done
6094 fi
6095
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6097 $as_echo_n "checking stack direction for C alloca... " >&6; }
6098 if test "${ac_cv_c_stack_direction+set}" = set; then :
6099 $as_echo_n "(cached) " >&6
6100 else
6101 if test "$cross_compiling" = yes; then :
6102 ac_cv_c_stack_direction=0
6103 else
6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6105 /* end confdefs.h. */
6106 $ac_includes_default
6107 int
6108 find_stack_direction (int *addr, int depth)
6109 {
6110 int dir, dummy = 0;
6111 if (! addr)
6112 addr = &dummy;
6113 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6114 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6115 return dir + dummy;
6116 }
6117
6118 int
6119 main (int argc, char **argv)
6120 {
6121 return find_stack_direction (0, argc + !argv + 20) < 0;
6122 }
6123 _ACEOF
6124 if ac_fn_c_try_run "$LINENO"; then :
6125 ac_cv_c_stack_direction=1
6126 else
6127 ac_cv_c_stack_direction=-1
6128 fi
6129 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6130 conftest.$ac_objext conftest.beam conftest.$ac_ext
6131 fi
6132
6133 fi
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6135 $as_echo "$ac_cv_c_stack_direction" >&6; }
6136 cat >>confdefs.h <<_ACEOF
6137 #define STACK_DIRECTION $ac_cv_c_stack_direction
6138 _ACEOF
6139
6140
6141 fi
6142
6143
6144 GNULIB__EXIT=0;
6145 GNULIB_ATOLL=0;
6146 GNULIB_CALLOC_POSIX=0;
6147 GNULIB_CANONICALIZE_FILE_NAME=0;
6148 GNULIB_GETLOADAVG=0;
6149 GNULIB_GETSUBOPT=0;
6150 GNULIB_GRANTPT=0;
6151 GNULIB_MALLOC_POSIX=0;
6152 GNULIB_MBTOWC=0;
6153 GNULIB_MKDTEMP=0;
6154 GNULIB_MKOSTEMP=0;
6155 GNULIB_MKOSTEMPS=0;
6156 GNULIB_MKSTEMP=0;
6157 GNULIB_MKSTEMPS=0;
6158 GNULIB_POSIX_OPENPT=0;
6159 GNULIB_PTSNAME=0;
6160 GNULIB_PTSNAME_R=0;
6161 GNULIB_PUTENV=0;
6162 GNULIB_QSORT_R=0;
6163 GNULIB_RANDOM=0;
6164 GNULIB_RANDOM_R=0;
6165 GNULIB_REALLOC_POSIX=0;
6166 GNULIB_REALPATH=0;
6167 GNULIB_RPMATCH=0;
6168 GNULIB_SECURE_GETENV=0;
6169 GNULIB_SETENV=0;
6170 GNULIB_STRTOD=0;
6171 GNULIB_STRTOLL=0;
6172 GNULIB_STRTOULL=0;
6173 GNULIB_SYSTEM_POSIX=0;
6174 GNULIB_UNLOCKPT=0;
6175 GNULIB_UNSETENV=0;
6176 GNULIB_WCTOMB=0;
6177 HAVE__EXIT=1;
6178 HAVE_ATOLL=1;
6179 HAVE_CANONICALIZE_FILE_NAME=1;
6180 HAVE_DECL_GETLOADAVG=1;
6181 HAVE_GETSUBOPT=1;
6182 HAVE_GRANTPT=1;
6183 HAVE_MKDTEMP=1;
6184 HAVE_MKOSTEMP=1;
6185 HAVE_MKOSTEMPS=1;
6186 HAVE_MKSTEMP=1;
6187 HAVE_MKSTEMPS=1;
6188 HAVE_POSIX_OPENPT=1;
6189 HAVE_PTSNAME=1;
6190 HAVE_PTSNAME_R=1;
6191 HAVE_RANDOM=1;
6192 HAVE_RANDOM_H=1;
6193 HAVE_RANDOM_R=1;
6194 HAVE_REALPATH=1;
6195 HAVE_RPMATCH=1;
6196 HAVE_SECURE_GETENV=1;
6197 HAVE_SETENV=1;
6198 HAVE_DECL_SETENV=1;
6199 HAVE_STRTOD=1;
6200 HAVE_STRTOLL=1;
6201 HAVE_STRTOULL=1;
6202 HAVE_STRUCT_RANDOM_DATA=1;
6203 HAVE_SYS_LOADAVG_H=0;
6204 HAVE_UNLOCKPT=1;
6205 HAVE_DECL_UNSETENV=1;
6206 REPLACE_CALLOC=0;
6207 REPLACE_CANONICALIZE_FILE_NAME=0;
6208 REPLACE_MALLOC=0;
6209 REPLACE_MBTOWC=0;
6210 REPLACE_MKSTEMP=0;
6211 REPLACE_PTSNAME=0;
6212 REPLACE_PTSNAME_R=0;
6213 REPLACE_PUTENV=0;
6214 REPLACE_QSORT_R=0;
6215 REPLACE_RANDOM_R=0;
6216 REPLACE_REALLOC=0;
6217 REPLACE_REALPATH=0;
6218 REPLACE_SETENV=0;
6219 REPLACE_STRTOD=0;
6220 REPLACE_UNSETENV=0;
6221 REPLACE_WCTOMB=0;
6222
6223
6224
6225
6226 for ac_func in $ac_func_list
6227 do :
6228 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6229 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6230 eval as_val=\$$as_ac_var
6231 if test "x$as_val" = x""yes; then :
6232 cat >>confdefs.h <<_ACEOF
6233 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6234 _ACEOF
6235
6236 fi
6237 done
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
6248 $as_echo_n "checking whether // is distinct from /... " >&6; }
6249 if test "${gl_cv_double_slash_root+set}" = set; then :
6250 $as_echo_n "(cached) " >&6
6251 else
6252 if test x"$cross_compiling" = xyes ; then
6253 # When cross-compiling, there is no way to tell whether // is special
6254 # short of a list of hosts. However, the only known hosts to date
6255 # that have a distinct // are Apollo DomainOS (too old to port to),
6256 # Cygwin, and z/OS. If anyone knows of another system for which // has
6257 # special semantics and is distinct from /, please report it to
6258 # <bug-gnulib@gnu.org>.
6259 case $host in
6260 *-cygwin | i370-ibm-openedition)
6261 gl_cv_double_slash_root=yes ;;
6262 *)
6263 # Be optimistic and assume that / and // are the same when we
6264 # don't know.
6265 gl_cv_double_slash_root='unknown, assuming no' ;;
6266 esac
6267 else
6268 set x `ls -di / // 2>/dev/null`
6269 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
6270 gl_cv_double_slash_root=no
6271 else
6272 gl_cv_double_slash_root=yes
6273 fi
6274 fi
6275 fi
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
6277 $as_echo "$gl_cv_double_slash_root" >&6; }
6278 if test "$gl_cv_double_slash_root" = yes; then
6279
6280 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
6281
6282 fi
6283
6284
6285
6286
6287
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
6289 $as_echo_n "checking whether realpath works... " >&6; }
6290 if test "${gl_cv_func_realpath_works+set}" = set; then :
6291 $as_echo_n "(cached) " >&6
6292 else
6293
6294 touch conftest.a
6295 mkdir conftest.d
6296 if test "$cross_compiling" = yes; then :
6297 case "$host_os" in
6298 # Guess yes on glibc systems.
6299 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
6300 # If we don't know, assume the worst.
6301 *) gl_cv_func_realpath_works="guessing no" ;;
6302 esac
6303
6304 else
6305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6306 /* end confdefs.h. */
6307
6308
6309
6310 #include <stdlib.h>
6311 #if defined __MACH__ && defined __APPLE__
6312 /* Avoid a crash on Mac OS X. */
6313 #include <mach/mach.h>
6314 #include <mach/mach_error.h>
6315 #include <mach/thread_status.h>
6316 #include <mach/exception.h>
6317 #include <mach/task.h>
6318 #include <pthread.h>
6319 /* The exception port on which our thread listens. */
6320 static mach_port_t our_exception_port;
6321 /* The main function of the thread listening for exceptions of type
6322 EXC_BAD_ACCESS. */
6323 static void *
6324 mach_exception_thread (void *arg)
6325 {
6326 /* Buffer for a message to be received. */
6327 struct {
6328 mach_msg_header_t head;
6329 mach_msg_body_t msgh_body;
6330 char data[1024];
6331 } msg;
6332 mach_msg_return_t retval;
6333 /* Wait for a message on the exception port. */
6334 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
6335 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
6336 if (retval != MACH_MSG_SUCCESS)
6337 abort ();
6338 exit (1);
6339 }
6340 static void
6341 nocrash_init (void)
6342 {
6343 mach_port_t self = mach_task_self ();
6344 /* Allocate a port on which the thread shall listen for exceptions. */
6345 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
6346 == KERN_SUCCESS) {
6347 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
6348 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
6349 MACH_MSG_TYPE_MAKE_SEND)
6350 == KERN_SUCCESS) {
6351 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
6352 for us. */
6353 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
6354 /* Create the thread listening on the exception port. */
6355 pthread_attr_t attr;
6356 pthread_t thread;
6357 if (pthread_attr_init (&attr) == 0
6358 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
6359 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
6360 pthread_attr_destroy (&attr);
6361 /* Replace the exception port info for these exceptions with our own.
6362 Note that we replace the exception port for the entire task, not only
6363 for a particular thread. This has the effect that when our exception
6364 port gets the message, the thread specific exception port has already
6365 been asked, and we don't need to bother about it.
6366 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
6367 task_set_exception_ports (self, mask, our_exception_port,
6368 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
6369 }
6370 }
6371 }
6372 }
6373 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
6374 /* Avoid a crash on native Windows. */
6375 #define WIN32_LEAN_AND_MEAN
6376 #include <windows.h>
6377 #include <winerror.h>
6378 static LONG WINAPI
6379 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
6380 {
6381 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
6382 {
6383 case EXCEPTION_ACCESS_VIOLATION:
6384 case EXCEPTION_IN_PAGE_ERROR:
6385 case EXCEPTION_STACK_OVERFLOW:
6386 case EXCEPTION_GUARD_PAGE:
6387 case EXCEPTION_PRIV_INSTRUCTION:
6388 case EXCEPTION_ILLEGAL_INSTRUCTION:
6389 case EXCEPTION_DATATYPE_MISALIGNMENT:
6390 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
6391 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
6392 exit (1);
6393 }
6394 return EXCEPTION_CONTINUE_SEARCH;
6395 }
6396 static void
6397 nocrash_init (void)
6398 {
6399 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
6400 }
6401 #else
6402 /* Avoid a crash on POSIX systems. */
6403 #include <signal.h>
6404 /* A POSIX signal handler. */
6405 static void
6406 exception_handler (int sig)
6407 {
6408 exit (1);
6409 }
6410 static void
6411 nocrash_init (void)
6412 {
6413 #ifdef SIGSEGV
6414 signal (SIGSEGV, exception_handler);
6415 #endif
6416 #ifdef SIGBUS
6417 signal (SIGBUS, exception_handler);
6418 #endif
6419 }
6420 #endif
6421
6422 #include <stdlib.h>
6423 #include <string.h>
6424
6425 int
6426 main ()
6427 {
6428
6429 int result = 0;
6430 {
6431 char *name = realpath ("conftest.a", NULL);
6432 if (!(name && *name == '/'))
6433 result |= 1;
6434 }
6435 {
6436 char *name = realpath ("conftest.b/../conftest.a", NULL);
6437 if (name != NULL)
6438 result |= 2;
6439 }
6440 {
6441 char *name = realpath ("conftest.a/", NULL);
6442 if (name != NULL)
6443 result |= 4;
6444 }
6445 {
6446 char *name1 = realpath (".", NULL);
6447 char *name2 = realpath ("conftest.d//./..", NULL);
6448 if (strcmp (name1, name2) != 0)
6449 result |= 8;
6450 }
6451 return result;
6452
6453 ;
6454 return 0;
6455 }
6456
6457 _ACEOF
6458 if ac_fn_c_try_run "$LINENO"; then :
6459 gl_cv_func_realpath_works=yes
6460 else
6461 gl_cv_func_realpath_works=no
6462 fi
6463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6464 conftest.$ac_objext conftest.beam conftest.$ac_ext
6465 fi
6466
6467 rm -rf conftest.a conftest.d
6468
6469 fi
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
6471 $as_echo "$gl_cv_func_realpath_works" >&6; }
6472 case "$gl_cv_func_realpath_works" in
6473 *yes)
6474
6475 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
6476
6477 ;;
6478 esac
6479
6480
6481
6482
6483 for ac_header in $ac_header_list
6484 do :
6485 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6486 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6487 "
6488 eval as_val=\$$as_ac_Header
6489 if test "x$as_val" = x""yes; then :
6490 cat >>confdefs.h <<_ACEOF
6491 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6492 _ACEOF
6493
6494 fi
6495
6496 done
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508 GNULIB_CHDIR=0;
6509 GNULIB_CHOWN=0;
6510 GNULIB_CLOSE=0;
6511 GNULIB_DUP=0;
6512 GNULIB_DUP2=0;
6513 GNULIB_DUP3=0;
6514 GNULIB_ENVIRON=0;
6515 GNULIB_EUIDACCESS=0;
6516 GNULIB_FACCESSAT=0;
6517 GNULIB_FCHDIR=0;
6518 GNULIB_FCHOWNAT=0;
6519 GNULIB_FDATASYNC=0;
6520 GNULIB_FSYNC=0;
6521 GNULIB_FTRUNCATE=0;
6522 GNULIB_GETCWD=0;
6523 GNULIB_GETDOMAINNAME=0;
6524 GNULIB_GETDTABLESIZE=0;
6525 GNULIB_GETGROUPS=0;
6526 GNULIB_GETHOSTNAME=0;
6527 GNULIB_GETLOGIN=0;
6528 GNULIB_GETLOGIN_R=0;
6529 GNULIB_GETPAGESIZE=0;
6530 GNULIB_GETUSERSHELL=0;
6531 GNULIB_GROUP_MEMBER=0;
6532 GNULIB_ISATTY=0;
6533 GNULIB_LCHOWN=0;
6534 GNULIB_LINK=0;
6535 GNULIB_LINKAT=0;
6536 GNULIB_LSEEK=0;
6537 GNULIB_PIPE=0;
6538 GNULIB_PIPE2=0;
6539 GNULIB_PREAD=0;
6540 GNULIB_PWRITE=0;
6541 GNULIB_READ=0;
6542 GNULIB_READLINK=0;
6543 GNULIB_READLINKAT=0;
6544 GNULIB_RMDIR=0;
6545 GNULIB_SETHOSTNAME=0;
6546 GNULIB_SLEEP=0;
6547 GNULIB_SYMLINK=0;
6548 GNULIB_SYMLINKAT=0;
6549 GNULIB_TTYNAME_R=0;
6550 GNULIB_UNISTD_H_NONBLOCKING=0;
6551 GNULIB_UNISTD_H_SIGPIPE=0;
6552 GNULIB_UNLINK=0;
6553 GNULIB_UNLINKAT=0;
6554 GNULIB_USLEEP=0;
6555 GNULIB_WRITE=0;
6556 HAVE_CHOWN=1;
6557 HAVE_DUP2=1;
6558 HAVE_DUP3=1;
6559 HAVE_EUIDACCESS=1;
6560 HAVE_FACCESSAT=1;
6561 HAVE_FCHDIR=1;
6562 HAVE_FCHOWNAT=1;
6563 HAVE_FDATASYNC=1;
6564 HAVE_FSYNC=1;
6565 HAVE_FTRUNCATE=1;
6566 HAVE_GETDTABLESIZE=1;
6567 HAVE_GETGROUPS=1;
6568 HAVE_GETHOSTNAME=1;
6569 HAVE_GETLOGIN=1;
6570 HAVE_GETPAGESIZE=1;
6571 HAVE_GROUP_MEMBER=1;
6572 HAVE_LCHOWN=1;
6573 HAVE_LINK=1;
6574 HAVE_LINKAT=1;
6575 HAVE_PIPE=1;
6576 HAVE_PIPE2=1;
6577 HAVE_PREAD=1;
6578 HAVE_PWRITE=1;
6579 HAVE_READLINK=1;
6580 HAVE_READLINKAT=1;
6581 HAVE_SETHOSTNAME=1;
6582 HAVE_SLEEP=1;
6583 HAVE_SYMLINK=1;
6584 HAVE_SYMLINKAT=1;
6585 HAVE_UNLINKAT=1;
6586 HAVE_USLEEP=1;
6587 HAVE_DECL_ENVIRON=1;
6588 HAVE_DECL_FCHDIR=1;
6589 HAVE_DECL_FDATASYNC=1;
6590 HAVE_DECL_GETDOMAINNAME=1;
6591 HAVE_DECL_GETLOGIN_R=1;
6592 HAVE_DECL_GETPAGESIZE=1;
6593 HAVE_DECL_GETUSERSHELL=1;
6594 HAVE_DECL_SETHOSTNAME=1;
6595 HAVE_DECL_TTYNAME_R=1;
6596 HAVE_OS_H=0;
6597 HAVE_SYS_PARAM_H=0;
6598 REPLACE_CHOWN=0;
6599 REPLACE_CLOSE=0;
6600 REPLACE_DUP=0;
6601 REPLACE_DUP2=0;
6602 REPLACE_FCHOWNAT=0;
6603 REPLACE_FTRUNCATE=0;
6604 REPLACE_GETCWD=0;
6605 REPLACE_GETDOMAINNAME=0;
6606 REPLACE_GETDTABLESIZE=0;
6607 REPLACE_GETLOGIN_R=0;
6608 REPLACE_GETGROUPS=0;
6609 REPLACE_GETPAGESIZE=0;
6610 REPLACE_ISATTY=0;
6611 REPLACE_LCHOWN=0;
6612 REPLACE_LINK=0;
6613 REPLACE_LINKAT=0;
6614 REPLACE_LSEEK=0;
6615 REPLACE_PREAD=0;
6616 REPLACE_PWRITE=0;
6617 REPLACE_READ=0;
6618 REPLACE_READLINK=0;
6619 REPLACE_READLINKAT=0;
6620 REPLACE_RMDIR=0;
6621 REPLACE_SLEEP=0;
6622 REPLACE_SYMLINK=0;
6623 REPLACE_SYMLINKAT=0;
6624 REPLACE_TTYNAME_R=0;
6625 REPLACE_UNLINK=0;
6626 REPLACE_UNLINKAT=0;
6627 REPLACE_USLEEP=0;
6628 REPLACE_WRITE=0;
6629 UNISTD_H_HAVE_WINSOCK2_H=0;
6630 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
6631
6632
6633
6634 GNULIB_OPENDIR=0;
6635 GNULIB_READDIR=0;
6636 GNULIB_REWINDDIR=0;
6637 GNULIB_CLOSEDIR=0;
6638 GNULIB_DIRFD=0;
6639 GNULIB_FDOPENDIR=0;
6640 GNULIB_SCANDIR=0;
6641 GNULIB_ALPHASORT=0;
6642 HAVE_OPENDIR=1;
6643 HAVE_READDIR=1;
6644 HAVE_REWINDDIR=1;
6645 HAVE_CLOSEDIR=1;
6646 HAVE_DECL_DIRFD=1;
6647 HAVE_DECL_FDOPENDIR=1;
6648 HAVE_FDOPENDIR=1;
6649 HAVE_SCANDIR=1;
6650 HAVE_ALPHASORT=1;
6651 REPLACE_OPENDIR=0;
6652 REPLACE_CLOSEDIR=0;
6653 REPLACE_DIRFD=0;
6654 REPLACE_FDOPENDIR=0;
6655
6656
6657
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6659 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6660 if test "${gl_cv_have_include_next+set}" = set; then :
6661 $as_echo_n "(cached) " >&6
6662 else
6663 rm -rf conftestd1a conftestd1b conftestd2
6664 mkdir conftestd1a conftestd1b conftestd2
6665 cat <<EOF > conftestd1a/conftest.h
6666 #define DEFINED_IN_CONFTESTD1
6667 #include_next <conftest.h>
6668 #ifdef DEFINED_IN_CONFTESTD2
6669 int foo;
6670 #else
6671 #error "include_next doesn't work"
6672 #endif
6673 EOF
6674 cat <<EOF > conftestd1b/conftest.h
6675 #define DEFINED_IN_CONFTESTD1
6676 #include <stdio.h>
6677 #include_next <conftest.h>
6678 #ifdef DEFINED_IN_CONFTESTD2
6679 int foo;
6680 #else
6681 #error "include_next doesn't work"
6682 #endif
6683 EOF
6684 cat <<EOF > conftestd2/conftest.h
6685 #ifndef DEFINED_IN_CONFTESTD1
6686 #error "include_next test doesn't work"
6687 #endif
6688 #define DEFINED_IN_CONFTESTD2
6689 EOF
6690 gl_save_CPPFLAGS="$CPPFLAGS"
6691 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h. */
6694 #include <conftest.h>
6695 _ACEOF
6696 if ac_fn_c_try_compile "$LINENO"; then :
6697 gl_cv_have_include_next=yes
6698 else
6699 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701 /* end confdefs.h. */
6702 #include <conftest.h>
6703 _ACEOF
6704 if ac_fn_c_try_compile "$LINENO"; then :
6705 gl_cv_have_include_next=buggy
6706 else
6707 gl_cv_have_include_next=no
6708 fi
6709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6710
6711 fi
6712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6713 CPPFLAGS="$gl_save_CPPFLAGS"
6714 rm -rf conftestd1a conftestd1b conftestd2
6715
6716 fi
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6718 $as_echo "$gl_cv_have_include_next" >&6; }
6719 PRAGMA_SYSTEM_HEADER=
6720 if test $gl_cv_have_include_next = yes; then
6721 INCLUDE_NEXT=include_next
6722 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6723 if test -n "$GCC"; then
6724 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6725 fi
6726 else
6727 if test $gl_cv_have_include_next = buggy; then
6728 INCLUDE_NEXT=include
6729 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6730 else
6731 INCLUDE_NEXT=include
6732 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6733 fi
6734 fi
6735
6736
6737
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
6739 $as_echo_n "checking whether system header files limit the line length... " >&6; }
6740 if test "${gl_cv_pragma_columns+set}" = set; then :
6741 $as_echo_n "(cached) " >&6
6742 else
6743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744 /* end confdefs.h. */
6745
6746 #ifdef __TANDEM
6747 choke me
6748 #endif
6749
6750 _ACEOF
6751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6752 $EGREP "choke me" >/dev/null 2>&1; then :
6753 gl_cv_pragma_columns=yes
6754 else
6755 gl_cv_pragma_columns=no
6756 fi
6757 rm -f conftest*
6758
6759
6760 fi
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
6762 $as_echo "$gl_cv_pragma_columns" >&6; }
6763 if test $gl_cv_pragma_columns = yes; then
6764 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
6765 else
6766 PRAGMA_COLUMNS=
6767 fi
6768
6769
6770
6771
6772
6773
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
6775 $as_echo_n "checking for complete errno.h... " >&6; }
6776 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
6777 $as_echo_n "(cached) " >&6
6778 else
6779
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h. */
6782
6783 #include <errno.h>
6784 #if !defined ETXTBSY
6785 booboo
6786 #endif
6787 #if !defined ENOMSG
6788 booboo
6789 #endif
6790 #if !defined EIDRM
6791 booboo
6792 #endif
6793 #if !defined ENOLINK
6794 booboo
6795 #endif
6796 #if !defined EPROTO
6797 booboo
6798 #endif
6799 #if !defined EMULTIHOP
6800 booboo
6801 #endif
6802 #if !defined EBADMSG
6803 booboo
6804 #endif
6805 #if !defined EOVERFLOW
6806 booboo
6807 #endif
6808 #if !defined ENOTSUP
6809 booboo
6810 #endif
6811 #if !defined ENETRESET
6812 booboo
6813 #endif
6814 #if !defined ECONNABORTED
6815 booboo
6816 #endif
6817 #if !defined ESTALE
6818 booboo
6819 #endif
6820 #if !defined EDQUOT
6821 booboo
6822 #endif
6823 #if !defined ECANCELED
6824 booboo
6825 #endif
6826 #if !defined EOWNERDEAD
6827 booboo
6828 #endif
6829 #if !defined ENOTRECOVERABLE
6830 booboo
6831 #endif
6832 #if !defined EILSEQ
6833 booboo
6834 #endif
6835
6836 _ACEOF
6837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6838 $EGREP "booboo" >/dev/null 2>&1; then :
6839 gl_cv_header_errno_h_complete=no
6840 else
6841 gl_cv_header_errno_h_complete=yes
6842 fi
6843 rm -f conftest*
6844
6845
6846 fi
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
6848 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
6849 if test $gl_cv_header_errno_h_complete = yes; then
6850 ERRNO_H=''
6851 else
6852
6853
6854
6855
6856
6857
6858
6859
6860 if test $gl_cv_have_include_next = yes; then
6861 gl_cv_next_errno_h='<'errno.h'>'
6862 else
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
6864 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
6865 if test "${gl_cv_next_errno_h+set}" = set; then :
6866 $as_echo_n "(cached) " >&6
6867 else
6868
6869
6870
6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h. */
6873 #include <errno.h>
6874 _ACEOF
6875 case "$host_os" in
6876 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6877 *) gl_absname_cpp="$ac_cpp" ;;
6878 esac
6879
6880 case "$host_os" in
6881 mingw*)
6882 gl_dirsep_regex='[/\\]'
6883 ;;
6884 *)
6885 gl_dirsep_regex='\/'
6886 ;;
6887 esac
6888 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6889 gl_header_literal_regex=`echo 'errno.h' \
6890 | sed -e "$gl_make_literal_regex_sed"`
6891 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6892 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6893 s|^/[^/]|//&|
6894 p
6895 q
6896 }'
6897
6898 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6899 sed -n "$gl_absolute_header_sed"`
6900
6901 gl_header=$gl_cv_absolute_errno_h
6902 gl_cv_next_errno_h='"'$gl_header'"'
6903
6904
6905 fi
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
6907 $as_echo "$gl_cv_next_errno_h" >&6; }
6908 fi
6909 NEXT_ERRNO_H=$gl_cv_next_errno_h
6910
6911 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6912 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6913 gl_next_as_first_directive='<'errno.h'>'
6914 else
6915 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6916 gl_next_as_first_directive=$gl_cv_next_errno_h
6917 fi
6918 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
6919
6920
6921
6922
6923 ERRNO_H='errno.h'
6924 fi
6925
6926 if test -n "$ERRNO_H"; then
6927 GL_GENERATE_ERRNO_H_TRUE=
6928 GL_GENERATE_ERRNO_H_FALSE='#'
6929 else
6930 GL_GENERATE_ERRNO_H_TRUE='#'
6931 GL_GENERATE_ERRNO_H_FALSE=
6932 fi
6933
6934
6935 if test -n "$ERRNO_H"; then
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
6937 $as_echo_n "checking for EMULTIHOP value... " >&6; }
6938 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
6939 $as_echo_n "(cached) " >&6
6940 else
6941
6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h. */
6944
6945 #include <errno.h>
6946 #ifdef EMULTIHOP
6947 yes
6948 #endif
6949
6950 _ACEOF
6951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6952 $EGREP "yes" >/dev/null 2>&1; then :
6953 gl_cv_header_errno_h_EMULTIHOP=yes
6954 else
6955 gl_cv_header_errno_h_EMULTIHOP=no
6956 fi
6957 rm -f conftest*
6958
6959 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
6960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6961 /* end confdefs.h. */
6962
6963 #define _XOPEN_SOURCE_EXTENDED 1
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=hidden
6973 fi
6974 rm -f conftest*
6975
6976 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
6977 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
6978 #define _XOPEN_SOURCE_EXTENDED 1
6979 #include <errno.h>
6980 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6981 #include <stdio.h>
6982 #include <stdlib.h>
6983 "; then :
6984
6985 fi
6986
6987 fi
6988 fi
6989
6990 fi
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
6992 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
6993 case $gl_cv_header_errno_h_EMULTIHOP in
6994 yes | no)
6995 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
6996 ;;
6997 *)
6998 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
6999 ;;
7000 esac
7001
7002
7003 fi
7004
7005
7006 if test -n "$ERRNO_H"; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
7008 $as_echo_n "checking for ENOLINK value... " >&6; }
7009 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
7010 $as_echo_n "(cached) " >&6
7011 else
7012
7013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7014 /* end confdefs.h. */
7015
7016 #include <errno.h>
7017 #ifdef ENOLINK
7018 yes
7019 #endif
7020
7021 _ACEOF
7022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7023 $EGREP "yes" >/dev/null 2>&1; then :
7024 gl_cv_header_errno_h_ENOLINK=yes
7025 else
7026 gl_cv_header_errno_h_ENOLINK=no
7027 fi
7028 rm -f conftest*
7029
7030 if test $gl_cv_header_errno_h_ENOLINK = no; then
7031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7032 /* end confdefs.h. */
7033
7034 #define _XOPEN_SOURCE_EXTENDED 1
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=hidden
7044 fi
7045 rm -f conftest*
7046
7047 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
7048 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
7049 #define _XOPEN_SOURCE_EXTENDED 1
7050 #include <errno.h>
7051 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7052 #include <stdio.h>
7053 #include <stdlib.h>
7054 "; then :
7055
7056 fi
7057
7058 fi
7059 fi
7060
7061 fi
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
7063 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
7064 case $gl_cv_header_errno_h_ENOLINK in
7065 yes | no)
7066 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
7067 ;;
7068 *)
7069 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
7070 ;;
7071 esac
7072
7073
7074 fi
7075
7076
7077 if test -n "$ERRNO_H"; then
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
7079 $as_echo_n "checking for EOVERFLOW value... " >&6; }
7080 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
7081 $as_echo_n "(cached) " >&6
7082 else
7083
7084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7085 /* end confdefs.h. */
7086
7087 #include <errno.h>
7088 #ifdef EOVERFLOW
7089 yes
7090 #endif
7091
7092 _ACEOF
7093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7094 $EGREP "yes" >/dev/null 2>&1; then :
7095 gl_cv_header_errno_h_EOVERFLOW=yes
7096 else
7097 gl_cv_header_errno_h_EOVERFLOW=no
7098 fi
7099 rm -f conftest*
7100
7101 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103 /* end confdefs.h. */
7104
7105 #define _XOPEN_SOURCE_EXTENDED 1
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=hidden
7115 fi
7116 rm -f conftest*
7117
7118 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7119 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
7120 #define _XOPEN_SOURCE_EXTENDED 1
7121 #include <errno.h>
7122 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7123 #include <stdio.h>
7124 #include <stdlib.h>
7125 "; then :
7126
7127 fi
7128
7129 fi
7130 fi
7131
7132 fi
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7134 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7135 case $gl_cv_header_errno_h_EOVERFLOW in
7136 yes | no)
7137 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
7138 ;;
7139 *)
7140 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
7141 ;;
7142 esac
7143
7144
7145 fi
7146
7147
7148
7149
7150
7151
7152
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
7154 $as_echo_n "checking for mbstate_t... " >&6; }
7155 if test "${ac_cv_type_mbstate_t+set}" = set; then :
7156 $as_echo_n "(cached) " >&6
7157 else
7158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159 /* end confdefs.h. */
7160 $ac_includes_default
7161 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7162 <wchar.h>.
7163 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7164 included before <wchar.h>. */
7165 #include <stddef.h>
7166 #include <stdio.h>
7167 #include <time.h>
7168 #include <wchar.h>
7169 int
7170 main ()
7171 {
7172 mbstate_t x; return sizeof x;
7173 ;
7174 return 0;
7175 }
7176 _ACEOF
7177 if ac_fn_c_try_compile "$LINENO"; then :
7178 ac_cv_type_mbstate_t=yes
7179 else
7180 ac_cv_type_mbstate_t=no
7181 fi
7182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7183 fi
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
7185 $as_echo "$ac_cv_type_mbstate_t" >&6; }
7186 if test $ac_cv_type_mbstate_t = yes; then
7187
7188 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
7189
7190 else
7191
7192 $as_echo "#define mbstate_t int" >>confdefs.h
7193
7194 fi
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215 GNULIB_ACOSF=0;
7216 GNULIB_ACOSL=0;
7217 GNULIB_ASINF=0;
7218 GNULIB_ASINL=0;
7219 GNULIB_ATANF=0;
7220 GNULIB_ATANL=0;
7221 GNULIB_ATAN2F=0;
7222 GNULIB_CBRT=0;
7223 GNULIB_CBRTF=0;
7224 GNULIB_CBRTL=0;
7225 GNULIB_CEIL=0;
7226 GNULIB_CEILF=0;
7227 GNULIB_CEILL=0;
7228 GNULIB_COPYSIGN=0;
7229 GNULIB_COPYSIGNF=0;
7230 GNULIB_COPYSIGNL=0;
7231 GNULIB_COSF=0;
7232 GNULIB_COSL=0;
7233 GNULIB_COSHF=0;
7234 GNULIB_EXPF=0;
7235 GNULIB_EXPL=0;
7236 GNULIB_EXP2=0;
7237 GNULIB_EXP2F=0;
7238 GNULIB_EXP2L=0;
7239 GNULIB_EXPM1=0;
7240 GNULIB_EXPM1F=0;
7241 GNULIB_EXPM1L=0;
7242 GNULIB_FABSF=0;
7243 GNULIB_FABSL=0;
7244 GNULIB_FLOOR=0;
7245 GNULIB_FLOORF=0;
7246 GNULIB_FLOORL=0;
7247 GNULIB_FMA=0;
7248 GNULIB_FMAF=0;
7249 GNULIB_FMAL=0;
7250 GNULIB_FMOD=0;
7251 GNULIB_FMODF=0;
7252 GNULIB_FMODL=0;
7253 GNULIB_FREXPF=0;
7254 GNULIB_FREXP=0;
7255 GNULIB_FREXPL=0;
7256 GNULIB_HYPOT=0;
7257 GNULIB_HYPOTF=0;
7258 GNULIB_HYPOTL=0;
7259 GNULIB_ILOGB=0;
7260 GNULIB_ILOGBF=0;
7261 GNULIB_ILOGBL=0;
7262 GNULIB_ISFINITE=0;
7263 GNULIB_ISINF=0;
7264 GNULIB_ISNAN=0;
7265 GNULIB_ISNANF=0;
7266 GNULIB_ISNAND=0;
7267 GNULIB_ISNANL=0;
7268 GNULIB_LDEXPF=0;
7269 GNULIB_LDEXPL=0;
7270 GNULIB_LOG=0;
7271 GNULIB_LOGF=0;
7272 GNULIB_LOGL=0;
7273 GNULIB_LOG10=0;
7274 GNULIB_LOG10F=0;
7275 GNULIB_LOG10L=0;
7276 GNULIB_LOG1P=0;
7277 GNULIB_LOG1PF=0;
7278 GNULIB_LOG1PL=0;
7279 GNULIB_LOG2=0;
7280 GNULIB_LOG2F=0;
7281 GNULIB_LOG2L=0;
7282 GNULIB_LOGB=0;
7283 GNULIB_LOGBF=0;
7284 GNULIB_LOGBL=0;
7285 GNULIB_MODF=0;
7286 GNULIB_MODFF=0;
7287 GNULIB_MODFL=0;
7288 GNULIB_POWF=0;
7289 GNULIB_REMAINDER=0;
7290 GNULIB_REMAINDERF=0;
7291 GNULIB_REMAINDERL=0;
7292 GNULIB_RINT=0;
7293 GNULIB_RINTF=0;
7294 GNULIB_RINTL=0;
7295 GNULIB_ROUND=0;
7296 GNULIB_ROUNDF=0;
7297 GNULIB_ROUNDL=0;
7298 GNULIB_SIGNBIT=0;
7299 GNULIB_SINF=0;
7300 GNULIB_SINL=0;
7301 GNULIB_SINHF=0;
7302 GNULIB_SQRTF=0;
7303 GNULIB_SQRTL=0;
7304 GNULIB_TANF=0;
7305 GNULIB_TANL=0;
7306 GNULIB_TANHF=0;
7307 GNULIB_TRUNC=0;
7308 GNULIB_TRUNCF=0;
7309 GNULIB_TRUNCL=0;
7310 HAVE_ACOSF=1;
7311 HAVE_ACOSL=1;
7312 HAVE_ASINF=1;
7313 HAVE_ASINL=1;
7314 HAVE_ATANF=1;
7315 HAVE_ATANL=1;
7316 HAVE_ATAN2F=1;
7317 HAVE_CBRT=1;
7318 HAVE_CBRTF=1;
7319 HAVE_CBRTL=1;
7320 HAVE_COPYSIGN=1;
7321 HAVE_COPYSIGNL=1;
7322 HAVE_COSF=1;
7323 HAVE_COSL=1;
7324 HAVE_COSHF=1;
7325 HAVE_EXPF=1;
7326 HAVE_EXPL=1;
7327 HAVE_EXPM1=1;
7328 HAVE_EXPM1F=1;
7329 HAVE_FABSF=1;
7330 HAVE_FABSL=1;
7331 HAVE_FMA=1;
7332 HAVE_FMAF=1;
7333 HAVE_FMAL=1;
7334 HAVE_FMODF=1;
7335 HAVE_FMODL=1;
7336 HAVE_FREXPF=1;
7337 HAVE_HYPOTF=1;
7338 HAVE_HYPOTL=1;
7339 HAVE_ILOGB=1;
7340 HAVE_ILOGBF=1;
7341 HAVE_ILOGBL=1;
7342 HAVE_ISNANF=1;
7343 HAVE_ISNAND=1;
7344 HAVE_ISNANL=1;
7345 HAVE_LDEXPF=1;
7346 HAVE_LOGF=1;
7347 HAVE_LOGL=1;
7348 HAVE_LOG10F=1;
7349 HAVE_LOG10L=1;
7350 HAVE_LOG1P=1;
7351 HAVE_LOG1PF=1;
7352 HAVE_LOG1PL=1;
7353 HAVE_LOGBF=1;
7354 HAVE_LOGBL=1;
7355 HAVE_MODFF=1;
7356 HAVE_MODFL=1;
7357 HAVE_POWF=1;
7358 HAVE_REMAINDER=1;
7359 HAVE_REMAINDERF=1;
7360 HAVE_RINT=1;
7361 HAVE_RINTL=1;
7362 HAVE_SINF=1;
7363 HAVE_SINL=1;
7364 HAVE_SINHF=1;
7365 HAVE_SQRTF=1;
7366 HAVE_SQRTL=1;
7367 HAVE_TANF=1;
7368 HAVE_TANL=1;
7369 HAVE_TANHF=1;
7370 HAVE_DECL_ACOSL=1;
7371 HAVE_DECL_ASINL=1;
7372 HAVE_DECL_ATANL=1;
7373 HAVE_DECL_CBRTF=1;
7374 HAVE_DECL_CBRTL=1;
7375 HAVE_DECL_CEILF=1;
7376 HAVE_DECL_CEILL=1;
7377 HAVE_DECL_COPYSIGNF=1;
7378 HAVE_DECL_COSL=1;
7379 HAVE_DECL_EXPL=1;
7380 HAVE_DECL_EXP2=1;
7381 HAVE_DECL_EXP2F=1;
7382 HAVE_DECL_EXP2L=1;
7383 HAVE_DECL_EXPM1L=1;
7384 HAVE_DECL_FLOORF=1;
7385 HAVE_DECL_FLOORL=1;
7386 HAVE_DECL_FREXPL=1;
7387 HAVE_DECL_LDEXPL=1;
7388 HAVE_DECL_LOGL=1;
7389 HAVE_DECL_LOG10L=1;
7390 HAVE_DECL_LOG2=1;
7391 HAVE_DECL_LOG2F=1;
7392 HAVE_DECL_LOG2L=1;
7393 HAVE_DECL_LOGB=1;
7394 HAVE_DECL_REMAINDER=1;
7395 HAVE_DECL_REMAINDERL=1;
7396 HAVE_DECL_RINTF=1;
7397 HAVE_DECL_ROUND=1;
7398 HAVE_DECL_ROUNDF=1;
7399 HAVE_DECL_ROUNDL=1;
7400 HAVE_DECL_SINL=1;
7401 HAVE_DECL_SQRTL=1;
7402 HAVE_DECL_TANL=1;
7403 HAVE_DECL_TRUNC=1;
7404 HAVE_DECL_TRUNCF=1;
7405 HAVE_DECL_TRUNCL=1;
7406 REPLACE_CBRTF=0;
7407 REPLACE_CBRTL=0;
7408 REPLACE_CEIL=0;
7409 REPLACE_CEILF=0;
7410 REPLACE_CEILL=0;
7411 REPLACE_EXPM1=0;
7412 REPLACE_EXPM1F=0;
7413 REPLACE_EXP2=0;
7414 REPLACE_EXP2L=0;
7415 REPLACE_FABSL=0;
7416 REPLACE_FLOOR=0;
7417 REPLACE_FLOORF=0;
7418 REPLACE_FLOORL=0;
7419 REPLACE_FMA=0;
7420 REPLACE_FMAF=0;
7421 REPLACE_FMAL=0;
7422 REPLACE_FMOD=0;
7423 REPLACE_FMODF=0;
7424 REPLACE_FMODL=0;
7425 REPLACE_FREXPF=0;
7426 REPLACE_FREXP=0;
7427 REPLACE_FREXPL=0;
7428 REPLACE_HUGE_VAL=0;
7429 REPLACE_HYPOT=0;
7430 REPLACE_HYPOTF=0;
7431 REPLACE_HYPOTL=0;
7432 REPLACE_ILOGB=0;
7433 REPLACE_ILOGBF=0;
7434 REPLACE_ISFINITE=0;
7435 REPLACE_ISINF=0;
7436 REPLACE_ISNAN=0;
7437 REPLACE_LDEXPL=0;
7438 REPLACE_LOG=0;
7439 REPLACE_LOGF=0;
7440 REPLACE_LOGL=0;
7441 REPLACE_LOG10=0;
7442 REPLACE_LOG10F=0;
7443 REPLACE_LOG10L=0;
7444 REPLACE_LOG1P=0;
7445 REPLACE_LOG1PF=0;
7446 REPLACE_LOG1PL=0;
7447 REPLACE_LOG2=0;
7448 REPLACE_LOG2F=0;
7449 REPLACE_LOG2L=0;
7450 REPLACE_LOGB=0;
7451 REPLACE_LOGBF=0;
7452 REPLACE_LOGBL=0;
7453 REPLACE_MODF=0;
7454 REPLACE_MODFF=0;
7455 REPLACE_MODFL=0;
7456 REPLACE_NAN=0;
7457 REPLACE_REMAINDER=0;
7458 REPLACE_REMAINDERF=0;
7459 REPLACE_REMAINDERL=0;
7460 REPLACE_ROUND=0;
7461 REPLACE_ROUNDF=0;
7462 REPLACE_ROUNDL=0;
7463 REPLACE_SIGNBIT=0;
7464 REPLACE_SIGNBIT_USING_GCC=0;
7465 REPLACE_SQRTL=0;
7466 REPLACE_TRUNC=0;
7467 REPLACE_TRUNCF=0;
7468 REPLACE_TRUNCL=0;
7469
7470
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
7472 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
7473 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
7474 $as_echo_n "(cached) " >&6
7475 else
7476
7477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478 /* end confdefs.h. */
7479 #include <math.h>
7480 double x;
7481 int
7482 main ()
7483 {
7484 int e; return frexp (x, &e) > 0;
7485 ;
7486 return 0;
7487 }
7488 _ACEOF
7489 if ac_fn_c_try_link "$LINENO"; then :
7490 gl_cv_func_frexp_no_libm=yes
7491 else
7492 gl_cv_func_frexp_no_libm=no
7493 fi
7494 rm -f core conftest.err conftest.$ac_objext \
7495 conftest$ac_exeext conftest.$ac_ext
7496
7497 fi
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
7499 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
7500
7501 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
7502 if test "x$ac_cv_have_decl_alarm" = x""yes; then :
7503 ac_have_decl=1
7504 else
7505 ac_have_decl=0
7506 fi
7507
7508 cat >>confdefs.h <<_ACEOF
7509 #define HAVE_DECL_ALARM $ac_have_decl
7510 _ACEOF
7511
7512
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
7514 $as_echo_n "checking whether long double and double are the same... " >&6; }
7515 if test "${gl_cv_long_double_equals_double+set}" = set; then :
7516 $as_echo_n "(cached) " >&6
7517 else
7518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h. */
7520 #include <float.h>
7521 int
7522 main ()
7523 {
7524 typedef int check[sizeof (long double) == sizeof (double)
7525 && LDBL_MANT_DIG == DBL_MANT_DIG
7526 && LDBL_MAX_EXP == DBL_MAX_EXP
7527 && LDBL_MIN_EXP == DBL_MIN_EXP
7528 ? 1 : -1];
7529
7530 ;
7531 return 0;
7532 }
7533 _ACEOF
7534 if ac_fn_c_try_compile "$LINENO"; then :
7535 gl_cv_long_double_equals_double=yes
7536 else
7537 gl_cv_long_double_equals_double=no
7538 fi
7539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7540
7541 fi
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
7543 $as_echo "$gl_cv_long_double_equals_double" >&6; }
7544 if test $gl_cv_long_double_equals_double = yes; then
7545
7546 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
7547
7548 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
7549 else
7550 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
7551 fi
7552
7553
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
7555 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7556 if test "${ac_cv_c_restrict+set}" = set; then :
7557 $as_echo_n "(cached) " >&6
7558 else
7559 ac_cv_c_restrict=no
7560 # The order here caters to the fact that C++ does not require restrict.
7561 for ac_kw in __restrict __restrict__ _Restrict restrict; do
7562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7563 /* end confdefs.h. */
7564 typedef int *int_ptr;
7565 int foo (int_ptr $ac_kw ip) { return ip[0]; }
7566 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
7567 int bar (int ip[$ac_kw]) { return ip[0]; }
7568
7569 int
7570 main ()
7571 {
7572 int s[1];
7573 int *$ac_kw t = s;
7574 t[0] = 0;
7575 return foo (t) + bar (t);
7576
7577 ;
7578 return 0;
7579 }
7580 _ACEOF
7581 if ac_fn_c_try_compile "$LINENO"; then :
7582 ac_cv_c_restrict=$ac_kw
7583 fi
7584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7585 test "$ac_cv_c_restrict" != no && break
7586 done
7587
7588 fi
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
7590 $as_echo "$ac_cv_c_restrict" >&6; }
7591
7592 case $ac_cv_c_restrict in
7593 restrict) ;;
7594 no) $as_echo "#define restrict /**/" >>confdefs.h
7595 ;;
7596 *) cat >>confdefs.h <<_ACEOF
7597 #define restrict $ac_cv_c_restrict
7598 _ACEOF
7599 ;;
7600 esac
7601
7602
7603 GNULIB_GETTIMEOFDAY=0;
7604 HAVE_GETTIMEOFDAY=1;
7605 HAVE_STRUCT_TIMEVAL=1;
7606 HAVE_SYS_TIME_H=1;
7607 HAVE_TIMEZONE_T=0;
7608 REPLACE_GETTIMEOFDAY=0;
7609 REPLACE_STRUCT_TIMEVAL=0;
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628 if test $gl_cv_have_include_next = yes; then
7629 gl_cv_next_sys_time_h='<'sys/time.h'>'
7630 else
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
7632 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
7633 if test "${gl_cv_next_sys_time_h+set}" = set; then :
7634 $as_echo_n "(cached) " >&6
7635 else
7636
7637 if test $ac_cv_header_sys_time_h = yes; then
7638
7639
7640
7641
7642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7643 /* end confdefs.h. */
7644 #include <sys/time.h>
7645 _ACEOF
7646 case "$host_os" in
7647 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7648 *) gl_absname_cpp="$ac_cpp" ;;
7649 esac
7650
7651 case "$host_os" in
7652 mingw*)
7653 gl_dirsep_regex='[/\\]'
7654 ;;
7655 *)
7656 gl_dirsep_regex='\/'
7657 ;;
7658 esac
7659 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7660 gl_header_literal_regex=`echo 'sys/time.h' \
7661 | sed -e "$gl_make_literal_regex_sed"`
7662 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7663 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7664 s|^/[^/]|//&|
7665 p
7666 q
7667 }'
7668
7669 gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7670 sed -n "$gl_absolute_header_sed"`
7671
7672 gl_header=$gl_cv_absolute_sys_time_h
7673 gl_cv_next_sys_time_h='"'$gl_header'"'
7674 else
7675 gl_cv_next_sys_time_h='<'sys/time.h'>'
7676 fi
7677
7678
7679 fi
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
7681 $as_echo "$gl_cv_next_sys_time_h" >&6; }
7682 fi
7683 NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
7684
7685 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7686 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7687 gl_next_as_first_directive='<'sys/time.h'>'
7688 else
7689 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7690 gl_next_as_first_directive=$gl_cv_next_sys_time_h
7691 fi
7692 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
7693
7694
7695
7696
7697
7698 if test $ac_cv_header_sys_time_h != yes; then
7699 HAVE_SYS_TIME_H=0
7700 fi
7701
7702
7703
7704
7705
7706 if test $ac_cv_header_sys_socket_h != yes; then
7707 for ac_header in winsock2.h
7708 do :
7709 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
7710 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
7711 cat >>confdefs.h <<_ACEOF
7712 #define HAVE_WINSOCK2_H 1
7713 _ACEOF
7714
7715 fi
7716
7717 done
7718
7719 fi
7720 if test "$ac_cv_header_winsock2_h" = yes; then
7721 HAVE_WINSOCK2_H=1
7722 UNISTD_H_HAVE_WINSOCK2_H=1
7723 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
7724 else
7725 HAVE_WINSOCK2_H=0
7726 fi
7727
7728
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7730 $as_echo_n "checking for struct timeval... " >&6; }
7731 if test "${gl_cv_sys_struct_timeval+set}" = set; then :
7732 $as_echo_n "(cached) " >&6
7733 else
7734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735 /* end confdefs.h. */
7736 #if HAVE_SYS_TIME_H
7737 #include <sys/time.h>
7738 #endif
7739 #include <time.h>
7740 #if HAVE_WINSOCK2_H
7741 # include <winsock2.h>
7742 #endif
7743
7744 int
7745 main ()
7746 {
7747 static struct timeval x; x.tv_sec = x.tv_usec;
7748 ;
7749 return 0;
7750 }
7751 _ACEOF
7752 if ac_fn_c_try_compile "$LINENO"; then :
7753 gl_cv_sys_struct_timeval=yes
7754 else
7755 gl_cv_sys_struct_timeval=no
7756 fi
7757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7758
7759 fi
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
7761 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
7762 if test $gl_cv_sys_struct_timeval != yes; then
7763 HAVE_STRUCT_TIMEVAL=0
7764 else
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
7766 $as_echo_n "checking for wide-enough struct timeval.tv_sec member... " >&6; }
7767 if test "${gl_cv_sys_struct_timeval_tv_sec+set}" = set; then :
7768 $as_echo_n "(cached) " >&6
7769 else
7770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7771 /* end confdefs.h. */
7772 #if HAVE_SYS_TIME_H
7773 #include <sys/time.h>
7774 #endif
7775 #include <time.h>
7776 #if HAVE_WINSOCK2_H
7777 # include <winsock2.h>
7778 #endif
7779
7780 int
7781 main ()
7782 {
7783 static struct timeval x;
7784 typedef int verify_tv_sec_type[
7785 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
7786 ];
7787
7788 ;
7789 return 0;
7790 }
7791 _ACEOF
7792 if ac_fn_c_try_compile "$LINENO"; then :
7793 gl_cv_sys_struct_timeval_tv_sec=yes
7794 else
7795 gl_cv_sys_struct_timeval_tv_sec=no
7796 fi
7797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7798
7799 fi
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
7801 $as_echo "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
7802 if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
7803 REPLACE_STRUCT_TIMEVAL=1
7804 fi
7805 fi
7806
7807
7808 for gl_func in gettimeofday; do
7809 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7811 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7812 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7813 $as_echo_n "(cached) " >&6
7814 else
7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h. */
7817
7818 #if HAVE_SYS_TIME_H
7819 # include <sys/time.h>
7820 #endif
7821 #include <time.h>
7822
7823 int
7824 main ()
7825 {
7826 #undef $gl_func
7827 (void) $gl_func;
7828 ;
7829 return 0;
7830 }
7831 _ACEOF
7832 if ac_fn_c_try_compile "$LINENO"; then :
7833 eval "$as_gl_Symbol=yes"
7834 else
7835 eval "$as_gl_Symbol=no"
7836 fi
7837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7838 fi
7839 eval ac_res=\$$as_gl_Symbol
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7841 $as_echo "$ac_res" >&6; }
7842 eval as_val=\$$as_gl_Symbol
7843 if test "x$as_val" = x""yes; then :
7844 cat >>confdefs.h <<_ACEOF
7845 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7846 _ACEOF
7847
7848 eval ac_cv_have_decl_$gl_func=yes
7849 fi
7850 done
7851
7852
7853
7854
7855
7856
7857
7858
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7860 $as_echo_n "checking for unsigned long long int... " >&6; }
7861 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
7862 $as_echo_n "(cached) " >&6
7863 else
7864 ac_cv_type_unsigned_long_long_int=yes
7865 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h. */
7868
7869 /* For now, do not test the preprocessor; as of 2007 there are too many
7870 implementations with broken preprocessors. Perhaps this can
7871 be revisited in 2012. In the meantime, code should not expect
7872 #if to work with literals wider than 32 bits. */
7873 /* Test literals. */
7874 long long int ll = 9223372036854775807ll;
7875 long long int nll = -9223372036854775807LL;
7876 unsigned long long int ull = 18446744073709551615ULL;
7877 /* Test constant expressions. */
7878 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7879 ? 1 : -1)];
7880 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7881 ? 1 : -1)];
7882 int i = 63;
7883 int
7884 main ()
7885 {
7886 /* Test availability of runtime routines for shift and division. */
7887 long long int llmax = 9223372036854775807ll;
7888 unsigned long long int ullmax = 18446744073709551615ull;
7889 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7890 | (llmax / ll) | (llmax % ll)
7891 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7892 | (ullmax / ull) | (ullmax % ull));
7893 ;
7894 return 0;
7895 }
7896
7897 _ACEOF
7898 if ac_fn_c_try_link "$LINENO"; then :
7899
7900 else
7901 ac_cv_type_unsigned_long_long_int=no
7902 fi
7903 rm -f core conftest.err conftest.$ac_objext \
7904 conftest$ac_exeext conftest.$ac_ext
7905 fi
7906 fi
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7908 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7909 if test $ac_cv_type_unsigned_long_long_int = yes; then
7910
7911 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7912
7913 fi
7914
7915
7916
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7918 $as_echo_n "checking for long long int... " >&6; }
7919 if test "${ac_cv_type_long_long_int+set}" = set; then :
7920 $as_echo_n "(cached) " >&6
7921 else
7922 ac_cv_type_long_long_int=yes
7923 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7924 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
7925 if test $ac_cv_type_long_long_int = yes; then
7926 if test "$cross_compiling" = yes; then :
7927 :
7928 else
7929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930 /* end confdefs.h. */
7931 #include <limits.h>
7932 #ifndef LLONG_MAX
7933 # define HALF \
7934 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7935 # define LLONG_MAX (HALF - 1 + HALF)
7936 #endif
7937 int
7938 main ()
7939 {
7940 long long int n = 1;
7941 int i;
7942 for (i = 0; ; i++)
7943 {
7944 long long int m = n << i;
7945 if (m >> i != n)
7946 return 1;
7947 if (LLONG_MAX / 2 < m)
7948 break;
7949 }
7950 return 0;
7951 ;
7952 return 0;
7953 }
7954 _ACEOF
7955 if ac_fn_c_try_run "$LINENO"; then :
7956
7957 else
7958 ac_cv_type_long_long_int=no
7959 fi
7960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7961 conftest.$ac_objext conftest.beam conftest.$ac_ext
7962 fi
7963
7964 fi
7965 fi
7966 fi
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7968 $as_echo "$ac_cv_type_long_long_int" >&6; }
7969 if test $ac_cv_type_long_long_int = yes; then
7970
7971 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7972
7973 fi
7974
7975
7976
7977
7978
7979
7980 gl_cv_c_multiarch=no
7981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7982 /* end confdefs.h. */
7983 #ifndef __APPLE_CC__
7984 not a universal capable compiler
7985 #endif
7986 typedef int dummy;
7987
7988 _ACEOF
7989 if ac_fn_c_try_compile "$LINENO"; then :
7990
7991 arch=
7992 prev=
7993 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
7994 if test -n "$prev"; then
7995 case $word in
7996 i?86 | x86_64 | ppc | ppc64)
7997 if test -z "$arch" || test "$arch" = "$word"; then
7998 arch="$word"
7999 else
8000 gl_cv_c_multiarch=yes
8001 fi
8002 ;;
8003 esac
8004 prev=
8005 else
8006 if test "x$word" = "x-arch"; then
8007 prev=arch
8008 fi
8009 fi
8010 done
8011
8012 fi
8013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014 if test $gl_cv_c_multiarch = yes; then
8015 APPLE_UNIVERSAL_BUILD=1
8016 else
8017 APPLE_UNIVERSAL_BUILD=0
8018 fi
8019
8020
8021
8022
8023
8024 if test $ac_cv_type_long_long_int = yes; then
8025 HAVE_LONG_LONG_INT=1
8026 else
8027 HAVE_LONG_LONG_INT=0
8028 fi
8029
8030
8031 if test $ac_cv_type_unsigned_long_long_int = yes; then
8032 HAVE_UNSIGNED_LONG_LONG_INT=1
8033 else
8034 HAVE_UNSIGNED_LONG_LONG_INT=0
8035 fi
8036
8037
8038
8039 if test $ac_cv_header_wchar_h = yes; then
8040 HAVE_WCHAR_H=1
8041 else
8042 HAVE_WCHAR_H=0
8043 fi
8044
8045
8046 if test $ac_cv_header_inttypes_h = yes; then
8047 HAVE_INTTYPES_H=1
8048 else
8049 HAVE_INTTYPES_H=0
8050 fi
8051
8052
8053 if test $ac_cv_header_sys_types_h = yes; then
8054 HAVE_SYS_TYPES_H=1
8055 else
8056 HAVE_SYS_TYPES_H=0
8057 fi
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069 if test $gl_cv_have_include_next = yes; then
8070 gl_cv_next_stdint_h='<'stdint.h'>'
8071 else
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
8073 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
8074 if test "${gl_cv_next_stdint_h+set}" = set; then :
8075 $as_echo_n "(cached) " >&6
8076 else
8077
8078 if test $ac_cv_header_stdint_h = yes; then
8079
8080
8081
8082
8083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8084 /* end confdefs.h. */
8085 #include <stdint.h>
8086 _ACEOF
8087 case "$host_os" in
8088 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8089 *) gl_absname_cpp="$ac_cpp" ;;
8090 esac
8091
8092 case "$host_os" in
8093 mingw*)
8094 gl_dirsep_regex='[/\\]'
8095 ;;
8096 *)
8097 gl_dirsep_regex='\/'
8098 ;;
8099 esac
8100 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8101 gl_header_literal_regex=`echo 'stdint.h' \
8102 | sed -e "$gl_make_literal_regex_sed"`
8103 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8104 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8105 s|^/[^/]|//&|
8106 p
8107 q
8108 }'
8109
8110 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8111 sed -n "$gl_absolute_header_sed"`
8112
8113 gl_header=$gl_cv_absolute_stdint_h
8114 gl_cv_next_stdint_h='"'$gl_header'"'
8115 else
8116 gl_cv_next_stdint_h='<'stdint.h'>'
8117 fi
8118
8119
8120 fi
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
8122 $as_echo "$gl_cv_next_stdint_h" >&6; }
8123 fi
8124 NEXT_STDINT_H=$gl_cv_next_stdint_h
8125
8126 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8127 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8128 gl_next_as_first_directive='<'stdint.h'>'
8129 else
8130 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8131 gl_next_as_first_directive=$gl_cv_next_stdint_h
8132 fi
8133 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
8134
8135
8136
8137
8138 if test $ac_cv_header_stdint_h = yes; then
8139 HAVE_STDINT_H=1
8140 else
8141 HAVE_STDINT_H=0
8142 fi
8143
8144
8145 if test $ac_cv_header_stdint_h = yes; then
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
8147 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
8148 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
8149 $as_echo_n "(cached) " >&6
8150 else
8151 gl_cv_header_working_stdint_h=no
8152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153 /* end confdefs.h. */
8154
8155
8156 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8157 #include <stdint.h>
8158 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
8159 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
8160 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
8161 #endif
8162
8163
8164 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8165 included before <wchar.h>. */
8166 #include <stddef.h>
8167 #include <signal.h>
8168 #if HAVE_WCHAR_H
8169 # include <stdio.h>
8170 # include <time.h>
8171 # include <wchar.h>
8172 #endif
8173
8174
8175 #ifdef INT8_MAX
8176 int8_t a1 = INT8_MAX;
8177 int8_t a1min = INT8_MIN;
8178 #endif
8179 #ifdef INT16_MAX
8180 int16_t a2 = INT16_MAX;
8181 int16_t a2min = INT16_MIN;
8182 #endif
8183 #ifdef INT32_MAX
8184 int32_t a3 = INT32_MAX;
8185 int32_t a3min = INT32_MIN;
8186 #endif
8187 #ifdef INT64_MAX
8188 int64_t a4 = INT64_MAX;
8189 int64_t a4min = INT64_MIN;
8190 #endif
8191 #ifdef UINT8_MAX
8192 uint8_t b1 = UINT8_MAX;
8193 #else
8194 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
8195 #endif
8196 #ifdef UINT16_MAX
8197 uint16_t b2 = UINT16_MAX;
8198 #endif
8199 #ifdef UINT32_MAX
8200 uint32_t b3 = UINT32_MAX;
8201 #endif
8202 #ifdef UINT64_MAX
8203 uint64_t b4 = UINT64_MAX;
8204 #endif
8205 int_least8_t c1 = INT8_C (0x7f);
8206 int_least8_t c1max = INT_LEAST8_MAX;
8207 int_least8_t c1min = INT_LEAST8_MIN;
8208 int_least16_t c2 = INT16_C (0x7fff);
8209 int_least16_t c2max = INT_LEAST16_MAX;
8210 int_least16_t c2min = INT_LEAST16_MIN;
8211 int_least32_t c3 = INT32_C (0x7fffffff);
8212 int_least32_t c3max = INT_LEAST32_MAX;
8213 int_least32_t c3min = INT_LEAST32_MIN;
8214 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
8215 int_least64_t c4max = INT_LEAST64_MAX;
8216 int_least64_t c4min = INT_LEAST64_MIN;
8217 uint_least8_t d1 = UINT8_C (0xff);
8218 uint_least8_t d1max = UINT_LEAST8_MAX;
8219 uint_least16_t d2 = UINT16_C (0xffff);
8220 uint_least16_t d2max = UINT_LEAST16_MAX;
8221 uint_least32_t d3 = UINT32_C (0xffffffff);
8222 uint_least32_t d3max = UINT_LEAST32_MAX;
8223 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
8224 uint_least64_t d4max = UINT_LEAST64_MAX;
8225 int_fast8_t e1 = INT_FAST8_MAX;
8226 int_fast8_t e1min = INT_FAST8_MIN;
8227 int_fast16_t e2 = INT_FAST16_MAX;
8228 int_fast16_t e2min = INT_FAST16_MIN;
8229 int_fast32_t e3 = INT_FAST32_MAX;
8230 int_fast32_t e3min = INT_FAST32_MIN;
8231 int_fast64_t e4 = INT_FAST64_MAX;
8232 int_fast64_t e4min = INT_FAST64_MIN;
8233 uint_fast8_t f1 = UINT_FAST8_MAX;
8234 uint_fast16_t f2 = UINT_FAST16_MAX;
8235 uint_fast32_t f3 = UINT_FAST32_MAX;
8236 uint_fast64_t f4 = UINT_FAST64_MAX;
8237 #ifdef INTPTR_MAX
8238 intptr_t g = INTPTR_MAX;
8239 intptr_t gmin = INTPTR_MIN;
8240 #endif
8241 #ifdef UINTPTR_MAX
8242 uintptr_t h = UINTPTR_MAX;
8243 #endif
8244 intmax_t i = INTMAX_MAX;
8245 uintmax_t j = UINTMAX_MAX;
8246
8247 #include <limits.h> /* for CHAR_BIT */
8248 #define TYPE_MINIMUM(t) \
8249 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
8250 #define TYPE_MAXIMUM(t) \
8251 ((t) ((t) 0 < (t) -1 \
8252 ? (t) -1 \
8253 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
8254 struct s {
8255 int check_PTRDIFF:
8256 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
8257 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
8258 ? 1 : -1;
8259 /* Detect bug in FreeBSD 6.0 / ia64. */
8260 int check_SIG_ATOMIC:
8261 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
8262 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
8263 ? 1 : -1;
8264 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
8265 int check_WCHAR:
8266 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
8267 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
8268 ? 1 : -1;
8269 /* Detect bug in mingw. */
8270 int check_WINT:
8271 WINT_MIN == TYPE_MINIMUM (wint_t)
8272 && WINT_MAX == TYPE_MAXIMUM (wint_t)
8273 ? 1 : -1;
8274
8275 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
8276 int check_UINT8_C:
8277 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
8278 int check_UINT16_C:
8279 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
8280
8281 /* Detect bugs in OpenBSD 3.9 stdint.h. */
8282 #ifdef UINT8_MAX
8283 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
8284 #endif
8285 #ifdef UINT16_MAX
8286 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
8287 #endif
8288 #ifdef UINT32_MAX
8289 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
8290 #endif
8291 #ifdef UINT64_MAX
8292 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
8293 #endif
8294 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
8295 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
8296 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
8297 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
8298 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
8299 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
8300 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
8301 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
8302 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
8303 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
8304 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
8305 };
8306
8307 int
8308 main ()
8309 {
8310
8311 ;
8312 return 0;
8313 }
8314 _ACEOF
8315 if ac_fn_c_try_compile "$LINENO"; then :
8316 if test "$cross_compiling" = yes; then :
8317 gl_cv_header_working_stdint_h=yes
8318
8319 else
8320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8321 /* end confdefs.h. */
8322
8323
8324 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
8325 #include <stdint.h>
8326
8327
8328 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8329 included before <wchar.h>. */
8330 #include <stddef.h>
8331 #include <signal.h>
8332 #if HAVE_WCHAR_H
8333 # include <stdio.h>
8334 # include <time.h>
8335 # include <wchar.h>
8336 #endif
8337
8338
8339 #include <stdio.h>
8340 #include <string.h>
8341 #define MVAL(macro) MVAL1(macro)
8342 #define MVAL1(expression) #expression
8343 static const char *macro_values[] =
8344 {
8345 #ifdef INT8_MAX
8346 MVAL (INT8_MAX),
8347 #endif
8348 #ifdef INT16_MAX
8349 MVAL (INT16_MAX),
8350 #endif
8351 #ifdef INT32_MAX
8352 MVAL (INT32_MAX),
8353 #endif
8354 #ifdef INT64_MAX
8355 MVAL (INT64_MAX),
8356 #endif
8357 #ifdef UINT8_MAX
8358 MVAL (UINT8_MAX),
8359 #endif
8360 #ifdef UINT16_MAX
8361 MVAL (UINT16_MAX),
8362 #endif
8363 #ifdef UINT32_MAX
8364 MVAL (UINT32_MAX),
8365 #endif
8366 #ifdef UINT64_MAX
8367 MVAL (UINT64_MAX),
8368 #endif
8369 NULL
8370 };
8371
8372 int
8373 main ()
8374 {
8375
8376 const char **mv;
8377 for (mv = macro_values; *mv != NULL; mv++)
8378 {
8379 const char *value = *mv;
8380 /* Test whether it looks like a cast expression. */
8381 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
8382 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
8383 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
8384 || strncmp (value, "((int)"/*)*/, 6) == 0
8385 || strncmp (value, "((signed short)"/*)*/, 15) == 0
8386 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
8387 return mv - macro_values + 1;
8388 }
8389 return 0;
8390
8391 ;
8392 return 0;
8393 }
8394 _ACEOF
8395 if ac_fn_c_try_run "$LINENO"; then :
8396 gl_cv_header_working_stdint_h=yes
8397 fi
8398 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8399 conftest.$ac_objext conftest.beam conftest.$ac_ext
8400 fi
8401
8402
8403 fi
8404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8405
8406 fi
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
8408 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
8409 fi
8410 if test "$gl_cv_header_working_stdint_h" = yes; then
8411 STDINT_H=
8412 else
8413 for ac_header in sys/inttypes.h sys/bitypes.h
8414 do :
8415 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8416 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8417 eval as_val=\$$as_ac_Header
8418 if test "x$as_val" = x""yes; then :
8419 cat >>confdefs.h <<_ACEOF
8420 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8421 _ACEOF
8422
8423 fi
8424
8425 done
8426
8427 if test $ac_cv_header_sys_inttypes_h = yes; then
8428 HAVE_SYS_INTTYPES_H=1
8429 else
8430 HAVE_SYS_INTTYPES_H=0
8431 fi
8432
8433 if test $ac_cv_header_sys_bitypes_h = yes; then
8434 HAVE_SYS_BITYPES_H=1
8435 else
8436 HAVE_SYS_BITYPES_H=0
8437 fi
8438
8439
8440
8441
8442 if test $APPLE_UNIVERSAL_BUILD = 0; then
8443
8444
8445 for gltype in ptrdiff_t size_t ; do
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8447 $as_echo_n "checking for bit size of $gltype... " >&6; }
8448 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8449 $as_echo_n "(cached) " >&6
8450 else
8451 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8452 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8453 included before <wchar.h>. */
8454 #include <stddef.h>
8455 #include <signal.h>
8456 #if HAVE_WCHAR_H
8457 # include <stdio.h>
8458 # include <time.h>
8459 # include <wchar.h>
8460 #endif
8461
8462 #include <limits.h>"; then :
8463
8464 else
8465 result=unknown
8466 fi
8467
8468 eval gl_cv_bitsizeof_${gltype}=\$result
8469
8470 fi
8471 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8473 $as_echo "$ac_res" >&6; }
8474 eval result=\$gl_cv_bitsizeof_${gltype}
8475 if test $result = unknown; then
8476 result=0
8477 fi
8478 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8479 cat >>confdefs.h <<_ACEOF
8480 #define BITSIZEOF_${GLTYPE} $result
8481 _ACEOF
8482
8483 eval BITSIZEOF_${GLTYPE}=\$result
8484 done
8485
8486
8487 fi
8488
8489
8490 for gltype in sig_atomic_t wchar_t wint_t ; do
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8492 $as_echo_n "checking for bit size of $gltype... " >&6; }
8493 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8494 $as_echo_n "(cached) " >&6
8495 else
8496 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8497 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8498 included before <wchar.h>. */
8499 #include <stddef.h>
8500 #include <signal.h>
8501 #if HAVE_WCHAR_H
8502 # include <stdio.h>
8503 # include <time.h>
8504 # include <wchar.h>
8505 #endif
8506
8507 #include <limits.h>"; then :
8508
8509 else
8510 result=unknown
8511 fi
8512
8513 eval gl_cv_bitsizeof_${gltype}=\$result
8514
8515 fi
8516 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8518 $as_echo "$ac_res" >&6; }
8519 eval result=\$gl_cv_bitsizeof_${gltype}
8520 if test $result = unknown; then
8521 result=0
8522 fi
8523 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8524 cat >>confdefs.h <<_ACEOF
8525 #define BITSIZEOF_${GLTYPE} $result
8526 _ACEOF
8527
8528 eval BITSIZEOF_${GLTYPE}=\$result
8529 done
8530
8531
8532
8533
8534 for gltype in sig_atomic_t wchar_t wint_t ; do
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
8536 $as_echo_n "checking whether $gltype is signed... " >&6; }
8537 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
8538 $as_echo_n "(cached) " >&6
8539 else
8540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541 /* end confdefs.h. */
8542
8543 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8544 included before <wchar.h>. */
8545 #include <stddef.h>
8546 #include <signal.h>
8547 #if HAVE_WCHAR_H
8548 # include <stdio.h>
8549 # include <time.h>
8550 # include <wchar.h>
8551 #endif
8552
8553 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
8554 int
8555 main ()
8556 {
8557
8558 ;
8559 return 0;
8560 }
8561 _ACEOF
8562 if ac_fn_c_try_compile "$LINENO"; then :
8563 result=yes
8564 else
8565 result=no
8566 fi
8567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8568 eval gl_cv_type_${gltype}_signed=\$result
8569
8570 fi
8571 eval ac_res=\$gl_cv_type_${gltype}_signed
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8573 $as_echo "$ac_res" >&6; }
8574 eval result=\$gl_cv_type_${gltype}_signed
8575 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8576 if test "$result" = yes; then
8577 cat >>confdefs.h <<_ACEOF
8578 #define HAVE_SIGNED_${GLTYPE} 1
8579 _ACEOF
8580
8581 eval HAVE_SIGNED_${GLTYPE}=1
8582 else
8583 eval HAVE_SIGNED_${GLTYPE}=0
8584 fi
8585 done
8586
8587
8588 gl_cv_type_ptrdiff_t_signed=yes
8589 gl_cv_type_size_t_signed=no
8590 if test $APPLE_UNIVERSAL_BUILD = 0; then
8591
8592
8593 for gltype in ptrdiff_t size_t ; do
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8595 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8596 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8597 $as_echo_n "(cached) " >&6
8598 else
8599 eval gl_cv_type_${gltype}_suffix=no
8600 eval result=\$gl_cv_type_${gltype}_signed
8601 if test "$result" = yes; then
8602 glsufu=
8603 else
8604 glsufu=u
8605 fi
8606 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8607 case $glsuf in
8608 '') gltype1='int';;
8609 l) gltype1='long int';;
8610 ll) gltype1='long long int';;
8611 i64) gltype1='__int64';;
8612 u) gltype1='unsigned int';;
8613 ul) gltype1='unsigned long int';;
8614 ull) gltype1='unsigned long long int';;
8615 ui64)gltype1='unsigned __int64';;
8616 esac
8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h. */
8619
8620 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8621 included before <wchar.h>. */
8622 #include <stddef.h>
8623 #include <signal.h>
8624 #if HAVE_WCHAR_H
8625 # include <stdio.h>
8626 # include <time.h>
8627 # include <wchar.h>
8628 #endif
8629
8630 extern $gltype foo;
8631 extern $gltype1 foo;
8632 int
8633 main ()
8634 {
8635
8636 ;
8637 return 0;
8638 }
8639 _ACEOF
8640 if ac_fn_c_try_compile "$LINENO"; then :
8641 eval gl_cv_type_${gltype}_suffix=\$glsuf
8642 fi
8643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8644 eval result=\$gl_cv_type_${gltype}_suffix
8645 test "$result" != no && break
8646 done
8647 fi
8648 eval ac_res=\$gl_cv_type_${gltype}_suffix
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8650 $as_echo "$ac_res" >&6; }
8651 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8652 eval result=\$gl_cv_type_${gltype}_suffix
8653 test "$result" = no && result=
8654 eval ${GLTYPE}_SUFFIX=\$result
8655 cat >>confdefs.h <<_ACEOF
8656 #define ${GLTYPE}_SUFFIX $result
8657 _ACEOF
8658
8659 done
8660
8661
8662 fi
8663
8664
8665 for gltype in sig_atomic_t wchar_t wint_t ; do
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8667 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8668 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8669 $as_echo_n "(cached) " >&6
8670 else
8671 eval gl_cv_type_${gltype}_suffix=no
8672 eval result=\$gl_cv_type_${gltype}_signed
8673 if test "$result" = yes; then
8674 glsufu=
8675 else
8676 glsufu=u
8677 fi
8678 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8679 case $glsuf in
8680 '') gltype1='int';;
8681 l) gltype1='long int';;
8682 ll) gltype1='long long int';;
8683 i64) gltype1='__int64';;
8684 u) gltype1='unsigned int';;
8685 ul) gltype1='unsigned long int';;
8686 ull) gltype1='unsigned long long int';;
8687 ui64)gltype1='unsigned __int64';;
8688 esac
8689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8690 /* end confdefs.h. */
8691
8692 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8693 included before <wchar.h>. */
8694 #include <stddef.h>
8695 #include <signal.h>
8696 #if HAVE_WCHAR_H
8697 # include <stdio.h>
8698 # include <time.h>
8699 # include <wchar.h>
8700 #endif
8701
8702 extern $gltype foo;
8703 extern $gltype1 foo;
8704 int
8705 main ()
8706 {
8707
8708 ;
8709 return 0;
8710 }
8711 _ACEOF
8712 if ac_fn_c_try_compile "$LINENO"; then :
8713 eval gl_cv_type_${gltype}_suffix=\$glsuf
8714 fi
8715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8716 eval result=\$gl_cv_type_${gltype}_suffix
8717 test "$result" != no && break
8718 done
8719 fi
8720 eval ac_res=\$gl_cv_type_${gltype}_suffix
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8722 $as_echo "$ac_res" >&6; }
8723 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8724 eval result=\$gl_cv_type_${gltype}_suffix
8725 test "$result" = no && result=
8726 eval ${GLTYPE}_SUFFIX=\$result
8727 cat >>confdefs.h <<_ACEOF
8728 #define ${GLTYPE}_SUFFIX $result
8729 _ACEOF
8730
8731 done
8732
8733
8734
8735 if test $BITSIZEOF_WINT_T -lt 32; then
8736 BITSIZEOF_WINT_T=32
8737 fi
8738
8739 STDINT_H=stdint.h
8740 fi
8741
8742 if test -n "$STDINT_H"; then
8743 GL_GENERATE_STDINT_H_TRUE=
8744 GL_GENERATE_STDINT_H_FALSE='#'
8745 else
8746 GL_GENERATE_STDINT_H_TRUE='#'
8747 GL_GENERATE_STDINT_H_FALSE=
8748 fi
8749
8750
8751
8752
8753
8754 GNULIB_IMAXABS=0;
8755 GNULIB_IMAXDIV=0;
8756 GNULIB_STRTOIMAX=0;
8757 GNULIB_STRTOUMAX=0;
8758 HAVE_DECL_IMAXABS=1;
8759 HAVE_DECL_IMAXDIV=1;
8760 HAVE_DECL_STRTOIMAX=1;
8761 HAVE_DECL_STRTOUMAX=1;
8762 REPLACE_STRTOIMAX=0;
8763 REPLACE_STRTOUMAX=0;
8764 INT32_MAX_LT_INTMAX_MAX=1;
8765 INT64_MAX_EQ_LONG_MAX='defined _LP64';
8766 PRI_MACROS_BROKEN=0;
8767 PRIPTR_PREFIX=__PRIPTR_PREFIX;
8768 UINT32_MAX_LT_UINTMAX_MAX=1;
8769 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785 if test $gl_cv_have_include_next = yes; then
8786 gl_cv_next_inttypes_h='<'inttypes.h'>'
8787 else
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
8789 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
8790 if test "${gl_cv_next_inttypes_h+set}" = set; then :
8791 $as_echo_n "(cached) " >&6
8792 else
8793
8794 if test $ac_cv_header_inttypes_h = yes; then
8795
8796
8797
8798
8799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8800 /* end confdefs.h. */
8801 #include <inttypes.h>
8802 _ACEOF
8803 case "$host_os" in
8804 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8805 *) gl_absname_cpp="$ac_cpp" ;;
8806 esac
8807
8808 case "$host_os" in
8809 mingw*)
8810 gl_dirsep_regex='[/\\]'
8811 ;;
8812 *)
8813 gl_dirsep_regex='\/'
8814 ;;
8815 esac
8816 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8817 gl_header_literal_regex=`echo 'inttypes.h' \
8818 | sed -e "$gl_make_literal_regex_sed"`
8819 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8820 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8821 s|^/[^/]|//&|
8822 p
8823 q
8824 }'
8825
8826 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8827 sed -n "$gl_absolute_header_sed"`
8828
8829 gl_header=$gl_cv_absolute_inttypes_h
8830 gl_cv_next_inttypes_h='"'$gl_header'"'
8831 else
8832 gl_cv_next_inttypes_h='<'inttypes.h'>'
8833 fi
8834
8835
8836 fi
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
8838 $as_echo "$gl_cv_next_inttypes_h" >&6; }
8839 fi
8840 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
8841
8842 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8843 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8844 gl_next_as_first_directive='<'inttypes.h'>'
8845 else
8846 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8847 gl_next_as_first_directive=$gl_cv_next_inttypes_h
8848 fi
8849 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
8850
8851
8852
8853
8854
8855
8856
8857
8858 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
8859 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8861 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8862 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8863 $as_echo_n "(cached) " >&6
8864 else
8865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8866 /* end confdefs.h. */
8867 #include <inttypes.h>
8868
8869 int
8870 main ()
8871 {
8872 #undef $gl_func
8873 (void) $gl_func;
8874 ;
8875 return 0;
8876 }
8877 _ACEOF
8878 if ac_fn_c_try_compile "$LINENO"; then :
8879 eval "$as_gl_Symbol=yes"
8880 else
8881 eval "$as_gl_Symbol=no"
8882 fi
8883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8884 fi
8885 eval ac_res=\$$as_gl_Symbol
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8887 $as_echo "$ac_res" >&6; }
8888 eval as_val=\$$as_gl_Symbol
8889 if test "x$as_val" = x""yes; then :
8890 cat >>confdefs.h <<_ACEOF
8891 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8892 _ACEOF
8893
8894 eval ac_cv_have_decl_$gl_func=yes
8895 fi
8896 done
8897
8898
8899
8900 for ac_header in inttypes.h
8901 do :
8902 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
8903 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
8904 cat >>confdefs.h <<_ACEOF
8905 #define HAVE_INTTYPES_H 1
8906 _ACEOF
8907
8908 fi
8909
8910 done
8911
8912 if test $ac_cv_header_inttypes_h = yes; then
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
8914 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
8915 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
8916 $as_echo_n "(cached) " >&6
8917 else
8918
8919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8920 /* end confdefs.h. */
8921
8922 #include <inttypes.h>
8923 #ifdef PRId32
8924 char *p = PRId32;
8925 #endif
8926
8927 int
8928 main ()
8929 {
8930
8931 ;
8932 return 0;
8933 }
8934 _ACEOF
8935 if ac_fn_c_try_compile "$LINENO"; then :
8936 gt_cv_inttypes_pri_broken=no
8937 else
8938 gt_cv_inttypes_pri_broken=yes
8939 fi
8940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8941
8942 fi
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
8944 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
8945 fi
8946 if test "$gt_cv_inttypes_pri_broken" = yes; then
8947
8948 cat >>confdefs.h <<_ACEOF
8949 #define PRI_MACROS_BROKEN 1
8950 _ACEOF
8951
8952 PRI_MACROS_BROKEN=1
8953 else
8954 PRI_MACROS_BROKEN=0
8955 fi
8956
8957
8958
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
8960 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
8961 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
8962 $as_echo_n "(cached) " >&6
8963 else
8964
8965 if test "$cross_compiling" = yes; then :
8966
8967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8968 /* end confdefs.h. */
8969
8970 #if defined arm || defined __arm || defined __arm__
8971 mixed_endianness
8972 #endif
8973
8974 _ACEOF
8975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8976 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
8977 gl_cv_cc_double_expbit0="unknown"
8978 else
8979
8980 :
8981 if test "${ac_cv_c_bigendian+set}" = set; then :
8982 $as_echo_n "(cached) " >&6
8983 else
8984 ac_cv_c_bigendian=unknown
8985 # See if we're dealing with a universal compiler.
8986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8987 /* end confdefs.h. */
8988 #ifndef __APPLE_CC__
8989 not a universal capable compiler
8990 #endif
8991 typedef int dummy;
8992
8993 _ACEOF
8994 if ac_fn_c_try_compile "$LINENO"; then :
8995
8996 # Check for potential -arch flags. It is not universal unless
8997 # there are at least two -arch flags with different values.
8998 ac_arch=
8999 ac_prev=
9000 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9001 if test -n "$ac_prev"; then
9002 case $ac_word in
9003 i?86 | x86_64 | ppc | ppc64)
9004 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9005 ac_arch=$ac_word
9006 else
9007 ac_cv_c_bigendian=universal
9008 break
9009 fi
9010 ;;
9011 esac
9012 ac_prev=
9013 elif test "x$ac_word" = "x-arch"; then
9014 ac_prev=arch
9015 fi
9016 done
9017 fi
9018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9019 if test $ac_cv_c_bigendian = unknown; then
9020 # See if sys/param.h defines the BYTE_ORDER macro.
9021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9022 /* end confdefs.h. */
9023 #include <sys/types.h>
9024 #include <sys/param.h>
9025
9026 int
9027 main ()
9028 {
9029 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9030 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9031 && LITTLE_ENDIAN)
9032 bogus endian macros
9033 #endif
9034
9035 ;
9036 return 0;
9037 }
9038 _ACEOF
9039 if ac_fn_c_try_compile "$LINENO"; then :
9040 # It does; now see whether it defined to BIG_ENDIAN or not.
9041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9042 /* end confdefs.h. */
9043 #include <sys/types.h>
9044 #include <sys/param.h>
9045
9046 int
9047 main ()
9048 {
9049 #if BYTE_ORDER != BIG_ENDIAN
9050 not big endian
9051 #endif
9052
9053 ;
9054 return 0;
9055 }
9056 _ACEOF
9057 if ac_fn_c_try_compile "$LINENO"; then :
9058 ac_cv_c_bigendian=yes
9059 else
9060 ac_cv_c_bigendian=no
9061 fi
9062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9063 fi
9064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9065 fi
9066 if test $ac_cv_c_bigendian = unknown; then
9067 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9069 /* end confdefs.h. */
9070 #include <limits.h>
9071
9072 int
9073 main ()
9074 {
9075 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9076 bogus endian macros
9077 #endif
9078
9079 ;
9080 return 0;
9081 }
9082 _ACEOF
9083 if ac_fn_c_try_compile "$LINENO"; then :
9084 # It does; now see whether it defined to _BIG_ENDIAN or not.
9085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086 /* end confdefs.h. */
9087 #include <limits.h>
9088
9089 int
9090 main ()
9091 {
9092 #ifndef _BIG_ENDIAN
9093 not big endian
9094 #endif
9095
9096 ;
9097 return 0;
9098 }
9099 _ACEOF
9100 if ac_fn_c_try_compile "$LINENO"; then :
9101 ac_cv_c_bigendian=yes
9102 else
9103 ac_cv_c_bigendian=no
9104 fi
9105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9106 fi
9107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9108 fi
9109 if test $ac_cv_c_bigendian = unknown; then
9110 # Compile a test program.
9111 if test "$cross_compiling" = yes; then :
9112 # Try to guess by grepping values from an object file.
9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114 /* end confdefs.h. */
9115 short int ascii_mm[] =
9116 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9117 short int ascii_ii[] =
9118 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9119 int use_ascii (int i) {
9120 return ascii_mm[i] + ascii_ii[i];
9121 }
9122 short int ebcdic_ii[] =
9123 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9124 short int ebcdic_mm[] =
9125 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9126 int use_ebcdic (int i) {
9127 return ebcdic_mm[i] + ebcdic_ii[i];
9128 }
9129 extern int foo;
9130
9131 int
9132 main ()
9133 {
9134 return use_ascii (foo) == use_ebcdic (foo);
9135 ;
9136 return 0;
9137 }
9138 _ACEOF
9139 if ac_fn_c_try_compile "$LINENO"; then :
9140 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9141 ac_cv_c_bigendian=yes
9142 fi
9143 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9144 if test "$ac_cv_c_bigendian" = unknown; then
9145 ac_cv_c_bigendian=no
9146 else
9147 # finding both strings is unlikely to happen, but who knows?
9148 ac_cv_c_bigendian=unknown
9149 fi
9150 fi
9151 fi
9152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9153 else
9154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9155 /* end confdefs.h. */
9156 $ac_includes_default
9157 int
9158 main ()
9159 {
9160
9161 /* Are we little or big endian? From Harbison&Steele. */
9162 union
9163 {
9164 long int l;
9165 char c[sizeof (long int)];
9166 } u;
9167 u.l = 1;
9168 return u.c[sizeof (long int) - 1] == 1;
9169
9170 ;
9171 return 0;
9172 }
9173 _ACEOF
9174 if ac_fn_c_try_run "$LINENO"; then :
9175 ac_cv_c_bigendian=no
9176 else
9177 ac_cv_c_bigendian=yes
9178 fi
9179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9180 conftest.$ac_objext conftest.beam conftest.$ac_ext
9181 fi
9182
9183 fi
9184 fi
9185 :
9186 case $ac_cv_c_bigendian in #(
9187 yes)
9188 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
9189 no)
9190 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
9191 universal)
9192
9193 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9194
9195 ;; #(
9196 *)
9197 gl_cv_cc_double_expbit0="unknown" ;;
9198 esac
9199
9200
9201 fi
9202 rm -f conftest*
9203
9204
9205 else
9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207 /* end confdefs.h. */
9208
9209 #include <float.h>
9210 #include <stddef.h>
9211 #include <stdio.h>
9212 #include <string.h>
9213 #define NWORDS \
9214 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
9215 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
9216 static unsigned int ored_words[NWORDS];
9217 static unsigned int anded_words[NWORDS];
9218 static void add_to_ored_words (double x)
9219 {
9220 memory_double m;
9221 size_t i;
9222 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
9223 memset (&m, 0, sizeof (memory_double));
9224 m.value = x;
9225 for (i = 0; i < NWORDS; i++)
9226 {
9227 ored_words[i] |= m.word[i];
9228 anded_words[i] &= m.word[i];
9229 }
9230 }
9231 int main ()
9232 {
9233 size_t j;
9234 FILE *fp = fopen ("conftest.out", "w");
9235 if (fp == NULL)
9236 return 1;
9237 for (j = 0; j < NWORDS; j++)
9238 anded_words[j] = ~ (unsigned int) 0;
9239 add_to_ored_words (0.25);
9240 add_to_ored_words (0.5);
9241 add_to_ored_words (1.0);
9242 add_to_ored_words (2.0);
9243 add_to_ored_words (4.0);
9244 /* Remove bits that are common (e.g. if representation of the first mantissa
9245 bit is explicit). */
9246 for (j = 0; j < NWORDS; j++)
9247 ored_words[j] &= ~anded_words[j];
9248 /* Now find the nonzero word. */
9249 for (j = 0; j < NWORDS; j++)
9250 if (ored_words[j] != 0)
9251 break;
9252 if (j < NWORDS)
9253 {
9254 size_t i;
9255 for (i = j + 1; i < NWORDS; i++)
9256 if (ored_words[i] != 0)
9257 {
9258 fprintf (fp, "unknown");
9259 return (fclose (fp) != 0);
9260 }
9261 for (i = 0; ; i++)
9262 if ((ored_words[j] >> i) & 1)
9263 {
9264 fprintf (fp, "word %d bit %d", (int) j, (int) i);
9265 return (fclose (fp) != 0);
9266 }
9267 }
9268 fprintf (fp, "unknown");
9269 return (fclose (fp) != 0);
9270 }
9271
9272 _ACEOF
9273 if ac_fn_c_try_run "$LINENO"; then :
9274 gl_cv_cc_double_expbit0=`cat conftest.out`
9275 else
9276 gl_cv_cc_double_expbit0="unknown"
9277 fi
9278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9279 conftest.$ac_objext conftest.beam conftest.$ac_ext
9280 fi
9281
9282 rm -f conftest.out
9283
9284 fi
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
9286 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
9287 case "$gl_cv_cc_double_expbit0" in
9288 word*bit*)
9289 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
9290 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
9291
9292 cat >>confdefs.h <<_ACEOF
9293 #define DBL_EXPBIT0_WORD $word
9294 _ACEOF
9295
9296
9297 cat >>confdefs.h <<_ACEOF
9298 #define DBL_EXPBIT0_BIT $bit
9299 _ACEOF
9300
9301 ;;
9302 esac
9303
9304
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9306 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
9307 if test "${ac_cv_c_bigendian+set}" = set; then :
9308 $as_echo_n "(cached) " >&6
9309 else
9310 ac_cv_c_bigendian=unknown
9311 # See if we're dealing with a universal compiler.
9312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9313 /* end confdefs.h. */
9314 #ifndef __APPLE_CC__
9315 not a universal capable compiler
9316 #endif
9317 typedef int dummy;
9318
9319 _ACEOF
9320 if ac_fn_c_try_compile "$LINENO"; then :
9321
9322 # Check for potential -arch flags. It is not universal unless
9323 # there are at least two -arch flags with different values.
9324 ac_arch=
9325 ac_prev=
9326 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9327 if test -n "$ac_prev"; then
9328 case $ac_word in
9329 i?86 | x86_64 | ppc | ppc64)
9330 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9331 ac_arch=$ac_word
9332 else
9333 ac_cv_c_bigendian=universal
9334 break
9335 fi
9336 ;;
9337 esac
9338 ac_prev=
9339 elif test "x$ac_word" = "x-arch"; then
9340 ac_prev=arch
9341 fi
9342 done
9343 fi
9344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9345 if test $ac_cv_c_bigendian = unknown; then
9346 # See if sys/param.h defines the BYTE_ORDER macro.
9347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9348 /* end confdefs.h. */
9349 #include <sys/types.h>
9350 #include <sys/param.h>
9351
9352 int
9353 main ()
9354 {
9355 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9356 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9357 && LITTLE_ENDIAN)
9358 bogus endian macros
9359 #endif
9360
9361 ;
9362 return 0;
9363 }
9364 _ACEOF
9365 if ac_fn_c_try_compile "$LINENO"; then :
9366 # It does; now see whether it defined to BIG_ENDIAN or not.
9367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9368 /* end confdefs.h. */
9369 #include <sys/types.h>
9370 #include <sys/param.h>
9371
9372 int
9373 main ()
9374 {
9375 #if BYTE_ORDER != BIG_ENDIAN
9376 not big endian
9377 #endif
9378
9379 ;
9380 return 0;
9381 }
9382 _ACEOF
9383 if ac_fn_c_try_compile "$LINENO"; then :
9384 ac_cv_c_bigendian=yes
9385 else
9386 ac_cv_c_bigendian=no
9387 fi
9388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9389 fi
9390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9391 fi
9392 if test $ac_cv_c_bigendian = unknown; then
9393 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9395 /* end confdefs.h. */
9396 #include <limits.h>
9397
9398 int
9399 main ()
9400 {
9401 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9402 bogus endian macros
9403 #endif
9404
9405 ;
9406 return 0;
9407 }
9408 _ACEOF
9409 if ac_fn_c_try_compile "$LINENO"; then :
9410 # It does; now see whether it defined to _BIG_ENDIAN or not.
9411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412 /* end confdefs.h. */
9413 #include <limits.h>
9414
9415 int
9416 main ()
9417 {
9418 #ifndef _BIG_ENDIAN
9419 not big endian
9420 #endif
9421
9422 ;
9423 return 0;
9424 }
9425 _ACEOF
9426 if ac_fn_c_try_compile "$LINENO"; then :
9427 ac_cv_c_bigendian=yes
9428 else
9429 ac_cv_c_bigendian=no
9430 fi
9431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9432 fi
9433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9434 fi
9435 if test $ac_cv_c_bigendian = unknown; then
9436 # Compile a test program.
9437 if test "$cross_compiling" = yes; then :
9438 # Try to guess by grepping values from an object file.
9439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440 /* end confdefs.h. */
9441 short int ascii_mm[] =
9442 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9443 short int ascii_ii[] =
9444 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9445 int use_ascii (int i) {
9446 return ascii_mm[i] + ascii_ii[i];
9447 }
9448 short int ebcdic_ii[] =
9449 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9450 short int ebcdic_mm[] =
9451 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9452 int use_ebcdic (int i) {
9453 return ebcdic_mm[i] + ebcdic_ii[i];
9454 }
9455 extern int foo;
9456
9457 int
9458 main ()
9459 {
9460 return use_ascii (foo) == use_ebcdic (foo);
9461 ;
9462 return 0;
9463 }
9464 _ACEOF
9465 if ac_fn_c_try_compile "$LINENO"; then :
9466 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9467 ac_cv_c_bigendian=yes
9468 fi
9469 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9470 if test "$ac_cv_c_bigendian" = unknown; then
9471 ac_cv_c_bigendian=no
9472 else
9473 # finding both strings is unlikely to happen, but who knows?
9474 ac_cv_c_bigendian=unknown
9475 fi
9476 fi
9477 fi
9478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9479 else
9480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481 /* end confdefs.h. */
9482 $ac_includes_default
9483 int
9484 main ()
9485 {
9486
9487 /* Are we little or big endian? From Harbison&Steele. */
9488 union
9489 {
9490 long int l;
9491 char c[sizeof (long int)];
9492 } u;
9493 u.l = 1;
9494 return u.c[sizeof (long int) - 1] == 1;
9495
9496 ;
9497 return 0;
9498 }
9499 _ACEOF
9500 if ac_fn_c_try_run "$LINENO"; then :
9501 ac_cv_c_bigendian=no
9502 else
9503 ac_cv_c_bigendian=yes
9504 fi
9505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9506 conftest.$ac_objext conftest.beam conftest.$ac_ext
9507 fi
9508
9509 fi
9510 fi
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9512 $as_echo "$ac_cv_c_bigendian" >&6; }
9513 case $ac_cv_c_bigendian in #(
9514 yes)
9515 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9516 ;; #(
9517 no)
9518 ;; #(
9519 universal)
9520
9521 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9522
9523 ;; #(
9524 *)
9525 as_fn_error "unknown endianness
9526 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9527 esac
9528
9529
9530
9531
9532 case "$host_os" in
9533 mingw*)
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
9535 $as_echo_n "checking for 64-bit off_t... " >&6; }
9536 if test "${gl_cv_type_off_t_64+set}" = set; then :
9537 $as_echo_n "(cached) " >&6
9538 else
9539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540 /* end confdefs.h. */
9541 #include <sys/types.h>
9542 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
9543
9544 int
9545 main ()
9546 {
9547
9548 ;
9549 return 0;
9550 }
9551 _ACEOF
9552 if ac_fn_c_try_compile "$LINENO"; then :
9553 gl_cv_type_off_t_64=yes
9554 else
9555 gl_cv_type_off_t_64=no
9556 fi
9557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9558
9559 fi
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
9561 $as_echo "$gl_cv_type_off_t_64" >&6; }
9562 if test $gl_cv_type_off_t_64 = no; then
9563 WINDOWS_64_BIT_OFF_T=1
9564 else
9565 WINDOWS_64_BIT_OFF_T=0
9566 fi
9567 WINDOWS_64_BIT_ST_SIZE=1
9568 ;;
9569 *)
9570 WINDOWS_64_BIT_OFF_T=0
9571 WINDOWS_64_BIT_ST_SIZE=0
9572 ;;
9573 esac
9574
9575
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9577 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9578 if test "${am_cv_langinfo_codeset+set}" = set; then :
9579 $as_echo_n "(cached) " >&6
9580 else
9581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9582 /* end confdefs.h. */
9583 #include <langinfo.h>
9584 int
9585 main ()
9586 {
9587 char* cs = nl_langinfo(CODESET); return !cs;
9588 ;
9589 return 0;
9590 }
9591 _ACEOF
9592 if ac_fn_c_try_link "$LINENO"; then :
9593 am_cv_langinfo_codeset=yes
9594 else
9595 am_cv_langinfo_codeset=no
9596 fi
9597 rm -f core conftest.err conftest.$ac_objext \
9598 conftest$ac_exeext conftest.$ac_ext
9599
9600 fi
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9602 $as_echo "$am_cv_langinfo_codeset" >&6; }
9603 if test $am_cv_langinfo_codeset = yes; then
9604
9605 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9606
9607 fi
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
9619 $as_echo_n "checking for working fcntl.h... " >&6; }
9620 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
9621 $as_echo_n "(cached) " >&6
9622 else
9623 if test "$cross_compiling" = yes; then :
9624 gl_cv_header_working_fcntl_h=cross-compiling
9625 else
9626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627 /* end confdefs.h. */
9628 #include <sys/types.h>
9629 #include <sys/stat.h>
9630 #if HAVE_UNISTD_H
9631 # include <unistd.h>
9632 #else /* on Windows with MSVC */
9633 # include <io.h>
9634 # include <stdlib.h>
9635 # defined sleep(n) _sleep ((n) * 1000)
9636 #endif
9637 #include <fcntl.h>
9638 #ifndef O_NOATIME
9639 #define O_NOATIME 0
9640 #endif
9641 #ifndef O_NOFOLLOW
9642 #define O_NOFOLLOW 0
9643 #endif
9644 static int const constants[] =
9645 {
9646 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
9647 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
9648 };
9649
9650 int
9651 main ()
9652 {
9653
9654 int result = !constants;
9655 #if HAVE_SYMLINK
9656 {
9657 static char const sym[] = "conftest.sym";
9658 if (symlink ("/dev/null", sym) != 0)
9659 result |= 2;
9660 else
9661 {
9662 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
9663 if (fd >= 0)
9664 {
9665 close (fd);
9666 result |= 4;
9667 }
9668 }
9669 if (unlink (sym) != 0 || symlink (".", sym) != 0)
9670 result |= 2;
9671 else
9672 {
9673 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
9674 if (fd >= 0)
9675 {
9676 close (fd);
9677 result |= 4;
9678 }
9679 }
9680 unlink (sym);
9681 }
9682 #endif
9683 {
9684 static char const file[] = "confdefs.h";
9685 int fd = open (file, O_RDONLY | O_NOATIME);
9686 if (fd < 0)
9687 result |= 8;
9688 else
9689 {
9690 struct stat st0;
9691 if (fstat (fd, &st0) != 0)
9692 result |= 16;
9693 else
9694 {
9695 char c;
9696 sleep (1);
9697 if (read (fd, &c, 1) != 1)
9698 result |= 24;
9699 else
9700 {
9701 if (close (fd) != 0)
9702 result |= 32;
9703 else
9704 {
9705 struct stat st1;
9706 if (stat (file, &st1) != 0)
9707 result |= 40;
9708 else
9709 if (st0.st_atime != st1.st_atime)
9710 result |= 64;
9711 }
9712 }
9713 }
9714 }
9715 }
9716 return result;
9717 ;
9718 return 0;
9719 }
9720 _ACEOF
9721 if ac_fn_c_try_run "$LINENO"; then :
9722 gl_cv_header_working_fcntl_h=yes
9723 else
9724 case $? in #(
9725 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
9726 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
9727 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
9728 *) gl_cv_header_working_fcntl_h='no';;
9729 esac
9730 fi
9731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9732 conftest.$ac_objext conftest.beam conftest.$ac_ext
9733 fi
9734
9735 fi
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
9737 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
9738
9739 case $gl_cv_header_working_fcntl_h in #(
9740 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
9741 *) ac_val=1;;
9742 esac
9743
9744 cat >>confdefs.h <<_ACEOF
9745 #define HAVE_WORKING_O_NOATIME $ac_val
9746 _ACEOF
9747
9748
9749 case $gl_cv_header_working_fcntl_h in #(
9750 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
9751 *) ac_val=1;;
9752 esac
9753
9754 cat >>confdefs.h <<_ACEOF
9755 #define HAVE_WORKING_O_NOFOLLOW $ac_val
9756 _ACEOF
9757
9758
9759 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
9760 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
9761 ac_have_decl=1
9762 else
9763 ac_have_decl=0
9764 fi
9765
9766 cat >>confdefs.h <<_ACEOF
9767 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
9768 _ACEOF
9769
9770
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9772 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9773 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
9774 $as_echo_n "(cached) " >&6
9775 else
9776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777 /* end confdefs.h. */
9778
9779 #include <features.h>
9780 #ifdef __GNU_LIBRARY__
9781 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9782 Lucky GNU user
9783 #endif
9784 #endif
9785 #ifdef __UCLIBC__
9786 Lucky user
9787 #endif
9788
9789 _ACEOF
9790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9791 $EGREP "Lucky" >/dev/null 2>&1; then :
9792 ac_cv_gnu_library_2_1=yes
9793 else
9794 ac_cv_gnu_library_2_1=no
9795 fi
9796 rm -f conftest*
9797
9798
9799
9800 fi
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9802 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9803
9804 GLIBC21="$ac_cv_gnu_library_2_1"
9805
9806
9807
9808 GNULIB_FCHMODAT=0;
9809 GNULIB_FSTAT=0;
9810 GNULIB_FSTATAT=0;
9811 GNULIB_FUTIMENS=0;
9812 GNULIB_LCHMOD=0;
9813 GNULIB_LSTAT=0;
9814 GNULIB_MKDIRAT=0;
9815 GNULIB_MKFIFO=0;
9816 GNULIB_MKFIFOAT=0;
9817 GNULIB_MKNOD=0;
9818 GNULIB_MKNODAT=0;
9819 GNULIB_STAT=0;
9820 GNULIB_UTIMENSAT=0;
9821 HAVE_FCHMODAT=1;
9822 HAVE_FSTATAT=1;
9823 HAVE_FUTIMENS=1;
9824 HAVE_LCHMOD=1;
9825 HAVE_LSTAT=1;
9826 HAVE_MKDIRAT=1;
9827 HAVE_MKFIFO=1;
9828 HAVE_MKFIFOAT=1;
9829 HAVE_MKNOD=1;
9830 HAVE_MKNODAT=1;
9831 HAVE_UTIMENSAT=1;
9832 REPLACE_FSTAT=0;
9833 REPLACE_FSTATAT=0;
9834 REPLACE_FUTIMENS=0;
9835 REPLACE_LSTAT=0;
9836 REPLACE_MKDIR=0;
9837 REPLACE_MKFIFO=0;
9838 REPLACE_MKNOD=0;
9839 REPLACE_STAT=0;
9840 REPLACE_UTIMENSAT=0;
9841
9842
9843
9844
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
9846 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
9847 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
9848 $as_echo_n "(cached) " >&6
9849 else
9850 rm -f conftest.sym conftest.file
9851 echo >conftest.file
9852 if test "$cross_compiling" = yes; then :
9853 case "$host_os" in
9854 *-gnu*)
9855 # Guess yes on glibc systems.
9856 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
9857 *)
9858 # If we don't know, assume the worst.
9859 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
9860 esac
9861
9862 else
9863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9864 /* end confdefs.h. */
9865 $ac_includes_default
9866 int
9867 main ()
9868 {
9869 struct stat sbuf;
9870 if (symlink ("conftest.file", "conftest.sym") != 0)
9871 return 1;
9872 /* Linux will dereference the symlink and fail, as required by
9873 POSIX. That is better in the sense that it means we will not
9874 have to compile and use the lstat wrapper. */
9875 return lstat ("conftest.sym/", &sbuf) == 0;
9876
9877 ;
9878 return 0;
9879 }
9880 _ACEOF
9881 if ac_fn_c_try_run "$LINENO"; then :
9882 gl_cv_func_lstat_dereferences_slashed_symlink=yes
9883 else
9884 gl_cv_func_lstat_dereferences_slashed_symlink=no
9885 fi
9886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9887 conftest.$ac_objext conftest.beam conftest.$ac_ext
9888 fi
9889
9890 rm -f conftest.sym conftest.file
9891
9892 fi
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
9894 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9895 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
9896 *yes)
9897
9898 cat >>confdefs.h <<_ACEOF
9899 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9900 _ACEOF
9901
9902 ;;
9903 esac
9904
9905
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
9907 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
9908 if test "${gl_cv_func_malloc_posix+set}" = set; then :
9909 $as_echo_n "(cached) " >&6
9910 else
9911
9912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9913 /* end confdefs.h. */
9914
9915 int
9916 main ()
9917 {
9918 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
9919 choke me
9920 #endif
9921
9922 ;
9923 return 0;
9924 }
9925 _ACEOF
9926 if ac_fn_c_try_compile "$LINENO"; then :
9927 gl_cv_func_malloc_posix=yes
9928 else
9929 gl_cv_func_malloc_posix=no
9930 fi
9931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9932
9933 fi
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
9935 $as_echo "$gl_cv_func_malloc_posix" >&6; }
9936
9937
9938
9939 for ac_header in stdlib.h
9940 do :
9941 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
9942 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
9943 cat >>confdefs.h <<_ACEOF
9944 #define HAVE_STDLIB_H 1
9945 _ACEOF
9946
9947 fi
9948
9949 done
9950
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
9952 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
9953 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
9954 $as_echo_n "(cached) " >&6
9955 else
9956 if test "$cross_compiling" = yes; then :
9957 case "$host_os" in
9958 # Guess yes on platforms where we know the result.
9959 *-gnu* | freebsd* | netbsd* | openbsd* \
9960 | hpux* | solaris* | cygwin* | mingw*)
9961 ac_cv_func_malloc_0_nonnull=yes ;;
9962 # If we don't know, assume the worst.
9963 *) ac_cv_func_malloc_0_nonnull=no ;;
9964 esac
9965
9966 else
9967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968 /* end confdefs.h. */
9969 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
9970 # include <stdlib.h>
9971 #else
9972 char *malloc ();
9973 #endif
9974
9975 int
9976 main ()
9977 {
9978 return ! malloc (0);
9979 ;
9980 return 0;
9981 }
9982
9983 _ACEOF
9984 if ac_fn_c_try_run "$LINENO"; then :
9985 ac_cv_func_malloc_0_nonnull=yes
9986 else
9987 ac_cv_func_malloc_0_nonnull=no
9988 fi
9989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9990 conftest.$ac_objext conftest.beam conftest.$ac_ext
9991 fi
9992
9993
9994 fi
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
9996 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
9997 if test $ac_cv_func_malloc_0_nonnull = yes; then :
9998 gl_cv_func_malloc_0_nonnull=1
9999 else
10000 gl_cv_func_malloc_0_nonnull=0
10001 fi
10002
10003
10004 cat >>confdefs.h <<_ACEOF
10005 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
10006 _ACEOF
10007
10008
10009
10010
10011
10012 GNULIB_BTOWC=0;
10013 GNULIB_WCTOB=0;
10014 GNULIB_MBSINIT=0;
10015 GNULIB_MBRTOWC=0;
10016 GNULIB_MBRLEN=0;
10017 GNULIB_MBSRTOWCS=0;
10018 GNULIB_MBSNRTOWCS=0;
10019 GNULIB_WCRTOMB=0;
10020 GNULIB_WCSRTOMBS=0;
10021 GNULIB_WCSNRTOMBS=0;
10022 GNULIB_WCWIDTH=0;
10023 GNULIB_WMEMCHR=0;
10024 GNULIB_WMEMCMP=0;
10025 GNULIB_WMEMCPY=0;
10026 GNULIB_WMEMMOVE=0;
10027 GNULIB_WMEMSET=0;
10028 GNULIB_WCSLEN=0;
10029 GNULIB_WCSNLEN=0;
10030 GNULIB_WCSCPY=0;
10031 GNULIB_WCPCPY=0;
10032 GNULIB_WCSNCPY=0;
10033 GNULIB_WCPNCPY=0;
10034 GNULIB_WCSCAT=0;
10035 GNULIB_WCSNCAT=0;
10036 GNULIB_WCSCMP=0;
10037 GNULIB_WCSNCMP=0;
10038 GNULIB_WCSCASECMP=0;
10039 GNULIB_WCSNCASECMP=0;
10040 GNULIB_WCSCOLL=0;
10041 GNULIB_WCSXFRM=0;
10042 GNULIB_WCSDUP=0;
10043 GNULIB_WCSCHR=0;
10044 GNULIB_WCSRCHR=0;
10045 GNULIB_WCSCSPN=0;
10046 GNULIB_WCSSPN=0;
10047 GNULIB_WCSPBRK=0;
10048 GNULIB_WCSSTR=0;
10049 GNULIB_WCSTOK=0;
10050 GNULIB_WCSWIDTH=0;
10051 HAVE_BTOWC=1;
10052 HAVE_MBSINIT=1;
10053 HAVE_MBRTOWC=1;
10054 HAVE_MBRLEN=1;
10055 HAVE_MBSRTOWCS=1;
10056 HAVE_MBSNRTOWCS=1;
10057 HAVE_WCRTOMB=1;
10058 HAVE_WCSRTOMBS=1;
10059 HAVE_WCSNRTOMBS=1;
10060 HAVE_WMEMCHR=1;
10061 HAVE_WMEMCMP=1;
10062 HAVE_WMEMCPY=1;
10063 HAVE_WMEMMOVE=1;
10064 HAVE_WMEMSET=1;
10065 HAVE_WCSLEN=1;
10066 HAVE_WCSNLEN=1;
10067 HAVE_WCSCPY=1;
10068 HAVE_WCPCPY=1;
10069 HAVE_WCSNCPY=1;
10070 HAVE_WCPNCPY=1;
10071 HAVE_WCSCAT=1;
10072 HAVE_WCSNCAT=1;
10073 HAVE_WCSCMP=1;
10074 HAVE_WCSNCMP=1;
10075 HAVE_WCSCASECMP=1;
10076 HAVE_WCSNCASECMP=1;
10077 HAVE_WCSCOLL=1;
10078 HAVE_WCSXFRM=1;
10079 HAVE_WCSDUP=1;
10080 HAVE_WCSCHR=1;
10081 HAVE_WCSRCHR=1;
10082 HAVE_WCSCSPN=1;
10083 HAVE_WCSSPN=1;
10084 HAVE_WCSPBRK=1;
10085 HAVE_WCSSTR=1;
10086 HAVE_WCSTOK=1;
10087 HAVE_WCSWIDTH=1;
10088 HAVE_DECL_WCTOB=1;
10089 HAVE_DECL_WCWIDTH=1;
10090 REPLACE_MBSTATE_T=0;
10091 REPLACE_BTOWC=0;
10092 REPLACE_WCTOB=0;
10093 REPLACE_MBSINIT=0;
10094 REPLACE_MBRTOWC=0;
10095 REPLACE_MBRLEN=0;
10096 REPLACE_MBSRTOWCS=0;
10097 REPLACE_MBSNRTOWCS=0;
10098 REPLACE_WCRTOMB=0;
10099 REPLACE_WCSRTOMBS=0;
10100 REPLACE_WCSNRTOMBS=0;
10101 REPLACE_WCWIDTH=0;
10102 REPLACE_WCSWIDTH=0;
10103
10104
10105
10106
10107
10108
10109
10110
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
10112 $as_echo_n "checking for a traditional japanese locale... " >&6; }
10113 if test "${gt_cv_locale_ja+set}" = set; then :
10114 $as_echo_n "(cached) " >&6
10115 else
10116
10117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10118 /* end confdefs.h. */
10119
10120 #include <locale.h>
10121 #include <time.h>
10122 #if HAVE_LANGINFO_CODESET
10123 # include <langinfo.h>
10124 #endif
10125 #include <stdlib.h>
10126 #include <string.h>
10127 struct tm t;
10128 char buf[16];
10129 int main ()
10130 {
10131 const char *p;
10132 /* Check whether the given locale name is recognized by the system. */
10133 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10134 /* On native Windows, setlocale(category, "") looks at the system settings,
10135 not at the environment variables. Also, when an encoding suffix such
10136 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10137 category of the locale to "C". */
10138 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10139 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10140 return 1;
10141 #else
10142 if (setlocale (LC_ALL, "") == NULL) return 1;
10143 #endif
10144 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10145 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10146 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10147 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10148 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10149 some unit tests fail.
10150 On MirBSD 10, when an unsupported locale is specified, setlocale()
10151 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10152 #if HAVE_LANGINFO_CODESET
10153 {
10154 const char *cs = nl_langinfo (CODESET);
10155 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10156 || strcmp (cs, "UTF-8") == 0)
10157 return 1;
10158 }
10159 #endif
10160 #ifdef __CYGWIN__
10161 /* On Cygwin, avoid locale names without encoding suffix, because the
10162 locale_charset() function relies on the encoding suffix. Note that
10163 LC_ALL is set on the command line. */
10164 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10165 #endif
10166 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
10167 on Cygwin 1.5.x. */
10168 if (MB_CUR_MAX == 1)
10169 return 1;
10170 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10171 This excludes the UTF-8 encoding (except on MirBSD). */
10172 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10173 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10174 for (p = buf; *p != '\0'; p++)
10175 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10176 return 1;
10177 return 0;
10178 }
10179
10180 _ACEOF
10181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10182 (eval $ac_link) 2>&5
10183 ac_status=$?
10184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10185 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10186 case "$host_os" in
10187 # Handle native Windows specially, because there setlocale() interprets
10188 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10189 # "fr" or "fra" as "French" or "French_France.1252",
10190 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10191 # "ja" as "Japanese" or "Japanese_Japan.932",
10192 # and similar.
10193 mingw*)
10194 # Note that on native Windows, the Japanese locale is
10195 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
10196 # cannot use it here.
10197 gt_cv_locale_ja=none
10198 ;;
10199 *)
10200 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10201 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10202 # configure script would override the LC_ALL setting. Likewise for
10203 # LC_CTYPE, which is also set at the beginning of the configure script.
10204 # Test for the AIX locale name.
10205 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10206 gt_cv_locale_ja=ja_JP
10207 else
10208 # Test for the locale name with explicit encoding suffix.
10209 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10210 gt_cv_locale_ja=ja_JP.EUC-JP
10211 else
10212 # Test for the HP-UX, OSF/1, NetBSD locale name.
10213 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10214 gt_cv_locale_ja=ja_JP.eucJP
10215 else
10216 # Test for the IRIX, FreeBSD locale name.
10217 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10218 gt_cv_locale_ja=ja_JP.EUC
10219 else
10220 # Test for the Solaris 7 locale name.
10221 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10222 gt_cv_locale_ja=ja
10223 else
10224 # Special test for NetBSD 1.6.
10225 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
10226 gt_cv_locale_ja=ja_JP.eucJP
10227 else
10228 # None found.
10229 gt_cv_locale_ja=none
10230 fi
10231 fi
10232 fi
10233 fi
10234 fi
10235 fi
10236 ;;
10237 esac
10238 fi
10239 rm -fr conftest*
10240
10241 fi
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
10243 $as_echo "$gt_cv_locale_ja" >&6; }
10244 LOCALE_JA=$gt_cv_locale_ja
10245
10246
10247
10248
10249
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
10251 $as_echo_n "checking for a transitional chinese locale... " >&6; }
10252 if test "${gt_cv_locale_zh_CN+set}" = set; then :
10253 $as_echo_n "(cached) " >&6
10254 else
10255
10256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10257 /* end confdefs.h. */
10258
10259 #include <locale.h>
10260 #include <stdlib.h>
10261 #include <time.h>
10262 #if HAVE_LANGINFO_CODESET
10263 # include <langinfo.h>
10264 #endif
10265 #include <stdlib.h>
10266 #include <string.h>
10267 struct tm t;
10268 char buf[16];
10269 int main ()
10270 {
10271 const char *p;
10272 /* Check whether the given locale name is recognized by the system. */
10273 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10274 /* On native Windows, setlocale(category, "") looks at the system settings,
10275 not at the environment variables. Also, when an encoding suffix such
10276 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10277 category of the locale to "C". */
10278 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10279 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10280 return 1;
10281 #else
10282 if (setlocale (LC_ALL, "") == NULL) return 1;
10283 #endif
10284 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10285 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10286 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10287 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10288 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10289 some unit tests fail.
10290 On MirBSD 10, when an unsupported locale is specified, setlocale()
10291 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10292 #if HAVE_LANGINFO_CODESET
10293 {
10294 const char *cs = nl_langinfo (CODESET);
10295 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10296 || strcmp (cs, "UTF-8") == 0)
10297 return 1;
10298 }
10299 #endif
10300 #ifdef __CYGWIN__
10301 /* On Cygwin, avoid locale names without encoding suffix, because the
10302 locale_charset() function relies on the encoding suffix. Note that
10303 LC_ALL is set on the command line. */
10304 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10305 #endif
10306 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
10307 This excludes the UTF-8 encoding (except on MirBSD). */
10308 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10309 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
10310 for (p = buf; *p != '\0'; p++)
10311 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
10312 return 1;
10313 /* Check whether a typical GB18030 multibyte sequence is recognized as a
10314 single wide character. This excludes the GB2312 and GBK encodings. */
10315 if (mblen ("\203\062\332\066", 5) != 4)
10316 return 1;
10317 return 0;
10318 }
10319
10320 _ACEOF
10321 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10322 (eval $ac_link) 2>&5
10323 ac_status=$?
10324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10325 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10326 case "$host_os" in
10327 # Handle native Windows specially, because there setlocale() interprets
10328 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10329 # "fr" or "fra" as "French" or "French_France.1252",
10330 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10331 # "ja" as "Japanese" or "Japanese_Japan.932",
10332 # and similar.
10333 mingw*)
10334 # Test for the hypothetical native Windows locale name.
10335 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10336 gt_cv_locale_zh_CN=Chinese_China.54936
10337 else
10338 # None found.
10339 gt_cv_locale_zh_CN=none
10340 fi
10341 ;;
10342 solaris2.8)
10343 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
10344 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
10345 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
10346 gt_cv_locale_zh_CN=none
10347 ;;
10348 *)
10349 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10350 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10351 # configure script would override the LC_ALL setting. Likewise for
10352 # LC_CTYPE, which is also set at the beginning of the configure script.
10353 # Test for the locale name without encoding suffix.
10354 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10355 gt_cv_locale_zh_CN=zh_CN
10356 else
10357 # Test for the locale name with explicit encoding suffix.
10358 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10359 gt_cv_locale_zh_CN=zh_CN.GB18030
10360 else
10361 # None found.
10362 gt_cv_locale_zh_CN=none
10363 fi
10364 fi
10365 ;;
10366 esac
10367 else
10368 # If there was a link error, due to mblen(), the system is so old that
10369 # it certainly doesn't have a chinese locale.
10370 gt_cv_locale_zh_CN=none
10371 fi
10372 rm -fr conftest*
10373
10374 fi
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
10376 $as_echo "$gt_cv_locale_zh_CN" >&6; }
10377 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
10378
10379
10380
10381
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
10383 $as_echo_n "checking for a french Unicode locale... " >&6; }
10384 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
10385 $as_echo_n "(cached) " >&6
10386 else
10387
10388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10389 /* end confdefs.h. */
10390
10391 #include <locale.h>
10392 #include <time.h>
10393 #if HAVE_LANGINFO_CODESET
10394 # include <langinfo.h>
10395 #endif
10396 #include <stdlib.h>
10397 #include <string.h>
10398 struct tm t;
10399 char buf[16];
10400 int main () {
10401 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
10402 imitates locale dependent behaviour by looking at the environment
10403 variables, and all locales use the UTF-8 encoding. */
10404 #if !(defined __BEOS__ || defined __HAIKU__)
10405 /* Check whether the given locale name is recognized by the system. */
10406 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10407 /* On native Windows, setlocale(category, "") looks at the system settings,
10408 not at the environment variables. Also, when an encoding suffix such
10409 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10410 category of the locale to "C". */
10411 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10412 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10413 return 1;
10414 # else
10415 if (setlocale (LC_ALL, "") == NULL) return 1;
10416 # endif
10417 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10418 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10419 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10420 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10421 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10422 some unit tests fail. */
10423 # if HAVE_LANGINFO_CODESET
10424 {
10425 const char *cs = nl_langinfo (CODESET);
10426 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10427 return 1;
10428 }
10429 # endif
10430 # ifdef __CYGWIN__
10431 /* On Cygwin, avoid locale names without encoding suffix, because the
10432 locale_charset() function relies on the encoding suffix. Note that
10433 LC_ALL is set on the command line. */
10434 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10435 # endif
10436 /* Check whether in the abbreviation of the second month, the second
10437 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
10438 two bytes long, with UTF-8 encoding. */
10439 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10440 if (strftime (buf, sizeof (buf), "%b", &t) < 4
10441 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
10442 return 1;
10443 #endif
10444 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10445 /* Check whether the decimal separator is a comma.
10446 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10447 are nl_langinfo(RADIXCHAR) are both ".". */
10448 if (localeconv () ->decimal_point[0] != ',') return 1;
10449 #endif
10450 return 0;
10451 }
10452
10453 _ACEOF
10454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10455 (eval $ac_link) 2>&5
10456 ac_status=$?
10457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10458 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10459 case "$host_os" in
10460 # Handle native Windows specially, because there setlocale() interprets
10461 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10462 # "fr" or "fra" as "French" or "French_France.1252",
10463 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10464 # "ja" as "Japanese" or "Japanese_Japan.932",
10465 # and similar.
10466 mingw*)
10467 # Test for the hypothetical native Windows locale name.
10468 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10469 gt_cv_locale_fr_utf8=French_France.65001
10470 else
10471 # None found.
10472 gt_cv_locale_fr_utf8=none
10473 fi
10474 ;;
10475 *)
10476 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10477 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10478 # configure script would override the LC_ALL setting. Likewise for
10479 # LC_CTYPE, which is also set at the beginning of the configure script.
10480 # Test for the usual locale name.
10481 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10482 gt_cv_locale_fr_utf8=fr_FR
10483 else
10484 # Test for the locale name with explicit encoding suffix.
10485 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10486 gt_cv_locale_fr_utf8=fr_FR.UTF-8
10487 else
10488 # Test for the Solaris 7 locale name.
10489 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10490 gt_cv_locale_fr_utf8=fr.UTF-8
10491 else
10492 # None found.
10493 gt_cv_locale_fr_utf8=none
10494 fi
10495 fi
10496 fi
10497 ;;
10498 esac
10499 fi
10500 rm -fr conftest*
10501
10502 fi
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
10504 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
10505 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
10506
10507
10508
10509
10510
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
10512 $as_echo_n "checking for a traditional french locale... " >&6; }
10513 if test "${gt_cv_locale_fr+set}" = set; then :
10514 $as_echo_n "(cached) " >&6
10515 else
10516
10517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10518 /* end confdefs.h. */
10519
10520 #include <locale.h>
10521 #include <time.h>
10522 #if HAVE_LANGINFO_CODESET
10523 # include <langinfo.h>
10524 #endif
10525 #include <stdlib.h>
10526 #include <string.h>
10527 struct tm t;
10528 char buf[16];
10529 int main () {
10530 /* Check whether the given locale name is recognized by the system. */
10531 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10532 /* On native Windows, setlocale(category, "") looks at the system settings,
10533 not at the environment variables. Also, when an encoding suffix such
10534 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10535 category of the locale to "C". */
10536 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10537 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10538 return 1;
10539 #else
10540 if (setlocale (LC_ALL, "") == NULL) return 1;
10541 #endif
10542 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10543 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10544 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10545 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10546 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10547 some unit tests fail.
10548 On MirBSD 10, when an unsupported locale is specified, setlocale()
10549 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10550 #if HAVE_LANGINFO_CODESET
10551 {
10552 const char *cs = nl_langinfo (CODESET);
10553 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10554 || strcmp (cs, "UTF-8") == 0)
10555 return 1;
10556 }
10557 #endif
10558 #ifdef __CYGWIN__
10559 /* On Cygwin, avoid locale names without encoding suffix, because the
10560 locale_charset() function relies on the encoding suffix. Note that
10561 LC_ALL is set on the command line. */
10562 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10563 #endif
10564 /* Check whether in the abbreviation of the second month, the second
10565 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
10566 one byte long. This excludes the UTF-8 encoding. */
10567 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10568 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
10569 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10570 /* Check whether the decimal separator is a comma.
10571 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10572 are nl_langinfo(RADIXCHAR) are both ".". */
10573 if (localeconv () ->decimal_point[0] != ',') return 1;
10574 #endif
10575 return 0;
10576 }
10577
10578 _ACEOF
10579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10580 (eval $ac_link) 2>&5
10581 ac_status=$?
10582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10583 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10584 case "$host_os" in
10585 # Handle native Windows specially, because there setlocale() interprets
10586 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10587 # "fr" or "fra" as "French" or "French_France.1252",
10588 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10589 # "ja" as "Japanese" or "Japanese_Japan.932",
10590 # and similar.
10591 mingw*)
10592 # Test for the native Windows locale name.
10593 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10594 gt_cv_locale_fr=French_France.1252
10595 else
10596 # None found.
10597 gt_cv_locale_fr=none
10598 fi
10599 ;;
10600 *)
10601 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10602 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10603 # configure script would override the LC_ALL setting. Likewise for
10604 # LC_CTYPE, which is also set at the beginning of the configure script.
10605 # Test for the usual locale name.
10606 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10607 gt_cv_locale_fr=fr_FR
10608 else
10609 # Test for the locale name with explicit encoding suffix.
10610 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10611 gt_cv_locale_fr=fr_FR.ISO-8859-1
10612 else
10613 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
10614 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10615 gt_cv_locale_fr=fr_FR.ISO8859-1
10616 else
10617 # Test for the HP-UX locale name.
10618 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10619 gt_cv_locale_fr=fr_FR.iso88591
10620 else
10621 # Test for the Solaris 7 locale name.
10622 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10623 gt_cv_locale_fr=fr
10624 else
10625 # None found.
10626 gt_cv_locale_fr=none
10627 fi
10628 fi
10629 fi
10630 fi
10631 fi
10632 ;;
10633 esac
10634 fi
10635 rm -fr conftest*
10636
10637 fi
10638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
10639 $as_echo "$gt_cv_locale_fr" >&6; }
10640 LOCALE_FR=$gt_cv_locale_fr
10641
10642
10643
10644
10645
10646
10647
10648 GNULIB_FFSL=0;
10649 GNULIB_FFSLL=0;
10650 GNULIB_MEMCHR=0;
10651 GNULIB_MEMMEM=0;
10652 GNULIB_MEMPCPY=0;
10653 GNULIB_MEMRCHR=0;
10654 GNULIB_RAWMEMCHR=0;
10655 GNULIB_STPCPY=0;
10656 GNULIB_STPNCPY=0;
10657 GNULIB_STRCHRNUL=0;
10658 GNULIB_STRDUP=0;
10659 GNULIB_STRNCAT=0;
10660 GNULIB_STRNDUP=0;
10661 GNULIB_STRNLEN=0;
10662 GNULIB_STRPBRK=0;
10663 GNULIB_STRSEP=0;
10664 GNULIB_STRSTR=0;
10665 GNULIB_STRCASESTR=0;
10666 GNULIB_STRTOK_R=0;
10667 GNULIB_MBSLEN=0;
10668 GNULIB_MBSNLEN=0;
10669 GNULIB_MBSCHR=0;
10670 GNULIB_MBSRCHR=0;
10671 GNULIB_MBSSTR=0;
10672 GNULIB_MBSCASECMP=0;
10673 GNULIB_MBSNCASECMP=0;
10674 GNULIB_MBSPCASECMP=0;
10675 GNULIB_MBSCASESTR=0;
10676 GNULIB_MBSCSPN=0;
10677 GNULIB_MBSPBRK=0;
10678 GNULIB_MBSSPN=0;
10679 GNULIB_MBSSEP=0;
10680 GNULIB_MBSTOK_R=0;
10681 GNULIB_STRERROR=0;
10682 GNULIB_STRERROR_R=0;
10683 GNULIB_STRSIGNAL=0;
10684 GNULIB_STRVERSCMP=0;
10685 HAVE_MBSLEN=0;
10686 HAVE_FFSL=1;
10687 HAVE_FFSLL=1;
10688 HAVE_MEMCHR=1;
10689 HAVE_DECL_MEMMEM=1;
10690 HAVE_MEMPCPY=1;
10691 HAVE_DECL_MEMRCHR=1;
10692 HAVE_RAWMEMCHR=1;
10693 HAVE_STPCPY=1;
10694 HAVE_STPNCPY=1;
10695 HAVE_STRCHRNUL=1;
10696 HAVE_DECL_STRDUP=1;
10697 HAVE_DECL_STRNDUP=1;
10698 HAVE_DECL_STRNLEN=1;
10699 HAVE_STRPBRK=1;
10700 HAVE_STRSEP=1;
10701 HAVE_STRCASESTR=1;
10702 HAVE_DECL_STRTOK_R=1;
10703 HAVE_DECL_STRERROR_R=1;
10704 HAVE_DECL_STRSIGNAL=1;
10705 HAVE_STRVERSCMP=1;
10706 REPLACE_MEMCHR=0;
10707 REPLACE_MEMMEM=0;
10708 REPLACE_STPNCPY=0;
10709 REPLACE_STRDUP=0;
10710 REPLACE_STRSTR=0;
10711 REPLACE_STRCASESTR=0;
10712 REPLACE_STRCHRNUL=0;
10713 REPLACE_STRERROR=0;
10714 REPLACE_STRERROR_R=0;
10715 REPLACE_STRNCAT=0;
10716 REPLACE_STRNDUP=0;
10717 REPLACE_STRNLEN=0;
10718 REPLACE_STRSIGNAL=0;
10719 REPLACE_STRTOK_R=0;
10720 UNDEFINE_STRTOK_R=0;
10721
10722
10723
10724
10725
10726 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
10727 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
10728 # irrelevant for anonymous mappings.
10729 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10730 if test "x$ac_cv_func_mmap" = x""yes; then :
10731 gl_have_mmap=yes
10732 else
10733 gl_have_mmap=no
10734 fi
10735
10736
10737 # Try to allow MAP_ANONYMOUS.
10738 gl_have_mmap_anonymous=no
10739 if test $gl_have_mmap = yes; then
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
10741 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
10742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h. */
10744
10745 #include <sys/mman.h>
10746 #ifdef MAP_ANONYMOUS
10747 I cannot identify this map
10748 #endif
10749
10750 _ACEOF
10751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10752 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
10753 gl_have_mmap_anonymous=yes
10754 fi
10755 rm -f conftest*
10756
10757 if test $gl_have_mmap_anonymous != yes; then
10758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10759 /* end confdefs.h. */
10760
10761 #include <sys/mman.h>
10762 #ifdef MAP_ANON
10763 I cannot identify this map
10764 #endif
10765
10766 _ACEOF
10767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10768 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
10769
10770 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
10771
10772 gl_have_mmap_anonymous=yes
10773 fi
10774 rm -f conftest*
10775
10776 fi
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
10778 $as_echo "$gl_have_mmap_anonymous" >&6; }
10779 if test $gl_have_mmap_anonymous = yes; then
10780
10781 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
10782
10783 fi
10784 fi
10785
10786
10787
10788
10789
10790
10791 if test $HAVE_MEMCHR = 1; then
10792 # Detect platform-specific bugs in some versions of glibc:
10793 # memchr should not dereference anything with length 0
10794 # http://bugzilla.redhat.com/499689
10795 # memchr should not dereference overestimated length after a match
10796 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
10797 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
10798 # Assume that memchr works on platforms that lack mprotect.
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
10800 $as_echo_n "checking whether memchr works... " >&6; }
10801 if test "${gl_cv_func_memchr_works+set}" = set; then :
10802 $as_echo_n "(cached) " >&6
10803 else
10804 if test "$cross_compiling" = yes; then :
10805 gl_cv_func_memchr_works="guessing no"
10806 else
10807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10808 /* end confdefs.h. */
10809
10810 #include <string.h>
10811 #if HAVE_SYS_MMAN_H
10812 # include <fcntl.h>
10813 # include <unistd.h>
10814 # include <sys/types.h>
10815 # include <sys/mman.h>
10816 # ifndef MAP_FILE
10817 # define MAP_FILE 0
10818 # endif
10819 #endif
10820
10821 int
10822 main ()
10823 {
10824
10825 int result = 0;
10826 char *fence = NULL;
10827 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
10828 # if HAVE_MAP_ANONYMOUS
10829 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
10830 const int fd = -1;
10831 # else /* !HAVE_MAP_ANONYMOUS */
10832 const int flags = MAP_FILE | MAP_PRIVATE;
10833 int fd = open ("/dev/zero", O_RDONLY, 0666);
10834 if (fd >= 0)
10835 # endif
10836 {
10837 int pagesize = getpagesize ();
10838 char *two_pages =
10839 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
10840 flags, fd, 0);
10841 if (two_pages != (char *)(-1)
10842 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
10843 fence = two_pages + pagesize;
10844 }
10845 #endif
10846 if (fence)
10847 {
10848 if (memchr (fence, 0, 0))
10849 result |= 1;
10850 strcpy (fence - 9, "12345678");
10851 if (memchr (fence - 9, 0, 79) != fence - 1)
10852 result |= 2;
10853 if (memchr (fence - 1, 0, 3) != fence - 1)
10854 result |= 4;
10855 }
10856 return result;
10857
10858 ;
10859 return 0;
10860 }
10861 _ACEOF
10862 if ac_fn_c_try_run "$LINENO"; then :
10863 gl_cv_func_memchr_works=yes
10864 else
10865 gl_cv_func_memchr_works=no
10866 fi
10867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10868 conftest.$ac_objext conftest.beam conftest.$ac_ext
10869 fi
10870
10871 fi
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
10873 $as_echo "$gl_cv_func_memchr_works" >&6; }
10874 if test "$gl_cv_func_memchr_works" != yes; then
10875 REPLACE_MEMCHR=1
10876 fi
10877 fi
10878
10879 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
10880 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
10881 ac_have_decl=1
10882 else
10883 ac_have_decl=0
10884 fi
10885
10886 cat >>confdefs.h <<_ACEOF
10887 #define HAVE_DECL_MEMMEM $ac_have_decl
10888 _ACEOF
10889
10890
10891
10892
10893
10894 for ac_func in memmem
10895 do :
10896 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
10897 if test "x$ac_cv_func_memmem" = x""yes; then :
10898 cat >>confdefs.h <<_ACEOF
10899 #define HAVE_MEMMEM 1
10900 _ACEOF
10901
10902 fi
10903 done
10904
10905 if test $ac_cv_func_memmem = yes; then
10906 HAVE_MEMMEM=1
10907 else
10908 HAVE_MEMMEM=0
10909 fi
10910
10911 if test $ac_cv_have_decl_memmem = no; then
10912 HAVE_DECL_MEMMEM=0
10913 else
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
10915 $as_echo_n "checking whether memmem works... " >&6; }
10916 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
10917 $as_echo_n "(cached) " >&6
10918 else
10919 if test "$cross_compiling" = yes; then :
10920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10921 /* end confdefs.h. */
10922
10923 #ifdef __GNU_LIBRARY__
10924 #include <features.h>
10925 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
10926 || __GLIBC_MINOR__ > 12)) \
10927 || (__GLIBC__ > 2)) \
10928 || defined __UCLIBC__
10929 Lucky user
10930 #endif
10931 #elif defined __CYGWIN__
10932 #include <cygwin/version.h>
10933 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
10934 Lucky user
10935 #endif
10936 #else
10937 Lucky user
10938 #endif
10939
10940 _ACEOF
10941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10942 $EGREP "Lucky user" >/dev/null 2>&1; then :
10943 gl_cv_func_memmem_works_always="guessing yes"
10944 else
10945 gl_cv_func_memmem_works_always="guessing no"
10946 fi
10947 rm -f conftest*
10948
10949
10950 else
10951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10952 /* end confdefs.h. */
10953
10954 #include <string.h> /* for memmem */
10955 #define P "_EF_BF_BD"
10956 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
10957 #define NEEDLE P P P P P
10958
10959 int
10960 main ()
10961 {
10962
10963 int result = 0;
10964 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
10965 result |= 1;
10966 /* Check for empty needle behavior. */
10967 {
10968 const char *haystack = "AAA";
10969 if (memmem (haystack, 3, NULL, 0) != haystack)
10970 result |= 2;
10971 }
10972 return result;
10973
10974 ;
10975 return 0;
10976 }
10977 _ACEOF
10978 if ac_fn_c_try_run "$LINENO"; then :
10979 gl_cv_func_memmem_works_always=yes
10980 else
10981 gl_cv_func_memmem_works_always=no
10982 fi
10983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10984 conftest.$ac_objext conftest.beam conftest.$ac_ext
10985 fi
10986
10987
10988 fi
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
10990 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
10991 case "$gl_cv_func_memmem_works_always" in
10992 *yes) ;;
10993 *)
10994 REPLACE_MEMMEM=1
10995 ;;
10996 esac
10997 fi
10998 :
10999
11000
11001 GNULIB_DPRINTF=0;
11002 GNULIB_FCLOSE=0;
11003 GNULIB_FDOPEN=0;
11004 GNULIB_FFLUSH=0;
11005 GNULIB_FGETC=0;
11006 GNULIB_FGETS=0;
11007 GNULIB_FOPEN=0;
11008 GNULIB_FPRINTF=0;
11009 GNULIB_FPRINTF_POSIX=0;
11010 GNULIB_FPURGE=0;
11011 GNULIB_FPUTC=0;
11012 GNULIB_FPUTS=0;
11013 GNULIB_FREAD=0;
11014 GNULIB_FREOPEN=0;
11015 GNULIB_FSCANF=0;
11016 GNULIB_FSEEK=0;
11017 GNULIB_FSEEKO=0;
11018 GNULIB_FTELL=0;
11019 GNULIB_FTELLO=0;
11020 GNULIB_FWRITE=0;
11021 GNULIB_GETC=0;
11022 GNULIB_GETCHAR=0;
11023 GNULIB_GETDELIM=0;
11024 GNULIB_GETLINE=0;
11025 GNULIB_OBSTACK_PRINTF=0;
11026 GNULIB_OBSTACK_PRINTF_POSIX=0;
11027 GNULIB_PCLOSE=0;
11028 GNULIB_PERROR=0;
11029 GNULIB_POPEN=0;
11030 GNULIB_PRINTF=0;
11031 GNULIB_PRINTF_POSIX=0;
11032 GNULIB_PUTC=0;
11033 GNULIB_PUTCHAR=0;
11034 GNULIB_PUTS=0;
11035 GNULIB_REMOVE=0;
11036 GNULIB_RENAME=0;
11037 GNULIB_RENAMEAT=0;
11038 GNULIB_SCANF=0;
11039 GNULIB_SNPRINTF=0;
11040 GNULIB_SPRINTF_POSIX=0;
11041 GNULIB_STDIO_H_NONBLOCKING=0;
11042 GNULIB_STDIO_H_SIGPIPE=0;
11043 GNULIB_TMPFILE=0;
11044 GNULIB_VASPRINTF=0;
11045 GNULIB_VFSCANF=0;
11046 GNULIB_VSCANF=0;
11047 GNULIB_VDPRINTF=0;
11048 GNULIB_VFPRINTF=0;
11049 GNULIB_VFPRINTF_POSIX=0;
11050 GNULIB_VPRINTF=0;
11051 GNULIB_VPRINTF_POSIX=0;
11052 GNULIB_VSNPRINTF=0;
11053 GNULIB_VSPRINTF_POSIX=0;
11054 HAVE_DECL_FPURGE=1;
11055 HAVE_DECL_FSEEKO=1;
11056 HAVE_DECL_FTELLO=1;
11057 HAVE_DECL_GETDELIM=1;
11058 HAVE_DECL_GETLINE=1;
11059 HAVE_DECL_OBSTACK_PRINTF=1;
11060 HAVE_DECL_SNPRINTF=1;
11061 HAVE_DECL_VSNPRINTF=1;
11062 HAVE_DPRINTF=1;
11063 HAVE_FSEEKO=1;
11064 HAVE_FTELLO=1;
11065 HAVE_PCLOSE=1;
11066 HAVE_POPEN=1;
11067 HAVE_RENAMEAT=1;
11068 HAVE_VASPRINTF=1;
11069 HAVE_VDPRINTF=1;
11070 REPLACE_DPRINTF=0;
11071 REPLACE_FCLOSE=0;
11072 REPLACE_FDOPEN=0;
11073 REPLACE_FFLUSH=0;
11074 REPLACE_FOPEN=0;
11075 REPLACE_FPRINTF=0;
11076 REPLACE_FPURGE=0;
11077 REPLACE_FREOPEN=0;
11078 REPLACE_FSEEK=0;
11079 REPLACE_FSEEKO=0;
11080 REPLACE_FTELL=0;
11081 REPLACE_FTELLO=0;
11082 REPLACE_GETDELIM=0;
11083 REPLACE_GETLINE=0;
11084 REPLACE_OBSTACK_PRINTF=0;
11085 REPLACE_PERROR=0;
11086 REPLACE_POPEN=0;
11087 REPLACE_PRINTF=0;
11088 REPLACE_REMOVE=0;
11089 REPLACE_RENAME=0;
11090 REPLACE_RENAMEAT=0;
11091 REPLACE_SNPRINTF=0;
11092 REPLACE_SPRINTF=0;
11093 REPLACE_STDIO_READ_FUNCS=0;
11094 REPLACE_STDIO_WRITE_FUNCS=0;
11095 REPLACE_TMPFILE=0;
11096 REPLACE_VASPRINTF=0;
11097 REPLACE_VDPRINTF=0;
11098 REPLACE_VFPRINTF=0;
11099 REPLACE_VPRINTF=0;
11100 REPLACE_VSNPRINTF=0;
11101 REPLACE_VSPRINTF=0;
11102
11103
11104
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
11106 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
11107 if test "${ac_cv_header_stdbool_h+set}" = set; then :
11108 $as_echo_n "(cached) " >&6
11109 else
11110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11111 /* end confdefs.h. */
11112
11113 #include <stdbool.h>
11114 #ifndef bool
11115 "error: bool is not defined"
11116 #endif
11117 #ifndef false
11118 "error: false is not defined"
11119 #endif
11120 #if false
11121 "error: false is not 0"
11122 #endif
11123 #ifndef true
11124 "error: true is not defined"
11125 #endif
11126 #if true != 1
11127 "error: true is not 1"
11128 #endif
11129 #ifndef __bool_true_false_are_defined
11130 "error: __bool_true_false_are_defined is not defined"
11131 #endif
11132
11133 struct s { _Bool s: 1; _Bool t; } s;
11134
11135 char a[true == 1 ? 1 : -1];
11136 char b[false == 0 ? 1 : -1];
11137 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
11138 char d[(bool) 0.5 == true ? 1 : -1];
11139 /* See body of main program for 'e'. */
11140 char f[(_Bool) 0.0 == false ? 1 : -1];
11141 char g[true];
11142 char h[sizeof (_Bool)];
11143 char i[sizeof s.t];
11144 enum { j = false, k = true, l = false * true, m = true * 256 };
11145 /* The following fails for
11146 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
11147 _Bool n[m];
11148 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
11149 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
11150 /* Catch a bug in an HP-UX C compiler. See
11151 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
11152 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
11153 */
11154 _Bool q = true;
11155 _Bool *pq = &q;
11156
11157 int
11158 main ()
11159 {
11160
11161 bool e = &s;
11162 *pq |= q;
11163 *pq |= ! q;
11164 /* Refer to every declared value, to avoid compiler optimizations. */
11165 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
11166 + !m + !n + !o + !p + !q + !pq);
11167
11168 ;
11169 return 0;
11170 }
11171 _ACEOF
11172 if ac_fn_c_try_compile "$LINENO"; then :
11173 ac_cv_header_stdbool_h=yes
11174 else
11175 ac_cv_header_stdbool_h=no
11176 fi
11177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11178 fi
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
11180 $as_echo "$ac_cv_header_stdbool_h" >&6; }
11181 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
11182 if test "x$ac_cv_type__Bool" = x""yes; then :
11183
11184 cat >>confdefs.h <<_ACEOF
11185 #define HAVE__BOOL 1
11186 _ACEOF
11187
11188
11189 fi
11190
11191
11192
11193 REPLACE_NULL=0;
11194 HAVE_MAX_ALIGN_T=1;
11195 HAVE_WCHAR_T=1;
11196
11197
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
11199 $as_echo_n "checking for wchar_t... " >&6; }
11200 if test "${gt_cv_c_wchar_t+set}" = set; then :
11201 $as_echo_n "(cached) " >&6
11202 else
11203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11204 /* end confdefs.h. */
11205 #include <stddef.h>
11206 wchar_t foo = (wchar_t)'\0';
11207 int
11208 main ()
11209 {
11210
11211 ;
11212 return 0;
11213 }
11214 _ACEOF
11215 if ac_fn_c_try_compile "$LINENO"; then :
11216 gt_cv_c_wchar_t=yes
11217 else
11218 gt_cv_c_wchar_t=no
11219 fi
11220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11221 fi
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
11223 $as_echo "$gt_cv_c_wchar_t" >&6; }
11224 if test $gt_cv_c_wchar_t = yes; then
11225
11226 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
11227
11228 fi
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241 if test $gl_cv_have_include_next = yes; then
11242 gl_cv_next_string_h='<'string.h'>'
11243 else
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
11245 $as_echo_n "checking absolute name of <string.h>... " >&6; }
11246 if test "${gl_cv_next_string_h+set}" = set; then :
11247 $as_echo_n "(cached) " >&6
11248 else
11249
11250
11251
11252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11253 /* end confdefs.h. */
11254 #include <string.h>
11255 _ACEOF
11256 case "$host_os" in
11257 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11258 *) gl_absname_cpp="$ac_cpp" ;;
11259 esac
11260
11261 case "$host_os" in
11262 mingw*)
11263 gl_dirsep_regex='[/\\]'
11264 ;;
11265 *)
11266 gl_dirsep_regex='\/'
11267 ;;
11268 esac
11269 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11270 gl_header_literal_regex=`echo 'string.h' \
11271 | sed -e "$gl_make_literal_regex_sed"`
11272 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11273 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11274 s|^/[^/]|//&|
11275 p
11276 q
11277 }'
11278
11279 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11280 sed -n "$gl_absolute_header_sed"`
11281
11282 gl_header=$gl_cv_absolute_string_h
11283 gl_cv_next_string_h='"'$gl_header'"'
11284
11285
11286 fi
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
11288 $as_echo "$gl_cv_next_string_h" >&6; }
11289 fi
11290 NEXT_STRING_H=$gl_cv_next_string_h
11291
11292 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11293 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11294 gl_next_as_first_directive='<'string.h'>'
11295 else
11296 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11297 gl_next_as_first_directive=$gl_cv_next_string_h
11298 fi
11299 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
11300
11301
11302
11303
11304
11305
11306 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
11307 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11309 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11310 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11311 $as_echo_n "(cached) " >&6
11312 else
11313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11314 /* end confdefs.h. */
11315 #include <string.h>
11316
11317 int
11318 main ()
11319 {
11320 #undef $gl_func
11321 (void) $gl_func;
11322 ;
11323 return 0;
11324 }
11325 _ACEOF
11326 if ac_fn_c_try_compile "$LINENO"; then :
11327 eval "$as_gl_Symbol=yes"
11328 else
11329 eval "$as_gl_Symbol=no"
11330 fi
11331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11332 fi
11333 eval ac_res=\$$as_gl_Symbol
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11335 $as_echo "$ac_res" >&6; }
11336 eval as_val=\$$as_gl_Symbol
11337 if test "x$as_val" = x""yes; then :
11338 cat >>confdefs.h <<_ACEOF
11339 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11340 _ACEOF
11341
11342 eval ac_cv_have_decl_$gl_func=yes
11343 fi
11344 done
11345
11346
11347
11348
11349
11350 if test "$gl_cv_func_memchr_works" != yes; then
11351 REPLACE_STRSTR=1
11352 else
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
11354 $as_echo_n "checking whether strstr works... " >&6; }
11355 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
11356 $as_echo_n "(cached) " >&6
11357 else
11358 if test "$cross_compiling" = yes; then :
11359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11360 /* end confdefs.h. */
11361
11362 #ifdef __GNU_LIBRARY__
11363 #include <features.h>
11364 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
11365 || defined __UCLIBC__
11366 Lucky user
11367 #endif
11368 #elif defined __CYGWIN__
11369 #include <cygwin/version.h>
11370 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
11371 Lucky user
11372 #endif
11373 #else
11374 Lucky user
11375 #endif
11376
11377 _ACEOF
11378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11379 $EGREP "Lucky user" >/dev/null 2>&1; then :
11380 gl_cv_func_strstr_works_always="guessing yes"
11381 else
11382 gl_cv_func_strstr_works_always="guessing no"
11383 fi
11384 rm -f conftest*
11385
11386
11387 else
11388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11389 /* end confdefs.h. */
11390
11391 #include <string.h> /* for strstr */
11392 #define P "_EF_BF_BD"
11393 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
11394 #define NEEDLE P P P P P
11395
11396 int
11397 main ()
11398 {
11399 return !!strstr (HAYSTACK, NEEDLE);
11400
11401 ;
11402 return 0;
11403 }
11404 _ACEOF
11405 if ac_fn_c_try_run "$LINENO"; then :
11406 gl_cv_func_strstr_works_always=yes
11407 else
11408 gl_cv_func_strstr_works_always=no
11409 fi
11410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11411 conftest.$ac_objext conftest.beam conftest.$ac_ext
11412 fi
11413
11414
11415 fi
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
11417 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
11418 case "$gl_cv_func_strstr_works_always" in
11419 *yes) ;;
11420 *)
11421 REPLACE_STRSTR=1
11422 ;;
11423 esac
11424 fi
11425
11426 ac_fn_c_check_decl "$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
11427 if test "x$ac_cv_have_decl_strtok_r" = x""yes; then :
11428 ac_have_decl=1
11429 else
11430 ac_have_decl=0
11431 fi
11432
11433 cat >>confdefs.h <<_ACEOF
11434 #define HAVE_DECL_STRTOK_R $ac_have_decl
11435 _ACEOF
11436
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11438 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11439 if test "${ac_cv_header_stat_broken+set}" = set; then :
11440 $as_echo_n "(cached) " >&6
11441 else
11442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h. */
11444 #include <sys/types.h>
11445 #include <sys/stat.h>
11446
11447 #if defined S_ISBLK && defined S_IFDIR
11448 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11449 #endif
11450
11451 #if defined S_ISBLK && defined S_IFCHR
11452 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11453 #endif
11454
11455 #if defined S_ISLNK && defined S_IFREG
11456 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11457 #endif
11458
11459 #if defined S_ISSOCK && defined S_IFREG
11460 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11461 #endif
11462
11463 _ACEOF
11464 if ac_fn_c_try_compile "$LINENO"; then :
11465 ac_cv_header_stat_broken=no
11466 else
11467 ac_cv_header_stat_broken=yes
11468 fi
11469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11470 fi
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11472 $as_echo "$ac_cv_header_stat_broken" >&6; }
11473 if test $ac_cv_header_stat_broken = yes; then
11474
11475 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11476
11477 fi
11478
11479
11480
11481 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11482 if test "x$ac_cv_type_mode_t" = x""yes; then :
11483
11484 else
11485
11486 cat >>confdefs.h <<_ACEOF
11487 #define mode_t int
11488 _ACEOF
11489
11490 fi
11491
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11493 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11494 if test -z "$MKDIR_P"; then
11495 if test "${ac_cv_path_mkdir+set}" = set; then :
11496 $as_echo_n "(cached) " >&6
11497 else
11498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11499 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11500 do
11501 IFS=$as_save_IFS
11502 test -z "$as_dir" && as_dir=.
11503 for ac_prog in mkdir gmkdir; do
11504 for ac_exec_ext in '' $ac_executable_extensions; do
11505 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
11506 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11507 'mkdir (GNU coreutils) '* | \
11508 'mkdir (coreutils) '* | \
11509 'mkdir (fileutils) '4.1*)
11510 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11511 break 3;;
11512 esac
11513 done
11514 done
11515 done
11516 IFS=$as_save_IFS
11517
11518 fi
11519
11520 if test "${ac_cv_path_mkdir+set}" = set; then
11521 MKDIR_P="$ac_cv_path_mkdir -p"
11522 else
11523 # As a last resort, use the slow shell script. Don't cache a
11524 # value for MKDIR_P within a source directory, because that will
11525 # break other packages using the cache if that directory is
11526 # removed, or if the value is a relative name.
11527 test -d ./--version && rmdir ./--version
11528 MKDIR_P="$ac_install_sh -d"
11529 fi
11530 fi
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11532 $as_echo "$MKDIR_P" >&6; }
11533
11534
11535
11536 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11537 if test "x$ac_cv_type_pid_t" = x""yes; then :
11538
11539 else
11540
11541 cat >>confdefs.h <<_ACEOF
11542 #define pid_t int
11543 _ACEOF
11544
11545 fi
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563 if test $gl_cv_have_include_next = yes; then
11564 gl_cv_next_sys_types_h='<'sys/types.h'>'
11565 else
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
11567 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
11568 if test "${gl_cv_next_sys_types_h+set}" = set; then :
11569 $as_echo_n "(cached) " >&6
11570 else
11571
11572
11573
11574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11575 /* end confdefs.h. */
11576 #include <sys/types.h>
11577 _ACEOF
11578 case "$host_os" in
11579 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11580 *) gl_absname_cpp="$ac_cpp" ;;
11581 esac
11582
11583 case "$host_os" in
11584 mingw*)
11585 gl_dirsep_regex='[/\\]'
11586 ;;
11587 *)
11588 gl_dirsep_regex='\/'
11589 ;;
11590 esac
11591 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11592 gl_header_literal_regex=`echo 'sys/types.h' \
11593 | sed -e "$gl_make_literal_regex_sed"`
11594 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11595 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11596 s|^/[^/]|//&|
11597 p
11598 q
11599 }'
11600
11601 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11602 sed -n "$gl_absolute_header_sed"`
11603
11604 gl_header=$gl_cv_absolute_sys_types_h
11605 gl_cv_next_sys_types_h='"'$gl_header'"'
11606
11607
11608 fi
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
11610 $as_echo "$gl_cv_next_sys_types_h" >&6; }
11611 fi
11612 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
11613
11614 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11615 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11616 gl_next_as_first_directive='<'sys/types.h'>'
11617 else
11618 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11619 gl_next_as_first_directive=$gl_cv_next_sys_types_h
11620 fi
11621 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634 GNULIB_MKTIME=0;
11635 GNULIB_NANOSLEEP=0;
11636 GNULIB_STRPTIME=0;
11637 GNULIB_TIMEGM=0;
11638 GNULIB_TIME_R=0;
11639 GNULIB_TIME_RZ=0;
11640 HAVE_DECL_LOCALTIME_R=1;
11641 HAVE_NANOSLEEP=1;
11642 HAVE_STRPTIME=1;
11643 HAVE_TIMEGM=1;
11644 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
11645 REPLACE_MKTIME=GNULIB_PORTCHECK;
11646 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
11647 REPLACE_TIMEGM=GNULIB_PORTCHECK;
11648
11649 : ${GNULIB_GETTIMEOFDAY=0};
11650 REPLACE_GMTIME=0;
11651 REPLACE_LOCALTIME=0;
11652
11653
11654
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
11656 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
11657 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
11658 $as_echo_n "(cached) " >&6
11659 else
11660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11661 /* end confdefs.h. */
11662 #include <time.h>
11663
11664 int
11665 main ()
11666 {
11667 static struct timespec x; x.tv_sec = x.tv_nsec;
11668 ;
11669 return 0;
11670 }
11671 _ACEOF
11672 if ac_fn_c_try_compile "$LINENO"; then :
11673 gl_cv_sys_struct_timespec_in_time_h=yes
11674 else
11675 gl_cv_sys_struct_timespec_in_time_h=no
11676 fi
11677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11678 fi
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
11680 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
11681
11682 TIME_H_DEFINES_STRUCT_TIMESPEC=0
11683 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
11684 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
11685 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
11686 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
11687 TIME_H_DEFINES_STRUCT_TIMESPEC=1
11688 else
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
11690 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
11691 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
11692 $as_echo_n "(cached) " >&6
11693 else
11694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11695 /* end confdefs.h. */
11696 #include <sys/time.h>
11697
11698 int
11699 main ()
11700 {
11701 static struct timespec x; x.tv_sec = x.tv_nsec;
11702 ;
11703 return 0;
11704 }
11705 _ACEOF
11706 if ac_fn_c_try_compile "$LINENO"; then :
11707 gl_cv_sys_struct_timespec_in_sys_time_h=yes
11708 else
11709 gl_cv_sys_struct_timespec_in_sys_time_h=no
11710 fi
11711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11712 fi
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
11714 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
11715 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
11716 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
11717 else
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
11719 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
11720 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
11721 $as_echo_n "(cached) " >&6
11722 else
11723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11724 /* end confdefs.h. */
11725 #include <pthread.h>
11726
11727 int
11728 main ()
11729 {
11730 static struct timespec x; x.tv_sec = x.tv_nsec;
11731 ;
11732 return 0;
11733 }
11734 _ACEOF
11735 if ac_fn_c_try_compile "$LINENO"; then :
11736 gl_cv_sys_struct_timespec_in_pthread_h=yes
11737 else
11738 gl_cv_sys_struct_timespec_in_pthread_h=no
11739 fi
11740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11741 fi
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
11743 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
11744 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
11745 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
11746 else
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
11748 $as_echo_n "checking for struct timespec in <unistd.h>... " >&6; }
11749 if test "${gl_cv_sys_struct_timespec_in_unistd_h+set}" = set; then :
11750 $as_echo_n "(cached) " >&6
11751 else
11752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11753 /* end confdefs.h. */
11754 #include <unistd.h>
11755
11756 int
11757 main ()
11758 {
11759 static struct timespec x; x.tv_sec = x.tv_nsec;
11760 ;
11761 return 0;
11762 }
11763 _ACEOF
11764 if ac_fn_c_try_compile "$LINENO"; then :
11765 gl_cv_sys_struct_timespec_in_unistd_h=yes
11766 else
11767 gl_cv_sys_struct_timespec_in_unistd_h=no
11768 fi
11769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11770 fi
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
11772 $as_echo "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
11773 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
11774 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
11775 fi
11776 fi
11777 fi
11778 fi
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795 if test $gl_cv_have_include_next = yes; then
11796 gl_cv_next_time_h='<'time.h'>'
11797 else
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
11799 $as_echo_n "checking absolute name of <time.h>... " >&6; }
11800 if test "${gl_cv_next_time_h+set}" = set; then :
11801 $as_echo_n "(cached) " >&6
11802 else
11803
11804
11805
11806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11807 /* end confdefs.h. */
11808 #include <time.h>
11809 _ACEOF
11810 case "$host_os" in
11811 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11812 *) gl_absname_cpp="$ac_cpp" ;;
11813 esac
11814
11815 case "$host_os" in
11816 mingw*)
11817 gl_dirsep_regex='[/\\]'
11818 ;;
11819 *)
11820 gl_dirsep_regex='\/'
11821 ;;
11822 esac
11823 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11824 gl_header_literal_regex=`echo 'time.h' \
11825 | sed -e "$gl_make_literal_regex_sed"`
11826 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11827 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11828 s|^/[^/]|//&|
11829 p
11830 q
11831 }'
11832
11833 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11834 sed -n "$gl_absolute_header_sed"`
11835
11836 gl_header=$gl_cv_absolute_time_h
11837 gl_cv_next_time_h='"'$gl_header'"'
11838
11839
11840 fi
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
11842 $as_echo "$gl_cv_next_time_h" >&6; }
11843 fi
11844 NEXT_TIME_H=$gl_cv_next_time_h
11845
11846 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11847 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11848 gl_next_as_first_directive='<'time.h'>'
11849 else
11850 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11851 gl_next_as_first_directive=$gl_cv_next_time_h
11852 fi
11853 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
11854
11855
11856
11857
11858
11859
11860
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
11862 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
11863 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
11864 $as_echo_n "(cached) " >&6
11865 else
11866 gl_cv_header_wchar_h_correct_inline=yes
11867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11868 /* end confdefs.h. */
11869
11870 #define wcstod renamed_wcstod
11871 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11872 <wchar.h>.
11873 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11874 included before <wchar.h>. */
11875 #include <stddef.h>
11876 #include <stdio.h>
11877 #include <time.h>
11878 #include <wchar.h>
11879 extern int zero (void);
11880 int main () { return zero(); }
11881
11882 _ACEOF
11883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11884 (eval $ac_compile) 2>&5
11885 ac_status=$?
11886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11887 test $ac_status = 0; }; then
11888 mv conftest.$ac_objext conftest1.$ac_objext
11889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11890 /* end confdefs.h. */
11891
11892 #define wcstod renamed_wcstod
11893 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11894 <wchar.h>.
11895 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11896 included before <wchar.h>. */
11897 #include <stddef.h>
11898 #include <stdio.h>
11899 #include <time.h>
11900 #include <wchar.h>
11901 int zero (void) { return 0; }
11902
11903 _ACEOF
11904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11905 (eval $ac_compile) 2>&5
11906 ac_status=$?
11907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11908 test $ac_status = 0; }; then
11909 mv conftest.$ac_objext conftest2.$ac_objext
11910 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
11911 :
11912 else
11913 gl_cv_header_wchar_h_correct_inline=no
11914 fi
11915 fi
11916 fi
11917 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
11918
11919 fi
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
11921 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
11922 if test $gl_cv_header_wchar_h_correct_inline = no; then
11923 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
11924 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
11925 C99 mode. You have four options:
11926 - Add the flag -fgnu89-inline to CC and reconfigure, or
11927 - Fix your include files, using parts of
11928 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
11929 - Use a gcc version older than 4.3, or
11930 - Don't use the flags -std=c99 or -std=gnu99.
11931 Configuration aborted." "$LINENO" 5
11932 fi
11933
11934
11935
11936
11937
11938 if test $ac_cv_header_features_h = yes; then
11939 HAVE_FEATURES_H=1
11940 else
11941 HAVE_FEATURES_H=0
11942 fi
11943
11944
11945
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
11947 $as_echo_n "checking for wint_t... " >&6; }
11948 if test "${gt_cv_c_wint_t+set}" = set; then :
11949 $as_echo_n "(cached) " >&6
11950 else
11951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11952 /* end confdefs.h. */
11953
11954 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11955 <wchar.h>.
11956 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
11957 before <wchar.h>. */
11958 #include <stddef.h>
11959 #include <stdio.h>
11960 #include <time.h>
11961 #include <wchar.h>
11962 wint_t foo = (wchar_t)'\0';
11963 int
11964 main ()
11965 {
11966
11967 ;
11968 return 0;
11969 }
11970 _ACEOF
11971 if ac_fn_c_try_compile "$LINENO"; then :
11972 gt_cv_c_wint_t=yes
11973 else
11974 gt_cv_c_wint_t=no
11975 fi
11976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11977 fi
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
11979 $as_echo "$gt_cv_c_wint_t" >&6; }
11980 if test $gt_cv_c_wint_t = yes; then
11981
11982 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
11983
11984 fi
11985
11986
11987 GNULIB_ISWBLANK=0;
11988 GNULIB_WCTYPE=0;
11989 GNULIB_ISWCTYPE=0;
11990 GNULIB_WCTRANS=0;
11991 GNULIB_TOWCTRANS=0;
11992 HAVE_ISWBLANK=1;
11993 HAVE_WCTYPE_T=1;
11994 HAVE_WCTRANS_T=1;
11995 REPLACE_ISWBLANK=0;
11996
11997
11998
11999
12000 if false; then
12001 GL_COND_LIBTOOL_TRUE=
12002 GL_COND_LIBTOOL_FALSE='#'
12003 else
12004 GL_COND_LIBTOOL_TRUE='#'
12005 GL_COND_LIBTOOL_FALSE=
12006 fi
12007
12008 gl_cond_libtool=false
12009 gl_libdeps=
12010 gl_ltlibdeps=
12011 gl_m4_base='import/m4'
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021 gl_source_base='import'
12022
12023
12024 if test $ac_cv_func_alloca_works = no; then
12025 :
12026 fi
12027
12028 # Define an additional variable used in the Makefile substitution.
12029 if test $ac_cv_working_alloca_h = yes; then
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
12031 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
12032 if test "${gl_cv_rpl_alloca+set}" = set; then :
12033 $as_echo_n "(cached) " >&6
12034 else
12035
12036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12037 /* end confdefs.h. */
12038
12039 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
12040 Need own alloca
12041 #endif
12042
12043 _ACEOF
12044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12045 $EGREP "Need own alloca" >/dev/null 2>&1; then :
12046 gl_cv_rpl_alloca=yes
12047 else
12048 gl_cv_rpl_alloca=no
12049 fi
12050 rm -f conftest*
12051
12052
12053 fi
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
12055 $as_echo "$gl_cv_rpl_alloca" >&6; }
12056 if test $gl_cv_rpl_alloca = yes; then
12057
12058 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12059
12060 ALLOCA_H=alloca.h
12061 else
12062 ALLOCA_H=
12063 fi
12064 else
12065 ALLOCA_H=alloca.h
12066 fi
12067
12068 if test -n "$ALLOCA_H"; then
12069 GL_GENERATE_ALLOCA_H_TRUE=
12070 GL_GENERATE_ALLOCA_H_FALSE='#'
12071 else
12072 GL_GENERATE_ALLOCA_H_TRUE='#'
12073 GL_GENERATE_ALLOCA_H_FALSE=
12074 fi
12075
12076
12077
12078
12079
12080 if test $ac_cv_func_canonicalize_file_name = no; then
12081 HAVE_CANONICALIZE_FILE_NAME=0
12082 if test $ac_cv_func_realpath = no; then
12083 HAVE_REALPATH=0
12084 else
12085 case "$gl_cv_func_realpath_works" in
12086 *yes) ;;
12087 *) REPLACE_REALPATH=1 ;;
12088 esac
12089 fi
12090 else
12091 case "$gl_cv_func_realpath_works" in
12092 *yes)
12093 ;;
12094 *)
12095 REPLACE_CANONICALIZE_FILE_NAME=1
12096 REPLACE_REALPATH=1
12097 ;;
12098 esac
12099 fi
12100
12101 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
12102
12103
12104
12105
12106
12107
12108
12109
12110 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
12111
12112 fi
12113
12114
12115 cat >>confdefs.h <<_ACEOF
12116 #define GNULIB_CANONICALIZE_LGPL 1
12117 _ACEOF
12118
12119
12120
12121
12122
12123
12124
12125 GNULIB_CANONICALIZE_FILE_NAME=1
12126
12127
12128
12129
12130
12131 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
12132
12133
12134
12135
12136
12137
12138
12139
12140 GNULIB_REALPATH=1
12141
12142
12143
12144
12145
12146 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
12147
12148
12149
12150
12151
12152
12153
12154
12155 GNULIB_CHDIR=1
12156
12157
12158
12159
12160
12161 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
12162
12163
12164
12165
12166 if test "x$datarootdir" = x; then
12167 datarootdir='${datadir}'
12168
12169 fi
12170 if test "x$docdir" = x; then
12171 docdir='${datarootdir}/doc/${PACKAGE}'
12172
12173 fi
12174 if test "x$htmldir" = x; then
12175 htmldir='${docdir}'
12176
12177 fi
12178 if test "x$dvidir" = x; then
12179 dvidir='${docdir}'
12180
12181 fi
12182 if test "x$pdfdir" = x; then
12183 pdfdir='${docdir}'
12184
12185 fi
12186 if test "x$psdir" = x; then
12187 psdir='${docdir}'
12188
12189 fi
12190 if test "x$lispdir" = x; then
12191 lispdir='${datarootdir}/emacs/site-lisp'
12192
12193 fi
12194 if test "x$localedir" = x; then
12195 localedir='${datarootdir}/locale'
12196
12197 fi
12198 if test "x$runstatedir" = x; then
12199 runstatedir='${localstatedir}/run'
12200
12201 fi
12202
12203 pkglibexecdir='${libexecdir}/${PACKAGE}'
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218 if test $gl_cv_have_include_next = yes; then
12219 gl_cv_next_dirent_h='<'dirent.h'>'
12220 else
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
12222 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
12223 if test "${gl_cv_next_dirent_h+set}" = set; then :
12224 $as_echo_n "(cached) " >&6
12225 else
12226
12227 if test $ac_cv_header_dirent_h = yes; then
12228
12229
12230
12231
12232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12233 /* end confdefs.h. */
12234 #include <dirent.h>
12235 _ACEOF
12236 case "$host_os" in
12237 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12238 *) gl_absname_cpp="$ac_cpp" ;;
12239 esac
12240
12241 case "$host_os" in
12242 mingw*)
12243 gl_dirsep_regex='[/\\]'
12244 ;;
12245 *)
12246 gl_dirsep_regex='\/'
12247 ;;
12248 esac
12249 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12250 gl_header_literal_regex=`echo 'dirent.h' \
12251 | sed -e "$gl_make_literal_regex_sed"`
12252 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12253 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12254 s|^/[^/]|//&|
12255 p
12256 q
12257 }'
12258
12259 gl_cv_absolute_dirent_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12260 sed -n "$gl_absolute_header_sed"`
12261
12262 gl_header=$gl_cv_absolute_dirent_h
12263 gl_cv_next_dirent_h='"'$gl_header'"'
12264 else
12265 gl_cv_next_dirent_h='<'dirent.h'>'
12266 fi
12267
12268
12269 fi
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
12271 $as_echo "$gl_cv_next_dirent_h" >&6; }
12272 fi
12273 NEXT_DIRENT_H=$gl_cv_next_dirent_h
12274
12275 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12276 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12277 gl_next_as_first_directive='<'dirent.h'>'
12278 else
12279 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12280 gl_next_as_first_directive=$gl_cv_next_dirent_h
12281 fi
12282 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
12283
12284
12285
12286
12287 if test $ac_cv_header_dirent_h = yes; then
12288 HAVE_DIRENT_H=1
12289 else
12290 HAVE_DIRENT_H=0
12291 fi
12292
12293
12294
12295 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
12296 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
12298 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12299 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
12300 $as_echo_n "(cached) " >&6
12301 else
12302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12303 /* end confdefs.h. */
12304 #include <dirent.h>
12305
12306 int
12307 main ()
12308 {
12309 #undef $gl_func
12310 (void) $gl_func;
12311 ;
12312 return 0;
12313 }
12314 _ACEOF
12315 if ac_fn_c_try_compile "$LINENO"; then :
12316 eval "$as_gl_Symbol=yes"
12317 else
12318 eval "$as_gl_Symbol=no"
12319 fi
12320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12321 fi
12322 eval ac_res=\$$as_gl_Symbol
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12324 $as_echo "$ac_res" >&6; }
12325 eval as_val=\$$as_gl_Symbol
12326 if test "x$as_val" = x""yes; then :
12327 cat >>confdefs.h <<_ACEOF
12328 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
12329 _ACEOF
12330
12331 eval ac_cv_have_decl_$gl_func=yes
12332 fi
12333 done
12334
12335
12336
12337
12338
12339
12340
12341 for ac_func in dirfd
12342 do :
12343 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
12344 if test "x$ac_cv_func_dirfd" = x""yes; then :
12345 cat >>confdefs.h <<_ACEOF
12346 #define HAVE_DIRFD 1
12347 _ACEOF
12348
12349 fi
12350 done
12351
12352 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
12353 #include <dirent.h>
12354 "
12355 if test "x$ac_cv_have_decl_dirfd" = x""yes; then :
12356 ac_have_decl=1
12357 else
12358 ac_have_decl=0
12359 fi
12360
12361 cat >>confdefs.h <<_ACEOF
12362 #define HAVE_DECL_DIRFD $ac_have_decl
12363 _ACEOF
12364
12365 if test $ac_cv_have_decl_dirfd = no; then
12366 HAVE_DECL_DIRFD=0
12367 fi
12368
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
12370 $as_echo_n "checking whether dirfd is a macro... " >&6; }
12371 if test "${gl_cv_func_dirfd_macro+set}" = set; then :
12372 $as_echo_n "(cached) " >&6
12373 else
12374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12375 /* end confdefs.h. */
12376
12377 #include <sys/types.h>
12378 #include <dirent.h>
12379 #ifdef dirfd
12380 dirent_header_defines_dirfd
12381 #endif
12382 _ACEOF
12383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12384 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
12385 gl_cv_func_dirfd_macro=yes
12386 else
12387 gl_cv_func_dirfd_macro=no
12388 fi
12389 rm -f conftest*
12390
12391 fi
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
12393 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
12394
12395 # Use the replacement only if we have no function or macro with that name.
12396 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
12397 if test $ac_cv_have_decl_dirfd = yes; then
12398 # If the system declares dirfd already, let's declare rpl_dirfd instead.
12399 REPLACE_DIRFD=1
12400 fi
12401 fi
12402
12403 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
12404
12405
12406
12407
12408
12409
12410
12411
12412 gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
12413
12414
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
12416 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
12417 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then :
12418 $as_echo_n "(cached) " >&6
12419 else
12420
12421 dirfd_save_CFLAGS=$CFLAGS
12422 for ac_expr in d_fd dd_fd; do
12423
12424 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
12425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12426 /* end confdefs.h. */
12427
12428 #include <sys/types.h>
12429 #include <dirent.h>
12430 int
12431 main ()
12432 {
12433 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
12434 ;
12435 return 0;
12436 }
12437 _ACEOF
12438 if ac_fn_c_try_compile "$LINENO"; then :
12439 dir_fd_found=yes
12440
12441 fi
12442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12443 CFLAGS=$dirfd_save_CFLAGS
12444 test "$dir_fd_found" = yes && break
12445 done
12446 test "$dir_fd_found" = yes || ac_expr=no_such_member
12447
12448 gl_cv_sys_dir_fd_member_name=$ac_expr
12449
12450
12451 fi
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
12453 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
12454 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
12455
12456 cat >>confdefs.h <<_ACEOF
12457 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
12458 _ACEOF
12459
12460 fi
12461
12462
12463 fi
12464
12465
12466
12467
12468
12469 GNULIB_DIRFD=1
12470
12471
12472
12473
12474
12475 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
12486 $as_echo_n "checking whether // is distinct from /... " >&6; }
12487 if test "${gl_cv_double_slash_root+set}" = set; then :
12488 $as_echo_n "(cached) " >&6
12489 else
12490 if test x"$cross_compiling" = xyes ; then
12491 # When cross-compiling, there is no way to tell whether // is special
12492 # short of a list of hosts. However, the only known hosts to date
12493 # that have a distinct // are Apollo DomainOS (too old to port to),
12494 # Cygwin, and z/OS. If anyone knows of another system for which // has
12495 # special semantics and is distinct from /, please report it to
12496 # <bug-gnulib@gnu.org>.
12497 case $host in
12498 *-cygwin | i370-ibm-openedition)
12499 gl_cv_double_slash_root=yes ;;
12500 *)
12501 # Be optimistic and assume that / and // are the same when we
12502 # don't know.
12503 gl_cv_double_slash_root='unknown, assuming no' ;;
12504 esac
12505 else
12506 set x `ls -di / // 2>/dev/null`
12507 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
12508 gl_cv_double_slash_root=no
12509 else
12510 gl_cv_double_slash_root=yes
12511 fi
12512 fi
12513 fi
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
12515 $as_echo "$gl_cv_double_slash_root" >&6; }
12516 if test "$gl_cv_double_slash_root" = yes; then
12517
12518 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
12519
12520 fi
12521
12522
12523
12524
12525
12526
12527 FLOAT_H=
12528 REPLACE_FLOAT_LDBL=0
12529 case "$host_os" in
12530 aix* | beos* | openbsd* | mirbsd* | irix*)
12531 FLOAT_H=float.h
12532 ;;
12533 freebsd*)
12534 case "$host_cpu" in
12535 i[34567]86 )
12536 FLOAT_H=float.h
12537 ;;
12538 x86_64 )
12539 # On x86_64 systems, the C compiler may still be generating
12540 # 32-bit code.
12541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12542 /* end confdefs.h. */
12543 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
12544 yes
12545 #endif
12546 _ACEOF
12547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12548 $EGREP "yes" >/dev/null 2>&1; then :
12549
12550 else
12551 FLOAT_H=float.h
12552 fi
12553 rm -f conftest*
12554
12555 ;;
12556 esac
12557 ;;
12558 linux*)
12559 case "$host_cpu" in
12560 powerpc*)
12561 FLOAT_H=float.h
12562 ;;
12563 esac
12564 ;;
12565 esac
12566 case "$host_os" in
12567 aix* | freebsd* | linux*)
12568 if test -n "$FLOAT_H"; then
12569 REPLACE_FLOAT_LDBL=1
12570 fi
12571 ;;
12572 esac
12573
12574 REPLACE_ITOLD=0
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
12576 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
12577 if test "${gl_cv_func_itold_works+set}" = set; then :
12578 $as_echo_n "(cached) " >&6
12579 else
12580
12581 if test "$cross_compiling" = yes; then :
12582 case "$host" in
12583 sparc*-*-linux*)
12584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12585 /* end confdefs.h. */
12586 #if defined __LP64__ || defined __arch64__
12587 yes
12588 #endif
12589 _ACEOF
12590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12591 $EGREP "yes" >/dev/null 2>&1; then :
12592 gl_cv_func_itold_works="guessing no"
12593 else
12594 gl_cv_func_itold_works="guessing yes"
12595 fi
12596 rm -f conftest*
12597
12598 ;;
12599 *) gl_cv_func_itold_works="guessing yes" ;;
12600 esac
12601
12602 else
12603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12604 /* end confdefs.h. */
12605
12606 int i = -1;
12607 volatile long double ld;
12608 int main ()
12609 {
12610 ld += i * 1.0L;
12611 if (ld > 0)
12612 return 1;
12613 return 0;
12614 }
12615 _ACEOF
12616 if ac_fn_c_try_run "$LINENO"; then :
12617 gl_cv_func_itold_works=yes
12618 else
12619 gl_cv_func_itold_works=no
12620 fi
12621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12622 conftest.$ac_objext conftest.beam conftest.$ac_ext
12623 fi
12624
12625
12626 fi
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
12628 $as_echo "$gl_cv_func_itold_works" >&6; }
12629 case "$gl_cv_func_itold_works" in
12630 *no)
12631 REPLACE_ITOLD=1
12632 FLOAT_H=float.h
12633 ;;
12634 esac
12635
12636 if test -n "$FLOAT_H"; then
12637
12638
12639
12640
12641
12642
12643
12644
12645 if test $gl_cv_have_include_next = yes; then
12646 gl_cv_next_float_h='<'float.h'>'
12647 else
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
12649 $as_echo_n "checking absolute name of <float.h>... " >&6; }
12650 if test "${gl_cv_next_float_h+set}" = set; then :
12651 $as_echo_n "(cached) " >&6
12652 else
12653
12654
12655
12656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12657 /* end confdefs.h. */
12658 #include <float.h>
12659 _ACEOF
12660 case "$host_os" in
12661 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12662 *) gl_absname_cpp="$ac_cpp" ;;
12663 esac
12664
12665 case "$host_os" in
12666 mingw*)
12667 gl_dirsep_regex='[/\\]'
12668 ;;
12669 *)
12670 gl_dirsep_regex='\/'
12671 ;;
12672 esac
12673 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12674 gl_header_literal_regex=`echo 'float.h' \
12675 | sed -e "$gl_make_literal_regex_sed"`
12676 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12677 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12678 s|^/[^/]|//&|
12679 p
12680 q
12681 }'
12682
12683 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12684 sed -n "$gl_absolute_header_sed"`
12685
12686 gl_header=$gl_cv_absolute_float_h
12687 gl_cv_next_float_h='"'$gl_header'"'
12688
12689
12690 fi
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
12692 $as_echo "$gl_cv_next_float_h" >&6; }
12693 fi
12694 NEXT_FLOAT_H=$gl_cv_next_float_h
12695
12696 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12697 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12698 gl_next_as_first_directive='<'float.h'>'
12699 else
12700 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12701 gl_next_as_first_directive=$gl_cv_next_float_h
12702 fi
12703 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
12704
12705
12706
12707
12708 fi
12709
12710 if test -n "$FLOAT_H"; then
12711 GL_GENERATE_FLOAT_H_TRUE=
12712 GL_GENERATE_FLOAT_H_FALSE='#'
12713 else
12714 GL_GENERATE_FLOAT_H_TRUE='#'
12715 GL_GENERATE_FLOAT_H_FALSE=
12716 fi
12717
12718
12719
12720 if test $REPLACE_FLOAT_LDBL = 1; then
12721
12722
12723
12724
12725
12726
12727
12728
12729 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
12730
12731 fi
12732 if test $REPLACE_ITOLD = 1; then
12733
12734
12735
12736
12737
12738
12739
12740
12741 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
12742
12743 fi
12744
12745
12746
12747
12748
12749 FNMATCH_H=
12750 gl_fnmatch_required_lowercase=`
12751 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
12752 `
12753 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
12755 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
12756 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
12757 $as_echo_n "(cached) " >&6
12758 else
12759 if test $gl_fnmatch_required = GNU; then
12760 gl_fnmatch_gnu_start=
12761 gl_fnmatch_gnu_end=
12762 else
12763 gl_fnmatch_gnu_start='#if 0'
12764 gl_fnmatch_gnu_end='#endif'
12765 fi
12766 if test "$cross_compiling" = yes; then :
12767 eval "$gl_fnmatch_cache_var=\"guessing no\""
12768 else
12769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12770 /* end confdefs.h. */
12771 #include <fnmatch.h>
12772 static int
12773 y (char const *pattern, char const *string, int flags)
12774 {
12775 return fnmatch (pattern, string, flags) == 0;
12776 }
12777 static int
12778 n (char const *pattern, char const *string, int flags)
12779 {
12780 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
12781 }
12782
12783 int
12784 main ()
12785 {
12786 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
12787 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
12788 static char const A_1[] = { 'A' - 1, 0 };
12789 static char const A01[] = { 'A' + 1, 0 };
12790 static char const a_1[] = { 'a' - 1, 0 };
12791 static char const a01[] = { 'a' + 1, 0 };
12792 static char const bs_1[] = { '\\\\' - 1, 0 };
12793 static char const bs01[] = { '\\\\' + 1, 0 };
12794 int result = 0;
12795 if (!n ("a*", "", 0))
12796 return 1;
12797 if (!y ("a*", "abc", 0))
12798 return 1;
12799 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
12800 return 1;
12801 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
12802 return 2;
12803 if (!y ("a\\\\bc", "abc", 0))
12804 return 3;
12805 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
12806 return 3;
12807 if (!y ("*x", ".x", 0))
12808 return 4;
12809 if (!n ("*x", ".x", FNM_PERIOD))
12810 return 4;
12811 if (!y (Apat, "\\\\", 0))
12812 return 5;
12813 if (!y (Apat, "A", 0))
12814 return 5;
12815 if (!y (apat, "\\\\", 0))
12816 return 5;
12817 if (!y (apat, "a", 0))
12818 return 5;
12819 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
12820 return 5;
12821 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
12822 return 5;
12823 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
12824 return 5;
12825 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
12826 return 5;
12827 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
12828 return 5;
12829 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
12830 return 5;
12831 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
12832 return 5;
12833 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
12834 return 5;
12835 $gl_fnmatch_gnu_start
12836 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
12837 result |= 8;
12838 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
12839 result |= 16;
12840 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
12841 result |= 32;
12842 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
12843 result |= 64;
12844 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
12845 result |= 64;
12846 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
12847 result |= 64;
12848 $gl_fnmatch_gnu_end
12849 return result;
12850
12851 ;
12852 return 0;
12853 }
12854 _ACEOF
12855 if ac_fn_c_try_run "$LINENO"; then :
12856 eval "$gl_fnmatch_cache_var=yes"
12857 else
12858 eval "$gl_fnmatch_cache_var=no"
12859 fi
12860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12861 conftest.$ac_objext conftest.beam conftest.$ac_ext
12862 fi
12863
12864
12865 fi
12866 eval ac_res=\$$gl_fnmatch_cache_var
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12868 $as_echo "$ac_res" >&6; }
12869 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
12870 if test "$gl_fnmatch_result" = yes; then
12871 rm -f "$gl_source_base/fnmatch.h"
12872 else
12873 FNMATCH_H=fnmatch.h
12874 fi
12875
12876 if test -n "$FNMATCH_H"; then
12877 GL_GENERATE_FNMATCH_H_TRUE=
12878 GL_GENERATE_FNMATCH_H_FALSE='#'
12879 else
12880 GL_GENERATE_FNMATCH_H_TRUE='#'
12881 GL_GENERATE_FNMATCH_H_FALSE=
12882 fi
12883
12884
12885 if test -n "$FNMATCH_H"; then
12886
12887
12888
12889
12890
12891
12892
12893
12894 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
12895
12896
12897
12898 cat >>confdefs.h <<_ACEOF
12899 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
12900 _ACEOF
12901
12902
12903 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
12904 "
12905 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
12906 ac_have_decl=1
12907 else
12908 ac_have_decl=0
12909 fi
12910
12911 cat >>confdefs.h <<_ACEOF
12912 #define HAVE_DECL_ISBLANK $ac_have_decl
12913 _ACEOF
12914
12915
12916
12917
12918 fi
12919
12920
12921
12922
12923
12924 if test -n "$FNMATCH_H"; then
12925
12926
12927
12928
12929
12930
12931
12932
12933 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
12934
12935
12936
12937 cat >>confdefs.h <<_ACEOF
12938 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
12939 _ACEOF
12940
12941
12942 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
12943 "
12944 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
12945 ac_have_decl=1
12946 else
12947 ac_have_decl=0
12948 fi
12949
12950 cat >>confdefs.h <<_ACEOF
12951 #define HAVE_DECL_ISBLANK $ac_have_decl
12952 _ACEOF
12953
12954
12955
12956
12957 fi
12958
12959
12960
12961 FREXP_LIBM=
12962 if test $gl_cv_func_frexp_no_libm = no; then
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
12964 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
12965 if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
12966 $as_echo_n "(cached) " >&6
12967 else
12968
12969 save_LIBS="$LIBS"
12970 LIBS="$LIBS -lm"
12971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12972 /* end confdefs.h. */
12973 #include <math.h>
12974 double x;
12975 int
12976 main ()
12977 {
12978 int e; return frexp (x, &e) > 0;
12979 ;
12980 return 0;
12981 }
12982 _ACEOF
12983 if ac_fn_c_try_link "$LINENO"; then :
12984 gl_cv_func_frexp_in_libm=yes
12985 else
12986 gl_cv_func_frexp_in_libm=no
12987 fi
12988 rm -f core conftest.err conftest.$ac_objext \
12989 conftest$ac_exeext conftest.$ac_ext
12990 LIBS="$save_LIBS"
12991
12992 fi
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
12994 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
12995 if test $gl_cv_func_frexp_in_libm = yes; then
12996 FREXP_LIBM=-lm
12997 fi
12998 fi
12999 if test $gl_cv_func_frexp_no_libm = yes \
13000 || test $gl_cv_func_frexp_in_libm = yes; then
13001 save_LIBS="$LIBS"
13002 LIBS="$LIBS $FREXP_LIBM"
13003
13004
13005
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
13007 $as_echo_n "checking whether frexp works... " >&6; }
13008 if test "${gl_cv_func_frexp_works+set}" = set; then :
13009 $as_echo_n "(cached) " >&6
13010 else
13011
13012 if test "$cross_compiling" = yes; then :
13013 case "$host_os" in
13014 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
13015 *) gl_cv_func_frexp_works="guessing yes";;
13016 esac
13017
13018 else
13019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13020 /* end confdefs.h. */
13021
13022 #include <float.h>
13023 #include <math.h>
13024 #include <string.h>
13025 #if HAVE_DECL_ALARM
13026 # include <signal.h>
13027 # include <unistd.h>
13028 #endif
13029 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
13030 ICC 10.0 has a bug when optimizing the expression -zero.
13031 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
13032 to PowerPC on Mac OS X 10.5. */
13033 #if defined __hpux || defined __sgi || defined __ICC
13034 static double
13035 compute_minus_zero (void)
13036 {
13037 return -DBL_MIN * DBL_MIN;
13038 }
13039 # define minus_zero compute_minus_zero ()
13040 #else
13041 double minus_zero = -0.0;
13042 #endif
13043 int main()
13044 {
13045 int result = 0;
13046 int i;
13047 volatile double x;
13048 double zero = 0.0;
13049 #if HAVE_DECL_ALARM
13050 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
13051 number. Let the test fail in this case. */
13052 signal (SIGALRM, SIG_DFL);
13053 alarm (5);
13054 #endif
13055 /* Test on denormalized numbers. */
13056 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
13057 ;
13058 if (x > 0.0)
13059 {
13060 int exp;
13061 double y = frexp (x, &exp);
13062 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
13063 On NetBSD: y = 0.75. Correct: y = 0.5. */
13064 if (y != 0.5)
13065 result |= 1;
13066 }
13067 /* Test on infinite numbers. */
13068 x = 1.0 / zero;
13069 {
13070 int exp;
13071 double y = frexp (x, &exp);
13072 if (y != x)
13073 result |= 2;
13074 }
13075 /* Test on negative zero. */
13076 x = minus_zero;
13077 {
13078 int exp;
13079 double y = frexp (x, &exp);
13080 if (memcmp (&y, &x, sizeof x))
13081 result |= 4;
13082 }
13083 return result;
13084 }
13085 _ACEOF
13086 if ac_fn_c_try_run "$LINENO"; then :
13087 gl_cv_func_frexp_works=yes
13088 else
13089 gl_cv_func_frexp_works=no
13090 fi
13091 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13092 conftest.$ac_objext conftest.beam conftest.$ac_ext
13093 fi
13094
13095
13096 fi
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
13098 $as_echo "$gl_cv_func_frexp_works" >&6; }
13099
13100 LIBS="$save_LIBS"
13101 case "$gl_cv_func_frexp_works" in
13102 *yes) gl_func_frexp=yes ;;
13103 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
13104 esac
13105 else
13106 gl_func_frexp=no
13107 fi
13108 if test $gl_func_frexp = yes; then
13109
13110 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
13111
13112 fi
13113
13114
13115 if test $gl_func_frexp != yes; then
13116
13117
13118
13119
13120
13121
13122
13123
13124 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
13125
13126 fi
13127
13128
13129
13130
13131
13132 GNULIB_FREXP=1
13133
13134
13135
13136
13137
13138 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
13149 "
13150 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
13151
13152 else
13153 HAVE_DECL_FREXPL=0
13154 fi
13155
13156
13157 FREXPL_LIBM=
13158 if test $HAVE_DECL_FREXPL = 1; then
13159
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
13161 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
13162 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
13163 $as_echo_n "(cached) " >&6
13164 else
13165
13166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13167 /* end confdefs.h. */
13168 #include <math.h>
13169 long double x;
13170 int
13171 main ()
13172 {
13173 int e; return frexpl (x, &e) > 0;
13174 ;
13175 return 0;
13176 }
13177 _ACEOF
13178 if ac_fn_c_try_link "$LINENO"; then :
13179 gl_cv_func_frexpl_no_libm=yes
13180 else
13181 gl_cv_func_frexpl_no_libm=no
13182 fi
13183 rm -f core conftest.err conftest.$ac_objext \
13184 conftest$ac_exeext conftest.$ac_ext
13185
13186 fi
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
13188 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
13189
13190 if test $gl_cv_func_frexpl_no_libm = no; then
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
13192 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
13193 if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
13194 $as_echo_n "(cached) " >&6
13195 else
13196
13197 save_LIBS="$LIBS"
13198 LIBS="$LIBS -lm"
13199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200 /* end confdefs.h. */
13201 #include <math.h>
13202 long double x;
13203 int
13204 main ()
13205 {
13206 int e; return frexpl (x, &e) > 0;
13207 ;
13208 return 0;
13209 }
13210 _ACEOF
13211 if ac_fn_c_try_link "$LINENO"; then :
13212 gl_cv_func_frexpl_in_libm=yes
13213 else
13214 gl_cv_func_frexpl_in_libm=no
13215 fi
13216 rm -f core conftest.err conftest.$ac_objext \
13217 conftest$ac_exeext conftest.$ac_ext
13218 LIBS="$save_LIBS"
13219
13220 fi
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
13222 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
13223 if test $gl_cv_func_frexpl_in_libm = yes; then
13224 FREXPL_LIBM=-lm
13225 fi
13226 fi
13227 if test $gl_cv_func_frexpl_no_libm = yes \
13228 || test $gl_cv_func_frexpl_in_libm = yes; then
13229 save_LIBS="$LIBS"
13230 LIBS="$LIBS $FREXPL_LIBM"
13231
13232
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
13234 $as_echo_n "checking whether frexpl works... " >&6; }
13235 if test "${gl_cv_func_frexpl_works+set}" = set; then :
13236 $as_echo_n "(cached) " >&6
13237 else
13238
13239 if test "$cross_compiling" = yes; then :
13240
13241 case "$host_os" in
13242 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
13243 gl_cv_func_frexpl_works="guessing no";;
13244 *) gl_cv_func_frexpl_works="guessing yes";;
13245 esac
13246
13247 else
13248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13249 /* end confdefs.h. */
13250
13251 #include <float.h>
13252 #include <math.h>
13253 /* Override the values of <float.h>, like done in float.in.h. */
13254 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
13255 # undef LDBL_MIN_EXP
13256 # define LDBL_MIN_EXP (-16381)
13257 #endif
13258 #if defined __i386__ && defined __FreeBSD__
13259 # undef LDBL_MIN_EXP
13260 # define LDBL_MIN_EXP (-16381)
13261 #endif
13262 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
13263 # undef LDBL_MIN_EXP
13264 # define LDBL_MIN_EXP DBL_MIN_EXP
13265 #endif
13266 #if defined __sgi && (LDBL_MANT_DIG >= 106)
13267 # if defined __GNUC__
13268 # undef LDBL_MIN_EXP
13269 # define LDBL_MIN_EXP DBL_MIN_EXP
13270 # endif
13271 #endif
13272 extern
13273 #ifdef __cplusplus
13274 "C"
13275 #endif
13276 long double frexpl (long double, int *);
13277 int main()
13278 {
13279 int result = 0;
13280 volatile long double x;
13281 /* Test on finite numbers that fails on AIX 5.1. */
13282 x = 16.0L;
13283 {
13284 int exp = -9999;
13285 frexpl (x, &exp);
13286 if (exp != 5)
13287 result |= 1;
13288 }
13289 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
13290 function returns an invalid (incorrectly normalized) value: it returns
13291 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
13292 but the correct result is
13293 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
13294 x = 1.01L;
13295 {
13296 int exp = -9999;
13297 long double y = frexpl (x, &exp);
13298 if (!(exp == 1 && y == 0.505L))
13299 result |= 2;
13300 }
13301 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
13302 LDBL_MAX_EXP = 16384.
13303 In the loop end test, we test x against Infinity, rather than comparing
13304 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
13305 {
13306 int i;
13307 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
13308 {
13309 int exp = -9999;
13310 frexpl (x, &exp);
13311 if (exp != i)
13312 {
13313 result |= 4;
13314 break;
13315 }
13316 }
13317 }
13318 /* Test on denormalized numbers. */
13319 {
13320 int i;
13321 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
13322 ;
13323 if (x > 0.0L)
13324 {
13325 int exp;
13326 long double y = frexpl (x, &exp);
13327 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
13328 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
13329 if (exp != LDBL_MIN_EXP - 1)
13330 result |= 8;
13331 }
13332 }
13333 /* Test on infinite numbers. */
13334 x = 1.0L / 0.0L;
13335 {
13336 int exp;
13337 long double y = frexpl (x, &exp);
13338 if (y != x)
13339 result |= 16;
13340 }
13341 return result;
13342 }
13343 _ACEOF
13344 if ac_fn_c_try_run "$LINENO"; then :
13345 gl_cv_func_frexpl_works=yes
13346 else
13347 gl_cv_func_frexpl_works=no
13348 fi
13349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13350 conftest.$ac_objext conftest.beam conftest.$ac_ext
13351 fi
13352
13353
13354 fi
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
13356 $as_echo "$gl_cv_func_frexpl_works" >&6; }
13357
13358 LIBS="$save_LIBS"
13359 case "$gl_cv_func_frexpl_works" in
13360 *yes) gl_func_frexpl=yes ;;
13361 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
13362 esac
13363 else
13364 gl_func_frexpl=no
13365 fi
13366 if test $gl_func_frexpl = yes; then
13367
13368 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
13369
13370 fi
13371 fi
13372 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
13373 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
13374
13375 FREXPL_LIBM="$FREXP_LIBM"
13376 else
13377 FREXPL_LIBM=
13378 fi
13379 fi
13380
13381
13382 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
13383
13384
13385
13386
13387
13388
13389
13390
13391 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
13392
13393 fi
13394
13395
13396
13397
13398
13399 GNULIB_FREXPL=1
13400
13401
13402
13403
13404
13405 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415 gl_gettimeofday_timezone=void
13416 if test $ac_cv_func_gettimeofday != yes; then
13417 HAVE_GETTIMEOFDAY=0
13418 else
13419
13420
13421
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
13423 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
13424 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then :
13425 $as_echo_n "(cached) " >&6
13426 else
13427 if test "$cross_compiling" = yes; then :
13428 # When cross-compiling:
13429 case "$host_os" in
13430 # Guess all is fine on glibc systems.
13431 *-gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
13432 # If we don't know, assume the worst.
13433 *) gl_cv_func_gettimeofday_clobber="guessing yes" ;;
13434 esac
13435
13436 else
13437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13438 /* end confdefs.h. */
13439 #include <string.h>
13440 #include <sys/time.h>
13441 #include <time.h>
13442 #include <stdlib.h>
13443
13444 int
13445 main ()
13446 {
13447
13448 time_t t = 0;
13449 struct tm *lt;
13450 struct tm saved_lt;
13451 struct timeval tv;
13452 lt = localtime (&t);
13453 saved_lt = *lt;
13454 gettimeofday (&tv, NULL);
13455 return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
13456
13457 ;
13458 return 0;
13459 }
13460 _ACEOF
13461 if ac_fn_c_try_run "$LINENO"; then :
13462 gl_cv_func_gettimeofday_clobber=no
13463 else
13464 gl_cv_func_gettimeofday_clobber=yes
13465 fi
13466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13467 conftest.$ac_objext conftest.beam conftest.$ac_ext
13468 fi
13469
13470 fi
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
13472 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
13473
13474 case "$gl_cv_func_gettimeofday_clobber" in
13475 *yes)
13476 REPLACE_GETTIMEOFDAY=1
13477
13478 REPLACE_GMTIME=1
13479 REPLACE_LOCALTIME=1
13480
13481
13482 $as_echo "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
13483
13484 ;;
13485 esac
13486
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
13488 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
13489 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then :
13490 $as_echo_n "(cached) " >&6
13491 else
13492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13493 /* end confdefs.h. */
13494 #include <sys/time.h>
13495 struct timeval c;
13496 int gettimeofday (struct timeval *restrict, void *restrict);
13497
13498 int
13499 main ()
13500 {
13501 /* glibc uses struct timezone * rather than the POSIX void *
13502 if _GNU_SOURCE is defined. However, since the only portable
13503 use of gettimeofday uses NULL as the second parameter, and
13504 since the glibc definition is actually more typesafe, it is
13505 not worth wrapping this to get a compliant signature. */
13506 int (*f) (struct timeval *restrict, void *restrict)
13507 = gettimeofday;
13508 int x = f (&c, 0);
13509 return !(x | c.tv_sec | c.tv_usec);
13510
13511 ;
13512 return 0;
13513 }
13514 _ACEOF
13515 if ac_fn_c_try_compile "$LINENO"; then :
13516 gl_cv_func_gettimeofday_posix_signature=yes
13517 else
13518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13519 /* end confdefs.h. */
13520 #include <sys/time.h>
13521 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
13522
13523 int
13524 main ()
13525 {
13526
13527 ;
13528 return 0;
13529 }
13530 _ACEOF
13531 if ac_fn_c_try_compile "$LINENO"; then :
13532 gl_cv_func_gettimeofday_posix_signature=almost
13533 else
13534 gl_cv_func_gettimeofday_posix_signature=no
13535 fi
13536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13537 fi
13538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13539 fi
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
13541 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
13542 if test $gl_cv_func_gettimeofday_posix_signature = almost; then
13543 gl_gettimeofday_timezone='struct timezone'
13544 elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
13545 REPLACE_GETTIMEOFDAY=1
13546 fi
13547 if test $REPLACE_STRUCT_TIMEVAL = 1; then
13548 REPLACE_GETTIMEOFDAY=1
13549 fi
13550
13551 fi
13552
13553 cat >>confdefs.h <<_ACEOF
13554 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
13555 _ACEOF
13556
13557
13558 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
13559
13560
13561
13562
13563
13564
13565
13566
13567 gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
13568
13569
13570 for ac_header in sys/timeb.h
13571 do :
13572 ac_fn_c_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
13573 if test "x$ac_cv_header_sys_timeb_h" = x""yes; then :
13574 cat >>confdefs.h <<_ACEOF
13575 #define HAVE_SYS_TIMEB_H 1
13576 _ACEOF
13577
13578 fi
13579
13580 done
13581
13582 for ac_func in _ftime
13583 do :
13584 ac_fn_c_check_func "$LINENO" "_ftime" "ac_cv_func__ftime"
13585 if test "x$ac_cv_func__ftime" = x""yes; then :
13586 cat >>confdefs.h <<_ACEOF
13587 #define HAVE__FTIME 1
13588 _ACEOF
13589
13590 fi
13591 done
13592
13593
13594 fi
13595
13596
13597
13598
13599
13600 GNULIB_GETTIMEOFDAY=1
13601
13602
13603
13604
13605
13606 $as_echo "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
13607
13608
13609
13610
13611
13612
13613
13614
13615 PRIPTR_PREFIX=
13616 if test -n "$STDINT_H"; then
13617 PRIPTR_PREFIX='"l"'
13618 else
13619 for glpfx in '' l ll I64; do
13620 case $glpfx in
13621 '') gltype1='int';;
13622 l) gltype1='long int';;
13623 ll) gltype1='long long int';;
13624 I64) gltype1='__int64';;
13625 esac
13626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13627 /* end confdefs.h. */
13628 #include <stdint.h>
13629 extern intptr_t foo;
13630 extern $gltype1 foo;
13631 int
13632 main ()
13633 {
13634
13635 ;
13636 return 0;
13637 }
13638 _ACEOF
13639 if ac_fn_c_try_compile "$LINENO"; then :
13640 PRIPTR_PREFIX='"'$glpfx'"'
13641 fi
13642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13643 test -n "$PRIPTR_PREFIX" && break
13644 done
13645 fi
13646
13647
13648
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
13650 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
13651 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
13652 $as_echo_n "(cached) " >&6
13653 else
13654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13655 /* end confdefs.h. */
13656 /* Work also in C++ mode. */
13657 #define __STDC_LIMIT_MACROS 1
13658
13659 /* Work if build is not clean. */
13660 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13661
13662 #include <limits.h>
13663 #if HAVE_STDINT_H
13664 #include <stdint.h>
13665 #endif
13666
13667 #if defined INT32_MAX && defined INTMAX_MAX
13668 #define CONDITION (INT32_MAX < INTMAX_MAX)
13669 #elif HAVE_LONG_LONG_INT
13670 #define CONDITION (sizeof (int) < sizeof (long long int))
13671 #else
13672 #define CONDITION 0
13673 #endif
13674 int test[CONDITION ? 1 : -1];
13675 int
13676 main ()
13677 {
13678
13679 ;
13680 return 0;
13681 }
13682 _ACEOF
13683 if ac_fn_c_try_compile "$LINENO"; then :
13684 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
13685 else
13686 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
13687 fi
13688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13689 fi
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
13691 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
13692 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
13693 INT32_MAX_LT_INTMAX_MAX=1;
13694 else
13695 INT32_MAX_LT_INTMAX_MAX=0;
13696 fi
13697
13698
13699 if test $APPLE_UNIVERSAL_BUILD = 0; then
13700
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
13702 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
13703 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
13704 $as_echo_n "(cached) " >&6
13705 else
13706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13707 /* end confdefs.h. */
13708 /* Work also in C++ mode. */
13709 #define __STDC_LIMIT_MACROS 1
13710
13711 /* Work if build is not clean. */
13712 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13713
13714 #include <limits.h>
13715 #if HAVE_STDINT_H
13716 #include <stdint.h>
13717 #endif
13718
13719 #if defined INT64_MAX
13720 #define CONDITION (INT64_MAX == LONG_MAX)
13721 #elif HAVE_LONG_LONG_INT
13722 #define CONDITION (sizeof (long long int) == sizeof (long int))
13723 #else
13724 #define CONDITION 0
13725 #endif
13726 int test[CONDITION ? 1 : -1];
13727 int
13728 main ()
13729 {
13730
13731 ;
13732 return 0;
13733 }
13734 _ACEOF
13735 if ac_fn_c_try_compile "$LINENO"; then :
13736 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
13737 else
13738 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
13739 fi
13740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13741 fi
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
13743 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
13744 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
13745 INT64_MAX_EQ_LONG_MAX=1;
13746 else
13747 INT64_MAX_EQ_LONG_MAX=0;
13748 fi
13749
13750
13751 else
13752 INT64_MAX_EQ_LONG_MAX=-1
13753 fi
13754
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
13756 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
13757 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
13758 $as_echo_n "(cached) " >&6
13759 else
13760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13761 /* end confdefs.h. */
13762 /* Work also in C++ mode. */
13763 #define __STDC_LIMIT_MACROS 1
13764
13765 /* Work if build is not clean. */
13766 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13767
13768 #include <limits.h>
13769 #if HAVE_STDINT_H
13770 #include <stdint.h>
13771 #endif
13772
13773 #if defined UINT32_MAX && defined UINTMAX_MAX
13774 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
13775 #elif HAVE_LONG_LONG_INT
13776 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
13777 #else
13778 #define CONDITION 0
13779 #endif
13780 int test[CONDITION ? 1 : -1];
13781 int
13782 main ()
13783 {
13784
13785 ;
13786 return 0;
13787 }
13788 _ACEOF
13789 if ac_fn_c_try_compile "$LINENO"; then :
13790 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
13791 else
13792 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
13793 fi
13794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13795 fi
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
13797 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
13798 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
13799 UINT32_MAX_LT_UINTMAX_MAX=1;
13800 else
13801 UINT32_MAX_LT_UINTMAX_MAX=0;
13802 fi
13803
13804
13805 if test $APPLE_UNIVERSAL_BUILD = 0; then
13806
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
13808 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
13809 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
13810 $as_echo_n "(cached) " >&6
13811 else
13812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13813 /* end confdefs.h. */
13814 /* Work also in C++ mode. */
13815 #define __STDC_LIMIT_MACROS 1
13816
13817 /* Work if build is not clean. */
13818 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13819
13820 #include <limits.h>
13821 #if HAVE_STDINT_H
13822 #include <stdint.h>
13823 #endif
13824
13825 #if defined UINT64_MAX
13826 #define CONDITION (UINT64_MAX == ULONG_MAX)
13827 #elif HAVE_LONG_LONG_INT
13828 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
13829 #else
13830 #define CONDITION 0
13831 #endif
13832 int test[CONDITION ? 1 : -1];
13833 int
13834 main ()
13835 {
13836
13837 ;
13838 return 0;
13839 }
13840 _ACEOF
13841 if ac_fn_c_try_compile "$LINENO"; then :
13842 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
13843 else
13844 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
13845 fi
13846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13847 fi
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
13849 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
13850 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
13851 UINT64_MAX_EQ_ULONG_MAX=1;
13852 else
13853 UINT64_MAX_EQ_ULONG_MAX=0;
13854 fi
13855
13856
13857 else
13858 UINT64_MAX_EQ_ULONG_MAX=-1
13859 fi
13860
13861
13862
13863
13864
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
13866 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
13867 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
13868 $as_echo_n "(cached) " >&6
13869 else
13870
13871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h. */
13873 #include <math.h>
13874 #if __GNUC__ >= 4
13875 # undef isnand
13876 # define isnand(x) __builtin_isnan ((double)(x))
13877 #else
13878 # undef isnand
13879 # define isnand(x) isnan ((double)(x))
13880 #endif
13881 double x;
13882 int
13883 main ()
13884 {
13885 return isnand (x);
13886 ;
13887 return 0;
13888 }
13889 _ACEOF
13890 if ac_fn_c_try_link "$LINENO"; then :
13891 gl_cv_func_isnand_no_libm=yes
13892 else
13893 gl_cv_func_isnand_no_libm=no
13894 fi
13895 rm -f core conftest.err conftest.$ac_objext \
13896 conftest$ac_exeext conftest.$ac_ext
13897
13898 fi
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
13900 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
13901
13902 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
13903 if test $gl_cv_func_isnand_no_libm = yes; then
13904
13905 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
13906
13907 fi
13908
13909 if test $gl_func_isnand_no_libm != yes; then
13910
13911
13912
13913
13914
13915
13916
13917
13918 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
13919
13920
13921
13922
13923 fi
13924
13925
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
13927 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
13928 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
13929 $as_echo_n "(cached) " >&6
13930 else
13931
13932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13933 /* end confdefs.h. */
13934 #include <math.h>
13935 #if __GNUC__ >= 4
13936 # undef isnanl
13937 # define isnanl(x) __builtin_isnanl ((long double)(x))
13938 #elif defined isnan
13939 # undef isnanl
13940 # define isnanl(x) isnan ((long double)(x))
13941 #endif
13942 long double x;
13943 int
13944 main ()
13945 {
13946 return isnanl (x);
13947 ;
13948 return 0;
13949 }
13950 _ACEOF
13951 if ac_fn_c_try_link "$LINENO"; then :
13952 gl_cv_func_isnanl_no_libm=yes
13953 else
13954 gl_cv_func_isnanl_no_libm=no
13955 fi
13956 rm -f core conftest.err conftest.$ac_objext \
13957 conftest$ac_exeext conftest.$ac_ext
13958
13959 fi
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
13961 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
13962
13963 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
13964 if test $gl_func_isnanl_no_libm = yes; then
13965
13966
13967
13968
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
13970 $as_echo_n "checking whether isnanl works... " >&6; }
13971 if test "${gl_cv_func_isnanl_works+set}" = set; then :
13972 $as_echo_n "(cached) " >&6
13973 else
13974
13975 if test "$cross_compiling" = yes; then :
13976 gl_cv_func_isnanl_works="guessing yes"
13977 else
13978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13979 /* end confdefs.h. */
13980
13981 #include <float.h>
13982 #include <limits.h>
13983 #include <math.h>
13984 #if __GNUC__ >= 4
13985 # undef isnanl
13986 # define isnanl(x) __builtin_isnanl ((long double)(x))
13987 #elif defined isnan
13988 # undef isnanl
13989 # define isnanl(x) isnan ((long double)(x))
13990 #endif
13991 #define NWORDS \
13992 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
13993 typedef union { unsigned int word[NWORDS]; long double value; }
13994 memory_long_double;
13995 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
13996 runtime type conversion. */
13997 #ifdef __sgi
13998 static long double NaNl ()
13999 {
14000 double zero = 0.0;
14001 return zero / zero;
14002 }
14003 #else
14004 # define NaNl() (0.0L / 0.0L)
14005 #endif
14006 int main ()
14007 {
14008 int result = 0;
14009
14010 if (!isnanl (NaNl ()))
14011 result |= 1;
14012
14013 {
14014 memory_long_double m;
14015 unsigned int i;
14016
14017 /* The isnanl function should be immune against changes in the sign bit and
14018 in the mantissa bits. The xor operation twiddles a bit that can only be
14019 a sign bit or a mantissa bit (since the exponent never extends to
14020 bit 31). */
14021 m.value = NaNl ();
14022 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
14023 for (i = 0; i < NWORDS; i++)
14024 m.word[i] |= 1;
14025 if (!isnanl (m.value))
14026 result |= 1;
14027 }
14028
14029 #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
14030 /* Representation of an 80-bit 'long double' as an initializer for a sequence
14031 of 'unsigned int' words. */
14032 # ifdef WORDS_BIGENDIAN
14033 # define LDBL80_WORDS(exponent,manthi,mantlo) \
14034 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
14035 ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16), \
14036 (unsigned int) (mantlo) << 16 \
14037 }
14038 # else
14039 # define LDBL80_WORDS(exponent,manthi,mantlo) \
14040 { mantlo, manthi, exponent }
14041 # endif
14042 { /* Quiet NaN. */
14043 static memory_long_double x =
14044 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
14045 if (!isnanl (x.value))
14046 result |= 2;
14047 }
14048 {
14049 /* Signalling NaN. */
14050 static memory_long_double x =
14051 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
14052 if (!isnanl (x.value))
14053 result |= 2;
14054 }
14055 /* isnanl should return something even for noncanonical values. */
14056 { /* Pseudo-NaN. */
14057 static memory_long_double x =
14058 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
14059 if (isnanl (x.value) && !isnanl (x.value))
14060 result |= 4;
14061 }
14062 { /* Pseudo-Infinity. */
14063 static memory_long_double x =
14064 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
14065 if (isnanl (x.value) && !isnanl (x.value))
14066 result |= 8;
14067 }
14068 { /* Pseudo-Zero. */
14069 static memory_long_double x =
14070 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
14071 if (isnanl (x.value) && !isnanl (x.value))
14072 result |= 16;
14073 }
14074 { /* Unnormalized number. */
14075 static memory_long_double x =
14076 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
14077 if (isnanl (x.value) && !isnanl (x.value))
14078 result |= 32;
14079 }
14080 { /* Pseudo-Denormal. */
14081 static memory_long_double x =
14082 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
14083 if (isnanl (x.value) && !isnanl (x.value))
14084 result |= 64;
14085 }
14086 #endif
14087
14088 return result;
14089 }
14090 _ACEOF
14091 if ac_fn_c_try_run "$LINENO"; then :
14092 gl_cv_func_isnanl_works=yes
14093 else
14094 gl_cv_func_isnanl_works=no
14095 fi
14096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14097 conftest.$ac_objext conftest.beam conftest.$ac_ext
14098 fi
14099
14100
14101 fi
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
14103 $as_echo "$gl_cv_func_isnanl_works" >&6; }
14104
14105 case "$gl_cv_func_isnanl_works" in
14106 *yes) ;;
14107 *) gl_func_isnanl_no_libm=no ;;
14108 esac
14109 fi
14110 if test $gl_func_isnanl_no_libm = yes; then
14111
14112 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
14113
14114 fi
14115
14116 if test $gl_func_isnanl_no_libm != yes; then
14117
14118
14119
14120
14121
14122
14123
14124
14125 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
14126
14127
14128
14129
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
14131 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
14132 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
14133 $as_echo_n "(cached) " >&6
14134 else
14135
14136 if test "$cross_compiling" = yes; then :
14137
14138 gl_cv_cc_long_double_expbit0="unknown"
14139
14140 else
14141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14142 /* end confdefs.h. */
14143
14144 #include <float.h>
14145 #include <stddef.h>
14146 #include <stdio.h>
14147 #include <string.h>
14148 #define NWORDS \
14149 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14150 typedef union { long double value; unsigned int word[NWORDS]; }
14151 memory_long_double;
14152 static unsigned int ored_words[NWORDS];
14153 static unsigned int anded_words[NWORDS];
14154 static void add_to_ored_words (long double x)
14155 {
14156 memory_long_double m;
14157 size_t i;
14158 /* Clear it first, in case
14159 sizeof (long double) < sizeof (memory_long_double). */
14160 memset (&m, 0, sizeof (memory_long_double));
14161 m.value = x;
14162 for (i = 0; i < NWORDS; i++)
14163 {
14164 ored_words[i] |= m.word[i];
14165 anded_words[i] &= m.word[i];
14166 }
14167 }
14168 int main ()
14169 {
14170 size_t j;
14171 FILE *fp = fopen ("conftest.out", "w");
14172 if (fp == NULL)
14173 return 1;
14174 for (j = 0; j < NWORDS; j++)
14175 anded_words[j] = ~ (unsigned int) 0;
14176 add_to_ored_words (0.25L);
14177 add_to_ored_words (0.5L);
14178 add_to_ored_words (1.0L);
14179 add_to_ored_words (2.0L);
14180 add_to_ored_words (4.0L);
14181 /* Remove bits that are common (e.g. if representation of the first mantissa
14182 bit is explicit). */
14183 for (j = 0; j < NWORDS; j++)
14184 ored_words[j] &= ~anded_words[j];
14185 /* Now find the nonzero word. */
14186 for (j = 0; j < NWORDS; j++)
14187 if (ored_words[j] != 0)
14188 break;
14189 if (j < NWORDS)
14190 {
14191 size_t i;
14192 for (i = j + 1; i < NWORDS; i++)
14193 if (ored_words[i] != 0)
14194 {
14195 fprintf (fp, "unknown");
14196 return (fclose (fp) != 0);
14197 }
14198 for (i = 0; ; i++)
14199 if ((ored_words[j] >> i) & 1)
14200 {
14201 fprintf (fp, "word %d bit %d", (int) j, (int) i);
14202 return (fclose (fp) != 0);
14203 }
14204 }
14205 fprintf (fp, "unknown");
14206 return (fclose (fp) != 0);
14207 }
14208
14209 _ACEOF
14210 if ac_fn_c_try_run "$LINENO"; then :
14211 gl_cv_cc_long_double_expbit0=`cat conftest.out`
14212 else
14213 gl_cv_cc_long_double_expbit0="unknown"
14214 fi
14215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14216 conftest.$ac_objext conftest.beam conftest.$ac_ext
14217 fi
14218
14219 rm -f conftest.out
14220
14221 fi
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
14223 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
14224 case "$gl_cv_cc_long_double_expbit0" in
14225 word*bit*)
14226 word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
14227 bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
14228
14229 cat >>confdefs.h <<_ACEOF
14230 #define LDBL_EXPBIT0_WORD $word
14231 _ACEOF
14232
14233
14234 cat >>confdefs.h <<_ACEOF
14235 #define LDBL_EXPBIT0_BIT $bit
14236 _ACEOF
14237
14238 ;;
14239 esac
14240
14241
14242
14243 fi
14244
14245
14246
14247
14248
14249
14250
14251
14252
14253 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
14254
14255
14256
14257
14258 if test $ac_cv_func_lstat = yes; then
14259
14260 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
14261 *no)
14262 REPLACE_LSTAT=1
14263 ;;
14264 esac
14265 else
14266 HAVE_LSTAT=0
14267 fi
14268
14269 if test $REPLACE_LSTAT = 1; then
14270
14271
14272
14273
14274
14275
14276
14277
14278 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
14279
14280 :
14281 fi
14282
14283
14284
14285
14286
14287 GNULIB_LSTAT=1
14288
14289
14290
14291
14292
14293 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
14294
14295
14296
14297
14298
14299
14300 if test $gl_cv_func_malloc_posix = yes; then
14301
14302 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
14303
14304 else
14305 REPLACE_MALLOC=1
14306 fi
14307
14308 if test $REPLACE_MALLOC = 1; then
14309
14310
14311
14312
14313
14314
14315
14316
14317 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
14318
14319 fi
14320
14321
14322
14323
14324
14325 GNULIB_MALLOC_POSIX=1
14326
14327
14328
14329
14330
14331 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346
14347
14348
14349
14350 if test $gl_cv_have_include_next = yes; then
14351 gl_cv_next_math_h='<'math.h'>'
14352 else
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
14354 $as_echo_n "checking absolute name of <math.h>... " >&6; }
14355 if test "${gl_cv_next_math_h+set}" = set; then :
14356 $as_echo_n "(cached) " >&6
14357 else
14358
14359 if test $ac_cv_header_math_h = yes; then
14360
14361
14362
14363
14364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14365 /* end confdefs.h. */
14366 #include <math.h>
14367 _ACEOF
14368 case "$host_os" in
14369 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14370 *) gl_absname_cpp="$ac_cpp" ;;
14371 esac
14372
14373 case "$host_os" in
14374 mingw*)
14375 gl_dirsep_regex='[/\\]'
14376 ;;
14377 *)
14378 gl_dirsep_regex='\/'
14379 ;;
14380 esac
14381 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14382 gl_header_literal_regex=`echo 'math.h' \
14383 | sed -e "$gl_make_literal_regex_sed"`
14384 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14385 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14386 s|^/[^/]|//&|
14387 p
14388 q
14389 }'
14390
14391 gl_cv_absolute_math_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14392 sed -n "$gl_absolute_header_sed"`
14393
14394 gl_header=$gl_cv_absolute_math_h
14395 gl_cv_next_math_h='"'$gl_header'"'
14396 else
14397 gl_cv_next_math_h='<'math.h'>'
14398 fi
14399
14400
14401 fi
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
14403 $as_echo "$gl_cv_next_math_h" >&6; }
14404 fi
14405 NEXT_MATH_H=$gl_cv_next_math_h
14406
14407 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14408 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14409 gl_next_as_first_directive='<'math.h'>'
14410 else
14411 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14412 gl_next_as_first_directive=$gl_cv_next_math_h
14413 fi
14414 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
14415
14416
14417
14418
14419
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
14421 $as_echo_n "checking whether NAN macro works... " >&6; }
14422 if test "${gl_cv_header_math_nan_works+set}" = set; then :
14423 $as_echo_n "(cached) " >&6
14424 else
14425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14426 /* end confdefs.h. */
14427 #include <math.h>
14428 int
14429 main ()
14430 {
14431 /* Solaris 10 has a broken definition of NAN. Other platforms
14432 fail to provide NAN, or provide it only in C99 mode; this
14433 test only needs to fail when NAN is provided but wrong. */
14434 float f = 1.0f;
14435 #ifdef NAN
14436 f = NAN;
14437 #endif
14438 return f == 0;
14439 ;
14440 return 0;
14441 }
14442 _ACEOF
14443 if ac_fn_c_try_compile "$LINENO"; then :
14444 gl_cv_header_math_nan_works=yes
14445 else
14446 gl_cv_header_math_nan_works=no
14447 fi
14448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14449 fi
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
14451 $as_echo "$gl_cv_header_math_nan_works" >&6; }
14452 if test $gl_cv_header_math_nan_works = no; then
14453 REPLACE_NAN=1
14454 fi
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
14456 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
14457 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
14458 $as_echo_n "(cached) " >&6
14459 else
14460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14461 /* end confdefs.h. */
14462 #include <math.h>
14463 int
14464 main ()
14465 {
14466 /* Solaris 10 has a broken definition of HUGE_VAL. */
14467 double d = HUGE_VAL;
14468 return d == 0;
14469 ;
14470 return 0;
14471 }
14472 _ACEOF
14473 if ac_fn_c_try_compile "$LINENO"; then :
14474 gl_cv_header_math_huge_val_works=yes
14475 else
14476 gl_cv_header_math_huge_val_works=no
14477 fi
14478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14479 fi
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
14481 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
14482 if test $gl_cv_header_math_huge_val_works = no; then
14483 REPLACE_HUGE_VAL=1
14484 fi
14485
14486
14487 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
14488 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14490 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14491 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14492 $as_echo_n "(cached) " >&6
14493 else
14494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14495 /* end confdefs.h. */
14496 #include <math.h>
14497 int
14498 main ()
14499 {
14500 #undef $gl_func
14501 (void) $gl_func;
14502 ;
14503 return 0;
14504 }
14505 _ACEOF
14506 if ac_fn_c_try_compile "$LINENO"; then :
14507 eval "$as_gl_Symbol=yes"
14508 else
14509 eval "$as_gl_Symbol=no"
14510 fi
14511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14512 fi
14513 eval ac_res=\$$as_gl_Symbol
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14515 $as_echo "$ac_res" >&6; }
14516 eval as_val=\$$as_gl_Symbol
14517 if test "x$as_val" = x""yes; then :
14518 cat >>confdefs.h <<_ACEOF
14519 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14520 _ACEOF
14521
14522 eval ac_cv_have_decl_$gl_func=yes
14523 fi
14524 done
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
14538
14539
14540
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
14542 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
14543 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
14544 $as_echo_n "(cached) " >&6
14545 else
14546
14547 case "$host_os" in
14548 # Guess no on AIX and OSF/1.
14549 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
14550 # Guess yes otherwise.
14551 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
14552 esac
14553 if test $LOCALE_JA != none; then
14554 if test "$cross_compiling" = yes; then :
14555 :
14556 else
14557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14558 /* end confdefs.h. */
14559
14560 #include <locale.h>
14561 #include <string.h>
14562 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14563 <wchar.h>.
14564 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14565 included before <wchar.h>. */
14566 #include <stddef.h>
14567 #include <stdio.h>
14568 #include <time.h>
14569 #include <wchar.h>
14570 int main ()
14571 {
14572 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14573 {
14574 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
14575 mbstate_t state;
14576 wchar_t wc;
14577
14578 memset (&state, '\0', sizeof (mbstate_t));
14579 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14580 if (mbsinit (&state))
14581 return 1;
14582 }
14583 return 0;
14584 }
14585 _ACEOF
14586 if ac_fn_c_try_run "$LINENO"; then :
14587 gl_cv_func_mbrtowc_incomplete_state=yes
14588 else
14589 gl_cv_func_mbrtowc_incomplete_state=no
14590 fi
14591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14592 conftest.$ac_objext conftest.beam conftest.$ac_ext
14593 fi
14594
14595 fi
14596
14597 fi
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
14599 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
14600
14601
14602
14603
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
14605 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
14606 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
14607 $as_echo_n "(cached) " >&6
14608 else
14609
14610 case "$host_os" in
14611 # Guess no on Solaris 8.
14612 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
14613 # Guess yes otherwise.
14614 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
14615 esac
14616 if test $LOCALE_ZH_CN != none; then
14617 if test "$cross_compiling" = yes; then :
14618 :
14619 else
14620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14621 /* end confdefs.h. */
14622
14623 #include <locale.h>
14624 #include <stdlib.h>
14625 #include <string.h>
14626 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14627 <wchar.h>.
14628 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14629 included before <wchar.h>. */
14630 #include <stddef.h>
14631 #include <stdio.h>
14632 #include <time.h>
14633 #include <wchar.h>
14634 int main ()
14635 {
14636 /* This fails on Solaris 8:
14637 mbrtowc returns 2, and sets wc to 0x00F0.
14638 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
14639 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
14640 {
14641 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
14642 mbstate_t state;
14643 wchar_t wc;
14644
14645 memset (&state, '\0', sizeof (mbstate_t));
14646 if (mbrtowc (&wc, input + 3, 6, &state) != 4
14647 && mbtowc (&wc, input + 3, 6) == 4)
14648 return 1;
14649 }
14650 return 0;
14651 }
14652 _ACEOF
14653 if ac_fn_c_try_run "$LINENO"; then :
14654 gl_cv_func_mbrtowc_sanitycheck=yes
14655 else
14656 gl_cv_func_mbrtowc_sanitycheck=no
14657 fi
14658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14659 conftest.$ac_objext conftest.beam conftest.$ac_ext
14660 fi
14661
14662 fi
14663
14664 fi
14665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
14666 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
14667
14668 REPLACE_MBSTATE_T=0
14669 case "$gl_cv_func_mbrtowc_incomplete_state" in
14670 *yes) ;;
14671 *) REPLACE_MBSTATE_T=1 ;;
14672 esac
14673 case "$gl_cv_func_mbrtowc_sanitycheck" in
14674 *yes) ;;
14675 *) REPLACE_MBSTATE_T=1 ;;
14676 esac
14677 else
14678 REPLACE_MBSTATE_T=1
14679 fi
14680
14681
14682
14683 if test $ac_cv_func_mbrtowc = no; then
14684 HAVE_MBRTOWC=0
14685 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
14686 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14687 <wchar.h>.
14688 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14689 included before <wchar.h>. */
14690 #include <stddef.h>
14691 #include <stdio.h>
14692 #include <time.h>
14693 #include <wchar.h>
14694
14695 "
14696 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
14697 ac_have_decl=1
14698 else
14699 ac_have_decl=0
14700 fi
14701
14702 cat >>confdefs.h <<_ACEOF
14703 #define HAVE_DECL_MBRTOWC $ac_have_decl
14704 _ACEOF
14705
14706 if test $ac_cv_have_decl_mbrtowc = yes; then
14707 REPLACE_MBRTOWC=1
14708 fi
14709 else
14710 if test $REPLACE_MBSTATE_T = 1; then
14711 REPLACE_MBRTOWC=1
14712 else
14713
14714
14715
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
14717 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
14718 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
14719 $as_echo_n "(cached) " >&6
14720 else
14721
14722 case "$host_os" in
14723 # Guess no on Solaris.
14724 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
14725 # Guess yes otherwise.
14726 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
14727 esac
14728 if test $LOCALE_FR_UTF8 != none; then
14729 if test "$cross_compiling" = yes; then :
14730 :
14731 else
14732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14733 /* end confdefs.h. */
14734
14735 #include <locale.h>
14736 #include <stdlib.h>
14737 #include <string.h>
14738 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14739 <wchar.h>.
14740 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14741 included before <wchar.h>. */
14742 #include <stddef.h>
14743 #include <stdio.h>
14744 #include <time.h>
14745 #include <wchar.h>
14746 int main ()
14747 {
14748 int result = 0;
14749
14750 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14751 {
14752 char input[] = "\303\237er";
14753 mbstate_t state;
14754 wchar_t wc;
14755 size_t ret;
14756
14757 memset (&state, '\0', sizeof (mbstate_t));
14758 wc = (wchar_t) 0xBADFACE;
14759 ret = mbrtowc (&wc, input, 5, &state);
14760 if (ret != 2)
14761 result |= 1;
14762 if (!mbsinit (&state))
14763 result |= 2;
14764
14765 memset (&state, '\0', sizeof (mbstate_t));
14766 ret = mbrtowc (NULL, input, 5, &state);
14767 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
14768 result |= 4;
14769 if (!mbsinit (&state))
14770 result |= 8;
14771 }
14772 return result;
14773 }
14774 _ACEOF
14775 if ac_fn_c_try_run "$LINENO"; then :
14776 gl_cv_func_mbrtowc_null_arg1=yes
14777 else
14778 gl_cv_func_mbrtowc_null_arg1=no
14779 fi
14780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14781 conftest.$ac_objext conftest.beam conftest.$ac_ext
14782 fi
14783
14784 fi
14785
14786 fi
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
14788 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
14789
14790
14791
14792
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
14794 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
14795 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
14796 $as_echo_n "(cached) " >&6
14797 else
14798
14799 case "$host_os" in
14800 # Guess no on OSF/1.
14801 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
14802 # Guess yes otherwise.
14803 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
14804 esac
14805 if test $LOCALE_FR_UTF8 != none; then
14806 if test "$cross_compiling" = yes; then :
14807 :
14808 else
14809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14810 /* end confdefs.h. */
14811
14812 #include <locale.h>
14813 #include <string.h>
14814 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14815 <wchar.h>.
14816 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14817 included before <wchar.h>. */
14818 #include <stddef.h>
14819 #include <stdio.h>
14820 #include <time.h>
14821 #include <wchar.h>
14822 int main ()
14823 {
14824 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14825 {
14826 mbstate_t state;
14827 wchar_t wc;
14828 int ret;
14829
14830 memset (&state, '\0', sizeof (mbstate_t));
14831 wc = (wchar_t) 0xBADFACE;
14832 mbrtowc (&wc, NULL, 5, &state);
14833 /* Check that wc was not modified. */
14834 if (wc != (wchar_t) 0xBADFACE)
14835 return 1;
14836 }
14837 return 0;
14838 }
14839 _ACEOF
14840 if ac_fn_c_try_run "$LINENO"; then :
14841 gl_cv_func_mbrtowc_null_arg2=yes
14842 else
14843 gl_cv_func_mbrtowc_null_arg2=no
14844 fi
14845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14846 conftest.$ac_objext conftest.beam conftest.$ac_ext
14847 fi
14848
14849 fi
14850
14851 fi
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
14853 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
14854
14855
14856
14857
14858
14859
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
14861 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
14862 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
14863 $as_echo_n "(cached) " >&6
14864 else
14865
14866 case "$host_os" in
14867 # Guess no on HP-UX, Solaris, native Windows.
14868 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
14869 # Guess yes otherwise.
14870 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
14871 esac
14872 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
14873 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
14874 if test "$cross_compiling" = yes; then :
14875 :
14876 else
14877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14878 /* end confdefs.h. */
14879
14880 #include <locale.h>
14881 #include <string.h>
14882 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14883 <wchar.h>.
14884 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14885 included before <wchar.h>. */
14886 #include <stddef.h>
14887 #include <stdio.h>
14888 #include <time.h>
14889 #include <wchar.h>
14890 int main ()
14891 {
14892 int result = 0;
14893 int found_some_locale = 0;
14894 /* This fails on Solaris. */
14895 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14896 {
14897 char input[] = "B\303\274\303\237er"; /* "Büßer" */
14898 mbstate_t state;
14899 wchar_t wc;
14900
14901 memset (&state, '\0', sizeof (mbstate_t));
14902 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14903 {
14904 input[1] = '\0';
14905 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
14906 result |= 1;
14907 }
14908 found_some_locale = 1;
14909 }
14910 /* This fails on HP-UX 11.11. */
14911 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14912 {
14913 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
14914 mbstate_t state;
14915 wchar_t wc;
14916
14917 memset (&state, '\0', sizeof (mbstate_t));
14918 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14919 {
14920 input[1] = '\0';
14921 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
14922 result |= 2;
14923 }
14924 found_some_locale = 1;
14925 }
14926 /* This fails on native Windows. */
14927 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
14928 {
14929 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
14930 mbstate_t state;
14931 wchar_t wc;
14932
14933 memset (&state, '\0', sizeof (mbstate_t));
14934 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
14935 {
14936 input[3] = '\0';
14937 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
14938 result |= 4;
14939 }
14940 found_some_locale = 1;
14941 }
14942 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
14943 {
14944 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
14945 mbstate_t state;
14946 wchar_t wc;
14947
14948 memset (&state, '\0', sizeof (mbstate_t));
14949 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
14950 {
14951 input[3] = '\0';
14952 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
14953 result |= 8;
14954 }
14955 found_some_locale = 1;
14956 }
14957 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
14958 {
14959 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
14960 mbstate_t state;
14961 wchar_t wc;
14962
14963 memset (&state, '\0', sizeof (mbstate_t));
14964 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
14965 {
14966 input[3] = '\0';
14967 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
14968 result |= 16;
14969 }
14970 found_some_locale = 1;
14971 }
14972 return (found_some_locale ? result : 77);
14973 }
14974 _ACEOF
14975 if ac_fn_c_try_run "$LINENO"; then :
14976 gl_cv_func_mbrtowc_retval=yes
14977 else
14978 if test $? != 77; then
14979 gl_cv_func_mbrtowc_retval=no
14980 fi
14981
14982 fi
14983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14984 conftest.$ac_objext conftest.beam conftest.$ac_ext
14985 fi
14986
14987 fi
14988
14989 fi
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
14991 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
14992
14993
14994
14995
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
14997 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
14998 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
14999 $as_echo_n "(cached) " >&6
15000 else
15001
15002 case "$host_os" in
15003 # Guess no on Solaris 8 and 9.
15004 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
15005 # Guess yes otherwise.
15006 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
15007 esac
15008 if test $LOCALE_ZH_CN != none; then
15009 if test "$cross_compiling" = yes; then :
15010 :
15011 else
15012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15013 /* end confdefs.h. */
15014
15015 #include <locale.h>
15016 #include <string.h>
15017 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15018 <wchar.h>.
15019 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15020 included before <wchar.h>. */
15021 #include <stddef.h>
15022 #include <stdio.h>
15023 #include <time.h>
15024 #include <wchar.h>
15025 int main ()
15026 {
15027 /* This fails on Solaris 8 and 9. */
15028 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15029 {
15030 mbstate_t state;
15031 wchar_t wc;
15032
15033 memset (&state, '\0', sizeof (mbstate_t));
15034 if (mbrtowc (&wc, "", 1, &state) != 0)
15035 return 1;
15036 }
15037 return 0;
15038 }
15039 _ACEOF
15040 if ac_fn_c_try_run "$LINENO"; then :
15041 gl_cv_func_mbrtowc_nul_retval=yes
15042 else
15043 gl_cv_func_mbrtowc_nul_retval=no
15044 fi
15045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15046 conftest.$ac_objext conftest.beam conftest.$ac_ext
15047 fi
15048
15049 fi
15050
15051 fi
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
15053 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
15054
15055
15056
15057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works on empty input" >&5
15058 $as_echo_n "checking whether mbrtowc works on empty input... " >&6; }
15059 if test "${gl_cv_func_mbrtowc_empty_input+set}" = set; then :
15060 $as_echo_n "(cached) " >&6
15061 else
15062
15063 case "$host_os" in
15064 # Guess no on AIX and glibc systems.
15065 aix* | *-gnu*)
15066 gl_cv_func_mbrtowc_empty_input="guessing no" ;;
15067 *) gl_cv_func_mbrtowc_empty_input="guessing yes" ;;
15068 esac
15069 if test "$cross_compiling" = yes; then :
15070 :
15071 else
15072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15073 /* end confdefs.h. */
15074
15075 #include <wchar.h>
15076 static wchar_t wc;
15077 static mbstate_t mbs;
15078 int
15079 main (void)
15080 {
15081 return mbrtowc (&wc, "", 0, &mbs) == (size_t) -2;
15082 }
15083 _ACEOF
15084 if ac_fn_c_try_run "$LINENO"; then :
15085 gl_cv_func_mbrtowc_empty_input=no
15086 else
15087 gl_cv_func_mbrtowc_empty_input=yes
15088 fi
15089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15090 conftest.$ac_objext conftest.beam conftest.$ac_ext
15091 fi
15092
15093
15094 fi
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_empty_input" >&5
15096 $as_echo "$gl_cv_func_mbrtowc_empty_input" >&6; }
15097
15098 case "$gl_cv_func_mbrtowc_null_arg1" in
15099 *yes) ;;
15100 *)
15101 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
15102
15103 REPLACE_MBRTOWC=1
15104 ;;
15105 esac
15106 case "$gl_cv_func_mbrtowc_null_arg2" in
15107 *yes) ;;
15108 *)
15109 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
15110
15111 REPLACE_MBRTOWC=1
15112 ;;
15113 esac
15114 case "$gl_cv_func_mbrtowc_retval" in
15115 *yes) ;;
15116 *)
15117 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
15118
15119 REPLACE_MBRTOWC=1
15120 ;;
15121 esac
15122 case "$gl_cv_func_mbrtowc_nul_retval" in
15123 *yes) ;;
15124 *)
15125 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
15126
15127 REPLACE_MBRTOWC=1
15128 ;;
15129 esac
15130 case "$gl_cv_func_mbrtowc_empty_input" in
15131 *yes) ;;
15132 *)
15133 $as_echo "#define MBRTOWC_EMPTY_INPUT_BUG 1" >>confdefs.h
15134
15135 REPLACE_MBRTOWC=1
15136 ;;
15137 esac
15138 fi
15139 fi
15140
15141 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
15142
15143
15144
15145
15146
15147
15148
15149
15150 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
15151
15152
15153 :
15154
15155 fi
15156
15157
15158
15159
15160
15161 GNULIB_MBRTOWC=1
15162
15163
15164
15165
15166
15167 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15183
15184
15185
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15187 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15188 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15189 $as_echo_n "(cached) " >&6
15190 else
15191
15192 case "$host_os" in
15193 # Guess no on AIX and OSF/1.
15194 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15195 # Guess yes otherwise.
15196 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15197 esac
15198 if test $LOCALE_JA != none; then
15199 if test "$cross_compiling" = yes; then :
15200 :
15201 else
15202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15203 /* end confdefs.h. */
15204
15205 #include <locale.h>
15206 #include <string.h>
15207 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15208 <wchar.h>.
15209 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15210 included before <wchar.h>. */
15211 #include <stddef.h>
15212 #include <stdio.h>
15213 #include <time.h>
15214 #include <wchar.h>
15215 int main ()
15216 {
15217 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15218 {
15219 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15220 mbstate_t state;
15221 wchar_t wc;
15222
15223 memset (&state, '\0', sizeof (mbstate_t));
15224 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15225 if (mbsinit (&state))
15226 return 1;
15227 }
15228 return 0;
15229 }
15230 _ACEOF
15231 if ac_fn_c_try_run "$LINENO"; then :
15232 gl_cv_func_mbrtowc_incomplete_state=yes
15233 else
15234 gl_cv_func_mbrtowc_incomplete_state=no
15235 fi
15236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15237 conftest.$ac_objext conftest.beam conftest.$ac_ext
15238 fi
15239
15240 fi
15241
15242 fi
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15244 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15245
15246
15247
15248
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15250 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15251 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
15252 $as_echo_n "(cached) " >&6
15253 else
15254
15255 case "$host_os" in
15256 # Guess no on Solaris 8.
15257 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15258 # Guess yes otherwise.
15259 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15260 esac
15261 if test $LOCALE_ZH_CN != none; then
15262 if test "$cross_compiling" = yes; then :
15263 :
15264 else
15265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15266 /* end confdefs.h. */
15267
15268 #include <locale.h>
15269 #include <stdlib.h>
15270 #include <string.h>
15271 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15272 <wchar.h>.
15273 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15274 included before <wchar.h>. */
15275 #include <stddef.h>
15276 #include <stdio.h>
15277 #include <time.h>
15278 #include <wchar.h>
15279 int main ()
15280 {
15281 /* This fails on Solaris 8:
15282 mbrtowc returns 2, and sets wc to 0x00F0.
15283 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15284 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15285 {
15286 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15287 mbstate_t state;
15288 wchar_t wc;
15289
15290 memset (&state, '\0', sizeof (mbstate_t));
15291 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15292 && mbtowc (&wc, input + 3, 6) == 4)
15293 return 1;
15294 }
15295 return 0;
15296 }
15297 _ACEOF
15298 if ac_fn_c_try_run "$LINENO"; then :
15299 gl_cv_func_mbrtowc_sanitycheck=yes
15300 else
15301 gl_cv_func_mbrtowc_sanitycheck=no
15302 fi
15303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15304 conftest.$ac_objext conftest.beam conftest.$ac_ext
15305 fi
15306
15307 fi
15308
15309 fi
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15311 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15312
15313 REPLACE_MBSTATE_T=0
15314 case "$gl_cv_func_mbrtowc_incomplete_state" in
15315 *yes) ;;
15316 *) REPLACE_MBSTATE_T=1 ;;
15317 esac
15318 case "$gl_cv_func_mbrtowc_sanitycheck" in
15319 *yes) ;;
15320 *) REPLACE_MBSTATE_T=1 ;;
15321 esac
15322 else
15323 REPLACE_MBSTATE_T=1
15324 fi
15325
15326
15327
15328 if test $ac_cv_func_mbsinit = no; then
15329 HAVE_MBSINIT=0
15330 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
15331 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15332 <wchar.h>.
15333 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15334 included before <wchar.h>. */
15335 #include <stddef.h>
15336 #include <stdio.h>
15337 #include <time.h>
15338 #include <wchar.h>
15339
15340 "
15341 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
15342 ac_have_decl=1
15343 else
15344 ac_have_decl=0
15345 fi
15346
15347 cat >>confdefs.h <<_ACEOF
15348 #define HAVE_DECL_MBSINIT $ac_have_decl
15349 _ACEOF
15350
15351 if test $ac_cv_have_decl_mbsinit = yes; then
15352 REPLACE_MBSINIT=1
15353 fi
15354 else
15355 if test $REPLACE_MBSTATE_T = 1; then
15356 REPLACE_MBSINIT=1
15357 else
15358 case "$host_os" in
15359 mingw*) REPLACE_MBSINIT=1 ;;
15360 esac
15361 fi
15362 fi
15363
15364 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
15365
15366
15367
15368
15369
15370
15371
15372
15373 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
15374
15375
15376 :
15377
15378 fi
15379
15380
15381
15382
15383
15384 GNULIB_MBSINIT=1
15385
15386
15387
15388
15389
15390 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
15405
15406
15407
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
15409 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
15410 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
15411 $as_echo_n "(cached) " >&6
15412 else
15413
15414 case "$host_os" in
15415 # Guess no on AIX and OSF/1.
15416 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
15417 # Guess yes otherwise.
15418 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
15419 esac
15420 if test $LOCALE_JA != none; then
15421 if test "$cross_compiling" = yes; then :
15422 :
15423 else
15424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15425 /* end confdefs.h. */
15426
15427 #include <locale.h>
15428 #include <string.h>
15429 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15430 <wchar.h>.
15431 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15432 included before <wchar.h>. */
15433 #include <stddef.h>
15434 #include <stdio.h>
15435 #include <time.h>
15436 #include <wchar.h>
15437 int main ()
15438 {
15439 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15440 {
15441 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
15442 mbstate_t state;
15443 wchar_t wc;
15444
15445 memset (&state, '\0', sizeof (mbstate_t));
15446 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
15447 if (mbsinit (&state))
15448 return 1;
15449 }
15450 return 0;
15451 }
15452 _ACEOF
15453 if ac_fn_c_try_run "$LINENO"; then :
15454 gl_cv_func_mbrtowc_incomplete_state=yes
15455 else
15456 gl_cv_func_mbrtowc_incomplete_state=no
15457 fi
15458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15459 conftest.$ac_objext conftest.beam conftest.$ac_ext
15460 fi
15461
15462 fi
15463
15464 fi
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
15466 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
15467
15468
15469
15470
15471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
15472 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
15473 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
15474 $as_echo_n "(cached) " >&6
15475 else
15476
15477 case "$host_os" in
15478 # Guess no on Solaris 8.
15479 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
15480 # Guess yes otherwise.
15481 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
15482 esac
15483 if test $LOCALE_ZH_CN != none; then
15484 if test "$cross_compiling" = yes; then :
15485 :
15486 else
15487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15488 /* end confdefs.h. */
15489
15490 #include <locale.h>
15491 #include <stdlib.h>
15492 #include <string.h>
15493 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15494 <wchar.h>.
15495 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15496 included before <wchar.h>. */
15497 #include <stddef.h>
15498 #include <stdio.h>
15499 #include <time.h>
15500 #include <wchar.h>
15501 int main ()
15502 {
15503 /* This fails on Solaris 8:
15504 mbrtowc returns 2, and sets wc to 0x00F0.
15505 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
15506 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15507 {
15508 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
15509 mbstate_t state;
15510 wchar_t wc;
15511
15512 memset (&state, '\0', sizeof (mbstate_t));
15513 if (mbrtowc (&wc, input + 3, 6, &state) != 4
15514 && mbtowc (&wc, input + 3, 6) == 4)
15515 return 1;
15516 }
15517 return 0;
15518 }
15519 _ACEOF
15520 if ac_fn_c_try_run "$LINENO"; then :
15521 gl_cv_func_mbrtowc_sanitycheck=yes
15522 else
15523 gl_cv_func_mbrtowc_sanitycheck=no
15524 fi
15525 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15526 conftest.$ac_objext conftest.beam conftest.$ac_ext
15527 fi
15528
15529 fi
15530
15531 fi
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
15533 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
15534
15535 REPLACE_MBSTATE_T=0
15536 case "$gl_cv_func_mbrtowc_incomplete_state" in
15537 *yes) ;;
15538 *) REPLACE_MBSTATE_T=1 ;;
15539 esac
15540 case "$gl_cv_func_mbrtowc_sanitycheck" in
15541 *yes) ;;
15542 *) REPLACE_MBSTATE_T=1 ;;
15543 esac
15544 else
15545 REPLACE_MBSTATE_T=1
15546 fi
15547
15548
15549
15550 if test $ac_cv_func_mbsrtowcs = no; then
15551 HAVE_MBSRTOWCS=0
15552 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
15553 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15554 <wchar.h>.
15555 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15556 included before <wchar.h>. */
15557 #include <stddef.h>
15558 #include <stdio.h>
15559 #include <time.h>
15560 #include <wchar.h>
15561
15562 "
15563 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
15564 ac_have_decl=1
15565 else
15566 ac_have_decl=0
15567 fi
15568
15569 cat >>confdefs.h <<_ACEOF
15570 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
15571 _ACEOF
15572
15573 if test $ac_cv_have_decl_mbsrtowcs = yes; then
15574 REPLACE_MBSRTOWCS=1
15575 fi
15576 else
15577 if test $REPLACE_MBSTATE_T = 1; then
15578 REPLACE_MBSRTOWCS=1
15579 else
15580
15581
15582
15583
15584
15585
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
15587 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
15588 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
15589 $as_echo_n "(cached) " >&6
15590 else
15591
15592 case "$host_os" in
15593 # Guess no on HP-UX, Solaris, mingw.
15594 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
15595 # Guess yes otherwise.
15596 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
15597 esac
15598 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
15599 if test "$cross_compiling" = yes; then :
15600 :
15601 else
15602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15603 /* end confdefs.h. */
15604
15605 #include <locale.h>
15606 #include <string.h>
15607 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15608 <wchar.h>.
15609 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15610 included before <wchar.h>. */
15611 #include <stddef.h>
15612 #include <stdio.h>
15613 #include <time.h>
15614 #include <wchar.h>
15615 int main ()
15616 {
15617 int result = 0;
15618 /* Test whether the function supports a NULL destination argument.
15619 This fails on native Windows. */
15620 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
15621 {
15622 const char input[] = "\337er";
15623 const char *src = input;
15624 mbstate_t state;
15625
15626 memset (&state, '\0', sizeof (mbstate_t));
15627 if (mbsrtowcs (NULL, &src, 1, &state) != 3
15628 || src != input)
15629 result |= 1;
15630 }
15631 /* Test whether the function works when started with a conversion state
15632 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
15633 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
15634 {
15635 const char input[] = "B\303\274\303\237er";
15636 mbstate_t state;
15637
15638 memset (&state, '\0', sizeof (mbstate_t));
15639 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
15640 if (!mbsinit (&state))
15641 {
15642 const char *src = input + 2;
15643 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
15644 result |= 2;
15645 }
15646 }
15647 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
15648 {
15649 const char input[] = "<\306\374\313\334\270\354>";
15650 mbstate_t state;
15651
15652 memset (&state, '\0', sizeof (mbstate_t));
15653 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
15654 if (!mbsinit (&state))
15655 {
15656 const char *src = input + 4;
15657 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
15658 result |= 4;
15659 }
15660 }
15661 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
15662 {
15663 const char input[] = "B\250\271\201\060\211\070er";
15664 mbstate_t state;
15665
15666 memset (&state, '\0', sizeof (mbstate_t));
15667 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
15668 if (!mbsinit (&state))
15669 {
15670 const char *src = input + 2;
15671 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
15672 result |= 8;
15673 }
15674 }
15675 return result;
15676 }
15677 _ACEOF
15678 if ac_fn_c_try_run "$LINENO"; then :
15679 gl_cv_func_mbsrtowcs_works=yes
15680 else
15681 gl_cv_func_mbsrtowcs_works=no
15682 fi
15683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15684 conftest.$ac_objext conftest.beam conftest.$ac_ext
15685 fi
15686
15687 fi
15688
15689 fi
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
15691 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
15692
15693 case "$gl_cv_func_mbsrtowcs_works" in
15694 *yes) ;;
15695 *) REPLACE_MBSRTOWCS=1 ;;
15696 esac
15697 fi
15698 fi
15699
15700 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
15701
15702
15703
15704
15705
15706
15707
15708
15709 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
15720
15721
15722 :
15723
15724 fi
15725
15726
15727
15728
15729
15730 GNULIB_MBSRTOWCS=1
15731
15732
15733
15734
15735
15736 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
15737
15738
15739
15740
15741 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
15742
15743
15744
15745
15746
15747
15748
15749
15750 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
15751
15752
15753 for ac_header in bp-sym.h
15754 do :
15755 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
15756 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
15757 cat >>confdefs.h <<_ACEOF
15758 #define HAVE_BP_SYM_H 1
15759 _ACEOF
15760
15761 fi
15762
15763 done
15764
15765
15766 fi
15767
15768
15769
15770
15771
15772 GNULIB_MEMCHR=1
15773
15774
15775
15776
15777
15778 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
15779
15780
15781
15782
15783
15784 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
15786 $as_echo_n "checking whether memmem works in linear time... " >&6; }
15787 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
15788 $as_echo_n "(cached) " >&6
15789 else
15790 if test "$cross_compiling" = yes; then :
15791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15792 /* end confdefs.h. */
15793
15794 #include <features.h>
15795 #ifdef __GNU_LIBRARY__
15796 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
15797 && !defined __UCLIBC__
15798 Lucky user
15799 #endif
15800 #endif
15801 #ifdef __CYGWIN__
15802 #include <cygwin/version.h>
15803 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
15804 Lucky user
15805 #endif
15806 #endif
15807
15808 _ACEOF
15809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15810 $EGREP "Lucky user" >/dev/null 2>&1; then :
15811 gl_cv_func_memmem_works_fast="guessing yes"
15812 else
15813 gl_cv_func_memmem_works_fast="guessing no"
15814 fi
15815 rm -f conftest*
15816
15817
15818 else
15819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15820 /* end confdefs.h. */
15821
15822 #include <signal.h> /* for signal */
15823 #include <string.h> /* for memmem */
15824 #include <stdlib.h> /* for malloc */
15825 #include <unistd.h> /* for alarm */
15826 static void quit (int sig) { exit (sig + 128); }
15827
15828 int
15829 main ()
15830 {
15831
15832 int result = 0;
15833 size_t m = 1000000;
15834 char *haystack = (char *) malloc (2 * m + 1);
15835 char *needle = (char *) malloc (m + 1);
15836 /* Failure to compile this test due to missing alarm is okay,
15837 since all such platforms (mingw) also lack memmem. */
15838 signal (SIGALRM, quit);
15839 alarm (5);
15840 /* Check for quadratic performance. */
15841 if (haystack && needle)
15842 {
15843 memset (haystack, 'A', 2 * m);
15844 haystack[2 * m] = 'B';
15845 memset (needle, 'A', m);
15846 needle[m] = 'B';
15847 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
15848 result |= 1;
15849 }
15850 return result;
15851
15852 ;
15853 return 0;
15854 }
15855 _ACEOF
15856 if ac_fn_c_try_run "$LINENO"; then :
15857 gl_cv_func_memmem_works_fast=yes
15858 else
15859 gl_cv_func_memmem_works_fast=no
15860 fi
15861 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15862 conftest.$ac_objext conftest.beam conftest.$ac_ext
15863 fi
15864
15865
15866 fi
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
15868 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
15869 case "$gl_cv_func_memmem_works_fast" in
15870 *yes) ;;
15871 *)
15872 REPLACE_MEMMEM=1
15873 ;;
15874 esac
15875 fi
15876
15877 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
15878
15879
15880
15881
15882
15883
15884
15885
15886 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
15887
15888 fi
15889
15890
15891
15892
15893 for ac_func in memmem
15894 do :
15895 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
15896 if test "x$ac_cv_func_memmem" = x""yes; then :
15897 cat >>confdefs.h <<_ACEOF
15898 #define HAVE_MEMMEM 1
15899 _ACEOF
15900
15901 fi
15902 done
15903
15904 if test $ac_cv_func_memmem = yes; then
15905 HAVE_MEMMEM=1
15906 else
15907 HAVE_MEMMEM=0
15908 fi
15909
15910 if test $ac_cv_have_decl_memmem = no; then
15911 HAVE_DECL_MEMMEM=0
15912 else
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
15914 $as_echo_n "checking whether memmem works... " >&6; }
15915 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
15916 $as_echo_n "(cached) " >&6
15917 else
15918 if test "$cross_compiling" = yes; then :
15919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15920 /* end confdefs.h. */
15921
15922 #ifdef __GNU_LIBRARY__
15923 #include <features.h>
15924 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
15925 || __GLIBC_MINOR__ > 12)) \
15926 || (__GLIBC__ > 2)) \
15927 || defined __UCLIBC__
15928 Lucky user
15929 #endif
15930 #elif defined __CYGWIN__
15931 #include <cygwin/version.h>
15932 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
15933 Lucky user
15934 #endif
15935 #else
15936 Lucky user
15937 #endif
15938
15939 _ACEOF
15940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15941 $EGREP "Lucky user" >/dev/null 2>&1; then :
15942 gl_cv_func_memmem_works_always="guessing yes"
15943 else
15944 gl_cv_func_memmem_works_always="guessing no"
15945 fi
15946 rm -f conftest*
15947
15948
15949 else
15950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15951 /* end confdefs.h. */
15952
15953 #include <string.h> /* for memmem */
15954 #define P "_EF_BF_BD"
15955 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
15956 #define NEEDLE P P P P P
15957
15958 int
15959 main ()
15960 {
15961
15962 int result = 0;
15963 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
15964 result |= 1;
15965 /* Check for empty needle behavior. */
15966 {
15967 const char *haystack = "AAA";
15968 if (memmem (haystack, 3, NULL, 0) != haystack)
15969 result |= 2;
15970 }
15971 return result;
15972
15973 ;
15974 return 0;
15975 }
15976 _ACEOF
15977 if ac_fn_c_try_run "$LINENO"; then :
15978 gl_cv_func_memmem_works_always=yes
15979 else
15980 gl_cv_func_memmem_works_always=no
15981 fi
15982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15983 conftest.$ac_objext conftest.beam conftest.$ac_ext
15984 fi
15985
15986
15987 fi
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
15989 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
15990 case "$gl_cv_func_memmem_works_always" in
15991 *yes) ;;
15992 *)
15993 REPLACE_MEMMEM=1
15994 ;;
15995 esac
15996 fi
15997 :
15998
15999 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
16000
16001
16002
16003
16004
16005
16006
16007
16008 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
16009
16010 fi
16011
16012
16013
16014
16015
16016 GNULIB_MEMMEM=1
16017
16018
16019
16020
16021
16022 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033 if test $ac_cv_func_readlink = no; then
16034 HAVE_READLINK=0
16035 else
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
16037 $as_echo_n "checking whether readlink signature is correct... " >&6; }
16038 if test "${gl_cv_decl_readlink_works+set}" = set; then :
16039 $as_echo_n "(cached) " >&6
16040 else
16041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16042 /* end confdefs.h. */
16043 #include <unistd.h>
16044 /* Cause compilation failure if original declaration has wrong type. */
16045 ssize_t readlink (const char *, char *, size_t);
16046 int
16047 main ()
16048 {
16049
16050 ;
16051 return 0;
16052 }
16053 _ACEOF
16054 if ac_fn_c_try_compile "$LINENO"; then :
16055 gl_cv_decl_readlink_works=yes
16056 else
16057 gl_cv_decl_readlink_works=no
16058 fi
16059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16060 fi
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
16062 $as_echo "$gl_cv_decl_readlink_works" >&6; }
16063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
16064 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
16065 if test "${gl_cv_func_readlink_works+set}" = set; then :
16066 $as_echo_n "(cached) " >&6
16067 else
16068 # We have readlink, so assume ln -s works.
16069 ln -s conftest.no-such conftest.link
16070 ln -s conftest.link conftest.lnk2
16071 if test "$cross_compiling" = yes; then :
16072 case "$host_os" in
16073 # Guess yes on glibc systems.
16074 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
16075 # If we don't know, assume the worst.
16076 *) gl_cv_func_readlink_works="guessing no" ;;
16077 esac
16078
16079 else
16080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16081 /* end confdefs.h. */
16082 #include <unistd.h>
16083
16084 int
16085 main ()
16086 {
16087 char buf[20];
16088 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
16089 ;
16090 return 0;
16091 }
16092 _ACEOF
16093 if ac_fn_c_try_run "$LINENO"; then :
16094 gl_cv_func_readlink_works=yes
16095 else
16096 gl_cv_func_readlink_works=no
16097 fi
16098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16099 conftest.$ac_objext conftest.beam conftest.$ac_ext
16100 fi
16101
16102 rm -f conftest.link conftest.lnk2
16103 fi
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
16105 $as_echo "$gl_cv_func_readlink_works" >&6; }
16106 case "$gl_cv_func_readlink_works" in
16107 *yes)
16108 if test "$gl_cv_decl_readlink_works" != yes; then
16109 REPLACE_READLINK=1
16110 fi
16111 ;;
16112 *)
16113
16114 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
16115
16116 REPLACE_READLINK=1
16117 ;;
16118 esac
16119 fi
16120
16121 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
16122
16123
16124
16125
16126
16127
16128
16129
16130 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
16131
16132
16133 :
16134
16135 fi
16136
16137
16138
16139
16140
16141 GNULIB_READLINK=1
16142
16143
16144
16145
16146
16147 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
16148
16149
16150
16151
16152
16153
16154
16155
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
16157 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
16158 if test "${gl_cv_func_rename_slash_dst_works+set}" = set; then :
16159 $as_echo_n "(cached) " >&6
16160 else
16161 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
16162 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
16163 as_fn_error "cannot create temporary files" "$LINENO" 5
16164 # Assume that if we have lstat, we can also check symlinks.
16165 if test $ac_cv_func_lstat = yes; then
16166 ln -s conftest.f conftest.lnk
16167 fi
16168 if test "$cross_compiling" = yes; then :
16169 case "$host_os" in
16170 # Guess yes on glibc systems.
16171 *-gnu*) gl_cv_func_rename_slash_dst_works="guessing yes" ;;
16172 # If we don't know, assume the worst.
16173 *) gl_cv_func_rename_slash_dst_works="guessing no" ;;
16174 esac
16175
16176 else
16177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16178 /* end confdefs.h. */
16179
16180 # include <stdio.h>
16181 # include <stdlib.h>
16182
16183 int
16184 main ()
16185 {
16186 int result = 0;
16187 if (rename ("conftest.f1", "conftest.f2/") == 0)
16188 result |= 1;
16189 if (rename ("conftest.d1", "conftest.d2/") != 0)
16190 result |= 2;
16191 #if HAVE_LSTAT
16192 if (rename ("conftest.f", "conftest.lnk/") == 0)
16193 result |= 4;
16194 #endif
16195 return result;
16196
16197 ;
16198 return 0;
16199 }
16200 _ACEOF
16201 if ac_fn_c_try_run "$LINENO"; then :
16202 gl_cv_func_rename_slash_dst_works=yes
16203 else
16204 gl_cv_func_rename_slash_dst_works=no
16205 fi
16206 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16207 conftest.$ac_objext conftest.beam conftest.$ac_ext
16208 fi
16209
16210 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
16211
16212 fi
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
16214 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
16215 case "$gl_cv_func_rename_slash_dst_works" in
16216 *yes) ;;
16217 *)
16218 REPLACE_RENAME=1
16219
16220 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
16221
16222 ;;
16223 esac
16224
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
16226 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
16227 if test "${gl_cv_func_rename_slash_src_works+set}" = set; then :
16228 $as_echo_n "(cached) " >&6
16229 else
16230 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
16231 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
16232 as_fn_error "cannot create temporary files" "$LINENO" 5
16233 # Assume that if we have lstat, we can also check symlinks.
16234 if test $ac_cv_func_lstat = yes; then
16235 ln -s conftest.f conftest.lnk
16236 fi
16237 if test "$cross_compiling" = yes; then :
16238 case "$host_os" in
16239 # Guess yes on glibc systems.
16240 *-gnu*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
16241 # If we don't know, assume the worst.
16242 *) gl_cv_func_rename_slash_src_works="guessing no" ;;
16243 esac
16244
16245 else
16246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16247 /* end confdefs.h. */
16248
16249 # include <stdio.h>
16250 # include <stdlib.h>
16251
16252 int
16253 main ()
16254 {
16255 int result = 0;
16256 if (rename ("conftest.f1/", "conftest.d3") == 0)
16257 result |= 1;
16258 if (rename ("conftest.d1/", "conftest.d2") != 0)
16259 result |= 2;
16260 #if HAVE_LSTAT
16261 if (rename ("conftest.lnk/", "conftest.f") == 0)
16262 result |= 4;
16263 #endif
16264 return result;
16265
16266 ;
16267 return 0;
16268 }
16269 _ACEOF
16270 if ac_fn_c_try_run "$LINENO"; then :
16271 gl_cv_func_rename_slash_src_works=yes
16272 else
16273 gl_cv_func_rename_slash_src_works=no
16274 fi
16275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16276 conftest.$ac_objext conftest.beam conftest.$ac_ext
16277 fi
16278
16279 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
16280
16281 fi
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
16283 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
16284 case "$gl_cv_func_rename_slash_src_works" in
16285 *yes) ;;
16286 *)
16287 REPLACE_RENAME=1
16288
16289 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
16290
16291 ;;
16292 esac
16293
16294
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
16296 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
16297 if test "${gl_cv_func_rename_link_works+set}" = set; then :
16298 $as_echo_n "(cached) " >&6
16299 else
16300 if test $ac_cv_func_link = yes; then
16301 rm -rf conftest.f conftest.f1
16302 if touch conftest.f && ln conftest.f conftest.f1 &&
16303 set x `ls -i conftest.f conftest.f1` && test "" = ""; then
16304 if test "$cross_compiling" = yes; then :
16305 case "$host_os" in
16306 # Guess yes on glibc systems.
16307 *-gnu*) gl_cv_func_rename_link_works="guessing yes" ;;
16308 # If we don't know, assume the worst.
16309 *) gl_cv_func_rename_link_works="guessing no" ;;
16310 esac
16311
16312 else
16313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16314 /* end confdefs.h. */
16315
16316 # include <stdio.h>
16317 # include <stdlib.h>
16318 # include <unistd.h>
16319
16320 int
16321 main ()
16322 {
16323 int result = 0;
16324 if (rename ("conftest.f", "conftest.f1"))
16325 result |= 1;
16326 if (unlink ("conftest.f1"))
16327 result |= 2;
16328 if (rename ("conftest.f", "conftest.f"))
16329 result |= 4;
16330 if (rename ("conftest.f1", "conftest.f1") == 0)
16331 result |= 8;
16332 return result;
16333
16334 ;
16335 return 0;
16336 }
16337 _ACEOF
16338 if ac_fn_c_try_run "$LINENO"; then :
16339 gl_cv_func_rename_link_works=yes
16340 else
16341 gl_cv_func_rename_link_works=no
16342 fi
16343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16344 conftest.$ac_objext conftest.beam conftest.$ac_ext
16345 fi
16346
16347 else
16348 gl_cv_func_rename_link_works="guessing no"
16349 fi
16350 rm -rf conftest.f conftest.f1
16351 else
16352 gl_cv_func_rename_link_works=yes
16353 fi
16354
16355 fi
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
16357 $as_echo "$gl_cv_func_rename_link_works" >&6; }
16358 case "$gl_cv_func_rename_link_works" in
16359 *yes) ;;
16360 *)
16361 REPLACE_RENAME=1
16362
16363 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
16364
16365 ;;
16366 esac
16367
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
16369 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
16370 if test "${gl_cv_func_rename_dest_works+set}" = set; then :
16371 $as_echo_n "(cached) " >&6
16372 else
16373 rm -rf conftest.f conftest.d1 conftest.d2
16374 touch conftest.f && mkdir conftest.d1 conftest.d2 ||
16375 as_fn_error "cannot create temporary files" "$LINENO" 5
16376 if test "$cross_compiling" = yes; then :
16377 case "$host_os" in
16378 # Guess yes on glibc systems.
16379 *-gnu*) gl_cv_func_rename_dest_works="guessing yes" ;;
16380 # If we don't know, assume the worst.
16381 *) gl_cv_func_rename_dest_works="guessing no" ;;
16382 esac
16383
16384 else
16385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16386 /* end confdefs.h. */
16387
16388 # include <stdio.h>
16389 # include <stdlib.h>
16390
16391 int
16392 main ()
16393 {
16394 int result = 0;
16395 if (rename ("conftest.d1", "conftest.d2") != 0)
16396 result |= 1;
16397 if (rename ("conftest.d2", "conftest.f") == 0)
16398 result |= 2;
16399 return result;
16400
16401 ;
16402 return 0;
16403 }
16404 _ACEOF
16405 if ac_fn_c_try_run "$LINENO"; then :
16406 gl_cv_func_rename_dest_works=yes
16407 else
16408 gl_cv_func_rename_dest_works=no
16409 fi
16410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16411 conftest.$ac_objext conftest.beam conftest.$ac_ext
16412 fi
16413
16414 rm -rf conftest.f conftest.d1 conftest.d2
16415
16416 fi
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
16418 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
16419 case "$gl_cv_func_rename_dest_works" in
16420 *yes) ;;
16421 *)
16422 REPLACE_RENAME=1
16423
16424 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
16425
16426 ;;
16427 esac
16428
16429 if test $REPLACE_RENAME = 1; then
16430
16431
16432
16433
16434
16435
16436
16437
16438 gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
16439
16440 fi
16441
16442
16443
16444
16445
16446 GNULIB_RENAME=1
16447
16448
16449
16450
16451
16452 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
16453
16454
16455
16456
16457
16458
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
16460 $as_echo_n "checking whether rmdir works... " >&6; }
16461 if test "${gl_cv_func_rmdir_works+set}" = set; then :
16462 $as_echo_n "(cached) " >&6
16463 else
16464 mkdir conftest.dir
16465 touch conftest.file
16466 if test "$cross_compiling" = yes; then :
16467 case "$host_os" in
16468 # Guess yes on glibc systems.
16469 *-gnu*) gl_cv_func_rmdir_works="guessing yes" ;;
16470 # If we don't know, assume the worst.
16471 *) gl_cv_func_rmdir_works="guessing no" ;;
16472 esac
16473
16474 else
16475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16476 /* end confdefs.h. */
16477 #include <stdio.h>
16478 #include <errno.h>
16479 #if HAVE_UNISTD_H
16480 # include <unistd.h>
16481 #else /* on Windows with MSVC */
16482 # include <direct.h>
16483 #endif
16484
16485 int
16486 main ()
16487 {
16488 int result = 0;
16489 if (!rmdir ("conftest.file/"))
16490 result |= 1;
16491 else if (errno != ENOTDIR)
16492 result |= 2;
16493 if (!rmdir ("conftest.dir/./"))
16494 result |= 4;
16495 return result;
16496
16497 ;
16498 return 0;
16499 }
16500 _ACEOF
16501 if ac_fn_c_try_run "$LINENO"; then :
16502 gl_cv_func_rmdir_works=yes
16503 else
16504 gl_cv_func_rmdir_works=no
16505 fi
16506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16507 conftest.$ac_objext conftest.beam conftest.$ac_ext
16508 fi
16509
16510 rm -rf conftest.dir conftest.file
16511 fi
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
16513 $as_echo "$gl_cv_func_rmdir_works" >&6; }
16514 case "$gl_cv_func_rmdir_works" in
16515 *yes) ;;
16516 *)
16517 REPLACE_RMDIR=1
16518 ;;
16519 esac
16520
16521 if test $REPLACE_RMDIR = 1; then
16522
16523
16524
16525
16526
16527
16528
16529
16530 gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
16531
16532 fi
16533
16534
16535
16536
16537
16538 GNULIB_RMDIR=1
16539
16540
16541
16542
16543
16544 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
16545
16546
16547
16548
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
16550 $as_echo_n "checking for ssize_t... " >&6; }
16551 if test "${gt_cv_ssize_t+set}" = set; then :
16552 $as_echo_n "(cached) " >&6
16553 else
16554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16555 /* end confdefs.h. */
16556 #include <sys/types.h>
16557 int
16558 main ()
16559 {
16560 int x = sizeof (ssize_t *) + sizeof (ssize_t);
16561 return !x;
16562 ;
16563 return 0;
16564 }
16565 _ACEOF
16566 if ac_fn_c_try_compile "$LINENO"; then :
16567 gt_cv_ssize_t=yes
16568 else
16569 gt_cv_ssize_t=no
16570 fi
16571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16572 fi
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
16574 $as_echo "$gt_cv_ssize_t" >&6; }
16575 if test $gt_cv_ssize_t = no; then
16576
16577 $as_echo "#define ssize_t int" >>confdefs.h
16578
16579 fi
16580
16581
16582
16583
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
16585 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
16586 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
16587 $as_echo_n "(cached) " >&6
16588 else
16589 if test "$cross_compiling" = yes; then :
16590 case $host_os in
16591 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
16592 *) gl_cv_func_stat_dir_slash="guessing yes";;
16593 esac
16594 else
16595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16596 /* end confdefs.h. */
16597 #include <sys/stat.h>
16598
16599 int
16600 main ()
16601 {
16602 struct stat st; return stat (".", &st) != stat ("./", &st);
16603 ;
16604 return 0;
16605 }
16606 _ACEOF
16607 if ac_fn_c_try_run "$LINENO"; then :
16608 gl_cv_func_stat_dir_slash=yes
16609 else
16610 gl_cv_func_stat_dir_slash=no
16611 fi
16612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16613 conftest.$ac_objext conftest.beam conftest.$ac_ext
16614 fi
16615
16616 fi
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
16618 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
16620 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
16621 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
16622 $as_echo_n "(cached) " >&6
16623 else
16624 touch conftest.tmp
16625 # Assume that if we have lstat, we can also check symlinks.
16626 if test $ac_cv_func_lstat = yes; then
16627 ln -s conftest.tmp conftest.lnk
16628 fi
16629 if test "$cross_compiling" = yes; then :
16630 case "$host_os" in
16631 # Guess yes on glibc systems.
16632 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
16633 # If we don't know, assume the worst.
16634 *) gl_cv_func_stat_file_slash="guessing no" ;;
16635 esac
16636
16637 else
16638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16639 /* end confdefs.h. */
16640 #include <sys/stat.h>
16641
16642 int
16643 main ()
16644 {
16645 int result = 0;
16646 struct stat st;
16647 if (!stat ("conftest.tmp/", &st))
16648 result |= 1;
16649 #if HAVE_LSTAT
16650 if (!stat ("conftest.lnk/", &st))
16651 result |= 2;
16652 #endif
16653 return result;
16654
16655 ;
16656 return 0;
16657 }
16658 _ACEOF
16659 if ac_fn_c_try_run "$LINENO"; then :
16660 gl_cv_func_stat_file_slash=yes
16661 else
16662 gl_cv_func_stat_file_slash=no
16663 fi
16664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16665 conftest.$ac_objext conftest.beam conftest.$ac_ext
16666 fi
16667
16668 rm -f conftest.tmp conftest.lnk
16669 fi
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
16671 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
16672 case $gl_cv_func_stat_dir_slash in
16673 *no) REPLACE_STAT=1
16674
16675 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
16676 ;;
16677 esac
16678 case $gl_cv_func_stat_file_slash in
16679 *no) REPLACE_STAT=1
16680
16681 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
16682 ;;
16683 esac
16684
16685 if test $REPLACE_STAT = 1; then
16686
16687
16688
16689
16690
16691
16692
16693
16694 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
16695
16696 :
16697 fi
16698
16699
16700
16701
16702
16703 GNULIB_STAT=1
16704
16705
16706
16707
16708
16709 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
16710
16711
16712
16713
16714
16715
16716 # Define two additional variables used in the Makefile substitution.
16717
16718 if test "$ac_cv_header_stdbool_h" = yes; then
16719 STDBOOL_H=''
16720 else
16721 STDBOOL_H='stdbool.h'
16722 fi
16723
16724 if test -n "$STDBOOL_H"; then
16725 GL_GENERATE_STDBOOL_H_TRUE=
16726 GL_GENERATE_STDBOOL_H_FALSE='#'
16727 else
16728 GL_GENERATE_STDBOOL_H_TRUE='#'
16729 GL_GENERATE_STDBOOL_H_FALSE=
16730 fi
16731
16732
16733 if test "$ac_cv_type__Bool" = yes; then
16734 HAVE__BOOL=1
16735 else
16736 HAVE__BOOL=0
16737 fi
16738
16739
16740
16741
16742
16743 STDDEF_H=
16744 ac_fn_c_check_type "$LINENO" "max_align_t" "ac_cv_type_max_align_t" "#include <stddef.h>
16745
16746 "
16747 if test "x$ac_cv_type_max_align_t" = x""yes; then :
16748
16749 else
16750 HAVE_MAX_ALIGN_T=0; STDDEF_H=stddef.h
16751 fi
16752
16753 if test $gt_cv_c_wchar_t = no; then
16754 HAVE_WCHAR_T=0
16755 STDDEF_H=stddef.h
16756 fi
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16758 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
16759 if test "${gl_cv_decl_null_works+set}" = set; then :
16760 $as_echo_n "(cached) " >&6
16761 else
16762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16763 /* end confdefs.h. */
16764 #include <stddef.h>
16765 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16766
16767 int
16768 main ()
16769 {
16770
16771 ;
16772 return 0;
16773 }
16774 _ACEOF
16775 if ac_fn_c_try_compile "$LINENO"; then :
16776 gl_cv_decl_null_works=yes
16777 else
16778 gl_cv_decl_null_works=no
16779 fi
16780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16781 fi
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16783 $as_echo "$gl_cv_decl_null_works" >&6; }
16784 if test $gl_cv_decl_null_works = no; then
16785 REPLACE_NULL=1
16786 STDDEF_H=stddef.h
16787 fi
16788
16789 if test -n "$STDDEF_H"; then
16790 GL_GENERATE_STDDEF_H_TRUE=
16791 GL_GENERATE_STDDEF_H_FALSE='#'
16792 else
16793 GL_GENERATE_STDDEF_H_TRUE='#'
16794 GL_GENERATE_STDDEF_H_FALSE=
16795 fi
16796
16797 if test -n "$STDDEF_H"; then
16798
16799
16800
16801
16802
16803
16804
16805
16806 if test $gl_cv_have_include_next = yes; then
16807 gl_cv_next_stddef_h='<'stddef.h'>'
16808 else
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16810 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
16811 if test "${gl_cv_next_stddef_h+set}" = set; then :
16812 $as_echo_n "(cached) " >&6
16813 else
16814
16815
16816
16817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16818 /* end confdefs.h. */
16819 #include <stddef.h>
16820 _ACEOF
16821 case "$host_os" in
16822 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16823 *) gl_absname_cpp="$ac_cpp" ;;
16824 esac
16825
16826 case "$host_os" in
16827 mingw*)
16828 gl_dirsep_regex='[/\\]'
16829 ;;
16830 *)
16831 gl_dirsep_regex='\/'
16832 ;;
16833 esac
16834 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16835 gl_header_literal_regex=`echo 'stddef.h' \
16836 | sed -e "$gl_make_literal_regex_sed"`
16837 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16838 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16839 s|^/[^/]|//&|
16840 p
16841 q
16842 }'
16843
16844 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16845 sed -n "$gl_absolute_header_sed"`
16846
16847 gl_header=$gl_cv_absolute_stddef_h
16848 gl_cv_next_stddef_h='"'$gl_header'"'
16849
16850
16851 fi
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16853 $as_echo "$gl_cv_next_stddef_h" >&6; }
16854 fi
16855 NEXT_STDDEF_H=$gl_cv_next_stddef_h
16856
16857 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16858 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16859 gl_next_as_first_directive='<'stddef.h'>'
16860 else
16861 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16862 gl_next_as_first_directive=$gl_cv_next_stddef_h
16863 fi
16864 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
16865
16866
16867
16868
16869 fi
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884 if test $gl_cv_have_include_next = yes; then
16885 gl_cv_next_stdio_h='<'stdio.h'>'
16886 else
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
16888 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
16889 if test "${gl_cv_next_stdio_h+set}" = set; then :
16890 $as_echo_n "(cached) " >&6
16891 else
16892
16893
16894
16895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16896 /* end confdefs.h. */
16897 #include <stdio.h>
16898 _ACEOF
16899 case "$host_os" in
16900 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16901 *) gl_absname_cpp="$ac_cpp" ;;
16902 esac
16903
16904 case "$host_os" in
16905 mingw*)
16906 gl_dirsep_regex='[/\\]'
16907 ;;
16908 *)
16909 gl_dirsep_regex='\/'
16910 ;;
16911 esac
16912 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16913 gl_header_literal_regex=`echo 'stdio.h' \
16914 | sed -e "$gl_make_literal_regex_sed"`
16915 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16916 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16917 s|^/[^/]|//&|
16918 p
16919 q
16920 }'
16921
16922 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16923 sed -n "$gl_absolute_header_sed"`
16924
16925 gl_header=$gl_cv_absolute_stdio_h
16926 gl_cv_next_stdio_h='"'$gl_header'"'
16927
16928
16929 fi
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
16931 $as_echo "$gl_cv_next_stdio_h" >&6; }
16932 fi
16933 NEXT_STDIO_H=$gl_cv_next_stdio_h
16934
16935 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16936 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16937 gl_next_as_first_directive='<'stdio.h'>'
16938 else
16939 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16940 gl_next_as_first_directive=$gl_cv_next_stdio_h
16941 fi
16942 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
16943
16944
16945
16946
16947
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
16949 $as_echo_n "checking which flavor of printf attribute matches inttypes macros... " >&6; }
16950 if test "${gl_cv_func_printf_attribute_flavor+set}" = set; then :
16951 $as_echo_n "(cached) " >&6
16952 else
16953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16954 /* end confdefs.h. */
16955
16956 #define __STDC_FORMAT_MACROS 1
16957 #include <stdio.h>
16958 #include <inttypes.h>
16959 /* For non-mingw systems, compilation will trivially succeed.
16960 For mingw, compilation will succeed for older mingw (system
16961 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
16962 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
16963 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
16964 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
16965 #endif
16966
16967 int
16968 main ()
16969 {
16970
16971 ;
16972 return 0;
16973 }
16974 _ACEOF
16975 if ac_fn_c_try_compile "$LINENO"; then :
16976 gl_cv_func_printf_attribute_flavor=system
16977 else
16978 gl_cv_func_printf_attribute_flavor=gnu
16979 fi
16980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16981 fi
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
16983 $as_echo "$gl_cv_func_printf_attribute_flavor" >&6; }
16984 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
16985
16986 $as_echo "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
16987
16988 fi
16989
16990 GNULIB_FSCANF=1
16991
16992
16993 cat >>confdefs.h <<_ACEOF
16994 #define GNULIB_FSCANF 1
16995 _ACEOF
16996
16997
16998 GNULIB_SCANF=1
16999
17000
17001 cat >>confdefs.h <<_ACEOF
17002 #define GNULIB_SCANF 1
17003 _ACEOF
17004
17005
17006 GNULIB_FGETC=1
17007 GNULIB_GETC=1
17008 GNULIB_GETCHAR=1
17009 GNULIB_FGETS=1
17010 GNULIB_FREAD=1
17011
17012
17013 GNULIB_FPRINTF=1
17014 GNULIB_PRINTF=1
17015 GNULIB_VFPRINTF=1
17016 GNULIB_VPRINTF=1
17017 GNULIB_FPUTC=1
17018 GNULIB_PUTC=1
17019 GNULIB_PUTCHAR=1
17020 GNULIB_FPUTS=1
17021 GNULIB_PUTS=1
17022 GNULIB_FWRITE=1
17023
17024
17025
17026
17027 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
17028 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17030 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17031 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17032 $as_echo_n "(cached) " >&6
17033 else
17034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17035 /* end confdefs.h. */
17036 #include <stdio.h>
17037
17038 int
17039 main ()
17040 {
17041 #undef $gl_func
17042 (void) $gl_func;
17043 ;
17044 return 0;
17045 }
17046 _ACEOF
17047 if ac_fn_c_try_compile "$LINENO"; then :
17048 eval "$as_gl_Symbol=yes"
17049 else
17050 eval "$as_gl_Symbol=no"
17051 fi
17052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17053 fi
17054 eval ac_res=\$$as_gl_Symbol
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17056 $as_echo "$ac_res" >&6; }
17057 eval as_val=\$$as_gl_Symbol
17058 if test "x$as_val" = x""yes; then :
17059 cat >>confdefs.h <<_ACEOF
17060 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17061 _ACEOF
17062
17063 eval ac_cv_have_decl_$gl_func=yes
17064 fi
17065 done
17066
17067
17068
17069
17070
17071
17072
17073
17074
17075
17076
17077
17078 if test $gl_cv_have_include_next = yes; then
17079 gl_cv_next_stdlib_h='<'stdlib.h'>'
17080 else
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
17082 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
17083 if test "${gl_cv_next_stdlib_h+set}" = set; then :
17084 $as_echo_n "(cached) " >&6
17085 else
17086
17087
17088
17089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17090 /* end confdefs.h. */
17091 #include <stdlib.h>
17092 _ACEOF
17093 case "$host_os" in
17094 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17095 *) gl_absname_cpp="$ac_cpp" ;;
17096 esac
17097
17098 case "$host_os" in
17099 mingw*)
17100 gl_dirsep_regex='[/\\]'
17101 ;;
17102 *)
17103 gl_dirsep_regex='\/'
17104 ;;
17105 esac
17106 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17107 gl_header_literal_regex=`echo 'stdlib.h' \
17108 | sed -e "$gl_make_literal_regex_sed"`
17109 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17110 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17111 s|^/[^/]|//&|
17112 p
17113 q
17114 }'
17115
17116 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17117 sed -n "$gl_absolute_header_sed"`
17118
17119 gl_header=$gl_cv_absolute_stdlib_h
17120 gl_cv_next_stdlib_h='"'$gl_header'"'
17121
17122
17123 fi
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
17125 $as_echo "$gl_cv_next_stdlib_h" >&6; }
17126 fi
17127 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
17128
17129 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17130 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17131 gl_next_as_first_directive='<'stdlib.h'>'
17132 else
17133 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17134 gl_next_as_first_directive=$gl_cv_next_stdlib_h
17135 fi
17136 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
17137
17138
17139
17140
17141
17142
17143 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
17144 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17146 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17147 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17148 $as_echo_n "(cached) " >&6
17149 else
17150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17151 /* end confdefs.h. */
17152 #include <stdlib.h>
17153 #if HAVE_SYS_LOADAVG_H
17154 # include <sys/loadavg.h>
17155 #endif
17156 #if HAVE_RANDOM_H
17157 # include <random.h>
17158 #endif
17159
17160 int
17161 main ()
17162 {
17163 #undef $gl_func
17164 (void) $gl_func;
17165 ;
17166 return 0;
17167 }
17168 _ACEOF
17169 if ac_fn_c_try_compile "$LINENO"; then :
17170 eval "$as_gl_Symbol=yes"
17171 else
17172 eval "$as_gl_Symbol=no"
17173 fi
17174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17175 fi
17176 eval ac_res=\$$as_gl_Symbol
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17178 $as_echo "$ac_res" >&6; }
17179 eval as_val=\$$as_gl_Symbol
17180 if test "x$as_val" = x""yes; then :
17181 cat >>confdefs.h <<_ACEOF
17182 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17183 _ACEOF
17184
17185 eval ac_cv_have_decl_$gl_func=yes
17186 fi
17187 done
17188
17189
17190
17191
17192
17193
17194
17195 if test $REPLACE_STRSTR = 0; then
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
17197 $as_echo_n "checking whether strstr works in linear time... " >&6; }
17198 if test "${gl_cv_func_strstr_linear+set}" = set; then :
17199 $as_echo_n "(cached) " >&6
17200 else
17201 if test "$cross_compiling" = yes; then :
17202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17203 /* end confdefs.h. */
17204
17205 #include <features.h>
17206 #ifdef __GNU_LIBRARY__
17207 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
17208 && !(defined __i386__ || defined __x86_64__) \
17209 && !defined __UCLIBC__
17210 Lucky user
17211 #endif
17212 #endif
17213 #ifdef __CYGWIN__
17214 #include <cygwin/version.h>
17215 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
17216 Lucky user
17217 #endif
17218 #endif
17219
17220 _ACEOF
17221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17222 $EGREP "Lucky user" >/dev/null 2>&1; then :
17223 gl_cv_func_strstr_linear="guessing yes"
17224 else
17225 gl_cv_func_strstr_linear="guessing no"
17226 fi
17227 rm -f conftest*
17228
17229
17230 else
17231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17232 /* end confdefs.h. */
17233
17234 #include <signal.h> /* for signal */
17235 #include <string.h> /* for strstr */
17236 #include <stdlib.h> /* for malloc */
17237 #include <unistd.h> /* for alarm */
17238 static void quit (int sig) { exit (sig + 128); }
17239
17240 int
17241 main ()
17242 {
17243
17244 int result = 0;
17245 size_t m = 1000000;
17246 char *haystack = (char *) malloc (2 * m + 2);
17247 char *needle = (char *) malloc (m + 2);
17248 /* Failure to compile this test due to missing alarm is okay,
17249 since all such platforms (mingw) also have quadratic strstr. */
17250 signal (SIGALRM, quit);
17251 alarm (5);
17252 /* Check for quadratic performance. */
17253 if (haystack && needle)
17254 {
17255 memset (haystack, 'A', 2 * m);
17256 haystack[2 * m] = 'B';
17257 haystack[2 * m + 1] = 0;
17258 memset (needle, 'A', m);
17259 needle[m] = 'B';
17260 needle[m + 1] = 0;
17261 if (!strstr (haystack, needle))
17262 result |= 1;
17263 }
17264 return result;
17265
17266 ;
17267 return 0;
17268 }
17269 _ACEOF
17270 if ac_fn_c_try_run "$LINENO"; then :
17271 gl_cv_func_strstr_linear=yes
17272 else
17273 gl_cv_func_strstr_linear=no
17274 fi
17275 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17276 conftest.$ac_objext conftest.beam conftest.$ac_ext
17277 fi
17278
17279
17280 fi
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
17282 $as_echo "$gl_cv_func_strstr_linear" >&6; }
17283 case "$gl_cv_func_strstr_linear" in
17284 *yes) ;;
17285 *)
17286 REPLACE_STRSTR=1
17287 ;;
17288 esac
17289 fi
17290
17291 if test $REPLACE_STRSTR = 1; then
17292
17293
17294
17295
17296
17297
17298
17299
17300 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
17301
17302 fi
17303
17304
17305
17306 if test "$gl_cv_func_memchr_works" != yes; then
17307 REPLACE_STRSTR=1
17308 else
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
17310 $as_echo_n "checking whether strstr works... " >&6; }
17311 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
17312 $as_echo_n "(cached) " >&6
17313 else
17314 if test "$cross_compiling" = yes; then :
17315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17316 /* end confdefs.h. */
17317
17318 #ifdef __GNU_LIBRARY__
17319 #include <features.h>
17320 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
17321 || defined __UCLIBC__
17322 Lucky user
17323 #endif
17324 #elif defined __CYGWIN__
17325 #include <cygwin/version.h>
17326 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
17327 Lucky user
17328 #endif
17329 #else
17330 Lucky user
17331 #endif
17332
17333 _ACEOF
17334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17335 $EGREP "Lucky user" >/dev/null 2>&1; then :
17336 gl_cv_func_strstr_works_always="guessing yes"
17337 else
17338 gl_cv_func_strstr_works_always="guessing no"
17339 fi
17340 rm -f conftest*
17341
17342
17343 else
17344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17345 /* end confdefs.h. */
17346
17347 #include <string.h> /* for strstr */
17348 #define P "_EF_BF_BD"
17349 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
17350 #define NEEDLE P P P P P
17351
17352 int
17353 main ()
17354 {
17355 return !!strstr (HAYSTACK, NEEDLE);
17356
17357 ;
17358 return 0;
17359 }
17360 _ACEOF
17361 if ac_fn_c_try_run "$LINENO"; then :
17362 gl_cv_func_strstr_works_always=yes
17363 else
17364 gl_cv_func_strstr_works_always=no
17365 fi
17366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17367 conftest.$ac_objext conftest.beam conftest.$ac_ext
17368 fi
17369
17370
17371 fi
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
17373 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
17374 case "$gl_cv_func_strstr_works_always" in
17375 *yes) ;;
17376 *)
17377 REPLACE_STRSTR=1
17378 ;;
17379 esac
17380 fi
17381
17382 if test $REPLACE_STRSTR = 1; then
17383
17384
17385
17386
17387
17388
17389
17390
17391 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
17392
17393 fi
17394
17395
17396
17397
17398
17399 GNULIB_STRSTR=1
17400
17401
17402
17403
17404
17405 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
17406
17407
17408
17409
17410
17411
17412
17413 for ac_func in strtok_r
17414 do :
17415 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
17416 if test "x$ac_cv_func_strtok_r" = x""yes; then :
17417 cat >>confdefs.h <<_ACEOF
17418 #define HAVE_STRTOK_R 1
17419 _ACEOF
17420
17421 fi
17422 done
17423
17424 if test $ac_cv_func_strtok_r = yes; then
17425 HAVE_STRTOK_R=1
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
17427 $as_echo_n "checking whether strtok_r works... " >&6; }
17428 if test "${gl_cv_func_strtok_r_works+set}" = set; then :
17429 $as_echo_n "(cached) " >&6
17430 else
17431 if test "$cross_compiling" = yes; then :
17432
17433 case "$host_os" in
17434 # Guess no on glibc systems.
17435 *-gnu*) gl_cv_func_strtok_r_works="guessing no";;
17436 *) gl_cv_func_strtok_r_works="guessing yes";;
17437 esac
17438
17439 else
17440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17441 /* end confdefs.h. */
17442
17443 #ifndef __OPTIMIZE__
17444 # define __OPTIMIZE__ 1
17445 #endif
17446 #undef __OPTIMIZE_SIZE__
17447 #undef __NO_INLINE__
17448 #include <stdlib.h>
17449 #include <string.h>
17450
17451 int
17452 main ()
17453 {
17454 static const char dummy[] = "\177\01a";
17455 char delimiters[] = "xxxxxxxx";
17456 char *save_ptr = (char *) dummy;
17457 strtok_r (delimiters, "x", &save_ptr);
17458 strtok_r (NULL, "x", &save_ptr);
17459 return 0;
17460
17461 ;
17462 return 0;
17463 }
17464
17465 _ACEOF
17466 if ac_fn_c_try_run "$LINENO"; then :
17467 gl_cv_func_strtok_r_works=yes
17468 else
17469 gl_cv_func_strtok_r_works=no
17470 fi
17471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17472 conftest.$ac_objext conftest.beam conftest.$ac_ext
17473 fi
17474
17475
17476 fi
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
17478 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
17479 case "$gl_cv_func_strtok_r_works" in
17480 *no)
17481 UNDEFINE_STRTOK_R=1
17482 ;;
17483 esac
17484 else
17485 HAVE_STRTOK_R=0
17486 fi
17487
17488 if test $ac_cv_have_decl_strtok_r = no; then
17489 HAVE_DECL_STRTOK_R=0
17490 fi
17491
17492 if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
17493
17494
17495
17496
17497
17498
17499
17500
17501 gl_LIBOBJS="$gl_LIBOBJS strtok_r.$ac_objext"
17502
17503
17504 :
17505
17506 fi
17507
17508
17509
17510
17511
17512 GNULIB_STRTOK_R=1
17513
17514
17515
17516
17517
17518 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
17519
17520
17521
17522
17523
17524
17525
17526
17527
17528
17529
17530
17531
17532
17533
17534
17535
17536 if test $gl_cv_have_include_next = yes; then
17537 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17538 else
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
17540 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
17541 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
17542 $as_echo_n "(cached) " >&6
17543 else
17544
17545 if test $ac_cv_header_sys_stat_h = yes; then
17546
17547
17548
17549
17550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17551 /* end confdefs.h. */
17552 #include <sys/stat.h>
17553 _ACEOF
17554 case "$host_os" in
17555 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17556 *) gl_absname_cpp="$ac_cpp" ;;
17557 esac
17558
17559 case "$host_os" in
17560 mingw*)
17561 gl_dirsep_regex='[/\\]'
17562 ;;
17563 *)
17564 gl_dirsep_regex='\/'
17565 ;;
17566 esac
17567 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17568 gl_header_literal_regex=`echo 'sys/stat.h' \
17569 | sed -e "$gl_make_literal_regex_sed"`
17570 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17571 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17572 s|^/[^/]|//&|
17573 p
17574 q
17575 }'
17576
17577 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17578 sed -n "$gl_absolute_header_sed"`
17579
17580 gl_header=$gl_cv_absolute_sys_stat_h
17581 gl_cv_next_sys_stat_h='"'$gl_header'"'
17582 else
17583 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
17584 fi
17585
17586
17587 fi
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
17589 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
17590 fi
17591 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
17592
17593 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17594 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17595 gl_next_as_first_directive='<'sys/stat.h'>'
17596 else
17597 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17598 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
17599 fi
17600 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
17613
17614 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
17615
17616 fi
17617
17618 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
17619 #include <sys/stat.h>
17620 "
17621 if test "x$ac_cv_type_nlink_t" = x""yes; then :
17622
17623 else
17624
17625 $as_echo "#define nlink_t int" >>confdefs.h
17626
17627 fi
17628
17629
17630
17631 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
17632 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17634 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17635 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17636 $as_echo_n "(cached) " >&6
17637 else
17638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17639 /* end confdefs.h. */
17640 #include <sys/stat.h>
17641
17642 int
17643 main ()
17644 {
17645 #undef $gl_func
17646 (void) $gl_func;
17647 ;
17648 return 0;
17649 }
17650 _ACEOF
17651 if ac_fn_c_try_compile "$LINENO"; then :
17652 eval "$as_gl_Symbol=yes"
17653 else
17654 eval "$as_gl_Symbol=no"
17655 fi
17656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17657 fi
17658 eval ac_res=\$$as_gl_Symbol
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17660 $as_echo "$ac_res" >&6; }
17661 eval as_val=\$$as_gl_Symbol
17662 if test "x$as_val" = x""yes; then :
17663 cat >>confdefs.h <<_ACEOF
17664 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17665 _ACEOF
17666
17667 eval ac_cv_have_decl_$gl_func=yes
17668 fi
17669 done
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694 if test $gl_cv_have_include_next = yes; then
17695 gl_cv_next_unistd_h='<'unistd.h'>'
17696 else
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
17698 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
17699 if test "${gl_cv_next_unistd_h+set}" = set; then :
17700 $as_echo_n "(cached) " >&6
17701 else
17702
17703 if test $ac_cv_header_unistd_h = yes; then
17704
17705
17706
17707
17708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17709 /* end confdefs.h. */
17710 #include <unistd.h>
17711 _ACEOF
17712 case "$host_os" in
17713 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17714 *) gl_absname_cpp="$ac_cpp" ;;
17715 esac
17716
17717 case "$host_os" in
17718 mingw*)
17719 gl_dirsep_regex='[/\\]'
17720 ;;
17721 *)
17722 gl_dirsep_regex='\/'
17723 ;;
17724 esac
17725 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17726 gl_header_literal_regex=`echo 'unistd.h' \
17727 | sed -e "$gl_make_literal_regex_sed"`
17728 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17729 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17730 s|^/[^/]|//&|
17731 p
17732 q
17733 }'
17734
17735 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17736 sed -n "$gl_absolute_header_sed"`
17737
17738 gl_header=$gl_cv_absolute_unistd_h
17739 gl_cv_next_unistd_h='"'$gl_header'"'
17740 else
17741 gl_cv_next_unistd_h='<'unistd.h'>'
17742 fi
17743
17744
17745 fi
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
17747 $as_echo "$gl_cv_next_unistd_h" >&6; }
17748 fi
17749 NEXT_UNISTD_H=$gl_cv_next_unistd_h
17750
17751 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17752 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17753 gl_next_as_first_directive='<'unistd.h'>'
17754 else
17755 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17756 gl_next_as_first_directive=$gl_cv_next_unistd_h
17757 fi
17758 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
17759
17760
17761
17762
17763 if test $ac_cv_header_unistd_h = yes; then
17764 HAVE_UNISTD_H=1
17765 else
17766 HAVE_UNISTD_H=0
17767 fi
17768
17769
17770
17771
17772
17773
17774
17775 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
17776 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17778 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17779 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17780 $as_echo_n "(cached) " >&6
17781 else
17782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17783 /* end confdefs.h. */
17784
17785 #if HAVE_UNISTD_H
17786 # include <unistd.h>
17787 #endif
17788 /* Some systems declare various items in the wrong headers. */
17789 #if !(defined __GLIBC__ && !defined __UCLIBC__)
17790 # include <fcntl.h>
17791 # include <stdio.h>
17792 # include <stdlib.h>
17793 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17794 # include <io.h>
17795 # endif
17796 #endif
17797
17798 int
17799 main ()
17800 {
17801 #undef $gl_func
17802 (void) $gl_func;
17803 ;
17804 return 0;
17805 }
17806 _ACEOF
17807 if ac_fn_c_try_compile "$LINENO"; then :
17808 eval "$as_gl_Symbol=yes"
17809 else
17810 eval "$as_gl_Symbol=no"
17811 fi
17812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17813 fi
17814 eval ac_res=\$$as_gl_Symbol
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17816 $as_echo "$ac_res" >&6; }
17817 eval as_val=\$$as_gl_Symbol
17818 if test "x$as_val" = x""yes; then :
17819 cat >>confdefs.h <<_ACEOF
17820 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17821 _ACEOF
17822
17823 eval ac_cv_have_decl_$gl_func=yes
17824 fi
17825 done
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840 if test $gl_cv_have_include_next = yes; then
17841 gl_cv_next_wchar_h='<'wchar.h'>'
17842 else
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
17844 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
17845 if test "${gl_cv_next_wchar_h+set}" = set; then :
17846 $as_echo_n "(cached) " >&6
17847 else
17848
17849 if test $ac_cv_header_wchar_h = yes; then
17850
17851
17852
17853
17854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17855 /* end confdefs.h. */
17856 #include <wchar.h>
17857 _ACEOF
17858 case "$host_os" in
17859 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17860 *) gl_absname_cpp="$ac_cpp" ;;
17861 esac
17862
17863 case "$host_os" in
17864 mingw*)
17865 gl_dirsep_regex='[/\\]'
17866 ;;
17867 *)
17868 gl_dirsep_regex='\/'
17869 ;;
17870 esac
17871 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17872 gl_header_literal_regex=`echo 'wchar.h' \
17873 | sed -e "$gl_make_literal_regex_sed"`
17874 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17875 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17876 s|^/[^/]|//&|
17877 p
17878 q
17879 }'
17880
17881 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17882 sed -n "$gl_absolute_header_sed"`
17883
17884 gl_header=$gl_cv_absolute_wchar_h
17885 gl_cv_next_wchar_h='"'$gl_header'"'
17886 else
17887 gl_cv_next_wchar_h='<'wchar.h'>'
17888 fi
17889
17890
17891 fi
17892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
17893 $as_echo "$gl_cv_next_wchar_h" >&6; }
17894 fi
17895 NEXT_WCHAR_H=$gl_cv_next_wchar_h
17896
17897 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17898 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17899 gl_next_as_first_directive='<'wchar.h'>'
17900 else
17901 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17902 gl_next_as_first_directive=$gl_cv_next_wchar_h
17903 fi
17904 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
17905
17906
17907
17908
17909 if test $ac_cv_header_wchar_h = yes; then
17910 HAVE_WCHAR_H=1
17911 else
17912 HAVE_WCHAR_H=0
17913 fi
17914
17915
17916
17917
17918
17919 if test $gt_cv_c_wint_t = yes; then
17920 HAVE_WINT_T=1
17921 else
17922 HAVE_WINT_T=0
17923 fi
17924
17925
17926
17927 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
17928 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17930 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17931 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17932 $as_echo_n "(cached) " >&6
17933 else
17934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17935 /* end confdefs.h. */
17936
17937 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17938 <wchar.h>.
17939 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17940 included before <wchar.h>. */
17941 #if !(defined __GLIBC__ && !defined __UCLIBC__)
17942 # include <stddef.h>
17943 # include <stdio.h>
17944 # include <time.h>
17945 #endif
17946 #include <wchar.h>
17947
17948 int
17949 main ()
17950 {
17951 #undef $gl_func
17952 (void) $gl_func;
17953 ;
17954 return 0;
17955 }
17956 _ACEOF
17957 if ac_fn_c_try_compile "$LINENO"; then :
17958 eval "$as_gl_Symbol=yes"
17959 else
17960 eval "$as_gl_Symbol=no"
17961 fi
17962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17963 fi
17964 eval ac_res=\$$as_gl_Symbol
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17966 $as_echo "$ac_res" >&6; }
17967 eval as_val=\$$as_gl_Symbol
17968 if test "x$as_val" = x""yes; then :
17969 cat >>confdefs.h <<_ACEOF
17970 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17971 _ACEOF
17972
17973 eval ac_cv_have_decl_$gl_func=yes
17974 fi
17975 done
17976
17977
17978
17979
17980
17981
17982
17983 if test $ac_cv_func_iswcntrl = yes; then
17984 HAVE_ISWCNTRL=1
17985 else
17986 HAVE_ISWCNTRL=0
17987 fi
17988
17989
17990
17991 if test $gt_cv_c_wint_t = yes; then
17992 HAVE_WINT_T=1
17993 else
17994 HAVE_WINT_T=0
17995 fi
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007 if test $gl_cv_have_include_next = yes; then
18008 gl_cv_next_wctype_h='<'wctype.h'>'
18009 else
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
18011 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
18012 if test "${gl_cv_next_wctype_h+set}" = set; then :
18013 $as_echo_n "(cached) " >&6
18014 else
18015
18016 if test $ac_cv_header_wctype_h = yes; then
18017
18018
18019
18020
18021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18022 /* end confdefs.h. */
18023 #include <wctype.h>
18024 _ACEOF
18025 case "$host_os" in
18026 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18027 *) gl_absname_cpp="$ac_cpp" ;;
18028 esac
18029
18030 case "$host_os" in
18031 mingw*)
18032 gl_dirsep_regex='[/\\]'
18033 ;;
18034 *)
18035 gl_dirsep_regex='\/'
18036 ;;
18037 esac
18038 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18039 gl_header_literal_regex=`echo 'wctype.h' \
18040 | sed -e "$gl_make_literal_regex_sed"`
18041 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18042 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18043 s|^/[^/]|//&|
18044 p
18045 q
18046 }'
18047
18048 gl_cv_absolute_wctype_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18049 sed -n "$gl_absolute_header_sed"`
18050
18051 gl_header=$gl_cv_absolute_wctype_h
18052 gl_cv_next_wctype_h='"'$gl_header'"'
18053 else
18054 gl_cv_next_wctype_h='<'wctype.h'>'
18055 fi
18056
18057
18058 fi
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
18060 $as_echo "$gl_cv_next_wctype_h" >&6; }
18061 fi
18062 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
18063
18064 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18065 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18066 gl_next_as_first_directive='<'wctype.h'>'
18067 else
18068 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18069 gl_next_as_first_directive=$gl_cv_next_wctype_h
18070 fi
18071 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
18072
18073
18074
18075
18076 if test $ac_cv_header_wctype_h = yes; then
18077 if test $ac_cv_func_iswcntrl = yes; then
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
18079 $as_echo_n "checking whether iswcntrl works... " >&6; }
18080 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
18081 $as_echo_n "(cached) " >&6
18082 else
18083
18084 if test "$cross_compiling" = yes; then :
18085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18086 /* end confdefs.h. */
18087 #include <stdlib.h>
18088 #if __GNU_LIBRARY__ == 1
18089 Linux libc5 i18n is broken.
18090 #endif
18091 int
18092 main ()
18093 {
18094
18095 ;
18096 return 0;
18097 }
18098 _ACEOF
18099 if ac_fn_c_try_compile "$LINENO"; then :
18100 gl_cv_func_iswcntrl_works="guessing yes"
18101 else
18102 gl_cv_func_iswcntrl_works="guessing no"
18103 fi
18104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18105
18106 else
18107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18108 /* end confdefs.h. */
18109
18110 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18111 included before <wchar.h>.
18112 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18113 must be included before <wchar.h>. */
18114 #include <stddef.h>
18115 #include <stdio.h>
18116 #include <time.h>
18117 #include <wchar.h>
18118 #include <wctype.h>
18119 int main () { return iswprint ('x') == 0; }
18120
18121 _ACEOF
18122 if ac_fn_c_try_run "$LINENO"; then :
18123 gl_cv_func_iswcntrl_works=yes
18124 else
18125 gl_cv_func_iswcntrl_works=no
18126 fi
18127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18128 conftest.$ac_objext conftest.beam conftest.$ac_ext
18129 fi
18130
18131
18132 fi
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
18134 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
18135 fi
18136 HAVE_WCTYPE_H=1
18137 else
18138 HAVE_WCTYPE_H=0
18139 fi
18140
18141
18142 case "$gl_cv_func_iswcntrl_works" in
18143 *yes) REPLACE_ISWCNTRL=0 ;;
18144 *) REPLACE_ISWCNTRL=1 ;;
18145 esac
18146
18147
18148 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
18149 :
18150 fi
18151
18152 if test $REPLACE_ISWCNTRL = 1; then
18153 REPLACE_TOWLOWER=1
18154 else
18155 for ac_func in towlower
18156 do :
18157 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
18158 if test "x$ac_cv_func_towlower" = x""yes; then :
18159 cat >>confdefs.h <<_ACEOF
18160 #define HAVE_TOWLOWER 1
18161 _ACEOF
18162
18163 fi
18164 done
18165
18166 if test $ac_cv_func_towlower = yes; then
18167 REPLACE_TOWLOWER=0
18168 else
18169 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18170 included before <wchar.h>.
18171 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18172 must be included before <wchar.h>. */
18173 #include <stddef.h>
18174 #include <stdio.h>
18175 #include <time.h>
18176 #include <wchar.h>
18177 #if HAVE_WCTYPE_H
18178 # include <wctype.h>
18179 #endif
18180
18181 "
18182 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
18183 ac_have_decl=1
18184 else
18185 ac_have_decl=0
18186 fi
18187
18188 cat >>confdefs.h <<_ACEOF
18189 #define HAVE_DECL_TOWLOWER $ac_have_decl
18190 _ACEOF
18191
18192 if test $ac_cv_have_decl_towlower = yes; then
18193 REPLACE_TOWLOWER=1
18194 else
18195 REPLACE_TOWLOWER=0
18196 fi
18197 fi
18198 fi
18199
18200
18201 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
18202 :
18203 fi
18204
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
18206 $as_echo_n "checking for wctype_t... " >&6; }
18207 if test "${gl_cv_type_wctype_t+set}" = set; then :
18208 $as_echo_n "(cached) " >&6
18209 else
18210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18211 /* end confdefs.h. */
18212 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18213 included before <wchar.h>.
18214 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18215 must be included before <wchar.h>. */
18216 #include <stddef.h>
18217 #include <stdio.h>
18218 #include <time.h>
18219 #include <wchar.h>
18220 #if HAVE_WCTYPE_H
18221 # include <wctype.h>
18222 #endif
18223 wctype_t a;
18224
18225 int
18226 main ()
18227 {
18228
18229 ;
18230 return 0;
18231 }
18232 _ACEOF
18233 if ac_fn_c_try_compile "$LINENO"; then :
18234 gl_cv_type_wctype_t=yes
18235 else
18236 gl_cv_type_wctype_t=no
18237 fi
18238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18239
18240 fi
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
18242 $as_echo "$gl_cv_type_wctype_t" >&6; }
18243 if test $gl_cv_type_wctype_t = no; then
18244 HAVE_WCTYPE_T=0
18245 fi
18246
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
18248 $as_echo_n "checking for wctrans_t... " >&6; }
18249 if test "${gl_cv_type_wctrans_t+set}" = set; then :
18250 $as_echo_n "(cached) " >&6
18251 else
18252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18253 /* end confdefs.h. */
18254 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
18255 included before <wchar.h>.
18256 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
18257 must be included before <wchar.h>. */
18258 #include <stddef.h>
18259 #include <stdio.h>
18260 #include <time.h>
18261 #include <wchar.h>
18262 #include <wctype.h>
18263 wctrans_t a;
18264
18265 int
18266 main ()
18267 {
18268
18269 ;
18270 return 0;
18271 }
18272 _ACEOF
18273 if ac_fn_c_try_compile "$LINENO"; then :
18274 gl_cv_type_wctrans_t=yes
18275 else
18276 gl_cv_type_wctrans_t=no
18277 fi
18278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18279
18280 fi
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
18282 $as_echo "$gl_cv_type_wctrans_t" >&6; }
18283 if test $gl_cv_type_wctrans_t = no; then
18284 HAVE_WCTRANS_T=0
18285 fi
18286
18287
18288 for gl_func in wctype iswctype wctrans towctrans ; do
18289 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
18291 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
18292 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
18293 $as_echo_n "(cached) " >&6
18294 else
18295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18296 /* end confdefs.h. */
18297
18298 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18299 <wchar.h>.
18300 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18301 included before <wchar.h>. */
18302 #if !(defined __GLIBC__ && !defined __UCLIBC__)
18303 # include <stddef.h>
18304 # include <stdio.h>
18305 # include <time.h>
18306 # include <wchar.h>
18307 #endif
18308 #include <wctype.h>
18309
18310 int
18311 main ()
18312 {
18313 #undef $gl_func
18314 (void) $gl_func;
18315 ;
18316 return 0;
18317 }
18318 _ACEOF
18319 if ac_fn_c_try_compile "$LINENO"; then :
18320 eval "$as_gl_Symbol=yes"
18321 else
18322 eval "$as_gl_Symbol=no"
18323 fi
18324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18325 fi
18326 eval ac_res=\$$as_gl_Symbol
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18328 $as_echo "$ac_res" >&6; }
18329 eval as_val=\$$as_gl_Symbol
18330 if test "x$as_val" = x""yes; then :
18331 cat >>confdefs.h <<_ACEOF
18332 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
18333 _ACEOF
18334
18335 eval ac_cv_have_decl_$gl_func=yes
18336 fi
18337 done
18338
18339
18340 # End of code from modules
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350 gltests_libdeps=
18351 gltests_ltlibdeps=
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361 gl_source_base='tests'
18362 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
18363
18364 gl_module_indicator_condition=$gltests_WITNESS
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374 LIBGNU_LIBDEPS="$gl_libdeps"
18375
18376 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
18377
18378
18379
18380 # We don't use automake, but gnulib does. This line lets us generate
18381 # its Makefile.in.
18382 am__api_version='1.11'
18383
18384 # Find a good install program. We prefer a C program (faster),
18385 # so one script is as good as another. But avoid the broken or
18386 # incompatible versions:
18387 # SysV /etc/install, /usr/sbin/install
18388 # SunOS /usr/etc/install
18389 # IRIX /sbin/install
18390 # AIX /bin/install
18391 # AmigaOS /C/install, which installs bootblocks on floppy discs
18392 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18393 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
18394 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18395 # OS/2's system install, which has a completely different semantic
18396 # ./install, which can be erroneously created by make from ./install.sh.
18397 # Reject install programs that cannot install multiple files.
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
18399 $as_echo_n "checking for a BSD-compatible install... " >&6; }
18400 if test -z "$INSTALL"; then
18401 if test "${ac_cv_path_install+set}" = set; then :
18402 $as_echo_n "(cached) " >&6
18403 else
18404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18405 for as_dir in $PATH
18406 do
18407 IFS=$as_save_IFS
18408 test -z "$as_dir" && as_dir=.
18409 # Account for people who put trailing slashes in PATH elements.
18410 case $as_dir/ in #((
18411 ./ | .// | /[cC]/* | \
18412 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18413 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
18414 /usr/ucb/* ) ;;
18415 *)
18416 # OSF1 and SCO ODT 3.0 have their own names for install.
18417 # Don't use installbsd from OSF since it installs stuff as root
18418 # by default.
18419 for ac_prog in ginstall scoinst install; do
18420 for ac_exec_ext in '' $ac_executable_extensions; do
18421 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
18422 if test $ac_prog = install &&
18423 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18424 # AIX install. It has an incompatible calling convention.
18425 :
18426 elif test $ac_prog = install &&
18427 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18428 # program-specific install script used by HP pwplus--don't use.
18429 :
18430 else
18431 rm -rf conftest.one conftest.two conftest.dir
18432 echo one > conftest.one
18433 echo two > conftest.two
18434 mkdir conftest.dir
18435 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
18436 test -s conftest.one && test -s conftest.two &&
18437 test -s conftest.dir/conftest.one &&
18438 test -s conftest.dir/conftest.two
18439 then
18440 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18441 break 3
18442 fi
18443 fi
18444 fi
18445 done
18446 done
18447 ;;
18448 esac
18449
18450 done
18451 IFS=$as_save_IFS
18452
18453 rm -rf conftest.one conftest.two conftest.dir
18454
18455 fi
18456 if test "${ac_cv_path_install+set}" = set; then
18457 INSTALL=$ac_cv_path_install
18458 else
18459 # As a last resort, use the slow shell script. Don't cache a
18460 # value for INSTALL within a source directory, because that will
18461 # break other packages using the cache if that directory is
18462 # removed, or if the value is a relative name.
18463 INSTALL=$ac_install_sh
18464 fi
18465 fi
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
18467 $as_echo "$INSTALL" >&6; }
18468
18469 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18470 # It thinks the first close brace ends the variable substitution.
18471 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18472
18473 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18474
18475 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18476
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
18478 $as_echo_n "checking whether build environment is sane... " >&6; }
18479 # Just in case
18480 sleep 1
18481 echo timestamp > conftest.file
18482 # Reject unsafe characters in $srcdir or the absolute working directory
18483 # name. Accept space and tab only in the latter.
18484 am_lf='
18485 '
18486 case `pwd` in
18487 *[\\\"\#\$\&\'\`$am_lf]*)
18488 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
18489 esac
18490 case $srcdir in
18491 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
18492 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
18493 esac
18494
18495 # Do `set' in a subshell so we don't clobber the current shell's
18496 # arguments. Must try -L first in case configure is actually a
18497 # symlink; some systems play weird games with the mod time of symlinks
18498 # (eg FreeBSD returns the mod time of the symlink's containing
18499 # directory).
18500 if (
18501 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
18502 if test "$*" = "X"; then
18503 # -L didn't work.
18504 set X `ls -t "$srcdir/configure" conftest.file`
18505 fi
18506 rm -f conftest.file
18507 if test "$*" != "X $srcdir/configure conftest.file" \
18508 && test "$*" != "X conftest.file $srcdir/configure"; then
18509
18510 # If neither matched, then we have a broken ls. This can happen
18511 # if, for instance, CONFIG_SHELL is bash and it inherits a
18512 # broken ls alias from the environment. This has actually
18513 # happened. Such a system could not be considered "sane".
18514 as_fn_error "ls -t appears to fail. Make sure there is not a broken
18515 alias in your environment" "$LINENO" 5
18516 fi
18517
18518 test "$2" = conftest.file
18519 )
18520 then
18521 # Ok.
18522 :
18523 else
18524 as_fn_error "newly created file is older than distributed files!
18525 Check your system clock" "$LINENO" 5
18526 fi
18527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18528 $as_echo "yes" >&6; }
18529 test "$program_prefix" != NONE &&
18530 program_transform_name="s&^&$program_prefix&;$program_transform_name"
18531 # Use a double $ so make ignores it.
18532 test "$program_suffix" != NONE &&
18533 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
18534 # Double any \ or $.
18535 # By default was `s,x,x', remove it if useless.
18536 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
18537 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
18538
18539 # expand $ac_aux_dir to an absolute path
18540 am_aux_dir=`cd $ac_aux_dir && pwd`
18541
18542 if test x"${MISSING+set}" != xset; then
18543 case $am_aux_dir in
18544 *\ * | *\ *)
18545 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
18546 *)
18547 MISSING="\${SHELL} $am_aux_dir/missing" ;;
18548 esac
18549 fi
18550 # Use eval to expand $SHELL
18551 if eval "$MISSING --run true"; then
18552 am_missing_run="$MISSING --run "
18553 else
18554 am_missing_run=
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
18556 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
18557 fi
18558
18559 if test x"${install_sh}" != xset; then
18560 case $am_aux_dir in
18561 *\ * | *\ *)
18562 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
18563 *)
18564 install_sh="\${SHELL} $am_aux_dir/install-sh"
18565 esac
18566 fi
18567
18568 # Installed binaries are usually stripped using `strip' when the user
18569 # run `make install-strip'. However `strip' might not be the right
18570 # tool to use in cross-compilation environments, therefore Automake
18571 # will honor the `STRIP' environment variable to overrule this program.
18572 if test "$cross_compiling" != no; then
18573 if test -n "$ac_tool_prefix"; then
18574 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
18575 set dummy ${ac_tool_prefix}strip; ac_word=$2
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18577 $as_echo_n "checking for $ac_word... " >&6; }
18578 if test "${ac_cv_prog_STRIP+set}" = set; then :
18579 $as_echo_n "(cached) " >&6
18580 else
18581 if test -n "$STRIP"; then
18582 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
18583 else
18584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18585 for as_dir in $PATH
18586 do
18587 IFS=$as_save_IFS
18588 test -z "$as_dir" && as_dir=.
18589 for ac_exec_ext in '' $ac_executable_extensions; do
18590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18591 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
18592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18593 break 2
18594 fi
18595 done
18596 done
18597 IFS=$as_save_IFS
18598
18599 fi
18600 fi
18601 STRIP=$ac_cv_prog_STRIP
18602 if test -n "$STRIP"; then
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
18604 $as_echo "$STRIP" >&6; }
18605 else
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18607 $as_echo "no" >&6; }
18608 fi
18609
18610
18611 fi
18612 if test -z "$ac_cv_prog_STRIP"; then
18613 ac_ct_STRIP=$STRIP
18614 # Extract the first word of "strip", so it can be a program name with args.
18615 set dummy strip; ac_word=$2
18616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18617 $as_echo_n "checking for $ac_word... " >&6; }
18618 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
18619 $as_echo_n "(cached) " >&6
18620 else
18621 if test -n "$ac_ct_STRIP"; then
18622 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
18623 else
18624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18625 for as_dir in $PATH
18626 do
18627 IFS=$as_save_IFS
18628 test -z "$as_dir" && as_dir=.
18629 for ac_exec_ext in '' $ac_executable_extensions; do
18630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18631 ac_cv_prog_ac_ct_STRIP="strip"
18632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18633 break 2
18634 fi
18635 done
18636 done
18637 IFS=$as_save_IFS
18638
18639 fi
18640 fi
18641 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
18642 if test -n "$ac_ct_STRIP"; then
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
18644 $as_echo "$ac_ct_STRIP" >&6; }
18645 else
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18647 $as_echo "no" >&6; }
18648 fi
18649
18650 if test "x$ac_ct_STRIP" = x; then
18651 STRIP=":"
18652 else
18653 case $cross_compiling:$ac_tool_warned in
18654 yes:)
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18657 ac_tool_warned=yes ;;
18658 esac
18659 STRIP=$ac_ct_STRIP
18660 fi
18661 else
18662 STRIP="$ac_cv_prog_STRIP"
18663 fi
18664
18665 fi
18666 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
18667
18668 mkdir_p="$MKDIR_P"
18669 case $mkdir_p in
18670 [\\/$]* | ?:[\\/]*) ;;
18671 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
18672 esac
18673
18674 for ac_prog in gawk mawk nawk awk
18675 do
18676 # Extract the first word of "$ac_prog", so it can be a program name with args.
18677 set dummy $ac_prog; ac_word=$2
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18679 $as_echo_n "checking for $ac_word... " >&6; }
18680 if test "${ac_cv_prog_AWK+set}" = set; then :
18681 $as_echo_n "(cached) " >&6
18682 else
18683 if test -n "$AWK"; then
18684 ac_cv_prog_AWK="$AWK" # Let the user override the test.
18685 else
18686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18687 for as_dir in $PATH
18688 do
18689 IFS=$as_save_IFS
18690 test -z "$as_dir" && as_dir=.
18691 for ac_exec_ext in '' $ac_executable_extensions; do
18692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18693 ac_cv_prog_AWK="$ac_prog"
18694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18695 break 2
18696 fi
18697 done
18698 done
18699 IFS=$as_save_IFS
18700
18701 fi
18702 fi
18703 AWK=$ac_cv_prog_AWK
18704 if test -n "$AWK"; then
18705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
18706 $as_echo "$AWK" >&6; }
18707 else
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18709 $as_echo "no" >&6; }
18710 fi
18711
18712
18713 test -n "$AWK" && break
18714 done
18715
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18717 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
18718 set x ${MAKE-make}
18719 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
18720 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
18721 $as_echo_n "(cached) " >&6
18722 else
18723 cat >conftest.make <<\_ACEOF
18724 SHELL = /bin/sh
18725 all:
18726 @echo '@@@%%%=$(MAKE)=@@@%%%'
18727 _ACEOF
18728 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18729 case `${MAKE-make} -f conftest.make 2>/dev/null` in
18730 *@@@%%%=?*=@@@%%%*)
18731 eval ac_cv_prog_make_${ac_make}_set=yes;;
18732 *)
18733 eval ac_cv_prog_make_${ac_make}_set=no;;
18734 esac
18735 rm -f conftest.make
18736 fi
18737 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18739 $as_echo "yes" >&6; }
18740 SET_MAKE=
18741 else
18742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18743 $as_echo "no" >&6; }
18744 SET_MAKE="MAKE=${MAKE-make}"
18745 fi
18746
18747 rm -rf .tst 2>/dev/null
18748 mkdir .tst 2>/dev/null
18749 if test -d .tst; then
18750 am__leading_dot=.
18751 else
18752 am__leading_dot=_
18753 fi
18754 rmdir .tst 2>/dev/null
18755
18756 DEPDIR="${am__leading_dot}deps"
18757
18758 ac_config_commands="$ac_config_commands depfiles"
18759
18760
18761 am_make=${MAKE-make}
18762 cat > confinc << 'END'
18763 am__doit:
18764 @echo this is the am__doit target
18765 .PHONY: am__doit
18766 END
18767 # If we don't find an include directive, just comment out the code.
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
18769 $as_echo_n "checking for style of include used by $am_make... " >&6; }
18770 am__include="#"
18771 am__quote=
18772 _am_result=none
18773 # First try GNU make style include.
18774 echo "include confinc" > confmf
18775 # Ignore all kinds of additional output from `make'.
18776 case `$am_make -s -f confmf 2> /dev/null` in #(
18777 *the\ am__doit\ target*)
18778 am__include=include
18779 am__quote=
18780 _am_result=GNU
18781 ;;
18782 esac
18783 # Now try BSD make style include.
18784 if test "$am__include" = "#"; then
18785 echo '.include "confinc"' > confmf
18786 case `$am_make -s -f confmf 2> /dev/null` in #(
18787 *the\ am__doit\ target*)
18788 am__include=.include
18789 am__quote="\""
18790 _am_result=BSD
18791 ;;
18792 esac
18793 fi
18794
18795
18796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
18797 $as_echo "$_am_result" >&6; }
18798 rm -f confinc confmf
18799
18800 # Check whether --enable-dependency-tracking was given.
18801 if test "${enable_dependency_tracking+set}" = set; then :
18802 enableval=$enable_dependency_tracking;
18803 fi
18804
18805 if test "x$enable_dependency_tracking" != xno; then
18806 am_depcomp="$ac_aux_dir/depcomp"
18807 AMDEPBACKSLASH='\'
18808 fi
18809 if test "x$enable_dependency_tracking" != xno; then
18810 AMDEP_TRUE=
18811 AMDEP_FALSE='#'
18812 else
18813 AMDEP_TRUE='#'
18814 AMDEP_FALSE=
18815 fi
18816
18817
18818 if test "`cd $srcdir && pwd`" != "`pwd`"; then
18819 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
18820 # is not polluted with repeated "-I."
18821 am__isrc=' -I$(srcdir)'
18822 # test to see if srcdir already configured
18823 if test -f $srcdir/config.status; then
18824 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
18825 fi
18826 fi
18827
18828 # test whether we have cygpath
18829 if test -z "$CYGPATH_W"; then
18830 if (cygpath --version) >/dev/null 2>/dev/null; then
18831 CYGPATH_W='cygpath -w'
18832 else
18833 CYGPATH_W=echo
18834 fi
18835 fi
18836
18837
18838 # Define the identity of the package.
18839 PACKAGE=libgnu
18840 VERSION=UNUSED-VERSION
18841
18842
18843 # Some tools Automake needs.
18844
18845 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
18846
18847
18848 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
18849
18850
18851 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
18852
18853
18854 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
18855
18856
18857 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
18858
18859 # We need awk for the "check" target. The system "awk" is bad on
18860 # some platforms.
18861 # Always define AMTAR for backward compatibility.
18862
18863 AMTAR=${AMTAR-"${am_missing_run}tar"}
18864
18865 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
18866
18867
18868
18869
18870 depcc="$CC" am_compiler_list=
18871
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
18873 $as_echo_n "checking dependency style of $depcc... " >&6; }
18874 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
18875 $as_echo_n "(cached) " >&6
18876 else
18877 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
18878 # We make a subdir and do the tests there. Otherwise we can end up
18879 # making bogus files that we don't know about and never remove. For
18880 # instance it was reported that on HP-UX the gcc test will end up
18881 # making a dummy file named `D' -- because `-MD' means `put the output
18882 # in D'.
18883 mkdir conftest.dir
18884 # Copy depcomp to subdir because otherwise we won't find it if we're
18885 # using a relative directory.
18886 cp "$am_depcomp" conftest.dir
18887 cd conftest.dir
18888 # We will build objects and dependencies in a subdirectory because
18889 # it helps to detect inapplicable dependency modes. For instance
18890 # both Tru64's cc and ICC support -MD to output dependencies as a
18891 # side effect of compilation, but ICC will put the dependencies in
18892 # the current directory while Tru64 will put them in the object
18893 # directory.
18894 mkdir sub
18895
18896 am_cv_CC_dependencies_compiler_type=none
18897 if test "$am_compiler_list" = ""; then
18898 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
18899 fi
18900 am__universal=false
18901 case " $depcc " in #(
18902 *\ -arch\ *\ -arch\ *) am__universal=true ;;
18903 esac
18904
18905 for depmode in $am_compiler_list; do
18906 # Setup a source with many dependencies, because some compilers
18907 # like to wrap large dependency lists on column 80 (with \), and
18908 # we should not choose a depcomp mode which is confused by this.
18909 #
18910 # We need to recreate these files for each test, as the compiler may
18911 # overwrite some of them when testing with obscure command lines.
18912 # This happens at least with the AIX C compiler.
18913 : > sub/conftest.c
18914 for i in 1 2 3 4 5 6; do
18915 echo '#include "conftst'$i'.h"' >> sub/conftest.c
18916 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
18917 # Solaris 8's {/usr,}/bin/sh.
18918 touch sub/conftst$i.h
18919 done
18920 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
18921
18922 # We check with `-c' and `-o' for the sake of the "dashmstdout"
18923 # mode. It turns out that the SunPro C++ compiler does not properly
18924 # handle `-M -o', and we need to detect this. Also, some Intel
18925 # versions had trouble with output in subdirs
18926 am__obj=sub/conftest.${OBJEXT-o}
18927 am__minus_obj="-o $am__obj"
18928 case $depmode in
18929 gcc)
18930 # This depmode causes a compiler race in universal mode.
18931 test "$am__universal" = false || continue
18932 ;;
18933 nosideeffect)
18934 # after this tag, mechanisms are not by side-effect, so they'll
18935 # only be used when explicitly requested
18936 if test "x$enable_dependency_tracking" = xyes; then
18937 continue
18938 else
18939 break
18940 fi
18941 ;;
18942 msvisualcpp | msvcmsys)
18943 # This compiler won't grok `-c -o', but also, the minuso test has
18944 # not run yet. These depmodes are late enough in the game, and
18945 # so weak that their functioning should not be impacted.
18946 am__obj=conftest.${OBJEXT-o}
18947 am__minus_obj=
18948 ;;
18949 none) break ;;
18950 esac
18951 if depmode=$depmode \
18952 source=sub/conftest.c object=$am__obj \
18953 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
18954 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
18955 >/dev/null 2>conftest.err &&
18956 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
18957 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
18958 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
18959 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
18960 # icc doesn't choke on unknown options, it will just issue warnings
18961 # or remarks (even with -Werror). So we grep stderr for any message
18962 # that says an option was ignored or not supported.
18963 # When given -MP, icc 7.0 and 7.1 complain thusly:
18964 # icc: Command line warning: ignoring option '-M'; no argument required
18965 # The diagnosis changed in icc 8.0:
18966 # icc: Command line remark: option '-MP' not supported
18967 if (grep 'ignoring option' conftest.err ||
18968 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
18969 am_cv_CC_dependencies_compiler_type=$depmode
18970 break
18971 fi
18972 fi
18973 done
18974
18975 cd ..
18976 rm -rf conftest.dir
18977 else
18978 am_cv_CC_dependencies_compiler_type=none
18979 fi
18980
18981 fi
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
18983 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
18984 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
18985
18986 if
18987 test "x$enable_dependency_tracking" != xno \
18988 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
18989 am__fastdepCC_TRUE=
18990 am__fastdepCC_FALSE='#'
18991 else
18992 am__fastdepCC_TRUE='#'
18993 am__fastdepCC_FALSE=
18994 fi
18995
18996
18997
18998
18999 # --------------------- #
19000 # Checks for programs. #
19001 # --------------------- #
19002
19003
19004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
19005 $as_echo_n "checking whether ln -s works... " >&6; }
19006 LN_S=$as_ln_s
19007 if test "$LN_S" = "ln -s"; then
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19009 $as_echo "yes" >&6; }
19010 else
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
19012 $as_echo "no, using $LN_S" >&6; }
19013 fi
19014
19015 if test -n "$ac_tool_prefix"; then
19016 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19017 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19019 $as_echo_n "checking for $ac_word... " >&6; }
19020 if test "${ac_cv_prog_RANLIB+set}" = set; then :
19021 $as_echo_n "(cached) " >&6
19022 else
19023 if test -n "$RANLIB"; then
19024 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19025 else
19026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19027 for as_dir in $PATH
19028 do
19029 IFS=$as_save_IFS
19030 test -z "$as_dir" && as_dir=.
19031 for ac_exec_ext in '' $ac_executable_extensions; do
19032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19033 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19035 break 2
19036 fi
19037 done
19038 done
19039 IFS=$as_save_IFS
19040
19041 fi
19042 fi
19043 RANLIB=$ac_cv_prog_RANLIB
19044 if test -n "$RANLIB"; then
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19046 $as_echo "$RANLIB" >&6; }
19047 else
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19049 $as_echo "no" >&6; }
19050 fi
19051
19052
19053 fi
19054 if test -z "$ac_cv_prog_RANLIB"; then
19055 ac_ct_RANLIB=$RANLIB
19056 # Extract the first word of "ranlib", so it can be a program name with args.
19057 set dummy ranlib; ac_word=$2
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19059 $as_echo_n "checking for $ac_word... " >&6; }
19060 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
19061 $as_echo_n "(cached) " >&6
19062 else
19063 if test -n "$ac_ct_RANLIB"; then
19064 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19065 else
19066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19067 for as_dir in $PATH
19068 do
19069 IFS=$as_save_IFS
19070 test -z "$as_dir" && as_dir=.
19071 for ac_exec_ext in '' $ac_executable_extensions; do
19072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19073 ac_cv_prog_ac_ct_RANLIB="ranlib"
19074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19075 break 2
19076 fi
19077 done
19078 done
19079 IFS=$as_save_IFS
19080
19081 fi
19082 fi
19083 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19084 if test -n "$ac_ct_RANLIB"; then
19085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19086 $as_echo "$ac_ct_RANLIB" >&6; }
19087 else
19088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19089 $as_echo "no" >&6; }
19090 fi
19091
19092 if test "x$ac_ct_RANLIB" = x; then
19093 RANLIB=":"
19094 else
19095 case $cross_compiling:$ac_tool_warned in
19096 yes:)
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19099 ac_tool_warned=yes ;;
19100 esac
19101 RANLIB=$ac_ct_RANLIB
19102 fi
19103 else
19104 RANLIB="$ac_cv_prog_RANLIB"
19105 fi
19106
19107
19108 if test -n "$ac_tool_prefix"; then
19109 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19110 set dummy ${ac_tool_prefix}ar; ac_word=$2
19111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19112 $as_echo_n "checking for $ac_word... " >&6; }
19113 if test "${ac_cv_prog_AR+set}" = set; then :
19114 $as_echo_n "(cached) " >&6
19115 else
19116 if test -n "$AR"; then
19117 ac_cv_prog_AR="$AR" # Let the user override the test.
19118 else
19119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19120 for as_dir in $PATH
19121 do
19122 IFS=$as_save_IFS
19123 test -z "$as_dir" && as_dir=.
19124 for ac_exec_ext in '' $ac_executable_extensions; do
19125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19126 ac_cv_prog_AR="${ac_tool_prefix}ar"
19127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19128 break 2
19129 fi
19130 done
19131 done
19132 IFS=$as_save_IFS
19133
19134 fi
19135 fi
19136 AR=$ac_cv_prog_AR
19137 if test -n "$AR"; then
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
19139 $as_echo "$AR" >&6; }
19140 else
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19142 $as_echo "no" >&6; }
19143 fi
19144
19145
19146 fi
19147 if test -z "$ac_cv_prog_AR"; then
19148 ac_ct_AR=$AR
19149 # Extract the first word of "ar", so it can be a program name with args.
19150 set dummy ar; ac_word=$2
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19152 $as_echo_n "checking for $ac_word... " >&6; }
19153 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
19154 $as_echo_n "(cached) " >&6
19155 else
19156 if test -n "$ac_ct_AR"; then
19157 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
19158 else
19159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19160 for as_dir in $PATH
19161 do
19162 IFS=$as_save_IFS
19163 test -z "$as_dir" && as_dir=.
19164 for ac_exec_ext in '' $ac_executable_extensions; do
19165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19166 ac_cv_prog_ac_ct_AR="ar"
19167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19168 break 2
19169 fi
19170 done
19171 done
19172 IFS=$as_save_IFS
19173
19174 fi
19175 fi
19176 ac_ct_AR=$ac_cv_prog_ac_ct_AR
19177 if test -n "$ac_ct_AR"; then
19178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
19179 $as_echo "$ac_ct_AR" >&6; }
19180 else
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19182 $as_echo "no" >&6; }
19183 fi
19184
19185 if test "x$ac_ct_AR" = x; then
19186 AR=""
19187 else
19188 case $cross_compiling:$ac_tool_warned in
19189 yes:)
19190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19192 ac_tool_warned=yes ;;
19193 esac
19194 AR=$ac_ct_AR
19195 fi
19196 else
19197 AR="$ac_cv_prog_AR"
19198 fi
19199
19200
19201 # ---------------------- #
19202 # Checks for libraries. #
19203 # ---------------------- #
19204
19205 ac_config_files="$ac_config_files Makefile import/Makefile"
19206
19207 ac_config_commands="$ac_config_commands default"
19208
19209 cat >confcache <<\_ACEOF
19210 # This file is a shell script that caches the results of configure
19211 # tests run on this system so they can be shared between configure
19212 # scripts and configure runs, see configure's option --config-cache.
19213 # It is not useful on other systems. If it contains results you don't
19214 # want to keep, you may remove or edit it.
19215 #
19216 # config.status only pays attention to the cache file if you give it
19217 # the --recheck option to rerun configure.
19218 #
19219 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19220 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19221 # following values.
19222
19223 _ACEOF
19224
19225 # The following way of writing the cache mishandles newlines in values,
19226 # but we know of no workaround that is simple, portable, and efficient.
19227 # So, we kill variables containing newlines.
19228 # Ultrix sh set writes to stderr and can't be redirected directly,
19229 # and sets the high bit in the cache file unless we assign to the vars.
19230 (
19231 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19232 eval ac_val=\$$ac_var
19233 case $ac_val in #(
19234 *${as_nl}*)
19235 case $ac_var in #(
19236 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19237 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19238 esac
19239 case $ac_var in #(
19240 _ | IFS | as_nl) ;; #(
19241 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19242 *) { eval $ac_var=; unset $ac_var;} ;;
19243 esac ;;
19244 esac
19245 done
19246
19247 (set) 2>&1 |
19248 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19249 *${as_nl}ac_space=\ *)
19250 # `set' does not quote correctly, so add quotes: double-quote
19251 # substitution turns \\\\ into \\, and sed turns \\ into \.
19252 sed -n \
19253 "s/'/'\\\\''/g;
19254 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19255 ;; #(
19256 *)
19257 # `set' quotes correctly as required by POSIX, so do not add quotes.
19258 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19259 ;;
19260 esac |
19261 sort
19262 ) |
19263 sed '
19264 /^ac_cv_env_/b end
19265 t clear
19266 :clear
19267 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19268 t end
19269 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19270 :end' >>confcache
19271 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19272 if test -w "$cache_file"; then
19273 test "x$cache_file" != "x/dev/null" &&
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19275 $as_echo "$as_me: updating cache $cache_file" >&6;}
19276 cat confcache >$cache_file
19277 else
19278 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19279 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19280 fi
19281 fi
19282 rm -f confcache
19283
19284 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19285 # Let make expand exec_prefix.
19286 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19287
19288 DEFS=-DHAVE_CONFIG_H
19289
19290 ac_libobjs=
19291 ac_ltlibobjs=
19292 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19293 # 1. Remove the extension, and $U if already installed.
19294 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19295 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19296 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19297 # will be set to the directory where LIBOBJS objects are built.
19298 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19299 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19300 done
19301 LIBOBJS=$ac_libobjs
19302
19303 LTLIBOBJS=$ac_ltlibobjs
19304
19305
19306 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19307 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
19308 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19309 fi
19310 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
19311 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
19312 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19313 fi
19314 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
19315 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
19316 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19317 fi
19318 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
19319 as_fn_error "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
19320 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19321 fi
19322 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
19323 as_fn_error "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
19324 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19325 fi
19326 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
19327 as_fn_error "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
19328 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19329 fi
19330 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
19331 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
19332 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19333 fi
19334
19335
19336 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
19337 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
19338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19339 fi
19340 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
19341 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
19342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19343 fi
19344
19345 gl_libobjs=
19346 gl_ltlibobjs=
19347 if test -n "$gl_LIBOBJS"; then
19348 # Remove the extension.
19349 sed_drop_objext='s/\.o$//;s/\.obj$//'
19350 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19351 gl_libobjs="$gl_libobjs $i.$ac_objext"
19352 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
19353 done
19354 fi
19355 gl_LIBOBJS=$gl_libobjs
19356
19357 gl_LTLIBOBJS=$gl_ltlibobjs
19358
19359
19360
19361 gltests_libobjs=
19362 gltests_ltlibobjs=
19363 if test -n "$gltests_LIBOBJS"; then
19364 # Remove the extension.
19365 sed_drop_objext='s/\.o$//;s/\.obj$//'
19366 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19367 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
19368 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
19369 done
19370 fi
19371 gltests_LIBOBJS=$gltests_libobjs
19372
19373 gltests_LTLIBOBJS=$gltests_ltlibobjs
19374
19375
19376 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19377 as_fn_error "conditional \"AMDEP\" was never defined.
19378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19379 fi
19380 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19381 as_fn_error "conditional \"am__fastdepCC\" was never defined.
19382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19383 fi
19384 if test -n "$EXEEXT"; then
19385 am__EXEEXT_TRUE=
19386 am__EXEEXT_FALSE='#'
19387 else
19388 am__EXEEXT_TRUE='#'
19389 am__EXEEXT_FALSE=
19390 fi
19391
19392
19393 : ${CONFIG_STATUS=./config.status}
19394 ac_write_fail=0
19395 ac_clean_files_save=$ac_clean_files
19396 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19397 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19398 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19399 as_write_fail=0
19400 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19401 #! $SHELL
19402 # Generated by $as_me.
19403 # Run this file to recreate the current configuration.
19404 # Compiler output produced by configure, useful for debugging
19405 # configure, is in config.log if it exists.
19406
19407 debug=false
19408 ac_cs_recheck=false
19409 ac_cs_silent=false
19410
19411 SHELL=\${CONFIG_SHELL-$SHELL}
19412 export SHELL
19413 _ASEOF
19414 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19415 ## -------------------- ##
19416 ## M4sh Initialization. ##
19417 ## -------------------- ##
19418
19419 # Be more Bourne compatible
19420 DUALCASE=1; export DUALCASE # for MKS sh
19421 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19422 emulate sh
19423 NULLCMD=:
19424 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19425 # is contrary to our usage. Disable this feature.
19426 alias -g '${1+"$@"}'='"$@"'
19427 setopt NO_GLOB_SUBST
19428 else
19429 case `(set -o) 2>/dev/null` in #(
19430 *posix*) :
19431 set -o posix ;; #(
19432 *) :
19433 ;;
19434 esac
19435 fi
19436
19437
19438 as_nl='
19439 '
19440 export as_nl
19441 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19442 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19443 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19444 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19445 # Prefer a ksh shell builtin over an external printf program on Solaris,
19446 # but without wasting forks for bash or zsh.
19447 if test -z "$BASH_VERSION$ZSH_VERSION" \
19448 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19449 as_echo='print -r --'
19450 as_echo_n='print -rn --'
19451 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19452 as_echo='printf %s\n'
19453 as_echo_n='printf %s'
19454 else
19455 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19456 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19457 as_echo_n='/usr/ucb/echo -n'
19458 else
19459 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19460 as_echo_n_body='eval
19461 arg=$1;
19462 case $arg in #(
19463 *"$as_nl"*)
19464 expr "X$arg" : "X\\(.*\\)$as_nl";
19465 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19466 esac;
19467 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19468 '
19469 export as_echo_n_body
19470 as_echo_n='sh -c $as_echo_n_body as_echo'
19471 fi
19472 export as_echo_body
19473 as_echo='sh -c $as_echo_body as_echo'
19474 fi
19475
19476 # The user is always right.
19477 if test "${PATH_SEPARATOR+set}" != set; then
19478 PATH_SEPARATOR=:
19479 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19480 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19481 PATH_SEPARATOR=';'
19482 }
19483 fi
19484
19485
19486 # IFS
19487 # We need space, tab and new line, in precisely that order. Quoting is
19488 # there to prevent editors from complaining about space-tab.
19489 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19490 # splitting by setting IFS to empty value.)
19491 IFS=" "" $as_nl"
19492
19493 # Find who we are. Look in the path if we contain no directory separator.
19494 case $0 in #((
19495 *[\\/]* ) as_myself=$0 ;;
19496 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19497 for as_dir in $PATH
19498 do
19499 IFS=$as_save_IFS
19500 test -z "$as_dir" && as_dir=.
19501 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19502 done
19503 IFS=$as_save_IFS
19504
19505 ;;
19506 esac
19507 # We did not find ourselves, most probably we were run as `sh COMMAND'
19508 # in which case we are not to be found in the path.
19509 if test "x$as_myself" = x; then
19510 as_myself=$0
19511 fi
19512 if test ! -f "$as_myself"; then
19513 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19514 exit 1
19515 fi
19516
19517 # Unset variables that we do not need and which cause bugs (e.g. in
19518 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19519 # suppresses any "Segmentation fault" message there. '((' could
19520 # trigger a bug in pdksh 5.2.14.
19521 for as_var in BASH_ENV ENV MAIL MAILPATH
19522 do eval test x\${$as_var+set} = xset \
19523 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19524 done
19525 PS1='$ '
19526 PS2='> '
19527 PS4='+ '
19528
19529 # NLS nuisances.
19530 LC_ALL=C
19531 export LC_ALL
19532 LANGUAGE=C
19533 export LANGUAGE
19534
19535 # CDPATH.
19536 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19537
19538
19539 # as_fn_error ERROR [LINENO LOG_FD]
19540 # ---------------------------------
19541 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19542 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19543 # script with status $?, using 1 if that was 0.
19544 as_fn_error ()
19545 {
19546 as_status=$?; test $as_status -eq 0 && as_status=1
19547 if test "$3"; then
19548 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19549 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
19550 fi
19551 $as_echo "$as_me: error: $1" >&2
19552 as_fn_exit $as_status
19553 } # as_fn_error
19554
19555
19556 # as_fn_set_status STATUS
19557 # -----------------------
19558 # Set $? to STATUS, without forking.
19559 as_fn_set_status ()
19560 {
19561 return $1
19562 } # as_fn_set_status
19563
19564 # as_fn_exit STATUS
19565 # -----------------
19566 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19567 as_fn_exit ()
19568 {
19569 set +e
19570 as_fn_set_status $1
19571 exit $1
19572 } # as_fn_exit
19573
19574 # as_fn_unset VAR
19575 # ---------------
19576 # Portably unset VAR.
19577 as_fn_unset ()
19578 {
19579 { eval $1=; unset $1;}
19580 }
19581 as_unset=as_fn_unset
19582 # as_fn_append VAR VALUE
19583 # ----------------------
19584 # Append the text in VALUE to the end of the definition contained in VAR. Take
19585 # advantage of any shell optimizations that allow amortized linear growth over
19586 # repeated appends, instead of the typical quadratic growth present in naive
19587 # implementations.
19588 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19589 eval 'as_fn_append ()
19590 {
19591 eval $1+=\$2
19592 }'
19593 else
19594 as_fn_append ()
19595 {
19596 eval $1=\$$1\$2
19597 }
19598 fi # as_fn_append
19599
19600 # as_fn_arith ARG...
19601 # ------------------
19602 # Perform arithmetic evaluation on the ARGs, and store the result in the
19603 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19604 # must be portable across $(()) and expr.
19605 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19606 eval 'as_fn_arith ()
19607 {
19608 as_val=$(( $* ))
19609 }'
19610 else
19611 as_fn_arith ()
19612 {
19613 as_val=`expr "$@" || test $? -eq 1`
19614 }
19615 fi # as_fn_arith
19616
19617
19618 if expr a : '\(a\)' >/dev/null 2>&1 &&
19619 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19620 as_expr=expr
19621 else
19622 as_expr=false
19623 fi
19624
19625 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19626 as_basename=basename
19627 else
19628 as_basename=false
19629 fi
19630
19631 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19632 as_dirname=dirname
19633 else
19634 as_dirname=false
19635 fi
19636
19637 as_me=`$as_basename -- "$0" ||
19638 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19639 X"$0" : 'X\(//\)$' \| \
19640 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19641 $as_echo X/"$0" |
19642 sed '/^.*\/\([^/][^/]*\)\/*$/{
19643 s//\1/
19644 q
19645 }
19646 /^X\/\(\/\/\)$/{
19647 s//\1/
19648 q
19649 }
19650 /^X\/\(\/\).*/{
19651 s//\1/
19652 q
19653 }
19654 s/.*/./; q'`
19655
19656 # Avoid depending upon Character Ranges.
19657 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19658 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19659 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19660 as_cr_digits='0123456789'
19661 as_cr_alnum=$as_cr_Letters$as_cr_digits
19662
19663 ECHO_C= ECHO_N= ECHO_T=
19664 case `echo -n x` in #(((((
19665 -n*)
19666 case `echo 'xy\c'` in
19667 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19668 xy) ECHO_C='\c';;
19669 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19670 ECHO_T=' ';;
19671 esac;;
19672 *)
19673 ECHO_N='-n';;
19674 esac
19675
19676 rm -f conf$$ conf$$.exe conf$$.file
19677 if test -d conf$$.dir; then
19678 rm -f conf$$.dir/conf$$.file
19679 else
19680 rm -f conf$$.dir
19681 mkdir conf$$.dir 2>/dev/null
19682 fi
19683 if (echo >conf$$.file) 2>/dev/null; then
19684 if ln -s conf$$.file conf$$ 2>/dev/null; then
19685 as_ln_s='ln -s'
19686 # ... but there are two gotchas:
19687 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19688 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19689 # In both cases, we have to default to `cp -p'.
19690 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19691 as_ln_s='cp -p'
19692 elif ln conf$$.file conf$$ 2>/dev/null; then
19693 as_ln_s=ln
19694 else
19695 as_ln_s='cp -p'
19696 fi
19697 else
19698 as_ln_s='cp -p'
19699 fi
19700 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19701 rmdir conf$$.dir 2>/dev/null
19702
19703
19704 # as_fn_mkdir_p
19705 # -------------
19706 # Create "$as_dir" as a directory, including parents if necessary.
19707 as_fn_mkdir_p ()
19708 {
19709
19710 case $as_dir in #(
19711 -*) as_dir=./$as_dir;;
19712 esac
19713 test -d "$as_dir" || eval $as_mkdir_p || {
19714 as_dirs=
19715 while :; do
19716 case $as_dir in #(
19717 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19718 *) as_qdir=$as_dir;;
19719 esac
19720 as_dirs="'$as_qdir' $as_dirs"
19721 as_dir=`$as_dirname -- "$as_dir" ||
19722 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19723 X"$as_dir" : 'X\(//\)[^/]' \| \
19724 X"$as_dir" : 'X\(//\)$' \| \
19725 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19726 $as_echo X"$as_dir" |
19727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19728 s//\1/
19729 q
19730 }
19731 /^X\(\/\/\)[^/].*/{
19732 s//\1/
19733 q
19734 }
19735 /^X\(\/\/\)$/{
19736 s//\1/
19737 q
19738 }
19739 /^X\(\/\).*/{
19740 s//\1/
19741 q
19742 }
19743 s/.*/./; q'`
19744 test -d "$as_dir" && break
19745 done
19746 test -z "$as_dirs" || eval "mkdir $as_dirs"
19747 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
19748
19749
19750 } # as_fn_mkdir_p
19751 if mkdir -p . 2>/dev/null; then
19752 as_mkdir_p='mkdir -p "$as_dir"'
19753 else
19754 test -d ./-p && rmdir ./-p
19755 as_mkdir_p=false
19756 fi
19757
19758 if test -x / >/dev/null 2>&1; then
19759 as_test_x='test -x'
19760 else
19761 if ls -dL / >/dev/null 2>&1; then
19762 as_ls_L_option=L
19763 else
19764 as_ls_L_option=
19765 fi
19766 as_test_x='
19767 eval sh -c '\''
19768 if test -d "$1"; then
19769 test -d "$1/.";
19770 else
19771 case $1 in #(
19772 -*)set "./$1";;
19773 esac;
19774 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19775 ???[sx]*):;;*)false;;esac;fi
19776 '\'' sh
19777 '
19778 fi
19779 as_executable_p=$as_test_x
19780
19781 # Sed expression to map a string onto a valid CPP name.
19782 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19783
19784 # Sed expression to map a string onto a valid variable name.
19785 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19786
19787
19788 exec 6>&1
19789 ## ----------------------------------- ##
19790 ## Main body of $CONFIG_STATUS script. ##
19791 ## ----------------------------------- ##
19792 _ASEOF
19793 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19794
19795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19796 # Save the log message, to keep $0 and so on meaningful, and to
19797 # report actual input values of CONFIG_FILES etc. instead of their
19798 # values after options handling.
19799 ac_log="
19800 This file was extended by $as_me, which was
19801 generated by GNU Autoconf 2.64. Invocation command line was
19802
19803 CONFIG_FILES = $CONFIG_FILES
19804 CONFIG_HEADERS = $CONFIG_HEADERS
19805 CONFIG_LINKS = $CONFIG_LINKS
19806 CONFIG_COMMANDS = $CONFIG_COMMANDS
19807 $ $0 $@
19808
19809 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19810 "
19811
19812 _ACEOF
19813
19814 case $ac_config_files in *"
19815 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19816 esac
19817
19818 case $ac_config_headers in *"
19819 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19820 esac
19821
19822
19823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19824 # Files that config.status was made for.
19825 config_files="$ac_config_files"
19826 config_headers="$ac_config_headers"
19827 config_commands="$ac_config_commands"
19828
19829 _ACEOF
19830
19831 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19832 ac_cs_usage="\
19833 \`$as_me' instantiates files and other configuration actions
19834 from templates according to the current configuration. Unless the files
19835 and actions are specified as TAGs, all are instantiated by default.
19836
19837 Usage: $0 [OPTION]... [TAG]...
19838
19839 -h, --help print this help, then exit
19840 -V, --version print version number and configuration settings, then exit
19841 -q, --quiet, --silent
19842 do not print progress messages
19843 -d, --debug don't remove temporary files
19844 --recheck update $as_me by reconfiguring in the same conditions
19845 --file=FILE[:TEMPLATE]
19846 instantiate the configuration file FILE
19847 --header=FILE[:TEMPLATE]
19848 instantiate the configuration header FILE
19849
19850 Configuration files:
19851 $config_files
19852
19853 Configuration headers:
19854 $config_headers
19855
19856 Configuration commands:
19857 $config_commands
19858
19859 Report bugs to the package provider."
19860
19861 _ACEOF
19862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19863 ac_cs_version="\\
19864 config.status
19865 configured by $0, generated by GNU Autoconf 2.64,
19866 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19867
19868 Copyright (C) 2009 Free Software Foundation, Inc.
19869 This config.status script is free software; the Free Software Foundation
19870 gives unlimited permission to copy, distribute and modify it."
19871
19872 ac_pwd='$ac_pwd'
19873 srcdir='$srcdir'
19874 INSTALL='$INSTALL'
19875 MKDIR_P='$MKDIR_P'
19876 AWK='$AWK'
19877 test -n "\$AWK" || AWK=awk
19878 _ACEOF
19879
19880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19881 # The default lists apply if the user does not specify any file.
19882 ac_need_defaults=:
19883 while test $# != 0
19884 do
19885 case $1 in
19886 --*=*)
19887 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19888 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19889 ac_shift=:
19890 ;;
19891 *)
19892 ac_option=$1
19893 ac_optarg=$2
19894 ac_shift=shift
19895 ;;
19896 esac
19897
19898 case $ac_option in
19899 # Handling of the options.
19900 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19901 ac_cs_recheck=: ;;
19902 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19903 $as_echo "$ac_cs_version"; exit ;;
19904 --debug | --debu | --deb | --de | --d | -d )
19905 debug=: ;;
19906 --file | --fil | --fi | --f )
19907 $ac_shift
19908 case $ac_optarg in
19909 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19910 esac
19911 as_fn_append CONFIG_FILES " '$ac_optarg'"
19912 ac_need_defaults=false;;
19913 --header | --heade | --head | --hea )
19914 $ac_shift
19915 case $ac_optarg in
19916 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19917 esac
19918 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19919 ac_need_defaults=false;;
19920 --he | --h)
19921 # Conflict between --help and --header
19922 as_fn_error "ambiguous option: \`$1'
19923 Try \`$0 --help' for more information.";;
19924 --help | --hel | -h )
19925 $as_echo "$ac_cs_usage"; exit ;;
19926 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19927 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19928 ac_cs_silent=: ;;
19929
19930 # This is an error.
19931 -*) as_fn_error "unrecognized option: \`$1'
19932 Try \`$0 --help' for more information." ;;
19933
19934 *) as_fn_append ac_config_targets " $1"
19935 ac_need_defaults=false ;;
19936
19937 esac
19938 shift
19939 done
19940
19941 ac_configure_extra_args=
19942
19943 if $ac_cs_silent; then
19944 exec 6>/dev/null
19945 ac_configure_extra_args="$ac_configure_extra_args --silent"
19946 fi
19947
19948 _ACEOF
19949 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19950 if \$ac_cs_recheck; then
19951 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19952 shift
19953 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19954 CONFIG_SHELL='$SHELL'
19955 export CONFIG_SHELL
19956 exec "\$@"
19957 fi
19958
19959 _ACEOF
19960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19961 exec 5>>config.log
19962 {
19963 echo
19964 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19965 ## Running $as_me. ##
19966 _ASBOX
19967 $as_echo "$ac_log"
19968 } >&5
19969
19970 _ACEOF
19971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19972 #
19973 # INIT-COMMANDS
19974 #
19975 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19976
19977 _ACEOF
19978
19979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19980
19981 # Handling of arguments.
19982 for ac_config_target in $ac_config_targets
19983 do
19984 case $ac_config_target in
19985 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
19986 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19987 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19988 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
19989 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19990
19991 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19992 esac
19993 done
19994
19995
19996 # If the user did not use the arguments to specify the items to instantiate,
19997 # then the envvar interface is used. Set only those that are not.
19998 # We use the long form for the default assignment because of an extremely
19999 # bizarre bug on SunOS 4.1.3.
20000 if $ac_need_defaults; then
20001 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20002 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20003 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20004 fi
20005
20006 # Have a temporary directory for convenience. Make it in the build tree
20007 # simply because there is no reason against having it here, and in addition,
20008 # creating and moving files from /tmp can sometimes cause problems.
20009 # Hook for its removal unless debugging.
20010 # Note that there is a small window in which the directory will not be cleaned:
20011 # after its creation but before its name has been assigned to `$tmp'.
20012 $debug ||
20013 {
20014 tmp=
20015 trap 'exit_status=$?
20016 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20017 ' 0
20018 trap 'as_fn_exit 1' 1 2 13 15
20019 }
20020 # Create a (secure) tmp directory for tmp files.
20021
20022 {
20023 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20024 test -n "$tmp" && test -d "$tmp"
20025 } ||
20026 {
20027 tmp=./conf$$-$RANDOM
20028 (umask 077 && mkdir "$tmp")
20029 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
20030
20031 # Set up the scripts for CONFIG_FILES section.
20032 # No need to generate them if there are no CONFIG_FILES.
20033 # This happens for instance with `./config.status config.h'.
20034 if test -n "$CONFIG_FILES"; then
20035
20036
20037 ac_cr=`echo X | tr X '\015'`
20038 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20039 # But we know of no other shell where ac_cr would be empty at this
20040 # point, so we can use a bashism as a fallback.
20041 if test "x$ac_cr" = x; then
20042 eval ac_cr=\$\'\\r\'
20043 fi
20044 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20045 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20046 ac_cs_awk_cr='\r'
20047 else
20048 ac_cs_awk_cr=$ac_cr
20049 fi
20050
20051 echo 'BEGIN {' >"$tmp/subs1.awk" &&
20052 _ACEOF
20053
20054
20055 {
20056 echo "cat >conf$$subs.awk <<_ACEOF" &&
20057 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20058 echo "_ACEOF"
20059 } >conf$$subs.sh ||
20060 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20061 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
20062 ac_delim='%!_!# '
20063 for ac_last_try in false false false false false :; do
20064 . ./conf$$subs.sh ||
20065 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20066
20067 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20068 if test $ac_delim_n = $ac_delim_num; then
20069 break
20070 elif $ac_last_try; then
20071 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
20072 else
20073 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20074 fi
20075 done
20076 rm -f conf$$subs.sh
20077
20078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20079 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
20080 _ACEOF
20081 sed -n '
20082 h
20083 s/^/S["/; s/!.*/"]=/
20084 p
20085 g
20086 s/^[^!]*!//
20087 :repl
20088 t repl
20089 s/'"$ac_delim"'$//
20090 t delim
20091 :nl
20092 h
20093 s/\(.\{148\}\).*/\1/
20094 t more1
20095 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20096 p
20097 n
20098 b repl
20099 :more1
20100 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20101 p
20102 g
20103 s/.\{148\}//
20104 t nl
20105 :delim
20106 h
20107 s/\(.\{148\}\).*/\1/
20108 t more2
20109 s/["\\]/\\&/g; s/^/"/; s/$/"/
20110 p
20111 b
20112 :more2
20113 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20114 p
20115 g
20116 s/.\{148\}//
20117 t delim
20118 ' <conf$$subs.awk | sed '
20119 /^[^""]/{
20120 N
20121 s/\n//
20122 }
20123 ' >>$CONFIG_STATUS || ac_write_fail=1
20124 rm -f conf$$subs.awk
20125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20126 _ACAWK
20127 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
20128 for (key in S) S_is_set[key] = 1
20129 FS = "\a"
20130
20131 }
20132 {
20133 line = $ 0
20134 nfields = split(line, field, "@")
20135 substed = 0
20136 len = length(field[1])
20137 for (i = 2; i < nfields; i++) {
20138 key = field[i]
20139 keylen = length(key)
20140 if (S_is_set[key]) {
20141 value = S[key]
20142 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20143 len += length(value) + length(field[++i])
20144 substed = 1
20145 } else
20146 len += 1 + keylen
20147 }
20148
20149 print line
20150 }
20151
20152 _ACAWK
20153 _ACEOF
20154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20155 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20156 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20157 else
20158 cat
20159 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
20160 || as_fn_error "could not setup config files machinery" "$LINENO" 5
20161 _ACEOF
20162
20163 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20164 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20165 # trailing colons and then remove the whole line if VPATH becomes empty
20166 # (actually we leave an empty line to preserve line numbers).
20167 if test "x$srcdir" = x.; then
20168 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20169 s/:*\$(srcdir):*/:/
20170 s/:*\${srcdir}:*/:/
20171 s/:*@srcdir@:*/:/
20172 s/^\([^=]*=[ ]*\):*/\1/
20173 s/:*$//
20174 s/^[^=]*=[ ]*$//
20175 }'
20176 fi
20177
20178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20179 fi # test -n "$CONFIG_FILES"
20180
20181 # Set up the scripts for CONFIG_HEADERS section.
20182 # No need to generate them if there are no CONFIG_HEADERS.
20183 # This happens for instance with `./config.status Makefile'.
20184 if test -n "$CONFIG_HEADERS"; then
20185 cat >"$tmp/defines.awk" <<\_ACAWK ||
20186 BEGIN {
20187 _ACEOF
20188
20189 # Transform confdefs.h into an awk script `defines.awk', embedded as
20190 # here-document in config.status, that substitutes the proper values into
20191 # config.h.in to produce config.h.
20192
20193 # Create a delimiter string that does not exist in confdefs.h, to ease
20194 # handling of long lines.
20195 ac_delim='%!_!# '
20196 for ac_last_try in false false :; do
20197 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
20198 if test -z "$ac_t"; then
20199 break
20200 elif $ac_last_try; then
20201 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
20202 else
20203 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20204 fi
20205 done
20206
20207 # For the awk script, D is an array of macro values keyed by name,
20208 # likewise P contains macro parameters if any. Preserve backslash
20209 # newline sequences.
20210
20211 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20212 sed -n '
20213 s/.\{148\}/&'"$ac_delim"'/g
20214 t rset
20215 :rset
20216 s/^[ ]*#[ ]*define[ ][ ]*/ /
20217 t def
20218 d
20219 :def
20220 s/\\$//
20221 t bsnl
20222 s/["\\]/\\&/g
20223 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20224 D["\1"]=" \3"/p
20225 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20226 d
20227 :bsnl
20228 s/["\\]/\\&/g
20229 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20230 D["\1"]=" \3\\\\\\n"\\/p
20231 t cont
20232 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20233 t cont
20234 d
20235 :cont
20236 n
20237 s/.\{148\}/&'"$ac_delim"'/g
20238 t clear
20239 :clear
20240 s/\\$//
20241 t bsnlc
20242 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20243 d
20244 :bsnlc
20245 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20246 b cont
20247 ' <confdefs.h | sed '
20248 s/'"$ac_delim"'/"\\\
20249 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20250
20251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20252 for (key in D) D_is_set[key] = 1
20253 FS = "\a"
20254 }
20255 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20256 line = \$ 0
20257 split(line, arg, " ")
20258 if (arg[1] == "#") {
20259 defundef = arg[2]
20260 mac1 = arg[3]
20261 } else {
20262 defundef = substr(arg[1], 2)
20263 mac1 = arg[2]
20264 }
20265 split(mac1, mac2, "(") #)
20266 macro = mac2[1]
20267 prefix = substr(line, 1, index(line, defundef) - 1)
20268 if (D_is_set[macro]) {
20269 # Preserve the white space surrounding the "#".
20270 print prefix "define", macro P[macro] D[macro]
20271 next
20272 } else {
20273 # Replace #undef with comments. This is necessary, for example,
20274 # in the case of _POSIX_SOURCE, which is predefined and required
20275 # on some systems where configure will not decide to define it.
20276 if (defundef == "undef") {
20277 print "/*", prefix defundef, macro, "*/"
20278 next
20279 }
20280 }
20281 }
20282 { print }
20283 _ACAWK
20284 _ACEOF
20285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20286 as_fn_error "could not setup config headers machinery" "$LINENO" 5
20287 fi # test -n "$CONFIG_HEADERS"
20288
20289
20290 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20291 shift
20292 for ac_tag
20293 do
20294 case $ac_tag in
20295 :[FHLC]) ac_mode=$ac_tag; continue;;
20296 esac
20297 case $ac_mode$ac_tag in
20298 :[FHL]*:*);;
20299 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
20300 :[FH]-) ac_tag=-:-;;
20301 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20302 esac
20303 ac_save_IFS=$IFS
20304 IFS=:
20305 set x $ac_tag
20306 IFS=$ac_save_IFS
20307 shift
20308 ac_file=$1
20309 shift
20310
20311 case $ac_mode in
20312 :L) ac_source=$1;;
20313 :[FH])
20314 ac_file_inputs=
20315 for ac_f
20316 do
20317 case $ac_f in
20318 -) ac_f="$tmp/stdin";;
20319 *) # Look for the file first in the build tree, then in the source tree
20320 # (if the path is not absolute). The absolute path cannot be DOS-style,
20321 # because $ac_f cannot contain `:'.
20322 test -f "$ac_f" ||
20323 case $ac_f in
20324 [\\/$]*) false;;
20325 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20326 esac ||
20327 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20328 esac
20329 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20330 as_fn_append ac_file_inputs " '$ac_f'"
20331 done
20332
20333 # Let's still pretend it is `configure' which instantiates (i.e., don't
20334 # use $as_me), people would be surprised to read:
20335 # /* config.h. Generated by config.status. */
20336 configure_input='Generated from '`
20337 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20338 `' by configure.'
20339 if test x"$ac_file" != x-; then
20340 configure_input="$ac_file. $configure_input"
20341 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20342 $as_echo "$as_me: creating $ac_file" >&6;}
20343 fi
20344 # Neutralize special characters interpreted by sed in replacement strings.
20345 case $configure_input in #(
20346 *\&* | *\|* | *\\* )
20347 ac_sed_conf_input=`$as_echo "$configure_input" |
20348 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20349 *) ac_sed_conf_input=$configure_input;;
20350 esac
20351
20352 case $ac_tag in
20353 *:-:* | *:-) cat >"$tmp/stdin" \
20354 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
20355 esac
20356 ;;
20357 esac
20358
20359 ac_dir=`$as_dirname -- "$ac_file" ||
20360 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20361 X"$ac_file" : 'X\(//\)[^/]' \| \
20362 X"$ac_file" : 'X\(//\)$' \| \
20363 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20364 $as_echo X"$ac_file" |
20365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20366 s//\1/
20367 q
20368 }
20369 /^X\(\/\/\)[^/].*/{
20370 s//\1/
20371 q
20372 }
20373 /^X\(\/\/\)$/{
20374 s//\1/
20375 q
20376 }
20377 /^X\(\/\).*/{
20378 s//\1/
20379 q
20380 }
20381 s/.*/./; q'`
20382 as_dir="$ac_dir"; as_fn_mkdir_p
20383 ac_builddir=.
20384
20385 case "$ac_dir" in
20386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20387 *)
20388 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20389 # A ".." for each directory in $ac_dir_suffix.
20390 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20391 case $ac_top_builddir_sub in
20392 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20393 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20394 esac ;;
20395 esac
20396 ac_abs_top_builddir=$ac_pwd
20397 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20398 # for backward compatibility:
20399 ac_top_builddir=$ac_top_build_prefix
20400
20401 case $srcdir in
20402 .) # We are building in place.
20403 ac_srcdir=.
20404 ac_top_srcdir=$ac_top_builddir_sub
20405 ac_abs_top_srcdir=$ac_pwd ;;
20406 [\\/]* | ?:[\\/]* ) # Absolute name.
20407 ac_srcdir=$srcdir$ac_dir_suffix;
20408 ac_top_srcdir=$srcdir
20409 ac_abs_top_srcdir=$srcdir ;;
20410 *) # Relative name.
20411 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20412 ac_top_srcdir=$ac_top_build_prefix$srcdir
20413 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20414 esac
20415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20416
20417
20418 case $ac_mode in
20419 :F)
20420 #
20421 # CONFIG_FILE
20422 #
20423
20424 case $INSTALL in
20425 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20426 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20427 esac
20428 ac_MKDIR_P=$MKDIR_P
20429 case $MKDIR_P in
20430 [\\/$]* | ?:[\\/]* ) ;;
20431 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20432 esac
20433 _ACEOF
20434
20435 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20436 # If the template does not know about datarootdir, expand it.
20437 # FIXME: This hack should be removed a few years after 2.60.
20438 ac_datarootdir_hack=; ac_datarootdir_seen=
20439 ac_sed_dataroot='
20440 /datarootdir/ {
20441 p
20442 q
20443 }
20444 /@datadir@/p
20445 /@docdir@/p
20446 /@infodir@/p
20447 /@localedir@/p
20448 /@mandir@/p'
20449 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20450 *datarootdir*) ac_datarootdir_seen=yes;;
20451 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20453 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20454 _ACEOF
20455 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20456 ac_datarootdir_hack='
20457 s&@datadir@&$datadir&g
20458 s&@docdir@&$docdir&g
20459 s&@infodir@&$infodir&g
20460 s&@localedir@&$localedir&g
20461 s&@mandir@&$mandir&g
20462 s&\\\${datarootdir}&$datarootdir&g' ;;
20463 esac
20464 _ACEOF
20465
20466 # Neutralize VPATH when `$srcdir' = `.'.
20467 # Shell code in configure.ac might set extrasub.
20468 # FIXME: do we really want to maintain this feature?
20469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20470 ac_sed_extra="$ac_vpsub
20471 $extrasub
20472 _ACEOF
20473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20474 :t
20475 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20476 s|@configure_input@|$ac_sed_conf_input|;t t
20477 s&@top_builddir@&$ac_top_builddir_sub&;t t
20478 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20479 s&@srcdir@&$ac_srcdir&;t t
20480 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20481 s&@top_srcdir@&$ac_top_srcdir&;t t
20482 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20483 s&@builddir@&$ac_builddir&;t t
20484 s&@abs_builddir@&$ac_abs_builddir&;t t
20485 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20486 s&@INSTALL@&$ac_INSTALL&;t t
20487 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20488 $ac_datarootdir_hack
20489 "
20490 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
20491 || as_fn_error "could not create $ac_file" "$LINENO" 5
20492
20493 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20494 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20495 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20497 which seems to be undefined. Please make sure it is defined." >&5
20498 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20499 which seems to be undefined. Please make sure it is defined." >&2;}
20500
20501 rm -f "$tmp/stdin"
20502 case $ac_file in
20503 -) cat "$tmp/out" && rm -f "$tmp/out";;
20504 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
20505 esac \
20506 || as_fn_error "could not create $ac_file" "$LINENO" 5
20507 ;;
20508 :H)
20509 #
20510 # CONFIG_HEADER
20511 #
20512 if test x"$ac_file" != x-; then
20513 {
20514 $as_echo "/* $configure_input */" \
20515 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
20516 } >"$tmp/config.h" \
20517 || as_fn_error "could not create $ac_file" "$LINENO" 5
20518 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20520 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20521 else
20522 rm -f "$ac_file"
20523 mv "$tmp/config.h" "$ac_file" \
20524 || as_fn_error "could not create $ac_file" "$LINENO" 5
20525 fi
20526 else
20527 $as_echo "/* $configure_input */" \
20528 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
20529 || as_fn_error "could not create -" "$LINENO" 5
20530 fi
20531 # Compute "$ac_file"'s index in $config_headers.
20532 _am_arg="$ac_file"
20533 _am_stamp_count=1
20534 for _am_header in $config_headers :; do
20535 case $_am_header in
20536 $_am_arg | $_am_arg:* )
20537 break ;;
20538 * )
20539 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20540 esac
20541 done
20542 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20543 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20544 X"$_am_arg" : 'X\(//\)[^/]' \| \
20545 X"$_am_arg" : 'X\(//\)$' \| \
20546 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20547 $as_echo X"$_am_arg" |
20548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20549 s//\1/
20550 q
20551 }
20552 /^X\(\/\/\)[^/].*/{
20553 s//\1/
20554 q
20555 }
20556 /^X\(\/\/\)$/{
20557 s//\1/
20558 q
20559 }
20560 /^X\(\/\).*/{
20561 s//\1/
20562 q
20563 }
20564 s/.*/./; q'`/stamp-h$_am_stamp_count
20565 ;;
20566
20567 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20568 $as_echo "$as_me: executing $ac_file commands" >&6;}
20569 ;;
20570 esac
20571
20572
20573 case $ac_file$ac_mode in
20574 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20575 # Autoconf 2.62 quotes --file arguments for eval, but not when files
20576 # are listed without --file. Let's play safe and only enable the eval
20577 # if we detect the quoting.
20578 case $CONFIG_FILES in
20579 *\'*) eval set x "$CONFIG_FILES" ;;
20580 *) set x $CONFIG_FILES ;;
20581 esac
20582 shift
20583 for mf
20584 do
20585 # Strip MF so we end up with the name of the file.
20586 mf=`echo "$mf" | sed -e 's/:.*$//'`
20587 # Check whether this is an Automake generated Makefile or not.
20588 # We used to match only the files named `Makefile.in', but
20589 # some people rename them; so instead we look at the file content.
20590 # Grep'ing the first line is not enough: some people post-process
20591 # each Makefile.in and add a new line on top of each file to say so.
20592 # Grep'ing the whole file is not good either: AIX grep has a line
20593 # limit of 2048, but all sed's we know have understand at least 4000.
20594 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
20595 dirpart=`$as_dirname -- "$mf" ||
20596 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20597 X"$mf" : 'X\(//\)[^/]' \| \
20598 X"$mf" : 'X\(//\)$' \| \
20599 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20600 $as_echo X"$mf" |
20601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20602 s//\1/
20603 q
20604 }
20605 /^X\(\/\/\)[^/].*/{
20606 s//\1/
20607 q
20608 }
20609 /^X\(\/\/\)$/{
20610 s//\1/
20611 q
20612 }
20613 /^X\(\/\).*/{
20614 s//\1/
20615 q
20616 }
20617 s/.*/./; q'`
20618 else
20619 continue
20620 fi
20621 # Extract the definition of DEPDIR, am__include, and am__quote
20622 # from the Makefile without running `make'.
20623 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20624 test -z "$DEPDIR" && continue
20625 am__include=`sed -n 's/^am__include = //p' < "$mf"`
20626 test -z "am__include" && continue
20627 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20628 # When using ansi2knr, U may be empty or an underscore; expand it
20629 U=`sed -n 's/^U = //p' < "$mf"`
20630 # Find all dependency output files, they are included files with
20631 # $(DEPDIR) in their names. We invoke sed twice because it is the
20632 # simplest approach to changing $(DEPDIR) to its actual value in the
20633 # expansion.
20634 for file in `sed -n "
20635 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20636 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20637 # Make sure the directory exists.
20638 test -f "$dirpart/$file" && continue
20639 fdir=`$as_dirname -- "$file" ||
20640 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20641 X"$file" : 'X\(//\)[^/]' \| \
20642 X"$file" : 'X\(//\)$' \| \
20643 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20644 $as_echo X"$file" |
20645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20646 s//\1/
20647 q
20648 }
20649 /^X\(\/\/\)[^/].*/{
20650 s//\1/
20651 q
20652 }
20653 /^X\(\/\/\)$/{
20654 s//\1/
20655 q
20656 }
20657 /^X\(\/\).*/{
20658 s//\1/
20659 q
20660 }
20661 s/.*/./; q'`
20662 as_dir=$dirpart/$fdir; as_fn_mkdir_p
20663 # echo "creating $dirpart/$file"
20664 echo '# dummy' > "$dirpart/$file"
20665 done
20666 done
20667 }
20668 ;;
20669 "default":C)
20670 case x$CONFIG_HEADERS in
20671 xconfig.h:config.in)
20672 echo > stamp-h ;;
20673 esac
20674 ;;
20675
20676 esac
20677 done # for ac_tag
20678
20679
20680 as_fn_exit 0
20681 _ACEOF
20682 ac_clean_files=$ac_clean_files_save
20683
20684 test $ac_write_fail = 0 ||
20685 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
20686
20687
20688 # configure is writing to config.log, and then calls config.status.
20689 # config.status does its own redirection, appending to config.log.
20690 # Unfortunately, on DOS this fails, as config.log is still kept open
20691 # by configure, so config.status won't be able to write to it; its
20692 # output is simply discarded. So we exec the FD to /dev/null,
20693 # effectively closing config.log, so it can be properly (re)opened and
20694 # appended to by config.status. When coming back to configure, we
20695 # need to make the FD available again.
20696 if test "$no_create" != yes; then
20697 ac_cs_success=:
20698 ac_config_status_args=
20699 test "$silent" = yes &&
20700 ac_config_status_args="$ac_config_status_args --quiet"
20701 exec 5>/dev/null
20702 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20703 exec 5>>config.log
20704 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20705 # would make configure fail if this is the last instruction.
20706 $ac_cs_success || as_fn_exit $?
20707 fi
20708 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20710 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20711 fi
20712
20713
20714 exit 0
This page took 0.454862 seconds and 4 git commands to generate.