daily update
[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 REPLACE_UTIMENSAT
685 REPLACE_STAT
686 REPLACE_MKNOD
687 REPLACE_MKFIFO
688 REPLACE_MKDIR
689 REPLACE_LSTAT
690 REPLACE_FUTIMENS
691 REPLACE_FSTATAT
692 REPLACE_FSTAT
693 HAVE_UTIMENSAT
694 HAVE_MKNODAT
695 HAVE_MKNOD
696 HAVE_MKFIFOAT
697 HAVE_MKFIFO
698 HAVE_MKDIRAT
699 HAVE_LSTAT
700 HAVE_LCHMOD
701 HAVE_FUTIMENS
702 HAVE_FSTATAT
703 HAVE_FCHMODAT
704 GNULIB_UTIMENSAT
705 GNULIB_STAT
706 GNULIB_MKNODAT
707 GNULIB_MKNOD
708 GNULIB_MKFIFOAT
709 GNULIB_MKFIFO
710 GNULIB_MKDIRAT
711 GNULIB_LSTAT
712 GNULIB_LCHMOD
713 GNULIB_FUTIMENS
714 GNULIB_FSTATAT
715 GNULIB_FSTAT
716 GNULIB_FCHMODAT
717 NEXT_AS_FIRST_DIRECTIVE_STRING_H
718 NEXT_STRING_H
719 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
720 NEXT_STDDEF_H
721 GL_GENERATE_STDDEF_H_FALSE
722 GL_GENERATE_STDDEF_H_TRUE
723 STDDEF_H
724 HAVE_WCHAR_T
725 REPLACE_NULL
726 HAVE__BOOL
727 GL_GENERATE_STDBOOL_H_FALSE
728 GL_GENERATE_STDBOOL_H_TRUE
729 STDBOOL_H
730 UNDEFINE_STRTOK_R
731 REPLACE_STRTOK_R
732 REPLACE_STRSIGNAL
733 REPLACE_STRNLEN
734 REPLACE_STRNDUP
735 REPLACE_STRNCAT
736 REPLACE_STRERROR_R
737 REPLACE_STRERROR
738 REPLACE_STRCHRNUL
739 REPLACE_STRCASESTR
740 REPLACE_STRSTR
741 REPLACE_STRDUP
742 REPLACE_STPNCPY
743 REPLACE_MEMMEM
744 REPLACE_MEMCHR
745 HAVE_STRVERSCMP
746 HAVE_DECL_STRSIGNAL
747 HAVE_DECL_STRERROR_R
748 HAVE_DECL_STRTOK_R
749 HAVE_STRCASESTR
750 HAVE_STRSEP
751 HAVE_STRPBRK
752 HAVE_DECL_STRNLEN
753 HAVE_DECL_STRNDUP
754 HAVE_DECL_STRDUP
755 HAVE_STRCHRNUL
756 HAVE_STPNCPY
757 HAVE_STPCPY
758 HAVE_RAWMEMCHR
759 HAVE_DECL_MEMRCHR
760 HAVE_MEMPCPY
761 HAVE_DECL_MEMMEM
762 HAVE_MEMCHR
763 HAVE_FFSLL
764 HAVE_FFSL
765 HAVE_MBSLEN
766 GNULIB_STRVERSCMP
767 GNULIB_STRSIGNAL
768 GNULIB_STRERROR_R
769 GNULIB_STRERROR
770 GNULIB_MBSTOK_R
771 GNULIB_MBSSEP
772 GNULIB_MBSSPN
773 GNULIB_MBSPBRK
774 GNULIB_MBSCSPN
775 GNULIB_MBSCASESTR
776 GNULIB_MBSPCASECMP
777 GNULIB_MBSNCASECMP
778 GNULIB_MBSCASECMP
779 GNULIB_MBSSTR
780 GNULIB_MBSRCHR
781 GNULIB_MBSCHR
782 GNULIB_MBSNLEN
783 GNULIB_MBSLEN
784 GNULIB_STRTOK_R
785 GNULIB_STRCASESTR
786 GNULIB_STRSTR
787 GNULIB_STRSEP
788 GNULIB_STRPBRK
789 GNULIB_STRNLEN
790 GNULIB_STRNDUP
791 GNULIB_STRNCAT
792 GNULIB_STRDUP
793 GNULIB_STRCHRNUL
794 GNULIB_STPNCPY
795 GNULIB_STPCPY
796 GNULIB_RAWMEMCHR
797 GNULIB_MEMRCHR
798 GNULIB_MEMPCPY
799 GNULIB_MEMMEM
800 GNULIB_MEMCHR
801 GNULIB_FFSLL
802 GNULIB_FFSL
803 LOCALE_FR
804 LOCALE_FR_UTF8
805 LOCALE_ZH_CN
806 LOCALE_JA
807 REPLACE_WCSWIDTH
808 REPLACE_WCWIDTH
809 REPLACE_WCSNRTOMBS
810 REPLACE_WCSRTOMBS
811 REPLACE_WCRTOMB
812 REPLACE_MBSNRTOWCS
813 REPLACE_MBSRTOWCS
814 REPLACE_MBRLEN
815 REPLACE_MBRTOWC
816 REPLACE_MBSINIT
817 REPLACE_WCTOB
818 REPLACE_BTOWC
819 REPLACE_MBSTATE_T
820 HAVE_DECL_WCWIDTH
821 HAVE_DECL_WCTOB
822 HAVE_WCSWIDTH
823 HAVE_WCSTOK
824 HAVE_WCSSTR
825 HAVE_WCSPBRK
826 HAVE_WCSSPN
827 HAVE_WCSCSPN
828 HAVE_WCSRCHR
829 HAVE_WCSCHR
830 HAVE_WCSDUP
831 HAVE_WCSXFRM
832 HAVE_WCSCOLL
833 HAVE_WCSNCASECMP
834 HAVE_WCSCASECMP
835 HAVE_WCSNCMP
836 HAVE_WCSCMP
837 HAVE_WCSNCAT
838 HAVE_WCSCAT
839 HAVE_WCPNCPY
840 HAVE_WCSNCPY
841 HAVE_WCPCPY
842 HAVE_WCSCPY
843 HAVE_WCSNLEN
844 HAVE_WCSLEN
845 HAVE_WMEMSET
846 HAVE_WMEMMOVE
847 HAVE_WMEMCPY
848 HAVE_WMEMCMP
849 HAVE_WMEMCHR
850 HAVE_WCSNRTOMBS
851 HAVE_WCSRTOMBS
852 HAVE_WCRTOMB
853 HAVE_MBSNRTOWCS
854 HAVE_MBSRTOWCS
855 HAVE_MBRLEN
856 HAVE_MBRTOWC
857 HAVE_MBSINIT
858 HAVE_BTOWC
859 GNULIB_WCSWIDTH
860 GNULIB_WCSTOK
861 GNULIB_WCSSTR
862 GNULIB_WCSPBRK
863 GNULIB_WCSSPN
864 GNULIB_WCSCSPN
865 GNULIB_WCSRCHR
866 GNULIB_WCSCHR
867 GNULIB_WCSDUP
868 GNULIB_WCSXFRM
869 GNULIB_WCSCOLL
870 GNULIB_WCSNCASECMP
871 GNULIB_WCSCASECMP
872 GNULIB_WCSNCMP
873 GNULIB_WCSCMP
874 GNULIB_WCSNCAT
875 GNULIB_WCSCAT
876 GNULIB_WCPNCPY
877 GNULIB_WCSNCPY
878 GNULIB_WCPCPY
879 GNULIB_WCSCPY
880 GNULIB_WCSNLEN
881 GNULIB_WCSLEN
882 GNULIB_WMEMSET
883 GNULIB_WMEMMOVE
884 GNULIB_WMEMCPY
885 GNULIB_WMEMCMP
886 GNULIB_WMEMCHR
887 GNULIB_WCWIDTH
888 GNULIB_WCSNRTOMBS
889 GNULIB_WCSRTOMBS
890 GNULIB_WCRTOMB
891 GNULIB_MBSNRTOWCS
892 GNULIB_MBSRTOWCS
893 GNULIB_MBRLEN
894 GNULIB_MBRTOWC
895 GNULIB_MBSINIT
896 GNULIB_WCTOB
897 GNULIB_BTOWC
898 NEXT_AS_FIRST_DIRECTIVE_MATH_H
899 NEXT_MATH_H
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 HAVE_DIRENT_H
1213 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1214 NEXT_DIRENT_H
1215 PRAGMA_COLUMNS
1216 PRAGMA_SYSTEM_HEADER
1217 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1218 INCLUDE_NEXT
1219 REPLACE_FDOPENDIR
1220 REPLACE_DIRFD
1221 REPLACE_CLOSEDIR
1222 REPLACE_OPENDIR
1223 HAVE_ALPHASORT
1224 HAVE_SCANDIR
1225 HAVE_FDOPENDIR
1226 HAVE_DECL_FDOPENDIR
1227 HAVE_DECL_DIRFD
1228 HAVE_CLOSEDIR
1229 HAVE_REWINDDIR
1230 HAVE_READDIR
1231 HAVE_OPENDIR
1232 GNULIB_ALPHASORT
1233 GNULIB_SCANDIR
1234 GNULIB_FDOPENDIR
1235 GNULIB_DIRFD
1236 GNULIB_CLOSEDIR
1237 GNULIB_REWINDDIR
1238 GNULIB_READDIR
1239 GNULIB_OPENDIR
1240 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1241 UNISTD_H_HAVE_WINSOCK2_H
1242 REPLACE_WRITE
1243 REPLACE_USLEEP
1244 REPLACE_UNLINKAT
1245 REPLACE_UNLINK
1246 REPLACE_TTYNAME_R
1247 REPLACE_SYMLINK
1248 REPLACE_SLEEP
1249 REPLACE_RMDIR
1250 REPLACE_READLINK
1251 REPLACE_READ
1252 REPLACE_PWRITE
1253 REPLACE_PREAD
1254 REPLACE_LSEEK
1255 REPLACE_LINKAT
1256 REPLACE_LINK
1257 REPLACE_LCHOWN
1258 REPLACE_ISATTY
1259 REPLACE_GETPAGESIZE
1260 REPLACE_GETGROUPS
1261 REPLACE_GETLOGIN_R
1262 REPLACE_GETDOMAINNAME
1263 REPLACE_GETCWD
1264 REPLACE_FTRUNCATE
1265 REPLACE_FCHOWNAT
1266 REPLACE_DUP2
1267 REPLACE_DUP
1268 REPLACE_CLOSE
1269 REPLACE_CHOWN
1270 HAVE_SYS_PARAM_H
1271 HAVE_OS_H
1272 HAVE_DECL_TTYNAME_R
1273 HAVE_DECL_SETHOSTNAME
1274 HAVE_DECL_GETUSERSHELL
1275 HAVE_DECL_GETPAGESIZE
1276 HAVE_DECL_GETLOGIN_R
1277 HAVE_DECL_GETDOMAINNAME
1278 HAVE_DECL_FDATASYNC
1279 HAVE_DECL_FCHDIR
1280 HAVE_DECL_ENVIRON
1281 HAVE_USLEEP
1282 HAVE_UNLINKAT
1283 HAVE_SYMLINKAT
1284 HAVE_SYMLINK
1285 HAVE_SLEEP
1286 HAVE_SETHOSTNAME
1287 HAVE_READLINKAT
1288 HAVE_READLINK
1289 HAVE_PWRITE
1290 HAVE_PREAD
1291 HAVE_PIPE2
1292 HAVE_PIPE
1293 HAVE_LINKAT
1294 HAVE_LINK
1295 HAVE_LCHOWN
1296 HAVE_GROUP_MEMBER
1297 HAVE_GETPAGESIZE
1298 HAVE_GETLOGIN
1299 HAVE_GETHOSTNAME
1300 HAVE_GETGROUPS
1301 HAVE_GETDTABLESIZE
1302 HAVE_FTRUNCATE
1303 HAVE_FSYNC
1304 HAVE_FDATASYNC
1305 HAVE_FCHOWNAT
1306 HAVE_FCHDIR
1307 HAVE_FACCESSAT
1308 HAVE_EUIDACCESS
1309 HAVE_DUP3
1310 HAVE_DUP2
1311 HAVE_CHOWN
1312 GNULIB_WRITE
1313 GNULIB_USLEEP
1314 GNULIB_UNLINKAT
1315 GNULIB_UNLINK
1316 GNULIB_UNISTD_H_SIGPIPE
1317 GNULIB_UNISTD_H_NONBLOCKING
1318 GNULIB_TTYNAME_R
1319 GNULIB_SYMLINKAT
1320 GNULIB_SYMLINK
1321 GNULIB_SLEEP
1322 GNULIB_SETHOSTNAME
1323 GNULIB_RMDIR
1324 GNULIB_READLINKAT
1325 GNULIB_READLINK
1326 GNULIB_READ
1327 GNULIB_PWRITE
1328 GNULIB_PREAD
1329 GNULIB_PIPE2
1330 GNULIB_PIPE
1331 GNULIB_LSEEK
1332 GNULIB_LINKAT
1333 GNULIB_LINK
1334 GNULIB_LCHOWN
1335 GNULIB_ISATTY
1336 GNULIB_GROUP_MEMBER
1337 GNULIB_GETUSERSHELL
1338 GNULIB_GETPAGESIZE
1339 GNULIB_GETLOGIN_R
1340 GNULIB_GETLOGIN
1341 GNULIB_GETHOSTNAME
1342 GNULIB_GETGROUPS
1343 GNULIB_GETDTABLESIZE
1344 GNULIB_GETDOMAINNAME
1345 GNULIB_GETCWD
1346 GNULIB_FTRUNCATE
1347 GNULIB_FSYNC
1348 GNULIB_FDATASYNC
1349 GNULIB_FCHOWNAT
1350 GNULIB_FCHDIR
1351 GNULIB_FACCESSAT
1352 GNULIB_EUIDACCESS
1353 GNULIB_ENVIRON
1354 GNULIB_DUP3
1355 GNULIB_DUP2
1356 GNULIB_DUP
1357 GNULIB_CLOSE
1358 GNULIB_CHOWN
1359 GNULIB_CHDIR
1360 pkglibexecdir
1361 lispdir
1362 GL_GENERATE_ALLOCA_H_FALSE
1363 GL_GENERATE_ALLOCA_H_TRUE
1364 ALLOCA_H
1365 ALLOCA
1366 GL_COND_LIBTOOL_FALSE
1367 GL_COND_LIBTOOL_TRUE
1368 target_os
1369 target_vendor
1370 target_cpu
1371 target
1372 RANLIB
1373 ARFLAGS
1374 AR
1375 EGREP
1376 GREP
1377 CPP
1378 host_os
1379 host_vendor
1380 host_cpu
1381 host
1382 build_os
1383 build_vendor
1384 build_cpu
1385 build
1386 OBJEXT
1387 EXEEXT
1388 ac_ct_CC
1389 CPPFLAGS
1390 LDFLAGS
1391 CFLAGS
1392 CC
1393 MAINT
1394 MAINTAINER_MODE_FALSE
1395 MAINTAINER_MODE_TRUE
1396 target_alias
1397 host_alias
1398 build_alias
1399 LIBS
1400 ECHO_T
1401 ECHO_N
1402 ECHO_C
1403 DEFS
1404 mandir
1405 localedir
1406 libdir
1407 psdir
1408 pdfdir
1409 dvidir
1410 htmldir
1411 infodir
1412 docdir
1413 oldincludedir
1414 includedir
1415 localstatedir
1416 sharedstatedir
1417 sysconfdir
1418 datadir
1419 datarootdir
1420 libexecdir
1421 sbindir
1422 bindir
1423 program_transform_name
1424 prefix
1425 exec_prefix
1426 PACKAGE_URL
1427 PACKAGE_BUGREPORT
1428 PACKAGE_STRING
1429 PACKAGE_VERSION
1430 PACKAGE_TARNAME
1431 PACKAGE_NAME
1432 PATH_SEPARATOR
1433 SHELL'
1434 ac_subst_files=''
1435 ac_user_opts='
1436 enable_option_checking
1437 enable_maintainer_mode
1438 enable_dependency_tracking
1439 '
1440 ac_precious_vars='build_alias
1441 host_alias
1442 target_alias
1443 CC
1444 CFLAGS
1445 LDFLAGS
1446 LIBS
1447 CPPFLAGS
1448 CPP'
1449
1450
1451 # Initialize some variables set by options.
1452 ac_init_help=
1453 ac_init_version=false
1454 ac_unrecognized_opts=
1455 ac_unrecognized_sep=
1456 # The variables have the same names as the options, with
1457 # dashes changed to underlines.
1458 cache_file=/dev/null
1459 exec_prefix=NONE
1460 no_create=
1461 no_recursion=
1462 prefix=NONE
1463 program_prefix=NONE
1464 program_suffix=NONE
1465 program_transform_name=s,x,x,
1466 silent=
1467 site=
1468 srcdir=
1469 verbose=
1470 x_includes=NONE
1471 x_libraries=NONE
1472
1473 # Installation directory options.
1474 # These are left unexpanded so users can "make install exec_prefix=/foo"
1475 # and all the variables that are supposed to be based on exec_prefix
1476 # by default will actually change.
1477 # Use braces instead of parens because sh, perl, etc. also accept them.
1478 # (The list follows the same order as the GNU Coding Standards.)
1479 bindir='${exec_prefix}/bin'
1480 sbindir='${exec_prefix}/sbin'
1481 libexecdir='${exec_prefix}/libexec'
1482 datarootdir='${prefix}/share'
1483 datadir='${datarootdir}'
1484 sysconfdir='${prefix}/etc'
1485 sharedstatedir='${prefix}/com'
1486 localstatedir='${prefix}/var'
1487 includedir='${prefix}/include'
1488 oldincludedir='/usr/include'
1489 docdir='${datarootdir}/doc/${PACKAGE}'
1490 infodir='${datarootdir}/info'
1491 htmldir='${docdir}'
1492 dvidir='${docdir}'
1493 pdfdir='${docdir}'
1494 psdir='${docdir}'
1495 libdir='${exec_prefix}/lib'
1496 localedir='${datarootdir}/locale'
1497 mandir='${datarootdir}/man'
1498
1499 ac_prev=
1500 ac_dashdash=
1501 for ac_option
1502 do
1503 # If the previous option needs an argument, assign it.
1504 if test -n "$ac_prev"; then
1505 eval $ac_prev=\$ac_option
1506 ac_prev=
1507 continue
1508 fi
1509
1510 case $ac_option in
1511 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1512 *) ac_optarg=yes ;;
1513 esac
1514
1515 # Accept the important Cygnus configure options, so we can diagnose typos.
1516
1517 case $ac_dashdash$ac_option in
1518 --)
1519 ac_dashdash=yes ;;
1520
1521 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1522 ac_prev=bindir ;;
1523 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1524 bindir=$ac_optarg ;;
1525
1526 -build | --build | --buil | --bui | --bu)
1527 ac_prev=build_alias ;;
1528 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1529 build_alias=$ac_optarg ;;
1530
1531 -cache-file | --cache-file | --cache-fil | --cache-fi \
1532 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1533 ac_prev=cache_file ;;
1534 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1535 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1536 cache_file=$ac_optarg ;;
1537
1538 --config-cache | -C)
1539 cache_file=config.cache ;;
1540
1541 -datadir | --datadir | --datadi | --datad)
1542 ac_prev=datadir ;;
1543 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1544 datadir=$ac_optarg ;;
1545
1546 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1547 | --dataroo | --dataro | --datar)
1548 ac_prev=datarootdir ;;
1549 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1550 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1551 datarootdir=$ac_optarg ;;
1552
1553 -disable-* | --disable-*)
1554 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1555 # Reject names that are not valid shell variable names.
1556 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1557 as_fn_error "invalid feature name: $ac_useropt"
1558 ac_useropt_orig=$ac_useropt
1559 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1560 case $ac_user_opts in
1561 *"
1562 "enable_$ac_useropt"
1563 "*) ;;
1564 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1565 ac_unrecognized_sep=', ';;
1566 esac
1567 eval enable_$ac_useropt=no ;;
1568
1569 -docdir | --docdir | --docdi | --doc | --do)
1570 ac_prev=docdir ;;
1571 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1572 docdir=$ac_optarg ;;
1573
1574 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1575 ac_prev=dvidir ;;
1576 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1577 dvidir=$ac_optarg ;;
1578
1579 -enable-* | --enable-*)
1580 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1581 # Reject names that are not valid shell variable names.
1582 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1583 as_fn_error "invalid feature name: $ac_useropt"
1584 ac_useropt_orig=$ac_useropt
1585 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1586 case $ac_user_opts in
1587 *"
1588 "enable_$ac_useropt"
1589 "*) ;;
1590 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1591 ac_unrecognized_sep=', ';;
1592 esac
1593 eval enable_$ac_useropt=\$ac_optarg ;;
1594
1595 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1596 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1597 | --exec | --exe | --ex)
1598 ac_prev=exec_prefix ;;
1599 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1600 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1601 | --exec=* | --exe=* | --ex=*)
1602 exec_prefix=$ac_optarg ;;
1603
1604 -gas | --gas | --ga | --g)
1605 # Obsolete; use --with-gas.
1606 with_gas=yes ;;
1607
1608 -help | --help | --hel | --he | -h)
1609 ac_init_help=long ;;
1610 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1611 ac_init_help=recursive ;;
1612 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1613 ac_init_help=short ;;
1614
1615 -host | --host | --hos | --ho)
1616 ac_prev=host_alias ;;
1617 -host=* | --host=* | --hos=* | --ho=*)
1618 host_alias=$ac_optarg ;;
1619
1620 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1621 ac_prev=htmldir ;;
1622 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1623 | --ht=*)
1624 htmldir=$ac_optarg ;;
1625
1626 -includedir | --includedir | --includedi | --included | --include \
1627 | --includ | --inclu | --incl | --inc)
1628 ac_prev=includedir ;;
1629 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1630 | --includ=* | --inclu=* | --incl=* | --inc=*)
1631 includedir=$ac_optarg ;;
1632
1633 -infodir | --infodir | --infodi | --infod | --info | --inf)
1634 ac_prev=infodir ;;
1635 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1636 infodir=$ac_optarg ;;
1637
1638 -libdir | --libdir | --libdi | --libd)
1639 ac_prev=libdir ;;
1640 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1641 libdir=$ac_optarg ;;
1642
1643 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1644 | --libexe | --libex | --libe)
1645 ac_prev=libexecdir ;;
1646 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1647 | --libexe=* | --libex=* | --libe=*)
1648 libexecdir=$ac_optarg ;;
1649
1650 -localedir | --localedir | --localedi | --localed | --locale)
1651 ac_prev=localedir ;;
1652 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1653 localedir=$ac_optarg ;;
1654
1655 -localstatedir | --localstatedir | --localstatedi | --localstated \
1656 | --localstate | --localstat | --localsta | --localst | --locals)
1657 ac_prev=localstatedir ;;
1658 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1659 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1660 localstatedir=$ac_optarg ;;
1661
1662 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1663 ac_prev=mandir ;;
1664 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1665 mandir=$ac_optarg ;;
1666
1667 -nfp | --nfp | --nf)
1668 # Obsolete; use --without-fp.
1669 with_fp=no ;;
1670
1671 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1672 | --no-cr | --no-c | -n)
1673 no_create=yes ;;
1674
1675 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1676 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1677 no_recursion=yes ;;
1678
1679 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1680 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1681 | --oldin | --oldi | --old | --ol | --o)
1682 ac_prev=oldincludedir ;;
1683 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1684 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1685 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1686 oldincludedir=$ac_optarg ;;
1687
1688 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1689 ac_prev=prefix ;;
1690 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1691 prefix=$ac_optarg ;;
1692
1693 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1694 | --program-pre | --program-pr | --program-p)
1695 ac_prev=program_prefix ;;
1696 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1697 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1698 program_prefix=$ac_optarg ;;
1699
1700 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1701 | --program-suf | --program-su | --program-s)
1702 ac_prev=program_suffix ;;
1703 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1704 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1705 program_suffix=$ac_optarg ;;
1706
1707 -program-transform-name | --program-transform-name \
1708 | --program-transform-nam | --program-transform-na \
1709 | --program-transform-n | --program-transform- \
1710 | --program-transform | --program-transfor \
1711 | --program-transfo | --program-transf \
1712 | --program-trans | --program-tran \
1713 | --progr-tra | --program-tr | --program-t)
1714 ac_prev=program_transform_name ;;
1715 -program-transform-name=* | --program-transform-name=* \
1716 | --program-transform-nam=* | --program-transform-na=* \
1717 | --program-transform-n=* | --program-transform-=* \
1718 | --program-transform=* | --program-transfor=* \
1719 | --program-transfo=* | --program-transf=* \
1720 | --program-trans=* | --program-tran=* \
1721 | --progr-tra=* | --program-tr=* | --program-t=*)
1722 program_transform_name=$ac_optarg ;;
1723
1724 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1725 ac_prev=pdfdir ;;
1726 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1727 pdfdir=$ac_optarg ;;
1728
1729 -psdir | --psdir | --psdi | --psd | --ps)
1730 ac_prev=psdir ;;
1731 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1732 psdir=$ac_optarg ;;
1733
1734 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1735 | -silent | --silent | --silen | --sile | --sil)
1736 silent=yes ;;
1737
1738 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1739 ac_prev=sbindir ;;
1740 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1741 | --sbi=* | --sb=*)
1742 sbindir=$ac_optarg ;;
1743
1744 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1745 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1746 | --sharedst | --shareds | --shared | --share | --shar \
1747 | --sha | --sh)
1748 ac_prev=sharedstatedir ;;
1749 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1750 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1751 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1752 | --sha=* | --sh=*)
1753 sharedstatedir=$ac_optarg ;;
1754
1755 -site | --site | --sit)
1756 ac_prev=site ;;
1757 -site=* | --site=* | --sit=*)
1758 site=$ac_optarg ;;
1759
1760 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1761 ac_prev=srcdir ;;
1762 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1763 srcdir=$ac_optarg ;;
1764
1765 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1766 | --syscon | --sysco | --sysc | --sys | --sy)
1767 ac_prev=sysconfdir ;;
1768 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1769 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1770 sysconfdir=$ac_optarg ;;
1771
1772 -target | --target | --targe | --targ | --tar | --ta | --t)
1773 ac_prev=target_alias ;;
1774 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1775 target_alias=$ac_optarg ;;
1776
1777 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1778 verbose=yes ;;
1779
1780 -version | --version | --versio | --versi | --vers | -V)
1781 ac_init_version=: ;;
1782
1783 -with-* | --with-*)
1784 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1785 # Reject names that are not valid shell variable names.
1786 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1787 as_fn_error "invalid package name: $ac_useropt"
1788 ac_useropt_orig=$ac_useropt
1789 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1790 case $ac_user_opts in
1791 *"
1792 "with_$ac_useropt"
1793 "*) ;;
1794 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1795 ac_unrecognized_sep=', ';;
1796 esac
1797 eval with_$ac_useropt=\$ac_optarg ;;
1798
1799 -without-* | --without-*)
1800 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1801 # Reject names that are not valid shell variable names.
1802 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1803 as_fn_error "invalid package name: $ac_useropt"
1804 ac_useropt_orig=$ac_useropt
1805 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1806 case $ac_user_opts in
1807 *"
1808 "with_$ac_useropt"
1809 "*) ;;
1810 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1811 ac_unrecognized_sep=', ';;
1812 esac
1813 eval with_$ac_useropt=no ;;
1814
1815 --x)
1816 # Obsolete; use --with-x.
1817 with_x=yes ;;
1818
1819 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1820 | --x-incl | --x-inc | --x-in | --x-i)
1821 ac_prev=x_includes ;;
1822 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1823 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1824 x_includes=$ac_optarg ;;
1825
1826 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1827 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1828 ac_prev=x_libraries ;;
1829 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1830 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1831 x_libraries=$ac_optarg ;;
1832
1833 -*) as_fn_error "unrecognized option: \`$ac_option'
1834 Try \`$0 --help' for more information."
1835 ;;
1836
1837 *=*)
1838 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1839 # Reject names that are not valid shell variable names.
1840 case $ac_envvar in #(
1841 '' | [0-9]* | *[!_$as_cr_alnum]* )
1842 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1843 esac
1844 eval $ac_envvar=\$ac_optarg
1845 export $ac_envvar ;;
1846
1847 *)
1848 # FIXME: should be removed in autoconf 3.0.
1849 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1850 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1851 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1852 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1853 ;;
1854
1855 esac
1856 done
1857
1858 if test -n "$ac_prev"; then
1859 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1860 as_fn_error "missing argument to $ac_option"
1861 fi
1862
1863 if test -n "$ac_unrecognized_opts"; then
1864 case $enable_option_checking in
1865 no) ;;
1866 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1867 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1868 esac
1869 fi
1870
1871 # Check all directory arguments for consistency.
1872 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1873 datadir sysconfdir sharedstatedir localstatedir includedir \
1874 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1875 libdir localedir mandir
1876 do
1877 eval ac_val=\$$ac_var
1878 # Remove trailing slashes.
1879 case $ac_val in
1880 */ )
1881 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1882 eval $ac_var=\$ac_val;;
1883 esac
1884 # Be sure to have absolute directory names.
1885 case $ac_val in
1886 [\\/$]* | ?:[\\/]* ) continue;;
1887 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1888 esac
1889 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1890 done
1891
1892 # There might be people who depend on the old broken behavior: `$host'
1893 # used to hold the argument of --host etc.
1894 # FIXME: To remove some day.
1895 build=$build_alias
1896 host=$host_alias
1897 target=$target_alias
1898
1899 # FIXME: To remove some day.
1900 if test "x$host_alias" != x; then
1901 if test "x$build_alias" = x; then
1902 cross_compiling=maybe
1903 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1904 If a cross compiler is detected then cross compile mode will be used." >&2
1905 elif test "x$build_alias" != "x$host_alias"; then
1906 cross_compiling=yes
1907 fi
1908 fi
1909
1910 ac_tool_prefix=
1911 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1912
1913 test "$silent" = yes && exec 6>/dev/null
1914
1915
1916 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1917 ac_ls_di=`ls -di .` &&
1918 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1919 as_fn_error "working directory cannot be determined"
1920 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1921 as_fn_error "pwd does not report name of working directory"
1922
1923
1924 # Find the source files, if location was not specified.
1925 if test -z "$srcdir"; then
1926 ac_srcdir_defaulted=yes
1927 # Try the directory containing this script, then the parent directory.
1928 ac_confdir=`$as_dirname -- "$as_myself" ||
1929 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1930 X"$as_myself" : 'X\(//\)[^/]' \| \
1931 X"$as_myself" : 'X\(//\)$' \| \
1932 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1933 $as_echo X"$as_myself" |
1934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1935 s//\1/
1936 q
1937 }
1938 /^X\(\/\/\)[^/].*/{
1939 s//\1/
1940 q
1941 }
1942 /^X\(\/\/\)$/{
1943 s//\1/
1944 q
1945 }
1946 /^X\(\/\).*/{
1947 s//\1/
1948 q
1949 }
1950 s/.*/./; q'`
1951 srcdir=$ac_confdir
1952 if test ! -r "$srcdir/$ac_unique_file"; then
1953 srcdir=..
1954 fi
1955 else
1956 ac_srcdir_defaulted=no
1957 fi
1958 if test ! -r "$srcdir/$ac_unique_file"; then
1959 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1960 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1961 fi
1962 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1963 ac_abs_confdir=`(
1964 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1965 pwd)`
1966 # When building in place, set srcdir=.
1967 if test "$ac_abs_confdir" = "$ac_pwd"; then
1968 srcdir=.
1969 fi
1970 # Remove unnecessary trailing slashes from srcdir.
1971 # Double slashes in file names in object file debugging info
1972 # mess up M-x gdb in Emacs.
1973 case $srcdir in
1974 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1975 esac
1976 for ac_var in $ac_precious_vars; do
1977 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1978 eval ac_env_${ac_var}_value=\$${ac_var}
1979 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1980 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1981 done
1982
1983 #
1984 # Report the --help message.
1985 #
1986 if test "$ac_init_help" = "long"; then
1987 # Omit some internal or obsolete options to make the list less imposing.
1988 # This message is too long to be a string in the A/UX 3.1 sh.
1989 cat <<_ACEOF
1990 \`configure' configures this package to adapt to many kinds of systems.
1991
1992 Usage: $0 [OPTION]... [VAR=VALUE]...
1993
1994 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1995 VAR=VALUE. See below for descriptions of some of the useful variables.
1996
1997 Defaults for the options are specified in brackets.
1998
1999 Configuration:
2000 -h, --help display this help and exit
2001 --help=short display options specific to this package
2002 --help=recursive display the short help of all the included packages
2003 -V, --version display version information and exit
2004 -q, --quiet, --silent do not print \`checking...' messages
2005 --cache-file=FILE cache test results in FILE [disabled]
2006 -C, --config-cache alias for \`--cache-file=config.cache'
2007 -n, --no-create do not create output files
2008 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2009
2010 Installation directories:
2011 --prefix=PREFIX install architecture-independent files in PREFIX
2012 [$ac_default_prefix]
2013 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2014 [PREFIX]
2015
2016 By default, \`make install' will install all the files in
2017 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2018 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2019 for instance \`--prefix=\$HOME'.
2020
2021 For better control, use the options below.
2022
2023 Fine tuning of the installation directories:
2024 --bindir=DIR user executables [EPREFIX/bin]
2025 --sbindir=DIR system admin executables [EPREFIX/sbin]
2026 --libexecdir=DIR program executables [EPREFIX/libexec]
2027 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2028 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2029 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2030 --libdir=DIR object code libraries [EPREFIX/lib]
2031 --includedir=DIR C header files [PREFIX/include]
2032 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2033 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2034 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2035 --infodir=DIR info documentation [DATAROOTDIR/info]
2036 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2037 --mandir=DIR man documentation [DATAROOTDIR/man]
2038 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2039 --htmldir=DIR html documentation [DOCDIR]
2040 --dvidir=DIR dvi documentation [DOCDIR]
2041 --pdfdir=DIR pdf documentation [DOCDIR]
2042 --psdir=DIR ps documentation [DOCDIR]
2043 _ACEOF
2044
2045 cat <<\_ACEOF
2046
2047 Program names:
2048 --program-prefix=PREFIX prepend PREFIX to installed program names
2049 --program-suffix=SUFFIX append SUFFIX to installed program names
2050 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2051
2052 System types:
2053 --build=BUILD configure for building on BUILD [guessed]
2054 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2055 --target=TARGET configure for building compilers for TARGET [HOST]
2056 _ACEOF
2057 fi
2058
2059 if test -n "$ac_init_help"; then
2060
2061 cat <<\_ACEOF
2062
2063 Optional Features:
2064 --disable-option-checking ignore unrecognized --enable/--with options
2065 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2066 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2067 --enable-maintainer-mode enable make rules and dependencies not useful
2068 (and sometimes confusing) to the casual installer
2069 --disable-dependency-tracking speeds up one-time build
2070 --enable-dependency-tracking do not reject slow dependency extractors
2071
2072 Some influential environment variables:
2073 CC C compiler command
2074 CFLAGS C compiler flags
2075 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2076 nonstandard directory <lib dir>
2077 LIBS libraries to pass to the linker, e.g. -l<library>
2078 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2079 you have headers in a nonstandard directory <include dir>
2080 CPP C preprocessor
2081
2082 Use these variables to override the choices made by `configure' or to help
2083 it to find libraries and programs with nonstandard names/locations.
2084
2085 Report bugs to the package provider.
2086 _ACEOF
2087 ac_status=$?
2088 fi
2089
2090 if test "$ac_init_help" = "recursive"; then
2091 # If there are subdirs, report their specific --help.
2092 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2093 test -d "$ac_dir" ||
2094 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2095 continue
2096 ac_builddir=.
2097
2098 case "$ac_dir" in
2099 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2100 *)
2101 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2102 # A ".." for each directory in $ac_dir_suffix.
2103 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2104 case $ac_top_builddir_sub in
2105 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2106 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2107 esac ;;
2108 esac
2109 ac_abs_top_builddir=$ac_pwd
2110 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2111 # for backward compatibility:
2112 ac_top_builddir=$ac_top_build_prefix
2113
2114 case $srcdir in
2115 .) # We are building in place.
2116 ac_srcdir=.
2117 ac_top_srcdir=$ac_top_builddir_sub
2118 ac_abs_top_srcdir=$ac_pwd ;;
2119 [\\/]* | ?:[\\/]* ) # Absolute name.
2120 ac_srcdir=$srcdir$ac_dir_suffix;
2121 ac_top_srcdir=$srcdir
2122 ac_abs_top_srcdir=$srcdir ;;
2123 *) # Relative name.
2124 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2125 ac_top_srcdir=$ac_top_build_prefix$srcdir
2126 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2127 esac
2128 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2129
2130 cd "$ac_dir" || { ac_status=$?; continue; }
2131 # Check for guested configure.
2132 if test -f "$ac_srcdir/configure.gnu"; then
2133 echo &&
2134 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2135 elif test -f "$ac_srcdir/configure"; then
2136 echo &&
2137 $SHELL "$ac_srcdir/configure" --help=recursive
2138 else
2139 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2140 fi || ac_status=$?
2141 cd "$ac_pwd" || { ac_status=$?; break; }
2142 done
2143 fi
2144
2145 test -n "$ac_init_help" && exit $ac_status
2146 if $ac_init_version; then
2147 cat <<\_ACEOF
2148 configure
2149 generated by GNU Autoconf 2.64
2150
2151 Copyright (C) 2009 Free Software Foundation, Inc.
2152 This configure script is free software; the Free Software Foundation
2153 gives unlimited permission to copy, distribute and modify it.
2154 _ACEOF
2155 exit
2156 fi
2157
2158 ## ------------------------ ##
2159 ## Autoconf initialization. ##
2160 ## ------------------------ ##
2161
2162 # ac_fn_c_try_compile LINENO
2163 # --------------------------
2164 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2165 ac_fn_c_try_compile ()
2166 {
2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168 rm -f conftest.$ac_objext
2169 if { { ac_try="$ac_compile"
2170 case "(($ac_try" in
2171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2172 *) ac_try_echo=$ac_try;;
2173 esac
2174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2175 $as_echo "$ac_try_echo"; } >&5
2176 (eval "$ac_compile") 2>conftest.err
2177 ac_status=$?
2178 if test -s conftest.err; then
2179 grep -v '^ *+' conftest.err >conftest.er1
2180 cat conftest.er1 >&5
2181 mv -f conftest.er1 conftest.err
2182 fi
2183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2184 test $ac_status = 0; } && {
2185 test -z "$ac_c_werror_flag" ||
2186 test ! -s conftest.err
2187 } && test -s conftest.$ac_objext; then :
2188 ac_retval=0
2189 else
2190 $as_echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2192
2193 ac_retval=1
2194 fi
2195 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2196 return $ac_retval
2197
2198 } # ac_fn_c_try_compile
2199
2200 # ac_fn_c_try_cpp LINENO
2201 # ----------------------
2202 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2203 ac_fn_c_try_cpp ()
2204 {
2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206 if { { ac_try="$ac_cpp conftest.$ac_ext"
2207 case "(($ac_try" in
2208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2209 *) ac_try_echo=$ac_try;;
2210 esac
2211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2212 $as_echo "$ac_try_echo"; } >&5
2213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2214 ac_status=$?
2215 if test -s conftest.err; then
2216 grep -v '^ *+' conftest.err >conftest.er1
2217 cat conftest.er1 >&5
2218 mv -f conftest.er1 conftest.err
2219 fi
2220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2221 test $ac_status = 0; } >/dev/null && {
2222 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2223 test ! -s conftest.err
2224 }; then :
2225 ac_retval=0
2226 else
2227 $as_echo "$as_me: failed program was:" >&5
2228 sed 's/^/| /' conftest.$ac_ext >&5
2229
2230 ac_retval=1
2231 fi
2232 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2233 return $ac_retval
2234
2235 } # ac_fn_c_try_cpp
2236
2237 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2238 # -------------------------------------------------------
2239 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2240 # the include files in INCLUDES and setting the cache variable VAR
2241 # accordingly.
2242 ac_fn_c_check_header_mongrel ()
2243 {
2244 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2245 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2247 $as_echo_n "checking for $2... " >&6; }
2248 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2249 $as_echo_n "(cached) " >&6
2250 fi
2251 eval ac_res=\$$3
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253 $as_echo "$ac_res" >&6; }
2254 else
2255 # Is the header compilable?
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2257 $as_echo_n "checking $2 usability... " >&6; }
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259 /* end confdefs.h. */
2260 $4
2261 #include <$2>
2262 _ACEOF
2263 if ac_fn_c_try_compile "$LINENO"; then :
2264 ac_header_compiler=yes
2265 else
2266 ac_header_compiler=no
2267 fi
2268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2270 $as_echo "$ac_header_compiler" >&6; }
2271
2272 # Is the header present?
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2274 $as_echo_n "checking $2 presence... " >&6; }
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2277 #include <$2>
2278 _ACEOF
2279 if ac_fn_c_try_cpp "$LINENO"; then :
2280 ac_header_preproc=yes
2281 else
2282 ac_header_preproc=no
2283 fi
2284 rm -f conftest.err conftest.$ac_ext
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2286 $as_echo "$ac_header_preproc" >&6; }
2287
2288 # So? What about this header?
2289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2290 yes:no: )
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2292 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2294 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2295 ;;
2296 no:yes:* )
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2298 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2300 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2302 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2304 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2306 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2307 ;;
2308 esac
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2310 $as_echo_n "checking for $2... " >&6; }
2311 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2312 $as_echo_n "(cached) " >&6
2313 else
2314 eval "$3=\$ac_header_compiler"
2315 fi
2316 eval ac_res=\$$3
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2318 $as_echo "$ac_res" >&6; }
2319 fi
2320 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2321
2322 } # ac_fn_c_check_header_mongrel
2323
2324 # ac_fn_c_try_run LINENO
2325 # ----------------------
2326 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2327 # that executables *can* be run.
2328 ac_fn_c_try_run ()
2329 {
2330 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2331 if { { ac_try="$ac_link"
2332 case "(($ac_try" in
2333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2334 *) ac_try_echo=$ac_try;;
2335 esac
2336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2337 $as_echo "$ac_try_echo"; } >&5
2338 (eval "$ac_link") 2>&5
2339 ac_status=$?
2340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2341 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2342 { { case "(($ac_try" in
2343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2344 *) ac_try_echo=$ac_try;;
2345 esac
2346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2347 $as_echo "$ac_try_echo"; } >&5
2348 (eval "$ac_try") 2>&5
2349 ac_status=$?
2350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2351 test $ac_status = 0; }; }; then :
2352 ac_retval=0
2353 else
2354 $as_echo "$as_me: program exited with status $ac_status" >&5
2355 $as_echo "$as_me: failed program was:" >&5
2356 sed 's/^/| /' conftest.$ac_ext >&5
2357
2358 ac_retval=$ac_status
2359 fi
2360 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2361 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2362 return $ac_retval
2363
2364 } # ac_fn_c_try_run
2365
2366 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2367 # -------------------------------------------------------
2368 # Tests whether HEADER exists and can be compiled using the include files in
2369 # INCLUDES, setting the cache variable VAR accordingly.
2370 ac_fn_c_check_header_compile ()
2371 {
2372 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2374 $as_echo_n "checking for $2... " >&6; }
2375 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2376 $as_echo_n "(cached) " >&6
2377 else
2378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379 /* end confdefs.h. */
2380 $4
2381 #include <$2>
2382 _ACEOF
2383 if ac_fn_c_try_compile "$LINENO"; then :
2384 eval "$3=yes"
2385 else
2386 eval "$3=no"
2387 fi
2388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2389 fi
2390 eval ac_res=\$$3
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2392 $as_echo "$ac_res" >&6; }
2393 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2394
2395 } # ac_fn_c_check_header_compile
2396
2397 # ac_fn_c_try_link LINENO
2398 # -----------------------
2399 # Try to link conftest.$ac_ext, and return whether this succeeded.
2400 ac_fn_c_try_link ()
2401 {
2402 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2403 rm -f conftest.$ac_objext conftest$ac_exeext
2404 if { { ac_try="$ac_link"
2405 case "(($ac_try" in
2406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2407 *) ac_try_echo=$ac_try;;
2408 esac
2409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2410 $as_echo "$ac_try_echo"; } >&5
2411 (eval "$ac_link") 2>conftest.err
2412 ac_status=$?
2413 if test -s conftest.err; then
2414 grep -v '^ *+' conftest.err >conftest.er1
2415 cat conftest.er1 >&5
2416 mv -f conftest.er1 conftest.err
2417 fi
2418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2419 test $ac_status = 0; } && {
2420 test -z "$ac_c_werror_flag" ||
2421 test ! -s conftest.err
2422 } && test -s conftest$ac_exeext && {
2423 test "$cross_compiling" = yes ||
2424 $as_test_x conftest$ac_exeext
2425 }; then :
2426 ac_retval=0
2427 else
2428 $as_echo "$as_me: failed program was:" >&5
2429 sed 's/^/| /' conftest.$ac_ext >&5
2430
2431 ac_retval=1
2432 fi
2433 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2434 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2435 # interfere with the next link command; also delete a directory that is
2436 # left behind by Apple's compiler. We do this before executing the actions.
2437 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2438 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2439 return $ac_retval
2440
2441 } # ac_fn_c_try_link
2442
2443 # ac_fn_c_check_func LINENO FUNC VAR
2444 # ----------------------------------
2445 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2446 ac_fn_c_check_func ()
2447 {
2448 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2450 $as_echo_n "checking for $2... " >&6; }
2451 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2452 $as_echo_n "(cached) " >&6
2453 else
2454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2455 /* end confdefs.h. */
2456 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2458 #define $2 innocuous_$2
2459
2460 /* System header to define __stub macros and hopefully few prototypes,
2461 which can conflict with char $2 (); below.
2462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2463 <limits.h> exists even on freestanding compilers. */
2464
2465 #ifdef __STDC__
2466 # include <limits.h>
2467 #else
2468 # include <assert.h>
2469 #endif
2470
2471 #undef $2
2472
2473 /* Override any GCC internal prototype to avoid an error.
2474 Use char because int might match the return type of a GCC
2475 builtin and then its argument prototype would still apply. */
2476 #ifdef __cplusplus
2477 extern "C"
2478 #endif
2479 char $2 ();
2480 /* The GNU C library defines this for functions which it implements
2481 to always fail with ENOSYS. Some functions are actually named
2482 something starting with __ and the normal name is an alias. */
2483 #if defined __stub_$2 || defined __stub___$2
2484 choke me
2485 #endif
2486
2487 int
2488 main ()
2489 {
2490 return $2 ();
2491 ;
2492 return 0;
2493 }
2494 _ACEOF
2495 if ac_fn_c_try_link "$LINENO"; then :
2496 eval "$3=yes"
2497 else
2498 eval "$3=no"
2499 fi
2500 rm -f core conftest.err conftest.$ac_objext \
2501 conftest$ac_exeext conftest.$ac_ext
2502 fi
2503 eval ac_res=\$$3
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2505 $as_echo "$ac_res" >&6; }
2506 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2507
2508 } # ac_fn_c_check_func
2509
2510 # ac_fn_c_check_decl LINENO SYMBOL VAR
2511 # ------------------------------------
2512 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2513 ac_fn_c_check_decl ()
2514 {
2515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2517 $as_echo_n "checking whether $2 is declared... " >&6; }
2518 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2519 $as_echo_n "(cached) " >&6
2520 else
2521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2522 /* end confdefs.h. */
2523 $4
2524 int
2525 main ()
2526 {
2527 #ifndef $2
2528 (void) $2;
2529 #endif
2530
2531 ;
2532 return 0;
2533 }
2534 _ACEOF
2535 if ac_fn_c_try_compile "$LINENO"; then :
2536 eval "$3=yes"
2537 else
2538 eval "$3=no"
2539 fi
2540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2541 fi
2542 eval ac_res=\$$3
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2544 $as_echo "$ac_res" >&6; }
2545 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2546
2547 } # ac_fn_c_check_decl
2548
2549 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2550 # --------------------------------------------
2551 # Tries to find the compile-time value of EXPR in a program that includes
2552 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2553 # computed
2554 ac_fn_c_compute_int ()
2555 {
2556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2557 if test "$cross_compiling" = yes; then
2558 # Depending upon the size, compute the lo and hi bounds.
2559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2560 /* end confdefs.h. */
2561 $4
2562 int
2563 main ()
2564 {
2565 static int test_array [1 - 2 * !(($2) >= 0)];
2566 test_array [0] = 0
2567
2568 ;
2569 return 0;
2570 }
2571 _ACEOF
2572 if ac_fn_c_try_compile "$LINENO"; then :
2573 ac_lo=0 ac_mid=0
2574 while :; do
2575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2576 /* end confdefs.h. */
2577 $4
2578 int
2579 main ()
2580 {
2581 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2582 test_array [0] = 0
2583
2584 ;
2585 return 0;
2586 }
2587 _ACEOF
2588 if ac_fn_c_try_compile "$LINENO"; then :
2589 ac_hi=$ac_mid; break
2590 else
2591 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2592 if test $ac_lo -le $ac_mid; then
2593 ac_lo= ac_hi=
2594 break
2595 fi
2596 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2597 fi
2598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2599 done
2600 else
2601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2602 /* end confdefs.h. */
2603 $4
2604 int
2605 main ()
2606 {
2607 static int test_array [1 - 2 * !(($2) < 0)];
2608 test_array [0] = 0
2609
2610 ;
2611 return 0;
2612 }
2613 _ACEOF
2614 if ac_fn_c_try_compile "$LINENO"; then :
2615 ac_hi=-1 ac_mid=-1
2616 while :; do
2617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2618 /* end confdefs.h. */
2619 $4
2620 int
2621 main ()
2622 {
2623 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2624 test_array [0] = 0
2625
2626 ;
2627 return 0;
2628 }
2629 _ACEOF
2630 if ac_fn_c_try_compile "$LINENO"; then :
2631 ac_lo=$ac_mid; break
2632 else
2633 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2634 if test $ac_mid -le $ac_hi; then
2635 ac_lo= ac_hi=
2636 break
2637 fi
2638 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2639 fi
2640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2641 done
2642 else
2643 ac_lo= ac_hi=
2644 fi
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646 fi
2647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2648 # Binary search between lo and hi bounds.
2649 while test "x$ac_lo" != "x$ac_hi"; do
2650 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2652 /* end confdefs.h. */
2653 $4
2654 int
2655 main ()
2656 {
2657 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2658 test_array [0] = 0
2659
2660 ;
2661 return 0;
2662 }
2663 _ACEOF
2664 if ac_fn_c_try_compile "$LINENO"; then :
2665 ac_hi=$ac_mid
2666 else
2667 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2668 fi
2669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2670 done
2671 case $ac_lo in #((
2672 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2673 '') ac_retval=1 ;;
2674 esac
2675 else
2676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2677 /* end confdefs.h. */
2678 $4
2679 static long int longval () { return $2; }
2680 static unsigned long int ulongval () { return $2; }
2681 #include <stdio.h>
2682 #include <stdlib.h>
2683 int
2684 main ()
2685 {
2686
2687 FILE *f = fopen ("conftest.val", "w");
2688 if (! f)
2689 return 1;
2690 if (($2) < 0)
2691 {
2692 long int i = longval ();
2693 if (i != ($2))
2694 return 1;
2695 fprintf (f, "%ld", i);
2696 }
2697 else
2698 {
2699 unsigned long int i = ulongval ();
2700 if (i != ($2))
2701 return 1;
2702 fprintf (f, "%lu", i);
2703 }
2704 /* Do not output a trailing newline, as this causes \r\n confusion
2705 on some platforms. */
2706 return ferror (f) || fclose (f) != 0;
2707
2708 ;
2709 return 0;
2710 }
2711 _ACEOF
2712 if ac_fn_c_try_run "$LINENO"; then :
2713 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2714 else
2715 ac_retval=1
2716 fi
2717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2718 conftest.$ac_objext conftest.beam conftest.$ac_ext
2719 rm -f conftest.val
2720
2721 fi
2722 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2723 return $ac_retval
2724
2725 } # ac_fn_c_compute_int
2726
2727 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2728 # -------------------------------------------
2729 # Tests whether TYPE exists after having included INCLUDES, setting cache
2730 # variable VAR accordingly.
2731 ac_fn_c_check_type ()
2732 {
2733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2735 $as_echo_n "checking for $2... " >&6; }
2736 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2737 $as_echo_n "(cached) " >&6
2738 else
2739 eval "$3=no"
2740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2741 /* end confdefs.h. */
2742 $4
2743 int
2744 main ()
2745 {
2746 if (sizeof ($2))
2747 return 0;
2748 ;
2749 return 0;
2750 }
2751 _ACEOF
2752 if ac_fn_c_try_compile "$LINENO"; then :
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
2767 else
2768 eval "$3=yes"
2769 fi
2770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771 fi
2772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2773 fi
2774 eval ac_res=\$$3
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2776 $as_echo "$ac_res" >&6; }
2777 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2778
2779 } # ac_fn_c_check_type
2780 cat >config.log <<_ACEOF
2781 This file contains any messages produced by compilers while
2782 running configure, to aid debugging if configure makes a mistake.
2783
2784 It was created by $as_me, which was
2785 generated by GNU Autoconf 2.64. Invocation command line was
2786
2787 $ $0 $@
2788
2789 _ACEOF
2790 exec 5>>config.log
2791 {
2792 cat <<_ASUNAME
2793 ## --------- ##
2794 ## Platform. ##
2795 ## --------- ##
2796
2797 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2798 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2799 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2800 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2801 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2802
2803 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2804 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2805
2806 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2807 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2808 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2809 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2810 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2811 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2812 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2813
2814 _ASUNAME
2815
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2818 do
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 $as_echo "PATH: $as_dir"
2822 done
2823 IFS=$as_save_IFS
2824
2825 } >&5
2826
2827 cat >&5 <<_ACEOF
2828
2829
2830 ## ----------- ##
2831 ## Core tests. ##
2832 ## ----------- ##
2833
2834 _ACEOF
2835
2836
2837 # Keep a trace of the command line.
2838 # Strip out --no-create and --no-recursion so they do not pile up.
2839 # Strip out --silent because we don't want to record it for future runs.
2840 # Also quote any args containing shell meta-characters.
2841 # Make two passes to allow for proper duplicate-argument suppression.
2842 ac_configure_args=
2843 ac_configure_args0=
2844 ac_configure_args1=
2845 ac_must_keep_next=false
2846 for ac_pass in 1 2
2847 do
2848 for ac_arg
2849 do
2850 case $ac_arg in
2851 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2852 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2853 | -silent | --silent | --silen | --sile | --sil)
2854 continue ;;
2855 *\'*)
2856 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2857 esac
2858 case $ac_pass in
2859 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2860 2)
2861 as_fn_append ac_configure_args1 " '$ac_arg'"
2862 if test $ac_must_keep_next = true; then
2863 ac_must_keep_next=false # Got value, back to normal.
2864 else
2865 case $ac_arg in
2866 *=* | --config-cache | -C | -disable-* | --disable-* \
2867 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2868 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2869 | -with-* | --with-* | -without-* | --without-* | --x)
2870 case "$ac_configure_args0 " in
2871 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2872 esac
2873 ;;
2874 -* ) ac_must_keep_next=true ;;
2875 esac
2876 fi
2877 as_fn_append ac_configure_args " '$ac_arg'"
2878 ;;
2879 esac
2880 done
2881 done
2882 { ac_configure_args0=; unset ac_configure_args0;}
2883 { ac_configure_args1=; unset ac_configure_args1;}
2884
2885 # When interrupted or exit'd, cleanup temporary files, and complete
2886 # config.log. We remove comments because anyway the quotes in there
2887 # would cause problems or look ugly.
2888 # WARNING: Use '\'' to represent an apostrophe within the trap.
2889 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2890 trap 'exit_status=$?
2891 # Save into config.log some information that might help in debugging.
2892 {
2893 echo
2894
2895 cat <<\_ASBOX
2896 ## ---------------- ##
2897 ## Cache variables. ##
2898 ## ---------------- ##
2899 _ASBOX
2900 echo
2901 # The following way of writing the cache mishandles newlines in values,
2902 (
2903 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2904 eval ac_val=\$$ac_var
2905 case $ac_val in #(
2906 *${as_nl}*)
2907 case $ac_var in #(
2908 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2909 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2910 esac
2911 case $ac_var in #(
2912 _ | IFS | as_nl) ;; #(
2913 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2914 *) { eval $ac_var=; unset $ac_var;} ;;
2915 esac ;;
2916 esac
2917 done
2918 (set) 2>&1 |
2919 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2920 *${as_nl}ac_space=\ *)
2921 sed -n \
2922 "s/'\''/'\''\\\\'\'''\''/g;
2923 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2924 ;; #(
2925 *)
2926 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2927 ;;
2928 esac |
2929 sort
2930 )
2931 echo
2932
2933 cat <<\_ASBOX
2934 ## ----------------- ##
2935 ## Output variables. ##
2936 ## ----------------- ##
2937 _ASBOX
2938 echo
2939 for ac_var in $ac_subst_vars
2940 do
2941 eval ac_val=\$$ac_var
2942 case $ac_val in
2943 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2944 esac
2945 $as_echo "$ac_var='\''$ac_val'\''"
2946 done | sort
2947 echo
2948
2949 if test -n "$ac_subst_files"; then
2950 cat <<\_ASBOX
2951 ## ------------------- ##
2952 ## File substitutions. ##
2953 ## ------------------- ##
2954 _ASBOX
2955 echo
2956 for ac_var in $ac_subst_files
2957 do
2958 eval ac_val=\$$ac_var
2959 case $ac_val in
2960 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2961 esac
2962 $as_echo "$ac_var='\''$ac_val'\''"
2963 done | sort
2964 echo
2965 fi
2966
2967 if test -s confdefs.h; then
2968 cat <<\_ASBOX
2969 ## ----------- ##
2970 ## confdefs.h. ##
2971 ## ----------- ##
2972 _ASBOX
2973 echo
2974 cat confdefs.h
2975 echo
2976 fi
2977 test "$ac_signal" != 0 &&
2978 $as_echo "$as_me: caught signal $ac_signal"
2979 $as_echo "$as_me: exit $exit_status"
2980 } >&5
2981 rm -f core *.core core.conftest.* &&
2982 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2983 exit $exit_status
2984 ' 0
2985 for ac_signal in 1 2 13 15; do
2986 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2987 done
2988 ac_signal=0
2989
2990 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2991 rm -f -r conftest* confdefs.h
2992
2993 $as_echo "/* confdefs.h */" > confdefs.h
2994
2995 # Predefined preprocessor variables.
2996
2997 cat >>confdefs.h <<_ACEOF
2998 #define PACKAGE_NAME "$PACKAGE_NAME"
2999 _ACEOF
3000
3001 cat >>confdefs.h <<_ACEOF
3002 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3003 _ACEOF
3004
3005 cat >>confdefs.h <<_ACEOF
3006 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3007 _ACEOF
3008
3009 cat >>confdefs.h <<_ACEOF
3010 #define PACKAGE_STRING "$PACKAGE_STRING"
3011 _ACEOF
3012
3013 cat >>confdefs.h <<_ACEOF
3014 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3015 _ACEOF
3016
3017 cat >>confdefs.h <<_ACEOF
3018 #define PACKAGE_URL "$PACKAGE_URL"
3019 _ACEOF
3020
3021
3022 # Let the site file select an alternate cache file if it wants to.
3023 # Prefer an explicitly selected file to automatically selected ones.
3024 ac_site_file1=NONE
3025 ac_site_file2=NONE
3026 if test -n "$CONFIG_SITE"; then
3027 ac_site_file1=$CONFIG_SITE
3028 elif test "x$prefix" != xNONE; then
3029 ac_site_file1=$prefix/share/config.site
3030 ac_site_file2=$prefix/etc/config.site
3031 else
3032 ac_site_file1=$ac_default_prefix/share/config.site
3033 ac_site_file2=$ac_default_prefix/etc/config.site
3034 fi
3035 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3036 do
3037 test "x$ac_site_file" = xNONE && continue
3038 if test -r "$ac_site_file"; then
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3040 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3041 sed 's/^/| /' "$ac_site_file" >&5
3042 . "$ac_site_file"
3043 fi
3044 done
3045
3046 if test -r "$cache_file"; then
3047 # Some versions of bash will fail to source /dev/null (special
3048 # files actually), so we avoid doing that.
3049 if test -f "$cache_file"; then
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3051 $as_echo "$as_me: loading cache $cache_file" >&6;}
3052 case $cache_file in
3053 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3054 *) . "./$cache_file";;
3055 esac
3056 fi
3057 else
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3059 $as_echo "$as_me: creating cache $cache_file" >&6;}
3060 >$cache_file
3061 fi
3062
3063 as_fn_append ac_header_list " dirent.h"
3064 as_fn_append ac_func_list " btowc"
3065 as_fn_append ac_func_list " isblank"
3066 as_fn_append ac_func_list " iswctype"
3067 as_fn_append ac_func_list " mbsrtowcs"
3068 as_fn_append ac_func_list " mempcpy"
3069 as_fn_append ac_func_list " wmemchr"
3070 as_fn_append ac_func_list " wmemcpy"
3071 as_fn_append ac_func_list " wmempcpy"
3072 as_fn_append ac_header_list " wctype.h"
3073 gl_fnmatch_required=GNU
3074 as_fn_append ac_func_list " alarm"
3075 as_fn_append ac_header_list " wchar.h"
3076 as_fn_append ac_header_list " stdint.h"
3077 as_fn_append ac_header_list " inttypes.h"
3078 as_fn_append ac_header_list " unistd.h"
3079 as_fn_append ac_func_list " symlink"
3080 as_fn_append ac_header_list " math.h"
3081 as_fn_append ac_func_list " mbsinit"
3082 as_fn_append ac_func_list " mbrtowc"
3083 as_fn_append ac_header_list " sys/mman.h"
3084 as_fn_append ac_func_list " mprotect"
3085 as_fn_append ac_header_list " sys/param.h"
3086 as_fn_append ac_header_list " sys/stat.h"
3087 as_fn_append ac_header_list " sys/time.h"
3088 as_fn_append ac_header_list " features.h"
3089 as_fn_append ac_func_list " iswcntrl"
3090 # Check that the precious variables saved in the cache have kept the same
3091 # value.
3092 ac_cache_corrupted=false
3093 for ac_var in $ac_precious_vars; do
3094 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3095 eval ac_new_set=\$ac_env_${ac_var}_set
3096 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3097 eval ac_new_val=\$ac_env_${ac_var}_value
3098 case $ac_old_set,$ac_new_set in
3099 set,)
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3101 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3102 ac_cache_corrupted=: ;;
3103 ,set)
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3105 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3106 ac_cache_corrupted=: ;;
3107 ,);;
3108 *)
3109 if test "x$ac_old_val" != "x$ac_new_val"; then
3110 # differences in whitespace do not lead to failure.
3111 ac_old_val_w=`echo x $ac_old_val`
3112 ac_new_val_w=`echo x $ac_new_val`
3113 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3115 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3116 ac_cache_corrupted=:
3117 else
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3119 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3120 eval $ac_var=\$ac_old_val
3121 fi
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3123 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3125 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3126 fi;;
3127 esac
3128 # Pass precious variables to config.status.
3129 if test "$ac_new_set" = set; then
3130 case $ac_new_val in
3131 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3132 *) ac_arg=$ac_var=$ac_new_val ;;
3133 esac
3134 case " $ac_configure_args " in
3135 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3136 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3137 esac
3138 fi
3139 done
3140 if $ac_cache_corrupted; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3144 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3145 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3146 fi
3147 ## -------------------- ##
3148 ## Main body of script. ##
3149 ## -------------------- ##
3150
3151 ac_ext=c
3152 ac_cpp='$CPP $CPPFLAGS'
3153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3156
3157
3158 ac_config_headers="$ac_config_headers config.h:config.in"
3159
3160
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3162 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3163 # Check whether --enable-maintainer-mode was given.
3164 if test "${enable_maintainer_mode+set}" = set; then :
3165 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3166 else
3167 USE_MAINTAINER_MODE=no
3168 fi
3169
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3171 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3172 if test $USE_MAINTAINER_MODE = yes; then
3173 MAINTAINER_MODE_TRUE=
3174 MAINTAINER_MODE_FALSE='#'
3175 else
3176 MAINTAINER_MODE_TRUE='#'
3177 MAINTAINER_MODE_FALSE=
3178 fi
3179
3180 MAINT=$MAINTAINER_MODE_TRUE
3181
3182
3183
3184 ac_ext=c
3185 ac_cpp='$CPP $CPPFLAGS'
3186 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3189 if test -n "$ac_tool_prefix"; then
3190 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3191 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if test "${ac_cv_prog_CC+set}" = set; then :
3195 $as_echo_n "(cached) " >&6
3196 else
3197 if test -n "$CC"; then
3198 ac_cv_prog_CC="$CC" # Let the user override the test.
3199 else
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH
3202 do
3203 IFS=$as_save_IFS
3204 test -z "$as_dir" && as_dir=.
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3209 break 2
3210 fi
3211 done
3212 done
3213 IFS=$as_save_IFS
3214
3215 fi
3216 fi
3217 CC=$ac_cv_prog_CC
3218 if test -n "$CC"; then
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3220 $as_echo "$CC" >&6; }
3221 else
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 $as_echo "no" >&6; }
3224 fi
3225
3226
3227 fi
3228 if test -z "$ac_cv_prog_CC"; then
3229 ac_ct_CC=$CC
3230 # Extract the first word of "gcc", so it can be a program name with args.
3231 set dummy gcc; ac_word=$2
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3233 $as_echo_n "checking for $ac_word... " >&6; }
3234 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3235 $as_echo_n "(cached) " >&6
3236 else
3237 if test -n "$ac_ct_CC"; then
3238 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3239 else
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3241 for as_dir in $PATH
3242 do
3243 IFS=$as_save_IFS
3244 test -z "$as_dir" && as_dir=.
3245 for ac_exec_ext in '' $ac_executable_extensions; do
3246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3247 ac_cv_prog_ac_ct_CC="gcc"
3248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3249 break 2
3250 fi
3251 done
3252 done
3253 IFS=$as_save_IFS
3254
3255 fi
3256 fi
3257 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3258 if test -n "$ac_ct_CC"; then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3260 $as_echo "$ac_ct_CC" >&6; }
3261 else
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 $as_echo "no" >&6; }
3264 fi
3265
3266 if test "x$ac_ct_CC" = x; then
3267 CC=""
3268 else
3269 case $cross_compiling:$ac_tool_warned in
3270 yes:)
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3273 ac_tool_warned=yes ;;
3274 esac
3275 CC=$ac_ct_CC
3276 fi
3277 else
3278 CC="$ac_cv_prog_CC"
3279 fi
3280
3281 if test -z "$CC"; then
3282 if test -n "$ac_tool_prefix"; then
3283 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3284 set dummy ${ac_tool_prefix}cc; ac_word=$2
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3286 $as_echo_n "checking for $ac_word... " >&6; }
3287 if test "${ac_cv_prog_CC+set}" = set; then :
3288 $as_echo_n "(cached) " >&6
3289 else
3290 if test -n "$CC"; then
3291 ac_cv_prog_CC="$CC" # Let the user override the test.
3292 else
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 for as_dir in $PATH
3295 do
3296 IFS=$as_save_IFS
3297 test -z "$as_dir" && as_dir=.
3298 for ac_exec_ext in '' $ac_executable_extensions; do
3299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3300 ac_cv_prog_CC="${ac_tool_prefix}cc"
3301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3302 break 2
3303 fi
3304 done
3305 done
3306 IFS=$as_save_IFS
3307
3308 fi
3309 fi
3310 CC=$ac_cv_prog_CC
3311 if test -n "$CC"; then
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3313 $as_echo "$CC" >&6; }
3314 else
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316 $as_echo "no" >&6; }
3317 fi
3318
3319
3320 fi
3321 fi
3322 if test -z "$CC"; then
3323 # Extract the first word of "cc", so it can be a program name with args.
3324 set dummy cc; ac_word=$2
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326 $as_echo_n "checking for $ac_word... " >&6; }
3327 if test "${ac_cv_prog_CC+set}" = set; then :
3328 $as_echo_n "(cached) " >&6
3329 else
3330 if test -n "$CC"; then
3331 ac_cv_prog_CC="$CC" # Let the user override the test.
3332 else
3333 ac_prog_rejected=no
3334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3335 for as_dir in $PATH
3336 do
3337 IFS=$as_save_IFS
3338 test -z "$as_dir" && as_dir=.
3339 for ac_exec_ext in '' $ac_executable_extensions; do
3340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3341 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3342 ac_prog_rejected=yes
3343 continue
3344 fi
3345 ac_cv_prog_CC="cc"
3346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3347 break 2
3348 fi
3349 done
3350 done
3351 IFS=$as_save_IFS
3352
3353 if test $ac_prog_rejected = yes; then
3354 # We found a bogon in the path, so make sure we never use it.
3355 set dummy $ac_cv_prog_CC
3356 shift
3357 if test $# != 0; then
3358 # We chose a different compiler from the bogus one.
3359 # However, it has the same basename, so the bogon will be chosen
3360 # first if we set CC to just the basename; use the full file name.
3361 shift
3362 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3363 fi
3364 fi
3365 fi
3366 fi
3367 CC=$ac_cv_prog_CC
3368 if test -n "$CC"; then
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3370 $as_echo "$CC" >&6; }
3371 else
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373 $as_echo "no" >&6; }
3374 fi
3375
3376
3377 fi
3378 if test -z "$CC"; then
3379 if test -n "$ac_tool_prefix"; then
3380 for ac_prog in cl.exe
3381 do
3382 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3383 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3385 $as_echo_n "checking for $ac_word... " >&6; }
3386 if test "${ac_cv_prog_CC+set}" = set; then :
3387 $as_echo_n "(cached) " >&6
3388 else
3389 if test -n "$CC"; then
3390 ac_cv_prog_CC="$CC" # Let the user override the test.
3391 else
3392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3393 for as_dir in $PATH
3394 do
3395 IFS=$as_save_IFS
3396 test -z "$as_dir" && as_dir=.
3397 for ac_exec_ext in '' $ac_executable_extensions; do
3398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3399 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3401 break 2
3402 fi
3403 done
3404 done
3405 IFS=$as_save_IFS
3406
3407 fi
3408 fi
3409 CC=$ac_cv_prog_CC
3410 if test -n "$CC"; then
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3412 $as_echo "$CC" >&6; }
3413 else
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3415 $as_echo "no" >&6; }
3416 fi
3417
3418
3419 test -n "$CC" && break
3420 done
3421 fi
3422 if test -z "$CC"; then
3423 ac_ct_CC=$CC
3424 for ac_prog in cl.exe
3425 do
3426 # Extract the first word of "$ac_prog", so it can be a program name with args.
3427 set dummy $ac_prog; ac_word=$2
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3429 $as_echo_n "checking for $ac_word... " >&6; }
3430 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3431 $as_echo_n "(cached) " >&6
3432 else
3433 if test -n "$ac_ct_CC"; then
3434 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3435 else
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437 for as_dir in $PATH
3438 do
3439 IFS=$as_save_IFS
3440 test -z "$as_dir" && as_dir=.
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3443 ac_cv_prog_ac_ct_CC="$ac_prog"
3444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3445 break 2
3446 fi
3447 done
3448 done
3449 IFS=$as_save_IFS
3450
3451 fi
3452 fi
3453 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3454 if test -n "$ac_ct_CC"; then
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3456 $as_echo "$ac_ct_CC" >&6; }
3457 else
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459 $as_echo "no" >&6; }
3460 fi
3461
3462
3463 test -n "$ac_ct_CC" && break
3464 done
3465
3466 if test "x$ac_ct_CC" = x; then
3467 CC=""
3468 else
3469 case $cross_compiling:$ac_tool_warned in
3470 yes:)
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3473 ac_tool_warned=yes ;;
3474 esac
3475 CC=$ac_ct_CC
3476 fi
3477 fi
3478
3479 fi
3480
3481
3482 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3484 as_fn_error "no acceptable C compiler found in \$PATH
3485 See \`config.log' for more details." "$LINENO" 5; }
3486
3487 # Provide some information about the compiler.
3488 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3489 set X $ac_compile
3490 ac_compiler=$2
3491 for ac_option in --version -v -V -qversion; do
3492 { { ac_try="$ac_compiler $ac_option >&5"
3493 case "(($ac_try" in
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3496 esac
3497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3498 $as_echo "$ac_try_echo"; } >&5
3499 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3500 ac_status=$?
3501 if test -s conftest.err; then
3502 sed '10a\
3503 ... rest of stderr output deleted ...
3504 10q' conftest.err >conftest.er1
3505 cat conftest.er1 >&5
3506 rm -f conftest.er1 conftest.err
3507 fi
3508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3509 test $ac_status = 0; }
3510 done
3511
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3514 #include <stdio.h>
3515 int
3516 main ()
3517 {
3518 FILE *f = fopen ("conftest.out", "w");
3519 return ferror (f) || fclose (f) != 0;
3520
3521 ;
3522 return 0;
3523 }
3524 _ACEOF
3525 ac_clean_files_save=$ac_clean_files
3526 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3527 # Try to create an executable without -o first, disregard a.out.
3528 # It will help us diagnose broken compilers, and finding out an intuition
3529 # of exeext.
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3531 $as_echo_n "checking for C compiler default output file name... " >&6; }
3532 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3533
3534 # The possible output files:
3535 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3536
3537 ac_rmfiles=
3538 for ac_file in $ac_files
3539 do
3540 case $ac_file in
3541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3542 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3543 esac
3544 done
3545 rm -f $ac_rmfiles
3546
3547 if { { ac_try="$ac_link_default"
3548 case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551 esac
3552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3553 $as_echo "$ac_try_echo"; } >&5
3554 (eval "$ac_link_default") 2>&5
3555 ac_status=$?
3556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3557 test $ac_status = 0; }; then :
3558 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3559 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3560 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3561 # so that the user can short-circuit this test for compilers unknown to
3562 # Autoconf.
3563 for ac_file in $ac_files ''
3564 do
3565 test -f "$ac_file" || continue
3566 case $ac_file in
3567 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3568 ;;
3569 [ab].out )
3570 # We found the default executable, but exeext='' is most
3571 # certainly right.
3572 break;;
3573 *.* )
3574 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3575 then :; else
3576 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3577 fi
3578 # We set ac_cv_exeext here because the later test for it is not
3579 # safe: cross compilers may not add the suffix if given an `-o'
3580 # argument, so we may need to know it at that point already.
3581 # Even if this section looks crufty: it has the advantage of
3582 # actually working.
3583 break;;
3584 * )
3585 break;;
3586 esac
3587 done
3588 test "$ac_cv_exeext" = no && ac_cv_exeext=
3589
3590 else
3591 ac_file=''
3592 fi
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3594 $as_echo "$ac_file" >&6; }
3595 if test -z "$ac_file"; then :
3596 $as_echo "$as_me: failed program was:" >&5
3597 sed 's/^/| /' conftest.$ac_ext >&5
3598
3599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3601 { as_fn_set_status 77
3602 as_fn_error "C compiler cannot create executables
3603 See \`config.log' for more details." "$LINENO" 5; }; }
3604 fi
3605 ac_exeext=$ac_cv_exeext
3606
3607 # Check that the compiler produces executables we can run. If not, either
3608 # the compiler is broken, or we cross compile.
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3610 $as_echo_n "checking whether the C compiler works... " >&6; }
3611 # If not cross compiling, check that we can run a simple program.
3612 if test "$cross_compiling" != yes; then
3613 if { ac_try='./$ac_file'
3614 { { case "(($ac_try" in
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3617 esac
3618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619 $as_echo "$ac_try_echo"; } >&5
3620 (eval "$ac_try") 2>&5
3621 ac_status=$?
3622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623 test $ac_status = 0; }; }; then
3624 cross_compiling=no
3625 else
3626 if test "$cross_compiling" = maybe; then
3627 cross_compiling=yes
3628 else
3629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3631 as_fn_error "cannot run C compiled programs.
3632 If you meant to cross compile, use \`--host'.
3633 See \`config.log' for more details." "$LINENO" 5; }
3634 fi
3635 fi
3636 fi
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3638 $as_echo "yes" >&6; }
3639
3640 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3641 ac_clean_files=$ac_clean_files_save
3642 # Check that the compiler produces executables we can run. If not, either
3643 # the compiler is broken, or we cross compile.
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3645 $as_echo_n "checking whether we are cross compiling... " >&6; }
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3647 $as_echo "$cross_compiling" >&6; }
3648
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3650 $as_echo_n "checking for suffix of executables... " >&6; }
3651 if { { ac_try="$ac_link"
3652 case "(($ac_try" in
3653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3654 *) ac_try_echo=$ac_try;;
3655 esac
3656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3657 $as_echo "$ac_try_echo"; } >&5
3658 (eval "$ac_link") 2>&5
3659 ac_status=$?
3660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3661 test $ac_status = 0; }; then :
3662 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3663 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3664 # work properly (i.e., refer to `conftest.exe'), while it won't with
3665 # `rm'.
3666 for ac_file in conftest.exe conftest conftest.*; do
3667 test -f "$ac_file" || continue
3668 case $ac_file in
3669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3670 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3671 break;;
3672 * ) break;;
3673 esac
3674 done
3675 else
3676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3678 as_fn_error "cannot compute suffix of executables: cannot compile and link
3679 See \`config.log' for more details." "$LINENO" 5; }
3680 fi
3681 rm -f conftest$ac_cv_exeext
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3683 $as_echo "$ac_cv_exeext" >&6; }
3684
3685 rm -f conftest.$ac_ext
3686 EXEEXT=$ac_cv_exeext
3687 ac_exeext=$EXEEXT
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3689 $as_echo_n "checking for suffix of object files... " >&6; }
3690 if test "${ac_cv_objext+set}" = set; then :
3691 $as_echo_n "(cached) " >&6
3692 else
3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h. */
3695
3696 int
3697 main ()
3698 {
3699
3700 ;
3701 return 0;
3702 }
3703 _ACEOF
3704 rm -f conftest.o conftest.obj
3705 if { { ac_try="$ac_compile"
3706 case "(($ac_try" in
3707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708 *) ac_try_echo=$ac_try;;
3709 esac
3710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3711 $as_echo "$ac_try_echo"; } >&5
3712 (eval "$ac_compile") 2>&5
3713 ac_status=$?
3714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3715 test $ac_status = 0; }; then :
3716 for ac_file in conftest.o conftest.obj conftest.*; do
3717 test -f "$ac_file" || continue;
3718 case $ac_file in
3719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3720 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3721 break;;
3722 esac
3723 done
3724 else
3725 $as_echo "$as_me: failed program was:" >&5
3726 sed 's/^/| /' conftest.$ac_ext >&5
3727
3728 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3729 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3730 as_fn_error "cannot compute suffix of object files: cannot compile
3731 See \`config.log' for more details." "$LINENO" 5; }
3732 fi
3733 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3734 fi
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3736 $as_echo "$ac_cv_objext" >&6; }
3737 OBJEXT=$ac_cv_objext
3738 ac_objext=$OBJEXT
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3740 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3741 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3742 $as_echo_n "(cached) " >&6
3743 else
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3746
3747 int
3748 main ()
3749 {
3750 #ifndef __GNUC__
3751 choke me
3752 #endif
3753
3754 ;
3755 return 0;
3756 }
3757 _ACEOF
3758 if ac_fn_c_try_compile "$LINENO"; then :
3759 ac_compiler_gnu=yes
3760 else
3761 ac_compiler_gnu=no
3762 fi
3763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3764 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3765
3766 fi
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3768 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3769 if test $ac_compiler_gnu = yes; then
3770 GCC=yes
3771 else
3772 GCC=
3773 fi
3774 ac_test_CFLAGS=${CFLAGS+set}
3775 ac_save_CFLAGS=$CFLAGS
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3777 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3778 if test "${ac_cv_prog_cc_g+set}" = set; then :
3779 $as_echo_n "(cached) " >&6
3780 else
3781 ac_save_c_werror_flag=$ac_c_werror_flag
3782 ac_c_werror_flag=yes
3783 ac_cv_prog_cc_g=no
3784 CFLAGS="-g"
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h. */
3787
3788 int
3789 main ()
3790 {
3791
3792 ;
3793 return 0;
3794 }
3795 _ACEOF
3796 if ac_fn_c_try_compile "$LINENO"; then :
3797 ac_cv_prog_cc_g=yes
3798 else
3799 CFLAGS=""
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
3813 else
3814 ac_c_werror_flag=$ac_save_c_werror_flag
3815 CFLAGS="-g"
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3818
3819 int
3820 main ()
3821 {
3822
3823 ;
3824 return 0;
3825 }
3826 _ACEOF
3827 if ac_fn_c_try_compile "$LINENO"; then :
3828 ac_cv_prog_cc_g=yes
3829 fi
3830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3831 fi
3832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3833 fi
3834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3835 ac_c_werror_flag=$ac_save_c_werror_flag
3836 fi
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3838 $as_echo "$ac_cv_prog_cc_g" >&6; }
3839 if test "$ac_test_CFLAGS" = set; then
3840 CFLAGS=$ac_save_CFLAGS
3841 elif test $ac_cv_prog_cc_g = yes; then
3842 if test "$GCC" = yes; then
3843 CFLAGS="-g -O2"
3844 else
3845 CFLAGS="-g"
3846 fi
3847 else
3848 if test "$GCC" = yes; then
3849 CFLAGS="-O2"
3850 else
3851 CFLAGS=
3852 fi
3853 fi
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3855 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3856 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3857 $as_echo_n "(cached) " >&6
3858 else
3859 ac_cv_prog_cc_c89=no
3860 ac_save_CC=$CC
3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h. */
3863 #include <stdarg.h>
3864 #include <stdio.h>
3865 #include <sys/types.h>
3866 #include <sys/stat.h>
3867 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3868 struct buf { int x; };
3869 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3870 static char *e (p, i)
3871 char **p;
3872 int i;
3873 {
3874 return p[i];
3875 }
3876 static char *f (char * (*g) (char **, int), char **p, ...)
3877 {
3878 char *s;
3879 va_list v;
3880 va_start (v,p);
3881 s = g (p, va_arg (v,int));
3882 va_end (v);
3883 return s;
3884 }
3885
3886 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3887 function prototypes and stuff, but not '\xHH' hex character constants.
3888 These don't provoke an error unfortunately, instead are silently treated
3889 as 'x'. The following induces an error, until -std is added to get
3890 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3891 array size at least. It's necessary to write '\x00'==0 to get something
3892 that's true only with -std. */
3893 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3894
3895 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3896 inside strings and character constants. */
3897 #define FOO(x) 'x'
3898 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3899
3900 int test (int i, double x);
3901 struct s1 {int (*f) (int a);};
3902 struct s2 {int (*f) (double a);};
3903 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3904 int argc;
3905 char **argv;
3906 int
3907 main ()
3908 {
3909 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3910 ;
3911 return 0;
3912 }
3913 _ACEOF
3914 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3915 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3916 do
3917 CC="$ac_save_CC $ac_arg"
3918 if ac_fn_c_try_compile "$LINENO"; then :
3919 ac_cv_prog_cc_c89=$ac_arg
3920 fi
3921 rm -f core conftest.err conftest.$ac_objext
3922 test "x$ac_cv_prog_cc_c89" != "xno" && break
3923 done
3924 rm -f conftest.$ac_ext
3925 CC=$ac_save_CC
3926
3927 fi
3928 # AC_CACHE_VAL
3929 case "x$ac_cv_prog_cc_c89" in
3930 x)
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3932 $as_echo "none needed" >&6; } ;;
3933 xno)
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3935 $as_echo "unsupported" >&6; } ;;
3936 *)
3937 CC="$CC $ac_cv_prog_cc_c89"
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3939 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3940 esac
3941 if test "x$ac_cv_prog_cc_c89" != xno; then :
3942
3943 fi
3944
3945 ac_ext=c
3946 ac_cpp='$CPP $CPPFLAGS'
3947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3950
3951 ac_aux_dir=
3952 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3953 for ac_t in install-sh install.sh shtool; do
3954 if test -f "$ac_dir/$ac_t"; then
3955 ac_aux_dir=$ac_dir
3956 ac_install_sh="$ac_aux_dir/$ac_t -c"
3957 break 2
3958 fi
3959 done
3960 done
3961 if test -z "$ac_aux_dir"; then
3962 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3963 fi
3964
3965 # These three variables are undocumented and unsupported,
3966 # and are intended to be withdrawn in a future Autoconf release.
3967 # They can cause serious problems if a builder's source tree is in a directory
3968 # whose full name contains unusual characters.
3969 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3970 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3971 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3972
3973
3974 # Make sure we can run config.sub.
3975 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3976 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3977
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3979 $as_echo_n "checking build system type... " >&6; }
3980 if test "${ac_cv_build+set}" = set; then :
3981 $as_echo_n "(cached) " >&6
3982 else
3983 ac_build_alias=$build_alias
3984 test "x$ac_build_alias" = x &&
3985 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3986 test "x$ac_build_alias" = x &&
3987 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3988 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3989 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3990
3991 fi
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3993 $as_echo "$ac_cv_build" >&6; }
3994 case $ac_cv_build in
3995 *-*-*) ;;
3996 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3997 esac
3998 build=$ac_cv_build
3999 ac_save_IFS=$IFS; IFS='-'
4000 set x $ac_cv_build
4001 shift
4002 build_cpu=$1
4003 build_vendor=$2
4004 shift; shift
4005 # Remember, the first character of IFS is used to create $*,
4006 # except with old shells:
4007 build_os=$*
4008 IFS=$ac_save_IFS
4009 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4010
4011
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4013 $as_echo_n "checking host system type... " >&6; }
4014 if test "${ac_cv_host+set}" = set; then :
4015 $as_echo_n "(cached) " >&6
4016 else
4017 if test "x$host_alias" = x; then
4018 ac_cv_host=$ac_cv_build
4019 else
4020 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4021 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4022 fi
4023
4024 fi
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4026 $as_echo "$ac_cv_host" >&6; }
4027 case $ac_cv_host in
4028 *-*-*) ;;
4029 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4030 esac
4031 host=$ac_cv_host
4032 ac_save_IFS=$IFS; IFS='-'
4033 set x $ac_cv_host
4034 shift
4035 host_cpu=$1
4036 host_vendor=$2
4037 shift; shift
4038 # Remember, the first character of IFS is used to create $*,
4039 # except with old shells:
4040 host_os=$*
4041 IFS=$ac_save_IFS
4042 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4043
4044
4045
4046 ac_ext=c
4047 ac_cpp='$CPP $CPPFLAGS'
4048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4052 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4053 # On Suns, sometimes $CPP names a directory.
4054 if test -n "$CPP" && test -d "$CPP"; then
4055 CPP=
4056 fi
4057 if test -z "$CPP"; then
4058 if test "${ac_cv_prog_CPP+set}" = set; then :
4059 $as_echo_n "(cached) " >&6
4060 else
4061 # Double quotes because CPP needs to be expanded
4062 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4063 do
4064 ac_preproc_ok=false
4065 for ac_c_preproc_warn_flag in '' yes
4066 do
4067 # Use a header file that comes with gcc, so configuring glibc
4068 # with a fresh cross-compiler works.
4069 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4070 # <limits.h> exists even on freestanding compilers.
4071 # On the NeXT, cc -E runs the code through the compiler's parser,
4072 # not just through cpp. "Syntax error" is here to catch this case.
4073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4074 /* end confdefs.h. */
4075 #ifdef __STDC__
4076 # include <limits.h>
4077 #else
4078 # include <assert.h>
4079 #endif
4080 Syntax error
4081 _ACEOF
4082 if ac_fn_c_try_cpp "$LINENO"; then :
4083
4084 else
4085 # Broken: fails on valid input.
4086 continue
4087 fi
4088 rm -f conftest.err conftest.$ac_ext
4089
4090 # OK, works on sane cases. Now check whether nonexistent headers
4091 # can be detected and how.
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4094 #include <ac_nonexistent.h>
4095 _ACEOF
4096 if ac_fn_c_try_cpp "$LINENO"; then :
4097 # Broken: success on invalid input.
4098 continue
4099 else
4100 # Passes both tests.
4101 ac_preproc_ok=:
4102 break
4103 fi
4104 rm -f conftest.err conftest.$ac_ext
4105
4106 done
4107 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4108 rm -f conftest.err conftest.$ac_ext
4109 if $ac_preproc_ok; then :
4110 break
4111 fi
4112
4113 done
4114 ac_cv_prog_CPP=$CPP
4115
4116 fi
4117 CPP=$ac_cv_prog_CPP
4118 else
4119 ac_cv_prog_CPP=$CPP
4120 fi
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4122 $as_echo "$CPP" >&6; }
4123 ac_preproc_ok=false
4124 for ac_c_preproc_warn_flag in '' yes
4125 do
4126 # Use a header file that comes with gcc, so configuring glibc
4127 # with a fresh cross-compiler works.
4128 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4129 # <limits.h> exists even on freestanding compilers.
4130 # On the NeXT, cc -E runs the code through the compiler's parser,
4131 # not just through cpp. "Syntax error" is here to catch this case.
4132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h. */
4134 #ifdef __STDC__
4135 # include <limits.h>
4136 #else
4137 # include <assert.h>
4138 #endif
4139 Syntax error
4140 _ACEOF
4141 if ac_fn_c_try_cpp "$LINENO"; then :
4142
4143 else
4144 # Broken: fails on valid input.
4145 continue
4146 fi
4147 rm -f conftest.err conftest.$ac_ext
4148
4149 # OK, works on sane cases. Now check whether nonexistent headers
4150 # can be detected and how.
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h. */
4153 #include <ac_nonexistent.h>
4154 _ACEOF
4155 if ac_fn_c_try_cpp "$LINENO"; then :
4156 # Broken: success on invalid input.
4157 continue
4158 else
4159 # Passes both tests.
4160 ac_preproc_ok=:
4161 break
4162 fi
4163 rm -f conftest.err conftest.$ac_ext
4164
4165 done
4166 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4167 rm -f conftest.err conftest.$ac_ext
4168 if $ac_preproc_ok; then :
4169
4170 else
4171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4173 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4174 See \`config.log' for more details." "$LINENO" 5; }
4175 fi
4176
4177 ac_ext=c
4178 ac_cpp='$CPP $CPPFLAGS'
4179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4182
4183
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4185 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4186 if test "${ac_cv_path_GREP+set}" = set; then :
4187 $as_echo_n "(cached) " >&6
4188 else
4189 if test -z "$GREP"; then
4190 ac_path_GREP_found=false
4191 # Loop through the user's path and test for each of PROGNAME-LIST
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4194 do
4195 IFS=$as_save_IFS
4196 test -z "$as_dir" && as_dir=.
4197 for ac_prog in grep ggrep; do
4198 for ac_exec_ext in '' $ac_executable_extensions; do
4199 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4200 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4201 # Check for GNU ac_path_GREP and select it if it is found.
4202 # Check for GNU $ac_path_GREP
4203 case `"$ac_path_GREP" --version 2>&1` in
4204 *GNU*)
4205 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4206 *)
4207 ac_count=0
4208 $as_echo_n 0123456789 >"conftest.in"
4209 while :
4210 do
4211 cat "conftest.in" "conftest.in" >"conftest.tmp"
4212 mv "conftest.tmp" "conftest.in"
4213 cp "conftest.in" "conftest.nl"
4214 $as_echo 'GREP' >> "conftest.nl"
4215 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4216 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4217 as_fn_arith $ac_count + 1 && ac_count=$as_val
4218 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4219 # Best one so far, save it but keep looking for a better one
4220 ac_cv_path_GREP="$ac_path_GREP"
4221 ac_path_GREP_max=$ac_count
4222 fi
4223 # 10*(2^10) chars as input seems more than enough
4224 test $ac_count -gt 10 && break
4225 done
4226 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4227 esac
4228
4229 $ac_path_GREP_found && break 3
4230 done
4231 done
4232 done
4233 IFS=$as_save_IFS
4234 if test -z "$ac_cv_path_GREP"; then
4235 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4236 fi
4237 else
4238 ac_cv_path_GREP=$GREP
4239 fi
4240
4241 fi
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4243 $as_echo "$ac_cv_path_GREP" >&6; }
4244 GREP="$ac_cv_path_GREP"
4245
4246
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4248 $as_echo_n "checking for egrep... " >&6; }
4249 if test "${ac_cv_path_EGREP+set}" = set; then :
4250 $as_echo_n "(cached) " >&6
4251 else
4252 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4253 then ac_cv_path_EGREP="$GREP -E"
4254 else
4255 if test -z "$EGREP"; then
4256 ac_path_EGREP_found=false
4257 # Loop through the user's path and test for each of PROGNAME-LIST
4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4260 do
4261 IFS=$as_save_IFS
4262 test -z "$as_dir" && as_dir=.
4263 for ac_prog in egrep; do
4264 for ac_exec_ext in '' $ac_executable_extensions; do
4265 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4266 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4267 # Check for GNU ac_path_EGREP and select it if it is found.
4268 # Check for GNU $ac_path_EGREP
4269 case `"$ac_path_EGREP" --version 2>&1` in
4270 *GNU*)
4271 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4272 *)
4273 ac_count=0
4274 $as_echo_n 0123456789 >"conftest.in"
4275 while :
4276 do
4277 cat "conftest.in" "conftest.in" >"conftest.tmp"
4278 mv "conftest.tmp" "conftest.in"
4279 cp "conftest.in" "conftest.nl"
4280 $as_echo 'EGREP' >> "conftest.nl"
4281 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4282 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4283 as_fn_arith $ac_count + 1 && ac_count=$as_val
4284 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4285 # Best one so far, save it but keep looking for a better one
4286 ac_cv_path_EGREP="$ac_path_EGREP"
4287 ac_path_EGREP_max=$ac_count
4288 fi
4289 # 10*(2^10) chars as input seems more than enough
4290 test $ac_count -gt 10 && break
4291 done
4292 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4293 esac
4294
4295 $ac_path_EGREP_found && break 3
4296 done
4297 done
4298 done
4299 IFS=$as_save_IFS
4300 if test -z "$ac_cv_path_EGREP"; then
4301 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4302 fi
4303 else
4304 ac_cv_path_EGREP=$EGREP
4305 fi
4306
4307 fi
4308 fi
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4310 $as_echo "$ac_cv_path_EGREP" >&6; }
4311 EGREP="$ac_cv_path_EGREP"
4312
4313
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4315 $as_echo_n "checking for ANSI C header files... " >&6; }
4316 if test "${ac_cv_header_stdc+set}" = set; then :
4317 $as_echo_n "(cached) " >&6
4318 else
4319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4320 /* end confdefs.h. */
4321 #include <stdlib.h>
4322 #include <stdarg.h>
4323 #include <string.h>
4324 #include <float.h>
4325
4326 int
4327 main ()
4328 {
4329
4330 ;
4331 return 0;
4332 }
4333 _ACEOF
4334 if ac_fn_c_try_compile "$LINENO"; then :
4335 ac_cv_header_stdc=yes
4336 else
4337 ac_cv_header_stdc=no
4338 fi
4339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340
4341 if test $ac_cv_header_stdc = yes; then
4342 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4345 #include <string.h>
4346
4347 _ACEOF
4348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4349 $EGREP "memchr" >/dev/null 2>&1; then :
4350
4351 else
4352 ac_cv_header_stdc=no
4353 fi
4354 rm -f conftest*
4355
4356 fi
4357
4358 if test $ac_cv_header_stdc = yes; then
4359 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361 /* end confdefs.h. */
4362 #include <stdlib.h>
4363
4364 _ACEOF
4365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4366 $EGREP "free" >/dev/null 2>&1; then :
4367
4368 else
4369 ac_cv_header_stdc=no
4370 fi
4371 rm -f conftest*
4372
4373 fi
4374
4375 if test $ac_cv_header_stdc = yes; then
4376 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4377 if test "$cross_compiling" = yes; then :
4378 :
4379 else
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h. */
4382 #include <ctype.h>
4383 #include <stdlib.h>
4384 #if ((' ' & 0x0FF) == 0x020)
4385 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4386 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4387 #else
4388 # define ISLOWER(c) \
4389 (('a' <= (c) && (c) <= 'i') \
4390 || ('j' <= (c) && (c) <= 'r') \
4391 || ('s' <= (c) && (c) <= 'z'))
4392 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4393 #endif
4394
4395 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4396 int
4397 main ()
4398 {
4399 int i;
4400 for (i = 0; i < 256; i++)
4401 if (XOR (islower (i), ISLOWER (i))
4402 || toupper (i) != TOUPPER (i))
4403 return 2;
4404 return 0;
4405 }
4406 _ACEOF
4407 if ac_fn_c_try_run "$LINENO"; then :
4408
4409 else
4410 ac_cv_header_stdc=no
4411 fi
4412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4413 conftest.$ac_objext conftest.beam conftest.$ac_ext
4414 fi
4415
4416 fi
4417 fi
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4419 $as_echo "$ac_cv_header_stdc" >&6; }
4420 if test $ac_cv_header_stdc = yes; then
4421
4422 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4423
4424 fi
4425
4426 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4427 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4428 inttypes.h stdint.h unistd.h
4429 do :
4430 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4431 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4432 "
4433 eval as_val=\$$as_ac_Header
4434 if test "x$as_val" = x""yes; then :
4435 cat >>confdefs.h <<_ACEOF
4436 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4437 _ACEOF
4438
4439 fi
4440
4441 done
4442
4443
4444
4445
4446
4447 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4448 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4449 MINIX=yes
4450 else
4451 MINIX=
4452 fi
4453
4454
4455 if test "$MINIX" = yes; then
4456
4457 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4458
4459
4460 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4461
4462
4463 $as_echo "#define _MINIX 1" >>confdefs.h
4464
4465 fi
4466
4467 case "$host_os" in
4468 hpux*)
4469
4470 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4471
4472 ;;
4473 esac
4474
4475
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4477 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4478 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4479 $as_echo_n "(cached) " >&6
4480 else
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4483
4484 # define __EXTENSIONS__ 1
4485 $ac_includes_default
4486 int
4487 main ()
4488 {
4489
4490 ;
4491 return 0;
4492 }
4493 _ACEOF
4494 if ac_fn_c_try_compile "$LINENO"; then :
4495 ac_cv_safe_to_define___extensions__=yes
4496 else
4497 ac_cv_safe_to_define___extensions__=no
4498 fi
4499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4500 fi
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4502 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4503 test $ac_cv_safe_to_define___extensions__ = yes &&
4504 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4505
4506 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4507
4508 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4509
4510 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4511
4512 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4513
4514 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4515
4516
4517
4518
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4520 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4521 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4522 $as_echo_n "(cached) " >&6
4523 else
4524
4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h. */
4527
4528 #ifdef __ACK__
4529 Amsterdam
4530 #endif
4531
4532 _ACEOF
4533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4534 $EGREP "Amsterdam" >/dev/null 2>&1; then :
4535 gl_cv_c_amsterdam_compiler=yes
4536 else
4537 gl_cv_c_amsterdam_compiler=no
4538 fi
4539 rm -f conftest*
4540
4541
4542 fi
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4544 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4545 if test -z "$AR"; then
4546 if test $gl_cv_c_amsterdam_compiler = yes; then
4547 AR='cc -c.a'
4548 if test -z "$ARFLAGS"; then
4549 ARFLAGS='-o'
4550 fi
4551 else
4552 if test -n "$ac_tool_prefix"; then
4553 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4554 set dummy ${ac_tool_prefix}ar; ac_word=$2
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4556 $as_echo_n "checking for $ac_word... " >&6; }
4557 if test "${ac_cv_prog_AR+set}" = set; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 if test -n "$AR"; then
4561 ac_cv_prog_AR="$AR" # Let the user override the test.
4562 else
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 for as_dir in $PATH
4565 do
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4570 ac_cv_prog_AR="${ac_tool_prefix}ar"
4571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4572 break 2
4573 fi
4574 done
4575 done
4576 IFS=$as_save_IFS
4577
4578 fi
4579 fi
4580 AR=$ac_cv_prog_AR
4581 if test -n "$AR"; then
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4583 $as_echo "$AR" >&6; }
4584 else
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586 $as_echo "no" >&6; }
4587 fi
4588
4589
4590 fi
4591 if test -z "$ac_cv_prog_AR"; then
4592 ac_ct_AR=$AR
4593 # Extract the first word of "ar", so it can be a program name with args.
4594 set dummy ar; ac_word=$2
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596 $as_echo_n "checking for $ac_word... " >&6; }
4597 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4598 $as_echo_n "(cached) " >&6
4599 else
4600 if test -n "$ac_ct_AR"; then
4601 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4602 else
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 for as_dir in $PATH
4605 do
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4610 ac_cv_prog_ac_ct_AR="ar"
4611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 break 2
4613 fi
4614 done
4615 done
4616 IFS=$as_save_IFS
4617
4618 fi
4619 fi
4620 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4621 if test -n "$ac_ct_AR"; then
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4623 $as_echo "$ac_ct_AR" >&6; }
4624 else
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4626 $as_echo "no" >&6; }
4627 fi
4628
4629 if test "x$ac_ct_AR" = x; then
4630 AR="ar"
4631 else
4632 case $cross_compiling:$ac_tool_warned in
4633 yes:)
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4636 ac_tool_warned=yes ;;
4637 esac
4638 AR=$ac_ct_AR
4639 fi
4640 else
4641 AR="$ac_cv_prog_AR"
4642 fi
4643
4644 if test -z "$ARFLAGS"; then
4645 ARFLAGS='cru'
4646 fi
4647 fi
4648 else
4649 if test -z "$ARFLAGS"; then
4650 ARFLAGS='cru'
4651 fi
4652 fi
4653
4654
4655 if test -z "$RANLIB"; then
4656 if test $gl_cv_c_amsterdam_compiler = yes; then
4657 RANLIB=':'
4658 else
4659 if test -n "$ac_tool_prefix"; then
4660 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4661 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4665 $as_echo_n "(cached) " >&6
4666 else
4667 if test -n "$RANLIB"; then
4668 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4669 else
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH
4672 do
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4680 fi
4681 done
4682 done
4683 IFS=$as_save_IFS
4684
4685 fi
4686 fi
4687 RANLIB=$ac_cv_prog_RANLIB
4688 if test -n "$RANLIB"; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4690 $as_echo "$RANLIB" >&6; }
4691 else
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693 $as_echo "no" >&6; }
4694 fi
4695
4696
4697 fi
4698 if test -z "$ac_cv_prog_RANLIB"; then
4699 ac_ct_RANLIB=$RANLIB
4700 # Extract the first word of "ranlib", so it can be a program name with args.
4701 set dummy ranlib; ac_word=$2
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703 $as_echo_n "checking for $ac_word... " >&6; }
4704 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4705 $as_echo_n "(cached) " >&6
4706 else
4707 if test -n "$ac_ct_RANLIB"; then
4708 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4709 else
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 for as_dir in $PATH
4712 do
4713 IFS=$as_save_IFS
4714 test -z "$as_dir" && as_dir=.
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4717 ac_cv_prog_ac_ct_RANLIB="ranlib"
4718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 break 2
4720 fi
4721 done
4722 done
4723 IFS=$as_save_IFS
4724
4725 fi
4726 fi
4727 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4728 if test -n "$ac_ct_RANLIB"; then
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4730 $as_echo "$ac_ct_RANLIB" >&6; }
4731 else
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733 $as_echo "no" >&6; }
4734 fi
4735
4736 if test "x$ac_ct_RANLIB" = x; then
4737 RANLIB=":"
4738 else
4739 case $cross_compiling:$ac_tool_warned in
4740 yes:)
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4743 ac_tool_warned=yes ;;
4744 esac
4745 RANLIB=$ac_ct_RANLIB
4746 fi
4747 else
4748 RANLIB="$ac_cv_prog_RANLIB"
4749 fi
4750
4751 fi
4752 fi
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764 # IEEE behaviour is the default on all CPUs except Alpha and SH
4765 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
4766 # and the GCC 4.1.2 manual).
4767 case "$host_cpu" in
4768 alpha*)
4769 # On Alpha systems, a compiler option provides the behaviour.
4770 # See the ieee(3) manual page, also available at
4771 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
4772 if test -n "$GCC"; then
4773 # GCC has the option -mieee.
4774 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
4775 CPPFLAGS="$CPPFLAGS -mieee"
4776 else
4777 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
4778 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
4779 CPPFLAGS="$CPPFLAGS -ieee"
4780 fi
4781 ;;
4782 sh*)
4783 if test -n "$GCC"; then
4784 # GCC has the option -mieee.
4785 CPPFLAGS="$CPPFLAGS -mieee"
4786 fi
4787 ;;
4788 esac
4789
4790
4791
4792 # Code from module alloca:
4793 # Code from module alloca-opt:
4794 # Code from module configmake:
4795 # Code from module dirent:
4796 # Code from module extensions:
4797
4798 # Code from module extern-inline:
4799 # Code from module float:
4800 # Code from module fnmatch:
4801 # Code from module fnmatch-gnu:
4802 # Code from module fpieee:
4803
4804 # Code from module fpucw:
4805 # Code from module frexp:
4806 # Code from module frexpl:
4807 # Code from module include_next:
4808 # Code from module inttypes:
4809 # Code from module inttypes-incomplete:
4810 # Code from module isnand-nolibm:
4811 # Code from module isnanl-nolibm:
4812 # Code from module localcharset:
4813 # Code from module math:
4814 # Code from module mbrtowc:
4815 # Code from module mbsinit:
4816 # Code from module mbsrtowcs:
4817 # Code from module memchr:
4818 # Code from module memmem:
4819 # Code from module memmem-simple:
4820 # Code from module multiarch:
4821 # Code from module pathmax:
4822 # Code from module snippet/arg-nonnull:
4823 # Code from module snippet/c++defs:
4824 # Code from module snippet/warn-on-use:
4825 # Code from module ssize_t:
4826 # Code from module stdbool:
4827 # Code from module stddef:
4828 # Code from module stdint:
4829 # Code from module streq:
4830 # Code from module string:
4831 # Code from module strnlen1:
4832 # Code from module strstr:
4833 # Code from module strstr-simple:
4834 # Code from module sys_stat:
4835 # Code from module sys_types:
4836 # Code from module time:
4837 # Code from module unistd:
4838 # Code from module update-copyright:
4839 # Code from module verify:
4840 # Code from module wchar:
4841 # Code from module wctype-h:
4842
4843 ac_ext=c
4844 ac_cpp='$CPP $CPPFLAGS'
4845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4848 if test -n "$ac_tool_prefix"; then
4849 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4850 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852 $as_echo_n "checking for $ac_word... " >&6; }
4853 if test "${ac_cv_prog_CC+set}" = set; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 if test -n "$CC"; then
4857 ac_cv_prog_CC="$CC" # Let the user override the test.
4858 else
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH
4861 do
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4866 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 break 2
4869 fi
4870 done
4871 done
4872 IFS=$as_save_IFS
4873
4874 fi
4875 fi
4876 CC=$ac_cv_prog_CC
4877 if test -n "$CC"; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4879 $as_echo "$CC" >&6; }
4880 else
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 $as_echo "no" >&6; }
4883 fi
4884
4885
4886 fi
4887 if test -z "$ac_cv_prog_CC"; then
4888 ac_ct_CC=$CC
4889 # Extract the first word of "gcc", so it can be a program name with args.
4890 set dummy gcc; ac_word=$2
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4892 $as_echo_n "checking for $ac_word... " >&6; }
4893 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4894 $as_echo_n "(cached) " >&6
4895 else
4896 if test -n "$ac_ct_CC"; then
4897 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4898 else
4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 for as_dir in $PATH
4901 do
4902 IFS=$as_save_IFS
4903 test -z "$as_dir" && as_dir=.
4904 for ac_exec_ext in '' $ac_executable_extensions; do
4905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4906 ac_cv_prog_ac_ct_CC="gcc"
4907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 break 2
4909 fi
4910 done
4911 done
4912 IFS=$as_save_IFS
4913
4914 fi
4915 fi
4916 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4917 if test -n "$ac_ct_CC"; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4919 $as_echo "$ac_ct_CC" >&6; }
4920 else
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 $as_echo "no" >&6; }
4923 fi
4924
4925 if test "x$ac_ct_CC" = x; then
4926 CC=""
4927 else
4928 case $cross_compiling:$ac_tool_warned in
4929 yes:)
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4932 ac_tool_warned=yes ;;
4933 esac
4934 CC=$ac_ct_CC
4935 fi
4936 else
4937 CC="$ac_cv_prog_CC"
4938 fi
4939
4940 if test -z "$CC"; then
4941 if test -n "$ac_tool_prefix"; then
4942 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4943 set dummy ${ac_tool_prefix}cc; ac_word=$2
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4945 $as_echo_n "checking for $ac_word... " >&6; }
4946 if test "${ac_cv_prog_CC+set}" = set; then :
4947 $as_echo_n "(cached) " >&6
4948 else
4949 if test -n "$CC"; then
4950 ac_cv_prog_CC="$CC" # Let the user override the test.
4951 else
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH
4954 do
4955 IFS=$as_save_IFS
4956 test -z "$as_dir" && as_dir=.
4957 for ac_exec_ext in '' $ac_executable_extensions; do
4958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4959 ac_cv_prog_CC="${ac_tool_prefix}cc"
4960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4961 break 2
4962 fi
4963 done
4964 done
4965 IFS=$as_save_IFS
4966
4967 fi
4968 fi
4969 CC=$ac_cv_prog_CC
4970 if test -n "$CC"; then
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4972 $as_echo "$CC" >&6; }
4973 else
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4975 $as_echo "no" >&6; }
4976 fi
4977
4978
4979 fi
4980 fi
4981 if test -z "$CC"; then
4982 # Extract the first word of "cc", so it can be a program name with args.
4983 set dummy cc; ac_word=$2
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4985 $as_echo_n "checking for $ac_word... " >&6; }
4986 if test "${ac_cv_prog_CC+set}" = set; then :
4987 $as_echo_n "(cached) " >&6
4988 else
4989 if test -n "$CC"; then
4990 ac_cv_prog_CC="$CC" # Let the user override the test.
4991 else
4992 ac_prog_rejected=no
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH
4995 do
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5000 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5001 ac_prog_rejected=yes
5002 continue
5003 fi
5004 ac_cv_prog_CC="cc"
5005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5006 break 2
5007 fi
5008 done
5009 done
5010 IFS=$as_save_IFS
5011
5012 if test $ac_prog_rejected = yes; then
5013 # We found a bogon in the path, so make sure we never use it.
5014 set dummy $ac_cv_prog_CC
5015 shift
5016 if test $# != 0; then
5017 # We chose a different compiler from the bogus one.
5018 # However, it has the same basename, so the bogon will be chosen
5019 # first if we set CC to just the basename; use the full file name.
5020 shift
5021 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5022 fi
5023 fi
5024 fi
5025 fi
5026 CC=$ac_cv_prog_CC
5027 if test -n "$CC"; then
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5029 $as_echo "$CC" >&6; }
5030 else
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5032 $as_echo "no" >&6; }
5033 fi
5034
5035
5036 fi
5037 if test -z "$CC"; then
5038 if test -n "$ac_tool_prefix"; then
5039 for ac_prog in cl.exe
5040 do
5041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5042 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044 $as_echo_n "checking for $ac_word... " >&6; }
5045 if test "${ac_cv_prog_CC+set}" = set; then :
5046 $as_echo_n "(cached) " >&6
5047 else
5048 if test -n "$CC"; then
5049 ac_cv_prog_CC="$CC" # Let the user override the test.
5050 else
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH
5053 do
5054 IFS=$as_save_IFS
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5058 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 break 2
5061 fi
5062 done
5063 done
5064 IFS=$as_save_IFS
5065
5066 fi
5067 fi
5068 CC=$ac_cv_prog_CC
5069 if test -n "$CC"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5071 $as_echo "$CC" >&6; }
5072 else
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5075 fi
5076
5077
5078 test -n "$CC" && break
5079 done
5080 fi
5081 if test -z "$CC"; then
5082 ac_ct_CC=$CC
5083 for ac_prog in cl.exe
5084 do
5085 # Extract the first word of "$ac_prog", so it can be a program name with args.
5086 set dummy $ac_prog; ac_word=$2
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5088 $as_echo_n "checking for $ac_word... " >&6; }
5089 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5090 $as_echo_n "(cached) " >&6
5091 else
5092 if test -n "$ac_ct_CC"; then
5093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5094 else
5095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 for as_dir in $PATH
5097 do
5098 IFS=$as_save_IFS
5099 test -z "$as_dir" && as_dir=.
5100 for ac_exec_ext in '' $ac_executable_extensions; do
5101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5102 ac_cv_prog_ac_ct_CC="$ac_prog"
5103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5104 break 2
5105 fi
5106 done
5107 done
5108 IFS=$as_save_IFS
5109
5110 fi
5111 fi
5112 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5113 if test -n "$ac_ct_CC"; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5115 $as_echo "$ac_ct_CC" >&6; }
5116 else
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5118 $as_echo "no" >&6; }
5119 fi
5120
5121
5122 test -n "$ac_ct_CC" && break
5123 done
5124
5125 if test "x$ac_ct_CC" = x; then
5126 CC=""
5127 else
5128 case $cross_compiling:$ac_tool_warned in
5129 yes:)
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5131 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5132 ac_tool_warned=yes ;;
5133 esac
5134 CC=$ac_ct_CC
5135 fi
5136 fi
5137
5138 fi
5139
5140
5141 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5142 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5143 as_fn_error "no acceptable C compiler found in \$PATH
5144 See \`config.log' for more details." "$LINENO" 5; }
5145
5146 # Provide some information about the compiler.
5147 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5148 set X $ac_compile
5149 ac_compiler=$2
5150 for ac_option in --version -v -V -qversion; do
5151 { { ac_try="$ac_compiler $ac_option >&5"
5152 case "(($ac_try" in
5153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5154 *) ac_try_echo=$ac_try;;
5155 esac
5156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5157 $as_echo "$ac_try_echo"; } >&5
5158 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5159 ac_status=$?
5160 if test -s conftest.err; then
5161 sed '10a\
5162 ... rest of stderr output deleted ...
5163 10q' conftest.err >conftest.er1
5164 cat conftest.er1 >&5
5165 rm -f conftest.er1 conftest.err
5166 fi
5167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5168 test $ac_status = 0; }
5169 done
5170
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5172 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5173 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5174 $as_echo_n "(cached) " >&6
5175 else
5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5178
5179 int
5180 main ()
5181 {
5182 #ifndef __GNUC__
5183 choke me
5184 #endif
5185
5186 ;
5187 return 0;
5188 }
5189 _ACEOF
5190 if ac_fn_c_try_compile "$LINENO"; then :
5191 ac_compiler_gnu=yes
5192 else
5193 ac_compiler_gnu=no
5194 fi
5195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5196 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5197
5198 fi
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5200 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5201 if test $ac_compiler_gnu = yes; then
5202 GCC=yes
5203 else
5204 GCC=
5205 fi
5206 ac_test_CFLAGS=${CFLAGS+set}
5207 ac_save_CFLAGS=$CFLAGS
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5209 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5210 if test "${ac_cv_prog_cc_g+set}" = set; then :
5211 $as_echo_n "(cached) " >&6
5212 else
5213 ac_save_c_werror_flag=$ac_c_werror_flag
5214 ac_c_werror_flag=yes
5215 ac_cv_prog_cc_g=no
5216 CFLAGS="-g"
5217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218 /* end confdefs.h. */
5219
5220 int
5221 main ()
5222 {
5223
5224 ;
5225 return 0;
5226 }
5227 _ACEOF
5228 if ac_fn_c_try_compile "$LINENO"; then :
5229 ac_cv_prog_cc_g=yes
5230 else
5231 CFLAGS=""
5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5233 /* end confdefs.h. */
5234
5235 int
5236 main ()
5237 {
5238
5239 ;
5240 return 0;
5241 }
5242 _ACEOF
5243 if ac_fn_c_try_compile "$LINENO"; then :
5244
5245 else
5246 ac_c_werror_flag=$ac_save_c_werror_flag
5247 CFLAGS="-g"
5248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249 /* end confdefs.h. */
5250
5251 int
5252 main ()
5253 {
5254
5255 ;
5256 return 0;
5257 }
5258 _ACEOF
5259 if ac_fn_c_try_compile "$LINENO"; then :
5260 ac_cv_prog_cc_g=yes
5261 fi
5262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5263 fi
5264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5265 fi
5266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5267 ac_c_werror_flag=$ac_save_c_werror_flag
5268 fi
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5270 $as_echo "$ac_cv_prog_cc_g" >&6; }
5271 if test "$ac_test_CFLAGS" = set; then
5272 CFLAGS=$ac_save_CFLAGS
5273 elif test $ac_cv_prog_cc_g = yes; then
5274 if test "$GCC" = yes; then
5275 CFLAGS="-g -O2"
5276 else
5277 CFLAGS="-g"
5278 fi
5279 else
5280 if test "$GCC" = yes; then
5281 CFLAGS="-O2"
5282 else
5283 CFLAGS=
5284 fi
5285 fi
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5287 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5288 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5289 $as_echo_n "(cached) " >&6
5290 else
5291 ac_cv_prog_cc_c89=no
5292 ac_save_CC=$CC
5293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5294 /* end confdefs.h. */
5295 #include <stdarg.h>
5296 #include <stdio.h>
5297 #include <sys/types.h>
5298 #include <sys/stat.h>
5299 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5300 struct buf { int x; };
5301 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5302 static char *e (p, i)
5303 char **p;
5304 int i;
5305 {
5306 return p[i];
5307 }
5308 static char *f (char * (*g) (char **, int), char **p, ...)
5309 {
5310 char *s;
5311 va_list v;
5312 va_start (v,p);
5313 s = g (p, va_arg (v,int));
5314 va_end (v);
5315 return s;
5316 }
5317
5318 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5319 function prototypes and stuff, but not '\xHH' hex character constants.
5320 These don't provoke an error unfortunately, instead are silently treated
5321 as 'x'. The following induces an error, until -std is added to get
5322 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5323 array size at least. It's necessary to write '\x00'==0 to get something
5324 that's true only with -std. */
5325 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5326
5327 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5328 inside strings and character constants. */
5329 #define FOO(x) 'x'
5330 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5331
5332 int test (int i, double x);
5333 struct s1 {int (*f) (int a);};
5334 struct s2 {int (*f) (double a);};
5335 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5336 int argc;
5337 char **argv;
5338 int
5339 main ()
5340 {
5341 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5342 ;
5343 return 0;
5344 }
5345 _ACEOF
5346 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5347 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5348 do
5349 CC="$ac_save_CC $ac_arg"
5350 if ac_fn_c_try_compile "$LINENO"; then :
5351 ac_cv_prog_cc_c89=$ac_arg
5352 fi
5353 rm -f core conftest.err conftest.$ac_objext
5354 test "x$ac_cv_prog_cc_c89" != "xno" && break
5355 done
5356 rm -f conftest.$ac_ext
5357 CC=$ac_save_CC
5358
5359 fi
5360 # AC_CACHE_VAL
5361 case "x$ac_cv_prog_cc_c89" in
5362 x)
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5364 $as_echo "none needed" >&6; } ;;
5365 xno)
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5367 $as_echo "unsupported" >&6; } ;;
5368 *)
5369 CC="$CC $ac_cv_prog_cc_c89"
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5371 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5372 esac
5373 if test "x$ac_cv_prog_cc_c89" != xno; then :
5374
5375 fi
5376
5377 ac_ext=c
5378 ac_cpp='$CPP $CPPFLAGS'
5379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5382
5383
5384 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5385
5386
5387 ac_aux_dir=
5388 for ac_dir in ../.. "$srcdir"/../..; do
5389 for ac_t in install-sh install.sh shtool; do
5390 if test -f "$ac_dir/$ac_t"; then
5391 ac_aux_dir=$ac_dir
5392 ac_install_sh="$ac_aux_dir/$ac_t -c"
5393 break 2
5394 fi
5395 done
5396 done
5397 if test -z "$ac_aux_dir"; then
5398 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5399 fi
5400
5401 # These three variables are undocumented and unsupported,
5402 # and are intended to be withdrawn in a future Autoconf release.
5403 # They can cause serious problems if a builder's source tree is in a directory
5404 # whose full name contains unusual characters.
5405 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5406 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5407 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5408
5409
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5411 $as_echo_n "checking target system type... " >&6; }
5412 if test "${ac_cv_target+set}" = set; then :
5413 $as_echo_n "(cached) " >&6
5414 else
5415 if test "x$target_alias" = x; then
5416 ac_cv_target=$ac_cv_host
5417 else
5418 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5419 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5420 fi
5421
5422 fi
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5424 $as_echo "$ac_cv_target" >&6; }
5425 case $ac_cv_target in
5426 *-*-*) ;;
5427 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5428 esac
5429 target=$ac_cv_target
5430 ac_save_IFS=$IFS; IFS='-'
5431 set x $ac_cv_target
5432 shift
5433 target_cpu=$1
5434 target_vendor=$2
5435 shift; shift
5436 # Remember, the first character of IFS is used to create $*,
5437 # except with old shells:
5438 target_os=$*
5439 IFS=$ac_save_IFS
5440 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5441
5442
5443 # The aliases save the names the user supplied, while $host etc.
5444 # will get canonicalized.
5445 test -n "$target_alias" &&
5446 test "$program_prefix$program_suffix$program_transform_name" = \
5447 NONENONEs,x,x, &&
5448 program_prefix=${target_alias}-
5449
5450
5451
5452
5453
5454
5455
5456 LIBC_FATAL_STDERR_=1
5457 export LIBC_FATAL_STDERR_
5458
5459 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5460 # for constant arguments. Useless!
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5462 $as_echo_n "checking for working alloca.h... " >&6; }
5463 if test "${ac_cv_working_alloca_h+set}" = set; then :
5464 $as_echo_n "(cached) " >&6
5465 else
5466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5467 /* end confdefs.h. */
5468 #include <alloca.h>
5469 int
5470 main ()
5471 {
5472 char *p = (char *) alloca (2 * sizeof (int));
5473 if (p) return 0;
5474 ;
5475 return 0;
5476 }
5477 _ACEOF
5478 if ac_fn_c_try_link "$LINENO"; then :
5479 ac_cv_working_alloca_h=yes
5480 else
5481 ac_cv_working_alloca_h=no
5482 fi
5483 rm -f core conftest.err conftest.$ac_objext \
5484 conftest$ac_exeext conftest.$ac_ext
5485 fi
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5487 $as_echo "$ac_cv_working_alloca_h" >&6; }
5488 if test $ac_cv_working_alloca_h = yes; then
5489
5490 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5491
5492 fi
5493
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5495 $as_echo_n "checking for alloca... " >&6; }
5496 if test "${ac_cv_func_alloca_works+set}" = set; then :
5497 $as_echo_n "(cached) " >&6
5498 else
5499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5500 /* end confdefs.h. */
5501 #ifdef __GNUC__
5502 # define alloca __builtin_alloca
5503 #else
5504 # ifdef _MSC_VER
5505 # include <malloc.h>
5506 # define alloca _alloca
5507 # else
5508 # ifdef HAVE_ALLOCA_H
5509 # include <alloca.h>
5510 # else
5511 # ifdef _AIX
5512 #pragma alloca
5513 # else
5514 # ifndef alloca /* predefined by HP cc +Olibcalls */
5515 char *alloca ();
5516 # endif
5517 # endif
5518 # endif
5519 # endif
5520 #endif
5521
5522 int
5523 main ()
5524 {
5525 char *p = (char *) alloca (1);
5526 if (p) return 0;
5527 ;
5528 return 0;
5529 }
5530 _ACEOF
5531 if ac_fn_c_try_link "$LINENO"; then :
5532 ac_cv_func_alloca_works=yes
5533 else
5534 ac_cv_func_alloca_works=no
5535 fi
5536 rm -f core conftest.err conftest.$ac_objext \
5537 conftest$ac_exeext conftest.$ac_ext
5538 fi
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5540 $as_echo "$ac_cv_func_alloca_works" >&6; }
5541
5542 if test $ac_cv_func_alloca_works = yes; then
5543
5544 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5545
5546 else
5547 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5548 # that cause trouble. Some versions do not even contain alloca or
5549 # contain a buggy version. If you still want to use their alloca,
5550 # use ar to extract alloca.o from them instead of compiling alloca.c.
5551
5552
5553
5554
5555
5556 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5557
5558 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5559
5560
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5562 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5563 if test "${ac_cv_os_cray+set}" = set; then :
5564 $as_echo_n "(cached) " >&6
5565 else
5566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5567 /* end confdefs.h. */
5568 #if defined CRAY && ! defined CRAY2
5569 webecray
5570 #else
5571 wenotbecray
5572 #endif
5573
5574 _ACEOF
5575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5576 $EGREP "webecray" >/dev/null 2>&1; then :
5577 ac_cv_os_cray=yes
5578 else
5579 ac_cv_os_cray=no
5580 fi
5581 rm -f conftest*
5582
5583 fi
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5585 $as_echo "$ac_cv_os_cray" >&6; }
5586 if test $ac_cv_os_cray = yes; then
5587 for ac_func in _getb67 GETB67 getb67; do
5588 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5589 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5590 eval as_val=\$$as_ac_var
5591 if test "x$as_val" = x""yes; then :
5592
5593 cat >>confdefs.h <<_ACEOF
5594 #define CRAY_STACKSEG_END $ac_func
5595 _ACEOF
5596
5597 break
5598 fi
5599
5600 done
5601 fi
5602
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5604 $as_echo_n "checking stack direction for C alloca... " >&6; }
5605 if test "${ac_cv_c_stack_direction+set}" = set; then :
5606 $as_echo_n "(cached) " >&6
5607 else
5608 if test "$cross_compiling" = yes; then :
5609 ac_cv_c_stack_direction=0
5610 else
5611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5612 /* end confdefs.h. */
5613 $ac_includes_default
5614 int
5615 find_stack_direction (int *addr, int depth)
5616 {
5617 int dir, dummy = 0;
5618 if (! addr)
5619 addr = &dummy;
5620 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5621 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5622 return dir + dummy;
5623 }
5624
5625 int
5626 main (int argc, char **argv)
5627 {
5628 return find_stack_direction (0, argc + !argv + 20) < 0;
5629 }
5630 _ACEOF
5631 if ac_fn_c_try_run "$LINENO"; then :
5632 ac_cv_c_stack_direction=1
5633 else
5634 ac_cv_c_stack_direction=-1
5635 fi
5636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5637 conftest.$ac_objext conftest.beam conftest.$ac_ext
5638 fi
5639
5640 fi
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5642 $as_echo "$ac_cv_c_stack_direction" >&6; }
5643 cat >>confdefs.h <<_ACEOF
5644 #define STACK_DIRECTION $ac_cv_c_stack_direction
5645 _ACEOF
5646
5647
5648 fi
5649
5650
5651 GNULIB_CHDIR=0;
5652 GNULIB_CHOWN=0;
5653 GNULIB_CLOSE=0;
5654 GNULIB_DUP=0;
5655 GNULIB_DUP2=0;
5656 GNULIB_DUP3=0;
5657 GNULIB_ENVIRON=0;
5658 GNULIB_EUIDACCESS=0;
5659 GNULIB_FACCESSAT=0;
5660 GNULIB_FCHDIR=0;
5661 GNULIB_FCHOWNAT=0;
5662 GNULIB_FDATASYNC=0;
5663 GNULIB_FSYNC=0;
5664 GNULIB_FTRUNCATE=0;
5665 GNULIB_GETCWD=0;
5666 GNULIB_GETDOMAINNAME=0;
5667 GNULIB_GETDTABLESIZE=0;
5668 GNULIB_GETGROUPS=0;
5669 GNULIB_GETHOSTNAME=0;
5670 GNULIB_GETLOGIN=0;
5671 GNULIB_GETLOGIN_R=0;
5672 GNULIB_GETPAGESIZE=0;
5673 GNULIB_GETUSERSHELL=0;
5674 GNULIB_GROUP_MEMBER=0;
5675 GNULIB_ISATTY=0;
5676 GNULIB_LCHOWN=0;
5677 GNULIB_LINK=0;
5678 GNULIB_LINKAT=0;
5679 GNULIB_LSEEK=0;
5680 GNULIB_PIPE=0;
5681 GNULIB_PIPE2=0;
5682 GNULIB_PREAD=0;
5683 GNULIB_PWRITE=0;
5684 GNULIB_READ=0;
5685 GNULIB_READLINK=0;
5686 GNULIB_READLINKAT=0;
5687 GNULIB_RMDIR=0;
5688 GNULIB_SETHOSTNAME=0;
5689 GNULIB_SLEEP=0;
5690 GNULIB_SYMLINK=0;
5691 GNULIB_SYMLINKAT=0;
5692 GNULIB_TTYNAME_R=0;
5693 GNULIB_UNISTD_H_NONBLOCKING=0;
5694 GNULIB_UNISTD_H_SIGPIPE=0;
5695 GNULIB_UNLINK=0;
5696 GNULIB_UNLINKAT=0;
5697 GNULIB_USLEEP=0;
5698 GNULIB_WRITE=0;
5699 HAVE_CHOWN=1;
5700 HAVE_DUP2=1;
5701 HAVE_DUP3=1;
5702 HAVE_EUIDACCESS=1;
5703 HAVE_FACCESSAT=1;
5704 HAVE_FCHDIR=1;
5705 HAVE_FCHOWNAT=1;
5706 HAVE_FDATASYNC=1;
5707 HAVE_FSYNC=1;
5708 HAVE_FTRUNCATE=1;
5709 HAVE_GETDTABLESIZE=1;
5710 HAVE_GETGROUPS=1;
5711 HAVE_GETHOSTNAME=1;
5712 HAVE_GETLOGIN=1;
5713 HAVE_GETPAGESIZE=1;
5714 HAVE_GROUP_MEMBER=1;
5715 HAVE_LCHOWN=1;
5716 HAVE_LINK=1;
5717 HAVE_LINKAT=1;
5718 HAVE_PIPE=1;
5719 HAVE_PIPE2=1;
5720 HAVE_PREAD=1;
5721 HAVE_PWRITE=1;
5722 HAVE_READLINK=1;
5723 HAVE_READLINKAT=1;
5724 HAVE_SETHOSTNAME=1;
5725 HAVE_SLEEP=1;
5726 HAVE_SYMLINK=1;
5727 HAVE_SYMLINKAT=1;
5728 HAVE_UNLINKAT=1;
5729 HAVE_USLEEP=1;
5730 HAVE_DECL_ENVIRON=1;
5731 HAVE_DECL_FCHDIR=1;
5732 HAVE_DECL_FDATASYNC=1;
5733 HAVE_DECL_GETDOMAINNAME=1;
5734 HAVE_DECL_GETLOGIN_R=1;
5735 HAVE_DECL_GETPAGESIZE=1;
5736 HAVE_DECL_GETUSERSHELL=1;
5737 HAVE_DECL_SETHOSTNAME=1;
5738 HAVE_DECL_TTYNAME_R=1;
5739 HAVE_OS_H=0;
5740 HAVE_SYS_PARAM_H=0;
5741 REPLACE_CHOWN=0;
5742 REPLACE_CLOSE=0;
5743 REPLACE_DUP=0;
5744 REPLACE_DUP2=0;
5745 REPLACE_FCHOWNAT=0;
5746 REPLACE_FTRUNCATE=0;
5747 REPLACE_GETCWD=0;
5748 REPLACE_GETDOMAINNAME=0;
5749 REPLACE_GETLOGIN_R=0;
5750 REPLACE_GETGROUPS=0;
5751 REPLACE_GETPAGESIZE=0;
5752 REPLACE_ISATTY=0;
5753 REPLACE_LCHOWN=0;
5754 REPLACE_LINK=0;
5755 REPLACE_LINKAT=0;
5756 REPLACE_LSEEK=0;
5757 REPLACE_PREAD=0;
5758 REPLACE_PWRITE=0;
5759 REPLACE_READ=0;
5760 REPLACE_READLINK=0;
5761 REPLACE_RMDIR=0;
5762 REPLACE_SLEEP=0;
5763 REPLACE_SYMLINK=0;
5764 REPLACE_TTYNAME_R=0;
5765 REPLACE_UNLINK=0;
5766 REPLACE_UNLINKAT=0;
5767 REPLACE_USLEEP=0;
5768 REPLACE_WRITE=0;
5769 UNISTD_H_HAVE_WINSOCK2_H=0;
5770 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
5771
5772
5773
5774 GNULIB_OPENDIR=0;
5775 GNULIB_READDIR=0;
5776 GNULIB_REWINDDIR=0;
5777 GNULIB_CLOSEDIR=0;
5778 GNULIB_DIRFD=0;
5779 GNULIB_FDOPENDIR=0;
5780 GNULIB_SCANDIR=0;
5781 GNULIB_ALPHASORT=0;
5782 HAVE_OPENDIR=1;
5783 HAVE_READDIR=1;
5784 HAVE_REWINDDIR=1;
5785 HAVE_CLOSEDIR=1;
5786 HAVE_DECL_DIRFD=1;
5787 HAVE_DECL_FDOPENDIR=1;
5788 HAVE_FDOPENDIR=1;
5789 HAVE_SCANDIR=1;
5790 HAVE_ALPHASORT=1;
5791 REPLACE_OPENDIR=0;
5792 REPLACE_CLOSEDIR=0;
5793 REPLACE_DIRFD=0;
5794 REPLACE_FDOPENDIR=0;
5795
5796
5797
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5799 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5800 if test "${gl_cv_have_include_next+set}" = set; then :
5801 $as_echo_n "(cached) " >&6
5802 else
5803 rm -rf conftestd1a conftestd1b conftestd2
5804 mkdir conftestd1a conftestd1b conftestd2
5805 cat <<EOF > conftestd1a/conftest.h
5806 #define DEFINED_IN_CONFTESTD1
5807 #include_next <conftest.h>
5808 #ifdef DEFINED_IN_CONFTESTD2
5809 int foo;
5810 #else
5811 #error "include_next doesn't work"
5812 #endif
5813 EOF
5814 cat <<EOF > conftestd1b/conftest.h
5815 #define DEFINED_IN_CONFTESTD1
5816 #include <stdio.h>
5817 #include_next <conftest.h>
5818 #ifdef DEFINED_IN_CONFTESTD2
5819 int foo;
5820 #else
5821 #error "include_next doesn't work"
5822 #endif
5823 EOF
5824 cat <<EOF > conftestd2/conftest.h
5825 #ifndef DEFINED_IN_CONFTESTD1
5826 #error "include_next test doesn't work"
5827 #endif
5828 #define DEFINED_IN_CONFTESTD2
5829 EOF
5830 gl_save_CPPFLAGS="$CPPFLAGS"
5831 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5833 /* end confdefs.h. */
5834 #include <conftest.h>
5835 _ACEOF
5836 if ac_fn_c_try_compile "$LINENO"; then :
5837 gl_cv_have_include_next=yes
5838 else
5839 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5842 #include <conftest.h>
5843 _ACEOF
5844 if ac_fn_c_try_compile "$LINENO"; then :
5845 gl_cv_have_include_next=buggy
5846 else
5847 gl_cv_have_include_next=no
5848 fi
5849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850
5851 fi
5852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5853 CPPFLAGS="$gl_save_CPPFLAGS"
5854 rm -rf conftestd1a conftestd1b conftestd2
5855
5856 fi
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5858 $as_echo "$gl_cv_have_include_next" >&6; }
5859 PRAGMA_SYSTEM_HEADER=
5860 if test $gl_cv_have_include_next = yes; then
5861 INCLUDE_NEXT=include_next
5862 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5863 if test -n "$GCC"; then
5864 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5865 fi
5866 else
5867 if test $gl_cv_have_include_next = buggy; then
5868 INCLUDE_NEXT=include
5869 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5870 else
5871 INCLUDE_NEXT=include
5872 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5873 fi
5874 fi
5875
5876
5877
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
5879 $as_echo_n "checking whether system header files limit the line length... " >&6; }
5880 if test "${gl_cv_pragma_columns+set}" = set; then :
5881 $as_echo_n "(cached) " >&6
5882 else
5883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884 /* end confdefs.h. */
5885
5886 #ifdef __TANDEM
5887 choke me
5888 #endif
5889
5890 _ACEOF
5891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5892 $EGREP "choke me" >/dev/null 2>&1; then :
5893 gl_cv_pragma_columns=yes
5894 else
5895 gl_cv_pragma_columns=no
5896 fi
5897 rm -f conftest*
5898
5899
5900 fi
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
5902 $as_echo "$gl_cv_pragma_columns" >&6; }
5903 if test $gl_cv_pragma_columns = yes; then
5904 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
5905 else
5906 PRAGMA_COLUMNS=
5907 fi
5908
5909
5910
5911
5912
5913 for ac_header in $ac_header_list
5914 do :
5915 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5916 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5917 "
5918 eval as_val=\$$as_ac_Header
5919 if test "x$as_val" = x""yes; then :
5920 cat >>confdefs.h <<_ACEOF
5921 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5922 _ACEOF
5923
5924 fi
5925
5926 done
5927
5928
5929
5930
5931
5932
5933
5934
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
5936 $as_echo_n "checking for mbstate_t... " >&6; }
5937 if test "${ac_cv_type_mbstate_t+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5939 else
5940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5941 /* end confdefs.h. */
5942 $ac_includes_default
5943 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5944 <wchar.h>.
5945 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5946 included before <wchar.h>. */
5947 #include <stddef.h>
5948 #include <stdio.h>
5949 #include <time.h>
5950 #include <wchar.h>
5951 int
5952 main ()
5953 {
5954 mbstate_t x; return sizeof x;
5955 ;
5956 return 0;
5957 }
5958 _ACEOF
5959 if ac_fn_c_try_compile "$LINENO"; then :
5960 ac_cv_type_mbstate_t=yes
5961 else
5962 ac_cv_type_mbstate_t=no
5963 fi
5964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5965 fi
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
5967 $as_echo "$ac_cv_type_mbstate_t" >&6; }
5968 if test $ac_cv_type_mbstate_t = yes; then
5969
5970 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
5971
5972 else
5973
5974 $as_echo "#define mbstate_t int" >>confdefs.h
5975
5976 fi
5977
5978
5979
5980
5981 for ac_func in $ac_func_list
5982 do :
5983 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5984 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5985 eval as_val=\$$as_ac_var
5986 if test "x$as_val" = x""yes; then :
5987 cat >>confdefs.h <<_ACEOF
5988 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5989 _ACEOF
5990
5991 fi
5992 done
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013 GNULIB_ACOSF=0;
6014 GNULIB_ACOSL=0;
6015 GNULIB_ASINF=0;
6016 GNULIB_ASINL=0;
6017 GNULIB_ATANF=0;
6018 GNULIB_ATANL=0;
6019 GNULIB_ATAN2F=0;
6020 GNULIB_CBRT=0;
6021 GNULIB_CBRTF=0;
6022 GNULIB_CBRTL=0;
6023 GNULIB_CEIL=0;
6024 GNULIB_CEILF=0;
6025 GNULIB_CEILL=0;
6026 GNULIB_COPYSIGN=0;
6027 GNULIB_COPYSIGNF=0;
6028 GNULIB_COPYSIGNL=0;
6029 GNULIB_COSF=0;
6030 GNULIB_COSL=0;
6031 GNULIB_COSHF=0;
6032 GNULIB_EXPF=0;
6033 GNULIB_EXPL=0;
6034 GNULIB_EXP2=0;
6035 GNULIB_EXP2F=0;
6036 GNULIB_EXP2L=0;
6037 GNULIB_EXPM1=0;
6038 GNULIB_EXPM1F=0;
6039 GNULIB_EXPM1L=0;
6040 GNULIB_FABSF=0;
6041 GNULIB_FABSL=0;
6042 GNULIB_FLOOR=0;
6043 GNULIB_FLOORF=0;
6044 GNULIB_FLOORL=0;
6045 GNULIB_FMA=0;
6046 GNULIB_FMAF=0;
6047 GNULIB_FMAL=0;
6048 GNULIB_FMOD=0;
6049 GNULIB_FMODF=0;
6050 GNULIB_FMODL=0;
6051 GNULIB_FREXPF=0;
6052 GNULIB_FREXP=0;
6053 GNULIB_FREXPL=0;
6054 GNULIB_HYPOT=0;
6055 GNULIB_HYPOTF=0;
6056 GNULIB_HYPOTL=0;
6057 GNULIB_ILOGB=0;
6058 GNULIB_ILOGBF=0;
6059 GNULIB_ILOGBL=0;
6060 GNULIB_ISFINITE=0;
6061 GNULIB_ISINF=0;
6062 GNULIB_ISNAN=0;
6063 GNULIB_ISNANF=0;
6064 GNULIB_ISNAND=0;
6065 GNULIB_ISNANL=0;
6066 GNULIB_LDEXPF=0;
6067 GNULIB_LDEXPL=0;
6068 GNULIB_LOG=0;
6069 GNULIB_LOGF=0;
6070 GNULIB_LOGL=0;
6071 GNULIB_LOG10=0;
6072 GNULIB_LOG10F=0;
6073 GNULIB_LOG10L=0;
6074 GNULIB_LOG1P=0;
6075 GNULIB_LOG1PF=0;
6076 GNULIB_LOG1PL=0;
6077 GNULIB_LOG2=0;
6078 GNULIB_LOG2F=0;
6079 GNULIB_LOG2L=0;
6080 GNULIB_LOGB=0;
6081 GNULIB_LOGBF=0;
6082 GNULIB_LOGBL=0;
6083 GNULIB_MODF=0;
6084 GNULIB_MODFF=0;
6085 GNULIB_MODFL=0;
6086 GNULIB_POWF=0;
6087 GNULIB_REMAINDER=0;
6088 GNULIB_REMAINDERF=0;
6089 GNULIB_REMAINDERL=0;
6090 GNULIB_RINT=0;
6091 GNULIB_RINTF=0;
6092 GNULIB_RINTL=0;
6093 GNULIB_ROUND=0;
6094 GNULIB_ROUNDF=0;
6095 GNULIB_ROUNDL=0;
6096 GNULIB_SIGNBIT=0;
6097 GNULIB_SINF=0;
6098 GNULIB_SINL=0;
6099 GNULIB_SINHF=0;
6100 GNULIB_SQRTF=0;
6101 GNULIB_SQRTL=0;
6102 GNULIB_TANF=0;
6103 GNULIB_TANL=0;
6104 GNULIB_TANHF=0;
6105 GNULIB_TRUNC=0;
6106 GNULIB_TRUNCF=0;
6107 GNULIB_TRUNCL=0;
6108 HAVE_ACOSF=1;
6109 HAVE_ACOSL=1;
6110 HAVE_ASINF=1;
6111 HAVE_ASINL=1;
6112 HAVE_ATANF=1;
6113 HAVE_ATANL=1;
6114 HAVE_ATAN2F=1;
6115 HAVE_CBRT=1;
6116 HAVE_CBRTF=1;
6117 HAVE_CBRTL=1;
6118 HAVE_COPYSIGN=1;
6119 HAVE_COPYSIGNL=1;
6120 HAVE_COSF=1;
6121 HAVE_COSL=1;
6122 HAVE_COSHF=1;
6123 HAVE_EXPF=1;
6124 HAVE_EXPL=1;
6125 HAVE_EXPM1=1;
6126 HAVE_EXPM1F=1;
6127 HAVE_FABSF=1;
6128 HAVE_FABSL=1;
6129 HAVE_FMA=1;
6130 HAVE_FMAF=1;
6131 HAVE_FMAL=1;
6132 HAVE_FMODF=1;
6133 HAVE_FMODL=1;
6134 HAVE_FREXPF=1;
6135 HAVE_HYPOTF=1;
6136 HAVE_HYPOTL=1;
6137 HAVE_ILOGB=1;
6138 HAVE_ILOGBF=1;
6139 HAVE_ILOGBL=1;
6140 HAVE_ISNANF=1;
6141 HAVE_ISNAND=1;
6142 HAVE_ISNANL=1;
6143 HAVE_LDEXPF=1;
6144 HAVE_LOGF=1;
6145 HAVE_LOGL=1;
6146 HAVE_LOG10F=1;
6147 HAVE_LOG10L=1;
6148 HAVE_LOG1P=1;
6149 HAVE_LOG1PF=1;
6150 HAVE_LOG1PL=1;
6151 HAVE_LOGBF=1;
6152 HAVE_LOGBL=1;
6153 HAVE_MODFF=1;
6154 HAVE_MODFL=1;
6155 HAVE_POWF=1;
6156 HAVE_REMAINDER=1;
6157 HAVE_REMAINDERF=1;
6158 HAVE_RINT=1;
6159 HAVE_RINTL=1;
6160 HAVE_SINF=1;
6161 HAVE_SINL=1;
6162 HAVE_SINHF=1;
6163 HAVE_SQRTF=1;
6164 HAVE_SQRTL=1;
6165 HAVE_TANF=1;
6166 HAVE_TANL=1;
6167 HAVE_TANHF=1;
6168 HAVE_DECL_ACOSL=1;
6169 HAVE_DECL_ASINL=1;
6170 HAVE_DECL_ATANL=1;
6171 HAVE_DECL_CBRTF=1;
6172 HAVE_DECL_CBRTL=1;
6173 HAVE_DECL_CEILF=1;
6174 HAVE_DECL_CEILL=1;
6175 HAVE_DECL_COPYSIGNF=1;
6176 HAVE_DECL_COSL=1;
6177 HAVE_DECL_EXPL=1;
6178 HAVE_DECL_EXP2=1;
6179 HAVE_DECL_EXP2F=1;
6180 HAVE_DECL_EXP2L=1;
6181 HAVE_DECL_EXPM1L=1;
6182 HAVE_DECL_FLOORF=1;
6183 HAVE_DECL_FLOORL=1;
6184 HAVE_DECL_FREXPL=1;
6185 HAVE_DECL_LDEXPL=1;
6186 HAVE_DECL_LOGL=1;
6187 HAVE_DECL_LOG10L=1;
6188 HAVE_DECL_LOG2=1;
6189 HAVE_DECL_LOG2F=1;
6190 HAVE_DECL_LOG2L=1;
6191 HAVE_DECL_LOGB=1;
6192 HAVE_DECL_REMAINDER=1;
6193 HAVE_DECL_REMAINDERL=1;
6194 HAVE_DECL_RINTF=1;
6195 HAVE_DECL_ROUND=1;
6196 HAVE_DECL_ROUNDF=1;
6197 HAVE_DECL_ROUNDL=1;
6198 HAVE_DECL_SINL=1;
6199 HAVE_DECL_SQRTL=1;
6200 HAVE_DECL_TANL=1;
6201 HAVE_DECL_TRUNC=1;
6202 HAVE_DECL_TRUNCF=1;
6203 HAVE_DECL_TRUNCL=1;
6204 REPLACE_CBRTF=0;
6205 REPLACE_CBRTL=0;
6206 REPLACE_CEIL=0;
6207 REPLACE_CEILF=0;
6208 REPLACE_CEILL=0;
6209 REPLACE_EXPM1=0;
6210 REPLACE_EXPM1F=0;
6211 REPLACE_EXP2=0;
6212 REPLACE_EXP2L=0;
6213 REPLACE_FABSL=0;
6214 REPLACE_FLOOR=0;
6215 REPLACE_FLOORF=0;
6216 REPLACE_FLOORL=0;
6217 REPLACE_FMA=0;
6218 REPLACE_FMAF=0;
6219 REPLACE_FMAL=0;
6220 REPLACE_FMOD=0;
6221 REPLACE_FMODF=0;
6222 REPLACE_FMODL=0;
6223 REPLACE_FREXPF=0;
6224 REPLACE_FREXP=0;
6225 REPLACE_FREXPL=0;
6226 REPLACE_HUGE_VAL=0;
6227 REPLACE_HYPOT=0;
6228 REPLACE_HYPOTF=0;
6229 REPLACE_HYPOTL=0;
6230 REPLACE_ILOGB=0;
6231 REPLACE_ILOGBF=0;
6232 REPLACE_ISFINITE=0;
6233 REPLACE_ISINF=0;
6234 REPLACE_ISNAN=0;
6235 REPLACE_LDEXPL=0;
6236 REPLACE_LOG=0;
6237 REPLACE_LOGF=0;
6238 REPLACE_LOGL=0;
6239 REPLACE_LOG10=0;
6240 REPLACE_LOG10F=0;
6241 REPLACE_LOG10L=0;
6242 REPLACE_LOG1P=0;
6243 REPLACE_LOG1PF=0;
6244 REPLACE_LOG1PL=0;
6245 REPLACE_LOG2=0;
6246 REPLACE_LOG2F=0;
6247 REPLACE_LOG2L=0;
6248 REPLACE_LOGB=0;
6249 REPLACE_LOGBF=0;
6250 REPLACE_LOGBL=0;
6251 REPLACE_MODF=0;
6252 REPLACE_MODFF=0;
6253 REPLACE_MODFL=0;
6254 REPLACE_NAN=0;
6255 REPLACE_REMAINDER=0;
6256 REPLACE_REMAINDERF=0;
6257 REPLACE_REMAINDERL=0;
6258 REPLACE_ROUND=0;
6259 REPLACE_ROUNDF=0;
6260 REPLACE_ROUNDL=0;
6261 REPLACE_SIGNBIT=0;
6262 REPLACE_SIGNBIT_USING_GCC=0;
6263 REPLACE_SQRTL=0;
6264 REPLACE_TRUNC=0;
6265 REPLACE_TRUNCF=0;
6266 REPLACE_TRUNCL=0;
6267
6268
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
6270 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
6271 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
6272 $as_echo_n "(cached) " >&6
6273 else
6274
6275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6277 #include <math.h>
6278 double x;
6279 int
6280 main ()
6281 {
6282 int e; return frexp (x, &e) > 0;
6283 ;
6284 return 0;
6285 }
6286 _ACEOF
6287 if ac_fn_c_try_link "$LINENO"; then :
6288 gl_cv_func_frexp_no_libm=yes
6289 else
6290 gl_cv_func_frexp_no_libm=no
6291 fi
6292 rm -f core conftest.err conftest.$ac_objext \
6293 conftest$ac_exeext conftest.$ac_ext
6294
6295 fi
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
6297 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
6298
6299
6300
6301
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
6303 $as_echo_n "checking whether long double and double are the same... " >&6; }
6304 if test "${gl_cv_long_double_equals_double+set}" = set; then :
6305 $as_echo_n "(cached) " >&6
6306 else
6307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6308 /* end confdefs.h. */
6309 #include <float.h>
6310 int
6311 main ()
6312 {
6313 typedef int check[sizeof (long double) == sizeof (double)
6314 && LDBL_MANT_DIG == DBL_MANT_DIG
6315 && LDBL_MAX_EXP == DBL_MAX_EXP
6316 && LDBL_MIN_EXP == DBL_MIN_EXP
6317 ? 1 : -1];
6318
6319 ;
6320 return 0;
6321 }
6322 _ACEOF
6323 if ac_fn_c_try_compile "$LINENO"; then :
6324 gl_cv_long_double_equals_double=yes
6325 else
6326 gl_cv_long_double_equals_double=no
6327 fi
6328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329
6330 fi
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
6332 $as_echo "$gl_cv_long_double_equals_double" >&6; }
6333 if test $gl_cv_long_double_equals_double = yes; then
6334
6335 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
6336
6337 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
6338 else
6339 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
6340 fi
6341
6342
6343
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6345 $as_echo_n "checking for unsigned long long int... " >&6; }
6346 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6347 $as_echo_n "(cached) " >&6
6348 else
6349 ac_cv_type_unsigned_long_long_int=yes
6350 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6352 /* end confdefs.h. */
6353
6354 /* For now, do not test the preprocessor; as of 2007 there are too many
6355 implementations with broken preprocessors. Perhaps this can
6356 be revisited in 2012. In the meantime, code should not expect
6357 #if to work with literals wider than 32 bits. */
6358 /* Test literals. */
6359 long long int ll = 9223372036854775807ll;
6360 long long int nll = -9223372036854775807LL;
6361 unsigned long long int ull = 18446744073709551615ULL;
6362 /* Test constant expressions. */
6363 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6364 ? 1 : -1)];
6365 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6366 ? 1 : -1)];
6367 int i = 63;
6368 int
6369 main ()
6370 {
6371 /* Test availability of runtime routines for shift and division. */
6372 long long int llmax = 9223372036854775807ll;
6373 unsigned long long int ullmax = 18446744073709551615ull;
6374 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6375 | (llmax / ll) | (llmax % ll)
6376 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6377 | (ullmax / ull) | (ullmax % ull));
6378 ;
6379 return 0;
6380 }
6381
6382 _ACEOF
6383 if ac_fn_c_try_link "$LINENO"; then :
6384
6385 else
6386 ac_cv_type_unsigned_long_long_int=no
6387 fi
6388 rm -f core conftest.err conftest.$ac_objext \
6389 conftest$ac_exeext conftest.$ac_ext
6390 fi
6391 fi
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6393 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6394 if test $ac_cv_type_unsigned_long_long_int = yes; then
6395
6396 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6397
6398 fi
6399
6400
6401
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6403 $as_echo_n "checking for long long int... " >&6; }
6404 if test "${ac_cv_type_long_long_int+set}" = set; then :
6405 $as_echo_n "(cached) " >&6
6406 else
6407 ac_cv_type_long_long_int=yes
6408 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6409 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6410 if test $ac_cv_type_long_long_int = yes; then
6411 if test "$cross_compiling" = yes; then :
6412 :
6413 else
6414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6415 /* end confdefs.h. */
6416 #include <limits.h>
6417 #ifndef LLONG_MAX
6418 # define HALF \
6419 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6420 # define LLONG_MAX (HALF - 1 + HALF)
6421 #endif
6422 int
6423 main ()
6424 {
6425 long long int n = 1;
6426 int i;
6427 for (i = 0; ; i++)
6428 {
6429 long long int m = n << i;
6430 if (m >> i != n)
6431 return 1;
6432 if (LLONG_MAX / 2 < m)
6433 break;
6434 }
6435 return 0;
6436 ;
6437 return 0;
6438 }
6439 _ACEOF
6440 if ac_fn_c_try_run "$LINENO"; then :
6441
6442 else
6443 ac_cv_type_long_long_int=no
6444 fi
6445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6446 conftest.$ac_objext conftest.beam conftest.$ac_ext
6447 fi
6448
6449 fi
6450 fi
6451 fi
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6453 $as_echo "$ac_cv_type_long_long_int" >&6; }
6454 if test $ac_cv_type_long_long_int = yes; then
6455
6456 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6457
6458 fi
6459
6460
6461
6462
6463
6464
6465 gl_cv_c_multiarch=no
6466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6468 #ifndef __APPLE_CC__
6469 not a universal capable compiler
6470 #endif
6471 typedef int dummy;
6472
6473 _ACEOF
6474 if ac_fn_c_try_compile "$LINENO"; then :
6475
6476 arch=
6477 prev=
6478 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
6479 if test -n "$prev"; then
6480 case $word in
6481 i?86 | x86_64 | ppc | ppc64)
6482 if test -z "$arch" || test "$arch" = "$word"; then
6483 arch="$word"
6484 else
6485 gl_cv_c_multiarch=yes
6486 fi
6487 ;;
6488 esac
6489 prev=
6490 else
6491 if test "x$word" = "x-arch"; then
6492 prev=arch
6493 fi
6494 fi
6495 done
6496
6497 fi
6498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6499 if test $gl_cv_c_multiarch = yes; then
6500 APPLE_UNIVERSAL_BUILD=1
6501 else
6502 APPLE_UNIVERSAL_BUILD=0
6503 fi
6504
6505
6506
6507
6508
6509 if test $ac_cv_type_long_long_int = yes; then
6510 HAVE_LONG_LONG_INT=1
6511 else
6512 HAVE_LONG_LONG_INT=0
6513 fi
6514
6515
6516 if test $ac_cv_type_unsigned_long_long_int = yes; then
6517 HAVE_UNSIGNED_LONG_LONG_INT=1
6518 else
6519 HAVE_UNSIGNED_LONG_LONG_INT=0
6520 fi
6521
6522
6523
6524 if test $ac_cv_header_wchar_h = yes; then
6525 HAVE_WCHAR_H=1
6526 else
6527 HAVE_WCHAR_H=0
6528 fi
6529
6530
6531 if test $ac_cv_header_inttypes_h = yes; then
6532 HAVE_INTTYPES_H=1
6533 else
6534 HAVE_INTTYPES_H=0
6535 fi
6536
6537
6538 if test $ac_cv_header_sys_types_h = yes; then
6539 HAVE_SYS_TYPES_H=1
6540 else
6541 HAVE_SYS_TYPES_H=0
6542 fi
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554 if test $gl_cv_have_include_next = yes; then
6555 gl_cv_next_stdint_h='<'stdint.h'>'
6556 else
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6558 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6559 if test "${gl_cv_next_stdint_h+set}" = set; then :
6560 $as_echo_n "(cached) " >&6
6561 else
6562
6563 if test $ac_cv_header_stdint_h = yes; then
6564
6565
6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6568 #include <stdint.h>
6569
6570 _ACEOF
6571 case "$host_os" in
6572 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6573 *) gl_absname_cpp="$ac_cpp" ;;
6574 esac
6575
6576 case "$host_os" in
6577 mingw*)
6578 gl_dirsep_regex='[/\\]'
6579 ;;
6580 *)
6581 gl_dirsep_regex='\/'
6582 ;;
6583 esac
6584 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6585
6586 gl_header_literal_regex=`echo 'stdint.h' \
6587 | sed -e "$gl_make_literal_regex_sed"`
6588 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6589 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6590 s|^/[^/]|//&|
6591 p
6592 q
6593 }'
6594 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6595 sed -n "$gl_absolute_header_sed"`'"'
6596 else
6597 gl_cv_next_stdint_h='<'stdint.h'>'
6598 fi
6599
6600
6601 fi
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6603 $as_echo "$gl_cv_next_stdint_h" >&6; }
6604 fi
6605 NEXT_STDINT_H=$gl_cv_next_stdint_h
6606
6607 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6608 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6609 gl_next_as_first_directive='<'stdint.h'>'
6610 else
6611 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6612 gl_next_as_first_directive=$gl_cv_next_stdint_h
6613 fi
6614 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
6615
6616
6617
6618
6619 if test $ac_cv_header_stdint_h = yes; then
6620 HAVE_STDINT_H=1
6621 else
6622 HAVE_STDINT_H=0
6623 fi
6624
6625
6626 if test $ac_cv_header_stdint_h = yes; then
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6628 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6629 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6630 $as_echo_n "(cached) " >&6
6631 else
6632 gl_cv_header_working_stdint_h=no
6633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6634 /* end confdefs.h. */
6635
6636
6637 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6638 #include <stdint.h>
6639 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6640 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6641 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6642 #endif
6643
6644
6645 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6646 included before <wchar.h>. */
6647 #include <stddef.h>
6648 #include <signal.h>
6649 #if HAVE_WCHAR_H
6650 # include <stdio.h>
6651 # include <time.h>
6652 # include <wchar.h>
6653 #endif
6654
6655
6656 #ifdef INT8_MAX
6657 int8_t a1 = INT8_MAX;
6658 int8_t a1min = INT8_MIN;
6659 #endif
6660 #ifdef INT16_MAX
6661 int16_t a2 = INT16_MAX;
6662 int16_t a2min = INT16_MIN;
6663 #endif
6664 #ifdef INT32_MAX
6665 int32_t a3 = INT32_MAX;
6666 int32_t a3min = INT32_MIN;
6667 #endif
6668 #ifdef INT64_MAX
6669 int64_t a4 = INT64_MAX;
6670 int64_t a4min = INT64_MIN;
6671 #endif
6672 #ifdef UINT8_MAX
6673 uint8_t b1 = UINT8_MAX;
6674 #else
6675 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6676 #endif
6677 #ifdef UINT16_MAX
6678 uint16_t b2 = UINT16_MAX;
6679 #endif
6680 #ifdef UINT32_MAX
6681 uint32_t b3 = UINT32_MAX;
6682 #endif
6683 #ifdef UINT64_MAX
6684 uint64_t b4 = UINT64_MAX;
6685 #endif
6686 int_least8_t c1 = INT8_C (0x7f);
6687 int_least8_t c1max = INT_LEAST8_MAX;
6688 int_least8_t c1min = INT_LEAST8_MIN;
6689 int_least16_t c2 = INT16_C (0x7fff);
6690 int_least16_t c2max = INT_LEAST16_MAX;
6691 int_least16_t c2min = INT_LEAST16_MIN;
6692 int_least32_t c3 = INT32_C (0x7fffffff);
6693 int_least32_t c3max = INT_LEAST32_MAX;
6694 int_least32_t c3min = INT_LEAST32_MIN;
6695 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6696 int_least64_t c4max = INT_LEAST64_MAX;
6697 int_least64_t c4min = INT_LEAST64_MIN;
6698 uint_least8_t d1 = UINT8_C (0xff);
6699 uint_least8_t d1max = UINT_LEAST8_MAX;
6700 uint_least16_t d2 = UINT16_C (0xffff);
6701 uint_least16_t d2max = UINT_LEAST16_MAX;
6702 uint_least32_t d3 = UINT32_C (0xffffffff);
6703 uint_least32_t d3max = UINT_LEAST32_MAX;
6704 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6705 uint_least64_t d4max = UINT_LEAST64_MAX;
6706 int_fast8_t e1 = INT_FAST8_MAX;
6707 int_fast8_t e1min = INT_FAST8_MIN;
6708 int_fast16_t e2 = INT_FAST16_MAX;
6709 int_fast16_t e2min = INT_FAST16_MIN;
6710 int_fast32_t e3 = INT_FAST32_MAX;
6711 int_fast32_t e3min = INT_FAST32_MIN;
6712 int_fast64_t e4 = INT_FAST64_MAX;
6713 int_fast64_t e4min = INT_FAST64_MIN;
6714 uint_fast8_t f1 = UINT_FAST8_MAX;
6715 uint_fast16_t f2 = UINT_FAST16_MAX;
6716 uint_fast32_t f3 = UINT_FAST32_MAX;
6717 uint_fast64_t f4 = UINT_FAST64_MAX;
6718 #ifdef INTPTR_MAX
6719 intptr_t g = INTPTR_MAX;
6720 intptr_t gmin = INTPTR_MIN;
6721 #endif
6722 #ifdef UINTPTR_MAX
6723 uintptr_t h = UINTPTR_MAX;
6724 #endif
6725 intmax_t i = INTMAX_MAX;
6726 uintmax_t j = UINTMAX_MAX;
6727
6728 #include <limits.h> /* for CHAR_BIT */
6729 #define TYPE_MINIMUM(t) \
6730 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
6731 #define TYPE_MAXIMUM(t) \
6732 ((t) ((t) 0 < (t) -1 \
6733 ? (t) -1 \
6734 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
6735 struct s {
6736 int check_PTRDIFF:
6737 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6738 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6739 ? 1 : -1;
6740 /* Detect bug in FreeBSD 6.0 / ia64. */
6741 int check_SIG_ATOMIC:
6742 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6743 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6744 ? 1 : -1;
6745 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6746 int check_WCHAR:
6747 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6748 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6749 ? 1 : -1;
6750 /* Detect bug in mingw. */
6751 int check_WINT:
6752 WINT_MIN == TYPE_MINIMUM (wint_t)
6753 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6754 ? 1 : -1;
6755
6756 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6757 int check_UINT8_C:
6758 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6759 int check_UINT16_C:
6760 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6761
6762 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6763 #ifdef UINT8_MAX
6764 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6765 #endif
6766 #ifdef UINT16_MAX
6767 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6768 #endif
6769 #ifdef UINT32_MAX
6770 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6771 #endif
6772 #ifdef UINT64_MAX
6773 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6774 #endif
6775 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6776 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6777 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6778 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6779 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6780 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6781 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6782 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6783 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6784 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6785 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6786 };
6787
6788 int
6789 main ()
6790 {
6791
6792 ;
6793 return 0;
6794 }
6795 _ACEOF
6796 if ac_fn_c_try_compile "$LINENO"; then :
6797 if test "$cross_compiling" = yes; then :
6798 gl_cv_header_working_stdint_h=yes
6799
6800 else
6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h. */
6803
6804
6805 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6806 #include <stdint.h>
6807
6808
6809 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6810 included before <wchar.h>. */
6811 #include <stddef.h>
6812 #include <signal.h>
6813 #if HAVE_WCHAR_H
6814 # include <stdio.h>
6815 # include <time.h>
6816 # include <wchar.h>
6817 #endif
6818
6819
6820 #include <stdio.h>
6821 #include <string.h>
6822 #define MVAL(macro) MVAL1(macro)
6823 #define MVAL1(expression) #expression
6824 static const char *macro_values[] =
6825 {
6826 #ifdef INT8_MAX
6827 MVAL (INT8_MAX),
6828 #endif
6829 #ifdef INT16_MAX
6830 MVAL (INT16_MAX),
6831 #endif
6832 #ifdef INT32_MAX
6833 MVAL (INT32_MAX),
6834 #endif
6835 #ifdef INT64_MAX
6836 MVAL (INT64_MAX),
6837 #endif
6838 #ifdef UINT8_MAX
6839 MVAL (UINT8_MAX),
6840 #endif
6841 #ifdef UINT16_MAX
6842 MVAL (UINT16_MAX),
6843 #endif
6844 #ifdef UINT32_MAX
6845 MVAL (UINT32_MAX),
6846 #endif
6847 #ifdef UINT64_MAX
6848 MVAL (UINT64_MAX),
6849 #endif
6850 NULL
6851 };
6852
6853 int
6854 main ()
6855 {
6856
6857 const char **mv;
6858 for (mv = macro_values; *mv != NULL; mv++)
6859 {
6860 const char *value = *mv;
6861 /* Test whether it looks like a cast expression. */
6862 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6863 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6864 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6865 || strncmp (value, "((int)"/*)*/, 6) == 0
6866 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6867 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6868 return mv - macro_values + 1;
6869 }
6870 return 0;
6871
6872 ;
6873 return 0;
6874 }
6875 _ACEOF
6876 if ac_fn_c_try_run "$LINENO"; then :
6877 gl_cv_header_working_stdint_h=yes
6878 fi
6879 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6880 conftest.$ac_objext conftest.beam conftest.$ac_ext
6881 fi
6882
6883
6884 fi
6885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6886
6887 fi
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6889 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
6890 fi
6891 if test "$gl_cv_header_working_stdint_h" = yes; then
6892 STDINT_H=
6893 else
6894 for ac_header in sys/inttypes.h sys/bitypes.h
6895 do :
6896 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6897 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6898 eval as_val=\$$as_ac_Header
6899 if test "x$as_val" = x""yes; then :
6900 cat >>confdefs.h <<_ACEOF
6901 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6902 _ACEOF
6903
6904 fi
6905
6906 done
6907
6908 if test $ac_cv_header_sys_inttypes_h = yes; then
6909 HAVE_SYS_INTTYPES_H=1
6910 else
6911 HAVE_SYS_INTTYPES_H=0
6912 fi
6913
6914 if test $ac_cv_header_sys_bitypes_h = yes; then
6915 HAVE_SYS_BITYPES_H=1
6916 else
6917 HAVE_SYS_BITYPES_H=0
6918 fi
6919
6920
6921
6922
6923 if test $APPLE_UNIVERSAL_BUILD = 0; then
6924
6925
6926 for gltype in ptrdiff_t size_t ; do
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6928 $as_echo_n "checking for bit size of $gltype... " >&6; }
6929 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6930 $as_echo_n "(cached) " >&6
6931 else
6932 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6933 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6934 included before <wchar.h>. */
6935 #include <stddef.h>
6936 #include <signal.h>
6937 #if HAVE_WCHAR_H
6938 # include <stdio.h>
6939 # include <time.h>
6940 # include <wchar.h>
6941 #endif
6942
6943 #include <limits.h>"; then :
6944
6945 else
6946 result=unknown
6947 fi
6948
6949 eval gl_cv_bitsizeof_${gltype}=\$result
6950
6951 fi
6952 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6954 $as_echo "$ac_res" >&6; }
6955 eval result=\$gl_cv_bitsizeof_${gltype}
6956 if test $result = unknown; then
6957 result=0
6958 fi
6959 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6960 cat >>confdefs.h <<_ACEOF
6961 #define BITSIZEOF_${GLTYPE} $result
6962 _ACEOF
6963
6964 eval BITSIZEOF_${GLTYPE}=\$result
6965 done
6966
6967
6968 fi
6969
6970
6971 for gltype in sig_atomic_t wchar_t wint_t ; do
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6973 $as_echo_n "checking for bit size of $gltype... " >&6; }
6974 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6975 $as_echo_n "(cached) " >&6
6976 else
6977 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6978 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6979 included before <wchar.h>. */
6980 #include <stddef.h>
6981 #include <signal.h>
6982 #if HAVE_WCHAR_H
6983 # include <stdio.h>
6984 # include <time.h>
6985 # include <wchar.h>
6986 #endif
6987
6988 #include <limits.h>"; then :
6989
6990 else
6991 result=unknown
6992 fi
6993
6994 eval gl_cv_bitsizeof_${gltype}=\$result
6995
6996 fi
6997 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6999 $as_echo "$ac_res" >&6; }
7000 eval result=\$gl_cv_bitsizeof_${gltype}
7001 if test $result = unknown; then
7002 result=0
7003 fi
7004 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7005 cat >>confdefs.h <<_ACEOF
7006 #define BITSIZEOF_${GLTYPE} $result
7007 _ACEOF
7008
7009 eval BITSIZEOF_${GLTYPE}=\$result
7010 done
7011
7012
7013
7014
7015 for gltype in sig_atomic_t wchar_t wint_t ; do
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
7017 $as_echo_n "checking whether $gltype is signed... " >&6; }
7018 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
7019 $as_echo_n "(cached) " >&6
7020 else
7021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022 /* end confdefs.h. */
7023
7024 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7025 included before <wchar.h>. */
7026 #include <stddef.h>
7027 #include <signal.h>
7028 #if HAVE_WCHAR_H
7029 # include <stdio.h>
7030 # include <time.h>
7031 # include <wchar.h>
7032 #endif
7033
7034 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
7035 int
7036 main ()
7037 {
7038
7039 ;
7040 return 0;
7041 }
7042 _ACEOF
7043 if ac_fn_c_try_compile "$LINENO"; then :
7044 result=yes
7045 else
7046 result=no
7047 fi
7048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7049 eval gl_cv_type_${gltype}_signed=\$result
7050
7051 fi
7052 eval ac_res=\$gl_cv_type_${gltype}_signed
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7054 $as_echo "$ac_res" >&6; }
7055 eval result=\$gl_cv_type_${gltype}_signed
7056 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7057 if test "$result" = yes; then
7058 cat >>confdefs.h <<_ACEOF
7059 #define HAVE_SIGNED_${GLTYPE} 1
7060 _ACEOF
7061
7062 eval HAVE_SIGNED_${GLTYPE}=1
7063 else
7064 eval HAVE_SIGNED_${GLTYPE}=0
7065 fi
7066 done
7067
7068
7069 gl_cv_type_ptrdiff_t_signed=yes
7070 gl_cv_type_size_t_signed=no
7071 if test $APPLE_UNIVERSAL_BUILD = 0; then
7072
7073
7074 for gltype in ptrdiff_t size_t ; do
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
7076 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
7077 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
7078 $as_echo_n "(cached) " >&6
7079 else
7080 eval gl_cv_type_${gltype}_suffix=no
7081 eval result=\$gl_cv_type_${gltype}_signed
7082 if test "$result" = yes; then
7083 glsufu=
7084 else
7085 glsufu=u
7086 fi
7087 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
7088 case $glsuf in
7089 '') gltype1='int';;
7090 l) gltype1='long int';;
7091 ll) gltype1='long long int';;
7092 i64) gltype1='__int64';;
7093 u) gltype1='unsigned int';;
7094 ul) gltype1='unsigned long int';;
7095 ull) gltype1='unsigned long long int';;
7096 ui64)gltype1='unsigned __int64';;
7097 esac
7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099 /* end confdefs.h. */
7100
7101 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7102 included before <wchar.h>. */
7103 #include <stddef.h>
7104 #include <signal.h>
7105 #if HAVE_WCHAR_H
7106 # include <stdio.h>
7107 # include <time.h>
7108 # include <wchar.h>
7109 #endif
7110
7111 extern $gltype foo;
7112 extern $gltype1 foo;
7113 int
7114 main ()
7115 {
7116
7117 ;
7118 return 0;
7119 }
7120 _ACEOF
7121 if ac_fn_c_try_compile "$LINENO"; then :
7122 eval gl_cv_type_${gltype}_suffix=\$glsuf
7123 fi
7124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7125 eval result=\$gl_cv_type_${gltype}_suffix
7126 test "$result" != no && break
7127 done
7128 fi
7129 eval ac_res=\$gl_cv_type_${gltype}_suffix
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7131 $as_echo "$ac_res" >&6; }
7132 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7133 eval result=\$gl_cv_type_${gltype}_suffix
7134 test "$result" = no && result=
7135 eval ${GLTYPE}_SUFFIX=\$result
7136 cat >>confdefs.h <<_ACEOF
7137 #define ${GLTYPE}_SUFFIX $result
7138 _ACEOF
7139
7140 done
7141
7142
7143 fi
7144
7145
7146 for gltype in sig_atomic_t wchar_t wint_t ; do
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
7148 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
7149 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
7150 $as_echo_n "(cached) " >&6
7151 else
7152 eval gl_cv_type_${gltype}_suffix=no
7153 eval result=\$gl_cv_type_${gltype}_signed
7154 if test "$result" = yes; then
7155 glsufu=
7156 else
7157 glsufu=u
7158 fi
7159 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
7160 case $glsuf in
7161 '') gltype1='int';;
7162 l) gltype1='long int';;
7163 ll) gltype1='long long int';;
7164 i64) gltype1='__int64';;
7165 u) gltype1='unsigned int';;
7166 ul) gltype1='unsigned long int';;
7167 ull) gltype1='unsigned long long int';;
7168 ui64)gltype1='unsigned __int64';;
7169 esac
7170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7171 /* end confdefs.h. */
7172
7173 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7174 included before <wchar.h>. */
7175 #include <stddef.h>
7176 #include <signal.h>
7177 #if HAVE_WCHAR_H
7178 # include <stdio.h>
7179 # include <time.h>
7180 # include <wchar.h>
7181 #endif
7182
7183 extern $gltype foo;
7184 extern $gltype1 foo;
7185 int
7186 main ()
7187 {
7188
7189 ;
7190 return 0;
7191 }
7192 _ACEOF
7193 if ac_fn_c_try_compile "$LINENO"; then :
7194 eval gl_cv_type_${gltype}_suffix=\$glsuf
7195 fi
7196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7197 eval result=\$gl_cv_type_${gltype}_suffix
7198 test "$result" != no && break
7199 done
7200 fi
7201 eval ac_res=\$gl_cv_type_${gltype}_suffix
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7203 $as_echo "$ac_res" >&6; }
7204 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7205 eval result=\$gl_cv_type_${gltype}_suffix
7206 test "$result" = no && result=
7207 eval ${GLTYPE}_SUFFIX=\$result
7208 cat >>confdefs.h <<_ACEOF
7209 #define ${GLTYPE}_SUFFIX $result
7210 _ACEOF
7211
7212 done
7213
7214
7215
7216 if test $BITSIZEOF_WINT_T -lt 32; then
7217 BITSIZEOF_WINT_T=32
7218 fi
7219
7220 STDINT_H=stdint.h
7221 fi
7222
7223 if test -n "$STDINT_H"; then
7224 GL_GENERATE_STDINT_H_TRUE=
7225 GL_GENERATE_STDINT_H_FALSE='#'
7226 else
7227 GL_GENERATE_STDINT_H_TRUE='#'
7228 GL_GENERATE_STDINT_H_FALSE=
7229 fi
7230
7231
7232
7233
7234
7235 GNULIB_IMAXABS=0;
7236 GNULIB_IMAXDIV=0;
7237 GNULIB_STRTOIMAX=0;
7238 GNULIB_STRTOUMAX=0;
7239 HAVE_DECL_IMAXABS=1;
7240 HAVE_DECL_IMAXDIV=1;
7241 HAVE_DECL_STRTOIMAX=1;
7242 HAVE_DECL_STRTOUMAX=1;
7243 REPLACE_STRTOIMAX=0;
7244 INT32_MAX_LT_INTMAX_MAX=1;
7245 INT64_MAX_EQ_LONG_MAX='defined _LP64';
7246 PRI_MACROS_BROKEN=0;
7247 PRIPTR_PREFIX=__PRIPTR_PREFIX;
7248 UINT32_MAX_LT_UINTMAX_MAX=1;
7249 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265 if test $gl_cv_have_include_next = yes; then
7266 gl_cv_next_inttypes_h='<'inttypes.h'>'
7267 else
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
7269 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
7270 if test "${gl_cv_next_inttypes_h+set}" = set; then :
7271 $as_echo_n "(cached) " >&6
7272 else
7273
7274 if test $ac_cv_header_inttypes_h = yes; then
7275
7276
7277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278 /* end confdefs.h. */
7279 #include <inttypes.h>
7280
7281 _ACEOF
7282 case "$host_os" in
7283 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7284 *) gl_absname_cpp="$ac_cpp" ;;
7285 esac
7286
7287 case "$host_os" in
7288 mingw*)
7289 gl_dirsep_regex='[/\\]'
7290 ;;
7291 *)
7292 gl_dirsep_regex='\/'
7293 ;;
7294 esac
7295 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7296
7297 gl_header_literal_regex=`echo 'inttypes.h' \
7298 | sed -e "$gl_make_literal_regex_sed"`
7299 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7300 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7301 s|^/[^/]|//&|
7302 p
7303 q
7304 }'
7305 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7306 sed -n "$gl_absolute_header_sed"`'"'
7307 else
7308 gl_cv_next_inttypes_h='<'inttypes.h'>'
7309 fi
7310
7311
7312 fi
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
7314 $as_echo "$gl_cv_next_inttypes_h" >&6; }
7315 fi
7316 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
7317
7318 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7319 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7320 gl_next_as_first_directive='<'inttypes.h'>'
7321 else
7322 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7323 gl_next_as_first_directive=$gl_cv_next_inttypes_h
7324 fi
7325 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
7326
7327
7328
7329
7330
7331
7332
7333
7334 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
7335 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7337 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7338 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7339 $as_echo_n "(cached) " >&6
7340 else
7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h. */
7343 #include <inttypes.h>
7344
7345 int
7346 main ()
7347 {
7348 #undef $gl_func
7349 (void) $gl_func;
7350 ;
7351 return 0;
7352 }
7353 _ACEOF
7354 if ac_fn_c_try_compile "$LINENO"; then :
7355 eval "$as_gl_Symbol=yes"
7356 else
7357 eval "$as_gl_Symbol=no"
7358 fi
7359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7360 fi
7361 eval ac_res=\$$as_gl_Symbol
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7363 $as_echo "$ac_res" >&6; }
7364 eval as_val=\$$as_gl_Symbol
7365 if test "x$as_val" = x""yes; then :
7366 cat >>confdefs.h <<_ACEOF
7367 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7368 _ACEOF
7369
7370 eval ac_cv_have_decl_$gl_func=yes
7371 fi
7372 done
7373
7374
7375
7376 for ac_header in inttypes.h
7377 do :
7378 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7379 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
7380 cat >>confdefs.h <<_ACEOF
7381 #define HAVE_INTTYPES_H 1
7382 _ACEOF
7383
7384 fi
7385
7386 done
7387
7388 if test $ac_cv_header_inttypes_h = yes; then
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7390 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7391 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7392 $as_echo_n "(cached) " >&6
7393 else
7394
7395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7396 /* end confdefs.h. */
7397
7398 #include <inttypes.h>
7399 #ifdef PRId32
7400 char *p = PRId32;
7401 #endif
7402
7403 int
7404 main ()
7405 {
7406
7407 ;
7408 return 0;
7409 }
7410 _ACEOF
7411 if ac_fn_c_try_compile "$LINENO"; then :
7412 gt_cv_inttypes_pri_broken=no
7413 else
7414 gt_cv_inttypes_pri_broken=yes
7415 fi
7416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7417
7418 fi
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7420 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7421 fi
7422 if test "$gt_cv_inttypes_pri_broken" = yes; then
7423
7424 cat >>confdefs.h <<_ACEOF
7425 #define PRI_MACROS_BROKEN 1
7426 _ACEOF
7427
7428 PRI_MACROS_BROKEN=1
7429 else
7430 PRI_MACROS_BROKEN=0
7431 fi
7432
7433
7434
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
7436 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
7437 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
7438 $as_echo_n "(cached) " >&6
7439 else
7440
7441 if test "$cross_compiling" = yes; then :
7442
7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444 /* end confdefs.h. */
7445
7446 #if defined arm || defined __arm || defined __arm__
7447 mixed_endianness
7448 #endif
7449
7450 _ACEOF
7451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7452 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
7453 gl_cv_cc_double_expbit0="unknown"
7454 else
7455
7456 :
7457 if test "${ac_cv_c_bigendian+set}" = set; then :
7458 $as_echo_n "(cached) " >&6
7459 else
7460 ac_cv_c_bigendian=unknown
7461 # See if we're dealing with a universal compiler.
7462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h. */
7464 #ifndef __APPLE_CC__
7465 not a universal capable compiler
7466 #endif
7467 typedef int dummy;
7468
7469 _ACEOF
7470 if ac_fn_c_try_compile "$LINENO"; then :
7471
7472 # Check for potential -arch flags. It is not universal unless
7473 # there are at least two -arch flags with different values.
7474 ac_arch=
7475 ac_prev=
7476 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7477 if test -n "$ac_prev"; then
7478 case $ac_word in
7479 i?86 | x86_64 | ppc | ppc64)
7480 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7481 ac_arch=$ac_word
7482 else
7483 ac_cv_c_bigendian=universal
7484 break
7485 fi
7486 ;;
7487 esac
7488 ac_prev=
7489 elif test "x$ac_word" = "x-arch"; then
7490 ac_prev=arch
7491 fi
7492 done
7493 fi
7494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7495 if test $ac_cv_c_bigendian = unknown; then
7496 # See if sys/param.h defines the BYTE_ORDER macro.
7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498 /* end confdefs.h. */
7499 #include <sys/types.h>
7500 #include <sys/param.h>
7501
7502 int
7503 main ()
7504 {
7505 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7506 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7507 && LITTLE_ENDIAN)
7508 bogus endian macros
7509 #endif
7510
7511 ;
7512 return 0;
7513 }
7514 _ACEOF
7515 if ac_fn_c_try_compile "$LINENO"; then :
7516 # It does; now see whether it defined to BIG_ENDIAN or not.
7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518 /* end confdefs.h. */
7519 #include <sys/types.h>
7520 #include <sys/param.h>
7521
7522 int
7523 main ()
7524 {
7525 #if BYTE_ORDER != BIG_ENDIAN
7526 not big endian
7527 #endif
7528
7529 ;
7530 return 0;
7531 }
7532 _ACEOF
7533 if ac_fn_c_try_compile "$LINENO"; then :
7534 ac_cv_c_bigendian=yes
7535 else
7536 ac_cv_c_bigendian=no
7537 fi
7538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7539 fi
7540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7541 fi
7542 if test $ac_cv_c_bigendian = unknown; then
7543 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545 /* end confdefs.h. */
7546 #include <limits.h>
7547
7548 int
7549 main ()
7550 {
7551 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7552 bogus endian macros
7553 #endif
7554
7555 ;
7556 return 0;
7557 }
7558 _ACEOF
7559 if ac_fn_c_try_compile "$LINENO"; then :
7560 # It does; now see whether it defined to _BIG_ENDIAN or not.
7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562 /* end confdefs.h. */
7563 #include <limits.h>
7564
7565 int
7566 main ()
7567 {
7568 #ifndef _BIG_ENDIAN
7569 not big endian
7570 #endif
7571
7572 ;
7573 return 0;
7574 }
7575 _ACEOF
7576 if ac_fn_c_try_compile "$LINENO"; then :
7577 ac_cv_c_bigendian=yes
7578 else
7579 ac_cv_c_bigendian=no
7580 fi
7581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7582 fi
7583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7584 fi
7585 if test $ac_cv_c_bigendian = unknown; then
7586 # Compile a test program.
7587 if test "$cross_compiling" = yes; then :
7588 # Try to guess by grepping values from an object file.
7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h. */
7591 short int ascii_mm[] =
7592 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7593 short int ascii_ii[] =
7594 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7595 int use_ascii (int i) {
7596 return ascii_mm[i] + ascii_ii[i];
7597 }
7598 short int ebcdic_ii[] =
7599 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7600 short int ebcdic_mm[] =
7601 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7602 int use_ebcdic (int i) {
7603 return ebcdic_mm[i] + ebcdic_ii[i];
7604 }
7605 extern int foo;
7606
7607 int
7608 main ()
7609 {
7610 return use_ascii (foo) == use_ebcdic (foo);
7611 ;
7612 return 0;
7613 }
7614 _ACEOF
7615 if ac_fn_c_try_compile "$LINENO"; then :
7616 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7617 ac_cv_c_bigendian=yes
7618 fi
7619 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7620 if test "$ac_cv_c_bigendian" = unknown; then
7621 ac_cv_c_bigendian=no
7622 else
7623 # finding both strings is unlikely to happen, but who knows?
7624 ac_cv_c_bigendian=unknown
7625 fi
7626 fi
7627 fi
7628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7629 else
7630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7631 /* end confdefs.h. */
7632 $ac_includes_default
7633 int
7634 main ()
7635 {
7636
7637 /* Are we little or big endian? From Harbison&Steele. */
7638 union
7639 {
7640 long int l;
7641 char c[sizeof (long int)];
7642 } u;
7643 u.l = 1;
7644 return u.c[sizeof (long int) - 1] == 1;
7645
7646 ;
7647 return 0;
7648 }
7649 _ACEOF
7650 if ac_fn_c_try_run "$LINENO"; then :
7651 ac_cv_c_bigendian=no
7652 else
7653 ac_cv_c_bigendian=yes
7654 fi
7655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7656 conftest.$ac_objext conftest.beam conftest.$ac_ext
7657 fi
7658
7659 fi
7660 fi
7661 :
7662 case $ac_cv_c_bigendian in #(
7663 yes)
7664 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
7665 no)
7666 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
7667 universal)
7668
7669 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7670
7671 ;; #(
7672 *)
7673 gl_cv_cc_double_expbit0="unknown" ;;
7674 esac
7675
7676
7677 fi
7678 rm -f conftest*
7679
7680
7681 else
7682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7683 /* end confdefs.h. */
7684
7685 #include <float.h>
7686 #include <stddef.h>
7687 #include <stdio.h>
7688 #include <string.h>
7689 #define NWORDS \
7690 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
7691 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
7692 static unsigned int ored_words[NWORDS];
7693 static unsigned int anded_words[NWORDS];
7694 static void add_to_ored_words (double x)
7695 {
7696 memory_double m;
7697 size_t i;
7698 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
7699 memset (&m, 0, sizeof (memory_double));
7700 m.value = x;
7701 for (i = 0; i < NWORDS; i++)
7702 {
7703 ored_words[i] |= m.word[i];
7704 anded_words[i] &= m.word[i];
7705 }
7706 }
7707 int main ()
7708 {
7709 size_t j;
7710 FILE *fp = fopen ("conftest.out", "w");
7711 if (fp == NULL)
7712 return 1;
7713 for (j = 0; j < NWORDS; j++)
7714 anded_words[j] = ~ (unsigned int) 0;
7715 add_to_ored_words (0.25);
7716 add_to_ored_words (0.5);
7717 add_to_ored_words (1.0);
7718 add_to_ored_words (2.0);
7719 add_to_ored_words (4.0);
7720 /* Remove bits that are common (e.g. if representation of the first mantissa
7721 bit is explicit). */
7722 for (j = 0; j < NWORDS; j++)
7723 ored_words[j] &= ~anded_words[j];
7724 /* Now find the nonzero word. */
7725 for (j = 0; j < NWORDS; j++)
7726 if (ored_words[j] != 0)
7727 break;
7728 if (j < NWORDS)
7729 {
7730 size_t i;
7731 for (i = j + 1; i < NWORDS; i++)
7732 if (ored_words[i] != 0)
7733 {
7734 fprintf (fp, "unknown");
7735 return (fclose (fp) != 0);
7736 }
7737 for (i = 0; ; i++)
7738 if ((ored_words[j] >> i) & 1)
7739 {
7740 fprintf (fp, "word %d bit %d", (int) j, (int) i);
7741 return (fclose (fp) != 0);
7742 }
7743 }
7744 fprintf (fp, "unknown");
7745 return (fclose (fp) != 0);
7746 }
7747
7748 _ACEOF
7749 if ac_fn_c_try_run "$LINENO"; then :
7750 gl_cv_cc_double_expbit0=`cat conftest.out`
7751 else
7752 gl_cv_cc_double_expbit0="unknown"
7753 fi
7754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7755 conftest.$ac_objext conftest.beam conftest.$ac_ext
7756 fi
7757
7758 rm -f conftest.out
7759
7760 fi
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
7762 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
7763 case "$gl_cv_cc_double_expbit0" in
7764 word*bit*)
7765 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
7766 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
7767
7768 cat >>confdefs.h <<_ACEOF
7769 #define DBL_EXPBIT0_WORD $word
7770 _ACEOF
7771
7772
7773 cat >>confdefs.h <<_ACEOF
7774 #define DBL_EXPBIT0_BIT $bit
7775 _ACEOF
7776
7777 ;;
7778 esac
7779
7780
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7782 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7783 if test "${ac_cv_c_bigendian+set}" = set; then :
7784 $as_echo_n "(cached) " >&6
7785 else
7786 ac_cv_c_bigendian=unknown
7787 # See if we're dealing with a universal compiler.
7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789 /* end confdefs.h. */
7790 #ifndef __APPLE_CC__
7791 not a universal capable compiler
7792 #endif
7793 typedef int dummy;
7794
7795 _ACEOF
7796 if ac_fn_c_try_compile "$LINENO"; then :
7797
7798 # Check for potential -arch flags. It is not universal unless
7799 # there are at least two -arch flags with different values.
7800 ac_arch=
7801 ac_prev=
7802 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7803 if test -n "$ac_prev"; then
7804 case $ac_word in
7805 i?86 | x86_64 | ppc | ppc64)
7806 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7807 ac_arch=$ac_word
7808 else
7809 ac_cv_c_bigendian=universal
7810 break
7811 fi
7812 ;;
7813 esac
7814 ac_prev=
7815 elif test "x$ac_word" = "x-arch"; then
7816 ac_prev=arch
7817 fi
7818 done
7819 fi
7820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7821 if test $ac_cv_c_bigendian = unknown; then
7822 # See if sys/param.h defines the BYTE_ORDER macro.
7823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824 /* end confdefs.h. */
7825 #include <sys/types.h>
7826 #include <sys/param.h>
7827
7828 int
7829 main ()
7830 {
7831 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7832 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7833 && LITTLE_ENDIAN)
7834 bogus endian macros
7835 #endif
7836
7837 ;
7838 return 0;
7839 }
7840 _ACEOF
7841 if ac_fn_c_try_compile "$LINENO"; then :
7842 # It does; now see whether it defined to BIG_ENDIAN or not.
7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844 /* end confdefs.h. */
7845 #include <sys/types.h>
7846 #include <sys/param.h>
7847
7848 int
7849 main ()
7850 {
7851 #if BYTE_ORDER != BIG_ENDIAN
7852 not big endian
7853 #endif
7854
7855 ;
7856 return 0;
7857 }
7858 _ACEOF
7859 if ac_fn_c_try_compile "$LINENO"; then :
7860 ac_cv_c_bigendian=yes
7861 else
7862 ac_cv_c_bigendian=no
7863 fi
7864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7865 fi
7866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7867 fi
7868 if test $ac_cv_c_bigendian = unknown; then
7869 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h. */
7872 #include <limits.h>
7873
7874 int
7875 main ()
7876 {
7877 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7878 bogus endian macros
7879 #endif
7880
7881 ;
7882 return 0;
7883 }
7884 _ACEOF
7885 if ac_fn_c_try_compile "$LINENO"; then :
7886 # It does; now see whether it defined to _BIG_ENDIAN or not.
7887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7888 /* end confdefs.h. */
7889 #include <limits.h>
7890
7891 int
7892 main ()
7893 {
7894 #ifndef _BIG_ENDIAN
7895 not big endian
7896 #endif
7897
7898 ;
7899 return 0;
7900 }
7901 _ACEOF
7902 if ac_fn_c_try_compile "$LINENO"; then :
7903 ac_cv_c_bigendian=yes
7904 else
7905 ac_cv_c_bigendian=no
7906 fi
7907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7908 fi
7909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7910 fi
7911 if test $ac_cv_c_bigendian = unknown; then
7912 # Compile a test program.
7913 if test "$cross_compiling" = yes; then :
7914 # Try to guess by grepping values from an object file.
7915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916 /* end confdefs.h. */
7917 short int ascii_mm[] =
7918 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7919 short int ascii_ii[] =
7920 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7921 int use_ascii (int i) {
7922 return ascii_mm[i] + ascii_ii[i];
7923 }
7924 short int ebcdic_ii[] =
7925 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7926 short int ebcdic_mm[] =
7927 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7928 int use_ebcdic (int i) {
7929 return ebcdic_mm[i] + ebcdic_ii[i];
7930 }
7931 extern int foo;
7932
7933 int
7934 main ()
7935 {
7936 return use_ascii (foo) == use_ebcdic (foo);
7937 ;
7938 return 0;
7939 }
7940 _ACEOF
7941 if ac_fn_c_try_compile "$LINENO"; then :
7942 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7943 ac_cv_c_bigendian=yes
7944 fi
7945 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7946 if test "$ac_cv_c_bigendian" = unknown; then
7947 ac_cv_c_bigendian=no
7948 else
7949 # finding both strings is unlikely to happen, but who knows?
7950 ac_cv_c_bigendian=unknown
7951 fi
7952 fi
7953 fi
7954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7955 else
7956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957 /* end confdefs.h. */
7958 $ac_includes_default
7959 int
7960 main ()
7961 {
7962
7963 /* Are we little or big endian? From Harbison&Steele. */
7964 union
7965 {
7966 long int l;
7967 char c[sizeof (long int)];
7968 } u;
7969 u.l = 1;
7970 return u.c[sizeof (long int) - 1] == 1;
7971
7972 ;
7973 return 0;
7974 }
7975 _ACEOF
7976 if ac_fn_c_try_run "$LINENO"; then :
7977 ac_cv_c_bigendian=no
7978 else
7979 ac_cv_c_bigendian=yes
7980 fi
7981 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7982 conftest.$ac_objext conftest.beam conftest.$ac_ext
7983 fi
7984
7985 fi
7986 fi
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7988 $as_echo "$ac_cv_c_bigendian" >&6; }
7989 case $ac_cv_c_bigendian in #(
7990 yes)
7991 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7992 ;; #(
7993 no)
7994 ;; #(
7995 universal)
7996
7997 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7998
7999 ;; #(
8000 *)
8001 as_fn_error "unknown endianness
8002 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8003 esac
8004
8005
8006
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8008 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8009 if test "${am_cv_langinfo_codeset+set}" = set; then :
8010 $as_echo_n "(cached) " >&6
8011 else
8012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013 /* end confdefs.h. */
8014 #include <langinfo.h>
8015 int
8016 main ()
8017 {
8018 char* cs = nl_langinfo(CODESET); return !cs;
8019 ;
8020 return 0;
8021 }
8022 _ACEOF
8023 if ac_fn_c_try_link "$LINENO"; then :
8024 am_cv_langinfo_codeset=yes
8025 else
8026 am_cv_langinfo_codeset=no
8027 fi
8028 rm -f core conftest.err conftest.$ac_objext \
8029 conftest$ac_exeext conftest.$ac_ext
8030
8031 fi
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8033 $as_echo "$am_cv_langinfo_codeset" >&6; }
8034 if test $am_cv_langinfo_codeset = yes; then
8035
8036 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8037
8038 fi
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8050 $as_echo_n "checking for working fcntl.h... " >&6; }
8051 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
8052 $as_echo_n "(cached) " >&6
8053 else
8054 if test "$cross_compiling" = yes; then :
8055 gl_cv_header_working_fcntl_h=cross-compiling
8056 else
8057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8058 /* end confdefs.h. */
8059 #include <sys/types.h>
8060 #include <sys/stat.h>
8061 #if HAVE_UNISTD_H
8062 # include <unistd.h>
8063 #else /* on Windows with MSVC */
8064 # include <io.h>
8065 # include <stdlib.h>
8066 # defined sleep(n) _sleep ((n) * 1000)
8067 #endif
8068 #include <fcntl.h>
8069 #ifndef O_NOATIME
8070 #define O_NOATIME 0
8071 #endif
8072 #ifndef O_NOFOLLOW
8073 #define O_NOFOLLOW 0
8074 #endif
8075 static int const constants[] =
8076 {
8077 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8078 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8079 };
8080
8081 int
8082 main ()
8083 {
8084
8085 int result = !constants;
8086 #if HAVE_SYMLINK
8087 {
8088 static char const sym[] = "conftest.sym";
8089 if (symlink ("/dev/null", sym) != 0)
8090 result |= 2;
8091 else
8092 {
8093 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8094 if (fd >= 0)
8095 {
8096 close (fd);
8097 result |= 4;
8098 }
8099 }
8100 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8101 result |= 2;
8102 else
8103 {
8104 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
8105 if (fd >= 0)
8106 {
8107 close (fd);
8108 result |= 4;
8109 }
8110 }
8111 unlink (sym);
8112 }
8113 #endif
8114 {
8115 static char const file[] = "confdefs.h";
8116 int fd = open (file, O_RDONLY | O_NOATIME);
8117 if (fd < 0)
8118 result |= 8;
8119 else
8120 {
8121 struct stat st0;
8122 if (fstat (fd, &st0) != 0)
8123 result |= 16;
8124 else
8125 {
8126 char c;
8127 sleep (1);
8128 if (read (fd, &c, 1) != 1)
8129 result |= 24;
8130 else
8131 {
8132 if (close (fd) != 0)
8133 result |= 32;
8134 else
8135 {
8136 struct stat st1;
8137 if (stat (file, &st1) != 0)
8138 result |= 40;
8139 else
8140 if (st0.st_atime != st1.st_atime)
8141 result |= 64;
8142 }
8143 }
8144 }
8145 }
8146 }
8147 return result;
8148 ;
8149 return 0;
8150 }
8151 _ACEOF
8152 if ac_fn_c_try_run "$LINENO"; then :
8153 gl_cv_header_working_fcntl_h=yes
8154 else
8155 case $? in #(
8156 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
8157 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
8158 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8159 *) gl_cv_header_working_fcntl_h='no';;
8160 esac
8161 fi
8162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8163 conftest.$ac_objext conftest.beam conftest.$ac_ext
8164 fi
8165
8166 fi
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8168 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8169
8170 case $gl_cv_header_working_fcntl_h in #(
8171 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
8172 *) ac_val=1;;
8173 esac
8174
8175 cat >>confdefs.h <<_ACEOF
8176 #define HAVE_WORKING_O_NOATIME $ac_val
8177 _ACEOF
8178
8179
8180 case $gl_cv_header_working_fcntl_h in #(
8181 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
8182 *) ac_val=1;;
8183 esac
8184
8185 cat >>confdefs.h <<_ACEOF
8186 #define HAVE_WORKING_O_NOFOLLOW $ac_val
8187 _ACEOF
8188
8189
8190 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
8191 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
8192 ac_have_decl=1
8193 else
8194 ac_have_decl=0
8195 fi
8196
8197 cat >>confdefs.h <<_ACEOF
8198 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
8199 _ACEOF
8200
8201
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
8203 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
8204 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
8205 $as_echo_n "(cached) " >&6
8206 else
8207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8208 /* end confdefs.h. */
8209
8210 #include <features.h>
8211 #ifdef __GNU_LIBRARY__
8212 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8213 Lucky GNU user
8214 #endif
8215 #endif
8216 #ifdef __UCLIBC__
8217 Lucky user
8218 #endif
8219
8220 _ACEOF
8221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8222 $EGREP "Lucky" >/dev/null 2>&1; then :
8223 ac_cv_gnu_library_2_1=yes
8224 else
8225 ac_cv_gnu_library_2_1=no
8226 fi
8227 rm -f conftest*
8228
8229
8230
8231 fi
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
8233 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
8234
8235 GLIBC21="$ac_cv_gnu_library_2_1"
8236
8237
8238
8239
8240
8241 GNULIB_BTOWC=0;
8242 GNULIB_WCTOB=0;
8243 GNULIB_MBSINIT=0;
8244 GNULIB_MBRTOWC=0;
8245 GNULIB_MBRLEN=0;
8246 GNULIB_MBSRTOWCS=0;
8247 GNULIB_MBSNRTOWCS=0;
8248 GNULIB_WCRTOMB=0;
8249 GNULIB_WCSRTOMBS=0;
8250 GNULIB_WCSNRTOMBS=0;
8251 GNULIB_WCWIDTH=0;
8252 GNULIB_WMEMCHR=0;
8253 GNULIB_WMEMCMP=0;
8254 GNULIB_WMEMCPY=0;
8255 GNULIB_WMEMMOVE=0;
8256 GNULIB_WMEMSET=0;
8257 GNULIB_WCSLEN=0;
8258 GNULIB_WCSNLEN=0;
8259 GNULIB_WCSCPY=0;
8260 GNULIB_WCPCPY=0;
8261 GNULIB_WCSNCPY=0;
8262 GNULIB_WCPNCPY=0;
8263 GNULIB_WCSCAT=0;
8264 GNULIB_WCSNCAT=0;
8265 GNULIB_WCSCMP=0;
8266 GNULIB_WCSNCMP=0;
8267 GNULIB_WCSCASECMP=0;
8268 GNULIB_WCSNCASECMP=0;
8269 GNULIB_WCSCOLL=0;
8270 GNULIB_WCSXFRM=0;
8271 GNULIB_WCSDUP=0;
8272 GNULIB_WCSCHR=0;
8273 GNULIB_WCSRCHR=0;
8274 GNULIB_WCSCSPN=0;
8275 GNULIB_WCSSPN=0;
8276 GNULIB_WCSPBRK=0;
8277 GNULIB_WCSSTR=0;
8278 GNULIB_WCSTOK=0;
8279 GNULIB_WCSWIDTH=0;
8280 HAVE_BTOWC=1;
8281 HAVE_MBSINIT=1;
8282 HAVE_MBRTOWC=1;
8283 HAVE_MBRLEN=1;
8284 HAVE_MBSRTOWCS=1;
8285 HAVE_MBSNRTOWCS=1;
8286 HAVE_WCRTOMB=1;
8287 HAVE_WCSRTOMBS=1;
8288 HAVE_WCSNRTOMBS=1;
8289 HAVE_WMEMCHR=1;
8290 HAVE_WMEMCMP=1;
8291 HAVE_WMEMCPY=1;
8292 HAVE_WMEMMOVE=1;
8293 HAVE_WMEMSET=1;
8294 HAVE_WCSLEN=1;
8295 HAVE_WCSNLEN=1;
8296 HAVE_WCSCPY=1;
8297 HAVE_WCPCPY=1;
8298 HAVE_WCSNCPY=1;
8299 HAVE_WCPNCPY=1;
8300 HAVE_WCSCAT=1;
8301 HAVE_WCSNCAT=1;
8302 HAVE_WCSCMP=1;
8303 HAVE_WCSNCMP=1;
8304 HAVE_WCSCASECMP=1;
8305 HAVE_WCSNCASECMP=1;
8306 HAVE_WCSCOLL=1;
8307 HAVE_WCSXFRM=1;
8308 HAVE_WCSDUP=1;
8309 HAVE_WCSCHR=1;
8310 HAVE_WCSRCHR=1;
8311 HAVE_WCSCSPN=1;
8312 HAVE_WCSSPN=1;
8313 HAVE_WCSPBRK=1;
8314 HAVE_WCSSTR=1;
8315 HAVE_WCSTOK=1;
8316 HAVE_WCSWIDTH=1;
8317 HAVE_DECL_WCTOB=1;
8318 HAVE_DECL_WCWIDTH=1;
8319 REPLACE_MBSTATE_T=0;
8320 REPLACE_BTOWC=0;
8321 REPLACE_WCTOB=0;
8322 REPLACE_MBSINIT=0;
8323 REPLACE_MBRTOWC=0;
8324 REPLACE_MBRLEN=0;
8325 REPLACE_MBSRTOWCS=0;
8326 REPLACE_MBSNRTOWCS=0;
8327 REPLACE_WCRTOMB=0;
8328 REPLACE_WCSRTOMBS=0;
8329 REPLACE_WCSNRTOMBS=0;
8330 REPLACE_WCWIDTH=0;
8331 REPLACE_WCSWIDTH=0;
8332
8333
8334
8335
8336
8337
8338
8339
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
8341 $as_echo_n "checking for a traditional japanese locale... " >&6; }
8342 if test "${gt_cv_locale_ja+set}" = set; then :
8343 $as_echo_n "(cached) " >&6
8344 else
8345
8346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8347 /* end confdefs.h. */
8348
8349 #include <locale.h>
8350 #include <time.h>
8351 #if HAVE_LANGINFO_CODESET
8352 # include <langinfo.h>
8353 #endif
8354 #include <stdlib.h>
8355 #include <string.h>
8356 struct tm t;
8357 char buf[16];
8358 int main ()
8359 {
8360 const char *p;
8361 /* Check whether the given locale name is recognized by the system. */
8362 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8363 /* On native Windows, setlocale(category, "") looks at the system settings,
8364 not at the environment variables. Also, when an encoding suffix such
8365 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8366 category of the locale to "C". */
8367 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8368 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8369 return 1;
8370 #else
8371 if (setlocale (LC_ALL, "") == NULL) return 1;
8372 #endif
8373 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8374 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8375 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8376 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8377 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8378 some unit tests fail.
8379 On MirBSD 10, when an unsupported locale is specified, setlocale()
8380 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8381 #if HAVE_LANGINFO_CODESET
8382 {
8383 const char *cs = nl_langinfo (CODESET);
8384 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8385 || strcmp (cs, "UTF-8") == 0)
8386 return 1;
8387 }
8388 #endif
8389 #ifdef __CYGWIN__
8390 /* On Cygwin, avoid locale names without encoding suffix, because the
8391 locale_charset() function relies on the encoding suffix. Note that
8392 LC_ALL is set on the command line. */
8393 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8394 #endif
8395 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
8396 on Cygwin 1.5.x. */
8397 if (MB_CUR_MAX == 1)
8398 return 1;
8399 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8400 This excludes the UTF-8 encoding (except on MirBSD). */
8401 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8402 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8403 for (p = buf; *p != '\0'; p++)
8404 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8405 return 1;
8406 return 0;
8407 }
8408
8409 _ACEOF
8410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8411 (eval $ac_link) 2>&5
8412 ac_status=$?
8413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8414 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8415 case "$host_os" in
8416 # Handle native Windows specially, because there setlocale() interprets
8417 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8418 # "fr" or "fra" as "French" or "French_France.1252",
8419 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8420 # "ja" as "Japanese" or "Japanese_Japan.932",
8421 # and similar.
8422 mingw*)
8423 # Note that on native Windows, the Japanese locale is
8424 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
8425 # cannot use it here.
8426 gt_cv_locale_ja=none
8427 ;;
8428 *)
8429 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8430 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8431 # configure script would override the LC_ALL setting. Likewise for
8432 # LC_CTYPE, which is also set at the beginning of the configure script.
8433 # Test for the AIX locale name.
8434 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8435 gt_cv_locale_ja=ja_JP
8436 else
8437 # Test for the locale name with explicit encoding suffix.
8438 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8439 gt_cv_locale_ja=ja_JP.EUC-JP
8440 else
8441 # Test for the HP-UX, OSF/1, NetBSD locale name.
8442 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8443 gt_cv_locale_ja=ja_JP.eucJP
8444 else
8445 # Test for the IRIX, FreeBSD locale name.
8446 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8447 gt_cv_locale_ja=ja_JP.EUC
8448 else
8449 # Test for the Solaris 7 locale name.
8450 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8451 gt_cv_locale_ja=ja
8452 else
8453 # Special test for NetBSD 1.6.
8454 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
8455 gt_cv_locale_ja=ja_JP.eucJP
8456 else
8457 # None found.
8458 gt_cv_locale_ja=none
8459 fi
8460 fi
8461 fi
8462 fi
8463 fi
8464 fi
8465 ;;
8466 esac
8467 fi
8468 rm -fr conftest*
8469
8470 fi
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
8472 $as_echo "$gt_cv_locale_ja" >&6; }
8473 LOCALE_JA=$gt_cv_locale_ja
8474
8475
8476
8477
8478
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
8480 $as_echo_n "checking for a transitional chinese locale... " >&6; }
8481 if test "${gt_cv_locale_zh_CN+set}" = set; then :
8482 $as_echo_n "(cached) " >&6
8483 else
8484
8485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486 /* end confdefs.h. */
8487
8488 #include <locale.h>
8489 #include <stdlib.h>
8490 #include <time.h>
8491 #if HAVE_LANGINFO_CODESET
8492 # include <langinfo.h>
8493 #endif
8494 #include <stdlib.h>
8495 #include <string.h>
8496 struct tm t;
8497 char buf[16];
8498 int main ()
8499 {
8500 const char *p;
8501 /* Check whether the given locale name is recognized by the system. */
8502 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8503 /* On native Windows, setlocale(category, "") looks at the system settings,
8504 not at the environment variables. Also, when an encoding suffix such
8505 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8506 category of the locale to "C". */
8507 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8508 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8509 return 1;
8510 #else
8511 if (setlocale (LC_ALL, "") == NULL) return 1;
8512 #endif
8513 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8514 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8515 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8516 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8517 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8518 some unit tests fail.
8519 On MirBSD 10, when an unsupported locale is specified, setlocale()
8520 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8521 #if HAVE_LANGINFO_CODESET
8522 {
8523 const char *cs = nl_langinfo (CODESET);
8524 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8525 || strcmp (cs, "UTF-8") == 0)
8526 return 1;
8527 }
8528 #endif
8529 #ifdef __CYGWIN__
8530 /* On Cygwin, avoid locale names without encoding suffix, because the
8531 locale_charset() function relies on the encoding suffix. Note that
8532 LC_ALL is set on the command line. */
8533 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8534 #endif
8535 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8536 This excludes the UTF-8 encoding (except on MirBSD). */
8537 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8538 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8539 for (p = buf; *p != '\0'; p++)
8540 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8541 return 1;
8542 /* Check whether a typical GB18030 multibyte sequence is recognized as a
8543 single wide character. This excludes the GB2312 and GBK encodings. */
8544 if (mblen ("\203\062\332\066", 5) != 4)
8545 return 1;
8546 return 0;
8547 }
8548
8549 _ACEOF
8550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8551 (eval $ac_link) 2>&5
8552 ac_status=$?
8553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8554 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8555 case "$host_os" in
8556 # Handle native Windows specially, because there setlocale() interprets
8557 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8558 # "fr" or "fra" as "French" or "French_France.1252",
8559 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8560 # "ja" as "Japanese" or "Japanese_Japan.932",
8561 # and similar.
8562 mingw*)
8563 # Test for the hypothetical native Windows locale name.
8564 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8565 gt_cv_locale_zh_CN=Chinese_China.54936
8566 else
8567 # None found.
8568 gt_cv_locale_zh_CN=none
8569 fi
8570 ;;
8571 solaris2.8)
8572 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
8573 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
8574 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
8575 gt_cv_locale_zh_CN=none
8576 ;;
8577 *)
8578 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8579 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8580 # configure script would override the LC_ALL setting. Likewise for
8581 # LC_CTYPE, which is also set at the beginning of the configure script.
8582 # Test for the locale name without encoding suffix.
8583 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8584 gt_cv_locale_zh_CN=zh_CN
8585 else
8586 # Test for the locale name with explicit encoding suffix.
8587 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8588 gt_cv_locale_zh_CN=zh_CN.GB18030
8589 else
8590 # None found.
8591 gt_cv_locale_zh_CN=none
8592 fi
8593 fi
8594 ;;
8595 esac
8596 else
8597 # If there was a link error, due to mblen(), the system is so old that
8598 # it certainly doesn't have a chinese locale.
8599 gt_cv_locale_zh_CN=none
8600 fi
8601 rm -fr conftest*
8602
8603 fi
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
8605 $as_echo "$gt_cv_locale_zh_CN" >&6; }
8606 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
8607
8608
8609
8610
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
8612 $as_echo_n "checking for a french Unicode locale... " >&6; }
8613 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
8614 $as_echo_n "(cached) " >&6
8615 else
8616
8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h. */
8619
8620 #include <locale.h>
8621 #include <time.h>
8622 #if HAVE_LANGINFO_CODESET
8623 # include <langinfo.h>
8624 #endif
8625 #include <stdlib.h>
8626 #include <string.h>
8627 struct tm t;
8628 char buf[16];
8629 int main () {
8630 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
8631 imitates locale dependent behaviour by looking at the environment
8632 variables, and all locales use the UTF-8 encoding. */
8633 #if !(defined __BEOS__ || defined __HAIKU__)
8634 /* Check whether the given locale name is recognized by the system. */
8635 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8636 /* On native Windows, setlocale(category, "") looks at the system settings,
8637 not at the environment variables. Also, when an encoding suffix such
8638 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8639 category of the locale to "C". */
8640 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8641 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8642 return 1;
8643 # else
8644 if (setlocale (LC_ALL, "") == NULL) return 1;
8645 # endif
8646 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8647 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8648 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8649 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8650 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8651 some unit tests fail. */
8652 # if HAVE_LANGINFO_CODESET
8653 {
8654 const char *cs = nl_langinfo (CODESET);
8655 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
8656 return 1;
8657 }
8658 # endif
8659 # ifdef __CYGWIN__
8660 /* On Cygwin, avoid locale names without encoding suffix, because the
8661 locale_charset() function relies on the encoding suffix. Note that
8662 LC_ALL is set on the command line. */
8663 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8664 # endif
8665 /* Check whether in the abbreviation of the second month, the second
8666 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
8667 two bytes long, with UTF-8 encoding. */
8668 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8669 if (strftime (buf, sizeof (buf), "%b", &t) < 4
8670 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
8671 return 1;
8672 #endif
8673 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
8674 /* Check whether the decimal separator is a comma.
8675 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
8676 are nl_langinfo(RADIXCHAR) are both ".". */
8677 if (localeconv () ->decimal_point[0] != ',') return 1;
8678 #endif
8679 return 0;
8680 }
8681
8682 _ACEOF
8683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8684 (eval $ac_link) 2>&5
8685 ac_status=$?
8686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8687 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8688 case "$host_os" in
8689 # Handle native Windows specially, because there setlocale() interprets
8690 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8691 # "fr" or "fra" as "French" or "French_France.1252",
8692 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8693 # "ja" as "Japanese" or "Japanese_Japan.932",
8694 # and similar.
8695 mingw*)
8696 # Test for the hypothetical native Windows locale name.
8697 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8698 gt_cv_locale_fr_utf8=French_France.65001
8699 else
8700 # None found.
8701 gt_cv_locale_fr_utf8=none
8702 fi
8703 ;;
8704 *)
8705 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8706 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8707 # configure script would override the LC_ALL setting. Likewise for
8708 # LC_CTYPE, which is also set at the beginning of the configure script.
8709 # Test for the usual locale name.
8710 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8711 gt_cv_locale_fr_utf8=fr_FR
8712 else
8713 # Test for the locale name with explicit encoding suffix.
8714 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8715 gt_cv_locale_fr_utf8=fr_FR.UTF-8
8716 else
8717 # Test for the Solaris 7 locale name.
8718 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8719 gt_cv_locale_fr_utf8=fr.UTF-8
8720 else
8721 # None found.
8722 gt_cv_locale_fr_utf8=none
8723 fi
8724 fi
8725 fi
8726 ;;
8727 esac
8728 fi
8729 rm -fr conftest*
8730
8731 fi
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
8733 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
8734 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
8735
8736
8737
8738
8739
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
8741 $as_echo_n "checking for a traditional french locale... " >&6; }
8742 if test "${gt_cv_locale_fr+set}" = set; then :
8743 $as_echo_n "(cached) " >&6
8744 else
8745
8746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8747 /* end confdefs.h. */
8748
8749 #include <locale.h>
8750 #include <time.h>
8751 #if HAVE_LANGINFO_CODESET
8752 # include <langinfo.h>
8753 #endif
8754 #include <stdlib.h>
8755 #include <string.h>
8756 struct tm t;
8757 char buf[16];
8758 int main () {
8759 /* Check whether the given locale name is recognized by the system. */
8760 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8761 /* On native Windows, setlocale(category, "") looks at the system settings,
8762 not at the environment variables. Also, when an encoding suffix such
8763 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8764 category of the locale to "C". */
8765 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8766 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8767 return 1;
8768 #else
8769 if (setlocale (LC_ALL, "") == NULL) return 1;
8770 #endif
8771 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8772 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8773 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8774 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8775 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8776 some unit tests fail.
8777 On MirBSD 10, when an unsupported locale is specified, setlocale()
8778 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8779 #if HAVE_LANGINFO_CODESET
8780 {
8781 const char *cs = nl_langinfo (CODESET);
8782 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8783 || strcmp (cs, "UTF-8") == 0)
8784 return 1;
8785 }
8786 #endif
8787 #ifdef __CYGWIN__
8788 /* On Cygwin, avoid locale names without encoding suffix, because the
8789 locale_charset() function relies on the encoding suffix. Note that
8790 LC_ALL is set on the command line. */
8791 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8792 #endif
8793 /* Check whether in the abbreviation of the second month, the second
8794 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
8795 one byte long. This excludes the UTF-8 encoding. */
8796 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8797 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
8798 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
8799 /* Check whether the decimal separator is a comma.
8800 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
8801 are nl_langinfo(RADIXCHAR) are both ".". */
8802 if (localeconv () ->decimal_point[0] != ',') return 1;
8803 #endif
8804 return 0;
8805 }
8806
8807 _ACEOF
8808 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8809 (eval $ac_link) 2>&5
8810 ac_status=$?
8811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8812 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8813 case "$host_os" in
8814 # Handle native Windows specially, because there setlocale() interprets
8815 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8816 # "fr" or "fra" as "French" or "French_France.1252",
8817 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8818 # "ja" as "Japanese" or "Japanese_Japan.932",
8819 # and similar.
8820 mingw*)
8821 # Test for the native Windows locale name.
8822 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8823 gt_cv_locale_fr=French_France.1252
8824 else
8825 # None found.
8826 gt_cv_locale_fr=none
8827 fi
8828 ;;
8829 *)
8830 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8831 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8832 # configure script would override the LC_ALL setting. Likewise for
8833 # LC_CTYPE, which is also set at the beginning of the configure script.
8834 # Test for the usual locale name.
8835 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8836 gt_cv_locale_fr=fr_FR
8837 else
8838 # Test for the locale name with explicit encoding suffix.
8839 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8840 gt_cv_locale_fr=fr_FR.ISO-8859-1
8841 else
8842 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
8843 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8844 gt_cv_locale_fr=fr_FR.ISO8859-1
8845 else
8846 # Test for the HP-UX locale name.
8847 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8848 gt_cv_locale_fr=fr_FR.iso88591
8849 else
8850 # Test for the Solaris 7 locale name.
8851 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8852 gt_cv_locale_fr=fr
8853 else
8854 # None found.
8855 gt_cv_locale_fr=none
8856 fi
8857 fi
8858 fi
8859 fi
8860 fi
8861 ;;
8862 esac
8863 fi
8864 rm -fr conftest*
8865
8866 fi
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
8868 $as_echo "$gt_cv_locale_fr" >&6; }
8869 LOCALE_FR=$gt_cv_locale_fr
8870
8871
8872
8873
8874
8875
8876
8877 GNULIB_FFSL=0;
8878 GNULIB_FFSLL=0;
8879 GNULIB_MEMCHR=0;
8880 GNULIB_MEMMEM=0;
8881 GNULIB_MEMPCPY=0;
8882 GNULIB_MEMRCHR=0;
8883 GNULIB_RAWMEMCHR=0;
8884 GNULIB_STPCPY=0;
8885 GNULIB_STPNCPY=0;
8886 GNULIB_STRCHRNUL=0;
8887 GNULIB_STRDUP=0;
8888 GNULIB_STRNCAT=0;
8889 GNULIB_STRNDUP=0;
8890 GNULIB_STRNLEN=0;
8891 GNULIB_STRPBRK=0;
8892 GNULIB_STRSEP=0;
8893 GNULIB_STRSTR=0;
8894 GNULIB_STRCASESTR=0;
8895 GNULIB_STRTOK_R=0;
8896 GNULIB_MBSLEN=0;
8897 GNULIB_MBSNLEN=0;
8898 GNULIB_MBSCHR=0;
8899 GNULIB_MBSRCHR=0;
8900 GNULIB_MBSSTR=0;
8901 GNULIB_MBSCASECMP=0;
8902 GNULIB_MBSNCASECMP=0;
8903 GNULIB_MBSPCASECMP=0;
8904 GNULIB_MBSCASESTR=0;
8905 GNULIB_MBSCSPN=0;
8906 GNULIB_MBSPBRK=0;
8907 GNULIB_MBSSPN=0;
8908 GNULIB_MBSSEP=0;
8909 GNULIB_MBSTOK_R=0;
8910 GNULIB_STRERROR=0;
8911 GNULIB_STRERROR_R=0;
8912 GNULIB_STRSIGNAL=0;
8913 GNULIB_STRVERSCMP=0;
8914 HAVE_MBSLEN=0;
8915 HAVE_FFSL=1;
8916 HAVE_FFSLL=1;
8917 HAVE_MEMCHR=1;
8918 HAVE_DECL_MEMMEM=1;
8919 HAVE_MEMPCPY=1;
8920 HAVE_DECL_MEMRCHR=1;
8921 HAVE_RAWMEMCHR=1;
8922 HAVE_STPCPY=1;
8923 HAVE_STPNCPY=1;
8924 HAVE_STRCHRNUL=1;
8925 HAVE_DECL_STRDUP=1;
8926 HAVE_DECL_STRNDUP=1;
8927 HAVE_DECL_STRNLEN=1;
8928 HAVE_STRPBRK=1;
8929 HAVE_STRSEP=1;
8930 HAVE_STRCASESTR=1;
8931 HAVE_DECL_STRTOK_R=1;
8932 HAVE_DECL_STRERROR_R=1;
8933 HAVE_DECL_STRSIGNAL=1;
8934 HAVE_STRVERSCMP=1;
8935 REPLACE_MEMCHR=0;
8936 REPLACE_MEMMEM=0;
8937 REPLACE_STPNCPY=0;
8938 REPLACE_STRDUP=0;
8939 REPLACE_STRSTR=0;
8940 REPLACE_STRCASESTR=0;
8941 REPLACE_STRCHRNUL=0;
8942 REPLACE_STRERROR=0;
8943 REPLACE_STRERROR_R=0;
8944 REPLACE_STRNCAT=0;
8945 REPLACE_STRNDUP=0;
8946 REPLACE_STRNLEN=0;
8947 REPLACE_STRSIGNAL=0;
8948 REPLACE_STRTOK_R=0;
8949 UNDEFINE_STRTOK_R=0;
8950
8951
8952
8953
8954
8955 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
8956 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
8957 # irrelevant for anonymous mappings.
8958 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8959 if test "x$ac_cv_func_mmap" = x""yes; then :
8960 gl_have_mmap=yes
8961 else
8962 gl_have_mmap=no
8963 fi
8964
8965
8966 # Try to allow MAP_ANONYMOUS.
8967 gl_have_mmap_anonymous=no
8968 if test $gl_have_mmap = yes; then
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
8970 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
8971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8972 /* end confdefs.h. */
8973
8974 #include <sys/mman.h>
8975 #ifdef MAP_ANONYMOUS
8976 I cannot identify this map
8977 #endif
8978
8979 _ACEOF
8980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8981 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
8982 gl_have_mmap_anonymous=yes
8983 fi
8984 rm -f conftest*
8985
8986 if test $gl_have_mmap_anonymous != yes; then
8987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8988 /* end confdefs.h. */
8989
8990 #include <sys/mman.h>
8991 #ifdef MAP_ANON
8992 I cannot identify this map
8993 #endif
8994
8995 _ACEOF
8996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8997 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
8998
8999 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
9000
9001 gl_have_mmap_anonymous=yes
9002 fi
9003 rm -f conftest*
9004
9005 fi
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
9007 $as_echo "$gl_have_mmap_anonymous" >&6; }
9008 if test $gl_have_mmap_anonymous = yes; then
9009
9010 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
9011
9012 fi
9013 fi
9014
9015
9016
9017
9018
9019
9020 if test $HAVE_MEMCHR = 1; then
9021 # Detect platform-specific bugs in some versions of glibc:
9022 # memchr should not dereference anything with length 0
9023 # http://bugzilla.redhat.com/499689
9024 # memchr should not dereference overestimated length after a match
9025 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
9026 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
9027 # Assume that memchr works on platforms that lack mprotect.
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
9029 $as_echo_n "checking whether memchr works... " >&6; }
9030 if test "${gl_cv_func_memchr_works+set}" = set; then :
9031 $as_echo_n "(cached) " >&6
9032 else
9033 if test "$cross_compiling" = yes; then :
9034 gl_cv_func_memchr_works="guessing no"
9035 else
9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h. */
9038
9039 #include <string.h>
9040 #if HAVE_SYS_MMAN_H
9041 # include <fcntl.h>
9042 # include <unistd.h>
9043 # include <sys/types.h>
9044 # include <sys/mman.h>
9045 # ifndef MAP_FILE
9046 # define MAP_FILE 0
9047 # endif
9048 #endif
9049
9050 int
9051 main ()
9052 {
9053
9054 int result = 0;
9055 char *fence = NULL;
9056 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
9057 # if HAVE_MAP_ANONYMOUS
9058 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
9059 const int fd = -1;
9060 # else /* !HAVE_MAP_ANONYMOUS */
9061 const int flags = MAP_FILE | MAP_PRIVATE;
9062 int fd = open ("/dev/zero", O_RDONLY, 0666);
9063 if (fd >= 0)
9064 # endif
9065 {
9066 int pagesize = getpagesize ();
9067 char *two_pages =
9068 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
9069 flags, fd, 0);
9070 if (two_pages != (char *)(-1)
9071 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
9072 fence = two_pages + pagesize;
9073 }
9074 #endif
9075 if (fence)
9076 {
9077 if (memchr (fence, 0, 0))
9078 result |= 1;
9079 strcpy (fence - 9, "12345678");
9080 if (memchr (fence - 9, 0, 79) != fence - 1)
9081 result |= 2;
9082 if (memchr (fence - 1, 0, 3) != fence - 1)
9083 result |= 4;
9084 }
9085 return result;
9086
9087 ;
9088 return 0;
9089 }
9090 _ACEOF
9091 if ac_fn_c_try_run "$LINENO"; then :
9092 gl_cv_func_memchr_works=yes
9093 else
9094 gl_cv_func_memchr_works=no
9095 fi
9096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9097 conftest.$ac_objext conftest.beam conftest.$ac_ext
9098 fi
9099
9100 fi
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
9102 $as_echo "$gl_cv_func_memchr_works" >&6; }
9103 if test "$gl_cv_func_memchr_works" != yes; then
9104 REPLACE_MEMCHR=1
9105 fi
9106 fi
9107
9108 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
9109 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
9110 ac_have_decl=1
9111 else
9112 ac_have_decl=0
9113 fi
9114
9115 cat >>confdefs.h <<_ACEOF
9116 #define HAVE_DECL_MEMMEM $ac_have_decl
9117 _ACEOF
9118
9119
9120
9121
9122
9123 for ac_func in memmem
9124 do :
9125 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
9126 if test "x$ac_cv_func_memmem" = x""yes; then :
9127 cat >>confdefs.h <<_ACEOF
9128 #define HAVE_MEMMEM 1
9129 _ACEOF
9130
9131 fi
9132 done
9133
9134 if test $ac_cv_func_memmem = yes; then
9135 HAVE_MEMMEM=1
9136 else
9137 HAVE_MEMMEM=0
9138 fi
9139
9140 if test $ac_cv_have_decl_memmem = no; then
9141 HAVE_DECL_MEMMEM=0
9142 else
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
9144 $as_echo_n "checking whether memmem works... " >&6; }
9145 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
9146 $as_echo_n "(cached) " >&6
9147 else
9148 if test "$cross_compiling" = yes; then :
9149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9150 /* end confdefs.h. */
9151
9152 #ifdef __GNU_LIBRARY__
9153 #include <features.h>
9154 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
9155 || __GLIBC_MINOR__ > 12)) \
9156 || (__GLIBC__ > 2)) \
9157 || defined __UCLIBC__
9158 Lucky user
9159 #endif
9160 #elif defined __CYGWIN__
9161 #include <cygwin/version.h>
9162 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
9163 Lucky user
9164 #endif
9165 #else
9166 Lucky user
9167 #endif
9168
9169 _ACEOF
9170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9171 $EGREP "Lucky user" >/dev/null 2>&1; then :
9172 gl_cv_func_memmem_works_always="guessing yes"
9173 else
9174 gl_cv_func_memmem_works_always="guessing no"
9175 fi
9176 rm -f conftest*
9177
9178
9179 else
9180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9181 /* end confdefs.h. */
9182
9183 #include <string.h> /* for memmem */
9184 #define P "_EF_BF_BD"
9185 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
9186 #define NEEDLE P P P P P
9187
9188 int
9189 main ()
9190 {
9191
9192 int result = 0;
9193 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
9194 result |= 1;
9195 /* Check for empty needle behavior. */
9196 {
9197 const char *haystack = "AAA";
9198 if (memmem (haystack, 3, NULL, 0) != haystack)
9199 result |= 2;
9200 }
9201 return result;
9202
9203 ;
9204 return 0;
9205 }
9206 _ACEOF
9207 if ac_fn_c_try_run "$LINENO"; then :
9208 gl_cv_func_memmem_works_always=yes
9209 else
9210 gl_cv_func_memmem_works_always=no
9211 fi
9212 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9213 conftest.$ac_objext conftest.beam conftest.$ac_ext
9214 fi
9215
9216
9217 fi
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
9219 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
9220 case "$gl_cv_func_memmem_works_always" in
9221 *yes) ;;
9222 *)
9223 REPLACE_MEMMEM=1
9224 ;;
9225 esac
9226 fi
9227 :
9228
9229
9230
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
9232 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
9233 if test "${ac_cv_header_stdbool_h+set}" = set; then :
9234 $as_echo_n "(cached) " >&6
9235 else
9236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237 /* end confdefs.h. */
9238
9239 #include <stdbool.h>
9240 #ifndef bool
9241 "error: bool is not defined"
9242 #endif
9243 #ifndef false
9244 "error: false is not defined"
9245 #endif
9246 #if false
9247 "error: false is not 0"
9248 #endif
9249 #ifndef true
9250 "error: true is not defined"
9251 #endif
9252 #if true != 1
9253 "error: true is not 1"
9254 #endif
9255 #ifndef __bool_true_false_are_defined
9256 "error: __bool_true_false_are_defined is not defined"
9257 #endif
9258
9259 struct s { _Bool s: 1; _Bool t; } s;
9260
9261 char a[true == 1 ? 1 : -1];
9262 char b[false == 0 ? 1 : -1];
9263 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9264 char d[(bool) 0.5 == true ? 1 : -1];
9265 /* See body of main program for 'e'. */
9266 char f[(_Bool) 0.0 == false ? 1 : -1];
9267 char g[true];
9268 char h[sizeof (_Bool)];
9269 char i[sizeof s.t];
9270 enum { j = false, k = true, l = false * true, m = true * 256 };
9271 /* The following fails for
9272 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
9273 _Bool n[m];
9274 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9275 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9276 /* Catch a bug in an HP-UX C compiler. See
9277 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9278 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9279 */
9280 _Bool q = true;
9281 _Bool *pq = &q;
9282
9283 int
9284 main ()
9285 {
9286
9287 bool e = &s;
9288 *pq |= q;
9289 *pq |= ! q;
9290 /* Refer to every declared value, to avoid compiler optimizations. */
9291 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9292 + !m + !n + !o + !p + !q + !pq);
9293
9294 ;
9295 return 0;
9296 }
9297 _ACEOF
9298 if ac_fn_c_try_compile "$LINENO"; then :
9299 ac_cv_header_stdbool_h=yes
9300 else
9301 ac_cv_header_stdbool_h=no
9302 fi
9303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9304 fi
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
9306 $as_echo "$ac_cv_header_stdbool_h" >&6; }
9307 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
9308 if test "x$ac_cv_type__Bool" = x""yes; then :
9309
9310 cat >>confdefs.h <<_ACEOF
9311 #define HAVE__BOOL 1
9312 _ACEOF
9313
9314
9315 fi
9316
9317
9318
9319 REPLACE_NULL=0;
9320 HAVE_WCHAR_T=1;
9321
9322
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9324 $as_echo_n "checking for wchar_t... " >&6; }
9325 if test "${gt_cv_c_wchar_t+set}" = set; then :
9326 $as_echo_n "(cached) " >&6
9327 else
9328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9329 /* end confdefs.h. */
9330 #include <stddef.h>
9331 wchar_t foo = (wchar_t)'\0';
9332 int
9333 main ()
9334 {
9335
9336 ;
9337 return 0;
9338 }
9339 _ACEOF
9340 if ac_fn_c_try_compile "$LINENO"; then :
9341 gt_cv_c_wchar_t=yes
9342 else
9343 gt_cv_c_wchar_t=no
9344 fi
9345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9346 fi
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9348 $as_echo "$gt_cv_c_wchar_t" >&6; }
9349 if test $gt_cv_c_wchar_t = yes; then
9350
9351 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9352
9353 fi
9354
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9356 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9357 if test "${ac_cv_c_restrict+set}" = set; then :
9358 $as_echo_n "(cached) " >&6
9359 else
9360 ac_cv_c_restrict=no
9361 # The order here caters to the fact that C++ does not require restrict.
9362 for ac_kw in __restrict __restrict__ _Restrict restrict; do
9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364 /* end confdefs.h. */
9365 typedef int * int_ptr;
9366 int foo (int_ptr $ac_kw ip) {
9367 return ip[0];
9368 }
9369 int
9370 main ()
9371 {
9372 int s[1];
9373 int * $ac_kw t = s;
9374 t[0] = 0;
9375 return foo(t)
9376 ;
9377 return 0;
9378 }
9379 _ACEOF
9380 if ac_fn_c_try_compile "$LINENO"; then :
9381 ac_cv_c_restrict=$ac_kw
9382 fi
9383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9384 test "$ac_cv_c_restrict" != no && break
9385 done
9386
9387 fi
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9389 $as_echo "$ac_cv_c_restrict" >&6; }
9390
9391 case $ac_cv_c_restrict in
9392 restrict) ;;
9393 no) $as_echo "#define restrict /**/" >>confdefs.h
9394 ;;
9395 *) cat >>confdefs.h <<_ACEOF
9396 #define restrict $ac_cv_c_restrict
9397 _ACEOF
9398 ;;
9399 esac
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412 if test $gl_cv_have_include_next = yes; then
9413 gl_cv_next_string_h='<'string.h'>'
9414 else
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
9416 $as_echo_n "checking absolute name of <string.h>... " >&6; }
9417 if test "${gl_cv_next_string_h+set}" = set; then :
9418 $as_echo_n "(cached) " >&6
9419 else
9420
9421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9422 /* end confdefs.h. */
9423 #include <string.h>
9424
9425 _ACEOF
9426 case "$host_os" in
9427 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9428 *) gl_absname_cpp="$ac_cpp" ;;
9429 esac
9430
9431 case "$host_os" in
9432 mingw*)
9433 gl_dirsep_regex='[/\\]'
9434 ;;
9435 *)
9436 gl_dirsep_regex='\/'
9437 ;;
9438 esac
9439 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9440
9441 gl_header_literal_regex=`echo 'string.h' \
9442 | sed -e "$gl_make_literal_regex_sed"`
9443 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9444 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9445 s|^/[^/]|//&|
9446 p
9447 q
9448 }'
9449 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9450 sed -n "$gl_absolute_header_sed"`'"'
9451
9452
9453 fi
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
9455 $as_echo "$gl_cv_next_string_h" >&6; }
9456 fi
9457 NEXT_STRING_H=$gl_cv_next_string_h
9458
9459 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9460 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9461 gl_next_as_first_directive='<'string.h'>'
9462 else
9463 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9464 gl_next_as_first_directive=$gl_cv_next_string_h
9465 fi
9466 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
9467
9468
9469
9470
9471
9472
9473 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
9474 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9476 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9477 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
9478 $as_echo_n "(cached) " >&6
9479 else
9480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9481 /* end confdefs.h. */
9482 #include <string.h>
9483
9484 int
9485 main ()
9486 {
9487 #undef $gl_func
9488 (void) $gl_func;
9489 ;
9490 return 0;
9491 }
9492 _ACEOF
9493 if ac_fn_c_try_compile "$LINENO"; then :
9494 eval "$as_gl_Symbol=yes"
9495 else
9496 eval "$as_gl_Symbol=no"
9497 fi
9498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9499 fi
9500 eval ac_res=\$$as_gl_Symbol
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9502 $as_echo "$ac_res" >&6; }
9503 eval as_val=\$$as_gl_Symbol
9504 if test "x$as_val" = x""yes; then :
9505 cat >>confdefs.h <<_ACEOF
9506 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9507 _ACEOF
9508
9509 eval ac_cv_have_decl_$gl_func=yes
9510 fi
9511 done
9512
9513
9514
9515
9516
9517 if test "$gl_cv_func_memchr_works" != yes; then
9518 REPLACE_STRSTR=1
9519 else
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
9521 $as_echo_n "checking whether strstr works... " >&6; }
9522 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
9523 $as_echo_n "(cached) " >&6
9524 else
9525 if test "$cross_compiling" = yes; then :
9526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9527 /* end confdefs.h. */
9528
9529 #ifdef __GNU_LIBRARY__
9530 #include <features.h>
9531 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
9532 || defined __UCLIBC__
9533 Lucky user
9534 #endif
9535 #elif defined __CYGWIN__
9536 #include <cygwin/version.h>
9537 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
9538 Lucky user
9539 #endif
9540 #else
9541 Lucky user
9542 #endif
9543
9544 _ACEOF
9545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9546 $EGREP "Lucky user" >/dev/null 2>&1; then :
9547 gl_cv_func_strstr_works_always="guessing yes"
9548 else
9549 gl_cv_func_strstr_works_always="guessing no"
9550 fi
9551 rm -f conftest*
9552
9553
9554 else
9555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9556 /* end confdefs.h. */
9557
9558 #include <string.h> /* for strstr */
9559 #define P "_EF_BF_BD"
9560 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
9561 #define NEEDLE P P P P P
9562
9563 int
9564 main ()
9565 {
9566 return !!strstr (HAYSTACK, NEEDLE);
9567
9568 ;
9569 return 0;
9570 }
9571 _ACEOF
9572 if ac_fn_c_try_run "$LINENO"; then :
9573 gl_cv_func_strstr_works_always=yes
9574 else
9575 gl_cv_func_strstr_works_always=no
9576 fi
9577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9578 conftest.$ac_objext conftest.beam conftest.$ac_ext
9579 fi
9580
9581
9582 fi
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
9584 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
9585 case "$gl_cv_func_strstr_works_always" in
9586 *yes) ;;
9587 *)
9588 REPLACE_STRSTR=1
9589 ;;
9590 esac
9591 fi
9592
9593
9594 GNULIB_FCHMODAT=0;
9595 GNULIB_FSTAT=0;
9596 GNULIB_FSTATAT=0;
9597 GNULIB_FUTIMENS=0;
9598 GNULIB_LCHMOD=0;
9599 GNULIB_LSTAT=0;
9600 GNULIB_MKDIRAT=0;
9601 GNULIB_MKFIFO=0;
9602 GNULIB_MKFIFOAT=0;
9603 GNULIB_MKNOD=0;
9604 GNULIB_MKNODAT=0;
9605 GNULIB_STAT=0;
9606 GNULIB_UTIMENSAT=0;
9607 HAVE_FCHMODAT=1;
9608 HAVE_FSTATAT=1;
9609 HAVE_FUTIMENS=1;
9610 HAVE_LCHMOD=1;
9611 HAVE_LSTAT=1;
9612 HAVE_MKDIRAT=1;
9613 HAVE_MKFIFO=1;
9614 HAVE_MKFIFOAT=1;
9615 HAVE_MKNOD=1;
9616 HAVE_MKNODAT=1;
9617 HAVE_UTIMENSAT=1;
9618 REPLACE_FSTAT=0;
9619 REPLACE_FSTATAT=0;
9620 REPLACE_FUTIMENS=0;
9621 REPLACE_LSTAT=0;
9622 REPLACE_MKDIR=0;
9623 REPLACE_MKFIFO=0;
9624 REPLACE_MKNOD=0;
9625 REPLACE_STAT=0;
9626 REPLACE_UTIMENSAT=0;
9627
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
9629 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
9630 if test "${ac_cv_header_stat_broken+set}" = set; then :
9631 $as_echo_n "(cached) " >&6
9632 else
9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634 /* end confdefs.h. */
9635 #include <sys/types.h>
9636 #include <sys/stat.h>
9637
9638 #if defined S_ISBLK && defined S_IFDIR
9639 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
9640 #endif
9641
9642 #if defined S_ISBLK && defined S_IFCHR
9643 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
9644 #endif
9645
9646 #if defined S_ISLNK && defined S_IFREG
9647 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
9648 #endif
9649
9650 #if defined S_ISSOCK && defined S_IFREG
9651 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
9652 #endif
9653
9654 _ACEOF
9655 if ac_fn_c_try_compile "$LINENO"; then :
9656 ac_cv_header_stat_broken=no
9657 else
9658 ac_cv_header_stat_broken=yes
9659 fi
9660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9661 fi
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
9663 $as_echo "$ac_cv_header_stat_broken" >&6; }
9664 if test $ac_cv_header_stat_broken = yes; then
9665
9666 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
9667
9668 fi
9669
9670
9671
9672 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9673 if test "x$ac_cv_type_mode_t" = x""yes; then :
9674
9675 else
9676
9677 cat >>confdefs.h <<_ACEOF
9678 #define mode_t int
9679 _ACEOF
9680
9681 fi
9682
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
9684 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
9685 if test -z "$MKDIR_P"; then
9686 if test "${ac_cv_path_mkdir+set}" = set; then :
9687 $as_echo_n "(cached) " >&6
9688 else
9689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9690 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
9691 do
9692 IFS=$as_save_IFS
9693 test -z "$as_dir" && as_dir=.
9694 for ac_prog in mkdir gmkdir; do
9695 for ac_exec_ext in '' $ac_executable_extensions; do
9696 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
9697 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
9698 'mkdir (GNU coreutils) '* | \
9699 'mkdir (coreutils) '* | \
9700 'mkdir (fileutils) '4.1*)
9701 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
9702 break 3;;
9703 esac
9704 done
9705 done
9706 done
9707 IFS=$as_save_IFS
9708
9709 fi
9710
9711 if test "${ac_cv_path_mkdir+set}" = set; then
9712 MKDIR_P="$ac_cv_path_mkdir -p"
9713 else
9714 # As a last resort, use the slow shell script. Don't cache a
9715 # value for MKDIR_P within a source directory, because that will
9716 # break other packages using the cache if that directory is
9717 # removed, or if the value is a relative name.
9718 test -d ./--version && rmdir ./--version
9719 MKDIR_P="$ac_install_sh -d"
9720 fi
9721 fi
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
9723 $as_echo "$MKDIR_P" >&6; }
9724
9725
9726
9727 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9728 if test "x$ac_cv_type_pid_t" = x""yes; then :
9729
9730 else
9731
9732 cat >>confdefs.h <<_ACEOF
9733 #define pid_t int
9734 _ACEOF
9735
9736 fi
9737
9738
9739
9740 WINDOWS_64_BIT_OFF_T=0
9741
9742
9743
9744
9745 GNULIB_MKTIME=0;
9746 GNULIB_NANOSLEEP=0;
9747 GNULIB_STRPTIME=0;
9748 GNULIB_TIMEGM=0;
9749 GNULIB_TIME_R=0;
9750 HAVE_DECL_LOCALTIME_R=1;
9751 HAVE_NANOSLEEP=1;
9752 HAVE_STRPTIME=1;
9753 HAVE_TIMEGM=1;
9754 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
9755 REPLACE_MKTIME=GNULIB_PORTCHECK;
9756 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
9757 REPLACE_TIMEGM=GNULIB_PORTCHECK;
9758
9759
9760
9761
9762
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
9764 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
9765 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
9766 $as_echo_n "(cached) " >&6
9767 else
9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769 /* end confdefs.h. */
9770 #include <time.h>
9771
9772 int
9773 main ()
9774 {
9775 static struct timespec x; x.tv_sec = x.tv_nsec;
9776 ;
9777 return 0;
9778 }
9779 _ACEOF
9780 if ac_fn_c_try_compile "$LINENO"; then :
9781 gl_cv_sys_struct_timespec_in_time_h=yes
9782 else
9783 gl_cv_sys_struct_timespec_in_time_h=no
9784 fi
9785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9786 fi
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
9788 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
9789
9790 TIME_H_DEFINES_STRUCT_TIMESPEC=0
9791 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
9792 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
9793 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
9794 TIME_H_DEFINES_STRUCT_TIMESPEC=1
9795 else
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
9797 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
9798 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
9799 $as_echo_n "(cached) " >&6
9800 else
9801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9802 /* end confdefs.h. */
9803 #include <sys/time.h>
9804
9805 int
9806 main ()
9807 {
9808 static struct timespec x; x.tv_sec = x.tv_nsec;
9809 ;
9810 return 0;
9811 }
9812 _ACEOF
9813 if ac_fn_c_try_compile "$LINENO"; then :
9814 gl_cv_sys_struct_timespec_in_sys_time_h=yes
9815 else
9816 gl_cv_sys_struct_timespec_in_sys_time_h=no
9817 fi
9818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9819 fi
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
9821 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
9822 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
9823 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
9824 else
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
9826 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
9827 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
9828 $as_echo_n "(cached) " >&6
9829 else
9830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9831 /* end confdefs.h. */
9832 #include <pthread.h>
9833
9834 int
9835 main ()
9836 {
9837 static struct timespec x; x.tv_sec = x.tv_nsec;
9838 ;
9839 return 0;
9840 }
9841 _ACEOF
9842 if ac_fn_c_try_compile "$LINENO"; then :
9843 gl_cv_sys_struct_timespec_in_pthread_h=yes
9844 else
9845 gl_cv_sys_struct_timespec_in_pthread_h=no
9846 fi
9847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9848 fi
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
9850 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
9851 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
9852 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
9853 fi
9854 fi
9855 fi
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871 if test $gl_cv_have_include_next = yes; then
9872 gl_cv_next_time_h='<'time.h'>'
9873 else
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
9875 $as_echo_n "checking absolute name of <time.h>... " >&6; }
9876 if test "${gl_cv_next_time_h+set}" = set; then :
9877 $as_echo_n "(cached) " >&6
9878 else
9879
9880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9881 /* end confdefs.h. */
9882 #include <time.h>
9883
9884 _ACEOF
9885 case "$host_os" in
9886 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9887 *) gl_absname_cpp="$ac_cpp" ;;
9888 esac
9889
9890 case "$host_os" in
9891 mingw*)
9892 gl_dirsep_regex='[/\\]'
9893 ;;
9894 *)
9895 gl_dirsep_regex='\/'
9896 ;;
9897 esac
9898 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9899
9900 gl_header_literal_regex=`echo 'time.h' \
9901 | sed -e "$gl_make_literal_regex_sed"`
9902 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9903 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9904 s|^/[^/]|//&|
9905 p
9906 q
9907 }'
9908 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9909 sed -n "$gl_absolute_header_sed"`'"'
9910
9911
9912 fi
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
9914 $as_echo "$gl_cv_next_time_h" >&6; }
9915 fi
9916 NEXT_TIME_H=$gl_cv_next_time_h
9917
9918 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9919 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9920 gl_next_as_first_directive='<'time.h'>'
9921 else
9922 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9923 gl_next_as_first_directive=$gl_cv_next_time_h
9924 fi
9925 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
9926
9927
9928
9929
9930
9931
9932
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
9934 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
9935 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
9936 $as_echo_n "(cached) " >&6
9937 else
9938 gl_cv_header_wchar_h_correct_inline=yes
9939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9940 /* end confdefs.h. */
9941
9942 #define wcstod renamed_wcstod
9943 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9944 <wchar.h>.
9945 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9946 included before <wchar.h>. */
9947 #include <stddef.h>
9948 #include <stdio.h>
9949 #include <time.h>
9950 #include <wchar.h>
9951 extern int zero (void);
9952 int main () { return zero(); }
9953
9954 _ACEOF
9955 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9956 (eval $ac_compile) 2>&5
9957 ac_status=$?
9958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9959 test $ac_status = 0; }; then
9960 mv conftest.$ac_objext conftest1.$ac_objext
9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9962 /* end confdefs.h. */
9963
9964 #define wcstod renamed_wcstod
9965 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9966 <wchar.h>.
9967 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9968 included before <wchar.h>. */
9969 #include <stddef.h>
9970 #include <stdio.h>
9971 #include <time.h>
9972 #include <wchar.h>
9973 int zero (void) { return 0; }
9974
9975 _ACEOF
9976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9977 (eval $ac_compile) 2>&5
9978 ac_status=$?
9979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9980 test $ac_status = 0; }; then
9981 mv conftest.$ac_objext conftest2.$ac_objext
9982 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
9983 :
9984 else
9985 gl_cv_header_wchar_h_correct_inline=no
9986 fi
9987 fi
9988 fi
9989 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
9990
9991 fi
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
9993 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
9994 if test $gl_cv_header_wchar_h_correct_inline = no; then
9995 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
9996 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
9997 C99 mode. You have four options:
9998 - Add the flag -fgnu89-inline to CC and reconfigure, or
9999 - Fix your include files, using parts of
10000 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
10001 - Use a gcc version older than 4.3, or
10002 - Don't use the flags -std=c99 or -std=gnu99.
10003 Configuration aborted." "$LINENO" 5
10004 fi
10005
10006
10007
10008
10009
10010 if test $ac_cv_header_features_h = yes; then
10011 HAVE_FEATURES_H=1
10012 else
10013 HAVE_FEATURES_H=0
10014 fi
10015
10016
10017
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
10019 $as_echo_n "checking for wint_t... " >&6; }
10020 if test "${gt_cv_c_wint_t+set}" = set; then :
10021 $as_echo_n "(cached) " >&6
10022 else
10023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024 /* end confdefs.h. */
10025
10026 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10027 <wchar.h>.
10028 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
10029 before <wchar.h>. */
10030 #include <stddef.h>
10031 #include <stdio.h>
10032 #include <time.h>
10033 #include <wchar.h>
10034 wint_t foo = (wchar_t)'\0';
10035 int
10036 main ()
10037 {
10038
10039 ;
10040 return 0;
10041 }
10042 _ACEOF
10043 if ac_fn_c_try_compile "$LINENO"; then :
10044 gt_cv_c_wint_t=yes
10045 else
10046 gt_cv_c_wint_t=no
10047 fi
10048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10049 fi
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
10051 $as_echo "$gt_cv_c_wint_t" >&6; }
10052 if test $gt_cv_c_wint_t = yes; then
10053
10054 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
10055
10056 fi
10057
10058
10059 GNULIB_ISWBLANK=0;
10060 GNULIB_WCTYPE=0;
10061 GNULIB_ISWCTYPE=0;
10062 GNULIB_WCTRANS=0;
10063 GNULIB_TOWCTRANS=0;
10064 HAVE_ISWBLANK=1;
10065 HAVE_WCTYPE_T=1;
10066 HAVE_WCTRANS_T=1;
10067 REPLACE_ISWBLANK=0;
10068
10069
10070
10071
10072 if false; then
10073 GL_COND_LIBTOOL_TRUE=
10074 GL_COND_LIBTOOL_FALSE='#'
10075 else
10076 GL_COND_LIBTOOL_TRUE='#'
10077 GL_COND_LIBTOOL_FALSE=
10078 fi
10079
10080 gl_cond_libtool=false
10081 gl_libdeps=
10082 gl_ltlibdeps=
10083 gl_m4_base='import/m4'
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093 gl_source_base='import'
10094
10095
10096 if test $ac_cv_func_alloca_works = no; then
10097 :
10098 fi
10099
10100 # Define an additional variable used in the Makefile substitution.
10101 if test $ac_cv_working_alloca_h = yes; then
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
10103 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
10104 if test "${gl_cv_rpl_alloca+set}" = set; then :
10105 $as_echo_n "(cached) " >&6
10106 else
10107
10108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10109 /* end confdefs.h. */
10110
10111 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
10112 Need own alloca
10113 #endif
10114
10115 _ACEOF
10116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10117 $EGREP "Need own alloca" >/dev/null 2>&1; then :
10118 gl_cv_rpl_alloca=yes
10119 else
10120 gl_cv_rpl_alloca=no
10121 fi
10122 rm -f conftest*
10123
10124
10125 fi
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
10127 $as_echo "$gl_cv_rpl_alloca" >&6; }
10128 if test $gl_cv_rpl_alloca = yes; then
10129
10130 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10131
10132 ALLOCA_H=alloca.h
10133 else
10134 ALLOCA_H=
10135 fi
10136 else
10137 ALLOCA_H=alloca.h
10138 fi
10139
10140 if test -n "$ALLOCA_H"; then
10141 GL_GENERATE_ALLOCA_H_TRUE=
10142 GL_GENERATE_ALLOCA_H_FALSE='#'
10143 else
10144 GL_GENERATE_ALLOCA_H_TRUE='#'
10145 GL_GENERATE_ALLOCA_H_FALSE=
10146 fi
10147
10148
10149
10150 if test "x$datarootdir" = x; then
10151 datarootdir='${datadir}'
10152
10153 fi
10154 if test "x$docdir" = x; then
10155 docdir='${datarootdir}/doc/${PACKAGE}'
10156
10157 fi
10158 if test "x$htmldir" = x; then
10159 htmldir='${docdir}'
10160
10161 fi
10162 if test "x$dvidir" = x; then
10163 dvidir='${docdir}'
10164
10165 fi
10166 if test "x$pdfdir" = x; then
10167 pdfdir='${docdir}'
10168
10169 fi
10170 if test "x$psdir" = x; then
10171 psdir='${docdir}'
10172
10173 fi
10174 if test "x$lispdir" = x; then
10175 lispdir='${datarootdir}/emacs/site-lisp'
10176
10177 fi
10178 if test "x$localedir" = x; then
10179 localedir='${datarootdir}/locale'
10180
10181 fi
10182
10183 pkglibexecdir='${libexecdir}/${PACKAGE}'
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198 if test $gl_cv_have_include_next = yes; then
10199 gl_cv_next_dirent_h='<'dirent.h'>'
10200 else
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
10202 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
10203 if test "${gl_cv_next_dirent_h+set}" = set; then :
10204 $as_echo_n "(cached) " >&6
10205 else
10206
10207 if test $ac_cv_header_dirent_h = yes; then
10208
10209
10210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10211 /* end confdefs.h. */
10212 #include <dirent.h>
10213
10214 _ACEOF
10215 case "$host_os" in
10216 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10217 *) gl_absname_cpp="$ac_cpp" ;;
10218 esac
10219
10220 case "$host_os" in
10221 mingw*)
10222 gl_dirsep_regex='[/\\]'
10223 ;;
10224 *)
10225 gl_dirsep_regex='\/'
10226 ;;
10227 esac
10228 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10229
10230 gl_header_literal_regex=`echo 'dirent.h' \
10231 | sed -e "$gl_make_literal_regex_sed"`
10232 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10233 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10234 s|^/[^/]|//&|
10235 p
10236 q
10237 }'
10238 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10239 sed -n "$gl_absolute_header_sed"`'"'
10240 else
10241 gl_cv_next_dirent_h='<'dirent.h'>'
10242 fi
10243
10244
10245 fi
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
10247 $as_echo "$gl_cv_next_dirent_h" >&6; }
10248 fi
10249 NEXT_DIRENT_H=$gl_cv_next_dirent_h
10250
10251 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10252 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10253 gl_next_as_first_directive='<'dirent.h'>'
10254 else
10255 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10256 gl_next_as_first_directive=$gl_cv_next_dirent_h
10257 fi
10258 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
10259
10260
10261
10262
10263 if test $ac_cv_header_dirent_h = yes; then
10264 HAVE_DIRENT_H=1
10265 else
10266 HAVE_DIRENT_H=0
10267 fi
10268
10269
10270
10271 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
10272 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10274 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10275 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
10276 $as_echo_n "(cached) " >&6
10277 else
10278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10279 /* end confdefs.h. */
10280 #include <dirent.h>
10281
10282 int
10283 main ()
10284 {
10285 #undef $gl_func
10286 (void) $gl_func;
10287 ;
10288 return 0;
10289 }
10290 _ACEOF
10291 if ac_fn_c_try_compile "$LINENO"; then :
10292 eval "$as_gl_Symbol=yes"
10293 else
10294 eval "$as_gl_Symbol=no"
10295 fi
10296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10297 fi
10298 eval ac_res=\$$as_gl_Symbol
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10300 $as_echo "$ac_res" >&6; }
10301 eval as_val=\$$as_gl_Symbol
10302 if test "x$as_val" = x""yes; then :
10303 cat >>confdefs.h <<_ACEOF
10304 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10305 _ACEOF
10306
10307 eval ac_cv_have_decl_$gl_func=yes
10308 fi
10309 done
10310
10311
10312
10313
10314
10315
10316 FLOAT_H=
10317 REPLACE_FLOAT_LDBL=0
10318 case "$host_os" in
10319 aix* | beos* | openbsd* | mirbsd* | irix*)
10320 FLOAT_H=float.h
10321 ;;
10322 freebsd*)
10323 case "$host_cpu" in
10324 i[34567]86 )
10325 FLOAT_H=float.h
10326 ;;
10327 x86_64 )
10328 # On x86_64 systems, the C compiler may still be generating
10329 # 32-bit code.
10330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10331 /* end confdefs.h. */
10332 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
10333 yes
10334 #endif
10335 _ACEOF
10336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10337 $EGREP "yes" >/dev/null 2>&1; then :
10338
10339 else
10340 FLOAT_H=float.h
10341 fi
10342 rm -f conftest*
10343
10344 ;;
10345 esac
10346 ;;
10347 linux*)
10348 case "$host_cpu" in
10349 powerpc*)
10350 FLOAT_H=float.h
10351 ;;
10352 esac
10353 ;;
10354 esac
10355 case "$host_os" in
10356 aix* | freebsd* | linux*)
10357 if test -n "$FLOAT_H"; then
10358 REPLACE_FLOAT_LDBL=1
10359 fi
10360 ;;
10361 esac
10362
10363 REPLACE_ITOLD=0
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
10365 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
10366 if test "${gl_cv_func_itold_works+set}" = set; then :
10367 $as_echo_n "(cached) " >&6
10368 else
10369
10370 if test "$cross_compiling" = yes; then :
10371 case "$host" in
10372 sparc*-*-linux*)
10373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10374 /* end confdefs.h. */
10375 #if defined __LP64__ || defined __arch64__
10376 yes
10377 #endif
10378 _ACEOF
10379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10380 $EGREP "yes" >/dev/null 2>&1; then :
10381 gl_cv_func_itold_works="guessing no"
10382 else
10383 gl_cv_func_itold_works="guessing yes"
10384 fi
10385 rm -f conftest*
10386
10387 ;;
10388 *) gl_cv_func_itold_works="guessing yes" ;;
10389 esac
10390
10391 else
10392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10393 /* end confdefs.h. */
10394
10395 int i = -1;
10396 volatile long double ld;
10397 int main ()
10398 {
10399 ld += i * 1.0L;
10400 if (ld > 0)
10401 return 1;
10402 return 0;
10403 }
10404 _ACEOF
10405 if ac_fn_c_try_run "$LINENO"; then :
10406 gl_cv_func_itold_works=yes
10407 else
10408 gl_cv_func_itold_works=no
10409 fi
10410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10411 conftest.$ac_objext conftest.beam conftest.$ac_ext
10412 fi
10413
10414
10415 fi
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
10417 $as_echo "$gl_cv_func_itold_works" >&6; }
10418 case "$gl_cv_func_itold_works" in
10419 *no)
10420 REPLACE_ITOLD=1
10421 FLOAT_H=float.h
10422 ;;
10423 esac
10424
10425 if test -n "$FLOAT_H"; then
10426
10427
10428
10429
10430
10431
10432
10433
10434 if test $gl_cv_have_include_next = yes; then
10435 gl_cv_next_float_h='<'float.h'>'
10436 else
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
10438 $as_echo_n "checking absolute name of <float.h>... " >&6; }
10439 if test "${gl_cv_next_float_h+set}" = set; then :
10440 $as_echo_n "(cached) " >&6
10441 else
10442
10443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10444 /* end confdefs.h. */
10445 #include <float.h>
10446
10447 _ACEOF
10448 case "$host_os" in
10449 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10450 *) gl_absname_cpp="$ac_cpp" ;;
10451 esac
10452
10453 case "$host_os" in
10454 mingw*)
10455 gl_dirsep_regex='[/\\]'
10456 ;;
10457 *)
10458 gl_dirsep_regex='\/'
10459 ;;
10460 esac
10461 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10462
10463 gl_header_literal_regex=`echo 'float.h' \
10464 | sed -e "$gl_make_literal_regex_sed"`
10465 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10466 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10467 s|^/[^/]|//&|
10468 p
10469 q
10470 }'
10471 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10472 sed -n "$gl_absolute_header_sed"`'"'
10473
10474
10475 fi
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
10477 $as_echo "$gl_cv_next_float_h" >&6; }
10478 fi
10479 NEXT_FLOAT_H=$gl_cv_next_float_h
10480
10481 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10482 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10483 gl_next_as_first_directive='<'float.h'>'
10484 else
10485 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10486 gl_next_as_first_directive=$gl_cv_next_float_h
10487 fi
10488 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
10489
10490
10491
10492
10493 fi
10494
10495 if test -n "$FLOAT_H"; then
10496 GL_GENERATE_FLOAT_H_TRUE=
10497 GL_GENERATE_FLOAT_H_FALSE='#'
10498 else
10499 GL_GENERATE_FLOAT_H_TRUE='#'
10500 GL_GENERATE_FLOAT_H_FALSE=
10501 fi
10502
10503
10504
10505 if test $REPLACE_FLOAT_LDBL = 1; then
10506
10507
10508
10509
10510
10511
10512
10513
10514 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
10515
10516 fi
10517 if test $REPLACE_ITOLD = 1; then
10518
10519
10520
10521
10522
10523
10524
10525
10526 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
10527
10528 fi
10529
10530
10531
10532
10533
10534 FNMATCH_H=
10535 gl_fnmatch_required_lowercase=`
10536 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
10537 `
10538 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
10540 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
10541 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
10542 $as_echo_n "(cached) " >&6
10543 else
10544 if test $gl_fnmatch_required = GNU; then
10545 gl_fnmatch_gnu_start=
10546 gl_fnmatch_gnu_end=
10547 else
10548 gl_fnmatch_gnu_start='#if 0'
10549 gl_fnmatch_gnu_end='#endif'
10550 fi
10551 if test "$cross_compiling" = yes; then :
10552 eval "$gl_fnmatch_cache_var=\"guessing no\""
10553 else
10554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10555 /* end confdefs.h. */
10556 #include <fnmatch.h>
10557 static int
10558 y (char const *pattern, char const *string, int flags)
10559 {
10560 return fnmatch (pattern, string, flags) == 0;
10561 }
10562 static int
10563 n (char const *pattern, char const *string, int flags)
10564 {
10565 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
10566 }
10567
10568 int
10569 main ()
10570 {
10571 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
10572 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
10573 static char const A_1[] = { 'A' - 1, 0 };
10574 static char const A01[] = { 'A' + 1, 0 };
10575 static char const a_1[] = { 'a' - 1, 0 };
10576 static char const a01[] = { 'a' + 1, 0 };
10577 static char const bs_1[] = { '\\\\' - 1, 0 };
10578 static char const bs01[] = { '\\\\' + 1, 0 };
10579 int result = 0;
10580 if (!n ("a*", "", 0))
10581 return 1;
10582 if (!y ("a*", "abc", 0))
10583 return 1;
10584 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
10585 return 1;
10586 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
10587 return 2;
10588 if (!y ("a\\\\bc", "abc", 0))
10589 return 3;
10590 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
10591 return 3;
10592 if (!y ("*x", ".x", 0))
10593 return 4;
10594 if (!n ("*x", ".x", FNM_PERIOD))
10595 return 4;
10596 if (!y (Apat, "\\\\", 0))
10597 return 5;
10598 if (!y (Apat, "A", 0))
10599 return 5;
10600 if (!y (apat, "\\\\", 0))
10601 return 5;
10602 if (!y (apat, "a", 0))
10603 return 5;
10604 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
10605 return 5;
10606 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
10607 return 5;
10608 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
10609 return 5;
10610 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
10611 return 5;
10612 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
10613 return 5;
10614 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
10615 return 5;
10616 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
10617 return 5;
10618 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
10619 return 5;
10620 $gl_fnmatch_gnu_start
10621 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
10622 result |= 8;
10623 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
10624 result |= 16;
10625 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
10626 result |= 32;
10627 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
10628 result |= 64;
10629 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
10630 result |= 64;
10631 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
10632 result |= 64;
10633 $gl_fnmatch_gnu_end
10634 return result;
10635
10636 ;
10637 return 0;
10638 }
10639 _ACEOF
10640 if ac_fn_c_try_run "$LINENO"; then :
10641 eval "$gl_fnmatch_cache_var=yes"
10642 else
10643 eval "$gl_fnmatch_cache_var=no"
10644 fi
10645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10646 conftest.$ac_objext conftest.beam conftest.$ac_ext
10647 fi
10648
10649
10650 fi
10651 eval ac_res=\$$gl_fnmatch_cache_var
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10653 $as_echo "$ac_res" >&6; }
10654 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
10655 if test "$gl_fnmatch_result" = yes; then
10656 rm -f "$gl_source_base/fnmatch.h"
10657 else
10658 FNMATCH_H=fnmatch.h
10659 fi
10660
10661 if test -n "$FNMATCH_H"; then
10662 GL_GENERATE_FNMATCH_H_TRUE=
10663 GL_GENERATE_FNMATCH_H_FALSE='#'
10664 else
10665 GL_GENERATE_FNMATCH_H_TRUE='#'
10666 GL_GENERATE_FNMATCH_H_FALSE=
10667 fi
10668
10669
10670 if test -n "$FNMATCH_H"; then
10671
10672
10673
10674
10675
10676
10677
10678
10679 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
10680
10681
10682
10683 cat >>confdefs.h <<_ACEOF
10684 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
10685 _ACEOF
10686
10687
10688 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
10689 "
10690 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
10691 ac_have_decl=1
10692 else
10693 ac_have_decl=0
10694 fi
10695
10696 cat >>confdefs.h <<_ACEOF
10697 #define HAVE_DECL_ISBLANK $ac_have_decl
10698 _ACEOF
10699
10700
10701
10702
10703 fi
10704
10705
10706
10707
10708
10709 if test -n "$FNMATCH_H"; then
10710
10711
10712
10713
10714
10715
10716
10717
10718 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
10719
10720
10721
10722 cat >>confdefs.h <<_ACEOF
10723 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
10724 _ACEOF
10725
10726
10727 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
10728 "
10729 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
10730 ac_have_decl=1
10731 else
10732 ac_have_decl=0
10733 fi
10734
10735 cat >>confdefs.h <<_ACEOF
10736 #define HAVE_DECL_ISBLANK $ac_have_decl
10737 _ACEOF
10738
10739
10740
10741
10742 fi
10743
10744
10745
10746 FREXP_LIBM=
10747 if test $gl_cv_func_frexp_no_libm = no; then
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
10749 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
10750 if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
10751 $as_echo_n "(cached) " >&6
10752 else
10753
10754 save_LIBS="$LIBS"
10755 LIBS="$LIBS -lm"
10756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10757 /* end confdefs.h. */
10758 #include <math.h>
10759 double x;
10760 int
10761 main ()
10762 {
10763 int e; return frexp (x, &e) > 0;
10764 ;
10765 return 0;
10766 }
10767 _ACEOF
10768 if ac_fn_c_try_link "$LINENO"; then :
10769 gl_cv_func_frexp_in_libm=yes
10770 else
10771 gl_cv_func_frexp_in_libm=no
10772 fi
10773 rm -f core conftest.err conftest.$ac_objext \
10774 conftest$ac_exeext conftest.$ac_ext
10775 LIBS="$save_LIBS"
10776
10777 fi
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
10779 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
10780 if test $gl_cv_func_frexp_in_libm = yes; then
10781 FREXP_LIBM=-lm
10782 fi
10783 fi
10784 if test $gl_cv_func_frexp_no_libm = yes \
10785 || test $gl_cv_func_frexp_in_libm = yes; then
10786 save_LIBS="$LIBS"
10787 LIBS="$LIBS $FREXP_LIBM"
10788
10789
10790
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
10792 $as_echo_n "checking whether frexp works... " >&6; }
10793 if test "${gl_cv_func_frexp_works+set}" = set; then :
10794 $as_echo_n "(cached) " >&6
10795 else
10796
10797 if test "$cross_compiling" = yes; then :
10798 case "$host_os" in
10799 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
10800 *) gl_cv_func_frexp_works="guessing yes";;
10801 esac
10802
10803 else
10804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10805 /* end confdefs.h. */
10806
10807 #include <float.h>
10808 #include <math.h>
10809 #include <string.h>
10810 #if HAVE_ALARM
10811 # include <unistd.h>
10812 #endif
10813 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
10814 ICC 10.0 has a bug when optimizing the expression -zero.
10815 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
10816 to PowerPC on Mac OS X 10.5. */
10817 #if defined __hpux || defined __sgi || defined __ICC
10818 static double
10819 compute_minus_zero (void)
10820 {
10821 return -DBL_MIN * DBL_MIN;
10822 }
10823 # define minus_zero compute_minus_zero ()
10824 #else
10825 double minus_zero = -0.0;
10826 #endif
10827 int main()
10828 {
10829 int result = 0;
10830 int i;
10831 volatile double x;
10832 double zero = 0.0;
10833 #if HAVE_ALARM
10834 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
10835 number. Let the test fail in this case. */
10836 alarm (5);
10837 #endif
10838 /* Test on denormalized numbers. */
10839 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
10840 ;
10841 if (x > 0.0)
10842 {
10843 int exp;
10844 double y = frexp (x, &exp);
10845 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
10846 On NetBSD: y = 0.75. Correct: y = 0.5. */
10847 if (y != 0.5)
10848 result |= 1;
10849 }
10850 /* Test on infinite numbers. */
10851 x = 1.0 / zero;
10852 {
10853 int exp;
10854 double y = frexp (x, &exp);
10855 if (y != x)
10856 result |= 2;
10857 }
10858 /* Test on negative zero. */
10859 x = minus_zero;
10860 {
10861 int exp;
10862 double y = frexp (x, &exp);
10863 if (memcmp (&y, &x, sizeof x))
10864 result |= 4;
10865 }
10866 return result;
10867 }
10868 _ACEOF
10869 if ac_fn_c_try_run "$LINENO"; then :
10870 gl_cv_func_frexp_works=yes
10871 else
10872 gl_cv_func_frexp_works=no
10873 fi
10874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10875 conftest.$ac_objext conftest.beam conftest.$ac_ext
10876 fi
10877
10878
10879 fi
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
10881 $as_echo "$gl_cv_func_frexp_works" >&6; }
10882
10883 LIBS="$save_LIBS"
10884 case "$gl_cv_func_frexp_works" in
10885 *yes) gl_func_frexp=yes ;;
10886 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
10887 esac
10888 else
10889 gl_func_frexp=no
10890 fi
10891 if test $gl_func_frexp = yes; then
10892
10893 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
10894
10895 fi
10896
10897
10898 if test $gl_func_frexp != yes; then
10899
10900
10901
10902
10903
10904
10905
10906
10907 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
10908
10909 fi
10910
10911
10912
10913
10914
10915 GNULIB_FREXP=1
10916
10917
10918
10919
10920
10921 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
10932 "
10933 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
10934
10935 else
10936 HAVE_DECL_FREXPL=0
10937 fi
10938
10939
10940 FREXPL_LIBM=
10941 if test $HAVE_DECL_FREXPL = 1; then
10942
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
10944 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
10945 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
10946 $as_echo_n "(cached) " >&6
10947 else
10948
10949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10950 /* end confdefs.h. */
10951 #include <math.h>
10952 long double x;
10953 int
10954 main ()
10955 {
10956 int e; return frexpl (x, &e) > 0;
10957 ;
10958 return 0;
10959 }
10960 _ACEOF
10961 if ac_fn_c_try_link "$LINENO"; then :
10962 gl_cv_func_frexpl_no_libm=yes
10963 else
10964 gl_cv_func_frexpl_no_libm=no
10965 fi
10966 rm -f core conftest.err conftest.$ac_objext \
10967 conftest$ac_exeext conftest.$ac_ext
10968
10969 fi
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
10971 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
10972
10973 if test $gl_cv_func_frexpl_no_libm = no; then
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
10975 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
10976 if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
10977 $as_echo_n "(cached) " >&6
10978 else
10979
10980 save_LIBS="$LIBS"
10981 LIBS="$LIBS -lm"
10982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10983 /* end confdefs.h. */
10984 #include <math.h>
10985 long double x;
10986 int
10987 main ()
10988 {
10989 int e; return frexpl (x, &e) > 0;
10990 ;
10991 return 0;
10992 }
10993 _ACEOF
10994 if ac_fn_c_try_link "$LINENO"; then :
10995 gl_cv_func_frexpl_in_libm=yes
10996 else
10997 gl_cv_func_frexpl_in_libm=no
10998 fi
10999 rm -f core conftest.err conftest.$ac_objext \
11000 conftest$ac_exeext conftest.$ac_ext
11001 LIBS="$save_LIBS"
11002
11003 fi
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
11005 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
11006 if test $gl_cv_func_frexpl_in_libm = yes; then
11007 FREXPL_LIBM=-lm
11008 fi
11009 fi
11010 if test $gl_cv_func_frexpl_no_libm = yes \
11011 || test $gl_cv_func_frexpl_in_libm = yes; then
11012 save_LIBS="$LIBS"
11013 LIBS="$LIBS $FREXPL_LIBM"
11014
11015
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
11017 $as_echo_n "checking whether frexpl works... " >&6; }
11018 if test "${gl_cv_func_frexpl_works+set}" = set; then :
11019 $as_echo_n "(cached) " >&6
11020 else
11021
11022 if test "$cross_compiling" = yes; then :
11023
11024 case "$host_os" in
11025 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
11026 gl_cv_func_frexpl_works="guessing no";;
11027 *) gl_cv_func_frexpl_works="guessing yes";;
11028 esac
11029
11030 else
11031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11032 /* end confdefs.h. */
11033
11034 #include <float.h>
11035 #include <math.h>
11036 /* Override the values of <float.h>, like done in float.in.h. */
11037 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
11038 # undef LDBL_MIN_EXP
11039 # define LDBL_MIN_EXP (-16381)
11040 #endif
11041 #if defined __i386__ && defined __FreeBSD__
11042 # undef LDBL_MIN_EXP
11043 # define LDBL_MIN_EXP (-16381)
11044 #endif
11045 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
11046 # undef LDBL_MIN_EXP
11047 # define LDBL_MIN_EXP DBL_MIN_EXP
11048 #endif
11049 #if defined __sgi && (LDBL_MANT_DIG >= 106)
11050 # if defined __GNUC__
11051 # undef LDBL_MIN_EXP
11052 # define LDBL_MIN_EXP DBL_MIN_EXP
11053 # endif
11054 #endif
11055 extern
11056 #ifdef __cplusplus
11057 "C"
11058 #endif
11059 long double frexpl (long double, int *);
11060 int main()
11061 {
11062 int result = 0;
11063 volatile long double x;
11064 /* Test on finite numbers that fails on AIX 5.1. */
11065 x = 16.0L;
11066 {
11067 int exp = -9999;
11068 frexpl (x, &exp);
11069 if (exp != 5)
11070 result |= 1;
11071 }
11072 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
11073 function returns an invalid (incorrectly normalized) value: it returns
11074 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
11075 but the correct result is
11076 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
11077 x = 1.01L;
11078 {
11079 int exp = -9999;
11080 long double y = frexpl (x, &exp);
11081 if (!(exp == 1 && y == 0.505L))
11082 result |= 2;
11083 }
11084 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
11085 LDBL_MAX_EXP = 16384.
11086 In the loop end test, we test x against Infinity, rather than comparing
11087 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
11088 {
11089 int i;
11090 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
11091 {
11092 int exp = -9999;
11093 frexpl (x, &exp);
11094 if (exp != i)
11095 {
11096 result |= 4;
11097 break;
11098 }
11099 }
11100 }
11101 /* Test on denormalized numbers. */
11102 {
11103 int i;
11104 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
11105 ;
11106 if (x > 0.0L)
11107 {
11108 int exp;
11109 long double y = frexpl (x, &exp);
11110 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
11111 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
11112 if (exp != LDBL_MIN_EXP - 1)
11113 result |= 8;
11114 }
11115 }
11116 /* Test on infinite numbers. */
11117 x = 1.0L / 0.0L;
11118 {
11119 int exp;
11120 long double y = frexpl (x, &exp);
11121 if (y != x)
11122 result |= 16;
11123 }
11124 return result;
11125 }
11126 _ACEOF
11127 if ac_fn_c_try_run "$LINENO"; then :
11128 gl_cv_func_frexpl_works=yes
11129 else
11130 gl_cv_func_frexpl_works=no
11131 fi
11132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11133 conftest.$ac_objext conftest.beam conftest.$ac_ext
11134 fi
11135
11136
11137 fi
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
11139 $as_echo "$gl_cv_func_frexpl_works" >&6; }
11140
11141 LIBS="$save_LIBS"
11142 case "$gl_cv_func_frexpl_works" in
11143 *yes) gl_func_frexpl=yes ;;
11144 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
11145 esac
11146 else
11147 gl_func_frexpl=no
11148 fi
11149 if test $gl_func_frexpl = yes; then
11150
11151 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
11152
11153 fi
11154 fi
11155 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
11156 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
11157
11158 FREXPL_LIBM="$FREXP_LIBM"
11159 else
11160 FREXPL_LIBM=
11161 fi
11162 fi
11163
11164
11165 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
11166
11167
11168
11169
11170
11171
11172
11173
11174 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
11175
11176 fi
11177
11178
11179
11180
11181
11182 GNULIB_FREXPL=1
11183
11184
11185
11186
11187
11188 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
11189
11190
11191
11192
11193
11194
11195
11196
11197 PRIPTR_PREFIX=
11198 if test -n "$STDINT_H"; then
11199 PRIPTR_PREFIX='"l"'
11200 else
11201 for glpfx in '' l ll I64; do
11202 case $glpfx in
11203 '') gltype1='int';;
11204 l) gltype1='long int';;
11205 ll) gltype1='long long int';;
11206 I64) gltype1='__int64';;
11207 esac
11208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11209 /* end confdefs.h. */
11210 #include <stdint.h>
11211 extern intptr_t foo;
11212 extern $gltype1 foo;
11213 int
11214 main ()
11215 {
11216
11217 ;
11218 return 0;
11219 }
11220 _ACEOF
11221 if ac_fn_c_try_compile "$LINENO"; then :
11222 PRIPTR_PREFIX='"'$glpfx'"'
11223 fi
11224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11225 test -n "$PRIPTR_PREFIX" && break
11226 done
11227 fi
11228
11229
11230
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
11232 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
11233 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
11234 $as_echo_n "(cached) " >&6
11235 else
11236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11237 /* end confdefs.h. */
11238 /* Work also in C++ mode. */
11239 #define __STDC_LIMIT_MACROS 1
11240
11241 /* Work if build is not clean. */
11242 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11243
11244 #include <limits.h>
11245 #if HAVE_STDINT_H
11246 #include <stdint.h>
11247 #endif
11248
11249 #if defined INT32_MAX && defined INTMAX_MAX
11250 #define CONDITION (INT32_MAX < INTMAX_MAX)
11251 #elif HAVE_LONG_LONG_INT
11252 #define CONDITION (sizeof (int) < sizeof (long long int))
11253 #else
11254 #define CONDITION 0
11255 #endif
11256 int test[CONDITION ? 1 : -1];
11257 int
11258 main ()
11259 {
11260
11261 ;
11262 return 0;
11263 }
11264 _ACEOF
11265 if ac_fn_c_try_compile "$LINENO"; then :
11266 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
11267 else
11268 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
11269 fi
11270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11271 fi
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
11273 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
11274 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
11275 INT32_MAX_LT_INTMAX_MAX=1;
11276 else
11277 INT32_MAX_LT_INTMAX_MAX=0;
11278 fi
11279
11280
11281 if test $APPLE_UNIVERSAL_BUILD = 0; then
11282
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
11284 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
11285 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
11286 $as_echo_n "(cached) " >&6
11287 else
11288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11289 /* end confdefs.h. */
11290 /* Work also in C++ mode. */
11291 #define __STDC_LIMIT_MACROS 1
11292
11293 /* Work if build is not clean. */
11294 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11295
11296 #include <limits.h>
11297 #if HAVE_STDINT_H
11298 #include <stdint.h>
11299 #endif
11300
11301 #if defined INT64_MAX
11302 #define CONDITION (INT64_MAX == LONG_MAX)
11303 #elif HAVE_LONG_LONG_INT
11304 #define CONDITION (sizeof (long long int) == sizeof (long int))
11305 #else
11306 #define CONDITION 0
11307 #endif
11308 int test[CONDITION ? 1 : -1];
11309 int
11310 main ()
11311 {
11312
11313 ;
11314 return 0;
11315 }
11316 _ACEOF
11317 if ac_fn_c_try_compile "$LINENO"; then :
11318 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
11319 else
11320 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
11321 fi
11322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11323 fi
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
11325 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
11326 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
11327 INT64_MAX_EQ_LONG_MAX=1;
11328 else
11329 INT64_MAX_EQ_LONG_MAX=0;
11330 fi
11331
11332
11333 else
11334 INT64_MAX_EQ_LONG_MAX=-1
11335 fi
11336
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
11338 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
11339 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
11340 $as_echo_n "(cached) " >&6
11341 else
11342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11343 /* end confdefs.h. */
11344 /* Work also in C++ mode. */
11345 #define __STDC_LIMIT_MACROS 1
11346
11347 /* Work if build is not clean. */
11348 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11349
11350 #include <limits.h>
11351 #if HAVE_STDINT_H
11352 #include <stdint.h>
11353 #endif
11354
11355 #if defined UINT32_MAX && defined UINTMAX_MAX
11356 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
11357 #elif HAVE_LONG_LONG_INT
11358 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
11359 #else
11360 #define CONDITION 0
11361 #endif
11362 int test[CONDITION ? 1 : -1];
11363 int
11364 main ()
11365 {
11366
11367 ;
11368 return 0;
11369 }
11370 _ACEOF
11371 if ac_fn_c_try_compile "$LINENO"; then :
11372 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
11373 else
11374 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
11375 fi
11376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11377 fi
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
11379 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
11380 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
11381 UINT32_MAX_LT_UINTMAX_MAX=1;
11382 else
11383 UINT32_MAX_LT_UINTMAX_MAX=0;
11384 fi
11385
11386
11387 if test $APPLE_UNIVERSAL_BUILD = 0; then
11388
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
11390 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
11391 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
11392 $as_echo_n "(cached) " >&6
11393 else
11394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11395 /* end confdefs.h. */
11396 /* Work also in C++ mode. */
11397 #define __STDC_LIMIT_MACROS 1
11398
11399 /* Work if build is not clean. */
11400 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11401
11402 #include <limits.h>
11403 #if HAVE_STDINT_H
11404 #include <stdint.h>
11405 #endif
11406
11407 #if defined UINT64_MAX
11408 #define CONDITION (UINT64_MAX == ULONG_MAX)
11409 #elif HAVE_LONG_LONG_INT
11410 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
11411 #else
11412 #define CONDITION 0
11413 #endif
11414 int test[CONDITION ? 1 : -1];
11415 int
11416 main ()
11417 {
11418
11419 ;
11420 return 0;
11421 }
11422 _ACEOF
11423 if ac_fn_c_try_compile "$LINENO"; then :
11424 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
11425 else
11426 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
11427 fi
11428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11429 fi
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
11431 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
11432 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
11433 UINT64_MAX_EQ_ULONG_MAX=1;
11434 else
11435 UINT64_MAX_EQ_ULONG_MAX=0;
11436 fi
11437
11438
11439 else
11440 UINT64_MAX_EQ_ULONG_MAX=-1
11441 fi
11442
11443
11444
11445
11446
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
11448 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
11449 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
11450 $as_echo_n "(cached) " >&6
11451 else
11452
11453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11454 /* end confdefs.h. */
11455 #include <math.h>
11456 #if __GNUC__ >= 4
11457 # undef isnand
11458 # define isnand(x) __builtin_isnan ((double)(x))
11459 #else
11460 # undef isnand
11461 # define isnand(x) isnan ((double)(x))
11462 #endif
11463 double x;
11464 int
11465 main ()
11466 {
11467 return isnand (x);
11468 ;
11469 return 0;
11470 }
11471 _ACEOF
11472 if ac_fn_c_try_link "$LINENO"; then :
11473 gl_cv_func_isnand_no_libm=yes
11474 else
11475 gl_cv_func_isnand_no_libm=no
11476 fi
11477 rm -f core conftest.err conftest.$ac_objext \
11478 conftest$ac_exeext conftest.$ac_ext
11479
11480 fi
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
11482 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
11483
11484 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
11485 if test $gl_cv_func_isnand_no_libm = yes; then
11486
11487 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
11488
11489 fi
11490
11491 if test $gl_func_isnand_no_libm != yes; then
11492
11493
11494
11495
11496
11497
11498
11499
11500 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
11501
11502
11503
11504
11505 fi
11506
11507
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
11509 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
11510 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
11511 $as_echo_n "(cached) " >&6
11512 else
11513
11514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11515 /* end confdefs.h. */
11516 #include <math.h>
11517 #if __GNUC__ >= 4
11518 # undef isnanl
11519 # define isnanl(x) __builtin_isnanl ((long double)(x))
11520 #elif defined isnan
11521 # undef isnanl
11522 # define isnanl(x) isnan ((long double)(x))
11523 #endif
11524 long double x;
11525 int
11526 main ()
11527 {
11528 return isnanl (x);
11529 ;
11530 return 0;
11531 }
11532 _ACEOF
11533 if ac_fn_c_try_link "$LINENO"; then :
11534 gl_cv_func_isnanl_no_libm=yes
11535 else
11536 gl_cv_func_isnanl_no_libm=no
11537 fi
11538 rm -f core conftest.err conftest.$ac_objext \
11539 conftest$ac_exeext conftest.$ac_ext
11540
11541 fi
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
11543 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
11544
11545 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
11546 if test $gl_func_isnanl_no_libm = yes; then
11547
11548
11549
11550
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
11552 $as_echo_n "checking whether isnanl works... " >&6; }
11553 if test "${gl_cv_func_isnanl_works+set}" = set; then :
11554 $as_echo_n "(cached) " >&6
11555 else
11556
11557 if test "$cross_compiling" = yes; then :
11558 case "$host_cpu" in
11559 # Guess no on ia64, x86_64, i386.
11560 ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
11561 *)
11562 case "$host_os" in
11563 netbsd*) gl_cv_func_isnanl_works="guessing no";;
11564 *) gl_cv_func_isnanl_works="guessing yes";;
11565 esac
11566 ;;
11567 esac
11568
11569 else
11570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11571 /* end confdefs.h. */
11572
11573 #include <float.h>
11574 #include <limits.h>
11575 #include <math.h>
11576 #if __GNUC__ >= 4
11577 # undef isnanl
11578 # define isnanl(x) __builtin_isnanl ((long double)(x))
11579 #elif defined isnan
11580 # undef isnanl
11581 # define isnanl(x) isnan ((long double)(x))
11582 #endif
11583 #define NWORDS \
11584 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
11585 typedef union { unsigned int word[NWORDS]; long double value; }
11586 memory_long_double;
11587 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
11588 runtime type conversion. */
11589 #ifdef __sgi
11590 static long double NaNl ()
11591 {
11592 double zero = 0.0;
11593 return zero / zero;
11594 }
11595 #else
11596 # define NaNl() (0.0L / 0.0L)
11597 #endif
11598 int main ()
11599 {
11600 int result = 0;
11601
11602 if (!isnanl (NaNl ()))
11603 result |= 1;
11604
11605 {
11606 memory_long_double m;
11607 unsigned int i;
11608
11609 /* The isnanl function should be immune against changes in the sign bit and
11610 in the mantissa bits. The xor operation twiddles a bit that can only be
11611 a sign bit or a mantissa bit (since the exponent never extends to
11612 bit 31). */
11613 m.value = NaNl ();
11614 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
11615 for (i = 0; i < NWORDS; i++)
11616 m.word[i] |= 1;
11617 if (!isnanl (m.value))
11618 result |= 1;
11619 }
11620
11621 #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
11622 /* Representation of an 80-bit 'long double' as an initializer for a sequence
11623 of 'unsigned int' words. */
11624 # ifdef WORDS_BIGENDIAN
11625 # define LDBL80_WORDS(exponent,manthi,mantlo) \
11626 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
11627 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
11628 (unsigned int) (mantlo) << 16 \
11629 }
11630 # else
11631 # define LDBL80_WORDS(exponent,manthi,mantlo) \
11632 { mantlo, manthi, exponent }
11633 # endif
11634 { /* Quiet NaN. */
11635 static memory_long_double x =
11636 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
11637 if (!isnanl (x.value))
11638 result |= 2;
11639 }
11640 {
11641 /* Signalling NaN. */
11642 static memory_long_double x =
11643 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
11644 if (!isnanl (x.value))
11645 result |= 2;
11646 }
11647 /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
11648 Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
11649 Intel IA-64 Architecture Software Developer's Manual, Volume 1:
11650 Application Architecture.
11651 Table 5-2 "Floating-Point Register Encodings"
11652 Figure 5-6 "Memory to Floating-Point Register Data Translation"
11653 */
11654 { /* Pseudo-NaN. */
11655 static memory_long_double x =
11656 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
11657 if (!isnanl (x.value))
11658 result |= 4;
11659 }
11660 { /* Pseudo-Infinity. */
11661 static memory_long_double x =
11662 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
11663 if (!isnanl (x.value))
11664 result |= 8;
11665 }
11666 { /* Pseudo-Zero. */
11667 static memory_long_double x =
11668 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
11669 if (!isnanl (x.value))
11670 result |= 16;
11671 }
11672 { /* Unnormalized number. */
11673 static memory_long_double x =
11674 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
11675 if (!isnanl (x.value))
11676 result |= 32;
11677 }
11678 { /* Pseudo-Denormal. */
11679 static memory_long_double x =
11680 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
11681 if (!isnanl (x.value))
11682 result |= 64;
11683 }
11684 #endif
11685
11686 return result;
11687 }
11688 _ACEOF
11689 if ac_fn_c_try_run "$LINENO"; then :
11690 gl_cv_func_isnanl_works=yes
11691 else
11692 gl_cv_func_isnanl_works=no
11693 fi
11694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11695 conftest.$ac_objext conftest.beam conftest.$ac_ext
11696 fi
11697
11698
11699 fi
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
11701 $as_echo "$gl_cv_func_isnanl_works" >&6; }
11702
11703 case "$gl_cv_func_isnanl_works" in
11704 *yes) ;;
11705 *) gl_func_isnanl_no_libm=no ;;
11706 esac
11707 fi
11708 if test $gl_func_isnanl_no_libm = yes; then
11709
11710 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
11711
11712 fi
11713
11714 if test $gl_func_isnanl_no_libm != yes; then
11715
11716
11717
11718
11719
11720
11721
11722
11723 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
11724
11725
11726
11727
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
11729 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
11730 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
11731 $as_echo_n "(cached) " >&6
11732 else
11733
11734 if test "$cross_compiling" = yes; then :
11735
11736 gl_cv_cc_long_double_expbit0="unknown"
11737
11738 else
11739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11740 /* end confdefs.h. */
11741
11742 #include <float.h>
11743 #include <stddef.h>
11744 #include <stdio.h>
11745 #include <string.h>
11746 #define NWORDS \
11747 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
11748 typedef union { long double value; unsigned int word[NWORDS]; }
11749 memory_long_double;
11750 static unsigned int ored_words[NWORDS];
11751 static unsigned int anded_words[NWORDS];
11752 static void add_to_ored_words (long double x)
11753 {
11754 memory_long_double m;
11755 size_t i;
11756 /* Clear it first, in case
11757 sizeof (long double) < sizeof (memory_long_double). */
11758 memset (&m, 0, sizeof (memory_long_double));
11759 m.value = x;
11760 for (i = 0; i < NWORDS; i++)
11761 {
11762 ored_words[i] |= m.word[i];
11763 anded_words[i] &= m.word[i];
11764 }
11765 }
11766 int main ()
11767 {
11768 size_t j;
11769 FILE *fp = fopen ("conftest.out", "w");
11770 if (fp == NULL)
11771 return 1;
11772 for (j = 0; j < NWORDS; j++)
11773 anded_words[j] = ~ (unsigned int) 0;
11774 add_to_ored_words (0.25L);
11775 add_to_ored_words (0.5L);
11776 add_to_ored_words (1.0L);
11777 add_to_ored_words (2.0L);
11778 add_to_ored_words (4.0L);
11779 /* Remove bits that are common (e.g. if representation of the first mantissa
11780 bit is explicit). */
11781 for (j = 0; j < NWORDS; j++)
11782 ored_words[j] &= ~anded_words[j];
11783 /* Now find the nonzero word. */
11784 for (j = 0; j < NWORDS; j++)
11785 if (ored_words[j] != 0)
11786 break;
11787 if (j < NWORDS)
11788 {
11789 size_t i;
11790 for (i = j + 1; i < NWORDS; i++)
11791 if (ored_words[i] != 0)
11792 {
11793 fprintf (fp, "unknown");
11794 return (fclose (fp) != 0);
11795 }
11796 for (i = 0; ; i++)
11797 if ((ored_words[j] >> i) & 1)
11798 {
11799 fprintf (fp, "word %d bit %d", (int) j, (int) i);
11800 return (fclose (fp) != 0);
11801 }
11802 }
11803 fprintf (fp, "unknown");
11804 return (fclose (fp) != 0);
11805 }
11806
11807 _ACEOF
11808 if ac_fn_c_try_run "$LINENO"; then :
11809 gl_cv_cc_long_double_expbit0=`cat conftest.out`
11810 else
11811 gl_cv_cc_long_double_expbit0="unknown"
11812 fi
11813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11814 conftest.$ac_objext conftest.beam conftest.$ac_ext
11815 fi
11816
11817 rm -f conftest.out
11818
11819 fi
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
11821 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
11822 case "$gl_cv_cc_long_double_expbit0" in
11823 word*bit*)
11824 word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
11825 bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
11826
11827 cat >>confdefs.h <<_ACEOF
11828 #define LDBL_EXPBIT0_WORD $word
11829 _ACEOF
11830
11831
11832 cat >>confdefs.h <<_ACEOF
11833 #define LDBL_EXPBIT0_BIT $bit
11834 _ACEOF
11835
11836 ;;
11837 esac
11838
11839
11840
11841 fi
11842
11843
11844
11845
11846
11847
11848
11849
11850 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863 if test $gl_cv_have_include_next = yes; then
11864 gl_cv_next_math_h='<'math.h'>'
11865 else
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
11867 $as_echo_n "checking absolute name of <math.h>... " >&6; }
11868 if test "${gl_cv_next_math_h+set}" = set; then :
11869 $as_echo_n "(cached) " >&6
11870 else
11871
11872 if test $ac_cv_header_math_h = yes; then
11873
11874
11875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11876 /* end confdefs.h. */
11877 #include <math.h>
11878
11879 _ACEOF
11880 case "$host_os" in
11881 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11882 *) gl_absname_cpp="$ac_cpp" ;;
11883 esac
11884
11885 case "$host_os" in
11886 mingw*)
11887 gl_dirsep_regex='[/\\]'
11888 ;;
11889 *)
11890 gl_dirsep_regex='\/'
11891 ;;
11892 esac
11893 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11894
11895 gl_header_literal_regex=`echo 'math.h' \
11896 | sed -e "$gl_make_literal_regex_sed"`
11897 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11898 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11899 s|^/[^/]|//&|
11900 p
11901 q
11902 }'
11903 gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11904 sed -n "$gl_absolute_header_sed"`'"'
11905 else
11906 gl_cv_next_math_h='<'math.h'>'
11907 fi
11908
11909
11910 fi
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
11912 $as_echo "$gl_cv_next_math_h" >&6; }
11913 fi
11914 NEXT_MATH_H=$gl_cv_next_math_h
11915
11916 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11917 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11918 gl_next_as_first_directive='<'math.h'>'
11919 else
11920 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11921 gl_next_as_first_directive=$gl_cv_next_math_h
11922 fi
11923 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
11924
11925
11926
11927
11928
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
11930 $as_echo_n "checking whether NAN macro works... " >&6; }
11931 if test "${gl_cv_header_math_nan_works+set}" = set; then :
11932 $as_echo_n "(cached) " >&6
11933 else
11934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11935 /* end confdefs.h. */
11936 #include <math.h>
11937 int
11938 main ()
11939 {
11940 /* Solaris 10 has a broken definition of NAN. Other platforms
11941 fail to provide NAN, or provide it only in C99 mode; this
11942 test only needs to fail when NAN is provided but wrong. */
11943 float f = 1.0f;
11944 #ifdef NAN
11945 f = NAN;
11946 #endif
11947 return f == 0;
11948 ;
11949 return 0;
11950 }
11951 _ACEOF
11952 if ac_fn_c_try_compile "$LINENO"; then :
11953 gl_cv_header_math_nan_works=yes
11954 else
11955 gl_cv_header_math_nan_works=no
11956 fi
11957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11958 fi
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
11960 $as_echo "$gl_cv_header_math_nan_works" >&6; }
11961 if test $gl_cv_header_math_nan_works = no; then
11962 REPLACE_NAN=1
11963 fi
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
11965 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
11966 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
11967 $as_echo_n "(cached) " >&6
11968 else
11969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11970 /* end confdefs.h. */
11971 #include <math.h>
11972 int
11973 main ()
11974 {
11975 /* Solaris 10 has a broken definition of HUGE_VAL. */
11976 double d = HUGE_VAL;
11977 return d == 0;
11978 ;
11979 return 0;
11980 }
11981 _ACEOF
11982 if ac_fn_c_try_compile "$LINENO"; then :
11983 gl_cv_header_math_huge_val_works=yes
11984 else
11985 gl_cv_header_math_huge_val_works=no
11986 fi
11987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11988 fi
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
11990 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
11991 if test $gl_cv_header_math_huge_val_works = no; then
11992 REPLACE_HUGE_VAL=1
11993 fi
11994
11995
11996 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
11997 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11999 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12000 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
12001 $as_echo_n "(cached) " >&6
12002 else
12003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12004 /* end confdefs.h. */
12005 #include <math.h>
12006 int
12007 main ()
12008 {
12009 #undef $gl_func
12010 (void) $gl_func;
12011 ;
12012 return 0;
12013 }
12014 _ACEOF
12015 if ac_fn_c_try_compile "$LINENO"; then :
12016 eval "$as_gl_Symbol=yes"
12017 else
12018 eval "$as_gl_Symbol=no"
12019 fi
12020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12021 fi
12022 eval ac_res=\$$as_gl_Symbol
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12024 $as_echo "$ac_res" >&6; }
12025 eval as_val=\$$as_gl_Symbol
12026 if test "x$as_val" = x""yes; then :
12027 cat >>confdefs.h <<_ACEOF
12028 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
12029 _ACEOF
12030
12031 eval ac_cv_have_decl_$gl_func=yes
12032 fi
12033 done
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
12047
12048
12049
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12051 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12052 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
12053 $as_echo_n "(cached) " >&6
12054 else
12055
12056 case "$host_os" in
12057 # Guess no on AIX and OSF/1.
12058 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12059 # Guess yes otherwise.
12060 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
12061 esac
12062 if test $LOCALE_JA != none; then
12063 if test "$cross_compiling" = yes; then :
12064 :
12065 else
12066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12067 /* end confdefs.h. */
12068
12069 #include <locale.h>
12070 #include <string.h>
12071 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12072 <wchar.h>.
12073 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12074 included before <wchar.h>. */
12075 #include <stddef.h>
12076 #include <stdio.h>
12077 #include <time.h>
12078 #include <wchar.h>
12079 int main ()
12080 {
12081 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12082 {
12083 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12084 mbstate_t state;
12085 wchar_t wc;
12086
12087 memset (&state, '\0', sizeof (mbstate_t));
12088 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12089 if (mbsinit (&state))
12090 return 1;
12091 }
12092 return 0;
12093 }
12094 _ACEOF
12095 if ac_fn_c_try_run "$LINENO"; then :
12096 gl_cv_func_mbrtowc_incomplete_state=yes
12097 else
12098 gl_cv_func_mbrtowc_incomplete_state=no
12099 fi
12100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12101 conftest.$ac_objext conftest.beam conftest.$ac_ext
12102 fi
12103
12104 fi
12105
12106 fi
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12108 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
12109
12110
12111
12112
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12114 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12115 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
12116 $as_echo_n "(cached) " >&6
12117 else
12118
12119 case "$host_os" in
12120 # Guess no on Solaris 8.
12121 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12122 # Guess yes otherwise.
12123 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12124 esac
12125 if test $LOCALE_ZH_CN != none; then
12126 if test "$cross_compiling" = yes; then :
12127 :
12128 else
12129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12130 /* end confdefs.h. */
12131
12132 #include <locale.h>
12133 #include <stdlib.h>
12134 #include <string.h>
12135 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12136 <wchar.h>.
12137 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12138 included before <wchar.h>. */
12139 #include <stddef.h>
12140 #include <stdio.h>
12141 #include <time.h>
12142 #include <wchar.h>
12143 int main ()
12144 {
12145 /* This fails on Solaris 8:
12146 mbrtowc returns 2, and sets wc to 0x00F0.
12147 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12148 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12149 {
12150 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12151 mbstate_t state;
12152 wchar_t wc;
12153
12154 memset (&state, '\0', sizeof (mbstate_t));
12155 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12156 && mbtowc (&wc, input + 3, 6) == 4)
12157 return 1;
12158 }
12159 return 0;
12160 }
12161 _ACEOF
12162 if ac_fn_c_try_run "$LINENO"; then :
12163 gl_cv_func_mbrtowc_sanitycheck=yes
12164 else
12165 gl_cv_func_mbrtowc_sanitycheck=no
12166 fi
12167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12168 conftest.$ac_objext conftest.beam conftest.$ac_ext
12169 fi
12170
12171 fi
12172
12173 fi
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12175 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12176
12177 REPLACE_MBSTATE_T=0
12178 case "$gl_cv_func_mbrtowc_incomplete_state" in
12179 *yes) ;;
12180 *) REPLACE_MBSTATE_T=1 ;;
12181 esac
12182 case "$gl_cv_func_mbrtowc_sanitycheck" in
12183 *yes) ;;
12184 *) REPLACE_MBSTATE_T=1 ;;
12185 esac
12186 else
12187 REPLACE_MBSTATE_T=1
12188 fi
12189
12190
12191
12192 if test $ac_cv_func_mbrtowc = no; then
12193 HAVE_MBRTOWC=0
12194 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
12195 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12196 <wchar.h>.
12197 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12198 included before <wchar.h>. */
12199 #include <stddef.h>
12200 #include <stdio.h>
12201 #include <time.h>
12202 #include <wchar.h>
12203
12204 "
12205 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
12206 ac_have_decl=1
12207 else
12208 ac_have_decl=0
12209 fi
12210
12211 cat >>confdefs.h <<_ACEOF
12212 #define HAVE_DECL_MBRTOWC $ac_have_decl
12213 _ACEOF
12214
12215 if test $ac_cv_have_decl_mbrtowc = yes; then
12216 REPLACE_MBRTOWC=1
12217 fi
12218 else
12219 if test $REPLACE_MBSTATE_T = 1; then
12220 REPLACE_MBRTOWC=1
12221 else
12222
12223
12224
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
12226 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
12227 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
12228 $as_echo_n "(cached) " >&6
12229 else
12230
12231 case "$host_os" in
12232 # Guess no on Solaris.
12233 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
12234 # Guess yes otherwise.
12235 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
12236 esac
12237 if test $LOCALE_FR_UTF8 != none; then
12238 if test "$cross_compiling" = yes; then :
12239 :
12240 else
12241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12242 /* end confdefs.h. */
12243
12244 #include <locale.h>
12245 #include <stdlib.h>
12246 #include <string.h>
12247 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12248 <wchar.h>.
12249 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12250 included before <wchar.h>. */
12251 #include <stddef.h>
12252 #include <stdio.h>
12253 #include <time.h>
12254 #include <wchar.h>
12255 int main ()
12256 {
12257 int result = 0;
12258
12259 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12260 {
12261 char input[] = "\303\237er";
12262 mbstate_t state;
12263 wchar_t wc;
12264 size_t ret;
12265
12266 memset (&state, '\0', sizeof (mbstate_t));
12267 wc = (wchar_t) 0xBADFACE;
12268 ret = mbrtowc (&wc, input, 5, &state);
12269 if (ret != 2)
12270 result |= 1;
12271 if (!mbsinit (&state))
12272 result |= 2;
12273
12274 memset (&state, '\0', sizeof (mbstate_t));
12275 ret = mbrtowc (NULL, input, 5, &state);
12276 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
12277 result |= 4;
12278 if (!mbsinit (&state))
12279 result |= 8;
12280 }
12281 return result;
12282 }
12283 _ACEOF
12284 if ac_fn_c_try_run "$LINENO"; then :
12285 gl_cv_func_mbrtowc_null_arg1=yes
12286 else
12287 gl_cv_func_mbrtowc_null_arg1=no
12288 fi
12289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12290 conftest.$ac_objext conftest.beam conftest.$ac_ext
12291 fi
12292
12293 fi
12294
12295 fi
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
12297 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
12298
12299
12300
12301
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
12303 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
12304 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
12305 $as_echo_n "(cached) " >&6
12306 else
12307
12308 case "$host_os" in
12309 # Guess no on OSF/1.
12310 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
12311 # Guess yes otherwise.
12312 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
12313 esac
12314 if test $LOCALE_FR_UTF8 != none; then
12315 if test "$cross_compiling" = yes; then :
12316 :
12317 else
12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12320
12321 #include <locale.h>
12322 #include <string.h>
12323 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12324 <wchar.h>.
12325 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12326 included before <wchar.h>. */
12327 #include <stddef.h>
12328 #include <stdio.h>
12329 #include <time.h>
12330 #include <wchar.h>
12331 int main ()
12332 {
12333 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12334 {
12335 mbstate_t state;
12336 wchar_t wc;
12337 int ret;
12338
12339 memset (&state, '\0', sizeof (mbstate_t));
12340 wc = (wchar_t) 0xBADFACE;
12341 mbrtowc (&wc, NULL, 5, &state);
12342 /* Check that wc was not modified. */
12343 if (wc != (wchar_t) 0xBADFACE)
12344 return 1;
12345 }
12346 return 0;
12347 }
12348 _ACEOF
12349 if ac_fn_c_try_run "$LINENO"; then :
12350 gl_cv_func_mbrtowc_null_arg2=yes
12351 else
12352 gl_cv_func_mbrtowc_null_arg2=no
12353 fi
12354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12355 conftest.$ac_objext conftest.beam conftest.$ac_ext
12356 fi
12357
12358 fi
12359
12360 fi
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
12362 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
12363
12364
12365
12366
12367
12368
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
12370 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
12371 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
12372 $as_echo_n "(cached) " >&6
12373 else
12374
12375 case "$host_os" in
12376 # Guess no on HP-UX, Solaris, native Windows.
12377 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
12378 # Guess yes otherwise.
12379 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
12380 esac
12381 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
12382 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
12383 if test "$cross_compiling" = yes; then :
12384 :
12385 else
12386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12387 /* end confdefs.h. */
12388
12389 #include <locale.h>
12390 #include <string.h>
12391 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12392 <wchar.h>.
12393 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12394 included before <wchar.h>. */
12395 #include <stddef.h>
12396 #include <stdio.h>
12397 #include <time.h>
12398 #include <wchar.h>
12399 int main ()
12400 {
12401 int result = 0;
12402 int found_some_locale = 0;
12403 /* This fails on Solaris. */
12404 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12405 {
12406 char input[] = "B\303\274\303\237er"; /* "Büßer" */
12407 mbstate_t state;
12408 wchar_t wc;
12409
12410 memset (&state, '\0', sizeof (mbstate_t));
12411 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12412 {
12413 input[1] = '\0';
12414 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
12415 result |= 1;
12416 }
12417 found_some_locale = 1;
12418 }
12419 /* This fails on HP-UX 11.11. */
12420 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12421 {
12422 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12423 mbstate_t state;
12424 wchar_t wc;
12425
12426 memset (&state, '\0', sizeof (mbstate_t));
12427 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12428 {
12429 input[1] = '\0';
12430 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
12431 result |= 2;
12432 }
12433 found_some_locale = 1;
12434 }
12435 /* This fails on native Windows. */
12436 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
12437 {
12438 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
12439 mbstate_t state;
12440 wchar_t wc;
12441
12442 memset (&state, '\0', sizeof (mbstate_t));
12443 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
12444 {
12445 input[3] = '\0';
12446 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
12447 result |= 4;
12448 }
12449 found_some_locale = 1;
12450 }
12451 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
12452 {
12453 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
12454 mbstate_t state;
12455 wchar_t wc;
12456
12457 memset (&state, '\0', sizeof (mbstate_t));
12458 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
12459 {
12460 input[3] = '\0';
12461 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
12462 result |= 8;
12463 }
12464 found_some_locale = 1;
12465 }
12466 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
12467 {
12468 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
12469 mbstate_t state;
12470 wchar_t wc;
12471
12472 memset (&state, '\0', sizeof (mbstate_t));
12473 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
12474 {
12475 input[3] = '\0';
12476 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
12477 result |= 16;
12478 }
12479 found_some_locale = 1;
12480 }
12481 return (found_some_locale ? result : 77);
12482 }
12483 _ACEOF
12484 if ac_fn_c_try_run "$LINENO"; then :
12485 gl_cv_func_mbrtowc_retval=yes
12486 else
12487 if test $? != 77; then
12488 gl_cv_func_mbrtowc_retval=no
12489 fi
12490
12491 fi
12492 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12493 conftest.$ac_objext conftest.beam conftest.$ac_ext
12494 fi
12495
12496 fi
12497
12498 fi
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
12500 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
12501
12502
12503
12504
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
12506 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
12507 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
12508 $as_echo_n "(cached) " >&6
12509 else
12510
12511 case "$host_os" in
12512 # Guess no on Solaris 8 and 9.
12513 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
12514 # Guess yes otherwise.
12515 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
12516 esac
12517 if test $LOCALE_ZH_CN != none; then
12518 if test "$cross_compiling" = yes; then :
12519 :
12520 else
12521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12522 /* end confdefs.h. */
12523
12524 #include <locale.h>
12525 #include <string.h>
12526 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12527 <wchar.h>.
12528 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12529 included before <wchar.h>. */
12530 #include <stddef.h>
12531 #include <stdio.h>
12532 #include <time.h>
12533 #include <wchar.h>
12534 int main ()
12535 {
12536 /* This fails on Solaris 8 and 9. */
12537 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12538 {
12539 mbstate_t state;
12540 wchar_t wc;
12541
12542 memset (&state, '\0', sizeof (mbstate_t));
12543 if (mbrtowc (&wc, "", 1, &state) != 0)
12544 return 1;
12545 }
12546 return 0;
12547 }
12548 _ACEOF
12549 if ac_fn_c_try_run "$LINENO"; then :
12550 gl_cv_func_mbrtowc_nul_retval=yes
12551 else
12552 gl_cv_func_mbrtowc_nul_retval=no
12553 fi
12554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12555 conftest.$ac_objext conftest.beam conftest.$ac_ext
12556 fi
12557
12558 fi
12559
12560 fi
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
12562 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
12563
12564 case "$gl_cv_func_mbrtowc_null_arg1" in
12565 *yes) ;;
12566 *)
12567 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
12568
12569 REPLACE_MBRTOWC=1
12570 ;;
12571 esac
12572 case "$gl_cv_func_mbrtowc_null_arg2" in
12573 *yes) ;;
12574 *)
12575 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
12576
12577 REPLACE_MBRTOWC=1
12578 ;;
12579 esac
12580 case "$gl_cv_func_mbrtowc_retval" in
12581 *yes) ;;
12582 *)
12583 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
12584
12585 REPLACE_MBRTOWC=1
12586 ;;
12587 esac
12588 case "$gl_cv_func_mbrtowc_nul_retval" in
12589 *yes) ;;
12590 *)
12591 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
12592
12593 REPLACE_MBRTOWC=1
12594 ;;
12595 esac
12596 fi
12597 fi
12598
12599 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
12600
12601
12602
12603
12604
12605
12606
12607
12608 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
12609
12610
12611 :
12612
12613 fi
12614
12615
12616
12617
12618
12619 GNULIB_MBRTOWC=1
12620
12621
12622
12623
12624
12625 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639
12640 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
12641
12642
12643
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12645 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12646 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
12647 $as_echo_n "(cached) " >&6
12648 else
12649
12650 case "$host_os" in
12651 # Guess no on AIX and OSF/1.
12652 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12653 # Guess yes otherwise.
12654 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
12655 esac
12656 if test $LOCALE_JA != none; then
12657 if test "$cross_compiling" = yes; then :
12658 :
12659 else
12660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12661 /* end confdefs.h. */
12662
12663 #include <locale.h>
12664 #include <string.h>
12665 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12666 <wchar.h>.
12667 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12668 included before <wchar.h>. */
12669 #include <stddef.h>
12670 #include <stdio.h>
12671 #include <time.h>
12672 #include <wchar.h>
12673 int main ()
12674 {
12675 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12676 {
12677 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12678 mbstate_t state;
12679 wchar_t wc;
12680
12681 memset (&state, '\0', sizeof (mbstate_t));
12682 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12683 if (mbsinit (&state))
12684 return 1;
12685 }
12686 return 0;
12687 }
12688 _ACEOF
12689 if ac_fn_c_try_run "$LINENO"; then :
12690 gl_cv_func_mbrtowc_incomplete_state=yes
12691 else
12692 gl_cv_func_mbrtowc_incomplete_state=no
12693 fi
12694 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12695 conftest.$ac_objext conftest.beam conftest.$ac_ext
12696 fi
12697
12698 fi
12699
12700 fi
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12702 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
12703
12704
12705
12706
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12708 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12709 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
12710 $as_echo_n "(cached) " >&6
12711 else
12712
12713 case "$host_os" in
12714 # Guess no on Solaris 8.
12715 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12716 # Guess yes otherwise.
12717 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12718 esac
12719 if test $LOCALE_ZH_CN != none; then
12720 if test "$cross_compiling" = yes; then :
12721 :
12722 else
12723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12724 /* end confdefs.h. */
12725
12726 #include <locale.h>
12727 #include <stdlib.h>
12728 #include <string.h>
12729 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12730 <wchar.h>.
12731 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12732 included before <wchar.h>. */
12733 #include <stddef.h>
12734 #include <stdio.h>
12735 #include <time.h>
12736 #include <wchar.h>
12737 int main ()
12738 {
12739 /* This fails on Solaris 8:
12740 mbrtowc returns 2, and sets wc to 0x00F0.
12741 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12742 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12743 {
12744 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12745 mbstate_t state;
12746 wchar_t wc;
12747
12748 memset (&state, '\0', sizeof (mbstate_t));
12749 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12750 && mbtowc (&wc, input + 3, 6) == 4)
12751 return 1;
12752 }
12753 return 0;
12754 }
12755 _ACEOF
12756 if ac_fn_c_try_run "$LINENO"; then :
12757 gl_cv_func_mbrtowc_sanitycheck=yes
12758 else
12759 gl_cv_func_mbrtowc_sanitycheck=no
12760 fi
12761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12762 conftest.$ac_objext conftest.beam conftest.$ac_ext
12763 fi
12764
12765 fi
12766
12767 fi
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12769 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12770
12771 REPLACE_MBSTATE_T=0
12772 case "$gl_cv_func_mbrtowc_incomplete_state" in
12773 *yes) ;;
12774 *) REPLACE_MBSTATE_T=1 ;;
12775 esac
12776 case "$gl_cv_func_mbrtowc_sanitycheck" in
12777 *yes) ;;
12778 *) REPLACE_MBSTATE_T=1 ;;
12779 esac
12780 else
12781 REPLACE_MBSTATE_T=1
12782 fi
12783
12784
12785
12786 if test $ac_cv_func_mbsinit = no; then
12787 HAVE_MBSINIT=0
12788 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
12789 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12790 <wchar.h>.
12791 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12792 included before <wchar.h>. */
12793 #include <stddef.h>
12794 #include <stdio.h>
12795 #include <time.h>
12796 #include <wchar.h>
12797
12798 "
12799 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
12800 ac_have_decl=1
12801 else
12802 ac_have_decl=0
12803 fi
12804
12805 cat >>confdefs.h <<_ACEOF
12806 #define HAVE_DECL_MBSINIT $ac_have_decl
12807 _ACEOF
12808
12809 if test $ac_cv_have_decl_mbsinit = yes; then
12810 REPLACE_MBSINIT=1
12811 fi
12812 else
12813 if test $REPLACE_MBSTATE_T = 1; then
12814 REPLACE_MBSINIT=1
12815 else
12816 case "$host_os" in
12817 mingw*) REPLACE_MBSINIT=1 ;;
12818 esac
12819 fi
12820 fi
12821
12822 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
12823
12824
12825
12826
12827
12828
12829
12830
12831 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
12832
12833
12834 :
12835
12836 fi
12837
12838
12839
12840
12841
12842 GNULIB_MBSINIT=1
12843
12844
12845
12846
12847
12848 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
12849
12850
12851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
12863
12864
12865
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12867 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12868 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
12869 $as_echo_n "(cached) " >&6
12870 else
12871
12872 case "$host_os" in
12873 # Guess no on AIX and OSF/1.
12874 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12875 # Guess yes otherwise.
12876 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
12877 esac
12878 if test $LOCALE_JA != none; then
12879 if test "$cross_compiling" = yes; then :
12880 :
12881 else
12882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12883 /* end confdefs.h. */
12884
12885 #include <locale.h>
12886 #include <string.h>
12887 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12888 <wchar.h>.
12889 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12890 included before <wchar.h>. */
12891 #include <stddef.h>
12892 #include <stdio.h>
12893 #include <time.h>
12894 #include <wchar.h>
12895 int main ()
12896 {
12897 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12898 {
12899 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12900 mbstate_t state;
12901 wchar_t wc;
12902
12903 memset (&state, '\0', sizeof (mbstate_t));
12904 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12905 if (mbsinit (&state))
12906 return 1;
12907 }
12908 return 0;
12909 }
12910 _ACEOF
12911 if ac_fn_c_try_run "$LINENO"; then :
12912 gl_cv_func_mbrtowc_incomplete_state=yes
12913 else
12914 gl_cv_func_mbrtowc_incomplete_state=no
12915 fi
12916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12917 conftest.$ac_objext conftest.beam conftest.$ac_ext
12918 fi
12919
12920 fi
12921
12922 fi
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12924 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
12925
12926
12927
12928
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12930 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12931 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
12932 $as_echo_n "(cached) " >&6
12933 else
12934
12935 case "$host_os" in
12936 # Guess no on Solaris 8.
12937 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12938 # Guess yes otherwise.
12939 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12940 esac
12941 if test $LOCALE_ZH_CN != none; then
12942 if test "$cross_compiling" = yes; then :
12943 :
12944 else
12945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12946 /* end confdefs.h. */
12947
12948 #include <locale.h>
12949 #include <stdlib.h>
12950 #include <string.h>
12951 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12952 <wchar.h>.
12953 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12954 included before <wchar.h>. */
12955 #include <stddef.h>
12956 #include <stdio.h>
12957 #include <time.h>
12958 #include <wchar.h>
12959 int main ()
12960 {
12961 /* This fails on Solaris 8:
12962 mbrtowc returns 2, and sets wc to 0x00F0.
12963 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12964 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12965 {
12966 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12967 mbstate_t state;
12968 wchar_t wc;
12969
12970 memset (&state, '\0', sizeof (mbstate_t));
12971 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12972 && mbtowc (&wc, input + 3, 6) == 4)
12973 return 1;
12974 }
12975 return 0;
12976 }
12977 _ACEOF
12978 if ac_fn_c_try_run "$LINENO"; then :
12979 gl_cv_func_mbrtowc_sanitycheck=yes
12980 else
12981 gl_cv_func_mbrtowc_sanitycheck=no
12982 fi
12983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12984 conftest.$ac_objext conftest.beam conftest.$ac_ext
12985 fi
12986
12987 fi
12988
12989 fi
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12991 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12992
12993 REPLACE_MBSTATE_T=0
12994 case "$gl_cv_func_mbrtowc_incomplete_state" in
12995 *yes) ;;
12996 *) REPLACE_MBSTATE_T=1 ;;
12997 esac
12998 case "$gl_cv_func_mbrtowc_sanitycheck" in
12999 *yes) ;;
13000 *) REPLACE_MBSTATE_T=1 ;;
13001 esac
13002 else
13003 REPLACE_MBSTATE_T=1
13004 fi
13005
13006
13007
13008 if test $ac_cv_func_mbsrtowcs = no; then
13009 HAVE_MBSRTOWCS=0
13010 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
13011 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13012 <wchar.h>.
13013 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13014 included before <wchar.h>. */
13015 #include <stddef.h>
13016 #include <stdio.h>
13017 #include <time.h>
13018 #include <wchar.h>
13019
13020 "
13021 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
13022 ac_have_decl=1
13023 else
13024 ac_have_decl=0
13025 fi
13026
13027 cat >>confdefs.h <<_ACEOF
13028 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
13029 _ACEOF
13030
13031 if test $ac_cv_have_decl_mbsrtowcs = yes; then
13032 REPLACE_MBSRTOWCS=1
13033 fi
13034 else
13035 if test $REPLACE_MBSTATE_T = 1; then
13036 REPLACE_MBSRTOWCS=1
13037 else
13038
13039
13040
13041
13042
13043
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
13045 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
13046 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
13047 $as_echo_n "(cached) " >&6
13048 else
13049
13050 case "$host_os" in
13051 # Guess no on HP-UX, Solaris, mingw.
13052 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
13053 # Guess yes otherwise.
13054 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
13055 esac
13056 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
13057 if test "$cross_compiling" = yes; then :
13058 :
13059 else
13060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13061 /* end confdefs.h. */
13062
13063 #include <locale.h>
13064 #include <string.h>
13065 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13066 <wchar.h>.
13067 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13068 included before <wchar.h>. */
13069 #include <stddef.h>
13070 #include <stdio.h>
13071 #include <time.h>
13072 #include <wchar.h>
13073 int main ()
13074 {
13075 int result = 0;
13076 /* Test whether the function supports a NULL destination argument.
13077 This fails on native Windows. */
13078 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
13079 {
13080 const char input[] = "\337er";
13081 const char *src = input;
13082 mbstate_t state;
13083
13084 memset (&state, '\0', sizeof (mbstate_t));
13085 if (mbsrtowcs (NULL, &src, 1, &state) != 3
13086 || src != input)
13087 result |= 1;
13088 }
13089 /* Test whether the function works when started with a conversion state
13090 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
13091 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
13092 {
13093 const char input[] = "B\303\274\303\237er";
13094 mbstate_t state;
13095
13096 memset (&state, '\0', sizeof (mbstate_t));
13097 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
13098 if (!mbsinit (&state))
13099 {
13100 const char *src = input + 2;
13101 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
13102 result |= 2;
13103 }
13104 }
13105 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13106 {
13107 const char input[] = "<\306\374\313\334\270\354>";
13108 mbstate_t state;
13109
13110 memset (&state, '\0', sizeof (mbstate_t));
13111 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
13112 if (!mbsinit (&state))
13113 {
13114 const char *src = input + 4;
13115 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
13116 result |= 4;
13117 }
13118 }
13119 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13120 {
13121 const char input[] = "B\250\271\201\060\211\070er";
13122 mbstate_t state;
13123
13124 memset (&state, '\0', sizeof (mbstate_t));
13125 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
13126 if (!mbsinit (&state))
13127 {
13128 const char *src = input + 2;
13129 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
13130 result |= 8;
13131 }
13132 }
13133 return result;
13134 }
13135 _ACEOF
13136 if ac_fn_c_try_run "$LINENO"; then :
13137 gl_cv_func_mbsrtowcs_works=yes
13138 else
13139 gl_cv_func_mbsrtowcs_works=no
13140 fi
13141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13142 conftest.$ac_objext conftest.beam conftest.$ac_ext
13143 fi
13144
13145 fi
13146
13147 fi
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
13149 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
13150
13151 case "$gl_cv_func_mbsrtowcs_works" in
13152 *yes) ;;
13153 *) REPLACE_MBSRTOWCS=1 ;;
13154 esac
13155 fi
13156 fi
13157
13158 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
13159
13160
13161
13162
13163
13164
13165
13166
13167 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
13168
13169
13170
13171
13172
13173
13174
13175
13176
13177 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
13178
13179
13180 :
13181
13182 fi
13183
13184
13185
13186
13187
13188 GNULIB_MBSRTOWCS=1
13189
13190
13191
13192
13193
13194 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
13195
13196
13197
13198
13199 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
13200
13201
13202
13203
13204
13205
13206
13207
13208 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
13209
13210
13211 for ac_header in bp-sym.h
13212 do :
13213 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
13214 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
13215 cat >>confdefs.h <<_ACEOF
13216 #define HAVE_BP_SYM_H 1
13217 _ACEOF
13218
13219 fi
13220
13221 done
13222
13223
13224 fi
13225
13226
13227
13228
13229
13230 GNULIB_MEMCHR=1
13231
13232
13233
13234
13235
13236 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
13237
13238
13239
13240
13241
13242 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
13244 $as_echo_n "checking whether memmem works in linear time... " >&6; }
13245 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
13246 $as_echo_n "(cached) " >&6
13247 else
13248 if test "$cross_compiling" = yes; then :
13249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13250 /* end confdefs.h. */
13251
13252 #include <features.h>
13253 #ifdef __GNU_LIBRARY__
13254 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
13255 && !defined __UCLIBC__
13256 Lucky user
13257 #endif
13258 #endif
13259 #ifdef __CYGWIN__
13260 #include <cygwin/version.h>
13261 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
13262 Lucky user
13263 #endif
13264 #endif
13265
13266 _ACEOF
13267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13268 $EGREP "Lucky user" >/dev/null 2>&1; then :
13269 gl_cv_func_memmem_works_fast="guessing yes"
13270 else
13271 gl_cv_func_memmem_works_fast="guessing no"
13272 fi
13273 rm -f conftest*
13274
13275
13276 else
13277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13278 /* end confdefs.h. */
13279
13280 #include <signal.h> /* for signal */
13281 #include <string.h> /* for memmem */
13282 #include <stdlib.h> /* for malloc */
13283 #include <unistd.h> /* for alarm */
13284 static void quit (int sig) { exit (sig + 128); }
13285
13286 int
13287 main ()
13288 {
13289
13290 int result = 0;
13291 size_t m = 1000000;
13292 char *haystack = (char *) malloc (2 * m + 1);
13293 char *needle = (char *) malloc (m + 1);
13294 /* Failure to compile this test due to missing alarm is okay,
13295 since all such platforms (mingw) also lack memmem. */
13296 signal (SIGALRM, quit);
13297 alarm (5);
13298 /* Check for quadratic performance. */
13299 if (haystack && needle)
13300 {
13301 memset (haystack, 'A', 2 * m);
13302 haystack[2 * m] = 'B';
13303 memset (needle, 'A', m);
13304 needle[m] = 'B';
13305 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
13306 result |= 1;
13307 }
13308 return result;
13309
13310 ;
13311 return 0;
13312 }
13313 _ACEOF
13314 if ac_fn_c_try_run "$LINENO"; then :
13315 gl_cv_func_memmem_works_fast=yes
13316 else
13317 gl_cv_func_memmem_works_fast=no
13318 fi
13319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13320 conftest.$ac_objext conftest.beam conftest.$ac_ext
13321 fi
13322
13323
13324 fi
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
13326 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
13327 case "$gl_cv_func_memmem_works_fast" in
13328 *yes) ;;
13329 *)
13330 REPLACE_MEMMEM=1
13331 ;;
13332 esac
13333 fi
13334
13335 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
13336
13337
13338
13339
13340
13341
13342
13343
13344 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
13345
13346 fi
13347
13348
13349
13350
13351 for ac_func in memmem
13352 do :
13353 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
13354 if test "x$ac_cv_func_memmem" = x""yes; then :
13355 cat >>confdefs.h <<_ACEOF
13356 #define HAVE_MEMMEM 1
13357 _ACEOF
13358
13359 fi
13360 done
13361
13362 if test $ac_cv_func_memmem = yes; then
13363 HAVE_MEMMEM=1
13364 else
13365 HAVE_MEMMEM=0
13366 fi
13367
13368 if test $ac_cv_have_decl_memmem = no; then
13369 HAVE_DECL_MEMMEM=0
13370 else
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
13372 $as_echo_n "checking whether memmem works... " >&6; }
13373 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
13374 $as_echo_n "(cached) " >&6
13375 else
13376 if test "$cross_compiling" = yes; then :
13377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13378 /* end confdefs.h. */
13379
13380 #ifdef __GNU_LIBRARY__
13381 #include <features.h>
13382 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
13383 || __GLIBC_MINOR__ > 12)) \
13384 || (__GLIBC__ > 2)) \
13385 || defined __UCLIBC__
13386 Lucky user
13387 #endif
13388 #elif defined __CYGWIN__
13389 #include <cygwin/version.h>
13390 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13391 Lucky user
13392 #endif
13393 #else
13394 Lucky user
13395 #endif
13396
13397 _ACEOF
13398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13399 $EGREP "Lucky user" >/dev/null 2>&1; then :
13400 gl_cv_func_memmem_works_always="guessing yes"
13401 else
13402 gl_cv_func_memmem_works_always="guessing no"
13403 fi
13404 rm -f conftest*
13405
13406
13407 else
13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13409 /* end confdefs.h. */
13410
13411 #include <string.h> /* for memmem */
13412 #define P "_EF_BF_BD"
13413 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
13414 #define NEEDLE P P P P P
13415
13416 int
13417 main ()
13418 {
13419
13420 int result = 0;
13421 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
13422 result |= 1;
13423 /* Check for empty needle behavior. */
13424 {
13425 const char *haystack = "AAA";
13426 if (memmem (haystack, 3, NULL, 0) != haystack)
13427 result |= 2;
13428 }
13429 return result;
13430
13431 ;
13432 return 0;
13433 }
13434 _ACEOF
13435 if ac_fn_c_try_run "$LINENO"; then :
13436 gl_cv_func_memmem_works_always=yes
13437 else
13438 gl_cv_func_memmem_works_always=no
13439 fi
13440 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13441 conftest.$ac_objext conftest.beam conftest.$ac_ext
13442 fi
13443
13444
13445 fi
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
13447 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
13448 case "$gl_cv_func_memmem_works_always" in
13449 *yes) ;;
13450 *)
13451 REPLACE_MEMMEM=1
13452 ;;
13453 esac
13454 fi
13455 :
13456
13457 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
13458
13459
13460
13461
13462
13463
13464
13465
13466 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
13467
13468 fi
13469
13470
13471
13472
13473
13474 GNULIB_MEMMEM=1
13475
13476
13477
13478
13479
13480 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
13481
13482
13483
13484
13485
13486
13487
13488
13489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
13490 $as_echo_n "checking for ssize_t... " >&6; }
13491 if test "${gt_cv_ssize_t+set}" = set; then :
13492 $as_echo_n "(cached) " >&6
13493 else
13494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13495 /* end confdefs.h. */
13496 #include <sys/types.h>
13497 int
13498 main ()
13499 {
13500 int x = sizeof (ssize_t *) + sizeof (ssize_t);
13501 return !x;
13502 ;
13503 return 0;
13504 }
13505 _ACEOF
13506 if ac_fn_c_try_compile "$LINENO"; then :
13507 gt_cv_ssize_t=yes
13508 else
13509 gt_cv_ssize_t=no
13510 fi
13511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13512 fi
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
13514 $as_echo "$gt_cv_ssize_t" >&6; }
13515 if test $gt_cv_ssize_t = no; then
13516
13517 $as_echo "#define ssize_t int" >>confdefs.h
13518
13519 fi
13520
13521
13522
13523
13524 # Define two additional variables used in the Makefile substitution.
13525
13526 if test "$ac_cv_header_stdbool_h" = yes; then
13527 STDBOOL_H=''
13528 else
13529 STDBOOL_H='stdbool.h'
13530 fi
13531
13532 if test -n "$STDBOOL_H"; then
13533 GL_GENERATE_STDBOOL_H_TRUE=
13534 GL_GENERATE_STDBOOL_H_FALSE='#'
13535 else
13536 GL_GENERATE_STDBOOL_H_TRUE='#'
13537 GL_GENERATE_STDBOOL_H_FALSE=
13538 fi
13539
13540
13541 if test "$ac_cv_type__Bool" = yes; then
13542 HAVE__BOOL=1
13543 else
13544 HAVE__BOOL=0
13545 fi
13546
13547
13548
13549
13550
13551 STDDEF_H=
13552 if test $gt_cv_c_wchar_t = no; then
13553 HAVE_WCHAR_T=0
13554 STDDEF_H=stddef.h
13555 fi
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
13557 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
13558 if test "${gl_cv_decl_null_works+set}" = set; then :
13559 $as_echo_n "(cached) " >&6
13560 else
13561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13562 /* end confdefs.h. */
13563 #include <stddef.h>
13564 int test[2 * (sizeof NULL == sizeof (void *)) -1];
13565
13566 int
13567 main ()
13568 {
13569
13570 ;
13571 return 0;
13572 }
13573 _ACEOF
13574 if ac_fn_c_try_compile "$LINENO"; then :
13575 gl_cv_decl_null_works=yes
13576 else
13577 gl_cv_decl_null_works=no
13578 fi
13579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13580 fi
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
13582 $as_echo "$gl_cv_decl_null_works" >&6; }
13583 if test $gl_cv_decl_null_works = no; then
13584 REPLACE_NULL=1
13585 STDDEF_H=stddef.h
13586 fi
13587
13588 if test -n "$STDDEF_H"; then
13589 GL_GENERATE_STDDEF_H_TRUE=
13590 GL_GENERATE_STDDEF_H_FALSE='#'
13591 else
13592 GL_GENERATE_STDDEF_H_TRUE='#'
13593 GL_GENERATE_STDDEF_H_FALSE=
13594 fi
13595
13596 if test -n "$STDDEF_H"; then
13597
13598
13599
13600
13601
13602
13603
13604
13605 if test $gl_cv_have_include_next = yes; then
13606 gl_cv_next_stddef_h='<'stddef.h'>'
13607 else
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
13609 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
13610 if test "${gl_cv_next_stddef_h+set}" = set; then :
13611 $as_echo_n "(cached) " >&6
13612 else
13613
13614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13615 /* end confdefs.h. */
13616 #include <stddef.h>
13617
13618 _ACEOF
13619 case "$host_os" in
13620 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13621 *) gl_absname_cpp="$ac_cpp" ;;
13622 esac
13623
13624 case "$host_os" in
13625 mingw*)
13626 gl_dirsep_regex='[/\\]'
13627 ;;
13628 *)
13629 gl_dirsep_regex='\/'
13630 ;;
13631 esac
13632 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13633
13634 gl_header_literal_regex=`echo 'stddef.h' \
13635 | sed -e "$gl_make_literal_regex_sed"`
13636 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13637 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13638 s|^/[^/]|//&|
13639 p
13640 q
13641 }'
13642 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13643 sed -n "$gl_absolute_header_sed"`'"'
13644
13645
13646 fi
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
13648 $as_echo "$gl_cv_next_stddef_h" >&6; }
13649 fi
13650 NEXT_STDDEF_H=$gl_cv_next_stddef_h
13651
13652 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13653 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13654 gl_next_as_first_directive='<'stddef.h'>'
13655 else
13656 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13657 gl_next_as_first_directive=$gl_cv_next_stddef_h
13658 fi
13659 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
13660
13661
13662
13663
13664 fi
13665
13666
13667
13668
13669
13670
13671
13672 if test $REPLACE_STRSTR = 0; then
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
13674 $as_echo_n "checking whether strstr works in linear time... " >&6; }
13675 if test "${gl_cv_func_strstr_linear+set}" = set; then :
13676 $as_echo_n "(cached) " >&6
13677 else
13678 if test "$cross_compiling" = yes; then :
13679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13680 /* end confdefs.h. */
13681
13682 #include <features.h>
13683 #ifdef __GNU_LIBRARY__
13684 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
13685 && !(defined __i386__ || defined __x86_64__) \
13686 && !defined __UCLIBC__
13687 Lucky user
13688 #endif
13689 #endif
13690 #ifdef __CYGWIN__
13691 #include <cygwin/version.h>
13692 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13693 Lucky user
13694 #endif
13695 #endif
13696
13697 _ACEOF
13698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13699 $EGREP "Lucky user" >/dev/null 2>&1; then :
13700 gl_cv_func_strstr_linear="guessing yes"
13701 else
13702 gl_cv_func_strstr_linear="guessing no"
13703 fi
13704 rm -f conftest*
13705
13706
13707 else
13708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13709 /* end confdefs.h. */
13710
13711 #include <signal.h> /* for signal */
13712 #include <string.h> /* for strstr */
13713 #include <stdlib.h> /* for malloc */
13714 #include <unistd.h> /* for alarm */
13715 static void quit (int sig) { exit (sig + 128); }
13716
13717 int
13718 main ()
13719 {
13720
13721 int result = 0;
13722 size_t m = 1000000;
13723 char *haystack = (char *) malloc (2 * m + 2);
13724 char *needle = (char *) malloc (m + 2);
13725 /* Failure to compile this test due to missing alarm is okay,
13726 since all such platforms (mingw) also have quadratic strstr. */
13727 signal (SIGALRM, quit);
13728 alarm (5);
13729 /* Check for quadratic performance. */
13730 if (haystack && needle)
13731 {
13732 memset (haystack, 'A', 2 * m);
13733 haystack[2 * m] = 'B';
13734 haystack[2 * m + 1] = 0;
13735 memset (needle, 'A', m);
13736 needle[m] = 'B';
13737 needle[m + 1] = 0;
13738 if (!strstr (haystack, needle))
13739 result |= 1;
13740 }
13741 return result;
13742
13743 ;
13744 return 0;
13745 }
13746 _ACEOF
13747 if ac_fn_c_try_run "$LINENO"; then :
13748 gl_cv_func_strstr_linear=yes
13749 else
13750 gl_cv_func_strstr_linear=no
13751 fi
13752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13753 conftest.$ac_objext conftest.beam conftest.$ac_ext
13754 fi
13755
13756
13757 fi
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
13759 $as_echo "$gl_cv_func_strstr_linear" >&6; }
13760 case "$gl_cv_func_strstr_linear" in
13761 *yes) ;;
13762 *)
13763 REPLACE_STRSTR=1
13764 ;;
13765 esac
13766 fi
13767
13768 if test $REPLACE_STRSTR = 1; then
13769
13770
13771
13772
13773
13774
13775
13776
13777 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
13778
13779 fi
13780
13781
13782
13783 if test "$gl_cv_func_memchr_works" != yes; then
13784 REPLACE_STRSTR=1
13785 else
13786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
13787 $as_echo_n "checking whether strstr works... " >&6; }
13788 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
13789 $as_echo_n "(cached) " >&6
13790 else
13791 if test "$cross_compiling" = yes; then :
13792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13793 /* end confdefs.h. */
13794
13795 #ifdef __GNU_LIBRARY__
13796 #include <features.h>
13797 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
13798 || defined __UCLIBC__
13799 Lucky user
13800 #endif
13801 #elif defined __CYGWIN__
13802 #include <cygwin/version.h>
13803 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13804 Lucky user
13805 #endif
13806 #else
13807 Lucky user
13808 #endif
13809
13810 _ACEOF
13811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13812 $EGREP "Lucky user" >/dev/null 2>&1; then :
13813 gl_cv_func_strstr_works_always="guessing yes"
13814 else
13815 gl_cv_func_strstr_works_always="guessing no"
13816 fi
13817 rm -f conftest*
13818
13819
13820 else
13821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13822 /* end confdefs.h. */
13823
13824 #include <string.h> /* for strstr */
13825 #define P "_EF_BF_BD"
13826 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
13827 #define NEEDLE P P P P P
13828
13829 int
13830 main ()
13831 {
13832 return !!strstr (HAYSTACK, NEEDLE);
13833
13834 ;
13835 return 0;
13836 }
13837 _ACEOF
13838 if ac_fn_c_try_run "$LINENO"; then :
13839 gl_cv_func_strstr_works_always=yes
13840 else
13841 gl_cv_func_strstr_works_always=no
13842 fi
13843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13844 conftest.$ac_objext conftest.beam conftest.$ac_ext
13845 fi
13846
13847
13848 fi
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
13850 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
13851 case "$gl_cv_func_strstr_works_always" in
13852 *yes) ;;
13853 *)
13854 REPLACE_STRSTR=1
13855 ;;
13856 esac
13857 fi
13858
13859 if test $REPLACE_STRSTR = 1; then
13860
13861
13862
13863
13864
13865
13866
13867
13868 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
13869
13870 fi
13871
13872
13873
13874
13875
13876 GNULIB_STRSTR=1
13877
13878
13879
13880
13881
13882 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898
13899
13900 if test $gl_cv_have_include_next = yes; then
13901 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
13902 else
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
13904 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
13905 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
13906 $as_echo_n "(cached) " >&6
13907 else
13908
13909 if test $ac_cv_header_sys_stat_h = yes; then
13910
13911
13912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13913 /* end confdefs.h. */
13914 #include <sys/stat.h>
13915
13916 _ACEOF
13917 case "$host_os" in
13918 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13919 *) gl_absname_cpp="$ac_cpp" ;;
13920 esac
13921
13922 case "$host_os" in
13923 mingw*)
13924 gl_dirsep_regex='[/\\]'
13925 ;;
13926 *)
13927 gl_dirsep_regex='\/'
13928 ;;
13929 esac
13930 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13931
13932 gl_header_literal_regex=`echo 'sys/stat.h' \
13933 | sed -e "$gl_make_literal_regex_sed"`
13934 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13935 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13936 s|^/[^/]|//&|
13937 p
13938 q
13939 }'
13940 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13941 sed -n "$gl_absolute_header_sed"`'"'
13942 else
13943 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
13944 fi
13945
13946
13947 fi
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
13949 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
13950 fi
13951 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
13952
13953 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13954 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13955 gl_next_as_first_directive='<'sys/stat.h'>'
13956 else
13957 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13958 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
13959 fi
13960 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
13961
13962
13963
13964
13965
13966
13967
13968
13969 WINDOWS_64_BIT_ST_SIZE=0
13970
13971
13972 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
13973
13974 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
13975
13976 fi
13977
13978 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
13979 #include <sys/stat.h>
13980 "
13981 if test "x$ac_cv_type_nlink_t" = x""yes; then :
13982
13983 else
13984
13985 $as_echo "#define nlink_t int" >>confdefs.h
13986
13987 fi
13988
13989
13990
13991 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
13992 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13994 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13995 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
13996 $as_echo_n "(cached) " >&6
13997 else
13998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13999 /* end confdefs.h. */
14000 #include <sys/stat.h>
14001
14002 int
14003 main ()
14004 {
14005 #undef $gl_func
14006 (void) $gl_func;
14007 ;
14008 return 0;
14009 }
14010 _ACEOF
14011 if ac_fn_c_try_compile "$LINENO"; then :
14012 eval "$as_gl_Symbol=yes"
14013 else
14014 eval "$as_gl_Symbol=no"
14015 fi
14016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14017 fi
14018 eval ac_res=\$$as_gl_Symbol
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14020 $as_echo "$ac_res" >&6; }
14021 eval as_val=\$$as_gl_Symbol
14022 if test "x$as_val" = x""yes; then :
14023 cat >>confdefs.h <<_ACEOF
14024 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14025 _ACEOF
14026
14027 eval ac_cv_have_decl_$gl_func=yes
14028 fi
14029 done
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044 if test $gl_cv_have_include_next = yes; then
14045 gl_cv_next_sys_types_h='<'sys/types.h'>'
14046 else
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
14048 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
14049 if test "${gl_cv_next_sys_types_h+set}" = set; then :
14050 $as_echo_n "(cached) " >&6
14051 else
14052
14053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14054 /* end confdefs.h. */
14055 #include <sys/types.h>
14056
14057 _ACEOF
14058 case "$host_os" in
14059 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14060 *) gl_absname_cpp="$ac_cpp" ;;
14061 esac
14062
14063 case "$host_os" in
14064 mingw*)
14065 gl_dirsep_regex='[/\\]'
14066 ;;
14067 *)
14068 gl_dirsep_regex='\/'
14069 ;;
14070 esac
14071 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14072
14073 gl_header_literal_regex=`echo 'sys/types.h' \
14074 | sed -e "$gl_make_literal_regex_sed"`
14075 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14076 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14077 s|^/[^/]|//&|
14078 p
14079 q
14080 }'
14081 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14082 sed -n "$gl_absolute_header_sed"`'"'
14083
14084
14085 fi
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
14087 $as_echo "$gl_cv_next_sys_types_h" >&6; }
14088 fi
14089 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
14090
14091 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14092 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14093 gl_next_as_first_directive='<'sys/types.h'>'
14094 else
14095 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14096 gl_next_as_first_directive=$gl_cv_next_sys_types_h
14097 fi
14098 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126 if test $gl_cv_have_include_next = yes; then
14127 gl_cv_next_unistd_h='<'unistd.h'>'
14128 else
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
14130 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
14131 if test "${gl_cv_next_unistd_h+set}" = set; then :
14132 $as_echo_n "(cached) " >&6
14133 else
14134
14135 if test $ac_cv_header_unistd_h = yes; then
14136
14137
14138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14139 /* end confdefs.h. */
14140 #include <unistd.h>
14141
14142 _ACEOF
14143 case "$host_os" in
14144 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14145 *) gl_absname_cpp="$ac_cpp" ;;
14146 esac
14147
14148 case "$host_os" in
14149 mingw*)
14150 gl_dirsep_regex='[/\\]'
14151 ;;
14152 *)
14153 gl_dirsep_regex='\/'
14154 ;;
14155 esac
14156 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14157
14158 gl_header_literal_regex=`echo 'unistd.h' \
14159 | sed -e "$gl_make_literal_regex_sed"`
14160 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14161 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14162 s|^/[^/]|//&|
14163 p
14164 q
14165 }'
14166 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14167 sed -n "$gl_absolute_header_sed"`'"'
14168 else
14169 gl_cv_next_unistd_h='<'unistd.h'>'
14170 fi
14171
14172
14173 fi
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
14175 $as_echo "$gl_cv_next_unistd_h" >&6; }
14176 fi
14177 NEXT_UNISTD_H=$gl_cv_next_unistd_h
14178
14179 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14180 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14181 gl_next_as_first_directive='<'unistd.h'>'
14182 else
14183 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14184 gl_next_as_first_directive=$gl_cv_next_unistd_h
14185 fi
14186 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
14187
14188
14189
14190
14191 if test $ac_cv_header_unistd_h = yes; then
14192 HAVE_UNISTD_H=1
14193 else
14194 HAVE_UNISTD_H=0
14195 fi
14196
14197
14198
14199
14200
14201
14202
14203 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
14204 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14206 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14207 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14208 $as_echo_n "(cached) " >&6
14209 else
14210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14211 /* end confdefs.h. */
14212
14213 #if HAVE_UNISTD_H
14214 # include <unistd.h>
14215 #endif
14216 /* Some systems declare various items in the wrong headers. */
14217 #if !(defined __GLIBC__ && !defined __UCLIBC__)
14218 # include <fcntl.h>
14219 # include <stdio.h>
14220 # include <stdlib.h>
14221 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
14222 # include <io.h>
14223 # endif
14224 #endif
14225
14226 int
14227 main ()
14228 {
14229 #undef $gl_func
14230 (void) $gl_func;
14231 ;
14232 return 0;
14233 }
14234 _ACEOF
14235 if ac_fn_c_try_compile "$LINENO"; then :
14236 eval "$as_gl_Symbol=yes"
14237 else
14238 eval "$as_gl_Symbol=no"
14239 fi
14240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14241 fi
14242 eval ac_res=\$$as_gl_Symbol
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14244 $as_echo "$ac_res" >&6; }
14245 eval as_val=\$$as_gl_Symbol
14246 if test "x$as_val" = x""yes; then :
14247 cat >>confdefs.h <<_ACEOF
14248 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14249 _ACEOF
14250
14251 eval ac_cv_have_decl_$gl_func=yes
14252 fi
14253 done
14254
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268 if test $gl_cv_have_include_next = yes; then
14269 gl_cv_next_wchar_h='<'wchar.h'>'
14270 else
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
14272 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
14273 if test "${gl_cv_next_wchar_h+set}" = set; then :
14274 $as_echo_n "(cached) " >&6
14275 else
14276
14277 if test $ac_cv_header_wchar_h = yes; then
14278
14279
14280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281 /* end confdefs.h. */
14282 #include <wchar.h>
14283
14284 _ACEOF
14285 case "$host_os" in
14286 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14287 *) gl_absname_cpp="$ac_cpp" ;;
14288 esac
14289
14290 case "$host_os" in
14291 mingw*)
14292 gl_dirsep_regex='[/\\]'
14293 ;;
14294 *)
14295 gl_dirsep_regex='\/'
14296 ;;
14297 esac
14298 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14299
14300 gl_header_literal_regex=`echo 'wchar.h' \
14301 | sed -e "$gl_make_literal_regex_sed"`
14302 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14303 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14304 s|^/[^/]|//&|
14305 p
14306 q
14307 }'
14308 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14309 sed -n "$gl_absolute_header_sed"`'"'
14310 else
14311 gl_cv_next_wchar_h='<'wchar.h'>'
14312 fi
14313
14314
14315 fi
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
14317 $as_echo "$gl_cv_next_wchar_h" >&6; }
14318 fi
14319 NEXT_WCHAR_H=$gl_cv_next_wchar_h
14320
14321 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14322 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14323 gl_next_as_first_directive='<'wchar.h'>'
14324 else
14325 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14326 gl_next_as_first_directive=$gl_cv_next_wchar_h
14327 fi
14328 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
14329
14330
14331
14332
14333 if test $ac_cv_header_wchar_h = yes; then
14334 HAVE_WCHAR_H=1
14335 else
14336 HAVE_WCHAR_H=0
14337 fi
14338
14339
14340
14341
14342
14343 if test $gt_cv_c_wint_t = yes; then
14344 HAVE_WINT_T=1
14345 else
14346 HAVE_WINT_T=0
14347 fi
14348
14349
14350
14351 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
14352 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14354 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14355 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14356 $as_echo_n "(cached) " >&6
14357 else
14358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14359 /* end confdefs.h. */
14360
14361 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14362 <wchar.h>.
14363 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14364 included before <wchar.h>. */
14365 #if !(defined __GLIBC__ && !defined __UCLIBC__)
14366 # include <stddef.h>
14367 # include <stdio.h>
14368 # include <time.h>
14369 #endif
14370 #include <wchar.h>
14371
14372 int
14373 main ()
14374 {
14375 #undef $gl_func
14376 (void) $gl_func;
14377 ;
14378 return 0;
14379 }
14380 _ACEOF
14381 if ac_fn_c_try_compile "$LINENO"; then :
14382 eval "$as_gl_Symbol=yes"
14383 else
14384 eval "$as_gl_Symbol=no"
14385 fi
14386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14387 fi
14388 eval ac_res=\$$as_gl_Symbol
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14390 $as_echo "$ac_res" >&6; }
14391 eval as_val=\$$as_gl_Symbol
14392 if test "x$as_val" = x""yes; then :
14393 cat >>confdefs.h <<_ACEOF
14394 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14395 _ACEOF
14396
14397 eval ac_cv_have_decl_$gl_func=yes
14398 fi
14399 done
14400
14401
14402
14403
14404
14405
14406
14407 if test $ac_cv_func_iswcntrl = yes; then
14408 HAVE_ISWCNTRL=1
14409 else
14410 HAVE_ISWCNTRL=0
14411 fi
14412
14413
14414
14415 if test $gt_cv_c_wint_t = yes; then
14416 HAVE_WINT_T=1
14417 else
14418 HAVE_WINT_T=0
14419 fi
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431 if test $gl_cv_have_include_next = yes; then
14432 gl_cv_next_wctype_h='<'wctype.h'>'
14433 else
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
14435 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
14436 if test "${gl_cv_next_wctype_h+set}" = set; then :
14437 $as_echo_n "(cached) " >&6
14438 else
14439
14440 if test $ac_cv_header_wctype_h = yes; then
14441
14442
14443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14444 /* end confdefs.h. */
14445 #include <wctype.h>
14446
14447 _ACEOF
14448 case "$host_os" in
14449 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14450 *) gl_absname_cpp="$ac_cpp" ;;
14451 esac
14452
14453 case "$host_os" in
14454 mingw*)
14455 gl_dirsep_regex='[/\\]'
14456 ;;
14457 *)
14458 gl_dirsep_regex='\/'
14459 ;;
14460 esac
14461 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14462
14463 gl_header_literal_regex=`echo 'wctype.h' \
14464 | sed -e "$gl_make_literal_regex_sed"`
14465 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14466 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14467 s|^/[^/]|//&|
14468 p
14469 q
14470 }'
14471 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14472 sed -n "$gl_absolute_header_sed"`'"'
14473 else
14474 gl_cv_next_wctype_h='<'wctype.h'>'
14475 fi
14476
14477
14478 fi
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
14480 $as_echo "$gl_cv_next_wctype_h" >&6; }
14481 fi
14482 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
14483
14484 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14485 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14486 gl_next_as_first_directive='<'wctype.h'>'
14487 else
14488 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14489 gl_next_as_first_directive=$gl_cv_next_wctype_h
14490 fi
14491 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
14492
14493
14494
14495
14496 if test $ac_cv_header_wctype_h = yes; then
14497 if test $ac_cv_func_iswcntrl = yes; then
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
14499 $as_echo_n "checking whether iswcntrl works... " >&6; }
14500 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
14501 $as_echo_n "(cached) " >&6
14502 else
14503
14504 if test "$cross_compiling" = yes; then :
14505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14506 /* end confdefs.h. */
14507 #include <stdlib.h>
14508 #if __GNU_LIBRARY__ == 1
14509 Linux libc5 i18n is broken.
14510 #endif
14511 int
14512 main ()
14513 {
14514
14515 ;
14516 return 0;
14517 }
14518 _ACEOF
14519 if ac_fn_c_try_compile "$LINENO"; then :
14520 gl_cv_func_iswcntrl_works="guessing yes"
14521 else
14522 gl_cv_func_iswcntrl_works="guessing no"
14523 fi
14524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14525
14526 else
14527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14528 /* end confdefs.h. */
14529
14530 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
14531 included before <wchar.h>.
14532 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
14533 must be included before <wchar.h>. */
14534 #include <stddef.h>
14535 #include <stdio.h>
14536 #include <time.h>
14537 #include <wchar.h>
14538 #include <wctype.h>
14539 int main () { return iswprint ('x') == 0; }
14540
14541 _ACEOF
14542 if ac_fn_c_try_run "$LINENO"; then :
14543 gl_cv_func_iswcntrl_works=yes
14544 else
14545 gl_cv_func_iswcntrl_works=no
14546 fi
14547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14548 conftest.$ac_objext conftest.beam conftest.$ac_ext
14549 fi
14550
14551
14552 fi
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
14554 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
14555 fi
14556 HAVE_WCTYPE_H=1
14557 else
14558 HAVE_WCTYPE_H=0
14559 fi
14560
14561
14562 case "$gl_cv_func_iswcntrl_works" in
14563 *yes) REPLACE_ISWCNTRL=0 ;;
14564 *) REPLACE_ISWCNTRL=1 ;;
14565 esac
14566
14567
14568 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
14569 :
14570 fi
14571
14572 if test $REPLACE_ISWCNTRL = 1; then
14573 REPLACE_TOWLOWER=1
14574 else
14575 for ac_func in towlower
14576 do :
14577 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
14578 if test "x$ac_cv_func_towlower" = x""yes; then :
14579 cat >>confdefs.h <<_ACEOF
14580 #define HAVE_TOWLOWER 1
14581 _ACEOF
14582
14583 fi
14584 done
14585
14586 if test $ac_cv_func_towlower = yes; then
14587 REPLACE_TOWLOWER=0
14588 else
14589 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
14590 included before <wchar.h>.
14591 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
14592 must be included before <wchar.h>. */
14593 #include <stddef.h>
14594 #include <stdio.h>
14595 #include <time.h>
14596 #include <wchar.h>
14597 #if HAVE_WCTYPE_H
14598 # include <wctype.h>
14599 #endif
14600
14601 "
14602 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
14603 ac_have_decl=1
14604 else
14605 ac_have_decl=0
14606 fi
14607
14608 cat >>confdefs.h <<_ACEOF
14609 #define HAVE_DECL_TOWLOWER $ac_have_decl
14610 _ACEOF
14611
14612 if test $ac_cv_have_decl_towlower = yes; then
14613 REPLACE_TOWLOWER=1
14614 else
14615 REPLACE_TOWLOWER=0
14616 fi
14617 fi
14618 fi
14619
14620
14621 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
14622 :
14623 fi
14624
14625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
14626 $as_echo_n "checking for wctype_t... " >&6; }
14627 if test "${gl_cv_type_wctype_t+set}" = set; then :
14628 $as_echo_n "(cached) " >&6
14629 else
14630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14631 /* end confdefs.h. */
14632 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
14633 included before <wchar.h>.
14634 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
14635 must be included before <wchar.h>. */
14636 #include <stddef.h>
14637 #include <stdio.h>
14638 #include <time.h>
14639 #include <wchar.h>
14640 #if HAVE_WCTYPE_H
14641 # include <wctype.h>
14642 #endif
14643 wctype_t a;
14644
14645 int
14646 main ()
14647 {
14648
14649 ;
14650 return 0;
14651 }
14652 _ACEOF
14653 if ac_fn_c_try_compile "$LINENO"; then :
14654 gl_cv_type_wctype_t=yes
14655 else
14656 gl_cv_type_wctype_t=no
14657 fi
14658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14659
14660 fi
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
14662 $as_echo "$gl_cv_type_wctype_t" >&6; }
14663 if test $gl_cv_type_wctype_t = no; then
14664 HAVE_WCTYPE_T=0
14665 fi
14666
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
14668 $as_echo_n "checking for wctrans_t... " >&6; }
14669 if test "${gl_cv_type_wctrans_t+set}" = set; then :
14670 $as_echo_n "(cached) " >&6
14671 else
14672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14673 /* end confdefs.h. */
14674 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
14675 included before <wchar.h>.
14676 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
14677 must be included before <wchar.h>. */
14678 #include <stddef.h>
14679 #include <stdio.h>
14680 #include <time.h>
14681 #include <wchar.h>
14682 #include <wctype.h>
14683 wctrans_t a;
14684
14685 int
14686 main ()
14687 {
14688
14689 ;
14690 return 0;
14691 }
14692 _ACEOF
14693 if ac_fn_c_try_compile "$LINENO"; then :
14694 gl_cv_type_wctrans_t=yes
14695 else
14696 gl_cv_type_wctrans_t=no
14697 fi
14698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14699
14700 fi
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
14702 $as_echo "$gl_cv_type_wctrans_t" >&6; }
14703 if test $gl_cv_type_wctrans_t = no; then
14704 HAVE_WCTRANS_T=0
14705 fi
14706
14707
14708 for gl_func in wctype iswctype wctrans towctrans ; do
14709 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14711 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14712 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14713 $as_echo_n "(cached) " >&6
14714 else
14715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14716 /* end confdefs.h. */
14717
14718 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14719 <wchar.h>.
14720 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14721 included before <wchar.h>. */
14722 #if !(defined __GLIBC__ && !defined __UCLIBC__)
14723 # include <stddef.h>
14724 # include <stdio.h>
14725 # include <time.h>
14726 # include <wchar.h>
14727 #endif
14728 #include <wctype.h>
14729
14730 int
14731 main ()
14732 {
14733 #undef $gl_func
14734 (void) $gl_func;
14735 ;
14736 return 0;
14737 }
14738 _ACEOF
14739 if ac_fn_c_try_compile "$LINENO"; then :
14740 eval "$as_gl_Symbol=yes"
14741 else
14742 eval "$as_gl_Symbol=no"
14743 fi
14744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14745 fi
14746 eval ac_res=\$$as_gl_Symbol
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14748 $as_echo "$ac_res" >&6; }
14749 eval as_val=\$$as_gl_Symbol
14750 if test "x$as_val" = x""yes; then :
14751 cat >>confdefs.h <<_ACEOF
14752 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14753 _ACEOF
14754
14755 eval ac_cv_have_decl_$gl_func=yes
14756 fi
14757 done
14758
14759
14760 # End of code from modules
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770 gltests_libdeps=
14771 gltests_ltlibdeps=
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781 gl_source_base='tests'
14782 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
14783
14784 gl_module_indicator_condition=$gltests_WITNESS
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794 LIBGNU_LIBDEPS="$gl_libdeps"
14795
14796 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
14797
14798
14799
14800 # We don't use automake, but gnulib does. This line lets us generate
14801 # its Makefile.in.
14802 am__api_version='1.11'
14803
14804 # Find a good install program. We prefer a C program (faster),
14805 # so one script is as good as another. But avoid the broken or
14806 # incompatible versions:
14807 # SysV /etc/install, /usr/sbin/install
14808 # SunOS /usr/etc/install
14809 # IRIX /sbin/install
14810 # AIX /bin/install
14811 # AmigaOS /C/install, which installs bootblocks on floppy discs
14812 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
14813 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
14814 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
14815 # OS/2's system install, which has a completely different semantic
14816 # ./install, which can be erroneously created by make from ./install.sh.
14817 # Reject install programs that cannot install multiple files.
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
14819 $as_echo_n "checking for a BSD-compatible install... " >&6; }
14820 if test -z "$INSTALL"; then
14821 if test "${ac_cv_path_install+set}" = set; then :
14822 $as_echo_n "(cached) " >&6
14823 else
14824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14825 for as_dir in $PATH
14826 do
14827 IFS=$as_save_IFS
14828 test -z "$as_dir" && as_dir=.
14829 # Account for people who put trailing slashes in PATH elements.
14830 case $as_dir/ in #((
14831 ./ | .// | /[cC]/* | \
14832 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
14833 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
14834 /usr/ucb/* ) ;;
14835 *)
14836 # OSF1 and SCO ODT 3.0 have their own names for install.
14837 # Don't use installbsd from OSF since it installs stuff as root
14838 # by default.
14839 for ac_prog in ginstall scoinst install; do
14840 for ac_exec_ext in '' $ac_executable_extensions; do
14841 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
14842 if test $ac_prog = install &&
14843 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14844 # AIX install. It has an incompatible calling convention.
14845 :
14846 elif test $ac_prog = install &&
14847 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
14848 # program-specific install script used by HP pwplus--don't use.
14849 :
14850 else
14851 rm -rf conftest.one conftest.two conftest.dir
14852 echo one > conftest.one
14853 echo two > conftest.two
14854 mkdir conftest.dir
14855 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
14856 test -s conftest.one && test -s conftest.two &&
14857 test -s conftest.dir/conftest.one &&
14858 test -s conftest.dir/conftest.two
14859 then
14860 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
14861 break 3
14862 fi
14863 fi
14864 fi
14865 done
14866 done
14867 ;;
14868 esac
14869
14870 done
14871 IFS=$as_save_IFS
14872
14873 rm -rf conftest.one conftest.two conftest.dir
14874
14875 fi
14876 if test "${ac_cv_path_install+set}" = set; then
14877 INSTALL=$ac_cv_path_install
14878 else
14879 # As a last resort, use the slow shell script. Don't cache a
14880 # value for INSTALL within a source directory, because that will
14881 # break other packages using the cache if that directory is
14882 # removed, or if the value is a relative name.
14883 INSTALL=$ac_install_sh
14884 fi
14885 fi
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
14887 $as_echo "$INSTALL" >&6; }
14888
14889 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
14890 # It thinks the first close brace ends the variable substitution.
14891 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
14892
14893 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
14894
14895 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
14896
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
14898 $as_echo_n "checking whether build environment is sane... " >&6; }
14899 # Just in case
14900 sleep 1
14901 echo timestamp > conftest.file
14902 # Reject unsafe characters in $srcdir or the absolute working directory
14903 # name. Accept space and tab only in the latter.
14904 am_lf='
14905 '
14906 case `pwd` in
14907 *[\\\"\#\$\&\'\`$am_lf]*)
14908 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
14909 esac
14910 case $srcdir in
14911 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
14912 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
14913 esac
14914
14915 # Do `set' in a subshell so we don't clobber the current shell's
14916 # arguments. Must try -L first in case configure is actually a
14917 # symlink; some systems play weird games with the mod time of symlinks
14918 # (eg FreeBSD returns the mod time of the symlink's containing
14919 # directory).
14920 if (
14921 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
14922 if test "$*" = "X"; then
14923 # -L didn't work.
14924 set X `ls -t "$srcdir/configure" conftest.file`
14925 fi
14926 rm -f conftest.file
14927 if test "$*" != "X $srcdir/configure conftest.file" \
14928 && test "$*" != "X conftest.file $srcdir/configure"; then
14929
14930 # If neither matched, then we have a broken ls. This can happen
14931 # if, for instance, CONFIG_SHELL is bash and it inherits a
14932 # broken ls alias from the environment. This has actually
14933 # happened. Such a system could not be considered "sane".
14934 as_fn_error "ls -t appears to fail. Make sure there is not a broken
14935 alias in your environment" "$LINENO" 5
14936 fi
14937
14938 test "$2" = conftest.file
14939 )
14940 then
14941 # Ok.
14942 :
14943 else
14944 as_fn_error "newly created file is older than distributed files!
14945 Check your system clock" "$LINENO" 5
14946 fi
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14948 $as_echo "yes" >&6; }
14949 test "$program_prefix" != NONE &&
14950 program_transform_name="s&^&$program_prefix&;$program_transform_name"
14951 # Use a double $ so make ignores it.
14952 test "$program_suffix" != NONE &&
14953 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
14954 # Double any \ or $.
14955 # By default was `s,x,x', remove it if useless.
14956 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
14957 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
14958
14959 # expand $ac_aux_dir to an absolute path
14960 am_aux_dir=`cd $ac_aux_dir && pwd`
14961
14962 if test x"${MISSING+set}" != xset; then
14963 case $am_aux_dir in
14964 *\ * | *\ *)
14965 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
14966 *)
14967 MISSING="\${SHELL} $am_aux_dir/missing" ;;
14968 esac
14969 fi
14970 # Use eval to expand $SHELL
14971 if eval "$MISSING --run true"; then
14972 am_missing_run="$MISSING --run "
14973 else
14974 am_missing_run=
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
14976 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
14977 fi
14978
14979 if test x"${install_sh}" != xset; then
14980 case $am_aux_dir in
14981 *\ * | *\ *)
14982 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
14983 *)
14984 install_sh="\${SHELL} $am_aux_dir/install-sh"
14985 esac
14986 fi
14987
14988 # Installed binaries are usually stripped using `strip' when the user
14989 # run `make install-strip'. However `strip' might not be the right
14990 # tool to use in cross-compilation environments, therefore Automake
14991 # will honor the `STRIP' environment variable to overrule this program.
14992 if test "$cross_compiling" != no; then
14993 if test -n "$ac_tool_prefix"; then
14994 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
14995 set dummy ${ac_tool_prefix}strip; ac_word=$2
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14997 $as_echo_n "checking for $ac_word... " >&6; }
14998 if test "${ac_cv_prog_STRIP+set}" = set; then :
14999 $as_echo_n "(cached) " >&6
15000 else
15001 if test -n "$STRIP"; then
15002 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15003 else
15004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15005 for as_dir in $PATH
15006 do
15007 IFS=$as_save_IFS
15008 test -z "$as_dir" && as_dir=.
15009 for ac_exec_ext in '' $ac_executable_extensions; do
15010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15011 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15013 break 2
15014 fi
15015 done
15016 done
15017 IFS=$as_save_IFS
15018
15019 fi
15020 fi
15021 STRIP=$ac_cv_prog_STRIP
15022 if test -n "$STRIP"; then
15023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
15024 $as_echo "$STRIP" >&6; }
15025 else
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15027 $as_echo "no" >&6; }
15028 fi
15029
15030
15031 fi
15032 if test -z "$ac_cv_prog_STRIP"; then
15033 ac_ct_STRIP=$STRIP
15034 # Extract the first word of "strip", so it can be a program name with args.
15035 set dummy strip; ac_word=$2
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15037 $as_echo_n "checking for $ac_word... " >&6; }
15038 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
15039 $as_echo_n "(cached) " >&6
15040 else
15041 if test -n "$ac_ct_STRIP"; then
15042 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15043 else
15044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15045 for as_dir in $PATH
15046 do
15047 IFS=$as_save_IFS
15048 test -z "$as_dir" && as_dir=.
15049 for ac_exec_ext in '' $ac_executable_extensions; do
15050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15051 ac_cv_prog_ac_ct_STRIP="strip"
15052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15053 break 2
15054 fi
15055 done
15056 done
15057 IFS=$as_save_IFS
15058
15059 fi
15060 fi
15061 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15062 if test -n "$ac_ct_STRIP"; then
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
15064 $as_echo "$ac_ct_STRIP" >&6; }
15065 else
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15067 $as_echo "no" >&6; }
15068 fi
15069
15070 if test "x$ac_ct_STRIP" = x; then
15071 STRIP=":"
15072 else
15073 case $cross_compiling:$ac_tool_warned in
15074 yes:)
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15076 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15077 ac_tool_warned=yes ;;
15078 esac
15079 STRIP=$ac_ct_STRIP
15080 fi
15081 else
15082 STRIP="$ac_cv_prog_STRIP"
15083 fi
15084
15085 fi
15086 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
15087
15088 mkdir_p="$MKDIR_P"
15089 case $mkdir_p in
15090 [\\/$]* | ?:[\\/]*) ;;
15091 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
15092 esac
15093
15094 for ac_prog in gawk mawk nawk awk
15095 do
15096 # Extract the first word of "$ac_prog", so it can be a program name with args.
15097 set dummy $ac_prog; ac_word=$2
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15099 $as_echo_n "checking for $ac_word... " >&6; }
15100 if test "${ac_cv_prog_AWK+set}" = set; then :
15101 $as_echo_n "(cached) " >&6
15102 else
15103 if test -n "$AWK"; then
15104 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15105 else
15106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15107 for as_dir in $PATH
15108 do
15109 IFS=$as_save_IFS
15110 test -z "$as_dir" && as_dir=.
15111 for ac_exec_ext in '' $ac_executable_extensions; do
15112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15113 ac_cv_prog_AWK="$ac_prog"
15114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15115 break 2
15116 fi
15117 done
15118 done
15119 IFS=$as_save_IFS
15120
15121 fi
15122 fi
15123 AWK=$ac_cv_prog_AWK
15124 if test -n "$AWK"; then
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
15126 $as_echo "$AWK" >&6; }
15127 else
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15129 $as_echo "no" >&6; }
15130 fi
15131
15132
15133 test -n "$AWK" && break
15134 done
15135
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15137 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15138 set x ${MAKE-make}
15139 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15140 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
15141 $as_echo_n "(cached) " >&6
15142 else
15143 cat >conftest.make <<\_ACEOF
15144 SHELL = /bin/sh
15145 all:
15146 @echo '@@@%%%=$(MAKE)=@@@%%%'
15147 _ACEOF
15148 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15149 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15150 *@@@%%%=?*=@@@%%%*)
15151 eval ac_cv_prog_make_${ac_make}_set=yes;;
15152 *)
15153 eval ac_cv_prog_make_${ac_make}_set=no;;
15154 esac
15155 rm -f conftest.make
15156 fi
15157 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15159 $as_echo "yes" >&6; }
15160 SET_MAKE=
15161 else
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15163 $as_echo "no" >&6; }
15164 SET_MAKE="MAKE=${MAKE-make}"
15165 fi
15166
15167 rm -rf .tst 2>/dev/null
15168 mkdir .tst 2>/dev/null
15169 if test -d .tst; then
15170 am__leading_dot=.
15171 else
15172 am__leading_dot=_
15173 fi
15174 rmdir .tst 2>/dev/null
15175
15176 DEPDIR="${am__leading_dot}deps"
15177
15178 ac_config_commands="$ac_config_commands depfiles"
15179
15180
15181 am_make=${MAKE-make}
15182 cat > confinc << 'END'
15183 am__doit:
15184 @echo this is the am__doit target
15185 .PHONY: am__doit
15186 END
15187 # If we don't find an include directive, just comment out the code.
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
15189 $as_echo_n "checking for style of include used by $am_make... " >&6; }
15190 am__include="#"
15191 am__quote=
15192 _am_result=none
15193 # First try GNU make style include.
15194 echo "include confinc" > confmf
15195 # Ignore all kinds of additional output from `make'.
15196 case `$am_make -s -f confmf 2> /dev/null` in #(
15197 *the\ am__doit\ target*)
15198 am__include=include
15199 am__quote=
15200 _am_result=GNU
15201 ;;
15202 esac
15203 # Now try BSD make style include.
15204 if test "$am__include" = "#"; then
15205 echo '.include "confinc"' > confmf
15206 case `$am_make -s -f confmf 2> /dev/null` in #(
15207 *the\ am__doit\ target*)
15208 am__include=.include
15209 am__quote="\""
15210 _am_result=BSD
15211 ;;
15212 esac
15213 fi
15214
15215
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
15217 $as_echo "$_am_result" >&6; }
15218 rm -f confinc confmf
15219
15220 # Check whether --enable-dependency-tracking was given.
15221 if test "${enable_dependency_tracking+set}" = set; then :
15222 enableval=$enable_dependency_tracking;
15223 fi
15224
15225 if test "x$enable_dependency_tracking" != xno; then
15226 am_depcomp="$ac_aux_dir/depcomp"
15227 AMDEPBACKSLASH='\'
15228 fi
15229 if test "x$enable_dependency_tracking" != xno; then
15230 AMDEP_TRUE=
15231 AMDEP_FALSE='#'
15232 else
15233 AMDEP_TRUE='#'
15234 AMDEP_FALSE=
15235 fi
15236
15237
15238 if test "`cd $srcdir && pwd`" != "`pwd`"; then
15239 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
15240 # is not polluted with repeated "-I."
15241 am__isrc=' -I$(srcdir)'
15242 # test to see if srcdir already configured
15243 if test -f $srcdir/config.status; then
15244 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
15245 fi
15246 fi
15247
15248 # test whether we have cygpath
15249 if test -z "$CYGPATH_W"; then
15250 if (cygpath --version) >/dev/null 2>/dev/null; then
15251 CYGPATH_W='cygpath -w'
15252 else
15253 CYGPATH_W=echo
15254 fi
15255 fi
15256
15257
15258 # Define the identity of the package.
15259 PACKAGE=libgnu
15260 VERSION=UNUSED-VERSION
15261
15262
15263 # Some tools Automake needs.
15264
15265 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
15266
15267
15268 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
15269
15270
15271 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
15272
15273
15274 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
15275
15276
15277 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
15278
15279 # We need awk for the "check" target. The system "awk" is bad on
15280 # some platforms.
15281 # Always define AMTAR for backward compatibility.
15282
15283 AMTAR=${AMTAR-"${am_missing_run}tar"}
15284
15285 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
15286
15287
15288
15289
15290 depcc="$CC" am_compiler_list=
15291
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15293 $as_echo_n "checking dependency style of $depcc... " >&6; }
15294 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
15295 $as_echo_n "(cached) " >&6
15296 else
15297 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15298 # We make a subdir and do the tests there. Otherwise we can end up
15299 # making bogus files that we don't know about and never remove. For
15300 # instance it was reported that on HP-UX the gcc test will end up
15301 # making a dummy file named `D' -- because `-MD' means `put the output
15302 # in D'.
15303 mkdir conftest.dir
15304 # Copy depcomp to subdir because otherwise we won't find it if we're
15305 # using a relative directory.
15306 cp "$am_depcomp" conftest.dir
15307 cd conftest.dir
15308 # We will build objects and dependencies in a subdirectory because
15309 # it helps to detect inapplicable dependency modes. For instance
15310 # both Tru64's cc and ICC support -MD to output dependencies as a
15311 # side effect of compilation, but ICC will put the dependencies in
15312 # the current directory while Tru64 will put them in the object
15313 # directory.
15314 mkdir sub
15315
15316 am_cv_CC_dependencies_compiler_type=none
15317 if test "$am_compiler_list" = ""; then
15318 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15319 fi
15320 am__universal=false
15321 case " $depcc " in #(
15322 *\ -arch\ *\ -arch\ *) am__universal=true ;;
15323 esac
15324
15325 for depmode in $am_compiler_list; do
15326 # Setup a source with many dependencies, because some compilers
15327 # like to wrap large dependency lists on column 80 (with \), and
15328 # we should not choose a depcomp mode which is confused by this.
15329 #
15330 # We need to recreate these files for each test, as the compiler may
15331 # overwrite some of them when testing with obscure command lines.
15332 # This happens at least with the AIX C compiler.
15333 : > sub/conftest.c
15334 for i in 1 2 3 4 5 6; do
15335 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15336 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15337 # Solaris 8's {/usr,}/bin/sh.
15338 touch sub/conftst$i.h
15339 done
15340 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15341
15342 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15343 # mode. It turns out that the SunPro C++ compiler does not properly
15344 # handle `-M -o', and we need to detect this. Also, some Intel
15345 # versions had trouble with output in subdirs
15346 am__obj=sub/conftest.${OBJEXT-o}
15347 am__minus_obj="-o $am__obj"
15348 case $depmode in
15349 gcc)
15350 # This depmode causes a compiler race in universal mode.
15351 test "$am__universal" = false || continue
15352 ;;
15353 nosideeffect)
15354 # after this tag, mechanisms are not by side-effect, so they'll
15355 # only be used when explicitly requested
15356 if test "x$enable_dependency_tracking" = xyes; then
15357 continue
15358 else
15359 break
15360 fi
15361 ;;
15362 msvisualcpp | msvcmsys)
15363 # This compiler won't grok `-c -o', but also, the minuso test has
15364 # not run yet. These depmodes are late enough in the game, and
15365 # so weak that their functioning should not be impacted.
15366 am__obj=conftest.${OBJEXT-o}
15367 am__minus_obj=
15368 ;;
15369 none) break ;;
15370 esac
15371 if depmode=$depmode \
15372 source=sub/conftest.c object=$am__obj \
15373 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15374 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15375 >/dev/null 2>conftest.err &&
15376 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15377 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15378 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15379 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15380 # icc doesn't choke on unknown options, it will just issue warnings
15381 # or remarks (even with -Werror). So we grep stderr for any message
15382 # that says an option was ignored or not supported.
15383 # When given -MP, icc 7.0 and 7.1 complain thusly:
15384 # icc: Command line warning: ignoring option '-M'; no argument required
15385 # The diagnosis changed in icc 8.0:
15386 # icc: Command line remark: option '-MP' not supported
15387 if (grep 'ignoring option' conftest.err ||
15388 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15389 am_cv_CC_dependencies_compiler_type=$depmode
15390 break
15391 fi
15392 fi
15393 done
15394
15395 cd ..
15396 rm -rf conftest.dir
15397 else
15398 am_cv_CC_dependencies_compiler_type=none
15399 fi
15400
15401 fi
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
15403 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
15404 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
15405
15406 if
15407 test "x$enable_dependency_tracking" != xno \
15408 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
15409 am__fastdepCC_TRUE=
15410 am__fastdepCC_FALSE='#'
15411 else
15412 am__fastdepCC_TRUE='#'
15413 am__fastdepCC_FALSE=
15414 fi
15415
15416
15417
15418
15419 # --------------------- #
15420 # Checks for programs. #
15421 # --------------------- #
15422
15423
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
15425 $as_echo_n "checking whether ln -s works... " >&6; }
15426 LN_S=$as_ln_s
15427 if test "$LN_S" = "ln -s"; then
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15429 $as_echo "yes" >&6; }
15430 else
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
15432 $as_echo "no, using $LN_S" >&6; }
15433 fi
15434
15435 if test -n "$ac_tool_prefix"; then
15436 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
15437 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15439 $as_echo_n "checking for $ac_word... " >&6; }
15440 if test "${ac_cv_prog_RANLIB+set}" = set; then :
15441 $as_echo_n "(cached) " >&6
15442 else
15443 if test -n "$RANLIB"; then
15444 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
15445 else
15446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15447 for as_dir in $PATH
15448 do
15449 IFS=$as_save_IFS
15450 test -z "$as_dir" && as_dir=.
15451 for ac_exec_ext in '' $ac_executable_extensions; do
15452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15453 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
15454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15455 break 2
15456 fi
15457 done
15458 done
15459 IFS=$as_save_IFS
15460
15461 fi
15462 fi
15463 RANLIB=$ac_cv_prog_RANLIB
15464 if test -n "$RANLIB"; then
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
15466 $as_echo "$RANLIB" >&6; }
15467 else
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15469 $as_echo "no" >&6; }
15470 fi
15471
15472
15473 fi
15474 if test -z "$ac_cv_prog_RANLIB"; then
15475 ac_ct_RANLIB=$RANLIB
15476 # Extract the first word of "ranlib", so it can be a program name with args.
15477 set dummy ranlib; ac_word=$2
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15479 $as_echo_n "checking for $ac_word... " >&6; }
15480 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
15481 $as_echo_n "(cached) " >&6
15482 else
15483 if test -n "$ac_ct_RANLIB"; then
15484 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
15485 else
15486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15487 for as_dir in $PATH
15488 do
15489 IFS=$as_save_IFS
15490 test -z "$as_dir" && as_dir=.
15491 for ac_exec_ext in '' $ac_executable_extensions; do
15492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15493 ac_cv_prog_ac_ct_RANLIB="ranlib"
15494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15495 break 2
15496 fi
15497 done
15498 done
15499 IFS=$as_save_IFS
15500
15501 fi
15502 fi
15503 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
15504 if test -n "$ac_ct_RANLIB"; then
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
15506 $as_echo "$ac_ct_RANLIB" >&6; }
15507 else
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15509 $as_echo "no" >&6; }
15510 fi
15511
15512 if test "x$ac_ct_RANLIB" = x; then
15513 RANLIB=":"
15514 else
15515 case $cross_compiling:$ac_tool_warned in
15516 yes:)
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15519 ac_tool_warned=yes ;;
15520 esac
15521 RANLIB=$ac_ct_RANLIB
15522 fi
15523 else
15524 RANLIB="$ac_cv_prog_RANLIB"
15525 fi
15526
15527
15528 if test -n "$ac_tool_prefix"; then
15529 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
15530 set dummy ${ac_tool_prefix}ar; ac_word=$2
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15532 $as_echo_n "checking for $ac_word... " >&6; }
15533 if test "${ac_cv_prog_AR+set}" = set; then :
15534 $as_echo_n "(cached) " >&6
15535 else
15536 if test -n "$AR"; then
15537 ac_cv_prog_AR="$AR" # Let the user override the test.
15538 else
15539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15540 for as_dir in $PATH
15541 do
15542 IFS=$as_save_IFS
15543 test -z "$as_dir" && as_dir=.
15544 for ac_exec_ext in '' $ac_executable_extensions; do
15545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15546 ac_cv_prog_AR="${ac_tool_prefix}ar"
15547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15548 break 2
15549 fi
15550 done
15551 done
15552 IFS=$as_save_IFS
15553
15554 fi
15555 fi
15556 AR=$ac_cv_prog_AR
15557 if test -n "$AR"; then
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
15559 $as_echo "$AR" >&6; }
15560 else
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15562 $as_echo "no" >&6; }
15563 fi
15564
15565
15566 fi
15567 if test -z "$ac_cv_prog_AR"; then
15568 ac_ct_AR=$AR
15569 # Extract the first word of "ar", so it can be a program name with args.
15570 set dummy ar; ac_word=$2
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15572 $as_echo_n "checking for $ac_word... " >&6; }
15573 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
15574 $as_echo_n "(cached) " >&6
15575 else
15576 if test -n "$ac_ct_AR"; then
15577 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
15578 else
15579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15580 for as_dir in $PATH
15581 do
15582 IFS=$as_save_IFS
15583 test -z "$as_dir" && as_dir=.
15584 for ac_exec_ext in '' $ac_executable_extensions; do
15585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15586 ac_cv_prog_ac_ct_AR="ar"
15587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15588 break 2
15589 fi
15590 done
15591 done
15592 IFS=$as_save_IFS
15593
15594 fi
15595 fi
15596 ac_ct_AR=$ac_cv_prog_ac_ct_AR
15597 if test -n "$ac_ct_AR"; then
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
15599 $as_echo "$ac_ct_AR" >&6; }
15600 else
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15602 $as_echo "no" >&6; }
15603 fi
15604
15605 if test "x$ac_ct_AR" = x; then
15606 AR=""
15607 else
15608 case $cross_compiling:$ac_tool_warned in
15609 yes:)
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15612 ac_tool_warned=yes ;;
15613 esac
15614 AR=$ac_ct_AR
15615 fi
15616 else
15617 AR="$ac_cv_prog_AR"
15618 fi
15619
15620
15621 # ---------------------- #
15622 # Checks for libraries. #
15623 # ---------------------- #
15624
15625 ac_config_files="$ac_config_files Makefile import/Makefile"
15626
15627 ac_config_commands="$ac_config_commands default"
15628
15629 cat >confcache <<\_ACEOF
15630 # This file is a shell script that caches the results of configure
15631 # tests run on this system so they can be shared between configure
15632 # scripts and configure runs, see configure's option --config-cache.
15633 # It is not useful on other systems. If it contains results you don't
15634 # want to keep, you may remove or edit it.
15635 #
15636 # config.status only pays attention to the cache file if you give it
15637 # the --recheck option to rerun configure.
15638 #
15639 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15640 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15641 # following values.
15642
15643 _ACEOF
15644
15645 # The following way of writing the cache mishandles newlines in values,
15646 # but we know of no workaround that is simple, portable, and efficient.
15647 # So, we kill variables containing newlines.
15648 # Ultrix sh set writes to stderr and can't be redirected directly,
15649 # and sets the high bit in the cache file unless we assign to the vars.
15650 (
15651 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15652 eval ac_val=\$$ac_var
15653 case $ac_val in #(
15654 *${as_nl}*)
15655 case $ac_var in #(
15656 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15657 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15658 esac
15659 case $ac_var in #(
15660 _ | IFS | as_nl) ;; #(
15661 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15662 *) { eval $ac_var=; unset $ac_var;} ;;
15663 esac ;;
15664 esac
15665 done
15666
15667 (set) 2>&1 |
15668 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15669 *${as_nl}ac_space=\ *)
15670 # `set' does not quote correctly, so add quotes: double-quote
15671 # substitution turns \\\\ into \\, and sed turns \\ into \.
15672 sed -n \
15673 "s/'/'\\\\''/g;
15674 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15675 ;; #(
15676 *)
15677 # `set' quotes correctly as required by POSIX, so do not add quotes.
15678 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15679 ;;
15680 esac |
15681 sort
15682 ) |
15683 sed '
15684 /^ac_cv_env_/b end
15685 t clear
15686 :clear
15687 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15688 t end
15689 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15690 :end' >>confcache
15691 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15692 if test -w "$cache_file"; then
15693 test "x$cache_file" != "x/dev/null" &&
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15695 $as_echo "$as_me: updating cache $cache_file" >&6;}
15696 cat confcache >$cache_file
15697 else
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15699 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15700 fi
15701 fi
15702 rm -f confcache
15703
15704 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15705 # Let make expand exec_prefix.
15706 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15707
15708 DEFS=-DHAVE_CONFIG_H
15709
15710 ac_libobjs=
15711 ac_ltlibobjs=
15712 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15713 # 1. Remove the extension, and $U if already installed.
15714 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15715 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15716 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15717 # will be set to the directory where LIBOBJS objects are built.
15718 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15719 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15720 done
15721 LIBOBJS=$ac_libobjs
15722
15723 LTLIBOBJS=$ac_ltlibobjs
15724
15725
15726 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15727 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15729 fi
15730 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
15731 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
15732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15733 fi
15734 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
15735 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
15736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15737 fi
15738 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
15739 as_fn_error "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
15740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15741 fi
15742 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
15743 as_fn_error "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
15744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15745 fi
15746 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
15747 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
15748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15749 fi
15750
15751
15752 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
15753 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
15754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15755 fi
15756 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
15757 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
15758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15759 fi
15760
15761 gl_libobjs=
15762 gl_ltlibobjs=
15763 if test -n "$gl_LIBOBJS"; then
15764 # Remove the extension.
15765 sed_drop_objext='s/\.o$//;s/\.obj$//'
15766 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
15767 gl_libobjs="$gl_libobjs $i.$ac_objext"
15768 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
15769 done
15770 fi
15771 gl_LIBOBJS=$gl_libobjs
15772
15773 gl_LTLIBOBJS=$gl_ltlibobjs
15774
15775
15776
15777 gltests_libobjs=
15778 gltests_ltlibobjs=
15779 if test -n "$gltests_LIBOBJS"; then
15780 # Remove the extension.
15781 sed_drop_objext='s/\.o$//;s/\.obj$//'
15782 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
15783 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
15784 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
15785 done
15786 fi
15787 gltests_LIBOBJS=$gltests_libobjs
15788
15789 gltests_LTLIBOBJS=$gltests_ltlibobjs
15790
15791
15792 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15793 as_fn_error "conditional \"AMDEP\" was never defined.
15794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15795 fi
15796 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15797 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15799 fi
15800 if test -n "$EXEEXT"; then
15801 am__EXEEXT_TRUE=
15802 am__EXEEXT_FALSE='#'
15803 else
15804 am__EXEEXT_TRUE='#'
15805 am__EXEEXT_FALSE=
15806 fi
15807
15808
15809 : ${CONFIG_STATUS=./config.status}
15810 ac_write_fail=0
15811 ac_clean_files_save=$ac_clean_files
15812 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15814 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15815 as_write_fail=0
15816 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15817 #! $SHELL
15818 # Generated by $as_me.
15819 # Run this file to recreate the current configuration.
15820 # Compiler output produced by configure, useful for debugging
15821 # configure, is in config.log if it exists.
15822
15823 debug=false
15824 ac_cs_recheck=false
15825 ac_cs_silent=false
15826
15827 SHELL=\${CONFIG_SHELL-$SHELL}
15828 export SHELL
15829 _ASEOF
15830 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15831 ## -------------------- ##
15832 ## M4sh Initialization. ##
15833 ## -------------------- ##
15834
15835 # Be more Bourne compatible
15836 DUALCASE=1; export DUALCASE # for MKS sh
15837 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15838 emulate sh
15839 NULLCMD=:
15840 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15841 # is contrary to our usage. Disable this feature.
15842 alias -g '${1+"$@"}'='"$@"'
15843 setopt NO_GLOB_SUBST
15844 else
15845 case `(set -o) 2>/dev/null` in #(
15846 *posix*) :
15847 set -o posix ;; #(
15848 *) :
15849 ;;
15850 esac
15851 fi
15852
15853
15854 as_nl='
15855 '
15856 export as_nl
15857 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15858 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15859 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15860 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15861 # Prefer a ksh shell builtin over an external printf program on Solaris,
15862 # but without wasting forks for bash or zsh.
15863 if test -z "$BASH_VERSION$ZSH_VERSION" \
15864 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15865 as_echo='print -r --'
15866 as_echo_n='print -rn --'
15867 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15868 as_echo='printf %s\n'
15869 as_echo_n='printf %s'
15870 else
15871 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15872 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15873 as_echo_n='/usr/ucb/echo -n'
15874 else
15875 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15876 as_echo_n_body='eval
15877 arg=$1;
15878 case $arg in #(
15879 *"$as_nl"*)
15880 expr "X$arg" : "X\\(.*\\)$as_nl";
15881 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15882 esac;
15883 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15884 '
15885 export as_echo_n_body
15886 as_echo_n='sh -c $as_echo_n_body as_echo'
15887 fi
15888 export as_echo_body
15889 as_echo='sh -c $as_echo_body as_echo'
15890 fi
15891
15892 # The user is always right.
15893 if test "${PATH_SEPARATOR+set}" != set; then
15894 PATH_SEPARATOR=:
15895 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15896 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15897 PATH_SEPARATOR=';'
15898 }
15899 fi
15900
15901
15902 # IFS
15903 # We need space, tab and new line, in precisely that order. Quoting is
15904 # there to prevent editors from complaining about space-tab.
15905 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15906 # splitting by setting IFS to empty value.)
15907 IFS=" "" $as_nl"
15908
15909 # Find who we are. Look in the path if we contain no directory separator.
15910 case $0 in #((
15911 *[\\/]* ) as_myself=$0 ;;
15912 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15913 for as_dir in $PATH
15914 do
15915 IFS=$as_save_IFS
15916 test -z "$as_dir" && as_dir=.
15917 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15918 done
15919 IFS=$as_save_IFS
15920
15921 ;;
15922 esac
15923 # We did not find ourselves, most probably we were run as `sh COMMAND'
15924 # in which case we are not to be found in the path.
15925 if test "x$as_myself" = x; then
15926 as_myself=$0
15927 fi
15928 if test ! -f "$as_myself"; then
15929 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15930 exit 1
15931 fi
15932
15933 # Unset variables that we do not need and which cause bugs (e.g. in
15934 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15935 # suppresses any "Segmentation fault" message there. '((' could
15936 # trigger a bug in pdksh 5.2.14.
15937 for as_var in BASH_ENV ENV MAIL MAILPATH
15938 do eval test x\${$as_var+set} = xset \
15939 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15940 done
15941 PS1='$ '
15942 PS2='> '
15943 PS4='+ '
15944
15945 # NLS nuisances.
15946 LC_ALL=C
15947 export LC_ALL
15948 LANGUAGE=C
15949 export LANGUAGE
15950
15951 # CDPATH.
15952 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15953
15954
15955 # as_fn_error ERROR [LINENO LOG_FD]
15956 # ---------------------------------
15957 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15958 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15959 # script with status $?, using 1 if that was 0.
15960 as_fn_error ()
15961 {
15962 as_status=$?; test $as_status -eq 0 && as_status=1
15963 if test "$3"; then
15964 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15965 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15966 fi
15967 $as_echo "$as_me: error: $1" >&2
15968 as_fn_exit $as_status
15969 } # as_fn_error
15970
15971
15972 # as_fn_set_status STATUS
15973 # -----------------------
15974 # Set $? to STATUS, without forking.
15975 as_fn_set_status ()
15976 {
15977 return $1
15978 } # as_fn_set_status
15979
15980 # as_fn_exit STATUS
15981 # -----------------
15982 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15983 as_fn_exit ()
15984 {
15985 set +e
15986 as_fn_set_status $1
15987 exit $1
15988 } # as_fn_exit
15989
15990 # as_fn_unset VAR
15991 # ---------------
15992 # Portably unset VAR.
15993 as_fn_unset ()
15994 {
15995 { eval $1=; unset $1;}
15996 }
15997 as_unset=as_fn_unset
15998 # as_fn_append VAR VALUE
15999 # ----------------------
16000 # Append the text in VALUE to the end of the definition contained in VAR. Take
16001 # advantage of any shell optimizations that allow amortized linear growth over
16002 # repeated appends, instead of the typical quadratic growth present in naive
16003 # implementations.
16004 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16005 eval 'as_fn_append ()
16006 {
16007 eval $1+=\$2
16008 }'
16009 else
16010 as_fn_append ()
16011 {
16012 eval $1=\$$1\$2
16013 }
16014 fi # as_fn_append
16015
16016 # as_fn_arith ARG...
16017 # ------------------
16018 # Perform arithmetic evaluation on the ARGs, and store the result in the
16019 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16020 # must be portable across $(()) and expr.
16021 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16022 eval 'as_fn_arith ()
16023 {
16024 as_val=$(( $* ))
16025 }'
16026 else
16027 as_fn_arith ()
16028 {
16029 as_val=`expr "$@" || test $? -eq 1`
16030 }
16031 fi # as_fn_arith
16032
16033
16034 if expr a : '\(a\)' >/dev/null 2>&1 &&
16035 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16036 as_expr=expr
16037 else
16038 as_expr=false
16039 fi
16040
16041 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16042 as_basename=basename
16043 else
16044 as_basename=false
16045 fi
16046
16047 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16048 as_dirname=dirname
16049 else
16050 as_dirname=false
16051 fi
16052
16053 as_me=`$as_basename -- "$0" ||
16054 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16055 X"$0" : 'X\(//\)$' \| \
16056 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16057 $as_echo X/"$0" |
16058 sed '/^.*\/\([^/][^/]*\)\/*$/{
16059 s//\1/
16060 q
16061 }
16062 /^X\/\(\/\/\)$/{
16063 s//\1/
16064 q
16065 }
16066 /^X\/\(\/\).*/{
16067 s//\1/
16068 q
16069 }
16070 s/.*/./; q'`
16071
16072 # Avoid depending upon Character Ranges.
16073 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16074 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16075 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16076 as_cr_digits='0123456789'
16077 as_cr_alnum=$as_cr_Letters$as_cr_digits
16078
16079 ECHO_C= ECHO_N= ECHO_T=
16080 case `echo -n x` in #(((((
16081 -n*)
16082 case `echo 'xy\c'` in
16083 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16084 xy) ECHO_C='\c';;
16085 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16086 ECHO_T=' ';;
16087 esac;;
16088 *)
16089 ECHO_N='-n';;
16090 esac
16091
16092 rm -f conf$$ conf$$.exe conf$$.file
16093 if test -d conf$$.dir; then
16094 rm -f conf$$.dir/conf$$.file
16095 else
16096 rm -f conf$$.dir
16097 mkdir conf$$.dir 2>/dev/null
16098 fi
16099 if (echo >conf$$.file) 2>/dev/null; then
16100 if ln -s conf$$.file conf$$ 2>/dev/null; then
16101 as_ln_s='ln -s'
16102 # ... but there are two gotchas:
16103 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16104 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16105 # In both cases, we have to default to `cp -p'.
16106 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16107 as_ln_s='cp -p'
16108 elif ln conf$$.file conf$$ 2>/dev/null; then
16109 as_ln_s=ln
16110 else
16111 as_ln_s='cp -p'
16112 fi
16113 else
16114 as_ln_s='cp -p'
16115 fi
16116 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16117 rmdir conf$$.dir 2>/dev/null
16118
16119
16120 # as_fn_mkdir_p
16121 # -------------
16122 # Create "$as_dir" as a directory, including parents if necessary.
16123 as_fn_mkdir_p ()
16124 {
16125
16126 case $as_dir in #(
16127 -*) as_dir=./$as_dir;;
16128 esac
16129 test -d "$as_dir" || eval $as_mkdir_p || {
16130 as_dirs=
16131 while :; do
16132 case $as_dir in #(
16133 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16134 *) as_qdir=$as_dir;;
16135 esac
16136 as_dirs="'$as_qdir' $as_dirs"
16137 as_dir=`$as_dirname -- "$as_dir" ||
16138 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16139 X"$as_dir" : 'X\(//\)[^/]' \| \
16140 X"$as_dir" : 'X\(//\)$' \| \
16141 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16142 $as_echo X"$as_dir" |
16143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16144 s//\1/
16145 q
16146 }
16147 /^X\(\/\/\)[^/].*/{
16148 s//\1/
16149 q
16150 }
16151 /^X\(\/\/\)$/{
16152 s//\1/
16153 q
16154 }
16155 /^X\(\/\).*/{
16156 s//\1/
16157 q
16158 }
16159 s/.*/./; q'`
16160 test -d "$as_dir" && break
16161 done
16162 test -z "$as_dirs" || eval "mkdir $as_dirs"
16163 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16164
16165
16166 } # as_fn_mkdir_p
16167 if mkdir -p . 2>/dev/null; then
16168 as_mkdir_p='mkdir -p "$as_dir"'
16169 else
16170 test -d ./-p && rmdir ./-p
16171 as_mkdir_p=false
16172 fi
16173
16174 if test -x / >/dev/null 2>&1; then
16175 as_test_x='test -x'
16176 else
16177 if ls -dL / >/dev/null 2>&1; then
16178 as_ls_L_option=L
16179 else
16180 as_ls_L_option=
16181 fi
16182 as_test_x='
16183 eval sh -c '\''
16184 if test -d "$1"; then
16185 test -d "$1/.";
16186 else
16187 case $1 in #(
16188 -*)set "./$1";;
16189 esac;
16190 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16191 ???[sx]*):;;*)false;;esac;fi
16192 '\'' sh
16193 '
16194 fi
16195 as_executable_p=$as_test_x
16196
16197 # Sed expression to map a string onto a valid CPP name.
16198 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16199
16200 # Sed expression to map a string onto a valid variable name.
16201 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16202
16203
16204 exec 6>&1
16205 ## ----------------------------------- ##
16206 ## Main body of $CONFIG_STATUS script. ##
16207 ## ----------------------------------- ##
16208 _ASEOF
16209 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16210
16211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16212 # Save the log message, to keep $0 and so on meaningful, and to
16213 # report actual input values of CONFIG_FILES etc. instead of their
16214 # values after options handling.
16215 ac_log="
16216 This file was extended by $as_me, which was
16217 generated by GNU Autoconf 2.64. Invocation command line was
16218
16219 CONFIG_FILES = $CONFIG_FILES
16220 CONFIG_HEADERS = $CONFIG_HEADERS
16221 CONFIG_LINKS = $CONFIG_LINKS
16222 CONFIG_COMMANDS = $CONFIG_COMMANDS
16223 $ $0 $@
16224
16225 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16226 "
16227
16228 _ACEOF
16229
16230 case $ac_config_files in *"
16231 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16232 esac
16233
16234 case $ac_config_headers in *"
16235 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16236 esac
16237
16238
16239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16240 # Files that config.status was made for.
16241 config_files="$ac_config_files"
16242 config_headers="$ac_config_headers"
16243 config_commands="$ac_config_commands"
16244
16245 _ACEOF
16246
16247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16248 ac_cs_usage="\
16249 \`$as_me' instantiates files and other configuration actions
16250 from templates according to the current configuration. Unless the files
16251 and actions are specified as TAGs, all are instantiated by default.
16252
16253 Usage: $0 [OPTION]... [TAG]...
16254
16255 -h, --help print this help, then exit
16256 -V, --version print version number and configuration settings, then exit
16257 -q, --quiet, --silent
16258 do not print progress messages
16259 -d, --debug don't remove temporary files
16260 --recheck update $as_me by reconfiguring in the same conditions
16261 --file=FILE[:TEMPLATE]
16262 instantiate the configuration file FILE
16263 --header=FILE[:TEMPLATE]
16264 instantiate the configuration header FILE
16265
16266 Configuration files:
16267 $config_files
16268
16269 Configuration headers:
16270 $config_headers
16271
16272 Configuration commands:
16273 $config_commands
16274
16275 Report bugs to the package provider."
16276
16277 _ACEOF
16278 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16279 ac_cs_version="\\
16280 config.status
16281 configured by $0, generated by GNU Autoconf 2.64,
16282 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16283
16284 Copyright (C) 2009 Free Software Foundation, Inc.
16285 This config.status script is free software; the Free Software Foundation
16286 gives unlimited permission to copy, distribute and modify it."
16287
16288 ac_pwd='$ac_pwd'
16289 srcdir='$srcdir'
16290 INSTALL='$INSTALL'
16291 MKDIR_P='$MKDIR_P'
16292 AWK='$AWK'
16293 test -n "\$AWK" || AWK=awk
16294 _ACEOF
16295
16296 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16297 # The default lists apply if the user does not specify any file.
16298 ac_need_defaults=:
16299 while test $# != 0
16300 do
16301 case $1 in
16302 --*=*)
16303 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16304 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16305 ac_shift=:
16306 ;;
16307 *)
16308 ac_option=$1
16309 ac_optarg=$2
16310 ac_shift=shift
16311 ;;
16312 esac
16313
16314 case $ac_option in
16315 # Handling of the options.
16316 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16317 ac_cs_recheck=: ;;
16318 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16319 $as_echo "$ac_cs_version"; exit ;;
16320 --debug | --debu | --deb | --de | --d | -d )
16321 debug=: ;;
16322 --file | --fil | --fi | --f )
16323 $ac_shift
16324 case $ac_optarg in
16325 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16326 esac
16327 as_fn_append CONFIG_FILES " '$ac_optarg'"
16328 ac_need_defaults=false;;
16329 --header | --heade | --head | --hea )
16330 $ac_shift
16331 case $ac_optarg in
16332 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16333 esac
16334 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16335 ac_need_defaults=false;;
16336 --he | --h)
16337 # Conflict between --help and --header
16338 as_fn_error "ambiguous option: \`$1'
16339 Try \`$0 --help' for more information.";;
16340 --help | --hel | -h )
16341 $as_echo "$ac_cs_usage"; exit ;;
16342 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16343 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16344 ac_cs_silent=: ;;
16345
16346 # This is an error.
16347 -*) as_fn_error "unrecognized option: \`$1'
16348 Try \`$0 --help' for more information." ;;
16349
16350 *) as_fn_append ac_config_targets " $1"
16351 ac_need_defaults=false ;;
16352
16353 esac
16354 shift
16355 done
16356
16357 ac_configure_extra_args=
16358
16359 if $ac_cs_silent; then
16360 exec 6>/dev/null
16361 ac_configure_extra_args="$ac_configure_extra_args --silent"
16362 fi
16363
16364 _ACEOF
16365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16366 if \$ac_cs_recheck; then
16367 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16368 shift
16369 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16370 CONFIG_SHELL='$SHELL'
16371 export CONFIG_SHELL
16372 exec "\$@"
16373 fi
16374
16375 _ACEOF
16376 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16377 exec 5>>config.log
16378 {
16379 echo
16380 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16381 ## Running $as_me. ##
16382 _ASBOX
16383 $as_echo "$ac_log"
16384 } >&5
16385
16386 _ACEOF
16387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16388 #
16389 # INIT-COMMANDS
16390 #
16391 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16392
16393 _ACEOF
16394
16395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16396
16397 # Handling of arguments.
16398 for ac_config_target in $ac_config_targets
16399 do
16400 case $ac_config_target in
16401 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16402 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16403 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16404 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
16405 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16406
16407 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16408 esac
16409 done
16410
16411
16412 # If the user did not use the arguments to specify the items to instantiate,
16413 # then the envvar interface is used. Set only those that are not.
16414 # We use the long form for the default assignment because of an extremely
16415 # bizarre bug on SunOS 4.1.3.
16416 if $ac_need_defaults; then
16417 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16418 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16419 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16420 fi
16421
16422 # Have a temporary directory for convenience. Make it in the build tree
16423 # simply because there is no reason against having it here, and in addition,
16424 # creating and moving files from /tmp can sometimes cause problems.
16425 # Hook for its removal unless debugging.
16426 # Note that there is a small window in which the directory will not be cleaned:
16427 # after its creation but before its name has been assigned to `$tmp'.
16428 $debug ||
16429 {
16430 tmp=
16431 trap 'exit_status=$?
16432 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16433 ' 0
16434 trap 'as_fn_exit 1' 1 2 13 15
16435 }
16436 # Create a (secure) tmp directory for tmp files.
16437
16438 {
16439 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16440 test -n "$tmp" && test -d "$tmp"
16441 } ||
16442 {
16443 tmp=./conf$$-$RANDOM
16444 (umask 077 && mkdir "$tmp")
16445 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16446
16447 # Set up the scripts for CONFIG_FILES section.
16448 # No need to generate them if there are no CONFIG_FILES.
16449 # This happens for instance with `./config.status config.h'.
16450 if test -n "$CONFIG_FILES"; then
16451
16452
16453 ac_cr=`echo X | tr X '\015'`
16454 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16455 # But we know of no other shell where ac_cr would be empty at this
16456 # point, so we can use a bashism as a fallback.
16457 if test "x$ac_cr" = x; then
16458 eval ac_cr=\$\'\\r\'
16459 fi
16460 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16461 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16462 ac_cs_awk_cr='\r'
16463 else
16464 ac_cs_awk_cr=$ac_cr
16465 fi
16466
16467 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16468 _ACEOF
16469
16470
16471 {
16472 echo "cat >conf$$subs.awk <<_ACEOF" &&
16473 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16474 echo "_ACEOF"
16475 } >conf$$subs.sh ||
16476 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16477 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16478 ac_delim='%!_!# '
16479 for ac_last_try in false false false false false :; do
16480 . ./conf$$subs.sh ||
16481 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16482
16483 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16484 if test $ac_delim_n = $ac_delim_num; then
16485 break
16486 elif $ac_last_try; then
16487 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16488 else
16489 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16490 fi
16491 done
16492 rm -f conf$$subs.sh
16493
16494 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16495 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16496 _ACEOF
16497 sed -n '
16498 h
16499 s/^/S["/; s/!.*/"]=/
16500 p
16501 g
16502 s/^[^!]*!//
16503 :repl
16504 t repl
16505 s/'"$ac_delim"'$//
16506 t delim
16507 :nl
16508 h
16509 s/\(.\{148\}\).*/\1/
16510 t more1
16511 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16512 p
16513 n
16514 b repl
16515 :more1
16516 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16517 p
16518 g
16519 s/.\{148\}//
16520 t nl
16521 :delim
16522 h
16523 s/\(.\{148\}\).*/\1/
16524 t more2
16525 s/["\\]/\\&/g; s/^/"/; s/$/"/
16526 p
16527 b
16528 :more2
16529 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16530 p
16531 g
16532 s/.\{148\}//
16533 t delim
16534 ' <conf$$subs.awk | sed '
16535 /^[^""]/{
16536 N
16537 s/\n//
16538 }
16539 ' >>$CONFIG_STATUS || ac_write_fail=1
16540 rm -f conf$$subs.awk
16541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16542 _ACAWK
16543 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16544 for (key in S) S_is_set[key] = 1
16545 FS = "\a"
16546
16547 }
16548 {
16549 line = $ 0
16550 nfields = split(line, field, "@")
16551 substed = 0
16552 len = length(field[1])
16553 for (i = 2; i < nfields; i++) {
16554 key = field[i]
16555 keylen = length(key)
16556 if (S_is_set[key]) {
16557 value = S[key]
16558 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16559 len += length(value) + length(field[++i])
16560 substed = 1
16561 } else
16562 len += 1 + keylen
16563 }
16564
16565 print line
16566 }
16567
16568 _ACAWK
16569 _ACEOF
16570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16571 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16572 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16573 else
16574 cat
16575 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16576 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16577 _ACEOF
16578
16579 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16580 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16581 # trailing colons and then remove the whole line if VPATH becomes empty
16582 # (actually we leave an empty line to preserve line numbers).
16583 if test "x$srcdir" = x.; then
16584 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16585 s/:*\$(srcdir):*/:/
16586 s/:*\${srcdir}:*/:/
16587 s/:*@srcdir@:*/:/
16588 s/^\([^=]*=[ ]*\):*/\1/
16589 s/:*$//
16590 s/^[^=]*=[ ]*$//
16591 }'
16592 fi
16593
16594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16595 fi # test -n "$CONFIG_FILES"
16596
16597 # Set up the scripts for CONFIG_HEADERS section.
16598 # No need to generate them if there are no CONFIG_HEADERS.
16599 # This happens for instance with `./config.status Makefile'.
16600 if test -n "$CONFIG_HEADERS"; then
16601 cat >"$tmp/defines.awk" <<\_ACAWK ||
16602 BEGIN {
16603 _ACEOF
16604
16605 # Transform confdefs.h into an awk script `defines.awk', embedded as
16606 # here-document in config.status, that substitutes the proper values into
16607 # config.h.in to produce config.h.
16608
16609 # Create a delimiter string that does not exist in confdefs.h, to ease
16610 # handling of long lines.
16611 ac_delim='%!_!# '
16612 for ac_last_try in false false :; do
16613 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16614 if test -z "$ac_t"; then
16615 break
16616 elif $ac_last_try; then
16617 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16618 else
16619 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16620 fi
16621 done
16622
16623 # For the awk script, D is an array of macro values keyed by name,
16624 # likewise P contains macro parameters if any. Preserve backslash
16625 # newline sequences.
16626
16627 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16628 sed -n '
16629 s/.\{148\}/&'"$ac_delim"'/g
16630 t rset
16631 :rset
16632 s/^[ ]*#[ ]*define[ ][ ]*/ /
16633 t def
16634 d
16635 :def
16636 s/\\$//
16637 t bsnl
16638 s/["\\]/\\&/g
16639 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16640 D["\1"]=" \3"/p
16641 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16642 d
16643 :bsnl
16644 s/["\\]/\\&/g
16645 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16646 D["\1"]=" \3\\\\\\n"\\/p
16647 t cont
16648 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16649 t cont
16650 d
16651 :cont
16652 n
16653 s/.\{148\}/&'"$ac_delim"'/g
16654 t clear
16655 :clear
16656 s/\\$//
16657 t bsnlc
16658 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16659 d
16660 :bsnlc
16661 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16662 b cont
16663 ' <confdefs.h | sed '
16664 s/'"$ac_delim"'/"\\\
16665 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16666
16667 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16668 for (key in D) D_is_set[key] = 1
16669 FS = "\a"
16670 }
16671 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16672 line = \$ 0
16673 split(line, arg, " ")
16674 if (arg[1] == "#") {
16675 defundef = arg[2]
16676 mac1 = arg[3]
16677 } else {
16678 defundef = substr(arg[1], 2)
16679 mac1 = arg[2]
16680 }
16681 split(mac1, mac2, "(") #)
16682 macro = mac2[1]
16683 prefix = substr(line, 1, index(line, defundef) - 1)
16684 if (D_is_set[macro]) {
16685 # Preserve the white space surrounding the "#".
16686 print prefix "define", macro P[macro] D[macro]
16687 next
16688 } else {
16689 # Replace #undef with comments. This is necessary, for example,
16690 # in the case of _POSIX_SOURCE, which is predefined and required
16691 # on some systems where configure will not decide to define it.
16692 if (defundef == "undef") {
16693 print "/*", prefix defundef, macro, "*/"
16694 next
16695 }
16696 }
16697 }
16698 { print }
16699 _ACAWK
16700 _ACEOF
16701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16702 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16703 fi # test -n "$CONFIG_HEADERS"
16704
16705
16706 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16707 shift
16708 for ac_tag
16709 do
16710 case $ac_tag in
16711 :[FHLC]) ac_mode=$ac_tag; continue;;
16712 esac
16713 case $ac_mode$ac_tag in
16714 :[FHL]*:*);;
16715 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16716 :[FH]-) ac_tag=-:-;;
16717 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16718 esac
16719 ac_save_IFS=$IFS
16720 IFS=:
16721 set x $ac_tag
16722 IFS=$ac_save_IFS
16723 shift
16724 ac_file=$1
16725 shift
16726
16727 case $ac_mode in
16728 :L) ac_source=$1;;
16729 :[FH])
16730 ac_file_inputs=
16731 for ac_f
16732 do
16733 case $ac_f in
16734 -) ac_f="$tmp/stdin";;
16735 *) # Look for the file first in the build tree, then in the source tree
16736 # (if the path is not absolute). The absolute path cannot be DOS-style,
16737 # because $ac_f cannot contain `:'.
16738 test -f "$ac_f" ||
16739 case $ac_f in
16740 [\\/$]*) false;;
16741 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16742 esac ||
16743 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16744 esac
16745 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16746 as_fn_append ac_file_inputs " '$ac_f'"
16747 done
16748
16749 # Let's still pretend it is `configure' which instantiates (i.e., don't
16750 # use $as_me), people would be surprised to read:
16751 # /* config.h. Generated by config.status. */
16752 configure_input='Generated from '`
16753 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16754 `' by configure.'
16755 if test x"$ac_file" != x-; then
16756 configure_input="$ac_file. $configure_input"
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16758 $as_echo "$as_me: creating $ac_file" >&6;}
16759 fi
16760 # Neutralize special characters interpreted by sed in replacement strings.
16761 case $configure_input in #(
16762 *\&* | *\|* | *\\* )
16763 ac_sed_conf_input=`$as_echo "$configure_input" |
16764 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16765 *) ac_sed_conf_input=$configure_input;;
16766 esac
16767
16768 case $ac_tag in
16769 *:-:* | *:-) cat >"$tmp/stdin" \
16770 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16771 esac
16772 ;;
16773 esac
16774
16775 ac_dir=`$as_dirname -- "$ac_file" ||
16776 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16777 X"$ac_file" : 'X\(//\)[^/]' \| \
16778 X"$ac_file" : 'X\(//\)$' \| \
16779 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16780 $as_echo X"$ac_file" |
16781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16782 s//\1/
16783 q
16784 }
16785 /^X\(\/\/\)[^/].*/{
16786 s//\1/
16787 q
16788 }
16789 /^X\(\/\/\)$/{
16790 s//\1/
16791 q
16792 }
16793 /^X\(\/\).*/{
16794 s//\1/
16795 q
16796 }
16797 s/.*/./; q'`
16798 as_dir="$ac_dir"; as_fn_mkdir_p
16799 ac_builddir=.
16800
16801 case "$ac_dir" in
16802 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16803 *)
16804 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16805 # A ".." for each directory in $ac_dir_suffix.
16806 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16807 case $ac_top_builddir_sub in
16808 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16809 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16810 esac ;;
16811 esac
16812 ac_abs_top_builddir=$ac_pwd
16813 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16814 # for backward compatibility:
16815 ac_top_builddir=$ac_top_build_prefix
16816
16817 case $srcdir in
16818 .) # We are building in place.
16819 ac_srcdir=.
16820 ac_top_srcdir=$ac_top_builddir_sub
16821 ac_abs_top_srcdir=$ac_pwd ;;
16822 [\\/]* | ?:[\\/]* ) # Absolute name.
16823 ac_srcdir=$srcdir$ac_dir_suffix;
16824 ac_top_srcdir=$srcdir
16825 ac_abs_top_srcdir=$srcdir ;;
16826 *) # Relative name.
16827 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16828 ac_top_srcdir=$ac_top_build_prefix$srcdir
16829 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16830 esac
16831 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16832
16833
16834 case $ac_mode in
16835 :F)
16836 #
16837 # CONFIG_FILE
16838 #
16839
16840 case $INSTALL in
16841 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16842 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16843 esac
16844 ac_MKDIR_P=$MKDIR_P
16845 case $MKDIR_P in
16846 [\\/$]* | ?:[\\/]* ) ;;
16847 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16848 esac
16849 _ACEOF
16850
16851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16852 # If the template does not know about datarootdir, expand it.
16853 # FIXME: This hack should be removed a few years after 2.60.
16854 ac_datarootdir_hack=; ac_datarootdir_seen=
16855 ac_sed_dataroot='
16856 /datarootdir/ {
16857 p
16858 q
16859 }
16860 /@datadir@/p
16861 /@docdir@/p
16862 /@infodir@/p
16863 /@localedir@/p
16864 /@mandir@/p'
16865 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16866 *datarootdir*) ac_datarootdir_seen=yes;;
16867 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16869 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16870 _ACEOF
16871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16872 ac_datarootdir_hack='
16873 s&@datadir@&$datadir&g
16874 s&@docdir@&$docdir&g
16875 s&@infodir@&$infodir&g
16876 s&@localedir@&$localedir&g
16877 s&@mandir@&$mandir&g
16878 s&\\\${datarootdir}&$datarootdir&g' ;;
16879 esac
16880 _ACEOF
16881
16882 # Neutralize VPATH when `$srcdir' = `.'.
16883 # Shell code in configure.ac might set extrasub.
16884 # FIXME: do we really want to maintain this feature?
16885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16886 ac_sed_extra="$ac_vpsub
16887 $extrasub
16888 _ACEOF
16889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16890 :t
16891 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16892 s|@configure_input@|$ac_sed_conf_input|;t t
16893 s&@top_builddir@&$ac_top_builddir_sub&;t t
16894 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16895 s&@srcdir@&$ac_srcdir&;t t
16896 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16897 s&@top_srcdir@&$ac_top_srcdir&;t t
16898 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16899 s&@builddir@&$ac_builddir&;t t
16900 s&@abs_builddir@&$ac_abs_builddir&;t t
16901 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16902 s&@INSTALL@&$ac_INSTALL&;t t
16903 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16904 $ac_datarootdir_hack
16905 "
16906 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16907 || as_fn_error "could not create $ac_file" "$LINENO" 5
16908
16909 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16910 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16911 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16913 which seems to be undefined. Please make sure it is defined." >&5
16914 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16915 which seems to be undefined. Please make sure it is defined." >&2;}
16916
16917 rm -f "$tmp/stdin"
16918 case $ac_file in
16919 -) cat "$tmp/out" && rm -f "$tmp/out";;
16920 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16921 esac \
16922 || as_fn_error "could not create $ac_file" "$LINENO" 5
16923 ;;
16924 :H)
16925 #
16926 # CONFIG_HEADER
16927 #
16928 if test x"$ac_file" != x-; then
16929 {
16930 $as_echo "/* $configure_input */" \
16931 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16932 } >"$tmp/config.h" \
16933 || as_fn_error "could not create $ac_file" "$LINENO" 5
16934 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16936 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16937 else
16938 rm -f "$ac_file"
16939 mv "$tmp/config.h" "$ac_file" \
16940 || as_fn_error "could not create $ac_file" "$LINENO" 5
16941 fi
16942 else
16943 $as_echo "/* $configure_input */" \
16944 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16945 || as_fn_error "could not create -" "$LINENO" 5
16946 fi
16947 # Compute "$ac_file"'s index in $config_headers.
16948 _am_arg="$ac_file"
16949 _am_stamp_count=1
16950 for _am_header in $config_headers :; do
16951 case $_am_header in
16952 $_am_arg | $_am_arg:* )
16953 break ;;
16954 * )
16955 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16956 esac
16957 done
16958 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16959 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16960 X"$_am_arg" : 'X\(//\)[^/]' \| \
16961 X"$_am_arg" : 'X\(//\)$' \| \
16962 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16963 $as_echo X"$_am_arg" |
16964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16965 s//\1/
16966 q
16967 }
16968 /^X\(\/\/\)[^/].*/{
16969 s//\1/
16970 q
16971 }
16972 /^X\(\/\/\)$/{
16973 s//\1/
16974 q
16975 }
16976 /^X\(\/\).*/{
16977 s//\1/
16978 q
16979 }
16980 s/.*/./; q'`/stamp-h$_am_stamp_count
16981 ;;
16982
16983 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16984 $as_echo "$as_me: executing $ac_file commands" >&6;}
16985 ;;
16986 esac
16987
16988
16989 case $ac_file$ac_mode in
16990 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16991 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16992 # are listed without --file. Let's play safe and only enable the eval
16993 # if we detect the quoting.
16994 case $CONFIG_FILES in
16995 *\'*) eval set x "$CONFIG_FILES" ;;
16996 *) set x $CONFIG_FILES ;;
16997 esac
16998 shift
16999 for mf
17000 do
17001 # Strip MF so we end up with the name of the file.
17002 mf=`echo "$mf" | sed -e 's/:.*$//'`
17003 # Check whether this is an Automake generated Makefile or not.
17004 # We used to match only the files named `Makefile.in', but
17005 # some people rename them; so instead we look at the file content.
17006 # Grep'ing the first line is not enough: some people post-process
17007 # each Makefile.in and add a new line on top of each file to say so.
17008 # Grep'ing the whole file is not good either: AIX grep has a line
17009 # limit of 2048, but all sed's we know have understand at least 4000.
17010 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17011 dirpart=`$as_dirname -- "$mf" ||
17012 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17013 X"$mf" : 'X\(//\)[^/]' \| \
17014 X"$mf" : 'X\(//\)$' \| \
17015 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17016 $as_echo X"$mf" |
17017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17018 s//\1/
17019 q
17020 }
17021 /^X\(\/\/\)[^/].*/{
17022 s//\1/
17023 q
17024 }
17025 /^X\(\/\/\)$/{
17026 s//\1/
17027 q
17028 }
17029 /^X\(\/\).*/{
17030 s//\1/
17031 q
17032 }
17033 s/.*/./; q'`
17034 else
17035 continue
17036 fi
17037 # Extract the definition of DEPDIR, am__include, and am__quote
17038 # from the Makefile without running `make'.
17039 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17040 test -z "$DEPDIR" && continue
17041 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17042 test -z "am__include" && continue
17043 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17044 # When using ansi2knr, U may be empty or an underscore; expand it
17045 U=`sed -n 's/^U = //p' < "$mf"`
17046 # Find all dependency output files, they are included files with
17047 # $(DEPDIR) in their names. We invoke sed twice because it is the
17048 # simplest approach to changing $(DEPDIR) to its actual value in the
17049 # expansion.
17050 for file in `sed -n "
17051 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17052 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17053 # Make sure the directory exists.
17054 test -f "$dirpart/$file" && continue
17055 fdir=`$as_dirname -- "$file" ||
17056 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17057 X"$file" : 'X\(//\)[^/]' \| \
17058 X"$file" : 'X\(//\)$' \| \
17059 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17060 $as_echo X"$file" |
17061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17062 s//\1/
17063 q
17064 }
17065 /^X\(\/\/\)[^/].*/{
17066 s//\1/
17067 q
17068 }
17069 /^X\(\/\/\)$/{
17070 s//\1/
17071 q
17072 }
17073 /^X\(\/\).*/{
17074 s//\1/
17075 q
17076 }
17077 s/.*/./; q'`
17078 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17079 # echo "creating $dirpart/$file"
17080 echo '# dummy' > "$dirpart/$file"
17081 done
17082 done
17083 }
17084 ;;
17085 "default":C)
17086 case x$CONFIG_HEADERS in
17087 xconfig.h:config.in)
17088 echo > stamp-h ;;
17089 esac
17090 ;;
17091
17092 esac
17093 done # for ac_tag
17094
17095
17096 as_fn_exit 0
17097 _ACEOF
17098 ac_clean_files=$ac_clean_files_save
17099
17100 test $ac_write_fail = 0 ||
17101 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17102
17103
17104 # configure is writing to config.log, and then calls config.status.
17105 # config.status does its own redirection, appending to config.log.
17106 # Unfortunately, on DOS this fails, as config.log is still kept open
17107 # by configure, so config.status won't be able to write to it; its
17108 # output is simply discarded. So we exec the FD to /dev/null,
17109 # effectively closing config.log, so it can be properly (re)opened and
17110 # appended to by config.status. When coming back to configure, we
17111 # need to make the FD available again.
17112 if test "$no_create" != yes; then
17113 ac_cs_success=:
17114 ac_config_status_args=
17115 test "$silent" = yes &&
17116 ac_config_status_args="$ac_config_status_args --quiet"
17117 exec 5>/dev/null
17118 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17119 exec 5>>config.log
17120 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17121 # would make configure fail if this is the last instruction.
17122 $ac_cs_success || as_fn_exit $?
17123 fi
17124 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17126 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17127 fi
17128
17129
17130 exit 0