gdb/
[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 gl_func_list=
593 gl_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 LOCALCHARSET_TESTS_ENVIRONMENT
839 GLIBC21
840 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
841 NEXT_INTTYPES_H
842 UINT64_MAX_EQ_ULONG_MAX
843 UINT32_MAX_LT_UINTMAX_MAX
844 PRIPTR_PREFIX
845 PRI_MACROS_BROKEN
846 INT64_MAX_EQ_LONG_MAX
847 INT32_MAX_LT_INTMAX_MAX
848 REPLACE_STRTOIMAX
849 HAVE_DECL_STRTOUMAX
850 HAVE_DECL_STRTOIMAX
851 HAVE_DECL_IMAXDIV
852 HAVE_DECL_IMAXABS
853 GNULIB_STRTOUMAX
854 GNULIB_STRTOIMAX
855 GNULIB_IMAXDIV
856 GNULIB_IMAXABS
857 GL_GENERATE_STDINT_H_FALSE
858 GL_GENERATE_STDINT_H_TRUE
859 STDINT_H
860 WINT_T_SUFFIX
861 WCHAR_T_SUFFIX
862 SIG_ATOMIC_T_SUFFIX
863 SIZE_T_SUFFIX
864 PTRDIFF_T_SUFFIX
865 HAVE_SIGNED_WINT_T
866 HAVE_SIGNED_WCHAR_T
867 HAVE_SIGNED_SIG_ATOMIC_T
868 BITSIZEOF_WINT_T
869 BITSIZEOF_WCHAR_T
870 BITSIZEOF_SIG_ATOMIC_T
871 BITSIZEOF_SIZE_T
872 BITSIZEOF_PTRDIFF_T
873 APPLE_UNIVERSAL_BUILD
874 HAVE_SYS_BITYPES_H
875 HAVE_SYS_INTTYPES_H
876 HAVE_STDINT_H
877 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
878 NEXT_STDINT_H
879 PRAGMA_COLUMNS
880 PRAGMA_SYSTEM_HEADER
881 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
882 INCLUDE_NEXT
883 HAVE_SYS_TYPES_H
884 HAVE_INTTYPES_H
885 HAVE_WCHAR_H
886 HAVE_UNSIGNED_LONG_LONG_INT
887 HAVE_LONG_LONG_INT
888 GL_GENERATE_FNMATCH_H_FALSE
889 GL_GENERATE_FNMATCH_H_TRUE
890 FNMATCH_H
891 pkglibexecdir
892 lispdir
893 GL_GENERATE_ALLOCA_H_FALSE
894 GL_GENERATE_ALLOCA_H_TRUE
895 ALLOCA_H
896 ALLOCA
897 GL_COND_LIBTOOL_FALSE
898 GL_COND_LIBTOOL_TRUE
899 target_os
900 target_vendor
901 target_cpu
902 target
903 RANLIB
904 ARFLAGS
905 AR
906 EGREP
907 GREP
908 CPP
909 host_os
910 host_vendor
911 host_cpu
912 host
913 build_os
914 build_vendor
915 build_cpu
916 build
917 OBJEXT
918 EXEEXT
919 ac_ct_CC
920 CPPFLAGS
921 LDFLAGS
922 CFLAGS
923 CC
924 MAINT
925 MAINTAINER_MODE_FALSE
926 MAINTAINER_MODE_TRUE
927 target_alias
928 host_alias
929 build_alias
930 LIBS
931 ECHO_T
932 ECHO_N
933 ECHO_C
934 DEFS
935 mandir
936 localedir
937 libdir
938 psdir
939 pdfdir
940 dvidir
941 htmldir
942 infodir
943 docdir
944 oldincludedir
945 includedir
946 localstatedir
947 sharedstatedir
948 sysconfdir
949 datadir
950 datarootdir
951 libexecdir
952 sbindir
953 bindir
954 program_transform_name
955 prefix
956 exec_prefix
957 PACKAGE_URL
958 PACKAGE_BUGREPORT
959 PACKAGE_STRING
960 PACKAGE_VERSION
961 PACKAGE_TARNAME
962 PACKAGE_NAME
963 PATH_SEPARATOR
964 SHELL'
965 ac_subst_files=''
966 ac_user_opts='
967 enable_option_checking
968 enable_maintainer_mode
969 enable_dependency_tracking
970 '
971 ac_precious_vars='build_alias
972 host_alias
973 target_alias
974 CC
975 CFLAGS
976 LDFLAGS
977 LIBS
978 CPPFLAGS
979 CPP'
980
981
982 # Initialize some variables set by options.
983 ac_init_help=
984 ac_init_version=false
985 ac_unrecognized_opts=
986 ac_unrecognized_sep=
987 # The variables have the same names as the options, with
988 # dashes changed to underlines.
989 cache_file=/dev/null
990 exec_prefix=NONE
991 no_create=
992 no_recursion=
993 prefix=NONE
994 program_prefix=NONE
995 program_suffix=NONE
996 program_transform_name=s,x,x,
997 silent=
998 site=
999 srcdir=
1000 verbose=
1001 x_includes=NONE
1002 x_libraries=NONE
1003
1004 # Installation directory options.
1005 # These are left unexpanded so users can "make install exec_prefix=/foo"
1006 # and all the variables that are supposed to be based on exec_prefix
1007 # by default will actually change.
1008 # Use braces instead of parens because sh, perl, etc. also accept them.
1009 # (The list follows the same order as the GNU Coding Standards.)
1010 bindir='${exec_prefix}/bin'
1011 sbindir='${exec_prefix}/sbin'
1012 libexecdir='${exec_prefix}/libexec'
1013 datarootdir='${prefix}/share'
1014 datadir='${datarootdir}'
1015 sysconfdir='${prefix}/etc'
1016 sharedstatedir='${prefix}/com'
1017 localstatedir='${prefix}/var'
1018 includedir='${prefix}/include'
1019 oldincludedir='/usr/include'
1020 docdir='${datarootdir}/doc/${PACKAGE}'
1021 infodir='${datarootdir}/info'
1022 htmldir='${docdir}'
1023 dvidir='${docdir}'
1024 pdfdir='${docdir}'
1025 psdir='${docdir}'
1026 libdir='${exec_prefix}/lib'
1027 localedir='${datarootdir}/locale'
1028 mandir='${datarootdir}/man'
1029
1030 ac_prev=
1031 ac_dashdash=
1032 for ac_option
1033 do
1034 # If the previous option needs an argument, assign it.
1035 if test -n "$ac_prev"; then
1036 eval $ac_prev=\$ac_option
1037 ac_prev=
1038 continue
1039 fi
1040
1041 case $ac_option in
1042 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1043 *) ac_optarg=yes ;;
1044 esac
1045
1046 # Accept the important Cygnus configure options, so we can diagnose typos.
1047
1048 case $ac_dashdash$ac_option in
1049 --)
1050 ac_dashdash=yes ;;
1051
1052 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1053 ac_prev=bindir ;;
1054 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1055 bindir=$ac_optarg ;;
1056
1057 -build | --build | --buil | --bui | --bu)
1058 ac_prev=build_alias ;;
1059 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1060 build_alias=$ac_optarg ;;
1061
1062 -cache-file | --cache-file | --cache-fil | --cache-fi \
1063 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1064 ac_prev=cache_file ;;
1065 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1066 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1067 cache_file=$ac_optarg ;;
1068
1069 --config-cache | -C)
1070 cache_file=config.cache ;;
1071
1072 -datadir | --datadir | --datadi | --datad)
1073 ac_prev=datadir ;;
1074 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1075 datadir=$ac_optarg ;;
1076
1077 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1078 | --dataroo | --dataro | --datar)
1079 ac_prev=datarootdir ;;
1080 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1081 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1082 datarootdir=$ac_optarg ;;
1083
1084 -disable-* | --disable-*)
1085 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1086 # Reject names that are not valid shell variable names.
1087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1088 as_fn_error "invalid feature name: $ac_useropt"
1089 ac_useropt_orig=$ac_useropt
1090 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1091 case $ac_user_opts in
1092 *"
1093 "enable_$ac_useropt"
1094 "*) ;;
1095 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1096 ac_unrecognized_sep=', ';;
1097 esac
1098 eval enable_$ac_useropt=no ;;
1099
1100 -docdir | --docdir | --docdi | --doc | --do)
1101 ac_prev=docdir ;;
1102 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1103 docdir=$ac_optarg ;;
1104
1105 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1106 ac_prev=dvidir ;;
1107 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1108 dvidir=$ac_optarg ;;
1109
1110 -enable-* | --enable-*)
1111 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 as_fn_error "invalid feature name: $ac_useropt"
1115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1118 *"
1119 "enable_$ac_useropt"
1120 "*) ;;
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1123 esac
1124 eval enable_$ac_useropt=\$ac_optarg ;;
1125
1126 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1127 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1128 | --exec | --exe | --ex)
1129 ac_prev=exec_prefix ;;
1130 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1131 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1132 | --exec=* | --exe=* | --ex=*)
1133 exec_prefix=$ac_optarg ;;
1134
1135 -gas | --gas | --ga | --g)
1136 # Obsolete; use --with-gas.
1137 with_gas=yes ;;
1138
1139 -help | --help | --hel | --he | -h)
1140 ac_init_help=long ;;
1141 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1142 ac_init_help=recursive ;;
1143 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1144 ac_init_help=short ;;
1145
1146 -host | --host | --hos | --ho)
1147 ac_prev=host_alias ;;
1148 -host=* | --host=* | --hos=* | --ho=*)
1149 host_alias=$ac_optarg ;;
1150
1151 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1152 ac_prev=htmldir ;;
1153 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1154 | --ht=*)
1155 htmldir=$ac_optarg ;;
1156
1157 -includedir | --includedir | --includedi | --included | --include \
1158 | --includ | --inclu | --incl | --inc)
1159 ac_prev=includedir ;;
1160 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1161 | --includ=* | --inclu=* | --incl=* | --inc=*)
1162 includedir=$ac_optarg ;;
1163
1164 -infodir | --infodir | --infodi | --infod | --info | --inf)
1165 ac_prev=infodir ;;
1166 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1167 infodir=$ac_optarg ;;
1168
1169 -libdir | --libdir | --libdi | --libd)
1170 ac_prev=libdir ;;
1171 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1172 libdir=$ac_optarg ;;
1173
1174 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1175 | --libexe | --libex | --libe)
1176 ac_prev=libexecdir ;;
1177 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1178 | --libexe=* | --libex=* | --libe=*)
1179 libexecdir=$ac_optarg ;;
1180
1181 -localedir | --localedir | --localedi | --localed | --locale)
1182 ac_prev=localedir ;;
1183 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1184 localedir=$ac_optarg ;;
1185
1186 -localstatedir | --localstatedir | --localstatedi | --localstated \
1187 | --localstate | --localstat | --localsta | --localst | --locals)
1188 ac_prev=localstatedir ;;
1189 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1190 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1191 localstatedir=$ac_optarg ;;
1192
1193 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1194 ac_prev=mandir ;;
1195 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1196 mandir=$ac_optarg ;;
1197
1198 -nfp | --nfp | --nf)
1199 # Obsolete; use --without-fp.
1200 with_fp=no ;;
1201
1202 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1203 | --no-cr | --no-c | -n)
1204 no_create=yes ;;
1205
1206 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1207 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1208 no_recursion=yes ;;
1209
1210 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1211 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1212 | --oldin | --oldi | --old | --ol | --o)
1213 ac_prev=oldincludedir ;;
1214 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1215 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1216 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1217 oldincludedir=$ac_optarg ;;
1218
1219 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1220 ac_prev=prefix ;;
1221 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1222 prefix=$ac_optarg ;;
1223
1224 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1225 | --program-pre | --program-pr | --program-p)
1226 ac_prev=program_prefix ;;
1227 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1228 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1229 program_prefix=$ac_optarg ;;
1230
1231 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1232 | --program-suf | --program-su | --program-s)
1233 ac_prev=program_suffix ;;
1234 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1235 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1236 program_suffix=$ac_optarg ;;
1237
1238 -program-transform-name | --program-transform-name \
1239 | --program-transform-nam | --program-transform-na \
1240 | --program-transform-n | --program-transform- \
1241 | --program-transform | --program-transfor \
1242 | --program-transfo | --program-transf \
1243 | --program-trans | --program-tran \
1244 | --progr-tra | --program-tr | --program-t)
1245 ac_prev=program_transform_name ;;
1246 -program-transform-name=* | --program-transform-name=* \
1247 | --program-transform-nam=* | --program-transform-na=* \
1248 | --program-transform-n=* | --program-transform-=* \
1249 | --program-transform=* | --program-transfor=* \
1250 | --program-transfo=* | --program-transf=* \
1251 | --program-trans=* | --program-tran=* \
1252 | --progr-tra=* | --program-tr=* | --program-t=*)
1253 program_transform_name=$ac_optarg ;;
1254
1255 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1256 ac_prev=pdfdir ;;
1257 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1258 pdfdir=$ac_optarg ;;
1259
1260 -psdir | --psdir | --psdi | --psd | --ps)
1261 ac_prev=psdir ;;
1262 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1263 psdir=$ac_optarg ;;
1264
1265 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1266 | -silent | --silent | --silen | --sile | --sil)
1267 silent=yes ;;
1268
1269 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1270 ac_prev=sbindir ;;
1271 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1272 | --sbi=* | --sb=*)
1273 sbindir=$ac_optarg ;;
1274
1275 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1276 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1277 | --sharedst | --shareds | --shared | --share | --shar \
1278 | --sha | --sh)
1279 ac_prev=sharedstatedir ;;
1280 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1281 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1282 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1283 | --sha=* | --sh=*)
1284 sharedstatedir=$ac_optarg ;;
1285
1286 -site | --site | --sit)
1287 ac_prev=site ;;
1288 -site=* | --site=* | --sit=*)
1289 site=$ac_optarg ;;
1290
1291 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1292 ac_prev=srcdir ;;
1293 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1294 srcdir=$ac_optarg ;;
1295
1296 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1297 | --syscon | --sysco | --sysc | --sys | --sy)
1298 ac_prev=sysconfdir ;;
1299 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1300 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1301 sysconfdir=$ac_optarg ;;
1302
1303 -target | --target | --targe | --targ | --tar | --ta | --t)
1304 ac_prev=target_alias ;;
1305 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1306 target_alias=$ac_optarg ;;
1307
1308 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1309 verbose=yes ;;
1310
1311 -version | --version | --versio | --versi | --vers | -V)
1312 ac_init_version=: ;;
1313
1314 -with-* | --with-*)
1315 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1316 # Reject names that are not valid shell variable names.
1317 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1318 as_fn_error "invalid package name: $ac_useropt"
1319 ac_useropt_orig=$ac_useropt
1320 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1321 case $ac_user_opts in
1322 *"
1323 "with_$ac_useropt"
1324 "*) ;;
1325 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1326 ac_unrecognized_sep=', ';;
1327 esac
1328 eval with_$ac_useropt=\$ac_optarg ;;
1329
1330 -without-* | --without-*)
1331 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1332 # Reject names that are not valid shell variable names.
1333 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1334 as_fn_error "invalid package name: $ac_useropt"
1335 ac_useropt_orig=$ac_useropt
1336 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1337 case $ac_user_opts in
1338 *"
1339 "with_$ac_useropt"
1340 "*) ;;
1341 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1342 ac_unrecognized_sep=', ';;
1343 esac
1344 eval with_$ac_useropt=no ;;
1345
1346 --x)
1347 # Obsolete; use --with-x.
1348 with_x=yes ;;
1349
1350 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1351 | --x-incl | --x-inc | --x-in | --x-i)
1352 ac_prev=x_includes ;;
1353 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1354 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1355 x_includes=$ac_optarg ;;
1356
1357 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1358 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1359 ac_prev=x_libraries ;;
1360 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1361 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1362 x_libraries=$ac_optarg ;;
1363
1364 -*) as_fn_error "unrecognized option: \`$ac_option'
1365 Try \`$0 --help' for more information."
1366 ;;
1367
1368 *=*)
1369 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1370 # Reject names that are not valid shell variable names.
1371 case $ac_envvar in #(
1372 '' | [0-9]* | *[!_$as_cr_alnum]* )
1373 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1374 esac
1375 eval $ac_envvar=\$ac_optarg
1376 export $ac_envvar ;;
1377
1378 *)
1379 # FIXME: should be removed in autoconf 3.0.
1380 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1381 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1382 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1383 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1384 ;;
1385
1386 esac
1387 done
1388
1389 if test -n "$ac_prev"; then
1390 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1391 as_fn_error "missing argument to $ac_option"
1392 fi
1393
1394 if test -n "$ac_unrecognized_opts"; then
1395 case $enable_option_checking in
1396 no) ;;
1397 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1398 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1399 esac
1400 fi
1401
1402 # Check all directory arguments for consistency.
1403 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1404 datadir sysconfdir sharedstatedir localstatedir includedir \
1405 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1406 libdir localedir mandir
1407 do
1408 eval ac_val=\$$ac_var
1409 # Remove trailing slashes.
1410 case $ac_val in
1411 */ )
1412 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1413 eval $ac_var=\$ac_val;;
1414 esac
1415 # Be sure to have absolute directory names.
1416 case $ac_val in
1417 [\\/$]* | ?:[\\/]* ) continue;;
1418 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1419 esac
1420 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1421 done
1422
1423 # There might be people who depend on the old broken behavior: `$host'
1424 # used to hold the argument of --host etc.
1425 # FIXME: To remove some day.
1426 build=$build_alias
1427 host=$host_alias
1428 target=$target_alias
1429
1430 # FIXME: To remove some day.
1431 if test "x$host_alias" != x; then
1432 if test "x$build_alias" = x; then
1433 cross_compiling=maybe
1434 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1435 If a cross compiler is detected then cross compile mode will be used." >&2
1436 elif test "x$build_alias" != "x$host_alias"; then
1437 cross_compiling=yes
1438 fi
1439 fi
1440
1441 ac_tool_prefix=
1442 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1443
1444 test "$silent" = yes && exec 6>/dev/null
1445
1446
1447 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1448 ac_ls_di=`ls -di .` &&
1449 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1450 as_fn_error "working directory cannot be determined"
1451 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1452 as_fn_error "pwd does not report name of working directory"
1453
1454
1455 # Find the source files, if location was not specified.
1456 if test -z "$srcdir"; then
1457 ac_srcdir_defaulted=yes
1458 # Try the directory containing this script, then the parent directory.
1459 ac_confdir=`$as_dirname -- "$as_myself" ||
1460 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1461 X"$as_myself" : 'X\(//\)[^/]' \| \
1462 X"$as_myself" : 'X\(//\)$' \| \
1463 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1464 $as_echo X"$as_myself" |
1465 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1466 s//\1/
1467 q
1468 }
1469 /^X\(\/\/\)[^/].*/{
1470 s//\1/
1471 q
1472 }
1473 /^X\(\/\/\)$/{
1474 s//\1/
1475 q
1476 }
1477 /^X\(\/\).*/{
1478 s//\1/
1479 q
1480 }
1481 s/.*/./; q'`
1482 srcdir=$ac_confdir
1483 if test ! -r "$srcdir/$ac_unique_file"; then
1484 srcdir=..
1485 fi
1486 else
1487 ac_srcdir_defaulted=no
1488 fi
1489 if test ! -r "$srcdir/$ac_unique_file"; then
1490 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1491 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1492 fi
1493 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1494 ac_abs_confdir=`(
1495 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1496 pwd)`
1497 # When building in place, set srcdir=.
1498 if test "$ac_abs_confdir" = "$ac_pwd"; then
1499 srcdir=.
1500 fi
1501 # Remove unnecessary trailing slashes from srcdir.
1502 # Double slashes in file names in object file debugging info
1503 # mess up M-x gdb in Emacs.
1504 case $srcdir in
1505 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1506 esac
1507 for ac_var in $ac_precious_vars; do
1508 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1509 eval ac_env_${ac_var}_value=\$${ac_var}
1510 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1511 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1512 done
1513
1514 #
1515 # Report the --help message.
1516 #
1517 if test "$ac_init_help" = "long"; then
1518 # Omit some internal or obsolete options to make the list less imposing.
1519 # This message is too long to be a string in the A/UX 3.1 sh.
1520 cat <<_ACEOF
1521 \`configure' configures this package to adapt to many kinds of systems.
1522
1523 Usage: $0 [OPTION]... [VAR=VALUE]...
1524
1525 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1526 VAR=VALUE. See below for descriptions of some of the useful variables.
1527
1528 Defaults for the options are specified in brackets.
1529
1530 Configuration:
1531 -h, --help display this help and exit
1532 --help=short display options specific to this package
1533 --help=recursive display the short help of all the included packages
1534 -V, --version display version information and exit
1535 -q, --quiet, --silent do not print \`checking...' messages
1536 --cache-file=FILE cache test results in FILE [disabled]
1537 -C, --config-cache alias for \`--cache-file=config.cache'
1538 -n, --no-create do not create output files
1539 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1540
1541 Installation directories:
1542 --prefix=PREFIX install architecture-independent files in PREFIX
1543 [$ac_default_prefix]
1544 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1545 [PREFIX]
1546
1547 By default, \`make install' will install all the files in
1548 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1549 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1550 for instance \`--prefix=\$HOME'.
1551
1552 For better control, use the options below.
1553
1554 Fine tuning of the installation directories:
1555 --bindir=DIR user executables [EPREFIX/bin]
1556 --sbindir=DIR system admin executables [EPREFIX/sbin]
1557 --libexecdir=DIR program executables [EPREFIX/libexec]
1558 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1559 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1560 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1561 --libdir=DIR object code libraries [EPREFIX/lib]
1562 --includedir=DIR C header files [PREFIX/include]
1563 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1564 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1565 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1566 --infodir=DIR info documentation [DATAROOTDIR/info]
1567 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1568 --mandir=DIR man documentation [DATAROOTDIR/man]
1569 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1570 --htmldir=DIR html documentation [DOCDIR]
1571 --dvidir=DIR dvi documentation [DOCDIR]
1572 --pdfdir=DIR pdf documentation [DOCDIR]
1573 --psdir=DIR ps documentation [DOCDIR]
1574 _ACEOF
1575
1576 cat <<\_ACEOF
1577
1578 Program names:
1579 --program-prefix=PREFIX prepend PREFIX to installed program names
1580 --program-suffix=SUFFIX append SUFFIX to installed program names
1581 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1582
1583 System types:
1584 --build=BUILD configure for building on BUILD [guessed]
1585 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1586 --target=TARGET configure for building compilers for TARGET [HOST]
1587 _ACEOF
1588 fi
1589
1590 if test -n "$ac_init_help"; then
1591
1592 cat <<\_ACEOF
1593
1594 Optional Features:
1595 --disable-option-checking ignore unrecognized --enable/--with options
1596 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1597 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1598 --enable-maintainer-mode enable make rules and dependencies not useful
1599 (and sometimes confusing) to the casual installer
1600 --disable-dependency-tracking speeds up one-time build
1601 --enable-dependency-tracking do not reject slow dependency extractors
1602
1603 Some influential environment variables:
1604 CC C compiler command
1605 CFLAGS C compiler flags
1606 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1607 nonstandard directory <lib dir>
1608 LIBS libraries to pass to the linker, e.g. -l<library>
1609 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1610 you have headers in a nonstandard directory <include dir>
1611 CPP C preprocessor
1612
1613 Use these variables to override the choices made by `configure' or to help
1614 it to find libraries and programs with nonstandard names/locations.
1615
1616 Report bugs to the package provider.
1617 _ACEOF
1618 ac_status=$?
1619 fi
1620
1621 if test "$ac_init_help" = "recursive"; then
1622 # If there are subdirs, report their specific --help.
1623 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1624 test -d "$ac_dir" ||
1625 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1626 continue
1627 ac_builddir=.
1628
1629 case "$ac_dir" in
1630 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631 *)
1632 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1633 # A ".." for each directory in $ac_dir_suffix.
1634 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1635 case $ac_top_builddir_sub in
1636 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1638 esac ;;
1639 esac
1640 ac_abs_top_builddir=$ac_pwd
1641 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1642 # for backward compatibility:
1643 ac_top_builddir=$ac_top_build_prefix
1644
1645 case $srcdir in
1646 .) # We are building in place.
1647 ac_srcdir=.
1648 ac_top_srcdir=$ac_top_builddir_sub
1649 ac_abs_top_srcdir=$ac_pwd ;;
1650 [\\/]* | ?:[\\/]* ) # Absolute name.
1651 ac_srcdir=$srcdir$ac_dir_suffix;
1652 ac_top_srcdir=$srcdir
1653 ac_abs_top_srcdir=$srcdir ;;
1654 *) # Relative name.
1655 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1656 ac_top_srcdir=$ac_top_build_prefix$srcdir
1657 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1658 esac
1659 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1660
1661 cd "$ac_dir" || { ac_status=$?; continue; }
1662 # Check for guested configure.
1663 if test -f "$ac_srcdir/configure.gnu"; then
1664 echo &&
1665 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1666 elif test -f "$ac_srcdir/configure"; then
1667 echo &&
1668 $SHELL "$ac_srcdir/configure" --help=recursive
1669 else
1670 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1671 fi || ac_status=$?
1672 cd "$ac_pwd" || { ac_status=$?; break; }
1673 done
1674 fi
1675
1676 test -n "$ac_init_help" && exit $ac_status
1677 if $ac_init_version; then
1678 cat <<\_ACEOF
1679 configure
1680 generated by GNU Autoconf 2.64
1681
1682 Copyright (C) 2009 Free Software Foundation, Inc.
1683 This configure script is free software; the Free Software Foundation
1684 gives unlimited permission to copy, distribute and modify it.
1685 _ACEOF
1686 exit
1687 fi
1688
1689 ## ------------------------ ##
1690 ## Autoconf initialization. ##
1691 ## ------------------------ ##
1692
1693 # ac_fn_c_try_compile LINENO
1694 # --------------------------
1695 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1696 ac_fn_c_try_compile ()
1697 {
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 rm -f conftest.$ac_objext
1700 if { { ac_try="$ac_compile"
1701 case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_compile") 2>conftest.err
1708 ac_status=$?
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1713 fi
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && {
1716 test -z "$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1718 } && test -s conftest.$ac_objext; then :
1719 ac_retval=0
1720 else
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1723
1724 ac_retval=1
1725 fi
1726 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1727 return $ac_retval
1728
1729 } # ac_fn_c_try_compile
1730
1731 # ac_fn_c_try_cpp LINENO
1732 # ----------------------
1733 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1734 ac_fn_c_try_cpp ()
1735 {
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 if { { ac_try="$ac_cpp conftest.$ac_ext"
1738 case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741 esac
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1745 ac_status=$?
1746 if test -s conftest.err; then
1747 grep -v '^ *+' conftest.err >conftest.er1
1748 cat conftest.er1 >&5
1749 mv -f conftest.er1 conftest.err
1750 fi
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } >/dev/null && {
1753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1754 test ! -s conftest.err
1755 }; then :
1756 ac_retval=0
1757 else
1758 $as_echo "$as_me: failed program was:" >&5
1759 sed 's/^/| /' conftest.$ac_ext >&5
1760
1761 ac_retval=1
1762 fi
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1764 return $ac_retval
1765
1766 } # ac_fn_c_try_cpp
1767
1768 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1769 # -------------------------------------------------------
1770 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1771 # the include files in INCLUDES and setting the cache variable VAR
1772 # accordingly.
1773 ac_fn_c_check_header_mongrel ()
1774 {
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1780 $as_echo_n "(cached) " >&6
1781 fi
1782 eval ac_res=\$$3
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1785 else
1786 # Is the header compilable?
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1788 $as_echo_n "checking $2 usability... " >&6; }
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1791 $4
1792 #include <$2>
1793 _ACEOF
1794 if ac_fn_c_try_compile "$LINENO"; then :
1795 ac_header_compiler=yes
1796 else
1797 ac_header_compiler=no
1798 fi
1799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1801 $as_echo "$ac_header_compiler" >&6; }
1802
1803 # Is the header present?
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1805 $as_echo_n "checking $2 presence... " >&6; }
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h. */
1808 #include <$2>
1809 _ACEOF
1810 if ac_fn_c_try_cpp "$LINENO"; then :
1811 ac_header_preproc=yes
1812 else
1813 ac_header_preproc=no
1814 fi
1815 rm -f conftest.err conftest.$ac_ext
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1817 $as_echo "$ac_header_preproc" >&6; }
1818
1819 # So? What about this header?
1820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1821 yes:no: )
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1823 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1825 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1826 ;;
1827 no:yes:* )
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1829 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1831 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1833 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1835 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1837 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1838 ;;
1839 esac
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841 $as_echo_n "checking for $2... " >&6; }
1842 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1843 $as_echo_n "(cached) " >&6
1844 else
1845 eval "$3=\$ac_header_compiler"
1846 fi
1847 eval ac_res=\$$3
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849 $as_echo "$ac_res" >&6; }
1850 fi
1851 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852
1853 } # ac_fn_c_check_header_mongrel
1854
1855 # ac_fn_c_try_run LINENO
1856 # ----------------------
1857 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1858 # that executables *can* be run.
1859 ac_fn_c_try_run ()
1860 {
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 if { { ac_try="$ac_link"
1863 case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866 esac
1867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868 $as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_link") 2>&5
1870 ac_status=$?
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1873 { { case "(($ac_try" in
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1876 esac
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_try") 2>&5
1880 ac_status=$?
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; }; }; then :
1883 ac_retval=0
1884 else
1885 $as_echo "$as_me: program exited with status $ac_status" >&5
1886 $as_echo "$as_me: failed program was:" >&5
1887 sed 's/^/| /' conftest.$ac_ext >&5
1888
1889 ac_retval=$ac_status
1890 fi
1891 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1892 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1893 return $ac_retval
1894
1895 } # ac_fn_c_try_run
1896
1897 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1898 # -------------------------------------------------------
1899 # Tests whether HEADER exists and can be compiled using the include files in
1900 # INCLUDES, setting the cache variable VAR accordingly.
1901 ac_fn_c_check_header_compile ()
1902 {
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905 $as_echo_n "checking for $2... " >&6; }
1906 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1907 $as_echo_n "(cached) " >&6
1908 else
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910 /* end confdefs.h. */
1911 $4
1912 #include <$2>
1913 _ACEOF
1914 if ac_fn_c_try_compile "$LINENO"; then :
1915 eval "$3=yes"
1916 else
1917 eval "$3=no"
1918 fi
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 fi
1921 eval ac_res=\$$3
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1924 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1925
1926 } # ac_fn_c_check_header_compile
1927
1928 # ac_fn_c_try_link LINENO
1929 # -----------------------
1930 # Try to link conftest.$ac_ext, and return whether this succeeded.
1931 ac_fn_c_try_link ()
1932 {
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 rm -f conftest.$ac_objext conftest$ac_exeext
1935 if { { ac_try="$ac_link"
1936 case "(($ac_try" in
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1939 esac
1940 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941 $as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_link") 2>conftest.err
1943 ac_status=$?
1944 if test -s conftest.err; then
1945 grep -v '^ *+' conftest.err >conftest.er1
1946 cat conftest.er1 >&5
1947 mv -f conftest.er1 conftest.err
1948 fi
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } && {
1951 test -z "$ac_c_werror_flag" ||
1952 test ! -s conftest.err
1953 } && test -s conftest$ac_exeext && {
1954 test "$cross_compiling" = yes ||
1955 $as_test_x conftest$ac_exeext
1956 }; then :
1957 ac_retval=0
1958 else
1959 $as_echo "$as_me: failed program was:" >&5
1960 sed 's/^/| /' conftest.$ac_ext >&5
1961
1962 ac_retval=1
1963 fi
1964 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1965 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1966 # interfere with the next link command; also delete a directory that is
1967 # left behind by Apple's compiler. We do this before executing the actions.
1968 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970 return $ac_retval
1971
1972 } # ac_fn_c_try_link
1973
1974 # ac_fn_c_check_func LINENO FUNC VAR
1975 # ----------------------------------
1976 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1977 ac_fn_c_check_func ()
1978 {
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1983 $as_echo_n "(cached) " >&6
1984 else
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1987 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1989 #define $2 innocuous_$2
1990
1991 /* System header to define __stub macros and hopefully few prototypes,
1992 which can conflict with char $2 (); below.
1993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1994 <limits.h> exists even on freestanding compilers. */
1995
1996 #ifdef __STDC__
1997 # include <limits.h>
1998 #else
1999 # include <assert.h>
2000 #endif
2001
2002 #undef $2
2003
2004 /* Override any GCC internal prototype to avoid an error.
2005 Use char because int might match the return type of a GCC
2006 builtin and then its argument prototype would still apply. */
2007 #ifdef __cplusplus
2008 extern "C"
2009 #endif
2010 char $2 ();
2011 /* The GNU C library defines this for functions which it implements
2012 to always fail with ENOSYS. Some functions are actually named
2013 something starting with __ and the normal name is an alias. */
2014 #if defined __stub_$2 || defined __stub___$2
2015 choke me
2016 #endif
2017
2018 int
2019 main ()
2020 {
2021 return $2 ();
2022 ;
2023 return 0;
2024 }
2025 _ACEOF
2026 if ac_fn_c_try_link "$LINENO"; then :
2027 eval "$3=yes"
2028 else
2029 eval "$3=no"
2030 fi
2031 rm -f core conftest.err conftest.$ac_objext \
2032 conftest$ac_exeext conftest.$ac_ext
2033 fi
2034 eval ac_res=\$$3
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036 $as_echo "$ac_res" >&6; }
2037 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2038
2039 } # ac_fn_c_check_func
2040
2041 # ac_fn_c_check_decl LINENO SYMBOL VAR
2042 # ------------------------------------
2043 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2044 ac_fn_c_check_decl ()
2045 {
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2048 $as_echo_n "checking whether $2 is declared... " >&6; }
2049 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2050 $as_echo_n "(cached) " >&6
2051 else
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2054 $4
2055 int
2056 main ()
2057 {
2058 #ifndef $2
2059 (void) $2;
2060 #endif
2061
2062 ;
2063 return 0;
2064 }
2065 _ACEOF
2066 if ac_fn_c_try_compile "$LINENO"; then :
2067 eval "$3=yes"
2068 else
2069 eval "$3=no"
2070 fi
2071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 fi
2073 eval ac_res=\$$3
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075 $as_echo "$ac_res" >&6; }
2076 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2077
2078 } # ac_fn_c_check_decl
2079
2080 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2081 # --------------------------------------------
2082 # Tries to find the compile-time value of EXPR in a program that includes
2083 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2084 # computed
2085 ac_fn_c_compute_int ()
2086 {
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 if test "$cross_compiling" = yes; then
2089 # Depending upon the size, compute the lo and hi bounds.
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2092 $4
2093 int
2094 main ()
2095 {
2096 static int test_array [1 - 2 * !(($2) >= 0)];
2097 test_array [0] = 0
2098
2099 ;
2100 return 0;
2101 }
2102 _ACEOF
2103 if ac_fn_c_try_compile "$LINENO"; then :
2104 ac_lo=0 ac_mid=0
2105 while :; do
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2108 $4
2109 int
2110 main ()
2111 {
2112 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2113 test_array [0] = 0
2114
2115 ;
2116 return 0;
2117 }
2118 _ACEOF
2119 if ac_fn_c_try_compile "$LINENO"; then :
2120 ac_hi=$ac_mid; break
2121 else
2122 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2123 if test $ac_lo -le $ac_mid; then
2124 ac_lo= ac_hi=
2125 break
2126 fi
2127 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2128 fi
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 done
2131 else
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2134 $4
2135 int
2136 main ()
2137 {
2138 static int test_array [1 - 2 * !(($2) < 0)];
2139 test_array [0] = 0
2140
2141 ;
2142 return 0;
2143 }
2144 _ACEOF
2145 if ac_fn_c_try_compile "$LINENO"; then :
2146 ac_hi=-1 ac_mid=-1
2147 while :; do
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2150 $4
2151 int
2152 main ()
2153 {
2154 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2155 test_array [0] = 0
2156
2157 ;
2158 return 0;
2159 }
2160 _ACEOF
2161 if ac_fn_c_try_compile "$LINENO"; then :
2162 ac_lo=$ac_mid; break
2163 else
2164 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2165 if test $ac_mid -le $ac_hi; then
2166 ac_lo= ac_hi=
2167 break
2168 fi
2169 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2170 fi
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 done
2173 else
2174 ac_lo= ac_hi=
2175 fi
2176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2177 fi
2178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179 # Binary search between lo and hi bounds.
2180 while test "x$ac_lo" != "x$ac_hi"; do
2181 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2184 $4
2185 int
2186 main ()
2187 {
2188 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2189 test_array [0] = 0
2190
2191 ;
2192 return 0;
2193 }
2194 _ACEOF
2195 if ac_fn_c_try_compile "$LINENO"; then :
2196 ac_hi=$ac_mid
2197 else
2198 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2199 fi
2200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201 done
2202 case $ac_lo in #((
2203 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2204 '') ac_retval=1 ;;
2205 esac
2206 else
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2209 $4
2210 static long int longval () { return $2; }
2211 static unsigned long int ulongval () { return $2; }
2212 #include <stdio.h>
2213 #include <stdlib.h>
2214 int
2215 main ()
2216 {
2217
2218 FILE *f = fopen ("conftest.val", "w");
2219 if (! f)
2220 return 1;
2221 if (($2) < 0)
2222 {
2223 long int i = longval ();
2224 if (i != ($2))
2225 return 1;
2226 fprintf (f, "%ld", i);
2227 }
2228 else
2229 {
2230 unsigned long int i = ulongval ();
2231 if (i != ($2))
2232 return 1;
2233 fprintf (f, "%lu", i);
2234 }
2235 /* Do not output a trailing newline, as this causes \r\n confusion
2236 on some platforms. */
2237 return ferror (f) || fclose (f) != 0;
2238
2239 ;
2240 return 0;
2241 }
2242 _ACEOF
2243 if ac_fn_c_try_run "$LINENO"; then :
2244 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2245 else
2246 ac_retval=1
2247 fi
2248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2249 conftest.$ac_objext conftest.beam conftest.$ac_ext
2250 rm -f conftest.val
2251
2252 fi
2253 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2254 return $ac_retval
2255
2256 } # ac_fn_c_compute_int
2257
2258 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2259 # -------------------------------------------
2260 # Tests whether TYPE exists after having included INCLUDES, setting cache
2261 # variable VAR accordingly.
2262 ac_fn_c_check_type ()
2263 {
2264 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2266 $as_echo_n "checking for $2... " >&6; }
2267 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2268 $as_echo_n "(cached) " >&6
2269 else
2270 eval "$3=no"
2271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2272 /* end confdefs.h. */
2273 $4
2274 int
2275 main ()
2276 {
2277 if (sizeof ($2))
2278 return 0;
2279 ;
2280 return 0;
2281 }
2282 _ACEOF
2283 if ac_fn_c_try_compile "$LINENO"; then :
2284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2285 /* end confdefs.h. */
2286 $4
2287 int
2288 main ()
2289 {
2290 if (sizeof (($2)))
2291 return 0;
2292 ;
2293 return 0;
2294 }
2295 _ACEOF
2296 if ac_fn_c_try_compile "$LINENO"; then :
2297
2298 else
2299 eval "$3=yes"
2300 fi
2301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302 fi
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2304 fi
2305 eval ac_res=\$$3
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2307 $as_echo "$ac_res" >&6; }
2308 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2309
2310 } # ac_fn_c_check_type
2311 cat >config.log <<_ACEOF
2312 This file contains any messages produced by compilers while
2313 running configure, to aid debugging if configure makes a mistake.
2314
2315 It was created by $as_me, which was
2316 generated by GNU Autoconf 2.64. Invocation command line was
2317
2318 $ $0 $@
2319
2320 _ACEOF
2321 exec 5>>config.log
2322 {
2323 cat <<_ASUNAME
2324 ## --------- ##
2325 ## Platform. ##
2326 ## --------- ##
2327
2328 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2329 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2330 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2331 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2332 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2333
2334 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2335 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2336
2337 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2338 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2339 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2340 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2341 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2342 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2343 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2344
2345 _ASUNAME
2346
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2349 do
2350 IFS=$as_save_IFS
2351 test -z "$as_dir" && as_dir=.
2352 $as_echo "PATH: $as_dir"
2353 done
2354 IFS=$as_save_IFS
2355
2356 } >&5
2357
2358 cat >&5 <<_ACEOF
2359
2360
2361 ## ----------- ##
2362 ## Core tests. ##
2363 ## ----------- ##
2364
2365 _ACEOF
2366
2367
2368 # Keep a trace of the command line.
2369 # Strip out --no-create and --no-recursion so they do not pile up.
2370 # Strip out --silent because we don't want to record it for future runs.
2371 # Also quote any args containing shell meta-characters.
2372 # Make two passes to allow for proper duplicate-argument suppression.
2373 ac_configure_args=
2374 ac_configure_args0=
2375 ac_configure_args1=
2376 ac_must_keep_next=false
2377 for ac_pass in 1 2
2378 do
2379 for ac_arg
2380 do
2381 case $ac_arg in
2382 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2384 | -silent | --silent | --silen | --sile | --sil)
2385 continue ;;
2386 *\'*)
2387 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2388 esac
2389 case $ac_pass in
2390 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2391 2)
2392 as_fn_append ac_configure_args1 " '$ac_arg'"
2393 if test $ac_must_keep_next = true; then
2394 ac_must_keep_next=false # Got value, back to normal.
2395 else
2396 case $ac_arg in
2397 *=* | --config-cache | -C | -disable-* | --disable-* \
2398 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2399 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2400 | -with-* | --with-* | -without-* | --without-* | --x)
2401 case "$ac_configure_args0 " in
2402 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2403 esac
2404 ;;
2405 -* ) ac_must_keep_next=true ;;
2406 esac
2407 fi
2408 as_fn_append ac_configure_args " '$ac_arg'"
2409 ;;
2410 esac
2411 done
2412 done
2413 { ac_configure_args0=; unset ac_configure_args0;}
2414 { ac_configure_args1=; unset ac_configure_args1;}
2415
2416 # When interrupted or exit'd, cleanup temporary files, and complete
2417 # config.log. We remove comments because anyway the quotes in there
2418 # would cause problems or look ugly.
2419 # WARNING: Use '\'' to represent an apostrophe within the trap.
2420 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2421 trap 'exit_status=$?
2422 # Save into config.log some information that might help in debugging.
2423 {
2424 echo
2425
2426 cat <<\_ASBOX
2427 ## ---------------- ##
2428 ## Cache variables. ##
2429 ## ---------------- ##
2430 _ASBOX
2431 echo
2432 # The following way of writing the cache mishandles newlines in values,
2433 (
2434 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2435 eval ac_val=\$$ac_var
2436 case $ac_val in #(
2437 *${as_nl}*)
2438 case $ac_var in #(
2439 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2440 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2441 esac
2442 case $ac_var in #(
2443 _ | IFS | as_nl) ;; #(
2444 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2445 *) { eval $ac_var=; unset $ac_var;} ;;
2446 esac ;;
2447 esac
2448 done
2449 (set) 2>&1 |
2450 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2451 *${as_nl}ac_space=\ *)
2452 sed -n \
2453 "s/'\''/'\''\\\\'\'''\''/g;
2454 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2455 ;; #(
2456 *)
2457 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2458 ;;
2459 esac |
2460 sort
2461 )
2462 echo
2463
2464 cat <<\_ASBOX
2465 ## ----------------- ##
2466 ## Output variables. ##
2467 ## ----------------- ##
2468 _ASBOX
2469 echo
2470 for ac_var in $ac_subst_vars
2471 do
2472 eval ac_val=\$$ac_var
2473 case $ac_val in
2474 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2475 esac
2476 $as_echo "$ac_var='\''$ac_val'\''"
2477 done | sort
2478 echo
2479
2480 if test -n "$ac_subst_files"; then
2481 cat <<\_ASBOX
2482 ## ------------------- ##
2483 ## File substitutions. ##
2484 ## ------------------- ##
2485 _ASBOX
2486 echo
2487 for ac_var in $ac_subst_files
2488 do
2489 eval ac_val=\$$ac_var
2490 case $ac_val in
2491 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2492 esac
2493 $as_echo "$ac_var='\''$ac_val'\''"
2494 done | sort
2495 echo
2496 fi
2497
2498 if test -s confdefs.h; then
2499 cat <<\_ASBOX
2500 ## ----------- ##
2501 ## confdefs.h. ##
2502 ## ----------- ##
2503 _ASBOX
2504 echo
2505 cat confdefs.h
2506 echo
2507 fi
2508 test "$ac_signal" != 0 &&
2509 $as_echo "$as_me: caught signal $ac_signal"
2510 $as_echo "$as_me: exit $exit_status"
2511 } >&5
2512 rm -f core *.core core.conftest.* &&
2513 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2514 exit $exit_status
2515 ' 0
2516 for ac_signal in 1 2 13 15; do
2517 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2518 done
2519 ac_signal=0
2520
2521 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2522 rm -f -r conftest* confdefs.h
2523
2524 $as_echo "/* confdefs.h */" > confdefs.h
2525
2526 # Predefined preprocessor variables.
2527
2528 cat >>confdefs.h <<_ACEOF
2529 #define PACKAGE_NAME "$PACKAGE_NAME"
2530 _ACEOF
2531
2532 cat >>confdefs.h <<_ACEOF
2533 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2534 _ACEOF
2535
2536 cat >>confdefs.h <<_ACEOF
2537 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2538 _ACEOF
2539
2540 cat >>confdefs.h <<_ACEOF
2541 #define PACKAGE_STRING "$PACKAGE_STRING"
2542 _ACEOF
2543
2544 cat >>confdefs.h <<_ACEOF
2545 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2546 _ACEOF
2547
2548 cat >>confdefs.h <<_ACEOF
2549 #define PACKAGE_URL "$PACKAGE_URL"
2550 _ACEOF
2551
2552
2553 # Let the site file select an alternate cache file if it wants to.
2554 # Prefer an explicitly selected file to automatically selected ones.
2555 ac_site_file1=NONE
2556 ac_site_file2=NONE
2557 if test -n "$CONFIG_SITE"; then
2558 ac_site_file1=$CONFIG_SITE
2559 elif test "x$prefix" != xNONE; then
2560 ac_site_file1=$prefix/share/config.site
2561 ac_site_file2=$prefix/etc/config.site
2562 else
2563 ac_site_file1=$ac_default_prefix/share/config.site
2564 ac_site_file2=$ac_default_prefix/etc/config.site
2565 fi
2566 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2567 do
2568 test "x$ac_site_file" = xNONE && continue
2569 if test -r "$ac_site_file"; then
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2571 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2572 sed 's/^/| /' "$ac_site_file" >&5
2573 . "$ac_site_file"
2574 fi
2575 done
2576
2577 if test -r "$cache_file"; then
2578 # Some versions of bash will fail to source /dev/null (special
2579 # files actually), so we avoid doing that.
2580 if test -f "$cache_file"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2582 $as_echo "$as_me: loading cache $cache_file" >&6;}
2583 case $cache_file in
2584 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2585 *) . "./$cache_file";;
2586 esac
2587 fi
2588 else
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2590 $as_echo "$as_me: creating cache $cache_file" >&6;}
2591 >$cache_file
2592 fi
2593
2594 gl_func_list="$gl_func_list btowc"
2595 gl_func_list="$gl_func_list isblank"
2596 gl_func_list="$gl_func_list iswctype"
2597 gl_func_list="$gl_func_list mbsrtowcs"
2598 gl_func_list="$gl_func_list mempcpy"
2599 gl_func_list="$gl_func_list wmemchr"
2600 gl_func_list="$gl_func_list wmemcpy"
2601 gl_func_list="$gl_func_list wmempcpy"
2602 gl_header_list="$gl_header_list wctype.h"
2603 gl_fnmatch_required=GNU
2604 gl_header_list="$gl_header_list wchar.h"
2605 gl_header_list="$gl_header_list stdint.h"
2606 gl_header_list="$gl_header_list inttypes.h"
2607 gl_header_list="$gl_header_list unistd.h"
2608 gl_func_list="$gl_func_list symlink"
2609 gl_func_list="$gl_func_list mbsinit"
2610 gl_func_list="$gl_func_list mbrtowc"
2611 gl_header_list="$gl_header_list sys/mman.h"
2612 gl_func_list="$gl_func_list mprotect"
2613 gl_header_list="$gl_header_list features.h"
2614 gl_func_list="$gl_func_list iswcntrl"
2615 # Check that the precious variables saved in the cache have kept the same
2616 # value.
2617 ac_cache_corrupted=false
2618 for ac_var in $ac_precious_vars; do
2619 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2620 eval ac_new_set=\$ac_env_${ac_var}_set
2621 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2622 eval ac_new_val=\$ac_env_${ac_var}_value
2623 case $ac_old_set,$ac_new_set in
2624 set,)
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2626 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2627 ac_cache_corrupted=: ;;
2628 ,set)
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2630 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2631 ac_cache_corrupted=: ;;
2632 ,);;
2633 *)
2634 if test "x$ac_old_val" != "x$ac_new_val"; then
2635 # differences in whitespace do not lead to failure.
2636 ac_old_val_w=`echo x $ac_old_val`
2637 ac_new_val_w=`echo x $ac_new_val`
2638 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2640 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2641 ac_cache_corrupted=:
2642 else
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2644 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2645 eval $ac_var=\$ac_old_val
2646 fi
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2648 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2650 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2651 fi;;
2652 esac
2653 # Pass precious variables to config.status.
2654 if test "$ac_new_set" = set; then
2655 case $ac_new_val in
2656 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2657 *) ac_arg=$ac_var=$ac_new_val ;;
2658 esac
2659 case " $ac_configure_args " in
2660 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2661 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2662 esac
2663 fi
2664 done
2665 if $ac_cache_corrupted; then
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2669 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2670 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2671 fi
2672 ## -------------------- ##
2673 ## Main body of script. ##
2674 ## -------------------- ##
2675
2676 ac_ext=c
2677 ac_cpp='$CPP $CPPFLAGS'
2678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2681
2682
2683 ac_config_headers="$ac_config_headers config.h:config.in"
2684
2685
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2687 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2688 # Check whether --enable-maintainer-mode was given.
2689 if test "${enable_maintainer_mode+set}" = set; then :
2690 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2691 else
2692 USE_MAINTAINER_MODE=no
2693 fi
2694
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2696 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2697 if test $USE_MAINTAINER_MODE = yes; then
2698 MAINTAINER_MODE_TRUE=
2699 MAINTAINER_MODE_FALSE='#'
2700 else
2701 MAINTAINER_MODE_TRUE='#'
2702 MAINTAINER_MODE_FALSE=
2703 fi
2704
2705 MAINT=$MAINTAINER_MODE_TRUE
2706
2707
2708
2709 ac_ext=c
2710 ac_cpp='$CPP $CPPFLAGS'
2711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2714 if test -n "$ac_tool_prefix"; then
2715 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2716 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718 $as_echo_n "checking for $ac_word... " >&6; }
2719 if test "${ac_cv_prog_CC+set}" = set; then :
2720 $as_echo_n "(cached) " >&6
2721 else
2722 if test -n "$CC"; then
2723 ac_cv_prog_CC="$CC" # Let the user override the test.
2724 else
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 for as_dir in $PATH
2727 do
2728 IFS=$as_save_IFS
2729 test -z "$as_dir" && as_dir=.
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2732 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 break 2
2735 fi
2736 done
2737 done
2738 IFS=$as_save_IFS
2739
2740 fi
2741 fi
2742 CC=$ac_cv_prog_CC
2743 if test -n "$CC"; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2745 $as_echo "$CC" >&6; }
2746 else
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748 $as_echo "no" >&6; }
2749 fi
2750
2751
2752 fi
2753 if test -z "$ac_cv_prog_CC"; then
2754 ac_ct_CC=$CC
2755 # Extract the first word of "gcc", so it can be a program name with args.
2756 set dummy gcc; ac_word=$2
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758 $as_echo_n "checking for $ac_word... " >&6; }
2759 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2760 $as_echo_n "(cached) " >&6
2761 else
2762 if test -n "$ac_ct_CC"; then
2763 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2764 else
2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 for as_dir in $PATH
2767 do
2768 IFS=$as_save_IFS
2769 test -z "$as_dir" && as_dir=.
2770 for ac_exec_ext in '' $ac_executable_extensions; do
2771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2772 ac_cv_prog_ac_ct_CC="gcc"
2773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2774 break 2
2775 fi
2776 done
2777 done
2778 IFS=$as_save_IFS
2779
2780 fi
2781 fi
2782 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2783 if test -n "$ac_ct_CC"; then
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2785 $as_echo "$ac_ct_CC" >&6; }
2786 else
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2788 $as_echo "no" >&6; }
2789 fi
2790
2791 if test "x$ac_ct_CC" = x; then
2792 CC=""
2793 else
2794 case $cross_compiling:$ac_tool_warned in
2795 yes:)
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2798 ac_tool_warned=yes ;;
2799 esac
2800 CC=$ac_ct_CC
2801 fi
2802 else
2803 CC="$ac_cv_prog_CC"
2804 fi
2805
2806 if test -z "$CC"; then
2807 if test -n "$ac_tool_prefix"; then
2808 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2809 set dummy ${ac_tool_prefix}cc; ac_word=$2
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811 $as_echo_n "checking for $ac_word... " >&6; }
2812 if test "${ac_cv_prog_CC+set}" = set; then :
2813 $as_echo_n "(cached) " >&6
2814 else
2815 if test -n "$CC"; then
2816 ac_cv_prog_CC="$CC" # Let the user override the test.
2817 else
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 for as_dir in $PATH
2820 do
2821 IFS=$as_save_IFS
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2825 ac_cv_prog_CC="${ac_tool_prefix}cc"
2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 break 2
2828 fi
2829 done
2830 done
2831 IFS=$as_save_IFS
2832
2833 fi
2834 fi
2835 CC=$ac_cv_prog_CC
2836 if test -n "$CC"; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2838 $as_echo "$CC" >&6; }
2839 else
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841 $as_echo "no" >&6; }
2842 fi
2843
2844
2845 fi
2846 fi
2847 if test -z "$CC"; then
2848 # Extract the first word of "cc", so it can be a program name with args.
2849 set dummy cc; ac_word=$2
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851 $as_echo_n "checking for $ac_word... " >&6; }
2852 if test "${ac_cv_prog_CC+set}" = set; then :
2853 $as_echo_n "(cached) " >&6
2854 else
2855 if test -n "$CC"; then
2856 ac_cv_prog_CC="$CC" # Let the user override the test.
2857 else
2858 ac_prog_rejected=no
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2861 do
2862 IFS=$as_save_IFS
2863 test -z "$as_dir" && as_dir=.
2864 for ac_exec_ext in '' $ac_executable_extensions; do
2865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2866 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2867 ac_prog_rejected=yes
2868 continue
2869 fi
2870 ac_cv_prog_CC="cc"
2871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2872 break 2
2873 fi
2874 done
2875 done
2876 IFS=$as_save_IFS
2877
2878 if test $ac_prog_rejected = yes; then
2879 # We found a bogon in the path, so make sure we never use it.
2880 set dummy $ac_cv_prog_CC
2881 shift
2882 if test $# != 0; then
2883 # We chose a different compiler from the bogus one.
2884 # However, it has the same basename, so the bogon will be chosen
2885 # first if we set CC to just the basename; use the full file name.
2886 shift
2887 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2888 fi
2889 fi
2890 fi
2891 fi
2892 CC=$ac_cv_prog_CC
2893 if test -n "$CC"; then
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2895 $as_echo "$CC" >&6; }
2896 else
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898 $as_echo "no" >&6; }
2899 fi
2900
2901
2902 fi
2903 if test -z "$CC"; then
2904 if test -n "$ac_tool_prefix"; then
2905 for ac_prog in cl.exe
2906 do
2907 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2908 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910 $as_echo_n "checking for $ac_word... " >&6; }
2911 if test "${ac_cv_prog_CC+set}" = set; then :
2912 $as_echo_n "(cached) " >&6
2913 else
2914 if test -n "$CC"; then
2915 ac_cv_prog_CC="$CC" # Let the user override the test.
2916 else
2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 for as_dir in $PATH
2919 do
2920 IFS=$as_save_IFS
2921 test -z "$as_dir" && as_dir=.
2922 for ac_exec_ext in '' $ac_executable_extensions; do
2923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2924 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 break 2
2927 fi
2928 done
2929 done
2930 IFS=$as_save_IFS
2931
2932 fi
2933 fi
2934 CC=$ac_cv_prog_CC
2935 if test -n "$CC"; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2937 $as_echo "$CC" >&6; }
2938 else
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940 $as_echo "no" >&6; }
2941 fi
2942
2943
2944 test -n "$CC" && break
2945 done
2946 fi
2947 if test -z "$CC"; then
2948 ac_ct_CC=$CC
2949 for ac_prog in cl.exe
2950 do
2951 # Extract the first word of "$ac_prog", so it can be a program name with args.
2952 set dummy $ac_prog; ac_word=$2
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2954 $as_echo_n "checking for $ac_word... " >&6; }
2955 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2956 $as_echo_n "(cached) " >&6
2957 else
2958 if test -n "$ac_ct_CC"; then
2959 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2960 else
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH
2963 do
2964 IFS=$as_save_IFS
2965 test -z "$as_dir" && as_dir=.
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2968 ac_cv_prog_ac_ct_CC="$ac_prog"
2969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2970 break 2
2971 fi
2972 done
2973 done
2974 IFS=$as_save_IFS
2975
2976 fi
2977 fi
2978 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2979 if test -n "$ac_ct_CC"; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2981 $as_echo "$ac_ct_CC" >&6; }
2982 else
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984 $as_echo "no" >&6; }
2985 fi
2986
2987
2988 test -n "$ac_ct_CC" && break
2989 done
2990
2991 if test "x$ac_ct_CC" = x; then
2992 CC=""
2993 else
2994 case $cross_compiling:$ac_tool_warned in
2995 yes:)
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2998 ac_tool_warned=yes ;;
2999 esac
3000 CC=$ac_ct_CC
3001 fi
3002 fi
3003
3004 fi
3005
3006
3007 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3009 as_fn_error "no acceptable C compiler found in \$PATH
3010 See \`config.log' for more details." "$LINENO" 5; }
3011
3012 # Provide some information about the compiler.
3013 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3014 set X $ac_compile
3015 ac_compiler=$2
3016 for ac_option in --version -v -V -qversion; do
3017 { { ac_try="$ac_compiler $ac_option >&5"
3018 case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3021 esac
3022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3023 $as_echo "$ac_try_echo"; } >&5
3024 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3025 ac_status=$?
3026 if test -s conftest.err; then
3027 sed '10a\
3028 ... rest of stderr output deleted ...
3029 10q' conftest.err >conftest.er1
3030 cat conftest.er1 >&5
3031 rm -f conftest.er1 conftest.err
3032 fi
3033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3034 test $ac_status = 0; }
3035 done
3036
3037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3038 /* end confdefs.h. */
3039 #include <stdio.h>
3040 int
3041 main ()
3042 {
3043 FILE *f = fopen ("conftest.out", "w");
3044 return ferror (f) || fclose (f) != 0;
3045
3046 ;
3047 return 0;
3048 }
3049 _ACEOF
3050 ac_clean_files_save=$ac_clean_files
3051 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3052 # Try to create an executable without -o first, disregard a.out.
3053 # It will help us diagnose broken compilers, and finding out an intuition
3054 # of exeext.
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3056 $as_echo_n "checking for C compiler default output file name... " >&6; }
3057 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3058
3059 # The possible output files:
3060 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3061
3062 ac_rmfiles=
3063 for ac_file in $ac_files
3064 do
3065 case $ac_file in
3066 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3067 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3068 esac
3069 done
3070 rm -f $ac_rmfiles
3071
3072 if { { ac_try="$ac_link_default"
3073 case "(($ac_try" in
3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3076 esac
3077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3078 $as_echo "$ac_try_echo"; } >&5
3079 (eval "$ac_link_default") 2>&5
3080 ac_status=$?
3081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3082 test $ac_status = 0; }; then :
3083 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3084 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3085 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3086 # so that the user can short-circuit this test for compilers unknown to
3087 # Autoconf.
3088 for ac_file in $ac_files ''
3089 do
3090 test -f "$ac_file" || continue
3091 case $ac_file in
3092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3093 ;;
3094 [ab].out )
3095 # We found the default executable, but exeext='' is most
3096 # certainly right.
3097 break;;
3098 *.* )
3099 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3100 then :; else
3101 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3102 fi
3103 # We set ac_cv_exeext here because the later test for it is not
3104 # safe: cross compilers may not add the suffix if given an `-o'
3105 # argument, so we may need to know it at that point already.
3106 # Even if this section looks crufty: it has the advantage of
3107 # actually working.
3108 break;;
3109 * )
3110 break;;
3111 esac
3112 done
3113 test "$ac_cv_exeext" = no && ac_cv_exeext=
3114
3115 else
3116 ac_file=''
3117 fi
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3119 $as_echo "$ac_file" >&6; }
3120 if test -z "$ac_file"; then :
3121 $as_echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3123
3124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3126 { as_fn_set_status 77
3127 as_fn_error "C compiler cannot create executables
3128 See \`config.log' for more details." "$LINENO" 5; }; }
3129 fi
3130 ac_exeext=$ac_cv_exeext
3131
3132 # Check that the compiler produces executables we can run. If not, either
3133 # the compiler is broken, or we cross compile.
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3135 $as_echo_n "checking whether the C compiler works... " >&6; }
3136 # If not cross compiling, check that we can run a simple program.
3137 if test "$cross_compiling" != yes; then
3138 if { ac_try='./$ac_file'
3139 { { case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142 esac
3143 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3144 $as_echo "$ac_try_echo"; } >&5
3145 (eval "$ac_try") 2>&5
3146 ac_status=$?
3147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3148 test $ac_status = 0; }; }; then
3149 cross_compiling=no
3150 else
3151 if test "$cross_compiling" = maybe; then
3152 cross_compiling=yes
3153 else
3154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3155 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3156 as_fn_error "cannot run C compiled programs.
3157 If you meant to cross compile, use \`--host'.
3158 See \`config.log' for more details." "$LINENO" 5; }
3159 fi
3160 fi
3161 fi
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3163 $as_echo "yes" >&6; }
3164
3165 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3166 ac_clean_files=$ac_clean_files_save
3167 # Check that the compiler produces executables we can run. If not, either
3168 # the compiler is broken, or we cross compile.
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3170 $as_echo_n "checking whether we are cross compiling... " >&6; }
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3172 $as_echo "$cross_compiling" >&6; }
3173
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3175 $as_echo_n "checking for suffix of executables... " >&6; }
3176 if { { ac_try="$ac_link"
3177 case "(($ac_try" in
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3180 esac
3181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3182 $as_echo "$ac_try_echo"; } >&5
3183 (eval "$ac_link") 2>&5
3184 ac_status=$?
3185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3186 test $ac_status = 0; }; then :
3187 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3188 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3189 # work properly (i.e., refer to `conftest.exe'), while it won't with
3190 # `rm'.
3191 for ac_file in conftest.exe conftest conftest.*; do
3192 test -f "$ac_file" || continue
3193 case $ac_file in
3194 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3195 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3196 break;;
3197 * ) break;;
3198 esac
3199 done
3200 else
3201 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3202 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3203 as_fn_error "cannot compute suffix of executables: cannot compile and link
3204 See \`config.log' for more details." "$LINENO" 5; }
3205 fi
3206 rm -f conftest$ac_cv_exeext
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3208 $as_echo "$ac_cv_exeext" >&6; }
3209
3210 rm -f conftest.$ac_ext
3211 EXEEXT=$ac_cv_exeext
3212 ac_exeext=$EXEEXT
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3214 $as_echo_n "checking for suffix of object files... " >&6; }
3215 if test "${ac_cv_objext+set}" = set; then :
3216 $as_echo_n "(cached) " >&6
3217 else
3218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3219 /* end confdefs.h. */
3220
3221 int
3222 main ()
3223 {
3224
3225 ;
3226 return 0;
3227 }
3228 _ACEOF
3229 rm -f conftest.o conftest.obj
3230 if { { ac_try="$ac_compile"
3231 case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3234 esac
3235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3236 $as_echo "$ac_try_echo"; } >&5
3237 (eval "$ac_compile") 2>&5
3238 ac_status=$?
3239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3240 test $ac_status = 0; }; then :
3241 for ac_file in conftest.o conftest.obj conftest.*; do
3242 test -f "$ac_file" || continue;
3243 case $ac_file in
3244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3245 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3246 break;;
3247 esac
3248 done
3249 else
3250 $as_echo "$as_me: failed program was:" >&5
3251 sed 's/^/| /' conftest.$ac_ext >&5
3252
3253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3255 as_fn_error "cannot compute suffix of object files: cannot compile
3256 See \`config.log' for more details." "$LINENO" 5; }
3257 fi
3258 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3259 fi
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3261 $as_echo "$ac_cv_objext" >&6; }
3262 OBJEXT=$ac_cv_objext
3263 ac_objext=$OBJEXT
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3265 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3266 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3267 $as_echo_n "(cached) " >&6
3268 else
3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270 /* end confdefs.h. */
3271
3272 int
3273 main ()
3274 {
3275 #ifndef __GNUC__
3276 choke me
3277 #endif
3278
3279 ;
3280 return 0;
3281 }
3282 _ACEOF
3283 if ac_fn_c_try_compile "$LINENO"; then :
3284 ac_compiler_gnu=yes
3285 else
3286 ac_compiler_gnu=no
3287 fi
3288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3289 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3290
3291 fi
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3293 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3294 if test $ac_compiler_gnu = yes; then
3295 GCC=yes
3296 else
3297 GCC=
3298 fi
3299 ac_test_CFLAGS=${CFLAGS+set}
3300 ac_save_CFLAGS=$CFLAGS
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3302 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3303 if test "${ac_cv_prog_cc_g+set}" = set; then :
3304 $as_echo_n "(cached) " >&6
3305 else
3306 ac_save_c_werror_flag=$ac_c_werror_flag
3307 ac_c_werror_flag=yes
3308 ac_cv_prog_cc_g=no
3309 CFLAGS="-g"
3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311 /* end confdefs.h. */
3312
3313 int
3314 main ()
3315 {
3316
3317 ;
3318 return 0;
3319 }
3320 _ACEOF
3321 if ac_fn_c_try_compile "$LINENO"; then :
3322 ac_cv_prog_cc_g=yes
3323 else
3324 CFLAGS=""
3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326 /* end confdefs.h. */
3327
3328 int
3329 main ()
3330 {
3331
3332 ;
3333 return 0;
3334 }
3335 _ACEOF
3336 if ac_fn_c_try_compile "$LINENO"; then :
3337
3338 else
3339 ac_c_werror_flag=$ac_save_c_werror_flag
3340 CFLAGS="-g"
3341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3342 /* end confdefs.h. */
3343
3344 int
3345 main ()
3346 {
3347
3348 ;
3349 return 0;
3350 }
3351 _ACEOF
3352 if ac_fn_c_try_compile "$LINENO"; then :
3353 ac_cv_prog_cc_g=yes
3354 fi
3355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3356 fi
3357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3358 fi
3359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3360 ac_c_werror_flag=$ac_save_c_werror_flag
3361 fi
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3363 $as_echo "$ac_cv_prog_cc_g" >&6; }
3364 if test "$ac_test_CFLAGS" = set; then
3365 CFLAGS=$ac_save_CFLAGS
3366 elif test $ac_cv_prog_cc_g = yes; then
3367 if test "$GCC" = yes; then
3368 CFLAGS="-g -O2"
3369 else
3370 CFLAGS="-g"
3371 fi
3372 else
3373 if test "$GCC" = yes; then
3374 CFLAGS="-O2"
3375 else
3376 CFLAGS=
3377 fi
3378 fi
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3380 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3381 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3382 $as_echo_n "(cached) " >&6
3383 else
3384 ac_cv_prog_cc_c89=no
3385 ac_save_CC=$CC
3386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387 /* end confdefs.h. */
3388 #include <stdarg.h>
3389 #include <stdio.h>
3390 #include <sys/types.h>
3391 #include <sys/stat.h>
3392 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3393 struct buf { int x; };
3394 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3395 static char *e (p, i)
3396 char **p;
3397 int i;
3398 {
3399 return p[i];
3400 }
3401 static char *f (char * (*g) (char **, int), char **p, ...)
3402 {
3403 char *s;
3404 va_list v;
3405 va_start (v,p);
3406 s = g (p, va_arg (v,int));
3407 va_end (v);
3408 return s;
3409 }
3410
3411 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3412 function prototypes and stuff, but not '\xHH' hex character constants.
3413 These don't provoke an error unfortunately, instead are silently treated
3414 as 'x'. The following induces an error, until -std is added to get
3415 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3416 array size at least. It's necessary to write '\x00'==0 to get something
3417 that's true only with -std. */
3418 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3419
3420 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3421 inside strings and character constants. */
3422 #define FOO(x) 'x'
3423 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3424
3425 int test (int i, double x);
3426 struct s1 {int (*f) (int a);};
3427 struct s2 {int (*f) (double a);};
3428 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3429 int argc;
3430 char **argv;
3431 int
3432 main ()
3433 {
3434 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3435 ;
3436 return 0;
3437 }
3438 _ACEOF
3439 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3440 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3441 do
3442 CC="$ac_save_CC $ac_arg"
3443 if ac_fn_c_try_compile "$LINENO"; then :
3444 ac_cv_prog_cc_c89=$ac_arg
3445 fi
3446 rm -f core conftest.err conftest.$ac_objext
3447 test "x$ac_cv_prog_cc_c89" != "xno" && break
3448 done
3449 rm -f conftest.$ac_ext
3450 CC=$ac_save_CC
3451
3452 fi
3453 # AC_CACHE_VAL
3454 case "x$ac_cv_prog_cc_c89" in
3455 x)
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3457 $as_echo "none needed" >&6; } ;;
3458 xno)
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3460 $as_echo "unsupported" >&6; } ;;
3461 *)
3462 CC="$CC $ac_cv_prog_cc_c89"
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3464 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3465 esac
3466 if test "x$ac_cv_prog_cc_c89" != xno; then :
3467
3468 fi
3469
3470 ac_ext=c
3471 ac_cpp='$CPP $CPPFLAGS'
3472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3475
3476 ac_aux_dir=
3477 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3478 for ac_t in install-sh install.sh shtool; do
3479 if test -f "$ac_dir/$ac_t"; then
3480 ac_aux_dir=$ac_dir
3481 ac_install_sh="$ac_aux_dir/$ac_t -c"
3482 break 2
3483 fi
3484 done
3485 done
3486 if test -z "$ac_aux_dir"; then
3487 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3488 fi
3489
3490 # These three variables are undocumented and unsupported,
3491 # and are intended to be withdrawn in a future Autoconf release.
3492 # They can cause serious problems if a builder's source tree is in a directory
3493 # whose full name contains unusual characters.
3494 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3495 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3496 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3497
3498
3499 # Make sure we can run config.sub.
3500 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3501 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3502
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3504 $as_echo_n "checking build system type... " >&6; }
3505 if test "${ac_cv_build+set}" = set; then :
3506 $as_echo_n "(cached) " >&6
3507 else
3508 ac_build_alias=$build_alias
3509 test "x$ac_build_alias" = x &&
3510 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3511 test "x$ac_build_alias" = x &&
3512 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3513 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3514 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3515
3516 fi
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3518 $as_echo "$ac_cv_build" >&6; }
3519 case $ac_cv_build in
3520 *-*-*) ;;
3521 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3522 esac
3523 build=$ac_cv_build
3524 ac_save_IFS=$IFS; IFS='-'
3525 set x $ac_cv_build
3526 shift
3527 build_cpu=$1
3528 build_vendor=$2
3529 shift; shift
3530 # Remember, the first character of IFS is used to create $*,
3531 # except with old shells:
3532 build_os=$*
3533 IFS=$ac_save_IFS
3534 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3535
3536
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3538 $as_echo_n "checking host system type... " >&6; }
3539 if test "${ac_cv_host+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3541 else
3542 if test "x$host_alias" = x; then
3543 ac_cv_host=$ac_cv_build
3544 else
3545 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3546 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3547 fi
3548
3549 fi
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3551 $as_echo "$ac_cv_host" >&6; }
3552 case $ac_cv_host in
3553 *-*-*) ;;
3554 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3555 esac
3556 host=$ac_cv_host
3557 ac_save_IFS=$IFS; IFS='-'
3558 set x $ac_cv_host
3559 shift
3560 host_cpu=$1
3561 host_vendor=$2
3562 shift; shift
3563 # Remember, the first character of IFS is used to create $*,
3564 # except with old shells:
3565 host_os=$*
3566 IFS=$ac_save_IFS
3567 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3568
3569
3570
3571 ac_ext=c
3572 ac_cpp='$CPP $CPPFLAGS'
3573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3577 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3578 # On Suns, sometimes $CPP names a directory.
3579 if test -n "$CPP" && test -d "$CPP"; then
3580 CPP=
3581 fi
3582 if test -z "$CPP"; then
3583 if test "${ac_cv_prog_CPP+set}" = set; then :
3584 $as_echo_n "(cached) " >&6
3585 else
3586 # Double quotes because CPP needs to be expanded
3587 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3588 do
3589 ac_preproc_ok=false
3590 for ac_c_preproc_warn_flag in '' yes
3591 do
3592 # Use a header file that comes with gcc, so configuring glibc
3593 # with a fresh cross-compiler works.
3594 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3595 # <limits.h> exists even on freestanding compilers.
3596 # On the NeXT, cc -E runs the code through the compiler's parser,
3597 # not just through cpp. "Syntax error" is here to catch this case.
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h. */
3600 #ifdef __STDC__
3601 # include <limits.h>
3602 #else
3603 # include <assert.h>
3604 #endif
3605 Syntax error
3606 _ACEOF
3607 if ac_fn_c_try_cpp "$LINENO"; then :
3608
3609 else
3610 # Broken: fails on valid input.
3611 continue
3612 fi
3613 rm -f conftest.err conftest.$ac_ext
3614
3615 # OK, works on sane cases. Now check whether nonexistent headers
3616 # can be detected and how.
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h. */
3619 #include <ac_nonexistent.h>
3620 _ACEOF
3621 if ac_fn_c_try_cpp "$LINENO"; then :
3622 # Broken: success on invalid input.
3623 continue
3624 else
3625 # Passes both tests.
3626 ac_preproc_ok=:
3627 break
3628 fi
3629 rm -f conftest.err conftest.$ac_ext
3630
3631 done
3632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3633 rm -f conftest.err conftest.$ac_ext
3634 if $ac_preproc_ok; then :
3635 break
3636 fi
3637
3638 done
3639 ac_cv_prog_CPP=$CPP
3640
3641 fi
3642 CPP=$ac_cv_prog_CPP
3643 else
3644 ac_cv_prog_CPP=$CPP
3645 fi
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3647 $as_echo "$CPP" >&6; }
3648 ac_preproc_ok=false
3649 for ac_c_preproc_warn_flag in '' yes
3650 do
3651 # Use a header file that comes with gcc, so configuring glibc
3652 # with a fresh cross-compiler works.
3653 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3654 # <limits.h> exists even on freestanding compilers.
3655 # On the NeXT, cc -E runs the code through the compiler's parser,
3656 # not just through cpp. "Syntax error" is here to catch this case.
3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658 /* end confdefs.h. */
3659 #ifdef __STDC__
3660 # include <limits.h>
3661 #else
3662 # include <assert.h>
3663 #endif
3664 Syntax error
3665 _ACEOF
3666 if ac_fn_c_try_cpp "$LINENO"; then :
3667
3668 else
3669 # Broken: fails on valid input.
3670 continue
3671 fi
3672 rm -f conftest.err conftest.$ac_ext
3673
3674 # OK, works on sane cases. Now check whether nonexistent headers
3675 # can be detected and how.
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h. */
3678 #include <ac_nonexistent.h>
3679 _ACEOF
3680 if ac_fn_c_try_cpp "$LINENO"; then :
3681 # Broken: success on invalid input.
3682 continue
3683 else
3684 # Passes both tests.
3685 ac_preproc_ok=:
3686 break
3687 fi
3688 rm -f conftest.err conftest.$ac_ext
3689
3690 done
3691 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3692 rm -f conftest.err conftest.$ac_ext
3693 if $ac_preproc_ok; then :
3694
3695 else
3696 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3698 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3699 See \`config.log' for more details." "$LINENO" 5; }
3700 fi
3701
3702 ac_ext=c
3703 ac_cpp='$CPP $CPPFLAGS'
3704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3707
3708
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3710 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3711 if test "${ac_cv_path_GREP+set}" = set; then :
3712 $as_echo_n "(cached) " >&6
3713 else
3714 if test -z "$GREP"; then
3715 ac_path_GREP_found=false
3716 # Loop through the user's path and test for each of PROGNAME-LIST
3717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3719 do
3720 IFS=$as_save_IFS
3721 test -z "$as_dir" && as_dir=.
3722 for ac_prog in grep ggrep; do
3723 for ac_exec_ext in '' $ac_executable_extensions; do
3724 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3725 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3726 # Check for GNU ac_path_GREP and select it if it is found.
3727 # Check for GNU $ac_path_GREP
3728 case `"$ac_path_GREP" --version 2>&1` in
3729 *GNU*)
3730 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3731 *)
3732 ac_count=0
3733 $as_echo_n 0123456789 >"conftest.in"
3734 while :
3735 do
3736 cat "conftest.in" "conftest.in" >"conftest.tmp"
3737 mv "conftest.tmp" "conftest.in"
3738 cp "conftest.in" "conftest.nl"
3739 $as_echo 'GREP' >> "conftest.nl"
3740 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3741 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3742 as_fn_arith $ac_count + 1 && ac_count=$as_val
3743 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3744 # Best one so far, save it but keep looking for a better one
3745 ac_cv_path_GREP="$ac_path_GREP"
3746 ac_path_GREP_max=$ac_count
3747 fi
3748 # 10*(2^10) chars as input seems more than enough
3749 test $ac_count -gt 10 && break
3750 done
3751 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3752 esac
3753
3754 $ac_path_GREP_found && break 3
3755 done
3756 done
3757 done
3758 IFS=$as_save_IFS
3759 if test -z "$ac_cv_path_GREP"; then
3760 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3761 fi
3762 else
3763 ac_cv_path_GREP=$GREP
3764 fi
3765
3766 fi
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3768 $as_echo "$ac_cv_path_GREP" >&6; }
3769 GREP="$ac_cv_path_GREP"
3770
3771
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3773 $as_echo_n "checking for egrep... " >&6; }
3774 if test "${ac_cv_path_EGREP+set}" = set; then :
3775 $as_echo_n "(cached) " >&6
3776 else
3777 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3778 then ac_cv_path_EGREP="$GREP -E"
3779 else
3780 if test -z "$EGREP"; then
3781 ac_path_EGREP_found=false
3782 # Loop through the user's path and test for each of PROGNAME-LIST
3783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3785 do
3786 IFS=$as_save_IFS
3787 test -z "$as_dir" && as_dir=.
3788 for ac_prog in egrep; do
3789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3791 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3792 # Check for GNU ac_path_EGREP and select it if it is found.
3793 # Check for GNU $ac_path_EGREP
3794 case `"$ac_path_EGREP" --version 2>&1` in
3795 *GNU*)
3796 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3797 *)
3798 ac_count=0
3799 $as_echo_n 0123456789 >"conftest.in"
3800 while :
3801 do
3802 cat "conftest.in" "conftest.in" >"conftest.tmp"
3803 mv "conftest.tmp" "conftest.in"
3804 cp "conftest.in" "conftest.nl"
3805 $as_echo 'EGREP' >> "conftest.nl"
3806 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3807 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3808 as_fn_arith $ac_count + 1 && ac_count=$as_val
3809 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3810 # Best one so far, save it but keep looking for a better one
3811 ac_cv_path_EGREP="$ac_path_EGREP"
3812 ac_path_EGREP_max=$ac_count
3813 fi
3814 # 10*(2^10) chars as input seems more than enough
3815 test $ac_count -gt 10 && break
3816 done
3817 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3818 esac
3819
3820 $ac_path_EGREP_found && break 3
3821 done
3822 done
3823 done
3824 IFS=$as_save_IFS
3825 if test -z "$ac_cv_path_EGREP"; then
3826 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3827 fi
3828 else
3829 ac_cv_path_EGREP=$EGREP
3830 fi
3831
3832 fi
3833 fi
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3835 $as_echo "$ac_cv_path_EGREP" >&6; }
3836 EGREP="$ac_cv_path_EGREP"
3837
3838
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3840 $as_echo_n "checking for ANSI C header files... " >&6; }
3841 if test "${ac_cv_header_stdc+set}" = set; then :
3842 $as_echo_n "(cached) " >&6
3843 else
3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3845 /* end confdefs.h. */
3846 #include <stdlib.h>
3847 #include <stdarg.h>
3848 #include <string.h>
3849 #include <float.h>
3850
3851 int
3852 main ()
3853 {
3854
3855 ;
3856 return 0;
3857 }
3858 _ACEOF
3859 if ac_fn_c_try_compile "$LINENO"; then :
3860 ac_cv_header_stdc=yes
3861 else
3862 ac_cv_header_stdc=no
3863 fi
3864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3865
3866 if test $ac_cv_header_stdc = yes; then
3867 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h. */
3870 #include <string.h>
3871
3872 _ACEOF
3873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3874 $EGREP "memchr" >/dev/null 2>&1; then :
3875
3876 else
3877 ac_cv_header_stdc=no
3878 fi
3879 rm -f conftest*
3880
3881 fi
3882
3883 if test $ac_cv_header_stdc = yes; then
3884 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886 /* end confdefs.h. */
3887 #include <stdlib.h>
3888
3889 _ACEOF
3890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3891 $EGREP "free" >/dev/null 2>&1; then :
3892
3893 else
3894 ac_cv_header_stdc=no
3895 fi
3896 rm -f conftest*
3897
3898 fi
3899
3900 if test $ac_cv_header_stdc = yes; then
3901 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3902 if test "$cross_compiling" = yes; then :
3903 :
3904 else
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3907 #include <ctype.h>
3908 #include <stdlib.h>
3909 #if ((' ' & 0x0FF) == 0x020)
3910 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3911 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3912 #else
3913 # define ISLOWER(c) \
3914 (('a' <= (c) && (c) <= 'i') \
3915 || ('j' <= (c) && (c) <= 'r') \
3916 || ('s' <= (c) && (c) <= 'z'))
3917 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3918 #endif
3919
3920 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3921 int
3922 main ()
3923 {
3924 int i;
3925 for (i = 0; i < 256; i++)
3926 if (XOR (islower (i), ISLOWER (i))
3927 || toupper (i) != TOUPPER (i))
3928 return 2;
3929 return 0;
3930 }
3931 _ACEOF
3932 if ac_fn_c_try_run "$LINENO"; then :
3933
3934 else
3935 ac_cv_header_stdc=no
3936 fi
3937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3938 conftest.$ac_objext conftest.beam conftest.$ac_ext
3939 fi
3940
3941 fi
3942 fi
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3944 $as_echo "$ac_cv_header_stdc" >&6; }
3945 if test $ac_cv_header_stdc = yes; then
3946
3947 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3948
3949 fi
3950
3951 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3952 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3953 inttypes.h stdint.h unistd.h
3954 do :
3955 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3956 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3957 "
3958 eval as_val=\$$as_ac_Header
3959 if test "x$as_val" = x""yes; then :
3960 cat >>confdefs.h <<_ACEOF
3961 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3962 _ACEOF
3963
3964 fi
3965
3966 done
3967
3968
3969
3970
3971
3972 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3973 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3974 MINIX=yes
3975 else
3976 MINIX=
3977 fi
3978
3979
3980 if test "$MINIX" = yes; then
3981
3982 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3983
3984
3985 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3986
3987
3988 $as_echo "#define _MINIX 1" >>confdefs.h
3989
3990 fi
3991
3992 case "$host_os" in
3993 hpux*)
3994
3995 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
3996
3997 ;;
3998 esac
3999
4000
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4002 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4003 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4004 $as_echo_n "(cached) " >&6
4005 else
4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h. */
4008
4009 # define __EXTENSIONS__ 1
4010 $ac_includes_default
4011 int
4012 main ()
4013 {
4014
4015 ;
4016 return 0;
4017 }
4018 _ACEOF
4019 if ac_fn_c_try_compile "$LINENO"; then :
4020 ac_cv_safe_to_define___extensions__=yes
4021 else
4022 ac_cv_safe_to_define___extensions__=no
4023 fi
4024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4025 fi
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4027 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4028 test $ac_cv_safe_to_define___extensions__ = yes &&
4029 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4030
4031 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4032
4033 $as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4034
4035 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4036
4037 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4038
4039 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4040
4041
4042
4043
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
4045 $as_echo_n "checking for Minix Amsterdam compiler... " >&6; }
4046 if test "${gl_cv_c_amsterdam_compiler+set}" = set; then :
4047 $as_echo_n "(cached) " >&6
4048 else
4049
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4052
4053 #ifdef __ACK__
4054 Amsterdam
4055 #endif
4056
4057 _ACEOF
4058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4059 $EGREP "Amsterdam" >/dev/null 2>&1; then :
4060 gl_cv_c_amsterdam_compiler=yes
4061 else
4062 gl_cv_c_amsterdam_compiler=no
4063 fi
4064 rm -f conftest*
4065
4066
4067 fi
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
4069 $as_echo "$gl_cv_c_amsterdam_compiler" >&6; }
4070 if test -z "$AR"; then
4071 if test $gl_cv_c_amsterdam_compiler = yes; then
4072 AR='cc -c.a'
4073 if test -z "$ARFLAGS"; then
4074 ARFLAGS='-o'
4075 fi
4076 else
4077 if test -n "$ac_tool_prefix"; then
4078 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4079 set dummy ${ac_tool_prefix}ar; ac_word=$2
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4081 $as_echo_n "checking for $ac_word... " >&6; }
4082 if test "${ac_cv_prog_AR+set}" = set; then :
4083 $as_echo_n "(cached) " >&6
4084 else
4085 if test -n "$AR"; then
4086 ac_cv_prog_AR="$AR" # Let the user override the test.
4087 else
4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 for as_dir in $PATH
4090 do
4091 IFS=$as_save_IFS
4092 test -z "$as_dir" && as_dir=.
4093 for ac_exec_ext in '' $ac_executable_extensions; do
4094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4095 ac_cv_prog_AR="${ac_tool_prefix}ar"
4096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4097 break 2
4098 fi
4099 done
4100 done
4101 IFS=$as_save_IFS
4102
4103 fi
4104 fi
4105 AR=$ac_cv_prog_AR
4106 if test -n "$AR"; then
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4108 $as_echo "$AR" >&6; }
4109 else
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111 $as_echo "no" >&6; }
4112 fi
4113
4114
4115 fi
4116 if test -z "$ac_cv_prog_AR"; then
4117 ac_ct_AR=$AR
4118 # Extract the first word of "ar", so it can be a program name with args.
4119 set dummy ar; ac_word=$2
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4121 $as_echo_n "checking for $ac_word... " >&6; }
4122 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
4123 $as_echo_n "(cached) " >&6
4124 else
4125 if test -n "$ac_ct_AR"; then
4126 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4127 else
4128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 for as_dir in $PATH
4130 do
4131 IFS=$as_save_IFS
4132 test -z "$as_dir" && as_dir=.
4133 for ac_exec_ext in '' $ac_executable_extensions; do
4134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4135 ac_cv_prog_ac_ct_AR="ar"
4136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4137 break 2
4138 fi
4139 done
4140 done
4141 IFS=$as_save_IFS
4142
4143 fi
4144 fi
4145 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4146 if test -n "$ac_ct_AR"; then
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4148 $as_echo "$ac_ct_AR" >&6; }
4149 else
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151 $as_echo "no" >&6; }
4152 fi
4153
4154 if test "x$ac_ct_AR" = x; then
4155 AR="ar"
4156 else
4157 case $cross_compiling:$ac_tool_warned in
4158 yes:)
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4161 ac_tool_warned=yes ;;
4162 esac
4163 AR=$ac_ct_AR
4164 fi
4165 else
4166 AR="$ac_cv_prog_AR"
4167 fi
4168
4169 if test -z "$ARFLAGS"; then
4170 ARFLAGS='cru'
4171 fi
4172 fi
4173 else
4174 if test -z "$ARFLAGS"; then
4175 ARFLAGS='cru'
4176 fi
4177 fi
4178
4179
4180 if test -z "$RANLIB"; then
4181 if test $gl_cv_c_amsterdam_compiler = yes; then
4182 RANLIB=':'
4183 else
4184 if test -n "$ac_tool_prefix"; then
4185 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4186 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4188 $as_echo_n "checking for $ac_word... " >&6; }
4189 if test "${ac_cv_prog_RANLIB+set}" = set; then :
4190 $as_echo_n "(cached) " >&6
4191 else
4192 if test -n "$RANLIB"; then
4193 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4194 else
4195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4196 for as_dir in $PATH
4197 do
4198 IFS=$as_save_IFS
4199 test -z "$as_dir" && as_dir=.
4200 for ac_exec_ext in '' $ac_executable_extensions; do
4201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4202 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4204 break 2
4205 fi
4206 done
4207 done
4208 IFS=$as_save_IFS
4209
4210 fi
4211 fi
4212 RANLIB=$ac_cv_prog_RANLIB
4213 if test -n "$RANLIB"; then
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4215 $as_echo "$RANLIB" >&6; }
4216 else
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4218 $as_echo "no" >&6; }
4219 fi
4220
4221
4222 fi
4223 if test -z "$ac_cv_prog_RANLIB"; then
4224 ac_ct_RANLIB=$RANLIB
4225 # Extract the first word of "ranlib", so it can be a program name with args.
4226 set dummy ranlib; ac_word=$2
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4228 $as_echo_n "checking for $ac_word... " >&6; }
4229 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4230 $as_echo_n "(cached) " >&6
4231 else
4232 if test -n "$ac_ct_RANLIB"; then
4233 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4234 else
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 for as_dir in $PATH
4237 do
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4242 ac_cv_prog_ac_ct_RANLIB="ranlib"
4243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 break 2
4245 fi
4246 done
4247 done
4248 IFS=$as_save_IFS
4249
4250 fi
4251 fi
4252 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4253 if test -n "$ac_ct_RANLIB"; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4255 $as_echo "$ac_ct_RANLIB" >&6; }
4256 else
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4258 $as_echo "no" >&6; }
4259 fi
4260
4261 if test "x$ac_ct_RANLIB" = x; then
4262 RANLIB=":"
4263 else
4264 case $cross_compiling:$ac_tool_warned in
4265 yes:)
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4268 ac_tool_warned=yes ;;
4269 esac
4270 RANLIB=$ac_ct_RANLIB
4271 fi
4272 else
4273 RANLIB="$ac_cv_prog_RANLIB"
4274 fi
4275
4276 fi
4277 fi
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288 # Code from module alloca:
4289 # Code from module alloca-opt:
4290 # Code from module configmake:
4291 # Code from module extensions:
4292
4293 # Code from module fnmatch:
4294 # Code from module fnmatch-gnu:
4295 # Code from module include_next:
4296 # Code from module inttypes:
4297 # Code from module inttypes-incomplete:
4298 # Code from module localcharset:
4299 # Code from module mbrtowc:
4300 # Code from module mbsinit:
4301 # Code from module mbsrtowcs:
4302 # Code from module memchr:
4303 # Code from module memmem:
4304 # Code from module memmem-simple:
4305 # Code from module multiarch:
4306 # Code from module snippet/arg-nonnull:
4307 # Code from module snippet/c++defs:
4308 # Code from module snippet/warn-on-use:
4309 # Code from module stdbool:
4310 # Code from module stddef:
4311 # Code from module stdint:
4312 # Code from module streq:
4313 # Code from module string:
4314 # Code from module strnlen1:
4315 # Code from module update-copyright:
4316 # Code from module verify:
4317 # Code from module wchar:
4318 # Code from module wctype-h:
4319
4320 ac_ext=c
4321 ac_cpp='$CPP $CPPFLAGS'
4322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4325 if test -n "$ac_tool_prefix"; then
4326 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4327 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4329 $as_echo_n "checking for $ac_word... " >&6; }
4330 if test "${ac_cv_prog_CC+set}" = set; then :
4331 $as_echo_n "(cached) " >&6
4332 else
4333 if test -n "$CC"; then
4334 ac_cv_prog_CC="$CC" # Let the user override the test.
4335 else
4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 for as_dir in $PATH
4338 do
4339 IFS=$as_save_IFS
4340 test -z "$as_dir" && as_dir=.
4341 for ac_exec_ext in '' $ac_executable_extensions; do
4342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4343 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4345 break 2
4346 fi
4347 done
4348 done
4349 IFS=$as_save_IFS
4350
4351 fi
4352 fi
4353 CC=$ac_cv_prog_CC
4354 if test -n "$CC"; then
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4356 $as_echo "$CC" >&6; }
4357 else
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4360 fi
4361
4362
4363 fi
4364 if test -z "$ac_cv_prog_CC"; then
4365 ac_ct_CC=$CC
4366 # Extract the first word of "gcc", so it can be a program name with args.
4367 set dummy gcc; ac_word=$2
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4369 $as_echo_n "checking for $ac_word... " >&6; }
4370 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4371 $as_echo_n "(cached) " >&6
4372 else
4373 if test -n "$ac_ct_CC"; then
4374 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4375 else
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 for as_dir in $PATH
4378 do
4379 IFS=$as_save_IFS
4380 test -z "$as_dir" && as_dir=.
4381 for ac_exec_ext in '' $ac_executable_extensions; do
4382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4383 ac_cv_prog_ac_ct_CC="gcc"
4384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 break 2
4386 fi
4387 done
4388 done
4389 IFS=$as_save_IFS
4390
4391 fi
4392 fi
4393 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4394 if test -n "$ac_ct_CC"; then
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4396 $as_echo "$ac_ct_CC" >&6; }
4397 else
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4399 $as_echo "no" >&6; }
4400 fi
4401
4402 if test "x$ac_ct_CC" = x; then
4403 CC=""
4404 else
4405 case $cross_compiling:$ac_tool_warned in
4406 yes:)
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4409 ac_tool_warned=yes ;;
4410 esac
4411 CC=$ac_ct_CC
4412 fi
4413 else
4414 CC="$ac_cv_prog_CC"
4415 fi
4416
4417 if test -z "$CC"; then
4418 if test -n "$ac_tool_prefix"; then
4419 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4420 set dummy ${ac_tool_prefix}cc; ac_word=$2
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4422 $as_echo_n "checking for $ac_word... " >&6; }
4423 if test "${ac_cv_prog_CC+set}" = set; then :
4424 $as_echo_n "(cached) " >&6
4425 else
4426 if test -n "$CC"; then
4427 ac_cv_prog_CC="$CC" # Let the user override the test.
4428 else
4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 for as_dir in $PATH
4431 do
4432 IFS=$as_save_IFS
4433 test -z "$as_dir" && as_dir=.
4434 for ac_exec_ext in '' $ac_executable_extensions; do
4435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4436 ac_cv_prog_CC="${ac_tool_prefix}cc"
4437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4438 break 2
4439 fi
4440 done
4441 done
4442 IFS=$as_save_IFS
4443
4444 fi
4445 fi
4446 CC=$ac_cv_prog_CC
4447 if test -n "$CC"; then
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4449 $as_echo "$CC" >&6; }
4450 else
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4452 $as_echo "no" >&6; }
4453 fi
4454
4455
4456 fi
4457 fi
4458 if test -z "$CC"; then
4459 # Extract the first word of "cc", so it can be a program name with args.
4460 set dummy cc; ac_word=$2
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4462 $as_echo_n "checking for $ac_word... " >&6; }
4463 if test "${ac_cv_prog_CC+set}" = set; then :
4464 $as_echo_n "(cached) " >&6
4465 else
4466 if test -n "$CC"; then
4467 ac_cv_prog_CC="$CC" # Let the user override the test.
4468 else
4469 ac_prog_rejected=no
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in $PATH
4472 do
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4477 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4478 ac_prog_rejected=yes
4479 continue
4480 fi
4481 ac_cv_prog_CC="cc"
4482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4483 break 2
4484 fi
4485 done
4486 done
4487 IFS=$as_save_IFS
4488
4489 if test $ac_prog_rejected = yes; then
4490 # We found a bogon in the path, so make sure we never use it.
4491 set dummy $ac_cv_prog_CC
4492 shift
4493 if test $# != 0; then
4494 # We chose a different compiler from the bogus one.
4495 # However, it has the same basename, so the bogon will be chosen
4496 # first if we set CC to just the basename; use the full file name.
4497 shift
4498 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4499 fi
4500 fi
4501 fi
4502 fi
4503 CC=$ac_cv_prog_CC
4504 if test -n "$CC"; then
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4506 $as_echo "$CC" >&6; }
4507 else
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4509 $as_echo "no" >&6; }
4510 fi
4511
4512
4513 fi
4514 if test -z "$CC"; then
4515 if test -n "$ac_tool_prefix"; then
4516 for ac_prog in cl.exe
4517 do
4518 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4521 $as_echo_n "checking for $ac_word... " >&6; }
4522 if test "${ac_cv_prog_CC+set}" = set; then :
4523 $as_echo_n "(cached) " >&6
4524 else
4525 if test -n "$CC"; then
4526 ac_cv_prog_CC="$CC" # Let the user override the test.
4527 else
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH
4530 do
4531 IFS=$as_save_IFS
4532 test -z "$as_dir" && as_dir=.
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4535 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 break 2
4538 fi
4539 done
4540 done
4541 IFS=$as_save_IFS
4542
4543 fi
4544 fi
4545 CC=$ac_cv_prog_CC
4546 if test -n "$CC"; then
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4548 $as_echo "$CC" >&6; }
4549 else
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551 $as_echo "no" >&6; }
4552 fi
4553
4554
4555 test -n "$CC" && break
4556 done
4557 fi
4558 if test -z "$CC"; then
4559 ac_ct_CC=$CC
4560 for ac_prog in cl.exe
4561 do
4562 # Extract the first word of "$ac_prog", so it can be a program name with args.
4563 set dummy $ac_prog; ac_word=$2
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4565 $as_echo_n "checking for $ac_word... " >&6; }
4566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 if test -n "$ac_ct_CC"; then
4570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4571 else
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4574 do
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4579 ac_cv_prog_ac_ct_CC="$ac_prog"
4580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 break 2
4582 fi
4583 done
4584 done
4585 IFS=$as_save_IFS
4586
4587 fi
4588 fi
4589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4590 if test -n "$ac_ct_CC"; then
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4592 $as_echo "$ac_ct_CC" >&6; }
4593 else
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4595 $as_echo "no" >&6; }
4596 fi
4597
4598
4599 test -n "$ac_ct_CC" && break
4600 done
4601
4602 if test "x$ac_ct_CC" = x; then
4603 CC=""
4604 else
4605 case $cross_compiling:$ac_tool_warned in
4606 yes:)
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4609 ac_tool_warned=yes ;;
4610 esac
4611 CC=$ac_ct_CC
4612 fi
4613 fi
4614
4615 fi
4616
4617
4618 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4620 as_fn_error "no acceptable C compiler found in \$PATH
4621 See \`config.log' for more details." "$LINENO" 5; }
4622
4623 # Provide some information about the compiler.
4624 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4625 set X $ac_compile
4626 ac_compiler=$2
4627 for ac_option in --version -v -V -qversion; do
4628 { { ac_try="$ac_compiler $ac_option >&5"
4629 case "(($ac_try" in
4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631 *) ac_try_echo=$ac_try;;
4632 esac
4633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4634 $as_echo "$ac_try_echo"; } >&5
4635 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4636 ac_status=$?
4637 if test -s conftest.err; then
4638 sed '10a\
4639 ... rest of stderr output deleted ...
4640 10q' conftest.err >conftest.er1
4641 cat conftest.er1 >&5
4642 rm -f conftest.er1 conftest.err
4643 fi
4644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4645 test $ac_status = 0; }
4646 done
4647
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4649 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4650 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654 /* end confdefs.h. */
4655
4656 int
4657 main ()
4658 {
4659 #ifndef __GNUC__
4660 choke me
4661 #endif
4662
4663 ;
4664 return 0;
4665 }
4666 _ACEOF
4667 if ac_fn_c_try_compile "$LINENO"; then :
4668 ac_compiler_gnu=yes
4669 else
4670 ac_compiler_gnu=no
4671 fi
4672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4673 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4674
4675 fi
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4677 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4678 if test $ac_compiler_gnu = yes; then
4679 GCC=yes
4680 else
4681 GCC=
4682 fi
4683 ac_test_CFLAGS=${CFLAGS+set}
4684 ac_save_CFLAGS=$CFLAGS
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4686 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4687 if test "${ac_cv_prog_cc_g+set}" = set; then :
4688 $as_echo_n "(cached) " >&6
4689 else
4690 ac_save_c_werror_flag=$ac_c_werror_flag
4691 ac_c_werror_flag=yes
4692 ac_cv_prog_cc_g=no
4693 CFLAGS="-g"
4694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4695 /* end confdefs.h. */
4696
4697 int
4698 main ()
4699 {
4700
4701 ;
4702 return 0;
4703 }
4704 _ACEOF
4705 if ac_fn_c_try_compile "$LINENO"; then :
4706 ac_cv_prog_cc_g=yes
4707 else
4708 CFLAGS=""
4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710 /* end confdefs.h. */
4711
4712 int
4713 main ()
4714 {
4715
4716 ;
4717 return 0;
4718 }
4719 _ACEOF
4720 if ac_fn_c_try_compile "$LINENO"; then :
4721
4722 else
4723 ac_c_werror_flag=$ac_save_c_werror_flag
4724 CFLAGS="-g"
4725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726 /* end confdefs.h. */
4727
4728 int
4729 main ()
4730 {
4731
4732 ;
4733 return 0;
4734 }
4735 _ACEOF
4736 if ac_fn_c_try_compile "$LINENO"; then :
4737 ac_cv_prog_cc_g=yes
4738 fi
4739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740 fi
4741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742 fi
4743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4744 ac_c_werror_flag=$ac_save_c_werror_flag
4745 fi
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4747 $as_echo "$ac_cv_prog_cc_g" >&6; }
4748 if test "$ac_test_CFLAGS" = set; then
4749 CFLAGS=$ac_save_CFLAGS
4750 elif test $ac_cv_prog_cc_g = yes; then
4751 if test "$GCC" = yes; then
4752 CFLAGS="-g -O2"
4753 else
4754 CFLAGS="-g"
4755 fi
4756 else
4757 if test "$GCC" = yes; then
4758 CFLAGS="-O2"
4759 else
4760 CFLAGS=
4761 fi
4762 fi
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4764 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4765 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4766 $as_echo_n "(cached) " >&6
4767 else
4768 ac_cv_prog_cc_c89=no
4769 ac_save_CC=$CC
4770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771 /* end confdefs.h. */
4772 #include <stdarg.h>
4773 #include <stdio.h>
4774 #include <sys/types.h>
4775 #include <sys/stat.h>
4776 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4777 struct buf { int x; };
4778 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4779 static char *e (p, i)
4780 char **p;
4781 int i;
4782 {
4783 return p[i];
4784 }
4785 static char *f (char * (*g) (char **, int), char **p, ...)
4786 {
4787 char *s;
4788 va_list v;
4789 va_start (v,p);
4790 s = g (p, va_arg (v,int));
4791 va_end (v);
4792 return s;
4793 }
4794
4795 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4796 function prototypes and stuff, but not '\xHH' hex character constants.
4797 These don't provoke an error unfortunately, instead are silently treated
4798 as 'x'. The following induces an error, until -std is added to get
4799 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4800 array size at least. It's necessary to write '\x00'==0 to get something
4801 that's true only with -std. */
4802 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4803
4804 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4805 inside strings and character constants. */
4806 #define FOO(x) 'x'
4807 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4808
4809 int test (int i, double x);
4810 struct s1 {int (*f) (int a);};
4811 struct s2 {int (*f) (double a);};
4812 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4813 int argc;
4814 char **argv;
4815 int
4816 main ()
4817 {
4818 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4819 ;
4820 return 0;
4821 }
4822 _ACEOF
4823 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4824 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4825 do
4826 CC="$ac_save_CC $ac_arg"
4827 if ac_fn_c_try_compile "$LINENO"; then :
4828 ac_cv_prog_cc_c89=$ac_arg
4829 fi
4830 rm -f core conftest.err conftest.$ac_objext
4831 test "x$ac_cv_prog_cc_c89" != "xno" && break
4832 done
4833 rm -f conftest.$ac_ext
4834 CC=$ac_save_CC
4835
4836 fi
4837 # AC_CACHE_VAL
4838 case "x$ac_cv_prog_cc_c89" in
4839 x)
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4841 $as_echo "none needed" >&6; } ;;
4842 xno)
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4844 $as_echo "unsupported" >&6; } ;;
4845 *)
4846 CC="$CC $ac_cv_prog_cc_c89"
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4848 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4849 esac
4850 if test "x$ac_cv_prog_cc_c89" != xno; then :
4851
4852 fi
4853
4854 ac_ext=c
4855 ac_cpp='$CPP $CPPFLAGS'
4856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4859
4860
4861 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
4862
4863
4864 ac_aux_dir=
4865 for ac_dir in ../.. "$srcdir"/../..; do
4866 for ac_t in install-sh install.sh shtool; do
4867 if test -f "$ac_dir/$ac_t"; then
4868 ac_aux_dir=$ac_dir
4869 ac_install_sh="$ac_aux_dir/$ac_t -c"
4870 break 2
4871 fi
4872 done
4873 done
4874 if test -z "$ac_aux_dir"; then
4875 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
4876 fi
4877
4878 # These three variables are undocumented and unsupported,
4879 # and are intended to be withdrawn in a future Autoconf release.
4880 # They can cause serious problems if a builder's source tree is in a directory
4881 # whose full name contains unusual characters.
4882 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
4883 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
4884 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
4885
4886
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4888 $as_echo_n "checking target system type... " >&6; }
4889 if test "${ac_cv_target+set}" = set; then :
4890 $as_echo_n "(cached) " >&6
4891 else
4892 if test "x$target_alias" = x; then
4893 ac_cv_target=$ac_cv_host
4894 else
4895 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4896 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4897 fi
4898
4899 fi
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4901 $as_echo "$ac_cv_target" >&6; }
4902 case $ac_cv_target in
4903 *-*-*) ;;
4904 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
4905 esac
4906 target=$ac_cv_target
4907 ac_save_IFS=$IFS; IFS='-'
4908 set x $ac_cv_target
4909 shift
4910 target_cpu=$1
4911 target_vendor=$2
4912 shift; shift
4913 # Remember, the first character of IFS is used to create $*,
4914 # except with old shells:
4915 target_os=$*
4916 IFS=$ac_save_IFS
4917 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4918
4919
4920 # The aliases save the names the user supplied, while $host etc.
4921 # will get canonicalized.
4922 test -n "$target_alias" &&
4923 test "$program_prefix$program_suffix$program_transform_name" = \
4924 NONENONEs,x,x, &&
4925 program_prefix=${target_alias}-
4926
4927
4928
4929
4930
4931
4932
4933 LIBC_FATAL_STDERR_=1
4934 export LIBC_FATAL_STDERR_
4935
4936 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4937 # for constant arguments. Useless!
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4939 $as_echo_n "checking for working alloca.h... " >&6; }
4940 if test "${ac_cv_working_alloca_h+set}" = set; then :
4941 $as_echo_n "(cached) " >&6
4942 else
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4945 #include <alloca.h>
4946 int
4947 main ()
4948 {
4949 char *p = (char *) alloca (2 * sizeof (int));
4950 if (p) return 0;
4951 ;
4952 return 0;
4953 }
4954 _ACEOF
4955 if ac_fn_c_try_link "$LINENO"; then :
4956 ac_cv_working_alloca_h=yes
4957 else
4958 ac_cv_working_alloca_h=no
4959 fi
4960 rm -f core conftest.err conftest.$ac_objext \
4961 conftest$ac_exeext conftest.$ac_ext
4962 fi
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4964 $as_echo "$ac_cv_working_alloca_h" >&6; }
4965 if test $ac_cv_working_alloca_h = yes; then
4966
4967 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4968
4969 fi
4970
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4972 $as_echo_n "checking for alloca... " >&6; }
4973 if test "${ac_cv_func_alloca_works+set}" = set; then :
4974 $as_echo_n "(cached) " >&6
4975 else
4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977 /* end confdefs.h. */
4978 #ifdef __GNUC__
4979 # define alloca __builtin_alloca
4980 #else
4981 # ifdef _MSC_VER
4982 # include <malloc.h>
4983 # define alloca _alloca
4984 # else
4985 # ifdef HAVE_ALLOCA_H
4986 # include <alloca.h>
4987 # else
4988 # ifdef _AIX
4989 #pragma alloca
4990 # else
4991 # ifndef alloca /* predefined by HP cc +Olibcalls */
4992 char *alloca ();
4993 # endif
4994 # endif
4995 # endif
4996 # endif
4997 #endif
4998
4999 int
5000 main ()
5001 {
5002 char *p = (char *) alloca (1);
5003 if (p) return 0;
5004 ;
5005 return 0;
5006 }
5007 _ACEOF
5008 if ac_fn_c_try_link "$LINENO"; then :
5009 ac_cv_func_alloca_works=yes
5010 else
5011 ac_cv_func_alloca_works=no
5012 fi
5013 rm -f core conftest.err conftest.$ac_objext \
5014 conftest$ac_exeext conftest.$ac_ext
5015 fi
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5017 $as_echo "$ac_cv_func_alloca_works" >&6; }
5018
5019 if test $ac_cv_func_alloca_works = yes; then
5020
5021 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5022
5023 else
5024 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5025 # that cause trouble. Some versions do not even contain alloca or
5026 # contain a buggy version. If you still want to use their alloca,
5027 # use ar to extract alloca.o from them instead of compiling alloca.c.
5028
5029
5030
5031
5032
5033 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5034
5035 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5036
5037
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'alloca.c' needs Cray hooks" >&5
5039 $as_echo_n "checking whether 'alloca.c' needs Cray hooks... " >&6; }
5040 if test "${ac_cv_os_cray+set}" = set; then :
5041 $as_echo_n "(cached) " >&6
5042 else
5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h. */
5045 #if defined CRAY && ! defined CRAY2
5046 webecray
5047 #else
5048 wenotbecray
5049 #endif
5050
5051 _ACEOF
5052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5053 $EGREP "webecray" >/dev/null 2>&1; then :
5054 ac_cv_os_cray=yes
5055 else
5056 ac_cv_os_cray=no
5057 fi
5058 rm -f conftest*
5059
5060 fi
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5062 $as_echo "$ac_cv_os_cray" >&6; }
5063 if test $ac_cv_os_cray = yes; then
5064 for ac_func in _getb67 GETB67 getb67; do
5065 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5066 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5067 eval as_val=\$$as_ac_var
5068 if test "x$as_val" = x""yes; then :
5069
5070 cat >>confdefs.h <<_ACEOF
5071 #define CRAY_STACKSEG_END $ac_func
5072 _ACEOF
5073
5074 break
5075 fi
5076
5077 done
5078 fi
5079
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5081 $as_echo_n "checking stack direction for C alloca... " >&6; }
5082 if test "${ac_cv_c_stack_direction+set}" = set; then :
5083 $as_echo_n "(cached) " >&6
5084 else
5085 if test "$cross_compiling" = yes; then :
5086 ac_cv_c_stack_direction=0
5087 else
5088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5089 /* end confdefs.h. */
5090 $ac_includes_default
5091 int
5092 find_stack_direction (int *addr, int depth)
5093 {
5094 int dir, dummy = 0;
5095 if (! addr)
5096 addr = &dummy;
5097 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5098 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5099 return dir + dummy;
5100 }
5101
5102 int
5103 main (int argc, char **argv)
5104 {
5105 return find_stack_direction (0, argc + !argv + 20) < 0;
5106 }
5107 _ACEOF
5108 if ac_fn_c_try_run "$LINENO"; then :
5109 ac_cv_c_stack_direction=1
5110 else
5111 ac_cv_c_stack_direction=-1
5112 fi
5113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5114 conftest.$ac_objext conftest.beam conftest.$ac_ext
5115 fi
5116
5117 fi
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5119 $as_echo "$ac_cv_c_stack_direction" >&6; }
5120 cat >>confdefs.h <<_ACEOF
5121 #define STACK_DIRECTION $ac_cv_c_stack_direction
5122 _ACEOF
5123
5124
5125 fi
5126
5127
5128
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
5130 $as_echo_n "checking for mbstate_t... " >&6; }
5131 if test "${ac_cv_type_mbstate_t+set}" = set; then :
5132 $as_echo_n "(cached) " >&6
5133 else
5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135 /* end confdefs.h. */
5136 $ac_includes_default
5137 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
5138 <wchar.h>.
5139 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5140 included before <wchar.h>. */
5141 #include <stddef.h>
5142 #include <stdio.h>
5143 #include <time.h>
5144 #include <wchar.h>
5145 int
5146 main ()
5147 {
5148 mbstate_t x; return sizeof x;
5149 ;
5150 return 0;
5151 }
5152 _ACEOF
5153 if ac_fn_c_try_compile "$LINENO"; then :
5154 ac_cv_type_mbstate_t=yes
5155 else
5156 ac_cv_type_mbstate_t=no
5157 fi
5158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5159 fi
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
5161 $as_echo "$ac_cv_type_mbstate_t" >&6; }
5162 if test $ac_cv_type_mbstate_t = yes; then
5163
5164 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
5165
5166 else
5167
5168 $as_echo "#define mbstate_t int" >>confdefs.h
5169
5170 fi
5171
5172
5173
5174
5175
5176 for ac_func in $gl_func_list
5177 do :
5178 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5179 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5180 eval as_val=\$$as_ac_var
5181 if test "x$as_val" = x""yes; then :
5182 cat >>confdefs.h <<_ACEOF
5183 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5184 _ACEOF
5185
5186 fi
5187 done
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232 for ac_header in $gl_header_list
5233 do :
5234 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5235 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5236 eval as_val=\$$as_ac_Header
5237 if test "x$as_val" = x""yes; then :
5238 cat >>confdefs.h <<_ACEOF
5239 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5240 _ACEOF
5241
5242 fi
5243
5244 done
5245
5246
5247
5248
5249
5250
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
5252 $as_echo_n "checking for unsigned long long int... " >&6; }
5253 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then :
5254 $as_echo_n "(cached) " >&6
5255 else
5256 ac_cv_type_unsigned_long_long_int=yes
5257 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h. */
5260
5261 /* For now, do not test the preprocessor; as of 2007 there are too many
5262 implementations with broken preprocessors. Perhaps this can
5263 be revisited in 2012. In the meantime, code should not expect
5264 #if to work with literals wider than 32 bits. */
5265 /* Test literals. */
5266 long long int ll = 9223372036854775807ll;
5267 long long int nll = -9223372036854775807LL;
5268 unsigned long long int ull = 18446744073709551615ULL;
5269 /* Test constant expressions. */
5270 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
5271 ? 1 : -1)];
5272 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
5273 ? 1 : -1)];
5274 int i = 63;
5275 int
5276 main ()
5277 {
5278 /* Test availability of runtime routines for shift and division. */
5279 long long int llmax = 9223372036854775807ll;
5280 unsigned long long int ullmax = 18446744073709551615ull;
5281 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
5282 | (llmax / ll) | (llmax % ll)
5283 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
5284 | (ullmax / ull) | (ullmax % ull));
5285 ;
5286 return 0;
5287 }
5288
5289 _ACEOF
5290 if ac_fn_c_try_link "$LINENO"; then :
5291
5292 else
5293 ac_cv_type_unsigned_long_long_int=no
5294 fi
5295 rm -f core conftest.err conftest.$ac_objext \
5296 conftest$ac_exeext conftest.$ac_ext
5297 fi
5298 fi
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
5300 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
5301 if test $ac_cv_type_unsigned_long_long_int = yes; then
5302
5303 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
5304
5305 fi
5306
5307
5308
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
5310 $as_echo_n "checking for long long int... " >&6; }
5311 if test "${ac_cv_type_long_long_int+set}" = set; then :
5312 $as_echo_n "(cached) " >&6
5313 else
5314 ac_cv_type_long_long_int=yes
5315 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
5316 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
5317 if test $ac_cv_type_long_long_int = yes; then
5318 if test "$cross_compiling" = yes; then :
5319 :
5320 else
5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5323 #include <limits.h>
5324 #ifndef LLONG_MAX
5325 # define HALF \
5326 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
5327 # define LLONG_MAX (HALF - 1 + HALF)
5328 #endif
5329 int
5330 main ()
5331 {
5332 long long int n = 1;
5333 int i;
5334 for (i = 0; ; i++)
5335 {
5336 long long int m = n << i;
5337 if (m >> i != n)
5338 return 1;
5339 if (LLONG_MAX / 2 < m)
5340 break;
5341 }
5342 return 0;
5343 ;
5344 return 0;
5345 }
5346 _ACEOF
5347 if ac_fn_c_try_run "$LINENO"; then :
5348
5349 else
5350 ac_cv_type_long_long_int=no
5351 fi
5352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5353 conftest.$ac_objext conftest.beam conftest.$ac_ext
5354 fi
5355
5356 fi
5357 fi
5358 fi
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
5360 $as_echo "$ac_cv_type_long_long_int" >&6; }
5361 if test $ac_cv_type_long_long_int = yes; then
5362
5363 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
5364
5365 fi
5366
5367
5368
5369
5370
5371
5372
5373
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
5375 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
5376 if test "${gl_cv_have_include_next+set}" = set; then :
5377 $as_echo_n "(cached) " >&6
5378 else
5379 rm -rf conftestd1a conftestd1b conftestd2
5380 mkdir conftestd1a conftestd1b conftestd2
5381 cat <<EOF > conftestd1a/conftest.h
5382 #define DEFINED_IN_CONFTESTD1
5383 #include_next <conftest.h>
5384 #ifdef DEFINED_IN_CONFTESTD2
5385 int foo;
5386 #else
5387 #error "include_next doesn't work"
5388 #endif
5389 EOF
5390 cat <<EOF > conftestd1b/conftest.h
5391 #define DEFINED_IN_CONFTESTD1
5392 #include <stdio.h>
5393 #include_next <conftest.h>
5394 #ifdef DEFINED_IN_CONFTESTD2
5395 int foo;
5396 #else
5397 #error "include_next doesn't work"
5398 #endif
5399 EOF
5400 cat <<EOF > conftestd2/conftest.h
5401 #ifndef DEFINED_IN_CONFTESTD1
5402 #error "include_next test doesn't work"
5403 #endif
5404 #define DEFINED_IN_CONFTESTD2
5405 EOF
5406 gl_save_CPPFLAGS="$CPPFLAGS"
5407 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
5408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5409 /* end confdefs.h. */
5410 #include <conftest.h>
5411 _ACEOF
5412 if ac_fn_c_try_compile "$LINENO"; then :
5413 gl_cv_have_include_next=yes
5414 else
5415 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5417 /* end confdefs.h. */
5418 #include <conftest.h>
5419 _ACEOF
5420 if ac_fn_c_try_compile "$LINENO"; then :
5421 gl_cv_have_include_next=buggy
5422 else
5423 gl_cv_have_include_next=no
5424 fi
5425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5426
5427 fi
5428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5429 CPPFLAGS="$gl_save_CPPFLAGS"
5430 rm -rf conftestd1a conftestd1b conftestd2
5431
5432 fi
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
5434 $as_echo "$gl_cv_have_include_next" >&6; }
5435 PRAGMA_SYSTEM_HEADER=
5436 if test $gl_cv_have_include_next = yes; then
5437 INCLUDE_NEXT=include_next
5438 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5439 if test -n "$GCC"; then
5440 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
5441 fi
5442 else
5443 if test $gl_cv_have_include_next = buggy; then
5444 INCLUDE_NEXT=include
5445 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
5446 else
5447 INCLUDE_NEXT=include
5448 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
5449 fi
5450 fi
5451
5452
5453
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
5455 $as_echo_n "checking whether system header files limit the line length... " >&6; }
5456 if test "${gl_cv_pragma_columns+set}" = set; then :
5457 $as_echo_n "(cached) " >&6
5458 else
5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h. */
5461
5462 #ifdef __TANDEM
5463 choke me
5464 #endif
5465
5466 _ACEOF
5467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5468 $EGREP "choke me" >/dev/null 2>&1; then :
5469 gl_cv_pragma_columns=yes
5470 else
5471 gl_cv_pragma_columns=no
5472 fi
5473 rm -f conftest*
5474
5475
5476 fi
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
5478 $as_echo "$gl_cv_pragma_columns" >&6; }
5479 if test $gl_cv_pragma_columns = yes; then
5480 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
5481 else
5482 PRAGMA_COLUMNS=
5483 fi
5484
5485
5486
5487
5488
5489
5490
5491
5492 gl_cv_c_multiarch=no
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494 /* end confdefs.h. */
5495 #ifndef __APPLE_CC__
5496 not a universal capable compiler
5497 #endif
5498 typedef int dummy;
5499
5500 _ACEOF
5501 if ac_fn_c_try_compile "$LINENO"; then :
5502
5503 arch=
5504 prev=
5505 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
5506 if test -n "$prev"; then
5507 case $word in
5508 i?86 | x86_64 | ppc | ppc64)
5509 if test -z "$arch" || test "$arch" = "$word"; then
5510 arch="$word"
5511 else
5512 gl_cv_c_multiarch=yes
5513 fi
5514 ;;
5515 esac
5516 prev=
5517 else
5518 if test "x$word" = "x-arch"; then
5519 prev=arch
5520 fi
5521 fi
5522 done
5523
5524 fi
5525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526 if test $gl_cv_c_multiarch = yes; then
5527 APPLE_UNIVERSAL_BUILD=1
5528 else
5529 APPLE_UNIVERSAL_BUILD=0
5530 fi
5531
5532
5533
5534
5535
5536 if test $ac_cv_type_long_long_int = yes; then
5537 HAVE_LONG_LONG_INT=1
5538 else
5539 HAVE_LONG_LONG_INT=0
5540 fi
5541
5542
5543 if test $ac_cv_type_unsigned_long_long_int = yes; then
5544 HAVE_UNSIGNED_LONG_LONG_INT=1
5545 else
5546 HAVE_UNSIGNED_LONG_LONG_INT=0
5547 fi
5548
5549
5550
5551 :
5552
5553
5554
5555
5556
5557 if test $ac_cv_header_wchar_h = yes; then
5558 HAVE_WCHAR_H=1
5559 else
5560 HAVE_WCHAR_H=0
5561 fi
5562
5563
5564 if test $ac_cv_header_inttypes_h = yes; then
5565 HAVE_INTTYPES_H=1
5566 else
5567 HAVE_INTTYPES_H=0
5568 fi
5569
5570
5571 if test $ac_cv_header_sys_types_h = yes; then
5572 HAVE_SYS_TYPES_H=1
5573 else
5574 HAVE_SYS_TYPES_H=0
5575 fi
5576
5577
5578
5579
5580
5581
5582
5583
5584 :
5585
5586
5587
5588
5589
5590
5591
5592
5593 if test $gl_cv_have_include_next = yes; then
5594 gl_cv_next_stdint_h='<'stdint.h'>'
5595 else
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
5597 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
5598 if test "${gl_cv_next_stdint_h+set}" = set; then :
5599 $as_echo_n "(cached) " >&6
5600 else
5601
5602 if test $ac_cv_header_stdint_h = yes; then
5603
5604
5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h. */
5607 #include <stdint.h>
5608
5609 _ACEOF
5610 case "$host_os" in
5611 aix*) gl_absname_cpp="$ac_cpp -C" ;;
5612 *) gl_absname_cpp="$ac_cpp" ;;
5613 esac
5614
5615 case "$host_os" in
5616 mingw*)
5617 gl_dirsep_regex='[/\\]'
5618 ;;
5619 *)
5620 gl_dirsep_regex='\/'
5621 ;;
5622 esac
5623 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
5624
5625 gl_header_literal_regex=`echo 'stdint.h' \
5626 | sed -e "$gl_make_literal_regex_sed"`
5627 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
5628 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
5629 s|^/[^/]|//&|
5630 p
5631 q
5632 }'
5633 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
5634 sed -n "$gl_absolute_header_sed"`'"'
5635 else
5636 gl_cv_next_stdint_h='<'stdint.h'>'
5637 fi
5638
5639
5640 fi
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
5642 $as_echo "$gl_cv_next_stdint_h" >&6; }
5643 fi
5644 NEXT_STDINT_H=$gl_cv_next_stdint_h
5645
5646 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
5647 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
5648 gl_next_as_first_directive='<'stdint.h'>'
5649 else
5650 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
5651 gl_next_as_first_directive=$gl_cv_next_stdint_h
5652 fi
5653 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
5654
5655
5656
5657
5658 if test $ac_cv_header_stdint_h = yes; then
5659 HAVE_STDINT_H=1
5660 else
5661 HAVE_STDINT_H=0
5662 fi
5663
5664
5665 if test $ac_cv_header_stdint_h = yes; then
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
5667 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
5668 if test "${gl_cv_header_working_stdint_h+set}" = set; then :
5669 $as_echo_n "(cached) " >&6
5670 else
5671 gl_cv_header_working_stdint_h=no
5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673 /* end confdefs.h. */
5674
5675
5676 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5677 #include <stdint.h>
5678 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5679 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
5680 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5681 #endif
5682
5683
5684 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5685 included before <wchar.h>. */
5686 #include <stddef.h>
5687 #include <signal.h>
5688 #if HAVE_WCHAR_H
5689 # include <stdio.h>
5690 # include <time.h>
5691 # include <wchar.h>
5692 #endif
5693
5694
5695 #ifdef INT8_MAX
5696 int8_t a1 = INT8_MAX;
5697 int8_t a1min = INT8_MIN;
5698 #endif
5699 #ifdef INT16_MAX
5700 int16_t a2 = INT16_MAX;
5701 int16_t a2min = INT16_MIN;
5702 #endif
5703 #ifdef INT32_MAX
5704 int32_t a3 = INT32_MAX;
5705 int32_t a3min = INT32_MIN;
5706 #endif
5707 #ifdef INT64_MAX
5708 int64_t a4 = INT64_MAX;
5709 int64_t a4min = INT64_MIN;
5710 #endif
5711 #ifdef UINT8_MAX
5712 uint8_t b1 = UINT8_MAX;
5713 #else
5714 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5715 #endif
5716 #ifdef UINT16_MAX
5717 uint16_t b2 = UINT16_MAX;
5718 #endif
5719 #ifdef UINT32_MAX
5720 uint32_t b3 = UINT32_MAX;
5721 #endif
5722 #ifdef UINT64_MAX
5723 uint64_t b4 = UINT64_MAX;
5724 #endif
5725 int_least8_t c1 = INT8_C (0x7f);
5726 int_least8_t c1max = INT_LEAST8_MAX;
5727 int_least8_t c1min = INT_LEAST8_MIN;
5728 int_least16_t c2 = INT16_C (0x7fff);
5729 int_least16_t c2max = INT_LEAST16_MAX;
5730 int_least16_t c2min = INT_LEAST16_MIN;
5731 int_least32_t c3 = INT32_C (0x7fffffff);
5732 int_least32_t c3max = INT_LEAST32_MAX;
5733 int_least32_t c3min = INT_LEAST32_MIN;
5734 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5735 int_least64_t c4max = INT_LEAST64_MAX;
5736 int_least64_t c4min = INT_LEAST64_MIN;
5737 uint_least8_t d1 = UINT8_C (0xff);
5738 uint_least8_t d1max = UINT_LEAST8_MAX;
5739 uint_least16_t d2 = UINT16_C (0xffff);
5740 uint_least16_t d2max = UINT_LEAST16_MAX;
5741 uint_least32_t d3 = UINT32_C (0xffffffff);
5742 uint_least32_t d3max = UINT_LEAST32_MAX;
5743 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5744 uint_least64_t d4max = UINT_LEAST64_MAX;
5745 int_fast8_t e1 = INT_FAST8_MAX;
5746 int_fast8_t e1min = INT_FAST8_MIN;
5747 int_fast16_t e2 = INT_FAST16_MAX;
5748 int_fast16_t e2min = INT_FAST16_MIN;
5749 int_fast32_t e3 = INT_FAST32_MAX;
5750 int_fast32_t e3min = INT_FAST32_MIN;
5751 int_fast64_t e4 = INT_FAST64_MAX;
5752 int_fast64_t e4min = INT_FAST64_MIN;
5753 uint_fast8_t f1 = UINT_FAST8_MAX;
5754 uint_fast16_t f2 = UINT_FAST16_MAX;
5755 uint_fast32_t f3 = UINT_FAST32_MAX;
5756 uint_fast64_t f4 = UINT_FAST64_MAX;
5757 #ifdef INTPTR_MAX
5758 intptr_t g = INTPTR_MAX;
5759 intptr_t gmin = INTPTR_MIN;
5760 #endif
5761 #ifdef UINTPTR_MAX
5762 uintptr_t h = UINTPTR_MAX;
5763 #endif
5764 intmax_t i = INTMAX_MAX;
5765 uintmax_t j = UINTMAX_MAX;
5766
5767 #include <limits.h> /* for CHAR_BIT */
5768 #define TYPE_MINIMUM(t) \
5769 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
5770 #define TYPE_MAXIMUM(t) \
5771 ((t) ((t) 0 < (t) -1 \
5772 ? (t) -1 \
5773 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
5774 struct s {
5775 int check_PTRDIFF:
5776 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5777 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5778 ? 1 : -1;
5779 /* Detect bug in FreeBSD 6.0 / ia64. */
5780 int check_SIG_ATOMIC:
5781 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5782 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5783 ? 1 : -1;
5784 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5785 int check_WCHAR:
5786 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5787 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5788 ? 1 : -1;
5789 /* Detect bug in mingw. */
5790 int check_WINT:
5791 WINT_MIN == TYPE_MINIMUM (wint_t)
5792 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5793 ? 1 : -1;
5794
5795 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5796 int check_UINT8_C:
5797 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5798 int check_UINT16_C:
5799 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5800
5801 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5802 #ifdef UINT8_MAX
5803 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5804 #endif
5805 #ifdef UINT16_MAX
5806 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5807 #endif
5808 #ifdef UINT32_MAX
5809 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5810 #endif
5811 #ifdef UINT64_MAX
5812 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5813 #endif
5814 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5815 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5816 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5817 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5818 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5819 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5820 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5821 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5822 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5823 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5824 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5825 };
5826
5827 int
5828 main ()
5829 {
5830
5831 ;
5832 return 0;
5833 }
5834 _ACEOF
5835 if ac_fn_c_try_compile "$LINENO"; then :
5836 if test "$cross_compiling" = yes; then :
5837 gl_cv_header_working_stdint_h=yes
5838
5839 else
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5842
5843
5844 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5845 #include <stdint.h>
5846
5847
5848 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5849 included before <wchar.h>. */
5850 #include <stddef.h>
5851 #include <signal.h>
5852 #if HAVE_WCHAR_H
5853 # include <stdio.h>
5854 # include <time.h>
5855 # include <wchar.h>
5856 #endif
5857
5858
5859 #include <stdio.h>
5860 #include <string.h>
5861 #define MVAL(macro) MVAL1(macro)
5862 #define MVAL1(expression) #expression
5863 static const char *macro_values[] =
5864 {
5865 #ifdef INT8_MAX
5866 MVAL (INT8_MAX),
5867 #endif
5868 #ifdef INT16_MAX
5869 MVAL (INT16_MAX),
5870 #endif
5871 #ifdef INT32_MAX
5872 MVAL (INT32_MAX),
5873 #endif
5874 #ifdef INT64_MAX
5875 MVAL (INT64_MAX),
5876 #endif
5877 #ifdef UINT8_MAX
5878 MVAL (UINT8_MAX),
5879 #endif
5880 #ifdef UINT16_MAX
5881 MVAL (UINT16_MAX),
5882 #endif
5883 #ifdef UINT32_MAX
5884 MVAL (UINT32_MAX),
5885 #endif
5886 #ifdef UINT64_MAX
5887 MVAL (UINT64_MAX),
5888 #endif
5889 NULL
5890 };
5891
5892 int
5893 main ()
5894 {
5895
5896 const char **mv;
5897 for (mv = macro_values; *mv != NULL; mv++)
5898 {
5899 const char *value = *mv;
5900 /* Test whether it looks like a cast expression. */
5901 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
5902 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
5903 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
5904 || strncmp (value, "((int)"/*)*/, 6) == 0
5905 || strncmp (value, "((signed short)"/*)*/, 15) == 0
5906 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
5907 return mv - macro_values + 1;
5908 }
5909 return 0;
5910
5911 ;
5912 return 0;
5913 }
5914 _ACEOF
5915 if ac_fn_c_try_run "$LINENO"; then :
5916 gl_cv_header_working_stdint_h=yes
5917 fi
5918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5919 conftest.$ac_objext conftest.beam conftest.$ac_ext
5920 fi
5921
5922
5923 fi
5924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5925
5926 fi
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
5928 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
5929 fi
5930 if test "$gl_cv_header_working_stdint_h" = yes; then
5931 STDINT_H=
5932 else
5933 for ac_header in sys/inttypes.h sys/bitypes.h
5934 do :
5935 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5936 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5937 eval as_val=\$$as_ac_Header
5938 if test "x$as_val" = x""yes; then :
5939 cat >>confdefs.h <<_ACEOF
5940 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5941 _ACEOF
5942
5943 fi
5944
5945 done
5946
5947 if test $ac_cv_header_sys_inttypes_h = yes; then
5948 HAVE_SYS_INTTYPES_H=1
5949 else
5950 HAVE_SYS_INTTYPES_H=0
5951 fi
5952
5953 if test $ac_cv_header_sys_bitypes_h = yes; then
5954 HAVE_SYS_BITYPES_H=1
5955 else
5956 HAVE_SYS_BITYPES_H=0
5957 fi
5958
5959
5960
5961
5962 if test $APPLE_UNIVERSAL_BUILD = 0; then
5963
5964
5965 for gltype in ptrdiff_t size_t ; do
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
5967 $as_echo_n "checking for bit size of $gltype... " >&6; }
5968 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
5969 $as_echo_n "(cached) " >&6
5970 else
5971 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
5972 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5973 included before <wchar.h>. */
5974 #include <stddef.h>
5975 #include <signal.h>
5976 #if HAVE_WCHAR_H
5977 # include <stdio.h>
5978 # include <time.h>
5979 # include <wchar.h>
5980 #endif
5981
5982 #include <limits.h>"; then :
5983
5984 else
5985 result=unknown
5986 fi
5987
5988 eval gl_cv_bitsizeof_${gltype}=\$result
5989
5990 fi
5991 eval ac_res=\$gl_cv_bitsizeof_${gltype}
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5993 $as_echo "$ac_res" >&6; }
5994 eval result=\$gl_cv_bitsizeof_${gltype}
5995 if test $result = unknown; then
5996 result=0
5997 fi
5998 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5999 cat >>confdefs.h <<_ACEOF
6000 #define BITSIZEOF_${GLTYPE} $result
6001 _ACEOF
6002
6003 eval BITSIZEOF_${GLTYPE}=\$result
6004 done
6005
6006
6007 fi
6008
6009
6010 for gltype in sig_atomic_t wchar_t wint_t ; do
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
6012 $as_echo_n "checking for bit size of $gltype... " >&6; }
6013 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then :
6014 $as_echo_n "(cached) " >&6
6015 else
6016 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
6017 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6018 included before <wchar.h>. */
6019 #include <stddef.h>
6020 #include <signal.h>
6021 #if HAVE_WCHAR_H
6022 # include <stdio.h>
6023 # include <time.h>
6024 # include <wchar.h>
6025 #endif
6026
6027 #include <limits.h>"; then :
6028
6029 else
6030 result=unknown
6031 fi
6032
6033 eval gl_cv_bitsizeof_${gltype}=\$result
6034
6035 fi
6036 eval ac_res=\$gl_cv_bitsizeof_${gltype}
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6038 $as_echo "$ac_res" >&6; }
6039 eval result=\$gl_cv_bitsizeof_${gltype}
6040 if test $result = unknown; then
6041 result=0
6042 fi
6043 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6044 cat >>confdefs.h <<_ACEOF
6045 #define BITSIZEOF_${GLTYPE} $result
6046 _ACEOF
6047
6048 eval BITSIZEOF_${GLTYPE}=\$result
6049 done
6050
6051
6052
6053
6054 for gltype in sig_atomic_t wchar_t wint_t ; do
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
6056 $as_echo_n "checking whether $gltype is signed... " >&6; }
6057 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
6058 $as_echo_n "(cached) " >&6
6059 else
6060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6061 /* end confdefs.h. */
6062
6063 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6064 included before <wchar.h>. */
6065 #include <stddef.h>
6066 #include <signal.h>
6067 #if HAVE_WCHAR_H
6068 # include <stdio.h>
6069 # include <time.h>
6070 # include <wchar.h>
6071 #endif
6072
6073 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6074 int
6075 main ()
6076 {
6077
6078 ;
6079 return 0;
6080 }
6081 _ACEOF
6082 if ac_fn_c_try_compile "$LINENO"; then :
6083 result=yes
6084 else
6085 result=no
6086 fi
6087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6088 eval gl_cv_type_${gltype}_signed=\$result
6089
6090 fi
6091 eval ac_res=\$gl_cv_type_${gltype}_signed
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6093 $as_echo "$ac_res" >&6; }
6094 eval result=\$gl_cv_type_${gltype}_signed
6095 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6096 if test "$result" = yes; then
6097 cat >>confdefs.h <<_ACEOF
6098 #define HAVE_SIGNED_${GLTYPE} 1
6099 _ACEOF
6100
6101 eval HAVE_SIGNED_${GLTYPE}=1
6102 else
6103 eval HAVE_SIGNED_${GLTYPE}=0
6104 fi
6105 done
6106
6107
6108 gl_cv_type_ptrdiff_t_signed=yes
6109 gl_cv_type_size_t_signed=no
6110 if test $APPLE_UNIVERSAL_BUILD = 0; then
6111
6112
6113 for gltype in ptrdiff_t size_t ; do
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6115 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6116 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6117 $as_echo_n "(cached) " >&6
6118 else
6119 eval gl_cv_type_${gltype}_suffix=no
6120 eval result=\$gl_cv_type_${gltype}_signed
6121 if test "$result" = yes; then
6122 glsufu=
6123 else
6124 glsufu=u
6125 fi
6126 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6127 case $glsuf in
6128 '') gltype1='int';;
6129 l) gltype1='long int';;
6130 ll) gltype1='long long int';;
6131 i64) gltype1='__int64';;
6132 u) gltype1='unsigned int';;
6133 ul) gltype1='unsigned long int';;
6134 ull) gltype1='unsigned long long int';;
6135 ui64)gltype1='unsigned __int64';;
6136 esac
6137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6138 /* end confdefs.h. */
6139
6140 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6141 included before <wchar.h>. */
6142 #include <stddef.h>
6143 #include <signal.h>
6144 #if HAVE_WCHAR_H
6145 # include <stdio.h>
6146 # include <time.h>
6147 # include <wchar.h>
6148 #endif
6149
6150 extern $gltype foo;
6151 extern $gltype1 foo;
6152 int
6153 main ()
6154 {
6155
6156 ;
6157 return 0;
6158 }
6159 _ACEOF
6160 if ac_fn_c_try_compile "$LINENO"; then :
6161 eval gl_cv_type_${gltype}_suffix=\$glsuf
6162 fi
6163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6164 eval result=\$gl_cv_type_${gltype}_suffix
6165 test "$result" != no && break
6166 done
6167 fi
6168 eval ac_res=\$gl_cv_type_${gltype}_suffix
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6170 $as_echo "$ac_res" >&6; }
6171 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6172 eval result=\$gl_cv_type_${gltype}_suffix
6173 test "$result" = no && result=
6174 eval ${GLTYPE}_SUFFIX=\$result
6175 cat >>confdefs.h <<_ACEOF
6176 #define ${GLTYPE}_SUFFIX $result
6177 _ACEOF
6178
6179 done
6180
6181
6182 fi
6183
6184
6185 for gltype in sig_atomic_t wchar_t wint_t ; do
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
6187 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
6188 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then :
6189 $as_echo_n "(cached) " >&6
6190 else
6191 eval gl_cv_type_${gltype}_suffix=no
6192 eval result=\$gl_cv_type_${gltype}_signed
6193 if test "$result" = yes; then
6194 glsufu=
6195 else
6196 glsufu=u
6197 fi
6198 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6199 case $glsuf in
6200 '') gltype1='int';;
6201 l) gltype1='long int';;
6202 ll) gltype1='long long int';;
6203 i64) gltype1='__int64';;
6204 u) gltype1='unsigned int';;
6205 ul) gltype1='unsigned long int';;
6206 ull) gltype1='unsigned long long int';;
6207 ui64)gltype1='unsigned __int64';;
6208 esac
6209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6210 /* end confdefs.h. */
6211
6212 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6213 included before <wchar.h>. */
6214 #include <stddef.h>
6215 #include <signal.h>
6216 #if HAVE_WCHAR_H
6217 # include <stdio.h>
6218 # include <time.h>
6219 # include <wchar.h>
6220 #endif
6221
6222 extern $gltype foo;
6223 extern $gltype1 foo;
6224 int
6225 main ()
6226 {
6227
6228 ;
6229 return 0;
6230 }
6231 _ACEOF
6232 if ac_fn_c_try_compile "$LINENO"; then :
6233 eval gl_cv_type_${gltype}_suffix=\$glsuf
6234 fi
6235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6236 eval result=\$gl_cv_type_${gltype}_suffix
6237 test "$result" != no && break
6238 done
6239 fi
6240 eval ac_res=\$gl_cv_type_${gltype}_suffix
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6242 $as_echo "$ac_res" >&6; }
6243 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6244 eval result=\$gl_cv_type_${gltype}_suffix
6245 test "$result" = no && result=
6246 eval ${GLTYPE}_SUFFIX=\$result
6247 cat >>confdefs.h <<_ACEOF
6248 #define ${GLTYPE}_SUFFIX $result
6249 _ACEOF
6250
6251 done
6252
6253
6254
6255 if test $BITSIZEOF_WINT_T -lt 32; then
6256 BITSIZEOF_WINT_T=32
6257 fi
6258
6259 STDINT_H=stdint.h
6260 fi
6261
6262 if test -n "$STDINT_H"; then
6263 GL_GENERATE_STDINT_H_TRUE=
6264 GL_GENERATE_STDINT_H_FALSE='#'
6265 else
6266 GL_GENERATE_STDINT_H_TRUE='#'
6267 GL_GENERATE_STDINT_H_FALSE=
6268 fi
6269
6270
6271
6272
6273
6274
6275
6276
6277 GNULIB_IMAXABS=0;
6278 GNULIB_IMAXDIV=0;
6279 GNULIB_STRTOIMAX=0;
6280 GNULIB_STRTOUMAX=0;
6281 HAVE_DECL_IMAXABS=1;
6282 HAVE_DECL_IMAXDIV=1;
6283 HAVE_DECL_STRTOIMAX=1;
6284 HAVE_DECL_STRTOUMAX=1;
6285 REPLACE_STRTOIMAX=0;
6286 INT32_MAX_LT_INTMAX_MAX=1;
6287 INT64_MAX_EQ_LONG_MAX='defined _LP64';
6288 PRI_MACROS_BROKEN=0;
6289 PRIPTR_PREFIX=__PRIPTR_PREFIX;
6290 UINT32_MAX_LT_UINTMAX_MAX=1;
6291 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
6292
6293
6294
6295
6296 :
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310 :
6311
6312
6313
6314
6315
6316
6317
6318
6319 if test $gl_cv_have_include_next = yes; then
6320 gl_cv_next_inttypes_h='<'inttypes.h'>'
6321 else
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
6323 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
6324 if test "${gl_cv_next_inttypes_h+set}" = set; then :
6325 $as_echo_n "(cached) " >&6
6326 else
6327
6328 if test $ac_cv_header_inttypes_h = yes; then
6329
6330
6331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6332 /* end confdefs.h. */
6333 #include <inttypes.h>
6334
6335 _ACEOF
6336 case "$host_os" in
6337 aix*) gl_absname_cpp="$ac_cpp -C" ;;
6338 *) gl_absname_cpp="$ac_cpp" ;;
6339 esac
6340
6341 case "$host_os" in
6342 mingw*)
6343 gl_dirsep_regex='[/\\]'
6344 ;;
6345 *)
6346 gl_dirsep_regex='\/'
6347 ;;
6348 esac
6349 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
6350
6351 gl_header_literal_regex=`echo 'inttypes.h' \
6352 | sed -e "$gl_make_literal_regex_sed"`
6353 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
6354 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
6355 s|^/[^/]|//&|
6356 p
6357 q
6358 }'
6359 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
6360 sed -n "$gl_absolute_header_sed"`'"'
6361 else
6362 gl_cv_next_inttypes_h='<'inttypes.h'>'
6363 fi
6364
6365
6366 fi
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
6368 $as_echo "$gl_cv_next_inttypes_h" >&6; }
6369 fi
6370 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
6371
6372 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
6373 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
6374 gl_next_as_first_directive='<'inttypes.h'>'
6375 else
6376 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
6377 gl_next_as_first_directive=$gl_cv_next_inttypes_h
6378 fi
6379 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
6380
6381
6382
6383
6384
6385
6386
6387
6388 for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
6389 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
6391 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
6392 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
6393 $as_echo_n "(cached) " >&6
6394 else
6395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6396 /* end confdefs.h. */
6397 #include <inttypes.h>
6398
6399 int
6400 main ()
6401 {
6402 #undef $gl_func
6403 (void) $gl_func;
6404 ;
6405 return 0;
6406 }
6407 _ACEOF
6408 if ac_fn_c_try_compile "$LINENO"; then :
6409 eval "$as_gl_Symbol=yes"
6410 else
6411 eval "$as_gl_Symbol=no"
6412 fi
6413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6414 fi
6415 eval ac_res=\$$as_gl_Symbol
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6417 $as_echo "$ac_res" >&6; }
6418 eval as_val=\$$as_gl_Symbol
6419 if test "x$as_val" = x""yes; then :
6420 cat >>confdefs.h <<_ACEOF
6421 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
6422 _ACEOF
6423
6424 eval ac_cv_have_decl_$gl_func=yes
6425 fi
6426 done
6427
6428
6429
6430 for ac_header in inttypes.h
6431 do :
6432 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
6433 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
6434 cat >>confdefs.h <<_ACEOF
6435 #define HAVE_INTTYPES_H 1
6436 _ACEOF
6437
6438 fi
6439
6440 done
6441
6442 if test $ac_cv_header_inttypes_h = yes; then
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
6444 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
6445 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
6446 $as_echo_n "(cached) " >&6
6447 else
6448
6449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6450 /* end confdefs.h. */
6451
6452 #include <inttypes.h>
6453 #ifdef PRId32
6454 char *p = PRId32;
6455 #endif
6456
6457 int
6458 main ()
6459 {
6460
6461 ;
6462 return 0;
6463 }
6464 _ACEOF
6465 if ac_fn_c_try_compile "$LINENO"; then :
6466 gt_cv_inttypes_pri_broken=no
6467 else
6468 gt_cv_inttypes_pri_broken=yes
6469 fi
6470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6471
6472 fi
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
6474 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
6475 fi
6476 if test "$gt_cv_inttypes_pri_broken" = yes; then
6477
6478 cat >>confdefs.h <<_ACEOF
6479 #define PRI_MACROS_BROKEN 1
6480 _ACEOF
6481
6482 PRI_MACROS_BROKEN=1
6483 else
6484 PRI_MACROS_BROKEN=0
6485 fi
6486
6487
6488
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
6490 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
6491 if test "${am_cv_langinfo_codeset+set}" = set; then :
6492 $as_echo_n "(cached) " >&6
6493 else
6494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495 /* end confdefs.h. */
6496 #include <langinfo.h>
6497 int
6498 main ()
6499 {
6500 char* cs = nl_langinfo(CODESET); return !cs;
6501 ;
6502 return 0;
6503 }
6504 _ACEOF
6505 if ac_fn_c_try_link "$LINENO"; then :
6506 am_cv_langinfo_codeset=yes
6507 else
6508 am_cv_langinfo_codeset=no
6509 fi
6510 rm -f core conftest.err conftest.$ac_objext \
6511 conftest$ac_exeext conftest.$ac_ext
6512
6513 fi
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
6515 $as_echo "$am_cv_langinfo_codeset" >&6; }
6516 if test $am_cv_langinfo_codeset = yes; then
6517
6518 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
6519
6520 fi
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536 :
6537
6538
6539
6540
6541
6542
6543 :
6544
6545
6546
6547
6548
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
6550 $as_echo_n "checking for working fcntl.h... " >&6; }
6551 if test "${gl_cv_header_working_fcntl_h+set}" = set; then :
6552 $as_echo_n "(cached) " >&6
6553 else
6554 if test "$cross_compiling" = yes; then :
6555 gl_cv_header_working_fcntl_h=cross-compiling
6556 else
6557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558 /* end confdefs.h. */
6559 #include <sys/types.h>
6560 #include <sys/stat.h>
6561 #if HAVE_UNISTD_H
6562 # include <unistd.h>
6563 #else /* on Windows with MSVC */
6564 # include <io.h>
6565 # include <stdlib.h>
6566 # defined sleep(n) _sleep ((n) * 1000)
6567 #endif
6568 #include <fcntl.h>
6569 #ifndef O_NOATIME
6570 #define O_NOATIME 0
6571 #endif
6572 #ifndef O_NOFOLLOW
6573 #define O_NOFOLLOW 0
6574 #endif
6575 static int const constants[] =
6576 {
6577 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
6578 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
6579 };
6580
6581 int
6582 main ()
6583 {
6584
6585 int result = !constants;
6586 #if HAVE_SYMLINK
6587 {
6588 static char const sym[] = "conftest.sym";
6589 if (symlink (".", sym) != 0)
6590 result |= 2;
6591 else
6592 {
6593 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
6594 if (fd >= 0)
6595 {
6596 close (fd);
6597 result |= 4;
6598 }
6599 }
6600 unlink (sym);
6601 }
6602 #endif
6603 {
6604 static char const file[] = "confdefs.h";
6605 int fd = open (file, O_RDONLY | O_NOATIME);
6606 if (fd < 0)
6607 result |= 8;
6608 else
6609 {
6610 struct stat st0;
6611 if (fstat (fd, &st0) != 0)
6612 result |= 16;
6613 else
6614 {
6615 char c;
6616 sleep (1);
6617 if (read (fd, &c, 1) != 1)
6618 result |= 24;
6619 else
6620 {
6621 if (close (fd) != 0)
6622 result |= 32;
6623 else
6624 {
6625 struct stat st1;
6626 if (stat (file, &st1) != 0)
6627 result |= 40;
6628 else
6629 if (st0.st_atime != st1.st_atime)
6630 result |= 64;
6631 }
6632 }
6633 }
6634 }
6635 }
6636 return result;
6637 ;
6638 return 0;
6639 }
6640 _ACEOF
6641 if ac_fn_c_try_run "$LINENO"; then :
6642 gl_cv_header_working_fcntl_h=yes
6643 else
6644 case $? in #(
6645 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
6646 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
6647 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
6648 *) gl_cv_header_working_fcntl_h='no';;
6649 esac
6650 fi
6651 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6652 conftest.$ac_objext conftest.beam conftest.$ac_ext
6653 fi
6654
6655 fi
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
6657 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
6658
6659 case $gl_cv_header_working_fcntl_h in #(
6660 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
6661 *) ac_val=1;;
6662 esac
6663
6664 cat >>confdefs.h <<_ACEOF
6665 #define HAVE_WORKING_O_NOATIME $ac_val
6666 _ACEOF
6667
6668
6669 case $gl_cv_header_working_fcntl_h in #(
6670 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
6671 *) ac_val=1;;
6672 esac
6673
6674 cat >>confdefs.h <<_ACEOF
6675 #define HAVE_WORKING_O_NOFOLLOW $ac_val
6676 _ACEOF
6677
6678
6679
6680 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default"
6681 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then :
6682 ac_have_decl=1
6683 else
6684 ac_have_decl=0
6685 fi
6686
6687 cat >>confdefs.h <<_ACEOF
6688 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
6689 _ACEOF
6690
6691
6692
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
6694 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
6695 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
6696 $as_echo_n "(cached) " >&6
6697 else
6698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699 /* end confdefs.h. */
6700
6701 #include <features.h>
6702 #ifdef __GNU_LIBRARY__
6703 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6704 Lucky GNU user
6705 #endif
6706 #endif
6707 #ifdef __UCLIBC__
6708 Lucky user
6709 #endif
6710
6711 _ACEOF
6712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6713 $EGREP "Lucky" >/dev/null 2>&1; then :
6714 ac_cv_gnu_library_2_1=yes
6715 else
6716 ac_cv_gnu_library_2_1=no
6717 fi
6718 rm -f conftest*
6719
6720
6721
6722 fi
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
6724 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
6725
6726 GLIBC21="$ac_cv_gnu_library_2_1"
6727
6728
6729
6730 GNULIB_BTOWC=0;
6731 GNULIB_WCTOB=0;
6732 GNULIB_MBSINIT=0;
6733 GNULIB_MBRTOWC=0;
6734 GNULIB_MBRLEN=0;
6735 GNULIB_MBSRTOWCS=0;
6736 GNULIB_MBSNRTOWCS=0;
6737 GNULIB_WCRTOMB=0;
6738 GNULIB_WCSRTOMBS=0;
6739 GNULIB_WCSNRTOMBS=0;
6740 GNULIB_WCWIDTH=0;
6741 GNULIB_WMEMCHR=0;
6742 GNULIB_WMEMCMP=0;
6743 GNULIB_WMEMCPY=0;
6744 GNULIB_WMEMMOVE=0;
6745 GNULIB_WMEMSET=0;
6746 GNULIB_WCSLEN=0;
6747 GNULIB_WCSNLEN=0;
6748 GNULIB_WCSCPY=0;
6749 GNULIB_WCPCPY=0;
6750 GNULIB_WCSNCPY=0;
6751 GNULIB_WCPNCPY=0;
6752 GNULIB_WCSCAT=0;
6753 GNULIB_WCSNCAT=0;
6754 GNULIB_WCSCMP=0;
6755 GNULIB_WCSNCMP=0;
6756 GNULIB_WCSCASECMP=0;
6757 GNULIB_WCSNCASECMP=0;
6758 GNULIB_WCSCOLL=0;
6759 GNULIB_WCSXFRM=0;
6760 GNULIB_WCSDUP=0;
6761 GNULIB_WCSCHR=0;
6762 GNULIB_WCSRCHR=0;
6763 GNULIB_WCSCSPN=0;
6764 GNULIB_WCSSPN=0;
6765 GNULIB_WCSPBRK=0;
6766 GNULIB_WCSSTR=0;
6767 GNULIB_WCSTOK=0;
6768 GNULIB_WCSWIDTH=0;
6769 HAVE_BTOWC=1;
6770 HAVE_MBSINIT=1;
6771 HAVE_MBRTOWC=1;
6772 HAVE_MBRLEN=1;
6773 HAVE_MBSRTOWCS=1;
6774 HAVE_MBSNRTOWCS=1;
6775 HAVE_WCRTOMB=1;
6776 HAVE_WCSRTOMBS=1;
6777 HAVE_WCSNRTOMBS=1;
6778 HAVE_WMEMCHR=1;
6779 HAVE_WMEMCMP=1;
6780 HAVE_WMEMCPY=1;
6781 HAVE_WMEMMOVE=1;
6782 HAVE_WMEMSET=1;
6783 HAVE_WCSLEN=1;
6784 HAVE_WCSNLEN=1;
6785 HAVE_WCSCPY=1;
6786 HAVE_WCPCPY=1;
6787 HAVE_WCSNCPY=1;
6788 HAVE_WCPNCPY=1;
6789 HAVE_WCSCAT=1;
6790 HAVE_WCSNCAT=1;
6791 HAVE_WCSCMP=1;
6792 HAVE_WCSNCMP=1;
6793 HAVE_WCSCASECMP=1;
6794 HAVE_WCSNCASECMP=1;
6795 HAVE_WCSCOLL=1;
6796 HAVE_WCSXFRM=1;
6797 HAVE_WCSDUP=1;
6798 HAVE_WCSCHR=1;
6799 HAVE_WCSRCHR=1;
6800 HAVE_WCSCSPN=1;
6801 HAVE_WCSSPN=1;
6802 HAVE_WCSPBRK=1;
6803 HAVE_WCSSTR=1;
6804 HAVE_WCSTOK=1;
6805 HAVE_WCSWIDTH=1;
6806 HAVE_DECL_WCTOB=1;
6807 HAVE_DECL_WCWIDTH=1;
6808 REPLACE_MBSTATE_T=0;
6809 REPLACE_BTOWC=0;
6810 REPLACE_WCTOB=0;
6811 REPLACE_MBSINIT=0;
6812 REPLACE_MBRTOWC=0;
6813 REPLACE_MBRLEN=0;
6814 REPLACE_MBSRTOWCS=0;
6815 REPLACE_MBSNRTOWCS=0;
6816 REPLACE_WCRTOMB=0;
6817 REPLACE_WCSRTOMBS=0;
6818 REPLACE_WCSNRTOMBS=0;
6819 REPLACE_WCWIDTH=0;
6820 REPLACE_WCSWIDTH=0;
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
6836 $as_echo_n "checking for a traditional japanese locale... " >&6; }
6837 if test "${gt_cv_locale_ja+set}" = set; then :
6838 $as_echo_n "(cached) " >&6
6839 else
6840
6841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6842 /* end confdefs.h. */
6843
6844 #include <locale.h>
6845 #include <time.h>
6846 #if HAVE_LANGINFO_CODESET
6847 # include <langinfo.h>
6848 #endif
6849 #include <stdlib.h>
6850 #include <string.h>
6851 struct tm t;
6852 char buf[16];
6853 int main ()
6854 {
6855 const char *p;
6856 /* Check whether the given locale name is recognized by the system. */
6857 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
6858 /* On native Windows, setlocale(category, "") looks at the system settings,
6859 not at the environment variables. Also, when an encoding suffix such
6860 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
6861 category of the locale to "C". */
6862 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
6863 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
6864 return 1;
6865 #else
6866 if (setlocale (LC_ALL, "") == NULL) return 1;
6867 #endif
6868 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
6869 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
6870 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
6871 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
6872 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
6873 some unit tests fail.
6874 On MirBSD 10, when an unsupported locale is specified, setlocale()
6875 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
6876 #if HAVE_LANGINFO_CODESET
6877 {
6878 const char *cs = nl_langinfo (CODESET);
6879 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
6880 || strcmp (cs, "UTF-8") == 0)
6881 return 1;
6882 }
6883 #endif
6884 #ifdef __CYGWIN__
6885 /* On Cygwin, avoid locale names without encoding suffix, because the
6886 locale_charset() function relies on the encoding suffix. Note that
6887 LC_ALL is set on the command line. */
6888 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
6889 #endif
6890 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
6891 on Cygwin 1.5.x. */
6892 if (MB_CUR_MAX == 1)
6893 return 1;
6894 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
6895 This excludes the UTF-8 encoding (except on MirBSD). */
6896 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
6897 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
6898 for (p = buf; *p != '\0'; p++)
6899 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
6900 return 1;
6901 return 0;
6902 }
6903
6904 _ACEOF
6905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6906 (eval $ac_link) 2>&5
6907 ac_status=$?
6908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6909 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6910 case "$host_os" in
6911 # Handle native Windows specially, because there setlocale() interprets
6912 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
6913 # "fr" or "fra" as "French" or "French_France.1252",
6914 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
6915 # "ja" as "Japanese" or "Japanese_Japan.932",
6916 # and similar.
6917 mingw*)
6918 # Note that on native Windows, the Japanese locale is
6919 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
6920 # cannot use it here.
6921 gt_cv_locale_ja=none
6922 ;;
6923 *)
6924 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
6925 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
6926 # configure script would override the LC_ALL setting. Likewise for
6927 # LC_CTYPE, which is also set at the beginning of the configure script.
6928 # Test for the AIX locale name.
6929 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6930 gt_cv_locale_ja=ja_JP
6931 else
6932 # Test for the locale name with explicit encoding suffix.
6933 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6934 gt_cv_locale_ja=ja_JP.EUC-JP
6935 else
6936 # Test for the HP-UX, OSF/1, NetBSD locale name.
6937 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6938 gt_cv_locale_ja=ja_JP.eucJP
6939 else
6940 # Test for the IRIX, FreeBSD locale name.
6941 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6942 gt_cv_locale_ja=ja_JP.EUC
6943 else
6944 # Test for the Solaris 7 locale name.
6945 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
6946 gt_cv_locale_ja=ja
6947 else
6948 # Special test for NetBSD 1.6.
6949 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
6950 gt_cv_locale_ja=ja_JP.eucJP
6951 else
6952 # None found.
6953 gt_cv_locale_ja=none
6954 fi
6955 fi
6956 fi
6957 fi
6958 fi
6959 fi
6960 ;;
6961 esac
6962 fi
6963 rm -fr conftest*
6964
6965 fi
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
6967 $as_echo "$gt_cv_locale_ja" >&6; }
6968 LOCALE_JA=$gt_cv_locale_ja
6969
6970
6971
6972
6973
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
6975 $as_echo_n "checking for a transitional chinese locale... " >&6; }
6976 if test "${gt_cv_locale_zh_CN+set}" = set; then :
6977 $as_echo_n "(cached) " >&6
6978 else
6979
6980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6981 /* end confdefs.h. */
6982
6983 #include <locale.h>
6984 #include <stdlib.h>
6985 #include <time.h>
6986 #if HAVE_LANGINFO_CODESET
6987 # include <langinfo.h>
6988 #endif
6989 #include <stdlib.h>
6990 #include <string.h>
6991 struct tm t;
6992 char buf[16];
6993 int main ()
6994 {
6995 const char *p;
6996 /* Check whether the given locale name is recognized by the system. */
6997 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
6998 /* On native Windows, setlocale(category, "") looks at the system settings,
6999 not at the environment variables. Also, when an encoding suffix such
7000 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
7001 category of the locale to "C". */
7002 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
7003 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
7004 return 1;
7005 #else
7006 if (setlocale (LC_ALL, "") == NULL) return 1;
7007 #endif
7008 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7009 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7010 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7011 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7012 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7013 some unit tests fail.
7014 On MirBSD 10, when an unsupported locale is specified, setlocale()
7015 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
7016 #if HAVE_LANGINFO_CODESET
7017 {
7018 const char *cs = nl_langinfo (CODESET);
7019 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
7020 || strcmp (cs, "UTF-8") == 0)
7021 return 1;
7022 }
7023 #endif
7024 #ifdef __CYGWIN__
7025 /* On Cygwin, avoid locale names without encoding suffix, because the
7026 locale_charset() function relies on the encoding suffix. Note that
7027 LC_ALL is set on the command line. */
7028 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7029 #endif
7030 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
7031 This excludes the UTF-8 encoding (except on MirBSD). */
7032 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7033 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
7034 for (p = buf; *p != '\0'; p++)
7035 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
7036 return 1;
7037 /* Check whether a typical GB18030 multibyte sequence is recognized as a
7038 single wide character. This excludes the GB2312 and GBK encodings. */
7039 if (mblen ("\203\062\332\066", 5) != 4)
7040 return 1;
7041 return 0;
7042 }
7043
7044 _ACEOF
7045 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7046 (eval $ac_link) 2>&5
7047 ac_status=$?
7048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7049 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7050 case "$host_os" in
7051 # Handle native Windows specially, because there setlocale() interprets
7052 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7053 # "fr" or "fra" as "French" or "French_France.1252",
7054 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7055 # "ja" as "Japanese" or "Japanese_Japan.932",
7056 # and similar.
7057 mingw*)
7058 # Test for the hypothetical native Windows locale name.
7059 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7060 gt_cv_locale_zh_CN=Chinese_China.54936
7061 else
7062 # None found.
7063 gt_cv_locale_zh_CN=none
7064 fi
7065 ;;
7066 solaris2.8)
7067 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
7068 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
7069 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
7070 gt_cv_locale_zh_CN=none
7071 ;;
7072 *)
7073 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7074 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
7075 # configure script would override the LC_ALL setting. Likewise for
7076 # LC_CTYPE, which is also set at the beginning of the configure script.
7077 # Test for the locale name without encoding suffix.
7078 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7079 gt_cv_locale_zh_CN=zh_CN
7080 else
7081 # Test for the locale name with explicit encoding suffix.
7082 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7083 gt_cv_locale_zh_CN=zh_CN.GB18030
7084 else
7085 # None found.
7086 gt_cv_locale_zh_CN=none
7087 fi
7088 fi
7089 ;;
7090 esac
7091 else
7092 # If there was a link error, due to mblen(), the system is so old that
7093 # it certainly doesn't have a chinese locale.
7094 gt_cv_locale_zh_CN=none
7095 fi
7096 rm -fr conftest*
7097
7098 fi
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
7100 $as_echo "$gt_cv_locale_zh_CN" >&6; }
7101 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
7102
7103
7104
7105
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
7107 $as_echo_n "checking for a french Unicode locale... " >&6; }
7108 if test "${gt_cv_locale_fr_utf8+set}" = set; then :
7109 $as_echo_n "(cached) " >&6
7110 else
7111
7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113 /* end confdefs.h. */
7114
7115 #include <locale.h>
7116 #include <time.h>
7117 #if HAVE_LANGINFO_CODESET
7118 # include <langinfo.h>
7119 #endif
7120 #include <stdlib.h>
7121 #include <string.h>
7122 struct tm t;
7123 char buf[16];
7124 int main () {
7125 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
7126 imitates locale dependent behaviour by looking at the environment
7127 variables, and all locales use the UTF-8 encoding. */
7128 #if !(defined __BEOS__ || defined __HAIKU__)
7129 /* Check whether the given locale name is recognized by the system. */
7130 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
7131 /* On native Windows, setlocale(category, "") looks at the system settings,
7132 not at the environment variables. Also, when an encoding suffix such
7133 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
7134 category of the locale to "C". */
7135 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
7136 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
7137 return 1;
7138 # else
7139 if (setlocale (LC_ALL, "") == NULL) return 1;
7140 # endif
7141 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7142 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7143 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7144 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7145 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7146 some unit tests fail. */
7147 # if HAVE_LANGINFO_CODESET
7148 {
7149 const char *cs = nl_langinfo (CODESET);
7150 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
7151 return 1;
7152 }
7153 # endif
7154 # ifdef __CYGWIN__
7155 /* On Cygwin, avoid locale names without encoding suffix, because the
7156 locale_charset() function relies on the encoding suffix. Note that
7157 LC_ALL is set on the command line. */
7158 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7159 # endif
7160 /* Check whether in the abbreviation of the second month, the second
7161 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
7162 two bytes long, with UTF-8 encoding. */
7163 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7164 if (strftime (buf, sizeof (buf), "%b", &t) < 4
7165 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
7166 return 1;
7167 #endif
7168 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
7169 /* Check whether the decimal separator is a comma.
7170 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
7171 are nl_langinfo(RADIXCHAR) are both ".". */
7172 if (localeconv () ->decimal_point[0] != ',') return 1;
7173 #endif
7174 return 0;
7175 }
7176
7177 _ACEOF
7178 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7179 (eval $ac_link) 2>&5
7180 ac_status=$?
7181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7182 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7183 case "$host_os" in
7184 # Handle native Windows specially, because there setlocale() interprets
7185 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7186 # "fr" or "fra" as "French" or "French_France.1252",
7187 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7188 # "ja" as "Japanese" or "Japanese_Japan.932",
7189 # and similar.
7190 mingw*)
7191 # Test for the hypothetical native Windows locale name.
7192 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7193 gt_cv_locale_fr_utf8=French_France.65001
7194 else
7195 # None found.
7196 gt_cv_locale_fr_utf8=none
7197 fi
7198 ;;
7199 *)
7200 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7201 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
7202 # configure script would override the LC_ALL setting. Likewise for
7203 # LC_CTYPE, which is also set at the beginning of the configure script.
7204 # Test for the usual locale name.
7205 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7206 gt_cv_locale_fr_utf8=fr_FR
7207 else
7208 # Test for the locale name with explicit encoding suffix.
7209 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7210 gt_cv_locale_fr_utf8=fr_FR.UTF-8
7211 else
7212 # Test for the Solaris 7 locale name.
7213 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7214 gt_cv_locale_fr_utf8=fr.UTF-8
7215 else
7216 # None found.
7217 gt_cv_locale_fr_utf8=none
7218 fi
7219 fi
7220 fi
7221 ;;
7222 esac
7223 fi
7224 rm -fr conftest*
7225
7226 fi
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
7228 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
7229 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
7230
7231
7232
7233
7234
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a traditional french locale" >&5
7236 $as_echo_n "checking for a traditional french locale... " >&6; }
7237 if test "${gt_cv_locale_fr+set}" = set; then :
7238 $as_echo_n "(cached) " >&6
7239 else
7240
7241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242 /* end confdefs.h. */
7243
7244 #include <locale.h>
7245 #include <time.h>
7246 #if HAVE_LANGINFO_CODESET
7247 # include <langinfo.h>
7248 #endif
7249 #include <stdlib.h>
7250 #include <string.h>
7251 struct tm t;
7252 char buf[16];
7253 int main () {
7254 /* Check whether the given locale name is recognized by the system. */
7255 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
7256 /* On native Windows, setlocale(category, "") looks at the system settings,
7257 not at the environment variables. Also, when an encoding suffix such
7258 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
7259 category of the locale to "C". */
7260 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
7261 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
7262 return 1;
7263 #else
7264 if (setlocale (LC_ALL, "") == NULL) return 1;
7265 #endif
7266 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
7267 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
7268 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
7269 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
7270 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
7271 some unit tests fail.
7272 On MirBSD 10, when an unsupported locale is specified, setlocale()
7273 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
7274 #if HAVE_LANGINFO_CODESET
7275 {
7276 const char *cs = nl_langinfo (CODESET);
7277 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
7278 || strcmp (cs, "UTF-8") == 0)
7279 return 1;
7280 }
7281 #endif
7282 #ifdef __CYGWIN__
7283 /* On Cygwin, avoid locale names without encoding suffix, because the
7284 locale_charset() function relies on the encoding suffix. Note that
7285 LC_ALL is set on the command line. */
7286 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
7287 #endif
7288 /* Check whether in the abbreviation of the second month, the second
7289 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
7290 one byte long. This excludes the UTF-8 encoding. */
7291 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
7292 if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
7293 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
7294 /* Check whether the decimal separator is a comma.
7295 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
7296 are nl_langinfo(RADIXCHAR) are both ".". */
7297 if (localeconv () ->decimal_point[0] != ',') return 1;
7298 #endif
7299 return 0;
7300 }
7301
7302 _ACEOF
7303 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7304 (eval $ac_link) 2>&5
7305 ac_status=$?
7306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7307 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7308 case "$host_os" in
7309 # Handle native Windows specially, because there setlocale() interprets
7310 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
7311 # "fr" or "fra" as "French" or "French_France.1252",
7312 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
7313 # "ja" as "Japanese" or "Japanese_Japan.932",
7314 # and similar.
7315 mingw*)
7316 # Test for the native Windows locale name.
7317 if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7318 gt_cv_locale_fr=French_France.1252
7319 else
7320 # None found.
7321 gt_cv_locale_fr=none
7322 fi
7323 ;;
7324 *)
7325 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
7326 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
7327 # configure script would override the LC_ALL setting. Likewise for
7328 # LC_CTYPE, which is also set at the beginning of the configure script.
7329 # Test for the usual locale name.
7330 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7331 gt_cv_locale_fr=fr_FR
7332 else
7333 # Test for the locale name with explicit encoding suffix.
7334 if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7335 gt_cv_locale_fr=fr_FR.ISO-8859-1
7336 else
7337 # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
7338 if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7339 gt_cv_locale_fr=fr_FR.ISO8859-1
7340 else
7341 # Test for the HP-UX locale name.
7342 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7343 gt_cv_locale_fr=fr_FR.iso88591
7344 else
7345 # Test for the Solaris 7 locale name.
7346 if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
7347 gt_cv_locale_fr=fr
7348 else
7349 # None found.
7350 gt_cv_locale_fr=none
7351 fi
7352 fi
7353 fi
7354 fi
7355 fi
7356 ;;
7357 esac
7358 fi
7359 rm -fr conftest*
7360
7361 fi
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr" >&5
7363 $as_echo "$gt_cv_locale_fr" >&6; }
7364 LOCALE_FR=$gt_cv_locale_fr
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378 GNULIB_FFSL=0;
7379 GNULIB_FFSLL=0;
7380 GNULIB_MEMCHR=0;
7381 GNULIB_MEMMEM=0;
7382 GNULIB_MEMPCPY=0;
7383 GNULIB_MEMRCHR=0;
7384 GNULIB_RAWMEMCHR=0;
7385 GNULIB_STPCPY=0;
7386 GNULIB_STPNCPY=0;
7387 GNULIB_STRCHRNUL=0;
7388 GNULIB_STRDUP=0;
7389 GNULIB_STRNCAT=0;
7390 GNULIB_STRNDUP=0;
7391 GNULIB_STRNLEN=0;
7392 GNULIB_STRPBRK=0;
7393 GNULIB_STRSEP=0;
7394 GNULIB_STRSTR=0;
7395 GNULIB_STRCASESTR=0;
7396 GNULIB_STRTOK_R=0;
7397 GNULIB_MBSLEN=0;
7398 GNULIB_MBSNLEN=0;
7399 GNULIB_MBSCHR=0;
7400 GNULIB_MBSRCHR=0;
7401 GNULIB_MBSSTR=0;
7402 GNULIB_MBSCASECMP=0;
7403 GNULIB_MBSNCASECMP=0;
7404 GNULIB_MBSPCASECMP=0;
7405 GNULIB_MBSCASESTR=0;
7406 GNULIB_MBSCSPN=0;
7407 GNULIB_MBSPBRK=0;
7408 GNULIB_MBSSPN=0;
7409 GNULIB_MBSSEP=0;
7410 GNULIB_MBSTOK_R=0;
7411 GNULIB_STRERROR=0;
7412 GNULIB_STRERROR_R=0;
7413 GNULIB_STRSIGNAL=0;
7414 GNULIB_STRVERSCMP=0;
7415 HAVE_MBSLEN=0;
7416 HAVE_FFSL=1;
7417 HAVE_FFSLL=1;
7418 HAVE_MEMCHR=1;
7419 HAVE_DECL_MEMMEM=1;
7420 HAVE_MEMPCPY=1;
7421 HAVE_DECL_MEMRCHR=1;
7422 HAVE_RAWMEMCHR=1;
7423 HAVE_STPCPY=1;
7424 HAVE_STPNCPY=1;
7425 HAVE_STRCHRNUL=1;
7426 HAVE_DECL_STRDUP=1;
7427 HAVE_DECL_STRNDUP=1;
7428 HAVE_DECL_STRNLEN=1;
7429 HAVE_STRPBRK=1;
7430 HAVE_STRSEP=1;
7431 HAVE_STRCASESTR=1;
7432 HAVE_DECL_STRTOK_R=1;
7433 HAVE_DECL_STRERROR_R=1;
7434 HAVE_DECL_STRSIGNAL=1;
7435 HAVE_STRVERSCMP=1;
7436 REPLACE_MEMCHR=0;
7437 REPLACE_MEMMEM=0;
7438 REPLACE_STPNCPY=0;
7439 REPLACE_STRDUP=0;
7440 REPLACE_STRSTR=0;
7441 REPLACE_STRCASESTR=0;
7442 REPLACE_STRCHRNUL=0;
7443 REPLACE_STRERROR=0;
7444 REPLACE_STRERROR_R=0;
7445 REPLACE_STRNCAT=0;
7446 REPLACE_STRNDUP=0;
7447 REPLACE_STRNLEN=0;
7448 REPLACE_STRSIGNAL=0;
7449 REPLACE_STRTOK_R=0;
7450 UNDEFINE_STRTOK_R=0;
7451
7452
7453
7454
7455
7456 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
7457 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
7458 # irrelevant for anonymous mappings.
7459 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
7460 if test "x$ac_cv_func_mmap" = x""yes; then :
7461 gl_have_mmap=yes
7462 else
7463 gl_have_mmap=no
7464 fi
7465
7466
7467 # Try to allow MAP_ANONYMOUS.
7468 gl_have_mmap_anonymous=no
7469 if test $gl_have_mmap = yes; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
7471 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473 /* end confdefs.h. */
7474
7475 #include <sys/mman.h>
7476 #ifdef MAP_ANONYMOUS
7477 I cannot identify this map
7478 #endif
7479
7480 _ACEOF
7481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7482 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
7483 gl_have_mmap_anonymous=yes
7484 fi
7485 rm -f conftest*
7486
7487 if test $gl_have_mmap_anonymous != yes; then
7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489 /* end confdefs.h. */
7490
7491 #include <sys/mman.h>
7492 #ifdef MAP_ANON
7493 I cannot identify this map
7494 #endif
7495
7496 _ACEOF
7497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7498 $EGREP "I cannot identify this map" >/dev/null 2>&1; then :
7499
7500 $as_echo "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
7501
7502 gl_have_mmap_anonymous=yes
7503 fi
7504 rm -f conftest*
7505
7506 fi
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
7508 $as_echo "$gl_have_mmap_anonymous" >&6; }
7509 if test $gl_have_mmap_anonymous = yes; then
7510
7511 $as_echo "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
7512
7513 fi
7514 fi
7515
7516
7517 :
7518
7519
7520
7521
7522
7523
7524 :
7525
7526
7527
7528
7529
7530
7531
7532
7533 if test $HAVE_MEMCHR = 1; then
7534 # Detect platform-specific bugs in some versions of glibc:
7535 # memchr should not dereference anything with length 0
7536 # http://bugzilla.redhat.com/499689
7537 # memchr should not dereference overestimated length after a match
7538 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
7539 # http://sourceware.org/bugzilla/show_bug.cgi?id=10162
7540 # Assume that memchr works on platforms that lack mprotect.
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
7542 $as_echo_n "checking whether memchr works... " >&6; }
7543 if test "${gl_cv_func_memchr_works+set}" = set; then :
7544 $as_echo_n "(cached) " >&6
7545 else
7546 if test "$cross_compiling" = yes; then :
7547 gl_cv_func_memchr_works="guessing no"
7548 else
7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550 /* end confdefs.h. */
7551
7552 #include <string.h>
7553 #if HAVE_SYS_MMAN_H
7554 # include <fcntl.h>
7555 # include <unistd.h>
7556 # include <sys/types.h>
7557 # include <sys/mman.h>
7558 # ifndef MAP_FILE
7559 # define MAP_FILE 0
7560 # endif
7561 #endif
7562
7563 int
7564 main ()
7565 {
7566
7567 int result = 0;
7568 char *fence = NULL;
7569 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
7570 # if HAVE_MAP_ANONYMOUS
7571 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
7572 const int fd = -1;
7573 # else /* !HAVE_MAP_ANONYMOUS */
7574 const int flags = MAP_FILE | MAP_PRIVATE;
7575 int fd = open ("/dev/zero", O_RDONLY, 0666);
7576 if (fd >= 0)
7577 # endif
7578 {
7579 int pagesize = getpagesize ();
7580 char *two_pages =
7581 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
7582 flags, fd, 0);
7583 if (two_pages != (char *)(-1)
7584 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
7585 fence = two_pages + pagesize;
7586 }
7587 #endif
7588 if (fence)
7589 {
7590 if (memchr (fence, 0, 0))
7591 result |= 1;
7592 strcpy (fence - 9, "12345678");
7593 if (memchr (fence - 9, 0, 79) != fence - 1)
7594 result |= 2;
7595 if (memchr (fence - 1, 0, 3) != fence - 1)
7596 result |= 4;
7597 }
7598 return result;
7599
7600 ;
7601 return 0;
7602 }
7603 _ACEOF
7604 if ac_fn_c_try_run "$LINENO"; then :
7605 gl_cv_func_memchr_works=yes
7606 else
7607 gl_cv_func_memchr_works=no
7608 fi
7609 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7610 conftest.$ac_objext conftest.beam conftest.$ac_ext
7611 fi
7612
7613 fi
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
7615 $as_echo "$gl_cv_func_memchr_works" >&6; }
7616 if test "$gl_cv_func_memchr_works" != yes; then
7617 REPLACE_MEMCHR=1
7618 fi
7619 fi
7620
7621
7622 ac_fn_c_check_decl "$LINENO" "memmem" "ac_cv_have_decl_memmem" "$ac_includes_default"
7623 if test "x$ac_cv_have_decl_memmem" = x""yes; then :
7624 ac_have_decl=1
7625 else
7626 ac_have_decl=0
7627 fi
7628
7629 cat >>confdefs.h <<_ACEOF
7630 #define HAVE_DECL_MEMMEM $ac_have_decl
7631 _ACEOF
7632
7633
7634
7635
7636
7637
7638 for ac_func in memmem
7639 do :
7640 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
7641 if test "x$ac_cv_func_memmem" = x""yes; then :
7642 cat >>confdefs.h <<_ACEOF
7643 #define HAVE_MEMMEM 1
7644 _ACEOF
7645
7646 fi
7647 done
7648
7649 if test $ac_cv_func_memmem = yes; then
7650 HAVE_MEMMEM=1
7651 else
7652 HAVE_MEMMEM=0
7653 fi
7654
7655 :
7656
7657
7658
7659
7660
7661 if test $ac_cv_have_decl_memmem = no; then
7662 HAVE_DECL_MEMMEM=0
7663 else
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
7665 $as_echo_n "checking whether memmem works... " >&6; }
7666 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
7667 $as_echo_n "(cached) " >&6
7668 else
7669 if test "$cross_compiling" = yes; then :
7670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671 /* end confdefs.h. */
7672
7673 #ifdef __GNU_LIBRARY__
7674 #include <features.h>
7675 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
7676 || __GLIBC_MINOR__ > 12)) \
7677 || (__GLIBC__ > 2)) \
7678 || defined __UCLIBC__
7679 Lucky user
7680 #endif
7681 #elif defined __CYGWIN__
7682 #include <cygwin/version.h>
7683 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
7684 Lucky user
7685 #endif
7686 #else
7687 Lucky user
7688 #endif
7689
7690 _ACEOF
7691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7692 $EGREP "Lucky user" >/dev/null 2>&1; then :
7693 gl_cv_func_memmem_works_always="guessing yes"
7694 else
7695 gl_cv_func_memmem_works_always="guessing no"
7696 fi
7697 rm -f conftest*
7698
7699
7700 else
7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702 /* end confdefs.h. */
7703
7704 #include <string.h> /* for memmem */
7705 #define P "_EF_BF_BD"
7706 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
7707 #define NEEDLE P P P P P
7708
7709 int
7710 main ()
7711 {
7712
7713 int result = 0;
7714 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
7715 result |= 1;
7716 /* Check for empty needle behavior. */
7717 {
7718 const char *haystack = "AAA";
7719 if (memmem (haystack, 3, NULL, 0) != haystack)
7720 result |= 2;
7721 }
7722 return result;
7723
7724 ;
7725 return 0;
7726 }
7727 _ACEOF
7728 if ac_fn_c_try_run "$LINENO"; then :
7729 gl_cv_func_memmem_works_always=yes
7730 else
7731 gl_cv_func_memmem_works_always=no
7732 fi
7733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7734 conftest.$ac_objext conftest.beam conftest.$ac_ext
7735 fi
7736
7737
7738 fi
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
7740 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
7741 case "$gl_cv_func_memmem_works_always" in
7742 *yes) ;;
7743 *)
7744 REPLACE_MEMMEM=1
7745 ;;
7746 esac
7747 fi
7748 :
7749
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
7751 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
7752 if test "${ac_cv_header_stdbool_h+set}" = set; then :
7753 $as_echo_n "(cached) " >&6
7754 else
7755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756 /* end confdefs.h. */
7757
7758 #include <stdbool.h>
7759 #ifndef bool
7760 "error: bool is not defined"
7761 #endif
7762 #ifndef false
7763 "error: false is not defined"
7764 #endif
7765 #if false
7766 "error: false is not 0"
7767 #endif
7768 #ifndef true
7769 "error: true is not defined"
7770 #endif
7771 #if true != 1
7772 "error: true is not 1"
7773 #endif
7774 #ifndef __bool_true_false_are_defined
7775 "error: __bool_true_false_are_defined is not defined"
7776 #endif
7777
7778 struct s { _Bool s: 1; _Bool t; } s;
7779
7780 char a[true == 1 ? 1 : -1];
7781 char b[false == 0 ? 1 : -1];
7782 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
7783 char d[(bool) 0.5 == true ? 1 : -1];
7784 /* See body of main program for 'e'. */
7785 char f[(_Bool) 0.0 == false ? 1 : -1];
7786 char g[true];
7787 char h[sizeof (_Bool)];
7788 char i[sizeof s.t];
7789 enum { j = false, k = true, l = false * true, m = true * 256 };
7790 /* The following fails for
7791 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
7792 _Bool n[m];
7793 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
7794 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
7795 /* Catch a bug in an HP-UX C compiler. See
7796 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
7797 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
7798 */
7799 _Bool q = true;
7800 _Bool *pq = &q;
7801
7802 int
7803 main ()
7804 {
7805
7806 bool e = &s;
7807 *pq |= q;
7808 *pq |= ! q;
7809 /* Refer to every declared value, to avoid compiler optimizations. */
7810 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
7811 + !m + !n + !o + !p + !q + !pq);
7812
7813 ;
7814 return 0;
7815 }
7816 _ACEOF
7817 if ac_fn_c_try_compile "$LINENO"; then :
7818 ac_cv_header_stdbool_h=yes
7819 else
7820 ac_cv_header_stdbool_h=no
7821 fi
7822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7823 fi
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
7825 $as_echo "$ac_cv_header_stdbool_h" >&6; }
7826 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
7827 if test "x$ac_cv_type__Bool" = x""yes; then :
7828
7829 cat >>confdefs.h <<_ACEOF
7830 #define HAVE__BOOL 1
7831 _ACEOF
7832
7833
7834 fi
7835
7836
7837
7838 REPLACE_NULL=0;
7839 HAVE_WCHAR_T=1;
7840
7841
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
7843 $as_echo_n "checking for wchar_t... " >&6; }
7844 if test "${gt_cv_c_wchar_t+set}" = set; then :
7845 $as_echo_n "(cached) " >&6
7846 else
7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h. */
7849 #include <stddef.h>
7850 wchar_t foo = (wchar_t)'\0';
7851 int
7852 main ()
7853 {
7854
7855 ;
7856 return 0;
7857 }
7858 _ACEOF
7859 if ac_fn_c_try_compile "$LINENO"; then :
7860 gt_cv_c_wchar_t=yes
7861 else
7862 gt_cv_c_wchar_t=no
7863 fi
7864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7865 fi
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
7867 $as_echo "$gt_cv_c_wchar_t" >&6; }
7868 if test $gt_cv_c_wchar_t = yes; then
7869
7870 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
7871
7872 fi
7873
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
7875 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
7876 if test "${ac_cv_c_restrict+set}" = set; then :
7877 $as_echo_n "(cached) " >&6
7878 else
7879 ac_cv_c_restrict=no
7880 # The order here caters to the fact that C++ does not require restrict.
7881 for ac_kw in __restrict __restrict__ _Restrict restrict; do
7882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7883 /* end confdefs.h. */
7884 typedef int * int_ptr;
7885 int foo (int_ptr $ac_kw ip) {
7886 return ip[0];
7887 }
7888 int
7889 main ()
7890 {
7891 int s[1];
7892 int * $ac_kw t = s;
7893 t[0] = 0;
7894 return foo(t)
7895 ;
7896 return 0;
7897 }
7898 _ACEOF
7899 if ac_fn_c_try_compile "$LINENO"; then :
7900 ac_cv_c_restrict=$ac_kw
7901 fi
7902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7903 test "$ac_cv_c_restrict" != no && break
7904 done
7905
7906 fi
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
7908 $as_echo "$ac_cv_c_restrict" >&6; }
7909
7910 case $ac_cv_c_restrict in
7911 restrict) ;;
7912 no) $as_echo "#define restrict /**/" >>confdefs.h
7913 ;;
7914 *) cat >>confdefs.h <<_ACEOF
7915 #define restrict $ac_cv_c_restrict
7916 _ACEOF
7917 ;;
7918 esac
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931 if test $gl_cv_have_include_next = yes; then
7932 gl_cv_next_string_h='<'string.h'>'
7933 else
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
7935 $as_echo_n "checking absolute name of <string.h>... " >&6; }
7936 if test "${gl_cv_next_string_h+set}" = set; then :
7937 $as_echo_n "(cached) " >&6
7938 else
7939
7940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941 /* end confdefs.h. */
7942 #include <string.h>
7943
7944 _ACEOF
7945 case "$host_os" in
7946 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7947 *) gl_absname_cpp="$ac_cpp" ;;
7948 esac
7949
7950 case "$host_os" in
7951 mingw*)
7952 gl_dirsep_regex='[/\\]'
7953 ;;
7954 *)
7955 gl_dirsep_regex='\/'
7956 ;;
7957 esac
7958 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
7959
7960 gl_header_literal_regex=`echo 'string.h' \
7961 | sed -e "$gl_make_literal_regex_sed"`
7962 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
7963 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
7964 s|^/[^/]|//&|
7965 p
7966 q
7967 }'
7968 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
7969 sed -n "$gl_absolute_header_sed"`'"'
7970
7971
7972 fi
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
7974 $as_echo "$gl_cv_next_string_h" >&6; }
7975 fi
7976 NEXT_STRING_H=$gl_cv_next_string_h
7977
7978 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
7979 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
7980 gl_next_as_first_directive='<'string.h'>'
7981 else
7982 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
7983 gl_next_as_first_directive=$gl_cv_next_string_h
7984 fi
7985 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
7986
7987
7988
7989
7990
7991
7992 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
7993 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
7995 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
7996 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
7997 $as_echo_n "(cached) " >&6
7998 else
7999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000 /* end confdefs.h. */
8001 #include <string.h>
8002
8003 int
8004 main ()
8005 {
8006 #undef $gl_func
8007 (void) $gl_func;
8008 ;
8009 return 0;
8010 }
8011 _ACEOF
8012 if ac_fn_c_try_compile "$LINENO"; then :
8013 eval "$as_gl_Symbol=yes"
8014 else
8015 eval "$as_gl_Symbol=no"
8016 fi
8017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8018 fi
8019 eval ac_res=\$$as_gl_Symbol
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8021 $as_echo "$ac_res" >&6; }
8022 eval as_val=\$$as_gl_Symbol
8023 if test "x$as_val" = x""yes; then :
8024 cat >>confdefs.h <<_ACEOF
8025 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
8026 _ACEOF
8027
8028 eval ac_cv_have_decl_$gl_func=yes
8029 fi
8030 done
8031
8032
8033
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
8035 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
8036 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then :
8037 $as_echo_n "(cached) " >&6
8038 else
8039 gl_cv_header_wchar_h_correct_inline=yes
8040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8041 /* end confdefs.h. */
8042
8043 #define wcstod renamed_wcstod
8044 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8045 <wchar.h>.
8046 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8047 included before <wchar.h>. */
8048 #include <stddef.h>
8049 #include <stdio.h>
8050 #include <time.h>
8051 #include <wchar.h>
8052 extern int zero (void);
8053 int main () { return zero(); }
8054
8055 _ACEOF
8056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8057 (eval $ac_compile) 2>&5
8058 ac_status=$?
8059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8060 test $ac_status = 0; }; then
8061 mv conftest.$ac_objext conftest1.$ac_objext
8062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063 /* end confdefs.h. */
8064
8065 #define wcstod renamed_wcstod
8066 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8067 <wchar.h>.
8068 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8069 included before <wchar.h>. */
8070 #include <stddef.h>
8071 #include <stdio.h>
8072 #include <time.h>
8073 #include <wchar.h>
8074 int zero (void) { return 0; }
8075
8076 _ACEOF
8077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8078 (eval $ac_compile) 2>&5
8079 ac_status=$?
8080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8081 test $ac_status = 0; }; then
8082 mv conftest.$ac_objext conftest2.$ac_objext
8083 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
8084 :
8085 else
8086 gl_cv_header_wchar_h_correct_inline=no
8087 fi
8088 fi
8089 fi
8090 rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
8091
8092 fi
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
8094 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
8095 if test $gl_cv_header_wchar_h_correct_inline = no; then
8096 as_fn_error "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
8097 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
8098 C99 mode. You have four options:
8099 - Add the flag -fgnu89-inline to CC and reconfigure, or
8100 - Fix your include files, using parts of
8101 <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
8102 - Use a gcc version older than 4.3, or
8103 - Don't use the flags -std=c99 or -std=gnu99.
8104 Configuration aborted." "$LINENO" 5
8105 fi
8106
8107
8108
8109
8110
8111
8112
8113
8114 :
8115
8116
8117
8118
8119
8120 if test $ac_cv_header_features_h = yes; then
8121 HAVE_FEATURES_H=1
8122 else
8123 HAVE_FEATURES_H=0
8124 fi
8125
8126
8127
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
8129 $as_echo_n "checking for wint_t... " >&6; }
8130 if test "${gt_cv_c_wint_t+set}" = set; then :
8131 $as_echo_n "(cached) " >&6
8132 else
8133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8134 /* end confdefs.h. */
8135
8136 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8137 <wchar.h>.
8138 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
8139 before <wchar.h>. */
8140 #include <stddef.h>
8141 #include <stdio.h>
8142 #include <time.h>
8143 #include <wchar.h>
8144 wint_t foo = (wchar_t)'\0';
8145 int
8146 main ()
8147 {
8148
8149 ;
8150 return 0;
8151 }
8152 _ACEOF
8153 if ac_fn_c_try_compile "$LINENO"; then :
8154 gt_cv_c_wint_t=yes
8155 else
8156 gt_cv_c_wint_t=no
8157 fi
8158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8159 fi
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
8161 $as_echo "$gt_cv_c_wint_t" >&6; }
8162 if test $gt_cv_c_wint_t = yes; then
8163
8164 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
8165
8166 fi
8167
8168
8169 GNULIB_ISWBLANK=0;
8170 GNULIB_WCTYPE=0;
8171 GNULIB_ISWCTYPE=0;
8172 GNULIB_WCTRANS=0;
8173 GNULIB_TOWCTRANS=0;
8174 HAVE_ISWBLANK=1;
8175 HAVE_WCTYPE_T=1;
8176 HAVE_WCTRANS_T=1;
8177 REPLACE_ISWBLANK=0;
8178
8179
8180
8181
8182
8183
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
8185 $as_echo_n "checking for inline... " >&6; }
8186 if test "${ac_cv_c_inline+set}" = set; then :
8187 $as_echo_n "(cached) " >&6
8188 else
8189 ac_cv_c_inline=no
8190 for ac_kw in inline __inline__ __inline; do
8191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8192 /* end confdefs.h. */
8193 #ifndef __cplusplus
8194 typedef int foo_t;
8195 static $ac_kw foo_t static_foo () {return 0; }
8196 $ac_kw foo_t foo () {return 0; }
8197 #endif
8198
8199 _ACEOF
8200 if ac_fn_c_try_compile "$LINENO"; then :
8201 ac_cv_c_inline=$ac_kw
8202 fi
8203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8204 test "$ac_cv_c_inline" != no && break
8205 done
8206
8207 fi
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
8209 $as_echo "$ac_cv_c_inline" >&6; }
8210
8211 case $ac_cv_c_inline in
8212 inline | yes) ;;
8213 *)
8214 case $ac_cv_c_inline in
8215 no) ac_val=;;
8216 *) ac_val=$ac_cv_c_inline;;
8217 esac
8218 cat >>confdefs.h <<_ACEOF
8219 #ifndef __cplusplus
8220 #define inline $ac_val
8221 #endif
8222 _ACEOF
8223 ;;
8224 esac
8225
8226
8227 if false; then
8228 GL_COND_LIBTOOL_TRUE=
8229 GL_COND_LIBTOOL_FALSE='#'
8230 else
8231 GL_COND_LIBTOOL_TRUE='#'
8232 GL_COND_LIBTOOL_FALSE=
8233 fi
8234
8235 gl_cond_libtool=false
8236 gl_libdeps=
8237 gl_ltlibdeps=
8238 gl_m4_base='import/m4'
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248 gl_source_base='import'
8249
8250
8251 if test $ac_cv_func_alloca_works = no; then
8252 :
8253 fi
8254
8255 # Define an additional variable used in the Makefile substitution.
8256 if test $ac_cv_working_alloca_h = yes; then
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
8258 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
8259 if test "${gl_cv_rpl_alloca+set}" = set; then :
8260 $as_echo_n "(cached) " >&6
8261 else
8262
8263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8264 /* end confdefs.h. */
8265
8266 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
8267 Need own alloca
8268 #endif
8269
8270 _ACEOF
8271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8272 $EGREP "Need own alloca" >/dev/null 2>&1; then :
8273 gl_cv_rpl_alloca=yes
8274 else
8275 gl_cv_rpl_alloca=no
8276 fi
8277 rm -f conftest*
8278
8279
8280 fi
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
8282 $as_echo "$gl_cv_rpl_alloca" >&6; }
8283 if test $gl_cv_rpl_alloca = yes; then
8284
8285 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
8286
8287 ALLOCA_H=alloca.h
8288 else
8289 ALLOCA_H=
8290 fi
8291 else
8292 ALLOCA_H=alloca.h
8293 fi
8294
8295 if test -n "$ALLOCA_H"; then
8296 GL_GENERATE_ALLOCA_H_TRUE=
8297 GL_GENERATE_ALLOCA_H_FALSE='#'
8298 else
8299 GL_GENERATE_ALLOCA_H_TRUE='#'
8300 GL_GENERATE_ALLOCA_H_FALSE=
8301 fi
8302
8303
8304
8305 if test "x$datarootdir" = x; then
8306 datarootdir='${datadir}'
8307
8308 fi
8309 if test "x$docdir" = x; then
8310 docdir='${datarootdir}/doc/${PACKAGE}'
8311
8312 fi
8313 if test "x$htmldir" = x; then
8314 htmldir='${docdir}'
8315
8316 fi
8317 if test "x$dvidir" = x; then
8318 dvidir='${docdir}'
8319
8320 fi
8321 if test "x$pdfdir" = x; then
8322 pdfdir='${docdir}'
8323
8324 fi
8325 if test "x$psdir" = x; then
8326 psdir='${docdir}'
8327
8328 fi
8329 if test "x$lispdir" = x; then
8330 lispdir='${datarootdir}/emacs/site-lisp'
8331
8332 fi
8333 if test "x$localedir" = x; then
8334 localedir='${datarootdir}/locale'
8335
8336 fi
8337
8338 pkglibexecdir='${libexecdir}/${PACKAGE}'
8339
8340
8341
8342
8343
8344
8345
8346 FNMATCH_H=
8347 gl_fnmatch_required_lowercase=`
8348 echo $gl_fnmatch_required | LC_ALL=C tr '[A-Z]' '[a-z]'
8349 `
8350 gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working $gl_fnmatch_required fnmatch" >&5
8352 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
8353 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then :
8354 $as_echo_n "(cached) " >&6
8355 else
8356 if test $gl_fnmatch_required = GNU; then
8357 gl_fnmatch_gnu_start=
8358 gl_fnmatch_gnu_end=
8359 else
8360 gl_fnmatch_gnu_start='#if 0'
8361 gl_fnmatch_gnu_end='#endif'
8362 fi
8363 if test "$cross_compiling" = yes; then :
8364 eval "$gl_fnmatch_cache_var=\"guessing no\""
8365 else
8366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8367 /* end confdefs.h. */
8368 #include <fnmatch.h>
8369 static int
8370 y (char const *pattern, char const *string, int flags)
8371 {
8372 return fnmatch (pattern, string, flags) == 0;
8373 }
8374 static int
8375 n (char const *pattern, char const *string, int flags)
8376 {
8377 return fnmatch (pattern, string, flags) == FNM_NOMATCH;
8378 }
8379
8380 int
8381 main ()
8382 {
8383 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
8384 char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
8385 static char const A_1[] = { 'A' - 1, 0 };
8386 static char const A01[] = { 'A' + 1, 0 };
8387 static char const a_1[] = { 'a' - 1, 0 };
8388 static char const a01[] = { 'a' + 1, 0 };
8389 static char const bs_1[] = { '\\\\' - 1, 0 };
8390 static char const bs01[] = { '\\\\' + 1, 0 };
8391 int result = 0;
8392 if (!n ("a*", "", 0))
8393 return 1;
8394 if (!y ("a*", "abc", 0))
8395 return 1;
8396 if (!y ("[/b", "[/b", 0)) /*"]]"*/ /* glibc Bugzilla bug 12378 */
8397 return 1;
8398 if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
8399 return 2;
8400 if (!y ("a\\\\bc", "abc", 0))
8401 return 3;
8402 if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
8403 return 3;
8404 if (!y ("*x", ".x", 0))
8405 return 4;
8406 if (!n ("*x", ".x", FNM_PERIOD))
8407 return 4;
8408 if (!y (Apat, "\\\\", 0))
8409 return 5;
8410 if (!y (Apat, "A", 0))
8411 return 5;
8412 if (!y (apat, "\\\\", 0))
8413 return 5;
8414 if (!y (apat, "a", 0))
8415 return 5;
8416 if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
8417 return 5;
8418 if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
8419 return 5;
8420 if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
8421 return 5;
8422 if (!(y (apat, a01, 0) == ('a' < '\\\\')))
8423 return 5;
8424 if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
8425 return 5;
8426 if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
8427 return 5;
8428 if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
8429 return 5;
8430 if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
8431 return 5;
8432 $gl_fnmatch_gnu_start
8433 if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
8434 result |= 8;
8435 if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
8436 result |= 16;
8437 if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
8438 result |= 32;
8439 if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
8440 result |= 64;
8441 if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
8442 result |= 64;
8443 if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
8444 result |= 64;
8445 $gl_fnmatch_gnu_end
8446 return result;
8447
8448 ;
8449 return 0;
8450 }
8451 _ACEOF
8452 if ac_fn_c_try_run "$LINENO"; then :
8453 eval "$gl_fnmatch_cache_var=yes"
8454 else
8455 eval "$gl_fnmatch_cache_var=no"
8456 fi
8457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8458 conftest.$ac_objext conftest.beam conftest.$ac_ext
8459 fi
8460
8461
8462 fi
8463 eval ac_res=\$$gl_fnmatch_cache_var
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8465 $as_echo "$ac_res" >&6; }
8466 eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
8467 if test "$gl_fnmatch_result" = yes; then
8468 rm -f "$gl_source_base/fnmatch.h"
8469 else
8470 FNMATCH_H=fnmatch.h
8471 fi
8472
8473 if test -n "$FNMATCH_H"; then
8474 GL_GENERATE_FNMATCH_H_TRUE=
8475 GL_GENERATE_FNMATCH_H_FALSE='#'
8476 else
8477 GL_GENERATE_FNMATCH_H_TRUE='#'
8478 GL_GENERATE_FNMATCH_H_FALSE=
8479 fi
8480
8481
8482 if test -n "$FNMATCH_H"; then
8483
8484
8485
8486
8487
8488
8489
8490
8491 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
8492
8493
8494
8495 cat >>confdefs.h <<_ACEOF
8496 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
8497 _ACEOF
8498
8499
8500 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
8501 "
8502 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
8503 ac_have_decl=1
8504 else
8505 ac_have_decl=0
8506 fi
8507
8508 cat >>confdefs.h <<_ACEOF
8509 #define HAVE_DECL_ISBLANK $ac_have_decl
8510 _ACEOF
8511
8512
8513 :
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541 :
8542
8543
8544
8545
8546
8547
8548 fi
8549
8550
8551
8552
8553
8554 if test -n "$FNMATCH_H"; then
8555
8556
8557
8558
8559
8560
8561
8562
8563 gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
8564
8565
8566
8567 cat >>confdefs.h <<_ACEOF
8568 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
8569 _ACEOF
8570
8571
8572 ac_fn_c_check_decl "$LINENO" "isblank" "ac_cv_have_decl_isblank" "#include <ctype.h>
8573 "
8574 if test "x$ac_cv_have_decl_isblank" = x""yes; then :
8575 ac_have_decl=1
8576 else
8577 ac_have_decl=0
8578 fi
8579
8580 cat >>confdefs.h <<_ACEOF
8581 #define HAVE_DECL_ISBLANK $ac_have_decl
8582 _ACEOF
8583
8584
8585 :
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613 :
8614
8615
8616
8617
8618
8619
8620 fi
8621
8622
8623
8624
8625
8626 PRIPTR_PREFIX=
8627 if test -n "$STDINT_H"; then
8628 PRIPTR_PREFIX='"l"'
8629 else
8630 for glpfx in '' l ll I64; do
8631 case $glpfx in
8632 '') gltype1='int';;
8633 l) gltype1='long int';;
8634 ll) gltype1='long long int';;
8635 I64) gltype1='__int64';;
8636 esac
8637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8638 /* end confdefs.h. */
8639 #include <stdint.h>
8640 extern intptr_t foo;
8641 extern $gltype1 foo;
8642 int
8643 main ()
8644 {
8645
8646 ;
8647 return 0;
8648 }
8649 _ACEOF
8650 if ac_fn_c_try_compile "$LINENO"; then :
8651 PRIPTR_PREFIX='"'$glpfx'"'
8652 fi
8653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8654 test -n "$PRIPTR_PREFIX" && break
8655 done
8656 fi
8657
8658
8659
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT32_MAX < INTMAX_MAX" >&5
8661 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
8662 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then :
8663 $as_echo_n "(cached) " >&6
8664 else
8665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8666 /* end confdefs.h. */
8667 /* Work also in C++ mode. */
8668 #define __STDC_LIMIT_MACROS 1
8669
8670 /* Work if build is not clean. */
8671 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
8672
8673 #include <limits.h>
8674 #if HAVE_STDINT_H
8675 #include <stdint.h>
8676 #endif
8677
8678 #if defined INT32_MAX && defined INTMAX_MAX
8679 #define CONDITION (INT32_MAX < INTMAX_MAX)
8680 #elif HAVE_LONG_LONG_INT
8681 #define CONDITION (sizeof (int) < sizeof (long long int))
8682 #else
8683 #define CONDITION 0
8684 #endif
8685 int test[CONDITION ? 1 : -1];
8686 int
8687 main ()
8688 {
8689
8690 ;
8691 return 0;
8692 }
8693 _ACEOF
8694 if ac_fn_c_try_compile "$LINENO"; then :
8695 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
8696 else
8697 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
8698 fi
8699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8700 fi
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
8702 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
8703 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
8704 INT32_MAX_LT_INTMAX_MAX=1;
8705 else
8706 INT32_MAX_LT_INTMAX_MAX=0;
8707 fi
8708
8709
8710 if test $APPLE_UNIVERSAL_BUILD = 0; then
8711
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether INT64_MAX == LONG_MAX" >&5
8713 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
8714 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then :
8715 $as_echo_n "(cached) " >&6
8716 else
8717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8718 /* end confdefs.h. */
8719 /* Work also in C++ mode. */
8720 #define __STDC_LIMIT_MACROS 1
8721
8722 /* Work if build is not clean. */
8723 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
8724
8725 #include <limits.h>
8726 #if HAVE_STDINT_H
8727 #include <stdint.h>
8728 #endif
8729
8730 #if defined INT64_MAX
8731 #define CONDITION (INT64_MAX == LONG_MAX)
8732 #elif HAVE_LONG_LONG_INT
8733 #define CONDITION (sizeof (long long int) == sizeof (long int))
8734 #else
8735 #define CONDITION 0
8736 #endif
8737 int test[CONDITION ? 1 : -1];
8738 int
8739 main ()
8740 {
8741
8742 ;
8743 return 0;
8744 }
8745 _ACEOF
8746 if ac_fn_c_try_compile "$LINENO"; then :
8747 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
8748 else
8749 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
8750 fi
8751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8752 fi
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
8754 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
8755 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
8756 INT64_MAX_EQ_LONG_MAX=1;
8757 else
8758 INT64_MAX_EQ_LONG_MAX=0;
8759 fi
8760
8761
8762 else
8763 INT64_MAX_EQ_LONG_MAX=-1
8764 fi
8765
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT32_MAX < UINTMAX_MAX" >&5
8767 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
8768 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then :
8769 $as_echo_n "(cached) " >&6
8770 else
8771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8772 /* end confdefs.h. */
8773 /* Work also in C++ mode. */
8774 #define __STDC_LIMIT_MACROS 1
8775
8776 /* Work if build is not clean. */
8777 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
8778
8779 #include <limits.h>
8780 #if HAVE_STDINT_H
8781 #include <stdint.h>
8782 #endif
8783
8784 #if defined UINT32_MAX && defined UINTMAX_MAX
8785 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
8786 #elif HAVE_LONG_LONG_INT
8787 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
8788 #else
8789 #define CONDITION 0
8790 #endif
8791 int test[CONDITION ? 1 : -1];
8792 int
8793 main ()
8794 {
8795
8796 ;
8797 return 0;
8798 }
8799 _ACEOF
8800 if ac_fn_c_try_compile "$LINENO"; then :
8801 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
8802 else
8803 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
8804 fi
8805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8806 fi
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
8808 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
8809 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
8810 UINT32_MAX_LT_UINTMAX_MAX=1;
8811 else
8812 UINT32_MAX_LT_UINTMAX_MAX=0;
8813 fi
8814
8815
8816 if test $APPLE_UNIVERSAL_BUILD = 0; then
8817
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UINT64_MAX == ULONG_MAX" >&5
8819 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
8820 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then :
8821 $as_echo_n "(cached) " >&6
8822 else
8823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8824 /* end confdefs.h. */
8825 /* Work also in C++ mode. */
8826 #define __STDC_LIMIT_MACROS 1
8827
8828 /* Work if build is not clean. */
8829 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
8830
8831 #include <limits.h>
8832 #if HAVE_STDINT_H
8833 #include <stdint.h>
8834 #endif
8835
8836 #if defined UINT64_MAX
8837 #define CONDITION (UINT64_MAX == ULONG_MAX)
8838 #elif HAVE_LONG_LONG_INT
8839 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
8840 #else
8841 #define CONDITION 0
8842 #endif
8843 int test[CONDITION ? 1 : -1];
8844 int
8845 main ()
8846 {
8847
8848 ;
8849 return 0;
8850 }
8851 _ACEOF
8852 if ac_fn_c_try_compile "$LINENO"; then :
8853 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
8854 else
8855 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
8856 fi
8857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8858 fi
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
8860 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
8861 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
8862 UINT64_MAX_EQ_ULONG_MAX=1;
8863 else
8864 UINT64_MAX_EQ_ULONG_MAX=0;
8865 fi
8866
8867
8868 else
8869 UINT64_MAX_EQ_ULONG_MAX=-1
8870 fi
8871
8872
8873
8874
8875
8876
8877
8878 :
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899 :
8900
8901
8902
8903
8904
8905
8906 :
8907
8908
8909
8910
8911
8912 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
8913
8914
8915
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
8917 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
8918 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
8919 $as_echo_n "(cached) " >&6
8920 else
8921
8922 case "$host_os" in
8923 # Guess no on AIX and OSF/1.
8924 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
8925 # Guess yes otherwise.
8926 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
8927 esac
8928 if test $LOCALE_JA != none; then
8929 if test "$cross_compiling" = yes; then :
8930 :
8931 else
8932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8933 /* end confdefs.h. */
8934
8935 #include <locale.h>
8936 #include <string.h>
8937 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
8938 <wchar.h>.
8939 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
8940 included before <wchar.h>. */
8941 #include <stddef.h>
8942 #include <stdio.h>
8943 #include <time.h>
8944 #include <wchar.h>
8945 int main ()
8946 {
8947 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
8948 {
8949 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
8950 mbstate_t state;
8951 wchar_t wc;
8952
8953 memset (&state, '\0', sizeof (mbstate_t));
8954 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
8955 if (mbsinit (&state))
8956 return 1;
8957 }
8958 return 0;
8959 }
8960 _ACEOF
8961 if ac_fn_c_try_run "$LINENO"; then :
8962 gl_cv_func_mbrtowc_incomplete_state=yes
8963 else
8964 gl_cv_func_mbrtowc_incomplete_state=no
8965 fi
8966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8967 conftest.$ac_objext conftest.beam conftest.$ac_ext
8968 fi
8969
8970 fi
8971
8972 fi
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
8974 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
8975
8976
8977
8978
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
8980 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
8981 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
8982 $as_echo_n "(cached) " >&6
8983 else
8984
8985 case "$host_os" in
8986 # Guess no on Solaris 8.
8987 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
8988 # Guess yes otherwise.
8989 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
8990 esac
8991 if test $LOCALE_ZH_CN != none; then
8992 if test "$cross_compiling" = yes; then :
8993 :
8994 else
8995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996 /* end confdefs.h. */
8997
8998 #include <locale.h>
8999 #include <stdlib.h>
9000 #include <string.h>
9001 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9002 <wchar.h>.
9003 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9004 included before <wchar.h>. */
9005 #include <stddef.h>
9006 #include <stdio.h>
9007 #include <time.h>
9008 #include <wchar.h>
9009 int main ()
9010 {
9011 /* This fails on Solaris 8:
9012 mbrtowc returns 2, and sets wc to 0x00F0.
9013 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
9014 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
9015 {
9016 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
9017 mbstate_t state;
9018 wchar_t wc;
9019
9020 memset (&state, '\0', sizeof (mbstate_t));
9021 if (mbrtowc (&wc, input + 3, 6, &state) != 4
9022 && mbtowc (&wc, input + 3, 6) == 4)
9023 return 1;
9024 }
9025 return 0;
9026 }
9027 _ACEOF
9028 if ac_fn_c_try_run "$LINENO"; then :
9029 gl_cv_func_mbrtowc_sanitycheck=yes
9030 else
9031 gl_cv_func_mbrtowc_sanitycheck=no
9032 fi
9033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9034 conftest.$ac_objext conftest.beam conftest.$ac_ext
9035 fi
9036
9037 fi
9038
9039 fi
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
9041 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
9042
9043 REPLACE_MBSTATE_T=0
9044 case "$gl_cv_func_mbrtowc_incomplete_state" in
9045 *yes) ;;
9046 *) REPLACE_MBSTATE_T=1 ;;
9047 esac
9048 case "$gl_cv_func_mbrtowc_sanitycheck" in
9049 *yes) ;;
9050 *) REPLACE_MBSTATE_T=1 ;;
9051 esac
9052 else
9053 REPLACE_MBSTATE_T=1
9054 fi
9055
9056
9057
9058 :
9059
9060
9061
9062
9063
9064 if test $ac_cv_func_mbrtowc = no; then
9065 HAVE_MBRTOWC=0
9066 ac_fn_c_check_decl "$LINENO" "mbrtowc" "ac_cv_have_decl_mbrtowc" "
9067 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9068 <wchar.h>.
9069 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9070 included before <wchar.h>. */
9071 #include <stddef.h>
9072 #include <stdio.h>
9073 #include <time.h>
9074 #include <wchar.h>
9075
9076 "
9077 if test "x$ac_cv_have_decl_mbrtowc" = x""yes; then :
9078 ac_have_decl=1
9079 else
9080 ac_have_decl=0
9081 fi
9082
9083 cat >>confdefs.h <<_ACEOF
9084 #define HAVE_DECL_MBRTOWC $ac_have_decl
9085 _ACEOF
9086
9087 if test $ac_cv_have_decl_mbrtowc = yes; then
9088 REPLACE_MBRTOWC=1
9089 fi
9090 else
9091 if test $REPLACE_MBSTATE_T = 1; then
9092 REPLACE_MBRTOWC=1
9093 else
9094
9095
9096
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL pwc argument" >&5
9098 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
9099 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then :
9100 $as_echo_n "(cached) " >&6
9101 else
9102
9103 case "$host_os" in
9104 # Guess no on Solaris.
9105 solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
9106 # Guess yes otherwise.
9107 *) gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
9108 esac
9109 if test $LOCALE_FR_UTF8 != none; then
9110 if test "$cross_compiling" = yes; then :
9111 :
9112 else
9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114 /* end confdefs.h. */
9115
9116 #include <locale.h>
9117 #include <stdlib.h>
9118 #include <string.h>
9119 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9120 <wchar.h>.
9121 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9122 included before <wchar.h>. */
9123 #include <stddef.h>
9124 #include <stdio.h>
9125 #include <time.h>
9126 #include <wchar.h>
9127 int main ()
9128 {
9129 int result = 0;
9130
9131 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
9132 {
9133 char input[] = "\303\237er";
9134 mbstate_t state;
9135 wchar_t wc;
9136 size_t ret;
9137
9138 memset (&state, '\0', sizeof (mbstate_t));
9139 wc = (wchar_t) 0xBADFACE;
9140 ret = mbrtowc (&wc, input, 5, &state);
9141 if (ret != 2)
9142 result |= 1;
9143 if (!mbsinit (&state))
9144 result |= 2;
9145
9146 memset (&state, '\0', sizeof (mbstate_t));
9147 ret = mbrtowc (NULL, input, 5, &state);
9148 if (ret != 2) /* Solaris 7 fails here: ret is -1. */
9149 result |= 4;
9150 if (!mbsinit (&state))
9151 result |= 8;
9152 }
9153 return result;
9154 }
9155 _ACEOF
9156 if ac_fn_c_try_run "$LINENO"; then :
9157 gl_cv_func_mbrtowc_null_arg1=yes
9158 else
9159 gl_cv_func_mbrtowc_null_arg1=no
9160 fi
9161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9162 conftest.$ac_objext conftest.beam conftest.$ac_ext
9163 fi
9164
9165 fi
9166
9167 fi
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg1" >&5
9169 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
9170
9171
9172
9173
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles a NULL string argument" >&5
9175 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
9176 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then :
9177 $as_echo_n "(cached) " >&6
9178 else
9179
9180 case "$host_os" in
9181 # Guess no on OSF/1.
9182 osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
9183 # Guess yes otherwise.
9184 *) gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
9185 esac
9186 if test $LOCALE_FR_UTF8 != none; then
9187 if test "$cross_compiling" = yes; then :
9188 :
9189 else
9190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191 /* end confdefs.h. */
9192
9193 #include <locale.h>
9194 #include <string.h>
9195 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9196 <wchar.h>.
9197 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9198 included before <wchar.h>. */
9199 #include <stddef.h>
9200 #include <stdio.h>
9201 #include <time.h>
9202 #include <wchar.h>
9203 int main ()
9204 {
9205 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
9206 {
9207 mbstate_t state;
9208 wchar_t wc;
9209 int ret;
9210
9211 memset (&state, '\0', sizeof (mbstate_t));
9212 wc = (wchar_t) 0xBADFACE;
9213 mbrtowc (&wc, NULL, 5, &state);
9214 /* Check that wc was not modified. */
9215 if (wc != (wchar_t) 0xBADFACE)
9216 return 1;
9217 }
9218 return 0;
9219 }
9220 _ACEOF
9221 if ac_fn_c_try_run "$LINENO"; then :
9222 gl_cv_func_mbrtowc_null_arg2=yes
9223 else
9224 gl_cv_func_mbrtowc_null_arg2=no
9225 fi
9226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9227 conftest.$ac_objext conftest.beam conftest.$ac_ext
9228 fi
9229
9230 fi
9231
9232 fi
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_null_arg2" >&5
9234 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
9235
9236
9237
9238
9239
9240
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc has a correct return value" >&5
9242 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
9243 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then :
9244 $as_echo_n "(cached) " >&6
9245 else
9246
9247 case "$host_os" in
9248 # Guess no on HP-UX, Solaris, native Windows.
9249 hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
9250 # Guess yes otherwise.
9251 *) gl_cv_func_mbrtowc_retval="guessing yes" ;;
9252 esac
9253 if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
9254 || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
9255 if test "$cross_compiling" = yes; then :
9256 :
9257 else
9258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9259 /* end confdefs.h. */
9260
9261 #include <locale.h>
9262 #include <string.h>
9263 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9264 <wchar.h>.
9265 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9266 included before <wchar.h>. */
9267 #include <stddef.h>
9268 #include <stdio.h>
9269 #include <time.h>
9270 #include <wchar.h>
9271 int main ()
9272 {
9273 int result = 0;
9274 int found_some_locale = 0;
9275 /* This fails on Solaris. */
9276 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
9277 {
9278 char input[] = "B\303\274\303\237er"; /* "Büßer" */
9279 mbstate_t state;
9280 wchar_t wc;
9281
9282 memset (&state, '\0', sizeof (mbstate_t));
9283 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
9284 {
9285 input[1] = '\0';
9286 if (mbrtowc (&wc, input + 2, 5, &state) != 1)
9287 result |= 1;
9288 }
9289 found_some_locale = 1;
9290 }
9291 /* This fails on HP-UX 11.11. */
9292 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
9293 {
9294 char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
9295 mbstate_t state;
9296 wchar_t wc;
9297
9298 memset (&state, '\0', sizeof (mbstate_t));
9299 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
9300 {
9301 input[1] = '\0';
9302 if (mbrtowc (&wc, input + 2, 5, &state) != 2)
9303 result |= 2;
9304 }
9305 found_some_locale = 1;
9306 }
9307 /* This fails on native Windows. */
9308 if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
9309 {
9310 char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
9311 mbstate_t state;
9312 wchar_t wc;
9313
9314 memset (&state, '\0', sizeof (mbstate_t));
9315 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
9316 {
9317 input[3] = '\0';
9318 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
9319 result |= 4;
9320 }
9321 found_some_locale = 1;
9322 }
9323 if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
9324 {
9325 char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
9326 mbstate_t state;
9327 wchar_t wc;
9328
9329 memset (&state, '\0', sizeof (mbstate_t));
9330 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
9331 {
9332 input[3] = '\0';
9333 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
9334 result |= 8;
9335 }
9336 found_some_locale = 1;
9337 }
9338 if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
9339 {
9340 char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
9341 mbstate_t state;
9342 wchar_t wc;
9343
9344 memset (&state, '\0', sizeof (mbstate_t));
9345 if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
9346 {
9347 input[3] = '\0';
9348 if (mbrtowc (&wc, input + 4, 4, &state) != 1)
9349 result |= 16;
9350 }
9351 found_some_locale = 1;
9352 }
9353 return (found_some_locale ? result : 77);
9354 }
9355 _ACEOF
9356 if ac_fn_c_try_run "$LINENO"; then :
9357 gl_cv_func_mbrtowc_retval=yes
9358 else
9359 if test $? != 77; then
9360 gl_cv_func_mbrtowc_retval=no
9361 fi
9362
9363 fi
9364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9365 conftest.$ac_objext conftest.beam conftest.$ac_ext
9366 fi
9367
9368 fi
9369
9370 fi
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_retval" >&5
9372 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
9373
9374
9375
9376
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
9378 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
9379 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then :
9380 $as_echo_n "(cached) " >&6
9381 else
9382
9383 case "$host_os" in
9384 # Guess no on Solaris 8 and 9.
9385 solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
9386 # Guess yes otherwise.
9387 *) gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
9388 esac
9389 if test $LOCALE_ZH_CN != none; then
9390 if test "$cross_compiling" = yes; then :
9391 :
9392 else
9393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394 /* end confdefs.h. */
9395
9396 #include <locale.h>
9397 #include <string.h>
9398 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9399 <wchar.h>.
9400 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9401 included before <wchar.h>. */
9402 #include <stddef.h>
9403 #include <stdio.h>
9404 #include <time.h>
9405 #include <wchar.h>
9406 int main ()
9407 {
9408 /* This fails on Solaris 8 and 9. */
9409 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
9410 {
9411 mbstate_t state;
9412 wchar_t wc;
9413
9414 memset (&state, '\0', sizeof (mbstate_t));
9415 if (mbrtowc (&wc, "", 1, &state) != 0)
9416 return 1;
9417 }
9418 return 0;
9419 }
9420 _ACEOF
9421 if ac_fn_c_try_run "$LINENO"; then :
9422 gl_cv_func_mbrtowc_nul_retval=yes
9423 else
9424 gl_cv_func_mbrtowc_nul_retval=no
9425 fi
9426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9427 conftest.$ac_objext conftest.beam conftest.$ac_ext
9428 fi
9429
9430 fi
9431
9432 fi
9433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_nul_retval" >&5
9434 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
9435
9436 case "$gl_cv_func_mbrtowc_null_arg1" in
9437 *yes) ;;
9438 *)
9439 $as_echo "#define MBRTOWC_NULL_ARG1_BUG 1" >>confdefs.h
9440
9441 REPLACE_MBRTOWC=1
9442 ;;
9443 esac
9444 case "$gl_cv_func_mbrtowc_null_arg2" in
9445 *yes) ;;
9446 *)
9447 $as_echo "#define MBRTOWC_NULL_ARG2_BUG 1" >>confdefs.h
9448
9449 REPLACE_MBRTOWC=1
9450 ;;
9451 esac
9452 case "$gl_cv_func_mbrtowc_retval" in
9453 *yes) ;;
9454 *)
9455 $as_echo "#define MBRTOWC_RETVAL_BUG 1" >>confdefs.h
9456
9457 REPLACE_MBRTOWC=1
9458 ;;
9459 esac
9460 case "$gl_cv_func_mbrtowc_nul_retval" in
9461 *yes) ;;
9462 *)
9463 $as_echo "#define MBRTOWC_NUL_RETVAL_BUG 1" >>confdefs.h
9464
9465 REPLACE_MBRTOWC=1
9466 ;;
9467 esac
9468 fi
9469 fi
9470
9471 if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
9472
9473
9474
9475
9476
9477
9478
9479
9480 gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
9481
9482
9483 :
9484
9485 fi
9486
9487
9488
9489
9490
9491 GNULIB_MBRTOWC=1
9492
9493
9494
9495
9496
9497 $as_echo "#define GNULIB_TEST_MBRTOWC 1" >>confdefs.h
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511 :
9512
9513
9514
9515
9516
9517
9518 :
9519
9520
9521
9522
9523
9524 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
9525
9526
9527
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
9529 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
9530 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
9531 $as_echo_n "(cached) " >&6
9532 else
9533
9534 case "$host_os" in
9535 # Guess no on AIX and OSF/1.
9536 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
9537 # Guess yes otherwise.
9538 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
9539 esac
9540 if test $LOCALE_JA != none; then
9541 if test "$cross_compiling" = yes; then :
9542 :
9543 else
9544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9545 /* end confdefs.h. */
9546
9547 #include <locale.h>
9548 #include <string.h>
9549 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9550 <wchar.h>.
9551 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9552 included before <wchar.h>. */
9553 #include <stddef.h>
9554 #include <stdio.h>
9555 #include <time.h>
9556 #include <wchar.h>
9557 int main ()
9558 {
9559 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
9560 {
9561 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
9562 mbstate_t state;
9563 wchar_t wc;
9564
9565 memset (&state, '\0', sizeof (mbstate_t));
9566 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
9567 if (mbsinit (&state))
9568 return 1;
9569 }
9570 return 0;
9571 }
9572 _ACEOF
9573 if ac_fn_c_try_run "$LINENO"; then :
9574 gl_cv_func_mbrtowc_incomplete_state=yes
9575 else
9576 gl_cv_func_mbrtowc_incomplete_state=no
9577 fi
9578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9579 conftest.$ac_objext conftest.beam conftest.$ac_ext
9580 fi
9581
9582 fi
9583
9584 fi
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
9586 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
9587
9588
9589
9590
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
9592 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
9593 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
9594 $as_echo_n "(cached) " >&6
9595 else
9596
9597 case "$host_os" in
9598 # Guess no on Solaris 8.
9599 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
9600 # Guess yes otherwise.
9601 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
9602 esac
9603 if test $LOCALE_ZH_CN != none; then
9604 if test "$cross_compiling" = yes; then :
9605 :
9606 else
9607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9608 /* end confdefs.h. */
9609
9610 #include <locale.h>
9611 #include <stdlib.h>
9612 #include <string.h>
9613 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9614 <wchar.h>.
9615 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9616 included before <wchar.h>. */
9617 #include <stddef.h>
9618 #include <stdio.h>
9619 #include <time.h>
9620 #include <wchar.h>
9621 int main ()
9622 {
9623 /* This fails on Solaris 8:
9624 mbrtowc returns 2, and sets wc to 0x00F0.
9625 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
9626 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
9627 {
9628 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
9629 mbstate_t state;
9630 wchar_t wc;
9631
9632 memset (&state, '\0', sizeof (mbstate_t));
9633 if (mbrtowc (&wc, input + 3, 6, &state) != 4
9634 && mbtowc (&wc, input + 3, 6) == 4)
9635 return 1;
9636 }
9637 return 0;
9638 }
9639 _ACEOF
9640 if ac_fn_c_try_run "$LINENO"; then :
9641 gl_cv_func_mbrtowc_sanitycheck=yes
9642 else
9643 gl_cv_func_mbrtowc_sanitycheck=no
9644 fi
9645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9646 conftest.$ac_objext conftest.beam conftest.$ac_ext
9647 fi
9648
9649 fi
9650
9651 fi
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
9653 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
9654
9655 REPLACE_MBSTATE_T=0
9656 case "$gl_cv_func_mbrtowc_incomplete_state" in
9657 *yes) ;;
9658 *) REPLACE_MBSTATE_T=1 ;;
9659 esac
9660 case "$gl_cv_func_mbrtowc_sanitycheck" in
9661 *yes) ;;
9662 *) REPLACE_MBSTATE_T=1 ;;
9663 esac
9664 else
9665 REPLACE_MBSTATE_T=1
9666 fi
9667
9668
9669
9670 :
9671
9672
9673
9674
9675
9676 if test $ac_cv_func_mbsinit = no; then
9677 HAVE_MBSINIT=0
9678 ac_fn_c_check_decl "$LINENO" "mbsinit" "ac_cv_have_decl_mbsinit" "
9679 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9680 <wchar.h>.
9681 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9682 included before <wchar.h>. */
9683 #include <stddef.h>
9684 #include <stdio.h>
9685 #include <time.h>
9686 #include <wchar.h>
9687
9688 "
9689 if test "x$ac_cv_have_decl_mbsinit" = x""yes; then :
9690 ac_have_decl=1
9691 else
9692 ac_have_decl=0
9693 fi
9694
9695 cat >>confdefs.h <<_ACEOF
9696 #define HAVE_DECL_MBSINIT $ac_have_decl
9697 _ACEOF
9698
9699 if test $ac_cv_have_decl_mbsinit = yes; then
9700 REPLACE_MBSINIT=1
9701 fi
9702 else
9703 if test $REPLACE_MBSTATE_T = 1; then
9704 REPLACE_MBSINIT=1
9705 else
9706 case "$host_os" in
9707 mingw*) REPLACE_MBSINIT=1 ;;
9708 esac
9709 fi
9710 fi
9711
9712 if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
9713
9714
9715
9716
9717
9718
9719
9720
9721 gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
9722
9723
9724 :
9725
9726 fi
9727
9728
9729
9730
9731
9732 GNULIB_MBSINIT=1
9733
9734
9735
9736
9737
9738 $as_echo "#define GNULIB_TEST_MBSINIT 1" >>confdefs.h
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751 :
9752
9753
9754
9755
9756
9757
9758 :
9759
9760
9761
9762
9763
9764 if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
9765
9766
9767
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
9769 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
9770 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then :
9771 $as_echo_n "(cached) " >&6
9772 else
9773
9774 case "$host_os" in
9775 # Guess no on AIX and OSF/1.
9776 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
9777 # Guess yes otherwise.
9778 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
9779 esac
9780 if test $LOCALE_JA != none; then
9781 if test "$cross_compiling" = yes; then :
9782 :
9783 else
9784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785 /* end confdefs.h. */
9786
9787 #include <locale.h>
9788 #include <string.h>
9789 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9790 <wchar.h>.
9791 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9792 included before <wchar.h>. */
9793 #include <stddef.h>
9794 #include <stdio.h>
9795 #include <time.h>
9796 #include <wchar.h>
9797 int main ()
9798 {
9799 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
9800 {
9801 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
9802 mbstate_t state;
9803 wchar_t wc;
9804
9805 memset (&state, '\0', sizeof (mbstate_t));
9806 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
9807 if (mbsinit (&state))
9808 return 1;
9809 }
9810 return 0;
9811 }
9812 _ACEOF
9813 if ac_fn_c_try_run "$LINENO"; then :
9814 gl_cv_func_mbrtowc_incomplete_state=yes
9815 else
9816 gl_cv_func_mbrtowc_incomplete_state=no
9817 fi
9818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9819 conftest.$ac_objext conftest.beam conftest.$ac_ext
9820 fi
9821
9822 fi
9823
9824 fi
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
9826 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
9827
9828
9829
9830
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
9832 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
9833 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then :
9834 $as_echo_n "(cached) " >&6
9835 else
9836
9837 case "$host_os" in
9838 # Guess no on Solaris 8.
9839 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
9840 # Guess yes otherwise.
9841 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
9842 esac
9843 if test $LOCALE_ZH_CN != none; then
9844 if test "$cross_compiling" = yes; then :
9845 :
9846 else
9847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9848 /* end confdefs.h. */
9849
9850 #include <locale.h>
9851 #include <stdlib.h>
9852 #include <string.h>
9853 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9854 <wchar.h>.
9855 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9856 included before <wchar.h>. */
9857 #include <stddef.h>
9858 #include <stdio.h>
9859 #include <time.h>
9860 #include <wchar.h>
9861 int main ()
9862 {
9863 /* This fails on Solaris 8:
9864 mbrtowc returns 2, and sets wc to 0x00F0.
9865 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
9866 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
9867 {
9868 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
9869 mbstate_t state;
9870 wchar_t wc;
9871
9872 memset (&state, '\0', sizeof (mbstate_t));
9873 if (mbrtowc (&wc, input + 3, 6, &state) != 4
9874 && mbtowc (&wc, input + 3, 6) == 4)
9875 return 1;
9876 }
9877 return 0;
9878 }
9879 _ACEOF
9880 if ac_fn_c_try_run "$LINENO"; then :
9881 gl_cv_func_mbrtowc_sanitycheck=yes
9882 else
9883 gl_cv_func_mbrtowc_sanitycheck=no
9884 fi
9885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9886 conftest.$ac_objext conftest.beam conftest.$ac_ext
9887 fi
9888
9889 fi
9890
9891 fi
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
9893 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
9894
9895 REPLACE_MBSTATE_T=0
9896 case "$gl_cv_func_mbrtowc_incomplete_state" in
9897 *yes) ;;
9898 *) REPLACE_MBSTATE_T=1 ;;
9899 esac
9900 case "$gl_cv_func_mbrtowc_sanitycheck" in
9901 *yes) ;;
9902 *) REPLACE_MBSTATE_T=1 ;;
9903 esac
9904 else
9905 REPLACE_MBSTATE_T=1
9906 fi
9907
9908
9909
9910 :
9911
9912
9913
9914
9915
9916 if test $ac_cv_func_mbsrtowcs = no; then
9917 HAVE_MBSRTOWCS=0
9918 ac_fn_c_check_decl "$LINENO" "mbsrtowcs" "ac_cv_have_decl_mbsrtowcs" "
9919 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9920 <wchar.h>.
9921 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9922 included before <wchar.h>. */
9923 #include <stddef.h>
9924 #include <stdio.h>
9925 #include <time.h>
9926 #include <wchar.h>
9927
9928 "
9929 if test "x$ac_cv_have_decl_mbsrtowcs" = x""yes; then :
9930 ac_have_decl=1
9931 else
9932 ac_have_decl=0
9933 fi
9934
9935 cat >>confdefs.h <<_ACEOF
9936 #define HAVE_DECL_MBSRTOWCS $ac_have_decl
9937 _ACEOF
9938
9939 if test $ac_cv_have_decl_mbsrtowcs = yes; then
9940 REPLACE_MBSRTOWCS=1
9941 fi
9942 else
9943 if test $REPLACE_MBSTATE_T = 1; then
9944 REPLACE_MBSRTOWCS=1
9945 else
9946
9947
9948
9949
9950
9951
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mbsrtowcs works" >&5
9953 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
9954 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then :
9955 $as_echo_n "(cached) " >&6
9956 else
9957
9958 case "$host_os" in
9959 # Guess no on HP-UX, Solaris, mingw.
9960 hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
9961 # Guess yes otherwise.
9962 *) gl_cv_func_mbsrtowcs_works="guessing yes" ;;
9963 esac
9964 if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
9965 if test "$cross_compiling" = yes; then :
9966 :
9967 else
9968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9969 /* end confdefs.h. */
9970
9971 #include <locale.h>
9972 #include <string.h>
9973 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9974 <wchar.h>.
9975 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
9976 included before <wchar.h>. */
9977 #include <stddef.h>
9978 #include <stdio.h>
9979 #include <time.h>
9980 #include <wchar.h>
9981 int main ()
9982 {
9983 int result = 0;
9984 /* Test whether the function supports a NULL destination argument.
9985 This fails on native Windows. */
9986 if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
9987 {
9988 const char input[] = "\337er";
9989 const char *src = input;
9990 mbstate_t state;
9991
9992 memset (&state, '\0', sizeof (mbstate_t));
9993 if (mbsrtowcs (NULL, &src, 1, &state) != 3
9994 || src != input)
9995 result |= 1;
9996 }
9997 /* Test whether the function works when started with a conversion state
9998 in non-initial state. This fails on HP-UX 11.11 and Solaris 10. */
9999 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
10000 {
10001 const char input[] = "B\303\274\303\237er";
10002 mbstate_t state;
10003
10004 memset (&state, '\0', sizeof (mbstate_t));
10005 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
10006 if (!mbsinit (&state))
10007 {
10008 const char *src = input + 2;
10009 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
10010 result |= 2;
10011 }
10012 }
10013 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
10014 {
10015 const char input[] = "<\306\374\313\334\270\354>";
10016 mbstate_t state;
10017
10018 memset (&state, '\0', sizeof (mbstate_t));
10019 if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
10020 if (!mbsinit (&state))
10021 {
10022 const char *src = input + 4;
10023 if (mbsrtowcs (NULL, &src, 10, &state) != 3)
10024 result |= 4;
10025 }
10026 }
10027 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
10028 {
10029 const char input[] = "B\250\271\201\060\211\070er";
10030 mbstate_t state;
10031
10032 memset (&state, '\0', sizeof (mbstate_t));
10033 if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
10034 if (!mbsinit (&state))
10035 {
10036 const char *src = input + 2;
10037 if (mbsrtowcs (NULL, &src, 10, &state) != 4)
10038 result |= 8;
10039 }
10040 }
10041 return result;
10042 }
10043 _ACEOF
10044 if ac_fn_c_try_run "$LINENO"; then :
10045 gl_cv_func_mbsrtowcs_works=yes
10046 else
10047 gl_cv_func_mbsrtowcs_works=no
10048 fi
10049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10050 conftest.$ac_objext conftest.beam conftest.$ac_ext
10051 fi
10052
10053 fi
10054
10055 fi
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbsrtowcs_works" >&5
10057 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
10058
10059 case "$gl_cv_func_mbsrtowcs_works" in
10060 *yes) ;;
10061 *) REPLACE_MBSRTOWCS=1 ;;
10062 esac
10063 fi
10064 fi
10065
10066 if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
10067
10068
10069
10070
10071
10072
10073
10074
10075 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085 gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
10086
10087
10088 :
10089
10090 fi
10091
10092
10093
10094
10095
10096 GNULIB_MBSRTOWCS=1
10097
10098
10099
10100
10101
10102 $as_echo "#define GNULIB_TEST_MBSRTOWCS 1" >>confdefs.h
10103
10104
10105
10106
10107 if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
10108
10109
10110
10111
10112
10113
10114
10115
10116 gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
10117
10118
10119 for ac_header in bp-sym.h
10120 do :
10121 ac_fn_c_check_header_mongrel "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
10122 if test "x$ac_cv_header_bp_sym_h" = x""yes; then :
10123 cat >>confdefs.h <<_ACEOF
10124 #define HAVE_BP_SYM_H 1
10125 _ACEOF
10126
10127 fi
10128
10129 done
10130
10131
10132 fi
10133
10134
10135
10136
10137
10138 GNULIB_MEMCHR=1
10139
10140
10141
10142
10143
10144 $as_echo "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
10145
10146
10147
10148
10149
10150 if test $HAVE_DECL_MEMMEM = 1 && test $REPLACE_MEMMEM = 0; then
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works in linear time" >&5
10152 $as_echo_n "checking whether memmem works in linear time... " >&6; }
10153 if test "${gl_cv_func_memmem_works_fast+set}" = set; then :
10154 $as_echo_n "(cached) " >&6
10155 else
10156 if test "$cross_compiling" = yes; then :
10157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10158 /* end confdefs.h. */
10159
10160 #include <features.h>
10161 #ifdef __GNU_LIBRARY__
10162 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 9) || (__GLIBC__ > 2)) \
10163 && !defined __UCLIBC__
10164 Lucky user
10165 #endif
10166 #endif
10167 #ifdef __CYGWIN__
10168 #include <cygwin/version.h>
10169 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 0)
10170 Lucky user
10171 #endif
10172 #endif
10173
10174 _ACEOF
10175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10176 $EGREP "Lucky user" >/dev/null 2>&1; then :
10177 gl_cv_func_memmem_works_fast="guessing yes"
10178 else
10179 gl_cv_func_memmem_works_fast="guessing no"
10180 fi
10181 rm -f conftest*
10182
10183
10184 else
10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186 /* end confdefs.h. */
10187
10188 #include <signal.h> /* for signal */
10189 #include <string.h> /* for memmem */
10190 #include <stdlib.h> /* for malloc */
10191 #include <unistd.h> /* for alarm */
10192 static void quit (int sig) { exit (sig + 128); }
10193
10194 int
10195 main ()
10196 {
10197
10198 int result = 0;
10199 size_t m = 1000000;
10200 char *haystack = (char *) malloc (2 * m + 1);
10201 char *needle = (char *) malloc (m + 1);
10202 /* Failure to compile this test due to missing alarm is okay,
10203 since all such platforms (mingw) also lack memmem. */
10204 signal (SIGALRM, quit);
10205 alarm (5);
10206 /* Check for quadratic performance. */
10207 if (haystack && needle)
10208 {
10209 memset (haystack, 'A', 2 * m);
10210 haystack[2 * m] = 'B';
10211 memset (needle, 'A', m);
10212 needle[m] = 'B';
10213 if (!memmem (haystack, 2 * m + 1, needle, m + 1))
10214 result |= 1;
10215 }
10216 return result;
10217
10218 ;
10219 return 0;
10220 }
10221 _ACEOF
10222 if ac_fn_c_try_run "$LINENO"; then :
10223 gl_cv_func_memmem_works_fast=yes
10224 else
10225 gl_cv_func_memmem_works_fast=no
10226 fi
10227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10228 conftest.$ac_objext conftest.beam conftest.$ac_ext
10229 fi
10230
10231
10232 fi
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_fast" >&5
10234 $as_echo "$gl_cv_func_memmem_works_fast" >&6; }
10235 case "$gl_cv_func_memmem_works_fast" in
10236 *yes) ;;
10237 *)
10238 REPLACE_MEMMEM=1
10239 ;;
10240 esac
10241 fi
10242
10243 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
10244
10245
10246
10247
10248
10249
10250
10251
10252 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
10253
10254 fi
10255
10256
10257
10258
10259 for ac_func in memmem
10260 do :
10261 ac_fn_c_check_func "$LINENO" "memmem" "ac_cv_func_memmem"
10262 if test "x$ac_cv_func_memmem" = x""yes; then :
10263 cat >>confdefs.h <<_ACEOF
10264 #define HAVE_MEMMEM 1
10265 _ACEOF
10266
10267 fi
10268 done
10269
10270 if test $ac_cv_func_memmem = yes; then
10271 HAVE_MEMMEM=1
10272 else
10273 HAVE_MEMMEM=0
10274 fi
10275
10276 :
10277
10278
10279
10280
10281
10282 if test $ac_cv_have_decl_memmem = no; then
10283 HAVE_DECL_MEMMEM=0
10284 else
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether memmem works" >&5
10286 $as_echo_n "checking whether memmem works... " >&6; }
10287 if test "${gl_cv_func_memmem_works_always+set}" = set; then :
10288 $as_echo_n "(cached) " >&6
10289 else
10290 if test "$cross_compiling" = yes; then :
10291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10292 /* end confdefs.h. */
10293
10294 #ifdef __GNU_LIBRARY__
10295 #include <features.h>
10296 #if ((__GLIBC__ == 2 && ((__GLIBC_MINOR > 0 && __GLIBC_MINOR__ < 9) \
10297 || __GLIBC_MINOR__ > 12)) \
10298 || (__GLIBC__ > 2)) \
10299 || defined __UCLIBC__
10300 Lucky user
10301 #endif
10302 #elif defined __CYGWIN__
10303 #include <cygwin/version.h>
10304 #if CYGWIN_VERSION_DLL_COMBINED > CYGWIN_VERSION_DLL_MAKE_COMBINED (1007, 7)
10305 Lucky user
10306 #endif
10307 #else
10308 Lucky user
10309 #endif
10310
10311 _ACEOF
10312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10313 $EGREP "Lucky user" >/dev/null 2>&1; then :
10314 gl_cv_func_memmem_works_always="guessing yes"
10315 else
10316 gl_cv_func_memmem_works_always="guessing no"
10317 fi
10318 rm -f conftest*
10319
10320
10321 else
10322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10323 /* end confdefs.h. */
10324
10325 #include <string.h> /* for memmem */
10326 #define P "_EF_BF_BD"
10327 #define HAYSTACK "F_BD_CE_BD" P P P P "_C3_88_20" P P P "_C3_A7_20" P
10328 #define NEEDLE P P P P P
10329
10330 int
10331 main ()
10332 {
10333
10334 int result = 0;
10335 if (memmem (HAYSTACK, strlen (HAYSTACK), NEEDLE, strlen (NEEDLE)))
10336 result |= 1;
10337 /* Check for empty needle behavior. */
10338 {
10339 const char *haystack = "AAA";
10340 if (memmem (haystack, 3, NULL, 0) != haystack)
10341 result |= 2;
10342 }
10343 return result;
10344
10345 ;
10346 return 0;
10347 }
10348 _ACEOF
10349 if ac_fn_c_try_run "$LINENO"; then :
10350 gl_cv_func_memmem_works_always=yes
10351 else
10352 gl_cv_func_memmem_works_always=no
10353 fi
10354 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10355 conftest.$ac_objext conftest.beam conftest.$ac_ext
10356 fi
10357
10358
10359 fi
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memmem_works_always" >&5
10361 $as_echo "$gl_cv_func_memmem_works_always" >&6; }
10362 case "$gl_cv_func_memmem_works_always" in
10363 *yes) ;;
10364 *)
10365 REPLACE_MEMMEM=1
10366 ;;
10367 esac
10368 fi
10369 :
10370
10371 if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
10372
10373
10374
10375
10376
10377
10378
10379
10380 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
10381
10382 fi
10383
10384
10385
10386
10387
10388 GNULIB_MEMMEM=1
10389
10390
10391
10392
10393
10394 $as_echo "#define GNULIB_TEST_MEMMEM 1" >>confdefs.h
10395
10396
10397
10398
10399
10400
10401
10402 # Define two additional variables used in the Makefile substitution.
10403
10404 if test "$ac_cv_header_stdbool_h" = yes; then
10405 STDBOOL_H=''
10406 else
10407 STDBOOL_H='stdbool.h'
10408 fi
10409
10410 if test -n "$STDBOOL_H"; then
10411 GL_GENERATE_STDBOOL_H_TRUE=
10412 GL_GENERATE_STDBOOL_H_FALSE='#'
10413 else
10414 GL_GENERATE_STDBOOL_H_TRUE='#'
10415 GL_GENERATE_STDBOOL_H_FALSE=
10416 fi
10417
10418
10419 if test "$ac_cv_type__Bool" = yes; then
10420 HAVE__BOOL=1
10421 else
10422 HAVE__BOOL=0
10423 fi
10424
10425
10426
10427
10428
10429 STDDEF_H=
10430 if test $gt_cv_c_wchar_t = no; then
10431 HAVE_WCHAR_T=0
10432 STDDEF_H=stddef.h
10433 fi
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
10435 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
10436 if test "${gl_cv_decl_null_works+set}" = set; then :
10437 $as_echo_n "(cached) " >&6
10438 else
10439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10440 /* end confdefs.h. */
10441 #include <stddef.h>
10442 int test[2 * (sizeof NULL == sizeof (void *)) -1];
10443
10444 int
10445 main ()
10446 {
10447
10448 ;
10449 return 0;
10450 }
10451 _ACEOF
10452 if ac_fn_c_try_compile "$LINENO"; then :
10453 gl_cv_decl_null_works=yes
10454 else
10455 gl_cv_decl_null_works=no
10456 fi
10457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10458 fi
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
10460 $as_echo "$gl_cv_decl_null_works" >&6; }
10461 if test $gl_cv_decl_null_works = no; then
10462 REPLACE_NULL=1
10463 STDDEF_H=stddef.h
10464 fi
10465
10466 if test -n "$STDDEF_H"; then
10467 GL_GENERATE_STDDEF_H_TRUE=
10468 GL_GENERATE_STDDEF_H_FALSE='#'
10469 else
10470 GL_GENERATE_STDDEF_H_TRUE='#'
10471 GL_GENERATE_STDDEF_H_FALSE=
10472 fi
10473
10474 if test -n "$STDDEF_H"; then
10475
10476
10477
10478
10479
10480
10481
10482
10483 if test $gl_cv_have_include_next = yes; then
10484 gl_cv_next_stddef_h='<'stddef.h'>'
10485 else
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
10487 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
10488 if test "${gl_cv_next_stddef_h+set}" = set; then :
10489 $as_echo_n "(cached) " >&6
10490 else
10491
10492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10493 /* end confdefs.h. */
10494 #include <stddef.h>
10495
10496 _ACEOF
10497 case "$host_os" in
10498 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10499 *) gl_absname_cpp="$ac_cpp" ;;
10500 esac
10501
10502 case "$host_os" in
10503 mingw*)
10504 gl_dirsep_regex='[/\\]'
10505 ;;
10506 *)
10507 gl_dirsep_regex='\/'
10508 ;;
10509 esac
10510 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10511
10512 gl_header_literal_regex=`echo 'stddef.h' \
10513 | sed -e "$gl_make_literal_regex_sed"`
10514 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10515 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10516 s|^/[^/]|//&|
10517 p
10518 q
10519 }'
10520 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10521 sed -n "$gl_absolute_header_sed"`'"'
10522
10523
10524 fi
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
10526 $as_echo "$gl_cv_next_stddef_h" >&6; }
10527 fi
10528 NEXT_STDDEF_H=$gl_cv_next_stddef_h
10529
10530 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10531 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10532 gl_next_as_first_directive='<'stddef.h'>'
10533 else
10534 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10535 gl_next_as_first_directive=$gl_cv_next_stddef_h
10536 fi
10537 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
10538
10539
10540
10541
10542 fi
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557 :
10558
10559
10560
10561
10562
10563
10564
10565
10566 if test $gl_cv_have_include_next = yes; then
10567 gl_cv_next_wchar_h='<'wchar.h'>'
10568 else
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
10570 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
10571 if test "${gl_cv_next_wchar_h+set}" = set; then :
10572 $as_echo_n "(cached) " >&6
10573 else
10574
10575 if test $ac_cv_header_wchar_h = yes; then
10576
10577
10578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10579 /* end confdefs.h. */
10580 #include <wchar.h>
10581
10582 _ACEOF
10583 case "$host_os" in
10584 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10585 *) gl_absname_cpp="$ac_cpp" ;;
10586 esac
10587
10588 case "$host_os" in
10589 mingw*)
10590 gl_dirsep_regex='[/\\]'
10591 ;;
10592 *)
10593 gl_dirsep_regex='\/'
10594 ;;
10595 esac
10596 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10597
10598 gl_header_literal_regex=`echo 'wchar.h' \
10599 | sed -e "$gl_make_literal_regex_sed"`
10600 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10601 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10602 s|^/[^/]|//&|
10603 p
10604 q
10605 }'
10606 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10607 sed -n "$gl_absolute_header_sed"`'"'
10608 else
10609 gl_cv_next_wchar_h='<'wchar.h'>'
10610 fi
10611
10612
10613 fi
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
10615 $as_echo "$gl_cv_next_wchar_h" >&6; }
10616 fi
10617 NEXT_WCHAR_H=$gl_cv_next_wchar_h
10618
10619 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10620 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10621 gl_next_as_first_directive='<'wchar.h'>'
10622 else
10623 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10624 gl_next_as_first_directive=$gl_cv_next_wchar_h
10625 fi
10626 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
10627
10628
10629
10630
10631 if test $ac_cv_header_wchar_h = yes; then
10632 HAVE_WCHAR_H=1
10633 else
10634 HAVE_WCHAR_H=0
10635 fi
10636
10637
10638
10639
10640
10641 if test $gt_cv_c_wint_t = yes; then
10642 HAVE_WINT_T=1
10643 else
10644 HAVE_WINT_T=0
10645 fi
10646
10647
10648
10649 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
10650 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
10652 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
10653 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
10654 $as_echo_n "(cached) " >&6
10655 else
10656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10657 /* end confdefs.h. */
10658
10659 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10660 <wchar.h>.
10661 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10662 included before <wchar.h>. */
10663 #if !(defined __GLIBC__ && !defined __UCLIBC__)
10664 # include <stddef.h>
10665 # include <stdio.h>
10666 # include <time.h>
10667 #endif
10668 #include <wchar.h>
10669
10670 int
10671 main ()
10672 {
10673 #undef $gl_func
10674 (void) $gl_func;
10675 ;
10676 return 0;
10677 }
10678 _ACEOF
10679 if ac_fn_c_try_compile "$LINENO"; then :
10680 eval "$as_gl_Symbol=yes"
10681 else
10682 eval "$as_gl_Symbol=no"
10683 fi
10684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10685 fi
10686 eval ac_res=\$$as_gl_Symbol
10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10688 $as_echo "$ac_res" >&6; }
10689 eval as_val=\$$as_gl_Symbol
10690 if test "x$as_val" = x""yes; then :
10691 cat >>confdefs.h <<_ACEOF
10692 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
10693 _ACEOF
10694
10695 eval ac_cv_have_decl_$gl_func=yes
10696 fi
10697 done
10698
10699
10700
10701
10702
10703
10704
10705 :
10706
10707
10708
10709
10710
10711 if test $ac_cv_func_iswcntrl = yes; then
10712 HAVE_ISWCNTRL=1
10713 else
10714 HAVE_ISWCNTRL=0
10715 fi
10716
10717
10718
10719
10720
10721 if test $gt_cv_c_wint_t = yes; then
10722 HAVE_WINT_T=1
10723 else
10724 HAVE_WINT_T=0
10725 fi
10726
10727
10728
10729
10730
10731
10732
10733
10734 :
10735
10736
10737
10738
10739
10740
10741
10742
10743 if test $gl_cv_have_include_next = yes; then
10744 gl_cv_next_wctype_h='<'wctype.h'>'
10745 else
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking absolute name of <wctype.h>" >&5
10747 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
10748 if test "${gl_cv_next_wctype_h+set}" = set; then :
10749 $as_echo_n "(cached) " >&6
10750 else
10751
10752 if test $ac_cv_header_wctype_h = yes; then
10753
10754
10755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10756 /* end confdefs.h. */
10757 #include <wctype.h>
10758
10759 _ACEOF
10760 case "$host_os" in
10761 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10762 *) gl_absname_cpp="$ac_cpp" ;;
10763 esac
10764
10765 case "$host_os" in
10766 mingw*)
10767 gl_dirsep_regex='[/\\]'
10768 ;;
10769 *)
10770 gl_dirsep_regex='\/'
10771 ;;
10772 esac
10773 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10774
10775 gl_header_literal_regex=`echo 'wctype.h' \
10776 | sed -e "$gl_make_literal_regex_sed"`
10777 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10778 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10779 s|^/[^/]|//&|
10780 p
10781 q
10782 }'
10783 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10784 sed -n "$gl_absolute_header_sed"`'"'
10785 else
10786 gl_cv_next_wctype_h='<'wctype.h'>'
10787 fi
10788
10789
10790 fi
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wctype_h" >&5
10792 $as_echo "$gl_cv_next_wctype_h" >&6; }
10793 fi
10794 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
10795
10796 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10797 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10798 gl_next_as_first_directive='<'wctype.h'>'
10799 else
10800 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10801 gl_next_as_first_directive=$gl_cv_next_wctype_h
10802 fi
10803 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
10804
10805
10806
10807
10808 if test $ac_cv_header_wctype_h = yes; then
10809 if test $ac_cv_func_iswcntrl = yes; then
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iswcntrl works" >&5
10811 $as_echo_n "checking whether iswcntrl works... " >&6; }
10812 if test "${gl_cv_func_iswcntrl_works+set}" = set; then :
10813 $as_echo_n "(cached) " >&6
10814 else
10815
10816 if test "$cross_compiling" = yes; then :
10817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10818 /* end confdefs.h. */
10819 #include <stdlib.h>
10820 #if __GNU_LIBRARY__ == 1
10821 Linux libc5 i18n is broken.
10822 #endif
10823 int
10824 main ()
10825 {
10826
10827 ;
10828 return 0;
10829 }
10830 _ACEOF
10831 if ac_fn_c_try_compile "$LINENO"; then :
10832 gl_cv_func_iswcntrl_works="guessing yes"
10833 else
10834 gl_cv_func_iswcntrl_works="guessing no"
10835 fi
10836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10837
10838 else
10839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10840 /* end confdefs.h. */
10841
10842 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
10843 included before <wchar.h>.
10844 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
10845 must be included before <wchar.h>. */
10846 #include <stddef.h>
10847 #include <stdio.h>
10848 #include <time.h>
10849 #include <wchar.h>
10850 #include <wctype.h>
10851 int main () { return iswprint ('x') == 0; }
10852
10853 _ACEOF
10854 if ac_fn_c_try_run "$LINENO"; then :
10855 gl_cv_func_iswcntrl_works=yes
10856 else
10857 gl_cv_func_iswcntrl_works=no
10858 fi
10859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10860 conftest.$ac_objext conftest.beam conftest.$ac_ext
10861 fi
10862
10863
10864 fi
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_iswcntrl_works" >&5
10866 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
10867 fi
10868 HAVE_WCTYPE_H=1
10869 else
10870 HAVE_WCTYPE_H=0
10871 fi
10872
10873
10874 case "$gl_cv_func_iswcntrl_works" in
10875 *yes) REPLACE_ISWCNTRL=0 ;;
10876 *) REPLACE_ISWCNTRL=1 ;;
10877 esac
10878
10879
10880 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
10881 :
10882 fi
10883
10884 if test $REPLACE_ISWCNTRL = 1; then
10885 REPLACE_TOWLOWER=1
10886 else
10887 for ac_func in towlower
10888 do :
10889 ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower"
10890 if test "x$ac_cv_func_towlower" = x""yes; then :
10891 cat >>confdefs.h <<_ACEOF
10892 #define HAVE_TOWLOWER 1
10893 _ACEOF
10894
10895 fi
10896 done
10897
10898 if test $ac_cv_func_towlower = yes; then
10899 REPLACE_TOWLOWER=0
10900 else
10901 ac_fn_c_check_decl "$LINENO" "towlower" "ac_cv_have_decl_towlower" "/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
10902 included before <wchar.h>.
10903 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
10904 must be included before <wchar.h>. */
10905 #include <stddef.h>
10906 #include <stdio.h>
10907 #include <time.h>
10908 #include <wchar.h>
10909 #if HAVE_WCTYPE_H
10910 # include <wctype.h>
10911 #endif
10912
10913 "
10914 if test "x$ac_cv_have_decl_towlower" = x""yes; then :
10915 ac_have_decl=1
10916 else
10917 ac_have_decl=0
10918 fi
10919
10920 cat >>confdefs.h <<_ACEOF
10921 #define HAVE_DECL_TOWLOWER $ac_have_decl
10922 _ACEOF
10923
10924 if test $ac_cv_have_decl_towlower = yes; then
10925 REPLACE_TOWLOWER=1
10926 else
10927 REPLACE_TOWLOWER=0
10928 fi
10929 fi
10930 fi
10931
10932
10933 if test $HAVE_ISWCNTRL = 0 || test $REPLACE_TOWLOWER = 1; then
10934 :
10935 fi
10936
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctype_t" >&5
10938 $as_echo_n "checking for wctype_t... " >&6; }
10939 if test "${gl_cv_type_wctype_t+set}" = set; then :
10940 $as_echo_n "(cached) " >&6
10941 else
10942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10943 /* end confdefs.h. */
10944 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
10945 included before <wchar.h>.
10946 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
10947 must be included before <wchar.h>. */
10948 #include <stddef.h>
10949 #include <stdio.h>
10950 #include <time.h>
10951 #include <wchar.h>
10952 #if HAVE_WCTYPE_H
10953 # include <wctype.h>
10954 #endif
10955 wctype_t a;
10956
10957 int
10958 main ()
10959 {
10960
10961 ;
10962 return 0;
10963 }
10964 _ACEOF
10965 if ac_fn_c_try_compile "$LINENO"; then :
10966 gl_cv_type_wctype_t=yes
10967 else
10968 gl_cv_type_wctype_t=no
10969 fi
10970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10971
10972 fi
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctype_t" >&5
10974 $as_echo "$gl_cv_type_wctype_t" >&6; }
10975 if test $gl_cv_type_wctype_t = no; then
10976 HAVE_WCTYPE_T=0
10977 fi
10978
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wctrans_t" >&5
10980 $as_echo_n "checking for wctrans_t... " >&6; }
10981 if test "${gl_cv_type_wctrans_t+set}" = set; then :
10982 $as_echo_n "(cached) " >&6
10983 else
10984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10985 /* end confdefs.h. */
10986 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
10987 included before <wchar.h>.
10988 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
10989 must be included before <wchar.h>. */
10990 #include <stddef.h>
10991 #include <stdio.h>
10992 #include <time.h>
10993 #include <wchar.h>
10994 #include <wctype.h>
10995 wctrans_t a;
10996
10997 int
10998 main ()
10999 {
11000
11001 ;
11002 return 0;
11003 }
11004 _ACEOF
11005 if ac_fn_c_try_compile "$LINENO"; then :
11006 gl_cv_type_wctrans_t=yes
11007 else
11008 gl_cv_type_wctrans_t=no
11009 fi
11010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11011
11012 fi
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wctrans_t" >&5
11014 $as_echo "$gl_cv_type_wctrans_t" >&6; }
11015 if test $gl_cv_type_wctrans_t = no; then
11016 HAVE_WCTRANS_T=0
11017 fi
11018
11019
11020 for gl_func in wctype iswctype wctrans towctrans ; do
11021 as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $gl_func is declared without a macro" >&5
11023 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
11024 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then :
11025 $as_echo_n "(cached) " >&6
11026 else
11027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11028 /* end confdefs.h. */
11029
11030 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11031 <wchar.h>.
11032 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11033 included before <wchar.h>. */
11034 #if !(defined __GLIBC__ && !defined __UCLIBC__)
11035 # include <stddef.h>
11036 # include <stdio.h>
11037 # include <time.h>
11038 # include <wchar.h>
11039 #endif
11040 #include <wctype.h>
11041
11042 int
11043 main ()
11044 {
11045 #undef $gl_func
11046 (void) $gl_func;
11047 ;
11048 return 0;
11049 }
11050 _ACEOF
11051 if ac_fn_c_try_compile "$LINENO"; then :
11052 eval "$as_gl_Symbol=yes"
11053 else
11054 eval "$as_gl_Symbol=no"
11055 fi
11056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11057 fi
11058 eval ac_res=\$$as_gl_Symbol
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11060 $as_echo "$ac_res" >&6; }
11061 eval as_val=\$$as_gl_Symbol
11062 if test "x$as_val" = x""yes; then :
11063 cat >>confdefs.h <<_ACEOF
11064 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
11065 _ACEOF
11066
11067 eval ac_cv_have_decl_$gl_func=yes
11068 fi
11069 done
11070
11071
11072 # End of code from modules
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082 gltests_libdeps=
11083 gltests_ltlibdeps=
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093 gl_source_base='tests'
11094 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
11095
11096 gl_module_indicator_condition=$gltests_WITNESS
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106 LIBGNU_LIBDEPS="$gl_libdeps"
11107
11108 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
11109
11110
11111
11112 # We don't use automake, but gnulib does. This line lets us generate
11113 # its Makefile.in.
11114 am__api_version='1.11'
11115
11116 # Find a good install program. We prefer a C program (faster),
11117 # so one script is as good as another. But avoid the broken or
11118 # incompatible versions:
11119 # SysV /etc/install, /usr/sbin/install
11120 # SunOS /usr/etc/install
11121 # IRIX /sbin/install
11122 # AIX /bin/install
11123 # AmigaOS /C/install, which installs bootblocks on floppy discs
11124 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
11125 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
11126 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11127 # OS/2's system install, which has a completely different semantic
11128 # ./install, which can be erroneously created by make from ./install.sh.
11129 # Reject install programs that cannot install multiple files.
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
11131 $as_echo_n "checking for a BSD-compatible install... " >&6; }
11132 if test -z "$INSTALL"; then
11133 if test "${ac_cv_path_install+set}" = set; then :
11134 $as_echo_n "(cached) " >&6
11135 else
11136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11137 for as_dir in $PATH
11138 do
11139 IFS=$as_save_IFS
11140 test -z "$as_dir" && as_dir=.
11141 # Account for people who put trailing slashes in PATH elements.
11142 case $as_dir/ in #((
11143 ./ | .// | /[cC]/* | \
11144 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11145 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
11146 /usr/ucb/* ) ;;
11147 *)
11148 # OSF1 and SCO ODT 3.0 have their own names for install.
11149 # Don't use installbsd from OSF since it installs stuff as root
11150 # by default.
11151 for ac_prog in ginstall scoinst install; do
11152 for ac_exec_ext in '' $ac_executable_extensions; do
11153 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
11154 if test $ac_prog = install &&
11155 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11156 # AIX install. It has an incompatible calling convention.
11157 :
11158 elif test $ac_prog = install &&
11159 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11160 # program-specific install script used by HP pwplus--don't use.
11161 :
11162 else
11163 rm -rf conftest.one conftest.two conftest.dir
11164 echo one > conftest.one
11165 echo two > conftest.two
11166 mkdir conftest.dir
11167 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
11168 test -s conftest.one && test -s conftest.two &&
11169 test -s conftest.dir/conftest.one &&
11170 test -s conftest.dir/conftest.two
11171 then
11172 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11173 break 3
11174 fi
11175 fi
11176 fi
11177 done
11178 done
11179 ;;
11180 esac
11181
11182 done
11183 IFS=$as_save_IFS
11184
11185 rm -rf conftest.one conftest.two conftest.dir
11186
11187 fi
11188 if test "${ac_cv_path_install+set}" = set; then
11189 INSTALL=$ac_cv_path_install
11190 else
11191 # As a last resort, use the slow shell script. Don't cache a
11192 # value for INSTALL within a source directory, because that will
11193 # break other packages using the cache if that directory is
11194 # removed, or if the value is a relative name.
11195 INSTALL=$ac_install_sh
11196 fi
11197 fi
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
11199 $as_echo "$INSTALL" >&6; }
11200
11201 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11202 # It thinks the first close brace ends the variable substitution.
11203 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11204
11205 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
11206
11207 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11208
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
11210 $as_echo_n "checking whether build environment is sane... " >&6; }
11211 # Just in case
11212 sleep 1
11213 echo timestamp > conftest.file
11214 # Reject unsafe characters in $srcdir or the absolute working directory
11215 # name. Accept space and tab only in the latter.
11216 am_lf='
11217 '
11218 case `pwd` in
11219 *[\\\"\#\$\&\'\`$am_lf]*)
11220 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
11221 esac
11222 case $srcdir in
11223 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
11224 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
11225 esac
11226
11227 # Do `set' in a subshell so we don't clobber the current shell's
11228 # arguments. Must try -L first in case configure is actually a
11229 # symlink; some systems play weird games with the mod time of symlinks
11230 # (eg FreeBSD returns the mod time of the symlink's containing
11231 # directory).
11232 if (
11233 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
11234 if test "$*" = "X"; then
11235 # -L didn't work.
11236 set X `ls -t "$srcdir/configure" conftest.file`
11237 fi
11238 rm -f conftest.file
11239 if test "$*" != "X $srcdir/configure conftest.file" \
11240 && test "$*" != "X conftest.file $srcdir/configure"; then
11241
11242 # If neither matched, then we have a broken ls. This can happen
11243 # if, for instance, CONFIG_SHELL is bash and it inherits a
11244 # broken ls alias from the environment. This has actually
11245 # happened. Such a system could not be considered "sane".
11246 as_fn_error "ls -t appears to fail. Make sure there is not a broken
11247 alias in your environment" "$LINENO" 5
11248 fi
11249
11250 test "$2" = conftest.file
11251 )
11252 then
11253 # Ok.
11254 :
11255 else
11256 as_fn_error "newly created file is older than distributed files!
11257 Check your system clock" "$LINENO" 5
11258 fi
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11260 $as_echo "yes" >&6; }
11261 test "$program_prefix" != NONE &&
11262 program_transform_name="s&^&$program_prefix&;$program_transform_name"
11263 # Use a double $ so make ignores it.
11264 test "$program_suffix" != NONE &&
11265 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
11266 # Double any \ or $.
11267 # By default was `s,x,x', remove it if useless.
11268 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
11269 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
11270
11271 # expand $ac_aux_dir to an absolute path
11272 am_aux_dir=`cd $ac_aux_dir && pwd`
11273
11274 if test x"${MISSING+set}" != xset; then
11275 case $am_aux_dir in
11276 *\ * | *\ *)
11277 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
11278 *)
11279 MISSING="\${SHELL} $am_aux_dir/missing" ;;
11280 esac
11281 fi
11282 # Use eval to expand $SHELL
11283 if eval "$MISSING --run true"; then
11284 am_missing_run="$MISSING --run "
11285 else
11286 am_missing_run=
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
11288 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
11289 fi
11290
11291 if test x"${install_sh}" != xset; then
11292 case $am_aux_dir in
11293 *\ * | *\ *)
11294 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
11295 *)
11296 install_sh="\${SHELL} $am_aux_dir/install-sh"
11297 esac
11298 fi
11299
11300 # Installed binaries are usually stripped using `strip' when the user
11301 # run `make install-strip'. However `strip' might not be the right
11302 # tool to use in cross-compilation environments, therefore Automake
11303 # will honor the `STRIP' environment variable to overrule this program.
11304 if test "$cross_compiling" != no; then
11305 if test -n "$ac_tool_prefix"; then
11306 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11307 set dummy ${ac_tool_prefix}strip; ac_word=$2
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11309 $as_echo_n "checking for $ac_word... " >&6; }
11310 if test "${ac_cv_prog_STRIP+set}" = set; then :
11311 $as_echo_n "(cached) " >&6
11312 else
11313 if test -n "$STRIP"; then
11314 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11315 else
11316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11317 for as_dir in $PATH
11318 do
11319 IFS=$as_save_IFS
11320 test -z "$as_dir" && as_dir=.
11321 for ac_exec_ext in '' $ac_executable_extensions; do
11322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11323 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11325 break 2
11326 fi
11327 done
11328 done
11329 IFS=$as_save_IFS
11330
11331 fi
11332 fi
11333 STRIP=$ac_cv_prog_STRIP
11334 if test -n "$STRIP"; then
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11336 $as_echo "$STRIP" >&6; }
11337 else
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11339 $as_echo "no" >&6; }
11340 fi
11341
11342
11343 fi
11344 if test -z "$ac_cv_prog_STRIP"; then
11345 ac_ct_STRIP=$STRIP
11346 # Extract the first word of "strip", so it can be a program name with args.
11347 set dummy strip; ac_word=$2
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11349 $as_echo_n "checking for $ac_word... " >&6; }
11350 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
11351 $as_echo_n "(cached) " >&6
11352 else
11353 if test -n "$ac_ct_STRIP"; then
11354 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11355 else
11356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11357 for as_dir in $PATH
11358 do
11359 IFS=$as_save_IFS
11360 test -z "$as_dir" && as_dir=.
11361 for ac_exec_ext in '' $ac_executable_extensions; do
11362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11363 ac_cv_prog_ac_ct_STRIP="strip"
11364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11365 break 2
11366 fi
11367 done
11368 done
11369 IFS=$as_save_IFS
11370
11371 fi
11372 fi
11373 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11374 if test -n "$ac_ct_STRIP"; then
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11376 $as_echo "$ac_ct_STRIP" >&6; }
11377 else
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379 $as_echo "no" >&6; }
11380 fi
11381
11382 if test "x$ac_ct_STRIP" = x; then
11383 STRIP=":"
11384 else
11385 case $cross_compiling:$ac_tool_warned in
11386 yes:)
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11389 ac_tool_warned=yes ;;
11390 esac
11391 STRIP=$ac_ct_STRIP
11392 fi
11393 else
11394 STRIP="$ac_cv_prog_STRIP"
11395 fi
11396
11397 fi
11398 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
11399
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
11401 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
11402 if test -z "$MKDIR_P"; then
11403 if test "${ac_cv_path_mkdir+set}" = set; then :
11404 $as_echo_n "(cached) " >&6
11405 else
11406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11407 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
11408 do
11409 IFS=$as_save_IFS
11410 test -z "$as_dir" && as_dir=.
11411 for ac_prog in mkdir gmkdir; do
11412 for ac_exec_ext in '' $ac_executable_extensions; do
11413 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
11414 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
11415 'mkdir (GNU coreutils) '* | \
11416 'mkdir (coreutils) '* | \
11417 'mkdir (fileutils) '4.1*)
11418 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
11419 break 3;;
11420 esac
11421 done
11422 done
11423 done
11424 IFS=$as_save_IFS
11425
11426 fi
11427
11428 if test "${ac_cv_path_mkdir+set}" = set; then
11429 MKDIR_P="$ac_cv_path_mkdir -p"
11430 else
11431 # As a last resort, use the slow shell script. Don't cache a
11432 # value for MKDIR_P within a source directory, because that will
11433 # break other packages using the cache if that directory is
11434 # removed, or if the value is a relative name.
11435 test -d ./--version && rmdir ./--version
11436 MKDIR_P="$ac_install_sh -d"
11437 fi
11438 fi
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
11440 $as_echo "$MKDIR_P" >&6; }
11441
11442
11443 mkdir_p="$MKDIR_P"
11444 case $mkdir_p in
11445 [\\/$]* | ?:[\\/]*) ;;
11446 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
11447 esac
11448
11449 for ac_prog in gawk mawk nawk awk
11450 do
11451 # Extract the first word of "$ac_prog", so it can be a program name with args.
11452 set dummy $ac_prog; ac_word=$2
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11454 $as_echo_n "checking for $ac_word... " >&6; }
11455 if test "${ac_cv_prog_AWK+set}" = set; then :
11456 $as_echo_n "(cached) " >&6
11457 else
11458 if test -n "$AWK"; then
11459 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11460 else
11461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11462 for as_dir in $PATH
11463 do
11464 IFS=$as_save_IFS
11465 test -z "$as_dir" && as_dir=.
11466 for ac_exec_ext in '' $ac_executable_extensions; do
11467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11468 ac_cv_prog_AWK="$ac_prog"
11469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11470 break 2
11471 fi
11472 done
11473 done
11474 IFS=$as_save_IFS
11475
11476 fi
11477 fi
11478 AWK=$ac_cv_prog_AWK
11479 if test -n "$AWK"; then
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11481 $as_echo "$AWK" >&6; }
11482 else
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11484 $as_echo "no" >&6; }
11485 fi
11486
11487
11488 test -n "$AWK" && break
11489 done
11490
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11492 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11493 set x ${MAKE-make}
11494 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
11495 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
11496 $as_echo_n "(cached) " >&6
11497 else
11498 cat >conftest.make <<\_ACEOF
11499 SHELL = /bin/sh
11500 all:
11501 @echo '@@@%%%=$(MAKE)=@@@%%%'
11502 _ACEOF
11503 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11504 case `${MAKE-make} -f conftest.make 2>/dev/null` in
11505 *@@@%%%=?*=@@@%%%*)
11506 eval ac_cv_prog_make_${ac_make}_set=yes;;
11507 *)
11508 eval ac_cv_prog_make_${ac_make}_set=no;;
11509 esac
11510 rm -f conftest.make
11511 fi
11512 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11514 $as_echo "yes" >&6; }
11515 SET_MAKE=
11516 else
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11518 $as_echo "no" >&6; }
11519 SET_MAKE="MAKE=${MAKE-make}"
11520 fi
11521
11522 rm -rf .tst 2>/dev/null
11523 mkdir .tst 2>/dev/null
11524 if test -d .tst; then
11525 am__leading_dot=.
11526 else
11527 am__leading_dot=_
11528 fi
11529 rmdir .tst 2>/dev/null
11530
11531 DEPDIR="${am__leading_dot}deps"
11532
11533 ac_config_commands="$ac_config_commands depfiles"
11534
11535
11536 am_make=${MAKE-make}
11537 cat > confinc << 'END'
11538 am__doit:
11539 @echo this is the am__doit target
11540 .PHONY: am__doit
11541 END
11542 # If we don't find an include directive, just comment out the code.
11543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
11544 $as_echo_n "checking for style of include used by $am_make... " >&6; }
11545 am__include="#"
11546 am__quote=
11547 _am_result=none
11548 # First try GNU make style include.
11549 echo "include confinc" > confmf
11550 # Ignore all kinds of additional output from `make'.
11551 case `$am_make -s -f confmf 2> /dev/null` in #(
11552 *the\ am__doit\ target*)
11553 am__include=include
11554 am__quote=
11555 _am_result=GNU
11556 ;;
11557 esac
11558 # Now try BSD make style include.
11559 if test "$am__include" = "#"; then
11560 echo '.include "confinc"' > confmf
11561 case `$am_make -s -f confmf 2> /dev/null` in #(
11562 *the\ am__doit\ target*)
11563 am__include=.include
11564 am__quote="\""
11565 _am_result=BSD
11566 ;;
11567 esac
11568 fi
11569
11570
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
11572 $as_echo "$_am_result" >&6; }
11573 rm -f confinc confmf
11574
11575 # Check whether --enable-dependency-tracking was given.
11576 if test "${enable_dependency_tracking+set}" = set; then :
11577 enableval=$enable_dependency_tracking;
11578 fi
11579
11580 if test "x$enable_dependency_tracking" != xno; then
11581 am_depcomp="$ac_aux_dir/depcomp"
11582 AMDEPBACKSLASH='\'
11583 fi
11584 if test "x$enable_dependency_tracking" != xno; then
11585 AMDEP_TRUE=
11586 AMDEP_FALSE='#'
11587 else
11588 AMDEP_TRUE='#'
11589 AMDEP_FALSE=
11590 fi
11591
11592
11593 if test "`cd $srcdir && pwd`" != "`pwd`"; then
11594 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
11595 # is not polluted with repeated "-I."
11596 am__isrc=' -I$(srcdir)'
11597 # test to see if srcdir already configured
11598 if test -f $srcdir/config.status; then
11599 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
11600 fi
11601 fi
11602
11603 # test whether we have cygpath
11604 if test -z "$CYGPATH_W"; then
11605 if (cygpath --version) >/dev/null 2>/dev/null; then
11606 CYGPATH_W='cygpath -w'
11607 else
11608 CYGPATH_W=echo
11609 fi
11610 fi
11611
11612
11613 # Define the identity of the package.
11614 PACKAGE=libgnu
11615 VERSION=UNUSED-VERSION
11616
11617
11618 # Some tools Automake needs.
11619
11620 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
11621
11622
11623 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
11624
11625
11626 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
11627
11628
11629 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
11630
11631
11632 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
11633
11634 # We need awk for the "check" target. The system "awk" is bad on
11635 # some platforms.
11636 # Always define AMTAR for backward compatibility.
11637
11638 AMTAR=${AMTAR-"${am_missing_run}tar"}
11639
11640 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
11641
11642
11643
11644
11645 depcc="$CC" am_compiler_list=
11646
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11648 $as_echo_n "checking dependency style of $depcc... " >&6; }
11649 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11650 $as_echo_n "(cached) " >&6
11651 else
11652 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11653 # We make a subdir and do the tests there. Otherwise we can end up
11654 # making bogus files that we don't know about and never remove. For
11655 # instance it was reported that on HP-UX the gcc test will end up
11656 # making a dummy file named `D' -- because `-MD' means `put the output
11657 # in D'.
11658 mkdir conftest.dir
11659 # Copy depcomp to subdir because otherwise we won't find it if we're
11660 # using a relative directory.
11661 cp "$am_depcomp" conftest.dir
11662 cd conftest.dir
11663 # We will build objects and dependencies in a subdirectory because
11664 # it helps to detect inapplicable dependency modes. For instance
11665 # both Tru64's cc and ICC support -MD to output dependencies as a
11666 # side effect of compilation, but ICC will put the dependencies in
11667 # the current directory while Tru64 will put them in the object
11668 # directory.
11669 mkdir sub
11670
11671 am_cv_CC_dependencies_compiler_type=none
11672 if test "$am_compiler_list" = ""; then
11673 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11674 fi
11675 am__universal=false
11676 case " $depcc " in #(
11677 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11678 esac
11679
11680 for depmode in $am_compiler_list; do
11681 # Setup a source with many dependencies, because some compilers
11682 # like to wrap large dependency lists on column 80 (with \), and
11683 # we should not choose a depcomp mode which is confused by this.
11684 #
11685 # We need to recreate these files for each test, as the compiler may
11686 # overwrite some of them when testing with obscure command lines.
11687 # This happens at least with the AIX C compiler.
11688 : > sub/conftest.c
11689 for i in 1 2 3 4 5 6; do
11690 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11691 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11692 # Solaris 8's {/usr,}/bin/sh.
11693 touch sub/conftst$i.h
11694 done
11695 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11696
11697 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11698 # mode. It turns out that the SunPro C++ compiler does not properly
11699 # handle `-M -o', and we need to detect this. Also, some Intel
11700 # versions had trouble with output in subdirs
11701 am__obj=sub/conftest.${OBJEXT-o}
11702 am__minus_obj="-o $am__obj"
11703 case $depmode in
11704 gcc)
11705 # This depmode causes a compiler race in universal mode.
11706 test "$am__universal" = false || continue
11707 ;;
11708 nosideeffect)
11709 # after this tag, mechanisms are not by side-effect, so they'll
11710 # only be used when explicitly requested
11711 if test "x$enable_dependency_tracking" = xyes; then
11712 continue
11713 else
11714 break
11715 fi
11716 ;;
11717 msvisualcpp | msvcmsys)
11718 # This compiler won't grok `-c -o', but also, the minuso test has
11719 # not run yet. These depmodes are late enough in the game, and
11720 # so weak that their functioning should not be impacted.
11721 am__obj=conftest.${OBJEXT-o}
11722 am__minus_obj=
11723 ;;
11724 none) break ;;
11725 esac
11726 if depmode=$depmode \
11727 source=sub/conftest.c object=$am__obj \
11728 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11729 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11730 >/dev/null 2>conftest.err &&
11731 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11732 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11733 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11734 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11735 # icc doesn't choke on unknown options, it will just issue warnings
11736 # or remarks (even with -Werror). So we grep stderr for any message
11737 # that says an option was ignored or not supported.
11738 # When given -MP, icc 7.0 and 7.1 complain thusly:
11739 # icc: Command line warning: ignoring option '-M'; no argument required
11740 # The diagnosis changed in icc 8.0:
11741 # icc: Command line remark: option '-MP' not supported
11742 if (grep 'ignoring option' conftest.err ||
11743 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11744 am_cv_CC_dependencies_compiler_type=$depmode
11745 break
11746 fi
11747 fi
11748 done
11749
11750 cd ..
11751 rm -rf conftest.dir
11752 else
11753 am_cv_CC_dependencies_compiler_type=none
11754 fi
11755
11756 fi
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11758 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11759 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11760
11761 if
11762 test "x$enable_dependency_tracking" != xno \
11763 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11764 am__fastdepCC_TRUE=
11765 am__fastdepCC_FALSE='#'
11766 else
11767 am__fastdepCC_TRUE='#'
11768 am__fastdepCC_FALSE=
11769 fi
11770
11771
11772
11773
11774 # --------------------- #
11775 # Checks for programs. #
11776 # --------------------- #
11777
11778
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11780 $as_echo_n "checking whether ln -s works... " >&6; }
11781 LN_S=$as_ln_s
11782 if test "$LN_S" = "ln -s"; then
11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11784 $as_echo "yes" >&6; }
11785 else
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11787 $as_echo "no, using $LN_S" >&6; }
11788 fi
11789
11790 if test -n "$ac_tool_prefix"; then
11791 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11792 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11794 $as_echo_n "checking for $ac_word... " >&6; }
11795 if test "${ac_cv_prog_RANLIB+set}" = set; then :
11796 $as_echo_n "(cached) " >&6
11797 else
11798 if test -n "$RANLIB"; then
11799 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11800 else
11801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11802 for as_dir in $PATH
11803 do
11804 IFS=$as_save_IFS
11805 test -z "$as_dir" && as_dir=.
11806 for ac_exec_ext in '' $ac_executable_extensions; do
11807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11808 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11810 break 2
11811 fi
11812 done
11813 done
11814 IFS=$as_save_IFS
11815
11816 fi
11817 fi
11818 RANLIB=$ac_cv_prog_RANLIB
11819 if test -n "$RANLIB"; then
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11821 $as_echo "$RANLIB" >&6; }
11822 else
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11824 $as_echo "no" >&6; }
11825 fi
11826
11827
11828 fi
11829 if test -z "$ac_cv_prog_RANLIB"; then
11830 ac_ct_RANLIB=$RANLIB
11831 # Extract the first word of "ranlib", so it can be a program name with args.
11832 set dummy ranlib; ac_word=$2
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11834 $as_echo_n "checking for $ac_word... " >&6; }
11835 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
11836 $as_echo_n "(cached) " >&6
11837 else
11838 if test -n "$ac_ct_RANLIB"; then
11839 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11840 else
11841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11842 for as_dir in $PATH
11843 do
11844 IFS=$as_save_IFS
11845 test -z "$as_dir" && as_dir=.
11846 for ac_exec_ext in '' $ac_executable_extensions; do
11847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11848 ac_cv_prog_ac_ct_RANLIB="ranlib"
11849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11850 break 2
11851 fi
11852 done
11853 done
11854 IFS=$as_save_IFS
11855
11856 fi
11857 fi
11858 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11859 if test -n "$ac_ct_RANLIB"; then
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11861 $as_echo "$ac_ct_RANLIB" >&6; }
11862 else
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11864 $as_echo "no" >&6; }
11865 fi
11866
11867 if test "x$ac_ct_RANLIB" = x; then
11868 RANLIB=":"
11869 else
11870 case $cross_compiling:$ac_tool_warned in
11871 yes:)
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11874 ac_tool_warned=yes ;;
11875 esac
11876 RANLIB=$ac_ct_RANLIB
11877 fi
11878 else
11879 RANLIB="$ac_cv_prog_RANLIB"
11880 fi
11881
11882
11883 if test -n "$ac_tool_prefix"; then
11884 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11885 set dummy ${ac_tool_prefix}ar; ac_word=$2
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11887 $as_echo_n "checking for $ac_word... " >&6; }
11888 if test "${ac_cv_prog_AR+set}" = set; then :
11889 $as_echo_n "(cached) " >&6
11890 else
11891 if test -n "$AR"; then
11892 ac_cv_prog_AR="$AR" # Let the user override the test.
11893 else
11894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11895 for as_dir in $PATH
11896 do
11897 IFS=$as_save_IFS
11898 test -z "$as_dir" && as_dir=.
11899 for ac_exec_ext in '' $ac_executable_extensions; do
11900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11901 ac_cv_prog_AR="${ac_tool_prefix}ar"
11902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11903 break 2
11904 fi
11905 done
11906 done
11907 IFS=$as_save_IFS
11908
11909 fi
11910 fi
11911 AR=$ac_cv_prog_AR
11912 if test -n "$AR"; then
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11914 $as_echo "$AR" >&6; }
11915 else
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11917 $as_echo "no" >&6; }
11918 fi
11919
11920
11921 fi
11922 if test -z "$ac_cv_prog_AR"; then
11923 ac_ct_AR=$AR
11924 # Extract the first word of "ar", so it can be a program name with args.
11925 set dummy ar; ac_word=$2
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11927 $as_echo_n "checking for $ac_word... " >&6; }
11928 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
11929 $as_echo_n "(cached) " >&6
11930 else
11931 if test -n "$ac_ct_AR"; then
11932 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11933 else
11934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11935 for as_dir in $PATH
11936 do
11937 IFS=$as_save_IFS
11938 test -z "$as_dir" && as_dir=.
11939 for ac_exec_ext in '' $ac_executable_extensions; do
11940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11941 ac_cv_prog_ac_ct_AR="ar"
11942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11943 break 2
11944 fi
11945 done
11946 done
11947 IFS=$as_save_IFS
11948
11949 fi
11950 fi
11951 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11952 if test -n "$ac_ct_AR"; then
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11954 $as_echo "$ac_ct_AR" >&6; }
11955 else
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11957 $as_echo "no" >&6; }
11958 fi
11959
11960 if test "x$ac_ct_AR" = x; then
11961 AR=""
11962 else
11963 case $cross_compiling:$ac_tool_warned in
11964 yes:)
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11967 ac_tool_warned=yes ;;
11968 esac
11969 AR=$ac_ct_AR
11970 fi
11971 else
11972 AR="$ac_cv_prog_AR"
11973 fi
11974
11975
11976 # ---------------------- #
11977 # Checks for libraries. #
11978 # ---------------------- #
11979
11980 ac_config_files="$ac_config_files Makefile import/Makefile"
11981
11982 ac_config_commands="$ac_config_commands default"
11983
11984 cat >confcache <<\_ACEOF
11985 # This file is a shell script that caches the results of configure
11986 # tests run on this system so they can be shared between configure
11987 # scripts and configure runs, see configure's option --config-cache.
11988 # It is not useful on other systems. If it contains results you don't
11989 # want to keep, you may remove or edit it.
11990 #
11991 # config.status only pays attention to the cache file if you give it
11992 # the --recheck option to rerun configure.
11993 #
11994 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11995 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11996 # following values.
11997
11998 _ACEOF
11999
12000 # The following way of writing the cache mishandles newlines in values,
12001 # but we know of no workaround that is simple, portable, and efficient.
12002 # So, we kill variables containing newlines.
12003 # Ultrix sh set writes to stderr and can't be redirected directly,
12004 # and sets the high bit in the cache file unless we assign to the vars.
12005 (
12006 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12007 eval ac_val=\$$ac_var
12008 case $ac_val in #(
12009 *${as_nl}*)
12010 case $ac_var in #(
12011 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12012 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12013 esac
12014 case $ac_var in #(
12015 _ | IFS | as_nl) ;; #(
12016 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12017 *) { eval $ac_var=; unset $ac_var;} ;;
12018 esac ;;
12019 esac
12020 done
12021
12022 (set) 2>&1 |
12023 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12024 *${as_nl}ac_space=\ *)
12025 # `set' does not quote correctly, so add quotes: double-quote
12026 # substitution turns \\\\ into \\, and sed turns \\ into \.
12027 sed -n \
12028 "s/'/'\\\\''/g;
12029 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12030 ;; #(
12031 *)
12032 # `set' quotes correctly as required by POSIX, so do not add quotes.
12033 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12034 ;;
12035 esac |
12036 sort
12037 ) |
12038 sed '
12039 /^ac_cv_env_/b end
12040 t clear
12041 :clear
12042 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12043 t end
12044 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12045 :end' >>confcache
12046 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12047 if test -w "$cache_file"; then
12048 test "x$cache_file" != "x/dev/null" &&
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12050 $as_echo "$as_me: updating cache $cache_file" >&6;}
12051 cat confcache >$cache_file
12052 else
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12054 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12055 fi
12056 fi
12057 rm -f confcache
12058
12059 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12060 # Let make expand exec_prefix.
12061 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12062
12063 DEFS=-DHAVE_CONFIG_H
12064
12065 ac_libobjs=
12066 ac_ltlibobjs=
12067 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12068 # 1. Remove the extension, and $U if already installed.
12069 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12070 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12071 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12072 # will be set to the directory where LIBOBJS objects are built.
12073 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12074 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12075 done
12076 LIBOBJS=$ac_libobjs
12077
12078 LTLIBOBJS=$ac_ltlibobjs
12079
12080
12081 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12082 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12084 fi
12085 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
12086 as_fn_error "conditional \"GL_COND_LIBTOOL\" was never defined.
12087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12088 fi
12089 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
12090 as_fn_error "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
12091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12092 fi
12093 if test -z "${GL_GENERATE_FNMATCH_H_TRUE}" && test -z "${GL_GENERATE_FNMATCH_H_FALSE}"; then
12094 as_fn_error "conditional \"GL_GENERATE_FNMATCH_H\" was never defined.
12095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12096 fi
12097 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
12098 as_fn_error "conditional \"GL_GENERATE_STDINT_H\" was never defined.
12099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12100 fi
12101 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
12102 as_fn_error "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
12103 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12104 fi
12105 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
12106 as_fn_error "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
12107 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12108 fi
12109
12110 gl_libobjs=
12111 gl_ltlibobjs=
12112 if test -n "$gl_LIBOBJS"; then
12113 # Remove the extension.
12114 sed_drop_objext='s/\.o$//;s/\.obj$//'
12115 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
12116 gl_libobjs="$gl_libobjs $i.$ac_objext"
12117 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
12118 done
12119 fi
12120 gl_LIBOBJS=$gl_libobjs
12121
12122 gl_LTLIBOBJS=$gl_ltlibobjs
12123
12124
12125
12126 gltests_libobjs=
12127 gltests_ltlibobjs=
12128 if test -n "$gltests_LIBOBJS"; then
12129 # Remove the extension.
12130 sed_drop_objext='s/\.o$//;s/\.obj$//'
12131 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
12132 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
12133 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
12134 done
12135 fi
12136 gltests_LIBOBJS=$gltests_libobjs
12137
12138 gltests_LTLIBOBJS=$gltests_ltlibobjs
12139
12140
12141 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12142 as_fn_error "conditional \"AMDEP\" was never defined.
12143 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12144 fi
12145 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12146 as_fn_error "conditional \"am__fastdepCC\" was never defined.
12147 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12148 fi
12149 if test -n "$EXEEXT"; then
12150 am__EXEEXT_TRUE=
12151 am__EXEEXT_FALSE='#'
12152 else
12153 am__EXEEXT_TRUE='#'
12154 am__EXEEXT_FALSE=
12155 fi
12156
12157
12158 : ${CONFIG_STATUS=./config.status}
12159 ac_write_fail=0
12160 ac_clean_files_save=$ac_clean_files
12161 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12163 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12164 as_write_fail=0
12165 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12166 #! $SHELL
12167 # Generated by $as_me.
12168 # Run this file to recreate the current configuration.
12169 # Compiler output produced by configure, useful for debugging
12170 # configure, is in config.log if it exists.
12171
12172 debug=false
12173 ac_cs_recheck=false
12174 ac_cs_silent=false
12175
12176 SHELL=\${CONFIG_SHELL-$SHELL}
12177 export SHELL
12178 _ASEOF
12179 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12180 ## -------------------- ##
12181 ## M4sh Initialization. ##
12182 ## -------------------- ##
12183
12184 # Be more Bourne compatible
12185 DUALCASE=1; export DUALCASE # for MKS sh
12186 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12187 emulate sh
12188 NULLCMD=:
12189 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12190 # is contrary to our usage. Disable this feature.
12191 alias -g '${1+"$@"}'='"$@"'
12192 setopt NO_GLOB_SUBST
12193 else
12194 case `(set -o) 2>/dev/null` in #(
12195 *posix*) :
12196 set -o posix ;; #(
12197 *) :
12198 ;;
12199 esac
12200 fi
12201
12202
12203 as_nl='
12204 '
12205 export as_nl
12206 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12207 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12208 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12209 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12210 # Prefer a ksh shell builtin over an external printf program on Solaris,
12211 # but without wasting forks for bash or zsh.
12212 if test -z "$BASH_VERSION$ZSH_VERSION" \
12213 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12214 as_echo='print -r --'
12215 as_echo_n='print -rn --'
12216 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12217 as_echo='printf %s\n'
12218 as_echo_n='printf %s'
12219 else
12220 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12221 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12222 as_echo_n='/usr/ucb/echo -n'
12223 else
12224 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12225 as_echo_n_body='eval
12226 arg=$1;
12227 case $arg in #(
12228 *"$as_nl"*)
12229 expr "X$arg" : "X\\(.*\\)$as_nl";
12230 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12231 esac;
12232 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12233 '
12234 export as_echo_n_body
12235 as_echo_n='sh -c $as_echo_n_body as_echo'
12236 fi
12237 export as_echo_body
12238 as_echo='sh -c $as_echo_body as_echo'
12239 fi
12240
12241 # The user is always right.
12242 if test "${PATH_SEPARATOR+set}" != set; then
12243 PATH_SEPARATOR=:
12244 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12245 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12246 PATH_SEPARATOR=';'
12247 }
12248 fi
12249
12250
12251 # IFS
12252 # We need space, tab and new line, in precisely that order. Quoting is
12253 # there to prevent editors from complaining about space-tab.
12254 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12255 # splitting by setting IFS to empty value.)
12256 IFS=" "" $as_nl"
12257
12258 # Find who we are. Look in the path if we contain no directory separator.
12259 case $0 in #((
12260 *[\\/]* ) as_myself=$0 ;;
12261 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12262 for as_dir in $PATH
12263 do
12264 IFS=$as_save_IFS
12265 test -z "$as_dir" && as_dir=.
12266 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12267 done
12268 IFS=$as_save_IFS
12269
12270 ;;
12271 esac
12272 # We did not find ourselves, most probably we were run as `sh COMMAND'
12273 # in which case we are not to be found in the path.
12274 if test "x$as_myself" = x; then
12275 as_myself=$0
12276 fi
12277 if test ! -f "$as_myself"; then
12278 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12279 exit 1
12280 fi
12281
12282 # Unset variables that we do not need and which cause bugs (e.g. in
12283 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12284 # suppresses any "Segmentation fault" message there. '((' could
12285 # trigger a bug in pdksh 5.2.14.
12286 for as_var in BASH_ENV ENV MAIL MAILPATH
12287 do eval test x\${$as_var+set} = xset \
12288 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12289 done
12290 PS1='$ '
12291 PS2='> '
12292 PS4='+ '
12293
12294 # NLS nuisances.
12295 LC_ALL=C
12296 export LC_ALL
12297 LANGUAGE=C
12298 export LANGUAGE
12299
12300 # CDPATH.
12301 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12302
12303
12304 # as_fn_error ERROR [LINENO LOG_FD]
12305 # ---------------------------------
12306 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12307 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12308 # script with status $?, using 1 if that was 0.
12309 as_fn_error ()
12310 {
12311 as_status=$?; test $as_status -eq 0 && as_status=1
12312 if test "$3"; then
12313 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12314 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12315 fi
12316 $as_echo "$as_me: error: $1" >&2
12317 as_fn_exit $as_status
12318 } # as_fn_error
12319
12320
12321 # as_fn_set_status STATUS
12322 # -----------------------
12323 # Set $? to STATUS, without forking.
12324 as_fn_set_status ()
12325 {
12326 return $1
12327 } # as_fn_set_status
12328
12329 # as_fn_exit STATUS
12330 # -----------------
12331 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12332 as_fn_exit ()
12333 {
12334 set +e
12335 as_fn_set_status $1
12336 exit $1
12337 } # as_fn_exit
12338
12339 # as_fn_unset VAR
12340 # ---------------
12341 # Portably unset VAR.
12342 as_fn_unset ()
12343 {
12344 { eval $1=; unset $1;}
12345 }
12346 as_unset=as_fn_unset
12347 # as_fn_append VAR VALUE
12348 # ----------------------
12349 # Append the text in VALUE to the end of the definition contained in VAR. Take
12350 # advantage of any shell optimizations that allow amortized linear growth over
12351 # repeated appends, instead of the typical quadratic growth present in naive
12352 # implementations.
12353 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12354 eval 'as_fn_append ()
12355 {
12356 eval $1+=\$2
12357 }'
12358 else
12359 as_fn_append ()
12360 {
12361 eval $1=\$$1\$2
12362 }
12363 fi # as_fn_append
12364
12365 # as_fn_arith ARG...
12366 # ------------------
12367 # Perform arithmetic evaluation on the ARGs, and store the result in the
12368 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12369 # must be portable across $(()) and expr.
12370 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12371 eval 'as_fn_arith ()
12372 {
12373 as_val=$(( $* ))
12374 }'
12375 else
12376 as_fn_arith ()
12377 {
12378 as_val=`expr "$@" || test $? -eq 1`
12379 }
12380 fi # as_fn_arith
12381
12382
12383 if expr a : '\(a\)' >/dev/null 2>&1 &&
12384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12385 as_expr=expr
12386 else
12387 as_expr=false
12388 fi
12389
12390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12391 as_basename=basename
12392 else
12393 as_basename=false
12394 fi
12395
12396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12397 as_dirname=dirname
12398 else
12399 as_dirname=false
12400 fi
12401
12402 as_me=`$as_basename -- "$0" ||
12403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12404 X"$0" : 'X\(//\)$' \| \
12405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12406 $as_echo X/"$0" |
12407 sed '/^.*\/\([^/][^/]*\)\/*$/{
12408 s//\1/
12409 q
12410 }
12411 /^X\/\(\/\/\)$/{
12412 s//\1/
12413 q
12414 }
12415 /^X\/\(\/\).*/{
12416 s//\1/
12417 q
12418 }
12419 s/.*/./; q'`
12420
12421 # Avoid depending upon Character Ranges.
12422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12425 as_cr_digits='0123456789'
12426 as_cr_alnum=$as_cr_Letters$as_cr_digits
12427
12428 ECHO_C= ECHO_N= ECHO_T=
12429 case `echo -n x` in #(((((
12430 -n*)
12431 case `echo 'xy\c'` in
12432 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12433 xy) ECHO_C='\c';;
12434 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12435 ECHO_T=' ';;
12436 esac;;
12437 *)
12438 ECHO_N='-n';;
12439 esac
12440
12441 rm -f conf$$ conf$$.exe conf$$.file
12442 if test -d conf$$.dir; then
12443 rm -f conf$$.dir/conf$$.file
12444 else
12445 rm -f conf$$.dir
12446 mkdir conf$$.dir 2>/dev/null
12447 fi
12448 if (echo >conf$$.file) 2>/dev/null; then
12449 if ln -s conf$$.file conf$$ 2>/dev/null; then
12450 as_ln_s='ln -s'
12451 # ... but there are two gotchas:
12452 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12453 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12454 # In both cases, we have to default to `cp -p'.
12455 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12456 as_ln_s='cp -p'
12457 elif ln conf$$.file conf$$ 2>/dev/null; then
12458 as_ln_s=ln
12459 else
12460 as_ln_s='cp -p'
12461 fi
12462 else
12463 as_ln_s='cp -p'
12464 fi
12465 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12466 rmdir conf$$.dir 2>/dev/null
12467
12468
12469 # as_fn_mkdir_p
12470 # -------------
12471 # Create "$as_dir" as a directory, including parents if necessary.
12472 as_fn_mkdir_p ()
12473 {
12474
12475 case $as_dir in #(
12476 -*) as_dir=./$as_dir;;
12477 esac
12478 test -d "$as_dir" || eval $as_mkdir_p || {
12479 as_dirs=
12480 while :; do
12481 case $as_dir in #(
12482 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12483 *) as_qdir=$as_dir;;
12484 esac
12485 as_dirs="'$as_qdir' $as_dirs"
12486 as_dir=`$as_dirname -- "$as_dir" ||
12487 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12488 X"$as_dir" : 'X\(//\)[^/]' \| \
12489 X"$as_dir" : 'X\(//\)$' \| \
12490 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12491 $as_echo X"$as_dir" |
12492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12493 s//\1/
12494 q
12495 }
12496 /^X\(\/\/\)[^/].*/{
12497 s//\1/
12498 q
12499 }
12500 /^X\(\/\/\)$/{
12501 s//\1/
12502 q
12503 }
12504 /^X\(\/\).*/{
12505 s//\1/
12506 q
12507 }
12508 s/.*/./; q'`
12509 test -d "$as_dir" && break
12510 done
12511 test -z "$as_dirs" || eval "mkdir $as_dirs"
12512 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
12513
12514
12515 } # as_fn_mkdir_p
12516 if mkdir -p . 2>/dev/null; then
12517 as_mkdir_p='mkdir -p "$as_dir"'
12518 else
12519 test -d ./-p && rmdir ./-p
12520 as_mkdir_p=false
12521 fi
12522
12523 if test -x / >/dev/null 2>&1; then
12524 as_test_x='test -x'
12525 else
12526 if ls -dL / >/dev/null 2>&1; then
12527 as_ls_L_option=L
12528 else
12529 as_ls_L_option=
12530 fi
12531 as_test_x='
12532 eval sh -c '\''
12533 if test -d "$1"; then
12534 test -d "$1/.";
12535 else
12536 case $1 in #(
12537 -*)set "./$1";;
12538 esac;
12539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12540 ???[sx]*):;;*)false;;esac;fi
12541 '\'' sh
12542 '
12543 fi
12544 as_executable_p=$as_test_x
12545
12546 # Sed expression to map a string onto a valid CPP name.
12547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12548
12549 # Sed expression to map a string onto a valid variable name.
12550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12551
12552
12553 exec 6>&1
12554 ## ----------------------------------- ##
12555 ## Main body of $CONFIG_STATUS script. ##
12556 ## ----------------------------------- ##
12557 _ASEOF
12558 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12559
12560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12561 # Save the log message, to keep $0 and so on meaningful, and to
12562 # report actual input values of CONFIG_FILES etc. instead of their
12563 # values after options handling.
12564 ac_log="
12565 This file was extended by $as_me, which was
12566 generated by GNU Autoconf 2.64. Invocation command line was
12567
12568 CONFIG_FILES = $CONFIG_FILES
12569 CONFIG_HEADERS = $CONFIG_HEADERS
12570 CONFIG_LINKS = $CONFIG_LINKS
12571 CONFIG_COMMANDS = $CONFIG_COMMANDS
12572 $ $0 $@
12573
12574 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12575 "
12576
12577 _ACEOF
12578
12579 case $ac_config_files in *"
12580 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12581 esac
12582
12583 case $ac_config_headers in *"
12584 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12585 esac
12586
12587
12588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12589 # Files that config.status was made for.
12590 config_files="$ac_config_files"
12591 config_headers="$ac_config_headers"
12592 config_commands="$ac_config_commands"
12593
12594 _ACEOF
12595
12596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12597 ac_cs_usage="\
12598 \`$as_me' instantiates files and other configuration actions
12599 from templates according to the current configuration. Unless the files
12600 and actions are specified as TAGs, all are instantiated by default.
12601
12602 Usage: $0 [OPTION]... [TAG]...
12603
12604 -h, --help print this help, then exit
12605 -V, --version print version number and configuration settings, then exit
12606 -q, --quiet, --silent
12607 do not print progress messages
12608 -d, --debug don't remove temporary files
12609 --recheck update $as_me by reconfiguring in the same conditions
12610 --file=FILE[:TEMPLATE]
12611 instantiate the configuration file FILE
12612 --header=FILE[:TEMPLATE]
12613 instantiate the configuration header FILE
12614
12615 Configuration files:
12616 $config_files
12617
12618 Configuration headers:
12619 $config_headers
12620
12621 Configuration commands:
12622 $config_commands
12623
12624 Report bugs to the package provider."
12625
12626 _ACEOF
12627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12628 ac_cs_version="\\
12629 config.status
12630 configured by $0, generated by GNU Autoconf 2.64,
12631 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12632
12633 Copyright (C) 2009 Free Software Foundation, Inc.
12634 This config.status script is free software; the Free Software Foundation
12635 gives unlimited permission to copy, distribute and modify it."
12636
12637 ac_pwd='$ac_pwd'
12638 srcdir='$srcdir'
12639 INSTALL='$INSTALL'
12640 MKDIR_P='$MKDIR_P'
12641 AWK='$AWK'
12642 test -n "\$AWK" || AWK=awk
12643 _ACEOF
12644
12645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12646 # The default lists apply if the user does not specify any file.
12647 ac_need_defaults=:
12648 while test $# != 0
12649 do
12650 case $1 in
12651 --*=*)
12652 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12653 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12654 ac_shift=:
12655 ;;
12656 *)
12657 ac_option=$1
12658 ac_optarg=$2
12659 ac_shift=shift
12660 ;;
12661 esac
12662
12663 case $ac_option in
12664 # Handling of the options.
12665 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12666 ac_cs_recheck=: ;;
12667 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12668 $as_echo "$ac_cs_version"; exit ;;
12669 --debug | --debu | --deb | --de | --d | -d )
12670 debug=: ;;
12671 --file | --fil | --fi | --f )
12672 $ac_shift
12673 case $ac_optarg in
12674 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12675 esac
12676 as_fn_append CONFIG_FILES " '$ac_optarg'"
12677 ac_need_defaults=false;;
12678 --header | --heade | --head | --hea )
12679 $ac_shift
12680 case $ac_optarg in
12681 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12682 esac
12683 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12684 ac_need_defaults=false;;
12685 --he | --h)
12686 # Conflict between --help and --header
12687 as_fn_error "ambiguous option: \`$1'
12688 Try \`$0 --help' for more information.";;
12689 --help | --hel | -h )
12690 $as_echo "$ac_cs_usage"; exit ;;
12691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12692 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12693 ac_cs_silent=: ;;
12694
12695 # This is an error.
12696 -*) as_fn_error "unrecognized option: \`$1'
12697 Try \`$0 --help' for more information." ;;
12698
12699 *) as_fn_append ac_config_targets " $1"
12700 ac_need_defaults=false ;;
12701
12702 esac
12703 shift
12704 done
12705
12706 ac_configure_extra_args=
12707
12708 if $ac_cs_silent; then
12709 exec 6>/dev/null
12710 ac_configure_extra_args="$ac_configure_extra_args --silent"
12711 fi
12712
12713 _ACEOF
12714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12715 if \$ac_cs_recheck; then
12716 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12717 shift
12718 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12719 CONFIG_SHELL='$SHELL'
12720 export CONFIG_SHELL
12721 exec "\$@"
12722 fi
12723
12724 _ACEOF
12725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12726 exec 5>>config.log
12727 {
12728 echo
12729 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12730 ## Running $as_me. ##
12731 _ASBOX
12732 $as_echo "$ac_log"
12733 } >&5
12734
12735 _ACEOF
12736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12737 #
12738 # INIT-COMMANDS
12739 #
12740 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12741
12742 _ACEOF
12743
12744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12745
12746 # Handling of arguments.
12747 for ac_config_target in $ac_config_targets
12748 do
12749 case $ac_config_target in
12750 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
12751 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12752 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12753 "import/Makefile") CONFIG_FILES="$CONFIG_FILES import/Makefile" ;;
12754 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
12755
12756 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12757 esac
12758 done
12759
12760
12761 # If the user did not use the arguments to specify the items to instantiate,
12762 # then the envvar interface is used. Set only those that are not.
12763 # We use the long form for the default assignment because of an extremely
12764 # bizarre bug on SunOS 4.1.3.
12765 if $ac_need_defaults; then
12766 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12767 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12768 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12769 fi
12770
12771 # Have a temporary directory for convenience. Make it in the build tree
12772 # simply because there is no reason against having it here, and in addition,
12773 # creating and moving files from /tmp can sometimes cause problems.
12774 # Hook for its removal unless debugging.
12775 # Note that there is a small window in which the directory will not be cleaned:
12776 # after its creation but before its name has been assigned to `$tmp'.
12777 $debug ||
12778 {
12779 tmp=
12780 trap 'exit_status=$?
12781 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12782 ' 0
12783 trap 'as_fn_exit 1' 1 2 13 15
12784 }
12785 # Create a (secure) tmp directory for tmp files.
12786
12787 {
12788 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12789 test -n "$tmp" && test -d "$tmp"
12790 } ||
12791 {
12792 tmp=./conf$$-$RANDOM
12793 (umask 077 && mkdir "$tmp")
12794 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12795
12796 # Set up the scripts for CONFIG_FILES section.
12797 # No need to generate them if there are no CONFIG_FILES.
12798 # This happens for instance with `./config.status config.h'.
12799 if test -n "$CONFIG_FILES"; then
12800
12801
12802 ac_cr=`echo X | tr X '\015'`
12803 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12804 # But we know of no other shell where ac_cr would be empty at this
12805 # point, so we can use a bashism as a fallback.
12806 if test "x$ac_cr" = x; then
12807 eval ac_cr=\$\'\\r\'
12808 fi
12809 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12810 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12811 ac_cs_awk_cr='\r'
12812 else
12813 ac_cs_awk_cr=$ac_cr
12814 fi
12815
12816 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12817 _ACEOF
12818
12819
12820 {
12821 echo "cat >conf$$subs.awk <<_ACEOF" &&
12822 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12823 echo "_ACEOF"
12824 } >conf$$subs.sh ||
12825 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12826 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12827 ac_delim='%!_!# '
12828 for ac_last_try in false false false false false :; do
12829 . ./conf$$subs.sh ||
12830 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12831
12832 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12833 if test $ac_delim_n = $ac_delim_num; then
12834 break
12835 elif $ac_last_try; then
12836 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12837 else
12838 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12839 fi
12840 done
12841 rm -f conf$$subs.sh
12842
12843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12844 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12845 _ACEOF
12846 sed -n '
12847 h
12848 s/^/S["/; s/!.*/"]=/
12849 p
12850 g
12851 s/^[^!]*!//
12852 :repl
12853 t repl
12854 s/'"$ac_delim"'$//
12855 t delim
12856 :nl
12857 h
12858 s/\(.\{148\}\).*/\1/
12859 t more1
12860 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12861 p
12862 n
12863 b repl
12864 :more1
12865 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12866 p
12867 g
12868 s/.\{148\}//
12869 t nl
12870 :delim
12871 h
12872 s/\(.\{148\}\).*/\1/
12873 t more2
12874 s/["\\]/\\&/g; s/^/"/; s/$/"/
12875 p
12876 b
12877 :more2
12878 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12879 p
12880 g
12881 s/.\{148\}//
12882 t delim
12883 ' <conf$$subs.awk | sed '
12884 /^[^""]/{
12885 N
12886 s/\n//
12887 }
12888 ' >>$CONFIG_STATUS || ac_write_fail=1
12889 rm -f conf$$subs.awk
12890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12891 _ACAWK
12892 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12893 for (key in S) S_is_set[key] = 1
12894 FS = "\a"
12895
12896 }
12897 {
12898 line = $ 0
12899 nfields = split(line, field, "@")
12900 substed = 0
12901 len = length(field[1])
12902 for (i = 2; i < nfields; i++) {
12903 key = field[i]
12904 keylen = length(key)
12905 if (S_is_set[key]) {
12906 value = S[key]
12907 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12908 len += length(value) + length(field[++i])
12909 substed = 1
12910 } else
12911 len += 1 + keylen
12912 }
12913
12914 print line
12915 }
12916
12917 _ACAWK
12918 _ACEOF
12919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12920 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12921 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12922 else
12923 cat
12924 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12925 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12926 _ACEOF
12927
12928 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12929 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12930 # trailing colons and then remove the whole line if VPATH becomes empty
12931 # (actually we leave an empty line to preserve line numbers).
12932 if test "x$srcdir" = x.; then
12933 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12934 s/:*\$(srcdir):*/:/
12935 s/:*\${srcdir}:*/:/
12936 s/:*@srcdir@:*/:/
12937 s/^\([^=]*=[ ]*\):*/\1/
12938 s/:*$//
12939 s/^[^=]*=[ ]*$//
12940 }'
12941 fi
12942
12943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12944 fi # test -n "$CONFIG_FILES"
12945
12946 # Set up the scripts for CONFIG_HEADERS section.
12947 # No need to generate them if there are no CONFIG_HEADERS.
12948 # This happens for instance with `./config.status Makefile'.
12949 if test -n "$CONFIG_HEADERS"; then
12950 cat >"$tmp/defines.awk" <<\_ACAWK ||
12951 BEGIN {
12952 _ACEOF
12953
12954 # Transform confdefs.h into an awk script `defines.awk', embedded as
12955 # here-document in config.status, that substitutes the proper values into
12956 # config.h.in to produce config.h.
12957
12958 # Create a delimiter string that does not exist in confdefs.h, to ease
12959 # handling of long lines.
12960 ac_delim='%!_!# '
12961 for ac_last_try in false false :; do
12962 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12963 if test -z "$ac_t"; then
12964 break
12965 elif $ac_last_try; then
12966 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12967 else
12968 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12969 fi
12970 done
12971
12972 # For the awk script, D is an array of macro values keyed by name,
12973 # likewise P contains macro parameters if any. Preserve backslash
12974 # newline sequences.
12975
12976 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12977 sed -n '
12978 s/.\{148\}/&'"$ac_delim"'/g
12979 t rset
12980 :rset
12981 s/^[ ]*#[ ]*define[ ][ ]*/ /
12982 t def
12983 d
12984 :def
12985 s/\\$//
12986 t bsnl
12987 s/["\\]/\\&/g
12988 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12989 D["\1"]=" \3"/p
12990 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12991 d
12992 :bsnl
12993 s/["\\]/\\&/g
12994 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12995 D["\1"]=" \3\\\\\\n"\\/p
12996 t cont
12997 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12998 t cont
12999 d
13000 :cont
13001 n
13002 s/.\{148\}/&'"$ac_delim"'/g
13003 t clear
13004 :clear
13005 s/\\$//
13006 t bsnlc
13007 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13008 d
13009 :bsnlc
13010 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13011 b cont
13012 ' <confdefs.h | sed '
13013 s/'"$ac_delim"'/"\\\
13014 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13015
13016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13017 for (key in D) D_is_set[key] = 1
13018 FS = "\a"
13019 }
13020 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13021 line = \$ 0
13022 split(line, arg, " ")
13023 if (arg[1] == "#") {
13024 defundef = arg[2]
13025 mac1 = arg[3]
13026 } else {
13027 defundef = substr(arg[1], 2)
13028 mac1 = arg[2]
13029 }
13030 split(mac1, mac2, "(") #)
13031 macro = mac2[1]
13032 prefix = substr(line, 1, index(line, defundef) - 1)
13033 if (D_is_set[macro]) {
13034 # Preserve the white space surrounding the "#".
13035 print prefix "define", macro P[macro] D[macro]
13036 next
13037 } else {
13038 # Replace #undef with comments. This is necessary, for example,
13039 # in the case of _POSIX_SOURCE, which is predefined and required
13040 # on some systems where configure will not decide to define it.
13041 if (defundef == "undef") {
13042 print "/*", prefix defundef, macro, "*/"
13043 next
13044 }
13045 }
13046 }
13047 { print }
13048 _ACAWK
13049 _ACEOF
13050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13051 as_fn_error "could not setup config headers machinery" "$LINENO" 5
13052 fi # test -n "$CONFIG_HEADERS"
13053
13054
13055 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13056 shift
13057 for ac_tag
13058 do
13059 case $ac_tag in
13060 :[FHLC]) ac_mode=$ac_tag; continue;;
13061 esac
13062 case $ac_mode$ac_tag in
13063 :[FHL]*:*);;
13064 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13065 :[FH]-) ac_tag=-:-;;
13066 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13067 esac
13068 ac_save_IFS=$IFS
13069 IFS=:
13070 set x $ac_tag
13071 IFS=$ac_save_IFS
13072 shift
13073 ac_file=$1
13074 shift
13075
13076 case $ac_mode in
13077 :L) ac_source=$1;;
13078 :[FH])
13079 ac_file_inputs=
13080 for ac_f
13081 do
13082 case $ac_f in
13083 -) ac_f="$tmp/stdin";;
13084 *) # Look for the file first in the build tree, then in the source tree
13085 # (if the path is not absolute). The absolute path cannot be DOS-style,
13086 # because $ac_f cannot contain `:'.
13087 test -f "$ac_f" ||
13088 case $ac_f in
13089 [\\/$]*) false;;
13090 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13091 esac ||
13092 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13093 esac
13094 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13095 as_fn_append ac_file_inputs " '$ac_f'"
13096 done
13097
13098 # Let's still pretend it is `configure' which instantiates (i.e., don't
13099 # use $as_me), people would be surprised to read:
13100 # /* config.h. Generated by config.status. */
13101 configure_input='Generated from '`
13102 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13103 `' by configure.'
13104 if test x"$ac_file" != x-; then
13105 configure_input="$ac_file. $configure_input"
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13107 $as_echo "$as_me: creating $ac_file" >&6;}
13108 fi
13109 # Neutralize special characters interpreted by sed in replacement strings.
13110 case $configure_input in #(
13111 *\&* | *\|* | *\\* )
13112 ac_sed_conf_input=`$as_echo "$configure_input" |
13113 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13114 *) ac_sed_conf_input=$configure_input;;
13115 esac
13116
13117 case $ac_tag in
13118 *:-:* | *:-) cat >"$tmp/stdin" \
13119 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
13120 esac
13121 ;;
13122 esac
13123
13124 ac_dir=`$as_dirname -- "$ac_file" ||
13125 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13126 X"$ac_file" : 'X\(//\)[^/]' \| \
13127 X"$ac_file" : 'X\(//\)$' \| \
13128 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13129 $as_echo X"$ac_file" |
13130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13131 s//\1/
13132 q
13133 }
13134 /^X\(\/\/\)[^/].*/{
13135 s//\1/
13136 q
13137 }
13138 /^X\(\/\/\)$/{
13139 s//\1/
13140 q
13141 }
13142 /^X\(\/\).*/{
13143 s//\1/
13144 q
13145 }
13146 s/.*/./; q'`
13147 as_dir="$ac_dir"; as_fn_mkdir_p
13148 ac_builddir=.
13149
13150 case "$ac_dir" in
13151 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13152 *)
13153 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13154 # A ".." for each directory in $ac_dir_suffix.
13155 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13156 case $ac_top_builddir_sub in
13157 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13158 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13159 esac ;;
13160 esac
13161 ac_abs_top_builddir=$ac_pwd
13162 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13163 # for backward compatibility:
13164 ac_top_builddir=$ac_top_build_prefix
13165
13166 case $srcdir in
13167 .) # We are building in place.
13168 ac_srcdir=.
13169 ac_top_srcdir=$ac_top_builddir_sub
13170 ac_abs_top_srcdir=$ac_pwd ;;
13171 [\\/]* | ?:[\\/]* ) # Absolute name.
13172 ac_srcdir=$srcdir$ac_dir_suffix;
13173 ac_top_srcdir=$srcdir
13174 ac_abs_top_srcdir=$srcdir ;;
13175 *) # Relative name.
13176 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13177 ac_top_srcdir=$ac_top_build_prefix$srcdir
13178 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13179 esac
13180 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13181
13182
13183 case $ac_mode in
13184 :F)
13185 #
13186 # CONFIG_FILE
13187 #
13188
13189 case $INSTALL in
13190 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13191 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13192 esac
13193 ac_MKDIR_P=$MKDIR_P
13194 case $MKDIR_P in
13195 [\\/$]* | ?:[\\/]* ) ;;
13196 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13197 esac
13198 _ACEOF
13199
13200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13201 # If the template does not know about datarootdir, expand it.
13202 # FIXME: This hack should be removed a few years after 2.60.
13203 ac_datarootdir_hack=; ac_datarootdir_seen=
13204 ac_sed_dataroot='
13205 /datarootdir/ {
13206 p
13207 q
13208 }
13209 /@datadir@/p
13210 /@docdir@/p
13211 /@infodir@/p
13212 /@localedir@/p
13213 /@mandir@/p'
13214 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13215 *datarootdir*) ac_datarootdir_seen=yes;;
13216 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13218 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13219 _ACEOF
13220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13221 ac_datarootdir_hack='
13222 s&@datadir@&$datadir&g
13223 s&@docdir@&$docdir&g
13224 s&@infodir@&$infodir&g
13225 s&@localedir@&$localedir&g
13226 s&@mandir@&$mandir&g
13227 s&\\\${datarootdir}&$datarootdir&g' ;;
13228 esac
13229 _ACEOF
13230
13231 # Neutralize VPATH when `$srcdir' = `.'.
13232 # Shell code in configure.ac might set extrasub.
13233 # FIXME: do we really want to maintain this feature?
13234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13235 ac_sed_extra="$ac_vpsub
13236 $extrasub
13237 _ACEOF
13238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13239 :t
13240 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13241 s|@configure_input@|$ac_sed_conf_input|;t t
13242 s&@top_builddir@&$ac_top_builddir_sub&;t t
13243 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13244 s&@srcdir@&$ac_srcdir&;t t
13245 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13246 s&@top_srcdir@&$ac_top_srcdir&;t t
13247 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13248 s&@builddir@&$ac_builddir&;t t
13249 s&@abs_builddir@&$ac_abs_builddir&;t t
13250 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13251 s&@INSTALL@&$ac_INSTALL&;t t
13252 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13253 $ac_datarootdir_hack
13254 "
13255 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13256 || as_fn_error "could not create $ac_file" "$LINENO" 5
13257
13258 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13259 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13260 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13262 which seems to be undefined. Please make sure it is defined." >&5
13263 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13264 which seems to be undefined. Please make sure it is defined." >&2;}
13265
13266 rm -f "$tmp/stdin"
13267 case $ac_file in
13268 -) cat "$tmp/out" && rm -f "$tmp/out";;
13269 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13270 esac \
13271 || as_fn_error "could not create $ac_file" "$LINENO" 5
13272 ;;
13273 :H)
13274 #
13275 # CONFIG_HEADER
13276 #
13277 if test x"$ac_file" != x-; then
13278 {
13279 $as_echo "/* $configure_input */" \
13280 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13281 } >"$tmp/config.h" \
13282 || as_fn_error "could not create $ac_file" "$LINENO" 5
13283 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13285 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13286 else
13287 rm -f "$ac_file"
13288 mv "$tmp/config.h" "$ac_file" \
13289 || as_fn_error "could not create $ac_file" "$LINENO" 5
13290 fi
13291 else
13292 $as_echo "/* $configure_input */" \
13293 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13294 || as_fn_error "could not create -" "$LINENO" 5
13295 fi
13296 # Compute "$ac_file"'s index in $config_headers.
13297 _am_arg="$ac_file"
13298 _am_stamp_count=1
13299 for _am_header in $config_headers :; do
13300 case $_am_header in
13301 $_am_arg | $_am_arg:* )
13302 break ;;
13303 * )
13304 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13305 esac
13306 done
13307 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13308 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13309 X"$_am_arg" : 'X\(//\)[^/]' \| \
13310 X"$_am_arg" : 'X\(//\)$' \| \
13311 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13312 $as_echo X"$_am_arg" |
13313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13314 s//\1/
13315 q
13316 }
13317 /^X\(\/\/\)[^/].*/{
13318 s//\1/
13319 q
13320 }
13321 /^X\(\/\/\)$/{
13322 s//\1/
13323 q
13324 }
13325 /^X\(\/\).*/{
13326 s//\1/
13327 q
13328 }
13329 s/.*/./; q'`/stamp-h$_am_stamp_count
13330 ;;
13331
13332 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13333 $as_echo "$as_me: executing $ac_file commands" >&6;}
13334 ;;
13335 esac
13336
13337
13338 case $ac_file$ac_mode in
13339 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13340 # Autoconf 2.62 quotes --file arguments for eval, but not when files
13341 # are listed without --file. Let's play safe and only enable the eval
13342 # if we detect the quoting.
13343 case $CONFIG_FILES in
13344 *\'*) eval set x "$CONFIG_FILES" ;;
13345 *) set x $CONFIG_FILES ;;
13346 esac
13347 shift
13348 for mf
13349 do
13350 # Strip MF so we end up with the name of the file.
13351 mf=`echo "$mf" | sed -e 's/:.*$//'`
13352 # Check whether this is an Automake generated Makefile or not.
13353 # We used to match only the files named `Makefile.in', but
13354 # some people rename them; so instead we look at the file content.
13355 # Grep'ing the first line is not enough: some people post-process
13356 # each Makefile.in and add a new line on top of each file to say so.
13357 # Grep'ing the whole file is not good either: AIX grep has a line
13358 # limit of 2048, but all sed's we know have understand at least 4000.
13359 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13360 dirpart=`$as_dirname -- "$mf" ||
13361 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13362 X"$mf" : 'X\(//\)[^/]' \| \
13363 X"$mf" : 'X\(//\)$' \| \
13364 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13365 $as_echo X"$mf" |
13366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13367 s//\1/
13368 q
13369 }
13370 /^X\(\/\/\)[^/].*/{
13371 s//\1/
13372 q
13373 }
13374 /^X\(\/\/\)$/{
13375 s//\1/
13376 q
13377 }
13378 /^X\(\/\).*/{
13379 s//\1/
13380 q
13381 }
13382 s/.*/./; q'`
13383 else
13384 continue
13385 fi
13386 # Extract the definition of DEPDIR, am__include, and am__quote
13387 # from the Makefile without running `make'.
13388 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13389 test -z "$DEPDIR" && continue
13390 am__include=`sed -n 's/^am__include = //p' < "$mf"`
13391 test -z "am__include" && continue
13392 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13393 # When using ansi2knr, U may be empty or an underscore; expand it
13394 U=`sed -n 's/^U = //p' < "$mf"`
13395 # Find all dependency output files, they are included files with
13396 # $(DEPDIR) in their names. We invoke sed twice because it is the
13397 # simplest approach to changing $(DEPDIR) to its actual value in the
13398 # expansion.
13399 for file in `sed -n "
13400 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13401 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13402 # Make sure the directory exists.
13403 test -f "$dirpart/$file" && continue
13404 fdir=`$as_dirname -- "$file" ||
13405 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13406 X"$file" : 'X\(//\)[^/]' \| \
13407 X"$file" : 'X\(//\)$' \| \
13408 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13409 $as_echo X"$file" |
13410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13411 s//\1/
13412 q
13413 }
13414 /^X\(\/\/\)[^/].*/{
13415 s//\1/
13416 q
13417 }
13418 /^X\(\/\/\)$/{
13419 s//\1/
13420 q
13421 }
13422 /^X\(\/\).*/{
13423 s//\1/
13424 q
13425 }
13426 s/.*/./; q'`
13427 as_dir=$dirpart/$fdir; as_fn_mkdir_p
13428 # echo "creating $dirpart/$file"
13429 echo '# dummy' > "$dirpart/$file"
13430 done
13431 done
13432 }
13433 ;;
13434 "default":C)
13435 case x$CONFIG_HEADERS in
13436 xconfig.h:config.in)
13437 echo > stamp-h ;;
13438 esac
13439 ;;
13440
13441 esac
13442 done # for ac_tag
13443
13444
13445 as_fn_exit 0
13446 _ACEOF
13447 ac_clean_files=$ac_clean_files_save
13448
13449 test $ac_write_fail = 0 ||
13450 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13451
13452
13453 # configure is writing to config.log, and then calls config.status.
13454 # config.status does its own redirection, appending to config.log.
13455 # Unfortunately, on DOS this fails, as config.log is still kept open
13456 # by configure, so config.status won't be able to write to it; its
13457 # output is simply discarded. So we exec the FD to /dev/null,
13458 # effectively closing config.log, so it can be properly (re)opened and
13459 # appended to by config.status. When coming back to configure, we
13460 # need to make the FD available again.
13461 if test "$no_create" != yes; then
13462 ac_cs_success=:
13463 ac_config_status_args=
13464 test "$silent" = yes &&
13465 ac_config_status_args="$ac_config_status_args --quiet"
13466 exec 5>/dev/null
13467 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13468 exec 5>>config.log
13469 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13470 # would make configure fail if this is the last instruction.
13471 $ac_cs_success || as_fn_exit $?
13472 fi
13473 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13475 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13476 fi
13477
13478
13479 exit 0
This page took 0.498104 seconds and 4 git commands to generate.