import gnulib sys/stat.h module
[deliverable/binutils-gdb.git] / gdb / gnulib / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
94 do
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
100
101 ;;
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
107 fi
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
111 fi
112
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148 esac
149 fi
150 "
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
156
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164 else
165 exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
177 fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184 do
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
189 /*)
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198 fi
199 fi
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
209
210
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220 fi
221
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
233 fi
234 exit 1
235 fi
236 fi
237 fi
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
243
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
251 {
252 { eval $1=; unset $1;}
253 }
254 as_unset=as_fn_unset
255
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
260 {
261 return $1
262 } # as_fn_set_status
263
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
268 {
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
273
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
278 {
279
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332 else
333 as_fn_append ()
334 {
335 eval $1=\$$1\$2
336 }
337 fi # as_fn_append
338
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349 else
350 as_fn_arith ()
351 {
352 as_val=`expr "$@" || test $? -eq 1`
353 }
354 fi # as_fn_arith
355
356
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
363 {
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
372
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
378 fi
379
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
384 fi
385
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
390 fi
391
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
399 q
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
425 p
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
431 b
432 :lineno
433 N
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
448 }
449
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
459 *)
460 ECHO_N='-n';;
461 esac
462
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
469 fi
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
483 fi
484 else
485 as_ln_s='cp -p'
486 fi
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
489
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
495 fi
496
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
504 fi
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
516 '
517 fi
518 as_executable_p=$as_test_x
519
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527 exec 7<&0 </dev/null 6>&1
528
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
533
534 #
535 # Initializations.
536 #
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
545
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
553
554 ac_unique_file="import/memmem.c"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
557 #include <stdio.h>
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
560 #endif
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
563 #endif
564 #ifdef STDC_HEADERS
565 # include <stdlib.h>
566 # include <stddef.h>
567 #else
568 # ifdef HAVE_STDLIB_H
569 # include <stdlib.h>
570 # endif
571 #endif
572 #ifdef HAVE_STRING_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574 # include <memory.h>
575 # endif
576 # include <string.h>
577 #endif
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
580 #endif
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
583 #endif
584 #ifdef HAVE_STDINT_H
585 # include <stdint.h>
586 #endif
587 #ifdef HAVE_UNISTD_H
588 # include <unistd.h>
589 #endif"
590
591 ac_header_list=
592 gl_fnmatch_required=POSIX
593 ac_func_list=
594 ac_subst_vars='am__EXEEXT_FALSE
595 am__EXEEXT_TRUE
596 gltests_LTLIBOBJS
597 gltests_LIBOBJS
598 gl_LTLIBOBJS
599 gl_LIBOBJS
600 LTLIBOBJS
601 LIBOBJS
602 LN_S
603 am__fastdepCC_FALSE
604 am__fastdepCC_TRUE
605 CCDEPMODE
606 AMDEPBACKSLASH
607 AMDEP_FALSE
608 AMDEP_TRUE
609 am__quote
610 am__include
611 DEPDIR
612 am__untar
613 am__tar
614 AMTAR
615 am__leading_dot
616 SET_MAKE
617 AWK
618 mkdir_p
619 INSTALL_STRIP_PROGRAM
620 STRIP
621 install_sh
622 MAKEINFO
623 AUTOHEADER
624 AUTOMAKE
625 AUTOCONF
626 ACLOCAL
627 VERSION
628 PACKAGE
629 CYGPATH_W
630 am__isrc
631 INSTALL_DATA
632 INSTALL_SCRIPT
633 INSTALL_PROGRAM
634 LIBGNU_LTLIBDEPS
635 LIBGNU_LIBDEPS
636 gltests_WITNESS
637 REPLACE_TOWLOWER
638 REPLACE_ISWCNTRL
639 HAVE_WCTYPE_H
640 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
641 NEXT_WCTYPE_H
642 HAVE_ISWCNTRL
643 REPLACE_ISWBLANK
644 HAVE_WCTRANS_T
645 HAVE_WCTYPE_T
646 HAVE_ISWBLANK
647 GNULIB_TOWCTRANS
648 GNULIB_WCTRANS
649 GNULIB_ISWCTYPE
650 GNULIB_WCTYPE
651 GNULIB_ISWBLANK
652 HAVE_WINT_T
653 HAVE_FEATURES_H
654 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
655 NEXT_WCHAR_H
656 HAVE_UNISTD_H
657 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
658 NEXT_UNISTD_H
659 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
660 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
661 TIME_H_DEFINES_STRUCT_TIMESPEC
662 NEXT_AS_FIRST_DIRECTIVE_TIME_H
663 NEXT_TIME_H
664 REPLACE_TIMEGM
665 REPLACE_NANOSLEEP
666 REPLACE_MKTIME
667 REPLACE_LOCALTIME_R
668 HAVE_TIMEGM
669 HAVE_STRPTIME
670 HAVE_NANOSLEEP
671 HAVE_DECL_LOCALTIME_R
672 GNULIB_TIME_R
673 GNULIB_TIMEGM
674 GNULIB_STRPTIME
675 GNULIB_NANOSLEEP
676 GNULIB_MKTIME
677 WINDOWS_64_BIT_OFF_T
678 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
679 NEXT_SYS_TYPES_H
680 MKDIR_P
681 WINDOWS_64_BIT_ST_SIZE
682 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
683 NEXT_SYS_STAT_H
684 REPLACE_UTIMENSAT
685 REPLACE_STAT
686 REPLACE_MKNOD
687 REPLACE_MKFIFO
688 REPLACE_MKDIR
689 REPLACE_LSTAT
690 REPLACE_FUTIMENS
691 REPLACE_FSTATAT
692 REPLACE_FSTAT
693 HAVE_UTIMENSAT
694 HAVE_MKNODAT
695 HAVE_MKNOD
696 HAVE_MKFIFOAT
697 HAVE_MKFIFO
698 HAVE_MKDIRAT
699 HAVE_LSTAT
700 HAVE_LCHMOD
701 HAVE_FUTIMENS
702 HAVE_FSTATAT
703 HAVE_FCHMODAT
704 GNULIB_UTIMENSAT
705 GNULIB_STAT
706 GNULIB_MKNODAT
707 GNULIB_MKNOD
708 GNULIB_MKFIFOAT
709 GNULIB_MKFIFO
710 GNULIB_MKDIRAT
711 GNULIB_LSTAT
712 GNULIB_LCHMOD
713 GNULIB_FUTIMENS
714 GNULIB_FSTATAT
715 GNULIB_FSTAT
716 GNULIB_FCHMODAT
717 NEXT_AS_FIRST_DIRECTIVE_STRING_H
718 NEXT_STRING_H
719 HAVE_WINSOCK2_H
720 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
721 NEXT_STDDEF_H
722 GL_GENERATE_STDDEF_H_FALSE
723 GL_GENERATE_STDDEF_H_TRUE
724 STDDEF_H
725 HAVE_WCHAR_T
726 REPLACE_NULL
727 HAVE__BOOL
728 GL_GENERATE_STDBOOL_H_FALSE
729 GL_GENERATE_STDBOOL_H_TRUE
730 STDBOOL_H
731 UNDEFINE_STRTOK_R
732 REPLACE_STRTOK_R
733 REPLACE_STRSIGNAL
734 REPLACE_STRNLEN
735 REPLACE_STRNDUP
736 REPLACE_STRNCAT
737 REPLACE_STRERROR_R
738 REPLACE_STRERROR
739 REPLACE_STRCHRNUL
740 REPLACE_STRCASESTR
741 REPLACE_STRSTR
742 REPLACE_STRDUP
743 REPLACE_STPNCPY
744 REPLACE_MEMMEM
745 REPLACE_MEMCHR
746 HAVE_STRVERSCMP
747 HAVE_DECL_STRSIGNAL
748 HAVE_DECL_STRERROR_R
749 HAVE_DECL_STRTOK_R
750 HAVE_STRCASESTR
751 HAVE_STRSEP
752 HAVE_STRPBRK
753 HAVE_DECL_STRNLEN
754 HAVE_DECL_STRNDUP
755 HAVE_DECL_STRDUP
756 HAVE_STRCHRNUL
757 HAVE_STPNCPY
758 HAVE_STPCPY
759 HAVE_RAWMEMCHR
760 HAVE_DECL_MEMRCHR
761 HAVE_MEMPCPY
762 HAVE_DECL_MEMMEM
763 HAVE_MEMCHR
764 HAVE_FFSLL
765 HAVE_FFSL
766 HAVE_MBSLEN
767 GNULIB_STRVERSCMP
768 GNULIB_STRSIGNAL
769 GNULIB_STRERROR_R
770 GNULIB_STRERROR
771 GNULIB_MBSTOK_R
772 GNULIB_MBSSEP
773 GNULIB_MBSSPN
774 GNULIB_MBSPBRK
775 GNULIB_MBSCSPN
776 GNULIB_MBSCASESTR
777 GNULIB_MBSPCASECMP
778 GNULIB_MBSNCASECMP
779 GNULIB_MBSCASECMP
780 GNULIB_MBSSTR
781 GNULIB_MBSRCHR
782 GNULIB_MBSCHR
783 GNULIB_MBSNLEN
784 GNULIB_MBSLEN
785 GNULIB_STRTOK_R
786 GNULIB_STRCASESTR
787 GNULIB_STRSTR
788 GNULIB_STRSEP
789 GNULIB_STRPBRK
790 GNULIB_STRNLEN
791 GNULIB_STRNDUP
792 GNULIB_STRNCAT
793 GNULIB_STRDUP
794 GNULIB_STRCHRNUL
795 GNULIB_STPNCPY
796 GNULIB_STPCPY
797 GNULIB_RAWMEMCHR
798 GNULIB_MEMRCHR
799 GNULIB_MEMPCPY
800 GNULIB_MEMMEM
801 GNULIB_MEMCHR
802 GNULIB_FFSLL
803 GNULIB_FFSL
804 LOCALE_FR
805 LOCALE_FR_UTF8
806 LOCALE_ZH_CN
807 LOCALE_JA
808 REPLACE_WCSWIDTH
809 REPLACE_WCWIDTH
810 REPLACE_WCSNRTOMBS
811 REPLACE_WCSRTOMBS
812 REPLACE_WCRTOMB
813 REPLACE_MBSNRTOWCS
814 REPLACE_MBSRTOWCS
815 REPLACE_MBRLEN
816 REPLACE_MBRTOWC
817 REPLACE_MBSINIT
818 REPLACE_WCTOB
819 REPLACE_BTOWC
820 REPLACE_MBSTATE_T
821 HAVE_DECL_WCWIDTH
822 HAVE_DECL_WCTOB
823 HAVE_WCSWIDTH
824 HAVE_WCSTOK
825 HAVE_WCSSTR
826 HAVE_WCSPBRK
827 HAVE_WCSSPN
828 HAVE_WCSCSPN
829 HAVE_WCSRCHR
830 HAVE_WCSCHR
831 HAVE_WCSDUP
832 HAVE_WCSXFRM
833 HAVE_WCSCOLL
834 HAVE_WCSNCASECMP
835 HAVE_WCSCASECMP
836 HAVE_WCSNCMP
837 HAVE_WCSCMP
838 HAVE_WCSNCAT
839 HAVE_WCSCAT
840 HAVE_WCPNCPY
841 HAVE_WCSNCPY
842 HAVE_WCPCPY
843 HAVE_WCSCPY
844 HAVE_WCSNLEN
845 HAVE_WCSLEN
846 HAVE_WMEMSET
847 HAVE_WMEMMOVE
848 HAVE_WMEMCPY
849 HAVE_WMEMCMP
850 HAVE_WMEMCHR
851 HAVE_WCSNRTOMBS
852 HAVE_WCSRTOMBS
853 HAVE_WCRTOMB
854 HAVE_MBSNRTOWCS
855 HAVE_MBSRTOWCS
856 HAVE_MBRLEN
857 HAVE_MBRTOWC
858 HAVE_MBSINIT
859 HAVE_BTOWC
860 GNULIB_WCSWIDTH
861 GNULIB_WCSTOK
862 GNULIB_WCSSTR
863 GNULIB_WCSPBRK
864 GNULIB_WCSSPN
865 GNULIB_WCSCSPN
866 GNULIB_WCSRCHR
867 GNULIB_WCSCHR
868 GNULIB_WCSDUP
869 GNULIB_WCSXFRM
870 GNULIB_WCSCOLL
871 GNULIB_WCSNCASECMP
872 GNULIB_WCSCASECMP
873 GNULIB_WCSNCMP
874 GNULIB_WCSCMP
875 GNULIB_WCSNCAT
876 GNULIB_WCSCAT
877 GNULIB_WCPNCPY
878 GNULIB_WCSNCPY
879 GNULIB_WCPCPY
880 GNULIB_WCSCPY
881 GNULIB_WCSNLEN
882 GNULIB_WCSLEN
883 GNULIB_WMEMSET
884 GNULIB_WMEMMOVE
885 GNULIB_WMEMCPY
886 GNULIB_WMEMCMP
887 GNULIB_WMEMCHR
888 GNULIB_WCWIDTH
889 GNULIB_WCSNRTOMBS
890 GNULIB_WCSRTOMBS
891 GNULIB_WCRTOMB
892 GNULIB_MBSNRTOWCS
893 GNULIB_MBSRTOWCS
894 GNULIB_MBRLEN
895 GNULIB_MBRTOWC
896 GNULIB_MBSINIT
897 GNULIB_WCTOB
898 GNULIB_BTOWC
899 NEXT_AS_FIRST_DIRECTIVE_MATH_H
900 NEXT_MATH_H
901 LOCALCHARSET_TESTS_ENVIRONMENT
902 GLIBC21
903 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
904 NEXT_INTTYPES_H
905 UINT64_MAX_EQ_ULONG_MAX
906 UINT32_MAX_LT_UINTMAX_MAX
907 PRIPTR_PREFIX
908 PRI_MACROS_BROKEN
909 INT64_MAX_EQ_LONG_MAX
910 INT32_MAX_LT_INTMAX_MAX
911 REPLACE_STRTOIMAX
912 HAVE_DECL_STRTOUMAX
913 HAVE_DECL_STRTOIMAX
914 HAVE_DECL_IMAXDIV
915 HAVE_DECL_IMAXABS
916 GNULIB_STRTOUMAX
917 GNULIB_STRTOIMAX
918 GNULIB_IMAXDIV
919 GNULIB_IMAXABS
920 GL_GENERATE_STDINT_H_FALSE
921 GL_GENERATE_STDINT_H_TRUE
922 STDINT_H
923 WINT_T_SUFFIX
924 WCHAR_T_SUFFIX
925 SIG_ATOMIC_T_SUFFIX
926 SIZE_T_SUFFIX
927 PTRDIFF_T_SUFFIX
928 HAVE_SIGNED_WINT_T
929 HAVE_SIGNED_WCHAR_T
930 HAVE_SIGNED_SIG_ATOMIC_T
931 BITSIZEOF_WINT_T
932 BITSIZEOF_WCHAR_T
933 BITSIZEOF_SIG_ATOMIC_T
934 BITSIZEOF_SIZE_T
935 BITSIZEOF_PTRDIFF_T
936 APPLE_UNIVERSAL_BUILD
937 HAVE_SYS_BITYPES_H
938 HAVE_SYS_INTTYPES_H
939 HAVE_STDINT_H
940 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
941 NEXT_STDINT_H
942 HAVE_SYS_TYPES_H
943 HAVE_INTTYPES_H
944 HAVE_WCHAR_H
945 HAVE_UNSIGNED_LONG_LONG_INT
946 HAVE_LONG_LONG_INT
947 FREXPL_LIBM
948 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
949 FREXP_LIBM
950 REPLACE_TRUNCL
951 REPLACE_TRUNCF
952 REPLACE_TRUNC
953 REPLACE_SQRTL
954 REPLACE_SIGNBIT_USING_GCC
955 REPLACE_SIGNBIT
956 REPLACE_ROUNDL
957 REPLACE_ROUNDF
958 REPLACE_ROUND
959 REPLACE_REMAINDERL
960 REPLACE_REMAINDERF
961 REPLACE_REMAINDER
962 REPLACE_NAN
963 REPLACE_MODFL
964 REPLACE_MODFF
965 REPLACE_MODF
966 REPLACE_LOGBL
967 REPLACE_LOGBF
968 REPLACE_LOGB
969 REPLACE_LOG2L
970 REPLACE_LOG2F
971 REPLACE_LOG2
972 REPLACE_LOG1PL
973 REPLACE_LOG1PF
974 REPLACE_LOG1P
975 REPLACE_LOG10L
976 REPLACE_LOG10F
977 REPLACE_LOG10
978 REPLACE_LOGL
979 REPLACE_LOGF
980 REPLACE_LOG
981 REPLACE_LDEXPL
982 REPLACE_ISNAN
983 REPLACE_ISINF
984 REPLACE_ISFINITE
985 REPLACE_ILOGBF
986 REPLACE_ILOGB
987 REPLACE_HYPOTL
988 REPLACE_HYPOTF
989 REPLACE_HYPOT
990 REPLACE_HUGE_VAL
991 REPLACE_FREXPL
992 REPLACE_FREXP
993 REPLACE_FREXPF
994 REPLACE_FMODL
995 REPLACE_FMODF
996 REPLACE_FMOD
997 REPLACE_FMAL
998 REPLACE_FMAF
999 REPLACE_FMA
1000 REPLACE_FLOORL
1001 REPLACE_FLOORF
1002 REPLACE_FLOOR
1003 REPLACE_FABSL
1004 REPLACE_EXP2L
1005 REPLACE_EXP2
1006 REPLACE_EXPM1F
1007 REPLACE_EXPM1
1008 REPLACE_CEILL
1009 REPLACE_CEILF
1010 REPLACE_CEIL
1011 REPLACE_CBRTL
1012 REPLACE_CBRTF
1013 HAVE_DECL_TRUNCL
1014 HAVE_DECL_TRUNCF
1015 HAVE_DECL_TRUNC
1016 HAVE_DECL_TANL
1017 HAVE_DECL_SQRTL
1018 HAVE_DECL_SINL
1019 HAVE_DECL_ROUNDL
1020 HAVE_DECL_ROUNDF
1021 HAVE_DECL_ROUND
1022 HAVE_DECL_RINTF
1023 HAVE_DECL_REMAINDERL
1024 HAVE_DECL_REMAINDER
1025 HAVE_DECL_LOGB
1026 HAVE_DECL_LOG2L
1027 HAVE_DECL_LOG2F
1028 HAVE_DECL_LOG2
1029 HAVE_DECL_LOG10L
1030 HAVE_DECL_LOGL
1031 HAVE_DECL_LDEXPL
1032 HAVE_DECL_FREXPL
1033 HAVE_DECL_FLOORL
1034 HAVE_DECL_FLOORF
1035 HAVE_DECL_EXPM1L
1036 HAVE_DECL_EXP2L
1037 HAVE_DECL_EXP2F
1038 HAVE_DECL_EXP2
1039 HAVE_DECL_EXPL
1040 HAVE_DECL_COSL
1041 HAVE_DECL_COPYSIGNF
1042 HAVE_DECL_CEILL
1043 HAVE_DECL_CEILF
1044 HAVE_DECL_CBRTL
1045 HAVE_DECL_CBRTF
1046 HAVE_DECL_ATANL
1047 HAVE_DECL_ASINL
1048 HAVE_DECL_ACOSL
1049 HAVE_TANHF
1050 HAVE_TANL
1051 HAVE_TANF
1052 HAVE_SQRTL
1053 HAVE_SQRTF
1054 HAVE_SINHF
1055 HAVE_SINL
1056 HAVE_SINF
1057 HAVE_RINTL
1058 HAVE_RINT
1059 HAVE_REMAINDERF
1060 HAVE_REMAINDER
1061 HAVE_POWF
1062 HAVE_MODFL
1063 HAVE_MODFF
1064 HAVE_LOGBL
1065 HAVE_LOGBF
1066 HAVE_LOG1PL
1067 HAVE_LOG1PF
1068 HAVE_LOG1P
1069 HAVE_LOG10L
1070 HAVE_LOG10F
1071 HAVE_LOGL
1072 HAVE_LOGF
1073 HAVE_LDEXPF
1074 HAVE_ISNANL
1075 HAVE_ISNAND
1076 HAVE_ISNANF
1077 HAVE_ILOGBL
1078 HAVE_ILOGBF
1079 HAVE_ILOGB
1080 HAVE_HYPOTL
1081 HAVE_HYPOTF
1082 HAVE_FREXPF
1083 HAVE_FMODL
1084 HAVE_FMODF
1085 HAVE_FMAL
1086 HAVE_FMAF
1087 HAVE_FMA
1088 HAVE_FABSL
1089 HAVE_FABSF
1090 HAVE_EXPM1F
1091 HAVE_EXPM1
1092 HAVE_EXPL
1093 HAVE_EXPF
1094 HAVE_COSHF
1095 HAVE_COSL
1096 HAVE_COSF
1097 HAVE_COPYSIGNL
1098 HAVE_COPYSIGN
1099 HAVE_CBRTL
1100 HAVE_CBRTF
1101 HAVE_CBRT
1102 HAVE_ATAN2F
1103 HAVE_ATANL
1104 HAVE_ATANF
1105 HAVE_ASINL
1106 HAVE_ASINF
1107 HAVE_ACOSL
1108 HAVE_ACOSF
1109 GNULIB_TRUNCL
1110 GNULIB_TRUNCF
1111 GNULIB_TRUNC
1112 GNULIB_TANHF
1113 GNULIB_TANL
1114 GNULIB_TANF
1115 GNULIB_SQRTL
1116 GNULIB_SQRTF
1117 GNULIB_SINHF
1118 GNULIB_SINL
1119 GNULIB_SINF
1120 GNULIB_SIGNBIT
1121 GNULIB_ROUNDL
1122 GNULIB_ROUNDF
1123 GNULIB_ROUND
1124 GNULIB_RINTL
1125 GNULIB_RINTF
1126 GNULIB_RINT
1127 GNULIB_REMAINDERL
1128 GNULIB_REMAINDERF
1129 GNULIB_REMAINDER
1130 GNULIB_POWF
1131 GNULIB_MODFL
1132 GNULIB_MODFF
1133 GNULIB_MODF
1134 GNULIB_LOGBL
1135 GNULIB_LOGBF
1136 GNULIB_LOGB
1137 GNULIB_LOG2L
1138 GNULIB_LOG2F
1139 GNULIB_LOG2
1140 GNULIB_LOG1PL
1141 GNULIB_LOG1PF
1142 GNULIB_LOG1P
1143 GNULIB_LOG10L
1144 GNULIB_LOG10F
1145 GNULIB_LOG10
1146 GNULIB_LOGL
1147 GNULIB_LOGF
1148 GNULIB_LOG
1149 GNULIB_LDEXPL
1150 GNULIB_LDEXPF
1151 GNULIB_ISNANL
1152 GNULIB_ISNAND
1153 GNULIB_ISNANF
1154 GNULIB_ISNAN
1155 GNULIB_ISINF
1156 GNULIB_ISFINITE
1157 GNULIB_ILOGBL
1158 GNULIB_ILOGBF
1159 GNULIB_ILOGB
1160 GNULIB_HYPOTL
1161 GNULIB_HYPOTF
1162 GNULIB_HYPOT
1163 GNULIB_FREXPL
1164 GNULIB_FREXP
1165 GNULIB_FREXPF
1166 GNULIB_FMODL
1167 GNULIB_FMODF
1168 GNULIB_FMOD
1169 GNULIB_FMAL
1170 GNULIB_FMAF
1171 GNULIB_FMA
1172 GNULIB_FLOORL
1173 GNULIB_FLOORF
1174 GNULIB_FLOOR
1175 GNULIB_FABSL
1176 GNULIB_FABSF
1177 GNULIB_EXPM1L
1178 GNULIB_EXPM1F
1179 GNULIB_EXPM1
1180 GNULIB_EXP2L
1181 GNULIB_EXP2F
1182 GNULIB_EXP2
1183 GNULIB_EXPL
1184 GNULIB_EXPF
1185 GNULIB_COSHF
1186 GNULIB_COSL
1187 GNULIB_COSF
1188 GNULIB_COPYSIGNL
1189 GNULIB_COPYSIGNF
1190 GNULIB_COPYSIGN
1191 GNULIB_CEILL
1192 GNULIB_CEILF
1193 GNULIB_CEIL
1194 GNULIB_CBRTL
1195 GNULIB_CBRTF
1196 GNULIB_CBRT
1197 GNULIB_ATAN2F
1198 GNULIB_ATANL
1199 GNULIB_ATANF
1200 GNULIB_ASINL
1201 GNULIB_ASINF
1202 GNULIB_ACOSL
1203 GNULIB_ACOSF
1204 GL_GENERATE_FNMATCH_H_FALSE
1205 GL_GENERATE_FNMATCH_H_TRUE
1206 FNMATCH_H
1207 REPLACE_ITOLD
1208 GL_GENERATE_FLOAT_H_FALSE
1209 GL_GENERATE_FLOAT_H_TRUE
1210 FLOAT_H
1211 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1212 NEXT_FLOAT_H
1213 EOVERFLOW_VALUE
1214 EOVERFLOW_HIDDEN
1215 ENOLINK_VALUE
1216 ENOLINK_HIDDEN
1217 EMULTIHOP_VALUE
1218 EMULTIHOP_HIDDEN
1219 GL_GENERATE_ERRNO_H_FALSE
1220 GL_GENERATE_ERRNO_H_TRUE
1221 ERRNO_H
1222 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1223 NEXT_ERRNO_H
1224 HAVE_DIRENT_H
1225 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1226 NEXT_DIRENT_H
1227 PRAGMA_COLUMNS
1228 PRAGMA_SYSTEM_HEADER
1229 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1230 INCLUDE_NEXT
1231 REPLACE_FDOPENDIR
1232 REPLACE_DIRFD
1233 REPLACE_CLOSEDIR
1234 REPLACE_OPENDIR
1235 HAVE_ALPHASORT
1236 HAVE_SCANDIR
1237 HAVE_FDOPENDIR
1238 HAVE_DECL_FDOPENDIR
1239 HAVE_DECL_DIRFD
1240 HAVE_CLOSEDIR
1241 HAVE_REWINDDIR
1242 HAVE_READDIR
1243 HAVE_OPENDIR
1244 GNULIB_ALPHASORT
1245 GNULIB_SCANDIR
1246 GNULIB_FDOPENDIR
1247 GNULIB_DIRFD
1248 GNULIB_CLOSEDIR
1249 GNULIB_REWINDDIR
1250 GNULIB_READDIR
1251 GNULIB_OPENDIR
1252 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1253 UNISTD_H_HAVE_WINSOCK2_H
1254 REPLACE_WRITE
1255 REPLACE_USLEEP
1256 REPLACE_UNLINKAT
1257 REPLACE_UNLINK
1258 REPLACE_TTYNAME_R
1259 REPLACE_SYMLINK
1260 REPLACE_SLEEP
1261 REPLACE_RMDIR
1262 REPLACE_READLINK
1263 REPLACE_READ
1264 REPLACE_PWRITE
1265 REPLACE_PREAD
1266 REPLACE_LSEEK
1267 REPLACE_LINKAT
1268 REPLACE_LINK
1269 REPLACE_LCHOWN
1270 REPLACE_ISATTY
1271 REPLACE_GETPAGESIZE
1272 REPLACE_GETGROUPS
1273 REPLACE_GETLOGIN_R
1274 REPLACE_GETDOMAINNAME
1275 REPLACE_GETCWD
1276 REPLACE_FTRUNCATE
1277 REPLACE_FCHOWNAT
1278 REPLACE_DUP2
1279 REPLACE_DUP
1280 REPLACE_CLOSE
1281 REPLACE_CHOWN
1282 HAVE_SYS_PARAM_H
1283 HAVE_OS_H
1284 HAVE_DECL_TTYNAME_R
1285 HAVE_DECL_SETHOSTNAME
1286 HAVE_DECL_GETUSERSHELL
1287 HAVE_DECL_GETPAGESIZE
1288 HAVE_DECL_GETLOGIN_R
1289 HAVE_DECL_GETDOMAINNAME
1290 HAVE_DECL_FDATASYNC
1291 HAVE_DECL_FCHDIR
1292 HAVE_DECL_ENVIRON
1293 HAVE_USLEEP
1294 HAVE_UNLINKAT
1295 HAVE_SYMLINKAT
1296 HAVE_SYMLINK
1297 HAVE_SLEEP
1298 HAVE_SETHOSTNAME
1299 HAVE_READLINKAT
1300 HAVE_READLINK
1301 HAVE_PWRITE
1302 HAVE_PREAD
1303 HAVE_PIPE2
1304 HAVE_PIPE
1305 HAVE_LINKAT
1306 HAVE_LINK
1307 HAVE_LCHOWN
1308 HAVE_GROUP_MEMBER
1309 HAVE_GETPAGESIZE
1310 HAVE_GETLOGIN
1311 HAVE_GETHOSTNAME
1312 HAVE_GETGROUPS
1313 HAVE_GETDTABLESIZE
1314 HAVE_FTRUNCATE
1315 HAVE_FSYNC
1316 HAVE_FDATASYNC
1317 HAVE_FCHOWNAT
1318 HAVE_FCHDIR
1319 HAVE_FACCESSAT
1320 HAVE_EUIDACCESS
1321 HAVE_DUP3
1322 HAVE_DUP2
1323 HAVE_CHOWN
1324 GNULIB_WRITE
1325 GNULIB_USLEEP
1326 GNULIB_UNLINKAT
1327 GNULIB_UNLINK
1328 GNULIB_UNISTD_H_SIGPIPE
1329 GNULIB_UNISTD_H_NONBLOCKING
1330 GNULIB_TTYNAME_R
1331 GNULIB_SYMLINKAT
1332 GNULIB_SYMLINK
1333 GNULIB_SLEEP
1334 GNULIB_SETHOSTNAME
1335 GNULIB_RMDIR
1336 GNULIB_READLINKAT
1337 GNULIB_READLINK
1338 GNULIB_READ
1339 GNULIB_PWRITE
1340 GNULIB_PREAD
1341 GNULIB_PIPE2
1342 GNULIB_PIPE
1343 GNULIB_LSEEK
1344 GNULIB_LINKAT
1345 GNULIB_LINK
1346 GNULIB_LCHOWN
1347 GNULIB_ISATTY
1348 GNULIB_GROUP_MEMBER
1349 GNULIB_GETUSERSHELL
1350 GNULIB_GETPAGESIZE
1351 GNULIB_GETLOGIN_R
1352 GNULIB_GETLOGIN
1353 GNULIB_GETHOSTNAME
1354 GNULIB_GETGROUPS
1355 GNULIB_GETDTABLESIZE
1356 GNULIB_GETDOMAINNAME
1357 GNULIB_GETCWD
1358 GNULIB_FTRUNCATE
1359 GNULIB_FSYNC
1360 GNULIB_FDATASYNC
1361 GNULIB_FCHOWNAT
1362 GNULIB_FCHDIR
1363 GNULIB_FACCESSAT
1364 GNULIB_EUIDACCESS
1365 GNULIB_ENVIRON
1366 GNULIB_DUP3
1367 GNULIB_DUP2
1368 GNULIB_DUP
1369 GNULIB_CLOSE
1370 GNULIB_CHOWN
1371 GNULIB_CHDIR
1372 pkglibexecdir
1373 lispdir
1374 GL_GENERATE_ALLOCA_H_FALSE
1375 GL_GENERATE_ALLOCA_H_TRUE
1376 ALLOCA_H
1377 ALLOCA
1378 GL_COND_LIBTOOL_FALSE
1379 GL_COND_LIBTOOL_TRUE
1380 target_os
1381 target_vendor
1382 target_cpu
1383 target
1384 RANLIB
1385 ARFLAGS
1386 AR
1387 EGREP
1388 GREP
1389 CPP
1390 host_os
1391 host_vendor
1392 host_cpu
1393 host
1394 build_os
1395 build_vendor
1396 build_cpu
1397 build
1398 OBJEXT
1399 EXEEXT
1400 ac_ct_CC
1401 CPPFLAGS
1402 LDFLAGS
1403 CFLAGS
1404 CC
1405 MAINT
1406 MAINTAINER_MODE_FALSE
1407 MAINTAINER_MODE_TRUE
1408 target_alias
1409 host_alias
1410 build_alias
1411 LIBS
1412 ECHO_T
1413 ECHO_N
1414 ECHO_C
1415 DEFS
1416 mandir
1417 localedir
1418 libdir
1419 psdir
1420 pdfdir
1421 dvidir
1422 htmldir
1423 infodir
1424 docdir
1425 oldincludedir
1426 includedir
1427 localstatedir
1428 sharedstatedir
1429 sysconfdir
1430 datadir
1431 datarootdir
1432 libexecdir
1433 sbindir
1434 bindir
1435 program_transform_name
1436 prefix
1437 exec_prefix
1438 PACKAGE_URL
1439 PACKAGE_BUGREPORT
1440 PACKAGE_STRING
1441 PACKAGE_VERSION
1442 PACKAGE_TARNAME
1443 PACKAGE_NAME
1444 PATH_SEPARATOR
1445 SHELL'
1446 ac_subst_files=''
1447 ac_user_opts='
1448 enable_option_checking
1449 enable_maintainer_mode
1450 enable_dependency_tracking
1451 '
1452 ac_precious_vars='build_alias
1453 host_alias
1454 target_alias
1455 CC
1456 CFLAGS
1457 LDFLAGS
1458 LIBS
1459 CPPFLAGS
1460 CPP'
1461
1462
1463 # Initialize some variables set by options.
1464 ac_init_help=
1465 ac_init_version=false
1466 ac_unrecognized_opts=
1467 ac_unrecognized_sep=
1468 # The variables have the same names as the options, with
1469 # dashes changed to underlines.
1470 cache_file=/dev/null
1471 exec_prefix=NONE
1472 no_create=
1473 no_recursion=
1474 prefix=NONE
1475 program_prefix=NONE
1476 program_suffix=NONE
1477 program_transform_name=s,x,x,
1478 silent=
1479 site=
1480 srcdir=
1481 verbose=
1482 x_includes=NONE
1483 x_libraries=NONE
1484
1485 # Installation directory options.
1486 # These are left unexpanded so users can "make install exec_prefix=/foo"
1487 # and all the variables that are supposed to be based on exec_prefix
1488 # by default will actually change.
1489 # Use braces instead of parens because sh, perl, etc. also accept them.
1490 # (The list follows the same order as the GNU Coding Standards.)
1491 bindir='${exec_prefix}/bin'
1492 sbindir='${exec_prefix}/sbin'
1493 libexecdir='${exec_prefix}/libexec'
1494 datarootdir='${prefix}/share'
1495 datadir='${datarootdir}'
1496 sysconfdir='${prefix}/etc'
1497 sharedstatedir='${prefix}/com'
1498 localstatedir='${prefix}/var'
1499 includedir='${prefix}/include'
1500 oldincludedir='/usr/include'
1501 docdir='${datarootdir}/doc/${PACKAGE}'
1502 infodir='${datarootdir}/info'
1503 htmldir='${docdir}'
1504 dvidir='${docdir}'
1505 pdfdir='${docdir}'
1506 psdir='${docdir}'
1507 libdir='${exec_prefix}/lib'
1508 localedir='${datarootdir}/locale'
1509 mandir='${datarootdir}/man'
1510
1511 ac_prev=
1512 ac_dashdash=
1513 for ac_option
1514 do
1515 # If the previous option needs an argument, assign it.
1516 if test -n "$ac_prev"; then
1517 eval $ac_prev=\$ac_option
1518 ac_prev=
1519 continue
1520 fi
1521
1522 case $ac_option in
1523 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1524 *) ac_optarg=yes ;;
1525 esac
1526
1527 # Accept the important Cygnus configure options, so we can diagnose typos.
1528
1529 case $ac_dashdash$ac_option in
1530 --)
1531 ac_dashdash=yes ;;
1532
1533 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1534 ac_prev=bindir ;;
1535 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1536 bindir=$ac_optarg ;;
1537
1538 -build | --build | --buil | --bui | --bu)
1539 ac_prev=build_alias ;;
1540 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1541 build_alias=$ac_optarg ;;
1542
1543 -cache-file | --cache-file | --cache-fil | --cache-fi \
1544 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1545 ac_prev=cache_file ;;
1546 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1547 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1548 cache_file=$ac_optarg ;;
1549
1550 --config-cache | -C)
1551 cache_file=config.cache ;;
1552
1553 -datadir | --datadir | --datadi | --datad)
1554 ac_prev=datadir ;;
1555 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1556 datadir=$ac_optarg ;;
1557
1558 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1559 | --dataroo | --dataro | --datar)
1560 ac_prev=datarootdir ;;
1561 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1562 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1563 datarootdir=$ac_optarg ;;
1564
1565 -disable-* | --disable-*)
1566 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1567 # Reject names that are not valid shell variable names.
1568 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1569 as_fn_error "invalid feature name: $ac_useropt"
1570 ac_useropt_orig=$ac_useropt
1571 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1572 case $ac_user_opts in
1573 *"
1574 "enable_$ac_useropt"
1575 "*) ;;
1576 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1577 ac_unrecognized_sep=', ';;
1578 esac
1579 eval enable_$ac_useropt=no ;;
1580
1581 -docdir | --docdir | --docdi | --doc | --do)
1582 ac_prev=docdir ;;
1583 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1584 docdir=$ac_optarg ;;
1585
1586 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1587 ac_prev=dvidir ;;
1588 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1589 dvidir=$ac_optarg ;;
1590
1591 -enable-* | --enable-*)
1592 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1593 # Reject names that are not valid shell variable names.
1594 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1595 as_fn_error "invalid feature name: $ac_useropt"
1596 ac_useropt_orig=$ac_useropt
1597 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1598 case $ac_user_opts in
1599 *"
1600 "enable_$ac_useropt"
1601 "*) ;;
1602 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1603 ac_unrecognized_sep=', ';;
1604 esac
1605 eval enable_$ac_useropt=\$ac_optarg ;;
1606
1607 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1608 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1609 | --exec | --exe | --ex)
1610 ac_prev=exec_prefix ;;
1611 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1612 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1613 | --exec=* | --exe=* | --ex=*)
1614 exec_prefix=$ac_optarg ;;
1615
1616 -gas | --gas | --ga | --g)
1617 # Obsolete; use --with-gas.
1618 with_gas=yes ;;
1619
1620 -help | --help | --hel | --he | -h)
1621 ac_init_help=long ;;
1622 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1623 ac_init_help=recursive ;;
1624 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1625 ac_init_help=short ;;
1626
1627 -host | --host | --hos | --ho)
1628 ac_prev=host_alias ;;
1629 -host=* | --host=* | --hos=* | --ho=*)
1630 host_alias=$ac_optarg ;;
1631
1632 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1633 ac_prev=htmldir ;;
1634 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1635 | --ht=*)
1636 htmldir=$ac_optarg ;;
1637
1638 -includedir | --includedir | --includedi | --included | --include \
1639 | --includ | --inclu | --incl | --inc)
1640 ac_prev=includedir ;;
1641 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1642 | --includ=* | --inclu=* | --incl=* | --inc=*)
1643 includedir=$ac_optarg ;;
1644
1645 -infodir | --infodir | --infodi | --infod | --info | --inf)
1646 ac_prev=infodir ;;
1647 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1648 infodir=$ac_optarg ;;
1649
1650 -libdir | --libdir | --libdi | --libd)
1651 ac_prev=libdir ;;
1652 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1653 libdir=$ac_optarg ;;
1654
1655 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1656 | --libexe | --libex | --libe)
1657 ac_prev=libexecdir ;;
1658 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1659 | --libexe=* | --libex=* | --libe=*)
1660 libexecdir=$ac_optarg ;;
1661
1662 -localedir | --localedir | --localedi | --localed | --locale)
1663 ac_prev=localedir ;;
1664 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1665 localedir=$ac_optarg ;;
1666
1667 -localstatedir | --localstatedir | --localstatedi | --localstated \
1668 | --localstate | --localstat | --localsta | --localst | --locals)
1669 ac_prev=localstatedir ;;
1670 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1671 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1672 localstatedir=$ac_optarg ;;
1673
1674 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1675 ac_prev=mandir ;;
1676 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1677 mandir=$ac_optarg ;;
1678
1679 -nfp | --nfp | --nf)
1680 # Obsolete; use --without-fp.
1681 with_fp=no ;;
1682
1683 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1684 | --no-cr | --no-c | -n)
1685 no_create=yes ;;
1686
1687 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1688 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1689 no_recursion=yes ;;
1690
1691 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1692 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1693 | --oldin | --oldi | --old | --ol | --o)
1694 ac_prev=oldincludedir ;;
1695 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1696 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1697 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1698 oldincludedir=$ac_optarg ;;
1699
1700 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1701 ac_prev=prefix ;;
1702 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1703 prefix=$ac_optarg ;;
1704
1705 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1706 | --program-pre | --program-pr | --program-p)
1707 ac_prev=program_prefix ;;
1708 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1709 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1710 program_prefix=$ac_optarg ;;
1711
1712 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1713 | --program-suf | --program-su | --program-s)
1714 ac_prev=program_suffix ;;
1715 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1716 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1717 program_suffix=$ac_optarg ;;
1718
1719 -program-transform-name | --program-transform-name \
1720 | --program-transform-nam | --program-transform-na \
1721 | --program-transform-n | --program-transform- \
1722 | --program-transform | --program-transfor \
1723 | --program-transfo | --program-transf \
1724 | --program-trans | --program-tran \
1725 | --progr-tra | --program-tr | --program-t)
1726 ac_prev=program_transform_name ;;
1727 -program-transform-name=* | --program-transform-name=* \
1728 | --program-transform-nam=* | --program-transform-na=* \
1729 | --program-transform-n=* | --program-transform-=* \
1730 | --program-transform=* | --program-transfor=* \
1731 | --program-transfo=* | --program-transf=* \
1732 | --program-trans=* | --program-tran=* \
1733 | --progr-tra=* | --program-tr=* | --program-t=*)
1734 program_transform_name=$ac_optarg ;;
1735
1736 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1737 ac_prev=pdfdir ;;
1738 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1739 pdfdir=$ac_optarg ;;
1740
1741 -psdir | --psdir | --psdi | --psd | --ps)
1742 ac_prev=psdir ;;
1743 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1744 psdir=$ac_optarg ;;
1745
1746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1747 | -silent | --silent | --silen | --sile | --sil)
1748 silent=yes ;;
1749
1750 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1751 ac_prev=sbindir ;;
1752 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1753 | --sbi=* | --sb=*)
1754 sbindir=$ac_optarg ;;
1755
1756 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1757 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1758 | --sharedst | --shareds | --shared | --share | --shar \
1759 | --sha | --sh)
1760 ac_prev=sharedstatedir ;;
1761 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1762 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1763 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1764 | --sha=* | --sh=*)
1765 sharedstatedir=$ac_optarg ;;
1766
1767 -site | --site | --sit)
1768 ac_prev=site ;;
1769 -site=* | --site=* | --sit=*)
1770 site=$ac_optarg ;;
1771
1772 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1773 ac_prev=srcdir ;;
1774 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1775 srcdir=$ac_optarg ;;
1776
1777 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1778 | --syscon | --sysco | --sysc | --sys | --sy)
1779 ac_prev=sysconfdir ;;
1780 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1781 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1782 sysconfdir=$ac_optarg ;;
1783
1784 -target | --target | --targe | --targ | --tar | --ta | --t)
1785 ac_prev=target_alias ;;
1786 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1787 target_alias=$ac_optarg ;;
1788
1789 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1790 verbose=yes ;;
1791
1792 -version | --version | --versio | --versi | --vers | -V)
1793 ac_init_version=: ;;
1794
1795 -with-* | --with-*)
1796 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1797 # Reject names that are not valid shell variable names.
1798 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1799 as_fn_error "invalid package name: $ac_useropt"
1800 ac_useropt_orig=$ac_useropt
1801 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1802 case $ac_user_opts in
1803 *"
1804 "with_$ac_useropt"
1805 "*) ;;
1806 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1807 ac_unrecognized_sep=', ';;
1808 esac
1809 eval with_$ac_useropt=\$ac_optarg ;;
1810
1811 -without-* | --without-*)
1812 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1813 # Reject names that are not valid shell variable names.
1814 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1815 as_fn_error "invalid package name: $ac_useropt"
1816 ac_useropt_orig=$ac_useropt
1817 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1818 case $ac_user_opts in
1819 *"
1820 "with_$ac_useropt"
1821 "*) ;;
1822 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1823 ac_unrecognized_sep=', ';;
1824 esac
1825 eval with_$ac_useropt=no ;;
1826
1827 --x)
1828 # Obsolete; use --with-x.
1829 with_x=yes ;;
1830
1831 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1832 | --x-incl | --x-inc | --x-in | --x-i)
1833 ac_prev=x_includes ;;
1834 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1835 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1836 x_includes=$ac_optarg ;;
1837
1838 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1839 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1840 ac_prev=x_libraries ;;
1841 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1842 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1843 x_libraries=$ac_optarg ;;
1844
1845 -*) as_fn_error "unrecognized option: \`$ac_option'
1846 Try \`$0 --help' for more information."
1847 ;;
1848
1849 *=*)
1850 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1851 # Reject names that are not valid shell variable names.
1852 case $ac_envvar in #(
1853 '' | [0-9]* | *[!_$as_cr_alnum]* )
1854 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1855 esac
1856 eval $ac_envvar=\$ac_optarg
1857 export $ac_envvar ;;
1858
1859 *)
1860 # FIXME: should be removed in autoconf 3.0.
1861 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1862 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1863 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1864 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1865 ;;
1866
1867 esac
1868 done
1869
1870 if test -n "$ac_prev"; then
1871 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1872 as_fn_error "missing argument to $ac_option"
1873 fi
1874
1875 if test -n "$ac_unrecognized_opts"; then
1876 case $enable_option_checking in
1877 no) ;;
1878 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1879 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1880 esac
1881 fi
1882
1883 # Check all directory arguments for consistency.
1884 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1885 datadir sysconfdir sharedstatedir localstatedir includedir \
1886 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1887 libdir localedir mandir
1888 do
1889 eval ac_val=\$$ac_var
1890 # Remove trailing slashes.
1891 case $ac_val in
1892 */ )
1893 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1894 eval $ac_var=\$ac_val;;
1895 esac
1896 # Be sure to have absolute directory names.
1897 case $ac_val in
1898 [\\/$]* | ?:[\\/]* ) continue;;
1899 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1900 esac
1901 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1902 done
1903
1904 # There might be people who depend on the old broken behavior: `$host'
1905 # used to hold the argument of --host etc.
1906 # FIXME: To remove some day.
1907 build=$build_alias
1908 host=$host_alias
1909 target=$target_alias
1910
1911 # FIXME: To remove some day.
1912 if test "x$host_alias" != x; then
1913 if test "x$build_alias" = x; then
1914 cross_compiling=maybe
1915 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1916 If a cross compiler is detected then cross compile mode will be used." >&2
1917 elif test "x$build_alias" != "x$host_alias"; then
1918 cross_compiling=yes
1919 fi
1920 fi
1921
1922 ac_tool_prefix=
1923 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1924
1925 test "$silent" = yes && exec 6>/dev/null
1926
1927
1928 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1929 ac_ls_di=`ls -di .` &&
1930 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1931 as_fn_error "working directory cannot be determined"
1932 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1933 as_fn_error "pwd does not report name of working directory"
1934
1935
1936 # Find the source files, if location was not specified.
1937 if test -z "$srcdir"; then
1938 ac_srcdir_defaulted=yes
1939 # Try the directory containing this script, then the parent directory.
1940 ac_confdir=`$as_dirname -- "$as_myself" ||
1941 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1942 X"$as_myself" : 'X\(//\)[^/]' \| \
1943 X"$as_myself" : 'X\(//\)$' \| \
1944 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1945 $as_echo X"$as_myself" |
1946 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1947 s//\1/
1948 q
1949 }
1950 /^X\(\/\/\)[^/].*/{
1951 s//\1/
1952 q
1953 }
1954 /^X\(\/\/\)$/{
1955 s//\1/
1956 q
1957 }
1958 /^X\(\/\).*/{
1959 s//\1/
1960 q
1961 }
1962 s/.*/./; q'`
1963 srcdir=$ac_confdir
1964 if test ! -r "$srcdir/$ac_unique_file"; then
1965 srcdir=..
1966 fi
1967 else
1968 ac_srcdir_defaulted=no
1969 fi
1970 if test ! -r "$srcdir/$ac_unique_file"; then
1971 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1972 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1973 fi
1974 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1975 ac_abs_confdir=`(
1976 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1977 pwd)`
1978 # When building in place, set srcdir=.
1979 if test "$ac_abs_confdir" = "$ac_pwd"; then
1980 srcdir=.
1981 fi
1982 # Remove unnecessary trailing slashes from srcdir.
1983 # Double slashes in file names in object file debugging info
1984 # mess up M-x gdb in Emacs.
1985 case $srcdir in
1986 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1987 esac
1988 for ac_var in $ac_precious_vars; do
1989 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1990 eval ac_env_${ac_var}_value=\$${ac_var}
1991 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1992 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1993 done
1994
1995 #
1996 # Report the --help message.
1997 #
1998 if test "$ac_init_help" = "long"; then
1999 # Omit some internal or obsolete options to make the list less imposing.
2000 # This message is too long to be a string in the A/UX 3.1 sh.
2001 cat <<_ACEOF
2002 \`configure' configures this package to adapt to many kinds of systems.
2003
2004 Usage: $0 [OPTION]... [VAR=VALUE]...
2005
2006 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2007 VAR=VALUE. See below for descriptions of some of the useful variables.
2008
2009 Defaults for the options are specified in brackets.
2010
2011 Configuration:
2012 -h, --help display this help and exit
2013 --help=short display options specific to this package
2014 --help=recursive display the short help of all the included packages
2015 -V, --version display version information and exit
2016 -q, --quiet, --silent do not print \`checking...' messages
2017 --cache-file=FILE cache test results in FILE [disabled]
2018 -C, --config-cache alias for \`--cache-file=config.cache'
2019 -n, --no-create do not create output files
2020 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2021
2022 Installation directories:
2023 --prefix=PREFIX install architecture-independent files in PREFIX
2024 [$ac_default_prefix]
2025 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2026 [PREFIX]
2027
2028 By default, \`make install' will install all the files in
2029 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2030 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2031 for instance \`--prefix=\$HOME'.
2032
2033 For better control, use the options below.
2034
2035 Fine tuning of the installation directories:
2036 --bindir=DIR user executables [EPREFIX/bin]
2037 --sbindir=DIR system admin executables [EPREFIX/sbin]
2038 --libexecdir=DIR program executables [EPREFIX/libexec]
2039 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2040 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2041 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2042 --libdir=DIR object code libraries [EPREFIX/lib]
2043 --includedir=DIR C header files [PREFIX/include]
2044 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2045 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2046 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2047 --infodir=DIR info documentation [DATAROOTDIR/info]
2048 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2049 --mandir=DIR man documentation [DATAROOTDIR/man]
2050 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
2051 --htmldir=DIR html documentation [DOCDIR]
2052 --dvidir=DIR dvi documentation [DOCDIR]
2053 --pdfdir=DIR pdf documentation [DOCDIR]
2054 --psdir=DIR ps documentation [DOCDIR]
2055 _ACEOF
2056
2057 cat <<\_ACEOF
2058
2059 Program names:
2060 --program-prefix=PREFIX prepend PREFIX to installed program names
2061 --program-suffix=SUFFIX append SUFFIX to installed program names
2062 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2063
2064 System types:
2065 --build=BUILD configure for building on BUILD [guessed]
2066 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2067 --target=TARGET configure for building compilers for TARGET [HOST]
2068 _ACEOF
2069 fi
2070
2071 if test -n "$ac_init_help"; then
2072
2073 cat <<\_ACEOF
2074
2075 Optional Features:
2076 --disable-option-checking ignore unrecognized --enable/--with options
2077 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2078 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2079 --enable-maintainer-mode enable make rules and dependencies not useful
2080 (and sometimes confusing) to the casual installer
2081 --disable-dependency-tracking speeds up one-time build
2082 --enable-dependency-tracking do not reject slow dependency extractors
2083
2084 Some influential environment variables:
2085 CC C compiler command
2086 CFLAGS C compiler flags
2087 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2088 nonstandard directory <lib dir>
2089 LIBS libraries to pass to the linker, e.g. -l<library>
2090 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2091 you have headers in a nonstandard directory <include dir>
2092 CPP C preprocessor
2093
2094 Use these variables to override the choices made by `configure' or to help
2095 it to find libraries and programs with nonstandard names/locations.
2096
2097 Report bugs to the package provider.
2098 _ACEOF
2099 ac_status=$?
2100 fi
2101
2102 if test "$ac_init_help" = "recursive"; then
2103 # If there are subdirs, report their specific --help.
2104 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2105 test -d "$ac_dir" ||
2106 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2107 continue
2108 ac_builddir=.
2109
2110 case "$ac_dir" in
2111 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2112 *)
2113 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2114 # A ".." for each directory in $ac_dir_suffix.
2115 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2116 case $ac_top_builddir_sub in
2117 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2118 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2119 esac ;;
2120 esac
2121 ac_abs_top_builddir=$ac_pwd
2122 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2123 # for backward compatibility:
2124 ac_top_builddir=$ac_top_build_prefix
2125
2126 case $srcdir in
2127 .) # We are building in place.
2128 ac_srcdir=.
2129 ac_top_srcdir=$ac_top_builddir_sub
2130 ac_abs_top_srcdir=$ac_pwd ;;
2131 [\\/]* | ?:[\\/]* ) # Absolute name.
2132 ac_srcdir=$srcdir$ac_dir_suffix;
2133 ac_top_srcdir=$srcdir
2134 ac_abs_top_srcdir=$srcdir ;;
2135 *) # Relative name.
2136 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2137 ac_top_srcdir=$ac_top_build_prefix$srcdir
2138 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2139 esac
2140 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2141
2142 cd "$ac_dir" || { ac_status=$?; continue; }
2143 # Check for guested configure.
2144 if test -f "$ac_srcdir/configure.gnu"; then
2145 echo &&
2146 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2147 elif test -f "$ac_srcdir/configure"; then
2148 echo &&
2149 $SHELL "$ac_srcdir/configure" --help=recursive
2150 else
2151 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2152 fi || ac_status=$?
2153 cd "$ac_pwd" || { ac_status=$?; break; }
2154 done
2155 fi
2156
2157 test -n "$ac_init_help" && exit $ac_status
2158 if $ac_init_version; then
2159 cat <<\_ACEOF
2160 configure
2161 generated by GNU Autoconf 2.64
2162
2163 Copyright (C) 2009 Free Software Foundation, Inc.
2164 This configure script is free software; the Free Software Foundation
2165 gives unlimited permission to copy, distribute and modify it.
2166 _ACEOF
2167 exit
2168 fi
2169
2170 ## ------------------------ ##
2171 ## Autoconf initialization. ##
2172 ## ------------------------ ##
2173
2174 # ac_fn_c_try_compile LINENO
2175 # --------------------------
2176 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2177 ac_fn_c_try_compile ()
2178 {
2179 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2180 rm -f conftest.$ac_objext
2181 if { { ac_try="$ac_compile"
2182 case "(($ac_try" in
2183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2184 *) ac_try_echo=$ac_try;;
2185 esac
2186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2187 $as_echo "$ac_try_echo"; } >&5
2188 (eval "$ac_compile") 2>conftest.err
2189 ac_status=$?
2190 if test -s conftest.err; then
2191 grep -v '^ *+' conftest.err >conftest.er1
2192 cat conftest.er1 >&5
2193 mv -f conftest.er1 conftest.err
2194 fi
2195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2196 test $ac_status = 0; } && {
2197 test -z "$ac_c_werror_flag" ||
2198 test ! -s conftest.err
2199 } && test -s conftest.$ac_objext; then :
2200 ac_retval=0
2201 else
2202 $as_echo "$as_me: failed program was:" >&5
2203 sed 's/^/| /' conftest.$ac_ext >&5
2204
2205 ac_retval=1
2206 fi
2207 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2208 return $ac_retval
2209
2210 } # ac_fn_c_try_compile
2211
2212 # ac_fn_c_try_cpp LINENO
2213 # ----------------------
2214 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2215 ac_fn_c_try_cpp ()
2216 {
2217 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2218 if { { ac_try="$ac_cpp conftest.$ac_ext"
2219 case "(($ac_try" in
2220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2221 *) ac_try_echo=$ac_try;;
2222 esac
2223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2224 $as_echo "$ac_try_echo"; } >&5
2225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2226 ac_status=$?
2227 if test -s conftest.err; then
2228 grep -v '^ *+' conftest.err >conftest.er1
2229 cat conftest.er1 >&5
2230 mv -f conftest.er1 conftest.err
2231 fi
2232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2233 test $ac_status = 0; } >/dev/null && {
2234 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2235 test ! -s conftest.err
2236 }; then :
2237 ac_retval=0
2238 else
2239 $as_echo "$as_me: failed program was:" >&5
2240 sed 's/^/| /' conftest.$ac_ext >&5
2241
2242 ac_retval=1
2243 fi
2244 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2245 return $ac_retval
2246
2247 } # ac_fn_c_try_cpp
2248
2249 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2250 # -------------------------------------------------------
2251 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2252 # the include files in INCLUDES and setting the cache variable VAR
2253 # accordingly.
2254 ac_fn_c_check_header_mongrel ()
2255 {
2256 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2257 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2259 $as_echo_n "checking for $2... " >&6; }
2260 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2261 $as_echo_n "(cached) " >&6
2262 fi
2263 eval ac_res=\$$3
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2265 $as_echo "$ac_res" >&6; }
2266 else
2267 # Is the header compilable?
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2269 $as_echo_n "checking $2 usability... " >&6; }
2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271 /* end confdefs.h. */
2272 $4
2273 #include <$2>
2274 _ACEOF
2275 if ac_fn_c_try_compile "$LINENO"; then :
2276 ac_header_compiler=yes
2277 else
2278 ac_header_compiler=no
2279 fi
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2282 $as_echo "$ac_header_compiler" >&6; }
2283
2284 # Is the header present?
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2286 $as_echo_n "checking $2 presence... " >&6; }
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2289 #include <$2>
2290 _ACEOF
2291 if ac_fn_c_try_cpp "$LINENO"; then :
2292 ac_header_preproc=yes
2293 else
2294 ac_header_preproc=no
2295 fi
2296 rm -f conftest.err conftest.$ac_ext
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2298 $as_echo "$ac_header_preproc" >&6; }
2299
2300 # So? What about this header?
2301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2302 yes:no: )
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2304 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2306 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2307 ;;
2308 no:yes:* )
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2310 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2312 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2314 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2316 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2318 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2319 ;;
2320 esac
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2322 $as_echo_n "checking for $2... " >&6; }
2323 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2324 $as_echo_n "(cached) " >&6
2325 else
2326 eval "$3=\$ac_header_compiler"
2327 fi
2328 eval ac_res=\$$3
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2330 $as_echo "$ac_res" >&6; }
2331 fi
2332 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2333
2334 } # ac_fn_c_check_header_mongrel
2335
2336 # ac_fn_c_try_run LINENO
2337 # ----------------------
2338 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2339 # that executables *can* be run.
2340 ac_fn_c_try_run ()
2341 {
2342 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2343 if { { ac_try="$ac_link"
2344 case "(($ac_try" in
2345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2346 *) ac_try_echo=$ac_try;;
2347 esac
2348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2349 $as_echo "$ac_try_echo"; } >&5
2350 (eval "$ac_link") 2>&5
2351 ac_status=$?
2352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2353 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2354 { { case "(($ac_try" in
2355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2356 *) ac_try_echo=$ac_try;;
2357 esac
2358 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2359 $as_echo "$ac_try_echo"; } >&5
2360 (eval "$ac_try") 2>&5
2361 ac_status=$?
2362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2363 test $ac_status = 0; }; }; then :
2364 ac_retval=0
2365 else
2366 $as_echo "$as_me: program exited with status $ac_status" >&5
2367 $as_echo "$as_me: failed program was:" >&5
2368 sed 's/^/| /' conftest.$ac_ext >&5
2369
2370 ac_retval=$ac_status
2371 fi
2372 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2373 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2374 return $ac_retval
2375
2376 } # ac_fn_c_try_run
2377
2378 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2379 # -------------------------------------------------------
2380 # Tests whether HEADER exists and can be compiled using the include files in
2381 # INCLUDES, setting the cache variable VAR accordingly.
2382 ac_fn_c_check_header_compile ()
2383 {
2384 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2386 $as_echo_n "checking for $2... " >&6; }
2387 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2388 $as_echo_n "(cached) " >&6
2389 else
2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h. */
2392 $4
2393 #include <$2>
2394 _ACEOF
2395 if ac_fn_c_try_compile "$LINENO"; then :
2396 eval "$3=yes"
2397 else
2398 eval "$3=no"
2399 fi
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2401 fi
2402 eval ac_res=\$$3
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2404 $as_echo "$ac_res" >&6; }
2405 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2406
2407 } # ac_fn_c_check_header_compile
2408
2409 # ac_fn_c_try_link LINENO
2410 # -----------------------
2411 # Try to link conftest.$ac_ext, and return whether this succeeded.
2412 ac_fn_c_try_link ()
2413 {
2414 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2415 rm -f conftest.$ac_objext conftest$ac_exeext
2416 if { { ac_try="$ac_link"
2417 case "(($ac_try" in
2418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419 *) ac_try_echo=$ac_try;;
2420 esac
2421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2422 $as_echo "$ac_try_echo"; } >&5
2423 (eval "$ac_link") 2>conftest.err
2424 ac_status=$?
2425 if test -s conftest.err; then
2426 grep -v '^ *+' conftest.err >conftest.er1
2427 cat conftest.er1 >&5
2428 mv -f conftest.er1 conftest.err
2429 fi
2430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2431 test $ac_status = 0; } && {
2432 test -z "$ac_c_werror_flag" ||
2433 test ! -s conftest.err
2434 } && test -s conftest$ac_exeext && {
2435 test "$cross_compiling" = yes ||
2436 $as_test_x conftest$ac_exeext
2437 }; then :
2438 ac_retval=0
2439 else
2440 $as_echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2442
2443 ac_retval=1
2444 fi
2445 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2446 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2447 # interfere with the next link command; also delete a directory that is
2448 # left behind by Apple's compiler. We do this before executing the actions.
2449 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2450 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2451 return $ac_retval
2452
2453 } # ac_fn_c_try_link
2454
2455 # ac_fn_c_check_func LINENO FUNC VAR
2456 # ----------------------------------
2457 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2458 ac_fn_c_check_func ()
2459 {
2460 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2462 $as_echo_n "checking for $2... " >&6; }
2463 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2464 $as_echo_n "(cached) " >&6
2465 else
2466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467 /* end confdefs.h. */
2468 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2470 #define $2 innocuous_$2
2471
2472 /* System header to define __stub macros and hopefully few prototypes,
2473 which can conflict with char $2 (); below.
2474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2475 <limits.h> exists even on freestanding compilers. */
2476
2477 #ifdef __STDC__
2478 # include <limits.h>
2479 #else
2480 # include <assert.h>
2481 #endif
2482
2483 #undef $2
2484
2485 /* Override any GCC internal prototype to avoid an error.
2486 Use char because int might match the return type of a GCC
2487 builtin and then its argument prototype would still apply. */
2488 #ifdef __cplusplus
2489 extern "C"
2490 #endif
2491 char $2 ();
2492 /* The GNU C library defines this for functions which it implements
2493 to always fail with ENOSYS. Some functions are actually named
2494 something starting with __ and the normal name is an alias. */
2495 #if defined __stub_$2 || defined __stub___$2
2496 choke me
2497 #endif
2498
2499 int
2500 main ()
2501 {
2502 return $2 ();
2503 ;
2504 return 0;
2505 }
2506 _ACEOF
2507 if ac_fn_c_try_link "$LINENO"; then :
2508 eval "$3=yes"
2509 else
2510 eval "$3=no"
2511 fi
2512 rm -f core conftest.err conftest.$ac_objext \
2513 conftest$ac_exeext conftest.$ac_ext
2514 fi
2515 eval ac_res=\$$3
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2517 $as_echo "$ac_res" >&6; }
2518 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2519
2520 } # ac_fn_c_check_func
2521
2522 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2523 # --------------------------------------------
2524 # Tries to find the compile-time value of EXPR in a program that includes
2525 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2526 # computed
2527 ac_fn_c_compute_int ()
2528 {
2529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2530 if test "$cross_compiling" = yes; then
2531 # Depending upon the size, compute the lo and hi bounds.
2532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2533 /* end confdefs.h. */
2534 $4
2535 int
2536 main ()
2537 {
2538 static int test_array [1 - 2 * !(($2) >= 0)];
2539 test_array [0] = 0
2540
2541 ;
2542 return 0;
2543 }
2544 _ACEOF
2545 if ac_fn_c_try_compile "$LINENO"; then :
2546 ac_lo=0 ac_mid=0
2547 while :; do
2548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2549 /* end confdefs.h. */
2550 $4
2551 int
2552 main ()
2553 {
2554 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2555 test_array [0] = 0
2556
2557 ;
2558 return 0;
2559 }
2560 _ACEOF
2561 if ac_fn_c_try_compile "$LINENO"; then :
2562 ac_hi=$ac_mid; break
2563 else
2564 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2565 if test $ac_lo -le $ac_mid; then
2566 ac_lo= ac_hi=
2567 break
2568 fi
2569 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2570 fi
2571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2572 done
2573 else
2574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2575 /* end confdefs.h. */
2576 $4
2577 int
2578 main ()
2579 {
2580 static int test_array [1 - 2 * !(($2) < 0)];
2581 test_array [0] = 0
2582
2583 ;
2584 return 0;
2585 }
2586 _ACEOF
2587 if ac_fn_c_try_compile "$LINENO"; then :
2588 ac_hi=-1 ac_mid=-1
2589 while :; do
2590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2591 /* end confdefs.h. */
2592 $4
2593 int
2594 main ()
2595 {
2596 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2597 test_array [0] = 0
2598
2599 ;
2600 return 0;
2601 }
2602 _ACEOF
2603 if ac_fn_c_try_compile "$LINENO"; then :
2604 ac_lo=$ac_mid; break
2605 else
2606 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2607 if test $ac_mid -le $ac_hi; then
2608 ac_lo= ac_hi=
2609 break
2610 fi
2611 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2612 fi
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614 done
2615 else
2616 ac_lo= ac_hi=
2617 fi
2618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619 fi
2620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2621 # Binary search between lo and hi bounds.
2622 while test "x$ac_lo" != "x$ac_hi"; do
2623 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2625 /* end confdefs.h. */
2626 $4
2627 int
2628 main ()
2629 {
2630 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2631 test_array [0] = 0
2632
2633 ;
2634 return 0;
2635 }
2636 _ACEOF
2637 if ac_fn_c_try_compile "$LINENO"; then :
2638 ac_hi=$ac_mid
2639 else
2640 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2641 fi
2642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2643 done
2644 case $ac_lo in #((
2645 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2646 '') ac_retval=1 ;;
2647 esac
2648 else
2649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2650 /* end confdefs.h. */
2651 $4
2652 static long int longval () { return $2; }
2653 static unsigned long int ulongval () { return $2; }
2654 #include <stdio.h>
2655 #include <stdlib.h>
2656 int
2657 main ()
2658 {
2659
2660 FILE *f = fopen ("conftest.val", "w");
2661 if (! f)
2662 return 1;
2663 if (($2) < 0)
2664 {
2665 long int i = longval ();
2666 if (i != ($2))
2667 return 1;
2668 fprintf (f, "%ld", i);
2669 }
2670 else
2671 {
2672 unsigned long int i = ulongval ();
2673 if (i != ($2))
2674 return 1;
2675 fprintf (f, "%lu", i);
2676 }
2677 /* Do not output a trailing newline, as this causes \r\n confusion
2678 on some platforms. */
2679 return ferror (f) || fclose (f) != 0;
2680
2681 ;
2682 return 0;
2683 }
2684 _ACEOF
2685 if ac_fn_c_try_run "$LINENO"; then :
2686 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2687 else
2688 ac_retval=1
2689 fi
2690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2691 conftest.$ac_objext conftest.beam conftest.$ac_ext
2692 rm -f conftest.val
2693
2694 fi
2695 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2696 return $ac_retval
2697
2698 } # ac_fn_c_compute_int
2699
2700 # ac_fn_c_check_decl LINENO SYMBOL VAR
2701 # ------------------------------------
2702 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2703 ac_fn_c_check_decl ()
2704 {
2705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2707 $as_echo_n "checking whether $2 is declared... " >&6; }
2708 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2709 $as_echo_n "(cached) " >&6
2710 else
2711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2712 /* end confdefs.h. */
2713 $4
2714 int
2715 main ()
2716 {
2717 #ifndef $2
2718 (void) $2;
2719 #endif
2720
2721 ;
2722 return 0;
2723 }
2724 _ACEOF
2725 if ac_fn_c_try_compile "$LINENO"; then :
2726 eval "$3=yes"
2727 else
2728 eval "$3=no"
2729 fi
2730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2731 fi
2732 eval ac_res=\$$3
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2734 $as_echo "$ac_res" >&6; }
2735 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2736
2737 } # ac_fn_c_check_decl
2738
2739 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2740 # -------------------------------------------
2741 # Tests whether TYPE exists after having included INCLUDES, setting cache
2742 # variable VAR accordingly.
2743 ac_fn_c_check_type ()
2744 {
2745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2747 $as_echo_n "checking for $2... " >&6; }
2748 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2749 $as_echo_n "(cached) " >&6
2750 else
2751 eval "$3=no"
2752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2753 /* end confdefs.h. */
2754 $4
2755 int
2756 main ()
2757 {
2758 if (sizeof ($2))
2759 return 0;
2760 ;
2761 return 0;
2762 }
2763 _ACEOF
2764 if ac_fn_c_try_compile "$LINENO"; then :
2765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2766 /* end confdefs.h. */
2767 $4
2768 int
2769 main ()
2770 {
2771 if (sizeof (($2)))
2772 return 0;
2773 ;
2774 return 0;
2775 }
2776 _ACEOF
2777 if ac_fn_c_try_compile "$LINENO"; then :
2778
2779 else
2780 eval "$3=yes"
2781 fi
2782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2783 fi
2784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2785 fi
2786 eval ac_res=\$$3
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2788 $as_echo "$ac_res" >&6; }
2789 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2790
2791 } # ac_fn_c_check_type
2792 cat >config.log <<_ACEOF
2793 This file contains any messages produced by compilers while
2794 running configure, to aid debugging if configure makes a mistake.
2795
2796 It was created by $as_me, which was
2797 generated by GNU Autoconf 2.64. Invocation command line was
2798
2799 $ $0 $@
2800
2801 _ACEOF
2802 exec 5>>config.log
2803 {
2804 cat <<_ASUNAME
2805 ## --------- ##
2806 ## Platform. ##
2807 ## --------- ##
2808
2809 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2810 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2811 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2812 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2813 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2814
2815 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2816 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2817
2818 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2819 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2820 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2821 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2822 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2823 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2824 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2825
2826 _ASUNAME
2827
2828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2830 do
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
2833 $as_echo "PATH: $as_dir"
2834 done
2835 IFS=$as_save_IFS
2836
2837 } >&5
2838
2839 cat >&5 <<_ACEOF
2840
2841
2842 ## ----------- ##
2843 ## Core tests. ##
2844 ## ----------- ##
2845
2846 _ACEOF
2847
2848
2849 # Keep a trace of the command line.
2850 # Strip out --no-create and --no-recursion so they do not pile up.
2851 # Strip out --silent because we don't want to record it for future runs.
2852 # Also quote any args containing shell meta-characters.
2853 # Make two passes to allow for proper duplicate-argument suppression.
2854 ac_configure_args=
2855 ac_configure_args0=
2856 ac_configure_args1=
2857 ac_must_keep_next=false
2858 for ac_pass in 1 2
2859 do
2860 for ac_arg
2861 do
2862 case $ac_arg in
2863 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2864 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2865 | -silent | --silent | --silen | --sile | --sil)
2866 continue ;;
2867 *\'*)
2868 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2869 esac
2870 case $ac_pass in
2871 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2872 2)
2873 as_fn_append ac_configure_args1 " '$ac_arg'"
2874 if test $ac_must_keep_next = true; then
2875 ac_must_keep_next=false # Got value, back to normal.
2876 else
2877 case $ac_arg in
2878 *=* | --config-cache | -C | -disable-* | --disable-* \
2879 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2880 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2881 | -with-* | --with-* | -without-* | --without-* | --x)
2882 case "$ac_configure_args0 " in
2883 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2884 esac
2885 ;;
2886 -* ) ac_must_keep_next=true ;;
2887 esac
2888 fi
2889 as_fn_append ac_configure_args " '$ac_arg'"
2890 ;;
2891 esac
2892 done
2893 done
2894 { ac_configure_args0=; unset ac_configure_args0;}
2895 { ac_configure_args1=; unset ac_configure_args1;}
2896
2897 # When interrupted or exit'd, cleanup temporary files, and complete
2898 # config.log. We remove comments because anyway the quotes in there
2899 # would cause problems or look ugly.
2900 # WARNING: Use '\'' to represent an apostrophe within the trap.
2901 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2902 trap 'exit_status=$?
2903 # Save into config.log some information that might help in debugging.
2904 {
2905 echo
2906
2907 cat <<\_ASBOX
2908 ## ---------------- ##
2909 ## Cache variables. ##
2910 ## ---------------- ##
2911 _ASBOX
2912 echo
2913 # The following way of writing the cache mishandles newlines in values,
2914 (
2915 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2916 eval ac_val=\$$ac_var
2917 case $ac_val in #(
2918 *${as_nl}*)
2919 case $ac_var in #(
2920 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2921 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2922 esac
2923 case $ac_var in #(
2924 _ | IFS | as_nl) ;; #(
2925 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2926 *) { eval $ac_var=; unset $ac_var;} ;;
2927 esac ;;
2928 esac
2929 done
2930 (set) 2>&1 |
2931 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2932 *${as_nl}ac_space=\ *)
2933 sed -n \
2934 "s/'\''/'\''\\\\'\'''\''/g;
2935 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2936 ;; #(
2937 *)
2938 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2939 ;;
2940 esac |
2941 sort
2942 )
2943 echo
2944
2945 cat <<\_ASBOX
2946 ## ----------------- ##
2947 ## Output variables. ##
2948 ## ----------------- ##
2949 _ASBOX
2950 echo
2951 for ac_var in $ac_subst_vars
2952 do
2953 eval ac_val=\$$ac_var
2954 case $ac_val in
2955 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2956 esac
2957 $as_echo "$ac_var='\''$ac_val'\''"
2958 done | sort
2959 echo
2960
2961 if test -n "$ac_subst_files"; then
2962 cat <<\_ASBOX
2963 ## ------------------- ##
2964 ## File substitutions. ##
2965 ## ------------------- ##
2966 _ASBOX
2967 echo
2968 for ac_var in $ac_subst_files
2969 do
2970 eval ac_val=\$$ac_var
2971 case $ac_val in
2972 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2973 esac
2974 $as_echo "$ac_var='\''$ac_val'\''"
2975 done | sort
2976 echo
2977 fi
2978
2979 if test -s confdefs.h; then
2980 cat <<\_ASBOX
2981 ## ----------- ##
2982 ## confdefs.h. ##
2983 ## ----------- ##
2984 _ASBOX
2985 echo
2986 cat confdefs.h
2987 echo
2988 fi
2989 test "$ac_signal" != 0 &&
2990 $as_echo "$as_me: caught signal $ac_signal"
2991 $as_echo "$as_me: exit $exit_status"
2992 } >&5
2993 rm -f core *.core core.conftest.* &&
2994 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2995 exit $exit_status
2996 ' 0
2997 for ac_signal in 1 2 13 15; do
2998 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2999 done
3000 ac_signal=0
3001
3002 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3003 rm -f -r conftest* confdefs.h
3004
3005 $as_echo "/* confdefs.h */" > confdefs.h
3006
3007 # Predefined preprocessor variables.
3008
3009 cat >>confdefs.h <<_ACEOF
3010 #define PACKAGE_NAME "$PACKAGE_NAME"
3011 _ACEOF
3012
3013 cat >>confdefs.h <<_ACEOF
3014 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3015 _ACEOF
3016
3017 cat >>confdefs.h <<_ACEOF
3018 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3019 _ACEOF
3020
3021 cat >>confdefs.h <<_ACEOF
3022 #define PACKAGE_STRING "$PACKAGE_STRING"
3023 _ACEOF
3024
3025 cat >>confdefs.h <<_ACEOF
3026 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3027 _ACEOF
3028
3029 cat >>confdefs.h <<_ACEOF
3030 #define PACKAGE_URL "$PACKAGE_URL"
3031 _ACEOF
3032
3033
3034 # Let the site file select an alternate cache file if it wants to.
3035 # Prefer an explicitly selected file to automatically selected ones.
3036 ac_site_file1=NONE
3037 ac_site_file2=NONE
3038 if test -n "$CONFIG_SITE"; then
3039 ac_site_file1=$CONFIG_SITE
3040 elif test "x$prefix" != xNONE; then
3041 ac_site_file1=$prefix/share/config.site
3042 ac_site_file2=$prefix/etc/config.site
3043 else
3044 ac_site_file1=$ac_default_prefix/share/config.site
3045 ac_site_file2=$ac_default_prefix/etc/config.site
3046 fi
3047 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3048 do
3049 test "x$ac_site_file" = xNONE && continue
3050 if test -r "$ac_site_file"; then
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3052 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3053 sed 's/^/| /' "$ac_site_file" >&5
3054 . "$ac_site_file"
3055 fi
3056 done
3057
3058 if test -r "$cache_file"; then
3059 # Some versions of bash will fail to source /dev/null (special
3060 # files actually), so we avoid doing that.
3061 if test -f "$cache_file"; then
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3063 $as_echo "$as_me: loading cache $cache_file" >&6;}
3064 case $cache_file in
3065 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3066 *) . "./$cache_file";;
3067 esac
3068 fi
3069 else
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3071 $as_echo "$as_me: creating cache $cache_file" >&6;}
3072 >$cache_file
3073 fi
3074
3075 as_fn_append ac_header_list " dirent.h"
3076 as_fn_append ac_func_list " btowc"
3077 as_fn_append ac_func_list " isblank"
3078 as_fn_append ac_func_list " iswctype"
3079 as_fn_append ac_func_list " mbsrtowcs"
3080 as_fn_append ac_func_list " mempcpy"
3081 as_fn_append ac_func_list " wmemchr"
3082 as_fn_append ac_func_list " wmemcpy"
3083 as_fn_append ac_func_list " wmempcpy"
3084 as_fn_append ac_header_list " wctype.h"
3085 gl_fnmatch_required=GNU
3086 as_fn_append ac_func_list " alarm"
3087 as_fn_append ac_header_list " wchar.h"
3088 as_fn_append ac_header_list " stdint.h"
3089 as_fn_append ac_header_list " inttypes.h"
3090 as_fn_append ac_header_list " unistd.h"
3091 as_fn_append ac_func_list " symlink"
3092 as_fn_append ac_header_list " math.h"
3093 as_fn_append ac_func_list " mbsinit"
3094 as_fn_append ac_func_list " mbrtowc"
3095 as_fn_append ac_header_list " sys/mman.h"
3096 as_fn_append ac_func_list " mprotect"
3097 as_fn_append ac_header_list " sys/param.h"
3098 as_fn_append ac_header_list " sys/socket.h"
3099 as_fn_append ac_header_list " sys/stat.h"
3100 as_fn_append ac_header_list " sys/time.h"
3101 as_fn_append ac_header_list " features.h"
3102 as_fn_append ac_func_list " iswcntrl"
3103 # Check that the precious variables saved in the cache have kept the same
3104 # value.
3105 ac_cache_corrupted=false
3106 for ac_var in $ac_precious_vars; do
3107 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3108 eval ac_new_set=\$ac_env_${ac_var}_set
3109 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3110 eval ac_new_val=\$ac_env_${ac_var}_value
3111 case $ac_old_set,$ac_new_set in
3112 set,)
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3114 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3115 ac_cache_corrupted=: ;;
3116 ,set)
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3118 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3119 ac_cache_corrupted=: ;;
3120 ,);;
3121 *)
3122 if test "x$ac_old_val" != "x$ac_new_val"; then
3123 # differences in whitespace do not lead to failure.
3124 ac_old_val_w=`echo x $ac_old_val`
3125 ac_new_val_w=`echo x $ac_new_val`
3126 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3128 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3129 ac_cache_corrupted=:
3130 else
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3132 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3133 eval $ac_var=\$ac_old_val
3134 fi
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3136 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3138 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3139 fi;;
3140 esac
3141 # Pass precious variables to config.status.
3142 if test "$ac_new_set" = set; then
3143 case $ac_new_val in
3144 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3145 *) ac_arg=$ac_var=$ac_new_val ;;
3146 esac
3147 case " $ac_configure_args " in
3148 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3149 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3150 esac
3151 fi
3152 done
3153 if $ac_cache_corrupted; then
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3157 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3158 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3159 fi
3160 ## -------------------- ##
3161 ## Main body of script. ##
3162 ## -------------------- ##
3163
3164 ac_ext=c
3165 ac_cpp='$CPP $CPPFLAGS'
3166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3169
3170
3171 ac_config_headers="$ac_config_headers config.h:config.in"
3172
3173
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3175 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3176 # Check whether --enable-maintainer-mode was given.
3177 if test "${enable_maintainer_mode+set}" = set; then :
3178 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3179 else
3180 USE_MAINTAINER_MODE=no
3181 fi
3182
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3184 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3185 if test $USE_MAINTAINER_MODE = yes; then
3186 MAINTAINER_MODE_TRUE=
3187 MAINTAINER_MODE_FALSE='#'
3188 else
3189 MAINTAINER_MODE_TRUE='#'
3190 MAINTAINER_MODE_FALSE=
3191 fi
3192
3193 MAINT=$MAINTAINER_MODE_TRUE
3194
3195
3196
3197 ac_ext=c
3198 ac_cpp='$CPP $CPPFLAGS'
3199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3202 if test -n "$ac_tool_prefix"; then
3203 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3204 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3206 $as_echo_n "checking for $ac_word... " >&6; }
3207 if test "${ac_cv_prog_CC+set}" = set; then :
3208 $as_echo_n "(cached) " >&6
3209 else
3210 if test -n "$CC"; then
3211 ac_cv_prog_CC="$CC" # Let the user override the test.
3212 else
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH
3215 do
3216 IFS=$as_save_IFS
3217 test -z "$as_dir" && as_dir=.
3218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3220 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3222 break 2
3223 fi
3224 done
3225 done
3226 IFS=$as_save_IFS
3227
3228 fi
3229 fi
3230 CC=$ac_cv_prog_CC
3231 if test -n "$CC"; then
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3233 $as_echo "$CC" >&6; }
3234 else
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3237 fi
3238
3239
3240 fi
3241 if test -z "$ac_cv_prog_CC"; then
3242 ac_ct_CC=$CC
3243 # Extract the first word of "gcc", so it can be a program name with args.
3244 set dummy gcc; ac_word=$2
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3246 $as_echo_n "checking for $ac_word... " >&6; }
3247 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3248 $as_echo_n "(cached) " >&6
3249 else
3250 if test -n "$ac_ct_CC"; then
3251 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3252 else
3253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3254 for as_dir in $PATH
3255 do
3256 IFS=$as_save_IFS
3257 test -z "$as_dir" && as_dir=.
3258 for ac_exec_ext in '' $ac_executable_extensions; do
3259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3260 ac_cv_prog_ac_ct_CC="gcc"
3261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3262 break 2
3263 fi
3264 done
3265 done
3266 IFS=$as_save_IFS
3267
3268 fi
3269 fi
3270 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3271 if test -n "$ac_ct_CC"; then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3273 $as_echo "$ac_ct_CC" >&6; }
3274 else
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3277 fi
3278
3279 if test "x$ac_ct_CC" = x; then
3280 CC=""
3281 else
3282 case $cross_compiling:$ac_tool_warned in
3283 yes:)
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3286 ac_tool_warned=yes ;;
3287 esac
3288 CC=$ac_ct_CC
3289 fi
3290 else
3291 CC="$ac_cv_prog_CC"
3292 fi
3293
3294 if test -z "$CC"; then
3295 if test -n "$ac_tool_prefix"; then
3296 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3297 set dummy ${ac_tool_prefix}cc; ac_word=$2
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3299 $as_echo_n "checking for $ac_word... " >&6; }
3300 if test "${ac_cv_prog_CC+set}" = set; then :
3301 $as_echo_n "(cached) " >&6
3302 else
3303 if test -n "$CC"; then
3304 ac_cv_prog_CC="$CC" # Let the user override the test.
3305 else
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in $PATH
3308 do
3309 IFS=$as_save_IFS
3310 test -z "$as_dir" && as_dir=.
3311 for ac_exec_ext in '' $ac_executable_extensions; do
3312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3313 ac_cv_prog_CC="${ac_tool_prefix}cc"
3314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3315 break 2
3316 fi
3317 done
3318 done
3319 IFS=$as_save_IFS
3320
3321 fi
3322 fi
3323 CC=$ac_cv_prog_CC
3324 if test -n "$CC"; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3326 $as_echo "$CC" >&6; }
3327 else
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 $as_echo "no" >&6; }
3330 fi
3331
3332
3333 fi
3334 fi
3335 if test -z "$CC"; then
3336 # Extract the first word of "cc", so it can be a program name with args.
3337 set dummy cc; ac_word=$2
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3339 $as_echo_n "checking for $ac_word... " >&6; }
3340 if test "${ac_cv_prog_CC+set}" = set; then :
3341 $as_echo_n "(cached) " >&6
3342 else
3343 if test -n "$CC"; then
3344 ac_cv_prog_CC="$CC" # Let the user override the test.
3345 else
3346 ac_prog_rejected=no
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 for as_dir in $PATH
3349 do
3350 IFS=$as_save_IFS
3351 test -z "$as_dir" && as_dir=.
3352 for ac_exec_ext in '' $ac_executable_extensions; do
3353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3354 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3355 ac_prog_rejected=yes
3356 continue
3357 fi
3358 ac_cv_prog_CC="cc"
3359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3360 break 2
3361 fi
3362 done
3363 done
3364 IFS=$as_save_IFS
3365
3366 if test $ac_prog_rejected = yes; then
3367 # We found a bogon in the path, so make sure we never use it.
3368 set dummy $ac_cv_prog_CC
3369 shift
3370 if test $# != 0; then
3371 # We chose a different compiler from the bogus one.
3372 # However, it has the same basename, so the bogon will be chosen
3373 # first if we set CC to just the basename; use the full file name.
3374 shift
3375 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3376 fi
3377 fi
3378 fi
3379 fi
3380 CC=$ac_cv_prog_CC
3381 if test -n "$CC"; then
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3383 $as_echo "$CC" >&6; }
3384 else
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386 $as_echo "no" >&6; }
3387 fi
3388
3389
3390 fi
3391 if test -z "$CC"; then
3392 if test -n "$ac_tool_prefix"; then
3393 for ac_prog in cl.exe
3394 do
3395 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3396 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3398 $as_echo_n "checking for $ac_word... " >&6; }
3399 if test "${ac_cv_prog_CC+set}" = set; then :
3400 $as_echo_n "(cached) " >&6
3401 else
3402 if test -n "$CC"; then
3403 ac_cv_prog_CC="$CC" # Let the user override the test.
3404 else
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 for as_dir in $PATH
3407 do
3408 IFS=$as_save_IFS
3409 test -z "$as_dir" && as_dir=.
3410 for ac_exec_ext in '' $ac_executable_extensions; do
3411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3412 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3414 break 2
3415 fi
3416 done
3417 done
3418 IFS=$as_save_IFS
3419
3420 fi
3421 fi
3422 CC=$ac_cv_prog_CC
3423 if test -n "$CC"; then
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3425 $as_echo "$CC" >&6; }
3426 else
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428 $as_echo "no" >&6; }
3429 fi
3430
3431
3432 test -n "$CC" && break
3433 done
3434 fi
3435 if test -z "$CC"; then
3436 ac_ct_CC=$CC
3437 for ac_prog in cl.exe
3438 do
3439 # Extract the first word of "$ac_prog", so it can be a program name with args.
3440 set dummy $ac_prog; ac_word=$2
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3442 $as_echo_n "checking for $ac_word... " >&6; }
3443 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3444 $as_echo_n "(cached) " >&6
3445 else
3446 if test -n "$ac_ct_CC"; then
3447 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3448 else
3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450 for as_dir in $PATH
3451 do
3452 IFS=$as_save_IFS
3453 test -z "$as_dir" && as_dir=.
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3456 ac_cv_prog_ac_ct_CC="$ac_prog"
3457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3458 break 2
3459 fi
3460 done
3461 done
3462 IFS=$as_save_IFS
3463
3464 fi
3465 fi
3466 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3467 if test -n "$ac_ct_CC"; then
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3469 $as_echo "$ac_ct_CC" >&6; }
3470 else
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472 $as_echo "no" >&6; }
3473 fi
3474
3475
3476 test -n "$ac_ct_CC" && break
3477 done
3478
3479 if test "x$ac_ct_CC" = x; then
3480 CC=""
3481 else
3482 case $cross_compiling:$ac_tool_warned in
3483 yes:)
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3486 ac_tool_warned=yes ;;
3487 esac
3488 CC=$ac_ct_CC
3489 fi
3490 fi
3491
3492 fi
3493
3494
3495 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3497 as_fn_error "no acceptable C compiler found in \$PATH
3498 See \`config.log' for more details." "$LINENO" 5; }
3499
3500 # Provide some information about the compiler.
3501 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3502 set X $ac_compile
3503 ac_compiler=$2
3504 for ac_option in --version -v -V -qversion; do
3505 { { ac_try="$ac_compiler $ac_option >&5"
3506 case "(($ac_try" in
3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3509 esac
3510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3511 $as_echo "$ac_try_echo"; } >&5
3512 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3513 ac_status=$?
3514 if test -s conftest.err; then
3515 sed '10a\
3516 ... rest of stderr output deleted ...
3517 10q' conftest.err >conftest.er1
3518 cat conftest.er1 >&5
3519 rm -f conftest.er1 conftest.err
3520 fi
3521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3522 test $ac_status = 0; }
3523 done
3524
3525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526 /* end confdefs.h. */
3527 #include <stdio.h>
3528 int
3529 main ()
3530 {
3531 FILE *f = fopen ("conftest.out", "w");
3532 return ferror (f) || fclose (f) != 0;
3533
3534 ;
3535 return 0;
3536 }
3537 _ACEOF
3538 ac_clean_files_save=$ac_clean_files
3539 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3540 # Try to create an executable without -o first, disregard a.out.
3541 # It will help us diagnose broken compilers, and finding out an intuition
3542 # of exeext.
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3544 $as_echo_n "checking for C compiler default output file name... " >&6; }
3545 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3546
3547 # The possible output files:
3548 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3549
3550 ac_rmfiles=
3551 for ac_file in $ac_files
3552 do
3553 case $ac_file in
3554 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3555 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3556 esac
3557 done
3558 rm -f $ac_rmfiles
3559
3560 if { { ac_try="$ac_link_default"
3561 case "(($ac_try" in
3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3564 esac
3565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3566 $as_echo "$ac_try_echo"; } >&5
3567 (eval "$ac_link_default") 2>&5
3568 ac_status=$?
3569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3570 test $ac_status = 0; }; then :
3571 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3572 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3573 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3574 # so that the user can short-circuit this test for compilers unknown to
3575 # Autoconf.
3576 for ac_file in $ac_files ''
3577 do
3578 test -f "$ac_file" || continue
3579 case $ac_file in
3580 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3581 ;;
3582 [ab].out )
3583 # We found the default executable, but exeext='' is most
3584 # certainly right.
3585 break;;
3586 *.* )
3587 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3588 then :; else
3589 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3590 fi
3591 # We set ac_cv_exeext here because the later test for it is not
3592 # safe: cross compilers may not add the suffix if given an `-o'
3593 # argument, so we may need to know it at that point already.
3594 # Even if this section looks crufty: it has the advantage of
3595 # actually working.
3596 break;;
3597 * )
3598 break;;
3599 esac
3600 done
3601 test "$ac_cv_exeext" = no && ac_cv_exeext=
3602
3603 else
3604 ac_file=''
3605 fi
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3607 $as_echo "$ac_file" >&6; }
3608 if test -z "$ac_file"; then :
3609 $as_echo "$as_me: failed program was:" >&5
3610 sed 's/^/| /' conftest.$ac_ext >&5
3611
3612 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3614 { as_fn_set_status 77
3615 as_fn_error "C compiler cannot create executables
3616 See \`config.log' for more details." "$LINENO" 5; }; }
3617 fi
3618 ac_exeext=$ac_cv_exeext
3619
3620 # Check that the compiler produces executables we can run. If not, either
3621 # the compiler is broken, or we cross compile.
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3623 $as_echo_n "checking whether the C compiler works... " >&6; }
3624 # If not cross compiling, check that we can run a simple program.
3625 if test "$cross_compiling" != yes; then
3626 if { ac_try='./$ac_file'
3627 { { case "(($ac_try" in
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3630 esac
3631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3632 $as_echo "$ac_try_echo"; } >&5
3633 (eval "$ac_try") 2>&5
3634 ac_status=$?
3635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3636 test $ac_status = 0; }; }; then
3637 cross_compiling=no
3638 else
3639 if test "$cross_compiling" = maybe; then
3640 cross_compiling=yes
3641 else
3642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3644 as_fn_error "cannot run C compiled programs.
3645 If you meant to cross compile, use \`--host'.
3646 See \`config.log' for more details." "$LINENO" 5; }
3647 fi
3648 fi
3649 fi
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3651 $as_echo "yes" >&6; }
3652
3653 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3654 ac_clean_files=$ac_clean_files_save
3655 # Check that the compiler produces executables we can run. If not, either
3656 # the compiler is broken, or we cross compile.
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3658 $as_echo_n "checking whether we are cross compiling... " >&6; }
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3660 $as_echo "$cross_compiling" >&6; }
3661
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3663 $as_echo_n "checking for suffix of executables... " >&6; }
3664 if { { ac_try="$ac_link"
3665 case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3668 esac
3669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670 $as_echo "$ac_try_echo"; } >&5
3671 (eval "$ac_link") 2>&5
3672 ac_status=$?
3673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674 test $ac_status = 0; }; then :
3675 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3676 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3677 # work properly (i.e., refer to `conftest.exe'), while it won't with
3678 # `rm'.
3679 for ac_file in conftest.exe conftest conftest.*; do
3680 test -f "$ac_file" || continue
3681 case $ac_file in
3682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3683 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3684 break;;
3685 * ) break;;
3686 esac
3687 done
3688 else
3689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3691 as_fn_error "cannot compute suffix of executables: cannot compile and link
3692 See \`config.log' for more details." "$LINENO" 5; }
3693 fi
3694 rm -f conftest$ac_cv_exeext
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3696 $as_echo "$ac_cv_exeext" >&6; }
3697
3698 rm -f conftest.$ac_ext
3699 EXEEXT=$ac_cv_exeext
3700 ac_exeext=$EXEEXT
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3702 $as_echo_n "checking for suffix of object files... " >&6; }
3703 if test "${ac_cv_objext+set}" = set; then :
3704 $as_echo_n "(cached) " >&6
3705 else
3706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3707 /* end confdefs.h. */
3708
3709 int
3710 main ()
3711 {
3712
3713 ;
3714 return 0;
3715 }
3716 _ACEOF
3717 rm -f conftest.o conftest.obj
3718 if { { ac_try="$ac_compile"
3719 case "(($ac_try" in
3720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3721 *) ac_try_echo=$ac_try;;
3722 esac
3723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3724 $as_echo "$ac_try_echo"; } >&5
3725 (eval "$ac_compile") 2>&5
3726 ac_status=$?
3727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3728 test $ac_status = 0; }; then :
3729 for ac_file in conftest.o conftest.obj conftest.*; do
3730 test -f "$ac_file" || continue;
3731 case $ac_file in
3732 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3733 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3734 break;;
3735 esac
3736 done
3737 else
3738 $as_echo "$as_me: failed program was:" >&5
3739 sed 's/^/| /' conftest.$ac_ext >&5
3740
3741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3743 as_fn_error "cannot compute suffix of object files: cannot compile
3744 See \`config.log' for more details." "$LINENO" 5; }
3745 fi
3746 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3747 fi
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3749 $as_echo "$ac_cv_objext" >&6; }
3750 OBJEXT=$ac_cv_objext
3751 ac_objext=$OBJEXT
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3753 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3754 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3755 $as_echo_n "(cached) " >&6
3756 else
3757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3759
3760 int
3761 main ()
3762 {
3763 #ifndef __GNUC__
3764 choke me
3765 #endif
3766
3767 ;
3768 return 0;
3769 }
3770 _ACEOF
3771 if ac_fn_c_try_compile "$LINENO"; then :
3772 ac_compiler_gnu=yes
3773 else
3774 ac_compiler_gnu=no
3775 fi
3776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3777 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3778
3779 fi
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3781 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3782 if test $ac_compiler_gnu = yes; then
3783 GCC=yes
3784 else
3785 GCC=
3786 fi
3787 ac_test_CFLAGS=${CFLAGS+set}
3788 ac_save_CFLAGS=$CFLAGS
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3790 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3791 if test "${ac_cv_prog_cc_g+set}" = set; then :
3792 $as_echo_n "(cached) " >&6
3793 else
3794 ac_save_c_werror_flag=$ac_c_werror_flag
3795 ac_c_werror_flag=yes
3796 ac_cv_prog_cc_g=no
3797 CFLAGS="-g"
3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h. */
3800
3801 int
3802 main ()
3803 {
3804
3805 ;
3806 return 0;
3807 }
3808 _ACEOF
3809 if ac_fn_c_try_compile "$LINENO"; then :
3810 ac_cv_prog_cc_g=yes
3811 else
3812 CFLAGS=""
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3815
3816 int
3817 main ()
3818 {
3819
3820 ;
3821 return 0;
3822 }
3823 _ACEOF
3824 if ac_fn_c_try_compile "$LINENO"; then :
3825
3826 else
3827 ac_c_werror_flag=$ac_save_c_werror_flag
3828 CFLAGS="-g"
3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h. */
3831
3832 int
3833 main ()
3834 {
3835
3836 ;
3837 return 0;
3838 }
3839 _ACEOF
3840 if ac_fn_c_try_compile "$LINENO"; then :
3841 ac_cv_prog_cc_g=yes
3842 fi
3843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3844 fi
3845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3846 fi
3847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848 ac_c_werror_flag=$ac_save_c_werror_flag
3849 fi
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3851 $as_echo "$ac_cv_prog_cc_g" >&6; }
3852 if test "$ac_test_CFLAGS" = set; then
3853 CFLAGS=$ac_save_CFLAGS
3854 elif test $ac_cv_prog_cc_g = yes; then
3855 if test "$GCC" = yes; then
3856 CFLAGS="-g -O2"
3857 else
3858 CFLAGS="-g"
3859 fi
3860 else
3861 if test "$GCC" = yes; then
3862 CFLAGS="-O2"
3863 else
3864 CFLAGS=
3865 fi
3866 fi
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3868 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3869 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3870 $as_echo_n "(cached) " >&6
3871 else
3872 ac_cv_prog_cc_c89=no
3873 ac_save_CC=$CC
3874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3875 /* end confdefs.h. */
3876 #include <stdarg.h>
3877 #include <stdio.h>
3878 #include <sys/types.h>
3879 #include <sys/stat.h>
3880 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3881 struct buf { int x; };
3882 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3883 static char *e (p, i)
3884 char **p;
3885 int i;
3886 {
3887 return p[i];
3888 }
3889 static char *f (char * (*g) (char **, int), char **p, ...)
3890 {
3891 char *s;
3892 va_list v;
3893 va_start (v,p);
3894 s = g (p, va_arg (v,int));
3895 va_end (v);
3896 return s;
3897 }
3898
3899 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3900 function prototypes and stuff, but not '\xHH' hex character constants.
3901 These don't provoke an error unfortunately, instead are silently treated
3902 as 'x'. The following induces an error, until -std is added to get
3903 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3904 array size at least. It's necessary to write '\x00'==0 to get something
3905 that's true only with -std. */
3906 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3907
3908 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3909 inside strings and character constants. */
3910 #define FOO(x) 'x'
3911 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3912
3913 int test (int i, double x);
3914 struct s1 {int (*f) (int a);};
3915 struct s2 {int (*f) (double a);};
3916 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3917 int argc;
3918 char **argv;
3919 int
3920 main ()
3921 {
3922 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3923 ;
3924 return 0;
3925 }
3926 _ACEOF
3927 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3928 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3929 do
3930 CC="$ac_save_CC $ac_arg"
3931 if ac_fn_c_try_compile "$LINENO"; then :
3932 ac_cv_prog_cc_c89=$ac_arg
3933 fi
3934 rm -f core conftest.err conftest.$ac_objext
3935 test "x$ac_cv_prog_cc_c89" != "xno" && break
3936 done
3937 rm -f conftest.$ac_ext
3938 CC=$ac_save_CC
3939
3940 fi
3941 # AC_CACHE_VAL
3942 case "x$ac_cv_prog_cc_c89" in
3943 x)
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3945 $as_echo "none needed" >&6; } ;;
3946 xno)
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3948 $as_echo "unsupported" >&6; } ;;
3949 *)
3950 CC="$CC $ac_cv_prog_cc_c89"
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3952 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3953 esac
3954 if test "x$ac_cv_prog_cc_c89" != xno; then :
3955
3956 fi
3957
3958 ac_ext=c
3959 ac_cpp='$CPP $CPPFLAGS'
3960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963
3964 ac_aux_dir=
3965 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3966 for ac_t in install-sh install.sh shtool; do
3967 if test -f "$ac_dir/$ac_t"; then
3968 ac_aux_dir=$ac_dir
3969 ac_install_sh="$ac_aux_dir/$ac_t -c"
3970 break 2
3971 fi
3972 done
3973 done
3974 if test -z "$ac_aux_dir"; then
3975 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3976 fi
3977
3978 # These three variables are undocumented and unsupported,
3979 # and are intended to be withdrawn in a future Autoconf release.
3980 # They can cause serious problems if a builder's source tree is in a directory
3981 # whose full name contains unusual characters.
3982 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3983 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3984 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3985
3986
3987 # Make sure we can run config.sub.
3988 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3989 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3990
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3992 $as_echo_n "checking build system type... " >&6; }
3993 if test "${ac_cv_build+set}" = set; then :
3994 $as_echo_n "(cached) " >&6
3995 else
3996 ac_build_alias=$build_alias
3997 test "x$ac_build_alias" = x &&
3998 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3999 test "x$ac_build_alias" = x &&
4000 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4001 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4002 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4003
4004 fi
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4006 $as_echo "$ac_cv_build" >&6; }
4007 case $ac_cv_build in
4008 *-*-*) ;;
4009 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4010 esac
4011 build=$ac_cv_build
4012 ac_save_IFS=$IFS; IFS='-'
4013 set x $ac_cv_build
4014 shift
4015 build_cpu=$1
4016 build_vendor=$2
4017 shift; shift
4018 # Remember, the first character of IFS is used to create $*,
4019 # except with old shells:
4020 build_os=$*
4021 IFS=$ac_save_IFS
4022 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4023
4024
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4026 $as_echo_n "checking host system type... " >&6; }
4027 if test "${ac_cv_host+set}" = set; then :
4028 $as_echo_n "(cached) " >&6
4029 else
4030 if test "x$host_alias" = x; then
4031 ac_cv_host=$ac_cv_build
4032 else
4033 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4034 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4035 fi
4036
4037 fi
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4039 $as_echo "$ac_cv_host" >&6; }
4040 case $ac_cv_host in
4041 *-*-*) ;;
4042 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4043 esac
4044 host=$ac_cv_host
4045 ac_save_IFS=$IFS; IFS='-'
4046 set x $ac_cv_host
4047 shift
4048 host_cpu=$1
4049 host_vendor=$2
4050 shift; shift
4051 # Remember, the first character of IFS is used to create $*,
4052 # except with old shells:
4053 host_os=$*
4054 IFS=$ac_save_IFS
4055 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4056
4057
4058
4059 ac_ext=c
4060 ac_cpp='$CPP $CPPFLAGS'
4061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4065 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4066 # On Suns, sometimes $CPP names a directory.
4067 if test -n "$CPP" && test -d "$CPP"; then
4068 CPP=
4069 fi
4070 if test -z "$CPP"; then
4071 if test "${ac_cv_prog_CPP+set}" = set; then :
4072 $as_echo_n "(cached) " >&6
4073 else
4074 # Double quotes because CPP needs to be expanded
4075 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4076 do
4077 ac_preproc_ok=false
4078 for ac_c_preproc_warn_flag in '' yes
4079 do
4080 # Use a header file that comes with gcc, so configuring glibc
4081 # with a fresh cross-compiler works.
4082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4083 # <limits.h> exists even on freestanding compilers.
4084 # On the NeXT, cc -E runs the code through the compiler's parser,
4085 # not just through cpp. "Syntax error" is here to catch this case.
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4088 #ifdef __STDC__
4089 # include <limits.h>
4090 #else
4091 # include <assert.h>
4092 #endif
4093 Syntax error
4094 _ACEOF
4095 if ac_fn_c_try_cpp "$LINENO"; then :
4096
4097 else
4098 # Broken: fails on valid input.
4099 continue
4100 fi
4101 rm -f conftest.err conftest.$ac_ext
4102
4103 # OK, works on sane cases. Now check whether nonexistent headers
4104 # can be detected and how.
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4107 #include <ac_nonexistent.h>
4108 _ACEOF
4109 if ac_fn_c_try_cpp "$LINENO"; then :
4110 # Broken: success on invalid input.
4111 continue
4112 else
4113 # Passes both tests.
4114 ac_preproc_ok=:
4115 break
4116 fi
4117 rm -f conftest.err conftest.$ac_ext
4118
4119 done
4120 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4121 rm -f conftest.err conftest.$ac_ext
4122 if $ac_preproc_ok; then :
4123 break
4124 fi
4125
4126 done
4127 ac_cv_prog_CPP=$CPP
4128
4129 fi
4130 CPP=$ac_cv_prog_CPP
4131 else
4132 ac_cv_prog_CPP=$CPP
4133 fi
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4135 $as_echo "$CPP" >&6; }
4136 ac_preproc_ok=false
4137 for ac_c_preproc_warn_flag in '' yes
4138 do
4139 # Use a header file that comes with gcc, so configuring glibc
4140 # with a fresh cross-compiler works.
4141 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4142 # <limits.h> exists even on freestanding compilers.
4143 # On the NeXT, cc -E runs the code through the compiler's parser,
4144 # not just through cpp. "Syntax error" is here to catch this case.
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4147 #ifdef __STDC__
4148 # include <limits.h>
4149 #else
4150 # include <assert.h>
4151 #endif
4152 Syntax error
4153 _ACEOF
4154 if ac_fn_c_try_cpp "$LINENO"; then :
4155
4156 else
4157 # Broken: fails on valid input.
4158 continue
4159 fi
4160 rm -f conftest.err conftest.$ac_ext
4161
4162 # OK, works on sane cases. Now check whether nonexistent headers
4163 # can be detected and how.
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4166 #include <ac_nonexistent.h>
4167 _ACEOF
4168 if ac_fn_c_try_cpp "$LINENO"; then :
4169 # Broken: success on invalid input.
4170 continue
4171 else
4172 # Passes both tests.
4173 ac_preproc_ok=:
4174 break
4175 fi
4176 rm -f conftest.err conftest.$ac_ext
4177
4178 done
4179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4180 rm -f conftest.err conftest.$ac_ext
4181 if $ac_preproc_ok; then :
4182
4183 else
4184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4186 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4187 See \`config.log' for more details." "$LINENO" 5; }
4188 fi
4189
4190 ac_ext=c
4191 ac_cpp='$CPP $CPPFLAGS'
4192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4195
4196
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4198 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4199 if test "${ac_cv_path_GREP+set}" = set; then :
4200 $as_echo_n "(cached) " >&6
4201 else
4202 if test -z "$GREP"; then
4203 ac_path_GREP_found=false
4204 # Loop through the user's path and test for each of PROGNAME-LIST
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4207 do
4208 IFS=$as_save_IFS
4209 test -z "$as_dir" && as_dir=.
4210 for ac_prog in grep ggrep; do
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4213 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4214 # Check for GNU ac_path_GREP and select it if it is found.
4215 # Check for GNU $ac_path_GREP
4216 case `"$ac_path_GREP" --version 2>&1` in
4217 *GNU*)
4218 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4219 *)
4220 ac_count=0
4221 $as_echo_n 0123456789 >"conftest.in"
4222 while :
4223 do
4224 cat "conftest.in" "conftest.in" >"conftest.tmp"
4225 mv "conftest.tmp" "conftest.in"
4226 cp "conftest.in" "conftest.nl"
4227 $as_echo 'GREP' >> "conftest.nl"
4228 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4229 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4230 as_fn_arith $ac_count + 1 && ac_count=$as_val
4231 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4232 # Best one so far, save it but keep looking for a better one
4233 ac_cv_path_GREP="$ac_path_GREP"
4234 ac_path_GREP_max=$ac_count
4235 fi
4236 # 10*(2^10) chars as input seems more than enough
4237 test $ac_count -gt 10 && break
4238 done
4239 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4240 esac
4241
4242 $ac_path_GREP_found && break 3
4243 done
4244 done
4245 done
4246 IFS=$as_save_IFS
4247 if test -z "$ac_cv_path_GREP"; then
4248 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4249 fi
4250 else
4251 ac_cv_path_GREP=$GREP
4252 fi
4253
4254 fi
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4256 $as_echo "$ac_cv_path_GREP" >&6; }
4257 GREP="$ac_cv_path_GREP"
4258
4259
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4261 $as_echo_n "checking for egrep... " >&6; }
4262 if test "${ac_cv_path_EGREP+set}" = set; then :
4263 $as_echo_n "(cached) " >&6
4264 else
4265 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4266 then ac_cv_path_EGREP="$GREP -E"
4267 else
4268 if test -z "$EGREP"; then
4269 ac_path_EGREP_found=false
4270 # Loop through the user's path and test for each of PROGNAME-LIST
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4273 do
4274 IFS=$as_save_IFS
4275 test -z "$as_dir" && as_dir=.
4276 for ac_prog in egrep; do
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4279 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4280 # Check for GNU ac_path_EGREP and select it if it is found.
4281 # Check for GNU $ac_path_EGREP
4282 case `"$ac_path_EGREP" --version 2>&1` in
4283 *GNU*)
4284 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4285 *)
4286 ac_count=0
4287 $as_echo_n 0123456789 >"conftest.in"
4288 while :
4289 do
4290 cat "conftest.in" "conftest.in" >"conftest.tmp"
4291 mv "conftest.tmp" "conftest.in"
4292 cp "conftest.in" "conftest.nl"
4293 $as_echo 'EGREP' >> "conftest.nl"
4294 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4295 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4296 as_fn_arith $ac_count + 1 && ac_count=$as_val
4297 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4298 # Best one so far, save it but keep looking for a better one
4299 ac_cv_path_EGREP="$ac_path_EGREP"
4300 ac_path_EGREP_max=$ac_count
4301 fi
4302 # 10*(2^10) chars as input seems more than enough
4303 test $ac_count -gt 10 && break
4304 done
4305 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4306 esac
4307
4308 $ac_path_EGREP_found && break 3
4309 done
4310 done
4311 done
4312 IFS=$as_save_IFS
4313 if test -z "$ac_cv_path_EGREP"; then
4314 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4315 fi
4316 else
4317 ac_cv_path_EGREP=$EGREP
4318 fi
4319
4320 fi
4321 fi
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4323 $as_echo "$ac_cv_path_EGREP" >&6; }
4324 EGREP="$ac_cv_path_EGREP"
4325
4326
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4328 $as_echo_n "checking for ANSI C header files... " >&6; }
4329 if test "${ac_cv_header_stdc+set}" = set; then :
4330 $as_echo_n "(cached) " >&6
4331 else
4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4334 #include <stdlib.h>
4335 #include <stdarg.h>
4336 #include <string.h>
4337 #include <float.h>
4338
4339 int
4340 main ()
4341 {
4342
4343 ;
4344 return 0;
4345 }
4346 _ACEOF
4347 if ac_fn_c_try_compile "$LINENO"; then :
4348 ac_cv_header_stdc=yes
4349 else
4350 ac_cv_header_stdc=no
4351 fi
4352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4353
4354 if test $ac_cv_header_stdc = yes; then
4355 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4357 /* end confdefs.h. */
4358 #include <string.h>
4359
4360 _ACEOF
4361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4362 $EGREP "memchr" >/dev/null 2>&1; then :
4363
4364 else
4365 ac_cv_header_stdc=no
4366 fi
4367 rm -f conftest*
4368
4369 fi
4370
4371 if test $ac_cv_header_stdc = yes; then
4372 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374 /* end confdefs.h. */
4375 #include <stdlib.h>
4376
4377 _ACEOF
4378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4379 $EGREP "free" >/dev/null 2>&1; then :
4380
4381 else
4382 ac_cv_header_stdc=no
4383 fi
4384 rm -f conftest*
4385
4386 fi
4387
4388 if test $ac_cv_header_stdc = yes; then
4389 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4390 if test "$cross_compiling" = yes; then :
4391 :
4392 else
4393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h. */
4395 #include <ctype.h>
4396 #include <stdlib.h>
4397 #if ((' ' & 0x0FF) == 0x020)
4398 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4399 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4400 #else
4401 # define ISLOWER(c) \
4402 (('a' <= (c) && (c) <= 'i') \
4403 || ('j' <= (c) && (c) <= 'r') \
4404 || ('s' <= (c) && (c) <= 'z'))
4405 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4406 #endif
4407
4408 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4409 int
4410 main ()
4411 {
4412 int i;
4413 for (i = 0; i < 256; i++)
4414 if (XOR (islower (i), ISLOWER (i))
4415 || toupper (i) != TOUPPER (i))
4416 return 2;
4417 return 0;
4418 }
4419 _ACEOF
4420 if ac_fn_c_try_run "$LINENO"; then :
4421
4422 else
4423 ac_cv_header_stdc=no
4424 fi
4425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4426 conftest.$ac_objext conftest.beam conftest.$ac_ext
4427 fi
4428
4429 fi
4430 fi
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4432 $as_echo "$ac_cv_header_stdc" >&6; }
4433 if test $ac_cv_header_stdc = yes; then
4434
4435 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4436
4437 fi
4438
4439 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4440 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4441 inttypes.h stdint.h unistd.h
4442 do :
4443 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4444 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4445 "
4446 eval as_val=\$$as_ac_Header
4447 if test "x$as_val" = x""yes; then :
4448 cat >>confdefs.h <<_ACEOF
4449 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4450 _ACEOF
4451
4452 fi
4453
4454 done
4455
4456
4457
4458
4459
4460 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4461 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4462 MINIX=yes
4463 else
4464 MINIX=
4465 fi
4466
4467
4468 if test "$MINIX" = yes; then
4469
4470 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4471
4472
4473 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4474
4475
4476 $as_echo "#define _MINIX 1" >>confdefs.h
4477
4478 fi
4479
4480 case "$host_os" in
4481 hpux*)
4482
4483 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4484
4485 ;;
4486 esac
4487
4488
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4490 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4491 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4492 $as_echo_n "(cached) " >&6
4493 else
4494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* end confdefs.h. */
4496
4497 # define __EXTENSIONS__ 1
4498 $ac_includes_default
4499 int
4500 main ()
4501 {
4502
4503 ;
4504 return 0;
4505 }
4506 _ACEOF
4507 if ac_fn_c_try_compile "$LINENO"; then :
4508 ac_cv_safe_to_define___extensions__=yes
4509 else
4510 ac_cv_safe_to_define___extensions__=no
4511 fi
4512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4513 fi
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4515 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4516 test $ac_cv_safe_to_define___extensions__ = yes &&
4517 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4518
4519 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4520
4521 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4522
4523 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4524
4525 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4526
4527 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4528
4529
4530
4531
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4533 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4534 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4535 $as_echo_n "(cached) " >&6
4536 else
4537
4538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h. */
4540
4541 #ifdef __ACK__
4542 Amsterdam
4543 #endif
4544
4545 _ACEOF
4546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4547 $EGREP "Amsterdam" >/dev/null 2>&1; then :
4548 gl_cv_c_amsterdam_compiler=yes
4549 else
4550 gl_cv_c_amsterdam_compiler=no
4551 fi
4552 rm -f conftest*
4553
4554
4555 fi
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4557 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4558 if test -z "$AR"; then
4559 if test $gl_cv_c_amsterdam_compiler = yes; then
4560 AR='cc -c.a'
4561 if test -z "$ARFLAGS"; then
4562 ARFLAGS='-o'
4563 fi
4564 else
4565 if test -n "$ac_tool_prefix"; then
4566 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4567 set dummy ${ac_tool_prefix}ar; ac_word=$2
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4569 $as_echo_n "checking for $ac_word... " >&6; }
4570 if test "${ac_cv_prog_AR+set}" = set; then :
4571 $as_echo_n "(cached) " >&6
4572 else
4573 if test -n "$AR"; then
4574 ac_cv_prog_AR="$AR" # Let the user override the test.
4575 else
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH
4578 do
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4583 ac_cv_prog_AR="${ac_tool_prefix}ar"
4584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 break 2
4586 fi
4587 done
4588 done
4589 IFS=$as_save_IFS
4590
4591 fi
4592 fi
4593 AR=$ac_cv_prog_AR
4594 if test -n "$AR"; then
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4596 $as_echo "$AR" >&6; }
4597 else
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4599 $as_echo "no" >&6; }
4600 fi
4601
4602
4603 fi
4604 if test -z "$ac_cv_prog_AR"; then
4605 ac_ct_AR=$AR
4606 # Extract the first word of "ar", so it can be a program name with args.
4607 set dummy ar; ac_word=$2
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4609 $as_echo_n "checking for $ac_word... " >&6; }
4610 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4611 $as_echo_n "(cached) " >&6
4612 else
4613 if test -n "$ac_ct_AR"; then
4614 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4615 else
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 for as_dir in $PATH
4618 do
4619 IFS=$as_save_IFS
4620 test -z "$as_dir" && as_dir=.
4621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4623 ac_cv_prog_ac_ct_AR="ar"
4624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4625 break 2
4626 fi
4627 done
4628 done
4629 IFS=$as_save_IFS
4630
4631 fi
4632 fi
4633 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4634 if test -n "$ac_ct_AR"; then
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4636 $as_echo "$ac_ct_AR" >&6; }
4637 else
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4639 $as_echo "no" >&6; }
4640 fi
4641
4642 if test "x$ac_ct_AR" = x; then
4643 AR="ar"
4644 else
4645 case $cross_compiling:$ac_tool_warned in
4646 yes:)
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4649 ac_tool_warned=yes ;;
4650 esac
4651 AR=$ac_ct_AR
4652 fi
4653 else
4654 AR="$ac_cv_prog_AR"
4655 fi
4656
4657 if test -z "$ARFLAGS"; then
4658 ARFLAGS='cru'
4659 fi
4660 fi
4661 else
4662 if test -z "$ARFLAGS"; then
4663 ARFLAGS='cru'
4664 fi
4665 fi
4666
4667
4668 if test -z "$RANLIB"; then
4669 if test $gl_cv_c_amsterdam_compiler = yes; then
4670 RANLIB=':'
4671 else
4672 if test -n "$ac_tool_prefix"; then
4673 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4674 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4676 $as_echo_n "checking for $ac_word... " >&6; }
4677 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4678 $as_echo_n "(cached) " >&6
4679 else
4680 if test -n "$RANLIB"; then
4681 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4682 else
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 for as_dir in $PATH
4685 do
4686 IFS=$as_save_IFS
4687 test -z "$as_dir" && as_dir=.
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4690 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4692 break 2
4693 fi
4694 done
4695 done
4696 IFS=$as_save_IFS
4697
4698 fi
4699 fi
4700 RANLIB=$ac_cv_prog_RANLIB
4701 if test -n "$RANLIB"; then
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4703 $as_echo "$RANLIB" >&6; }
4704 else
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4706 $as_echo "no" >&6; }
4707 fi
4708
4709
4710 fi
4711 if test -z "$ac_cv_prog_RANLIB"; then
4712 ac_ct_RANLIB=$RANLIB
4713 # Extract the first word of "ranlib", so it can be a program name with args.
4714 set dummy ranlib; ac_word=$2
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4716 $as_echo_n "checking for $ac_word... " >&6; }
4717 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4718 $as_echo_n "(cached) " >&6
4719 else
4720 if test -n "$ac_ct_RANLIB"; then
4721 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4722 else
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 for as_dir in $PATH
4725 do
4726 IFS=$as_save_IFS
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4730 ac_cv_prog_ac_ct_RANLIB="ranlib"
4731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 break 2
4733 fi
4734 done
4735 done
4736 IFS=$as_save_IFS
4737
4738 fi
4739 fi
4740 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4741 if test -n "$ac_ct_RANLIB"; then
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4743 $as_echo "$ac_ct_RANLIB" >&6; }
4744 else
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746 $as_echo "no" >&6; }
4747 fi
4748
4749 if test "x$ac_ct_RANLIB" = x; then
4750 RANLIB=":"
4751 else
4752 case $cross_compiling:$ac_tool_warned in
4753 yes:)
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4756 ac_tool_warned=yes ;;
4757 esac
4758 RANLIB=$ac_ct_RANLIB
4759 fi
4760 else
4761 RANLIB="$ac_cv_prog_RANLIB"
4762 fi
4763
4764 fi
4765 fi
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777 # IEEE behaviour is the default on all CPUs except Alpha and SH
4778 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
4779 # and the GCC 4.1.2 manual).
4780 case "$host_cpu" in
4781 alpha*)
4782 # On Alpha systems, a compiler option provides the behaviour.
4783 # See the ieee(3) manual page, also available at
4784 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
4785 if test -n "$GCC"; then
4786 # GCC has the option -mieee.
4787 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
4788 CPPFLAGS="$CPPFLAGS -mieee"
4789 else
4790 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
4791 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
4792 CPPFLAGS="$CPPFLAGS -ieee"
4793 fi
4794 ;;
4795 sh*)
4796 if test -n "$GCC"; then
4797 # GCC has the option -mieee.
4798 CPPFLAGS="$CPPFLAGS -mieee"
4799 fi
4800 ;;
4801 esac
4802
4803
4804
4805 # Code from module alloca:
4806 # Code from module alloca-opt:
4807 # Code from module configmake:
4808 # Code from module dirent:
4809 # Code from module errno:
4810 # Code from module extensions:
4811
4812 # Code from module extern-inline:
4813 # Code from module float:
4814 # Code from module fnmatch:
4815 # Code from module fnmatch-gnu:
4816 # Code from module fpieee:
4817
4818 # Code from module fpucw:
4819 # Code from module frexp:
4820 # Code from module frexpl:
4821 # Code from module include_next:
4822 # Code from module intprops:
4823 # Code from module inttypes:
4824 # Code from module inttypes-incomplete:
4825 # Code from module isnand-nolibm:
4826 # Code from module isnanl-nolibm:
4827 # Code from module localcharset:
4828 # Code from module math:
4829 # Code from module mbrtowc:
4830 # Code from module mbsinit:
4831 # Code from module mbsrtowcs:
4832 # Code from module memchr:
4833 # Code from module memmem:
4834 # Code from module memmem-simple:
4835 # Code from module multiarch:
4836 # Code from module pathmax:
4837 # Code from module snippet/arg-nonnull:
4838 # Code from module snippet/c++defs:
4839 # Code from module snippet/warn-on-use:
4840 # Code from module ssize_t:
4841 # Code from module stdbool:
4842 # Code from module stddef:
4843 # Code from module stdint:
4844 # Code from module streq:
4845 # Code from module strerror:
4846 # Code from module strerror-override:
4847 # Code from module string:
4848 # Code from module strnlen1:
4849 # Code from module strstr:
4850 # Code from module strstr-simple:
4851 # Code from module sys_stat:
4852 # Code from module sys_types:
4853 # Code from module time:
4854 # Code from module unistd:
4855 # Code from module update-copyright:
4856 # Code from module verify:
4857 # Code from module wchar:
4858 # Code from module wctype-h:
4859
4860 ac_ext=c
4861 ac_cpp='$CPP $CPPFLAGS'
4862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4865 if test -n "$ac_tool_prefix"; then
4866 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4867 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4869 $as_echo_n "checking for $ac_word... " >&6; }
4870 if test "${ac_cv_prog_CC+set}" = set; then :
4871 $as_echo_n "(cached) " >&6
4872 else
4873 if test -n "$CC"; then
4874 ac_cv_prog_CC="$CC" # Let the user override the test.
4875 else
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4878 do
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4883 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885 break 2
4886 fi
4887 done
4888 done
4889 IFS=$as_save_IFS
4890
4891 fi
4892 fi
4893 CC=$ac_cv_prog_CC
4894 if test -n "$CC"; then
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4896 $as_echo "$CC" >&6; }
4897 else
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 $as_echo "no" >&6; }
4900 fi
4901
4902
4903 fi
4904 if test -z "$ac_cv_prog_CC"; then
4905 ac_ct_CC=$CC
4906 # Extract the first word of "gcc", so it can be a program name with args.
4907 set dummy gcc; ac_word=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4911 $as_echo_n "(cached) " >&6
4912 else
4913 if test -n "$ac_ct_CC"; then
4914 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4915 else
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 for as_dir in $PATH
4918 do
4919 IFS=$as_save_IFS
4920 test -z "$as_dir" && as_dir=.
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4923 ac_cv_prog_ac_ct_CC="gcc"
4924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4925 break 2
4926 fi
4927 done
4928 done
4929 IFS=$as_save_IFS
4930
4931 fi
4932 fi
4933 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4934 if test -n "$ac_ct_CC"; then
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4936 $as_echo "$ac_ct_CC" >&6; }
4937 else
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4939 $as_echo "no" >&6; }
4940 fi
4941
4942 if test "x$ac_ct_CC" = x; then
4943 CC=""
4944 else
4945 case $cross_compiling:$ac_tool_warned in
4946 yes:)
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4949 ac_tool_warned=yes ;;
4950 esac
4951 CC=$ac_ct_CC
4952 fi
4953 else
4954 CC="$ac_cv_prog_CC"
4955 fi
4956
4957 if test -z "$CC"; then
4958 if test -n "$ac_tool_prefix"; then
4959 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4960 set dummy ${ac_tool_prefix}cc; ac_word=$2
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4962 $as_echo_n "checking for $ac_word... " >&6; }
4963 if test "${ac_cv_prog_CC+set}" = set; then :
4964 $as_echo_n "(cached) " >&6
4965 else
4966 if test -n "$CC"; then
4967 ac_cv_prog_CC="$CC" # Let the user override the test.
4968 else
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 for as_dir in $PATH
4971 do
4972 IFS=$as_save_IFS
4973 test -z "$as_dir" && as_dir=.
4974 for ac_exec_ext in '' $ac_executable_extensions; do
4975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4976 ac_cv_prog_CC="${ac_tool_prefix}cc"
4977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4978 break 2
4979 fi
4980 done
4981 done
4982 IFS=$as_save_IFS
4983
4984 fi
4985 fi
4986 CC=$ac_cv_prog_CC
4987 if test -n "$CC"; then
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4989 $as_echo "$CC" >&6; }
4990 else
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4992 $as_echo "no" >&6; }
4993 fi
4994
4995
4996 fi
4997 fi
4998 if test -z "$CC"; then
4999 # Extract the first word of "cc", so it can be a program name with args.
5000 set dummy cc; ac_word=$2
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5002 $as_echo_n "checking for $ac_word... " >&6; }
5003 if test "${ac_cv_prog_CC+set}" = set; then :
5004 $as_echo_n "(cached) " >&6
5005 else
5006 if test -n "$CC"; then
5007 ac_cv_prog_CC="$CC" # Let the user override the test.
5008 else
5009 ac_prog_rejected=no
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5012 do
5013 IFS=$as_save_IFS
5014 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5017 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5018 ac_prog_rejected=yes
5019 continue
5020 fi
5021 ac_cv_prog_CC="cc"
5022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 break 2
5024 fi
5025 done
5026 done
5027 IFS=$as_save_IFS
5028
5029 if test $ac_prog_rejected = yes; then
5030 # We found a bogon in the path, so make sure we never use it.
5031 set dummy $ac_cv_prog_CC
5032 shift
5033 if test $# != 0; then
5034 # We chose a different compiler from the bogus one.
5035 # However, it has the same basename, so the bogon will be chosen
5036 # first if we set CC to just the basename; use the full file name.
5037 shift
5038 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5039 fi
5040 fi
5041 fi
5042 fi
5043 CC=$ac_cv_prog_CC
5044 if test -n "$CC"; then
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5046 $as_echo "$CC" >&6; }
5047 else
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049 $as_echo "no" >&6; }
5050 fi
5051
5052
5053 fi
5054 if test -z "$CC"; then
5055 if test -n "$ac_tool_prefix"; then
5056 for ac_prog in cl.exe
5057 do
5058 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5059 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061 $as_echo_n "checking for $ac_word... " >&6; }
5062 if test "${ac_cv_prog_CC+set}" = set; then :
5063 $as_echo_n "(cached) " >&6
5064 else
5065 if test -n "$CC"; then
5066 ac_cv_prog_CC="$CC" # Let the user override the test.
5067 else
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 for as_dir in $PATH
5070 do
5071 IFS=$as_save_IFS
5072 test -z "$as_dir" && as_dir=.
5073 for ac_exec_ext in '' $ac_executable_extensions; do
5074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5075 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5077 break 2
5078 fi
5079 done
5080 done
5081 IFS=$as_save_IFS
5082
5083 fi
5084 fi
5085 CC=$ac_cv_prog_CC
5086 if test -n "$CC"; then
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5088 $as_echo "$CC" >&6; }
5089 else
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091 $as_echo "no" >&6; }
5092 fi
5093
5094
5095 test -n "$CC" && break
5096 done
5097 fi
5098 if test -z "$CC"; then
5099 ac_ct_CC=$CC
5100 for ac_prog in cl.exe
5101 do
5102 # Extract the first word of "$ac_prog", so it can be a program name with args.
5103 set dummy $ac_prog; ac_word=$2
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5105 $as_echo_n "checking for $ac_word... " >&6; }
5106 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5107 $as_echo_n "(cached) " >&6
5108 else
5109 if test -n "$ac_ct_CC"; then
5110 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5111 else
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 for as_dir in $PATH
5114 do
5115 IFS=$as_save_IFS
5116 test -z "$as_dir" && as_dir=.
5117 for ac_exec_ext in '' $ac_executable_extensions; do
5118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5119 ac_cv_prog_ac_ct_CC="$ac_prog"
5120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5121 break 2
5122 fi
5123 done
5124 done
5125 IFS=$as_save_IFS
5126
5127 fi
5128 fi
5129 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5130 if test -n "$ac_ct_CC"; then
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5132 $as_echo "$ac_ct_CC" >&6; }
5133 else
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135 $as_echo "no" >&6; }
5136 fi
5137
5138
5139 test -n "$ac_ct_CC" && break
5140 done
5141
5142 if test "x$ac_ct_CC" = x; then
5143 CC=""
5144 else
5145 case $cross_compiling:$ac_tool_warned in
5146 yes:)
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5149 ac_tool_warned=yes ;;
5150 esac
5151 CC=$ac_ct_CC
5152 fi
5153 fi
5154
5155 fi
5156
5157
5158 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5160 as_fn_error "no acceptable C compiler found in \$PATH
5161 See \`config.log' for more details." "$LINENO" 5; }
5162
5163 # Provide some information about the compiler.
5164 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5165 set X $ac_compile
5166 ac_compiler=$2
5167 for ac_option in --version -v -V -qversion; do
5168 { { ac_try="$ac_compiler $ac_option >&5"
5169 case "(($ac_try" in
5170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5171 *) ac_try_echo=$ac_try;;
5172 esac
5173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5174 $as_echo "$ac_try_echo"; } >&5
5175 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5176 ac_status=$?
5177 if test -s conftest.err; then
5178 sed '10a\
5179 ... rest of stderr output deleted ...
5180 10q' conftest.err >conftest.er1
5181 cat conftest.er1 >&5
5182 rm -f conftest.er1 conftest.err
5183 fi
5184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5185 test $ac_status = 0; }
5186 done
5187
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5189 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5190 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5191 $as_echo_n "(cached) " >&6
5192 else
5193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5194 /* end confdefs.h. */
5195
5196 int
5197 main ()
5198 {
5199 #ifndef __GNUC__
5200 choke me
5201 #endif
5202
5203 ;
5204 return 0;
5205 }
5206 _ACEOF
5207 if ac_fn_c_try_compile "$LINENO"; then :
5208 ac_compiler_gnu=yes
5209 else
5210 ac_compiler_gnu=no
5211 fi
5212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5213 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5214
5215 fi
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5217 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5218 if test $ac_compiler_gnu = yes; then
5219 GCC=yes
5220 else
5221 GCC=
5222 fi
5223 ac_test_CFLAGS=${CFLAGS+set}
5224 ac_save_CFLAGS=$CFLAGS
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5226 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5227 if test "${ac_cv_prog_cc_g+set}" = set; then :
5228 $as_echo_n "(cached) " >&6
5229 else
5230 ac_save_c_werror_flag=$ac_c_werror_flag
5231 ac_c_werror_flag=yes
5232 ac_cv_prog_cc_g=no
5233 CFLAGS="-g"
5234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5235 /* end confdefs.h. */
5236
5237 int
5238 main ()
5239 {
5240
5241 ;
5242 return 0;
5243 }
5244 _ACEOF
5245 if ac_fn_c_try_compile "$LINENO"; then :
5246 ac_cv_prog_cc_g=yes
5247 else
5248 CFLAGS=""
5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250 /* end confdefs.h. */
5251
5252 int
5253 main ()
5254 {
5255
5256 ;
5257 return 0;
5258 }
5259 _ACEOF
5260 if ac_fn_c_try_compile "$LINENO"; then :
5261
5262 else
5263 ac_c_werror_flag=$ac_save_c_werror_flag
5264 CFLAGS="-g"
5265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266 /* end confdefs.h. */
5267
5268 int
5269 main ()
5270 {
5271
5272 ;
5273 return 0;
5274 }
5275 _ACEOF
5276 if ac_fn_c_try_compile "$LINENO"; then :
5277 ac_cv_prog_cc_g=yes
5278 fi
5279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5280 fi
5281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5282 fi
5283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5284 ac_c_werror_flag=$ac_save_c_werror_flag
5285 fi
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5287 $as_echo "$ac_cv_prog_cc_g" >&6; }
5288 if test "$ac_test_CFLAGS" = set; then
5289 CFLAGS=$ac_save_CFLAGS
5290 elif test $ac_cv_prog_cc_g = yes; then
5291 if test "$GCC" = yes; then
5292 CFLAGS="-g -O2"
5293 else
5294 CFLAGS="-g"
5295 fi
5296 else
5297 if test "$GCC" = yes; then
5298 CFLAGS="-O2"
5299 else
5300 CFLAGS=
5301 fi
5302 fi
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5304 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5305 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5306 $as_echo_n "(cached) " >&6
5307 else
5308 ac_cv_prog_cc_c89=no
5309 ac_save_CC=$CC
5310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311 /* end confdefs.h. */
5312 #include <stdarg.h>
5313 #include <stdio.h>
5314 #include <sys/types.h>
5315 #include <sys/stat.h>
5316 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5317 struct buf { int x; };
5318 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5319 static char *e (p, i)
5320 char **p;
5321 int i;
5322 {
5323 return p[i];
5324 }
5325 static char *f (char * (*g) (char **, int), char **p, ...)
5326 {
5327 char *s;
5328 va_list v;
5329 va_start (v,p);
5330 s = g (p, va_arg (v,int));
5331 va_end (v);
5332 return s;
5333 }
5334
5335 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5336 function prototypes and stuff, but not '\xHH' hex character constants.
5337 These don't provoke an error unfortunately, instead are silently treated
5338 as 'x'. The following induces an error, until -std is added to get
5339 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5340 array size at least. It's necessary to write '\x00'==0 to get something
5341 that's true only with -std. */
5342 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5343
5344 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5345 inside strings and character constants. */
5346 #define FOO(x) 'x'
5347 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5348
5349 int test (int i, double x);
5350 struct s1 {int (*f) (int a);};
5351 struct s2 {int (*f) (double a);};
5352 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5353 int argc;
5354 char **argv;
5355 int
5356 main ()
5357 {
5358 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5359 ;
5360 return 0;
5361 }
5362 _ACEOF
5363 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5364 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5365 do
5366 CC="$ac_save_CC $ac_arg"
5367 if ac_fn_c_try_compile "$LINENO"; then :
5368 ac_cv_prog_cc_c89=$ac_arg
5369 fi
5370 rm -f core conftest.err conftest.$ac_objext
5371 test "x$ac_cv_prog_cc_c89" != "xno" && break
5372 done
5373 rm -f conftest.$ac_ext
5374 CC=$ac_save_CC
5375
5376 fi
5377 # AC_CACHE_VAL
5378 case "x$ac_cv_prog_cc_c89" in
5379 x)
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5381 $as_echo "none needed" >&6; } ;;
5382 xno)
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5384 $as_echo "unsupported" >&6; } ;;
5385 *)
5386 CC="$CC $ac_cv_prog_cc_c89"
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5388 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5389 esac
5390 if test "x$ac_cv_prog_cc_c89" != xno; then :
5391
5392 fi
5393
5394 ac_ext=c
5395 ac_cpp='$CPP $CPPFLAGS'
5396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5399
5400
5401 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5402
5403
5404 ac_aux_dir=
5405 for ac_dir in ../.. "$srcdir"/../..; do
5406 for ac_t in install-sh install.sh shtool; do
5407 if test -f "$ac_dir/$ac_t"; then
5408 ac_aux_dir=$ac_dir
5409 ac_install_sh="$ac_aux_dir/$ac_t -c"
5410 break 2
5411 fi
5412 done
5413 done
5414 if test -z "$ac_aux_dir"; then
5415 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5416 fi
5417
5418 # These three variables are undocumented and unsupported,
5419 # and are intended to be withdrawn in a future Autoconf release.
5420 # They can cause serious problems if a builder's source tree is in a directory
5421 # whose full name contains unusual characters.
5422 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5423 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5424 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5425
5426
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5428 $as_echo_n "checking target system type... " >&6; }
5429 if test "${ac_cv_target+set}" = set; then :
5430 $as_echo_n "(cached) " >&6
5431 else
5432 if test "x$target_alias" = x; then
5433 ac_cv_target=$ac_cv_host
5434 else
5435 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5436 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5437 fi
5438
5439 fi
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5441 $as_echo "$ac_cv_target" >&6; }
5442 case $ac_cv_target in
5443 *-*-*) ;;
5444 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5445 esac
5446 target=$ac_cv_target
5447 ac_save_IFS=$IFS; IFS='-'
5448 set x $ac_cv_target
5449 shift
5450 target_cpu=$1
5451 target_vendor=$2
5452 shift; shift
5453 # Remember, the first character of IFS is used to create $*,
5454 # except with old shells:
5455 target_os=$*
5456 IFS=$ac_save_IFS
5457 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5458
5459
5460 # The aliases save the names the user supplied, while $host etc.
5461 # will get canonicalized.
5462 test -n "$target_alias" &&
5463 test "$program_prefix$program_suffix$program_transform_name" = \
5464 NONENONEs,x,x, &&
5465 program_prefix=${target_alias}-
5466
5467
5468
5469
5470
5471
5472
5473 LIBC_FATAL_STDERR_=1
5474 export LIBC_FATAL_STDERR_
5475
5476 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5477 # for constant arguments. Useless!
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5479 $as_echo_n "checking for working alloca.h... " >&6; }
5480 if test "${ac_cv_working_alloca_h+set}" = set; then :
5481 $as_echo_n "(cached) " >&6
5482 else
5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484 /* end confdefs.h. */
5485 #include <alloca.h>
5486 int
5487 main ()
5488 {
5489 char *p = (char *) alloca (2 * sizeof (int));
5490 if (p) return 0;
5491 ;
5492 return 0;
5493 }
5494 _ACEOF
5495 if ac_fn_c_try_link "$LINENO"; then :
5496 ac_cv_working_alloca_h=yes
5497 else
5498 ac_cv_working_alloca_h=no
5499 fi
5500 rm -f core conftest.err conftest.$ac_objext \
5501 conftest$ac_exeext conftest.$ac_ext
5502 fi
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5504 $as_echo "$ac_cv_working_alloca_h" >&6; }
5505 if test $ac_cv_working_alloca_h = yes; then
5506
5507 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5508
5509 fi
5510
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5512 $as_echo_n "checking for alloca... " >&6; }
5513 if test "${ac_cv_func_alloca_works+set}" = set; then :
5514 $as_echo_n "(cached) " >&6
5515 else
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h. */
5518 #ifdef __GNUC__
5519 # define alloca __builtin_alloca
5520 #else
5521 # ifdef _MSC_VER
5522 # include <malloc.h>
5523 # define alloca _alloca
5524 # else
5525 # ifdef HAVE_ALLOCA_H
5526 # include <alloca.h>
5527 # else
5528 # ifdef _AIX
5529 #pragma alloca
5530 # else
5531 # ifndef alloca /* predefined by HP cc +Olibcalls */
5532 char *alloca ();
5533 # endif
5534 # endif
5535 # endif
5536 # endif
5537 #endif
5538
5539 int
5540 main ()
5541 {
5542 char *p = (char *) alloca (1);
5543 if (p) return 0;
5544 ;
5545 return 0;
5546 }
5547 _ACEOF
5548 if ac_fn_c_try_link "$LINENO"; then :
5549 ac_cv_func_alloca_works=yes
5550 else
5551 ac_cv_func_alloca_works=no
5552 fi
5553 rm -f core conftest.err conftest.$ac_objext \
5554 conftest$ac_exeext conftest.$ac_ext
5555 fi
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5557 $as_echo "$ac_cv_func_alloca_works" >&6; }
5558
5559 if test $ac_cv_func_alloca_works = yes; then
5560
5561 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5562
5563 else
5564 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5565 # that cause trouble. Some versions do not even contain alloca or
5566 # contain a buggy version. If you still want to use their alloca,
5567 # use ar to extract alloca.o from them instead of compiling alloca.c.
5568
5569
5570
5571
5572
5573 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5574
5575 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5576
5577
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5579 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5580 if test "${ac_cv_os_cray+set}" = set; then :
5581 $as_echo_n "(cached) " >&6
5582 else
5583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584 /* end confdefs.h. */
5585 #if defined CRAY && ! defined CRAY2
5586 webecray
5587 #else
5588 wenotbecray
5589 #endif
5590
5591 _ACEOF
5592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5593 $EGREP "webecray" >/dev/null 2>&1; then :
5594 ac_cv_os_cray=yes
5595 else
5596 ac_cv_os_cray=no
5597 fi
5598 rm -f conftest*
5599
5600 fi
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5602 $as_echo "$ac_cv_os_cray" >&6; }
5603 if test $ac_cv_os_cray = yes; then
5604 for ac_func in _getb67 GETB67 getb67; do
5605 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5606 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5607 eval as_val=\$$as_ac_var
5608 if test "x$as_val" = x""yes; then :
5609
5610 cat >>confdefs.h <<_ACEOF
5611 #define CRAY_STACKSEG_END $ac_func
5612 _ACEOF
5613
5614 break
5615 fi
5616
5617 done
5618 fi
5619
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5621 $as_echo_n "checking stack direction for C alloca... " >&6; }
5622 if test "${ac_cv_c_stack_direction+set}" = set; then :
5623 $as_echo_n "(cached) " >&6
5624 else
5625 if test "$cross_compiling" = yes; then :
5626 ac_cv_c_stack_direction=0
5627 else
5628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629 /* end confdefs.h. */
5630 $ac_includes_default
5631 int
5632 find_stack_direction (int *addr, int depth)
5633 {
5634 int dir, dummy = 0;
5635 if (! addr)
5636 addr = &dummy;
5637 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5638 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5639 return dir + dummy;
5640 }
5641
5642 int
5643 main (int argc, char **argv)
5644 {
5645 return find_stack_direction (0, argc + !argv + 20) < 0;
5646 }
5647 _ACEOF
5648 if ac_fn_c_try_run "$LINENO"; then :
5649 ac_cv_c_stack_direction=1
5650 else
5651 ac_cv_c_stack_direction=-1
5652 fi
5653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5654 conftest.$ac_objext conftest.beam conftest.$ac_ext
5655 fi
5656
5657 fi
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5659 $as_echo "$ac_cv_c_stack_direction" >&6; }
5660 cat >>confdefs.h <<_ACEOF
5661 #define STACK_DIRECTION $ac_cv_c_stack_direction
5662 _ACEOF
5663
5664
5665 fi
5666
5667
5668 GNULIB_CHDIR=0;
5669 GNULIB_CHOWN=0;
5670 GNULIB_CLOSE=0;
5671 GNULIB_DUP=0;
5672 GNULIB_DUP2=0;
5673 GNULIB_DUP3=0;
5674 GNULIB_ENVIRON=0;
5675 GNULIB_EUIDACCESS=0;
5676 GNULIB_FACCESSAT=0;
5677 GNULIB_FCHDIR=0;
5678 GNULIB_FCHOWNAT=0;
5679 GNULIB_FDATASYNC=0;
5680 GNULIB_FSYNC=0;
5681 GNULIB_FTRUNCATE=0;
5682 GNULIB_GETCWD=0;
5683 GNULIB_GETDOMAINNAME=0;
5684 GNULIB_GETDTABLESIZE=0;
5685 GNULIB_GETGROUPS=0;
5686 GNULIB_GETHOSTNAME=0;
5687 GNULIB_GETLOGIN=0;
5688 GNULIB_GETLOGIN_R=0;
5689 GNULIB_GETPAGESIZE=0;
5690 GNULIB_GETUSERSHELL=0;
5691 GNULIB_GROUP_MEMBER=0;
5692 GNULIB_ISATTY=0;
5693 GNULIB_LCHOWN=0;
5694 GNULIB_LINK=0;
5695 GNULIB_LINKAT=0;
5696 GNULIB_LSEEK=0;
5697 GNULIB_PIPE=0;
5698 GNULIB_PIPE2=0;
5699 GNULIB_PREAD=0;
5700 GNULIB_PWRITE=0;
5701 GNULIB_READ=0;
5702 GNULIB_READLINK=0;
5703 GNULIB_READLINKAT=0;
5704 GNULIB_RMDIR=0;
5705 GNULIB_SETHOSTNAME=0;
5706 GNULIB_SLEEP=0;
5707 GNULIB_SYMLINK=0;
5708 GNULIB_SYMLINKAT=0;
5709 GNULIB_TTYNAME_R=0;
5710 GNULIB_UNISTD_H_NONBLOCKING=0;
5711 GNULIB_UNISTD_H_SIGPIPE=0;
5712 GNULIB_UNLINK=0;
5713 GNULIB_UNLINKAT=0;
5714 GNULIB_USLEEP=0;
5715 GNULIB_WRITE=0;
5716 HAVE_CHOWN=1;
5717 HAVE_DUP2=1;
5718 HAVE_DUP3=1;
5719 HAVE_EUIDACCESS=1;
5720 HAVE_FACCESSAT=1;
5721 HAVE_FCHDIR=1;
5722 HAVE_FCHOWNAT=1;
5723 HAVE_FDATASYNC=1;
5724 HAVE_FSYNC=1;
5725 HAVE_FTRUNCATE=1;
5726 HAVE_GETDTABLESIZE=1;
5727 HAVE_GETGROUPS=1;
5728 HAVE_GETHOSTNAME=1;
5729 HAVE_GETLOGIN=1;
5730 HAVE_GETPAGESIZE=1;
5731 HAVE_GROUP_MEMBER=1;
5732 HAVE_LCHOWN=1;
5733 HAVE_LINK=1;
5734 HAVE_LINKAT=1;
5735 HAVE_PIPE=1;
5736 HAVE_PIPE2=1;
5737 HAVE_PREAD=1;
5738 HAVE_PWRITE=1;
5739 HAVE_READLINK=1;
5740 HAVE_READLINKAT=1;
5741 HAVE_SETHOSTNAME=1;
5742 HAVE_SLEEP=1;
5743 HAVE_SYMLINK=1;
5744 HAVE_SYMLINKAT=1;
5745 HAVE_UNLINKAT=1;
5746 HAVE_USLEEP=1;
5747 HAVE_DECL_ENVIRON=1;
5748 HAVE_DECL_FCHDIR=1;
5749 HAVE_DECL_FDATASYNC=1;
5750 HAVE_DECL_GETDOMAINNAME=1;
5751 HAVE_DECL_GETLOGIN_R=1;
5752 HAVE_DECL_GETPAGESIZE=1;
5753 HAVE_DECL_GETUSERSHELL=1;
5754 HAVE_DECL_SETHOSTNAME=1;
5755 HAVE_DECL_TTYNAME_R=1;
5756 HAVE_OS_H=0;
5757 HAVE_SYS_PARAM_H=0;
5758 REPLACE_CHOWN=0;
5759 REPLACE_CLOSE=0;
5760 REPLACE_DUP=0;
5761 REPLACE_DUP2=0;
5762 REPLACE_FCHOWNAT=0;
5763 REPLACE_FTRUNCATE=0;
5764 REPLACE_GETCWD=0;
5765 REPLACE_GETDOMAINNAME=0;
5766 REPLACE_GETLOGIN_R=0;
5767 REPLACE_GETGROUPS=0;
5768 REPLACE_GETPAGESIZE=0;
5769 REPLACE_ISATTY=0;
5770 REPLACE_LCHOWN=0;
5771 REPLACE_LINK=0;
5772 REPLACE_LINKAT=0;
5773 REPLACE_LSEEK=0;
5774 REPLACE_PREAD=0;
5775 REPLACE_PWRITE=0;
5776 REPLACE_READ=0;
5777 REPLACE_READLINK=0;
5778 REPLACE_RMDIR=0;
5779 REPLACE_SLEEP=0;
5780 REPLACE_SYMLINK=0;
5781 REPLACE_TTYNAME_R=0;
5782 REPLACE_UNLINK=0;
5783 REPLACE_UNLINKAT=0;
5784 REPLACE_USLEEP=0;
5785 REPLACE_WRITE=0;
5786 UNISTD_H_HAVE_WINSOCK2_H=0;
5787 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
5788
5789
5790
5791 GNULIB_OPENDIR=0;
5792 GNULIB_READDIR=0;
5793 GNULIB_REWINDDIR=0;
5794 GNULIB_CLOSEDIR=0;
5795 GNULIB_DIRFD=0;
5796 GNULIB_FDOPENDIR=0;
5797 GNULIB_SCANDIR=0;
5798 GNULIB_ALPHASORT=0;
5799 HAVE_OPENDIR=1;
5800 HAVE_READDIR=1;
5801 HAVE_REWINDDIR=1;
5802 HAVE_CLOSEDIR=1;
5803 HAVE_DECL_DIRFD=1;
5804 HAVE_DECL_FDOPENDIR=1;
5805 HAVE_FDOPENDIR=1;
5806 HAVE_SCANDIR=1;
5807 HAVE_ALPHASORT=1;
5808 REPLACE_OPENDIR=0;
5809 REPLACE_CLOSEDIR=0;
5810 REPLACE_DIRFD=0;
5811 REPLACE_FDOPENDIR=0;
5812
5813
5814
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5816 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5817 if test "${gl_cv_have_include_next+set}" = set; then :
5818 $as_echo_n "(cached) " >&6
5819 else
5820 rm -rf conftestd1a conftestd1b conftestd2
5821 mkdir conftestd1a conftestd1b conftestd2
5822 cat <<EOF > conftestd1a/conftest.h
5823 #define DEFINED_IN_CONFTESTD1
5824 #include_next <conftest.h>
5825 #ifdef DEFINED_IN_CONFTESTD2
5826 int foo;
5827 #else
5828 #error "include_next doesn't work"
5829 #endif
5830 EOF
5831 cat <<EOF > conftestd1b/conftest.h
5832 #define DEFINED_IN_CONFTESTD1
5833 #include <stdio.h>
5834 #include_next <conftest.h>
5835 #ifdef DEFINED_IN_CONFTESTD2
5836 int foo;
5837 #else
5838 #error "include_next doesn't work"
5839 #endif
5840 EOF
5841 cat <<EOF > conftestd2/conftest.h
5842 #ifndef DEFINED_IN_CONFTESTD1
5843 #error "include_next test doesn't work"
5844 #endif
5845 #define DEFINED_IN_CONFTESTD2
5846 EOF
5847 gl_save_CPPFLAGS="$CPPFLAGS"
5848 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5850 /* end confdefs.h. */
5851 #include <conftest.h>
5852 _ACEOF
5853 if ac_fn_c_try_compile "$LINENO"; then :
5854 gl_cv_have_include_next=yes
5855 else
5856 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5858 /* end confdefs.h. */
5859 #include <conftest.h>
5860 _ACEOF
5861 if ac_fn_c_try_compile "$LINENO"; then :
5862 gl_cv_have_include_next=buggy
5863 else
5864 gl_cv_have_include_next=no
5865 fi
5866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5867
5868 fi
5869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5870 CPPFLAGS="$gl_save_CPPFLAGS"
5871 rm -rf conftestd1a conftestd1b conftestd2
5872
5873 fi
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5875 $as_echo "$gl_cv_have_include_next" >&6; }
5876 PRAGMA_SYSTEM_HEADER=
5877 if test $gl_cv_have_include_next = yes; then
5878 INCLUDE_NEXT=include_next
5879 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5880 if test -n "$GCC"; then
5881 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5882 fi
5883 else
5884 if test $gl_cv_have_include_next = buggy; then
5885 INCLUDE_NEXT=include
5886 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5887 else
5888 INCLUDE_NEXT=include
5889 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5890 fi
5891 fi
5892
5893
5894
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
5896 $as_echo_n "checking whether system header files limit the line length... " >&6; }
5897 if test "${gl_cv_pragma_columns+set}" = set; then :
5898 $as_echo_n "(cached) " >&6
5899 else
5900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5901 /* end confdefs.h. */
5902
5903 #ifdef __TANDEM
5904 choke me
5905 #endif
5906
5907 _ACEOF
5908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5909 $EGREP "choke me" >/dev/null 2>&1; then :
5910 gl_cv_pragma_columns=yes
5911 else
5912 gl_cv_pragma_columns=no
5913 fi
5914 rm -f conftest*
5915
5916
5917 fi
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
5919 $as_echo "$gl_cv_pragma_columns" >&6; }
5920 if test $gl_cv_pragma_columns = yes; then
5921 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
5922 else
5923 PRAGMA_COLUMNS=
5924 fi
5925
5926
5927
5928
5929
5930 for ac_header in $ac_header_list
5931 do :
5932 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5933 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5934 "
5935 eval as_val=\$$as_ac_Header
5936 if test "x$as_val" = x""yes; then :
5937 cat >>confdefs.h <<_ACEOF
5938 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5939 _ACEOF
5940
5941 fi
5942
5943 done
5944
5945
5946
5947
5948
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
5950 $as_echo_n "checking for complete errno.h... " >&6; }
5951 if test "${gl_cv_header_errno_h_complete+set}" = set; then :
5952 $as_echo_n "(cached) " >&6
5953 else
5954
5955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5956 /* end confdefs.h. */
5957
5958 #include <errno.h>
5959 #if !defined ETXTBSY
5960 booboo
5961 #endif
5962 #if !defined ENOMSG
5963 booboo
5964 #endif
5965 #if !defined EIDRM
5966 booboo
5967 #endif
5968 #if !defined ENOLINK
5969 booboo
5970 #endif
5971 #if !defined EPROTO
5972 booboo
5973 #endif
5974 #if !defined EMULTIHOP
5975 booboo
5976 #endif
5977 #if !defined EBADMSG
5978 booboo
5979 #endif
5980 #if !defined EOVERFLOW
5981 booboo
5982 #endif
5983 #if !defined ENOTSUP
5984 booboo
5985 #endif
5986 #if !defined ENETRESET
5987 booboo
5988 #endif
5989 #if !defined ECONNABORTED
5990 booboo
5991 #endif
5992 #if !defined ESTALE
5993 booboo
5994 #endif
5995 #if !defined EDQUOT
5996 booboo
5997 #endif
5998 #if !defined ECANCELED
5999 booboo
6000 #endif
6001 #if !defined EOWNERDEAD
6002 booboo
6003 #endif
6004 #if !defined ENOTRECOVERABLE
6005 booboo
6006 #endif
6007 #if !defined EILSEQ
6008 booboo
6009 #endif
6010
6011 _ACEOF
6012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6013 $EGREP "booboo" >/dev/null 2>&1; then :
6014 gl_cv_header_errno_h_complete=no
6015 else
6016 gl_cv_header_errno_h_complete=yes
6017 fi
6018 rm -f conftest*
6019
6020
6021 fi
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
6023 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
6024 if test $gl_cv_header_errno_h_complete = yes; then
6025 ERRNO_H=''
6026 else
6027
6028
6029
6030
6031
6032
6033
6034
6035 if test $gl_cv_have_include_next = yes; then
6036 gl_cv_next_errno_h='<'errno.h'>'
6037 else
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
6039 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
6040 if test "${gl_cv_next_errno_h+set}" = set; then :
6041 $as_echo_n "(cached) " >&6
6042 else
6043
6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6046 #include <errno.h>
6047
6048 _ACEOF
6049 case "$host_os" in
6050 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6051 *) gl_absname_cpp="$ac_cpp" ;;
6052 esac
6053
6054 case "$host_os" in
6055 mingw*)
6056 gl_dirsep_regex='[/\\]'
6057 ;;
6058 *)
6059 gl_dirsep_regex='\/'
6060 ;;
6061 esac
6062 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6063
6064 gl_header_literal_regex=`echo 'errno.h' \
6065 | sed -e "$gl_make_literal_regex_sed"`
6066 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6067 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6068 s|^/[^/]|//&|
6069 p
6070 q
6071 }'
6072 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6073 sed -n "$gl_absolute_header_sed"`'"'
6074
6075
6076 fi
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
6078 $as_echo "$gl_cv_next_errno_h" >&6; }
6079 fi
6080 NEXT_ERRNO_H=$gl_cv_next_errno_h
6081
6082 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6083 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6084 gl_next_as_first_directive='<'errno.h'>'
6085 else
6086 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6087 gl_next_as_first_directive=$gl_cv_next_errno_h
6088 fi
6089 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
6090
6091
6092
6093
6094 ERRNO_H='errno.h'
6095 fi
6096
6097 if test -n "$ERRNO_H"; then
6098 GL_GENERATE_ERRNO_H_TRUE=
6099 GL_GENERATE_ERRNO_H_FALSE='#'
6100 else
6101 GL_GENERATE_ERRNO_H_TRUE='#'
6102 GL_GENERATE_ERRNO_H_FALSE=
6103 fi
6104
6105
6106 if test -n "$ERRNO_H"; then
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
6108 $as_echo_n "checking for EMULTIHOP value... " >&6; }
6109 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then :
6110 $as_echo_n "(cached) " >&6
6111 else
6112
6113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114 /* end confdefs.h. */
6115
6116 #include <errno.h>
6117 #ifdef EMULTIHOP
6118 yes
6119 #endif
6120
6121 _ACEOF
6122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6123 $EGREP "yes" >/dev/null 2>&1; then :
6124 gl_cv_header_errno_h_EMULTIHOP=yes
6125 else
6126 gl_cv_header_errno_h_EMULTIHOP=no
6127 fi
6128 rm -f conftest*
6129
6130 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
6131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6132 /* end confdefs.h. */
6133
6134 #define _XOPEN_SOURCE_EXTENDED 1
6135 #include <errno.h>
6136 #ifdef EMULTIHOP
6137 yes
6138 #endif
6139
6140 _ACEOF
6141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6142 $EGREP "yes" >/dev/null 2>&1; then :
6143 gl_cv_header_errno_h_EMULTIHOP=hidden
6144 fi
6145 rm -f conftest*
6146
6147 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
6148 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
6149 #define _XOPEN_SOURCE_EXTENDED 1
6150 #include <errno.h>
6151 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6152 #include <stdio.h>
6153 #include <stdlib.h>
6154 "; then :
6155
6156 fi
6157
6158 fi
6159 fi
6160
6161 fi
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
6163 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
6164 case $gl_cv_header_errno_h_EMULTIHOP in
6165 yes | no)
6166 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
6167 ;;
6168 *)
6169 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
6170 ;;
6171 esac
6172
6173
6174 fi
6175
6176
6177 if test -n "$ERRNO_H"; then
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
6179 $as_echo_n "checking for ENOLINK value... " >&6; }
6180 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then :
6181 $as_echo_n "(cached) " >&6
6182 else
6183
6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185 /* end confdefs.h. */
6186
6187 #include <errno.h>
6188 #ifdef ENOLINK
6189 yes
6190 #endif
6191
6192 _ACEOF
6193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6194 $EGREP "yes" >/dev/null 2>&1; then :
6195 gl_cv_header_errno_h_ENOLINK=yes
6196 else
6197 gl_cv_header_errno_h_ENOLINK=no
6198 fi
6199 rm -f conftest*
6200
6201 if test $gl_cv_header_errno_h_ENOLINK = no; then
6202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6203 /* end confdefs.h. */
6204
6205 #define _XOPEN_SOURCE_EXTENDED 1
6206 #include <errno.h>
6207 #ifdef ENOLINK
6208 yes
6209 #endif
6210
6211 _ACEOF
6212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6213 $EGREP "yes" >/dev/null 2>&1; then :
6214 gl_cv_header_errno_h_ENOLINK=hidden
6215 fi
6216 rm -f conftest*
6217
6218 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
6219 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
6220 #define _XOPEN_SOURCE_EXTENDED 1
6221 #include <errno.h>
6222 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6223 #include <stdio.h>
6224 #include <stdlib.h>
6225 "; then :
6226
6227 fi
6228
6229 fi
6230 fi
6231
6232 fi
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
6234 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
6235 case $gl_cv_header_errno_h_ENOLINK in
6236 yes | no)
6237 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
6238 ;;
6239 *)
6240 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
6241 ;;
6242 esac
6243
6244
6245 fi
6246
6247
6248 if test -n "$ERRNO_H"; then
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
6250 $as_echo_n "checking for EOVERFLOW value... " >&6; }
6251 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then :
6252 $as_echo_n "(cached) " >&6
6253 else
6254
6255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256 /* end confdefs.h. */
6257
6258 #include <errno.h>
6259 #ifdef EOVERFLOW
6260 yes
6261 #endif
6262
6263 _ACEOF
6264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6265 $EGREP "yes" >/dev/null 2>&1; then :
6266 gl_cv_header_errno_h_EOVERFLOW=yes
6267 else
6268 gl_cv_header_errno_h_EOVERFLOW=no
6269 fi
6270 rm -f conftest*
6271
6272 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
6273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274 /* end confdefs.h. */
6275
6276 #define _XOPEN_SOURCE_EXTENDED 1
6277 #include <errno.h>
6278 #ifdef EOVERFLOW
6279 yes
6280 #endif
6281
6282 _ACEOF
6283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6284 $EGREP "yes" >/dev/null 2>&1; then :
6285 gl_cv_header_errno_h_EOVERFLOW=hidden
6286 fi
6287 rm -f conftest*
6288
6289 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
6290 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
6291 #define _XOPEN_SOURCE_EXTENDED 1
6292 #include <errno.h>
6293 /* The following two lines are a workaround against an autoconf-2.52 bug. */
6294 #include <stdio.h>
6295 #include <stdlib.h>
6296 "; then :
6297
6298 fi
6299
6300 fi
6301 fi
6302
6303 fi
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
6305 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
6306 case $gl_cv_header_errno_h_EOVERFLOW in
6307 yes | no)
6308 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
6309 ;;
6310 *)
6311 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
6312 ;;
6313 esac
6314
6315
6316 fi
6317
6318
6319
6320
6321
6322
6323
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
6325 $as_echo_n "checking for mbstate_t... " >&6; }
6326 if test "${ac_cv_type_mbstate_t+set}" = set; then :
6327 $as_echo_n "(cached) " >&6
6328 else
6329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6330 /* end confdefs.h. */
6331 $ac_includes_default
6332 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
6333 <wchar.h>.
6334 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6335 included before <wchar.h>. */
6336 #include <stddef.h>
6337 #include <stdio.h>
6338 #include <time.h>
6339 #include <wchar.h>
6340 int
6341 main ()
6342 {
6343 mbstate_t x; return sizeof x;
6344 ;
6345 return 0;
6346 }
6347 _ACEOF
6348 if ac_fn_c_try_compile "$LINENO"; then :
6349 ac_cv_type_mbstate_t=yes
6350 else
6351 ac_cv_type_mbstate_t=no
6352 fi
6353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354 fi
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
6356 $as_echo "$ac_cv_type_mbstate_t" >&6; }
6357 if test $ac_cv_type_mbstate_t = yes; then
6358
6359 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
6360
6361 else
6362
6363 $as_echo "#define mbstate_t int" >>confdefs.h
6364
6365 fi
6366
6367
6368
6369
6370 for ac_func in $ac_func_list
6371 do :
6372 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6373 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6374 eval as_val=\$$as_ac_var
6375 if test "x$as_val" = x""yes; then :
6376 cat >>confdefs.h <<_ACEOF
6377 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6378 _ACEOF
6379
6380 fi
6381 done
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402 GNULIB_ACOSF=0;
6403 GNULIB_ACOSL=0;
6404 GNULIB_ASINF=0;
6405 GNULIB_ASINL=0;
6406 GNULIB_ATANF=0;
6407 GNULIB_ATANL=0;
6408 GNULIB_ATAN2F=0;
6409 GNULIB_CBRT=0;
6410 GNULIB_CBRTF=0;
6411 GNULIB_CBRTL=0;
6412 GNULIB_CEIL=0;
6413 GNULIB_CEILF=0;
6414 GNULIB_CEILL=0;
6415 GNULIB_COPYSIGN=0;
6416 GNULIB_COPYSIGNF=0;
6417 GNULIB_COPYSIGNL=0;
6418 GNULIB_COSF=0;
6419 GNULIB_COSL=0;
6420 GNULIB_COSHF=0;
6421 GNULIB_EXPF=0;
6422 GNULIB_EXPL=0;
6423 GNULIB_EXP2=0;
6424 GNULIB_EXP2F=0;
6425 GNULIB_EXP2L=0;
6426 GNULIB_EXPM1=0;
6427 GNULIB_EXPM1F=0;
6428 GNULIB_EXPM1L=0;
6429 GNULIB_FABSF=0;
6430 GNULIB_FABSL=0;
6431 GNULIB_FLOOR=0;
6432 GNULIB_FLOORF=0;
6433 GNULIB_FLOORL=0;
6434 GNULIB_FMA=0;
6435 GNULIB_FMAF=0;
6436 GNULIB_FMAL=0;
6437 GNULIB_FMOD=0;
6438 GNULIB_FMODF=0;
6439 GNULIB_FMODL=0;
6440 GNULIB_FREXPF=0;
6441 GNULIB_FREXP=0;
6442 GNULIB_FREXPL=0;
6443 GNULIB_HYPOT=0;
6444 GNULIB_HYPOTF=0;
6445 GNULIB_HYPOTL=0;
6446 GNULIB_ILOGB=0;
6447 GNULIB_ILOGBF=0;
6448 GNULIB_ILOGBL=0;
6449 GNULIB_ISFINITE=0;
6450 GNULIB_ISINF=0;
6451 GNULIB_ISNAN=0;
6452 GNULIB_ISNANF=0;
6453 GNULIB_ISNAND=0;
6454 GNULIB_ISNANL=0;
6455 GNULIB_LDEXPF=0;
6456 GNULIB_LDEXPL=0;
6457 GNULIB_LOG=0;
6458 GNULIB_LOGF=0;
6459 GNULIB_LOGL=0;
6460 GNULIB_LOG10=0;
6461 GNULIB_LOG10F=0;
6462 GNULIB_LOG10L=0;
6463 GNULIB_LOG1P=0;
6464 GNULIB_LOG1PF=0;
6465 GNULIB_LOG1PL=0;
6466 GNULIB_LOG2=0;
6467 GNULIB_LOG2F=0;
6468 GNULIB_LOG2L=0;
6469 GNULIB_LOGB=0;
6470 GNULIB_LOGBF=0;
6471 GNULIB_LOGBL=0;
6472 GNULIB_MODF=0;
6473 GNULIB_MODFF=0;
6474 GNULIB_MODFL=0;
6475 GNULIB_POWF=0;
6476 GNULIB_REMAINDER=0;
6477 GNULIB_REMAINDERF=0;
6478 GNULIB_REMAINDERL=0;
6479 GNULIB_RINT=0;
6480 GNULIB_RINTF=0;
6481 GNULIB_RINTL=0;
6482 GNULIB_ROUND=0;
6483 GNULIB_ROUNDF=0;
6484 GNULIB_ROUNDL=0;
6485 GNULIB_SIGNBIT=0;
6486 GNULIB_SINF=0;
6487 GNULIB_SINL=0;
6488 GNULIB_SINHF=0;
6489 GNULIB_SQRTF=0;
6490 GNULIB_SQRTL=0;
6491 GNULIB_TANF=0;
6492 GNULIB_TANL=0;
6493 GNULIB_TANHF=0;
6494 GNULIB_TRUNC=0;
6495 GNULIB_TRUNCF=0;
6496 GNULIB_TRUNCL=0;
6497 HAVE_ACOSF=1;
6498 HAVE_ACOSL=1;
6499 HAVE_ASINF=1;
6500 HAVE_ASINL=1;
6501 HAVE_ATANF=1;
6502 HAVE_ATANL=1;
6503 HAVE_ATAN2F=1;
6504 HAVE_CBRT=1;
6505 HAVE_CBRTF=1;
6506 HAVE_CBRTL=1;
6507 HAVE_COPYSIGN=1;
6508 HAVE_COPYSIGNL=1;
6509 HAVE_COSF=1;
6510 HAVE_COSL=1;
6511 HAVE_COSHF=1;
6512 HAVE_EXPF=1;
6513 HAVE_EXPL=1;
6514 HAVE_EXPM1=1;
6515 HAVE_EXPM1F=1;
6516 HAVE_FABSF=1;
6517 HAVE_FABSL=1;
6518 HAVE_FMA=1;
6519 HAVE_FMAF=1;
6520 HAVE_FMAL=1;
6521 HAVE_FMODF=1;
6522 HAVE_FMODL=1;
6523 HAVE_FREXPF=1;
6524 HAVE_HYPOTF=1;
6525 HAVE_HYPOTL=1;
6526 HAVE_ILOGB=1;
6527 HAVE_ILOGBF=1;
6528 HAVE_ILOGBL=1;
6529 HAVE_ISNANF=1;
6530 HAVE_ISNAND=1;
6531 HAVE_ISNANL=1;
6532 HAVE_LDEXPF=1;
6533 HAVE_LOGF=1;
6534 HAVE_LOGL=1;
6535 HAVE_LOG10F=1;
6536 HAVE_LOG10L=1;
6537 HAVE_LOG1P=1;
6538 HAVE_LOG1PF=1;
6539 HAVE_LOG1PL=1;
6540 HAVE_LOGBF=1;
6541 HAVE_LOGBL=1;
6542 HAVE_MODFF=1;
6543 HAVE_MODFL=1;
6544 HAVE_POWF=1;
6545 HAVE_REMAINDER=1;
6546 HAVE_REMAINDERF=1;
6547 HAVE_RINT=1;
6548 HAVE_RINTL=1;
6549 HAVE_SINF=1;
6550 HAVE_SINL=1;
6551 HAVE_SINHF=1;
6552 HAVE_SQRTF=1;
6553 HAVE_SQRTL=1;
6554 HAVE_TANF=1;
6555 HAVE_TANL=1;
6556 HAVE_TANHF=1;
6557 HAVE_DECL_ACOSL=1;
6558 HAVE_DECL_ASINL=1;
6559 HAVE_DECL_ATANL=1;
6560 HAVE_DECL_CBRTF=1;
6561 HAVE_DECL_CBRTL=1;
6562 HAVE_DECL_CEILF=1;
6563 HAVE_DECL_CEILL=1;
6564 HAVE_DECL_COPYSIGNF=1;
6565 HAVE_DECL_COSL=1;
6566 HAVE_DECL_EXPL=1;
6567 HAVE_DECL_EXP2=1;
6568 HAVE_DECL_EXP2F=1;
6569 HAVE_DECL_EXP2L=1;
6570 HAVE_DECL_EXPM1L=1;
6571 HAVE_DECL_FLOORF=1;
6572 HAVE_DECL_FLOORL=1;
6573 HAVE_DECL_FREXPL=1;
6574 HAVE_DECL_LDEXPL=1;
6575 HAVE_DECL_LOGL=1;
6576 HAVE_DECL_LOG10L=1;
6577 HAVE_DECL_LOG2=1;
6578 HAVE_DECL_LOG2F=1;
6579 HAVE_DECL_LOG2L=1;
6580 HAVE_DECL_LOGB=1;
6581 HAVE_DECL_REMAINDER=1;
6582 HAVE_DECL_REMAINDERL=1;
6583 HAVE_DECL_RINTF=1;
6584 HAVE_DECL_ROUND=1;
6585 HAVE_DECL_ROUNDF=1;
6586 HAVE_DECL_ROUNDL=1;
6587 HAVE_DECL_SINL=1;
6588 HAVE_DECL_SQRTL=1;
6589 HAVE_DECL_TANL=1;
6590 HAVE_DECL_TRUNC=1;
6591 HAVE_DECL_TRUNCF=1;
6592 HAVE_DECL_TRUNCL=1;
6593 REPLACE_CBRTF=0;
6594 REPLACE_CBRTL=0;
6595 REPLACE_CEIL=0;
6596 REPLACE_CEILF=0;
6597 REPLACE_CEILL=0;
6598 REPLACE_EXPM1=0;
6599 REPLACE_EXPM1F=0;
6600 REPLACE_EXP2=0;
6601 REPLACE_EXP2L=0;
6602 REPLACE_FABSL=0;
6603 REPLACE_FLOOR=0;
6604 REPLACE_FLOORF=0;
6605 REPLACE_FLOORL=0;
6606 REPLACE_FMA=0;
6607 REPLACE_FMAF=0;
6608 REPLACE_FMAL=0;
6609 REPLACE_FMOD=0;
6610 REPLACE_FMODF=0;
6611 REPLACE_FMODL=0;
6612 REPLACE_FREXPF=0;
6613 REPLACE_FREXP=0;
6614 REPLACE_FREXPL=0;
6615 REPLACE_HUGE_VAL=0;
6616 REPLACE_HYPOT=0;
6617 REPLACE_HYPOTF=0;
6618 REPLACE_HYPOTL=0;
6619 REPLACE_ILOGB=0;
6620 REPLACE_ILOGBF=0;
6621 REPLACE_ISFINITE=0;
6622 REPLACE_ISINF=0;
6623 REPLACE_ISNAN=0;
6624 REPLACE_LDEXPL=0;
6625 REPLACE_LOG=0;
6626 REPLACE_LOGF=0;
6627 REPLACE_LOGL=0;
6628 REPLACE_LOG10=0;
6629 REPLACE_LOG10F=0;
6630 REPLACE_LOG10L=0;
6631 REPLACE_LOG1P=0;
6632 REPLACE_LOG1PF=0;
6633 REPLACE_LOG1PL=0;
6634 REPLACE_LOG2=0;
6635 REPLACE_LOG2F=0;
6636 REPLACE_LOG2L=0;
6637 REPLACE_LOGB=0;
6638 REPLACE_LOGBF=0;
6639 REPLACE_LOGBL=0;
6640 REPLACE_MODF=0;
6641 REPLACE_MODFF=0;
6642 REPLACE_MODFL=0;
6643 REPLACE_NAN=0;
6644 REPLACE_REMAINDER=0;
6645 REPLACE_REMAINDERF=0;
6646 REPLACE_REMAINDERL=0;
6647 REPLACE_ROUND=0;
6648 REPLACE_ROUNDF=0;
6649 REPLACE_ROUNDL=0;
6650 REPLACE_SIGNBIT=0;
6651 REPLACE_SIGNBIT_USING_GCC=0;
6652 REPLACE_SQRTL=0;
6653 REPLACE_TRUNC=0;
6654 REPLACE_TRUNCF=0;
6655 REPLACE_TRUNCL=0;
6656
6657
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
6659 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
6660 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
6661 $as_echo_n "(cached) " >&6
6662 else
6663
6664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665 /* end confdefs.h. */
6666 #include <math.h>
6667 double x;
6668 int
6669 main ()
6670 {
6671 int e; return frexp (x, &e) > 0;
6672 ;
6673 return 0;
6674 }
6675 _ACEOF
6676 if ac_fn_c_try_link "$LINENO"; then :
6677 gl_cv_func_frexp_no_libm=yes
6678 else
6679 gl_cv_func_frexp_no_libm=no
6680 fi
6681 rm -f core conftest.err conftest.$ac_objext \
6682 conftest$ac_exeext conftest.$ac_ext
6683
6684 fi
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
6686 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
6687
6688
6689
6690
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
6692 $as_echo_n "checking whether long double and double are the same... " >&6; }
6693 if test "${gl_cv_long_double_equals_double+set}" = set; then :
6694 $as_echo_n "(cached) " >&6
6695 else
6696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697 /* end confdefs.h. */
6698 #include <float.h>
6699 int
6700 main ()
6701 {
6702 typedef int check[sizeof (long double) == sizeof (double)
6703 && LDBL_MANT_DIG == DBL_MANT_DIG
6704 && LDBL_MAX_EXP == DBL_MAX_EXP
6705 && LDBL_MIN_EXP == DBL_MIN_EXP
6706 ? 1 : -1];
6707
6708 ;
6709 return 0;
6710 }
6711 _ACEOF
6712 if ac_fn_c_try_compile "$LINENO"; then :
6713 gl_cv_long_double_equals_double=yes
6714 else
6715 gl_cv_long_double_equals_double=no
6716 fi
6717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6718
6719 fi
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
6721 $as_echo "$gl_cv_long_double_equals_double" >&6; }
6722 if test $gl_cv_long_double_equals_double = yes; then
6723
6724 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
6725
6726 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
6727 else
6728 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
6729 fi
6730
6731
6732
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
6734 $as_echo_n "checking for unsigned long long int... " >&6; }
6735 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
6736 $as_echo_n "(cached) " >&6
6737 else
6738 ac_cv_type_unsigned_long_long_int=yes
6739 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6741 /* end confdefs.h. */
6742
6743 /* For now, do not test the preprocessor; as of 2007 there are too many
6744 implementations with broken preprocessors. Perhaps this can
6745 be revisited in 2012. In the meantime, code should not expect
6746 #if to work with literals wider than 32 bits. */
6747 /* Test literals. */
6748 long long int ll = 9223372036854775807ll;
6749 long long int nll = -9223372036854775807LL;
6750 unsigned long long int ull = 18446744073709551615ULL;
6751 /* Test constant expressions. */
6752 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
6753 ? 1 : -1)];
6754 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6755 ? 1 : -1)];
6756 int i = 63;
6757 int
6758 main ()
6759 {
6760 /* Test availability of runtime routines for shift and division. */
6761 long long int llmax = 9223372036854775807ll;
6762 unsigned long long int ullmax = 18446744073709551615ull;
6763 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6764 | (llmax / ll) | (llmax % ll)
6765 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6766 | (ullmax / ull) | (ullmax % ull));
6767 ;
6768 return 0;
6769 }
6770
6771 _ACEOF
6772 if ac_fn_c_try_link "$LINENO"; then :
6773
6774 else
6775 ac_cv_type_unsigned_long_long_int=no
6776 fi
6777 rm -f core conftest.err conftest.$ac_objext \
6778 conftest$ac_exeext conftest.$ac_ext
6779 fi
6780 fi
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6782 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6783 if test $ac_cv_type_unsigned_long_long_int = yes; then
6784
6785 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6786
6787 fi
6788
6789
6790
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6792 $as_echo_n "checking for long long int... " >&6; }
6793 if test "${ac_cv_type_long_long_int+set}" = set; then :
6794 $as_echo_n "(cached) " >&6
6795 else
6796 ac_cv_type_long_long_int=yes
6797 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6798 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6799 if test $ac_cv_type_long_long_int = yes; then
6800 if test "$cross_compiling" = yes; then :
6801 :
6802 else
6803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6804 /* end confdefs.h. */
6805 #include <limits.h>
6806 #ifndef LLONG_MAX
6807 # define HALF \
6808 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6809 # define LLONG_MAX (HALF - 1 + HALF)
6810 #endif
6811 int
6812 main ()
6813 {
6814 long long int n = 1;
6815 int i;
6816 for (i = 0; ; i++)
6817 {
6818 long long int m = n << i;
6819 if (m >> i != n)
6820 return 1;
6821 if (LLONG_MAX / 2 < m)
6822 break;
6823 }
6824 return 0;
6825 ;
6826 return 0;
6827 }
6828 _ACEOF
6829 if ac_fn_c_try_run "$LINENO"; then :
6830
6831 else
6832 ac_cv_type_long_long_int=no
6833 fi
6834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6835 conftest.$ac_objext conftest.beam conftest.$ac_ext
6836 fi
6837
6838 fi
6839 fi
6840 fi
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6842 $as_echo "$ac_cv_type_long_long_int" >&6; }
6843 if test $ac_cv_type_long_long_int = yes; then
6844
6845 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6846
6847 fi
6848
6849
6850
6851
6852
6853
6854 gl_cv_c_multiarch=no
6855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h. */
6857 #ifndef __APPLE_CC__
6858 not a universal capable compiler
6859 #endif
6860 typedef int dummy;
6861
6862 _ACEOF
6863 if ac_fn_c_try_compile "$LINENO"; then :
6864
6865 arch=
6866 prev=
6867 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
6868 if test -n "$prev"; then
6869 case $word in
6870 i?86 | x86_64 | ppc | ppc64)
6871 if test -z "$arch" || test "$arch" = "$word"; then
6872 arch="$word"
6873 else
6874 gl_cv_c_multiarch=yes
6875 fi
6876 ;;
6877 esac
6878 prev=
6879 else
6880 if test "x$word" = "x-arch"; then
6881 prev=arch
6882 fi
6883 fi
6884 done
6885
6886 fi
6887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6888 if test $gl_cv_c_multiarch = yes; then
6889 APPLE_UNIVERSAL_BUILD=1
6890 else
6891 APPLE_UNIVERSAL_BUILD=0
6892 fi
6893
6894
6895
6896
6897
6898 if test $ac_cv_type_long_long_int = yes; then
6899 HAVE_LONG_LONG_INT=1
6900 else
6901 HAVE_LONG_LONG_INT=0
6902 fi
6903
6904
6905 if test $ac_cv_type_unsigned_long_long_int = yes; then
6906 HAVE_UNSIGNED_LONG_LONG_INT=1
6907 else
6908 HAVE_UNSIGNED_LONG_LONG_INT=0
6909 fi
6910
6911
6912
6913 if test $ac_cv_header_wchar_h = yes; then
6914 HAVE_WCHAR_H=1
6915 else
6916 HAVE_WCHAR_H=0
6917 fi
6918
6919
6920 if test $ac_cv_header_inttypes_h = yes; then
6921 HAVE_INTTYPES_H=1
6922 else
6923 HAVE_INTTYPES_H=0
6924 fi
6925
6926
6927 if test $ac_cv_header_sys_types_h = yes; then
6928 HAVE_SYS_TYPES_H=1
6929 else
6930 HAVE_SYS_TYPES_H=0
6931 fi
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943 if test $gl_cv_have_include_next = yes; then
6944 gl_cv_next_stdint_h='<'stdint.h'>'
6945 else
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6947 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6948 if test "${gl_cv_next_stdint_h+set}" = set; then :
6949 $as_echo_n "(cached) " >&6
6950 else
6951
6952 if test $ac_cv_header_stdint_h = yes; then
6953
6954
6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956 /* end confdefs.h. */
6957 #include <stdint.h>
6958
6959 _ACEOF
6960 case "$host_os" in
6961 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6962 *) gl_absname_cpp="$ac_cpp" ;;
6963 esac
6964
6965 case "$host_os" in
6966 mingw*)
6967 gl_dirsep_regex='[/\\]'
6968 ;;
6969 *)
6970 gl_dirsep_regex='\/'
6971 ;;
6972 esac
6973 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6974
6975 gl_header_literal_regex=`echo 'stdint.h' \
6976 | sed -e "$gl_make_literal_regex_sed"`
6977 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6978 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6979 s|^/[^/]|//&|
6980 p
6981 q
6982 }'
6983 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6984 sed -n "$gl_absolute_header_sed"`'"'
6985 else
6986 gl_cv_next_stdint_h='<'stdint.h'>'
6987 fi
6988
6989
6990 fi
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6992 $as_echo "$gl_cv_next_stdint_h" >&6; }
6993 fi
6994 NEXT_STDINT_H=$gl_cv_next_stdint_h
6995
6996 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6997 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6998 gl_next_as_first_directive='<'stdint.h'>'
6999 else
7000 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7001 gl_next_as_first_directive=$gl_cv_next_stdint_h
7002 fi
7003 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
7004
7005
7006
7007
7008 if test $ac_cv_header_stdint_h = yes; then
7009 HAVE_STDINT_H=1
7010 else
7011 HAVE_STDINT_H=0
7012 fi
7013
7014
7015 if test $ac_cv_header_stdint_h = yes; then
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
7017 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
7018 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
7019 $as_echo_n "(cached) " >&6
7020 else
7021 gl_cv_header_working_stdint_h=no
7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h. */
7024
7025
7026 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7027 #include <stdint.h>
7028 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
7029 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
7030 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
7031 #endif
7032
7033
7034 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7035 included before <wchar.h>. */
7036 #include <stddef.h>
7037 #include <signal.h>
7038 #if HAVE_WCHAR_H
7039 # include <stdio.h>
7040 # include <time.h>
7041 # include <wchar.h>
7042 #endif
7043
7044
7045 #ifdef INT8_MAX
7046 int8_t a1 = INT8_MAX;
7047 int8_t a1min = INT8_MIN;
7048 #endif
7049 #ifdef INT16_MAX
7050 int16_t a2 = INT16_MAX;
7051 int16_t a2min = INT16_MIN;
7052 #endif
7053 #ifdef INT32_MAX
7054 int32_t a3 = INT32_MAX;
7055 int32_t a3min = INT32_MIN;
7056 #endif
7057 #ifdef INT64_MAX
7058 int64_t a4 = INT64_MAX;
7059 int64_t a4min = INT64_MIN;
7060 #endif
7061 #ifdef UINT8_MAX
7062 uint8_t b1 = UINT8_MAX;
7063 #else
7064 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
7065 #endif
7066 #ifdef UINT16_MAX
7067 uint16_t b2 = UINT16_MAX;
7068 #endif
7069 #ifdef UINT32_MAX
7070 uint32_t b3 = UINT32_MAX;
7071 #endif
7072 #ifdef UINT64_MAX
7073 uint64_t b4 = UINT64_MAX;
7074 #endif
7075 int_least8_t c1 = INT8_C (0x7f);
7076 int_least8_t c1max = INT_LEAST8_MAX;
7077 int_least8_t c1min = INT_LEAST8_MIN;
7078 int_least16_t c2 = INT16_C (0x7fff);
7079 int_least16_t c2max = INT_LEAST16_MAX;
7080 int_least16_t c2min = INT_LEAST16_MIN;
7081 int_least32_t c3 = INT32_C (0x7fffffff);
7082 int_least32_t c3max = INT_LEAST32_MAX;
7083 int_least32_t c3min = INT_LEAST32_MIN;
7084 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
7085 int_least64_t c4max = INT_LEAST64_MAX;
7086 int_least64_t c4min = INT_LEAST64_MIN;
7087 uint_least8_t d1 = UINT8_C (0xff);
7088 uint_least8_t d1max = UINT_LEAST8_MAX;
7089 uint_least16_t d2 = UINT16_C (0xffff);
7090 uint_least16_t d2max = UINT_LEAST16_MAX;
7091 uint_least32_t d3 = UINT32_C (0xffffffff);
7092 uint_least32_t d3max = UINT_LEAST32_MAX;
7093 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
7094 uint_least64_t d4max = UINT_LEAST64_MAX;
7095 int_fast8_t e1 = INT_FAST8_MAX;
7096 int_fast8_t e1min = INT_FAST8_MIN;
7097 int_fast16_t e2 = INT_FAST16_MAX;
7098 int_fast16_t e2min = INT_FAST16_MIN;
7099 int_fast32_t e3 = INT_FAST32_MAX;
7100 int_fast32_t e3min = INT_FAST32_MIN;
7101 int_fast64_t e4 = INT_FAST64_MAX;
7102 int_fast64_t e4min = INT_FAST64_MIN;
7103 uint_fast8_t f1 = UINT_FAST8_MAX;
7104 uint_fast16_t f2 = UINT_FAST16_MAX;
7105 uint_fast32_t f3 = UINT_FAST32_MAX;
7106 uint_fast64_t f4 = UINT_FAST64_MAX;
7107 #ifdef INTPTR_MAX
7108 intptr_t g = INTPTR_MAX;
7109 intptr_t gmin = INTPTR_MIN;
7110 #endif
7111 #ifdef UINTPTR_MAX
7112 uintptr_t h = UINTPTR_MAX;
7113 #endif
7114 intmax_t i = INTMAX_MAX;
7115 uintmax_t j = UINTMAX_MAX;
7116
7117 #include <limits.h> /* for CHAR_BIT */
7118 #define TYPE_MINIMUM(t) \
7119 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
7120 #define TYPE_MAXIMUM(t) \
7121 ((t) ((t) 0 < (t) -1 \
7122 ? (t) -1 \
7123 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
7124 struct s {
7125 int check_PTRDIFF:
7126 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
7127 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
7128 ? 1 : -1;
7129 /* Detect bug in FreeBSD 6.0 / ia64. */
7130 int check_SIG_ATOMIC:
7131 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
7132 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
7133 ? 1 : -1;
7134 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
7135 int check_WCHAR:
7136 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
7137 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
7138 ? 1 : -1;
7139 /* Detect bug in mingw. */
7140 int check_WINT:
7141 WINT_MIN == TYPE_MINIMUM (wint_t)
7142 && WINT_MAX == TYPE_MAXIMUM (wint_t)
7143 ? 1 : -1;
7144
7145 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
7146 int check_UINT8_C:
7147 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
7148 int check_UINT16_C:
7149 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
7150
7151 /* Detect bugs in OpenBSD 3.9 stdint.h. */
7152 #ifdef UINT8_MAX
7153 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
7154 #endif
7155 #ifdef UINT16_MAX
7156 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
7157 #endif
7158 #ifdef UINT32_MAX
7159 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
7160 #endif
7161 #ifdef UINT64_MAX
7162 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
7163 #endif
7164 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
7165 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
7166 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
7167 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
7168 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
7169 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
7170 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
7171 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
7172 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
7173 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
7174 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
7175 };
7176
7177 int
7178 main ()
7179 {
7180
7181 ;
7182 return 0;
7183 }
7184 _ACEOF
7185 if ac_fn_c_try_compile "$LINENO"; then :
7186 if test "$cross_compiling" = yes; then :
7187 gl_cv_header_working_stdint_h=yes
7188
7189 else
7190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7191 /* end confdefs.h. */
7192
7193
7194 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
7195 #include <stdint.h>
7196
7197
7198 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7199 included before <wchar.h>. */
7200 #include <stddef.h>
7201 #include <signal.h>
7202 #if HAVE_WCHAR_H
7203 # include <stdio.h>
7204 # include <time.h>
7205 # include <wchar.h>
7206 #endif
7207
7208
7209 #include <stdio.h>
7210 #include <string.h>
7211 #define MVAL(macro) MVAL1(macro)
7212 #define MVAL1(expression) #expression
7213 static const char *macro_values[] =
7214 {
7215 #ifdef INT8_MAX
7216 MVAL (INT8_MAX),
7217 #endif
7218 #ifdef INT16_MAX
7219 MVAL (INT16_MAX),
7220 #endif
7221 #ifdef INT32_MAX
7222 MVAL (INT32_MAX),
7223 #endif
7224 #ifdef INT64_MAX
7225 MVAL (INT64_MAX),
7226 #endif
7227 #ifdef UINT8_MAX
7228 MVAL (UINT8_MAX),
7229 #endif
7230 #ifdef UINT16_MAX
7231 MVAL (UINT16_MAX),
7232 #endif
7233 #ifdef UINT32_MAX
7234 MVAL (UINT32_MAX),
7235 #endif
7236 #ifdef UINT64_MAX
7237 MVAL (UINT64_MAX),
7238 #endif
7239 NULL
7240 };
7241
7242 int
7243 main ()
7244 {
7245
7246 const char **mv;
7247 for (mv = macro_values; *mv != NULL; mv++)
7248 {
7249 const char *value = *mv;
7250 /* Test whether it looks like a cast expression. */
7251 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
7252 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
7253 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
7254 || strncmp (value, "((int)"/*)*/, 6) == 0
7255 || strncmp (value, "((signed short)"/*)*/, 15) == 0
7256 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
7257 return mv - macro_values + 1;
7258 }
7259 return 0;
7260
7261 ;
7262 return 0;
7263 }
7264 _ACEOF
7265 if ac_fn_c_try_run "$LINENO"; then :
7266 gl_cv_header_working_stdint_h=yes
7267 fi
7268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7269 conftest.$ac_objext conftest.beam conftest.$ac_ext
7270 fi
7271
7272
7273 fi
7274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7275
7276 fi
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
7278 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
7279 fi
7280 if test "$gl_cv_header_working_stdint_h" = yes; then
7281 STDINT_H=
7282 else
7283 for ac_header in sys/inttypes.h sys/bitypes.h
7284 do :
7285 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7286 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7287 eval as_val=\$$as_ac_Header
7288 if test "x$as_val" = x""yes; then :
7289 cat >>confdefs.h <<_ACEOF
7290 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7291 _ACEOF
7292
7293 fi
7294
7295 done
7296
7297 if test $ac_cv_header_sys_inttypes_h = yes; then
7298 HAVE_SYS_INTTYPES_H=1
7299 else
7300 HAVE_SYS_INTTYPES_H=0
7301 fi
7302
7303 if test $ac_cv_header_sys_bitypes_h = yes; then
7304 HAVE_SYS_BITYPES_H=1
7305 else
7306 HAVE_SYS_BITYPES_H=0
7307 fi
7308
7309
7310
7311
7312 if test $APPLE_UNIVERSAL_BUILD = 0; then
7313
7314
7315 for gltype in ptrdiff_t size_t ; do
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
7317 $as_echo_n "checking for bit size of $gltype... " >&6; }
7318 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
7319 $as_echo_n "(cached) " >&6
7320 else
7321 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
7322 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7323 included before <wchar.h>. */
7324 #include <stddef.h>
7325 #include <signal.h>
7326 #if HAVE_WCHAR_H
7327 # include <stdio.h>
7328 # include <time.h>
7329 # include <wchar.h>
7330 #endif
7331
7332 #include <limits.h>"; then :
7333
7334 else
7335 result=unknown
7336 fi
7337
7338 eval gl_cv_bitsizeof_${gltype}=\$result
7339
7340 fi
7341 eval ac_res=\$gl_cv_bitsizeof_${gltype}
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7343 $as_echo "$ac_res" >&6; }
7344 eval result=\$gl_cv_bitsizeof_${gltype}
7345 if test $result = unknown; then
7346 result=0
7347 fi
7348 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7349 cat >>confdefs.h <<_ACEOF
7350 #define BITSIZEOF_${GLTYPE} $result
7351 _ACEOF
7352
7353 eval BITSIZEOF_${GLTYPE}=\$result
7354 done
7355
7356
7357 fi
7358
7359
7360 for gltype in sig_atomic_t wchar_t wint_t ; do
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
7362 $as_echo_n "checking for bit size of $gltype... " >&6; }
7363 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
7364 $as_echo_n "(cached) " >&6
7365 else
7366 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
7367 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7368 included before <wchar.h>. */
7369 #include <stddef.h>
7370 #include <signal.h>
7371 #if HAVE_WCHAR_H
7372 # include <stdio.h>
7373 # include <time.h>
7374 # include <wchar.h>
7375 #endif
7376
7377 #include <limits.h>"; then :
7378
7379 else
7380 result=unknown
7381 fi
7382
7383 eval gl_cv_bitsizeof_${gltype}=\$result
7384
7385 fi
7386 eval ac_res=\$gl_cv_bitsizeof_${gltype}
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7388 $as_echo "$ac_res" >&6; }
7389 eval result=\$gl_cv_bitsizeof_${gltype}
7390 if test $result = unknown; then
7391 result=0
7392 fi
7393 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7394 cat >>confdefs.h <<_ACEOF
7395 #define BITSIZEOF_${GLTYPE} $result
7396 _ACEOF
7397
7398 eval BITSIZEOF_${GLTYPE}=\$result
7399 done
7400
7401
7402
7403
7404 for gltype in sig_atomic_t wchar_t wint_t ; do
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
7406 $as_echo_n "checking whether $gltype is signed... " >&6; }
7407 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
7408 $as_echo_n "(cached) " >&6
7409 else
7410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411 /* end confdefs.h. */
7412
7413 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7414 included before <wchar.h>. */
7415 #include <stddef.h>
7416 #include <signal.h>
7417 #if HAVE_WCHAR_H
7418 # include <stdio.h>
7419 # include <time.h>
7420 # include <wchar.h>
7421 #endif
7422
7423 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
7424 int
7425 main ()
7426 {
7427
7428 ;
7429 return 0;
7430 }
7431 _ACEOF
7432 if ac_fn_c_try_compile "$LINENO"; then :
7433 result=yes
7434 else
7435 result=no
7436 fi
7437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7438 eval gl_cv_type_${gltype}_signed=\$result
7439
7440 fi
7441 eval ac_res=\$gl_cv_type_${gltype}_signed
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7443 $as_echo "$ac_res" >&6; }
7444 eval result=\$gl_cv_type_${gltype}_signed
7445 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7446 if test "$result" = yes; then
7447 cat >>confdefs.h <<_ACEOF
7448 #define HAVE_SIGNED_${GLTYPE} 1
7449 _ACEOF
7450
7451 eval HAVE_SIGNED_${GLTYPE}=1
7452 else
7453 eval HAVE_SIGNED_${GLTYPE}=0
7454 fi
7455 done
7456
7457
7458 gl_cv_type_ptrdiff_t_signed=yes
7459 gl_cv_type_size_t_signed=no
7460 if test $APPLE_UNIVERSAL_BUILD = 0; then
7461
7462
7463 for gltype in ptrdiff_t size_t ; do
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
7465 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
7466 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
7467 $as_echo_n "(cached) " >&6
7468 else
7469 eval gl_cv_type_${gltype}_suffix=no
7470 eval result=\$gl_cv_type_${gltype}_signed
7471 if test "$result" = yes; then
7472 glsufu=
7473 else
7474 glsufu=u
7475 fi
7476 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
7477 case $glsuf in
7478 '') gltype1='int';;
7479 l) gltype1='long int';;
7480 ll) gltype1='long long int';;
7481 i64) gltype1='__int64';;
7482 u) gltype1='unsigned int';;
7483 ul) gltype1='unsigned long int';;
7484 ull) gltype1='unsigned long long int';;
7485 ui64)gltype1='unsigned __int64';;
7486 esac
7487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488 /* end confdefs.h. */
7489
7490 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7491 included before <wchar.h>. */
7492 #include <stddef.h>
7493 #include <signal.h>
7494 #if HAVE_WCHAR_H
7495 # include <stdio.h>
7496 # include <time.h>
7497 # include <wchar.h>
7498 #endif
7499
7500 extern $gltype foo;
7501 extern $gltype1 foo;
7502 int
7503 main ()
7504 {
7505
7506 ;
7507 return 0;
7508 }
7509 _ACEOF
7510 if ac_fn_c_try_compile "$LINENO"; then :
7511 eval gl_cv_type_${gltype}_suffix=\$glsuf
7512 fi
7513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7514 eval result=\$gl_cv_type_${gltype}_suffix
7515 test "$result" != no && break
7516 done
7517 fi
7518 eval ac_res=\$gl_cv_type_${gltype}_suffix
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7520 $as_echo "$ac_res" >&6; }
7521 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7522 eval result=\$gl_cv_type_${gltype}_suffix
7523 test "$result" = no && result=
7524 eval ${GLTYPE}_SUFFIX=\$result
7525 cat >>confdefs.h <<_ACEOF
7526 #define ${GLTYPE}_SUFFIX $result
7527 _ACEOF
7528
7529 done
7530
7531
7532 fi
7533
7534
7535 for gltype in sig_atomic_t wchar_t wint_t ; do
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
7537 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
7538 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
7539 $as_echo_n "(cached) " >&6
7540 else
7541 eval gl_cv_type_${gltype}_suffix=no
7542 eval result=\$gl_cv_type_${gltype}_signed
7543 if test "$result" = yes; then
7544 glsufu=
7545 else
7546 glsufu=u
7547 fi
7548 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
7549 case $glsuf in
7550 '') gltype1='int';;
7551 l) gltype1='long int';;
7552 ll) gltype1='long long int';;
7553 i64) gltype1='__int64';;
7554 u) gltype1='unsigned int';;
7555 ul) gltype1='unsigned long int';;
7556 ull) gltype1='unsigned long long int';;
7557 ui64)gltype1='unsigned __int64';;
7558 esac
7559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h. */
7561
7562 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
7563 included before <wchar.h>. */
7564 #include <stddef.h>
7565 #include <signal.h>
7566 #if HAVE_WCHAR_H
7567 # include <stdio.h>
7568 # include <time.h>
7569 # include <wchar.h>
7570 #endif
7571
7572 extern $gltype foo;
7573 extern $gltype1 foo;
7574 int
7575 main ()
7576 {
7577
7578 ;
7579 return 0;
7580 }
7581 _ACEOF
7582 if ac_fn_c_try_compile "$LINENO"; then :
7583 eval gl_cv_type_${gltype}_suffix=\$glsuf
7584 fi
7585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7586 eval result=\$gl_cv_type_${gltype}_suffix
7587 test "$result" != no && break
7588 done
7589 fi
7590 eval ac_res=\$gl_cv_type_${gltype}_suffix
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7592 $as_echo "$ac_res" >&6; }
7593 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
7594 eval result=\$gl_cv_type_${gltype}_suffix
7595 test "$result" = no && result=
7596 eval ${GLTYPE}_SUFFIX=\$result
7597 cat >>confdefs.h <<_ACEOF
7598 #define ${GLTYPE}_SUFFIX $result
7599 _ACEOF
7600
7601 done
7602
7603
7604
7605 if test $BITSIZEOF_WINT_T -lt 32; then
7606 BITSIZEOF_WINT_T=32
7607 fi
7608
7609 STDINT_H=stdint.h
7610 fi
7611
7612 if test -n "$STDINT_H"; then
7613 GL_GENERATE_STDINT_H_TRUE=
7614 GL_GENERATE_STDINT_H_FALSE='#'
7615 else
7616 GL_GENERATE_STDINT_H_TRUE='#'
7617 GL_GENERATE_STDINT_H_FALSE=
7618 fi
7619
7620
7621
7622
7623
7624 GNULIB_IMAXABS=0;
7625 GNULIB_IMAXDIV=0;
7626 GNULIB_STRTOIMAX=0;
7627 GNULIB_STRTOUMAX=0;
7628 HAVE_DECL_IMAXABS=1;
7629 HAVE_DECL_IMAXDIV=1;
7630 HAVE_DECL_STRTOIMAX=1;
7631 HAVE_DECL_STRTOUMAX=1;
7632 REPLACE_STRTOIMAX=0;
7633 INT32_MAX_LT_INTMAX_MAX=1;
7634 INT64_MAX_EQ_LONG_MAX='defined _LP64';
7635 PRI_MACROS_BROKEN=0;
7636 PRIPTR_PREFIX=__PRIPTR_PREFIX;
7637 UINT32_MAX_LT_UINTMAX_MAX=1;
7638 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654 if test $gl_cv_have_include_next = yes; then
7655 gl_cv_next_inttypes_h='<'inttypes.h'>'
7656 else
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
7658 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
7659 if test "${gl_cv_next_inttypes_h+set}" = set; then :
7660 $as_echo_n "(cached) " >&6
7661 else
7662
7663 if test $ac_cv_header_inttypes_h = yes; then
7664
7665
7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7667 /* end confdefs.h. */
7668 #include <inttypes.h>
7669
7670 _ACEOF
7671 case "$host_os" in
7672 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7673 *) gl_absname_cpp="$ac_cpp" ;;
7674 esac
7675
7676 case "$host_os" in
7677 mingw*)
7678 gl_dirsep_regex='[/\\]'
7679 ;;
7680 *)
7681 gl_dirsep_regex='\/'
7682 ;;
7683 esac
7684 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7685
7686 gl_header_literal_regex=`echo 'inttypes.h' \
7687 | sed -e "$gl_make_literal_regex_sed"`
7688 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7689 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7690 s|^/[^/]|//&|
7691 p
7692 q
7693 }'
7694 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7695 sed -n "$gl_absolute_header_sed"`'"'
7696 else
7697 gl_cv_next_inttypes_h='<'inttypes.h'>'
7698 fi
7699
7700
7701 fi
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
7703 $as_echo "$gl_cv_next_inttypes_h" >&6; }
7704 fi
7705 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
7706
7707 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7708 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7709 gl_next_as_first_directive='<'inttypes.h'>'
7710 else
7711 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7712 gl_next_as_first_directive=$gl_cv_next_inttypes_h
7713 fi
7714 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
7715
7716
7717
7718
7719
7720
7721
7722
7723 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
7724 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7726 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7727 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7728 $as_echo_n "(cached) " >&6
7729 else
7730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7731 /* end confdefs.h. */
7732 #include <inttypes.h>
7733
7734 int
7735 main ()
7736 {
7737 #undef $gl_func
7738 (void) $gl_func;
7739 ;
7740 return 0;
7741 }
7742 _ACEOF
7743 if ac_fn_c_try_compile "$LINENO"; then :
7744 eval "$as_gl_Symbol=yes"
7745 else
7746 eval "$as_gl_Symbol=no"
7747 fi
7748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7749 fi
7750 eval ac_res=\$$as_gl_Symbol
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7752 $as_echo "$ac_res" >&6; }
7753 eval as_val=\$$as_gl_Symbol
7754 if test "x$as_val" = x""yes; then :
7755 cat >>confdefs.h <<_ACEOF
7756 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7757 _ACEOF
7758
7759 eval ac_cv_have_decl_$gl_func=yes
7760 fi
7761 done
7762
7763
7764
7765 for ac_header in inttypes.h
7766 do :
7767 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7768 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
7769 cat >>confdefs.h <<_ACEOF
7770 #define HAVE_INTTYPES_H 1
7771 _ACEOF
7772
7773 fi
7774
7775 done
7776
7777 if test $ac_cv_header_inttypes_h = yes; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7779 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7780 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7781 $as_echo_n "(cached) " >&6
7782 else
7783
7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785 /* end confdefs.h. */
7786
7787 #include <inttypes.h>
7788 #ifdef PRId32
7789 char *p = PRId32;
7790 #endif
7791
7792 int
7793 main ()
7794 {
7795
7796 ;
7797 return 0;
7798 }
7799 _ACEOF
7800 if ac_fn_c_try_compile "$LINENO"; then :
7801 gt_cv_inttypes_pri_broken=no
7802 else
7803 gt_cv_inttypes_pri_broken=yes
7804 fi
7805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7806
7807 fi
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7809 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7810 fi
7811 if test "$gt_cv_inttypes_pri_broken" = yes; then
7812
7813 cat >>confdefs.h <<_ACEOF
7814 #define PRI_MACROS_BROKEN 1
7815 _ACEOF
7816
7817 PRI_MACROS_BROKEN=1
7818 else
7819 PRI_MACROS_BROKEN=0
7820 fi
7821
7822
7823
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
7825 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
7826 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
7827 $as_echo_n "(cached) " >&6
7828 else
7829
7830 if test "$cross_compiling" = yes; then :
7831
7832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h. */
7834
7835 #if defined arm || defined __arm || defined __arm__
7836 mixed_endianness
7837 #endif
7838
7839 _ACEOF
7840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7841 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
7842 gl_cv_cc_double_expbit0="unknown"
7843 else
7844
7845 :
7846 if test "${ac_cv_c_bigendian+set}" = set; then :
7847 $as_echo_n "(cached) " >&6
7848 else
7849 ac_cv_c_bigendian=unknown
7850 # See if we're dealing with a universal compiler.
7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h. */
7853 #ifndef __APPLE_CC__
7854 not a universal capable compiler
7855 #endif
7856 typedef int dummy;
7857
7858 _ACEOF
7859 if ac_fn_c_try_compile "$LINENO"; then :
7860
7861 # Check for potential -arch flags. It is not universal unless
7862 # there are at least two -arch flags with different values.
7863 ac_arch=
7864 ac_prev=
7865 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7866 if test -n "$ac_prev"; then
7867 case $ac_word in
7868 i?86 | x86_64 | ppc | ppc64)
7869 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7870 ac_arch=$ac_word
7871 else
7872 ac_cv_c_bigendian=universal
7873 break
7874 fi
7875 ;;
7876 esac
7877 ac_prev=
7878 elif test "x$ac_word" = "x-arch"; then
7879 ac_prev=arch
7880 fi
7881 done
7882 fi
7883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7884 if test $ac_cv_c_bigendian = unknown; then
7885 # See if sys/param.h defines the BYTE_ORDER macro.
7886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887 /* end confdefs.h. */
7888 #include <sys/types.h>
7889 #include <sys/param.h>
7890
7891 int
7892 main ()
7893 {
7894 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7895 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7896 && LITTLE_ENDIAN)
7897 bogus endian macros
7898 #endif
7899
7900 ;
7901 return 0;
7902 }
7903 _ACEOF
7904 if ac_fn_c_try_compile "$LINENO"; then :
7905 # It does; now see whether it defined to BIG_ENDIAN or not.
7906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907 /* end confdefs.h. */
7908 #include <sys/types.h>
7909 #include <sys/param.h>
7910
7911 int
7912 main ()
7913 {
7914 #if BYTE_ORDER != BIG_ENDIAN
7915 not big endian
7916 #endif
7917
7918 ;
7919 return 0;
7920 }
7921 _ACEOF
7922 if ac_fn_c_try_compile "$LINENO"; then :
7923 ac_cv_c_bigendian=yes
7924 else
7925 ac_cv_c_bigendian=no
7926 fi
7927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7928 fi
7929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7930 fi
7931 if test $ac_cv_c_bigendian = unknown; then
7932 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934 /* end confdefs.h. */
7935 #include <limits.h>
7936
7937 int
7938 main ()
7939 {
7940 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7941 bogus endian macros
7942 #endif
7943
7944 ;
7945 return 0;
7946 }
7947 _ACEOF
7948 if ac_fn_c_try_compile "$LINENO"; then :
7949 # It does; now see whether it defined to _BIG_ENDIAN or not.
7950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7951 /* end confdefs.h. */
7952 #include <limits.h>
7953
7954 int
7955 main ()
7956 {
7957 #ifndef _BIG_ENDIAN
7958 not big endian
7959 #endif
7960
7961 ;
7962 return 0;
7963 }
7964 _ACEOF
7965 if ac_fn_c_try_compile "$LINENO"; then :
7966 ac_cv_c_bigendian=yes
7967 else
7968 ac_cv_c_bigendian=no
7969 fi
7970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7971 fi
7972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7973 fi
7974 if test $ac_cv_c_bigendian = unknown; then
7975 # Compile a test program.
7976 if test "$cross_compiling" = yes; then :
7977 # Try to guess by grepping values from an object file.
7978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7979 /* end confdefs.h. */
7980 short int ascii_mm[] =
7981 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7982 short int ascii_ii[] =
7983 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7984 int use_ascii (int i) {
7985 return ascii_mm[i] + ascii_ii[i];
7986 }
7987 short int ebcdic_ii[] =
7988 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7989 short int ebcdic_mm[] =
7990 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7991 int use_ebcdic (int i) {
7992 return ebcdic_mm[i] + ebcdic_ii[i];
7993 }
7994 extern int foo;
7995
7996 int
7997 main ()
7998 {
7999 return use_ascii (foo) == use_ebcdic (foo);
8000 ;
8001 return 0;
8002 }
8003 _ACEOF
8004 if ac_fn_c_try_compile "$LINENO"; then :
8005 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8006 ac_cv_c_bigendian=yes
8007 fi
8008 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8009 if test "$ac_cv_c_bigendian" = unknown; then
8010 ac_cv_c_bigendian=no
8011 else
8012 # finding both strings is unlikely to happen, but who knows?
8013 ac_cv_c_bigendian=unknown
8014 fi
8015 fi
8016 fi
8017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8018 else
8019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8020 /* end confdefs.h. */
8021 $ac_includes_default
8022 int
8023 main ()
8024 {
8025
8026 /* Are we little or big endian? From Harbison&Steele. */
8027 union
8028 {
8029 long int l;
8030 char c[sizeof (long int)];
8031 } u;
8032 u.l = 1;
8033 return u.c[sizeof (long int) - 1] == 1;
8034
8035 ;
8036 return 0;
8037 }
8038 _ACEOF
8039 if ac_fn_c_try_run "$LINENO"; then :
8040 ac_cv_c_bigendian=no
8041 else
8042 ac_cv_c_bigendian=yes
8043 fi
8044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8045 conftest.$ac_objext conftest.beam conftest.$ac_ext
8046 fi
8047
8048 fi
8049 fi
8050 :
8051 case $ac_cv_c_bigendian in #(
8052 yes)
8053 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
8054 no)
8055 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
8056 universal)
8057
8058 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8059
8060 ;; #(
8061 *)
8062 gl_cv_cc_double_expbit0="unknown" ;;
8063 esac
8064
8065
8066 fi
8067 rm -f conftest*
8068
8069
8070 else
8071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8072 /* end confdefs.h. */
8073
8074 #include <float.h>
8075 #include <stddef.h>
8076 #include <stdio.h>
8077 #include <string.h>
8078 #define NWORDS \
8079 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
8080 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
8081 static unsigned int ored_words[NWORDS];
8082 static unsigned int anded_words[NWORDS];
8083 static void add_to_ored_words (double x)
8084 {
8085 memory_double m;
8086 size_t i;
8087 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
8088 memset (&m, 0, sizeof (memory_double));
8089 m.value = x;
8090 for (i = 0; i < NWORDS; i++)
8091 {
8092 ored_words[i] |= m.word[i];
8093 anded_words[i] &= m.word[i];
8094 }
8095 }
8096 int main ()
8097 {
8098 size_t j;
8099 FILE *fp = fopen ("conftest.out", "w");
8100 if (fp == NULL)
8101 return 1;
8102 for (j = 0; j < NWORDS; j++)
8103 anded_words[j] = ~ (unsigned int) 0;
8104 add_to_ored_words (0.25);
8105 add_to_ored_words (0.5);
8106 add_to_ored_words (1.0);
8107 add_to_ored_words (2.0);
8108 add_to_ored_words (4.0);
8109 /* Remove bits that are common (e.g. if representation of the first mantissa
8110 bit is explicit). */
8111 for (j = 0; j < NWORDS; j++)
8112 ored_words[j] &= ~anded_words[j];
8113 /* Now find the nonzero word. */
8114 for (j = 0; j < NWORDS; j++)
8115 if (ored_words[j] != 0)
8116 break;
8117 if (j < NWORDS)
8118 {
8119 size_t i;
8120 for (i = j + 1; i < NWORDS; i++)
8121 if (ored_words[i] != 0)
8122 {
8123 fprintf (fp, "unknown");
8124 return (fclose (fp) != 0);
8125 }
8126 for (i = 0; ; i++)
8127 if ((ored_words[j] >> i) & 1)
8128 {
8129 fprintf (fp, "word %d bit %d", (int) j, (int) i);
8130 return (fclose (fp) != 0);
8131 }
8132 }
8133 fprintf (fp, "unknown");
8134 return (fclose (fp) != 0);
8135 }
8136
8137 _ACEOF
8138 if ac_fn_c_try_run "$LINENO"; then :
8139 gl_cv_cc_double_expbit0=`cat conftest.out`
8140 else
8141 gl_cv_cc_double_expbit0="unknown"
8142 fi
8143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8144 conftest.$ac_objext conftest.beam conftest.$ac_ext
8145 fi
8146
8147 rm -f conftest.out
8148
8149 fi
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
8151 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
8152 case "$gl_cv_cc_double_expbit0" in
8153 word*bit*)
8154 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
8155 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
8156
8157 cat >>confdefs.h <<_ACEOF
8158 #define DBL_EXPBIT0_WORD $word
8159 _ACEOF
8160
8161
8162 cat >>confdefs.h <<_ACEOF
8163 #define DBL_EXPBIT0_BIT $bit
8164 _ACEOF
8165
8166 ;;
8167 esac
8168
8169
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
8171 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
8172 if test "${ac_cv_c_bigendian+set}" = set; then :
8173 $as_echo_n "(cached) " >&6
8174 else
8175 ac_cv_c_bigendian=unknown
8176 # See if we're dealing with a universal compiler.
8177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178 /* end confdefs.h. */
8179 #ifndef __APPLE_CC__
8180 not a universal capable compiler
8181 #endif
8182 typedef int dummy;
8183
8184 _ACEOF
8185 if ac_fn_c_try_compile "$LINENO"; then :
8186
8187 # Check for potential -arch flags. It is not universal unless
8188 # there are at least two -arch flags with different values.
8189 ac_arch=
8190 ac_prev=
8191 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
8192 if test -n "$ac_prev"; then
8193 case $ac_word in
8194 i?86 | x86_64 | ppc | ppc64)
8195 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
8196 ac_arch=$ac_word
8197 else
8198 ac_cv_c_bigendian=universal
8199 break
8200 fi
8201 ;;
8202 esac
8203 ac_prev=
8204 elif test "x$ac_word" = "x-arch"; then
8205 ac_prev=arch
8206 fi
8207 done
8208 fi
8209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8210 if test $ac_cv_c_bigendian = unknown; then
8211 # See if sys/param.h defines the BYTE_ORDER macro.
8212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8213 /* end confdefs.h. */
8214 #include <sys/types.h>
8215 #include <sys/param.h>
8216
8217 int
8218 main ()
8219 {
8220 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
8221 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
8222 && LITTLE_ENDIAN)
8223 bogus endian macros
8224 #endif
8225
8226 ;
8227 return 0;
8228 }
8229 _ACEOF
8230 if ac_fn_c_try_compile "$LINENO"; then :
8231 # It does; now see whether it defined to BIG_ENDIAN or not.
8232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233 /* end confdefs.h. */
8234 #include <sys/types.h>
8235 #include <sys/param.h>
8236
8237 int
8238 main ()
8239 {
8240 #if BYTE_ORDER != BIG_ENDIAN
8241 not big endian
8242 #endif
8243
8244 ;
8245 return 0;
8246 }
8247 _ACEOF
8248 if ac_fn_c_try_compile "$LINENO"; then :
8249 ac_cv_c_bigendian=yes
8250 else
8251 ac_cv_c_bigendian=no
8252 fi
8253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8254 fi
8255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8256 fi
8257 if test $ac_cv_c_bigendian = unknown; then
8258 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
8259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8260 /* end confdefs.h. */
8261 #include <limits.h>
8262
8263 int
8264 main ()
8265 {
8266 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
8267 bogus endian macros
8268 #endif
8269
8270 ;
8271 return 0;
8272 }
8273 _ACEOF
8274 if ac_fn_c_try_compile "$LINENO"; then :
8275 # It does; now see whether it defined to _BIG_ENDIAN or not.
8276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8277 /* end confdefs.h. */
8278 #include <limits.h>
8279
8280 int
8281 main ()
8282 {
8283 #ifndef _BIG_ENDIAN
8284 not big endian
8285 #endif
8286
8287 ;
8288 return 0;
8289 }
8290 _ACEOF
8291 if ac_fn_c_try_compile "$LINENO"; then :
8292 ac_cv_c_bigendian=yes
8293 else
8294 ac_cv_c_bigendian=no
8295 fi
8296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8297 fi
8298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8299 fi
8300 if test $ac_cv_c_bigendian = unknown; then
8301 # Compile a test program.
8302 if test "$cross_compiling" = yes; then :
8303 # Try to guess by grepping values from an object file.
8304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305 /* end confdefs.h. */
8306 short int ascii_mm[] =
8307 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8308 short int ascii_ii[] =
8309 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8310 int use_ascii (int i) {
8311 return ascii_mm[i] + ascii_ii[i];
8312 }
8313 short int ebcdic_ii[] =
8314 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8315 short int ebcdic_mm[] =
8316 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8317 int use_ebcdic (int i) {
8318 return ebcdic_mm[i] + ebcdic_ii[i];
8319 }
8320 extern int foo;
8321
8322 int
8323 main ()
8324 {
8325 return use_ascii (foo) == use_ebcdic (foo);
8326 ;
8327 return 0;
8328 }
8329 _ACEOF
8330 if ac_fn_c_try_compile "$LINENO"; then :
8331 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
8332 ac_cv_c_bigendian=yes
8333 fi
8334 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
8335 if test "$ac_cv_c_bigendian" = unknown; then
8336 ac_cv_c_bigendian=no
8337 else
8338 # finding both strings is unlikely to happen, but who knows?
8339 ac_cv_c_bigendian=unknown
8340 fi
8341 fi
8342 fi
8343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8344 else
8345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8346 /* end confdefs.h. */
8347 $ac_includes_default
8348 int
8349 main ()
8350 {
8351
8352 /* Are we little or big endian? From Harbison&Steele. */
8353 union
8354 {
8355 long int l;
8356 char c[sizeof (long int)];
8357 } u;
8358 u.l = 1;
8359 return u.c[sizeof (long int) - 1] == 1;
8360
8361 ;
8362 return 0;
8363 }
8364 _ACEOF
8365 if ac_fn_c_try_run "$LINENO"; then :
8366 ac_cv_c_bigendian=no
8367 else
8368 ac_cv_c_bigendian=yes
8369 fi
8370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8371 conftest.$ac_objext conftest.beam conftest.$ac_ext
8372 fi
8373
8374 fi
8375 fi
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
8377 $as_echo "$ac_cv_c_bigendian" >&6; }
8378 case $ac_cv_c_bigendian in #(
8379 yes)
8380 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
8381 ;; #(
8382 no)
8383 ;; #(
8384 universal)
8385
8386 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8387
8388 ;; #(
8389 *)
8390 as_fn_error "unknown endianness
8391 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
8392 esac
8393
8394
8395
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
8397 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
8398 if test "${am_cv_langinfo_codeset+set}" = set; then :
8399 $as_echo_n "(cached) " >&6
8400 else
8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8403 #include <langinfo.h>
8404 int
8405 main ()
8406 {
8407 char* cs = nl_langinfo(CODESET); return !cs;
8408 ;
8409 return 0;
8410 }
8411 _ACEOF
8412 if ac_fn_c_try_link "$LINENO"; then :
8413 am_cv_langinfo_codeset=yes
8414 else
8415 am_cv_langinfo_codeset=no
8416 fi
8417 rm -f core conftest.err conftest.$ac_objext \
8418 conftest$ac_exeext conftest.$ac_ext
8419
8420 fi
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
8422 $as_echo "$am_cv_langinfo_codeset" >&6; }
8423 if test $am_cv_langinfo_codeset = yes; then
8424
8425 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
8426
8427 fi
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8439 $as_echo_n "checking for working fcntl.h... " >&6; }
8440 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
8441 $as_echo_n "(cached) " >&6
8442 else
8443 if test "$cross_compiling" = yes; then :
8444 gl_cv_header_working_fcntl_h=cross-compiling
8445 else
8446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8447 /* end confdefs.h. */
8448 #include <sys/types.h>
8449 #include <sys/stat.h>
8450 #if HAVE_UNISTD_H
8451 # include <unistd.h>
8452 #else /* on Windows with MSVC */
8453 # include <io.h>
8454 # include <stdlib.h>
8455 # defined sleep(n) _sleep ((n) * 1000)
8456 #endif
8457 #include <fcntl.h>
8458 #ifndef O_NOATIME
8459 #define O_NOATIME 0
8460 #endif
8461 #ifndef O_NOFOLLOW
8462 #define O_NOFOLLOW 0
8463 #endif
8464 static int const constants[] =
8465 {
8466 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8467 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8468 };
8469
8470 int
8471 main ()
8472 {
8473
8474 int result = !constants;
8475 #if HAVE_SYMLINK
8476 {
8477 static char const sym[] = "conftest.sym";
8478 if (symlink ("/dev/null", sym) != 0)
8479 result |= 2;
8480 else
8481 {
8482 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8483 if (fd >= 0)
8484 {
8485 close (fd);
8486 result |= 4;
8487 }
8488 }
8489 if (unlink (sym) != 0 || symlink (".", sym) != 0)
8490 result |= 2;
8491 else
8492 {
8493 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
8494 if (fd >= 0)
8495 {
8496 close (fd);
8497 result |= 4;
8498 }
8499 }
8500 unlink (sym);
8501 }
8502 #endif
8503 {
8504 static char const file[] = "confdefs.h";
8505 int fd = open (file, O_RDONLY | O_NOATIME);
8506 if (fd < 0)
8507 result |= 8;
8508 else
8509 {
8510 struct stat st0;
8511 if (fstat (fd, &st0) != 0)
8512 result |= 16;
8513 else
8514 {
8515 char c;
8516 sleep (1);
8517 if (read (fd, &c, 1) != 1)
8518 result |= 24;
8519 else
8520 {
8521 if (close (fd) != 0)
8522 result |= 32;
8523 else
8524 {
8525 struct stat st1;
8526 if (stat (file, &st1) != 0)
8527 result |= 40;
8528 else
8529 if (st0.st_atime != st1.st_atime)
8530 result |= 64;
8531 }
8532 }
8533 }
8534 }
8535 }
8536 return result;
8537 ;
8538 return 0;
8539 }
8540 _ACEOF
8541 if ac_fn_c_try_run "$LINENO"; then :
8542 gl_cv_header_working_fcntl_h=yes
8543 else
8544 case $? in #(
8545 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
8546 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
8547 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8548 *) gl_cv_header_working_fcntl_h='no';;
8549 esac
8550 fi
8551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8552 conftest.$ac_objext conftest.beam conftest.$ac_ext
8553 fi
8554
8555 fi
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
8557 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
8558
8559 case $gl_cv_header_working_fcntl_h in #(
8560 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
8561 *) ac_val=1;;
8562 esac
8563
8564 cat >>confdefs.h <<_ACEOF
8565 #define HAVE_WORKING_O_NOATIME $ac_val
8566 _ACEOF
8567
8568
8569 case $gl_cv_header_working_fcntl_h in #(
8570 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
8571 *) ac_val=1;;
8572 esac
8573
8574 cat >>confdefs.h <<_ACEOF
8575 #define HAVE_WORKING_O_NOFOLLOW $ac_val
8576 _ACEOF
8577
8578
8579 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
8580 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
8581 ac_have_decl=1
8582 else
8583 ac_have_decl=0
8584 fi
8585
8586 cat >>confdefs.h <<_ACEOF
8587 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
8588 _ACEOF
8589
8590
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
8592 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
8593 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
8594 $as_echo_n "(cached) " >&6
8595 else
8596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8597 /* end confdefs.h. */
8598
8599 #include <features.h>
8600 #ifdef __GNU_LIBRARY__
8601 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
8602 Lucky GNU user
8603 #endif
8604 #endif
8605 #ifdef __UCLIBC__
8606 Lucky user
8607 #endif
8608
8609 _ACEOF
8610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8611 $EGREP "Lucky" >/dev/null 2>&1; then :
8612 ac_cv_gnu_library_2_1=yes
8613 else
8614 ac_cv_gnu_library_2_1=no
8615 fi
8616 rm -f conftest*
8617
8618
8619
8620 fi
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
8622 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
8623
8624 GLIBC21="$ac_cv_gnu_library_2_1"
8625
8626
8627
8628
8629
8630 GNULIB_BTOWC=0;
8631 GNULIB_WCTOB=0;
8632 GNULIB_MBSINIT=0;
8633 GNULIB_MBRTOWC=0;
8634 GNULIB_MBRLEN=0;
8635 GNULIB_MBSRTOWCS=0;
8636 GNULIB_MBSNRTOWCS=0;
8637 GNULIB_WCRTOMB=0;
8638 GNULIB_WCSRTOMBS=0;
8639 GNULIB_WCSNRTOMBS=0;
8640 GNULIB_WCWIDTH=0;
8641 GNULIB_WMEMCHR=0;
8642 GNULIB_WMEMCMP=0;
8643 GNULIB_WMEMCPY=0;
8644 GNULIB_WMEMMOVE=0;
8645 GNULIB_WMEMSET=0;
8646 GNULIB_WCSLEN=0;
8647 GNULIB_WCSNLEN=0;
8648 GNULIB_WCSCPY=0;
8649 GNULIB_WCPCPY=0;
8650 GNULIB_WCSNCPY=0;
8651 GNULIB_WCPNCPY=0;
8652 GNULIB_WCSCAT=0;
8653 GNULIB_WCSNCAT=0;
8654 GNULIB_WCSCMP=0;
8655 GNULIB_WCSNCMP=0;
8656 GNULIB_WCSCASECMP=0;
8657 GNULIB_WCSNCASECMP=0;
8658 GNULIB_WCSCOLL=0;
8659 GNULIB_WCSXFRM=0;
8660 GNULIB_WCSDUP=0;
8661 GNULIB_WCSCHR=0;
8662 GNULIB_WCSRCHR=0;
8663 GNULIB_WCSCSPN=0;
8664 GNULIB_WCSSPN=0;
8665 GNULIB_WCSPBRK=0;
8666 GNULIB_WCSSTR=0;
8667 GNULIB_WCSTOK=0;
8668 GNULIB_WCSWIDTH=0;
8669 HAVE_BTOWC=1;
8670 HAVE_MBSINIT=1;
8671 HAVE_MBRTOWC=1;
8672 HAVE_MBRLEN=1;
8673 HAVE_MBSRTOWCS=1;
8674 HAVE_MBSNRTOWCS=1;
8675 HAVE_WCRTOMB=1;
8676 HAVE_WCSRTOMBS=1;
8677 HAVE_WCSNRTOMBS=1;
8678 HAVE_WMEMCHR=1;
8679 HAVE_WMEMCMP=1;
8680 HAVE_WMEMCPY=1;
8681 HAVE_WMEMMOVE=1;
8682 HAVE_WMEMSET=1;
8683 HAVE_WCSLEN=1;
8684 HAVE_WCSNLEN=1;
8685 HAVE_WCSCPY=1;
8686 HAVE_WCPCPY=1;
8687 HAVE_WCSNCPY=1;
8688 HAVE_WCPNCPY=1;
8689 HAVE_WCSCAT=1;
8690 HAVE_WCSNCAT=1;
8691 HAVE_WCSCMP=1;
8692 HAVE_WCSNCMP=1;
8693 HAVE_WCSCASECMP=1;
8694 HAVE_WCSNCASECMP=1;
8695 HAVE_WCSCOLL=1;
8696 HAVE_WCSXFRM=1;
8697 HAVE_WCSDUP=1;
8698 HAVE_WCSCHR=1;
8699 HAVE_WCSRCHR=1;
8700 HAVE_WCSCSPN=1;
8701 HAVE_WCSSPN=1;
8702 HAVE_WCSPBRK=1;
8703 HAVE_WCSSTR=1;
8704 HAVE_WCSTOK=1;
8705 HAVE_WCSWIDTH=1;
8706 HAVE_DECL_WCTOB=1;
8707 HAVE_DECL_WCWIDTH=1;
8708 REPLACE_MBSTATE_T=0;
8709 REPLACE_BTOWC=0;
8710 REPLACE_WCTOB=0;
8711 REPLACE_MBSINIT=0;
8712 REPLACE_MBRTOWC=0;
8713 REPLACE_MBRLEN=0;
8714 REPLACE_MBSRTOWCS=0;
8715 REPLACE_MBSNRTOWCS=0;
8716 REPLACE_WCRTOMB=0;
8717 REPLACE_WCSRTOMBS=0;
8718 REPLACE_WCSNRTOMBS=0;
8719 REPLACE_WCWIDTH=0;
8720 REPLACE_WCSWIDTH=0;
8721
8722
8723
8724
8725
8726
8727
8728
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
8730 $as_echo_n "checking for a traditional japanese locale... " >&6; }
8731 if test "${gt_cv_locale_ja+set}" = set; then :
8732 $as_echo_n "(cached) " >&6
8733 else
8734
8735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8736 /* end confdefs.h. */
8737
8738 #include <locale.h>
8739 #include <time.h>
8740 #if HAVE_LANGINFO_CODESET
8741 # include <langinfo.h>
8742 #endif
8743 #include <stdlib.h>
8744 #include <string.h>
8745 struct tm t;
8746 char buf[16];
8747 int main ()
8748 {
8749 const char *p;
8750 /* Check whether the given locale name is recognized by the system. */
8751 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8752 /* On native Windows, setlocale(category, "") looks at the system settings,
8753 not at the environment variables. Also, when an encoding suffix such
8754 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8755 category of the locale to "C". */
8756 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8757 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8758 return 1;
8759 #else
8760 if (setlocale (LC_ALL, "") == NULL) return 1;
8761 #endif
8762 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8763 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8764 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8765 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8766 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8767 some unit tests fail.
8768 On MirBSD 10, when an unsupported locale is specified, setlocale()
8769 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8770 #if HAVE_LANGINFO_CODESET
8771 {
8772 const char *cs = nl_langinfo (CODESET);
8773 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8774 || strcmp (cs, "UTF-8") == 0)
8775 return 1;
8776 }
8777 #endif
8778 #ifdef __CYGWIN__
8779 /* On Cygwin, avoid locale names without encoding suffix, because the
8780 locale_charset() function relies on the encoding suffix. Note that
8781 LC_ALL is set on the command line. */
8782 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8783 #endif
8784 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
8785 on Cygwin 1.5.x. */
8786 if (MB_CUR_MAX == 1)
8787 return 1;
8788 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8789 This excludes the UTF-8 encoding (except on MirBSD). */
8790 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8791 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8792 for (p = buf; *p != '\0'; p++)
8793 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8794 return 1;
8795 return 0;
8796 }
8797
8798 _ACEOF
8799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8800 (eval $ac_link) 2>&5
8801 ac_status=$?
8802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8803 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8804 case "$host_os" in
8805 # Handle native Windows specially, because there setlocale() interprets
8806 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8807 # "fr" or "fra" as "French" or "French_France.1252",
8808 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8809 # "ja" as "Japanese" or "Japanese_Japan.932",
8810 # and similar.
8811 mingw*)
8812 # Note that on native Windows, the Japanese locale is
8813 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
8814 # cannot use it here.
8815 gt_cv_locale_ja=none
8816 ;;
8817 *)
8818 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8819 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8820 # configure script would override the LC_ALL setting. Likewise for
8821 # LC_CTYPE, which is also set at the beginning of the configure script.
8822 # Test for the AIX locale name.
8823 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8824 gt_cv_locale_ja=ja_JP
8825 else
8826 # Test for the locale name with explicit encoding suffix.
8827 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8828 gt_cv_locale_ja=ja_JP.EUC-JP
8829 else
8830 # Test for the HP-UX, OSF/1, NetBSD locale name.
8831 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8832 gt_cv_locale_ja=ja_JP.eucJP
8833 else
8834 # Test for the IRIX, FreeBSD locale name.
8835 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8836 gt_cv_locale_ja=ja_JP.EUC
8837 else
8838 # Test for the Solaris 7 locale name.
8839 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8840 gt_cv_locale_ja=ja
8841 else
8842 # Special test for NetBSD 1.6.
8843 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
8844 gt_cv_locale_ja=ja_JP.eucJP
8845 else
8846 # None found.
8847 gt_cv_locale_ja=none
8848 fi
8849 fi
8850 fi
8851 fi
8852 fi
8853 fi
8854 ;;
8855 esac
8856 fi
8857 rm -fr conftest*
8858
8859 fi
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
8861 $as_echo "$gt_cv_locale_ja" >&6; }
8862 LOCALE_JA=$gt_cv_locale_ja
8863
8864
8865
8866
8867
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
8869 $as_echo_n "checking for a transitional chinese locale... " >&6; }
8870 if test "${gt_cv_locale_zh_CN+set}" = set; then :
8871 $as_echo_n "(cached) " >&6
8872 else
8873
8874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8875 /* end confdefs.h. */
8876
8877 #include <locale.h>
8878 #include <stdlib.h>
8879 #include <time.h>
8880 #if HAVE_LANGINFO_CODESET
8881 # include <langinfo.h>
8882 #endif
8883 #include <stdlib.h>
8884 #include <string.h>
8885 struct tm t;
8886 char buf[16];
8887 int main ()
8888 {
8889 const char *p;
8890 /* Check whether the given locale name is recognized by the system. */
8891 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8892 /* On native Windows, setlocale(category, "") looks at the system settings,
8893 not at the environment variables. Also, when an encoding suffix such
8894 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8895 category of the locale to "C". */
8896 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8897 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8898 return 1;
8899 #else
8900 if (setlocale (LC_ALL, "") == NULL) return 1;
8901 #endif
8902 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8903 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8904 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8905 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8906 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8907 some unit tests fail.
8908 On MirBSD 10, when an unsupported locale is specified, setlocale()
8909 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8910 #if HAVE_LANGINFO_CODESET
8911 {
8912 const char *cs = nl_langinfo (CODESET);
8913 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8914 || strcmp (cs, "UTF-8") == 0)
8915 return 1;
8916 }
8917 #endif
8918 #ifdef __CYGWIN__
8919 /* On Cygwin, avoid locale names without encoding suffix, because the
8920 locale_charset() function relies on the encoding suffix. Note that
8921 LC_ALL is set on the command line. */
8922 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8923 #endif
8924 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8925 This excludes the UTF-8 encoding (except on MirBSD). */
8926 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8927 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8928 for (p = buf; *p != '\0'; p++)
8929 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8930 return 1;
8931 /* Check whether a typical GB18030 multibyte sequence is recognized as a
8932 single wide character. This excludes the GB2312 and GBK encodings. */
8933 if (mblen ("\203\062\332\066", 5) != 4)
8934 return 1;
8935 return 0;
8936 }
8937
8938 _ACEOF
8939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8940 (eval $ac_link) 2>&5
8941 ac_status=$?
8942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8943 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8944 case "$host_os" in
8945 # Handle native Windows specially, because there setlocale() interprets
8946 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8947 # "fr" or "fra" as "French" or "French_France.1252",
8948 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8949 # "ja" as "Japanese" or "Japanese_Japan.932",
8950 # and similar.
8951 mingw*)
8952 # Test for the hypothetical native Windows locale name.
8953 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8954 gt_cv_locale_zh_CN=Chinese_China.54936
8955 else
8956 # None found.
8957 gt_cv_locale_zh_CN=none
8958 fi
8959 ;;
8960 solaris2.8)
8961 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
8962 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
8963 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
8964 gt_cv_locale_zh_CN=none
8965 ;;
8966 *)
8967 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8968 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8969 # configure script would override the LC_ALL setting. Likewise for
8970 # LC_CTYPE, which is also set at the beginning of the configure script.
8971 # Test for the locale name without encoding suffix.
8972 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8973 gt_cv_locale_zh_CN=zh_CN
8974 else
8975 # Test for the locale name with explicit encoding suffix.
8976 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8977 gt_cv_locale_zh_CN=zh_CN.GB18030
8978 else
8979 # None found.
8980 gt_cv_locale_zh_CN=none
8981 fi
8982 fi
8983 ;;
8984 esac
8985 else
8986 # If there was a link error, due to mblen(), the system is so old that
8987 # it certainly doesn't have a chinese locale.
8988 gt_cv_locale_zh_CN=none
8989 fi
8990 rm -fr conftest*
8991
8992 fi
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
8994 $as_echo "$gt_cv_locale_zh_CN" >&6; }
8995 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
8996
8997
8998
8999
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
9001 $as_echo_n "checking for a french Unicode locale... " >&6; }
9002 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
9003 $as_echo_n "(cached) " >&6
9004 else
9005
9006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9007 /* end confdefs.h. */
9008
9009 #include <locale.h>
9010 #include <time.h>
9011 #if HAVE_LANGINFO_CODESET
9012 # include <langinfo.h>
9013 #endif
9014 #include <stdlib.h>
9015 #include <string.h>
9016 struct tm t;
9017 char buf[16];
9018 int main () {
9019 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
9020 imitates locale dependent behaviour by looking at the environment
9021 variables, and all locales use the UTF-8 encoding. */
9022 #if !(defined __BEOS__ || defined __HAIKU__)
9023 /* Check whether the given locale name is recognized by the system. */
9024 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9025 /* On native Windows, setlocale(category, "") looks at the system settings,
9026 not at the environment variables. Also, when an encoding suffix such
9027 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9028 category of the locale to "C". */
9029 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9030 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9031 return 1;
9032 # else
9033 if (setlocale (LC_ALL, "") == NULL) return 1;
9034 # endif
9035 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9036 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9037 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9038 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9039 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9040 some unit tests fail. */
9041 # if HAVE_LANGINFO_CODESET
9042 {
9043 const char *cs = nl_langinfo (CODESET);
9044 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
9045 return 1;
9046 }
9047 # endif
9048 # ifdef __CYGWIN__
9049 /* On Cygwin, avoid locale names without encoding suffix, because the
9050 locale_charset() function relies on the encoding suffix. Note that
9051 LC_ALL is set on the command line. */
9052 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9053 # endif
9054 /* Check whether in the abbreviation of the second month, the second
9055 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
9056 two bytes long, with UTF-8 encoding. */
9057 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9058 if (strftime (buf, sizeof (buf), "%b", &t) < 4
9059 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
9060 return 1;
9061 #endif
9062 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
9063 /* Check whether the decimal separator is a comma.
9064 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
9065 are nl_langinfo(RADIXCHAR) are both ".". */
9066 if (localeconv () ->decimal_point[0] != ',') return 1;
9067 #endif
9068 return 0;
9069 }
9070
9071 _ACEOF
9072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9073 (eval $ac_link) 2>&5
9074 ac_status=$?
9075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9076 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9077 case "$host_os" in
9078 # Handle native Windows specially, because there setlocale() interprets
9079 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9080 # "fr" or "fra" as "French" or "French_France.1252",
9081 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9082 # "ja" as "Japanese" or "Japanese_Japan.932",
9083 # and similar.
9084 mingw*)
9085 # Test for the hypothetical native Windows locale name.
9086 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9087 gt_cv_locale_fr_utf8=French_France.65001
9088 else
9089 # None found.
9090 gt_cv_locale_fr_utf8=none
9091 fi
9092 ;;
9093 *)
9094 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9095 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9096 # configure script would override the LC_ALL setting. Likewise for
9097 # LC_CTYPE, which is also set at the beginning of the configure script.
9098 # Test for the usual locale name.
9099 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9100 gt_cv_locale_fr_utf8=fr_FR
9101 else
9102 # Test for the locale name with explicit encoding suffix.
9103 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9104 gt_cv_locale_fr_utf8=fr_FR.UTF-8
9105 else
9106 # Test for the Solaris 7 locale name.
9107 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9108 gt_cv_locale_fr_utf8=fr.UTF-8
9109 else
9110 # None found.
9111 gt_cv_locale_fr_utf8=none
9112 fi
9113 fi
9114 fi
9115 ;;
9116 esac
9117 fi
9118 rm -fr conftest*
9119
9120 fi
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
9122 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
9123 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
9124
9125
9126
9127
9128
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
9130 $as_echo_n "checking for a traditional french locale... " >&6; }
9131 if test "${gt_cv_locale_fr+set}" = set; then :
9132 $as_echo_n "(cached) " >&6
9133 else
9134
9135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9136 /* end confdefs.h. */
9137
9138 #include <locale.h>
9139 #include <time.h>
9140 #if HAVE_LANGINFO_CODESET
9141 # include <langinfo.h>
9142 #endif
9143 #include <stdlib.h>
9144 #include <string.h>
9145 struct tm t;
9146 char buf[16];
9147 int main () {
9148 /* Check whether the given locale name is recognized by the system. */
9149 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
9150 /* On native Windows, setlocale(category, "") looks at the system settings,
9151 not at the environment variables. Also, when an encoding suffix such
9152 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
9153 category of the locale to "C". */
9154 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
9155 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
9156 return 1;
9157 #else
9158 if (setlocale (LC_ALL, "") == NULL) return 1;
9159 #endif
9160 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
9161 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
9162 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
9163 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
9164 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
9165 some unit tests fail.
9166 On MirBSD 10, when an unsupported locale is specified, setlocale()
9167 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
9168 #if HAVE_LANGINFO_CODESET
9169 {
9170 const char *cs = nl_langinfo (CODESET);
9171 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
9172 || strcmp (cs, "UTF-8") == 0)
9173 return 1;
9174 }
9175 #endif
9176 #ifdef __CYGWIN__
9177 /* On Cygwin, avoid locale names without encoding suffix, because the
9178 locale_charset() function relies on the encoding suffix. Note that
9179 LC_ALL is set on the command line. */
9180 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
9181 #endif
9182 /* Check whether in the abbreviation of the second month, the second
9183 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
9184 one byte long. This excludes the UTF-8 encoding. */
9185 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
9186 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
9187 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
9188 /* Check whether the decimal separator is a comma.
9189 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
9190 are nl_langinfo(RADIXCHAR) are both ".". */
9191 if (localeconv () ->decimal_point[0] != ',') return 1;
9192 #endif
9193 return 0;
9194 }
9195
9196 _ACEOF
9197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9198 (eval $ac_link) 2>&5
9199 ac_status=$?
9200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9201 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9202 case "$host_os" in
9203 # Handle native Windows specially, because there setlocale() interprets
9204 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
9205 # "fr" or "fra" as "French" or "French_France.1252",
9206 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
9207 # "ja" as "Japanese" or "Japanese_Japan.932",
9208 # and similar.
9209 mingw*)
9210 # Test for the native Windows locale name.
9211 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9212 gt_cv_locale_fr=French_France.1252
9213 else
9214 # None found.
9215 gt_cv_locale_fr=none
9216 fi
9217 ;;
9218 *)
9219 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
9220 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
9221 # configure script would override the LC_ALL setting. Likewise for
9222 # LC_CTYPE, which is also set at the beginning of the configure script.
9223 # Test for the usual locale name.
9224 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9225 gt_cv_locale_fr=fr_FR
9226 else
9227 # Test for the locale name with explicit encoding suffix.
9228 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9229 gt_cv_locale_fr=fr_FR.ISO-8859-1
9230 else
9231 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
9232 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9233 gt_cv_locale_fr=fr_FR.ISO8859-1
9234 else
9235 # Test for the HP-UX locale name.
9236 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9237 gt_cv_locale_fr=fr_FR.iso88591
9238 else
9239 # Test for the Solaris 7 locale name.
9240 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
9241 gt_cv_locale_fr=fr
9242 else
9243 # None found.
9244 gt_cv_locale_fr=none
9245 fi
9246 fi
9247 fi
9248 fi
9249 fi
9250 ;;
9251 esac
9252 fi
9253 rm -fr conftest*
9254
9255 fi
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
9257 $as_echo "$gt_cv_locale_fr" >&6; }
9258 LOCALE_FR=$gt_cv_locale_fr
9259
9260
9261
9262
9263
9264
9265
9266 GNULIB_FFSL=0;
9267 GNULIB_FFSLL=0;
9268 GNULIB_MEMCHR=0;
9269 GNULIB_MEMMEM=0;
9270 GNULIB_MEMPCPY=0;
9271 GNULIB_MEMRCHR=0;
9272 GNULIB_RAWMEMCHR=0;
9273 GNULIB_STPCPY=0;
9274 GNULIB_STPNCPY=0;
9275 GNULIB_STRCHRNUL=0;
9276 GNULIB_STRDUP=0;
9277 GNULIB_STRNCAT=0;
9278 GNULIB_STRNDUP=0;
9279 GNULIB_STRNLEN=0;
9280 GNULIB_STRPBRK=0;
9281 GNULIB_STRSEP=0;
9282 GNULIB_STRSTR=0;
9283 GNULIB_STRCASESTR=0;
9284 GNULIB_STRTOK_R=0;
9285 GNULIB_MBSLEN=0;
9286 GNULIB_MBSNLEN=0;
9287 GNULIB_MBSCHR=0;
9288 GNULIB_MBSRCHR=0;
9289 GNULIB_MBSSTR=0;
9290 GNULIB_MBSCASECMP=0;
9291 GNULIB_MBSNCASECMP=0;
9292 GNULIB_MBSPCASECMP=0;
9293 GNULIB_MBSCASESTR=0;
9294 GNULIB_MBSCSPN=0;
9295 GNULIB_MBSPBRK=0;
9296 GNULIB_MBSSPN=0;
9297 GNULIB_MBSSEP=0;
9298 GNULIB_MBSTOK_R=0;
9299 GNULIB_STRERROR=0;
9300 GNULIB_STRERROR_R=0;
9301 GNULIB_STRSIGNAL=0;
9302 GNULIB_STRVERSCMP=0;
9303 HAVE_MBSLEN=0;
9304 HAVE_FFSL=1;
9305 HAVE_FFSLL=1;
9306 HAVE_MEMCHR=1;
9307 HAVE_DECL_MEMMEM=1;
9308 HAVE_MEMPCPY=1;
9309 HAVE_DECL_MEMRCHR=1;
9310 HAVE_RAWMEMCHR=1;
9311 HAVE_STPCPY=1;
9312 HAVE_STPNCPY=1;
9313 HAVE_STRCHRNUL=1;
9314 HAVE_DECL_STRDUP=1;
9315 HAVE_DECL_STRNDUP=1;
9316 HAVE_DECL_STRNLEN=1;
9317 HAVE_STRPBRK=1;
9318 HAVE_STRSEP=1;
9319 HAVE_STRCASESTR=1;
9320 HAVE_DECL_STRTOK_R=1;
9321 HAVE_DECL_STRERROR_R=1;
9322 HAVE_DECL_STRSIGNAL=1;
9323 HAVE_STRVERSCMP=1;
9324 REPLACE_MEMCHR=0;
9325 REPLACE_MEMMEM=0;
9326 REPLACE_STPNCPY=0;
9327 REPLACE_STRDUP=0;
9328 REPLACE_STRSTR=0;
9329 REPLACE_STRCASESTR=0;
9330 REPLACE_STRCHRNUL=0;
9331 REPLACE_STRERROR=0;
9332 REPLACE_STRERROR_R=0;
9333 REPLACE_STRNCAT=0;
9334 REPLACE_STRNDUP=0;
9335 REPLACE_STRNLEN=0;
9336 REPLACE_STRSIGNAL=0;
9337 REPLACE_STRTOK_R=0;
9338 UNDEFINE_STRTOK_R=0;
9339
9340
9341
9342
9343
9344 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
9345 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
9346 # irrelevant for anonymous mappings.
9347 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
9348 if test "x$ac_cv_func_mmap" = x""yes; then :
9349 gl_have_mmap=yes
9350 else
9351 gl_have_mmap=no
9352 fi
9353
9354
9355 # Try to allow MAP_ANONYMOUS.
9356 gl_have_mmap_anonymous=no
9357 if test $gl_have_mmap = yes; then
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
9359 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
9360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9361 /* end confdefs.h. */
9362
9363 #include <sys/mman.h>
9364 #ifdef MAP_ANONYMOUS
9365 I cannot identify this map
9366 #endif
9367
9368 _ACEOF
9369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9370 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
9371 gl_have_mmap_anonymous=yes
9372 fi
9373 rm -f conftest*
9374
9375 if test $gl_have_mmap_anonymous != yes; then
9376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9377 /* end confdefs.h. */
9378
9379 #include <sys/mman.h>
9380 #ifdef MAP_ANON
9381 I cannot identify this map
9382 #endif
9383
9384 _ACEOF
9385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9386 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
9387
9388 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
9389
9390 gl_have_mmap_anonymous=yes
9391 fi
9392 rm -f conftest*
9393
9394 fi
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
9396 $as_echo "$gl_have_mmap_anonymous" >&6; }
9397 if test $gl_have_mmap_anonymous = yes; then
9398
9399 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
9400
9401 fi
9402 fi
9403
9404
9405
9406
9407
9408
9409 if test $HAVE_MEMCHR = 1; then
9410 # Detect platform-specific bugs in some versions of glibc:
9411 # memchr should not dereference anything with length 0
9412 # http://bugzilla.redhat.com/499689
9413 # memchr should not dereference overestimated length after a match
9414 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
9415 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
9416 # Assume that memchr works on platforms that lack mprotect.
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
9418 $as_echo_n "checking whether memchr works... " >&6; }
9419 if test "${gl_cv_func_memchr_works+set}" = set; then :
9420 $as_echo_n "(cached) " >&6
9421 else
9422 if test "$cross_compiling" = yes; then :
9423 gl_cv_func_memchr_works="guessing no"
9424 else
9425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9426 /* end confdefs.h. */
9427
9428 #include <string.h>
9429 #if HAVE_SYS_MMAN_H
9430 # include <fcntl.h>
9431 # include <unistd.h>
9432 # include <sys/types.h>
9433 # include <sys/mman.h>
9434 # ifndef MAP_FILE
9435 # define MAP_FILE 0
9436 # endif
9437 #endif
9438
9439 int
9440 main ()
9441 {
9442
9443 int result = 0;
9444 char *fence = NULL;
9445 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
9446 # if HAVE_MAP_ANONYMOUS
9447 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
9448 const int fd = -1;
9449 # else /* !HAVE_MAP_ANONYMOUS */
9450 const int flags = MAP_FILE | MAP_PRIVATE;
9451 int fd = open ("/dev/zero", O_RDONLY, 0666);
9452 if (fd >= 0)
9453 # endif
9454 {
9455 int pagesize = getpagesize ();
9456 char *two_pages =
9457 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
9458 flags, fd, 0);
9459 if (two_pages != (char *)(-1)
9460 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
9461 fence = two_pages + pagesize;
9462 }
9463 #endif
9464 if (fence)
9465 {
9466 if (memchr (fence, 0, 0))
9467 result |= 1;
9468 strcpy (fence - 9, "12345678");
9469 if (memchr (fence - 9, 0, 79) != fence - 1)
9470 result |= 2;
9471 if (memchr (fence - 1, 0, 3) != fence - 1)
9472 result |= 4;
9473 }
9474 return result;
9475
9476 ;
9477 return 0;
9478 }
9479 _ACEOF
9480 if ac_fn_c_try_run "$LINENO"; then :
9481 gl_cv_func_memchr_works=yes
9482 else
9483 gl_cv_func_memchr_works=no
9484 fi
9485 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9486 conftest.$ac_objext conftest.beam conftest.$ac_ext
9487 fi
9488
9489 fi
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
9491 $as_echo "$gl_cv_func_memchr_works" >&6; }
9492 if test "$gl_cv_func_memchr_works" != yes; then
9493 REPLACE_MEMCHR=1
9494 fi
9495 fi
9496
9497 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
9498 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
9499 ac_have_decl=1
9500 else
9501 ac_have_decl=0
9502 fi
9503
9504 cat >>confdefs.h <<_ACEOF
9505 #define HAVE_DECL_MEMMEM $ac_have_decl
9506 _ACEOF
9507
9508
9509
9510
9511
9512 for ac_func in memmem
9513 do :
9514 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
9515 if test "x$ac_cv_func_memmem" = x""yes; then :
9516 cat >>confdefs.h <<_ACEOF
9517 #define HAVE_MEMMEM 1
9518 _ACEOF
9519
9520 fi
9521 done
9522
9523 if test $ac_cv_func_memmem = yes; then
9524 HAVE_MEMMEM=1
9525 else
9526 HAVE_MEMMEM=0
9527 fi
9528
9529 if test $ac_cv_have_decl_memmem = no; then
9530 HAVE_DECL_MEMMEM=0
9531 else
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
9533 $as_echo_n "checking whether memmem works... " >&6; }
9534 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
9535 $as_echo_n "(cached) " >&6
9536 else
9537 if test "$cross_compiling" = yes; then :
9538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9539 /* end confdefs.h. */
9540
9541 #ifdef __GNU_LIBRARY__
9542 #include <features.h>
9543 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
9544 || __GLIBC_MINOR__ > 12)) \
9545 || (__GLIBC__ > 2)) \
9546 || defined __UCLIBC__
9547 Lucky user
9548 #endif
9549 #elif defined __CYGWIN__
9550 #include <cygwin/version.h>
9551 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
9552 Lucky user
9553 #endif
9554 #else
9555 Lucky user
9556 #endif
9557
9558 _ACEOF
9559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9560 $EGREP "Lucky user" >/dev/null 2>&1; then :
9561 gl_cv_func_memmem_works_always="guessing yes"
9562 else
9563 gl_cv_func_memmem_works_always="guessing no"
9564 fi
9565 rm -f conftest*
9566
9567
9568 else
9569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570 /* end confdefs.h. */
9571
9572 #include <string.h> /* for memmem */
9573 #define P "_EF_BF_BD"
9574 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
9575 #define NEEDLE P P P P P
9576
9577 int
9578 main ()
9579 {
9580
9581 int result = 0;
9582 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
9583 result |= 1;
9584 /* Check for empty needle behavior. */
9585 {
9586 const char *haystack = "AAA";
9587 if (memmem (haystack, 3, NULL, 0) != haystack)
9588 result |= 2;
9589 }
9590 return result;
9591
9592 ;
9593 return 0;
9594 }
9595 _ACEOF
9596 if ac_fn_c_try_run "$LINENO"; then :
9597 gl_cv_func_memmem_works_always=yes
9598 else
9599 gl_cv_func_memmem_works_always=no
9600 fi
9601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9602 conftest.$ac_objext conftest.beam conftest.$ac_ext
9603 fi
9604
9605
9606 fi
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
9608 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
9609 case "$gl_cv_func_memmem_works_always" in
9610 *yes) ;;
9611 *)
9612 REPLACE_MEMMEM=1
9613 ;;
9614 esac
9615 fi
9616 :
9617
9618
9619
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
9621 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
9622 if test "${ac_cv_header_stdbool_h+set}" = set; then :
9623 $as_echo_n "(cached) " >&6
9624 else
9625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9626 /* end confdefs.h. */
9627
9628 #include <stdbool.h>
9629 #ifndef bool
9630 "error: bool is not defined"
9631 #endif
9632 #ifndef false
9633 "error: false is not defined"
9634 #endif
9635 #if false
9636 "error: false is not 0"
9637 #endif
9638 #ifndef true
9639 "error: true is not defined"
9640 #endif
9641 #if true != 1
9642 "error: true is not 1"
9643 #endif
9644 #ifndef __bool_true_false_are_defined
9645 "error: __bool_true_false_are_defined is not defined"
9646 #endif
9647
9648 struct s { _Bool s: 1; _Bool t; } s;
9649
9650 char a[true == 1 ? 1 : -1];
9651 char b[false == 0 ? 1 : -1];
9652 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9653 char d[(bool) 0.5 == true ? 1 : -1];
9654 /* See body of main program for 'e'. */
9655 char f[(_Bool) 0.0 == false ? 1 : -1];
9656 char g[true];
9657 char h[sizeof (_Bool)];
9658 char i[sizeof s.t];
9659 enum { j = false, k = true, l = false * true, m = true * 256 };
9660 /* The following fails for
9661 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
9662 _Bool n[m];
9663 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9664 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9665 /* Catch a bug in an HP-UX C compiler. See
9666 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9667 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
9668 */
9669 _Bool q = true;
9670 _Bool *pq = &q;
9671
9672 int
9673 main ()
9674 {
9675
9676 bool e = &s;
9677 *pq |= q;
9678 *pq |= ! q;
9679 /* Refer to every declared value, to avoid compiler optimizations. */
9680 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9681 + !m + !n + !o + !p + !q + !pq);
9682
9683 ;
9684 return 0;
9685 }
9686 _ACEOF
9687 if ac_fn_c_try_compile "$LINENO"; then :
9688 ac_cv_header_stdbool_h=yes
9689 else
9690 ac_cv_header_stdbool_h=no
9691 fi
9692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9693 fi
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
9695 $as_echo "$ac_cv_header_stdbool_h" >&6; }
9696 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
9697 if test "x$ac_cv_type__Bool" = x""yes; then :
9698
9699 cat >>confdefs.h <<_ACEOF
9700 #define HAVE__BOOL 1
9701 _ACEOF
9702
9703
9704 fi
9705
9706
9707
9708 REPLACE_NULL=0;
9709 HAVE_WCHAR_T=1;
9710
9711
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9713 $as_echo_n "checking for wchar_t... " >&6; }
9714 if test "${gt_cv_c_wchar_t+set}" = set; then :
9715 $as_echo_n "(cached) " >&6
9716 else
9717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9718 /* end confdefs.h. */
9719 #include <stddef.h>
9720 wchar_t foo = (wchar_t)'\0';
9721 int
9722 main ()
9723 {
9724
9725 ;
9726 return 0;
9727 }
9728 _ACEOF
9729 if ac_fn_c_try_compile "$LINENO"; then :
9730 gt_cv_c_wchar_t=yes
9731 else
9732 gt_cv_c_wchar_t=no
9733 fi
9734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9735 fi
9736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9737 $as_echo "$gt_cv_c_wchar_t" >&6; }
9738 if test $gt_cv_c_wchar_t = yes; then
9739
9740 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9741
9742 fi
9743
9744
9745 REPLACE_STRERROR_0=0
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
9747 $as_echo_n "checking whether strerror(0) succeeds... " >&6; }
9748 if test "${gl_cv_func_strerror_0_works+set}" = set; then :
9749 $as_echo_n "(cached) " >&6
9750 else
9751 if test "$cross_compiling" = yes; then :
9752 case "$host_os" in
9753 # Guess yes on glibc systems.
9754 *-gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
9755 # If we don't know, assume the worst.
9756 *) gl_cv_func_strerror_0_works="guessing no" ;;
9757 esac
9758
9759 else
9760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9761 /* end confdefs.h. */
9762 #include <string.h>
9763 #include <errno.h>
9764
9765 int
9766 main ()
9767 {
9768 int result = 0;
9769 char *str;
9770 errno = 0;
9771 str = strerror (0);
9772 if (!*str) result |= 1;
9773 if (errno) result |= 2;
9774 if (strstr (str, "nknown") || strstr (str, "ndefined"))
9775 result |= 4;
9776 return result;
9777 ;
9778 return 0;
9779 }
9780 _ACEOF
9781 if ac_fn_c_try_run "$LINENO"; then :
9782 gl_cv_func_strerror_0_works=yes
9783 else
9784 gl_cv_func_strerror_0_works=no
9785 fi
9786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9787 conftest.$ac_objext conftest.beam conftest.$ac_ext
9788 fi
9789
9790
9791 fi
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
9793 $as_echo "$gl_cv_func_strerror_0_works" >&6; }
9794 case "$gl_cv_func_strerror_0_works" in
9795 *yes) ;;
9796 *)
9797 REPLACE_STRERROR_0=1
9798
9799 $as_echo "#define REPLACE_STRERROR_0 1" >>confdefs.h
9800
9801 ;;
9802 esac
9803
9804
9805
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
9807 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9808 if test "${ac_cv_c_restrict+set}" = set; then :
9809 $as_echo_n "(cached) " >&6
9810 else
9811 ac_cv_c_restrict=no
9812 # The order here caters to the fact that C++ does not require restrict.
9813 for ac_kw in __restrict __restrict__ _Restrict restrict; do
9814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9815 /* end confdefs.h. */
9816 typedef int * int_ptr;
9817 int foo (int_ptr $ac_kw ip) {
9818 return ip[0];
9819 }
9820 int
9821 main ()
9822 {
9823 int s[1];
9824 int * $ac_kw t = s;
9825 t[0] = 0;
9826 return foo(t)
9827 ;
9828 return 0;
9829 }
9830 _ACEOF
9831 if ac_fn_c_try_compile "$LINENO"; then :
9832 ac_cv_c_restrict=$ac_kw
9833 fi
9834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9835 test "$ac_cv_c_restrict" != no && break
9836 done
9837
9838 fi
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9840 $as_echo "$ac_cv_c_restrict" >&6; }
9841
9842 case $ac_cv_c_restrict in
9843 restrict) ;;
9844 no) $as_echo "#define restrict /**/" >>confdefs.h
9845 ;;
9846 *) cat >>confdefs.h <<_ACEOF
9847 #define restrict $ac_cv_c_restrict
9848 _ACEOF
9849 ;;
9850 esac
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863 if test $gl_cv_have_include_next = yes; then
9864 gl_cv_next_string_h='<'string.h'>'
9865 else
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
9867 $as_echo_n "checking absolute name of <string.h>... " >&6; }
9868 if test "${gl_cv_next_string_h+set}" = set; then :
9869 $as_echo_n "(cached) " >&6
9870 else
9871
9872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9873 /* end confdefs.h. */
9874 #include <string.h>
9875
9876 _ACEOF
9877 case "$host_os" in
9878 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9879 *) gl_absname_cpp="$ac_cpp" ;;
9880 esac
9881
9882 case "$host_os" in
9883 mingw*)
9884 gl_dirsep_regex='[/\\]'
9885 ;;
9886 *)
9887 gl_dirsep_regex='\/'
9888 ;;
9889 esac
9890 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9891
9892 gl_header_literal_regex=`echo 'string.h' \
9893 | sed -e "$gl_make_literal_regex_sed"`
9894 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9895 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9896 s|^/[^/]|//&|
9897 p
9898 q
9899 }'
9900 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9901 sed -n "$gl_absolute_header_sed"`'"'
9902
9903
9904 fi
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
9906 $as_echo "$gl_cv_next_string_h" >&6; }
9907 fi
9908 NEXT_STRING_H=$gl_cv_next_string_h
9909
9910 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9911 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9912 gl_next_as_first_directive='<'string.h'>'
9913 else
9914 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9915 gl_next_as_first_directive=$gl_cv_next_string_h
9916 fi
9917 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
9918
9919
9920
9921
9922
9923
9924 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
9925 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9927 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9928 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
9929 $as_echo_n "(cached) " >&6
9930 else
9931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9932 /* end confdefs.h. */
9933 #include <string.h>
9934
9935 int
9936 main ()
9937 {
9938 #undef $gl_func
9939 (void) $gl_func;
9940 ;
9941 return 0;
9942 }
9943 _ACEOF
9944 if ac_fn_c_try_compile "$LINENO"; then :
9945 eval "$as_gl_Symbol=yes"
9946 else
9947 eval "$as_gl_Symbol=no"
9948 fi
9949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9950 fi
9951 eval ac_res=\$$as_gl_Symbol
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9953 $as_echo "$ac_res" >&6; }
9954 eval as_val=\$$as_gl_Symbol
9955 if test "x$as_val" = x""yes; then :
9956 cat >>confdefs.h <<_ACEOF
9957 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9958 _ACEOF
9959
9960 eval ac_cv_have_decl_$gl_func=yes
9961 fi
9962 done
9963
9964
9965
9966
9967
9968 if test "$gl_cv_func_memchr_works" != yes; then
9969 REPLACE_STRSTR=1
9970 else
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
9972 $as_echo_n "checking whether strstr works... " >&6; }
9973 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
9974 $as_echo_n "(cached) " >&6
9975 else
9976 if test "$cross_compiling" = yes; then :
9977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9978 /* end confdefs.h. */
9979
9980 #ifdef __GNU_LIBRARY__
9981 #include <features.h>
9982 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
9983 || defined __UCLIBC__
9984 Lucky user
9985 #endif
9986 #elif defined __CYGWIN__
9987 #include <cygwin/version.h>
9988 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
9989 Lucky user
9990 #endif
9991 #else
9992 Lucky user
9993 #endif
9994
9995 _ACEOF
9996 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9997 $EGREP "Lucky user" >/dev/null 2>&1; then :
9998 gl_cv_func_strstr_works_always="guessing yes"
9999 else
10000 gl_cv_func_strstr_works_always="guessing no"
10001 fi
10002 rm -f conftest*
10003
10004
10005 else
10006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10007 /* end confdefs.h. */
10008
10009 #include <string.h> /* for strstr */
10010 #define P "_EF_BF_BD"
10011 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
10012 #define NEEDLE P P P P P
10013
10014 int
10015 main ()
10016 {
10017 return !!strstr (HAYSTACK, NEEDLE);
10018
10019 ;
10020 return 0;
10021 }
10022 _ACEOF
10023 if ac_fn_c_try_run "$LINENO"; then :
10024 gl_cv_func_strstr_works_always=yes
10025 else
10026 gl_cv_func_strstr_works_always=no
10027 fi
10028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10029 conftest.$ac_objext conftest.beam conftest.$ac_ext
10030 fi
10031
10032
10033 fi
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
10035 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
10036 case "$gl_cv_func_strstr_works_always" in
10037 *yes) ;;
10038 *)
10039 REPLACE_STRSTR=1
10040 ;;
10041 esac
10042 fi
10043
10044
10045 GNULIB_FCHMODAT=0;
10046 GNULIB_FSTAT=0;
10047 GNULIB_FSTATAT=0;
10048 GNULIB_FUTIMENS=0;
10049 GNULIB_LCHMOD=0;
10050 GNULIB_LSTAT=0;
10051 GNULIB_MKDIRAT=0;
10052 GNULIB_MKFIFO=0;
10053 GNULIB_MKFIFOAT=0;
10054 GNULIB_MKNOD=0;
10055 GNULIB_MKNODAT=0;
10056 GNULIB_STAT=0;
10057 GNULIB_UTIMENSAT=0;
10058 HAVE_FCHMODAT=1;
10059 HAVE_FSTATAT=1;
10060 HAVE_FUTIMENS=1;
10061 HAVE_LCHMOD=1;
10062 HAVE_LSTAT=1;
10063 HAVE_MKDIRAT=1;
10064 HAVE_MKFIFO=1;
10065 HAVE_MKFIFOAT=1;
10066 HAVE_MKNOD=1;
10067 HAVE_MKNODAT=1;
10068 HAVE_UTIMENSAT=1;
10069 REPLACE_FSTAT=0;
10070 REPLACE_FSTATAT=0;
10071 REPLACE_FUTIMENS=0;
10072 REPLACE_LSTAT=0;
10073 REPLACE_MKDIR=0;
10074 REPLACE_MKFIFO=0;
10075 REPLACE_MKNOD=0;
10076 REPLACE_STAT=0;
10077 REPLACE_UTIMENSAT=0;
10078
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
10080 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
10081 if test "${ac_cv_header_stat_broken+set}" = set; then :
10082 $as_echo_n "(cached) " >&6
10083 else
10084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10085 /* end confdefs.h. */
10086 #include <sys/types.h>
10087 #include <sys/stat.h>
10088
10089 #if defined S_ISBLK && defined S_IFDIR
10090 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10091 #endif
10092
10093 #if defined S_ISBLK && defined S_IFCHR
10094 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10095 #endif
10096
10097 #if defined S_ISLNK && defined S_IFREG
10098 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10099 #endif
10100
10101 #if defined S_ISSOCK && defined S_IFREG
10102 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
10103 #endif
10104
10105 _ACEOF
10106 if ac_fn_c_try_compile "$LINENO"; then :
10107 ac_cv_header_stat_broken=no
10108 else
10109 ac_cv_header_stat_broken=yes
10110 fi
10111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10112 fi
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
10114 $as_echo "$ac_cv_header_stat_broken" >&6; }
10115 if test $ac_cv_header_stat_broken = yes; then
10116
10117 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
10118
10119 fi
10120
10121
10122
10123 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
10124 if test "x$ac_cv_type_mode_t" = x""yes; then :
10125
10126 else
10127
10128 cat >>confdefs.h <<_ACEOF
10129 #define mode_t int
10130 _ACEOF
10131
10132 fi
10133
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
10135 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
10136 if test -z "$MKDIR_P"; then
10137 if test "${ac_cv_path_mkdir+set}" = set; then :
10138 $as_echo_n "(cached) " >&6
10139 else
10140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10141 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
10142 do
10143 IFS=$as_save_IFS
10144 test -z "$as_dir" && as_dir=.
10145 for ac_prog in mkdir gmkdir; do
10146 for ac_exec_ext in '' $ac_executable_extensions; do
10147 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
10148 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
10149 'mkdir (GNU coreutils) '* | \
10150 'mkdir (coreutils) '* | \
10151 'mkdir (fileutils) '4.1*)
10152 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
10153 break 3;;
10154 esac
10155 done
10156 done
10157 done
10158 IFS=$as_save_IFS
10159
10160 fi
10161
10162 if test "${ac_cv_path_mkdir+set}" = set; then
10163 MKDIR_P="$ac_cv_path_mkdir -p"
10164 else
10165 # As a last resort, use the slow shell script. Don't cache a
10166 # value for MKDIR_P within a source directory, because that will
10167 # break other packages using the cache if that directory is
10168 # removed, or if the value is a relative name.
10169 test -d ./--version && rmdir ./--version
10170 MKDIR_P="$ac_install_sh -d"
10171 fi
10172 fi
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
10174 $as_echo "$MKDIR_P" >&6; }
10175
10176
10177
10178 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
10179 if test "x$ac_cv_type_pid_t" = x""yes; then :
10180
10181 else
10182
10183 cat >>confdefs.h <<_ACEOF
10184 #define pid_t int
10185 _ACEOF
10186
10187 fi
10188
10189
10190
10191 WINDOWS_64_BIT_OFF_T=0
10192
10193
10194
10195
10196 GNULIB_MKTIME=0;
10197 GNULIB_NANOSLEEP=0;
10198 GNULIB_STRPTIME=0;
10199 GNULIB_TIMEGM=0;
10200 GNULIB_TIME_R=0;
10201 HAVE_DECL_LOCALTIME_R=1;
10202 HAVE_NANOSLEEP=1;
10203 HAVE_STRPTIME=1;
10204 HAVE_TIMEGM=1;
10205 REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
10206 REPLACE_MKTIME=GNULIB_PORTCHECK;
10207 REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
10208 REPLACE_TIMEGM=GNULIB_PORTCHECK;
10209
10210
10211
10212
10213
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
10215 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
10216 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then :
10217 $as_echo_n "(cached) " >&6
10218 else
10219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10220 /* end confdefs.h. */
10221 #include <time.h>
10222
10223 int
10224 main ()
10225 {
10226 static struct timespec x; x.tv_sec = x.tv_nsec;
10227 ;
10228 return 0;
10229 }
10230 _ACEOF
10231 if ac_fn_c_try_compile "$LINENO"; then :
10232 gl_cv_sys_struct_timespec_in_time_h=yes
10233 else
10234 gl_cv_sys_struct_timespec_in_time_h=no
10235 fi
10236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10237 fi
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
10239 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
10240
10241 TIME_H_DEFINES_STRUCT_TIMESPEC=0
10242 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
10243 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
10244 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
10245 TIME_H_DEFINES_STRUCT_TIMESPEC=1
10246 else
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
10248 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
10249 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then :
10250 $as_echo_n "(cached) " >&6
10251 else
10252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10253 /* end confdefs.h. */
10254 #include <sys/time.h>
10255
10256 int
10257 main ()
10258 {
10259 static struct timespec x; x.tv_sec = x.tv_nsec;
10260 ;
10261 return 0;
10262 }
10263 _ACEOF
10264 if ac_fn_c_try_compile "$LINENO"; then :
10265 gl_cv_sys_struct_timespec_in_sys_time_h=yes
10266 else
10267 gl_cv_sys_struct_timespec_in_sys_time_h=no
10268 fi
10269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10270 fi
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
10272 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
10273 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
10274 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
10275 else
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
10277 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
10278 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then :
10279 $as_echo_n "(cached) " >&6
10280 else
10281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10282 /* end confdefs.h. */
10283 #include <pthread.h>
10284
10285 int
10286 main ()
10287 {
10288 static struct timespec x; x.tv_sec = x.tv_nsec;
10289 ;
10290 return 0;
10291 }
10292 _ACEOF
10293 if ac_fn_c_try_compile "$LINENO"; then :
10294 gl_cv_sys_struct_timespec_in_pthread_h=yes
10295 else
10296 gl_cv_sys_struct_timespec_in_pthread_h=no
10297 fi
10298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10299 fi
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
10301 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
10302 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
10303 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
10304 fi
10305 fi
10306 fi
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322 if test $gl_cv_have_include_next = yes; then
10323 gl_cv_next_time_h='<'time.h'>'
10324 else
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
10326 $as_echo_n "checking absolute name of <time.h>... " >&6; }
10327 if test "${gl_cv_next_time_h+set}" = set; then :
10328 $as_echo_n "(cached) " >&6
10329 else
10330
10331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10332 /* end confdefs.h. */
10333 #include <time.h>
10334
10335 _ACEOF
10336 case "$host_os" in
10337 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10338 *) gl_absname_cpp="$ac_cpp" ;;
10339 esac
10340
10341 case "$host_os" in
10342 mingw*)
10343 gl_dirsep_regex='[/\\]'
10344 ;;
10345 *)
10346 gl_dirsep_regex='\/'
10347 ;;
10348 esac
10349 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10350
10351 gl_header_literal_regex=`echo 'time.h' \
10352 | sed -e "$gl_make_literal_regex_sed"`
10353 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10354 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10355 s|^/[^/]|//&|
10356 p
10357 q
10358 }'
10359 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10360 sed -n "$gl_absolute_header_sed"`'"'
10361
10362
10363 fi
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
10365 $as_echo "$gl_cv_next_time_h" >&6; }
10366 fi
10367 NEXT_TIME_H=$gl_cv_next_time_h
10368
10369 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10370 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10371 gl_next_as_first_directive='<'time.h'>'
10372 else
10373 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10374 gl_next_as_first_directive=$gl_cv_next_time_h
10375 fi
10376 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
10377
10378
10379
10380
10381
10382
10383
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
10385 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
10386 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
10387 $as_echo_n "(cached) " >&6
10388 else
10389 gl_cv_header_wchar_h_correct_inline=yes
10390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10391 /* end confdefs.h. */
10392
10393 #define wcstod renamed_wcstod
10394 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10395 <wchar.h>.
10396 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10397 included before <wchar.h>. */
10398 #include <stddef.h>
10399 #include <stdio.h>
10400 #include <time.h>
10401 #include <wchar.h>
10402 extern int zero (void);
10403 int main () { return zero(); }
10404
10405 _ACEOF
10406 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10407 (eval $ac_compile) 2>&5
10408 ac_status=$?
10409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10410 test $ac_status = 0; }; then
10411 mv conftest.$ac_objext conftest1.$ac_objext
10412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10413 /* end confdefs.h. */
10414
10415 #define wcstod renamed_wcstod
10416 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10417 <wchar.h>.
10418 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10419 included before <wchar.h>. */
10420 #include <stddef.h>
10421 #include <stdio.h>
10422 #include <time.h>
10423 #include <wchar.h>
10424 int zero (void) { return 0; }
10425
10426 _ACEOF
10427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10428 (eval $ac_compile) 2>&5
10429 ac_status=$?
10430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10431 test $ac_status = 0; }; then
10432 mv conftest.$ac_objext conftest2.$ac_objext
10433 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
10434 :
10435 else
10436 gl_cv_header_wchar_h_correct_inline=no
10437 fi
10438 fi
10439 fi
10440 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
10441
10442 fi
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
10444 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
10445 if test $gl_cv_header_wchar_h_correct_inline = no; then
10446 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
10447 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
10448 C99 mode. You have four options:
10449 - Add the flag -fgnu89-inline to CC and reconfigure, or
10450 - Fix your include files, using parts of
10451 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
10452 - Use a gcc version older than 4.3, or
10453 - Don't use the flags -std=c99 or -std=gnu99.
10454 Configuration aborted." "$LINENO" 5
10455 fi
10456
10457
10458
10459
10460
10461 if test $ac_cv_header_features_h = yes; then
10462 HAVE_FEATURES_H=1
10463 else
10464 HAVE_FEATURES_H=0
10465 fi
10466
10467
10468
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
10470 $as_echo_n "checking for wint_t... " >&6; }
10471 if test "${gt_cv_c_wint_t+set}" = set; then :
10472 $as_echo_n "(cached) " >&6
10473 else
10474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10475 /* end confdefs.h. */
10476
10477 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10478 <wchar.h>.
10479 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
10480 before <wchar.h>. */
10481 #include <stddef.h>
10482 #include <stdio.h>
10483 #include <time.h>
10484 #include <wchar.h>
10485 wint_t foo = (wchar_t)'\0';
10486 int
10487 main ()
10488 {
10489
10490 ;
10491 return 0;
10492 }
10493 _ACEOF
10494 if ac_fn_c_try_compile "$LINENO"; then :
10495 gt_cv_c_wint_t=yes
10496 else
10497 gt_cv_c_wint_t=no
10498 fi
10499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10500 fi
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
10502 $as_echo "$gt_cv_c_wint_t" >&6; }
10503 if test $gt_cv_c_wint_t = yes; then
10504
10505 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
10506
10507 fi
10508
10509
10510 GNULIB_ISWBLANK=0;
10511 GNULIB_WCTYPE=0;
10512 GNULIB_ISWCTYPE=0;
10513 GNULIB_WCTRANS=0;
10514 GNULIB_TOWCTRANS=0;
10515 HAVE_ISWBLANK=1;
10516 HAVE_WCTYPE_T=1;
10517 HAVE_WCTRANS_T=1;
10518 REPLACE_ISWBLANK=0;
10519
10520
10521
10522
10523 if false; then
10524 GL_COND_LIBTOOL_TRUE=
10525 GL_COND_LIBTOOL_FALSE='#'
10526 else
10527 GL_COND_LIBTOOL_TRUE='#'
10528 GL_COND_LIBTOOL_FALSE=
10529 fi
10530
10531 gl_cond_libtool=false
10532 gl_libdeps=
10533 gl_ltlibdeps=
10534 gl_m4_base='import/m4'
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544 gl_source_base='import'
10545
10546
10547 if test $ac_cv_func_alloca_works = no; then
10548 :
10549 fi
10550
10551 # Define an additional variable used in the Makefile substitution.
10552 if test $ac_cv_working_alloca_h = yes; then
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
10554 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
10555 if test "${gl_cv_rpl_alloca+set}" = set; then :
10556 $as_echo_n "(cached) " >&6
10557 else
10558
10559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10560 /* end confdefs.h. */
10561
10562 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
10563 Need own alloca
10564 #endif
10565
10566 _ACEOF
10567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10568 $EGREP "Need own alloca" >/dev/null 2>&1; then :
10569 gl_cv_rpl_alloca=yes
10570 else
10571 gl_cv_rpl_alloca=no
10572 fi
10573 rm -f conftest*
10574
10575
10576 fi
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
10578 $as_echo "$gl_cv_rpl_alloca" >&6; }
10579 if test $gl_cv_rpl_alloca = yes; then
10580
10581 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
10582
10583 ALLOCA_H=alloca.h
10584 else
10585 ALLOCA_H=
10586 fi
10587 else
10588 ALLOCA_H=alloca.h
10589 fi
10590
10591 if test -n "$ALLOCA_H"; then
10592 GL_GENERATE_ALLOCA_H_TRUE=
10593 GL_GENERATE_ALLOCA_H_FALSE='#'
10594 else
10595 GL_GENERATE_ALLOCA_H_TRUE='#'
10596 GL_GENERATE_ALLOCA_H_FALSE=
10597 fi
10598
10599
10600
10601 if test "x$datarootdir" = x; then
10602 datarootdir='${datadir}'
10603
10604 fi
10605 if test "x$docdir" = x; then
10606 docdir='${datarootdir}/doc/${PACKAGE}'
10607
10608 fi
10609 if test "x$htmldir" = x; then
10610 htmldir='${docdir}'
10611
10612 fi
10613 if test "x$dvidir" = x; then
10614 dvidir='${docdir}'
10615
10616 fi
10617 if test "x$pdfdir" = x; then
10618 pdfdir='${docdir}'
10619
10620 fi
10621 if test "x$psdir" = x; then
10622 psdir='${docdir}'
10623
10624 fi
10625 if test "x$lispdir" = x; then
10626 lispdir='${datarootdir}/emacs/site-lisp'
10627
10628 fi
10629 if test "x$localedir" = x; then
10630 localedir='${datarootdir}/locale'
10631
10632 fi
10633
10634 pkglibexecdir='${libexecdir}/${PACKAGE}'
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649 if test $gl_cv_have_include_next = yes; then
10650 gl_cv_next_dirent_h='<'dirent.h'>'
10651 else
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
10653 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
10654 if test "${gl_cv_next_dirent_h+set}" = set; then :
10655 $as_echo_n "(cached) " >&6
10656 else
10657
10658 if test $ac_cv_header_dirent_h = yes; then
10659
10660
10661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10662 /* end confdefs.h. */
10663 #include <dirent.h>
10664
10665 _ACEOF
10666 case "$host_os" in
10667 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10668 *) gl_absname_cpp="$ac_cpp" ;;
10669 esac
10670
10671 case "$host_os" in
10672 mingw*)
10673 gl_dirsep_regex='[/\\]'
10674 ;;
10675 *)
10676 gl_dirsep_regex='\/'
10677 ;;
10678 esac
10679 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10680
10681 gl_header_literal_regex=`echo 'dirent.h' \
10682 | sed -e "$gl_make_literal_regex_sed"`
10683 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10684 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10685 s|^/[^/]|//&|
10686 p
10687 q
10688 }'
10689 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10690 sed -n "$gl_absolute_header_sed"`'"'
10691 else
10692 gl_cv_next_dirent_h='<'dirent.h'>'
10693 fi
10694
10695
10696 fi
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
10698 $as_echo "$gl_cv_next_dirent_h" >&6; }
10699 fi
10700 NEXT_DIRENT_H=$gl_cv_next_dirent_h
10701
10702 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10703 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10704 gl_next_as_first_directive='<'dirent.h'>'
10705 else
10706 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10707 gl_next_as_first_directive=$gl_cv_next_dirent_h
10708 fi
10709 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
10710
10711
10712
10713
10714 if test $ac_cv_header_dirent_h = yes; then
10715 HAVE_DIRENT_H=1
10716 else
10717 HAVE_DIRENT_H=0
10718 fi
10719
10720
10721
10722 for gl_func in alphasort closedir dirfd fdopendir opendir readdir rewinddir scandir; do
10723 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10725 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10726 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
10727 $as_echo_n "(cached) " >&6
10728 else
10729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730 /* end confdefs.h. */
10731 #include <dirent.h>
10732
10733 int
10734 main ()
10735 {
10736 #undef $gl_func
10737 (void) $gl_func;
10738 ;
10739 return 0;
10740 }
10741 _ACEOF
10742 if ac_fn_c_try_compile "$LINENO"; then :
10743 eval "$as_gl_Symbol=yes"
10744 else
10745 eval "$as_gl_Symbol=no"
10746 fi
10747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10748 fi
10749 eval ac_res=\$$as_gl_Symbol
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10751 $as_echo "$ac_res" >&6; }
10752 eval as_val=\$$as_gl_Symbol
10753 if test "x$as_val" = x""yes; then :
10754 cat >>confdefs.h <<_ACEOF
10755 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10756 _ACEOF
10757
10758 eval ac_cv_have_decl_$gl_func=yes
10759 fi
10760 done
10761
10762
10763
10764
10765
10766
10767
10768 FLOAT_H=
10769 REPLACE_FLOAT_LDBL=0
10770 case "$host_os" in
10771 aix* | beos* | openbsd* | mirbsd* | irix*)
10772 FLOAT_H=float.h
10773 ;;
10774 freebsd*)
10775 case "$host_cpu" in
10776 i[34567]86 )
10777 FLOAT_H=float.h
10778 ;;
10779 x86_64 )
10780 # On x86_64 systems, the C compiler may still be generating
10781 # 32-bit code.
10782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10783 /* end confdefs.h. */
10784 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
10785 yes
10786 #endif
10787 _ACEOF
10788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10789 $EGREP "yes" >/dev/null 2>&1; then :
10790
10791 else
10792 FLOAT_H=float.h
10793 fi
10794 rm -f conftest*
10795
10796 ;;
10797 esac
10798 ;;
10799 linux*)
10800 case "$host_cpu" in
10801 powerpc*)
10802 FLOAT_H=float.h
10803 ;;
10804 esac
10805 ;;
10806 esac
10807 case "$host_os" in
10808 aix* | freebsd* | linux*)
10809 if test -n "$FLOAT_H"; then
10810 REPLACE_FLOAT_LDBL=1
10811 fi
10812 ;;
10813 esac
10814
10815 REPLACE_ITOLD=0
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
10817 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
10818 if test "${gl_cv_func_itold_works+set}" = set; then :
10819 $as_echo_n "(cached) " >&6
10820 else
10821
10822 if test "$cross_compiling" = yes; then :
10823 case "$host" in
10824 sparc*-*-linux*)
10825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10826 /* end confdefs.h. */
10827 #if defined __LP64__ || defined __arch64__
10828 yes
10829 #endif
10830 _ACEOF
10831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10832 $EGREP "yes" >/dev/null 2>&1; then :
10833 gl_cv_func_itold_works="guessing no"
10834 else
10835 gl_cv_func_itold_works="guessing yes"
10836 fi
10837 rm -f conftest*
10838
10839 ;;
10840 *) gl_cv_func_itold_works="guessing yes" ;;
10841 esac
10842
10843 else
10844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10845 /* end confdefs.h. */
10846
10847 int i = -1;
10848 volatile long double ld;
10849 int main ()
10850 {
10851 ld += i * 1.0L;
10852 if (ld > 0)
10853 return 1;
10854 return 0;
10855 }
10856 _ACEOF
10857 if ac_fn_c_try_run "$LINENO"; then :
10858 gl_cv_func_itold_works=yes
10859 else
10860 gl_cv_func_itold_works=no
10861 fi
10862 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10863 conftest.$ac_objext conftest.beam conftest.$ac_ext
10864 fi
10865
10866
10867 fi
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
10869 $as_echo "$gl_cv_func_itold_works" >&6; }
10870 case "$gl_cv_func_itold_works" in
10871 *no)
10872 REPLACE_ITOLD=1
10873 FLOAT_H=float.h
10874 ;;
10875 esac
10876
10877 if test -n "$FLOAT_H"; then
10878
10879
10880
10881
10882
10883
10884
10885
10886 if test $gl_cv_have_include_next = yes; then
10887 gl_cv_next_float_h='<'float.h'>'
10888 else
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
10890 $as_echo_n "checking absolute name of <float.h>... " >&6; }
10891 if test "${gl_cv_next_float_h+set}" = set; then :
10892 $as_echo_n "(cached) " >&6
10893 else
10894
10895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h. */
10897 #include <float.h>
10898
10899 _ACEOF
10900 case "$host_os" in
10901 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10902 *) gl_absname_cpp="$ac_cpp" ;;
10903 esac
10904
10905 case "$host_os" in
10906 mingw*)
10907 gl_dirsep_regex='[/\\]'
10908 ;;
10909 *)
10910 gl_dirsep_regex='\/'
10911 ;;
10912 esac
10913 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10914
10915 gl_header_literal_regex=`echo 'float.h' \
10916 | sed -e "$gl_make_literal_regex_sed"`
10917 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10918 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10919 s|^/[^/]|//&|
10920 p
10921 q
10922 }'
10923 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10924 sed -n "$gl_absolute_header_sed"`'"'
10925
10926
10927 fi
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
10929 $as_echo "$gl_cv_next_float_h" >&6; }
10930 fi
10931 NEXT_FLOAT_H=$gl_cv_next_float_h
10932
10933 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10934 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10935 gl_next_as_first_directive='<'float.h'>'
10936 else
10937 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10938 gl_next_as_first_directive=$gl_cv_next_float_h
10939 fi
10940 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
10941
10942
10943
10944
10945 fi
10946
10947 if test -n "$FLOAT_H"; then
10948 GL_GENERATE_FLOAT_H_TRUE=
10949 GL_GENERATE_FLOAT_H_FALSE='#'
10950 else
10951 GL_GENERATE_FLOAT_H_TRUE='#'
10952 GL_GENERATE_FLOAT_H_FALSE=
10953 fi
10954
10955
10956
10957 if test $REPLACE_FLOAT_LDBL = 1; then
10958
10959
10960
10961
10962
10963
10964
10965
10966 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
10967
10968 fi
10969 if test $REPLACE_ITOLD = 1; then
10970
10971
10972
10973
10974
10975
10976
10977
10978 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
10979
10980 fi
10981
10982
10983
10984
10985
10986 FNMATCH_H=
10987 gl_fnmatch_required_lowercase=`
10988 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
10989 `
10990 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
10992 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
10993 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
10994 $as_echo_n "(cached) " >&6
10995 else
10996 if test $gl_fnmatch_required = GNU; then
10997 gl_fnmatch_gnu_start=
10998 gl_fnmatch_gnu_end=
10999 else
11000 gl_fnmatch_gnu_start='#if 0'
11001 gl_fnmatch_gnu_end='#endif'
11002 fi
11003 if test "$cross_compiling" = yes; then :
11004 eval "$gl_fnmatch_cache_var=\"guessing no\""
11005 else
11006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11007 /* end confdefs.h. */
11008 #include <fnmatch.h>
11009 static int
11010 y (char const *pattern, char const *string, int flags)
11011 {
11012 return fnmatch (pattern, string, flags) == 0;
11013 }
11014 static int
11015 n (char const *pattern, char const *string, int flags)
11016 {
11017 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
11018 }
11019
11020 int
11021 main ()
11022 {
11023 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
11024 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
11025 static char const A_1[] = { 'A' - 1, 0 };
11026 static char const A01[] = { 'A' + 1, 0 };
11027 static char const a_1[] = { 'a' - 1, 0 };
11028 static char const a01[] = { 'a' + 1, 0 };
11029 static char const bs_1[] = { '\\\\' - 1, 0 };
11030 static char const bs01[] = { '\\\\' + 1, 0 };
11031 int result = 0;
11032 if (!n ("a*", "", 0))
11033 return 1;
11034 if (!y ("a*", "abc", 0))
11035 return 1;
11036 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
11037 return 1;
11038 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
11039 return 2;
11040 if (!y ("a\\\\bc", "abc", 0))
11041 return 3;
11042 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
11043 return 3;
11044 if (!y ("*x", ".x", 0))
11045 return 4;
11046 if (!n ("*x", ".x", FNM_PERIOD))
11047 return 4;
11048 if (!y (Apat, "\\\\", 0))
11049 return 5;
11050 if (!y (Apat, "A", 0))
11051 return 5;
11052 if (!y (apat, "\\\\", 0))
11053 return 5;
11054 if (!y (apat, "a", 0))
11055 return 5;
11056 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
11057 return 5;
11058 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
11059 return 5;
11060 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
11061 return 5;
11062 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
11063 return 5;
11064 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
11065 return 5;
11066 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
11067 return 5;
11068 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
11069 return 5;
11070 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
11071 return 5;
11072 $gl_fnmatch_gnu_start
11073 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
11074 result |= 8;
11075 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
11076 result |= 16;
11077 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
11078 result |= 32;
11079 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
11080 result |= 64;
11081 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
11082 result |= 64;
11083 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
11084 result |= 64;
11085 $gl_fnmatch_gnu_end
11086 return result;
11087
11088 ;
11089 return 0;
11090 }
11091 _ACEOF
11092 if ac_fn_c_try_run "$LINENO"; then :
11093 eval "$gl_fnmatch_cache_var=yes"
11094 else
11095 eval "$gl_fnmatch_cache_var=no"
11096 fi
11097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11098 conftest.$ac_objext conftest.beam conftest.$ac_ext
11099 fi
11100
11101
11102 fi
11103 eval ac_res=\$$gl_fnmatch_cache_var
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11105 $as_echo "$ac_res" >&6; }
11106 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
11107 if test "$gl_fnmatch_result" = yes; then
11108 rm -f "$gl_source_base/fnmatch.h"
11109 else
11110 FNMATCH_H=fnmatch.h
11111 fi
11112
11113 if test -n "$FNMATCH_H"; then
11114 GL_GENERATE_FNMATCH_H_TRUE=
11115 GL_GENERATE_FNMATCH_H_FALSE='#'
11116 else
11117 GL_GENERATE_FNMATCH_H_TRUE='#'
11118 GL_GENERATE_FNMATCH_H_FALSE=
11119 fi
11120
11121
11122 if test -n "$FNMATCH_H"; then
11123
11124
11125
11126
11127
11128
11129
11130
11131 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
11132
11133
11134
11135 cat >>confdefs.h <<_ACEOF
11136 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
11137 _ACEOF
11138
11139
11140 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
11141 "
11142 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
11143 ac_have_decl=1
11144 else
11145 ac_have_decl=0
11146 fi
11147
11148 cat >>confdefs.h <<_ACEOF
11149 #define HAVE_DECL_ISBLANK $ac_have_decl
11150 _ACEOF
11151
11152
11153
11154
11155 fi
11156
11157
11158
11159
11160
11161 if test -n "$FNMATCH_H"; then
11162
11163
11164
11165
11166
11167
11168
11169
11170 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
11171
11172
11173
11174 cat >>confdefs.h <<_ACEOF
11175 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
11176 _ACEOF
11177
11178
11179 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
11180 "
11181 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
11182 ac_have_decl=1
11183 else
11184 ac_have_decl=0
11185 fi
11186
11187 cat >>confdefs.h <<_ACEOF
11188 #define HAVE_DECL_ISBLANK $ac_have_decl
11189 _ACEOF
11190
11191
11192
11193
11194 fi
11195
11196
11197
11198 FREXP_LIBM=
11199 if test $gl_cv_func_frexp_no_libm = no; then
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
11201 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
11202 if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
11203 $as_echo_n "(cached) " >&6
11204 else
11205
11206 save_LIBS="$LIBS"
11207 LIBS="$LIBS -lm"
11208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11209 /* end confdefs.h. */
11210 #include <math.h>
11211 double x;
11212 int
11213 main ()
11214 {
11215 int e; return frexp (x, &e) > 0;
11216 ;
11217 return 0;
11218 }
11219 _ACEOF
11220 if ac_fn_c_try_link "$LINENO"; then :
11221 gl_cv_func_frexp_in_libm=yes
11222 else
11223 gl_cv_func_frexp_in_libm=no
11224 fi
11225 rm -f core conftest.err conftest.$ac_objext \
11226 conftest$ac_exeext conftest.$ac_ext
11227 LIBS="$save_LIBS"
11228
11229 fi
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
11231 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
11232 if test $gl_cv_func_frexp_in_libm = yes; then
11233 FREXP_LIBM=-lm
11234 fi
11235 fi
11236 if test $gl_cv_func_frexp_no_libm = yes \
11237 || test $gl_cv_func_frexp_in_libm = yes; then
11238 save_LIBS="$LIBS"
11239 LIBS="$LIBS $FREXP_LIBM"
11240
11241
11242
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
11244 $as_echo_n "checking whether frexp works... " >&6; }
11245 if test "${gl_cv_func_frexp_works+set}" = set; then :
11246 $as_echo_n "(cached) " >&6
11247 else
11248
11249 if test "$cross_compiling" = yes; then :
11250 case "$host_os" in
11251 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
11252 *) gl_cv_func_frexp_works="guessing yes";;
11253 esac
11254
11255 else
11256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11257 /* end confdefs.h. */
11258
11259 #include <float.h>
11260 #include <math.h>
11261 #include <string.h>
11262 #if HAVE_ALARM
11263 # include <unistd.h>
11264 #endif
11265 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
11266 ICC 10.0 has a bug when optimizing the expression -zero.
11267 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
11268 to PowerPC on Mac OS X 10.5. */
11269 #if defined __hpux || defined __sgi || defined __ICC
11270 static double
11271 compute_minus_zero (void)
11272 {
11273 return -DBL_MIN * DBL_MIN;
11274 }
11275 # define minus_zero compute_minus_zero ()
11276 #else
11277 double minus_zero = -0.0;
11278 #endif
11279 int main()
11280 {
11281 int result = 0;
11282 int i;
11283 volatile double x;
11284 double zero = 0.0;
11285 #if HAVE_ALARM
11286 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
11287 number. Let the test fail in this case. */
11288 alarm (5);
11289 #endif
11290 /* Test on denormalized numbers. */
11291 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
11292 ;
11293 if (x > 0.0)
11294 {
11295 int exp;
11296 double y = frexp (x, &exp);
11297 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
11298 On NetBSD: y = 0.75. Correct: y = 0.5. */
11299 if (y != 0.5)
11300 result |= 1;
11301 }
11302 /* Test on infinite numbers. */
11303 x = 1.0 / zero;
11304 {
11305 int exp;
11306 double y = frexp (x, &exp);
11307 if (y != x)
11308 result |= 2;
11309 }
11310 /* Test on negative zero. */
11311 x = minus_zero;
11312 {
11313 int exp;
11314 double y = frexp (x, &exp);
11315 if (memcmp (&y, &x, sizeof x))
11316 result |= 4;
11317 }
11318 return result;
11319 }
11320 _ACEOF
11321 if ac_fn_c_try_run "$LINENO"; then :
11322 gl_cv_func_frexp_works=yes
11323 else
11324 gl_cv_func_frexp_works=no
11325 fi
11326 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11327 conftest.$ac_objext conftest.beam conftest.$ac_ext
11328 fi
11329
11330
11331 fi
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
11333 $as_echo "$gl_cv_func_frexp_works" >&6; }
11334
11335 LIBS="$save_LIBS"
11336 case "$gl_cv_func_frexp_works" in
11337 *yes) gl_func_frexp=yes ;;
11338 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
11339 esac
11340 else
11341 gl_func_frexp=no
11342 fi
11343 if test $gl_func_frexp = yes; then
11344
11345 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
11346
11347 fi
11348
11349
11350 if test $gl_func_frexp != yes; then
11351
11352
11353
11354
11355
11356
11357
11358
11359 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
11360
11361 fi
11362
11363
11364
11365
11366
11367 GNULIB_FREXP=1
11368
11369
11370
11371
11372
11373 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
11384 "
11385 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
11386
11387 else
11388 HAVE_DECL_FREXPL=0
11389 fi
11390
11391
11392 FREXPL_LIBM=
11393 if test $HAVE_DECL_FREXPL = 1; then
11394
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
11396 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
11397 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
11398 $as_echo_n "(cached) " >&6
11399 else
11400
11401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11402 /* end confdefs.h. */
11403 #include <math.h>
11404 long double x;
11405 int
11406 main ()
11407 {
11408 int e; return frexpl (x, &e) > 0;
11409 ;
11410 return 0;
11411 }
11412 _ACEOF
11413 if ac_fn_c_try_link "$LINENO"; then :
11414 gl_cv_func_frexpl_no_libm=yes
11415 else
11416 gl_cv_func_frexpl_no_libm=no
11417 fi
11418 rm -f core conftest.err conftest.$ac_objext \
11419 conftest$ac_exeext conftest.$ac_ext
11420
11421 fi
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
11423 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
11424
11425 if test $gl_cv_func_frexpl_no_libm = no; then
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
11427 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
11428 if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
11429 $as_echo_n "(cached) " >&6
11430 else
11431
11432 save_LIBS="$LIBS"
11433 LIBS="$LIBS -lm"
11434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11435 /* end confdefs.h. */
11436 #include <math.h>
11437 long double x;
11438 int
11439 main ()
11440 {
11441 int e; return frexpl (x, &e) > 0;
11442 ;
11443 return 0;
11444 }
11445 _ACEOF
11446 if ac_fn_c_try_link "$LINENO"; then :
11447 gl_cv_func_frexpl_in_libm=yes
11448 else
11449 gl_cv_func_frexpl_in_libm=no
11450 fi
11451 rm -f core conftest.err conftest.$ac_objext \
11452 conftest$ac_exeext conftest.$ac_ext
11453 LIBS="$save_LIBS"
11454
11455 fi
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
11457 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
11458 if test $gl_cv_func_frexpl_in_libm = yes; then
11459 FREXPL_LIBM=-lm
11460 fi
11461 fi
11462 if test $gl_cv_func_frexpl_no_libm = yes \
11463 || test $gl_cv_func_frexpl_in_libm = yes; then
11464 save_LIBS="$LIBS"
11465 LIBS="$LIBS $FREXPL_LIBM"
11466
11467
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
11469 $as_echo_n "checking whether frexpl works... " >&6; }
11470 if test "${gl_cv_func_frexpl_works+set}" = set; then :
11471 $as_echo_n "(cached) " >&6
11472 else
11473
11474 if test "$cross_compiling" = yes; then :
11475
11476 case "$host_os" in
11477 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
11478 gl_cv_func_frexpl_works="guessing no";;
11479 *) gl_cv_func_frexpl_works="guessing yes";;
11480 esac
11481
11482 else
11483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11484 /* end confdefs.h. */
11485
11486 #include <float.h>
11487 #include <math.h>
11488 /* Override the values of <float.h>, like done in float.in.h. */
11489 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
11490 # undef LDBL_MIN_EXP
11491 # define LDBL_MIN_EXP (-16381)
11492 #endif
11493 #if defined __i386__ && defined __FreeBSD__
11494 # undef LDBL_MIN_EXP
11495 # define LDBL_MIN_EXP (-16381)
11496 #endif
11497 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
11498 # undef LDBL_MIN_EXP
11499 # define LDBL_MIN_EXP DBL_MIN_EXP
11500 #endif
11501 #if defined __sgi && (LDBL_MANT_DIG >= 106)
11502 # if defined __GNUC__
11503 # undef LDBL_MIN_EXP
11504 # define LDBL_MIN_EXP DBL_MIN_EXP
11505 # endif
11506 #endif
11507 extern
11508 #ifdef __cplusplus
11509 "C"
11510 #endif
11511 long double frexpl (long double, int *);
11512 int main()
11513 {
11514 int result = 0;
11515 volatile long double x;
11516 /* Test on finite numbers that fails on AIX 5.1. */
11517 x = 16.0L;
11518 {
11519 int exp = -9999;
11520 frexpl (x, &exp);
11521 if (exp != 5)
11522 result |= 1;
11523 }
11524 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
11525 function returns an invalid (incorrectly normalized) value: it returns
11526 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
11527 but the correct result is
11528 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
11529 x = 1.01L;
11530 {
11531 int exp = -9999;
11532 long double y = frexpl (x, &exp);
11533 if (!(exp == 1 && y == 0.505L))
11534 result |= 2;
11535 }
11536 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
11537 LDBL_MAX_EXP = 16384.
11538 In the loop end test, we test x against Infinity, rather than comparing
11539 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
11540 {
11541 int i;
11542 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
11543 {
11544 int exp = -9999;
11545 frexpl (x, &exp);
11546 if (exp != i)
11547 {
11548 result |= 4;
11549 break;
11550 }
11551 }
11552 }
11553 /* Test on denormalized numbers. */
11554 {
11555 int i;
11556 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
11557 ;
11558 if (x > 0.0L)
11559 {
11560 int exp;
11561 long double y = frexpl (x, &exp);
11562 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
11563 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
11564 if (exp != LDBL_MIN_EXP - 1)
11565 result |= 8;
11566 }
11567 }
11568 /* Test on infinite numbers. */
11569 x = 1.0L / 0.0L;
11570 {
11571 int exp;
11572 long double y = frexpl (x, &exp);
11573 if (y != x)
11574 result |= 16;
11575 }
11576 return result;
11577 }
11578 _ACEOF
11579 if ac_fn_c_try_run "$LINENO"; then :
11580 gl_cv_func_frexpl_works=yes
11581 else
11582 gl_cv_func_frexpl_works=no
11583 fi
11584 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11585 conftest.$ac_objext conftest.beam conftest.$ac_ext
11586 fi
11587
11588
11589 fi
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
11591 $as_echo "$gl_cv_func_frexpl_works" >&6; }
11592
11593 LIBS="$save_LIBS"
11594 case "$gl_cv_func_frexpl_works" in
11595 *yes) gl_func_frexpl=yes ;;
11596 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
11597 esac
11598 else
11599 gl_func_frexpl=no
11600 fi
11601 if test $gl_func_frexpl = yes; then
11602
11603 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
11604
11605 fi
11606 fi
11607 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
11608 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
11609
11610 FREXPL_LIBM="$FREXP_LIBM"
11611 else
11612 FREXPL_LIBM=
11613 fi
11614 fi
11615
11616
11617 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
11618
11619
11620
11621
11622
11623
11624
11625
11626 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
11627
11628 fi
11629
11630
11631
11632
11633
11634 GNULIB_FREXPL=1
11635
11636
11637
11638
11639
11640 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
11641
11642
11643
11644
11645
11646
11647
11648
11649 PRIPTR_PREFIX=
11650 if test -n "$STDINT_H"; then
11651 PRIPTR_PREFIX='"l"'
11652 else
11653 for glpfx in '' l ll I64; do
11654 case $glpfx in
11655 '') gltype1='int';;
11656 l) gltype1='long int';;
11657 ll) gltype1='long long int';;
11658 I64) gltype1='__int64';;
11659 esac
11660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11661 /* end confdefs.h. */
11662 #include <stdint.h>
11663 extern intptr_t foo;
11664 extern $gltype1 foo;
11665 int
11666 main ()
11667 {
11668
11669 ;
11670 return 0;
11671 }
11672 _ACEOF
11673 if ac_fn_c_try_compile "$LINENO"; then :
11674 PRIPTR_PREFIX='"'$glpfx'"'
11675 fi
11676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11677 test -n "$PRIPTR_PREFIX" && break
11678 done
11679 fi
11680
11681
11682
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
11684 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
11685 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
11686 $as_echo_n "(cached) " >&6
11687 else
11688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11689 /* end confdefs.h. */
11690 /* Work also in C++ mode. */
11691 #define __STDC_LIMIT_MACROS 1
11692
11693 /* Work if build is not clean. */
11694 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11695
11696 #include <limits.h>
11697 #if HAVE_STDINT_H
11698 #include <stdint.h>
11699 #endif
11700
11701 #if defined INT32_MAX && defined INTMAX_MAX
11702 #define CONDITION (INT32_MAX < INTMAX_MAX)
11703 #elif HAVE_LONG_LONG_INT
11704 #define CONDITION (sizeof (int) < sizeof (long long int))
11705 #else
11706 #define CONDITION 0
11707 #endif
11708 int test[CONDITION ? 1 : -1];
11709 int
11710 main ()
11711 {
11712
11713 ;
11714 return 0;
11715 }
11716 _ACEOF
11717 if ac_fn_c_try_compile "$LINENO"; then :
11718 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
11719 else
11720 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
11721 fi
11722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11723 fi
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
11725 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
11726 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
11727 INT32_MAX_LT_INTMAX_MAX=1;
11728 else
11729 INT32_MAX_LT_INTMAX_MAX=0;
11730 fi
11731
11732
11733 if test $APPLE_UNIVERSAL_BUILD = 0; then
11734
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
11736 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
11737 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
11738 $as_echo_n "(cached) " >&6
11739 else
11740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11741 /* end confdefs.h. */
11742 /* Work also in C++ mode. */
11743 #define __STDC_LIMIT_MACROS 1
11744
11745 /* Work if build is not clean. */
11746 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11747
11748 #include <limits.h>
11749 #if HAVE_STDINT_H
11750 #include <stdint.h>
11751 #endif
11752
11753 #if defined INT64_MAX
11754 #define CONDITION (INT64_MAX == LONG_MAX)
11755 #elif HAVE_LONG_LONG_INT
11756 #define CONDITION (sizeof (long long int) == sizeof (long int))
11757 #else
11758 #define CONDITION 0
11759 #endif
11760 int test[CONDITION ? 1 : -1];
11761 int
11762 main ()
11763 {
11764
11765 ;
11766 return 0;
11767 }
11768 _ACEOF
11769 if ac_fn_c_try_compile "$LINENO"; then :
11770 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
11771 else
11772 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
11773 fi
11774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11775 fi
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
11777 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
11778 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
11779 INT64_MAX_EQ_LONG_MAX=1;
11780 else
11781 INT64_MAX_EQ_LONG_MAX=0;
11782 fi
11783
11784
11785 else
11786 INT64_MAX_EQ_LONG_MAX=-1
11787 fi
11788
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
11790 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
11791 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
11792 $as_echo_n "(cached) " >&6
11793 else
11794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11795 /* end confdefs.h. */
11796 /* Work also in C++ mode. */
11797 #define __STDC_LIMIT_MACROS 1
11798
11799 /* Work if build is not clean. */
11800 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11801
11802 #include <limits.h>
11803 #if HAVE_STDINT_H
11804 #include <stdint.h>
11805 #endif
11806
11807 #if defined UINT32_MAX && defined UINTMAX_MAX
11808 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
11809 #elif HAVE_LONG_LONG_INT
11810 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
11811 #else
11812 #define CONDITION 0
11813 #endif
11814 int test[CONDITION ? 1 : -1];
11815 int
11816 main ()
11817 {
11818
11819 ;
11820 return 0;
11821 }
11822 _ACEOF
11823 if ac_fn_c_try_compile "$LINENO"; then :
11824 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
11825 else
11826 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
11827 fi
11828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11829 fi
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
11831 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
11832 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
11833 UINT32_MAX_LT_UINTMAX_MAX=1;
11834 else
11835 UINT32_MAX_LT_UINTMAX_MAX=0;
11836 fi
11837
11838
11839 if test $APPLE_UNIVERSAL_BUILD = 0; then
11840
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
11842 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
11843 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
11844 $as_echo_n "(cached) " >&6
11845 else
11846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11847 /* end confdefs.h. */
11848 /* Work also in C++ mode. */
11849 #define __STDC_LIMIT_MACROS 1
11850
11851 /* Work if build is not clean. */
11852 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
11853
11854 #include <limits.h>
11855 #if HAVE_STDINT_H
11856 #include <stdint.h>
11857 #endif
11858
11859 #if defined UINT64_MAX
11860 #define CONDITION (UINT64_MAX == ULONG_MAX)
11861 #elif HAVE_LONG_LONG_INT
11862 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
11863 #else
11864 #define CONDITION 0
11865 #endif
11866 int test[CONDITION ? 1 : -1];
11867 int
11868 main ()
11869 {
11870
11871 ;
11872 return 0;
11873 }
11874 _ACEOF
11875 if ac_fn_c_try_compile "$LINENO"; then :
11876 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
11877 else
11878 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
11879 fi
11880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11881 fi
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
11883 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
11884 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
11885 UINT64_MAX_EQ_ULONG_MAX=1;
11886 else
11887 UINT64_MAX_EQ_ULONG_MAX=0;
11888 fi
11889
11890
11891 else
11892 UINT64_MAX_EQ_ULONG_MAX=-1
11893 fi
11894
11895
11896
11897
11898
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
11900 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
11901 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
11902 $as_echo_n "(cached) " >&6
11903 else
11904
11905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11906 /* end confdefs.h. */
11907 #include <math.h>
11908 #if __GNUC__ >= 4
11909 # undef isnand
11910 # define isnand(x) __builtin_isnan ((double)(x))
11911 #else
11912 # undef isnand
11913 # define isnand(x) isnan ((double)(x))
11914 #endif
11915 double x;
11916 int
11917 main ()
11918 {
11919 return isnand (x);
11920 ;
11921 return 0;
11922 }
11923 _ACEOF
11924 if ac_fn_c_try_link "$LINENO"; then :
11925 gl_cv_func_isnand_no_libm=yes
11926 else
11927 gl_cv_func_isnand_no_libm=no
11928 fi
11929 rm -f core conftest.err conftest.$ac_objext \
11930 conftest$ac_exeext conftest.$ac_ext
11931
11932 fi
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
11934 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
11935
11936 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
11937 if test $gl_cv_func_isnand_no_libm = yes; then
11938
11939 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
11940
11941 fi
11942
11943 if test $gl_func_isnand_no_libm != yes; then
11944
11945
11946
11947
11948
11949
11950
11951
11952 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
11953
11954
11955
11956
11957 fi
11958
11959
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
11961 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
11962 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
11963 $as_echo_n "(cached) " >&6
11964 else
11965
11966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11967 /* end confdefs.h. */
11968 #include <math.h>
11969 #if __GNUC__ >= 4
11970 # undef isnanl
11971 # define isnanl(x) __builtin_isnanl ((long double)(x))
11972 #elif defined isnan
11973 # undef isnanl
11974 # define isnanl(x) isnan ((long double)(x))
11975 #endif
11976 long double x;
11977 int
11978 main ()
11979 {
11980 return isnanl (x);
11981 ;
11982 return 0;
11983 }
11984 _ACEOF
11985 if ac_fn_c_try_link "$LINENO"; then :
11986 gl_cv_func_isnanl_no_libm=yes
11987 else
11988 gl_cv_func_isnanl_no_libm=no
11989 fi
11990 rm -f core conftest.err conftest.$ac_objext \
11991 conftest$ac_exeext conftest.$ac_ext
11992
11993 fi
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
11995 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
11996
11997 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
11998 if test $gl_func_isnanl_no_libm = yes; then
11999
12000
12001
12002
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
12004 $as_echo_n "checking whether isnanl works... " >&6; }
12005 if test "${gl_cv_func_isnanl_works+set}" = set; then :
12006 $as_echo_n "(cached) " >&6
12007 else
12008
12009 if test "$cross_compiling" = yes; then :
12010 case "$host_cpu" in
12011 # Guess no on ia64, x86_64, i386.
12012 ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
12013 *)
12014 case "$host_os" in
12015 netbsd*) gl_cv_func_isnanl_works="guessing no";;
12016 *) gl_cv_func_isnanl_works="guessing yes";;
12017 esac
12018 ;;
12019 esac
12020
12021 else
12022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12023 /* end confdefs.h. */
12024
12025 #include <float.h>
12026 #include <limits.h>
12027 #include <math.h>
12028 #if __GNUC__ >= 4
12029 # undef isnanl
12030 # define isnanl(x) __builtin_isnanl ((long double)(x))
12031 #elif defined isnan
12032 # undef isnanl
12033 # define isnanl(x) isnan ((long double)(x))
12034 #endif
12035 #define NWORDS \
12036 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
12037 typedef union { unsigned int word[NWORDS]; long double value; }
12038 memory_long_double;
12039 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
12040 runtime type conversion. */
12041 #ifdef __sgi
12042 static long double NaNl ()
12043 {
12044 double zero = 0.0;
12045 return zero / zero;
12046 }
12047 #else
12048 # define NaNl() (0.0L / 0.0L)
12049 #endif
12050 int main ()
12051 {
12052 int result = 0;
12053
12054 if (!isnanl (NaNl ()))
12055 result |= 1;
12056
12057 {
12058 memory_long_double m;
12059 unsigned int i;
12060
12061 /* The isnanl function should be immune against changes in the sign bit and
12062 in the mantissa bits. The xor operation twiddles a bit that can only be
12063 a sign bit or a mantissa bit (since the exponent never extends to
12064 bit 31). */
12065 m.value = NaNl ();
12066 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
12067 for (i = 0; i < NWORDS; i++)
12068 m.word[i] |= 1;
12069 if (!isnanl (m.value))
12070 result |= 1;
12071 }
12072
12073 #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
12074 /* Representation of an 80-bit 'long double' as an initializer for a sequence
12075 of 'unsigned int' words. */
12076 # ifdef WORDS_BIGENDIAN
12077 # define LDBL80_WORDS(exponent,manthi,mantlo) \
12078 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
12079 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
12080 (unsigned int) (mantlo) << 16 \
12081 }
12082 # else
12083 # define LDBL80_WORDS(exponent,manthi,mantlo) \
12084 { mantlo, manthi, exponent }
12085 # endif
12086 { /* Quiet NaN. */
12087 static memory_long_double x =
12088 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
12089 if (!isnanl (x.value))
12090 result |= 2;
12091 }
12092 {
12093 /* Signalling NaN. */
12094 static memory_long_double x =
12095 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
12096 if (!isnanl (x.value))
12097 result |= 2;
12098 }
12099 /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
12100 Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
12101 Intel IA-64 Architecture Software Developer's Manual, Volume 1:
12102 Application Architecture.
12103 Table 5-2 "Floating-Point Register Encodings"
12104 Figure 5-6 "Memory to Floating-Point Register Data Translation"
12105 */
12106 { /* Pseudo-NaN. */
12107 static memory_long_double x =
12108 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
12109 if (!isnanl (x.value))
12110 result |= 4;
12111 }
12112 { /* Pseudo-Infinity. */
12113 static memory_long_double x =
12114 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
12115 if (!isnanl (x.value))
12116 result |= 8;
12117 }
12118 { /* Pseudo-Zero. */
12119 static memory_long_double x =
12120 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
12121 if (!isnanl (x.value))
12122 result |= 16;
12123 }
12124 { /* Unnormalized number. */
12125 static memory_long_double x =
12126 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
12127 if (!isnanl (x.value))
12128 result |= 32;
12129 }
12130 { /* Pseudo-Denormal. */
12131 static memory_long_double x =
12132 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
12133 if (!isnanl (x.value))
12134 result |= 64;
12135 }
12136 #endif
12137
12138 return result;
12139 }
12140 _ACEOF
12141 if ac_fn_c_try_run "$LINENO"; then :
12142 gl_cv_func_isnanl_works=yes
12143 else
12144 gl_cv_func_isnanl_works=no
12145 fi
12146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12147 conftest.$ac_objext conftest.beam conftest.$ac_ext
12148 fi
12149
12150
12151 fi
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
12153 $as_echo "$gl_cv_func_isnanl_works" >&6; }
12154
12155 case "$gl_cv_func_isnanl_works" in
12156 *yes) ;;
12157 *) gl_func_isnanl_no_libm=no ;;
12158 esac
12159 fi
12160 if test $gl_func_isnanl_no_libm = yes; then
12161
12162 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
12163
12164 fi
12165
12166 if test $gl_func_isnanl_no_libm != yes; then
12167
12168
12169
12170
12171
12172
12173
12174
12175 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
12176
12177
12178
12179
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
12181 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
12182 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
12183 $as_echo_n "(cached) " >&6
12184 else
12185
12186 if test "$cross_compiling" = yes; then :
12187
12188 gl_cv_cc_long_double_expbit0="unknown"
12189
12190 else
12191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12192 /* end confdefs.h. */
12193
12194 #include <float.h>
12195 #include <stddef.h>
12196 #include <stdio.h>
12197 #include <string.h>
12198 #define NWORDS \
12199 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
12200 typedef union { long double value; unsigned int word[NWORDS]; }
12201 memory_long_double;
12202 static unsigned int ored_words[NWORDS];
12203 static unsigned int anded_words[NWORDS];
12204 static void add_to_ored_words (long double x)
12205 {
12206 memory_long_double m;
12207 size_t i;
12208 /* Clear it first, in case
12209 sizeof (long double) < sizeof (memory_long_double). */
12210 memset (&m, 0, sizeof (memory_long_double));
12211 m.value = x;
12212 for (i = 0; i < NWORDS; i++)
12213 {
12214 ored_words[i] |= m.word[i];
12215 anded_words[i] &= m.word[i];
12216 }
12217 }
12218 int main ()
12219 {
12220 size_t j;
12221 FILE *fp = fopen ("conftest.out", "w");
12222 if (fp == NULL)
12223 return 1;
12224 for (j = 0; j < NWORDS; j++)
12225 anded_words[j] = ~ (unsigned int) 0;
12226 add_to_ored_words (0.25L);
12227 add_to_ored_words (0.5L);
12228 add_to_ored_words (1.0L);
12229 add_to_ored_words (2.0L);
12230 add_to_ored_words (4.0L);
12231 /* Remove bits that are common (e.g. if representation of the first mantissa
12232 bit is explicit). */
12233 for (j = 0; j < NWORDS; j++)
12234 ored_words[j] &= ~anded_words[j];
12235 /* Now find the nonzero word. */
12236 for (j = 0; j < NWORDS; j++)
12237 if (ored_words[j] != 0)
12238 break;
12239 if (j < NWORDS)
12240 {
12241 size_t i;
12242 for (i = j + 1; i < NWORDS; i++)
12243 if (ored_words[i] != 0)
12244 {
12245 fprintf (fp, "unknown");
12246 return (fclose (fp) != 0);
12247 }
12248 for (i = 0; ; i++)
12249 if ((ored_words[j] >> i) & 1)
12250 {
12251 fprintf (fp, "word %d bit %d", (int) j, (int) i);
12252 return (fclose (fp) != 0);
12253 }
12254 }
12255 fprintf (fp, "unknown");
12256 return (fclose (fp) != 0);
12257 }
12258
12259 _ACEOF
12260 if ac_fn_c_try_run "$LINENO"; then :
12261 gl_cv_cc_long_double_expbit0=`cat conftest.out`
12262 else
12263 gl_cv_cc_long_double_expbit0="unknown"
12264 fi
12265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12266 conftest.$ac_objext conftest.beam conftest.$ac_ext
12267 fi
12268
12269 rm -f conftest.out
12270
12271 fi
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
12273 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
12274 case "$gl_cv_cc_long_double_expbit0" in
12275 word*bit*)
12276 word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
12277 bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
12278
12279 cat >>confdefs.h <<_ACEOF
12280 #define LDBL_EXPBIT0_WORD $word
12281 _ACEOF
12282
12283
12284 cat >>confdefs.h <<_ACEOF
12285 #define LDBL_EXPBIT0_BIT $bit
12286 _ACEOF
12287
12288 ;;
12289 esac
12290
12291
12292
12293 fi
12294
12295
12296
12297
12298
12299
12300
12301
12302 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315 if test $gl_cv_have_include_next = yes; then
12316 gl_cv_next_math_h='<'math.h'>'
12317 else
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
12319 $as_echo_n "checking absolute name of <math.h>... " >&6; }
12320 if test "${gl_cv_next_math_h+set}" = set; then :
12321 $as_echo_n "(cached) " >&6
12322 else
12323
12324 if test $ac_cv_header_math_h = yes; then
12325
12326
12327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12328 /* end confdefs.h. */
12329 #include <math.h>
12330
12331 _ACEOF
12332 case "$host_os" in
12333 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12334 *) gl_absname_cpp="$ac_cpp" ;;
12335 esac
12336
12337 case "$host_os" in
12338 mingw*)
12339 gl_dirsep_regex='[/\\]'
12340 ;;
12341 *)
12342 gl_dirsep_regex='\/'
12343 ;;
12344 esac
12345 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12346
12347 gl_header_literal_regex=`echo 'math.h' \
12348 | sed -e "$gl_make_literal_regex_sed"`
12349 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12350 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12351 s|^/[^/]|//&|
12352 p
12353 q
12354 }'
12355 gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12356 sed -n "$gl_absolute_header_sed"`'"'
12357 else
12358 gl_cv_next_math_h='<'math.h'>'
12359 fi
12360
12361
12362 fi
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
12364 $as_echo "$gl_cv_next_math_h" >&6; }
12365 fi
12366 NEXT_MATH_H=$gl_cv_next_math_h
12367
12368 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12369 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12370 gl_next_as_first_directive='<'math.h'>'
12371 else
12372 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12373 gl_next_as_first_directive=$gl_cv_next_math_h
12374 fi
12375 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
12376
12377
12378
12379
12380
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
12382 $as_echo_n "checking whether NAN macro works... " >&6; }
12383 if test "${gl_cv_header_math_nan_works+set}" = set; then :
12384 $as_echo_n "(cached) " >&6
12385 else
12386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12387 /* end confdefs.h. */
12388 #include <math.h>
12389 int
12390 main ()
12391 {
12392 /* Solaris 10 has a broken definition of NAN. Other platforms
12393 fail to provide NAN, or provide it only in C99 mode; this
12394 test only needs to fail when NAN is provided but wrong. */
12395 float f = 1.0f;
12396 #ifdef NAN
12397 f = NAN;
12398 #endif
12399 return f == 0;
12400 ;
12401 return 0;
12402 }
12403 _ACEOF
12404 if ac_fn_c_try_compile "$LINENO"; then :
12405 gl_cv_header_math_nan_works=yes
12406 else
12407 gl_cv_header_math_nan_works=no
12408 fi
12409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12410 fi
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
12412 $as_echo "$gl_cv_header_math_nan_works" >&6; }
12413 if test $gl_cv_header_math_nan_works = no; then
12414 REPLACE_NAN=1
12415 fi
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
12417 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
12418 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
12419 $as_echo_n "(cached) " >&6
12420 else
12421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12422 /* end confdefs.h. */
12423 #include <math.h>
12424 int
12425 main ()
12426 {
12427 /* Solaris 10 has a broken definition of HUGE_VAL. */
12428 double d = HUGE_VAL;
12429 return d == 0;
12430 ;
12431 return 0;
12432 }
12433 _ACEOF
12434 if ac_fn_c_try_compile "$LINENO"; then :
12435 gl_cv_header_math_huge_val_works=yes
12436 else
12437 gl_cv_header_math_huge_val_works=no
12438 fi
12439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12440 fi
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
12442 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
12443 if test $gl_cv_header_math_huge_val_works = no; then
12444 REPLACE_HUGE_VAL=1
12445 fi
12446
12447
12448 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
12449 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
12451 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12452 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
12453 $as_echo_n "(cached) " >&6
12454 else
12455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12456 /* end confdefs.h. */
12457 #include <math.h>
12458 int
12459 main ()
12460 {
12461 #undef $gl_func
12462 (void) $gl_func;
12463 ;
12464 return 0;
12465 }
12466 _ACEOF
12467 if ac_fn_c_try_compile "$LINENO"; then :
12468 eval "$as_gl_Symbol=yes"
12469 else
12470 eval "$as_gl_Symbol=no"
12471 fi
12472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12473 fi
12474 eval ac_res=\$$as_gl_Symbol
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12476 $as_echo "$ac_res" >&6; }
12477 eval as_val=\$$as_gl_Symbol
12478 if test "x$as_val" = x""yes; then :
12479 cat >>confdefs.h <<_ACEOF
12480 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
12481 _ACEOF
12482
12483 eval ac_cv_have_decl_$gl_func=yes
12484 fi
12485 done
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
12499
12500
12501
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12503 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
12504 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
12505 $as_echo_n "(cached) " >&6
12506 else
12507
12508 case "$host_os" in
12509 # Guess no on AIX and OSF/1.
12510 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12511 # Guess yes otherwise.
12512 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
12513 esac
12514 if test $LOCALE_JA != none; then
12515 if test "$cross_compiling" = yes; then :
12516 :
12517 else
12518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12519 /* end confdefs.h. */
12520
12521 #include <locale.h>
12522 #include <string.h>
12523 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12524 <wchar.h>.
12525 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12526 included before <wchar.h>. */
12527 #include <stddef.h>
12528 #include <stdio.h>
12529 #include <time.h>
12530 #include <wchar.h>
12531 int main ()
12532 {
12533 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12534 {
12535 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12536 mbstate_t state;
12537 wchar_t wc;
12538
12539 memset (&state, '\0', sizeof (mbstate_t));
12540 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12541 if (mbsinit (&state))
12542 return 1;
12543 }
12544 return 0;
12545 }
12546 _ACEOF
12547 if ac_fn_c_try_run "$LINENO"; then :
12548 gl_cv_func_mbrtowc_incomplete_state=yes
12549 else
12550 gl_cv_func_mbrtowc_incomplete_state=no
12551 fi
12552 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12553 conftest.$ac_objext conftest.beam conftest.$ac_ext
12554 fi
12555
12556 fi
12557
12558 fi
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12560 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
12561
12562
12563
12564
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12566 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12567 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
12568 $as_echo_n "(cached) " >&6
12569 else
12570
12571 case "$host_os" in
12572 # Guess no on Solaris 8.
12573 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12574 # Guess yes otherwise.
12575 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12576 esac
12577 if test $LOCALE_ZH_CN != none; then
12578 if test "$cross_compiling" = yes; then :
12579 :
12580 else
12581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12582 /* end confdefs.h. */
12583
12584 #include <locale.h>
12585 #include <stdlib.h>
12586 #include <string.h>
12587 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12588 <wchar.h>.
12589 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12590 included before <wchar.h>. */
12591 #include <stddef.h>
12592 #include <stdio.h>
12593 #include <time.h>
12594 #include <wchar.h>
12595 int main ()
12596 {
12597 /* This fails on Solaris 8:
12598 mbrtowc returns 2, and sets wc to 0x00F0.
12599 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12600 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12601 {
12602 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12603 mbstate_t state;
12604 wchar_t wc;
12605
12606 memset (&state, '\0', sizeof (mbstate_t));
12607 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12608 && mbtowc (&wc, input + 3, 6) == 4)
12609 return 1;
12610 }
12611 return 0;
12612 }
12613 _ACEOF
12614 if ac_fn_c_try_run "$LINENO"; then :
12615 gl_cv_func_mbrtowc_sanitycheck=yes
12616 else
12617 gl_cv_func_mbrtowc_sanitycheck=no
12618 fi
12619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12620 conftest.$ac_objext conftest.beam conftest.$ac_ext
12621 fi
12622
12623 fi
12624
12625 fi
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12627 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12628
12629 REPLACE_MBSTATE_T=0
12630 case "$gl_cv_func_mbrtowc_incomplete_state" in
12631 *yes) ;;
12632 *) REPLACE_MBSTATE_T=1 ;;
12633 esac
12634 case "$gl_cv_func_mbrtowc_sanitycheck" in
12635 *yes) ;;
12636 *) REPLACE_MBSTATE_T=1 ;;
12637 esac
12638 else
12639 REPLACE_MBSTATE_T=1
12640 fi
12641
12642
12643
12644 if test $ac_cv_func_mbrtowc = no; then
12645 HAVE_MBRTOWC=0
12646 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
12647 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12648 <wchar.h>.
12649 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12650 included before <wchar.h>. */
12651 #include <stddef.h>
12652 #include <stdio.h>
12653 #include <time.h>
12654 #include <wchar.h>
12655
12656 "
12657 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
12658 ac_have_decl=1
12659 else
12660 ac_have_decl=0
12661 fi
12662
12663 cat >>confdefs.h <<_ACEOF
12664 #define HAVE_DECL_MBRTOWC $ac_have_decl
12665 _ACEOF
12666
12667 if test $ac_cv_have_decl_mbrtowc = yes; then
12668 REPLACE_MBRTOWC=1
12669 fi
12670 else
12671 if test $REPLACE_MBSTATE_T = 1; then
12672 REPLACE_MBRTOWC=1
12673 else
12674
12675
12676
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
12678 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
12679 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
12680 $as_echo_n "(cached) " >&6
12681 else
12682
12683 case "$host_os" in
12684 # Guess no on Solaris.
12685 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
12686 # Guess yes otherwise.
12687 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
12688 esac
12689 if test $LOCALE_FR_UTF8 != none; then
12690 if test "$cross_compiling" = yes; then :
12691 :
12692 else
12693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12694 /* end confdefs.h. */
12695
12696 #include <locale.h>
12697 #include <stdlib.h>
12698 #include <string.h>
12699 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12700 <wchar.h>.
12701 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12702 included before <wchar.h>. */
12703 #include <stddef.h>
12704 #include <stdio.h>
12705 #include <time.h>
12706 #include <wchar.h>
12707 int main ()
12708 {
12709 int result = 0;
12710
12711 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12712 {
12713 char input[] = "\303\237er";
12714 mbstate_t state;
12715 wchar_t wc;
12716 size_t ret;
12717
12718 memset (&state, '\0', sizeof (mbstate_t));
12719 wc = (wchar_t) 0xBADFACE;
12720 ret = mbrtowc (&wc, input, 5, &state);
12721 if (ret != 2)
12722 result |= 1;
12723 if (!mbsinit (&state))
12724 result |= 2;
12725
12726 memset (&state, '\0', sizeof (mbstate_t));
12727 ret = mbrtowc (NULL, input, 5, &state);
12728 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
12729 result |= 4;
12730 if (!mbsinit (&state))
12731 result |= 8;
12732 }
12733 return result;
12734 }
12735 _ACEOF
12736 if ac_fn_c_try_run "$LINENO"; then :
12737 gl_cv_func_mbrtowc_null_arg1=yes
12738 else
12739 gl_cv_func_mbrtowc_null_arg1=no
12740 fi
12741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12742 conftest.$ac_objext conftest.beam conftest.$ac_ext
12743 fi
12744
12745 fi
12746
12747 fi
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
12749 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
12750
12751
12752
12753
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
12755 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
12756 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
12757 $as_echo_n "(cached) " >&6
12758 else
12759
12760 case "$host_os" in
12761 # Guess no on OSF/1.
12762 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
12763 # Guess yes otherwise.
12764 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
12765 esac
12766 if test $LOCALE_FR_UTF8 != none; then
12767 if test "$cross_compiling" = yes; then :
12768 :
12769 else
12770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12771 /* end confdefs.h. */
12772
12773 #include <locale.h>
12774 #include <string.h>
12775 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12776 <wchar.h>.
12777 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12778 included before <wchar.h>. */
12779 #include <stddef.h>
12780 #include <stdio.h>
12781 #include <time.h>
12782 #include <wchar.h>
12783 int main ()
12784 {
12785 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12786 {
12787 mbstate_t state;
12788 wchar_t wc;
12789 int ret;
12790
12791 memset (&state, '\0', sizeof (mbstate_t));
12792 wc = (wchar_t) 0xBADFACE;
12793 mbrtowc (&wc, NULL, 5, &state);
12794 /* Check that wc was not modified. */
12795 if (wc != (wchar_t) 0xBADFACE)
12796 return 1;
12797 }
12798 return 0;
12799 }
12800 _ACEOF
12801 if ac_fn_c_try_run "$LINENO"; then :
12802 gl_cv_func_mbrtowc_null_arg2=yes
12803 else
12804 gl_cv_func_mbrtowc_null_arg2=no
12805 fi
12806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12807 conftest.$ac_objext conftest.beam conftest.$ac_ext
12808 fi
12809
12810 fi
12811
12812 fi
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
12814 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
12815
12816
12817
12818
12819
12820
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
12822 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
12823 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
12824 $as_echo_n "(cached) " >&6
12825 else
12826
12827 case "$host_os" in
12828 # Guess no on HP-UX, Solaris, native Windows.
12829 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
12830 # Guess yes otherwise.
12831 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
12832 esac
12833 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
12834 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
12835 if test "$cross_compiling" = yes; then :
12836 :
12837 else
12838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12839 /* end confdefs.h. */
12840
12841 #include <locale.h>
12842 #include <string.h>
12843 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12844 <wchar.h>.
12845 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12846 included before <wchar.h>. */
12847 #include <stddef.h>
12848 #include <stdio.h>
12849 #include <time.h>
12850 #include <wchar.h>
12851 int main ()
12852 {
12853 int result = 0;
12854 int found_some_locale = 0;
12855 /* This fails on Solaris. */
12856 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12857 {
12858 char input[] = "B\303\274\303\237er"; /* "Büßer" */
12859 mbstate_t state;
12860 wchar_t wc;
12861
12862 memset (&state, '\0', sizeof (mbstate_t));
12863 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12864 {
12865 input[1] = '\0';
12866 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
12867 result |= 1;
12868 }
12869 found_some_locale = 1;
12870 }
12871 /* This fails on HP-UX 11.11. */
12872 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12873 {
12874 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12875 mbstate_t state;
12876 wchar_t wc;
12877
12878 memset (&state, '\0', sizeof (mbstate_t));
12879 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12880 {
12881 input[1] = '\0';
12882 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
12883 result |= 2;
12884 }
12885 found_some_locale = 1;
12886 }
12887 /* This fails on native Windows. */
12888 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
12889 {
12890 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
12891 mbstate_t state;
12892 wchar_t wc;
12893
12894 memset (&state, '\0', sizeof (mbstate_t));
12895 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
12896 {
12897 input[3] = '\0';
12898 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
12899 result |= 4;
12900 }
12901 found_some_locale = 1;
12902 }
12903 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
12904 {
12905 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
12906 mbstate_t state;
12907 wchar_t wc;
12908
12909 memset (&state, '\0', sizeof (mbstate_t));
12910 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
12911 {
12912 input[3] = '\0';
12913 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
12914 result |= 8;
12915 }
12916 found_some_locale = 1;
12917 }
12918 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
12919 {
12920 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
12921 mbstate_t state;
12922 wchar_t wc;
12923
12924 memset (&state, '\0', sizeof (mbstate_t));
12925 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
12926 {
12927 input[3] = '\0';
12928 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
12929 result |= 16;
12930 }
12931 found_some_locale = 1;
12932 }
12933 return (found_some_locale ? result : 77);
12934 }
12935 _ACEOF
12936 if ac_fn_c_try_run "$LINENO"; then :
12937 gl_cv_func_mbrtowc_retval=yes
12938 else
12939 if test $? != 77; then
12940 gl_cv_func_mbrtowc_retval=no
12941 fi
12942
12943 fi
12944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12945 conftest.$ac_objext conftest.beam conftest.$ac_ext
12946 fi
12947
12948 fi
12949
12950 fi
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
12952 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
12953
12954
12955
12956
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
12958 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
12959 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
12960 $as_echo_n "(cached) " >&6
12961 else
12962
12963 case "$host_os" in
12964 # Guess no on Solaris 8 and 9.
12965 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
12966 # Guess yes otherwise.
12967 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
12968 esac
12969 if test $LOCALE_ZH_CN != none; then
12970 if test "$cross_compiling" = yes; then :
12971 :
12972 else
12973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12974 /* end confdefs.h. */
12975
12976 #include <locale.h>
12977 #include <string.h>
12978 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12979 <wchar.h>.
12980 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12981 included before <wchar.h>. */
12982 #include <stddef.h>
12983 #include <stdio.h>
12984 #include <time.h>
12985 #include <wchar.h>
12986 int main ()
12987 {
12988 /* This fails on Solaris 8 and 9. */
12989 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12990 {
12991 mbstate_t state;
12992 wchar_t wc;
12993
12994 memset (&state, '\0', sizeof (mbstate_t));
12995 if (mbrtowc (&wc, "", 1, &state) != 0)
12996 return 1;
12997 }
12998 return 0;
12999 }
13000 _ACEOF
13001 if ac_fn_c_try_run "$LINENO"; then :
13002 gl_cv_func_mbrtowc_nul_retval=yes
13003 else
13004 gl_cv_func_mbrtowc_nul_retval=no
13005 fi
13006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13007 conftest.$ac_objext conftest.beam conftest.$ac_ext
13008 fi
13009
13010 fi
13011
13012 fi
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
13014 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
13015
13016 case "$gl_cv_func_mbrtowc_null_arg1" in
13017 *yes) ;;
13018 *)
13019 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
13020
13021 REPLACE_MBRTOWC=1
13022 ;;
13023 esac
13024 case "$gl_cv_func_mbrtowc_null_arg2" in
13025 *yes) ;;
13026 *)
13027 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
13028
13029 REPLACE_MBRTOWC=1
13030 ;;
13031 esac
13032 case "$gl_cv_func_mbrtowc_retval" in
13033 *yes) ;;
13034 *)
13035 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
13036
13037 REPLACE_MBRTOWC=1
13038 ;;
13039 esac
13040 case "$gl_cv_func_mbrtowc_nul_retval" in
13041 *yes) ;;
13042 *)
13043 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
13044
13045 REPLACE_MBRTOWC=1
13046 ;;
13047 esac
13048 fi
13049 fi
13050
13051 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
13052
13053
13054
13055
13056
13057
13058
13059
13060 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
13061
13062
13063 :
13064
13065 fi
13066
13067
13068
13069
13070
13071 GNULIB_MBRTOWC=1
13072
13073
13074
13075
13076
13077 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
13093
13094
13095
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
13097 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
13098 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
13099 $as_echo_n "(cached) " >&6
13100 else
13101
13102 case "$host_os" in
13103 # Guess no on AIX and OSF/1.
13104 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
13105 # Guess yes otherwise.
13106 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
13107 esac
13108 if test $LOCALE_JA != none; then
13109 if test "$cross_compiling" = yes; then :
13110 :
13111 else
13112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113 /* end confdefs.h. */
13114
13115 #include <locale.h>
13116 #include <string.h>
13117 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13118 <wchar.h>.
13119 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13120 included before <wchar.h>. */
13121 #include <stddef.h>
13122 #include <stdio.h>
13123 #include <time.h>
13124 #include <wchar.h>
13125 int main ()
13126 {
13127 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13128 {
13129 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
13130 mbstate_t state;
13131 wchar_t wc;
13132
13133 memset (&state, '\0', sizeof (mbstate_t));
13134 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
13135 if (mbsinit (&state))
13136 return 1;
13137 }
13138 return 0;
13139 }
13140 _ACEOF
13141 if ac_fn_c_try_run "$LINENO"; then :
13142 gl_cv_func_mbrtowc_incomplete_state=yes
13143 else
13144 gl_cv_func_mbrtowc_incomplete_state=no
13145 fi
13146 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13147 conftest.$ac_objext conftest.beam conftest.$ac_ext
13148 fi
13149
13150 fi
13151
13152 fi
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
13154 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
13155
13156
13157
13158
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
13160 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
13161 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
13162 $as_echo_n "(cached) " >&6
13163 else
13164
13165 case "$host_os" in
13166 # Guess no on Solaris 8.
13167 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
13168 # Guess yes otherwise.
13169 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
13170 esac
13171 if test $LOCALE_ZH_CN != none; then
13172 if test "$cross_compiling" = yes; then :
13173 :
13174 else
13175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13176 /* end confdefs.h. */
13177
13178 #include <locale.h>
13179 #include <stdlib.h>
13180 #include <string.h>
13181 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13182 <wchar.h>.
13183 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13184 included before <wchar.h>. */
13185 #include <stddef.h>
13186 #include <stdio.h>
13187 #include <time.h>
13188 #include <wchar.h>
13189 int main ()
13190 {
13191 /* This fails on Solaris 8:
13192 mbrtowc returns 2, and sets wc to 0x00F0.
13193 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
13194 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13195 {
13196 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
13197 mbstate_t state;
13198 wchar_t wc;
13199
13200 memset (&state, '\0', sizeof (mbstate_t));
13201 if (mbrtowc (&wc, input + 3, 6, &state) != 4
13202 && mbtowc (&wc, input + 3, 6) == 4)
13203 return 1;
13204 }
13205 return 0;
13206 }
13207 _ACEOF
13208 if ac_fn_c_try_run "$LINENO"; then :
13209 gl_cv_func_mbrtowc_sanitycheck=yes
13210 else
13211 gl_cv_func_mbrtowc_sanitycheck=no
13212 fi
13213 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13214 conftest.$ac_objext conftest.beam conftest.$ac_ext
13215 fi
13216
13217 fi
13218
13219 fi
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
13221 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
13222
13223 REPLACE_MBSTATE_T=0
13224 case "$gl_cv_func_mbrtowc_incomplete_state" in
13225 *yes) ;;
13226 *) REPLACE_MBSTATE_T=1 ;;
13227 esac
13228 case "$gl_cv_func_mbrtowc_sanitycheck" in
13229 *yes) ;;
13230 *) REPLACE_MBSTATE_T=1 ;;
13231 esac
13232 else
13233 REPLACE_MBSTATE_T=1
13234 fi
13235
13236
13237
13238 if test $ac_cv_func_mbsinit = no; then
13239 HAVE_MBSINIT=0
13240 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
13241 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13242 <wchar.h>.
13243 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13244 included before <wchar.h>. */
13245 #include <stddef.h>
13246 #include <stdio.h>
13247 #include <time.h>
13248 #include <wchar.h>
13249
13250 "
13251 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
13252 ac_have_decl=1
13253 else
13254 ac_have_decl=0
13255 fi
13256
13257 cat >>confdefs.h <<_ACEOF
13258 #define HAVE_DECL_MBSINIT $ac_have_decl
13259 _ACEOF
13260
13261 if test $ac_cv_have_decl_mbsinit = yes; then
13262 REPLACE_MBSINIT=1
13263 fi
13264 else
13265 if test $REPLACE_MBSTATE_T = 1; then
13266 REPLACE_MBSINIT=1
13267 else
13268 case "$host_os" in
13269 mingw*) REPLACE_MBSINIT=1 ;;
13270 esac
13271 fi
13272 fi
13273
13274 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
13275
13276
13277
13278
13279
13280
13281
13282
13283 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
13284
13285
13286 :
13287
13288 fi
13289
13290
13291
13292
13293
13294 GNULIB_MBSINIT=1
13295
13296
13297
13298
13299
13300 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
13315
13316
13317
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
13319 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
13320 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
13321 $as_echo_n "(cached) " >&6
13322 else
13323
13324 case "$host_os" in
13325 # Guess no on AIX and OSF/1.
13326 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
13327 # Guess yes otherwise.
13328 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
13329 esac
13330 if test $LOCALE_JA != none; then
13331 if test "$cross_compiling" = yes; then :
13332 :
13333 else
13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h. */
13336
13337 #include <locale.h>
13338 #include <string.h>
13339 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13340 <wchar.h>.
13341 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13342 included before <wchar.h>. */
13343 #include <stddef.h>
13344 #include <stdio.h>
13345 #include <time.h>
13346 #include <wchar.h>
13347 int main ()
13348 {
13349 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13350 {
13351 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
13352 mbstate_t state;
13353 wchar_t wc;
13354
13355 memset (&state, '\0', sizeof (mbstate_t));
13356 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
13357 if (mbsinit (&state))
13358 return 1;
13359 }
13360 return 0;
13361 }
13362 _ACEOF
13363 if ac_fn_c_try_run "$LINENO"; then :
13364 gl_cv_func_mbrtowc_incomplete_state=yes
13365 else
13366 gl_cv_func_mbrtowc_incomplete_state=no
13367 fi
13368 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13369 conftest.$ac_objext conftest.beam conftest.$ac_ext
13370 fi
13371
13372 fi
13373
13374 fi
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
13376 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
13377
13378
13379
13380
13381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
13382 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
13383 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
13384 $as_echo_n "(cached) " >&6
13385 else
13386
13387 case "$host_os" in
13388 # Guess no on Solaris 8.
13389 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
13390 # Guess yes otherwise.
13391 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
13392 esac
13393 if test $LOCALE_ZH_CN != none; then
13394 if test "$cross_compiling" = yes; then :
13395 :
13396 else
13397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13398 /* end confdefs.h. */
13399
13400 #include <locale.h>
13401 #include <stdlib.h>
13402 #include <string.h>
13403 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13404 <wchar.h>.
13405 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13406 included before <wchar.h>. */
13407 #include <stddef.h>
13408 #include <stdio.h>
13409 #include <time.h>
13410 #include <wchar.h>
13411 int main ()
13412 {
13413 /* This fails on Solaris 8:
13414 mbrtowc returns 2, and sets wc to 0x00F0.
13415 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
13416 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13417 {
13418 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
13419 mbstate_t state;
13420 wchar_t wc;
13421
13422 memset (&state, '\0', sizeof (mbstate_t));
13423 if (mbrtowc (&wc, input + 3, 6, &state) != 4
13424 && mbtowc (&wc, input + 3, 6) == 4)
13425 return 1;
13426 }
13427 return 0;
13428 }
13429 _ACEOF
13430 if ac_fn_c_try_run "$LINENO"; then :
13431 gl_cv_func_mbrtowc_sanitycheck=yes
13432 else
13433 gl_cv_func_mbrtowc_sanitycheck=no
13434 fi
13435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13436 conftest.$ac_objext conftest.beam conftest.$ac_ext
13437 fi
13438
13439 fi
13440
13441 fi
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
13443 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
13444
13445 REPLACE_MBSTATE_T=0
13446 case "$gl_cv_func_mbrtowc_incomplete_state" in
13447 *yes) ;;
13448 *) REPLACE_MBSTATE_T=1 ;;
13449 esac
13450 case "$gl_cv_func_mbrtowc_sanitycheck" in
13451 *yes) ;;
13452 *) REPLACE_MBSTATE_T=1 ;;
13453 esac
13454 else
13455 REPLACE_MBSTATE_T=1
13456 fi
13457
13458
13459
13460 if test $ac_cv_func_mbsrtowcs = no; then
13461 HAVE_MBSRTOWCS=0
13462 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
13463 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13464 <wchar.h>.
13465 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13466 included before <wchar.h>. */
13467 #include <stddef.h>
13468 #include <stdio.h>
13469 #include <time.h>
13470 #include <wchar.h>
13471
13472 "
13473 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
13474 ac_have_decl=1
13475 else
13476 ac_have_decl=0
13477 fi
13478
13479 cat >>confdefs.h <<_ACEOF
13480 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
13481 _ACEOF
13482
13483 if test $ac_cv_have_decl_mbsrtowcs = yes; then
13484 REPLACE_MBSRTOWCS=1
13485 fi
13486 else
13487 if test $REPLACE_MBSTATE_T = 1; then
13488 REPLACE_MBSRTOWCS=1
13489 else
13490
13491
13492
13493
13494
13495
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
13497 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
13498 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
13499 $as_echo_n "(cached) " >&6
13500 else
13501
13502 case "$host_os" in
13503 # Guess no on HP-UX, Solaris, mingw.
13504 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
13505 # Guess yes otherwise.
13506 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
13507 esac
13508 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
13509 if test "$cross_compiling" = yes; then :
13510 :
13511 else
13512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13513 /* end confdefs.h. */
13514
13515 #include <locale.h>
13516 #include <string.h>
13517 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13518 <wchar.h>.
13519 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13520 included before <wchar.h>. */
13521 #include <stddef.h>
13522 #include <stdio.h>
13523 #include <time.h>
13524 #include <wchar.h>
13525 int main ()
13526 {
13527 int result = 0;
13528 /* Test whether the function supports a NULL destination argument.
13529 This fails on native Windows. */
13530 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
13531 {
13532 const char input[] = "\337er";
13533 const char *src = input;
13534 mbstate_t state;
13535
13536 memset (&state, '\0', sizeof (mbstate_t));
13537 if (mbsrtowcs (NULL, &src, 1, &state) != 3
13538 || src != input)
13539 result |= 1;
13540 }
13541 /* Test whether the function works when started with a conversion state
13542 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
13543 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
13544 {
13545 const char input[] = "B\303\274\303\237er";
13546 mbstate_t state;
13547
13548 memset (&state, '\0', sizeof (mbstate_t));
13549 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
13550 if (!mbsinit (&state))
13551 {
13552 const char *src = input + 2;
13553 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
13554 result |= 2;
13555 }
13556 }
13557 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
13558 {
13559 const char input[] = "<\306\374\313\334\270\354>";
13560 mbstate_t state;
13561
13562 memset (&state, '\0', sizeof (mbstate_t));
13563 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
13564 if (!mbsinit (&state))
13565 {
13566 const char *src = input + 4;
13567 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
13568 result |= 4;
13569 }
13570 }
13571 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
13572 {
13573 const char input[] = "B\250\271\201\060\211\070er";
13574 mbstate_t state;
13575
13576 memset (&state, '\0', sizeof (mbstate_t));
13577 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
13578 if (!mbsinit (&state))
13579 {
13580 const char *src = input + 2;
13581 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
13582 result |= 8;
13583 }
13584 }
13585 return result;
13586 }
13587 _ACEOF
13588 if ac_fn_c_try_run "$LINENO"; then :
13589 gl_cv_func_mbsrtowcs_works=yes
13590 else
13591 gl_cv_func_mbsrtowcs_works=no
13592 fi
13593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13594 conftest.$ac_objext conftest.beam conftest.$ac_ext
13595 fi
13596
13597 fi
13598
13599 fi
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
13601 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
13602
13603 case "$gl_cv_func_mbsrtowcs_works" in
13604 *yes) ;;
13605 *) REPLACE_MBSRTOWCS=1 ;;
13606 esac
13607 fi
13608 fi
13609
13610 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
13611
13612
13613
13614
13615
13616
13617
13618
13619 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
13630
13631
13632 :
13633
13634 fi
13635
13636
13637
13638
13639
13640 GNULIB_MBSRTOWCS=1
13641
13642
13643
13644
13645
13646 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
13647
13648
13649
13650
13651 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
13652
13653
13654
13655
13656
13657
13658
13659
13660 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
13661
13662
13663 for ac_header in bp-sym.h
13664 do :
13665 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
13666 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
13667 cat >>confdefs.h <<_ACEOF
13668 #define HAVE_BP_SYM_H 1
13669 _ACEOF
13670
13671 fi
13672
13673 done
13674
13675
13676 fi
13677
13678
13679
13680
13681
13682 GNULIB_MEMCHR=1
13683
13684
13685
13686
13687
13688 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
13689
13690
13691
13692
13693
13694 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
13696 $as_echo_n "checking whether memmem works in linear time... " >&6; }
13697 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
13698 $as_echo_n "(cached) " >&6
13699 else
13700 if test "$cross_compiling" = yes; then :
13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h. */
13703
13704 #include <features.h>
13705 #ifdef __GNU_LIBRARY__
13706 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
13707 && !defined __UCLIBC__
13708 Lucky user
13709 #endif
13710 #endif
13711 #ifdef __CYGWIN__
13712 #include <cygwin/version.h>
13713 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
13714 Lucky user
13715 #endif
13716 #endif
13717
13718 _ACEOF
13719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13720 $EGREP "Lucky user" >/dev/null 2>&1; then :
13721 gl_cv_func_memmem_works_fast="guessing yes"
13722 else
13723 gl_cv_func_memmem_works_fast="guessing no"
13724 fi
13725 rm -f conftest*
13726
13727
13728 else
13729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13730 /* end confdefs.h. */
13731
13732 #include <signal.h> /* for signal */
13733 #include <string.h> /* for memmem */
13734 #include <stdlib.h> /* for malloc */
13735 #include <unistd.h> /* for alarm */
13736 static void quit (int sig) { exit (sig + 128); }
13737
13738 int
13739 main ()
13740 {
13741
13742 int result = 0;
13743 size_t m = 1000000;
13744 char *haystack = (char *) malloc (2 * m + 1);
13745 char *needle = (char *) malloc (m + 1);
13746 /* Failure to compile this test due to missing alarm is okay,
13747 since all such platforms (mingw) also lack memmem. */
13748 signal (SIGALRM, quit);
13749 alarm (5);
13750 /* Check for quadratic performance. */
13751 if (haystack && needle)
13752 {
13753 memset (haystack, 'A', 2 * m);
13754 haystack[2 * m] = 'B';
13755 memset (needle, 'A', m);
13756 needle[m] = 'B';
13757 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
13758 result |= 1;
13759 }
13760 return result;
13761
13762 ;
13763 return 0;
13764 }
13765 _ACEOF
13766 if ac_fn_c_try_run "$LINENO"; then :
13767 gl_cv_func_memmem_works_fast=yes
13768 else
13769 gl_cv_func_memmem_works_fast=no
13770 fi
13771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13772 conftest.$ac_objext conftest.beam conftest.$ac_ext
13773 fi
13774
13775
13776 fi
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
13778 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
13779 case "$gl_cv_func_memmem_works_fast" in
13780 *yes) ;;
13781 *)
13782 REPLACE_MEMMEM=1
13783 ;;
13784 esac
13785 fi
13786
13787 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
13788
13789
13790
13791
13792
13793
13794
13795
13796 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
13797
13798 fi
13799
13800
13801
13802
13803 for ac_func in memmem
13804 do :
13805 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
13806 if test "x$ac_cv_func_memmem" = x""yes; then :
13807 cat >>confdefs.h <<_ACEOF
13808 #define HAVE_MEMMEM 1
13809 _ACEOF
13810
13811 fi
13812 done
13813
13814 if test $ac_cv_func_memmem = yes; then
13815 HAVE_MEMMEM=1
13816 else
13817 HAVE_MEMMEM=0
13818 fi
13819
13820 if test $ac_cv_have_decl_memmem = no; then
13821 HAVE_DECL_MEMMEM=0
13822 else
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
13824 $as_echo_n "checking whether memmem works... " >&6; }
13825 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
13826 $as_echo_n "(cached) " >&6
13827 else
13828 if test "$cross_compiling" = yes; then :
13829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830 /* end confdefs.h. */
13831
13832 #ifdef __GNU_LIBRARY__
13833 #include <features.h>
13834 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
13835 || __GLIBC_MINOR__ > 12)) \
13836 || (__GLIBC__ > 2)) \
13837 || defined __UCLIBC__
13838 Lucky user
13839 #endif
13840 #elif defined __CYGWIN__
13841 #include <cygwin/version.h>
13842 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
13843 Lucky user
13844 #endif
13845 #else
13846 Lucky user
13847 #endif
13848
13849 _ACEOF
13850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13851 $EGREP "Lucky user" >/dev/null 2>&1; then :
13852 gl_cv_func_memmem_works_always="guessing yes"
13853 else
13854 gl_cv_func_memmem_works_always="guessing no"
13855 fi
13856 rm -f conftest*
13857
13858
13859 else
13860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13861 /* end confdefs.h. */
13862
13863 #include <string.h> /* for memmem */
13864 #define P "_EF_BF_BD"
13865 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
13866 #define NEEDLE P P P P P
13867
13868 int
13869 main ()
13870 {
13871
13872 int result = 0;
13873 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
13874 result |= 1;
13875 /* Check for empty needle behavior. */
13876 {
13877 const char *haystack = "AAA";
13878 if (memmem (haystack, 3, NULL, 0) != haystack)
13879 result |= 2;
13880 }
13881 return result;
13882
13883 ;
13884 return 0;
13885 }
13886 _ACEOF
13887 if ac_fn_c_try_run "$LINENO"; then :
13888 gl_cv_func_memmem_works_always=yes
13889 else
13890 gl_cv_func_memmem_works_always=no
13891 fi
13892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13893 conftest.$ac_objext conftest.beam conftest.$ac_ext
13894 fi
13895
13896
13897 fi
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
13899 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
13900 case "$gl_cv_func_memmem_works_always" in
13901 *yes) ;;
13902 *)
13903 REPLACE_MEMMEM=1
13904 ;;
13905 esac
13906 fi
13907 :
13908
13909 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
13910
13911
13912
13913
13914
13915
13916
13917
13918 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
13919
13920 fi
13921
13922
13923
13924
13925
13926 GNULIB_MEMMEM=1
13927
13928
13929
13930
13931
13932 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
13933
13934
13935
13936
13937
13938
13939
13940
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
13942 $as_echo_n "checking for ssize_t... " >&6; }
13943 if test "${gt_cv_ssize_t+set}" = set; then :
13944 $as_echo_n "(cached) " >&6
13945 else
13946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13947 /* end confdefs.h. */
13948 #include <sys/types.h>
13949 int
13950 main ()
13951 {
13952 int x = sizeof (ssize_t *) + sizeof (ssize_t);
13953 return !x;
13954 ;
13955 return 0;
13956 }
13957 _ACEOF
13958 if ac_fn_c_try_compile "$LINENO"; then :
13959 gt_cv_ssize_t=yes
13960 else
13961 gt_cv_ssize_t=no
13962 fi
13963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13964 fi
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
13966 $as_echo "$gt_cv_ssize_t" >&6; }
13967 if test $gt_cv_ssize_t = no; then
13968
13969 $as_echo "#define ssize_t int" >>confdefs.h
13970
13971 fi
13972
13973
13974
13975
13976 # Define two additional variables used in the Makefile substitution.
13977
13978 if test "$ac_cv_header_stdbool_h" = yes; then
13979 STDBOOL_H=''
13980 else
13981 STDBOOL_H='stdbool.h'
13982 fi
13983
13984 if test -n "$STDBOOL_H"; then
13985 GL_GENERATE_STDBOOL_H_TRUE=
13986 GL_GENERATE_STDBOOL_H_FALSE='#'
13987 else
13988 GL_GENERATE_STDBOOL_H_TRUE='#'
13989 GL_GENERATE_STDBOOL_H_FALSE=
13990 fi
13991
13992
13993 if test "$ac_cv_type__Bool" = yes; then
13994 HAVE__BOOL=1
13995 else
13996 HAVE__BOOL=0
13997 fi
13998
13999
14000
14001
14002
14003 STDDEF_H=
14004 if test $gt_cv_c_wchar_t = no; then
14005 HAVE_WCHAR_T=0
14006 STDDEF_H=stddef.h
14007 fi
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
14009 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
14010 if test "${gl_cv_decl_null_works+set}" = set; then :
14011 $as_echo_n "(cached) " >&6
14012 else
14013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14014 /* end confdefs.h. */
14015 #include <stddef.h>
14016 int test[2 * (sizeof NULL == sizeof (void *)) -1];
14017
14018 int
14019 main ()
14020 {
14021
14022 ;
14023 return 0;
14024 }
14025 _ACEOF
14026 if ac_fn_c_try_compile "$LINENO"; then :
14027 gl_cv_decl_null_works=yes
14028 else
14029 gl_cv_decl_null_works=no
14030 fi
14031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14032 fi
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
14034 $as_echo "$gl_cv_decl_null_works" >&6; }
14035 if test $gl_cv_decl_null_works = no; then
14036 REPLACE_NULL=1
14037 STDDEF_H=stddef.h
14038 fi
14039
14040 if test -n "$STDDEF_H"; then
14041 GL_GENERATE_STDDEF_H_TRUE=
14042 GL_GENERATE_STDDEF_H_FALSE='#'
14043 else
14044 GL_GENERATE_STDDEF_H_TRUE='#'
14045 GL_GENERATE_STDDEF_H_FALSE=
14046 fi
14047
14048 if test -n "$STDDEF_H"; then
14049
14050
14051
14052
14053
14054
14055
14056
14057 if test $gl_cv_have_include_next = yes; then
14058 gl_cv_next_stddef_h='<'stddef.h'>'
14059 else
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
14061 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
14062 if test "${gl_cv_next_stddef_h+set}" = set; then :
14063 $as_echo_n "(cached) " >&6
14064 else
14065
14066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14067 /* end confdefs.h. */
14068 #include <stddef.h>
14069
14070 _ACEOF
14071 case "$host_os" in
14072 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14073 *) gl_absname_cpp="$ac_cpp" ;;
14074 esac
14075
14076 case "$host_os" in
14077 mingw*)
14078 gl_dirsep_regex='[/\\]'
14079 ;;
14080 *)
14081 gl_dirsep_regex='\/'
14082 ;;
14083 esac
14084 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14085
14086 gl_header_literal_regex=`echo 'stddef.h' \
14087 | sed -e "$gl_make_literal_regex_sed"`
14088 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14089 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14090 s|^/[^/]|//&|
14091 p
14092 q
14093 }'
14094 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14095 sed -n "$gl_absolute_header_sed"`'"'
14096
14097
14098 fi
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
14100 $as_echo "$gl_cv_next_stddef_h" >&6; }
14101 fi
14102 NEXT_STDDEF_H=$gl_cv_next_stddef_h
14103
14104 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14105 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14106 gl_next_as_first_directive='<'stddef.h'>'
14107 else
14108 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14109 gl_next_as_first_directive=$gl_cv_next_stddef_h
14110 fi
14111 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
14112
14113
14114
14115
14116 fi
14117
14118
14119
14120
14121
14122
14123
14124 if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
14126 $as_echo_n "checking for working strerror function... " >&6; }
14127 if test "${gl_cv_func_working_strerror+set}" = set; then :
14128 $as_echo_n "(cached) " >&6
14129 else
14130 if test "$cross_compiling" = yes; then :
14131 case "$host_os" in
14132 # Guess yes on glibc systems.
14133 *-gnu*) gl_cv_func_working_strerror="guessing yes" ;;
14134 # If we don't know, assume the worst.
14135 *) gl_cv_func_working_strerror="guessing no" ;;
14136 esac
14137
14138 else
14139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14140 /* end confdefs.h. */
14141 #include <string.h>
14142
14143 int
14144 main ()
14145 {
14146 if (!*strerror (-2)) return 1;
14147 ;
14148 return 0;
14149 }
14150 _ACEOF
14151 if ac_fn_c_try_run "$LINENO"; then :
14152 gl_cv_func_working_strerror=yes
14153 else
14154 gl_cv_func_working_strerror=no
14155 fi
14156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14157 conftest.$ac_objext conftest.beam conftest.$ac_ext
14158 fi
14159
14160
14161 fi
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
14163 $as_echo "$gl_cv_func_working_strerror" >&6; }
14164 case "$gl_cv_func_working_strerror" in
14165 *yes) ;;
14166 *)
14167 REPLACE_STRERROR=1
14168 ;;
14169 esac
14170
14171 else
14172 REPLACE_STRERROR=1
14173 fi
14174
14175 if test $REPLACE_STRERROR = 1; then
14176
14177
14178
14179
14180
14181
14182
14183
14184 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
14185
14186 fi
14187
14188
14189 cat >>confdefs.h <<_ACEOF
14190 #define GNULIB_STRERROR 1
14191 _ACEOF
14192
14193
14194
14195
14196
14197
14198
14199 GNULIB_STRERROR=1
14200
14201
14202
14203
14204
14205 $as_echo "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
14206
14207
14208
14209
14210
14211 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
14212
14213
14214
14215
14216
14217
14218
14219
14220 gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
14221
14222
14223
14224
14225
14226 if test $ac_cv_header_sys_socket_h != yes; then
14227 for ac_header in winsock2.h
14228 do :
14229 ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
14230 if test "x$ac_cv_header_winsock2_h" = x""yes; then :
14231 cat >>confdefs.h <<_ACEOF
14232 #define HAVE_WINSOCK2_H 1
14233 _ACEOF
14234
14235 fi
14236
14237 done
14238
14239 fi
14240 if test "$ac_cv_header_winsock2_h" = yes; then
14241 HAVE_WINSOCK2_H=1
14242 UNISTD_H_HAVE_WINSOCK2_H=1
14243 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
14244 else
14245 HAVE_WINSOCK2_H=0
14246 fi
14247
14248
14249 fi
14250
14251
14252
14253
14254
14255 if test $REPLACE_STRSTR = 0; then
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works in linear time" >&5
14257 $as_echo_n "checking whether strstr works in linear time... " >&6; }
14258 if test "${gl_cv_func_strstr_linear+set}" = set; then :
14259 $as_echo_n "(cached) " >&6
14260 else
14261 if test "$cross_compiling" = yes; then :
14262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14263 /* end confdefs.h. */
14264
14265 #include <features.h>
14266 #ifdef __GNU_LIBRARY__
14267 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
14268 && !(defined __i386__ || defined __x86_64__) \
14269 && !defined __UCLIBC__
14270 Lucky user
14271 #endif
14272 #endif
14273 #ifdef __CYGWIN__
14274 #include <cygwin/version.h>
14275 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
14276 Lucky user
14277 #endif
14278 #endif
14279
14280 _ACEOF
14281 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14282 $EGREP "Lucky user" >/dev/null 2>&1; then :
14283 gl_cv_func_strstr_linear="guessing yes"
14284 else
14285 gl_cv_func_strstr_linear="guessing no"
14286 fi
14287 rm -f conftest*
14288
14289
14290 else
14291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14292 /* end confdefs.h. */
14293
14294 #include <signal.h> /* for signal */
14295 #include <string.h> /* for strstr */
14296 #include <stdlib.h> /* for malloc */
14297 #include <unistd.h> /* for alarm */
14298 static void quit (int sig) { exit (sig + 128); }
14299
14300 int
14301 main ()
14302 {
14303
14304 int result = 0;
14305 size_t m = 1000000;
14306 char *haystack = (char *) malloc (2 * m + 2);
14307 char *needle = (char *) malloc (m + 2);
14308 /* Failure to compile this test due to missing alarm is okay,
14309 since all such platforms (mingw) also have quadratic strstr. */
14310 signal (SIGALRM, quit);
14311 alarm (5);
14312 /* Check for quadratic performance. */
14313 if (haystack && needle)
14314 {
14315 memset (haystack, 'A', 2 * m);
14316 haystack[2 * m] = 'B';
14317 haystack[2 * m + 1] = 0;
14318 memset (needle, 'A', m);
14319 needle[m] = 'B';
14320 needle[m + 1] = 0;
14321 if (!strstr (haystack, needle))
14322 result |= 1;
14323 }
14324 return result;
14325
14326 ;
14327 return 0;
14328 }
14329 _ACEOF
14330 if ac_fn_c_try_run "$LINENO"; then :
14331 gl_cv_func_strstr_linear=yes
14332 else
14333 gl_cv_func_strstr_linear=no
14334 fi
14335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14336 conftest.$ac_objext conftest.beam conftest.$ac_ext
14337 fi
14338
14339
14340 fi
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_linear" >&5
14342 $as_echo "$gl_cv_func_strstr_linear" >&6; }
14343 case "$gl_cv_func_strstr_linear" in
14344 *yes) ;;
14345 *)
14346 REPLACE_STRSTR=1
14347 ;;
14348 esac
14349 fi
14350
14351 if test $REPLACE_STRSTR = 1; then
14352
14353
14354
14355
14356
14357
14358
14359
14360 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
14361
14362 fi
14363
14364
14365
14366 if test "$gl_cv_func_memchr_works" != yes; then
14367 REPLACE_STRSTR=1
14368 else
14369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strstr works" >&5
14370 $as_echo_n "checking whether strstr works... " >&6; }
14371 if test "${gl_cv_func_strstr_works_always+set}" = set; then :
14372 $as_echo_n "(cached) " >&6
14373 else
14374 if test "$cross_compiling" = yes; then :
14375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14376 /* end confdefs.h. */
14377
14378 #ifdef __GNU_LIBRARY__
14379 #include <features.h>
14380 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ > 12) || (__GLIBC__ > 2)) \
14381 || defined __UCLIBC__
14382 Lucky user
14383 #endif
14384 #elif defined __CYGWIN__
14385 #include <cygwin/version.h>
14386 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
14387 Lucky user
14388 #endif
14389 #else
14390 Lucky user
14391 #endif
14392
14393 _ACEOF
14394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14395 $EGREP "Lucky user" >/dev/null 2>&1; then :
14396 gl_cv_func_strstr_works_always="guessing yes"
14397 else
14398 gl_cv_func_strstr_works_always="guessing no"
14399 fi
14400 rm -f conftest*
14401
14402
14403 else
14404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405 /* end confdefs.h. */
14406
14407 #include <string.h> /* for strstr */
14408 #define P "_EF_BF_BD"
14409 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
14410 #define NEEDLE P P P P P
14411
14412 int
14413 main ()
14414 {
14415 return !!strstr (HAYSTACK, NEEDLE);
14416
14417 ;
14418 return 0;
14419 }
14420 _ACEOF
14421 if ac_fn_c_try_run "$LINENO"; then :
14422 gl_cv_func_strstr_works_always=yes
14423 else
14424 gl_cv_func_strstr_works_always=no
14425 fi
14426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14427 conftest.$ac_objext conftest.beam conftest.$ac_ext
14428 fi
14429
14430
14431 fi
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strstr_works_always" >&5
14433 $as_echo "$gl_cv_func_strstr_works_always" >&6; }
14434 case "$gl_cv_func_strstr_works_always" in
14435 *yes) ;;
14436 *)
14437 REPLACE_STRSTR=1
14438 ;;
14439 esac
14440 fi
14441
14442 if test $REPLACE_STRSTR = 1; then
14443
14444
14445
14446
14447
14448
14449
14450
14451 gl_LIBOBJS="$gl_LIBOBJS strstr.$ac_objext"
14452
14453 fi
14454
14455
14456
14457
14458
14459 GNULIB_STRSTR=1
14460
14461
14462
14463
14464
14465 $as_echo "#define GNULIB_TEST_STRSTR 1" >>confdefs.h
14466
14467
14468
14469
14470
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483 if test $gl_cv_have_include_next = yes; then
14484 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
14485 else
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
14487 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
14488 if test "${gl_cv_next_sys_stat_h+set}" = set; then :
14489 $as_echo_n "(cached) " >&6
14490 else
14491
14492 if test $ac_cv_header_sys_stat_h = yes; then
14493
14494
14495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14496 /* end confdefs.h. */
14497 #include <sys/stat.h>
14498
14499 _ACEOF
14500 case "$host_os" in
14501 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14502 *) gl_absname_cpp="$ac_cpp" ;;
14503 esac
14504
14505 case "$host_os" in
14506 mingw*)
14507 gl_dirsep_regex='[/\\]'
14508 ;;
14509 *)
14510 gl_dirsep_regex='\/'
14511 ;;
14512 esac
14513 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14514
14515 gl_header_literal_regex=`echo 'sys/stat.h' \
14516 | sed -e "$gl_make_literal_regex_sed"`
14517 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14518 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14519 s|^/[^/]|//&|
14520 p
14521 q
14522 }'
14523 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14524 sed -n "$gl_absolute_header_sed"`'"'
14525 else
14526 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
14527 fi
14528
14529
14530 fi
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
14532 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
14533 fi
14534 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
14535
14536 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14537 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14538 gl_next_as_first_directive='<'sys/stat.h'>'
14539 else
14540 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14541 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
14542 fi
14543 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
14544
14545
14546
14547
14548
14549
14550
14551
14552 WINDOWS_64_BIT_ST_SIZE=0
14553
14554
14555 if test $WINDOWS_64_BIT_ST_SIZE = 1; then
14556
14557 $as_echo "#define _GL_WINDOWS_64_BIT_ST_SIZE 1" >>confdefs.h
14558
14559 fi
14560
14561 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
14562 #include <sys/stat.h>
14563 "
14564 if test "x$ac_cv_type_nlink_t" = x""yes; then :
14565
14566 else
14567
14568 $as_echo "#define nlink_t int" >>confdefs.h
14569
14570 fi
14571
14572
14573
14574 for gl_func in fchmodat fstat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat mknod mknodat stat utimensat; do
14575 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14577 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14578 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14579 $as_echo_n "(cached) " >&6
14580 else
14581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14582 /* end confdefs.h. */
14583 #include <sys/stat.h>
14584
14585 int
14586 main ()
14587 {
14588 #undef $gl_func
14589 (void) $gl_func;
14590 ;
14591 return 0;
14592 }
14593 _ACEOF
14594 if ac_fn_c_try_compile "$LINENO"; then :
14595 eval "$as_gl_Symbol=yes"
14596 else
14597 eval "$as_gl_Symbol=no"
14598 fi
14599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14600 fi
14601 eval ac_res=\$$as_gl_Symbol
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14603 $as_echo "$ac_res" >&6; }
14604 eval as_val=\$$as_gl_Symbol
14605 if test "x$as_val" = x""yes; then :
14606 cat >>confdefs.h <<_ACEOF
14607 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14608 _ACEOF
14609
14610 eval ac_cv_have_decl_$gl_func=yes
14611 fi
14612 done
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627 if test $gl_cv_have_include_next = yes; then
14628 gl_cv_next_sys_types_h='<'sys/types.h'>'
14629 else
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
14631 $as_echo_n "checking absolute name of <sys/types.h>... " >&6; }
14632 if test "${gl_cv_next_sys_types_h+set}" = set; then :
14633 $as_echo_n "(cached) " >&6
14634 else
14635
14636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14637 /* end confdefs.h. */
14638 #include <sys/types.h>
14639
14640 _ACEOF
14641 case "$host_os" in
14642 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14643 *) gl_absname_cpp="$ac_cpp" ;;
14644 esac
14645
14646 case "$host_os" in
14647 mingw*)
14648 gl_dirsep_regex='[/\\]'
14649 ;;
14650 *)
14651 gl_dirsep_regex='\/'
14652 ;;
14653 esac
14654 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14655
14656 gl_header_literal_regex=`echo 'sys/types.h' \
14657 | sed -e "$gl_make_literal_regex_sed"`
14658 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14659 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14660 s|^/[^/]|//&|
14661 p
14662 q
14663 }'
14664 gl_cv_next_sys_types_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14665 sed -n "$gl_absolute_header_sed"`'"'
14666
14667
14668 fi
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
14670 $as_echo "$gl_cv_next_sys_types_h" >&6; }
14671 fi
14672 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
14673
14674 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14675 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14676 gl_next_as_first_directive='<'sys/types.h'>'
14677 else
14678 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14679 gl_next_as_first_directive=$gl_cv_next_sys_types_h
14680 fi
14681 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709 if test $gl_cv_have_include_next = yes; then
14710 gl_cv_next_unistd_h='<'unistd.h'>'
14711 else
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
14713 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
14714 if test "${gl_cv_next_unistd_h+set}" = set; then :
14715 $as_echo_n "(cached) " >&6
14716 else
14717
14718 if test $ac_cv_header_unistd_h = yes; then
14719
14720
14721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14722 /* end confdefs.h. */
14723 #include <unistd.h>
14724
14725 _ACEOF
14726 case "$host_os" in
14727 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14728 *) gl_absname_cpp="$ac_cpp" ;;
14729 esac
14730
14731 case "$host_os" in
14732 mingw*)
14733 gl_dirsep_regex='[/\\]'
14734 ;;
14735 *)
14736 gl_dirsep_regex='\/'
14737 ;;
14738 esac
14739 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14740
14741 gl_header_literal_regex=`echo 'unistd.h' \
14742 | sed -e "$gl_make_literal_regex_sed"`
14743 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14744 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14745 s|^/[^/]|//&|
14746 p
14747 q
14748 }'
14749 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14750 sed -n "$gl_absolute_header_sed"`'"'
14751 else
14752 gl_cv_next_unistd_h='<'unistd.h'>'
14753 fi
14754
14755
14756 fi
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
14758 $as_echo "$gl_cv_next_unistd_h" >&6; }
14759 fi
14760 NEXT_UNISTD_H=$gl_cv_next_unistd_h
14761
14762 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14763 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14764 gl_next_as_first_directive='<'unistd.h'>'
14765 else
14766 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14767 gl_next_as_first_directive=$gl_cv_next_unistd_h
14768 fi
14769 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
14770
14771
14772
14773
14774 if test $ac_cv_header_unistd_h = yes; then
14775 HAVE_UNISTD_H=1
14776 else
14777 HAVE_UNISTD_H=0
14778 fi
14779
14780
14781
14782
14783
14784
14785
14786 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
14787 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14789 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14790 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14791 $as_echo_n "(cached) " >&6
14792 else
14793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14794 /* end confdefs.h. */
14795
14796 #if HAVE_UNISTD_H
14797 # include <unistd.h>
14798 #endif
14799 /* Some systems declare various items in the wrong headers. */
14800 #if !(defined __GLIBC__ && !defined __UCLIBC__)
14801 # include <fcntl.h>
14802 # include <stdio.h>
14803 # include <stdlib.h>
14804 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
14805 # include <io.h>
14806 # endif
14807 #endif
14808
14809 int
14810 main ()
14811 {
14812 #undef $gl_func
14813 (void) $gl_func;
14814 ;
14815 return 0;
14816 }
14817 _ACEOF
14818 if ac_fn_c_try_compile "$LINENO"; then :
14819 eval "$as_gl_Symbol=yes"
14820 else
14821 eval "$as_gl_Symbol=no"
14822 fi
14823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14824 fi
14825 eval ac_res=\$$as_gl_Symbol
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14827 $as_echo "$ac_res" >&6; }
14828 eval as_val=\$$as_gl_Symbol
14829 if test "x$as_val" = x""yes; then :
14830 cat >>confdefs.h <<_ACEOF
14831 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14832 _ACEOF
14833
14834 eval ac_cv_have_decl_$gl_func=yes
14835 fi
14836 done
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851 if test $gl_cv_have_include_next = yes; then
14852 gl_cv_next_wchar_h='<'wchar.h'>'
14853 else
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
14855 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
14856 if test "${gl_cv_next_wchar_h+set}" = set; then :
14857 $as_echo_n "(cached) " >&6
14858 else
14859
14860 if test $ac_cv_header_wchar_h = yes; then
14861
14862
14863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14864 /* end confdefs.h. */
14865 #include <wchar.h>
14866
14867 _ACEOF
14868 case "$host_os" in
14869 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14870 *) gl_absname_cpp="$ac_cpp" ;;
14871 esac
14872
14873 case "$host_os" in
14874 mingw*)
14875 gl_dirsep_regex='[/\\]'
14876 ;;
14877 *)
14878 gl_dirsep_regex='\/'
14879 ;;
14880 esac
14881 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14882
14883 gl_header_literal_regex=`echo 'wchar.h' \
14884 | sed -e "$gl_make_literal_regex_sed"`
14885 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14886 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14887 s|^/[^/]|//&|
14888 p
14889 q
14890 }'
14891 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14892 sed -n "$gl_absolute_header_sed"`'"'
14893 else
14894 gl_cv_next_wchar_h='<'wchar.h'>'
14895 fi
14896
14897
14898 fi
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
14900 $as_echo "$gl_cv_next_wchar_h" >&6; }
14901 fi
14902 NEXT_WCHAR_H=$gl_cv_next_wchar_h
14903
14904 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14905 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14906 gl_next_as_first_directive='<'wchar.h'>'
14907 else
14908 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14909 gl_next_as_first_directive=$gl_cv_next_wchar_h
14910 fi
14911 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
14912
14913
14914
14915
14916 if test $ac_cv_header_wchar_h = yes; then
14917 HAVE_WCHAR_H=1
14918 else
14919 HAVE_WCHAR_H=0
14920 fi
14921
14922
14923
14924
14925
14926 if test $gt_cv_c_wint_t = yes; then
14927 HAVE_WINT_T=1
14928 else
14929 HAVE_WINT_T=0
14930 fi
14931
14932
14933
14934 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
14935 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
14937 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
14938 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
14939 $as_echo_n "(cached) " >&6
14940 else
14941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14942 /* end confdefs.h. */
14943
14944 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14945 <wchar.h>.
14946 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14947 included before <wchar.h>. */
14948 #if !(defined __GLIBC__ && !defined __UCLIBC__)
14949 # include <stddef.h>
14950 # include <stdio.h>
14951 # include <time.h>
14952 #endif
14953 #include <wchar.h>
14954
14955 int
14956 main ()
14957 {
14958 #undef $gl_func
14959 (void) $gl_func;
14960 ;
14961 return 0;
14962 }
14963 _ACEOF
14964 if ac_fn_c_try_compile "$LINENO"; then :
14965 eval "$as_gl_Symbol=yes"
14966 else
14967 eval "$as_gl_Symbol=no"
14968 fi
14969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14970 fi
14971 eval ac_res=\$$as_gl_Symbol
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14973 $as_echo "$ac_res" >&6; }
14974 eval as_val=\$$as_gl_Symbol
14975 if test "x$as_val" = x""yes; then :
14976 cat >>confdefs.h <<_ACEOF
14977 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
14978 _ACEOF
14979
14980 eval ac_cv_have_decl_$gl_func=yes
14981 fi
14982 done
14983
14984
14985
14986
14987
14988
14989
14990 if test $ac_cv_func_iswcntrl = yes; then
14991 HAVE_ISWCNTRL=1
14992 else
14993 HAVE_ISWCNTRL=0
14994 fi
14995
14996
14997
14998 if test $gt_cv_c_wint_t = yes; then
14999 HAVE_WINT_T=1
15000 else
15001 HAVE_WINT_T=0
15002 fi
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014 if test $gl_cv_have_include_next = yes; then
15015 gl_cv_next_wctype_h='<'wctype.h'>'
15016 else
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
15018 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
15019 if test "${gl_cv_next_wctype_h+set}" = set; then :
15020 $as_echo_n "(cached) " >&6
15021 else
15022
15023 if test $ac_cv_header_wctype_h = yes; then
15024
15025
15026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15027 /* end confdefs.h. */
15028 #include <wctype.h>
15029
15030 _ACEOF
15031 case "$host_os" in
15032 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15033 *) gl_absname_cpp="$ac_cpp" ;;
15034 esac
15035
15036 case "$host_os" in
15037 mingw*)
15038 gl_dirsep_regex='[/\\]'
15039 ;;
15040 *)
15041 gl_dirsep_regex='\/'
15042 ;;
15043 esac
15044 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15045
15046 gl_header_literal_regex=`echo 'wctype.h' \
15047 | sed -e "$gl_make_literal_regex_sed"`
15048 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15049 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15050 s|^/[^/]|//&|
15051 p
15052 q
15053 }'
15054 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15055 sed -n "$gl_absolute_header_sed"`'"'
15056 else
15057 gl_cv_next_wctype_h='<'wctype.h'>'
15058 fi
15059
15060
15061 fi
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
15063 $as_echo "$gl_cv_next_wctype_h" >&6; }
15064 fi
15065 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
15066
15067 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15068 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15069 gl_next_as_first_directive='<'wctype.h'>'
15070 else
15071 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15072 gl_next_as_first_directive=$gl_cv_next_wctype_h
15073 fi
15074 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
15075
15076
15077
15078
15079 if test $ac_cv_header_wctype_h = yes; then
15080 if test $ac_cv_func_iswcntrl = yes; then
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
15082 $as_echo_n "checking whether iswcntrl works... " >&6; }
15083 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
15084 $as_echo_n "(cached) " >&6
15085 else
15086
15087 if test "$cross_compiling" = yes; then :
15088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15089 /* end confdefs.h. */
15090 #include <stdlib.h>
15091 #if __GNU_LIBRARY__ == 1
15092 Linux libc5 i18n is broken.
15093 #endif
15094 int
15095 main ()
15096 {
15097
15098 ;
15099 return 0;
15100 }
15101 _ACEOF
15102 if ac_fn_c_try_compile "$LINENO"; then :
15103 gl_cv_func_iswcntrl_works="guessing yes"
15104 else
15105 gl_cv_func_iswcntrl_works="guessing no"
15106 fi
15107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15108
15109 else
15110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15111 /* end confdefs.h. */
15112
15113 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
15114 included before <wchar.h>.
15115 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
15116 must be included before <wchar.h>. */
15117 #include <stddef.h>
15118 #include <stdio.h>
15119 #include <time.h>
15120 #include <wchar.h>
15121 #include <wctype.h>
15122 int main () { return iswprint ('x') == 0; }
15123
15124 _ACEOF
15125 if ac_fn_c_try_run "$LINENO"; then :
15126 gl_cv_func_iswcntrl_works=yes
15127 else
15128 gl_cv_func_iswcntrl_works=no
15129 fi
15130 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15131 conftest.$ac_objext conftest.beam conftest.$ac_ext
15132 fi
15133
15134
15135 fi
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
15137 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
15138 fi
15139 HAVE_WCTYPE_H=1
15140 else
15141 HAVE_WCTYPE_H=0
15142 fi
15143
15144
15145 case "$gl_cv_func_iswcntrl_works" in
15146 *yes) REPLACE_ISWCNTRL=0 ;;
15147 *) REPLACE_ISWCNTRL=1 ;;
15148 esac
15149
15150
15151 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
15152 :
15153 fi
15154
15155 if test $REPLACE_ISWCNTRL = 1; then
15156 REPLACE_TOWLOWER=1
15157 else
15158 for ac_func in towlower
15159 do :
15160 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
15161 if test "x$ac_cv_func_towlower" = x""yes; then :
15162 cat >>confdefs.h <<_ACEOF
15163 #define HAVE_TOWLOWER 1
15164 _ACEOF
15165
15166 fi
15167 done
15168
15169 if test $ac_cv_func_towlower = yes; then
15170 REPLACE_TOWLOWER=0
15171 else
15172 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
15173 included before <wchar.h>.
15174 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
15175 must be included before <wchar.h>. */
15176 #include <stddef.h>
15177 #include <stdio.h>
15178 #include <time.h>
15179 #include <wchar.h>
15180 #if HAVE_WCTYPE_H
15181 # include <wctype.h>
15182 #endif
15183
15184 "
15185 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
15186 ac_have_decl=1
15187 else
15188 ac_have_decl=0
15189 fi
15190
15191 cat >>confdefs.h <<_ACEOF
15192 #define HAVE_DECL_TOWLOWER $ac_have_decl
15193 _ACEOF
15194
15195 if test $ac_cv_have_decl_towlower = yes; then
15196 REPLACE_TOWLOWER=1
15197 else
15198 REPLACE_TOWLOWER=0
15199 fi
15200 fi
15201 fi
15202
15203
15204 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
15205 :
15206 fi
15207
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
15209 $as_echo_n "checking for wctype_t... " >&6; }
15210 if test "${gl_cv_type_wctype_t+set}" = set; then :
15211 $as_echo_n "(cached) " >&6
15212 else
15213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15214 /* end confdefs.h. */
15215 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
15216 included before <wchar.h>.
15217 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
15218 must be included before <wchar.h>. */
15219 #include <stddef.h>
15220 #include <stdio.h>
15221 #include <time.h>
15222 #include <wchar.h>
15223 #if HAVE_WCTYPE_H
15224 # include <wctype.h>
15225 #endif
15226 wctype_t a;
15227
15228 int
15229 main ()
15230 {
15231
15232 ;
15233 return 0;
15234 }
15235 _ACEOF
15236 if ac_fn_c_try_compile "$LINENO"; then :
15237 gl_cv_type_wctype_t=yes
15238 else
15239 gl_cv_type_wctype_t=no
15240 fi
15241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15242
15243 fi
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
15245 $as_echo "$gl_cv_type_wctype_t" >&6; }
15246 if test $gl_cv_type_wctype_t = no; then
15247 HAVE_WCTYPE_T=0
15248 fi
15249
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
15251 $as_echo_n "checking for wctrans_t... " >&6; }
15252 if test "${gl_cv_type_wctrans_t+set}" = set; then :
15253 $as_echo_n "(cached) " >&6
15254 else
15255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15256 /* end confdefs.h. */
15257 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
15258 included before <wchar.h>.
15259 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
15260 must be included before <wchar.h>. */
15261 #include <stddef.h>
15262 #include <stdio.h>
15263 #include <time.h>
15264 #include <wchar.h>
15265 #include <wctype.h>
15266 wctrans_t a;
15267
15268 int
15269 main ()
15270 {
15271
15272 ;
15273 return 0;
15274 }
15275 _ACEOF
15276 if ac_fn_c_try_compile "$LINENO"; then :
15277 gl_cv_type_wctrans_t=yes
15278 else
15279 gl_cv_type_wctrans_t=no
15280 fi
15281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15282
15283 fi
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
15285 $as_echo "$gl_cv_type_wctrans_t" >&6; }
15286 if test $gl_cv_type_wctrans_t = no; then
15287 HAVE_WCTRANS_T=0
15288 fi
15289
15290
15291 for gl_func in wctype iswctype wctrans towctrans ; do
15292 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
15294 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15295 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
15296 $as_echo_n "(cached) " >&6
15297 else
15298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15299 /* end confdefs.h. */
15300
15301 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15302 <wchar.h>.
15303 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15304 included before <wchar.h>. */
15305 #if !(defined __GLIBC__ && !defined __UCLIBC__)
15306 # include <stddef.h>
15307 # include <stdio.h>
15308 # include <time.h>
15309 # include <wchar.h>
15310 #endif
15311 #include <wctype.h>
15312
15313 int
15314 main ()
15315 {
15316 #undef $gl_func
15317 (void) $gl_func;
15318 ;
15319 return 0;
15320 }
15321 _ACEOF
15322 if ac_fn_c_try_compile "$LINENO"; then :
15323 eval "$as_gl_Symbol=yes"
15324 else
15325 eval "$as_gl_Symbol=no"
15326 fi
15327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15328 fi
15329 eval ac_res=\$$as_gl_Symbol
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15331 $as_echo "$ac_res" >&6; }
15332 eval as_val=\$$as_gl_Symbol
15333 if test "x$as_val" = x""yes; then :
15334 cat >>confdefs.h <<_ACEOF
15335 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15336 _ACEOF
15337
15338 eval ac_cv_have_decl_$gl_func=yes
15339 fi
15340 done
15341
15342
15343 # End of code from modules
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353 gltests_libdeps=
15354 gltests_ltlibdeps=
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364 gl_source_base='tests'
15365 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
15366
15367 gl_module_indicator_condition=$gltests_WITNESS
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377 LIBGNU_LIBDEPS="$gl_libdeps"
15378
15379 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
15380
15381
15382
15383 # We don't use automake, but gnulib does. This line lets us generate
15384 # its Makefile.in.
15385 am__api_version='1.11'
15386
15387 # Find a good install program. We prefer a C program (faster),
15388 # so one script is as good as another. But avoid the broken or
15389 # incompatible versions:
15390 # SysV /etc/install, /usr/sbin/install
15391 # SunOS /usr/etc/install
15392 # IRIX /sbin/install
15393 # AIX /bin/install
15394 # AmigaOS /C/install, which installs bootblocks on floppy discs
15395 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15396 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
15397 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15398 # OS/2's system install, which has a completely different semantic
15399 # ./install, which can be erroneously created by make from ./install.sh.
15400 # Reject install programs that cannot install multiple files.
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
15402 $as_echo_n "checking for a BSD-compatible install... " >&6; }
15403 if test -z "$INSTALL"; then
15404 if test "${ac_cv_path_install+set}" = set; then :
15405 $as_echo_n "(cached) " >&6
15406 else
15407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15408 for as_dir in $PATH
15409 do
15410 IFS=$as_save_IFS
15411 test -z "$as_dir" && as_dir=.
15412 # Account for people who put trailing slashes in PATH elements.
15413 case $as_dir/ in #((
15414 ./ | .// | /[cC]/* | \
15415 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15416 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
15417 /usr/ucb/* ) ;;
15418 *)
15419 # OSF1 and SCO ODT 3.0 have their own names for install.
15420 # Don't use installbsd from OSF since it installs stuff as root
15421 # by default.
15422 for ac_prog in ginstall scoinst install; do
15423 for ac_exec_ext in '' $ac_executable_extensions; do
15424 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
15425 if test $ac_prog = install &&
15426 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15427 # AIX install. It has an incompatible calling convention.
15428 :
15429 elif test $ac_prog = install &&
15430 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15431 # program-specific install script used by HP pwplus--don't use.
15432 :
15433 else
15434 rm -rf conftest.one conftest.two conftest.dir
15435 echo one > conftest.one
15436 echo two > conftest.two
15437 mkdir conftest.dir
15438 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
15439 test -s conftest.one && test -s conftest.two &&
15440 test -s conftest.dir/conftest.one &&
15441 test -s conftest.dir/conftest.two
15442 then
15443 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15444 break 3
15445 fi
15446 fi
15447 fi
15448 done
15449 done
15450 ;;
15451 esac
15452
15453 done
15454 IFS=$as_save_IFS
15455
15456 rm -rf conftest.one conftest.two conftest.dir
15457
15458 fi
15459 if test "${ac_cv_path_install+set}" = set; then
15460 INSTALL=$ac_cv_path_install
15461 else
15462 # As a last resort, use the slow shell script. Don't cache a
15463 # value for INSTALL within a source directory, because that will
15464 # break other packages using the cache if that directory is
15465 # removed, or if the value is a relative name.
15466 INSTALL=$ac_install_sh
15467 fi
15468 fi
15469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
15470 $as_echo "$INSTALL" >&6; }
15471
15472 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15473 # It thinks the first close brace ends the variable substitution.
15474 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15475
15476 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15477
15478 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15479
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
15481 $as_echo_n "checking whether build environment is sane... " >&6; }
15482 # Just in case
15483 sleep 1
15484 echo timestamp > conftest.file
15485 # Reject unsafe characters in $srcdir or the absolute working directory
15486 # name. Accept space and tab only in the latter.
15487 am_lf='
15488 '
15489 case `pwd` in
15490 *[\\\"\#\$\&\'\`$am_lf]*)
15491 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
15492 esac
15493 case $srcdir in
15494 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
15495 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
15496 esac
15497
15498 # Do `set' in a subshell so we don't clobber the current shell's
15499 # arguments. Must try -L first in case configure is actually a
15500 # symlink; some systems play weird games with the mod time of symlinks
15501 # (eg FreeBSD returns the mod time of the symlink's containing
15502 # directory).
15503 if (
15504 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
15505 if test "$*" = "X"; then
15506 # -L didn't work.
15507 set X `ls -t "$srcdir/configure" conftest.file`
15508 fi
15509 rm -f conftest.file
15510 if test "$*" != "X $srcdir/configure conftest.file" \
15511 && test "$*" != "X conftest.file $srcdir/configure"; then
15512
15513 # If neither matched, then we have a broken ls. This can happen
15514 # if, for instance, CONFIG_SHELL is bash and it inherits a
15515 # broken ls alias from the environment. This has actually
15516 # happened. Such a system could not be considered "sane".
15517 as_fn_error "ls -t appears to fail. Make sure there is not a broken
15518 alias in your environment" "$LINENO" 5
15519 fi
15520
15521 test "$2" = conftest.file
15522 )
15523 then
15524 # Ok.
15525 :
15526 else
15527 as_fn_error "newly created file is older than distributed files!
15528 Check your system clock" "$LINENO" 5
15529 fi
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15531 $as_echo "yes" >&6; }
15532 test "$program_prefix" != NONE &&
15533 program_transform_name="s&^&$program_prefix&;$program_transform_name"
15534 # Use a double $ so make ignores it.
15535 test "$program_suffix" != NONE &&
15536 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
15537 # Double any \ or $.
15538 # By default was `s,x,x', remove it if useless.
15539 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
15540 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
15541
15542 # expand $ac_aux_dir to an absolute path
15543 am_aux_dir=`cd $ac_aux_dir && pwd`
15544
15545 if test x"${MISSING+set}" != xset; then
15546 case $am_aux_dir in
15547 *\ * | *\ *)
15548 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
15549 *)
15550 MISSING="\${SHELL} $am_aux_dir/missing" ;;
15551 esac
15552 fi
15553 # Use eval to expand $SHELL
15554 if eval "$MISSING --run true"; then
15555 am_missing_run="$MISSING --run "
15556 else
15557 am_missing_run=
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
15559 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
15560 fi
15561
15562 if test x"${install_sh}" != xset; then
15563 case $am_aux_dir in
15564 *\ * | *\ *)
15565 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
15566 *)
15567 install_sh="\${SHELL} $am_aux_dir/install-sh"
15568 esac
15569 fi
15570
15571 # Installed binaries are usually stripped using `strip' when the user
15572 # run `make install-strip'. However `strip' might not be the right
15573 # tool to use in cross-compilation environments, therefore Automake
15574 # will honor the `STRIP' environment variable to overrule this program.
15575 if test "$cross_compiling" != no; then
15576 if test -n "$ac_tool_prefix"; then
15577 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15578 set dummy ${ac_tool_prefix}strip; ac_word=$2
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15580 $as_echo_n "checking for $ac_word... " >&6; }
15581 if test "${ac_cv_prog_STRIP+set}" = set; then :
15582 $as_echo_n "(cached) " >&6
15583 else
15584 if test -n "$STRIP"; then
15585 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15586 else
15587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15588 for as_dir in $PATH
15589 do
15590 IFS=$as_save_IFS
15591 test -z "$as_dir" && as_dir=.
15592 for ac_exec_ext in '' $ac_executable_extensions; do
15593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15594 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15596 break 2
15597 fi
15598 done
15599 done
15600 IFS=$as_save_IFS
15601
15602 fi
15603 fi
15604 STRIP=$ac_cv_prog_STRIP
15605 if test -n "$STRIP"; then
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
15607 $as_echo "$STRIP" >&6; }
15608 else
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15610 $as_echo "no" >&6; }
15611 fi
15612
15613
15614 fi
15615 if test -z "$ac_cv_prog_STRIP"; then
15616 ac_ct_STRIP=$STRIP
15617 # Extract the first word of "strip", so it can be a program name with args.
15618 set dummy strip; ac_word=$2
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15620 $as_echo_n "checking for $ac_word... " >&6; }
15621 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
15622 $as_echo_n "(cached) " >&6
15623 else
15624 if test -n "$ac_ct_STRIP"; then
15625 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15626 else
15627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15628 for as_dir in $PATH
15629 do
15630 IFS=$as_save_IFS
15631 test -z "$as_dir" && as_dir=.
15632 for ac_exec_ext in '' $ac_executable_extensions; do
15633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15634 ac_cv_prog_ac_ct_STRIP="strip"
15635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15636 break 2
15637 fi
15638 done
15639 done
15640 IFS=$as_save_IFS
15641
15642 fi
15643 fi
15644 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15645 if test -n "$ac_ct_STRIP"; then
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
15647 $as_echo "$ac_ct_STRIP" >&6; }
15648 else
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15650 $as_echo "no" >&6; }
15651 fi
15652
15653 if test "x$ac_ct_STRIP" = x; then
15654 STRIP=":"
15655 else
15656 case $cross_compiling:$ac_tool_warned in
15657 yes:)
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15660 ac_tool_warned=yes ;;
15661 esac
15662 STRIP=$ac_ct_STRIP
15663 fi
15664 else
15665 STRIP="$ac_cv_prog_STRIP"
15666 fi
15667
15668 fi
15669 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
15670
15671 mkdir_p="$MKDIR_P"
15672 case $mkdir_p in
15673 [\\/$]* | ?:[\\/]*) ;;
15674 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
15675 esac
15676
15677 for ac_prog in gawk mawk nawk awk
15678 do
15679 # Extract the first word of "$ac_prog", so it can be a program name with args.
15680 set dummy $ac_prog; ac_word=$2
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15682 $as_echo_n "checking for $ac_word... " >&6; }
15683 if test "${ac_cv_prog_AWK+set}" = set; then :
15684 $as_echo_n "(cached) " >&6
15685 else
15686 if test -n "$AWK"; then
15687 ac_cv_prog_AWK="$AWK" # Let the user override the test.
15688 else
15689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15690 for as_dir in $PATH
15691 do
15692 IFS=$as_save_IFS
15693 test -z "$as_dir" && as_dir=.
15694 for ac_exec_ext in '' $ac_executable_extensions; do
15695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15696 ac_cv_prog_AWK="$ac_prog"
15697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15698 break 2
15699 fi
15700 done
15701 done
15702 IFS=$as_save_IFS
15703
15704 fi
15705 fi
15706 AWK=$ac_cv_prog_AWK
15707 if test -n "$AWK"; then
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
15709 $as_echo "$AWK" >&6; }
15710 else
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15712 $as_echo "no" >&6; }
15713 fi
15714
15715
15716 test -n "$AWK" && break
15717 done
15718
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
15720 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
15721 set x ${MAKE-make}
15722 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
15723 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
15724 $as_echo_n "(cached) " >&6
15725 else
15726 cat >conftest.make <<\_ACEOF
15727 SHELL = /bin/sh
15728 all:
15729 @echo '@@@%%%=$(MAKE)=@@@%%%'
15730 _ACEOF
15731 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
15732 case `${MAKE-make} -f conftest.make 2>/dev/null` in
15733 *@@@%%%=?*=@@@%%%*)
15734 eval ac_cv_prog_make_${ac_make}_set=yes;;
15735 *)
15736 eval ac_cv_prog_make_${ac_make}_set=no;;
15737 esac
15738 rm -f conftest.make
15739 fi
15740 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15742 $as_echo "yes" >&6; }
15743 SET_MAKE=
15744 else
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15746 $as_echo "no" >&6; }
15747 SET_MAKE="MAKE=${MAKE-make}"
15748 fi
15749
15750 rm -rf .tst 2>/dev/null
15751 mkdir .tst 2>/dev/null
15752 if test -d .tst; then
15753 am__leading_dot=.
15754 else
15755 am__leading_dot=_
15756 fi
15757 rmdir .tst 2>/dev/null
15758
15759 DEPDIR="${am__leading_dot}deps"
15760
15761 ac_config_commands="$ac_config_commands depfiles"
15762
15763
15764 am_make=${MAKE-make}
15765 cat > confinc << 'END'
15766 am__doit:
15767 @echo this is the am__doit target
15768 .PHONY: am__doit
15769 END
15770 # If we don't find an include directive, just comment out the code.
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
15772 $as_echo_n "checking for style of include used by $am_make... " >&6; }
15773 am__include="#"
15774 am__quote=
15775 _am_result=none
15776 # First try GNU make style include.
15777 echo "include confinc" > confmf
15778 # Ignore all kinds of additional output from `make'.
15779 case `$am_make -s -f confmf 2> /dev/null` in #(
15780 *the\ am__doit\ target*)
15781 am__include=include
15782 am__quote=
15783 _am_result=GNU
15784 ;;
15785 esac
15786 # Now try BSD make style include.
15787 if test "$am__include" = "#"; then
15788 echo '.include "confinc"' > confmf
15789 case `$am_make -s -f confmf 2> /dev/null` in #(
15790 *the\ am__doit\ target*)
15791 am__include=.include
15792 am__quote="\""
15793 _am_result=BSD
15794 ;;
15795 esac
15796 fi
15797
15798
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
15800 $as_echo "$_am_result" >&6; }
15801 rm -f confinc confmf
15802
15803 # Check whether --enable-dependency-tracking was given.
15804 if test "${enable_dependency_tracking+set}" = set; then :
15805 enableval=$enable_dependency_tracking;
15806 fi
15807
15808 if test "x$enable_dependency_tracking" != xno; then
15809 am_depcomp="$ac_aux_dir/depcomp"
15810 AMDEPBACKSLASH='\'
15811 fi
15812 if test "x$enable_dependency_tracking" != xno; then
15813 AMDEP_TRUE=
15814 AMDEP_FALSE='#'
15815 else
15816 AMDEP_TRUE='#'
15817 AMDEP_FALSE=
15818 fi
15819
15820
15821 if test "`cd $srcdir && pwd`" != "`pwd`"; then
15822 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
15823 # is not polluted with repeated "-I."
15824 am__isrc=' -I$(srcdir)'
15825 # test to see if srcdir already configured
15826 if test -f $srcdir/config.status; then
15827 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
15828 fi
15829 fi
15830
15831 # test whether we have cygpath
15832 if test -z "$CYGPATH_W"; then
15833 if (cygpath --version) >/dev/null 2>/dev/null; then
15834 CYGPATH_W='cygpath -w'
15835 else
15836 CYGPATH_W=echo
15837 fi
15838 fi
15839
15840
15841 # Define the identity of the package.
15842 PACKAGE=libgnu
15843 VERSION=UNUSED-VERSION
15844
15845
15846 # Some tools Automake needs.
15847
15848 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
15849
15850
15851 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
15852
15853
15854 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
15855
15856
15857 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
15858
15859
15860 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
15861
15862 # We need awk for the "check" target. The system "awk" is bad on
15863 # some platforms.
15864 # Always define AMTAR for backward compatibility.
15865
15866 AMTAR=${AMTAR-"${am_missing_run}tar"}
15867
15868 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
15869
15870
15871
15872
15873 depcc="$CC" am_compiler_list=
15874
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15876 $as_echo_n "checking dependency style of $depcc... " >&6; }
15877 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
15878 $as_echo_n "(cached) " >&6
15879 else
15880 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15881 # We make a subdir and do the tests there. Otherwise we can end up
15882 # making bogus files that we don't know about and never remove. For
15883 # instance it was reported that on HP-UX the gcc test will end up
15884 # making a dummy file named `D' -- because `-MD' means `put the output
15885 # in D'.
15886 mkdir conftest.dir
15887 # Copy depcomp to subdir because otherwise we won't find it if we're
15888 # using a relative directory.
15889 cp "$am_depcomp" conftest.dir
15890 cd conftest.dir
15891 # We will build objects and dependencies in a subdirectory because
15892 # it helps to detect inapplicable dependency modes. For instance
15893 # both Tru64's cc and ICC support -MD to output dependencies as a
15894 # side effect of compilation, but ICC will put the dependencies in
15895 # the current directory while Tru64 will put them in the object
15896 # directory.
15897 mkdir sub
15898
15899 am_cv_CC_dependencies_compiler_type=none
15900 if test "$am_compiler_list" = ""; then
15901 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15902 fi
15903 am__universal=false
15904 case " $depcc " in #(
15905 *\ -arch\ *\ -arch\ *) am__universal=true ;;
15906 esac
15907
15908 for depmode in $am_compiler_list; do
15909 # Setup a source with many dependencies, because some compilers
15910 # like to wrap large dependency lists on column 80 (with \), and
15911 # we should not choose a depcomp mode which is confused by this.
15912 #
15913 # We need to recreate these files for each test, as the compiler may
15914 # overwrite some of them when testing with obscure command lines.
15915 # This happens at least with the AIX C compiler.
15916 : > sub/conftest.c
15917 for i in 1 2 3 4 5 6; do
15918 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15919 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15920 # Solaris 8's {/usr,}/bin/sh.
15921 touch sub/conftst$i.h
15922 done
15923 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15924
15925 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15926 # mode. It turns out that the SunPro C++ compiler does not properly
15927 # handle `-M -o', and we need to detect this. Also, some Intel
15928 # versions had trouble with output in subdirs
15929 am__obj=sub/conftest.${OBJEXT-o}
15930 am__minus_obj="-o $am__obj"
15931 case $depmode in
15932 gcc)
15933 # This depmode causes a compiler race in universal mode.
15934 test "$am__universal" = false || continue
15935 ;;
15936 nosideeffect)
15937 # after this tag, mechanisms are not by side-effect, so they'll
15938 # only be used when explicitly requested
15939 if test "x$enable_dependency_tracking" = xyes; then
15940 continue
15941 else
15942 break
15943 fi
15944 ;;
15945 msvisualcpp | msvcmsys)
15946 # This compiler won't grok `-c -o', but also, the minuso test has
15947 # not run yet. These depmodes are late enough in the game, and
15948 # so weak that their functioning should not be impacted.
15949 am__obj=conftest.${OBJEXT-o}
15950 am__minus_obj=
15951 ;;
15952 none) break ;;
15953 esac
15954 if depmode=$depmode \
15955 source=sub/conftest.c object=$am__obj \
15956 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15957 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15958 >/dev/null 2>conftest.err &&
15959 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15960 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15961 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15962 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15963 # icc doesn't choke on unknown options, it will just issue warnings
15964 # or remarks (even with -Werror). So we grep stderr for any message
15965 # that says an option was ignored or not supported.
15966 # When given -MP, icc 7.0 and 7.1 complain thusly:
15967 # icc: Command line warning: ignoring option '-M'; no argument required
15968 # The diagnosis changed in icc 8.0:
15969 # icc: Command line remark: option '-MP' not supported
15970 if (grep 'ignoring option' conftest.err ||
15971 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15972 am_cv_CC_dependencies_compiler_type=$depmode
15973 break
15974 fi
15975 fi
15976 done
15977
15978 cd ..
15979 rm -rf conftest.dir
15980 else
15981 am_cv_CC_dependencies_compiler_type=none
15982 fi
15983
15984 fi
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
15986 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
15987 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
15988
15989 if
15990 test "x$enable_dependency_tracking" != xno \
15991 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
15992 am__fastdepCC_TRUE=
15993 am__fastdepCC_FALSE='#'
15994 else
15995 am__fastdepCC_TRUE='#'
15996 am__fastdepCC_FALSE=
15997 fi
15998
15999
16000
16001
16002 # --------------------- #
16003 # Checks for programs. #
16004 # --------------------- #
16005
16006
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
16008 $as_echo_n "checking whether ln -s works... " >&6; }
16009 LN_S=$as_ln_s
16010 if test "$LN_S" = "ln -s"; then
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16012 $as_echo "yes" >&6; }
16013 else
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
16015 $as_echo "no, using $LN_S" >&6; }
16016 fi
16017
16018 if test -n "$ac_tool_prefix"; then
16019 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
16020 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16022 $as_echo_n "checking for $ac_word... " >&6; }
16023 if test "${ac_cv_prog_RANLIB+set}" = set; then :
16024 $as_echo_n "(cached) " >&6
16025 else
16026 if test -n "$RANLIB"; then
16027 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
16028 else
16029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16030 for as_dir in $PATH
16031 do
16032 IFS=$as_save_IFS
16033 test -z "$as_dir" && as_dir=.
16034 for ac_exec_ext in '' $ac_executable_extensions; do
16035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16036 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
16037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16038 break 2
16039 fi
16040 done
16041 done
16042 IFS=$as_save_IFS
16043
16044 fi
16045 fi
16046 RANLIB=$ac_cv_prog_RANLIB
16047 if test -n "$RANLIB"; then
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
16049 $as_echo "$RANLIB" >&6; }
16050 else
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16052 $as_echo "no" >&6; }
16053 fi
16054
16055
16056 fi
16057 if test -z "$ac_cv_prog_RANLIB"; then
16058 ac_ct_RANLIB=$RANLIB
16059 # Extract the first word of "ranlib", so it can be a program name with args.
16060 set dummy ranlib; ac_word=$2
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16062 $as_echo_n "checking for $ac_word... " >&6; }
16063 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
16064 $as_echo_n "(cached) " >&6
16065 else
16066 if test -n "$ac_ct_RANLIB"; then
16067 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
16068 else
16069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16070 for as_dir in $PATH
16071 do
16072 IFS=$as_save_IFS
16073 test -z "$as_dir" && as_dir=.
16074 for ac_exec_ext in '' $ac_executable_extensions; do
16075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16076 ac_cv_prog_ac_ct_RANLIB="ranlib"
16077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16078 break 2
16079 fi
16080 done
16081 done
16082 IFS=$as_save_IFS
16083
16084 fi
16085 fi
16086 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
16087 if test -n "$ac_ct_RANLIB"; then
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
16089 $as_echo "$ac_ct_RANLIB" >&6; }
16090 else
16091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16092 $as_echo "no" >&6; }
16093 fi
16094
16095 if test "x$ac_ct_RANLIB" = x; then
16096 RANLIB=":"
16097 else
16098 case $cross_compiling:$ac_tool_warned in
16099 yes:)
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16102 ac_tool_warned=yes ;;
16103 esac
16104 RANLIB=$ac_ct_RANLIB
16105 fi
16106 else
16107 RANLIB="$ac_cv_prog_RANLIB"
16108 fi
16109
16110
16111 if test -n "$ac_tool_prefix"; then
16112 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
16113 set dummy ${ac_tool_prefix}ar; ac_word=$2
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16115 $as_echo_n "checking for $ac_word... " >&6; }
16116 if test "${ac_cv_prog_AR+set}" = set; then :
16117 $as_echo_n "(cached) " >&6
16118 else
16119 if test -n "$AR"; then
16120 ac_cv_prog_AR="$AR" # Let the user override the test.
16121 else
16122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16123 for as_dir in $PATH
16124 do
16125 IFS=$as_save_IFS
16126 test -z "$as_dir" && as_dir=.
16127 for ac_exec_ext in '' $ac_executable_extensions; do
16128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16129 ac_cv_prog_AR="${ac_tool_prefix}ar"
16130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16131 break 2
16132 fi
16133 done
16134 done
16135 IFS=$as_save_IFS
16136
16137 fi
16138 fi
16139 AR=$ac_cv_prog_AR
16140 if test -n "$AR"; then
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
16142 $as_echo "$AR" >&6; }
16143 else
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16145 $as_echo "no" >&6; }
16146 fi
16147
16148
16149 fi
16150 if test -z "$ac_cv_prog_AR"; then
16151 ac_ct_AR=$AR
16152 # Extract the first word of "ar", so it can be a program name with args.
16153 set dummy ar; ac_word=$2
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16155 $as_echo_n "checking for $ac_word... " >&6; }
16156 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
16157 $as_echo_n "(cached) " >&6
16158 else
16159 if test -n "$ac_ct_AR"; then
16160 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
16161 else
16162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16163 for as_dir in $PATH
16164 do
16165 IFS=$as_save_IFS
16166 test -z "$as_dir" && as_dir=.
16167 for ac_exec_ext in '' $ac_executable_extensions; do
16168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16169 ac_cv_prog_ac_ct_AR="ar"
16170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16171 break 2
16172 fi
16173 done
16174 done
16175 IFS=$as_save_IFS
16176
16177 fi
16178 fi
16179 ac_ct_AR=$ac_cv_prog_ac_ct_AR
16180 if test -n "$ac_ct_AR"; then
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
16182 $as_echo "$ac_ct_AR" >&6; }
16183 else
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16185 $as_echo "no" >&6; }
16186 fi
16187
16188 if test "x$ac_ct_AR" = x; then
16189 AR=""
16190 else
16191 case $cross_compiling:$ac_tool_warned in
16192 yes:)
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16195 ac_tool_warned=yes ;;
16196 esac
16197 AR=$ac_ct_AR
16198 fi
16199 else
16200 AR="$ac_cv_prog_AR"
16201 fi
16202
16203
16204 # ---------------------- #
16205 # Checks for libraries. #
16206 # ---------------------- #
16207
16208 ac_config_files="$ac_config_files Makefile import/Makefile"
16209
16210 ac_config_commands="$ac_config_commands default"
16211
16212 cat >confcache <<\_ACEOF
16213 # This file is a shell script that caches the results of configure
16214 # tests run on this system so they can be shared between configure
16215 # scripts and configure runs, see configure's option --config-cache.
16216 # It is not useful on other systems. If it contains results you don't
16217 # want to keep, you may remove or edit it.
16218 #
16219 # config.status only pays attention to the cache file if you give it
16220 # the --recheck option to rerun configure.
16221 #
16222 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16223 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16224 # following values.
16225
16226 _ACEOF
16227
16228 # The following way of writing the cache mishandles newlines in values,
16229 # but we know of no workaround that is simple, portable, and efficient.
16230 # So, we kill variables containing newlines.
16231 # Ultrix sh set writes to stderr and can't be redirected directly,
16232 # and sets the high bit in the cache file unless we assign to the vars.
16233 (
16234 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16235 eval ac_val=\$$ac_var
16236 case $ac_val in #(
16237 *${as_nl}*)
16238 case $ac_var in #(
16239 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16240 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16241 esac
16242 case $ac_var in #(
16243 _ | IFS | as_nl) ;; #(
16244 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16245 *) { eval $ac_var=; unset $ac_var;} ;;
16246 esac ;;
16247 esac
16248 done
16249
16250 (set) 2>&1 |
16251 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16252 *${as_nl}ac_space=\ *)
16253 # `set' does not quote correctly, so add quotes: double-quote
16254 # substitution turns \\\\ into \\, and sed turns \\ into \.
16255 sed -n \
16256 "s/'/'\\\\''/g;
16257 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16258 ;; #(
16259 *)
16260 # `set' quotes correctly as required by POSIX, so do not add quotes.
16261 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16262 ;;
16263 esac |
16264 sort
16265 ) |
16266 sed '
16267 /^ac_cv_env_/b end
16268 t clear
16269 :clear
16270 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16271 t end
16272 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16273 :end' >>confcache
16274 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16275 if test -w "$cache_file"; then
16276 test "x$cache_file" != "x/dev/null" &&
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16278 $as_echo "$as_me: updating cache $cache_file" >&6;}
16279 cat confcache >$cache_file
16280 else
16281 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16282 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16283 fi
16284 fi
16285 rm -f confcache
16286
16287 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16288 # Let make expand exec_prefix.
16289 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16290
16291 DEFS=-DHAVE_CONFIG_H
16292
16293 ac_libobjs=
16294 ac_ltlibobjs=
16295 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16296 # 1. Remove the extension, and $U if already installed.
16297 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16298 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16299 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16300 # will be set to the directory where LIBOBJS objects are built.
16301 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16302 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16303 done
16304 LIBOBJS=$ac_libobjs
16305
16306 LTLIBOBJS=$ac_ltlibobjs
16307
16308
16309 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16310 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
16311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16312 fi
16313 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
16314 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
16315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16316 fi
16317 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
16318 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
16319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16320 fi
16321 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
16322 as_fn_error "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
16323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16324 fi
16325 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
16326 as_fn_error "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
16327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16328 fi
16329 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
16330 as_fn_error "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
16331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16332 fi
16333 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
16334 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
16335 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16336 fi
16337
16338
16339 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
16340 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
16341 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16342 fi
16343 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
16344 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
16345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16346 fi
16347
16348 gl_libobjs=
16349 gl_ltlibobjs=
16350 if test -n "$gl_LIBOBJS"; then
16351 # Remove the extension.
16352 sed_drop_objext='s/\.o$//;s/\.obj$//'
16353 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16354 gl_libobjs="$gl_libobjs $i.$ac_objext"
16355 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
16356 done
16357 fi
16358 gl_LIBOBJS=$gl_libobjs
16359
16360 gl_LTLIBOBJS=$gl_ltlibobjs
16361
16362
16363
16364 gltests_libobjs=
16365 gltests_ltlibobjs=
16366 if test -n "$gltests_LIBOBJS"; then
16367 # Remove the extension.
16368 sed_drop_objext='s/\.o$//;s/\.obj$//'
16369 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
16370 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
16371 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
16372 done
16373 fi
16374 gltests_LIBOBJS=$gltests_libobjs
16375
16376 gltests_LTLIBOBJS=$gltests_ltlibobjs
16377
16378
16379 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16380 as_fn_error "conditional \"AMDEP\" was never defined.
16381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16382 fi
16383 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16384 as_fn_error "conditional \"am__fastdepCC\" was never defined.
16385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16386 fi
16387 if test -n "$EXEEXT"; then
16388 am__EXEEXT_TRUE=
16389 am__EXEEXT_FALSE='#'
16390 else
16391 am__EXEEXT_TRUE='#'
16392 am__EXEEXT_FALSE=
16393 fi
16394
16395
16396 : ${CONFIG_STATUS=./config.status}
16397 ac_write_fail=0
16398 ac_clean_files_save=$ac_clean_files
16399 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16401 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16402 as_write_fail=0
16403 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16404 #! $SHELL
16405 # Generated by $as_me.
16406 # Run this file to recreate the current configuration.
16407 # Compiler output produced by configure, useful for debugging
16408 # configure, is in config.log if it exists.
16409
16410 debug=false
16411 ac_cs_recheck=false
16412 ac_cs_silent=false
16413
16414 SHELL=\${CONFIG_SHELL-$SHELL}
16415 export SHELL
16416 _ASEOF
16417 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16418 ## -------------------- ##
16419 ## M4sh Initialization. ##
16420 ## -------------------- ##
16421
16422 # Be more Bourne compatible
16423 DUALCASE=1; export DUALCASE # for MKS sh
16424 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16425 emulate sh
16426 NULLCMD=:
16427 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16428 # is contrary to our usage. Disable this feature.
16429 alias -g '${1+"$@"}'='"$@"'
16430 setopt NO_GLOB_SUBST
16431 else
16432 case `(set -o) 2>/dev/null` in #(
16433 *posix*) :
16434 set -o posix ;; #(
16435 *) :
16436 ;;
16437 esac
16438 fi
16439
16440
16441 as_nl='
16442 '
16443 export as_nl
16444 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16445 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16446 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16447 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16448 # Prefer a ksh shell builtin over an external printf program on Solaris,
16449 # but without wasting forks for bash or zsh.
16450 if test -z "$BASH_VERSION$ZSH_VERSION" \
16451 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16452 as_echo='print -r --'
16453 as_echo_n='print -rn --'
16454 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16455 as_echo='printf %s\n'
16456 as_echo_n='printf %s'
16457 else
16458 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16459 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16460 as_echo_n='/usr/ucb/echo -n'
16461 else
16462 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16463 as_echo_n_body='eval
16464 arg=$1;
16465 case $arg in #(
16466 *"$as_nl"*)
16467 expr "X$arg" : "X\\(.*\\)$as_nl";
16468 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16469 esac;
16470 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16471 '
16472 export as_echo_n_body
16473 as_echo_n='sh -c $as_echo_n_body as_echo'
16474 fi
16475 export as_echo_body
16476 as_echo='sh -c $as_echo_body as_echo'
16477 fi
16478
16479 # The user is always right.
16480 if test "${PATH_SEPARATOR+set}" != set; then
16481 PATH_SEPARATOR=:
16482 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16483 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16484 PATH_SEPARATOR=';'
16485 }
16486 fi
16487
16488
16489 # IFS
16490 # We need space, tab and new line, in precisely that order. Quoting is
16491 # there to prevent editors from complaining about space-tab.
16492 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16493 # splitting by setting IFS to empty value.)
16494 IFS=" "" $as_nl"
16495
16496 # Find who we are. Look in the path if we contain no directory separator.
16497 case $0 in #((
16498 *[\\/]* ) as_myself=$0 ;;
16499 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16500 for as_dir in $PATH
16501 do
16502 IFS=$as_save_IFS
16503 test -z "$as_dir" && as_dir=.
16504 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16505 done
16506 IFS=$as_save_IFS
16507
16508 ;;
16509 esac
16510 # We did not find ourselves, most probably we were run as `sh COMMAND'
16511 # in which case we are not to be found in the path.
16512 if test "x$as_myself" = x; then
16513 as_myself=$0
16514 fi
16515 if test ! -f "$as_myself"; then
16516 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16517 exit 1
16518 fi
16519
16520 # Unset variables that we do not need and which cause bugs (e.g. in
16521 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16522 # suppresses any "Segmentation fault" message there. '((' could
16523 # trigger a bug in pdksh 5.2.14.
16524 for as_var in BASH_ENV ENV MAIL MAILPATH
16525 do eval test x\${$as_var+set} = xset \
16526 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16527 done
16528 PS1='$ '
16529 PS2='> '
16530 PS4='+ '
16531
16532 # NLS nuisances.
16533 LC_ALL=C
16534 export LC_ALL
16535 LANGUAGE=C
16536 export LANGUAGE
16537
16538 # CDPATH.
16539 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16540
16541
16542 # as_fn_error ERROR [LINENO LOG_FD]
16543 # ---------------------------------
16544 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16545 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16546 # script with status $?, using 1 if that was 0.
16547 as_fn_error ()
16548 {
16549 as_status=$?; test $as_status -eq 0 && as_status=1
16550 if test "$3"; then
16551 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16552 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
16553 fi
16554 $as_echo "$as_me: error: $1" >&2
16555 as_fn_exit $as_status
16556 } # as_fn_error
16557
16558
16559 # as_fn_set_status STATUS
16560 # -----------------------
16561 # Set $? to STATUS, without forking.
16562 as_fn_set_status ()
16563 {
16564 return $1
16565 } # as_fn_set_status
16566
16567 # as_fn_exit STATUS
16568 # -----------------
16569 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16570 as_fn_exit ()
16571 {
16572 set +e
16573 as_fn_set_status $1
16574 exit $1
16575 } # as_fn_exit
16576
16577 # as_fn_unset VAR
16578 # ---------------
16579 # Portably unset VAR.
16580 as_fn_unset ()
16581 {
16582 { eval $1=; unset $1;}
16583 }
16584 as_unset=as_fn_unset
16585 # as_fn_append VAR VALUE
16586 # ----------------------
16587 # Append the text in VALUE to the end of the definition contained in VAR. Take
16588 # advantage of any shell optimizations that allow amortized linear growth over
16589 # repeated appends, instead of the typical quadratic growth present in naive
16590 # implementations.
16591 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16592 eval 'as_fn_append ()
16593 {
16594 eval $1+=\$2
16595 }'
16596 else
16597 as_fn_append ()
16598 {
16599 eval $1=\$$1\$2
16600 }
16601 fi # as_fn_append
16602
16603 # as_fn_arith ARG...
16604 # ------------------
16605 # Perform arithmetic evaluation on the ARGs, and store the result in the
16606 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16607 # must be portable across $(()) and expr.
16608 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16609 eval 'as_fn_arith ()
16610 {
16611 as_val=$(( $* ))
16612 }'
16613 else
16614 as_fn_arith ()
16615 {
16616 as_val=`expr "$@" || test $? -eq 1`
16617 }
16618 fi # as_fn_arith
16619
16620
16621 if expr a : '\(a\)' >/dev/null 2>&1 &&
16622 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16623 as_expr=expr
16624 else
16625 as_expr=false
16626 fi
16627
16628 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16629 as_basename=basename
16630 else
16631 as_basename=false
16632 fi
16633
16634 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16635 as_dirname=dirname
16636 else
16637 as_dirname=false
16638 fi
16639
16640 as_me=`$as_basename -- "$0" ||
16641 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16642 X"$0" : 'X\(//\)$' \| \
16643 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16644 $as_echo X/"$0" |
16645 sed '/^.*\/\([^/][^/]*\)\/*$/{
16646 s//\1/
16647 q
16648 }
16649 /^X\/\(\/\/\)$/{
16650 s//\1/
16651 q
16652 }
16653 /^X\/\(\/\).*/{
16654 s//\1/
16655 q
16656 }
16657 s/.*/./; q'`
16658
16659 # Avoid depending upon Character Ranges.
16660 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16661 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16662 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16663 as_cr_digits='0123456789'
16664 as_cr_alnum=$as_cr_Letters$as_cr_digits
16665
16666 ECHO_C= ECHO_N= ECHO_T=
16667 case `echo -n x` in #(((((
16668 -n*)
16669 case `echo 'xy\c'` in
16670 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16671 xy) ECHO_C='\c';;
16672 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16673 ECHO_T=' ';;
16674 esac;;
16675 *)
16676 ECHO_N='-n';;
16677 esac
16678
16679 rm -f conf$$ conf$$.exe conf$$.file
16680 if test -d conf$$.dir; then
16681 rm -f conf$$.dir/conf$$.file
16682 else
16683 rm -f conf$$.dir
16684 mkdir conf$$.dir 2>/dev/null
16685 fi
16686 if (echo >conf$$.file) 2>/dev/null; then
16687 if ln -s conf$$.file conf$$ 2>/dev/null; then
16688 as_ln_s='ln -s'
16689 # ... but there are two gotchas:
16690 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16691 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16692 # In both cases, we have to default to `cp -p'.
16693 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16694 as_ln_s='cp -p'
16695 elif ln conf$$.file conf$$ 2>/dev/null; then
16696 as_ln_s=ln
16697 else
16698 as_ln_s='cp -p'
16699 fi
16700 else
16701 as_ln_s='cp -p'
16702 fi
16703 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16704 rmdir conf$$.dir 2>/dev/null
16705
16706
16707 # as_fn_mkdir_p
16708 # -------------
16709 # Create "$as_dir" as a directory, including parents if necessary.
16710 as_fn_mkdir_p ()
16711 {
16712
16713 case $as_dir in #(
16714 -*) as_dir=./$as_dir;;
16715 esac
16716 test -d "$as_dir" || eval $as_mkdir_p || {
16717 as_dirs=
16718 while :; do
16719 case $as_dir in #(
16720 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16721 *) as_qdir=$as_dir;;
16722 esac
16723 as_dirs="'$as_qdir' $as_dirs"
16724 as_dir=`$as_dirname -- "$as_dir" ||
16725 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16726 X"$as_dir" : 'X\(//\)[^/]' \| \
16727 X"$as_dir" : 'X\(//\)$' \| \
16728 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16729 $as_echo X"$as_dir" |
16730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16731 s//\1/
16732 q
16733 }
16734 /^X\(\/\/\)[^/].*/{
16735 s//\1/
16736 q
16737 }
16738 /^X\(\/\/\)$/{
16739 s//\1/
16740 q
16741 }
16742 /^X\(\/\).*/{
16743 s//\1/
16744 q
16745 }
16746 s/.*/./; q'`
16747 test -d "$as_dir" && break
16748 done
16749 test -z "$as_dirs" || eval "mkdir $as_dirs"
16750 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
16751
16752
16753 } # as_fn_mkdir_p
16754 if mkdir -p . 2>/dev/null; then
16755 as_mkdir_p='mkdir -p "$as_dir"'
16756 else
16757 test -d ./-p && rmdir ./-p
16758 as_mkdir_p=false
16759 fi
16760
16761 if test -x / >/dev/null 2>&1; then
16762 as_test_x='test -x'
16763 else
16764 if ls -dL / >/dev/null 2>&1; then
16765 as_ls_L_option=L
16766 else
16767 as_ls_L_option=
16768 fi
16769 as_test_x='
16770 eval sh -c '\''
16771 if test -d "$1"; then
16772 test -d "$1/.";
16773 else
16774 case $1 in #(
16775 -*)set "./$1";;
16776 esac;
16777 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
16778 ???[sx]*):;;*)false;;esac;fi
16779 '\'' sh
16780 '
16781 fi
16782 as_executable_p=$as_test_x
16783
16784 # Sed expression to map a string onto a valid CPP name.
16785 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16786
16787 # Sed expression to map a string onto a valid variable name.
16788 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16789
16790
16791 exec 6>&1
16792 ## ----------------------------------- ##
16793 ## Main body of $CONFIG_STATUS script. ##
16794 ## ----------------------------------- ##
16795 _ASEOF
16796 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16797
16798 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16799 # Save the log message, to keep $0 and so on meaningful, and to
16800 # report actual input values of CONFIG_FILES etc. instead of their
16801 # values after options handling.
16802 ac_log="
16803 This file was extended by $as_me, which was
16804 generated by GNU Autoconf 2.64. Invocation command line was
16805
16806 CONFIG_FILES = $CONFIG_FILES
16807 CONFIG_HEADERS = $CONFIG_HEADERS
16808 CONFIG_LINKS = $CONFIG_LINKS
16809 CONFIG_COMMANDS = $CONFIG_COMMANDS
16810 $ $0 $@
16811
16812 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16813 "
16814
16815 _ACEOF
16816
16817 case $ac_config_files in *"
16818 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16819 esac
16820
16821 case $ac_config_headers in *"
16822 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16823 esac
16824
16825
16826 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16827 # Files that config.status was made for.
16828 config_files="$ac_config_files"
16829 config_headers="$ac_config_headers"
16830 config_commands="$ac_config_commands"
16831
16832 _ACEOF
16833
16834 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16835 ac_cs_usage="\
16836 \`$as_me' instantiates files and other configuration actions
16837 from templates according to the current configuration. Unless the files
16838 and actions are specified as TAGs, all are instantiated by default.
16839
16840 Usage: $0 [OPTION]... [TAG]...
16841
16842 -h, --help print this help, then exit
16843 -V, --version print version number and configuration settings, then exit
16844 -q, --quiet, --silent
16845 do not print progress messages
16846 -d, --debug don't remove temporary files
16847 --recheck update $as_me by reconfiguring in the same conditions
16848 --file=FILE[:TEMPLATE]
16849 instantiate the configuration file FILE
16850 --header=FILE[:TEMPLATE]
16851 instantiate the configuration header FILE
16852
16853 Configuration files:
16854 $config_files
16855
16856 Configuration headers:
16857 $config_headers
16858
16859 Configuration commands:
16860 $config_commands
16861
16862 Report bugs to the package provider."
16863
16864 _ACEOF
16865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16866 ac_cs_version="\\
16867 config.status
16868 configured by $0, generated by GNU Autoconf 2.64,
16869 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16870
16871 Copyright (C) 2009 Free Software Foundation, Inc.
16872 This config.status script is free software; the Free Software Foundation
16873 gives unlimited permission to copy, distribute and modify it."
16874
16875 ac_pwd='$ac_pwd'
16876 srcdir='$srcdir'
16877 INSTALL='$INSTALL'
16878 MKDIR_P='$MKDIR_P'
16879 AWK='$AWK'
16880 test -n "\$AWK" || AWK=awk
16881 _ACEOF
16882
16883 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16884 # The default lists apply if the user does not specify any file.
16885 ac_need_defaults=:
16886 while test $# != 0
16887 do
16888 case $1 in
16889 --*=*)
16890 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16891 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16892 ac_shift=:
16893 ;;
16894 *)
16895 ac_option=$1
16896 ac_optarg=$2
16897 ac_shift=shift
16898 ;;
16899 esac
16900
16901 case $ac_option in
16902 # Handling of the options.
16903 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16904 ac_cs_recheck=: ;;
16905 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16906 $as_echo "$ac_cs_version"; exit ;;
16907 --debug | --debu | --deb | --de | --d | -d )
16908 debug=: ;;
16909 --file | --fil | --fi | --f )
16910 $ac_shift
16911 case $ac_optarg in
16912 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16913 esac
16914 as_fn_append CONFIG_FILES " '$ac_optarg'"
16915 ac_need_defaults=false;;
16916 --header | --heade | --head | --hea )
16917 $ac_shift
16918 case $ac_optarg in
16919 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16920 esac
16921 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16922 ac_need_defaults=false;;
16923 --he | --h)
16924 # Conflict between --help and --header
16925 as_fn_error "ambiguous option: \`$1'
16926 Try \`$0 --help' for more information.";;
16927 --help | --hel | -h )
16928 $as_echo "$ac_cs_usage"; exit ;;
16929 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16930 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16931 ac_cs_silent=: ;;
16932
16933 # This is an error.
16934 -*) as_fn_error "unrecognized option: \`$1'
16935 Try \`$0 --help' for more information." ;;
16936
16937 *) as_fn_append ac_config_targets " $1"
16938 ac_need_defaults=false ;;
16939
16940 esac
16941 shift
16942 done
16943
16944 ac_configure_extra_args=
16945
16946 if $ac_cs_silent; then
16947 exec 6>/dev/null
16948 ac_configure_extra_args="$ac_configure_extra_args --silent"
16949 fi
16950
16951 _ACEOF
16952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16953 if \$ac_cs_recheck; then
16954 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16955 shift
16956 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16957 CONFIG_SHELL='$SHELL'
16958 export CONFIG_SHELL
16959 exec "\$@"
16960 fi
16961
16962 _ACEOF
16963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16964 exec 5>>config.log
16965 {
16966 echo
16967 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16968 ## Running $as_me. ##
16969 _ASBOX
16970 $as_echo "$ac_log"
16971 } >&5
16972
16973 _ACEOF
16974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16975 #
16976 # INIT-COMMANDS
16977 #
16978 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16979
16980 _ACEOF
16981
16982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16983
16984 # Handling of arguments.
16985 for ac_config_target in $ac_config_targets
16986 do
16987 case $ac_config_target in
16988 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16989 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16990 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16991 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
16992 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16993
16994 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16995 esac
16996 done
16997
16998
16999 # If the user did not use the arguments to specify the items to instantiate,
17000 # then the envvar interface is used. Set only those that are not.
17001 # We use the long form for the default assignment because of an extremely
17002 # bizarre bug on SunOS 4.1.3.
17003 if $ac_need_defaults; then
17004 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17005 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17006 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17007 fi
17008
17009 # Have a temporary directory for convenience. Make it in the build tree
17010 # simply because there is no reason against having it here, and in addition,
17011 # creating and moving files from /tmp can sometimes cause problems.
17012 # Hook for its removal unless debugging.
17013 # Note that there is a small window in which the directory will not be cleaned:
17014 # after its creation but before its name has been assigned to `$tmp'.
17015 $debug ||
17016 {
17017 tmp=
17018 trap 'exit_status=$?
17019 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17020 ' 0
17021 trap 'as_fn_exit 1' 1 2 13 15
17022 }
17023 # Create a (secure) tmp directory for tmp files.
17024
17025 {
17026 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17027 test -n "$tmp" && test -d "$tmp"
17028 } ||
17029 {
17030 tmp=./conf$$-$RANDOM
17031 (umask 077 && mkdir "$tmp")
17032 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17033
17034 # Set up the scripts for CONFIG_FILES section.
17035 # No need to generate them if there are no CONFIG_FILES.
17036 # This happens for instance with `./config.status config.h'.
17037 if test -n "$CONFIG_FILES"; then
17038
17039
17040 ac_cr=`echo X | tr X '\015'`
17041 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17042 # But we know of no other shell where ac_cr would be empty at this
17043 # point, so we can use a bashism as a fallback.
17044 if test "x$ac_cr" = x; then
17045 eval ac_cr=\$\'\\r\'
17046 fi
17047 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17048 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17049 ac_cs_awk_cr='\r'
17050 else
17051 ac_cs_awk_cr=$ac_cr
17052 fi
17053
17054 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17055 _ACEOF
17056
17057
17058 {
17059 echo "cat >conf$$subs.awk <<_ACEOF" &&
17060 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17061 echo "_ACEOF"
17062 } >conf$$subs.sh ||
17063 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17064 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17065 ac_delim='%!_!# '
17066 for ac_last_try in false false false false false :; do
17067 . ./conf$$subs.sh ||
17068 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17069
17070 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17071 if test $ac_delim_n = $ac_delim_num; then
17072 break
17073 elif $ac_last_try; then
17074 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17075 else
17076 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17077 fi
17078 done
17079 rm -f conf$$subs.sh
17080
17081 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17082 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17083 _ACEOF
17084 sed -n '
17085 h
17086 s/^/S["/; s/!.*/"]=/
17087 p
17088 g
17089 s/^[^!]*!//
17090 :repl
17091 t repl
17092 s/'"$ac_delim"'$//
17093 t delim
17094 :nl
17095 h
17096 s/\(.\{148\}\).*/\1/
17097 t more1
17098 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17099 p
17100 n
17101 b repl
17102 :more1
17103 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17104 p
17105 g
17106 s/.\{148\}//
17107 t nl
17108 :delim
17109 h
17110 s/\(.\{148\}\).*/\1/
17111 t more2
17112 s/["\\]/\\&/g; s/^/"/; s/$/"/
17113 p
17114 b
17115 :more2
17116 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17117 p
17118 g
17119 s/.\{148\}//
17120 t delim
17121 ' <conf$$subs.awk | sed '
17122 /^[^""]/{
17123 N
17124 s/\n//
17125 }
17126 ' >>$CONFIG_STATUS || ac_write_fail=1
17127 rm -f conf$$subs.awk
17128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17129 _ACAWK
17130 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17131 for (key in S) S_is_set[key] = 1
17132 FS = "\a"
17133
17134 }
17135 {
17136 line = $ 0
17137 nfields = split(line, field, "@")
17138 substed = 0
17139 len = length(field[1])
17140 for (i = 2; i < nfields; i++) {
17141 key = field[i]
17142 keylen = length(key)
17143 if (S_is_set[key]) {
17144 value = S[key]
17145 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17146 len += length(value) + length(field[++i])
17147 substed = 1
17148 } else
17149 len += 1 + keylen
17150 }
17151
17152 print line
17153 }
17154
17155 _ACAWK
17156 _ACEOF
17157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17158 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17159 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17160 else
17161 cat
17162 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17163 || as_fn_error "could not setup config files machinery" "$LINENO" 5
17164 _ACEOF
17165
17166 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17167 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17168 # trailing colons and then remove the whole line if VPATH becomes empty
17169 # (actually we leave an empty line to preserve line numbers).
17170 if test "x$srcdir" = x.; then
17171 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17172 s/:*\$(srcdir):*/:/
17173 s/:*\${srcdir}:*/:/
17174 s/:*@srcdir@:*/:/
17175 s/^\([^=]*=[ ]*\):*/\1/
17176 s/:*$//
17177 s/^[^=]*=[ ]*$//
17178 }'
17179 fi
17180
17181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17182 fi # test -n "$CONFIG_FILES"
17183
17184 # Set up the scripts for CONFIG_HEADERS section.
17185 # No need to generate them if there are no CONFIG_HEADERS.
17186 # This happens for instance with `./config.status Makefile'.
17187 if test -n "$CONFIG_HEADERS"; then
17188 cat >"$tmp/defines.awk" <<\_ACAWK ||
17189 BEGIN {
17190 _ACEOF
17191
17192 # Transform confdefs.h into an awk script `defines.awk', embedded as
17193 # here-document in config.status, that substitutes the proper values into
17194 # config.h.in to produce config.h.
17195
17196 # Create a delimiter string that does not exist in confdefs.h, to ease
17197 # handling of long lines.
17198 ac_delim='%!_!# '
17199 for ac_last_try in false false :; do
17200 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
17201 if test -z "$ac_t"; then
17202 break
17203 elif $ac_last_try; then
17204 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
17205 else
17206 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17207 fi
17208 done
17209
17210 # For the awk script, D is an array of macro values keyed by name,
17211 # likewise P contains macro parameters if any. Preserve backslash
17212 # newline sequences.
17213
17214 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17215 sed -n '
17216 s/.\{148\}/&'"$ac_delim"'/g
17217 t rset
17218 :rset
17219 s/^[ ]*#[ ]*define[ ][ ]*/ /
17220 t def
17221 d
17222 :def
17223 s/\\$//
17224 t bsnl
17225 s/["\\]/\\&/g
17226 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17227 D["\1"]=" \3"/p
17228 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17229 d
17230 :bsnl
17231 s/["\\]/\\&/g
17232 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17233 D["\1"]=" \3\\\\\\n"\\/p
17234 t cont
17235 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17236 t cont
17237 d
17238 :cont
17239 n
17240 s/.\{148\}/&'"$ac_delim"'/g
17241 t clear
17242 :clear
17243 s/\\$//
17244 t bsnlc
17245 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17246 d
17247 :bsnlc
17248 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17249 b cont
17250 ' <confdefs.h | sed '
17251 s/'"$ac_delim"'/"\\\
17252 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17253
17254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17255 for (key in D) D_is_set[key] = 1
17256 FS = "\a"
17257 }
17258 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17259 line = \$ 0
17260 split(line, arg, " ")
17261 if (arg[1] == "#") {
17262 defundef = arg[2]
17263 mac1 = arg[3]
17264 } else {
17265 defundef = substr(arg[1], 2)
17266 mac1 = arg[2]
17267 }
17268 split(mac1, mac2, "(") #)
17269 macro = mac2[1]
17270 prefix = substr(line, 1, index(line, defundef) - 1)
17271 if (D_is_set[macro]) {
17272 # Preserve the white space surrounding the "#".
17273 print prefix "define", macro P[macro] D[macro]
17274 next
17275 } else {
17276 # Replace #undef with comments. This is necessary, for example,
17277 # in the case of _POSIX_SOURCE, which is predefined and required
17278 # on some systems where configure will not decide to define it.
17279 if (defundef == "undef") {
17280 print "/*", prefix defundef, macro, "*/"
17281 next
17282 }
17283 }
17284 }
17285 { print }
17286 _ACAWK
17287 _ACEOF
17288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17289 as_fn_error "could not setup config headers machinery" "$LINENO" 5
17290 fi # test -n "$CONFIG_HEADERS"
17291
17292
17293 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17294 shift
17295 for ac_tag
17296 do
17297 case $ac_tag in
17298 :[FHLC]) ac_mode=$ac_tag; continue;;
17299 esac
17300 case $ac_mode$ac_tag in
17301 :[FHL]*:*);;
17302 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
17303 :[FH]-) ac_tag=-:-;;
17304 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17305 esac
17306 ac_save_IFS=$IFS
17307 IFS=:
17308 set x $ac_tag
17309 IFS=$ac_save_IFS
17310 shift
17311 ac_file=$1
17312 shift
17313
17314 case $ac_mode in
17315 :L) ac_source=$1;;
17316 :[FH])
17317 ac_file_inputs=
17318 for ac_f
17319 do
17320 case $ac_f in
17321 -) ac_f="$tmp/stdin";;
17322 *) # Look for the file first in the build tree, then in the source tree
17323 # (if the path is not absolute). The absolute path cannot be DOS-style,
17324 # because $ac_f cannot contain `:'.
17325 test -f "$ac_f" ||
17326 case $ac_f in
17327 [\\/$]*) false;;
17328 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17329 esac ||
17330 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17331 esac
17332 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17333 as_fn_append ac_file_inputs " '$ac_f'"
17334 done
17335
17336 # Let's still pretend it is `configure' which instantiates (i.e., don't
17337 # use $as_me), people would be surprised to read:
17338 # /* config.h. Generated by config.status. */
17339 configure_input='Generated from '`
17340 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17341 `' by configure.'
17342 if test x"$ac_file" != x-; then
17343 configure_input="$ac_file. $configure_input"
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17345 $as_echo "$as_me: creating $ac_file" >&6;}
17346 fi
17347 # Neutralize special characters interpreted by sed in replacement strings.
17348 case $configure_input in #(
17349 *\&* | *\|* | *\\* )
17350 ac_sed_conf_input=`$as_echo "$configure_input" |
17351 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17352 *) ac_sed_conf_input=$configure_input;;
17353 esac
17354
17355 case $ac_tag in
17356 *:-:* | *:-) cat >"$tmp/stdin" \
17357 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
17358 esac
17359 ;;
17360 esac
17361
17362 ac_dir=`$as_dirname -- "$ac_file" ||
17363 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17364 X"$ac_file" : 'X\(//\)[^/]' \| \
17365 X"$ac_file" : 'X\(//\)$' \| \
17366 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17367 $as_echo X"$ac_file" |
17368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17369 s//\1/
17370 q
17371 }
17372 /^X\(\/\/\)[^/].*/{
17373 s//\1/
17374 q
17375 }
17376 /^X\(\/\/\)$/{
17377 s//\1/
17378 q
17379 }
17380 /^X\(\/\).*/{
17381 s//\1/
17382 q
17383 }
17384 s/.*/./; q'`
17385 as_dir="$ac_dir"; as_fn_mkdir_p
17386 ac_builddir=.
17387
17388 case "$ac_dir" in
17389 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17390 *)
17391 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17392 # A ".." for each directory in $ac_dir_suffix.
17393 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17394 case $ac_top_builddir_sub in
17395 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17396 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17397 esac ;;
17398 esac
17399 ac_abs_top_builddir=$ac_pwd
17400 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17401 # for backward compatibility:
17402 ac_top_builddir=$ac_top_build_prefix
17403
17404 case $srcdir in
17405 .) # We are building in place.
17406 ac_srcdir=.
17407 ac_top_srcdir=$ac_top_builddir_sub
17408 ac_abs_top_srcdir=$ac_pwd ;;
17409 [\\/]* | ?:[\\/]* ) # Absolute name.
17410 ac_srcdir=$srcdir$ac_dir_suffix;
17411 ac_top_srcdir=$srcdir
17412 ac_abs_top_srcdir=$srcdir ;;
17413 *) # Relative name.
17414 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17415 ac_top_srcdir=$ac_top_build_prefix$srcdir
17416 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17417 esac
17418 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17419
17420
17421 case $ac_mode in
17422 :F)
17423 #
17424 # CONFIG_FILE
17425 #
17426
17427 case $INSTALL in
17428 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17429 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17430 esac
17431 ac_MKDIR_P=$MKDIR_P
17432 case $MKDIR_P in
17433 [\\/$]* | ?:[\\/]* ) ;;
17434 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17435 esac
17436 _ACEOF
17437
17438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17439 # If the template does not know about datarootdir, expand it.
17440 # FIXME: This hack should be removed a few years after 2.60.
17441 ac_datarootdir_hack=; ac_datarootdir_seen=
17442 ac_sed_dataroot='
17443 /datarootdir/ {
17444 p
17445 q
17446 }
17447 /@datadir@/p
17448 /@docdir@/p
17449 /@infodir@/p
17450 /@localedir@/p
17451 /@mandir@/p'
17452 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17453 *datarootdir*) ac_datarootdir_seen=yes;;
17454 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17456 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17457 _ACEOF
17458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17459 ac_datarootdir_hack='
17460 s&@datadir@&$datadir&g
17461 s&@docdir@&$docdir&g
17462 s&@infodir@&$infodir&g
17463 s&@localedir@&$localedir&g
17464 s&@mandir@&$mandir&g
17465 s&\\\${datarootdir}&$datarootdir&g' ;;
17466 esac
17467 _ACEOF
17468
17469 # Neutralize VPATH when `$srcdir' = `.'.
17470 # Shell code in configure.ac might set extrasub.
17471 # FIXME: do we really want to maintain this feature?
17472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17473 ac_sed_extra="$ac_vpsub
17474 $extrasub
17475 _ACEOF
17476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17477 :t
17478 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17479 s|@configure_input@|$ac_sed_conf_input|;t t
17480 s&@top_builddir@&$ac_top_builddir_sub&;t t
17481 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17482 s&@srcdir@&$ac_srcdir&;t t
17483 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17484 s&@top_srcdir@&$ac_top_srcdir&;t t
17485 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17486 s&@builddir@&$ac_builddir&;t t
17487 s&@abs_builddir@&$ac_abs_builddir&;t t
17488 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17489 s&@INSTALL@&$ac_INSTALL&;t t
17490 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17491 $ac_datarootdir_hack
17492 "
17493 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
17494 || as_fn_error "could not create $ac_file" "$LINENO" 5
17495
17496 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17497 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17498 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17500 which seems to be undefined. Please make sure it is defined." >&5
17501 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17502 which seems to be undefined. Please make sure it is defined." >&2;}
17503
17504 rm -f "$tmp/stdin"
17505 case $ac_file in
17506 -) cat "$tmp/out" && rm -f "$tmp/out";;
17507 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17508 esac \
17509 || as_fn_error "could not create $ac_file" "$LINENO" 5
17510 ;;
17511 :H)
17512 #
17513 # CONFIG_HEADER
17514 #
17515 if test x"$ac_file" != x-; then
17516 {
17517 $as_echo "/* $configure_input */" \
17518 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
17519 } >"$tmp/config.h" \
17520 || as_fn_error "could not create $ac_file" "$LINENO" 5
17521 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17523 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17524 else
17525 rm -f "$ac_file"
17526 mv "$tmp/config.h" "$ac_file" \
17527 || as_fn_error "could not create $ac_file" "$LINENO" 5
17528 fi
17529 else
17530 $as_echo "/* $configure_input */" \
17531 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
17532 || as_fn_error "could not create -" "$LINENO" 5
17533 fi
17534 # Compute "$ac_file"'s index in $config_headers.
17535 _am_arg="$ac_file"
17536 _am_stamp_count=1
17537 for _am_header in $config_headers :; do
17538 case $_am_header in
17539 $_am_arg | $_am_arg:* )
17540 break ;;
17541 * )
17542 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17543 esac
17544 done
17545 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17546 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17547 X"$_am_arg" : 'X\(//\)[^/]' \| \
17548 X"$_am_arg" : 'X\(//\)$' \| \
17549 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17550 $as_echo X"$_am_arg" |
17551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17552 s//\1/
17553 q
17554 }
17555 /^X\(\/\/\)[^/].*/{
17556 s//\1/
17557 q
17558 }
17559 /^X\(\/\/\)$/{
17560 s//\1/
17561 q
17562 }
17563 /^X\(\/\).*/{
17564 s//\1/
17565 q
17566 }
17567 s/.*/./; q'`/stamp-h$_am_stamp_count
17568 ;;
17569
17570 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17571 $as_echo "$as_me: executing $ac_file commands" >&6;}
17572 ;;
17573 esac
17574
17575
17576 case $ac_file$ac_mode in
17577 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17578 # Autoconf 2.62 quotes --file arguments for eval, but not when files
17579 # are listed without --file. Let's play safe and only enable the eval
17580 # if we detect the quoting.
17581 case $CONFIG_FILES in
17582 *\'*) eval set x "$CONFIG_FILES" ;;
17583 *) set x $CONFIG_FILES ;;
17584 esac
17585 shift
17586 for mf
17587 do
17588 # Strip MF so we end up with the name of the file.
17589 mf=`echo "$mf" | sed -e 's/:.*$//'`
17590 # Check whether this is an Automake generated Makefile or not.
17591 # We used to match only the files named `Makefile.in', but
17592 # some people rename them; so instead we look at the file content.
17593 # Grep'ing the first line is not enough: some people post-process
17594 # each Makefile.in and add a new line on top of each file to say so.
17595 # Grep'ing the whole file is not good either: AIX grep has a line
17596 # limit of 2048, but all sed's we know have understand at least 4000.
17597 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17598 dirpart=`$as_dirname -- "$mf" ||
17599 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17600 X"$mf" : 'X\(//\)[^/]' \| \
17601 X"$mf" : 'X\(//\)$' \| \
17602 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17603 $as_echo X"$mf" |
17604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17605 s//\1/
17606 q
17607 }
17608 /^X\(\/\/\)[^/].*/{
17609 s//\1/
17610 q
17611 }
17612 /^X\(\/\/\)$/{
17613 s//\1/
17614 q
17615 }
17616 /^X\(\/\).*/{
17617 s//\1/
17618 q
17619 }
17620 s/.*/./; q'`
17621 else
17622 continue
17623 fi
17624 # Extract the definition of DEPDIR, am__include, and am__quote
17625 # from the Makefile without running `make'.
17626 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17627 test -z "$DEPDIR" && continue
17628 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17629 test -z "am__include" && continue
17630 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17631 # When using ansi2knr, U may be empty or an underscore; expand it
17632 U=`sed -n 's/^U = //p' < "$mf"`
17633 # Find all dependency output files, they are included files with
17634 # $(DEPDIR) in their names. We invoke sed twice because it is the
17635 # simplest approach to changing $(DEPDIR) to its actual value in the
17636 # expansion.
17637 for file in `sed -n "
17638 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17639 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17640 # Make sure the directory exists.
17641 test -f "$dirpart/$file" && continue
17642 fdir=`$as_dirname -- "$file" ||
17643 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17644 X"$file" : 'X\(//\)[^/]' \| \
17645 X"$file" : 'X\(//\)$' \| \
17646 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17647 $as_echo X"$file" |
17648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17649 s//\1/
17650 q
17651 }
17652 /^X\(\/\/\)[^/].*/{
17653 s//\1/
17654 q
17655 }
17656 /^X\(\/\/\)$/{
17657 s//\1/
17658 q
17659 }
17660 /^X\(\/\).*/{
17661 s//\1/
17662 q
17663 }
17664 s/.*/./; q'`
17665 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17666 # echo "creating $dirpart/$file"
17667 echo '# dummy' > "$dirpart/$file"
17668 done
17669 done
17670 }
17671 ;;
17672 "default":C)
17673 case x$CONFIG_HEADERS in
17674 xconfig.h:config.in)
17675 echo > stamp-h ;;
17676 esac
17677 ;;
17678
17679 esac
17680 done # for ac_tag
17681
17682
17683 as_fn_exit 0
17684 _ACEOF
17685 ac_clean_files=$ac_clean_files_save
17686
17687 test $ac_write_fail = 0 ||
17688 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17689
17690
17691 # configure is writing to config.log, and then calls config.status.
17692 # config.status does its own redirection, appending to config.log.
17693 # Unfortunately, on DOS this fails, as config.log is still kept open
17694 # by configure, so config.status won't be able to write to it; its
17695 # output is simply discarded. So we exec the FD to /dev/null,
17696 # effectively closing config.log, so it can be properly (re)opened and
17697 # appended to by config.status. When coming back to configure, we
17698 # need to make the FD available again.
17699 if test "$no_create" != yes; then
17700 ac_cs_success=:
17701 ac_config_status_args=
17702 test "$silent" = yes &&
17703 ac_config_status_args="$ac_config_status_args --quiet"
17704 exec 5>/dev/null
17705 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17706 exec 5>>config.log
17707 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17708 # would make configure fail if this is the last instruction.
17709 $ac_cs_success || as_fn_exit $?
17710 fi
17711 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17713 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17714 fi
17715
17716
17717 exit 0
This page took 0.631594 seconds and 5 git commands to generate.