Import lstat
[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_header_list=
592 gl_fnmatch_required=POSIX
593 ac_func_list=
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 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
660 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
661 TIME_H_DEFINES_STRUCT_TIMESPEC
662 NEXT_AS_FIRST_DIRECTIVE_TIME_H
663 NEXT_TIME_H
664 REPLACE_TIMEGM
665 REPLACE_NANOSLEEP
666 REPLACE_MKTIME
667 REPLACE_LOCALTIME_R
668 HAVE_TIMEGM
669 HAVE_STRPTIME
670 HAVE_NANOSLEEP
671 HAVE_DECL_LOCALTIME_R
672 GNULIB_TIME_R
673 GNULIB_TIMEGM
674 GNULIB_STRPTIME
675 GNULIB_NANOSLEEP
676 GNULIB_MKTIME
677 WINDOWS_64_BIT_OFF_T
678 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
679 NEXT_SYS_TYPES_H
680 MKDIR_P
681 WINDOWS_64_BIT_ST_SIZE
682 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
683 NEXT_SYS_STAT_H
684 NEXT_AS_FIRST_DIRECTIVE_STRING_H
685 NEXT_STRING_H
686 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
687 NEXT_STDDEF_H
688 GL_GENERATE_STDDEF_H_FALSE
689 GL_GENERATE_STDDEF_H_TRUE
690 STDDEF_H
691 HAVE_WCHAR_T
692 REPLACE_NULL
693 HAVE__BOOL
694 GL_GENERATE_STDBOOL_H_FALSE
695 GL_GENERATE_STDBOOL_H_TRUE
696 STDBOOL_H
697 UNDEFINE_STRTOK_R
698 REPLACE_STRTOK_R
699 REPLACE_STRSIGNAL
700 REPLACE_STRNLEN
701 REPLACE_STRNDUP
702 REPLACE_STRNCAT
703 REPLACE_STRERROR_R
704 REPLACE_STRERROR
705 REPLACE_STRCHRNUL
706 REPLACE_STRCASESTR
707 REPLACE_STRSTR
708 REPLACE_STRDUP
709 REPLACE_STPNCPY
710 REPLACE_MEMMEM
711 REPLACE_MEMCHR
712 HAVE_STRVERSCMP
713 HAVE_DECL_STRSIGNAL
714 HAVE_DECL_STRERROR_R
715 HAVE_DECL_STRTOK_R
716 HAVE_STRCASESTR
717 HAVE_STRSEP
718 HAVE_STRPBRK
719 HAVE_DECL_STRNLEN
720 HAVE_DECL_STRNDUP
721 HAVE_DECL_STRDUP
722 HAVE_STRCHRNUL
723 HAVE_STPNCPY
724 HAVE_STPCPY
725 HAVE_RAWMEMCHR
726 HAVE_DECL_MEMRCHR
727 HAVE_MEMPCPY
728 HAVE_DECL_MEMMEM
729 HAVE_MEMCHR
730 HAVE_FFSLL
731 HAVE_FFSL
732 HAVE_MBSLEN
733 GNULIB_STRVERSCMP
734 GNULIB_STRSIGNAL
735 GNULIB_STRERROR_R
736 GNULIB_STRERROR
737 GNULIB_MBSTOK_R
738 GNULIB_MBSSEP
739 GNULIB_MBSSPN
740 GNULIB_MBSPBRK
741 GNULIB_MBSCSPN
742 GNULIB_MBSCASESTR
743 GNULIB_MBSPCASECMP
744 GNULIB_MBSNCASECMP
745 GNULIB_MBSCASECMP
746 GNULIB_MBSSTR
747 GNULIB_MBSRCHR
748 GNULIB_MBSCHR
749 GNULIB_MBSNLEN
750 GNULIB_MBSLEN
751 GNULIB_STRTOK_R
752 GNULIB_STRCASESTR
753 GNULIB_STRSTR
754 GNULIB_STRSEP
755 GNULIB_STRPBRK
756 GNULIB_STRNLEN
757 GNULIB_STRNDUP
758 GNULIB_STRNCAT
759 GNULIB_STRDUP
760 GNULIB_STRCHRNUL
761 GNULIB_STPNCPY
762 GNULIB_STPCPY
763 GNULIB_RAWMEMCHR
764 GNULIB_MEMRCHR
765 GNULIB_MEMPCPY
766 GNULIB_MEMMEM
767 GNULIB_MEMCHR
768 GNULIB_FFSLL
769 GNULIB_FFSL
770 LOCALE_FR
771 LOCALE_FR_UTF8
772 LOCALE_ZH_CN
773 LOCALE_JA
774 REPLACE_WCSWIDTH
775 REPLACE_WCWIDTH
776 REPLACE_WCSNRTOMBS
777 REPLACE_WCSRTOMBS
778 REPLACE_WCRTOMB
779 REPLACE_MBSNRTOWCS
780 REPLACE_MBSRTOWCS
781 REPLACE_MBRLEN
782 REPLACE_MBRTOWC
783 REPLACE_MBSINIT
784 REPLACE_WCTOB
785 REPLACE_BTOWC
786 REPLACE_MBSTATE_T
787 HAVE_DECL_WCWIDTH
788 HAVE_DECL_WCTOB
789 HAVE_WCSWIDTH
790 HAVE_WCSTOK
791 HAVE_WCSSTR
792 HAVE_WCSPBRK
793 HAVE_WCSSPN
794 HAVE_WCSCSPN
795 HAVE_WCSRCHR
796 HAVE_WCSCHR
797 HAVE_WCSDUP
798 HAVE_WCSXFRM
799 HAVE_WCSCOLL
800 HAVE_WCSNCASECMP
801 HAVE_WCSCASECMP
802 HAVE_WCSNCMP
803 HAVE_WCSCMP
804 HAVE_WCSNCAT
805 HAVE_WCSCAT
806 HAVE_WCPNCPY
807 HAVE_WCSNCPY
808 HAVE_WCPCPY
809 HAVE_WCSCPY
810 HAVE_WCSNLEN
811 HAVE_WCSLEN
812 HAVE_WMEMSET
813 HAVE_WMEMMOVE
814 HAVE_WMEMCPY
815 HAVE_WMEMCMP
816 HAVE_WMEMCHR
817 HAVE_WCSNRTOMBS
818 HAVE_WCSRTOMBS
819 HAVE_WCRTOMB
820 HAVE_MBSNRTOWCS
821 HAVE_MBSRTOWCS
822 HAVE_MBRLEN
823 HAVE_MBRTOWC
824 HAVE_MBSINIT
825 HAVE_BTOWC
826 GNULIB_WCSWIDTH
827 GNULIB_WCSTOK
828 GNULIB_WCSSTR
829 GNULIB_WCSPBRK
830 GNULIB_WCSSPN
831 GNULIB_WCSCSPN
832 GNULIB_WCSRCHR
833 GNULIB_WCSCHR
834 GNULIB_WCSDUP
835 GNULIB_WCSXFRM
836 GNULIB_WCSCOLL
837 GNULIB_WCSNCASECMP
838 GNULIB_WCSCASECMP
839 GNULIB_WCSNCMP
840 GNULIB_WCSCMP
841 GNULIB_WCSNCAT
842 GNULIB_WCSCAT
843 GNULIB_WCPNCPY
844 GNULIB_WCSNCPY
845 GNULIB_WCPCPY
846 GNULIB_WCSCPY
847 GNULIB_WCSNLEN
848 GNULIB_WCSLEN
849 GNULIB_WMEMSET
850 GNULIB_WMEMMOVE
851 GNULIB_WMEMCPY
852 GNULIB_WMEMCMP
853 GNULIB_WMEMCHR
854 GNULIB_WCWIDTH
855 GNULIB_WCSNRTOMBS
856 GNULIB_WCSRTOMBS
857 GNULIB_WCRTOMB
858 GNULIB_MBSNRTOWCS
859 GNULIB_MBSRTOWCS
860 GNULIB_MBRLEN
861 GNULIB_MBRTOWC
862 GNULIB_MBSINIT
863 GNULIB_WCTOB
864 GNULIB_BTOWC
865 NEXT_AS_FIRST_DIRECTIVE_MATH_H
866 NEXT_MATH_H
867 REPLACE_UTIMENSAT
868 REPLACE_STAT
869 REPLACE_MKNOD
870 REPLACE_MKFIFO
871 REPLACE_MKDIR
872 REPLACE_LSTAT
873 REPLACE_FUTIMENS
874 REPLACE_FSTATAT
875 REPLACE_FSTAT
876 HAVE_UTIMENSAT
877 HAVE_MKNODAT
878 HAVE_MKNOD
879 HAVE_MKFIFOAT
880 HAVE_MKFIFO
881 HAVE_MKDIRAT
882 HAVE_LSTAT
883 HAVE_LCHMOD
884 HAVE_FUTIMENS
885 HAVE_FSTATAT
886 HAVE_FCHMODAT
887 GNULIB_UTIMENSAT
888 GNULIB_STAT
889 GNULIB_MKNODAT
890 GNULIB_MKNOD
891 GNULIB_MKFIFOAT
892 GNULIB_MKFIFO
893 GNULIB_MKDIRAT
894 GNULIB_LSTAT
895 GNULIB_LCHMOD
896 GNULIB_FUTIMENS
897 GNULIB_FSTATAT
898 GNULIB_FSTAT
899 GNULIB_FCHMODAT
900 LOCALCHARSET_TESTS_ENVIRONMENT
901 GLIBC21
902 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
903 NEXT_INTTYPES_H
904 UINT64_MAX_EQ_ULONG_MAX
905 UINT32_MAX_LT_UINTMAX_MAX
906 PRIPTR_PREFIX
907 PRI_MACROS_BROKEN
908 INT64_MAX_EQ_LONG_MAX
909 INT32_MAX_LT_INTMAX_MAX
910 REPLACE_STRTOIMAX
911 HAVE_DECL_STRTOUMAX
912 HAVE_DECL_STRTOIMAX
913 HAVE_DECL_IMAXDIV
914 HAVE_DECL_IMAXABS
915 GNULIB_STRTOUMAX
916 GNULIB_STRTOIMAX
917 GNULIB_IMAXDIV
918 GNULIB_IMAXABS
919 GL_GENERATE_STDINT_H_FALSE
920 GL_GENERATE_STDINT_H_TRUE
921 STDINT_H
922 WINT_T_SUFFIX
923 WCHAR_T_SUFFIX
924 SIG_ATOMIC_T_SUFFIX
925 SIZE_T_SUFFIX
926 PTRDIFF_T_SUFFIX
927 HAVE_SIGNED_WINT_T
928 HAVE_SIGNED_WCHAR_T
929 HAVE_SIGNED_SIG_ATOMIC_T
930 BITSIZEOF_WINT_T
931 BITSIZEOF_WCHAR_T
932 BITSIZEOF_SIG_ATOMIC_T
933 BITSIZEOF_SIZE_T
934 BITSIZEOF_PTRDIFF_T
935 APPLE_UNIVERSAL_BUILD
936 HAVE_SYS_BITYPES_H
937 HAVE_SYS_INTTYPES_H
938 HAVE_STDINT_H
939 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
940 NEXT_STDINT_H
941 HAVE_SYS_TYPES_H
942 HAVE_INTTYPES_H
943 HAVE_WCHAR_H
944 HAVE_UNSIGNED_LONG_LONG_INT
945 HAVE_LONG_LONG_INT
946 FREXPL_LIBM
947 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
948 FREXP_LIBM
949 REPLACE_TRUNCL
950 REPLACE_TRUNCF
951 REPLACE_TRUNC
952 REPLACE_SQRTL
953 REPLACE_SIGNBIT_USING_GCC
954 REPLACE_SIGNBIT
955 REPLACE_ROUNDL
956 REPLACE_ROUNDF
957 REPLACE_ROUND
958 REPLACE_REMAINDERL
959 REPLACE_REMAINDERF
960 REPLACE_REMAINDER
961 REPLACE_NAN
962 REPLACE_MODFL
963 REPLACE_MODFF
964 REPLACE_MODF
965 REPLACE_LOGBL
966 REPLACE_LOGBF
967 REPLACE_LOGB
968 REPLACE_LOG2L
969 REPLACE_LOG2F
970 REPLACE_LOG2
971 REPLACE_LOG1PL
972 REPLACE_LOG1PF
973 REPLACE_LOG1P
974 REPLACE_LOG10L
975 REPLACE_LOG10F
976 REPLACE_LOG10
977 REPLACE_LOGL
978 REPLACE_LOGF
979 REPLACE_LOG
980 REPLACE_LDEXPL
981 REPLACE_ISNAN
982 REPLACE_ISINF
983 REPLACE_ISFINITE
984 REPLACE_ILOGBF
985 REPLACE_ILOGB
986 REPLACE_HYPOTL
987 REPLACE_HYPOTF
988 REPLACE_HYPOT
989 REPLACE_HUGE_VAL
990 REPLACE_FREXPL
991 REPLACE_FREXP
992 REPLACE_FREXPF
993 REPLACE_FMODL
994 REPLACE_FMODF
995 REPLACE_FMOD
996 REPLACE_FMAL
997 REPLACE_FMAF
998 REPLACE_FMA
999 REPLACE_FLOORL
1000 REPLACE_FLOORF
1001 REPLACE_FLOOR
1002 REPLACE_FABSL
1003 REPLACE_EXP2L
1004 REPLACE_EXP2
1005 REPLACE_EXPM1F
1006 REPLACE_EXPM1
1007 REPLACE_CEILL
1008 REPLACE_CEILF
1009 REPLACE_CEIL
1010 REPLACE_CBRTL
1011 REPLACE_CBRTF
1012 HAVE_DECL_TRUNCL
1013 HAVE_DECL_TRUNCF
1014 HAVE_DECL_TRUNC
1015 HAVE_DECL_TANL
1016 HAVE_DECL_SQRTL
1017 HAVE_DECL_SINL
1018 HAVE_DECL_ROUNDL
1019 HAVE_DECL_ROUNDF
1020 HAVE_DECL_ROUND
1021 HAVE_DECL_RINTF
1022 HAVE_DECL_REMAINDERL
1023 HAVE_DECL_REMAINDER
1024 HAVE_DECL_LOGB
1025 HAVE_DECL_LOG2L
1026 HAVE_DECL_LOG2F
1027 HAVE_DECL_LOG2
1028 HAVE_DECL_LOG10L
1029 HAVE_DECL_LOGL
1030 HAVE_DECL_LDEXPL
1031 HAVE_DECL_FREXPL
1032 HAVE_DECL_FLOORL
1033 HAVE_DECL_FLOORF
1034 HAVE_DECL_EXPM1L
1035 HAVE_DECL_EXP2L
1036 HAVE_DECL_EXP2F
1037 HAVE_DECL_EXP2
1038 HAVE_DECL_EXPL
1039 HAVE_DECL_COSL
1040 HAVE_DECL_COPYSIGNF
1041 HAVE_DECL_CEILL
1042 HAVE_DECL_CEILF
1043 HAVE_DECL_CBRTL
1044 HAVE_DECL_CBRTF
1045 HAVE_DECL_ATANL
1046 HAVE_DECL_ASINL
1047 HAVE_DECL_ACOSL
1048 HAVE_TANHF
1049 HAVE_TANL
1050 HAVE_TANF
1051 HAVE_SQRTL
1052 HAVE_SQRTF
1053 HAVE_SINHF
1054 HAVE_SINL
1055 HAVE_SINF
1056 HAVE_RINTL
1057 HAVE_RINT
1058 HAVE_REMAINDERF
1059 HAVE_REMAINDER
1060 HAVE_POWF
1061 HAVE_MODFL
1062 HAVE_MODFF
1063 HAVE_LOGBL
1064 HAVE_LOGBF
1065 HAVE_LOG1PL
1066 HAVE_LOG1PF
1067 HAVE_LOG1P
1068 HAVE_LOG10L
1069 HAVE_LOG10F
1070 HAVE_LOGL
1071 HAVE_LOGF
1072 HAVE_LDEXPF
1073 HAVE_ISNANL
1074 HAVE_ISNAND
1075 HAVE_ISNANF
1076 HAVE_ILOGBL
1077 HAVE_ILOGBF
1078 HAVE_ILOGB
1079 HAVE_HYPOTL
1080 HAVE_HYPOTF
1081 HAVE_FREXPF
1082 HAVE_FMODL
1083 HAVE_FMODF
1084 HAVE_FMAL
1085 HAVE_FMAF
1086 HAVE_FMA
1087 HAVE_FABSL
1088 HAVE_FABSF
1089 HAVE_EXPM1F
1090 HAVE_EXPM1
1091 HAVE_EXPL
1092 HAVE_EXPF
1093 HAVE_COSHF
1094 HAVE_COSL
1095 HAVE_COSF
1096 HAVE_COPYSIGNL
1097 HAVE_COPYSIGN
1098 HAVE_CBRTL
1099 HAVE_CBRTF
1100 HAVE_CBRT
1101 HAVE_ATAN2F
1102 HAVE_ATANL
1103 HAVE_ATANF
1104 HAVE_ASINL
1105 HAVE_ASINF
1106 HAVE_ACOSL
1107 HAVE_ACOSF
1108 GNULIB_TRUNCL
1109 GNULIB_TRUNCF
1110 GNULIB_TRUNC
1111 GNULIB_TANHF
1112 GNULIB_TANL
1113 GNULIB_TANF
1114 GNULIB_SQRTL
1115 GNULIB_SQRTF
1116 GNULIB_SINHF
1117 GNULIB_SINL
1118 GNULIB_SINF
1119 GNULIB_SIGNBIT
1120 GNULIB_ROUNDL
1121 GNULIB_ROUNDF
1122 GNULIB_ROUND
1123 GNULIB_RINTL
1124 GNULIB_RINTF
1125 GNULIB_RINT
1126 GNULIB_REMAINDERL
1127 GNULIB_REMAINDERF
1128 GNULIB_REMAINDER
1129 GNULIB_POWF
1130 GNULIB_MODFL
1131 GNULIB_MODFF
1132 GNULIB_MODF
1133 GNULIB_LOGBL
1134 GNULIB_LOGBF
1135 GNULIB_LOGB
1136 GNULIB_LOG2L
1137 GNULIB_LOG2F
1138 GNULIB_LOG2
1139 GNULIB_LOG1PL
1140 GNULIB_LOG1PF
1141 GNULIB_LOG1P
1142 GNULIB_LOG10L
1143 GNULIB_LOG10F
1144 GNULIB_LOG10
1145 GNULIB_LOGL
1146 GNULIB_LOGF
1147 GNULIB_LOG
1148 GNULIB_LDEXPL
1149 GNULIB_LDEXPF
1150 GNULIB_ISNANL
1151 GNULIB_ISNAND
1152 GNULIB_ISNANF
1153 GNULIB_ISNAN
1154 GNULIB_ISINF
1155 GNULIB_ISFINITE
1156 GNULIB_ILOGBL
1157 GNULIB_ILOGBF
1158 GNULIB_ILOGB
1159 GNULIB_HYPOTL
1160 GNULIB_HYPOTF
1161 GNULIB_HYPOT
1162 GNULIB_FREXPL
1163 GNULIB_FREXP
1164 GNULIB_FREXPF
1165 GNULIB_FMODL
1166 GNULIB_FMODF
1167 GNULIB_FMOD
1168 GNULIB_FMAL
1169 GNULIB_FMAF
1170 GNULIB_FMA
1171 GNULIB_FLOORL
1172 GNULIB_FLOORF
1173 GNULIB_FLOOR
1174 GNULIB_FABSL
1175 GNULIB_FABSF
1176 GNULIB_EXPM1L
1177 GNULIB_EXPM1F
1178 GNULIB_EXPM1
1179 GNULIB_EXP2L
1180 GNULIB_EXP2F
1181 GNULIB_EXP2
1182 GNULIB_EXPL
1183 GNULIB_EXPF
1184 GNULIB_COSHF
1185 GNULIB_COSL
1186 GNULIB_COSF
1187 GNULIB_COPYSIGNL
1188 GNULIB_COPYSIGNF
1189 GNULIB_COPYSIGN
1190 GNULIB_CEILL
1191 GNULIB_CEILF
1192 GNULIB_CEIL
1193 GNULIB_CBRTL
1194 GNULIB_CBRTF
1195 GNULIB_CBRT
1196 GNULIB_ATAN2F
1197 GNULIB_ATANL
1198 GNULIB_ATANF
1199 GNULIB_ASINL
1200 GNULIB_ASINF
1201 GNULIB_ACOSL
1202 GNULIB_ACOSF
1203 GL_GENERATE_FNMATCH_H_FALSE
1204 GL_GENERATE_FNMATCH_H_TRUE
1205 FNMATCH_H
1206 REPLACE_ITOLD
1207 GL_GENERATE_FLOAT_H_FALSE
1208 GL_GENERATE_FLOAT_H_TRUE
1209 FLOAT_H
1210 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1211 NEXT_FLOAT_H
1212 EOVERFLOW_VALUE
1213 EOVERFLOW_HIDDEN
1214 ENOLINK_VALUE
1215 ENOLINK_HIDDEN
1216 EMULTIHOP_VALUE
1217 EMULTIHOP_HIDDEN
1218 GL_GENERATE_ERRNO_H_FALSE
1219 GL_GENERATE_ERRNO_H_TRUE
1220 ERRNO_H
1221 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1222 NEXT_ERRNO_H
1223 HAVE_DIRENT_H
1224 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1225 NEXT_DIRENT_H
1226 PRAGMA_COLUMNS
1227 PRAGMA_SYSTEM_HEADER
1228 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1229 INCLUDE_NEXT
1230 REPLACE_FDOPENDIR
1231 REPLACE_DIRFD
1232 REPLACE_CLOSEDIR
1233 REPLACE_OPENDIR
1234 HAVE_ALPHASORT
1235 HAVE_SCANDIR
1236 HAVE_FDOPENDIR
1237 HAVE_DECL_FDOPENDIR
1238 HAVE_DECL_DIRFD
1239 HAVE_CLOSEDIR
1240 HAVE_REWINDDIR
1241 HAVE_READDIR
1242 HAVE_OPENDIR
1243 GNULIB_ALPHASORT
1244 GNULIB_SCANDIR
1245 GNULIB_FDOPENDIR
1246 GNULIB_DIRFD
1247 GNULIB_CLOSEDIR
1248 GNULIB_REWINDDIR
1249 GNULIB_READDIR
1250 GNULIB_OPENDIR
1251 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1252 UNISTD_H_HAVE_WINSOCK2_H
1253 REPLACE_WRITE
1254 REPLACE_USLEEP
1255 REPLACE_UNLINKAT
1256 REPLACE_UNLINK
1257 REPLACE_TTYNAME_R
1258 REPLACE_SYMLINK
1259 REPLACE_SLEEP
1260 REPLACE_RMDIR
1261 REPLACE_READLINK
1262 REPLACE_READ
1263 REPLACE_PWRITE
1264 REPLACE_PREAD
1265 REPLACE_LSEEK
1266 REPLACE_LINKAT
1267 REPLACE_LINK
1268 REPLACE_LCHOWN
1269 REPLACE_ISATTY
1270 REPLACE_GETPAGESIZE
1271 REPLACE_GETGROUPS
1272 REPLACE_GETLOGIN_R
1273 REPLACE_GETDOMAINNAME
1274 REPLACE_GETCWD
1275 REPLACE_FTRUNCATE
1276 REPLACE_FCHOWNAT
1277 REPLACE_DUP2
1278 REPLACE_DUP
1279 REPLACE_CLOSE
1280 REPLACE_CHOWN
1281 HAVE_SYS_PARAM_H
1282 HAVE_OS_H
1283 HAVE_DECL_TTYNAME_R
1284 HAVE_DECL_SETHOSTNAME
1285 HAVE_DECL_GETUSERSHELL
1286 HAVE_DECL_GETPAGESIZE
1287 HAVE_DECL_GETLOGIN_R
1288 HAVE_DECL_GETDOMAINNAME
1289 HAVE_DECL_FDATASYNC
1290 HAVE_DECL_FCHDIR
1291 HAVE_DECL_ENVIRON
1292 HAVE_USLEEP
1293 HAVE_UNLINKAT
1294 HAVE_SYMLINKAT
1295 HAVE_SYMLINK
1296 HAVE_SLEEP
1297 HAVE_SETHOSTNAME
1298 HAVE_READLINKAT
1299 HAVE_READLINK
1300 HAVE_PWRITE
1301 HAVE_PREAD
1302 HAVE_PIPE2
1303 HAVE_PIPE
1304 HAVE_LINKAT
1305 HAVE_LINK
1306 HAVE_LCHOWN
1307 HAVE_GROUP_MEMBER
1308 HAVE_GETPAGESIZE
1309 HAVE_GETLOGIN
1310 HAVE_GETHOSTNAME
1311 HAVE_GETGROUPS
1312 HAVE_GETDTABLESIZE
1313 HAVE_FTRUNCATE
1314 HAVE_FSYNC
1315 HAVE_FDATASYNC
1316 HAVE_FCHOWNAT
1317 HAVE_FCHDIR
1318 HAVE_FACCESSAT
1319 HAVE_EUIDACCESS
1320 HAVE_DUP3
1321 HAVE_DUP2
1322 HAVE_CHOWN
1323 GNULIB_WRITE
1324 GNULIB_USLEEP
1325 GNULIB_UNLINKAT
1326 GNULIB_UNLINK
1327 GNULIB_UNISTD_H_SIGPIPE
1328 GNULIB_UNISTD_H_NONBLOCKING
1329 GNULIB_TTYNAME_R
1330 GNULIB_SYMLINKAT
1331 GNULIB_SYMLINK
1332 GNULIB_SLEEP
1333 GNULIB_SETHOSTNAME
1334 GNULIB_RMDIR
1335 GNULIB_READLINKAT
1336 GNULIB_READLINK
1337 GNULIB_READ
1338 GNULIB_PWRITE
1339 GNULIB_PREAD
1340 GNULIB_PIPE2
1341 GNULIB_PIPE
1342 GNULIB_LSEEK
1343 GNULIB_LINKAT
1344 GNULIB_LINK
1345 GNULIB_LCHOWN
1346 GNULIB_ISATTY
1347 GNULIB_GROUP_MEMBER
1348 GNULIB_GETUSERSHELL
1349 GNULIB_GETPAGESIZE
1350 GNULIB_GETLOGIN_R
1351 GNULIB_GETLOGIN
1352 GNULIB_GETHOSTNAME
1353 GNULIB_GETGROUPS
1354 GNULIB_GETDTABLESIZE
1355 GNULIB_GETDOMAINNAME
1356 GNULIB_GETCWD
1357 GNULIB_FTRUNCATE
1358 GNULIB_FSYNC
1359 GNULIB_FDATASYNC
1360 GNULIB_FCHOWNAT
1361 GNULIB_FCHDIR
1362 GNULIB_FACCESSAT
1363 GNULIB_EUIDACCESS
1364 GNULIB_ENVIRON
1365 GNULIB_DUP3
1366 GNULIB_DUP2
1367 GNULIB_DUP
1368 GNULIB_CLOSE
1369 GNULIB_CHOWN
1370 GNULIB_CHDIR
1371 pkglibexecdir
1372 lispdir
1373 GL_GENERATE_ALLOCA_H_FALSE
1374 GL_GENERATE_ALLOCA_H_TRUE
1375 ALLOCA_H
1376 ALLOCA
1377 GL_COND_LIBTOOL_FALSE
1378 GL_COND_LIBTOOL_TRUE
1379 target_os
1380 target_vendor
1381 target_cpu
1382 target
1383 RANLIB
1384 ARFLAGS
1385 AR
1386 EGREP
1387 GREP
1388 CPP
1389 host_os
1390 host_vendor
1391 host_cpu
1392 host
1393 build_os
1394 build_vendor
1395 build_cpu
1396 build
1397 OBJEXT
1398 EXEEXT
1399 ac_ct_CC
1400 CPPFLAGS
1401 LDFLAGS
1402 CFLAGS
1403 CC
1404 MAINT
1405 MAINTAINER_MODE_FALSE
1406 MAINTAINER_MODE_TRUE
1407 target_alias
1408 host_alias
1409 build_alias
1410 LIBS
1411 ECHO_T
1412 ECHO_N
1413 ECHO_C
1414 DEFS
1415 mandir
1416 localedir
1417 libdir
1418 psdir
1419 pdfdir
1420 dvidir
1421 htmldir
1422 infodir
1423 docdir
1424 oldincludedir
1425 includedir
1426 localstatedir
1427 sharedstatedir
1428 sysconfdir
1429 datadir
1430 datarootdir
1431 libexecdir
1432 sbindir
1433 bindir
1434 program_transform_name
1435 prefix
1436 exec_prefix
1437 PACKAGE_URL
1438 PACKAGE_BUGREPORT
1439 PACKAGE_STRING
1440 PACKAGE_VERSION
1441 PACKAGE_TARNAME
1442 PACKAGE_NAME
1443 PATH_SEPARATOR
1444 SHELL'
1445 ac_subst_files=''
1446 ac_user_opts='
1447 enable_option_checking
1448 enable_maintainer_mode
1449 enable_largefile
1450 enable_dependency_tracking
1451 '
1452 ac_precious_vars='build_alias
1453 host_alias
1454 target_alias
1455 CC
1456 CFLAGS
1457 LDFLAGS
1458 LIBS
1459 CPPFLAGS
1460 CPP'
1461
1462
1463 # Initialize some variables set by options.
1464 ac_init_help=
1465 ac_init_version=false
1466 ac_unrecognized_opts=
1467 ac_unrecognized_sep=
1468 # The variables have the same names as the options, with
1469 # dashes changed to underlines.
1470 cache_file=/dev/null
1471 exec_prefix=NONE
1472 no_create=
1473 no_recursion=
1474 prefix=NONE
1475 program_prefix=NONE
1476 program_suffix=NONE
1477 program_transform_name=s,x,x,
1478 silent=
1479 site=
1480 srcdir=
1481 verbose=
1482 x_includes=NONE
1483 x_libraries=NONE
1484
1485 # Installation directory options.
1486 # These are left unexpanded so users can "make install exec_prefix=/foo"
1487 # and all the variables that are supposed to be based on exec_prefix
1488 # by default will actually change.
1489 # Use braces instead of parens because sh, perl, etc. also accept them.
1490 # (The list follows the same order as the GNU Coding Standards.)
1491 bindir='${exec_prefix}/bin'
1492 sbindir='${exec_prefix}/sbin'
1493 libexecdir='${exec_prefix}/libexec'
1494 datarootdir='${prefix}/share'
1495 datadir='${datarootdir}'
1496 sysconfdir='${prefix}/etc'
1497 sharedstatedir='${prefix}/com'
1498 localstatedir='${prefix}/var'
1499 includedir='${prefix}/include'
1500 oldincludedir='/usr/include'
1501 docdir='${datarootdir}/doc/${PACKAGE}'
1502 infodir='${datarootdir}/info'
1503 htmldir='${docdir}'
1504 dvidir='${docdir}'
1505 pdfdir='${docdir}'
1506 psdir='${docdir}'
1507 libdir='${exec_prefix}/lib'
1508 localedir='${datarootdir}/locale'
1509 mandir='${datarootdir}/man'
1510
1511 ac_prev=
1512 ac_dashdash=
1513 for ac_option
1514 do
1515 # If the previous option needs an argument, assign it.
1516 if test -n "$ac_prev"; then
1517 eval $ac_prev=\$ac_option
1518 ac_prev=
1519 continue
1520 fi
1521
1522 case $ac_option in
1523 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1524 *) ac_optarg=yes ;;
1525 esac
1526
1527 # Accept the important Cygnus configure options, so we can diagnose typos.
1528
1529 case $ac_dashdash$ac_option in
1530 --)
1531 ac_dashdash=yes ;;
1532
1533 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1534 ac_prev=bindir ;;
1535 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1536 bindir=$ac_optarg ;;
1537
1538 -build | --build | --buil | --bui | --bu)
1539 ac_prev=build_alias ;;
1540 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1541 build_alias=$ac_optarg ;;
1542
1543 -cache-file | --cache-file | --cache-fil | --cache-fi \
1544 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1545 ac_prev=cache_file ;;
1546 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1547 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1548 cache_file=$ac_optarg ;;
1549
1550 --config-cache | -C)
1551 cache_file=config.cache ;;
1552
1553 -datadir | --datadir | --datadi | --datad)
1554 ac_prev=datadir ;;
1555 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1556 datadir=$ac_optarg ;;
1557
1558 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1559 | --dataroo | --dataro | --datar)
1560 ac_prev=datarootdir ;;
1561 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1562 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1563 datarootdir=$ac_optarg ;;
1564
1565 -disable-* | --disable-*)
1566 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1567 # Reject names that are not valid shell variable names.
1568 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1569 as_fn_error "invalid feature name: $ac_useropt"
1570 ac_useropt_orig=$ac_useropt
1571 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1572 case $ac_user_opts in
1573 *"
1574 "enable_$ac_useropt"
1575 "*) ;;
1576 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1577 ac_unrecognized_sep=', ';;
1578 esac
1579 eval enable_$ac_useropt=no ;;
1580
1581 -docdir | --docdir | --docdi | --doc | --do)
1582 ac_prev=docdir ;;
1583 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1584 docdir=$ac_optarg ;;
1585
1586 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1587 ac_prev=dvidir ;;
1588 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1589 dvidir=$ac_optarg ;;
1590
1591 -enable-* | --enable-*)
1592 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1593 # Reject names that are not valid shell variable names.
1594 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1595 as_fn_error "invalid feature name: $ac_useropt"
1596 ac_useropt_orig=$ac_useropt
1597 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1598 case $ac_user_opts in
1599 *"
1600 "enable_$ac_useropt"
1601 "*) ;;
1602 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1603 ac_unrecognized_sep=', ';;
1604 esac
1605 eval enable_$ac_useropt=\$ac_optarg ;;
1606
1607 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1608 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1609 | --exec | --exe | --ex)
1610 ac_prev=exec_prefix ;;
1611 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1612 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1613 | --exec=* | --exe=* | --ex=*)
1614 exec_prefix=$ac_optarg ;;
1615
1616 -gas | --gas | --ga | --g)
1617 # Obsolete; use --with-gas.
1618 with_gas=yes ;;
1619
1620 -help | --help | --hel | --he | -h)
1621 ac_init_help=long ;;
1622 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1623 ac_init_help=recursive ;;
1624 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1625 ac_init_help=short ;;
1626
1627 -host | --host | --hos | --ho)
1628 ac_prev=host_alias ;;
1629 -host=* | --host=* | --hos=* | --ho=*)
1630 host_alias=$ac_optarg ;;
1631
1632 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1633 ac_prev=htmldir ;;
1634 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1635 | --ht=*)
1636 htmldir=$ac_optarg ;;
1637
1638 -includedir | --includedir | --includedi | --included | --include \
1639 | --includ | --inclu | --incl | --inc)
1640 ac_prev=includedir ;;
1641 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1642 | --includ=* | --inclu=* | --incl=* | --inc=*)
1643 includedir=$ac_optarg ;;
1644
1645 -infodir | --infodir | --infodi | --infod | --info | --inf)
1646 ac_prev=infodir ;;
1647 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1648 infodir=$ac_optarg ;;
1649
1650 -libdir | --libdir | --libdi | --libd)
1651 ac_prev=libdir ;;
1652 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1653 libdir=$ac_optarg ;;
1654
1655 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1656 | --libexe | --libex | --libe)
1657 ac_prev=libexecdir ;;
1658 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1659 | --libexe=* | --libex=* | --libe=*)
1660 libexecdir=$ac_optarg ;;
1661
1662 -localedir | --localedir | --localedi | --localed | --locale)
1663 ac_prev=localedir ;;
1664 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1665 localedir=$ac_optarg ;;
1666
1667 -localstatedir | --localstatedir | --localstatedi | --localstated \
1668 | --localstate | --localstat | --localsta | --localst | --locals)
1669 ac_prev=localstatedir ;;
1670 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1671 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1672 localstatedir=$ac_optarg ;;
1673
1674 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1675 ac_prev=mandir ;;
1676 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1677 mandir=$ac_optarg ;;
1678
1679 -nfp | --nfp | --nf)
1680 # Obsolete; use --without-fp.
1681 with_fp=no ;;
1682
1683 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1684 | --no-cr | --no-c | -n)
1685 no_create=yes ;;
1686
1687 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1688 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1689 no_recursion=yes ;;
1690
1691 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1692 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1693 | --oldin | --oldi | --old | --ol | --o)
1694 ac_prev=oldincludedir ;;
1695 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1696 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1697 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1698 oldincludedir=$ac_optarg ;;
1699
1700 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1701 ac_prev=prefix ;;
1702 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1703 prefix=$ac_optarg ;;
1704
1705 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1706 | --program-pre | --program-pr | --program-p)
1707 ac_prev=program_prefix ;;
1708 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1709 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1710 program_prefix=$ac_optarg ;;
1711
1712 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1713 | --program-suf | --program-su | --program-s)
1714 ac_prev=program_suffix ;;
1715 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1716 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1717 program_suffix=$ac_optarg ;;
1718
1719 -program-transform-name | --program-transform-name \
1720 | --program-transform-nam | --program-transform-na \
1721 | --program-transform-n | --program-transform- \
1722 | --program-transform | --program-transfor \
1723 | --program-transfo | --program-transf \
1724 | --program-trans | --program-tran \
1725 | --progr-tra | --program-tr | --program-t)
1726 ac_prev=program_transform_name ;;
1727 -program-transform-name=* | --program-transform-name=* \
1728 | --program-transform-nam=* | --program-transform-na=* \
1729 | --program-transform-n=* | --program-transform-=* \
1730 | --program-transform=* | --program-transfor=* \
1731 | --program-transfo=* | --program-transf=* \
1732 | --program-trans=* | --program-tran=* \
1733 | --progr-tra=* | --program-tr=* | --program-t=*)
1734 program_transform_name=$ac_optarg ;;
1735
1736 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1737 ac_prev=pdfdir ;;
1738 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1739 pdfdir=$ac_optarg ;;
1740
1741 -psdir | --psdir | --psdi | --psd | --ps)
1742 ac_prev=psdir ;;
1743 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1744 psdir=$ac_optarg ;;
1745
1746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1747 | -silent | --silent | --silen | --sile | --sil)
1748 silent=yes ;;
1749
1750 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1751 ac_prev=sbindir ;;
1752 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1753 | --sbi=* | --sb=*)
1754 sbindir=$ac_optarg ;;
1755
1756 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1757 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1758 | --sharedst | --shareds | --shared | --share | --shar \
1759 | --sha | --sh)
1760 ac_prev=sharedstatedir ;;
1761 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1762 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1763 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1764 | --sha=* | --sh=*)
1765 sharedstatedir=$ac_optarg ;;
1766
1767 -site | --site | --sit)
1768 ac_prev=site ;;
1769 -site=* | --site=* | --sit=*)
1770 site=$ac_optarg ;;
1771
1772 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1773 ac_prev=srcdir ;;
1774 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1775 srcdir=$ac_optarg ;;
1776
1777 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1778 | --syscon | --sysco | --sysc | --sys | --sy)
1779 ac_prev=sysconfdir ;;
1780 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1781 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1782 sysconfdir=$ac_optarg ;;
1783
1784 -target | --target | --targe | --targ | --tar | --ta | --t)
1785 ac_prev=target_alias ;;
1786 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1787 target_alias=$ac_optarg ;;
1788
1789 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1790 verbose=yes ;;
1791
1792 -version | --version | --versio | --versi | --vers | -V)
1793 ac_init_version=: ;;
1794
1795 -with-* | --with-*)
1796 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1797 # Reject names that are not valid shell variable names.
1798 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1799 as_fn_error "invalid package name: $ac_useropt"
1800 ac_useropt_orig=$ac_useropt
1801 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1802 case $ac_user_opts in
1803 *"
1804 "with_$ac_useropt"
1805 "*) ;;
1806 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1807 ac_unrecognized_sep=', ';;
1808 esac
1809 eval with_$ac_useropt=\$ac_optarg ;;
1810
1811 -without-* | --without-*)
1812 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1813 # Reject names that are not valid shell variable names.
1814 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1815 as_fn_error "invalid package name: $ac_useropt"
1816 ac_useropt_orig=$ac_useropt
1817 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1818 case $ac_user_opts in
1819 *"
1820 "with_$ac_useropt"
1821 "*) ;;
1822 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1823 ac_unrecognized_sep=', ';;
1824 esac
1825 eval with_$ac_useropt=no ;;
1826
1827 --x)
1828 # Obsolete; use --with-x.
1829 with_x=yes ;;
1830
1831 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1832 | --x-incl | --x-inc | --x-in | --x-i)
1833 ac_prev=x_includes ;;
1834 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1835 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1836 x_includes=$ac_optarg ;;
1837
1838 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1839 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1840 ac_prev=x_libraries ;;
1841 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1842 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1843 x_libraries=$ac_optarg ;;
1844
1845 -*) as_fn_error "unrecognized option: \`$ac_option'
1846 Try \`$0 --help' for more information."
1847 ;;
1848
1849 *=*)
1850 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1851 # Reject names that are not valid shell variable names.
1852 case $ac_envvar in #(
1853 '' | [0-9]* | *[!_$as_cr_alnum]* )
1854 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1855 esac
1856 eval $ac_envvar=\$ac_optarg
1857 export $ac_envvar ;;
1858
1859 *)
1860 # FIXME: should be removed in autoconf 3.0.
1861 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1862 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1863 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1864 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1865 ;;
1866
1867 esac
1868 done
1869
1870 if test -n "$ac_prev"; then
1871 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1872 as_fn_error "missing argument to $ac_option"
1873 fi
1874
1875 if test -n "$ac_unrecognized_opts"; then
1876 case $enable_option_checking in
1877 no) ;;
1878 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1879 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1880 esac
1881 fi
1882
1883 # Check all directory arguments for consistency.
1884 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1885 datadir sysconfdir sharedstatedir localstatedir includedir \
1886 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1887 libdir localedir mandir
1888 do
1889 eval ac_val=\$$ac_var
1890 # Remove trailing slashes.
1891 case $ac_val in
1892 */ )
1893 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1894 eval $ac_var=\$ac_val;;
1895 esac
1896 # Be sure to have absolute directory names.
1897 case $ac_val in
1898 [\\/$]* | ?:[\\/]* ) continue;;
1899 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1900 esac
1901 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1902 done
1903
1904 # There might be people who depend on the old broken behavior: `$host'
1905 # used to hold the argument of --host etc.
1906 # FIXME: To remove some day.
1907 build=$build_alias
1908 host=$host_alias
1909 target=$target_alias
1910
1911 # FIXME: To remove some day.
1912 if test "x$host_alias" != x; then
1913 if test "x$build_alias" = x; then
1914 cross_compiling=maybe
1915 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1916 If a cross compiler is detected then cross compile mode will be used." >&2
1917 elif test "x$build_alias" != "x$host_alias"; then
1918 cross_compiling=yes
1919 fi
1920 fi
1921
1922 ac_tool_prefix=
1923 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1924
1925 test "$silent" = yes && exec 6>/dev/null
1926
1927
1928 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1929 ac_ls_di=`ls -di .` &&
1930 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1931 as_fn_error "working directory cannot be determined"
1932 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1933 as_fn_error "pwd does not report name of working directory"
1934
1935
1936 # Find the source files, if location was not specified.
1937 if test -z "$srcdir"; then
1938 ac_srcdir_defaulted=yes
1939 # Try the directory containing this script, then the parent directory.
1940 ac_confdir=`$as_dirname -- "$as_myself" ||
1941 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1942 X"$as_myself" : 'X\(//\)[^/]' \| \
1943 X"$as_myself" : 'X\(//\)$' \| \
1944 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1945 $as_echo X"$as_myself" |
1946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1947 s//\1/
1948 q
1949 }
1950 /^X\(\/\/\)[^/].*/{
1951 s//\1/
1952 q
1953 }
1954 /^X\(\/\/\)$/{
1955 s//\1/
1956 q
1957 }
1958 /^X\(\/\).*/{
1959 s//\1/
1960 q
1961 }
1962 s/.*/./; q'`
1963 srcdir=$ac_confdir
1964 if test ! -r "$srcdir/$ac_unique_file"; then
1965 srcdir=..
1966 fi
1967 else
1968 ac_srcdir_defaulted=no
1969 fi
1970 if test ! -r "$srcdir/$ac_unique_file"; then
1971 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1972 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1973 fi
1974 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1975 ac_abs_confdir=`(
1976 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1977 pwd)`
1978 # When building in place, set srcdir=.
1979 if test "$ac_abs_confdir" = "$ac_pwd"; then
1980 srcdir=.
1981 fi
1982 # Remove unnecessary trailing slashes from srcdir.
1983 # Double slashes in file names in object file debugging info
1984 # mess up M-x gdb in Emacs.
1985 case $srcdir in
1986 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1987 esac
1988 for ac_var in $ac_precious_vars; do
1989 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1990 eval ac_env_${ac_var}_value=\$${ac_var}
1991 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1992 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1993 done
1994
1995 #
1996 # Report the --help message.
1997 #
1998 if test "$ac_init_help" = "long"; then
1999 # Omit some internal or obsolete options to make the list less imposing.
2000 # This message is too long to be a string in the A/UX 3.1 sh.
2001 cat <<_ACEOF
2002 \`configure' configures this package to adapt to many kinds of systems.
2003
2004 Usage: $0 [OPTION]... [VAR=VALUE]...
2005
2006 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2007 VAR=VALUE. See below for descriptions of some of the useful variables.
2008
2009 Defaults for the options are specified in brackets.
2010
2011 Configuration:
2012 -h, --help display this help and exit
2013 --help=short display options specific to this package
2014 --help=recursive display the short help of all the included packages
2015 -V, --version display version information and exit
2016 -q, --quiet, --silent do not print \`checking...' messages
2017 --cache-file=FILE cache test results in FILE [disabled]
2018 -C, --config-cache alias for \`--cache-file=config.cache'
2019 -n, --no-create do not create output files
2020 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2021
2022 Installation directories:
2023 --prefix=PREFIX install architecture-independent files in PREFIX
2024 [$ac_default_prefix]
2025 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2026 [PREFIX]
2027
2028 By default, \`make install' will install all the files in
2029 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2030 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2031 for instance \`--prefix=\$HOME'.
2032
2033 For better control, use the options below.
2034
2035 Fine tuning of the installation directories:
2036 --bindir=DIR user executables [EPREFIX/bin]
2037 --sbindir=DIR system admin executables [EPREFIX/sbin]
2038 --libexecdir=DIR program executables [EPREFIX/libexec]
2039 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2040 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2041 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2042 --libdir=DIR object code libraries [EPREFIX/lib]
2043 --includedir=DIR C header files [PREFIX/include]
2044 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2045 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2046 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2047 --infodir=DIR info documentation [DATAROOTDIR/info]
2048 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2049 --mandir=DIR man documentation [DATAROOTDIR/man]
2050 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2051 --htmldir=DIR html documentation [DOCDIR]
2052 --dvidir=DIR dvi documentation [DOCDIR]
2053 --pdfdir=DIR pdf documentation [DOCDIR]
2054 --psdir=DIR ps documentation [DOCDIR]
2055 _ACEOF
2056
2057 cat <<\_ACEOF
2058
2059 Program names:
2060 --program-prefix=PREFIX prepend PREFIX to installed program names
2061 --program-suffix=SUFFIX append SUFFIX to installed program names
2062 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2063
2064 System types:
2065 --build=BUILD configure for building on BUILD [guessed]
2066 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2067 --target=TARGET configure for building compilers for TARGET [HOST]
2068 _ACEOF
2069 fi
2070
2071 if test -n "$ac_init_help"; then
2072
2073 cat <<\_ACEOF
2074
2075 Optional Features:
2076 --disable-option-checking ignore unrecognized --enable/--with options
2077 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2078 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2079 --enable-maintainer-mode enable make rules and dependencies not useful
2080 (and sometimes confusing) to the casual installer
2081 --disable-largefile omit support for large files
2082 --disable-dependency-tracking speeds up one-time build
2083 --enable-dependency-tracking do not reject slow dependency extractors
2084
2085 Some influential environment variables:
2086 CC C compiler command
2087 CFLAGS C compiler flags
2088 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2089 nonstandard directory <lib dir>
2090 LIBS libraries to pass to the linker, e.g. -l<library>
2091 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2092 you have headers in a nonstandard directory <include dir>
2093 CPP C preprocessor
2094
2095 Use these variables to override the choices made by `configure' or to help
2096 it to find libraries and programs with nonstandard names/locations.
2097
2098 Report bugs to the package provider.
2099 _ACEOF
2100 ac_status=$?
2101 fi
2102
2103 if test "$ac_init_help" = "recursive"; then
2104 # If there are subdirs, report their specific --help.
2105 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2106 test -d "$ac_dir" ||
2107 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2108 continue
2109 ac_builddir=.
2110
2111 case "$ac_dir" in
2112 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2113 *)
2114 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2115 # A ".." for each directory in $ac_dir_suffix.
2116 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2117 case $ac_top_builddir_sub in
2118 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2119 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2120 esac ;;
2121 esac
2122 ac_abs_top_builddir=$ac_pwd
2123 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2124 # for backward compatibility:
2125 ac_top_builddir=$ac_top_build_prefix
2126
2127 case $srcdir in
2128 .) # We are building in place.
2129 ac_srcdir=.
2130 ac_top_srcdir=$ac_top_builddir_sub
2131 ac_abs_top_srcdir=$ac_pwd ;;
2132 [\\/]* | ?:[\\/]* ) # Absolute name.
2133 ac_srcdir=$srcdir$ac_dir_suffix;
2134 ac_top_srcdir=$srcdir
2135 ac_abs_top_srcdir=$srcdir ;;
2136 *) # Relative name.
2137 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2138 ac_top_srcdir=$ac_top_build_prefix$srcdir
2139 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2140 esac
2141 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2142
2143 cd "$ac_dir" || { ac_status=$?; continue; }
2144 # Check for guested configure.
2145 if test -f "$ac_srcdir/configure.gnu"; then
2146 echo &&
2147 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2148 elif test -f "$ac_srcdir/configure"; then
2149 echo &&
2150 $SHELL "$ac_srcdir/configure" --help=recursive
2151 else
2152 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2153 fi || ac_status=$?
2154 cd "$ac_pwd" || { ac_status=$?; break; }
2155 done
2156 fi
2157
2158 test -n "$ac_init_help" && exit $ac_status
2159 if $ac_init_version; then
2160 cat <<\_ACEOF
2161 configure
2162 generated by GNU Autoconf 2.64
2163
2164 Copyright (C) 2009 Free Software Foundation, Inc.
2165 This configure script is free software; the Free Software Foundation
2166 gives unlimited permission to copy, distribute and modify it.
2167 _ACEOF
2168 exit
2169 fi
2170
2171 ## ------------------------ ##
2172 ## Autoconf initialization. ##
2173 ## ------------------------ ##
2174
2175 # ac_fn_c_try_compile LINENO
2176 # --------------------------
2177 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2178 ac_fn_c_try_compile ()
2179 {
2180 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2181 rm -f conftest.$ac_objext
2182 if { { ac_try="$ac_compile"
2183 case "(($ac_try" in
2184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2185 *) ac_try_echo=$ac_try;;
2186 esac
2187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2188 $as_echo "$ac_try_echo"; } >&5
2189 (eval "$ac_compile") 2>conftest.err
2190 ac_status=$?
2191 if test -s conftest.err; then
2192 grep -v '^ *+' conftest.err >conftest.er1
2193 cat conftest.er1 >&5
2194 mv -f conftest.er1 conftest.err
2195 fi
2196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2197 test $ac_status = 0; } && {
2198 test -z "$ac_c_werror_flag" ||
2199 test ! -s conftest.err
2200 } && test -s conftest.$ac_objext; then :
2201 ac_retval=0
2202 else
2203 $as_echo "$as_me: failed program was:" >&5
2204 sed 's/^/| /' conftest.$ac_ext >&5
2205
2206 ac_retval=1
2207 fi
2208 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2209 return $ac_retval
2210
2211 } # ac_fn_c_try_compile
2212
2213 # ac_fn_c_try_cpp LINENO
2214 # ----------------------
2215 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2216 ac_fn_c_try_cpp ()
2217 {
2218 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2219 if { { ac_try="$ac_cpp conftest.$ac_ext"
2220 case "(($ac_try" in
2221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2222 *) ac_try_echo=$ac_try;;
2223 esac
2224 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2225 $as_echo "$ac_try_echo"; } >&5
2226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2227 ac_status=$?
2228 if test -s conftest.err; then
2229 grep -v '^ *+' conftest.err >conftest.er1
2230 cat conftest.er1 >&5
2231 mv -f conftest.er1 conftest.err
2232 fi
2233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2234 test $ac_status = 0; } >/dev/null && {
2235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2236 test ! -s conftest.err
2237 }; then :
2238 ac_retval=0
2239 else
2240 $as_echo "$as_me: failed program was:" >&5
2241 sed 's/^/| /' conftest.$ac_ext >&5
2242
2243 ac_retval=1
2244 fi
2245 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2246 return $ac_retval
2247
2248 } # ac_fn_c_try_cpp
2249
2250 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2251 # -------------------------------------------------------
2252 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2253 # the include files in INCLUDES and setting the cache variable VAR
2254 # accordingly.
2255 ac_fn_c_check_header_mongrel ()
2256 {
2257 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2258 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2260 $as_echo_n "checking for $2... " >&6; }
2261 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2262 $as_echo_n "(cached) " >&6
2263 fi
2264 eval ac_res=\$$3
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2266 $as_echo "$ac_res" >&6; }
2267 else
2268 # Is the header compilable?
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2270 $as_echo_n "checking $2 usability... " >&6; }
2271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2272 /* end confdefs.h. */
2273 $4
2274 #include <$2>
2275 _ACEOF
2276 if ac_fn_c_try_compile "$LINENO"; then :
2277 ac_header_compiler=yes
2278 else
2279 ac_header_compiler=no
2280 fi
2281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2283 $as_echo "$ac_header_compiler" >&6; }
2284
2285 # Is the header present?
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2287 $as_echo_n "checking $2 presence... " >&6; }
2288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2289 /* end confdefs.h. */
2290 #include <$2>
2291 _ACEOF
2292 if ac_fn_c_try_cpp "$LINENO"; then :
2293 ac_header_preproc=yes
2294 else
2295 ac_header_preproc=no
2296 fi
2297 rm -f conftest.err conftest.$ac_ext
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2299 $as_echo "$ac_header_preproc" >&6; }
2300
2301 # So? What about this header?
2302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2303 yes:no: )
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2305 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2307 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2308 ;;
2309 no:yes:* )
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2311 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2313 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2315 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2317 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2319 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2320 ;;
2321 esac
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2323 $as_echo_n "checking for $2... " >&6; }
2324 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2325 $as_echo_n "(cached) " >&6
2326 else
2327 eval "$3=\$ac_header_compiler"
2328 fi
2329 eval ac_res=\$$3
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2331 $as_echo "$ac_res" >&6; }
2332 fi
2333 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2334
2335 } # ac_fn_c_check_header_mongrel
2336
2337 # ac_fn_c_try_run LINENO
2338 # ----------------------
2339 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2340 # that executables *can* be run.
2341 ac_fn_c_try_run ()
2342 {
2343 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2344 if { { ac_try="$ac_link"
2345 case "(($ac_try" in
2346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2347 *) ac_try_echo=$ac_try;;
2348 esac
2349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2350 $as_echo "$ac_try_echo"; } >&5
2351 (eval "$ac_link") 2>&5
2352 ac_status=$?
2353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2354 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2355 { { case "(($ac_try" in
2356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357 *) ac_try_echo=$ac_try;;
2358 esac
2359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2360 $as_echo "$ac_try_echo"; } >&5
2361 (eval "$ac_try") 2>&5
2362 ac_status=$?
2363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2364 test $ac_status = 0; }; }; then :
2365 ac_retval=0
2366 else
2367 $as_echo "$as_me: program exited with status $ac_status" >&5
2368 $as_echo "$as_me: failed program was:" >&5
2369 sed 's/^/| /' conftest.$ac_ext >&5
2370
2371 ac_retval=$ac_status
2372 fi
2373 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2374 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2375 return $ac_retval
2376
2377 } # ac_fn_c_try_run
2378
2379 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2380 # -------------------------------------------------------
2381 # Tests whether HEADER exists and can be compiled using the include files in
2382 # INCLUDES, setting the cache variable VAR accordingly.
2383 ac_fn_c_check_header_compile ()
2384 {
2385 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2387 $as_echo_n "checking for $2... " >&6; }
2388 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2389 $as_echo_n "(cached) " >&6
2390 else
2391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2392 /* end confdefs.h. */
2393 $4
2394 #include <$2>
2395 _ACEOF
2396 if ac_fn_c_try_compile "$LINENO"; then :
2397 eval "$3=yes"
2398 else
2399 eval "$3=no"
2400 fi
2401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2402 fi
2403 eval ac_res=\$$3
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2405 $as_echo "$ac_res" >&6; }
2406 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2407
2408 } # ac_fn_c_check_header_compile
2409
2410 # ac_fn_c_try_link LINENO
2411 # -----------------------
2412 # Try to link conftest.$ac_ext, and return whether this succeeded.
2413 ac_fn_c_try_link ()
2414 {
2415 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2416 rm -f conftest.$ac_objext conftest$ac_exeext
2417 if { { ac_try="$ac_link"
2418 case "(($ac_try" in
2419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420 *) ac_try_echo=$ac_try;;
2421 esac
2422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2423 $as_echo "$ac_try_echo"; } >&5
2424 (eval "$ac_link") 2>conftest.err
2425 ac_status=$?
2426 if test -s conftest.err; then
2427 grep -v '^ *+' conftest.err >conftest.er1
2428 cat conftest.er1 >&5
2429 mv -f conftest.er1 conftest.err
2430 fi
2431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2432 test $ac_status = 0; } && {
2433 test -z "$ac_c_werror_flag" ||
2434 test ! -s conftest.err
2435 } && test -s conftest$ac_exeext && {
2436 test "$cross_compiling" = yes ||
2437 $as_test_x conftest$ac_exeext
2438 }; then :
2439 ac_retval=0
2440 else
2441 $as_echo "$as_me: failed program was:" >&5
2442 sed 's/^/| /' conftest.$ac_ext >&5
2443
2444 ac_retval=1
2445 fi
2446 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2447 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2448 # interfere with the next link command; also delete a directory that is
2449 # left behind by Apple's compiler. We do this before executing the actions.
2450 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2451 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2452 return $ac_retval
2453
2454 } # ac_fn_c_try_link
2455
2456 # ac_fn_c_check_func LINENO FUNC VAR
2457 # ----------------------------------
2458 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2459 ac_fn_c_check_func ()
2460 {
2461 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
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 else
2467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2468 /* end confdefs.h. */
2469 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2471 #define $2 innocuous_$2
2472
2473 /* System header to define __stub macros and hopefully few prototypes,
2474 which can conflict with char $2 (); below.
2475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2476 <limits.h> exists even on freestanding compilers. */
2477
2478 #ifdef __STDC__
2479 # include <limits.h>
2480 #else
2481 # include <assert.h>
2482 #endif
2483
2484 #undef $2
2485
2486 /* Override any GCC internal prototype to avoid an error.
2487 Use char because int might match the return type of a GCC
2488 builtin and then its argument prototype would still apply. */
2489 #ifdef __cplusplus
2490 extern "C"
2491 #endif
2492 char $2 ();
2493 /* The GNU C library defines this for functions which it implements
2494 to always fail with ENOSYS. Some functions are actually named
2495 something starting with __ and the normal name is an alias. */
2496 #if defined __stub_$2 || defined __stub___$2
2497 choke me
2498 #endif
2499
2500 int
2501 main ()
2502 {
2503 return $2 ();
2504 ;
2505 return 0;
2506 }
2507 _ACEOF
2508 if ac_fn_c_try_link "$LINENO"; then :
2509 eval "$3=yes"
2510 else
2511 eval "$3=no"
2512 fi
2513 rm -f core conftest.err conftest.$ac_objext \
2514 conftest$ac_exeext conftest.$ac_ext
2515 fi
2516 eval ac_res=\$$3
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2518 $as_echo "$ac_res" >&6; }
2519 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2520
2521 } # ac_fn_c_check_func
2522
2523 # ac_fn_c_check_decl LINENO SYMBOL VAR
2524 # ------------------------------------
2525 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2526 ac_fn_c_check_decl ()
2527 {
2528 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2530 $as_echo_n "checking whether $2 is declared... " >&6; }
2531 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2532 $as_echo_n "(cached) " >&6
2533 else
2534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2535 /* end confdefs.h. */
2536 $4
2537 int
2538 main ()
2539 {
2540 #ifndef $2
2541 (void) $2;
2542 #endif
2543
2544 ;
2545 return 0;
2546 }
2547 _ACEOF
2548 if ac_fn_c_try_compile "$LINENO"; then :
2549 eval "$3=yes"
2550 else
2551 eval "$3=no"
2552 fi
2553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2554 fi
2555 eval ac_res=\$$3
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2557 $as_echo "$ac_res" >&6; }
2558 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2559
2560 } # ac_fn_c_check_decl
2561
2562 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2563 # --------------------------------------------
2564 # Tries to find the compile-time value of EXPR in a program that includes
2565 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2566 # computed
2567 ac_fn_c_compute_int ()
2568 {
2569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2570 if test "$cross_compiling" = yes; then
2571 # Depending upon the size, compute the lo and hi bounds.
2572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573 /* end confdefs.h. */
2574 $4
2575 int
2576 main ()
2577 {
2578 static int test_array [1 - 2 * !(($2) >= 0)];
2579 test_array [0] = 0
2580
2581 ;
2582 return 0;
2583 }
2584 _ACEOF
2585 if ac_fn_c_try_compile "$LINENO"; then :
2586 ac_lo=0 ac_mid=0
2587 while :; do
2588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589 /* end confdefs.h. */
2590 $4
2591 int
2592 main ()
2593 {
2594 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2595 test_array [0] = 0
2596
2597 ;
2598 return 0;
2599 }
2600 _ACEOF
2601 if ac_fn_c_try_compile "$LINENO"; then :
2602 ac_hi=$ac_mid; break
2603 else
2604 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2605 if test $ac_lo -le $ac_mid; then
2606 ac_lo= ac_hi=
2607 break
2608 fi
2609 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2610 fi
2611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612 done
2613 else
2614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2615 /* end confdefs.h. */
2616 $4
2617 int
2618 main ()
2619 {
2620 static int test_array [1 - 2 * !(($2) < 0)];
2621 test_array [0] = 0
2622
2623 ;
2624 return 0;
2625 }
2626 _ACEOF
2627 if ac_fn_c_try_compile "$LINENO"; then :
2628 ac_hi=-1 ac_mid=-1
2629 while :; do
2630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2631 /* end confdefs.h. */
2632 $4
2633 int
2634 main ()
2635 {
2636 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2637 test_array [0] = 0
2638
2639 ;
2640 return 0;
2641 }
2642 _ACEOF
2643 if ac_fn_c_try_compile "$LINENO"; then :
2644 ac_lo=$ac_mid; break
2645 else
2646 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2647 if test $ac_mid -le $ac_hi; then
2648 ac_lo= ac_hi=
2649 break
2650 fi
2651 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2652 fi
2653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2654 done
2655 else
2656 ac_lo= ac_hi=
2657 fi
2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2659 fi
2660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2661 # Binary search between lo and hi bounds.
2662 while test "x$ac_lo" != "x$ac_hi"; do
2663 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2665 /* end confdefs.h. */
2666 $4
2667 int
2668 main ()
2669 {
2670 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2671 test_array [0] = 0
2672
2673 ;
2674 return 0;
2675 }
2676 _ACEOF
2677 if ac_fn_c_try_compile "$LINENO"; then :
2678 ac_hi=$ac_mid
2679 else
2680 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2681 fi
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2683 done
2684 case $ac_lo in #((
2685 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2686 '') ac_retval=1 ;;
2687 esac
2688 else
2689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2690 /* end confdefs.h. */
2691 $4
2692 static long int longval () { return $2; }
2693 static unsigned long int ulongval () { return $2; }
2694 #include <stdio.h>
2695 #include <stdlib.h>
2696 int
2697 main ()
2698 {
2699
2700 FILE *f = fopen ("conftest.val", "w");
2701 if (! f)
2702 return 1;
2703 if (($2) < 0)
2704 {
2705 long int i = longval ();
2706 if (i != ($2))
2707 return 1;
2708 fprintf (f, "%ld", i);
2709 }
2710 else
2711 {
2712 unsigned long int i = ulongval ();
2713 if (i != ($2))
2714 return 1;
2715 fprintf (f, "%lu", i);
2716 }
2717 /* Do not output a trailing newline, as this causes \r\n confusion
2718 on some platforms. */
2719 return ferror (f) || fclose (f) != 0;
2720
2721 ;
2722 return 0;
2723 }
2724 _ACEOF
2725 if ac_fn_c_try_run "$LINENO"; then :
2726 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2727 else
2728 ac_retval=1
2729 fi
2730 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2731 conftest.$ac_objext conftest.beam conftest.$ac_ext
2732 rm -f conftest.val
2733
2734 fi
2735 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2736 return $ac_retval
2737
2738 } # ac_fn_c_compute_int
2739
2740 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2741 # -------------------------------------------
2742 # Tests whether TYPE exists after having included INCLUDES, setting cache
2743 # variable VAR accordingly.
2744 ac_fn_c_check_type ()
2745 {
2746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2748 $as_echo_n "checking for $2... " >&6; }
2749 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2750 $as_echo_n "(cached) " >&6
2751 else
2752 eval "$3=no"
2753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2754 /* end confdefs.h. */
2755 $4
2756 int
2757 main ()
2758 {
2759 if (sizeof ($2))
2760 return 0;
2761 ;
2762 return 0;
2763 }
2764 _ACEOF
2765 if ac_fn_c_try_compile "$LINENO"; then :
2766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2767 /* end confdefs.h. */
2768 $4
2769 int
2770 main ()
2771 {
2772 if (sizeof (($2)))
2773 return 0;
2774 ;
2775 return 0;
2776 }
2777 _ACEOF
2778 if ac_fn_c_try_compile "$LINENO"; then :
2779
2780 else
2781 eval "$3=yes"
2782 fi
2783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2784 fi
2785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2786 fi
2787 eval ac_res=\$$3
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2789 $as_echo "$ac_res" >&6; }
2790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2791
2792 } # ac_fn_c_check_type
2793 cat >config.log <<_ACEOF
2794 This file contains any messages produced by compilers while
2795 running configure, to aid debugging if configure makes a mistake.
2796
2797 It was created by $as_me, which was
2798 generated by GNU Autoconf 2.64. Invocation command line was
2799
2800 $ $0 $@
2801
2802 _ACEOF
2803 exec 5>>config.log
2804 {
2805 cat <<_ASUNAME
2806 ## --------- ##
2807 ## Platform. ##
2808 ## --------- ##
2809
2810 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2811 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2812 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2813 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2814 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2815
2816 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2817 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2818
2819 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2820 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2821 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2822 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2823 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2824 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2825 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2826
2827 _ASUNAME
2828
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 for as_dir in $PATH
2831 do
2832 IFS=$as_save_IFS
2833 test -z "$as_dir" && as_dir=.
2834 $as_echo "PATH: $as_dir"
2835 done
2836 IFS=$as_save_IFS
2837
2838 } >&5
2839
2840 cat >&5 <<_ACEOF
2841
2842
2843 ## ----------- ##
2844 ## Core tests. ##
2845 ## ----------- ##
2846
2847 _ACEOF
2848
2849
2850 # Keep a trace of the command line.
2851 # Strip out --no-create and --no-recursion so they do not pile up.
2852 # Strip out --silent because we don't want to record it for future runs.
2853 # Also quote any args containing shell meta-characters.
2854 # Make two passes to allow for proper duplicate-argument suppression.
2855 ac_configure_args=
2856 ac_configure_args0=
2857 ac_configure_args1=
2858 ac_must_keep_next=false
2859 for ac_pass in 1 2
2860 do
2861 for ac_arg
2862 do
2863 case $ac_arg in
2864 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2865 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2866 | -silent | --silent | --silen | --sile | --sil)
2867 continue ;;
2868 *\'*)
2869 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2870 esac
2871 case $ac_pass in
2872 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2873 2)
2874 as_fn_append ac_configure_args1 " '$ac_arg'"
2875 if test $ac_must_keep_next = true; then
2876 ac_must_keep_next=false # Got value, back to normal.
2877 else
2878 case $ac_arg in
2879 *=* | --config-cache | -C | -disable-* | --disable-* \
2880 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2881 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2882 | -with-* | --with-* | -without-* | --without-* | --x)
2883 case "$ac_configure_args0 " in
2884 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2885 esac
2886 ;;
2887 -* ) ac_must_keep_next=true ;;
2888 esac
2889 fi
2890 as_fn_append ac_configure_args " '$ac_arg'"
2891 ;;
2892 esac
2893 done
2894 done
2895 { ac_configure_args0=; unset ac_configure_args0;}
2896 { ac_configure_args1=; unset ac_configure_args1;}
2897
2898 # When interrupted or exit'd, cleanup temporary files, and complete
2899 # config.log. We remove comments because anyway the quotes in there
2900 # would cause problems or look ugly.
2901 # WARNING: Use '\'' to represent an apostrophe within the trap.
2902 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2903 trap 'exit_status=$?
2904 # Save into config.log some information that might help in debugging.
2905 {
2906 echo
2907
2908 cat <<\_ASBOX
2909 ## ---------------- ##
2910 ## Cache variables. ##
2911 ## ---------------- ##
2912 _ASBOX
2913 echo
2914 # The following way of writing the cache mishandles newlines in values,
2915 (
2916 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2917 eval ac_val=\$$ac_var
2918 case $ac_val in #(
2919 *${as_nl}*)
2920 case $ac_var in #(
2921 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2922 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2923 esac
2924 case $ac_var in #(
2925 _ | IFS | as_nl) ;; #(
2926 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2927 *) { eval $ac_var=; unset $ac_var;} ;;
2928 esac ;;
2929 esac
2930 done
2931 (set) 2>&1 |
2932 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2933 *${as_nl}ac_space=\ *)
2934 sed -n \
2935 "s/'\''/'\''\\\\'\'''\''/g;
2936 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2937 ;; #(
2938 *)
2939 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2940 ;;
2941 esac |
2942 sort
2943 )
2944 echo
2945
2946 cat <<\_ASBOX
2947 ## ----------------- ##
2948 ## Output variables. ##
2949 ## ----------------- ##
2950 _ASBOX
2951 echo
2952 for ac_var in $ac_subst_vars
2953 do
2954 eval ac_val=\$$ac_var
2955 case $ac_val in
2956 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2957 esac
2958 $as_echo "$ac_var='\''$ac_val'\''"
2959 done | sort
2960 echo
2961
2962 if test -n "$ac_subst_files"; then
2963 cat <<\_ASBOX
2964 ## ------------------- ##
2965 ## File substitutions. ##
2966 ## ------------------- ##
2967 _ASBOX
2968 echo
2969 for ac_var in $ac_subst_files
2970 do
2971 eval ac_val=\$$ac_var
2972 case $ac_val in
2973 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2974 esac
2975 $as_echo "$ac_var='\''$ac_val'\''"
2976 done | sort
2977 echo
2978 fi
2979
2980 if test -s confdefs.h; then
2981 cat <<\_ASBOX
2982 ## ----------- ##
2983 ## confdefs.h. ##
2984 ## ----------- ##
2985 _ASBOX
2986 echo
2987 cat confdefs.h
2988 echo
2989 fi
2990 test "$ac_signal" != 0 &&
2991 $as_echo "$as_me: caught signal $ac_signal"
2992 $as_echo "$as_me: exit $exit_status"
2993 } >&5
2994 rm -f core *.core core.conftest.* &&
2995 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2996 exit $exit_status
2997 ' 0
2998 for ac_signal in 1 2 13 15; do
2999 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3000 done
3001 ac_signal=0
3002
3003 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3004 rm -f -r conftest* confdefs.h
3005
3006 $as_echo "/* confdefs.h */" > confdefs.h
3007
3008 # Predefined preprocessor variables.
3009
3010 cat >>confdefs.h <<_ACEOF
3011 #define PACKAGE_NAME "$PACKAGE_NAME"
3012 _ACEOF
3013
3014 cat >>confdefs.h <<_ACEOF
3015 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3016 _ACEOF
3017
3018 cat >>confdefs.h <<_ACEOF
3019 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3020 _ACEOF
3021
3022 cat >>confdefs.h <<_ACEOF
3023 #define PACKAGE_STRING "$PACKAGE_STRING"
3024 _ACEOF
3025
3026 cat >>confdefs.h <<_ACEOF
3027 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3028 _ACEOF
3029
3030 cat >>confdefs.h <<_ACEOF
3031 #define PACKAGE_URL "$PACKAGE_URL"
3032 _ACEOF
3033
3034
3035 # Let the site file select an alternate cache file if it wants to.
3036 # Prefer an explicitly selected file to automatically selected ones.
3037 ac_site_file1=NONE
3038 ac_site_file2=NONE
3039 if test -n "$CONFIG_SITE"; then
3040 ac_site_file1=$CONFIG_SITE
3041 elif test "x$prefix" != xNONE; then
3042 ac_site_file1=$prefix/share/config.site
3043 ac_site_file2=$prefix/etc/config.site
3044 else
3045 ac_site_file1=$ac_default_prefix/share/config.site
3046 ac_site_file2=$ac_default_prefix/etc/config.site
3047 fi
3048 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3049 do
3050 test "x$ac_site_file" = xNONE && continue
3051 if test -r "$ac_site_file"; then
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3053 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3054 sed 's/^/| /' "$ac_site_file" >&5
3055 . "$ac_site_file"
3056 fi
3057 done
3058
3059 if test -r "$cache_file"; then
3060 # Some versions of bash will fail to source /dev/null (special
3061 # files actually), so we avoid doing that.
3062 if test -f "$cache_file"; then
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3064 $as_echo "$as_me: loading cache $cache_file" >&6;}
3065 case $cache_file in
3066 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3067 *) . "./$cache_file";;
3068 esac
3069 fi
3070 else
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3072 $as_echo "$as_me: creating cache $cache_file" >&6;}
3073 >$cache_file
3074 fi
3075
3076 as_fn_append ac_header_list " dirent.h"
3077 as_fn_append ac_func_list " btowc"
3078 as_fn_append ac_func_list " isblank"
3079 as_fn_append ac_func_list " iswctype"
3080 as_fn_append ac_func_list " mbsrtowcs"
3081 as_fn_append ac_func_list " mempcpy"
3082 as_fn_append ac_func_list " wmemchr"
3083 as_fn_append ac_func_list " wmemcpy"
3084 as_fn_append ac_func_list " wmempcpy"
3085 as_fn_append ac_header_list " wctype.h"
3086 gl_fnmatch_required=GNU
3087 as_fn_append ac_func_list " alarm"
3088 as_fn_append ac_header_list " wchar.h"
3089 as_fn_append ac_header_list " stdint.h"
3090 as_fn_append ac_header_list " inttypes.h"
3091 as_fn_append ac_header_list " unistd.h"
3092 as_fn_append ac_func_list " symlink"
3093 as_fn_append ac_func_list " lstat"
3094 as_fn_append ac_header_list " math.h"
3095 as_fn_append ac_func_list " mbsinit"
3096 as_fn_append ac_func_list " mbrtowc"
3097 as_fn_append ac_header_list " sys/mman.h"
3098 as_fn_append ac_func_list " mprotect"
3099 as_fn_append ac_header_list " sys/param.h"
3100 as_fn_append ac_func_list " readlink"
3101 as_fn_append ac_header_list " sys/stat.h"
3102 as_fn_append ac_header_list " sys/time.h"
3103 as_fn_append ac_header_list " features.h"
3104 as_fn_append ac_func_list " iswcntrl"
3105 # Check that the precious variables saved in the cache have kept the same
3106 # value.
3107 ac_cache_corrupted=false
3108 for ac_var in $ac_precious_vars; do
3109 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3110 eval ac_new_set=\$ac_env_${ac_var}_set
3111 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3112 eval ac_new_val=\$ac_env_${ac_var}_value
3113 case $ac_old_set,$ac_new_set in
3114 set,)
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3116 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3117 ac_cache_corrupted=: ;;
3118 ,set)
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3120 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3121 ac_cache_corrupted=: ;;
3122 ,);;
3123 *)
3124 if test "x$ac_old_val" != "x$ac_new_val"; then
3125 # differences in whitespace do not lead to failure.
3126 ac_old_val_w=`echo x $ac_old_val`
3127 ac_new_val_w=`echo x $ac_new_val`
3128 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3130 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3131 ac_cache_corrupted=:
3132 else
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3134 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3135 eval $ac_var=\$ac_old_val
3136 fi
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3138 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3140 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3141 fi;;
3142 esac
3143 # Pass precious variables to config.status.
3144 if test "$ac_new_set" = set; then
3145 case $ac_new_val in
3146 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3147 *) ac_arg=$ac_var=$ac_new_val ;;
3148 esac
3149 case " $ac_configure_args " in
3150 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3151 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3152 esac
3153 fi
3154 done
3155 if $ac_cache_corrupted; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3159 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3160 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3161 fi
3162 ## -------------------- ##
3163 ## Main body of script. ##
3164 ## -------------------- ##
3165
3166 ac_ext=c
3167 ac_cpp='$CPP $CPPFLAGS'
3168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171
3172
3173 ac_config_headers="$ac_config_headers config.h:config.in"
3174
3175
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3177 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3178 # Check whether --enable-maintainer-mode was given.
3179 if test "${enable_maintainer_mode+set}" = set; then :
3180 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3181 else
3182 USE_MAINTAINER_MODE=no
3183 fi
3184
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3186 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3187 if test $USE_MAINTAINER_MODE = yes; then
3188 MAINTAINER_MODE_TRUE=
3189 MAINTAINER_MODE_FALSE='#'
3190 else
3191 MAINTAINER_MODE_TRUE='#'
3192 MAINTAINER_MODE_FALSE=
3193 fi
3194
3195 MAINT=$MAINTAINER_MODE_TRUE
3196
3197
3198
3199 ac_ext=c
3200 ac_cpp='$CPP $CPPFLAGS'
3201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3204 if test -n "$ac_tool_prefix"; then
3205 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3206 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3208 $as_echo_n "checking for $ac_word... " >&6; }
3209 if test "${ac_cv_prog_CC+set}" = set; then :
3210 $as_echo_n "(cached) " >&6
3211 else
3212 if test -n "$CC"; then
3213 ac_cv_prog_CC="$CC" # Let the user override the test.
3214 else
3215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 for as_dir in $PATH
3217 do
3218 IFS=$as_save_IFS
3219 test -z "$as_dir" && as_dir=.
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3222 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3224 break 2
3225 fi
3226 done
3227 done
3228 IFS=$as_save_IFS
3229
3230 fi
3231 fi
3232 CC=$ac_cv_prog_CC
3233 if test -n "$CC"; then
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3235 $as_echo "$CC" >&6; }
3236 else
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238 $as_echo "no" >&6; }
3239 fi
3240
3241
3242 fi
3243 if test -z "$ac_cv_prog_CC"; then
3244 ac_ct_CC=$CC
3245 # Extract the first word of "gcc", so it can be a program name with args.
3246 set dummy gcc; ac_word=$2
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; }
3249 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3250 $as_echo_n "(cached) " >&6
3251 else
3252 if test -n "$ac_ct_CC"; then
3253 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3254 else
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 for as_dir in $PATH
3257 do
3258 IFS=$as_save_IFS
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3262 ac_cv_prog_ac_ct_CC="gcc"
3263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 break 2
3265 fi
3266 done
3267 done
3268 IFS=$as_save_IFS
3269
3270 fi
3271 fi
3272 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3273 if test -n "$ac_ct_CC"; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3275 $as_echo "$ac_ct_CC" >&6; }
3276 else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; }
3279 fi
3280
3281 if test "x$ac_ct_CC" = x; then
3282 CC=""
3283 else
3284 case $cross_compiling:$ac_tool_warned in
3285 yes:)
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3288 ac_tool_warned=yes ;;
3289 esac
3290 CC=$ac_ct_CC
3291 fi
3292 else
3293 CC="$ac_cv_prog_CC"
3294 fi
3295
3296 if test -z "$CC"; then
3297 if test -n "$ac_tool_prefix"; then
3298 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3299 set dummy ${ac_tool_prefix}cc; ac_word=$2
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3301 $as_echo_n "checking for $ac_word... " >&6; }
3302 if test "${ac_cv_prog_CC+set}" = set; then :
3303 $as_echo_n "(cached) " >&6
3304 else
3305 if test -n "$CC"; then
3306 ac_cv_prog_CC="$CC" # Let the user override the test.
3307 else
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 for as_dir in $PATH
3310 do
3311 IFS=$as_save_IFS
3312 test -z "$as_dir" && as_dir=.
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3315 ac_cv_prog_CC="${ac_tool_prefix}cc"
3316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3317 break 2
3318 fi
3319 done
3320 done
3321 IFS=$as_save_IFS
3322
3323 fi
3324 fi
3325 CC=$ac_cv_prog_CC
3326 if test -n "$CC"; then
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3328 $as_echo "$CC" >&6; }
3329 else
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3331 $as_echo "no" >&6; }
3332 fi
3333
3334
3335 fi
3336 fi
3337 if test -z "$CC"; then
3338 # Extract the first word of "cc", so it can be a program name with args.
3339 set dummy cc; ac_word=$2
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341 $as_echo_n "checking for $ac_word... " >&6; }
3342 if test "${ac_cv_prog_CC+set}" = set; then :
3343 $as_echo_n "(cached) " >&6
3344 else
3345 if test -n "$CC"; then
3346 ac_cv_prog_CC="$CC" # Let the user override the test.
3347 else
3348 ac_prog_rejected=no
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 for as_dir in $PATH
3351 do
3352 IFS=$as_save_IFS
3353 test -z "$as_dir" && as_dir=.
3354 for ac_exec_ext in '' $ac_executable_extensions; do
3355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3356 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3357 ac_prog_rejected=yes
3358 continue
3359 fi
3360 ac_cv_prog_CC="cc"
3361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3362 break 2
3363 fi
3364 done
3365 done
3366 IFS=$as_save_IFS
3367
3368 if test $ac_prog_rejected = yes; then
3369 # We found a bogon in the path, so make sure we never use it.
3370 set dummy $ac_cv_prog_CC
3371 shift
3372 if test $# != 0; then
3373 # We chose a different compiler from the bogus one.
3374 # However, it has the same basename, so the bogon will be chosen
3375 # first if we set CC to just the basename; use the full file name.
3376 shift
3377 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3378 fi
3379 fi
3380 fi
3381 fi
3382 CC=$ac_cv_prog_CC
3383 if test -n "$CC"; then
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3385 $as_echo "$CC" >&6; }
3386 else
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388 $as_echo "no" >&6; }
3389 fi
3390
3391
3392 fi
3393 if test -z "$CC"; then
3394 if test -n "$ac_tool_prefix"; then
3395 for ac_prog in cl.exe
3396 do
3397 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3398 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400 $as_echo_n "checking for $ac_word... " >&6; }
3401 if test "${ac_cv_prog_CC+set}" = set; then :
3402 $as_echo_n "(cached) " >&6
3403 else
3404 if test -n "$CC"; then
3405 ac_cv_prog_CC="$CC" # Let the user override the test.
3406 else
3407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 for as_dir in $PATH
3409 do
3410 IFS=$as_save_IFS
3411 test -z "$as_dir" && as_dir=.
3412 for ac_exec_ext in '' $ac_executable_extensions; do
3413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3414 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3416 break 2
3417 fi
3418 done
3419 done
3420 IFS=$as_save_IFS
3421
3422 fi
3423 fi
3424 CC=$ac_cv_prog_CC
3425 if test -n "$CC"; then
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3427 $as_echo "$CC" >&6; }
3428 else
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430 $as_echo "no" >&6; }
3431 fi
3432
3433
3434 test -n "$CC" && break
3435 done
3436 fi
3437 if test -z "$CC"; then
3438 ac_ct_CC=$CC
3439 for ac_prog in cl.exe
3440 do
3441 # Extract the first word of "$ac_prog", so it can be a program name with args.
3442 set dummy $ac_prog; ac_word=$2
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3444 $as_echo_n "checking for $ac_word... " >&6; }
3445 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3446 $as_echo_n "(cached) " >&6
3447 else
3448 if test -n "$ac_ct_CC"; then
3449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3450 else
3451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452 for as_dir in $PATH
3453 do
3454 IFS=$as_save_IFS
3455 test -z "$as_dir" && as_dir=.
3456 for ac_exec_ext in '' $ac_executable_extensions; do
3457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3458 ac_cv_prog_ac_ct_CC="$ac_prog"
3459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 break 2
3461 fi
3462 done
3463 done
3464 IFS=$as_save_IFS
3465
3466 fi
3467 fi
3468 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3469 if test -n "$ac_ct_CC"; then
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3471 $as_echo "$ac_ct_CC" >&6; }
3472 else
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474 $as_echo "no" >&6; }
3475 fi
3476
3477
3478 test -n "$ac_ct_CC" && break
3479 done
3480
3481 if test "x$ac_ct_CC" = x; then
3482 CC=""
3483 else
3484 case $cross_compiling:$ac_tool_warned in
3485 yes:)
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3488 ac_tool_warned=yes ;;
3489 esac
3490 CC=$ac_ct_CC
3491 fi
3492 fi
3493
3494 fi
3495
3496
3497 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3499 as_fn_error "no acceptable C compiler found in \$PATH
3500 See \`config.log' for more details." "$LINENO" 5; }
3501
3502 # Provide some information about the compiler.
3503 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3504 set X $ac_compile
3505 ac_compiler=$2
3506 for ac_option in --version -v -V -qversion; do
3507 { { ac_try="$ac_compiler $ac_option >&5"
3508 case "(($ac_try" in
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3511 esac
3512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3513 $as_echo "$ac_try_echo"; } >&5
3514 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3515 ac_status=$?
3516 if test -s conftest.err; then
3517 sed '10a\
3518 ... rest of stderr output deleted ...
3519 10q' conftest.err >conftest.er1
3520 cat conftest.er1 >&5
3521 rm -f conftest.er1 conftest.err
3522 fi
3523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3524 test $ac_status = 0; }
3525 done
3526
3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h. */
3529 #include <stdio.h>
3530 int
3531 main ()
3532 {
3533 FILE *f = fopen ("conftest.out", "w");
3534 return ferror (f) || fclose (f) != 0;
3535
3536 ;
3537 return 0;
3538 }
3539 _ACEOF
3540 ac_clean_files_save=$ac_clean_files
3541 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3542 # Try to create an executable without -o first, disregard a.out.
3543 # It will help us diagnose broken compilers, and finding out an intuition
3544 # of exeext.
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3546 $as_echo_n "checking for C compiler default output file name... " >&6; }
3547 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3548
3549 # The possible output files:
3550 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3551
3552 ac_rmfiles=
3553 for ac_file in $ac_files
3554 do
3555 case $ac_file in
3556 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3557 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3558 esac
3559 done
3560 rm -f $ac_rmfiles
3561
3562 if { { ac_try="$ac_link_default"
3563 case "(($ac_try" in
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3566 esac
3567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3568 $as_echo "$ac_try_echo"; } >&5
3569 (eval "$ac_link_default") 2>&5
3570 ac_status=$?
3571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3572 test $ac_status = 0; }; then :
3573 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3574 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3575 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3576 # so that the user can short-circuit this test for compilers unknown to
3577 # Autoconf.
3578 for ac_file in $ac_files ''
3579 do
3580 test -f "$ac_file" || continue
3581 case $ac_file in
3582 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3583 ;;
3584 [ab].out )
3585 # We found the default executable, but exeext='' is most
3586 # certainly right.
3587 break;;
3588 *.* )
3589 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3590 then :; else
3591 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3592 fi
3593 # We set ac_cv_exeext here because the later test for it is not
3594 # safe: cross compilers may not add the suffix if given an `-o'
3595 # argument, so we may need to know it at that point already.
3596 # Even if this section looks crufty: it has the advantage of
3597 # actually working.
3598 break;;
3599 * )
3600 break;;
3601 esac
3602 done
3603 test "$ac_cv_exeext" = no && ac_cv_exeext=
3604
3605 else
3606 ac_file=''
3607 fi
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3609 $as_echo "$ac_file" >&6; }
3610 if test -z "$ac_file"; then :
3611 $as_echo "$as_me: failed program was:" >&5
3612 sed 's/^/| /' conftest.$ac_ext >&5
3613
3614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3616 { as_fn_set_status 77
3617 as_fn_error "C compiler cannot create executables
3618 See \`config.log' for more details." "$LINENO" 5; }; }
3619 fi
3620 ac_exeext=$ac_cv_exeext
3621
3622 # Check that the compiler produces executables we can run. If not, either
3623 # the compiler is broken, or we cross compile.
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3625 $as_echo_n "checking whether the C compiler works... " >&6; }
3626 # If not cross compiling, check that we can run a simple program.
3627 if test "$cross_compiling" != yes; then
3628 if { ac_try='./$ac_file'
3629 { { case "(($ac_try" in
3630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631 *) ac_try_echo=$ac_try;;
3632 esac
3633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3634 $as_echo "$ac_try_echo"; } >&5
3635 (eval "$ac_try") 2>&5
3636 ac_status=$?
3637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3638 test $ac_status = 0; }; }; then
3639 cross_compiling=no
3640 else
3641 if test "$cross_compiling" = maybe; then
3642 cross_compiling=yes
3643 else
3644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3645 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3646 as_fn_error "cannot run C compiled programs.
3647 If you meant to cross compile, use \`--host'.
3648 See \`config.log' for more details." "$LINENO" 5; }
3649 fi
3650 fi
3651 fi
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3653 $as_echo "yes" >&6; }
3654
3655 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3656 ac_clean_files=$ac_clean_files_save
3657 # Check that the compiler produces executables we can run. If not, either
3658 # the compiler is broken, or we cross compile.
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3660 $as_echo_n "checking whether we are cross compiling... " >&6; }
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3662 $as_echo "$cross_compiling" >&6; }
3663
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3665 $as_echo_n "checking for suffix of executables... " >&6; }
3666 if { { ac_try="$ac_link"
3667 case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670 esac
3671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3672 $as_echo "$ac_try_echo"; } >&5
3673 (eval "$ac_link") 2>&5
3674 ac_status=$?
3675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3676 test $ac_status = 0; }; then :
3677 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3678 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3679 # work properly (i.e., refer to `conftest.exe'), while it won't with
3680 # `rm'.
3681 for ac_file in conftest.exe conftest conftest.*; do
3682 test -f "$ac_file" || continue
3683 case $ac_file in
3684 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3685 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3686 break;;
3687 * ) break;;
3688 esac
3689 done
3690 else
3691 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3692 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3693 as_fn_error "cannot compute suffix of executables: cannot compile and link
3694 See \`config.log' for more details." "$LINENO" 5; }
3695 fi
3696 rm -f conftest$ac_cv_exeext
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3698 $as_echo "$ac_cv_exeext" >&6; }
3699
3700 rm -f conftest.$ac_ext
3701 EXEEXT=$ac_cv_exeext
3702 ac_exeext=$EXEEXT
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3704 $as_echo_n "checking for suffix of object files... " >&6; }
3705 if test "${ac_cv_objext+set}" = set; then :
3706 $as_echo_n "(cached) " >&6
3707 else
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3710
3711 int
3712 main ()
3713 {
3714
3715 ;
3716 return 0;
3717 }
3718 _ACEOF
3719 rm -f conftest.o conftest.obj
3720 if { { ac_try="$ac_compile"
3721 case "(($ac_try" in
3722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3723 *) ac_try_echo=$ac_try;;
3724 esac
3725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3726 $as_echo "$ac_try_echo"; } >&5
3727 (eval "$ac_compile") 2>&5
3728 ac_status=$?
3729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3730 test $ac_status = 0; }; then :
3731 for ac_file in conftest.o conftest.obj conftest.*; do
3732 test -f "$ac_file" || continue;
3733 case $ac_file in
3734 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3735 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3736 break;;
3737 esac
3738 done
3739 else
3740 $as_echo "$as_me: failed program was:" >&5
3741 sed 's/^/| /' conftest.$ac_ext >&5
3742
3743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3745 as_fn_error "cannot compute suffix of object files: cannot compile
3746 See \`config.log' for more details." "$LINENO" 5; }
3747 fi
3748 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3749 fi
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3751 $as_echo "$ac_cv_objext" >&6; }
3752 OBJEXT=$ac_cv_objext
3753 ac_objext=$OBJEXT
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3755 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3756 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3757 $as_echo_n "(cached) " >&6
3758 else
3759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760 /* end confdefs.h. */
3761
3762 int
3763 main ()
3764 {
3765 #ifndef __GNUC__
3766 choke me
3767 #endif
3768
3769 ;
3770 return 0;
3771 }
3772 _ACEOF
3773 if ac_fn_c_try_compile "$LINENO"; then :
3774 ac_compiler_gnu=yes
3775 else
3776 ac_compiler_gnu=no
3777 fi
3778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3779 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3780
3781 fi
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3783 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3784 if test $ac_compiler_gnu = yes; then
3785 GCC=yes
3786 else
3787 GCC=
3788 fi
3789 ac_test_CFLAGS=${CFLAGS+set}
3790 ac_save_CFLAGS=$CFLAGS
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3792 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3793 if test "${ac_cv_prog_cc_g+set}" = set; then :
3794 $as_echo_n "(cached) " >&6
3795 else
3796 ac_save_c_werror_flag=$ac_c_werror_flag
3797 ac_c_werror_flag=yes
3798 ac_cv_prog_cc_g=no
3799 CFLAGS="-g"
3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h. */
3802
3803 int
3804 main ()
3805 {
3806
3807 ;
3808 return 0;
3809 }
3810 _ACEOF
3811 if ac_fn_c_try_compile "$LINENO"; then :
3812 ac_cv_prog_cc_g=yes
3813 else
3814 CFLAGS=""
3815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* end confdefs.h. */
3817
3818 int
3819 main ()
3820 {
3821
3822 ;
3823 return 0;
3824 }
3825 _ACEOF
3826 if ac_fn_c_try_compile "$LINENO"; then :
3827
3828 else
3829 ac_c_werror_flag=$ac_save_c_werror_flag
3830 CFLAGS="-g"
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h. */
3833
3834 int
3835 main ()
3836 {
3837
3838 ;
3839 return 0;
3840 }
3841 _ACEOF
3842 if ac_fn_c_try_compile "$LINENO"; then :
3843 ac_cv_prog_cc_g=yes
3844 fi
3845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3846 fi
3847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848 fi
3849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3850 ac_c_werror_flag=$ac_save_c_werror_flag
3851 fi
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3853 $as_echo "$ac_cv_prog_cc_g" >&6; }
3854 if test "$ac_test_CFLAGS" = set; then
3855 CFLAGS=$ac_save_CFLAGS
3856 elif test $ac_cv_prog_cc_g = yes; then
3857 if test "$GCC" = yes; then
3858 CFLAGS="-g -O2"
3859 else
3860 CFLAGS="-g"
3861 fi
3862 else
3863 if test "$GCC" = yes; then
3864 CFLAGS="-O2"
3865 else
3866 CFLAGS=
3867 fi
3868 fi
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3870 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3871 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3872 $as_echo_n "(cached) " >&6
3873 else
3874 ac_cv_prog_cc_c89=no
3875 ac_save_CC=$CC
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3878 #include <stdarg.h>
3879 #include <stdio.h>
3880 #include <sys/types.h>
3881 #include <sys/stat.h>
3882 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3883 struct buf { int x; };
3884 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3885 static char *e (p, i)
3886 char **p;
3887 int i;
3888 {
3889 return p[i];
3890 }
3891 static char *f (char * (*g) (char **, int), char **p, ...)
3892 {
3893 char *s;
3894 va_list v;
3895 va_start (v,p);
3896 s = g (p, va_arg (v,int));
3897 va_end (v);
3898 return s;
3899 }
3900
3901 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3902 function prototypes and stuff, but not '\xHH' hex character constants.
3903 These don't provoke an error unfortunately, instead are silently treated
3904 as 'x'. The following induces an error, until -std is added to get
3905 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3906 array size at least. It's necessary to write '\x00'==0 to get something
3907 that's true only with -std. */
3908 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3909
3910 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3911 inside strings and character constants. */
3912 #define FOO(x) 'x'
3913 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3914
3915 int test (int i, double x);
3916 struct s1 {int (*f) (int a);};
3917 struct s2 {int (*f) (double a);};
3918 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3919 int argc;
3920 char **argv;
3921 int
3922 main ()
3923 {
3924 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3925 ;
3926 return 0;
3927 }
3928 _ACEOF
3929 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3930 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3931 do
3932 CC="$ac_save_CC $ac_arg"
3933 if ac_fn_c_try_compile "$LINENO"; then :
3934 ac_cv_prog_cc_c89=$ac_arg
3935 fi
3936 rm -f core conftest.err conftest.$ac_objext
3937 test "x$ac_cv_prog_cc_c89" != "xno" && break
3938 done
3939 rm -f conftest.$ac_ext
3940 CC=$ac_save_CC
3941
3942 fi
3943 # AC_CACHE_VAL
3944 case "x$ac_cv_prog_cc_c89" in
3945 x)
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3947 $as_echo "none needed" >&6; } ;;
3948 xno)
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3950 $as_echo "unsupported" >&6; } ;;
3951 *)
3952 CC="$CC $ac_cv_prog_cc_c89"
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3954 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3955 esac
3956 if test "x$ac_cv_prog_cc_c89" != xno; then :
3957
3958 fi
3959
3960 ac_ext=c
3961 ac_cpp='$CPP $CPPFLAGS'
3962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3965
3966 ac_aux_dir=
3967 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3968 for ac_t in install-sh install.sh shtool; do
3969 if test -f "$ac_dir/$ac_t"; then
3970 ac_aux_dir=$ac_dir
3971 ac_install_sh="$ac_aux_dir/$ac_t -c"
3972 break 2
3973 fi
3974 done
3975 done
3976 if test -z "$ac_aux_dir"; then
3977 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3978 fi
3979
3980 # These three variables are undocumented and unsupported,
3981 # and are intended to be withdrawn in a future Autoconf release.
3982 # They can cause serious problems if a builder's source tree is in a directory
3983 # whose full name contains unusual characters.
3984 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3985 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3986 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3987
3988
3989 # Make sure we can run config.sub.
3990 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3991 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3992
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3994 $as_echo_n "checking build system type... " >&6; }
3995 if test "${ac_cv_build+set}" = set; then :
3996 $as_echo_n "(cached) " >&6
3997 else
3998 ac_build_alias=$build_alias
3999 test "x$ac_build_alias" = x &&
4000 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4001 test "x$ac_build_alias" = x &&
4002 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4003 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4004 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4005
4006 fi
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4008 $as_echo "$ac_cv_build" >&6; }
4009 case $ac_cv_build in
4010 *-*-*) ;;
4011 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4012 esac
4013 build=$ac_cv_build
4014 ac_save_IFS=$IFS; IFS='-'
4015 set x $ac_cv_build
4016 shift
4017 build_cpu=$1
4018 build_vendor=$2
4019 shift; shift
4020 # Remember, the first character of IFS is used to create $*,
4021 # except with old shells:
4022 build_os=$*
4023 IFS=$ac_save_IFS
4024 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4025
4026
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4028 $as_echo_n "checking host system type... " >&6; }
4029 if test "${ac_cv_host+set}" = set; then :
4030 $as_echo_n "(cached) " >&6
4031 else
4032 if test "x$host_alias" = x; then
4033 ac_cv_host=$ac_cv_build
4034 else
4035 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4036 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4037 fi
4038
4039 fi
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4041 $as_echo "$ac_cv_host" >&6; }
4042 case $ac_cv_host in
4043 *-*-*) ;;
4044 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4045 esac
4046 host=$ac_cv_host
4047 ac_save_IFS=$IFS; IFS='-'
4048 set x $ac_cv_host
4049 shift
4050 host_cpu=$1
4051 host_vendor=$2
4052 shift; shift
4053 # Remember, the first character of IFS is used to create $*,
4054 # except with old shells:
4055 host_os=$*
4056 IFS=$ac_save_IFS
4057 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4058
4059
4060
4061 ac_ext=c
4062 ac_cpp='$CPP $CPPFLAGS'
4063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4067 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4068 # On Suns, sometimes $CPP names a directory.
4069 if test -n "$CPP" && test -d "$CPP"; then
4070 CPP=
4071 fi
4072 if test -z "$CPP"; then
4073 if test "${ac_cv_prog_CPP+set}" = set; then :
4074 $as_echo_n "(cached) " >&6
4075 else
4076 # Double quotes because CPP needs to be expanded
4077 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4078 do
4079 ac_preproc_ok=false
4080 for ac_c_preproc_warn_flag in '' yes
4081 do
4082 # Use a header file that comes with gcc, so configuring glibc
4083 # with a fresh cross-compiler works.
4084 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4085 # <limits.h> exists even on freestanding compilers.
4086 # On the NeXT, cc -E runs the code through the compiler's parser,
4087 # not just through cpp. "Syntax error" is here to catch this case.
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4090 #ifdef __STDC__
4091 # include <limits.h>
4092 #else
4093 # include <assert.h>
4094 #endif
4095 Syntax error
4096 _ACEOF
4097 if ac_fn_c_try_cpp "$LINENO"; then :
4098
4099 else
4100 # Broken: fails on valid input.
4101 continue
4102 fi
4103 rm -f conftest.err conftest.$ac_ext
4104
4105 # OK, works on sane cases. Now check whether nonexistent headers
4106 # can be detected and how.
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h. */
4109 #include <ac_nonexistent.h>
4110 _ACEOF
4111 if ac_fn_c_try_cpp "$LINENO"; then :
4112 # Broken: success on invalid input.
4113 continue
4114 else
4115 # Passes both tests.
4116 ac_preproc_ok=:
4117 break
4118 fi
4119 rm -f conftest.err conftest.$ac_ext
4120
4121 done
4122 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4123 rm -f conftest.err conftest.$ac_ext
4124 if $ac_preproc_ok; then :
4125 break
4126 fi
4127
4128 done
4129 ac_cv_prog_CPP=$CPP
4130
4131 fi
4132 CPP=$ac_cv_prog_CPP
4133 else
4134 ac_cv_prog_CPP=$CPP
4135 fi
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4137 $as_echo "$CPP" >&6; }
4138 ac_preproc_ok=false
4139 for ac_c_preproc_warn_flag in '' yes
4140 do
4141 # Use a header file that comes with gcc, so configuring glibc
4142 # with a fresh cross-compiler works.
4143 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4144 # <limits.h> exists even on freestanding compilers.
4145 # On the NeXT, cc -E runs the code through the compiler's parser,
4146 # not just through cpp. "Syntax error" is here to catch this case.
4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4148 /* end confdefs.h. */
4149 #ifdef __STDC__
4150 # include <limits.h>
4151 #else
4152 # include <assert.h>
4153 #endif
4154 Syntax error
4155 _ACEOF
4156 if ac_fn_c_try_cpp "$LINENO"; then :
4157
4158 else
4159 # Broken: fails on valid input.
4160 continue
4161 fi
4162 rm -f conftest.err conftest.$ac_ext
4163
4164 # OK, works on sane cases. Now check whether nonexistent headers
4165 # can be detected and how.
4166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167 /* end confdefs.h. */
4168 #include <ac_nonexistent.h>
4169 _ACEOF
4170 if ac_fn_c_try_cpp "$LINENO"; then :
4171 # Broken: success on invalid input.
4172 continue
4173 else
4174 # Passes both tests.
4175 ac_preproc_ok=:
4176 break
4177 fi
4178 rm -f conftest.err conftest.$ac_ext
4179
4180 done
4181 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4182 rm -f conftest.err conftest.$ac_ext
4183 if $ac_preproc_ok; then :
4184
4185 else
4186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4188 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4189 See \`config.log' for more details." "$LINENO" 5; }
4190 fi
4191
4192 ac_ext=c
4193 ac_cpp='$CPP $CPPFLAGS'
4194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4197
4198
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4200 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4201 if test "${ac_cv_path_GREP+set}" = set; then :
4202 $as_echo_n "(cached) " >&6
4203 else
4204 if test -z "$GREP"; then
4205 ac_path_GREP_found=false
4206 # Loop through the user's path and test for each of PROGNAME-LIST
4207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4208 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4209 do
4210 IFS=$as_save_IFS
4211 test -z "$as_dir" && as_dir=.
4212 for ac_prog in grep ggrep; do
4213 for ac_exec_ext in '' $ac_executable_extensions; do
4214 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4215 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4216 # Check for GNU ac_path_GREP and select it if it is found.
4217 # Check for GNU $ac_path_GREP
4218 case `"$ac_path_GREP" --version 2>&1` in
4219 *GNU*)
4220 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4221 *)
4222 ac_count=0
4223 $as_echo_n 0123456789 >"conftest.in"
4224 while :
4225 do
4226 cat "conftest.in" "conftest.in" >"conftest.tmp"
4227 mv "conftest.tmp" "conftest.in"
4228 cp "conftest.in" "conftest.nl"
4229 $as_echo 'GREP' >> "conftest.nl"
4230 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4231 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4232 as_fn_arith $ac_count + 1 && ac_count=$as_val
4233 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4234 # Best one so far, save it but keep looking for a better one
4235 ac_cv_path_GREP="$ac_path_GREP"
4236 ac_path_GREP_max=$ac_count
4237 fi
4238 # 10*(2^10) chars as input seems more than enough
4239 test $ac_count -gt 10 && break
4240 done
4241 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4242 esac
4243
4244 $ac_path_GREP_found && break 3
4245 done
4246 done
4247 done
4248 IFS=$as_save_IFS
4249 if test -z "$ac_cv_path_GREP"; then
4250 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4251 fi
4252 else
4253 ac_cv_path_GREP=$GREP
4254 fi
4255
4256 fi
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4258 $as_echo "$ac_cv_path_GREP" >&6; }
4259 GREP="$ac_cv_path_GREP"
4260
4261
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4263 $as_echo_n "checking for egrep... " >&6; }
4264 if test "${ac_cv_path_EGREP+set}" = set; then :
4265 $as_echo_n "(cached) " >&6
4266 else
4267 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4268 then ac_cv_path_EGREP="$GREP -E"
4269 else
4270 if test -z "$EGREP"; then
4271 ac_path_EGREP_found=false
4272 # Loop through the user's path and test for each of PROGNAME-LIST
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4275 do
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_prog in egrep; do
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4281 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4282 # Check for GNU ac_path_EGREP and select it if it is found.
4283 # Check for GNU $ac_path_EGREP
4284 case `"$ac_path_EGREP" --version 2>&1` in
4285 *GNU*)
4286 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4287 *)
4288 ac_count=0
4289 $as_echo_n 0123456789 >"conftest.in"
4290 while :
4291 do
4292 cat "conftest.in" "conftest.in" >"conftest.tmp"
4293 mv "conftest.tmp" "conftest.in"
4294 cp "conftest.in" "conftest.nl"
4295 $as_echo 'EGREP' >> "conftest.nl"
4296 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4297 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4298 as_fn_arith $ac_count + 1 && ac_count=$as_val
4299 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4300 # Best one so far, save it but keep looking for a better one
4301 ac_cv_path_EGREP="$ac_path_EGREP"
4302 ac_path_EGREP_max=$ac_count
4303 fi
4304 # 10*(2^10) chars as input seems more than enough
4305 test $ac_count -gt 10 && break
4306 done
4307 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4308 esac
4309
4310 $ac_path_EGREP_found && break 3
4311 done
4312 done
4313 done
4314 IFS=$as_save_IFS
4315 if test -z "$ac_cv_path_EGREP"; then
4316 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4317 fi
4318 else
4319 ac_cv_path_EGREP=$EGREP
4320 fi
4321
4322 fi
4323 fi
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4325 $as_echo "$ac_cv_path_EGREP" >&6; }
4326 EGREP="$ac_cv_path_EGREP"
4327
4328
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4330 $as_echo_n "checking for ANSI C header files... " >&6; }
4331 if test "${ac_cv_header_stdc+set}" = set; then :
4332 $as_echo_n "(cached) " >&6
4333 else
4334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h. */
4336 #include <stdlib.h>
4337 #include <stdarg.h>
4338 #include <string.h>
4339 #include <float.h>
4340
4341 int
4342 main ()
4343 {
4344
4345 ;
4346 return 0;
4347 }
4348 _ACEOF
4349 if ac_fn_c_try_compile "$LINENO"; then :
4350 ac_cv_header_stdc=yes
4351 else
4352 ac_cv_header_stdc=no
4353 fi
4354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4355
4356 if test $ac_cv_header_stdc = yes; then
4357 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h. */
4360 #include <string.h>
4361
4362 _ACEOF
4363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4364 $EGREP "memchr" >/dev/null 2>&1; then :
4365
4366 else
4367 ac_cv_header_stdc=no
4368 fi
4369 rm -f conftest*
4370
4371 fi
4372
4373 if test $ac_cv_header_stdc = yes; then
4374 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h. */
4377 #include <stdlib.h>
4378
4379 _ACEOF
4380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4381 $EGREP "free" >/dev/null 2>&1; then :
4382
4383 else
4384 ac_cv_header_stdc=no
4385 fi
4386 rm -f conftest*
4387
4388 fi
4389
4390 if test $ac_cv_header_stdc = yes; then
4391 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4392 if test "$cross_compiling" = yes; then :
4393 :
4394 else
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4397 #include <ctype.h>
4398 #include <stdlib.h>
4399 #if ((' ' & 0x0FF) == 0x020)
4400 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4401 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4402 #else
4403 # define ISLOWER(c) \
4404 (('a' <= (c) && (c) <= 'i') \
4405 || ('j' <= (c) && (c) <= 'r') \
4406 || ('s' <= (c) && (c) <= 'z'))
4407 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4408 #endif
4409
4410 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4411 int
4412 main ()
4413 {
4414 int i;
4415 for (i = 0; i < 256; i++)
4416 if (XOR (islower (i), ISLOWER (i))
4417 || toupper (i) != TOUPPER (i))
4418 return 2;
4419 return 0;
4420 }
4421 _ACEOF
4422 if ac_fn_c_try_run "$LINENO"; then :
4423
4424 else
4425 ac_cv_header_stdc=no
4426 fi
4427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4428 conftest.$ac_objext conftest.beam conftest.$ac_ext
4429 fi
4430
4431 fi
4432 fi
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4434 $as_echo "$ac_cv_header_stdc" >&6; }
4435 if test $ac_cv_header_stdc = yes; then
4436
4437 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4438
4439 fi
4440
4441 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4442 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4443 inttypes.h stdint.h unistd.h
4444 do :
4445 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4446 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4447 "
4448 eval as_val=\$$as_ac_Header
4449 if test "x$as_val" = x""yes; then :
4450 cat >>confdefs.h <<_ACEOF
4451 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4452 _ACEOF
4453
4454 fi
4455
4456 done
4457
4458
4459
4460
4461
4462 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4463 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4464 MINIX=yes
4465 else
4466 MINIX=
4467 fi
4468
4469
4470 if test "$MINIX" = yes; then
4471
4472 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4473
4474
4475 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4476
4477
4478 $as_echo "#define _MINIX 1" >>confdefs.h
4479
4480 fi
4481
4482 case "$host_os" in
4483 hpux*)
4484
4485 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4486
4487 ;;
4488 esac
4489
4490
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4492 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4493 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4494 $as_echo_n "(cached) " >&6
4495 else
4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h. */
4498
4499 # define __EXTENSIONS__ 1
4500 $ac_includes_default
4501 int
4502 main ()
4503 {
4504
4505 ;
4506 return 0;
4507 }
4508 _ACEOF
4509 if ac_fn_c_try_compile "$LINENO"; then :
4510 ac_cv_safe_to_define___extensions__=yes
4511 else
4512 ac_cv_safe_to_define___extensions__=no
4513 fi
4514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4515 fi
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4517 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4518 test $ac_cv_safe_to_define___extensions__ = yes &&
4519 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4520
4521 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4522
4523 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4524
4525 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4526
4527 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4528
4529 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4530
4531
4532
4533
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4535 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4536 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4537 $as_echo_n "(cached) " >&6
4538 else
4539
4540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541 /* end confdefs.h. */
4542
4543 #ifdef __ACK__
4544 Amsterdam
4545 #endif
4546
4547 _ACEOF
4548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4549 $EGREP "Amsterdam" >/dev/null 2>&1; then :
4550 gl_cv_c_amsterdam_compiler=yes
4551 else
4552 gl_cv_c_amsterdam_compiler=no
4553 fi
4554 rm -f conftest*
4555
4556
4557 fi
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4559 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4560 if test -z "$AR"; then
4561 if test $gl_cv_c_amsterdam_compiler = yes; then
4562 AR='cc -c.a'
4563 if test -z "$ARFLAGS"; then
4564 ARFLAGS='-o'
4565 fi
4566 else
4567 if test -n "$ac_tool_prefix"; then
4568 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4569 set dummy ${ac_tool_prefix}ar; ac_word=$2
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4571 $as_echo_n "checking for $ac_word... " >&6; }
4572 if test "${ac_cv_prog_AR+set}" = set; then :
4573 $as_echo_n "(cached) " >&6
4574 else
4575 if test -n "$AR"; then
4576 ac_cv_prog_AR="$AR" # Let the user override the test.
4577 else
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579 for as_dir in $PATH
4580 do
4581 IFS=$as_save_IFS
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4585 ac_cv_prog_AR="${ac_tool_prefix}ar"
4586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 break 2
4588 fi
4589 done
4590 done
4591 IFS=$as_save_IFS
4592
4593 fi
4594 fi
4595 AR=$ac_cv_prog_AR
4596 if test -n "$AR"; then
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4598 $as_echo "$AR" >&6; }
4599 else
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4601 $as_echo "no" >&6; }
4602 fi
4603
4604
4605 fi
4606 if test -z "$ac_cv_prog_AR"; then
4607 ac_ct_AR=$AR
4608 # Extract the first word of "ar", so it can be a program name with args.
4609 set dummy ar; ac_word=$2
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4611 $as_echo_n "checking for $ac_word... " >&6; }
4612 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4613 $as_echo_n "(cached) " >&6
4614 else
4615 if test -n "$ac_ct_AR"; then
4616 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4617 else
4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 for as_dir in $PATH
4620 do
4621 IFS=$as_save_IFS
4622 test -z "$as_dir" && as_dir=.
4623 for ac_exec_ext in '' $ac_executable_extensions; do
4624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4625 ac_cv_prog_ac_ct_AR="ar"
4626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 break 2
4628 fi
4629 done
4630 done
4631 IFS=$as_save_IFS
4632
4633 fi
4634 fi
4635 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4636 if test -n "$ac_ct_AR"; then
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4638 $as_echo "$ac_ct_AR" >&6; }
4639 else
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4641 $as_echo "no" >&6; }
4642 fi
4643
4644 if test "x$ac_ct_AR" = x; then
4645 AR="ar"
4646 else
4647 case $cross_compiling:$ac_tool_warned in
4648 yes:)
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4651 ac_tool_warned=yes ;;
4652 esac
4653 AR=$ac_ct_AR
4654 fi
4655 else
4656 AR="$ac_cv_prog_AR"
4657 fi
4658
4659 if test -z "$ARFLAGS"; then
4660 ARFLAGS='cru'
4661 fi
4662 fi
4663 else
4664 if test -z "$ARFLAGS"; then
4665 ARFLAGS='cru'
4666 fi
4667 fi
4668
4669
4670 if test -z "$RANLIB"; then
4671 if test $gl_cv_c_amsterdam_compiler = yes; then
4672 RANLIB=':'
4673 else
4674 if test -n "$ac_tool_prefix"; then
4675 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4676 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4678 $as_echo_n "checking for $ac_word... " >&6; }
4679 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4680 $as_echo_n "(cached) " >&6
4681 else
4682 if test -n "$RANLIB"; then
4683 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4684 else
4685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 for as_dir in $PATH
4687 do
4688 IFS=$as_save_IFS
4689 test -z "$as_dir" && as_dir=.
4690 for ac_exec_ext in '' $ac_executable_extensions; do
4691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4692 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4694 break 2
4695 fi
4696 done
4697 done
4698 IFS=$as_save_IFS
4699
4700 fi
4701 fi
4702 RANLIB=$ac_cv_prog_RANLIB
4703 if test -n "$RANLIB"; then
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4705 $as_echo "$RANLIB" >&6; }
4706 else
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4708 $as_echo "no" >&6; }
4709 fi
4710
4711
4712 fi
4713 if test -z "$ac_cv_prog_RANLIB"; then
4714 ac_ct_RANLIB=$RANLIB
4715 # Extract the first word of "ranlib", so it can be a program name with args.
4716 set dummy ranlib; ac_word=$2
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4718 $as_echo_n "checking for $ac_word... " >&6; }
4719 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4720 $as_echo_n "(cached) " >&6
4721 else
4722 if test -n "$ac_ct_RANLIB"; then
4723 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4724 else
4725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 for as_dir in $PATH
4727 do
4728 IFS=$as_save_IFS
4729 test -z "$as_dir" && as_dir=.
4730 for ac_exec_ext in '' $ac_executable_extensions; do
4731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4732 ac_cv_prog_ac_ct_RANLIB="ranlib"
4733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4734 break 2
4735 fi
4736 done
4737 done
4738 IFS=$as_save_IFS
4739
4740 fi
4741 fi
4742 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4743 if test -n "$ac_ct_RANLIB"; then
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4745 $as_echo "$ac_ct_RANLIB" >&6; }
4746 else
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4748 $as_echo "no" >&6; }
4749 fi
4750
4751 if test "x$ac_ct_RANLIB" = x; then
4752 RANLIB=":"
4753 else
4754 case $cross_compiling:$ac_tool_warned in
4755 yes:)
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4758 ac_tool_warned=yes ;;
4759 esac
4760 RANLIB=$ac_ct_RANLIB
4761 fi
4762 else
4763 RANLIB="$ac_cv_prog_RANLIB"
4764 fi
4765
4766 fi
4767 fi
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779 # IEEE behaviour is the default on all CPUs except Alpha and SH
4780 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
4781 # and the GCC 4.1.2 manual).
4782 case "$host_cpu" in
4783 alpha*)
4784 # On Alpha systems, a compiler option provides the behaviour.
4785 # See the ieee(3) manual page, also available at
4786 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
4787 if test -n "$GCC"; then
4788 # GCC has the option -mieee.
4789 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
4790 CPPFLAGS="$CPPFLAGS -mieee"
4791 else
4792 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
4793 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
4794 CPPFLAGS="$CPPFLAGS -ieee"
4795 fi
4796 ;;
4797 sh*)
4798 if test -n "$GCC"; then
4799 # GCC has the option -mieee.
4800 CPPFLAGS="$CPPFLAGS -mieee"
4801 fi
4802 ;;
4803 esac
4804
4805 # Check whether --enable-largefile was given.
4806 if test "${enable_largefile+set}" = set; then :
4807 enableval=$enable_largefile;
4808 fi
4809
4810 if test "$enable_largefile" != no; then
4811
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4813 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4814 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4815 $as_echo_n "(cached) " >&6
4816 else
4817 ac_cv_sys_largefile_CC=no
4818 if test "$GCC" != yes; then
4819 ac_save_CC=$CC
4820 while :; do
4821 # IRIX 6.2 and later do not support large files by default,
4822 # so use the C compiler's -n32 option if that helps.
4823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4824 /* end confdefs.h. */
4825 #include <sys/types.h>
4826 /* Check that off_t can represent 2**63 - 1 correctly.
4827 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4828 since some C++ compilers masquerading as C compilers
4829 incorrectly reject 9223372036854775807. */
4830 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4831 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4832 && LARGE_OFF_T % 2147483647 == 1)
4833 ? 1 : -1];
4834 int
4835 main ()
4836 {
4837
4838 ;
4839 return 0;
4840 }
4841 _ACEOF
4842 if ac_fn_c_try_compile "$LINENO"; then :
4843 break
4844 fi
4845 rm -f core conftest.err conftest.$ac_objext
4846 CC="$CC -n32"
4847 if ac_fn_c_try_compile "$LINENO"; then :
4848 ac_cv_sys_largefile_CC=' -n32'; break
4849 fi
4850 rm -f core conftest.err conftest.$ac_objext
4851 break
4852 done
4853 CC=$ac_save_CC
4854 rm -f conftest.$ac_ext
4855 fi
4856 fi
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4858 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4859 if test "$ac_cv_sys_largefile_CC" != no; then
4860 CC=$CC$ac_cv_sys_largefile_CC
4861 fi
4862
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4864 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4865 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
4866 $as_echo_n "(cached) " >&6
4867 else
4868 while :; do
4869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4870 /* end confdefs.h. */
4871 #include <sys/types.h>
4872 /* Check that off_t can represent 2**63 - 1 correctly.
4873 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4874 since some C++ compilers masquerading as C compilers
4875 incorrectly reject 9223372036854775807. */
4876 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4877 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4878 && LARGE_OFF_T % 2147483647 == 1)
4879 ? 1 : -1];
4880 int
4881 main ()
4882 {
4883
4884 ;
4885 return 0;
4886 }
4887 _ACEOF
4888 if ac_fn_c_try_compile "$LINENO"; then :
4889 ac_cv_sys_file_offset_bits=no; break
4890 fi
4891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4893 /* end confdefs.h. */
4894 #define _FILE_OFFSET_BITS 64
4895 #include <sys/types.h>
4896 /* Check that off_t can represent 2**63 - 1 correctly.
4897 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4898 since some C++ compilers masquerading as C compilers
4899 incorrectly reject 9223372036854775807. */
4900 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4901 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4902 && LARGE_OFF_T % 2147483647 == 1)
4903 ? 1 : -1];
4904 int
4905 main ()
4906 {
4907
4908 ;
4909 return 0;
4910 }
4911 _ACEOF
4912 if ac_fn_c_try_compile "$LINENO"; then :
4913 ac_cv_sys_file_offset_bits=64; break
4914 fi
4915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4916 ac_cv_sys_file_offset_bits=unknown
4917 break
4918 done
4919 fi
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4921 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4922 case $ac_cv_sys_file_offset_bits in #(
4923 no | unknown) ;;
4924 *)
4925 cat >>confdefs.h <<_ACEOF
4926 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4927 _ACEOF
4928 ;;
4929 esac
4930 rm -rf conftest*
4931 if test $ac_cv_sys_file_offset_bits = unknown; then
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4933 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4934 if test "${ac_cv_sys_large_files+set}" = set; then :
4935 $as_echo_n "(cached) " >&6
4936 else
4937 while :; do
4938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4939 /* end confdefs.h. */
4940 #include <sys/types.h>
4941 /* Check that off_t can represent 2**63 - 1 correctly.
4942 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4943 since some C++ compilers masquerading as C compilers
4944 incorrectly reject 9223372036854775807. */
4945 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4946 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4947 && LARGE_OFF_T % 2147483647 == 1)
4948 ? 1 : -1];
4949 int
4950 main ()
4951 {
4952
4953 ;
4954 return 0;
4955 }
4956 _ACEOF
4957 if ac_fn_c_try_compile "$LINENO"; then :
4958 ac_cv_sys_large_files=no; break
4959 fi
4960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h. */
4963 #define _LARGE_FILES 1
4964 #include <sys/types.h>
4965 /* Check that off_t can represent 2**63 - 1 correctly.
4966 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4967 since some C++ compilers masquerading as C compilers
4968 incorrectly reject 9223372036854775807. */
4969 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4970 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4971 && LARGE_OFF_T % 2147483647 == 1)
4972 ? 1 : -1];
4973 int
4974 main ()
4975 {
4976
4977 ;
4978 return 0;
4979 }
4980 _ACEOF
4981 if ac_fn_c_try_compile "$LINENO"; then :
4982 ac_cv_sys_large_files=1; break
4983 fi
4984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4985 ac_cv_sys_large_files=unknown
4986 break
4987 done
4988 fi
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4990 $as_echo "$ac_cv_sys_large_files" >&6; }
4991 case $ac_cv_sys_large_files in #(
4992 no | unknown) ;;
4993 *)
4994 cat >>confdefs.h <<_ACEOF
4995 #define _LARGE_FILES $ac_cv_sys_large_files
4996 _ACEOF
4997 ;;
4998 esac
4999 rm -rf conftest*
5000 fi
5001
5002
5003 fi
5004
5005
5006
5007 # Code from module alloca:
5008 # Code from module alloca-opt:
5009 # Code from module configmake:
5010 # Code from module dirent:
5011 # Code from module dirfd:
5012 # Code from module dosname:
5013 # Code from module errno:
5014 # Code from module extensions:
5015
5016 # Code from module extern-inline:
5017 # Code from module float:
5018 # Code from module fnmatch:
5019 # Code from module fnmatch-gnu:
5020 # Code from module fpieee:
5021
5022 # Code from module fpucw:
5023 # Code from module frexp:
5024 # Code from module frexpl:
5025 # Code from module include_next:
5026 # Code from module inttypes:
5027 # Code from module inttypes-incomplete:
5028 # Code from module isnand-nolibm:
5029 # Code from module isnanl-nolibm:
5030 # Code from module largefile:
5031
5032 # Code from module localcharset:
5033 # Code from module lstat:
5034 # Code from module math:
5035 # Code from module mbrtowc:
5036 # Code from module mbsinit:
5037 # Code from module mbsrtowcs:
5038 # Code from module memchr:
5039 # Code from module memmem:
5040 # Code from module memmem-simple:
5041 # Code from module multiarch:
5042 # Code from module pathmax:
5043 # Code from module readlink:
5044 # Code from module snippet/arg-nonnull:
5045 # Code from module snippet/c++defs:
5046 # Code from module snippet/warn-on-use:
5047 # Code from module ssize_t:
5048 # Code from module stat:
5049 # Code from module stdbool:
5050 # Code from module stddef:
5051 # Code from module stdint:
5052 # Code from module streq:
5053 # Code from module string:
5054 # Code from module strnlen1:
5055 # Code from module strstr:
5056 # Code from module strstr-simple:
5057 # Code from module sys_stat:
5058 # Code from module sys_types:
5059 # Code from module time:
5060 # Code from module unistd:
5061 # Code from module update-copyright:
5062 # Code from module verify:
5063 # Code from module wchar:
5064 # Code from module wctype-h:
5065
5066 ac_ext=c
5067 ac_cpp='$CPP $CPPFLAGS'
5068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5071 if test -n "$ac_tool_prefix"; then
5072 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5073 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5075 $as_echo_n "checking for $ac_word... " >&6; }
5076 if test "${ac_cv_prog_CC+set}" = set; then :
5077 $as_echo_n "(cached) " >&6
5078 else
5079 if test -n "$CC"; then
5080 ac_cv_prog_CC="$CC" # Let the user override the test.
5081 else
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH
5084 do
5085 IFS=$as_save_IFS
5086 test -z "$as_dir" && as_dir=.
5087 for ac_exec_ext in '' $ac_executable_extensions; do
5088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5091 break 2
5092 fi
5093 done
5094 done
5095 IFS=$as_save_IFS
5096
5097 fi
5098 fi
5099 CC=$ac_cv_prog_CC
5100 if test -n "$CC"; then
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5102 $as_echo "$CC" >&6; }
5103 else
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105 $as_echo "no" >&6; }
5106 fi
5107
5108
5109 fi
5110 if test -z "$ac_cv_prog_CC"; then
5111 ac_ct_CC=$CC
5112 # Extract the first word of "gcc", so it can be a program name with args.
5113 set dummy gcc; ac_word=$2
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115 $as_echo_n "checking for $ac_word... " >&6; }
5116 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5117 $as_echo_n "(cached) " >&6
5118 else
5119 if test -n "$ac_ct_CC"; then
5120 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5121 else
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in $PATH
5124 do
5125 IFS=$as_save_IFS
5126 test -z "$as_dir" && as_dir=.
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5129 ac_cv_prog_ac_ct_CC="gcc"
5130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 break 2
5132 fi
5133 done
5134 done
5135 IFS=$as_save_IFS
5136
5137 fi
5138 fi
5139 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5140 if test -n "$ac_ct_CC"; then
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5142 $as_echo "$ac_ct_CC" >&6; }
5143 else
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145 $as_echo "no" >&6; }
5146 fi
5147
5148 if test "x$ac_ct_CC" = x; then
5149 CC=""
5150 else
5151 case $cross_compiling:$ac_tool_warned in
5152 yes:)
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5155 ac_tool_warned=yes ;;
5156 esac
5157 CC=$ac_ct_CC
5158 fi
5159 else
5160 CC="$ac_cv_prog_CC"
5161 fi
5162
5163 if test -z "$CC"; then
5164 if test -n "$ac_tool_prefix"; then
5165 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5166 set dummy ${ac_tool_prefix}cc; ac_word=$2
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5168 $as_echo_n "checking for $ac_word... " >&6; }
5169 if test "${ac_cv_prog_CC+set}" = set; then :
5170 $as_echo_n "(cached) " >&6
5171 else
5172 if test -n "$CC"; then
5173 ac_cv_prog_CC="$CC" # Let the user override the test.
5174 else
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH
5177 do
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5182 ac_cv_prog_CC="${ac_tool_prefix}cc"
5183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 break 2
5185 fi
5186 done
5187 done
5188 IFS=$as_save_IFS
5189
5190 fi
5191 fi
5192 CC=$ac_cv_prog_CC
5193 if test -n "$CC"; then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5195 $as_echo "$CC" >&6; }
5196 else
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198 $as_echo "no" >&6; }
5199 fi
5200
5201
5202 fi
5203 fi
5204 if test -z "$CC"; then
5205 # Extract the first word of "cc", so it can be a program name with args.
5206 set dummy cc; ac_word=$2
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208 $as_echo_n "checking for $ac_word... " >&6; }
5209 if test "${ac_cv_prog_CC+set}" = set; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 if test -n "$CC"; then
5213 ac_cv_prog_CC="$CC" # Let the user override the test.
5214 else
5215 ac_prog_rejected=no
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5218 do
5219 IFS=$as_save_IFS
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5224 ac_prog_rejected=yes
5225 continue
5226 fi
5227 ac_cv_prog_CC="cc"
5228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5229 break 2
5230 fi
5231 done
5232 done
5233 IFS=$as_save_IFS
5234
5235 if test $ac_prog_rejected = yes; then
5236 # We found a bogon in the path, so make sure we never use it.
5237 set dummy $ac_cv_prog_CC
5238 shift
5239 if test $# != 0; then
5240 # We chose a different compiler from the bogus one.
5241 # However, it has the same basename, so the bogon will be chosen
5242 # first if we set CC to just the basename; use the full file name.
5243 shift
5244 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5245 fi
5246 fi
5247 fi
5248 fi
5249 CC=$ac_cv_prog_CC
5250 if test -n "$CC"; then
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5252 $as_echo "$CC" >&6; }
5253 else
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5255 $as_echo "no" >&6; }
5256 fi
5257
5258
5259 fi
5260 if test -z "$CC"; then
5261 if test -n "$ac_tool_prefix"; then
5262 for ac_prog in cl.exe
5263 do
5264 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5265 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5267 $as_echo_n "checking for $ac_word... " >&6; }
5268 if test "${ac_cv_prog_CC+set}" = set; then :
5269 $as_echo_n "(cached) " >&6
5270 else
5271 if test -n "$CC"; then
5272 ac_cv_prog_CC="$CC" # Let the user override the test.
5273 else
5274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 for as_dir in $PATH
5276 do
5277 IFS=$as_save_IFS
5278 test -z "$as_dir" && as_dir=.
5279 for ac_exec_ext in '' $ac_executable_extensions; do
5280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5281 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5283 break 2
5284 fi
5285 done
5286 done
5287 IFS=$as_save_IFS
5288
5289 fi
5290 fi
5291 CC=$ac_cv_prog_CC
5292 if test -n "$CC"; then
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5294 $as_echo "$CC" >&6; }
5295 else
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297 $as_echo "no" >&6; }
5298 fi
5299
5300
5301 test -n "$CC" && break
5302 done
5303 fi
5304 if test -z "$CC"; then
5305 ac_ct_CC=$CC
5306 for ac_prog in cl.exe
5307 do
5308 # Extract the first word of "$ac_prog", so it can be a program name with args.
5309 set dummy $ac_prog; ac_word=$2
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311 $as_echo_n "checking for $ac_word... " >&6; }
5312 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5313 $as_echo_n "(cached) " >&6
5314 else
5315 if test -n "$ac_ct_CC"; then
5316 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5317 else
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH
5320 do
5321 IFS=$as_save_IFS
5322 test -z "$as_dir" && as_dir=.
5323 for ac_exec_ext in '' $ac_executable_extensions; do
5324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5325 ac_cv_prog_ac_ct_CC="$ac_prog"
5326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5327 break 2
5328 fi
5329 done
5330 done
5331 IFS=$as_save_IFS
5332
5333 fi
5334 fi
5335 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5336 if test -n "$ac_ct_CC"; then
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5338 $as_echo "$ac_ct_CC" >&6; }
5339 else
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341 $as_echo "no" >&6; }
5342 fi
5343
5344
5345 test -n "$ac_ct_CC" && break
5346 done
5347
5348 if test "x$ac_ct_CC" = x; then
5349 CC=""
5350 else
5351 case $cross_compiling:$ac_tool_warned in
5352 yes:)
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5355 ac_tool_warned=yes ;;
5356 esac
5357 CC=$ac_ct_CC
5358 fi
5359 fi
5360
5361 fi
5362
5363
5364 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5365 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5366 as_fn_error "no acceptable C compiler found in \$PATH
5367 See \`config.log' for more details." "$LINENO" 5; }
5368
5369 # Provide some information about the compiler.
5370 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5371 set X $ac_compile
5372 ac_compiler=$2
5373 for ac_option in --version -v -V -qversion; do
5374 { { ac_try="$ac_compiler $ac_option >&5"
5375 case "(($ac_try" in
5376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5377 *) ac_try_echo=$ac_try;;
5378 esac
5379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5380 $as_echo "$ac_try_echo"; } >&5
5381 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5382 ac_status=$?
5383 if test -s conftest.err; then
5384 sed '10a\
5385 ... rest of stderr output deleted ...
5386 10q' conftest.err >conftest.er1
5387 cat conftest.er1 >&5
5388 rm -f conftest.er1 conftest.err
5389 fi
5390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5391 test $ac_status = 0; }
5392 done
5393
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5395 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5396 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5397 $as_echo_n "(cached) " >&6
5398 else
5399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400 /* end confdefs.h. */
5401
5402 int
5403 main ()
5404 {
5405 #ifndef __GNUC__
5406 choke me
5407 #endif
5408
5409 ;
5410 return 0;
5411 }
5412 _ACEOF
5413 if ac_fn_c_try_compile "$LINENO"; then :
5414 ac_compiler_gnu=yes
5415 else
5416 ac_compiler_gnu=no
5417 fi
5418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5419 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5420
5421 fi
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5423 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5424 if test $ac_compiler_gnu = yes; then
5425 GCC=yes
5426 else
5427 GCC=
5428 fi
5429 ac_test_CFLAGS=${CFLAGS+set}
5430 ac_save_CFLAGS=$CFLAGS
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5432 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5433 if test "${ac_cv_prog_cc_g+set}" = set; then :
5434 $as_echo_n "(cached) " >&6
5435 else
5436 ac_save_c_werror_flag=$ac_c_werror_flag
5437 ac_c_werror_flag=yes
5438 ac_cv_prog_cc_g=no
5439 CFLAGS="-g"
5440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5442
5443 int
5444 main ()
5445 {
5446
5447 ;
5448 return 0;
5449 }
5450 _ACEOF
5451 if ac_fn_c_try_compile "$LINENO"; then :
5452 ac_cv_prog_cc_g=yes
5453 else
5454 CFLAGS=""
5455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5457
5458 int
5459 main ()
5460 {
5461
5462 ;
5463 return 0;
5464 }
5465 _ACEOF
5466 if ac_fn_c_try_compile "$LINENO"; then :
5467
5468 else
5469 ac_c_werror_flag=$ac_save_c_werror_flag
5470 CFLAGS="-g"
5471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5472 /* end confdefs.h. */
5473
5474 int
5475 main ()
5476 {
5477
5478 ;
5479 return 0;
5480 }
5481 _ACEOF
5482 if ac_fn_c_try_compile "$LINENO"; then :
5483 ac_cv_prog_cc_g=yes
5484 fi
5485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486 fi
5487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5488 fi
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490 ac_c_werror_flag=$ac_save_c_werror_flag
5491 fi
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5493 $as_echo "$ac_cv_prog_cc_g" >&6; }
5494 if test "$ac_test_CFLAGS" = set; then
5495 CFLAGS=$ac_save_CFLAGS
5496 elif test $ac_cv_prog_cc_g = yes; then
5497 if test "$GCC" = yes; then
5498 CFLAGS="-g -O2"
5499 else
5500 CFLAGS="-g"
5501 fi
5502 else
5503 if test "$GCC" = yes; then
5504 CFLAGS="-O2"
5505 else
5506 CFLAGS=
5507 fi
5508 fi
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5510 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5511 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 ac_cv_prog_cc_c89=no
5515 ac_save_CC=$CC
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h. */
5518 #include <stdarg.h>
5519 #include <stdio.h>
5520 #include <sys/types.h>
5521 #include <sys/stat.h>
5522 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5523 struct buf { int x; };
5524 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5525 static char *e (p, i)
5526 char **p;
5527 int i;
5528 {
5529 return p[i];
5530 }
5531 static char *f (char * (*g) (char **, int), char **p, ...)
5532 {
5533 char *s;
5534 va_list v;
5535 va_start (v,p);
5536 s = g (p, va_arg (v,int));
5537 va_end (v);
5538 return s;
5539 }
5540
5541 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5542 function prototypes and stuff, but not '\xHH' hex character constants.
5543 These don't provoke an error unfortunately, instead are silently treated
5544 as 'x'. The following induces an error, until -std is added to get
5545 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5546 array size at least. It's necessary to write '\x00'==0 to get something
5547 that's true only with -std. */
5548 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5549
5550 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5551 inside strings and character constants. */
5552 #define FOO(x) 'x'
5553 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5554
5555 int test (int i, double x);
5556 struct s1 {int (*f) (int a);};
5557 struct s2 {int (*f) (double a);};
5558 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5559 int argc;
5560 char **argv;
5561 int
5562 main ()
5563 {
5564 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5565 ;
5566 return 0;
5567 }
5568 _ACEOF
5569 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5570 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5571 do
5572 CC="$ac_save_CC $ac_arg"
5573 if ac_fn_c_try_compile "$LINENO"; then :
5574 ac_cv_prog_cc_c89=$ac_arg
5575 fi
5576 rm -f core conftest.err conftest.$ac_objext
5577 test "x$ac_cv_prog_cc_c89" != "xno" && break
5578 done
5579 rm -f conftest.$ac_ext
5580 CC=$ac_save_CC
5581
5582 fi
5583 # AC_CACHE_VAL
5584 case "x$ac_cv_prog_cc_c89" in
5585 x)
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5587 $as_echo "none needed" >&6; } ;;
5588 xno)
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5590 $as_echo "unsupported" >&6; } ;;
5591 *)
5592 CC="$CC $ac_cv_prog_cc_c89"
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5594 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5595 esac
5596 if test "x$ac_cv_prog_cc_c89" != xno; then :
5597
5598 fi
5599
5600 ac_ext=c
5601 ac_cpp='$CPP $CPPFLAGS'
5602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5605
5606
5607 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5608
5609
5610 ac_aux_dir=
5611 for ac_dir in ../.. "$srcdir"/../..; do
5612 for ac_t in install-sh install.sh shtool; do
5613 if test -f "$ac_dir/$ac_t"; then
5614 ac_aux_dir=$ac_dir
5615 ac_install_sh="$ac_aux_dir/$ac_t -c"
5616 break 2
5617 fi
5618 done
5619 done
5620 if test -z "$ac_aux_dir"; then
5621 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5622 fi
5623
5624 # These three variables are undocumented and unsupported,
5625 # and are intended to be withdrawn in a future Autoconf release.
5626 # They can cause serious problems if a builder's source tree is in a directory
5627 # whose full name contains unusual characters.
5628 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5629 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5630 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5631
5632
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5634 $as_echo_n "checking target system type... " >&6; }
5635 if test "${ac_cv_target+set}" = set; then :
5636 $as_echo_n "(cached) " >&6
5637 else
5638 if test "x$target_alias" = x; then
5639 ac_cv_target=$ac_cv_host
5640 else
5641 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5642 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5643 fi
5644
5645 fi
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5647 $as_echo "$ac_cv_target" >&6; }
5648 case $ac_cv_target in
5649 *-*-*) ;;
5650 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5651 esac
5652 target=$ac_cv_target
5653 ac_save_IFS=$IFS; IFS='-'
5654 set x $ac_cv_target
5655 shift
5656 target_cpu=$1
5657 target_vendor=$2
5658 shift; shift
5659 # Remember, the first character of IFS is used to create $*,
5660 # except with old shells:
5661 target_os=$*
5662 IFS=$ac_save_IFS
5663 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5664
5665
5666 # The aliases save the names the user supplied, while $host etc.
5667 # will get canonicalized.
5668 test -n "$target_alias" &&
5669 test "$program_prefix$program_suffix$program_transform_name" = \
5670 NONENONEs,x,x, &&
5671 program_prefix=${target_alias}-
5672
5673
5674
5675
5676
5677
5678
5679 LIBC_FATAL_STDERR_=1
5680 export LIBC_FATAL_STDERR_
5681
5682 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5683 # for constant arguments. Useless!
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5685 $as_echo_n "checking for working alloca.h... " >&6; }
5686 if test "${ac_cv_working_alloca_h+set}" = set; then :
5687 $as_echo_n "(cached) " >&6
5688 else
5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h. */
5691 #include <alloca.h>
5692 int
5693 main ()
5694 {
5695 char *p = (char *) alloca (2 * sizeof (int));
5696 if (p) return 0;
5697 ;
5698 return 0;
5699 }
5700 _ACEOF
5701 if ac_fn_c_try_link "$LINENO"; then :
5702 ac_cv_working_alloca_h=yes
5703 else
5704 ac_cv_working_alloca_h=no
5705 fi
5706 rm -f core conftest.err conftest.$ac_objext \
5707 conftest$ac_exeext conftest.$ac_ext
5708 fi
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5710 $as_echo "$ac_cv_working_alloca_h" >&6; }
5711 if test $ac_cv_working_alloca_h = yes; then
5712
5713 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5714
5715 fi
5716
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5718 $as_echo_n "checking for alloca... " >&6; }
5719 if test "${ac_cv_func_alloca_works+set}" = set; then :
5720 $as_echo_n "(cached) " >&6
5721 else
5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5724 #ifdef __GNUC__
5725 # define alloca __builtin_alloca
5726 #else
5727 # ifdef _MSC_VER
5728 # include <malloc.h>
5729 # define alloca _alloca
5730 # else
5731 # ifdef HAVE_ALLOCA_H
5732 # include <alloca.h>
5733 # else
5734 # ifdef _AIX
5735 #pragma alloca
5736 # else
5737 # ifndef alloca /* predefined by HP cc +Olibcalls */
5738 char *alloca ();
5739 # endif
5740 # endif
5741 # endif
5742 # endif
5743 #endif
5744
5745 int
5746 main ()
5747 {
5748 char *p = (char *) alloca (1);
5749 if (p) return 0;
5750 ;
5751 return 0;
5752 }
5753 _ACEOF
5754 if ac_fn_c_try_link "$LINENO"; then :
5755 ac_cv_func_alloca_works=yes
5756 else
5757 ac_cv_func_alloca_works=no
5758 fi
5759 rm -f core conftest.err conftest.$ac_objext \
5760 conftest$ac_exeext conftest.$ac_ext
5761 fi
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5763 $as_echo "$ac_cv_func_alloca_works" >&6; }
5764
5765 if test $ac_cv_func_alloca_works = yes; then
5766
5767 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5768
5769 else
5770 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5771 # that cause trouble. Some versions do not even contain alloca or
5772 # contain a buggy version. If you still want to use their alloca,
5773 # use ar to extract alloca.o from them instead of compiling alloca.c.
5774
5775
5776
5777
5778
5779 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5780
5781 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5782
5783
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5785 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5786 if test "${ac_cv_os_cray+set}" = set; then :
5787 $as_echo_n "(cached) " >&6
5788 else
5789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5791 #if defined CRAY && ! defined CRAY2
5792 webecray
5793 #else
5794 wenotbecray
5795 #endif
5796
5797 _ACEOF
5798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5799 $EGREP "webecray" >/dev/null 2>&1; then :
5800 ac_cv_os_cray=yes
5801 else
5802 ac_cv_os_cray=no
5803 fi
5804 rm -f conftest*
5805
5806 fi
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5808 $as_echo "$ac_cv_os_cray" >&6; }
5809 if test $ac_cv_os_cray = yes; then
5810 for ac_func in _getb67 GETB67 getb67; do
5811 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5812 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5813 eval as_val=\$$as_ac_var
5814 if test "x$as_val" = x""yes; then :
5815
5816 cat >>confdefs.h <<_ACEOF
5817 #define CRAY_STACKSEG_END $ac_func
5818 _ACEOF
5819
5820 break
5821 fi
5822
5823 done
5824 fi
5825
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5827 $as_echo_n "checking stack direction for C alloca... " >&6; }
5828 if test "${ac_cv_c_stack_direction+set}" = set; then :
5829 $as_echo_n "(cached) " >&6
5830 else
5831 if test "$cross_compiling" = yes; then :
5832 ac_cv_c_stack_direction=0
5833 else
5834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835 /* end confdefs.h. */
5836 $ac_includes_default
5837 int
5838 find_stack_direction (int *addr, int depth)
5839 {
5840 int dir, dummy = 0;
5841 if (! addr)
5842 addr = &dummy;
5843 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5844 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5845 return dir + dummy;
5846 }
5847
5848 int
5849 main (int argc, char **argv)
5850 {
5851 return find_stack_direction (0, argc + !argv + 20) < 0;
5852 }
5853 _ACEOF
5854 if ac_fn_c_try_run "$LINENO"; then :
5855 ac_cv_c_stack_direction=1
5856 else
5857 ac_cv_c_stack_direction=-1
5858 fi
5859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5860 conftest.$ac_objext conftest.beam conftest.$ac_ext
5861 fi
5862
5863 fi
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5865 $as_echo "$ac_cv_c_stack_direction" >&6; }
5866 cat >>confdefs.h <<_ACEOF
5867 #define STACK_DIRECTION $ac_cv_c_stack_direction
5868 _ACEOF
5869
5870
5871 fi
5872
5873
5874 GNULIB_CHDIR=0;
5875 GNULIB_CHOWN=0;
5876 GNULIB_CLOSE=0;
5877 GNULIB_DUP=0;
5878 GNULIB_DUP2=0;
5879 GNULIB_DUP3=0;
5880 GNULIB_ENVIRON=0;
5881 GNULIB_EUIDACCESS=0;
5882 GNULIB_FACCESSAT=0;
5883 GNULIB_FCHDIR=0;
5884 GNULIB_FCHOWNAT=0;
5885 GNULIB_FDATASYNC=0;
5886 GNULIB_FSYNC=0;
5887 GNULIB_FTRUNCATE=0;
5888 GNULIB_GETCWD=0;
5889 GNULIB_GETDOMAINNAME=0;
5890 GNULIB_GETDTABLESIZE=0;
5891 GNULIB_GETGROUPS=0;
5892 GNULIB_GETHOSTNAME=0;
5893 GNULIB_GETLOGIN=0;
5894 GNULIB_GETLOGIN_R=0;
5895 GNULIB_GETPAGESIZE=0;
5896 GNULIB_GETUSERSHELL=0;
5897 GNULIB_GROUP_MEMBER=0;
5898 GNULIB_ISATTY=0;
5899 GNULIB_LCHOWN=0;
5900 GNULIB_LINK=0;
5901 GNULIB_LINKAT=0;
5902 GNULIB_LSEEK=0;
5903 GNULIB_PIPE=0;
5904 GNULIB_PIPE2=0;
5905 GNULIB_PREAD=0;
5906 GNULIB_PWRITE=0;
5907 GNULIB_READ=0;
5908 GNULIB_READLINK=0;
5909 GNULIB_READLINKAT=0;
5910 GNULIB_RMDIR=0;
5911 GNULIB_SETHOSTNAME=0;
5912 GNULIB_SLEEP=0;
5913 GNULIB_SYMLINK=0;
5914 GNULIB_SYMLINKAT=0;
5915 GNULIB_TTYNAME_R=0;
5916 GNULIB_UNISTD_H_NONBLOCKING=0;
5917 GNULIB_UNISTD_H_SIGPIPE=0;
5918 GNULIB_UNLINK=0;
5919 GNULIB_UNLINKAT=0;
5920 GNULIB_USLEEP=0;
5921 GNULIB_WRITE=0;
5922 HAVE_CHOWN=1;
5923 HAVE_DUP2=1;
5924 HAVE_DUP3=1;
5925 HAVE_EUIDACCESS=1;
5926 HAVE_FACCESSAT=1;
5927 HAVE_FCHDIR=1;
5928 HAVE_FCHOWNAT=1;
5929 HAVE_FDATASYNC=1;
5930 HAVE_FSYNC=1;
5931 HAVE_FTRUNCATE=1;
5932 HAVE_GETDTABLESIZE=1;
5933 HAVE_GETGROUPS=1;
5934 HAVE_GETHOSTNAME=1;
5935 HAVE_GETLOGIN=1;
5936 HAVE_GETPAGESIZE=1;
5937 HAVE_GROUP_MEMBER=1;
5938 HAVE_LCHOWN=1;
5939 HAVE_LINK=1;
5940 HAVE_LINKAT=1;
5941 HAVE_PIPE=1;
5942 HAVE_PIPE2=1;
5943 HAVE_PREAD=1;
5944 HAVE_PWRITE=1;
5945 HAVE_READLINK=1;
5946 HAVE_READLINKAT=1;
5947 HAVE_SETHOSTNAME=1;
5948 HAVE_SLEEP=1;
5949 HAVE_SYMLINK=1;
5950 HAVE_SYMLINKAT=1;
5951 HAVE_UNLINKAT=1;
5952 HAVE_USLEEP=1;
5953 HAVE_DECL_ENVIRON=1;
5954 HAVE_DECL_FCHDIR=1;
5955 HAVE_DECL_FDATASYNC=1;
5956 HAVE_DECL_GETDOMAINNAME=1;
5957 HAVE_DECL_GETLOGIN_R=1;
5958 HAVE_DECL_GETPAGESIZE=1;
5959 HAVE_DECL_GETUSERSHELL=1;
5960 HAVE_DECL_SETHOSTNAME=1;
5961 HAVE_DECL_TTYNAME_R=1;
5962 HAVE_OS_H=0;
5963 HAVE_SYS_PARAM_H=0;
5964 REPLACE_CHOWN=0;
5965 REPLACE_CLOSE=0;
5966 REPLACE_DUP=0;
5967 REPLACE_DUP2=0;
5968 REPLACE_FCHOWNAT=0;
5969 REPLACE_FTRUNCATE=0;
5970 REPLACE_GETCWD=0;
5971 REPLACE_GETDOMAINNAME=0;
5972 REPLACE_GETLOGIN_R=0;
5973 REPLACE_GETGROUPS=0;
5974 REPLACE_GETPAGESIZE=0;
5975 REPLACE_ISATTY=0;
5976 REPLACE_LCHOWN=0;
5977 REPLACE_LINK=0;
5978 REPLACE_LINKAT=0;
5979 REPLACE_LSEEK=0;
5980 REPLACE_PREAD=0;
5981 REPLACE_PWRITE=0;
5982 REPLACE_READ=0;
5983 REPLACE_READLINK=0;
5984 REPLACE_RMDIR=0;
5985 REPLACE_SLEEP=0;
5986 REPLACE_SYMLINK=0;
5987 REPLACE_TTYNAME_R=0;
5988 REPLACE_UNLINK=0;
5989 REPLACE_UNLINKAT=0;
5990 REPLACE_USLEEP=0;
5991 REPLACE_WRITE=0;
5992 UNISTD_H_HAVE_WINSOCK2_H=0;
5993 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
5994
5995
5996
5997 GNULIB_OPENDIR=0;
5998 GNULIB_READDIR=0;
5999 GNULIB_REWINDDIR=0;
6000 GNULIB_CLOSEDIR=0;
6001 GNULIB_DIRFD=0;
6002 GNULIB_FDOPENDIR=0;
6003 GNULIB_SCANDIR=0;
6004 GNULIB_ALPHASORT=0;
6005 HAVE_OPENDIR=1;
6006 HAVE_READDIR=1;
6007 HAVE_REWINDDIR=1;
6008 HAVE_CLOSEDIR=1;
6009 HAVE_DECL_DIRFD=1;
6010 HAVE_DECL_FDOPENDIR=1;
6011 HAVE_FDOPENDIR=1;
6012 HAVE_SCANDIR=1;
6013 HAVE_ALPHASORT=1;
6014 REPLACE_OPENDIR=0;
6015 REPLACE_CLOSEDIR=0;
6016 REPLACE_DIRFD=0;
6017 REPLACE_FDOPENDIR=0;
6018
6019
6020
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6022 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6023 if test "${gl_cv_have_include_next+set}" = set; then :
6024 $as_echo_n "(cached) " >&6
6025 else
6026 rm -rf conftestd1a conftestd1b conftestd2
6027 mkdir conftestd1a conftestd1b conftestd2
6028 cat <<EOF > conftestd1a/conftest.h
6029 #define DEFINED_IN_CONFTESTD1
6030 #include_next <conftest.h>
6031 #ifdef DEFINED_IN_CONFTESTD2
6032 int foo;
6033 #else
6034 #error "include_next doesn't work"
6035 #endif
6036 EOF
6037 cat <<EOF > conftestd1b/conftest.h
6038 #define DEFINED_IN_CONFTESTD1
6039 #include <stdio.h>
6040 #include_next <conftest.h>
6041 #ifdef DEFINED_IN_CONFTESTD2
6042 int foo;
6043 #else
6044 #error "include_next doesn't work"
6045 #endif
6046 EOF
6047 cat <<EOF > conftestd2/conftest.h
6048 #ifndef DEFINED_IN_CONFTESTD1
6049 #error "include_next test doesn't work"
6050 #endif
6051 #define DEFINED_IN_CONFTESTD2
6052 EOF
6053 gl_save_CPPFLAGS="$CPPFLAGS"
6054 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6056 /* end confdefs.h. */
6057 #include <conftest.h>
6058 _ACEOF
6059 if ac_fn_c_try_compile "$LINENO"; then :
6060 gl_cv_have_include_next=yes
6061 else
6062 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h. */
6065 #include <conftest.h>
6066 _ACEOF
6067 if ac_fn_c_try_compile "$LINENO"; then :
6068 gl_cv_have_include_next=buggy
6069 else
6070 gl_cv_have_include_next=no
6071 fi
6072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6073
6074 fi
6075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076 CPPFLAGS="$gl_save_CPPFLAGS"
6077 rm -rf conftestd1a conftestd1b conftestd2
6078
6079 fi
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6081 $as_echo "$gl_cv_have_include_next" >&6; }
6082 PRAGMA_SYSTEM_HEADER=
6083 if test $gl_cv_have_include_next = yes; then
6084 INCLUDE_NEXT=include_next
6085 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6086 if test -n "$GCC"; then
6087 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6088 fi
6089 else
6090 if test $gl_cv_have_include_next = buggy; then
6091 INCLUDE_NEXT=include
6092 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6093 else
6094 INCLUDE_NEXT=include
6095 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6096 fi
6097 fi
6098
6099
6100
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
6102 $as_echo_n "checking whether system header files limit the line length... " >&6; }
6103 if test "${gl_cv_pragma_columns+set}" = set; then :
6104 $as_echo_n "(cached) " >&6
6105 else
6106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6107 /* end confdefs.h. */
6108
6109 #ifdef __TANDEM
6110 choke me
6111 #endif
6112
6113 _ACEOF
6114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6115 $EGREP "choke me" >/dev/null 2>&1; then :
6116 gl_cv_pragma_columns=yes
6117 else
6118 gl_cv_pragma_columns=no
6119 fi
6120 rm -f conftest*
6121
6122
6123 fi
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
6125 $as_echo "$gl_cv_pragma_columns" >&6; }
6126 if test $gl_cv_pragma_columns = yes; then
6127 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
6128 else
6129 PRAGMA_COLUMNS=
6130 fi
6131
6132
6133
6134
6135
6136 for ac_header in $ac_header_list
6137 do :
6138 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6139 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6140 "
6141 eval as_val=\$$as_ac_Header
6142 if test "x$as_val" = x""yes; then :
6143 cat >>confdefs.h <<_ACEOF
6144 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6145 _ACEOF
6146
6147 fi
6148
6149 done
6150
6151
6152
6153
6154
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
6156 $as_echo_n "checking for complete errno.h... " >&6; }
6157 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
6158 $as_echo_n "(cached) " >&6
6159 else
6160
6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162 /* end confdefs.h. */
6163
6164 #include <errno.h>
6165 #if !defined ETXTBSY
6166 booboo
6167 #endif
6168 #if !defined ENOMSG
6169 booboo
6170 #endif
6171 #if !defined EIDRM
6172 booboo
6173 #endif
6174 #if !defined ENOLINK
6175 booboo
6176 #endif
6177 #if !defined EPROTO
6178 booboo
6179 #endif
6180 #if !defined EMULTIHOP
6181 booboo
6182 #endif
6183 #if !defined EBADMSG
6184 booboo
6185 #endif
6186 #if !defined EOVERFLOW
6187 booboo
6188 #endif
6189 #if !defined ENOTSUP
6190 booboo
6191 #endif
6192 #if !defined ENETRESET
6193 booboo
6194 #endif
6195 #if !defined ECONNABORTED
6196 booboo
6197 #endif
6198 #if !defined ESTALE
6199 booboo
6200 #endif
6201 #if !defined EDQUOT
6202 booboo
6203 #endif
6204 #if !defined ECANCELED
6205 booboo
6206 #endif
6207 #if !defined EOWNERDEAD
6208 booboo
6209 #endif
6210 #if !defined ENOTRECOVERABLE
6211 booboo
6212 #endif
6213 #if !defined EILSEQ
6214 booboo
6215 #endif
6216
6217 _ACEOF
6218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6219 $EGREP "booboo" >/dev/null 2>&1; then :
6220 gl_cv_header_errno_h_complete=no
6221 else
6222 gl_cv_header_errno_h_complete=yes
6223 fi
6224 rm -f conftest*
6225
6226
6227 fi
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
6229 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
6230 if test $gl_cv_header_errno_h_complete = yes; then
6231 ERRNO_H=''
6232 else
6233
6234
6235
6236
6237
6238
6239
6240
6241 if test $gl_cv_have_include_next = yes; then
6242 gl_cv_next_errno_h='<'errno.h'>'
6243 else
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
6245 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
6246 if test "${gl_cv_next_errno_h+set}" = set; then :
6247 $as_echo_n "(cached) " >&6
6248 else
6249
6250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6251 /* end confdefs.h. */
6252 #include <errno.h>
6253
6254 _ACEOF
6255 case "$host_os" in
6256 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6257 *) gl_absname_cpp="$ac_cpp" ;;
6258 esac
6259
6260 case "$host_os" in
6261 mingw*)
6262 gl_dirsep_regex='[/\\]'
6263 ;;
6264 *)
6265 gl_dirsep_regex='\/'
6266 ;;
6267 esac
6268 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6269
6270 gl_header_literal_regex=`echo 'errno.h' \
6271 | sed -e "$gl_make_literal_regex_sed"`
6272 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6273 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6274 s|^/[^/]|//&|
6275 p
6276 q
6277 }'
6278 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6279 sed -n "$gl_absolute_header_sed"`'"'
6280
6281
6282 fi
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
6284 $as_echo "$gl_cv_next_errno_h" >&6; }
6285 fi
6286 NEXT_ERRNO_H=$gl_cv_next_errno_h
6287
6288 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6289 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6290 gl_next_as_first_directive='<'errno.h'>'
6291 else
6292 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6293 gl_next_as_first_directive=$gl_cv_next_errno_h
6294 fi
6295 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
6296
6297
6298
6299
6300 ERRNO_H='errno.h'
6301 fi
6302
6303 if test -n "$ERRNO_H"; then
6304 GL_GENERATE_ERRNO_H_TRUE=
6305 GL_GENERATE_ERRNO_H_FALSE='#'
6306 else
6307 GL_GENERATE_ERRNO_H_TRUE='#'
6308 GL_GENERATE_ERRNO_H_FALSE=
6309 fi
6310
6311
6312 if test -n "$ERRNO_H"; then
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
6314 $as_echo_n "checking for EMULTIHOP value... " >&6; }
6315 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
6316 $as_echo_n "(cached) " >&6
6317 else
6318
6319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320 /* end confdefs.h. */
6321
6322 #include <errno.h>
6323 #ifdef EMULTIHOP
6324 yes
6325 #endif
6326
6327 _ACEOF
6328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6329 $EGREP "yes" >/dev/null 2>&1; then :
6330 gl_cv_header_errno_h_EMULTIHOP=yes
6331 else
6332 gl_cv_header_errno_h_EMULTIHOP=no
6333 fi
6334 rm -f conftest*
6335
6336 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
6337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6338 /* end confdefs.h. */
6339
6340 #define _XOPEN_SOURCE_EXTENDED 1
6341 #include <errno.h>
6342 #ifdef EMULTIHOP
6343 yes
6344 #endif
6345
6346 _ACEOF
6347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6348 $EGREP "yes" >/dev/null 2>&1; then :
6349 gl_cv_header_errno_h_EMULTIHOP=hidden
6350 fi
6351 rm -f conftest*
6352
6353 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
6354 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
6355 #define _XOPEN_SOURCE_EXTENDED 1
6356 #include <errno.h>
6357 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6358 #include <stdio.h>
6359 #include <stdlib.h>
6360 "; then :
6361
6362 fi
6363
6364 fi
6365 fi
6366
6367 fi
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
6369 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
6370 case $gl_cv_header_errno_h_EMULTIHOP in
6371 yes | no)
6372 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
6373 ;;
6374 *)
6375 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
6376 ;;
6377 esac
6378
6379
6380 fi
6381
6382
6383 if test -n "$ERRNO_H"; then
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
6385 $as_echo_n "checking for ENOLINK value... " >&6; }
6386 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
6387 $as_echo_n "(cached) " >&6
6388 else
6389
6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6391 /* end confdefs.h. */
6392
6393 #include <errno.h>
6394 #ifdef ENOLINK
6395 yes
6396 #endif
6397
6398 _ACEOF
6399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6400 $EGREP "yes" >/dev/null 2>&1; then :
6401 gl_cv_header_errno_h_ENOLINK=yes
6402 else
6403 gl_cv_header_errno_h_ENOLINK=no
6404 fi
6405 rm -f conftest*
6406
6407 if test $gl_cv_header_errno_h_ENOLINK = no; then
6408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6409 /* end confdefs.h. */
6410
6411 #define _XOPEN_SOURCE_EXTENDED 1
6412 #include <errno.h>
6413 #ifdef ENOLINK
6414 yes
6415 #endif
6416
6417 _ACEOF
6418 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6419 $EGREP "yes" >/dev/null 2>&1; then :
6420 gl_cv_header_errno_h_ENOLINK=hidden
6421 fi
6422 rm -f conftest*
6423
6424 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
6425 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
6426 #define _XOPEN_SOURCE_EXTENDED 1
6427 #include <errno.h>
6428 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6429 #include <stdio.h>
6430 #include <stdlib.h>
6431 "; then :
6432
6433 fi
6434
6435 fi
6436 fi
6437
6438 fi
6439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
6440 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
6441 case $gl_cv_header_errno_h_ENOLINK in
6442 yes | no)
6443 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
6444 ;;
6445 *)
6446 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
6447 ;;
6448 esac
6449
6450
6451 fi
6452
6453
6454 if test -n "$ERRNO_H"; then
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
6456 $as_echo_n "checking for EOVERFLOW value... " >&6; }
6457 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
6458 $as_echo_n "(cached) " >&6
6459 else
6460
6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462 /* end confdefs.h. */
6463
6464 #include <errno.h>
6465 #ifdef EOVERFLOW
6466 yes
6467 #endif
6468
6469 _ACEOF
6470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6471 $EGREP "yes" >/dev/null 2>&1; then :
6472 gl_cv_header_errno_h_EOVERFLOW=yes
6473 else
6474 gl_cv_header_errno_h_EOVERFLOW=no
6475 fi
6476 rm -f conftest*
6477
6478 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
6479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6480 /* end confdefs.h. */
6481
6482 #define _XOPEN_SOURCE_EXTENDED 1
6483 #include <errno.h>
6484 #ifdef EOVERFLOW
6485 yes
6486 #endif
6487
6488 _ACEOF
6489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6490 $EGREP "yes" >/dev/null 2>&1; then :
6491 gl_cv_header_errno_h_EOVERFLOW=hidden
6492 fi
6493 rm -f conftest*
6494
6495 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
6496 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
6497 #define _XOPEN_SOURCE_EXTENDED 1
6498 #include <errno.h>
6499 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6500 #include <stdio.h>
6501 #include <stdlib.h>
6502 "; then :
6503
6504 fi
6505
6506 fi
6507 fi
6508
6509 fi
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
6511 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
6512 case $gl_cv_header_errno_h_EOVERFLOW in
6513 yes | no)
6514 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
6515 ;;
6516 *)
6517 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
6518 ;;
6519 esac
6520
6521
6522 fi
6523
6524
6525
6526
6527
6528
6529
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
6531 $as_echo_n "checking for mbstate_t... " >&6; }
6532 if test "${ac_cv_type_mbstate_t+set}" = set; then :
6533 $as_echo_n "(cached) " >&6
6534 else
6535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536 /* end confdefs.h. */
6537 $ac_includes_default
6538 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
6539 <wchar.h>.
6540 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6541 included before <wchar.h>. */
6542 #include <stddef.h>
6543 #include <stdio.h>
6544 #include <time.h>
6545 #include <wchar.h>
6546 int
6547 main ()
6548 {
6549 mbstate_t x; return sizeof x;
6550 ;
6551 return 0;
6552 }
6553 _ACEOF
6554 if ac_fn_c_try_compile "$LINENO"; then :
6555 ac_cv_type_mbstate_t=yes
6556 else
6557 ac_cv_type_mbstate_t=no
6558 fi
6559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6560 fi
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
6562 $as_echo "$ac_cv_type_mbstate_t" >&6; }
6563 if test $ac_cv_type_mbstate_t = yes; then
6564
6565 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
6566
6567 else
6568
6569 $as_echo "#define mbstate_t int" >>confdefs.h
6570
6571 fi
6572
6573
6574
6575
6576 for ac_func in $ac_func_list
6577 do :
6578 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6579 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6580 eval as_val=\$$as_ac_var
6581 if test "x$as_val" = x""yes; then :
6582 cat >>confdefs.h <<_ACEOF
6583 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6584 _ACEOF
6585
6586 fi
6587 done
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608 GNULIB_ACOSF=0;
6609 GNULIB_ACOSL=0;
6610 GNULIB_ASINF=0;
6611 GNULIB_ASINL=0;
6612 GNULIB_ATANF=0;
6613 GNULIB_ATANL=0;
6614 GNULIB_ATAN2F=0;
6615 GNULIB_CBRT=0;
6616 GNULIB_CBRTF=0;
6617 GNULIB_CBRTL=0;
6618 GNULIB_CEIL=0;
6619 GNULIB_CEILF=0;
6620 GNULIB_CEILL=0;
6621 GNULIB_COPYSIGN=0;
6622 GNULIB_COPYSIGNF=0;
6623 GNULIB_COPYSIGNL=0;
6624 GNULIB_COSF=0;
6625 GNULIB_COSL=0;
6626 GNULIB_COSHF=0;
6627 GNULIB_EXPF=0;
6628 GNULIB_EXPL=0;
6629 GNULIB_EXP2=0;
6630 GNULIB_EXP2F=0;
6631 GNULIB_EXP2L=0;
6632 GNULIB_EXPM1=0;
6633 GNULIB_EXPM1F=0;
6634 GNULIB_EXPM1L=0;
6635 GNULIB_FABSF=0;
6636 GNULIB_FABSL=0;
6637 GNULIB_FLOOR=0;
6638 GNULIB_FLOORF=0;
6639 GNULIB_FLOORL=0;
6640 GNULIB_FMA=0;
6641 GNULIB_FMAF=0;
6642 GNULIB_FMAL=0;
6643 GNULIB_FMOD=0;
6644 GNULIB_FMODF=0;
6645 GNULIB_FMODL=0;
6646 GNULIB_FREXPF=0;
6647 GNULIB_FREXP=0;
6648 GNULIB_FREXPL=0;
6649 GNULIB_HYPOT=0;
6650 GNULIB_HYPOTF=0;
6651 GNULIB_HYPOTL=0;
6652 GNULIB_ILOGB=0;
6653 GNULIB_ILOGBF=0;
6654 GNULIB_ILOGBL=0;
6655 GNULIB_ISFINITE=0;
6656 GNULIB_ISINF=0;
6657 GNULIB_ISNAN=0;
6658 GNULIB_ISNANF=0;
6659 GNULIB_ISNAND=0;
6660 GNULIB_ISNANL=0;
6661 GNULIB_LDEXPF=0;
6662 GNULIB_LDEXPL=0;
6663 GNULIB_LOG=0;
6664 GNULIB_LOGF=0;
6665 GNULIB_LOGL=0;
6666 GNULIB_LOG10=0;
6667 GNULIB_LOG10F=0;
6668 GNULIB_LOG10L=0;
6669 GNULIB_LOG1P=0;
6670 GNULIB_LOG1PF=0;
6671 GNULIB_LOG1PL=0;
6672 GNULIB_LOG2=0;
6673 GNULIB_LOG2F=0;
6674 GNULIB_LOG2L=0;
6675 GNULIB_LOGB=0;
6676 GNULIB_LOGBF=0;
6677 GNULIB_LOGBL=0;
6678 GNULIB_MODF=0;
6679 GNULIB_MODFF=0;
6680 GNULIB_MODFL=0;
6681 GNULIB_POWF=0;
6682 GNULIB_REMAINDER=0;
6683 GNULIB_REMAINDERF=0;
6684 GNULIB_REMAINDERL=0;
6685 GNULIB_RINT=0;
6686 GNULIB_RINTF=0;
6687 GNULIB_RINTL=0;
6688 GNULIB_ROUND=0;
6689 GNULIB_ROUNDF=0;
6690 GNULIB_ROUNDL=0;
6691 GNULIB_SIGNBIT=0;
6692 GNULIB_SINF=0;
6693 GNULIB_SINL=0;
6694 GNULIB_SINHF=0;
6695 GNULIB_SQRTF=0;
6696 GNULIB_SQRTL=0;
6697 GNULIB_TANF=0;
6698 GNULIB_TANL=0;
6699 GNULIB_TANHF=0;
6700 GNULIB_TRUNC=0;
6701 GNULIB_TRUNCF=0;
6702 GNULIB_TRUNCL=0;
6703 HAVE_ACOSF=1;
6704 HAVE_ACOSL=1;
6705 HAVE_ASINF=1;
6706 HAVE_ASINL=1;
6707 HAVE_ATANF=1;
6708 HAVE_ATANL=1;
6709 HAVE_ATAN2F=1;
6710 HAVE_CBRT=1;
6711 HAVE_CBRTF=1;
6712 HAVE_CBRTL=1;
6713 HAVE_COPYSIGN=1;
6714 HAVE_COPYSIGNL=1;
6715 HAVE_COSF=1;
6716 HAVE_COSL=1;
6717 HAVE_COSHF=1;
6718 HAVE_EXPF=1;
6719 HAVE_EXPL=1;
6720 HAVE_EXPM1=1;
6721 HAVE_EXPM1F=1;
6722 HAVE_FABSF=1;
6723 HAVE_FABSL=1;
6724 HAVE_FMA=1;
6725 HAVE_FMAF=1;
6726 HAVE_FMAL=1;
6727 HAVE_FMODF=1;
6728 HAVE_FMODL=1;
6729 HAVE_FREXPF=1;
6730 HAVE_HYPOTF=1;
6731 HAVE_HYPOTL=1;
6732 HAVE_ILOGB=1;
6733 HAVE_ILOGBF=1;
6734 HAVE_ILOGBL=1;
6735 HAVE_ISNANF=1;
6736 HAVE_ISNAND=1;
6737 HAVE_ISNANL=1;
6738 HAVE_LDEXPF=1;
6739 HAVE_LOGF=1;
6740 HAVE_LOGL=1;
6741 HAVE_LOG10F=1;
6742 HAVE_LOG10L=1;
6743 HAVE_LOG1P=1;
6744 HAVE_LOG1PF=1;
6745 HAVE_LOG1PL=1;
6746 HAVE_LOGBF=1;
6747 HAVE_LOGBL=1;
6748 HAVE_MODFF=1;
6749 HAVE_MODFL=1;
6750 HAVE_POWF=1;
6751 HAVE_REMAINDER=1;
6752 HAVE_REMAINDERF=1;
6753 HAVE_RINT=1;
6754 HAVE_RINTL=1;
6755 HAVE_SINF=1;
6756 HAVE_SINL=1;
6757 HAVE_SINHF=1;
6758 HAVE_SQRTF=1;
6759 HAVE_SQRTL=1;
6760 HAVE_TANF=1;
6761 HAVE_TANL=1;
6762 HAVE_TANHF=1;
6763 HAVE_DECL_ACOSL=1;
6764 HAVE_DECL_ASINL=1;
6765 HAVE_DECL_ATANL=1;
6766 HAVE_DECL_CBRTF=1;
6767 HAVE_DECL_CBRTL=1;
6768 HAVE_DECL_CEILF=1;
6769 HAVE_DECL_CEILL=1;
6770 HAVE_DECL_COPYSIGNF=1;
6771 HAVE_DECL_COSL=1;
6772 HAVE_DECL_EXPL=1;
6773 HAVE_DECL_EXP2=1;
6774 HAVE_DECL_EXP2F=1;
6775 HAVE_DECL_EXP2L=1;
6776 HAVE_DECL_EXPM1L=1;
6777 HAVE_DECL_FLOORF=1;
6778 HAVE_DECL_FLOORL=1;
6779 HAVE_DECL_FREXPL=1;
6780 HAVE_DECL_LDEXPL=1;
6781 HAVE_DECL_LOGL=1;
6782 HAVE_DECL_LOG10L=1;
6783 HAVE_DECL_LOG2=1;
6784 HAVE_DECL_LOG2F=1;
6785 HAVE_DECL_LOG2L=1;
6786 HAVE_DECL_LOGB=1;
6787 HAVE_DECL_REMAINDER=1;
6788 HAVE_DECL_REMAINDERL=1;
6789 HAVE_DECL_RINTF=1;
6790 HAVE_DECL_ROUND=1;
6791 HAVE_DECL_ROUNDF=1;
6792 HAVE_DECL_ROUNDL=1;
6793 HAVE_DECL_SINL=1;
6794 HAVE_DECL_SQRTL=1;
6795 HAVE_DECL_TANL=1;
6796 HAVE_DECL_TRUNC=1;
6797 HAVE_DECL_TRUNCF=1;
6798 HAVE_DECL_TRUNCL=1;
6799 REPLACE_CBRTF=0;
6800 REPLACE_CBRTL=0;
6801 REPLACE_CEIL=0;
6802 REPLACE_CEILF=0;
6803 REPLACE_CEILL=0;
6804 REPLACE_EXPM1=0;
6805 REPLACE_EXPM1F=0;
6806 REPLACE_EXP2=0;
6807 REPLACE_EXP2L=0;
6808 REPLACE_FABSL=0;
6809 REPLACE_FLOOR=0;
6810 REPLACE_FLOORF=0;
6811 REPLACE_FLOORL=0;
6812 REPLACE_FMA=0;
6813 REPLACE_FMAF=0;
6814 REPLACE_FMAL=0;
6815 REPLACE_FMOD=0;
6816 REPLACE_FMODF=0;
6817 REPLACE_FMODL=0;
6818 REPLACE_FREXPF=0;
6819 REPLACE_FREXP=0;
6820 REPLACE_FREXPL=0;
6821 REPLACE_HUGE_VAL=0;
6822 REPLACE_HYPOT=0;
6823 REPLACE_HYPOTF=0;
6824 REPLACE_HYPOTL=0;
6825 REPLACE_ILOGB=0;
6826 REPLACE_ILOGBF=0;
6827 REPLACE_ISFINITE=0;
6828 REPLACE_ISINF=0;
6829 REPLACE_ISNAN=0;
6830 REPLACE_LDEXPL=0;
6831 REPLACE_LOG=0;
6832 REPLACE_LOGF=0;
6833 REPLACE_LOGL=0;
6834 REPLACE_LOG10=0;
6835 REPLACE_LOG10F=0;
6836 REPLACE_LOG10L=0;
6837 REPLACE_LOG1P=0;
6838 REPLACE_LOG1PF=0;
6839 REPLACE_LOG1PL=0;
6840 REPLACE_LOG2=0;
6841 REPLACE_LOG2F=0;
6842 REPLACE_LOG2L=0;
6843 REPLACE_LOGB=0;
6844 REPLACE_LOGBF=0;
6845 REPLACE_LOGBL=0;
6846 REPLACE_MODF=0;
6847 REPLACE_MODFF=0;
6848 REPLACE_MODFL=0;
6849 REPLACE_NAN=0;
6850 REPLACE_REMAINDER=0;
6851 REPLACE_REMAINDERF=0;
6852 REPLACE_REMAINDERL=0;
6853 REPLACE_ROUND=0;
6854 REPLACE_ROUNDF=0;
6855 REPLACE_ROUNDL=0;
6856 REPLACE_SIGNBIT=0;
6857 REPLACE_SIGNBIT_USING_GCC=0;
6858 REPLACE_SQRTL=0;
6859 REPLACE_TRUNC=0;
6860 REPLACE_TRUNCF=0;
6861 REPLACE_TRUNCL=0;
6862
6863
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
6865 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
6866 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
6867 $as_echo_n "(cached) " >&6
6868 else
6869
6870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h. */
6872 #include <math.h>
6873 double x;
6874 int
6875 main ()
6876 {
6877 int e; return frexp (x, &e) > 0;
6878 ;
6879 return 0;
6880 }
6881 _ACEOF
6882 if ac_fn_c_try_link "$LINENO"; then :
6883 gl_cv_func_frexp_no_libm=yes
6884 else
6885 gl_cv_func_frexp_no_libm=no
6886 fi
6887 rm -f core conftest.err conftest.$ac_objext \
6888 conftest$ac_exeext conftest.$ac_ext
6889
6890 fi
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
6892 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
6893
6894
6895
6896
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
6898 $as_echo_n "checking whether long double and double are the same... " >&6; }
6899 if test "${gl_cv_long_double_equals_double+set}" = set; then :
6900 $as_echo_n "(cached) " >&6
6901 else
6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903 /* end confdefs.h. */
6904 #include <float.h>
6905 int
6906 main ()
6907 {
6908 typedef int check[sizeof (long double) == sizeof (double)
6909 && LDBL_MANT_DIG == DBL_MANT_DIG
6910 && LDBL_MAX_EXP == DBL_MAX_EXP
6911 && LDBL_MIN_EXP == DBL_MIN_EXP
6912 ? 1 : -1];
6913
6914 ;
6915 return 0;
6916 }
6917 _ACEOF
6918 if ac_fn_c_try_compile "$LINENO"; then :
6919 gl_cv_long_double_equals_double=yes
6920 else
6921 gl_cv_long_double_equals_double=no
6922 fi
6923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6924
6925 fi
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
6927 $as_echo "$gl_cv_long_double_equals_double" >&6; }
6928 if test $gl_cv_long_double_equals_double = yes; then
6929
6930 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
6931
6932 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
6933 else
6934 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
6935 fi
6936
6937
6938
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6940 $as_echo_n "checking for unsigned long long int... " >&6; }
6941 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6942 $as_echo_n "(cached) " >&6
6943 else
6944 ac_cv_type_unsigned_long_long_int=yes
6945 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6947 /* end confdefs.h. */
6948
6949 /* For now, do not test the preprocessor; as of 2007 there are too many
6950 implementations with broken preprocessors. Perhaps this can
6951 be revisited in 2012. In the meantime, code should not expect
6952 #if to work with literals wider than 32 bits. */
6953 /* Test literals. */
6954 long long int ll = 9223372036854775807ll;
6955 long long int nll = -9223372036854775807LL;
6956 unsigned long long int ull = 18446744073709551615ULL;
6957 /* Test constant expressions. */
6958 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6959 ? 1 : -1)];
6960 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6961 ? 1 : -1)];
6962 int i = 63;
6963 int
6964 main ()
6965 {
6966 /* Test availability of runtime routines for shift and division. */
6967 long long int llmax = 9223372036854775807ll;
6968 unsigned long long int ullmax = 18446744073709551615ull;
6969 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6970 | (llmax / ll) | (llmax % ll)
6971 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6972 | (ullmax / ull) | (ullmax % ull));
6973 ;
6974 return 0;
6975 }
6976
6977 _ACEOF
6978 if ac_fn_c_try_link "$LINENO"; then :
6979
6980 else
6981 ac_cv_type_unsigned_long_long_int=no
6982 fi
6983 rm -f core conftest.err conftest.$ac_objext \
6984 conftest$ac_exeext conftest.$ac_ext
6985 fi
6986 fi
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6988 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6989 if test $ac_cv_type_unsigned_long_long_int = yes; then
6990
6991 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6992
6993 fi
6994
6995
6996
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6998 $as_echo_n "checking for long long int... " >&6; }
6999 if test "${ac_cv_type_long_long_int+set}" = set; then :
7000 $as_echo_n "(cached) " >&6
7001 else
7002 ac_cv_type_long_long_int=yes
7003 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7004 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
7005 if test $ac_cv_type_long_long_int = yes; then
7006 if test "$cross_compiling" = yes; then :
7007 :
7008 else
7009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7010 /* end confdefs.h. */
7011 #include <limits.h>
7012 #ifndef LLONG_MAX
7013 # define HALF \
7014 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7015 # define LLONG_MAX (HALF - 1 + HALF)
7016 #endif
7017 int
7018 main ()
7019 {
7020 long long int n = 1;
7021 int i;
7022 for (i = 0; ; i++)
7023 {
7024 long long int m = n << i;
7025 if (m >> i != n)
7026 return 1;
7027 if (LLONG_MAX / 2 < m)
7028 break;
7029 }
7030 return 0;
7031 ;
7032 return 0;
7033 }
7034 _ACEOF
7035 if ac_fn_c_try_run "$LINENO"; then :
7036
7037 else
7038 ac_cv_type_long_long_int=no
7039 fi
7040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7041 conftest.$ac_objext conftest.beam conftest.$ac_ext
7042 fi
7043
7044 fi
7045 fi
7046 fi
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7048 $as_echo "$ac_cv_type_long_long_int" >&6; }
7049 if test $ac_cv_type_long_long_int = yes; then
7050
7051 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7052
7053 fi
7054
7055
7056
7057
7058
7059
7060 gl_cv_c_multiarch=no
7061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062 /* end confdefs.h. */
7063 #ifndef __APPLE_CC__
7064 not a universal capable compiler
7065 #endif
7066 typedef int dummy;
7067
7068 _ACEOF
7069 if ac_fn_c_try_compile "$LINENO"; then :
7070
7071 arch=
7072 prev=
7073 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
7074 if test -n "$prev"; then
7075 case $word in
7076 i?86 | x86_64 | ppc | ppc64)
7077 if test -z "$arch" || test "$arch" = "$word"; then
7078 arch="$word"
7079 else
7080 gl_cv_c_multiarch=yes
7081 fi
7082 ;;
7083 esac
7084 prev=
7085 else
7086 if test "x$word" = "x-arch"; then
7087 prev=arch
7088 fi
7089 fi
7090 done
7091
7092 fi
7093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7094 if test $gl_cv_c_multiarch = yes; then
7095 APPLE_UNIVERSAL_BUILD=1
7096 else
7097 APPLE_UNIVERSAL_BUILD=0
7098 fi
7099
7100
7101
7102
7103
7104 if test $ac_cv_type_long_long_int = yes; then
7105 HAVE_LONG_LONG_INT=1
7106 else
7107 HAVE_LONG_LONG_INT=0
7108 fi
7109
7110
7111 if test $ac_cv_type_unsigned_long_long_int = yes; then
7112 HAVE_UNSIGNED_LONG_LONG_INT=1
7113 else
7114 HAVE_UNSIGNED_LONG_LONG_INT=0
7115 fi
7116
7117
7118
7119 if test $ac_cv_header_wchar_h = yes; then
7120 HAVE_WCHAR_H=1
7121 else
7122 HAVE_WCHAR_H=0
7123 fi
7124
7125
7126 if test $ac_cv_header_inttypes_h = yes; then
7127 HAVE_INTTYPES_H=1
7128 else
7129 HAVE_INTTYPES_H=0
7130 fi
7131
7132
7133 if test $ac_cv_header_sys_types_h = yes; then
7134 HAVE_SYS_TYPES_H=1
7135 else
7136 HAVE_SYS_TYPES_H=0
7137 fi
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149 if test $gl_cv_have_include_next = yes; then
7150 gl_cv_next_stdint_h='<'stdint.h'>'
7151 else
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
7153 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
7154 if test "${gl_cv_next_stdint_h+set}" = set; then :
7155 $as_echo_n "(cached) " >&6
7156 else
7157
7158 if test $ac_cv_header_stdint_h = yes; then
7159
7160
7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h. */
7163 #include <stdint.h>
7164
7165 _ACEOF
7166 case "$host_os" in
7167 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7168 *) gl_absname_cpp="$ac_cpp" ;;
7169 esac
7170
7171 case "$host_os" in
7172 mingw*)
7173 gl_dirsep_regex='[/\\]'
7174 ;;
7175 *)
7176 gl_dirsep_regex='\/'
7177 ;;
7178 esac
7179 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7180
7181 gl_header_literal_regex=`echo 'stdint.h' \
7182 | sed -e "$gl_make_literal_regex_sed"`
7183 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7184 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7185 s|^/[^/]|//&|
7186 p
7187 q
7188 }'
7189 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7190 sed -n "$gl_absolute_header_sed"`'"'
7191 else
7192 gl_cv_next_stdint_h='<'stdint.h'>'
7193 fi
7194
7195
7196 fi
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
7198 $as_echo "$gl_cv_next_stdint_h" >&6; }
7199 fi
7200 NEXT_STDINT_H=$gl_cv_next_stdint_h
7201
7202 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7203 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7204 gl_next_as_first_directive='<'stdint.h'>'
7205 else
7206 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7207 gl_next_as_first_directive=$gl_cv_next_stdint_h
7208 fi
7209 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
7210
7211
7212
7213
7214 if test $ac_cv_header_stdint_h = yes; then
7215 HAVE_STDINT_H=1
7216 else
7217 HAVE_STDINT_H=0
7218 fi
7219
7220
7221 if test $ac_cv_header_stdint_h = yes; then
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
7223 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
7224 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
7225 $as_echo_n "(cached) " >&6
7226 else
7227 gl_cv_header_working_stdint_h=no
7228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h. */
7230
7231
7232 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7233 #include <stdint.h>
7234 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
7235 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
7236 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
7237 #endif
7238
7239
7240 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7241 included before <wchar.h>. */
7242 #include <stddef.h>
7243 #include <signal.h>
7244 #if HAVE_WCHAR_H
7245 # include <stdio.h>
7246 # include <time.h>
7247 # include <wchar.h>
7248 #endif
7249
7250
7251 #ifdef INT8_MAX
7252 int8_t a1 = INT8_MAX;
7253 int8_t a1min = INT8_MIN;
7254 #endif
7255 #ifdef INT16_MAX
7256 int16_t a2 = INT16_MAX;
7257 int16_t a2min = INT16_MIN;
7258 #endif
7259 #ifdef INT32_MAX
7260 int32_t a3 = INT32_MAX;
7261 int32_t a3min = INT32_MIN;
7262 #endif
7263 #ifdef INT64_MAX
7264 int64_t a4 = INT64_MAX;
7265 int64_t a4min = INT64_MIN;
7266 #endif
7267 #ifdef UINT8_MAX
7268 uint8_t b1 = UINT8_MAX;
7269 #else
7270 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
7271 #endif
7272 #ifdef UINT16_MAX
7273 uint16_t b2 = UINT16_MAX;
7274 #endif
7275 #ifdef UINT32_MAX
7276 uint32_t b3 = UINT32_MAX;
7277 #endif
7278 #ifdef UINT64_MAX
7279 uint64_t b4 = UINT64_MAX;
7280 #endif
7281 int_least8_t c1 = INT8_C (0x7f);
7282 int_least8_t c1max = INT_LEAST8_MAX;
7283 int_least8_t c1min = INT_LEAST8_MIN;
7284 int_least16_t c2 = INT16_C (0x7fff);
7285 int_least16_t c2max = INT_LEAST16_MAX;
7286 int_least16_t c2min = INT_LEAST16_MIN;
7287 int_least32_t c3 = INT32_C (0x7fffffff);
7288 int_least32_t c3max = INT_LEAST32_MAX;
7289 int_least32_t c3min = INT_LEAST32_MIN;
7290 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
7291 int_least64_t c4max = INT_LEAST64_MAX;
7292 int_least64_t c4min = INT_LEAST64_MIN;
7293 uint_least8_t d1 = UINT8_C (0xff);
7294 uint_least8_t d1max = UINT_LEAST8_MAX;
7295 uint_least16_t d2 = UINT16_C (0xffff);
7296 uint_least16_t d2max = UINT_LEAST16_MAX;
7297 uint_least32_t d3 = UINT32_C (0xffffffff);
7298 uint_least32_t d3max = UINT_LEAST32_MAX;
7299 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
7300 uint_least64_t d4max = UINT_LEAST64_MAX;
7301 int_fast8_t e1 = INT_FAST8_MAX;
7302 int_fast8_t e1min = INT_FAST8_MIN;
7303 int_fast16_t e2 = INT_FAST16_MAX;
7304 int_fast16_t e2min = INT_FAST16_MIN;
7305 int_fast32_t e3 = INT_FAST32_MAX;
7306 int_fast32_t e3min = INT_FAST32_MIN;
7307 int_fast64_t e4 = INT_FAST64_MAX;
7308 int_fast64_t e4min = INT_FAST64_MIN;
7309 uint_fast8_t f1 = UINT_FAST8_MAX;
7310 uint_fast16_t f2 = UINT_FAST16_MAX;
7311 uint_fast32_t f3 = UINT_FAST32_MAX;
7312 uint_fast64_t f4 = UINT_FAST64_MAX;
7313 #ifdef INTPTR_MAX
7314 intptr_t g = INTPTR_MAX;
7315 intptr_t gmin = INTPTR_MIN;
7316 #endif
7317 #ifdef UINTPTR_MAX
7318 uintptr_t h = UINTPTR_MAX;
7319 #endif
7320 intmax_t i = INTMAX_MAX;
7321 uintmax_t j = UINTMAX_MAX;
7322
7323 #include <limits.h> /* for CHAR_BIT */
7324 #define TYPE_MINIMUM(t) \
7325 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
7326 #define TYPE_MAXIMUM(t) \
7327 ((t) ((t) 0 < (t) -1 \
7328 ? (t) -1 \
7329 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
7330 struct s {
7331 int check_PTRDIFF:
7332 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
7333 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
7334 ? 1 : -1;
7335 /* Detect bug in FreeBSD 6.0 / ia64. */
7336 int check_SIG_ATOMIC:
7337 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
7338 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
7339 ? 1 : -1;
7340 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
7341 int check_WCHAR:
7342 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
7343 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
7344 ? 1 : -1;
7345 /* Detect bug in mingw. */
7346 int check_WINT:
7347 WINT_MIN == TYPE_MINIMUM (wint_t)
7348 && WINT_MAX == TYPE_MAXIMUM (wint_t)
7349 ? 1 : -1;
7350
7351 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
7352 int check_UINT8_C:
7353 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
7354 int check_UINT16_C:
7355 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
7356
7357 /* Detect bugs in OpenBSD 3.9 stdint.h. */
7358 #ifdef UINT8_MAX
7359 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
7360 #endif
7361 #ifdef UINT16_MAX
7362 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
7363 #endif
7364 #ifdef UINT32_MAX
7365 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
7366 #endif
7367 #ifdef UINT64_MAX
7368 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
7369 #endif
7370 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
7371 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
7372 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
7373 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
7374 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
7375 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
7376 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
7377 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
7378 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
7379 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
7380 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
7381 };
7382
7383 int
7384 main ()
7385 {
7386
7387 ;
7388 return 0;
7389 }
7390 _ACEOF
7391 if ac_fn_c_try_compile "$LINENO"; then :
7392 if test "$cross_compiling" = yes; then :
7393 gl_cv_header_working_stdint_h=yes
7394
7395 else
7396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7397 /* end confdefs.h. */
7398
7399
7400 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7401 #include <stdint.h>
7402
7403
7404 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7405 included before <wchar.h>. */
7406 #include <stddef.h>
7407 #include <signal.h>
7408 #if HAVE_WCHAR_H
7409 # include <stdio.h>
7410 # include <time.h>
7411 # include <wchar.h>
7412 #endif
7413
7414
7415 #include <stdio.h>
7416 #include <string.h>
7417 #define MVAL(macro) MVAL1(macro)
7418 #define MVAL1(expression) #expression
7419 static const char *macro_values[] =
7420 {
7421 #ifdef INT8_MAX
7422 MVAL (INT8_MAX),
7423 #endif
7424 #ifdef INT16_MAX
7425 MVAL (INT16_MAX),
7426 #endif
7427 #ifdef INT32_MAX
7428 MVAL (INT32_MAX),
7429 #endif
7430 #ifdef INT64_MAX
7431 MVAL (INT64_MAX),
7432 #endif
7433 #ifdef UINT8_MAX
7434 MVAL (UINT8_MAX),
7435 #endif
7436 #ifdef UINT16_MAX
7437 MVAL (UINT16_MAX),
7438 #endif
7439 #ifdef UINT32_MAX
7440 MVAL (UINT32_MAX),
7441 #endif
7442 #ifdef UINT64_MAX
7443 MVAL (UINT64_MAX),
7444 #endif
7445 NULL
7446 };
7447
7448 int
7449 main ()
7450 {
7451
7452 const char **mv;
7453 for (mv = macro_values; *mv != NULL; mv++)
7454 {
7455 const char *value = *mv;
7456 /* Test whether it looks like a cast expression. */
7457 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
7458 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
7459 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
7460 || strncmp (value, "((int)"/*)*/, 6) == 0
7461 || strncmp (value, "((signed short)"/*)*/, 15) == 0
7462 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
7463 return mv - macro_values + 1;
7464 }
7465 return 0;
7466
7467 ;
7468 return 0;
7469 }
7470 _ACEOF
7471 if ac_fn_c_try_run "$LINENO"; then :
7472 gl_cv_header_working_stdint_h=yes
7473 fi
7474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7475 conftest.$ac_objext conftest.beam conftest.$ac_ext
7476 fi
7477
7478
7479 fi
7480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7481
7482 fi
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
7484 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
7485 fi
7486 if test "$gl_cv_header_working_stdint_h" = yes; then
7487 STDINT_H=
7488 else
7489 for ac_header in sys/inttypes.h sys/bitypes.h
7490 do :
7491 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7492 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7493 eval as_val=\$$as_ac_Header
7494 if test "x$as_val" = x""yes; then :
7495 cat >>confdefs.h <<_ACEOF
7496 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7497 _ACEOF
7498
7499 fi
7500
7501 done
7502
7503 if test $ac_cv_header_sys_inttypes_h = yes; then
7504 HAVE_SYS_INTTYPES_H=1
7505 else
7506 HAVE_SYS_INTTYPES_H=0
7507 fi
7508
7509 if test $ac_cv_header_sys_bitypes_h = yes; then
7510 HAVE_SYS_BITYPES_H=1
7511 else
7512 HAVE_SYS_BITYPES_H=0
7513 fi
7514
7515
7516
7517
7518 if test $APPLE_UNIVERSAL_BUILD = 0; then
7519
7520
7521 for gltype in ptrdiff_t size_t ; do
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
7523 $as_echo_n "checking for bit size of $gltype... " >&6; }
7524 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
7525 $as_echo_n "(cached) " >&6
7526 else
7527 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
7528 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7529 included before <wchar.h>. */
7530 #include <stddef.h>
7531 #include <signal.h>
7532 #if HAVE_WCHAR_H
7533 # include <stdio.h>
7534 # include <time.h>
7535 # include <wchar.h>
7536 #endif
7537
7538 #include <limits.h>"; then :
7539
7540 else
7541 result=unknown
7542 fi
7543
7544 eval gl_cv_bitsizeof_${gltype}=\$result
7545
7546 fi
7547 eval ac_res=\$gl_cv_bitsizeof_${gltype}
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7549 $as_echo "$ac_res" >&6; }
7550 eval result=\$gl_cv_bitsizeof_${gltype}
7551 if test $result = unknown; then
7552 result=0
7553 fi
7554 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7555 cat >>confdefs.h <<_ACEOF
7556 #define BITSIZEOF_${GLTYPE} $result
7557 _ACEOF
7558
7559 eval BITSIZEOF_${GLTYPE}=\$result
7560 done
7561
7562
7563 fi
7564
7565
7566 for gltype in sig_atomic_t wchar_t wint_t ; do
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
7568 $as_echo_n "checking for bit size of $gltype... " >&6; }
7569 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
7570 $as_echo_n "(cached) " >&6
7571 else
7572 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
7573 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7574 included before <wchar.h>. */
7575 #include <stddef.h>
7576 #include <signal.h>
7577 #if HAVE_WCHAR_H
7578 # include <stdio.h>
7579 # include <time.h>
7580 # include <wchar.h>
7581 #endif
7582
7583 #include <limits.h>"; then :
7584
7585 else
7586 result=unknown
7587 fi
7588
7589 eval gl_cv_bitsizeof_${gltype}=\$result
7590
7591 fi
7592 eval ac_res=\$gl_cv_bitsizeof_${gltype}
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7594 $as_echo "$ac_res" >&6; }
7595 eval result=\$gl_cv_bitsizeof_${gltype}
7596 if test $result = unknown; then
7597 result=0
7598 fi
7599 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7600 cat >>confdefs.h <<_ACEOF
7601 #define BITSIZEOF_${GLTYPE} $result
7602 _ACEOF
7603
7604 eval BITSIZEOF_${GLTYPE}=\$result
7605 done
7606
7607
7608
7609
7610 for gltype in sig_atomic_t wchar_t wint_t ; do
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
7612 $as_echo_n "checking whether $gltype is signed... " >&6; }
7613 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
7614 $as_echo_n "(cached) " >&6
7615 else
7616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7617 /* end confdefs.h. */
7618
7619 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7620 included before <wchar.h>. */
7621 #include <stddef.h>
7622 #include <signal.h>
7623 #if HAVE_WCHAR_H
7624 # include <stdio.h>
7625 # include <time.h>
7626 # include <wchar.h>
7627 #endif
7628
7629 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
7630 int
7631 main ()
7632 {
7633
7634 ;
7635 return 0;
7636 }
7637 _ACEOF
7638 if ac_fn_c_try_compile "$LINENO"; then :
7639 result=yes
7640 else
7641 result=no
7642 fi
7643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7644 eval gl_cv_type_${gltype}_signed=\$result
7645
7646 fi
7647 eval ac_res=\$gl_cv_type_${gltype}_signed
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7649 $as_echo "$ac_res" >&6; }
7650 eval result=\$gl_cv_type_${gltype}_signed
7651 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7652 if test "$result" = yes; then
7653 cat >>confdefs.h <<_ACEOF
7654 #define HAVE_SIGNED_${GLTYPE} 1
7655 _ACEOF
7656
7657 eval HAVE_SIGNED_${GLTYPE}=1
7658 else
7659 eval HAVE_SIGNED_${GLTYPE}=0
7660 fi
7661 done
7662
7663
7664 gl_cv_type_ptrdiff_t_signed=yes
7665 gl_cv_type_size_t_signed=no
7666 if test $APPLE_UNIVERSAL_BUILD = 0; then
7667
7668
7669 for gltype in ptrdiff_t size_t ; do
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
7671 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
7672 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
7673 $as_echo_n "(cached) " >&6
7674 else
7675 eval gl_cv_type_${gltype}_suffix=no
7676 eval result=\$gl_cv_type_${gltype}_signed
7677 if test "$result" = yes; then
7678 glsufu=
7679 else
7680 glsufu=u
7681 fi
7682 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
7683 case $glsuf in
7684 '') gltype1='int';;
7685 l) gltype1='long int';;
7686 ll) gltype1='long long int';;
7687 i64) gltype1='__int64';;
7688 u) gltype1='unsigned int';;
7689 ul) gltype1='unsigned long int';;
7690 ull) gltype1='unsigned long long int';;
7691 ui64)gltype1='unsigned __int64';;
7692 esac
7693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7694 /* end confdefs.h. */
7695
7696 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7697 included before <wchar.h>. */
7698 #include <stddef.h>
7699 #include <signal.h>
7700 #if HAVE_WCHAR_H
7701 # include <stdio.h>
7702 # include <time.h>
7703 # include <wchar.h>
7704 #endif
7705
7706 extern $gltype foo;
7707 extern $gltype1 foo;
7708 int
7709 main ()
7710 {
7711
7712 ;
7713 return 0;
7714 }
7715 _ACEOF
7716 if ac_fn_c_try_compile "$LINENO"; then :
7717 eval gl_cv_type_${gltype}_suffix=\$glsuf
7718 fi
7719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7720 eval result=\$gl_cv_type_${gltype}_suffix
7721 test "$result" != no && break
7722 done
7723 fi
7724 eval ac_res=\$gl_cv_type_${gltype}_suffix
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7726 $as_echo "$ac_res" >&6; }
7727 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7728 eval result=\$gl_cv_type_${gltype}_suffix
7729 test "$result" = no && result=
7730 eval ${GLTYPE}_SUFFIX=\$result
7731 cat >>confdefs.h <<_ACEOF
7732 #define ${GLTYPE}_SUFFIX $result
7733 _ACEOF
7734
7735 done
7736
7737
7738 fi
7739
7740
7741 for gltype in sig_atomic_t wchar_t wint_t ; do
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
7743 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
7744 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
7745 $as_echo_n "(cached) " >&6
7746 else
7747 eval gl_cv_type_${gltype}_suffix=no
7748 eval result=\$gl_cv_type_${gltype}_signed
7749 if test "$result" = yes; then
7750 glsufu=
7751 else
7752 glsufu=u
7753 fi
7754 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
7755 case $glsuf in
7756 '') gltype1='int';;
7757 l) gltype1='long int';;
7758 ll) gltype1='long long int';;
7759 i64) gltype1='__int64';;
7760 u) gltype1='unsigned int';;
7761 ul) gltype1='unsigned long int';;
7762 ull) gltype1='unsigned long long int';;
7763 ui64)gltype1='unsigned __int64';;
7764 esac
7765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7766 /* end confdefs.h. */
7767
7768 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7769 included before <wchar.h>. */
7770 #include <stddef.h>
7771 #include <signal.h>
7772 #if HAVE_WCHAR_H
7773 # include <stdio.h>
7774 # include <time.h>
7775 # include <wchar.h>
7776 #endif
7777
7778 extern $gltype foo;
7779 extern $gltype1 foo;
7780 int
7781 main ()
7782 {
7783
7784 ;
7785 return 0;
7786 }
7787 _ACEOF
7788 if ac_fn_c_try_compile "$LINENO"; then :
7789 eval gl_cv_type_${gltype}_suffix=\$glsuf
7790 fi
7791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7792 eval result=\$gl_cv_type_${gltype}_suffix
7793 test "$result" != no && break
7794 done
7795 fi
7796 eval ac_res=\$gl_cv_type_${gltype}_suffix
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7798 $as_echo "$ac_res" >&6; }
7799 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7800 eval result=\$gl_cv_type_${gltype}_suffix
7801 test "$result" = no && result=
7802 eval ${GLTYPE}_SUFFIX=\$result
7803 cat >>confdefs.h <<_ACEOF
7804 #define ${GLTYPE}_SUFFIX $result
7805 _ACEOF
7806
7807 done
7808
7809
7810
7811 if test $BITSIZEOF_WINT_T -lt 32; then
7812 BITSIZEOF_WINT_T=32
7813 fi
7814
7815 STDINT_H=stdint.h
7816 fi
7817
7818 if test -n "$STDINT_H"; then
7819 GL_GENERATE_STDINT_H_TRUE=
7820 GL_GENERATE_STDINT_H_FALSE='#'
7821 else
7822 GL_GENERATE_STDINT_H_TRUE='#'
7823 GL_GENERATE_STDINT_H_FALSE=
7824 fi
7825
7826
7827
7828
7829
7830 GNULIB_IMAXABS=0;
7831 GNULIB_IMAXDIV=0;
7832 GNULIB_STRTOIMAX=0;
7833 GNULIB_STRTOUMAX=0;
7834 HAVE_DECL_IMAXABS=1;
7835 HAVE_DECL_IMAXDIV=1;
7836 HAVE_DECL_STRTOIMAX=1;
7837 HAVE_DECL_STRTOUMAX=1;
7838 REPLACE_STRTOIMAX=0;
7839 INT32_MAX_LT_INTMAX_MAX=1;
7840 INT64_MAX_EQ_LONG_MAX='defined _LP64';
7841 PRI_MACROS_BROKEN=0;
7842 PRIPTR_PREFIX=__PRIPTR_PREFIX;
7843 UINT32_MAX_LT_UINTMAX_MAX=1;
7844 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860 if test $gl_cv_have_include_next = yes; then
7861 gl_cv_next_inttypes_h='<'inttypes.h'>'
7862 else
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
7864 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
7865 if test "${gl_cv_next_inttypes_h+set}" = set; then :
7866 $as_echo_n "(cached) " >&6
7867 else
7868
7869 if test $ac_cv_header_inttypes_h = yes; then
7870
7871
7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h. */
7874 #include <inttypes.h>
7875
7876 _ACEOF
7877 case "$host_os" in
7878 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7879 *) gl_absname_cpp="$ac_cpp" ;;
7880 esac
7881
7882 case "$host_os" in
7883 mingw*)
7884 gl_dirsep_regex='[/\\]'
7885 ;;
7886 *)
7887 gl_dirsep_regex='\/'
7888 ;;
7889 esac
7890 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7891
7892 gl_header_literal_regex=`echo 'inttypes.h' \
7893 | sed -e "$gl_make_literal_regex_sed"`
7894 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7895 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7896 s|^/[^/]|//&|
7897 p
7898 q
7899 }'
7900 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7901 sed -n "$gl_absolute_header_sed"`'"'
7902 else
7903 gl_cv_next_inttypes_h='<'inttypes.h'>'
7904 fi
7905
7906
7907 fi
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
7909 $as_echo "$gl_cv_next_inttypes_h" >&6; }
7910 fi
7911 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
7912
7913 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7914 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7915 gl_next_as_first_directive='<'inttypes.h'>'
7916 else
7917 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7918 gl_next_as_first_directive=$gl_cv_next_inttypes_h
7919 fi
7920 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
7921
7922
7923
7924
7925
7926
7927
7928
7929 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
7930 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7932 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7933 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7934 $as_echo_n "(cached) " >&6
7935 else
7936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7937 /* end confdefs.h. */
7938 #include <inttypes.h>
7939
7940 int
7941 main ()
7942 {
7943 #undef $gl_func
7944 (void) $gl_func;
7945 ;
7946 return 0;
7947 }
7948 _ACEOF
7949 if ac_fn_c_try_compile "$LINENO"; then :
7950 eval "$as_gl_Symbol=yes"
7951 else
7952 eval "$as_gl_Symbol=no"
7953 fi
7954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7955 fi
7956 eval ac_res=\$$as_gl_Symbol
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7958 $as_echo "$ac_res" >&6; }
7959 eval as_val=\$$as_gl_Symbol
7960 if test "x$as_val" = x""yes; then :
7961 cat >>confdefs.h <<_ACEOF
7962 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7963 _ACEOF
7964
7965 eval ac_cv_have_decl_$gl_func=yes
7966 fi
7967 done
7968
7969
7970
7971 for ac_header in inttypes.h
7972 do :
7973 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7974 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
7975 cat >>confdefs.h <<_ACEOF
7976 #define HAVE_INTTYPES_H 1
7977 _ACEOF
7978
7979 fi
7980
7981 done
7982
7983 if test $ac_cv_header_inttypes_h = yes; then
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7985 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7986 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7987 $as_echo_n "(cached) " >&6
7988 else
7989
7990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7991 /* end confdefs.h. */
7992
7993 #include <inttypes.h>
7994 #ifdef PRId32
7995 char *p = PRId32;
7996 #endif
7997
7998 int
7999 main ()
8000 {
8001
8002 ;
8003 return 0;
8004 }
8005 _ACEOF
8006 if ac_fn_c_try_compile "$LINENO"; then :
8007 gt_cv_inttypes_pri_broken=no
8008 else
8009 gt_cv_inttypes_pri_broken=yes
8010 fi
8011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8012
8013 fi
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
8015 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
8016 fi
8017 if test "$gt_cv_inttypes_pri_broken" = yes; then
8018
8019 cat >>confdefs.h <<_ACEOF
8020 #define PRI_MACROS_BROKEN 1
8021 _ACEOF
8022
8023 PRI_MACROS_BROKEN=1
8024 else
8025 PRI_MACROS_BROKEN=0
8026 fi
8027
8028
8029
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
8031 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
8032 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
8033 $as_echo_n "(cached) " >&6
8034 else
8035
8036 if test "$cross_compiling" = yes; then :
8037
8038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8039 /* end confdefs.h. */
8040
8041 #if defined arm || defined __arm || defined __arm__
8042 mixed_endianness
8043 #endif
8044
8045 _ACEOF
8046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8047 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
8048 gl_cv_cc_double_expbit0="unknown"
8049 else
8050
8051 :
8052 if test "${ac_cv_c_bigendian+set}" = set; then :
8053 $as_echo_n "(cached) " >&6
8054 else
8055 ac_cv_c_bigendian=unknown
8056 # See if we're dealing with a universal compiler.
8057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8058 /* end confdefs.h. */
8059 #ifndef __APPLE_CC__
8060 not a universal capable compiler
8061 #endif
8062 typedef int dummy;
8063
8064 _ACEOF
8065 if ac_fn_c_try_compile "$LINENO"; then :
8066
8067 # Check for potential -arch flags. It is not universal unless
8068 # there are at least two -arch flags with different values.
8069 ac_arch=
8070 ac_prev=
8071 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8072 if test -n "$ac_prev"; then
8073 case $ac_word in
8074 i?86 | x86_64 | ppc | ppc64)
8075 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8076 ac_arch=$ac_word
8077 else
8078 ac_cv_c_bigendian=universal
8079 break
8080 fi
8081 ;;
8082 esac
8083 ac_prev=
8084 elif test "x$ac_word" = "x-arch"; then
8085 ac_prev=arch
8086 fi
8087 done
8088 fi
8089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8090 if test $ac_cv_c_bigendian = unknown; then
8091 # See if sys/param.h defines the BYTE_ORDER macro.
8092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8093 /* end confdefs.h. */
8094 #include <sys/types.h>
8095 #include <sys/param.h>
8096
8097 int
8098 main ()
8099 {
8100 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8101 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8102 && LITTLE_ENDIAN)
8103 bogus endian macros
8104 #endif
8105
8106 ;
8107 return 0;
8108 }
8109 _ACEOF
8110 if ac_fn_c_try_compile "$LINENO"; then :
8111 # It does; now see whether it defined to BIG_ENDIAN or not.
8112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8113 /* end confdefs.h. */
8114 #include <sys/types.h>
8115 #include <sys/param.h>
8116
8117 int
8118 main ()
8119 {
8120 #if BYTE_ORDER != BIG_ENDIAN
8121 not big endian
8122 #endif
8123
8124 ;
8125 return 0;
8126 }
8127 _ACEOF
8128 if ac_fn_c_try_compile "$LINENO"; then :
8129 ac_cv_c_bigendian=yes
8130 else
8131 ac_cv_c_bigendian=no
8132 fi
8133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8134 fi
8135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8136 fi
8137 if test $ac_cv_c_bigendian = unknown; then
8138 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8140 /* end confdefs.h. */
8141 #include <limits.h>
8142
8143 int
8144 main ()
8145 {
8146 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8147 bogus endian macros
8148 #endif
8149
8150 ;
8151 return 0;
8152 }
8153 _ACEOF
8154 if ac_fn_c_try_compile "$LINENO"; then :
8155 # It does; now see whether it defined to _BIG_ENDIAN or not.
8156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8157 /* end confdefs.h. */
8158 #include <limits.h>
8159
8160 int
8161 main ()
8162 {
8163 #ifndef _BIG_ENDIAN
8164 not big endian
8165 #endif
8166
8167 ;
8168 return 0;
8169 }
8170 _ACEOF
8171 if ac_fn_c_try_compile "$LINENO"; then :
8172 ac_cv_c_bigendian=yes
8173 else
8174 ac_cv_c_bigendian=no
8175 fi
8176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8177 fi
8178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8179 fi
8180 if test $ac_cv_c_bigendian = unknown; then
8181 # Compile a test program.
8182 if test "$cross_compiling" = yes; then :
8183 # Try to guess by grepping values from an object file.
8184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8185 /* end confdefs.h. */
8186 short int ascii_mm[] =
8187 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8188 short int ascii_ii[] =
8189 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8190 int use_ascii (int i) {
8191 return ascii_mm[i] + ascii_ii[i];
8192 }
8193 short int ebcdic_ii[] =
8194 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8195 short int ebcdic_mm[] =
8196 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8197 int use_ebcdic (int i) {
8198 return ebcdic_mm[i] + ebcdic_ii[i];
8199 }
8200 extern int foo;
8201
8202 int
8203 main ()
8204 {
8205 return use_ascii (foo) == use_ebcdic (foo);
8206 ;
8207 return 0;
8208 }
8209 _ACEOF
8210 if ac_fn_c_try_compile "$LINENO"; then :
8211 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8212 ac_cv_c_bigendian=yes
8213 fi
8214 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8215 if test "$ac_cv_c_bigendian" = unknown; then
8216 ac_cv_c_bigendian=no
8217 else
8218 # finding both strings is unlikely to happen, but who knows?
8219 ac_cv_c_bigendian=unknown
8220 fi
8221 fi
8222 fi
8223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8224 else
8225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8226 /* end confdefs.h. */
8227 $ac_includes_default
8228 int
8229 main ()
8230 {
8231
8232 /* Are we little or big endian? From Harbison&Steele. */
8233 union
8234 {
8235 long int l;
8236 char c[sizeof (long int)];
8237 } u;
8238 u.l = 1;
8239 return u.c[sizeof (long int) - 1] == 1;
8240
8241 ;
8242 return 0;
8243 }
8244 _ACEOF
8245 if ac_fn_c_try_run "$LINENO"; then :
8246 ac_cv_c_bigendian=no
8247 else
8248 ac_cv_c_bigendian=yes
8249 fi
8250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8251 conftest.$ac_objext conftest.beam conftest.$ac_ext
8252 fi
8253
8254 fi
8255 fi
8256 :
8257 case $ac_cv_c_bigendian in #(
8258 yes)
8259 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
8260 no)
8261 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
8262 universal)
8263
8264 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8265
8266 ;; #(
8267 *)
8268 gl_cv_cc_double_expbit0="unknown" ;;
8269 esac
8270
8271
8272 fi
8273 rm -f conftest*
8274
8275
8276 else
8277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8278 /* end confdefs.h. */
8279
8280 #include <float.h>
8281 #include <stddef.h>
8282 #include <stdio.h>
8283 #include <string.h>
8284 #define NWORDS \
8285 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
8286 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
8287 static unsigned int ored_words[NWORDS];
8288 static unsigned int anded_words[NWORDS];
8289 static void add_to_ored_words (double x)
8290 {
8291 memory_double m;
8292 size_t i;
8293 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
8294 memset (&m, 0, sizeof (memory_double));
8295 m.value = x;
8296 for (i = 0; i < NWORDS; i++)
8297 {
8298 ored_words[i] |= m.word[i];
8299 anded_words[i] &= m.word[i];
8300 }
8301 }
8302 int main ()
8303 {
8304 size_t j;
8305 FILE *fp = fopen ("conftest.out", "w");
8306 if (fp == NULL)
8307 return 1;
8308 for (j = 0; j < NWORDS; j++)
8309 anded_words[j] = ~ (unsigned int) 0;
8310 add_to_ored_words (0.25);
8311 add_to_ored_words (0.5);
8312 add_to_ored_words (1.0);
8313 add_to_ored_words (2.0);
8314 add_to_ored_words (4.0);
8315 /* Remove bits that are common (e.g. if representation of the first mantissa
8316 bit is explicit). */
8317 for (j = 0; j < NWORDS; j++)
8318 ored_words[j] &= ~anded_words[j];
8319 /* Now find the nonzero word. */
8320 for (j = 0; j < NWORDS; j++)
8321 if (ored_words[j] != 0)
8322 break;
8323 if (j < NWORDS)
8324 {
8325 size_t i;
8326 for (i = j + 1; i < NWORDS; i++)
8327 if (ored_words[i] != 0)
8328 {
8329 fprintf (fp, "unknown");
8330 return (fclose (fp) != 0);
8331 }
8332 for (i = 0; ; i++)
8333 if ((ored_words[j] >> i) & 1)
8334 {
8335 fprintf (fp, "word %d bit %d", (int) j, (int) i);
8336 return (fclose (fp) != 0);
8337 }
8338 }
8339 fprintf (fp, "unknown");
8340 return (fclose (fp) != 0);
8341 }
8342
8343 _ACEOF
8344 if ac_fn_c_try_run "$LINENO"; then :
8345 gl_cv_cc_double_expbit0=`cat conftest.out`
8346 else
8347 gl_cv_cc_double_expbit0="unknown"
8348 fi
8349 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8350 conftest.$ac_objext conftest.beam conftest.$ac_ext
8351 fi
8352
8353 rm -f conftest.out
8354
8355 fi
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
8357 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
8358 case "$gl_cv_cc_double_expbit0" in
8359 word*bit*)
8360 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
8361 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
8362
8363 cat >>confdefs.h <<_ACEOF
8364 #define DBL_EXPBIT0_WORD $word
8365 _ACEOF
8366
8367
8368 cat >>confdefs.h <<_ACEOF
8369 #define DBL_EXPBIT0_BIT $bit
8370 _ACEOF
8371
8372 ;;
8373 esac
8374
8375
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8377 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8378 if test "${ac_cv_c_bigendian+set}" = set; then :
8379 $as_echo_n "(cached) " >&6
8380 else
8381 ac_cv_c_bigendian=unknown
8382 # See if we're dealing with a universal compiler.
8383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8384 /* end confdefs.h. */
8385 #ifndef __APPLE_CC__
8386 not a universal capable compiler
8387 #endif
8388 typedef int dummy;
8389
8390 _ACEOF
8391 if ac_fn_c_try_compile "$LINENO"; then :
8392
8393 # Check for potential -arch flags. It is not universal unless
8394 # there are at least two -arch flags with different values.
8395 ac_arch=
8396 ac_prev=
8397 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8398 if test -n "$ac_prev"; then
8399 case $ac_word in
8400 i?86 | x86_64 | ppc | ppc64)
8401 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8402 ac_arch=$ac_word
8403 else
8404 ac_cv_c_bigendian=universal
8405 break
8406 fi
8407 ;;
8408 esac
8409 ac_prev=
8410 elif test "x$ac_word" = "x-arch"; then
8411 ac_prev=arch
8412 fi
8413 done
8414 fi
8415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8416 if test $ac_cv_c_bigendian = unknown; then
8417 # See if sys/param.h defines the BYTE_ORDER macro.
8418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8419 /* end confdefs.h. */
8420 #include <sys/types.h>
8421 #include <sys/param.h>
8422
8423 int
8424 main ()
8425 {
8426 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8427 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8428 && LITTLE_ENDIAN)
8429 bogus endian macros
8430 #endif
8431
8432 ;
8433 return 0;
8434 }
8435 _ACEOF
8436 if ac_fn_c_try_compile "$LINENO"; then :
8437 # It does; now see whether it defined to BIG_ENDIAN or not.
8438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8439 /* end confdefs.h. */
8440 #include <sys/types.h>
8441 #include <sys/param.h>
8442
8443 int
8444 main ()
8445 {
8446 #if BYTE_ORDER != BIG_ENDIAN
8447 not big endian
8448 #endif
8449
8450 ;
8451 return 0;
8452 }
8453 _ACEOF
8454 if ac_fn_c_try_compile "$LINENO"; then :
8455 ac_cv_c_bigendian=yes
8456 else
8457 ac_cv_c_bigendian=no
8458 fi
8459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8460 fi
8461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8462 fi
8463 if test $ac_cv_c_bigendian = unknown; then
8464 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466 /* end confdefs.h. */
8467 #include <limits.h>
8468
8469 int
8470 main ()
8471 {
8472 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8473 bogus endian macros
8474 #endif
8475
8476 ;
8477 return 0;
8478 }
8479 _ACEOF
8480 if ac_fn_c_try_compile "$LINENO"; then :
8481 # It does; now see whether it defined to _BIG_ENDIAN or not.
8482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8483 /* end confdefs.h. */
8484 #include <limits.h>
8485
8486 int
8487 main ()
8488 {
8489 #ifndef _BIG_ENDIAN
8490 not big endian
8491 #endif
8492
8493 ;
8494 return 0;
8495 }
8496 _ACEOF
8497 if ac_fn_c_try_compile "$LINENO"; then :
8498 ac_cv_c_bigendian=yes
8499 else
8500 ac_cv_c_bigendian=no
8501 fi
8502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8503 fi
8504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8505 fi
8506 if test $ac_cv_c_bigendian = unknown; then
8507 # Compile a test program.
8508 if test "$cross_compiling" = yes; then :
8509 # Try to guess by grepping values from an object file.
8510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511 /* end confdefs.h. */
8512 short int ascii_mm[] =
8513 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8514 short int ascii_ii[] =
8515 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8516 int use_ascii (int i) {
8517 return ascii_mm[i] + ascii_ii[i];
8518 }
8519 short int ebcdic_ii[] =
8520 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8521 short int ebcdic_mm[] =
8522 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8523 int use_ebcdic (int i) {
8524 return ebcdic_mm[i] + ebcdic_ii[i];
8525 }
8526 extern int foo;
8527
8528 int
8529 main ()
8530 {
8531 return use_ascii (foo) == use_ebcdic (foo);
8532 ;
8533 return 0;
8534 }
8535 _ACEOF
8536 if ac_fn_c_try_compile "$LINENO"; then :
8537 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8538 ac_cv_c_bigendian=yes
8539 fi
8540 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8541 if test "$ac_cv_c_bigendian" = unknown; then
8542 ac_cv_c_bigendian=no
8543 else
8544 # finding both strings is unlikely to happen, but who knows?
8545 ac_cv_c_bigendian=unknown
8546 fi
8547 fi
8548 fi
8549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8550 else
8551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8552 /* end confdefs.h. */
8553 $ac_includes_default
8554 int
8555 main ()
8556 {
8557
8558 /* Are we little or big endian? From Harbison&Steele. */
8559 union
8560 {
8561 long int l;
8562 char c[sizeof (long int)];
8563 } u;
8564 u.l = 1;
8565 return u.c[sizeof (long int) - 1] == 1;
8566
8567 ;
8568 return 0;
8569 }
8570 _ACEOF
8571 if ac_fn_c_try_run "$LINENO"; then :
8572 ac_cv_c_bigendian=no
8573 else
8574 ac_cv_c_bigendian=yes
8575 fi
8576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8577 conftest.$ac_objext conftest.beam conftest.$ac_ext
8578 fi
8579
8580 fi
8581 fi
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8583 $as_echo "$ac_cv_c_bigendian" >&6; }
8584 case $ac_cv_c_bigendian in #(
8585 yes)
8586 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8587 ;; #(
8588 no)
8589 ;; #(
8590 universal)
8591
8592 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8593
8594 ;; #(
8595 *)
8596 as_fn_error "unknown endianness
8597 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8598 esac
8599
8600
8601
8602
8603 case "$host_os" in
8604 mingw*)
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
8606 $as_echo_n "checking for 64-bit off_t... " >&6; }
8607 if test "${gl_cv_type_off_t_64+set}" = set; then :
8608 $as_echo_n "(cached) " >&6
8609 else
8610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611 /* end confdefs.h. */
8612 #include <sys/types.h>
8613 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
8614
8615 int
8616 main ()
8617 {
8618
8619 ;
8620 return 0;
8621 }
8622 _ACEOF
8623 if ac_fn_c_try_compile "$LINENO"; then :
8624 gl_cv_type_off_t_64=yes
8625 else
8626 gl_cv_type_off_t_64=no
8627 fi
8628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8629
8630 fi
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
8632 $as_echo "$gl_cv_type_off_t_64" >&6; }
8633 if test $gl_cv_type_off_t_64 = no; then
8634 WINDOWS_64_BIT_OFF_T=1
8635 else
8636 WINDOWS_64_BIT_OFF_T=0
8637 fi
8638 WINDOWS_64_BIT_ST_SIZE=1
8639 ;;
8640 *)
8641 WINDOWS_64_BIT_OFF_T=0
8642 WINDOWS_64_BIT_ST_SIZE=0
8643 ;;
8644 esac
8645
8646
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8648 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8649 if test "${am_cv_langinfo_codeset+set}" = set; then :
8650 $as_echo_n "(cached) " >&6
8651 else
8652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8653 /* end confdefs.h. */
8654 #include <langinfo.h>
8655 int
8656 main ()
8657 {
8658 char* cs = nl_langinfo(CODESET); return !cs;
8659 ;
8660 return 0;
8661 }
8662 _ACEOF
8663 if ac_fn_c_try_link "$LINENO"; then :
8664 am_cv_langinfo_codeset=yes
8665 else
8666 am_cv_langinfo_codeset=no
8667 fi
8668 rm -f core conftest.err conftest.$ac_objext \
8669 conftest$ac_exeext conftest.$ac_ext
8670
8671 fi
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8673 $as_echo "$am_cv_langinfo_codeset" >&6; }
8674 if test $am_cv_langinfo_codeset = yes; then
8675
8676 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8677
8678 fi
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8690 $as_echo_n "checking for working fcntl.h... " >&6; }
8691 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
8692 $as_echo_n "(cached) " >&6
8693 else
8694 if test "$cross_compiling" = yes; then :
8695 gl_cv_header_working_fcntl_h=cross-compiling
8696 else
8697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8698 /* end confdefs.h. */
8699 #include <sys/types.h>
8700 #include <sys/stat.h>
8701 #if HAVE_UNISTD_H
8702 # include <unistd.h>
8703 #else /* on Windows with MSVC */
8704 # include <io.h>
8705 # include <stdlib.h>
8706 # defined sleep(n) _sleep ((n) * 1000)
8707 #endif
8708 #include <fcntl.h>
8709 #ifndef O_NOATIME
8710 #define O_NOATIME 0
8711 #endif
8712 #ifndef O_NOFOLLOW
8713 #define O_NOFOLLOW 0
8714 #endif
8715 static int const constants[] =
8716 {
8717 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8718 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8719 };
8720
8721 int
8722 main ()
8723 {
8724
8725 int result = !constants;
8726 #if HAVE_SYMLINK
8727 {
8728 static char const sym[] = "conftest.sym";
8729 if (symlink ("/dev/null", sym) != 0)
8730 result |= 2;
8731 else
8732 {
8733 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8734 if (fd >= 0)
8735 {
8736 close (fd);
8737 result |= 4;
8738 }
8739 }
8740 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8741 result |= 2;
8742 else
8743 {
8744 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
8745 if (fd >= 0)
8746 {
8747 close (fd);
8748 result |= 4;
8749 }
8750 }
8751 unlink (sym);
8752 }
8753 #endif
8754 {
8755 static char const file[] = "confdefs.h";
8756 int fd = open (file, O_RDONLY | O_NOATIME);
8757 if (fd < 0)
8758 result |= 8;
8759 else
8760 {
8761 struct stat st0;
8762 if (fstat (fd, &st0) != 0)
8763 result |= 16;
8764 else
8765 {
8766 char c;
8767 sleep (1);
8768 if (read (fd, &c, 1) != 1)
8769 result |= 24;
8770 else
8771 {
8772 if (close (fd) != 0)
8773 result |= 32;
8774 else
8775 {
8776 struct stat st1;
8777 if (stat (file, &st1) != 0)
8778 result |= 40;
8779 else
8780 if (st0.st_atime != st1.st_atime)
8781 result |= 64;
8782 }
8783 }
8784 }
8785 }
8786 }
8787 return result;
8788 ;
8789 return 0;
8790 }
8791 _ACEOF
8792 if ac_fn_c_try_run "$LINENO"; then :
8793 gl_cv_header_working_fcntl_h=yes
8794 else
8795 case $? in #(
8796 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
8797 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
8798 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8799 *) gl_cv_header_working_fcntl_h='no';;
8800 esac
8801 fi
8802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8803 conftest.$ac_objext conftest.beam conftest.$ac_ext
8804 fi
8805
8806 fi
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8808 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8809
8810 case $gl_cv_header_working_fcntl_h in #(
8811 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
8812 *) ac_val=1;;
8813 esac
8814
8815 cat >>confdefs.h <<_ACEOF
8816 #define HAVE_WORKING_O_NOATIME $ac_val
8817 _ACEOF
8818
8819
8820 case $gl_cv_header_working_fcntl_h in #(
8821 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
8822 *) ac_val=1;;
8823 esac
8824
8825 cat >>confdefs.h <<_ACEOF
8826 #define HAVE_WORKING_O_NOFOLLOW $ac_val
8827 _ACEOF
8828
8829
8830 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
8831 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
8832 ac_have_decl=1
8833 else
8834 ac_have_decl=0
8835 fi
8836
8837 cat >>confdefs.h <<_ACEOF
8838 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
8839 _ACEOF
8840
8841
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
8843 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
8844 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
8845 $as_echo_n "(cached) " >&6
8846 else
8847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8848 /* end confdefs.h. */
8849
8850 #include <features.h>
8851 #ifdef __GNU_LIBRARY__
8852 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8853 Lucky GNU user
8854 #endif
8855 #endif
8856 #ifdef __UCLIBC__
8857 Lucky user
8858 #endif
8859
8860 _ACEOF
8861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8862 $EGREP "Lucky" >/dev/null 2>&1; then :
8863 ac_cv_gnu_library_2_1=yes
8864 else
8865 ac_cv_gnu_library_2_1=no
8866 fi
8867 rm -f conftest*
8868
8869
8870
8871 fi
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
8873 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
8874
8875 GLIBC21="$ac_cv_gnu_library_2_1"
8876
8877
8878
8879 GNULIB_FCHMODAT=0;
8880 GNULIB_FSTAT=0;
8881 GNULIB_FSTATAT=0;
8882 GNULIB_FUTIMENS=0;
8883 GNULIB_LCHMOD=0;
8884 GNULIB_LSTAT=0;
8885 GNULIB_MKDIRAT=0;
8886 GNULIB_MKFIFO=0;
8887 GNULIB_MKFIFOAT=0;
8888 GNULIB_MKNOD=0;
8889 GNULIB_MKNODAT=0;
8890 GNULIB_STAT=0;
8891 GNULIB_UTIMENSAT=0;
8892 HAVE_FCHMODAT=1;
8893 HAVE_FSTATAT=1;
8894 HAVE_FUTIMENS=1;
8895 HAVE_LCHMOD=1;
8896 HAVE_LSTAT=1;
8897 HAVE_MKDIRAT=1;
8898 HAVE_MKFIFO=1;
8899 HAVE_MKFIFOAT=1;
8900 HAVE_MKNOD=1;
8901 HAVE_MKNODAT=1;
8902 HAVE_UTIMENSAT=1;
8903 REPLACE_FSTAT=0;
8904 REPLACE_FSTATAT=0;
8905 REPLACE_FUTIMENS=0;
8906 REPLACE_LSTAT=0;
8907 REPLACE_MKDIR=0;
8908 REPLACE_MKFIFO=0;
8909 REPLACE_MKNOD=0;
8910 REPLACE_STAT=0;
8911 REPLACE_UTIMENSAT=0;
8912
8913
8914
8915
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
8917 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
8918 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
8919 $as_echo_n "(cached) " >&6
8920 else
8921 rm -f conftest.sym conftest.file
8922 echo >conftest.file
8923 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
8924 if test "$cross_compiling" = yes; then :
8925 case "$host_os" in
8926 # Guess yes on glibc systems.
8927 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
8928 # If we don't know, assume the worst.
8929 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
8930 esac
8931
8932 else
8933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8934 /* end confdefs.h. */
8935 $ac_includes_default
8936 int
8937 main ()
8938 {
8939 struct stat sbuf;
8940 /* Linux will dereference the symlink and fail, as required by
8941 POSIX. That is better in the sense that it means we will not
8942 have to compile and use the lstat wrapper. */
8943 return lstat ("conftest.sym/", &sbuf) == 0;
8944
8945 ;
8946 return 0;
8947 }
8948 _ACEOF
8949 if ac_fn_c_try_run "$LINENO"; then :
8950 gl_cv_func_lstat_dereferences_slashed_symlink=yes
8951 else
8952 gl_cv_func_lstat_dereferences_slashed_symlink=no
8953 fi
8954 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8955 conftest.$ac_objext conftest.beam conftest.$ac_ext
8956 fi
8957
8958 else
8959 # If the 'ln -s' command failed, then we probably don't even
8960 # have an lstat function.
8961 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
8962 fi
8963 rm -f conftest.sym conftest.file
8964
8965 fi
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
8967 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
8968 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
8969 *yes)
8970
8971 cat >>confdefs.h <<_ACEOF
8972 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
8973 _ACEOF
8974
8975 ;;
8976 esac
8977
8978
8979
8980
8981 GNULIB_BTOWC=0;
8982 GNULIB_WCTOB=0;
8983 GNULIB_MBSINIT=0;
8984 GNULIB_MBRTOWC=0;
8985 GNULIB_MBRLEN=0;
8986 GNULIB_MBSRTOWCS=0;
8987 GNULIB_MBSNRTOWCS=0;
8988 GNULIB_WCRTOMB=0;
8989 GNULIB_WCSRTOMBS=0;
8990 GNULIB_WCSNRTOMBS=0;
8991 GNULIB_WCWIDTH=0;
8992 GNULIB_WMEMCHR=0;
8993 GNULIB_WMEMCMP=0;
8994 GNULIB_WMEMCPY=0;
8995 GNULIB_WMEMMOVE=0;
8996 GNULIB_WMEMSET=0;
8997 GNULIB_WCSLEN=0;
8998 GNULIB_WCSNLEN=0;
8999 GNULIB_WCSCPY=0;
9000 GNULIB_WCPCPY=0;
9001 GNULIB_WCSNCPY=0;
9002 GNULIB_WCPNCPY=0;
9003 GNULIB_WCSCAT=0;
9004 GNULIB_WCSNCAT=0;
9005 GNULIB_WCSCMP=0;
9006 GNULIB_WCSNCMP=0;
9007 GNULIB_WCSCASECMP=0;
9008 GNULIB_WCSNCASECMP=0;
9009 GNULIB_WCSCOLL=0;
9010 GNULIB_WCSXFRM=0;
9011 GNULIB_WCSDUP=0;
9012 GNULIB_WCSCHR=0;
9013 GNULIB_WCSRCHR=0;
9014 GNULIB_WCSCSPN=0;
9015 GNULIB_WCSSPN=0;
9016 GNULIB_WCSPBRK=0;
9017 GNULIB_WCSSTR=0;
9018 GNULIB_WCSTOK=0;
9019 GNULIB_WCSWIDTH=0;
9020 HAVE_BTOWC=1;
9021 HAVE_MBSINIT=1;
9022 HAVE_MBRTOWC=1;
9023 HAVE_MBRLEN=1;
9024 HAVE_MBSRTOWCS=1;
9025 HAVE_MBSNRTOWCS=1;
9026 HAVE_WCRTOMB=1;
9027 HAVE_WCSRTOMBS=1;
9028 HAVE_WCSNRTOMBS=1;
9029 HAVE_WMEMCHR=1;
9030 HAVE_WMEMCMP=1;
9031 HAVE_WMEMCPY=1;
9032 HAVE_WMEMMOVE=1;
9033 HAVE_WMEMSET=1;
9034 HAVE_WCSLEN=1;
9035 HAVE_WCSNLEN=1;
9036 HAVE_WCSCPY=1;
9037 HAVE_WCPCPY=1;
9038 HAVE_WCSNCPY=1;
9039 HAVE_WCPNCPY=1;
9040 HAVE_WCSCAT=1;
9041 HAVE_WCSNCAT=1;
9042 HAVE_WCSCMP=1;
9043 HAVE_WCSNCMP=1;
9044 HAVE_WCSCASECMP=1;
9045 HAVE_WCSNCASECMP=1;
9046 HAVE_WCSCOLL=1;
9047 HAVE_WCSXFRM=1;
9048 HAVE_WCSDUP=1;
9049 HAVE_WCSCHR=1;
9050 HAVE_WCSRCHR=1;
9051 HAVE_WCSCSPN=1;
9052 HAVE_WCSSPN=1;
9053 HAVE_WCSPBRK=1;
9054 HAVE_WCSSTR=1;
9055 HAVE_WCSTOK=1;
9056 HAVE_WCSWIDTH=1;
9057 HAVE_DECL_WCTOB=1;
9058 HAVE_DECL_WCWIDTH=1;
9059 REPLACE_MBSTATE_T=0;
9060 REPLACE_BTOWC=0;
9061 REPLACE_WCTOB=0;
9062 REPLACE_MBSINIT=0;
9063 REPLACE_MBRTOWC=0;
9064 REPLACE_MBRLEN=0;
9065 REPLACE_MBSRTOWCS=0;
9066 REPLACE_MBSNRTOWCS=0;
9067 REPLACE_WCRTOMB=0;
9068 REPLACE_WCSRTOMBS=0;
9069 REPLACE_WCSNRTOMBS=0;
9070 REPLACE_WCWIDTH=0;
9071 REPLACE_WCSWIDTH=0;
9072
9073
9074
9075
9076
9077
9078
9079
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
9081 $as_echo_n "checking for a traditional japanese locale... " >&6; }
9082 if test "${gt_cv_locale_ja+set}" = set; then :
9083 $as_echo_n "(cached) " >&6
9084 else
9085
9086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087 /* end confdefs.h. */
9088
9089 #include <locale.h>
9090 #include <time.h>
9091 #if HAVE_LANGINFO_CODESET
9092 # include <langinfo.h>
9093 #endif
9094 #include <stdlib.h>
9095 #include <string.h>
9096 struct tm t;
9097 char buf[16];
9098 int main ()
9099 {
9100 const char *p;
9101 /* Check whether the given locale name is recognized by the system. */
9102 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9103 /* On native Windows, setlocale(category, "") looks at the system settings,
9104 not at the environment variables. Also, when an encoding suffix such
9105 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9106 category of the locale to "C". */
9107 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9108 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9109 return 1;
9110 #else
9111 if (setlocale (LC_ALL, "") == NULL) return 1;
9112 #endif
9113 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9114 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9115 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9116 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9117 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9118 some unit tests fail.
9119 On MirBSD 10, when an unsupported locale is specified, setlocale()
9120 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
9121 #if HAVE_LANGINFO_CODESET
9122 {
9123 const char *cs = nl_langinfo (CODESET);
9124 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
9125 || strcmp (cs, "UTF-8") == 0)
9126 return 1;
9127 }
9128 #endif
9129 #ifdef __CYGWIN__
9130 /* On Cygwin, avoid locale names without encoding suffix, because the
9131 locale_charset() function relies on the encoding suffix. Note that
9132 LC_ALL is set on the command line. */
9133 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9134 #endif
9135 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
9136 on Cygwin 1.5.x. */
9137 if (MB_CUR_MAX == 1)
9138 return 1;
9139 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
9140 This excludes the UTF-8 encoding (except on MirBSD). */
9141 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9142 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
9143 for (p = buf; *p != '\0'; p++)
9144 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
9145 return 1;
9146 return 0;
9147 }
9148
9149 _ACEOF
9150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9151 (eval $ac_link) 2>&5
9152 ac_status=$?
9153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9154 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9155 case "$host_os" in
9156 # Handle native Windows specially, because there setlocale() interprets
9157 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9158 # "fr" or "fra" as "French" or "French_France.1252",
9159 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9160 # "ja" as "Japanese" or "Japanese_Japan.932",
9161 # and similar.
9162 mingw*)
9163 # Note that on native Windows, the Japanese locale is
9164 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
9165 # cannot use it here.
9166 gt_cv_locale_ja=none
9167 ;;
9168 *)
9169 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9170 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9171 # configure script would override the LC_ALL setting. Likewise for
9172 # LC_CTYPE, which is also set at the beginning of the configure script.
9173 # Test for the AIX locale name.
9174 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9175 gt_cv_locale_ja=ja_JP
9176 else
9177 # Test for the locale name with explicit encoding suffix.
9178 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9179 gt_cv_locale_ja=ja_JP.EUC-JP
9180 else
9181 # Test for the HP-UX, OSF/1, NetBSD locale name.
9182 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9183 gt_cv_locale_ja=ja_JP.eucJP
9184 else
9185 # Test for the IRIX, FreeBSD locale name.
9186 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9187 gt_cv_locale_ja=ja_JP.EUC
9188 else
9189 # Test for the Solaris 7 locale name.
9190 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9191 gt_cv_locale_ja=ja
9192 else
9193 # Special test for NetBSD 1.6.
9194 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
9195 gt_cv_locale_ja=ja_JP.eucJP
9196 else
9197 # None found.
9198 gt_cv_locale_ja=none
9199 fi
9200 fi
9201 fi
9202 fi
9203 fi
9204 fi
9205 ;;
9206 esac
9207 fi
9208 rm -fr conftest*
9209
9210 fi
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
9212 $as_echo "$gt_cv_locale_ja" >&6; }
9213 LOCALE_JA=$gt_cv_locale_ja
9214
9215
9216
9217
9218
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
9220 $as_echo_n "checking for a transitional chinese locale... " >&6; }
9221 if test "${gt_cv_locale_zh_CN+set}" = set; then :
9222 $as_echo_n "(cached) " >&6
9223 else
9224
9225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226 /* end confdefs.h. */
9227
9228 #include <locale.h>
9229 #include <stdlib.h>
9230 #include <time.h>
9231 #if HAVE_LANGINFO_CODESET
9232 # include <langinfo.h>
9233 #endif
9234 #include <stdlib.h>
9235 #include <string.h>
9236 struct tm t;
9237 char buf[16];
9238 int main ()
9239 {
9240 const char *p;
9241 /* Check whether the given locale name is recognized by the system. */
9242 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9243 /* On native Windows, setlocale(category, "") looks at the system settings,
9244 not at the environment variables. Also, when an encoding suffix such
9245 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9246 category of the locale to "C". */
9247 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9248 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9249 return 1;
9250 #else
9251 if (setlocale (LC_ALL, "") == NULL) return 1;
9252 #endif
9253 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9254 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9255 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9256 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9257 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9258 some unit tests fail.
9259 On MirBSD 10, when an unsupported locale is specified, setlocale()
9260 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
9261 #if HAVE_LANGINFO_CODESET
9262 {
9263 const char *cs = nl_langinfo (CODESET);
9264 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
9265 || strcmp (cs, "UTF-8") == 0)
9266 return 1;
9267 }
9268 #endif
9269 #ifdef __CYGWIN__
9270 /* On Cygwin, avoid locale names without encoding suffix, because the
9271 locale_charset() function relies on the encoding suffix. Note that
9272 LC_ALL is set on the command line. */
9273 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9274 #endif
9275 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
9276 This excludes the UTF-8 encoding (except on MirBSD). */
9277 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9278 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
9279 for (p = buf; *p != '\0'; p++)
9280 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
9281 return 1;
9282 /* Check whether a typical GB18030 multibyte sequence is recognized as a
9283 single wide character. This excludes the GB2312 and GBK encodings. */
9284 if (mblen ("\203\062\332\066", 5) != 4)
9285 return 1;
9286 return 0;
9287 }
9288
9289 _ACEOF
9290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9291 (eval $ac_link) 2>&5
9292 ac_status=$?
9293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9294 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9295 case "$host_os" in
9296 # Handle native Windows specially, because there setlocale() interprets
9297 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9298 # "fr" or "fra" as "French" or "French_France.1252",
9299 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9300 # "ja" as "Japanese" or "Japanese_Japan.932",
9301 # and similar.
9302 mingw*)
9303 # Test for the hypothetical native Windows locale name.
9304 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9305 gt_cv_locale_zh_CN=Chinese_China.54936
9306 else
9307 # None found.
9308 gt_cv_locale_zh_CN=none
9309 fi
9310 ;;
9311 solaris2.8)
9312 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
9313 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
9314 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
9315 gt_cv_locale_zh_CN=none
9316 ;;
9317 *)
9318 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9319 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9320 # configure script would override the LC_ALL setting. Likewise for
9321 # LC_CTYPE, which is also set at the beginning of the configure script.
9322 # Test for the locale name without encoding suffix.
9323 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9324 gt_cv_locale_zh_CN=zh_CN
9325 else
9326 # Test for the locale name with explicit encoding suffix.
9327 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9328 gt_cv_locale_zh_CN=zh_CN.GB18030
9329 else
9330 # None found.
9331 gt_cv_locale_zh_CN=none
9332 fi
9333 fi
9334 ;;
9335 esac
9336 else
9337 # If there was a link error, due to mblen(), the system is so old that
9338 # it certainly doesn't have a chinese locale.
9339 gt_cv_locale_zh_CN=none
9340 fi
9341 rm -fr conftest*
9342
9343 fi
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
9345 $as_echo "$gt_cv_locale_zh_CN" >&6; }
9346 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
9347
9348
9349
9350
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
9352 $as_echo_n "checking for a french Unicode locale... " >&6; }
9353 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
9354 $as_echo_n "(cached) " >&6
9355 else
9356
9357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9358 /* end confdefs.h. */
9359
9360 #include <locale.h>
9361 #include <time.h>
9362 #if HAVE_LANGINFO_CODESET
9363 # include <langinfo.h>
9364 #endif
9365 #include <stdlib.h>
9366 #include <string.h>
9367 struct tm t;
9368 char buf[16];
9369 int main () {
9370 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
9371 imitates locale dependent behaviour by looking at the environment
9372 variables, and all locales use the UTF-8 encoding. */
9373 #if !(defined __BEOS__ || defined __HAIKU__)
9374 /* Check whether the given locale name is recognized by the system. */
9375 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9376 /* On native Windows, setlocale(category, "") looks at the system settings,
9377 not at the environment variables. Also, when an encoding suffix such
9378 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9379 category of the locale to "C". */
9380 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9381 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9382 return 1;
9383 # else
9384 if (setlocale (LC_ALL, "") == NULL) return 1;
9385 # endif
9386 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9387 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9388 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9389 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9390 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9391 some unit tests fail. */
9392 # if HAVE_LANGINFO_CODESET
9393 {
9394 const char *cs = nl_langinfo (CODESET);
9395 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
9396 return 1;
9397 }
9398 # endif
9399 # ifdef __CYGWIN__
9400 /* On Cygwin, avoid locale names without encoding suffix, because the
9401 locale_charset() function relies on the encoding suffix. Note that
9402 LC_ALL is set on the command line. */
9403 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9404 # endif
9405 /* Check whether in the abbreviation of the second month, the second
9406 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
9407 two bytes long, with UTF-8 encoding. */
9408 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9409 if (strftime (buf, sizeof (buf), "%b", &t) < 4
9410 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
9411 return 1;
9412 #endif
9413 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
9414 /* Check whether the decimal separator is a comma.
9415 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
9416 are nl_langinfo(RADIXCHAR) are both ".". */
9417 if (localeconv () ->decimal_point[0] != ',') return 1;
9418 #endif
9419 return 0;
9420 }
9421
9422 _ACEOF
9423 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9424 (eval $ac_link) 2>&5
9425 ac_status=$?
9426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9427 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9428 case "$host_os" in
9429 # Handle native Windows specially, because there setlocale() interprets
9430 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9431 # "fr" or "fra" as "French" or "French_France.1252",
9432 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9433 # "ja" as "Japanese" or "Japanese_Japan.932",
9434 # and similar.
9435 mingw*)
9436 # Test for the hypothetical native Windows locale name.
9437 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9438 gt_cv_locale_fr_utf8=French_France.65001
9439 else
9440 # None found.
9441 gt_cv_locale_fr_utf8=none
9442 fi
9443 ;;
9444 *)
9445 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9446 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9447 # configure script would override the LC_ALL setting. Likewise for
9448 # LC_CTYPE, which is also set at the beginning of the configure script.
9449 # Test for the usual locale name.
9450 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9451 gt_cv_locale_fr_utf8=fr_FR
9452 else
9453 # Test for the locale name with explicit encoding suffix.
9454 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9455 gt_cv_locale_fr_utf8=fr_FR.UTF-8
9456 else
9457 # Test for the Solaris 7 locale name.
9458 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9459 gt_cv_locale_fr_utf8=fr.UTF-8
9460 else
9461 # None found.
9462 gt_cv_locale_fr_utf8=none
9463 fi
9464 fi
9465 fi
9466 ;;
9467 esac
9468 fi
9469 rm -fr conftest*
9470
9471 fi
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
9473 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
9474 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
9475
9476
9477
9478
9479
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
9481 $as_echo_n "checking for a traditional french locale... " >&6; }
9482 if test "${gt_cv_locale_fr+set}" = set; then :
9483 $as_echo_n "(cached) " >&6
9484 else
9485
9486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9487 /* end confdefs.h. */
9488
9489 #include <locale.h>
9490 #include <time.h>
9491 #if HAVE_LANGINFO_CODESET
9492 # include <langinfo.h>
9493 #endif
9494 #include <stdlib.h>
9495 #include <string.h>
9496 struct tm t;
9497 char buf[16];
9498 int main () {
9499 /* Check whether the given locale name is recognized by the system. */
9500 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9501 /* On native Windows, setlocale(category, "") looks at the system settings,
9502 not at the environment variables. Also, when an encoding suffix such
9503 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9504 category of the locale to "C". */
9505 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9506 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9507 return 1;
9508 #else
9509 if (setlocale (LC_ALL, "") == NULL) return 1;
9510 #endif
9511 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9512 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9513 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9514 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9515 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9516 some unit tests fail.
9517 On MirBSD 10, when an unsupported locale is specified, setlocale()
9518 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
9519 #if HAVE_LANGINFO_CODESET
9520 {
9521 const char *cs = nl_langinfo (CODESET);
9522 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
9523 || strcmp (cs, "UTF-8") == 0)
9524 return 1;
9525 }
9526 #endif
9527 #ifdef __CYGWIN__
9528 /* On Cygwin, avoid locale names without encoding suffix, because the
9529 locale_charset() function relies on the encoding suffix. Note that
9530 LC_ALL is set on the command line. */
9531 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9532 #endif
9533 /* Check whether in the abbreviation of the second month, the second
9534 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
9535 one byte long. This excludes the UTF-8 encoding. */
9536 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9537 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
9538 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
9539 /* Check whether the decimal separator is a comma.
9540 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
9541 are nl_langinfo(RADIXCHAR) are both ".". */
9542 if (localeconv () ->decimal_point[0] != ',') return 1;
9543 #endif
9544 return 0;
9545 }
9546
9547 _ACEOF
9548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9549 (eval $ac_link) 2>&5
9550 ac_status=$?
9551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9552 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9553 case "$host_os" in
9554 # Handle native Windows specially, because there setlocale() interprets
9555 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9556 # "fr" or "fra" as "French" or "French_France.1252",
9557 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9558 # "ja" as "Japanese" or "Japanese_Japan.932",
9559 # and similar.
9560 mingw*)
9561 # Test for the native Windows locale name.
9562 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9563 gt_cv_locale_fr=French_France.1252
9564 else
9565 # None found.
9566 gt_cv_locale_fr=none
9567 fi
9568 ;;
9569 *)
9570 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9571 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9572 # configure script would override the LC_ALL setting. Likewise for
9573 # LC_CTYPE, which is also set at the beginning of the configure script.
9574 # Test for the usual locale name.
9575 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9576 gt_cv_locale_fr=fr_FR
9577 else
9578 # Test for the locale name with explicit encoding suffix.
9579 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9580 gt_cv_locale_fr=fr_FR.ISO-8859-1
9581 else
9582 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
9583 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9584 gt_cv_locale_fr=fr_FR.ISO8859-1
9585 else
9586 # Test for the HP-UX locale name.
9587 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9588 gt_cv_locale_fr=fr_FR.iso88591
9589 else
9590 # Test for the Solaris 7 locale name.
9591 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9592 gt_cv_locale_fr=fr
9593 else
9594 # None found.
9595 gt_cv_locale_fr=none
9596 fi
9597 fi
9598 fi
9599 fi
9600 fi
9601 ;;
9602 esac
9603 fi
9604 rm -fr conftest*
9605
9606 fi
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
9608 $as_echo "$gt_cv_locale_fr" >&6; }
9609 LOCALE_FR=$gt_cv_locale_fr
9610
9611
9612
9613
9614
9615
9616
9617 GNULIB_FFSL=0;
9618 GNULIB_FFSLL=0;
9619 GNULIB_MEMCHR=0;
9620 GNULIB_MEMMEM=0;
9621 GNULIB_MEMPCPY=0;
9622 GNULIB_MEMRCHR=0;
9623 GNULIB_RAWMEMCHR=0;
9624 GNULIB_STPCPY=0;
9625 GNULIB_STPNCPY=0;
9626 GNULIB_STRCHRNUL=0;
9627 GNULIB_STRDUP=0;
9628 GNULIB_STRNCAT=0;
9629 GNULIB_STRNDUP=0;
9630 GNULIB_STRNLEN=0;
9631 GNULIB_STRPBRK=0;
9632 GNULIB_STRSEP=0;
9633 GNULIB_STRSTR=0;
9634 GNULIB_STRCASESTR=0;
9635 GNULIB_STRTOK_R=0;
9636 GNULIB_MBSLEN=0;
9637 GNULIB_MBSNLEN=0;
9638 GNULIB_MBSCHR=0;
9639 GNULIB_MBSRCHR=0;
9640 GNULIB_MBSSTR=0;
9641 GNULIB_MBSCASECMP=0;
9642 GNULIB_MBSNCASECMP=0;
9643 GNULIB_MBSPCASECMP=0;
9644 GNULIB_MBSCASESTR=0;
9645 GNULIB_MBSCSPN=0;
9646 GNULIB_MBSPBRK=0;
9647 GNULIB_MBSSPN=0;
9648 GNULIB_MBSSEP=0;
9649 GNULIB_MBSTOK_R=0;
9650 GNULIB_STRERROR=0;
9651 GNULIB_STRERROR_R=0;
9652 GNULIB_STRSIGNAL=0;
9653 GNULIB_STRVERSCMP=0;
9654 HAVE_MBSLEN=0;
9655 HAVE_FFSL=1;
9656 HAVE_FFSLL=1;
9657 HAVE_MEMCHR=1;
9658 HAVE_DECL_MEMMEM=1;
9659 HAVE_MEMPCPY=1;
9660 HAVE_DECL_MEMRCHR=1;
9661 HAVE_RAWMEMCHR=1;
9662 HAVE_STPCPY=1;
9663 HAVE_STPNCPY=1;
9664 HAVE_STRCHRNUL=1;
9665 HAVE_DECL_STRDUP=1;
9666 HAVE_DECL_STRNDUP=1;
9667 HAVE_DECL_STRNLEN=1;
9668 HAVE_STRPBRK=1;
9669 HAVE_STRSEP=1;
9670 HAVE_STRCASESTR=1;
9671 HAVE_DECL_STRTOK_R=1;
9672 HAVE_DECL_STRERROR_R=1;
9673 HAVE_DECL_STRSIGNAL=1;
9674 HAVE_STRVERSCMP=1;
9675 REPLACE_MEMCHR=0;
9676 REPLACE_MEMMEM=0;
9677 REPLACE_STPNCPY=0;
9678 REPLACE_STRDUP=0;
9679 REPLACE_STRSTR=0;
9680 REPLACE_STRCASESTR=0;
9681 REPLACE_STRCHRNUL=0;
9682 REPLACE_STRERROR=0;
9683 REPLACE_STRERROR_R=0;
9684 REPLACE_STRNCAT=0;
9685 REPLACE_STRNDUP=0;
9686 REPLACE_STRNLEN=0;
9687 REPLACE_STRSIGNAL=0;
9688 REPLACE_STRTOK_R=0;
9689 UNDEFINE_STRTOK_R=0;
9690
9691
9692
9693
9694
9695 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
9696 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
9697 # irrelevant for anonymous mappings.
9698 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9699 if test "x$ac_cv_func_mmap" = x""yes; then :
9700 gl_have_mmap=yes
9701 else
9702 gl_have_mmap=no
9703 fi
9704
9705
9706 # Try to allow MAP_ANONYMOUS.
9707 gl_have_mmap_anonymous=no
9708 if test $gl_have_mmap = yes; then
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
9710 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
9711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9712 /* end confdefs.h. */
9713
9714 #include <sys/mman.h>
9715 #ifdef MAP_ANONYMOUS
9716 I cannot identify this map
9717 #endif
9718
9719 _ACEOF
9720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9721 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
9722 gl_have_mmap_anonymous=yes
9723 fi
9724 rm -f conftest*
9725
9726 if test $gl_have_mmap_anonymous != yes; then
9727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728 /* end confdefs.h. */
9729
9730 #include <sys/mman.h>
9731 #ifdef MAP_ANON
9732 I cannot identify this map
9733 #endif
9734
9735 _ACEOF
9736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9737 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
9738
9739 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
9740
9741 gl_have_mmap_anonymous=yes
9742 fi
9743 rm -f conftest*
9744
9745 fi
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
9747 $as_echo "$gl_have_mmap_anonymous" >&6; }
9748 if test $gl_have_mmap_anonymous = yes; then
9749
9750 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
9751
9752 fi
9753 fi
9754
9755
9756
9757
9758
9759
9760 if test $HAVE_MEMCHR = 1; then
9761 # Detect platform-specific bugs in some versions of glibc:
9762 # memchr should not dereference anything with length 0
9763 # http://bugzilla.redhat.com/499689
9764 # memchr should not dereference overestimated length after a match
9765 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
9766 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
9767 # Assume that memchr works on platforms that lack mprotect.
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
9769 $as_echo_n "checking whether memchr works... " >&6; }
9770 if test "${gl_cv_func_memchr_works+set}" = set; then :
9771 $as_echo_n "(cached) " >&6
9772 else
9773 if test "$cross_compiling" = yes; then :
9774 gl_cv_func_memchr_works="guessing no"
9775 else
9776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777 /* end confdefs.h. */
9778
9779 #include <string.h>
9780 #if HAVE_SYS_MMAN_H
9781 # include <fcntl.h>
9782 # include <unistd.h>
9783 # include <sys/types.h>
9784 # include <sys/mman.h>
9785 # ifndef MAP_FILE
9786 # define MAP_FILE 0
9787 # endif
9788 #endif
9789
9790 int
9791 main ()
9792 {
9793
9794 int result = 0;
9795 char *fence = NULL;
9796 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
9797 # if HAVE_MAP_ANONYMOUS
9798 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
9799 const int fd = -1;
9800 # else /* !HAVE_MAP_ANONYMOUS */
9801 const int flags = MAP_FILE | MAP_PRIVATE;
9802 int fd = open ("/dev/zero", O_RDONLY, 0666);
9803 if (fd >= 0)
9804 # endif
9805 {
9806 int pagesize = getpagesize ();
9807 char *two_pages =
9808 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
9809 flags, fd, 0);
9810 if (two_pages != (char *)(-1)
9811 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
9812 fence = two_pages + pagesize;
9813 }
9814 #endif
9815 if (fence)
9816 {
9817 if (memchr (fence, 0, 0))
9818 result |= 1;
9819 strcpy (fence - 9, "12345678");
9820 if (memchr (fence - 9, 0, 79) != fence - 1)
9821 result |= 2;
9822 if (memchr (fence - 1, 0, 3) != fence - 1)
9823 result |= 4;
9824 }
9825 return result;
9826
9827 ;
9828 return 0;
9829 }
9830 _ACEOF
9831 if ac_fn_c_try_run "$LINENO"; then :
9832 gl_cv_func_memchr_works=yes
9833 else
9834 gl_cv_func_memchr_works=no
9835 fi
9836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9837 conftest.$ac_objext conftest.beam conftest.$ac_ext
9838 fi
9839
9840 fi
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
9842 $as_echo "$gl_cv_func_memchr_works" >&6; }
9843 if test "$gl_cv_func_memchr_works" != yes; then
9844 REPLACE_MEMCHR=1
9845 fi
9846 fi
9847
9848 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
9849 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
9850 ac_have_decl=1
9851 else
9852 ac_have_decl=0
9853 fi
9854
9855 cat >>confdefs.h <<_ACEOF
9856 #define HAVE_DECL_MEMMEM $ac_have_decl
9857 _ACEOF
9858
9859
9860
9861
9862
9863 for ac_func in memmem
9864 do :
9865 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
9866 if test "x$ac_cv_func_memmem" = x""yes; then :
9867 cat >>confdefs.h <<_ACEOF
9868 #define HAVE_MEMMEM 1
9869 _ACEOF
9870
9871 fi
9872 done
9873
9874 if test $ac_cv_func_memmem = yes; then
9875 HAVE_MEMMEM=1
9876 else
9877 HAVE_MEMMEM=0
9878 fi
9879
9880 if test $ac_cv_have_decl_memmem = no; then
9881 HAVE_DECL_MEMMEM=0
9882 else
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
9884 $as_echo_n "checking whether memmem works... " >&6; }
9885 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
9886 $as_echo_n "(cached) " >&6
9887 else
9888 if test "$cross_compiling" = yes; then :
9889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9890 /* end confdefs.h. */
9891
9892 #ifdef __GNU_LIBRARY__
9893 #include <features.h>
9894 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
9895 || __GLIBC_MINOR__ > 12)) \
9896 || (__GLIBC__ > 2)) \
9897 || defined __UCLIBC__
9898 Lucky user
9899 #endif
9900 #elif defined __CYGWIN__
9901 #include <cygwin/version.h>
9902 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
9903 Lucky user
9904 #endif
9905 #else
9906 Lucky user
9907 #endif
9908
9909 _ACEOF
9910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9911 $EGREP "Lucky user" >/dev/null 2>&1; then :
9912 gl_cv_func_memmem_works_always="guessing yes"
9913 else
9914 gl_cv_func_memmem_works_always="guessing no"
9915 fi
9916 rm -f conftest*
9917
9918
9919 else
9920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921 /* end confdefs.h. */
9922
9923 #include <string.h> /* for memmem */
9924 #define P "_EF_BF_BD"
9925 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
9926 #define NEEDLE P P P P P
9927
9928 int
9929 main ()
9930 {
9931
9932 int result = 0;
9933 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
9934 result |= 1;
9935 /* Check for empty needle behavior. */
9936 {
9937 const char *haystack = "AAA";
9938 if (memmem (haystack, 3, NULL, 0) != haystack)
9939 result |= 2;
9940 }
9941 return result;
9942
9943 ;
9944 return 0;
9945 }
9946 _ACEOF
9947 if ac_fn_c_try_run "$LINENO"; then :
9948 gl_cv_func_memmem_works_always=yes
9949 else
9950 gl_cv_func_memmem_works_always=no
9951 fi
9952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9953 conftest.$ac_objext conftest.beam conftest.$ac_ext
9954 fi
9955
9956
9957 fi
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
9959 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
9960 case "$gl_cv_func_memmem_works_always" in
9961 *yes) ;;
9962 *)
9963 REPLACE_MEMMEM=1
9964 ;;
9965 esac
9966 fi
9967 :
9968
9969
9970
9971
9972
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
9974 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
9975 if test "${ac_cv_header_stdbool_h+set}" = set; then :
9976 $as_echo_n "(cached) " >&6
9977 else
9978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9979 /* end confdefs.h. */
9980
9981 #include <stdbool.h>
9982 #ifndef bool
9983 "error: bool is not defined"
9984 #endif
9985 #ifndef false
9986 "error: false is not defined"
9987 #endif
9988 #if false
9989 "error: false is not 0"
9990 #endif
9991 #ifndef true
9992 "error: true is not defined"
9993 #endif
9994 #if true != 1
9995 "error: true is not 1"
9996 #endif
9997 #ifndef __bool_true_false_are_defined
9998 "error: __bool_true_false_are_defined is not defined"
9999 #endif
10000
10001 struct s { _Bool s: 1; _Bool t; } s;
10002
10003 char a[true == 1 ? 1 : -1];
10004 char b[false == 0 ? 1 : -1];
10005 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10006 char d[(bool) 0.5 == true ? 1 : -1];
10007 /* See body of main program for 'e'. */
10008 char f[(_Bool) 0.0 == false ? 1 : -1];
10009 char g[true];
10010 char h[sizeof (_Bool)];
10011 char i[sizeof s.t];
10012 enum { j = false, k = true, l = false * true, m = true * 256 };
10013 /* The following fails for
10014 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
10015 _Bool n[m];
10016 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10017 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10018 /* Catch a bug in an HP-UX C compiler. See
10019 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10020 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10021 */
10022 _Bool q = true;
10023 _Bool *pq = &q;
10024
10025 int
10026 main ()
10027 {
10028
10029 bool e = &s;
10030 *pq |= q;
10031 *pq |= ! q;
10032 /* Refer to every declared value, to avoid compiler optimizations. */
10033 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10034 + !m + !n + !o + !p + !q + !pq);
10035
10036 ;
10037 return 0;
10038 }
10039 _ACEOF
10040 if ac_fn_c_try_compile "$LINENO"; then :
10041 ac_cv_header_stdbool_h=yes
10042 else
10043 ac_cv_header_stdbool_h=no
10044 fi
10045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10046 fi
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
10048 $as_echo "$ac_cv_header_stdbool_h" >&6; }
10049 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
10050 if test "x$ac_cv_type__Bool" = x""yes; then :
10051
10052 cat >>confdefs.h <<_ACEOF
10053 #define HAVE__BOOL 1
10054 _ACEOF
10055
10056
10057 fi
10058
10059
10060
10061 REPLACE_NULL=0;
10062 HAVE_WCHAR_T=1;
10063
10064
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
10066 $as_echo_n "checking for wchar_t... " >&6; }
10067 if test "${gt_cv_c_wchar_t+set}" = set; then :
10068 $as_echo_n "(cached) " >&6
10069 else
10070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10071 /* end confdefs.h. */
10072 #include <stddef.h>
10073 wchar_t foo = (wchar_t)'\0';
10074 int
10075 main ()
10076 {
10077
10078 ;
10079 return 0;
10080 }
10081 _ACEOF
10082 if ac_fn_c_try_compile "$LINENO"; then :
10083 gt_cv_c_wchar_t=yes
10084 else
10085 gt_cv_c_wchar_t=no
10086 fi
10087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10088 fi
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
10090 $as_echo "$gt_cv_c_wchar_t" >&6; }
10091 if test $gt_cv_c_wchar_t = yes; then
10092
10093 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
10094
10095 fi
10096
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
10098 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
10099 if test "${ac_cv_c_restrict+set}" = set; then :
10100 $as_echo_n "(cached) " >&6
10101 else
10102 ac_cv_c_restrict=no
10103 # The order here caters to the fact that C++ does not require restrict.
10104 for ac_kw in __restrict __restrict__ _Restrict restrict; do
10105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10106 /* end confdefs.h. */
10107 typedef int * int_ptr;
10108 int foo (int_ptr $ac_kw ip) {
10109 return ip[0];
10110 }
10111 int
10112 main ()
10113 {
10114 int s[1];
10115 int * $ac_kw t = s;
10116 t[0] = 0;
10117 return foo(t)
10118 ;
10119 return 0;
10120 }
10121 _ACEOF
10122 if ac_fn_c_try_compile "$LINENO"; then :
10123 ac_cv_c_restrict=$ac_kw
10124 fi
10125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10126 test "$ac_cv_c_restrict" != no && break
10127 done
10128
10129 fi
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
10131 $as_echo "$ac_cv_c_restrict" >&6; }
10132
10133 case $ac_cv_c_restrict in
10134 restrict) ;;
10135 no) $as_echo "#define restrict /**/" >>confdefs.h
10136 ;;
10137 *) cat >>confdefs.h <<_ACEOF
10138 #define restrict $ac_cv_c_restrict
10139 _ACEOF
10140 ;;
10141 esac
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154 if test $gl_cv_have_include_next = yes; then
10155 gl_cv_next_string_h='<'string.h'>'
10156 else
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
10158 $as_echo_n "checking absolute name of <string.h>... " >&6; }
10159 if test "${gl_cv_next_string_h+set}" = set; then :
10160 $as_echo_n "(cached) " >&6
10161 else
10162
10163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10164 /* end confdefs.h. */
10165 #include <string.h>
10166
10167 _ACEOF
10168 case "$host_os" in
10169 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10170 *) gl_absname_cpp="$ac_cpp" ;;
10171 esac
10172
10173 case "$host_os" in
10174 mingw*)
10175 gl_dirsep_regex='[/\\]'
10176 ;;
10177 *)
10178 gl_dirsep_regex='\/'
10179 ;;
10180 esac
10181 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10182
10183 gl_header_literal_regex=`echo 'string.h' \
10184 | sed -e "$gl_make_literal_regex_sed"`
10185 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10186 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10187 s|^/[^/]|//&|
10188 p
10189 q
10190 }'
10191 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10192 sed -n "$gl_absolute_header_sed"`'"'
10193
10194
10195 fi
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
10197 $as_echo "$gl_cv_next_string_h" >&6; }
10198 fi
10199 NEXT_STRING_H=$gl_cv_next_string_h
10200
10201 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10202 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10203 gl_next_as_first_directive='<'string.h'>'
10204 else
10205 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10206 gl_next_as_first_directive=$gl_cv_next_string_h
10207 fi
10208 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
10209
10210
10211
10212
10213
10214
10215 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
10216 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10218 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10219 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
10220 $as_echo_n "(cached) " >&6
10221 else
10222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10223 /* end confdefs.h. */
10224 #include <string.h>
10225
10226 int
10227 main ()
10228 {
10229 #undef $gl_func
10230 (void) $gl_func;
10231 ;
10232 return 0;
10233 }
10234 _ACEOF
10235 if ac_fn_c_try_compile "$LINENO"; then :
10236 eval "$as_gl_Symbol=yes"
10237 else
10238 eval "$as_gl_Symbol=no"
10239 fi
10240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10241 fi
10242 eval ac_res=\$$as_gl_Symbol
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10244 $as_echo "$ac_res" >&6; }
10245 eval as_val=\$$as_gl_Symbol
10246 if test "x$as_val" = x""yes; then :
10247 cat >>confdefs.h <<_ACEOF
10248 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10249 _ACEOF
10250
10251 eval ac_cv_have_decl_$gl_func=yes
10252 fi
10253 done
10254
10255
10256
10257
10258
10259 if test "$gl_cv_func_memchr_works" != yes; then
10260 REPLACE_STRSTR=1
10261 else
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
10263 $as_echo_n "checking whether strstr works... " >&6; }
10264 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
10265 $as_echo_n "(cached) " >&6
10266 else
10267 if test "$cross_compiling" = yes; then :
10268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10269 /* end confdefs.h. */
10270
10271 #ifdef __GNU_LIBRARY__
10272 #include <features.h>
10273 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
10274 || defined __UCLIBC__
10275 Lucky user
10276 #endif
10277 #elif defined __CYGWIN__
10278 #include <cygwin/version.h>
10279 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
10280 Lucky user
10281 #endif
10282 #else
10283 Lucky user
10284 #endif
10285
10286 _ACEOF
10287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10288 $EGREP "Lucky user" >/dev/null 2>&1; then :
10289 gl_cv_func_strstr_works_always="guessing yes"
10290 else
10291 gl_cv_func_strstr_works_always="guessing no"
10292 fi
10293 rm -f conftest*
10294
10295
10296 else
10297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10298 /* end confdefs.h. */
10299
10300 #include <string.h> /* for strstr */
10301 #define P "_EF_BF_BD"
10302 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
10303 #define NEEDLE P P P P P
10304
10305 int
10306 main ()
10307 {
10308 return !!strstr (HAYSTACK, NEEDLE);
10309
10310 ;
10311 return 0;
10312 }
10313 _ACEOF
10314 if ac_fn_c_try_run "$LINENO"; then :
10315 gl_cv_func_strstr_works_always=yes
10316 else
10317 gl_cv_func_strstr_works_always=no
10318 fi
10319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10320 conftest.$ac_objext conftest.beam conftest.$ac_ext
10321 fi
10322
10323
10324 fi
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
10326 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
10327 case "$gl_cv_func_strstr_works_always" in
10328 *yes) ;;
10329 *)
10330 REPLACE_STRSTR=1
10331 ;;
10332 esac
10333 fi
10334
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
10336 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10337 if test "${ac_cv_header_stat_broken+set}" = set; then :
10338 $as_echo_n "(cached) " >&6
10339 else
10340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10341 /* end confdefs.h. */
10342 #include <sys/types.h>
10343 #include <sys/stat.h>
10344
10345 #if defined S_ISBLK && defined S_IFDIR
10346 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10347 #endif
10348
10349 #if defined S_ISBLK && defined S_IFCHR
10350 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10351 #endif
10352
10353 #if defined S_ISLNK && defined S_IFREG
10354 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10355 #endif
10356
10357 #if defined S_ISSOCK && defined S_IFREG
10358 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
10359 #endif
10360
10361 _ACEOF
10362 if ac_fn_c_try_compile "$LINENO"; then :
10363 ac_cv_header_stat_broken=no
10364 else
10365 ac_cv_header_stat_broken=yes
10366 fi
10367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10368 fi
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
10370 $as_echo "$ac_cv_header_stat_broken" >&6; }
10371 if test $ac_cv_header_stat_broken = yes; then
10372
10373 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
10374
10375 fi
10376
10377
10378
10379 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
10380 if test "x$ac_cv_type_mode_t" = x""yes; then :
10381
10382 else
10383
10384 cat >>confdefs.h <<_ACEOF
10385 #define mode_t int
10386 _ACEOF
10387
10388 fi
10389
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10391 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10392 if test -z "$MKDIR_P"; then
10393 if test "${ac_cv_path_mkdir+set}" = set; then :
10394 $as_echo_n "(cached) " >&6
10395 else
10396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10397 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10398 do
10399 IFS=$as_save_IFS
10400 test -z "$as_dir" && as_dir=.
10401 for ac_prog in mkdir gmkdir; do
10402 for ac_exec_ext in '' $ac_executable_extensions; do
10403 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10404 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10405 'mkdir (GNU coreutils) '* | \
10406 'mkdir (coreutils) '* | \
10407 'mkdir (fileutils) '4.1*)
10408 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10409 break 3;;
10410 esac
10411 done
10412 done
10413 done
10414 IFS=$as_save_IFS
10415
10416 fi
10417
10418 if test "${ac_cv_path_mkdir+set}" = set; then
10419 MKDIR_P="$ac_cv_path_mkdir -p"
10420 else
10421 # As a last resort, use the slow shell script. Don't cache a
10422 # value for MKDIR_P within a source directory, because that will
10423 # break other packages using the cache if that directory is
10424 # removed, or if the value is a relative name.
10425 test -d ./--version && rmdir ./--version
10426 MKDIR_P="$ac_install_sh -d"
10427 fi
10428 fi
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10430 $as_echo "$MKDIR_P" >&6; }
10431
10432
10433
10434 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10435 if test "x$ac_cv_type_pid_t" = x""yes; then :
10436
10437 else
10438
10439 cat >>confdefs.h <<_ACEOF
10440 #define pid_t int
10441 _ACEOF
10442
10443 fi
10444
10445
10446
10447
10448
10449
10450
10451
10452 GNULIB_MKTIME=0;
10453 GNULIB_NANOSLEEP=0;
10454 GNULIB_STRPTIME=0;
10455 GNULIB_TIMEGM=0;
10456 GNULIB_TIME_R=0;
10457 HAVE_DECL_LOCALTIME_R=1;
10458 HAVE_NANOSLEEP=1;
10459 HAVE_STRPTIME=1;
10460 HAVE_TIMEGM=1;
10461 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
10462 REPLACE_MKTIME=GNULIB_PORTCHECK;
10463 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
10464 REPLACE_TIMEGM=GNULIB_PORTCHECK;
10465
10466
10467
10468
10469
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
10471 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
10472 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
10473 $as_echo_n "(cached) " >&6
10474 else
10475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10476 /* end confdefs.h. */
10477 #include <time.h>
10478
10479 int
10480 main ()
10481 {
10482 static struct timespec x; x.tv_sec = x.tv_nsec;
10483 ;
10484 return 0;
10485 }
10486 _ACEOF
10487 if ac_fn_c_try_compile "$LINENO"; then :
10488 gl_cv_sys_struct_timespec_in_time_h=yes
10489 else
10490 gl_cv_sys_struct_timespec_in_time_h=no
10491 fi
10492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10493 fi
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
10495 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
10496
10497 TIME_H_DEFINES_STRUCT_TIMESPEC=0
10498 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
10499 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
10500 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
10501 TIME_H_DEFINES_STRUCT_TIMESPEC=1
10502 else
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
10504 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
10505 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
10506 $as_echo_n "(cached) " >&6
10507 else
10508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10509 /* end confdefs.h. */
10510 #include <sys/time.h>
10511
10512 int
10513 main ()
10514 {
10515 static struct timespec x; x.tv_sec = x.tv_nsec;
10516 ;
10517 return 0;
10518 }
10519 _ACEOF
10520 if ac_fn_c_try_compile "$LINENO"; then :
10521 gl_cv_sys_struct_timespec_in_sys_time_h=yes
10522 else
10523 gl_cv_sys_struct_timespec_in_sys_time_h=no
10524 fi
10525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10526 fi
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
10528 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
10529 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
10530 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
10531 else
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
10533 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
10534 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
10535 $as_echo_n "(cached) " >&6
10536 else
10537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10538 /* end confdefs.h. */
10539 #include <pthread.h>
10540
10541 int
10542 main ()
10543 {
10544 static struct timespec x; x.tv_sec = x.tv_nsec;
10545 ;
10546 return 0;
10547 }
10548 _ACEOF
10549 if ac_fn_c_try_compile "$LINENO"; then :
10550 gl_cv_sys_struct_timespec_in_pthread_h=yes
10551 else
10552 gl_cv_sys_struct_timespec_in_pthread_h=no
10553 fi
10554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10555 fi
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
10557 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
10558 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
10559 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
10560 fi
10561 fi
10562 fi
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578 if test $gl_cv_have_include_next = yes; then
10579 gl_cv_next_time_h='<'time.h'>'
10580 else
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
10582 $as_echo_n "checking absolute name of <time.h>... " >&6; }
10583 if test "${gl_cv_next_time_h+set}" = set; then :
10584 $as_echo_n "(cached) " >&6
10585 else
10586
10587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10588 /* end confdefs.h. */
10589 #include <time.h>
10590
10591 _ACEOF
10592 case "$host_os" in
10593 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10594 *) gl_absname_cpp="$ac_cpp" ;;
10595 esac
10596
10597 case "$host_os" in
10598 mingw*)
10599 gl_dirsep_regex='[/\\]'
10600 ;;
10601 *)
10602 gl_dirsep_regex='\/'
10603 ;;
10604 esac
10605 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10606
10607 gl_header_literal_regex=`echo 'time.h' \
10608 | sed -e "$gl_make_literal_regex_sed"`
10609 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10610 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10611 s|^/[^/]|//&|
10612 p
10613 q
10614 }'
10615 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10616 sed -n "$gl_absolute_header_sed"`'"'
10617
10618
10619 fi
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
10621 $as_echo "$gl_cv_next_time_h" >&6; }
10622 fi
10623 NEXT_TIME_H=$gl_cv_next_time_h
10624
10625 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10626 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10627 gl_next_as_first_directive='<'time.h'>'
10628 else
10629 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10630 gl_next_as_first_directive=$gl_cv_next_time_h
10631 fi
10632 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
10633
10634
10635
10636
10637
10638
10639
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
10641 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
10642 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
10643 $as_echo_n "(cached) " >&6
10644 else
10645 gl_cv_header_wchar_h_correct_inline=yes
10646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10647 /* end confdefs.h. */
10648
10649 #define wcstod renamed_wcstod
10650 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10651 <wchar.h>.
10652 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10653 included before <wchar.h>. */
10654 #include <stddef.h>
10655 #include <stdio.h>
10656 #include <time.h>
10657 #include <wchar.h>
10658 extern int zero (void);
10659 int main () { return zero(); }
10660
10661 _ACEOF
10662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10663 (eval $ac_compile) 2>&5
10664 ac_status=$?
10665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10666 test $ac_status = 0; }; then
10667 mv conftest.$ac_objext conftest1.$ac_objext
10668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10669 /* end confdefs.h. */
10670
10671 #define wcstod renamed_wcstod
10672 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10673 <wchar.h>.
10674 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10675 included before <wchar.h>. */
10676 #include <stddef.h>
10677 #include <stdio.h>
10678 #include <time.h>
10679 #include <wchar.h>
10680 int zero (void) { return 0; }
10681
10682 _ACEOF
10683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10684 (eval $ac_compile) 2>&5
10685 ac_status=$?
10686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10687 test $ac_status = 0; }; then
10688 mv conftest.$ac_objext conftest2.$ac_objext
10689 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
10690 :
10691 else
10692 gl_cv_header_wchar_h_correct_inline=no
10693 fi
10694 fi
10695 fi
10696 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
10697
10698 fi
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
10700 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
10701 if test $gl_cv_header_wchar_h_correct_inline = no; then
10702 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
10703 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
10704 C99 mode. You have four options:
10705 - Add the flag -fgnu89-inline to CC and reconfigure, or
10706 - Fix your include files, using parts of
10707 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
10708 - Use a gcc version older than 4.3, or
10709 - Don't use the flags -std=c99 or -std=gnu99.
10710 Configuration aborted." "$LINENO" 5
10711 fi
10712
10713
10714
10715
10716
10717 if test $ac_cv_header_features_h = yes; then
10718 HAVE_FEATURES_H=1
10719 else
10720 HAVE_FEATURES_H=0
10721 fi
10722
10723
10724
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
10726 $as_echo_n "checking for wint_t... " >&6; }
10727 if test "${gt_cv_c_wint_t+set}" = set; then :
10728 $as_echo_n "(cached) " >&6
10729 else
10730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10731 /* end confdefs.h. */
10732
10733 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10734 <wchar.h>.
10735 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
10736 before <wchar.h>. */
10737 #include <stddef.h>
10738 #include <stdio.h>
10739 #include <time.h>
10740 #include <wchar.h>
10741 wint_t foo = (wchar_t)'\0';
10742 int
10743 main ()
10744 {
10745
10746 ;
10747 return 0;
10748 }
10749 _ACEOF
10750 if ac_fn_c_try_compile "$LINENO"; then :
10751 gt_cv_c_wint_t=yes
10752 else
10753 gt_cv_c_wint_t=no
10754 fi
10755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10756 fi
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
10758 $as_echo "$gt_cv_c_wint_t" >&6; }
10759 if test $gt_cv_c_wint_t = yes; then
10760
10761 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
10762
10763 fi
10764
10765
10766 GNULIB_ISWBLANK=0;
10767 GNULIB_WCTYPE=0;
10768 GNULIB_ISWCTYPE=0;
10769 GNULIB_WCTRANS=0;
10770 GNULIB_TOWCTRANS=0;
10771 HAVE_ISWBLANK=1;
10772 HAVE_WCTYPE_T=1;
10773 HAVE_WCTRANS_T=1;
10774 REPLACE_ISWBLANK=0;
10775
10776
10777
10778
10779 if false; then
10780 GL_COND_LIBTOOL_TRUE=
10781 GL_COND_LIBTOOL_FALSE='#'
10782 else
10783 GL_COND_LIBTOOL_TRUE='#'
10784 GL_COND_LIBTOOL_FALSE=
10785 fi
10786
10787 gl_cond_libtool=false
10788 gl_libdeps=
10789 gl_ltlibdeps=
10790 gl_m4_base='import/m4'
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800 gl_source_base='import'
10801
10802
10803 if test $ac_cv_func_alloca_works = no; then
10804 :
10805 fi
10806
10807 # Define an additional variable used in the Makefile substitution.
10808 if test $ac_cv_working_alloca_h = yes; then
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
10810 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
10811 if test "${gl_cv_rpl_alloca+set}" = set; then :
10812 $as_echo_n "(cached) " >&6
10813 else
10814
10815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816 /* end confdefs.h. */
10817
10818 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
10819 Need own alloca
10820 #endif
10821
10822 _ACEOF
10823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10824 $EGREP "Need own alloca" >/dev/null 2>&1; then :
10825 gl_cv_rpl_alloca=yes
10826 else
10827 gl_cv_rpl_alloca=no
10828 fi
10829 rm -f conftest*
10830
10831
10832 fi
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
10834 $as_echo "$gl_cv_rpl_alloca" >&6; }
10835 if test $gl_cv_rpl_alloca = yes; then
10836
10837 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10838
10839 ALLOCA_H=alloca.h
10840 else
10841 ALLOCA_H=
10842 fi
10843 else
10844 ALLOCA_H=alloca.h
10845 fi
10846
10847 if test -n "$ALLOCA_H"; then
10848 GL_GENERATE_ALLOCA_H_TRUE=
10849 GL_GENERATE_ALLOCA_H_FALSE='#'
10850 else
10851 GL_GENERATE_ALLOCA_H_TRUE='#'
10852 GL_GENERATE_ALLOCA_H_FALSE=
10853 fi
10854
10855
10856
10857 if test "x$datarootdir" = x; then
10858 datarootdir='${datadir}'
10859
10860 fi
10861 if test "x$docdir" = x; then
10862 docdir='${datarootdir}/doc/${PACKAGE}'
10863
10864 fi
10865 if test "x$htmldir" = x; then
10866 htmldir='${docdir}'
10867
10868 fi
10869 if test "x$dvidir" = x; then
10870 dvidir='${docdir}'
10871
10872 fi
10873 if test "x$pdfdir" = x; then
10874 pdfdir='${docdir}'
10875
10876 fi
10877 if test "x$psdir" = x; then
10878 psdir='${docdir}'
10879
10880 fi
10881 if test "x$lispdir" = x; then
10882 lispdir='${datarootdir}/emacs/site-lisp'
10883
10884 fi
10885 if test "x$localedir" = x; then
10886 localedir='${datarootdir}/locale'
10887
10888 fi
10889
10890 pkglibexecdir='${libexecdir}/${PACKAGE}'
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905 if test $gl_cv_have_include_next = yes; then
10906 gl_cv_next_dirent_h='<'dirent.h'>'
10907 else
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
10909 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
10910 if test "${gl_cv_next_dirent_h+set}" = set; then :
10911 $as_echo_n "(cached) " >&6
10912 else
10913
10914 if test $ac_cv_header_dirent_h = yes; then
10915
10916
10917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10918 /* end confdefs.h. */
10919 #include <dirent.h>
10920
10921 _ACEOF
10922 case "$host_os" in
10923 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10924 *) gl_absname_cpp="$ac_cpp" ;;
10925 esac
10926
10927 case "$host_os" in
10928 mingw*)
10929 gl_dirsep_regex='[/\\]'
10930 ;;
10931 *)
10932 gl_dirsep_regex='\/'
10933 ;;
10934 esac
10935 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10936
10937 gl_header_literal_regex=`echo 'dirent.h' \
10938 | sed -e "$gl_make_literal_regex_sed"`
10939 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10940 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10941 s|^/[^/]|//&|
10942 p
10943 q
10944 }'
10945 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10946 sed -n "$gl_absolute_header_sed"`'"'
10947 else
10948 gl_cv_next_dirent_h='<'dirent.h'>'
10949 fi
10950
10951
10952 fi
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
10954 $as_echo "$gl_cv_next_dirent_h" >&6; }
10955 fi
10956 NEXT_DIRENT_H=$gl_cv_next_dirent_h
10957
10958 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10959 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10960 gl_next_as_first_directive='<'dirent.h'>'
10961 else
10962 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10963 gl_next_as_first_directive=$gl_cv_next_dirent_h
10964 fi
10965 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
10966
10967
10968
10969
10970 if test $ac_cv_header_dirent_h = yes; then
10971 HAVE_DIRENT_H=1
10972 else
10973 HAVE_DIRENT_H=0
10974 fi
10975
10976
10977
10978 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
10979 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10981 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10982 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
10983 $as_echo_n "(cached) " >&6
10984 else
10985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10986 /* end confdefs.h. */
10987 #include <dirent.h>
10988
10989 int
10990 main ()
10991 {
10992 #undef $gl_func
10993 (void) $gl_func;
10994 ;
10995 return 0;
10996 }
10997 _ACEOF
10998 if ac_fn_c_try_compile "$LINENO"; then :
10999 eval "$as_gl_Symbol=yes"
11000 else
11001 eval "$as_gl_Symbol=no"
11002 fi
11003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11004 fi
11005 eval ac_res=\$$as_gl_Symbol
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11007 $as_echo "$ac_res" >&6; }
11008 eval as_val=\$$as_gl_Symbol
11009 if test "x$as_val" = x""yes; then :
11010 cat >>confdefs.h <<_ACEOF
11011 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11012 _ACEOF
11013
11014 eval ac_cv_have_decl_$gl_func=yes
11015 fi
11016 done
11017
11018
11019
11020
11021
11022
11023
11024 for ac_func in dirfd
11025 do :
11026 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
11027 if test "x$ac_cv_func_dirfd" = x""yes; then :
11028 cat >>confdefs.h <<_ACEOF
11029 #define HAVE_DIRFD 1
11030 _ACEOF
11031
11032 fi
11033 done
11034
11035 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
11036 #include <dirent.h>
11037 "
11038 if test "x$ac_cv_have_decl_dirfd" = x""yes; then :
11039 ac_have_decl=1
11040 else
11041 ac_have_decl=0
11042 fi
11043
11044 cat >>confdefs.h <<_ACEOF
11045 #define HAVE_DECL_DIRFD $ac_have_decl
11046 _ACEOF
11047
11048 if test $ac_cv_have_decl_dirfd = no; then
11049 HAVE_DECL_DIRFD=0
11050 fi
11051
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
11053 $as_echo_n "checking whether dirfd is a macro... " >&6; }
11054 if test "${gl_cv_func_dirfd_macro+set}" = set; then :
11055 $as_echo_n "(cached) " >&6
11056 else
11057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11058 /* end confdefs.h. */
11059
11060 #include <sys/types.h>
11061 #include <dirent.h>
11062 #ifdef dirfd
11063 dirent_header_defines_dirfd
11064 #endif
11065 _ACEOF
11066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11067 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
11068 gl_cv_func_dirfd_macro=yes
11069 else
11070 gl_cv_func_dirfd_macro=no
11071 fi
11072 rm -f conftest*
11073
11074 fi
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
11076 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
11077
11078 # Use the replacement only if we have no function or macro with that name.
11079 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
11080 if test $ac_cv_have_decl_dirfd = yes; then
11081 # If the system declares dirfd already, let's declare rpl_dirfd instead.
11082 REPLACE_DIRFD=1
11083 fi
11084 fi
11085
11086 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
11087
11088
11089
11090
11091
11092
11093
11094
11095 gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
11096
11097
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
11099 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
11100 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then :
11101 $as_echo_n "(cached) " >&6
11102 else
11103
11104 dirfd_save_CFLAGS=$CFLAGS
11105 for ac_expr in d_fd dd_fd; do
11106
11107 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
11108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11109 /* end confdefs.h. */
11110
11111 #include <sys/types.h>
11112 #include <dirent.h>
11113 int
11114 main ()
11115 {
11116 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
11117 ;
11118 return 0;
11119 }
11120 _ACEOF
11121 if ac_fn_c_try_compile "$LINENO"; then :
11122 dir_fd_found=yes
11123
11124 fi
11125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11126 CFLAGS=$dirfd_save_CFLAGS
11127 test "$dir_fd_found" = yes && break
11128 done
11129 test "$dir_fd_found" = yes || ac_expr=no_such_member
11130
11131 gl_cv_sys_dir_fd_member_name=$ac_expr
11132
11133
11134 fi
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
11136 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
11137 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
11138
11139 cat >>confdefs.h <<_ACEOF
11140 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
11141 _ACEOF
11142
11143 fi
11144
11145
11146 fi
11147
11148
11149
11150
11151
11152 GNULIB_DIRFD=1
11153
11154
11155
11156
11157
11158 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
11159
11160
11161
11162
11163
11164
11165
11166
11167 FLOAT_H=
11168 REPLACE_FLOAT_LDBL=0
11169 case "$host_os" in
11170 aix* | beos* | openbsd* | mirbsd* | irix*)
11171 FLOAT_H=float.h
11172 ;;
11173 freebsd*)
11174 case "$host_cpu" in
11175 i[34567]86 )
11176 FLOAT_H=float.h
11177 ;;
11178 x86_64 )
11179 # On x86_64 systems, the C compiler may still be generating
11180 # 32-bit code.
11181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11182 /* end confdefs.h. */
11183 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
11184 yes
11185 #endif
11186 _ACEOF
11187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11188 $EGREP "yes" >/dev/null 2>&1; then :
11189
11190 else
11191 FLOAT_H=float.h
11192 fi
11193 rm -f conftest*
11194
11195 ;;
11196 esac
11197 ;;
11198 linux*)
11199 case "$host_cpu" in
11200 powerpc*)
11201 FLOAT_H=float.h
11202 ;;
11203 esac
11204 ;;
11205 esac
11206 case "$host_os" in
11207 aix* | freebsd* | linux*)
11208 if test -n "$FLOAT_H"; then
11209 REPLACE_FLOAT_LDBL=1
11210 fi
11211 ;;
11212 esac
11213
11214 REPLACE_ITOLD=0
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
11216 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
11217 if test "${gl_cv_func_itold_works+set}" = set; then :
11218 $as_echo_n "(cached) " >&6
11219 else
11220
11221 if test "$cross_compiling" = yes; then :
11222 case "$host" in
11223 sparc*-*-linux*)
11224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11225 /* end confdefs.h. */
11226 #if defined __LP64__ || defined __arch64__
11227 yes
11228 #endif
11229 _ACEOF
11230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11231 $EGREP "yes" >/dev/null 2>&1; then :
11232 gl_cv_func_itold_works="guessing no"
11233 else
11234 gl_cv_func_itold_works="guessing yes"
11235 fi
11236 rm -f conftest*
11237
11238 ;;
11239 *) gl_cv_func_itold_works="guessing yes" ;;
11240 esac
11241
11242 else
11243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11244 /* end confdefs.h. */
11245
11246 int i = -1;
11247 volatile long double ld;
11248 int main ()
11249 {
11250 ld += i * 1.0L;
11251 if (ld > 0)
11252 return 1;
11253 return 0;
11254 }
11255 _ACEOF
11256 if ac_fn_c_try_run "$LINENO"; then :
11257 gl_cv_func_itold_works=yes
11258 else
11259 gl_cv_func_itold_works=no
11260 fi
11261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11262 conftest.$ac_objext conftest.beam conftest.$ac_ext
11263 fi
11264
11265
11266 fi
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
11268 $as_echo "$gl_cv_func_itold_works" >&6; }
11269 case "$gl_cv_func_itold_works" in
11270 *no)
11271 REPLACE_ITOLD=1
11272 FLOAT_H=float.h
11273 ;;
11274 esac
11275
11276 if test -n "$FLOAT_H"; then
11277
11278
11279
11280
11281
11282
11283
11284
11285 if test $gl_cv_have_include_next = yes; then
11286 gl_cv_next_float_h='<'float.h'>'
11287 else
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
11289 $as_echo_n "checking absolute name of <float.h>... " >&6; }
11290 if test "${gl_cv_next_float_h+set}" = set; then :
11291 $as_echo_n "(cached) " >&6
11292 else
11293
11294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11295 /* end confdefs.h. */
11296 #include <float.h>
11297
11298 _ACEOF
11299 case "$host_os" in
11300 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11301 *) gl_absname_cpp="$ac_cpp" ;;
11302 esac
11303
11304 case "$host_os" in
11305 mingw*)
11306 gl_dirsep_regex='[/\\]'
11307 ;;
11308 *)
11309 gl_dirsep_regex='\/'
11310 ;;
11311 esac
11312 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11313
11314 gl_header_literal_regex=`echo 'float.h' \
11315 | sed -e "$gl_make_literal_regex_sed"`
11316 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11317 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11318 s|^/[^/]|//&|
11319 p
11320 q
11321 }'
11322 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11323 sed -n "$gl_absolute_header_sed"`'"'
11324
11325
11326 fi
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
11328 $as_echo "$gl_cv_next_float_h" >&6; }
11329 fi
11330 NEXT_FLOAT_H=$gl_cv_next_float_h
11331
11332 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11333 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11334 gl_next_as_first_directive='<'float.h'>'
11335 else
11336 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11337 gl_next_as_first_directive=$gl_cv_next_float_h
11338 fi
11339 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
11340
11341
11342
11343
11344 fi
11345
11346 if test -n "$FLOAT_H"; then
11347 GL_GENERATE_FLOAT_H_TRUE=
11348 GL_GENERATE_FLOAT_H_FALSE='#'
11349 else
11350 GL_GENERATE_FLOAT_H_TRUE='#'
11351 GL_GENERATE_FLOAT_H_FALSE=
11352 fi
11353
11354
11355
11356 if test $REPLACE_FLOAT_LDBL = 1; then
11357
11358
11359
11360
11361
11362
11363
11364
11365 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
11366
11367 fi
11368 if test $REPLACE_ITOLD = 1; then
11369
11370
11371
11372
11373
11374
11375
11376
11377 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
11378
11379 fi
11380
11381
11382
11383
11384
11385 FNMATCH_H=
11386 gl_fnmatch_required_lowercase=`
11387 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
11388 `
11389 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
11391 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
11392 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
11393 $as_echo_n "(cached) " >&6
11394 else
11395 if test $gl_fnmatch_required = GNU; then
11396 gl_fnmatch_gnu_start=
11397 gl_fnmatch_gnu_end=
11398 else
11399 gl_fnmatch_gnu_start='#if 0'
11400 gl_fnmatch_gnu_end='#endif'
11401 fi
11402 if test "$cross_compiling" = yes; then :
11403 eval "$gl_fnmatch_cache_var=\"guessing no\""
11404 else
11405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11406 /* end confdefs.h. */
11407 #include <fnmatch.h>
11408 static int
11409 y (char const *pattern, char const *string, int flags)
11410 {
11411 return fnmatch (pattern, string, flags) == 0;
11412 }
11413 static int
11414 n (char const *pattern, char const *string, int flags)
11415 {
11416 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
11417 }
11418
11419 int
11420 main ()
11421 {
11422 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
11423 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
11424 static char const A_1[] = { 'A' - 1, 0 };
11425 static char const A01[] = { 'A' + 1, 0 };
11426 static char const a_1[] = { 'a' - 1, 0 };
11427 static char const a01[] = { 'a' + 1, 0 };
11428 static char const bs_1[] = { '\\\\' - 1, 0 };
11429 static char const bs01[] = { '\\\\' + 1, 0 };
11430 int result = 0;
11431 if (!n ("a*", "", 0))
11432 return 1;
11433 if (!y ("a*", "abc", 0))
11434 return 1;
11435 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
11436 return 1;
11437 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
11438 return 2;
11439 if (!y ("a\\\\bc", "abc", 0))
11440 return 3;
11441 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
11442 return 3;
11443 if (!y ("*x", ".x", 0))
11444 return 4;
11445 if (!n ("*x", ".x", FNM_PERIOD))
11446 return 4;
11447 if (!y (Apat, "\\\\", 0))
11448 return 5;
11449 if (!y (Apat, "A", 0))
11450 return 5;
11451 if (!y (apat, "\\\\", 0))
11452 return 5;
11453 if (!y (apat, "a", 0))
11454 return 5;
11455 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
11456 return 5;
11457 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
11458 return 5;
11459 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
11460 return 5;
11461 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
11462 return 5;
11463 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
11464 return 5;
11465 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
11466 return 5;
11467 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
11468 return 5;
11469 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
11470 return 5;
11471 $gl_fnmatch_gnu_start
11472 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
11473 result |= 8;
11474 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
11475 result |= 16;
11476 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
11477 result |= 32;
11478 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
11479 result |= 64;
11480 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
11481 result |= 64;
11482 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
11483 result |= 64;
11484 $gl_fnmatch_gnu_end
11485 return result;
11486
11487 ;
11488 return 0;
11489 }
11490 _ACEOF
11491 if ac_fn_c_try_run "$LINENO"; then :
11492 eval "$gl_fnmatch_cache_var=yes"
11493 else
11494 eval "$gl_fnmatch_cache_var=no"
11495 fi
11496 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11497 conftest.$ac_objext conftest.beam conftest.$ac_ext
11498 fi
11499
11500
11501 fi
11502 eval ac_res=\$$gl_fnmatch_cache_var
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11504 $as_echo "$ac_res" >&6; }
11505 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
11506 if test "$gl_fnmatch_result" = yes; then
11507 rm -f "$gl_source_base/fnmatch.h"
11508 else
11509 FNMATCH_H=fnmatch.h
11510 fi
11511
11512 if test -n "$FNMATCH_H"; then
11513 GL_GENERATE_FNMATCH_H_TRUE=
11514 GL_GENERATE_FNMATCH_H_FALSE='#'
11515 else
11516 GL_GENERATE_FNMATCH_H_TRUE='#'
11517 GL_GENERATE_FNMATCH_H_FALSE=
11518 fi
11519
11520
11521 if test -n "$FNMATCH_H"; then
11522
11523
11524
11525
11526
11527
11528
11529
11530 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
11531
11532
11533
11534 cat >>confdefs.h <<_ACEOF
11535 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
11536 _ACEOF
11537
11538
11539 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
11540 "
11541 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
11542 ac_have_decl=1
11543 else
11544 ac_have_decl=0
11545 fi
11546
11547 cat >>confdefs.h <<_ACEOF
11548 #define HAVE_DECL_ISBLANK $ac_have_decl
11549 _ACEOF
11550
11551
11552
11553
11554 fi
11555
11556
11557
11558
11559
11560 if test -n "$FNMATCH_H"; then
11561
11562
11563
11564
11565
11566
11567
11568
11569 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
11570
11571
11572
11573 cat >>confdefs.h <<_ACEOF
11574 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
11575 _ACEOF
11576
11577
11578 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
11579 "
11580 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
11581 ac_have_decl=1
11582 else
11583 ac_have_decl=0
11584 fi
11585
11586 cat >>confdefs.h <<_ACEOF
11587 #define HAVE_DECL_ISBLANK $ac_have_decl
11588 _ACEOF
11589
11590
11591
11592
11593 fi
11594
11595
11596
11597 FREXP_LIBM=
11598 if test $gl_cv_func_frexp_no_libm = no; then
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
11600 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
11601 if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
11602 $as_echo_n "(cached) " >&6
11603 else
11604
11605 save_LIBS="$LIBS"
11606 LIBS="$LIBS -lm"
11607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11608 /* end confdefs.h. */
11609 #include <math.h>
11610 double x;
11611 int
11612 main ()
11613 {
11614 int e; return frexp (x, &e) > 0;
11615 ;
11616 return 0;
11617 }
11618 _ACEOF
11619 if ac_fn_c_try_link "$LINENO"; then :
11620 gl_cv_func_frexp_in_libm=yes
11621 else
11622 gl_cv_func_frexp_in_libm=no
11623 fi
11624 rm -f core conftest.err conftest.$ac_objext \
11625 conftest$ac_exeext conftest.$ac_ext
11626 LIBS="$save_LIBS"
11627
11628 fi
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
11630 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
11631 if test $gl_cv_func_frexp_in_libm = yes; then
11632 FREXP_LIBM=-lm
11633 fi
11634 fi
11635 if test $gl_cv_func_frexp_no_libm = yes \
11636 || test $gl_cv_func_frexp_in_libm = yes; then
11637 save_LIBS="$LIBS"
11638 LIBS="$LIBS $FREXP_LIBM"
11639
11640
11641
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
11643 $as_echo_n "checking whether frexp works... " >&6; }
11644 if test "${gl_cv_func_frexp_works+set}" = set; then :
11645 $as_echo_n "(cached) " >&6
11646 else
11647
11648 if test "$cross_compiling" = yes; then :
11649 case "$host_os" in
11650 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
11651 *) gl_cv_func_frexp_works="guessing yes";;
11652 esac
11653
11654 else
11655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11656 /* end confdefs.h. */
11657
11658 #include <float.h>
11659 #include <math.h>
11660 #include <string.h>
11661 #if HAVE_ALARM
11662 # include <unistd.h>
11663 #endif
11664 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
11665 ICC 10.0 has a bug when optimizing the expression -zero.
11666 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
11667 to PowerPC on Mac OS X 10.5. */
11668 #if defined __hpux || defined __sgi || defined __ICC
11669 static double
11670 compute_minus_zero (void)
11671 {
11672 return -DBL_MIN * DBL_MIN;
11673 }
11674 # define minus_zero compute_minus_zero ()
11675 #else
11676 double minus_zero = -0.0;
11677 #endif
11678 int main()
11679 {
11680 int result = 0;
11681 int i;
11682 volatile double x;
11683 double zero = 0.0;
11684 #if HAVE_ALARM
11685 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
11686 number. Let the test fail in this case. */
11687 alarm (5);
11688 #endif
11689 /* Test on denormalized numbers. */
11690 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
11691 ;
11692 if (x > 0.0)
11693 {
11694 int exp;
11695 double y = frexp (x, &exp);
11696 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
11697 On NetBSD: y = 0.75. Correct: y = 0.5. */
11698 if (y != 0.5)
11699 result |= 1;
11700 }
11701 /* Test on infinite numbers. */
11702 x = 1.0 / zero;
11703 {
11704 int exp;
11705 double y = frexp (x, &exp);
11706 if (y != x)
11707 result |= 2;
11708 }
11709 /* Test on negative zero. */
11710 x = minus_zero;
11711 {
11712 int exp;
11713 double y = frexp (x, &exp);
11714 if (memcmp (&y, &x, sizeof x))
11715 result |= 4;
11716 }
11717 return result;
11718 }
11719 _ACEOF
11720 if ac_fn_c_try_run "$LINENO"; then :
11721 gl_cv_func_frexp_works=yes
11722 else
11723 gl_cv_func_frexp_works=no
11724 fi
11725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11726 conftest.$ac_objext conftest.beam conftest.$ac_ext
11727 fi
11728
11729
11730 fi
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
11732 $as_echo "$gl_cv_func_frexp_works" >&6; }
11733
11734 LIBS="$save_LIBS"
11735 case "$gl_cv_func_frexp_works" in
11736 *yes) gl_func_frexp=yes ;;
11737 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
11738 esac
11739 else
11740 gl_func_frexp=no
11741 fi
11742 if test $gl_func_frexp = yes; then
11743
11744 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
11745
11746 fi
11747
11748
11749 if test $gl_func_frexp != yes; then
11750
11751
11752
11753
11754
11755
11756
11757
11758 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
11759
11760 fi
11761
11762
11763
11764
11765
11766 GNULIB_FREXP=1
11767
11768
11769
11770
11771
11772 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
11783 "
11784 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
11785
11786 else
11787 HAVE_DECL_FREXPL=0
11788 fi
11789
11790
11791 FREXPL_LIBM=
11792 if test $HAVE_DECL_FREXPL = 1; then
11793
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
11795 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
11796 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
11797 $as_echo_n "(cached) " >&6
11798 else
11799
11800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11801 /* end confdefs.h. */
11802 #include <math.h>
11803 long double x;
11804 int
11805 main ()
11806 {
11807 int e; return frexpl (x, &e) > 0;
11808 ;
11809 return 0;
11810 }
11811 _ACEOF
11812 if ac_fn_c_try_link "$LINENO"; then :
11813 gl_cv_func_frexpl_no_libm=yes
11814 else
11815 gl_cv_func_frexpl_no_libm=no
11816 fi
11817 rm -f core conftest.err conftest.$ac_objext \
11818 conftest$ac_exeext conftest.$ac_ext
11819
11820 fi
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
11822 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
11823
11824 if test $gl_cv_func_frexpl_no_libm = no; then
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
11826 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
11827 if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
11828 $as_echo_n "(cached) " >&6
11829 else
11830
11831 save_LIBS="$LIBS"
11832 LIBS="$LIBS -lm"
11833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11834 /* end confdefs.h. */
11835 #include <math.h>
11836 long double x;
11837 int
11838 main ()
11839 {
11840 int e; return frexpl (x, &e) > 0;
11841 ;
11842 return 0;
11843 }
11844 _ACEOF
11845 if ac_fn_c_try_link "$LINENO"; then :
11846 gl_cv_func_frexpl_in_libm=yes
11847 else
11848 gl_cv_func_frexpl_in_libm=no
11849 fi
11850 rm -f core conftest.err conftest.$ac_objext \
11851 conftest$ac_exeext conftest.$ac_ext
11852 LIBS="$save_LIBS"
11853
11854 fi
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
11856 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
11857 if test $gl_cv_func_frexpl_in_libm = yes; then
11858 FREXPL_LIBM=-lm
11859 fi
11860 fi
11861 if test $gl_cv_func_frexpl_no_libm = yes \
11862 || test $gl_cv_func_frexpl_in_libm = yes; then
11863 save_LIBS="$LIBS"
11864 LIBS="$LIBS $FREXPL_LIBM"
11865
11866
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
11868 $as_echo_n "checking whether frexpl works... " >&6; }
11869 if test "${gl_cv_func_frexpl_works+set}" = set; then :
11870 $as_echo_n "(cached) " >&6
11871 else
11872
11873 if test "$cross_compiling" = yes; then :
11874
11875 case "$host_os" in
11876 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
11877 gl_cv_func_frexpl_works="guessing no";;
11878 *) gl_cv_func_frexpl_works="guessing yes";;
11879 esac
11880
11881 else
11882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11883 /* end confdefs.h. */
11884
11885 #include <float.h>
11886 #include <math.h>
11887 /* Override the values of <float.h>, like done in float.in.h. */
11888 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
11889 # undef LDBL_MIN_EXP
11890 # define LDBL_MIN_EXP (-16381)
11891 #endif
11892 #if defined __i386__ && defined __FreeBSD__
11893 # undef LDBL_MIN_EXP
11894 # define LDBL_MIN_EXP (-16381)
11895 #endif
11896 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
11897 # undef LDBL_MIN_EXP
11898 # define LDBL_MIN_EXP DBL_MIN_EXP
11899 #endif
11900 #if defined __sgi && (LDBL_MANT_DIG >= 106)
11901 # if defined __GNUC__
11902 # undef LDBL_MIN_EXP
11903 # define LDBL_MIN_EXP DBL_MIN_EXP
11904 # endif
11905 #endif
11906 extern
11907 #ifdef __cplusplus
11908 "C"
11909 #endif
11910 long double frexpl (long double, int *);
11911 int main()
11912 {
11913 int result = 0;
11914 volatile long double x;
11915 /* Test on finite numbers that fails on AIX 5.1. */
11916 x = 16.0L;
11917 {
11918 int exp = -9999;
11919 frexpl (x, &exp);
11920 if (exp != 5)
11921 result |= 1;
11922 }
11923 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
11924 function returns an invalid (incorrectly normalized) value: it returns
11925 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
11926 but the correct result is
11927 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
11928 x = 1.01L;
11929 {
11930 int exp = -9999;
11931 long double y = frexpl (x, &exp);
11932 if (!(exp == 1 && y == 0.505L))
11933 result |= 2;
11934 }
11935 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
11936 LDBL_MAX_EXP = 16384.
11937 In the loop end test, we test x against Infinity, rather than comparing
11938 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
11939 {
11940 int i;
11941 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
11942 {
11943 int exp = -9999;
11944 frexpl (x, &exp);
11945 if (exp != i)
11946 {
11947 result |= 4;
11948 break;
11949 }
11950 }
11951 }
11952 /* Test on denormalized numbers. */
11953 {
11954 int i;
11955 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
11956 ;
11957 if (x > 0.0L)
11958 {
11959 int exp;
11960 long double y = frexpl (x, &exp);
11961 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
11962 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
11963 if (exp != LDBL_MIN_EXP - 1)
11964 result |= 8;
11965 }
11966 }
11967 /* Test on infinite numbers. */
11968 x = 1.0L / 0.0L;
11969 {
11970 int exp;
11971 long double y = frexpl (x, &exp);
11972 if (y != x)
11973 result |= 16;
11974 }
11975 return result;
11976 }
11977 _ACEOF
11978 if ac_fn_c_try_run "$LINENO"; then :
11979 gl_cv_func_frexpl_works=yes
11980 else
11981 gl_cv_func_frexpl_works=no
11982 fi
11983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11984 conftest.$ac_objext conftest.beam conftest.$ac_ext
11985 fi
11986
11987
11988 fi
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
11990 $as_echo "$gl_cv_func_frexpl_works" >&6; }
11991
11992 LIBS="$save_LIBS"
11993 case "$gl_cv_func_frexpl_works" in
11994 *yes) gl_func_frexpl=yes ;;
11995 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
11996 esac
11997 else
11998 gl_func_frexpl=no
11999 fi
12000 if test $gl_func_frexpl = yes; then
12001
12002 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
12003
12004 fi
12005 fi
12006 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
12007 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
12008
12009 FREXPL_LIBM="$FREXP_LIBM"
12010 else
12011 FREXPL_LIBM=
12012 fi
12013 fi
12014
12015
12016 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
12017
12018
12019
12020
12021
12022
12023
12024
12025 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
12026
12027 fi
12028
12029
12030
12031
12032
12033 GNULIB_FREXPL=1
12034
12035
12036
12037
12038
12039 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
12040
12041
12042
12043
12044
12045
12046
12047
12048 PRIPTR_PREFIX=
12049 if test -n "$STDINT_H"; then
12050 PRIPTR_PREFIX='"l"'
12051 else
12052 for glpfx in '' l ll I64; do
12053 case $glpfx in
12054 '') gltype1='int';;
12055 l) gltype1='long int';;
12056 ll) gltype1='long long int';;
12057 I64) gltype1='__int64';;
12058 esac
12059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12060 /* end confdefs.h. */
12061 #include <stdint.h>
12062 extern intptr_t foo;
12063 extern $gltype1 foo;
12064 int
12065 main ()
12066 {
12067
12068 ;
12069 return 0;
12070 }
12071 _ACEOF
12072 if ac_fn_c_try_compile "$LINENO"; then :
12073 PRIPTR_PREFIX='"'$glpfx'"'
12074 fi
12075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12076 test -n "$PRIPTR_PREFIX" && break
12077 done
12078 fi
12079
12080
12081
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
12083 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
12084 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
12085 $as_echo_n "(cached) " >&6
12086 else
12087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12088 /* end confdefs.h. */
12089 /* Work also in C++ mode. */
12090 #define __STDC_LIMIT_MACROS 1
12091
12092 /* Work if build is not clean. */
12093 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
12094
12095 #include <limits.h>
12096 #if HAVE_STDINT_H
12097 #include <stdint.h>
12098 #endif
12099
12100 #if defined INT32_MAX && defined INTMAX_MAX
12101 #define CONDITION (INT32_MAX < INTMAX_MAX)
12102 #elif HAVE_LONG_LONG_INT
12103 #define CONDITION (sizeof (int) < sizeof (long long int))
12104 #else
12105 #define CONDITION 0
12106 #endif
12107 int test[CONDITION ? 1 : -1];
12108 int
12109 main ()
12110 {
12111
12112 ;
12113 return 0;
12114 }
12115 _ACEOF
12116 if ac_fn_c_try_compile "$LINENO"; then :
12117 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
12118 else
12119 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
12120 fi
12121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12122 fi
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
12124 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
12125 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
12126 INT32_MAX_LT_INTMAX_MAX=1;
12127 else
12128 INT32_MAX_LT_INTMAX_MAX=0;
12129 fi
12130
12131
12132 if test $APPLE_UNIVERSAL_BUILD = 0; then
12133
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
12135 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
12136 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
12137 $as_echo_n "(cached) " >&6
12138 else
12139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140 /* end confdefs.h. */
12141 /* Work also in C++ mode. */
12142 #define __STDC_LIMIT_MACROS 1
12143
12144 /* Work if build is not clean. */
12145 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
12146
12147 #include <limits.h>
12148 #if HAVE_STDINT_H
12149 #include <stdint.h>
12150 #endif
12151
12152 #if defined INT64_MAX
12153 #define CONDITION (INT64_MAX == LONG_MAX)
12154 #elif HAVE_LONG_LONG_INT
12155 #define CONDITION (sizeof (long long int) == sizeof (long int))
12156 #else
12157 #define CONDITION 0
12158 #endif
12159 int test[CONDITION ? 1 : -1];
12160 int
12161 main ()
12162 {
12163
12164 ;
12165 return 0;
12166 }
12167 _ACEOF
12168 if ac_fn_c_try_compile "$LINENO"; then :
12169 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
12170 else
12171 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
12172 fi
12173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12174 fi
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
12176 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
12177 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
12178 INT64_MAX_EQ_LONG_MAX=1;
12179 else
12180 INT64_MAX_EQ_LONG_MAX=0;
12181 fi
12182
12183
12184 else
12185 INT64_MAX_EQ_LONG_MAX=-1
12186 fi
12187
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
12189 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
12190 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
12191 $as_echo_n "(cached) " >&6
12192 else
12193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12194 /* end confdefs.h. */
12195 /* Work also in C++ mode. */
12196 #define __STDC_LIMIT_MACROS 1
12197
12198 /* Work if build is not clean. */
12199 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
12200
12201 #include <limits.h>
12202 #if HAVE_STDINT_H
12203 #include <stdint.h>
12204 #endif
12205
12206 #if defined UINT32_MAX && defined UINTMAX_MAX
12207 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
12208 #elif HAVE_LONG_LONG_INT
12209 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
12210 #else
12211 #define CONDITION 0
12212 #endif
12213 int test[CONDITION ? 1 : -1];
12214 int
12215 main ()
12216 {
12217
12218 ;
12219 return 0;
12220 }
12221 _ACEOF
12222 if ac_fn_c_try_compile "$LINENO"; then :
12223 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
12224 else
12225 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
12226 fi
12227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12228 fi
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
12230 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
12231 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
12232 UINT32_MAX_LT_UINTMAX_MAX=1;
12233 else
12234 UINT32_MAX_LT_UINTMAX_MAX=0;
12235 fi
12236
12237
12238 if test $APPLE_UNIVERSAL_BUILD = 0; then
12239
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
12241 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
12242 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
12243 $as_echo_n "(cached) " >&6
12244 else
12245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12246 /* end confdefs.h. */
12247 /* Work also in C++ mode. */
12248 #define __STDC_LIMIT_MACROS 1
12249
12250 /* Work if build is not clean. */
12251 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
12252
12253 #include <limits.h>
12254 #if HAVE_STDINT_H
12255 #include <stdint.h>
12256 #endif
12257
12258 #if defined UINT64_MAX
12259 #define CONDITION (UINT64_MAX == ULONG_MAX)
12260 #elif HAVE_LONG_LONG_INT
12261 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
12262 #else
12263 #define CONDITION 0
12264 #endif
12265 int test[CONDITION ? 1 : -1];
12266 int
12267 main ()
12268 {
12269
12270 ;
12271 return 0;
12272 }
12273 _ACEOF
12274 if ac_fn_c_try_compile "$LINENO"; then :
12275 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
12276 else
12277 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
12278 fi
12279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12280 fi
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
12282 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
12283 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
12284 UINT64_MAX_EQ_ULONG_MAX=1;
12285 else
12286 UINT64_MAX_EQ_ULONG_MAX=0;
12287 fi
12288
12289
12290 else
12291 UINT64_MAX_EQ_ULONG_MAX=-1
12292 fi
12293
12294
12295
12296
12297
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
12299 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
12300 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
12301 $as_echo_n "(cached) " >&6
12302 else
12303
12304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12305 /* end confdefs.h. */
12306 #include <math.h>
12307 #if __GNUC__ >= 4
12308 # undef isnand
12309 # define isnand(x) __builtin_isnan ((double)(x))
12310 #else
12311 # undef isnand
12312 # define isnand(x) isnan ((double)(x))
12313 #endif
12314 double x;
12315 int
12316 main ()
12317 {
12318 return isnand (x);
12319 ;
12320 return 0;
12321 }
12322 _ACEOF
12323 if ac_fn_c_try_link "$LINENO"; then :
12324 gl_cv_func_isnand_no_libm=yes
12325 else
12326 gl_cv_func_isnand_no_libm=no
12327 fi
12328 rm -f core conftest.err conftest.$ac_objext \
12329 conftest$ac_exeext conftest.$ac_ext
12330
12331 fi
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
12333 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
12334
12335 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
12336 if test $gl_cv_func_isnand_no_libm = yes; then
12337
12338 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
12339
12340 fi
12341
12342 if test $gl_func_isnand_no_libm != yes; then
12343
12344
12345
12346
12347
12348
12349
12350
12351 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
12352
12353
12354
12355
12356 fi
12357
12358
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
12360 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
12361 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
12362 $as_echo_n "(cached) " >&6
12363 else
12364
12365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12366 /* end confdefs.h. */
12367 #include <math.h>
12368 #if __GNUC__ >= 4
12369 # undef isnanl
12370 # define isnanl(x) __builtin_isnanl ((long double)(x))
12371 #elif defined isnan
12372 # undef isnanl
12373 # define isnanl(x) isnan ((long double)(x))
12374 #endif
12375 long double x;
12376 int
12377 main ()
12378 {
12379 return isnanl (x);
12380 ;
12381 return 0;
12382 }
12383 _ACEOF
12384 if ac_fn_c_try_link "$LINENO"; then :
12385 gl_cv_func_isnanl_no_libm=yes
12386 else
12387 gl_cv_func_isnanl_no_libm=no
12388 fi
12389 rm -f core conftest.err conftest.$ac_objext \
12390 conftest$ac_exeext conftest.$ac_ext
12391
12392 fi
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
12394 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
12395
12396 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
12397 if test $gl_func_isnanl_no_libm = yes; then
12398
12399
12400
12401
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
12403 $as_echo_n "checking whether isnanl works... " >&6; }
12404 if test "${gl_cv_func_isnanl_works+set}" = set; then :
12405 $as_echo_n "(cached) " >&6
12406 else
12407
12408 if test "$cross_compiling" = yes; then :
12409 case "$host_cpu" in
12410 # Guess no on ia64, x86_64, i386.
12411 ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
12412 *)
12413 case "$host_os" in
12414 netbsd*) gl_cv_func_isnanl_works="guessing no";;
12415 *) gl_cv_func_isnanl_works="guessing yes";;
12416 esac
12417 ;;
12418 esac
12419
12420 else
12421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12422 /* end confdefs.h. */
12423
12424 #include <float.h>
12425 #include <limits.h>
12426 #include <math.h>
12427 #if __GNUC__ >= 4
12428 # undef isnanl
12429 # define isnanl(x) __builtin_isnanl ((long double)(x))
12430 #elif defined isnan
12431 # undef isnanl
12432 # define isnanl(x) isnan ((long double)(x))
12433 #endif
12434 #define NWORDS \
12435 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
12436 typedef union { unsigned int word[NWORDS]; long double value; }
12437 memory_long_double;
12438 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
12439 runtime type conversion. */
12440 #ifdef __sgi
12441 static long double NaNl ()
12442 {
12443 double zero = 0.0;
12444 return zero / zero;
12445 }
12446 #else
12447 # define NaNl() (0.0L / 0.0L)
12448 #endif
12449 int main ()
12450 {
12451 int result = 0;
12452
12453 if (!isnanl (NaNl ()))
12454 result |= 1;
12455
12456 {
12457 memory_long_double m;
12458 unsigned int i;
12459
12460 /* The isnanl function should be immune against changes in the sign bit and
12461 in the mantissa bits. The xor operation twiddles a bit that can only be
12462 a sign bit or a mantissa bit (since the exponent never extends to
12463 bit 31). */
12464 m.value = NaNl ();
12465 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
12466 for (i = 0; i < NWORDS; i++)
12467 m.word[i] |= 1;
12468 if (!isnanl (m.value))
12469 result |= 1;
12470 }
12471
12472 #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
12473 /* Representation of an 80-bit 'long double' as an initializer for a sequence
12474 of 'unsigned int' words. */
12475 # ifdef WORDS_BIGENDIAN
12476 # define LDBL80_WORDS(exponent,manthi,mantlo) \
12477 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
12478 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
12479 (unsigned int) (mantlo) << 16 \
12480 }
12481 # else
12482 # define LDBL80_WORDS(exponent,manthi,mantlo) \
12483 { mantlo, manthi, exponent }
12484 # endif
12485 { /* Quiet NaN. */
12486 static memory_long_double x =
12487 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
12488 if (!isnanl (x.value))
12489 result |= 2;
12490 }
12491 {
12492 /* Signalling NaN. */
12493 static memory_long_double x =
12494 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
12495 if (!isnanl (x.value))
12496 result |= 2;
12497 }
12498 /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
12499 Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
12500 Intel IA-64 Architecture Software Developer's Manual, Volume 1:
12501 Application Architecture.
12502 Table 5-2 "Floating-Point Register Encodings"
12503 Figure 5-6 "Memory to Floating-Point Register Data Translation"
12504 */
12505 { /* Pseudo-NaN. */
12506 static memory_long_double x =
12507 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
12508 if (!isnanl (x.value))
12509 result |= 4;
12510 }
12511 { /* Pseudo-Infinity. */
12512 static memory_long_double x =
12513 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
12514 if (!isnanl (x.value))
12515 result |= 8;
12516 }
12517 { /* Pseudo-Zero. */
12518 static memory_long_double x =
12519 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
12520 if (!isnanl (x.value))
12521 result |= 16;
12522 }
12523 { /* Unnormalized number. */
12524 static memory_long_double x =
12525 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
12526 if (!isnanl (x.value))
12527 result |= 32;
12528 }
12529 { /* Pseudo-Denormal. */
12530 static memory_long_double x =
12531 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
12532 if (!isnanl (x.value))
12533 result |= 64;
12534 }
12535 #endif
12536
12537 return result;
12538 }
12539 _ACEOF
12540 if ac_fn_c_try_run "$LINENO"; then :
12541 gl_cv_func_isnanl_works=yes
12542 else
12543 gl_cv_func_isnanl_works=no
12544 fi
12545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12546 conftest.$ac_objext conftest.beam conftest.$ac_ext
12547 fi
12548
12549
12550 fi
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
12552 $as_echo "$gl_cv_func_isnanl_works" >&6; }
12553
12554 case "$gl_cv_func_isnanl_works" in
12555 *yes) ;;
12556 *) gl_func_isnanl_no_libm=no ;;
12557 esac
12558 fi
12559 if test $gl_func_isnanl_no_libm = yes; then
12560
12561 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
12562
12563 fi
12564
12565 if test $gl_func_isnanl_no_libm != yes; then
12566
12567
12568
12569
12570
12571
12572
12573
12574 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
12575
12576
12577
12578
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
12580 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
12581 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
12582 $as_echo_n "(cached) " >&6
12583 else
12584
12585 if test "$cross_compiling" = yes; then :
12586
12587 gl_cv_cc_long_double_expbit0="unknown"
12588
12589 else
12590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12591 /* end confdefs.h. */
12592
12593 #include <float.h>
12594 #include <stddef.h>
12595 #include <stdio.h>
12596 #include <string.h>
12597 #define NWORDS \
12598 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
12599 typedef union { long double value; unsigned int word[NWORDS]; }
12600 memory_long_double;
12601 static unsigned int ored_words[NWORDS];
12602 static unsigned int anded_words[NWORDS];
12603 static void add_to_ored_words (long double x)
12604 {
12605 memory_long_double m;
12606 size_t i;
12607 /* Clear it first, in case
12608 sizeof (long double) < sizeof (memory_long_double). */
12609 memset (&m, 0, sizeof (memory_long_double));
12610 m.value = x;
12611 for (i = 0; i < NWORDS; i++)
12612 {
12613 ored_words[i] |= m.word[i];
12614 anded_words[i] &= m.word[i];
12615 }
12616 }
12617 int main ()
12618 {
12619 size_t j;
12620 FILE *fp = fopen ("conftest.out", "w");
12621 if (fp == NULL)
12622 return 1;
12623 for (j = 0; j < NWORDS; j++)
12624 anded_words[j] = ~ (unsigned int) 0;
12625 add_to_ored_words (0.25L);
12626 add_to_ored_words (0.5L);
12627 add_to_ored_words (1.0L);
12628 add_to_ored_words (2.0L);
12629 add_to_ored_words (4.0L);
12630 /* Remove bits that are common (e.g. if representation of the first mantissa
12631 bit is explicit). */
12632 for (j = 0; j < NWORDS; j++)
12633 ored_words[j] &= ~anded_words[j];
12634 /* Now find the nonzero word. */
12635 for (j = 0; j < NWORDS; j++)
12636 if (ored_words[j] != 0)
12637 break;
12638 if (j < NWORDS)
12639 {
12640 size_t i;
12641 for (i = j + 1; i < NWORDS; i++)
12642 if (ored_words[i] != 0)
12643 {
12644 fprintf (fp, "unknown");
12645 return (fclose (fp) != 0);
12646 }
12647 for (i = 0; ; i++)
12648 if ((ored_words[j] >> i) & 1)
12649 {
12650 fprintf (fp, "word %d bit %d", (int) j, (int) i);
12651 return (fclose (fp) != 0);
12652 }
12653 }
12654 fprintf (fp, "unknown");
12655 return (fclose (fp) != 0);
12656 }
12657
12658 _ACEOF
12659 if ac_fn_c_try_run "$LINENO"; then :
12660 gl_cv_cc_long_double_expbit0=`cat conftest.out`
12661 else
12662 gl_cv_cc_long_double_expbit0="unknown"
12663 fi
12664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12665 conftest.$ac_objext conftest.beam conftest.$ac_ext
12666 fi
12667
12668 rm -f conftest.out
12669
12670 fi
12671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
12672 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
12673 case "$gl_cv_cc_long_double_expbit0" in
12674 word*bit*)
12675 word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
12676 bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
12677
12678 cat >>confdefs.h <<_ACEOF
12679 #define LDBL_EXPBIT0_WORD $word
12680 _ACEOF
12681
12682
12683 cat >>confdefs.h <<_ACEOF
12684 #define LDBL_EXPBIT0_BIT $bit
12685 _ACEOF
12686
12687 ;;
12688 esac
12689
12690
12691
12692 fi
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
12703
12704
12705
12706
12707 if test $ac_cv_func_lstat = yes; then
12708
12709 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
12710 *no)
12711 REPLACE_LSTAT=1
12712 ;;
12713 esac
12714 else
12715 HAVE_LSTAT=0
12716 fi
12717
12718 if test $REPLACE_LSTAT = 1; then
12719
12720
12721
12722
12723
12724
12725
12726
12727 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
12728
12729 :
12730 fi
12731
12732
12733
12734
12735
12736 GNULIB_LSTAT=1
12737
12738
12739
12740
12741
12742 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757 if test $gl_cv_have_include_next = yes; then
12758 gl_cv_next_math_h='<'math.h'>'
12759 else
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
12761 $as_echo_n "checking absolute name of <math.h>... " >&6; }
12762 if test "${gl_cv_next_math_h+set}" = set; then :
12763 $as_echo_n "(cached) " >&6
12764 else
12765
12766 if test $ac_cv_header_math_h = yes; then
12767
12768
12769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12770 /* end confdefs.h. */
12771 #include <math.h>
12772
12773 _ACEOF
12774 case "$host_os" in
12775 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12776 *) gl_absname_cpp="$ac_cpp" ;;
12777 esac
12778
12779 case "$host_os" in
12780 mingw*)
12781 gl_dirsep_regex='[/\\]'
12782 ;;
12783 *)
12784 gl_dirsep_regex='\/'
12785 ;;
12786 esac
12787 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12788
12789 gl_header_literal_regex=`echo 'math.h' \
12790 | sed -e "$gl_make_literal_regex_sed"`
12791 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12792 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12793 s|^/[^/]|//&|
12794 p
12795 q
12796 }'
12797 gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12798 sed -n "$gl_absolute_header_sed"`'"'
12799 else
12800 gl_cv_next_math_h='<'math.h'>'
12801 fi
12802
12803
12804 fi
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
12806 $as_echo "$gl_cv_next_math_h" >&6; }
12807 fi
12808 NEXT_MATH_H=$gl_cv_next_math_h
12809
12810 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12811 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12812 gl_next_as_first_directive='<'math.h'>'
12813 else
12814 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12815 gl_next_as_first_directive=$gl_cv_next_math_h
12816 fi
12817 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
12818
12819
12820
12821
12822
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
12824 $as_echo_n "checking whether NAN macro works... " >&6; }
12825 if test "${gl_cv_header_math_nan_works+set}" = set; then :
12826 $as_echo_n "(cached) " >&6
12827 else
12828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12829 /* end confdefs.h. */
12830 #include <math.h>
12831 int
12832 main ()
12833 {
12834 /* Solaris 10 has a broken definition of NAN. Other platforms
12835 fail to provide NAN, or provide it only in C99 mode; this
12836 test only needs to fail when NAN is provided but wrong. */
12837 float f = 1.0f;
12838 #ifdef NAN
12839 f = NAN;
12840 #endif
12841 return f == 0;
12842 ;
12843 return 0;
12844 }
12845 _ACEOF
12846 if ac_fn_c_try_compile "$LINENO"; then :
12847 gl_cv_header_math_nan_works=yes
12848 else
12849 gl_cv_header_math_nan_works=no
12850 fi
12851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12852 fi
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
12854 $as_echo "$gl_cv_header_math_nan_works" >&6; }
12855 if test $gl_cv_header_math_nan_works = no; then
12856 REPLACE_NAN=1
12857 fi
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
12859 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
12860 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
12861 $as_echo_n "(cached) " >&6
12862 else
12863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12864 /* end confdefs.h. */
12865 #include <math.h>
12866 int
12867 main ()
12868 {
12869 /* Solaris 10 has a broken definition of HUGE_VAL. */
12870 double d = HUGE_VAL;
12871 return d == 0;
12872 ;
12873 return 0;
12874 }
12875 _ACEOF
12876 if ac_fn_c_try_compile "$LINENO"; then :
12877 gl_cv_header_math_huge_val_works=yes
12878 else
12879 gl_cv_header_math_huge_val_works=no
12880 fi
12881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12882 fi
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
12884 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
12885 if test $gl_cv_header_math_huge_val_works = no; then
12886 REPLACE_HUGE_VAL=1
12887 fi
12888
12889
12890 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
12891 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
12893 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12894 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
12895 $as_echo_n "(cached) " >&6
12896 else
12897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12898 /* end confdefs.h. */
12899 #include <math.h>
12900 int
12901 main ()
12902 {
12903 #undef $gl_func
12904 (void) $gl_func;
12905 ;
12906 return 0;
12907 }
12908 _ACEOF
12909 if ac_fn_c_try_compile "$LINENO"; then :
12910 eval "$as_gl_Symbol=yes"
12911 else
12912 eval "$as_gl_Symbol=no"
12913 fi
12914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12915 fi
12916 eval ac_res=\$$as_gl_Symbol
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12918 $as_echo "$ac_res" >&6; }
12919 eval as_val=\$$as_gl_Symbol
12920 if test "x$as_val" = x""yes; then :
12921 cat >>confdefs.h <<_ACEOF
12922 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
12923 _ACEOF
12924
12925 eval ac_cv_have_decl_$gl_func=yes
12926 fi
12927 done
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
12941
12942
12943
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12945 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12946 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
12947 $as_echo_n "(cached) " >&6
12948 else
12949
12950 case "$host_os" in
12951 # Guess no on AIX and OSF/1.
12952 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12953 # Guess yes otherwise.
12954 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
12955 esac
12956 if test $LOCALE_JA != none; then
12957 if test "$cross_compiling" = yes; then :
12958 :
12959 else
12960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12961 /* end confdefs.h. */
12962
12963 #include <locale.h>
12964 #include <string.h>
12965 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12966 <wchar.h>.
12967 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12968 included before <wchar.h>. */
12969 #include <stddef.h>
12970 #include <stdio.h>
12971 #include <time.h>
12972 #include <wchar.h>
12973 int main ()
12974 {
12975 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12976 {
12977 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12978 mbstate_t state;
12979 wchar_t wc;
12980
12981 memset (&state, '\0', sizeof (mbstate_t));
12982 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12983 if (mbsinit (&state))
12984 return 1;
12985 }
12986 return 0;
12987 }
12988 _ACEOF
12989 if ac_fn_c_try_run "$LINENO"; then :
12990 gl_cv_func_mbrtowc_incomplete_state=yes
12991 else
12992 gl_cv_func_mbrtowc_incomplete_state=no
12993 fi
12994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12995 conftest.$ac_objext conftest.beam conftest.$ac_ext
12996 fi
12997
12998 fi
12999
13000 fi
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
13002 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
13003
13004
13005
13006
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
13008 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
13009 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
13010 $as_echo_n "(cached) " >&6
13011 else
13012
13013 case "$host_os" in
13014 # Guess no on Solaris 8.
13015 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
13016 # Guess yes otherwise.
13017 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
13018 esac
13019 if test $LOCALE_ZH_CN != none; then
13020 if test "$cross_compiling" = yes; then :
13021 :
13022 else
13023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13024 /* end confdefs.h. */
13025
13026 #include <locale.h>
13027 #include <stdlib.h>
13028 #include <string.h>
13029 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13030 <wchar.h>.
13031 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13032 included before <wchar.h>. */
13033 #include <stddef.h>
13034 #include <stdio.h>
13035 #include <time.h>
13036 #include <wchar.h>
13037 int main ()
13038 {
13039 /* This fails on Solaris 8:
13040 mbrtowc returns 2, and sets wc to 0x00F0.
13041 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
13042 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13043 {
13044 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
13045 mbstate_t state;
13046 wchar_t wc;
13047
13048 memset (&state, '\0', sizeof (mbstate_t));
13049 if (mbrtowc (&wc, input + 3, 6, &state) != 4
13050 && mbtowc (&wc, input + 3, 6) == 4)
13051 return 1;
13052 }
13053 return 0;
13054 }
13055 _ACEOF
13056 if ac_fn_c_try_run "$LINENO"; then :
13057 gl_cv_func_mbrtowc_sanitycheck=yes
13058 else
13059 gl_cv_func_mbrtowc_sanitycheck=no
13060 fi
13061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13062 conftest.$ac_objext conftest.beam conftest.$ac_ext
13063 fi
13064
13065 fi
13066
13067 fi
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
13069 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
13070
13071 REPLACE_MBSTATE_T=0
13072 case "$gl_cv_func_mbrtowc_incomplete_state" in
13073 *yes) ;;
13074 *) REPLACE_MBSTATE_T=1 ;;
13075 esac
13076 case "$gl_cv_func_mbrtowc_sanitycheck" in
13077 *yes) ;;
13078 *) REPLACE_MBSTATE_T=1 ;;
13079 esac
13080 else
13081 REPLACE_MBSTATE_T=1
13082 fi
13083
13084
13085
13086 if test $ac_cv_func_mbrtowc = no; then
13087 HAVE_MBRTOWC=0
13088 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
13089 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13090 <wchar.h>.
13091 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13092 included before <wchar.h>. */
13093 #include <stddef.h>
13094 #include <stdio.h>
13095 #include <time.h>
13096 #include <wchar.h>
13097
13098 "
13099 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
13100 ac_have_decl=1
13101 else
13102 ac_have_decl=0
13103 fi
13104
13105 cat >>confdefs.h <<_ACEOF
13106 #define HAVE_DECL_MBRTOWC $ac_have_decl
13107 _ACEOF
13108
13109 if test $ac_cv_have_decl_mbrtowc = yes; then
13110 REPLACE_MBRTOWC=1
13111 fi
13112 else
13113 if test $REPLACE_MBSTATE_T = 1; then
13114 REPLACE_MBRTOWC=1
13115 else
13116
13117
13118
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
13120 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
13121 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
13122 $as_echo_n "(cached) " >&6
13123 else
13124
13125 case "$host_os" in
13126 # Guess no on Solaris.
13127 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
13128 # Guess yes otherwise.
13129 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
13130 esac
13131 if test $LOCALE_FR_UTF8 != none; then
13132 if test "$cross_compiling" = yes; then :
13133 :
13134 else
13135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13136 /* end confdefs.h. */
13137
13138 #include <locale.h>
13139 #include <stdlib.h>
13140 #include <string.h>
13141 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13142 <wchar.h>.
13143 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13144 included before <wchar.h>. */
13145 #include <stddef.h>
13146 #include <stdio.h>
13147 #include <time.h>
13148 #include <wchar.h>
13149 int main ()
13150 {
13151 int result = 0;
13152
13153 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
13154 {
13155 char input[] = "\303\237er";
13156 mbstate_t state;
13157 wchar_t wc;
13158 size_t ret;
13159
13160 memset (&state, '\0', sizeof (mbstate_t));
13161 wc = (wchar_t) 0xBADFACE;
13162 ret = mbrtowc (&wc, input, 5, &state);
13163 if (ret != 2)
13164 result |= 1;
13165 if (!mbsinit (&state))
13166 result |= 2;
13167
13168 memset (&state, '\0', sizeof (mbstate_t));
13169 ret = mbrtowc (NULL, input, 5, &state);
13170 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
13171 result |= 4;
13172 if (!mbsinit (&state))
13173 result |= 8;
13174 }
13175 return result;
13176 }
13177 _ACEOF
13178 if ac_fn_c_try_run "$LINENO"; then :
13179 gl_cv_func_mbrtowc_null_arg1=yes
13180 else
13181 gl_cv_func_mbrtowc_null_arg1=no
13182 fi
13183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13184 conftest.$ac_objext conftest.beam conftest.$ac_ext
13185 fi
13186
13187 fi
13188
13189 fi
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
13191 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
13192
13193
13194
13195
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
13197 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
13198 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
13199 $as_echo_n "(cached) " >&6
13200 else
13201
13202 case "$host_os" in
13203 # Guess no on OSF/1.
13204 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
13205 # Guess yes otherwise.
13206 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
13207 esac
13208 if test $LOCALE_FR_UTF8 != none; then
13209 if test "$cross_compiling" = yes; then :
13210 :
13211 else
13212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13213 /* end confdefs.h. */
13214
13215 #include <locale.h>
13216 #include <string.h>
13217 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13218 <wchar.h>.
13219 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13220 included before <wchar.h>. */
13221 #include <stddef.h>
13222 #include <stdio.h>
13223 #include <time.h>
13224 #include <wchar.h>
13225 int main ()
13226 {
13227 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
13228 {
13229 mbstate_t state;
13230 wchar_t wc;
13231 int ret;
13232
13233 memset (&state, '\0', sizeof (mbstate_t));
13234 wc = (wchar_t) 0xBADFACE;
13235 mbrtowc (&wc, NULL, 5, &state);
13236 /* Check that wc was not modified. */
13237 if (wc != (wchar_t) 0xBADFACE)
13238 return 1;
13239 }
13240 return 0;
13241 }
13242 _ACEOF
13243 if ac_fn_c_try_run "$LINENO"; then :
13244 gl_cv_func_mbrtowc_null_arg2=yes
13245 else
13246 gl_cv_func_mbrtowc_null_arg2=no
13247 fi
13248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13249 conftest.$ac_objext conftest.beam conftest.$ac_ext
13250 fi
13251
13252 fi
13253
13254 fi
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
13256 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
13257
13258
13259
13260
13261
13262
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
13264 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
13265 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
13266 $as_echo_n "(cached) " >&6
13267 else
13268
13269 case "$host_os" in
13270 # Guess no on HP-UX, Solaris, native Windows.
13271 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
13272 # Guess yes otherwise.
13273 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
13274 esac
13275 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
13276 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
13277 if test "$cross_compiling" = yes; then :
13278 :
13279 else
13280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13281 /* end confdefs.h. */
13282
13283 #include <locale.h>
13284 #include <string.h>
13285 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13286 <wchar.h>.
13287 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13288 included before <wchar.h>. */
13289 #include <stddef.h>
13290 #include <stdio.h>
13291 #include <time.h>
13292 #include <wchar.h>
13293 int main ()
13294 {
13295 int result = 0;
13296 int found_some_locale = 0;
13297 /* This fails on Solaris. */
13298 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
13299 {
13300 char input[] = "B\303\274\303\237er"; /* "Büßer" */
13301 mbstate_t state;
13302 wchar_t wc;
13303
13304 memset (&state, '\0', sizeof (mbstate_t));
13305 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
13306 {
13307 input[1] = '\0';
13308 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
13309 result |= 1;
13310 }
13311 found_some_locale = 1;
13312 }
13313 /* This fails on HP-UX 11.11. */
13314 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13315 {
13316 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
13317 mbstate_t state;
13318 wchar_t wc;
13319
13320 memset (&state, '\0', sizeof (mbstate_t));
13321 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
13322 {
13323 input[1] = '\0';
13324 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
13325 result |= 2;
13326 }
13327 found_some_locale = 1;
13328 }
13329 /* This fails on native Windows. */
13330 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
13331 {
13332 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
13333 mbstate_t state;
13334 wchar_t wc;
13335
13336 memset (&state, '\0', sizeof (mbstate_t));
13337 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
13338 {
13339 input[3] = '\0';
13340 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
13341 result |= 4;
13342 }
13343 found_some_locale = 1;
13344 }
13345 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
13346 {
13347 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
13348 mbstate_t state;
13349 wchar_t wc;
13350
13351 memset (&state, '\0', sizeof (mbstate_t));
13352 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
13353 {
13354 input[3] = '\0';
13355 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
13356 result |= 8;
13357 }
13358 found_some_locale = 1;
13359 }
13360 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
13361 {
13362 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
13363 mbstate_t state;
13364 wchar_t wc;
13365
13366 memset (&state, '\0', sizeof (mbstate_t));
13367 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
13368 {
13369 input[3] = '\0';
13370 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
13371 result |= 16;
13372 }
13373 found_some_locale = 1;
13374 }
13375 return (found_some_locale ? result : 77);
13376 }
13377 _ACEOF
13378 if ac_fn_c_try_run "$LINENO"; then :
13379 gl_cv_func_mbrtowc_retval=yes
13380 else
13381 if test $? != 77; then
13382 gl_cv_func_mbrtowc_retval=no
13383 fi
13384
13385 fi
13386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13387 conftest.$ac_objext conftest.beam conftest.$ac_ext
13388 fi
13389
13390 fi
13391
13392 fi
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
13394 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
13395
13396
13397
13398
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
13400 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
13401 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
13402 $as_echo_n "(cached) " >&6
13403 else
13404
13405 case "$host_os" in
13406 # Guess no on Solaris 8 and 9.
13407 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
13408 # Guess yes otherwise.
13409 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
13410 esac
13411 if test $LOCALE_ZH_CN != none; then
13412 if test "$cross_compiling" = yes; then :
13413 :
13414 else
13415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13416 /* end confdefs.h. */
13417
13418 #include <locale.h>
13419 #include <string.h>
13420 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13421 <wchar.h>.
13422 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13423 included before <wchar.h>. */
13424 #include <stddef.h>
13425 #include <stdio.h>
13426 #include <time.h>
13427 #include <wchar.h>
13428 int main ()
13429 {
13430 /* This fails on Solaris 8 and 9. */
13431 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13432 {
13433 mbstate_t state;
13434 wchar_t wc;
13435
13436 memset (&state, '\0', sizeof (mbstate_t));
13437 if (mbrtowc (&wc, "", 1, &state) != 0)
13438 return 1;
13439 }
13440 return 0;
13441 }
13442 _ACEOF
13443 if ac_fn_c_try_run "$LINENO"; then :
13444 gl_cv_func_mbrtowc_nul_retval=yes
13445 else
13446 gl_cv_func_mbrtowc_nul_retval=no
13447 fi
13448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13449 conftest.$ac_objext conftest.beam conftest.$ac_ext
13450 fi
13451
13452 fi
13453
13454 fi
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
13456 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
13457
13458 case "$gl_cv_func_mbrtowc_null_arg1" in
13459 *yes) ;;
13460 *)
13461 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
13462
13463 REPLACE_MBRTOWC=1
13464 ;;
13465 esac
13466 case "$gl_cv_func_mbrtowc_null_arg2" in
13467 *yes) ;;
13468 *)
13469 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
13470
13471 REPLACE_MBRTOWC=1
13472 ;;
13473 esac
13474 case "$gl_cv_func_mbrtowc_retval" in
13475 *yes) ;;
13476 *)
13477 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
13478
13479 REPLACE_MBRTOWC=1
13480 ;;
13481 esac
13482 case "$gl_cv_func_mbrtowc_nul_retval" in
13483 *yes) ;;
13484 *)
13485 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
13486
13487 REPLACE_MBRTOWC=1
13488 ;;
13489 esac
13490 fi
13491 fi
13492
13493 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
13494
13495
13496
13497
13498
13499
13500
13501
13502 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
13503
13504
13505 :
13506
13507 fi
13508
13509
13510
13511
13512
13513 GNULIB_MBRTOWC=1
13514
13515
13516
13517
13518
13519 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
13535
13536
13537
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
13539 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
13540 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
13541 $as_echo_n "(cached) " >&6
13542 else
13543
13544 case "$host_os" in
13545 # Guess no on AIX and OSF/1.
13546 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
13547 # Guess yes otherwise.
13548 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
13549 esac
13550 if test $LOCALE_JA != none; then
13551 if test "$cross_compiling" = yes; then :
13552 :
13553 else
13554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13555 /* end confdefs.h. */
13556
13557 #include <locale.h>
13558 #include <string.h>
13559 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13560 <wchar.h>.
13561 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13562 included before <wchar.h>. */
13563 #include <stddef.h>
13564 #include <stdio.h>
13565 #include <time.h>
13566 #include <wchar.h>
13567 int main ()
13568 {
13569 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13570 {
13571 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
13572 mbstate_t state;
13573 wchar_t wc;
13574
13575 memset (&state, '\0', sizeof (mbstate_t));
13576 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
13577 if (mbsinit (&state))
13578 return 1;
13579 }
13580 return 0;
13581 }
13582 _ACEOF
13583 if ac_fn_c_try_run "$LINENO"; then :
13584 gl_cv_func_mbrtowc_incomplete_state=yes
13585 else
13586 gl_cv_func_mbrtowc_incomplete_state=no
13587 fi
13588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13589 conftest.$ac_objext conftest.beam conftest.$ac_ext
13590 fi
13591
13592 fi
13593
13594 fi
13595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
13596 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
13597
13598
13599
13600
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
13602 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
13603 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
13604 $as_echo_n "(cached) " >&6
13605 else
13606
13607 case "$host_os" in
13608 # Guess no on Solaris 8.
13609 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
13610 # Guess yes otherwise.
13611 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
13612 esac
13613 if test $LOCALE_ZH_CN != none; then
13614 if test "$cross_compiling" = yes; then :
13615 :
13616 else
13617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13618 /* end confdefs.h. */
13619
13620 #include <locale.h>
13621 #include <stdlib.h>
13622 #include <string.h>
13623 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13624 <wchar.h>.
13625 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13626 included before <wchar.h>. */
13627 #include <stddef.h>
13628 #include <stdio.h>
13629 #include <time.h>
13630 #include <wchar.h>
13631 int main ()
13632 {
13633 /* This fails on Solaris 8:
13634 mbrtowc returns 2, and sets wc to 0x00F0.
13635 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
13636 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13637 {
13638 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
13639 mbstate_t state;
13640 wchar_t wc;
13641
13642 memset (&state, '\0', sizeof (mbstate_t));
13643 if (mbrtowc (&wc, input + 3, 6, &state) != 4
13644 && mbtowc (&wc, input + 3, 6) == 4)
13645 return 1;
13646 }
13647 return 0;
13648 }
13649 _ACEOF
13650 if ac_fn_c_try_run "$LINENO"; then :
13651 gl_cv_func_mbrtowc_sanitycheck=yes
13652 else
13653 gl_cv_func_mbrtowc_sanitycheck=no
13654 fi
13655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13656 conftest.$ac_objext conftest.beam conftest.$ac_ext
13657 fi
13658
13659 fi
13660
13661 fi
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
13663 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
13664
13665 REPLACE_MBSTATE_T=0
13666 case "$gl_cv_func_mbrtowc_incomplete_state" in
13667 *yes) ;;
13668 *) REPLACE_MBSTATE_T=1 ;;
13669 esac
13670 case "$gl_cv_func_mbrtowc_sanitycheck" in
13671 *yes) ;;
13672 *) REPLACE_MBSTATE_T=1 ;;
13673 esac
13674 else
13675 REPLACE_MBSTATE_T=1
13676 fi
13677
13678
13679
13680 if test $ac_cv_func_mbsinit = no; then
13681 HAVE_MBSINIT=0
13682 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
13683 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13684 <wchar.h>.
13685 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13686 included before <wchar.h>. */
13687 #include <stddef.h>
13688 #include <stdio.h>
13689 #include <time.h>
13690 #include <wchar.h>
13691
13692 "
13693 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
13694 ac_have_decl=1
13695 else
13696 ac_have_decl=0
13697 fi
13698
13699 cat >>confdefs.h <<_ACEOF
13700 #define HAVE_DECL_MBSINIT $ac_have_decl
13701 _ACEOF
13702
13703 if test $ac_cv_have_decl_mbsinit = yes; then
13704 REPLACE_MBSINIT=1
13705 fi
13706 else
13707 if test $REPLACE_MBSTATE_T = 1; then
13708 REPLACE_MBSINIT=1
13709 else
13710 case "$host_os" in
13711 mingw*) REPLACE_MBSINIT=1 ;;
13712 esac
13713 fi
13714 fi
13715
13716 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
13717
13718
13719
13720
13721
13722
13723
13724
13725 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
13726
13727
13728 :
13729
13730 fi
13731
13732
13733
13734
13735
13736 GNULIB_MBSINIT=1
13737
13738
13739
13740
13741
13742 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753
13754
13755
13756 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
13757
13758
13759
13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
13761 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
13762 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
13763 $as_echo_n "(cached) " >&6
13764 else
13765
13766 case "$host_os" in
13767 # Guess no on AIX and OSF/1.
13768 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
13769 # Guess yes otherwise.
13770 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
13771 esac
13772 if test $LOCALE_JA != none; then
13773 if test "$cross_compiling" = yes; then :
13774 :
13775 else
13776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13777 /* end confdefs.h. */
13778
13779 #include <locale.h>
13780 #include <string.h>
13781 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13782 <wchar.h>.
13783 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13784 included before <wchar.h>. */
13785 #include <stddef.h>
13786 #include <stdio.h>
13787 #include <time.h>
13788 #include <wchar.h>
13789 int main ()
13790 {
13791 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13792 {
13793 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
13794 mbstate_t state;
13795 wchar_t wc;
13796
13797 memset (&state, '\0', sizeof (mbstate_t));
13798 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
13799 if (mbsinit (&state))
13800 return 1;
13801 }
13802 return 0;
13803 }
13804 _ACEOF
13805 if ac_fn_c_try_run "$LINENO"; then :
13806 gl_cv_func_mbrtowc_incomplete_state=yes
13807 else
13808 gl_cv_func_mbrtowc_incomplete_state=no
13809 fi
13810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13811 conftest.$ac_objext conftest.beam conftest.$ac_ext
13812 fi
13813
13814 fi
13815
13816 fi
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
13818 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
13819
13820
13821
13822
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
13824 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
13825 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
13826 $as_echo_n "(cached) " >&6
13827 else
13828
13829 case "$host_os" in
13830 # Guess no on Solaris 8.
13831 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
13832 # Guess yes otherwise.
13833 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
13834 esac
13835 if test $LOCALE_ZH_CN != none; then
13836 if test "$cross_compiling" = yes; then :
13837 :
13838 else
13839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13840 /* end confdefs.h. */
13841
13842 #include <locale.h>
13843 #include <stdlib.h>
13844 #include <string.h>
13845 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13846 <wchar.h>.
13847 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13848 included before <wchar.h>. */
13849 #include <stddef.h>
13850 #include <stdio.h>
13851 #include <time.h>
13852 #include <wchar.h>
13853 int main ()
13854 {
13855 /* This fails on Solaris 8:
13856 mbrtowc returns 2, and sets wc to 0x00F0.
13857 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
13858 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13859 {
13860 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
13861 mbstate_t state;
13862 wchar_t wc;
13863
13864 memset (&state, '\0', sizeof (mbstate_t));
13865 if (mbrtowc (&wc, input + 3, 6, &state) != 4
13866 && mbtowc (&wc, input + 3, 6) == 4)
13867 return 1;
13868 }
13869 return 0;
13870 }
13871 _ACEOF
13872 if ac_fn_c_try_run "$LINENO"; then :
13873 gl_cv_func_mbrtowc_sanitycheck=yes
13874 else
13875 gl_cv_func_mbrtowc_sanitycheck=no
13876 fi
13877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13878 conftest.$ac_objext conftest.beam conftest.$ac_ext
13879 fi
13880
13881 fi
13882
13883 fi
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
13885 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
13886
13887 REPLACE_MBSTATE_T=0
13888 case "$gl_cv_func_mbrtowc_incomplete_state" in
13889 *yes) ;;
13890 *) REPLACE_MBSTATE_T=1 ;;
13891 esac
13892 case "$gl_cv_func_mbrtowc_sanitycheck" in
13893 *yes) ;;
13894 *) REPLACE_MBSTATE_T=1 ;;
13895 esac
13896 else
13897 REPLACE_MBSTATE_T=1
13898 fi
13899
13900
13901
13902 if test $ac_cv_func_mbsrtowcs = no; then
13903 HAVE_MBSRTOWCS=0
13904 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
13905 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13906 <wchar.h>.
13907 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13908 included before <wchar.h>. */
13909 #include <stddef.h>
13910 #include <stdio.h>
13911 #include <time.h>
13912 #include <wchar.h>
13913
13914 "
13915 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
13916 ac_have_decl=1
13917 else
13918 ac_have_decl=0
13919 fi
13920
13921 cat >>confdefs.h <<_ACEOF
13922 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
13923 _ACEOF
13924
13925 if test $ac_cv_have_decl_mbsrtowcs = yes; then
13926 REPLACE_MBSRTOWCS=1
13927 fi
13928 else
13929 if test $REPLACE_MBSTATE_T = 1; then
13930 REPLACE_MBSRTOWCS=1
13931 else
13932
13933
13934
13935
13936
13937
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
13939 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
13940 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
13941 $as_echo_n "(cached) " >&6
13942 else
13943
13944 case "$host_os" in
13945 # Guess no on HP-UX, Solaris, mingw.
13946 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
13947 # Guess yes otherwise.
13948 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
13949 esac
13950 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
13951 if test "$cross_compiling" = yes; then :
13952 :
13953 else
13954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13955 /* end confdefs.h. */
13956
13957 #include <locale.h>
13958 #include <string.h>
13959 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13960 <wchar.h>.
13961 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13962 included before <wchar.h>. */
13963 #include <stddef.h>
13964 #include <stdio.h>
13965 #include <time.h>
13966 #include <wchar.h>
13967 int main ()
13968 {
13969 int result = 0;
13970 /* Test whether the function supports a NULL destination argument.
13971 This fails on native Windows. */
13972 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
13973 {
13974 const char input[] = "\337er";
13975 const char *src = input;
13976 mbstate_t state;
13977
13978 memset (&state, '\0', sizeof (mbstate_t));
13979 if (mbsrtowcs (NULL, &src, 1, &state) != 3
13980 || src != input)
13981 result |= 1;
13982 }
13983 /* Test whether the function works when started with a conversion state
13984 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
13985 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
13986 {
13987 const char input[] = "B\303\274\303\237er";
13988 mbstate_t state;
13989
13990 memset (&state, '\0', sizeof (mbstate_t));
13991 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
13992 if (!mbsinit (&state))
13993 {
13994 const char *src = input + 2;
13995 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
13996 result |= 2;
13997 }
13998 }
13999 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14000 {
14001 const char input[] = "<\306\374\313\334\270\354>";
14002 mbstate_t state;
14003
14004 memset (&state, '\0', sizeof (mbstate_t));
14005 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
14006 if (!mbsinit (&state))
14007 {
14008 const char *src = input + 4;
14009 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
14010 result |= 4;
14011 }
14012 }
14013 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
14014 {
14015 const char input[] = "B\250\271\201\060\211\070er";
14016 mbstate_t state;
14017
14018 memset (&state, '\0', sizeof (mbstate_t));
14019 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
14020 if (!mbsinit (&state))
14021 {
14022 const char *src = input + 2;
14023 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
14024 result |= 8;
14025 }
14026 }
14027 return result;
14028 }
14029 _ACEOF
14030 if ac_fn_c_try_run "$LINENO"; then :
14031 gl_cv_func_mbsrtowcs_works=yes
14032 else
14033 gl_cv_func_mbsrtowcs_works=no
14034 fi
14035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14036 conftest.$ac_objext conftest.beam conftest.$ac_ext
14037 fi
14038
14039 fi
14040
14041 fi
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
14043 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
14044
14045 case "$gl_cv_func_mbsrtowcs_works" in
14046 *yes) ;;
14047 *) REPLACE_MBSRTOWCS=1 ;;
14048 esac
14049 fi
14050 fi
14051
14052 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
14053
14054
14055
14056
14057
14058
14059
14060
14061 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
14072
14073
14074 :
14075
14076 fi
14077
14078
14079
14080
14081
14082 GNULIB_MBSRTOWCS=1
14083
14084
14085
14086
14087
14088 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
14089
14090
14091
14092
14093 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
14094
14095
14096
14097
14098
14099
14100
14101
14102 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
14103
14104
14105 for ac_header in bp-sym.h
14106 do :
14107 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
14108 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
14109 cat >>confdefs.h <<_ACEOF
14110 #define HAVE_BP_SYM_H 1
14111 _ACEOF
14112
14113 fi
14114
14115 done
14116
14117
14118 fi
14119
14120
14121
14122
14123
14124 GNULIB_MEMCHR=1
14125
14126
14127
14128
14129
14130 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
14131
14132
14133
14134
14135
14136 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
14138 $as_echo_n "checking whether memmem works in linear time... " >&6; }
14139 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
14140 $as_echo_n "(cached) " >&6
14141 else
14142 if test "$cross_compiling" = yes; then :
14143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14144 /* end confdefs.h. */
14145
14146 #include <features.h>
14147 #ifdef __GNU_LIBRARY__
14148 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
14149 && !defined __UCLIBC__
14150 Lucky user
14151 #endif
14152 #endif
14153 #ifdef __CYGWIN__
14154 #include <cygwin/version.h>
14155 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
14156 Lucky user
14157 #endif
14158 #endif
14159
14160 _ACEOF
14161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14162 $EGREP "Lucky user" >/dev/null 2>&1; then :
14163 gl_cv_func_memmem_works_fast="guessing yes"
14164 else
14165 gl_cv_func_memmem_works_fast="guessing no"
14166 fi
14167 rm -f conftest*
14168
14169
14170 else
14171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14172 /* end confdefs.h. */
14173
14174 #include <signal.h> /* for signal */
14175 #include <string.h> /* for memmem */
14176 #include <stdlib.h> /* for malloc */
14177 #include <unistd.h> /* for alarm */
14178 static void quit (int sig) { exit (sig + 128); }
14179
14180 int
14181 main ()
14182 {
14183
14184 int result = 0;
14185 size_t m = 1000000;
14186 char *haystack = (char *) malloc (2 * m + 1);
14187 char *needle = (char *) malloc (m + 1);
14188 /* Failure to compile this test due to missing alarm is okay,
14189 since all such platforms (mingw) also lack memmem. */
14190 signal (SIGALRM, quit);
14191 alarm (5);
14192 /* Check for quadratic performance. */
14193 if (haystack && needle)
14194 {
14195 memset (haystack, 'A', 2 * m);
14196 haystack[2 * m] = 'B';
14197 memset (needle, 'A', m);
14198 needle[m] = 'B';
14199 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
14200 result |= 1;
14201 }
14202 return result;
14203
14204 ;
14205 return 0;
14206 }
14207 _ACEOF
14208 if ac_fn_c_try_run "$LINENO"; then :
14209 gl_cv_func_memmem_works_fast=yes
14210 else
14211 gl_cv_func_memmem_works_fast=no
14212 fi
14213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14214 conftest.$ac_objext conftest.beam conftest.$ac_ext
14215 fi
14216
14217
14218 fi
14219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
14220 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
14221 case "$gl_cv_func_memmem_works_fast" in
14222 *yes) ;;
14223 *)
14224 REPLACE_MEMMEM=1
14225 ;;
14226 esac
14227 fi
14228
14229 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
14230
14231
14232
14233
14234
14235
14236
14237
14238 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
14239
14240 fi
14241
14242
14243
14244
14245 for ac_func in memmem
14246 do :
14247 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
14248 if test "x$ac_cv_func_memmem" = x""yes; then :
14249 cat >>confdefs.h <<_ACEOF
14250 #define HAVE_MEMMEM 1
14251 _ACEOF
14252
14253 fi
14254 done
14255
14256 if test $ac_cv_func_memmem = yes; then
14257 HAVE_MEMMEM=1
14258 else
14259 HAVE_MEMMEM=0
14260 fi
14261
14262 if test $ac_cv_have_decl_memmem = no; then
14263 HAVE_DECL_MEMMEM=0
14264 else
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
14266 $as_echo_n "checking whether memmem works... " >&6; }
14267 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
14268 $as_echo_n "(cached) " >&6
14269 else
14270 if test "$cross_compiling" = yes; then :
14271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14272 /* end confdefs.h. */
14273
14274 #ifdef __GNU_LIBRARY__
14275 #include <features.h>
14276 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
14277 || __GLIBC_MINOR__ > 12)) \
14278 || (__GLIBC__ > 2)) \
14279 || defined __UCLIBC__
14280 Lucky user
14281 #endif
14282 #elif defined __CYGWIN__
14283 #include <cygwin/version.h>
14284 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
14285 Lucky user
14286 #endif
14287 #else
14288 Lucky user
14289 #endif
14290
14291 _ACEOF
14292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14293 $EGREP "Lucky user" >/dev/null 2>&1; then :
14294 gl_cv_func_memmem_works_always="guessing yes"
14295 else
14296 gl_cv_func_memmem_works_always="guessing no"
14297 fi
14298 rm -f conftest*
14299
14300
14301 else
14302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14303 /* end confdefs.h. */
14304
14305 #include <string.h> /* for memmem */
14306 #define P "_EF_BF_BD"
14307 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
14308 #define NEEDLE P P P P P
14309
14310 int
14311 main ()
14312 {
14313
14314 int result = 0;
14315 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
14316 result |= 1;
14317 /* Check for empty needle behavior. */
14318 {
14319 const char *haystack = "AAA";
14320 if (memmem (haystack, 3, NULL, 0) != haystack)
14321 result |= 2;
14322 }
14323 return result;
14324
14325 ;
14326 return 0;
14327 }
14328 _ACEOF
14329 if ac_fn_c_try_run "$LINENO"; then :
14330 gl_cv_func_memmem_works_always=yes
14331 else
14332 gl_cv_func_memmem_works_always=no
14333 fi
14334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14335 conftest.$ac_objext conftest.beam conftest.$ac_ext
14336 fi
14337
14338
14339 fi
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
14341 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
14342 case "$gl_cv_func_memmem_works_always" in
14343 *yes) ;;
14344 *)
14345 REPLACE_MEMMEM=1
14346 ;;
14347 esac
14348 fi
14349 :
14350
14351 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
14352
14353
14354
14355
14356
14357
14358
14359
14360 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
14361
14362 fi
14363
14364
14365
14366
14367
14368 GNULIB_MEMMEM=1
14369
14370
14371
14372
14373
14374 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
14375
14376
14377
14378
14379
14380
14381
14382
14383
14384
14385 if test $ac_cv_func_readlink = no; then
14386 HAVE_READLINK=0
14387 else
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
14389 $as_echo_n "checking whether readlink signature is correct... " >&6; }
14390 if test "${gl_cv_decl_readlink_works+set}" = set; then :
14391 $as_echo_n "(cached) " >&6
14392 else
14393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14394 /* end confdefs.h. */
14395 #include <unistd.h>
14396 /* Cause compilation failure if original declaration has wrong type. */
14397 ssize_t readlink (const char *, char *, size_t);
14398 int
14399 main ()
14400 {
14401
14402 ;
14403 return 0;
14404 }
14405 _ACEOF
14406 if ac_fn_c_try_compile "$LINENO"; then :
14407 gl_cv_decl_readlink_works=yes
14408 else
14409 gl_cv_decl_readlink_works=no
14410 fi
14411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14412 fi
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
14414 $as_echo "$gl_cv_decl_readlink_works" >&6; }
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
14416 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
14417 if test "${gl_cv_func_readlink_works+set}" = set; then :
14418 $as_echo_n "(cached) " >&6
14419 else
14420 # We have readlink, so assume ln -s works.
14421 ln -s conftest.no-such conftest.link
14422 ln -s conftest.link conftest.lnk2
14423 if test "$cross_compiling" = yes; then :
14424 case "$host_os" in
14425 # Guess yes on glibc systems.
14426 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
14427 # If we don't know, assume the worst.
14428 *) gl_cv_func_readlink_works="guessing no" ;;
14429 esac
14430
14431 else
14432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14433 /* end confdefs.h. */
14434 #include <unistd.h>
14435
14436 int
14437 main ()
14438 {
14439 char buf[20];
14440 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
14441 ;
14442 return 0;
14443 }
14444 _ACEOF
14445 if ac_fn_c_try_run "$LINENO"; then :
14446 gl_cv_func_readlink_works=yes
14447 else
14448 gl_cv_func_readlink_works=no
14449 fi
14450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14451 conftest.$ac_objext conftest.beam conftest.$ac_ext
14452 fi
14453
14454 rm -f conftest.link conftest.lnk2
14455 fi
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
14457 $as_echo "$gl_cv_func_readlink_works" >&6; }
14458 case "$gl_cv_func_readlink_works" in
14459 *yes)
14460 if test "$gl_cv_decl_readlink_works" != yes; then
14461 REPLACE_READLINK=1
14462 fi
14463 ;;
14464 *)
14465
14466 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
14467
14468 REPLACE_READLINK=1
14469 ;;
14470 esac
14471 fi
14472
14473 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
14474
14475
14476
14477
14478
14479
14480
14481
14482 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
14483
14484
14485 :
14486
14487 fi
14488
14489
14490
14491
14492
14493 GNULIB_READLINK=1
14494
14495
14496
14497
14498
14499 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
14500
14501
14502
14503
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
14505 $as_echo_n "checking for ssize_t... " >&6; }
14506 if test "${gt_cv_ssize_t+set}" = set; then :
14507 $as_echo_n "(cached) " >&6
14508 else
14509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14510 /* end confdefs.h. */
14511 #include <sys/types.h>
14512 int
14513 main ()
14514 {
14515 int x = sizeof (ssize_t *) + sizeof (ssize_t);
14516 return !x;
14517 ;
14518 return 0;
14519 }
14520 _ACEOF
14521 if ac_fn_c_try_compile "$LINENO"; then :
14522 gt_cv_ssize_t=yes
14523 else
14524 gt_cv_ssize_t=no
14525 fi
14526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14527 fi
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
14529 $as_echo "$gt_cv_ssize_t" >&6; }
14530 if test $gt_cv_ssize_t = no; then
14531
14532 $as_echo "#define ssize_t int" >>confdefs.h
14533
14534 fi
14535
14536
14537
14538
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
14540 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
14541 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
14542 $as_echo_n "(cached) " >&6
14543 else
14544 if test "$cross_compiling" = yes; then :
14545 case $host_os in
14546 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
14547 *) gl_cv_func_stat_dir_slash="guessing yes";;
14548 esac
14549 else
14550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14551 /* end confdefs.h. */
14552 #include <sys/stat.h>
14553
14554 int
14555 main ()
14556 {
14557 struct stat st; return stat (".", &st) != stat ("./", &st);
14558 ;
14559 return 0;
14560 }
14561 _ACEOF
14562 if ac_fn_c_try_run "$LINENO"; then :
14563 gl_cv_func_stat_dir_slash=yes
14564 else
14565 gl_cv_func_stat_dir_slash=no
14566 fi
14567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14568 conftest.$ac_objext conftest.beam conftest.$ac_ext
14569 fi
14570
14571 fi
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
14573 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
14575 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
14576 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
14577 $as_echo_n "(cached) " >&6
14578 else
14579 touch conftest.tmp
14580 # Assume that if we have lstat, we can also check symlinks.
14581 if test $ac_cv_func_lstat = yes; then
14582 ln -s conftest.tmp conftest.lnk
14583 fi
14584 if test "$cross_compiling" = yes; then :
14585 case "$host_os" in
14586 # Guess yes on glibc systems.
14587 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
14588 # If we don't know, assume the worst.
14589 *) gl_cv_func_stat_file_slash="guessing no" ;;
14590 esac
14591
14592 else
14593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14594 /* end confdefs.h. */
14595 #include <sys/stat.h>
14596
14597 int
14598 main ()
14599 {
14600 int result = 0;
14601 struct stat st;
14602 if (!stat ("conftest.tmp/", &st))
14603 result |= 1;
14604 #if HAVE_LSTAT
14605 if (!stat ("conftest.lnk/", &st))
14606 result |= 2;
14607 #endif
14608 return result;
14609
14610 ;
14611 return 0;
14612 }
14613 _ACEOF
14614 if ac_fn_c_try_run "$LINENO"; then :
14615 gl_cv_func_stat_file_slash=yes
14616 else
14617 gl_cv_func_stat_file_slash=no
14618 fi
14619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14620 conftest.$ac_objext conftest.beam conftest.$ac_ext
14621 fi
14622
14623 rm -f conftest.tmp conftest.lnk
14624 fi
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
14626 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
14627 case $gl_cv_func_stat_dir_slash in
14628 *no) REPLACE_STAT=1
14629
14630 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
14631 ;;
14632 esac
14633 case $gl_cv_func_stat_file_slash in
14634 *no) REPLACE_STAT=1
14635
14636 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
14637 ;;
14638 esac
14639
14640 if test $REPLACE_STAT = 1; then
14641
14642
14643
14644
14645
14646
14647
14648
14649 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
14650
14651 :
14652 fi
14653
14654
14655
14656
14657
14658 GNULIB_STAT=1
14659
14660
14661
14662
14663
14664 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
14665
14666
14667
14668
14669
14670
14671 # Define two additional variables used in the Makefile substitution.
14672
14673 if test "$ac_cv_header_stdbool_h" = yes; then
14674 STDBOOL_H=''
14675 else
14676 STDBOOL_H='stdbool.h'
14677 fi
14678
14679 if test -n "$STDBOOL_H"; then
14680 GL_GENERATE_STDBOOL_H_TRUE=
14681 GL_GENERATE_STDBOOL_H_FALSE='#'
14682 else
14683 GL_GENERATE_STDBOOL_H_TRUE='#'
14684 GL_GENERATE_STDBOOL_H_FALSE=
14685 fi
14686
14687
14688 if test "$ac_cv_type__Bool" = yes; then
14689 HAVE__BOOL=1
14690 else
14691 HAVE__BOOL=0
14692 fi
14693
14694
14695
14696
14697
14698 STDDEF_H=
14699 if test $gt_cv_c_wchar_t = no; then
14700 HAVE_WCHAR_T=0
14701 STDDEF_H=stddef.h
14702 fi
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
14704 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
14705 if test "${gl_cv_decl_null_works+set}" = set; then :
14706 $as_echo_n "(cached) " >&6
14707 else
14708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14709 /* end confdefs.h. */
14710 #include <stddef.h>
14711 int test[2 * (sizeof NULL == sizeof (void *)) -1];
14712
14713 int
14714 main ()
14715 {
14716
14717 ;
14718 return 0;
14719 }
14720 _ACEOF
14721 if ac_fn_c_try_compile "$LINENO"; then :
14722 gl_cv_decl_null_works=yes
14723 else
14724 gl_cv_decl_null_works=no
14725 fi
14726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14727 fi
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
14729 $as_echo "$gl_cv_decl_null_works" >&6; }
14730 if test $gl_cv_decl_null_works = no; then
14731 REPLACE_NULL=1
14732 STDDEF_H=stddef.h
14733 fi
14734
14735 if test -n "$STDDEF_H"; then
14736 GL_GENERATE_STDDEF_H_TRUE=
14737 GL_GENERATE_STDDEF_H_FALSE='#'
14738 else
14739 GL_GENERATE_STDDEF_H_TRUE='#'
14740 GL_GENERATE_STDDEF_H_FALSE=
14741 fi
14742
14743 if test -n "$STDDEF_H"; then
14744
14745
14746
14747
14748
14749
14750
14751
14752 if test $gl_cv_have_include_next = yes; then
14753 gl_cv_next_stddef_h='<'stddef.h'>'
14754 else
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
14756 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
14757 if test "${gl_cv_next_stddef_h+set}" = set; then :
14758 $as_echo_n "(cached) " >&6
14759 else
14760
14761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14762 /* end confdefs.h. */
14763 #include <stddef.h>
14764
14765 _ACEOF
14766 case "$host_os" in
14767 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14768 *) gl_absname_cpp="$ac_cpp" ;;
14769 esac
14770
14771 case "$host_os" in
14772 mingw*)
14773 gl_dirsep_regex='[/\\]'
14774 ;;
14775 *)
14776 gl_dirsep_regex='\/'
14777 ;;
14778 esac
14779 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14780
14781 gl_header_literal_regex=`echo 'stddef.h' \
14782 | sed -e "$gl_make_literal_regex_sed"`
14783 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14784 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14785 s|^/[^/]|//&|
14786 p
14787 q
14788 }'
14789 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14790 sed -n "$gl_absolute_header_sed"`'"'
14791
14792
14793 fi
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
14795 $as_echo "$gl_cv_next_stddef_h" >&6; }
14796 fi
14797 NEXT_STDDEF_H=$gl_cv_next_stddef_h
14798
14799 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14800 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14801 gl_next_as_first_directive='<'stddef.h'>'
14802 else
14803 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14804 gl_next_as_first_directive=$gl_cv_next_stddef_h
14805 fi
14806 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
14807
14808
14809
14810
14811 fi
14812
14813
14814
14815
14816
14817
14818
14819 if test $REPLACE_STRSTR = 0; then
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
14821 $as_echo_n "checking whether strstr works in linear time... " >&6; }
14822 if test "${gl_cv_func_strstr_linear+set}" = set; then :
14823 $as_echo_n "(cached) " >&6
14824 else
14825 if test "$cross_compiling" = yes; then :
14826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14827 /* end confdefs.h. */
14828
14829 #include <features.h>
14830 #ifdef __GNU_LIBRARY__
14831 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
14832 && !(defined __i386__ || defined __x86_64__) \
14833 && !defined __UCLIBC__
14834 Lucky user
14835 #endif
14836 #endif
14837 #ifdef __CYGWIN__
14838 #include <cygwin/version.h>
14839 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
14840 Lucky user
14841 #endif
14842 #endif
14843
14844 _ACEOF
14845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14846 $EGREP "Lucky user" >/dev/null 2>&1; then :
14847 gl_cv_func_strstr_linear="guessing yes"
14848 else
14849 gl_cv_func_strstr_linear="guessing no"
14850 fi
14851 rm -f conftest*
14852
14853
14854 else
14855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14856 /* end confdefs.h. */
14857
14858 #include <signal.h> /* for signal */
14859 #include <string.h> /* for strstr */
14860 #include <stdlib.h> /* for malloc */
14861 #include <unistd.h> /* for alarm */
14862 static void quit (int sig) { exit (sig + 128); }
14863
14864 int
14865 main ()
14866 {
14867
14868 int result = 0;
14869 size_t m = 1000000;
14870 char *haystack = (char *) malloc (2 * m + 2);
14871 char *needle = (char *) malloc (m + 2);
14872 /* Failure to compile this test due to missing alarm is okay,
14873 since all such platforms (mingw) also have quadratic strstr. */
14874 signal (SIGALRM, quit);
14875 alarm (5);
14876 /* Check for quadratic performance. */
14877 if (haystack && needle)
14878 {
14879 memset (haystack, 'A', 2 * m);
14880 haystack[2 * m] = 'B';
14881 haystack[2 * m + 1] = 0;
14882 memset (needle, 'A', m);
14883 needle[m] = 'B';
14884 needle[m + 1] = 0;
14885 if (!strstr (haystack, needle))
14886 result |= 1;
14887 }
14888 return result;
14889
14890 ;
14891 return 0;
14892 }
14893 _ACEOF
14894 if ac_fn_c_try_run "$LINENO"; then :
14895 gl_cv_func_strstr_linear=yes
14896 else
14897 gl_cv_func_strstr_linear=no
14898 fi
14899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14900 conftest.$ac_objext conftest.beam conftest.$ac_ext
14901 fi
14902
14903
14904 fi
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
14906 $as_echo "$gl_cv_func_strstr_linear" >&6; }
14907 case "$gl_cv_func_strstr_linear" in
14908 *yes) ;;
14909 *)
14910 REPLACE_STRSTR=1
14911 ;;
14912 esac
14913 fi
14914
14915 if test $REPLACE_STRSTR = 1; then
14916
14917
14918
14919
14920
14921
14922
14923
14924 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
14925
14926 fi
14927
14928
14929
14930 if test "$gl_cv_func_memchr_works" != yes; then
14931 REPLACE_STRSTR=1
14932 else
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
14934 $as_echo_n "checking whether strstr works... " >&6; }
14935 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
14936 $as_echo_n "(cached) " >&6
14937 else
14938 if test "$cross_compiling" = yes; then :
14939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14940 /* end confdefs.h. */
14941
14942 #ifdef __GNU_LIBRARY__
14943 #include <features.h>
14944 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
14945 || defined __UCLIBC__
14946 Lucky user
14947 #endif
14948 #elif defined __CYGWIN__
14949 #include <cygwin/version.h>
14950 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
14951 Lucky user
14952 #endif
14953 #else
14954 Lucky user
14955 #endif
14956
14957 _ACEOF
14958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14959 $EGREP "Lucky user" >/dev/null 2>&1; then :
14960 gl_cv_func_strstr_works_always="guessing yes"
14961 else
14962 gl_cv_func_strstr_works_always="guessing no"
14963 fi
14964 rm -f conftest*
14965
14966
14967 else
14968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14969 /* end confdefs.h. */
14970
14971 #include <string.h> /* for strstr */
14972 #define P "_EF_BF_BD"
14973 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
14974 #define NEEDLE P P P P P
14975
14976 int
14977 main ()
14978 {
14979 return !!strstr (HAYSTACK, NEEDLE);
14980
14981 ;
14982 return 0;
14983 }
14984 _ACEOF
14985 if ac_fn_c_try_run "$LINENO"; then :
14986 gl_cv_func_strstr_works_always=yes
14987 else
14988 gl_cv_func_strstr_works_always=no
14989 fi
14990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14991 conftest.$ac_objext conftest.beam conftest.$ac_ext
14992 fi
14993
14994
14995 fi
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
14997 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
14998 case "$gl_cv_func_strstr_works_always" in
14999 *yes) ;;
15000 *)
15001 REPLACE_STRSTR=1
15002 ;;
15003 esac
15004 fi
15005
15006 if test $REPLACE_STRSTR = 1; then
15007
15008
15009
15010
15011
15012
15013
15014
15015 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
15016
15017 fi
15018
15019
15020
15021
15022
15023 GNULIB_STRSTR=1
15024
15025
15026
15027
15028
15029 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047 if test $gl_cv_have_include_next = yes; then
15048 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
15049 else
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
15051 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
15052 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
15053 $as_echo_n "(cached) " >&6
15054 else
15055
15056 if test $ac_cv_header_sys_stat_h = yes; then
15057
15058
15059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15060 /* end confdefs.h. */
15061 #include <sys/stat.h>
15062
15063 _ACEOF
15064 case "$host_os" in
15065 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15066 *) gl_absname_cpp="$ac_cpp" ;;
15067 esac
15068
15069 case "$host_os" in
15070 mingw*)
15071 gl_dirsep_regex='[/\\]'
15072 ;;
15073 *)
15074 gl_dirsep_regex='\/'
15075 ;;
15076 esac
15077 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15078
15079 gl_header_literal_regex=`echo 'sys/stat.h' \
15080 | sed -e "$gl_make_literal_regex_sed"`
15081 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15082 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15083 s|^/[^/]|//&|
15084 p
15085 q
15086 }'
15087 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15088 sed -n "$gl_absolute_header_sed"`'"'
15089 else
15090 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
15091 fi
15092
15093
15094 fi
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
15096 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
15097 fi
15098 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
15099
15100 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15101 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15102 gl_next_as_first_directive='<'sys/stat.h'>'
15103 else
15104 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15105 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
15106 fi
15107 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
15120
15121 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
15122
15123 fi
15124
15125 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
15126 #include <sys/stat.h>
15127 "
15128 if test "x$ac_cv_type_nlink_t" = x""yes; then :
15129
15130 else
15131
15132 $as_echo "#define nlink_t int" >>confdefs.h
15133
15134 fi
15135
15136
15137
15138 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
15139 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15141 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15142 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
15143 $as_echo_n "(cached) " >&6
15144 else
15145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15146 /* end confdefs.h. */
15147 #include <sys/stat.h>
15148
15149 int
15150 main ()
15151 {
15152 #undef $gl_func
15153 (void) $gl_func;
15154 ;
15155 return 0;
15156 }
15157 _ACEOF
15158 if ac_fn_c_try_compile "$LINENO"; then :
15159 eval "$as_gl_Symbol=yes"
15160 else
15161 eval "$as_gl_Symbol=no"
15162 fi
15163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15164 fi
15165 eval ac_res=\$$as_gl_Symbol
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15167 $as_echo "$ac_res" >&6; }
15168 eval as_val=\$$as_gl_Symbol
15169 if test "x$as_val" = x""yes; then :
15170 cat >>confdefs.h <<_ACEOF
15171 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15172 _ACEOF
15173
15174 eval ac_cv_have_decl_$gl_func=yes
15175 fi
15176 done
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191 if test $gl_cv_have_include_next = yes; then
15192 gl_cv_next_sys_types_h='<'sys/types.h'>'
15193 else
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
15195 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
15196 if test "${gl_cv_next_sys_types_h+set}" = set; then :
15197 $as_echo_n "(cached) " >&6
15198 else
15199
15200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15201 /* end confdefs.h. */
15202 #include <sys/types.h>
15203
15204 _ACEOF
15205 case "$host_os" in
15206 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15207 *) gl_absname_cpp="$ac_cpp" ;;
15208 esac
15209
15210 case "$host_os" in
15211 mingw*)
15212 gl_dirsep_regex='[/\\]'
15213 ;;
15214 *)
15215 gl_dirsep_regex='\/'
15216 ;;
15217 esac
15218 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15219
15220 gl_header_literal_regex=`echo 'sys/types.h' \
15221 | sed -e "$gl_make_literal_regex_sed"`
15222 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15223 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15224 s|^/[^/]|//&|
15225 p
15226 q
15227 }'
15228 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15229 sed -n "$gl_absolute_header_sed"`'"'
15230
15231
15232 fi
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
15234 $as_echo "$gl_cv_next_sys_types_h" >&6; }
15235 fi
15236 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
15237
15238 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15239 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15240 gl_next_as_first_directive='<'sys/types.h'>'
15241 else
15242 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15243 gl_next_as_first_directive=$gl_cv_next_sys_types_h
15244 fi
15245 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273 if test $gl_cv_have_include_next = yes; then
15274 gl_cv_next_unistd_h='<'unistd.h'>'
15275 else
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15277 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
15278 if test "${gl_cv_next_unistd_h+set}" = set; then :
15279 $as_echo_n "(cached) " >&6
15280 else
15281
15282 if test $ac_cv_header_unistd_h = yes; then
15283
15284
15285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15286 /* end confdefs.h. */
15287 #include <unistd.h>
15288
15289 _ACEOF
15290 case "$host_os" in
15291 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15292 *) gl_absname_cpp="$ac_cpp" ;;
15293 esac
15294
15295 case "$host_os" in
15296 mingw*)
15297 gl_dirsep_regex='[/\\]'
15298 ;;
15299 *)
15300 gl_dirsep_regex='\/'
15301 ;;
15302 esac
15303 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15304
15305 gl_header_literal_regex=`echo 'unistd.h' \
15306 | sed -e "$gl_make_literal_regex_sed"`
15307 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15308 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15309 s|^/[^/]|//&|
15310 p
15311 q
15312 }'
15313 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15314 sed -n "$gl_absolute_header_sed"`'"'
15315 else
15316 gl_cv_next_unistd_h='<'unistd.h'>'
15317 fi
15318
15319
15320 fi
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15322 $as_echo "$gl_cv_next_unistd_h" >&6; }
15323 fi
15324 NEXT_UNISTD_H=$gl_cv_next_unistd_h
15325
15326 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15327 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15328 gl_next_as_first_directive='<'unistd.h'>'
15329 else
15330 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15331 gl_next_as_first_directive=$gl_cv_next_unistd_h
15332 fi
15333 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
15334
15335
15336
15337
15338 if test $ac_cv_header_unistd_h = yes; then
15339 HAVE_UNISTD_H=1
15340 else
15341 HAVE_UNISTD_H=0
15342 fi
15343
15344
15345
15346
15347
15348
15349
15350 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
15351 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15353 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15354 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
15355 $as_echo_n "(cached) " >&6
15356 else
15357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15358 /* end confdefs.h. */
15359
15360 #if HAVE_UNISTD_H
15361 # include <unistd.h>
15362 #endif
15363 /* Some systems declare various items in the wrong headers. */
15364 #if !(defined __GLIBC__ && !defined __UCLIBC__)
15365 # include <fcntl.h>
15366 # include <stdio.h>
15367 # include <stdlib.h>
15368 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
15369 # include <io.h>
15370 # endif
15371 #endif
15372
15373 int
15374 main ()
15375 {
15376 #undef $gl_func
15377 (void) $gl_func;
15378 ;
15379 return 0;
15380 }
15381 _ACEOF
15382 if ac_fn_c_try_compile "$LINENO"; then :
15383 eval "$as_gl_Symbol=yes"
15384 else
15385 eval "$as_gl_Symbol=no"
15386 fi
15387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15388 fi
15389 eval ac_res=\$$as_gl_Symbol
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15391 $as_echo "$ac_res" >&6; }
15392 eval as_val=\$$as_gl_Symbol
15393 if test "x$as_val" = x""yes; then :
15394 cat >>confdefs.h <<_ACEOF
15395 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15396 _ACEOF
15397
15398 eval ac_cv_have_decl_$gl_func=yes
15399 fi
15400 done
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415 if test $gl_cv_have_include_next = yes; then
15416 gl_cv_next_wchar_h='<'wchar.h'>'
15417 else
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
15419 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
15420 if test "${gl_cv_next_wchar_h+set}" = set; then :
15421 $as_echo_n "(cached) " >&6
15422 else
15423
15424 if test $ac_cv_header_wchar_h = yes; then
15425
15426
15427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15428 /* end confdefs.h. */
15429 #include <wchar.h>
15430
15431 _ACEOF
15432 case "$host_os" in
15433 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15434 *) gl_absname_cpp="$ac_cpp" ;;
15435 esac
15436
15437 case "$host_os" in
15438 mingw*)
15439 gl_dirsep_regex='[/\\]'
15440 ;;
15441 *)
15442 gl_dirsep_regex='\/'
15443 ;;
15444 esac
15445 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15446
15447 gl_header_literal_regex=`echo 'wchar.h' \
15448 | sed -e "$gl_make_literal_regex_sed"`
15449 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15450 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15451 s|^/[^/]|//&|
15452 p
15453 q
15454 }'
15455 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15456 sed -n "$gl_absolute_header_sed"`'"'
15457 else
15458 gl_cv_next_wchar_h='<'wchar.h'>'
15459 fi
15460
15461
15462 fi
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
15464 $as_echo "$gl_cv_next_wchar_h" >&6; }
15465 fi
15466 NEXT_WCHAR_H=$gl_cv_next_wchar_h
15467
15468 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15469 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15470 gl_next_as_first_directive='<'wchar.h'>'
15471 else
15472 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15473 gl_next_as_first_directive=$gl_cv_next_wchar_h
15474 fi
15475 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
15476
15477
15478
15479
15480 if test $ac_cv_header_wchar_h = yes; then
15481 HAVE_WCHAR_H=1
15482 else
15483 HAVE_WCHAR_H=0
15484 fi
15485
15486
15487
15488
15489
15490 if test $gt_cv_c_wint_t = yes; then
15491 HAVE_WINT_T=1
15492 else
15493 HAVE_WINT_T=0
15494 fi
15495
15496
15497
15498 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
15499 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15501 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15502 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
15503 $as_echo_n "(cached) " >&6
15504 else
15505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15506 /* end confdefs.h. */
15507
15508 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15509 <wchar.h>.
15510 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15511 included before <wchar.h>. */
15512 #if !(defined __GLIBC__ && !defined __UCLIBC__)
15513 # include <stddef.h>
15514 # include <stdio.h>
15515 # include <time.h>
15516 #endif
15517 #include <wchar.h>
15518
15519 int
15520 main ()
15521 {
15522 #undef $gl_func
15523 (void) $gl_func;
15524 ;
15525 return 0;
15526 }
15527 _ACEOF
15528 if ac_fn_c_try_compile "$LINENO"; then :
15529 eval "$as_gl_Symbol=yes"
15530 else
15531 eval "$as_gl_Symbol=no"
15532 fi
15533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15534 fi
15535 eval ac_res=\$$as_gl_Symbol
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15537 $as_echo "$ac_res" >&6; }
15538 eval as_val=\$$as_gl_Symbol
15539 if test "x$as_val" = x""yes; then :
15540 cat >>confdefs.h <<_ACEOF
15541 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15542 _ACEOF
15543
15544 eval ac_cv_have_decl_$gl_func=yes
15545 fi
15546 done
15547
15548
15549
15550
15551
15552
15553
15554 if test $ac_cv_func_iswcntrl = yes; then
15555 HAVE_ISWCNTRL=1
15556 else
15557 HAVE_ISWCNTRL=0
15558 fi
15559
15560
15561
15562 if test $gt_cv_c_wint_t = yes; then
15563 HAVE_WINT_T=1
15564 else
15565 HAVE_WINT_T=0
15566 fi
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578 if test $gl_cv_have_include_next = yes; then
15579 gl_cv_next_wctype_h='<'wctype.h'>'
15580 else
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
15582 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
15583 if test "${gl_cv_next_wctype_h+set}" = set; then :
15584 $as_echo_n "(cached) " >&6
15585 else
15586
15587 if test $ac_cv_header_wctype_h = yes; then
15588
15589
15590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15591 /* end confdefs.h. */
15592 #include <wctype.h>
15593
15594 _ACEOF
15595 case "$host_os" in
15596 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15597 *) gl_absname_cpp="$ac_cpp" ;;
15598 esac
15599
15600 case "$host_os" in
15601 mingw*)
15602 gl_dirsep_regex='[/\\]'
15603 ;;
15604 *)
15605 gl_dirsep_regex='\/'
15606 ;;
15607 esac
15608 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15609
15610 gl_header_literal_regex=`echo 'wctype.h' \
15611 | sed -e "$gl_make_literal_regex_sed"`
15612 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15613 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15614 s|^/[^/]|//&|
15615 p
15616 q
15617 }'
15618 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15619 sed -n "$gl_absolute_header_sed"`'"'
15620 else
15621 gl_cv_next_wctype_h='<'wctype.h'>'
15622 fi
15623
15624
15625 fi
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
15627 $as_echo "$gl_cv_next_wctype_h" >&6; }
15628 fi
15629 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
15630
15631 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15632 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15633 gl_next_as_first_directive='<'wctype.h'>'
15634 else
15635 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15636 gl_next_as_first_directive=$gl_cv_next_wctype_h
15637 fi
15638 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
15639
15640
15641
15642
15643 if test $ac_cv_header_wctype_h = yes; then
15644 if test $ac_cv_func_iswcntrl = yes; then
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
15646 $as_echo_n "checking whether iswcntrl works... " >&6; }
15647 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
15648 $as_echo_n "(cached) " >&6
15649 else
15650
15651 if test "$cross_compiling" = yes; then :
15652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15653 /* end confdefs.h. */
15654 #include <stdlib.h>
15655 #if __GNU_LIBRARY__ == 1
15656 Linux libc5 i18n is broken.
15657 #endif
15658 int
15659 main ()
15660 {
15661
15662 ;
15663 return 0;
15664 }
15665 _ACEOF
15666 if ac_fn_c_try_compile "$LINENO"; then :
15667 gl_cv_func_iswcntrl_works="guessing yes"
15668 else
15669 gl_cv_func_iswcntrl_works="guessing no"
15670 fi
15671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15672
15673 else
15674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15675 /* end confdefs.h. */
15676
15677 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
15678 included before <wchar.h>.
15679 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
15680 must be included before <wchar.h>. */
15681 #include <stddef.h>
15682 #include <stdio.h>
15683 #include <time.h>
15684 #include <wchar.h>
15685 #include <wctype.h>
15686 int main () { return iswprint ('x') == 0; }
15687
15688 _ACEOF
15689 if ac_fn_c_try_run "$LINENO"; then :
15690 gl_cv_func_iswcntrl_works=yes
15691 else
15692 gl_cv_func_iswcntrl_works=no
15693 fi
15694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15695 conftest.$ac_objext conftest.beam conftest.$ac_ext
15696 fi
15697
15698
15699 fi
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
15701 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
15702 fi
15703 HAVE_WCTYPE_H=1
15704 else
15705 HAVE_WCTYPE_H=0
15706 fi
15707
15708
15709 case "$gl_cv_func_iswcntrl_works" in
15710 *yes) REPLACE_ISWCNTRL=0 ;;
15711 *) REPLACE_ISWCNTRL=1 ;;
15712 esac
15713
15714
15715 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
15716 :
15717 fi
15718
15719 if test $REPLACE_ISWCNTRL = 1; then
15720 REPLACE_TOWLOWER=1
15721 else
15722 for ac_func in towlower
15723 do :
15724 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
15725 if test "x$ac_cv_func_towlower" = x""yes; then :
15726 cat >>confdefs.h <<_ACEOF
15727 #define HAVE_TOWLOWER 1
15728 _ACEOF
15729
15730 fi
15731 done
15732
15733 if test $ac_cv_func_towlower = yes; then
15734 REPLACE_TOWLOWER=0
15735 else
15736 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
15737 included before <wchar.h>.
15738 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
15739 must be included before <wchar.h>. */
15740 #include <stddef.h>
15741 #include <stdio.h>
15742 #include <time.h>
15743 #include <wchar.h>
15744 #if HAVE_WCTYPE_H
15745 # include <wctype.h>
15746 #endif
15747
15748 "
15749 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
15750 ac_have_decl=1
15751 else
15752 ac_have_decl=0
15753 fi
15754
15755 cat >>confdefs.h <<_ACEOF
15756 #define HAVE_DECL_TOWLOWER $ac_have_decl
15757 _ACEOF
15758
15759 if test $ac_cv_have_decl_towlower = yes; then
15760 REPLACE_TOWLOWER=1
15761 else
15762 REPLACE_TOWLOWER=0
15763 fi
15764 fi
15765 fi
15766
15767
15768 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
15769 :
15770 fi
15771
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
15773 $as_echo_n "checking for wctype_t... " >&6; }
15774 if test "${gl_cv_type_wctype_t+set}" = set; then :
15775 $as_echo_n "(cached) " >&6
15776 else
15777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15778 /* end confdefs.h. */
15779 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
15780 included before <wchar.h>.
15781 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
15782 must be included before <wchar.h>. */
15783 #include <stddef.h>
15784 #include <stdio.h>
15785 #include <time.h>
15786 #include <wchar.h>
15787 #if HAVE_WCTYPE_H
15788 # include <wctype.h>
15789 #endif
15790 wctype_t a;
15791
15792 int
15793 main ()
15794 {
15795
15796 ;
15797 return 0;
15798 }
15799 _ACEOF
15800 if ac_fn_c_try_compile "$LINENO"; then :
15801 gl_cv_type_wctype_t=yes
15802 else
15803 gl_cv_type_wctype_t=no
15804 fi
15805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15806
15807 fi
15808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
15809 $as_echo "$gl_cv_type_wctype_t" >&6; }
15810 if test $gl_cv_type_wctype_t = no; then
15811 HAVE_WCTYPE_T=0
15812 fi
15813
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
15815 $as_echo_n "checking for wctrans_t... " >&6; }
15816 if test "${gl_cv_type_wctrans_t+set}" = set; then :
15817 $as_echo_n "(cached) " >&6
15818 else
15819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15820 /* end confdefs.h. */
15821 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
15822 included before <wchar.h>.
15823 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
15824 must be included before <wchar.h>. */
15825 #include <stddef.h>
15826 #include <stdio.h>
15827 #include <time.h>
15828 #include <wchar.h>
15829 #include <wctype.h>
15830 wctrans_t a;
15831
15832 int
15833 main ()
15834 {
15835
15836 ;
15837 return 0;
15838 }
15839 _ACEOF
15840 if ac_fn_c_try_compile "$LINENO"; then :
15841 gl_cv_type_wctrans_t=yes
15842 else
15843 gl_cv_type_wctrans_t=no
15844 fi
15845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15846
15847 fi
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
15849 $as_echo "$gl_cv_type_wctrans_t" >&6; }
15850 if test $gl_cv_type_wctrans_t = no; then
15851 HAVE_WCTRANS_T=0
15852 fi
15853
15854
15855 for gl_func in wctype iswctype wctrans towctrans ; do
15856 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15858 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15859 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
15860 $as_echo_n "(cached) " >&6
15861 else
15862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15863 /* end confdefs.h. */
15864
15865 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15866 <wchar.h>.
15867 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15868 included before <wchar.h>. */
15869 #if !(defined __GLIBC__ && !defined __UCLIBC__)
15870 # include <stddef.h>
15871 # include <stdio.h>
15872 # include <time.h>
15873 # include <wchar.h>
15874 #endif
15875 #include <wctype.h>
15876
15877 int
15878 main ()
15879 {
15880 #undef $gl_func
15881 (void) $gl_func;
15882 ;
15883 return 0;
15884 }
15885 _ACEOF
15886 if ac_fn_c_try_compile "$LINENO"; then :
15887 eval "$as_gl_Symbol=yes"
15888 else
15889 eval "$as_gl_Symbol=no"
15890 fi
15891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15892 fi
15893 eval ac_res=\$$as_gl_Symbol
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15895 $as_echo "$ac_res" >&6; }
15896 eval as_val=\$$as_gl_Symbol
15897 if test "x$as_val" = x""yes; then :
15898 cat >>confdefs.h <<_ACEOF
15899 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15900 _ACEOF
15901
15902 eval ac_cv_have_decl_$gl_func=yes
15903 fi
15904 done
15905
15906
15907 # End of code from modules
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917 gltests_libdeps=
15918 gltests_ltlibdeps=
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928 gl_source_base='tests'
15929 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
15930
15931 gl_module_indicator_condition=$gltests_WITNESS
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941 LIBGNU_LIBDEPS="$gl_libdeps"
15942
15943 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
15944
15945
15946
15947 # We don't use automake, but gnulib does. This line lets us generate
15948 # its Makefile.in.
15949 am__api_version='1.11'
15950
15951 # Find a good install program. We prefer a C program (faster),
15952 # so one script is as good as another. But avoid the broken or
15953 # incompatible versions:
15954 # SysV /etc/install, /usr/sbin/install
15955 # SunOS /usr/etc/install
15956 # IRIX /sbin/install
15957 # AIX /bin/install
15958 # AmigaOS /C/install, which installs bootblocks on floppy discs
15959 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15960 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
15961 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15962 # OS/2's system install, which has a completely different semantic
15963 # ./install, which can be erroneously created by make from ./install.sh.
15964 # Reject install programs that cannot install multiple files.
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
15966 $as_echo_n "checking for a BSD-compatible install... " >&6; }
15967 if test -z "$INSTALL"; then
15968 if test "${ac_cv_path_install+set}" = set; then :
15969 $as_echo_n "(cached) " >&6
15970 else
15971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15972 for as_dir in $PATH
15973 do
15974 IFS=$as_save_IFS
15975 test -z "$as_dir" && as_dir=.
15976 # Account for people who put trailing slashes in PATH elements.
15977 case $as_dir/ in #((
15978 ./ | .// | /[cC]/* | \
15979 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15980 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
15981 /usr/ucb/* ) ;;
15982 *)
15983 # OSF1 and SCO ODT 3.0 have their own names for install.
15984 # Don't use installbsd from OSF since it installs stuff as root
15985 # by default.
15986 for ac_prog in ginstall scoinst install; do
15987 for ac_exec_ext in '' $ac_executable_extensions; do
15988 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
15989 if test $ac_prog = install &&
15990 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15991 # AIX install. It has an incompatible calling convention.
15992 :
15993 elif test $ac_prog = install &&
15994 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15995 # program-specific install script used by HP pwplus--don't use.
15996 :
15997 else
15998 rm -rf conftest.one conftest.two conftest.dir
15999 echo one > conftest.one
16000 echo two > conftest.two
16001 mkdir conftest.dir
16002 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
16003 test -s conftest.one && test -s conftest.two &&
16004 test -s conftest.dir/conftest.one &&
16005 test -s conftest.dir/conftest.two
16006 then
16007 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
16008 break 3
16009 fi
16010 fi
16011 fi
16012 done
16013 done
16014 ;;
16015 esac
16016
16017 done
16018 IFS=$as_save_IFS
16019
16020 rm -rf conftest.one conftest.two conftest.dir
16021
16022 fi
16023 if test "${ac_cv_path_install+set}" = set; then
16024 INSTALL=$ac_cv_path_install
16025 else
16026 # As a last resort, use the slow shell script. Don't cache a
16027 # value for INSTALL within a source directory, because that will
16028 # break other packages using the cache if that directory is
16029 # removed, or if the value is a relative name.
16030 INSTALL=$ac_install_sh
16031 fi
16032 fi
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
16034 $as_echo "$INSTALL" >&6; }
16035
16036 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
16037 # It thinks the first close brace ends the variable substitution.
16038 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
16039
16040 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
16041
16042 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
16043
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
16045 $as_echo_n "checking whether build environment is sane... " >&6; }
16046 # Just in case
16047 sleep 1
16048 echo timestamp > conftest.file
16049 # Reject unsafe characters in $srcdir or the absolute working directory
16050 # name. Accept space and tab only in the latter.
16051 am_lf='
16052 '
16053 case `pwd` in
16054 *[\\\"\#\$\&\'\`$am_lf]*)
16055 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
16056 esac
16057 case $srcdir in
16058 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
16059 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
16060 esac
16061
16062 # Do `set' in a subshell so we don't clobber the current shell's
16063 # arguments. Must try -L first in case configure is actually a
16064 # symlink; some systems play weird games with the mod time of symlinks
16065 # (eg FreeBSD returns the mod time of the symlink's containing
16066 # directory).
16067 if (
16068 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
16069 if test "$*" = "X"; then
16070 # -L didn't work.
16071 set X `ls -t "$srcdir/configure" conftest.file`
16072 fi
16073 rm -f conftest.file
16074 if test "$*" != "X $srcdir/configure conftest.file" \
16075 && test "$*" != "X conftest.file $srcdir/configure"; then
16076
16077 # If neither matched, then we have a broken ls. This can happen
16078 # if, for instance, CONFIG_SHELL is bash and it inherits a
16079 # broken ls alias from the environment. This has actually
16080 # happened. Such a system could not be considered "sane".
16081 as_fn_error "ls -t appears to fail. Make sure there is not a broken
16082 alias in your environment" "$LINENO" 5
16083 fi
16084
16085 test "$2" = conftest.file
16086 )
16087 then
16088 # Ok.
16089 :
16090 else
16091 as_fn_error "newly created file is older than distributed files!
16092 Check your system clock" "$LINENO" 5
16093 fi
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16095 $as_echo "yes" >&6; }
16096 test "$program_prefix" != NONE &&
16097 program_transform_name="s&^&$program_prefix&;$program_transform_name"
16098 # Use a double $ so make ignores it.
16099 test "$program_suffix" != NONE &&
16100 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
16101 # Double any \ or $.
16102 # By default was `s,x,x', remove it if useless.
16103 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
16104 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
16105
16106 # expand $ac_aux_dir to an absolute path
16107 am_aux_dir=`cd $ac_aux_dir && pwd`
16108
16109 if test x"${MISSING+set}" != xset; then
16110 case $am_aux_dir in
16111 *\ * | *\ *)
16112 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
16113 *)
16114 MISSING="\${SHELL} $am_aux_dir/missing" ;;
16115 esac
16116 fi
16117 # Use eval to expand $SHELL
16118 if eval "$MISSING --run true"; then
16119 am_missing_run="$MISSING --run "
16120 else
16121 am_missing_run=
16122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
16123 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
16124 fi
16125
16126 if test x"${install_sh}" != xset; then
16127 case $am_aux_dir in
16128 *\ * | *\ *)
16129 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
16130 *)
16131 install_sh="\${SHELL} $am_aux_dir/install-sh"
16132 esac
16133 fi
16134
16135 # Installed binaries are usually stripped using `strip' when the user
16136 # run `make install-strip'. However `strip' might not be the right
16137 # tool to use in cross-compilation environments, therefore Automake
16138 # will honor the `STRIP' environment variable to overrule this program.
16139 if test "$cross_compiling" != no; then
16140 if test -n "$ac_tool_prefix"; then
16141 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16142 set dummy ${ac_tool_prefix}strip; ac_word=$2
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16144 $as_echo_n "checking for $ac_word... " >&6; }
16145 if test "${ac_cv_prog_STRIP+set}" = set; then :
16146 $as_echo_n "(cached) " >&6
16147 else
16148 if test -n "$STRIP"; then
16149 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16150 else
16151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16152 for as_dir in $PATH
16153 do
16154 IFS=$as_save_IFS
16155 test -z "$as_dir" && as_dir=.
16156 for ac_exec_ext in '' $ac_executable_extensions; do
16157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16158 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16160 break 2
16161 fi
16162 done
16163 done
16164 IFS=$as_save_IFS
16165
16166 fi
16167 fi
16168 STRIP=$ac_cv_prog_STRIP
16169 if test -n "$STRIP"; then
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
16171 $as_echo "$STRIP" >&6; }
16172 else
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16174 $as_echo "no" >&6; }
16175 fi
16176
16177
16178 fi
16179 if test -z "$ac_cv_prog_STRIP"; then
16180 ac_ct_STRIP=$STRIP
16181 # Extract the first word of "strip", so it can be a program name with args.
16182 set dummy strip; ac_word=$2
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16184 $as_echo_n "checking for $ac_word... " >&6; }
16185 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
16186 $as_echo_n "(cached) " >&6
16187 else
16188 if test -n "$ac_ct_STRIP"; then
16189 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16190 else
16191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16192 for as_dir in $PATH
16193 do
16194 IFS=$as_save_IFS
16195 test -z "$as_dir" && as_dir=.
16196 for ac_exec_ext in '' $ac_executable_extensions; do
16197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16198 ac_cv_prog_ac_ct_STRIP="strip"
16199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16200 break 2
16201 fi
16202 done
16203 done
16204 IFS=$as_save_IFS
16205
16206 fi
16207 fi
16208 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16209 if test -n "$ac_ct_STRIP"; then
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
16211 $as_echo "$ac_ct_STRIP" >&6; }
16212 else
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16214 $as_echo "no" >&6; }
16215 fi
16216
16217 if test "x$ac_ct_STRIP" = x; then
16218 STRIP=":"
16219 else
16220 case $cross_compiling:$ac_tool_warned in
16221 yes:)
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16224 ac_tool_warned=yes ;;
16225 esac
16226 STRIP=$ac_ct_STRIP
16227 fi
16228 else
16229 STRIP="$ac_cv_prog_STRIP"
16230 fi
16231
16232 fi
16233 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
16234
16235 mkdir_p="$MKDIR_P"
16236 case $mkdir_p in
16237 [\\/$]* | ?:[\\/]*) ;;
16238 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
16239 esac
16240
16241 for ac_prog in gawk mawk nawk awk
16242 do
16243 # Extract the first word of "$ac_prog", so it can be a program name with args.
16244 set dummy $ac_prog; ac_word=$2
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16246 $as_echo_n "checking for $ac_word... " >&6; }
16247 if test "${ac_cv_prog_AWK+set}" = set; then :
16248 $as_echo_n "(cached) " >&6
16249 else
16250 if test -n "$AWK"; then
16251 ac_cv_prog_AWK="$AWK" # Let the user override the test.
16252 else
16253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16254 for as_dir in $PATH
16255 do
16256 IFS=$as_save_IFS
16257 test -z "$as_dir" && as_dir=.
16258 for ac_exec_ext in '' $ac_executable_extensions; do
16259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16260 ac_cv_prog_AWK="$ac_prog"
16261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16262 break 2
16263 fi
16264 done
16265 done
16266 IFS=$as_save_IFS
16267
16268 fi
16269 fi
16270 AWK=$ac_cv_prog_AWK
16271 if test -n "$AWK"; then
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
16273 $as_echo "$AWK" >&6; }
16274 else
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16276 $as_echo "no" >&6; }
16277 fi
16278
16279
16280 test -n "$AWK" && break
16281 done
16282
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16284 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16285 set x ${MAKE-make}
16286 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16287 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
16288 $as_echo_n "(cached) " >&6
16289 else
16290 cat >conftest.make <<\_ACEOF
16291 SHELL = /bin/sh
16292 all:
16293 @echo '@@@%%%=$(MAKE)=@@@%%%'
16294 _ACEOF
16295 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16296 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16297 *@@@%%%=?*=@@@%%%*)
16298 eval ac_cv_prog_make_${ac_make}_set=yes;;
16299 *)
16300 eval ac_cv_prog_make_${ac_make}_set=no;;
16301 esac
16302 rm -f conftest.make
16303 fi
16304 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16306 $as_echo "yes" >&6; }
16307 SET_MAKE=
16308 else
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16310 $as_echo "no" >&6; }
16311 SET_MAKE="MAKE=${MAKE-make}"
16312 fi
16313
16314 rm -rf .tst 2>/dev/null
16315 mkdir .tst 2>/dev/null
16316 if test -d .tst; then
16317 am__leading_dot=.
16318 else
16319 am__leading_dot=_
16320 fi
16321 rmdir .tst 2>/dev/null
16322
16323 DEPDIR="${am__leading_dot}deps"
16324
16325 ac_config_commands="$ac_config_commands depfiles"
16326
16327
16328 am_make=${MAKE-make}
16329 cat > confinc << 'END'
16330 am__doit:
16331 @echo this is the am__doit target
16332 .PHONY: am__doit
16333 END
16334 # If we don't find an include directive, just comment out the code.
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
16336 $as_echo_n "checking for style of include used by $am_make... " >&6; }
16337 am__include="#"
16338 am__quote=
16339 _am_result=none
16340 # First try GNU make style include.
16341 echo "include confinc" > confmf
16342 # Ignore all kinds of additional output from `make'.
16343 case `$am_make -s -f confmf 2> /dev/null` in #(
16344 *the\ am__doit\ target*)
16345 am__include=include
16346 am__quote=
16347 _am_result=GNU
16348 ;;
16349 esac
16350 # Now try BSD make style include.
16351 if test "$am__include" = "#"; then
16352 echo '.include "confinc"' > confmf
16353 case `$am_make -s -f confmf 2> /dev/null` in #(
16354 *the\ am__doit\ target*)
16355 am__include=.include
16356 am__quote="\""
16357 _am_result=BSD
16358 ;;
16359 esac
16360 fi
16361
16362
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
16364 $as_echo "$_am_result" >&6; }
16365 rm -f confinc confmf
16366
16367 # Check whether --enable-dependency-tracking was given.
16368 if test "${enable_dependency_tracking+set}" = set; then :
16369 enableval=$enable_dependency_tracking;
16370 fi
16371
16372 if test "x$enable_dependency_tracking" != xno; then
16373 am_depcomp="$ac_aux_dir/depcomp"
16374 AMDEPBACKSLASH='\'
16375 fi
16376 if test "x$enable_dependency_tracking" != xno; then
16377 AMDEP_TRUE=
16378 AMDEP_FALSE='#'
16379 else
16380 AMDEP_TRUE='#'
16381 AMDEP_FALSE=
16382 fi
16383
16384
16385 if test "`cd $srcdir && pwd`" != "`pwd`"; then
16386 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
16387 # is not polluted with repeated "-I."
16388 am__isrc=' -I$(srcdir)'
16389 # test to see if srcdir already configured
16390 if test -f $srcdir/config.status; then
16391 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
16392 fi
16393 fi
16394
16395 # test whether we have cygpath
16396 if test -z "$CYGPATH_W"; then
16397 if (cygpath --version) >/dev/null 2>/dev/null; then
16398 CYGPATH_W='cygpath -w'
16399 else
16400 CYGPATH_W=echo
16401 fi
16402 fi
16403
16404
16405 # Define the identity of the package.
16406 PACKAGE=libgnu
16407 VERSION=UNUSED-VERSION
16408
16409
16410 # Some tools Automake needs.
16411
16412 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
16413
16414
16415 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
16416
16417
16418 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
16419
16420
16421 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
16422
16423
16424 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
16425
16426 # We need awk for the "check" target. The system "awk" is bad on
16427 # some platforms.
16428 # Always define AMTAR for backward compatibility.
16429
16430 AMTAR=${AMTAR-"${am_missing_run}tar"}
16431
16432 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
16433
16434
16435
16436
16437 depcc="$CC" am_compiler_list=
16438
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16440 $as_echo_n "checking dependency style of $depcc... " >&6; }
16441 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
16442 $as_echo_n "(cached) " >&6
16443 else
16444 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16445 # We make a subdir and do the tests there. Otherwise we can end up
16446 # making bogus files that we don't know about and never remove. For
16447 # instance it was reported that on HP-UX the gcc test will end up
16448 # making a dummy file named `D' -- because `-MD' means `put the output
16449 # in D'.
16450 mkdir conftest.dir
16451 # Copy depcomp to subdir because otherwise we won't find it if we're
16452 # using a relative directory.
16453 cp "$am_depcomp" conftest.dir
16454 cd conftest.dir
16455 # We will build objects and dependencies in a subdirectory because
16456 # it helps to detect inapplicable dependency modes. For instance
16457 # both Tru64's cc and ICC support -MD to output dependencies as a
16458 # side effect of compilation, but ICC will put the dependencies in
16459 # the current directory while Tru64 will put them in the object
16460 # directory.
16461 mkdir sub
16462
16463 am_cv_CC_dependencies_compiler_type=none
16464 if test "$am_compiler_list" = ""; then
16465 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16466 fi
16467 am__universal=false
16468 case " $depcc " in #(
16469 *\ -arch\ *\ -arch\ *) am__universal=true ;;
16470 esac
16471
16472 for depmode in $am_compiler_list; do
16473 # Setup a source with many dependencies, because some compilers
16474 # like to wrap large dependency lists on column 80 (with \), and
16475 # we should not choose a depcomp mode which is confused by this.
16476 #
16477 # We need to recreate these files for each test, as the compiler may
16478 # overwrite some of them when testing with obscure command lines.
16479 # This happens at least with the AIX C compiler.
16480 : > sub/conftest.c
16481 for i in 1 2 3 4 5 6; do
16482 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16483 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16484 # Solaris 8's {/usr,}/bin/sh.
16485 touch sub/conftst$i.h
16486 done
16487 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16488
16489 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16490 # mode. It turns out that the SunPro C++ compiler does not properly
16491 # handle `-M -o', and we need to detect this. Also, some Intel
16492 # versions had trouble with output in subdirs
16493 am__obj=sub/conftest.${OBJEXT-o}
16494 am__minus_obj="-o $am__obj"
16495 case $depmode in
16496 gcc)
16497 # This depmode causes a compiler race in universal mode.
16498 test "$am__universal" = false || continue
16499 ;;
16500 nosideeffect)
16501 # after this tag, mechanisms are not by side-effect, so they'll
16502 # only be used when explicitly requested
16503 if test "x$enable_dependency_tracking" = xyes; then
16504 continue
16505 else
16506 break
16507 fi
16508 ;;
16509 msvisualcpp | msvcmsys)
16510 # This compiler won't grok `-c -o', but also, the minuso test has
16511 # not run yet. These depmodes are late enough in the game, and
16512 # so weak that their functioning should not be impacted.
16513 am__obj=conftest.${OBJEXT-o}
16514 am__minus_obj=
16515 ;;
16516 none) break ;;
16517 esac
16518 if depmode=$depmode \
16519 source=sub/conftest.c object=$am__obj \
16520 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16521 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16522 >/dev/null 2>conftest.err &&
16523 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16524 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16525 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16526 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16527 # icc doesn't choke on unknown options, it will just issue warnings
16528 # or remarks (even with -Werror). So we grep stderr for any message
16529 # that says an option was ignored or not supported.
16530 # When given -MP, icc 7.0 and 7.1 complain thusly:
16531 # icc: Command line warning: ignoring option '-M'; no argument required
16532 # The diagnosis changed in icc 8.0:
16533 # icc: Command line remark: option '-MP' not supported
16534 if (grep 'ignoring option' conftest.err ||
16535 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16536 am_cv_CC_dependencies_compiler_type=$depmode
16537 break
16538 fi
16539 fi
16540 done
16541
16542 cd ..
16543 rm -rf conftest.dir
16544 else
16545 am_cv_CC_dependencies_compiler_type=none
16546 fi
16547
16548 fi
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
16550 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
16551 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
16552
16553 if
16554 test "x$enable_dependency_tracking" != xno \
16555 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
16556 am__fastdepCC_TRUE=
16557 am__fastdepCC_FALSE='#'
16558 else
16559 am__fastdepCC_TRUE='#'
16560 am__fastdepCC_FALSE=
16561 fi
16562
16563
16564
16565
16566 # --------------------- #
16567 # Checks for programs. #
16568 # --------------------- #
16569
16570
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
16572 $as_echo_n "checking whether ln -s works... " >&6; }
16573 LN_S=$as_ln_s
16574 if test "$LN_S" = "ln -s"; then
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16576 $as_echo "yes" >&6; }
16577 else
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
16579 $as_echo "no, using $LN_S" >&6; }
16580 fi
16581
16582 if test -n "$ac_tool_prefix"; then
16583 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16584 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16586 $as_echo_n "checking for $ac_word... " >&6; }
16587 if test "${ac_cv_prog_RANLIB+set}" = set; then :
16588 $as_echo_n "(cached) " >&6
16589 else
16590 if test -n "$RANLIB"; then
16591 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16592 else
16593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16594 for as_dir in $PATH
16595 do
16596 IFS=$as_save_IFS
16597 test -z "$as_dir" && as_dir=.
16598 for ac_exec_ext in '' $ac_executable_extensions; do
16599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16600 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16602 break 2
16603 fi
16604 done
16605 done
16606 IFS=$as_save_IFS
16607
16608 fi
16609 fi
16610 RANLIB=$ac_cv_prog_RANLIB
16611 if test -n "$RANLIB"; then
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
16613 $as_echo "$RANLIB" >&6; }
16614 else
16615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16616 $as_echo "no" >&6; }
16617 fi
16618
16619
16620 fi
16621 if test -z "$ac_cv_prog_RANLIB"; then
16622 ac_ct_RANLIB=$RANLIB
16623 # Extract the first word of "ranlib", so it can be a program name with args.
16624 set dummy ranlib; ac_word=$2
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16626 $as_echo_n "checking for $ac_word... " >&6; }
16627 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
16628 $as_echo_n "(cached) " >&6
16629 else
16630 if test -n "$ac_ct_RANLIB"; then
16631 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16632 else
16633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16634 for as_dir in $PATH
16635 do
16636 IFS=$as_save_IFS
16637 test -z "$as_dir" && as_dir=.
16638 for ac_exec_ext in '' $ac_executable_extensions; do
16639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16640 ac_cv_prog_ac_ct_RANLIB="ranlib"
16641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16642 break 2
16643 fi
16644 done
16645 done
16646 IFS=$as_save_IFS
16647
16648 fi
16649 fi
16650 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16651 if test -n "$ac_ct_RANLIB"; then
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
16653 $as_echo "$ac_ct_RANLIB" >&6; }
16654 else
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16656 $as_echo "no" >&6; }
16657 fi
16658
16659 if test "x$ac_ct_RANLIB" = x; then
16660 RANLIB=":"
16661 else
16662 case $cross_compiling:$ac_tool_warned in
16663 yes:)
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16666 ac_tool_warned=yes ;;
16667 esac
16668 RANLIB=$ac_ct_RANLIB
16669 fi
16670 else
16671 RANLIB="$ac_cv_prog_RANLIB"
16672 fi
16673
16674
16675 if test -n "$ac_tool_prefix"; then
16676 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16677 set dummy ${ac_tool_prefix}ar; ac_word=$2
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16679 $as_echo_n "checking for $ac_word... " >&6; }
16680 if test "${ac_cv_prog_AR+set}" = set; then :
16681 $as_echo_n "(cached) " >&6
16682 else
16683 if test -n "$AR"; then
16684 ac_cv_prog_AR="$AR" # Let the user override the test.
16685 else
16686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16687 for as_dir in $PATH
16688 do
16689 IFS=$as_save_IFS
16690 test -z "$as_dir" && as_dir=.
16691 for ac_exec_ext in '' $ac_executable_extensions; do
16692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16693 ac_cv_prog_AR="${ac_tool_prefix}ar"
16694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16695 break 2
16696 fi
16697 done
16698 done
16699 IFS=$as_save_IFS
16700
16701 fi
16702 fi
16703 AR=$ac_cv_prog_AR
16704 if test -n "$AR"; then
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
16706 $as_echo "$AR" >&6; }
16707 else
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16709 $as_echo "no" >&6; }
16710 fi
16711
16712
16713 fi
16714 if test -z "$ac_cv_prog_AR"; then
16715 ac_ct_AR=$AR
16716 # Extract the first word of "ar", so it can be a program name with args.
16717 set dummy ar; ac_word=$2
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16719 $as_echo_n "checking for $ac_word... " >&6; }
16720 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
16721 $as_echo_n "(cached) " >&6
16722 else
16723 if test -n "$ac_ct_AR"; then
16724 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16725 else
16726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16727 for as_dir in $PATH
16728 do
16729 IFS=$as_save_IFS
16730 test -z "$as_dir" && as_dir=.
16731 for ac_exec_ext in '' $ac_executable_extensions; do
16732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16733 ac_cv_prog_ac_ct_AR="ar"
16734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16735 break 2
16736 fi
16737 done
16738 done
16739 IFS=$as_save_IFS
16740
16741 fi
16742 fi
16743 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16744 if test -n "$ac_ct_AR"; then
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
16746 $as_echo "$ac_ct_AR" >&6; }
16747 else
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16749 $as_echo "no" >&6; }
16750 fi
16751
16752 if test "x$ac_ct_AR" = x; then
16753 AR=""
16754 else
16755 case $cross_compiling:$ac_tool_warned in
16756 yes:)
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16759 ac_tool_warned=yes ;;
16760 esac
16761 AR=$ac_ct_AR
16762 fi
16763 else
16764 AR="$ac_cv_prog_AR"
16765 fi
16766
16767
16768 # ---------------------- #
16769 # Checks for libraries. #
16770 # ---------------------- #
16771
16772 ac_config_files="$ac_config_files Makefile import/Makefile"
16773
16774 ac_config_commands="$ac_config_commands default"
16775
16776 cat >confcache <<\_ACEOF
16777 # This file is a shell script that caches the results of configure
16778 # tests run on this system so they can be shared between configure
16779 # scripts and configure runs, see configure's option --config-cache.
16780 # It is not useful on other systems. If it contains results you don't
16781 # want to keep, you may remove or edit it.
16782 #
16783 # config.status only pays attention to the cache file if you give it
16784 # the --recheck option to rerun configure.
16785 #
16786 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16787 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16788 # following values.
16789
16790 _ACEOF
16791
16792 # The following way of writing the cache mishandles newlines in values,
16793 # but we know of no workaround that is simple, portable, and efficient.
16794 # So, we kill variables containing newlines.
16795 # Ultrix sh set writes to stderr and can't be redirected directly,
16796 # and sets the high bit in the cache file unless we assign to the vars.
16797 (
16798 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16799 eval ac_val=\$$ac_var
16800 case $ac_val in #(
16801 *${as_nl}*)
16802 case $ac_var in #(
16803 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16804 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16805 esac
16806 case $ac_var in #(
16807 _ | IFS | as_nl) ;; #(
16808 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16809 *) { eval $ac_var=; unset $ac_var;} ;;
16810 esac ;;
16811 esac
16812 done
16813
16814 (set) 2>&1 |
16815 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16816 *${as_nl}ac_space=\ *)
16817 # `set' does not quote correctly, so add quotes: double-quote
16818 # substitution turns \\\\ into \\, and sed turns \\ into \.
16819 sed -n \
16820 "s/'/'\\\\''/g;
16821 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16822 ;; #(
16823 *)
16824 # `set' quotes correctly as required by POSIX, so do not add quotes.
16825 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16826 ;;
16827 esac |
16828 sort
16829 ) |
16830 sed '
16831 /^ac_cv_env_/b end
16832 t clear
16833 :clear
16834 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16835 t end
16836 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16837 :end' >>confcache
16838 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16839 if test -w "$cache_file"; then
16840 test "x$cache_file" != "x/dev/null" &&
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16842 $as_echo "$as_me: updating cache $cache_file" >&6;}
16843 cat confcache >$cache_file
16844 else
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16846 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16847 fi
16848 fi
16849 rm -f confcache
16850
16851 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16852 # Let make expand exec_prefix.
16853 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16854
16855 DEFS=-DHAVE_CONFIG_H
16856
16857 ac_libobjs=
16858 ac_ltlibobjs=
16859 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16860 # 1. Remove the extension, and $U if already installed.
16861 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16862 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16863 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16864 # will be set to the directory where LIBOBJS objects are built.
16865 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16866 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16867 done
16868 LIBOBJS=$ac_libobjs
16869
16870 LTLIBOBJS=$ac_ltlibobjs
16871
16872
16873 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16874 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16875 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16876 fi
16877 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
16878 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
16879 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16880 fi
16881 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
16882 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
16883 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16884 fi
16885 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
16886 as_fn_error "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
16887 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16888 fi
16889 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
16890 as_fn_error "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
16891 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16892 fi
16893 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
16894 as_fn_error "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
16895 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16896 fi
16897 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
16898 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
16899 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16900 fi
16901
16902
16903 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
16904 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
16905 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16906 fi
16907 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
16908 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
16909 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16910 fi
16911
16912 gl_libobjs=
16913 gl_ltlibobjs=
16914 if test -n "$gl_LIBOBJS"; then
16915 # Remove the extension.
16916 sed_drop_objext='s/\.o$//;s/\.obj$//'
16917 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16918 gl_libobjs="$gl_libobjs $i.$ac_objext"
16919 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
16920 done
16921 fi
16922 gl_LIBOBJS=$gl_libobjs
16923
16924 gl_LTLIBOBJS=$gl_ltlibobjs
16925
16926
16927
16928 gltests_libobjs=
16929 gltests_ltlibobjs=
16930 if test -n "$gltests_LIBOBJS"; then
16931 # Remove the extension.
16932 sed_drop_objext='s/\.o$//;s/\.obj$//'
16933 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16934 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
16935 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
16936 done
16937 fi
16938 gltests_LIBOBJS=$gltests_libobjs
16939
16940 gltests_LTLIBOBJS=$gltests_ltlibobjs
16941
16942
16943 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16944 as_fn_error "conditional \"AMDEP\" was never defined.
16945 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16946 fi
16947 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16948 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16949 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16950 fi
16951 if test -n "$EXEEXT"; then
16952 am__EXEEXT_TRUE=
16953 am__EXEEXT_FALSE='#'
16954 else
16955 am__EXEEXT_TRUE='#'
16956 am__EXEEXT_FALSE=
16957 fi
16958
16959
16960 : ${CONFIG_STATUS=./config.status}
16961 ac_write_fail=0
16962 ac_clean_files_save=$ac_clean_files
16963 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16965 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16966 as_write_fail=0
16967 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16968 #! $SHELL
16969 # Generated by $as_me.
16970 # Run this file to recreate the current configuration.
16971 # Compiler output produced by configure, useful for debugging
16972 # configure, is in config.log if it exists.
16973
16974 debug=false
16975 ac_cs_recheck=false
16976 ac_cs_silent=false
16977
16978 SHELL=\${CONFIG_SHELL-$SHELL}
16979 export SHELL
16980 _ASEOF
16981 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16982 ## -------------------- ##
16983 ## M4sh Initialization. ##
16984 ## -------------------- ##
16985
16986 # Be more Bourne compatible
16987 DUALCASE=1; export DUALCASE # for MKS sh
16988 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16989 emulate sh
16990 NULLCMD=:
16991 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16992 # is contrary to our usage. Disable this feature.
16993 alias -g '${1+"$@"}'='"$@"'
16994 setopt NO_GLOB_SUBST
16995 else
16996 case `(set -o) 2>/dev/null` in #(
16997 *posix*) :
16998 set -o posix ;; #(
16999 *) :
17000 ;;
17001 esac
17002 fi
17003
17004
17005 as_nl='
17006 '
17007 export as_nl
17008 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17009 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17010 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17011 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17012 # Prefer a ksh shell builtin over an external printf program on Solaris,
17013 # but without wasting forks for bash or zsh.
17014 if test -z "$BASH_VERSION$ZSH_VERSION" \
17015 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17016 as_echo='print -r --'
17017 as_echo_n='print -rn --'
17018 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17019 as_echo='printf %s\n'
17020 as_echo_n='printf %s'
17021 else
17022 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17023 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17024 as_echo_n='/usr/ucb/echo -n'
17025 else
17026 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17027 as_echo_n_body='eval
17028 arg=$1;
17029 case $arg in #(
17030 *"$as_nl"*)
17031 expr "X$arg" : "X\\(.*\\)$as_nl";
17032 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17033 esac;
17034 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17035 '
17036 export as_echo_n_body
17037 as_echo_n='sh -c $as_echo_n_body as_echo'
17038 fi
17039 export as_echo_body
17040 as_echo='sh -c $as_echo_body as_echo'
17041 fi
17042
17043 # The user is always right.
17044 if test "${PATH_SEPARATOR+set}" != set; then
17045 PATH_SEPARATOR=:
17046 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17047 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17048 PATH_SEPARATOR=';'
17049 }
17050 fi
17051
17052
17053 # IFS
17054 # We need space, tab and new line, in precisely that order. Quoting is
17055 # there to prevent editors from complaining about space-tab.
17056 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17057 # splitting by setting IFS to empty value.)
17058 IFS=" "" $as_nl"
17059
17060 # Find who we are. Look in the path if we contain no directory separator.
17061 case $0 in #((
17062 *[\\/]* ) as_myself=$0 ;;
17063 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17064 for as_dir in $PATH
17065 do
17066 IFS=$as_save_IFS
17067 test -z "$as_dir" && as_dir=.
17068 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17069 done
17070 IFS=$as_save_IFS
17071
17072 ;;
17073 esac
17074 # We did not find ourselves, most probably we were run as `sh COMMAND'
17075 # in which case we are not to be found in the path.
17076 if test "x$as_myself" = x; then
17077 as_myself=$0
17078 fi
17079 if test ! -f "$as_myself"; then
17080 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17081 exit 1
17082 fi
17083
17084 # Unset variables that we do not need and which cause bugs (e.g. in
17085 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17086 # suppresses any "Segmentation fault" message there. '((' could
17087 # trigger a bug in pdksh 5.2.14.
17088 for as_var in BASH_ENV ENV MAIL MAILPATH
17089 do eval test x\${$as_var+set} = xset \
17090 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17091 done
17092 PS1='$ '
17093 PS2='> '
17094 PS4='+ '
17095
17096 # NLS nuisances.
17097 LC_ALL=C
17098 export LC_ALL
17099 LANGUAGE=C
17100 export LANGUAGE
17101
17102 # CDPATH.
17103 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17104
17105
17106 # as_fn_error ERROR [LINENO LOG_FD]
17107 # ---------------------------------
17108 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17109 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17110 # script with status $?, using 1 if that was 0.
17111 as_fn_error ()
17112 {
17113 as_status=$?; test $as_status -eq 0 && as_status=1
17114 if test "$3"; then
17115 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17116 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17117 fi
17118 $as_echo "$as_me: error: $1" >&2
17119 as_fn_exit $as_status
17120 } # as_fn_error
17121
17122
17123 # as_fn_set_status STATUS
17124 # -----------------------
17125 # Set $? to STATUS, without forking.
17126 as_fn_set_status ()
17127 {
17128 return $1
17129 } # as_fn_set_status
17130
17131 # as_fn_exit STATUS
17132 # -----------------
17133 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17134 as_fn_exit ()
17135 {
17136 set +e
17137 as_fn_set_status $1
17138 exit $1
17139 } # as_fn_exit
17140
17141 # as_fn_unset VAR
17142 # ---------------
17143 # Portably unset VAR.
17144 as_fn_unset ()
17145 {
17146 { eval $1=; unset $1;}
17147 }
17148 as_unset=as_fn_unset
17149 # as_fn_append VAR VALUE
17150 # ----------------------
17151 # Append the text in VALUE to the end of the definition contained in VAR. Take
17152 # advantage of any shell optimizations that allow amortized linear growth over
17153 # repeated appends, instead of the typical quadratic growth present in naive
17154 # implementations.
17155 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17156 eval 'as_fn_append ()
17157 {
17158 eval $1+=\$2
17159 }'
17160 else
17161 as_fn_append ()
17162 {
17163 eval $1=\$$1\$2
17164 }
17165 fi # as_fn_append
17166
17167 # as_fn_arith ARG...
17168 # ------------------
17169 # Perform arithmetic evaluation on the ARGs, and store the result in the
17170 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17171 # must be portable across $(()) and expr.
17172 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17173 eval 'as_fn_arith ()
17174 {
17175 as_val=$(( $* ))
17176 }'
17177 else
17178 as_fn_arith ()
17179 {
17180 as_val=`expr "$@" || test $? -eq 1`
17181 }
17182 fi # as_fn_arith
17183
17184
17185 if expr a : '\(a\)' >/dev/null 2>&1 &&
17186 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17187 as_expr=expr
17188 else
17189 as_expr=false
17190 fi
17191
17192 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17193 as_basename=basename
17194 else
17195 as_basename=false
17196 fi
17197
17198 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17199 as_dirname=dirname
17200 else
17201 as_dirname=false
17202 fi
17203
17204 as_me=`$as_basename -- "$0" ||
17205 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17206 X"$0" : 'X\(//\)$' \| \
17207 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17208 $as_echo X/"$0" |
17209 sed '/^.*\/\([^/][^/]*\)\/*$/{
17210 s//\1/
17211 q
17212 }
17213 /^X\/\(\/\/\)$/{
17214 s//\1/
17215 q
17216 }
17217 /^X\/\(\/\).*/{
17218 s//\1/
17219 q
17220 }
17221 s/.*/./; q'`
17222
17223 # Avoid depending upon Character Ranges.
17224 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17225 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17226 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17227 as_cr_digits='0123456789'
17228 as_cr_alnum=$as_cr_Letters$as_cr_digits
17229
17230 ECHO_C= ECHO_N= ECHO_T=
17231 case `echo -n x` in #(((((
17232 -n*)
17233 case `echo 'xy\c'` in
17234 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17235 xy) ECHO_C='\c';;
17236 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17237 ECHO_T=' ';;
17238 esac;;
17239 *)
17240 ECHO_N='-n';;
17241 esac
17242
17243 rm -f conf$$ conf$$.exe conf$$.file
17244 if test -d conf$$.dir; then
17245 rm -f conf$$.dir/conf$$.file
17246 else
17247 rm -f conf$$.dir
17248 mkdir conf$$.dir 2>/dev/null
17249 fi
17250 if (echo >conf$$.file) 2>/dev/null; then
17251 if ln -s conf$$.file conf$$ 2>/dev/null; then
17252 as_ln_s='ln -s'
17253 # ... but there are two gotchas:
17254 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17255 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17256 # In both cases, we have to default to `cp -p'.
17257 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17258 as_ln_s='cp -p'
17259 elif ln conf$$.file conf$$ 2>/dev/null; then
17260 as_ln_s=ln
17261 else
17262 as_ln_s='cp -p'
17263 fi
17264 else
17265 as_ln_s='cp -p'
17266 fi
17267 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17268 rmdir conf$$.dir 2>/dev/null
17269
17270
17271 # as_fn_mkdir_p
17272 # -------------
17273 # Create "$as_dir" as a directory, including parents if necessary.
17274 as_fn_mkdir_p ()
17275 {
17276
17277 case $as_dir in #(
17278 -*) as_dir=./$as_dir;;
17279 esac
17280 test -d "$as_dir" || eval $as_mkdir_p || {
17281 as_dirs=
17282 while :; do
17283 case $as_dir in #(
17284 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17285 *) as_qdir=$as_dir;;
17286 esac
17287 as_dirs="'$as_qdir' $as_dirs"
17288 as_dir=`$as_dirname -- "$as_dir" ||
17289 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17290 X"$as_dir" : 'X\(//\)[^/]' \| \
17291 X"$as_dir" : 'X\(//\)$' \| \
17292 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17293 $as_echo X"$as_dir" |
17294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17295 s//\1/
17296 q
17297 }
17298 /^X\(\/\/\)[^/].*/{
17299 s//\1/
17300 q
17301 }
17302 /^X\(\/\/\)$/{
17303 s//\1/
17304 q
17305 }
17306 /^X\(\/\).*/{
17307 s//\1/
17308 q
17309 }
17310 s/.*/./; q'`
17311 test -d "$as_dir" && break
17312 done
17313 test -z "$as_dirs" || eval "mkdir $as_dirs"
17314 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17315
17316
17317 } # as_fn_mkdir_p
17318 if mkdir -p . 2>/dev/null; then
17319 as_mkdir_p='mkdir -p "$as_dir"'
17320 else
17321 test -d ./-p && rmdir ./-p
17322 as_mkdir_p=false
17323 fi
17324
17325 if test -x / >/dev/null 2>&1; then
17326 as_test_x='test -x'
17327 else
17328 if ls -dL / >/dev/null 2>&1; then
17329 as_ls_L_option=L
17330 else
17331 as_ls_L_option=
17332 fi
17333 as_test_x='
17334 eval sh -c '\''
17335 if test -d "$1"; then
17336 test -d "$1/.";
17337 else
17338 case $1 in #(
17339 -*)set "./$1";;
17340 esac;
17341 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17342 ???[sx]*):;;*)false;;esac;fi
17343 '\'' sh
17344 '
17345 fi
17346 as_executable_p=$as_test_x
17347
17348 # Sed expression to map a string onto a valid CPP name.
17349 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17350
17351 # Sed expression to map a string onto a valid variable name.
17352 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17353
17354
17355 exec 6>&1
17356 ## ----------------------------------- ##
17357 ## Main body of $CONFIG_STATUS script. ##
17358 ## ----------------------------------- ##
17359 _ASEOF
17360 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17361
17362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17363 # Save the log message, to keep $0 and so on meaningful, and to
17364 # report actual input values of CONFIG_FILES etc. instead of their
17365 # values after options handling.
17366 ac_log="
17367 This file was extended by $as_me, which was
17368 generated by GNU Autoconf 2.64. Invocation command line was
17369
17370 CONFIG_FILES = $CONFIG_FILES
17371 CONFIG_HEADERS = $CONFIG_HEADERS
17372 CONFIG_LINKS = $CONFIG_LINKS
17373 CONFIG_COMMANDS = $CONFIG_COMMANDS
17374 $ $0 $@
17375
17376 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17377 "
17378
17379 _ACEOF
17380
17381 case $ac_config_files in *"
17382 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17383 esac
17384
17385 case $ac_config_headers in *"
17386 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17387 esac
17388
17389
17390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17391 # Files that config.status was made for.
17392 config_files="$ac_config_files"
17393 config_headers="$ac_config_headers"
17394 config_commands="$ac_config_commands"
17395
17396 _ACEOF
17397
17398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17399 ac_cs_usage="\
17400 \`$as_me' instantiates files and other configuration actions
17401 from templates according to the current configuration. Unless the files
17402 and actions are specified as TAGs, all are instantiated by default.
17403
17404 Usage: $0 [OPTION]... [TAG]...
17405
17406 -h, --help print this help, then exit
17407 -V, --version print version number and configuration settings, then exit
17408 -q, --quiet, --silent
17409 do not print progress messages
17410 -d, --debug don't remove temporary files
17411 --recheck update $as_me by reconfiguring in the same conditions
17412 --file=FILE[:TEMPLATE]
17413 instantiate the configuration file FILE
17414 --header=FILE[:TEMPLATE]
17415 instantiate the configuration header FILE
17416
17417 Configuration files:
17418 $config_files
17419
17420 Configuration headers:
17421 $config_headers
17422
17423 Configuration commands:
17424 $config_commands
17425
17426 Report bugs to the package provider."
17427
17428 _ACEOF
17429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17430 ac_cs_version="\\
17431 config.status
17432 configured by $0, generated by GNU Autoconf 2.64,
17433 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17434
17435 Copyright (C) 2009 Free Software Foundation, Inc.
17436 This config.status script is free software; the Free Software Foundation
17437 gives unlimited permission to copy, distribute and modify it."
17438
17439 ac_pwd='$ac_pwd'
17440 srcdir='$srcdir'
17441 INSTALL='$INSTALL'
17442 MKDIR_P='$MKDIR_P'
17443 AWK='$AWK'
17444 test -n "\$AWK" || AWK=awk
17445 _ACEOF
17446
17447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17448 # The default lists apply if the user does not specify any file.
17449 ac_need_defaults=:
17450 while test $# != 0
17451 do
17452 case $1 in
17453 --*=*)
17454 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17455 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17456 ac_shift=:
17457 ;;
17458 *)
17459 ac_option=$1
17460 ac_optarg=$2
17461 ac_shift=shift
17462 ;;
17463 esac
17464
17465 case $ac_option in
17466 # Handling of the options.
17467 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17468 ac_cs_recheck=: ;;
17469 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17470 $as_echo "$ac_cs_version"; exit ;;
17471 --debug | --debu | --deb | --de | --d | -d )
17472 debug=: ;;
17473 --file | --fil | --fi | --f )
17474 $ac_shift
17475 case $ac_optarg in
17476 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17477 esac
17478 as_fn_append CONFIG_FILES " '$ac_optarg'"
17479 ac_need_defaults=false;;
17480 --header | --heade | --head | --hea )
17481 $ac_shift
17482 case $ac_optarg in
17483 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17484 esac
17485 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17486 ac_need_defaults=false;;
17487 --he | --h)
17488 # Conflict between --help and --header
17489 as_fn_error "ambiguous option: \`$1'
17490 Try \`$0 --help' for more information.";;
17491 --help | --hel | -h )
17492 $as_echo "$ac_cs_usage"; exit ;;
17493 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17494 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17495 ac_cs_silent=: ;;
17496
17497 # This is an error.
17498 -*) as_fn_error "unrecognized option: \`$1'
17499 Try \`$0 --help' for more information." ;;
17500
17501 *) as_fn_append ac_config_targets " $1"
17502 ac_need_defaults=false ;;
17503
17504 esac
17505 shift
17506 done
17507
17508 ac_configure_extra_args=
17509
17510 if $ac_cs_silent; then
17511 exec 6>/dev/null
17512 ac_configure_extra_args="$ac_configure_extra_args --silent"
17513 fi
17514
17515 _ACEOF
17516 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17517 if \$ac_cs_recheck; then
17518 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17519 shift
17520 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17521 CONFIG_SHELL='$SHELL'
17522 export CONFIG_SHELL
17523 exec "\$@"
17524 fi
17525
17526 _ACEOF
17527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17528 exec 5>>config.log
17529 {
17530 echo
17531 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17532 ## Running $as_me. ##
17533 _ASBOX
17534 $as_echo "$ac_log"
17535 } >&5
17536
17537 _ACEOF
17538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17539 #
17540 # INIT-COMMANDS
17541 #
17542 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17543
17544 _ACEOF
17545
17546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17547
17548 # Handling of arguments.
17549 for ac_config_target in $ac_config_targets
17550 do
17551 case $ac_config_target in
17552 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
17553 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17554 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17555 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
17556 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
17557
17558 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17559 esac
17560 done
17561
17562
17563 # If the user did not use the arguments to specify the items to instantiate,
17564 # then the envvar interface is used. Set only those that are not.
17565 # We use the long form for the default assignment because of an extremely
17566 # bizarre bug on SunOS 4.1.3.
17567 if $ac_need_defaults; then
17568 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17569 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17570 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17571 fi
17572
17573 # Have a temporary directory for convenience. Make it in the build tree
17574 # simply because there is no reason against having it here, and in addition,
17575 # creating and moving files from /tmp can sometimes cause problems.
17576 # Hook for its removal unless debugging.
17577 # Note that there is a small window in which the directory will not be cleaned:
17578 # after its creation but before its name has been assigned to `$tmp'.
17579 $debug ||
17580 {
17581 tmp=
17582 trap 'exit_status=$?
17583 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17584 ' 0
17585 trap 'as_fn_exit 1' 1 2 13 15
17586 }
17587 # Create a (secure) tmp directory for tmp files.
17588
17589 {
17590 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17591 test -n "$tmp" && test -d "$tmp"
17592 } ||
17593 {
17594 tmp=./conf$$-$RANDOM
17595 (umask 077 && mkdir "$tmp")
17596 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17597
17598 # Set up the scripts for CONFIG_FILES section.
17599 # No need to generate them if there are no CONFIG_FILES.
17600 # This happens for instance with `./config.status config.h'.
17601 if test -n "$CONFIG_FILES"; then
17602
17603
17604 ac_cr=`echo X | tr X '\015'`
17605 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17606 # But we know of no other shell where ac_cr would be empty at this
17607 # point, so we can use a bashism as a fallback.
17608 if test "x$ac_cr" = x; then
17609 eval ac_cr=\$\'\\r\'
17610 fi
17611 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17612 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17613 ac_cs_awk_cr='\r'
17614 else
17615 ac_cs_awk_cr=$ac_cr
17616 fi
17617
17618 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17619 _ACEOF
17620
17621
17622 {
17623 echo "cat >conf$$subs.awk <<_ACEOF" &&
17624 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17625 echo "_ACEOF"
17626 } >conf$$subs.sh ||
17627 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17628 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17629 ac_delim='%!_!# '
17630 for ac_last_try in false false false false false :; do
17631 . ./conf$$subs.sh ||
17632 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17633
17634 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17635 if test $ac_delim_n = $ac_delim_num; then
17636 break
17637 elif $ac_last_try; then
17638 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17639 else
17640 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17641 fi
17642 done
17643 rm -f conf$$subs.sh
17644
17645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17646 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17647 _ACEOF
17648 sed -n '
17649 h
17650 s/^/S["/; s/!.*/"]=/
17651 p
17652 g
17653 s/^[^!]*!//
17654 :repl
17655 t repl
17656 s/'"$ac_delim"'$//
17657 t delim
17658 :nl
17659 h
17660 s/\(.\{148\}\).*/\1/
17661 t more1
17662 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17663 p
17664 n
17665 b repl
17666 :more1
17667 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17668 p
17669 g
17670 s/.\{148\}//
17671 t nl
17672 :delim
17673 h
17674 s/\(.\{148\}\).*/\1/
17675 t more2
17676 s/["\\]/\\&/g; s/^/"/; s/$/"/
17677 p
17678 b
17679 :more2
17680 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17681 p
17682 g
17683 s/.\{148\}//
17684 t delim
17685 ' <conf$$subs.awk | sed '
17686 /^[^""]/{
17687 N
17688 s/\n//
17689 }
17690 ' >>$CONFIG_STATUS || ac_write_fail=1
17691 rm -f conf$$subs.awk
17692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17693 _ACAWK
17694 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17695 for (key in S) S_is_set[key] = 1
17696 FS = "\a"
17697
17698 }
17699 {
17700 line = $ 0
17701 nfields = split(line, field, "@")
17702 substed = 0
17703 len = length(field[1])
17704 for (i = 2; i < nfields; i++) {
17705 key = field[i]
17706 keylen = length(key)
17707 if (S_is_set[key]) {
17708 value = S[key]
17709 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17710 len += length(value) + length(field[++i])
17711 substed = 1
17712 } else
17713 len += 1 + keylen
17714 }
17715
17716 print line
17717 }
17718
17719 _ACAWK
17720 _ACEOF
17721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17722 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17723 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17724 else
17725 cat
17726 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17727 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17728 _ACEOF
17729
17730 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17731 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17732 # trailing colons and then remove the whole line if VPATH becomes empty
17733 # (actually we leave an empty line to preserve line numbers).
17734 if test "x$srcdir" = x.; then
17735 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17736 s/:*\$(srcdir):*/:/
17737 s/:*\${srcdir}:*/:/
17738 s/:*@srcdir@:*/:/
17739 s/^\([^=]*=[ ]*\):*/\1/
17740 s/:*$//
17741 s/^[^=]*=[ ]*$//
17742 }'
17743 fi
17744
17745 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17746 fi # test -n "$CONFIG_FILES"
17747
17748 # Set up the scripts for CONFIG_HEADERS section.
17749 # No need to generate them if there are no CONFIG_HEADERS.
17750 # This happens for instance with `./config.status Makefile'.
17751 if test -n "$CONFIG_HEADERS"; then
17752 cat >"$tmp/defines.awk" <<\_ACAWK ||
17753 BEGIN {
17754 _ACEOF
17755
17756 # Transform confdefs.h into an awk script `defines.awk', embedded as
17757 # here-document in config.status, that substitutes the proper values into
17758 # config.h.in to produce config.h.
17759
17760 # Create a delimiter string that does not exist in confdefs.h, to ease
17761 # handling of long lines.
17762 ac_delim='%!_!# '
17763 for ac_last_try in false false :; do
17764 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17765 if test -z "$ac_t"; then
17766 break
17767 elif $ac_last_try; then
17768 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17769 else
17770 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17771 fi
17772 done
17773
17774 # For the awk script, D is an array of macro values keyed by name,
17775 # likewise P contains macro parameters if any. Preserve backslash
17776 # newline sequences.
17777
17778 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17779 sed -n '
17780 s/.\{148\}/&'"$ac_delim"'/g
17781 t rset
17782 :rset
17783 s/^[ ]*#[ ]*define[ ][ ]*/ /
17784 t def
17785 d
17786 :def
17787 s/\\$//
17788 t bsnl
17789 s/["\\]/\\&/g
17790 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17791 D["\1"]=" \3"/p
17792 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17793 d
17794 :bsnl
17795 s/["\\]/\\&/g
17796 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17797 D["\1"]=" \3\\\\\\n"\\/p
17798 t cont
17799 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17800 t cont
17801 d
17802 :cont
17803 n
17804 s/.\{148\}/&'"$ac_delim"'/g
17805 t clear
17806 :clear
17807 s/\\$//
17808 t bsnlc
17809 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17810 d
17811 :bsnlc
17812 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17813 b cont
17814 ' <confdefs.h | sed '
17815 s/'"$ac_delim"'/"\\\
17816 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17817
17818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17819 for (key in D) D_is_set[key] = 1
17820 FS = "\a"
17821 }
17822 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17823 line = \$ 0
17824 split(line, arg, " ")
17825 if (arg[1] == "#") {
17826 defundef = arg[2]
17827 mac1 = arg[3]
17828 } else {
17829 defundef = substr(arg[1], 2)
17830 mac1 = arg[2]
17831 }
17832 split(mac1, mac2, "(") #)
17833 macro = mac2[1]
17834 prefix = substr(line, 1, index(line, defundef) - 1)
17835 if (D_is_set[macro]) {
17836 # Preserve the white space surrounding the "#".
17837 print prefix "define", macro P[macro] D[macro]
17838 next
17839 } else {
17840 # Replace #undef with comments. This is necessary, for example,
17841 # in the case of _POSIX_SOURCE, which is predefined and required
17842 # on some systems where configure will not decide to define it.
17843 if (defundef == "undef") {
17844 print "/*", prefix defundef, macro, "*/"
17845 next
17846 }
17847 }
17848 }
17849 { print }
17850 _ACAWK
17851 _ACEOF
17852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17853 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17854 fi # test -n "$CONFIG_HEADERS"
17855
17856
17857 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17858 shift
17859 for ac_tag
17860 do
17861 case $ac_tag in
17862 :[FHLC]) ac_mode=$ac_tag; continue;;
17863 esac
17864 case $ac_mode$ac_tag in
17865 :[FHL]*:*);;
17866 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17867 :[FH]-) ac_tag=-:-;;
17868 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17869 esac
17870 ac_save_IFS=$IFS
17871 IFS=:
17872 set x $ac_tag
17873 IFS=$ac_save_IFS
17874 shift
17875 ac_file=$1
17876 shift
17877
17878 case $ac_mode in
17879 :L) ac_source=$1;;
17880 :[FH])
17881 ac_file_inputs=
17882 for ac_f
17883 do
17884 case $ac_f in
17885 -) ac_f="$tmp/stdin";;
17886 *) # Look for the file first in the build tree, then in the source tree
17887 # (if the path is not absolute). The absolute path cannot be DOS-style,
17888 # because $ac_f cannot contain `:'.
17889 test -f "$ac_f" ||
17890 case $ac_f in
17891 [\\/$]*) false;;
17892 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17893 esac ||
17894 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17895 esac
17896 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17897 as_fn_append ac_file_inputs " '$ac_f'"
17898 done
17899
17900 # Let's still pretend it is `configure' which instantiates (i.e., don't
17901 # use $as_me), people would be surprised to read:
17902 # /* config.h. Generated by config.status. */
17903 configure_input='Generated from '`
17904 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17905 `' by configure.'
17906 if test x"$ac_file" != x-; then
17907 configure_input="$ac_file. $configure_input"
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17909 $as_echo "$as_me: creating $ac_file" >&6;}
17910 fi
17911 # Neutralize special characters interpreted by sed in replacement strings.
17912 case $configure_input in #(
17913 *\&* | *\|* | *\\* )
17914 ac_sed_conf_input=`$as_echo "$configure_input" |
17915 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17916 *) ac_sed_conf_input=$configure_input;;
17917 esac
17918
17919 case $ac_tag in
17920 *:-:* | *:-) cat >"$tmp/stdin" \
17921 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17922 esac
17923 ;;
17924 esac
17925
17926 ac_dir=`$as_dirname -- "$ac_file" ||
17927 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17928 X"$ac_file" : 'X\(//\)[^/]' \| \
17929 X"$ac_file" : 'X\(//\)$' \| \
17930 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17931 $as_echo X"$ac_file" |
17932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17933 s//\1/
17934 q
17935 }
17936 /^X\(\/\/\)[^/].*/{
17937 s//\1/
17938 q
17939 }
17940 /^X\(\/\/\)$/{
17941 s//\1/
17942 q
17943 }
17944 /^X\(\/\).*/{
17945 s//\1/
17946 q
17947 }
17948 s/.*/./; q'`
17949 as_dir="$ac_dir"; as_fn_mkdir_p
17950 ac_builddir=.
17951
17952 case "$ac_dir" in
17953 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17954 *)
17955 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17956 # A ".." for each directory in $ac_dir_suffix.
17957 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17958 case $ac_top_builddir_sub in
17959 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17960 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17961 esac ;;
17962 esac
17963 ac_abs_top_builddir=$ac_pwd
17964 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17965 # for backward compatibility:
17966 ac_top_builddir=$ac_top_build_prefix
17967
17968 case $srcdir in
17969 .) # We are building in place.
17970 ac_srcdir=.
17971 ac_top_srcdir=$ac_top_builddir_sub
17972 ac_abs_top_srcdir=$ac_pwd ;;
17973 [\\/]* | ?:[\\/]* ) # Absolute name.
17974 ac_srcdir=$srcdir$ac_dir_suffix;
17975 ac_top_srcdir=$srcdir
17976 ac_abs_top_srcdir=$srcdir ;;
17977 *) # Relative name.
17978 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17979 ac_top_srcdir=$ac_top_build_prefix$srcdir
17980 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17981 esac
17982 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17983
17984
17985 case $ac_mode in
17986 :F)
17987 #
17988 # CONFIG_FILE
17989 #
17990
17991 case $INSTALL in
17992 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17993 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17994 esac
17995 ac_MKDIR_P=$MKDIR_P
17996 case $MKDIR_P in
17997 [\\/$]* | ?:[\\/]* ) ;;
17998 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17999 esac
18000 _ACEOF
18001
18002 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18003 # If the template does not know about datarootdir, expand it.
18004 # FIXME: This hack should be removed a few years after 2.60.
18005 ac_datarootdir_hack=; ac_datarootdir_seen=
18006 ac_sed_dataroot='
18007 /datarootdir/ {
18008 p
18009 q
18010 }
18011 /@datadir@/p
18012 /@docdir@/p
18013 /@infodir@/p
18014 /@localedir@/p
18015 /@mandir@/p'
18016 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18017 *datarootdir*) ac_datarootdir_seen=yes;;
18018 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18020 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18021 _ACEOF
18022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18023 ac_datarootdir_hack='
18024 s&@datadir@&$datadir&g
18025 s&@docdir@&$docdir&g
18026 s&@infodir@&$infodir&g
18027 s&@localedir@&$localedir&g
18028 s&@mandir@&$mandir&g
18029 s&\\\${datarootdir}&$datarootdir&g' ;;
18030 esac
18031 _ACEOF
18032
18033 # Neutralize VPATH when `$srcdir' = `.'.
18034 # Shell code in configure.ac might set extrasub.
18035 # FIXME: do we really want to maintain this feature?
18036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18037 ac_sed_extra="$ac_vpsub
18038 $extrasub
18039 _ACEOF
18040 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18041 :t
18042 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18043 s|@configure_input@|$ac_sed_conf_input|;t t
18044 s&@top_builddir@&$ac_top_builddir_sub&;t t
18045 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18046 s&@srcdir@&$ac_srcdir&;t t
18047 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18048 s&@top_srcdir@&$ac_top_srcdir&;t t
18049 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18050 s&@builddir@&$ac_builddir&;t t
18051 s&@abs_builddir@&$ac_abs_builddir&;t t
18052 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18053 s&@INSTALL@&$ac_INSTALL&;t t
18054 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18055 $ac_datarootdir_hack
18056 "
18057 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18058 || as_fn_error "could not create $ac_file" "$LINENO" 5
18059
18060 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18061 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18062 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18064 which seems to be undefined. Please make sure it is defined." >&5
18065 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18066 which seems to be undefined. Please make sure it is defined." >&2;}
18067
18068 rm -f "$tmp/stdin"
18069 case $ac_file in
18070 -) cat "$tmp/out" && rm -f "$tmp/out";;
18071 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18072 esac \
18073 || as_fn_error "could not create $ac_file" "$LINENO" 5
18074 ;;
18075 :H)
18076 #
18077 # CONFIG_HEADER
18078 #
18079 if test x"$ac_file" != x-; then
18080 {
18081 $as_echo "/* $configure_input */" \
18082 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18083 } >"$tmp/config.h" \
18084 || as_fn_error "could not create $ac_file" "$LINENO" 5
18085 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18087 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18088 else
18089 rm -f "$ac_file"
18090 mv "$tmp/config.h" "$ac_file" \
18091 || as_fn_error "could not create $ac_file" "$LINENO" 5
18092 fi
18093 else
18094 $as_echo "/* $configure_input */" \
18095 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18096 || as_fn_error "could not create -" "$LINENO" 5
18097 fi
18098 # Compute "$ac_file"'s index in $config_headers.
18099 _am_arg="$ac_file"
18100 _am_stamp_count=1
18101 for _am_header in $config_headers :; do
18102 case $_am_header in
18103 $_am_arg | $_am_arg:* )
18104 break ;;
18105 * )
18106 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18107 esac
18108 done
18109 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18110 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18111 X"$_am_arg" : 'X\(//\)[^/]' \| \
18112 X"$_am_arg" : 'X\(//\)$' \| \
18113 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18114 $as_echo X"$_am_arg" |
18115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18116 s//\1/
18117 q
18118 }
18119 /^X\(\/\/\)[^/].*/{
18120 s//\1/
18121 q
18122 }
18123 /^X\(\/\/\)$/{
18124 s//\1/
18125 q
18126 }
18127 /^X\(\/\).*/{
18128 s//\1/
18129 q
18130 }
18131 s/.*/./; q'`/stamp-h$_am_stamp_count
18132 ;;
18133
18134 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18135 $as_echo "$as_me: executing $ac_file commands" >&6;}
18136 ;;
18137 esac
18138
18139
18140 case $ac_file$ac_mode in
18141 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18142 # Autoconf 2.62 quotes --file arguments for eval, but not when files
18143 # are listed without --file. Let's play safe and only enable the eval
18144 # if we detect the quoting.
18145 case $CONFIG_FILES in
18146 *\'*) eval set x "$CONFIG_FILES" ;;
18147 *) set x $CONFIG_FILES ;;
18148 esac
18149 shift
18150 for mf
18151 do
18152 # Strip MF so we end up with the name of the file.
18153 mf=`echo "$mf" | sed -e 's/:.*$//'`
18154 # Check whether this is an Automake generated Makefile or not.
18155 # We used to match only the files named `Makefile.in', but
18156 # some people rename them; so instead we look at the file content.
18157 # Grep'ing the first line is not enough: some people post-process
18158 # each Makefile.in and add a new line on top of each file to say so.
18159 # Grep'ing the whole file is not good either: AIX grep has a line
18160 # limit of 2048, but all sed's we know have understand at least 4000.
18161 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18162 dirpart=`$as_dirname -- "$mf" ||
18163 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18164 X"$mf" : 'X\(//\)[^/]' \| \
18165 X"$mf" : 'X\(//\)$' \| \
18166 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18167 $as_echo X"$mf" |
18168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18169 s//\1/
18170 q
18171 }
18172 /^X\(\/\/\)[^/].*/{
18173 s//\1/
18174 q
18175 }
18176 /^X\(\/\/\)$/{
18177 s//\1/
18178 q
18179 }
18180 /^X\(\/\).*/{
18181 s//\1/
18182 q
18183 }
18184 s/.*/./; q'`
18185 else
18186 continue
18187 fi
18188 # Extract the definition of DEPDIR, am__include, and am__quote
18189 # from the Makefile without running `make'.
18190 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18191 test -z "$DEPDIR" && continue
18192 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18193 test -z "am__include" && continue
18194 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18195 # When using ansi2knr, U may be empty or an underscore; expand it
18196 U=`sed -n 's/^U = //p' < "$mf"`
18197 # Find all dependency output files, they are included files with
18198 # $(DEPDIR) in their names. We invoke sed twice because it is the
18199 # simplest approach to changing $(DEPDIR) to its actual value in the
18200 # expansion.
18201 for file in `sed -n "
18202 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18203 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18204 # Make sure the directory exists.
18205 test -f "$dirpart/$file" && continue
18206 fdir=`$as_dirname -- "$file" ||
18207 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18208 X"$file" : 'X\(//\)[^/]' \| \
18209 X"$file" : 'X\(//\)$' \| \
18210 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18211 $as_echo X"$file" |
18212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18213 s//\1/
18214 q
18215 }
18216 /^X\(\/\/\)[^/].*/{
18217 s//\1/
18218 q
18219 }
18220 /^X\(\/\/\)$/{
18221 s//\1/
18222 q
18223 }
18224 /^X\(\/\).*/{
18225 s//\1/
18226 q
18227 }
18228 s/.*/./; q'`
18229 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18230 # echo "creating $dirpart/$file"
18231 echo '# dummy' > "$dirpart/$file"
18232 done
18233 done
18234 }
18235 ;;
18236 "default":C)
18237 case x$CONFIG_HEADERS in
18238 xconfig.h:config.in)
18239 echo > stamp-h ;;
18240 esac
18241 ;;
18242
18243 esac
18244 done # for ac_tag
18245
18246
18247 as_fn_exit 0
18248 _ACEOF
18249 ac_clean_files=$ac_clean_files_save
18250
18251 test $ac_write_fail = 0 ||
18252 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
18253
18254
18255 # configure is writing to config.log, and then calls config.status.
18256 # config.status does its own redirection, appending to config.log.
18257 # Unfortunately, on DOS this fails, as config.log is still kept open
18258 # by configure, so config.status won't be able to write to it; its
18259 # output is simply discarded. So we exec the FD to /dev/null,
18260 # effectively closing config.log, so it can be properly (re)opened and
18261 # appended to by config.status. When coming back to configure, we
18262 # need to make the FD available again.
18263 if test "$no_create" != yes; then
18264 ac_cs_success=:
18265 ac_config_status_args=
18266 test "$silent" = yes &&
18267 ac_config_status_args="$ac_config_status_args --quiet"
18268 exec 5>/dev/null
18269 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18270 exec 5>>config.log
18271 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18272 # would make configure fail if this is the last instruction.
18273 $ac_cs_success || as_fn_exit $?
18274 fi
18275 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18277 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18278 fi
18279
18280
18281 exit 0
This page took 0.565361 seconds and 4 git commands to generate.