Reimport gnulib from scratch.
[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 gl_fnmatch_required=POSIX
592 ac_func_list=
593 ac_header_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 MKDIR_P
620 INSTALL_STRIP_PROGRAM
621 STRIP
622 install_sh
623 MAKEINFO
624 AUTOHEADER
625 AUTOMAKE
626 AUTOCONF
627 ACLOCAL
628 VERSION
629 PACKAGE
630 CYGPATH_W
631 am__isrc
632 INSTALL_DATA
633 INSTALL_SCRIPT
634 INSTALL_PROGRAM
635 LIBGNU_LTLIBDEPS
636 LIBGNU_LIBDEPS
637 gltests_WITNESS
638 REPLACE_TOWLOWER
639 REPLACE_ISWCNTRL
640 HAVE_WCTYPE_H
641 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
642 NEXT_WCTYPE_H
643 HAVE_ISWCNTRL
644 REPLACE_ISWBLANK
645 HAVE_WCTRANS_T
646 HAVE_WCTYPE_T
647 HAVE_ISWBLANK
648 GNULIB_TOWCTRANS
649 GNULIB_WCTRANS
650 GNULIB_ISWCTYPE
651 GNULIB_WCTYPE
652 GNULIB_ISWBLANK
653 HAVE_WINT_T
654 HAVE_FEATURES_H
655 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
656 NEXT_WCHAR_H
657 NEXT_AS_FIRST_DIRECTIVE_STRING_H
658 NEXT_STRING_H
659 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
660 NEXT_STDDEF_H
661 GL_GENERATE_STDDEF_H_FALSE
662 GL_GENERATE_STDDEF_H_TRUE
663 STDDEF_H
664 HAVE_WCHAR_T
665 REPLACE_NULL
666 HAVE__BOOL
667 GL_GENERATE_STDBOOL_H_FALSE
668 GL_GENERATE_STDBOOL_H_TRUE
669 STDBOOL_H
670 UNDEFINE_STRTOK_R
671 REPLACE_STRTOK_R
672 REPLACE_STRSIGNAL
673 REPLACE_STRNLEN
674 REPLACE_STRNDUP
675 REPLACE_STRNCAT
676 REPLACE_STRERROR_R
677 REPLACE_STRERROR
678 REPLACE_STRCHRNUL
679 REPLACE_STRCASESTR
680 REPLACE_STRSTR
681 REPLACE_STRDUP
682 REPLACE_STPNCPY
683 REPLACE_MEMMEM
684 REPLACE_MEMCHR
685 HAVE_STRVERSCMP
686 HAVE_DECL_STRSIGNAL
687 HAVE_DECL_STRERROR_R
688 HAVE_DECL_STRTOK_R
689 HAVE_STRCASESTR
690 HAVE_STRSEP
691 HAVE_STRPBRK
692 HAVE_DECL_STRNLEN
693 HAVE_DECL_STRNDUP
694 HAVE_DECL_STRDUP
695 HAVE_STRCHRNUL
696 HAVE_STPNCPY
697 HAVE_STPCPY
698 HAVE_RAWMEMCHR
699 HAVE_DECL_MEMRCHR
700 HAVE_MEMPCPY
701 HAVE_DECL_MEMMEM
702 HAVE_MEMCHR
703 HAVE_FFSLL
704 HAVE_FFSL
705 HAVE_MBSLEN
706 GNULIB_STRVERSCMP
707 GNULIB_STRSIGNAL
708 GNULIB_STRERROR_R
709 GNULIB_STRERROR
710 GNULIB_MBSTOK_R
711 GNULIB_MBSSEP
712 GNULIB_MBSSPN
713 GNULIB_MBSPBRK
714 GNULIB_MBSCSPN
715 GNULIB_MBSCASESTR
716 GNULIB_MBSPCASECMP
717 GNULIB_MBSNCASECMP
718 GNULIB_MBSCASECMP
719 GNULIB_MBSSTR
720 GNULIB_MBSRCHR
721 GNULIB_MBSCHR
722 GNULIB_MBSNLEN
723 GNULIB_MBSLEN
724 GNULIB_STRTOK_R
725 GNULIB_STRCASESTR
726 GNULIB_STRSTR
727 GNULIB_STRSEP
728 GNULIB_STRPBRK
729 GNULIB_STRNLEN
730 GNULIB_STRNDUP
731 GNULIB_STRNCAT
732 GNULIB_STRDUP
733 GNULIB_STRCHRNUL
734 GNULIB_STPNCPY
735 GNULIB_STPCPY
736 GNULIB_RAWMEMCHR
737 GNULIB_MEMRCHR
738 GNULIB_MEMPCPY
739 GNULIB_MEMMEM
740 GNULIB_MEMCHR
741 GNULIB_FFSLL
742 GNULIB_FFSL
743 LOCALE_FR
744 LOCALE_FR_UTF8
745 LOCALE_ZH_CN
746 LOCALE_JA
747 REPLACE_WCSWIDTH
748 REPLACE_WCWIDTH
749 REPLACE_WCSNRTOMBS
750 REPLACE_WCSRTOMBS
751 REPLACE_WCRTOMB
752 REPLACE_MBSNRTOWCS
753 REPLACE_MBSRTOWCS
754 REPLACE_MBRLEN
755 REPLACE_MBRTOWC
756 REPLACE_MBSINIT
757 REPLACE_WCTOB
758 REPLACE_BTOWC
759 REPLACE_MBSTATE_T
760 HAVE_DECL_WCWIDTH
761 HAVE_DECL_WCTOB
762 HAVE_WCSWIDTH
763 HAVE_WCSTOK
764 HAVE_WCSSTR
765 HAVE_WCSPBRK
766 HAVE_WCSSPN
767 HAVE_WCSCSPN
768 HAVE_WCSRCHR
769 HAVE_WCSCHR
770 HAVE_WCSDUP
771 HAVE_WCSXFRM
772 HAVE_WCSCOLL
773 HAVE_WCSNCASECMP
774 HAVE_WCSCASECMP
775 HAVE_WCSNCMP
776 HAVE_WCSCMP
777 HAVE_WCSNCAT
778 HAVE_WCSCAT
779 HAVE_WCPNCPY
780 HAVE_WCSNCPY
781 HAVE_WCPCPY
782 HAVE_WCSCPY
783 HAVE_WCSNLEN
784 HAVE_WCSLEN
785 HAVE_WMEMSET
786 HAVE_WMEMMOVE
787 HAVE_WMEMCPY
788 HAVE_WMEMCMP
789 HAVE_WMEMCHR
790 HAVE_WCSNRTOMBS
791 HAVE_WCSRTOMBS
792 HAVE_WCRTOMB
793 HAVE_MBSNRTOWCS
794 HAVE_MBSRTOWCS
795 HAVE_MBRLEN
796 HAVE_MBRTOWC
797 HAVE_MBSINIT
798 HAVE_BTOWC
799 GNULIB_WCSWIDTH
800 GNULIB_WCSTOK
801 GNULIB_WCSSTR
802 GNULIB_WCSPBRK
803 GNULIB_WCSSPN
804 GNULIB_WCSCSPN
805 GNULIB_WCSRCHR
806 GNULIB_WCSCHR
807 GNULIB_WCSDUP
808 GNULIB_WCSXFRM
809 GNULIB_WCSCOLL
810 GNULIB_WCSNCASECMP
811 GNULIB_WCSCASECMP
812 GNULIB_WCSNCMP
813 GNULIB_WCSCMP
814 GNULIB_WCSNCAT
815 GNULIB_WCSCAT
816 GNULIB_WCPNCPY
817 GNULIB_WCSNCPY
818 GNULIB_WCPCPY
819 GNULIB_WCSCPY
820 GNULIB_WCSNLEN
821 GNULIB_WCSLEN
822 GNULIB_WMEMSET
823 GNULIB_WMEMMOVE
824 GNULIB_WMEMCPY
825 GNULIB_WMEMCMP
826 GNULIB_WMEMCHR
827 GNULIB_WCWIDTH
828 GNULIB_WCSNRTOMBS
829 GNULIB_WCSRTOMBS
830 GNULIB_WCRTOMB
831 GNULIB_MBSNRTOWCS
832 GNULIB_MBSRTOWCS
833 GNULIB_MBRLEN
834 GNULIB_MBRTOWC
835 GNULIB_MBSINIT
836 GNULIB_WCTOB
837 GNULIB_BTOWC
838 NEXT_AS_FIRST_DIRECTIVE_MATH_H
839 NEXT_MATH_H
840 LOCALCHARSET_TESTS_ENVIRONMENT
841 GLIBC21
842 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
843 NEXT_INTTYPES_H
844 UINT64_MAX_EQ_ULONG_MAX
845 UINT32_MAX_LT_UINTMAX_MAX
846 PRIPTR_PREFIX
847 PRI_MACROS_BROKEN
848 INT64_MAX_EQ_LONG_MAX
849 INT32_MAX_LT_INTMAX_MAX
850 REPLACE_STRTOIMAX
851 HAVE_DECL_STRTOUMAX
852 HAVE_DECL_STRTOIMAX
853 HAVE_DECL_IMAXDIV
854 HAVE_DECL_IMAXABS
855 GNULIB_STRTOUMAX
856 GNULIB_STRTOIMAX
857 GNULIB_IMAXDIV
858 GNULIB_IMAXABS
859 GL_GENERATE_STDINT_H_FALSE
860 GL_GENERATE_STDINT_H_TRUE
861 STDINT_H
862 WINT_T_SUFFIX
863 WCHAR_T_SUFFIX
864 SIG_ATOMIC_T_SUFFIX
865 SIZE_T_SUFFIX
866 PTRDIFF_T_SUFFIX
867 HAVE_SIGNED_WINT_T
868 HAVE_SIGNED_WCHAR_T
869 HAVE_SIGNED_SIG_ATOMIC_T
870 BITSIZEOF_WINT_T
871 BITSIZEOF_WCHAR_T
872 BITSIZEOF_SIG_ATOMIC_T
873 BITSIZEOF_SIZE_T
874 BITSIZEOF_PTRDIFF_T
875 APPLE_UNIVERSAL_BUILD
876 HAVE_SYS_BITYPES_H
877 HAVE_SYS_INTTYPES_H
878 HAVE_STDINT_H
879 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
880 NEXT_STDINT_H
881 HAVE_SYS_TYPES_H
882 HAVE_INTTYPES_H
883 HAVE_WCHAR_H
884 HAVE_UNSIGNED_LONG_LONG_INT
885 HAVE_LONG_LONG_INT
886 FREXPL_LIBM
887 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
888 FREXP_LIBM
889 REPLACE_TRUNCL
890 REPLACE_TRUNCF
891 REPLACE_TRUNC
892 REPLACE_SQRTL
893 REPLACE_SIGNBIT_USING_GCC
894 REPLACE_SIGNBIT
895 REPLACE_ROUNDL
896 REPLACE_ROUNDF
897 REPLACE_ROUND
898 REPLACE_REMAINDERL
899 REPLACE_REMAINDERF
900 REPLACE_REMAINDER
901 REPLACE_NAN
902 REPLACE_MODFL
903 REPLACE_MODFF
904 REPLACE_MODF
905 REPLACE_LOGBL
906 REPLACE_LOGBF
907 REPLACE_LOGB
908 REPLACE_LOG2L
909 REPLACE_LOG2F
910 REPLACE_LOG2
911 REPLACE_LOG1PL
912 REPLACE_LOG1PF
913 REPLACE_LOG1P
914 REPLACE_LOG10L
915 REPLACE_LOG10F
916 REPLACE_LOG10
917 REPLACE_LOGL
918 REPLACE_LOGF
919 REPLACE_LOG
920 REPLACE_LDEXPL
921 REPLACE_ISNAN
922 REPLACE_ISINF
923 REPLACE_ISFINITE
924 REPLACE_ILOGBF
925 REPLACE_ILOGB
926 REPLACE_HYPOTL
927 REPLACE_HYPOTF
928 REPLACE_HYPOT
929 REPLACE_HUGE_VAL
930 REPLACE_FREXPL
931 REPLACE_FREXP
932 REPLACE_FREXPF
933 REPLACE_FMODL
934 REPLACE_FMODF
935 REPLACE_FMOD
936 REPLACE_FMAL
937 REPLACE_FMAF
938 REPLACE_FMA
939 REPLACE_FLOORL
940 REPLACE_FLOORF
941 REPLACE_FLOOR
942 REPLACE_FABSL
943 REPLACE_EXP2L
944 REPLACE_EXP2
945 REPLACE_EXPM1F
946 REPLACE_EXPM1
947 REPLACE_CEILL
948 REPLACE_CEILF
949 REPLACE_CEIL
950 REPLACE_CBRTL
951 REPLACE_CBRTF
952 HAVE_DECL_TRUNCL
953 HAVE_DECL_TRUNCF
954 HAVE_DECL_TRUNC
955 HAVE_DECL_TANL
956 HAVE_DECL_SQRTL
957 HAVE_DECL_SINL
958 HAVE_DECL_ROUNDL
959 HAVE_DECL_ROUNDF
960 HAVE_DECL_ROUND
961 HAVE_DECL_RINTF
962 HAVE_DECL_REMAINDERL
963 HAVE_DECL_REMAINDER
964 HAVE_DECL_LOGB
965 HAVE_DECL_LOG2L
966 HAVE_DECL_LOG2F
967 HAVE_DECL_LOG2
968 HAVE_DECL_LOG10L
969 HAVE_DECL_LOGL
970 HAVE_DECL_LDEXPL
971 HAVE_DECL_FREXPL
972 HAVE_DECL_FLOORL
973 HAVE_DECL_FLOORF
974 HAVE_DECL_EXPM1L
975 HAVE_DECL_EXP2L
976 HAVE_DECL_EXP2F
977 HAVE_DECL_EXP2
978 HAVE_DECL_EXPL
979 HAVE_DECL_COSL
980 HAVE_DECL_COPYSIGNF
981 HAVE_DECL_CEILL
982 HAVE_DECL_CEILF
983 HAVE_DECL_CBRTL
984 HAVE_DECL_CBRTF
985 HAVE_DECL_ATANL
986 HAVE_DECL_ASINL
987 HAVE_DECL_ACOSL
988 HAVE_TANHF
989 HAVE_TANL
990 HAVE_TANF
991 HAVE_SQRTL
992 HAVE_SQRTF
993 HAVE_SINHF
994 HAVE_SINL
995 HAVE_SINF
996 HAVE_RINTL
997 HAVE_RINT
998 HAVE_REMAINDERF
999 HAVE_REMAINDER
1000 HAVE_POWF
1001 HAVE_MODFL
1002 HAVE_MODFF
1003 HAVE_LOGBL
1004 HAVE_LOGBF
1005 HAVE_LOG1PL
1006 HAVE_LOG1PF
1007 HAVE_LOG1P
1008 HAVE_LOG10L
1009 HAVE_LOG10F
1010 HAVE_LOGL
1011 HAVE_LOGF
1012 HAVE_LDEXPF
1013 HAVE_ISNANL
1014 HAVE_ISNAND
1015 HAVE_ISNANF
1016 HAVE_ILOGBL
1017 HAVE_ILOGBF
1018 HAVE_ILOGB
1019 HAVE_HYPOTL
1020 HAVE_HYPOTF
1021 HAVE_FREXPF
1022 HAVE_FMODL
1023 HAVE_FMODF
1024 HAVE_FMAL
1025 HAVE_FMAF
1026 HAVE_FMA
1027 HAVE_FABSL
1028 HAVE_FABSF
1029 HAVE_EXPM1F
1030 HAVE_EXPM1
1031 HAVE_EXPL
1032 HAVE_EXPF
1033 HAVE_COSHF
1034 HAVE_COSL
1035 HAVE_COSF
1036 HAVE_COPYSIGNL
1037 HAVE_COPYSIGN
1038 HAVE_CBRTL
1039 HAVE_CBRTF
1040 HAVE_CBRT
1041 HAVE_ATAN2F
1042 HAVE_ATANL
1043 HAVE_ATANF
1044 HAVE_ASINL
1045 HAVE_ASINF
1046 HAVE_ACOSL
1047 HAVE_ACOSF
1048 GNULIB_TRUNCL
1049 GNULIB_TRUNCF
1050 GNULIB_TRUNC
1051 GNULIB_TANHF
1052 GNULIB_TANL
1053 GNULIB_TANF
1054 GNULIB_SQRTL
1055 GNULIB_SQRTF
1056 GNULIB_SINHF
1057 GNULIB_SINL
1058 GNULIB_SINF
1059 GNULIB_SIGNBIT
1060 GNULIB_ROUNDL
1061 GNULIB_ROUNDF
1062 GNULIB_ROUND
1063 GNULIB_RINTL
1064 GNULIB_RINTF
1065 GNULIB_RINT
1066 GNULIB_REMAINDERL
1067 GNULIB_REMAINDERF
1068 GNULIB_REMAINDER
1069 GNULIB_POWF
1070 GNULIB_MODFL
1071 GNULIB_MODFF
1072 GNULIB_MODF
1073 GNULIB_LOGBL
1074 GNULIB_LOGBF
1075 GNULIB_LOGB
1076 GNULIB_LOG2L
1077 GNULIB_LOG2F
1078 GNULIB_LOG2
1079 GNULIB_LOG1PL
1080 GNULIB_LOG1PF
1081 GNULIB_LOG1P
1082 GNULIB_LOG10L
1083 GNULIB_LOG10F
1084 GNULIB_LOG10
1085 GNULIB_LOGL
1086 GNULIB_LOGF
1087 GNULIB_LOG
1088 GNULIB_LDEXPL
1089 GNULIB_LDEXPF
1090 GNULIB_ISNANL
1091 GNULIB_ISNAND
1092 GNULIB_ISNANF
1093 GNULIB_ISNAN
1094 GNULIB_ISINF
1095 GNULIB_ISFINITE
1096 GNULIB_ILOGBL
1097 GNULIB_ILOGBF
1098 GNULIB_ILOGB
1099 GNULIB_HYPOTL
1100 GNULIB_HYPOTF
1101 GNULIB_HYPOT
1102 GNULIB_FREXPL
1103 GNULIB_FREXP
1104 GNULIB_FREXPF
1105 GNULIB_FMODL
1106 GNULIB_FMODF
1107 GNULIB_FMOD
1108 GNULIB_FMAL
1109 GNULIB_FMAF
1110 GNULIB_FMA
1111 GNULIB_FLOORL
1112 GNULIB_FLOORF
1113 GNULIB_FLOOR
1114 GNULIB_FABSL
1115 GNULIB_FABSF
1116 GNULIB_EXPM1L
1117 GNULIB_EXPM1F
1118 GNULIB_EXPM1
1119 GNULIB_EXP2L
1120 GNULIB_EXP2F
1121 GNULIB_EXP2
1122 GNULIB_EXPL
1123 GNULIB_EXPF
1124 GNULIB_COSHF
1125 GNULIB_COSL
1126 GNULIB_COSF
1127 GNULIB_COPYSIGNL
1128 GNULIB_COPYSIGNF
1129 GNULIB_COPYSIGN
1130 GNULIB_CEILL
1131 GNULIB_CEILF
1132 GNULIB_CEIL
1133 GNULIB_CBRTL
1134 GNULIB_CBRTF
1135 GNULIB_CBRT
1136 GNULIB_ATAN2F
1137 GNULIB_ATANL
1138 GNULIB_ATANF
1139 GNULIB_ASINL
1140 GNULIB_ASINF
1141 GNULIB_ACOSL
1142 GNULIB_ACOSF
1143 GL_GENERATE_FNMATCH_H_FALSE
1144 GL_GENERATE_FNMATCH_H_TRUE
1145 FNMATCH_H
1146 REPLACE_ITOLD
1147 GL_GENERATE_FLOAT_H_FALSE
1148 GL_GENERATE_FLOAT_H_TRUE
1149 FLOAT_H
1150 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1151 NEXT_FLOAT_H
1152 PRAGMA_COLUMNS
1153 PRAGMA_SYSTEM_HEADER
1154 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1155 INCLUDE_NEXT
1156 pkglibexecdir
1157 lispdir
1158 GL_GENERATE_ALLOCA_H_FALSE
1159 GL_GENERATE_ALLOCA_H_TRUE
1160 ALLOCA_H
1161 ALLOCA
1162 GL_COND_LIBTOOL_FALSE
1163 GL_COND_LIBTOOL_TRUE
1164 target_os
1165 target_vendor
1166 target_cpu
1167 target
1168 RANLIB
1169 ARFLAGS
1170 AR
1171 EGREP
1172 GREP
1173 CPP
1174 host_os
1175 host_vendor
1176 host_cpu
1177 host
1178 build_os
1179 build_vendor
1180 build_cpu
1181 build
1182 OBJEXT
1183 EXEEXT
1184 ac_ct_CC
1185 CPPFLAGS
1186 LDFLAGS
1187 CFLAGS
1188 CC
1189 MAINT
1190 MAINTAINER_MODE_FALSE
1191 MAINTAINER_MODE_TRUE
1192 target_alias
1193 host_alias
1194 build_alias
1195 LIBS
1196 ECHO_T
1197 ECHO_N
1198 ECHO_C
1199 DEFS
1200 mandir
1201 localedir
1202 libdir
1203 psdir
1204 pdfdir
1205 dvidir
1206 htmldir
1207 infodir
1208 docdir
1209 oldincludedir
1210 includedir
1211 localstatedir
1212 sharedstatedir
1213 sysconfdir
1214 datadir
1215 datarootdir
1216 libexecdir
1217 sbindir
1218 bindir
1219 program_transform_name
1220 prefix
1221 exec_prefix
1222 PACKAGE_URL
1223 PACKAGE_BUGREPORT
1224 PACKAGE_STRING
1225 PACKAGE_VERSION
1226 PACKAGE_TARNAME
1227 PACKAGE_NAME
1228 PATH_SEPARATOR
1229 SHELL'
1230 ac_subst_files=''
1231 ac_user_opts='
1232 enable_option_checking
1233 enable_maintainer_mode
1234 enable_dependency_tracking
1235 '
1236 ac_precious_vars='build_alias
1237 host_alias
1238 target_alias
1239 CC
1240 CFLAGS
1241 LDFLAGS
1242 LIBS
1243 CPPFLAGS
1244 CPP'
1245
1246
1247 # Initialize some variables set by options.
1248 ac_init_help=
1249 ac_init_version=false
1250 ac_unrecognized_opts=
1251 ac_unrecognized_sep=
1252 # The variables have the same names as the options, with
1253 # dashes changed to underlines.
1254 cache_file=/dev/null
1255 exec_prefix=NONE
1256 no_create=
1257 no_recursion=
1258 prefix=NONE
1259 program_prefix=NONE
1260 program_suffix=NONE
1261 program_transform_name=s,x,x,
1262 silent=
1263 site=
1264 srcdir=
1265 verbose=
1266 x_includes=NONE
1267 x_libraries=NONE
1268
1269 # Installation directory options.
1270 # These are left unexpanded so users can "make install exec_prefix=/foo"
1271 # and all the variables that are supposed to be based on exec_prefix
1272 # by default will actually change.
1273 # Use braces instead of parens because sh, perl, etc. also accept them.
1274 # (The list follows the same order as the GNU Coding Standards.)
1275 bindir='${exec_prefix}/bin'
1276 sbindir='${exec_prefix}/sbin'
1277 libexecdir='${exec_prefix}/libexec'
1278 datarootdir='${prefix}/share'
1279 datadir='${datarootdir}'
1280 sysconfdir='${prefix}/etc'
1281 sharedstatedir='${prefix}/com'
1282 localstatedir='${prefix}/var'
1283 includedir='${prefix}/include'
1284 oldincludedir='/usr/include'
1285 docdir='${datarootdir}/doc/${PACKAGE}'
1286 infodir='${datarootdir}/info'
1287 htmldir='${docdir}'
1288 dvidir='${docdir}'
1289 pdfdir='${docdir}'
1290 psdir='${docdir}'
1291 libdir='${exec_prefix}/lib'
1292 localedir='${datarootdir}/locale'
1293 mandir='${datarootdir}/man'
1294
1295 ac_prev=
1296 ac_dashdash=
1297 for ac_option
1298 do
1299 # If the previous option needs an argument, assign it.
1300 if test -n "$ac_prev"; then
1301 eval $ac_prev=\$ac_option
1302 ac_prev=
1303 continue
1304 fi
1305
1306 case $ac_option in
1307 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1308 *) ac_optarg=yes ;;
1309 esac
1310
1311 # Accept the important Cygnus configure options, so we can diagnose typos.
1312
1313 case $ac_dashdash$ac_option in
1314 --)
1315 ac_dashdash=yes ;;
1316
1317 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1318 ac_prev=bindir ;;
1319 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1320 bindir=$ac_optarg ;;
1321
1322 -build | --build | --buil | --bui | --bu)
1323 ac_prev=build_alias ;;
1324 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1325 build_alias=$ac_optarg ;;
1326
1327 -cache-file | --cache-file | --cache-fil | --cache-fi \
1328 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1329 ac_prev=cache_file ;;
1330 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1331 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1332 cache_file=$ac_optarg ;;
1333
1334 --config-cache | -C)
1335 cache_file=config.cache ;;
1336
1337 -datadir | --datadir | --datadi | --datad)
1338 ac_prev=datadir ;;
1339 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1340 datadir=$ac_optarg ;;
1341
1342 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1343 | --dataroo | --dataro | --datar)
1344 ac_prev=datarootdir ;;
1345 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1346 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1347 datarootdir=$ac_optarg ;;
1348
1349 -disable-* | --disable-*)
1350 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1351 # Reject names that are not valid shell variable names.
1352 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1353 as_fn_error "invalid feature name: $ac_useropt"
1354 ac_useropt_orig=$ac_useropt
1355 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1356 case $ac_user_opts in
1357 *"
1358 "enable_$ac_useropt"
1359 "*) ;;
1360 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1361 ac_unrecognized_sep=', ';;
1362 esac
1363 eval enable_$ac_useropt=no ;;
1364
1365 -docdir | --docdir | --docdi | --doc | --do)
1366 ac_prev=docdir ;;
1367 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1368 docdir=$ac_optarg ;;
1369
1370 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1371 ac_prev=dvidir ;;
1372 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1373 dvidir=$ac_optarg ;;
1374
1375 -enable-* | --enable-*)
1376 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1377 # Reject names that are not valid shell variable names.
1378 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1379 as_fn_error "invalid feature name: $ac_useropt"
1380 ac_useropt_orig=$ac_useropt
1381 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1382 case $ac_user_opts in
1383 *"
1384 "enable_$ac_useropt"
1385 "*) ;;
1386 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1387 ac_unrecognized_sep=', ';;
1388 esac
1389 eval enable_$ac_useropt=\$ac_optarg ;;
1390
1391 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1392 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1393 | --exec | --exe | --ex)
1394 ac_prev=exec_prefix ;;
1395 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1396 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1397 | --exec=* | --exe=* | --ex=*)
1398 exec_prefix=$ac_optarg ;;
1399
1400 -gas | --gas | --ga | --g)
1401 # Obsolete; use --with-gas.
1402 with_gas=yes ;;
1403
1404 -help | --help | --hel | --he | -h)
1405 ac_init_help=long ;;
1406 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1407 ac_init_help=recursive ;;
1408 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1409 ac_init_help=short ;;
1410
1411 -host | --host | --hos | --ho)
1412 ac_prev=host_alias ;;
1413 -host=* | --host=* | --hos=* | --ho=*)
1414 host_alias=$ac_optarg ;;
1415
1416 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1417 ac_prev=htmldir ;;
1418 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1419 | --ht=*)
1420 htmldir=$ac_optarg ;;
1421
1422 -includedir | --includedir | --includedi | --included | --include \
1423 | --includ | --inclu | --incl | --inc)
1424 ac_prev=includedir ;;
1425 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1426 | --includ=* | --inclu=* | --incl=* | --inc=*)
1427 includedir=$ac_optarg ;;
1428
1429 -infodir | --infodir | --infodi | --infod | --info | --inf)
1430 ac_prev=infodir ;;
1431 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1432 infodir=$ac_optarg ;;
1433
1434 -libdir | --libdir | --libdi | --libd)
1435 ac_prev=libdir ;;
1436 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1437 libdir=$ac_optarg ;;
1438
1439 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1440 | --libexe | --libex | --libe)
1441 ac_prev=libexecdir ;;
1442 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1443 | --libexe=* | --libex=* | --libe=*)
1444 libexecdir=$ac_optarg ;;
1445
1446 -localedir | --localedir | --localedi | --localed | --locale)
1447 ac_prev=localedir ;;
1448 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1449 localedir=$ac_optarg ;;
1450
1451 -localstatedir | --localstatedir | --localstatedi | --localstated \
1452 | --localstate | --localstat | --localsta | --localst | --locals)
1453 ac_prev=localstatedir ;;
1454 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1455 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1456 localstatedir=$ac_optarg ;;
1457
1458 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1459 ac_prev=mandir ;;
1460 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1461 mandir=$ac_optarg ;;
1462
1463 -nfp | --nfp | --nf)
1464 # Obsolete; use --without-fp.
1465 with_fp=no ;;
1466
1467 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1468 | --no-cr | --no-c | -n)
1469 no_create=yes ;;
1470
1471 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1472 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1473 no_recursion=yes ;;
1474
1475 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1476 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1477 | --oldin | --oldi | --old | --ol | --o)
1478 ac_prev=oldincludedir ;;
1479 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1480 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1481 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1482 oldincludedir=$ac_optarg ;;
1483
1484 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1485 ac_prev=prefix ;;
1486 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1487 prefix=$ac_optarg ;;
1488
1489 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1490 | --program-pre | --program-pr | --program-p)
1491 ac_prev=program_prefix ;;
1492 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1493 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1494 program_prefix=$ac_optarg ;;
1495
1496 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1497 | --program-suf | --program-su | --program-s)
1498 ac_prev=program_suffix ;;
1499 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1500 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1501 program_suffix=$ac_optarg ;;
1502
1503 -program-transform-name | --program-transform-name \
1504 | --program-transform-nam | --program-transform-na \
1505 | --program-transform-n | --program-transform- \
1506 | --program-transform | --program-transfor \
1507 | --program-transfo | --program-transf \
1508 | --program-trans | --program-tran \
1509 | --progr-tra | --program-tr | --program-t)
1510 ac_prev=program_transform_name ;;
1511 -program-transform-name=* | --program-transform-name=* \
1512 | --program-transform-nam=* | --program-transform-na=* \
1513 | --program-transform-n=* | --program-transform-=* \
1514 | --program-transform=* | --program-transfor=* \
1515 | --program-transfo=* | --program-transf=* \
1516 | --program-trans=* | --program-tran=* \
1517 | --progr-tra=* | --program-tr=* | --program-t=*)
1518 program_transform_name=$ac_optarg ;;
1519
1520 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1521 ac_prev=pdfdir ;;
1522 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1523 pdfdir=$ac_optarg ;;
1524
1525 -psdir | --psdir | --psdi | --psd | --ps)
1526 ac_prev=psdir ;;
1527 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1528 psdir=$ac_optarg ;;
1529
1530 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1531 | -silent | --silent | --silen | --sile | --sil)
1532 silent=yes ;;
1533
1534 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1535 ac_prev=sbindir ;;
1536 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1537 | --sbi=* | --sb=*)
1538 sbindir=$ac_optarg ;;
1539
1540 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1541 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1542 | --sharedst | --shareds | --shared | --share | --shar \
1543 | --sha | --sh)
1544 ac_prev=sharedstatedir ;;
1545 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1546 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1547 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1548 | --sha=* | --sh=*)
1549 sharedstatedir=$ac_optarg ;;
1550
1551 -site | --site | --sit)
1552 ac_prev=site ;;
1553 -site=* | --site=* | --sit=*)
1554 site=$ac_optarg ;;
1555
1556 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1557 ac_prev=srcdir ;;
1558 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1559 srcdir=$ac_optarg ;;
1560
1561 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1562 | --syscon | --sysco | --sysc | --sys | --sy)
1563 ac_prev=sysconfdir ;;
1564 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1565 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1566 sysconfdir=$ac_optarg ;;
1567
1568 -target | --target | --targe | --targ | --tar | --ta | --t)
1569 ac_prev=target_alias ;;
1570 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1571 target_alias=$ac_optarg ;;
1572
1573 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1574 verbose=yes ;;
1575
1576 -version | --version | --versio | --versi | --vers | -V)
1577 ac_init_version=: ;;
1578
1579 -with-* | --with-*)
1580 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1581 # Reject names that are not valid shell variable names.
1582 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1583 as_fn_error "invalid package name: $ac_useropt"
1584 ac_useropt_orig=$ac_useropt
1585 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1586 case $ac_user_opts in
1587 *"
1588 "with_$ac_useropt"
1589 "*) ;;
1590 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1591 ac_unrecognized_sep=', ';;
1592 esac
1593 eval with_$ac_useropt=\$ac_optarg ;;
1594
1595 -without-* | --without-*)
1596 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1597 # Reject names that are not valid shell variable names.
1598 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1599 as_fn_error "invalid package name: $ac_useropt"
1600 ac_useropt_orig=$ac_useropt
1601 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1602 case $ac_user_opts in
1603 *"
1604 "with_$ac_useropt"
1605 "*) ;;
1606 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1607 ac_unrecognized_sep=', ';;
1608 esac
1609 eval with_$ac_useropt=no ;;
1610
1611 --x)
1612 # Obsolete; use --with-x.
1613 with_x=yes ;;
1614
1615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1616 | --x-incl | --x-inc | --x-in | --x-i)
1617 ac_prev=x_includes ;;
1618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1620 x_includes=$ac_optarg ;;
1621
1622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1624 ac_prev=x_libraries ;;
1625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1627 x_libraries=$ac_optarg ;;
1628
1629 -*) as_fn_error "unrecognized option: \`$ac_option'
1630 Try \`$0 --help' for more information."
1631 ;;
1632
1633 *=*)
1634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1635 # Reject names that are not valid shell variable names.
1636 case $ac_envvar in #(
1637 '' | [0-9]* | *[!_$as_cr_alnum]* )
1638 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1639 esac
1640 eval $ac_envvar=\$ac_optarg
1641 export $ac_envvar ;;
1642
1643 *)
1644 # FIXME: should be removed in autoconf 3.0.
1645 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1647 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1649 ;;
1650
1651 esac
1652 done
1653
1654 if test -n "$ac_prev"; then
1655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1656 as_fn_error "missing argument to $ac_option"
1657 fi
1658
1659 if test -n "$ac_unrecognized_opts"; then
1660 case $enable_option_checking in
1661 no) ;;
1662 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1663 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1664 esac
1665 fi
1666
1667 # Check all directory arguments for consistency.
1668 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1669 datadir sysconfdir sharedstatedir localstatedir includedir \
1670 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1671 libdir localedir mandir
1672 do
1673 eval ac_val=\$$ac_var
1674 # Remove trailing slashes.
1675 case $ac_val in
1676 */ )
1677 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1678 eval $ac_var=\$ac_val;;
1679 esac
1680 # Be sure to have absolute directory names.
1681 case $ac_val in
1682 [\\/$]* | ?:[\\/]* ) continue;;
1683 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1684 esac
1685 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1686 done
1687
1688 # There might be people who depend on the old broken behavior: `$host'
1689 # used to hold the argument of --host etc.
1690 # FIXME: To remove some day.
1691 build=$build_alias
1692 host=$host_alias
1693 target=$target_alias
1694
1695 # FIXME: To remove some day.
1696 if test "x$host_alias" != x; then
1697 if test "x$build_alias" = x; then
1698 cross_compiling=maybe
1699 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1700 If a cross compiler is detected then cross compile mode will be used." >&2
1701 elif test "x$build_alias" != "x$host_alias"; then
1702 cross_compiling=yes
1703 fi
1704 fi
1705
1706 ac_tool_prefix=
1707 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1708
1709 test "$silent" = yes && exec 6>/dev/null
1710
1711
1712 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1713 ac_ls_di=`ls -di .` &&
1714 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1715 as_fn_error "working directory cannot be determined"
1716 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1717 as_fn_error "pwd does not report name of working directory"
1718
1719
1720 # Find the source files, if location was not specified.
1721 if test -z "$srcdir"; then
1722 ac_srcdir_defaulted=yes
1723 # Try the directory containing this script, then the parent directory.
1724 ac_confdir=`$as_dirname -- "$as_myself" ||
1725 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1726 X"$as_myself" : 'X\(//\)[^/]' \| \
1727 X"$as_myself" : 'X\(//\)$' \| \
1728 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1729 $as_echo X"$as_myself" |
1730 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1731 s//\1/
1732 q
1733 }
1734 /^X\(\/\/\)[^/].*/{
1735 s//\1/
1736 q
1737 }
1738 /^X\(\/\/\)$/{
1739 s//\1/
1740 q
1741 }
1742 /^X\(\/\).*/{
1743 s//\1/
1744 q
1745 }
1746 s/.*/./; q'`
1747 srcdir=$ac_confdir
1748 if test ! -r "$srcdir/$ac_unique_file"; then
1749 srcdir=..
1750 fi
1751 else
1752 ac_srcdir_defaulted=no
1753 fi
1754 if test ! -r "$srcdir/$ac_unique_file"; then
1755 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1756 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1757 fi
1758 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1759 ac_abs_confdir=`(
1760 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1761 pwd)`
1762 # When building in place, set srcdir=.
1763 if test "$ac_abs_confdir" = "$ac_pwd"; then
1764 srcdir=.
1765 fi
1766 # Remove unnecessary trailing slashes from srcdir.
1767 # Double slashes in file names in object file debugging info
1768 # mess up M-x gdb in Emacs.
1769 case $srcdir in
1770 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1771 esac
1772 for ac_var in $ac_precious_vars; do
1773 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1774 eval ac_env_${ac_var}_value=\$${ac_var}
1775 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1776 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1777 done
1778
1779 #
1780 # Report the --help message.
1781 #
1782 if test "$ac_init_help" = "long"; then
1783 # Omit some internal or obsolete options to make the list less imposing.
1784 # This message is too long to be a string in the A/UX 3.1 sh.
1785 cat <<_ACEOF
1786 \`configure' configures this package to adapt to many kinds of systems.
1787
1788 Usage: $0 [OPTION]... [VAR=VALUE]...
1789
1790 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1791 VAR=VALUE. See below for descriptions of some of the useful variables.
1792
1793 Defaults for the options are specified in brackets.
1794
1795 Configuration:
1796 -h, --help display this help and exit
1797 --help=short display options specific to this package
1798 --help=recursive display the short help of all the included packages
1799 -V, --version display version information and exit
1800 -q, --quiet, --silent do not print \`checking...' messages
1801 --cache-file=FILE cache test results in FILE [disabled]
1802 -C, --config-cache alias for \`--cache-file=config.cache'
1803 -n, --no-create do not create output files
1804 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1805
1806 Installation directories:
1807 --prefix=PREFIX install architecture-independent files in PREFIX
1808 [$ac_default_prefix]
1809 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1810 [PREFIX]
1811
1812 By default, \`make install' will install all the files in
1813 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1814 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1815 for instance \`--prefix=\$HOME'.
1816
1817 For better control, use the options below.
1818
1819 Fine tuning of the installation directories:
1820 --bindir=DIR user executables [EPREFIX/bin]
1821 --sbindir=DIR system admin executables [EPREFIX/sbin]
1822 --libexecdir=DIR program executables [EPREFIX/libexec]
1823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1826 --libdir=DIR object code libraries [EPREFIX/lib]
1827 --includedir=DIR C header files [PREFIX/include]
1828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1829 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1830 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1831 --infodir=DIR info documentation [DATAROOTDIR/info]
1832 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1833 --mandir=DIR man documentation [DATAROOTDIR/man]
1834 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1835 --htmldir=DIR html documentation [DOCDIR]
1836 --dvidir=DIR dvi documentation [DOCDIR]
1837 --pdfdir=DIR pdf documentation [DOCDIR]
1838 --psdir=DIR ps documentation [DOCDIR]
1839 _ACEOF
1840
1841 cat <<\_ACEOF
1842
1843 Program names:
1844 --program-prefix=PREFIX prepend PREFIX to installed program names
1845 --program-suffix=SUFFIX append SUFFIX to installed program names
1846 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1847
1848 System types:
1849 --build=BUILD configure for building on BUILD [guessed]
1850 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1851 --target=TARGET configure for building compilers for TARGET [HOST]
1852 _ACEOF
1853 fi
1854
1855 if test -n "$ac_init_help"; then
1856
1857 cat <<\_ACEOF
1858
1859 Optional Features:
1860 --disable-option-checking ignore unrecognized --enable/--with options
1861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1863 --enable-maintainer-mode enable make rules and dependencies not useful
1864 (and sometimes confusing) to the casual installer
1865 --disable-dependency-tracking speeds up one-time build
1866 --enable-dependency-tracking do not reject slow dependency extractors
1867
1868 Some influential environment variables:
1869 CC C compiler command
1870 CFLAGS C compiler flags
1871 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1872 nonstandard directory <lib dir>
1873 LIBS libraries to pass to the linker, e.g. -l<library>
1874 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1875 you have headers in a nonstandard directory <include dir>
1876 CPP C preprocessor
1877
1878 Use these variables to override the choices made by `configure' or to help
1879 it to find libraries and programs with nonstandard names/locations.
1880
1881 Report bugs to the package provider.
1882 _ACEOF
1883 ac_status=$?
1884 fi
1885
1886 if test "$ac_init_help" = "recursive"; then
1887 # If there are subdirs, report their specific --help.
1888 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1889 test -d "$ac_dir" ||
1890 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1891 continue
1892 ac_builddir=.
1893
1894 case "$ac_dir" in
1895 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1896 *)
1897 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1898 # A ".." for each directory in $ac_dir_suffix.
1899 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1900 case $ac_top_builddir_sub in
1901 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1902 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1903 esac ;;
1904 esac
1905 ac_abs_top_builddir=$ac_pwd
1906 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1907 # for backward compatibility:
1908 ac_top_builddir=$ac_top_build_prefix
1909
1910 case $srcdir in
1911 .) # We are building in place.
1912 ac_srcdir=.
1913 ac_top_srcdir=$ac_top_builddir_sub
1914 ac_abs_top_srcdir=$ac_pwd ;;
1915 [\\/]* | ?:[\\/]* ) # Absolute name.
1916 ac_srcdir=$srcdir$ac_dir_suffix;
1917 ac_top_srcdir=$srcdir
1918 ac_abs_top_srcdir=$srcdir ;;
1919 *) # Relative name.
1920 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1921 ac_top_srcdir=$ac_top_build_prefix$srcdir
1922 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1923 esac
1924 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1925
1926 cd "$ac_dir" || { ac_status=$?; continue; }
1927 # Check for guested configure.
1928 if test -f "$ac_srcdir/configure.gnu"; then
1929 echo &&
1930 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1931 elif test -f "$ac_srcdir/configure"; then
1932 echo &&
1933 $SHELL "$ac_srcdir/configure" --help=recursive
1934 else
1935 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1936 fi || ac_status=$?
1937 cd "$ac_pwd" || { ac_status=$?; break; }
1938 done
1939 fi
1940
1941 test -n "$ac_init_help" && exit $ac_status
1942 if $ac_init_version; then
1943 cat <<\_ACEOF
1944 configure
1945 generated by GNU Autoconf 2.64
1946
1947 Copyright (C) 2009 Free Software Foundation, Inc.
1948 This configure script is free software; the Free Software Foundation
1949 gives unlimited permission to copy, distribute and modify it.
1950 _ACEOF
1951 exit
1952 fi
1953
1954 ## ------------------------ ##
1955 ## Autoconf initialization. ##
1956 ## ------------------------ ##
1957
1958 # ac_fn_c_try_compile LINENO
1959 # --------------------------
1960 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1961 ac_fn_c_try_compile ()
1962 {
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 rm -f conftest.$ac_objext
1965 if { { ac_try="$ac_compile"
1966 case "(($ac_try" in
1967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968 *) ac_try_echo=$ac_try;;
1969 esac
1970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1971 $as_echo "$ac_try_echo"; } >&5
1972 (eval "$ac_compile") 2>conftest.err
1973 ac_status=$?
1974 if test -s conftest.err; then
1975 grep -v '^ *+' conftest.err >conftest.er1
1976 cat conftest.er1 >&5
1977 mv -f conftest.er1 conftest.err
1978 fi
1979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1980 test $ac_status = 0; } && {
1981 test -z "$ac_c_werror_flag" ||
1982 test ! -s conftest.err
1983 } && test -s conftest.$ac_objext; then :
1984 ac_retval=0
1985 else
1986 $as_echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1988
1989 ac_retval=1
1990 fi
1991 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1992 return $ac_retval
1993
1994 } # ac_fn_c_try_compile
1995
1996 # ac_fn_c_try_cpp LINENO
1997 # ----------------------
1998 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1999 ac_fn_c_try_cpp ()
2000 {
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 if { { ac_try="$ac_cpp conftest.$ac_ext"
2003 case "(($ac_try" in
2004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2005 *) ac_try_echo=$ac_try;;
2006 esac
2007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2008 $as_echo "$ac_try_echo"; } >&5
2009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2010 ac_status=$?
2011 if test -s conftest.err; then
2012 grep -v '^ *+' conftest.err >conftest.er1
2013 cat conftest.er1 >&5
2014 mv -f conftest.er1 conftest.err
2015 fi
2016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2017 test $ac_status = 0; } >/dev/null && {
2018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2019 test ! -s conftest.err
2020 }; then :
2021 ac_retval=0
2022 else
2023 $as_echo "$as_me: failed program was:" >&5
2024 sed 's/^/| /' conftest.$ac_ext >&5
2025
2026 ac_retval=1
2027 fi
2028 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2029 return $ac_retval
2030
2031 } # ac_fn_c_try_cpp
2032
2033 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2034 # -------------------------------------------------------
2035 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2036 # the include files in INCLUDES and setting the cache variable VAR
2037 # accordingly.
2038 ac_fn_c_check_header_mongrel ()
2039 {
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2043 $as_echo_n "checking for $2... " >&6; }
2044 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2045 $as_echo_n "(cached) " >&6
2046 fi
2047 eval ac_res=\$$3
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 $as_echo "$ac_res" >&6; }
2050 else
2051 # Is the header compilable?
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2053 $as_echo_n "checking $2 usability... " >&6; }
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2056 $4
2057 #include <$2>
2058 _ACEOF
2059 if ac_fn_c_try_compile "$LINENO"; then :
2060 ac_header_compiler=yes
2061 else
2062 ac_header_compiler=no
2063 fi
2064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2066 $as_echo "$ac_header_compiler" >&6; }
2067
2068 # Is the header present?
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2070 $as_echo_n "checking $2 presence... " >&6; }
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2073 #include <$2>
2074 _ACEOF
2075 if ac_fn_c_try_cpp "$LINENO"; then :
2076 ac_header_preproc=yes
2077 else
2078 ac_header_preproc=no
2079 fi
2080 rm -f conftest.err conftest.$ac_ext
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2082 $as_echo "$ac_header_preproc" >&6; }
2083
2084 # So? What about this header?
2085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2086 yes:no: )
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2088 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2090 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2091 ;;
2092 no:yes:* )
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2094 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2096 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2098 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2100 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2102 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2103 ;;
2104 esac
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2106 $as_echo_n "checking for $2... " >&6; }
2107 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2108 $as_echo_n "(cached) " >&6
2109 else
2110 eval "$3=\$ac_header_compiler"
2111 fi
2112 eval ac_res=\$$3
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2114 $as_echo "$ac_res" >&6; }
2115 fi
2116 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2117
2118 } # ac_fn_c_check_header_mongrel
2119
2120 # ac_fn_c_try_run LINENO
2121 # ----------------------
2122 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2123 # that executables *can* be run.
2124 ac_fn_c_try_run ()
2125 {
2126 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127 if { { ac_try="$ac_link"
2128 case "(($ac_try" in
2129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2130 *) ac_try_echo=$ac_try;;
2131 esac
2132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2133 $as_echo "$ac_try_echo"; } >&5
2134 (eval "$ac_link") 2>&5
2135 ac_status=$?
2136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2137 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2138 { { case "(($ac_try" in
2139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2140 *) ac_try_echo=$ac_try;;
2141 esac
2142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2143 $as_echo "$ac_try_echo"; } >&5
2144 (eval "$ac_try") 2>&5
2145 ac_status=$?
2146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2147 test $ac_status = 0; }; }; then :
2148 ac_retval=0
2149 else
2150 $as_echo "$as_me: program exited with status $ac_status" >&5
2151 $as_echo "$as_me: failed program was:" >&5
2152 sed 's/^/| /' conftest.$ac_ext >&5
2153
2154 ac_retval=$ac_status
2155 fi
2156 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2157 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2158 return $ac_retval
2159
2160 } # ac_fn_c_try_run
2161
2162 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2163 # -------------------------------------------------------
2164 # Tests whether HEADER exists and can be compiled using the include files in
2165 # INCLUDES, setting the cache variable VAR accordingly.
2166 ac_fn_c_check_header_compile ()
2167 {
2168 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2170 $as_echo_n "checking for $2... " >&6; }
2171 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2172 $as_echo_n "(cached) " >&6
2173 else
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h. */
2176 $4
2177 #include <$2>
2178 _ACEOF
2179 if ac_fn_c_try_compile "$LINENO"; then :
2180 eval "$3=yes"
2181 else
2182 eval "$3=no"
2183 fi
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185 fi
2186 eval ac_res=\$$3
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 $as_echo "$ac_res" >&6; }
2189 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2190
2191 } # ac_fn_c_check_header_compile
2192
2193 # ac_fn_c_try_link LINENO
2194 # -----------------------
2195 # Try to link conftest.$ac_ext, and return whether this succeeded.
2196 ac_fn_c_try_link ()
2197 {
2198 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2199 rm -f conftest.$ac_objext conftest$ac_exeext
2200 if { { ac_try="$ac_link"
2201 case "(($ac_try" in
2202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2203 *) ac_try_echo=$ac_try;;
2204 esac
2205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2206 $as_echo "$ac_try_echo"; } >&5
2207 (eval "$ac_link") 2>conftest.err
2208 ac_status=$?
2209 if test -s conftest.err; then
2210 grep -v '^ *+' conftest.err >conftest.er1
2211 cat conftest.er1 >&5
2212 mv -f conftest.er1 conftest.err
2213 fi
2214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2215 test $ac_status = 0; } && {
2216 test -z "$ac_c_werror_flag" ||
2217 test ! -s conftest.err
2218 } && test -s conftest$ac_exeext && {
2219 test "$cross_compiling" = yes ||
2220 $as_test_x conftest$ac_exeext
2221 }; then :
2222 ac_retval=0
2223 else
2224 $as_echo "$as_me: failed program was:" >&5
2225 sed 's/^/| /' conftest.$ac_ext >&5
2226
2227 ac_retval=1
2228 fi
2229 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2230 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2231 # interfere with the next link command; also delete a directory that is
2232 # left behind by Apple's compiler. We do this before executing the actions.
2233 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2234 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2235 return $ac_retval
2236
2237 } # ac_fn_c_try_link
2238
2239 # ac_fn_c_check_func LINENO FUNC VAR
2240 # ----------------------------------
2241 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2242 ac_fn_c_check_func ()
2243 {
2244 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2246 $as_echo_n "checking for $2... " >&6; }
2247 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2248 $as_echo_n "(cached) " >&6
2249 else
2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h. */
2252 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2254 #define $2 innocuous_$2
2255
2256 /* System header to define __stub macros and hopefully few prototypes,
2257 which can conflict with char $2 (); below.
2258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2259 <limits.h> exists even on freestanding compilers. */
2260
2261 #ifdef __STDC__
2262 # include <limits.h>
2263 #else
2264 # include <assert.h>
2265 #endif
2266
2267 #undef $2
2268
2269 /* Override any GCC internal prototype to avoid an error.
2270 Use char because int might match the return type of a GCC
2271 builtin and then its argument prototype would still apply. */
2272 #ifdef __cplusplus
2273 extern "C"
2274 #endif
2275 char $2 ();
2276 /* The GNU C library defines this for functions which it implements
2277 to always fail with ENOSYS. Some functions are actually named
2278 something starting with __ and the normal name is an alias. */
2279 #if defined __stub_$2 || defined __stub___$2
2280 choke me
2281 #endif
2282
2283 int
2284 main ()
2285 {
2286 return $2 ();
2287 ;
2288 return 0;
2289 }
2290 _ACEOF
2291 if ac_fn_c_try_link "$LINENO"; then :
2292 eval "$3=yes"
2293 else
2294 eval "$3=no"
2295 fi
2296 rm -f core conftest.err conftest.$ac_objext \
2297 conftest$ac_exeext conftest.$ac_ext
2298 fi
2299 eval ac_res=\$$3
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2301 $as_echo "$ac_res" >&6; }
2302 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2303
2304 } # ac_fn_c_check_func
2305
2306 # ac_fn_c_check_decl LINENO SYMBOL VAR
2307 # ------------------------------------
2308 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2309 ac_fn_c_check_decl ()
2310 {
2311 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2313 $as_echo_n "checking whether $2 is declared... " >&6; }
2314 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2315 $as_echo_n "(cached) " >&6
2316 else
2317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2318 /* end confdefs.h. */
2319 $4
2320 int
2321 main ()
2322 {
2323 #ifndef $2
2324 (void) $2;
2325 #endif
2326
2327 ;
2328 return 0;
2329 }
2330 _ACEOF
2331 if ac_fn_c_try_compile "$LINENO"; then :
2332 eval "$3=yes"
2333 else
2334 eval "$3=no"
2335 fi
2336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337 fi
2338 eval ac_res=\$$3
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2340 $as_echo "$ac_res" >&6; }
2341 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2342
2343 } # ac_fn_c_check_decl
2344
2345 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2346 # --------------------------------------------
2347 # Tries to find the compile-time value of EXPR in a program that includes
2348 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2349 # computed
2350 ac_fn_c_compute_int ()
2351 {
2352 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2353 if test "$cross_compiling" = yes; then
2354 # Depending upon the size, compute the lo and hi bounds.
2355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2356 /* end confdefs.h. */
2357 $4
2358 int
2359 main ()
2360 {
2361 static int test_array [1 - 2 * !(($2) >= 0)];
2362 test_array [0] = 0
2363
2364 ;
2365 return 0;
2366 }
2367 _ACEOF
2368 if ac_fn_c_try_compile "$LINENO"; then :
2369 ac_lo=0 ac_mid=0
2370 while :; do
2371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2372 /* end confdefs.h. */
2373 $4
2374 int
2375 main ()
2376 {
2377 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2378 test_array [0] = 0
2379
2380 ;
2381 return 0;
2382 }
2383 _ACEOF
2384 if ac_fn_c_try_compile "$LINENO"; then :
2385 ac_hi=$ac_mid; break
2386 else
2387 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2388 if test $ac_lo -le $ac_mid; then
2389 ac_lo= ac_hi=
2390 break
2391 fi
2392 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2393 fi
2394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2395 done
2396 else
2397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2398 /* end confdefs.h. */
2399 $4
2400 int
2401 main ()
2402 {
2403 static int test_array [1 - 2 * !(($2) < 0)];
2404 test_array [0] = 0
2405
2406 ;
2407 return 0;
2408 }
2409 _ACEOF
2410 if ac_fn_c_try_compile "$LINENO"; then :
2411 ac_hi=-1 ac_mid=-1
2412 while :; do
2413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414 /* end confdefs.h. */
2415 $4
2416 int
2417 main ()
2418 {
2419 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2420 test_array [0] = 0
2421
2422 ;
2423 return 0;
2424 }
2425 _ACEOF
2426 if ac_fn_c_try_compile "$LINENO"; then :
2427 ac_lo=$ac_mid; break
2428 else
2429 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2430 if test $ac_mid -le $ac_hi; then
2431 ac_lo= ac_hi=
2432 break
2433 fi
2434 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2435 fi
2436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437 done
2438 else
2439 ac_lo= ac_hi=
2440 fi
2441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2442 fi
2443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2444 # Binary search between lo and hi bounds.
2445 while test "x$ac_lo" != "x$ac_hi"; do
2446 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448 /* end confdefs.h. */
2449 $4
2450 int
2451 main ()
2452 {
2453 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2454 test_array [0] = 0
2455
2456 ;
2457 return 0;
2458 }
2459 _ACEOF
2460 if ac_fn_c_try_compile "$LINENO"; then :
2461 ac_hi=$ac_mid
2462 else
2463 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2464 fi
2465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2466 done
2467 case $ac_lo in #((
2468 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2469 '') ac_retval=1 ;;
2470 esac
2471 else
2472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2473 /* end confdefs.h. */
2474 $4
2475 static long int longval () { return $2; }
2476 static unsigned long int ulongval () { return $2; }
2477 #include <stdio.h>
2478 #include <stdlib.h>
2479 int
2480 main ()
2481 {
2482
2483 FILE *f = fopen ("conftest.val", "w");
2484 if (! f)
2485 return 1;
2486 if (($2) < 0)
2487 {
2488 long int i = longval ();
2489 if (i != ($2))
2490 return 1;
2491 fprintf (f, "%ld", i);
2492 }
2493 else
2494 {
2495 unsigned long int i = ulongval ();
2496 if (i != ($2))
2497 return 1;
2498 fprintf (f, "%lu", i);
2499 }
2500 /* Do not output a trailing newline, as this causes \r\n confusion
2501 on some platforms. */
2502 return ferror (f) || fclose (f) != 0;
2503
2504 ;
2505 return 0;
2506 }
2507 _ACEOF
2508 if ac_fn_c_try_run "$LINENO"; then :
2509 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2510 else
2511 ac_retval=1
2512 fi
2513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2514 conftest.$ac_objext conftest.beam conftest.$ac_ext
2515 rm -f conftest.val
2516
2517 fi
2518 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2519 return $ac_retval
2520
2521 } # ac_fn_c_compute_int
2522
2523 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2524 # -------------------------------------------
2525 # Tests whether TYPE exists after having included INCLUDES, setting cache
2526 # variable VAR accordingly.
2527 ac_fn_c_check_type ()
2528 {
2529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2531 $as_echo_n "checking for $2... " >&6; }
2532 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2533 $as_echo_n "(cached) " >&6
2534 else
2535 eval "$3=no"
2536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2537 /* end confdefs.h. */
2538 $4
2539 int
2540 main ()
2541 {
2542 if (sizeof ($2))
2543 return 0;
2544 ;
2545 return 0;
2546 }
2547 _ACEOF
2548 if ac_fn_c_try_compile "$LINENO"; then :
2549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550 /* end confdefs.h. */
2551 $4
2552 int
2553 main ()
2554 {
2555 if (sizeof (($2)))
2556 return 0;
2557 ;
2558 return 0;
2559 }
2560 _ACEOF
2561 if ac_fn_c_try_compile "$LINENO"; then :
2562
2563 else
2564 eval "$3=yes"
2565 fi
2566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2567 fi
2568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2569 fi
2570 eval ac_res=\$$3
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2572 $as_echo "$ac_res" >&6; }
2573 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2574
2575 } # ac_fn_c_check_type
2576 cat >config.log <<_ACEOF
2577 This file contains any messages produced by compilers while
2578 running configure, to aid debugging if configure makes a mistake.
2579
2580 It was created by $as_me, which was
2581 generated by GNU Autoconf 2.64. Invocation command line was
2582
2583 $ $0 $@
2584
2585 _ACEOF
2586 exec 5>>config.log
2587 {
2588 cat <<_ASUNAME
2589 ## --------- ##
2590 ## Platform. ##
2591 ## --------- ##
2592
2593 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2594 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2595 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2596 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2597 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2598
2599 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2600 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2601
2602 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2603 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2604 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2605 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2606 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2607 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2608 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2609
2610 _ASUNAME
2611
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 for as_dir in $PATH
2614 do
2615 IFS=$as_save_IFS
2616 test -z "$as_dir" && as_dir=.
2617 $as_echo "PATH: $as_dir"
2618 done
2619 IFS=$as_save_IFS
2620
2621 } >&5
2622
2623 cat >&5 <<_ACEOF
2624
2625
2626 ## ----------- ##
2627 ## Core tests. ##
2628 ## ----------- ##
2629
2630 _ACEOF
2631
2632
2633 # Keep a trace of the command line.
2634 # Strip out --no-create and --no-recursion so they do not pile up.
2635 # Strip out --silent because we don't want to record it for future runs.
2636 # Also quote any args containing shell meta-characters.
2637 # Make two passes to allow for proper duplicate-argument suppression.
2638 ac_configure_args=
2639 ac_configure_args0=
2640 ac_configure_args1=
2641 ac_must_keep_next=false
2642 for ac_pass in 1 2
2643 do
2644 for ac_arg
2645 do
2646 case $ac_arg in
2647 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2648 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2649 | -silent | --silent | --silen | --sile | --sil)
2650 continue ;;
2651 *\'*)
2652 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2653 esac
2654 case $ac_pass in
2655 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2656 2)
2657 as_fn_append ac_configure_args1 " '$ac_arg'"
2658 if test $ac_must_keep_next = true; then
2659 ac_must_keep_next=false # Got value, back to normal.
2660 else
2661 case $ac_arg in
2662 *=* | --config-cache | -C | -disable-* | --disable-* \
2663 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2664 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2665 | -with-* | --with-* | -without-* | --without-* | --x)
2666 case "$ac_configure_args0 " in
2667 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2668 esac
2669 ;;
2670 -* ) ac_must_keep_next=true ;;
2671 esac
2672 fi
2673 as_fn_append ac_configure_args " '$ac_arg'"
2674 ;;
2675 esac
2676 done
2677 done
2678 { ac_configure_args0=; unset ac_configure_args0;}
2679 { ac_configure_args1=; unset ac_configure_args1;}
2680
2681 # When interrupted or exit'd, cleanup temporary files, and complete
2682 # config.log. We remove comments because anyway the quotes in there
2683 # would cause problems or look ugly.
2684 # WARNING: Use '\'' to represent an apostrophe within the trap.
2685 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2686 trap 'exit_status=$?
2687 # Save into config.log some information that might help in debugging.
2688 {
2689 echo
2690
2691 cat <<\_ASBOX
2692 ## ---------------- ##
2693 ## Cache variables. ##
2694 ## ---------------- ##
2695 _ASBOX
2696 echo
2697 # The following way of writing the cache mishandles newlines in values,
2698 (
2699 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2700 eval ac_val=\$$ac_var
2701 case $ac_val in #(
2702 *${as_nl}*)
2703 case $ac_var in #(
2704 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2705 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2706 esac
2707 case $ac_var in #(
2708 _ | IFS | as_nl) ;; #(
2709 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2710 *) { eval $ac_var=; unset $ac_var;} ;;
2711 esac ;;
2712 esac
2713 done
2714 (set) 2>&1 |
2715 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2716 *${as_nl}ac_space=\ *)
2717 sed -n \
2718 "s/'\''/'\''\\\\'\'''\''/g;
2719 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2720 ;; #(
2721 *)
2722 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2723 ;;
2724 esac |
2725 sort
2726 )
2727 echo
2728
2729 cat <<\_ASBOX
2730 ## ----------------- ##
2731 ## Output variables. ##
2732 ## ----------------- ##
2733 _ASBOX
2734 echo
2735 for ac_var in $ac_subst_vars
2736 do
2737 eval ac_val=\$$ac_var
2738 case $ac_val in
2739 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2740 esac
2741 $as_echo "$ac_var='\''$ac_val'\''"
2742 done | sort
2743 echo
2744
2745 if test -n "$ac_subst_files"; then
2746 cat <<\_ASBOX
2747 ## ------------------- ##
2748 ## File substitutions. ##
2749 ## ------------------- ##
2750 _ASBOX
2751 echo
2752 for ac_var in $ac_subst_files
2753 do
2754 eval ac_val=\$$ac_var
2755 case $ac_val in
2756 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2757 esac
2758 $as_echo "$ac_var='\''$ac_val'\''"
2759 done | sort
2760 echo
2761 fi
2762
2763 if test -s confdefs.h; then
2764 cat <<\_ASBOX
2765 ## ----------- ##
2766 ## confdefs.h. ##
2767 ## ----------- ##
2768 _ASBOX
2769 echo
2770 cat confdefs.h
2771 echo
2772 fi
2773 test "$ac_signal" != 0 &&
2774 $as_echo "$as_me: caught signal $ac_signal"
2775 $as_echo "$as_me: exit $exit_status"
2776 } >&5
2777 rm -f core *.core core.conftest.* &&
2778 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2779 exit $exit_status
2780 ' 0
2781 for ac_signal in 1 2 13 15; do
2782 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2783 done
2784 ac_signal=0
2785
2786 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2787 rm -f -r conftest* confdefs.h
2788
2789 $as_echo "/* confdefs.h */" > confdefs.h
2790
2791 # Predefined preprocessor variables.
2792
2793 cat >>confdefs.h <<_ACEOF
2794 #define PACKAGE_NAME "$PACKAGE_NAME"
2795 _ACEOF
2796
2797 cat >>confdefs.h <<_ACEOF
2798 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2799 _ACEOF
2800
2801 cat >>confdefs.h <<_ACEOF
2802 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2803 _ACEOF
2804
2805 cat >>confdefs.h <<_ACEOF
2806 #define PACKAGE_STRING "$PACKAGE_STRING"
2807 _ACEOF
2808
2809 cat >>confdefs.h <<_ACEOF
2810 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2811 _ACEOF
2812
2813 cat >>confdefs.h <<_ACEOF
2814 #define PACKAGE_URL "$PACKAGE_URL"
2815 _ACEOF
2816
2817
2818 # Let the site file select an alternate cache file if it wants to.
2819 # Prefer an explicitly selected file to automatically selected ones.
2820 ac_site_file1=NONE
2821 ac_site_file2=NONE
2822 if test -n "$CONFIG_SITE"; then
2823 ac_site_file1=$CONFIG_SITE
2824 elif test "x$prefix" != xNONE; then
2825 ac_site_file1=$prefix/share/config.site
2826 ac_site_file2=$prefix/etc/config.site
2827 else
2828 ac_site_file1=$ac_default_prefix/share/config.site
2829 ac_site_file2=$ac_default_prefix/etc/config.site
2830 fi
2831 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2832 do
2833 test "x$ac_site_file" = xNONE && continue
2834 if test -r "$ac_site_file"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2836 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2837 sed 's/^/| /' "$ac_site_file" >&5
2838 . "$ac_site_file"
2839 fi
2840 done
2841
2842 if test -r "$cache_file"; then
2843 # Some versions of bash will fail to source /dev/null (special
2844 # files actually), so we avoid doing that.
2845 if test -f "$cache_file"; then
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2847 $as_echo "$as_me: loading cache $cache_file" >&6;}
2848 case $cache_file in
2849 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2850 *) . "./$cache_file";;
2851 esac
2852 fi
2853 else
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2855 $as_echo "$as_me: creating cache $cache_file" >&6;}
2856 >$cache_file
2857 fi
2858
2859 as_fn_append ac_func_list " btowc"
2860 as_fn_append ac_func_list " isblank"
2861 as_fn_append ac_func_list " iswctype"
2862 as_fn_append ac_func_list " mbsrtowcs"
2863 as_fn_append ac_func_list " mempcpy"
2864 as_fn_append ac_func_list " wmemchr"
2865 as_fn_append ac_func_list " wmemcpy"
2866 as_fn_append ac_func_list " wmempcpy"
2867 as_fn_append ac_header_list " wctype.h"
2868 gl_fnmatch_required=GNU
2869 as_fn_append ac_func_list " alarm"
2870 as_fn_append ac_header_list " wchar.h"
2871 as_fn_append ac_header_list " stdint.h"
2872 as_fn_append ac_header_list " inttypes.h"
2873 as_fn_append ac_header_list " unistd.h"
2874 as_fn_append ac_func_list " symlink"
2875 as_fn_append ac_header_list " math.h"
2876 as_fn_append ac_func_list " mbsinit"
2877 as_fn_append ac_func_list " mbrtowc"
2878 as_fn_append ac_header_list " sys/mman.h"
2879 as_fn_append ac_func_list " mprotect"
2880 as_fn_append ac_header_list " features.h"
2881 as_fn_append ac_func_list " iswcntrl"
2882 # Check that the precious variables saved in the cache have kept the same
2883 # value.
2884 ac_cache_corrupted=false
2885 for ac_var in $ac_precious_vars; do
2886 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2887 eval ac_new_set=\$ac_env_${ac_var}_set
2888 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2889 eval ac_new_val=\$ac_env_${ac_var}_value
2890 case $ac_old_set,$ac_new_set in
2891 set,)
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2893 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2894 ac_cache_corrupted=: ;;
2895 ,set)
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2897 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2898 ac_cache_corrupted=: ;;
2899 ,);;
2900 *)
2901 if test "x$ac_old_val" != "x$ac_new_val"; then
2902 # differences in whitespace do not lead to failure.
2903 ac_old_val_w=`echo x $ac_old_val`
2904 ac_new_val_w=`echo x $ac_new_val`
2905 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2907 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2908 ac_cache_corrupted=:
2909 else
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2911 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2912 eval $ac_var=\$ac_old_val
2913 fi
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2915 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2917 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2918 fi;;
2919 esac
2920 # Pass precious variables to config.status.
2921 if test "$ac_new_set" = set; then
2922 case $ac_new_val in
2923 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2924 *) ac_arg=$ac_var=$ac_new_val ;;
2925 esac
2926 case " $ac_configure_args " in
2927 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2928 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2929 esac
2930 fi
2931 done
2932 if $ac_cache_corrupted; then
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2936 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2937 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2938 fi
2939 ## -------------------- ##
2940 ## Main body of script. ##
2941 ## -------------------- ##
2942
2943 ac_ext=c
2944 ac_cpp='$CPP $CPPFLAGS'
2945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2948
2949
2950 ac_config_headers="$ac_config_headers config.h:config.in"
2951
2952
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2954 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2955 # Check whether --enable-maintainer-mode was given.
2956 if test "${enable_maintainer_mode+set}" = set; then :
2957 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2958 else
2959 USE_MAINTAINER_MODE=no
2960 fi
2961
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2963 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2964 if test $USE_MAINTAINER_MODE = yes; then
2965 MAINTAINER_MODE_TRUE=
2966 MAINTAINER_MODE_FALSE='#'
2967 else
2968 MAINTAINER_MODE_TRUE='#'
2969 MAINTAINER_MODE_FALSE=
2970 fi
2971
2972 MAINT=$MAINTAINER_MODE_TRUE
2973
2974
2975
2976 ac_ext=c
2977 ac_cpp='$CPP $CPPFLAGS'
2978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2981 if test -n "$ac_tool_prefix"; then
2982 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2983 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2985 $as_echo_n "checking for $ac_word... " >&6; }
2986 if test "${ac_cv_prog_CC+set}" = set; then :
2987 $as_echo_n "(cached) " >&6
2988 else
2989 if test -n "$CC"; then
2990 ac_cv_prog_CC="$CC" # Let the user override the test.
2991 else
2992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 for as_dir in $PATH
2994 do
2995 IFS=$as_save_IFS
2996 test -z "$as_dir" && as_dir=.
2997 for ac_exec_ext in '' $ac_executable_extensions; do
2998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2999 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 break 2
3002 fi
3003 done
3004 done
3005 IFS=$as_save_IFS
3006
3007 fi
3008 fi
3009 CC=$ac_cv_prog_CC
3010 if test -n "$CC"; then
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3012 $as_echo "$CC" >&6; }
3013 else
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3015 $as_echo "no" >&6; }
3016 fi
3017
3018
3019 fi
3020 if test -z "$ac_cv_prog_CC"; then
3021 ac_ct_CC=$CC
3022 # Extract the first word of "gcc", so it can be a program name with args.
3023 set dummy gcc; ac_word=$2
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025 $as_echo_n "checking for $ac_word... " >&6; }
3026 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3027 $as_echo_n "(cached) " >&6
3028 else
3029 if test -n "$ac_ct_CC"; then
3030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3031 else
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 for as_dir in $PATH
3034 do
3035 IFS=$as_save_IFS
3036 test -z "$as_dir" && as_dir=.
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3039 ac_cv_prog_ac_ct_CC="gcc"
3040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3041 break 2
3042 fi
3043 done
3044 done
3045 IFS=$as_save_IFS
3046
3047 fi
3048 fi
3049 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3050 if test -n "$ac_ct_CC"; then
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3052 $as_echo "$ac_ct_CC" >&6; }
3053 else
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055 $as_echo "no" >&6; }
3056 fi
3057
3058 if test "x$ac_ct_CC" = x; then
3059 CC=""
3060 else
3061 case $cross_compiling:$ac_tool_warned in
3062 yes:)
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3064 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3065 ac_tool_warned=yes ;;
3066 esac
3067 CC=$ac_ct_CC
3068 fi
3069 else
3070 CC="$ac_cv_prog_CC"
3071 fi
3072
3073 if test -z "$CC"; then
3074 if test -n "$ac_tool_prefix"; then
3075 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3076 set dummy ${ac_tool_prefix}cc; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if test "${ac_cv_prog_CC+set}" = set; then :
3080 $as_echo_n "(cached) " >&6
3081 else
3082 if test -n "$CC"; then
3083 ac_cv_prog_CC="$CC" # Let the user override the test.
3084 else
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3087 do
3088 IFS=$as_save_IFS
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3092 ac_cv_prog_CC="${ac_tool_prefix}cc"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 break 2
3095 fi
3096 done
3097 done
3098 IFS=$as_save_IFS
3099
3100 fi
3101 fi
3102 CC=$ac_cv_prog_CC
3103 if test -n "$CC"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3105 $as_echo "$CC" >&6; }
3106 else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3109 fi
3110
3111
3112 fi
3113 fi
3114 if test -z "$CC"; then
3115 # Extract the first word of "cc", so it can be a program name with args.
3116 set dummy cc; ac_word=$2
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118 $as_echo_n "checking for $ac_word... " >&6; }
3119 if test "${ac_cv_prog_CC+set}" = set; then :
3120 $as_echo_n "(cached) " >&6
3121 else
3122 if test -n "$CC"; then
3123 ac_cv_prog_CC="$CC" # Let the user override the test.
3124 else
3125 ac_prog_rejected=no
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH
3128 do
3129 IFS=$as_save_IFS
3130 test -z "$as_dir" && as_dir=.
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3133 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3134 ac_prog_rejected=yes
3135 continue
3136 fi
3137 ac_cv_prog_CC="cc"
3138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 break 2
3140 fi
3141 done
3142 done
3143 IFS=$as_save_IFS
3144
3145 if test $ac_prog_rejected = yes; then
3146 # We found a bogon in the path, so make sure we never use it.
3147 set dummy $ac_cv_prog_CC
3148 shift
3149 if test $# != 0; then
3150 # We chose a different compiler from the bogus one.
3151 # However, it has the same basename, so the bogon will be chosen
3152 # first if we set CC to just the basename; use the full file name.
3153 shift
3154 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3155 fi
3156 fi
3157 fi
3158 fi
3159 CC=$ac_cv_prog_CC
3160 if test -n "$CC"; then
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3162 $as_echo "$CC" >&6; }
3163 else
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3166 fi
3167
3168
3169 fi
3170 if test -z "$CC"; then
3171 if test -n "$ac_tool_prefix"; then
3172 for ac_prog in cl.exe
3173 do
3174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3175 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3177 $as_echo_n "checking for $ac_word... " >&6; }
3178 if test "${ac_cv_prog_CC+set}" = set; then :
3179 $as_echo_n "(cached) " >&6
3180 else
3181 if test -n "$CC"; then
3182 ac_cv_prog_CC="$CC" # Let the user override the test.
3183 else
3184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3185 for as_dir in $PATH
3186 do
3187 IFS=$as_save_IFS
3188 test -z "$as_dir" && as_dir=.
3189 for ac_exec_ext in '' $ac_executable_extensions; do
3190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3191 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3193 break 2
3194 fi
3195 done
3196 done
3197 IFS=$as_save_IFS
3198
3199 fi
3200 fi
3201 CC=$ac_cv_prog_CC
3202 if test -n "$CC"; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3204 $as_echo "$CC" >&6; }
3205 else
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3207 $as_echo "no" >&6; }
3208 fi
3209
3210
3211 test -n "$CC" && break
3212 done
3213 fi
3214 if test -z "$CC"; then
3215 ac_ct_CC=$CC
3216 for ac_prog in cl.exe
3217 do
3218 # Extract the first word of "$ac_prog", so it can be a program name with args.
3219 set dummy $ac_prog; ac_word=$2
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3221 $as_echo_n "checking for $ac_word... " >&6; }
3222 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3223 $as_echo_n "(cached) " >&6
3224 else
3225 if test -n "$ac_ct_CC"; then
3226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3227 else
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH
3230 do
3231 IFS=$as_save_IFS
3232 test -z "$as_dir" && as_dir=.
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3235 ac_cv_prog_ac_ct_CC="$ac_prog"
3236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 break 2
3238 fi
3239 done
3240 done
3241 IFS=$as_save_IFS
3242
3243 fi
3244 fi
3245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3246 if test -n "$ac_ct_CC"; then
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3248 $as_echo "$ac_ct_CC" >&6; }
3249 else
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251 $as_echo "no" >&6; }
3252 fi
3253
3254
3255 test -n "$ac_ct_CC" && break
3256 done
3257
3258 if test "x$ac_ct_CC" = x; then
3259 CC=""
3260 else
3261 case $cross_compiling:$ac_tool_warned in
3262 yes:)
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3265 ac_tool_warned=yes ;;
3266 esac
3267 CC=$ac_ct_CC
3268 fi
3269 fi
3270
3271 fi
3272
3273
3274 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276 as_fn_error "no acceptable C compiler found in \$PATH
3277 See \`config.log' for more details." "$LINENO" 5; }
3278
3279 # Provide some information about the compiler.
3280 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3281 set X $ac_compile
3282 ac_compiler=$2
3283 for ac_option in --version -v -V -qversion; do
3284 { { ac_try="$ac_compiler $ac_option >&5"
3285 case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3288 esac
3289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3290 $as_echo "$ac_try_echo"; } >&5
3291 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3292 ac_status=$?
3293 if test -s conftest.err; then
3294 sed '10a\
3295 ... rest of stderr output deleted ...
3296 10q' conftest.err >conftest.er1
3297 cat conftest.er1 >&5
3298 rm -f conftest.er1 conftest.err
3299 fi
3300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3301 test $ac_status = 0; }
3302 done
3303
3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305 /* end confdefs.h. */
3306 #include <stdio.h>
3307 int
3308 main ()
3309 {
3310 FILE *f = fopen ("conftest.out", "w");
3311 return ferror (f) || fclose (f) != 0;
3312
3313 ;
3314 return 0;
3315 }
3316 _ACEOF
3317 ac_clean_files_save=$ac_clean_files
3318 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3319 # Try to create an executable without -o first, disregard a.out.
3320 # It will help us diagnose broken compilers, and finding out an intuition
3321 # of exeext.
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3323 $as_echo_n "checking for C compiler default output file name... " >&6; }
3324 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3325
3326 # The possible output files:
3327 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3328
3329 ac_rmfiles=
3330 for ac_file in $ac_files
3331 do
3332 case $ac_file in
3333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3334 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3335 esac
3336 done
3337 rm -f $ac_rmfiles
3338
3339 if { { ac_try="$ac_link_default"
3340 case "(($ac_try" in
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3343 esac
3344 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3345 $as_echo "$ac_try_echo"; } >&5
3346 (eval "$ac_link_default") 2>&5
3347 ac_status=$?
3348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3349 test $ac_status = 0; }; then :
3350 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3351 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3352 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3353 # so that the user can short-circuit this test for compilers unknown to
3354 # Autoconf.
3355 for ac_file in $ac_files ''
3356 do
3357 test -f "$ac_file" || continue
3358 case $ac_file in
3359 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3360 ;;
3361 [ab].out )
3362 # We found the default executable, but exeext='' is most
3363 # certainly right.
3364 break;;
3365 *.* )
3366 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3367 then :; else
3368 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3369 fi
3370 # We set ac_cv_exeext here because the later test for it is not
3371 # safe: cross compilers may not add the suffix if given an `-o'
3372 # argument, so we may need to know it at that point already.
3373 # Even if this section looks crufty: it has the advantage of
3374 # actually working.
3375 break;;
3376 * )
3377 break;;
3378 esac
3379 done
3380 test "$ac_cv_exeext" = no && ac_cv_exeext=
3381
3382 else
3383 ac_file=''
3384 fi
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3386 $as_echo "$ac_file" >&6; }
3387 if test -z "$ac_file"; then :
3388 $as_echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3390
3391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393 { as_fn_set_status 77
3394 as_fn_error "C compiler cannot create executables
3395 See \`config.log' for more details." "$LINENO" 5; }; }
3396 fi
3397 ac_exeext=$ac_cv_exeext
3398
3399 # Check that the compiler produces executables we can run. If not, either
3400 # the compiler is broken, or we cross compile.
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3402 $as_echo_n "checking whether the C compiler works... " >&6; }
3403 # If not cross compiling, check that we can run a simple program.
3404 if test "$cross_compiling" != yes; then
3405 if { ac_try='./$ac_file'
3406 { { case "(($ac_try" in
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3409 esac
3410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3411 $as_echo "$ac_try_echo"; } >&5
3412 (eval "$ac_try") 2>&5
3413 ac_status=$?
3414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3415 test $ac_status = 0; }; }; then
3416 cross_compiling=no
3417 else
3418 if test "$cross_compiling" = maybe; then
3419 cross_compiling=yes
3420 else
3421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3423 as_fn_error "cannot run C compiled programs.
3424 If you meant to cross compile, use \`--host'.
3425 See \`config.log' for more details." "$LINENO" 5; }
3426 fi
3427 fi
3428 fi
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3430 $as_echo "yes" >&6; }
3431
3432 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3433 ac_clean_files=$ac_clean_files_save
3434 # Check that the compiler produces executables we can run. If not, either
3435 # the compiler is broken, or we cross compile.
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3437 $as_echo_n "checking whether we are cross compiling... " >&6; }
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3439 $as_echo "$cross_compiling" >&6; }
3440
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3442 $as_echo_n "checking for suffix of executables... " >&6; }
3443 if { { ac_try="$ac_link"
3444 case "(($ac_try" in
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3447 esac
3448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3449 $as_echo "$ac_try_echo"; } >&5
3450 (eval "$ac_link") 2>&5
3451 ac_status=$?
3452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3453 test $ac_status = 0; }; then :
3454 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3455 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3456 # work properly (i.e., refer to `conftest.exe'), while it won't with
3457 # `rm'.
3458 for ac_file in conftest.exe conftest conftest.*; do
3459 test -f "$ac_file" || continue
3460 case $ac_file in
3461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3462 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3463 break;;
3464 * ) break;;
3465 esac
3466 done
3467 else
3468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3470 as_fn_error "cannot compute suffix of executables: cannot compile and link
3471 See \`config.log' for more details." "$LINENO" 5; }
3472 fi
3473 rm -f conftest$ac_cv_exeext
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3475 $as_echo "$ac_cv_exeext" >&6; }
3476
3477 rm -f conftest.$ac_ext
3478 EXEEXT=$ac_cv_exeext
3479 ac_exeext=$EXEEXT
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3481 $as_echo_n "checking for suffix of object files... " >&6; }
3482 if test "${ac_cv_objext+set}" = set; then :
3483 $as_echo_n "(cached) " >&6
3484 else
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h. */
3487
3488 int
3489 main ()
3490 {
3491
3492 ;
3493 return 0;
3494 }
3495 _ACEOF
3496 rm -f conftest.o conftest.obj
3497 if { { ac_try="$ac_compile"
3498 case "(($ac_try" in
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3501 esac
3502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3503 $as_echo "$ac_try_echo"; } >&5
3504 (eval "$ac_compile") 2>&5
3505 ac_status=$?
3506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3507 test $ac_status = 0; }; then :
3508 for ac_file in conftest.o conftest.obj conftest.*; do
3509 test -f "$ac_file" || continue;
3510 case $ac_file in
3511 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3512 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3513 break;;
3514 esac
3515 done
3516 else
3517 $as_echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3519
3520 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3522 as_fn_error "cannot compute suffix of object files: cannot compile
3523 See \`config.log' for more details." "$LINENO" 5; }
3524 fi
3525 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3526 fi
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3528 $as_echo "$ac_cv_objext" >&6; }
3529 OBJEXT=$ac_cv_objext
3530 ac_objext=$OBJEXT
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3532 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3533 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3534 $as_echo_n "(cached) " >&6
3535 else
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3538
3539 int
3540 main ()
3541 {
3542 #ifndef __GNUC__
3543 choke me
3544 #endif
3545
3546 ;
3547 return 0;
3548 }
3549 _ACEOF
3550 if ac_fn_c_try_compile "$LINENO"; then :
3551 ac_compiler_gnu=yes
3552 else
3553 ac_compiler_gnu=no
3554 fi
3555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3556 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3557
3558 fi
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3560 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3561 if test $ac_compiler_gnu = yes; then
3562 GCC=yes
3563 else
3564 GCC=
3565 fi
3566 ac_test_CFLAGS=${CFLAGS+set}
3567 ac_save_CFLAGS=$CFLAGS
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3569 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3570 if test "${ac_cv_prog_cc_g+set}" = set; then :
3571 $as_echo_n "(cached) " >&6
3572 else
3573 ac_save_c_werror_flag=$ac_c_werror_flag
3574 ac_c_werror_flag=yes
3575 ac_cv_prog_cc_g=no
3576 CFLAGS="-g"
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3579
3580 int
3581 main ()
3582 {
3583
3584 ;
3585 return 0;
3586 }
3587 _ACEOF
3588 if ac_fn_c_try_compile "$LINENO"; then :
3589 ac_cv_prog_cc_g=yes
3590 else
3591 CFLAGS=""
3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h. */
3594
3595 int
3596 main ()
3597 {
3598
3599 ;
3600 return 0;
3601 }
3602 _ACEOF
3603 if ac_fn_c_try_compile "$LINENO"; then :
3604
3605 else
3606 ac_c_werror_flag=$ac_save_c_werror_flag
3607 CFLAGS="-g"
3608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3609 /* end confdefs.h. */
3610
3611 int
3612 main ()
3613 {
3614
3615 ;
3616 return 0;
3617 }
3618 _ACEOF
3619 if ac_fn_c_try_compile "$LINENO"; then :
3620 ac_cv_prog_cc_g=yes
3621 fi
3622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3623 fi
3624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3625 fi
3626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3627 ac_c_werror_flag=$ac_save_c_werror_flag
3628 fi
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3630 $as_echo "$ac_cv_prog_cc_g" >&6; }
3631 if test "$ac_test_CFLAGS" = set; then
3632 CFLAGS=$ac_save_CFLAGS
3633 elif test $ac_cv_prog_cc_g = yes; then
3634 if test "$GCC" = yes; then
3635 CFLAGS="-g -O2"
3636 else
3637 CFLAGS="-g"
3638 fi
3639 else
3640 if test "$GCC" = yes; then
3641 CFLAGS="-O2"
3642 else
3643 CFLAGS=
3644 fi
3645 fi
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3647 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3648 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3649 $as_echo_n "(cached) " >&6
3650 else
3651 ac_cv_prog_cc_c89=no
3652 ac_save_CC=$CC
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3655 #include <stdarg.h>
3656 #include <stdio.h>
3657 #include <sys/types.h>
3658 #include <sys/stat.h>
3659 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3660 struct buf { int x; };
3661 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3662 static char *e (p, i)
3663 char **p;
3664 int i;
3665 {
3666 return p[i];
3667 }
3668 static char *f (char * (*g) (char **, int), char **p, ...)
3669 {
3670 char *s;
3671 va_list v;
3672 va_start (v,p);
3673 s = g (p, va_arg (v,int));
3674 va_end (v);
3675 return s;
3676 }
3677
3678 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3679 function prototypes and stuff, but not '\xHH' hex character constants.
3680 These don't provoke an error unfortunately, instead are silently treated
3681 as 'x'. The following induces an error, until -std is added to get
3682 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3683 array size at least. It's necessary to write '\x00'==0 to get something
3684 that's true only with -std. */
3685 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3686
3687 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3688 inside strings and character constants. */
3689 #define FOO(x) 'x'
3690 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3691
3692 int test (int i, double x);
3693 struct s1 {int (*f) (int a);};
3694 struct s2 {int (*f) (double a);};
3695 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3696 int argc;
3697 char **argv;
3698 int
3699 main ()
3700 {
3701 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3702 ;
3703 return 0;
3704 }
3705 _ACEOF
3706 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3707 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3708 do
3709 CC="$ac_save_CC $ac_arg"
3710 if ac_fn_c_try_compile "$LINENO"; then :
3711 ac_cv_prog_cc_c89=$ac_arg
3712 fi
3713 rm -f core conftest.err conftest.$ac_objext
3714 test "x$ac_cv_prog_cc_c89" != "xno" && break
3715 done
3716 rm -f conftest.$ac_ext
3717 CC=$ac_save_CC
3718
3719 fi
3720 # AC_CACHE_VAL
3721 case "x$ac_cv_prog_cc_c89" in
3722 x)
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3724 $as_echo "none needed" >&6; } ;;
3725 xno)
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3727 $as_echo "unsupported" >&6; } ;;
3728 *)
3729 CC="$CC $ac_cv_prog_cc_c89"
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3731 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3732 esac
3733 if test "x$ac_cv_prog_cc_c89" != xno; then :
3734
3735 fi
3736
3737 ac_ext=c
3738 ac_cpp='$CPP $CPPFLAGS'
3739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3742
3743 ac_aux_dir=
3744 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3745 for ac_t in install-sh install.sh shtool; do
3746 if test -f "$ac_dir/$ac_t"; then
3747 ac_aux_dir=$ac_dir
3748 ac_install_sh="$ac_aux_dir/$ac_t -c"
3749 break 2
3750 fi
3751 done
3752 done
3753 if test -z "$ac_aux_dir"; then
3754 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3755 fi
3756
3757 # These three variables are undocumented and unsupported,
3758 # and are intended to be withdrawn in a future Autoconf release.
3759 # They can cause serious problems if a builder's source tree is in a directory
3760 # whose full name contains unusual characters.
3761 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3762 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3763 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3764
3765
3766 # Make sure we can run config.sub.
3767 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3768 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3769
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3771 $as_echo_n "checking build system type... " >&6; }
3772 if test "${ac_cv_build+set}" = set; then :
3773 $as_echo_n "(cached) " >&6
3774 else
3775 ac_build_alias=$build_alias
3776 test "x$ac_build_alias" = x &&
3777 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3778 test "x$ac_build_alias" = x &&
3779 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3780 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3781 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3782
3783 fi
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3785 $as_echo "$ac_cv_build" >&6; }
3786 case $ac_cv_build in
3787 *-*-*) ;;
3788 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3789 esac
3790 build=$ac_cv_build
3791 ac_save_IFS=$IFS; IFS='-'
3792 set x $ac_cv_build
3793 shift
3794 build_cpu=$1
3795 build_vendor=$2
3796 shift; shift
3797 # Remember, the first character of IFS is used to create $*,
3798 # except with old shells:
3799 build_os=$*
3800 IFS=$ac_save_IFS
3801 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3802
3803
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3805 $as_echo_n "checking host system type... " >&6; }
3806 if test "${ac_cv_host+set}" = set; then :
3807 $as_echo_n "(cached) " >&6
3808 else
3809 if test "x$host_alias" = x; then
3810 ac_cv_host=$ac_cv_build
3811 else
3812 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3813 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3814 fi
3815
3816 fi
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3818 $as_echo "$ac_cv_host" >&6; }
3819 case $ac_cv_host in
3820 *-*-*) ;;
3821 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3822 esac
3823 host=$ac_cv_host
3824 ac_save_IFS=$IFS; IFS='-'
3825 set x $ac_cv_host
3826 shift
3827 host_cpu=$1
3828 host_vendor=$2
3829 shift; shift
3830 # Remember, the first character of IFS is used to create $*,
3831 # except with old shells:
3832 host_os=$*
3833 IFS=$ac_save_IFS
3834 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3835
3836
3837
3838 ac_ext=c
3839 ac_cpp='$CPP $CPPFLAGS'
3840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3844 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3845 # On Suns, sometimes $CPP names a directory.
3846 if test -n "$CPP" && test -d "$CPP"; then
3847 CPP=
3848 fi
3849 if test -z "$CPP"; then
3850 if test "${ac_cv_prog_CPP+set}" = set; then :
3851 $as_echo_n "(cached) " >&6
3852 else
3853 # Double quotes because CPP needs to be expanded
3854 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3855 do
3856 ac_preproc_ok=false
3857 for ac_c_preproc_warn_flag in '' yes
3858 do
3859 # Use a header file that comes with gcc, so configuring glibc
3860 # with a fresh cross-compiler works.
3861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3862 # <limits.h> exists even on freestanding compilers.
3863 # On the NeXT, cc -E runs the code through the compiler's parser,
3864 # not just through cpp. "Syntax error" is here to catch this case.
3865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866 /* end confdefs.h. */
3867 #ifdef __STDC__
3868 # include <limits.h>
3869 #else
3870 # include <assert.h>
3871 #endif
3872 Syntax error
3873 _ACEOF
3874 if ac_fn_c_try_cpp "$LINENO"; then :
3875
3876 else
3877 # Broken: fails on valid input.
3878 continue
3879 fi
3880 rm -f conftest.err conftest.$ac_ext
3881
3882 # OK, works on sane cases. Now check whether nonexistent headers
3883 # can be detected and how.
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3886 #include <ac_nonexistent.h>
3887 _ACEOF
3888 if ac_fn_c_try_cpp "$LINENO"; then :
3889 # Broken: success on invalid input.
3890 continue
3891 else
3892 # Passes both tests.
3893 ac_preproc_ok=:
3894 break
3895 fi
3896 rm -f conftest.err conftest.$ac_ext
3897
3898 done
3899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3900 rm -f conftest.err conftest.$ac_ext
3901 if $ac_preproc_ok; then :
3902 break
3903 fi
3904
3905 done
3906 ac_cv_prog_CPP=$CPP
3907
3908 fi
3909 CPP=$ac_cv_prog_CPP
3910 else
3911 ac_cv_prog_CPP=$CPP
3912 fi
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3914 $as_echo "$CPP" >&6; }
3915 ac_preproc_ok=false
3916 for ac_c_preproc_warn_flag in '' yes
3917 do
3918 # Use a header file that comes with gcc, so configuring glibc
3919 # with a fresh cross-compiler works.
3920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3921 # <limits.h> exists even on freestanding compilers.
3922 # On the NeXT, cc -E runs the code through the compiler's parser,
3923 # not just through cpp. "Syntax error" is here to catch this case.
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3926 #ifdef __STDC__
3927 # include <limits.h>
3928 #else
3929 # include <assert.h>
3930 #endif
3931 Syntax error
3932 _ACEOF
3933 if ac_fn_c_try_cpp "$LINENO"; then :
3934
3935 else
3936 # Broken: fails on valid input.
3937 continue
3938 fi
3939 rm -f conftest.err conftest.$ac_ext
3940
3941 # OK, works on sane cases. Now check whether nonexistent headers
3942 # can be detected and how.
3943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h. */
3945 #include <ac_nonexistent.h>
3946 _ACEOF
3947 if ac_fn_c_try_cpp "$LINENO"; then :
3948 # Broken: success on invalid input.
3949 continue
3950 else
3951 # Passes both tests.
3952 ac_preproc_ok=:
3953 break
3954 fi
3955 rm -f conftest.err conftest.$ac_ext
3956
3957 done
3958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3959 rm -f conftest.err conftest.$ac_ext
3960 if $ac_preproc_ok; then :
3961
3962 else
3963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3965 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3966 See \`config.log' for more details." "$LINENO" 5; }
3967 fi
3968
3969 ac_ext=c
3970 ac_cpp='$CPP $CPPFLAGS'
3971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3974
3975
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3977 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3978 if test "${ac_cv_path_GREP+set}" = set; then :
3979 $as_echo_n "(cached) " >&6
3980 else
3981 if test -z "$GREP"; then
3982 ac_path_GREP_found=false
3983 # Loop through the user's path and test for each of PROGNAME-LIST
3984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3986 do
3987 IFS=$as_save_IFS
3988 test -z "$as_dir" && as_dir=.
3989 for ac_prog in grep ggrep; do
3990 for ac_exec_ext in '' $ac_executable_extensions; do
3991 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3992 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3993 # Check for GNU ac_path_GREP and select it if it is found.
3994 # Check for GNU $ac_path_GREP
3995 case `"$ac_path_GREP" --version 2>&1` in
3996 *GNU*)
3997 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3998 *)
3999 ac_count=0
4000 $as_echo_n 0123456789 >"conftest.in"
4001 while :
4002 do
4003 cat "conftest.in" "conftest.in" >"conftest.tmp"
4004 mv "conftest.tmp" "conftest.in"
4005 cp "conftest.in" "conftest.nl"
4006 $as_echo 'GREP' >> "conftest.nl"
4007 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4008 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4009 as_fn_arith $ac_count + 1 && ac_count=$as_val
4010 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4011 # Best one so far, save it but keep looking for a better one
4012 ac_cv_path_GREP="$ac_path_GREP"
4013 ac_path_GREP_max=$ac_count
4014 fi
4015 # 10*(2^10) chars as input seems more than enough
4016 test $ac_count -gt 10 && break
4017 done
4018 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4019 esac
4020
4021 $ac_path_GREP_found && break 3
4022 done
4023 done
4024 done
4025 IFS=$as_save_IFS
4026 if test -z "$ac_cv_path_GREP"; then
4027 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4028 fi
4029 else
4030 ac_cv_path_GREP=$GREP
4031 fi
4032
4033 fi
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4035 $as_echo "$ac_cv_path_GREP" >&6; }
4036 GREP="$ac_cv_path_GREP"
4037
4038
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4040 $as_echo_n "checking for egrep... " >&6; }
4041 if test "${ac_cv_path_EGREP+set}" = set; then :
4042 $as_echo_n "(cached) " >&6
4043 else
4044 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4045 then ac_cv_path_EGREP="$GREP -E"
4046 else
4047 if test -z "$EGREP"; then
4048 ac_path_EGREP_found=false
4049 # Loop through the user's path and test for each of PROGNAME-LIST
4050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4052 do
4053 IFS=$as_save_IFS
4054 test -z "$as_dir" && as_dir=.
4055 for ac_prog in egrep; do
4056 for ac_exec_ext in '' $ac_executable_extensions; do
4057 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4058 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4059 # Check for GNU ac_path_EGREP and select it if it is found.
4060 # Check for GNU $ac_path_EGREP
4061 case `"$ac_path_EGREP" --version 2>&1` in
4062 *GNU*)
4063 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4064 *)
4065 ac_count=0
4066 $as_echo_n 0123456789 >"conftest.in"
4067 while :
4068 do
4069 cat "conftest.in" "conftest.in" >"conftest.tmp"
4070 mv "conftest.tmp" "conftest.in"
4071 cp "conftest.in" "conftest.nl"
4072 $as_echo 'EGREP' >> "conftest.nl"
4073 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4074 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4075 as_fn_arith $ac_count + 1 && ac_count=$as_val
4076 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4077 # Best one so far, save it but keep looking for a better one
4078 ac_cv_path_EGREP="$ac_path_EGREP"
4079 ac_path_EGREP_max=$ac_count
4080 fi
4081 # 10*(2^10) chars as input seems more than enough
4082 test $ac_count -gt 10 && break
4083 done
4084 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4085 esac
4086
4087 $ac_path_EGREP_found && break 3
4088 done
4089 done
4090 done
4091 IFS=$as_save_IFS
4092 if test -z "$ac_cv_path_EGREP"; then
4093 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4094 fi
4095 else
4096 ac_cv_path_EGREP=$EGREP
4097 fi
4098
4099 fi
4100 fi
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4102 $as_echo "$ac_cv_path_EGREP" >&6; }
4103 EGREP="$ac_cv_path_EGREP"
4104
4105
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4107 $as_echo_n "checking for ANSI C header files... " >&6; }
4108 if test "${ac_cv_header_stdc+set}" = set; then :
4109 $as_echo_n "(cached) " >&6
4110 else
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4113 #include <stdlib.h>
4114 #include <stdarg.h>
4115 #include <string.h>
4116 #include <float.h>
4117
4118 int
4119 main ()
4120 {
4121
4122 ;
4123 return 0;
4124 }
4125 _ACEOF
4126 if ac_fn_c_try_compile "$LINENO"; then :
4127 ac_cv_header_stdc=yes
4128 else
4129 ac_cv_header_stdc=no
4130 fi
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132
4133 if test $ac_cv_header_stdc = yes; then
4134 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4137 #include <string.h>
4138
4139 _ACEOF
4140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4141 $EGREP "memchr" >/dev/null 2>&1; then :
4142
4143 else
4144 ac_cv_header_stdc=no
4145 fi
4146 rm -f conftest*
4147
4148 fi
4149
4150 if test $ac_cv_header_stdc = yes; then
4151 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4154 #include <stdlib.h>
4155
4156 _ACEOF
4157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4158 $EGREP "free" >/dev/null 2>&1; then :
4159
4160 else
4161 ac_cv_header_stdc=no
4162 fi
4163 rm -f conftest*
4164
4165 fi
4166
4167 if test $ac_cv_header_stdc = yes; then
4168 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4169 if test "$cross_compiling" = yes; then :
4170 :
4171 else
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h. */
4174 #include <ctype.h>
4175 #include <stdlib.h>
4176 #if ((' ' & 0x0FF) == 0x020)
4177 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4178 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4179 #else
4180 # define ISLOWER(c) \
4181 (('a' <= (c) && (c) <= 'i') \
4182 || ('j' <= (c) && (c) <= 'r') \
4183 || ('s' <= (c) && (c) <= 'z'))
4184 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4185 #endif
4186
4187 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4188 int
4189 main ()
4190 {
4191 int i;
4192 for (i = 0; i < 256; i++)
4193 if (XOR (islower (i), ISLOWER (i))
4194 || toupper (i) != TOUPPER (i))
4195 return 2;
4196 return 0;
4197 }
4198 _ACEOF
4199 if ac_fn_c_try_run "$LINENO"; then :
4200
4201 else
4202 ac_cv_header_stdc=no
4203 fi
4204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4205 conftest.$ac_objext conftest.beam conftest.$ac_ext
4206 fi
4207
4208 fi
4209 fi
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4211 $as_echo "$ac_cv_header_stdc" >&6; }
4212 if test $ac_cv_header_stdc = yes; then
4213
4214 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4215
4216 fi
4217
4218 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4219 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4220 inttypes.h stdint.h unistd.h
4221 do :
4222 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4223 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4224 "
4225 eval as_val=\$$as_ac_Header
4226 if test "x$as_val" = x""yes; then :
4227 cat >>confdefs.h <<_ACEOF
4228 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4229 _ACEOF
4230
4231 fi
4232
4233 done
4234
4235
4236
4237
4238
4239 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4240 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4241 MINIX=yes
4242 else
4243 MINIX=
4244 fi
4245
4246
4247 if test "$MINIX" = yes; then
4248
4249 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4250
4251
4252 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4253
4254
4255 $as_echo "#define _MINIX 1" >>confdefs.h
4256
4257 fi
4258
4259 case "$host_os" in
4260 hpux*)
4261
4262 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
4263
4264 ;;
4265 esac
4266
4267
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4269 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4270 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4271 $as_echo_n "(cached) " >&6
4272 else
4273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4274 /* end confdefs.h. */
4275
4276 # define __EXTENSIONS__ 1
4277 $ac_includes_default
4278 int
4279 main ()
4280 {
4281
4282 ;
4283 return 0;
4284 }
4285 _ACEOF
4286 if ac_fn_c_try_compile "$LINENO"; then :
4287 ac_cv_safe_to_define___extensions__=yes
4288 else
4289 ac_cv_safe_to_define___extensions__=no
4290 fi
4291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4292 fi
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4294 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4295 test $ac_cv_safe_to_define___extensions__ = yes &&
4296 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4297
4298 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4299
4300 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4301
4302 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4303
4304 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4305
4306 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4307
4308
4309
4310
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4312 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4313 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4314 $as_echo_n "(cached) " >&6
4315 else
4316
4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h. */
4319
4320 #ifdef __ACK__
4321 Amsterdam
4322 #endif
4323
4324 _ACEOF
4325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4326 $EGREP "Amsterdam" >/dev/null 2>&1; then :
4327 gl_cv_c_amsterdam_compiler=yes
4328 else
4329 gl_cv_c_amsterdam_compiler=no
4330 fi
4331 rm -f conftest*
4332
4333
4334 fi
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4336 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4337 if test -z "$AR"; then
4338 if test $gl_cv_c_amsterdam_compiler = yes; then
4339 AR='cc -c.a'
4340 if test -z "$ARFLAGS"; then
4341 ARFLAGS='-o'
4342 fi
4343 else
4344 if test -n "$ac_tool_prefix"; then
4345 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4346 set dummy ${ac_tool_prefix}ar; ac_word=$2
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4348 $as_echo_n "checking for $ac_word... " >&6; }
4349 if test "${ac_cv_prog_AR+set}" = set; then :
4350 $as_echo_n "(cached) " >&6
4351 else
4352 if test -n "$AR"; then
4353 ac_cv_prog_AR="$AR" # Let the user override the test.
4354 else
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 for as_dir in $PATH
4357 do
4358 IFS=$as_save_IFS
4359 test -z "$as_dir" && as_dir=.
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4362 ac_cv_prog_AR="${ac_tool_prefix}ar"
4363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4364 break 2
4365 fi
4366 done
4367 done
4368 IFS=$as_save_IFS
4369
4370 fi
4371 fi
4372 AR=$ac_cv_prog_AR
4373 if test -n "$AR"; then
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4375 $as_echo "$AR" >&6; }
4376 else
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4378 $as_echo "no" >&6; }
4379 fi
4380
4381
4382 fi
4383 if test -z "$ac_cv_prog_AR"; then
4384 ac_ct_AR=$AR
4385 # Extract the first word of "ar", so it can be a program name with args.
4386 set dummy ar; ac_word=$2
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4388 $as_echo_n "checking for $ac_word... " >&6; }
4389 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4390 $as_echo_n "(cached) " >&6
4391 else
4392 if test -n "$ac_ct_AR"; then
4393 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4394 else
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH
4397 do
4398 IFS=$as_save_IFS
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4402 ac_cv_prog_ac_ct_AR="ar"
4403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 break 2
4405 fi
4406 done
4407 done
4408 IFS=$as_save_IFS
4409
4410 fi
4411 fi
4412 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4413 if test -n "$ac_ct_AR"; then
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4415 $as_echo "$ac_ct_AR" >&6; }
4416 else
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4418 $as_echo "no" >&6; }
4419 fi
4420
4421 if test "x$ac_ct_AR" = x; then
4422 AR="ar"
4423 else
4424 case $cross_compiling:$ac_tool_warned in
4425 yes:)
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4428 ac_tool_warned=yes ;;
4429 esac
4430 AR=$ac_ct_AR
4431 fi
4432 else
4433 AR="$ac_cv_prog_AR"
4434 fi
4435
4436 if test -z "$ARFLAGS"; then
4437 ARFLAGS='cru'
4438 fi
4439 fi
4440 else
4441 if test -z "$ARFLAGS"; then
4442 ARFLAGS='cru'
4443 fi
4444 fi
4445
4446
4447 if test -z "$RANLIB"; then
4448 if test $gl_cv_c_amsterdam_compiler = yes; then
4449 RANLIB=':'
4450 else
4451 if test -n "$ac_tool_prefix"; then
4452 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4453 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4455 $as_echo_n "checking for $ac_word... " >&6; }
4456 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4457 $as_echo_n "(cached) " >&6
4458 else
4459 if test -n "$RANLIB"; then
4460 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4461 else
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 for as_dir in $PATH
4464 do
4465 IFS=$as_save_IFS
4466 test -z "$as_dir" && as_dir=.
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4469 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4471 break 2
4472 fi
4473 done
4474 done
4475 IFS=$as_save_IFS
4476
4477 fi
4478 fi
4479 RANLIB=$ac_cv_prog_RANLIB
4480 if test -n "$RANLIB"; then
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4482 $as_echo "$RANLIB" >&6; }
4483 else
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485 $as_echo "no" >&6; }
4486 fi
4487
4488
4489 fi
4490 if test -z "$ac_cv_prog_RANLIB"; then
4491 ac_ct_RANLIB=$RANLIB
4492 # Extract the first word of "ranlib", so it can be a program name with args.
4493 set dummy ranlib; ac_word=$2
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4495 $as_echo_n "checking for $ac_word... " >&6; }
4496 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4497 $as_echo_n "(cached) " >&6
4498 else
4499 if test -n "$ac_ct_RANLIB"; then
4500 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4501 else
4502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 for as_dir in $PATH
4504 do
4505 IFS=$as_save_IFS
4506 test -z "$as_dir" && as_dir=.
4507 for ac_exec_ext in '' $ac_executable_extensions; do
4508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4509 ac_cv_prog_ac_ct_RANLIB="ranlib"
4510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4511 break 2
4512 fi
4513 done
4514 done
4515 IFS=$as_save_IFS
4516
4517 fi
4518 fi
4519 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4520 if test -n "$ac_ct_RANLIB"; then
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4522 $as_echo "$ac_ct_RANLIB" >&6; }
4523 else
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4525 $as_echo "no" >&6; }
4526 fi
4527
4528 if test "x$ac_ct_RANLIB" = x; then
4529 RANLIB=":"
4530 else
4531 case $cross_compiling:$ac_tool_warned in
4532 yes:)
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4535 ac_tool_warned=yes ;;
4536 esac
4537 RANLIB=$ac_ct_RANLIB
4538 fi
4539 else
4540 RANLIB="$ac_cv_prog_RANLIB"
4541 fi
4542
4543 fi
4544 fi
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556 # IEEE behaviour is the default on all CPUs except Alpha and SH
4557 # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
4558 # and the GCC 4.1.2 manual).
4559 case "$host_cpu" in
4560 alpha*)
4561 # On Alpha systems, a compiler option provides the behaviour.
4562 # See the ieee(3) manual page, also available at
4563 # <http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN3/0600____.HTM>
4564 if test -n "$GCC"; then
4565 # GCC has the option -mieee.
4566 # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
4567 CPPFLAGS="$CPPFLAGS -mieee"
4568 else
4569 # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
4570 # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
4571 CPPFLAGS="$CPPFLAGS -ieee"
4572 fi
4573 ;;
4574 sh*)
4575 if test -n "$GCC"; then
4576 # GCC has the option -mieee.
4577 CPPFLAGS="$CPPFLAGS -mieee"
4578 fi
4579 ;;
4580 esac
4581
4582
4583
4584 # Code from module alloca:
4585 # Code from module alloca-opt:
4586 # Code from module configmake:
4587 # Code from module extensions:
4588
4589 # Code from module extern-inline:
4590 # Code from module float:
4591 # Code from module fnmatch:
4592 # Code from module fnmatch-gnu:
4593 # Code from module fpieee:
4594
4595 # Code from module fpucw:
4596 # Code from module frexp:
4597 # Code from module frexpl:
4598 # Code from module include_next:
4599 # Code from module inttypes:
4600 # Code from module inttypes-incomplete:
4601 # Code from module isnand-nolibm:
4602 # Code from module isnanl-nolibm:
4603 # Code from module localcharset:
4604 # Code from module math:
4605 # Code from module mbrtowc:
4606 # Code from module mbsinit:
4607 # Code from module mbsrtowcs:
4608 # Code from module memchr:
4609 # Code from module memmem:
4610 # Code from module memmem-simple:
4611 # Code from module multiarch:
4612 # Code from module snippet/arg-nonnull:
4613 # Code from module snippet/c++defs:
4614 # Code from module snippet/warn-on-use:
4615 # Code from module stdbool:
4616 # Code from module stddef:
4617 # Code from module stdint:
4618 # Code from module streq:
4619 # Code from module string:
4620 # Code from module strnlen1:
4621 # Code from module update-copyright:
4622 # Code from module verify:
4623 # Code from module wchar:
4624 # Code from module wctype-h:
4625
4626 ac_ext=c
4627 ac_cpp='$CPP $CPPFLAGS'
4628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4631 if test -n "$ac_tool_prefix"; then
4632 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4633 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635 $as_echo_n "checking for $ac_word... " >&6; }
4636 if test "${ac_cv_prog_CC+set}" = set; then :
4637 $as_echo_n "(cached) " >&6
4638 else
4639 if test -n "$CC"; then
4640 ac_cv_prog_CC="$CC" # Let the user override the test.
4641 else
4642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 for as_dir in $PATH
4644 do
4645 IFS=$as_save_IFS
4646 test -z "$as_dir" && as_dir=.
4647 for ac_exec_ext in '' $ac_executable_extensions; do
4648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4649 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 break 2
4652 fi
4653 done
4654 done
4655 IFS=$as_save_IFS
4656
4657 fi
4658 fi
4659 CC=$ac_cv_prog_CC
4660 if test -n "$CC"; then
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4662 $as_echo "$CC" >&6; }
4663 else
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 $as_echo "no" >&6; }
4666 fi
4667
4668
4669 fi
4670 if test -z "$ac_cv_prog_CC"; then
4671 ac_ct_CC=$CC
4672 # Extract the first word of "gcc", so it can be a program name with args.
4673 set dummy gcc; ac_word=$2
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4675 $as_echo_n "checking for $ac_word... " >&6; }
4676 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4677 $as_echo_n "(cached) " >&6
4678 else
4679 if test -n "$ac_ct_CC"; then
4680 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4681 else
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH
4684 do
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4689 ac_cv_prog_ac_ct_CC="gcc"
4690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4691 break 2
4692 fi
4693 done
4694 done
4695 IFS=$as_save_IFS
4696
4697 fi
4698 fi
4699 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4700 if test -n "$ac_ct_CC"; then
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4702 $as_echo "$ac_ct_CC" >&6; }
4703 else
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4705 $as_echo "no" >&6; }
4706 fi
4707
4708 if test "x$ac_ct_CC" = x; then
4709 CC=""
4710 else
4711 case $cross_compiling:$ac_tool_warned in
4712 yes:)
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4714 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4715 ac_tool_warned=yes ;;
4716 esac
4717 CC=$ac_ct_CC
4718 fi
4719 else
4720 CC="$ac_cv_prog_CC"
4721 fi
4722
4723 if test -z "$CC"; then
4724 if test -n "$ac_tool_prefix"; then
4725 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4726 set dummy ${ac_tool_prefix}cc; ac_word=$2
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4728 $as_echo_n "checking for $ac_word... " >&6; }
4729 if test "${ac_cv_prog_CC+set}" = set; then :
4730 $as_echo_n "(cached) " >&6
4731 else
4732 if test -n "$CC"; then
4733 ac_cv_prog_CC="$CC" # Let the user override the test.
4734 else
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 for as_dir in $PATH
4737 do
4738 IFS=$as_save_IFS
4739 test -z "$as_dir" && as_dir=.
4740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4742 ac_cv_prog_CC="${ac_tool_prefix}cc"
4743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4744 break 2
4745 fi
4746 done
4747 done
4748 IFS=$as_save_IFS
4749
4750 fi
4751 fi
4752 CC=$ac_cv_prog_CC
4753 if test -n "$CC"; then
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4755 $as_echo "$CC" >&6; }
4756 else
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4758 $as_echo "no" >&6; }
4759 fi
4760
4761
4762 fi
4763 fi
4764 if test -z "$CC"; then
4765 # Extract the first word of "cc", so it can be a program name with args.
4766 set dummy cc; ac_word=$2
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768 $as_echo_n "checking for $ac_word... " >&6; }
4769 if test "${ac_cv_prog_CC+set}" = set; then :
4770 $as_echo_n "(cached) " >&6
4771 else
4772 if test -n "$CC"; then
4773 ac_cv_prog_CC="$CC" # Let the user override the test.
4774 else
4775 ac_prog_rejected=no
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 for as_dir in $PATH
4778 do
4779 IFS=$as_save_IFS
4780 test -z "$as_dir" && as_dir=.
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4783 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4784 ac_prog_rejected=yes
4785 continue
4786 fi
4787 ac_cv_prog_CC="cc"
4788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4789 break 2
4790 fi
4791 done
4792 done
4793 IFS=$as_save_IFS
4794
4795 if test $ac_prog_rejected = yes; then
4796 # We found a bogon in the path, so make sure we never use it.
4797 set dummy $ac_cv_prog_CC
4798 shift
4799 if test $# != 0; then
4800 # We chose a different compiler from the bogus one.
4801 # However, it has the same basename, so the bogon will be chosen
4802 # first if we set CC to just the basename; use the full file name.
4803 shift
4804 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4805 fi
4806 fi
4807 fi
4808 fi
4809 CC=$ac_cv_prog_CC
4810 if test -n "$CC"; then
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4812 $as_echo "$CC" >&6; }
4813 else
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4815 $as_echo "no" >&6; }
4816 fi
4817
4818
4819 fi
4820 if test -z "$CC"; then
4821 if test -n "$ac_tool_prefix"; then
4822 for ac_prog in cl.exe
4823 do
4824 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4825 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4827 $as_echo_n "checking for $ac_word... " >&6; }
4828 if test "${ac_cv_prog_CC+set}" = set; then :
4829 $as_echo_n "(cached) " >&6
4830 else
4831 if test -n "$CC"; then
4832 ac_cv_prog_CC="$CC" # Let the user override the test.
4833 else
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH
4836 do
4837 IFS=$as_save_IFS
4838 test -z "$as_dir" && as_dir=.
4839 for ac_exec_ext in '' $ac_executable_extensions; do
4840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4841 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 break 2
4844 fi
4845 done
4846 done
4847 IFS=$as_save_IFS
4848
4849 fi
4850 fi
4851 CC=$ac_cv_prog_CC
4852 if test -n "$CC"; then
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4854 $as_echo "$CC" >&6; }
4855 else
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4857 $as_echo "no" >&6; }
4858 fi
4859
4860
4861 test -n "$CC" && break
4862 done
4863 fi
4864 if test -z "$CC"; then
4865 ac_ct_CC=$CC
4866 for ac_prog in cl.exe
4867 do
4868 # Extract the first word of "$ac_prog", so it can be a program name with args.
4869 set dummy $ac_prog; ac_word=$2
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4871 $as_echo_n "checking for $ac_word... " >&6; }
4872 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4873 $as_echo_n "(cached) " >&6
4874 else
4875 if test -n "$ac_ct_CC"; then
4876 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4877 else
4878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 for as_dir in $PATH
4880 do
4881 IFS=$as_save_IFS
4882 test -z "$as_dir" && as_dir=.
4883 for ac_exec_ext in '' $ac_executable_extensions; do
4884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4885 ac_cv_prog_ac_ct_CC="$ac_prog"
4886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 break 2
4888 fi
4889 done
4890 done
4891 IFS=$as_save_IFS
4892
4893 fi
4894 fi
4895 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4896 if test -n "$ac_ct_CC"; then
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4898 $as_echo "$ac_ct_CC" >&6; }
4899 else
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901 $as_echo "no" >&6; }
4902 fi
4903
4904
4905 test -n "$ac_ct_CC" && break
4906 done
4907
4908 if test "x$ac_ct_CC" = x; then
4909 CC=""
4910 else
4911 case $cross_compiling:$ac_tool_warned in
4912 yes:)
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4914 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4915 ac_tool_warned=yes ;;
4916 esac
4917 CC=$ac_ct_CC
4918 fi
4919 fi
4920
4921 fi
4922
4923
4924 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4926 as_fn_error "no acceptable C compiler found in \$PATH
4927 See \`config.log' for more details." "$LINENO" 5; }
4928
4929 # Provide some information about the compiler.
4930 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4931 set X $ac_compile
4932 ac_compiler=$2
4933 for ac_option in --version -v -V -qversion; do
4934 { { ac_try="$ac_compiler $ac_option >&5"
4935 case "(($ac_try" in
4936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937 *) ac_try_echo=$ac_try;;
4938 esac
4939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4940 $as_echo "$ac_try_echo"; } >&5
4941 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4942 ac_status=$?
4943 if test -s conftest.err; then
4944 sed '10a\
4945 ... rest of stderr output deleted ...
4946 10q' conftest.err >conftest.er1
4947 cat conftest.er1 >&5
4948 rm -f conftest.er1 conftest.err
4949 fi
4950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4951 test $ac_status = 0; }
4952 done
4953
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4955 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4956 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4957 $as_echo_n "(cached) " >&6
4958 else
4959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4960 /* end confdefs.h. */
4961
4962 int
4963 main ()
4964 {
4965 #ifndef __GNUC__
4966 choke me
4967 #endif
4968
4969 ;
4970 return 0;
4971 }
4972 _ACEOF
4973 if ac_fn_c_try_compile "$LINENO"; then :
4974 ac_compiler_gnu=yes
4975 else
4976 ac_compiler_gnu=no
4977 fi
4978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4979 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4980
4981 fi
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4983 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4984 if test $ac_compiler_gnu = yes; then
4985 GCC=yes
4986 else
4987 GCC=
4988 fi
4989 ac_test_CFLAGS=${CFLAGS+set}
4990 ac_save_CFLAGS=$CFLAGS
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4992 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4993 if test "${ac_cv_prog_cc_g+set}" = set; then :
4994 $as_echo_n "(cached) " >&6
4995 else
4996 ac_save_c_werror_flag=$ac_c_werror_flag
4997 ac_c_werror_flag=yes
4998 ac_cv_prog_cc_g=no
4999 CFLAGS="-g"
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5002
5003 int
5004 main ()
5005 {
5006
5007 ;
5008 return 0;
5009 }
5010 _ACEOF
5011 if ac_fn_c_try_compile "$LINENO"; then :
5012 ac_cv_prog_cc_g=yes
5013 else
5014 CFLAGS=""
5015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h. */
5017
5018 int
5019 main ()
5020 {
5021
5022 ;
5023 return 0;
5024 }
5025 _ACEOF
5026 if ac_fn_c_try_compile "$LINENO"; then :
5027
5028 else
5029 ac_c_werror_flag=$ac_save_c_werror_flag
5030 CFLAGS="-g"
5031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5032 /* end confdefs.h. */
5033
5034 int
5035 main ()
5036 {
5037
5038 ;
5039 return 0;
5040 }
5041 _ACEOF
5042 if ac_fn_c_try_compile "$LINENO"; then :
5043 ac_cv_prog_cc_g=yes
5044 fi
5045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5046 fi
5047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5048 fi
5049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5050 ac_c_werror_flag=$ac_save_c_werror_flag
5051 fi
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5053 $as_echo "$ac_cv_prog_cc_g" >&6; }
5054 if test "$ac_test_CFLAGS" = set; then
5055 CFLAGS=$ac_save_CFLAGS
5056 elif test $ac_cv_prog_cc_g = yes; then
5057 if test "$GCC" = yes; then
5058 CFLAGS="-g -O2"
5059 else
5060 CFLAGS="-g"
5061 fi
5062 else
5063 if test "$GCC" = yes; then
5064 CFLAGS="-O2"
5065 else
5066 CFLAGS=
5067 fi
5068 fi
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5070 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5071 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5072 $as_echo_n "(cached) " >&6
5073 else
5074 ac_cv_prog_cc_c89=no
5075 ac_save_CC=$CC
5076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077 /* end confdefs.h. */
5078 #include <stdarg.h>
5079 #include <stdio.h>
5080 #include <sys/types.h>
5081 #include <sys/stat.h>
5082 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5083 struct buf { int x; };
5084 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5085 static char *e (p, i)
5086 char **p;
5087 int i;
5088 {
5089 return p[i];
5090 }
5091 static char *f (char * (*g) (char **, int), char **p, ...)
5092 {
5093 char *s;
5094 va_list v;
5095 va_start (v,p);
5096 s = g (p, va_arg (v,int));
5097 va_end (v);
5098 return s;
5099 }
5100
5101 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5102 function prototypes and stuff, but not '\xHH' hex character constants.
5103 These don't provoke an error unfortunately, instead are silently treated
5104 as 'x'. The following induces an error, until -std is added to get
5105 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5106 array size at least. It's necessary to write '\x00'==0 to get something
5107 that's true only with -std. */
5108 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5109
5110 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5111 inside strings and character constants. */
5112 #define FOO(x) 'x'
5113 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5114
5115 int test (int i, double x);
5116 struct s1 {int (*f) (int a);};
5117 struct s2 {int (*f) (double a);};
5118 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5119 int argc;
5120 char **argv;
5121 int
5122 main ()
5123 {
5124 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5125 ;
5126 return 0;
5127 }
5128 _ACEOF
5129 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5130 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5131 do
5132 CC="$ac_save_CC $ac_arg"
5133 if ac_fn_c_try_compile "$LINENO"; then :
5134 ac_cv_prog_cc_c89=$ac_arg
5135 fi
5136 rm -f core conftest.err conftest.$ac_objext
5137 test "x$ac_cv_prog_cc_c89" != "xno" && break
5138 done
5139 rm -f conftest.$ac_ext
5140 CC=$ac_save_CC
5141
5142 fi
5143 # AC_CACHE_VAL
5144 case "x$ac_cv_prog_cc_c89" in
5145 x)
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5147 $as_echo "none needed" >&6; } ;;
5148 xno)
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5150 $as_echo "unsupported" >&6; } ;;
5151 *)
5152 CC="$CC $ac_cv_prog_cc_c89"
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5154 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5155 esac
5156 if test "x$ac_cv_prog_cc_c89" != xno; then :
5157
5158 fi
5159
5160 ac_ext=c
5161 ac_cpp='$CPP $CPPFLAGS'
5162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5165
5166
5167 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5168
5169
5170 ac_aux_dir=
5171 for ac_dir in ../.. "$srcdir"/../..; do
5172 for ac_t in install-sh install.sh shtool; do
5173 if test -f "$ac_dir/$ac_t"; then
5174 ac_aux_dir=$ac_dir
5175 ac_install_sh="$ac_aux_dir/$ac_t -c"
5176 break 2
5177 fi
5178 done
5179 done
5180 if test -z "$ac_aux_dir"; then
5181 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
5182 fi
5183
5184 # These three variables are undocumented and unsupported,
5185 # and are intended to be withdrawn in a future Autoconf release.
5186 # They can cause serious problems if a builder's source tree is in a directory
5187 # whose full name contains unusual characters.
5188 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5189 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5190 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5191
5192
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
5194 $as_echo_n "checking target system type... " >&6; }
5195 if test "${ac_cv_target+set}" = set; then :
5196 $as_echo_n "(cached) " >&6
5197 else
5198 if test "x$target_alias" = x; then
5199 ac_cv_target=$ac_cv_host
5200 else
5201 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5202 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
5203 fi
5204
5205 fi
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
5207 $as_echo "$ac_cv_target" >&6; }
5208 case $ac_cv_target in
5209 *-*-*) ;;
5210 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
5211 esac
5212 target=$ac_cv_target
5213 ac_save_IFS=$IFS; IFS='-'
5214 set x $ac_cv_target
5215 shift
5216 target_cpu=$1
5217 target_vendor=$2
5218 shift; shift
5219 # Remember, the first character of IFS is used to create $*,
5220 # except with old shells:
5221 target_os=$*
5222 IFS=$ac_save_IFS
5223 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5224
5225
5226 # The aliases save the names the user supplied, while $host etc.
5227 # will get canonicalized.
5228 test -n "$target_alias" &&
5229 test "$program_prefix$program_suffix$program_transform_name" = \
5230 NONENONEs,x,x, &&
5231 program_prefix=${target_alias}-
5232
5233
5234
5235
5236
5237
5238
5239 LIBC_FATAL_STDERR_=1
5240 export LIBC_FATAL_STDERR_
5241
5242 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5243 # for constant arguments. Useless!
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5245 $as_echo_n "checking for working alloca.h... " >&6; }
5246 if test "${ac_cv_working_alloca_h+set}" = set; then :
5247 $as_echo_n "(cached) " >&6
5248 else
5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250 /* end confdefs.h. */
5251 #include <alloca.h>
5252 int
5253 main ()
5254 {
5255 char *p = (char *) alloca (2 * sizeof (int));
5256 if (p) return 0;
5257 ;
5258 return 0;
5259 }
5260 _ACEOF
5261 if ac_fn_c_try_link "$LINENO"; then :
5262 ac_cv_working_alloca_h=yes
5263 else
5264 ac_cv_working_alloca_h=no
5265 fi
5266 rm -f core conftest.err conftest.$ac_objext \
5267 conftest$ac_exeext conftest.$ac_ext
5268 fi
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5270 $as_echo "$ac_cv_working_alloca_h" >&6; }
5271 if test $ac_cv_working_alloca_h = yes; then
5272
5273 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5274
5275 fi
5276
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5278 $as_echo_n "checking for alloca... " >&6; }
5279 if test "${ac_cv_func_alloca_works+set}" = set; then :
5280 $as_echo_n "(cached) " >&6
5281 else
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5284 #ifdef __GNUC__
5285 # define alloca __builtin_alloca
5286 #else
5287 # ifdef _MSC_VER
5288 # include <malloc.h>
5289 # define alloca _alloca
5290 # else
5291 # ifdef HAVE_ALLOCA_H
5292 # include <alloca.h>
5293 # else
5294 # ifdef _AIX
5295 #pragma alloca
5296 # else
5297 # ifndef alloca /* predefined by HP cc +Olibcalls */
5298 char *alloca ();
5299 # endif
5300 # endif
5301 # endif
5302 # endif
5303 #endif
5304
5305 int
5306 main ()
5307 {
5308 char *p = (char *) alloca (1);
5309 if (p) return 0;
5310 ;
5311 return 0;
5312 }
5313 _ACEOF
5314 if ac_fn_c_try_link "$LINENO"; then :
5315 ac_cv_func_alloca_works=yes
5316 else
5317 ac_cv_func_alloca_works=no
5318 fi
5319 rm -f core conftest.err conftest.$ac_objext \
5320 conftest$ac_exeext conftest.$ac_ext
5321 fi
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5323 $as_echo "$ac_cv_func_alloca_works" >&6; }
5324
5325 if test $ac_cv_func_alloca_works = yes; then
5326
5327 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5328
5329 else
5330 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5331 # that cause trouble. Some versions do not even contain alloca or
5332 # contain a buggy version. If you still want to use their alloca,
5333 # use ar to extract alloca.o from them instead of compiling alloca.c.
5334
5335
5336
5337
5338
5339 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5340
5341 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5342
5343
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5345 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5346 if test "${ac_cv_os_cray+set}" = set; then :
5347 $as_echo_n "(cached) " >&6
5348 else
5349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350 /* end confdefs.h. */
5351 #if defined CRAY && ! defined CRAY2
5352 webecray
5353 #else
5354 wenotbecray
5355 #endif
5356
5357 _ACEOF
5358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5359 $EGREP "webecray" >/dev/null 2>&1; then :
5360 ac_cv_os_cray=yes
5361 else
5362 ac_cv_os_cray=no
5363 fi
5364 rm -f conftest*
5365
5366 fi
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5368 $as_echo "$ac_cv_os_cray" >&6; }
5369 if test $ac_cv_os_cray = yes; then
5370 for ac_func in _getb67 GETB67 getb67; do
5371 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5372 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5373 eval as_val=\$$as_ac_var
5374 if test "x$as_val" = x""yes; then :
5375
5376 cat >>confdefs.h <<_ACEOF
5377 #define CRAY_STACKSEG_END $ac_func
5378 _ACEOF
5379
5380 break
5381 fi
5382
5383 done
5384 fi
5385
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5387 $as_echo_n "checking stack direction for C alloca... " >&6; }
5388 if test "${ac_cv_c_stack_direction+set}" = set; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 if test "$cross_compiling" = yes; then :
5392 ac_cv_c_stack_direction=0
5393 else
5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395 /* end confdefs.h. */
5396 $ac_includes_default
5397 int
5398 find_stack_direction (int *addr, int depth)
5399 {
5400 int dir, dummy = 0;
5401 if (! addr)
5402 addr = &dummy;
5403 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5404 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5405 return dir + dummy;
5406 }
5407
5408 int
5409 main (int argc, char **argv)
5410 {
5411 return find_stack_direction (0, argc + !argv + 20) < 0;
5412 }
5413 _ACEOF
5414 if ac_fn_c_try_run "$LINENO"; then :
5415 ac_cv_c_stack_direction=1
5416 else
5417 ac_cv_c_stack_direction=-1
5418 fi
5419 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5420 conftest.$ac_objext conftest.beam conftest.$ac_ext
5421 fi
5422
5423 fi
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5425 $as_echo "$ac_cv_c_stack_direction" >&6; }
5426 cat >>confdefs.h <<_ACEOF
5427 #define STACK_DIRECTION $ac_cv_c_stack_direction
5428 _ACEOF
5429
5430
5431 fi
5432
5433
5434
5435
5436
5437
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5439 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5440 if test "${gl_cv_have_include_next+set}" = set; then :
5441 $as_echo_n "(cached) " >&6
5442 else
5443 rm -rf conftestd1a conftestd1b conftestd2
5444 mkdir conftestd1a conftestd1b conftestd2
5445 cat <<EOF > conftestd1a/conftest.h
5446 #define DEFINED_IN_CONFTESTD1
5447 #include_next <conftest.h>
5448 #ifdef DEFINED_IN_CONFTESTD2
5449 int foo;
5450 #else
5451 #error "include_next doesn't work"
5452 #endif
5453 EOF
5454 cat <<EOF > conftestd1b/conftest.h
5455 #define DEFINED_IN_CONFTESTD1
5456 #include <stdio.h>
5457 #include_next <conftest.h>
5458 #ifdef DEFINED_IN_CONFTESTD2
5459 int foo;
5460 #else
5461 #error "include_next doesn't work"
5462 #endif
5463 EOF
5464 cat <<EOF > conftestd2/conftest.h
5465 #ifndef DEFINED_IN_CONFTESTD1
5466 #error "include_next test doesn't work"
5467 #endif
5468 #define DEFINED_IN_CONFTESTD2
5469 EOF
5470 gl_save_CPPFLAGS="$CPPFLAGS"
5471 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5473 /* end confdefs.h. */
5474 #include <conftest.h>
5475 _ACEOF
5476 if ac_fn_c_try_compile "$LINENO"; then :
5477 gl_cv_have_include_next=yes
5478 else
5479 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5481 /* end confdefs.h. */
5482 #include <conftest.h>
5483 _ACEOF
5484 if ac_fn_c_try_compile "$LINENO"; then :
5485 gl_cv_have_include_next=buggy
5486 else
5487 gl_cv_have_include_next=no
5488 fi
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490
5491 fi
5492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5493 CPPFLAGS="$gl_save_CPPFLAGS"
5494 rm -rf conftestd1a conftestd1b conftestd2
5495
5496 fi
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5498 $as_echo "$gl_cv_have_include_next" >&6; }
5499 PRAGMA_SYSTEM_HEADER=
5500 if test $gl_cv_have_include_next = yes; then
5501 INCLUDE_NEXT=include_next
5502 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5503 if test -n "$GCC"; then
5504 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5505 fi
5506 else
5507 if test $gl_cv_have_include_next = buggy; then
5508 INCLUDE_NEXT=include
5509 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5510 else
5511 INCLUDE_NEXT=include
5512 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5513 fi
5514 fi
5515
5516
5517
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
5519 $as_echo_n "checking whether system header files limit the line length... " >&6; }
5520 if test "${gl_cv_pragma_columns+set}" = set; then :
5521 $as_echo_n "(cached) " >&6
5522 else
5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524 /* end confdefs.h. */
5525
5526 #ifdef __TANDEM
5527 choke me
5528 #endif
5529
5530 _ACEOF
5531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5532 $EGREP "choke me" >/dev/null 2>&1; then :
5533 gl_cv_pragma_columns=yes
5534 else
5535 gl_cv_pragma_columns=no
5536 fi
5537 rm -f conftest*
5538
5539
5540 fi
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
5542 $as_echo "$gl_cv_pragma_columns" >&6; }
5543 if test $gl_cv_pragma_columns = yes; then
5544 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
5545 else
5546 PRAGMA_COLUMNS=
5547 fi
5548
5549
5550
5551
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
5553 $as_echo_n "checking for mbstate_t... " >&6; }
5554 if test "${ac_cv_type_mbstate_t+set}" = set; then :
5555 $as_echo_n "(cached) " >&6
5556 else
5557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558 /* end confdefs.h. */
5559 $ac_includes_default
5560 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5561 <wchar.h>.
5562 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5563 included before <wchar.h>. */
5564 #include <stddef.h>
5565 #include <stdio.h>
5566 #include <time.h>
5567 #include <wchar.h>
5568 int
5569 main ()
5570 {
5571 mbstate_t x; return sizeof x;
5572 ;
5573 return 0;
5574 }
5575 _ACEOF
5576 if ac_fn_c_try_compile "$LINENO"; then :
5577 ac_cv_type_mbstate_t=yes
5578 else
5579 ac_cv_type_mbstate_t=no
5580 fi
5581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582 fi
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
5584 $as_echo "$ac_cv_type_mbstate_t" >&6; }
5585 if test $ac_cv_type_mbstate_t = yes; then
5586
5587 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
5588
5589 else
5590
5591 $as_echo "#define mbstate_t int" >>confdefs.h
5592
5593 fi
5594
5595
5596
5597
5598 for ac_func in $ac_func_list
5599 do :
5600 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5601 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5602 eval as_val=\$$as_ac_var
5603 if test "x$as_val" = x""yes; then :
5604 cat >>confdefs.h <<_ACEOF
5605 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5606 _ACEOF
5607
5608 fi
5609 done
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630 for ac_header in $ac_header_list
5631 do :
5632 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5633 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5634 "
5635 eval as_val=\$$as_ac_Header
5636 if test "x$as_val" = x""yes; then :
5637 cat >>confdefs.h <<_ACEOF
5638 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5639 _ACEOF
5640
5641 fi
5642
5643 done
5644
5645
5646
5647
5648 GNULIB_ACOSF=0;
5649 GNULIB_ACOSL=0;
5650 GNULIB_ASINF=0;
5651 GNULIB_ASINL=0;
5652 GNULIB_ATANF=0;
5653 GNULIB_ATANL=0;
5654 GNULIB_ATAN2F=0;
5655 GNULIB_CBRT=0;
5656 GNULIB_CBRTF=0;
5657 GNULIB_CBRTL=0;
5658 GNULIB_CEIL=0;
5659 GNULIB_CEILF=0;
5660 GNULIB_CEILL=0;
5661 GNULIB_COPYSIGN=0;
5662 GNULIB_COPYSIGNF=0;
5663 GNULIB_COPYSIGNL=0;
5664 GNULIB_COSF=0;
5665 GNULIB_COSL=0;
5666 GNULIB_COSHF=0;
5667 GNULIB_EXPF=0;
5668 GNULIB_EXPL=0;
5669 GNULIB_EXP2=0;
5670 GNULIB_EXP2F=0;
5671 GNULIB_EXP2L=0;
5672 GNULIB_EXPM1=0;
5673 GNULIB_EXPM1F=0;
5674 GNULIB_EXPM1L=0;
5675 GNULIB_FABSF=0;
5676 GNULIB_FABSL=0;
5677 GNULIB_FLOOR=0;
5678 GNULIB_FLOORF=0;
5679 GNULIB_FLOORL=0;
5680 GNULIB_FMA=0;
5681 GNULIB_FMAF=0;
5682 GNULIB_FMAL=0;
5683 GNULIB_FMOD=0;
5684 GNULIB_FMODF=0;
5685 GNULIB_FMODL=0;
5686 GNULIB_FREXPF=0;
5687 GNULIB_FREXP=0;
5688 GNULIB_FREXPL=0;
5689 GNULIB_HYPOT=0;
5690 GNULIB_HYPOTF=0;
5691 GNULIB_HYPOTL=0;
5692 GNULIB_ILOGB=0;
5693 GNULIB_ILOGBF=0;
5694 GNULIB_ILOGBL=0;
5695 GNULIB_ISFINITE=0;
5696 GNULIB_ISINF=0;
5697 GNULIB_ISNAN=0;
5698 GNULIB_ISNANF=0;
5699 GNULIB_ISNAND=0;
5700 GNULIB_ISNANL=0;
5701 GNULIB_LDEXPF=0;
5702 GNULIB_LDEXPL=0;
5703 GNULIB_LOG=0;
5704 GNULIB_LOGF=0;
5705 GNULIB_LOGL=0;
5706 GNULIB_LOG10=0;
5707 GNULIB_LOG10F=0;
5708 GNULIB_LOG10L=0;
5709 GNULIB_LOG1P=0;
5710 GNULIB_LOG1PF=0;
5711 GNULIB_LOG1PL=0;
5712 GNULIB_LOG2=0;
5713 GNULIB_LOG2F=0;
5714 GNULIB_LOG2L=0;
5715 GNULIB_LOGB=0;
5716 GNULIB_LOGBF=0;
5717 GNULIB_LOGBL=0;
5718 GNULIB_MODF=0;
5719 GNULIB_MODFF=0;
5720 GNULIB_MODFL=0;
5721 GNULIB_POWF=0;
5722 GNULIB_REMAINDER=0;
5723 GNULIB_REMAINDERF=0;
5724 GNULIB_REMAINDERL=0;
5725 GNULIB_RINT=0;
5726 GNULIB_RINTF=0;
5727 GNULIB_RINTL=0;
5728 GNULIB_ROUND=0;
5729 GNULIB_ROUNDF=0;
5730 GNULIB_ROUNDL=0;
5731 GNULIB_SIGNBIT=0;
5732 GNULIB_SINF=0;
5733 GNULIB_SINL=0;
5734 GNULIB_SINHF=0;
5735 GNULIB_SQRTF=0;
5736 GNULIB_SQRTL=0;
5737 GNULIB_TANF=0;
5738 GNULIB_TANL=0;
5739 GNULIB_TANHF=0;
5740 GNULIB_TRUNC=0;
5741 GNULIB_TRUNCF=0;
5742 GNULIB_TRUNCL=0;
5743 HAVE_ACOSF=1;
5744 HAVE_ACOSL=1;
5745 HAVE_ASINF=1;
5746 HAVE_ASINL=1;
5747 HAVE_ATANF=1;
5748 HAVE_ATANL=1;
5749 HAVE_ATAN2F=1;
5750 HAVE_CBRT=1;
5751 HAVE_CBRTF=1;
5752 HAVE_CBRTL=1;
5753 HAVE_COPYSIGN=1;
5754 HAVE_COPYSIGNL=1;
5755 HAVE_COSF=1;
5756 HAVE_COSL=1;
5757 HAVE_COSHF=1;
5758 HAVE_EXPF=1;
5759 HAVE_EXPL=1;
5760 HAVE_EXPM1=1;
5761 HAVE_EXPM1F=1;
5762 HAVE_FABSF=1;
5763 HAVE_FABSL=1;
5764 HAVE_FMA=1;
5765 HAVE_FMAF=1;
5766 HAVE_FMAL=1;
5767 HAVE_FMODF=1;
5768 HAVE_FMODL=1;
5769 HAVE_FREXPF=1;
5770 HAVE_HYPOTF=1;
5771 HAVE_HYPOTL=1;
5772 HAVE_ILOGB=1;
5773 HAVE_ILOGBF=1;
5774 HAVE_ILOGBL=1;
5775 HAVE_ISNANF=1;
5776 HAVE_ISNAND=1;
5777 HAVE_ISNANL=1;
5778 HAVE_LDEXPF=1;
5779 HAVE_LOGF=1;
5780 HAVE_LOGL=1;
5781 HAVE_LOG10F=1;
5782 HAVE_LOG10L=1;
5783 HAVE_LOG1P=1;
5784 HAVE_LOG1PF=1;
5785 HAVE_LOG1PL=1;
5786 HAVE_LOGBF=1;
5787 HAVE_LOGBL=1;
5788 HAVE_MODFF=1;
5789 HAVE_MODFL=1;
5790 HAVE_POWF=1;
5791 HAVE_REMAINDER=1;
5792 HAVE_REMAINDERF=1;
5793 HAVE_RINT=1;
5794 HAVE_RINTL=1;
5795 HAVE_SINF=1;
5796 HAVE_SINL=1;
5797 HAVE_SINHF=1;
5798 HAVE_SQRTF=1;
5799 HAVE_SQRTL=1;
5800 HAVE_TANF=1;
5801 HAVE_TANL=1;
5802 HAVE_TANHF=1;
5803 HAVE_DECL_ACOSL=1;
5804 HAVE_DECL_ASINL=1;
5805 HAVE_DECL_ATANL=1;
5806 HAVE_DECL_CBRTF=1;
5807 HAVE_DECL_CBRTL=1;
5808 HAVE_DECL_CEILF=1;
5809 HAVE_DECL_CEILL=1;
5810 HAVE_DECL_COPYSIGNF=1;
5811 HAVE_DECL_COSL=1;
5812 HAVE_DECL_EXPL=1;
5813 HAVE_DECL_EXP2=1;
5814 HAVE_DECL_EXP2F=1;
5815 HAVE_DECL_EXP2L=1;
5816 HAVE_DECL_EXPM1L=1;
5817 HAVE_DECL_FLOORF=1;
5818 HAVE_DECL_FLOORL=1;
5819 HAVE_DECL_FREXPL=1;
5820 HAVE_DECL_LDEXPL=1;
5821 HAVE_DECL_LOGL=1;
5822 HAVE_DECL_LOG10L=1;
5823 HAVE_DECL_LOG2=1;
5824 HAVE_DECL_LOG2F=1;
5825 HAVE_DECL_LOG2L=1;
5826 HAVE_DECL_LOGB=1;
5827 HAVE_DECL_REMAINDER=1;
5828 HAVE_DECL_REMAINDERL=1;
5829 HAVE_DECL_RINTF=1;
5830 HAVE_DECL_ROUND=1;
5831 HAVE_DECL_ROUNDF=1;
5832 HAVE_DECL_ROUNDL=1;
5833 HAVE_DECL_SINL=1;
5834 HAVE_DECL_SQRTL=1;
5835 HAVE_DECL_TANL=1;
5836 HAVE_DECL_TRUNC=1;
5837 HAVE_DECL_TRUNCF=1;
5838 HAVE_DECL_TRUNCL=1;
5839 REPLACE_CBRTF=0;
5840 REPLACE_CBRTL=0;
5841 REPLACE_CEIL=0;
5842 REPLACE_CEILF=0;
5843 REPLACE_CEILL=0;
5844 REPLACE_EXPM1=0;
5845 REPLACE_EXPM1F=0;
5846 REPLACE_EXP2=0;
5847 REPLACE_EXP2L=0;
5848 REPLACE_FABSL=0;
5849 REPLACE_FLOOR=0;
5850 REPLACE_FLOORF=0;
5851 REPLACE_FLOORL=0;
5852 REPLACE_FMA=0;
5853 REPLACE_FMAF=0;
5854 REPLACE_FMAL=0;
5855 REPLACE_FMOD=0;
5856 REPLACE_FMODF=0;
5857 REPLACE_FMODL=0;
5858 REPLACE_FREXPF=0;
5859 REPLACE_FREXP=0;
5860 REPLACE_FREXPL=0;
5861 REPLACE_HUGE_VAL=0;
5862 REPLACE_HYPOT=0;
5863 REPLACE_HYPOTF=0;
5864 REPLACE_HYPOTL=0;
5865 REPLACE_ILOGB=0;
5866 REPLACE_ILOGBF=0;
5867 REPLACE_ISFINITE=0;
5868 REPLACE_ISINF=0;
5869 REPLACE_ISNAN=0;
5870 REPLACE_LDEXPL=0;
5871 REPLACE_LOG=0;
5872 REPLACE_LOGF=0;
5873 REPLACE_LOGL=0;
5874 REPLACE_LOG10=0;
5875 REPLACE_LOG10F=0;
5876 REPLACE_LOG10L=0;
5877 REPLACE_LOG1P=0;
5878 REPLACE_LOG1PF=0;
5879 REPLACE_LOG1PL=0;
5880 REPLACE_LOG2=0;
5881 REPLACE_LOG2F=0;
5882 REPLACE_LOG2L=0;
5883 REPLACE_LOGB=0;
5884 REPLACE_LOGBF=0;
5885 REPLACE_LOGBL=0;
5886 REPLACE_MODF=0;
5887 REPLACE_MODFF=0;
5888 REPLACE_MODFL=0;
5889 REPLACE_NAN=0;
5890 REPLACE_REMAINDER=0;
5891 REPLACE_REMAINDERF=0;
5892 REPLACE_REMAINDERL=0;
5893 REPLACE_ROUND=0;
5894 REPLACE_ROUNDF=0;
5895 REPLACE_ROUNDL=0;
5896 REPLACE_SIGNBIT=0;
5897 REPLACE_SIGNBIT_USING_GCC=0;
5898 REPLACE_SQRTL=0;
5899 REPLACE_TRUNC=0;
5900 REPLACE_TRUNCF=0;
5901 REPLACE_TRUNCL=0;
5902
5903
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
5905 $as_echo_n "checking whether frexp() can be used without linking with libm... " >&6; }
5906 if test "${gl_cv_func_frexp_no_libm+set}" = set; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909
5910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911 /* end confdefs.h. */
5912 #include <math.h>
5913 double x;
5914 int
5915 main ()
5916 {
5917 int e; return frexp (x, &e) > 0;
5918 ;
5919 return 0;
5920 }
5921 _ACEOF
5922 if ac_fn_c_try_link "$LINENO"; then :
5923 gl_cv_func_frexp_no_libm=yes
5924 else
5925 gl_cv_func_frexp_no_libm=no
5926 fi
5927 rm -f core conftest.err conftest.$ac_objext \
5928 conftest$ac_exeext conftest.$ac_ext
5929
5930 fi
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
5932 $as_echo "$gl_cv_func_frexp_no_libm" >&6; }
5933
5934
5935
5936
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
5938 $as_echo_n "checking whether long double and double are the same... " >&6; }
5939 if test "${gl_cv_long_double_equals_double+set}" = set; then :
5940 $as_echo_n "(cached) " >&6
5941 else
5942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943 /* end confdefs.h. */
5944 #include <float.h>
5945 int
5946 main ()
5947 {
5948 typedef int check[sizeof (long double) == sizeof (double)
5949 && LDBL_MANT_DIG == DBL_MANT_DIG
5950 && LDBL_MAX_EXP == DBL_MAX_EXP
5951 && LDBL_MIN_EXP == DBL_MIN_EXP
5952 ? 1 : -1];
5953
5954 ;
5955 return 0;
5956 }
5957 _ACEOF
5958 if ac_fn_c_try_compile "$LINENO"; then :
5959 gl_cv_long_double_equals_double=yes
5960 else
5961 gl_cv_long_double_equals_double=no
5962 fi
5963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964
5965 fi
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
5967 $as_echo "$gl_cv_long_double_equals_double" >&6; }
5968 if test $gl_cv_long_double_equals_double = yes; then
5969
5970 $as_echo "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
5971
5972 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
5973 else
5974 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
5975 fi
5976
5977
5978
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5980 $as_echo_n "checking for unsigned long long int... " >&6; }
5981 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5982 $as_echo_n "(cached) " >&6
5983 else
5984 ac_cv_type_unsigned_long_long_int=yes
5985 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
5986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5987 /* end confdefs.h. */
5988
5989 /* For now, do not test the preprocessor; as of 2007 there are too many
5990 implementations with broken preprocessors. Perhaps this can
5991 be revisited in 2012. In the meantime, code should not expect
5992 #if to work with literals wider than 32 bits. */
5993 /* Test literals. */
5994 long long int ll = 9223372036854775807ll;
5995 long long int nll = -9223372036854775807LL;
5996 unsigned long long int ull = 18446744073709551615ULL;
5997 /* Test constant expressions. */
5998 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5999 ? 1 : -1)];
6000 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
6001 ? 1 : -1)];
6002 int i = 63;
6003 int
6004 main ()
6005 {
6006 /* Test availability of runtime routines for shift and division. */
6007 long long int llmax = 9223372036854775807ll;
6008 unsigned long long int ullmax = 18446744073709551615ull;
6009 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
6010 | (llmax / ll) | (llmax % ll)
6011 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
6012 | (ullmax / ull) | (ullmax % ull));
6013 ;
6014 return 0;
6015 }
6016
6017 _ACEOF
6018 if ac_fn_c_try_link "$LINENO"; then :
6019
6020 else
6021 ac_cv_type_unsigned_long_long_int=no
6022 fi
6023 rm -f core conftest.err conftest.$ac_objext \
6024 conftest$ac_exeext conftest.$ac_ext
6025 fi
6026 fi
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
6028 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
6029 if test $ac_cv_type_unsigned_long_long_int = yes; then
6030
6031 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
6032
6033 fi
6034
6035
6036
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
6038 $as_echo_n "checking for long long int... " >&6; }
6039 if test "${ac_cv_type_long_long_int+set}" = set; then :
6040 $as_echo_n "(cached) " >&6
6041 else
6042 ac_cv_type_long_long_int=yes
6043 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
6044 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
6045 if test $ac_cv_type_long_long_int = yes; then
6046 if test "$cross_compiling" = yes; then :
6047 :
6048 else
6049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6051 #include <limits.h>
6052 #ifndef LLONG_MAX
6053 # define HALF \
6054 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
6055 # define LLONG_MAX (HALF - 1 + HALF)
6056 #endif
6057 int
6058 main ()
6059 {
6060 long long int n = 1;
6061 int i;
6062 for (i = 0; ; i++)
6063 {
6064 long long int m = n << i;
6065 if (m >> i != n)
6066 return 1;
6067 if (LLONG_MAX / 2 < m)
6068 break;
6069 }
6070 return 0;
6071 ;
6072 return 0;
6073 }
6074 _ACEOF
6075 if ac_fn_c_try_run "$LINENO"; then :
6076
6077 else
6078 ac_cv_type_long_long_int=no
6079 fi
6080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6081 conftest.$ac_objext conftest.beam conftest.$ac_ext
6082 fi
6083
6084 fi
6085 fi
6086 fi
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
6088 $as_echo "$ac_cv_type_long_long_int" >&6; }
6089 if test $ac_cv_type_long_long_int = yes; then
6090
6091 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
6092
6093 fi
6094
6095
6096
6097
6098
6099
6100 gl_cv_c_multiarch=no
6101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6102 /* end confdefs.h. */
6103 #ifndef __APPLE_CC__
6104 not a universal capable compiler
6105 #endif
6106 typedef int dummy;
6107
6108 _ACEOF
6109 if ac_fn_c_try_compile "$LINENO"; then :
6110
6111 arch=
6112 prev=
6113 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
6114 if test -n "$prev"; then
6115 case $word in
6116 i?86 | x86_64 | ppc | ppc64)
6117 if test -z "$arch" || test "$arch" = "$word"; then
6118 arch="$word"
6119 else
6120 gl_cv_c_multiarch=yes
6121 fi
6122 ;;
6123 esac
6124 prev=
6125 else
6126 if test "x$word" = "x-arch"; then
6127 prev=arch
6128 fi
6129 fi
6130 done
6131
6132 fi
6133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6134 if test $gl_cv_c_multiarch = yes; then
6135 APPLE_UNIVERSAL_BUILD=1
6136 else
6137 APPLE_UNIVERSAL_BUILD=0
6138 fi
6139
6140
6141
6142
6143
6144 if test $ac_cv_type_long_long_int = yes; then
6145 HAVE_LONG_LONG_INT=1
6146 else
6147 HAVE_LONG_LONG_INT=0
6148 fi
6149
6150
6151 if test $ac_cv_type_unsigned_long_long_int = yes; then
6152 HAVE_UNSIGNED_LONG_LONG_INT=1
6153 else
6154 HAVE_UNSIGNED_LONG_LONG_INT=0
6155 fi
6156
6157
6158
6159 if test $ac_cv_header_wchar_h = yes; then
6160 HAVE_WCHAR_H=1
6161 else
6162 HAVE_WCHAR_H=0
6163 fi
6164
6165
6166 if test $ac_cv_header_inttypes_h = yes; then
6167 HAVE_INTTYPES_H=1
6168 else
6169 HAVE_INTTYPES_H=0
6170 fi
6171
6172
6173 if test $ac_cv_header_sys_types_h = yes; then
6174 HAVE_SYS_TYPES_H=1
6175 else
6176 HAVE_SYS_TYPES_H=0
6177 fi
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189 if test $gl_cv_have_include_next = yes; then
6190 gl_cv_next_stdint_h='<'stdint.h'>'
6191 else
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
6193 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
6194 if test "${gl_cv_next_stdint_h+set}" = set; then :
6195 $as_echo_n "(cached) " >&6
6196 else
6197
6198 if test $ac_cv_header_stdint_h = yes; then
6199
6200
6201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6202 /* end confdefs.h. */
6203 #include <stdint.h>
6204
6205 _ACEOF
6206 case "$host_os" in
6207 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6208 *) gl_absname_cpp="$ac_cpp" ;;
6209 esac
6210
6211 case "$host_os" in
6212 mingw*)
6213 gl_dirsep_regex='[/\\]'
6214 ;;
6215 *)
6216 gl_dirsep_regex='\/'
6217 ;;
6218 esac
6219 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6220
6221 gl_header_literal_regex=`echo 'stdint.h' \
6222 | sed -e "$gl_make_literal_regex_sed"`
6223 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6224 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6225 s|^/[^/]|//&|
6226 p
6227 q
6228 }'
6229 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6230 sed -n "$gl_absolute_header_sed"`'"'
6231 else
6232 gl_cv_next_stdint_h='<'stdint.h'>'
6233 fi
6234
6235
6236 fi
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
6238 $as_echo "$gl_cv_next_stdint_h" >&6; }
6239 fi
6240 NEXT_STDINT_H=$gl_cv_next_stdint_h
6241
6242 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6243 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6244 gl_next_as_first_directive='<'stdint.h'>'
6245 else
6246 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6247 gl_next_as_first_directive=$gl_cv_next_stdint_h
6248 fi
6249 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
6250
6251
6252
6253
6254 if test $ac_cv_header_stdint_h = yes; then
6255 HAVE_STDINT_H=1
6256 else
6257 HAVE_STDINT_H=0
6258 fi
6259
6260
6261 if test $ac_cv_header_stdint_h = yes; then
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
6263 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
6264 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
6265 $as_echo_n "(cached) " >&6
6266 else
6267 gl_cv_header_working_stdint_h=no
6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6270
6271
6272 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6273 #include <stdint.h>
6274 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
6275 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
6276 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
6277 #endif
6278
6279
6280 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6281 included before <wchar.h>. */
6282 #include <stddef.h>
6283 #include <signal.h>
6284 #if HAVE_WCHAR_H
6285 # include <stdio.h>
6286 # include <time.h>
6287 # include <wchar.h>
6288 #endif
6289
6290
6291 #ifdef INT8_MAX
6292 int8_t a1 = INT8_MAX;
6293 int8_t a1min = INT8_MIN;
6294 #endif
6295 #ifdef INT16_MAX
6296 int16_t a2 = INT16_MAX;
6297 int16_t a2min = INT16_MIN;
6298 #endif
6299 #ifdef INT32_MAX
6300 int32_t a3 = INT32_MAX;
6301 int32_t a3min = INT32_MIN;
6302 #endif
6303 #ifdef INT64_MAX
6304 int64_t a4 = INT64_MAX;
6305 int64_t a4min = INT64_MIN;
6306 #endif
6307 #ifdef UINT8_MAX
6308 uint8_t b1 = UINT8_MAX;
6309 #else
6310 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
6311 #endif
6312 #ifdef UINT16_MAX
6313 uint16_t b2 = UINT16_MAX;
6314 #endif
6315 #ifdef UINT32_MAX
6316 uint32_t b3 = UINT32_MAX;
6317 #endif
6318 #ifdef UINT64_MAX
6319 uint64_t b4 = UINT64_MAX;
6320 #endif
6321 int_least8_t c1 = INT8_C (0x7f);
6322 int_least8_t c1max = INT_LEAST8_MAX;
6323 int_least8_t c1min = INT_LEAST8_MIN;
6324 int_least16_t c2 = INT16_C (0x7fff);
6325 int_least16_t c2max = INT_LEAST16_MAX;
6326 int_least16_t c2min = INT_LEAST16_MIN;
6327 int_least32_t c3 = INT32_C (0x7fffffff);
6328 int_least32_t c3max = INT_LEAST32_MAX;
6329 int_least32_t c3min = INT_LEAST32_MIN;
6330 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
6331 int_least64_t c4max = INT_LEAST64_MAX;
6332 int_least64_t c4min = INT_LEAST64_MIN;
6333 uint_least8_t d1 = UINT8_C (0xff);
6334 uint_least8_t d1max = UINT_LEAST8_MAX;
6335 uint_least16_t d2 = UINT16_C (0xffff);
6336 uint_least16_t d2max = UINT_LEAST16_MAX;
6337 uint_least32_t d3 = UINT32_C (0xffffffff);
6338 uint_least32_t d3max = UINT_LEAST32_MAX;
6339 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
6340 uint_least64_t d4max = UINT_LEAST64_MAX;
6341 int_fast8_t e1 = INT_FAST8_MAX;
6342 int_fast8_t e1min = INT_FAST8_MIN;
6343 int_fast16_t e2 = INT_FAST16_MAX;
6344 int_fast16_t e2min = INT_FAST16_MIN;
6345 int_fast32_t e3 = INT_FAST32_MAX;
6346 int_fast32_t e3min = INT_FAST32_MIN;
6347 int_fast64_t e4 = INT_FAST64_MAX;
6348 int_fast64_t e4min = INT_FAST64_MIN;
6349 uint_fast8_t f1 = UINT_FAST8_MAX;
6350 uint_fast16_t f2 = UINT_FAST16_MAX;
6351 uint_fast32_t f3 = UINT_FAST32_MAX;
6352 uint_fast64_t f4 = UINT_FAST64_MAX;
6353 #ifdef INTPTR_MAX
6354 intptr_t g = INTPTR_MAX;
6355 intptr_t gmin = INTPTR_MIN;
6356 #endif
6357 #ifdef UINTPTR_MAX
6358 uintptr_t h = UINTPTR_MAX;
6359 #endif
6360 intmax_t i = INTMAX_MAX;
6361 uintmax_t j = UINTMAX_MAX;
6362
6363 #include <limits.h> /* for CHAR_BIT */
6364 #define TYPE_MINIMUM(t) \
6365 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
6366 #define TYPE_MAXIMUM(t) \
6367 ((t) ((t) 0 < (t) -1 \
6368 ? (t) -1 \
6369 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
6370 struct s {
6371 int check_PTRDIFF:
6372 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
6373 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
6374 ? 1 : -1;
6375 /* Detect bug in FreeBSD 6.0 / ia64. */
6376 int check_SIG_ATOMIC:
6377 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
6378 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
6379 ? 1 : -1;
6380 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
6381 int check_WCHAR:
6382 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
6383 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
6384 ? 1 : -1;
6385 /* Detect bug in mingw. */
6386 int check_WINT:
6387 WINT_MIN == TYPE_MINIMUM (wint_t)
6388 && WINT_MAX == TYPE_MAXIMUM (wint_t)
6389 ? 1 : -1;
6390
6391 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
6392 int check_UINT8_C:
6393 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
6394 int check_UINT16_C:
6395 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
6396
6397 /* Detect bugs in OpenBSD 3.9 stdint.h. */
6398 #ifdef UINT8_MAX
6399 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
6400 #endif
6401 #ifdef UINT16_MAX
6402 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
6403 #endif
6404 #ifdef UINT32_MAX
6405 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
6406 #endif
6407 #ifdef UINT64_MAX
6408 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
6409 #endif
6410 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
6411 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
6412 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
6413 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
6414 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
6415 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
6416 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
6417 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
6418 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
6419 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
6420 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
6421 };
6422
6423 int
6424 main ()
6425 {
6426
6427 ;
6428 return 0;
6429 }
6430 _ACEOF
6431 if ac_fn_c_try_compile "$LINENO"; then :
6432 if test "$cross_compiling" = yes; then :
6433 gl_cv_header_working_stdint_h=yes
6434
6435 else
6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437 /* end confdefs.h. */
6438
6439
6440 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
6441 #include <stdint.h>
6442
6443
6444 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6445 included before <wchar.h>. */
6446 #include <stddef.h>
6447 #include <signal.h>
6448 #if HAVE_WCHAR_H
6449 # include <stdio.h>
6450 # include <time.h>
6451 # include <wchar.h>
6452 #endif
6453
6454
6455 #include <stdio.h>
6456 #include <string.h>
6457 #define MVAL(macro) MVAL1(macro)
6458 #define MVAL1(expression) #expression
6459 static const char *macro_values[] =
6460 {
6461 #ifdef INT8_MAX
6462 MVAL (INT8_MAX),
6463 #endif
6464 #ifdef INT16_MAX
6465 MVAL (INT16_MAX),
6466 #endif
6467 #ifdef INT32_MAX
6468 MVAL (INT32_MAX),
6469 #endif
6470 #ifdef INT64_MAX
6471 MVAL (INT64_MAX),
6472 #endif
6473 #ifdef UINT8_MAX
6474 MVAL (UINT8_MAX),
6475 #endif
6476 #ifdef UINT16_MAX
6477 MVAL (UINT16_MAX),
6478 #endif
6479 #ifdef UINT32_MAX
6480 MVAL (UINT32_MAX),
6481 #endif
6482 #ifdef UINT64_MAX
6483 MVAL (UINT64_MAX),
6484 #endif
6485 NULL
6486 };
6487
6488 int
6489 main ()
6490 {
6491
6492 const char **mv;
6493 for (mv = macro_values; *mv != NULL; mv++)
6494 {
6495 const char *value = *mv;
6496 /* Test whether it looks like a cast expression. */
6497 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
6498 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
6499 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
6500 || strncmp (value, "((int)"/*)*/, 6) == 0
6501 || strncmp (value, "((signed short)"/*)*/, 15) == 0
6502 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
6503 return mv - macro_values + 1;
6504 }
6505 return 0;
6506
6507 ;
6508 return 0;
6509 }
6510 _ACEOF
6511 if ac_fn_c_try_run "$LINENO"; then :
6512 gl_cv_header_working_stdint_h=yes
6513 fi
6514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6515 conftest.$ac_objext conftest.beam conftest.$ac_ext
6516 fi
6517
6518
6519 fi
6520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6521
6522 fi
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
6524 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
6525 fi
6526 if test "$gl_cv_header_working_stdint_h" = yes; then
6527 STDINT_H=
6528 else
6529 for ac_header in sys/inttypes.h sys/bitypes.h
6530 do :
6531 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6532 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6533 eval as_val=\$$as_ac_Header
6534 if test "x$as_val" = x""yes; then :
6535 cat >>confdefs.h <<_ACEOF
6536 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6537 _ACEOF
6538
6539 fi
6540
6541 done
6542
6543 if test $ac_cv_header_sys_inttypes_h = yes; then
6544 HAVE_SYS_INTTYPES_H=1
6545 else
6546 HAVE_SYS_INTTYPES_H=0
6547 fi
6548
6549 if test $ac_cv_header_sys_bitypes_h = yes; then
6550 HAVE_SYS_BITYPES_H=1
6551 else
6552 HAVE_SYS_BITYPES_H=0
6553 fi
6554
6555
6556
6557
6558 if test $APPLE_UNIVERSAL_BUILD = 0; then
6559
6560
6561 for gltype in ptrdiff_t size_t ; do
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6563 $as_echo_n "checking for bit size of $gltype... " >&6; }
6564 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6565 $as_echo_n "(cached) " >&6
6566 else
6567 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6568 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6569 included before <wchar.h>. */
6570 #include <stddef.h>
6571 #include <signal.h>
6572 #if HAVE_WCHAR_H
6573 # include <stdio.h>
6574 # include <time.h>
6575 # include <wchar.h>
6576 #endif
6577
6578 #include <limits.h>"; then :
6579
6580 else
6581 result=unknown
6582 fi
6583
6584 eval gl_cv_bitsizeof_${gltype}=\$result
6585
6586 fi
6587 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6589 $as_echo "$ac_res" >&6; }
6590 eval result=\$gl_cv_bitsizeof_${gltype}
6591 if test $result = unknown; then
6592 result=0
6593 fi
6594 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6595 cat >>confdefs.h <<_ACEOF
6596 #define BITSIZEOF_${GLTYPE} $result
6597 _ACEOF
6598
6599 eval BITSIZEOF_${GLTYPE}=\$result
6600 done
6601
6602
6603 fi
6604
6605
6606 for gltype in sig_atomic_t wchar_t wint_t ; do
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6608 $as_echo_n "checking for bit size of $gltype... " >&6; }
6609 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6610 $as_echo_n "(cached) " >&6
6611 else
6612 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6613 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6614 included before <wchar.h>. */
6615 #include <stddef.h>
6616 #include <signal.h>
6617 #if HAVE_WCHAR_H
6618 # include <stdio.h>
6619 # include <time.h>
6620 # include <wchar.h>
6621 #endif
6622
6623 #include <limits.h>"; then :
6624
6625 else
6626 result=unknown
6627 fi
6628
6629 eval gl_cv_bitsizeof_${gltype}=\$result
6630
6631 fi
6632 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6634 $as_echo "$ac_res" >&6; }
6635 eval result=\$gl_cv_bitsizeof_${gltype}
6636 if test $result = unknown; then
6637 result=0
6638 fi
6639 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6640 cat >>confdefs.h <<_ACEOF
6641 #define BITSIZEOF_${GLTYPE} $result
6642 _ACEOF
6643
6644 eval BITSIZEOF_${GLTYPE}=\$result
6645 done
6646
6647
6648
6649
6650 for gltype in sig_atomic_t wchar_t wint_t ; do
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6652 $as_echo_n "checking whether $gltype is signed... " >&6; }
6653 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6654 $as_echo_n "(cached) " >&6
6655 else
6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657 /* end confdefs.h. */
6658
6659 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6660 included before <wchar.h>. */
6661 #include <stddef.h>
6662 #include <signal.h>
6663 #if HAVE_WCHAR_H
6664 # include <stdio.h>
6665 # include <time.h>
6666 # include <wchar.h>
6667 #endif
6668
6669 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6670 int
6671 main ()
6672 {
6673
6674 ;
6675 return 0;
6676 }
6677 _ACEOF
6678 if ac_fn_c_try_compile "$LINENO"; then :
6679 result=yes
6680 else
6681 result=no
6682 fi
6683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6684 eval gl_cv_type_${gltype}_signed=\$result
6685
6686 fi
6687 eval ac_res=\$gl_cv_type_${gltype}_signed
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6689 $as_echo "$ac_res" >&6; }
6690 eval result=\$gl_cv_type_${gltype}_signed
6691 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6692 if test "$result" = yes; then
6693 cat >>confdefs.h <<_ACEOF
6694 #define HAVE_SIGNED_${GLTYPE} 1
6695 _ACEOF
6696
6697 eval HAVE_SIGNED_${GLTYPE}=1
6698 else
6699 eval HAVE_SIGNED_${GLTYPE}=0
6700 fi
6701 done
6702
6703
6704 gl_cv_type_ptrdiff_t_signed=yes
6705 gl_cv_type_size_t_signed=no
6706 if test $APPLE_UNIVERSAL_BUILD = 0; then
6707
6708
6709 for gltype in ptrdiff_t size_t ; do
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6711 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6712 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6713 $as_echo_n "(cached) " >&6
6714 else
6715 eval gl_cv_type_${gltype}_suffix=no
6716 eval result=\$gl_cv_type_${gltype}_signed
6717 if test "$result" = yes; then
6718 glsufu=
6719 else
6720 glsufu=u
6721 fi
6722 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6723 case $glsuf in
6724 '') gltype1='int';;
6725 l) gltype1='long int';;
6726 ll) gltype1='long long int';;
6727 i64) gltype1='__int64';;
6728 u) gltype1='unsigned int';;
6729 ul) gltype1='unsigned long int';;
6730 ull) gltype1='unsigned long long int';;
6731 ui64)gltype1='unsigned __int64';;
6732 esac
6733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734 /* end confdefs.h. */
6735
6736 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6737 included before <wchar.h>. */
6738 #include <stddef.h>
6739 #include <signal.h>
6740 #if HAVE_WCHAR_H
6741 # include <stdio.h>
6742 # include <time.h>
6743 # include <wchar.h>
6744 #endif
6745
6746 extern $gltype foo;
6747 extern $gltype1 foo;
6748 int
6749 main ()
6750 {
6751
6752 ;
6753 return 0;
6754 }
6755 _ACEOF
6756 if ac_fn_c_try_compile "$LINENO"; then :
6757 eval gl_cv_type_${gltype}_suffix=\$glsuf
6758 fi
6759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6760 eval result=\$gl_cv_type_${gltype}_suffix
6761 test "$result" != no && break
6762 done
6763 fi
6764 eval ac_res=\$gl_cv_type_${gltype}_suffix
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6766 $as_echo "$ac_res" >&6; }
6767 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6768 eval result=\$gl_cv_type_${gltype}_suffix
6769 test "$result" = no && result=
6770 eval ${GLTYPE}_SUFFIX=\$result
6771 cat >>confdefs.h <<_ACEOF
6772 #define ${GLTYPE}_SUFFIX $result
6773 _ACEOF
6774
6775 done
6776
6777
6778 fi
6779
6780
6781 for gltype in sig_atomic_t wchar_t wint_t ; do
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6783 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6784 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6785 $as_echo_n "(cached) " >&6
6786 else
6787 eval gl_cv_type_${gltype}_suffix=no
6788 eval result=\$gl_cv_type_${gltype}_signed
6789 if test "$result" = yes; then
6790 glsufu=
6791 else
6792 glsufu=u
6793 fi
6794 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6795 case $glsuf in
6796 '') gltype1='int';;
6797 l) gltype1='long int';;
6798 ll) gltype1='long long int';;
6799 i64) gltype1='__int64';;
6800 u) gltype1='unsigned int';;
6801 ul) gltype1='unsigned long int';;
6802 ull) gltype1='unsigned long long int';;
6803 ui64)gltype1='unsigned __int64';;
6804 esac
6805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806 /* end confdefs.h. */
6807
6808 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6809 included before <wchar.h>. */
6810 #include <stddef.h>
6811 #include <signal.h>
6812 #if HAVE_WCHAR_H
6813 # include <stdio.h>
6814 # include <time.h>
6815 # include <wchar.h>
6816 #endif
6817
6818 extern $gltype foo;
6819 extern $gltype1 foo;
6820 int
6821 main ()
6822 {
6823
6824 ;
6825 return 0;
6826 }
6827 _ACEOF
6828 if ac_fn_c_try_compile "$LINENO"; then :
6829 eval gl_cv_type_${gltype}_suffix=\$glsuf
6830 fi
6831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6832 eval result=\$gl_cv_type_${gltype}_suffix
6833 test "$result" != no && break
6834 done
6835 fi
6836 eval ac_res=\$gl_cv_type_${gltype}_suffix
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6838 $as_echo "$ac_res" >&6; }
6839 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6840 eval result=\$gl_cv_type_${gltype}_suffix
6841 test "$result" = no && result=
6842 eval ${GLTYPE}_SUFFIX=\$result
6843 cat >>confdefs.h <<_ACEOF
6844 #define ${GLTYPE}_SUFFIX $result
6845 _ACEOF
6846
6847 done
6848
6849
6850
6851 if test $BITSIZEOF_WINT_T -lt 32; then
6852 BITSIZEOF_WINT_T=32
6853 fi
6854
6855 STDINT_H=stdint.h
6856 fi
6857
6858 if test -n "$STDINT_H"; then
6859 GL_GENERATE_STDINT_H_TRUE=
6860 GL_GENERATE_STDINT_H_FALSE='#'
6861 else
6862 GL_GENERATE_STDINT_H_TRUE='#'
6863 GL_GENERATE_STDINT_H_FALSE=
6864 fi
6865
6866
6867
6868
6869
6870 GNULIB_IMAXABS=0;
6871 GNULIB_IMAXDIV=0;
6872 GNULIB_STRTOIMAX=0;
6873 GNULIB_STRTOUMAX=0;
6874 HAVE_DECL_IMAXABS=1;
6875 HAVE_DECL_IMAXDIV=1;
6876 HAVE_DECL_STRTOIMAX=1;
6877 HAVE_DECL_STRTOUMAX=1;
6878 REPLACE_STRTOIMAX=0;
6879 INT32_MAX_LT_INTMAX_MAX=1;
6880 INT64_MAX_EQ_LONG_MAX='defined _LP64';
6881 PRI_MACROS_BROKEN=0;
6882 PRIPTR_PREFIX=__PRIPTR_PREFIX;
6883 UINT32_MAX_LT_UINTMAX_MAX=1;
6884 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900 if test $gl_cv_have_include_next = yes; then
6901 gl_cv_next_inttypes_h='<'inttypes.h'>'
6902 else
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
6904 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
6905 if test "${gl_cv_next_inttypes_h+set}" = set; then :
6906 $as_echo_n "(cached) " >&6
6907 else
6908
6909 if test $ac_cv_header_inttypes_h = yes; then
6910
6911
6912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6913 /* end confdefs.h. */
6914 #include <inttypes.h>
6915
6916 _ACEOF
6917 case "$host_os" in
6918 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6919 *) gl_absname_cpp="$ac_cpp" ;;
6920 esac
6921
6922 case "$host_os" in
6923 mingw*)
6924 gl_dirsep_regex='[/\\]'
6925 ;;
6926 *)
6927 gl_dirsep_regex='\/'
6928 ;;
6929 esac
6930 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6931
6932 gl_header_literal_regex=`echo 'inttypes.h' \
6933 | sed -e "$gl_make_literal_regex_sed"`
6934 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6935 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6936 s|^/[^/]|//&|
6937 p
6938 q
6939 }'
6940 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6941 sed -n "$gl_absolute_header_sed"`'"'
6942 else
6943 gl_cv_next_inttypes_h='<'inttypes.h'>'
6944 fi
6945
6946
6947 fi
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
6949 $as_echo "$gl_cv_next_inttypes_h" >&6; }
6950 fi
6951 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
6952
6953 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6954 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6955 gl_next_as_first_directive='<'inttypes.h'>'
6956 else
6957 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6958 gl_next_as_first_directive=$gl_cv_next_inttypes_h
6959 fi
6960 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
6961
6962
6963
6964
6965
6966
6967
6968
6969 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
6970 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
6972 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
6973 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
6974 $as_echo_n "(cached) " >&6
6975 else
6976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6977 /* end confdefs.h. */
6978 #include <inttypes.h>
6979
6980 int
6981 main ()
6982 {
6983 #undef $gl_func
6984 (void) $gl_func;
6985 ;
6986 return 0;
6987 }
6988 _ACEOF
6989 if ac_fn_c_try_compile "$LINENO"; then :
6990 eval "$as_gl_Symbol=yes"
6991 else
6992 eval "$as_gl_Symbol=no"
6993 fi
6994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6995 fi
6996 eval ac_res=\$$as_gl_Symbol
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6998 $as_echo "$ac_res" >&6; }
6999 eval as_val=\$$as_gl_Symbol
7000 if test "x$as_val" = x""yes; then :
7001 cat >>confdefs.h <<_ACEOF
7002 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
7003 _ACEOF
7004
7005 eval ac_cv_have_decl_$gl_func=yes
7006 fi
7007 done
7008
7009
7010
7011 for ac_header in inttypes.h
7012 do :
7013 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7014 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
7015 cat >>confdefs.h <<_ACEOF
7016 #define HAVE_INTTYPES_H 1
7017 _ACEOF
7018
7019 fi
7020
7021 done
7022
7023 if test $ac_cv_header_inttypes_h = yes; then
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7025 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7026 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
7027 $as_echo_n "(cached) " >&6
7028 else
7029
7030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7031 /* end confdefs.h. */
7032
7033 #include <inttypes.h>
7034 #ifdef PRId32
7035 char *p = PRId32;
7036 #endif
7037
7038 int
7039 main ()
7040 {
7041
7042 ;
7043 return 0;
7044 }
7045 _ACEOF
7046 if ac_fn_c_try_compile "$LINENO"; then :
7047 gt_cv_inttypes_pri_broken=no
7048 else
7049 gt_cv_inttypes_pri_broken=yes
7050 fi
7051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7052
7053 fi
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7055 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7056 fi
7057 if test "$gt_cv_inttypes_pri_broken" = yes; then
7058
7059 cat >>confdefs.h <<_ACEOF
7060 #define PRI_MACROS_BROKEN 1
7061 _ACEOF
7062
7063 PRI_MACROS_BROKEN=1
7064 else
7065 PRI_MACROS_BROKEN=0
7066 fi
7067
7068
7069
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
7071 $as_echo_n "checking where to find the exponent in a 'double'... " >&6; }
7072 if test "${gl_cv_cc_double_expbit0+set}" = set; then :
7073 $as_echo_n "(cached) " >&6
7074 else
7075
7076 if test "$cross_compiling" = yes; then :
7077
7078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7079 /* end confdefs.h. */
7080
7081 #if defined arm || defined __arm || defined __arm__
7082 mixed_endianness
7083 #endif
7084
7085 _ACEOF
7086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7087 $EGREP "mixed_endianness" >/dev/null 2>&1; then :
7088 gl_cv_cc_double_expbit0="unknown"
7089 else
7090
7091 :
7092 if test "${ac_cv_c_bigendian+set}" = set; then :
7093 $as_echo_n "(cached) " >&6
7094 else
7095 ac_cv_c_bigendian=unknown
7096 # See if we're dealing with a universal compiler.
7097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7098 /* end confdefs.h. */
7099 #ifndef __APPLE_CC__
7100 not a universal capable compiler
7101 #endif
7102 typedef int dummy;
7103
7104 _ACEOF
7105 if ac_fn_c_try_compile "$LINENO"; then :
7106
7107 # Check for potential -arch flags. It is not universal unless
7108 # there are at least two -arch flags with different values.
7109 ac_arch=
7110 ac_prev=
7111 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7112 if test -n "$ac_prev"; then
7113 case $ac_word in
7114 i?86 | x86_64 | ppc | ppc64)
7115 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7116 ac_arch=$ac_word
7117 else
7118 ac_cv_c_bigendian=universal
7119 break
7120 fi
7121 ;;
7122 esac
7123 ac_prev=
7124 elif test "x$ac_word" = "x-arch"; then
7125 ac_prev=arch
7126 fi
7127 done
7128 fi
7129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7130 if test $ac_cv_c_bigendian = unknown; then
7131 # See if sys/param.h defines the BYTE_ORDER macro.
7132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133 /* end confdefs.h. */
7134 #include <sys/types.h>
7135 #include <sys/param.h>
7136
7137 int
7138 main ()
7139 {
7140 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7141 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7142 && LITTLE_ENDIAN)
7143 bogus endian macros
7144 #endif
7145
7146 ;
7147 return 0;
7148 }
7149 _ACEOF
7150 if ac_fn_c_try_compile "$LINENO"; then :
7151 # It does; now see whether it defined to BIG_ENDIAN or not.
7152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7153 /* end confdefs.h. */
7154 #include <sys/types.h>
7155 #include <sys/param.h>
7156
7157 int
7158 main ()
7159 {
7160 #if BYTE_ORDER != BIG_ENDIAN
7161 not big endian
7162 #endif
7163
7164 ;
7165 return 0;
7166 }
7167 _ACEOF
7168 if ac_fn_c_try_compile "$LINENO"; then :
7169 ac_cv_c_bigendian=yes
7170 else
7171 ac_cv_c_bigendian=no
7172 fi
7173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7174 fi
7175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7176 fi
7177 if test $ac_cv_c_bigendian = unknown; then
7178 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h. */
7181 #include <limits.h>
7182
7183 int
7184 main ()
7185 {
7186 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7187 bogus endian macros
7188 #endif
7189
7190 ;
7191 return 0;
7192 }
7193 _ACEOF
7194 if ac_fn_c_try_compile "$LINENO"; then :
7195 # It does; now see whether it defined to _BIG_ENDIAN or not.
7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197 /* end confdefs.h. */
7198 #include <limits.h>
7199
7200 int
7201 main ()
7202 {
7203 #ifndef _BIG_ENDIAN
7204 not big endian
7205 #endif
7206
7207 ;
7208 return 0;
7209 }
7210 _ACEOF
7211 if ac_fn_c_try_compile "$LINENO"; then :
7212 ac_cv_c_bigendian=yes
7213 else
7214 ac_cv_c_bigendian=no
7215 fi
7216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7217 fi
7218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7219 fi
7220 if test $ac_cv_c_bigendian = unknown; then
7221 # Compile a test program.
7222 if test "$cross_compiling" = yes; then :
7223 # Try to guess by grepping values from an object file.
7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h. */
7226 short int ascii_mm[] =
7227 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7228 short int ascii_ii[] =
7229 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7230 int use_ascii (int i) {
7231 return ascii_mm[i] + ascii_ii[i];
7232 }
7233 short int ebcdic_ii[] =
7234 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7235 short int ebcdic_mm[] =
7236 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7237 int use_ebcdic (int i) {
7238 return ebcdic_mm[i] + ebcdic_ii[i];
7239 }
7240 extern int foo;
7241
7242 int
7243 main ()
7244 {
7245 return use_ascii (foo) == use_ebcdic (foo);
7246 ;
7247 return 0;
7248 }
7249 _ACEOF
7250 if ac_fn_c_try_compile "$LINENO"; then :
7251 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7252 ac_cv_c_bigendian=yes
7253 fi
7254 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7255 if test "$ac_cv_c_bigendian" = unknown; then
7256 ac_cv_c_bigendian=no
7257 else
7258 # finding both strings is unlikely to happen, but who knows?
7259 ac_cv_c_bigendian=unknown
7260 fi
7261 fi
7262 fi
7263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7264 else
7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266 /* end confdefs.h. */
7267 $ac_includes_default
7268 int
7269 main ()
7270 {
7271
7272 /* Are we little or big endian? From Harbison&Steele. */
7273 union
7274 {
7275 long int l;
7276 char c[sizeof (long int)];
7277 } u;
7278 u.l = 1;
7279 return u.c[sizeof (long int) - 1] == 1;
7280
7281 ;
7282 return 0;
7283 }
7284 _ACEOF
7285 if ac_fn_c_try_run "$LINENO"; then :
7286 ac_cv_c_bigendian=no
7287 else
7288 ac_cv_c_bigendian=yes
7289 fi
7290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7291 conftest.$ac_objext conftest.beam conftest.$ac_ext
7292 fi
7293
7294 fi
7295 fi
7296 :
7297 case $ac_cv_c_bigendian in #(
7298 yes)
7299 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
7300 no)
7301 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
7302 universal)
7303
7304 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7305
7306 ;; #(
7307 *)
7308 gl_cv_cc_double_expbit0="unknown" ;;
7309 esac
7310
7311
7312 fi
7313 rm -f conftest*
7314
7315
7316 else
7317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318 /* end confdefs.h. */
7319
7320 #include <float.h>
7321 #include <stddef.h>
7322 #include <stdio.h>
7323 #include <string.h>
7324 #define NWORDS \
7325 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
7326 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
7327 static unsigned int ored_words[NWORDS];
7328 static unsigned int anded_words[NWORDS];
7329 static void add_to_ored_words (double x)
7330 {
7331 memory_double m;
7332 size_t i;
7333 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
7334 memset (&m, 0, sizeof (memory_double));
7335 m.value = x;
7336 for (i = 0; i < NWORDS; i++)
7337 {
7338 ored_words[i] |= m.word[i];
7339 anded_words[i] &= m.word[i];
7340 }
7341 }
7342 int main ()
7343 {
7344 size_t j;
7345 FILE *fp = fopen ("conftest.out", "w");
7346 if (fp == NULL)
7347 return 1;
7348 for (j = 0; j < NWORDS; j++)
7349 anded_words[j] = ~ (unsigned int) 0;
7350 add_to_ored_words (0.25);
7351 add_to_ored_words (0.5);
7352 add_to_ored_words (1.0);
7353 add_to_ored_words (2.0);
7354 add_to_ored_words (4.0);
7355 /* Remove bits that are common (e.g. if representation of the first mantissa
7356 bit is explicit). */
7357 for (j = 0; j < NWORDS; j++)
7358 ored_words[j] &= ~anded_words[j];
7359 /* Now find the nonzero word. */
7360 for (j = 0; j < NWORDS; j++)
7361 if (ored_words[j] != 0)
7362 break;
7363 if (j < NWORDS)
7364 {
7365 size_t i;
7366 for (i = j + 1; i < NWORDS; i++)
7367 if (ored_words[i] != 0)
7368 {
7369 fprintf (fp, "unknown");
7370 return (fclose (fp) != 0);
7371 }
7372 for (i = 0; ; i++)
7373 if ((ored_words[j] >> i) & 1)
7374 {
7375 fprintf (fp, "word %d bit %d", (int) j, (int) i);
7376 return (fclose (fp) != 0);
7377 }
7378 }
7379 fprintf (fp, "unknown");
7380 return (fclose (fp) != 0);
7381 }
7382
7383 _ACEOF
7384 if ac_fn_c_try_run "$LINENO"; then :
7385 gl_cv_cc_double_expbit0=`cat conftest.out`
7386 else
7387 gl_cv_cc_double_expbit0="unknown"
7388 fi
7389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7390 conftest.$ac_objext conftest.beam conftest.$ac_ext
7391 fi
7392
7393 rm -f conftest.out
7394
7395 fi
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
7397 $as_echo "$gl_cv_cc_double_expbit0" >&6; }
7398 case "$gl_cv_cc_double_expbit0" in
7399 word*bit*)
7400 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
7401 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
7402
7403 cat >>confdefs.h <<_ACEOF
7404 #define DBL_EXPBIT0_WORD $word
7405 _ACEOF
7406
7407
7408 cat >>confdefs.h <<_ACEOF
7409 #define DBL_EXPBIT0_BIT $bit
7410 _ACEOF
7411
7412 ;;
7413 esac
7414
7415
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7417 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
7418 if test "${ac_cv_c_bigendian+set}" = set; then :
7419 $as_echo_n "(cached) " >&6
7420 else
7421 ac_cv_c_bigendian=unknown
7422 # See if we're dealing with a universal compiler.
7423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424 /* end confdefs.h. */
7425 #ifndef __APPLE_CC__
7426 not a universal capable compiler
7427 #endif
7428 typedef int dummy;
7429
7430 _ACEOF
7431 if ac_fn_c_try_compile "$LINENO"; then :
7432
7433 # Check for potential -arch flags. It is not universal unless
7434 # there are at least two -arch flags with different values.
7435 ac_arch=
7436 ac_prev=
7437 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7438 if test -n "$ac_prev"; then
7439 case $ac_word in
7440 i?86 | x86_64 | ppc | ppc64)
7441 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7442 ac_arch=$ac_word
7443 else
7444 ac_cv_c_bigendian=universal
7445 break
7446 fi
7447 ;;
7448 esac
7449 ac_prev=
7450 elif test "x$ac_word" = "x-arch"; then
7451 ac_prev=arch
7452 fi
7453 done
7454 fi
7455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7456 if test $ac_cv_c_bigendian = unknown; then
7457 # See if sys/param.h defines the BYTE_ORDER macro.
7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7459 /* end confdefs.h. */
7460 #include <sys/types.h>
7461 #include <sys/param.h>
7462
7463 int
7464 main ()
7465 {
7466 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
7467 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
7468 && LITTLE_ENDIAN)
7469 bogus endian macros
7470 #endif
7471
7472 ;
7473 return 0;
7474 }
7475 _ACEOF
7476 if ac_fn_c_try_compile "$LINENO"; then :
7477 # It does; now see whether it defined to BIG_ENDIAN or not.
7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479 /* end confdefs.h. */
7480 #include <sys/types.h>
7481 #include <sys/param.h>
7482
7483 int
7484 main ()
7485 {
7486 #if BYTE_ORDER != BIG_ENDIAN
7487 not big endian
7488 #endif
7489
7490 ;
7491 return 0;
7492 }
7493 _ACEOF
7494 if ac_fn_c_try_compile "$LINENO"; then :
7495 ac_cv_c_bigendian=yes
7496 else
7497 ac_cv_c_bigendian=no
7498 fi
7499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7500 fi
7501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7502 fi
7503 if test $ac_cv_c_bigendian = unknown; then
7504 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h. */
7507 #include <limits.h>
7508
7509 int
7510 main ()
7511 {
7512 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7513 bogus endian macros
7514 #endif
7515
7516 ;
7517 return 0;
7518 }
7519 _ACEOF
7520 if ac_fn_c_try_compile "$LINENO"; then :
7521 # It does; now see whether it defined to _BIG_ENDIAN or not.
7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7523 /* end confdefs.h. */
7524 #include <limits.h>
7525
7526 int
7527 main ()
7528 {
7529 #ifndef _BIG_ENDIAN
7530 not big endian
7531 #endif
7532
7533 ;
7534 return 0;
7535 }
7536 _ACEOF
7537 if ac_fn_c_try_compile "$LINENO"; then :
7538 ac_cv_c_bigendian=yes
7539 else
7540 ac_cv_c_bigendian=no
7541 fi
7542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7543 fi
7544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7545 fi
7546 if test $ac_cv_c_bigendian = unknown; then
7547 # Compile a test program.
7548 if test "$cross_compiling" = yes; then :
7549 # Try to guess by grepping values from an object file.
7550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7551 /* end confdefs.h. */
7552 short int ascii_mm[] =
7553 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7554 short int ascii_ii[] =
7555 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7556 int use_ascii (int i) {
7557 return ascii_mm[i] + ascii_ii[i];
7558 }
7559 short int ebcdic_ii[] =
7560 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7561 short int ebcdic_mm[] =
7562 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7563 int use_ebcdic (int i) {
7564 return ebcdic_mm[i] + ebcdic_ii[i];
7565 }
7566 extern int foo;
7567
7568 int
7569 main ()
7570 {
7571 return use_ascii (foo) == use_ebcdic (foo);
7572 ;
7573 return 0;
7574 }
7575 _ACEOF
7576 if ac_fn_c_try_compile "$LINENO"; then :
7577 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
7578 ac_cv_c_bigendian=yes
7579 fi
7580 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7581 if test "$ac_cv_c_bigendian" = unknown; then
7582 ac_cv_c_bigendian=no
7583 else
7584 # finding both strings is unlikely to happen, but who knows?
7585 ac_cv_c_bigendian=unknown
7586 fi
7587 fi
7588 fi
7589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7590 else
7591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7592 /* end confdefs.h. */
7593 $ac_includes_default
7594 int
7595 main ()
7596 {
7597
7598 /* Are we little or big endian? From Harbison&Steele. */
7599 union
7600 {
7601 long int l;
7602 char c[sizeof (long int)];
7603 } u;
7604 u.l = 1;
7605 return u.c[sizeof (long int) - 1] == 1;
7606
7607 ;
7608 return 0;
7609 }
7610 _ACEOF
7611 if ac_fn_c_try_run "$LINENO"; then :
7612 ac_cv_c_bigendian=no
7613 else
7614 ac_cv_c_bigendian=yes
7615 fi
7616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7617 conftest.$ac_objext conftest.beam conftest.$ac_ext
7618 fi
7619
7620 fi
7621 fi
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7623 $as_echo "$ac_cv_c_bigendian" >&6; }
7624 case $ac_cv_c_bigendian in #(
7625 yes)
7626 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
7627 ;; #(
7628 no)
7629 ;; #(
7630 universal)
7631
7632 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
7633
7634 ;; #(
7635 *)
7636 as_fn_error "unknown endianness
7637 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7638 esac
7639
7640
7641
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
7643 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
7644 if test "${am_cv_langinfo_codeset+set}" = set; then :
7645 $as_echo_n "(cached) " >&6
7646 else
7647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7648 /* end confdefs.h. */
7649 #include <langinfo.h>
7650 int
7651 main ()
7652 {
7653 char* cs = nl_langinfo(CODESET); return !cs;
7654 ;
7655 return 0;
7656 }
7657 _ACEOF
7658 if ac_fn_c_try_link "$LINENO"; then :
7659 am_cv_langinfo_codeset=yes
7660 else
7661 am_cv_langinfo_codeset=no
7662 fi
7663 rm -f core conftest.err conftest.$ac_objext \
7664 conftest$ac_exeext conftest.$ac_ext
7665
7666 fi
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
7668 $as_echo "$am_cv_langinfo_codeset" >&6; }
7669 if test $am_cv_langinfo_codeset = yes; then
7670
7671 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
7672
7673 fi
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
7685 $as_echo_n "checking for working fcntl.h... " >&6; }
7686 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
7687 $as_echo_n "(cached) " >&6
7688 else
7689 if test "$cross_compiling" = yes; then :
7690 gl_cv_header_working_fcntl_h=cross-compiling
7691 else
7692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693 /* end confdefs.h. */
7694 #include <sys/types.h>
7695 #include <sys/stat.h>
7696 #if HAVE_UNISTD_H
7697 # include <unistd.h>
7698 #else /* on Windows with MSVC */
7699 # include <io.h>
7700 # include <stdlib.h>
7701 # defined sleep(n) _sleep ((n) * 1000)
7702 #endif
7703 #include <fcntl.h>
7704 #ifndef O_NOATIME
7705 #define O_NOATIME 0
7706 #endif
7707 #ifndef O_NOFOLLOW
7708 #define O_NOFOLLOW 0
7709 #endif
7710 static int const constants[] =
7711 {
7712 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
7713 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
7714 };
7715
7716 int
7717 main ()
7718 {
7719
7720 int result = !constants;
7721 #if HAVE_SYMLINK
7722 {
7723 static char const sym[] = "conftest.sym";
7724 if (symlink ("/dev/null", sym) != 0)
7725 result |= 2;
7726 else
7727 {
7728 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
7729 if (fd >= 0)
7730 {
7731 close (fd);
7732 result |= 4;
7733 }
7734 }
7735 if (unlink (sym) != 0 || symlink (".", sym) != 0)
7736 result |= 2;
7737 else
7738 {
7739 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
7740 if (fd >= 0)
7741 {
7742 close (fd);
7743 result |= 4;
7744 }
7745 }
7746 unlink (sym);
7747 }
7748 #endif
7749 {
7750 static char const file[] = "confdefs.h";
7751 int fd = open (file, O_RDONLY | O_NOATIME);
7752 if (fd < 0)
7753 result |= 8;
7754 else
7755 {
7756 struct stat st0;
7757 if (fstat (fd, &st0) != 0)
7758 result |= 16;
7759 else
7760 {
7761 char c;
7762 sleep (1);
7763 if (read (fd, &c, 1) != 1)
7764 result |= 24;
7765 else
7766 {
7767 if (close (fd) != 0)
7768 result |= 32;
7769 else
7770 {
7771 struct stat st1;
7772 if (stat (file, &st1) != 0)
7773 result |= 40;
7774 else
7775 if (st0.st_atime != st1.st_atime)
7776 result |= 64;
7777 }
7778 }
7779 }
7780 }
7781 }
7782 return result;
7783 ;
7784 return 0;
7785 }
7786 _ACEOF
7787 if ac_fn_c_try_run "$LINENO"; then :
7788 gl_cv_header_working_fcntl_h=yes
7789 else
7790 case $? in #(
7791 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
7792 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
7793 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
7794 *) gl_cv_header_working_fcntl_h='no';;
7795 esac
7796 fi
7797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7798 conftest.$ac_objext conftest.beam conftest.$ac_ext
7799 fi
7800
7801 fi
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
7803 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
7804
7805 case $gl_cv_header_working_fcntl_h in #(
7806 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
7807 *) ac_val=1;;
7808 esac
7809
7810 cat >>confdefs.h <<_ACEOF
7811 #define HAVE_WORKING_O_NOATIME $ac_val
7812 _ACEOF
7813
7814
7815 case $gl_cv_header_working_fcntl_h in #(
7816 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
7817 *) ac_val=1;;
7818 esac
7819
7820 cat >>confdefs.h <<_ACEOF
7821 #define HAVE_WORKING_O_NOFOLLOW $ac_val
7822 _ACEOF
7823
7824
7825 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
7826 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
7827 ac_have_decl=1
7828 else
7829 ac_have_decl=0
7830 fi
7831
7832 cat >>confdefs.h <<_ACEOF
7833 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
7834 _ACEOF
7835
7836
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
7838 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
7839 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
7840 $as_echo_n "(cached) " >&6
7841 else
7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843 /* end confdefs.h. */
7844
7845 #include <features.h>
7846 #ifdef __GNU_LIBRARY__
7847 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7848 Lucky GNU user
7849 #endif
7850 #endif
7851 #ifdef __UCLIBC__
7852 Lucky user
7853 #endif
7854
7855 _ACEOF
7856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7857 $EGREP "Lucky" >/dev/null 2>&1; then :
7858 ac_cv_gnu_library_2_1=yes
7859 else
7860 ac_cv_gnu_library_2_1=no
7861 fi
7862 rm -f conftest*
7863
7864
7865
7866 fi
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
7868 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
7869
7870 GLIBC21="$ac_cv_gnu_library_2_1"
7871
7872
7873
7874
7875
7876 GNULIB_BTOWC=0;
7877 GNULIB_WCTOB=0;
7878 GNULIB_MBSINIT=0;
7879 GNULIB_MBRTOWC=0;
7880 GNULIB_MBRLEN=0;
7881 GNULIB_MBSRTOWCS=0;
7882 GNULIB_MBSNRTOWCS=0;
7883 GNULIB_WCRTOMB=0;
7884 GNULIB_WCSRTOMBS=0;
7885 GNULIB_WCSNRTOMBS=0;
7886 GNULIB_WCWIDTH=0;
7887 GNULIB_WMEMCHR=0;
7888 GNULIB_WMEMCMP=0;
7889 GNULIB_WMEMCPY=0;
7890 GNULIB_WMEMMOVE=0;
7891 GNULIB_WMEMSET=0;
7892 GNULIB_WCSLEN=0;
7893 GNULIB_WCSNLEN=0;
7894 GNULIB_WCSCPY=0;
7895 GNULIB_WCPCPY=0;
7896 GNULIB_WCSNCPY=0;
7897 GNULIB_WCPNCPY=0;
7898 GNULIB_WCSCAT=0;
7899 GNULIB_WCSNCAT=0;
7900 GNULIB_WCSCMP=0;
7901 GNULIB_WCSNCMP=0;
7902 GNULIB_WCSCASECMP=0;
7903 GNULIB_WCSNCASECMP=0;
7904 GNULIB_WCSCOLL=0;
7905 GNULIB_WCSXFRM=0;
7906 GNULIB_WCSDUP=0;
7907 GNULIB_WCSCHR=0;
7908 GNULIB_WCSRCHR=0;
7909 GNULIB_WCSCSPN=0;
7910 GNULIB_WCSSPN=0;
7911 GNULIB_WCSPBRK=0;
7912 GNULIB_WCSSTR=0;
7913 GNULIB_WCSTOK=0;
7914 GNULIB_WCSWIDTH=0;
7915 HAVE_BTOWC=1;
7916 HAVE_MBSINIT=1;
7917 HAVE_MBRTOWC=1;
7918 HAVE_MBRLEN=1;
7919 HAVE_MBSRTOWCS=1;
7920 HAVE_MBSNRTOWCS=1;
7921 HAVE_WCRTOMB=1;
7922 HAVE_WCSRTOMBS=1;
7923 HAVE_WCSNRTOMBS=1;
7924 HAVE_WMEMCHR=1;
7925 HAVE_WMEMCMP=1;
7926 HAVE_WMEMCPY=1;
7927 HAVE_WMEMMOVE=1;
7928 HAVE_WMEMSET=1;
7929 HAVE_WCSLEN=1;
7930 HAVE_WCSNLEN=1;
7931 HAVE_WCSCPY=1;
7932 HAVE_WCPCPY=1;
7933 HAVE_WCSNCPY=1;
7934 HAVE_WCPNCPY=1;
7935 HAVE_WCSCAT=1;
7936 HAVE_WCSNCAT=1;
7937 HAVE_WCSCMP=1;
7938 HAVE_WCSNCMP=1;
7939 HAVE_WCSCASECMP=1;
7940 HAVE_WCSNCASECMP=1;
7941 HAVE_WCSCOLL=1;
7942 HAVE_WCSXFRM=1;
7943 HAVE_WCSDUP=1;
7944 HAVE_WCSCHR=1;
7945 HAVE_WCSRCHR=1;
7946 HAVE_WCSCSPN=1;
7947 HAVE_WCSSPN=1;
7948 HAVE_WCSPBRK=1;
7949 HAVE_WCSSTR=1;
7950 HAVE_WCSTOK=1;
7951 HAVE_WCSWIDTH=1;
7952 HAVE_DECL_WCTOB=1;
7953 HAVE_DECL_WCWIDTH=1;
7954 REPLACE_MBSTATE_T=0;
7955 REPLACE_BTOWC=0;
7956 REPLACE_WCTOB=0;
7957 REPLACE_MBSINIT=0;
7958 REPLACE_MBRTOWC=0;
7959 REPLACE_MBRLEN=0;
7960 REPLACE_MBSRTOWCS=0;
7961 REPLACE_MBSNRTOWCS=0;
7962 REPLACE_WCRTOMB=0;
7963 REPLACE_WCSRTOMBS=0;
7964 REPLACE_WCSNRTOMBS=0;
7965 REPLACE_WCWIDTH=0;
7966 REPLACE_WCSWIDTH=0;
7967
7968
7969
7970
7971
7972
7973
7974
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
7976 $as_echo_n "checking for a traditional japanese locale... " >&6; }
7977 if test "${gt_cv_locale_ja+set}" = set; then :
7978 $as_echo_n "(cached) " >&6
7979 else
7980
7981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7982 /* end confdefs.h. */
7983
7984 #include <locale.h>
7985 #include <time.h>
7986 #if HAVE_LANGINFO_CODESET
7987 # include <langinfo.h>
7988 #endif
7989 #include <stdlib.h>
7990 #include <string.h>
7991 struct tm t;
7992 char buf[16];
7993 int main ()
7994 {
7995 const char *p;
7996 /* Check whether the given locale name is recognized by the system. */
7997 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
7998 /* On native Windows, setlocale(category, "") looks at the system settings,
7999 not at the environment variables. Also, when an encoding suffix such
8000 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8001 category of the locale to "C". */
8002 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8003 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8004 return 1;
8005 #else
8006 if (setlocale (LC_ALL, "") == NULL) return 1;
8007 #endif
8008 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8009 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8010 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8011 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8012 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8013 some unit tests fail.
8014 On MirBSD 10, when an unsupported locale is specified, setlocale()
8015 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8016 #if HAVE_LANGINFO_CODESET
8017 {
8018 const char *cs = nl_langinfo (CODESET);
8019 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8020 || strcmp (cs, "UTF-8") == 0)
8021 return 1;
8022 }
8023 #endif
8024 #ifdef __CYGWIN__
8025 /* On Cygwin, avoid locale names without encoding suffix, because the
8026 locale_charset() function relies on the encoding suffix. Note that
8027 LC_ALL is set on the command line. */
8028 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8029 #endif
8030 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
8031 on Cygwin 1.5.x. */
8032 if (MB_CUR_MAX == 1)
8033 return 1;
8034 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8035 This excludes the UTF-8 encoding (except on MirBSD). */
8036 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8037 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8038 for (p = buf; *p != '\0'; p++)
8039 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8040 return 1;
8041 return 0;
8042 }
8043
8044 _ACEOF
8045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8046 (eval $ac_link) 2>&5
8047 ac_status=$?
8048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8049 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8050 case "$host_os" in
8051 # Handle native Windows specially, because there setlocale() interprets
8052 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8053 # "fr" or "fra" as "French" or "French_France.1252",
8054 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8055 # "ja" as "Japanese" or "Japanese_Japan.932",
8056 # and similar.
8057 mingw*)
8058 # Note that on native Windows, the Japanese locale is
8059 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
8060 # cannot use it here.
8061 gt_cv_locale_ja=none
8062 ;;
8063 *)
8064 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8065 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8066 # configure script would override the LC_ALL setting. Likewise for
8067 # LC_CTYPE, which is also set at the beginning of the configure script.
8068 # Test for the AIX locale name.
8069 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8070 gt_cv_locale_ja=ja_JP
8071 else
8072 # Test for the locale name with explicit encoding suffix.
8073 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8074 gt_cv_locale_ja=ja_JP.EUC-JP
8075 else
8076 # Test for the HP-UX, OSF/1, NetBSD locale name.
8077 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8078 gt_cv_locale_ja=ja_JP.eucJP
8079 else
8080 # Test for the IRIX, FreeBSD locale name.
8081 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8082 gt_cv_locale_ja=ja_JP.EUC
8083 else
8084 # Test for the Solaris 7 locale name.
8085 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8086 gt_cv_locale_ja=ja
8087 else
8088 # Special test for NetBSD 1.6.
8089 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
8090 gt_cv_locale_ja=ja_JP.eucJP
8091 else
8092 # None found.
8093 gt_cv_locale_ja=none
8094 fi
8095 fi
8096 fi
8097 fi
8098 fi
8099 fi
8100 ;;
8101 esac
8102 fi
8103 rm -fr conftest*
8104
8105 fi
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
8107 $as_echo "$gt_cv_locale_ja" >&6; }
8108 LOCALE_JA=$gt_cv_locale_ja
8109
8110
8111
8112
8113
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
8115 $as_echo_n "checking for a transitional chinese locale... " >&6; }
8116 if test "${gt_cv_locale_zh_CN+set}" = set; then :
8117 $as_echo_n "(cached) " >&6
8118 else
8119
8120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8121 /* end confdefs.h. */
8122
8123 #include <locale.h>
8124 #include <stdlib.h>
8125 #include <time.h>
8126 #if HAVE_LANGINFO_CODESET
8127 # include <langinfo.h>
8128 #endif
8129 #include <stdlib.h>
8130 #include <string.h>
8131 struct tm t;
8132 char buf[16];
8133 int main ()
8134 {
8135 const char *p;
8136 /* Check whether the given locale name is recognized by the system. */
8137 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8138 /* On native Windows, setlocale(category, "") looks at the system settings,
8139 not at the environment variables. Also, when an encoding suffix such
8140 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8141 category of the locale to "C". */
8142 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8143 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8144 return 1;
8145 #else
8146 if (setlocale (LC_ALL, "") == NULL) return 1;
8147 #endif
8148 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8149 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8150 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8151 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8152 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8153 some unit tests fail.
8154 On MirBSD 10, when an unsupported locale is specified, setlocale()
8155 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8156 #if HAVE_LANGINFO_CODESET
8157 {
8158 const char *cs = nl_langinfo (CODESET);
8159 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8160 || strcmp (cs, "UTF-8") == 0)
8161 return 1;
8162 }
8163 #endif
8164 #ifdef __CYGWIN__
8165 /* On Cygwin, avoid locale names without encoding suffix, because the
8166 locale_charset() function relies on the encoding suffix. Note that
8167 LC_ALL is set on the command line. */
8168 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8169 #endif
8170 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
8171 This excludes the UTF-8 encoding (except on MirBSD). */
8172 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8173 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
8174 for (p = buf; *p != '\0'; p++)
8175 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
8176 return 1;
8177 /* Check whether a typical GB18030 multibyte sequence is recognized as a
8178 single wide character. This excludes the GB2312 and GBK encodings. */
8179 if (mblen ("\203\062\332\066", 5) != 4)
8180 return 1;
8181 return 0;
8182 }
8183
8184 _ACEOF
8185 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8186 (eval $ac_link) 2>&5
8187 ac_status=$?
8188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8189 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8190 case "$host_os" in
8191 # Handle native Windows specially, because there setlocale() interprets
8192 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8193 # "fr" or "fra" as "French" or "French_France.1252",
8194 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8195 # "ja" as "Japanese" or "Japanese_Japan.932",
8196 # and similar.
8197 mingw*)
8198 # Test for the hypothetical native Windows locale name.
8199 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8200 gt_cv_locale_zh_CN=Chinese_China.54936
8201 else
8202 # None found.
8203 gt_cv_locale_zh_CN=none
8204 fi
8205 ;;
8206 solaris2.8)
8207 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
8208 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
8209 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
8210 gt_cv_locale_zh_CN=none
8211 ;;
8212 *)
8213 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8214 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8215 # configure script would override the LC_ALL setting. Likewise for
8216 # LC_CTYPE, which is also set at the beginning of the configure script.
8217 # Test for the locale name without encoding suffix.
8218 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8219 gt_cv_locale_zh_CN=zh_CN
8220 else
8221 # Test for the locale name with explicit encoding suffix.
8222 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8223 gt_cv_locale_zh_CN=zh_CN.GB18030
8224 else
8225 # None found.
8226 gt_cv_locale_zh_CN=none
8227 fi
8228 fi
8229 ;;
8230 esac
8231 else
8232 # If there was a link error, due to mblen(), the system is so old that
8233 # it certainly doesn't have a chinese locale.
8234 gt_cv_locale_zh_CN=none
8235 fi
8236 rm -fr conftest*
8237
8238 fi
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
8240 $as_echo "$gt_cv_locale_zh_CN" >&6; }
8241 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
8242
8243
8244
8245
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
8247 $as_echo_n "checking for a french Unicode locale... " >&6; }
8248 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
8249 $as_echo_n "(cached) " >&6
8250 else
8251
8252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8253 /* end confdefs.h. */
8254
8255 #include <locale.h>
8256 #include <time.h>
8257 #if HAVE_LANGINFO_CODESET
8258 # include <langinfo.h>
8259 #endif
8260 #include <stdlib.h>
8261 #include <string.h>
8262 struct tm t;
8263 char buf[16];
8264 int main () {
8265 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
8266 imitates locale dependent behaviour by looking at the environment
8267 variables, and all locales use the UTF-8 encoding. */
8268 #if !(defined __BEOS__ || defined __HAIKU__)
8269 /* Check whether the given locale name is recognized by the system. */
8270 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8271 /* On native Windows, setlocale(category, "") looks at the system settings,
8272 not at the environment variables. Also, when an encoding suffix such
8273 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8274 category of the locale to "C". */
8275 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8276 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8277 return 1;
8278 # else
8279 if (setlocale (LC_ALL, "") == NULL) return 1;
8280 # endif
8281 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8282 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8283 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8284 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8285 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8286 some unit tests fail. */
8287 # if HAVE_LANGINFO_CODESET
8288 {
8289 const char *cs = nl_langinfo (CODESET);
8290 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
8291 return 1;
8292 }
8293 # endif
8294 # ifdef __CYGWIN__
8295 /* On Cygwin, avoid locale names without encoding suffix, because the
8296 locale_charset() function relies on the encoding suffix. Note that
8297 LC_ALL is set on the command line. */
8298 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8299 # endif
8300 /* Check whether in the abbreviation of the second month, the second
8301 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
8302 two bytes long, with UTF-8 encoding. */
8303 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8304 if (strftime (buf, sizeof (buf), "%b", &t) < 4
8305 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
8306 return 1;
8307 #endif
8308 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
8309 /* Check whether the decimal separator is a comma.
8310 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
8311 are nl_langinfo(RADIXCHAR) are both ".". */
8312 if (localeconv () ->decimal_point[0] != ',') return 1;
8313 #endif
8314 return 0;
8315 }
8316
8317 _ACEOF
8318 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8319 (eval $ac_link) 2>&5
8320 ac_status=$?
8321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8322 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8323 case "$host_os" in
8324 # Handle native Windows specially, because there setlocale() interprets
8325 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8326 # "fr" or "fra" as "French" or "French_France.1252",
8327 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8328 # "ja" as "Japanese" or "Japanese_Japan.932",
8329 # and similar.
8330 mingw*)
8331 # Test for the hypothetical native Windows locale name.
8332 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8333 gt_cv_locale_fr_utf8=French_France.65001
8334 else
8335 # None found.
8336 gt_cv_locale_fr_utf8=none
8337 fi
8338 ;;
8339 *)
8340 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8341 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8342 # configure script would override the LC_ALL setting. Likewise for
8343 # LC_CTYPE, which is also set at the beginning of the configure script.
8344 # Test for the usual locale name.
8345 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8346 gt_cv_locale_fr_utf8=fr_FR
8347 else
8348 # Test for the locale name with explicit encoding suffix.
8349 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8350 gt_cv_locale_fr_utf8=fr_FR.UTF-8
8351 else
8352 # Test for the Solaris 7 locale name.
8353 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8354 gt_cv_locale_fr_utf8=fr.UTF-8
8355 else
8356 # None found.
8357 gt_cv_locale_fr_utf8=none
8358 fi
8359 fi
8360 fi
8361 ;;
8362 esac
8363 fi
8364 rm -fr conftest*
8365
8366 fi
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
8368 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
8369 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
8370
8371
8372
8373
8374
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
8376 $as_echo_n "checking for a traditional french locale... " >&6; }
8377 if test "${gt_cv_locale_fr+set}" = set; then :
8378 $as_echo_n "(cached) " >&6
8379 else
8380
8381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382 /* end confdefs.h. */
8383
8384 #include <locale.h>
8385 #include <time.h>
8386 #if HAVE_LANGINFO_CODESET
8387 # include <langinfo.h>
8388 #endif
8389 #include <stdlib.h>
8390 #include <string.h>
8391 struct tm t;
8392 char buf[16];
8393 int main () {
8394 /* Check whether the given locale name is recognized by the system. */
8395 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
8396 /* On native Windows, setlocale(category, "") looks at the system settings,
8397 not at the environment variables. Also, when an encoding suffix such
8398 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
8399 category of the locale to "C". */
8400 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
8401 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
8402 return 1;
8403 #else
8404 if (setlocale (LC_ALL, "") == NULL) return 1;
8405 #endif
8406 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
8407 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
8408 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
8409 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
8410 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
8411 some unit tests fail.
8412 On MirBSD 10, when an unsupported locale is specified, setlocale()
8413 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
8414 #if HAVE_LANGINFO_CODESET
8415 {
8416 const char *cs = nl_langinfo (CODESET);
8417 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
8418 || strcmp (cs, "UTF-8") == 0)
8419 return 1;
8420 }
8421 #endif
8422 #ifdef __CYGWIN__
8423 /* On Cygwin, avoid locale names without encoding suffix, because the
8424 locale_charset() function relies on the encoding suffix. Note that
8425 LC_ALL is set on the command line. */
8426 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
8427 #endif
8428 /* Check whether in the abbreviation of the second month, the second
8429 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
8430 one byte long. This excludes the UTF-8 encoding. */
8431 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
8432 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
8433 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
8434 /* Check whether the decimal separator is a comma.
8435 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
8436 are nl_langinfo(RADIXCHAR) are both ".". */
8437 if (localeconv () ->decimal_point[0] != ',') return 1;
8438 #endif
8439 return 0;
8440 }
8441
8442 _ACEOF
8443 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8444 (eval $ac_link) 2>&5
8445 ac_status=$?
8446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8447 test $ac_status = 0; } && test -s conftest$ac_exeext; then
8448 case "$host_os" in
8449 # Handle native Windows specially, because there setlocale() interprets
8450 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
8451 # "fr" or "fra" as "French" or "French_France.1252",
8452 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
8453 # "ja" as "Japanese" or "Japanese_Japan.932",
8454 # and similar.
8455 mingw*)
8456 # Test for the native Windows locale name.
8457 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8458 gt_cv_locale_fr=French_France.1252
8459 else
8460 # None found.
8461 gt_cv_locale_fr=none
8462 fi
8463 ;;
8464 *)
8465 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
8466 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
8467 # configure script would override the LC_ALL setting. Likewise for
8468 # LC_CTYPE, which is also set at the beginning of the configure script.
8469 # Test for the usual locale name.
8470 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8471 gt_cv_locale_fr=fr_FR
8472 else
8473 # Test for the locale name with explicit encoding suffix.
8474 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8475 gt_cv_locale_fr=fr_FR.ISO-8859-1
8476 else
8477 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
8478 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8479 gt_cv_locale_fr=fr_FR.ISO8859-1
8480 else
8481 # Test for the HP-UX locale name.
8482 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8483 gt_cv_locale_fr=fr_FR.iso88591
8484 else
8485 # Test for the Solaris 7 locale name.
8486 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
8487 gt_cv_locale_fr=fr
8488 else
8489 # None found.
8490 gt_cv_locale_fr=none
8491 fi
8492 fi
8493 fi
8494 fi
8495 fi
8496 ;;
8497 esac
8498 fi
8499 rm -fr conftest*
8500
8501 fi
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
8503 $as_echo "$gt_cv_locale_fr" >&6; }
8504 LOCALE_FR=$gt_cv_locale_fr
8505
8506
8507
8508
8509
8510
8511
8512 GNULIB_FFSL=0;
8513 GNULIB_FFSLL=0;
8514 GNULIB_MEMCHR=0;
8515 GNULIB_MEMMEM=0;
8516 GNULIB_MEMPCPY=0;
8517 GNULIB_MEMRCHR=0;
8518 GNULIB_RAWMEMCHR=0;
8519 GNULIB_STPCPY=0;
8520 GNULIB_STPNCPY=0;
8521 GNULIB_STRCHRNUL=0;
8522 GNULIB_STRDUP=0;
8523 GNULIB_STRNCAT=0;
8524 GNULIB_STRNDUP=0;
8525 GNULIB_STRNLEN=0;
8526 GNULIB_STRPBRK=0;
8527 GNULIB_STRSEP=0;
8528 GNULIB_STRSTR=0;
8529 GNULIB_STRCASESTR=0;
8530 GNULIB_STRTOK_R=0;
8531 GNULIB_MBSLEN=0;
8532 GNULIB_MBSNLEN=0;
8533 GNULIB_MBSCHR=0;
8534 GNULIB_MBSRCHR=0;
8535 GNULIB_MBSSTR=0;
8536 GNULIB_MBSCASECMP=0;
8537 GNULIB_MBSNCASECMP=0;
8538 GNULIB_MBSPCASECMP=0;
8539 GNULIB_MBSCASESTR=0;
8540 GNULIB_MBSCSPN=0;
8541 GNULIB_MBSPBRK=0;
8542 GNULIB_MBSSPN=0;
8543 GNULIB_MBSSEP=0;
8544 GNULIB_MBSTOK_R=0;
8545 GNULIB_STRERROR=0;
8546 GNULIB_STRERROR_R=0;
8547 GNULIB_STRSIGNAL=0;
8548 GNULIB_STRVERSCMP=0;
8549 HAVE_MBSLEN=0;
8550 HAVE_FFSL=1;
8551 HAVE_FFSLL=1;
8552 HAVE_MEMCHR=1;
8553 HAVE_DECL_MEMMEM=1;
8554 HAVE_MEMPCPY=1;
8555 HAVE_DECL_MEMRCHR=1;
8556 HAVE_RAWMEMCHR=1;
8557 HAVE_STPCPY=1;
8558 HAVE_STPNCPY=1;
8559 HAVE_STRCHRNUL=1;
8560 HAVE_DECL_STRDUP=1;
8561 HAVE_DECL_STRNDUP=1;
8562 HAVE_DECL_STRNLEN=1;
8563 HAVE_STRPBRK=1;
8564 HAVE_STRSEP=1;
8565 HAVE_STRCASESTR=1;
8566 HAVE_DECL_STRTOK_R=1;
8567 HAVE_DECL_STRERROR_R=1;
8568 HAVE_DECL_STRSIGNAL=1;
8569 HAVE_STRVERSCMP=1;
8570 REPLACE_MEMCHR=0;
8571 REPLACE_MEMMEM=0;
8572 REPLACE_STPNCPY=0;
8573 REPLACE_STRDUP=0;
8574 REPLACE_STRSTR=0;
8575 REPLACE_STRCASESTR=0;
8576 REPLACE_STRCHRNUL=0;
8577 REPLACE_STRERROR=0;
8578 REPLACE_STRERROR_R=0;
8579 REPLACE_STRNCAT=0;
8580 REPLACE_STRNDUP=0;
8581 REPLACE_STRNLEN=0;
8582 REPLACE_STRSIGNAL=0;
8583 REPLACE_STRTOK_R=0;
8584 UNDEFINE_STRTOK_R=0;
8585
8586
8587
8588
8589
8590 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
8591 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
8592 # irrelevant for anonymous mappings.
8593 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
8594 if test "x$ac_cv_func_mmap" = x""yes; then :
8595 gl_have_mmap=yes
8596 else
8597 gl_have_mmap=no
8598 fi
8599
8600
8601 # Try to allow MAP_ANONYMOUS.
8602 gl_have_mmap_anonymous=no
8603 if test $gl_have_mmap = yes; then
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
8605 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
8606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8607 /* end confdefs.h. */
8608
8609 #include <sys/mman.h>
8610 #ifdef MAP_ANONYMOUS
8611 I cannot identify this map
8612 #endif
8613
8614 _ACEOF
8615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8616 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
8617 gl_have_mmap_anonymous=yes
8618 fi
8619 rm -f conftest*
8620
8621 if test $gl_have_mmap_anonymous != yes; then
8622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8623 /* end confdefs.h. */
8624
8625 #include <sys/mman.h>
8626 #ifdef MAP_ANON
8627 I cannot identify this map
8628 #endif
8629
8630 _ACEOF
8631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8632 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
8633
8634 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
8635
8636 gl_have_mmap_anonymous=yes
8637 fi
8638 rm -f conftest*
8639
8640 fi
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
8642 $as_echo "$gl_have_mmap_anonymous" >&6; }
8643 if test $gl_have_mmap_anonymous = yes; then
8644
8645 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
8646
8647 fi
8648 fi
8649
8650
8651
8652
8653
8654
8655 if test $HAVE_MEMCHR = 1; then
8656 # Detect platform-specific bugs in some versions of glibc:
8657 # memchr should not dereference anything with length 0
8658 # http://bugzilla.redhat.com/499689
8659 # memchr should not dereference overestimated length after a match
8660 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
8661 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
8662 # Assume that memchr works on platforms that lack mprotect.
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
8664 $as_echo_n "checking whether memchr works... " >&6; }
8665 if test "${gl_cv_func_memchr_works+set}" = set; then :
8666 $as_echo_n "(cached) " >&6
8667 else
8668 if test "$cross_compiling" = yes; then :
8669 gl_cv_func_memchr_works="guessing no"
8670 else
8671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h. */
8673
8674 #include <string.h>
8675 #if HAVE_SYS_MMAN_H
8676 # include <fcntl.h>
8677 # include <unistd.h>
8678 # include <sys/types.h>
8679 # include <sys/mman.h>
8680 # ifndef MAP_FILE
8681 # define MAP_FILE 0
8682 # endif
8683 #endif
8684
8685 int
8686 main ()
8687 {
8688
8689 int result = 0;
8690 char *fence = NULL;
8691 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
8692 # if HAVE_MAP_ANONYMOUS
8693 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
8694 const int fd = -1;
8695 # else /* !HAVE_MAP_ANONYMOUS */
8696 const int flags = MAP_FILE | MAP_PRIVATE;
8697 int fd = open ("/dev/zero", O_RDONLY, 0666);
8698 if (fd >= 0)
8699 # endif
8700 {
8701 int pagesize = getpagesize ();
8702 char *two_pages =
8703 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
8704 flags, fd, 0);
8705 if (two_pages != (char *)(-1)
8706 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
8707 fence = two_pages + pagesize;
8708 }
8709 #endif
8710 if (fence)
8711 {
8712 if (memchr (fence, 0, 0))
8713 result |= 1;
8714 strcpy (fence - 9, "12345678");
8715 if (memchr (fence - 9, 0, 79) != fence - 1)
8716 result |= 2;
8717 if (memchr (fence - 1, 0, 3) != fence - 1)
8718 result |= 4;
8719 }
8720 return result;
8721
8722 ;
8723 return 0;
8724 }
8725 _ACEOF
8726 if ac_fn_c_try_run "$LINENO"; then :
8727 gl_cv_func_memchr_works=yes
8728 else
8729 gl_cv_func_memchr_works=no
8730 fi
8731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8732 conftest.$ac_objext conftest.beam conftest.$ac_ext
8733 fi
8734
8735 fi
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
8737 $as_echo "$gl_cv_func_memchr_works" >&6; }
8738 if test "$gl_cv_func_memchr_works" != yes; then
8739 REPLACE_MEMCHR=1
8740 fi
8741 fi
8742
8743 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
8744 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
8745 ac_have_decl=1
8746 else
8747 ac_have_decl=0
8748 fi
8749
8750 cat >>confdefs.h <<_ACEOF
8751 #define HAVE_DECL_MEMMEM $ac_have_decl
8752 _ACEOF
8753
8754
8755
8756
8757
8758 for ac_func in memmem
8759 do :
8760 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
8761 if test "x$ac_cv_func_memmem" = x""yes; then :
8762 cat >>confdefs.h <<_ACEOF
8763 #define HAVE_MEMMEM 1
8764 _ACEOF
8765
8766 fi
8767 done
8768
8769 if test $ac_cv_func_memmem = yes; then
8770 HAVE_MEMMEM=1
8771 else
8772 HAVE_MEMMEM=0
8773 fi
8774
8775 if test $ac_cv_have_decl_memmem = no; then
8776 HAVE_DECL_MEMMEM=0
8777 else
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
8779 $as_echo_n "checking whether memmem works... " >&6; }
8780 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
8781 $as_echo_n "(cached) " >&6
8782 else
8783 if test "$cross_compiling" = yes; then :
8784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8785 /* end confdefs.h. */
8786
8787 #ifdef __GNU_LIBRARY__
8788 #include <features.h>
8789 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
8790 || __GLIBC_MINOR__ > 12)) \
8791 || (__GLIBC__ > 2)) \
8792 || defined __UCLIBC__
8793 Lucky user
8794 #endif
8795 #elif defined __CYGWIN__
8796 #include <cygwin/version.h>
8797 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
8798 Lucky user
8799 #endif
8800 #else
8801 Lucky user
8802 #endif
8803
8804 _ACEOF
8805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8806 $EGREP "Lucky user" >/dev/null 2>&1; then :
8807 gl_cv_func_memmem_works_always="guessing yes"
8808 else
8809 gl_cv_func_memmem_works_always="guessing no"
8810 fi
8811 rm -f conftest*
8812
8813
8814 else
8815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8816 /* end confdefs.h. */
8817
8818 #include <string.h> /* for memmem */
8819 #define P "_EF_BF_BD"
8820 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
8821 #define NEEDLE P P P P P
8822
8823 int
8824 main ()
8825 {
8826
8827 int result = 0;
8828 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
8829 result |= 1;
8830 /* Check for empty needle behavior. */
8831 {
8832 const char *haystack = "AAA";
8833 if (memmem (haystack, 3, NULL, 0) != haystack)
8834 result |= 2;
8835 }
8836 return result;
8837
8838 ;
8839 return 0;
8840 }
8841 _ACEOF
8842 if ac_fn_c_try_run "$LINENO"; then :
8843 gl_cv_func_memmem_works_always=yes
8844 else
8845 gl_cv_func_memmem_works_always=no
8846 fi
8847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8848 conftest.$ac_objext conftest.beam conftest.$ac_ext
8849 fi
8850
8851
8852 fi
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
8854 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
8855 case "$gl_cv_func_memmem_works_always" in
8856 *yes) ;;
8857 *)
8858 REPLACE_MEMMEM=1
8859 ;;
8860 esac
8861 fi
8862 :
8863
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
8865 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
8866 if test "${ac_cv_header_stdbool_h+set}" = set; then :
8867 $as_echo_n "(cached) " >&6
8868 else
8869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8870 /* end confdefs.h. */
8871
8872 #include <stdbool.h>
8873 #ifndef bool
8874 "error: bool is not defined"
8875 #endif
8876 #ifndef false
8877 "error: false is not defined"
8878 #endif
8879 #if false
8880 "error: false is not 0"
8881 #endif
8882 #ifndef true
8883 "error: true is not defined"
8884 #endif
8885 #if true != 1
8886 "error: true is not 1"
8887 #endif
8888 #ifndef __bool_true_false_are_defined
8889 "error: __bool_true_false_are_defined is not defined"
8890 #endif
8891
8892 struct s { _Bool s: 1; _Bool t; } s;
8893
8894 char a[true == 1 ? 1 : -1];
8895 char b[false == 0 ? 1 : -1];
8896 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
8897 char d[(bool) 0.5 == true ? 1 : -1];
8898 /* See body of main program for 'e'. */
8899 char f[(_Bool) 0.0 == false ? 1 : -1];
8900 char g[true];
8901 char h[sizeof (_Bool)];
8902 char i[sizeof s.t];
8903 enum { j = false, k = true, l = false * true, m = true * 256 };
8904 /* The following fails for
8905 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
8906 _Bool n[m];
8907 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
8908 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
8909 /* Catch a bug in an HP-UX C compiler. See
8910 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
8911 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
8912 */
8913 _Bool q = true;
8914 _Bool *pq = &q;
8915
8916 int
8917 main ()
8918 {
8919
8920 bool e = &s;
8921 *pq |= q;
8922 *pq |= ! q;
8923 /* Refer to every declared value, to avoid compiler optimizations. */
8924 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
8925 + !m + !n + !o + !p + !q + !pq);
8926
8927 ;
8928 return 0;
8929 }
8930 _ACEOF
8931 if ac_fn_c_try_compile "$LINENO"; then :
8932 ac_cv_header_stdbool_h=yes
8933 else
8934 ac_cv_header_stdbool_h=no
8935 fi
8936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8937 fi
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
8939 $as_echo "$ac_cv_header_stdbool_h" >&6; }
8940 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
8941 if test "x$ac_cv_type__Bool" = x""yes; then :
8942
8943 cat >>confdefs.h <<_ACEOF
8944 #define HAVE__BOOL 1
8945 _ACEOF
8946
8947
8948 fi
8949
8950
8951
8952 REPLACE_NULL=0;
8953 HAVE_WCHAR_T=1;
8954
8955
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
8957 $as_echo_n "checking for wchar_t... " >&6; }
8958 if test "${gt_cv_c_wchar_t+set}" = set; then :
8959 $as_echo_n "(cached) " >&6
8960 else
8961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8962 /* end confdefs.h. */
8963 #include <stddef.h>
8964 wchar_t foo = (wchar_t)'\0';
8965 int
8966 main ()
8967 {
8968
8969 ;
8970 return 0;
8971 }
8972 _ACEOF
8973 if ac_fn_c_try_compile "$LINENO"; then :
8974 gt_cv_c_wchar_t=yes
8975 else
8976 gt_cv_c_wchar_t=no
8977 fi
8978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8979 fi
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
8981 $as_echo "$gt_cv_c_wchar_t" >&6; }
8982 if test $gt_cv_c_wchar_t = yes; then
8983
8984 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
8985
8986 fi
8987
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
8989 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
8990 if test "${ac_cv_c_restrict+set}" = set; then :
8991 $as_echo_n "(cached) " >&6
8992 else
8993 ac_cv_c_restrict=no
8994 # The order here caters to the fact that C++ does not require restrict.
8995 for ac_kw in __restrict __restrict__ _Restrict restrict; do
8996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8997 /* end confdefs.h. */
8998 typedef int * int_ptr;
8999 int foo (int_ptr $ac_kw ip) {
9000 return ip[0];
9001 }
9002 int
9003 main ()
9004 {
9005 int s[1];
9006 int * $ac_kw t = s;
9007 t[0] = 0;
9008 return foo(t)
9009 ;
9010 return 0;
9011 }
9012 _ACEOF
9013 if ac_fn_c_try_compile "$LINENO"; then :
9014 ac_cv_c_restrict=$ac_kw
9015 fi
9016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9017 test "$ac_cv_c_restrict" != no && break
9018 done
9019
9020 fi
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
9022 $as_echo "$ac_cv_c_restrict" >&6; }
9023
9024 case $ac_cv_c_restrict in
9025 restrict) ;;
9026 no) $as_echo "#define restrict /**/" >>confdefs.h
9027 ;;
9028 *) cat >>confdefs.h <<_ACEOF
9029 #define restrict $ac_cv_c_restrict
9030 _ACEOF
9031 ;;
9032 esac
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045 if test $gl_cv_have_include_next = yes; then
9046 gl_cv_next_string_h='<'string.h'>'
9047 else
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
9049 $as_echo_n "checking absolute name of <string.h>... " >&6; }
9050 if test "${gl_cv_next_string_h+set}" = set; then :
9051 $as_echo_n "(cached) " >&6
9052 else
9053
9054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9055 /* end confdefs.h. */
9056 #include <string.h>
9057
9058 _ACEOF
9059 case "$host_os" in
9060 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9061 *) gl_absname_cpp="$ac_cpp" ;;
9062 esac
9063
9064 case "$host_os" in
9065 mingw*)
9066 gl_dirsep_regex='[/\\]'
9067 ;;
9068 *)
9069 gl_dirsep_regex='\/'
9070 ;;
9071 esac
9072 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9073
9074 gl_header_literal_regex=`echo 'string.h' \
9075 | sed -e "$gl_make_literal_regex_sed"`
9076 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9077 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9078 s|^/[^/]|//&|
9079 p
9080 q
9081 }'
9082 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9083 sed -n "$gl_absolute_header_sed"`'"'
9084
9085
9086 fi
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
9088 $as_echo "$gl_cv_next_string_h" >&6; }
9089 fi
9090 NEXT_STRING_H=$gl_cv_next_string_h
9091
9092 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9093 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9094 gl_next_as_first_directive='<'string.h'>'
9095 else
9096 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9097 gl_next_as_first_directive=$gl_cv_next_string_h
9098 fi
9099 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
9100
9101
9102
9103
9104
9105
9106 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
9107 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
9109 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
9110 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
9111 $as_echo_n "(cached) " >&6
9112 else
9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114 /* end confdefs.h. */
9115 #include <string.h>
9116
9117 int
9118 main ()
9119 {
9120 #undef $gl_func
9121 (void) $gl_func;
9122 ;
9123 return 0;
9124 }
9125 _ACEOF
9126 if ac_fn_c_try_compile "$LINENO"; then :
9127 eval "$as_gl_Symbol=yes"
9128 else
9129 eval "$as_gl_Symbol=no"
9130 fi
9131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9132 fi
9133 eval ac_res=\$$as_gl_Symbol
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9135 $as_echo "$ac_res" >&6; }
9136 eval as_val=\$$as_gl_Symbol
9137 if test "x$as_val" = x""yes; then :
9138 cat >>confdefs.h <<_ACEOF
9139 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
9140 _ACEOF
9141
9142 eval ac_cv_have_decl_$gl_func=yes
9143 fi
9144 done
9145
9146
9147
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
9149 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
9150 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
9151 $as_echo_n "(cached) " >&6
9152 else
9153 gl_cv_header_wchar_h_correct_inline=yes
9154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9155 /* end confdefs.h. */
9156
9157 #define wcstod renamed_wcstod
9158 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9159 <wchar.h>.
9160 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9161 included before <wchar.h>. */
9162 #include <stddef.h>
9163 #include <stdio.h>
9164 #include <time.h>
9165 #include <wchar.h>
9166 extern int zero (void);
9167 int main () { return zero(); }
9168
9169 _ACEOF
9170 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9171 (eval $ac_compile) 2>&5
9172 ac_status=$?
9173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9174 test $ac_status = 0; }; then
9175 mv conftest.$ac_objext conftest1.$ac_objext
9176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9177 /* end confdefs.h. */
9178
9179 #define wcstod renamed_wcstod
9180 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9181 <wchar.h>.
9182 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9183 included before <wchar.h>. */
9184 #include <stddef.h>
9185 #include <stdio.h>
9186 #include <time.h>
9187 #include <wchar.h>
9188 int zero (void) { return 0; }
9189
9190 _ACEOF
9191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9192 (eval $ac_compile) 2>&5
9193 ac_status=$?
9194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9195 test $ac_status = 0; }; then
9196 mv conftest.$ac_objext conftest2.$ac_objext
9197 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
9198 :
9199 else
9200 gl_cv_header_wchar_h_correct_inline=no
9201 fi
9202 fi
9203 fi
9204 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
9205
9206 fi
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
9208 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
9209 if test $gl_cv_header_wchar_h_correct_inline = no; then
9210 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
9211 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
9212 C99 mode. You have four options:
9213 - Add the flag -fgnu89-inline to CC and reconfigure, or
9214 - Fix your include files, using parts of
9215 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
9216 - Use a gcc version older than 4.3, or
9217 - Don't use the flags -std=c99 or -std=gnu99.
9218 Configuration aborted." "$LINENO" 5
9219 fi
9220
9221
9222
9223
9224
9225 if test $ac_cv_header_features_h = yes; then
9226 HAVE_FEATURES_H=1
9227 else
9228 HAVE_FEATURES_H=0
9229 fi
9230
9231
9232
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9234 $as_echo_n "checking for wint_t... " >&6; }
9235 if test "${gt_cv_c_wint_t+set}" = set; then :
9236 $as_echo_n "(cached) " >&6
9237 else
9238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9239 /* end confdefs.h. */
9240
9241 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9242 <wchar.h>.
9243 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9244 before <wchar.h>. */
9245 #include <stddef.h>
9246 #include <stdio.h>
9247 #include <time.h>
9248 #include <wchar.h>
9249 wint_t foo = (wchar_t)'\0';
9250 int
9251 main ()
9252 {
9253
9254 ;
9255 return 0;
9256 }
9257 _ACEOF
9258 if ac_fn_c_try_compile "$LINENO"; then :
9259 gt_cv_c_wint_t=yes
9260 else
9261 gt_cv_c_wint_t=no
9262 fi
9263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9264 fi
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9266 $as_echo "$gt_cv_c_wint_t" >&6; }
9267 if test $gt_cv_c_wint_t = yes; then
9268
9269 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9270
9271 fi
9272
9273
9274 GNULIB_ISWBLANK=0;
9275 GNULIB_WCTYPE=0;
9276 GNULIB_ISWCTYPE=0;
9277 GNULIB_WCTRANS=0;
9278 GNULIB_TOWCTRANS=0;
9279 HAVE_ISWBLANK=1;
9280 HAVE_WCTYPE_T=1;
9281 HAVE_WCTRANS_T=1;
9282 REPLACE_ISWBLANK=0;
9283
9284
9285
9286
9287 if false; then
9288 GL_COND_LIBTOOL_TRUE=
9289 GL_COND_LIBTOOL_FALSE='#'
9290 else
9291 GL_COND_LIBTOOL_TRUE='#'
9292 GL_COND_LIBTOOL_FALSE=
9293 fi
9294
9295 gl_cond_libtool=false
9296 gl_libdeps=
9297 gl_ltlibdeps=
9298 gl_m4_base='import/m4'
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308 gl_source_base='import'
9309
9310
9311 if test $ac_cv_func_alloca_works = no; then
9312 :
9313 fi
9314
9315 # Define an additional variable used in the Makefile substitution.
9316 if test $ac_cv_working_alloca_h = yes; then
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
9318 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
9319 if test "${gl_cv_rpl_alloca+set}" = set; then :
9320 $as_echo_n "(cached) " >&6
9321 else
9322
9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324 /* end confdefs.h. */
9325
9326 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
9327 Need own alloca
9328 #endif
9329
9330 _ACEOF
9331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9332 $EGREP "Need own alloca" >/dev/null 2>&1; then :
9333 gl_cv_rpl_alloca=yes
9334 else
9335 gl_cv_rpl_alloca=no
9336 fi
9337 rm -f conftest*
9338
9339
9340 fi
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
9342 $as_echo "$gl_cv_rpl_alloca" >&6; }
9343 if test $gl_cv_rpl_alloca = yes; then
9344
9345 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9346
9347 ALLOCA_H=alloca.h
9348 else
9349 ALLOCA_H=
9350 fi
9351 else
9352 ALLOCA_H=alloca.h
9353 fi
9354
9355 if test -n "$ALLOCA_H"; then
9356 GL_GENERATE_ALLOCA_H_TRUE=
9357 GL_GENERATE_ALLOCA_H_FALSE='#'
9358 else
9359 GL_GENERATE_ALLOCA_H_TRUE='#'
9360 GL_GENERATE_ALLOCA_H_FALSE=
9361 fi
9362
9363
9364
9365 if test "x$datarootdir" = x; then
9366 datarootdir='${datadir}'
9367
9368 fi
9369 if test "x$docdir" = x; then
9370 docdir='${datarootdir}/doc/${PACKAGE}'
9371
9372 fi
9373 if test "x$htmldir" = x; then
9374 htmldir='${docdir}'
9375
9376 fi
9377 if test "x$dvidir" = x; then
9378 dvidir='${docdir}'
9379
9380 fi
9381 if test "x$pdfdir" = x; then
9382 pdfdir='${docdir}'
9383
9384 fi
9385 if test "x$psdir" = x; then
9386 psdir='${docdir}'
9387
9388 fi
9389 if test "x$lispdir" = x; then
9390 lispdir='${datarootdir}/emacs/site-lisp'
9391
9392 fi
9393 if test "x$localedir" = x; then
9394 localedir='${datarootdir}/locale'
9395
9396 fi
9397
9398 pkglibexecdir='${libexecdir}/${PACKAGE}'
9399
9400
9401
9402
9403
9404
9405 FLOAT_H=
9406 REPLACE_FLOAT_LDBL=0
9407 case "$host_os" in
9408 aix* | beos* | openbsd* | mirbsd* | irix*)
9409 FLOAT_H=float.h
9410 ;;
9411 freebsd*)
9412 case "$host_cpu" in
9413 i[34567]86 )
9414 FLOAT_H=float.h
9415 ;;
9416 x86_64 )
9417 # On x86_64 systems, the C compiler may still be generating
9418 # 32-bit code.
9419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9420 /* end confdefs.h. */
9421 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
9422 yes
9423 #endif
9424 _ACEOF
9425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9426 $EGREP "yes" >/dev/null 2>&1; then :
9427
9428 else
9429 FLOAT_H=float.h
9430 fi
9431 rm -f conftest*
9432
9433 ;;
9434 esac
9435 ;;
9436 linux*)
9437 case "$host_cpu" in
9438 powerpc*)
9439 FLOAT_H=float.h
9440 ;;
9441 esac
9442 ;;
9443 esac
9444 case "$host_os" in
9445 aix* | freebsd* | linux*)
9446 if test -n "$FLOAT_H"; then
9447 REPLACE_FLOAT_LDBL=1
9448 fi
9449 ;;
9450 esac
9451
9452 REPLACE_ITOLD=0
9453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
9454 $as_echo_n "checking whether conversion from 'int' to 'long double' works... " >&6; }
9455 if test "${gl_cv_func_itold_works+set}" = set; then :
9456 $as_echo_n "(cached) " >&6
9457 else
9458
9459 if test "$cross_compiling" = yes; then :
9460 case "$host" in
9461 sparc*-*-linux*)
9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h. */
9464 #if defined __LP64__ || defined __arch64__
9465 yes
9466 #endif
9467 _ACEOF
9468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9469 $EGREP "yes" >/dev/null 2>&1; then :
9470 gl_cv_func_itold_works="guessing no"
9471 else
9472 gl_cv_func_itold_works="guessing yes"
9473 fi
9474 rm -f conftest*
9475
9476 ;;
9477 *) gl_cv_func_itold_works="guessing yes" ;;
9478 esac
9479
9480 else
9481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482 /* end confdefs.h. */
9483
9484 int i = -1;
9485 volatile long double ld;
9486 int main ()
9487 {
9488 ld += i * 1.0L;
9489 if (ld > 0)
9490 return 1;
9491 return 0;
9492 }
9493 _ACEOF
9494 if ac_fn_c_try_run "$LINENO"; then :
9495 gl_cv_func_itold_works=yes
9496 else
9497 gl_cv_func_itold_works=no
9498 fi
9499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9500 conftest.$ac_objext conftest.beam conftest.$ac_ext
9501 fi
9502
9503
9504 fi
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
9506 $as_echo "$gl_cv_func_itold_works" >&6; }
9507 case "$gl_cv_func_itold_works" in
9508 *no)
9509 REPLACE_ITOLD=1
9510 FLOAT_H=float.h
9511 ;;
9512 esac
9513
9514 if test -n "$FLOAT_H"; then
9515
9516
9517
9518
9519
9520
9521
9522
9523 if test $gl_cv_have_include_next = yes; then
9524 gl_cv_next_float_h='<'float.h'>'
9525 else
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
9527 $as_echo_n "checking absolute name of <float.h>... " >&6; }
9528 if test "${gl_cv_next_float_h+set}" = set; then :
9529 $as_echo_n "(cached) " >&6
9530 else
9531
9532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533 /* end confdefs.h. */
9534 #include <float.h>
9535
9536 _ACEOF
9537 case "$host_os" in
9538 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9539 *) gl_absname_cpp="$ac_cpp" ;;
9540 esac
9541
9542 case "$host_os" in
9543 mingw*)
9544 gl_dirsep_regex='[/\\]'
9545 ;;
9546 *)
9547 gl_dirsep_regex='\/'
9548 ;;
9549 esac
9550 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9551
9552 gl_header_literal_regex=`echo 'float.h' \
9553 | sed -e "$gl_make_literal_regex_sed"`
9554 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9555 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9556 s|^/[^/]|//&|
9557 p
9558 q
9559 }'
9560 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9561 sed -n "$gl_absolute_header_sed"`'"'
9562
9563
9564 fi
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
9566 $as_echo "$gl_cv_next_float_h" >&6; }
9567 fi
9568 NEXT_FLOAT_H=$gl_cv_next_float_h
9569
9570 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9571 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9572 gl_next_as_first_directive='<'float.h'>'
9573 else
9574 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9575 gl_next_as_first_directive=$gl_cv_next_float_h
9576 fi
9577 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
9578
9579
9580
9581
9582 fi
9583
9584 if test -n "$FLOAT_H"; then
9585 GL_GENERATE_FLOAT_H_TRUE=
9586 GL_GENERATE_FLOAT_H_FALSE='#'
9587 else
9588 GL_GENERATE_FLOAT_H_TRUE='#'
9589 GL_GENERATE_FLOAT_H_FALSE=
9590 fi
9591
9592
9593
9594 if test $REPLACE_FLOAT_LDBL = 1; then
9595
9596
9597
9598
9599
9600
9601
9602
9603 gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
9604
9605 fi
9606 if test $REPLACE_ITOLD = 1; then
9607
9608
9609
9610
9611
9612
9613
9614
9615 gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
9616
9617 fi
9618
9619
9620
9621
9622
9623 FNMATCH_H=
9624 gl_fnmatch_required_lowercase=`
9625 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
9626 `
9627 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
9629 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
9630 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
9631 $as_echo_n "(cached) " >&6
9632 else
9633 if test $gl_fnmatch_required = GNU; then
9634 gl_fnmatch_gnu_start=
9635 gl_fnmatch_gnu_end=
9636 else
9637 gl_fnmatch_gnu_start='#if 0'
9638 gl_fnmatch_gnu_end='#endif'
9639 fi
9640 if test "$cross_compiling" = yes; then :
9641 eval "$gl_fnmatch_cache_var=\"guessing no\""
9642 else
9643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9644 /* end confdefs.h. */
9645 #include <fnmatch.h>
9646 static int
9647 y (char const *pattern, char const *string, int flags)
9648 {
9649 return fnmatch (pattern, string, flags) == 0;
9650 }
9651 static int
9652 n (char const *pattern, char const *string, int flags)
9653 {
9654 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
9655 }
9656
9657 int
9658 main ()
9659 {
9660 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
9661 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
9662 static char const A_1[] = { 'A' - 1, 0 };
9663 static char const A01[] = { 'A' + 1, 0 };
9664 static char const a_1[] = { 'a' - 1, 0 };
9665 static char const a01[] = { 'a' + 1, 0 };
9666 static char const bs_1[] = { '\\\\' - 1, 0 };
9667 static char const bs01[] = { '\\\\' + 1, 0 };
9668 int result = 0;
9669 if (!n ("a*", "", 0))
9670 return 1;
9671 if (!y ("a*", "abc", 0))
9672 return 1;
9673 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
9674 return 1;
9675 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
9676 return 2;
9677 if (!y ("a\\\\bc", "abc", 0))
9678 return 3;
9679 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
9680 return 3;
9681 if (!y ("*x", ".x", 0))
9682 return 4;
9683 if (!n ("*x", ".x", FNM_PERIOD))
9684 return 4;
9685 if (!y (Apat, "\\\\", 0))
9686 return 5;
9687 if (!y (Apat, "A", 0))
9688 return 5;
9689 if (!y (apat, "\\\\", 0))
9690 return 5;
9691 if (!y (apat, "a", 0))
9692 return 5;
9693 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
9694 return 5;
9695 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
9696 return 5;
9697 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
9698 return 5;
9699 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
9700 return 5;
9701 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
9702 return 5;
9703 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
9704 return 5;
9705 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
9706 return 5;
9707 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
9708 return 5;
9709 $gl_fnmatch_gnu_start
9710 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
9711 result |= 8;
9712 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
9713 result |= 16;
9714 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
9715 result |= 32;
9716 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
9717 result |= 64;
9718 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
9719 result |= 64;
9720 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
9721 result |= 64;
9722 $gl_fnmatch_gnu_end
9723 return result;
9724
9725 ;
9726 return 0;
9727 }
9728 _ACEOF
9729 if ac_fn_c_try_run "$LINENO"; then :
9730 eval "$gl_fnmatch_cache_var=yes"
9731 else
9732 eval "$gl_fnmatch_cache_var=no"
9733 fi
9734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9735 conftest.$ac_objext conftest.beam conftest.$ac_ext
9736 fi
9737
9738
9739 fi
9740 eval ac_res=\$$gl_fnmatch_cache_var
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9742 $as_echo "$ac_res" >&6; }
9743 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
9744 if test "$gl_fnmatch_result" = yes; then
9745 rm -f "$gl_source_base/fnmatch.h"
9746 else
9747 FNMATCH_H=fnmatch.h
9748 fi
9749
9750 if test -n "$FNMATCH_H"; then
9751 GL_GENERATE_FNMATCH_H_TRUE=
9752 GL_GENERATE_FNMATCH_H_FALSE='#'
9753 else
9754 GL_GENERATE_FNMATCH_H_TRUE='#'
9755 GL_GENERATE_FNMATCH_H_FALSE=
9756 fi
9757
9758
9759 if test -n "$FNMATCH_H"; then
9760
9761
9762
9763
9764
9765
9766
9767
9768 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
9769
9770
9771
9772 cat >>confdefs.h <<_ACEOF
9773 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
9774 _ACEOF
9775
9776
9777 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
9778 "
9779 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
9780 ac_have_decl=1
9781 else
9782 ac_have_decl=0
9783 fi
9784
9785 cat >>confdefs.h <<_ACEOF
9786 #define HAVE_DECL_ISBLANK $ac_have_decl
9787 _ACEOF
9788
9789
9790
9791
9792 fi
9793
9794
9795
9796
9797
9798 if test -n "$FNMATCH_H"; then
9799
9800
9801
9802
9803
9804
9805
9806
9807 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
9808
9809
9810
9811 cat >>confdefs.h <<_ACEOF
9812 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
9813 _ACEOF
9814
9815
9816 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
9817 "
9818 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
9819 ac_have_decl=1
9820 else
9821 ac_have_decl=0
9822 fi
9823
9824 cat >>confdefs.h <<_ACEOF
9825 #define HAVE_DECL_ISBLANK $ac_have_decl
9826 _ACEOF
9827
9828
9829
9830
9831 fi
9832
9833
9834
9835 FREXP_LIBM=
9836 if test $gl_cv_func_frexp_no_libm = no; then
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used with libm" >&5
9838 $as_echo_n "checking whether frexp() can be used with libm... " >&6; }
9839 if test "${gl_cv_func_frexp_in_libm+set}" = set; then :
9840 $as_echo_n "(cached) " >&6
9841 else
9842
9843 save_LIBS="$LIBS"
9844 LIBS="$LIBS -lm"
9845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9846 /* end confdefs.h. */
9847 #include <math.h>
9848 double x;
9849 int
9850 main ()
9851 {
9852 int e; return frexp (x, &e) > 0;
9853 ;
9854 return 0;
9855 }
9856 _ACEOF
9857 if ac_fn_c_try_link "$LINENO"; then :
9858 gl_cv_func_frexp_in_libm=yes
9859 else
9860 gl_cv_func_frexp_in_libm=no
9861 fi
9862 rm -f core conftest.err conftest.$ac_objext \
9863 conftest$ac_exeext conftest.$ac_ext
9864 LIBS="$save_LIBS"
9865
9866 fi
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_in_libm" >&5
9868 $as_echo "$gl_cv_func_frexp_in_libm" >&6; }
9869 if test $gl_cv_func_frexp_in_libm = yes; then
9870 FREXP_LIBM=-lm
9871 fi
9872 fi
9873 if test $gl_cv_func_frexp_no_libm = yes \
9874 || test $gl_cv_func_frexp_in_libm = yes; then
9875 save_LIBS="$LIBS"
9876 LIBS="$LIBS $FREXP_LIBM"
9877
9878
9879
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
9881 $as_echo_n "checking whether frexp works... " >&6; }
9882 if test "${gl_cv_func_frexp_works+set}" = set; then :
9883 $as_echo_n "(cached) " >&6
9884 else
9885
9886 if test "$cross_compiling" = yes; then :
9887 case "$host_os" in
9888 netbsd* | irix* | mingw*) gl_cv_func_frexp_works="guessing no";;
9889 *) gl_cv_func_frexp_works="guessing yes";;
9890 esac
9891
9892 else
9893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894 /* end confdefs.h. */
9895
9896 #include <float.h>
9897 #include <math.h>
9898 #include <string.h>
9899 #if HAVE_ALARM
9900 # include <unistd.h>
9901 #endif
9902 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
9903 ICC 10.0 has a bug when optimizing the expression -zero.
9904 The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
9905 to PowerPC on Mac OS X 10.5. */
9906 #if defined __hpux || defined __sgi || defined __ICC
9907 static double
9908 compute_minus_zero (void)
9909 {
9910 return -DBL_MIN * DBL_MIN;
9911 }
9912 # define minus_zero compute_minus_zero ()
9913 #else
9914 double minus_zero = -0.0;
9915 #endif
9916 int main()
9917 {
9918 int result = 0;
9919 int i;
9920 volatile double x;
9921 double zero = 0.0;
9922 #if HAVE_ALARM
9923 /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
9924 number. Let the test fail in this case. */
9925 alarm (5);
9926 #endif
9927 /* Test on denormalized numbers. */
9928 for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
9929 ;
9930 if (x > 0.0)
9931 {
9932 int exp;
9933 double y = frexp (x, &exp);
9934 /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
9935 On NetBSD: y = 0.75. Correct: y = 0.5. */
9936 if (y != 0.5)
9937 result |= 1;
9938 }
9939 /* Test on infinite numbers. */
9940 x = 1.0 / zero;
9941 {
9942 int exp;
9943 double y = frexp (x, &exp);
9944 if (y != x)
9945 result |= 2;
9946 }
9947 /* Test on negative zero. */
9948 x = minus_zero;
9949 {
9950 int exp;
9951 double y = frexp (x, &exp);
9952 if (memcmp (&y, &x, sizeof x))
9953 result |= 4;
9954 }
9955 return result;
9956 }
9957 _ACEOF
9958 if ac_fn_c_try_run "$LINENO"; then :
9959 gl_cv_func_frexp_works=yes
9960 else
9961 gl_cv_func_frexp_works=no
9962 fi
9963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9964 conftest.$ac_objext conftest.beam conftest.$ac_ext
9965 fi
9966
9967
9968 fi
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
9970 $as_echo "$gl_cv_func_frexp_works" >&6; }
9971
9972 LIBS="$save_LIBS"
9973 case "$gl_cv_func_frexp_works" in
9974 *yes) gl_func_frexp=yes ;;
9975 *) gl_func_frexp=no; REPLACE_FREXP=1; FREXP_LIBM= ;;
9976 esac
9977 else
9978 gl_func_frexp=no
9979 fi
9980 if test $gl_func_frexp = yes; then
9981
9982 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
9983
9984 fi
9985
9986
9987 if test $gl_func_frexp != yes; then
9988
9989
9990
9991
9992
9993
9994
9995
9996 gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
9997
9998 fi
9999
10000
10001
10002
10003
10004 GNULIB_FREXP=1
10005
10006
10007
10008
10009
10010 $as_echo "#define GNULIB_TEST_FREXP 1" >>confdefs.h
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020 ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
10021 "
10022 if test "x$ac_cv_have_decl_frexpl" = x""yes; then :
10023
10024 else
10025 HAVE_DECL_FREXPL=0
10026 fi
10027
10028
10029 FREXPL_LIBM=
10030 if test $HAVE_DECL_FREXPL = 1; then
10031
10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
10033 $as_echo_n "checking whether frexpl() can be used without linking with libm... " >&6; }
10034 if test "${gl_cv_func_frexpl_no_libm+set}" = set; then :
10035 $as_echo_n "(cached) " >&6
10036 else
10037
10038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10039 /* end confdefs.h. */
10040 #include <math.h>
10041 long double x;
10042 int
10043 main ()
10044 {
10045 int e; return frexpl (x, &e) > 0;
10046 ;
10047 return 0;
10048 }
10049 _ACEOF
10050 if ac_fn_c_try_link "$LINENO"; then :
10051 gl_cv_func_frexpl_no_libm=yes
10052 else
10053 gl_cv_func_frexpl_no_libm=no
10054 fi
10055 rm -f core conftest.err conftest.$ac_objext \
10056 conftest$ac_exeext conftest.$ac_ext
10057
10058 fi
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
10060 $as_echo "$gl_cv_func_frexpl_no_libm" >&6; }
10061
10062 if test $gl_cv_func_frexpl_no_libm = no; then
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used with libm" >&5
10064 $as_echo_n "checking whether frexpl() can be used with libm... " >&6; }
10065 if test "${gl_cv_func_frexpl_in_libm+set}" = set; then :
10066 $as_echo_n "(cached) " >&6
10067 else
10068
10069 save_LIBS="$LIBS"
10070 LIBS="$LIBS -lm"
10071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10072 /* end confdefs.h. */
10073 #include <math.h>
10074 long double x;
10075 int
10076 main ()
10077 {
10078 int e; return frexpl (x, &e) > 0;
10079 ;
10080 return 0;
10081 }
10082 _ACEOF
10083 if ac_fn_c_try_link "$LINENO"; then :
10084 gl_cv_func_frexpl_in_libm=yes
10085 else
10086 gl_cv_func_frexpl_in_libm=no
10087 fi
10088 rm -f core conftest.err conftest.$ac_objext \
10089 conftest$ac_exeext conftest.$ac_ext
10090 LIBS="$save_LIBS"
10091
10092 fi
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_in_libm" >&5
10094 $as_echo "$gl_cv_func_frexpl_in_libm" >&6; }
10095 if test $gl_cv_func_frexpl_in_libm = yes; then
10096 FREXPL_LIBM=-lm
10097 fi
10098 fi
10099 if test $gl_cv_func_frexpl_no_libm = yes \
10100 || test $gl_cv_func_frexpl_in_libm = yes; then
10101 save_LIBS="$LIBS"
10102 LIBS="$LIBS $FREXPL_LIBM"
10103
10104
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
10106 $as_echo_n "checking whether frexpl works... " >&6; }
10107 if test "${gl_cv_func_frexpl_works+set}" = set; then :
10108 $as_echo_n "(cached) " >&6
10109 else
10110
10111 if test "$cross_compiling" = yes; then :
10112
10113 case "$host_os" in
10114 aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
10115 gl_cv_func_frexpl_works="guessing no";;
10116 *) gl_cv_func_frexpl_works="guessing yes";;
10117 esac
10118
10119 else
10120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h. */
10122
10123 #include <float.h>
10124 #include <math.h>
10125 /* Override the values of <float.h>, like done in float.in.h. */
10126 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
10127 # undef LDBL_MIN_EXP
10128 # define LDBL_MIN_EXP (-16381)
10129 #endif
10130 #if defined __i386__ && defined __FreeBSD__
10131 # undef LDBL_MIN_EXP
10132 # define LDBL_MIN_EXP (-16381)
10133 #endif
10134 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
10135 # undef LDBL_MIN_EXP
10136 # define LDBL_MIN_EXP DBL_MIN_EXP
10137 #endif
10138 #if defined __sgi && (LDBL_MANT_DIG >= 106)
10139 # if defined __GNUC__
10140 # undef LDBL_MIN_EXP
10141 # define LDBL_MIN_EXP DBL_MIN_EXP
10142 # endif
10143 #endif
10144 extern
10145 #ifdef __cplusplus
10146 "C"
10147 #endif
10148 long double frexpl (long double, int *);
10149 int main()
10150 {
10151 int result = 0;
10152 volatile long double x;
10153 /* Test on finite numbers that fails on AIX 5.1. */
10154 x = 16.0L;
10155 {
10156 int exp = -9999;
10157 frexpl (x, &exp);
10158 if (exp != 5)
10159 result |= 1;
10160 }
10161 /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
10162 function returns an invalid (incorrectly normalized) value: it returns
10163 y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
10164 but the correct result is
10165 0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 } */
10166 x = 1.01L;
10167 {
10168 int exp = -9999;
10169 long double y = frexpl (x, &exp);
10170 if (!(exp == 1 && y == 0.505L))
10171 result |= 2;
10172 }
10173 /* Test on large finite numbers. This fails on BeOS at i = 16322, while
10174 LDBL_MAX_EXP = 16384.
10175 In the loop end test, we test x against Infinity, rather than comparing
10176 i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP. */
10177 {
10178 int i;
10179 for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
10180 {
10181 int exp = -9999;
10182 frexpl (x, &exp);
10183 if (exp != i)
10184 {
10185 result |= 4;
10186 break;
10187 }
10188 }
10189 }
10190 /* Test on denormalized numbers. */
10191 {
10192 int i;
10193 for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
10194 ;
10195 if (x > 0.0L)
10196 {
10197 int exp;
10198 long double y = frexpl (x, &exp);
10199 /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
10200 exp = -16382, y = 0.5. On Mac OS X 10.5: exp = -16384, y = 0.5. */
10201 if (exp != LDBL_MIN_EXP - 1)
10202 result |= 8;
10203 }
10204 }
10205 /* Test on infinite numbers. */
10206 x = 1.0L / 0.0L;
10207 {
10208 int exp;
10209 long double y = frexpl (x, &exp);
10210 if (y != x)
10211 result |= 16;
10212 }
10213 return result;
10214 }
10215 _ACEOF
10216 if ac_fn_c_try_run "$LINENO"; then :
10217 gl_cv_func_frexpl_works=yes
10218 else
10219 gl_cv_func_frexpl_works=no
10220 fi
10221 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10222 conftest.$ac_objext conftest.beam conftest.$ac_ext
10223 fi
10224
10225
10226 fi
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
10228 $as_echo "$gl_cv_func_frexpl_works" >&6; }
10229
10230 LIBS="$save_LIBS"
10231 case "$gl_cv_func_frexpl_works" in
10232 *yes) gl_func_frexpl=yes ;;
10233 *) gl_func_frexpl=no; REPLACE_FREXPL=1 ;;
10234 esac
10235 else
10236 gl_func_frexpl=no
10237 fi
10238 if test $gl_func_frexpl = yes; then
10239
10240 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
10241
10242 fi
10243 fi
10244 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
10245 if test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1; then
10246
10247 FREXPL_LIBM="$FREXP_LIBM"
10248 else
10249 FREXPL_LIBM=
10250 fi
10251 fi
10252
10253
10254 if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then
10255
10256
10257
10258
10259
10260
10261
10262
10263 gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
10264
10265 fi
10266
10267
10268
10269
10270
10271 GNULIB_FREXPL=1
10272
10273
10274
10275
10276
10277 $as_echo "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
10278
10279
10280
10281
10282
10283
10284
10285
10286 PRIPTR_PREFIX=
10287 if test -n "$STDINT_H"; then
10288 PRIPTR_PREFIX='"l"'
10289 else
10290 for glpfx in '' l ll I64; do
10291 case $glpfx in
10292 '') gltype1='int';;
10293 l) gltype1='long int';;
10294 ll) gltype1='long long int';;
10295 I64) gltype1='__int64';;
10296 esac
10297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10298 /* end confdefs.h. */
10299 #include <stdint.h>
10300 extern intptr_t foo;
10301 extern $gltype1 foo;
10302 int
10303 main ()
10304 {
10305
10306 ;
10307 return 0;
10308 }
10309 _ACEOF
10310 if ac_fn_c_try_compile "$LINENO"; then :
10311 PRIPTR_PREFIX='"'$glpfx'"'
10312 fi
10313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10314 test -n "$PRIPTR_PREFIX" && break
10315 done
10316 fi
10317
10318
10319
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
10321 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
10322 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
10323 $as_echo_n "(cached) " >&6
10324 else
10325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10326 /* end confdefs.h. */
10327 /* Work also in C++ mode. */
10328 #define __STDC_LIMIT_MACROS 1
10329
10330 /* Work if build is not clean. */
10331 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10332
10333 #include <limits.h>
10334 #if HAVE_STDINT_H
10335 #include <stdint.h>
10336 #endif
10337
10338 #if defined INT32_MAX && defined INTMAX_MAX
10339 #define CONDITION (INT32_MAX < INTMAX_MAX)
10340 #elif HAVE_LONG_LONG_INT
10341 #define CONDITION (sizeof (int) < sizeof (long long int))
10342 #else
10343 #define CONDITION 0
10344 #endif
10345 int test[CONDITION ? 1 : -1];
10346 int
10347 main ()
10348 {
10349
10350 ;
10351 return 0;
10352 }
10353 _ACEOF
10354 if ac_fn_c_try_compile "$LINENO"; then :
10355 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
10356 else
10357 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
10358 fi
10359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10360 fi
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
10362 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
10363 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
10364 INT32_MAX_LT_INTMAX_MAX=1;
10365 else
10366 INT32_MAX_LT_INTMAX_MAX=0;
10367 fi
10368
10369
10370 if test $APPLE_UNIVERSAL_BUILD = 0; then
10371
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
10373 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
10374 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
10375 $as_echo_n "(cached) " >&6
10376 else
10377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10378 /* end confdefs.h. */
10379 /* Work also in C++ mode. */
10380 #define __STDC_LIMIT_MACROS 1
10381
10382 /* Work if build is not clean. */
10383 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10384
10385 #include <limits.h>
10386 #if HAVE_STDINT_H
10387 #include <stdint.h>
10388 #endif
10389
10390 #if defined INT64_MAX
10391 #define CONDITION (INT64_MAX == LONG_MAX)
10392 #elif HAVE_LONG_LONG_INT
10393 #define CONDITION (sizeof (long long int) == sizeof (long int))
10394 #else
10395 #define CONDITION 0
10396 #endif
10397 int test[CONDITION ? 1 : -1];
10398 int
10399 main ()
10400 {
10401
10402 ;
10403 return 0;
10404 }
10405 _ACEOF
10406 if ac_fn_c_try_compile "$LINENO"; then :
10407 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
10408 else
10409 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
10410 fi
10411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10412 fi
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
10414 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
10415 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
10416 INT64_MAX_EQ_LONG_MAX=1;
10417 else
10418 INT64_MAX_EQ_LONG_MAX=0;
10419 fi
10420
10421
10422 else
10423 INT64_MAX_EQ_LONG_MAX=-1
10424 fi
10425
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
10427 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
10428 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
10429 $as_echo_n "(cached) " >&6
10430 else
10431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10432 /* end confdefs.h. */
10433 /* Work also in C++ mode. */
10434 #define __STDC_LIMIT_MACROS 1
10435
10436 /* Work if build is not clean. */
10437 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10438
10439 #include <limits.h>
10440 #if HAVE_STDINT_H
10441 #include <stdint.h>
10442 #endif
10443
10444 #if defined UINT32_MAX && defined UINTMAX_MAX
10445 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
10446 #elif HAVE_LONG_LONG_INT
10447 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
10448 #else
10449 #define CONDITION 0
10450 #endif
10451 int test[CONDITION ? 1 : -1];
10452 int
10453 main ()
10454 {
10455
10456 ;
10457 return 0;
10458 }
10459 _ACEOF
10460 if ac_fn_c_try_compile "$LINENO"; then :
10461 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
10462 else
10463 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
10464 fi
10465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10466 fi
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
10468 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
10469 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
10470 UINT32_MAX_LT_UINTMAX_MAX=1;
10471 else
10472 UINT32_MAX_LT_UINTMAX_MAX=0;
10473 fi
10474
10475
10476 if test $APPLE_UNIVERSAL_BUILD = 0; then
10477
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
10479 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
10480 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
10481 $as_echo_n "(cached) " >&6
10482 else
10483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10484 /* end confdefs.h. */
10485 /* Work also in C++ mode. */
10486 #define __STDC_LIMIT_MACROS 1
10487
10488 /* Work if build is not clean. */
10489 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
10490
10491 #include <limits.h>
10492 #if HAVE_STDINT_H
10493 #include <stdint.h>
10494 #endif
10495
10496 #if defined UINT64_MAX
10497 #define CONDITION (UINT64_MAX == ULONG_MAX)
10498 #elif HAVE_LONG_LONG_INT
10499 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
10500 #else
10501 #define CONDITION 0
10502 #endif
10503 int test[CONDITION ? 1 : -1];
10504 int
10505 main ()
10506 {
10507
10508 ;
10509 return 0;
10510 }
10511 _ACEOF
10512 if ac_fn_c_try_compile "$LINENO"; then :
10513 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
10514 else
10515 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
10516 fi
10517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10518 fi
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
10520 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
10521 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
10522 UINT64_MAX_EQ_ULONG_MAX=1;
10523 else
10524 UINT64_MAX_EQ_ULONG_MAX=0;
10525 fi
10526
10527
10528 else
10529 UINT64_MAX_EQ_ULONG_MAX=-1
10530 fi
10531
10532
10533
10534
10535
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
10537 $as_echo_n "checking whether isnan(double) can be used without linking with libm... " >&6; }
10538 if test "${gl_cv_func_isnand_no_libm+set}" = set; then :
10539 $as_echo_n "(cached) " >&6
10540 else
10541
10542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10543 /* end confdefs.h. */
10544 #include <math.h>
10545 #if __GNUC__ >= 4
10546 # undef isnand
10547 # define isnand(x) __builtin_isnan ((double)(x))
10548 #else
10549 # undef isnand
10550 # define isnand(x) isnan ((double)(x))
10551 #endif
10552 double x;
10553 int
10554 main ()
10555 {
10556 return isnand (x);
10557 ;
10558 return 0;
10559 }
10560 _ACEOF
10561 if ac_fn_c_try_link "$LINENO"; then :
10562 gl_cv_func_isnand_no_libm=yes
10563 else
10564 gl_cv_func_isnand_no_libm=no
10565 fi
10566 rm -f core conftest.err conftest.$ac_objext \
10567 conftest$ac_exeext conftest.$ac_ext
10568
10569 fi
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
10571 $as_echo "$gl_cv_func_isnand_no_libm" >&6; }
10572
10573 gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
10574 if test $gl_cv_func_isnand_no_libm = yes; then
10575
10576 $as_echo "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
10577
10578 fi
10579
10580 if test $gl_func_isnand_no_libm != yes; then
10581
10582
10583
10584
10585
10586
10587
10588
10589 gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
10590
10591
10592
10593
10594 fi
10595
10596
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
10598 $as_echo_n "checking whether isnan(long double) can be used without linking with libm... " >&6; }
10599 if test "${gl_cv_func_isnanl_no_libm+set}" = set; then :
10600 $as_echo_n "(cached) " >&6
10601 else
10602
10603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10604 /* end confdefs.h. */
10605 #include <math.h>
10606 #if __GNUC__ >= 4
10607 # undef isnanl
10608 # define isnanl(x) __builtin_isnanl ((long double)(x))
10609 #elif defined isnan
10610 # undef isnanl
10611 # define isnanl(x) isnan ((long double)(x))
10612 #endif
10613 long double x;
10614 int
10615 main ()
10616 {
10617 return isnanl (x);
10618 ;
10619 return 0;
10620 }
10621 _ACEOF
10622 if ac_fn_c_try_link "$LINENO"; then :
10623 gl_cv_func_isnanl_no_libm=yes
10624 else
10625 gl_cv_func_isnanl_no_libm=no
10626 fi
10627 rm -f core conftest.err conftest.$ac_objext \
10628 conftest$ac_exeext conftest.$ac_ext
10629
10630 fi
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
10632 $as_echo "$gl_cv_func_isnanl_no_libm" >&6; }
10633
10634 gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
10635 if test $gl_func_isnanl_no_libm = yes; then
10636
10637
10638
10639
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
10641 $as_echo_n "checking whether isnanl works... " >&6; }
10642 if test "${gl_cv_func_isnanl_works+set}" = set; then :
10643 $as_echo_n "(cached) " >&6
10644 else
10645
10646 if test "$cross_compiling" = yes; then :
10647 case "$host_cpu" in
10648 # Guess no on ia64, x86_64, i386.
10649 ia64 | x86_64 | i*86) gl_cv_func_isnanl_works="guessing no";;
10650 *)
10651 case "$host_os" in
10652 netbsd*) gl_cv_func_isnanl_works="guessing no";;
10653 *) gl_cv_func_isnanl_works="guessing yes";;
10654 esac
10655 ;;
10656 esac
10657
10658 else
10659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10660 /* end confdefs.h. */
10661
10662 #include <float.h>
10663 #include <limits.h>
10664 #include <math.h>
10665 #if __GNUC__ >= 4
10666 # undef isnanl
10667 # define isnanl(x) __builtin_isnanl ((long double)(x))
10668 #elif defined isnan
10669 # undef isnanl
10670 # define isnanl(x) isnan ((long double)(x))
10671 #endif
10672 #define NWORDS \
10673 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
10674 typedef union { unsigned int word[NWORDS]; long double value; }
10675 memory_long_double;
10676 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
10677 runtime type conversion. */
10678 #ifdef __sgi
10679 static long double NaNl ()
10680 {
10681 double zero = 0.0;
10682 return zero / zero;
10683 }
10684 #else
10685 # define NaNl() (0.0L / 0.0L)
10686 #endif
10687 int main ()
10688 {
10689 int result = 0;
10690
10691 if (!isnanl (NaNl ()))
10692 result |= 1;
10693
10694 {
10695 memory_long_double m;
10696 unsigned int i;
10697
10698 /* The isnanl function should be immune against changes in the sign bit and
10699 in the mantissa bits. The xor operation twiddles a bit that can only be
10700 a sign bit or a mantissa bit (since the exponent never extends to
10701 bit 31). */
10702 m.value = NaNl ();
10703 m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
10704 for (i = 0; i < NWORDS; i++)
10705 m.word[i] |= 1;
10706 if (!isnanl (m.value))
10707 result |= 1;
10708 }
10709
10710 #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
10711 /* Representation of an 80-bit 'long double' as an initializer for a sequence
10712 of 'unsigned int' words. */
10713 # ifdef WORDS_BIGENDIAN
10714 # define LDBL80_WORDS(exponent,manthi,mantlo) \
10715 { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
10716 ((unsigned int) (manthi) << 16) | (unsigned int) (mantlo) >> 16), \
10717 (unsigned int) (mantlo) << 16 \
10718 }
10719 # else
10720 # define LDBL80_WORDS(exponent,manthi,mantlo) \
10721 { mantlo, manthi, exponent }
10722 # endif
10723 { /* Quiet NaN. */
10724 static memory_long_double x =
10725 { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
10726 if (!isnanl (x.value))
10727 result |= 2;
10728 }
10729 {
10730 /* Signalling NaN. */
10731 static memory_long_double x =
10732 { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
10733 if (!isnanl (x.value))
10734 result |= 2;
10735 }
10736 /* The isnanl function should recognize Pseudo-NaNs, Pseudo-Infinities,
10737 Pseudo-Zeroes, Unnormalized Numbers, and Pseudo-Denormals, as defined in
10738 Intel IA-64 Architecture Software Developer's Manual, Volume 1:
10739 Application Architecture.
10740 Table 5-2 "Floating-Point Register Encodings"
10741 Figure 5-6 "Memory to Floating-Point Register Data Translation"
10742 */
10743 { /* Pseudo-NaN. */
10744 static memory_long_double x =
10745 { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
10746 if (!isnanl (x.value))
10747 result |= 4;
10748 }
10749 { /* Pseudo-Infinity. */
10750 static memory_long_double x =
10751 { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
10752 if (!isnanl (x.value))
10753 result |= 8;
10754 }
10755 { /* Pseudo-Zero. */
10756 static memory_long_double x =
10757 { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
10758 if (!isnanl (x.value))
10759 result |= 16;
10760 }
10761 { /* Unnormalized number. */
10762 static memory_long_double x =
10763 { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
10764 if (!isnanl (x.value))
10765 result |= 32;
10766 }
10767 { /* Pseudo-Denormal. */
10768 static memory_long_double x =
10769 { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
10770 if (!isnanl (x.value))
10771 result |= 64;
10772 }
10773 #endif
10774
10775 return result;
10776 }
10777 _ACEOF
10778 if ac_fn_c_try_run "$LINENO"; then :
10779 gl_cv_func_isnanl_works=yes
10780 else
10781 gl_cv_func_isnanl_works=no
10782 fi
10783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10784 conftest.$ac_objext conftest.beam conftest.$ac_ext
10785 fi
10786
10787
10788 fi
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
10790 $as_echo "$gl_cv_func_isnanl_works" >&6; }
10791
10792 case "$gl_cv_func_isnanl_works" in
10793 *yes) ;;
10794 *) gl_func_isnanl_no_libm=no ;;
10795 esac
10796 fi
10797 if test $gl_func_isnanl_no_libm = yes; then
10798
10799 $as_echo "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
10800
10801 fi
10802
10803 if test $gl_func_isnanl_no_libm != yes; then
10804
10805
10806
10807
10808
10809
10810
10811
10812 gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
10813
10814
10815
10816
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
10818 $as_echo_n "checking where to find the exponent in a 'long double'... " >&6; }
10819 if test "${gl_cv_cc_long_double_expbit0+set}" = set; then :
10820 $as_echo_n "(cached) " >&6
10821 else
10822
10823 if test "$cross_compiling" = yes; then :
10824
10825 gl_cv_cc_long_double_expbit0="unknown"
10826
10827 else
10828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10829 /* end confdefs.h. */
10830
10831 #include <float.h>
10832 #include <stddef.h>
10833 #include <stdio.h>
10834 #include <string.h>
10835 #define NWORDS \
10836 ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
10837 typedef union { long double value; unsigned int word[NWORDS]; }
10838 memory_long_double;
10839 static unsigned int ored_words[NWORDS];
10840 static unsigned int anded_words[NWORDS];
10841 static void add_to_ored_words (long double x)
10842 {
10843 memory_long_double m;
10844 size_t i;
10845 /* Clear it first, in case
10846 sizeof (long double) < sizeof (memory_long_double). */
10847 memset (&m, 0, sizeof (memory_long_double));
10848 m.value = x;
10849 for (i = 0; i < NWORDS; i++)
10850 {
10851 ored_words[i] |= m.word[i];
10852 anded_words[i] &= m.word[i];
10853 }
10854 }
10855 int main ()
10856 {
10857 size_t j;
10858 FILE *fp = fopen ("conftest.out", "w");
10859 if (fp == NULL)
10860 return 1;
10861 for (j = 0; j < NWORDS; j++)
10862 anded_words[j] = ~ (unsigned int) 0;
10863 add_to_ored_words (0.25L);
10864 add_to_ored_words (0.5L);
10865 add_to_ored_words (1.0L);
10866 add_to_ored_words (2.0L);
10867 add_to_ored_words (4.0L);
10868 /* Remove bits that are common (e.g. if representation of the first mantissa
10869 bit is explicit). */
10870 for (j = 0; j < NWORDS; j++)
10871 ored_words[j] &= ~anded_words[j];
10872 /* Now find the nonzero word. */
10873 for (j = 0; j < NWORDS; j++)
10874 if (ored_words[j] != 0)
10875 break;
10876 if (j < NWORDS)
10877 {
10878 size_t i;
10879 for (i = j + 1; i < NWORDS; i++)
10880 if (ored_words[i] != 0)
10881 {
10882 fprintf (fp, "unknown");
10883 return (fclose (fp) != 0);
10884 }
10885 for (i = 0; ; i++)
10886 if ((ored_words[j] >> i) & 1)
10887 {
10888 fprintf (fp, "word %d bit %d", (int) j, (int) i);
10889 return (fclose (fp) != 0);
10890 }
10891 }
10892 fprintf (fp, "unknown");
10893 return (fclose (fp) != 0);
10894 }
10895
10896 _ACEOF
10897 if ac_fn_c_try_run "$LINENO"; then :
10898 gl_cv_cc_long_double_expbit0=`cat conftest.out`
10899 else
10900 gl_cv_cc_long_double_expbit0="unknown"
10901 fi
10902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10903 conftest.$ac_objext conftest.beam conftest.$ac_ext
10904 fi
10905
10906 rm -f conftest.out
10907
10908 fi
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
10910 $as_echo "$gl_cv_cc_long_double_expbit0" >&6; }
10911 case "$gl_cv_cc_long_double_expbit0" in
10912 word*bit*)
10913 word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
10914 bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
10915
10916 cat >>confdefs.h <<_ACEOF
10917 #define LDBL_EXPBIT0_WORD $word
10918 _ACEOF
10919
10920
10921 cat >>confdefs.h <<_ACEOF
10922 #define LDBL_EXPBIT0_BIT $bit
10923 _ACEOF
10924
10925 ;;
10926 esac
10927
10928
10929
10930 fi
10931
10932
10933
10934
10935
10936
10937
10938
10939 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952 if test $gl_cv_have_include_next = yes; then
10953 gl_cv_next_math_h='<'math.h'>'
10954 else
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
10956 $as_echo_n "checking absolute name of <math.h>... " >&6; }
10957 if test "${gl_cv_next_math_h+set}" = set; then :
10958 $as_echo_n "(cached) " >&6
10959 else
10960
10961 if test $ac_cv_header_math_h = yes; then
10962
10963
10964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10965 /* end confdefs.h. */
10966 #include <math.h>
10967
10968 _ACEOF
10969 case "$host_os" in
10970 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10971 *) gl_absname_cpp="$ac_cpp" ;;
10972 esac
10973
10974 case "$host_os" in
10975 mingw*)
10976 gl_dirsep_regex='[/\\]'
10977 ;;
10978 *)
10979 gl_dirsep_regex='\/'
10980 ;;
10981 esac
10982 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10983
10984 gl_header_literal_regex=`echo 'math.h' \
10985 | sed -e "$gl_make_literal_regex_sed"`
10986 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10987 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10988 s|^/[^/]|//&|
10989 p
10990 q
10991 }'
10992 gl_cv_next_math_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10993 sed -n "$gl_absolute_header_sed"`'"'
10994 else
10995 gl_cv_next_math_h='<'math.h'>'
10996 fi
10997
10998
10999 fi
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
11001 $as_echo "$gl_cv_next_math_h" >&6; }
11002 fi
11003 NEXT_MATH_H=$gl_cv_next_math_h
11004
11005 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11006 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11007 gl_next_as_first_directive='<'math.h'>'
11008 else
11009 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11010 gl_next_as_first_directive=$gl_cv_next_math_h
11011 fi
11012 NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
11013
11014
11015
11016
11017
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
11019 $as_echo_n "checking whether NAN macro works... " >&6; }
11020 if test "${gl_cv_header_math_nan_works+set}" = set; then :
11021 $as_echo_n "(cached) " >&6
11022 else
11023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11024 /* end confdefs.h. */
11025 #include <math.h>
11026 int
11027 main ()
11028 {
11029 /* Solaris 10 has a broken definition of NAN. Other platforms
11030 fail to provide NAN, or provide it only in C99 mode; this
11031 test only needs to fail when NAN is provided but wrong. */
11032 float f = 1.0f;
11033 #ifdef NAN
11034 f = NAN;
11035 #endif
11036 return f == 0;
11037 ;
11038 return 0;
11039 }
11040 _ACEOF
11041 if ac_fn_c_try_compile "$LINENO"; then :
11042 gl_cv_header_math_nan_works=yes
11043 else
11044 gl_cv_header_math_nan_works=no
11045 fi
11046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11047 fi
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
11049 $as_echo "$gl_cv_header_math_nan_works" >&6; }
11050 if test $gl_cv_header_math_nan_works = no; then
11051 REPLACE_NAN=1
11052 fi
11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
11054 $as_echo_n "checking whether HUGE_VAL works... " >&6; }
11055 if test "${gl_cv_header_math_huge_val_works+set}" = set; then :
11056 $as_echo_n "(cached) " >&6
11057 else
11058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11059 /* end confdefs.h. */
11060 #include <math.h>
11061 int
11062 main ()
11063 {
11064 /* Solaris 10 has a broken definition of HUGE_VAL. */
11065 double d = HUGE_VAL;
11066 return d == 0;
11067 ;
11068 return 0;
11069 }
11070 _ACEOF
11071 if ac_fn_c_try_compile "$LINENO"; then :
11072 gl_cv_header_math_huge_val_works=yes
11073 else
11074 gl_cv_header_math_huge_val_works=no
11075 fi
11076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11077 fi
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
11079 $as_echo "$gl_cv_header_math_huge_val_works" >&6; }
11080 if test $gl_cv_header_math_huge_val_works = no; then
11081 REPLACE_HUGE_VAL=1
11082 fi
11083
11084
11085 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
11086 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11088 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11089 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11090 $as_echo_n "(cached) " >&6
11091 else
11092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11093 /* end confdefs.h. */
11094 #include <math.h>
11095 int
11096 main ()
11097 {
11098 #undef $gl_func
11099 (void) $gl_func;
11100 ;
11101 return 0;
11102 }
11103 _ACEOF
11104 if ac_fn_c_try_compile "$LINENO"; then :
11105 eval "$as_gl_Symbol=yes"
11106 else
11107 eval "$as_gl_Symbol=no"
11108 fi
11109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11110 fi
11111 eval ac_res=\$$as_gl_Symbol
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11113 $as_echo "$ac_res" >&6; }
11114 eval as_val=\$$as_gl_Symbol
11115 if test "x$as_val" = x""yes; then :
11116 cat >>confdefs.h <<_ACEOF
11117 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11118 _ACEOF
11119
11120 eval ac_cv_have_decl_$gl_func=yes
11121 fi
11122 done
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
11136
11137
11138
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
11140 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
11141 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
11142 $as_echo_n "(cached) " >&6
11143 else
11144
11145 case "$host_os" in
11146 # Guess no on AIX and OSF/1.
11147 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
11148 # Guess yes otherwise.
11149 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
11150 esac
11151 if test $LOCALE_JA != none; then
11152 if test "$cross_compiling" = yes; then :
11153 :
11154 else
11155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11156 /* end confdefs.h. */
11157
11158 #include <locale.h>
11159 #include <string.h>
11160 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11161 <wchar.h>.
11162 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11163 included before <wchar.h>. */
11164 #include <stddef.h>
11165 #include <stdio.h>
11166 #include <time.h>
11167 #include <wchar.h>
11168 int main ()
11169 {
11170 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
11171 {
11172 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
11173 mbstate_t state;
11174 wchar_t wc;
11175
11176 memset (&state, '\0', sizeof (mbstate_t));
11177 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
11178 if (mbsinit (&state))
11179 return 1;
11180 }
11181 return 0;
11182 }
11183 _ACEOF
11184 if ac_fn_c_try_run "$LINENO"; then :
11185 gl_cv_func_mbrtowc_incomplete_state=yes
11186 else
11187 gl_cv_func_mbrtowc_incomplete_state=no
11188 fi
11189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11190 conftest.$ac_objext conftest.beam conftest.$ac_ext
11191 fi
11192
11193 fi
11194
11195 fi
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
11197 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
11198
11199
11200
11201
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
11203 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
11204 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
11205 $as_echo_n "(cached) " >&6
11206 else
11207
11208 case "$host_os" in
11209 # Guess no on Solaris 8.
11210 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
11211 # Guess yes otherwise.
11212 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
11213 esac
11214 if test $LOCALE_ZH_CN != none; then
11215 if test "$cross_compiling" = yes; then :
11216 :
11217 else
11218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11219 /* end confdefs.h. */
11220
11221 #include <locale.h>
11222 #include <stdlib.h>
11223 #include <string.h>
11224 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11225 <wchar.h>.
11226 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11227 included before <wchar.h>. */
11228 #include <stddef.h>
11229 #include <stdio.h>
11230 #include <time.h>
11231 #include <wchar.h>
11232 int main ()
11233 {
11234 /* This fails on Solaris 8:
11235 mbrtowc returns 2, and sets wc to 0x00F0.
11236 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
11237 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
11238 {
11239 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
11240 mbstate_t state;
11241 wchar_t wc;
11242
11243 memset (&state, '\0', sizeof (mbstate_t));
11244 if (mbrtowc (&wc, input + 3, 6, &state) != 4
11245 && mbtowc (&wc, input + 3, 6) == 4)
11246 return 1;
11247 }
11248 return 0;
11249 }
11250 _ACEOF
11251 if ac_fn_c_try_run "$LINENO"; then :
11252 gl_cv_func_mbrtowc_sanitycheck=yes
11253 else
11254 gl_cv_func_mbrtowc_sanitycheck=no
11255 fi
11256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11257 conftest.$ac_objext conftest.beam conftest.$ac_ext
11258 fi
11259
11260 fi
11261
11262 fi
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
11264 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
11265
11266 REPLACE_MBSTATE_T=0
11267 case "$gl_cv_func_mbrtowc_incomplete_state" in
11268 *yes) ;;
11269 *) REPLACE_MBSTATE_T=1 ;;
11270 esac
11271 case "$gl_cv_func_mbrtowc_sanitycheck" in
11272 *yes) ;;
11273 *) REPLACE_MBSTATE_T=1 ;;
11274 esac
11275 else
11276 REPLACE_MBSTATE_T=1
11277 fi
11278
11279
11280
11281 if test $ac_cv_func_mbrtowc = no; then
11282 HAVE_MBRTOWC=0
11283 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
11284 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11285 <wchar.h>.
11286 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11287 included before <wchar.h>. */
11288 #include <stddef.h>
11289 #include <stdio.h>
11290 #include <time.h>
11291 #include <wchar.h>
11292
11293 "
11294 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
11295 ac_have_decl=1
11296 else
11297 ac_have_decl=0
11298 fi
11299
11300 cat >>confdefs.h <<_ACEOF
11301 #define HAVE_DECL_MBRTOWC $ac_have_decl
11302 _ACEOF
11303
11304 if test $ac_cv_have_decl_mbrtowc = yes; then
11305 REPLACE_MBRTOWC=1
11306 fi
11307 else
11308 if test $REPLACE_MBSTATE_T = 1; then
11309 REPLACE_MBRTOWC=1
11310 else
11311
11312
11313
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
11315 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
11316 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
11317 $as_echo_n "(cached) " >&6
11318 else
11319
11320 case "$host_os" in
11321 # Guess no on Solaris.
11322 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
11323 # Guess yes otherwise.
11324 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
11325 esac
11326 if test $LOCALE_FR_UTF8 != none; then
11327 if test "$cross_compiling" = yes; then :
11328 :
11329 else
11330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11331 /* end confdefs.h. */
11332
11333 #include <locale.h>
11334 #include <stdlib.h>
11335 #include <string.h>
11336 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11337 <wchar.h>.
11338 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11339 included before <wchar.h>. */
11340 #include <stddef.h>
11341 #include <stdio.h>
11342 #include <time.h>
11343 #include <wchar.h>
11344 int main ()
11345 {
11346 int result = 0;
11347
11348 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
11349 {
11350 char input[] = "\303\237er";
11351 mbstate_t state;
11352 wchar_t wc;
11353 size_t ret;
11354
11355 memset (&state, '\0', sizeof (mbstate_t));
11356 wc = (wchar_t) 0xBADFACE;
11357 ret = mbrtowc (&wc, input, 5, &state);
11358 if (ret != 2)
11359 result |= 1;
11360 if (!mbsinit (&state))
11361 result |= 2;
11362
11363 memset (&state, '\0', sizeof (mbstate_t));
11364 ret = mbrtowc (NULL, input, 5, &state);
11365 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
11366 result |= 4;
11367 if (!mbsinit (&state))
11368 result |= 8;
11369 }
11370 return result;
11371 }
11372 _ACEOF
11373 if ac_fn_c_try_run "$LINENO"; then :
11374 gl_cv_func_mbrtowc_null_arg1=yes
11375 else
11376 gl_cv_func_mbrtowc_null_arg1=no
11377 fi
11378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11379 conftest.$ac_objext conftest.beam conftest.$ac_ext
11380 fi
11381
11382 fi
11383
11384 fi
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
11386 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
11387
11388
11389
11390
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
11392 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
11393 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
11394 $as_echo_n "(cached) " >&6
11395 else
11396
11397 case "$host_os" in
11398 # Guess no on OSF/1.
11399 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
11400 # Guess yes otherwise.
11401 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
11402 esac
11403 if test $LOCALE_FR_UTF8 != none; then
11404 if test "$cross_compiling" = yes; then :
11405 :
11406 else
11407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11408 /* end confdefs.h. */
11409
11410 #include <locale.h>
11411 #include <string.h>
11412 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11413 <wchar.h>.
11414 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11415 included before <wchar.h>. */
11416 #include <stddef.h>
11417 #include <stdio.h>
11418 #include <time.h>
11419 #include <wchar.h>
11420 int main ()
11421 {
11422 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
11423 {
11424 mbstate_t state;
11425 wchar_t wc;
11426 int ret;
11427
11428 memset (&state, '\0', sizeof (mbstate_t));
11429 wc = (wchar_t) 0xBADFACE;
11430 mbrtowc (&wc, NULL, 5, &state);
11431 /* Check that wc was not modified. */
11432 if (wc != (wchar_t) 0xBADFACE)
11433 return 1;
11434 }
11435 return 0;
11436 }
11437 _ACEOF
11438 if ac_fn_c_try_run "$LINENO"; then :
11439 gl_cv_func_mbrtowc_null_arg2=yes
11440 else
11441 gl_cv_func_mbrtowc_null_arg2=no
11442 fi
11443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11444 conftest.$ac_objext conftest.beam conftest.$ac_ext
11445 fi
11446
11447 fi
11448
11449 fi
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
11451 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
11452
11453
11454
11455
11456
11457
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
11459 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
11460 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
11461 $as_echo_n "(cached) " >&6
11462 else
11463
11464 case "$host_os" in
11465 # Guess no on HP-UX, Solaris, native Windows.
11466 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
11467 # Guess yes otherwise.
11468 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
11469 esac
11470 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
11471 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
11472 if test "$cross_compiling" = yes; then :
11473 :
11474 else
11475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11476 /* end confdefs.h. */
11477
11478 #include <locale.h>
11479 #include <string.h>
11480 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11481 <wchar.h>.
11482 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11483 included before <wchar.h>. */
11484 #include <stddef.h>
11485 #include <stdio.h>
11486 #include <time.h>
11487 #include <wchar.h>
11488 int main ()
11489 {
11490 int result = 0;
11491 int found_some_locale = 0;
11492 /* This fails on Solaris. */
11493 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
11494 {
11495 char input[] = "B\303\274\303\237er"; /* "Büßer" */
11496 mbstate_t state;
11497 wchar_t wc;
11498
11499 memset (&state, '\0', sizeof (mbstate_t));
11500 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
11501 {
11502 input[1] = '\0';
11503 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
11504 result |= 1;
11505 }
11506 found_some_locale = 1;
11507 }
11508 /* This fails on HP-UX 11.11. */
11509 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
11510 {
11511 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
11512 mbstate_t state;
11513 wchar_t wc;
11514
11515 memset (&state, '\0', sizeof (mbstate_t));
11516 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
11517 {
11518 input[1] = '\0';
11519 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
11520 result |= 2;
11521 }
11522 found_some_locale = 1;
11523 }
11524 /* This fails on native Windows. */
11525 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
11526 {
11527 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
11528 mbstate_t state;
11529 wchar_t wc;
11530
11531 memset (&state, '\0', sizeof (mbstate_t));
11532 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
11533 {
11534 input[3] = '\0';
11535 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
11536 result |= 4;
11537 }
11538 found_some_locale = 1;
11539 }
11540 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
11541 {
11542 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
11543 mbstate_t state;
11544 wchar_t wc;
11545
11546 memset (&state, '\0', sizeof (mbstate_t));
11547 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
11548 {
11549 input[3] = '\0';
11550 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
11551 result |= 8;
11552 }
11553 found_some_locale = 1;
11554 }
11555 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
11556 {
11557 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
11558 mbstate_t state;
11559 wchar_t wc;
11560
11561 memset (&state, '\0', sizeof (mbstate_t));
11562 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
11563 {
11564 input[3] = '\0';
11565 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
11566 result |= 16;
11567 }
11568 found_some_locale = 1;
11569 }
11570 return (found_some_locale ? result : 77);
11571 }
11572 _ACEOF
11573 if ac_fn_c_try_run "$LINENO"; then :
11574 gl_cv_func_mbrtowc_retval=yes
11575 else
11576 if test $? != 77; then
11577 gl_cv_func_mbrtowc_retval=no
11578 fi
11579
11580 fi
11581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11582 conftest.$ac_objext conftest.beam conftest.$ac_ext
11583 fi
11584
11585 fi
11586
11587 fi
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
11589 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
11590
11591
11592
11593
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
11595 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
11596 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
11597 $as_echo_n "(cached) " >&6
11598 else
11599
11600 case "$host_os" in
11601 # Guess no on Solaris 8 and 9.
11602 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
11603 # Guess yes otherwise.
11604 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
11605 esac
11606 if test $LOCALE_ZH_CN != none; then
11607 if test "$cross_compiling" = yes; then :
11608 :
11609 else
11610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11611 /* end confdefs.h. */
11612
11613 #include <locale.h>
11614 #include <string.h>
11615 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11616 <wchar.h>.
11617 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11618 included before <wchar.h>. */
11619 #include <stddef.h>
11620 #include <stdio.h>
11621 #include <time.h>
11622 #include <wchar.h>
11623 int main ()
11624 {
11625 /* This fails on Solaris 8 and 9. */
11626 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
11627 {
11628 mbstate_t state;
11629 wchar_t wc;
11630
11631 memset (&state, '\0', sizeof (mbstate_t));
11632 if (mbrtowc (&wc, "", 1, &state) != 0)
11633 return 1;
11634 }
11635 return 0;
11636 }
11637 _ACEOF
11638 if ac_fn_c_try_run "$LINENO"; then :
11639 gl_cv_func_mbrtowc_nul_retval=yes
11640 else
11641 gl_cv_func_mbrtowc_nul_retval=no
11642 fi
11643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11644 conftest.$ac_objext conftest.beam conftest.$ac_ext
11645 fi
11646
11647 fi
11648
11649 fi
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
11651 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
11652
11653 case "$gl_cv_func_mbrtowc_null_arg1" in
11654 *yes) ;;
11655 *)
11656 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
11657
11658 REPLACE_MBRTOWC=1
11659 ;;
11660 esac
11661 case "$gl_cv_func_mbrtowc_null_arg2" in
11662 *yes) ;;
11663 *)
11664 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
11665
11666 REPLACE_MBRTOWC=1
11667 ;;
11668 esac
11669 case "$gl_cv_func_mbrtowc_retval" in
11670 *yes) ;;
11671 *)
11672 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
11673
11674 REPLACE_MBRTOWC=1
11675 ;;
11676 esac
11677 case "$gl_cv_func_mbrtowc_nul_retval" in
11678 *yes) ;;
11679 *)
11680 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
11681
11682 REPLACE_MBRTOWC=1
11683 ;;
11684 esac
11685 fi
11686 fi
11687
11688 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
11689
11690
11691
11692
11693
11694
11695
11696
11697 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
11698
11699
11700 :
11701
11702 fi
11703
11704
11705
11706
11707
11708 GNULIB_MBRTOWC=1
11709
11710
11711
11712
11713
11714 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
11730
11731
11732
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
11734 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
11735 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
11736 $as_echo_n "(cached) " >&6
11737 else
11738
11739 case "$host_os" in
11740 # Guess no on AIX and OSF/1.
11741 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
11742 # Guess yes otherwise.
11743 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
11744 esac
11745 if test $LOCALE_JA != none; then
11746 if test "$cross_compiling" = yes; then :
11747 :
11748 else
11749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11750 /* end confdefs.h. */
11751
11752 #include <locale.h>
11753 #include <string.h>
11754 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11755 <wchar.h>.
11756 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11757 included before <wchar.h>. */
11758 #include <stddef.h>
11759 #include <stdio.h>
11760 #include <time.h>
11761 #include <wchar.h>
11762 int main ()
11763 {
11764 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
11765 {
11766 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
11767 mbstate_t state;
11768 wchar_t wc;
11769
11770 memset (&state, '\0', sizeof (mbstate_t));
11771 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
11772 if (mbsinit (&state))
11773 return 1;
11774 }
11775 return 0;
11776 }
11777 _ACEOF
11778 if ac_fn_c_try_run "$LINENO"; then :
11779 gl_cv_func_mbrtowc_incomplete_state=yes
11780 else
11781 gl_cv_func_mbrtowc_incomplete_state=no
11782 fi
11783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11784 conftest.$ac_objext conftest.beam conftest.$ac_ext
11785 fi
11786
11787 fi
11788
11789 fi
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
11791 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
11792
11793
11794
11795
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
11797 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
11798 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
11799 $as_echo_n "(cached) " >&6
11800 else
11801
11802 case "$host_os" in
11803 # Guess no on Solaris 8.
11804 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
11805 # Guess yes otherwise.
11806 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
11807 esac
11808 if test $LOCALE_ZH_CN != none; then
11809 if test "$cross_compiling" = yes; then :
11810 :
11811 else
11812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11813 /* end confdefs.h. */
11814
11815 #include <locale.h>
11816 #include <stdlib.h>
11817 #include <string.h>
11818 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11819 <wchar.h>.
11820 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11821 included before <wchar.h>. */
11822 #include <stddef.h>
11823 #include <stdio.h>
11824 #include <time.h>
11825 #include <wchar.h>
11826 int main ()
11827 {
11828 /* This fails on Solaris 8:
11829 mbrtowc returns 2, and sets wc to 0x00F0.
11830 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
11831 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
11832 {
11833 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
11834 mbstate_t state;
11835 wchar_t wc;
11836
11837 memset (&state, '\0', sizeof (mbstate_t));
11838 if (mbrtowc (&wc, input + 3, 6, &state) != 4
11839 && mbtowc (&wc, input + 3, 6) == 4)
11840 return 1;
11841 }
11842 return 0;
11843 }
11844 _ACEOF
11845 if ac_fn_c_try_run "$LINENO"; then :
11846 gl_cv_func_mbrtowc_sanitycheck=yes
11847 else
11848 gl_cv_func_mbrtowc_sanitycheck=no
11849 fi
11850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11851 conftest.$ac_objext conftest.beam conftest.$ac_ext
11852 fi
11853
11854 fi
11855
11856 fi
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
11858 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
11859
11860 REPLACE_MBSTATE_T=0
11861 case "$gl_cv_func_mbrtowc_incomplete_state" in
11862 *yes) ;;
11863 *) REPLACE_MBSTATE_T=1 ;;
11864 esac
11865 case "$gl_cv_func_mbrtowc_sanitycheck" in
11866 *yes) ;;
11867 *) REPLACE_MBSTATE_T=1 ;;
11868 esac
11869 else
11870 REPLACE_MBSTATE_T=1
11871 fi
11872
11873
11874
11875 if test $ac_cv_func_mbsinit = no; then
11876 HAVE_MBSINIT=0
11877 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
11878 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11879 <wchar.h>.
11880 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11881 included before <wchar.h>. */
11882 #include <stddef.h>
11883 #include <stdio.h>
11884 #include <time.h>
11885 #include <wchar.h>
11886
11887 "
11888 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
11889 ac_have_decl=1
11890 else
11891 ac_have_decl=0
11892 fi
11893
11894 cat >>confdefs.h <<_ACEOF
11895 #define HAVE_DECL_MBSINIT $ac_have_decl
11896 _ACEOF
11897
11898 if test $ac_cv_have_decl_mbsinit = yes; then
11899 REPLACE_MBSINIT=1
11900 fi
11901 else
11902 if test $REPLACE_MBSTATE_T = 1; then
11903 REPLACE_MBSINIT=1
11904 else
11905 case "$host_os" in
11906 mingw*) REPLACE_MBSINIT=1 ;;
11907 esac
11908 fi
11909 fi
11910
11911 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
11912
11913
11914
11915
11916
11917
11918
11919
11920 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
11921
11922
11923 :
11924
11925 fi
11926
11927
11928
11929
11930
11931 GNULIB_MBSINIT=1
11932
11933
11934
11935
11936
11937 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
11952
11953
11954
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
11956 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
11957 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
11958 $as_echo_n "(cached) " >&6
11959 else
11960
11961 case "$host_os" in
11962 # Guess no on AIX and OSF/1.
11963 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
11964 # Guess yes otherwise.
11965 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
11966 esac
11967 if test $LOCALE_JA != none; then
11968 if test "$cross_compiling" = yes; then :
11969 :
11970 else
11971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11972 /* end confdefs.h. */
11973
11974 #include <locale.h>
11975 #include <string.h>
11976 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11977 <wchar.h>.
11978 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11979 included before <wchar.h>. */
11980 #include <stddef.h>
11981 #include <stdio.h>
11982 #include <time.h>
11983 #include <wchar.h>
11984 int main ()
11985 {
11986 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
11987 {
11988 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
11989 mbstate_t state;
11990 wchar_t wc;
11991
11992 memset (&state, '\0', sizeof (mbstate_t));
11993 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
11994 if (mbsinit (&state))
11995 return 1;
11996 }
11997 return 0;
11998 }
11999 _ACEOF
12000 if ac_fn_c_try_run "$LINENO"; then :
12001 gl_cv_func_mbrtowc_incomplete_state=yes
12002 else
12003 gl_cv_func_mbrtowc_incomplete_state=no
12004 fi
12005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12006 conftest.$ac_objext conftest.beam conftest.$ac_ext
12007 fi
12008
12009 fi
12010
12011 fi
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12013 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
12014
12015
12016
12017
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12019 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
12020 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
12021 $as_echo_n "(cached) " >&6
12022 else
12023
12024 case "$host_os" in
12025 # Guess no on Solaris 8.
12026 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12027 # Guess yes otherwise.
12028 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12029 esac
12030 if test $LOCALE_ZH_CN != none; then
12031 if test "$cross_compiling" = yes; then :
12032 :
12033 else
12034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12035 /* end confdefs.h. */
12036
12037 #include <locale.h>
12038 #include <stdlib.h>
12039 #include <string.h>
12040 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12041 <wchar.h>.
12042 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12043 included before <wchar.h>. */
12044 #include <stddef.h>
12045 #include <stdio.h>
12046 #include <time.h>
12047 #include <wchar.h>
12048 int main ()
12049 {
12050 /* This fails on Solaris 8:
12051 mbrtowc returns 2, and sets wc to 0x00F0.
12052 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12053 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12054 {
12055 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12056 mbstate_t state;
12057 wchar_t wc;
12058
12059 memset (&state, '\0', sizeof (mbstate_t));
12060 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12061 && mbtowc (&wc, input + 3, 6) == 4)
12062 return 1;
12063 }
12064 return 0;
12065 }
12066 _ACEOF
12067 if ac_fn_c_try_run "$LINENO"; then :
12068 gl_cv_func_mbrtowc_sanitycheck=yes
12069 else
12070 gl_cv_func_mbrtowc_sanitycheck=no
12071 fi
12072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12073 conftest.$ac_objext conftest.beam conftest.$ac_ext
12074 fi
12075
12076 fi
12077
12078 fi
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12080 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12081
12082 REPLACE_MBSTATE_T=0
12083 case "$gl_cv_func_mbrtowc_incomplete_state" in
12084 *yes) ;;
12085 *) REPLACE_MBSTATE_T=1 ;;
12086 esac
12087 case "$gl_cv_func_mbrtowc_sanitycheck" in
12088 *yes) ;;
12089 *) REPLACE_MBSTATE_T=1 ;;
12090 esac
12091 else
12092 REPLACE_MBSTATE_T=1
12093 fi
12094
12095
12096
12097 if test $ac_cv_func_mbsrtowcs = no; then
12098 HAVE_MBSRTOWCS=0
12099 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
12100 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12101 <wchar.h>.
12102 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12103 included before <wchar.h>. */
12104 #include <stddef.h>
12105 #include <stdio.h>
12106 #include <time.h>
12107 #include <wchar.h>
12108
12109 "
12110 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
12111 ac_have_decl=1
12112 else
12113 ac_have_decl=0
12114 fi
12115
12116 cat >>confdefs.h <<_ACEOF
12117 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
12118 _ACEOF
12119
12120 if test $ac_cv_have_decl_mbsrtowcs = yes; then
12121 REPLACE_MBSRTOWCS=1
12122 fi
12123 else
12124 if test $REPLACE_MBSTATE_T = 1; then
12125 REPLACE_MBSRTOWCS=1
12126 else
12127
12128
12129
12130
12131
12132
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
12134 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
12135 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
12136 $as_echo_n "(cached) " >&6
12137 else
12138
12139 case "$host_os" in
12140 # Guess no on HP-UX, Solaris, mingw.
12141 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
12142 # Guess yes otherwise.
12143 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
12144 esac
12145 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
12146 if test "$cross_compiling" = yes; then :
12147 :
12148 else
12149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12150 /* end confdefs.h. */
12151
12152 #include <locale.h>
12153 #include <string.h>
12154 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12155 <wchar.h>.
12156 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12157 included before <wchar.h>. */
12158 #include <stddef.h>
12159 #include <stdio.h>
12160 #include <time.h>
12161 #include <wchar.h>
12162 int main ()
12163 {
12164 int result = 0;
12165 /* Test whether the function supports a NULL destination argument.
12166 This fails on native Windows. */
12167 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
12168 {
12169 const char input[] = "\337er";
12170 const char *src = input;
12171 mbstate_t state;
12172
12173 memset (&state, '\0', sizeof (mbstate_t));
12174 if (mbsrtowcs (NULL, &src, 1, &state) != 3
12175 || src != input)
12176 result |= 1;
12177 }
12178 /* Test whether the function works when started with a conversion state
12179 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
12180 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12181 {
12182 const char input[] = "B\303\274\303\237er";
12183 mbstate_t state;
12184
12185 memset (&state, '\0', sizeof (mbstate_t));
12186 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
12187 if (!mbsinit (&state))
12188 {
12189 const char *src = input + 2;
12190 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
12191 result |= 2;
12192 }
12193 }
12194 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12195 {
12196 const char input[] = "<\306\374\313\334\270\354>";
12197 mbstate_t state;
12198
12199 memset (&state, '\0', sizeof (mbstate_t));
12200 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
12201 if (!mbsinit (&state))
12202 {
12203 const char *src = input + 4;
12204 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
12205 result |= 4;
12206 }
12207 }
12208 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12209 {
12210 const char input[] = "B\250\271\201\060\211\070er";
12211 mbstate_t state;
12212
12213 memset (&state, '\0', sizeof (mbstate_t));
12214 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
12215 if (!mbsinit (&state))
12216 {
12217 const char *src = input + 2;
12218 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
12219 result |= 8;
12220 }
12221 }
12222 return result;
12223 }
12224 _ACEOF
12225 if ac_fn_c_try_run "$LINENO"; then :
12226 gl_cv_func_mbsrtowcs_works=yes
12227 else
12228 gl_cv_func_mbsrtowcs_works=no
12229 fi
12230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12231 conftest.$ac_objext conftest.beam conftest.$ac_ext
12232 fi
12233
12234 fi
12235
12236 fi
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
12238 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
12239
12240 case "$gl_cv_func_mbsrtowcs_works" in
12241 *yes) ;;
12242 *) REPLACE_MBSRTOWCS=1 ;;
12243 esac
12244 fi
12245 fi
12246
12247 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
12248
12249
12250
12251
12252
12253
12254
12255
12256 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
12267
12268
12269 :
12270
12271 fi
12272
12273
12274
12275
12276
12277 GNULIB_MBSRTOWCS=1
12278
12279
12280
12281
12282
12283 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
12284
12285
12286
12287
12288 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
12289
12290
12291
12292
12293
12294
12295
12296
12297 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
12298
12299
12300 for ac_header in bp-sym.h
12301 do :
12302 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
12303 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
12304 cat >>confdefs.h <<_ACEOF
12305 #define HAVE_BP_SYM_H 1
12306 _ACEOF
12307
12308 fi
12309
12310 done
12311
12312
12313 fi
12314
12315
12316
12317
12318
12319 GNULIB_MEMCHR=1
12320
12321
12322
12323
12324
12325 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
12326
12327
12328
12329
12330
12331 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
12333 $as_echo_n "checking whether memmem works in linear time... " >&6; }
12334 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
12335 $as_echo_n "(cached) " >&6
12336 else
12337 if test "$cross_compiling" = yes; then :
12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h. */
12340
12341 #include <features.h>
12342 #ifdef __GNU_LIBRARY__
12343 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
12344 && !defined __UCLIBC__
12345 Lucky user
12346 #endif
12347 #endif
12348 #ifdef __CYGWIN__
12349 #include <cygwin/version.h>
12350 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
12351 Lucky user
12352 #endif
12353 #endif
12354
12355 _ACEOF
12356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12357 $EGREP "Lucky user" >/dev/null 2>&1; then :
12358 gl_cv_func_memmem_works_fast="guessing yes"
12359 else
12360 gl_cv_func_memmem_works_fast="guessing no"
12361 fi
12362 rm -f conftest*
12363
12364
12365 else
12366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12367 /* end confdefs.h. */
12368
12369 #include <signal.h> /* for signal */
12370 #include <string.h> /* for memmem */
12371 #include <stdlib.h> /* for malloc */
12372 #include <unistd.h> /* for alarm */
12373 static void quit (int sig) { exit (sig + 128); }
12374
12375 int
12376 main ()
12377 {
12378
12379 int result = 0;
12380 size_t m = 1000000;
12381 char *haystack = (char *) malloc (2 * m + 1);
12382 char *needle = (char *) malloc (m + 1);
12383 /* Failure to compile this test due to missing alarm is okay,
12384 since all such platforms (mingw) also lack memmem. */
12385 signal (SIGALRM, quit);
12386 alarm (5);
12387 /* Check for quadratic performance. */
12388 if (haystack && needle)
12389 {
12390 memset (haystack, 'A', 2 * m);
12391 haystack[2 * m] = 'B';
12392 memset (needle, 'A', m);
12393 needle[m] = 'B';
12394 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
12395 result |= 1;
12396 }
12397 return result;
12398
12399 ;
12400 return 0;
12401 }
12402 _ACEOF
12403 if ac_fn_c_try_run "$LINENO"; then :
12404 gl_cv_func_memmem_works_fast=yes
12405 else
12406 gl_cv_func_memmem_works_fast=no
12407 fi
12408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12409 conftest.$ac_objext conftest.beam conftest.$ac_ext
12410 fi
12411
12412
12413 fi
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
12415 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
12416 case "$gl_cv_func_memmem_works_fast" in
12417 *yes) ;;
12418 *)
12419 REPLACE_MEMMEM=1
12420 ;;
12421 esac
12422 fi
12423
12424 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
12425
12426
12427
12428
12429
12430
12431
12432
12433 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
12434
12435 fi
12436
12437
12438
12439
12440 for ac_func in memmem
12441 do :
12442 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
12443 if test "x$ac_cv_func_memmem" = x""yes; then :
12444 cat >>confdefs.h <<_ACEOF
12445 #define HAVE_MEMMEM 1
12446 _ACEOF
12447
12448 fi
12449 done
12450
12451 if test $ac_cv_func_memmem = yes; then
12452 HAVE_MEMMEM=1
12453 else
12454 HAVE_MEMMEM=0
12455 fi
12456
12457 if test $ac_cv_have_decl_memmem = no; then
12458 HAVE_DECL_MEMMEM=0
12459 else
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
12461 $as_echo_n "checking whether memmem works... " >&6; }
12462 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
12463 $as_echo_n "(cached) " >&6
12464 else
12465 if test "$cross_compiling" = yes; then :
12466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467 /* end confdefs.h. */
12468
12469 #ifdef __GNU_LIBRARY__
12470 #include <features.h>
12471 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
12472 || __GLIBC_MINOR__ > 12)) \
12473 || (__GLIBC__ > 2)) \
12474 || defined __UCLIBC__
12475 Lucky user
12476 #endif
12477 #elif defined __CYGWIN__
12478 #include <cygwin/version.h>
12479 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
12480 Lucky user
12481 #endif
12482 #else
12483 Lucky user
12484 #endif
12485
12486 _ACEOF
12487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12488 $EGREP "Lucky user" >/dev/null 2>&1; then :
12489 gl_cv_func_memmem_works_always="guessing yes"
12490 else
12491 gl_cv_func_memmem_works_always="guessing no"
12492 fi
12493 rm -f conftest*
12494
12495
12496 else
12497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12498 /* end confdefs.h. */
12499
12500 #include <string.h> /* for memmem */
12501 #define P "_EF_BF_BD"
12502 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
12503 #define NEEDLE P P P P P
12504
12505 int
12506 main ()
12507 {
12508
12509 int result = 0;
12510 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
12511 result |= 1;
12512 /* Check for empty needle behavior. */
12513 {
12514 const char *haystack = "AAA";
12515 if (memmem (haystack, 3, NULL, 0) != haystack)
12516 result |= 2;
12517 }
12518 return result;
12519
12520 ;
12521 return 0;
12522 }
12523 _ACEOF
12524 if ac_fn_c_try_run "$LINENO"; then :
12525 gl_cv_func_memmem_works_always=yes
12526 else
12527 gl_cv_func_memmem_works_always=no
12528 fi
12529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12530 conftest.$ac_objext conftest.beam conftest.$ac_ext
12531 fi
12532
12533
12534 fi
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
12536 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
12537 case "$gl_cv_func_memmem_works_always" in
12538 *yes) ;;
12539 *)
12540 REPLACE_MEMMEM=1
12541 ;;
12542 esac
12543 fi
12544 :
12545
12546 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
12547
12548
12549
12550
12551
12552
12553
12554
12555 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
12556
12557 fi
12558
12559
12560
12561
12562
12563 GNULIB_MEMMEM=1
12564
12565
12566
12567
12568
12569 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
12570
12571
12572
12573
12574
12575
12576
12577 # Define two additional variables used in the Makefile substitution.
12578
12579 if test "$ac_cv_header_stdbool_h" = yes; then
12580 STDBOOL_H=''
12581 else
12582 STDBOOL_H='stdbool.h'
12583 fi
12584
12585 if test -n "$STDBOOL_H"; then
12586 GL_GENERATE_STDBOOL_H_TRUE=
12587 GL_GENERATE_STDBOOL_H_FALSE='#'
12588 else
12589 GL_GENERATE_STDBOOL_H_TRUE='#'
12590 GL_GENERATE_STDBOOL_H_FALSE=
12591 fi
12592
12593
12594 if test "$ac_cv_type__Bool" = yes; then
12595 HAVE__BOOL=1
12596 else
12597 HAVE__BOOL=0
12598 fi
12599
12600
12601
12602
12603
12604 STDDEF_H=
12605 if test $gt_cv_c_wchar_t = no; then
12606 HAVE_WCHAR_T=0
12607 STDDEF_H=stddef.h
12608 fi
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
12610 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
12611 if test "${gl_cv_decl_null_works+set}" = set; then :
12612 $as_echo_n "(cached) " >&6
12613 else
12614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12615 /* end confdefs.h. */
12616 #include <stddef.h>
12617 int test[2 * (sizeof NULL == sizeof (void *)) -1];
12618
12619 int
12620 main ()
12621 {
12622
12623 ;
12624 return 0;
12625 }
12626 _ACEOF
12627 if ac_fn_c_try_compile "$LINENO"; then :
12628 gl_cv_decl_null_works=yes
12629 else
12630 gl_cv_decl_null_works=no
12631 fi
12632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12633 fi
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
12635 $as_echo "$gl_cv_decl_null_works" >&6; }
12636 if test $gl_cv_decl_null_works = no; then
12637 REPLACE_NULL=1
12638 STDDEF_H=stddef.h
12639 fi
12640
12641 if test -n "$STDDEF_H"; then
12642 GL_GENERATE_STDDEF_H_TRUE=
12643 GL_GENERATE_STDDEF_H_FALSE='#'
12644 else
12645 GL_GENERATE_STDDEF_H_TRUE='#'
12646 GL_GENERATE_STDDEF_H_FALSE=
12647 fi
12648
12649 if test -n "$STDDEF_H"; then
12650
12651
12652
12653
12654
12655
12656
12657
12658 if test $gl_cv_have_include_next = yes; then
12659 gl_cv_next_stddef_h='<'stddef.h'>'
12660 else
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
12662 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
12663 if test "${gl_cv_next_stddef_h+set}" = set; then :
12664 $as_echo_n "(cached) " >&6
12665 else
12666
12667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12668 /* end confdefs.h. */
12669 #include <stddef.h>
12670
12671 _ACEOF
12672 case "$host_os" in
12673 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12674 *) gl_absname_cpp="$ac_cpp" ;;
12675 esac
12676
12677 case "$host_os" in
12678 mingw*)
12679 gl_dirsep_regex='[/\\]'
12680 ;;
12681 *)
12682 gl_dirsep_regex='\/'
12683 ;;
12684 esac
12685 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12686
12687 gl_header_literal_regex=`echo 'stddef.h' \
12688 | sed -e "$gl_make_literal_regex_sed"`
12689 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12690 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12691 s|^/[^/]|//&|
12692 p
12693 q
12694 }'
12695 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12696 sed -n "$gl_absolute_header_sed"`'"'
12697
12698
12699 fi
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
12701 $as_echo "$gl_cv_next_stddef_h" >&6; }
12702 fi
12703 NEXT_STDDEF_H=$gl_cv_next_stddef_h
12704
12705 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12706 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12707 gl_next_as_first_directive='<'stddef.h'>'
12708 else
12709 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12710 gl_next_as_first_directive=$gl_cv_next_stddef_h
12711 fi
12712 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
12713
12714
12715
12716
12717 fi
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735 if test $gl_cv_have_include_next = yes; then
12736 gl_cv_next_wchar_h='<'wchar.h'>'
12737 else
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
12739 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
12740 if test "${gl_cv_next_wchar_h+set}" = set; then :
12741 $as_echo_n "(cached) " >&6
12742 else
12743
12744 if test $ac_cv_header_wchar_h = yes; then
12745
12746
12747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12748 /* end confdefs.h. */
12749 #include <wchar.h>
12750
12751 _ACEOF
12752 case "$host_os" in
12753 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12754 *) gl_absname_cpp="$ac_cpp" ;;
12755 esac
12756
12757 case "$host_os" in
12758 mingw*)
12759 gl_dirsep_regex='[/\\]'
12760 ;;
12761 *)
12762 gl_dirsep_regex='\/'
12763 ;;
12764 esac
12765 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12766
12767 gl_header_literal_regex=`echo 'wchar.h' \
12768 | sed -e "$gl_make_literal_regex_sed"`
12769 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12770 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12771 s|^/[^/]|//&|
12772 p
12773 q
12774 }'
12775 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12776 sed -n "$gl_absolute_header_sed"`'"'
12777 else
12778 gl_cv_next_wchar_h='<'wchar.h'>'
12779 fi
12780
12781
12782 fi
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
12784 $as_echo "$gl_cv_next_wchar_h" >&6; }
12785 fi
12786 NEXT_WCHAR_H=$gl_cv_next_wchar_h
12787
12788 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12789 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12790 gl_next_as_first_directive='<'wchar.h'>'
12791 else
12792 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12793 gl_next_as_first_directive=$gl_cv_next_wchar_h
12794 fi
12795 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
12796
12797
12798
12799
12800 if test $ac_cv_header_wchar_h = yes; then
12801 HAVE_WCHAR_H=1
12802 else
12803 HAVE_WCHAR_H=0
12804 fi
12805
12806
12807
12808
12809
12810 if test $gt_cv_c_wint_t = yes; then
12811 HAVE_WINT_T=1
12812 else
12813 HAVE_WINT_T=0
12814 fi
12815
12816
12817
12818 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
12819 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
12821 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
12822 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
12823 $as_echo_n "(cached) " >&6
12824 else
12825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12826 /* end confdefs.h. */
12827
12828 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
12829 <wchar.h>.
12830 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
12831 included before <wchar.h>. */
12832 #if !(defined __GLIBC__ && !defined __UCLIBC__)
12833 # include <stddef.h>
12834 # include <stdio.h>
12835 # include <time.h>
12836 #endif
12837 #include <wchar.h>
12838
12839 int
12840 main ()
12841 {
12842 #undef $gl_func
12843 (void) $gl_func;
12844 ;
12845 return 0;
12846 }
12847 _ACEOF
12848 if ac_fn_c_try_compile "$LINENO"; then :
12849 eval "$as_gl_Symbol=yes"
12850 else
12851 eval "$as_gl_Symbol=no"
12852 fi
12853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12854 fi
12855 eval ac_res=\$$as_gl_Symbol
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12857 $as_echo "$ac_res" >&6; }
12858 eval as_val=\$$as_gl_Symbol
12859 if test "x$as_val" = x""yes; then :
12860 cat >>confdefs.h <<_ACEOF
12861 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
12862 _ACEOF
12863
12864 eval ac_cv_have_decl_$gl_func=yes
12865 fi
12866 done
12867
12868
12869
12870
12871
12872
12873
12874 if test $ac_cv_func_iswcntrl = yes; then
12875 HAVE_ISWCNTRL=1
12876 else
12877 HAVE_ISWCNTRL=0
12878 fi
12879
12880
12881
12882 if test $gt_cv_c_wint_t = yes; then
12883 HAVE_WINT_T=1
12884 else
12885 HAVE_WINT_T=0
12886 fi
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898 if test $gl_cv_have_include_next = yes; then
12899 gl_cv_next_wctype_h='<'wctype.h'>'
12900 else
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
12902 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
12903 if test "${gl_cv_next_wctype_h+set}" = set; then :
12904 $as_echo_n "(cached) " >&6
12905 else
12906
12907 if test $ac_cv_header_wctype_h = yes; then
12908
12909
12910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12911 /* end confdefs.h. */
12912 #include <wctype.h>
12913
12914 _ACEOF
12915 case "$host_os" in
12916 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12917 *) gl_absname_cpp="$ac_cpp" ;;
12918 esac
12919
12920 case "$host_os" in
12921 mingw*)
12922 gl_dirsep_regex='[/\\]'
12923 ;;
12924 *)
12925 gl_dirsep_regex='\/'
12926 ;;
12927 esac
12928 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12929
12930 gl_header_literal_regex=`echo 'wctype.h' \
12931 | sed -e "$gl_make_literal_regex_sed"`
12932 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12933 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12934 s|^/[^/]|//&|
12935 p
12936 q
12937 }'
12938 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12939 sed -n "$gl_absolute_header_sed"`'"'
12940 else
12941 gl_cv_next_wctype_h='<'wctype.h'>'
12942 fi
12943
12944
12945 fi
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
12947 $as_echo "$gl_cv_next_wctype_h" >&6; }
12948 fi
12949 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
12950
12951 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12952 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12953 gl_next_as_first_directive='<'wctype.h'>'
12954 else
12955 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12956 gl_next_as_first_directive=$gl_cv_next_wctype_h
12957 fi
12958 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
12959
12960
12961
12962
12963 if test $ac_cv_header_wctype_h = yes; then
12964 if test $ac_cv_func_iswcntrl = yes; then
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
12966 $as_echo_n "checking whether iswcntrl works... " >&6; }
12967 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
12968 $as_echo_n "(cached) " >&6
12969 else
12970
12971 if test "$cross_compiling" = yes; then :
12972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12973 /* end confdefs.h. */
12974 #include <stdlib.h>
12975 #if __GNU_LIBRARY__ == 1
12976 Linux libc5 i18n is broken.
12977 #endif
12978 int
12979 main ()
12980 {
12981
12982 ;
12983 return 0;
12984 }
12985 _ACEOF
12986 if ac_fn_c_try_compile "$LINENO"; then :
12987 gl_cv_func_iswcntrl_works="guessing yes"
12988 else
12989 gl_cv_func_iswcntrl_works="guessing no"
12990 fi
12991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12992
12993 else
12994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12995 /* end confdefs.h. */
12996
12997 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
12998 included before <wchar.h>.
12999 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13000 must be included before <wchar.h>. */
13001 #include <stddef.h>
13002 #include <stdio.h>
13003 #include <time.h>
13004 #include <wchar.h>
13005 #include <wctype.h>
13006 int main () { return iswprint ('x') == 0; }
13007
13008 _ACEOF
13009 if ac_fn_c_try_run "$LINENO"; then :
13010 gl_cv_func_iswcntrl_works=yes
13011 else
13012 gl_cv_func_iswcntrl_works=no
13013 fi
13014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13015 conftest.$ac_objext conftest.beam conftest.$ac_ext
13016 fi
13017
13018
13019 fi
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
13021 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
13022 fi
13023 HAVE_WCTYPE_H=1
13024 else
13025 HAVE_WCTYPE_H=0
13026 fi
13027
13028
13029 case "$gl_cv_func_iswcntrl_works" in
13030 *yes) REPLACE_ISWCNTRL=0 ;;
13031 *) REPLACE_ISWCNTRL=1 ;;
13032 esac
13033
13034
13035 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
13036 :
13037 fi
13038
13039 if test $REPLACE_ISWCNTRL = 1; then
13040 REPLACE_TOWLOWER=1
13041 else
13042 for ac_func in towlower
13043 do :
13044 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
13045 if test "x$ac_cv_func_towlower" = x""yes; then :
13046 cat >>confdefs.h <<_ACEOF
13047 #define HAVE_TOWLOWER 1
13048 _ACEOF
13049
13050 fi
13051 done
13052
13053 if test $ac_cv_func_towlower = yes; then
13054 REPLACE_TOWLOWER=0
13055 else
13056 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13057 included before <wchar.h>.
13058 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13059 must be included before <wchar.h>. */
13060 #include <stddef.h>
13061 #include <stdio.h>
13062 #include <time.h>
13063 #include <wchar.h>
13064 #if HAVE_WCTYPE_H
13065 # include <wctype.h>
13066 #endif
13067
13068 "
13069 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
13070 ac_have_decl=1
13071 else
13072 ac_have_decl=0
13073 fi
13074
13075 cat >>confdefs.h <<_ACEOF
13076 #define HAVE_DECL_TOWLOWER $ac_have_decl
13077 _ACEOF
13078
13079 if test $ac_cv_have_decl_towlower = yes; then
13080 REPLACE_TOWLOWER=1
13081 else
13082 REPLACE_TOWLOWER=0
13083 fi
13084 fi
13085 fi
13086
13087
13088 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
13089 :
13090 fi
13091
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
13093 $as_echo_n "checking for wctype_t... " >&6; }
13094 if test "${gl_cv_type_wctype_t+set}" = set; then :
13095 $as_echo_n "(cached) " >&6
13096 else
13097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13098 /* end confdefs.h. */
13099 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13100 included before <wchar.h>.
13101 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13102 must be included before <wchar.h>. */
13103 #include <stddef.h>
13104 #include <stdio.h>
13105 #include <time.h>
13106 #include <wchar.h>
13107 #if HAVE_WCTYPE_H
13108 # include <wctype.h>
13109 #endif
13110 wctype_t a;
13111
13112 int
13113 main ()
13114 {
13115
13116 ;
13117 return 0;
13118 }
13119 _ACEOF
13120 if ac_fn_c_try_compile "$LINENO"; then :
13121 gl_cv_type_wctype_t=yes
13122 else
13123 gl_cv_type_wctype_t=no
13124 fi
13125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13126
13127 fi
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
13129 $as_echo "$gl_cv_type_wctype_t" >&6; }
13130 if test $gl_cv_type_wctype_t = no; then
13131 HAVE_WCTYPE_T=0
13132 fi
13133
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
13135 $as_echo_n "checking for wctrans_t... " >&6; }
13136 if test "${gl_cv_type_wctrans_t+set}" = set; then :
13137 $as_echo_n "(cached) " >&6
13138 else
13139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13140 /* end confdefs.h. */
13141 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
13142 included before <wchar.h>.
13143 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
13144 must be included before <wchar.h>. */
13145 #include <stddef.h>
13146 #include <stdio.h>
13147 #include <time.h>
13148 #include <wchar.h>
13149 #include <wctype.h>
13150 wctrans_t a;
13151
13152 int
13153 main ()
13154 {
13155
13156 ;
13157 return 0;
13158 }
13159 _ACEOF
13160 if ac_fn_c_try_compile "$LINENO"; then :
13161 gl_cv_type_wctrans_t=yes
13162 else
13163 gl_cv_type_wctrans_t=no
13164 fi
13165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13166
13167 fi
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
13169 $as_echo "$gl_cv_type_wctrans_t" >&6; }
13170 if test $gl_cv_type_wctrans_t = no; then
13171 HAVE_WCTRANS_T=0
13172 fi
13173
13174
13175 for gl_func in wctype iswctype wctrans towctrans ; do
13176 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
13178 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
13179 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
13180 $as_echo_n "(cached) " >&6
13181 else
13182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13183 /* end confdefs.h. */
13184
13185 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13186 <wchar.h>.
13187 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
13188 included before <wchar.h>. */
13189 #if !(defined __GLIBC__ && !defined __UCLIBC__)
13190 # include <stddef.h>
13191 # include <stdio.h>
13192 # include <time.h>
13193 # include <wchar.h>
13194 #endif
13195 #include <wctype.h>
13196
13197 int
13198 main ()
13199 {
13200 #undef $gl_func
13201 (void) $gl_func;
13202 ;
13203 return 0;
13204 }
13205 _ACEOF
13206 if ac_fn_c_try_compile "$LINENO"; then :
13207 eval "$as_gl_Symbol=yes"
13208 else
13209 eval "$as_gl_Symbol=no"
13210 fi
13211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13212 fi
13213 eval ac_res=\$$as_gl_Symbol
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13215 $as_echo "$ac_res" >&6; }
13216 eval as_val=\$$as_gl_Symbol
13217 if test "x$as_val" = x""yes; then :
13218 cat >>confdefs.h <<_ACEOF
13219 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
13220 _ACEOF
13221
13222 eval ac_cv_have_decl_$gl_func=yes
13223 fi
13224 done
13225
13226
13227 # End of code from modules
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237 gltests_libdeps=
13238 gltests_ltlibdeps=
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248 gl_source_base='tests'
13249 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
13250
13251 gl_module_indicator_condition=$gltests_WITNESS
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261 LIBGNU_LIBDEPS="$gl_libdeps"
13262
13263 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
13264
13265
13266
13267 # We don't use automake, but gnulib does. This line lets us generate
13268 # its Makefile.in.
13269 am__api_version='1.11'
13270
13271 # Find a good install program. We prefer a C program (faster),
13272 # so one script is as good as another. But avoid the broken or
13273 # incompatible versions:
13274 # SysV /etc/install, /usr/sbin/install
13275 # SunOS /usr/etc/install
13276 # IRIX /sbin/install
13277 # AIX /bin/install
13278 # AmigaOS /C/install, which installs bootblocks on floppy discs
13279 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13280 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13281 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13282 # OS/2's system install, which has a completely different semantic
13283 # ./install, which can be erroneously created by make from ./install.sh.
13284 # Reject install programs that cannot install multiple files.
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
13286 $as_echo_n "checking for a BSD-compatible install... " >&6; }
13287 if test -z "$INSTALL"; then
13288 if test "${ac_cv_path_install+set}" = set; then :
13289 $as_echo_n "(cached) " >&6
13290 else
13291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13292 for as_dir in $PATH
13293 do
13294 IFS=$as_save_IFS
13295 test -z "$as_dir" && as_dir=.
13296 # Account for people who put trailing slashes in PATH elements.
13297 case $as_dir/ in #((
13298 ./ | .// | /[cC]/* | \
13299 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13300 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13301 /usr/ucb/* ) ;;
13302 *)
13303 # OSF1 and SCO ODT 3.0 have their own names for install.
13304 # Don't use installbsd from OSF since it installs stuff as root
13305 # by default.
13306 for ac_prog in ginstall scoinst install; do
13307 for ac_exec_ext in '' $ac_executable_extensions; do
13308 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
13309 if test $ac_prog = install &&
13310 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13311 # AIX install. It has an incompatible calling convention.
13312 :
13313 elif test $ac_prog = install &&
13314 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13315 # program-specific install script used by HP pwplus--don't use.
13316 :
13317 else
13318 rm -rf conftest.one conftest.two conftest.dir
13319 echo one > conftest.one
13320 echo two > conftest.two
13321 mkdir conftest.dir
13322 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
13323 test -s conftest.one && test -s conftest.two &&
13324 test -s conftest.dir/conftest.one &&
13325 test -s conftest.dir/conftest.two
13326 then
13327 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13328 break 3
13329 fi
13330 fi
13331 fi
13332 done
13333 done
13334 ;;
13335 esac
13336
13337 done
13338 IFS=$as_save_IFS
13339
13340 rm -rf conftest.one conftest.two conftest.dir
13341
13342 fi
13343 if test "${ac_cv_path_install+set}" = set; then
13344 INSTALL=$ac_cv_path_install
13345 else
13346 # As a last resort, use the slow shell script. Don't cache a
13347 # value for INSTALL within a source directory, because that will
13348 # break other packages using the cache if that directory is
13349 # removed, or if the value is a relative name.
13350 INSTALL=$ac_install_sh
13351 fi
13352 fi
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
13354 $as_echo "$INSTALL" >&6; }
13355
13356 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13357 # It thinks the first close brace ends the variable substitution.
13358 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13359
13360 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13361
13362 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13363
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
13365 $as_echo_n "checking whether build environment is sane... " >&6; }
13366 # Just in case
13367 sleep 1
13368 echo timestamp > conftest.file
13369 # Reject unsafe characters in $srcdir or the absolute working directory
13370 # name. Accept space and tab only in the latter.
13371 am_lf='
13372 '
13373 case `pwd` in
13374 *[\\\"\#\$\&\'\`$am_lf]*)
13375 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
13376 esac
13377 case $srcdir in
13378 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
13379 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
13380 esac
13381
13382 # Do `set' in a subshell so we don't clobber the current shell's
13383 # arguments. Must try -L first in case configure is actually a
13384 # symlink; some systems play weird games with the mod time of symlinks
13385 # (eg FreeBSD returns the mod time of the symlink's containing
13386 # directory).
13387 if (
13388 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
13389 if test "$*" = "X"; then
13390 # -L didn't work.
13391 set X `ls -t "$srcdir/configure" conftest.file`
13392 fi
13393 rm -f conftest.file
13394 if test "$*" != "X $srcdir/configure conftest.file" \
13395 && test "$*" != "X conftest.file $srcdir/configure"; then
13396
13397 # If neither matched, then we have a broken ls. This can happen
13398 # if, for instance, CONFIG_SHELL is bash and it inherits a
13399 # broken ls alias from the environment. This has actually
13400 # happened. Such a system could not be considered "sane".
13401 as_fn_error "ls -t appears to fail. Make sure there is not a broken
13402 alias in your environment" "$LINENO" 5
13403 fi
13404
13405 test "$2" = conftest.file
13406 )
13407 then
13408 # Ok.
13409 :
13410 else
13411 as_fn_error "newly created file is older than distributed files!
13412 Check your system clock" "$LINENO" 5
13413 fi
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13415 $as_echo "yes" >&6; }
13416 test "$program_prefix" != NONE &&
13417 program_transform_name="s&^&$program_prefix&;$program_transform_name"
13418 # Use a double $ so make ignores it.
13419 test "$program_suffix" != NONE &&
13420 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
13421 # Double any \ or $.
13422 # By default was `s,x,x', remove it if useless.
13423 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
13424 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
13425
13426 # expand $ac_aux_dir to an absolute path
13427 am_aux_dir=`cd $ac_aux_dir && pwd`
13428
13429 if test x"${MISSING+set}" != xset; then
13430 case $am_aux_dir in
13431 *\ * | *\ *)
13432 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
13433 *)
13434 MISSING="\${SHELL} $am_aux_dir/missing" ;;
13435 esac
13436 fi
13437 # Use eval to expand $SHELL
13438 if eval "$MISSING --run true"; then
13439 am_missing_run="$MISSING --run "
13440 else
13441 am_missing_run=
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
13443 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
13444 fi
13445
13446 if test x"${install_sh}" != xset; then
13447 case $am_aux_dir in
13448 *\ * | *\ *)
13449 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
13450 *)
13451 install_sh="\${SHELL} $am_aux_dir/install-sh"
13452 esac
13453 fi
13454
13455 # Installed binaries are usually stripped using `strip' when the user
13456 # run `make install-strip'. However `strip' might not be the right
13457 # tool to use in cross-compilation environments, therefore Automake
13458 # will honor the `STRIP' environment variable to overrule this program.
13459 if test "$cross_compiling" != no; then
13460 if test -n "$ac_tool_prefix"; then
13461 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13462 set dummy ${ac_tool_prefix}strip; ac_word=$2
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13464 $as_echo_n "checking for $ac_word... " >&6; }
13465 if test "${ac_cv_prog_STRIP+set}" = set; then :
13466 $as_echo_n "(cached) " >&6
13467 else
13468 if test -n "$STRIP"; then
13469 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13470 else
13471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13472 for as_dir in $PATH
13473 do
13474 IFS=$as_save_IFS
13475 test -z "$as_dir" && as_dir=.
13476 for ac_exec_ext in '' $ac_executable_extensions; do
13477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13478 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13480 break 2
13481 fi
13482 done
13483 done
13484 IFS=$as_save_IFS
13485
13486 fi
13487 fi
13488 STRIP=$ac_cv_prog_STRIP
13489 if test -n "$STRIP"; then
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13491 $as_echo "$STRIP" >&6; }
13492 else
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13494 $as_echo "no" >&6; }
13495 fi
13496
13497
13498 fi
13499 if test -z "$ac_cv_prog_STRIP"; then
13500 ac_ct_STRIP=$STRIP
13501 # Extract the first word of "strip", so it can be a program name with args.
13502 set dummy strip; ac_word=$2
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13504 $as_echo_n "checking for $ac_word... " >&6; }
13505 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
13506 $as_echo_n "(cached) " >&6
13507 else
13508 if test -n "$ac_ct_STRIP"; then
13509 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13510 else
13511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13512 for as_dir in $PATH
13513 do
13514 IFS=$as_save_IFS
13515 test -z "$as_dir" && as_dir=.
13516 for ac_exec_ext in '' $ac_executable_extensions; do
13517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13518 ac_cv_prog_ac_ct_STRIP="strip"
13519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13520 break 2
13521 fi
13522 done
13523 done
13524 IFS=$as_save_IFS
13525
13526 fi
13527 fi
13528 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13529 if test -n "$ac_ct_STRIP"; then
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13531 $as_echo "$ac_ct_STRIP" >&6; }
13532 else
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13534 $as_echo "no" >&6; }
13535 fi
13536
13537 if test "x$ac_ct_STRIP" = x; then
13538 STRIP=":"
13539 else
13540 case $cross_compiling:$ac_tool_warned in
13541 yes:)
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13544 ac_tool_warned=yes ;;
13545 esac
13546 STRIP=$ac_ct_STRIP
13547 fi
13548 else
13549 STRIP="$ac_cv_prog_STRIP"
13550 fi
13551
13552 fi
13553 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
13554
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
13556 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
13557 if test -z "$MKDIR_P"; then
13558 if test "${ac_cv_path_mkdir+set}" = set; then :
13559 $as_echo_n "(cached) " >&6
13560 else
13561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13562 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
13563 do
13564 IFS=$as_save_IFS
13565 test -z "$as_dir" && as_dir=.
13566 for ac_prog in mkdir gmkdir; do
13567 for ac_exec_ext in '' $ac_executable_extensions; do
13568 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
13569 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
13570 'mkdir (GNU coreutils) '* | \
13571 'mkdir (coreutils) '* | \
13572 'mkdir (fileutils) '4.1*)
13573 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
13574 break 3;;
13575 esac
13576 done
13577 done
13578 done
13579 IFS=$as_save_IFS
13580
13581 fi
13582
13583 if test "${ac_cv_path_mkdir+set}" = set; then
13584 MKDIR_P="$ac_cv_path_mkdir -p"
13585 else
13586 # As a last resort, use the slow shell script. Don't cache a
13587 # value for MKDIR_P within a source directory, because that will
13588 # break other packages using the cache if that directory is
13589 # removed, or if the value is a relative name.
13590 test -d ./--version && rmdir ./--version
13591 MKDIR_P="$ac_install_sh -d"
13592 fi
13593 fi
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13595 $as_echo "$MKDIR_P" >&6; }
13596
13597
13598 mkdir_p="$MKDIR_P"
13599 case $mkdir_p in
13600 [\\/$]* | ?:[\\/]*) ;;
13601 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
13602 esac
13603
13604 for ac_prog in gawk mawk nawk awk
13605 do
13606 # Extract the first word of "$ac_prog", so it can be a program name with args.
13607 set dummy $ac_prog; ac_word=$2
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13609 $as_echo_n "checking for $ac_word... " >&6; }
13610 if test "${ac_cv_prog_AWK+set}" = set; then :
13611 $as_echo_n "(cached) " >&6
13612 else
13613 if test -n "$AWK"; then
13614 ac_cv_prog_AWK="$AWK" # Let the user override the test.
13615 else
13616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13617 for as_dir in $PATH
13618 do
13619 IFS=$as_save_IFS
13620 test -z "$as_dir" && as_dir=.
13621 for ac_exec_ext in '' $ac_executable_extensions; do
13622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13623 ac_cv_prog_AWK="$ac_prog"
13624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13625 break 2
13626 fi
13627 done
13628 done
13629 IFS=$as_save_IFS
13630
13631 fi
13632 fi
13633 AWK=$ac_cv_prog_AWK
13634 if test -n "$AWK"; then
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
13636 $as_echo "$AWK" >&6; }
13637 else
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13639 $as_echo "no" >&6; }
13640 fi
13641
13642
13643 test -n "$AWK" && break
13644 done
13645
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13647 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13648 set x ${MAKE-make}
13649 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13650 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
13651 $as_echo_n "(cached) " >&6
13652 else
13653 cat >conftest.make <<\_ACEOF
13654 SHELL = /bin/sh
13655 all:
13656 @echo '@@@%%%=$(MAKE)=@@@%%%'
13657 _ACEOF
13658 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
13659 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13660 *@@@%%%=?*=@@@%%%*)
13661 eval ac_cv_prog_make_${ac_make}_set=yes;;
13662 *)
13663 eval ac_cv_prog_make_${ac_make}_set=no;;
13664 esac
13665 rm -f conftest.make
13666 fi
13667 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13669 $as_echo "yes" >&6; }
13670 SET_MAKE=
13671 else
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13673 $as_echo "no" >&6; }
13674 SET_MAKE="MAKE=${MAKE-make}"
13675 fi
13676
13677 rm -rf .tst 2>/dev/null
13678 mkdir .tst 2>/dev/null
13679 if test -d .tst; then
13680 am__leading_dot=.
13681 else
13682 am__leading_dot=_
13683 fi
13684 rmdir .tst 2>/dev/null
13685
13686 DEPDIR="${am__leading_dot}deps"
13687
13688 ac_config_commands="$ac_config_commands depfiles"
13689
13690
13691 am_make=${MAKE-make}
13692 cat > confinc << 'END'
13693 am__doit:
13694 @echo this is the am__doit target
13695 .PHONY: am__doit
13696 END
13697 # If we don't find an include directive, just comment out the code.
13698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
13699 $as_echo_n "checking for style of include used by $am_make... " >&6; }
13700 am__include="#"
13701 am__quote=
13702 _am_result=none
13703 # First try GNU make style include.
13704 echo "include confinc" > confmf
13705 # Ignore all kinds of additional output from `make'.
13706 case `$am_make -s -f confmf 2> /dev/null` in #(
13707 *the\ am__doit\ target*)
13708 am__include=include
13709 am__quote=
13710 _am_result=GNU
13711 ;;
13712 esac
13713 # Now try BSD make style include.
13714 if test "$am__include" = "#"; then
13715 echo '.include "confinc"' > confmf
13716 case `$am_make -s -f confmf 2> /dev/null` in #(
13717 *the\ am__doit\ target*)
13718 am__include=.include
13719 am__quote="\""
13720 _am_result=BSD
13721 ;;
13722 esac
13723 fi
13724
13725
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
13727 $as_echo "$_am_result" >&6; }
13728 rm -f confinc confmf
13729
13730 # Check whether --enable-dependency-tracking was given.
13731 if test "${enable_dependency_tracking+set}" = set; then :
13732 enableval=$enable_dependency_tracking;
13733 fi
13734
13735 if test "x$enable_dependency_tracking" != xno; then
13736 am_depcomp="$ac_aux_dir/depcomp"
13737 AMDEPBACKSLASH='\'
13738 fi
13739 if test "x$enable_dependency_tracking" != xno; then
13740 AMDEP_TRUE=
13741 AMDEP_FALSE='#'
13742 else
13743 AMDEP_TRUE='#'
13744 AMDEP_FALSE=
13745 fi
13746
13747
13748 if test "`cd $srcdir && pwd`" != "`pwd`"; then
13749 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
13750 # is not polluted with repeated "-I."
13751 am__isrc=' -I$(srcdir)'
13752 # test to see if srcdir already configured
13753 if test -f $srcdir/config.status; then
13754 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
13755 fi
13756 fi
13757
13758 # test whether we have cygpath
13759 if test -z "$CYGPATH_W"; then
13760 if (cygpath --version) >/dev/null 2>/dev/null; then
13761 CYGPATH_W='cygpath -w'
13762 else
13763 CYGPATH_W=echo
13764 fi
13765 fi
13766
13767
13768 # Define the identity of the package.
13769 PACKAGE=libgnu
13770 VERSION=UNUSED-VERSION
13771
13772
13773 # Some tools Automake needs.
13774
13775 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
13776
13777
13778 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13779
13780
13781 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
13782
13783
13784 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13785
13786
13787 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13788
13789 # We need awk for the "check" target. The system "awk" is bad on
13790 # some platforms.
13791 # Always define AMTAR for backward compatibility.
13792
13793 AMTAR=${AMTAR-"${am_missing_run}tar"}
13794
13795 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
13796
13797
13798
13799
13800 depcc="$CC" am_compiler_list=
13801
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13803 $as_echo_n "checking dependency style of $depcc... " >&6; }
13804 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
13805 $as_echo_n "(cached) " >&6
13806 else
13807 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13808 # We make a subdir and do the tests there. Otherwise we can end up
13809 # making bogus files that we don't know about and never remove. For
13810 # instance it was reported that on HP-UX the gcc test will end up
13811 # making a dummy file named `D' -- because `-MD' means `put the output
13812 # in D'.
13813 mkdir conftest.dir
13814 # Copy depcomp to subdir because otherwise we won't find it if we're
13815 # using a relative directory.
13816 cp "$am_depcomp" conftest.dir
13817 cd conftest.dir
13818 # We will build objects and dependencies in a subdirectory because
13819 # it helps to detect inapplicable dependency modes. For instance
13820 # both Tru64's cc and ICC support -MD to output dependencies as a
13821 # side effect of compilation, but ICC will put the dependencies in
13822 # the current directory while Tru64 will put them in the object
13823 # directory.
13824 mkdir sub
13825
13826 am_cv_CC_dependencies_compiler_type=none
13827 if test "$am_compiler_list" = ""; then
13828 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13829 fi
13830 am__universal=false
13831 case " $depcc " in #(
13832 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13833 esac
13834
13835 for depmode in $am_compiler_list; do
13836 # Setup a source with many dependencies, because some compilers
13837 # like to wrap large dependency lists on column 80 (with \), and
13838 # we should not choose a depcomp mode which is confused by this.
13839 #
13840 # We need to recreate these files for each test, as the compiler may
13841 # overwrite some of them when testing with obscure command lines.
13842 # This happens at least with the AIX C compiler.
13843 : > sub/conftest.c
13844 for i in 1 2 3 4 5 6; do
13845 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13846 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13847 # Solaris 8's {/usr,}/bin/sh.
13848 touch sub/conftst$i.h
13849 done
13850 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13851
13852 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13853 # mode. It turns out that the SunPro C++ compiler does not properly
13854 # handle `-M -o', and we need to detect this. Also, some Intel
13855 # versions had trouble with output in subdirs
13856 am__obj=sub/conftest.${OBJEXT-o}
13857 am__minus_obj="-o $am__obj"
13858 case $depmode in
13859 gcc)
13860 # This depmode causes a compiler race in universal mode.
13861 test "$am__universal" = false || continue
13862 ;;
13863 nosideeffect)
13864 # after this tag, mechanisms are not by side-effect, so they'll
13865 # only be used when explicitly requested
13866 if test "x$enable_dependency_tracking" = xyes; then
13867 continue
13868 else
13869 break
13870 fi
13871 ;;
13872 msvisualcpp | msvcmsys)
13873 # This compiler won't grok `-c -o', but also, the minuso test has
13874 # not run yet. These depmodes are late enough in the game, and
13875 # so weak that their functioning should not be impacted.
13876 am__obj=conftest.${OBJEXT-o}
13877 am__minus_obj=
13878 ;;
13879 none) break ;;
13880 esac
13881 if depmode=$depmode \
13882 source=sub/conftest.c object=$am__obj \
13883 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13884 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13885 >/dev/null 2>conftest.err &&
13886 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13887 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13888 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13889 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13890 # icc doesn't choke on unknown options, it will just issue warnings
13891 # or remarks (even with -Werror). So we grep stderr for any message
13892 # that says an option was ignored or not supported.
13893 # When given -MP, icc 7.0 and 7.1 complain thusly:
13894 # icc: Command line warning: ignoring option '-M'; no argument required
13895 # The diagnosis changed in icc 8.0:
13896 # icc: Command line remark: option '-MP' not supported
13897 if (grep 'ignoring option' conftest.err ||
13898 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13899 am_cv_CC_dependencies_compiler_type=$depmode
13900 break
13901 fi
13902 fi
13903 done
13904
13905 cd ..
13906 rm -rf conftest.dir
13907 else
13908 am_cv_CC_dependencies_compiler_type=none
13909 fi
13910
13911 fi
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13913 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13914 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13915
13916 if
13917 test "x$enable_dependency_tracking" != xno \
13918 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13919 am__fastdepCC_TRUE=
13920 am__fastdepCC_FALSE='#'
13921 else
13922 am__fastdepCC_TRUE='#'
13923 am__fastdepCC_FALSE=
13924 fi
13925
13926
13927
13928
13929 # --------------------- #
13930 # Checks for programs. #
13931 # --------------------- #
13932
13933
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13935 $as_echo_n "checking whether ln -s works... " >&6; }
13936 LN_S=$as_ln_s
13937 if test "$LN_S" = "ln -s"; then
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13939 $as_echo "yes" >&6; }
13940 else
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13942 $as_echo "no, using $LN_S" >&6; }
13943 fi
13944
13945 if test -n "$ac_tool_prefix"; then
13946 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13947 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13949 $as_echo_n "checking for $ac_word... " >&6; }
13950 if test "${ac_cv_prog_RANLIB+set}" = set; then :
13951 $as_echo_n "(cached) " >&6
13952 else
13953 if test -n "$RANLIB"; then
13954 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13955 else
13956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13957 for as_dir in $PATH
13958 do
13959 IFS=$as_save_IFS
13960 test -z "$as_dir" && as_dir=.
13961 for ac_exec_ext in '' $ac_executable_extensions; do
13962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13963 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13965 break 2
13966 fi
13967 done
13968 done
13969 IFS=$as_save_IFS
13970
13971 fi
13972 fi
13973 RANLIB=$ac_cv_prog_RANLIB
13974 if test -n "$RANLIB"; then
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13976 $as_echo "$RANLIB" >&6; }
13977 else
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13979 $as_echo "no" >&6; }
13980 fi
13981
13982
13983 fi
13984 if test -z "$ac_cv_prog_RANLIB"; then
13985 ac_ct_RANLIB=$RANLIB
13986 # Extract the first word of "ranlib", so it can be a program name with args.
13987 set dummy ranlib; ac_word=$2
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13989 $as_echo_n "checking for $ac_word... " >&6; }
13990 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
13991 $as_echo_n "(cached) " >&6
13992 else
13993 if test -n "$ac_ct_RANLIB"; then
13994 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13995 else
13996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13997 for as_dir in $PATH
13998 do
13999 IFS=$as_save_IFS
14000 test -z "$as_dir" && as_dir=.
14001 for ac_exec_ext in '' $ac_executable_extensions; do
14002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14003 ac_cv_prog_ac_ct_RANLIB="ranlib"
14004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14005 break 2
14006 fi
14007 done
14008 done
14009 IFS=$as_save_IFS
14010
14011 fi
14012 fi
14013 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14014 if test -n "$ac_ct_RANLIB"; then
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14016 $as_echo "$ac_ct_RANLIB" >&6; }
14017 else
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14019 $as_echo "no" >&6; }
14020 fi
14021
14022 if test "x$ac_ct_RANLIB" = x; then
14023 RANLIB=":"
14024 else
14025 case $cross_compiling:$ac_tool_warned in
14026 yes:)
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14029 ac_tool_warned=yes ;;
14030 esac
14031 RANLIB=$ac_ct_RANLIB
14032 fi
14033 else
14034 RANLIB="$ac_cv_prog_RANLIB"
14035 fi
14036
14037
14038 if test -n "$ac_tool_prefix"; then
14039 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14040 set dummy ${ac_tool_prefix}ar; ac_word=$2
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14042 $as_echo_n "checking for $ac_word... " >&6; }
14043 if test "${ac_cv_prog_AR+set}" = set; then :
14044 $as_echo_n "(cached) " >&6
14045 else
14046 if test -n "$AR"; then
14047 ac_cv_prog_AR="$AR" # Let the user override the test.
14048 else
14049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14050 for as_dir in $PATH
14051 do
14052 IFS=$as_save_IFS
14053 test -z "$as_dir" && as_dir=.
14054 for ac_exec_ext in '' $ac_executable_extensions; do
14055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14056 ac_cv_prog_AR="${ac_tool_prefix}ar"
14057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14058 break 2
14059 fi
14060 done
14061 done
14062 IFS=$as_save_IFS
14063
14064 fi
14065 fi
14066 AR=$ac_cv_prog_AR
14067 if test -n "$AR"; then
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
14069 $as_echo "$AR" >&6; }
14070 else
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14072 $as_echo "no" >&6; }
14073 fi
14074
14075
14076 fi
14077 if test -z "$ac_cv_prog_AR"; then
14078 ac_ct_AR=$AR
14079 # Extract the first word of "ar", so it can be a program name with args.
14080 set dummy ar; ac_word=$2
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14082 $as_echo_n "checking for $ac_word... " >&6; }
14083 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
14084 $as_echo_n "(cached) " >&6
14085 else
14086 if test -n "$ac_ct_AR"; then
14087 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14088 else
14089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14090 for as_dir in $PATH
14091 do
14092 IFS=$as_save_IFS
14093 test -z "$as_dir" && as_dir=.
14094 for ac_exec_ext in '' $ac_executable_extensions; do
14095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14096 ac_cv_prog_ac_ct_AR="ar"
14097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14098 break 2
14099 fi
14100 done
14101 done
14102 IFS=$as_save_IFS
14103
14104 fi
14105 fi
14106 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14107 if test -n "$ac_ct_AR"; then
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
14109 $as_echo "$ac_ct_AR" >&6; }
14110 else
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14112 $as_echo "no" >&6; }
14113 fi
14114
14115 if test "x$ac_ct_AR" = x; then
14116 AR=""
14117 else
14118 case $cross_compiling:$ac_tool_warned in
14119 yes:)
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14122 ac_tool_warned=yes ;;
14123 esac
14124 AR=$ac_ct_AR
14125 fi
14126 else
14127 AR="$ac_cv_prog_AR"
14128 fi
14129
14130
14131 # ---------------------- #
14132 # Checks for libraries. #
14133 # ---------------------- #
14134
14135 ac_config_files="$ac_config_files Makefile import/Makefile"
14136
14137 ac_config_commands="$ac_config_commands default"
14138
14139 cat >confcache <<\_ACEOF
14140 # This file is a shell script that caches the results of configure
14141 # tests run on this system so they can be shared between configure
14142 # scripts and configure runs, see configure's option --config-cache.
14143 # It is not useful on other systems. If it contains results you don't
14144 # want to keep, you may remove or edit it.
14145 #
14146 # config.status only pays attention to the cache file if you give it
14147 # the --recheck option to rerun configure.
14148 #
14149 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14150 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14151 # following values.
14152
14153 _ACEOF
14154
14155 # The following way of writing the cache mishandles newlines in values,
14156 # but we know of no workaround that is simple, portable, and efficient.
14157 # So, we kill variables containing newlines.
14158 # Ultrix sh set writes to stderr and can't be redirected directly,
14159 # and sets the high bit in the cache file unless we assign to the vars.
14160 (
14161 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14162 eval ac_val=\$$ac_var
14163 case $ac_val in #(
14164 *${as_nl}*)
14165 case $ac_var in #(
14166 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14167 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14168 esac
14169 case $ac_var in #(
14170 _ | IFS | as_nl) ;; #(
14171 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14172 *) { eval $ac_var=; unset $ac_var;} ;;
14173 esac ;;
14174 esac
14175 done
14176
14177 (set) 2>&1 |
14178 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14179 *${as_nl}ac_space=\ *)
14180 # `set' does not quote correctly, so add quotes: double-quote
14181 # substitution turns \\\\ into \\, and sed turns \\ into \.
14182 sed -n \
14183 "s/'/'\\\\''/g;
14184 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14185 ;; #(
14186 *)
14187 # `set' quotes correctly as required by POSIX, so do not add quotes.
14188 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14189 ;;
14190 esac |
14191 sort
14192 ) |
14193 sed '
14194 /^ac_cv_env_/b end
14195 t clear
14196 :clear
14197 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14198 t end
14199 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14200 :end' >>confcache
14201 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14202 if test -w "$cache_file"; then
14203 test "x$cache_file" != "x/dev/null" &&
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14205 $as_echo "$as_me: updating cache $cache_file" >&6;}
14206 cat confcache >$cache_file
14207 else
14208 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14209 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14210 fi
14211 fi
14212 rm -f confcache
14213
14214 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14215 # Let make expand exec_prefix.
14216 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14217
14218 DEFS=-DHAVE_CONFIG_H
14219
14220 ac_libobjs=
14221 ac_ltlibobjs=
14222 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14223 # 1. Remove the extension, and $U if already installed.
14224 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14225 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14226 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14227 # will be set to the directory where LIBOBJS objects are built.
14228 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14229 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14230 done
14231 LIBOBJS=$ac_libobjs
14232
14233 LTLIBOBJS=$ac_ltlibobjs
14234
14235
14236 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14237 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14238 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14239 fi
14240 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
14241 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
14242 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14243 fi
14244 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
14245 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
14246 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14247 fi
14248 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
14249 as_fn_error "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
14250 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14251 fi
14252 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
14253 as_fn_error "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
14254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14255 fi
14256 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
14257 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
14258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14259 fi
14260
14261
14262 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
14263 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
14264 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14265 fi
14266 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
14267 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
14268 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14269 fi
14270
14271 gl_libobjs=
14272 gl_ltlibobjs=
14273 if test -n "$gl_LIBOBJS"; then
14274 # Remove the extension.
14275 sed_drop_objext='s/\.o$//;s/\.obj$//'
14276 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
14277 gl_libobjs="$gl_libobjs $i.$ac_objext"
14278 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
14279 done
14280 fi
14281 gl_LIBOBJS=$gl_libobjs
14282
14283 gl_LTLIBOBJS=$gl_ltlibobjs
14284
14285
14286
14287 gltests_libobjs=
14288 gltests_ltlibobjs=
14289 if test -n "$gltests_LIBOBJS"; then
14290 # Remove the extension.
14291 sed_drop_objext='s/\.o$//;s/\.obj$//'
14292 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
14293 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
14294 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
14295 done
14296 fi
14297 gltests_LIBOBJS=$gltests_libobjs
14298
14299 gltests_LTLIBOBJS=$gltests_ltlibobjs
14300
14301
14302 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14303 as_fn_error "conditional \"AMDEP\" was never defined.
14304 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14305 fi
14306 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14307 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14308 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14309 fi
14310 if test -n "$EXEEXT"; then
14311 am__EXEEXT_TRUE=
14312 am__EXEEXT_FALSE='#'
14313 else
14314 am__EXEEXT_TRUE='#'
14315 am__EXEEXT_FALSE=
14316 fi
14317
14318
14319 : ${CONFIG_STATUS=./config.status}
14320 ac_write_fail=0
14321 ac_clean_files_save=$ac_clean_files
14322 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14324 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14325 as_write_fail=0
14326 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14327 #! $SHELL
14328 # Generated by $as_me.
14329 # Run this file to recreate the current configuration.
14330 # Compiler output produced by configure, useful for debugging
14331 # configure, is in config.log if it exists.
14332
14333 debug=false
14334 ac_cs_recheck=false
14335 ac_cs_silent=false
14336
14337 SHELL=\${CONFIG_SHELL-$SHELL}
14338 export SHELL
14339 _ASEOF
14340 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14341 ## -------------------- ##
14342 ## M4sh Initialization. ##
14343 ## -------------------- ##
14344
14345 # Be more Bourne compatible
14346 DUALCASE=1; export DUALCASE # for MKS sh
14347 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14348 emulate sh
14349 NULLCMD=:
14350 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14351 # is contrary to our usage. Disable this feature.
14352 alias -g '${1+"$@"}'='"$@"'
14353 setopt NO_GLOB_SUBST
14354 else
14355 case `(set -o) 2>/dev/null` in #(
14356 *posix*) :
14357 set -o posix ;; #(
14358 *) :
14359 ;;
14360 esac
14361 fi
14362
14363
14364 as_nl='
14365 '
14366 export as_nl
14367 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14368 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14369 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14370 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14371 # Prefer a ksh shell builtin over an external printf program on Solaris,
14372 # but without wasting forks for bash or zsh.
14373 if test -z "$BASH_VERSION$ZSH_VERSION" \
14374 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14375 as_echo='print -r --'
14376 as_echo_n='print -rn --'
14377 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14378 as_echo='printf %s\n'
14379 as_echo_n='printf %s'
14380 else
14381 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14382 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14383 as_echo_n='/usr/ucb/echo -n'
14384 else
14385 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14386 as_echo_n_body='eval
14387 arg=$1;
14388 case $arg in #(
14389 *"$as_nl"*)
14390 expr "X$arg" : "X\\(.*\\)$as_nl";
14391 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14392 esac;
14393 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14394 '
14395 export as_echo_n_body
14396 as_echo_n='sh -c $as_echo_n_body as_echo'
14397 fi
14398 export as_echo_body
14399 as_echo='sh -c $as_echo_body as_echo'
14400 fi
14401
14402 # The user is always right.
14403 if test "${PATH_SEPARATOR+set}" != set; then
14404 PATH_SEPARATOR=:
14405 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14406 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14407 PATH_SEPARATOR=';'
14408 }
14409 fi
14410
14411
14412 # IFS
14413 # We need space, tab and new line, in precisely that order. Quoting is
14414 # there to prevent editors from complaining about space-tab.
14415 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14416 # splitting by setting IFS to empty value.)
14417 IFS=" "" $as_nl"
14418
14419 # Find who we are. Look in the path if we contain no directory separator.
14420 case $0 in #((
14421 *[\\/]* ) as_myself=$0 ;;
14422 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14423 for as_dir in $PATH
14424 do
14425 IFS=$as_save_IFS
14426 test -z "$as_dir" && as_dir=.
14427 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14428 done
14429 IFS=$as_save_IFS
14430
14431 ;;
14432 esac
14433 # We did not find ourselves, most probably we were run as `sh COMMAND'
14434 # in which case we are not to be found in the path.
14435 if test "x$as_myself" = x; then
14436 as_myself=$0
14437 fi
14438 if test ! -f "$as_myself"; then
14439 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14440 exit 1
14441 fi
14442
14443 # Unset variables that we do not need and which cause bugs (e.g. in
14444 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14445 # suppresses any "Segmentation fault" message there. '((' could
14446 # trigger a bug in pdksh 5.2.14.
14447 for as_var in BASH_ENV ENV MAIL MAILPATH
14448 do eval test x\${$as_var+set} = xset \
14449 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14450 done
14451 PS1='$ '
14452 PS2='> '
14453 PS4='+ '
14454
14455 # NLS nuisances.
14456 LC_ALL=C
14457 export LC_ALL
14458 LANGUAGE=C
14459 export LANGUAGE
14460
14461 # CDPATH.
14462 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14463
14464
14465 # as_fn_error ERROR [LINENO LOG_FD]
14466 # ---------------------------------
14467 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14468 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14469 # script with status $?, using 1 if that was 0.
14470 as_fn_error ()
14471 {
14472 as_status=$?; test $as_status -eq 0 && as_status=1
14473 if test "$3"; then
14474 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14475 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14476 fi
14477 $as_echo "$as_me: error: $1" >&2
14478 as_fn_exit $as_status
14479 } # as_fn_error
14480
14481
14482 # as_fn_set_status STATUS
14483 # -----------------------
14484 # Set $? to STATUS, without forking.
14485 as_fn_set_status ()
14486 {
14487 return $1
14488 } # as_fn_set_status
14489
14490 # as_fn_exit STATUS
14491 # -----------------
14492 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14493 as_fn_exit ()
14494 {
14495 set +e
14496 as_fn_set_status $1
14497 exit $1
14498 } # as_fn_exit
14499
14500 # as_fn_unset VAR
14501 # ---------------
14502 # Portably unset VAR.
14503 as_fn_unset ()
14504 {
14505 { eval $1=; unset $1;}
14506 }
14507 as_unset=as_fn_unset
14508 # as_fn_append VAR VALUE
14509 # ----------------------
14510 # Append the text in VALUE to the end of the definition contained in VAR. Take
14511 # advantage of any shell optimizations that allow amortized linear growth over
14512 # repeated appends, instead of the typical quadratic growth present in naive
14513 # implementations.
14514 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14515 eval 'as_fn_append ()
14516 {
14517 eval $1+=\$2
14518 }'
14519 else
14520 as_fn_append ()
14521 {
14522 eval $1=\$$1\$2
14523 }
14524 fi # as_fn_append
14525
14526 # as_fn_arith ARG...
14527 # ------------------
14528 # Perform arithmetic evaluation on the ARGs, and store the result in the
14529 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14530 # must be portable across $(()) and expr.
14531 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14532 eval 'as_fn_arith ()
14533 {
14534 as_val=$(( $* ))
14535 }'
14536 else
14537 as_fn_arith ()
14538 {
14539 as_val=`expr "$@" || test $? -eq 1`
14540 }
14541 fi # as_fn_arith
14542
14543
14544 if expr a : '\(a\)' >/dev/null 2>&1 &&
14545 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14546 as_expr=expr
14547 else
14548 as_expr=false
14549 fi
14550
14551 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14552 as_basename=basename
14553 else
14554 as_basename=false
14555 fi
14556
14557 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14558 as_dirname=dirname
14559 else
14560 as_dirname=false
14561 fi
14562
14563 as_me=`$as_basename -- "$0" ||
14564 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14565 X"$0" : 'X\(//\)$' \| \
14566 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14567 $as_echo X/"$0" |
14568 sed '/^.*\/\([^/][^/]*\)\/*$/{
14569 s//\1/
14570 q
14571 }
14572 /^X\/\(\/\/\)$/{
14573 s//\1/
14574 q
14575 }
14576 /^X\/\(\/\).*/{
14577 s//\1/
14578 q
14579 }
14580 s/.*/./; q'`
14581
14582 # Avoid depending upon Character Ranges.
14583 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14584 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14585 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14586 as_cr_digits='0123456789'
14587 as_cr_alnum=$as_cr_Letters$as_cr_digits
14588
14589 ECHO_C= ECHO_N= ECHO_T=
14590 case `echo -n x` in #(((((
14591 -n*)
14592 case `echo 'xy\c'` in
14593 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14594 xy) ECHO_C='\c';;
14595 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14596 ECHO_T=' ';;
14597 esac;;
14598 *)
14599 ECHO_N='-n';;
14600 esac
14601
14602 rm -f conf$$ conf$$.exe conf$$.file
14603 if test -d conf$$.dir; then
14604 rm -f conf$$.dir/conf$$.file
14605 else
14606 rm -f conf$$.dir
14607 mkdir conf$$.dir 2>/dev/null
14608 fi
14609 if (echo >conf$$.file) 2>/dev/null; then
14610 if ln -s conf$$.file conf$$ 2>/dev/null; then
14611 as_ln_s='ln -s'
14612 # ... but there are two gotchas:
14613 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14614 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14615 # In both cases, we have to default to `cp -p'.
14616 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14617 as_ln_s='cp -p'
14618 elif ln conf$$.file conf$$ 2>/dev/null; then
14619 as_ln_s=ln
14620 else
14621 as_ln_s='cp -p'
14622 fi
14623 else
14624 as_ln_s='cp -p'
14625 fi
14626 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14627 rmdir conf$$.dir 2>/dev/null
14628
14629
14630 # as_fn_mkdir_p
14631 # -------------
14632 # Create "$as_dir" as a directory, including parents if necessary.
14633 as_fn_mkdir_p ()
14634 {
14635
14636 case $as_dir in #(
14637 -*) as_dir=./$as_dir;;
14638 esac
14639 test -d "$as_dir" || eval $as_mkdir_p || {
14640 as_dirs=
14641 while :; do
14642 case $as_dir in #(
14643 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14644 *) as_qdir=$as_dir;;
14645 esac
14646 as_dirs="'$as_qdir' $as_dirs"
14647 as_dir=`$as_dirname -- "$as_dir" ||
14648 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14649 X"$as_dir" : 'X\(//\)[^/]' \| \
14650 X"$as_dir" : 'X\(//\)$' \| \
14651 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14652 $as_echo X"$as_dir" |
14653 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14654 s//\1/
14655 q
14656 }
14657 /^X\(\/\/\)[^/].*/{
14658 s//\1/
14659 q
14660 }
14661 /^X\(\/\/\)$/{
14662 s//\1/
14663 q
14664 }
14665 /^X\(\/\).*/{
14666 s//\1/
14667 q
14668 }
14669 s/.*/./; q'`
14670 test -d "$as_dir" && break
14671 done
14672 test -z "$as_dirs" || eval "mkdir $as_dirs"
14673 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14674
14675
14676 } # as_fn_mkdir_p
14677 if mkdir -p . 2>/dev/null; then
14678 as_mkdir_p='mkdir -p "$as_dir"'
14679 else
14680 test -d ./-p && rmdir ./-p
14681 as_mkdir_p=false
14682 fi
14683
14684 if test -x / >/dev/null 2>&1; then
14685 as_test_x='test -x'
14686 else
14687 if ls -dL / >/dev/null 2>&1; then
14688 as_ls_L_option=L
14689 else
14690 as_ls_L_option=
14691 fi
14692 as_test_x='
14693 eval sh -c '\''
14694 if test -d "$1"; then
14695 test -d "$1/.";
14696 else
14697 case $1 in #(
14698 -*)set "./$1";;
14699 esac;
14700 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14701 ???[sx]*):;;*)false;;esac;fi
14702 '\'' sh
14703 '
14704 fi
14705 as_executable_p=$as_test_x
14706
14707 # Sed expression to map a string onto a valid CPP name.
14708 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14709
14710 # Sed expression to map a string onto a valid variable name.
14711 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14712
14713
14714 exec 6>&1
14715 ## ----------------------------------- ##
14716 ## Main body of $CONFIG_STATUS script. ##
14717 ## ----------------------------------- ##
14718 _ASEOF
14719 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14720
14721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14722 # Save the log message, to keep $0 and so on meaningful, and to
14723 # report actual input values of CONFIG_FILES etc. instead of their
14724 # values after options handling.
14725 ac_log="
14726 This file was extended by $as_me, which was
14727 generated by GNU Autoconf 2.64. Invocation command line was
14728
14729 CONFIG_FILES = $CONFIG_FILES
14730 CONFIG_HEADERS = $CONFIG_HEADERS
14731 CONFIG_LINKS = $CONFIG_LINKS
14732 CONFIG_COMMANDS = $CONFIG_COMMANDS
14733 $ $0 $@
14734
14735 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14736 "
14737
14738 _ACEOF
14739
14740 case $ac_config_files in *"
14741 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14742 esac
14743
14744 case $ac_config_headers in *"
14745 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14746 esac
14747
14748
14749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14750 # Files that config.status was made for.
14751 config_files="$ac_config_files"
14752 config_headers="$ac_config_headers"
14753 config_commands="$ac_config_commands"
14754
14755 _ACEOF
14756
14757 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14758 ac_cs_usage="\
14759 \`$as_me' instantiates files and other configuration actions
14760 from templates according to the current configuration. Unless the files
14761 and actions are specified as TAGs, all are instantiated by default.
14762
14763 Usage: $0 [OPTION]... [TAG]...
14764
14765 -h, --help print this help, then exit
14766 -V, --version print version number and configuration settings, then exit
14767 -q, --quiet, --silent
14768 do not print progress messages
14769 -d, --debug don't remove temporary files
14770 --recheck update $as_me by reconfiguring in the same conditions
14771 --file=FILE[:TEMPLATE]
14772 instantiate the configuration file FILE
14773 --header=FILE[:TEMPLATE]
14774 instantiate the configuration header FILE
14775
14776 Configuration files:
14777 $config_files
14778
14779 Configuration headers:
14780 $config_headers
14781
14782 Configuration commands:
14783 $config_commands
14784
14785 Report bugs to the package provider."
14786
14787 _ACEOF
14788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14789 ac_cs_version="\\
14790 config.status
14791 configured by $0, generated by GNU Autoconf 2.64,
14792 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14793
14794 Copyright (C) 2009 Free Software Foundation, Inc.
14795 This config.status script is free software; the Free Software Foundation
14796 gives unlimited permission to copy, distribute and modify it."
14797
14798 ac_pwd='$ac_pwd'
14799 srcdir='$srcdir'
14800 INSTALL='$INSTALL'
14801 MKDIR_P='$MKDIR_P'
14802 AWK='$AWK'
14803 test -n "\$AWK" || AWK=awk
14804 _ACEOF
14805
14806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14807 # The default lists apply if the user does not specify any file.
14808 ac_need_defaults=:
14809 while test $# != 0
14810 do
14811 case $1 in
14812 --*=*)
14813 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14814 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14815 ac_shift=:
14816 ;;
14817 *)
14818 ac_option=$1
14819 ac_optarg=$2
14820 ac_shift=shift
14821 ;;
14822 esac
14823
14824 case $ac_option in
14825 # Handling of the options.
14826 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14827 ac_cs_recheck=: ;;
14828 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14829 $as_echo "$ac_cs_version"; exit ;;
14830 --debug | --debu | --deb | --de | --d | -d )
14831 debug=: ;;
14832 --file | --fil | --fi | --f )
14833 $ac_shift
14834 case $ac_optarg in
14835 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14836 esac
14837 as_fn_append CONFIG_FILES " '$ac_optarg'"
14838 ac_need_defaults=false;;
14839 --header | --heade | --head | --hea )
14840 $ac_shift
14841 case $ac_optarg in
14842 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14843 esac
14844 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14845 ac_need_defaults=false;;
14846 --he | --h)
14847 # Conflict between --help and --header
14848 as_fn_error "ambiguous option: \`$1'
14849 Try \`$0 --help' for more information.";;
14850 --help | --hel | -h )
14851 $as_echo "$ac_cs_usage"; exit ;;
14852 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14853 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14854 ac_cs_silent=: ;;
14855
14856 # This is an error.
14857 -*) as_fn_error "unrecognized option: \`$1'
14858 Try \`$0 --help' for more information." ;;
14859
14860 *) as_fn_append ac_config_targets " $1"
14861 ac_need_defaults=false ;;
14862
14863 esac
14864 shift
14865 done
14866
14867 ac_configure_extra_args=
14868
14869 if $ac_cs_silent; then
14870 exec 6>/dev/null
14871 ac_configure_extra_args="$ac_configure_extra_args --silent"
14872 fi
14873
14874 _ACEOF
14875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14876 if \$ac_cs_recheck; then
14877 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14878 shift
14879 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14880 CONFIG_SHELL='$SHELL'
14881 export CONFIG_SHELL
14882 exec "\$@"
14883 fi
14884
14885 _ACEOF
14886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14887 exec 5>>config.log
14888 {
14889 echo
14890 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14891 ## Running $as_me. ##
14892 _ASBOX
14893 $as_echo "$ac_log"
14894 } >&5
14895
14896 _ACEOF
14897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14898 #
14899 # INIT-COMMANDS
14900 #
14901 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14902
14903 _ACEOF
14904
14905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14906
14907 # Handling of arguments.
14908 for ac_config_target in $ac_config_targets
14909 do
14910 case $ac_config_target in
14911 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
14912 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14913 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14914 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
14915 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14916
14917 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14918 esac
14919 done
14920
14921
14922 # If the user did not use the arguments to specify the items to instantiate,
14923 # then the envvar interface is used. Set only those that are not.
14924 # We use the long form for the default assignment because of an extremely
14925 # bizarre bug on SunOS 4.1.3.
14926 if $ac_need_defaults; then
14927 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14928 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14929 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14930 fi
14931
14932 # Have a temporary directory for convenience. Make it in the build tree
14933 # simply because there is no reason against having it here, and in addition,
14934 # creating and moving files from /tmp can sometimes cause problems.
14935 # Hook for its removal unless debugging.
14936 # Note that there is a small window in which the directory will not be cleaned:
14937 # after its creation but before its name has been assigned to `$tmp'.
14938 $debug ||
14939 {
14940 tmp=
14941 trap 'exit_status=$?
14942 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14943 ' 0
14944 trap 'as_fn_exit 1' 1 2 13 15
14945 }
14946 # Create a (secure) tmp directory for tmp files.
14947
14948 {
14949 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14950 test -n "$tmp" && test -d "$tmp"
14951 } ||
14952 {
14953 tmp=./conf$$-$RANDOM
14954 (umask 077 && mkdir "$tmp")
14955 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14956
14957 # Set up the scripts for CONFIG_FILES section.
14958 # No need to generate them if there are no CONFIG_FILES.
14959 # This happens for instance with `./config.status config.h'.
14960 if test -n "$CONFIG_FILES"; then
14961
14962
14963 ac_cr=`echo X | tr X '\015'`
14964 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14965 # But we know of no other shell where ac_cr would be empty at this
14966 # point, so we can use a bashism as a fallback.
14967 if test "x$ac_cr" = x; then
14968 eval ac_cr=\$\'\\r\'
14969 fi
14970 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14971 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14972 ac_cs_awk_cr='\r'
14973 else
14974 ac_cs_awk_cr=$ac_cr
14975 fi
14976
14977 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14978 _ACEOF
14979
14980
14981 {
14982 echo "cat >conf$$subs.awk <<_ACEOF" &&
14983 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14984 echo "_ACEOF"
14985 } >conf$$subs.sh ||
14986 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14987 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14988 ac_delim='%!_!# '
14989 for ac_last_try in false false false false false :; do
14990 . ./conf$$subs.sh ||
14991 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14992
14993 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14994 if test $ac_delim_n = $ac_delim_num; then
14995 break
14996 elif $ac_last_try; then
14997 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14998 else
14999 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15000 fi
15001 done
15002 rm -f conf$$subs.sh
15003
15004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15005 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15006 _ACEOF
15007 sed -n '
15008 h
15009 s/^/S["/; s/!.*/"]=/
15010 p
15011 g
15012 s/^[^!]*!//
15013 :repl
15014 t repl
15015 s/'"$ac_delim"'$//
15016 t delim
15017 :nl
15018 h
15019 s/\(.\{148\}\).*/\1/
15020 t more1
15021 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15022 p
15023 n
15024 b repl
15025 :more1
15026 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15027 p
15028 g
15029 s/.\{148\}//
15030 t nl
15031 :delim
15032 h
15033 s/\(.\{148\}\).*/\1/
15034 t more2
15035 s/["\\]/\\&/g; s/^/"/; s/$/"/
15036 p
15037 b
15038 :more2
15039 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15040 p
15041 g
15042 s/.\{148\}//
15043 t delim
15044 ' <conf$$subs.awk | sed '
15045 /^[^""]/{
15046 N
15047 s/\n//
15048 }
15049 ' >>$CONFIG_STATUS || ac_write_fail=1
15050 rm -f conf$$subs.awk
15051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15052 _ACAWK
15053 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15054 for (key in S) S_is_set[key] = 1
15055 FS = "\a"
15056
15057 }
15058 {
15059 line = $ 0
15060 nfields = split(line, field, "@")
15061 substed = 0
15062 len = length(field[1])
15063 for (i = 2; i < nfields; i++) {
15064 key = field[i]
15065 keylen = length(key)
15066 if (S_is_set[key]) {
15067 value = S[key]
15068 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15069 len += length(value) + length(field[++i])
15070 substed = 1
15071 } else
15072 len += 1 + keylen
15073 }
15074
15075 print line
15076 }
15077
15078 _ACAWK
15079 _ACEOF
15080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15081 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15082 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15083 else
15084 cat
15085 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15086 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15087 _ACEOF
15088
15089 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15090 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15091 # trailing colons and then remove the whole line if VPATH becomes empty
15092 # (actually we leave an empty line to preserve line numbers).
15093 if test "x$srcdir" = x.; then
15094 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15095 s/:*\$(srcdir):*/:/
15096 s/:*\${srcdir}:*/:/
15097 s/:*@srcdir@:*/:/
15098 s/^\([^=]*=[ ]*\):*/\1/
15099 s/:*$//
15100 s/^[^=]*=[ ]*$//
15101 }'
15102 fi
15103
15104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15105 fi # test -n "$CONFIG_FILES"
15106
15107 # Set up the scripts for CONFIG_HEADERS section.
15108 # No need to generate them if there are no CONFIG_HEADERS.
15109 # This happens for instance with `./config.status Makefile'.
15110 if test -n "$CONFIG_HEADERS"; then
15111 cat >"$tmp/defines.awk" <<\_ACAWK ||
15112 BEGIN {
15113 _ACEOF
15114
15115 # Transform confdefs.h into an awk script `defines.awk', embedded as
15116 # here-document in config.status, that substitutes the proper values into
15117 # config.h.in to produce config.h.
15118
15119 # Create a delimiter string that does not exist in confdefs.h, to ease
15120 # handling of long lines.
15121 ac_delim='%!_!# '
15122 for ac_last_try in false false :; do
15123 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15124 if test -z "$ac_t"; then
15125 break
15126 elif $ac_last_try; then
15127 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15128 else
15129 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15130 fi
15131 done
15132
15133 # For the awk script, D is an array of macro values keyed by name,
15134 # likewise P contains macro parameters if any. Preserve backslash
15135 # newline sequences.
15136
15137 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15138 sed -n '
15139 s/.\{148\}/&'"$ac_delim"'/g
15140 t rset
15141 :rset
15142 s/^[ ]*#[ ]*define[ ][ ]*/ /
15143 t def
15144 d
15145 :def
15146 s/\\$//
15147 t bsnl
15148 s/["\\]/\\&/g
15149 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15150 D["\1"]=" \3"/p
15151 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15152 d
15153 :bsnl
15154 s/["\\]/\\&/g
15155 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15156 D["\1"]=" \3\\\\\\n"\\/p
15157 t cont
15158 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15159 t cont
15160 d
15161 :cont
15162 n
15163 s/.\{148\}/&'"$ac_delim"'/g
15164 t clear
15165 :clear
15166 s/\\$//
15167 t bsnlc
15168 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15169 d
15170 :bsnlc
15171 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15172 b cont
15173 ' <confdefs.h | sed '
15174 s/'"$ac_delim"'/"\\\
15175 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15176
15177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15178 for (key in D) D_is_set[key] = 1
15179 FS = "\a"
15180 }
15181 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15182 line = \$ 0
15183 split(line, arg, " ")
15184 if (arg[1] == "#") {
15185 defundef = arg[2]
15186 mac1 = arg[3]
15187 } else {
15188 defundef = substr(arg[1], 2)
15189 mac1 = arg[2]
15190 }
15191 split(mac1, mac2, "(") #)
15192 macro = mac2[1]
15193 prefix = substr(line, 1, index(line, defundef) - 1)
15194 if (D_is_set[macro]) {
15195 # Preserve the white space surrounding the "#".
15196 print prefix "define", macro P[macro] D[macro]
15197 next
15198 } else {
15199 # Replace #undef with comments. This is necessary, for example,
15200 # in the case of _POSIX_SOURCE, which is predefined and required
15201 # on some systems where configure will not decide to define it.
15202 if (defundef == "undef") {
15203 print "/*", prefix defundef, macro, "*/"
15204 next
15205 }
15206 }
15207 }
15208 { print }
15209 _ACAWK
15210 _ACEOF
15211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15212 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15213 fi # test -n "$CONFIG_HEADERS"
15214
15215
15216 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15217 shift
15218 for ac_tag
15219 do
15220 case $ac_tag in
15221 :[FHLC]) ac_mode=$ac_tag; continue;;
15222 esac
15223 case $ac_mode$ac_tag in
15224 :[FHL]*:*);;
15225 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15226 :[FH]-) ac_tag=-:-;;
15227 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15228 esac
15229 ac_save_IFS=$IFS
15230 IFS=:
15231 set x $ac_tag
15232 IFS=$ac_save_IFS
15233 shift
15234 ac_file=$1
15235 shift
15236
15237 case $ac_mode in
15238 :L) ac_source=$1;;
15239 :[FH])
15240 ac_file_inputs=
15241 for ac_f
15242 do
15243 case $ac_f in
15244 -) ac_f="$tmp/stdin";;
15245 *) # Look for the file first in the build tree, then in the source tree
15246 # (if the path is not absolute). The absolute path cannot be DOS-style,
15247 # because $ac_f cannot contain `:'.
15248 test -f "$ac_f" ||
15249 case $ac_f in
15250 [\\/$]*) false;;
15251 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15252 esac ||
15253 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15254 esac
15255 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15256 as_fn_append ac_file_inputs " '$ac_f'"
15257 done
15258
15259 # Let's still pretend it is `configure' which instantiates (i.e., don't
15260 # use $as_me), people would be surprised to read:
15261 # /* config.h. Generated by config.status. */
15262 configure_input='Generated from '`
15263 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15264 `' by configure.'
15265 if test x"$ac_file" != x-; then
15266 configure_input="$ac_file. $configure_input"
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15268 $as_echo "$as_me: creating $ac_file" >&6;}
15269 fi
15270 # Neutralize special characters interpreted by sed in replacement strings.
15271 case $configure_input in #(
15272 *\&* | *\|* | *\\* )
15273 ac_sed_conf_input=`$as_echo "$configure_input" |
15274 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15275 *) ac_sed_conf_input=$configure_input;;
15276 esac
15277
15278 case $ac_tag in
15279 *:-:* | *:-) cat >"$tmp/stdin" \
15280 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15281 esac
15282 ;;
15283 esac
15284
15285 ac_dir=`$as_dirname -- "$ac_file" ||
15286 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15287 X"$ac_file" : 'X\(//\)[^/]' \| \
15288 X"$ac_file" : 'X\(//\)$' \| \
15289 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15290 $as_echo X"$ac_file" |
15291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15292 s//\1/
15293 q
15294 }
15295 /^X\(\/\/\)[^/].*/{
15296 s//\1/
15297 q
15298 }
15299 /^X\(\/\/\)$/{
15300 s//\1/
15301 q
15302 }
15303 /^X\(\/\).*/{
15304 s//\1/
15305 q
15306 }
15307 s/.*/./; q'`
15308 as_dir="$ac_dir"; as_fn_mkdir_p
15309 ac_builddir=.
15310
15311 case "$ac_dir" in
15312 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15313 *)
15314 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15315 # A ".." for each directory in $ac_dir_suffix.
15316 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15317 case $ac_top_builddir_sub in
15318 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15319 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15320 esac ;;
15321 esac
15322 ac_abs_top_builddir=$ac_pwd
15323 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15324 # for backward compatibility:
15325 ac_top_builddir=$ac_top_build_prefix
15326
15327 case $srcdir in
15328 .) # We are building in place.
15329 ac_srcdir=.
15330 ac_top_srcdir=$ac_top_builddir_sub
15331 ac_abs_top_srcdir=$ac_pwd ;;
15332 [\\/]* | ?:[\\/]* ) # Absolute name.
15333 ac_srcdir=$srcdir$ac_dir_suffix;
15334 ac_top_srcdir=$srcdir
15335 ac_abs_top_srcdir=$srcdir ;;
15336 *) # Relative name.
15337 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15338 ac_top_srcdir=$ac_top_build_prefix$srcdir
15339 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15340 esac
15341 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15342
15343
15344 case $ac_mode in
15345 :F)
15346 #
15347 # CONFIG_FILE
15348 #
15349
15350 case $INSTALL in
15351 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15352 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15353 esac
15354 ac_MKDIR_P=$MKDIR_P
15355 case $MKDIR_P in
15356 [\\/$]* | ?:[\\/]* ) ;;
15357 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15358 esac
15359 _ACEOF
15360
15361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15362 # If the template does not know about datarootdir, expand it.
15363 # FIXME: This hack should be removed a few years after 2.60.
15364 ac_datarootdir_hack=; ac_datarootdir_seen=
15365 ac_sed_dataroot='
15366 /datarootdir/ {
15367 p
15368 q
15369 }
15370 /@datadir@/p
15371 /@docdir@/p
15372 /@infodir@/p
15373 /@localedir@/p
15374 /@mandir@/p'
15375 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15376 *datarootdir*) ac_datarootdir_seen=yes;;
15377 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15379 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15380 _ACEOF
15381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15382 ac_datarootdir_hack='
15383 s&@datadir@&$datadir&g
15384 s&@docdir@&$docdir&g
15385 s&@infodir@&$infodir&g
15386 s&@localedir@&$localedir&g
15387 s&@mandir@&$mandir&g
15388 s&\\\${datarootdir}&$datarootdir&g' ;;
15389 esac
15390 _ACEOF
15391
15392 # Neutralize VPATH when `$srcdir' = `.'.
15393 # Shell code in configure.ac might set extrasub.
15394 # FIXME: do we really want to maintain this feature?
15395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15396 ac_sed_extra="$ac_vpsub
15397 $extrasub
15398 _ACEOF
15399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15400 :t
15401 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15402 s|@configure_input@|$ac_sed_conf_input|;t t
15403 s&@top_builddir@&$ac_top_builddir_sub&;t t
15404 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15405 s&@srcdir@&$ac_srcdir&;t t
15406 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15407 s&@top_srcdir@&$ac_top_srcdir&;t t
15408 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15409 s&@builddir@&$ac_builddir&;t t
15410 s&@abs_builddir@&$ac_abs_builddir&;t t
15411 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15412 s&@INSTALL@&$ac_INSTALL&;t t
15413 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15414 $ac_datarootdir_hack
15415 "
15416 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15417 || as_fn_error "could not create $ac_file" "$LINENO" 5
15418
15419 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15420 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15421 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15423 which seems to be undefined. Please make sure it is defined." >&5
15424 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15425 which seems to be undefined. Please make sure it is defined." >&2;}
15426
15427 rm -f "$tmp/stdin"
15428 case $ac_file in
15429 -) cat "$tmp/out" && rm -f "$tmp/out";;
15430 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15431 esac \
15432 || as_fn_error "could not create $ac_file" "$LINENO" 5
15433 ;;
15434 :H)
15435 #
15436 # CONFIG_HEADER
15437 #
15438 if test x"$ac_file" != x-; then
15439 {
15440 $as_echo "/* $configure_input */" \
15441 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15442 } >"$tmp/config.h" \
15443 || as_fn_error "could not create $ac_file" "$LINENO" 5
15444 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15446 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15447 else
15448 rm -f "$ac_file"
15449 mv "$tmp/config.h" "$ac_file" \
15450 || as_fn_error "could not create $ac_file" "$LINENO" 5
15451 fi
15452 else
15453 $as_echo "/* $configure_input */" \
15454 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15455 || as_fn_error "could not create -" "$LINENO" 5
15456 fi
15457 # Compute "$ac_file"'s index in $config_headers.
15458 _am_arg="$ac_file"
15459 _am_stamp_count=1
15460 for _am_header in $config_headers :; do
15461 case $_am_header in
15462 $_am_arg | $_am_arg:* )
15463 break ;;
15464 * )
15465 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15466 esac
15467 done
15468 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15469 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15470 X"$_am_arg" : 'X\(//\)[^/]' \| \
15471 X"$_am_arg" : 'X\(//\)$' \| \
15472 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15473 $as_echo X"$_am_arg" |
15474 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15475 s//\1/
15476 q
15477 }
15478 /^X\(\/\/\)[^/].*/{
15479 s//\1/
15480 q
15481 }
15482 /^X\(\/\/\)$/{
15483 s//\1/
15484 q
15485 }
15486 /^X\(\/\).*/{
15487 s//\1/
15488 q
15489 }
15490 s/.*/./; q'`/stamp-h$_am_stamp_count
15491 ;;
15492
15493 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15494 $as_echo "$as_me: executing $ac_file commands" >&6;}
15495 ;;
15496 esac
15497
15498
15499 case $ac_file$ac_mode in
15500 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15501 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15502 # are listed without --file. Let's play safe and only enable the eval
15503 # if we detect the quoting.
15504 case $CONFIG_FILES in
15505 *\'*) eval set x "$CONFIG_FILES" ;;
15506 *) set x $CONFIG_FILES ;;
15507 esac
15508 shift
15509 for mf
15510 do
15511 # Strip MF so we end up with the name of the file.
15512 mf=`echo "$mf" | sed -e 's/:.*$//'`
15513 # Check whether this is an Automake generated Makefile or not.
15514 # We used to match only the files named `Makefile.in', but
15515 # some people rename them; so instead we look at the file content.
15516 # Grep'ing the first line is not enough: some people post-process
15517 # each Makefile.in and add a new line on top of each file to say so.
15518 # Grep'ing the whole file is not good either: AIX grep has a line
15519 # limit of 2048, but all sed's we know have understand at least 4000.
15520 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15521 dirpart=`$as_dirname -- "$mf" ||
15522 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15523 X"$mf" : 'X\(//\)[^/]' \| \
15524 X"$mf" : 'X\(//\)$' \| \
15525 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15526 $as_echo X"$mf" |
15527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15528 s//\1/
15529 q
15530 }
15531 /^X\(\/\/\)[^/].*/{
15532 s//\1/
15533 q
15534 }
15535 /^X\(\/\/\)$/{
15536 s//\1/
15537 q
15538 }
15539 /^X\(\/\).*/{
15540 s//\1/
15541 q
15542 }
15543 s/.*/./; q'`
15544 else
15545 continue
15546 fi
15547 # Extract the definition of DEPDIR, am__include, and am__quote
15548 # from the Makefile without running `make'.
15549 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15550 test -z "$DEPDIR" && continue
15551 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15552 test -z "am__include" && continue
15553 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15554 # When using ansi2knr, U may be empty or an underscore; expand it
15555 U=`sed -n 's/^U = //p' < "$mf"`
15556 # Find all dependency output files, they are included files with
15557 # $(DEPDIR) in their names. We invoke sed twice because it is the
15558 # simplest approach to changing $(DEPDIR) to its actual value in the
15559 # expansion.
15560 for file in `sed -n "
15561 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15562 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15563 # Make sure the directory exists.
15564 test -f "$dirpart/$file" && continue
15565 fdir=`$as_dirname -- "$file" ||
15566 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15567 X"$file" : 'X\(//\)[^/]' \| \
15568 X"$file" : 'X\(//\)$' \| \
15569 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15570 $as_echo X"$file" |
15571 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15572 s//\1/
15573 q
15574 }
15575 /^X\(\/\/\)[^/].*/{
15576 s//\1/
15577 q
15578 }
15579 /^X\(\/\/\)$/{
15580 s//\1/
15581 q
15582 }
15583 /^X\(\/\).*/{
15584 s//\1/
15585 q
15586 }
15587 s/.*/./; q'`
15588 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15589 # echo "creating $dirpart/$file"
15590 echo '# dummy' > "$dirpart/$file"
15591 done
15592 done
15593 }
15594 ;;
15595 "default":C)
15596 case x$CONFIG_HEADERS in
15597 xconfig.h:config.in)
15598 echo > stamp-h ;;
15599 esac
15600 ;;
15601
15602 esac
15603 done # for ac_tag
15604
15605
15606 as_fn_exit 0
15607 _ACEOF
15608 ac_clean_files=$ac_clean_files_save
15609
15610 test $ac_write_fail = 0 ||
15611 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15612
15613
15614 # configure is writing to config.log, and then calls config.status.
15615 # config.status does its own redirection, appending to config.log.
15616 # Unfortunately, on DOS this fails, as config.log is still kept open
15617 # by configure, so config.status won't be able to write to it; its
15618 # output is simply discarded. So we exec the FD to /dev/null,
15619 # effectively closing config.log, so it can be properly (re)opened and
15620 # appended to by config.status. When coming back to configure, we
15621 # need to make the FD available again.
15622 if test "$no_create" != yes; then
15623 ac_cs_success=:
15624 ac_config_status_args=
15625 test "$silent" = yes &&
15626 ac_config_status_args="$ac_config_status_args --quiet"
15627 exec 5>/dev/null
15628 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15629 exec 5>>config.log
15630 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15631 # would make configure fail if this is the last instruction.
15632 $ac_cs_success || as_fn_exit $?
15633 fi
15634 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15636 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15637 fi
15638
15639
15640 exit 0
This page took 0.364528 seconds and 5 git commands to generate.