Make sure terminal settings are restored before exiting
[deliverable/binutils-gdb.git] / gdb / gnulib / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
177 fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198 fi
199 fi
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233 fi
234 exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252 { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261 return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332 else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349 else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459 *)
460 ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484 else
485 as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="import/memmem.c"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
557 #include <stdio.h>
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
560 #endif
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
563 #endif
564 #ifdef STDC_HEADERS
565 # include <stdlib.h>
566 # include <stddef.h>
567 #else
568 # ifdef HAVE_STDLIB_H
569 # include <stdlib.h>
570 # endif
571 #endif
572 #ifdef HAVE_STRING_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574 # include <memory.h>
575 # endif
576 # include <string.h>
577 #endif
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
580 #endif
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
583 #endif
584 #ifdef HAVE_STDINT_H
585 # include <stdint.h>
586 #endif
587 #ifdef HAVE_UNISTD_H
588 # include <unistd.h>
589 #endif"
590
591 ac_func_list=
592 ac_header_list=
593 gl_fnmatch_required=POSIX
594 ac_subst_vars='am__EXEEXT_FALSE
595 am__EXEEXT_TRUE
596 gltests_LTLIBOBJS
597 gltests_LIBOBJS
598 gl_LTLIBOBJS
599 gl_LIBOBJS
600 LTLIBOBJS
601 LIBOBJS
602 LN_S
603 am__fastdepCC_FALSE
604 am__fastdepCC_TRUE
605 CCDEPMODE
606 AMDEPBACKSLASH
607 AMDEP_FALSE
608 AMDEP_TRUE
609 am__quote
610 am__include
611 DEPDIR
612 am__untar
613 am__tar
614 AMTAR
615 am__leading_dot
616 SET_MAKE
617 AWK
618 mkdir_p
619 INSTALL_STRIP_PROGRAM
620 STRIP
621 install_sh
622 MAKEINFO
623 AUTOHEADER
624 AUTOMAKE
625 AUTOCONF
626 ACLOCAL
627 VERSION
628 PACKAGE
629 CYGPATH_W
630 am__isrc
631 INSTALL_DATA
632 INSTALL_SCRIPT
633 INSTALL_PROGRAM
634 LIBGNU_LTLIBDEPS
635 LIBGNU_LIBDEPS
636 gltests_WITNESS
637 REPLACE_TOWLOWER
638 REPLACE_ISWCNTRL
639 HAVE_WCTYPE_H
640 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
641 NEXT_WCTYPE_H
642 HAVE_ISWCNTRL
643 REPLACE_ISWBLANK
644 HAVE_WCTRANS_T
645 HAVE_WCTYPE_T
646 HAVE_ISWBLANK
647 GNULIB_TOWCTRANS
648 GNULIB_WCTRANS
649 GNULIB_ISWCTYPE
650 GNULIB_WCTYPE
651 GNULIB_ISWBLANK
652 HAVE_WINT_T
653 HAVE_FEATURES_H
654 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
655 NEXT_WCHAR_H
656 HAVE_UNISTD_H
657 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
658 NEXT_UNISTD_H
659 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
660 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
661 TIME_H_DEFINES_STRUCT_TIMESPEC
662 NEXT_AS_FIRST_DIRECTIVE_TIME_H
663 NEXT_TIME_H
664 REPLACE_TIMEGM
665 REPLACE_NANOSLEEP
666 REPLACE_MKTIME
667 REPLACE_LOCALTIME_R
668 HAVE_TIMEGM
669 HAVE_STRPTIME
670 HAVE_NANOSLEEP
671 HAVE_DECL_LOCALTIME_R
672 GNULIB_TIME_R
673 GNULIB_TIMEGM
674 GNULIB_STRPTIME
675 GNULIB_NANOSLEEP
676 GNULIB_MKTIME
677 WINDOWS_64_BIT_OFF_T
678 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
679 NEXT_SYS_TYPES_H
680 MKDIR_P
681 WINDOWS_64_BIT_ST_SIZE
682 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
683 NEXT_SYS_STAT_H
684 NEXT_AS_FIRST_DIRECTIVE_STRING_H
685 NEXT_STRING_H
686 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
687 NEXT_STDLIB_H
688 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
689 NEXT_STDIO_H
690 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
691 NEXT_STDDEF_H
692 GL_GENERATE_STDDEF_H_FALSE
693 GL_GENERATE_STDDEF_H_TRUE
694 STDDEF_H
695 HAVE_WCHAR_T
696 REPLACE_NULL
697 HAVE__BOOL
698 GL_GENERATE_STDBOOL_H_FALSE
699 GL_GENERATE_STDBOOL_H_TRUE
700 STDBOOL_H
701 REPLACE_VSPRINTF
702 REPLACE_VSNPRINTF
703 REPLACE_VPRINTF
704 REPLACE_VFPRINTF
705 REPLACE_VDPRINTF
706 REPLACE_VASPRINTF
707 REPLACE_TMPFILE
708 REPLACE_STDIO_WRITE_FUNCS
709 REPLACE_STDIO_READ_FUNCS
710 REPLACE_SPRINTF
711 REPLACE_SNPRINTF
712 REPLACE_RENAMEAT
713 REPLACE_RENAME
714 REPLACE_REMOVE
715 REPLACE_PRINTF
716 REPLACE_POPEN
717 REPLACE_PERROR
718 REPLACE_OBSTACK_PRINTF
719 REPLACE_GETLINE
720 REPLACE_GETDELIM
721 REPLACE_FTELLO
722 REPLACE_FTELL
723 REPLACE_FSEEKO
724 REPLACE_FSEEK
725 REPLACE_FREOPEN
726 REPLACE_FPURGE
727 REPLACE_FPRINTF
728 REPLACE_FOPEN
729 REPLACE_FFLUSH
730 REPLACE_FDOPEN
731 REPLACE_FCLOSE
732 REPLACE_DPRINTF
733 HAVE_VDPRINTF
734 HAVE_VASPRINTF
735 HAVE_RENAMEAT
736 HAVE_POPEN
737 HAVE_PCLOSE
738 HAVE_FTELLO
739 HAVE_FSEEKO
740 HAVE_DPRINTF
741 HAVE_DECL_VSNPRINTF
742 HAVE_DECL_SNPRINTF
743 HAVE_DECL_OBSTACK_PRINTF
744 HAVE_DECL_GETLINE
745 HAVE_DECL_GETDELIM
746 HAVE_DECL_FTELLO
747 HAVE_DECL_FSEEKO
748 HAVE_DECL_FPURGE
749 GNULIB_VSPRINTF_POSIX
750 GNULIB_VSNPRINTF
751 GNULIB_VPRINTF_POSIX
752 GNULIB_VPRINTF
753 GNULIB_VFPRINTF_POSIX
754 GNULIB_VFPRINTF
755 GNULIB_VDPRINTF
756 GNULIB_VSCANF
757 GNULIB_VFSCANF
758 GNULIB_VASPRINTF
759 GNULIB_TMPFILE
760 GNULIB_STDIO_H_SIGPIPE
761 GNULIB_STDIO_H_NONBLOCKING
762 GNULIB_SPRINTF_POSIX
763 GNULIB_SNPRINTF
764 GNULIB_SCANF
765 GNULIB_RENAMEAT
766 GNULIB_RENAME
767 GNULIB_REMOVE
768 GNULIB_PUTS
769 GNULIB_PUTCHAR
770 GNULIB_PUTC
771 GNULIB_PRINTF_POSIX
772 GNULIB_PRINTF
773 GNULIB_POPEN
774 GNULIB_PERROR
775 GNULIB_PCLOSE
776 GNULIB_OBSTACK_PRINTF_POSIX
777 GNULIB_OBSTACK_PRINTF
778 GNULIB_GETLINE
779 GNULIB_GETDELIM
780 GNULIB_GETCHAR
781 GNULIB_GETC
782 GNULIB_FWRITE
783 GNULIB_FTELLO
784 GNULIB_FTELL
785 GNULIB_FSEEKO
786 GNULIB_FSEEK
787 GNULIB_FSCANF
788 GNULIB_FREOPEN
789 GNULIB_FREAD
790 GNULIB_FPUTS
791 GNULIB_FPUTC
792 GNULIB_FPURGE
793 GNULIB_FPRINTF_POSIX
794 GNULIB_FPRINTF
795 GNULIB_FOPEN
796 GNULIB_FGETS
797 GNULIB_FGETC
798 GNULIB_FFLUSH
799 GNULIB_FDOPEN
800 GNULIB_FCLOSE
801 GNULIB_DPRINTF
802 UNDEFINE_STRTOK_R
803 REPLACE_STRTOK_R
804 REPLACE_STRSIGNAL
805 REPLACE_STRNLEN
806 REPLACE_STRNDUP
807 REPLACE_STRNCAT
808 REPLACE_STRERROR_R
809 REPLACE_STRERROR
810 REPLACE_STRCHRNUL
811 REPLACE_STRCASESTR
812 REPLACE_STRSTR
813 REPLACE_STRDUP
814 REPLACE_STPNCPY
815 REPLACE_MEMMEM
816 REPLACE_MEMCHR
817 HAVE_STRVERSCMP
818 HAVE_DECL_STRSIGNAL
819 HAVE_DECL_STRERROR_R
820 HAVE_DECL_STRTOK_R
821 HAVE_STRCASESTR
822 HAVE_STRSEP
823 HAVE_STRPBRK
824 HAVE_DECL_STRNLEN
825 HAVE_DECL_STRNDUP
826 HAVE_DECL_STRDUP
827 HAVE_STRCHRNUL
828 HAVE_STPNCPY
829 HAVE_STPCPY
830 HAVE_RAWMEMCHR
831 HAVE_DECL_MEMRCHR
832 HAVE_MEMPCPY
833 HAVE_DECL_MEMMEM
834 HAVE_MEMCHR
835 HAVE_FFSLL
836 HAVE_FFSL
837 HAVE_MBSLEN
838 GNULIB_STRVERSCMP
839 GNULIB_STRSIGNAL
840 GNULIB_STRERROR_R
841 GNULIB_STRERROR
842 GNULIB_MBSTOK_R
843 GNULIB_MBSSEP
844 GNULIB_MBSSPN
845 GNULIB_MBSPBRK
846 GNULIB_MBSCSPN
847 GNULIB_MBSCASESTR
848 GNULIB_MBSPCASECMP
849 GNULIB_MBSNCASECMP
850 GNULIB_MBSCASECMP
851 GNULIB_MBSSTR
852 GNULIB_MBSRCHR
853 GNULIB_MBSCHR
854 GNULIB_MBSNLEN
855 GNULIB_MBSLEN
856 GNULIB_STRTOK_R
857 GNULIB_STRCASESTR
858 GNULIB_STRSTR
859 GNULIB_STRSEP
860 GNULIB_STRPBRK
861 GNULIB_STRNLEN
862 GNULIB_STRNDUP
863 GNULIB_STRNCAT
864 GNULIB_STRDUP
865 GNULIB_STRCHRNUL
866 GNULIB_STPNCPY
867 GNULIB_STPCPY
868 GNULIB_RAWMEMCHR
869 GNULIB_MEMRCHR
870 GNULIB_MEMPCPY
871 GNULIB_MEMMEM
872 GNULIB_MEMCHR
873 GNULIB_FFSLL
874 GNULIB_FFSL
875 LOCALE_FR
876 LOCALE_FR_UTF8
877 LOCALE_ZH_CN
878 LOCALE_JA
879 REPLACE_WCSWIDTH
880 REPLACE_WCWIDTH
881 REPLACE_WCSNRTOMBS
882 REPLACE_WCSRTOMBS
883 REPLACE_WCRTOMB
884 REPLACE_MBSNRTOWCS
885 REPLACE_MBSRTOWCS
886 REPLACE_MBRLEN
887 REPLACE_MBRTOWC
888 REPLACE_MBSINIT
889 REPLACE_WCTOB
890 REPLACE_BTOWC
891 REPLACE_MBSTATE_T
892 HAVE_DECL_WCWIDTH
893 HAVE_DECL_WCTOB
894 HAVE_WCSWIDTH
895 HAVE_WCSTOK
896 HAVE_WCSSTR
897 HAVE_WCSPBRK
898 HAVE_WCSSPN
899 HAVE_WCSCSPN
900 HAVE_WCSRCHR
901 HAVE_WCSCHR
902 HAVE_WCSDUP
903 HAVE_WCSXFRM
904 HAVE_WCSCOLL
905 HAVE_WCSNCASECMP
906 HAVE_WCSCASECMP
907 HAVE_WCSNCMP
908 HAVE_WCSCMP
909 HAVE_WCSNCAT
910 HAVE_WCSCAT
911 HAVE_WCPNCPY
912 HAVE_WCSNCPY
913 HAVE_WCPCPY
914 HAVE_WCSCPY
915 HAVE_WCSNLEN
916 HAVE_WCSLEN
917 HAVE_WMEMSET
918 HAVE_WMEMMOVE
919 HAVE_WMEMCPY
920 HAVE_WMEMCMP
921 HAVE_WMEMCHR
922 HAVE_WCSNRTOMBS
923 HAVE_WCSRTOMBS
924 HAVE_WCRTOMB
925 HAVE_MBSNRTOWCS
926 HAVE_MBSRTOWCS
927 HAVE_MBRLEN
928 HAVE_MBRTOWC
929 HAVE_MBSINIT
930 HAVE_BTOWC
931 GNULIB_WCSWIDTH
932 GNULIB_WCSTOK
933 GNULIB_WCSSTR
934 GNULIB_WCSPBRK
935 GNULIB_WCSSPN
936 GNULIB_WCSCSPN
937 GNULIB_WCSRCHR
938 GNULIB_WCSCHR
939 GNULIB_WCSDUP
940 GNULIB_WCSXFRM
941 GNULIB_WCSCOLL
942 GNULIB_WCSNCASECMP
943 GNULIB_WCSCASECMP
944 GNULIB_WCSNCMP
945 GNULIB_WCSCMP
946 GNULIB_WCSNCAT
947 GNULIB_WCSCAT
948 GNULIB_WCPNCPY
949 GNULIB_WCSNCPY
950 GNULIB_WCPCPY
951 GNULIB_WCSCPY
952 GNULIB_WCSNLEN
953 GNULIB_WCSLEN
954 GNULIB_WMEMSET
955 GNULIB_WMEMMOVE
956 GNULIB_WMEMCPY
957 GNULIB_WMEMCMP
958 GNULIB_WMEMCHR
959 GNULIB_WCWIDTH
960 GNULIB_WCSNRTOMBS
961 GNULIB_WCSRTOMBS
962 GNULIB_WCRTOMB
963 GNULIB_MBSNRTOWCS
964 GNULIB_MBSRTOWCS
965 GNULIB_MBRLEN
966 GNULIB_MBRTOWC
967 GNULIB_MBSINIT
968 GNULIB_WCTOB
969 GNULIB_BTOWC
970 NEXT_AS_FIRST_DIRECTIVE_MATH_H
971 NEXT_MATH_H
972 REPLACE_UTIMENSAT
973 REPLACE_STAT
974 REPLACE_MKNOD
975 REPLACE_MKFIFO
976 REPLACE_MKDIR
977 REPLACE_LSTAT
978 REPLACE_FUTIMENS
979 REPLACE_FSTATAT
980 REPLACE_FSTAT
981 HAVE_UTIMENSAT
982 HAVE_MKNODAT
983 HAVE_MKNOD
984 HAVE_MKFIFOAT
985 HAVE_MKFIFO
986 HAVE_MKDIRAT
987 HAVE_LSTAT
988 HAVE_LCHMOD
989 HAVE_FUTIMENS
990 HAVE_FSTATAT
991 HAVE_FCHMODAT
992 GNULIB_UTIMENSAT
993 GNULIB_STAT
994 GNULIB_MKNODAT
995 GNULIB_MKNOD
996 GNULIB_MKFIFOAT
997 GNULIB_MKFIFO
998 GNULIB_MKDIRAT
999 GNULIB_LSTAT
1000 GNULIB_LCHMOD
1001 GNULIB_FUTIMENS
1002 GNULIB_FSTATAT
1003 GNULIB_FSTAT
1004 GNULIB_FCHMODAT
1005 LOCALCHARSET_TESTS_ENVIRONMENT
1006 GLIBC21
1007 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1008 NEXT_INTTYPES_H
1009 UINT64_MAX_EQ_ULONG_MAX
1010 UINT32_MAX_LT_UINTMAX_MAX
1011 PRIPTR_PREFIX
1012 PRI_MACROS_BROKEN
1013 INT64_MAX_EQ_LONG_MAX
1014 INT32_MAX_LT_INTMAX_MAX
1015 REPLACE_STRTOIMAX
1016 HAVE_DECL_STRTOUMAX
1017 HAVE_DECL_STRTOIMAX
1018 HAVE_DECL_IMAXDIV
1019 HAVE_DECL_IMAXABS
1020 GNULIB_STRTOUMAX
1021 GNULIB_STRTOIMAX
1022 GNULIB_IMAXDIV
1023 GNULIB_IMAXABS
1024 GL_GENERATE_STDINT_H_FALSE
1025 GL_GENERATE_STDINT_H_TRUE
1026 STDINT_H
1027 WINT_T_SUFFIX
1028 WCHAR_T_SUFFIX
1029 SIG_ATOMIC_T_SUFFIX
1030 SIZE_T_SUFFIX
1031 PTRDIFF_T_SUFFIX
1032 HAVE_SIGNED_WINT_T
1033 HAVE_SIGNED_WCHAR_T
1034 HAVE_SIGNED_SIG_ATOMIC_T
1035 BITSIZEOF_WINT_T
1036 BITSIZEOF_WCHAR_T
1037 BITSIZEOF_SIG_ATOMIC_T
1038 BITSIZEOF_SIZE_T
1039 BITSIZEOF_PTRDIFF_T
1040 APPLE_UNIVERSAL_BUILD
1041 HAVE_SYS_BITYPES_H
1042 HAVE_SYS_INTTYPES_H
1043 HAVE_STDINT_H
1044 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1045 NEXT_STDINT_H
1046 HAVE_SYS_TYPES_H
1047 HAVE_INTTYPES_H
1048 HAVE_WCHAR_H
1049 HAVE_UNSIGNED_LONG_LONG_INT
1050 HAVE_LONG_LONG_INT
1051 FREXPL_LIBM
1052 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1053 FREXP_LIBM
1054 REPLACE_TRUNCL
1055 REPLACE_TRUNCF
1056 REPLACE_TRUNC
1057 REPLACE_SQRTL
1058 REPLACE_SIGNBIT_USING_GCC
1059 REPLACE_SIGNBIT
1060 REPLACE_ROUNDL
1061 REPLACE_ROUNDF
1062 REPLACE_ROUND
1063 REPLACE_REMAINDERL
1064 REPLACE_REMAINDERF
1065 REPLACE_REMAINDER
1066 REPLACE_NAN
1067 REPLACE_MODFL
1068 REPLACE_MODFF
1069 REPLACE_MODF
1070 REPLACE_LOGBL
1071 REPLACE_LOGBF
1072 REPLACE_LOGB
1073 REPLACE_LOG2L
1074 REPLACE_LOG2F
1075 REPLACE_LOG2
1076 REPLACE_LOG1PL
1077 REPLACE_LOG1PF
1078 REPLACE_LOG1P
1079 REPLACE_LOG10L
1080 REPLACE_LOG10F
1081 REPLACE_LOG10
1082 REPLACE_LOGL
1083 REPLACE_LOGF
1084 REPLACE_LOG
1085 REPLACE_LDEXPL
1086 REPLACE_ISNAN
1087 REPLACE_ISINF
1088 REPLACE_ISFINITE
1089 REPLACE_ILOGBF
1090 REPLACE_ILOGB
1091 REPLACE_HYPOTL
1092 REPLACE_HYPOTF
1093 REPLACE_HYPOT
1094 REPLACE_HUGE_VAL
1095 REPLACE_FREXPL
1096 REPLACE_FREXP
1097 REPLACE_FREXPF
1098 REPLACE_FMODL
1099 REPLACE_FMODF
1100 REPLACE_FMOD
1101 REPLACE_FMAL
1102 REPLACE_FMAF
1103 REPLACE_FMA
1104 REPLACE_FLOORL
1105 REPLACE_FLOORF
1106 REPLACE_FLOOR
1107 REPLACE_FABSL
1108 REPLACE_EXP2L
1109 REPLACE_EXP2
1110 REPLACE_EXPM1F
1111 REPLACE_EXPM1
1112 REPLACE_CEILL
1113 REPLACE_CEILF
1114 REPLACE_CEIL
1115 REPLACE_CBRTL
1116 REPLACE_CBRTF
1117 HAVE_DECL_TRUNCL
1118 HAVE_DECL_TRUNCF
1119 HAVE_DECL_TRUNC
1120 HAVE_DECL_TANL
1121 HAVE_DECL_SQRTL
1122 HAVE_DECL_SINL
1123 HAVE_DECL_ROUNDL
1124 HAVE_DECL_ROUNDF
1125 HAVE_DECL_ROUND
1126 HAVE_DECL_RINTF
1127 HAVE_DECL_REMAINDERL
1128 HAVE_DECL_REMAINDER
1129 HAVE_DECL_LOGB
1130 HAVE_DECL_LOG2L
1131 HAVE_DECL_LOG2F
1132 HAVE_DECL_LOG2
1133 HAVE_DECL_LOG10L
1134 HAVE_DECL_LOGL
1135 HAVE_DECL_LDEXPL
1136 HAVE_DECL_FREXPL
1137 HAVE_DECL_FLOORL
1138 HAVE_DECL_FLOORF
1139 HAVE_DECL_EXPM1L
1140 HAVE_DECL_EXP2L
1141 HAVE_DECL_EXP2F
1142 HAVE_DECL_EXP2
1143 HAVE_DECL_EXPL
1144 HAVE_DECL_COSL
1145 HAVE_DECL_COPYSIGNF
1146 HAVE_DECL_CEILL
1147 HAVE_DECL_CEILF
1148 HAVE_DECL_CBRTL
1149 HAVE_DECL_CBRTF
1150 HAVE_DECL_ATANL
1151 HAVE_DECL_ASINL
1152 HAVE_DECL_ACOSL
1153 HAVE_TANHF
1154 HAVE_TANL
1155 HAVE_TANF
1156 HAVE_SQRTL
1157 HAVE_SQRTF
1158 HAVE_SINHF
1159 HAVE_SINL
1160 HAVE_SINF
1161 HAVE_RINTL
1162 HAVE_RINT
1163 HAVE_REMAINDERF
1164 HAVE_REMAINDER
1165 HAVE_POWF
1166 HAVE_MODFL
1167 HAVE_MODFF
1168 HAVE_LOGBL
1169 HAVE_LOGBF
1170 HAVE_LOG1PL
1171 HAVE_LOG1PF
1172 HAVE_LOG1P
1173 HAVE_LOG10L
1174 HAVE_LOG10F
1175 HAVE_LOGL
1176 HAVE_LOGF
1177 HAVE_LDEXPF
1178 HAVE_ISNANL
1179 HAVE_ISNAND
1180 HAVE_ISNANF
1181 HAVE_ILOGBL
1182 HAVE_ILOGBF
1183 HAVE_ILOGB
1184 HAVE_HYPOTL
1185 HAVE_HYPOTF
1186 HAVE_FREXPF
1187 HAVE_FMODL
1188 HAVE_FMODF
1189 HAVE_FMAL
1190 HAVE_FMAF
1191 HAVE_FMA
1192 HAVE_FABSL
1193 HAVE_FABSF
1194 HAVE_EXPM1F
1195 HAVE_EXPM1
1196 HAVE_EXPL
1197 HAVE_EXPF
1198 HAVE_COSHF
1199 HAVE_COSL
1200 HAVE_COSF
1201 HAVE_COPYSIGNL
1202 HAVE_COPYSIGN
1203 HAVE_CBRTL
1204 HAVE_CBRTF
1205 HAVE_CBRT
1206 HAVE_ATAN2F
1207 HAVE_ATANL
1208 HAVE_ATANF
1209 HAVE_ASINL
1210 HAVE_ASINF
1211 HAVE_ACOSL
1212 HAVE_ACOSF
1213 GNULIB_TRUNCL
1214 GNULIB_TRUNCF
1215 GNULIB_TRUNC
1216 GNULIB_TANHF
1217 GNULIB_TANL
1218 GNULIB_TANF
1219 GNULIB_SQRTL
1220 GNULIB_SQRTF
1221 GNULIB_SINHF
1222 GNULIB_SINL
1223 GNULIB_SINF
1224 GNULIB_SIGNBIT
1225 GNULIB_ROUNDL
1226 GNULIB_ROUNDF
1227 GNULIB_ROUND
1228 GNULIB_RINTL
1229 GNULIB_RINTF
1230 GNULIB_RINT
1231 GNULIB_REMAINDERL
1232 GNULIB_REMAINDERF
1233 GNULIB_REMAINDER
1234 GNULIB_POWF
1235 GNULIB_MODFL
1236 GNULIB_MODFF
1237 GNULIB_MODF
1238 GNULIB_LOGBL
1239 GNULIB_LOGBF
1240 GNULIB_LOGB
1241 GNULIB_LOG2L
1242 GNULIB_LOG2F
1243 GNULIB_LOG2
1244 GNULIB_LOG1PL
1245 GNULIB_LOG1PF
1246 GNULIB_LOG1P
1247 GNULIB_LOG10L
1248 GNULIB_LOG10F
1249 GNULIB_LOG10
1250 GNULIB_LOGL
1251 GNULIB_LOGF
1252 GNULIB_LOG
1253 GNULIB_LDEXPL
1254 GNULIB_LDEXPF
1255 GNULIB_ISNANL
1256 GNULIB_ISNAND
1257 GNULIB_ISNANF
1258 GNULIB_ISNAN
1259 GNULIB_ISINF
1260 GNULIB_ISFINITE
1261 GNULIB_ILOGBL
1262 GNULIB_ILOGBF
1263 GNULIB_ILOGB
1264 GNULIB_HYPOTL
1265 GNULIB_HYPOTF
1266 GNULIB_HYPOT
1267 GNULIB_FREXPL
1268 GNULIB_FREXP
1269 GNULIB_FREXPF
1270 GNULIB_FMODL
1271 GNULIB_FMODF
1272 GNULIB_FMOD
1273 GNULIB_FMAL
1274 GNULIB_FMAF
1275 GNULIB_FMA
1276 GNULIB_FLOORL
1277 GNULIB_FLOORF
1278 GNULIB_FLOOR
1279 GNULIB_FABSL
1280 GNULIB_FABSF
1281 GNULIB_EXPM1L
1282 GNULIB_EXPM1F
1283 GNULIB_EXPM1
1284 GNULIB_EXP2L
1285 GNULIB_EXP2F
1286 GNULIB_EXP2
1287 GNULIB_EXPL
1288 GNULIB_EXPF
1289 GNULIB_COSHF
1290 GNULIB_COSL
1291 GNULIB_COSF
1292 GNULIB_COPYSIGNL
1293 GNULIB_COPYSIGNF
1294 GNULIB_COPYSIGN
1295 GNULIB_CEILL
1296 GNULIB_CEILF
1297 GNULIB_CEIL
1298 GNULIB_CBRTL
1299 GNULIB_CBRTF
1300 GNULIB_CBRT
1301 GNULIB_ATAN2F
1302 GNULIB_ATANL
1303 GNULIB_ATANF
1304 GNULIB_ASINL
1305 GNULIB_ASINF
1306 GNULIB_ACOSL
1307 GNULIB_ACOSF
1308 GL_GENERATE_FNMATCH_H_FALSE
1309 GL_GENERATE_FNMATCH_H_TRUE
1310 FNMATCH_H
1311 REPLACE_ITOLD
1312 GL_GENERATE_FLOAT_H_FALSE
1313 GL_GENERATE_FLOAT_H_TRUE
1314 FLOAT_H
1315 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1316 NEXT_FLOAT_H
1317 EOVERFLOW_VALUE
1318 EOVERFLOW_HIDDEN
1319 ENOLINK_VALUE
1320 ENOLINK_HIDDEN
1321 EMULTIHOP_VALUE
1322 EMULTIHOP_HIDDEN
1323 GL_GENERATE_ERRNO_H_FALSE
1324 GL_GENERATE_ERRNO_H_TRUE
1325 ERRNO_H
1326 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1327 NEXT_ERRNO_H
1328 HAVE_DIRENT_H
1329 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1330 NEXT_DIRENT_H
1331 PRAGMA_COLUMNS
1332 PRAGMA_SYSTEM_HEADER
1333 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1334 INCLUDE_NEXT
1335 REPLACE_FDOPENDIR
1336 REPLACE_DIRFD
1337 REPLACE_CLOSEDIR
1338 REPLACE_OPENDIR
1339 HAVE_ALPHASORT
1340 HAVE_SCANDIR
1341 HAVE_FDOPENDIR
1342 HAVE_DECL_FDOPENDIR
1343 HAVE_DECL_DIRFD
1344 HAVE_CLOSEDIR
1345 HAVE_REWINDDIR
1346 HAVE_READDIR
1347 HAVE_OPENDIR
1348 GNULIB_ALPHASORT
1349 GNULIB_SCANDIR
1350 GNULIB_FDOPENDIR
1351 GNULIB_DIRFD
1352 GNULIB_CLOSEDIR
1353 GNULIB_REWINDDIR
1354 GNULIB_READDIR
1355 GNULIB_OPENDIR
1356 pkglibexecdir
1357 lispdir
1358 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1359 UNISTD_H_HAVE_WINSOCK2_H
1360 REPLACE_WRITE
1361 REPLACE_USLEEP
1362 REPLACE_UNLINKAT
1363 REPLACE_UNLINK
1364 REPLACE_TTYNAME_R
1365 REPLACE_SYMLINK
1366 REPLACE_SLEEP
1367 REPLACE_RMDIR
1368 REPLACE_READLINK
1369 REPLACE_READ
1370 REPLACE_PWRITE
1371 REPLACE_PREAD
1372 REPLACE_LSEEK
1373 REPLACE_LINKAT
1374 REPLACE_LINK
1375 REPLACE_LCHOWN
1376 REPLACE_ISATTY
1377 REPLACE_GETPAGESIZE
1378 REPLACE_GETGROUPS
1379 REPLACE_GETLOGIN_R
1380 REPLACE_GETDOMAINNAME
1381 REPLACE_GETCWD
1382 REPLACE_FTRUNCATE
1383 REPLACE_FCHOWNAT
1384 REPLACE_DUP2
1385 REPLACE_DUP
1386 REPLACE_CLOSE
1387 REPLACE_CHOWN
1388 HAVE_SYS_PARAM_H
1389 HAVE_OS_H
1390 HAVE_DECL_TTYNAME_R
1391 HAVE_DECL_SETHOSTNAME
1392 HAVE_DECL_GETUSERSHELL
1393 HAVE_DECL_GETPAGESIZE
1394 HAVE_DECL_GETLOGIN_R
1395 HAVE_DECL_GETDOMAINNAME
1396 HAVE_DECL_FDATASYNC
1397 HAVE_DECL_FCHDIR
1398 HAVE_DECL_ENVIRON
1399 HAVE_USLEEP
1400 HAVE_UNLINKAT
1401 HAVE_SYMLINKAT
1402 HAVE_SYMLINK
1403 HAVE_SLEEP
1404 HAVE_SETHOSTNAME
1405 HAVE_READLINKAT
1406 HAVE_READLINK
1407 HAVE_PWRITE
1408 HAVE_PREAD
1409 HAVE_PIPE2
1410 HAVE_PIPE
1411 HAVE_LINKAT
1412 HAVE_LINK
1413 HAVE_LCHOWN
1414 HAVE_GROUP_MEMBER
1415 HAVE_GETPAGESIZE
1416 HAVE_GETLOGIN
1417 HAVE_GETHOSTNAME
1418 HAVE_GETGROUPS
1419 HAVE_GETDTABLESIZE
1420 HAVE_FTRUNCATE
1421 HAVE_FSYNC
1422 HAVE_FDATASYNC
1423 HAVE_FCHOWNAT
1424 HAVE_FCHDIR
1425 HAVE_FACCESSAT
1426 HAVE_EUIDACCESS
1427 HAVE_DUP3
1428 HAVE_DUP2
1429 HAVE_CHOWN
1430 GNULIB_WRITE
1431 GNULIB_USLEEP
1432 GNULIB_UNLINKAT
1433 GNULIB_UNLINK
1434 GNULIB_UNISTD_H_SIGPIPE
1435 GNULIB_UNISTD_H_NONBLOCKING
1436 GNULIB_TTYNAME_R
1437 GNULIB_SYMLINKAT
1438 GNULIB_SYMLINK
1439 GNULIB_SLEEP
1440 GNULIB_SETHOSTNAME
1441 GNULIB_RMDIR
1442 GNULIB_READLINKAT
1443 GNULIB_READLINK
1444 GNULIB_READ
1445 GNULIB_PWRITE
1446 GNULIB_PREAD
1447 GNULIB_PIPE2
1448 GNULIB_PIPE
1449 GNULIB_LSEEK
1450 GNULIB_LINKAT
1451 GNULIB_LINK
1452 GNULIB_LCHOWN
1453 GNULIB_ISATTY
1454 GNULIB_GROUP_MEMBER
1455 GNULIB_GETUSERSHELL
1456 GNULIB_GETPAGESIZE
1457 GNULIB_GETLOGIN_R
1458 GNULIB_GETLOGIN
1459 GNULIB_GETHOSTNAME
1460 GNULIB_GETGROUPS
1461 GNULIB_GETDTABLESIZE
1462 GNULIB_GETDOMAINNAME
1463 GNULIB_GETCWD
1464 GNULIB_FTRUNCATE
1465 GNULIB_FSYNC
1466 GNULIB_FDATASYNC
1467 GNULIB_FCHOWNAT
1468 GNULIB_FCHDIR
1469 GNULIB_FACCESSAT
1470 GNULIB_EUIDACCESS
1471 GNULIB_ENVIRON
1472 GNULIB_DUP3
1473 GNULIB_DUP2
1474 GNULIB_DUP
1475 GNULIB_CLOSE
1476 GNULIB_CHOWN
1477 GNULIB_CHDIR
1478 REPLACE_WCTOMB
1479 REPLACE_UNSETENV
1480 REPLACE_STRTOD
1481 REPLACE_SETENV
1482 REPLACE_REALPATH
1483 REPLACE_REALLOC
1484 REPLACE_RANDOM_R
1485 REPLACE_PUTENV
1486 REPLACE_PTSNAME_R
1487 REPLACE_PTSNAME
1488 REPLACE_MKSTEMP
1489 REPLACE_MBTOWC
1490 REPLACE_MALLOC
1491 REPLACE_CANONICALIZE_FILE_NAME
1492 REPLACE_CALLOC
1493 HAVE_DECL_UNSETENV
1494 HAVE_UNLOCKPT
1495 HAVE_SYS_LOADAVG_H
1496 HAVE_STRUCT_RANDOM_DATA
1497 HAVE_STRTOULL
1498 HAVE_STRTOLL
1499 HAVE_STRTOD
1500 HAVE_DECL_SETENV
1501 HAVE_SETENV
1502 HAVE_RPMATCH
1503 HAVE_REALPATH
1504 HAVE_RANDOM_R
1505 HAVE_RANDOM_H
1506 HAVE_RANDOM
1507 HAVE_PTSNAME_R
1508 HAVE_PTSNAME
1509 HAVE_POSIX_OPENPT
1510 HAVE_MKSTEMPS
1511 HAVE_MKSTEMP
1512 HAVE_MKOSTEMPS
1513 HAVE_MKOSTEMP
1514 HAVE_MKDTEMP
1515 HAVE_GRANTPT
1516 HAVE_GETSUBOPT
1517 HAVE_DECL_GETLOADAVG
1518 HAVE_CANONICALIZE_FILE_NAME
1519 HAVE_ATOLL
1520 HAVE__EXIT
1521 GNULIB_WCTOMB
1522 GNULIB_UNSETENV
1523 GNULIB_UNLOCKPT
1524 GNULIB_SYSTEM_POSIX
1525 GNULIB_STRTOULL
1526 GNULIB_STRTOLL
1527 GNULIB_STRTOD
1528 GNULIB_SETENV
1529 GNULIB_RPMATCH
1530 GNULIB_REALPATH
1531 GNULIB_REALLOC_POSIX
1532 GNULIB_RANDOM_R
1533 GNULIB_RANDOM
1534 GNULIB_PUTENV
1535 GNULIB_PTSNAME_R
1536 GNULIB_PTSNAME
1537 GNULIB_POSIX_OPENPT
1538 GNULIB_MKSTEMPS
1539 GNULIB_MKSTEMP
1540 GNULIB_MKOSTEMPS
1541 GNULIB_MKOSTEMP
1542 GNULIB_MKDTEMP
1543 GNULIB_MBTOWC
1544 GNULIB_MALLOC_POSIX
1545 GNULIB_GRANTPT
1546 GNULIB_GETSUBOPT
1547 GNULIB_GETLOADAVG
1548 GNULIB_CANONICALIZE_FILE_NAME
1549 GNULIB_CALLOC_POSIX
1550 GNULIB_ATOLL
1551 GNULIB__EXIT
1552 GL_GENERATE_ALLOCA_H_FALSE
1553 GL_GENERATE_ALLOCA_H_TRUE
1554 ALLOCA_H
1555 ALLOCA
1556 GL_COND_LIBTOOL_FALSE
1557 GL_COND_LIBTOOL_TRUE
1558 target_os
1559 target_vendor
1560 target_cpu
1561 target
1562 RANLIB
1563 ARFLAGS
1564 AR
1565 EGREP
1566 GREP
1567 CPP
1568 host_os
1569 host_vendor
1570 host_cpu
1571 host
1572 build_os
1573 build_vendor
1574 build_cpu
1575 build
1576 OBJEXT
1577 EXEEXT
1578 ac_ct_CC
1579 CPPFLAGS
1580 LDFLAGS
1581 CFLAGS
1582 CC
1583 MAINT
1584 MAINTAINER_MODE_FALSE
1585 MAINTAINER_MODE_TRUE
1586 target_alias
1587 host_alias
1588 build_alias
1589 LIBS
1590 ECHO_T
1591 ECHO_N
1592 ECHO_C
1593 DEFS
1594 mandir
1595 localedir
1596 libdir
1597 psdir
1598 pdfdir
1599 dvidir
1600 htmldir
1601 infodir
1602 docdir
1603 oldincludedir
1604 includedir
1605 localstatedir
1606 sharedstatedir
1607 sysconfdir
1608 datadir
1609 datarootdir
1610 libexecdir
1611 sbindir
1612 bindir
1613 program_transform_name
1614 prefix
1615 exec_prefix
1616 PACKAGE_URL
1617 PACKAGE_BUGREPORT
1618 PACKAGE_STRING
1619 PACKAGE_VERSION
1620 PACKAGE_TARNAME
1621 PACKAGE_NAME
1622 PATH_SEPARATOR
1623 SHELL'
1624 ac_subst_files=''
1625 ac_user_opts='
1626 enable_option_checking
1627 enable_maintainer_mode
1628 enable_largefile
1629 enable_dependency_tracking
1630 '
1631 ac_precious_vars='build_alias
1632 host_alias
1633 target_alias
1634 CC
1635 CFLAGS
1636 LDFLAGS
1637 LIBS
1638 CPPFLAGS
1639 CPP'
1640
1641
1642 # Initialize some variables set by options.
1643 ac_init_help=
1644 ac_init_version=false
1645 ac_unrecognized_opts=
1646 ac_unrecognized_sep=
1647 # The variables have the same names as the options, with
1648 # dashes changed to underlines.
1649 cache_file=/dev/null
1650 exec_prefix=NONE
1651 no_create=
1652 no_recursion=
1653 prefix=NONE
1654 program_prefix=NONE
1655 program_suffix=NONE
1656 program_transform_name=s,x,x,
1657 silent=
1658 site=
1659 srcdir=
1660 verbose=
1661 x_includes=NONE
1662 x_libraries=NONE
1663
1664 # Installation directory options.
1665 # These are left unexpanded so users can "make install exec_prefix=/foo"
1666 # and all the variables that are supposed to be based on exec_prefix
1667 # by default will actually change.
1668 # Use braces instead of parens because sh, perl, etc. also accept them.
1669 # (The list follows the same order as the GNU Coding Standards.)
1670 bindir='${exec_prefix}/bin'
1671 sbindir='${exec_prefix}/sbin'
1672 libexecdir='${exec_prefix}/libexec'
1673 datarootdir='${prefix}/share'
1674 datadir='${datarootdir}'
1675 sysconfdir='${prefix}/etc'
1676 sharedstatedir='${prefix}/com'
1677 localstatedir='${prefix}/var'
1678 includedir='${prefix}/include'
1679 oldincludedir='/usr/include'
1680 docdir='${datarootdir}/doc/${PACKAGE}'
1681 infodir='${datarootdir}/info'
1682 htmldir='${docdir}'
1683 dvidir='${docdir}'
1684 pdfdir='${docdir}'
1685 psdir='${docdir}'
1686 libdir='${exec_prefix}/lib'
1687 localedir='${datarootdir}/locale'
1688 mandir='${datarootdir}/man'
1689
1690 ac_prev=
1691 ac_dashdash=
1692 for ac_option
1693 do
1694 # If the previous option needs an argument, assign it.
1695 if test -n "$ac_prev"; then
1696 eval $ac_prev=\$ac_option
1697 ac_prev=
1698 continue
1699 fi
1700
1701 case $ac_option in
1702 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1703 *) ac_optarg=yes ;;
1704 esac
1705
1706 # Accept the important Cygnus configure options, so we can diagnose typos.
1707
1708 case $ac_dashdash$ac_option in
1709 --)
1710 ac_dashdash=yes ;;
1711
1712 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1713 ac_prev=bindir ;;
1714 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1715 bindir=$ac_optarg ;;
1716
1717 -build | --build | --buil | --bui | --bu)
1718 ac_prev=build_alias ;;
1719 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1720 build_alias=$ac_optarg ;;
1721
1722 -cache-file | --cache-file | --cache-fil | --cache-fi \
1723 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1724 ac_prev=cache_file ;;
1725 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1726 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1727 cache_file=$ac_optarg ;;
1728
1729 --config-cache | -C)
1730 cache_file=config.cache ;;
1731
1732 -datadir | --datadir | --datadi | --datad)
1733 ac_prev=datadir ;;
1734 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1735 datadir=$ac_optarg ;;
1736
1737 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1738 | --dataroo | --dataro | --datar)
1739 ac_prev=datarootdir ;;
1740 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1741 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1742 datarootdir=$ac_optarg ;;
1743
1744 -disable-* | --disable-*)
1745 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1746 # Reject names that are not valid shell variable names.
1747 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1748 as_fn_error "invalid feature name: $ac_useropt"
1749 ac_useropt_orig=$ac_useropt
1750 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1751 case $ac_user_opts in
1752 *"
1753 "enable_$ac_useropt"
1754 "*) ;;
1755 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1756 ac_unrecognized_sep=', ';;
1757 esac
1758 eval enable_$ac_useropt=no ;;
1759
1760 -docdir | --docdir | --docdi | --doc | --do)
1761 ac_prev=docdir ;;
1762 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1763 docdir=$ac_optarg ;;
1764
1765 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1766 ac_prev=dvidir ;;
1767 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1768 dvidir=$ac_optarg ;;
1769
1770 -enable-* | --enable-*)
1771 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1772 # Reject names that are not valid shell variable names.
1773 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1774 as_fn_error "invalid feature name: $ac_useropt"
1775 ac_useropt_orig=$ac_useropt
1776 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1777 case $ac_user_opts in
1778 *"
1779 "enable_$ac_useropt"
1780 "*) ;;
1781 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1782 ac_unrecognized_sep=', ';;
1783 esac
1784 eval enable_$ac_useropt=\$ac_optarg ;;
1785
1786 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1787 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1788 | --exec | --exe | --ex)
1789 ac_prev=exec_prefix ;;
1790 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1791 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1792 | --exec=* | --exe=* | --ex=*)
1793 exec_prefix=$ac_optarg ;;
1794
1795 -gas | --gas | --ga | --g)
1796 # Obsolete; use --with-gas.
1797 with_gas=yes ;;
1798
1799 -help | --help | --hel | --he | -h)
1800 ac_init_help=long ;;
1801 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1802 ac_init_help=recursive ;;
1803 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1804 ac_init_help=short ;;
1805
1806 -host | --host | --hos | --ho)
1807 ac_prev=host_alias ;;
1808 -host=* | --host=* | --hos=* | --ho=*)
1809 host_alias=$ac_optarg ;;
1810
1811 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1812 ac_prev=htmldir ;;
1813 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1814 | --ht=*)
1815 htmldir=$ac_optarg ;;
1816
1817 -includedir | --includedir | --includedi | --included | --include \
1818 | --includ | --inclu | --incl | --inc)
1819 ac_prev=includedir ;;
1820 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1821 | --includ=* | --inclu=* | --incl=* | --inc=*)
1822 includedir=$ac_optarg ;;
1823
1824 -infodir | --infodir | --infodi | --infod | --info | --inf)
1825 ac_prev=infodir ;;
1826 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1827 infodir=$ac_optarg ;;
1828
1829 -libdir | --libdir | --libdi | --libd)
1830 ac_prev=libdir ;;
1831 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1832 libdir=$ac_optarg ;;
1833
1834 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1835 | --libexe | --libex | --libe)
1836 ac_prev=libexecdir ;;
1837 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1838 | --libexe=* | --libex=* | --libe=*)
1839 libexecdir=$ac_optarg ;;
1840
1841 -localedir | --localedir | --localedi | --localed | --locale)
1842 ac_prev=localedir ;;
1843 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1844 localedir=$ac_optarg ;;
1845
1846 -localstatedir | --localstatedir | --localstatedi | --localstated \
1847 | --localstate | --localstat | --localsta | --localst | --locals)
1848 ac_prev=localstatedir ;;
1849 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1850 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1851 localstatedir=$ac_optarg ;;
1852
1853 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1854 ac_prev=mandir ;;
1855 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1856 mandir=$ac_optarg ;;
1857
1858 -nfp | --nfp | --nf)
1859 # Obsolete; use --without-fp.
1860 with_fp=no ;;
1861
1862 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1863 | --no-cr | --no-c | -n)
1864 no_create=yes ;;
1865
1866 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1867 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1868 no_recursion=yes ;;
1869
1870 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1871 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1872 | --oldin | --oldi | --old | --ol | --o)
1873 ac_prev=oldincludedir ;;
1874 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1875 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1876 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1877 oldincludedir=$ac_optarg ;;
1878
1879 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1880 ac_prev=prefix ;;
1881 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1882 prefix=$ac_optarg ;;
1883
1884 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1885 | --program-pre | --program-pr | --program-p)
1886 ac_prev=program_prefix ;;
1887 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1888 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1889 program_prefix=$ac_optarg ;;
1890
1891 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1892 | --program-suf | --program-su | --program-s)
1893 ac_prev=program_suffix ;;
1894 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1895 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1896 program_suffix=$ac_optarg ;;
1897
1898 -program-transform-name | --program-transform-name \
1899 | --program-transform-nam | --program-transform-na \
1900 | --program-transform-n | --program-transform- \
1901 | --program-transform | --program-transfor \
1902 | --program-transfo | --program-transf \
1903 | --program-trans | --program-tran \
1904 | --progr-tra | --program-tr | --program-t)
1905 ac_prev=program_transform_name ;;
1906 -program-transform-name=* | --program-transform-name=* \
1907 | --program-transform-nam=* | --program-transform-na=* \
1908 | --program-transform-n=* | --program-transform-=* \
1909 | --program-transform=* | --program-transfor=* \
1910 | --program-transfo=* | --program-transf=* \
1911 | --program-trans=* | --program-tran=* \
1912 | --progr-tra=* | --program-tr=* | --program-t=*)
1913 program_transform_name=$ac_optarg ;;
1914
1915 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1916 ac_prev=pdfdir ;;
1917 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1918 pdfdir=$ac_optarg ;;
1919
1920 -psdir | --psdir | --psdi | --psd | --ps)
1921 ac_prev=psdir ;;
1922 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1923 psdir=$ac_optarg ;;
1924
1925 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1926 | -silent | --silent | --silen | --sile | --sil)
1927 silent=yes ;;
1928
1929 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1930 ac_prev=sbindir ;;
1931 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1932 | --sbi=* | --sb=*)
1933 sbindir=$ac_optarg ;;
1934
1935 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1936 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1937 | --sharedst | --shareds | --shared | --share | --shar \
1938 | --sha | --sh)
1939 ac_prev=sharedstatedir ;;
1940 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1941 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1942 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1943 | --sha=* | --sh=*)
1944 sharedstatedir=$ac_optarg ;;
1945
1946 -site | --site | --sit)
1947 ac_prev=site ;;
1948 -site=* | --site=* | --sit=*)
1949 site=$ac_optarg ;;
1950
1951 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1952 ac_prev=srcdir ;;
1953 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1954 srcdir=$ac_optarg ;;
1955
1956 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1957 | --syscon | --sysco | --sysc | --sys | --sy)
1958 ac_prev=sysconfdir ;;
1959 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1960 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1961 sysconfdir=$ac_optarg ;;
1962
1963 -target | --target | --targe | --targ | --tar | --ta | --t)
1964 ac_prev=target_alias ;;
1965 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1966 target_alias=$ac_optarg ;;
1967
1968 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1969 verbose=yes ;;
1970
1971 -version | --version | --versio | --versi | --vers | -V)
1972 ac_init_version=: ;;
1973
1974 -with-* | --with-*)
1975 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1976 # Reject names that are not valid shell variable names.
1977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1978 as_fn_error "invalid package name: $ac_useropt"
1979 ac_useropt_orig=$ac_useropt
1980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1981 case $ac_user_opts in
1982 *"
1983 "with_$ac_useropt"
1984 "*) ;;
1985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1986 ac_unrecognized_sep=', ';;
1987 esac
1988 eval with_$ac_useropt=\$ac_optarg ;;
1989
1990 -without-* | --without-*)
1991 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1992 # Reject names that are not valid shell variable names.
1993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1994 as_fn_error "invalid package name: $ac_useropt"
1995 ac_useropt_orig=$ac_useropt
1996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1997 case $ac_user_opts in
1998 *"
1999 "with_$ac_useropt"
2000 "*) ;;
2001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2002 ac_unrecognized_sep=', ';;
2003 esac
2004 eval with_$ac_useropt=no ;;
2005
2006 --x)
2007 # Obsolete; use --with-x.
2008 with_x=yes ;;
2009
2010 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2011 | --x-incl | --x-inc | --x-in | --x-i)
2012 ac_prev=x_includes ;;
2013 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2014 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2015 x_includes=$ac_optarg ;;
2016
2017 -x-libraries | --x-libraries | --x-librarie | --x-librari \
2018 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2019 ac_prev=x_libraries ;;
2020 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2021 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2022 x_libraries=$ac_optarg ;;
2023
2024 -*) as_fn_error "unrecognized option: \`$ac_option'
2025 Try \`$0 --help' for more information."
2026 ;;
2027
2028 *=*)
2029 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2030 # Reject names that are not valid shell variable names.
2031 case $ac_envvar in #(
2032 '' | [0-9]* | *[!_$as_cr_alnum]* )
2033 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
2034 esac
2035 eval $ac_envvar=\$ac_optarg
2036 export $ac_envvar ;;
2037
2038 *)
2039 # FIXME: should be removed in autoconf 3.0.
2040 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
2041 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2042 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
2043 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
2044 ;;
2045
2046 esac
2047 done
2048
2049 if test -n "$ac_prev"; then
2050 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2051 as_fn_error "missing argument to $ac_option"
2052 fi
2053
2054 if test -n "$ac_unrecognized_opts"; then
2055 case $enable_option_checking in
2056 no) ;;
2057 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
2058 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2059 esac
2060 fi
2061
2062 # Check all directory arguments for consistency.
2063 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2064 datadir sysconfdir sharedstatedir localstatedir includedir \
2065 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2066 libdir localedir mandir
2067 do
2068 eval ac_val=\$$ac_var
2069 # Remove trailing slashes.
2070 case $ac_val in
2071 */ )
2072 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2073 eval $ac_var=\$ac_val;;
2074 esac
2075 # Be sure to have absolute directory names.
2076 case $ac_val in
2077 [\\/$]* | ?:[\\/]* ) continue;;
2078 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2079 esac
2080 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
2081 done
2082
2083 # There might be people who depend on the old broken behavior: `$host'
2084 # used to hold the argument of --host etc.
2085 # FIXME: To remove some day.
2086 build=$build_alias
2087 host=$host_alias
2088 target=$target_alias
2089
2090 # FIXME: To remove some day.
2091 if test "x$host_alias" != x; then
2092 if test "x$build_alias" = x; then
2093 cross_compiling=maybe
2094 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
2095 If a cross compiler is detected then cross compile mode will be used." >&2
2096 elif test "x$build_alias" != "x$host_alias"; then
2097 cross_compiling=yes
2098 fi
2099 fi
2100
2101 ac_tool_prefix=
2102 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2103
2104 test "$silent" = yes && exec 6>/dev/null
2105
2106
2107 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2108 ac_ls_di=`ls -di .` &&
2109 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2110 as_fn_error "working directory cannot be determined"
2111 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2112 as_fn_error "pwd does not report name of working directory"
2113
2114
2115 # Find the source files, if location was not specified.
2116 if test -z "$srcdir"; then
2117 ac_srcdir_defaulted=yes
2118 # Try the directory containing this script, then the parent directory.
2119 ac_confdir=`$as_dirname -- "$as_myself" ||
2120 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2121 X"$as_myself" : 'X\(//\)[^/]' \| \
2122 X"$as_myself" : 'X\(//\)$' \| \
2123 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2124 $as_echo X"$as_myself" |
2125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2126 s//\1/
2127 q
2128 }
2129 /^X\(\/\/\)[^/].*/{
2130 s//\1/
2131 q
2132 }
2133 /^X\(\/\/\)$/{
2134 s//\1/
2135 q
2136 }
2137 /^X\(\/\).*/{
2138 s//\1/
2139 q
2140 }
2141 s/.*/./; q'`
2142 srcdir=$ac_confdir
2143 if test ! -r "$srcdir/$ac_unique_file"; then
2144 srcdir=..
2145 fi
2146 else
2147 ac_srcdir_defaulted=no
2148 fi
2149 if test ! -r "$srcdir/$ac_unique_file"; then
2150 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2151 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
2152 fi
2153 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2154 ac_abs_confdir=`(
2155 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
2156 pwd)`
2157 # When building in place, set srcdir=.
2158 if test "$ac_abs_confdir" = "$ac_pwd"; then
2159 srcdir=.
2160 fi
2161 # Remove unnecessary trailing slashes from srcdir.
2162 # Double slashes in file names in object file debugging info
2163 # mess up M-x gdb in Emacs.
2164 case $srcdir in
2165 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2166 esac
2167 for ac_var in $ac_precious_vars; do
2168 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2169 eval ac_env_${ac_var}_value=\$${ac_var}
2170 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2171 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2172 done
2173
2174 #
2175 # Report the --help message.
2176 #
2177 if test "$ac_init_help" = "long"; then
2178 # Omit some internal or obsolete options to make the list less imposing.
2179 # This message is too long to be a string in the A/UX 3.1 sh.
2180 cat <<_ACEOF
2181 \`configure' configures this package to adapt to many kinds of systems.
2182
2183 Usage: $0 [OPTION]... [VAR=VALUE]...
2184
2185 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2186 VAR=VALUE. See below for descriptions of some of the useful variables.
2187
2188 Defaults for the options are specified in brackets.
2189
2190 Configuration:
2191 -h, --help display this help and exit
2192 --help=short display options specific to this package
2193 --help=recursive display the short help of all the included packages
2194 -V, --version display version information and exit
2195 -q, --quiet, --silent do not print \`checking...' messages
2196 --cache-file=FILE cache test results in FILE [disabled]
2197 -C, --config-cache alias for \`--cache-file=config.cache'
2198 -n, --no-create do not create output files
2199 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2200
2201 Installation directories:
2202 --prefix=PREFIX install architecture-independent files in PREFIX
2203 [$ac_default_prefix]
2204 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2205 [PREFIX]
2206
2207 By default, \`make install' will install all the files in
2208 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2209 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2210 for instance \`--prefix=\$HOME'.
2211
2212 For better control, use the options below.
2213
2214 Fine tuning of the installation directories:
2215 --bindir=DIR user executables [EPREFIX/bin]
2216 --sbindir=DIR system admin executables [EPREFIX/sbin]
2217 --libexecdir=DIR program executables [EPREFIX/libexec]
2218 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2219 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2220 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2221 --libdir=DIR object code libraries [EPREFIX/lib]
2222 --includedir=DIR C header files [PREFIX/include]
2223 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2224 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2225 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2226 --infodir=DIR info documentation [DATAROOTDIR/info]
2227 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2228 --mandir=DIR man documentation [DATAROOTDIR/man]
2229 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2230 --htmldir=DIR html documentation [DOCDIR]
2231 --dvidir=DIR dvi documentation [DOCDIR]
2232 --pdfdir=DIR pdf documentation [DOCDIR]
2233 --psdir=DIR ps documentation [DOCDIR]
2234 _ACEOF
2235
2236 cat <<\_ACEOF
2237
2238 Program names:
2239 --program-prefix=PREFIX prepend PREFIX to installed program names
2240 --program-suffix=SUFFIX append SUFFIX to installed program names
2241 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2242
2243 System types:
2244 --build=BUILD configure for building on BUILD [guessed]
2245 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2246 --target=TARGET configure for building compilers for TARGET [HOST]
2247 _ACEOF
2248 fi
2249
2250 if test -n "$ac_init_help"; then
2251
2252 cat <<\_ACEOF
2253
2254 Optional Features:
2255 --disable-option-checking ignore unrecognized --enable/--with options
2256 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2257 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2258 --enable-maintainer-mode enable make rules and dependencies not useful
2259 (and sometimes confusing) to the casual installer
2260 --disable-largefile omit support for large files
2261 --disable-dependency-tracking speeds up one-time build
2262 --enable-dependency-tracking do not reject slow dependency extractors
2263
2264 Some influential environment variables:
2265 CC C compiler command
2266 CFLAGS C compiler flags
2267 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2268 nonstandard directory <lib dir>
2269 LIBS libraries to pass to the linker, e.g. -l<library>
2270 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2271 you have headers in a nonstandard directory <include dir>
2272 CPP C preprocessor
2273
2274 Use these variables to override the choices made by `configure' or to help
2275 it to find libraries and programs with nonstandard names/locations.
2276
2277 Report bugs to the package provider.
2278 _ACEOF
2279 ac_status=$?
2280 fi
2281
2282 if test "$ac_init_help" = "recursive"; then
2283 # If there are subdirs, report their specific --help.
2284 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2285 test -d "$ac_dir" ||
2286 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2287 continue
2288 ac_builddir=.
2289
2290 case "$ac_dir" in
2291 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2292 *)
2293 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2294 # A ".." for each directory in $ac_dir_suffix.
2295 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2296 case $ac_top_builddir_sub in
2297 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2298 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2299 esac ;;
2300 esac
2301 ac_abs_top_builddir=$ac_pwd
2302 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2303 # for backward compatibility:
2304 ac_top_builddir=$ac_top_build_prefix
2305
2306 case $srcdir in
2307 .) # We are building in place.
2308 ac_srcdir=.
2309 ac_top_srcdir=$ac_top_builddir_sub
2310 ac_abs_top_srcdir=$ac_pwd ;;
2311 [\\/]* | ?:[\\/]* ) # Absolute name.
2312 ac_srcdir=$srcdir$ac_dir_suffix;
2313 ac_top_srcdir=$srcdir
2314 ac_abs_top_srcdir=$srcdir ;;
2315 *) # Relative name.
2316 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2317 ac_top_srcdir=$ac_top_build_prefix$srcdir
2318 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2319 esac
2320 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2321
2322 cd "$ac_dir" || { ac_status=$?; continue; }
2323 # Check for guested configure.
2324 if test -f "$ac_srcdir/configure.gnu"; then
2325 echo &&
2326 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2327 elif test -f "$ac_srcdir/configure"; then
2328 echo &&
2329 $SHELL "$ac_srcdir/configure" --help=recursive
2330 else
2331 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2332 fi || ac_status=$?
2333 cd "$ac_pwd" || { ac_status=$?; break; }
2334 done
2335 fi
2336
2337 test -n "$ac_init_help" && exit $ac_status
2338 if $ac_init_version; then
2339 cat <<\_ACEOF
2340 configure
2341 generated by GNU Autoconf 2.64
2342
2343 Copyright (C) 2009 Free Software Foundation, Inc.
2344 This configure script is free software; the Free Software Foundation
2345 gives unlimited permission to copy, distribute and modify it.
2346 _ACEOF
2347 exit
2348 fi
2349
2350 ## ------------------------ ##
2351 ## Autoconf initialization. ##
2352 ## ------------------------ ##
2353
2354 # ac_fn_c_try_compile LINENO
2355 # --------------------------
2356 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2357 ac_fn_c_try_compile ()
2358 {
2359 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2360 rm -f conftest.$ac_objext
2361 if { { ac_try="$ac_compile"
2362 case "(($ac_try" in
2363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2364 *) ac_try_echo=$ac_try;;
2365 esac
2366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2367 $as_echo "$ac_try_echo"; } >&5
2368 (eval "$ac_compile") 2>conftest.err
2369 ac_status=$?
2370 if test -s conftest.err; then
2371 grep -v '^ *+' conftest.err >conftest.er1
2372 cat conftest.er1 >&5
2373 mv -f conftest.er1 conftest.err
2374 fi
2375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2376 test $ac_status = 0; } && {
2377 test -z "$ac_c_werror_flag" ||
2378 test ! -s conftest.err
2379 } && test -s conftest.$ac_objext; then :
2380 ac_retval=0
2381 else
2382 $as_echo "$as_me: failed program was:" >&5
2383 sed 's/^/| /' conftest.$ac_ext >&5
2384
2385 ac_retval=1
2386 fi
2387 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2388 return $ac_retval
2389
2390 } # ac_fn_c_try_compile
2391
2392 # ac_fn_c_try_cpp LINENO
2393 # ----------------------
2394 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2395 ac_fn_c_try_cpp ()
2396 {
2397 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2398 if { { ac_try="$ac_cpp conftest.$ac_ext"
2399 case "(($ac_try" in
2400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401 *) ac_try_echo=$ac_try;;
2402 esac
2403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2404 $as_echo "$ac_try_echo"; } >&5
2405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2406 ac_status=$?
2407 if test -s conftest.err; then
2408 grep -v '^ *+' conftest.err >conftest.er1
2409 cat conftest.er1 >&5
2410 mv -f conftest.er1 conftest.err
2411 fi
2412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2413 test $ac_status = 0; } >/dev/null && {
2414 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2415 test ! -s conftest.err
2416 }; then :
2417 ac_retval=0
2418 else
2419 $as_echo "$as_me: failed program was:" >&5
2420 sed 's/^/| /' conftest.$ac_ext >&5
2421
2422 ac_retval=1
2423 fi
2424 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2425 return $ac_retval
2426
2427 } # ac_fn_c_try_cpp
2428
2429 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2430 # -------------------------------------------------------
2431 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2432 # the include files in INCLUDES and setting the cache variable VAR
2433 # accordingly.
2434 ac_fn_c_check_header_mongrel ()
2435 {
2436 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2437 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2439 $as_echo_n "checking for $2... " >&6; }
2440 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2441 $as_echo_n "(cached) " >&6
2442 fi
2443 eval ac_res=\$$3
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2445 $as_echo "$ac_res" >&6; }
2446 else
2447 # Is the header compilable?
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2449 $as_echo_n "checking $2 usability... " >&6; }
2450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2451 /* end confdefs.h. */
2452 $4
2453 #include <$2>
2454 _ACEOF
2455 if ac_fn_c_try_compile "$LINENO"; then :
2456 ac_header_compiler=yes
2457 else
2458 ac_header_compiler=no
2459 fi
2460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2462 $as_echo "$ac_header_compiler" >&6; }
2463
2464 # Is the header present?
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2466 $as_echo_n "checking $2 presence... " >&6; }
2467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2468 /* end confdefs.h. */
2469 #include <$2>
2470 _ACEOF
2471 if ac_fn_c_try_cpp "$LINENO"; then :
2472 ac_header_preproc=yes
2473 else
2474 ac_header_preproc=no
2475 fi
2476 rm -f conftest.err conftest.$ac_ext
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2478 $as_echo "$ac_header_preproc" >&6; }
2479
2480 # So? What about this header?
2481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2482 yes:no: )
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2484 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2486 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2487 ;;
2488 no:yes:* )
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2490 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2492 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2494 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2496 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2498 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2499 ;;
2500 esac
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2502 $as_echo_n "checking for $2... " >&6; }
2503 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2504 $as_echo_n "(cached) " >&6
2505 else
2506 eval "$3=\$ac_header_compiler"
2507 fi
2508 eval ac_res=\$$3
2509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2510 $as_echo "$ac_res" >&6; }
2511 fi
2512 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2513
2514 } # ac_fn_c_check_header_mongrel
2515
2516 # ac_fn_c_try_run LINENO
2517 # ----------------------
2518 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2519 # that executables *can* be run.
2520 ac_fn_c_try_run ()
2521 {
2522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2523 if { { ac_try="$ac_link"
2524 case "(($ac_try" in
2525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2526 *) ac_try_echo=$ac_try;;
2527 esac
2528 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2529 $as_echo "$ac_try_echo"; } >&5
2530 (eval "$ac_link") 2>&5
2531 ac_status=$?
2532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2533 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2534 { { case "(($ac_try" in
2535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2536 *) ac_try_echo=$ac_try;;
2537 esac
2538 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2539 $as_echo "$ac_try_echo"; } >&5
2540 (eval "$ac_try") 2>&5
2541 ac_status=$?
2542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2543 test $ac_status = 0; }; }; then :
2544 ac_retval=0
2545 else
2546 $as_echo "$as_me: program exited with status $ac_status" >&5
2547 $as_echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2549
2550 ac_retval=$ac_status
2551 fi
2552 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2553 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2554 return $ac_retval
2555
2556 } # ac_fn_c_try_run
2557
2558 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2559 # -------------------------------------------------------
2560 # Tests whether HEADER exists and can be compiled using the include files in
2561 # INCLUDES, setting the cache variable VAR accordingly.
2562 ac_fn_c_check_header_compile ()
2563 {
2564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2566 $as_echo_n "checking for $2... " >&6; }
2567 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2568 $as_echo_n "(cached) " >&6
2569 else
2570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2571 /* end confdefs.h. */
2572 $4
2573 #include <$2>
2574 _ACEOF
2575 if ac_fn_c_try_compile "$LINENO"; then :
2576 eval "$3=yes"
2577 else
2578 eval "$3=no"
2579 fi
2580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2581 fi
2582 eval ac_res=\$$3
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2584 $as_echo "$ac_res" >&6; }
2585 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2586
2587 } # ac_fn_c_check_header_compile
2588
2589 # ac_fn_c_try_link LINENO
2590 # -----------------------
2591 # Try to link conftest.$ac_ext, and return whether this succeeded.
2592 ac_fn_c_try_link ()
2593 {
2594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2595 rm -f conftest.$ac_objext conftest$ac_exeext
2596 if { { ac_try="$ac_link"
2597 case "(($ac_try" in
2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599 *) ac_try_echo=$ac_try;;
2600 esac
2601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2602 $as_echo "$ac_try_echo"; } >&5
2603 (eval "$ac_link") 2>conftest.err
2604 ac_status=$?
2605 if test -s conftest.err; then
2606 grep -v '^ *+' conftest.err >conftest.er1
2607 cat conftest.er1 >&5
2608 mv -f conftest.er1 conftest.err
2609 fi
2610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2611 test $ac_status = 0; } && {
2612 test -z "$ac_c_werror_flag" ||
2613 test ! -s conftest.err
2614 } && test -s conftest$ac_exeext && {
2615 test "$cross_compiling" = yes ||
2616 $as_test_x conftest$ac_exeext
2617 }; then :
2618 ac_retval=0
2619 else
2620 $as_echo "$as_me: failed program was:" >&5
2621 sed 's/^/| /' conftest.$ac_ext >&5
2622
2623 ac_retval=1
2624 fi
2625 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2626 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2627 # interfere with the next link command; also delete a directory that is
2628 # left behind by Apple's compiler. We do this before executing the actions.
2629 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2630 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2631 return $ac_retval
2632
2633 } # ac_fn_c_try_link
2634
2635 # ac_fn_c_check_func LINENO FUNC VAR
2636 # ----------------------------------
2637 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2638 ac_fn_c_check_func ()
2639 {
2640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2642 $as_echo_n "checking for $2... " >&6; }
2643 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2644 $as_echo_n "(cached) " >&6
2645 else
2646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2647 /* end confdefs.h. */
2648 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2650 #define $2 innocuous_$2
2651
2652 /* System header to define __stub macros and hopefully few prototypes,
2653 which can conflict with char $2 (); below.
2654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2655 <limits.h> exists even on freestanding compilers. */
2656
2657 #ifdef __STDC__
2658 # include <limits.h>
2659 #else
2660 # include <assert.h>
2661 #endif
2662
2663 #undef $2
2664
2665 /* Override any GCC internal prototype to avoid an error.
2666 Use char because int might match the return type of a GCC
2667 builtin and then its argument prototype would still apply. */
2668 #ifdef __cplusplus
2669 extern "C"
2670 #endif
2671 char $2 ();
2672 /* The GNU C library defines this for functions which it implements
2673 to always fail with ENOSYS. Some functions are actually named
2674 something starting with __ and the normal name is an alias. */
2675 #if defined __stub_$2 || defined __stub___$2
2676 choke me
2677 #endif
2678
2679 int
2680 main ()
2681 {
2682 return $2 ();
2683 ;
2684 return 0;
2685 }
2686 _ACEOF
2687 if ac_fn_c_try_link "$LINENO"; then :
2688 eval "$3=yes"
2689 else
2690 eval "$3=no"
2691 fi
2692 rm -f core conftest.err conftest.$ac_objext \
2693 conftest$ac_exeext conftest.$ac_ext
2694 fi
2695 eval ac_res=\$$3
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2697 $as_echo "$ac_res" >&6; }
2698 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2699
2700 } # ac_fn_c_check_func
2701
2702 # ac_fn_c_check_decl LINENO SYMBOL VAR
2703 # ------------------------------------
2704 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2705 ac_fn_c_check_decl ()
2706 {
2707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2709 $as_echo_n "checking whether $2 is declared... " >&6; }
2710 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2711 $as_echo_n "(cached) " >&6
2712 else
2713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2714 /* end confdefs.h. */
2715 $4
2716 int
2717 main ()
2718 {
2719 #ifndef $2
2720 (void) $2;
2721 #endif
2722
2723 ;
2724 return 0;
2725 }
2726 _ACEOF
2727 if ac_fn_c_try_compile "$LINENO"; then :
2728 eval "$3=yes"
2729 else
2730 eval "$3=no"
2731 fi
2732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2733 fi
2734 eval ac_res=\$$3
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2736 $as_echo "$ac_res" >&6; }
2737 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2738
2739 } # ac_fn_c_check_decl
2740
2741 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2742 # --------------------------------------------
2743 # Tries to find the compile-time value of EXPR in a program that includes
2744 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2745 # computed
2746 ac_fn_c_compute_int ()
2747 {
2748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2749 if test "$cross_compiling" = yes; then
2750 # Depending upon the size, compute the lo and hi bounds.
2751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2752 /* end confdefs.h. */
2753 $4
2754 int
2755 main ()
2756 {
2757 static int test_array [1 - 2 * !(($2) >= 0)];
2758 test_array [0] = 0
2759
2760 ;
2761 return 0;
2762 }
2763 _ACEOF
2764 if ac_fn_c_try_compile "$LINENO"; then :
2765 ac_lo=0 ac_mid=0
2766 while :; do
2767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2768 /* end confdefs.h. */
2769 $4
2770 int
2771 main ()
2772 {
2773 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2774 test_array [0] = 0
2775
2776 ;
2777 return 0;
2778 }
2779 _ACEOF
2780 if ac_fn_c_try_compile "$LINENO"; then :
2781 ac_hi=$ac_mid; break
2782 else
2783 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2784 if test $ac_lo -le $ac_mid; then
2785 ac_lo= ac_hi=
2786 break
2787 fi
2788 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2789 fi
2790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2791 done
2792 else
2793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2794 /* end confdefs.h. */
2795 $4
2796 int
2797 main ()
2798 {
2799 static int test_array [1 - 2 * !(($2) < 0)];
2800 test_array [0] = 0
2801
2802 ;
2803 return 0;
2804 }
2805 _ACEOF
2806 if ac_fn_c_try_compile "$LINENO"; then :
2807 ac_hi=-1 ac_mid=-1
2808 while :; do
2809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2810 /* end confdefs.h. */
2811 $4
2812 int
2813 main ()
2814 {
2815 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2816 test_array [0] = 0
2817
2818 ;
2819 return 0;
2820 }
2821 _ACEOF
2822 if ac_fn_c_try_compile "$LINENO"; then :
2823 ac_lo=$ac_mid; break
2824 else
2825 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2826 if test $ac_mid -le $ac_hi; then
2827 ac_lo= ac_hi=
2828 break
2829 fi
2830 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2831 fi
2832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2833 done
2834 else
2835 ac_lo= ac_hi=
2836 fi
2837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2838 fi
2839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2840 # Binary search between lo and hi bounds.
2841 while test "x$ac_lo" != "x$ac_hi"; do
2842 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2844 /* end confdefs.h. */
2845 $4
2846 int
2847 main ()
2848 {
2849 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2850 test_array [0] = 0
2851
2852 ;
2853 return 0;
2854 }
2855 _ACEOF
2856 if ac_fn_c_try_compile "$LINENO"; then :
2857 ac_hi=$ac_mid
2858 else
2859 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2860 fi
2861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2862 done
2863 case $ac_lo in #((
2864 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2865 '') ac_retval=1 ;;
2866 esac
2867 else
2868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2869 /* end confdefs.h. */
2870 $4
2871 static long int longval () { return $2; }
2872 static unsigned long int ulongval () { return $2; }
2873 #include <stdio.h>
2874 #include <stdlib.h>
2875 int
2876 main ()
2877 {
2878
2879 FILE *f = fopen ("conftest.val", "w");
2880 if (! f)
2881 return 1;
2882 if (($2) < 0)
2883 {
2884 long int i = longval ();
2885 if (i != ($2))
2886 return 1;
2887 fprintf (f, "%ld", i);
2888 }
2889 else
2890 {
2891 unsigned long int i = ulongval ();
2892 if (i != ($2))
2893 return 1;
2894 fprintf (f, "%lu", i);
2895 }
2896 /* Do not output a trailing newline, as this causes \r\n confusion
2897 on some platforms. */
2898 return ferror (f) || fclose (f) != 0;
2899
2900 ;
2901 return 0;
2902 }
2903 _ACEOF
2904 if ac_fn_c_try_run "$LINENO"; then :
2905 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2906 else
2907 ac_retval=1
2908 fi
2909 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2910 conftest.$ac_objext conftest.beam conftest.$ac_ext
2911 rm -f conftest.val
2912
2913 fi
2914 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2915 return $ac_retval
2916
2917 } # ac_fn_c_compute_int
2918
2919 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2920 # -------------------------------------------
2921 # Tests whether TYPE exists after having included INCLUDES, setting cache
2922 # variable VAR accordingly.
2923 ac_fn_c_check_type ()
2924 {
2925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2927 $as_echo_n "checking for $2... " >&6; }
2928 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2929 $as_echo_n "(cached) " >&6
2930 else
2931 eval "$3=no"
2932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2933 /* end confdefs.h. */
2934 $4
2935 int
2936 main ()
2937 {
2938 if (sizeof ($2))
2939 return 0;
2940 ;
2941 return 0;
2942 }
2943 _ACEOF
2944 if ac_fn_c_try_compile "$LINENO"; then :
2945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2946 /* end confdefs.h. */
2947 $4
2948 int
2949 main ()
2950 {
2951 if (sizeof (($2)))
2952 return 0;
2953 ;
2954 return 0;
2955 }
2956 _ACEOF
2957 if ac_fn_c_try_compile "$LINENO"; then :
2958
2959 else
2960 eval "$3=yes"
2961 fi
2962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2963 fi
2964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2965 fi
2966 eval ac_res=\$$3
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2968 $as_echo "$ac_res" >&6; }
2969 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2970
2971 } # ac_fn_c_check_type
2972 cat >config.log <<_ACEOF
2973 This file contains any messages produced by compilers while
2974 running configure, to aid debugging if configure makes a mistake.
2975
2976 It was created by $as_me, which was
2977 generated by GNU Autoconf 2.64. Invocation command line was
2978
2979 $ $0 $@
2980
2981 _ACEOF
2982 exec 5>>config.log
2983 {
2984 cat <<_ASUNAME
2985 ## --------- ##
2986 ## Platform. ##
2987 ## --------- ##
2988
2989 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2990 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2991 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2992 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2993 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2994
2995 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2996 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2997
2998 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2999 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3000 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3001 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3002 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3003 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3004 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3005
3006 _ASUNAME
3007
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 for as_dir in $PATH
3010 do
3011 IFS=$as_save_IFS
3012 test -z "$as_dir" && as_dir=.
3013 $as_echo "PATH: $as_dir"
3014 done
3015 IFS=$as_save_IFS
3016
3017 } >&5
3018
3019 cat >&5 <<_ACEOF
3020
3021
3022 ## ----------- ##
3023 ## Core tests. ##
3024 ## ----------- ##
3025
3026 _ACEOF
3027
3028
3029 # Keep a trace of the command line.
3030 # Strip out --no-create and --no-recursion so they do not pile up.
3031 # Strip out --silent because we don't want to record it for future runs.
3032 # Also quote any args containing shell meta-characters.
3033 # Make two passes to allow for proper duplicate-argument suppression.
3034 ac_configure_args=
3035 ac_configure_args0=
3036 ac_configure_args1=
3037 ac_must_keep_next=false
3038 for ac_pass in 1 2
3039 do
3040 for ac_arg
3041 do
3042 case $ac_arg in
3043 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3045 | -silent | --silent | --silen | --sile | --sil)
3046 continue ;;
3047 *\'*)
3048 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3049 esac
3050 case $ac_pass in
3051 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3052 2)
3053 as_fn_append ac_configure_args1 " '$ac_arg'"
3054 if test $ac_must_keep_next = true; then
3055 ac_must_keep_next=false # Got value, back to normal.
3056 else
3057 case $ac_arg in
3058 *=* | --config-cache | -C | -disable-* | --disable-* \
3059 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3060 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3061 | -with-* | --with-* | -without-* | --without-* | --x)
3062 case "$ac_configure_args0 " in
3063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3064 esac
3065 ;;
3066 -* ) ac_must_keep_next=true ;;
3067 esac
3068 fi
3069 as_fn_append ac_configure_args " '$ac_arg'"
3070 ;;
3071 esac
3072 done
3073 done
3074 { ac_configure_args0=; unset ac_configure_args0;}
3075 { ac_configure_args1=; unset ac_configure_args1;}
3076
3077 # When interrupted or exit'd, cleanup temporary files, and complete
3078 # config.log. We remove comments because anyway the quotes in there
3079 # would cause problems or look ugly.
3080 # WARNING: Use '\'' to represent an apostrophe within the trap.
3081 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3082 trap 'exit_status=$?
3083 # Save into config.log some information that might help in debugging.
3084 {
3085 echo
3086
3087 cat <<\_ASBOX
3088 ## ---------------- ##
3089 ## Cache variables. ##
3090 ## ---------------- ##
3091 _ASBOX
3092 echo
3093 # The following way of writing the cache mishandles newlines in values,
3094 (
3095 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3096 eval ac_val=\$$ac_var
3097 case $ac_val in #(
3098 *${as_nl}*)
3099 case $ac_var in #(
3100 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3101 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3102 esac
3103 case $ac_var in #(
3104 _ | IFS | as_nl) ;; #(
3105 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3106 *) { eval $ac_var=; unset $ac_var;} ;;
3107 esac ;;
3108 esac
3109 done
3110 (set) 2>&1 |
3111 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3112 *${as_nl}ac_space=\ *)
3113 sed -n \
3114 "s/'\''/'\''\\\\'\'''\''/g;
3115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3116 ;; #(
3117 *)
3118 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3119 ;;
3120 esac |
3121 sort
3122 )
3123 echo
3124
3125 cat <<\_ASBOX
3126 ## ----------------- ##
3127 ## Output variables. ##
3128 ## ----------------- ##
3129 _ASBOX
3130 echo
3131 for ac_var in $ac_subst_vars
3132 do
3133 eval ac_val=\$$ac_var
3134 case $ac_val in
3135 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3136 esac
3137 $as_echo "$ac_var='\''$ac_val'\''"
3138 done | sort
3139 echo
3140
3141 if test -n "$ac_subst_files"; then
3142 cat <<\_ASBOX
3143 ## ------------------- ##
3144 ## File substitutions. ##
3145 ## ------------------- ##
3146 _ASBOX
3147 echo
3148 for ac_var in $ac_subst_files
3149 do
3150 eval ac_val=\$$ac_var
3151 case $ac_val in
3152 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3153 esac
3154 $as_echo "$ac_var='\''$ac_val'\''"
3155 done | sort
3156 echo
3157 fi
3158
3159 if test -s confdefs.h; then
3160 cat <<\_ASBOX
3161 ## ----------- ##
3162 ## confdefs.h. ##
3163 ## ----------- ##
3164 _ASBOX
3165 echo
3166 cat confdefs.h
3167 echo
3168 fi
3169 test "$ac_signal" != 0 &&
3170 $as_echo "$as_me: caught signal $ac_signal"
3171 $as_echo "$as_me: exit $exit_status"
3172 } >&5
3173 rm -f core *.core core.conftest.* &&
3174 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3175 exit $exit_status
3176 ' 0
3177 for ac_signal in 1 2 13 15; do
3178 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3179 done
3180 ac_signal=0
3181
3182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3183 rm -f -r conftest* confdefs.h
3184
3185 $as_echo "/* confdefs.h */" > confdefs.h
3186
3187 # Predefined preprocessor variables.
3188
3189 cat >>confdefs.h <<_ACEOF
3190 #define PACKAGE_NAME "$PACKAGE_NAME"
3191 _ACEOF
3192
3193 cat >>confdefs.h <<_ACEOF
3194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3195 _ACEOF
3196
3197 cat >>confdefs.h <<_ACEOF
3198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3199 _ACEOF
3200
3201 cat >>confdefs.h <<_ACEOF
3202 #define PACKAGE_STRING "$PACKAGE_STRING"
3203 _ACEOF
3204
3205 cat >>confdefs.h <<_ACEOF
3206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3207 _ACEOF
3208
3209 cat >>confdefs.h <<_ACEOF
3210 #define PACKAGE_URL "$PACKAGE_URL"
3211 _ACEOF
3212
3213
3214 # Let the site file select an alternate cache file if it wants to.
3215 # Prefer an explicitly selected file to automatically selected ones.
3216 ac_site_file1=NONE
3217 ac_site_file2=NONE
3218 if test -n "$CONFIG_SITE"; then
3219 ac_site_file1=$CONFIG_SITE
3220 elif test "x$prefix" != xNONE; then
3221 ac_site_file1=$prefix/share/config.site
3222 ac_site_file2=$prefix/etc/config.site
3223 else
3224 ac_site_file1=$ac_default_prefix/share/config.site
3225 ac_site_file2=$ac_default_prefix/etc/config.site
3226 fi
3227 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3228 do
3229 test "x$ac_site_file" = xNONE && continue
3230 if test -r "$ac_site_file"; then
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3232 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3233 sed 's/^/| /' "$ac_site_file" >&5
3234 . "$ac_site_file"
3235 fi
3236 done
3237
3238 if test -r "$cache_file"; then
3239 # Some versions of bash will fail to source /dev/null (special
3240 # files actually), so we avoid doing that.
3241 if test -f "$cache_file"; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3243 $as_echo "$as_me: loading cache $cache_file" >&6;}
3244 case $cache_file in
3245 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3246 *) . "./$cache_file";;
3247 esac
3248 fi
3249 else
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3251 $as_echo "$as_me: creating cache $cache_file" >&6;}
3252 >$cache_file
3253 fi
3254
3255 as_fn_append ac_func_list " canonicalize_file_name"
3256 as_fn_append ac_func_list " getcwd"
3257 as_fn_append ac_func_list " readlink"
3258 as_fn_append ac_func_list " realpath"
3259 as_fn_append ac_header_list " sys/param.h"
3260 as_fn_append ac_header_list " dirent.h"
3261 as_fn_append ac_func_list " btowc"
3262 as_fn_append ac_func_list " isblank"
3263 as_fn_append ac_func_list " iswctype"
3264 as_fn_append ac_func_list " mbsrtowcs"
3265 as_fn_append ac_func_list " mempcpy"
3266 as_fn_append ac_func_list " wmemchr"
3267 as_fn_append ac_func_list " wmemcpy"
3268 as_fn_append ac_func_list " wmempcpy"
3269 as_fn_append ac_header_list " wctype.h"
3270 gl_fnmatch_required=GNU
3271 as_fn_append ac_func_list " alarm"
3272 as_fn_append ac_header_list " wchar.h"
3273 as_fn_append ac_header_list " stdint.h"
3274 as_fn_append ac_header_list " inttypes.h"
3275 as_fn_append ac_header_list " unistd.h"
3276 as_fn_append ac_func_list " symlink"
3277 as_fn_append ac_func_list " lstat"
3278 as_fn_append ac_header_list " math.h"
3279 as_fn_append ac_func_list " mbsinit"
3280 as_fn_append ac_func_list " mbrtowc"
3281 as_fn_append ac_header_list " sys/mman.h"
3282 as_fn_append ac_func_list " mprotect"
3283 as_fn_append ac_func_list " link"
3284 as_fn_append ac_header_list " sys/stat.h"
3285 as_fn_append ac_header_list " sys/time.h"
3286 as_fn_append ac_header_list " features.h"
3287 as_fn_append ac_func_list " iswcntrl"
3288 # Check that the precious variables saved in the cache have kept the same
3289 # value.
3290 ac_cache_corrupted=false
3291 for ac_var in $ac_precious_vars; do
3292 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3293 eval ac_new_set=\$ac_env_${ac_var}_set
3294 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3295 eval ac_new_val=\$ac_env_${ac_var}_value
3296 case $ac_old_set,$ac_new_set in
3297 set,)
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3299 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3300 ac_cache_corrupted=: ;;
3301 ,set)
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3303 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3304 ac_cache_corrupted=: ;;
3305 ,);;
3306 *)
3307 if test "x$ac_old_val" != "x$ac_new_val"; then
3308 # differences in whitespace do not lead to failure.
3309 ac_old_val_w=`echo x $ac_old_val`
3310 ac_new_val_w=`echo x $ac_new_val`
3311 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3313 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3314 ac_cache_corrupted=:
3315 else
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3317 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3318 eval $ac_var=\$ac_old_val
3319 fi
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3321 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3323 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3324 fi;;
3325 esac
3326 # Pass precious variables to config.status.
3327 if test "$ac_new_set" = set; then
3328 case $ac_new_val in
3329 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3330 *) ac_arg=$ac_var=$ac_new_val ;;
3331 esac
3332 case " $ac_configure_args " in
3333 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3334 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3335 esac
3336 fi
3337 done
3338 if $ac_cache_corrupted; then
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3342 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3343 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3344 fi
3345 ## -------------------- ##
3346 ## Main body of script. ##
3347 ## -------------------- ##
3348
3349 ac_ext=c
3350 ac_cpp='$CPP $CPPFLAGS'
3351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3354
3355
3356 ac_config_headers="$ac_config_headers config.h:config.in"
3357
3358
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3360 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3361 # Check whether --enable-maintainer-mode was given.
3362 if test "${enable_maintainer_mode+set}" = set; then :
3363 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3364 else
3365 USE_MAINTAINER_MODE=no
3366 fi
3367
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3369 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3370 if test $USE_MAINTAINER_MODE = yes; then
3371 MAINTAINER_MODE_TRUE=
3372 MAINTAINER_MODE_FALSE='#'
3373 else
3374 MAINTAINER_MODE_TRUE='#'
3375 MAINTAINER_MODE_FALSE=
3376 fi
3377
3378 MAINT=$MAINTAINER_MODE_TRUE
3379
3380
3381
3382 ac_ext=c
3383 ac_cpp='$CPP $CPPFLAGS'
3384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3387 if test -n "$ac_tool_prefix"; then
3388 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3389 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391 $as_echo_n "checking for $ac_word... " >&6; }
3392 if test "${ac_cv_prog_CC+set}" = set; then :
3393 $as_echo_n "(cached) " >&6
3394 else
3395 if test -n "$CC"; then
3396 ac_cv_prog_CC="$CC" # Let the user override the test.
3397 else
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3400 do
3401 IFS=$as_save_IFS
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3405 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3407 break 2
3408 fi
3409 done
3410 done
3411 IFS=$as_save_IFS
3412
3413 fi
3414 fi
3415 CC=$ac_cv_prog_CC
3416 if test -n "$CC"; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3418 $as_echo "$CC" >&6; }
3419 else
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 $as_echo "no" >&6; }
3422 fi
3423
3424
3425 fi
3426 if test -z "$ac_cv_prog_CC"; then
3427 ac_ct_CC=$CC
3428 # Extract the first word of "gcc", so it can be a program name with args.
3429 set dummy gcc; ac_word=$2
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431 $as_echo_n "checking for $ac_word... " >&6; }
3432 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3433 $as_echo_n "(cached) " >&6
3434 else
3435 if test -n "$ac_ct_CC"; then
3436 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3437 else
3438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439 for as_dir in $PATH
3440 do
3441 IFS=$as_save_IFS
3442 test -z "$as_dir" && as_dir=.
3443 for ac_exec_ext in '' $ac_executable_extensions; do
3444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3445 ac_cv_prog_ac_ct_CC="gcc"
3446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 break 2
3448 fi
3449 done
3450 done
3451 IFS=$as_save_IFS
3452
3453 fi
3454 fi
3455 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3456 if test -n "$ac_ct_CC"; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3458 $as_echo "$ac_ct_CC" >&6; }
3459 else
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3461 $as_echo "no" >&6; }
3462 fi
3463
3464 if test "x$ac_ct_CC" = x; then
3465 CC=""
3466 else
3467 case $cross_compiling:$ac_tool_warned in
3468 yes:)
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3471 ac_tool_warned=yes ;;
3472 esac
3473 CC=$ac_ct_CC
3474 fi
3475 else
3476 CC="$ac_cv_prog_CC"
3477 fi
3478
3479 if test -z "$CC"; then
3480 if test -n "$ac_tool_prefix"; then
3481 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3482 set dummy ${ac_tool_prefix}cc; ac_word=$2
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484 $as_echo_n "checking for $ac_word... " >&6; }
3485 if test "${ac_cv_prog_CC+set}" = set; then :
3486 $as_echo_n "(cached) " >&6
3487 else
3488 if test -n "$CC"; then
3489 ac_cv_prog_CC="$CC" # Let the user override the test.
3490 else
3491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492 for as_dir in $PATH
3493 do
3494 IFS=$as_save_IFS
3495 test -z "$as_dir" && as_dir=.
3496 for ac_exec_ext in '' $ac_executable_extensions; do
3497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3498 ac_cv_prog_CC="${ac_tool_prefix}cc"
3499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 break 2
3501 fi
3502 done
3503 done
3504 IFS=$as_save_IFS
3505
3506 fi
3507 fi
3508 CC=$ac_cv_prog_CC
3509 if test -n "$CC"; then
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3511 $as_echo "$CC" >&6; }
3512 else
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514 $as_echo "no" >&6; }
3515 fi
3516
3517
3518 fi
3519 fi
3520 if test -z "$CC"; then
3521 # Extract the first word of "cc", so it can be a program name with args.
3522 set dummy cc; ac_word=$2
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3524 $as_echo_n "checking for $ac_word... " >&6; }
3525 if test "${ac_cv_prog_CC+set}" = set; then :
3526 $as_echo_n "(cached) " >&6
3527 else
3528 if test -n "$CC"; then
3529 ac_cv_prog_CC="$CC" # Let the user override the test.
3530 else
3531 ac_prog_rejected=no
3532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3533 for as_dir in $PATH
3534 do
3535 IFS=$as_save_IFS
3536 test -z "$as_dir" && as_dir=.
3537 for ac_exec_ext in '' $ac_executable_extensions; do
3538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3539 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3540 ac_prog_rejected=yes
3541 continue
3542 fi
3543 ac_cv_prog_CC="cc"
3544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3545 break 2
3546 fi
3547 done
3548 done
3549 IFS=$as_save_IFS
3550
3551 if test $ac_prog_rejected = yes; then
3552 # We found a bogon in the path, so make sure we never use it.
3553 set dummy $ac_cv_prog_CC
3554 shift
3555 if test $# != 0; then
3556 # We chose a different compiler from the bogus one.
3557 # However, it has the same basename, so the bogon will be chosen
3558 # first if we set CC to just the basename; use the full file name.
3559 shift
3560 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3561 fi
3562 fi
3563 fi
3564 fi
3565 CC=$ac_cv_prog_CC
3566 if test -n "$CC"; then
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3568 $as_echo "$CC" >&6; }
3569 else
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3571 $as_echo "no" >&6; }
3572 fi
3573
3574
3575 fi
3576 if test -z "$CC"; then
3577 if test -n "$ac_tool_prefix"; then
3578 for ac_prog in cl.exe
3579 do
3580 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3581 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3583 $as_echo_n "checking for $ac_word... " >&6; }
3584 if test "${ac_cv_prog_CC+set}" = set; then :
3585 $as_echo_n "(cached) " >&6
3586 else
3587 if test -n "$CC"; then
3588 ac_cv_prog_CC="$CC" # Let the user override the test.
3589 else
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3592 do
3593 IFS=$as_save_IFS
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3597 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3599 break 2
3600 fi
3601 done
3602 done
3603 IFS=$as_save_IFS
3604
3605 fi
3606 fi
3607 CC=$ac_cv_prog_CC
3608 if test -n "$CC"; then
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3610 $as_echo "$CC" >&6; }
3611 else
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613 $as_echo "no" >&6; }
3614 fi
3615
3616
3617 test -n "$CC" && break
3618 done
3619 fi
3620 if test -z "$CC"; then
3621 ac_ct_CC=$CC
3622 for ac_prog in cl.exe
3623 do
3624 # Extract the first word of "$ac_prog", so it can be a program name with args.
3625 set dummy $ac_prog; ac_word=$2
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3627 $as_echo_n "checking for $ac_word... " >&6; }
3628 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3629 $as_echo_n "(cached) " >&6
3630 else
3631 if test -n "$ac_ct_CC"; then
3632 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3633 else
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 for as_dir in $PATH
3636 do
3637 IFS=$as_save_IFS
3638 test -z "$as_dir" && as_dir=.
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3641 ac_cv_prog_ac_ct_CC="$ac_prog"
3642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3643 break 2
3644 fi
3645 done
3646 done
3647 IFS=$as_save_IFS
3648
3649 fi
3650 fi
3651 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3652 if test -n "$ac_ct_CC"; then
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3654 $as_echo "$ac_ct_CC" >&6; }
3655 else
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657 $as_echo "no" >&6; }
3658 fi
3659
3660
3661 test -n "$ac_ct_CC" && break
3662 done
3663
3664 if test "x$ac_ct_CC" = x; then
3665 CC=""
3666 else
3667 case $cross_compiling:$ac_tool_warned in
3668 yes:)
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3671 ac_tool_warned=yes ;;
3672 esac
3673 CC=$ac_ct_CC
3674 fi
3675 fi
3676
3677 fi
3678
3679
3680 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3682 as_fn_error "no acceptable C compiler found in \$PATH
3683 See \`config.log' for more details." "$LINENO" 5; }
3684
3685 # Provide some information about the compiler.
3686 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3687 set X $ac_compile
3688 ac_compiler=$2
3689 for ac_option in --version -v -V -qversion; do
3690 { { ac_try="$ac_compiler $ac_option >&5"
3691 case "(($ac_try" in
3692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3694 esac
3695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3696 $as_echo "$ac_try_echo"; } >&5
3697 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3698 ac_status=$?
3699 if test -s conftest.err; then
3700 sed '10a\
3701 ... rest of stderr output deleted ...
3702 10q' conftest.err >conftest.er1
3703 cat conftest.er1 >&5
3704 rm -f conftest.er1 conftest.err
3705 fi
3706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3707 test $ac_status = 0; }
3708 done
3709
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3712 #include <stdio.h>
3713 int
3714 main ()
3715 {
3716 FILE *f = fopen ("conftest.out", "w");
3717 return ferror (f) || fclose (f) != 0;
3718
3719 ;
3720 return 0;
3721 }
3722 _ACEOF
3723 ac_clean_files_save=$ac_clean_files
3724 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3725 # Try to create an executable without -o first, disregard a.out.
3726 # It will help us diagnose broken compilers, and finding out an intuition
3727 # of exeext.
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3729 $as_echo_n "checking for C compiler default output file name... " >&6; }
3730 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3731
3732 # The possible output files:
3733 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3734
3735 ac_rmfiles=
3736 for ac_file in $ac_files
3737 do
3738 case $ac_file in
3739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3740 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3741 esac
3742 done
3743 rm -f $ac_rmfiles
3744
3745 if { { ac_try="$ac_link_default"
3746 case "(($ac_try" in
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3749 esac
3750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751 $as_echo "$ac_try_echo"; } >&5
3752 (eval "$ac_link_default") 2>&5
3753 ac_status=$?
3754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3755 test $ac_status = 0; }; then :
3756 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3757 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3758 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3759 # so that the user can short-circuit this test for compilers unknown to
3760 # Autoconf.
3761 for ac_file in $ac_files ''
3762 do
3763 test -f "$ac_file" || continue
3764 case $ac_file in
3765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3766 ;;
3767 [ab].out )
3768 # We found the default executable, but exeext='' is most
3769 # certainly right.
3770 break;;
3771 *.* )
3772 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3773 then :; else
3774 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3775 fi
3776 # We set ac_cv_exeext here because the later test for it is not
3777 # safe: cross compilers may not add the suffix if given an `-o'
3778 # argument, so we may need to know it at that point already.
3779 # Even if this section looks crufty: it has the advantage of
3780 # actually working.
3781 break;;
3782 * )
3783 break;;
3784 esac
3785 done
3786 test "$ac_cv_exeext" = no && ac_cv_exeext=
3787
3788 else
3789 ac_file=''
3790 fi
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3792 $as_echo "$ac_file" >&6; }
3793 if test -z "$ac_file"; then :
3794 $as_echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.$ac_ext >&5
3796
3797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3799 { as_fn_set_status 77
3800 as_fn_error "C compiler cannot create executables
3801 See \`config.log' for more details." "$LINENO" 5; }; }
3802 fi
3803 ac_exeext=$ac_cv_exeext
3804
3805 # Check that the compiler produces executables we can run. If not, either
3806 # the compiler is broken, or we cross compile.
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3808 $as_echo_n "checking whether the C compiler works... " >&6; }
3809 # If not cross compiling, check that we can run a simple program.
3810 if test "$cross_compiling" != yes; then
3811 if { ac_try='./$ac_file'
3812 { { case "(($ac_try" in
3813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814 *) ac_try_echo=$ac_try;;
3815 esac
3816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3817 $as_echo "$ac_try_echo"; } >&5
3818 (eval "$ac_try") 2>&5
3819 ac_status=$?
3820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3821 test $ac_status = 0; }; }; then
3822 cross_compiling=no
3823 else
3824 if test "$cross_compiling" = maybe; then
3825 cross_compiling=yes
3826 else
3827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3829 as_fn_error "cannot run C compiled programs.
3830 If you meant to cross compile, use \`--host'.
3831 See \`config.log' for more details." "$LINENO" 5; }
3832 fi
3833 fi
3834 fi
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3836 $as_echo "yes" >&6; }
3837
3838 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3839 ac_clean_files=$ac_clean_files_save
3840 # Check that the compiler produces executables we can run. If not, either
3841 # the compiler is broken, or we cross compile.
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3843 $as_echo_n "checking whether we are cross compiling... " >&6; }
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3845 $as_echo "$cross_compiling" >&6; }
3846
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3848 $as_echo_n "checking for suffix of executables... " >&6; }
3849 if { { ac_try="$ac_link"
3850 case "(($ac_try" in
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3853 esac
3854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855 $as_echo "$ac_try_echo"; } >&5
3856 (eval "$ac_link") 2>&5
3857 ac_status=$?
3858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859 test $ac_status = 0; }; then :
3860 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3861 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3862 # work properly (i.e., refer to `conftest.exe'), while it won't with
3863 # `rm'.
3864 for ac_file in conftest.exe conftest conftest.*; do
3865 test -f "$ac_file" || continue
3866 case $ac_file in
3867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3868 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3869 break;;
3870 * ) break;;
3871 esac
3872 done
3873 else
3874 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3876 as_fn_error "cannot compute suffix of executables: cannot compile and link
3877 See \`config.log' for more details." "$LINENO" 5; }
3878 fi
3879 rm -f conftest$ac_cv_exeext
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3881 $as_echo "$ac_cv_exeext" >&6; }
3882
3883 rm -f conftest.$ac_ext
3884 EXEEXT=$ac_cv_exeext
3885 ac_exeext=$EXEEXT
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3887 $as_echo_n "checking for suffix of object files... " >&6; }
3888 if test "${ac_cv_objext+set}" = set; then :
3889 $as_echo_n "(cached) " >&6
3890 else
3891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3892 /* end confdefs.h. */
3893
3894 int
3895 main ()
3896 {
3897
3898 ;
3899 return 0;
3900 }
3901 _ACEOF
3902 rm -f conftest.o conftest.obj
3903 if { { ac_try="$ac_compile"
3904 case "(($ac_try" in
3905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906 *) ac_try_echo=$ac_try;;
3907 esac
3908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3909 $as_echo "$ac_try_echo"; } >&5
3910 (eval "$ac_compile") 2>&5
3911 ac_status=$?
3912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3913 test $ac_status = 0; }; then :
3914 for ac_file in conftest.o conftest.obj conftest.*; do
3915 test -f "$ac_file" || continue;
3916 case $ac_file in
3917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3918 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3919 break;;
3920 esac
3921 done
3922 else
3923 $as_echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3925
3926 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3928 as_fn_error "cannot compute suffix of object files: cannot compile
3929 See \`config.log' for more details." "$LINENO" 5; }
3930 fi
3931 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3932 fi
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3934 $as_echo "$ac_cv_objext" >&6; }
3935 OBJEXT=$ac_cv_objext
3936 ac_objext=$OBJEXT
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3938 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3939 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3940 $as_echo_n "(cached) " >&6
3941 else
3942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h. */
3944
3945 int
3946 main ()
3947 {
3948 #ifndef __GNUC__
3949 choke me
3950 #endif
3951
3952 ;
3953 return 0;
3954 }
3955 _ACEOF
3956 if ac_fn_c_try_compile "$LINENO"; then :
3957 ac_compiler_gnu=yes
3958 else
3959 ac_compiler_gnu=no
3960 fi
3961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3962 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3963
3964 fi
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3966 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3967 if test $ac_compiler_gnu = yes; then
3968 GCC=yes
3969 else
3970 GCC=
3971 fi
3972 ac_test_CFLAGS=${CFLAGS+set}
3973 ac_save_CFLAGS=$CFLAGS
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3975 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3976 if test "${ac_cv_prog_cc_g+set}" = set; then :
3977 $as_echo_n "(cached) " >&6
3978 else
3979 ac_save_c_werror_flag=$ac_c_werror_flag
3980 ac_c_werror_flag=yes
3981 ac_cv_prog_cc_g=no
3982 CFLAGS="-g"
3983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3984 /* end confdefs.h. */
3985
3986 int
3987 main ()
3988 {
3989
3990 ;
3991 return 0;
3992 }
3993 _ACEOF
3994 if ac_fn_c_try_compile "$LINENO"; then :
3995 ac_cv_prog_cc_g=yes
3996 else
3997 CFLAGS=""
3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4000
4001 int
4002 main ()
4003 {
4004
4005 ;
4006 return 0;
4007 }
4008 _ACEOF
4009 if ac_fn_c_try_compile "$LINENO"; then :
4010
4011 else
4012 ac_c_werror_flag=$ac_save_c_werror_flag
4013 CFLAGS="-g"
4014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015 /* end confdefs.h. */
4016
4017 int
4018 main ()
4019 {
4020
4021 ;
4022 return 0;
4023 }
4024 _ACEOF
4025 if ac_fn_c_try_compile "$LINENO"; then :
4026 ac_cv_prog_cc_g=yes
4027 fi
4028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4029 fi
4030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4031 fi
4032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4033 ac_c_werror_flag=$ac_save_c_werror_flag
4034 fi
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4036 $as_echo "$ac_cv_prog_cc_g" >&6; }
4037 if test "$ac_test_CFLAGS" = set; then
4038 CFLAGS=$ac_save_CFLAGS
4039 elif test $ac_cv_prog_cc_g = yes; then
4040 if test "$GCC" = yes; then
4041 CFLAGS="-g -O2"
4042 else
4043 CFLAGS="-g"
4044 fi
4045 else
4046 if test "$GCC" = yes; then
4047 CFLAGS="-O2"
4048 else
4049 CFLAGS=
4050 fi
4051 fi
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4053 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4054 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4055 $as_echo_n "(cached) " >&6
4056 else
4057 ac_cv_prog_cc_c89=no
4058 ac_save_CC=$CC
4059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4060 /* end confdefs.h. */
4061 #include <stdarg.h>
4062 #include <stdio.h>
4063 #include <sys/types.h>
4064 #include <sys/stat.h>
4065 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4066 struct buf { int x; };
4067 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4068 static char *e (p, i)
4069 char **p;
4070 int i;
4071 {
4072 return p[i];
4073 }
4074 static char *f (char * (*g) (char **, int), char **p, ...)
4075 {
4076 char *s;
4077 va_list v;
4078 va_start (v,p);
4079 s = g (p, va_arg (v,int));
4080 va_end (v);
4081 return s;
4082 }
4083
4084 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4085 function prototypes and stuff, but not '\xHH' hex character constants.
4086 These don't provoke an error unfortunately, instead are silently treated
4087 as 'x'. The following induces an error, until -std is added to get
4088 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4089 array size at least. It's necessary to write '\x00'==0 to get something
4090 that's true only with -std. */
4091 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4092
4093 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4094 inside strings and character constants. */
4095 #define FOO(x) 'x'
4096 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4097
4098 int test (int i, double x);
4099 struct s1 {int (*f) (int a);};
4100 struct s2 {int (*f) (double a);};
4101 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4102 int argc;
4103 char **argv;
4104 int
4105 main ()
4106 {
4107 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4108 ;
4109 return 0;
4110 }
4111 _ACEOF
4112 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4113 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4114 do
4115 CC="$ac_save_CC $ac_arg"
4116 if ac_fn_c_try_compile "$LINENO"; then :
4117 ac_cv_prog_cc_c89=$ac_arg
4118 fi
4119 rm -f core conftest.err conftest.$ac_objext
4120 test "x$ac_cv_prog_cc_c89" != "xno" && break
4121 done
4122 rm -f conftest.$ac_ext
4123 CC=$ac_save_CC
4124
4125 fi
4126 # AC_CACHE_VAL
4127 case "x$ac_cv_prog_cc_c89" in
4128 x)
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4130 $as_echo "none needed" >&6; } ;;
4131 xno)
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4133 $as_echo "unsupported" >&6; } ;;
4134 *)
4135 CC="$CC $ac_cv_prog_cc_c89"
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4137 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4138 esac
4139 if test "x$ac_cv_prog_cc_c89" != xno; then :
4140
4141 fi
4142
4143 ac_ext=c
4144 ac_cpp='$CPP $CPPFLAGS'
4145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4148
4149 ac_aux_dir=
4150 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
4151 for ac_t in install-sh install.sh shtool; do
4152 if test -f "$ac_dir/$ac_t"; then
4153 ac_aux_dir=$ac_dir
4154 ac_install_sh="$ac_aux_dir/$ac_t -c"
4155 break 2
4156 fi
4157 done
4158 done
4159 if test -z "$ac_aux_dir"; then
4160 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
4161 fi
4162
4163 # These three variables are undocumented and unsupported,
4164 # and are intended to be withdrawn in a future Autoconf release.
4165 # They can cause serious problems if a builder's source tree is in a directory
4166 # whose full name contains unusual characters.
4167 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4168 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4169 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4170
4171
4172 # Make sure we can run config.sub.
4173 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4174 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4175
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4177 $as_echo_n "checking build system type... " >&6; }
4178 if test "${ac_cv_build+set}" = set; then :
4179 $as_echo_n "(cached) " >&6
4180 else
4181 ac_build_alias=$build_alias
4182 test "x$ac_build_alias" = x &&
4183 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4184 test "x$ac_build_alias" = x &&
4185 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4186 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4187 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4188
4189 fi
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4191 $as_echo "$ac_cv_build" >&6; }
4192 case $ac_cv_build in
4193 *-*-*) ;;
4194 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4195 esac
4196 build=$ac_cv_build
4197 ac_save_IFS=$IFS; IFS='-'
4198 set x $ac_cv_build
4199 shift
4200 build_cpu=$1
4201 build_vendor=$2
4202 shift; shift
4203 # Remember, the first character of IFS is used to create $*,
4204 # except with old shells:
4205 build_os=$*
4206 IFS=$ac_save_IFS
4207 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4208
4209
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4211 $as_echo_n "checking host system type... " >&6; }
4212 if test "${ac_cv_host+set}" = set; then :
4213 $as_echo_n "(cached) " >&6
4214 else
4215 if test "x$host_alias" = x; then
4216 ac_cv_host=$ac_cv_build
4217 else
4218 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4219 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4220 fi
4221
4222 fi
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4224 $as_echo "$ac_cv_host" >&6; }
4225 case $ac_cv_host in
4226 *-*-*) ;;
4227 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4228 esac
4229 host=$ac_cv_host
4230 ac_save_IFS=$IFS; IFS='-'
4231 set x $ac_cv_host
4232 shift
4233 host_cpu=$1
4234 host_vendor=$2
4235 shift; shift
4236 # Remember, the first character of IFS is used to create $*,
4237 # except with old shells:
4238 host_os=$*
4239 IFS=$ac_save_IFS
4240 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4241
4242
4243
4244 ac_ext=c
4245 ac_cpp='$CPP $CPPFLAGS'
4246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4250 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4251 # On Suns, sometimes $CPP names a directory.
4252 if test -n "$CPP" && test -d "$CPP"; then
4253 CPP=
4254 fi
4255 if test -z "$CPP"; then
4256 if test "${ac_cv_prog_CPP+set}" = set; then :
4257 $as_echo_n "(cached) " >&6
4258 else
4259 # Double quotes because CPP needs to be expanded
4260 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4261 do
4262 ac_preproc_ok=false
4263 for ac_c_preproc_warn_flag in '' yes
4264 do
4265 # Use a header file that comes with gcc, so configuring glibc
4266 # with a fresh cross-compiler works.
4267 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4268 # <limits.h> exists even on freestanding compilers.
4269 # On the NeXT, cc -E runs the code through the compiler's parser,
4270 # not just through cpp. "Syntax error" is here to catch this case.
4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4272 /* end confdefs.h. */
4273 #ifdef __STDC__
4274 # include <limits.h>
4275 #else
4276 # include <assert.h>
4277 #endif
4278 Syntax error
4279 _ACEOF
4280 if ac_fn_c_try_cpp "$LINENO"; then :
4281
4282 else
4283 # Broken: fails on valid input.
4284 continue
4285 fi
4286 rm -f conftest.err conftest.$ac_ext
4287
4288 # OK, works on sane cases. Now check whether nonexistent headers
4289 # can be detected and how.
4290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291 /* end confdefs.h. */
4292 #include <ac_nonexistent.h>
4293 _ACEOF
4294 if ac_fn_c_try_cpp "$LINENO"; then :
4295 # Broken: success on invalid input.
4296 continue
4297 else
4298 # Passes both tests.
4299 ac_preproc_ok=:
4300 break
4301 fi
4302 rm -f conftest.err conftest.$ac_ext
4303
4304 done
4305 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4306 rm -f conftest.err conftest.$ac_ext
4307 if $ac_preproc_ok; then :
4308 break
4309 fi
4310
4311 done
4312 ac_cv_prog_CPP=$CPP
4313
4314 fi
4315 CPP=$ac_cv_prog_CPP
4316 else
4317 ac_cv_prog_CPP=$CPP
4318 fi
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4320 $as_echo "$CPP" >&6; }
4321 ac_preproc_ok=false
4322 for ac_c_preproc_warn_flag in '' yes
4323 do
4324 # Use a header file that comes with gcc, so configuring glibc
4325 # with a fresh cross-compiler works.
4326 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4327 # <limits.h> exists even on freestanding compilers.
4328 # On the NeXT, cc -E runs the code through the compiler's parser,
4329 # not just through cpp. "Syntax error" is here to catch this case.
4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4332 #ifdef __STDC__
4333 # include <limits.h>
4334 #else
4335 # include <assert.h>
4336 #endif
4337 Syntax error
4338 _ACEOF
4339 if ac_fn_c_try_cpp "$LINENO"; then :
4340
4341 else
4342 # Broken: fails on valid input.
4343 continue
4344 fi
4345 rm -f conftest.err conftest.$ac_ext
4346
4347 # OK, works on sane cases. Now check whether nonexistent headers
4348 # can be detected and how.
4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h. */
4351 #include <ac_nonexistent.h>
4352 _ACEOF
4353 if ac_fn_c_try_cpp "$LINENO"; then :
4354 # Broken: success on invalid input.
4355 continue
4356 else
4357 # Passes both tests.
4358 ac_preproc_ok=:
4359 break
4360 fi
4361 rm -f conftest.err conftest.$ac_ext
4362
4363 done
4364 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4365 rm -f conftest.err conftest.$ac_ext
4366 if $ac_preproc_ok; then :
4367
4368 else
4369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4371 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4372 See \`config.log' for more details." "$LINENO" 5; }
4373 fi
4374
4375 ac_ext=c
4376 ac_cpp='$CPP $CPPFLAGS'
4377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4380
4381
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4383 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4384 if test "${ac_cv_path_GREP+set}" = set; then :
4385 $as_echo_n "(cached) " >&6
4386 else
4387 if test -z "$GREP"; then
4388 ac_path_GREP_found=false
4389 # Loop through the user's path and test for each of PROGNAME-LIST
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4392 do
4393 IFS=$as_save_IFS
4394 test -z "$as_dir" && as_dir=.
4395 for ac_prog in grep ggrep; do
4396 for ac_exec_ext in '' $ac_executable_extensions; do
4397 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4398 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4399 # Check for GNU ac_path_GREP and select it if it is found.
4400 # Check for GNU $ac_path_GREP
4401 case `"$ac_path_GREP" --version 2>&1` in
4402 *GNU*)
4403 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4404 *)
4405 ac_count=0
4406 $as_echo_n 0123456789 >"conftest.in"
4407 while :
4408 do
4409 cat "conftest.in" "conftest.in" >"conftest.tmp"
4410 mv "conftest.tmp" "conftest.in"
4411 cp "conftest.in" "conftest.nl"
4412 $as_echo 'GREP' >> "conftest.nl"
4413 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4414 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4415 as_fn_arith $ac_count + 1 && ac_count=$as_val
4416 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4417 # Best one so far, save it but keep looking for a better one
4418 ac_cv_path_GREP="$ac_path_GREP"
4419 ac_path_GREP_max=$ac_count
4420 fi
4421 # 10*(2^10) chars as input seems more than enough
4422 test $ac_count -gt 10 && break
4423 done
4424 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4425 esac
4426
4427 $ac_path_GREP_found && break 3
4428 done
4429 done
4430 done
4431 IFS=$as_save_IFS
4432 if test -z "$ac_cv_path_GREP"; then
4433 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4434 fi
4435 else
4436 ac_cv_path_GREP=$GREP
4437 fi
4438
4439 fi
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4441 $as_echo "$ac_cv_path_GREP" >&6; }
4442 GREP="$ac_cv_path_GREP"
4443
4444
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4446 $as_echo_n "checking for egrep... " >&6; }
4447 if test "${ac_cv_path_EGREP+set}" = set; then :
4448 $as_echo_n "(cached) " >&6
4449 else
4450 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4451 then ac_cv_path_EGREP="$GREP -E"
4452 else
4453 if test -z "$EGREP"; then
4454 ac_path_EGREP_found=false
4455 # Loop through the user's path and test for each of PROGNAME-LIST
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4458 do
4459 IFS=$as_save_IFS
4460 test -z "$as_dir" && as_dir=.
4461 for ac_prog in egrep; do
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4464 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4465 # Check for GNU ac_path_EGREP and select it if it is found.
4466 # Check for GNU $ac_path_EGREP
4467 case `"$ac_path_EGREP" --version 2>&1` in
4468 *GNU*)
4469 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4470 *)
4471 ac_count=0
4472 $as_echo_n 0123456789 >"conftest.in"
4473 while :
4474 do
4475 cat "conftest.in" "conftest.in" >"conftest.tmp"
4476 mv "conftest.tmp" "conftest.in"
4477 cp "conftest.in" "conftest.nl"
4478 $as_echo 'EGREP' >> "conftest.nl"
4479 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4480 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4481 as_fn_arith $ac_count + 1 && ac_count=$as_val
4482 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4483 # Best one so far, save it but keep looking for a better one
4484 ac_cv_path_EGREP="$ac_path_EGREP"
4485 ac_path_EGREP_max=$ac_count
4486 fi
4487 # 10*(2^10) chars as input seems more than enough
4488 test $ac_count -gt 10 && break
4489 done
4490 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4491 esac
4492
4493 $ac_path_EGREP_found && break 3
4494 done
4495 done
4496 done
4497 IFS=$as_save_IFS
4498 if test -z "$ac_cv_path_EGREP"; then
4499 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4500 fi
4501 else
4502 ac_cv_path_EGREP=$EGREP
4503 fi
4504
4505 fi
4506 fi
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4508 $as_echo "$ac_cv_path_EGREP" >&6; }
4509 EGREP="$ac_cv_path_EGREP"
4510
4511
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4513 $as_echo_n "checking for ANSI C header files... " >&6; }
4514 if test "${ac_cv_header_stdc+set}" = set; then :
4515 $as_echo_n "(cached) " >&6
4516 else
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4519 #include <stdlib.h>
4520 #include <stdarg.h>
4521 #include <string.h>
4522 #include <float.h>
4523
4524 int
4525 main ()
4526 {
4527
4528 ;
4529 return 0;
4530 }
4531 _ACEOF
4532 if ac_fn_c_try_compile "$LINENO"; then :
4533 ac_cv_header_stdc=yes
4534 else
4535 ac_cv_header_stdc=no
4536 fi
4537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4538
4539 if test $ac_cv_header_stdc = yes; then
4540 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4543 #include <string.h>
4544
4545 _ACEOF
4546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4547 $EGREP "memchr" >/dev/null 2>&1; then :
4548
4549 else
4550 ac_cv_header_stdc=no
4551 fi
4552 rm -f conftest*
4553
4554 fi
4555
4556 if test $ac_cv_header_stdc = yes; then
4557 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4560 #include <stdlib.h>
4561
4562 _ACEOF
4563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4564 $EGREP "free" >/dev/null 2>&1; then :
4565
4566 else
4567 ac_cv_header_stdc=no
4568 fi
4569 rm -f conftest*
4570
4571 fi
4572
4573 if test $ac_cv_header_stdc = yes; then
4574 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4575 if test "$cross_compiling" = yes; then :
4576 :
4577 else
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4580 #include <ctype.h>
4581 #include <stdlib.h>
4582 #if ((' ' & 0x0FF) == 0x020)
4583 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4584 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4585 #else
4586 # define ISLOWER(c) \
4587 (('a' <= (c) && (c) <= 'i') \
4588 || ('j' <= (c) && (c) <= 'r') \
4589 || ('s' <= (c) && (c) <= 'z'))
4590 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4591 #endif
4592
4593 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4594 int
4595 main ()
4596 {
4597 int i;
4598 for (i = 0; i < 256; i++)
4599 if (XOR (islower (i), ISLOWER (i))
4600 || toupper (i) != TOUPPER (i))
4601 return 2;
4602 return 0;
4603 }
4604 _ACEOF
4605 if ac_fn_c_try_run "$LINENO"; then :
4606
4607 else
4608 ac_cv_header_stdc=no
4609 fi
4610 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4611 conftest.$ac_objext conftest.beam conftest.$ac_ext
4612 fi
4613
4614 fi
4615 fi
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4617 $as_echo "$ac_cv_header_stdc" >&6; }
4618 if test $ac_cv_header_stdc = yes; then
4619
4620 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4621
4622 fi
4623
4624 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4625 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4626 inttypes.h stdint.h unistd.h
4627 do :
4628 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4629 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4630 "
4631 eval as_val=\$$as_ac_Header
4632 if test "x$as_val" = x""yes; then :
4633 cat >>confdefs.h <<_ACEOF
4634 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4635 _ACEOF
4636
4637 fi
4638
4639 done
4640
4641
4642
4643
4644
4645 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4646 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4647 MINIX=yes
4648 else
4649 MINIX=
4650 fi
4651
4652
4653 if test "$MINIX" = yes; then
4654
4655 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4656
4657
4658 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4659
4660
4661 $as_echo "#define _MINIX 1" >>confdefs.h
4662
4663 fi
4664
4665 case "$host_os" in
4666 hpux*)
4667
4668 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4669
4670 ;;
4671 esac
4672
4673
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4675 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4676 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4677 $as_echo_n "(cached) " >&6
4678 else
4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h. */
4681
4682 # define __EXTENSIONS__ 1
4683 $ac_includes_default
4684 int
4685 main ()
4686 {
4687
4688 ;
4689 return 0;
4690 }
4691 _ACEOF
4692 if ac_fn_c_try_compile "$LINENO"; then :
4693 ac_cv_safe_to_define___extensions__=yes
4694 else
4695 ac_cv_safe_to_define___extensions__=no
4696 fi
4697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4698 fi
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4700 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4701 test $ac_cv_safe_to_define___extensions__ = yes &&
4702 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4703
4704 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4705
4706 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4707
4708 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4709
4710 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4711
4712 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4713
4714
4715
4716
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4718 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4719 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4720 $as_echo_n "(cached) " >&6
4721 else
4722
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4725
4726 #ifdef __ACK__
4727 Amsterdam
4728 #endif
4729
4730 _ACEOF
4731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4732 $EGREP "Amsterdam" >/dev/null 2>&1; then :
4733 gl_cv_c_amsterdam_compiler=yes
4734 else
4735 gl_cv_c_amsterdam_compiler=no
4736 fi
4737 rm -f conftest*
4738
4739
4740 fi
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4742 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4743 if test -z "$AR"; then
4744 if test $gl_cv_c_amsterdam_compiler = yes; then
4745 AR='cc -c.a'
4746 if test -z "$ARFLAGS"; then
4747 ARFLAGS='-o'
4748 fi
4749 else
4750 if test -n "$ac_tool_prefix"; then
4751 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4752 set dummy ${ac_tool_prefix}ar; ac_word=$2
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4754 $as_echo_n "checking for $ac_word... " >&6; }
4755 if test "${ac_cv_prog_AR+set}" = set; then :
4756 $as_echo_n "(cached) " >&6
4757 else
4758 if test -n "$AR"; then
4759 ac_cv_prog_AR="$AR" # Let the user override the test.
4760 else
4761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762 for as_dir in $PATH
4763 do
4764 IFS=$as_save_IFS
4765 test -z "$as_dir" && as_dir=.
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4768 ac_cv_prog_AR="${ac_tool_prefix}ar"
4769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 break 2
4771 fi
4772 done
4773 done
4774 IFS=$as_save_IFS
4775
4776 fi
4777 fi
4778 AR=$ac_cv_prog_AR
4779 if test -n "$AR"; then
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4781 $as_echo "$AR" >&6; }
4782 else
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784 $as_echo "no" >&6; }
4785 fi
4786
4787
4788 fi
4789 if test -z "$ac_cv_prog_AR"; then
4790 ac_ct_AR=$AR
4791 # Extract the first word of "ar", so it can be a program name with args.
4792 set dummy ar; ac_word=$2
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4794 $as_echo_n "checking for $ac_word... " >&6; }
4795 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4796 $as_echo_n "(cached) " >&6
4797 else
4798 if test -n "$ac_ct_AR"; then
4799 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4800 else
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802 for as_dir in $PATH
4803 do
4804 IFS=$as_save_IFS
4805 test -z "$as_dir" && as_dir=.
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4808 ac_cv_prog_ac_ct_AR="ar"
4809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 break 2
4811 fi
4812 done
4813 done
4814 IFS=$as_save_IFS
4815
4816 fi
4817 fi
4818 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4819 if test -n "$ac_ct_AR"; then
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4821 $as_echo "$ac_ct_AR" >&6; }
4822 else
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4824 $as_echo "no" >&6; }
4825 fi
4826
4827 if test "x$ac_ct_AR" = x; then
4828 AR="ar"
4829 else
4830 case $cross_compiling:$ac_tool_warned in
4831 yes:)
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4834 ac_tool_warned=yes ;;
4835 esac
4836 AR=$ac_ct_AR
4837 fi
4838 else
4839 AR="$ac_cv_prog_AR"
4840 fi
4841
4842 if test -z "$ARFLAGS"; then
4843 ARFLAGS='cru'
4844 fi
4845 fi
4846 else
4847 if test -z "$ARFLAGS"; then
4848 ARFLAGS='cru'
4849 fi
4850 fi
4851
4852
4853 if test -z "$RANLIB"; then
4854 if test $gl_cv_c_amsterdam_compiler = yes; then
4855 RANLIB=':'
4856 else
4857 if test -n "$ac_tool_prefix"; then
4858 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4859 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861 $as_echo_n "checking for $ac_word... " >&6; }
4862 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4863 $as_echo_n "(cached) " >&6
4864 else
4865 if test -n "$RANLIB"; then
4866 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4867 else
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 for as_dir in $PATH
4870 do
4871 IFS=$as_save_IFS
4872 test -z "$as_dir" && as_dir=.
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4875 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4877 break 2
4878 fi
4879 done
4880 done
4881 IFS=$as_save_IFS
4882
4883 fi
4884 fi
4885 RANLIB=$ac_cv_prog_RANLIB
4886 if test -n "$RANLIB"; then
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4888 $as_echo "$RANLIB" >&6; }
4889 else
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4891 $as_echo "no" >&6; }
4892 fi
4893
4894
4895 fi
4896 if test -z "$ac_cv_prog_RANLIB"; then
4897 ac_ct_RANLIB=$RANLIB
4898 # Extract the first word of "ranlib", so it can be a program name with args.
4899 set dummy ranlib; ac_word=$2
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4901 $as_echo_n "checking for $ac_word... " >&6; }
4902 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4903 $as_echo_n "(cached) " >&6
4904 else
4905 if test -n "$ac_ct_RANLIB"; then
4906 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4907 else
4908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 for as_dir in $PATH
4910 do
4911 IFS=$as_save_IFS
4912 test -z "$as_dir" && as_dir=.
4913 for ac_exec_ext in '' $ac_executable_extensions; do
4914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4915 ac_cv_prog_ac_ct_RANLIB="ranlib"
4916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4917 break 2
4918 fi
4919 done
4920 done
4921 IFS=$as_save_IFS
4922
4923 fi
4924 fi
4925 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4926 if test -n "$ac_ct_RANLIB"; then
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4928 $as_echo "$ac_ct_RANLIB" >&6; }
4929 else
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4931 $as_echo "no" >&6; }
4932 fi
4933
4934 if test "x$ac_ct_RANLIB" = x; then
4935 RANLIB=":"
4936 else
4937 case $cross_compiling:$ac_tool_warned in
4938 yes:)
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4941 ac_tool_warned=yes ;;
4942 esac
4943 RANLIB=$ac_ct_RANLIB
4944 fi
4945 else
4946 RANLIB="$ac_cv_prog_RANLIB"
4947 fi
4948
4949 fi
4950 fi
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962 # IEEE behaviour is the default on all CPUs except Alpha and SH
4963 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
4964 # and the GCC 4.1.2 manual).
4965 case "$host_cpu" in
4966 alpha*)
4967 # On Alpha systems, a compiler option provides the behaviour.
4968 # See the ieee(3) manual page, also available at
4969 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
4970 if test -n "$GCC"; then
4971 # GCC has the option -mieee.
4972 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
4973 CPPFLAGS="$CPPFLAGS -mieee"
4974 else
4975 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
4976 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
4977 CPPFLAGS="$CPPFLAGS -ieee"
4978 fi
4979 ;;
4980 sh*)
4981 if test -n "$GCC"; then
4982 # GCC has the option -mieee.
4983 CPPFLAGS="$CPPFLAGS -mieee"
4984 fi
4985 ;;
4986 esac
4987
4988 # Check whether --enable-largefile was given.
4989 if test "${enable_largefile+set}" = set; then :
4990 enableval=$enable_largefile;
4991 fi
4992
4993 if test "$enable_largefile" != no; then
4994
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4996 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4997 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
4998 $as_echo_n "(cached) " >&6
4999 else
5000 ac_cv_sys_largefile_CC=no
5001 if test "$GCC" != yes; then
5002 ac_save_CC=$CC
5003 while :; do
5004 # IRIX 6.2 and later do not support large files by default,
5005 # so use the C compiler's -n32 option if that helps.
5006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007 /* end confdefs.h. */
5008 #include <sys/types.h>
5009 /* Check that off_t can represent 2**63 - 1 correctly.
5010 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5011 since some C++ compilers masquerading as C compilers
5012 incorrectly reject 9223372036854775807. */
5013 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5015 && LARGE_OFF_T % 2147483647 == 1)
5016 ? 1 : -1];
5017 int
5018 main ()
5019 {
5020
5021 ;
5022 return 0;
5023 }
5024 _ACEOF
5025 if ac_fn_c_try_compile "$LINENO"; then :
5026 break
5027 fi
5028 rm -f core conftest.err conftest.$ac_objext
5029 CC="$CC -n32"
5030 if ac_fn_c_try_compile "$LINENO"; then :
5031 ac_cv_sys_largefile_CC=' -n32'; break
5032 fi
5033 rm -f core conftest.err conftest.$ac_objext
5034 break
5035 done
5036 CC=$ac_save_CC
5037 rm -f conftest.$ac_ext
5038 fi
5039 fi
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5041 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5042 if test "$ac_cv_sys_largefile_CC" != no; then
5043 CC=$CC$ac_cv_sys_largefile_CC
5044 fi
5045
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5047 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5048 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5049 $as_echo_n "(cached) " >&6
5050 else
5051 while :; do
5052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5053 /* end confdefs.h. */
5054 #include <sys/types.h>
5055 /* Check that off_t can represent 2**63 - 1 correctly.
5056 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5057 since some C++ compilers masquerading as C compilers
5058 incorrectly reject 9223372036854775807. */
5059 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5060 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5061 && LARGE_OFF_T % 2147483647 == 1)
5062 ? 1 : -1];
5063 int
5064 main ()
5065 {
5066
5067 ;
5068 return 0;
5069 }
5070 _ACEOF
5071 if ac_fn_c_try_compile "$LINENO"; then :
5072 ac_cv_sys_file_offset_bits=no; break
5073 fi
5074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5077 #define _FILE_OFFSET_BITS 64
5078 #include <sys/types.h>
5079 /* Check that off_t can represent 2**63 - 1 correctly.
5080 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5081 since some C++ compilers masquerading as C compilers
5082 incorrectly reject 9223372036854775807. */
5083 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5084 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5085 && LARGE_OFF_T % 2147483647 == 1)
5086 ? 1 : -1];
5087 int
5088 main ()
5089 {
5090
5091 ;
5092 return 0;
5093 }
5094 _ACEOF
5095 if ac_fn_c_try_compile "$LINENO"; then :
5096 ac_cv_sys_file_offset_bits=64; break
5097 fi
5098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5099 ac_cv_sys_file_offset_bits=unknown
5100 break
5101 done
5102 fi
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5104 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5105 case $ac_cv_sys_file_offset_bits in #(
5106 no | unknown) ;;
5107 *)
5108 cat >>confdefs.h <<_ACEOF
5109 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5110 _ACEOF
5111 ;;
5112 esac
5113 rm -rf conftest*
5114 if test $ac_cv_sys_file_offset_bits = unknown; then
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5116 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5117 if test "${ac_cv_sys_large_files+set}" = set; then :
5118 $as_echo_n "(cached) " >&6
5119 else
5120 while :; do
5121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122 /* end confdefs.h. */
5123 #include <sys/types.h>
5124 /* Check that off_t can represent 2**63 - 1 correctly.
5125 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5126 since some C++ compilers masquerading as C compilers
5127 incorrectly reject 9223372036854775807. */
5128 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5129 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5130 && LARGE_OFF_T % 2147483647 == 1)
5131 ? 1 : -1];
5132 int
5133 main ()
5134 {
5135
5136 ;
5137 return 0;
5138 }
5139 _ACEOF
5140 if ac_fn_c_try_compile "$LINENO"; then :
5141 ac_cv_sys_large_files=no; break
5142 fi
5143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5145 /* end confdefs.h. */
5146 #define _LARGE_FILES 1
5147 #include <sys/types.h>
5148 /* Check that off_t can represent 2**63 - 1 correctly.
5149 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5150 since some C++ compilers masquerading as C compilers
5151 incorrectly reject 9223372036854775807. */
5152 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5153 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5154 && LARGE_OFF_T % 2147483647 == 1)
5155 ? 1 : -1];
5156 int
5157 main ()
5158 {
5159
5160 ;
5161 return 0;
5162 }
5163 _ACEOF
5164 if ac_fn_c_try_compile "$LINENO"; then :
5165 ac_cv_sys_large_files=1; break
5166 fi
5167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5168 ac_cv_sys_large_files=unknown
5169 break
5170 done
5171 fi
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5173 $as_echo "$ac_cv_sys_large_files" >&6; }
5174 case $ac_cv_sys_large_files in #(
5175 no | unknown) ;;
5176 *)
5177 cat >>confdefs.h <<_ACEOF
5178 #define _LARGE_FILES $ac_cv_sys_large_files
5179 _ACEOF
5180 ;;
5181 esac
5182 rm -rf conftest*
5183 fi
5184
5185
5186 fi
5187
5188
5189
5190 # Code from module alloca:
5191 # Code from module alloca-opt:
5192 # Code from module canonicalize-lgpl:
5193 # Code from module chdir:
5194 # Code from module configmake:
5195 # Code from module dirent:
5196 # Code from module dirfd:
5197 # Code from module dirname-lgpl:
5198 # Code from module dosname:
5199 # Code from module double-slash-root:
5200 # Code from module errno:
5201 # Code from module extensions:
5202
5203 # Code from module extern-inline:
5204 # Code from module float:
5205 # Code from module fnmatch:
5206 # Code from module fnmatch-gnu:
5207 # Code from module fpieee:
5208
5209 # Code from module fpucw:
5210 # Code from module frexp:
5211 # Code from module frexpl:
5212 # Code from module include_next:
5213 # Code from module inttypes:
5214 # Code from module inttypes-incomplete:
5215 # Code from module isnand-nolibm:
5216 # Code from module isnanl-nolibm:
5217 # Code from module largefile:
5218
5219 # Code from module localcharset:
5220 # Code from module lstat:
5221 # Code from module malloc-posix:
5222 # Code from module malloca:
5223 # Code from module math:
5224 # Code from module mbrtowc:
5225 # Code from module mbsinit:
5226 # Code from module mbsrtowcs:
5227 # Code from module memchr:
5228 # Code from module memmem:
5229 # Code from module memmem-simple:
5230 # Code from module multiarch:
5231 # Code from module nocrash:
5232 # Code from module pathmax:
5233 # Code from module readlink:
5234 # Code from module rename:
5235 # Code from module rmdir:
5236 # Code from module same-inode:
5237 # Code from module snippet/_Noreturn:
5238 # Code from module snippet/arg-nonnull:
5239 # Code from module snippet/c++defs:
5240 # Code from module snippet/warn-on-use:
5241 # Code from module ssize_t:
5242 # Code from module stat:
5243 # Code from module stdbool:
5244 # Code from module stddef:
5245 # Code from module stdint:
5246 # Code from module stdio:
5247 # Code from module stdlib:
5248 # Code from module streq:
5249 # Code from module string:
5250 # Code from module strnlen1:
5251 # Code from module strstr:
5252 # Code from module strstr-simple:
5253 # Code from module strtok_r:
5254 # Code from module sys_stat:
5255 # Code from module sys_types:
5256 # Code from module time:
5257 # Code from module unistd:
5258 # Code from module update-copyright:
5259 # Code from module verify:
5260 # Code from module wchar:
5261 # Code from module wctype-h:
5262
5263 ac_ext=c
5264 ac_cpp='$CPP $CPPFLAGS'
5265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5268 if test -n "$ac_tool_prefix"; then
5269 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5270 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5272 $as_echo_n "checking for $ac_word... " >&6; }
5273 if test "${ac_cv_prog_CC+set}" = set; then :
5274 $as_echo_n "(cached) " >&6
5275 else
5276 if test -n "$CC"; then
5277 ac_cv_prog_CC="$CC" # Let the user override the test.
5278 else
5279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 for as_dir in $PATH
5281 do
5282 IFS=$as_save_IFS
5283 test -z "$as_dir" && as_dir=.
5284 for ac_exec_ext in '' $ac_executable_extensions; do
5285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5286 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5288 break 2
5289 fi
5290 done
5291 done
5292 IFS=$as_save_IFS
5293
5294 fi
5295 fi
5296 CC=$ac_cv_prog_CC
5297 if test -n "$CC"; then
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5299 $as_echo "$CC" >&6; }
5300 else
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5302 $as_echo "no" >&6; }
5303 fi
5304
5305
5306 fi
5307 if test -z "$ac_cv_prog_CC"; then
5308 ac_ct_CC=$CC
5309 # Extract the first word of "gcc", so it can be a program name with args.
5310 set dummy gcc; ac_word=$2
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5312 $as_echo_n "checking for $ac_word... " >&6; }
5313 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5314 $as_echo_n "(cached) " >&6
5315 else
5316 if test -n "$ac_ct_CC"; then
5317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5318 else
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320 for as_dir in $PATH
5321 do
5322 IFS=$as_save_IFS
5323 test -z "$as_dir" && as_dir=.
5324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5326 ac_cv_prog_ac_ct_CC="gcc"
5327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5328 break 2
5329 fi
5330 done
5331 done
5332 IFS=$as_save_IFS
5333
5334 fi
5335 fi
5336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5337 if test -n "$ac_ct_CC"; then
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5339 $as_echo "$ac_ct_CC" >&6; }
5340 else
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342 $as_echo "no" >&6; }
5343 fi
5344
5345 if test "x$ac_ct_CC" = x; then
5346 CC=""
5347 else
5348 case $cross_compiling:$ac_tool_warned in
5349 yes:)
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5352 ac_tool_warned=yes ;;
5353 esac
5354 CC=$ac_ct_CC
5355 fi
5356 else
5357 CC="$ac_cv_prog_CC"
5358 fi
5359
5360 if test -z "$CC"; then
5361 if test -n "$ac_tool_prefix"; then
5362 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5363 set dummy ${ac_tool_prefix}cc; ac_word=$2
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5365 $as_echo_n "checking for $ac_word... " >&6; }
5366 if test "${ac_cv_prog_CC+set}" = set; then :
5367 $as_echo_n "(cached) " >&6
5368 else
5369 if test -n "$CC"; then
5370 ac_cv_prog_CC="$CC" # Let the user override the test.
5371 else
5372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373 for as_dir in $PATH
5374 do
5375 IFS=$as_save_IFS
5376 test -z "$as_dir" && as_dir=.
5377 for ac_exec_ext in '' $ac_executable_extensions; do
5378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5379 ac_cv_prog_CC="${ac_tool_prefix}cc"
5380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5381 break 2
5382 fi
5383 done
5384 done
5385 IFS=$as_save_IFS
5386
5387 fi
5388 fi
5389 CC=$ac_cv_prog_CC
5390 if test -n "$CC"; then
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5392 $as_echo "$CC" >&6; }
5393 else
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395 $as_echo "no" >&6; }
5396 fi
5397
5398
5399 fi
5400 fi
5401 if test -z "$CC"; then
5402 # Extract the first word of "cc", so it can be a program name with args.
5403 set dummy cc; ac_word=$2
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5405 $as_echo_n "checking for $ac_word... " >&6; }
5406 if test "${ac_cv_prog_CC+set}" = set; then :
5407 $as_echo_n "(cached) " >&6
5408 else
5409 if test -n "$CC"; then
5410 ac_cv_prog_CC="$CC" # Let the user override the test.
5411 else
5412 ac_prog_rejected=no
5413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5414 for as_dir in $PATH
5415 do
5416 IFS=$as_save_IFS
5417 test -z "$as_dir" && as_dir=.
5418 for ac_exec_ext in '' $ac_executable_extensions; do
5419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5420 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5421 ac_prog_rejected=yes
5422 continue
5423 fi
5424 ac_cv_prog_CC="cc"
5425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5426 break 2
5427 fi
5428 done
5429 done
5430 IFS=$as_save_IFS
5431
5432 if test $ac_prog_rejected = yes; then
5433 # We found a bogon in the path, so make sure we never use it.
5434 set dummy $ac_cv_prog_CC
5435 shift
5436 if test $# != 0; then
5437 # We chose a different compiler from the bogus one.
5438 # However, it has the same basename, so the bogon will be chosen
5439 # first if we set CC to just the basename; use the full file name.
5440 shift
5441 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5442 fi
5443 fi
5444 fi
5445 fi
5446 CC=$ac_cv_prog_CC
5447 if test -n "$CC"; then
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5449 $as_echo "$CC" >&6; }
5450 else
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452 $as_echo "no" >&6; }
5453 fi
5454
5455
5456 fi
5457 if test -z "$CC"; then
5458 if test -n "$ac_tool_prefix"; then
5459 for ac_prog in cl.exe
5460 do
5461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5464 $as_echo_n "checking for $ac_word... " >&6; }
5465 if test "${ac_cv_prog_CC+set}" = set; then :
5466 $as_echo_n "(cached) " >&6
5467 else
5468 if test -n "$CC"; then
5469 ac_cv_prog_CC="$CC" # Let the user override the test.
5470 else
5471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472 for as_dir in $PATH
5473 do
5474 IFS=$as_save_IFS
5475 test -z "$as_dir" && as_dir=.
5476 for ac_exec_ext in '' $ac_executable_extensions; do
5477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5478 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5480 break 2
5481 fi
5482 done
5483 done
5484 IFS=$as_save_IFS
5485
5486 fi
5487 fi
5488 CC=$ac_cv_prog_CC
5489 if test -n "$CC"; then
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5491 $as_echo "$CC" >&6; }
5492 else
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494 $as_echo "no" >&6; }
5495 fi
5496
5497
5498 test -n "$CC" && break
5499 done
5500 fi
5501 if test -z "$CC"; then
5502 ac_ct_CC=$CC
5503 for ac_prog in cl.exe
5504 do
5505 # Extract the first word of "$ac_prog", so it can be a program name with args.
5506 set dummy $ac_prog; ac_word=$2
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5508 $as_echo_n "checking for $ac_word... " >&6; }
5509 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5510 $as_echo_n "(cached) " >&6
5511 else
5512 if test -n "$ac_ct_CC"; then
5513 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5514 else
5515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 for as_dir in $PATH
5517 do
5518 IFS=$as_save_IFS
5519 test -z "$as_dir" && as_dir=.
5520 for ac_exec_ext in '' $ac_executable_extensions; do
5521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5522 ac_cv_prog_ac_ct_CC="$ac_prog"
5523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5524 break 2
5525 fi
5526 done
5527 done
5528 IFS=$as_save_IFS
5529
5530 fi
5531 fi
5532 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5533 if test -n "$ac_ct_CC"; then
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5535 $as_echo "$ac_ct_CC" >&6; }
5536 else
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5538 $as_echo "no" >&6; }
5539 fi
5540
5541
5542 test -n "$ac_ct_CC" && break
5543 done
5544
5545 if test "x$ac_ct_CC" = x; then
5546 CC=""
5547 else
5548 case $cross_compiling:$ac_tool_warned in
5549 yes:)
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5552 ac_tool_warned=yes ;;
5553 esac
5554 CC=$ac_ct_CC
5555 fi
5556 fi
5557
5558 fi
5559
5560
5561 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5563 as_fn_error "no acceptable C compiler found in \$PATH
5564 See \`config.log' for more details." "$LINENO" 5; }
5565
5566 # Provide some information about the compiler.
5567 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5568 set X $ac_compile
5569 ac_compiler=$2
5570 for ac_option in --version -v -V -qversion; do
5571 { { ac_try="$ac_compiler $ac_option >&5"
5572 case "(($ac_try" in
5573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574 *) ac_try_echo=$ac_try;;
5575 esac
5576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5577 $as_echo "$ac_try_echo"; } >&5
5578 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5579 ac_status=$?
5580 if test -s conftest.err; then
5581 sed '10a\
5582 ... rest of stderr output deleted ...
5583 10q' conftest.err >conftest.er1
5584 cat conftest.er1 >&5
5585 rm -f conftest.er1 conftest.err
5586 fi
5587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5588 test $ac_status = 0; }
5589 done
5590
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5592 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5593 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5594 $as_echo_n "(cached) " >&6
5595 else
5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597 /* end confdefs.h. */
5598
5599 int
5600 main ()
5601 {
5602 #ifndef __GNUC__
5603 choke me
5604 #endif
5605
5606 ;
5607 return 0;
5608 }
5609 _ACEOF
5610 if ac_fn_c_try_compile "$LINENO"; then :
5611 ac_compiler_gnu=yes
5612 else
5613 ac_compiler_gnu=no
5614 fi
5615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5616 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5617
5618 fi
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5620 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5621 if test $ac_compiler_gnu = yes; then
5622 GCC=yes
5623 else
5624 GCC=
5625 fi
5626 ac_test_CFLAGS=${CFLAGS+set}
5627 ac_save_CFLAGS=$CFLAGS
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5629 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5630 if test "${ac_cv_prog_cc_g+set}" = set; then :
5631 $as_echo_n "(cached) " >&6
5632 else
5633 ac_save_c_werror_flag=$ac_c_werror_flag
5634 ac_c_werror_flag=yes
5635 ac_cv_prog_cc_g=no
5636 CFLAGS="-g"
5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5638 /* end confdefs.h. */
5639
5640 int
5641 main ()
5642 {
5643
5644 ;
5645 return 0;
5646 }
5647 _ACEOF
5648 if ac_fn_c_try_compile "$LINENO"; then :
5649 ac_cv_prog_cc_g=yes
5650 else
5651 CFLAGS=""
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h. */
5654
5655 int
5656 main ()
5657 {
5658
5659 ;
5660 return 0;
5661 }
5662 _ACEOF
5663 if ac_fn_c_try_compile "$LINENO"; then :
5664
5665 else
5666 ac_c_werror_flag=$ac_save_c_werror_flag
5667 CFLAGS="-g"
5668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5669 /* end confdefs.h. */
5670
5671 int
5672 main ()
5673 {
5674
5675 ;
5676 return 0;
5677 }
5678 _ACEOF
5679 if ac_fn_c_try_compile "$LINENO"; then :
5680 ac_cv_prog_cc_g=yes
5681 fi
5682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5683 fi
5684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5685 fi
5686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5687 ac_c_werror_flag=$ac_save_c_werror_flag
5688 fi
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5690 $as_echo "$ac_cv_prog_cc_g" >&6; }
5691 if test "$ac_test_CFLAGS" = set; then
5692 CFLAGS=$ac_save_CFLAGS
5693 elif test $ac_cv_prog_cc_g = yes; then
5694 if test "$GCC" = yes; then
5695 CFLAGS="-g -O2"
5696 else
5697 CFLAGS="-g"
5698 fi
5699 else
5700 if test "$GCC" = yes; then
5701 CFLAGS="-O2"
5702 else
5703 CFLAGS=
5704 fi
5705 fi
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5707 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5708 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5709 $as_echo_n "(cached) " >&6
5710 else
5711 ac_cv_prog_cc_c89=no
5712 ac_save_CC=$CC
5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h. */
5715 #include <stdarg.h>
5716 #include <stdio.h>
5717 #include <sys/types.h>
5718 #include <sys/stat.h>
5719 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5720 struct buf { int x; };
5721 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5722 static char *e (p, i)
5723 char **p;
5724 int i;
5725 {
5726 return p[i];
5727 }
5728 static char *f (char * (*g) (char **, int), char **p, ...)
5729 {
5730 char *s;
5731 va_list v;
5732 va_start (v,p);
5733 s = g (p, va_arg (v,int));
5734 va_end (v);
5735 return s;
5736 }
5737
5738 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5739 function prototypes and stuff, but not '\xHH' hex character constants.
5740 These don't provoke an error unfortunately, instead are silently treated
5741 as 'x'. The following induces an error, until -std is added to get
5742 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5743 array size at least. It's necessary to write '\x00'==0 to get something
5744 that's true only with -std. */
5745 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5746
5747 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5748 inside strings and character constants. */
5749 #define FOO(x) 'x'
5750 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5751
5752 int test (int i, double x);
5753 struct s1 {int (*f) (int a);};
5754 struct s2 {int (*f) (double a);};
5755 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5756 int argc;
5757 char **argv;
5758 int
5759 main ()
5760 {
5761 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5762 ;
5763 return 0;
5764 }
5765 _ACEOF
5766 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5767 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5768 do
5769 CC="$ac_save_CC $ac_arg"
5770 if ac_fn_c_try_compile "$LINENO"; then :
5771 ac_cv_prog_cc_c89=$ac_arg
5772 fi
5773 rm -f core conftest.err conftest.$ac_objext
5774 test "x$ac_cv_prog_cc_c89" != "xno" && break
5775 done
5776 rm -f conftest.$ac_ext
5777 CC=$ac_save_CC
5778
5779 fi
5780 # AC_CACHE_VAL
5781 case "x$ac_cv_prog_cc_c89" in
5782 x)
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5784 $as_echo "none needed" >&6; } ;;
5785 xno)
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5787 $as_echo "unsupported" >&6; } ;;
5788 *)
5789 CC="$CC $ac_cv_prog_cc_c89"
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5791 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5792 esac
5793 if test "x$ac_cv_prog_cc_c89" != xno; then :
5794
5795 fi
5796
5797 ac_ext=c
5798 ac_cpp='$CPP $CPPFLAGS'
5799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5802
5803
5804 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5805
5806
5807 ac_aux_dir=
5808 for ac_dir in ../.. "$srcdir"/../..; do
5809 for ac_t in install-sh install.sh shtool; do
5810 if test -f "$ac_dir/$ac_t"; then
5811 ac_aux_dir=$ac_dir
5812 ac_install_sh="$ac_aux_dir/$ac_t -c"
5813 break 2
5814 fi
5815 done
5816 done
5817 if test -z "$ac_aux_dir"; then
5818 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5819 fi
5820
5821 # These three variables are undocumented and unsupported,
5822 # and are intended to be withdrawn in a future Autoconf release.
5823 # They can cause serious problems if a builder's source tree is in a directory
5824 # whose full name contains unusual characters.
5825 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5826 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5827 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5828
5829
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5831 $as_echo_n "checking target system type... " >&6; }
5832 if test "${ac_cv_target+set}" = set; then :
5833 $as_echo_n "(cached) " >&6
5834 else
5835 if test "x$target_alias" = x; then
5836 ac_cv_target=$ac_cv_host
5837 else
5838 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5839 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5840 fi
5841
5842 fi
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5844 $as_echo "$ac_cv_target" >&6; }
5845 case $ac_cv_target in
5846 *-*-*) ;;
5847 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5848 esac
5849 target=$ac_cv_target
5850 ac_save_IFS=$IFS; IFS='-'
5851 set x $ac_cv_target
5852 shift
5853 target_cpu=$1
5854 target_vendor=$2
5855 shift; shift
5856 # Remember, the first character of IFS is used to create $*,
5857 # except with old shells:
5858 target_os=$*
5859 IFS=$ac_save_IFS
5860 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5861
5862
5863 # The aliases save the names the user supplied, while $host etc.
5864 # will get canonicalized.
5865 test -n "$target_alias" &&
5866 test "$program_prefix$program_suffix$program_transform_name" = \
5867 NONENONEs,x,x, &&
5868 program_prefix=${target_alias}-
5869
5870
5871
5872
5873
5874
5875
5876 LIBC_FATAL_STDERR_=1
5877 export LIBC_FATAL_STDERR_
5878
5879 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5880 # for constant arguments. Useless!
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5882 $as_echo_n "checking for working alloca.h... " >&6; }
5883 if test "${ac_cv_working_alloca_h+set}" = set; then :
5884 $as_echo_n "(cached) " >&6
5885 else
5886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5887 /* end confdefs.h. */
5888 #include <alloca.h>
5889 int
5890 main ()
5891 {
5892 char *p = (char *) alloca (2 * sizeof (int));
5893 if (p) return 0;
5894 ;
5895 return 0;
5896 }
5897 _ACEOF
5898 if ac_fn_c_try_link "$LINENO"; then :
5899 ac_cv_working_alloca_h=yes
5900 else
5901 ac_cv_working_alloca_h=no
5902 fi
5903 rm -f core conftest.err conftest.$ac_objext \
5904 conftest$ac_exeext conftest.$ac_ext
5905 fi
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5907 $as_echo "$ac_cv_working_alloca_h" >&6; }
5908 if test $ac_cv_working_alloca_h = yes; then
5909
5910 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5911
5912 fi
5913
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5915 $as_echo_n "checking for alloca... " >&6; }
5916 if test "${ac_cv_func_alloca_works+set}" = set; then :
5917 $as_echo_n "(cached) " >&6
5918 else
5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920 /* end confdefs.h. */
5921 #ifdef __GNUC__
5922 # define alloca __builtin_alloca
5923 #else
5924 # ifdef _MSC_VER
5925 # include <malloc.h>
5926 # define alloca _alloca
5927 # else
5928 # ifdef HAVE_ALLOCA_H
5929 # include <alloca.h>
5930 # else
5931 # ifdef _AIX
5932 #pragma alloca
5933 # else
5934 # ifndef alloca /* predefined by HP cc +Olibcalls */
5935 char *alloca ();
5936 # endif
5937 # endif
5938 # endif
5939 # endif
5940 #endif
5941
5942 int
5943 main ()
5944 {
5945 char *p = (char *) alloca (1);
5946 if (p) return 0;
5947 ;
5948 return 0;
5949 }
5950 _ACEOF
5951 if ac_fn_c_try_link "$LINENO"; then :
5952 ac_cv_func_alloca_works=yes
5953 else
5954 ac_cv_func_alloca_works=no
5955 fi
5956 rm -f core conftest.err conftest.$ac_objext \
5957 conftest$ac_exeext conftest.$ac_ext
5958 fi
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5960 $as_echo "$ac_cv_func_alloca_works" >&6; }
5961
5962 if test $ac_cv_func_alloca_works = yes; then
5963
5964 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5965
5966 else
5967 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5968 # that cause trouble. Some versions do not even contain alloca or
5969 # contain a buggy version. If you still want to use their alloca,
5970 # use ar to extract alloca.o from them instead of compiling alloca.c.
5971
5972
5973
5974
5975
5976 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5977
5978 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5979
5980
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5982 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5983 if test "${ac_cv_os_cray+set}" = set; then :
5984 $as_echo_n "(cached) " >&6
5985 else
5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987 /* end confdefs.h. */
5988 #if defined CRAY && ! defined CRAY2
5989 webecray
5990 #else
5991 wenotbecray
5992 #endif
5993
5994 _ACEOF
5995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5996 $EGREP "webecray" >/dev/null 2>&1; then :
5997 ac_cv_os_cray=yes
5998 else
5999 ac_cv_os_cray=no
6000 fi
6001 rm -f conftest*
6002
6003 fi
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6005 $as_echo "$ac_cv_os_cray" >&6; }
6006 if test $ac_cv_os_cray = yes; then
6007 for ac_func in _getb67 GETB67 getb67; do
6008 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6009 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6010 eval as_val=\$$as_ac_var
6011 if test "x$as_val" = x""yes; then :
6012
6013 cat >>confdefs.h <<_ACEOF
6014 #define CRAY_STACKSEG_END $ac_func
6015 _ACEOF
6016
6017 break
6018 fi
6019
6020 done
6021 fi
6022
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6024 $as_echo_n "checking stack direction for C alloca... " >&6; }
6025 if test "${ac_cv_c_stack_direction+set}" = set; then :
6026 $as_echo_n "(cached) " >&6
6027 else
6028 if test "$cross_compiling" = yes; then :
6029 ac_cv_c_stack_direction=0
6030 else
6031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032 /* end confdefs.h. */
6033 $ac_includes_default
6034 int
6035 find_stack_direction (int *addr, int depth)
6036 {
6037 int dir, dummy = 0;
6038 if (! addr)
6039 addr = &dummy;
6040 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6041 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6042 return dir + dummy;
6043 }
6044
6045 int
6046 main (int argc, char **argv)
6047 {
6048 return find_stack_direction (0, argc + !argv + 20) < 0;
6049 }
6050 _ACEOF
6051 if ac_fn_c_try_run "$LINENO"; then :
6052 ac_cv_c_stack_direction=1
6053 else
6054 ac_cv_c_stack_direction=-1
6055 fi
6056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6057 conftest.$ac_objext conftest.beam conftest.$ac_ext
6058 fi
6059
6060 fi
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6062 $as_echo "$ac_cv_c_stack_direction" >&6; }
6063 cat >>confdefs.h <<_ACEOF
6064 #define STACK_DIRECTION $ac_cv_c_stack_direction
6065 _ACEOF
6066
6067
6068 fi
6069
6070
6071 GNULIB__EXIT=0;
6072 GNULIB_ATOLL=0;
6073 GNULIB_CALLOC_POSIX=0;
6074 GNULIB_CANONICALIZE_FILE_NAME=0;
6075 GNULIB_GETLOADAVG=0;
6076 GNULIB_GETSUBOPT=0;
6077 GNULIB_GRANTPT=0;
6078 GNULIB_MALLOC_POSIX=0;
6079 GNULIB_MBTOWC=0;
6080 GNULIB_MKDTEMP=0;
6081 GNULIB_MKOSTEMP=0;
6082 GNULIB_MKOSTEMPS=0;
6083 GNULIB_MKSTEMP=0;
6084 GNULIB_MKSTEMPS=0;
6085 GNULIB_POSIX_OPENPT=0;
6086 GNULIB_PTSNAME=0;
6087 GNULIB_PTSNAME_R=0;
6088 GNULIB_PUTENV=0;
6089 GNULIB_RANDOM=0;
6090 GNULIB_RANDOM_R=0;
6091 GNULIB_REALLOC_POSIX=0;
6092 GNULIB_REALPATH=0;
6093 GNULIB_RPMATCH=0;
6094 GNULIB_SETENV=0;
6095 GNULIB_STRTOD=0;
6096 GNULIB_STRTOLL=0;
6097 GNULIB_STRTOULL=0;
6098 GNULIB_SYSTEM_POSIX=0;
6099 GNULIB_UNLOCKPT=0;
6100 GNULIB_UNSETENV=0;
6101 GNULIB_WCTOMB=0;
6102 HAVE__EXIT=1;
6103 HAVE_ATOLL=1;
6104 HAVE_CANONICALIZE_FILE_NAME=1;
6105 HAVE_DECL_GETLOADAVG=1;
6106 HAVE_GETSUBOPT=1;
6107 HAVE_GRANTPT=1;
6108 HAVE_MKDTEMP=1;
6109 HAVE_MKOSTEMP=1;
6110 HAVE_MKOSTEMPS=1;
6111 HAVE_MKSTEMP=1;
6112 HAVE_MKSTEMPS=1;
6113 HAVE_POSIX_OPENPT=1;
6114 HAVE_PTSNAME=1;
6115 HAVE_PTSNAME_R=1;
6116 HAVE_RANDOM=1;
6117 HAVE_RANDOM_H=1;
6118 HAVE_RANDOM_R=1;
6119 HAVE_REALPATH=1;
6120 HAVE_RPMATCH=1;
6121 HAVE_SETENV=1;
6122 HAVE_DECL_SETENV=1;
6123 HAVE_STRTOD=1;
6124 HAVE_STRTOLL=1;
6125 HAVE_STRTOULL=1;
6126 HAVE_STRUCT_RANDOM_DATA=1;
6127 HAVE_SYS_LOADAVG_H=0;
6128 HAVE_UNLOCKPT=1;
6129 HAVE_DECL_UNSETENV=1;
6130 REPLACE_CALLOC=0;
6131 REPLACE_CANONICALIZE_FILE_NAME=0;
6132 REPLACE_MALLOC=0;
6133 REPLACE_MBTOWC=0;
6134 REPLACE_MKSTEMP=0;
6135 REPLACE_PTSNAME=0;
6136 REPLACE_PTSNAME_R=0;
6137 REPLACE_PUTENV=0;
6138 REPLACE_RANDOM_R=0;
6139 REPLACE_REALLOC=0;
6140 REPLACE_REALPATH=0;
6141 REPLACE_SETENV=0;
6142 REPLACE_STRTOD=0;
6143 REPLACE_UNSETENV=0;
6144 REPLACE_WCTOMB=0;
6145
6146
6147
6148
6149 for ac_func in $ac_func_list
6150 do :
6151 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6152 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6153 eval as_val=\$$as_ac_var
6154 if test "x$as_val" = x""yes; then :
6155 cat >>confdefs.h <<_ACEOF
6156 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6157 _ACEOF
6158
6159 fi
6160 done
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
6171 $as_echo_n "checking whether // is distinct from /... " >&6; }
6172 if test "${gl_cv_double_slash_root+set}" = set; then :
6173 $as_echo_n "(cached) " >&6
6174 else
6175 if test x"$cross_compiling" = xyes ; then
6176 # When cross-compiling, there is no way to tell whether // is special
6177 # short of a list of hosts. However, the only known hosts to date
6178 # that have a distinct // are Apollo DomainOS (too old to port to),
6179 # Cygwin, and z/OS. If anyone knows of another system for which // has
6180 # special semantics and is distinct from /, please report it to
6181 # <bug-gnulib@gnu.org>.
6182 case $host in
6183 *-cygwin | i370-ibm-openedition)
6184 gl_cv_double_slash_root=yes ;;
6185 *)
6186 # Be optimistic and assume that / and // are the same when we
6187 # don't know.
6188 gl_cv_double_slash_root='unknown, assuming no' ;;
6189 esac
6190 else
6191 set x `ls -di / // 2>/dev/null`
6192 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
6193 gl_cv_double_slash_root=no
6194 else
6195 gl_cv_double_slash_root=yes
6196 fi
6197 fi
6198 fi
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
6200 $as_echo "$gl_cv_double_slash_root" >&6; }
6201 if test "$gl_cv_double_slash_root" = yes; then
6202
6203 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
6204
6205 fi
6206
6207
6208
6209
6210
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realpath works" >&5
6212 $as_echo_n "checking whether realpath works... " >&6; }
6213 if test "${gl_cv_func_realpath_works+set}" = set; then :
6214 $as_echo_n "(cached) " >&6
6215 else
6216
6217 touch conftest.a
6218 mkdir conftest.d
6219 if test "$cross_compiling" = yes; then :
6220 case "$host_os" in
6221 # Guess yes on glibc systems.
6222 *-gnu* | gnu*) gl_cv_func_realpath_works="guessing yes" ;;
6223 # If we don't know, assume the worst.
6224 *) gl_cv_func_realpath_works="guessing no" ;;
6225 esac
6226
6227 else
6228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229 /* end confdefs.h. */
6230
6231
6232
6233 #include <stdlib.h>
6234 #if defined __MACH__ && defined __APPLE__
6235 /* Avoid a crash on Mac OS X. */
6236 #include <mach/mach.h>
6237 #include <mach/mach_error.h>
6238 #include <mach/thread_status.h>
6239 #include <mach/exception.h>
6240 #include <mach/task.h>
6241 #include <pthread.h>
6242 /* The exception port on which our thread listens. */
6243 static mach_port_t our_exception_port;
6244 /* The main function of the thread listening for exceptions of type
6245 EXC_BAD_ACCESS. */
6246 static void *
6247 mach_exception_thread (void *arg)
6248 {
6249 /* Buffer for a message to be received. */
6250 struct {
6251 mach_msg_header_t head;
6252 mach_msg_body_t msgh_body;
6253 char data[1024];
6254 } msg;
6255 mach_msg_return_t retval;
6256 /* Wait for a message on the exception port. */
6257 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
6258 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
6259 if (retval != MACH_MSG_SUCCESS)
6260 abort ();
6261 exit (1);
6262 }
6263 static void
6264 nocrash_init (void)
6265 {
6266 mach_port_t self = mach_task_self ();
6267 /* Allocate a port on which the thread shall listen for exceptions. */
6268 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
6269 == KERN_SUCCESS) {
6270 /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
6271 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
6272 MACH_MSG_TYPE_MAKE_SEND)
6273 == KERN_SUCCESS) {
6274 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
6275 for us. */
6276 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
6277 /* Create the thread listening on the exception port. */
6278 pthread_attr_t attr;
6279 pthread_t thread;
6280 if (pthread_attr_init (&attr) == 0
6281 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
6282 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
6283 pthread_attr_destroy (&attr);
6284 /* Replace the exception port info for these exceptions with our own.
6285 Note that we replace the exception port for the entire task, not only
6286 for a particular thread. This has the effect that when our exception
6287 port gets the message, the thread specific exception port has already
6288 been asked, and we don't need to bother about it.
6289 See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
6290 task_set_exception_ports (self, mask, our_exception_port,
6291 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
6292 }
6293 }
6294 }
6295 }
6296 #elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
6297 /* Avoid a crash on native Windows. */
6298 #define WIN32_LEAN_AND_MEAN
6299 #include <windows.h>
6300 #include <winerror.h>
6301 static LONG WINAPI
6302 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
6303 {
6304 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
6305 {
6306 case EXCEPTION_ACCESS_VIOLATION:
6307 case EXCEPTION_IN_PAGE_ERROR:
6308 case EXCEPTION_STACK_OVERFLOW:
6309 case EXCEPTION_GUARD_PAGE:
6310 case EXCEPTION_PRIV_INSTRUCTION:
6311 case EXCEPTION_ILLEGAL_INSTRUCTION:
6312 case EXCEPTION_DATATYPE_MISALIGNMENT:
6313 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
6314 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
6315 exit (1);
6316 }
6317 return EXCEPTION_CONTINUE_SEARCH;
6318 }
6319 static void
6320 nocrash_init (void)
6321 {
6322 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
6323 }
6324 #else
6325 /* Avoid a crash on POSIX systems. */
6326 #include <signal.h>
6327 /* A POSIX signal handler. */
6328 static void
6329 exception_handler (int sig)
6330 {
6331 exit (1);
6332 }
6333 static void
6334 nocrash_init (void)
6335 {
6336 #ifdef SIGSEGV
6337 signal (SIGSEGV, exception_handler);
6338 #endif
6339 #ifdef SIGBUS
6340 signal (SIGBUS, exception_handler);
6341 #endif
6342 }
6343 #endif
6344
6345 #include <stdlib.h>
6346 #include <string.h>
6347
6348 int
6349 main ()
6350 {
6351
6352 int result = 0;
6353 {
6354 char *name = realpath ("conftest.a", NULL);
6355 if (!(name && *name == '/'))
6356 result |= 1;
6357 }
6358 {
6359 char *name = realpath ("conftest.b/../conftest.a", NULL);
6360 if (name != NULL)
6361 result |= 2;
6362 }
6363 {
6364 char *name = realpath ("conftest.a/", NULL);
6365 if (name != NULL)
6366 result |= 4;
6367 }
6368 {
6369 char *name1 = realpath (".", NULL);
6370 char *name2 = realpath ("conftest.d//./..", NULL);
6371 if (strcmp (name1, name2) != 0)
6372 result |= 8;
6373 }
6374 return result;
6375
6376 ;
6377 return 0;
6378 }
6379
6380 _ACEOF
6381 if ac_fn_c_try_run "$LINENO"; then :
6382 gl_cv_func_realpath_works=yes
6383 else
6384 gl_cv_func_realpath_works=no
6385 fi
6386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6387 conftest.$ac_objext conftest.beam conftest.$ac_ext
6388 fi
6389
6390 rm -rf conftest.a conftest.d
6391
6392 fi
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realpath_works" >&5
6394 $as_echo "$gl_cv_func_realpath_works" >&6; }
6395 case "$gl_cv_func_realpath_works" in
6396 *yes)
6397
6398 $as_echo "#define FUNC_REALPATH_WORKS 1" >>confdefs.h
6399
6400 ;;
6401 esac
6402
6403
6404
6405
6406 for ac_header in $ac_header_list
6407 do :
6408 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6409 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6410 "
6411 eval as_val=\$$as_ac_Header
6412 if test "x$as_val" = x""yes; then :
6413 cat >>confdefs.h <<_ACEOF
6414 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6415 _ACEOF
6416
6417 fi
6418
6419 done
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431 GNULIB_CHDIR=0;
6432 GNULIB_CHOWN=0;
6433 GNULIB_CLOSE=0;
6434 GNULIB_DUP=0;
6435 GNULIB_DUP2=0;
6436 GNULIB_DUP3=0;
6437 GNULIB_ENVIRON=0;
6438 GNULIB_EUIDACCESS=0;
6439 GNULIB_FACCESSAT=0;
6440 GNULIB_FCHDIR=0;
6441 GNULIB_FCHOWNAT=0;
6442 GNULIB_FDATASYNC=0;
6443 GNULIB_FSYNC=0;
6444 GNULIB_FTRUNCATE=0;
6445 GNULIB_GETCWD=0;
6446 GNULIB_GETDOMAINNAME=0;
6447 GNULIB_GETDTABLESIZE=0;
6448 GNULIB_GETGROUPS=0;
6449 GNULIB_GETHOSTNAME=0;
6450 GNULIB_GETLOGIN=0;
6451 GNULIB_GETLOGIN_R=0;
6452 GNULIB_GETPAGESIZE=0;
6453 GNULIB_GETUSERSHELL=0;
6454 GNULIB_GROUP_MEMBER=0;
6455 GNULIB_ISATTY=0;
6456 GNULIB_LCHOWN=0;
6457 GNULIB_LINK=0;
6458 GNULIB_LINKAT=0;
6459 GNULIB_LSEEK=0;
6460 GNULIB_PIPE=0;
6461 GNULIB_PIPE2=0;
6462 GNULIB_PREAD=0;
6463 GNULIB_PWRITE=0;
6464 GNULIB_READ=0;
6465 GNULIB_READLINK=0;
6466 GNULIB_READLINKAT=0;
6467 GNULIB_RMDIR=0;
6468 GNULIB_SETHOSTNAME=0;
6469 GNULIB_SLEEP=0;
6470 GNULIB_SYMLINK=0;
6471 GNULIB_SYMLINKAT=0;
6472 GNULIB_TTYNAME_R=0;
6473 GNULIB_UNISTD_H_NONBLOCKING=0;
6474 GNULIB_UNISTD_H_SIGPIPE=0;
6475 GNULIB_UNLINK=0;
6476 GNULIB_UNLINKAT=0;
6477 GNULIB_USLEEP=0;
6478 GNULIB_WRITE=0;
6479 HAVE_CHOWN=1;
6480 HAVE_DUP2=1;
6481 HAVE_DUP3=1;
6482 HAVE_EUIDACCESS=1;
6483 HAVE_FACCESSAT=1;
6484 HAVE_FCHDIR=1;
6485 HAVE_FCHOWNAT=1;
6486 HAVE_FDATASYNC=1;
6487 HAVE_FSYNC=1;
6488 HAVE_FTRUNCATE=1;
6489 HAVE_GETDTABLESIZE=1;
6490 HAVE_GETGROUPS=1;
6491 HAVE_GETHOSTNAME=1;
6492 HAVE_GETLOGIN=1;
6493 HAVE_GETPAGESIZE=1;
6494 HAVE_GROUP_MEMBER=1;
6495 HAVE_LCHOWN=1;
6496 HAVE_LINK=1;
6497 HAVE_LINKAT=1;
6498 HAVE_PIPE=1;
6499 HAVE_PIPE2=1;
6500 HAVE_PREAD=1;
6501 HAVE_PWRITE=1;
6502 HAVE_READLINK=1;
6503 HAVE_READLINKAT=1;
6504 HAVE_SETHOSTNAME=1;
6505 HAVE_SLEEP=1;
6506 HAVE_SYMLINK=1;
6507 HAVE_SYMLINKAT=1;
6508 HAVE_UNLINKAT=1;
6509 HAVE_USLEEP=1;
6510 HAVE_DECL_ENVIRON=1;
6511 HAVE_DECL_FCHDIR=1;
6512 HAVE_DECL_FDATASYNC=1;
6513 HAVE_DECL_GETDOMAINNAME=1;
6514 HAVE_DECL_GETLOGIN_R=1;
6515 HAVE_DECL_GETPAGESIZE=1;
6516 HAVE_DECL_GETUSERSHELL=1;
6517 HAVE_DECL_SETHOSTNAME=1;
6518 HAVE_DECL_TTYNAME_R=1;
6519 HAVE_OS_H=0;
6520 HAVE_SYS_PARAM_H=0;
6521 REPLACE_CHOWN=0;
6522 REPLACE_CLOSE=0;
6523 REPLACE_DUP=0;
6524 REPLACE_DUP2=0;
6525 REPLACE_FCHOWNAT=0;
6526 REPLACE_FTRUNCATE=0;
6527 REPLACE_GETCWD=0;
6528 REPLACE_GETDOMAINNAME=0;
6529 REPLACE_GETLOGIN_R=0;
6530 REPLACE_GETGROUPS=0;
6531 REPLACE_GETPAGESIZE=0;
6532 REPLACE_ISATTY=0;
6533 REPLACE_LCHOWN=0;
6534 REPLACE_LINK=0;
6535 REPLACE_LINKAT=0;
6536 REPLACE_LSEEK=0;
6537 REPLACE_PREAD=0;
6538 REPLACE_PWRITE=0;
6539 REPLACE_READ=0;
6540 REPLACE_READLINK=0;
6541 REPLACE_RMDIR=0;
6542 REPLACE_SLEEP=0;
6543 REPLACE_SYMLINK=0;
6544 REPLACE_TTYNAME_R=0;
6545 REPLACE_UNLINK=0;
6546 REPLACE_UNLINKAT=0;
6547 REPLACE_USLEEP=0;
6548 REPLACE_WRITE=0;
6549 UNISTD_H_HAVE_WINSOCK2_H=0;
6550 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
6551
6552
6553
6554 GNULIB_OPENDIR=0;
6555 GNULIB_READDIR=0;
6556 GNULIB_REWINDDIR=0;
6557 GNULIB_CLOSEDIR=0;
6558 GNULIB_DIRFD=0;
6559 GNULIB_FDOPENDIR=0;
6560 GNULIB_SCANDIR=0;
6561 GNULIB_ALPHASORT=0;
6562 HAVE_OPENDIR=1;
6563 HAVE_READDIR=1;
6564 HAVE_REWINDDIR=1;
6565 HAVE_CLOSEDIR=1;
6566 HAVE_DECL_DIRFD=1;
6567 HAVE_DECL_FDOPENDIR=1;
6568 HAVE_FDOPENDIR=1;
6569 HAVE_SCANDIR=1;
6570 HAVE_ALPHASORT=1;
6571 REPLACE_OPENDIR=0;
6572 REPLACE_CLOSEDIR=0;
6573 REPLACE_DIRFD=0;
6574 REPLACE_FDOPENDIR=0;
6575
6576
6577
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
6579 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
6580 if test "${gl_cv_have_include_next+set}" = set; then :
6581 $as_echo_n "(cached) " >&6
6582 else
6583 rm -rf conftestd1a conftestd1b conftestd2
6584 mkdir conftestd1a conftestd1b conftestd2
6585 cat <<EOF > conftestd1a/conftest.h
6586 #define DEFINED_IN_CONFTESTD1
6587 #include_next <conftest.h>
6588 #ifdef DEFINED_IN_CONFTESTD2
6589 int foo;
6590 #else
6591 #error "include_next doesn't work"
6592 #endif
6593 EOF
6594 cat <<EOF > conftestd1b/conftest.h
6595 #define DEFINED_IN_CONFTESTD1
6596 #include <stdio.h>
6597 #include_next <conftest.h>
6598 #ifdef DEFINED_IN_CONFTESTD2
6599 int foo;
6600 #else
6601 #error "include_next doesn't work"
6602 #endif
6603 EOF
6604 cat <<EOF > conftestd2/conftest.h
6605 #ifndef DEFINED_IN_CONFTESTD1
6606 #error "include_next test doesn't work"
6607 #endif
6608 #define DEFINED_IN_CONFTESTD2
6609 EOF
6610 gl_save_CPPFLAGS="$CPPFLAGS"
6611 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
6612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613 /* end confdefs.h. */
6614 #include <conftest.h>
6615 _ACEOF
6616 if ac_fn_c_try_compile "$LINENO"; then :
6617 gl_cv_have_include_next=yes
6618 else
6619 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h. */
6622 #include <conftest.h>
6623 _ACEOF
6624 if ac_fn_c_try_compile "$LINENO"; then :
6625 gl_cv_have_include_next=buggy
6626 else
6627 gl_cv_have_include_next=no
6628 fi
6629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6630
6631 fi
6632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6633 CPPFLAGS="$gl_save_CPPFLAGS"
6634 rm -rf conftestd1a conftestd1b conftestd2
6635
6636 fi
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
6638 $as_echo "$gl_cv_have_include_next" >&6; }
6639 PRAGMA_SYSTEM_HEADER=
6640 if test $gl_cv_have_include_next = yes; then
6641 INCLUDE_NEXT=include_next
6642 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6643 if test -n "$GCC"; then
6644 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
6645 fi
6646 else
6647 if test $gl_cv_have_include_next = buggy; then
6648 INCLUDE_NEXT=include
6649 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
6650 else
6651 INCLUDE_NEXT=include
6652 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
6653 fi
6654 fi
6655
6656
6657
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
6659 $as_echo_n "checking whether system header files limit the line length... " >&6; }
6660 if test "${gl_cv_pragma_columns+set}" = set; then :
6661 $as_echo_n "(cached) " >&6
6662 else
6663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664 /* end confdefs.h. */
6665
6666 #ifdef __TANDEM
6667 choke me
6668 #endif
6669
6670 _ACEOF
6671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6672 $EGREP "choke me" >/dev/null 2>&1; then :
6673 gl_cv_pragma_columns=yes
6674 else
6675 gl_cv_pragma_columns=no
6676 fi
6677 rm -f conftest*
6678
6679
6680 fi
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
6682 $as_echo "$gl_cv_pragma_columns" >&6; }
6683 if test $gl_cv_pragma_columns = yes; then
6684 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
6685 else
6686 PRAGMA_COLUMNS=
6687 fi
6688
6689
6690
6691
6692
6693
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
6695 $as_echo_n "checking for complete errno.h... " >&6; }
6696 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
6697 $as_echo_n "(cached) " >&6
6698 else
6699
6700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6701 /* end confdefs.h. */
6702
6703 #include <errno.h>
6704 #if !defined ETXTBSY
6705 booboo
6706 #endif
6707 #if !defined ENOMSG
6708 booboo
6709 #endif
6710 #if !defined EIDRM
6711 booboo
6712 #endif
6713 #if !defined ENOLINK
6714 booboo
6715 #endif
6716 #if !defined EPROTO
6717 booboo
6718 #endif
6719 #if !defined EMULTIHOP
6720 booboo
6721 #endif
6722 #if !defined EBADMSG
6723 booboo
6724 #endif
6725 #if !defined EOVERFLOW
6726 booboo
6727 #endif
6728 #if !defined ENOTSUP
6729 booboo
6730 #endif
6731 #if !defined ENETRESET
6732 booboo
6733 #endif
6734 #if !defined ECONNABORTED
6735 booboo
6736 #endif
6737 #if !defined ESTALE
6738 booboo
6739 #endif
6740 #if !defined EDQUOT
6741 booboo
6742 #endif
6743 #if !defined ECANCELED
6744 booboo
6745 #endif
6746 #if !defined EOWNERDEAD
6747 booboo
6748 #endif
6749 #if !defined ENOTRECOVERABLE
6750 booboo
6751 #endif
6752 #if !defined EILSEQ
6753 booboo
6754 #endif
6755
6756 _ACEOF
6757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6758 $EGREP "booboo" >/dev/null 2>&1; then :
6759 gl_cv_header_errno_h_complete=no
6760 else
6761 gl_cv_header_errno_h_complete=yes
6762 fi
6763 rm -f conftest*
6764
6765
6766 fi
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
6768 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
6769 if test $gl_cv_header_errno_h_complete = yes; then
6770 ERRNO_H=''
6771 else
6772
6773
6774
6775
6776
6777
6778
6779
6780 if test $gl_cv_have_include_next = yes; then
6781 gl_cv_next_errno_h='<'errno.h'>'
6782 else
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
6784 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
6785 if test "${gl_cv_next_errno_h+set}" = set; then :
6786 $as_echo_n "(cached) " >&6
6787 else
6788
6789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6790 /* end confdefs.h. */
6791 #include <errno.h>
6792
6793 _ACEOF
6794 case "$host_os" in
6795 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6796 *) gl_absname_cpp="$ac_cpp" ;;
6797 esac
6798
6799 case "$host_os" in
6800 mingw*)
6801 gl_dirsep_regex='[/\\]'
6802 ;;
6803 *)
6804 gl_dirsep_regex='\/'
6805 ;;
6806 esac
6807 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6808
6809 gl_header_literal_regex=`echo 'errno.h' \
6810 | sed -e "$gl_make_literal_regex_sed"`
6811 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6812 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6813 s|^/[^/]|//&|
6814 p
6815 q
6816 }'
6817 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6818 sed -n "$gl_absolute_header_sed"`'"'
6819
6820
6821 fi
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
6823 $as_echo "$gl_cv_next_errno_h" >&6; }
6824 fi
6825 NEXT_ERRNO_H=$gl_cv_next_errno_h
6826
6827 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6828 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6829 gl_next_as_first_directive='<'errno.h'>'
6830 else
6831 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6832 gl_next_as_first_directive=$gl_cv_next_errno_h
6833 fi
6834 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
6835
6836
6837
6838
6839 ERRNO_H='errno.h'
6840 fi
6841
6842 if test -n "$ERRNO_H"; then
6843 GL_GENERATE_ERRNO_H_TRUE=
6844 GL_GENERATE_ERRNO_H_FALSE='#'
6845 else
6846 GL_GENERATE_ERRNO_H_TRUE='#'
6847 GL_GENERATE_ERRNO_H_FALSE=
6848 fi
6849
6850
6851 if test -n "$ERRNO_H"; then
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
6853 $as_echo_n "checking for EMULTIHOP value... " >&6; }
6854 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
6855 $as_echo_n "(cached) " >&6
6856 else
6857
6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859 /* end confdefs.h. */
6860
6861 #include <errno.h>
6862 #ifdef EMULTIHOP
6863 yes
6864 #endif
6865
6866 _ACEOF
6867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6868 $EGREP "yes" >/dev/null 2>&1; then :
6869 gl_cv_header_errno_h_EMULTIHOP=yes
6870 else
6871 gl_cv_header_errno_h_EMULTIHOP=no
6872 fi
6873 rm -f conftest*
6874
6875 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
6876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877 /* end confdefs.h. */
6878
6879 #define _XOPEN_SOURCE_EXTENDED 1
6880 #include <errno.h>
6881 #ifdef EMULTIHOP
6882 yes
6883 #endif
6884
6885 _ACEOF
6886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6887 $EGREP "yes" >/dev/null 2>&1; then :
6888 gl_cv_header_errno_h_EMULTIHOP=hidden
6889 fi
6890 rm -f conftest*
6891
6892 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
6893 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
6894 #define _XOPEN_SOURCE_EXTENDED 1
6895 #include <errno.h>
6896 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6897 #include <stdio.h>
6898 #include <stdlib.h>
6899 "; then :
6900
6901 fi
6902
6903 fi
6904 fi
6905
6906 fi
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
6908 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
6909 case $gl_cv_header_errno_h_EMULTIHOP in
6910 yes | no)
6911 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
6912 ;;
6913 *)
6914 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
6915 ;;
6916 esac
6917
6918
6919 fi
6920
6921
6922 if test -n "$ERRNO_H"; then
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
6924 $as_echo_n "checking for ENOLINK value... " >&6; }
6925 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
6926 $as_echo_n "(cached) " >&6
6927 else
6928
6929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h. */
6931
6932 #include <errno.h>
6933 #ifdef ENOLINK
6934 yes
6935 #endif
6936
6937 _ACEOF
6938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6939 $EGREP "yes" >/dev/null 2>&1; then :
6940 gl_cv_header_errno_h_ENOLINK=yes
6941 else
6942 gl_cv_header_errno_h_ENOLINK=no
6943 fi
6944 rm -f conftest*
6945
6946 if test $gl_cv_header_errno_h_ENOLINK = no; then
6947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6948 /* end confdefs.h. */
6949
6950 #define _XOPEN_SOURCE_EXTENDED 1
6951 #include <errno.h>
6952 #ifdef ENOLINK
6953 yes
6954 #endif
6955
6956 _ACEOF
6957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6958 $EGREP "yes" >/dev/null 2>&1; then :
6959 gl_cv_header_errno_h_ENOLINK=hidden
6960 fi
6961 rm -f conftest*
6962
6963 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
6964 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
6965 #define _XOPEN_SOURCE_EXTENDED 1
6966 #include <errno.h>
6967 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6968 #include <stdio.h>
6969 #include <stdlib.h>
6970 "; then :
6971
6972 fi
6973
6974 fi
6975 fi
6976
6977 fi
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
6979 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
6980 case $gl_cv_header_errno_h_ENOLINK in
6981 yes | no)
6982 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
6983 ;;
6984 *)
6985 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
6986 ;;
6987 esac
6988
6989
6990 fi
6991
6992
6993 if test -n "$ERRNO_H"; then
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
6995 $as_echo_n "checking for EOVERFLOW value... " >&6; }
6996 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
6997 $as_echo_n "(cached) " >&6
6998 else
6999
7000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001 /* end confdefs.h. */
7002
7003 #include <errno.h>
7004 #ifdef EOVERFLOW
7005 yes
7006 #endif
7007
7008 _ACEOF
7009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7010 $EGREP "yes" >/dev/null 2>&1; then :
7011 gl_cv_header_errno_h_EOVERFLOW=yes
7012 else
7013 gl_cv_header_errno_h_EOVERFLOW=no
7014 fi
7015 rm -f conftest*
7016
7017 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
7018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7019 /* end confdefs.h. */
7020
7021 #define _XOPEN_SOURCE_EXTENDED 1
7022 #include <errno.h>
7023 #ifdef EOVERFLOW
7024 yes
7025 #endif
7026
7027 _ACEOF
7028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7029 $EGREP "yes" >/dev/null 2>&1; then :
7030 gl_cv_header_errno_h_EOVERFLOW=hidden
7031 fi
7032 rm -f conftest*
7033
7034 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
7035 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
7036 #define _XOPEN_SOURCE_EXTENDED 1
7037 #include <errno.h>
7038 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7039 #include <stdio.h>
7040 #include <stdlib.h>
7041 "; then :
7042
7043 fi
7044
7045 fi
7046 fi
7047
7048 fi
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
7050 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
7051 case $gl_cv_header_errno_h_EOVERFLOW in
7052 yes | no)
7053 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
7054 ;;
7055 *)
7056 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
7057 ;;
7058 esac
7059
7060
7061 fi
7062
7063
7064
7065
7066
7067
7068
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
7070 $as_echo_n "checking for mbstate_t... " >&6; }
7071 if test "${ac_cv_type_mbstate_t+set}" = set; then :
7072 $as_echo_n "(cached) " >&6
7073 else
7074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7075 /* end confdefs.h. */
7076 $ac_includes_default
7077 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
7078 <wchar.h>.
7079 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7080 included before <wchar.h>. */
7081 #include <stddef.h>
7082 #include <stdio.h>
7083 #include <time.h>
7084 #include <wchar.h>
7085 int
7086 main ()
7087 {
7088 mbstate_t x; return sizeof x;
7089 ;
7090 return 0;
7091 }
7092 _ACEOF
7093 if ac_fn_c_try_compile "$LINENO"; then :
7094 ac_cv_type_mbstate_t=yes
7095 else
7096 ac_cv_type_mbstate_t=no
7097 fi
7098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7099 fi
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
7101 $as_echo "$ac_cv_type_mbstate_t" >&6; }
7102 if test $ac_cv_type_mbstate_t = yes; then
7103
7104 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
7105
7106 else
7107
7108 $as_echo "#define mbstate_t int" >>confdefs.h
7109
7110 fi
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131 GNULIB_ACOSF=0;
7132 GNULIB_ACOSL=0;
7133 GNULIB_ASINF=0;
7134 GNULIB_ASINL=0;
7135 GNULIB_ATANF=0;
7136 GNULIB_ATANL=0;
7137 GNULIB_ATAN2F=0;
7138 GNULIB_CBRT=0;
7139 GNULIB_CBRTF=0;
7140 GNULIB_CBRTL=0;
7141 GNULIB_CEIL=0;
7142 GNULIB_CEILF=0;
7143 GNULIB_CEILL=0;
7144 GNULIB_COPYSIGN=0;
7145 GNULIB_COPYSIGNF=0;
7146 GNULIB_COPYSIGNL=0;
7147 GNULIB_COSF=0;
7148 GNULIB_COSL=0;
7149 GNULIB_COSHF=0;
7150 GNULIB_EXPF=0;
7151 GNULIB_EXPL=0;
7152 GNULIB_EXP2=0;
7153 GNULIB_EXP2F=0;
7154 GNULIB_EXP2L=0;
7155 GNULIB_EXPM1=0;
7156 GNULIB_EXPM1F=0;
7157 GNULIB_EXPM1L=0;
7158 GNULIB_FABSF=0;
7159 GNULIB_FABSL=0;
7160 GNULIB_FLOOR=0;
7161 GNULIB_FLOORF=0;
7162 GNULIB_FLOORL=0;
7163 GNULIB_FMA=0;
7164 GNULIB_FMAF=0;
7165 GNULIB_FMAL=0;
7166 GNULIB_FMOD=0;
7167 GNULIB_FMODF=0;
7168 GNULIB_FMODL=0;
7169 GNULIB_FREXPF=0;
7170 GNULIB_FREXP=0;
7171 GNULIB_FREXPL=0;
7172 GNULIB_HYPOT=0;
7173 GNULIB_HYPOTF=0;
7174 GNULIB_HYPOTL=0;
7175 GNULIB_ILOGB=0;
7176 GNULIB_ILOGBF=0;
7177 GNULIB_ILOGBL=0;
7178 GNULIB_ISFINITE=0;
7179 GNULIB_ISINF=0;
7180 GNULIB_ISNAN=0;
7181 GNULIB_ISNANF=0;
7182 GNULIB_ISNAND=0;
7183 GNULIB_ISNANL=0;
7184 GNULIB_LDEXPF=0;
7185 GNULIB_LDEXPL=0;
7186 GNULIB_LOG=0;
7187 GNULIB_LOGF=0;
7188 GNULIB_LOGL=0;
7189 GNULIB_LOG10=0;
7190 GNULIB_LOG10F=0;
7191 GNULIB_LOG10L=0;
7192 GNULIB_LOG1P=0;
7193 GNULIB_LOG1PF=0;
7194 GNULIB_LOG1PL=0;
7195 GNULIB_LOG2=0;
7196 GNULIB_LOG2F=0;
7197 GNULIB_LOG2L=0;
7198 GNULIB_LOGB=0;
7199 GNULIB_LOGBF=0;
7200 GNULIB_LOGBL=0;
7201 GNULIB_MODF=0;
7202 GNULIB_MODFF=0;
7203 GNULIB_MODFL=0;
7204 GNULIB_POWF=0;
7205 GNULIB_REMAINDER=0;
7206 GNULIB_REMAINDERF=0;
7207 GNULIB_REMAINDERL=0;
7208 GNULIB_RINT=0;
7209 GNULIB_RINTF=0;
7210 GNULIB_RINTL=0;
7211 GNULIB_ROUND=0;
7212 GNULIB_ROUNDF=0;
7213 GNULIB_ROUNDL=0;
7214 GNULIB_SIGNBIT=0;
7215 GNULIB_SINF=0;
7216 GNULIB_SINL=0;
7217 GNULIB_SINHF=0;
7218 GNULIB_SQRTF=0;
7219 GNULIB_SQRTL=0;
7220 GNULIB_TANF=0;
7221 GNULIB_TANL=0;
7222 GNULIB_TANHF=0;
7223 GNULIB_TRUNC=0;
7224 GNULIB_TRUNCF=0;
7225 GNULIB_TRUNCL=0;
7226 HAVE_ACOSF=1;
7227 HAVE_ACOSL=1;
7228 HAVE_ASINF=1;
7229 HAVE_ASINL=1;
7230 HAVE_ATANF=1;
7231 HAVE_ATANL=1;
7232 HAVE_ATAN2F=1;
7233 HAVE_CBRT=1;
7234 HAVE_CBRTF=1;
7235 HAVE_CBRTL=1;
7236 HAVE_COPYSIGN=1;
7237 HAVE_COPYSIGNL=1;
7238 HAVE_COSF=1;
7239 HAVE_COSL=1;
7240 HAVE_COSHF=1;
7241 HAVE_EXPF=1;
7242 HAVE_EXPL=1;
7243 HAVE_EXPM1=1;
7244 HAVE_EXPM1F=1;
7245 HAVE_FABSF=1;
7246 HAVE_FABSL=1;
7247 HAVE_FMA=1;
7248 HAVE_FMAF=1;
7249 HAVE_FMAL=1;
7250 HAVE_FMODF=1;
7251 HAVE_FMODL=1;
7252 HAVE_FREXPF=1;
7253 HAVE_HYPOTF=1;
7254 HAVE_HYPOTL=1;
7255 HAVE_ILOGB=1;
7256 HAVE_ILOGBF=1;
7257 HAVE_ILOGBL=1;
7258 HAVE_ISNANF=1;
7259 HAVE_ISNAND=1;
7260 HAVE_ISNANL=1;
7261 HAVE_LDEXPF=1;
7262 HAVE_LOGF=1;
7263 HAVE_LOGL=1;
7264 HAVE_LOG10F=1;
7265 HAVE_LOG10L=1;
7266 HAVE_LOG1P=1;
7267 HAVE_LOG1PF=1;
7268 HAVE_LOG1PL=1;
7269 HAVE_LOGBF=1;
7270 HAVE_LOGBL=1;
7271 HAVE_MODFF=1;
7272 HAVE_MODFL=1;
7273 HAVE_POWF=1;
7274 HAVE_REMAINDER=1;
7275 HAVE_REMAINDERF=1;
7276 HAVE_RINT=1;
7277 HAVE_RINTL=1;
7278 HAVE_SINF=1;
7279 HAVE_SINL=1;
7280 HAVE_SINHF=1;
7281 HAVE_SQRTF=1;
7282 HAVE_SQRTL=1;
7283 HAVE_TANF=1;
7284 HAVE_TANL=1;
7285 HAVE_TANHF=1;
7286 HAVE_DECL_ACOSL=1;
7287 HAVE_DECL_ASINL=1;
7288 HAVE_DECL_ATANL=1;
7289 HAVE_DECL_CBRTF=1;
7290 HAVE_DECL_CBRTL=1;
7291 HAVE_DECL_CEILF=1;
7292 HAVE_DECL_CEILL=1;
7293 HAVE_DECL_COPYSIGNF=1;
7294 HAVE_DECL_COSL=1;
7295 HAVE_DECL_EXPL=1;
7296 HAVE_DECL_EXP2=1;
7297 HAVE_DECL_EXP2F=1;
7298 HAVE_DECL_EXP2L=1;
7299 HAVE_DECL_EXPM1L=1;
7300 HAVE_DECL_FLOORF=1;
7301 HAVE_DECL_FLOORL=1;
7302 HAVE_DECL_FREXPL=1;
7303 HAVE_DECL_LDEXPL=1;
7304 HAVE_DECL_LOGL=1;
7305 HAVE_DECL_LOG10L=1;
7306 HAVE_DECL_LOG2=1;
7307 HAVE_DECL_LOG2F=1;
7308 HAVE_DECL_LOG2L=1;
7309 HAVE_DECL_LOGB=1;
7310 HAVE_DECL_REMAINDER=1;
7311 HAVE_DECL_REMAINDERL=1;
7312 HAVE_DECL_RINTF=1;
7313 HAVE_DECL_ROUND=1;
7314 HAVE_DECL_ROUNDF=1;
7315 HAVE_DECL_ROUNDL=1;
7316 HAVE_DECL_SINL=1;
7317 HAVE_DECL_SQRTL=1;
7318 HAVE_DECL_TANL=1;
7319 HAVE_DECL_TRUNC=1;
7320 HAVE_DECL_TRUNCF=1;
7321 HAVE_DECL_TRUNCL=1;
7322 REPLACE_CBRTF=0;
7323 REPLACE_CBRTL=0;
7324 REPLACE_CEIL=0;
7325 REPLACE_CEILF=0;
7326 REPLACE_CEILL=0;
7327 REPLACE_EXPM1=0;
7328 REPLACE_EXPM1F=0;
7329 REPLACE_EXP2=0;
7330 REPLACE_EXP2L=0;
7331 REPLACE_FABSL=0;
7332 REPLACE_FLOOR=0;
7333 REPLACE_FLOORF=0;
7334 REPLACE_FLOORL=0;
7335 REPLACE_FMA=0;
7336 REPLACE_FMAF=0;
7337 REPLACE_FMAL=0;
7338 REPLACE_FMOD=0;
7339 REPLACE_FMODF=0;
7340 REPLACE_FMODL=0;
7341 REPLACE_FREXPF=0;
7342 REPLACE_FREXP=0;
7343 REPLACE_FREXPL=0;
7344 REPLACE_HUGE_VAL=0;
7345 REPLACE_HYPOT=0;
7346 REPLACE_HYPOTF=0;
7347 REPLACE_HYPOTL=0;
7348 REPLACE_ILOGB=0;
7349 REPLACE_ILOGBF=0;
7350 REPLACE_ISFINITE=0;
7351 REPLACE_ISINF=0;
7352 REPLACE_ISNAN=0;
7353 REPLACE_LDEXPL=0;
7354 REPLACE_LOG=0;
7355 REPLACE_LOGF=0;
7356 REPLACE_LOGL=0;
7357 REPLACE_LOG10=0;
7358 REPLACE_LOG10F=0;
7359 REPLACE_LOG10L=0;
7360 REPLACE_LOG1P=0;
7361 REPLACE_LOG1PF=0;
7362 REPLACE_LOG1PL=0;
7363 REPLACE_LOG2=0;
7364 REPLACE_LOG2F=0;
7365 REPLACE_LOG2L=0;
7366 REPLACE_LOGB=0;
7367 REPLACE_LOGBF=0;
7368 REPLACE_LOGBL=0;
7369 REPLACE_MODF=0;
7370 REPLACE_MODFF=0;
7371 REPLACE_MODFL=0;
7372 REPLACE_NAN=0;
7373 REPLACE_REMAINDER=0;
7374 REPLACE_REMAINDERF=0;
7375 REPLACE_REMAINDERL=0;
7376 REPLACE_ROUND=0;
7377 REPLACE_ROUNDF=0;
7378 REPLACE_ROUNDL=0;
7379 REPLACE_SIGNBIT=0;
7380 REPLACE_SIGNBIT_USING_GCC=0;
7381 REPLACE_SQRTL=0;
7382 REPLACE_TRUNC=0;
7383 REPLACE_TRUNCF=0;
7384 REPLACE_TRUNCL=0;
7385
7386
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
7388 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
7389 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
7390 $as_echo_n "(cached) " >&6
7391 else
7392
7393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394 /* end confdefs.h. */
7395 #include <math.h>
7396 double x;
7397 int
7398 main ()
7399 {
7400 int e; return frexp (x, &e) > 0;
7401 ;
7402 return 0;
7403 }
7404 _ACEOF
7405 if ac_fn_c_try_link "$LINENO"; then :
7406 gl_cv_func_frexp_no_libm=yes
7407 else
7408 gl_cv_func_frexp_no_libm=no
7409 fi
7410 rm -f core conftest.err conftest.$ac_objext \
7411 conftest$ac_exeext conftest.$ac_ext
7412
7413 fi
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
7415 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
7416
7417
7418
7419
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
7421 $as_echo_n "checking whether long double and double are the same... " >&6; }
7422 if test "${gl_cv_long_double_equals_double+set}" = set; then :
7423 $as_echo_n "(cached) " >&6
7424 else
7425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7426 /* end confdefs.h. */
7427 #include <float.h>
7428 int
7429 main ()
7430 {
7431 typedef int check[sizeof (long double) == sizeof (double)
7432 && LDBL_MANT_DIG == DBL_MANT_DIG
7433 && LDBL_MAX_EXP == DBL_MAX_EXP
7434 && LDBL_MIN_EXP == DBL_MIN_EXP
7435 ? 1 : -1];
7436
7437 ;
7438 return 0;
7439 }
7440 _ACEOF
7441 if ac_fn_c_try_compile "$LINENO"; then :
7442 gl_cv_long_double_equals_double=yes
7443 else
7444 gl_cv_long_double_equals_double=no
7445 fi
7446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7447
7448 fi
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
7450 $as_echo "$gl_cv_long_double_equals_double" >&6; }
7451 if test $gl_cv_long_double_equals_double = yes; then
7452
7453 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
7454
7455 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
7456 else
7457 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
7458 fi
7459
7460
7461
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7463 $as_echo_n "checking for unsigned long long int... " >&6; }
7464 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
7465 $as_echo_n "(cached) " >&6
7466 else
7467 ac_cv_type_unsigned_long_long_int=yes
7468 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470 /* end confdefs.h. */
7471
7472 /* For now, do not test the preprocessor; as of 2007 there are too many
7473 implementations with broken preprocessors. Perhaps this can
7474 be revisited in 2012. In the meantime, code should not expect
7475 #if to work with literals wider than 32 bits. */
7476 /* Test literals. */
7477 long long int ll = 9223372036854775807ll;
7478 long long int nll = -9223372036854775807LL;
7479 unsigned long long int ull = 18446744073709551615ULL;
7480 /* Test constant expressions. */
7481 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7482 ? 1 : -1)];
7483 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7484 ? 1 : -1)];
7485 int i = 63;
7486 int
7487 main ()
7488 {
7489 /* Test availability of runtime routines for shift and division. */
7490 long long int llmax = 9223372036854775807ll;
7491 unsigned long long int ullmax = 18446744073709551615ull;
7492 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7493 | (llmax / ll) | (llmax % ll)
7494 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7495 | (ullmax / ull) | (ullmax % ull));
7496 ;
7497 return 0;
7498 }
7499
7500 _ACEOF
7501 if ac_fn_c_try_link "$LINENO"; then :
7502
7503 else
7504 ac_cv_type_unsigned_long_long_int=no
7505 fi
7506 rm -f core conftest.err conftest.$ac_objext \
7507 conftest$ac_exeext conftest.$ac_ext
7508 fi
7509 fi
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7511 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7512 if test $ac_cv_type_unsigned_long_long_int = yes; then
7513
7514 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
7515
7516 fi
7517
7518
7519
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
7521 $as_echo_n "checking for long long int... " >&6; }
7522 if test "${ac_cv_type_long_long_int+set}" = set; then :
7523 $as_echo_n "(cached) " >&6
7524 else
7525 ac_cv_type_long_long_int=yes
7526 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7527 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
7528 if test $ac_cv_type_long_long_int = yes; then
7529 if test "$cross_compiling" = yes; then :
7530 :
7531 else
7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533 /* end confdefs.h. */
7534 #include <limits.h>
7535 #ifndef LLONG_MAX
7536 # define HALF \
7537 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
7538 # define LLONG_MAX (HALF - 1 + HALF)
7539 #endif
7540 int
7541 main ()
7542 {
7543 long long int n = 1;
7544 int i;
7545 for (i = 0; ; i++)
7546 {
7547 long long int m = n << i;
7548 if (m >> i != n)
7549 return 1;
7550 if (LLONG_MAX / 2 < m)
7551 break;
7552 }
7553 return 0;
7554 ;
7555 return 0;
7556 }
7557 _ACEOF
7558 if ac_fn_c_try_run "$LINENO"; then :
7559
7560 else
7561 ac_cv_type_long_long_int=no
7562 fi
7563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7564 conftest.$ac_objext conftest.beam conftest.$ac_ext
7565 fi
7566
7567 fi
7568 fi
7569 fi
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
7571 $as_echo "$ac_cv_type_long_long_int" >&6; }
7572 if test $ac_cv_type_long_long_int = yes; then
7573
7574 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
7575
7576 fi
7577
7578
7579
7580
7581
7582
7583 gl_cv_c_multiarch=no
7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585 /* end confdefs.h. */
7586 #ifndef __APPLE_CC__
7587 not a universal capable compiler
7588 #endif
7589 typedef int dummy;
7590
7591 _ACEOF
7592 if ac_fn_c_try_compile "$LINENO"; then :
7593
7594 arch=
7595 prev=
7596 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
7597 if test -n "$prev"; then
7598 case $word in
7599 i?86 | x86_64 | ppc | ppc64)
7600 if test -z "$arch" || test "$arch" = "$word"; then
7601 arch="$word"
7602 else
7603 gl_cv_c_multiarch=yes
7604 fi
7605 ;;
7606 esac
7607 prev=
7608 else
7609 if test "x$word" = "x-arch"; then
7610 prev=arch
7611 fi
7612 fi
7613 done
7614
7615 fi
7616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7617 if test $gl_cv_c_multiarch = yes; then
7618 APPLE_UNIVERSAL_BUILD=1
7619 else
7620 APPLE_UNIVERSAL_BUILD=0
7621 fi
7622
7623
7624
7625
7626
7627 if test $ac_cv_type_long_long_int = yes; then
7628 HAVE_LONG_LONG_INT=1
7629 else
7630 HAVE_LONG_LONG_INT=0
7631 fi
7632
7633
7634 if test $ac_cv_type_unsigned_long_long_int = yes; then
7635 HAVE_UNSIGNED_LONG_LONG_INT=1
7636 else
7637 HAVE_UNSIGNED_LONG_LONG_INT=0
7638 fi
7639
7640
7641
7642 if test $ac_cv_header_wchar_h = yes; then
7643 HAVE_WCHAR_H=1
7644 else
7645 HAVE_WCHAR_H=0
7646 fi
7647
7648
7649 if test $ac_cv_header_inttypes_h = yes; then
7650 HAVE_INTTYPES_H=1
7651 else
7652 HAVE_INTTYPES_H=0
7653 fi
7654
7655
7656 if test $ac_cv_header_sys_types_h = yes; then
7657 HAVE_SYS_TYPES_H=1
7658 else
7659 HAVE_SYS_TYPES_H=0
7660 fi
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672 if test $gl_cv_have_include_next = yes; then
7673 gl_cv_next_stdint_h='<'stdint.h'>'
7674 else
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
7676 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
7677 if test "${gl_cv_next_stdint_h+set}" = set; then :
7678 $as_echo_n "(cached) " >&6
7679 else
7680
7681 if test $ac_cv_header_stdint_h = yes; then
7682
7683
7684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7685 /* end confdefs.h. */
7686 #include <stdint.h>
7687
7688 _ACEOF
7689 case "$host_os" in
7690 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7691 *) gl_absname_cpp="$ac_cpp" ;;
7692 esac
7693
7694 case "$host_os" in
7695 mingw*)
7696 gl_dirsep_regex='[/\\]'
7697 ;;
7698 *)
7699 gl_dirsep_regex='\/'
7700 ;;
7701 esac
7702 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7703
7704 gl_header_literal_regex=`echo 'stdint.h' \
7705 | sed -e "$gl_make_literal_regex_sed"`
7706 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7707 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7708 s|^/[^/]|//&|
7709 p
7710 q
7711 }'
7712 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7713 sed -n "$gl_absolute_header_sed"`'"'
7714 else
7715 gl_cv_next_stdint_h='<'stdint.h'>'
7716 fi
7717
7718
7719 fi
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
7721 $as_echo "$gl_cv_next_stdint_h" >&6; }
7722 fi
7723 NEXT_STDINT_H=$gl_cv_next_stdint_h
7724
7725 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7726 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7727 gl_next_as_first_directive='<'stdint.h'>'
7728 else
7729 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7730 gl_next_as_first_directive=$gl_cv_next_stdint_h
7731 fi
7732 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
7733
7734
7735
7736
7737 if test $ac_cv_header_stdint_h = yes; then
7738 HAVE_STDINT_H=1
7739 else
7740 HAVE_STDINT_H=0
7741 fi
7742
7743
7744 if test $ac_cv_header_stdint_h = yes; then
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
7746 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
7747 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
7748 $as_echo_n "(cached) " >&6
7749 else
7750 gl_cv_header_working_stdint_h=no
7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h. */
7753
7754
7755 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7756 #include <stdint.h>
7757 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
7758 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
7759 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
7760 #endif
7761
7762
7763 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7764 included before <wchar.h>. */
7765 #include <stddef.h>
7766 #include <signal.h>
7767 #if HAVE_WCHAR_H
7768 # include <stdio.h>
7769 # include <time.h>
7770 # include <wchar.h>
7771 #endif
7772
7773
7774 #ifdef INT8_MAX
7775 int8_t a1 = INT8_MAX;
7776 int8_t a1min = INT8_MIN;
7777 #endif
7778 #ifdef INT16_MAX
7779 int16_t a2 = INT16_MAX;
7780 int16_t a2min = INT16_MIN;
7781 #endif
7782 #ifdef INT32_MAX
7783 int32_t a3 = INT32_MAX;
7784 int32_t a3min = INT32_MIN;
7785 #endif
7786 #ifdef INT64_MAX
7787 int64_t a4 = INT64_MAX;
7788 int64_t a4min = INT64_MIN;
7789 #endif
7790 #ifdef UINT8_MAX
7791 uint8_t b1 = UINT8_MAX;
7792 #else
7793 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
7794 #endif
7795 #ifdef UINT16_MAX
7796 uint16_t b2 = UINT16_MAX;
7797 #endif
7798 #ifdef UINT32_MAX
7799 uint32_t b3 = UINT32_MAX;
7800 #endif
7801 #ifdef UINT64_MAX
7802 uint64_t b4 = UINT64_MAX;
7803 #endif
7804 int_least8_t c1 = INT8_C (0x7f);
7805 int_least8_t c1max = INT_LEAST8_MAX;
7806 int_least8_t c1min = INT_LEAST8_MIN;
7807 int_least16_t c2 = INT16_C (0x7fff);
7808 int_least16_t c2max = INT_LEAST16_MAX;
7809 int_least16_t c2min = INT_LEAST16_MIN;
7810 int_least32_t c3 = INT32_C (0x7fffffff);
7811 int_least32_t c3max = INT_LEAST32_MAX;
7812 int_least32_t c3min = INT_LEAST32_MIN;
7813 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
7814 int_least64_t c4max = INT_LEAST64_MAX;
7815 int_least64_t c4min = INT_LEAST64_MIN;
7816 uint_least8_t d1 = UINT8_C (0xff);
7817 uint_least8_t d1max = UINT_LEAST8_MAX;
7818 uint_least16_t d2 = UINT16_C (0xffff);
7819 uint_least16_t d2max = UINT_LEAST16_MAX;
7820 uint_least32_t d3 = UINT32_C (0xffffffff);
7821 uint_least32_t d3max = UINT_LEAST32_MAX;
7822 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
7823 uint_least64_t d4max = UINT_LEAST64_MAX;
7824 int_fast8_t e1 = INT_FAST8_MAX;
7825 int_fast8_t e1min = INT_FAST8_MIN;
7826 int_fast16_t e2 = INT_FAST16_MAX;
7827 int_fast16_t e2min = INT_FAST16_MIN;
7828 int_fast32_t e3 = INT_FAST32_MAX;
7829 int_fast32_t e3min = INT_FAST32_MIN;
7830 int_fast64_t e4 = INT_FAST64_MAX;
7831 int_fast64_t e4min = INT_FAST64_MIN;
7832 uint_fast8_t f1 = UINT_FAST8_MAX;
7833 uint_fast16_t f2 = UINT_FAST16_MAX;
7834 uint_fast32_t f3 = UINT_FAST32_MAX;
7835 uint_fast64_t f4 = UINT_FAST64_MAX;
7836 #ifdef INTPTR_MAX
7837 intptr_t g = INTPTR_MAX;
7838 intptr_t gmin = INTPTR_MIN;
7839 #endif
7840 #ifdef UINTPTR_MAX
7841 uintptr_t h = UINTPTR_MAX;
7842 #endif
7843 intmax_t i = INTMAX_MAX;
7844 uintmax_t j = UINTMAX_MAX;
7845
7846 #include <limits.h> /* for CHAR_BIT */
7847 #define TYPE_MINIMUM(t) \
7848 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
7849 #define TYPE_MAXIMUM(t) \
7850 ((t) ((t) 0 < (t) -1 \
7851 ? (t) -1 \
7852 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
7853 struct s {
7854 int check_PTRDIFF:
7855 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
7856 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
7857 ? 1 : -1;
7858 /* Detect bug in FreeBSD 6.0 / ia64. */
7859 int check_SIG_ATOMIC:
7860 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
7861 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
7862 ? 1 : -1;
7863 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
7864 int check_WCHAR:
7865 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
7866 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
7867 ? 1 : -1;
7868 /* Detect bug in mingw. */
7869 int check_WINT:
7870 WINT_MIN == TYPE_MINIMUM (wint_t)
7871 && WINT_MAX == TYPE_MAXIMUM (wint_t)
7872 ? 1 : -1;
7873
7874 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
7875 int check_UINT8_C:
7876 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
7877 int check_UINT16_C:
7878 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
7879
7880 /* Detect bugs in OpenBSD 3.9 stdint.h. */
7881 #ifdef UINT8_MAX
7882 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
7883 #endif
7884 #ifdef UINT16_MAX
7885 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
7886 #endif
7887 #ifdef UINT32_MAX
7888 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
7889 #endif
7890 #ifdef UINT64_MAX
7891 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
7892 #endif
7893 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
7894 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
7895 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
7896 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
7897 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
7898 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
7899 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
7900 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
7901 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
7902 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
7903 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
7904 };
7905
7906 int
7907 main ()
7908 {
7909
7910 ;
7911 return 0;
7912 }
7913 _ACEOF
7914 if ac_fn_c_try_compile "$LINENO"; then :
7915 if test "$cross_compiling" = yes; then :
7916 gl_cv_header_working_stdint_h=yes
7917
7918 else
7919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7920 /* end confdefs.h. */
7921
7922
7923 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7924 #include <stdint.h>
7925
7926
7927 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7928 included before <wchar.h>. */
7929 #include <stddef.h>
7930 #include <signal.h>
7931 #if HAVE_WCHAR_H
7932 # include <stdio.h>
7933 # include <time.h>
7934 # include <wchar.h>
7935 #endif
7936
7937
7938 #include <stdio.h>
7939 #include <string.h>
7940 #define MVAL(macro) MVAL1(macro)
7941 #define MVAL1(expression) #expression
7942 static const char *macro_values[] =
7943 {
7944 #ifdef INT8_MAX
7945 MVAL (INT8_MAX),
7946 #endif
7947 #ifdef INT16_MAX
7948 MVAL (INT16_MAX),
7949 #endif
7950 #ifdef INT32_MAX
7951 MVAL (INT32_MAX),
7952 #endif
7953 #ifdef INT64_MAX
7954 MVAL (INT64_MAX),
7955 #endif
7956 #ifdef UINT8_MAX
7957 MVAL (UINT8_MAX),
7958 #endif
7959 #ifdef UINT16_MAX
7960 MVAL (UINT16_MAX),
7961 #endif
7962 #ifdef UINT32_MAX
7963 MVAL (UINT32_MAX),
7964 #endif
7965 #ifdef UINT64_MAX
7966 MVAL (UINT64_MAX),
7967 #endif
7968 NULL
7969 };
7970
7971 int
7972 main ()
7973 {
7974
7975 const char **mv;
7976 for (mv = macro_values; *mv != NULL; mv++)
7977 {
7978 const char *value = *mv;
7979 /* Test whether it looks like a cast expression. */
7980 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
7981 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
7982 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
7983 || strncmp (value, "((int)"/*)*/, 6) == 0
7984 || strncmp (value, "((signed short)"/*)*/, 15) == 0
7985 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
7986 return mv - macro_values + 1;
7987 }
7988 return 0;
7989
7990 ;
7991 return 0;
7992 }
7993 _ACEOF
7994 if ac_fn_c_try_run "$LINENO"; then :
7995 gl_cv_header_working_stdint_h=yes
7996 fi
7997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7998 conftest.$ac_objext conftest.beam conftest.$ac_ext
7999 fi
8000
8001
8002 fi
8003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8004
8005 fi
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
8007 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
8008 fi
8009 if test "$gl_cv_header_working_stdint_h" = yes; then
8010 STDINT_H=
8011 else
8012 for ac_header in sys/inttypes.h sys/bitypes.h
8013 do :
8014 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8015 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8016 eval as_val=\$$as_ac_Header
8017 if test "x$as_val" = x""yes; then :
8018 cat >>confdefs.h <<_ACEOF
8019 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8020 _ACEOF
8021
8022 fi
8023
8024 done
8025
8026 if test $ac_cv_header_sys_inttypes_h = yes; then
8027 HAVE_SYS_INTTYPES_H=1
8028 else
8029 HAVE_SYS_INTTYPES_H=0
8030 fi
8031
8032 if test $ac_cv_header_sys_bitypes_h = yes; then
8033 HAVE_SYS_BITYPES_H=1
8034 else
8035 HAVE_SYS_BITYPES_H=0
8036 fi
8037
8038
8039
8040
8041 if test $APPLE_UNIVERSAL_BUILD = 0; then
8042
8043
8044 for gltype in ptrdiff_t size_t ; do
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8046 $as_echo_n "checking for bit size of $gltype... " >&6; }
8047 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8048 $as_echo_n "(cached) " >&6
8049 else
8050 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8051 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8052 included before <wchar.h>. */
8053 #include <stddef.h>
8054 #include <signal.h>
8055 #if HAVE_WCHAR_H
8056 # include <stdio.h>
8057 # include <time.h>
8058 # include <wchar.h>
8059 #endif
8060
8061 #include <limits.h>"; then :
8062
8063 else
8064 result=unknown
8065 fi
8066
8067 eval gl_cv_bitsizeof_${gltype}=\$result
8068
8069 fi
8070 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8072 $as_echo "$ac_res" >&6; }
8073 eval result=\$gl_cv_bitsizeof_${gltype}
8074 if test $result = unknown; then
8075 result=0
8076 fi
8077 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8078 cat >>confdefs.h <<_ACEOF
8079 #define BITSIZEOF_${GLTYPE} $result
8080 _ACEOF
8081
8082 eval BITSIZEOF_${GLTYPE}=\$result
8083 done
8084
8085
8086 fi
8087
8088
8089 for gltype in sig_atomic_t wchar_t wint_t ; do
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
8091 $as_echo_n "checking for bit size of $gltype... " >&6; }
8092 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
8093 $as_echo_n "(cached) " >&6
8094 else
8095 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
8096 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8097 included before <wchar.h>. */
8098 #include <stddef.h>
8099 #include <signal.h>
8100 #if HAVE_WCHAR_H
8101 # include <stdio.h>
8102 # include <time.h>
8103 # include <wchar.h>
8104 #endif
8105
8106 #include <limits.h>"; then :
8107
8108 else
8109 result=unknown
8110 fi
8111
8112 eval gl_cv_bitsizeof_${gltype}=\$result
8113
8114 fi
8115 eval ac_res=\$gl_cv_bitsizeof_${gltype}
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8117 $as_echo "$ac_res" >&6; }
8118 eval result=\$gl_cv_bitsizeof_${gltype}
8119 if test $result = unknown; then
8120 result=0
8121 fi
8122 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8123 cat >>confdefs.h <<_ACEOF
8124 #define BITSIZEOF_${GLTYPE} $result
8125 _ACEOF
8126
8127 eval BITSIZEOF_${GLTYPE}=\$result
8128 done
8129
8130
8131
8132
8133 for gltype in sig_atomic_t wchar_t wint_t ; do
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
8135 $as_echo_n "checking whether $gltype is signed... " >&6; }
8136 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
8137 $as_echo_n "(cached) " >&6
8138 else
8139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8140 /* end confdefs.h. */
8141
8142 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8143 included before <wchar.h>. */
8144 #include <stddef.h>
8145 #include <signal.h>
8146 #if HAVE_WCHAR_H
8147 # include <stdio.h>
8148 # include <time.h>
8149 # include <wchar.h>
8150 #endif
8151
8152 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
8153 int
8154 main ()
8155 {
8156
8157 ;
8158 return 0;
8159 }
8160 _ACEOF
8161 if ac_fn_c_try_compile "$LINENO"; then :
8162 result=yes
8163 else
8164 result=no
8165 fi
8166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8167 eval gl_cv_type_${gltype}_signed=\$result
8168
8169 fi
8170 eval ac_res=\$gl_cv_type_${gltype}_signed
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8172 $as_echo "$ac_res" >&6; }
8173 eval result=\$gl_cv_type_${gltype}_signed
8174 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8175 if test "$result" = yes; then
8176 cat >>confdefs.h <<_ACEOF
8177 #define HAVE_SIGNED_${GLTYPE} 1
8178 _ACEOF
8179
8180 eval HAVE_SIGNED_${GLTYPE}=1
8181 else
8182 eval HAVE_SIGNED_${GLTYPE}=0
8183 fi
8184 done
8185
8186
8187 gl_cv_type_ptrdiff_t_signed=yes
8188 gl_cv_type_size_t_signed=no
8189 if test $APPLE_UNIVERSAL_BUILD = 0; then
8190
8191
8192 for gltype in ptrdiff_t size_t ; do
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8194 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8195 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8196 $as_echo_n "(cached) " >&6
8197 else
8198 eval gl_cv_type_${gltype}_suffix=no
8199 eval result=\$gl_cv_type_${gltype}_signed
8200 if test "$result" = yes; then
8201 glsufu=
8202 else
8203 glsufu=u
8204 fi
8205 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8206 case $glsuf in
8207 '') gltype1='int';;
8208 l) gltype1='long int';;
8209 ll) gltype1='long long int';;
8210 i64) gltype1='__int64';;
8211 u) gltype1='unsigned int';;
8212 ul) gltype1='unsigned long int';;
8213 ull) gltype1='unsigned long long int';;
8214 ui64)gltype1='unsigned __int64';;
8215 esac
8216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8217 /* end confdefs.h. */
8218
8219 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8220 included before <wchar.h>. */
8221 #include <stddef.h>
8222 #include <signal.h>
8223 #if HAVE_WCHAR_H
8224 # include <stdio.h>
8225 # include <time.h>
8226 # include <wchar.h>
8227 #endif
8228
8229 extern $gltype foo;
8230 extern $gltype1 foo;
8231 int
8232 main ()
8233 {
8234
8235 ;
8236 return 0;
8237 }
8238 _ACEOF
8239 if ac_fn_c_try_compile "$LINENO"; then :
8240 eval gl_cv_type_${gltype}_suffix=\$glsuf
8241 fi
8242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8243 eval result=\$gl_cv_type_${gltype}_suffix
8244 test "$result" != no && break
8245 done
8246 fi
8247 eval ac_res=\$gl_cv_type_${gltype}_suffix
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8249 $as_echo "$ac_res" >&6; }
8250 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8251 eval result=\$gl_cv_type_${gltype}_suffix
8252 test "$result" = no && result=
8253 eval ${GLTYPE}_SUFFIX=\$result
8254 cat >>confdefs.h <<_ACEOF
8255 #define ${GLTYPE}_SUFFIX $result
8256 _ACEOF
8257
8258 done
8259
8260
8261 fi
8262
8263
8264 for gltype in sig_atomic_t wchar_t wint_t ; do
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
8266 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
8267 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
8268 $as_echo_n "(cached) " >&6
8269 else
8270 eval gl_cv_type_${gltype}_suffix=no
8271 eval result=\$gl_cv_type_${gltype}_signed
8272 if test "$result" = yes; then
8273 glsufu=
8274 else
8275 glsufu=u
8276 fi
8277 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
8278 case $glsuf in
8279 '') gltype1='int';;
8280 l) gltype1='long int';;
8281 ll) gltype1='long long int';;
8282 i64) gltype1='__int64';;
8283 u) gltype1='unsigned int';;
8284 ul) gltype1='unsigned long int';;
8285 ull) gltype1='unsigned long long int';;
8286 ui64)gltype1='unsigned __int64';;
8287 esac
8288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8289 /* end confdefs.h. */
8290
8291 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8292 included before <wchar.h>. */
8293 #include <stddef.h>
8294 #include <signal.h>
8295 #if HAVE_WCHAR_H
8296 # include <stdio.h>
8297 # include <time.h>
8298 # include <wchar.h>
8299 #endif
8300
8301 extern $gltype foo;
8302 extern $gltype1 foo;
8303 int
8304 main ()
8305 {
8306
8307 ;
8308 return 0;
8309 }
8310 _ACEOF
8311 if ac_fn_c_try_compile "$LINENO"; then :
8312 eval gl_cv_type_${gltype}_suffix=\$glsuf
8313 fi
8314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8315 eval result=\$gl_cv_type_${gltype}_suffix
8316 test "$result" != no && break
8317 done
8318 fi
8319 eval ac_res=\$gl_cv_type_${gltype}_suffix
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8321 $as_echo "$ac_res" >&6; }
8322 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
8323 eval result=\$gl_cv_type_${gltype}_suffix
8324 test "$result" = no && result=
8325 eval ${GLTYPE}_SUFFIX=\$result
8326 cat >>confdefs.h <<_ACEOF
8327 #define ${GLTYPE}_SUFFIX $result
8328 _ACEOF
8329
8330 done
8331
8332
8333
8334 if test $BITSIZEOF_WINT_T -lt 32; then
8335 BITSIZEOF_WINT_T=32
8336 fi
8337
8338 STDINT_H=stdint.h
8339 fi
8340
8341 if test -n "$STDINT_H"; then
8342 GL_GENERATE_STDINT_H_TRUE=
8343 GL_GENERATE_STDINT_H_FALSE='#'
8344 else
8345 GL_GENERATE_STDINT_H_TRUE='#'
8346 GL_GENERATE_STDINT_H_FALSE=
8347 fi
8348
8349
8350
8351
8352
8353 GNULIB_IMAXABS=0;
8354 GNULIB_IMAXDIV=0;
8355 GNULIB_STRTOIMAX=0;
8356 GNULIB_STRTOUMAX=0;
8357 HAVE_DECL_IMAXABS=1;
8358 HAVE_DECL_IMAXDIV=1;
8359 HAVE_DECL_STRTOIMAX=1;
8360 HAVE_DECL_STRTOUMAX=1;
8361 REPLACE_STRTOIMAX=0;
8362 INT32_MAX_LT_INTMAX_MAX=1;
8363 INT64_MAX_EQ_LONG_MAX='defined _LP64';
8364 PRI_MACROS_BROKEN=0;
8365 PRIPTR_PREFIX=__PRIPTR_PREFIX;
8366 UINT32_MAX_LT_UINTMAX_MAX=1;
8367 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383 if test $gl_cv_have_include_next = yes; then
8384 gl_cv_next_inttypes_h='<'inttypes.h'>'
8385 else
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
8387 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
8388 if test "${gl_cv_next_inttypes_h+set}" = set; then :
8389 $as_echo_n "(cached) " >&6
8390 else
8391
8392 if test $ac_cv_header_inttypes_h = yes; then
8393
8394
8395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8396 /* end confdefs.h. */
8397 #include <inttypes.h>
8398
8399 _ACEOF
8400 case "$host_os" in
8401 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8402 *) gl_absname_cpp="$ac_cpp" ;;
8403 esac
8404
8405 case "$host_os" in
8406 mingw*)
8407 gl_dirsep_regex='[/\\]'
8408 ;;
8409 *)
8410 gl_dirsep_regex='\/'
8411 ;;
8412 esac
8413 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8414
8415 gl_header_literal_regex=`echo 'inttypes.h' \
8416 | sed -e "$gl_make_literal_regex_sed"`
8417 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8418 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8419 s|^/[^/]|//&|
8420 p
8421 q
8422 }'
8423 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8424 sed -n "$gl_absolute_header_sed"`'"'
8425 else
8426 gl_cv_next_inttypes_h='<'inttypes.h'>'
8427 fi
8428
8429
8430 fi
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
8432 $as_echo "$gl_cv_next_inttypes_h" >&6; }
8433 fi
8434 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
8435
8436 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8437 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8438 gl_next_as_first_directive='<'inttypes.h'>'
8439 else
8440 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8441 gl_next_as_first_directive=$gl_cv_next_inttypes_h
8442 fi
8443 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
8444
8445
8446
8447
8448
8449
8450
8451
8452 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
8453 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
8455 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
8456 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
8457 $as_echo_n "(cached) " >&6
8458 else
8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460 /* end confdefs.h. */
8461 #include <inttypes.h>
8462
8463 int
8464 main ()
8465 {
8466 #undef $gl_func
8467 (void) $gl_func;
8468 ;
8469 return 0;
8470 }
8471 _ACEOF
8472 if ac_fn_c_try_compile "$LINENO"; then :
8473 eval "$as_gl_Symbol=yes"
8474 else
8475 eval "$as_gl_Symbol=no"
8476 fi
8477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8478 fi
8479 eval ac_res=\$$as_gl_Symbol
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8481 $as_echo "$ac_res" >&6; }
8482 eval as_val=\$$as_gl_Symbol
8483 if test "x$as_val" = x""yes; then :
8484 cat >>confdefs.h <<_ACEOF
8485 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8486 _ACEOF
8487
8488 eval ac_cv_have_decl_$gl_func=yes
8489 fi
8490 done
8491
8492
8493
8494 for ac_header in inttypes.h
8495 do :
8496 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
8497 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
8498 cat >>confdefs.h <<_ACEOF
8499 #define HAVE_INTTYPES_H 1
8500 _ACEOF
8501
8502 fi
8503
8504 done
8505
8506 if test $ac_cv_header_inttypes_h = yes; then
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
8508 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
8509 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
8510 $as_echo_n "(cached) " >&6
8511 else
8512
8513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8514 /* end confdefs.h. */
8515
8516 #include <inttypes.h>
8517 #ifdef PRId32
8518 char *p = PRId32;
8519 #endif
8520
8521 int
8522 main ()
8523 {
8524
8525 ;
8526 return 0;
8527 }
8528 _ACEOF
8529 if ac_fn_c_try_compile "$LINENO"; then :
8530 gt_cv_inttypes_pri_broken=no
8531 else
8532 gt_cv_inttypes_pri_broken=yes
8533 fi
8534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8535
8536 fi
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
8538 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
8539 fi
8540 if test "$gt_cv_inttypes_pri_broken" = yes; then
8541
8542 cat >>confdefs.h <<_ACEOF
8543 #define PRI_MACROS_BROKEN 1
8544 _ACEOF
8545
8546 PRI_MACROS_BROKEN=1
8547 else
8548 PRI_MACROS_BROKEN=0
8549 fi
8550
8551
8552
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
8554 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
8555 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
8556 $as_echo_n "(cached) " >&6
8557 else
8558
8559 if test "$cross_compiling" = yes; then :
8560
8561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8562 /* end confdefs.h. */
8563
8564 #if defined arm || defined __arm || defined __arm__
8565 mixed_endianness
8566 #endif
8567
8568 _ACEOF
8569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8570 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
8571 gl_cv_cc_double_expbit0="unknown"
8572 else
8573
8574 :
8575 if test "${ac_cv_c_bigendian+set}" = set; then :
8576 $as_echo_n "(cached) " >&6
8577 else
8578 ac_cv_c_bigendian=unknown
8579 # See if we're dealing with a universal compiler.
8580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8581 /* end confdefs.h. */
8582 #ifndef __APPLE_CC__
8583 not a universal capable compiler
8584 #endif
8585 typedef int dummy;
8586
8587 _ACEOF
8588 if ac_fn_c_try_compile "$LINENO"; then :
8589
8590 # Check for potential -arch flags. It is not universal unless
8591 # there are at least two -arch flags with different values.
8592 ac_arch=
8593 ac_prev=
8594 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8595 if test -n "$ac_prev"; then
8596 case $ac_word in
8597 i?86 | x86_64 | ppc | ppc64)
8598 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8599 ac_arch=$ac_word
8600 else
8601 ac_cv_c_bigendian=universal
8602 break
8603 fi
8604 ;;
8605 esac
8606 ac_prev=
8607 elif test "x$ac_word" = "x-arch"; then
8608 ac_prev=arch
8609 fi
8610 done
8611 fi
8612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8613 if test $ac_cv_c_bigendian = unknown; then
8614 # See if sys/param.h defines the BYTE_ORDER macro.
8615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8616 /* end confdefs.h. */
8617 #include <sys/types.h>
8618 #include <sys/param.h>
8619
8620 int
8621 main ()
8622 {
8623 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8624 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8625 && LITTLE_ENDIAN)
8626 bogus endian macros
8627 #endif
8628
8629 ;
8630 return 0;
8631 }
8632 _ACEOF
8633 if ac_fn_c_try_compile "$LINENO"; then :
8634 # It does; now see whether it defined to BIG_ENDIAN or not.
8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h. */
8637 #include <sys/types.h>
8638 #include <sys/param.h>
8639
8640 int
8641 main ()
8642 {
8643 #if BYTE_ORDER != BIG_ENDIAN
8644 not big endian
8645 #endif
8646
8647 ;
8648 return 0;
8649 }
8650 _ACEOF
8651 if ac_fn_c_try_compile "$LINENO"; then :
8652 ac_cv_c_bigendian=yes
8653 else
8654 ac_cv_c_bigendian=no
8655 fi
8656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8657 fi
8658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8659 fi
8660 if test $ac_cv_c_bigendian = unknown; then
8661 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8663 /* end confdefs.h. */
8664 #include <limits.h>
8665
8666 int
8667 main ()
8668 {
8669 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8670 bogus endian macros
8671 #endif
8672
8673 ;
8674 return 0;
8675 }
8676 _ACEOF
8677 if ac_fn_c_try_compile "$LINENO"; then :
8678 # It does; now see whether it defined to _BIG_ENDIAN or not.
8679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680 /* end confdefs.h. */
8681 #include <limits.h>
8682
8683 int
8684 main ()
8685 {
8686 #ifndef _BIG_ENDIAN
8687 not big endian
8688 #endif
8689
8690 ;
8691 return 0;
8692 }
8693 _ACEOF
8694 if ac_fn_c_try_compile "$LINENO"; then :
8695 ac_cv_c_bigendian=yes
8696 else
8697 ac_cv_c_bigendian=no
8698 fi
8699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8700 fi
8701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8702 fi
8703 if test $ac_cv_c_bigendian = unknown; then
8704 # Compile a test program.
8705 if test "$cross_compiling" = yes; then :
8706 # Try to guess by grepping values from an object file.
8707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708 /* end confdefs.h. */
8709 short int ascii_mm[] =
8710 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8711 short int ascii_ii[] =
8712 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8713 int use_ascii (int i) {
8714 return ascii_mm[i] + ascii_ii[i];
8715 }
8716 short int ebcdic_ii[] =
8717 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8718 short int ebcdic_mm[] =
8719 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8720 int use_ebcdic (int i) {
8721 return ebcdic_mm[i] + ebcdic_ii[i];
8722 }
8723 extern int foo;
8724
8725 int
8726 main ()
8727 {
8728 return use_ascii (foo) == use_ebcdic (foo);
8729 ;
8730 return 0;
8731 }
8732 _ACEOF
8733 if ac_fn_c_try_compile "$LINENO"; then :
8734 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8735 ac_cv_c_bigendian=yes
8736 fi
8737 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8738 if test "$ac_cv_c_bigendian" = unknown; then
8739 ac_cv_c_bigendian=no
8740 else
8741 # finding both strings is unlikely to happen, but who knows?
8742 ac_cv_c_bigendian=unknown
8743 fi
8744 fi
8745 fi
8746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8747 else
8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749 /* end confdefs.h. */
8750 $ac_includes_default
8751 int
8752 main ()
8753 {
8754
8755 /* Are we little or big endian? From Harbison&Steele. */
8756 union
8757 {
8758 long int l;
8759 char c[sizeof (long int)];
8760 } u;
8761 u.l = 1;
8762 return u.c[sizeof (long int) - 1] == 1;
8763
8764 ;
8765 return 0;
8766 }
8767 _ACEOF
8768 if ac_fn_c_try_run "$LINENO"; then :
8769 ac_cv_c_bigendian=no
8770 else
8771 ac_cv_c_bigendian=yes
8772 fi
8773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8774 conftest.$ac_objext conftest.beam conftest.$ac_ext
8775 fi
8776
8777 fi
8778 fi
8779 :
8780 case $ac_cv_c_bigendian in #(
8781 yes)
8782 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
8783 no)
8784 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
8785 universal)
8786
8787 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8788
8789 ;; #(
8790 *)
8791 gl_cv_cc_double_expbit0="unknown" ;;
8792 esac
8793
8794
8795 fi
8796 rm -f conftest*
8797
8798
8799 else
8800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8801 /* end confdefs.h. */
8802
8803 #include <float.h>
8804 #include <stddef.h>
8805 #include <stdio.h>
8806 #include <string.h>
8807 #define NWORDS \
8808 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
8809 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
8810 static unsigned int ored_words[NWORDS];
8811 static unsigned int anded_words[NWORDS];
8812 static void add_to_ored_words (double x)
8813 {
8814 memory_double m;
8815 size_t i;
8816 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
8817 memset (&m, 0, sizeof (memory_double));
8818 m.value = x;
8819 for (i = 0; i < NWORDS; i++)
8820 {
8821 ored_words[i] |= m.word[i];
8822 anded_words[i] &= m.word[i];
8823 }
8824 }
8825 int main ()
8826 {
8827 size_t j;
8828 FILE *fp = fopen ("conftest.out", "w");
8829 if (fp == NULL)
8830 return 1;
8831 for (j = 0; j < NWORDS; j++)
8832 anded_words[j] = ~ (unsigned int) 0;
8833 add_to_ored_words (0.25);
8834 add_to_ored_words (0.5);
8835 add_to_ored_words (1.0);
8836 add_to_ored_words (2.0);
8837 add_to_ored_words (4.0);
8838 /* Remove bits that are common (e.g. if representation of the first mantissa
8839 bit is explicit). */
8840 for (j = 0; j < NWORDS; j++)
8841 ored_words[j] &= ~anded_words[j];
8842 /* Now find the nonzero word. */
8843 for (j = 0; j < NWORDS; j++)
8844 if (ored_words[j] != 0)
8845 break;
8846 if (j < NWORDS)
8847 {
8848 size_t i;
8849 for (i = j + 1; i < NWORDS; i++)
8850 if (ored_words[i] != 0)
8851 {
8852 fprintf (fp, "unknown");
8853 return (fclose (fp) != 0);
8854 }
8855 for (i = 0; ; i++)
8856 if ((ored_words[j] >> i) & 1)
8857 {
8858 fprintf (fp, "word %d bit %d", (int) j, (int) i);
8859 return (fclose (fp) != 0);
8860 }
8861 }
8862 fprintf (fp, "unknown");
8863 return (fclose (fp) != 0);
8864 }
8865
8866 _ACEOF
8867 if ac_fn_c_try_run "$LINENO"; then :
8868 gl_cv_cc_double_expbit0=`cat conftest.out`
8869 else
8870 gl_cv_cc_double_expbit0="unknown"
8871 fi
8872 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8873 conftest.$ac_objext conftest.beam conftest.$ac_ext
8874 fi
8875
8876 rm -f conftest.out
8877
8878 fi
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
8880 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
8881 case "$gl_cv_cc_double_expbit0" in
8882 word*bit*)
8883 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
8884 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
8885
8886 cat >>confdefs.h <<_ACEOF
8887 #define DBL_EXPBIT0_WORD $word
8888 _ACEOF
8889
8890
8891 cat >>confdefs.h <<_ACEOF
8892 #define DBL_EXPBIT0_BIT $bit
8893 _ACEOF
8894
8895 ;;
8896 esac
8897
8898
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8900 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8901 if test "${ac_cv_c_bigendian+set}" = set; then :
8902 $as_echo_n "(cached) " >&6
8903 else
8904 ac_cv_c_bigendian=unknown
8905 # See if we're dealing with a universal compiler.
8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907 /* end confdefs.h. */
8908 #ifndef __APPLE_CC__
8909 not a universal capable compiler
8910 #endif
8911 typedef int dummy;
8912
8913 _ACEOF
8914 if ac_fn_c_try_compile "$LINENO"; then :
8915
8916 # Check for potential -arch flags. It is not universal unless
8917 # there are at least two -arch flags with different values.
8918 ac_arch=
8919 ac_prev=
8920 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8921 if test -n "$ac_prev"; then
8922 case $ac_word in
8923 i?86 | x86_64 | ppc | ppc64)
8924 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8925 ac_arch=$ac_word
8926 else
8927 ac_cv_c_bigendian=universal
8928 break
8929 fi
8930 ;;
8931 esac
8932 ac_prev=
8933 elif test "x$ac_word" = "x-arch"; then
8934 ac_prev=arch
8935 fi
8936 done
8937 fi
8938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8939 if test $ac_cv_c_bigendian = unknown; then
8940 # See if sys/param.h defines the BYTE_ORDER macro.
8941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8942 /* end confdefs.h. */
8943 #include <sys/types.h>
8944 #include <sys/param.h>
8945
8946 int
8947 main ()
8948 {
8949 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8950 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8951 && LITTLE_ENDIAN)
8952 bogus endian macros
8953 #endif
8954
8955 ;
8956 return 0;
8957 }
8958 _ACEOF
8959 if ac_fn_c_try_compile "$LINENO"; then :
8960 # It does; now see whether it defined to BIG_ENDIAN or not.
8961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8962 /* end confdefs.h. */
8963 #include <sys/types.h>
8964 #include <sys/param.h>
8965
8966 int
8967 main ()
8968 {
8969 #if BYTE_ORDER != BIG_ENDIAN
8970 not big endian
8971 #endif
8972
8973 ;
8974 return 0;
8975 }
8976 _ACEOF
8977 if ac_fn_c_try_compile "$LINENO"; then :
8978 ac_cv_c_bigendian=yes
8979 else
8980 ac_cv_c_bigendian=no
8981 fi
8982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8983 fi
8984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8985 fi
8986 if test $ac_cv_c_bigendian = unknown; then
8987 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8989 /* end confdefs.h. */
8990 #include <limits.h>
8991
8992 int
8993 main ()
8994 {
8995 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8996 bogus endian macros
8997 #endif
8998
8999 ;
9000 return 0;
9001 }
9002 _ACEOF
9003 if ac_fn_c_try_compile "$LINENO"; then :
9004 # It does; now see whether it defined to _BIG_ENDIAN or not.
9005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9006 /* end confdefs.h. */
9007 #include <limits.h>
9008
9009 int
9010 main ()
9011 {
9012 #ifndef _BIG_ENDIAN
9013 not big endian
9014 #endif
9015
9016 ;
9017 return 0;
9018 }
9019 _ACEOF
9020 if ac_fn_c_try_compile "$LINENO"; then :
9021 ac_cv_c_bigendian=yes
9022 else
9023 ac_cv_c_bigendian=no
9024 fi
9025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9026 fi
9027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9028 fi
9029 if test $ac_cv_c_bigendian = unknown; then
9030 # Compile a test program.
9031 if test "$cross_compiling" = yes; then :
9032 # Try to guess by grepping values from an object file.
9033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9034 /* end confdefs.h. */
9035 short int ascii_mm[] =
9036 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9037 short int ascii_ii[] =
9038 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9039 int use_ascii (int i) {
9040 return ascii_mm[i] + ascii_ii[i];
9041 }
9042 short int ebcdic_ii[] =
9043 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9044 short int ebcdic_mm[] =
9045 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9046 int use_ebcdic (int i) {
9047 return ebcdic_mm[i] + ebcdic_ii[i];
9048 }
9049 extern int foo;
9050
9051 int
9052 main ()
9053 {
9054 return use_ascii (foo) == use_ebcdic (foo);
9055 ;
9056 return 0;
9057 }
9058 _ACEOF
9059 if ac_fn_c_try_compile "$LINENO"; then :
9060 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9061 ac_cv_c_bigendian=yes
9062 fi
9063 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9064 if test "$ac_cv_c_bigendian" = unknown; then
9065 ac_cv_c_bigendian=no
9066 else
9067 # finding both strings is unlikely to happen, but who knows?
9068 ac_cv_c_bigendian=unknown
9069 fi
9070 fi
9071 fi
9072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9073 else
9074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9075 /* end confdefs.h. */
9076 $ac_includes_default
9077 int
9078 main ()
9079 {
9080
9081 /* Are we little or big endian? From Harbison&Steele. */
9082 union
9083 {
9084 long int l;
9085 char c[sizeof (long int)];
9086 } u;
9087 u.l = 1;
9088 return u.c[sizeof (long int) - 1] == 1;
9089
9090 ;
9091 return 0;
9092 }
9093 _ACEOF
9094 if ac_fn_c_try_run "$LINENO"; then :
9095 ac_cv_c_bigendian=no
9096 else
9097 ac_cv_c_bigendian=yes
9098 fi
9099 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9100 conftest.$ac_objext conftest.beam conftest.$ac_ext
9101 fi
9102
9103 fi
9104 fi
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9106 $as_echo "$ac_cv_c_bigendian" >&6; }
9107 case $ac_cv_c_bigendian in #(
9108 yes)
9109 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
9110 ;; #(
9111 no)
9112 ;; #(
9113 universal)
9114
9115 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9116
9117 ;; #(
9118 *)
9119 as_fn_error "unknown endianness
9120 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9121 esac
9122
9123
9124
9125
9126 case "$host_os" in
9127 mingw*)
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
9129 $as_echo_n "checking for 64-bit off_t... " >&6; }
9130 if test "${gl_cv_type_off_t_64+set}" = set; then :
9131 $as_echo_n "(cached) " >&6
9132 else
9133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9134 /* end confdefs.h. */
9135 #include <sys/types.h>
9136 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
9137
9138 int
9139 main ()
9140 {
9141
9142 ;
9143 return 0;
9144 }
9145 _ACEOF
9146 if ac_fn_c_try_compile "$LINENO"; then :
9147 gl_cv_type_off_t_64=yes
9148 else
9149 gl_cv_type_off_t_64=no
9150 fi
9151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9152
9153 fi
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
9155 $as_echo "$gl_cv_type_off_t_64" >&6; }
9156 if test $gl_cv_type_off_t_64 = no; then
9157 WINDOWS_64_BIT_OFF_T=1
9158 else
9159 WINDOWS_64_BIT_OFF_T=0
9160 fi
9161 WINDOWS_64_BIT_ST_SIZE=1
9162 ;;
9163 *)
9164 WINDOWS_64_BIT_OFF_T=0
9165 WINDOWS_64_BIT_ST_SIZE=0
9166 ;;
9167 esac
9168
9169
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
9171 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
9172 if test "${am_cv_langinfo_codeset+set}" = set; then :
9173 $as_echo_n "(cached) " >&6
9174 else
9175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9176 /* end confdefs.h. */
9177 #include <langinfo.h>
9178 int
9179 main ()
9180 {
9181 char* cs = nl_langinfo(CODESET); return !cs;
9182 ;
9183 return 0;
9184 }
9185 _ACEOF
9186 if ac_fn_c_try_link "$LINENO"; then :
9187 am_cv_langinfo_codeset=yes
9188 else
9189 am_cv_langinfo_codeset=no
9190 fi
9191 rm -f core conftest.err conftest.$ac_objext \
9192 conftest$ac_exeext conftest.$ac_ext
9193
9194 fi
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
9196 $as_echo "$am_cv_langinfo_codeset" >&6; }
9197 if test $am_cv_langinfo_codeset = yes; then
9198
9199 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
9200
9201 fi
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
9213 $as_echo_n "checking for working fcntl.h... " >&6; }
9214 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
9215 $as_echo_n "(cached) " >&6
9216 else
9217 if test "$cross_compiling" = yes; then :
9218 gl_cv_header_working_fcntl_h=cross-compiling
9219 else
9220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h. */
9222 #include <sys/types.h>
9223 #include <sys/stat.h>
9224 #if HAVE_UNISTD_H
9225 # include <unistd.h>
9226 #else /* on Windows with MSVC */
9227 # include <io.h>
9228 # include <stdlib.h>
9229 # defined sleep(n) _sleep ((n) * 1000)
9230 #endif
9231 #include <fcntl.h>
9232 #ifndef O_NOATIME
9233 #define O_NOATIME 0
9234 #endif
9235 #ifndef O_NOFOLLOW
9236 #define O_NOFOLLOW 0
9237 #endif
9238 static int const constants[] =
9239 {
9240 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
9241 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
9242 };
9243
9244 int
9245 main ()
9246 {
9247
9248 int result = !constants;
9249 #if HAVE_SYMLINK
9250 {
9251 static char const sym[] = "conftest.sym";
9252 if (symlink ("/dev/null", sym) != 0)
9253 result |= 2;
9254 else
9255 {
9256 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
9257 if (fd >= 0)
9258 {
9259 close (fd);
9260 result |= 4;
9261 }
9262 }
9263 if (unlink (sym) != 0 || symlink (".", sym) != 0)
9264 result |= 2;
9265 else
9266 {
9267 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
9268 if (fd >= 0)
9269 {
9270 close (fd);
9271 result |= 4;
9272 }
9273 }
9274 unlink (sym);
9275 }
9276 #endif
9277 {
9278 static char const file[] = "confdefs.h";
9279 int fd = open (file, O_RDONLY | O_NOATIME);
9280 if (fd < 0)
9281 result |= 8;
9282 else
9283 {
9284 struct stat st0;
9285 if (fstat (fd, &st0) != 0)
9286 result |= 16;
9287 else
9288 {
9289 char c;
9290 sleep (1);
9291 if (read (fd, &c, 1) != 1)
9292 result |= 24;
9293 else
9294 {
9295 if (close (fd) != 0)
9296 result |= 32;
9297 else
9298 {
9299 struct stat st1;
9300 if (stat (file, &st1) != 0)
9301 result |= 40;
9302 else
9303 if (st0.st_atime != st1.st_atime)
9304 result |= 64;
9305 }
9306 }
9307 }
9308 }
9309 }
9310 return result;
9311 ;
9312 return 0;
9313 }
9314 _ACEOF
9315 if ac_fn_c_try_run "$LINENO"; then :
9316 gl_cv_header_working_fcntl_h=yes
9317 else
9318 case $? in #(
9319 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
9320 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
9321 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
9322 *) gl_cv_header_working_fcntl_h='no';;
9323 esac
9324 fi
9325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9326 conftest.$ac_objext conftest.beam conftest.$ac_ext
9327 fi
9328
9329 fi
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
9331 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
9332
9333 case $gl_cv_header_working_fcntl_h in #(
9334 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
9335 *) ac_val=1;;
9336 esac
9337
9338 cat >>confdefs.h <<_ACEOF
9339 #define HAVE_WORKING_O_NOATIME $ac_val
9340 _ACEOF
9341
9342
9343 case $gl_cv_header_working_fcntl_h in #(
9344 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
9345 *) ac_val=1;;
9346 esac
9347
9348 cat >>confdefs.h <<_ACEOF
9349 #define HAVE_WORKING_O_NOFOLLOW $ac_val
9350 _ACEOF
9351
9352
9353 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
9354 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
9355 ac_have_decl=1
9356 else
9357 ac_have_decl=0
9358 fi
9359
9360 cat >>confdefs.h <<_ACEOF
9361 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
9362 _ACEOF
9363
9364
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9366 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9367 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
9368 $as_echo_n "(cached) " >&6
9369 else
9370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9371 /* end confdefs.h. */
9372
9373 #include <features.h>
9374 #ifdef __GNU_LIBRARY__
9375 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9376 Lucky GNU user
9377 #endif
9378 #endif
9379 #ifdef __UCLIBC__
9380 Lucky user
9381 #endif
9382
9383 _ACEOF
9384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9385 $EGREP "Lucky" >/dev/null 2>&1; then :
9386 ac_cv_gnu_library_2_1=yes
9387 else
9388 ac_cv_gnu_library_2_1=no
9389 fi
9390 rm -f conftest*
9391
9392
9393
9394 fi
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9396 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
9397
9398 GLIBC21="$ac_cv_gnu_library_2_1"
9399
9400
9401
9402 GNULIB_FCHMODAT=0;
9403 GNULIB_FSTAT=0;
9404 GNULIB_FSTATAT=0;
9405 GNULIB_FUTIMENS=0;
9406 GNULIB_LCHMOD=0;
9407 GNULIB_LSTAT=0;
9408 GNULIB_MKDIRAT=0;
9409 GNULIB_MKFIFO=0;
9410 GNULIB_MKFIFOAT=0;
9411 GNULIB_MKNOD=0;
9412 GNULIB_MKNODAT=0;
9413 GNULIB_STAT=0;
9414 GNULIB_UTIMENSAT=0;
9415 HAVE_FCHMODAT=1;
9416 HAVE_FSTATAT=1;
9417 HAVE_FUTIMENS=1;
9418 HAVE_LCHMOD=1;
9419 HAVE_LSTAT=1;
9420 HAVE_MKDIRAT=1;
9421 HAVE_MKFIFO=1;
9422 HAVE_MKFIFOAT=1;
9423 HAVE_MKNOD=1;
9424 HAVE_MKNODAT=1;
9425 HAVE_UTIMENSAT=1;
9426 REPLACE_FSTAT=0;
9427 REPLACE_FSTATAT=0;
9428 REPLACE_FUTIMENS=0;
9429 REPLACE_LSTAT=0;
9430 REPLACE_MKDIR=0;
9431 REPLACE_MKFIFO=0;
9432 REPLACE_MKNOD=0;
9433 REPLACE_STAT=0;
9434 REPLACE_UTIMENSAT=0;
9435
9436
9437
9438
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
9440 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
9441 if test "${gl_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
9442 $as_echo_n "(cached) " >&6
9443 else
9444 rm -f conftest.sym conftest.file
9445 echo >conftest.file
9446 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
9447 if test "$cross_compiling" = yes; then :
9448 case "$host_os" in
9449 # Guess yes on glibc systems.
9450 *-gnu*) gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
9451 # If we don't know, assume the worst.
9452 *) gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
9453 esac
9454
9455 else
9456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9457 /* end confdefs.h. */
9458 $ac_includes_default
9459 int
9460 main ()
9461 {
9462 struct stat sbuf;
9463 /* Linux will dereference the symlink and fail, as required by
9464 POSIX. That is better in the sense that it means we will not
9465 have to compile and use the lstat wrapper. */
9466 return lstat ("conftest.sym/", &sbuf) == 0;
9467
9468 ;
9469 return 0;
9470 }
9471 _ACEOF
9472 if ac_fn_c_try_run "$LINENO"; then :
9473 gl_cv_func_lstat_dereferences_slashed_symlink=yes
9474 else
9475 gl_cv_func_lstat_dereferences_slashed_symlink=no
9476 fi
9477 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9478 conftest.$ac_objext conftest.beam conftest.$ac_ext
9479 fi
9480
9481 else
9482 # If the 'ln -s' command failed, then we probably don't even
9483 # have an lstat function.
9484 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no"
9485 fi
9486 rm -f conftest.sym conftest.file
9487
9488 fi
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
9490 $as_echo "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
9491 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
9492 *yes)
9493
9494 cat >>confdefs.h <<_ACEOF
9495 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
9496 _ACEOF
9497
9498 ;;
9499 esac
9500
9501
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
9503 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
9504 if test "${gl_cv_func_malloc_posix+set}" = set; then :
9505 $as_echo_n "(cached) " >&6
9506 else
9507
9508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9509 /* end confdefs.h. */
9510
9511 int
9512 main ()
9513 {
9514 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
9515 choke me
9516 #endif
9517
9518 ;
9519 return 0;
9520 }
9521 _ACEOF
9522 if ac_fn_c_try_compile "$LINENO"; then :
9523 gl_cv_func_malloc_posix=yes
9524 else
9525 gl_cv_func_malloc_posix=no
9526 fi
9527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9528
9529 fi
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
9531 $as_echo "$gl_cv_func_malloc_posix" >&6; }
9532
9533
9534
9535 for ac_header in stdlib.h
9536 do :
9537 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
9538 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
9539 cat >>confdefs.h <<_ACEOF
9540 #define HAVE_STDLIB_H 1
9541 _ACEOF
9542
9543 fi
9544
9545 done
9546
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
9548 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
9549 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
9550 $as_echo_n "(cached) " >&6
9551 else
9552 if test "$cross_compiling" = yes; then :
9553 case "$host_os" in
9554 # Guess yes on platforms where we know the result.
9555 *-gnu* | freebsd* | netbsd* | openbsd* \
9556 | hpux* | solaris* | cygwin* | mingw*)
9557 ac_cv_func_malloc_0_nonnull=yes ;;
9558 # If we don't know, assume the worst.
9559 *) ac_cv_func_malloc_0_nonnull=no ;;
9560 esac
9561
9562 else
9563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9564 /* end confdefs.h. */
9565 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
9566 # include <stdlib.h>
9567 #else
9568 char *malloc ();
9569 #endif
9570
9571 int
9572 main ()
9573 {
9574 return ! malloc (0);
9575 ;
9576 return 0;
9577 }
9578
9579 _ACEOF
9580 if ac_fn_c_try_run "$LINENO"; then :
9581 ac_cv_func_malloc_0_nonnull=yes
9582 else
9583 ac_cv_func_malloc_0_nonnull=no
9584 fi
9585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9586 conftest.$ac_objext conftest.beam conftest.$ac_ext
9587 fi
9588
9589
9590 fi
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
9592 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
9593 if test $ac_cv_func_malloc_0_nonnull = yes; then :
9594 gl_cv_func_malloc_0_nonnull=1
9595 else
9596 gl_cv_func_malloc_0_nonnull=0
9597 fi
9598
9599
9600 cat >>confdefs.h <<_ACEOF
9601 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
9602 _ACEOF
9603
9604
9605
9606
9607
9608 GNULIB_BTOWC=0;
9609 GNULIB_WCTOB=0;
9610 GNULIB_MBSINIT=0;
9611 GNULIB_MBRTOWC=0;
9612 GNULIB_MBRLEN=0;
9613 GNULIB_MBSRTOWCS=0;
9614 GNULIB_MBSNRTOWCS=0;
9615 GNULIB_WCRTOMB=0;
9616 GNULIB_WCSRTOMBS=0;
9617 GNULIB_WCSNRTOMBS=0;
9618 GNULIB_WCWIDTH=0;
9619 GNULIB_WMEMCHR=0;
9620 GNULIB_WMEMCMP=0;
9621 GNULIB_WMEMCPY=0;
9622 GNULIB_WMEMMOVE=0;
9623 GNULIB_WMEMSET=0;
9624 GNULIB_WCSLEN=0;
9625 GNULIB_WCSNLEN=0;
9626 GNULIB_WCSCPY=0;
9627 GNULIB_WCPCPY=0;
9628 GNULIB_WCSNCPY=0;
9629 GNULIB_WCPNCPY=0;
9630 GNULIB_WCSCAT=0;
9631 GNULIB_WCSNCAT=0;
9632 GNULIB_WCSCMP=0;
9633 GNULIB_WCSNCMP=0;
9634 GNULIB_WCSCASECMP=0;
9635 GNULIB_WCSNCASECMP=0;
9636 GNULIB_WCSCOLL=0;
9637 GNULIB_WCSXFRM=0;
9638 GNULIB_WCSDUP=0;
9639 GNULIB_WCSCHR=0;
9640 GNULIB_WCSRCHR=0;
9641 GNULIB_WCSCSPN=0;
9642 GNULIB_WCSSPN=0;
9643 GNULIB_WCSPBRK=0;
9644 GNULIB_WCSSTR=0;
9645 GNULIB_WCSTOK=0;
9646 GNULIB_WCSWIDTH=0;
9647 HAVE_BTOWC=1;
9648 HAVE_MBSINIT=1;
9649 HAVE_MBRTOWC=1;
9650 HAVE_MBRLEN=1;
9651 HAVE_MBSRTOWCS=1;
9652 HAVE_MBSNRTOWCS=1;
9653 HAVE_WCRTOMB=1;
9654 HAVE_WCSRTOMBS=1;
9655 HAVE_WCSNRTOMBS=1;
9656 HAVE_WMEMCHR=1;
9657 HAVE_WMEMCMP=1;
9658 HAVE_WMEMCPY=1;
9659 HAVE_WMEMMOVE=1;
9660 HAVE_WMEMSET=1;
9661 HAVE_WCSLEN=1;
9662 HAVE_WCSNLEN=1;
9663 HAVE_WCSCPY=1;
9664 HAVE_WCPCPY=1;
9665 HAVE_WCSNCPY=1;
9666 HAVE_WCPNCPY=1;
9667 HAVE_WCSCAT=1;
9668 HAVE_WCSNCAT=1;
9669 HAVE_WCSCMP=1;
9670 HAVE_WCSNCMP=1;
9671 HAVE_WCSCASECMP=1;
9672 HAVE_WCSNCASECMP=1;
9673 HAVE_WCSCOLL=1;
9674 HAVE_WCSXFRM=1;
9675 HAVE_WCSDUP=1;
9676 HAVE_WCSCHR=1;
9677 HAVE_WCSRCHR=1;
9678 HAVE_WCSCSPN=1;
9679 HAVE_WCSSPN=1;
9680 HAVE_WCSPBRK=1;
9681 HAVE_WCSSTR=1;
9682 HAVE_WCSTOK=1;
9683 HAVE_WCSWIDTH=1;
9684 HAVE_DECL_WCTOB=1;
9685 HAVE_DECL_WCWIDTH=1;
9686 REPLACE_MBSTATE_T=0;
9687 REPLACE_BTOWC=0;
9688 REPLACE_WCTOB=0;
9689 REPLACE_MBSINIT=0;
9690 REPLACE_MBRTOWC=0;
9691 REPLACE_MBRLEN=0;
9692 REPLACE_MBSRTOWCS=0;
9693 REPLACE_MBSNRTOWCS=0;
9694 REPLACE_WCRTOMB=0;
9695 REPLACE_WCSRTOMBS=0;
9696 REPLACE_WCSNRTOMBS=0;
9697 REPLACE_WCWIDTH=0;
9698 REPLACE_WCSWIDTH=0;
9699
9700
9701
9702
9703
9704
9705
9706
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
9708 $as_echo_n "checking for a traditional japanese locale... " >&6; }
9709 if test "${gt_cv_locale_ja+set}" = set; then :
9710 $as_echo_n "(cached) " >&6
9711 else
9712
9713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714 /* end confdefs.h. */
9715
9716 #include <locale.h>
9717 #include <time.h>
9718 #if HAVE_LANGINFO_CODESET
9719 # include <langinfo.h>
9720 #endif
9721 #include <stdlib.h>
9722 #include <string.h>
9723 struct tm t;
9724 char buf[16];
9725 int main ()
9726 {
9727 const char *p;
9728 /* Check whether the given locale name is recognized by the system. */
9729 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9730 /* On native Windows, setlocale(category, "") looks at the system settings,
9731 not at the environment variables. Also, when an encoding suffix such
9732 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9733 category of the locale to "C". */
9734 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9735 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9736 return 1;
9737 #else
9738 if (setlocale (LC_ALL, "") == NULL) return 1;
9739 #endif
9740 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9741 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9742 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9743 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9744 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9745 some unit tests fail.
9746 On MirBSD 10, when an unsupported locale is specified, setlocale()
9747 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
9748 #if HAVE_LANGINFO_CODESET
9749 {
9750 const char *cs = nl_langinfo (CODESET);
9751 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
9752 || strcmp (cs, "UTF-8") == 0)
9753 return 1;
9754 }
9755 #endif
9756 #ifdef __CYGWIN__
9757 /* On Cygwin, avoid locale names without encoding suffix, because the
9758 locale_charset() function relies on the encoding suffix. Note that
9759 LC_ALL is set on the command line. */
9760 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9761 #endif
9762 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
9763 on Cygwin 1.5.x. */
9764 if (MB_CUR_MAX == 1)
9765 return 1;
9766 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
9767 This excludes the UTF-8 encoding (except on MirBSD). */
9768 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9769 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
9770 for (p = buf; *p != '\0'; p++)
9771 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
9772 return 1;
9773 return 0;
9774 }
9775
9776 _ACEOF
9777 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9778 (eval $ac_link) 2>&5
9779 ac_status=$?
9780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9781 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9782 case "$host_os" in
9783 # Handle native Windows specially, because there setlocale() interprets
9784 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9785 # "fr" or "fra" as "French" or "French_France.1252",
9786 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9787 # "ja" as "Japanese" or "Japanese_Japan.932",
9788 # and similar.
9789 mingw*)
9790 # Note that on native Windows, the Japanese locale is
9791 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
9792 # cannot use it here.
9793 gt_cv_locale_ja=none
9794 ;;
9795 *)
9796 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9797 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9798 # configure script would override the LC_ALL setting. Likewise for
9799 # LC_CTYPE, which is also set at the beginning of the configure script.
9800 # Test for the AIX locale name.
9801 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9802 gt_cv_locale_ja=ja_JP
9803 else
9804 # Test for the locale name with explicit encoding suffix.
9805 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9806 gt_cv_locale_ja=ja_JP.EUC-JP
9807 else
9808 # Test for the HP-UX, OSF/1, NetBSD locale name.
9809 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9810 gt_cv_locale_ja=ja_JP.eucJP
9811 else
9812 # Test for the IRIX, FreeBSD locale name.
9813 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9814 gt_cv_locale_ja=ja_JP.EUC
9815 else
9816 # Test for the Solaris 7 locale name.
9817 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9818 gt_cv_locale_ja=ja
9819 else
9820 # Special test for NetBSD 1.6.
9821 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
9822 gt_cv_locale_ja=ja_JP.eucJP
9823 else
9824 # None found.
9825 gt_cv_locale_ja=none
9826 fi
9827 fi
9828 fi
9829 fi
9830 fi
9831 fi
9832 ;;
9833 esac
9834 fi
9835 rm -fr conftest*
9836
9837 fi
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
9839 $as_echo "$gt_cv_locale_ja" >&6; }
9840 LOCALE_JA=$gt_cv_locale_ja
9841
9842
9843
9844
9845
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
9847 $as_echo_n "checking for a transitional chinese locale... " >&6; }
9848 if test "${gt_cv_locale_zh_CN+set}" = set; then :
9849 $as_echo_n "(cached) " >&6
9850 else
9851
9852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9853 /* end confdefs.h. */
9854
9855 #include <locale.h>
9856 #include <stdlib.h>
9857 #include <time.h>
9858 #if HAVE_LANGINFO_CODESET
9859 # include <langinfo.h>
9860 #endif
9861 #include <stdlib.h>
9862 #include <string.h>
9863 struct tm t;
9864 char buf[16];
9865 int main ()
9866 {
9867 const char *p;
9868 /* Check whether the given locale name is recognized by the system. */
9869 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9870 /* On native Windows, setlocale(category, "") looks at the system settings,
9871 not at the environment variables. Also, when an encoding suffix such
9872 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9873 category of the locale to "C". */
9874 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9875 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9876 return 1;
9877 #else
9878 if (setlocale (LC_ALL, "") == NULL) return 1;
9879 #endif
9880 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9881 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9882 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9883 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9884 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9885 some unit tests fail.
9886 On MirBSD 10, when an unsupported locale is specified, setlocale()
9887 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
9888 #if HAVE_LANGINFO_CODESET
9889 {
9890 const char *cs = nl_langinfo (CODESET);
9891 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
9892 || strcmp (cs, "UTF-8") == 0)
9893 return 1;
9894 }
9895 #endif
9896 #ifdef __CYGWIN__
9897 /* On Cygwin, avoid locale names without encoding suffix, because the
9898 locale_charset() function relies on the encoding suffix. Note that
9899 LC_ALL is set on the command line. */
9900 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9901 #endif
9902 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
9903 This excludes the UTF-8 encoding (except on MirBSD). */
9904 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9905 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
9906 for (p = buf; *p != '\0'; p++)
9907 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
9908 return 1;
9909 /* Check whether a typical GB18030 multibyte sequence is recognized as a
9910 single wide character. This excludes the GB2312 and GBK encodings. */
9911 if (mblen ("\203\062\332\066", 5) != 4)
9912 return 1;
9913 return 0;
9914 }
9915
9916 _ACEOF
9917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9918 (eval $ac_link) 2>&5
9919 ac_status=$?
9920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9921 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9922 case "$host_os" in
9923 # Handle native Windows specially, because there setlocale() interprets
9924 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9925 # "fr" or "fra" as "French" or "French_France.1252",
9926 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9927 # "ja" as "Japanese" or "Japanese_Japan.932",
9928 # and similar.
9929 mingw*)
9930 # Test for the hypothetical native Windows locale name.
9931 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9932 gt_cv_locale_zh_CN=Chinese_China.54936
9933 else
9934 # None found.
9935 gt_cv_locale_zh_CN=none
9936 fi
9937 ;;
9938 solaris2.8)
9939 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
9940 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
9941 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
9942 gt_cv_locale_zh_CN=none
9943 ;;
9944 *)
9945 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9946 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9947 # configure script would override the LC_ALL setting. Likewise for
9948 # LC_CTYPE, which is also set at the beginning of the configure script.
9949 # Test for the locale name without encoding suffix.
9950 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9951 gt_cv_locale_zh_CN=zh_CN
9952 else
9953 # Test for the locale name with explicit encoding suffix.
9954 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9955 gt_cv_locale_zh_CN=zh_CN.GB18030
9956 else
9957 # None found.
9958 gt_cv_locale_zh_CN=none
9959 fi
9960 fi
9961 ;;
9962 esac
9963 else
9964 # If there was a link error, due to mblen(), the system is so old that
9965 # it certainly doesn't have a chinese locale.
9966 gt_cv_locale_zh_CN=none
9967 fi
9968 rm -fr conftest*
9969
9970 fi
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
9972 $as_echo "$gt_cv_locale_zh_CN" >&6; }
9973 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
9974
9975
9976
9977
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
9979 $as_echo_n "checking for a french Unicode locale... " >&6; }
9980 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
9981 $as_echo_n "(cached) " >&6
9982 else
9983
9984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9985 /* end confdefs.h. */
9986
9987 #include <locale.h>
9988 #include <time.h>
9989 #if HAVE_LANGINFO_CODESET
9990 # include <langinfo.h>
9991 #endif
9992 #include <stdlib.h>
9993 #include <string.h>
9994 struct tm t;
9995 char buf[16];
9996 int main () {
9997 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
9998 imitates locale dependent behaviour by looking at the environment
9999 variables, and all locales use the UTF-8 encoding. */
10000 #if !(defined __BEOS__ || defined __HAIKU__)
10001 /* Check whether the given locale name is recognized by the system. */
10002 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10003 /* On native Windows, setlocale(category, "") looks at the system settings,
10004 not at the environment variables. Also, when an encoding suffix such
10005 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10006 category of the locale to "C". */
10007 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10008 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10009 return 1;
10010 # else
10011 if (setlocale (LC_ALL, "") == NULL) return 1;
10012 # endif
10013 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10014 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10015 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10016 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10017 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10018 some unit tests fail. */
10019 # if HAVE_LANGINFO_CODESET
10020 {
10021 const char *cs = nl_langinfo (CODESET);
10022 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10023 return 1;
10024 }
10025 # endif
10026 # ifdef __CYGWIN__
10027 /* On Cygwin, avoid locale names without encoding suffix, because the
10028 locale_charset() function relies on the encoding suffix. Note that
10029 LC_ALL is set on the command line. */
10030 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10031 # endif
10032 /* Check whether in the abbreviation of the second month, the second
10033 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
10034 two bytes long, with UTF-8 encoding. */
10035 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10036 if (strftime (buf, sizeof (buf), "%b", &t) < 4
10037 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
10038 return 1;
10039 #endif
10040 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10041 /* Check whether the decimal separator is a comma.
10042 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10043 are nl_langinfo(RADIXCHAR) are both ".". */
10044 if (localeconv () ->decimal_point[0] != ',') return 1;
10045 #endif
10046 return 0;
10047 }
10048
10049 _ACEOF
10050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10051 (eval $ac_link) 2>&5
10052 ac_status=$?
10053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10054 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10055 case "$host_os" in
10056 # Handle native Windows specially, because there setlocale() interprets
10057 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10058 # "fr" or "fra" as "French" or "French_France.1252",
10059 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10060 # "ja" as "Japanese" or "Japanese_Japan.932",
10061 # and similar.
10062 mingw*)
10063 # Test for the hypothetical native Windows locale name.
10064 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10065 gt_cv_locale_fr_utf8=French_France.65001
10066 else
10067 # None found.
10068 gt_cv_locale_fr_utf8=none
10069 fi
10070 ;;
10071 *)
10072 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10073 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10074 # configure script would override the LC_ALL setting. Likewise for
10075 # LC_CTYPE, which is also set at the beginning of the configure script.
10076 # Test for the usual locale name.
10077 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10078 gt_cv_locale_fr_utf8=fr_FR
10079 else
10080 # Test for the locale name with explicit encoding suffix.
10081 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10082 gt_cv_locale_fr_utf8=fr_FR.UTF-8
10083 else
10084 # Test for the Solaris 7 locale name.
10085 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10086 gt_cv_locale_fr_utf8=fr.UTF-8
10087 else
10088 # None found.
10089 gt_cv_locale_fr_utf8=none
10090 fi
10091 fi
10092 fi
10093 ;;
10094 esac
10095 fi
10096 rm -fr conftest*
10097
10098 fi
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
10100 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
10101 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
10102
10103
10104
10105
10106
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
10108 $as_echo_n "checking for a traditional french locale... " >&6; }
10109 if test "${gt_cv_locale_fr+set}" = set; then :
10110 $as_echo_n "(cached) " >&6
10111 else
10112
10113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10114 /* end confdefs.h. */
10115
10116 #include <locale.h>
10117 #include <time.h>
10118 #if HAVE_LANGINFO_CODESET
10119 # include <langinfo.h>
10120 #endif
10121 #include <stdlib.h>
10122 #include <string.h>
10123 struct tm t;
10124 char buf[16];
10125 int main () {
10126 /* Check whether the given locale name is recognized by the system. */
10127 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
10128 /* On native Windows, setlocale(category, "") looks at the system settings,
10129 not at the environment variables. Also, when an encoding suffix such
10130 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
10131 category of the locale to "C". */
10132 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
10133 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
10134 return 1;
10135 #else
10136 if (setlocale (LC_ALL, "") == NULL) return 1;
10137 #endif
10138 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10139 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10140 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10141 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10142 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10143 some unit tests fail.
10144 On MirBSD 10, when an unsupported locale is specified, setlocale()
10145 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
10146 #if HAVE_LANGINFO_CODESET
10147 {
10148 const char *cs = nl_langinfo (CODESET);
10149 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
10150 || strcmp (cs, "UTF-8") == 0)
10151 return 1;
10152 }
10153 #endif
10154 #ifdef __CYGWIN__
10155 /* On Cygwin, avoid locale names without encoding suffix, because the
10156 locale_charset() function relies on the encoding suffix. Note that
10157 LC_ALL is set on the command line. */
10158 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10159 #endif
10160 /* Check whether in the abbreviation of the second month, the second
10161 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
10162 one byte long. This excludes the UTF-8 encoding. */
10163 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10164 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
10165 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
10166 /* Check whether the decimal separator is a comma.
10167 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10168 are nl_langinfo(RADIXCHAR) are both ".". */
10169 if (localeconv () ->decimal_point[0] != ',') return 1;
10170 #endif
10171 return 0;
10172 }
10173
10174 _ACEOF
10175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10176 (eval $ac_link) 2>&5
10177 ac_status=$?
10178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10179 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10180 case "$host_os" in
10181 # Handle native Windows specially, because there setlocale() interprets
10182 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
10183 # "fr" or "fra" as "French" or "French_France.1252",
10184 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
10185 # "ja" as "Japanese" or "Japanese_Japan.932",
10186 # and similar.
10187 mingw*)
10188 # Test for the native Windows locale name.
10189 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10190 gt_cv_locale_fr=French_France.1252
10191 else
10192 # None found.
10193 gt_cv_locale_fr=none
10194 fi
10195 ;;
10196 *)
10197 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10198 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
10199 # configure script would override the LC_ALL setting. Likewise for
10200 # LC_CTYPE, which is also set at the beginning of the configure script.
10201 # Test for the usual locale name.
10202 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10203 gt_cv_locale_fr=fr_FR
10204 else
10205 # Test for the locale name with explicit encoding suffix.
10206 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10207 gt_cv_locale_fr=fr_FR.ISO-8859-1
10208 else
10209 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
10210 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10211 gt_cv_locale_fr=fr_FR.ISO8859-1
10212 else
10213 # Test for the HP-UX locale name.
10214 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10215 gt_cv_locale_fr=fr_FR.iso88591
10216 else
10217 # Test for the Solaris 7 locale name.
10218 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10219 gt_cv_locale_fr=fr
10220 else
10221 # None found.
10222 gt_cv_locale_fr=none
10223 fi
10224 fi
10225 fi
10226 fi
10227 fi
10228 ;;
10229 esac
10230 fi
10231 rm -fr conftest*
10232
10233 fi
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
10235 $as_echo "$gt_cv_locale_fr" >&6; }
10236 LOCALE_FR=$gt_cv_locale_fr
10237
10238
10239
10240
10241
10242
10243
10244 GNULIB_FFSL=0;
10245 GNULIB_FFSLL=0;
10246 GNULIB_MEMCHR=0;
10247 GNULIB_MEMMEM=0;
10248 GNULIB_MEMPCPY=0;
10249 GNULIB_MEMRCHR=0;
10250 GNULIB_RAWMEMCHR=0;
10251 GNULIB_STPCPY=0;
10252 GNULIB_STPNCPY=0;
10253 GNULIB_STRCHRNUL=0;
10254 GNULIB_STRDUP=0;
10255 GNULIB_STRNCAT=0;
10256 GNULIB_STRNDUP=0;
10257 GNULIB_STRNLEN=0;
10258 GNULIB_STRPBRK=0;
10259 GNULIB_STRSEP=0;
10260 GNULIB_STRSTR=0;
10261 GNULIB_STRCASESTR=0;
10262 GNULIB_STRTOK_R=0;
10263 GNULIB_MBSLEN=0;
10264 GNULIB_MBSNLEN=0;
10265 GNULIB_MBSCHR=0;
10266 GNULIB_MBSRCHR=0;
10267 GNULIB_MBSSTR=0;
10268 GNULIB_MBSCASECMP=0;
10269 GNULIB_MBSNCASECMP=0;
10270 GNULIB_MBSPCASECMP=0;
10271 GNULIB_MBSCASESTR=0;
10272 GNULIB_MBSCSPN=0;
10273 GNULIB_MBSPBRK=0;
10274 GNULIB_MBSSPN=0;
10275 GNULIB_MBSSEP=0;
10276 GNULIB_MBSTOK_R=0;
10277 GNULIB_STRERROR=0;
10278 GNULIB_STRERROR_R=0;
10279 GNULIB_STRSIGNAL=0;
10280 GNULIB_STRVERSCMP=0;
10281 HAVE_MBSLEN=0;
10282 HAVE_FFSL=1;
10283 HAVE_FFSLL=1;
10284 HAVE_MEMCHR=1;
10285 HAVE_DECL_MEMMEM=1;
10286 HAVE_MEMPCPY=1;
10287 HAVE_DECL_MEMRCHR=1;
10288 HAVE_RAWMEMCHR=1;
10289 HAVE_STPCPY=1;
10290 HAVE_STPNCPY=1;
10291 HAVE_STRCHRNUL=1;
10292 HAVE_DECL_STRDUP=1;
10293 HAVE_DECL_STRNDUP=1;
10294 HAVE_DECL_STRNLEN=1;
10295 HAVE_STRPBRK=1;
10296 HAVE_STRSEP=1;
10297 HAVE_STRCASESTR=1;
10298 HAVE_DECL_STRTOK_R=1;
10299 HAVE_DECL_STRERROR_R=1;
10300 HAVE_DECL_STRSIGNAL=1;
10301 HAVE_STRVERSCMP=1;
10302 REPLACE_MEMCHR=0;
10303 REPLACE_MEMMEM=0;
10304 REPLACE_STPNCPY=0;
10305 REPLACE_STRDUP=0;
10306 REPLACE_STRSTR=0;
10307 REPLACE_STRCASESTR=0;
10308 REPLACE_STRCHRNUL=0;
10309 REPLACE_STRERROR=0;
10310 REPLACE_STRERROR_R=0;
10311 REPLACE_STRNCAT=0;
10312 REPLACE_STRNDUP=0;
10313 REPLACE_STRNLEN=0;
10314 REPLACE_STRSIGNAL=0;
10315 REPLACE_STRTOK_R=0;
10316 UNDEFINE_STRTOK_R=0;
10317
10318
10319
10320
10321
10322 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
10323 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
10324 # irrelevant for anonymous mappings.
10325 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
10326 if test "x$ac_cv_func_mmap" = x""yes; then :
10327 gl_have_mmap=yes
10328 else
10329 gl_have_mmap=no
10330 fi
10331
10332
10333 # Try to allow MAP_ANONYMOUS.
10334 gl_have_mmap_anonymous=no
10335 if test $gl_have_mmap = yes; then
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
10337 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
10338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10339 /* end confdefs.h. */
10340
10341 #include <sys/mman.h>
10342 #ifdef MAP_ANONYMOUS
10343 I cannot identify this map
10344 #endif
10345
10346 _ACEOF
10347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10348 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
10349 gl_have_mmap_anonymous=yes
10350 fi
10351 rm -f conftest*
10352
10353 if test $gl_have_mmap_anonymous != yes; then
10354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10355 /* end confdefs.h. */
10356
10357 #include <sys/mman.h>
10358 #ifdef MAP_ANON
10359 I cannot identify this map
10360 #endif
10361
10362 _ACEOF
10363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10364 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
10365
10366 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
10367
10368 gl_have_mmap_anonymous=yes
10369 fi
10370 rm -f conftest*
10371
10372 fi
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
10374 $as_echo "$gl_have_mmap_anonymous" >&6; }
10375 if test $gl_have_mmap_anonymous = yes; then
10376
10377 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
10378
10379 fi
10380 fi
10381
10382
10383
10384
10385
10386
10387 if test $HAVE_MEMCHR = 1; then
10388 # Detect platform-specific bugs in some versions of glibc:
10389 # memchr should not dereference anything with length 0
10390 # http://bugzilla.redhat.com/499689
10391 # memchr should not dereference overestimated length after a match
10392 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
10393 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
10394 # Assume that memchr works on platforms that lack mprotect.
10395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
10396 $as_echo_n "checking whether memchr works... " >&6; }
10397 if test "${gl_cv_func_memchr_works+set}" = set; then :
10398 $as_echo_n "(cached) " >&6
10399 else
10400 if test "$cross_compiling" = yes; then :
10401 gl_cv_func_memchr_works="guessing no"
10402 else
10403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10404 /* end confdefs.h. */
10405
10406 #include <string.h>
10407 #if HAVE_SYS_MMAN_H
10408 # include <fcntl.h>
10409 # include <unistd.h>
10410 # include <sys/types.h>
10411 # include <sys/mman.h>
10412 # ifndef MAP_FILE
10413 # define MAP_FILE 0
10414 # endif
10415 #endif
10416
10417 int
10418 main ()
10419 {
10420
10421 int result = 0;
10422 char *fence = NULL;
10423 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
10424 # if HAVE_MAP_ANONYMOUS
10425 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
10426 const int fd = -1;
10427 # else /* !HAVE_MAP_ANONYMOUS */
10428 const int flags = MAP_FILE | MAP_PRIVATE;
10429 int fd = open ("/dev/zero", O_RDONLY, 0666);
10430 if (fd >= 0)
10431 # endif
10432 {
10433 int pagesize = getpagesize ();
10434 char *two_pages =
10435 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
10436 flags, fd, 0);
10437 if (two_pages != (char *)(-1)
10438 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
10439 fence = two_pages + pagesize;
10440 }
10441 #endif
10442 if (fence)
10443 {
10444 if (memchr (fence, 0, 0))
10445 result |= 1;
10446 strcpy (fence - 9, "12345678");
10447 if (memchr (fence - 9, 0, 79) != fence - 1)
10448 result |= 2;
10449 if (memchr (fence - 1, 0, 3) != fence - 1)
10450 result |= 4;
10451 }
10452 return result;
10453
10454 ;
10455 return 0;
10456 }
10457 _ACEOF
10458 if ac_fn_c_try_run "$LINENO"; then :
10459 gl_cv_func_memchr_works=yes
10460 else
10461 gl_cv_func_memchr_works=no
10462 fi
10463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10464 conftest.$ac_objext conftest.beam conftest.$ac_ext
10465 fi
10466
10467 fi
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
10469 $as_echo "$gl_cv_func_memchr_works" >&6; }
10470 if test "$gl_cv_func_memchr_works" != yes; then
10471 REPLACE_MEMCHR=1
10472 fi
10473 fi
10474
10475 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
10476 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
10477 ac_have_decl=1
10478 else
10479 ac_have_decl=0
10480 fi
10481
10482 cat >>confdefs.h <<_ACEOF
10483 #define HAVE_DECL_MEMMEM $ac_have_decl
10484 _ACEOF
10485
10486
10487
10488
10489
10490 for ac_func in memmem
10491 do :
10492 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
10493 if test "x$ac_cv_func_memmem" = x""yes; then :
10494 cat >>confdefs.h <<_ACEOF
10495 #define HAVE_MEMMEM 1
10496 _ACEOF
10497
10498 fi
10499 done
10500
10501 if test $ac_cv_func_memmem = yes; then
10502 HAVE_MEMMEM=1
10503 else
10504 HAVE_MEMMEM=0
10505 fi
10506
10507 if test $ac_cv_have_decl_memmem = no; then
10508 HAVE_DECL_MEMMEM=0
10509 else
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
10511 $as_echo_n "checking whether memmem works... " >&6; }
10512 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
10513 $as_echo_n "(cached) " >&6
10514 else
10515 if test "$cross_compiling" = yes; then :
10516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10517 /* end confdefs.h. */
10518
10519 #ifdef __GNU_LIBRARY__
10520 #include <features.h>
10521 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
10522 || __GLIBC_MINOR__ > 12)) \
10523 || (__GLIBC__ > 2)) \
10524 || defined __UCLIBC__
10525 Lucky user
10526 #endif
10527 #elif defined __CYGWIN__
10528 #include <cygwin/version.h>
10529 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
10530 Lucky user
10531 #endif
10532 #else
10533 Lucky user
10534 #endif
10535
10536 _ACEOF
10537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10538 $EGREP "Lucky user" >/dev/null 2>&1; then :
10539 gl_cv_func_memmem_works_always="guessing yes"
10540 else
10541 gl_cv_func_memmem_works_always="guessing no"
10542 fi
10543 rm -f conftest*
10544
10545
10546 else
10547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10548 /* end confdefs.h. */
10549
10550 #include <string.h> /* for memmem */
10551 #define P "_EF_BF_BD"
10552 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
10553 #define NEEDLE P P P P P
10554
10555 int
10556 main ()
10557 {
10558
10559 int result = 0;
10560 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
10561 result |= 1;
10562 /* Check for empty needle behavior. */
10563 {
10564 const char *haystack = "AAA";
10565 if (memmem (haystack, 3, NULL, 0) != haystack)
10566 result |= 2;
10567 }
10568 return result;
10569
10570 ;
10571 return 0;
10572 }
10573 _ACEOF
10574 if ac_fn_c_try_run "$LINENO"; then :
10575 gl_cv_func_memmem_works_always=yes
10576 else
10577 gl_cv_func_memmem_works_always=no
10578 fi
10579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10580 conftest.$ac_objext conftest.beam conftest.$ac_ext
10581 fi
10582
10583
10584 fi
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
10586 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
10587 case "$gl_cv_func_memmem_works_always" in
10588 *yes) ;;
10589 *)
10590 REPLACE_MEMMEM=1
10591 ;;
10592 esac
10593 fi
10594 :
10595
10596
10597 GNULIB_DPRINTF=0;
10598 GNULIB_FCLOSE=0;
10599 GNULIB_FDOPEN=0;
10600 GNULIB_FFLUSH=0;
10601 GNULIB_FGETC=0;
10602 GNULIB_FGETS=0;
10603 GNULIB_FOPEN=0;
10604 GNULIB_FPRINTF=0;
10605 GNULIB_FPRINTF_POSIX=0;
10606 GNULIB_FPURGE=0;
10607 GNULIB_FPUTC=0;
10608 GNULIB_FPUTS=0;
10609 GNULIB_FREAD=0;
10610 GNULIB_FREOPEN=0;
10611 GNULIB_FSCANF=0;
10612 GNULIB_FSEEK=0;
10613 GNULIB_FSEEKO=0;
10614 GNULIB_FTELL=0;
10615 GNULIB_FTELLO=0;
10616 GNULIB_FWRITE=0;
10617 GNULIB_GETC=0;
10618 GNULIB_GETCHAR=0;
10619 GNULIB_GETDELIM=0;
10620 GNULIB_GETLINE=0;
10621 GNULIB_OBSTACK_PRINTF=0;
10622 GNULIB_OBSTACK_PRINTF_POSIX=0;
10623 GNULIB_PCLOSE=0;
10624 GNULIB_PERROR=0;
10625 GNULIB_POPEN=0;
10626 GNULIB_PRINTF=0;
10627 GNULIB_PRINTF_POSIX=0;
10628 GNULIB_PUTC=0;
10629 GNULIB_PUTCHAR=0;
10630 GNULIB_PUTS=0;
10631 GNULIB_REMOVE=0;
10632 GNULIB_RENAME=0;
10633 GNULIB_RENAMEAT=0;
10634 GNULIB_SCANF=0;
10635 GNULIB_SNPRINTF=0;
10636 GNULIB_SPRINTF_POSIX=0;
10637 GNULIB_STDIO_H_NONBLOCKING=0;
10638 GNULIB_STDIO_H_SIGPIPE=0;
10639 GNULIB_TMPFILE=0;
10640 GNULIB_VASPRINTF=0;
10641 GNULIB_VFSCANF=0;
10642 GNULIB_VSCANF=0;
10643 GNULIB_VDPRINTF=0;
10644 GNULIB_VFPRINTF=0;
10645 GNULIB_VFPRINTF_POSIX=0;
10646 GNULIB_VPRINTF=0;
10647 GNULIB_VPRINTF_POSIX=0;
10648 GNULIB_VSNPRINTF=0;
10649 GNULIB_VSPRINTF_POSIX=0;
10650 HAVE_DECL_FPURGE=1;
10651 HAVE_DECL_FSEEKO=1;
10652 HAVE_DECL_FTELLO=1;
10653 HAVE_DECL_GETDELIM=1;
10654 HAVE_DECL_GETLINE=1;
10655 HAVE_DECL_OBSTACK_PRINTF=1;
10656 HAVE_DECL_SNPRINTF=1;
10657 HAVE_DECL_VSNPRINTF=1;
10658 HAVE_DPRINTF=1;
10659 HAVE_FSEEKO=1;
10660 HAVE_FTELLO=1;
10661 HAVE_PCLOSE=1;
10662 HAVE_POPEN=1;
10663 HAVE_RENAMEAT=1;
10664 HAVE_VASPRINTF=1;
10665 HAVE_VDPRINTF=1;
10666 REPLACE_DPRINTF=0;
10667 REPLACE_FCLOSE=0;
10668 REPLACE_FDOPEN=0;
10669 REPLACE_FFLUSH=0;
10670 REPLACE_FOPEN=0;
10671 REPLACE_FPRINTF=0;
10672 REPLACE_FPURGE=0;
10673 REPLACE_FREOPEN=0;
10674 REPLACE_FSEEK=0;
10675 REPLACE_FSEEKO=0;
10676 REPLACE_FTELL=0;
10677 REPLACE_FTELLO=0;
10678 REPLACE_GETDELIM=0;
10679 REPLACE_GETLINE=0;
10680 REPLACE_OBSTACK_PRINTF=0;
10681 REPLACE_PERROR=0;
10682 REPLACE_POPEN=0;
10683 REPLACE_PRINTF=0;
10684 REPLACE_REMOVE=0;
10685 REPLACE_RENAME=0;
10686 REPLACE_RENAMEAT=0;
10687 REPLACE_SNPRINTF=0;
10688 REPLACE_SPRINTF=0;
10689 REPLACE_STDIO_READ_FUNCS=0;
10690 REPLACE_STDIO_WRITE_FUNCS=0;
10691 REPLACE_TMPFILE=0;
10692 REPLACE_VASPRINTF=0;
10693 REPLACE_VDPRINTF=0;
10694 REPLACE_VFPRINTF=0;
10695 REPLACE_VPRINTF=0;
10696 REPLACE_VSNPRINTF=0;
10697 REPLACE_VSPRINTF=0;
10698
10699
10700
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
10702 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
10703 if test "${ac_cv_header_stdbool_h+set}" = set; then :
10704 $as_echo_n "(cached) " >&6
10705 else
10706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10707 /* end confdefs.h. */
10708
10709 #include <stdbool.h>
10710 #ifndef bool
10711 "error: bool is not defined"
10712 #endif
10713 #ifndef false
10714 "error: false is not defined"
10715 #endif
10716 #if false
10717 "error: false is not 0"
10718 #endif
10719 #ifndef true
10720 "error: true is not defined"
10721 #endif
10722 #if true != 1
10723 "error: true is not 1"
10724 #endif
10725 #ifndef __bool_true_false_are_defined
10726 "error: __bool_true_false_are_defined is not defined"
10727 #endif
10728
10729 struct s { _Bool s: 1; _Bool t; } s;
10730
10731 char a[true == 1 ? 1 : -1];
10732 char b[false == 0 ? 1 : -1];
10733 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
10734 char d[(bool) 0.5 == true ? 1 : -1];
10735 /* See body of main program for 'e'. */
10736 char f[(_Bool) 0.0 == false ? 1 : -1];
10737 char g[true];
10738 char h[sizeof (_Bool)];
10739 char i[sizeof s.t];
10740 enum { j = false, k = true, l = false * true, m = true * 256 };
10741 /* The following fails for
10742 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
10743 _Bool n[m];
10744 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
10745 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
10746 /* Catch a bug in an HP-UX C compiler. See
10747 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
10748 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
10749 */
10750 _Bool q = true;
10751 _Bool *pq = &q;
10752
10753 int
10754 main ()
10755 {
10756
10757 bool e = &s;
10758 *pq |= q;
10759 *pq |= ! q;
10760 /* Refer to every declared value, to avoid compiler optimizations. */
10761 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
10762 + !m + !n + !o + !p + !q + !pq);
10763
10764 ;
10765 return 0;
10766 }
10767 _ACEOF
10768 if ac_fn_c_try_compile "$LINENO"; then :
10769 ac_cv_header_stdbool_h=yes
10770 else
10771 ac_cv_header_stdbool_h=no
10772 fi
10773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10774 fi
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
10776 $as_echo "$ac_cv_header_stdbool_h" >&6; }
10777 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
10778 if test "x$ac_cv_type__Bool" = x""yes; then :
10779
10780 cat >>confdefs.h <<_ACEOF
10781 #define HAVE__BOOL 1
10782 _ACEOF
10783
10784
10785 fi
10786
10787
10788
10789 REPLACE_NULL=0;
10790 HAVE_WCHAR_T=1;
10791
10792
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
10794 $as_echo_n "checking for wchar_t... " >&6; }
10795 if test "${gt_cv_c_wchar_t+set}" = set; then :
10796 $as_echo_n "(cached) " >&6
10797 else
10798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10799 /* end confdefs.h. */
10800 #include <stddef.h>
10801 wchar_t foo = (wchar_t)'\0';
10802 int
10803 main ()
10804 {
10805
10806 ;
10807 return 0;
10808 }
10809 _ACEOF
10810 if ac_fn_c_try_compile "$LINENO"; then :
10811 gt_cv_c_wchar_t=yes
10812 else
10813 gt_cv_c_wchar_t=no
10814 fi
10815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10816 fi
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
10818 $as_echo "$gt_cv_c_wchar_t" >&6; }
10819 if test $gt_cv_c_wchar_t = yes; then
10820
10821 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
10822
10823 fi
10824
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
10826 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
10827 if test "${ac_cv_c_restrict+set}" = set; then :
10828 $as_echo_n "(cached) " >&6
10829 else
10830 ac_cv_c_restrict=no
10831 # The order here caters to the fact that C++ does not require restrict.
10832 for ac_kw in __restrict __restrict__ _Restrict restrict; do
10833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10834 /* end confdefs.h. */
10835 typedef int * int_ptr;
10836 int foo (int_ptr $ac_kw ip) {
10837 return ip[0];
10838 }
10839 int
10840 main ()
10841 {
10842 int s[1];
10843 int * $ac_kw t = s;
10844 t[0] = 0;
10845 return foo(t)
10846 ;
10847 return 0;
10848 }
10849 _ACEOF
10850 if ac_fn_c_try_compile "$LINENO"; then :
10851 ac_cv_c_restrict=$ac_kw
10852 fi
10853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10854 test "$ac_cv_c_restrict" != no && break
10855 done
10856
10857 fi
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
10859 $as_echo "$ac_cv_c_restrict" >&6; }
10860
10861 case $ac_cv_c_restrict in
10862 restrict) ;;
10863 no) $as_echo "#define restrict /**/" >>confdefs.h
10864 ;;
10865 *) cat >>confdefs.h <<_ACEOF
10866 #define restrict $ac_cv_c_restrict
10867 _ACEOF
10868 ;;
10869 esac
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882 if test $gl_cv_have_include_next = yes; then
10883 gl_cv_next_string_h='<'string.h'>'
10884 else
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
10886 $as_echo_n "checking absolute name of <string.h>... " >&6; }
10887 if test "${gl_cv_next_string_h+set}" = set; then :
10888 $as_echo_n "(cached) " >&6
10889 else
10890
10891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10892 /* end confdefs.h. */
10893 #include <string.h>
10894
10895 _ACEOF
10896 case "$host_os" in
10897 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10898 *) gl_absname_cpp="$ac_cpp" ;;
10899 esac
10900
10901 case "$host_os" in
10902 mingw*)
10903 gl_dirsep_regex='[/\\]'
10904 ;;
10905 *)
10906 gl_dirsep_regex='\/'
10907 ;;
10908 esac
10909 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10910
10911 gl_header_literal_regex=`echo 'string.h' \
10912 | sed -e "$gl_make_literal_regex_sed"`
10913 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10914 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10915 s|^/[^/]|//&|
10916 p
10917 q
10918 }'
10919 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10920 sed -n "$gl_absolute_header_sed"`'"'
10921
10922
10923 fi
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
10925 $as_echo "$gl_cv_next_string_h" >&6; }
10926 fi
10927 NEXT_STRING_H=$gl_cv_next_string_h
10928
10929 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10930 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10931 gl_next_as_first_directive='<'string.h'>'
10932 else
10933 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10934 gl_next_as_first_directive=$gl_cv_next_string_h
10935 fi
10936 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
10937
10938
10939
10940
10941
10942
10943 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
10944 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10946 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10947 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
10948 $as_echo_n "(cached) " >&6
10949 else
10950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10951 /* end confdefs.h. */
10952 #include <string.h>
10953
10954 int
10955 main ()
10956 {
10957 #undef $gl_func
10958 (void) $gl_func;
10959 ;
10960 return 0;
10961 }
10962 _ACEOF
10963 if ac_fn_c_try_compile "$LINENO"; then :
10964 eval "$as_gl_Symbol=yes"
10965 else
10966 eval "$as_gl_Symbol=no"
10967 fi
10968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10969 fi
10970 eval ac_res=\$$as_gl_Symbol
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10972 $as_echo "$ac_res" >&6; }
10973 eval as_val=\$$as_gl_Symbol
10974 if test "x$as_val" = x""yes; then :
10975 cat >>confdefs.h <<_ACEOF
10976 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10977 _ACEOF
10978
10979 eval ac_cv_have_decl_$gl_func=yes
10980 fi
10981 done
10982
10983
10984
10985
10986
10987 if test "$gl_cv_func_memchr_works" != yes; then
10988 REPLACE_STRSTR=1
10989 else
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
10991 $as_echo_n "checking whether strstr works... " >&6; }
10992 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
10993 $as_echo_n "(cached) " >&6
10994 else
10995 if test "$cross_compiling" = yes; then :
10996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10997 /* end confdefs.h. */
10998
10999 #ifdef __GNU_LIBRARY__
11000 #include <features.h>
11001 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
11002 || defined __UCLIBC__
11003 Lucky user
11004 #endif
11005 #elif defined __CYGWIN__
11006 #include <cygwin/version.h>
11007 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
11008 Lucky user
11009 #endif
11010 #else
11011 Lucky user
11012 #endif
11013
11014 _ACEOF
11015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11016 $EGREP "Lucky user" >/dev/null 2>&1; then :
11017 gl_cv_func_strstr_works_always="guessing yes"
11018 else
11019 gl_cv_func_strstr_works_always="guessing no"
11020 fi
11021 rm -f conftest*
11022
11023
11024 else
11025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11026 /* end confdefs.h. */
11027
11028 #include <string.h> /* for strstr */
11029 #define P "_EF_BF_BD"
11030 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
11031 #define NEEDLE P P P P P
11032
11033 int
11034 main ()
11035 {
11036 return !!strstr (HAYSTACK, NEEDLE);
11037
11038 ;
11039 return 0;
11040 }
11041 _ACEOF
11042 if ac_fn_c_try_run "$LINENO"; then :
11043 gl_cv_func_strstr_works_always=yes
11044 else
11045 gl_cv_func_strstr_works_always=no
11046 fi
11047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11048 conftest.$ac_objext conftest.beam conftest.$ac_ext
11049 fi
11050
11051
11052 fi
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
11054 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
11055 case "$gl_cv_func_strstr_works_always" in
11056 *yes) ;;
11057 *)
11058 REPLACE_STRSTR=1
11059 ;;
11060 esac
11061 fi
11062
11063 ac_fn_c_check_decl "$LINENO" "strtok_r" "ac_cv_have_decl_strtok_r" "$ac_includes_default"
11064 if test "x$ac_cv_have_decl_strtok_r" = x""yes; then :
11065 ac_have_decl=1
11066 else
11067 ac_have_decl=0
11068 fi
11069
11070 cat >>confdefs.h <<_ACEOF
11071 #define HAVE_DECL_STRTOK_R $ac_have_decl
11072 _ACEOF
11073
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11075 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11076 if test "${ac_cv_header_stat_broken+set}" = set; then :
11077 $as_echo_n "(cached) " >&6
11078 else
11079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11080 /* end confdefs.h. */
11081 #include <sys/types.h>
11082 #include <sys/stat.h>
11083
11084 #if defined S_ISBLK && defined S_IFDIR
11085 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11086 #endif
11087
11088 #if defined S_ISBLK && defined S_IFCHR
11089 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11090 #endif
11091
11092 #if defined S_ISLNK && defined S_IFREG
11093 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11094 #endif
11095
11096 #if defined S_ISSOCK && defined S_IFREG
11097 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11098 #endif
11099
11100 _ACEOF
11101 if ac_fn_c_try_compile "$LINENO"; then :
11102 ac_cv_header_stat_broken=no
11103 else
11104 ac_cv_header_stat_broken=yes
11105 fi
11106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11107 fi
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11109 $as_echo "$ac_cv_header_stat_broken" >&6; }
11110 if test $ac_cv_header_stat_broken = yes; then
11111
11112 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11113
11114 fi
11115
11116
11117
11118 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11119 if test "x$ac_cv_type_mode_t" = x""yes; then :
11120
11121 else
11122
11123 cat >>confdefs.h <<_ACEOF
11124 #define mode_t int
11125 _ACEOF
11126
11127 fi
11128
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11130 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11131 if test -z "$MKDIR_P"; then
11132 if test "${ac_cv_path_mkdir+set}" = set; then :
11133 $as_echo_n "(cached) " >&6
11134 else
11135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11136 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11137 do
11138 IFS=$as_save_IFS
11139 test -z "$as_dir" && as_dir=.
11140 for ac_prog in mkdir gmkdir; do
11141 for ac_exec_ext in '' $ac_executable_extensions; do
11142 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
11143 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11144 'mkdir (GNU coreutils) '* | \
11145 'mkdir (coreutils) '* | \
11146 'mkdir (fileutils) '4.1*)
11147 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11148 break 3;;
11149 esac
11150 done
11151 done
11152 done
11153 IFS=$as_save_IFS
11154
11155 fi
11156
11157 if test "${ac_cv_path_mkdir+set}" = set; then
11158 MKDIR_P="$ac_cv_path_mkdir -p"
11159 else
11160 # As a last resort, use the slow shell script. Don't cache a
11161 # value for MKDIR_P within a source directory, because that will
11162 # break other packages using the cache if that directory is
11163 # removed, or if the value is a relative name.
11164 test -d ./--version && rmdir ./--version
11165 MKDIR_P="$ac_install_sh -d"
11166 fi
11167 fi
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11169 $as_echo "$MKDIR_P" >&6; }
11170
11171
11172
11173 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11174 if test "x$ac_cv_type_pid_t" = x""yes; then :
11175
11176 else
11177
11178 cat >>confdefs.h <<_ACEOF
11179 #define pid_t int
11180 _ACEOF
11181
11182 fi
11183
11184
11185
11186
11187
11188
11189
11190
11191 GNULIB_MKTIME=0;
11192 GNULIB_NANOSLEEP=0;
11193 GNULIB_STRPTIME=0;
11194 GNULIB_TIMEGM=0;
11195 GNULIB_TIME_R=0;
11196 HAVE_DECL_LOCALTIME_R=1;
11197 HAVE_NANOSLEEP=1;
11198 HAVE_STRPTIME=1;
11199 HAVE_TIMEGM=1;
11200 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
11201 REPLACE_MKTIME=GNULIB_PORTCHECK;
11202 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
11203 REPLACE_TIMEGM=GNULIB_PORTCHECK;
11204
11205
11206
11207
11208
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
11210 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
11211 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
11212 $as_echo_n "(cached) " >&6
11213 else
11214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11215 /* end confdefs.h. */
11216 #include <time.h>
11217
11218 int
11219 main ()
11220 {
11221 static struct timespec x; x.tv_sec = x.tv_nsec;
11222 ;
11223 return 0;
11224 }
11225 _ACEOF
11226 if ac_fn_c_try_compile "$LINENO"; then :
11227 gl_cv_sys_struct_timespec_in_time_h=yes
11228 else
11229 gl_cv_sys_struct_timespec_in_time_h=no
11230 fi
11231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11232 fi
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
11234 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
11235
11236 TIME_H_DEFINES_STRUCT_TIMESPEC=0
11237 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
11238 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
11239 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
11240 TIME_H_DEFINES_STRUCT_TIMESPEC=1
11241 else
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
11243 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
11244 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
11245 $as_echo_n "(cached) " >&6
11246 else
11247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11248 /* end confdefs.h. */
11249 #include <sys/time.h>
11250
11251 int
11252 main ()
11253 {
11254 static struct timespec x; x.tv_sec = x.tv_nsec;
11255 ;
11256 return 0;
11257 }
11258 _ACEOF
11259 if ac_fn_c_try_compile "$LINENO"; then :
11260 gl_cv_sys_struct_timespec_in_sys_time_h=yes
11261 else
11262 gl_cv_sys_struct_timespec_in_sys_time_h=no
11263 fi
11264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11265 fi
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
11267 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
11268 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
11269 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
11270 else
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
11272 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
11273 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
11274 $as_echo_n "(cached) " >&6
11275 else
11276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11277 /* end confdefs.h. */
11278 #include <pthread.h>
11279
11280 int
11281 main ()
11282 {
11283 static struct timespec x; x.tv_sec = x.tv_nsec;
11284 ;
11285 return 0;
11286 }
11287 _ACEOF
11288 if ac_fn_c_try_compile "$LINENO"; then :
11289 gl_cv_sys_struct_timespec_in_pthread_h=yes
11290 else
11291 gl_cv_sys_struct_timespec_in_pthread_h=no
11292 fi
11293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11294 fi
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
11296 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
11297 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
11298 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
11299 fi
11300 fi
11301 fi
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317 if test $gl_cv_have_include_next = yes; then
11318 gl_cv_next_time_h='<'time.h'>'
11319 else
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
11321 $as_echo_n "checking absolute name of <time.h>... " >&6; }
11322 if test "${gl_cv_next_time_h+set}" = set; then :
11323 $as_echo_n "(cached) " >&6
11324 else
11325
11326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11327 /* end confdefs.h. */
11328 #include <time.h>
11329
11330 _ACEOF
11331 case "$host_os" in
11332 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11333 *) gl_absname_cpp="$ac_cpp" ;;
11334 esac
11335
11336 case "$host_os" in
11337 mingw*)
11338 gl_dirsep_regex='[/\\]'
11339 ;;
11340 *)
11341 gl_dirsep_regex='\/'
11342 ;;
11343 esac
11344 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11345
11346 gl_header_literal_regex=`echo 'time.h' \
11347 | sed -e "$gl_make_literal_regex_sed"`
11348 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11349 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11350 s|^/[^/]|//&|
11351 p
11352 q
11353 }'
11354 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11355 sed -n "$gl_absolute_header_sed"`'"'
11356
11357
11358 fi
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
11360 $as_echo "$gl_cv_next_time_h" >&6; }
11361 fi
11362 NEXT_TIME_H=$gl_cv_next_time_h
11363
11364 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11365 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11366 gl_next_as_first_directive='<'time.h'>'
11367 else
11368 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11369 gl_next_as_first_directive=$gl_cv_next_time_h
11370 fi
11371 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
11372
11373
11374
11375
11376
11377
11378
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
11380 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
11381 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
11382 $as_echo_n "(cached) " >&6
11383 else
11384 gl_cv_header_wchar_h_correct_inline=yes
11385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11386 /* end confdefs.h. */
11387
11388 #define wcstod renamed_wcstod
11389 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11390 <wchar.h>.
11391 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11392 included before <wchar.h>. */
11393 #include <stddef.h>
11394 #include <stdio.h>
11395 #include <time.h>
11396 #include <wchar.h>
11397 extern int zero (void);
11398 int main () { return zero(); }
11399
11400 _ACEOF
11401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11402 (eval $ac_compile) 2>&5
11403 ac_status=$?
11404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11405 test $ac_status = 0; }; then
11406 mv conftest.$ac_objext conftest1.$ac_objext
11407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11408 /* end confdefs.h. */
11409
11410 #define wcstod renamed_wcstod
11411 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11412 <wchar.h>.
11413 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11414 included before <wchar.h>. */
11415 #include <stddef.h>
11416 #include <stdio.h>
11417 #include <time.h>
11418 #include <wchar.h>
11419 int zero (void) { return 0; }
11420
11421 _ACEOF
11422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11423 (eval $ac_compile) 2>&5
11424 ac_status=$?
11425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11426 test $ac_status = 0; }; then
11427 mv conftest.$ac_objext conftest2.$ac_objext
11428 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
11429 :
11430 else
11431 gl_cv_header_wchar_h_correct_inline=no
11432 fi
11433 fi
11434 fi
11435 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
11436
11437 fi
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
11439 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
11440 if test $gl_cv_header_wchar_h_correct_inline = no; then
11441 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
11442 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
11443 C99 mode. You have four options:
11444 - Add the flag -fgnu89-inline to CC and reconfigure, or
11445 - Fix your include files, using parts of
11446 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
11447 - Use a gcc version older than 4.3, or
11448 - Don't use the flags -std=c99 or -std=gnu99.
11449 Configuration aborted." "$LINENO" 5
11450 fi
11451
11452
11453
11454
11455
11456 if test $ac_cv_header_features_h = yes; then
11457 HAVE_FEATURES_H=1
11458 else
11459 HAVE_FEATURES_H=0
11460 fi
11461
11462
11463
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
11465 $as_echo_n "checking for wint_t... " >&6; }
11466 if test "${gt_cv_c_wint_t+set}" = set; then :
11467 $as_echo_n "(cached) " >&6
11468 else
11469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11470 /* end confdefs.h. */
11471
11472 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11473 <wchar.h>.
11474 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
11475 before <wchar.h>. */
11476 #include <stddef.h>
11477 #include <stdio.h>
11478 #include <time.h>
11479 #include <wchar.h>
11480 wint_t foo = (wchar_t)'\0';
11481 int
11482 main ()
11483 {
11484
11485 ;
11486 return 0;
11487 }
11488 _ACEOF
11489 if ac_fn_c_try_compile "$LINENO"; then :
11490 gt_cv_c_wint_t=yes
11491 else
11492 gt_cv_c_wint_t=no
11493 fi
11494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11495 fi
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
11497 $as_echo "$gt_cv_c_wint_t" >&6; }
11498 if test $gt_cv_c_wint_t = yes; then
11499
11500 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
11501
11502 fi
11503
11504
11505 GNULIB_ISWBLANK=0;
11506 GNULIB_WCTYPE=0;
11507 GNULIB_ISWCTYPE=0;
11508 GNULIB_WCTRANS=0;
11509 GNULIB_TOWCTRANS=0;
11510 HAVE_ISWBLANK=1;
11511 HAVE_WCTYPE_T=1;
11512 HAVE_WCTRANS_T=1;
11513 REPLACE_ISWBLANK=0;
11514
11515
11516
11517
11518 if false; then
11519 GL_COND_LIBTOOL_TRUE=
11520 GL_COND_LIBTOOL_FALSE='#'
11521 else
11522 GL_COND_LIBTOOL_TRUE='#'
11523 GL_COND_LIBTOOL_FALSE=
11524 fi
11525
11526 gl_cond_libtool=false
11527 gl_libdeps=
11528 gl_ltlibdeps=
11529 gl_m4_base='import/m4'
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539 gl_source_base='import'
11540
11541
11542 if test $ac_cv_func_alloca_works = no; then
11543 :
11544 fi
11545
11546 # Define an additional variable used in the Makefile substitution.
11547 if test $ac_cv_working_alloca_h = yes; then
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
11549 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
11550 if test "${gl_cv_rpl_alloca+set}" = set; then :
11551 $as_echo_n "(cached) " >&6
11552 else
11553
11554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11555 /* end confdefs.h. */
11556
11557 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
11558 Need own alloca
11559 #endif
11560
11561 _ACEOF
11562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11563 $EGREP "Need own alloca" >/dev/null 2>&1; then :
11564 gl_cv_rpl_alloca=yes
11565 else
11566 gl_cv_rpl_alloca=no
11567 fi
11568 rm -f conftest*
11569
11570
11571 fi
11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
11573 $as_echo "$gl_cv_rpl_alloca" >&6; }
11574 if test $gl_cv_rpl_alloca = yes; then
11575
11576 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11577
11578 ALLOCA_H=alloca.h
11579 else
11580 ALLOCA_H=
11581 fi
11582 else
11583 ALLOCA_H=alloca.h
11584 fi
11585
11586 if test -n "$ALLOCA_H"; then
11587 GL_GENERATE_ALLOCA_H_TRUE=
11588 GL_GENERATE_ALLOCA_H_FALSE='#'
11589 else
11590 GL_GENERATE_ALLOCA_H_TRUE='#'
11591 GL_GENERATE_ALLOCA_H_FALSE=
11592 fi
11593
11594
11595
11596
11597
11598 if test $ac_cv_func_canonicalize_file_name = no; then
11599 HAVE_CANONICALIZE_FILE_NAME=0
11600 if test $ac_cv_func_realpath = no; then
11601 HAVE_REALPATH=0
11602 else
11603 case "$gl_cv_func_realpath_works" in
11604 *yes) ;;
11605 *) REPLACE_REALPATH=1 ;;
11606 esac
11607 fi
11608 else
11609 case "$gl_cv_func_realpath_works" in
11610 *yes)
11611 ;;
11612 *)
11613 REPLACE_CANONICALIZE_FILE_NAME=1
11614 REPLACE_REALPATH=1
11615 ;;
11616 esac
11617 fi
11618
11619 if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
11620
11621
11622
11623
11624
11625
11626
11627
11628 gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
11629
11630 fi
11631
11632
11633 cat >>confdefs.h <<_ACEOF
11634 #define GNULIB_CANONICALIZE_LGPL 1
11635 _ACEOF
11636
11637
11638
11639
11640
11641
11642
11643 GNULIB_CANONICALIZE_FILE_NAME=1
11644
11645
11646
11647
11648
11649 $as_echo "#define GNULIB_TEST_CANONICALIZE_FILE_NAME 1" >>confdefs.h
11650
11651
11652
11653
11654
11655
11656
11657
11658 GNULIB_REALPATH=1
11659
11660
11661
11662
11663
11664 $as_echo "#define GNULIB_TEST_REALPATH 1" >>confdefs.h
11665
11666
11667
11668
11669
11670
11671
11672
11673 GNULIB_CHDIR=1
11674
11675
11676
11677
11678
11679 $as_echo "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
11680
11681
11682
11683
11684 if test "x$datarootdir" = x; then
11685 datarootdir='${datadir}'
11686
11687 fi
11688 if test "x$docdir" = x; then
11689 docdir='${datarootdir}/doc/${PACKAGE}'
11690
11691 fi
11692 if test "x$htmldir" = x; then
11693 htmldir='${docdir}'
11694
11695 fi
11696 if test "x$dvidir" = x; then
11697 dvidir='${docdir}'
11698
11699 fi
11700 if test "x$pdfdir" = x; then
11701 pdfdir='${docdir}'
11702
11703 fi
11704 if test "x$psdir" = x; then
11705 psdir='${docdir}'
11706
11707 fi
11708 if test "x$lispdir" = x; then
11709 lispdir='${datarootdir}/emacs/site-lisp'
11710
11711 fi
11712 if test "x$localedir" = x; then
11713 localedir='${datarootdir}/locale'
11714
11715 fi
11716
11717 pkglibexecdir='${libexecdir}/${PACKAGE}'
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732 if test $gl_cv_have_include_next = yes; then
11733 gl_cv_next_dirent_h='<'dirent.h'>'
11734 else
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
11736 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
11737 if test "${gl_cv_next_dirent_h+set}" = set; then :
11738 $as_echo_n "(cached) " >&6
11739 else
11740
11741 if test $ac_cv_header_dirent_h = yes; then
11742
11743
11744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11745 /* end confdefs.h. */
11746 #include <dirent.h>
11747
11748 _ACEOF
11749 case "$host_os" in
11750 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11751 *) gl_absname_cpp="$ac_cpp" ;;
11752 esac
11753
11754 case "$host_os" in
11755 mingw*)
11756 gl_dirsep_regex='[/\\]'
11757 ;;
11758 *)
11759 gl_dirsep_regex='\/'
11760 ;;
11761 esac
11762 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11763
11764 gl_header_literal_regex=`echo 'dirent.h' \
11765 | sed -e "$gl_make_literal_regex_sed"`
11766 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11767 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11768 s|^/[^/]|//&|
11769 p
11770 q
11771 }'
11772 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11773 sed -n "$gl_absolute_header_sed"`'"'
11774 else
11775 gl_cv_next_dirent_h='<'dirent.h'>'
11776 fi
11777
11778
11779 fi
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
11781 $as_echo "$gl_cv_next_dirent_h" >&6; }
11782 fi
11783 NEXT_DIRENT_H=$gl_cv_next_dirent_h
11784
11785 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11786 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11787 gl_next_as_first_directive='<'dirent.h'>'
11788 else
11789 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11790 gl_next_as_first_directive=$gl_cv_next_dirent_h
11791 fi
11792 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
11793
11794
11795
11796
11797 if test $ac_cv_header_dirent_h = yes; then
11798 HAVE_DIRENT_H=1
11799 else
11800 HAVE_DIRENT_H=0
11801 fi
11802
11803
11804
11805 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
11806 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11808 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11809 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11810 $as_echo_n "(cached) " >&6
11811 else
11812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11813 /* end confdefs.h. */
11814 #include <dirent.h>
11815
11816 int
11817 main ()
11818 {
11819 #undef $gl_func
11820 (void) $gl_func;
11821 ;
11822 return 0;
11823 }
11824 _ACEOF
11825 if ac_fn_c_try_compile "$LINENO"; then :
11826 eval "$as_gl_Symbol=yes"
11827 else
11828 eval "$as_gl_Symbol=no"
11829 fi
11830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11831 fi
11832 eval ac_res=\$$as_gl_Symbol
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11834 $as_echo "$ac_res" >&6; }
11835 eval as_val=\$$as_gl_Symbol
11836 if test "x$as_val" = x""yes; then :
11837 cat >>confdefs.h <<_ACEOF
11838 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11839 _ACEOF
11840
11841 eval ac_cv_have_decl_$gl_func=yes
11842 fi
11843 done
11844
11845
11846
11847
11848
11849
11850
11851 for ac_func in dirfd
11852 do :
11853 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
11854 if test "x$ac_cv_func_dirfd" = x""yes; then :
11855 cat >>confdefs.h <<_ACEOF
11856 #define HAVE_DIRFD 1
11857 _ACEOF
11858
11859 fi
11860 done
11861
11862 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
11863 #include <dirent.h>
11864 "
11865 if test "x$ac_cv_have_decl_dirfd" = x""yes; then :
11866 ac_have_decl=1
11867 else
11868 ac_have_decl=0
11869 fi
11870
11871 cat >>confdefs.h <<_ACEOF
11872 #define HAVE_DECL_DIRFD $ac_have_decl
11873 _ACEOF
11874
11875 if test $ac_cv_have_decl_dirfd = no; then
11876 HAVE_DECL_DIRFD=0
11877 fi
11878
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
11880 $as_echo_n "checking whether dirfd is a macro... " >&6; }
11881 if test "${gl_cv_func_dirfd_macro+set}" = set; then :
11882 $as_echo_n "(cached) " >&6
11883 else
11884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11885 /* end confdefs.h. */
11886
11887 #include <sys/types.h>
11888 #include <dirent.h>
11889 #ifdef dirfd
11890 dirent_header_defines_dirfd
11891 #endif
11892 _ACEOF
11893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11894 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
11895 gl_cv_func_dirfd_macro=yes
11896 else
11897 gl_cv_func_dirfd_macro=no
11898 fi
11899 rm -f conftest*
11900
11901 fi
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
11903 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
11904
11905 # Use the replacement only if we have no function or macro with that name.
11906 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
11907 if test $ac_cv_have_decl_dirfd = yes; then
11908 # If the system declares dirfd already, let's declare rpl_dirfd instead.
11909 REPLACE_DIRFD=1
11910 fi
11911 fi
11912
11913 if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then
11914
11915
11916
11917
11918
11919
11920
11921
11922 gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
11923
11924
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
11926 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
11927 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then :
11928 $as_echo_n "(cached) " >&6
11929 else
11930
11931 dirfd_save_CFLAGS=$CFLAGS
11932 for ac_expr in d_fd dd_fd; do
11933
11934 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
11935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11936 /* end confdefs.h. */
11937
11938 #include <sys/types.h>
11939 #include <dirent.h>
11940 int
11941 main ()
11942 {
11943 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
11944 ;
11945 return 0;
11946 }
11947 _ACEOF
11948 if ac_fn_c_try_compile "$LINENO"; then :
11949 dir_fd_found=yes
11950
11951 fi
11952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11953 CFLAGS=$dirfd_save_CFLAGS
11954 test "$dir_fd_found" = yes && break
11955 done
11956 test "$dir_fd_found" = yes || ac_expr=no_such_member
11957
11958 gl_cv_sys_dir_fd_member_name=$ac_expr
11959
11960
11961 fi
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
11963 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
11964 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
11965
11966 cat >>confdefs.h <<_ACEOF
11967 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
11968 _ACEOF
11969
11970 fi
11971
11972
11973 fi
11974
11975
11976
11977
11978
11979 GNULIB_DIRFD=1
11980
11981
11982
11983
11984
11985 $as_echo "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
11996 $as_echo_n "checking whether // is distinct from /... " >&6; }
11997 if test "${gl_cv_double_slash_root+set}" = set; then :
11998 $as_echo_n "(cached) " >&6
11999 else
12000 if test x"$cross_compiling" = xyes ; then
12001 # When cross-compiling, there is no way to tell whether // is special
12002 # short of a list of hosts. However, the only known hosts to date
12003 # that have a distinct // are Apollo DomainOS (too old to port to),
12004 # Cygwin, and z/OS. If anyone knows of another system for which // has
12005 # special semantics and is distinct from /, please report it to
12006 # <bug-gnulib@gnu.org>.
12007 case $host in
12008 *-cygwin | i370-ibm-openedition)
12009 gl_cv_double_slash_root=yes ;;
12010 *)
12011 # Be optimistic and assume that / and // are the same when we
12012 # don't know.
12013 gl_cv_double_slash_root='unknown, assuming no' ;;
12014 esac
12015 else
12016 set x `ls -di / // 2>/dev/null`
12017 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
12018 gl_cv_double_slash_root=no
12019 else
12020 gl_cv_double_slash_root=yes
12021 fi
12022 fi
12023 fi
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
12025 $as_echo "$gl_cv_double_slash_root" >&6; }
12026 if test "$gl_cv_double_slash_root" = yes; then
12027
12028 $as_echo "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
12029
12030 fi
12031
12032
12033
12034
12035
12036
12037 FLOAT_H=
12038 REPLACE_FLOAT_LDBL=0
12039 case "$host_os" in
12040 aix* | beos* | openbsd* | mirbsd* | irix*)
12041 FLOAT_H=float.h
12042 ;;
12043 freebsd*)
12044 case "$host_cpu" in
12045 i[34567]86 )
12046 FLOAT_H=float.h
12047 ;;
12048 x86_64 )
12049 # On x86_64 systems, the C compiler may still be generating
12050 # 32-bit code.
12051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052 /* end confdefs.h. */
12053 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
12054 yes
12055 #endif
12056 _ACEOF
12057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12058 $EGREP "yes" >/dev/null 2>&1; then :
12059
12060 else
12061 FLOAT_H=float.h
12062 fi
12063 rm -f conftest*
12064
12065 ;;
12066 esac
12067 ;;
12068 linux*)
12069 case "$host_cpu" in
12070 powerpc*)
12071 FLOAT_H=float.h
12072 ;;
12073 esac
12074 ;;
12075 esac
12076 case "$host_os" in
12077 aix* | freebsd* | linux*)
12078 if test -n "$FLOAT_H"; then
12079 REPLACE_FLOAT_LDBL=1
12080 fi
12081 ;;
12082 esac
12083
12084 REPLACE_ITOLD=0
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
12086 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
12087 if test "${gl_cv_func_itold_works+set}" = set; then :
12088 $as_echo_n "(cached) " >&6
12089 else
12090
12091 if test "$cross_compiling" = yes; then :
12092 case "$host" in
12093 sparc*-*-linux*)
12094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12095 /* end confdefs.h. */
12096 #if defined __LP64__ || defined __arch64__
12097 yes
12098 #endif
12099 _ACEOF
12100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12101 $EGREP "yes" >/dev/null 2>&1; then :
12102 gl_cv_func_itold_works="guessing no"
12103 else
12104 gl_cv_func_itold_works="guessing yes"
12105 fi
12106 rm -f conftest*
12107
12108 ;;
12109 *) gl_cv_func_itold_works="guessing yes" ;;
12110 esac
12111
12112 else
12113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12114 /* end confdefs.h. */
12115
12116 int i = -1;
12117 volatile long double ld;
12118 int main ()
12119 {
12120 ld += i * 1.0L;
12121 if (ld > 0)
12122 return 1;
12123 return 0;
12124 }
12125 _ACEOF
12126 if ac_fn_c_try_run "$LINENO"; then :
12127 gl_cv_func_itold_works=yes
12128 else
12129 gl_cv_func_itold_works=no
12130 fi
12131 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12132 conftest.$ac_objext conftest.beam conftest.$ac_ext
12133 fi
12134
12135
12136 fi
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
12138 $as_echo "$gl_cv_func_itold_works" >&6; }
12139 case "$gl_cv_func_itold_works" in
12140 *no)
12141 REPLACE_ITOLD=1
12142 FLOAT_H=float.h
12143 ;;
12144 esac
12145
12146 if test -n "$FLOAT_H"; then
12147
12148
12149
12150
12151
12152
12153
12154
12155 if test $gl_cv_have_include_next = yes; then
12156 gl_cv_next_float_h='<'float.h'>'
12157 else
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
12159 $as_echo_n "checking absolute name of <float.h>... " >&6; }
12160 if test "${gl_cv_next_float_h+set}" = set; then :
12161 $as_echo_n "(cached) " >&6
12162 else
12163
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12166 #include <float.h>
12167
12168 _ACEOF
12169 case "$host_os" in
12170 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12171 *) gl_absname_cpp="$ac_cpp" ;;
12172 esac
12173
12174 case "$host_os" in
12175 mingw*)
12176 gl_dirsep_regex='[/\\]'
12177 ;;
12178 *)
12179 gl_dirsep_regex='\/'
12180 ;;
12181 esac
12182 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12183
12184 gl_header_literal_regex=`echo 'float.h' \
12185 | sed -e "$gl_make_literal_regex_sed"`
12186 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12187 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12188 s|^/[^/]|//&|
12189 p
12190 q
12191 }'
12192 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12193 sed -n "$gl_absolute_header_sed"`'"'
12194
12195
12196 fi
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
12198 $as_echo "$gl_cv_next_float_h" >&6; }
12199 fi
12200 NEXT_FLOAT_H=$gl_cv_next_float_h
12201
12202 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12203 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12204 gl_next_as_first_directive='<'float.h'>'
12205 else
12206 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12207 gl_next_as_first_directive=$gl_cv_next_float_h
12208 fi
12209 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
12210
12211
12212
12213
12214 fi
12215
12216 if test -n "$FLOAT_H"; then
12217 GL_GENERATE_FLOAT_H_TRUE=
12218 GL_GENERATE_FLOAT_H_FALSE='#'
12219 else
12220 GL_GENERATE_FLOAT_H_TRUE='#'
12221 GL_GENERATE_FLOAT_H_FALSE=
12222 fi
12223
12224
12225
12226 if test $REPLACE_FLOAT_LDBL = 1; then
12227
12228
12229
12230
12231
12232
12233
12234
12235 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
12236
12237 fi
12238 if test $REPLACE_ITOLD = 1; then
12239
12240
12241
12242
12243
12244
12245
12246
12247 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
12248
12249 fi
12250
12251
12252
12253
12254
12255 FNMATCH_H=
12256 gl_fnmatch_required_lowercase=`
12257 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
12258 `
12259 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
12261 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
12262 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
12263 $as_echo_n "(cached) " >&6
12264 else
12265 if test $gl_fnmatch_required = GNU; then
12266 gl_fnmatch_gnu_start=
12267 gl_fnmatch_gnu_end=
12268 else
12269 gl_fnmatch_gnu_start='#if 0'
12270 gl_fnmatch_gnu_end='#endif'
12271 fi
12272 if test "$cross_compiling" = yes; then :
12273 eval "$gl_fnmatch_cache_var=\"guessing no\""
12274 else
12275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12276 /* end confdefs.h. */
12277 #include <fnmatch.h>
12278 static int
12279 y (char const *pattern, char const *string, int flags)
12280 {
12281 return fnmatch (pattern, string, flags) == 0;
12282 }
12283 static int
12284 n (char const *pattern, char const *string, int flags)
12285 {
12286 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
12287 }
12288
12289 int
12290 main ()
12291 {
12292 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
12293 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
12294 static char const A_1[] = { 'A' - 1, 0 };
12295 static char const A01[] = { 'A' + 1, 0 };
12296 static char const a_1[] = { 'a' - 1, 0 };
12297 static char const a01[] = { 'a' + 1, 0 };
12298 static char const bs_1[] = { '\\\\' - 1, 0 };
12299 static char const bs01[] = { '\\\\' + 1, 0 };
12300 int result = 0;
12301 if (!n ("a*", "", 0))
12302 return 1;
12303 if (!y ("a*", "abc", 0))
12304 return 1;
12305 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
12306 return 1;
12307 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
12308 return 2;
12309 if (!y ("a\\\\bc", "abc", 0))
12310 return 3;
12311 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
12312 return 3;
12313 if (!y ("*x", ".x", 0))
12314 return 4;
12315 if (!n ("*x", ".x", FNM_PERIOD))
12316 return 4;
12317 if (!y (Apat, "\\\\", 0))
12318 return 5;
12319 if (!y (Apat, "A", 0))
12320 return 5;
12321 if (!y (apat, "\\\\", 0))
12322 return 5;
12323 if (!y (apat, "a", 0))
12324 return 5;
12325 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
12326 return 5;
12327 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
12328 return 5;
12329 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
12330 return 5;
12331 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
12332 return 5;
12333 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
12334 return 5;
12335 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
12336 return 5;
12337 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
12338 return 5;
12339 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
12340 return 5;
12341 $gl_fnmatch_gnu_start
12342 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
12343 result |= 8;
12344 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
12345 result |= 16;
12346 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
12347 result |= 32;
12348 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
12349 result |= 64;
12350 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
12351 result |= 64;
12352 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
12353 result |= 64;
12354 $gl_fnmatch_gnu_end
12355 return result;
12356
12357 ;
12358 return 0;
12359 }
12360 _ACEOF
12361 if ac_fn_c_try_run "$LINENO"; then :
12362 eval "$gl_fnmatch_cache_var=yes"
12363 else
12364 eval "$gl_fnmatch_cache_var=no"
12365 fi
12366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12367 conftest.$ac_objext conftest.beam conftest.$ac_ext
12368 fi
12369
12370
12371 fi
12372 eval ac_res=\$$gl_fnmatch_cache_var
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12374 $as_echo "$ac_res" >&6; }
12375 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
12376 if test "$gl_fnmatch_result" = yes; then
12377 rm -f "$gl_source_base/fnmatch.h"
12378 else
12379 FNMATCH_H=fnmatch.h
12380 fi
12381
12382 if test -n "$FNMATCH_H"; then
12383 GL_GENERATE_FNMATCH_H_TRUE=
12384 GL_GENERATE_FNMATCH_H_FALSE='#'
12385 else
12386 GL_GENERATE_FNMATCH_H_TRUE='#'
12387 GL_GENERATE_FNMATCH_H_FALSE=
12388 fi
12389
12390
12391 if test -n "$FNMATCH_H"; then
12392
12393
12394
12395
12396
12397
12398
12399
12400 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
12401
12402
12403
12404 cat >>confdefs.h <<_ACEOF
12405 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
12406 _ACEOF
12407
12408
12409 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
12410 "
12411 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
12412 ac_have_decl=1
12413 else
12414 ac_have_decl=0
12415 fi
12416
12417 cat >>confdefs.h <<_ACEOF
12418 #define HAVE_DECL_ISBLANK $ac_have_decl
12419 _ACEOF
12420
12421
12422
12423
12424 fi
12425
12426
12427
12428
12429
12430 if test -n "$FNMATCH_H"; then
12431
12432
12433
12434
12435
12436
12437
12438
12439 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
12440
12441
12442
12443 cat >>confdefs.h <<_ACEOF
12444 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
12445 _ACEOF
12446
12447
12448 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
12449 "
12450 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
12451 ac_have_decl=1
12452 else
12453 ac_have_decl=0
12454 fi
12455
12456 cat >>confdefs.h <<_ACEOF
12457 #define HAVE_DECL_ISBLANK $ac_have_decl
12458 _ACEOF
12459
12460
12461
12462
12463 fi
12464
12465
12466
12467 FREXP_LIBM=
12468 if test $gl_cv_func_frexp_no_libm = no; then
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
12470 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
12471 if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
12472 $as_echo_n "(cached) " >&6
12473 else
12474
12475 save_LIBS="$LIBS"
12476 LIBS="$LIBS -lm"
12477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12478 /* end confdefs.h. */
12479 #include <math.h>
12480 double x;
12481 int
12482 main ()
12483 {
12484 int e; return frexp (x, &e) > 0;
12485 ;
12486 return 0;
12487 }
12488 _ACEOF
12489 if ac_fn_c_try_link "$LINENO"; then :
12490 gl_cv_func_frexp_in_libm=yes
12491 else
12492 gl_cv_func_frexp_in_libm=no
12493 fi
12494 rm -f core conftest.err conftest.$ac_objext \
12495 conftest$ac_exeext conftest.$ac_ext
12496 LIBS="$save_LIBS"
12497
12498 fi
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
12500 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
12501 if test $gl_cv_func_frexp_in_libm = yes; then
12502 FREXP_LIBM=-lm
12503 fi
12504 fi
12505 if test $gl_cv_func_frexp_no_libm = yes \
12506 || test $gl_cv_func_frexp_in_libm = yes; then
12507 save_LIBS="$LIBS"
12508 LIBS="$LIBS $FREXP_LIBM"
12509
12510
12511
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
12513 $as_echo_n "checking whether frexp works... " >&6; }
12514 if test "${gl_cv_func_frexp_works+set}" = set; then :
12515 $as_echo_n "(cached) " >&6
12516 else
12517
12518 if test "$cross_compiling" = yes; then :
12519 case "$host_os" in
12520 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
12521 *) gl_cv_func_frexp_works="guessing yes";;
12522 esac
12523
12524 else
12525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h. */
12527
12528 #include <float.h>
12529 #include <math.h>
12530 #include <string.h>
12531 #if HAVE_ALARM
12532 # include <unistd.h>
12533 #endif
12534 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
12535 ICC 10.0 has a bug when optimizing the expression -zero.
12536 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
12537 to PowerPC on Mac OS X 10.5. */
12538 #if defined __hpux || defined __sgi || defined __ICC
12539 static double
12540 compute_minus_zero (void)
12541 {
12542 return -DBL_MIN * DBL_MIN;
12543 }
12544 # define minus_zero compute_minus_zero ()
12545 #else
12546 double minus_zero = -0.0;
12547 #endif
12548 int main()
12549 {
12550 int result = 0;
12551 int i;
12552 volatile double x;
12553 double zero = 0.0;
12554 #if HAVE_ALARM
12555 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
12556 number. Let the test fail in this case. */
12557 alarm (5);
12558 #endif
12559 /* Test on denormalized numbers. */
12560 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
12561 ;
12562 if (x > 0.0)
12563 {
12564 int exp;
12565 double y = frexp (x, &exp);
12566 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
12567 On NetBSD: y = 0.75. Correct: y = 0.5. */
12568 if (y != 0.5)
12569 result |= 1;
12570 }
12571 /* Test on infinite numbers. */
12572 x = 1.0 / zero;
12573 {
12574 int exp;
12575 double y = frexp (x, &exp);
12576 if (y != x)
12577 result |= 2;
12578 }
12579 /* Test on negative zero. */
12580 x = minus_zero;
12581 {
12582 int exp;
12583 double y = frexp (x, &exp);
12584 if (memcmp (&y, &x, sizeof x))
12585 result |= 4;
12586 }
12587 return result;
12588 }
12589 _ACEOF
12590 if ac_fn_c_try_run "$LINENO"; then :
12591 gl_cv_func_frexp_works=yes
12592 else
12593 gl_cv_func_frexp_works=no
12594 fi
12595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12596 conftest.$ac_objext conftest.beam conftest.$ac_ext
12597 fi
12598
12599
12600 fi
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
12602 $as_echo "$gl_cv_func_frexp_works" >&6; }
12603
12604 LIBS="$save_LIBS"
12605 case "$gl_cv_func_frexp_works" in
12606 *yes) gl_func_frexp=yes ;;
12607 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
12608 esac
12609 else
12610 gl_func_frexp=no
12611 fi
12612 if test $gl_func_frexp = yes; then
12613
12614 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
12615
12616 fi
12617
12618
12619 if test $gl_func_frexp != yes; then
12620
12621
12622
12623
12624
12625
12626
12627
12628 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
12629
12630 fi
12631
12632
12633
12634
12635
12636 GNULIB_FREXP=1
12637
12638
12639
12640
12641
12642 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
12653 "
12654 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
12655
12656 else
12657 HAVE_DECL_FREXPL=0
12658 fi
12659
12660
12661 FREXPL_LIBM=
12662 if test $HAVE_DECL_FREXPL = 1; then
12663
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
12665 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
12666 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
12667 $as_echo_n "(cached) " >&6
12668 else
12669
12670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12671 /* end confdefs.h. */
12672 #include <math.h>
12673 long double x;
12674 int
12675 main ()
12676 {
12677 int e; return frexpl (x, &e) > 0;
12678 ;
12679 return 0;
12680 }
12681 _ACEOF
12682 if ac_fn_c_try_link "$LINENO"; then :
12683 gl_cv_func_frexpl_no_libm=yes
12684 else
12685 gl_cv_func_frexpl_no_libm=no
12686 fi
12687 rm -f core conftest.err conftest.$ac_objext \
12688 conftest$ac_exeext conftest.$ac_ext
12689
12690 fi
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
12692 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
12693
12694 if test $gl_cv_func_frexpl_no_libm = no; then
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
12696 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
12697 if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
12698 $as_echo_n "(cached) " >&6
12699 else
12700
12701 save_LIBS="$LIBS"
12702 LIBS="$LIBS -lm"
12703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12704 /* end confdefs.h. */
12705 #include <math.h>
12706 long double x;
12707 int
12708 main ()
12709 {
12710 int e; return frexpl (x, &e) > 0;
12711 ;
12712 return 0;
12713 }
12714 _ACEOF
12715 if ac_fn_c_try_link "$LINENO"; then :
12716 gl_cv_func_frexpl_in_libm=yes
12717 else
12718 gl_cv_func_frexpl_in_libm=no
12719 fi
12720 rm -f core conftest.err conftest.$ac_objext \
12721 conftest$ac_exeext conftest.$ac_ext
12722 LIBS="$save_LIBS"
12723
12724 fi
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
12726 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
12727 if test $gl_cv_func_frexpl_in_libm = yes; then
12728 FREXPL_LIBM=-lm
12729 fi
12730 fi
12731 if test $gl_cv_func_frexpl_no_libm = yes \
12732 || test $gl_cv_func_frexpl_in_libm = yes; then
12733 save_LIBS="$LIBS"
12734 LIBS="$LIBS $FREXPL_LIBM"
12735
12736
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
12738 $as_echo_n "checking whether frexpl works... " >&6; }
12739 if test "${gl_cv_func_frexpl_works+set}" = set; then :
12740 $as_echo_n "(cached) " >&6
12741 else
12742
12743 if test "$cross_compiling" = yes; then :
12744
12745 case "$host_os" in
12746 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
12747 gl_cv_func_frexpl_works="guessing no";;
12748 *) gl_cv_func_frexpl_works="guessing yes";;
12749 esac
12750
12751 else
12752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12753 /* end confdefs.h. */
12754
12755 #include <float.h>
12756 #include <math.h>
12757 /* Override the values of <float.h>, like done in float.in.h. */
12758 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
12759 # undef LDBL_MIN_EXP
12760 # define LDBL_MIN_EXP (-16381)
12761 #endif
12762 #if defined __i386__ && defined __FreeBSD__
12763 # undef LDBL_MIN_EXP
12764 # define LDBL_MIN_EXP (-16381)
12765 #endif
12766 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
12767 # undef LDBL_MIN_EXP
12768 # define LDBL_MIN_EXP DBL_MIN_EXP
12769 #endif
12770 #if defined __sgi && (LDBL_MANT_DIG >= 106)
12771 # if defined __GNUC__
12772 # undef LDBL_MIN_EXP
12773 # define LDBL_MIN_EXP DBL_MIN_EXP
12774 # endif
12775 #endif
12776 extern
12777 #ifdef __cplusplus
12778 "C"
12779 #endif
12780 long double frexpl (long double, int *);
12781 int main()
12782 {
12783 int result = 0;
12784 volatile long double x;
12785 /* Test on finite numbers that fails on AIX 5.1. */
12786 x = 16.0L;
12787 {
12788 int exp = -9999;
12789 frexpl (x, &exp);
12790 if (exp != 5)
12791 result |= 1;
12792 }
12793 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
12794 function returns an invalid (incorrectly normalized) value: it returns
12795 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
12796 but the correct result is
12797 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
12798 x = 1.01L;
12799 {
12800 int exp = -9999;
12801 long double y = frexpl (x, &exp);
12802 if (!(exp == 1 && y == 0.505L))
12803 result |= 2;
12804 }
12805 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
12806 LDBL_MAX_EXP = 16384.
12807 In the loop end test, we test x against Infinity, rather than comparing
12808 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
12809 {
12810 int i;
12811 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
12812 {
12813 int exp = -9999;
12814 frexpl (x, &exp);
12815 if (exp != i)
12816 {
12817 result |= 4;
12818 break;
12819 }
12820 }
12821 }
12822 /* Test on denormalized numbers. */
12823 {
12824 int i;
12825 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
12826 ;
12827 if (x > 0.0L)
12828 {
12829 int exp;
12830 long double y = frexpl (x, &exp);
12831 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
12832 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
12833 if (exp != LDBL_MIN_EXP - 1)
12834 result |= 8;
12835 }
12836 }
12837 /* Test on infinite numbers. */
12838 x = 1.0L / 0.0L;
12839 {
12840 int exp;
12841 long double y = frexpl (x, &exp);
12842 if (y != x)
12843 result |= 16;
12844 }
12845 return result;
12846 }
12847 _ACEOF
12848 if ac_fn_c_try_run "$LINENO"; then :
12849 gl_cv_func_frexpl_works=yes
12850 else
12851 gl_cv_func_frexpl_works=no
12852 fi
12853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12854 conftest.$ac_objext conftest.beam conftest.$ac_ext
12855 fi
12856
12857
12858 fi
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
12860 $as_echo "$gl_cv_func_frexpl_works" >&6; }
12861
12862 LIBS="$save_LIBS"
12863 case "$gl_cv_func_frexpl_works" in
12864 *yes) gl_func_frexpl=yes ;;
12865 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
12866 esac
12867 else
12868 gl_func_frexpl=no
12869 fi
12870 if test $gl_func_frexpl = yes; then
12871
12872 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
12873
12874 fi
12875 fi
12876 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
12877 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
12878
12879 FREXPL_LIBM="$FREXP_LIBM"
12880 else
12881 FREXPL_LIBM=
12882 fi
12883 fi
12884
12885
12886 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
12887
12888
12889
12890
12891
12892
12893
12894
12895 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
12896
12897 fi
12898
12899
12900
12901
12902
12903 GNULIB_FREXPL=1
12904
12905
12906
12907
12908
12909 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
12910
12911
12912
12913
12914
12915
12916
12917
12918 PRIPTR_PREFIX=
12919 if test -n "$STDINT_H"; then
12920 PRIPTR_PREFIX='"l"'
12921 else
12922 for glpfx in '' l ll I64; do
12923 case $glpfx in
12924 '') gltype1='int';;
12925 l) gltype1='long int';;
12926 ll) gltype1='long long int';;
12927 I64) gltype1='__int64';;
12928 esac
12929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930 /* end confdefs.h. */
12931 #include <stdint.h>
12932 extern intptr_t foo;
12933 extern $gltype1 foo;
12934 int
12935 main ()
12936 {
12937
12938 ;
12939 return 0;
12940 }
12941 _ACEOF
12942 if ac_fn_c_try_compile "$LINENO"; then :
12943 PRIPTR_PREFIX='"'$glpfx'"'
12944 fi
12945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12946 test -n "$PRIPTR_PREFIX" && break
12947 done
12948 fi
12949
12950
12951
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
12953 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
12954 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
12955 $as_echo_n "(cached) " >&6
12956 else
12957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12958 /* end confdefs.h. */
12959 /* Work also in C++ mode. */
12960 #define __STDC_LIMIT_MACROS 1
12961
12962 /* Work if build is not clean. */
12963 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
12964
12965 #include <limits.h>
12966 #if HAVE_STDINT_H
12967 #include <stdint.h>
12968 #endif
12969
12970 #if defined INT32_MAX && defined INTMAX_MAX
12971 #define CONDITION (INT32_MAX < INTMAX_MAX)
12972 #elif HAVE_LONG_LONG_INT
12973 #define CONDITION (sizeof (int) < sizeof (long long int))
12974 #else
12975 #define CONDITION 0
12976 #endif
12977 int test[CONDITION ? 1 : -1];
12978 int
12979 main ()
12980 {
12981
12982 ;
12983 return 0;
12984 }
12985 _ACEOF
12986 if ac_fn_c_try_compile "$LINENO"; then :
12987 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
12988 else
12989 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
12990 fi
12991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12992 fi
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
12994 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
12995 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
12996 INT32_MAX_LT_INTMAX_MAX=1;
12997 else
12998 INT32_MAX_LT_INTMAX_MAX=0;
12999 fi
13000
13001
13002 if test $APPLE_UNIVERSAL_BUILD = 0; then
13003
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
13005 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
13006 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
13007 $as_echo_n "(cached) " >&6
13008 else
13009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13010 /* end confdefs.h. */
13011 /* Work also in C++ mode. */
13012 #define __STDC_LIMIT_MACROS 1
13013
13014 /* Work if build is not clean. */
13015 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13016
13017 #include <limits.h>
13018 #if HAVE_STDINT_H
13019 #include <stdint.h>
13020 #endif
13021
13022 #if defined INT64_MAX
13023 #define CONDITION (INT64_MAX == LONG_MAX)
13024 #elif HAVE_LONG_LONG_INT
13025 #define CONDITION (sizeof (long long int) == sizeof (long int))
13026 #else
13027 #define CONDITION 0
13028 #endif
13029 int test[CONDITION ? 1 : -1];
13030 int
13031 main ()
13032 {
13033
13034 ;
13035 return 0;
13036 }
13037 _ACEOF
13038 if ac_fn_c_try_compile "$LINENO"; then :
13039 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
13040 else
13041 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
13042 fi
13043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13044 fi
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
13046 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
13047 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
13048 INT64_MAX_EQ_LONG_MAX=1;
13049 else
13050 INT64_MAX_EQ_LONG_MAX=0;
13051 fi
13052
13053
13054 else
13055 INT64_MAX_EQ_LONG_MAX=-1
13056 fi
13057
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
13059 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
13060 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
13061 $as_echo_n "(cached) " >&6
13062 else
13063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064 /* end confdefs.h. */
13065 /* Work also in C++ mode. */
13066 #define __STDC_LIMIT_MACROS 1
13067
13068 /* Work if build is not clean. */
13069 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13070
13071 #include <limits.h>
13072 #if HAVE_STDINT_H
13073 #include <stdint.h>
13074 #endif
13075
13076 #if defined UINT32_MAX && defined UINTMAX_MAX
13077 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
13078 #elif HAVE_LONG_LONG_INT
13079 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
13080 #else
13081 #define CONDITION 0
13082 #endif
13083 int test[CONDITION ? 1 : -1];
13084 int
13085 main ()
13086 {
13087
13088 ;
13089 return 0;
13090 }
13091 _ACEOF
13092 if ac_fn_c_try_compile "$LINENO"; then :
13093 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
13094 else
13095 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
13096 fi
13097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13098 fi
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
13100 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
13101 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
13102 UINT32_MAX_LT_UINTMAX_MAX=1;
13103 else
13104 UINT32_MAX_LT_UINTMAX_MAX=0;
13105 fi
13106
13107
13108 if test $APPLE_UNIVERSAL_BUILD = 0; then
13109
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
13111 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
13112 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
13113 $as_echo_n "(cached) " >&6
13114 else
13115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13116 /* end confdefs.h. */
13117 /* Work also in C++ mode. */
13118 #define __STDC_LIMIT_MACROS 1
13119
13120 /* Work if build is not clean. */
13121 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
13122
13123 #include <limits.h>
13124 #if HAVE_STDINT_H
13125 #include <stdint.h>
13126 #endif
13127
13128 #if defined UINT64_MAX
13129 #define CONDITION (UINT64_MAX == ULONG_MAX)
13130 #elif HAVE_LONG_LONG_INT
13131 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
13132 #else
13133 #define CONDITION 0
13134 #endif
13135 int test[CONDITION ? 1 : -1];
13136 int
13137 main ()
13138 {
13139
13140 ;
13141 return 0;
13142 }
13143 _ACEOF
13144 if ac_fn_c_try_compile "$LINENO"; then :
13145 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
13146 else
13147 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
13148 fi
13149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13150 fi
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
13152 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
13153 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
13154 UINT64_MAX_EQ_ULONG_MAX=1;
13155 else
13156 UINT64_MAX_EQ_ULONG_MAX=0;
13157 fi
13158
13159
13160 else
13161 UINT64_MAX_EQ_ULONG_MAX=-1
13162 fi
13163
13164
13165
13166
13167
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
13169 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
13170 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
13171 $as_echo_n "(cached) " >&6
13172 else
13173
13174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13175 /* end confdefs.h. */
13176 #include <math.h>
13177 #if __GNUC__ >= 4
13178 # undef isnand
13179 # define isnand(x) __builtin_isnan ((double)(x))
13180 #else
13181 # undef isnand
13182 # define isnand(x) isnan ((double)(x))
13183 #endif
13184 double x;
13185 int
13186 main ()
13187 {
13188 return isnand (x);
13189 ;
13190 return 0;
13191 }
13192 _ACEOF
13193 if ac_fn_c_try_link "$LINENO"; then :
13194 gl_cv_func_isnand_no_libm=yes
13195 else
13196 gl_cv_func_isnand_no_libm=no
13197 fi
13198 rm -f core conftest.err conftest.$ac_objext \
13199 conftest$ac_exeext conftest.$ac_ext
13200
13201 fi
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
13203 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
13204
13205 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
13206 if test $gl_cv_func_isnand_no_libm = yes; then
13207
13208 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
13209
13210 fi
13211
13212 if test $gl_func_isnand_no_libm != yes; then
13213
13214
13215
13216
13217
13218
13219
13220
13221 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
13222
13223
13224
13225
13226 fi
13227
13228
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
13230 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
13231 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
13232 $as_echo_n "(cached) " >&6
13233 else
13234
13235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13236 /* end confdefs.h. */
13237 #include <math.h>
13238 #if __GNUC__ >= 4
13239 # undef isnanl
13240 # define isnanl(x) __builtin_isnanl ((long double)(x))
13241 #elif defined isnan
13242 # undef isnanl
13243 # define isnanl(x) isnan ((long double)(x))
13244 #endif
13245 long double x;
13246 int
13247 main ()
13248 {
13249 return isnanl (x);
13250 ;
13251 return 0;
13252 }
13253 _ACEOF
13254 if ac_fn_c_try_link "$LINENO"; then :
13255 gl_cv_func_isnanl_no_libm=yes
13256 else
13257 gl_cv_func_isnanl_no_libm=no
13258 fi
13259 rm -f core conftest.err conftest.$ac_objext \
13260 conftest$ac_exeext conftest.$ac_ext
13261
13262 fi
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
13264 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
13265
13266 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
13267 if test $gl_func_isnanl_no_libm = yes; then
13268
13269
13270
13271
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
13273 $as_echo_n "checking whether isnanl works... " >&6; }
13274 if test "${gl_cv_func_isnanl_works+set}" = set; then :
13275 $as_echo_n "(cached) " >&6
13276 else
13277
13278 if test "$cross_compiling" = yes; then :
13279 case "$host_cpu" in
13280 # Guess no on ia64, x86_64, i386.
13281 ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
13282 *)
13283 case "$host_os" in
13284 netbsd*) gl_cv_func_isnanl_works="guessing no";;
13285 *) gl_cv_func_isnanl_works="guessing yes";;
13286 esac
13287 ;;
13288 esac
13289
13290 else
13291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13292 /* end confdefs.h. */
13293
13294 #include <float.h>
13295 #include <limits.h>
13296 #include <math.h>
13297 #if __GNUC__ >= 4
13298 # undef isnanl
13299 # define isnanl(x) __builtin_isnanl ((long double)(x))
13300 #elif defined isnan
13301 # undef isnanl
13302 # define isnanl(x) isnan ((long double)(x))
13303 #endif
13304 #define NWORDS \
13305 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
13306 typedef union { unsigned int word[NWORDS]; long double value; }
13307 memory_long_double;
13308 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
13309 runtime type conversion. */
13310 #ifdef __sgi
13311 static long double NaNl ()
13312 {
13313 double zero = 0.0;
13314 return zero / zero;
13315 }
13316 #else
13317 # define NaNl() (0.0L / 0.0L)
13318 #endif
13319 int main ()
13320 {
13321 int result = 0;
13322
13323 if (!isnanl (NaNl ()))
13324 result |= 1;
13325
13326 {
13327 memory_long_double m;
13328 unsigned int i;
13329
13330 /* The isnanl function should be immune against changes in the sign bit and
13331 in the mantissa bits. The xor operation twiddles a bit that can only be
13332 a sign bit or a mantissa bit (since the exponent never extends to
13333 bit 31). */
13334 m.value = NaNl ();
13335 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
13336 for (i = 0; i < NWORDS; i++)
13337 m.word[i] |= 1;
13338 if (!isnanl (m.value))
13339 result |= 1;
13340 }
13341
13342 #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
13343 /* Representation of an 80-bit 'long double' as an initializer for a sequence
13344 of 'unsigned int' words. */
13345 # ifdef WORDS_BIGENDIAN
13346 # define LDBL80_WORDS(exponent,manthi,mantlo) \
13347 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
13348 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
13349 (unsigned int) (mantlo) << 16 \
13350 }
13351 # else
13352 # define LDBL80_WORDS(exponent,manthi,mantlo) \
13353 { mantlo, manthi, exponent }
13354 # endif
13355 { /* Quiet NaN. */
13356 static memory_long_double x =
13357 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
13358 if (!isnanl (x.value))
13359 result |= 2;
13360 }
13361 {
13362 /* Signalling NaN. */
13363 static memory_long_double x =
13364 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
13365 if (!isnanl (x.value))
13366 result |= 2;
13367 }
13368 /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
13369 Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
13370 Intel IA-64 Architecture Software Developer's Manual, Volume 1:
13371 Application Architecture.
13372 Table 5-2 "Floating-Point Register Encodings"
13373 Figure 5-6 "Memory to Floating-Point Register Data Translation"
13374 */
13375 { /* Pseudo-NaN. */
13376 static memory_long_double x =
13377 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
13378 if (!isnanl (x.value))
13379 result |= 4;
13380 }
13381 { /* Pseudo-Infinity. */
13382 static memory_long_double x =
13383 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
13384 if (!isnanl (x.value))
13385 result |= 8;
13386 }
13387 { /* Pseudo-Zero. */
13388 static memory_long_double x =
13389 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
13390 if (!isnanl (x.value))
13391 result |= 16;
13392 }
13393 { /* Unnormalized number. */
13394 static memory_long_double x =
13395 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
13396 if (!isnanl (x.value))
13397 result |= 32;
13398 }
13399 { /* Pseudo-Denormal. */
13400 static memory_long_double x =
13401 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
13402 if (!isnanl (x.value))
13403 result |= 64;
13404 }
13405 #endif
13406
13407 return result;
13408 }
13409 _ACEOF
13410 if ac_fn_c_try_run "$LINENO"; then :
13411 gl_cv_func_isnanl_works=yes
13412 else
13413 gl_cv_func_isnanl_works=no
13414 fi
13415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13416 conftest.$ac_objext conftest.beam conftest.$ac_ext
13417 fi
13418
13419
13420 fi
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
13422 $as_echo "$gl_cv_func_isnanl_works" >&6; }
13423
13424 case "$gl_cv_func_isnanl_works" in
13425 *yes) ;;
13426 *) gl_func_isnanl_no_libm=no ;;
13427 esac
13428 fi
13429 if test $gl_func_isnanl_no_libm = yes; then
13430
13431 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
13432
13433 fi
13434
13435 if test $gl_func_isnanl_no_libm != yes; then
13436
13437
13438
13439
13440
13441
13442
13443
13444 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
13445
13446
13447
13448
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
13450 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
13451 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
13452 $as_echo_n "(cached) " >&6
13453 else
13454
13455 if test "$cross_compiling" = yes; then :
13456
13457 gl_cv_cc_long_double_expbit0="unknown"
13458
13459 else
13460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13461 /* end confdefs.h. */
13462
13463 #include <float.h>
13464 #include <stddef.h>
13465 #include <stdio.h>
13466 #include <string.h>
13467 #define NWORDS \
13468 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
13469 typedef union { long double value; unsigned int word[NWORDS]; }
13470 memory_long_double;
13471 static unsigned int ored_words[NWORDS];
13472 static unsigned int anded_words[NWORDS];
13473 static void add_to_ored_words (long double x)
13474 {
13475 memory_long_double m;
13476 size_t i;
13477 /* Clear it first, in case
13478 sizeof (long double) < sizeof (memory_long_double). */
13479 memset (&m, 0, sizeof (memory_long_double));
13480 m.value = x;
13481 for (i = 0; i < NWORDS; i++)
13482 {
13483 ored_words[i] |= m.word[i];
13484 anded_words[i] &= m.word[i];
13485 }
13486 }
13487 int main ()
13488 {
13489 size_t j;
13490 FILE *fp = fopen ("conftest.out", "w");
13491 if (fp == NULL)
13492 return 1;
13493 for (j = 0; j < NWORDS; j++)
13494 anded_words[j] = ~ (unsigned int) 0;
13495 add_to_ored_words (0.25L);
13496 add_to_ored_words (0.5L);
13497 add_to_ored_words (1.0L);
13498 add_to_ored_words (2.0L);
13499 add_to_ored_words (4.0L);
13500 /* Remove bits that are common (e.g. if representation of the first mantissa
13501 bit is explicit). */
13502 for (j = 0; j < NWORDS; j++)
13503 ored_words[j] &= ~anded_words[j];
13504 /* Now find the nonzero word. */
13505 for (j = 0; j < NWORDS; j++)
13506 if (ored_words[j] != 0)
13507 break;
13508 if (j < NWORDS)
13509 {
13510 size_t i;
13511 for (i = j + 1; i < NWORDS; i++)
13512 if (ored_words[i] != 0)
13513 {
13514 fprintf (fp, "unknown");
13515 return (fclose (fp) != 0);
13516 }
13517 for (i = 0; ; i++)
13518 if ((ored_words[j] >> i) & 1)
13519 {
13520 fprintf (fp, "word %d bit %d", (int) j, (int) i);
13521 return (fclose (fp) != 0);
13522 }
13523 }
13524 fprintf (fp, "unknown");
13525 return (fclose (fp) != 0);
13526 }
13527
13528 _ACEOF
13529 if ac_fn_c_try_run "$LINENO"; then :
13530 gl_cv_cc_long_double_expbit0=`cat conftest.out`
13531 else
13532 gl_cv_cc_long_double_expbit0="unknown"
13533 fi
13534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13535 conftest.$ac_objext conftest.beam conftest.$ac_ext
13536 fi
13537
13538 rm -f conftest.out
13539
13540 fi
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
13542 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
13543 case "$gl_cv_cc_long_double_expbit0" in
13544 word*bit*)
13545 word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
13546 bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
13547
13548 cat >>confdefs.h <<_ACEOF
13549 #define LDBL_EXPBIT0_WORD $word
13550 _ACEOF
13551
13552
13553 cat >>confdefs.h <<_ACEOF
13554 #define LDBL_EXPBIT0_BIT $bit
13555 _ACEOF
13556
13557 ;;
13558 esac
13559
13560
13561
13562 fi
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
13573
13574
13575
13576
13577 if test $ac_cv_func_lstat = yes; then
13578
13579 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
13580 *no)
13581 REPLACE_LSTAT=1
13582 ;;
13583 esac
13584 else
13585 HAVE_LSTAT=0
13586 fi
13587
13588 if test $REPLACE_LSTAT = 1; then
13589
13590
13591
13592
13593
13594
13595
13596
13597 gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
13598
13599 :
13600 fi
13601
13602
13603
13604
13605
13606 GNULIB_LSTAT=1
13607
13608
13609
13610
13611
13612 $as_echo "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
13613
13614
13615
13616
13617
13618
13619 if test $gl_cv_func_malloc_posix = yes; then
13620
13621 $as_echo "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
13622
13623 else
13624 REPLACE_MALLOC=1
13625 fi
13626
13627 if test $REPLACE_MALLOC = 1; then
13628
13629
13630
13631
13632
13633
13634
13635
13636 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
13637
13638 fi
13639
13640
13641
13642
13643
13644 GNULIB_MALLOC_POSIX=1
13645
13646
13647
13648
13649
13650 $as_echo "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669 if test $gl_cv_have_include_next = yes; then
13670 gl_cv_next_math_h='<'math.h'>'
13671 else
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
13673 $as_echo_n "checking absolute name of <math.h>... " >&6; }
13674 if test "${gl_cv_next_math_h+set}" = set; then :
13675 $as_echo_n "(cached) " >&6
13676 else
13677
13678 if test $ac_cv_header_math_h = yes; then
13679
13680
13681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13682 /* end confdefs.h. */
13683 #include <math.h>
13684
13685 _ACEOF
13686 case "$host_os" in
13687 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13688 *) gl_absname_cpp="$ac_cpp" ;;
13689 esac
13690
13691 case "$host_os" in
13692 mingw*)
13693 gl_dirsep_regex='[/\\]'
13694 ;;
13695 *)
13696 gl_dirsep_regex='\/'
13697 ;;
13698 esac
13699 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13700
13701 gl_header_literal_regex=`echo 'math.h' \
13702 | sed -e "$gl_make_literal_regex_sed"`
13703 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13704 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13705 s|^/[^/]|//&|
13706 p
13707 q
13708 }'
13709 gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13710 sed -n "$gl_absolute_header_sed"`'"'
13711 else
13712 gl_cv_next_math_h='<'math.h'>'
13713 fi
13714
13715
13716 fi
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
13718 $as_echo "$gl_cv_next_math_h" >&6; }
13719 fi
13720 NEXT_MATH_H=$gl_cv_next_math_h
13721
13722 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13723 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13724 gl_next_as_first_directive='<'math.h'>'
13725 else
13726 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13727 gl_next_as_first_directive=$gl_cv_next_math_h
13728 fi
13729 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
13730
13731
13732
13733
13734
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
13736 $as_echo_n "checking whether NAN macro works... " >&6; }
13737 if test "${gl_cv_header_math_nan_works+set}" = set; then :
13738 $as_echo_n "(cached) " >&6
13739 else
13740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13741 /* end confdefs.h. */
13742 #include <math.h>
13743 int
13744 main ()
13745 {
13746 /* Solaris 10 has a broken definition of NAN. Other platforms
13747 fail to provide NAN, or provide it only in C99 mode; this
13748 test only needs to fail when NAN is provided but wrong. */
13749 float f = 1.0f;
13750 #ifdef NAN
13751 f = NAN;
13752 #endif
13753 return f == 0;
13754 ;
13755 return 0;
13756 }
13757 _ACEOF
13758 if ac_fn_c_try_compile "$LINENO"; then :
13759 gl_cv_header_math_nan_works=yes
13760 else
13761 gl_cv_header_math_nan_works=no
13762 fi
13763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13764 fi
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
13766 $as_echo "$gl_cv_header_math_nan_works" >&6; }
13767 if test $gl_cv_header_math_nan_works = no; then
13768 REPLACE_NAN=1
13769 fi
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
13771 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
13772 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
13773 $as_echo_n "(cached) " >&6
13774 else
13775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13776 /* end confdefs.h. */
13777 #include <math.h>
13778 int
13779 main ()
13780 {
13781 /* Solaris 10 has a broken definition of HUGE_VAL. */
13782 double d = HUGE_VAL;
13783 return d == 0;
13784 ;
13785 return 0;
13786 }
13787 _ACEOF
13788 if ac_fn_c_try_compile "$LINENO"; then :
13789 gl_cv_header_math_huge_val_works=yes
13790 else
13791 gl_cv_header_math_huge_val_works=no
13792 fi
13793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13794 fi
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
13796 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
13797 if test $gl_cv_header_math_huge_val_works = no; then
13798 REPLACE_HUGE_VAL=1
13799 fi
13800
13801
13802 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
13803 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13805 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13806 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
13807 $as_echo_n "(cached) " >&6
13808 else
13809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13810 /* end confdefs.h. */
13811 #include <math.h>
13812 int
13813 main ()
13814 {
13815 #undef $gl_func
13816 (void) $gl_func;
13817 ;
13818 return 0;
13819 }
13820 _ACEOF
13821 if ac_fn_c_try_compile "$LINENO"; then :
13822 eval "$as_gl_Symbol=yes"
13823 else
13824 eval "$as_gl_Symbol=no"
13825 fi
13826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13827 fi
13828 eval ac_res=\$$as_gl_Symbol
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13830 $as_echo "$ac_res" >&6; }
13831 eval as_val=\$$as_gl_Symbol
13832 if test "x$as_val" = x""yes; then :
13833 cat >>confdefs.h <<_ACEOF
13834 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13835 _ACEOF
13836
13837 eval ac_cv_have_decl_$gl_func=yes
13838 fi
13839 done
13840
13841
13842
13843
13844
13845
13846
13847
13848
13849
13850
13851
13852 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
13853
13854
13855
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
13857 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
13858 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
13859 $as_echo_n "(cached) " >&6
13860 else
13861
13862 case "$host_os" in
13863 # Guess no on AIX and OSF/1.
13864 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
13865 # Guess yes otherwise.
13866 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
13867 esac
13868 if test $LOCALE_JA != none; then
13869 if test "$cross_compiling" = yes; then :
13870 :
13871 else
13872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13873 /* end confdefs.h. */
13874
13875 #include <locale.h>
13876 #include <string.h>
13877 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13878 <wchar.h>.
13879 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13880 included before <wchar.h>. */
13881 #include <stddef.h>
13882 #include <stdio.h>
13883 #include <time.h>
13884 #include <wchar.h>
13885 int main ()
13886 {
13887 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13888 {
13889 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
13890 mbstate_t state;
13891 wchar_t wc;
13892
13893 memset (&state, '\0', sizeof (mbstate_t));
13894 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
13895 if (mbsinit (&state))
13896 return 1;
13897 }
13898 return 0;
13899 }
13900 _ACEOF
13901 if ac_fn_c_try_run "$LINENO"; then :
13902 gl_cv_func_mbrtowc_incomplete_state=yes
13903 else
13904 gl_cv_func_mbrtowc_incomplete_state=no
13905 fi
13906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13907 conftest.$ac_objext conftest.beam conftest.$ac_ext
13908 fi
13909
13910 fi
13911
13912 fi
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
13914 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
13915
13916
13917
13918
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
13920 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
13921 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
13922 $as_echo_n "(cached) " >&6
13923 else
13924
13925 case "$host_os" in
13926 # Guess no on Solaris 8.
13927 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
13928 # Guess yes otherwise.
13929 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
13930 esac
13931 if test $LOCALE_ZH_CN != none; then
13932 if test "$cross_compiling" = yes; then :
13933 :
13934 else
13935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13936 /* end confdefs.h. */
13937
13938 #include <locale.h>
13939 #include <stdlib.h>
13940 #include <string.h>
13941 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13942 <wchar.h>.
13943 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13944 included before <wchar.h>. */
13945 #include <stddef.h>
13946 #include <stdio.h>
13947 #include <time.h>
13948 #include <wchar.h>
13949 int main ()
13950 {
13951 /* This fails on Solaris 8:
13952 mbrtowc returns 2, and sets wc to 0x00F0.
13953 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
13954 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13955 {
13956 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
13957 mbstate_t state;
13958 wchar_t wc;
13959
13960 memset (&state, '\0', sizeof (mbstate_t));
13961 if (mbrtowc (&wc, input + 3, 6, &state) != 4
13962 && mbtowc (&wc, input + 3, 6) == 4)
13963 return 1;
13964 }
13965 return 0;
13966 }
13967 _ACEOF
13968 if ac_fn_c_try_run "$LINENO"; then :
13969 gl_cv_func_mbrtowc_sanitycheck=yes
13970 else
13971 gl_cv_func_mbrtowc_sanitycheck=no
13972 fi
13973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13974 conftest.$ac_objext conftest.beam conftest.$ac_ext
13975 fi
13976
13977 fi
13978
13979 fi
13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
13981 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
13982
13983 REPLACE_MBSTATE_T=0
13984 case "$gl_cv_func_mbrtowc_incomplete_state" in
13985 *yes) ;;
13986 *) REPLACE_MBSTATE_T=1 ;;
13987 esac
13988 case "$gl_cv_func_mbrtowc_sanitycheck" in
13989 *yes) ;;
13990 *) REPLACE_MBSTATE_T=1 ;;
13991 esac
13992 else
13993 REPLACE_MBSTATE_T=1
13994 fi
13995
13996
13997
13998 if test $ac_cv_func_mbrtowc = no; then
13999 HAVE_MBRTOWC=0
14000 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
14001 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14002 <wchar.h>.
14003 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14004 included before <wchar.h>. */
14005 #include <stddef.h>
14006 #include <stdio.h>
14007 #include <time.h>
14008 #include <wchar.h>
14009
14010 "
14011 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
14012 ac_have_decl=1
14013 else
14014 ac_have_decl=0
14015 fi
14016
14017 cat >>confdefs.h <<_ACEOF
14018 #define HAVE_DECL_MBRTOWC $ac_have_decl
14019 _ACEOF
14020
14021 if test $ac_cv_have_decl_mbrtowc = yes; then
14022 REPLACE_MBRTOWC=1
14023 fi
14024 else
14025 if test $REPLACE_MBSTATE_T = 1; then
14026 REPLACE_MBRTOWC=1
14027 else
14028
14029
14030
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
14032 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
14033 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
14034 $as_echo_n "(cached) " >&6
14035 else
14036
14037 case "$host_os" in
14038 # Guess no on Solaris.
14039 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
14040 # Guess yes otherwise.
14041 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
14042 esac
14043 if test $LOCALE_FR_UTF8 != none; then
14044 if test "$cross_compiling" = yes; then :
14045 :
14046 else
14047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14048 /* end confdefs.h. */
14049
14050 #include <locale.h>
14051 #include <stdlib.h>
14052 #include <string.h>
14053 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14054 <wchar.h>.
14055 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14056 included before <wchar.h>. */
14057 #include <stddef.h>
14058 #include <stdio.h>
14059 #include <time.h>
14060 #include <wchar.h>
14061 int main ()
14062 {
14063 int result = 0;
14064
14065 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14066 {
14067 char input[] = "\303\237er";
14068 mbstate_t state;
14069 wchar_t wc;
14070 size_t ret;
14071
14072 memset (&state, '\0', sizeof (mbstate_t));
14073 wc = (wchar_t) 0xBADFACE;
14074 ret = mbrtowc (&wc, input, 5, &state);
14075 if (ret != 2)
14076 result |= 1;
14077 if (!mbsinit (&state))
14078 result |= 2;
14079
14080 memset (&state, '\0', sizeof (mbstate_t));
14081 ret = mbrtowc (NULL, input, 5, &state);
14082 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
14083 result |= 4;
14084 if (!mbsinit (&state))
14085 result |= 8;
14086 }
14087 return result;
14088 }
14089 _ACEOF
14090 if ac_fn_c_try_run "$LINENO"; then :
14091 gl_cv_func_mbrtowc_null_arg1=yes
14092 else
14093 gl_cv_func_mbrtowc_null_arg1=no
14094 fi
14095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14096 conftest.$ac_objext conftest.beam conftest.$ac_ext
14097 fi
14098
14099 fi
14100
14101 fi
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
14103 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
14104
14105
14106
14107
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
14109 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
14110 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
14111 $as_echo_n "(cached) " >&6
14112 else
14113
14114 case "$host_os" in
14115 # Guess no on OSF/1.
14116 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
14117 # Guess yes otherwise.
14118 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
14119 esac
14120 if test $LOCALE_FR_UTF8 != none; then
14121 if test "$cross_compiling" = yes; then :
14122 :
14123 else
14124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14125 /* end confdefs.h. */
14126
14127 #include <locale.h>
14128 #include <string.h>
14129 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14130 <wchar.h>.
14131 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14132 included before <wchar.h>. */
14133 #include <stddef.h>
14134 #include <stdio.h>
14135 #include <time.h>
14136 #include <wchar.h>
14137 int main ()
14138 {
14139 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14140 {
14141 mbstate_t state;
14142 wchar_t wc;
14143 int ret;
14144
14145 memset (&state, '\0', sizeof (mbstate_t));
14146 wc = (wchar_t) 0xBADFACE;
14147 mbrtowc (&wc, NULL, 5, &state);
14148 /* Check that wc was not modified. */
14149 if (wc != (wchar_t) 0xBADFACE)
14150 return 1;
14151 }
14152 return 0;
14153 }
14154 _ACEOF
14155 if ac_fn_c_try_run "$LINENO"; then :
14156 gl_cv_func_mbrtowc_null_arg2=yes
14157 else
14158 gl_cv_func_mbrtowc_null_arg2=no
14159 fi
14160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14161 conftest.$ac_objext conftest.beam conftest.$ac_ext
14162 fi
14163
14164 fi
14165
14166 fi
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
14168 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
14169
14170
14171
14172
14173
14174
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
14176 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
14177 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
14178 $as_echo_n "(cached) " >&6
14179 else
14180
14181 case "$host_os" in
14182 # Guess no on HP-UX, Solaris, native Windows.
14183 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
14184 # Guess yes otherwise.
14185 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
14186 esac
14187 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
14188 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
14189 if test "$cross_compiling" = yes; then :
14190 :
14191 else
14192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14193 /* end confdefs.h. */
14194
14195 #include <locale.h>
14196 #include <string.h>
14197 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14198 <wchar.h>.
14199 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14200 included before <wchar.h>. */
14201 #include <stddef.h>
14202 #include <stdio.h>
14203 #include <time.h>
14204 #include <wchar.h>
14205 int main ()
14206 {
14207 int result = 0;
14208 int found_some_locale = 0;
14209 /* This fails on Solaris. */
14210 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14211 {
14212 char input[] = "B\303\274\303\237er"; /* "Büßer" */
14213 mbstate_t state;
14214 wchar_t wc;
14215
14216 memset (&state, '\0', sizeof (mbstate_t));
14217 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14218 {
14219 input[1] = '\0';
14220 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
14221 result |= 1;
14222 }
14223 found_some_locale = 1;
14224 }
14225 /* This fails on HP-UX 11.11. */
14226 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14227 {
14228 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
14229 mbstate_t state;
14230 wchar_t wc;
14231
14232 memset (&state, '\0', sizeof (mbstate_t));
14233 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14234 {
14235 input[1] = '\0';
14236 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
14237 result |= 2;
14238 }
14239 found_some_locale = 1;
14240 }
14241 /* This fails on native Windows. */
14242 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
14243 {
14244 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
14245 mbstate_t state;
14246 wchar_t wc;
14247
14248 memset (&state, '\0', sizeof (mbstate_t));
14249 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
14250 {
14251 input[3] = '\0';
14252 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
14253 result |= 4;
14254 }
14255 found_some_locale = 1;
14256 }
14257 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
14258 {
14259 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
14260 mbstate_t state;
14261 wchar_t wc;
14262
14263 memset (&state, '\0', sizeof (mbstate_t));
14264 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
14265 {
14266 input[3] = '\0';
14267 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
14268 result |= 8;
14269 }
14270 found_some_locale = 1;
14271 }
14272 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
14273 {
14274 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
14275 mbstate_t state;
14276 wchar_t wc;
14277
14278 memset (&state, '\0', sizeof (mbstate_t));
14279 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
14280 {
14281 input[3] = '\0';
14282 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
14283 result |= 16;
14284 }
14285 found_some_locale = 1;
14286 }
14287 return (found_some_locale ? result : 77);
14288 }
14289 _ACEOF
14290 if ac_fn_c_try_run "$LINENO"; then :
14291 gl_cv_func_mbrtowc_retval=yes
14292 else
14293 if test $? != 77; then
14294 gl_cv_func_mbrtowc_retval=no
14295 fi
14296
14297 fi
14298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14299 conftest.$ac_objext conftest.beam conftest.$ac_ext
14300 fi
14301
14302 fi
14303
14304 fi
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
14306 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
14307
14308
14309
14310
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
14312 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
14313 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
14314 $as_echo_n "(cached) " >&6
14315 else
14316
14317 case "$host_os" in
14318 # Guess no on Solaris 8 and 9.
14319 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
14320 # Guess yes otherwise.
14321 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
14322 esac
14323 if test $LOCALE_ZH_CN != none; then
14324 if test "$cross_compiling" = yes; then :
14325 :
14326 else
14327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14328 /* end confdefs.h. */
14329
14330 #include <locale.h>
14331 #include <string.h>
14332 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14333 <wchar.h>.
14334 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14335 included before <wchar.h>. */
14336 #include <stddef.h>
14337 #include <stdio.h>
14338 #include <time.h>
14339 #include <wchar.h>
14340 int main ()
14341 {
14342 /* This fails on Solaris 8 and 9. */
14343 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
14344 {
14345 mbstate_t state;
14346 wchar_t wc;
14347
14348 memset (&state, '\0', sizeof (mbstate_t));
14349 if (mbrtowc (&wc, "", 1, &state) != 0)
14350 return 1;
14351 }
14352 return 0;
14353 }
14354 _ACEOF
14355 if ac_fn_c_try_run "$LINENO"; then :
14356 gl_cv_func_mbrtowc_nul_retval=yes
14357 else
14358 gl_cv_func_mbrtowc_nul_retval=no
14359 fi
14360 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14361 conftest.$ac_objext conftest.beam conftest.$ac_ext
14362 fi
14363
14364 fi
14365
14366 fi
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
14368 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
14369
14370 case "$gl_cv_func_mbrtowc_null_arg1" in
14371 *yes) ;;
14372 *)
14373 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
14374
14375 REPLACE_MBRTOWC=1
14376 ;;
14377 esac
14378 case "$gl_cv_func_mbrtowc_null_arg2" in
14379 *yes) ;;
14380 *)
14381 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
14382
14383 REPLACE_MBRTOWC=1
14384 ;;
14385 esac
14386 case "$gl_cv_func_mbrtowc_retval" in
14387 *yes) ;;
14388 *)
14389 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
14390
14391 REPLACE_MBRTOWC=1
14392 ;;
14393 esac
14394 case "$gl_cv_func_mbrtowc_nul_retval" in
14395 *yes) ;;
14396 *)
14397 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
14398
14399 REPLACE_MBRTOWC=1
14400 ;;
14401 esac
14402 fi
14403 fi
14404
14405 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
14406
14407
14408
14409
14410
14411
14412
14413
14414 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
14415
14416
14417 :
14418
14419 fi
14420
14421
14422
14423
14424
14425 GNULIB_MBRTOWC=1
14426
14427
14428
14429
14430
14431 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
14447
14448
14449
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
14451 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
14452 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
14453 $as_echo_n "(cached) " >&6
14454 else
14455
14456 case "$host_os" in
14457 # Guess no on AIX and OSF/1.
14458 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
14459 # Guess yes otherwise.
14460 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
14461 esac
14462 if test $LOCALE_JA != none; then
14463 if test "$cross_compiling" = yes; then :
14464 :
14465 else
14466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14467 /* end confdefs.h. */
14468
14469 #include <locale.h>
14470 #include <string.h>
14471 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14472 <wchar.h>.
14473 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14474 included before <wchar.h>. */
14475 #include <stddef.h>
14476 #include <stdio.h>
14477 #include <time.h>
14478 #include <wchar.h>
14479 int main ()
14480 {
14481 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14482 {
14483 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
14484 mbstate_t state;
14485 wchar_t wc;
14486
14487 memset (&state, '\0', sizeof (mbstate_t));
14488 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14489 if (mbsinit (&state))
14490 return 1;
14491 }
14492 return 0;
14493 }
14494 _ACEOF
14495 if ac_fn_c_try_run "$LINENO"; then :
14496 gl_cv_func_mbrtowc_incomplete_state=yes
14497 else
14498 gl_cv_func_mbrtowc_incomplete_state=no
14499 fi
14500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14501 conftest.$ac_objext conftest.beam conftest.$ac_ext
14502 fi
14503
14504 fi
14505
14506 fi
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
14508 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
14509
14510
14511
14512
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
14514 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
14515 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
14516 $as_echo_n "(cached) " >&6
14517 else
14518
14519 case "$host_os" in
14520 # Guess no on Solaris 8.
14521 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
14522 # Guess yes otherwise.
14523 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
14524 esac
14525 if test $LOCALE_ZH_CN != none; then
14526 if test "$cross_compiling" = yes; then :
14527 :
14528 else
14529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14530 /* end confdefs.h. */
14531
14532 #include <locale.h>
14533 #include <stdlib.h>
14534 #include <string.h>
14535 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14536 <wchar.h>.
14537 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14538 included before <wchar.h>. */
14539 #include <stddef.h>
14540 #include <stdio.h>
14541 #include <time.h>
14542 #include <wchar.h>
14543 int main ()
14544 {
14545 /* This fails on Solaris 8:
14546 mbrtowc returns 2, and sets wc to 0x00F0.
14547 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
14548 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
14549 {
14550 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
14551 mbstate_t state;
14552 wchar_t wc;
14553
14554 memset (&state, '\0', sizeof (mbstate_t));
14555 if (mbrtowc (&wc, input + 3, 6, &state) != 4
14556 && mbtowc (&wc, input + 3, 6) == 4)
14557 return 1;
14558 }
14559 return 0;
14560 }
14561 _ACEOF
14562 if ac_fn_c_try_run "$LINENO"; then :
14563 gl_cv_func_mbrtowc_sanitycheck=yes
14564 else
14565 gl_cv_func_mbrtowc_sanitycheck=no
14566 fi
14567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14568 conftest.$ac_objext conftest.beam conftest.$ac_ext
14569 fi
14570
14571 fi
14572
14573 fi
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
14575 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
14576
14577 REPLACE_MBSTATE_T=0
14578 case "$gl_cv_func_mbrtowc_incomplete_state" in
14579 *yes) ;;
14580 *) REPLACE_MBSTATE_T=1 ;;
14581 esac
14582 case "$gl_cv_func_mbrtowc_sanitycheck" in
14583 *yes) ;;
14584 *) REPLACE_MBSTATE_T=1 ;;
14585 esac
14586 else
14587 REPLACE_MBSTATE_T=1
14588 fi
14589
14590
14591
14592 if test $ac_cv_func_mbsinit = no; then
14593 HAVE_MBSINIT=0
14594 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
14595 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14596 <wchar.h>.
14597 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14598 included before <wchar.h>. */
14599 #include <stddef.h>
14600 #include <stdio.h>
14601 #include <time.h>
14602 #include <wchar.h>
14603
14604 "
14605 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
14606 ac_have_decl=1
14607 else
14608 ac_have_decl=0
14609 fi
14610
14611 cat >>confdefs.h <<_ACEOF
14612 #define HAVE_DECL_MBSINIT $ac_have_decl
14613 _ACEOF
14614
14615 if test $ac_cv_have_decl_mbsinit = yes; then
14616 REPLACE_MBSINIT=1
14617 fi
14618 else
14619 if test $REPLACE_MBSTATE_T = 1; then
14620 REPLACE_MBSINIT=1
14621 else
14622 case "$host_os" in
14623 mingw*) REPLACE_MBSINIT=1 ;;
14624 esac
14625 fi
14626 fi
14627
14628 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
14629
14630
14631
14632
14633
14634
14635
14636
14637 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
14638
14639
14640 :
14641
14642 fi
14643
14644
14645
14646
14647
14648 GNULIB_MBSINIT=1
14649
14650
14651
14652
14653
14654 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
14669
14670
14671
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
14673 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
14674 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
14675 $as_echo_n "(cached) " >&6
14676 else
14677
14678 case "$host_os" in
14679 # Guess no on AIX and OSF/1.
14680 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
14681 # Guess yes otherwise.
14682 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
14683 esac
14684 if test $LOCALE_JA != none; then
14685 if test "$cross_compiling" = yes; then :
14686 :
14687 else
14688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14689 /* end confdefs.h. */
14690
14691 #include <locale.h>
14692 #include <string.h>
14693 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14694 <wchar.h>.
14695 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14696 included before <wchar.h>. */
14697 #include <stddef.h>
14698 #include <stdio.h>
14699 #include <time.h>
14700 #include <wchar.h>
14701 int main ()
14702 {
14703 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14704 {
14705 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
14706 mbstate_t state;
14707 wchar_t wc;
14708
14709 memset (&state, '\0', sizeof (mbstate_t));
14710 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
14711 if (mbsinit (&state))
14712 return 1;
14713 }
14714 return 0;
14715 }
14716 _ACEOF
14717 if ac_fn_c_try_run "$LINENO"; then :
14718 gl_cv_func_mbrtowc_incomplete_state=yes
14719 else
14720 gl_cv_func_mbrtowc_incomplete_state=no
14721 fi
14722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14723 conftest.$ac_objext conftest.beam conftest.$ac_ext
14724 fi
14725
14726 fi
14727
14728 fi
14729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
14730 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
14731
14732
14733
14734
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
14736 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
14737 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
14738 $as_echo_n "(cached) " >&6
14739 else
14740
14741 case "$host_os" in
14742 # Guess no on Solaris 8.
14743 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
14744 # Guess yes otherwise.
14745 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
14746 esac
14747 if test $LOCALE_ZH_CN != none; then
14748 if test "$cross_compiling" = yes; then :
14749 :
14750 else
14751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14752 /* end confdefs.h. */
14753
14754 #include <locale.h>
14755 #include <stdlib.h>
14756 #include <string.h>
14757 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14758 <wchar.h>.
14759 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14760 included before <wchar.h>. */
14761 #include <stddef.h>
14762 #include <stdio.h>
14763 #include <time.h>
14764 #include <wchar.h>
14765 int main ()
14766 {
14767 /* This fails on Solaris 8:
14768 mbrtowc returns 2, and sets wc to 0x00F0.
14769 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
14770 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
14771 {
14772 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
14773 mbstate_t state;
14774 wchar_t wc;
14775
14776 memset (&state, '\0', sizeof (mbstate_t));
14777 if (mbrtowc (&wc, input + 3, 6, &state) != 4
14778 && mbtowc (&wc, input + 3, 6) == 4)
14779 return 1;
14780 }
14781 return 0;
14782 }
14783 _ACEOF
14784 if ac_fn_c_try_run "$LINENO"; then :
14785 gl_cv_func_mbrtowc_sanitycheck=yes
14786 else
14787 gl_cv_func_mbrtowc_sanitycheck=no
14788 fi
14789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14790 conftest.$ac_objext conftest.beam conftest.$ac_ext
14791 fi
14792
14793 fi
14794
14795 fi
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
14797 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
14798
14799 REPLACE_MBSTATE_T=0
14800 case "$gl_cv_func_mbrtowc_incomplete_state" in
14801 *yes) ;;
14802 *) REPLACE_MBSTATE_T=1 ;;
14803 esac
14804 case "$gl_cv_func_mbrtowc_sanitycheck" in
14805 *yes) ;;
14806 *) REPLACE_MBSTATE_T=1 ;;
14807 esac
14808 else
14809 REPLACE_MBSTATE_T=1
14810 fi
14811
14812
14813
14814 if test $ac_cv_func_mbsrtowcs = no; then
14815 HAVE_MBSRTOWCS=0
14816 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
14817 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14818 <wchar.h>.
14819 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14820 included before <wchar.h>. */
14821 #include <stddef.h>
14822 #include <stdio.h>
14823 #include <time.h>
14824 #include <wchar.h>
14825
14826 "
14827 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
14828 ac_have_decl=1
14829 else
14830 ac_have_decl=0
14831 fi
14832
14833 cat >>confdefs.h <<_ACEOF
14834 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
14835 _ACEOF
14836
14837 if test $ac_cv_have_decl_mbsrtowcs = yes; then
14838 REPLACE_MBSRTOWCS=1
14839 fi
14840 else
14841 if test $REPLACE_MBSTATE_T = 1; then
14842 REPLACE_MBSRTOWCS=1
14843 else
14844
14845
14846
14847
14848
14849
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
14851 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
14852 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
14853 $as_echo_n "(cached) " >&6
14854 else
14855
14856 case "$host_os" in
14857 # Guess no on HP-UX, Solaris, mingw.
14858 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
14859 # Guess yes otherwise.
14860 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
14861 esac
14862 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
14863 if test "$cross_compiling" = yes; then :
14864 :
14865 else
14866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867 /* end confdefs.h. */
14868
14869 #include <locale.h>
14870 #include <string.h>
14871 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14872 <wchar.h>.
14873 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14874 included before <wchar.h>. */
14875 #include <stddef.h>
14876 #include <stdio.h>
14877 #include <time.h>
14878 #include <wchar.h>
14879 int main ()
14880 {
14881 int result = 0;
14882 /* Test whether the function supports a NULL destination argument.
14883 This fails on native Windows. */
14884 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
14885 {
14886 const char input[] = "\337er";
14887 const char *src = input;
14888 mbstate_t state;
14889
14890 memset (&state, '\0', sizeof (mbstate_t));
14891 if (mbsrtowcs (NULL, &src, 1, &state) != 3
14892 || src != input)
14893 result |= 1;
14894 }
14895 /* Test whether the function works when started with a conversion state
14896 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
14897 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14898 {
14899 const char input[] = "B\303\274\303\237er";
14900 mbstate_t state;
14901
14902 memset (&state, '\0', sizeof (mbstate_t));
14903 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
14904 if (!mbsinit (&state))
14905 {
14906 const char *src = input + 2;
14907 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
14908 result |= 2;
14909 }
14910 }
14911 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
14912 {
14913 const char input[] = "<\306\374\313\334\270\354>";
14914 mbstate_t state;
14915
14916 memset (&state, '\0', sizeof (mbstate_t));
14917 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
14918 if (!mbsinit (&state))
14919 {
14920 const char *src = input + 4;
14921 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
14922 result |= 4;
14923 }
14924 }
14925 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
14926 {
14927 const char input[] = "B\250\271\201\060\211\070er";
14928 mbstate_t state;
14929
14930 memset (&state, '\0', sizeof (mbstate_t));
14931 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
14932 if (!mbsinit (&state))
14933 {
14934 const char *src = input + 2;
14935 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
14936 result |= 8;
14937 }
14938 }
14939 return result;
14940 }
14941 _ACEOF
14942 if ac_fn_c_try_run "$LINENO"; then :
14943 gl_cv_func_mbsrtowcs_works=yes
14944 else
14945 gl_cv_func_mbsrtowcs_works=no
14946 fi
14947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14948 conftest.$ac_objext conftest.beam conftest.$ac_ext
14949 fi
14950
14951 fi
14952
14953 fi
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
14955 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
14956
14957 case "$gl_cv_func_mbsrtowcs_works" in
14958 *yes) ;;
14959 *) REPLACE_MBSRTOWCS=1 ;;
14960 esac
14961 fi
14962 fi
14963
14964 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
14965
14966
14967
14968
14969
14970
14971
14972
14973 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
14984
14985
14986 :
14987
14988 fi
14989
14990
14991
14992
14993
14994 GNULIB_MBSRTOWCS=1
14995
14996
14997
14998
14999
15000 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
15001
15002
15003
15004
15005 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
15006
15007
15008
15009
15010
15011
15012
15013
15014 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
15015
15016
15017 for ac_header in bp-sym.h
15018 do :
15019 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
15020 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
15021 cat >>confdefs.h <<_ACEOF
15022 #define HAVE_BP_SYM_H 1
15023 _ACEOF
15024
15025 fi
15026
15027 done
15028
15029
15030 fi
15031
15032
15033
15034
15035
15036 GNULIB_MEMCHR=1
15037
15038
15039
15040
15041
15042 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
15043
15044
15045
15046
15047
15048 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
15050 $as_echo_n "checking whether memmem works in linear time... " >&6; }
15051 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
15052 $as_echo_n "(cached) " >&6
15053 else
15054 if test "$cross_compiling" = yes; then :
15055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15056 /* end confdefs.h. */
15057
15058 #include <features.h>
15059 #ifdef __GNU_LIBRARY__
15060 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
15061 && !defined __UCLIBC__
15062 Lucky user
15063 #endif
15064 #endif
15065 #ifdef __CYGWIN__
15066 #include <cygwin/version.h>
15067 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
15068 Lucky user
15069 #endif
15070 #endif
15071
15072 _ACEOF
15073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15074 $EGREP "Lucky user" >/dev/null 2>&1; then :
15075 gl_cv_func_memmem_works_fast="guessing yes"
15076 else
15077 gl_cv_func_memmem_works_fast="guessing no"
15078 fi
15079 rm -f conftest*
15080
15081
15082 else
15083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15084 /* end confdefs.h. */
15085
15086 #include <signal.h> /* for signal */
15087 #include <string.h> /* for memmem */
15088 #include <stdlib.h> /* for malloc */
15089 #include <unistd.h> /* for alarm */
15090 static void quit (int sig) { exit (sig + 128); }
15091
15092 int
15093 main ()
15094 {
15095
15096 int result = 0;
15097 size_t m = 1000000;
15098 char *haystack = (char *) malloc (2 * m + 1);
15099 char *needle = (char *) malloc (m + 1);
15100 /* Failure to compile this test due to missing alarm is okay,
15101 since all such platforms (mingw) also lack memmem. */
15102 signal (SIGALRM, quit);
15103 alarm (5);
15104 /* Check for quadratic performance. */
15105 if (haystack && needle)
15106 {
15107 memset (haystack, 'A', 2 * m);
15108 haystack[2 * m] = 'B';
15109 memset (needle, 'A', m);
15110 needle[m] = 'B';
15111 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
15112 result |= 1;
15113 }
15114 return result;
15115
15116 ;
15117 return 0;
15118 }
15119 _ACEOF
15120 if ac_fn_c_try_run "$LINENO"; then :
15121 gl_cv_func_memmem_works_fast=yes
15122 else
15123 gl_cv_func_memmem_works_fast=no
15124 fi
15125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15126 conftest.$ac_objext conftest.beam conftest.$ac_ext
15127 fi
15128
15129
15130 fi
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
15132 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
15133 case "$gl_cv_func_memmem_works_fast" in
15134 *yes) ;;
15135 *)
15136 REPLACE_MEMMEM=1
15137 ;;
15138 esac
15139 fi
15140
15141 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
15142
15143
15144
15145
15146
15147
15148
15149
15150 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
15151
15152 fi
15153
15154
15155
15156
15157 for ac_func in memmem
15158 do :
15159 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
15160 if test "x$ac_cv_func_memmem" = x""yes; then :
15161 cat >>confdefs.h <<_ACEOF
15162 #define HAVE_MEMMEM 1
15163 _ACEOF
15164
15165 fi
15166 done
15167
15168 if test $ac_cv_func_memmem = yes; then
15169 HAVE_MEMMEM=1
15170 else
15171 HAVE_MEMMEM=0
15172 fi
15173
15174 if test $ac_cv_have_decl_memmem = no; then
15175 HAVE_DECL_MEMMEM=0
15176 else
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
15178 $as_echo_n "checking whether memmem works... " >&6; }
15179 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
15180 $as_echo_n "(cached) " >&6
15181 else
15182 if test "$cross_compiling" = yes; then :
15183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15184 /* end confdefs.h. */
15185
15186 #ifdef __GNU_LIBRARY__
15187 #include <features.h>
15188 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
15189 || __GLIBC_MINOR__ > 12)) \
15190 || (__GLIBC__ > 2)) \
15191 || defined __UCLIBC__
15192 Lucky user
15193 #endif
15194 #elif defined __CYGWIN__
15195 #include <cygwin/version.h>
15196 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
15197 Lucky user
15198 #endif
15199 #else
15200 Lucky user
15201 #endif
15202
15203 _ACEOF
15204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15205 $EGREP "Lucky user" >/dev/null 2>&1; then :
15206 gl_cv_func_memmem_works_always="guessing yes"
15207 else
15208 gl_cv_func_memmem_works_always="guessing no"
15209 fi
15210 rm -f conftest*
15211
15212
15213 else
15214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15215 /* end confdefs.h. */
15216
15217 #include <string.h> /* for memmem */
15218 #define P "_EF_BF_BD"
15219 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
15220 #define NEEDLE P P P P P
15221
15222 int
15223 main ()
15224 {
15225
15226 int result = 0;
15227 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
15228 result |= 1;
15229 /* Check for empty needle behavior. */
15230 {
15231 const char *haystack = "AAA";
15232 if (memmem (haystack, 3, NULL, 0) != haystack)
15233 result |= 2;
15234 }
15235 return result;
15236
15237 ;
15238 return 0;
15239 }
15240 _ACEOF
15241 if ac_fn_c_try_run "$LINENO"; then :
15242 gl_cv_func_memmem_works_always=yes
15243 else
15244 gl_cv_func_memmem_works_always=no
15245 fi
15246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15247 conftest.$ac_objext conftest.beam conftest.$ac_ext
15248 fi
15249
15250
15251 fi
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
15253 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
15254 case "$gl_cv_func_memmem_works_always" in
15255 *yes) ;;
15256 *)
15257 REPLACE_MEMMEM=1
15258 ;;
15259 esac
15260 fi
15261 :
15262
15263 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
15264
15265
15266
15267
15268
15269
15270
15271
15272 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
15273
15274 fi
15275
15276
15277
15278
15279
15280 GNULIB_MEMMEM=1
15281
15282
15283
15284
15285
15286 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
15287
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297 if test $ac_cv_func_readlink = no; then
15298 HAVE_READLINK=0
15299 else
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink signature is correct" >&5
15301 $as_echo_n "checking whether readlink signature is correct... " >&6; }
15302 if test "${gl_cv_decl_readlink_works+set}" = set; then :
15303 $as_echo_n "(cached) " >&6
15304 else
15305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15306 /* end confdefs.h. */
15307 #include <unistd.h>
15308 /* Cause compilation failure if original declaration has wrong type. */
15309 ssize_t readlink (const char *, char *, size_t);
15310 int
15311 main ()
15312 {
15313
15314 ;
15315 return 0;
15316 }
15317 _ACEOF
15318 if ac_fn_c_try_compile "$LINENO"; then :
15319 gl_cv_decl_readlink_works=yes
15320 else
15321 gl_cv_decl_readlink_works=no
15322 fi
15323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15324 fi
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_readlink_works" >&5
15326 $as_echo "$gl_cv_decl_readlink_works" >&6; }
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether readlink handles trailing slash correctly" >&5
15328 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
15329 if test "${gl_cv_func_readlink_works+set}" = set; then :
15330 $as_echo_n "(cached) " >&6
15331 else
15332 # We have readlink, so assume ln -s works.
15333 ln -s conftest.no-such conftest.link
15334 ln -s conftest.link conftest.lnk2
15335 if test "$cross_compiling" = yes; then :
15336 case "$host_os" in
15337 # Guess yes on glibc systems.
15338 *-gnu*) gl_cv_func_readlink_works="guessing yes" ;;
15339 # If we don't know, assume the worst.
15340 *) gl_cv_func_readlink_works="guessing no" ;;
15341 esac
15342
15343 else
15344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15345 /* end confdefs.h. */
15346 #include <unistd.h>
15347
15348 int
15349 main ()
15350 {
15351 char buf[20];
15352 return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
15353 ;
15354 return 0;
15355 }
15356 _ACEOF
15357 if ac_fn_c_try_run "$LINENO"; then :
15358 gl_cv_func_readlink_works=yes
15359 else
15360 gl_cv_func_readlink_works=no
15361 fi
15362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15363 conftest.$ac_objext conftest.beam conftest.$ac_ext
15364 fi
15365
15366 rm -f conftest.link conftest.lnk2
15367 fi
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_readlink_works" >&5
15369 $as_echo "$gl_cv_func_readlink_works" >&6; }
15370 case "$gl_cv_func_readlink_works" in
15371 *yes)
15372 if test "$gl_cv_decl_readlink_works" != yes; then
15373 REPLACE_READLINK=1
15374 fi
15375 ;;
15376 *)
15377
15378 $as_echo "#define READLINK_TRAILING_SLASH_BUG 1" >>confdefs.h
15379
15380 REPLACE_READLINK=1
15381 ;;
15382 esac
15383 fi
15384
15385 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
15386
15387
15388
15389
15390
15391
15392
15393
15394 gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
15395
15396
15397 :
15398
15399 fi
15400
15401
15402
15403
15404
15405 GNULIB_READLINK=1
15406
15407
15408
15409
15410
15411 $as_echo "#define GNULIB_TEST_READLINK 1" >>confdefs.h
15412
15413
15414
15415
15416
15417
15418
15419
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on destination" >&5
15421 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
15422 if test "${gl_cv_func_rename_slash_dst_works+set}" = set; then :
15423 $as_echo_n "(cached) " >&6
15424 else
15425 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
15426 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
15427 as_fn_error "cannot create temporary files" "$LINENO" 5
15428 # Assume that if we have lstat, we can also check symlinks.
15429 if test $ac_cv_func_lstat = yes; then
15430 ln -s conftest.f conftest.lnk
15431 fi
15432 if test "$cross_compiling" = yes; then :
15433 case "$host_os" in
15434 # Guess yes on glibc systems.
15435 *-gnu*) gl_cv_func_rename_slash_dst_works="guessing yes" ;;
15436 # If we don't know, assume the worst.
15437 *) gl_cv_func_rename_slash_dst_works="guessing no" ;;
15438 esac
15439
15440 else
15441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15442 /* end confdefs.h. */
15443
15444 # include <stdio.h>
15445 # include <stdlib.h>
15446
15447 int
15448 main ()
15449 {
15450 int result = 0;
15451 if (rename ("conftest.f1", "conftest.f2/") == 0)
15452 result |= 1;
15453 if (rename ("conftest.d1", "conftest.d2/") != 0)
15454 result |= 2;
15455 #if HAVE_LSTAT
15456 if (rename ("conftest.f", "conftest.lnk/") == 0)
15457 result |= 4;
15458 #endif
15459 return result;
15460
15461 ;
15462 return 0;
15463 }
15464 _ACEOF
15465 if ac_fn_c_try_run "$LINENO"; then :
15466 gl_cv_func_rename_slash_dst_works=yes
15467 else
15468 gl_cv_func_rename_slash_dst_works=no
15469 fi
15470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15471 conftest.$ac_objext conftest.beam conftest.$ac_ext
15472 fi
15473
15474 rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
15475
15476 fi
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_dst_works" >&5
15478 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
15479 case "$gl_cv_func_rename_slash_dst_works" in
15480 *yes) ;;
15481 *)
15482 REPLACE_RENAME=1
15483
15484 $as_echo "#define RENAME_TRAILING_SLASH_DEST_BUG 1" >>confdefs.h
15485
15486 ;;
15487 esac
15488
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename honors trailing slash on source" >&5
15490 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
15491 if test "${gl_cv_func_rename_slash_src_works+set}" = set; then :
15492 $as_echo_n "(cached) " >&6
15493 else
15494 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
15495 touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
15496 as_fn_error "cannot create temporary files" "$LINENO" 5
15497 # Assume that if we have lstat, we can also check symlinks.
15498 if test $ac_cv_func_lstat = yes; then
15499 ln -s conftest.f conftest.lnk
15500 fi
15501 if test "$cross_compiling" = yes; then :
15502 case "$host_os" in
15503 # Guess yes on glibc systems.
15504 *-gnu*) gl_cv_func_rename_slash_src_works="guessing yes" ;;
15505 # If we don't know, assume the worst.
15506 *) gl_cv_func_rename_slash_src_works="guessing no" ;;
15507 esac
15508
15509 else
15510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15511 /* end confdefs.h. */
15512
15513 # include <stdio.h>
15514 # include <stdlib.h>
15515
15516 int
15517 main ()
15518 {
15519 int result = 0;
15520 if (rename ("conftest.f1/", "conftest.d3") == 0)
15521 result |= 1;
15522 if (rename ("conftest.d1/", "conftest.d2") != 0)
15523 result |= 2;
15524 #if HAVE_LSTAT
15525 if (rename ("conftest.lnk/", "conftest.f") == 0)
15526 result |= 4;
15527 #endif
15528 return result;
15529
15530 ;
15531 return 0;
15532 }
15533 _ACEOF
15534 if ac_fn_c_try_run "$LINENO"; then :
15535 gl_cv_func_rename_slash_src_works=yes
15536 else
15537 gl_cv_func_rename_slash_src_works=no
15538 fi
15539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15540 conftest.$ac_objext conftest.beam conftest.$ac_ext
15541 fi
15542
15543 rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
15544
15545 fi
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_slash_src_works" >&5
15547 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
15548 case "$gl_cv_func_rename_slash_src_works" in
15549 *yes) ;;
15550 *)
15551 REPLACE_RENAME=1
15552
15553 $as_echo "#define RENAME_TRAILING_SLASH_SOURCE_BUG 1" >>confdefs.h
15554
15555 ;;
15556 esac
15557
15558
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages hard links correctly" >&5
15560 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
15561 if test "${gl_cv_func_rename_link_works+set}" = set; then :
15562 $as_echo_n "(cached) " >&6
15563 else
15564 if test $ac_cv_func_link = yes; then
15565 rm -rf conftest.f conftest.f1
15566 if touch conftest.f && ln conftest.f conftest.f1 &&
15567 set x `ls -i conftest.f conftest.f1` && test "" = ""; then
15568 if test "$cross_compiling" = yes; then :
15569 case "$host_os" in
15570 # Guess yes on glibc systems.
15571 *-gnu*) gl_cv_func_rename_link_works="guessing yes" ;;
15572 # If we don't know, assume the worst.
15573 *) gl_cv_func_rename_link_works="guessing no" ;;
15574 esac
15575
15576 else
15577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15578 /* end confdefs.h. */
15579
15580 # include <stdio.h>
15581 # include <stdlib.h>
15582 # include <unistd.h>
15583
15584 int
15585 main ()
15586 {
15587 int result = 0;
15588 if (rename ("conftest.f", "conftest.f1"))
15589 result |= 1;
15590 if (unlink ("conftest.f1"))
15591 result |= 2;
15592 if (rename ("conftest.f", "conftest.f"))
15593 result |= 4;
15594 if (rename ("conftest.f1", "conftest.f1") == 0)
15595 result |= 8;
15596 return result;
15597
15598 ;
15599 return 0;
15600 }
15601 _ACEOF
15602 if ac_fn_c_try_run "$LINENO"; then :
15603 gl_cv_func_rename_link_works=yes
15604 else
15605 gl_cv_func_rename_link_works=no
15606 fi
15607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15608 conftest.$ac_objext conftest.beam conftest.$ac_ext
15609 fi
15610
15611 else
15612 gl_cv_func_rename_link_works="guessing no"
15613 fi
15614 rm -rf conftest.f conftest.f1
15615 else
15616 gl_cv_func_rename_link_works=yes
15617 fi
15618
15619 fi
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_link_works" >&5
15621 $as_echo "$gl_cv_func_rename_link_works" >&6; }
15622 case "$gl_cv_func_rename_link_works" in
15623 *yes) ;;
15624 *)
15625 REPLACE_RENAME=1
15626
15627 $as_echo "#define RENAME_HARD_LINK_BUG 1" >>confdefs.h
15628
15629 ;;
15630 esac
15631
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rename manages existing destinations correctly" >&5
15633 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
15634 if test "${gl_cv_func_rename_dest_works+set}" = set; then :
15635 $as_echo_n "(cached) " >&6
15636 else
15637 rm -rf conftest.f conftest.d1 conftest.d2
15638 touch conftest.f && mkdir conftest.d1 conftest.d2 ||
15639 as_fn_error "cannot create temporary files" "$LINENO" 5
15640 if test "$cross_compiling" = yes; then :
15641 case "$host_os" in
15642 # Guess yes on glibc systems.
15643 *-gnu*) gl_cv_func_rename_dest_works="guessing yes" ;;
15644 # If we don't know, assume the worst.
15645 *) gl_cv_func_rename_dest_works="guessing no" ;;
15646 esac
15647
15648 else
15649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15650 /* end confdefs.h. */
15651
15652 # include <stdio.h>
15653 # include <stdlib.h>
15654
15655 int
15656 main ()
15657 {
15658 int result = 0;
15659 if (rename ("conftest.d1", "conftest.d2") != 0)
15660 result |= 1;
15661 if (rename ("conftest.d2", "conftest.f") == 0)
15662 result |= 2;
15663 return result;
15664
15665 ;
15666 return 0;
15667 }
15668 _ACEOF
15669 if ac_fn_c_try_run "$LINENO"; then :
15670 gl_cv_func_rename_dest_works=yes
15671 else
15672 gl_cv_func_rename_dest_works=no
15673 fi
15674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15675 conftest.$ac_objext conftest.beam conftest.$ac_ext
15676 fi
15677
15678 rm -rf conftest.f conftest.d1 conftest.d2
15679
15680 fi
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rename_dest_works" >&5
15682 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
15683 case "$gl_cv_func_rename_dest_works" in
15684 *yes) ;;
15685 *)
15686 REPLACE_RENAME=1
15687
15688 $as_echo "#define RENAME_DEST_EXISTS_BUG 1" >>confdefs.h
15689
15690 ;;
15691 esac
15692
15693 if test $REPLACE_RENAME = 1; then
15694
15695
15696
15697
15698
15699
15700
15701
15702 gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
15703
15704 fi
15705
15706
15707
15708
15709
15710 GNULIB_RENAME=1
15711
15712
15713
15714
15715
15716 $as_echo "#define GNULIB_TEST_RENAME 1" >>confdefs.h
15717
15718
15719
15720
15721
15722
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
15724 $as_echo_n "checking whether rmdir works... " >&6; }
15725 if test "${gl_cv_func_rmdir_works+set}" = set; then :
15726 $as_echo_n "(cached) " >&6
15727 else
15728 mkdir conftest.dir
15729 touch conftest.file
15730 if test "$cross_compiling" = yes; then :
15731 case "$host_os" in
15732 # Guess yes on glibc systems.
15733 *-gnu*) gl_cv_func_rmdir_works="guessing yes" ;;
15734 # If we don't know, assume the worst.
15735 *) gl_cv_func_rmdir_works="guessing no" ;;
15736 esac
15737
15738 else
15739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15740 /* end confdefs.h. */
15741 #include <stdio.h>
15742 #include <errno.h>
15743 #if HAVE_UNISTD_H
15744 # include <unistd.h>
15745 #else /* on Windows with MSVC */
15746 # include <direct.h>
15747 #endif
15748
15749 int
15750 main ()
15751 {
15752 int result = 0;
15753 if (!rmdir ("conftest.file/"))
15754 result |= 1;
15755 else if (errno != ENOTDIR)
15756 result |= 2;
15757 if (!rmdir ("conftest.dir/./"))
15758 result |= 4;
15759 return result;
15760
15761 ;
15762 return 0;
15763 }
15764 _ACEOF
15765 if ac_fn_c_try_run "$LINENO"; then :
15766 gl_cv_func_rmdir_works=yes
15767 else
15768 gl_cv_func_rmdir_works=no
15769 fi
15770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15771 conftest.$ac_objext conftest.beam conftest.$ac_ext
15772 fi
15773
15774 rm -rf conftest.dir conftest.file
15775 fi
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
15777 $as_echo "$gl_cv_func_rmdir_works" >&6; }
15778 case "$gl_cv_func_rmdir_works" in
15779 *yes) ;;
15780 *)
15781 REPLACE_RMDIR=1
15782 ;;
15783 esac
15784
15785 if test $REPLACE_RMDIR = 1; then
15786
15787
15788
15789
15790
15791
15792
15793
15794 gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
15795
15796 fi
15797
15798
15799
15800
15801
15802 GNULIB_RMDIR=1
15803
15804
15805
15806
15807
15808 $as_echo "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
15809
15810
15811
15812
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
15814 $as_echo_n "checking for ssize_t... " >&6; }
15815 if test "${gt_cv_ssize_t+set}" = set; then :
15816 $as_echo_n "(cached) " >&6
15817 else
15818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15819 /* end confdefs.h. */
15820 #include <sys/types.h>
15821 int
15822 main ()
15823 {
15824 int x = sizeof (ssize_t *) + sizeof (ssize_t);
15825 return !x;
15826 ;
15827 return 0;
15828 }
15829 _ACEOF
15830 if ac_fn_c_try_compile "$LINENO"; then :
15831 gt_cv_ssize_t=yes
15832 else
15833 gt_cv_ssize_t=no
15834 fi
15835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15836 fi
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
15838 $as_echo "$gt_cv_ssize_t" >&6; }
15839 if test $gt_cv_ssize_t = no; then
15840
15841 $as_echo "#define ssize_t int" >>confdefs.h
15842
15843 fi
15844
15845
15846
15847
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on directories" >&5
15849 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
15850 if test "${gl_cv_func_stat_dir_slash+set}" = set; then :
15851 $as_echo_n "(cached) " >&6
15852 else
15853 if test "$cross_compiling" = yes; then :
15854 case $host_os in
15855 mingw*) gl_cv_func_stat_dir_slash="guessing no";;
15856 *) gl_cv_func_stat_dir_slash="guessing yes";;
15857 esac
15858 else
15859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15860 /* end confdefs.h. */
15861 #include <sys/stat.h>
15862
15863 int
15864 main ()
15865 {
15866 struct stat st; return stat (".", &st) != stat ("./", &st);
15867 ;
15868 return 0;
15869 }
15870 _ACEOF
15871 if ac_fn_c_try_run "$LINENO"; then :
15872 gl_cv_func_stat_dir_slash=yes
15873 else
15874 gl_cv_func_stat_dir_slash=no
15875 fi
15876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15877 conftest.$ac_objext conftest.beam conftest.$ac_ext
15878 fi
15879
15880 fi
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_dir_slash" >&5
15882 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
15884 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
15885 if test "${gl_cv_func_stat_file_slash+set}" = set; then :
15886 $as_echo_n "(cached) " >&6
15887 else
15888 touch conftest.tmp
15889 # Assume that if we have lstat, we can also check symlinks.
15890 if test $ac_cv_func_lstat = yes; then
15891 ln -s conftest.tmp conftest.lnk
15892 fi
15893 if test "$cross_compiling" = yes; then :
15894 case "$host_os" in
15895 # Guess yes on glibc systems.
15896 *-gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
15897 # If we don't know, assume the worst.
15898 *) gl_cv_func_stat_file_slash="guessing no" ;;
15899 esac
15900
15901 else
15902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15903 /* end confdefs.h. */
15904 #include <sys/stat.h>
15905
15906 int
15907 main ()
15908 {
15909 int result = 0;
15910 struct stat st;
15911 if (!stat ("conftest.tmp/", &st))
15912 result |= 1;
15913 #if HAVE_LSTAT
15914 if (!stat ("conftest.lnk/", &st))
15915 result |= 2;
15916 #endif
15917 return result;
15918
15919 ;
15920 return 0;
15921 }
15922 _ACEOF
15923 if ac_fn_c_try_run "$LINENO"; then :
15924 gl_cv_func_stat_file_slash=yes
15925 else
15926 gl_cv_func_stat_file_slash=no
15927 fi
15928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15929 conftest.$ac_objext conftest.beam conftest.$ac_ext
15930 fi
15931
15932 rm -f conftest.tmp conftest.lnk
15933 fi
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
15935 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
15936 case $gl_cv_func_stat_dir_slash in
15937 *no) REPLACE_STAT=1
15938
15939 $as_echo "#define REPLACE_FUNC_STAT_DIR 1" >>confdefs.h
15940 ;;
15941 esac
15942 case $gl_cv_func_stat_file_slash in
15943 *no) REPLACE_STAT=1
15944
15945 $as_echo "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
15946 ;;
15947 esac
15948
15949 if test $REPLACE_STAT = 1; then
15950
15951
15952
15953
15954
15955
15956
15957
15958 gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
15959
15960 :
15961 fi
15962
15963
15964
15965
15966
15967 GNULIB_STAT=1
15968
15969
15970
15971
15972
15973 $as_echo "#define GNULIB_TEST_STAT 1" >>confdefs.h
15974
15975
15976
15977
15978
15979
15980 # Define two additional variables used in the Makefile substitution.
15981
15982 if test "$ac_cv_header_stdbool_h" = yes; then
15983 STDBOOL_H=''
15984 else
15985 STDBOOL_H='stdbool.h'
15986 fi
15987
15988 if test -n "$STDBOOL_H"; then
15989 GL_GENERATE_STDBOOL_H_TRUE=
15990 GL_GENERATE_STDBOOL_H_FALSE='#'
15991 else
15992 GL_GENERATE_STDBOOL_H_TRUE='#'
15993 GL_GENERATE_STDBOOL_H_FALSE=
15994 fi
15995
15996
15997 if test "$ac_cv_type__Bool" = yes; then
15998 HAVE__BOOL=1
15999 else
16000 HAVE__BOOL=0
16001 fi
16002
16003
16004
16005
16006
16007 STDDEF_H=
16008 if test $gt_cv_c_wchar_t = no; then
16009 HAVE_WCHAR_T=0
16010 STDDEF_H=stddef.h
16011 fi
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
16013 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
16014 if test "${gl_cv_decl_null_works+set}" = set; then :
16015 $as_echo_n "(cached) " >&6
16016 else
16017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16018 /* end confdefs.h. */
16019 #include <stddef.h>
16020 int test[2 * (sizeof NULL == sizeof (void *)) -1];
16021
16022 int
16023 main ()
16024 {
16025
16026 ;
16027 return 0;
16028 }
16029 _ACEOF
16030 if ac_fn_c_try_compile "$LINENO"; then :
16031 gl_cv_decl_null_works=yes
16032 else
16033 gl_cv_decl_null_works=no
16034 fi
16035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16036 fi
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
16038 $as_echo "$gl_cv_decl_null_works" >&6; }
16039 if test $gl_cv_decl_null_works = no; then
16040 REPLACE_NULL=1
16041 STDDEF_H=stddef.h
16042 fi
16043
16044 if test -n "$STDDEF_H"; then
16045 GL_GENERATE_STDDEF_H_TRUE=
16046 GL_GENERATE_STDDEF_H_FALSE='#'
16047 else
16048 GL_GENERATE_STDDEF_H_TRUE='#'
16049 GL_GENERATE_STDDEF_H_FALSE=
16050 fi
16051
16052 if test -n "$STDDEF_H"; then
16053
16054
16055
16056
16057
16058
16059
16060
16061 if test $gl_cv_have_include_next = yes; then
16062 gl_cv_next_stddef_h='<'stddef.h'>'
16063 else
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
16065 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
16066 if test "${gl_cv_next_stddef_h+set}" = set; then :
16067 $as_echo_n "(cached) " >&6
16068 else
16069
16070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16071 /* end confdefs.h. */
16072 #include <stddef.h>
16073
16074 _ACEOF
16075 case "$host_os" in
16076 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16077 *) gl_absname_cpp="$ac_cpp" ;;
16078 esac
16079
16080 case "$host_os" in
16081 mingw*)
16082 gl_dirsep_regex='[/\\]'
16083 ;;
16084 *)
16085 gl_dirsep_regex='\/'
16086 ;;
16087 esac
16088 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16089
16090 gl_header_literal_regex=`echo 'stddef.h' \
16091 | sed -e "$gl_make_literal_regex_sed"`
16092 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16093 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16094 s|^/[^/]|//&|
16095 p
16096 q
16097 }'
16098 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16099 sed -n "$gl_absolute_header_sed"`'"'
16100
16101
16102 fi
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
16104 $as_echo "$gl_cv_next_stddef_h" >&6; }
16105 fi
16106 NEXT_STDDEF_H=$gl_cv_next_stddef_h
16107
16108 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16109 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16110 gl_next_as_first_directive='<'stddef.h'>'
16111 else
16112 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16113 gl_next_as_first_directive=$gl_cv_next_stddef_h
16114 fi
16115 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
16116
16117
16118
16119
16120 fi
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131
16132
16133 if test $gl_cv_have_include_next = yes; then
16134 gl_cv_next_stdio_h='<'stdio.h'>'
16135 else
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
16137 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
16138 if test "${gl_cv_next_stdio_h+set}" = set; then :
16139 $as_echo_n "(cached) " >&6
16140 else
16141
16142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16143 /* end confdefs.h. */
16144 #include <stdio.h>
16145
16146 _ACEOF
16147 case "$host_os" in
16148 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16149 *) gl_absname_cpp="$ac_cpp" ;;
16150 esac
16151
16152 case "$host_os" in
16153 mingw*)
16154 gl_dirsep_regex='[/\\]'
16155 ;;
16156 *)
16157 gl_dirsep_regex='\/'
16158 ;;
16159 esac
16160 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16161
16162 gl_header_literal_regex=`echo 'stdio.h' \
16163 | sed -e "$gl_make_literal_regex_sed"`
16164 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16165 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16166 s|^/[^/]|//&|
16167 p
16168 q
16169 }'
16170 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16171 sed -n "$gl_absolute_header_sed"`'"'
16172
16173
16174 fi
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
16176 $as_echo "$gl_cv_next_stdio_h" >&6; }
16177 fi
16178 NEXT_STDIO_H=$gl_cv_next_stdio_h
16179
16180 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16181 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16182 gl_next_as_first_directive='<'stdio.h'>'
16183 else
16184 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16185 gl_next_as_first_directive=$gl_cv_next_stdio_h
16186 fi
16187 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
16188
16189
16190
16191
16192
16193 GNULIB_FSCANF=1
16194
16195
16196 cat >>confdefs.h <<_ACEOF
16197 #define GNULIB_FSCANF 1
16198 _ACEOF
16199
16200
16201 GNULIB_SCANF=1
16202
16203
16204 cat >>confdefs.h <<_ACEOF
16205 #define GNULIB_SCANF 1
16206 _ACEOF
16207
16208
16209 GNULIB_FGETC=1
16210 GNULIB_GETC=1
16211 GNULIB_GETCHAR=1
16212 GNULIB_FGETS=1
16213 GNULIB_FREAD=1
16214
16215
16216 GNULIB_FPRINTF=1
16217 GNULIB_PRINTF=1
16218 GNULIB_VFPRINTF=1
16219 GNULIB_VPRINTF=1
16220 GNULIB_FPUTC=1
16221 GNULIB_PUTC=1
16222 GNULIB_PUTCHAR=1
16223 GNULIB_FPUTS=1
16224 GNULIB_PUTS=1
16225 GNULIB_FWRITE=1
16226
16227
16228
16229
16230 for gl_func in dprintf fpurge fseeko ftello getdelim getline gets pclose popen renameat snprintf tmpfile vdprintf vsnprintf; do
16231 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16233 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16234 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
16235 $as_echo_n "(cached) " >&6
16236 else
16237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16238 /* end confdefs.h. */
16239 #include <stdio.h>
16240
16241 int
16242 main ()
16243 {
16244 #undef $gl_func
16245 (void) $gl_func;
16246 ;
16247 return 0;
16248 }
16249 _ACEOF
16250 if ac_fn_c_try_compile "$LINENO"; then :
16251 eval "$as_gl_Symbol=yes"
16252 else
16253 eval "$as_gl_Symbol=no"
16254 fi
16255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16256 fi
16257 eval ac_res=\$$as_gl_Symbol
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16259 $as_echo "$ac_res" >&6; }
16260 eval as_val=\$$as_gl_Symbol
16261 if test "x$as_val" = x""yes; then :
16262 cat >>confdefs.h <<_ACEOF
16263 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16264 _ACEOF
16265
16266 eval ac_cv_have_decl_$gl_func=yes
16267 fi
16268 done
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281 if test $gl_cv_have_include_next = yes; then
16282 gl_cv_next_stdlib_h='<'stdlib.h'>'
16283 else
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
16285 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
16286 if test "${gl_cv_next_stdlib_h+set}" = set; then :
16287 $as_echo_n "(cached) " >&6
16288 else
16289
16290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16291 /* end confdefs.h. */
16292 #include <stdlib.h>
16293
16294 _ACEOF
16295 case "$host_os" in
16296 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16297 *) gl_absname_cpp="$ac_cpp" ;;
16298 esac
16299
16300 case "$host_os" in
16301 mingw*)
16302 gl_dirsep_regex='[/\\]'
16303 ;;
16304 *)
16305 gl_dirsep_regex='\/'
16306 ;;
16307 esac
16308 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16309
16310 gl_header_literal_regex=`echo 'stdlib.h' \
16311 | sed -e "$gl_make_literal_regex_sed"`
16312 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16313 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16314 s|^/[^/]|//&|
16315 p
16316 q
16317 }'
16318 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16319 sed -n "$gl_absolute_header_sed"`'"'
16320
16321
16322 fi
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
16324 $as_echo "$gl_cv_next_stdlib_h" >&6; }
16325 fi
16326 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
16327
16328 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16329 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16330 gl_next_as_first_directive='<'stdlib.h'>'
16331 else
16332 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16333 gl_next_as_first_directive=$gl_cv_next_stdlib_h
16334 fi
16335 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
16336
16337
16338
16339
16340
16341
16342 for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt initstate initstate_r mkdtemp mkostemp mkostemps mkstemp mkstemps posix_openpt ptsname ptsname_r random random_r realpath rpmatch setenv setstate setstate_r srandom srandom_r strtod strtoll strtoull unlockpt unsetenv; do
16343 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16345 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16346 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
16347 $as_echo_n "(cached) " >&6
16348 else
16349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16350 /* end confdefs.h. */
16351 #include <stdlib.h>
16352 #if HAVE_SYS_LOADAVG_H
16353 # include <sys/loadavg.h>
16354 #endif
16355 #if HAVE_RANDOM_H
16356 # include <random.h>
16357 #endif
16358
16359 int
16360 main ()
16361 {
16362 #undef $gl_func
16363 (void) $gl_func;
16364 ;
16365 return 0;
16366 }
16367 _ACEOF
16368 if ac_fn_c_try_compile "$LINENO"; then :
16369 eval "$as_gl_Symbol=yes"
16370 else
16371 eval "$as_gl_Symbol=no"
16372 fi
16373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16374 fi
16375 eval ac_res=\$$as_gl_Symbol
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16377 $as_echo "$ac_res" >&6; }
16378 eval as_val=\$$as_gl_Symbol
16379 if test "x$as_val" = x""yes; then :
16380 cat >>confdefs.h <<_ACEOF
16381 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16382 _ACEOF
16383
16384 eval ac_cv_have_decl_$gl_func=yes
16385 fi
16386 done
16387
16388
16389
16390
16391
16392
16393
16394 if test $REPLACE_STRSTR = 0; then
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
16396 $as_echo_n "checking whether strstr works in linear time... " >&6; }
16397 if test "${gl_cv_func_strstr_linear+set}" = set; then :
16398 $as_echo_n "(cached) " >&6
16399 else
16400 if test "$cross_compiling" = yes; then :
16401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16402 /* end confdefs.h. */
16403
16404 #include <features.h>
16405 #ifdef __GNU_LIBRARY__
16406 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
16407 && !(defined __i386__ || defined __x86_64__) \
16408 && !defined __UCLIBC__
16409 Lucky user
16410 #endif
16411 #endif
16412 #ifdef __CYGWIN__
16413 #include <cygwin/version.h>
16414 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
16415 Lucky user
16416 #endif
16417 #endif
16418
16419 _ACEOF
16420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16421 $EGREP "Lucky user" >/dev/null 2>&1; then :
16422 gl_cv_func_strstr_linear="guessing yes"
16423 else
16424 gl_cv_func_strstr_linear="guessing no"
16425 fi
16426 rm -f conftest*
16427
16428
16429 else
16430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16431 /* end confdefs.h. */
16432
16433 #include <signal.h> /* for signal */
16434 #include <string.h> /* for strstr */
16435 #include <stdlib.h> /* for malloc */
16436 #include <unistd.h> /* for alarm */
16437 static void quit (int sig) { exit (sig + 128); }
16438
16439 int
16440 main ()
16441 {
16442
16443 int result = 0;
16444 size_t m = 1000000;
16445 char *haystack = (char *) malloc (2 * m + 2);
16446 char *needle = (char *) malloc (m + 2);
16447 /* Failure to compile this test due to missing alarm is okay,
16448 since all such platforms (mingw) also have quadratic strstr. */
16449 signal (SIGALRM, quit);
16450 alarm (5);
16451 /* Check for quadratic performance. */
16452 if (haystack && needle)
16453 {
16454 memset (haystack, 'A', 2 * m);
16455 haystack[2 * m] = 'B';
16456 haystack[2 * m + 1] = 0;
16457 memset (needle, 'A', m);
16458 needle[m] = 'B';
16459 needle[m + 1] = 0;
16460 if (!strstr (haystack, needle))
16461 result |= 1;
16462 }
16463 return result;
16464
16465 ;
16466 return 0;
16467 }
16468 _ACEOF
16469 if ac_fn_c_try_run "$LINENO"; then :
16470 gl_cv_func_strstr_linear=yes
16471 else
16472 gl_cv_func_strstr_linear=no
16473 fi
16474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16475 conftest.$ac_objext conftest.beam conftest.$ac_ext
16476 fi
16477
16478
16479 fi
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
16481 $as_echo "$gl_cv_func_strstr_linear" >&6; }
16482 case "$gl_cv_func_strstr_linear" in
16483 *yes) ;;
16484 *)
16485 REPLACE_STRSTR=1
16486 ;;
16487 esac
16488 fi
16489
16490 if test $REPLACE_STRSTR = 1; then
16491
16492
16493
16494
16495
16496
16497
16498
16499 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
16500
16501 fi
16502
16503
16504
16505 if test "$gl_cv_func_memchr_works" != yes; then
16506 REPLACE_STRSTR=1
16507 else
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
16509 $as_echo_n "checking whether strstr works... " >&6; }
16510 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
16511 $as_echo_n "(cached) " >&6
16512 else
16513 if test "$cross_compiling" = yes; then :
16514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16515 /* end confdefs.h. */
16516
16517 #ifdef __GNU_LIBRARY__
16518 #include <features.h>
16519 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
16520 || defined __UCLIBC__
16521 Lucky user
16522 #endif
16523 #elif defined __CYGWIN__
16524 #include <cygwin/version.h>
16525 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
16526 Lucky user
16527 #endif
16528 #else
16529 Lucky user
16530 #endif
16531
16532 _ACEOF
16533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16534 $EGREP "Lucky user" >/dev/null 2>&1; then :
16535 gl_cv_func_strstr_works_always="guessing yes"
16536 else
16537 gl_cv_func_strstr_works_always="guessing no"
16538 fi
16539 rm -f conftest*
16540
16541
16542 else
16543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16544 /* end confdefs.h. */
16545
16546 #include <string.h> /* for strstr */
16547 #define P "_EF_BF_BD"
16548 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
16549 #define NEEDLE P P P P P
16550
16551 int
16552 main ()
16553 {
16554 return !!strstr (HAYSTACK, NEEDLE);
16555
16556 ;
16557 return 0;
16558 }
16559 _ACEOF
16560 if ac_fn_c_try_run "$LINENO"; then :
16561 gl_cv_func_strstr_works_always=yes
16562 else
16563 gl_cv_func_strstr_works_always=no
16564 fi
16565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16566 conftest.$ac_objext conftest.beam conftest.$ac_ext
16567 fi
16568
16569
16570 fi
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
16572 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
16573 case "$gl_cv_func_strstr_works_always" in
16574 *yes) ;;
16575 *)
16576 REPLACE_STRSTR=1
16577 ;;
16578 esac
16579 fi
16580
16581 if test $REPLACE_STRSTR = 1; then
16582
16583
16584
16585
16586
16587
16588
16589
16590 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
16591
16592 fi
16593
16594
16595
16596
16597
16598 GNULIB_STRSTR=1
16599
16600
16601
16602
16603
16604 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
16605
16606
16607
16608
16609
16610
16611
16612 for ac_func in strtok_r
16613 do :
16614 ac_fn_c_check_func "$LINENO" "strtok_r" "ac_cv_func_strtok_r"
16615 if test "x$ac_cv_func_strtok_r" = x""yes; then :
16616 cat >>confdefs.h <<_ACEOF
16617 #define HAVE_STRTOK_R 1
16618 _ACEOF
16619
16620 fi
16621 done
16622
16623 if test $ac_cv_func_strtok_r = yes; then
16624 HAVE_STRTOK_R=1
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strtok_r works" >&5
16626 $as_echo_n "checking whether strtok_r works... " >&6; }
16627 if test "${gl_cv_func_strtok_r_works+set}" = set; then :
16628 $as_echo_n "(cached) " >&6
16629 else
16630 if test "$cross_compiling" = yes; then :
16631
16632 case "$host_os" in
16633 # Guess no on glibc systems.
16634 *-gnu*) gl_cv_func_strtok_r_works="guessing no";;
16635 *) gl_cv_func_strtok_r_works="guessing yes";;
16636 esac
16637
16638 else
16639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16640 /* end confdefs.h. */
16641
16642 #ifndef __OPTIMIZE__
16643 # define __OPTIMIZE__ 1
16644 #endif
16645 #undef __OPTIMIZE_SIZE__
16646 #undef __NO_INLINE__
16647 #include <stdlib.h>
16648 #include <string.h>
16649
16650 int
16651 main ()
16652 {
16653 static const char dummy[] = "\177\01a";
16654 char delimiters[] = "xxxxxxxx";
16655 char *save_ptr = (char *) dummy;
16656 strtok_r (delimiters, "x", &save_ptr);
16657 strtok_r (NULL, "x", &save_ptr);
16658 return 0;
16659
16660 ;
16661 return 0;
16662 }
16663
16664 _ACEOF
16665 if ac_fn_c_try_run "$LINENO"; then :
16666 gl_cv_func_strtok_r_works=yes
16667 else
16668 gl_cv_func_strtok_r_works=no
16669 fi
16670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16671 conftest.$ac_objext conftest.beam conftest.$ac_ext
16672 fi
16673
16674
16675 fi
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strtok_r_works" >&5
16677 $as_echo "$gl_cv_func_strtok_r_works" >&6; }
16678 case "$gl_cv_func_strtok_r_works" in
16679 *no)
16680 UNDEFINE_STRTOK_R=1
16681 ;;
16682 esac
16683 else
16684 HAVE_STRTOK_R=0
16685 fi
16686
16687 if test $ac_cv_have_decl_strtok_r = no; then
16688 HAVE_DECL_STRTOK_R=0
16689 fi
16690
16691 if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then
16692
16693
16694
16695
16696
16697
16698
16699
16700 gl_LIBOBJS="$gl_LIBOBJS strtok_r.$ac_objext"
16701
16702
16703 :
16704
16705 fi
16706
16707
16708
16709
16710
16711 GNULIB_STRTOK_R=1
16712
16713
16714
16715
16716
16717 $as_echo "#define GNULIB_TEST_STRTOK_R 1" >>confdefs.h
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735 if test $gl_cv_have_include_next = yes; then
16736 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
16737 else
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
16739 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
16740 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
16741 $as_echo_n "(cached) " >&6
16742 else
16743
16744 if test $ac_cv_header_sys_stat_h = yes; then
16745
16746
16747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16748 /* end confdefs.h. */
16749 #include <sys/stat.h>
16750
16751 _ACEOF
16752 case "$host_os" in
16753 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16754 *) gl_absname_cpp="$ac_cpp" ;;
16755 esac
16756
16757 case "$host_os" in
16758 mingw*)
16759 gl_dirsep_regex='[/\\]'
16760 ;;
16761 *)
16762 gl_dirsep_regex='\/'
16763 ;;
16764 esac
16765 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16766
16767 gl_header_literal_regex=`echo 'sys/stat.h' \
16768 | sed -e "$gl_make_literal_regex_sed"`
16769 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16770 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16771 s|^/[^/]|//&|
16772 p
16773 q
16774 }'
16775 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16776 sed -n "$gl_absolute_header_sed"`'"'
16777 else
16778 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
16779 fi
16780
16781
16782 fi
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
16784 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
16785 fi
16786 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
16787
16788 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16789 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16790 gl_next_as_first_directive='<'sys/stat.h'>'
16791 else
16792 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16793 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
16794 fi
16795 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
16808
16809 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
16810
16811 fi
16812
16813 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
16814 #include <sys/stat.h>
16815 "
16816 if test "x$ac_cv_type_nlink_t" = x""yes; then :
16817
16818 else
16819
16820 $as_echo "#define nlink_t int" >>confdefs.h
16821
16822 fi
16823
16824
16825
16826 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
16827 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
16829 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16830 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
16831 $as_echo_n "(cached) " >&6
16832 else
16833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16834 /* end confdefs.h. */
16835 #include <sys/stat.h>
16836
16837 int
16838 main ()
16839 {
16840 #undef $gl_func
16841 (void) $gl_func;
16842 ;
16843 return 0;
16844 }
16845 _ACEOF
16846 if ac_fn_c_try_compile "$LINENO"; then :
16847 eval "$as_gl_Symbol=yes"
16848 else
16849 eval "$as_gl_Symbol=no"
16850 fi
16851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16852 fi
16853 eval ac_res=\$$as_gl_Symbol
16854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16855 $as_echo "$ac_res" >&6; }
16856 eval as_val=\$$as_gl_Symbol
16857 if test "x$as_val" = x""yes; then :
16858 cat >>confdefs.h <<_ACEOF
16859 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16860 _ACEOF
16861
16862 eval ac_cv_have_decl_$gl_func=yes
16863 fi
16864 done
16865
16866
16867
16868
16869
16870
16871
16872
16873
16874
16875
16876
16877
16878
16879 if test $gl_cv_have_include_next = yes; then
16880 gl_cv_next_sys_types_h='<'sys/types.h'>'
16881 else
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
16883 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
16884 if test "${gl_cv_next_sys_types_h+set}" = set; then :
16885 $as_echo_n "(cached) " >&6
16886 else
16887
16888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16889 /* end confdefs.h. */
16890 #include <sys/types.h>
16891
16892 _ACEOF
16893 case "$host_os" in
16894 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16895 *) gl_absname_cpp="$ac_cpp" ;;
16896 esac
16897
16898 case "$host_os" in
16899 mingw*)
16900 gl_dirsep_regex='[/\\]'
16901 ;;
16902 *)
16903 gl_dirsep_regex='\/'
16904 ;;
16905 esac
16906 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16907
16908 gl_header_literal_regex=`echo 'sys/types.h' \
16909 | sed -e "$gl_make_literal_regex_sed"`
16910 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16911 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16912 s|^/[^/]|//&|
16913 p
16914 q
16915 }'
16916 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16917 sed -n "$gl_absolute_header_sed"`'"'
16918
16919
16920 fi
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
16922 $as_echo "$gl_cv_next_sys_types_h" >&6; }
16923 fi
16924 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
16925
16926 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16927 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16928 gl_next_as_first_directive='<'sys/types.h'>'
16929 else
16930 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16931 gl_next_as_first_directive=$gl_cv_next_sys_types_h
16932 fi
16933 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958
16959
16960
16961 if test $gl_cv_have_include_next = yes; then
16962 gl_cv_next_unistd_h='<'unistd.h'>'
16963 else
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
16965 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
16966 if test "${gl_cv_next_unistd_h+set}" = set; then :
16967 $as_echo_n "(cached) " >&6
16968 else
16969
16970 if test $ac_cv_header_unistd_h = yes; then
16971
16972
16973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16974 /* end confdefs.h. */
16975 #include <unistd.h>
16976
16977 _ACEOF
16978 case "$host_os" in
16979 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16980 *) gl_absname_cpp="$ac_cpp" ;;
16981 esac
16982
16983 case "$host_os" in
16984 mingw*)
16985 gl_dirsep_regex='[/\\]'
16986 ;;
16987 *)
16988 gl_dirsep_regex='\/'
16989 ;;
16990 esac
16991 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16992
16993 gl_header_literal_regex=`echo 'unistd.h' \
16994 | sed -e "$gl_make_literal_regex_sed"`
16995 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16996 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16997 s|^/[^/]|//&|
16998 p
16999 q
17000 }'
17001 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17002 sed -n "$gl_absolute_header_sed"`'"'
17003 else
17004 gl_cv_next_unistd_h='<'unistd.h'>'
17005 fi
17006
17007
17008 fi
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
17010 $as_echo "$gl_cv_next_unistd_h" >&6; }
17011 fi
17012 NEXT_UNISTD_H=$gl_cv_next_unistd_h
17013
17014 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17015 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17016 gl_next_as_first_directive='<'unistd.h'>'
17017 else
17018 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17019 gl_next_as_first_directive=$gl_cv_next_unistd_h
17020 fi
17021 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
17022
17023
17024
17025
17026 if test $ac_cv_header_unistd_h = yes; then
17027 HAVE_UNISTD_H=1
17028 else
17029 HAVE_UNISTD_H=0
17030 fi
17031
17032
17033
17034
17035
17036
17037
17038 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
17039 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17041 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17042 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17043 $as_echo_n "(cached) " >&6
17044 else
17045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17046 /* end confdefs.h. */
17047
17048 #if HAVE_UNISTD_H
17049 # include <unistd.h>
17050 #endif
17051 /* Some systems declare various items in the wrong headers. */
17052 #if !(defined __GLIBC__ && !defined __UCLIBC__)
17053 # include <fcntl.h>
17054 # include <stdio.h>
17055 # include <stdlib.h>
17056 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
17057 # include <io.h>
17058 # endif
17059 #endif
17060
17061 int
17062 main ()
17063 {
17064 #undef $gl_func
17065 (void) $gl_func;
17066 ;
17067 return 0;
17068 }
17069 _ACEOF
17070 if ac_fn_c_try_compile "$LINENO"; then :
17071 eval "$as_gl_Symbol=yes"
17072 else
17073 eval "$as_gl_Symbol=no"
17074 fi
17075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17076 fi
17077 eval ac_res=\$$as_gl_Symbol
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17079 $as_echo "$ac_res" >&6; }
17080 eval as_val=\$$as_gl_Symbol
17081 if test "x$as_val" = x""yes; then :
17082 cat >>confdefs.h <<_ACEOF
17083 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17084 _ACEOF
17085
17086 eval ac_cv_have_decl_$gl_func=yes
17087 fi
17088 done
17089
17090
17091
17092
17093
17094
17095
17096
17097
17098
17099
17100
17101
17102
17103 if test $gl_cv_have_include_next = yes; then
17104 gl_cv_next_wchar_h='<'wchar.h'>'
17105 else
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
17107 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
17108 if test "${gl_cv_next_wchar_h+set}" = set; then :
17109 $as_echo_n "(cached) " >&6
17110 else
17111
17112 if test $ac_cv_header_wchar_h = yes; then
17113
17114
17115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17116 /* end confdefs.h. */
17117 #include <wchar.h>
17118
17119 _ACEOF
17120 case "$host_os" in
17121 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17122 *) gl_absname_cpp="$ac_cpp" ;;
17123 esac
17124
17125 case "$host_os" in
17126 mingw*)
17127 gl_dirsep_regex='[/\\]'
17128 ;;
17129 *)
17130 gl_dirsep_regex='\/'
17131 ;;
17132 esac
17133 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17134
17135 gl_header_literal_regex=`echo 'wchar.h' \
17136 | sed -e "$gl_make_literal_regex_sed"`
17137 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17138 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17139 s|^/[^/]|//&|
17140 p
17141 q
17142 }'
17143 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17144 sed -n "$gl_absolute_header_sed"`'"'
17145 else
17146 gl_cv_next_wchar_h='<'wchar.h'>'
17147 fi
17148
17149
17150 fi
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
17152 $as_echo "$gl_cv_next_wchar_h" >&6; }
17153 fi
17154 NEXT_WCHAR_H=$gl_cv_next_wchar_h
17155
17156 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17157 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17158 gl_next_as_first_directive='<'wchar.h'>'
17159 else
17160 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17161 gl_next_as_first_directive=$gl_cv_next_wchar_h
17162 fi
17163 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
17164
17165
17166
17167
17168 if test $ac_cv_header_wchar_h = yes; then
17169 HAVE_WCHAR_H=1
17170 else
17171 HAVE_WCHAR_H=0
17172 fi
17173
17174
17175
17176
17177
17178 if test $gt_cv_c_wint_t = yes; then
17179 HAVE_WINT_T=1
17180 else
17181 HAVE_WINT_T=0
17182 fi
17183
17184
17185
17186 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
17187 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17189 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17190 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17191 $as_echo_n "(cached) " >&6
17192 else
17193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17194 /* end confdefs.h. */
17195
17196 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17197 <wchar.h>.
17198 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17199 included before <wchar.h>. */
17200 #if !(defined __GLIBC__ && !defined __UCLIBC__)
17201 # include <stddef.h>
17202 # include <stdio.h>
17203 # include <time.h>
17204 #endif
17205 #include <wchar.h>
17206
17207 int
17208 main ()
17209 {
17210 #undef $gl_func
17211 (void) $gl_func;
17212 ;
17213 return 0;
17214 }
17215 _ACEOF
17216 if ac_fn_c_try_compile "$LINENO"; then :
17217 eval "$as_gl_Symbol=yes"
17218 else
17219 eval "$as_gl_Symbol=no"
17220 fi
17221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17222 fi
17223 eval ac_res=\$$as_gl_Symbol
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17225 $as_echo "$ac_res" >&6; }
17226 eval as_val=\$$as_gl_Symbol
17227 if test "x$as_val" = x""yes; then :
17228 cat >>confdefs.h <<_ACEOF
17229 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17230 _ACEOF
17231
17232 eval ac_cv_have_decl_$gl_func=yes
17233 fi
17234 done
17235
17236
17237
17238
17239
17240
17241
17242 if test $ac_cv_func_iswcntrl = yes; then
17243 HAVE_ISWCNTRL=1
17244 else
17245 HAVE_ISWCNTRL=0
17246 fi
17247
17248
17249
17250 if test $gt_cv_c_wint_t = yes; then
17251 HAVE_WINT_T=1
17252 else
17253 HAVE_WINT_T=0
17254 fi
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266 if test $gl_cv_have_include_next = yes; then
17267 gl_cv_next_wctype_h='<'wctype.h'>'
17268 else
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
17270 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
17271 if test "${gl_cv_next_wctype_h+set}" = set; then :
17272 $as_echo_n "(cached) " >&6
17273 else
17274
17275 if test $ac_cv_header_wctype_h = yes; then
17276
17277
17278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17279 /* end confdefs.h. */
17280 #include <wctype.h>
17281
17282 _ACEOF
17283 case "$host_os" in
17284 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17285 *) gl_absname_cpp="$ac_cpp" ;;
17286 esac
17287
17288 case "$host_os" in
17289 mingw*)
17290 gl_dirsep_regex='[/\\]'
17291 ;;
17292 *)
17293 gl_dirsep_regex='\/'
17294 ;;
17295 esac
17296 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17297
17298 gl_header_literal_regex=`echo 'wctype.h' \
17299 | sed -e "$gl_make_literal_regex_sed"`
17300 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17301 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17302 s|^/[^/]|//&|
17303 p
17304 q
17305 }'
17306 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17307 sed -n "$gl_absolute_header_sed"`'"'
17308 else
17309 gl_cv_next_wctype_h='<'wctype.h'>'
17310 fi
17311
17312
17313 fi
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
17315 $as_echo "$gl_cv_next_wctype_h" >&6; }
17316 fi
17317 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
17318
17319 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17320 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17321 gl_next_as_first_directive='<'wctype.h'>'
17322 else
17323 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17324 gl_next_as_first_directive=$gl_cv_next_wctype_h
17325 fi
17326 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
17327
17328
17329
17330
17331 if test $ac_cv_header_wctype_h = yes; then
17332 if test $ac_cv_func_iswcntrl = yes; then
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
17334 $as_echo_n "checking whether iswcntrl works... " >&6; }
17335 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
17336 $as_echo_n "(cached) " >&6
17337 else
17338
17339 if test "$cross_compiling" = yes; then :
17340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17341 /* end confdefs.h. */
17342 #include <stdlib.h>
17343 #if __GNU_LIBRARY__ == 1
17344 Linux libc5 i18n is broken.
17345 #endif
17346 int
17347 main ()
17348 {
17349
17350 ;
17351 return 0;
17352 }
17353 _ACEOF
17354 if ac_fn_c_try_compile "$LINENO"; then :
17355 gl_cv_func_iswcntrl_works="guessing yes"
17356 else
17357 gl_cv_func_iswcntrl_works="guessing no"
17358 fi
17359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17360
17361 else
17362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17363 /* end confdefs.h. */
17364
17365 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
17366 included before <wchar.h>.
17367 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
17368 must be included before <wchar.h>. */
17369 #include <stddef.h>
17370 #include <stdio.h>
17371 #include <time.h>
17372 #include <wchar.h>
17373 #include <wctype.h>
17374 int main () { return iswprint ('x') == 0; }
17375
17376 _ACEOF
17377 if ac_fn_c_try_run "$LINENO"; then :
17378 gl_cv_func_iswcntrl_works=yes
17379 else
17380 gl_cv_func_iswcntrl_works=no
17381 fi
17382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17383 conftest.$ac_objext conftest.beam conftest.$ac_ext
17384 fi
17385
17386
17387 fi
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
17389 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
17390 fi
17391 HAVE_WCTYPE_H=1
17392 else
17393 HAVE_WCTYPE_H=0
17394 fi
17395
17396
17397 case "$gl_cv_func_iswcntrl_works" in
17398 *yes) REPLACE_ISWCNTRL=0 ;;
17399 *) REPLACE_ISWCNTRL=1 ;;
17400 esac
17401
17402
17403 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
17404 :
17405 fi
17406
17407 if test $REPLACE_ISWCNTRL = 1; then
17408 REPLACE_TOWLOWER=1
17409 else
17410 for ac_func in towlower
17411 do :
17412 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
17413 if test "x$ac_cv_func_towlower" = x""yes; then :
17414 cat >>confdefs.h <<_ACEOF
17415 #define HAVE_TOWLOWER 1
17416 _ACEOF
17417
17418 fi
17419 done
17420
17421 if test $ac_cv_func_towlower = yes; then
17422 REPLACE_TOWLOWER=0
17423 else
17424 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
17425 included before <wchar.h>.
17426 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
17427 must be included before <wchar.h>. */
17428 #include <stddef.h>
17429 #include <stdio.h>
17430 #include <time.h>
17431 #include <wchar.h>
17432 #if HAVE_WCTYPE_H
17433 # include <wctype.h>
17434 #endif
17435
17436 "
17437 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
17438 ac_have_decl=1
17439 else
17440 ac_have_decl=0
17441 fi
17442
17443 cat >>confdefs.h <<_ACEOF
17444 #define HAVE_DECL_TOWLOWER $ac_have_decl
17445 _ACEOF
17446
17447 if test $ac_cv_have_decl_towlower = yes; then
17448 REPLACE_TOWLOWER=1
17449 else
17450 REPLACE_TOWLOWER=0
17451 fi
17452 fi
17453 fi
17454
17455
17456 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
17457 :
17458 fi
17459
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
17461 $as_echo_n "checking for wctype_t... " >&6; }
17462 if test "${gl_cv_type_wctype_t+set}" = set; then :
17463 $as_echo_n "(cached) " >&6
17464 else
17465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17466 /* end confdefs.h. */
17467 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
17468 included before <wchar.h>.
17469 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
17470 must be included before <wchar.h>. */
17471 #include <stddef.h>
17472 #include <stdio.h>
17473 #include <time.h>
17474 #include <wchar.h>
17475 #if HAVE_WCTYPE_H
17476 # include <wctype.h>
17477 #endif
17478 wctype_t a;
17479
17480 int
17481 main ()
17482 {
17483
17484 ;
17485 return 0;
17486 }
17487 _ACEOF
17488 if ac_fn_c_try_compile "$LINENO"; then :
17489 gl_cv_type_wctype_t=yes
17490 else
17491 gl_cv_type_wctype_t=no
17492 fi
17493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17494
17495 fi
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
17497 $as_echo "$gl_cv_type_wctype_t" >&6; }
17498 if test $gl_cv_type_wctype_t = no; then
17499 HAVE_WCTYPE_T=0
17500 fi
17501
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
17503 $as_echo_n "checking for wctrans_t... " >&6; }
17504 if test "${gl_cv_type_wctrans_t+set}" = set; then :
17505 $as_echo_n "(cached) " >&6
17506 else
17507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17508 /* end confdefs.h. */
17509 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
17510 included before <wchar.h>.
17511 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
17512 must be included before <wchar.h>. */
17513 #include <stddef.h>
17514 #include <stdio.h>
17515 #include <time.h>
17516 #include <wchar.h>
17517 #include <wctype.h>
17518 wctrans_t a;
17519
17520 int
17521 main ()
17522 {
17523
17524 ;
17525 return 0;
17526 }
17527 _ACEOF
17528 if ac_fn_c_try_compile "$LINENO"; then :
17529 gl_cv_type_wctrans_t=yes
17530 else
17531 gl_cv_type_wctrans_t=no
17532 fi
17533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17534
17535 fi
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
17537 $as_echo "$gl_cv_type_wctrans_t" >&6; }
17538 if test $gl_cv_type_wctrans_t = no; then
17539 HAVE_WCTRANS_T=0
17540 fi
17541
17542
17543 for gl_func in wctype iswctype wctrans towctrans ; do
17544 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
17546 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
17547 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
17548 $as_echo_n "(cached) " >&6
17549 else
17550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17551 /* end confdefs.h. */
17552
17553 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
17554 <wchar.h>.
17555 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17556 included before <wchar.h>. */
17557 #if !(defined __GLIBC__ && !defined __UCLIBC__)
17558 # include <stddef.h>
17559 # include <stdio.h>
17560 # include <time.h>
17561 # include <wchar.h>
17562 #endif
17563 #include <wctype.h>
17564
17565 int
17566 main ()
17567 {
17568 #undef $gl_func
17569 (void) $gl_func;
17570 ;
17571 return 0;
17572 }
17573 _ACEOF
17574 if ac_fn_c_try_compile "$LINENO"; then :
17575 eval "$as_gl_Symbol=yes"
17576 else
17577 eval "$as_gl_Symbol=no"
17578 fi
17579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17580 fi
17581 eval ac_res=\$$as_gl_Symbol
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17583 $as_echo "$ac_res" >&6; }
17584 eval as_val=\$$as_gl_Symbol
17585 if test "x$as_val" = x""yes; then :
17586 cat >>confdefs.h <<_ACEOF
17587 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
17588 _ACEOF
17589
17590 eval ac_cv_have_decl_$gl_func=yes
17591 fi
17592 done
17593
17594
17595 # End of code from modules
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605 gltests_libdeps=
17606 gltests_ltlibdeps=
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616 gl_source_base='tests'
17617 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
17618
17619 gl_module_indicator_condition=$gltests_WITNESS
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629 LIBGNU_LIBDEPS="$gl_libdeps"
17630
17631 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
17632
17633
17634
17635 # We don't use automake, but gnulib does. This line lets us generate
17636 # its Makefile.in.
17637 am__api_version='1.11'
17638
17639 # Find a good install program. We prefer a C program (faster),
17640 # so one script is as good as another. But avoid the broken or
17641 # incompatible versions:
17642 # SysV /etc/install, /usr/sbin/install
17643 # SunOS /usr/etc/install
17644 # IRIX /sbin/install
17645 # AIX /bin/install
17646 # AmigaOS /C/install, which installs bootblocks on floppy discs
17647 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
17648 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
17649 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
17650 # OS/2's system install, which has a completely different semantic
17651 # ./install, which can be erroneously created by make from ./install.sh.
17652 # Reject install programs that cannot install multiple files.
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
17654 $as_echo_n "checking for a BSD-compatible install... " >&6; }
17655 if test -z "$INSTALL"; then
17656 if test "${ac_cv_path_install+set}" = set; then :
17657 $as_echo_n "(cached) " >&6
17658 else
17659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17660 for as_dir in $PATH
17661 do
17662 IFS=$as_save_IFS
17663 test -z "$as_dir" && as_dir=.
17664 # Account for people who put trailing slashes in PATH elements.
17665 case $as_dir/ in #((
17666 ./ | .// | /[cC]/* | \
17667 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
17668 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
17669 /usr/ucb/* ) ;;
17670 *)
17671 # OSF1 and SCO ODT 3.0 have their own names for install.
17672 # Don't use installbsd from OSF since it installs stuff as root
17673 # by default.
17674 for ac_prog in ginstall scoinst install; do
17675 for ac_exec_ext in '' $ac_executable_extensions; do
17676 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
17677 if test $ac_prog = install &&
17678 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
17679 # AIX install. It has an incompatible calling convention.
17680 :
17681 elif test $ac_prog = install &&
17682 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
17683 # program-specific install script used by HP pwplus--don't use.
17684 :
17685 else
17686 rm -rf conftest.one conftest.two conftest.dir
17687 echo one > conftest.one
17688 echo two > conftest.two
17689 mkdir conftest.dir
17690 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
17691 test -s conftest.one && test -s conftest.two &&
17692 test -s conftest.dir/conftest.one &&
17693 test -s conftest.dir/conftest.two
17694 then
17695 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
17696 break 3
17697 fi
17698 fi
17699 fi
17700 done
17701 done
17702 ;;
17703 esac
17704
17705 done
17706 IFS=$as_save_IFS
17707
17708 rm -rf conftest.one conftest.two conftest.dir
17709
17710 fi
17711 if test "${ac_cv_path_install+set}" = set; then
17712 INSTALL=$ac_cv_path_install
17713 else
17714 # As a last resort, use the slow shell script. Don't cache a
17715 # value for INSTALL within a source directory, because that will
17716 # break other packages using the cache if that directory is
17717 # removed, or if the value is a relative name.
17718 INSTALL=$ac_install_sh
17719 fi
17720 fi
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
17722 $as_echo "$INSTALL" >&6; }
17723
17724 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
17725 # It thinks the first close brace ends the variable substitution.
17726 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
17727
17728 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
17729
17730 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
17731
17732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
17733 $as_echo_n "checking whether build environment is sane... " >&6; }
17734 # Just in case
17735 sleep 1
17736 echo timestamp > conftest.file
17737 # Reject unsafe characters in $srcdir or the absolute working directory
17738 # name. Accept space and tab only in the latter.
17739 am_lf='
17740 '
17741 case `pwd` in
17742 *[\\\"\#\$\&\'\`$am_lf]*)
17743 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
17744 esac
17745 case $srcdir in
17746 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
17747 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
17748 esac
17749
17750 # Do `set' in a subshell so we don't clobber the current shell's
17751 # arguments. Must try -L first in case configure is actually a
17752 # symlink; some systems play weird games with the mod time of symlinks
17753 # (eg FreeBSD returns the mod time of the symlink's containing
17754 # directory).
17755 if (
17756 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
17757 if test "$*" = "X"; then
17758 # -L didn't work.
17759 set X `ls -t "$srcdir/configure" conftest.file`
17760 fi
17761 rm -f conftest.file
17762 if test "$*" != "X $srcdir/configure conftest.file" \
17763 && test "$*" != "X conftest.file $srcdir/configure"; then
17764
17765 # If neither matched, then we have a broken ls. This can happen
17766 # if, for instance, CONFIG_SHELL is bash and it inherits a
17767 # broken ls alias from the environment. This has actually
17768 # happened. Such a system could not be considered "sane".
17769 as_fn_error "ls -t appears to fail. Make sure there is not a broken
17770 alias in your environment" "$LINENO" 5
17771 fi
17772
17773 test "$2" = conftest.file
17774 )
17775 then
17776 # Ok.
17777 :
17778 else
17779 as_fn_error "newly created file is older than distributed files!
17780 Check your system clock" "$LINENO" 5
17781 fi
17782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17783 $as_echo "yes" >&6; }
17784 test "$program_prefix" != NONE &&
17785 program_transform_name="s&^&$program_prefix&;$program_transform_name"
17786 # Use a double $ so make ignores it.
17787 test "$program_suffix" != NONE &&
17788 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
17789 # Double any \ or $.
17790 # By default was `s,x,x', remove it if useless.
17791 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
17792 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
17793
17794 # expand $ac_aux_dir to an absolute path
17795 am_aux_dir=`cd $ac_aux_dir && pwd`
17796
17797 if test x"${MISSING+set}" != xset; then
17798 case $am_aux_dir in
17799 *\ * | *\ *)
17800 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
17801 *)
17802 MISSING="\${SHELL} $am_aux_dir/missing" ;;
17803 esac
17804 fi
17805 # Use eval to expand $SHELL
17806 if eval "$MISSING --run true"; then
17807 am_missing_run="$MISSING --run "
17808 else
17809 am_missing_run=
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
17811 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
17812 fi
17813
17814 if test x"${install_sh}" != xset; then
17815 case $am_aux_dir in
17816 *\ * | *\ *)
17817 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
17818 *)
17819 install_sh="\${SHELL} $am_aux_dir/install-sh"
17820 esac
17821 fi
17822
17823 # Installed binaries are usually stripped using `strip' when the user
17824 # run `make install-strip'. However `strip' might not be the right
17825 # tool to use in cross-compilation environments, therefore Automake
17826 # will honor the `STRIP' environment variable to overrule this program.
17827 if test "$cross_compiling" != no; then
17828 if test -n "$ac_tool_prefix"; then
17829 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
17830 set dummy ${ac_tool_prefix}strip; ac_word=$2
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17832 $as_echo_n "checking for $ac_word... " >&6; }
17833 if test "${ac_cv_prog_STRIP+set}" = set; then :
17834 $as_echo_n "(cached) " >&6
17835 else
17836 if test -n "$STRIP"; then
17837 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
17838 else
17839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17840 for as_dir in $PATH
17841 do
17842 IFS=$as_save_IFS
17843 test -z "$as_dir" && as_dir=.
17844 for ac_exec_ext in '' $ac_executable_extensions; do
17845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17846 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
17847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17848 break 2
17849 fi
17850 done
17851 done
17852 IFS=$as_save_IFS
17853
17854 fi
17855 fi
17856 STRIP=$ac_cv_prog_STRIP
17857 if test -n "$STRIP"; then
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
17859 $as_echo "$STRIP" >&6; }
17860 else
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17862 $as_echo "no" >&6; }
17863 fi
17864
17865
17866 fi
17867 if test -z "$ac_cv_prog_STRIP"; then
17868 ac_ct_STRIP=$STRIP
17869 # Extract the first word of "strip", so it can be a program name with args.
17870 set dummy strip; ac_word=$2
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17872 $as_echo_n "checking for $ac_word... " >&6; }
17873 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
17874 $as_echo_n "(cached) " >&6
17875 else
17876 if test -n "$ac_ct_STRIP"; then
17877 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
17878 else
17879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17880 for as_dir in $PATH
17881 do
17882 IFS=$as_save_IFS
17883 test -z "$as_dir" && as_dir=.
17884 for ac_exec_ext in '' $ac_executable_extensions; do
17885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17886 ac_cv_prog_ac_ct_STRIP="strip"
17887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17888 break 2
17889 fi
17890 done
17891 done
17892 IFS=$as_save_IFS
17893
17894 fi
17895 fi
17896 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
17897 if test -n "$ac_ct_STRIP"; then
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
17899 $as_echo "$ac_ct_STRIP" >&6; }
17900 else
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17902 $as_echo "no" >&6; }
17903 fi
17904
17905 if test "x$ac_ct_STRIP" = x; then
17906 STRIP=":"
17907 else
17908 case $cross_compiling:$ac_tool_warned in
17909 yes:)
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17912 ac_tool_warned=yes ;;
17913 esac
17914 STRIP=$ac_ct_STRIP
17915 fi
17916 else
17917 STRIP="$ac_cv_prog_STRIP"
17918 fi
17919
17920 fi
17921 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
17922
17923 mkdir_p="$MKDIR_P"
17924 case $mkdir_p in
17925 [\\/$]* | ?:[\\/]*) ;;
17926 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
17927 esac
17928
17929 for ac_prog in gawk mawk nawk awk
17930 do
17931 # Extract the first word of "$ac_prog", so it can be a program name with args.
17932 set dummy $ac_prog; ac_word=$2
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17934 $as_echo_n "checking for $ac_word... " >&6; }
17935 if test "${ac_cv_prog_AWK+set}" = set; then :
17936 $as_echo_n "(cached) " >&6
17937 else
17938 if test -n "$AWK"; then
17939 ac_cv_prog_AWK="$AWK" # Let the user override the test.
17940 else
17941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17942 for as_dir in $PATH
17943 do
17944 IFS=$as_save_IFS
17945 test -z "$as_dir" && as_dir=.
17946 for ac_exec_ext in '' $ac_executable_extensions; do
17947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17948 ac_cv_prog_AWK="$ac_prog"
17949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17950 break 2
17951 fi
17952 done
17953 done
17954 IFS=$as_save_IFS
17955
17956 fi
17957 fi
17958 AWK=$ac_cv_prog_AWK
17959 if test -n "$AWK"; then
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
17961 $as_echo "$AWK" >&6; }
17962 else
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17964 $as_echo "no" >&6; }
17965 fi
17966
17967
17968 test -n "$AWK" && break
17969 done
17970
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17972 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17973 set x ${MAKE-make}
17974 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17975 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
17976 $as_echo_n "(cached) " >&6
17977 else
17978 cat >conftest.make <<\_ACEOF
17979 SHELL = /bin/sh
17980 all:
17981 @echo '@@@%%%=$(MAKE)=@@@%%%'
17982 _ACEOF
17983 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17984 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17985 *@@@%%%=?*=@@@%%%*)
17986 eval ac_cv_prog_make_${ac_make}_set=yes;;
17987 *)
17988 eval ac_cv_prog_make_${ac_make}_set=no;;
17989 esac
17990 rm -f conftest.make
17991 fi
17992 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17994 $as_echo "yes" >&6; }
17995 SET_MAKE=
17996 else
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17998 $as_echo "no" >&6; }
17999 SET_MAKE="MAKE=${MAKE-make}"
18000 fi
18001
18002 rm -rf .tst 2>/dev/null
18003 mkdir .tst 2>/dev/null
18004 if test -d .tst; then
18005 am__leading_dot=.
18006 else
18007 am__leading_dot=_
18008 fi
18009 rmdir .tst 2>/dev/null
18010
18011 DEPDIR="${am__leading_dot}deps"
18012
18013 ac_config_commands="$ac_config_commands depfiles"
18014
18015
18016 am_make=${MAKE-make}
18017 cat > confinc << 'END'
18018 am__doit:
18019 @echo this is the am__doit target
18020 .PHONY: am__doit
18021 END
18022 # If we don't find an include directive, just comment out the code.
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
18024 $as_echo_n "checking for style of include used by $am_make... " >&6; }
18025 am__include="#"
18026 am__quote=
18027 _am_result=none
18028 # First try GNU make style include.
18029 echo "include confinc" > confmf
18030 # Ignore all kinds of additional output from `make'.
18031 case `$am_make -s -f confmf 2> /dev/null` in #(
18032 *the\ am__doit\ target*)
18033 am__include=include
18034 am__quote=
18035 _am_result=GNU
18036 ;;
18037 esac
18038 # Now try BSD make style include.
18039 if test "$am__include" = "#"; then
18040 echo '.include "confinc"' > confmf
18041 case `$am_make -s -f confmf 2> /dev/null` in #(
18042 *the\ am__doit\ target*)
18043 am__include=.include
18044 am__quote="\""
18045 _am_result=BSD
18046 ;;
18047 esac
18048 fi
18049
18050
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
18052 $as_echo "$_am_result" >&6; }
18053 rm -f confinc confmf
18054
18055 # Check whether --enable-dependency-tracking was given.
18056 if test "${enable_dependency_tracking+set}" = set; then :
18057 enableval=$enable_dependency_tracking;
18058 fi
18059
18060 if test "x$enable_dependency_tracking" != xno; then
18061 am_depcomp="$ac_aux_dir/depcomp"
18062 AMDEPBACKSLASH='\'
18063 fi
18064 if test "x$enable_dependency_tracking" != xno; then
18065 AMDEP_TRUE=
18066 AMDEP_FALSE='#'
18067 else
18068 AMDEP_TRUE='#'
18069 AMDEP_FALSE=
18070 fi
18071
18072
18073 if test "`cd $srcdir && pwd`" != "`pwd`"; then
18074 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
18075 # is not polluted with repeated "-I."
18076 am__isrc=' -I$(srcdir)'
18077 # test to see if srcdir already configured
18078 if test -f $srcdir/config.status; then
18079 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
18080 fi
18081 fi
18082
18083 # test whether we have cygpath
18084 if test -z "$CYGPATH_W"; then
18085 if (cygpath --version) >/dev/null 2>/dev/null; then
18086 CYGPATH_W='cygpath -w'
18087 else
18088 CYGPATH_W=echo
18089 fi
18090 fi
18091
18092
18093 # Define the identity of the package.
18094 PACKAGE=libgnu
18095 VERSION=UNUSED-VERSION
18096
18097
18098 # Some tools Automake needs.
18099
18100 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
18101
18102
18103 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
18104
18105
18106 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
18107
18108
18109 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
18110
18111
18112 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
18113
18114 # We need awk for the "check" target. The system "awk" is bad on
18115 # some platforms.
18116 # Always define AMTAR for backward compatibility.
18117
18118 AMTAR=${AMTAR-"${am_missing_run}tar"}
18119
18120 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
18121
18122
18123
18124
18125 depcc="$CC" am_compiler_list=
18126
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
18128 $as_echo_n "checking dependency style of $depcc... " >&6; }
18129 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
18130 $as_echo_n "(cached) " >&6
18131 else
18132 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
18133 # We make a subdir and do the tests there. Otherwise we can end up
18134 # making bogus files that we don't know about and never remove. For
18135 # instance it was reported that on HP-UX the gcc test will end up
18136 # making a dummy file named `D' -- because `-MD' means `put the output
18137 # in D'.
18138 mkdir conftest.dir
18139 # Copy depcomp to subdir because otherwise we won't find it if we're
18140 # using a relative directory.
18141 cp "$am_depcomp" conftest.dir
18142 cd conftest.dir
18143 # We will build objects and dependencies in a subdirectory because
18144 # it helps to detect inapplicable dependency modes. For instance
18145 # both Tru64's cc and ICC support -MD to output dependencies as a
18146 # side effect of compilation, but ICC will put the dependencies in
18147 # the current directory while Tru64 will put them in the object
18148 # directory.
18149 mkdir sub
18150
18151 am_cv_CC_dependencies_compiler_type=none
18152 if test "$am_compiler_list" = ""; then
18153 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
18154 fi
18155 am__universal=false
18156 case " $depcc " in #(
18157 *\ -arch\ *\ -arch\ *) am__universal=true ;;
18158 esac
18159
18160 for depmode in $am_compiler_list; do
18161 # Setup a source with many dependencies, because some compilers
18162 # like to wrap large dependency lists on column 80 (with \), and
18163 # we should not choose a depcomp mode which is confused by this.
18164 #
18165 # We need to recreate these files for each test, as the compiler may
18166 # overwrite some of them when testing with obscure command lines.
18167 # This happens at least with the AIX C compiler.
18168 : > sub/conftest.c
18169 for i in 1 2 3 4 5 6; do
18170 echo '#include "conftst'$i'.h"' >> sub/conftest.c
18171 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
18172 # Solaris 8's {/usr,}/bin/sh.
18173 touch sub/conftst$i.h
18174 done
18175 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
18176
18177 # We check with `-c' and `-o' for the sake of the "dashmstdout"
18178 # mode. It turns out that the SunPro C++ compiler does not properly
18179 # handle `-M -o', and we need to detect this. Also, some Intel
18180 # versions had trouble with output in subdirs
18181 am__obj=sub/conftest.${OBJEXT-o}
18182 am__minus_obj="-o $am__obj"
18183 case $depmode in
18184 gcc)
18185 # This depmode causes a compiler race in universal mode.
18186 test "$am__universal" = false || continue
18187 ;;
18188 nosideeffect)
18189 # after this tag, mechanisms are not by side-effect, so they'll
18190 # only be used when explicitly requested
18191 if test "x$enable_dependency_tracking" = xyes; then
18192 continue
18193 else
18194 break
18195 fi
18196 ;;
18197 msvisualcpp | msvcmsys)
18198 # This compiler won't grok `-c -o', but also, the minuso test has
18199 # not run yet. These depmodes are late enough in the game, and
18200 # so weak that their functioning should not be impacted.
18201 am__obj=conftest.${OBJEXT-o}
18202 am__minus_obj=
18203 ;;
18204 none) break ;;
18205 esac
18206 if depmode=$depmode \
18207 source=sub/conftest.c object=$am__obj \
18208 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
18209 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
18210 >/dev/null 2>conftest.err &&
18211 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
18212 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
18213 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
18214 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
18215 # icc doesn't choke on unknown options, it will just issue warnings
18216 # or remarks (even with -Werror). So we grep stderr for any message
18217 # that says an option was ignored or not supported.
18218 # When given -MP, icc 7.0 and 7.1 complain thusly:
18219 # icc: Command line warning: ignoring option '-M'; no argument required
18220 # The diagnosis changed in icc 8.0:
18221 # icc: Command line remark: option '-MP' not supported
18222 if (grep 'ignoring option' conftest.err ||
18223 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
18224 am_cv_CC_dependencies_compiler_type=$depmode
18225 break
18226 fi
18227 fi
18228 done
18229
18230 cd ..
18231 rm -rf conftest.dir
18232 else
18233 am_cv_CC_dependencies_compiler_type=none
18234 fi
18235
18236 fi
18237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
18238 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
18239 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
18240
18241 if
18242 test "x$enable_dependency_tracking" != xno \
18243 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
18244 am__fastdepCC_TRUE=
18245 am__fastdepCC_FALSE='#'
18246 else
18247 am__fastdepCC_TRUE='#'
18248 am__fastdepCC_FALSE=
18249 fi
18250
18251
18252
18253
18254 # --------------------- #
18255 # Checks for programs. #
18256 # --------------------- #
18257
18258
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
18260 $as_echo_n "checking whether ln -s works... " >&6; }
18261 LN_S=$as_ln_s
18262 if test "$LN_S" = "ln -s"; then
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18264 $as_echo "yes" >&6; }
18265 else
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
18267 $as_echo "no, using $LN_S" >&6; }
18268 fi
18269
18270 if test -n "$ac_tool_prefix"; then
18271 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18272 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18274 $as_echo_n "checking for $ac_word... " >&6; }
18275 if test "${ac_cv_prog_RANLIB+set}" = set; then :
18276 $as_echo_n "(cached) " >&6
18277 else
18278 if test -n "$RANLIB"; then
18279 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18280 else
18281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18282 for as_dir in $PATH
18283 do
18284 IFS=$as_save_IFS
18285 test -z "$as_dir" && as_dir=.
18286 for ac_exec_ext in '' $ac_executable_extensions; do
18287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18288 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18290 break 2
18291 fi
18292 done
18293 done
18294 IFS=$as_save_IFS
18295
18296 fi
18297 fi
18298 RANLIB=$ac_cv_prog_RANLIB
18299 if test -n "$RANLIB"; then
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
18301 $as_echo "$RANLIB" >&6; }
18302 else
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18304 $as_echo "no" >&6; }
18305 fi
18306
18307
18308 fi
18309 if test -z "$ac_cv_prog_RANLIB"; then
18310 ac_ct_RANLIB=$RANLIB
18311 # Extract the first word of "ranlib", so it can be a program name with args.
18312 set dummy ranlib; ac_word=$2
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18314 $as_echo_n "checking for $ac_word... " >&6; }
18315 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
18316 $as_echo_n "(cached) " >&6
18317 else
18318 if test -n "$ac_ct_RANLIB"; then
18319 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18320 else
18321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18322 for as_dir in $PATH
18323 do
18324 IFS=$as_save_IFS
18325 test -z "$as_dir" && as_dir=.
18326 for ac_exec_ext in '' $ac_executable_extensions; do
18327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18328 ac_cv_prog_ac_ct_RANLIB="ranlib"
18329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18330 break 2
18331 fi
18332 done
18333 done
18334 IFS=$as_save_IFS
18335
18336 fi
18337 fi
18338 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18339 if test -n "$ac_ct_RANLIB"; then
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
18341 $as_echo "$ac_ct_RANLIB" >&6; }
18342 else
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18344 $as_echo "no" >&6; }
18345 fi
18346
18347 if test "x$ac_ct_RANLIB" = x; then
18348 RANLIB=":"
18349 else
18350 case $cross_compiling:$ac_tool_warned in
18351 yes:)
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18354 ac_tool_warned=yes ;;
18355 esac
18356 RANLIB=$ac_ct_RANLIB
18357 fi
18358 else
18359 RANLIB="$ac_cv_prog_RANLIB"
18360 fi
18361
18362
18363 if test -n "$ac_tool_prefix"; then
18364 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
18365 set dummy ${ac_tool_prefix}ar; ac_word=$2
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18367 $as_echo_n "checking for $ac_word... " >&6; }
18368 if test "${ac_cv_prog_AR+set}" = set; then :
18369 $as_echo_n "(cached) " >&6
18370 else
18371 if test -n "$AR"; then
18372 ac_cv_prog_AR="$AR" # Let the user override the test.
18373 else
18374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18375 for as_dir in $PATH
18376 do
18377 IFS=$as_save_IFS
18378 test -z "$as_dir" && as_dir=.
18379 for ac_exec_ext in '' $ac_executable_extensions; do
18380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18381 ac_cv_prog_AR="${ac_tool_prefix}ar"
18382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18383 break 2
18384 fi
18385 done
18386 done
18387 IFS=$as_save_IFS
18388
18389 fi
18390 fi
18391 AR=$ac_cv_prog_AR
18392 if test -n "$AR"; then
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
18394 $as_echo "$AR" >&6; }
18395 else
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18397 $as_echo "no" >&6; }
18398 fi
18399
18400
18401 fi
18402 if test -z "$ac_cv_prog_AR"; then
18403 ac_ct_AR=$AR
18404 # Extract the first word of "ar", so it can be a program name with args.
18405 set dummy ar; ac_word=$2
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18407 $as_echo_n "checking for $ac_word... " >&6; }
18408 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
18409 $as_echo_n "(cached) " >&6
18410 else
18411 if test -n "$ac_ct_AR"; then
18412 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
18413 else
18414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18415 for as_dir in $PATH
18416 do
18417 IFS=$as_save_IFS
18418 test -z "$as_dir" && as_dir=.
18419 for ac_exec_ext in '' $ac_executable_extensions; do
18420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18421 ac_cv_prog_ac_ct_AR="ar"
18422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18423 break 2
18424 fi
18425 done
18426 done
18427 IFS=$as_save_IFS
18428
18429 fi
18430 fi
18431 ac_ct_AR=$ac_cv_prog_ac_ct_AR
18432 if test -n "$ac_ct_AR"; then
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
18434 $as_echo "$ac_ct_AR" >&6; }
18435 else
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18437 $as_echo "no" >&6; }
18438 fi
18439
18440 if test "x$ac_ct_AR" = x; then
18441 AR=""
18442 else
18443 case $cross_compiling:$ac_tool_warned in
18444 yes:)
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18447 ac_tool_warned=yes ;;
18448 esac
18449 AR=$ac_ct_AR
18450 fi
18451 else
18452 AR="$ac_cv_prog_AR"
18453 fi
18454
18455
18456 # ---------------------- #
18457 # Checks for libraries. #
18458 # ---------------------- #
18459
18460 ac_config_files="$ac_config_files Makefile import/Makefile"
18461
18462 ac_config_commands="$ac_config_commands default"
18463
18464 cat >confcache <<\_ACEOF
18465 # This file is a shell script that caches the results of configure
18466 # tests run on this system so they can be shared between configure
18467 # scripts and configure runs, see configure's option --config-cache.
18468 # It is not useful on other systems. If it contains results you don't
18469 # want to keep, you may remove or edit it.
18470 #
18471 # config.status only pays attention to the cache file if you give it
18472 # the --recheck option to rerun configure.
18473 #
18474 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18475 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18476 # following values.
18477
18478 _ACEOF
18479
18480 # The following way of writing the cache mishandles newlines in values,
18481 # but we know of no workaround that is simple, portable, and efficient.
18482 # So, we kill variables containing newlines.
18483 # Ultrix sh set writes to stderr and can't be redirected directly,
18484 # and sets the high bit in the cache file unless we assign to the vars.
18485 (
18486 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18487 eval ac_val=\$$ac_var
18488 case $ac_val in #(
18489 *${as_nl}*)
18490 case $ac_var in #(
18491 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18492 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18493 esac
18494 case $ac_var in #(
18495 _ | IFS | as_nl) ;; #(
18496 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18497 *) { eval $ac_var=; unset $ac_var;} ;;
18498 esac ;;
18499 esac
18500 done
18501
18502 (set) 2>&1 |
18503 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18504 *${as_nl}ac_space=\ *)
18505 # `set' does not quote correctly, so add quotes: double-quote
18506 # substitution turns \\\\ into \\, and sed turns \\ into \.
18507 sed -n \
18508 "s/'/'\\\\''/g;
18509 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18510 ;; #(
18511 *)
18512 # `set' quotes correctly as required by POSIX, so do not add quotes.
18513 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18514 ;;
18515 esac |
18516 sort
18517 ) |
18518 sed '
18519 /^ac_cv_env_/b end
18520 t clear
18521 :clear
18522 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18523 t end
18524 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18525 :end' >>confcache
18526 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18527 if test -w "$cache_file"; then
18528 test "x$cache_file" != "x/dev/null" &&
18529 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18530 $as_echo "$as_me: updating cache $cache_file" >&6;}
18531 cat confcache >$cache_file
18532 else
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18534 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18535 fi
18536 fi
18537 rm -f confcache
18538
18539 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18540 # Let make expand exec_prefix.
18541 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18542
18543 DEFS=-DHAVE_CONFIG_H
18544
18545 ac_libobjs=
18546 ac_ltlibobjs=
18547 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18548 # 1. Remove the extension, and $U if already installed.
18549 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18550 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18551 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18552 # will be set to the directory where LIBOBJS objects are built.
18553 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18554 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18555 done
18556 LIBOBJS=$ac_libobjs
18557
18558 LTLIBOBJS=$ac_ltlibobjs
18559
18560
18561 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18562 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
18563 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18564 fi
18565 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
18566 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
18567 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18568 fi
18569 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
18570 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
18571 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18572 fi
18573 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
18574 as_fn_error "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
18575 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18576 fi
18577 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
18578 as_fn_error "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
18579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18580 fi
18581 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
18582 as_fn_error "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
18583 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18584 fi
18585 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
18586 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
18587 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18588 fi
18589
18590
18591 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
18592 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
18593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18594 fi
18595 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
18596 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
18597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18598 fi
18599
18600 gl_libobjs=
18601 gl_ltlibobjs=
18602 if test -n "$gl_LIBOBJS"; then
18603 # Remove the extension.
18604 sed_drop_objext='s/\.o$//;s/\.obj$//'
18605 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
18606 gl_libobjs="$gl_libobjs $i.$ac_objext"
18607 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
18608 done
18609 fi
18610 gl_LIBOBJS=$gl_libobjs
18611
18612 gl_LTLIBOBJS=$gl_ltlibobjs
18613
18614
18615
18616 gltests_libobjs=
18617 gltests_ltlibobjs=
18618 if test -n "$gltests_LIBOBJS"; then
18619 # Remove the extension.
18620 sed_drop_objext='s/\.o$//;s/\.obj$//'
18621 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
18622 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
18623 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
18624 done
18625 fi
18626 gltests_LIBOBJS=$gltests_libobjs
18627
18628 gltests_LTLIBOBJS=$gltests_ltlibobjs
18629
18630
18631 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18632 as_fn_error "conditional \"AMDEP\" was never defined.
18633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18634 fi
18635 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18636 as_fn_error "conditional \"am__fastdepCC\" was never defined.
18637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18638 fi
18639 if test -n "$EXEEXT"; then
18640 am__EXEEXT_TRUE=
18641 am__EXEEXT_FALSE='#'
18642 else
18643 am__EXEEXT_TRUE='#'
18644 am__EXEEXT_FALSE=
18645 fi
18646
18647
18648 : ${CONFIG_STATUS=./config.status}
18649 ac_write_fail=0
18650 ac_clean_files_save=$ac_clean_files
18651 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18653 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18654 as_write_fail=0
18655 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18656 #! $SHELL
18657 # Generated by $as_me.
18658 # Run this file to recreate the current configuration.
18659 # Compiler output produced by configure, useful for debugging
18660 # configure, is in config.log if it exists.
18661
18662 debug=false
18663 ac_cs_recheck=false
18664 ac_cs_silent=false
18665
18666 SHELL=\${CONFIG_SHELL-$SHELL}
18667 export SHELL
18668 _ASEOF
18669 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18670 ## -------------------- ##
18671 ## M4sh Initialization. ##
18672 ## -------------------- ##
18673
18674 # Be more Bourne compatible
18675 DUALCASE=1; export DUALCASE # for MKS sh
18676 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18677 emulate sh
18678 NULLCMD=:
18679 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18680 # is contrary to our usage. Disable this feature.
18681 alias -g '${1+"$@"}'='"$@"'
18682 setopt NO_GLOB_SUBST
18683 else
18684 case `(set -o) 2>/dev/null` in #(
18685 *posix*) :
18686 set -o posix ;; #(
18687 *) :
18688 ;;
18689 esac
18690 fi
18691
18692
18693 as_nl='
18694 '
18695 export as_nl
18696 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18697 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18698 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18699 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18700 # Prefer a ksh shell builtin over an external printf program on Solaris,
18701 # but without wasting forks for bash or zsh.
18702 if test -z "$BASH_VERSION$ZSH_VERSION" \
18703 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18704 as_echo='print -r --'
18705 as_echo_n='print -rn --'
18706 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18707 as_echo='printf %s\n'
18708 as_echo_n='printf %s'
18709 else
18710 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18711 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18712 as_echo_n='/usr/ucb/echo -n'
18713 else
18714 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18715 as_echo_n_body='eval
18716 arg=$1;
18717 case $arg in #(
18718 *"$as_nl"*)
18719 expr "X$arg" : "X\\(.*\\)$as_nl";
18720 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18721 esac;
18722 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18723 '
18724 export as_echo_n_body
18725 as_echo_n='sh -c $as_echo_n_body as_echo'
18726 fi
18727 export as_echo_body
18728 as_echo='sh -c $as_echo_body as_echo'
18729 fi
18730
18731 # The user is always right.
18732 if test "${PATH_SEPARATOR+set}" != set; then
18733 PATH_SEPARATOR=:
18734 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18735 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18736 PATH_SEPARATOR=';'
18737 }
18738 fi
18739
18740
18741 # IFS
18742 # We need space, tab and new line, in precisely that order. Quoting is
18743 # there to prevent editors from complaining about space-tab.
18744 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18745 # splitting by setting IFS to empty value.)
18746 IFS=" "" $as_nl"
18747
18748 # Find who we are. Look in the path if we contain no directory separator.
18749 case $0 in #((
18750 *[\\/]* ) as_myself=$0 ;;
18751 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18752 for as_dir in $PATH
18753 do
18754 IFS=$as_save_IFS
18755 test -z "$as_dir" && as_dir=.
18756 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18757 done
18758 IFS=$as_save_IFS
18759
18760 ;;
18761 esac
18762 # We did not find ourselves, most probably we were run as `sh COMMAND'
18763 # in which case we are not to be found in the path.
18764 if test "x$as_myself" = x; then
18765 as_myself=$0
18766 fi
18767 if test ! -f "$as_myself"; then
18768 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18769 exit 1
18770 fi
18771
18772 # Unset variables that we do not need and which cause bugs (e.g. in
18773 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18774 # suppresses any "Segmentation fault" message there. '((' could
18775 # trigger a bug in pdksh 5.2.14.
18776 for as_var in BASH_ENV ENV MAIL MAILPATH
18777 do eval test x\${$as_var+set} = xset \
18778 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18779 done
18780 PS1='$ '
18781 PS2='> '
18782 PS4='+ '
18783
18784 # NLS nuisances.
18785 LC_ALL=C
18786 export LC_ALL
18787 LANGUAGE=C
18788 export LANGUAGE
18789
18790 # CDPATH.
18791 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18792
18793
18794 # as_fn_error ERROR [LINENO LOG_FD]
18795 # ---------------------------------
18796 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18797 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18798 # script with status $?, using 1 if that was 0.
18799 as_fn_error ()
18800 {
18801 as_status=$?; test $as_status -eq 0 && as_status=1
18802 if test "$3"; then
18803 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18804 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
18805 fi
18806 $as_echo "$as_me: error: $1" >&2
18807 as_fn_exit $as_status
18808 } # as_fn_error
18809
18810
18811 # as_fn_set_status STATUS
18812 # -----------------------
18813 # Set $? to STATUS, without forking.
18814 as_fn_set_status ()
18815 {
18816 return $1
18817 } # as_fn_set_status
18818
18819 # as_fn_exit STATUS
18820 # -----------------
18821 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18822 as_fn_exit ()
18823 {
18824 set +e
18825 as_fn_set_status $1
18826 exit $1
18827 } # as_fn_exit
18828
18829 # as_fn_unset VAR
18830 # ---------------
18831 # Portably unset VAR.
18832 as_fn_unset ()
18833 {
18834 { eval $1=; unset $1;}
18835 }
18836 as_unset=as_fn_unset
18837 # as_fn_append VAR VALUE
18838 # ----------------------
18839 # Append the text in VALUE to the end of the definition contained in VAR. Take
18840 # advantage of any shell optimizations that allow amortized linear growth over
18841 # repeated appends, instead of the typical quadratic growth present in naive
18842 # implementations.
18843 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18844 eval 'as_fn_append ()
18845 {
18846 eval $1+=\$2
18847 }'
18848 else
18849 as_fn_append ()
18850 {
18851 eval $1=\$$1\$2
18852 }
18853 fi # as_fn_append
18854
18855 # as_fn_arith ARG...
18856 # ------------------
18857 # Perform arithmetic evaluation on the ARGs, and store the result in the
18858 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18859 # must be portable across $(()) and expr.
18860 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18861 eval 'as_fn_arith ()
18862 {
18863 as_val=$(( $* ))
18864 }'
18865 else
18866 as_fn_arith ()
18867 {
18868 as_val=`expr "$@" || test $? -eq 1`
18869 }
18870 fi # as_fn_arith
18871
18872
18873 if expr a : '\(a\)' >/dev/null 2>&1 &&
18874 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18875 as_expr=expr
18876 else
18877 as_expr=false
18878 fi
18879
18880 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18881 as_basename=basename
18882 else
18883 as_basename=false
18884 fi
18885
18886 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18887 as_dirname=dirname
18888 else
18889 as_dirname=false
18890 fi
18891
18892 as_me=`$as_basename -- "$0" ||
18893 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18894 X"$0" : 'X\(//\)$' \| \
18895 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18896 $as_echo X/"$0" |
18897 sed '/^.*\/\([^/][^/]*\)\/*$/{
18898 s//\1/
18899 q
18900 }
18901 /^X\/\(\/\/\)$/{
18902 s//\1/
18903 q
18904 }
18905 /^X\/\(\/\).*/{
18906 s//\1/
18907 q
18908 }
18909 s/.*/./; q'`
18910
18911 # Avoid depending upon Character Ranges.
18912 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18913 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18914 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18915 as_cr_digits='0123456789'
18916 as_cr_alnum=$as_cr_Letters$as_cr_digits
18917
18918 ECHO_C= ECHO_N= ECHO_T=
18919 case `echo -n x` in #(((((
18920 -n*)
18921 case `echo 'xy\c'` in
18922 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18923 xy) ECHO_C='\c';;
18924 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18925 ECHO_T=' ';;
18926 esac;;
18927 *)
18928 ECHO_N='-n';;
18929 esac
18930
18931 rm -f conf$$ conf$$.exe conf$$.file
18932 if test -d conf$$.dir; then
18933 rm -f conf$$.dir/conf$$.file
18934 else
18935 rm -f conf$$.dir
18936 mkdir conf$$.dir 2>/dev/null
18937 fi
18938 if (echo >conf$$.file) 2>/dev/null; then
18939 if ln -s conf$$.file conf$$ 2>/dev/null; then
18940 as_ln_s='ln -s'
18941 # ... but there are two gotchas:
18942 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18943 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18944 # In both cases, we have to default to `cp -p'.
18945 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18946 as_ln_s='cp -p'
18947 elif ln conf$$.file conf$$ 2>/dev/null; then
18948 as_ln_s=ln
18949 else
18950 as_ln_s='cp -p'
18951 fi
18952 else
18953 as_ln_s='cp -p'
18954 fi
18955 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18956 rmdir conf$$.dir 2>/dev/null
18957
18958
18959 # as_fn_mkdir_p
18960 # -------------
18961 # Create "$as_dir" as a directory, including parents if necessary.
18962 as_fn_mkdir_p ()
18963 {
18964
18965 case $as_dir in #(
18966 -*) as_dir=./$as_dir;;
18967 esac
18968 test -d "$as_dir" || eval $as_mkdir_p || {
18969 as_dirs=
18970 while :; do
18971 case $as_dir in #(
18972 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18973 *) as_qdir=$as_dir;;
18974 esac
18975 as_dirs="'$as_qdir' $as_dirs"
18976 as_dir=`$as_dirname -- "$as_dir" ||
18977 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18978 X"$as_dir" : 'X\(//\)[^/]' \| \
18979 X"$as_dir" : 'X\(//\)$' \| \
18980 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18981 $as_echo X"$as_dir" |
18982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18983 s//\1/
18984 q
18985 }
18986 /^X\(\/\/\)[^/].*/{
18987 s//\1/
18988 q
18989 }
18990 /^X\(\/\/\)$/{
18991 s//\1/
18992 q
18993 }
18994 /^X\(\/\).*/{
18995 s//\1/
18996 q
18997 }
18998 s/.*/./; q'`
18999 test -d "$as_dir" && break
19000 done
19001 test -z "$as_dirs" || eval "mkdir $as_dirs"
19002 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
19003
19004
19005 } # as_fn_mkdir_p
19006 if mkdir -p . 2>/dev/null; then
19007 as_mkdir_p='mkdir -p "$as_dir"'
19008 else
19009 test -d ./-p && rmdir ./-p
19010 as_mkdir_p=false
19011 fi
19012
19013 if test -x / >/dev/null 2>&1; then
19014 as_test_x='test -x'
19015 else
19016 if ls -dL / >/dev/null 2>&1; then
19017 as_ls_L_option=L
19018 else
19019 as_ls_L_option=
19020 fi
19021 as_test_x='
19022 eval sh -c '\''
19023 if test -d "$1"; then
19024 test -d "$1/.";
19025 else
19026 case $1 in #(
19027 -*)set "./$1";;
19028 esac;
19029 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19030 ???[sx]*):;;*)false;;esac;fi
19031 '\'' sh
19032 '
19033 fi
19034 as_executable_p=$as_test_x
19035
19036 # Sed expression to map a string onto a valid CPP name.
19037 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19038
19039 # Sed expression to map a string onto a valid variable name.
19040 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19041
19042
19043 exec 6>&1
19044 ## ----------------------------------- ##
19045 ## Main body of $CONFIG_STATUS script. ##
19046 ## ----------------------------------- ##
19047 _ASEOF
19048 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19049
19050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19051 # Save the log message, to keep $0 and so on meaningful, and to
19052 # report actual input values of CONFIG_FILES etc. instead of their
19053 # values after options handling.
19054 ac_log="
19055 This file was extended by $as_me, which was
19056 generated by GNU Autoconf 2.64. Invocation command line was
19057
19058 CONFIG_FILES = $CONFIG_FILES
19059 CONFIG_HEADERS = $CONFIG_HEADERS
19060 CONFIG_LINKS = $CONFIG_LINKS
19061 CONFIG_COMMANDS = $CONFIG_COMMANDS
19062 $ $0 $@
19063
19064 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19065 "
19066
19067 _ACEOF
19068
19069 case $ac_config_files in *"
19070 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19071 esac
19072
19073 case $ac_config_headers in *"
19074 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19075 esac
19076
19077
19078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19079 # Files that config.status was made for.
19080 config_files="$ac_config_files"
19081 config_headers="$ac_config_headers"
19082 config_commands="$ac_config_commands"
19083
19084 _ACEOF
19085
19086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19087 ac_cs_usage="\
19088 \`$as_me' instantiates files and other configuration actions
19089 from templates according to the current configuration. Unless the files
19090 and actions are specified as TAGs, all are instantiated by default.
19091
19092 Usage: $0 [OPTION]... [TAG]...
19093
19094 -h, --help print this help, then exit
19095 -V, --version print version number and configuration settings, then exit
19096 -q, --quiet, --silent
19097 do not print progress messages
19098 -d, --debug don't remove temporary files
19099 --recheck update $as_me by reconfiguring in the same conditions
19100 --file=FILE[:TEMPLATE]
19101 instantiate the configuration file FILE
19102 --header=FILE[:TEMPLATE]
19103 instantiate the configuration header FILE
19104
19105 Configuration files:
19106 $config_files
19107
19108 Configuration headers:
19109 $config_headers
19110
19111 Configuration commands:
19112 $config_commands
19113
19114 Report bugs to the package provider."
19115
19116 _ACEOF
19117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19118 ac_cs_version="\\
19119 config.status
19120 configured by $0, generated by GNU Autoconf 2.64,
19121 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19122
19123 Copyright (C) 2009 Free Software Foundation, Inc.
19124 This config.status script is free software; the Free Software Foundation
19125 gives unlimited permission to copy, distribute and modify it."
19126
19127 ac_pwd='$ac_pwd'
19128 srcdir='$srcdir'
19129 INSTALL='$INSTALL'
19130 MKDIR_P='$MKDIR_P'
19131 AWK='$AWK'
19132 test -n "\$AWK" || AWK=awk
19133 _ACEOF
19134
19135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19136 # The default lists apply if the user does not specify any file.
19137 ac_need_defaults=:
19138 while test $# != 0
19139 do
19140 case $1 in
19141 --*=*)
19142 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19143 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19144 ac_shift=:
19145 ;;
19146 *)
19147 ac_option=$1
19148 ac_optarg=$2
19149 ac_shift=shift
19150 ;;
19151 esac
19152
19153 case $ac_option in
19154 # Handling of the options.
19155 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19156 ac_cs_recheck=: ;;
19157 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19158 $as_echo "$ac_cs_version"; exit ;;
19159 --debug | --debu | --deb | --de | --d | -d )
19160 debug=: ;;
19161 --file | --fil | --fi | --f )
19162 $ac_shift
19163 case $ac_optarg in
19164 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19165 esac
19166 as_fn_append CONFIG_FILES " '$ac_optarg'"
19167 ac_need_defaults=false;;
19168 --header | --heade | --head | --hea )
19169 $ac_shift
19170 case $ac_optarg in
19171 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19172 esac
19173 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19174 ac_need_defaults=false;;
19175 --he | --h)
19176 # Conflict between --help and --header
19177 as_fn_error "ambiguous option: \`$1'
19178 Try \`$0 --help' for more information.";;
19179 --help | --hel | -h )
19180 $as_echo "$ac_cs_usage"; exit ;;
19181 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19182 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19183 ac_cs_silent=: ;;
19184
19185 # This is an error.
19186 -*) as_fn_error "unrecognized option: \`$1'
19187 Try \`$0 --help' for more information." ;;
19188
19189 *) as_fn_append ac_config_targets " $1"
19190 ac_need_defaults=false ;;
19191
19192 esac
19193 shift
19194 done
19195
19196 ac_configure_extra_args=
19197
19198 if $ac_cs_silent; then
19199 exec 6>/dev/null
19200 ac_configure_extra_args="$ac_configure_extra_args --silent"
19201 fi
19202
19203 _ACEOF
19204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19205 if \$ac_cs_recheck; then
19206 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19207 shift
19208 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19209 CONFIG_SHELL='$SHELL'
19210 export CONFIG_SHELL
19211 exec "\$@"
19212 fi
19213
19214 _ACEOF
19215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19216 exec 5>>config.log
19217 {
19218 echo
19219 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19220 ## Running $as_me. ##
19221 _ASBOX
19222 $as_echo "$ac_log"
19223 } >&5
19224
19225 _ACEOF
19226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19227 #
19228 # INIT-COMMANDS
19229 #
19230 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19231
19232 _ACEOF
19233
19234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19235
19236 # Handling of arguments.
19237 for ac_config_target in $ac_config_targets
19238 do
19239 case $ac_config_target in
19240 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
19241 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19242 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19243 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
19244 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19245
19246 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19247 esac
19248 done
19249
19250
19251 # If the user did not use the arguments to specify the items to instantiate,
19252 # then the envvar interface is used. Set only those that are not.
19253 # We use the long form for the default assignment because of an extremely
19254 # bizarre bug on SunOS 4.1.3.
19255 if $ac_need_defaults; then
19256 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19257 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19258 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19259 fi
19260
19261 # Have a temporary directory for convenience. Make it in the build tree
19262 # simply because there is no reason against having it here, and in addition,
19263 # creating and moving files from /tmp can sometimes cause problems.
19264 # Hook for its removal unless debugging.
19265 # Note that there is a small window in which the directory will not be cleaned:
19266 # after its creation but before its name has been assigned to `$tmp'.
19267 $debug ||
19268 {
19269 tmp=
19270 trap 'exit_status=$?
19271 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19272 ' 0
19273 trap 'as_fn_exit 1' 1 2 13 15
19274 }
19275 # Create a (secure) tmp directory for tmp files.
19276
19277 {
19278 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19279 test -n "$tmp" && test -d "$tmp"
19280 } ||
19281 {
19282 tmp=./conf$$-$RANDOM
19283 (umask 077 && mkdir "$tmp")
19284 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
19285
19286 # Set up the scripts for CONFIG_FILES section.
19287 # No need to generate them if there are no CONFIG_FILES.
19288 # This happens for instance with `./config.status config.h'.
19289 if test -n "$CONFIG_FILES"; then
19290
19291
19292 ac_cr=`echo X | tr X '\015'`
19293 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19294 # But we know of no other shell where ac_cr would be empty at this
19295 # point, so we can use a bashism as a fallback.
19296 if test "x$ac_cr" = x; then
19297 eval ac_cr=\$\'\\r\'
19298 fi
19299 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19300 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19301 ac_cs_awk_cr='\r'
19302 else
19303 ac_cs_awk_cr=$ac_cr
19304 fi
19305
19306 echo 'BEGIN {' >"$tmp/subs1.awk" &&
19307 _ACEOF
19308
19309
19310 {
19311 echo "cat >conf$$subs.awk <<_ACEOF" &&
19312 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19313 echo "_ACEOF"
19314 } >conf$$subs.sh ||
19315 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19316 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
19317 ac_delim='%!_!# '
19318 for ac_last_try in false false false false false :; do
19319 . ./conf$$subs.sh ||
19320 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19321
19322 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19323 if test $ac_delim_n = $ac_delim_num; then
19324 break
19325 elif $ac_last_try; then
19326 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
19327 else
19328 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19329 fi
19330 done
19331 rm -f conf$$subs.sh
19332
19333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19334 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
19335 _ACEOF
19336 sed -n '
19337 h
19338 s/^/S["/; s/!.*/"]=/
19339 p
19340 g
19341 s/^[^!]*!//
19342 :repl
19343 t repl
19344 s/'"$ac_delim"'$//
19345 t delim
19346 :nl
19347 h
19348 s/\(.\{148\}\).*/\1/
19349 t more1
19350 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19351 p
19352 n
19353 b repl
19354 :more1
19355 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19356 p
19357 g
19358 s/.\{148\}//
19359 t nl
19360 :delim
19361 h
19362 s/\(.\{148\}\).*/\1/
19363 t more2
19364 s/["\\]/\\&/g; s/^/"/; s/$/"/
19365 p
19366 b
19367 :more2
19368 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19369 p
19370 g
19371 s/.\{148\}//
19372 t delim
19373 ' <conf$$subs.awk | sed '
19374 /^[^""]/{
19375 N
19376 s/\n//
19377 }
19378 ' >>$CONFIG_STATUS || ac_write_fail=1
19379 rm -f conf$$subs.awk
19380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19381 _ACAWK
19382 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
19383 for (key in S) S_is_set[key] = 1
19384 FS = "\a"
19385
19386 }
19387 {
19388 line = $ 0
19389 nfields = split(line, field, "@")
19390 substed = 0
19391 len = length(field[1])
19392 for (i = 2; i < nfields; i++) {
19393 key = field[i]
19394 keylen = length(key)
19395 if (S_is_set[key]) {
19396 value = S[key]
19397 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19398 len += length(value) + length(field[++i])
19399 substed = 1
19400 } else
19401 len += 1 + keylen
19402 }
19403
19404 print line
19405 }
19406
19407 _ACAWK
19408 _ACEOF
19409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19410 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19411 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19412 else
19413 cat
19414 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
19415 || as_fn_error "could not setup config files machinery" "$LINENO" 5
19416 _ACEOF
19417
19418 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19419 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19420 # trailing colons and then remove the whole line if VPATH becomes empty
19421 # (actually we leave an empty line to preserve line numbers).
19422 if test "x$srcdir" = x.; then
19423 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19424 s/:*\$(srcdir):*/:/
19425 s/:*\${srcdir}:*/:/
19426 s/:*@srcdir@:*/:/
19427 s/^\([^=]*=[ ]*\):*/\1/
19428 s/:*$//
19429 s/^[^=]*=[ ]*$//
19430 }'
19431 fi
19432
19433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19434 fi # test -n "$CONFIG_FILES"
19435
19436 # Set up the scripts for CONFIG_HEADERS section.
19437 # No need to generate them if there are no CONFIG_HEADERS.
19438 # This happens for instance with `./config.status Makefile'.
19439 if test -n "$CONFIG_HEADERS"; then
19440 cat >"$tmp/defines.awk" <<\_ACAWK ||
19441 BEGIN {
19442 _ACEOF
19443
19444 # Transform confdefs.h into an awk script `defines.awk', embedded as
19445 # here-document in config.status, that substitutes the proper values into
19446 # config.h.in to produce config.h.
19447
19448 # Create a delimiter string that does not exist in confdefs.h, to ease
19449 # handling of long lines.
19450 ac_delim='%!_!# '
19451 for ac_last_try in false false :; do
19452 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
19453 if test -z "$ac_t"; then
19454 break
19455 elif $ac_last_try; then
19456 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
19457 else
19458 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19459 fi
19460 done
19461
19462 # For the awk script, D is an array of macro values keyed by name,
19463 # likewise P contains macro parameters if any. Preserve backslash
19464 # newline sequences.
19465
19466 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19467 sed -n '
19468 s/.\{148\}/&'"$ac_delim"'/g
19469 t rset
19470 :rset
19471 s/^[ ]*#[ ]*define[ ][ ]*/ /
19472 t def
19473 d
19474 :def
19475 s/\\$//
19476 t bsnl
19477 s/["\\]/\\&/g
19478 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19479 D["\1"]=" \3"/p
19480 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19481 d
19482 :bsnl
19483 s/["\\]/\\&/g
19484 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19485 D["\1"]=" \3\\\\\\n"\\/p
19486 t cont
19487 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19488 t cont
19489 d
19490 :cont
19491 n
19492 s/.\{148\}/&'"$ac_delim"'/g
19493 t clear
19494 :clear
19495 s/\\$//
19496 t bsnlc
19497 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19498 d
19499 :bsnlc
19500 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19501 b cont
19502 ' <confdefs.h | sed '
19503 s/'"$ac_delim"'/"\\\
19504 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19505
19506 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19507 for (key in D) D_is_set[key] = 1
19508 FS = "\a"
19509 }
19510 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19511 line = \$ 0
19512 split(line, arg, " ")
19513 if (arg[1] == "#") {
19514 defundef = arg[2]
19515 mac1 = arg[3]
19516 } else {
19517 defundef = substr(arg[1], 2)
19518 mac1 = arg[2]
19519 }
19520 split(mac1, mac2, "(") #)
19521 macro = mac2[1]
19522 prefix = substr(line, 1, index(line, defundef) - 1)
19523 if (D_is_set[macro]) {
19524 # Preserve the white space surrounding the "#".
19525 print prefix "define", macro P[macro] D[macro]
19526 next
19527 } else {
19528 # Replace #undef with comments. This is necessary, for example,
19529 # in the case of _POSIX_SOURCE, which is predefined and required
19530 # on some systems where configure will not decide to define it.
19531 if (defundef == "undef") {
19532 print "/*", prefix defundef, macro, "*/"
19533 next
19534 }
19535 }
19536 }
19537 { print }
19538 _ACAWK
19539 _ACEOF
19540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19541 as_fn_error "could not setup config headers machinery" "$LINENO" 5
19542 fi # test -n "$CONFIG_HEADERS"
19543
19544
19545 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19546 shift
19547 for ac_tag
19548 do
19549 case $ac_tag in
19550 :[FHLC]) ac_mode=$ac_tag; continue;;
19551 esac
19552 case $ac_mode$ac_tag in
19553 :[FHL]*:*);;
19554 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
19555 :[FH]-) ac_tag=-:-;;
19556 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19557 esac
19558 ac_save_IFS=$IFS
19559 IFS=:
19560 set x $ac_tag
19561 IFS=$ac_save_IFS
19562 shift
19563 ac_file=$1
19564 shift
19565
19566 case $ac_mode in
19567 :L) ac_source=$1;;
19568 :[FH])
19569 ac_file_inputs=
19570 for ac_f
19571 do
19572 case $ac_f in
19573 -) ac_f="$tmp/stdin";;
19574 *) # Look for the file first in the build tree, then in the source tree
19575 # (if the path is not absolute). The absolute path cannot be DOS-style,
19576 # because $ac_f cannot contain `:'.
19577 test -f "$ac_f" ||
19578 case $ac_f in
19579 [\\/$]*) false;;
19580 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19581 esac ||
19582 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19583 esac
19584 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19585 as_fn_append ac_file_inputs " '$ac_f'"
19586 done
19587
19588 # Let's still pretend it is `configure' which instantiates (i.e., don't
19589 # use $as_me), people would be surprised to read:
19590 # /* config.h. Generated by config.status. */
19591 configure_input='Generated from '`
19592 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19593 `' by configure.'
19594 if test x"$ac_file" != x-; then
19595 configure_input="$ac_file. $configure_input"
19596 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19597 $as_echo "$as_me: creating $ac_file" >&6;}
19598 fi
19599 # Neutralize special characters interpreted by sed in replacement strings.
19600 case $configure_input in #(
19601 *\&* | *\|* | *\\* )
19602 ac_sed_conf_input=`$as_echo "$configure_input" |
19603 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19604 *) ac_sed_conf_input=$configure_input;;
19605 esac
19606
19607 case $ac_tag in
19608 *:-:* | *:-) cat >"$tmp/stdin" \
19609 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
19610 esac
19611 ;;
19612 esac
19613
19614 ac_dir=`$as_dirname -- "$ac_file" ||
19615 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19616 X"$ac_file" : 'X\(//\)[^/]' \| \
19617 X"$ac_file" : 'X\(//\)$' \| \
19618 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19619 $as_echo X"$ac_file" |
19620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19621 s//\1/
19622 q
19623 }
19624 /^X\(\/\/\)[^/].*/{
19625 s//\1/
19626 q
19627 }
19628 /^X\(\/\/\)$/{
19629 s//\1/
19630 q
19631 }
19632 /^X\(\/\).*/{
19633 s//\1/
19634 q
19635 }
19636 s/.*/./; q'`
19637 as_dir="$ac_dir"; as_fn_mkdir_p
19638 ac_builddir=.
19639
19640 case "$ac_dir" in
19641 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19642 *)
19643 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19644 # A ".." for each directory in $ac_dir_suffix.
19645 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19646 case $ac_top_builddir_sub in
19647 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19648 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19649 esac ;;
19650 esac
19651 ac_abs_top_builddir=$ac_pwd
19652 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19653 # for backward compatibility:
19654 ac_top_builddir=$ac_top_build_prefix
19655
19656 case $srcdir in
19657 .) # We are building in place.
19658 ac_srcdir=.
19659 ac_top_srcdir=$ac_top_builddir_sub
19660 ac_abs_top_srcdir=$ac_pwd ;;
19661 [\\/]* | ?:[\\/]* ) # Absolute name.
19662 ac_srcdir=$srcdir$ac_dir_suffix;
19663 ac_top_srcdir=$srcdir
19664 ac_abs_top_srcdir=$srcdir ;;
19665 *) # Relative name.
19666 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19667 ac_top_srcdir=$ac_top_build_prefix$srcdir
19668 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19669 esac
19670 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19671
19672
19673 case $ac_mode in
19674 :F)
19675 #
19676 # CONFIG_FILE
19677 #
19678
19679 case $INSTALL in
19680 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19681 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19682 esac
19683 ac_MKDIR_P=$MKDIR_P
19684 case $MKDIR_P in
19685 [\\/$]* | ?:[\\/]* ) ;;
19686 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19687 esac
19688 _ACEOF
19689
19690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19691 # If the template does not know about datarootdir, expand it.
19692 # FIXME: This hack should be removed a few years after 2.60.
19693 ac_datarootdir_hack=; ac_datarootdir_seen=
19694 ac_sed_dataroot='
19695 /datarootdir/ {
19696 p
19697 q
19698 }
19699 /@datadir@/p
19700 /@docdir@/p
19701 /@infodir@/p
19702 /@localedir@/p
19703 /@mandir@/p'
19704 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19705 *datarootdir*) ac_datarootdir_seen=yes;;
19706 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19708 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19709 _ACEOF
19710 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19711 ac_datarootdir_hack='
19712 s&@datadir@&$datadir&g
19713 s&@docdir@&$docdir&g
19714 s&@infodir@&$infodir&g
19715 s&@localedir@&$localedir&g
19716 s&@mandir@&$mandir&g
19717 s&\\\${datarootdir}&$datarootdir&g' ;;
19718 esac
19719 _ACEOF
19720
19721 # Neutralize VPATH when `$srcdir' = `.'.
19722 # Shell code in configure.ac might set extrasub.
19723 # FIXME: do we really want to maintain this feature?
19724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19725 ac_sed_extra="$ac_vpsub
19726 $extrasub
19727 _ACEOF
19728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19729 :t
19730 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19731 s|@configure_input@|$ac_sed_conf_input|;t t
19732 s&@top_builddir@&$ac_top_builddir_sub&;t t
19733 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19734 s&@srcdir@&$ac_srcdir&;t t
19735 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19736 s&@top_srcdir@&$ac_top_srcdir&;t t
19737 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19738 s&@builddir@&$ac_builddir&;t t
19739 s&@abs_builddir@&$ac_abs_builddir&;t t
19740 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19741 s&@INSTALL@&$ac_INSTALL&;t t
19742 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19743 $ac_datarootdir_hack
19744 "
19745 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
19746 || as_fn_error "could not create $ac_file" "$LINENO" 5
19747
19748 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19749 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19750 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19752 which seems to be undefined. Please make sure it is defined." >&5
19753 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19754 which seems to be undefined. Please make sure it is defined." >&2;}
19755
19756 rm -f "$tmp/stdin"
19757 case $ac_file in
19758 -) cat "$tmp/out" && rm -f "$tmp/out";;
19759 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
19760 esac \
19761 || as_fn_error "could not create $ac_file" "$LINENO" 5
19762 ;;
19763 :H)
19764 #
19765 # CONFIG_HEADER
19766 #
19767 if test x"$ac_file" != x-; then
19768 {
19769 $as_echo "/* $configure_input */" \
19770 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
19771 } >"$tmp/config.h" \
19772 || as_fn_error "could not create $ac_file" "$LINENO" 5
19773 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19774 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19775 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19776 else
19777 rm -f "$ac_file"
19778 mv "$tmp/config.h" "$ac_file" \
19779 || as_fn_error "could not create $ac_file" "$LINENO" 5
19780 fi
19781 else
19782 $as_echo "/* $configure_input */" \
19783 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19784 || as_fn_error "could not create -" "$LINENO" 5
19785 fi
19786 # Compute "$ac_file"'s index in $config_headers.
19787 _am_arg="$ac_file"
19788 _am_stamp_count=1
19789 for _am_header in $config_headers :; do
19790 case $_am_header in
19791 $_am_arg | $_am_arg:* )
19792 break ;;
19793 * )
19794 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19795 esac
19796 done
19797 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19798 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19799 X"$_am_arg" : 'X\(//\)[^/]' \| \
19800 X"$_am_arg" : 'X\(//\)$' \| \
19801 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19802 $as_echo X"$_am_arg" |
19803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19804 s//\1/
19805 q
19806 }
19807 /^X\(\/\/\)[^/].*/{
19808 s//\1/
19809 q
19810 }
19811 /^X\(\/\/\)$/{
19812 s//\1/
19813 q
19814 }
19815 /^X\(\/\).*/{
19816 s//\1/
19817 q
19818 }
19819 s/.*/./; q'`/stamp-h$_am_stamp_count
19820 ;;
19821
19822 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19823 $as_echo "$as_me: executing $ac_file commands" >&6;}
19824 ;;
19825 esac
19826
19827
19828 case $ac_file$ac_mode in
19829 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19830 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19831 # are listed without --file. Let's play safe and only enable the eval
19832 # if we detect the quoting.
19833 case $CONFIG_FILES in
19834 *\'*) eval set x "$CONFIG_FILES" ;;
19835 *) set x $CONFIG_FILES ;;
19836 esac
19837 shift
19838 for mf
19839 do
19840 # Strip MF so we end up with the name of the file.
19841 mf=`echo "$mf" | sed -e 's/:.*$//'`
19842 # Check whether this is an Automake generated Makefile or not.
19843 # We used to match only the files named `Makefile.in', but
19844 # some people rename them; so instead we look at the file content.
19845 # Grep'ing the first line is not enough: some people post-process
19846 # each Makefile.in and add a new line on top of each file to say so.
19847 # Grep'ing the whole file is not good either: AIX grep has a line
19848 # limit of 2048, but all sed's we know have understand at least 4000.
19849 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19850 dirpart=`$as_dirname -- "$mf" ||
19851 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19852 X"$mf" : 'X\(//\)[^/]' \| \
19853 X"$mf" : 'X\(//\)$' \| \
19854 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19855 $as_echo X"$mf" |
19856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19857 s//\1/
19858 q
19859 }
19860 /^X\(\/\/\)[^/].*/{
19861 s//\1/
19862 q
19863 }
19864 /^X\(\/\/\)$/{
19865 s//\1/
19866 q
19867 }
19868 /^X\(\/\).*/{
19869 s//\1/
19870 q
19871 }
19872 s/.*/./; q'`
19873 else
19874 continue
19875 fi
19876 # Extract the definition of DEPDIR, am__include, and am__quote
19877 # from the Makefile without running `make'.
19878 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19879 test -z "$DEPDIR" && continue
19880 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19881 test -z "am__include" && continue
19882 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19883 # When using ansi2knr, U may be empty or an underscore; expand it
19884 U=`sed -n 's/^U = //p' < "$mf"`
19885 # Find all dependency output files, they are included files with
19886 # $(DEPDIR) in their names. We invoke sed twice because it is the
19887 # simplest approach to changing $(DEPDIR) to its actual value in the
19888 # expansion.
19889 for file in `sed -n "
19890 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19891 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19892 # Make sure the directory exists.
19893 test -f "$dirpart/$file" && continue
19894 fdir=`$as_dirname -- "$file" ||
19895 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19896 X"$file" : 'X\(//\)[^/]' \| \
19897 X"$file" : 'X\(//\)$' \| \
19898 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19899 $as_echo X"$file" |
19900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19901 s//\1/
19902 q
19903 }
19904 /^X\(\/\/\)[^/].*/{
19905 s//\1/
19906 q
19907 }
19908 /^X\(\/\/\)$/{
19909 s//\1/
19910 q
19911 }
19912 /^X\(\/\).*/{
19913 s//\1/
19914 q
19915 }
19916 s/.*/./; q'`
19917 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19918 # echo "creating $dirpart/$file"
19919 echo '# dummy' > "$dirpart/$file"
19920 done
19921 done
19922 }
19923 ;;
19924 "default":C)
19925 case x$CONFIG_HEADERS in
19926 xconfig.h:config.in)
19927 echo > stamp-h ;;
19928 esac
19929 ;;
19930
19931 esac
19932 done # for ac_tag
19933
19934
19935 as_fn_exit 0
19936 _ACEOF
19937 ac_clean_files=$ac_clean_files_save
19938
19939 test $ac_write_fail = 0 ||
19940 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19941
19942
19943 # configure is writing to config.log, and then calls config.status.
19944 # config.status does its own redirection, appending to config.log.
19945 # Unfortunately, on DOS this fails, as config.log is still kept open
19946 # by configure, so config.status won't be able to write to it; its
19947 # output is simply discarded. So we exec the FD to /dev/null,
19948 # effectively closing config.log, so it can be properly (re)opened and
19949 # appended to by config.status. When coming back to configure, we
19950 # need to make the FD available again.
19951 if test "$no_create" != yes; then
19952 ac_cs_success=:
19953 ac_config_status_args=
19954 test "$silent" = yes &&
19955 ac_config_status_args="$ac_config_status_args --quiet"
19956 exec 5>/dev/null
19957 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19958 exec 5>>config.log
19959 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19960 # would make configure fail if this is the last instruction.
19961 $ac_cs_success || as_fn_exit $?
19962 fi
19963 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19965 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19966 fi
19967
19968
19969 exit 0
This page took 0.574917 seconds and 4 git commands to generate.