Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Side by Side Diff: bison/src/bison/2.4.1/bison-2.4.1-src/configure

Issue 10807020: Add native Windows binary for bison. (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for GNU Bison 2.4.1.
4 #
5 # Report bugs to <bug-bison@gnu.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
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*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
97
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110 ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file n ame" >&2
119 { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
185 }
186 as_func_success () {
187 as_func_return 0
188 }
189 as_func_failure () {
190 as_func_return 1
191 }
192 as_func_ret_success () {
193 return 0
194 }
195 as_func_ret_failure () {
196 return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201 :
202 else
203 exitcode=1
204 echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213 :
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226 else
227 exitcode=1
228 echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239 :
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299 (exit $1)
300 }
301 as_func_success () {
302 as_func_return 0
303 }
304 as_func_failure () {
305 as_func_return 1
306 }
307 as_func_ret_success () {
308 return 0
309 }
310 as_func_ret_failure () {
311 return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316 :
317 else
318 exitcode=1
319 echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328 :
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341 else
342 exitcode=1
343 echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356 break
357 fi
358
359 fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388 (exit \$1)
389 }
390 as_func_success () {
391 as_func_return 0
392 }
393 as_func_failure () {
394 as_func_return 1
395 }
396 as_func_ret_success () {
397 return 0
398 }
399 as_func_ret_failure () {
400 return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405 :
406 else
407 exitcode=1
408 echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417 :
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430 else
431 exitcode=1
432 echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441 }
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX s hell" >&2
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501 *)
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
531 fi
532 else
533 as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576 exec 7<&0 </dev/null 6>&1
577
578 # Name of the host.
579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580 # so uname gets run too.
581 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582
583 #
584 # Initializations.
585 #
586 ac_default_prefix=/usr/local
587 ac_clean_files=
588 ac_config_libobj_dir=.
589 LIBOBJS=
590 cross_compiling=no
591 subdirs=
592 MFLAGS=
593 MAKEFLAGS=
594 SHELL=${CONFIG_SHELL-/bin/sh}
595
596 # Identity of this package.
597 PACKAGE_NAME='GNU Bison'
598 PACKAGE_TARNAME='bison'
599 PACKAGE_VERSION='2.4.1'
600 PACKAGE_STRING='GNU Bison 2.4.1'
601 PACKAGE_BUGREPORT='bug-bison@gnu.org'
602
603 # Factoring default headers for most tests.
604 ac_includes_default="\
605 #include <stdio.h>
606 #ifdef HAVE_SYS_TYPES_H
607 # include <sys/types.h>
608 #endif
609 #ifdef HAVE_SYS_STAT_H
610 # include <sys/stat.h>
611 #endif
612 #ifdef STDC_HEADERS
613 # include <stdlib.h>
614 # include <stddef.h>
615 #else
616 # ifdef HAVE_STDLIB_H
617 # include <stdlib.h>
618 # endif
619 #endif
620 #ifdef HAVE_STRING_H
621 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 # include <memory.h>
623 # endif
624 # include <string.h>
625 #endif
626 #ifdef HAVE_STRINGS_H
627 # include <strings.h>
628 #endif
629 #ifdef HAVE_INTTYPES_H
630 # include <inttypes.h>
631 #endif
632 #ifdef HAVE_STDINT_H
633 # include <stdint.h>
634 #endif
635 #ifdef HAVE_UNISTD_H
636 # include <unistd.h>
637 #endif"
638
639 ac_header_list=
640 ac_func_list=
641 gt_needs=
642 ac_subst_vars='SHELL
643 PATH_SEPARATOR
644 PACKAGE_NAME
645 PACKAGE_TARNAME
646 PACKAGE_VERSION
647 PACKAGE_STRING
648 PACKAGE_BUGREPORT
649 exec_prefix
650 prefix
651 program_transform_name
652 bindir
653 sbindir
654 libexecdir
655 datarootdir
656 datadir
657 sysconfdir
658 sharedstatedir
659 localstatedir
660 includedir
661 oldincludedir
662 docdir
663 infodir
664 htmldir
665 dvidir
666 pdfdir
667 psdir
668 libdir
669 localedir
670 mandir
671 DEFS
672 ECHO_C
673 ECHO_N
674 ECHO_T
675 LIBS
676 build_alias
677 host_alias
678 target_alias
679 PACKAGE_COPYRIGHT_YEAR
680 INSTALL_PROGRAM
681 INSTALL_SCRIPT
682 INSTALL_DATA
683 am__isrc
684 CYGPATH_W
685 PACKAGE
686 VERSION
687 ACLOCAL
688 AUTOCONF
689 AUTOMAKE
690 AUTOHEADER
691 MAKEINFO
692 install_sh
693 STRIP
694 INSTALL_STRIP_PROGRAM
695 MKDIR_P
696 mkdir_p
697 AWK
698 SET_MAKE
699 am__leading_dot
700 AMTAR
701 am__tar
702 am__untar
703 CC
704 CFLAGS
705 LDFLAGS
706 CPPFLAGS
707 ac_ct_CC
708 EXEEXT
709 OBJEXT
710 DEPDIR
711 am__include
712 am__quote
713 AMDEP_TRUE
714 AMDEP_FALSE
715 AMDEPBACKSLASH
716 CCDEPMODE
717 am__fastdepCC_TRUE
718 am__fastdepCC_FALSE
719 RANLIB
720 CPP
721 GREP
722 EGREP
723 WERROR_CFLAGS
724 WARN_CXXFLAGS
725 WARN_CFLAGS
726 YACC_SCRIPT
727 YACC_LIBRARY
728 LEX
729 LEX_OUTPUT_ROOT
730 LEXLIB
731 YACC
732 YFLAGS
733 M4
734 HELP2MAN
735 XSLTPROC
736 GL_COND_LIBTOOL_TRUE
737 GL_COND_LIBTOOL_FALSE
738 build
739 build_cpu
740 build_vendor
741 build_os
742 host
743 host_cpu
744 host_vendor
745 host_os
746 GNULIB_CHOWN
747 GNULIB_CLOSE
748 GNULIB_DUP2
749 GNULIB_ENVIRON
750 GNULIB_EUIDACCESS
751 GNULIB_FCHDIR
752 GNULIB_FSYNC
753 GNULIB_FTRUNCATE
754 GNULIB_GETCWD
755 GNULIB_GETDOMAINNAME
756 GNULIB_GETDTABLESIZE
757 GNULIB_GETHOSTNAME
758 GNULIB_GETLOGIN_R
759 GNULIB_GETPAGESIZE
760 GNULIB_GETUSERSHELL
761 GNULIB_LCHOWN
762 GNULIB_LSEEK
763 GNULIB_READLINK
764 GNULIB_SLEEP
765 GNULIB_UNISTD_H_SIGPIPE
766 GNULIB_WRITE
767 HAVE_DUP2
768 HAVE_EUIDACCESS
769 HAVE_FSYNC
770 HAVE_FTRUNCATE
771 HAVE_GETDOMAINNAME
772 HAVE_GETDTABLESIZE
773 HAVE_GETHOSTNAME
774 HAVE_GETPAGESIZE
775 HAVE_GETUSERSHELL
776 HAVE_READLINK
777 HAVE_SLEEP
778 HAVE_DECL_ENVIRON
779 HAVE_DECL_GETLOGIN_R
780 HAVE_OS_H
781 HAVE_SYS_PARAM_H
782 REPLACE_CHOWN
783 REPLACE_CLOSE
784 REPLACE_FCHDIR
785 REPLACE_GETCWD
786 REPLACE_GETPAGESIZE
787 REPLACE_LCHOWN
788 REPLACE_LSEEK
789 REPLACE_WRITE
790 UNISTD_H_HAVE_WINSOCK2_H
791 INCLUDE_NEXT
792 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
793 PRAGMA_SYSTEM_HEADER
794 NEXT_ERRNO_H
795 ERRNO_H
796 EMULTIHOP_HIDDEN
797 EMULTIHOP_VALUE
798 ENOLINK_HIDDEN
799 ENOLINK_VALUE
800 EOVERFLOW_HIDDEN
801 EOVERFLOW_VALUE
802 GETOPT_H
803 LIBINTL
804 LTLIBINTL
805 STDBOOL_H
806 HAVE__BOOL
807 HAVE_LONG_LONG_INT
808 HAVE_UNSIGNED_LONG_LONG_INT
809 HAVE_INTTYPES_H
810 HAVE_SYS_TYPES_H
811 NEXT_STDINT_H
812 HAVE_STDINT_H
813 HAVE_SYS_INTTYPES_H
814 HAVE_SYS_BITYPES_H
815 BITSIZEOF_PTRDIFF_T
816 BITSIZEOF_SIG_ATOMIC_T
817 BITSIZEOF_SIZE_T
818 BITSIZEOF_WCHAR_T
819 BITSIZEOF_WINT_T
820 HAVE_SIGNED_SIG_ATOMIC_T
821 HAVE_SIGNED_WCHAR_T
822 HAVE_SIGNED_WINT_T
823 PTRDIFF_T_SUFFIX
824 SIG_ATOMIC_T_SUFFIX
825 SIZE_T_SUFFIX
826 WCHAR_T_SUFFIX
827 WINT_T_SUFFIX
828 STDINT_H
829 PRI_MACROS_BROKEN
830 GNULIB_IMAXABS
831 GNULIB_IMAXDIV
832 GNULIB_STRTOIMAX
833 GNULIB_STRTOUMAX
834 HAVE_DECL_IMAXABS
835 HAVE_DECL_IMAXDIV
836 HAVE_DECL_STRTOIMAX
837 HAVE_DECL_STRTOUMAX
838 NEXT_INTTYPES_H
839 PRIPTR_PREFIX
840 INT32_MAX_LT_INTMAX_MAX
841 INT64_MAX_EQ_LONG_MAX
842 UINT32_MAX_LT_UINTMAX_MAX
843 UINT64_MAX_EQ_ULONG_MAX
844 INTTYPES_H
845 GLIBC21
846 LOCALCHARSET_TESTS_ENVIRONMENT
847 HAVE_MALLOC_POSIX
848 GNULIB_MALLOC_POSIX
849 GNULIB_REALLOC_POSIX
850 GNULIB_CALLOC_POSIX
851 GNULIB_ATOLL
852 GNULIB_GETLOADAVG
853 GNULIB_GETSUBOPT
854 GNULIB_MKDTEMP
855 GNULIB_MKSTEMP
856 GNULIB_PUTENV
857 GNULIB_RANDOM_R
858 GNULIB_RPMATCH
859 GNULIB_SETENV
860 GNULIB_STRTOD
861 GNULIB_STRTOLL
862 GNULIB_STRTOULL
863 GNULIB_UNSETENV
864 HAVE_ATOLL
865 HAVE_CALLOC_POSIX
866 HAVE_GETSUBOPT
867 HAVE_MKDTEMP
868 HAVE_REALLOC_POSIX
869 HAVE_RANDOM_R
870 HAVE_RPMATCH
871 HAVE_SETENV
872 HAVE_STRTOD
873 HAVE_STRTOLL
874 HAVE_STRTOULL
875 HAVE_STRUCT_RANDOM_DATA
876 HAVE_SYS_LOADAVG_H
877 HAVE_UNSETENV
878 HAVE_DECL_GETLOADAVG
879 REPLACE_MKSTEMP
880 REPLACE_PUTENV
881 REPLACE_STRTOD
882 VOID_UNSETENV
883 NEXT_STDLIB_H
884 GNULIB_MEMMEM
885 GNULIB_MEMPCPY
886 GNULIB_MEMRCHR
887 GNULIB_RAWMEMCHR
888 GNULIB_STPCPY
889 GNULIB_STPNCPY
890 GNULIB_STRCHRNUL
891 GNULIB_STRDUP
892 GNULIB_STRNDUP
893 GNULIB_STRNLEN
894 GNULIB_STRPBRK
895 GNULIB_STRSEP
896 GNULIB_STRSTR
897 GNULIB_STRCASESTR
898 GNULIB_STRTOK_R
899 GNULIB_MBSLEN
900 GNULIB_MBSNLEN
901 GNULIB_MBSCHR
902 GNULIB_MBSRCHR
903 GNULIB_MBSSTR
904 GNULIB_MBSCASECMP
905 GNULIB_MBSNCASECMP
906 GNULIB_MBSPCASECMP
907 GNULIB_MBSCASESTR
908 GNULIB_MBSCSPN
909 GNULIB_MBSPBRK
910 GNULIB_MBSSPN
911 GNULIB_MBSSEP
912 GNULIB_MBSTOK_R
913 GNULIB_STRERROR
914 GNULIB_STRSIGNAL
915 GNULIB_STRVERSCMP
916 HAVE_DECL_MEMMEM
917 HAVE_MEMPCPY
918 HAVE_DECL_MEMRCHR
919 HAVE_RAWMEMCHR
920 HAVE_STPCPY
921 HAVE_STPNCPY
922 HAVE_STRCHRNUL
923 HAVE_DECL_STRDUP
924 HAVE_STRNDUP
925 HAVE_DECL_STRNDUP
926 HAVE_DECL_STRNLEN
927 HAVE_STRPBRK
928 HAVE_STRSEP
929 HAVE_STRCASESTR
930 HAVE_DECL_STRTOK_R
931 HAVE_DECL_STRERROR
932 HAVE_DECL_STRSIGNAL
933 HAVE_STRVERSCMP
934 REPLACE_MEMMEM
935 REPLACE_STRDUP
936 REPLACE_STRSTR
937 REPLACE_STRCASESTR
938 REPLACE_STRERROR
939 REPLACE_STRSIGNAL
940 NEXT_STRING_H
941 NEXT_UNISTD_H
942 HAVE_UNISTD_H
943 GNULIB_WCWIDTH
944 HAVE_DECL_WCWIDTH
945 REPLACE_WCWIDTH
946 WCHAR_H
947 HAVE_WINT_T
948 HAVE_WCHAR_H
949 NEXT_WCHAR_H
950 HAVE_ISWCNTRL
951 NEXT_WCTYPE_H
952 HAVE_WCTYPE_H
953 WCTYPE_H
954 REPLACE_ISWCNTRL
955 LIBBISON_LIBDEPS
956 LIBBISON_LTLIBDEPS
957 USE_NLS
958 GETTEXT_MACRO_VERSION
959 MSGFMT
960 GMSGFMT
961 MSGFMT_015
962 GMSGFMT_015
963 XGETTEXT
964 XGETTEXT_015
965 MSGMERGE
966 XGETTEXT_EXTRA_OPTIONS
967 INTL_MACOSX_LIBS
968 LIBICONV
969 LTLIBICONV
970 INTLLIBS
971 POSUB
972 BISON_LOCALEDIR
973 aclocaldir
974 VALGRIND
975 CXX
976 CXXFLAGS
977 ac_ct_CXX
978 CXXDEPMODE
979 am__fastdepCXX_TRUE
980 am__fastdepCXX_FALSE
981 BISON_CXX_WORKS
982 BISON_CXX_WORKS_TRUE
983 BISON_CXX_WORKS_FALSE
984 AUTOM4TE
985 GCC
986 O0CFLAGS
987 O0CXXFLAGS
988 HAVE_GIJ_IN_PATH
989 HAVE_JAVA_IN_PATH
990 HAVE_JRE_IN_PATH
991 HAVE_JVIEW_IN_PATH
992 CONF_JAVA
993 CLASSPATH
994 CLASSPATH_SEPARATOR
995 HAVE_JAVA_ENVVAR
996 HAVE_GIJ
997 HAVE_JAVA
998 HAVE_JRE
999 HAVE_JVIEW
1000 HAVE_GCJ_IN_PATH
1001 HAVE_JAVAC_IN_PATH
1002 HAVE_JIKES_IN_PATH
1003 CONF_JAVAC
1004 HAVE_JAVAC_ENVVAR
1005 HAVE_GCJ_C
1006 HAVE_JAVAC
1007 HAVE_JIKES
1008 LIBOBJS
1009 LTLIBOBJS
1010 gl_LIBOBJS
1011 gl_LTLIBOBJS
1012 gltests_LIBOBJS
1013 gltests_LTLIBOBJS'
1014 ac_subst_files=''
1015 ac_user_opts='
1016 enable_option_checking
1017 enable_dependency_tracking
1018 enable_gcc_warnings
1019 enable_yacc
1020 with_dmalloc
1021 enable_nls
1022 with_gnu_ld
1023 enable_rpath
1024 with_libiconv_prefix
1025 with_libintl_prefix
1026 '
1027 ac_precious_vars='build_alias
1028 host_alias
1029 target_alias
1030 CC
1031 CFLAGS
1032 LDFLAGS
1033 LIBS
1034 CPPFLAGS
1035 CPP
1036 YACC
1037 YFLAGS
1038 CXX
1039 CXXFLAGS
1040 CCC'
1041
1042
1043 # Initialize some variables set by options.
1044 ac_init_help=
1045 ac_init_version=false
1046 ac_unrecognized_opts=
1047 ac_unrecognized_sep=
1048 # The variables have the same names as the options, with
1049 # dashes changed to underlines.
1050 cache_file=/dev/null
1051 exec_prefix=NONE
1052 no_create=
1053 no_recursion=
1054 prefix=NONE
1055 program_prefix=NONE
1056 program_suffix=NONE
1057 program_transform_name=s,x,x,
1058 silent=
1059 site=
1060 srcdir=
1061 verbose=
1062 x_includes=NONE
1063 x_libraries=NONE
1064
1065 # Installation directory options.
1066 # These are left unexpanded so users can "make install exec_prefix=/foo"
1067 # and all the variables that are supposed to be based on exec_prefix
1068 # by default will actually change.
1069 # Use braces instead of parens because sh, perl, etc. also accept them.
1070 # (The list follows the same order as the GNU Coding Standards.)
1071 bindir='${exec_prefix}/bin'
1072 sbindir='${exec_prefix}/sbin'
1073 libexecdir='${exec_prefix}/libexec'
1074 datarootdir='${prefix}/share'
1075 datadir='${datarootdir}'
1076 sysconfdir='${prefix}/etc'
1077 sharedstatedir='${prefix}/com'
1078 localstatedir='${prefix}/var'
1079 includedir='${prefix}/include'
1080 oldincludedir='/usr/include'
1081 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1082 infodir='${datarootdir}/info'
1083 htmldir='${docdir}'
1084 dvidir='${docdir}'
1085 pdfdir='${docdir}'
1086 psdir='${docdir}'
1087 libdir='${exec_prefix}/lib'
1088 localedir='${datarootdir}/locale'
1089 mandir='${datarootdir}/man'
1090
1091 ac_prev=
1092 ac_dashdash=
1093 for ac_option
1094 do
1095 # If the previous option needs an argument, assign it.
1096 if test -n "$ac_prev"; then
1097 eval $ac_prev=\$ac_option
1098 ac_prev=
1099 continue
1100 fi
1101
1102 case $ac_option in
1103 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1104 *) ac_optarg=yes ;;
1105 esac
1106
1107 # Accept the important Cygnus configure options, so we can diagnose typos.
1108
1109 case $ac_dashdash$ac_option in
1110 --)
1111 ac_dashdash=yes ;;
1112
1113 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1114 ac_prev=bindir ;;
1115 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1116 bindir=$ac_optarg ;;
1117
1118 -build | --build | --buil | --bui | --bu)
1119 ac_prev=build_alias ;;
1120 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1121 build_alias=$ac_optarg ;;
1122
1123 -cache-file | --cache-file | --cache-fil | --cache-fi \
1124 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1125 ac_prev=cache_file ;;
1126 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1127 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1128 cache_file=$ac_optarg ;;
1129
1130 --config-cache | -C)
1131 cache_file=config.cache ;;
1132
1133 -datadir | --datadir | --datadi | --datad)
1134 ac_prev=datadir ;;
1135 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1136 datadir=$ac_optarg ;;
1137
1138 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1139 | --dataroo | --dataro | --datar)
1140 ac_prev=datarootdir ;;
1141 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1142 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1143 datarootdir=$ac_optarg ;;
1144
1145 -disable-* | --disable-*)
1146 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1150 { (exit 1); exit 1; }; }
1151 ac_useropt_orig=$ac_useropt
1152 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1153 case $ac_user_opts in
1154 *"
1155 "enable_$ac_useropt"
1156 "*) ;;
1157 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disabl e-$ac_useropt_orig"
1158 ac_unrecognized_sep=', ';;
1159 esac
1160 eval enable_$ac_useropt=no ;;
1161
1162 -docdir | --docdir | --docdi | --doc | --do)
1163 ac_prev=docdir ;;
1164 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1165 docdir=$ac_optarg ;;
1166
1167 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1168 ac_prev=dvidir ;;
1169 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1170 dvidir=$ac_optarg ;;
1171
1172 -enable-* | --enable-*)
1173 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1177 { (exit 1); exit 1; }; }
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1181 *"
1182 "enable_$ac_useropt"
1183 "*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable -$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1186 esac
1187 eval enable_$ac_useropt=\$ac_optarg ;;
1188
1189 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1190 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1191 | --exec | --exe | --ex)
1192 ac_prev=exec_prefix ;;
1193 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1194 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1195 | --exec=* | --exe=* | --ex=*)
1196 exec_prefix=$ac_optarg ;;
1197
1198 -gas | --gas | --ga | --g)
1199 # Obsolete; use --with-gas.
1200 with_gas=yes ;;
1201
1202 -help | --help | --hel | --he | -h)
1203 ac_init_help=long ;;
1204 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1205 ac_init_help=recursive ;;
1206 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1207 ac_init_help=short ;;
1208
1209 -host | --host | --hos | --ho)
1210 ac_prev=host_alias ;;
1211 -host=* | --host=* | --hos=* | --ho=*)
1212 host_alias=$ac_optarg ;;
1213
1214 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1215 ac_prev=htmldir ;;
1216 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1217 | --ht=*)
1218 htmldir=$ac_optarg ;;
1219
1220 -includedir | --includedir | --includedi | --included | --include \
1221 | --includ | --inclu | --incl | --inc)
1222 ac_prev=includedir ;;
1223 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1224 | --includ=* | --inclu=* | --incl=* | --inc=*)
1225 includedir=$ac_optarg ;;
1226
1227 -infodir | --infodir | --infodi | --infod | --info | --inf)
1228 ac_prev=infodir ;;
1229 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1230 infodir=$ac_optarg ;;
1231
1232 -libdir | --libdir | --libdi | --libd)
1233 ac_prev=libdir ;;
1234 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1235 libdir=$ac_optarg ;;
1236
1237 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1238 | --libexe | --libex | --libe)
1239 ac_prev=libexecdir ;;
1240 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1241 | --libexe=* | --libex=* | --libe=*)
1242 libexecdir=$ac_optarg ;;
1243
1244 -localedir | --localedir | --localedi | --localed | --locale)
1245 ac_prev=localedir ;;
1246 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1247 localedir=$ac_optarg ;;
1248
1249 -localstatedir | --localstatedir | --localstatedi | --localstated \
1250 | --localstate | --localstat | --localsta | --localst | --locals)
1251 ac_prev=localstatedir ;;
1252 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1253 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1254 localstatedir=$ac_optarg ;;
1255
1256 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1257 ac_prev=mandir ;;
1258 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1259 mandir=$ac_optarg ;;
1260
1261 -nfp | --nfp | --nf)
1262 # Obsolete; use --without-fp.
1263 with_fp=no ;;
1264
1265 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1266 | --no-cr | --no-c | -n)
1267 no_create=yes ;;
1268
1269 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1270 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1271 no_recursion=yes ;;
1272
1273 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1274 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1275 | --oldin | --oldi | --old | --ol | --o)
1276 ac_prev=oldincludedir ;;
1277 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1278 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1279 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1280 oldincludedir=$ac_optarg ;;
1281
1282 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1283 ac_prev=prefix ;;
1284 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1285 prefix=$ac_optarg ;;
1286
1287 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1288 | --program-pre | --program-pr | --program-p)
1289 ac_prev=program_prefix ;;
1290 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1291 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1292 program_prefix=$ac_optarg ;;
1293
1294 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1295 | --program-suf | --program-su | --program-s)
1296 ac_prev=program_suffix ;;
1297 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1298 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1299 program_suffix=$ac_optarg ;;
1300
1301 -program-transform-name | --program-transform-name \
1302 | --program-transform-nam | --program-transform-na \
1303 | --program-transform-n | --program-transform- \
1304 | --program-transform | --program-transfor \
1305 | --program-transfo | --program-transf \
1306 | --program-trans | --program-tran \
1307 | --progr-tra | --program-tr | --program-t)
1308 ac_prev=program_transform_name ;;
1309 -program-transform-name=* | --program-transform-name=* \
1310 | --program-transform-nam=* | --program-transform-na=* \
1311 | --program-transform-n=* | --program-transform-=* \
1312 | --program-transform=* | --program-transfor=* \
1313 | --program-transfo=* | --program-transf=* \
1314 | --program-trans=* | --program-tran=* \
1315 | --progr-tra=* | --program-tr=* | --program-t=*)
1316 program_transform_name=$ac_optarg ;;
1317
1318 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1319 ac_prev=pdfdir ;;
1320 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1321 pdfdir=$ac_optarg ;;
1322
1323 -psdir | --psdir | --psdi | --psd | --ps)
1324 ac_prev=psdir ;;
1325 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1326 psdir=$ac_optarg ;;
1327
1328 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1329 | -silent | --silent | --silen | --sile | --sil)
1330 silent=yes ;;
1331
1332 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1333 ac_prev=sbindir ;;
1334 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1335 | --sbi=* | --sb=*)
1336 sbindir=$ac_optarg ;;
1337
1338 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1339 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1340 | --sharedst | --shareds | --shared | --share | --shar \
1341 | --sha | --sh)
1342 ac_prev=sharedstatedir ;;
1343 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1344 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1345 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1346 | --sha=* | --sh=*)
1347 sharedstatedir=$ac_optarg ;;
1348
1349 -site | --site | --sit)
1350 ac_prev=site ;;
1351 -site=* | --site=* | --sit=*)
1352 site=$ac_optarg ;;
1353
1354 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1355 ac_prev=srcdir ;;
1356 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1357 srcdir=$ac_optarg ;;
1358
1359 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1360 | --syscon | --sysco | --sysc | --sys | --sy)
1361 ac_prev=sysconfdir ;;
1362 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1363 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1364 sysconfdir=$ac_optarg ;;
1365
1366 -target | --target | --targe | --targ | --tar | --ta | --t)
1367 ac_prev=target_alias ;;
1368 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1369 target_alias=$ac_optarg ;;
1370
1371 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1372 verbose=yes ;;
1373
1374 -version | --version | --versio | --versi | --vers | -V)
1375 ac_init_version=: ;;
1376
1377 -with-* | --with-*)
1378 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1379 # Reject names that are not valid shell variable names.
1380 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1381 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1382 { (exit 1); exit 1; }; }
1383 ac_useropt_orig=$ac_useropt
1384 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1385 case $ac_user_opts in
1386 *"
1387 "with_$ac_useropt"
1388 "*) ;;
1389 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ ac_useropt_orig"
1390 ac_unrecognized_sep=', ';;
1391 esac
1392 eval with_$ac_useropt=\$ac_optarg ;;
1393
1394 -without-* | --without-*)
1395 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1396 # Reject names that are not valid shell variable names.
1397 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1398 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1399 { (exit 1); exit 1; }; }
1400 ac_useropt_orig=$ac_useropt
1401 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1402 case $ac_user_opts in
1403 *"
1404 "with_$ac_useropt"
1405 "*) ;;
1406 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--withou t-$ac_useropt_orig"
1407 ac_unrecognized_sep=', ';;
1408 esac
1409 eval with_$ac_useropt=no ;;
1410
1411 --x)
1412 # Obsolete; use --with-x.
1413 with_x=yes ;;
1414
1415 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1416 | --x-incl | --x-inc | --x-in | --x-i)
1417 ac_prev=x_includes ;;
1418 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1419 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1420 x_includes=$ac_optarg ;;
1421
1422 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1423 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1424 ac_prev=x_libraries ;;
1425 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1426 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1427 x_libraries=$ac_optarg ;;
1428
1429 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1430 Try \`$0 --help' for more information." >&2
1431 { (exit 1); exit 1; }; }
1432 ;;
1433
1434 *=*)
1435 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1436 # Reject names that are not valid shell variable names.
1437 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1438 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1439 { (exit 1); exit 1; }; }
1440 eval $ac_envvar=\$ac_optarg
1441 export $ac_envvar ;;
1442
1443 *)
1444 # FIXME: should be removed in autoconf 3.0.
1445 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1446 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1447 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1448 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_opti on}
1449 ;;
1450
1451 esac
1452 done
1453
1454 if test -n "$ac_prev"; then
1455 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1456 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1457 { (exit 1); exit 1; }; }
1458 fi
1459
1460 if test -n "$ac_unrecognized_opts"; then
1461 case $enable_option_checking in
1462 no) ;;
1463 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opt s" >&2
1464 { (exit 1); exit 1; }; } ;;
1465 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opt s" >&2 ;;
1466 esac
1467 fi
1468
1469 # Check all directory arguments for consistency.
1470 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1471 datadir sysconfdir sharedstatedir localstatedir includedir \
1472 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1473 libdir localedir mandir
1474 do
1475 eval ac_val=\$$ac_var
1476 # Remove trailing slashes.
1477 case $ac_val in
1478 */ )
1479 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1480 eval $ac_var=\$ac_val;;
1481 esac
1482 # Be sure to have absolute directory names.
1483 case $ac_val in
1484 [\\/$]* | ?:[\\/]* ) continue;;
1485 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1486 esac
1487 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1488 { (exit 1); exit 1; }; }
1489 done
1490
1491 # There might be people who depend on the old broken behavior: `$host'
1492 # used to hold the argument of --host etc.
1493 # FIXME: To remove some day.
1494 build=$build_alias
1495 host=$host_alias
1496 target=$target_alias
1497
1498 # FIXME: To remove some day.
1499 if test "x$host_alias" != x; then
1500 if test "x$build_alias" = x; then
1501 cross_compiling=maybe
1502 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1503 If a cross compiler is detected then cross compile mode will be used." >&2
1504 elif test "x$build_alias" != "x$host_alias"; then
1505 cross_compiling=yes
1506 fi
1507 fi
1508
1509 ac_tool_prefix=
1510 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1511
1512 test "$silent" = yes && exec 6>/dev/null
1513
1514
1515 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1516 ac_ls_di=`ls -di .` &&
1517 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1518 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1519 { (exit 1); exit 1; }; }
1520 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1521 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1522 { (exit 1); exit 1; }; }
1523
1524
1525 # Find the source files, if location was not specified.
1526 if test -z "$srcdir"; then
1527 ac_srcdir_defaulted=yes
1528 # Try the directory containing this script, then the parent directory.
1529 ac_confdir=`$as_dirname -- "$as_myself" ||
1530 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1531 X"$as_myself" : 'X\(//\)[^/]' \| \
1532 X"$as_myself" : 'X\(//\)$' \| \
1533 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1534 $as_echo X"$as_myself" |
1535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1536 s//\1/
1537 q
1538 }
1539 /^X\(\/\/\)[^/].*/{
1540 s//\1/
1541 q
1542 }
1543 /^X\(\/\/\)$/{
1544 s//\1/
1545 q
1546 }
1547 /^X\(\/\).*/{
1548 s//\1/
1549 q
1550 }
1551 s/.*/./; q'`
1552 srcdir=$ac_confdir
1553 if test ! -r "$srcdir/$ac_unique_file"; then
1554 srcdir=..
1555 fi
1556 else
1557 ac_srcdir_defaulted=no
1558 fi
1559 if test ! -r "$srcdir/$ac_unique_file"; then
1560 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1561 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" > &2
1562 { (exit 1); exit 1; }; }
1563 fi
1564 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1565 ac_abs_confdir=`(
1566 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error : $ac_msg" >&2
1567 { (exit 1); exit 1; }; }
1568 pwd)`
1569 # When building in place, set srcdir=.
1570 if test "$ac_abs_confdir" = "$ac_pwd"; then
1571 srcdir=.
1572 fi
1573 # Remove unnecessary trailing slashes from srcdir.
1574 # Double slashes in file names in object file debugging info
1575 # mess up M-x gdb in Emacs.
1576 case $srcdir in
1577 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1578 esac
1579 for ac_var in $ac_precious_vars; do
1580 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1581 eval ac_env_${ac_var}_value=\$${ac_var}
1582 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1583 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1584 done
1585
1586 #
1587 # Report the --help message.
1588 #
1589 if test "$ac_init_help" = "long"; then
1590 # Omit some internal or obsolete options to make the list less imposing.
1591 # This message is too long to be a string in the A/UX 3.1 sh.
1592 cat <<_ACEOF
1593 \`configure' configures GNU Bison 2.4.1 to adapt to many kinds of systems.
1594
1595 Usage: $0 [OPTION]... [VAR=VALUE]...
1596
1597 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1598 VAR=VALUE. See below for descriptions of some of the useful variables.
1599
1600 Defaults for the options are specified in brackets.
1601
1602 Configuration:
1603 -h, --help display this help and exit
1604 --help=short display options specific to this package
1605 --help=recursive display the short help of all the included packages
1606 -V, --version display version information and exit
1607 -q, --quiet, --silent do not print \`checking...' messages
1608 --cache-file=FILE cache test results in FILE [disabled]
1609 -C, --config-cache alias for \`--cache-file=config.cache'
1610 -n, --no-create do not create output files
1611 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1612
1613 Installation directories:
1614 --prefix=PREFIX install architecture-independent files in PREFIX
1615 [$ac_default_prefix]
1616 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1617 [PREFIX]
1618
1619 By default, \`make install' will install all the files in
1620 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1621 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1622 for instance \`--prefix=\$HOME'.
1623
1624 For better control, use the options below.
1625
1626 Fine tuning of the installation directories:
1627 --bindir=DIR user executables [EPREFIX/bin]
1628 --sbindir=DIR system admin executables [EPREFIX/sbin]
1629 --libexecdir=DIR program executables [EPREFIX/libexec]
1630 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1631 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1632 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1633 --libdir=DIR object code libraries [EPREFIX/lib]
1634 --includedir=DIR C header files [PREFIX/include]
1635 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1636 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1637 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1638 --infodir=DIR info documentation [DATAROOTDIR/info]
1639 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1640 --mandir=DIR man documentation [DATAROOTDIR/man]
1641 --docdir=DIR documentation root [DATAROOTDIR/doc/bison]
1642 --htmldir=DIR html documentation [DOCDIR]
1643 --dvidir=DIR dvi documentation [DOCDIR]
1644 --pdfdir=DIR pdf documentation [DOCDIR]
1645 --psdir=DIR ps documentation [DOCDIR]
1646 _ACEOF
1647
1648 cat <<\_ACEOF
1649
1650 Program names:
1651 --program-prefix=PREFIX prepend PREFIX to installed program names
1652 --program-suffix=SUFFIX append SUFFIX to installed program names
1653 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1654
1655 System types:
1656 --build=BUILD configure for building on BUILD [guessed]
1657 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1658 _ACEOF
1659 fi
1660
1661 if test -n "$ac_init_help"; then
1662 case $ac_init_help in
1663 short | recursive ) echo "Configuration of GNU Bison 2.4.1:";;
1664 esac
1665 cat <<\_ACEOF
1666
1667 Optional Features:
1668 --disable-option-checking ignore unrecognized --enable/--with options
1669 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1670 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1671 --disable-dependency-tracking speeds up one-time build
1672 --enable-dependency-tracking do not reject slow dependency extractors
1673 --enable-gcc-warnings turn on lots of GCC warnings (not recommended)
1674 --disable-yacc do not build a yacc command or an -ly library
1675 --disable-nls do not use Native Language Support
1676 --disable-rpath do not hardcode runtime library paths
1677
1678 Optional Packages:
1679 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1680 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1681 --with-dmalloc use dmalloc, as in
1682 http://www.dmalloc.com/dmalloc.tar.gz
1683 --with-gnu-ld assume the C compiler uses GNU ld default=no
1684 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1685 --without-libiconv-prefix don't search for libiconv in includedir and libd ir
1686 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1687 --without-libintl-prefix don't search for libintl in includedir and libdir
1688
1689 Some influential environment variables:
1690 CC C compiler command
1691 CFLAGS C compiler flags
1692 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1693 nonstandard directory <lib dir>
1694 LIBS libraries to pass to the linker, e.g. -l<library>
1695 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1696 you have headers in a nonstandard directory <include dir>
1697 CPP C preprocessor
1698 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1699 the first program found out of: `bison -y', `byacc', `yacc'.
1700 YFLAGS The list of arguments that will be passed by default to $YACC.
1701 This script will default YFLAGS to the empty string to avoid a
1702 default value of `-d' given by some make applications.
1703 CXX C++ compiler command
1704 CXXFLAGS C++ compiler flags
1705
1706 Use these variables to override the choices made by `configure' or to help
1707 it to find libraries and programs with nonstandard names/locations.
1708
1709 Report bugs to <bug-bison@gnu.org>.
1710 _ACEOF
1711 ac_status=$?
1712 fi
1713
1714 if test "$ac_init_help" = "recursive"; then
1715 # If there are subdirs, report their specific --help.
1716 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1717 test -d "$ac_dir" ||
1718 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1719 continue
1720 ac_builddir=.
1721
1722 case "$ac_dir" in
1723 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1724 *)
1725 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1726 # A ".." for each directory in $ac_dir_suffix.
1727 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1728 case $ac_top_builddir_sub in
1729 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1730 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1731 esac ;;
1732 esac
1733 ac_abs_top_builddir=$ac_pwd
1734 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1735 # for backward compatibility:
1736 ac_top_builddir=$ac_top_build_prefix
1737
1738 case $srcdir in
1739 .) # We are building in place.
1740 ac_srcdir=.
1741 ac_top_srcdir=$ac_top_builddir_sub
1742 ac_abs_top_srcdir=$ac_pwd ;;
1743 [\\/]* | ?:[\\/]* ) # Absolute name.
1744 ac_srcdir=$srcdir$ac_dir_suffix;
1745 ac_top_srcdir=$srcdir
1746 ac_abs_top_srcdir=$srcdir ;;
1747 *) # Relative name.
1748 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1749 ac_top_srcdir=$ac_top_build_prefix$srcdir
1750 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1751 esac
1752 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1753
1754 cd "$ac_dir" || { ac_status=$?; continue; }
1755 # Check for guested configure.
1756 if test -f "$ac_srcdir/configure.gnu"; then
1757 echo &&
1758 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1759 elif test -f "$ac_srcdir/configure"; then
1760 echo &&
1761 $SHELL "$ac_srcdir/configure" --help=recursive
1762 else
1763 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1764 fi || ac_status=$?
1765 cd "$ac_pwd" || { ac_status=$?; break; }
1766 done
1767 fi
1768
1769 test -n "$ac_init_help" && exit $ac_status
1770 if $ac_init_version; then
1771 cat <<\_ACEOF
1772 GNU Bison configure 2.4.1
1773 generated by GNU Autoconf 2.62
1774
1775 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1776 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1777 This configure script is free software; the Free Software Foundation
1778 gives unlimited permission to copy, distribute and modify it.
1779 _ACEOF
1780 exit
1781 fi
1782 cat >config.log <<_ACEOF
1783 This file contains any messages produced by compilers while
1784 running configure, to aid debugging if configure makes a mistake.
1785
1786 It was created by GNU Bison $as_me 2.4.1, which was
1787 generated by GNU Autoconf 2.62. Invocation command line was
1788
1789 $ $0 $@
1790
1791 _ACEOF
1792 exec 5>>config.log
1793 {
1794 cat <<_ASUNAME
1795 ## --------- ##
1796 ## Platform. ##
1797 ## --------- ##
1798
1799 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1800 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1801 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1802 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1803 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1804
1805 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1806 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1807
1808 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1809 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1810 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1811 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1812 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1813 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1814 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1815
1816 _ASUNAME
1817
1818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819 for as_dir in $PATH
1820 do
1821 IFS=$as_save_IFS
1822 test -z "$as_dir" && as_dir=.
1823 $as_echo "PATH: $as_dir"
1824 done
1825 IFS=$as_save_IFS
1826
1827 } >&5
1828
1829 cat >&5 <<_ACEOF
1830
1831
1832 ## ----------- ##
1833 ## Core tests. ##
1834 ## ----------- ##
1835
1836 _ACEOF
1837
1838
1839 # Keep a trace of the command line.
1840 # Strip out --no-create and --no-recursion so they do not pile up.
1841 # Strip out --silent because we don't want to record it for future runs.
1842 # Also quote any args containing shell meta-characters.
1843 # Make two passes to allow for proper duplicate-argument suppression.
1844 ac_configure_args=
1845 ac_configure_args0=
1846 ac_configure_args1=
1847 ac_must_keep_next=false
1848 for ac_pass in 1 2
1849 do
1850 for ac_arg
1851 do
1852 case $ac_arg in
1853 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1854 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1855 | -silent | --silent | --silen | --sile | --sil)
1856 continue ;;
1857 *\'*)
1858 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1859 esac
1860 case $ac_pass in
1861 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1862 2)
1863 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1864 if test $ac_must_keep_next = true; then
1865 ac_must_keep_next=false # Got value, back to normal.
1866 else
1867 case $ac_arg in
1868 *=* | --config-cache | -C | -disable-* | --disable-* \
1869 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1870 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1871 | -with-* | --with-* | -without-* | --without-* | --x)
1872 case "$ac_configure_args0 " in
1873 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1874 esac
1875 ;;
1876 -* ) ac_must_keep_next=true ;;
1877 esac
1878 fi
1879 ac_configure_args="$ac_configure_args '$ac_arg'"
1880 ;;
1881 esac
1882 done
1883 done
1884 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_ configure_args0=; export ac_configure_args0; }
1885 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_ configure_args1=; export ac_configure_args1; }
1886
1887 # When interrupted or exit'd, cleanup temporary files, and complete
1888 # config.log. We remove comments because anyway the quotes in there
1889 # would cause problems or look ugly.
1890 # WARNING: Use '\'' to represent an apostrophe within the trap.
1891 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1892 trap 'exit_status=$?
1893 # Save into config.log some information that might help in debugging.
1894 {
1895 echo
1896
1897 cat <<\_ASBOX
1898 ## ---------------- ##
1899 ## Cache variables. ##
1900 ## ---------------- ##
1901 _ASBOX
1902 echo
1903 # The following way of writing the cache mishandles newlines in values,
1904 (
1905 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\ ''`; do
1906 eval ac_val=\$$ac_var
1907 case $ac_val in #(
1908 *${as_nl}*)
1909 case $ac_var in #(
1910 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contai ns a newline." >&5
1911 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1912 esac
1913 case $ac_var in #(
1914 _ | IFS | as_nl) ;; #(
1915 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1916 *) $as_unset $ac_var ;;
1917 esac ;;
1918 esac
1919 done
1920 (set) 2>&1 |
1921 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1922 *${as_nl}ac_space=\ *)
1923 sed -n \
1924 "s/'\''/'\''\\\\'\'''\''/g;
1925 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\'' /p"
1926 ;; #(
1927 *)
1928 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1929 ;;
1930 esac |
1931 sort
1932 )
1933 echo
1934
1935 cat <<\_ASBOX
1936 ## ----------------- ##
1937 ## Output variables. ##
1938 ## ----------------- ##
1939 _ASBOX
1940 echo
1941 for ac_var in $ac_subst_vars
1942 do
1943 eval ac_val=\$$ac_var
1944 case $ac_val in
1945 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"` ;;
1946 esac
1947 $as_echo "$ac_var='\''$ac_val'\''"
1948 done | sort
1949 echo
1950
1951 if test -n "$ac_subst_files"; then
1952 cat <<\_ASBOX
1953 ## ------------------- ##
1954 ## File substitutions. ##
1955 ## ------------------- ##
1956 _ASBOX
1957 echo
1958 for ac_var in $ac_subst_files
1959 do
1960 eval ac_val=\$$ac_var
1961 case $ac_val in
1962 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g "`;;
1963 esac
1964 $as_echo "$ac_var='\''$ac_val'\''"
1965 done | sort
1966 echo
1967 fi
1968
1969 if test -s confdefs.h; then
1970 cat <<\_ASBOX
1971 ## ----------- ##
1972 ## confdefs.h. ##
1973 ## ----------- ##
1974 _ASBOX
1975 echo
1976 cat confdefs.h
1977 echo
1978 fi
1979 test "$ac_signal" != 0 &&
1980 $as_echo "$as_me: caught signal $ac_signal"
1981 $as_echo "$as_me: exit $exit_status"
1982 } >&5
1983 rm -f core *.core core.conftest.* &&
1984 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1985 exit $exit_status
1986 ' 0
1987 for ac_signal in 1 2 13 15; do
1988 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1989 done
1990 ac_signal=0
1991
1992 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1993 rm -f -r conftest* confdefs.h
1994
1995 # Predefined preprocessor variables.
1996
1997 cat >>confdefs.h <<_ACEOF
1998 #define PACKAGE_NAME "$PACKAGE_NAME"
1999 _ACEOF
2000
2001
2002 cat >>confdefs.h <<_ACEOF
2003 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2004 _ACEOF
2005
2006
2007 cat >>confdefs.h <<_ACEOF
2008 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2009 _ACEOF
2010
2011
2012 cat >>confdefs.h <<_ACEOF
2013 #define PACKAGE_STRING "$PACKAGE_STRING"
2014 _ACEOF
2015
2016
2017 cat >>confdefs.h <<_ACEOF
2018 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2019 _ACEOF
2020
2021
2022 # Let the site file select an alternate cache file if it wants to.
2023 # Prefer an explicitly selected file to automatically selected ones.
2024 ac_site_file1=NONE
2025 ac_site_file2=NONE
2026 if test -n "$CONFIG_SITE"; then
2027 ac_site_file1=$CONFIG_SITE
2028 elif test "x$prefix" != xNONE; then
2029 ac_site_file1=$prefix/share/config.site
2030 ac_site_file2=$prefix/etc/config.site
2031 else
2032 ac_site_file1=$ac_default_prefix/share/config.site
2033 ac_site_file2=$ac_default_prefix/etc/config.site
2034 fi
2035 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2036 do
2037 test "x$ac_site_file" = xNONE && continue
2038 if test -r "$ac_site_file"; then
2039 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2040 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2041 sed 's/^/| /' "$ac_site_file" >&5
2042 . "$ac_site_file"
2043 fi
2044 done
2045
2046 if test -r "$cache_file"; then
2047 # Some versions of bash will fail to source /dev/null (special
2048 # files actually), so we avoid doing that.
2049 if test -f "$cache_file"; then
2050 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2051 $as_echo "$as_me: loading cache $cache_file" >&6;}
2052 case $cache_file in
2053 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2054 *) . "./$cache_file";;
2055 esac
2056 fi
2057 else
2058 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2059 $as_echo "$as_me: creating cache $cache_file" >&6;}
2060 >$cache_file
2061 fi
2062
2063 ac_header_list="$ac_header_list locale.h"
2064 ac_header_list="$ac_header_list errno.h"
2065 ac_header_list="$ac_header_list stdint.h"
2066 ac_header_list="$ac_header_list wchar.h"
2067 ac_header_list="$ac_header_list inttypes.h"
2068 ac_func_list="$ac_func_list isascii"
2069 ac_func_list="$ac_func_list mbsinit"
2070 ac_header_list="$ac_header_list stdlib.h"
2071 ac_header_list="$ac_header_list sys/socket.h"
2072 ac_header_list="$ac_header_list string.h"
2073 ac_header_list="$ac_header_list unistd.h"
2074 ac_func_list="$ac_func_list pipe"
2075 ac_func_list="$ac_func_list iswcntrl"
2076 ac_header_list="$ac_header_list wctype.h"
2077 ac_func_list="$ac_func_list wcwidth"
2078 ac_func_list="$ac_func_list setlocale"
2079 gt_needs="$gt_needs need-formatstring-macros"
2080 # Check that the precious variables saved in the cache have kept the same
2081 # value.
2082 ac_cache_corrupted=false
2083 for ac_var in $ac_precious_vars; do
2084 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2085 eval ac_new_set=\$ac_env_${ac_var}_set
2086 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2087 eval ac_new_val=\$ac_env_${ac_var}_value
2088 case $ac_old_set,$ac_new_set in
2089 set,)
2090 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2091 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous ru n" >&2;}
2092 ac_cache_corrupted=: ;;
2093 ,set)
2094 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2095 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2096 ac_cache_corrupted=: ;;
2097 ,);;
2098 *)
2099 if test "x$ac_old_val" != "x$ac_new_val"; then
2100 # differences in whitespace do not lead to failure.
2101 ac_old_val_w=`echo x $ac_old_val`
2102 ac_new_val_w=`echo x $ac_new_val`
2103 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2104 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the pr evious run:" >&5
2105 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2106 ac_cache_corrupted=:
2107 else
2108 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \` $ac_var' since the previous run:" >&5
2109 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the p revious run:" >&2;}
2110 eval $ac_var=\$ac_old_val
2111 fi
2112 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2113 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2114 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2115 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2116 fi;;
2117 esac
2118 # Pass precious variables to config.status.
2119 if test "$ac_new_set" = set; then
2120 case $ac_new_val in
2121 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2122 *) ac_arg=$ac_var=$ac_new_val ;;
2123 esac
2124 case " $ac_configure_args " in
2125 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2126 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2127 esac
2128 fi
2129 done
2130 if $ac_cache_corrupted; then
2131 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise t he build" >&5
2132 $as_echo "$as_me: error: changes in the environment can compromise the build" >& 2;}
2133 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_ file' and start over" >&5
2134 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and star t over" >&2;}
2135 { (exit 1); exit 1; }; }
2136 fi
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162 ac_ext=c
2163 ac_cpp='$CPP $CPPFLAGS'
2164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
2166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2167
2168
2169
2170 cat >>confdefs.h <<\_ACEOF
2171 #define PACKAGE_COPYRIGHT_YEAR 2008
2172 _ACEOF
2173
2174 PACKAGE_COPYRIGHT_YEAR=2008
2175
2176
2177 ac_aux_dir=
2178 for ac_dir in build-aux "$srcdir"/build-aux; do
2179 if test -f "$ac_dir/install-sh"; then
2180 ac_aux_dir=$ac_dir
2181 ac_install_sh="$ac_aux_dir/install-sh -c"
2182 break
2183 elif test -f "$ac_dir/install.sh"; then
2184 ac_aux_dir=$ac_dir
2185 ac_install_sh="$ac_aux_dir/install.sh -c"
2186 break
2187 elif test -f "$ac_dir/shtool"; then
2188 ac_aux_dir=$ac_dir
2189 ac_install_sh="$ac_aux_dir/shtool install -c"
2190 break
2191 fi
2192 done
2193 if test -z "$ac_aux_dir"; then
2194 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in b uild-aux \"$srcdir\"/build-aux" >&5
2195 $as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$sr cdir\"/build-aux" >&2;}
2196 { (exit 1); exit 1; }; }
2197 fi
2198
2199 # These three variables are undocumented and unsupported,
2200 # and are intended to be withdrawn in a future Autoconf release.
2201 # They can cause serious problems if a builder's source tree is in a directory
2202 # whose full name contains unusual characters.
2203 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2204 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2205 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2206
2207
2208
2209
2210 # We don't have a file m4/Makefile.am, so we need Automake 1.8 or later.
2211 # We want gnits strictness only when rolling a formal release so that we can,
2212 # for example, run make dist at other times without being required to add a
2213 # bogus NEWS entry.
2214 am__api_version='1.10'
2215
2216 # Find a good install program. We prefer a C program (faster),
2217 # so one script is as good as another. But avoid the broken or
2218 # incompatible versions:
2219 # SysV /etc/install, /usr/sbin/install
2220 # SunOS /usr/etc/install
2221 # IRIX /sbin/install
2222 # AIX /bin/install
2223 # AmigaOS /C/install, which installs bootblocks on floppy discs
2224 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2225 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2226 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2227 # OS/2's system install, which has a completely different semantic
2228 # ./install, which can be erroneously created by make from ./install.sh.
2229 # Reject install programs that cannot install multiple files.
2230 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2231 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2232 if test -z "$INSTALL"; then
2233 if test "${ac_cv_path_install+set}" = set; then
2234 $as_echo_n "(cached) " >&6
2235 else
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 for as_dir in $PATH
2238 do
2239 IFS=$as_save_IFS
2240 test -z "$as_dir" && as_dir=.
2241 # Account for people who put trailing slashes in PATH elements.
2242 case $as_dir/ in
2243 ./ | .// | /cC/* | \
2244 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2245 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2246 /usr/ucb/* ) ;;
2247 *)
2248 # OSF1 and SCO ODT 3.0 have their own names for install.
2249 # Don't use installbsd from OSF since it installs stuff as root
2250 # by default.
2251 for ac_prog in ginstall scoinst install; do
2252 for ac_exec_ext in '' $ac_executable_extensions; do
2253 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_p rog$ac_exec_ext"; }; then
2254 if test $ac_prog = install &&
2255 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2256 # AIX install. It has an incompatible calling convention.
2257 :
2258 elif test $ac_prog = install &&
2259 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2260 # program-specific install script used by HP pwplus--don't use.
2261 :
2262 else
2263 rm -rf conftest.one conftest.two conftest.dir
2264 echo one > conftest.one
2265 echo two > conftest.two
2266 mkdir conftest.dir
2267 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd `/conftest.dir" &&
2268 test -s conftest.one && test -s conftest.two &&
2269 test -s conftest.dir/conftest.one &&
2270 test -s conftest.dir/conftest.two
2271 then
2272 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2273 break 3
2274 fi
2275 fi
2276 fi
2277 done
2278 done
2279 ;;
2280 esac
2281
2282 done
2283 IFS=$as_save_IFS
2284
2285 rm -rf conftest.one conftest.two conftest.dir
2286
2287 fi
2288 if test "${ac_cv_path_install+set}" = set; then
2289 INSTALL=$ac_cv_path_install
2290 else
2291 # As a last resort, use the slow shell script. Don't cache a
2292 # value for INSTALL within a source directory, because that will
2293 # break other packages using the cache if that directory is
2294 # removed, or if the value is a relative name.
2295 INSTALL=$ac_install_sh
2296 fi
2297 fi
2298 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2299 $as_echo "$INSTALL" >&6; }
2300
2301 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2302 # It thinks the first close brace ends the variable substitution.
2303 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2304
2305 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2306
2307 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2308
2309 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2310 $as_echo_n "checking whether build environment is sane... " >&6; }
2311 # Just in case
2312 sleep 1
2313 echo timestamp > conftest.file
2314 # Do `set' in a subshell so we don't clobber the current shell's
2315 # arguments. Must try -L first in case configure is actually a
2316 # symlink; some systems play weird games with the mod time of symlinks
2317 # (eg FreeBSD returns the mod time of the symlink's containing
2318 # directory).
2319 if (
2320 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2321 if test "$*" = "X"; then
2322 # -L didn't work.
2323 set X `ls -t $srcdir/configure conftest.file`
2324 fi
2325 rm -f conftest.file
2326 if test "$*" != "X $srcdir/configure conftest.file" \
2327 && test "$*" != "X conftest.file $srcdir/configure"; then
2328
2329 # If neither matched, then we have a broken ls. This can happen
2330 # if, for instance, CONFIG_SHELL is bash and it inherits a
2331 # broken ls alias from the environment. This has actually
2332 # happened. Such a system could not be considered "sane".
2333 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure the re is not a broken
2334 alias in your environment" >&5
2335 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2336 alias in your environment" >&2;}
2337 { (exit 1); exit 1; }; }
2338 fi
2339
2340 test "$2" = conftest.file
2341 )
2342 then
2343 # Ok.
2344 :
2345 else
2346 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distrib uted files!
2347 Check your system clock" >&5
2348 $as_echo "$as_me: error: newly created file is older than distributed files!
2349 Check your system clock" >&2;}
2350 { (exit 1); exit 1; }; }
2351 fi
2352 { $as_echo "$as_me:$LINENO: result: yes" >&5
2353 $as_echo "yes" >&6; }
2354 test "$program_prefix" != NONE &&
2355 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2356 # Use a double $ so make ignores it.
2357 test "$program_suffix" != NONE &&
2358 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2359 # Double any \ or $.
2360 # By default was `s,x,x', remove it if useless.
2361 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2362 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2363
2364 # expand $ac_aux_dir to an absolute path
2365 am_aux_dir=`cd $ac_aux_dir && pwd`
2366
2367 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2368 # Use eval to expand $SHELL
2369 if eval "$MISSING --run true"; then
2370 am_missing_run="$MISSING --run "
2371 else
2372 am_missing_run=
2373 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2374 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2375 fi
2376
2377 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2378 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2379 if test -z "$MKDIR_P"; then
2380 if test "${ac_cv_path_mkdir+set}" = set; then
2381 $as_echo_n "(cached) " >&6
2382 else
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2385 do
2386 IFS=$as_save_IFS
2387 test -z "$as_dir" && as_dir=.
2388 for ac_prog in mkdir gmkdir; do
2389 for ac_exec_ext in '' $ac_executable_extensions; do
2390 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_p rog$ac_exec_ext"; } || continue
2391 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2392 'mkdir (GNU coreutils) '* | \
2393 'mkdir (coreutils) '* | \
2394 'mkdir (fileutils) '4.1*)
2395 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2396 break 3;;
2397 esac
2398 done
2399 done
2400 done
2401 IFS=$as_save_IFS
2402
2403 fi
2404
2405 if test "${ac_cv_path_mkdir+set}" = set; then
2406 MKDIR_P="$ac_cv_path_mkdir -p"
2407 else
2408 # As a last resort, use the slow shell script. Don't cache a
2409 # value for MKDIR_P within a source directory, because that will
2410 # break other packages using the cache if that directory is
2411 # removed, or if the value is a relative name.
2412 test -d ./--version && rmdir ./--version
2413 MKDIR_P="$ac_install_sh -d"
2414 fi
2415 fi
2416 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2417 $as_echo "$MKDIR_P" >&6; }
2418
2419 mkdir_p="$MKDIR_P"
2420 case $mkdir_p in
2421 [\\/$]* | ?:[\\/]*) ;;
2422 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2423 esac
2424
2425 for ac_prog in gawk mawk nawk awk
2426 do
2427 # Extract the first word of "$ac_prog", so it can be a program name with args.
2428 set dummy $ac_prog; ac_word=$2
2429 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2430 $as_echo_n "checking for $ac_word... " >&6; }
2431 if test "${ac_cv_prog_AWK+set}" = set; then
2432 $as_echo_n "(cached) " >&6
2433 else
2434 if test -n "$AWK"; then
2435 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2436 else
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 for as_dir in $PATH
2439 do
2440 IFS=$as_save_IFS
2441 test -z "$as_dir" && as_dir=.
2442 for ac_exec_ext in '' $ac_executable_extensions; do
2443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
2444 ac_cv_prog_AWK="$ac_prog"
2445 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2446 break 2
2447 fi
2448 done
2449 done
2450 IFS=$as_save_IFS
2451
2452 fi
2453 fi
2454 AWK=$ac_cv_prog_AWK
2455 if test -n "$AWK"; then
2456 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2457 $as_echo "$AWK" >&6; }
2458 else
2459 { $as_echo "$as_me:$LINENO: result: no" >&5
2460 $as_echo "no" >&6; }
2461 fi
2462
2463
2464 test -n "$AWK" && break
2465 done
2466
2467 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2468 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2469 set x ${MAKE-make}
2470 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2471 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set "; }; then
2472 $as_echo_n "(cached) " >&6
2473 else
2474 cat >conftest.make <<\_ACEOF
2475 SHELL = /bin/sh
2476 all:
2477 @echo '@@@%%%=$(MAKE)=@@@%%%'
2478 _ACEOF
2479 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2480 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2481 *@@@%%%=?*=@@@%%%*)
2482 eval ac_cv_prog_make_${ac_make}_set=yes;;
2483 *)
2484 eval ac_cv_prog_make_${ac_make}_set=no;;
2485 esac
2486 rm -f conftest.make
2487 fi
2488 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2489 { $as_echo "$as_me:$LINENO: result: yes" >&5
2490 $as_echo "yes" >&6; }
2491 SET_MAKE=
2492 else
2493 { $as_echo "$as_me:$LINENO: result: no" >&5
2494 $as_echo "no" >&6; }
2495 SET_MAKE="MAKE=${MAKE-make}"
2496 fi
2497
2498 rm -rf .tst 2>/dev/null
2499 mkdir .tst 2>/dev/null
2500 if test -d .tst; then
2501 am__leading_dot=.
2502 else
2503 am__leading_dot=_
2504 fi
2505 rmdir .tst 2>/dev/null
2506
2507 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2508 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2509 # is not polluted with repeated "-I."
2510 am__isrc=' -I$(srcdir)'
2511 # test to see if srcdir already configured
2512 if test -f $srcdir/config.status; then
2513 { { $as_echo "$as_me:$LINENO: error: source directory already configured; ru n \"make distclean\" there first" >&5
2514 $as_echo "$as_me: error: source directory already configured; run \"make distcle an\" there first" >&2;}
2515 { (exit 1); exit 1; }; }
2516 fi
2517 fi
2518
2519 # test whether we have cygpath
2520 if test -z "$CYGPATH_W"; then
2521 if (cygpath --version) >/dev/null 2>/dev/null; then
2522 CYGPATH_W='cygpath -w'
2523 else
2524 CYGPATH_W=echo
2525 fi
2526 fi
2527
2528
2529 # Define the identity of the package.
2530 PACKAGE='bison'
2531 VERSION='2.4.1'
2532
2533
2534 cat >>confdefs.h <<_ACEOF
2535 #define PACKAGE "$PACKAGE"
2536 _ACEOF
2537
2538
2539 cat >>confdefs.h <<_ACEOF
2540 #define VERSION "$VERSION"
2541 _ACEOF
2542
2543 # Some tools Automake needs.
2544
2545 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2546
2547
2548 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2549
2550
2551 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2552
2553
2554 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2555
2556
2557 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2558
2559 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2560
2561 # Installed binaries are usually stripped using `strip' when the user
2562 # run `make install-strip'. However `strip' might not be the right
2563 # tool to use in cross-compilation environments, therefore Automake
2564 # will honor the `STRIP' environment variable to overrule this program.
2565 if test "$cross_compiling" != no; then
2566 if test -n "$ac_tool_prefix"; then
2567 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program n ame with args.
2568 set dummy ${ac_tool_prefix}strip; ac_word=$2
2569 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2570 $as_echo_n "checking for $ac_word... " >&6; }
2571 if test "${ac_cv_prog_STRIP+set}" = set; then
2572 $as_echo_n "(cached) " >&6
2573 else
2574 if test -n "$STRIP"; then
2575 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2576 else
2577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2578 for as_dir in $PATH
2579 do
2580 IFS=$as_save_IFS
2581 test -z "$as_dir" && as_dir=.
2582 for ac_exec_ext in '' $ac_executable_extensions; do
2583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
2584 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2585 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 break 2
2587 fi
2588 done
2589 done
2590 IFS=$as_save_IFS
2591
2592 fi
2593 fi
2594 STRIP=$ac_cv_prog_STRIP
2595 if test -n "$STRIP"; then
2596 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2597 $as_echo "$STRIP" >&6; }
2598 else
2599 { $as_echo "$as_me:$LINENO: result: no" >&5
2600 $as_echo "no" >&6; }
2601 fi
2602
2603
2604 fi
2605 if test -z "$ac_cv_prog_STRIP"; then
2606 ac_ct_STRIP=$STRIP
2607 # Extract the first word of "strip", so it can be a program name with args.
2608 set dummy strip; ac_word=$2
2609 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2610 $as_echo_n "checking for $ac_word... " >&6; }
2611 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2612 $as_echo_n "(cached) " >&6
2613 else
2614 if test -n "$ac_ct_STRIP"; then
2615 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2616 else
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2618 for as_dir in $PATH
2619 do
2620 IFS=$as_save_IFS
2621 test -z "$as_dir" && as_dir=.
2622 for ac_exec_ext in '' $ac_executable_extensions; do
2623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
2624 ac_cv_prog_ac_ct_STRIP="strip"
2625 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2626 break 2
2627 fi
2628 done
2629 done
2630 IFS=$as_save_IFS
2631
2632 fi
2633 fi
2634 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2635 if test -n "$ac_ct_STRIP"; then
2636 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2637 $as_echo "$ac_ct_STRIP" >&6; }
2638 else
2639 { $as_echo "$as_me:$LINENO: result: no" >&5
2640 $as_echo "no" >&6; }
2641 fi
2642
2643 if test "x$ac_ct_STRIP" = x; then
2644 STRIP=":"
2645 else
2646 case $cross_compiling:$ac_tool_warned in
2647 yes:)
2648 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cro ss-tools
2649 whose name does not start with the host triplet. If you think this
2650 configuration is useful to you, please write to autoconf@gnu.org." >&5
2651 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2652 whose name does not start with the host triplet. If you think this
2653 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2654 ac_tool_warned=yes ;;
2655 esac
2656 STRIP=$ac_ct_STRIP
2657 fi
2658 else
2659 STRIP="$ac_cv_prog_STRIP"
2660 fi
2661
2662 fi
2663 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2664
2665 # We need awk for the "check" target. The system "awk" is bad on
2666 # some platforms.
2667 # Always define AMTAR for backward compatibility.
2668
2669 AMTAR=${AMTAR-"${am_missing_run}tar"}
2670
2671 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2672
2673
2674
2675
2676
2677 ac_config_headers="$ac_config_headers lib/config.h:lib/config.hin"
2678
2679
2680 # Checks for the compiler.
2681 DEPDIR="${am__leading_dot}deps"
2682
2683 ac_config_commands="$ac_config_commands depfiles"
2684
2685
2686 am_make=${MAKE-make}
2687 cat > confinc << 'END'
2688 am__doit:
2689 @echo done
2690 .PHONY: am__doit
2691 END
2692 # If we don't find an include directive, just comment out the code.
2693 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2694 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2695 am__include="#"
2696 am__quote=
2697 _am_result=none
2698 # First try GNU make style include.
2699 echo "include confinc" > confmf
2700 # We grep out `Entering directory' and `Leaving directory'
2701 # messages which can occur if `w' ends up in MAKEFLAGS.
2702 # In particular we don't look at `^make:' because GNU make might
2703 # be invoked under some other name (usually "gmake"), in which
2704 # case it prints its new name instead of `make'.
2705 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done "; then
2706 am__include=include
2707 am__quote=
2708 _am_result=GNU
2709 fi
2710 # Now try BSD make style include.
2711 if test "$am__include" = "#"; then
2712 echo '.include "confinc"' > confmf
2713 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2714 am__include=.include
2715 am__quote="\""
2716 _am_result=BSD
2717 fi
2718 fi
2719
2720
2721 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
2722 $as_echo "$_am_result" >&6; }
2723 rm -f confinc confmf
2724
2725 # Check whether --enable-dependency-tracking was given.
2726 if test "${enable_dependency_tracking+set}" = set; then
2727 enableval=$enable_dependency_tracking;
2728 fi
2729
2730 if test "x$enable_dependency_tracking" != xno; then
2731 am_depcomp="$ac_aux_dir/depcomp"
2732 AMDEPBACKSLASH='\'
2733 fi
2734 if test "x$enable_dependency_tracking" != xno; then
2735 AMDEP_TRUE=
2736 AMDEP_FALSE='#'
2737 else
2738 AMDEP_TRUE='#'
2739 AMDEP_FALSE=
2740 fi
2741
2742
2743 ac_ext=c
2744 ac_cpp='$CPP $CPPFLAGS'
2745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
2747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2748 if test -n "$ac_tool_prefix"; then
2749 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program nam e with args.
2750 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2751 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2752 $as_echo_n "checking for $ac_word... " >&6; }
2753 if test "${ac_cv_prog_CC+set}" = set; then
2754 $as_echo_n "(cached) " >&6
2755 else
2756 if test -n "$CC"; then
2757 ac_cv_prog_CC="$CC" # Let the user override the test.
2758 else
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 for as_dir in $PATH
2761 do
2762 IFS=$as_save_IFS
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
2766 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2767 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 break 2
2769 fi
2770 done
2771 done
2772 IFS=$as_save_IFS
2773
2774 fi
2775 fi
2776 CC=$ac_cv_prog_CC
2777 if test -n "$CC"; then
2778 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2779 $as_echo "$CC" >&6; }
2780 else
2781 { $as_echo "$as_me:$LINENO: result: no" >&5
2782 $as_echo "no" >&6; }
2783 fi
2784
2785
2786 fi
2787 if test -z "$ac_cv_prog_CC"; then
2788 ac_ct_CC=$CC
2789 # Extract the first word of "gcc", so it can be a program name with args.
2790 set dummy gcc; ac_word=$2
2791 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2792 $as_echo_n "checking for $ac_word... " >&6; }
2793 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2794 $as_echo_n "(cached) " >&6
2795 else
2796 if test -n "$ac_ct_CC"; then
2797 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2798 else
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 for as_dir in $PATH
2801 do
2802 IFS=$as_save_IFS
2803 test -z "$as_dir" && as_dir=.
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
2806 ac_cv_prog_ac_ct_CC="gcc"
2807 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 break 2
2809 fi
2810 done
2811 done
2812 IFS=$as_save_IFS
2813
2814 fi
2815 fi
2816 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2817 if test -n "$ac_ct_CC"; then
2818 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2819 $as_echo "$ac_ct_CC" >&6; }
2820 else
2821 { $as_echo "$as_me:$LINENO: result: no" >&5
2822 $as_echo "no" >&6; }
2823 fi
2824
2825 if test "x$ac_ct_CC" = x; then
2826 CC=""
2827 else
2828 case $cross_compiling:$ac_tool_warned in
2829 yes:)
2830 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cro ss-tools
2831 whose name does not start with the host triplet. If you think this
2832 configuration is useful to you, please write to autoconf@gnu.org." >&5
2833 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2834 whose name does not start with the host triplet. If you think this
2835 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2836 ac_tool_warned=yes ;;
2837 esac
2838 CC=$ac_ct_CC
2839 fi
2840 else
2841 CC="$ac_cv_prog_CC"
2842 fi
2843
2844 if test -z "$CC"; then
2845 if test -n "$ac_tool_prefix"; then
2846 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program na me with args.
2847 set dummy ${ac_tool_prefix}cc; ac_word=$2
2848 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2849 $as_echo_n "checking for $ac_word... " >&6; }
2850 if test "${ac_cv_prog_CC+set}" = set; then
2851 $as_echo_n "(cached) " >&6
2852 else
2853 if test -n "$CC"; then
2854 ac_cv_prog_CC="$CC" # Let the user override the test.
2855 else
2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 for as_dir in $PATH
2858 do
2859 IFS=$as_save_IFS
2860 test -z "$as_dir" && as_dir=.
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
2863 ac_cv_prog_CC="${ac_tool_prefix}cc"
2864 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2865 break 2
2866 fi
2867 done
2868 done
2869 IFS=$as_save_IFS
2870
2871 fi
2872 fi
2873 CC=$ac_cv_prog_CC
2874 if test -n "$CC"; then
2875 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2876 $as_echo "$CC" >&6; }
2877 else
2878 { $as_echo "$as_me:$LINENO: result: no" >&5
2879 $as_echo "no" >&6; }
2880 fi
2881
2882
2883 fi
2884 fi
2885 if test -z "$CC"; then
2886 # Extract the first word of "cc", so it can be a program name with args.
2887 set dummy cc; ac_word=$2
2888 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2889 $as_echo_n "checking for $ac_word... " >&6; }
2890 if test "${ac_cv_prog_CC+set}" = set; then
2891 $as_echo_n "(cached) " >&6
2892 else
2893 if test -n "$CC"; then
2894 ac_cv_prog_CC="$CC" # Let the user override the test.
2895 else
2896 ac_prog_rejected=no
2897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898 for as_dir in $PATH
2899 do
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
2902 for ac_exec_ext in '' $ac_executable_extensions; do
2903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
2904 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2905 ac_prog_rejected=yes
2906 continue
2907 fi
2908 ac_cv_prog_CC="cc"
2909 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2910 break 2
2911 fi
2912 done
2913 done
2914 IFS=$as_save_IFS
2915
2916 if test $ac_prog_rejected = yes; then
2917 # We found a bogon in the path, so make sure we never use it.
2918 set dummy $ac_cv_prog_CC
2919 shift
2920 if test $# != 0; then
2921 # We chose a different compiler from the bogus one.
2922 # However, it has the same basename, so the bogon will be chosen
2923 # first if we set CC to just the basename; use the full file name.
2924 shift
2925 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2926 fi
2927 fi
2928 fi
2929 fi
2930 CC=$ac_cv_prog_CC
2931 if test -n "$CC"; then
2932 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2933 $as_echo "$CC" >&6; }
2934 else
2935 { $as_echo "$as_me:$LINENO: result: no" >&5
2936 $as_echo "no" >&6; }
2937 fi
2938
2939
2940 fi
2941 if test -z "$CC"; then
2942 if test -n "$ac_tool_prefix"; then
2943 for ac_prog in cl.exe
2944 do
2945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra m name with args.
2946 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2947 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2948 $as_echo_n "checking for $ac_word... " >&6; }
2949 if test "${ac_cv_prog_CC+set}" = set; then
2950 $as_echo_n "(cached) " >&6
2951 else
2952 if test -n "$CC"; then
2953 ac_cv_prog_CC="$CC" # Let the user override the test.
2954 else
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 for as_dir in $PATH
2957 do
2958 IFS=$as_save_IFS
2959 test -z "$as_dir" && as_dir=.
2960 for ac_exec_ext in '' $ac_executable_extensions; do
2961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
2962 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2963 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2964 break 2
2965 fi
2966 done
2967 done
2968 IFS=$as_save_IFS
2969
2970 fi
2971 fi
2972 CC=$ac_cv_prog_CC
2973 if test -n "$CC"; then
2974 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2975 $as_echo "$CC" >&6; }
2976 else
2977 { $as_echo "$as_me:$LINENO: result: no" >&5
2978 $as_echo "no" >&6; }
2979 fi
2980
2981
2982 test -n "$CC" && break
2983 done
2984 fi
2985 if test -z "$CC"; then
2986 ac_ct_CC=$CC
2987 for ac_prog in cl.exe
2988 do
2989 # Extract the first word of "$ac_prog", so it can be a program name with args.
2990 set dummy $ac_prog; ac_word=$2
2991 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2992 $as_echo_n "checking for $ac_word... " >&6; }
2993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2994 $as_echo_n "(cached) " >&6
2995 else
2996 if test -n "$ac_ct_CC"; then
2997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2998 else
2999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000 for as_dir in $PATH
3001 do
3002 IFS=$as_save_IFS
3003 test -z "$as_dir" && as_dir=.
3004 for ac_exec_ext in '' $ac_executable_extensions; do
3005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
3006 ac_cv_prog_ac_ct_CC="$ac_prog"
3007 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 break 2
3009 fi
3010 done
3011 done
3012 IFS=$as_save_IFS
3013
3014 fi
3015 fi
3016 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3017 if test -n "$ac_ct_CC"; then
3018 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3019 $as_echo "$ac_ct_CC" >&6; }
3020 else
3021 { $as_echo "$as_me:$LINENO: result: no" >&5
3022 $as_echo "no" >&6; }
3023 fi
3024
3025
3026 test -n "$ac_ct_CC" && break
3027 done
3028
3029 if test "x$ac_ct_CC" = x; then
3030 CC=""
3031 else
3032 case $cross_compiling:$ac_tool_warned in
3033 yes:)
3034 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cro ss-tools
3035 whose name does not start with the host triplet. If you think this
3036 configuration is useful to you, please write to autoconf@gnu.org." >&5
3037 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3038 whose name does not start with the host triplet. If you think this
3039 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3040 ac_tool_warned=yes ;;
3041 esac
3042 CC=$ac_ct_CC
3043 fi
3044 fi
3045
3046 fi
3047
3048
3049 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler f ound in \$PATH
3050 See \`config.log' for more details." >&5
3051 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3052 See \`config.log' for more details." >&2;}
3053 { (exit 1); exit 1; }; }
3054
3055 # Provide some information about the compiler.
3056 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3057 set X $ac_compile
3058 ac_compiler=$2
3059 { (ac_try="$ac_compiler --version >&5"
3060 case "(($ac_try" in
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3063 esac
3064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3065 $as_echo "$ac_try_echo") >&5
3066 (eval "$ac_compiler --version >&5") 2>&5
3067 ac_status=$?
3068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); }
3070 { (ac_try="$ac_compiler -v >&5"
3071 case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074 esac
3075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3076 $as_echo "$ac_try_echo") >&5
3077 (eval "$ac_compiler -v >&5") 2>&5
3078 ac_status=$?
3079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }
3081 { (ac_try="$ac_compiler -V >&5"
3082 case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3085 esac
3086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3087 $as_echo "$ac_try_echo") >&5
3088 (eval "$ac_compiler -V >&5") 2>&5
3089 ac_status=$?
3090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }
3092
3093 cat >conftest.$ac_ext <<_ACEOF
3094 /* confdefs.h. */
3095 _ACEOF
3096 cat confdefs.h >>conftest.$ac_ext
3097 cat >>conftest.$ac_ext <<_ACEOF
3098 /* end confdefs.h. */
3099
3100 int
3101 main ()
3102 {
3103
3104 ;
3105 return 0;
3106 }
3107 _ACEOF
3108 ac_clean_files_save=$ac_clean_files
3109 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3110 # Try to create an executable without -o first, disregard a.out.
3111 # It will help us diagnose broken compilers, and finding out an intuition
3112 # of exeext.
3113 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >& 5
3114 $as_echo_n "checking for C compiler default output file name... " >&6; }
3115 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3116
3117 # The possible output files:
3118 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3119
3120 ac_rmfiles=
3121 for ac_file in $ac_files
3122 do
3123 case $ac_file in
3124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3125 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3126 esac
3127 done
3128 rm -f $ac_rmfiles
3129
3130 if { (ac_try="$ac_link_default"
3131 case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134 esac
3135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3136 $as_echo "$ac_try_echo") >&5
3137 (eval "$ac_link_default") 2>&5
3138 ac_status=$?
3139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; then
3141 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3142 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3143 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3144 # so that the user can short-circuit this test for compilers unknown to
3145 # Autoconf.
3146 for ac_file in $ac_files ''
3147 do
3148 test -f "$ac_file" || continue
3149 case $ac_file in
3150 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3151 ;;
3152 [ab].out )
3153 # We found the default executable, but exeext='' is most
3154 # certainly right.
3155 break;;
3156 *.* )
3157 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3158 then :; else
3159 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3160 fi
3161 # We set ac_cv_exeext here because the later test for it is not
3162 # safe: cross compilers may not add the suffix if given an `-o'
3163 # argument, so we may need to know it at that point already.
3164 # Even if this section looks crufty: it has the advantage of
3165 # actually working.
3166 break;;
3167 * )
3168 break;;
3169 esac
3170 done
3171 test "$ac_cv_exeext" = no && ac_cv_exeext=
3172
3173 else
3174 ac_file=''
3175 fi
3176
3177 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3178 $as_echo "$ac_file" >&6; }
3179 if test -z "$ac_file"; then
3180 $as_echo "$as_me: failed program was:" >&5
3181 sed 's/^/| /' conftest.$ac_ext >&5
3182
3183 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3184 See \`config.log' for more details." >&5
3185 $as_echo "$as_me: error: C compiler cannot create executables
3186 See \`config.log' for more details." >&2;}
3187 { (exit 77); exit 77; }; }
3188 fi
3189
3190 ac_exeext=$ac_cv_exeext
3191
3192 # Check that the compiler produces executables we can run. If not, either
3193 # the compiler is broken, or we cross compile.
3194 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3195 $as_echo_n "checking whether the C compiler works... " >&6; }
3196 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3197 # If not cross compiling, check that we can run a simple program.
3198 if test "$cross_compiling" != yes; then
3199 if { ac_try='./$ac_file'
3200 { (case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203 esac
3204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3205 $as_echo "$ac_try_echo") >&5
3206 (eval "$ac_try") 2>&5
3207 ac_status=$?
3208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; }; then
3210 cross_compiling=no
3211 else
3212 if test "$cross_compiling" = maybe; then
3213 cross_compiling=yes
3214 else
3215 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3216 If you meant to cross compile, use \`--host'.
3217 See \`config.log' for more details." >&5
3218 $as_echo "$as_me: error: cannot run C compiled programs.
3219 If you meant to cross compile, use \`--host'.
3220 See \`config.log' for more details." >&2;}
3221 { (exit 1); exit 1; }; }
3222 fi
3223 fi
3224 fi
3225 { $as_echo "$as_me:$LINENO: result: yes" >&5
3226 $as_echo "yes" >&6; }
3227
3228 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3229 ac_clean_files=$ac_clean_files_save
3230 # Check that the compiler produces executables we can run. If not, either
3231 # the compiler is broken, or we cross compile.
3232 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3233 $as_echo_n "checking whether we are cross compiling... " >&6; }
3234 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3235 $as_echo "$cross_compiling" >&6; }
3236
3237 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3238 $as_echo_n "checking for suffix of executables... " >&6; }
3239 if { (ac_try="$ac_link"
3240 case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3243 esac
3244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3245 $as_echo "$ac_try_echo") >&5
3246 (eval "$ac_link") 2>&5
3247 ac_status=$?
3248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); }; then
3250 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3251 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3252 # work properly (i.e., refer to `conftest.exe'), while it won't with
3253 # `rm'.
3254 for ac_file in conftest.exe conftest conftest.*; do
3255 test -f "$ac_file" || continue
3256 case $ac_file in
3257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3258 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3259 break;;
3260 * ) break;;
3261 esac
3262 done
3263 else
3264 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: can not compile and link
3265 See \`config.log' for more details." >&5
3266 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile an d link
3267 See \`config.log' for more details." >&2;}
3268 { (exit 1); exit 1; }; }
3269 fi
3270
3271 rm -f conftest$ac_cv_exeext
3272 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3273 $as_echo "$ac_cv_exeext" >&6; }
3274
3275 rm -f conftest.$ac_ext
3276 EXEEXT=$ac_cv_exeext
3277 ac_exeext=$EXEEXT
3278 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3279 $as_echo_n "checking for suffix of object files... " >&6; }
3280 if test "${ac_cv_objext+set}" = set; then
3281 $as_echo_n "(cached) " >&6
3282 else
3283 cat >conftest.$ac_ext <<_ACEOF
3284 /* confdefs.h. */
3285 _ACEOF
3286 cat confdefs.h >>conftest.$ac_ext
3287 cat >>conftest.$ac_ext <<_ACEOF
3288 /* end confdefs.h. */
3289
3290 int
3291 main ()
3292 {
3293
3294 ;
3295 return 0;
3296 }
3297 _ACEOF
3298 rm -f conftest.o conftest.obj
3299 if { (ac_try="$ac_compile"
3300 case "(($ac_try" in
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3303 esac
3304 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3305 $as_echo "$ac_try_echo") >&5
3306 (eval "$ac_compile") 2>&5
3307 ac_status=$?
3308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); }; then
3310 for ac_file in conftest.o conftest.obj conftest.*; do
3311 test -f "$ac_file" || continue;
3312 case $ac_file in
3313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3314 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3315 break;;
3316 esac
3317 done
3318 else
3319 $as_echo "$as_me: failed program was:" >&5
3320 sed 's/^/| /' conftest.$ac_ext >&5
3321
3322 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cann ot compile
3323 See \`config.log' for more details." >&5
3324 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3325 See \`config.log' for more details." >&2;}
3326 { (exit 1); exit 1; }; }
3327 fi
3328
3329 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3330 fi
3331 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3332 $as_echo "$ac_cv_objext" >&6; }
3333 OBJEXT=$ac_cv_objext
3334 ac_objext=$OBJEXT
3335 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >& 5
3336 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3337 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3338 $as_echo_n "(cached) " >&6
3339 else
3340 cat >conftest.$ac_ext <<_ACEOF
3341 /* confdefs.h. */
3342 _ACEOF
3343 cat confdefs.h >>conftest.$ac_ext
3344 cat >>conftest.$ac_ext <<_ACEOF
3345 /* end confdefs.h. */
3346
3347 int
3348 main ()
3349 {
3350 #ifndef __GNUC__
3351 choke me
3352 #endif
3353
3354 ;
3355 return 0;
3356 }
3357 _ACEOF
3358 rm -f conftest.$ac_objext
3359 if { (ac_try="$ac_compile"
3360 case "(($ac_try" in
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3363 esac
3364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3365 $as_echo "$ac_try_echo") >&5
3366 (eval "$ac_compile") 2>conftest.er1
3367 ac_status=$?
3368 grep -v '^ *+' conftest.er1 >conftest.err
3369 rm -f conftest.er1
3370 cat conftest.err >&5
3371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); } && {
3373 test -z "$ac_c_werror_flag" ||
3374 test ! -s conftest.err
3375 } && test -s conftest.$ac_objext; then
3376 ac_compiler_gnu=yes
3377 else
3378 $as_echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3380
3381 ac_compiler_gnu=no
3382 fi
3383
3384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3385 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3386
3387 fi
3388 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3389 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3390 if test $ac_compiler_gnu = yes; then
3391 GCC=yes
3392 else
3393 GCC=
3394 fi
3395 ac_test_CFLAGS=${CFLAGS+set}
3396 ac_save_CFLAGS=$CFLAGS
3397 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3398 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3399 if test "${ac_cv_prog_cc_g+set}" = set; then
3400 $as_echo_n "(cached) " >&6
3401 else
3402 ac_save_c_werror_flag=$ac_c_werror_flag
3403 ac_c_werror_flag=yes
3404 ac_cv_prog_cc_g=no
3405 CFLAGS="-g"
3406 cat >conftest.$ac_ext <<_ACEOF
3407 /* confdefs.h. */
3408 _ACEOF
3409 cat confdefs.h >>conftest.$ac_ext
3410 cat >>conftest.$ac_ext <<_ACEOF
3411 /* end confdefs.h. */
3412
3413 int
3414 main ()
3415 {
3416
3417 ;
3418 return 0;
3419 }
3420 _ACEOF
3421 rm -f conftest.$ac_objext
3422 if { (ac_try="$ac_compile"
3423 case "(($ac_try" in
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3426 esac
3427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3428 $as_echo "$ac_try_echo") >&5
3429 (eval "$ac_compile") 2>conftest.er1
3430 ac_status=$?
3431 grep -v '^ *+' conftest.er1 >conftest.err
3432 rm -f conftest.er1
3433 cat conftest.err >&5
3434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); } && {
3436 test -z "$ac_c_werror_flag" ||
3437 test ! -s conftest.err
3438 } && test -s conftest.$ac_objext; then
3439 ac_cv_prog_cc_g=yes
3440 else
3441 $as_echo "$as_me: failed program was:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3443
3444 CFLAGS=""
3445 cat >conftest.$ac_ext <<_ACEOF
3446 /* confdefs.h. */
3447 _ACEOF
3448 cat confdefs.h >>conftest.$ac_ext
3449 cat >>conftest.$ac_ext <<_ACEOF
3450 /* end confdefs.h. */
3451
3452 int
3453 main ()
3454 {
3455
3456 ;
3457 return 0;
3458 }
3459 _ACEOF
3460 rm -f conftest.$ac_objext
3461 if { (ac_try="$ac_compile"
3462 case "(($ac_try" in
3463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3464 *) ac_try_echo=$ac_try;;
3465 esac
3466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3467 $as_echo "$ac_try_echo") >&5
3468 (eval "$ac_compile") 2>conftest.er1
3469 ac_status=$?
3470 grep -v '^ *+' conftest.er1 >conftest.err
3471 rm -f conftest.er1
3472 cat conftest.err >&5
3473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); } && {
3475 test -z "$ac_c_werror_flag" ||
3476 test ! -s conftest.err
3477 } && test -s conftest.$ac_objext; then
3478 :
3479 else
3480 $as_echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3482
3483 ac_c_werror_flag=$ac_save_c_werror_flag
3484 CFLAGS="-g"
3485 cat >conftest.$ac_ext <<_ACEOF
3486 /* confdefs.h. */
3487 _ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h. */
3491
3492 int
3493 main ()
3494 {
3495
3496 ;
3497 return 0;
3498 }
3499 _ACEOF
3500 rm -f conftest.$ac_objext
3501 if { (ac_try="$ac_compile"
3502 case "(($ac_try" in
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3505 esac
3506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3507 $as_echo "$ac_try_echo") >&5
3508 (eval "$ac_compile") 2>conftest.er1
3509 ac_status=$?
3510 grep -v '^ *+' conftest.er1 >conftest.err
3511 rm -f conftest.er1
3512 cat conftest.err >&5
3513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } && {
3515 test -z "$ac_c_werror_flag" ||
3516 test ! -s conftest.err
3517 } && test -s conftest.$ac_objext; then
3518 ac_cv_prog_cc_g=yes
3519 else
3520 $as_echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3522
3523
3524 fi
3525
3526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3527 fi
3528
3529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3530 fi
3531
3532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3533 ac_c_werror_flag=$ac_save_c_werror_flag
3534 fi
3535 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3536 $as_echo "$ac_cv_prog_cc_g" >&6; }
3537 if test "$ac_test_CFLAGS" = set; then
3538 CFLAGS=$ac_save_CFLAGS
3539 elif test $ac_cv_prog_cc_g = yes; then
3540 if test "$GCC" = yes; then
3541 CFLAGS="-g -O2"
3542 else
3543 CFLAGS="-g"
3544 fi
3545 else
3546 if test "$GCC" = yes; then
3547 CFLAGS="-O2"
3548 else
3549 CFLAGS=
3550 fi
3551 fi
3552 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3553 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3554 if test "${ac_cv_prog_cc_c89+set}" = set; then
3555 $as_echo_n "(cached) " >&6
3556 else
3557 ac_cv_prog_cc_c89=no
3558 ac_save_CC=$CC
3559 cat >conftest.$ac_ext <<_ACEOF
3560 /* confdefs.h. */
3561 _ACEOF
3562 cat confdefs.h >>conftest.$ac_ext
3563 cat >>conftest.$ac_ext <<_ACEOF
3564 /* end confdefs.h. */
3565 #include <stdarg.h>
3566 #include <stdio.h>
3567 #include <sys/types.h>
3568 #include <sys/stat.h>
3569 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3570 struct buf { int x; };
3571 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3572 static char *e (p, i)
3573 char **p;
3574 int i;
3575 {
3576 return p[i];
3577 }
3578 static char *f (char * (*g) (char **, int), char **p, ...)
3579 {
3580 char *s;
3581 va_list v;
3582 va_start (v,p);
3583 s = g (p, va_arg (v,int));
3584 va_end (v);
3585 return s;
3586 }
3587
3588 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3589 function prototypes and stuff, but not '\xHH' hex character constants.
3590 These don't provoke an error unfortunately, instead are silently treated
3591 as 'x'. The following induces an error, until -std is added to get
3592 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3593 array size at least. It's necessary to write '\x00'==0 to get something
3594 that's true only with -std. */
3595 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3596
3597 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3598 inside strings and character constants. */
3599 #define FOO(x) 'x'
3600 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3601
3602 int test (int i, double x);
3603 struct s1 {int (*f) (int a);};
3604 struct s2 {int (*f) (double a);};
3605 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, i nt);
3606 int argc;
3607 char **argv;
3608 int
3609 main ()
3610 {
3611 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3612 ;
3613 return 0;
3614 }
3615 _ACEOF
3616 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3617 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3618 do
3619 CC="$ac_save_CC $ac_arg"
3620 rm -f conftest.$ac_objext
3621 if { (ac_try="$ac_compile"
3622 case "(($ac_try" in
3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3625 esac
3626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3627 $as_echo "$ac_try_echo") >&5
3628 (eval "$ac_compile") 2>conftest.er1
3629 ac_status=$?
3630 grep -v '^ *+' conftest.er1 >conftest.err
3631 rm -f conftest.er1
3632 cat conftest.err >&5
3633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); } && {
3635 test -z "$ac_c_werror_flag" ||
3636 test ! -s conftest.err
3637 } && test -s conftest.$ac_objext; then
3638 ac_cv_prog_cc_c89=$ac_arg
3639 else
3640 $as_echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3642
3643
3644 fi
3645
3646 rm -f core conftest.err conftest.$ac_objext
3647 test "x$ac_cv_prog_cc_c89" != "xno" && break
3648 done
3649 rm -f conftest.$ac_ext
3650 CC=$ac_save_CC
3651
3652 fi
3653 # AC_CACHE_VAL
3654 case "x$ac_cv_prog_cc_c89" in
3655 x)
3656 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3657 $as_echo "none needed" >&6; } ;;
3658 xno)
3659 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3660 $as_echo "unsupported" >&6; } ;;
3661 *)
3662 CC="$CC $ac_cv_prog_cc_c89"
3663 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3664 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3665 esac
3666
3667
3668 ac_ext=c
3669 ac_cpp='$CPP $CPPFLAGS'
3670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
3672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3673
3674 depcc="$CC" am_compiler_list=
3675
3676 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3677 $as_echo_n "checking dependency style of $depcc... " >&6; }
3678 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3679 $as_echo_n "(cached) " >&6
3680 else
3681 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3682 # We make a subdir and do the tests there. Otherwise we can end up
3683 # making bogus files that we don't know about and never remove. For
3684 # instance it was reported that on HP-UX the gcc test will end up
3685 # making a dummy file named `D' -- because `-MD' means `put the output
3686 # in D'.
3687 mkdir conftest.dir
3688 # Copy depcomp to subdir because otherwise we won't find it if we're
3689 # using a relative directory.
3690 cp "$am_depcomp" conftest.dir
3691 cd conftest.dir
3692 # We will build objects and dependencies in a subdirectory because
3693 # it helps to detect inapplicable dependency modes. For instance
3694 # both Tru64's cc and ICC support -MD to output dependencies as a
3695 # side effect of compilation, but ICC will put the dependencies in
3696 # the current directory while Tru64 will put them in the object
3697 # directory.
3698 mkdir sub
3699
3700 am_cv_CC_dependencies_compiler_type=none
3701 if test "$am_compiler_list" = ""; then
3702 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3703 fi
3704 for depmode in $am_compiler_list; do
3705 # Setup a source with many dependencies, because some compilers
3706 # like to wrap large dependency lists on column 80 (with \), and
3707 # we should not choose a depcomp mode which is confused by this.
3708 #
3709 # We need to recreate these files for each test, as the compiler may
3710 # overwrite some of them when testing with obscure command lines.
3711 # This happens at least with the AIX C compiler.
3712 : > sub/conftest.c
3713 for i in 1 2 3 4 5 6; do
3714 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3715 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3716 # Solaris 8's {/usr,}/bin/sh.
3717 touch sub/conftst$i.h
3718 done
3719 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3720
3721 case $depmode in
3722 nosideeffect)
3723 # after this tag, mechanisms are not by side-effect, so they'll
3724 # only be used when explicitly requested
3725 if test "x$enable_dependency_tracking" = xyes; then
3726 continue
3727 else
3728 break
3729 fi
3730 ;;
3731 none) break ;;
3732 esac
3733 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3734 # mode. It turns out that the SunPro C++ compiler does not properly
3735 # handle `-M -o', and we need to detect this.
3736 if depmode=$depmode \
3737 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3738 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3739 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3740 >/dev/null 2>conftest.err &&
3741 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3742 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3743 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3744 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3745 # icc doesn't choke on unknown options, it will just issue warnings
3746 # or remarks (even with -Werror). So we grep stderr for any message
3747 # that says an option was ignored or not supported.
3748 # When given -MP, icc 7.0 and 7.1 complain thusly:
3749 # icc: Command line warning: ignoring option '-M'; no argument required
3750 # The diagnosis changed in icc 8.0:
3751 # icc: Command line remark: option '-MP' not supported
3752 if (grep 'ignoring option' conftest.err ||
3753 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3754 am_cv_CC_dependencies_compiler_type=$depmode
3755 break
3756 fi
3757 fi
3758 done
3759
3760 cd ..
3761 rm -rf conftest.dir
3762 else
3763 am_cv_CC_dependencies_compiler_type=none
3764 fi
3765
3766 fi
3767 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3768 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3769 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3770
3771 if
3772 test "x$enable_dependency_tracking" != xno \
3773 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3774 am__fastdepCC_TRUE=
3775 am__fastdepCC_FALSE='#'
3776 else
3777 am__fastdepCC_TRUE='#'
3778 am__fastdepCC_FALSE=
3779 fi
3780
3781
3782 case $ac_cv_prog_cc_stdc in
3783 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
3784 *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3785 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3786 if test "${ac_cv_prog_cc_c99+set}" = set; then
3787 $as_echo_n "(cached) " >&6
3788 else
3789 ac_cv_prog_cc_c99=no
3790 ac_save_CC=$CC
3791 cat >conftest.$ac_ext <<_ACEOF
3792 /* confdefs.h. */
3793 _ACEOF
3794 cat confdefs.h >>conftest.$ac_ext
3795 cat >>conftest.$ac_ext <<_ACEOF
3796 /* end confdefs.h. */
3797 #include <stdarg.h>
3798 #include <stdbool.h>
3799 #include <stdlib.h>
3800 #include <wchar.h>
3801 #include <stdio.h>
3802
3803 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3804 #define debug(...) fprintf (stderr, __VA_ARGS__)
3805 #define showlist(...) puts (#__VA_ARGS__)
3806 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3807 static void
3808 test_varargs_macros (void)
3809 {
3810 int x = 1234;
3811 int y = 5678;
3812 debug ("Flag");
3813 debug ("X = %d\n", x);
3814 showlist (The first, second, and third items.);
3815 report (x>y, "x is %d but y is %d", x, y);
3816 }
3817
3818 // Check long long types.
3819 #define BIG64 18446744073709551615ull
3820 #define BIG32 4294967295ul
3821 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3822 #if !BIG_OK
3823 your preprocessor is broken;
3824 #endif
3825 #if BIG_OK
3826 #else
3827 your preprocessor is broken;
3828 #endif
3829 static long long int bignum = -9223372036854775807LL;
3830 static unsigned long long int ubignum = BIG64;
3831
3832 struct incomplete_array
3833 {
3834 int datasize;
3835 double data[];
3836 };
3837
3838 struct named_init {
3839 int number;
3840 const wchar_t *name;
3841 double average;
3842 };
3843
3844 typedef const char *ccp;
3845
3846 static inline int
3847 test_restrict (ccp restrict text)
3848 {
3849 // See if C++-style comments work.
3850 // Iterate through items via the restricted pointer.
3851 // Also check for declarations in for loops.
3852 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3853 continue;
3854 return 0;
3855 }
3856
3857 // Check varargs and va_copy.
3858 static void
3859 test_varargs (const char *format, ...)
3860 {
3861 va_list args;
3862 va_start (args, format);
3863 va_list args_copy;
3864 va_copy (args_copy, args);
3865
3866 const char *str;
3867 int number;
3868 float fnumber;
3869
3870 while (*format)
3871 {
3872 switch (*format++)
3873 {
3874 case 's': // string
3875 str = va_arg (args_copy, const char *);
3876 break;
3877 case 'd': // int
3878 number = va_arg (args_copy, int);
3879 break;
3880 case 'f': // float
3881 fnumber = va_arg (args_copy, double);
3882 break;
3883 default:
3884 break;
3885 }
3886 }
3887 va_end (args_copy);
3888 va_end (args);
3889 }
3890
3891 int
3892 main ()
3893 {
3894
3895 // Check bool.
3896 _Bool success = false;
3897
3898 // Check restrict.
3899 if (test_restrict ("String literal") == 0)
3900 success = true;
3901 char *restrict newvar = "Another string";
3902
3903 // Check varargs.
3904 test_varargs ("s, d' f .", "string", 65, 34.234);
3905 test_varargs_macros ();
3906
3907 // Check flexible array members.
3908 struct incomplete_array *ia =
3909 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3910 ia->datasize = 10;
3911 for (int i = 0; i < ia->datasize; ++i)
3912 ia->data[i] = i * 1.234;
3913
3914 // Check named initializers.
3915 struct named_init ni = {
3916 .number = 34,
3917 .name = L"Test wide string",
3918 .average = 543.34343,
3919 };
3920
3921 ni.number = 58;
3922
3923 int dynamic_array[ni.number];
3924 dynamic_array[ni.number - 1] = 543;
3925
3926 // work around unused variable warnings
3927 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3928 || dynamic_array[ni.number - 1] != 543);
3929
3930 ;
3931 return 0;
3932 }
3933 _ACEOF
3934 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3935 do
3936 CC="$ac_save_CC $ac_arg"
3937 rm -f conftest.$ac_objext
3938 if { (ac_try="$ac_compile"
3939 case "(($ac_try" in
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3942 esac
3943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3944 $as_echo "$ac_try_echo") >&5
3945 (eval "$ac_compile") 2>conftest.er1
3946 ac_status=$?
3947 grep -v '^ *+' conftest.er1 >conftest.err
3948 rm -f conftest.er1
3949 cat conftest.err >&5
3950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); } && {
3952 test -z "$ac_c_werror_flag" ||
3953 test ! -s conftest.err
3954 } && test -s conftest.$ac_objext; then
3955 ac_cv_prog_cc_c99=$ac_arg
3956 else
3957 $as_echo "$as_me: failed program was:" >&5
3958 sed 's/^/| /' conftest.$ac_ext >&5
3959
3960
3961 fi
3962
3963 rm -f core conftest.err conftest.$ac_objext
3964 test "x$ac_cv_prog_cc_c99" != "xno" && break
3965 done
3966 rm -f conftest.$ac_ext
3967 CC=$ac_save_CC
3968
3969 fi
3970 # AC_CACHE_VAL
3971 case "x$ac_cv_prog_cc_c99" in
3972 x)
3973 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3974 $as_echo "none needed" >&6; } ;;
3975 xno)
3976 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3977 $as_echo "unsupported" >&6; } ;;
3978 *)
3979 CC="$CC $ac_cv_prog_cc_c99"
3980 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3981 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3982 esac
3983 if test "x$ac_cv_prog_cc_c99" != xno; then
3984 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3985 else
3986 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3987 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3988 if test "${ac_cv_prog_cc_c89+set}" = set; then
3989 $as_echo_n "(cached) " >&6
3990 else
3991 ac_cv_prog_cc_c89=no
3992 ac_save_CC=$CC
3993 cat >conftest.$ac_ext <<_ACEOF
3994 /* confdefs.h. */
3995 _ACEOF
3996 cat confdefs.h >>conftest.$ac_ext
3997 cat >>conftest.$ac_ext <<_ACEOF
3998 /* end confdefs.h. */
3999 #include <stdarg.h>
4000 #include <stdio.h>
4001 #include <sys/types.h>
4002 #include <sys/stat.h>
4003 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4004 struct buf { int x; };
4005 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4006 static char *e (p, i)
4007 char **p;
4008 int i;
4009 {
4010 return p[i];
4011 }
4012 static char *f (char * (*g) (char **, int), char **p, ...)
4013 {
4014 char *s;
4015 va_list v;
4016 va_start (v,p);
4017 s = g (p, va_arg (v,int));
4018 va_end (v);
4019 return s;
4020 }
4021
4022 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4023 function prototypes and stuff, but not '\xHH' hex character constants.
4024 These don't provoke an error unfortunately, instead are silently treated
4025 as 'x'. The following induces an error, until -std is added to get
4026 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4027 array size at least. It's necessary to write '\x00'==0 to get something
4028 that's true only with -std. */
4029 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4030
4031 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4032 inside strings and character constants. */
4033 #define FOO(x) 'x'
4034 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4035
4036 int test (int i, double x);
4037 struct s1 {int (*f) (int a);};
4038 struct s2 {int (*f) (double a);};
4039 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, i nt);
4040 int argc;
4041 char **argv;
4042 int
4043 main ()
4044 {
4045 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4046 ;
4047 return 0;
4048 }
4049 _ACEOF
4050 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4051 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4052 do
4053 CC="$ac_save_CC $ac_arg"
4054 rm -f conftest.$ac_objext
4055 if { (ac_try="$ac_compile"
4056 case "(($ac_try" in
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4059 esac
4060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4061 $as_echo "$ac_try_echo") >&5
4062 (eval "$ac_compile") 2>conftest.er1
4063 ac_status=$?
4064 grep -v '^ *+' conftest.er1 >conftest.err
4065 rm -f conftest.er1
4066 cat conftest.err >&5
4067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } && {
4069 test -z "$ac_c_werror_flag" ||
4070 test ! -s conftest.err
4071 } && test -s conftest.$ac_objext; then
4072 ac_cv_prog_cc_c89=$ac_arg
4073 else
4074 $as_echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4076
4077
4078 fi
4079
4080 rm -f core conftest.err conftest.$ac_objext
4081 test "x$ac_cv_prog_cc_c89" != "xno" && break
4082 done
4083 rm -f conftest.$ac_ext
4084 CC=$ac_save_CC
4085
4086 fi
4087 # AC_CACHE_VAL
4088 case "x$ac_cv_prog_cc_c89" in
4089 x)
4090 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4091 $as_echo "none needed" >&6; } ;;
4092 xno)
4093 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4094 $as_echo "unsupported" >&6; } ;;
4095 *)
4096 CC="$CC $ac_cv_prog_cc_c89"
4097 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4098 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4099 esac
4100 if test "x$ac_cv_prog_cc_c89" != xno; then
4101 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4102 else
4103 ac_cv_prog_cc_stdc=no
4104 fi
4105
4106
4107 fi
4108
4109 ;;
4110 esac
4111 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
4112 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4113 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4114 $as_echo_n "(cached) " >&6
4115 fi
4116
4117 case $ac_cv_prog_cc_stdc in
4118 no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4119 $as_echo "unsupported" >&6; } ;;
4120 '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
4121 $as_echo "none needed" >&6; } ;;
4122 *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4123 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4124 esac
4125
4126
4127
4128 # Gnulib (early checks).
4129 if test -n "$ac_tool_prefix"; then
4130 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4131 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4132 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4133 $as_echo_n "checking for $ac_word... " >&6; }
4134 if test "${ac_cv_prog_RANLIB+set}" = set; then
4135 $as_echo_n "(cached) " >&6
4136 else
4137 if test -n "$RANLIB"; then
4138 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4139 else
4140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 for as_dir in $PATH
4142 do
4143 IFS=$as_save_IFS
4144 test -z "$as_dir" && as_dir=.
4145 for ac_exec_ext in '' $ac_executable_extensions; do
4146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
4147 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4148 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4149 break 2
4150 fi
4151 done
4152 done
4153 IFS=$as_save_IFS
4154
4155 fi
4156 fi
4157 RANLIB=$ac_cv_prog_RANLIB
4158 if test -n "$RANLIB"; then
4159 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4160 $as_echo "$RANLIB" >&6; }
4161 else
4162 { $as_echo "$as_me:$LINENO: result: no" >&5
4163 $as_echo "no" >&6; }
4164 fi
4165
4166
4167 fi
4168 if test -z "$ac_cv_prog_RANLIB"; then
4169 ac_ct_RANLIB=$RANLIB
4170 # Extract the first word of "ranlib", so it can be a program name with args.
4171 set dummy ranlib; ac_word=$2
4172 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4173 $as_echo_n "checking for $ac_word... " >&6; }
4174 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4175 $as_echo_n "(cached) " >&6
4176 else
4177 if test -n "$ac_ct_RANLIB"; then
4178 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4179 else
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 for as_dir in $PATH
4182 do
4183 IFS=$as_save_IFS
4184 test -z "$as_dir" && as_dir=.
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
4187 ac_cv_prog_ac_ct_RANLIB="ranlib"
4188 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4189 break 2
4190 fi
4191 done
4192 done
4193 IFS=$as_save_IFS
4194
4195 fi
4196 fi
4197 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4198 if test -n "$ac_ct_RANLIB"; then
4199 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4200 $as_echo "$ac_ct_RANLIB" >&6; }
4201 else
4202 { $as_echo "$as_me:$LINENO: result: no" >&5
4203 $as_echo "no" >&6; }
4204 fi
4205
4206 if test "x$ac_ct_RANLIB" = x; then
4207 RANLIB=":"
4208 else
4209 case $cross_compiling:$ac_tool_warned in
4210 yes:)
4211 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cro ss-tools
4212 whose name does not start with the host triplet. If you think this
4213 configuration is useful to you, please write to autoconf@gnu.org." >&5
4214 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4215 whose name does not start with the host triplet. If you think this
4216 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4217 ac_tool_warned=yes ;;
4218 esac
4219 RANLIB=$ac_ct_RANLIB
4220 fi
4221 else
4222 RANLIB="$ac_cv_prog_RANLIB"
4223 fi
4224
4225 if test "x$CC" != xcc; then
4226 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o t ogether" >&5
4227 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4228 else
4229 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together " >&5
4230 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4231 fi
4232 set dummy $CC; ac_cc=`$as_echo "$2" |
4233 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4234 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; } ; then
4235 $as_echo_n "(cached) " >&6
4236 else
4237 cat >conftest.$ac_ext <<_ACEOF
4238 /* confdefs.h. */
4239 _ACEOF
4240 cat confdefs.h >>conftest.$ac_ext
4241 cat >>conftest.$ac_ext <<_ACEOF
4242 /* end confdefs.h. */
4243
4244 int
4245 main ()
4246 {
4247
4248 ;
4249 return 0;
4250 }
4251 _ACEOF
4252 # Make sure it works both with $CC and with simple cc.
4253 # We do the test twice because some compilers refuse to overwrite an
4254 # existing .o file with -o, though they will create one.
4255 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4256 rm -f conftest2.*
4257 if { (case "(($ac_try" in
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4260 esac
4261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4262 $as_echo "$ac_try_echo") >&5
4263 (eval "$ac_try") 2>&5
4264 ac_status=$?
4265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); } &&
4267 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4270 esac
4271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4272 $as_echo "$ac_try_echo") >&5
4273 (eval "$ac_try") 2>&5
4274 ac_status=$?
4275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); };
4277 then
4278 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4279 if test "x$CC" != xcc; then
4280 # Test first that cc exists at all.
4281 if { ac_try='cc -c conftest.$ac_ext >&5'
4282 { (case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4285 esac
4286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4287 $as_echo "$ac_try_echo") >&5
4288 (eval "$ac_try") 2>&5
4289 ac_status=$?
4290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; }; then
4292 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4293 rm -f conftest2.*
4294 if { (case "(($ac_try" in
4295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4296 *) ac_try_echo=$ac_try;;
4297 esac
4298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4299 $as_echo "$ac_try_echo") >&5
4300 (eval "$ac_try") 2>&5
4301 ac_status=$?
4302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); } &&
4304 test -f conftest2.$ac_objext && { (case "(($ac_try" in
4305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306 *) ac_try_echo=$ac_try;;
4307 esac
4308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4309 $as_echo "$ac_try_echo") >&5
4310 (eval "$ac_try") 2>&5
4311 ac_status=$?
4312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); };
4314 then
4315 # cc works too.
4316 :
4317 else
4318 # cc exists but doesn't like -o.
4319 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4320 fi
4321 fi
4322 fi
4323 else
4324 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4325 fi
4326 rm -f core conftest*
4327
4328 fi
4329 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4330 { $as_echo "$as_me:$LINENO: result: yes" >&5
4331 $as_echo "yes" >&6; }
4332 else
4333 { $as_echo "$as_me:$LINENO: result: no" >&5
4334 $as_echo "no" >&6; }
4335
4336 cat >>confdefs.h <<\_ACEOF
4337 #define NO_MINUS_C_MINUS_O 1
4338 _ACEOF
4339
4340 fi
4341
4342 # FIXME: we rely on the cache variable name because
4343 # there is no other way.
4344 set dummy $CC
4345 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4346 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4347 # Losing compiler, so override with the script.
4348 # FIXME: It is wrong to rewrite CC.
4349 # But if we don't then we get into trouble of one sort or another.
4350 # A longer-term fix would be to have automake use am__CC in this case,
4351 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4352 CC="$am_aux_dir/compile $CC"
4353 fi
4354
4355
4356
4357 ac_ext=c
4358 ac_cpp='$CPP $CPPFLAGS'
4359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
4361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4362 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4363 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4364 # On Suns, sometimes $CPP names a directory.
4365 if test -n "$CPP" && test -d "$CPP"; then
4366 CPP=
4367 fi
4368 if test -z "$CPP"; then
4369 if test "${ac_cv_prog_CPP+set}" = set; then
4370 $as_echo_n "(cached) " >&6
4371 else
4372 # Double quotes because CPP needs to be expanded
4373 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4374 do
4375 ac_preproc_ok=false
4376 for ac_c_preproc_warn_flag in '' yes
4377 do
4378 # Use a header file that comes with gcc, so configuring glibc
4379 # with a fresh cross-compiler works.
4380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4381 # <limits.h> exists even on freestanding compilers.
4382 # On the NeXT, cc -E runs the code through the compiler's parser,
4383 # not just through cpp. "Syntax error" is here to catch this case.
4384 cat >conftest.$ac_ext <<_ACEOF
4385 /* confdefs.h. */
4386 _ACEOF
4387 cat confdefs.h >>conftest.$ac_ext
4388 cat >>conftest.$ac_ext <<_ACEOF
4389 /* end confdefs.h. */
4390 #ifdef __STDC__
4391 # include <limits.h>
4392 #else
4393 # include <assert.h>
4394 #endif
4395 Syntax error
4396 _ACEOF
4397 if { (ac_try="$ac_cpp conftest.$ac_ext"
4398 case "(($ac_try" in
4399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400 *) ac_try_echo=$ac_try;;
4401 esac
4402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4403 $as_echo "$ac_try_echo") >&5
4404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4405 ac_status=$?
4406 grep -v '^ *+' conftest.er1 >conftest.err
4407 rm -f conftest.er1
4408 cat conftest.err >&5
4409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); } >/dev/null && {
4411 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4412 test ! -s conftest.err
4413 }; then
4414 :
4415 else
4416 $as_echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.$ac_ext >&5
4418
4419 # Broken: fails on valid input.
4420 continue
4421 fi
4422
4423 rm -f conftest.err conftest.$ac_ext
4424
4425 # OK, works on sane cases. Now check whether nonexistent headers
4426 # can be detected and how.
4427 cat >conftest.$ac_ext <<_ACEOF
4428 /* confdefs.h. */
4429 _ACEOF
4430 cat confdefs.h >>conftest.$ac_ext
4431 cat >>conftest.$ac_ext <<_ACEOF
4432 /* end confdefs.h. */
4433 #include <ac_nonexistent.h>
4434 _ACEOF
4435 if { (ac_try="$ac_cpp conftest.$ac_ext"
4436 case "(($ac_try" in
4437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4438 *) ac_try_echo=$ac_try;;
4439 esac
4440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4441 $as_echo "$ac_try_echo") >&5
4442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4443 ac_status=$?
4444 grep -v '^ *+' conftest.er1 >conftest.err
4445 rm -f conftest.er1
4446 cat conftest.err >&5
4447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); } >/dev/null && {
4449 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4450 test ! -s conftest.err
4451 }; then
4452 # Broken: success on invalid input.
4453 continue
4454 else
4455 $as_echo "$as_me: failed program was:" >&5
4456 sed 's/^/| /' conftest.$ac_ext >&5
4457
4458 # Passes both tests.
4459 ac_preproc_ok=:
4460 break
4461 fi
4462
4463 rm -f conftest.err conftest.$ac_ext
4464
4465 done
4466 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4467 rm -f conftest.err conftest.$ac_ext
4468 if $ac_preproc_ok; then
4469 break
4470 fi
4471
4472 done
4473 ac_cv_prog_CPP=$CPP
4474
4475 fi
4476 CPP=$ac_cv_prog_CPP
4477 else
4478 ac_cv_prog_CPP=$CPP
4479 fi
4480 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4481 $as_echo "$CPP" >&6; }
4482 ac_preproc_ok=false
4483 for ac_c_preproc_warn_flag in '' yes
4484 do
4485 # Use a header file that comes with gcc, so configuring glibc
4486 # with a fresh cross-compiler works.
4487 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4488 # <limits.h> exists even on freestanding compilers.
4489 # On the NeXT, cc -E runs the code through the compiler's parser,
4490 # not just through cpp. "Syntax error" is here to catch this case.
4491 cat >conftest.$ac_ext <<_ACEOF
4492 /* confdefs.h. */
4493 _ACEOF
4494 cat confdefs.h >>conftest.$ac_ext
4495 cat >>conftest.$ac_ext <<_ACEOF
4496 /* end confdefs.h. */
4497 #ifdef __STDC__
4498 # include <limits.h>
4499 #else
4500 # include <assert.h>
4501 #endif
4502 Syntax error
4503 _ACEOF
4504 if { (ac_try="$ac_cpp conftest.$ac_ext"
4505 case "(($ac_try" in
4506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4507 *) ac_try_echo=$ac_try;;
4508 esac
4509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4510 $as_echo "$ac_try_echo") >&5
4511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4512 ac_status=$?
4513 grep -v '^ *+' conftest.er1 >conftest.err
4514 rm -f conftest.er1
4515 cat conftest.err >&5
4516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); } >/dev/null && {
4518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4519 test ! -s conftest.err
4520 }; then
4521 :
4522 else
4523 $as_echo "$as_me: failed program was:" >&5
4524 sed 's/^/| /' conftest.$ac_ext >&5
4525
4526 # Broken: fails on valid input.
4527 continue
4528 fi
4529
4530 rm -f conftest.err conftest.$ac_ext
4531
4532 # OK, works on sane cases. Now check whether nonexistent headers
4533 # can be detected and how.
4534 cat >conftest.$ac_ext <<_ACEOF
4535 /* confdefs.h. */
4536 _ACEOF
4537 cat confdefs.h >>conftest.$ac_ext
4538 cat >>conftest.$ac_ext <<_ACEOF
4539 /* end confdefs.h. */
4540 #include <ac_nonexistent.h>
4541 _ACEOF
4542 if { (ac_try="$ac_cpp conftest.$ac_ext"
4543 case "(($ac_try" in
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4546 esac
4547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4548 $as_echo "$ac_try_echo") >&5
4549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4550 ac_status=$?
4551 grep -v '^ *+' conftest.er1 >conftest.err
4552 rm -f conftest.er1
4553 cat conftest.err >&5
4554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4555 (exit $ac_status); } >/dev/null && {
4556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4557 test ! -s conftest.err
4558 }; then
4559 # Broken: success on invalid input.
4560 continue
4561 else
4562 $as_echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.$ac_ext >&5
4564
4565 # Passes both tests.
4566 ac_preproc_ok=:
4567 break
4568 fi
4569
4570 rm -f conftest.err conftest.$ac_ext
4571
4572 done
4573 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4574 rm -f conftest.err conftest.$ac_ext
4575 if $ac_preproc_ok; then
4576 :
4577 else
4578 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity chec k
4579 See \`config.log' for more details." >&5
4580 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4581 See \`config.log' for more details." >&2;}
4582 { (exit 1); exit 1; }; }
4583 fi
4584
4585 ac_ext=c
4586 ac_cpp='$CPP $CPPFLAGS'
4587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
4589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4590
4591
4592 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >& 5
4593 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4594 if test "${ac_cv_path_GREP+set}" = set; then
4595 $as_echo_n "(cached) " >&6
4596 else
4597 if test -z "$GREP"; then
4598 ac_path_GREP_found=false
4599 # Loop through the user's path and test for each of PROGNAME-LIST
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4602 do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_prog in grep ggrep; do
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4608 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4609 # Check for GNU ac_path_GREP and select it if it is found.
4610 # Check for GNU $ac_path_GREP
4611 case `"$ac_path_GREP" --version 2>&1` in
4612 *GNU*)
4613 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4614 *)
4615 ac_count=0
4616 $as_echo_n 0123456789 >"conftest.in"
4617 while :
4618 do
4619 cat "conftest.in" "conftest.in" >"conftest.tmp"
4620 mv "conftest.tmp" "conftest.in"
4621 cp "conftest.in" "conftest.nl"
4622 $as_echo 'GREP' >> "conftest.nl"
4623 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest. out" 2>/dev/null || break
4624 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4625 ac_count=`expr $ac_count + 1`
4626 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4627 # Best one so far, save it but keep looking for a better one
4628 ac_cv_path_GREP="$ac_path_GREP"
4629 ac_path_GREP_max=$ac_count
4630 fi
4631 # 10*(2^10) chars as input seems more than enough
4632 test $ac_count -gt 10 && break
4633 done
4634 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4635 esac
4636
4637 $ac_path_GREP_found && break 3
4638 done
4639 done
4640 done
4641 IFS=$as_save_IFS
4642 if test -z "$ac_cv_path_GREP"; then
4643 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $P ATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4644 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARAT OR/usr/xpg4/bin" >&2;}
4645 { (exit 1); exit 1; }; }
4646 fi
4647 else
4648 ac_cv_path_GREP=$GREP
4649 fi
4650
4651 fi
4652 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4653 $as_echo "$ac_cv_path_GREP" >&6; }
4654 GREP="$ac_cv_path_GREP"
4655
4656
4657 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4658 $as_echo_n "checking for egrep... " >&6; }
4659 if test "${ac_cv_path_EGREP+set}" = set; then
4660 $as_echo_n "(cached) " >&6
4661 else
4662 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4663 then ac_cv_path_EGREP="$GREP -E"
4664 else
4665 if test -z "$EGREP"; then
4666 ac_path_EGREP_found=false
4667 # Loop through the user's path and test for each of PROGNAME-LIST
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4670 do
4671 IFS=$as_save_IFS
4672 test -z "$as_dir" && as_dir=.
4673 for ac_prog in egrep; do
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4676 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4677 # Check for GNU ac_path_EGREP and select it if it is found.
4678 # Check for GNU $ac_path_EGREP
4679 case `"$ac_path_EGREP" --version 2>&1` in
4680 *GNU*)
4681 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4682 *)
4683 ac_count=0
4684 $as_echo_n 0123456789 >"conftest.in"
4685 while :
4686 do
4687 cat "conftest.in" "conftest.in" >"conftest.tmp"
4688 mv "conftest.tmp" "conftest.in"
4689 cp "conftest.in" "conftest.nl"
4690 $as_echo 'EGREP' >> "conftest.nl"
4691 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || bre ak
4692 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4693 ac_count=`expr $ac_count + 1`
4694 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4695 # Best one so far, save it but keep looking for a better one
4696 ac_cv_path_EGREP="$ac_path_EGREP"
4697 ac_path_EGREP_max=$ac_count
4698 fi
4699 # 10*(2^10) chars as input seems more than enough
4700 test $ac_count -gt 10 && break
4701 done
4702 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4703 esac
4704
4705 $ac_path_EGREP_found && break 3
4706 done
4707 done
4708 done
4709 IFS=$as_save_IFS
4710 if test -z "$ac_cv_path_EGREP"; then
4711 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $ PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4712 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARA TOR/usr/xpg4/bin" >&2;}
4713 { (exit 1); exit 1; }; }
4714 fi
4715 else
4716 ac_cv_path_EGREP=$EGREP
4717 fi
4718
4719 fi
4720 fi
4721 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4722 $as_echo "$ac_cv_path_EGREP" >&6; }
4723 EGREP="$ac_cv_path_EGREP"
4724
4725
4726 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4727 $as_echo_n "checking for ANSI C header files... " >&6; }
4728 if test "${ac_cv_header_stdc+set}" = set; then
4729 $as_echo_n "(cached) " >&6
4730 else
4731 cat >conftest.$ac_ext <<_ACEOF
4732 /* confdefs.h. */
4733 _ACEOF
4734 cat confdefs.h >>conftest.$ac_ext
4735 cat >>conftest.$ac_ext <<_ACEOF
4736 /* end confdefs.h. */
4737 #include <stdlib.h>
4738 #include <stdarg.h>
4739 #include <string.h>
4740 #include <float.h>
4741
4742 int
4743 main ()
4744 {
4745
4746 ;
4747 return 0;
4748 }
4749 _ACEOF
4750 rm -f conftest.$ac_objext
4751 if { (ac_try="$ac_compile"
4752 case "(($ac_try" in
4753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4754 *) ac_try_echo=$ac_try;;
4755 esac
4756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4757 $as_echo "$ac_try_echo") >&5
4758 (eval "$ac_compile") 2>conftest.er1
4759 ac_status=$?
4760 grep -v '^ *+' conftest.er1 >conftest.err
4761 rm -f conftest.er1
4762 cat conftest.err >&5
4763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4764 (exit $ac_status); } && {
4765 test -z "$ac_c_werror_flag" ||
4766 test ! -s conftest.err
4767 } && test -s conftest.$ac_objext; then
4768 ac_cv_header_stdc=yes
4769 else
4770 $as_echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4772
4773 ac_cv_header_stdc=no
4774 fi
4775
4776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4777
4778 if test $ac_cv_header_stdc = yes; then
4779 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4780 cat >conftest.$ac_ext <<_ACEOF
4781 /* confdefs.h. */
4782 _ACEOF
4783 cat confdefs.h >>conftest.$ac_ext
4784 cat >>conftest.$ac_ext <<_ACEOF
4785 /* end confdefs.h. */
4786 #include <string.h>
4787
4788 _ACEOF
4789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4790 $EGREP "memchr" >/dev/null 2>&1; then
4791 :
4792 else
4793 ac_cv_header_stdc=no
4794 fi
4795 rm -f conftest*
4796
4797 fi
4798
4799 if test $ac_cv_header_stdc = yes; then
4800 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4801 cat >conftest.$ac_ext <<_ACEOF
4802 /* confdefs.h. */
4803 _ACEOF
4804 cat confdefs.h >>conftest.$ac_ext
4805 cat >>conftest.$ac_ext <<_ACEOF
4806 /* end confdefs.h. */
4807 #include <stdlib.h>
4808
4809 _ACEOF
4810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4811 $EGREP "free" >/dev/null 2>&1; then
4812 :
4813 else
4814 ac_cv_header_stdc=no
4815 fi
4816 rm -f conftest*
4817
4818 fi
4819
4820 if test $ac_cv_header_stdc = yes; then
4821 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4822 if test "$cross_compiling" = yes; then
4823 :
4824 else
4825 cat >conftest.$ac_ext <<_ACEOF
4826 /* confdefs.h. */
4827 _ACEOF
4828 cat confdefs.h >>conftest.$ac_ext
4829 cat >>conftest.$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4831 #include <ctype.h>
4832 #include <stdlib.h>
4833 #if ((' ' & 0x0FF) == 0x020)
4834 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4835 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4836 #else
4837 # define ISLOWER(c) \
4838 (('a' <= (c) && (c) <= 'i') \
4839 || ('j' <= (c) && (c) <= 'r') \
4840 || ('s' <= (c) && (c) <= 'z'))
4841 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4842 #endif
4843
4844 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4845 int
4846 main ()
4847 {
4848 int i;
4849 for (i = 0; i < 256; i++)
4850 if (XOR (islower (i), ISLOWER (i))
4851 || toupper (i) != TOUPPER (i))
4852 return 2;
4853 return 0;
4854 }
4855 _ACEOF
4856 rm -f conftest$ac_exeext
4857 if { (ac_try="$ac_link"
4858 case "(($ac_try" in
4859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860 *) ac_try_echo=$ac_try;;
4861 esac
4862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4863 $as_echo "$ac_try_echo") >&5
4864 (eval "$ac_link") 2>&5
4865 ac_status=$?
4866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4868 { (case "(($ac_try" in
4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870 *) ac_try_echo=$ac_try;;
4871 esac
4872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4873 $as_echo "$ac_try_echo") >&5
4874 (eval "$ac_try") 2>&5
4875 ac_status=$?
4876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }; }; then
4878 :
4879 else
4880 $as_echo "$as_me: program exited with status $ac_status" >&5
4881 $as_echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4883
4884 ( exit $ac_status )
4885 ac_cv_header_stdc=no
4886 fi
4887 rm -rf conftest.dSYM
4888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$a c_objext conftest.$ac_ext
4889 fi
4890
4891
4892 fi
4893 fi
4894 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4895 $as_echo "$ac_cv_header_stdc" >&6; }
4896 if test $ac_cv_header_stdc = yes; then
4897
4898 cat >>confdefs.h <<\_ACEOF
4899 #define STDC_HEADERS 1
4900 _ACEOF
4901
4902 fi
4903
4904 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4915 inttypes.h stdint.h unistd.h
4916 do
4917 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4918 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4919 $as_echo_n "checking for $ac_header... " >&6; }
4920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4921 $as_echo_n "(cached) " >&6
4922 else
4923 cat >conftest.$ac_ext <<_ACEOF
4924 /* confdefs.h. */
4925 _ACEOF
4926 cat confdefs.h >>conftest.$ac_ext
4927 cat >>conftest.$ac_ext <<_ACEOF
4928 /* end confdefs.h. */
4929 $ac_includes_default
4930
4931 #include <$ac_header>
4932 _ACEOF
4933 rm -f conftest.$ac_objext
4934 if { (ac_try="$ac_compile"
4935 case "(($ac_try" in
4936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4937 *) ac_try_echo=$ac_try;;
4938 esac
4939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4940 $as_echo "$ac_try_echo") >&5
4941 (eval "$ac_compile") 2>conftest.er1
4942 ac_status=$?
4943 grep -v '^ *+' conftest.er1 >conftest.err
4944 rm -f conftest.er1
4945 cat conftest.err >&5
4946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } && {
4948 test -z "$ac_c_werror_flag" ||
4949 test ! -s conftest.err
4950 } && test -s conftest.$ac_objext; then
4951 eval "$as_ac_Header=yes"
4952 else
4953 $as_echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.$ac_ext >&5
4955
4956 eval "$as_ac_Header=no"
4957 fi
4958
4959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960 fi
4961 ac_res=`eval 'as_val=${'$as_ac_Header'}
4962 $as_echo "$as_val"'`
4963 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4964 $as_echo "$ac_res" >&6; }
4965 if test `eval 'as_val=${'$as_ac_Header'}
4966 $as_echo "$as_val"'` = yes; then
4967 cat >>confdefs.h <<_ACEOF
4968 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4969 _ACEOF
4970
4971 fi
4972
4973 done
4974
4975
4976
4977 if test "${ac_cv_header_minix_config_h+set}" = set; then
4978 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4979 $as_echo_n "checking for minix/config.h... " >&6; }
4980 if test "${ac_cv_header_minix_config_h+set}" = set; then
4981 $as_echo_n "(cached) " >&6
4982 fi
4983 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4984 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4985 else
4986 # Is the header compilable?
4987 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4988 $as_echo_n "checking minix/config.h usability... " >&6; }
4989 cat >conftest.$ac_ext <<_ACEOF
4990 /* confdefs.h. */
4991 _ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h. */
4995 $ac_includes_default
4996 #include <minix/config.h>
4997 _ACEOF
4998 rm -f conftest.$ac_objext
4999 if { (ac_try="$ac_compile"
5000 case "(($ac_try" in
5001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5002 *) ac_try_echo=$ac_try;;
5003 esac
5004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5005 $as_echo "$ac_try_echo") >&5
5006 (eval "$ac_compile") 2>conftest.er1
5007 ac_status=$?
5008 grep -v '^ *+' conftest.er1 >conftest.err
5009 rm -f conftest.er1
5010 cat conftest.err >&5
5011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5012 (exit $ac_status); } && {
5013 test -z "$ac_c_werror_flag" ||
5014 test ! -s conftest.err
5015 } && test -s conftest.$ac_objext; then
5016 ac_header_compiler=yes
5017 else
5018 $as_echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5020
5021 ac_header_compiler=no
5022 fi
5023
5024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5025 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5026 $as_echo "$ac_header_compiler" >&6; }
5027
5028 # Is the header present?
5029 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
5030 $as_echo_n "checking minix/config.h presence... " >&6; }
5031 cat >conftest.$ac_ext <<_ACEOF
5032 /* confdefs.h. */
5033 _ACEOF
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h. */
5037 #include <minix/config.h>
5038 _ACEOF
5039 if { (ac_try="$ac_cpp conftest.$ac_ext"
5040 case "(($ac_try" in
5041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042 *) ac_try_echo=$ac_try;;
5043 esac
5044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5045 $as_echo "$ac_try_echo") >&5
5046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5047 ac_status=$?
5048 grep -v '^ *+' conftest.er1 >conftest.err
5049 rm -f conftest.er1
5050 cat conftest.err >&5
5051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052 (exit $ac_status); } >/dev/null && {
5053 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5054 test ! -s conftest.err
5055 }; then
5056 ac_header_preproc=yes
5057 else
5058 $as_echo "$as_me: failed program was:" >&5
5059 sed 's/^/| /' conftest.$ac_ext >&5
5060
5061 ac_header_preproc=no
5062 fi
5063
5064 rm -f conftest.err conftest.$ac_ext
5065 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5066 $as_echo "$ac_header_preproc" >&6; }
5067
5068 # So? What about this header?
5069 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5070 yes:no: )
5071 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compile r, rejected by the preprocessor!" >&5
5072 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5073 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the com piler's result" >&5
5074 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result " >&2;}
5075 ac_header_preproc=yes
5076 ;;
5077 no:yes:* )
5078 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be c ompiled" >&5
5079 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
5080 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing p rerequisite headers?" >&5
5081 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite he aders?" >&2;}
5082 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf docume ntation" >&5
5083 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
5084 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present B ut Cannot Be Compiled\"" >&5
5085 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be C ompiled\"" >&2;}
5086 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the pre processor's result" >&5
5087 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's re sult" >&2;}
5088 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the comp iler will take precedence" >&5
5089 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
5090 ( cat <<\_ASBOX
5091 ## -------------------------------- ##
5092 ## Report this to bug-bison@gnu.org ##
5093 ## -------------------------------- ##
5094 _ASBOX
5095 ) | sed "s/^/$as_me: WARNING: /" >&2
5096 ;;
5097 esac
5098 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5099 $as_echo_n "checking for minix/config.h... " >&6; }
5100 if test "${ac_cv_header_minix_config_h+set}" = set; then
5101 $as_echo_n "(cached) " >&6
5102 else
5103 ac_cv_header_minix_config_h=$ac_header_preproc
5104 fi
5105 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5106 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5107
5108 fi
5109 if test $ac_cv_header_minix_config_h = yes; then
5110 MINIX=yes
5111 else
5112 MINIX=
5113 fi
5114
5115
5116 if test "$MINIX" = yes; then
5117
5118 cat >>confdefs.h <<\_ACEOF
5119 #define _POSIX_SOURCE 1
5120 _ACEOF
5121
5122
5123 cat >>confdefs.h <<\_ACEOF
5124 #define _POSIX_1_SOURCE 2
5125 _ACEOF
5126
5127
5128 cat >>confdefs.h <<\_ACEOF
5129 #define _MINIX 1
5130 _ACEOF
5131
5132 fi
5133
5134
5135
5136 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS __" >&5
5137 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5138 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5139 $as_echo_n "(cached) " >&6
5140 else
5141 cat >conftest.$ac_ext <<_ACEOF
5142 /* confdefs.h. */
5143 _ACEOF
5144 cat confdefs.h >>conftest.$ac_ext
5145 cat >>conftest.$ac_ext <<_ACEOF
5146 /* end confdefs.h. */
5147
5148 # define __EXTENSIONS__ 1
5149 $ac_includes_default
5150 int
5151 main ()
5152 {
5153
5154 ;
5155 return 0;
5156 }
5157 _ACEOF
5158 rm -f conftest.$ac_objext
5159 if { (ac_try="$ac_compile"
5160 case "(($ac_try" in
5161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5162 *) ac_try_echo=$ac_try;;
5163 esac
5164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5165 $as_echo "$ac_try_echo") >&5
5166 (eval "$ac_compile") 2>conftest.er1
5167 ac_status=$?
5168 grep -v '^ *+' conftest.er1 >conftest.err
5169 rm -f conftest.er1
5170 cat conftest.err >&5
5171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); } && {
5173 test -z "$ac_c_werror_flag" ||
5174 test ! -s conftest.err
5175 } && test -s conftest.$ac_objext; then
5176 ac_cv_safe_to_define___extensions__=yes
5177 else
5178 $as_echo "$as_me: failed program was:" >&5
5179 sed 's/^/| /' conftest.$ac_ext >&5
5180
5181 ac_cv_safe_to_define___extensions__=no
5182 fi
5183
5184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5185 fi
5186 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5187 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5188 test $ac_cv_safe_to_define___extensions__ = yes &&
5189 cat >>confdefs.h <<\_ACEOF
5190 #define __EXTENSIONS__ 1
5191 _ACEOF
5192
5193 cat >>confdefs.h <<\_ACEOF
5194 #define _ALL_SOURCE 1
5195 _ACEOF
5196
5197 cat >>confdefs.h <<\_ACEOF
5198 #define _GNU_SOURCE 1
5199 _ACEOF
5200
5201 cat >>confdefs.h <<\_ACEOF
5202 #define _POSIX_PTHREAD_SEMANTICS 1
5203 _ACEOF
5204
5205 cat >>confdefs.h <<\_ACEOF
5206 #define _TANDEM_SOURCE 1
5207 _ACEOF
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218 # Check whether --enable-gcc-warnings was given.
5219 if test "${enable_gcc_warnings+set}" = set; then
5220 enableval=$enable_gcc_warnings; case "${enableval}" in
5221 yes|no) ;;
5222 *) { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for gcc-w arnings option" >&5
5223 $as_echo "$as_me: error: bad value ${enableval} for gcc-warnings option" >&2;}
5224 { (exit 1); exit 1; }; } ;;
5225 esac
5226 else
5227 enableval=no
5228 fi
5229
5230 if test "${enableval}" = yes; then
5231 { $as_echo "$as_me:$LINENO: checking whether compiler handles -Werror" >&5
5232 $as_echo_n "checking whether compiler handles -Werror... " >&6; }
5233 if test "${gl_cv_warn__Werror+set}" = set; then
5234 $as_echo_n "(cached) " >&6
5235 else
5236
5237 save_CPPFLAGS="$CPPFLAGS"
5238 CPPFLAGS="${CPPFLAGS} -Werror"
5239 cat >conftest.$ac_ext <<_ACEOF
5240 /* confdefs.h. */
5241 _ACEOF
5242 cat confdefs.h >>conftest.$ac_ext
5243 cat >>conftest.$ac_ext <<_ACEOF
5244 /* end confdefs.h. */
5245
5246 int
5247 main ()
5248 {
5249
5250 ;
5251 return 0;
5252 }
5253 _ACEOF
5254 if { (ac_try="$ac_cpp conftest.$ac_ext"
5255 case "(($ac_try" in
5256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5257 *) ac_try_echo=$ac_try;;
5258 esac
5259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5260 $as_echo "$ac_try_echo") >&5
5261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5262 ac_status=$?
5263 grep -v '^ *+' conftest.er1 >conftest.err
5264 rm -f conftest.er1
5265 cat conftest.err >&5
5266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); } >/dev/null && {
5268 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5269 test ! -s conftest.err
5270 }; then
5271 gl_cv_warn__Werror=yes
5272 else
5273 $as_echo "$as_me: failed program was:" >&5
5274 sed 's/^/| /' conftest.$ac_ext >&5
5275
5276 gl_cv_warn__Werror=no
5277 fi
5278
5279 rm -f conftest.err conftest.$ac_ext
5280 CPPFLAGS="$save_CPPFLAGS"
5281
5282 fi
5283 { $as_echo "$as_me:$LINENO: result: $gl_cv_warn__Werror" >&5
5284 $as_echo "$gl_cv_warn__Werror" >&6; }
5285 if test x"$gl_cv_warn__Werror" = x""yes; then
5286 WERROR_CFLAGS=$WERROR_CFLAGS" -Werror"
5287 fi
5288
5289
5290
5291 { $as_echo "$as_me:$LINENO: checking whether compiler handles -Wall" >&5
5292 $as_echo_n "checking whether compiler handles -Wall... " >&6; }
5293 if test "${gl_cv_warn__Wall+set}" = set; then
5294 $as_echo_n "(cached) " >&6
5295 else
5296
5297 save_CPPFLAGS="$CPPFLAGS"
5298 CPPFLAGS="${CPPFLAGS} -Wall"
5299 cat >conftest.$ac_ext <<_ACEOF
5300 /* confdefs.h. */
5301 _ACEOF
5302 cat confdefs.h >>conftest.$ac_ext
5303 cat >>conftest.$ac_ext <<_ACEOF
5304 /* end confdefs.h. */
5305
5306 int
5307 main ()
5308 {
5309
5310 ;
5311 return 0;
5312 }
5313 _ACEOF
5314 if { (ac_try="$ac_cpp conftest.$ac_ext"
5315 case "(($ac_try" in
5316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5317 *) ac_try_echo=$ac_try;;
5318 esac
5319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5320 $as_echo "$ac_try_echo") >&5
5321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5322 ac_status=$?
5323 grep -v '^ *+' conftest.er1 >conftest.err
5324 rm -f conftest.er1
5325 cat conftest.err >&5
5326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); } >/dev/null && {
5328 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5329 test ! -s conftest.err
5330 }; then
5331 gl_cv_warn__Wall=yes
5332 else
5333 $as_echo "$as_me: failed program was:" >&5
5334 sed 's/^/| /' conftest.$ac_ext >&5
5335
5336 gl_cv_warn__Wall=no
5337 fi
5338
5339 rm -f conftest.err conftest.$ac_ext
5340 CPPFLAGS="$save_CPPFLAGS"
5341
5342 fi
5343 { $as_echo "$as_me:$LINENO: result: $gl_cv_warn__Wall" >&5
5344 $as_echo "$gl_cv_warn__Wall" >&6; }
5345 if test x"$gl_cv_warn__Wall" = x""yes; then
5346 WARN_CFLAGS=$WARN_CFLAGS" -Wall"
5347 fi
5348
5349
5350 { $as_echo "$as_me:$LINENO: checking whether compiler handles -Wextra -Wno-sig n-compare" >&5
5351 $as_echo_n "checking whether compiler handles -Wextra -Wno-sign-compare... " >&6 ; }
5352 if test "${gl_cv_warn__Wextra__Wno_sign_compare+set}" = set; then
5353 $as_echo_n "(cached) " >&6
5354 else
5355
5356 save_CPPFLAGS="$CPPFLAGS"
5357 CPPFLAGS="${CPPFLAGS} -Wextra -Wno-sign-compare"
5358 cat >conftest.$ac_ext <<_ACEOF
5359 /* confdefs.h. */
5360 _ACEOF
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h. */
5364
5365 int
5366 main ()
5367 {
5368
5369 ;
5370 return 0;
5371 }
5372 _ACEOF
5373 if { (ac_try="$ac_cpp conftest.$ac_ext"
5374 case "(($ac_try" in
5375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376 *) ac_try_echo=$ac_try;;
5377 esac
5378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5379 $as_echo "$ac_try_echo") >&5
5380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5381 ac_status=$?
5382 grep -v '^ *+' conftest.er1 >conftest.err
5383 rm -f conftest.er1
5384 cat conftest.err >&5
5385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386 (exit $ac_status); } >/dev/null && {
5387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5388 test ! -s conftest.err
5389 }; then
5390 gl_cv_warn__Wextra__Wno_sign_compare=yes
5391 else
5392 $as_echo "$as_me: failed program was:" >&5
5393 sed 's/^/| /' conftest.$ac_ext >&5
5394
5395 gl_cv_warn__Wextra__Wno_sign_compare=no
5396 fi
5397
5398 rm -f conftest.err conftest.$ac_ext
5399 CPPFLAGS="$save_CPPFLAGS"
5400
5401 fi
5402 { $as_echo "$as_me:$LINENO: result: $gl_cv_warn__Wextra__Wno_sign_compare" >&5
5403 $as_echo "$gl_cv_warn__Wextra__Wno_sign_compare" >&6; }
5404 if test x"$gl_cv_warn__Wextra__Wno_sign_compare" = x""yes; then
5405 WARN_CFLAGS=$WARN_CFLAGS" -Wextra -Wno-sign-compare"
5406 fi
5407
5408
5409 { $as_echo "$as_me:$LINENO: checking whether compiler handles -Wcast-align" >& 5
5410 $as_echo_n "checking whether compiler handles -Wcast-align... " >&6; }
5411 if test "${gl_cv_warn__Wcast_align+set}" = set; then
5412 $as_echo_n "(cached) " >&6
5413 else
5414
5415 save_CPPFLAGS="$CPPFLAGS"
5416 CPPFLAGS="${CPPFLAGS} -Wcast-align"
5417 cat >conftest.$ac_ext <<_ACEOF
5418 /* confdefs.h. */
5419 _ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h. */
5423
5424 int
5425 main ()
5426 {
5427
5428 ;
5429 return 0;
5430 }
5431 _ACEOF
5432 if { (ac_try="$ac_cpp conftest.$ac_ext"
5433 case "(($ac_try" in
5434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435 *) ac_try_echo=$ac_try;;
5436 esac
5437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5438 $as_echo "$ac_try_echo") >&5
5439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5440 ac_status=$?
5441 grep -v '^ *+' conftest.er1 >conftest.err
5442 rm -f conftest.er1
5443 cat conftest.err >&5
5444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } >/dev/null && {
5446 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5447 test ! -s conftest.err
5448 }; then
5449 gl_cv_warn__Wcast_align=yes
5450 else
5451 $as_echo "$as_me: failed program was:" >&5
5452 sed 's/^/| /' conftest.$ac_ext >&5
5453
5454 gl_cv_warn__Wcast_align=no
5455 fi
5456
5457 rm -f conftest.err conftest.$ac_ext
5458 CPPFLAGS="$save_CPPFLAGS"
5459
5460 fi
5461 { $as_echo "$as_me:$LINENO: result: $gl_cv_warn__Wcast_align" >&5
5462 $as_echo "$gl_cv_warn__Wcast_align" >&6; }
5463 if test x"$gl_cv_warn__Wcast_align" = x""yes; then
5464 WARN_CFLAGS=$WARN_CFLAGS" -Wcast-align"
5465 fi
5466
5467
5468 { $as_echo "$as_me:$LINENO: checking whether compiler handles -Wcast-qual" >&5
5469 $as_echo_n "checking whether compiler handles -Wcast-qual... " >&6; }
5470 if test "${gl_cv_warn__Wcast_qual+set}" = set; then
5471 $as_echo_n "(cached) " >&6
5472 else
5473
5474 save_CPPFLAGS="$CPPFLAGS"
5475 CPPFLAGS="${CPPFLAGS} -Wcast-qual"
5476 cat >conftest.$ac_ext <<_ACEOF
5477 /* confdefs.h. */
5478 _ACEOF
5479 cat confdefs.h >>conftest.$ac_ext
5480 cat >>conftest.$ac_ext <<_ACEOF
5481 /* end confdefs.h. */
5482
5483 int
5484 main ()
5485 {
5486
5487 ;
5488 return 0;
5489 }
5490 _ACEOF
5491 if { (ac_try="$ac_cpp conftest.$ac_ext"
5492 case "(($ac_try" in
5493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5494 *) ac_try_echo=$ac_try;;
5495 esac
5496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5497 $as_echo "$ac_try_echo") >&5
5498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5499 ac_status=$?
5500 grep -v '^ *+' conftest.er1 >conftest.err
5501 rm -f conftest.er1
5502 cat conftest.err >&5
5503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } >/dev/null && {
5505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5506 test ! -s conftest.err
5507 }; then
5508 gl_cv_warn__Wcast_qual=yes
5509 else
5510 $as_echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5512
5513 gl_cv_warn__Wcast_qual=no
5514 fi
5515
5516 rm -f conftest.err conftest.$ac_ext
5517 CPPFLAGS="$save_CPPFLAGS"
5518
5519 fi
5520 { $as_echo "$as_me:$LINENO: result: $gl_cv_warn__Wcast_qual" >&5
5521 $as_echo "$gl_cv_warn__Wcast_qual" >&6; }
5522 if test x"$gl_cv_warn__Wcast_qual" = x""yes; then
5523 WARN_CFLAGS=$WARN_CFLAGS" -Wcast-qual"
5524 fi
5525
5526
5527 { $as_echo "$as_me:$LINENO: checking whether compiler handles -Wformat" >&5
5528 $as_echo_n "checking whether compiler handles -Wformat... " >&6; }
5529 if test "${gl_cv_warn__Wformat+set}" = set; then
5530 $as_echo_n "(cached) " >&6
5531 else
5532
5533 save_CPPFLAGS="$CPPFLAGS"
5534 CPPFLAGS="${CPPFLAGS} -Wformat"
5535 cat >conftest.$ac_ext <<_ACEOF
5536 /* confdefs.h. */
5537 _ACEOF
5538 cat confdefs.h >>conftest.$ac_ext
5539 cat >>conftest.$ac_ext <<_ACEOF
5540 /* end confdefs.h. */
5541
5542 int
5543 main ()
5544 {
5545
5546 ;
5547 return 0;
5548 }
5549 _ACEOF
5550 if { (ac_try="$ac_cpp conftest.$ac_ext"
5551 case "(($ac_try" in
5552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5553 *) ac_try_echo=$ac_try;;
5554 esac
5555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5556 $as_echo "$ac_try_echo") >&5
5557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5558 ac_status=$?
5559 grep -v '^ *+' conftest.er1 >conftest.err
5560 rm -f conftest.er1
5561 cat conftest.err >&5
5562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563 (exit $ac_status); } >/dev/null && {
5564 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5565 test ! -s conftest.err
5566 }; then
5567 gl_cv_warn__Wformat=yes
5568 else
5569 $as_echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.$ac_ext >&5
5571
5572 gl_cv_warn__Wformat=no
5573 fi
5574
5575 rm -f conftest.err conftest.$ac_ext
5576 CPPFLAGS="$save_CPPFLAGS"
5577
5578 fi
5579 { $as_echo "$as_me:$LINENO: result: $gl_cv_warn__Wformat" >&5
5580 $as_echo "$gl_cv_warn__Wformat" >&6; }
5581 if test x"$gl_cv_warn__Wformat" = x""yes; then
5582 WARN_CFLAGS=$WARN_CFLAGS" -Wformat"
5583 fi
5584
5585
5586 { $as_echo "$as_me:$LINENO: checking whether compiler handles -Wpointer-arith" >&5
5587 $as_echo_n "checking whether compiler handles -Wpointer-arith... " >&6; }
5588 if test "${gl_cv_warn__Wpointer_arith+set}" = set; then
5589 $as_echo_n "(cached) " >&6
5590 else
5591
5592 save_CPPFLAGS="$CPPFLAGS"
5593 CPPFLAGS="${CPPFLAGS} -Wpointer-arith"
5594 cat >conftest.$ac_ext <<_ACEOF
5595 /* confdefs.h. */
5596 _ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h. */
5600
5601 int
5602 main ()
5603 {
5604
5605 ;
5606 return 0;
5607 }
5608 _ACEOF
5609 if { (ac_try="$ac_cpp conftest.$ac_ext"
5610 case "(($ac_try" in
5611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5612 *) ac_try_echo=$ac_try;;
5613 esac
5614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5615 $as_echo "$ac_try_echo") >&5
5616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5617 ac_status=$?
5618 grep -v '^ *+' conftest.er1 >conftest.err
5619 rm -f conftest.er1
5620 cat conftest.err >&5
5621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); } >/dev/null && {
5623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5624 test ! -s conftest.err
5625 }; then
5626 gl_cv_warn__Wpointer_arith=yes
5627 else
5628 $as_echo "$as_me: failed program was:" >&5
5629 sed 's/^/| /' conftest.$ac_ext >&5
5630
5631 gl_cv_warn__Wpointer_arith=no
5632 fi
5633
5634 rm -f conftest.err conftest.$ac_ext
5635 CPPFLAGS="$save_CPPFLAGS"
5636
5637 fi
5638 { $as_echo "$as_me:$LINENO: result: $gl_cv_warn__Wpointer_arith" >&5
5639 $as_echo "$gl_cv_warn__Wpointer_arith" >&6; }
5640 if test x"$gl_cv_warn__Wpointer_arith" = x""yes; then
5641 WARN_CFLAGS=$WARN_CFLAGS" -Wpointer-arith"
5642 fi
5643
5644
5645 { $as_echo "$as_me:$LINENO: checking whether compiler handles -Wwrite-strings" >&5
5646 $as_echo_n "checking whether compiler handles -Wwrite-strings... " >&6; }
5647 if test "${gl_cv_warn__Wwrite_strings+set}" = set; then
5648 $as_echo_n "(cached) " >&6
5649 else
5650
5651 save_CPPFLAGS="$CPPFLAGS"
5652 CPPFLAGS="${CPPFLAGS} -Wwrite-strings"
5653 cat >conftest.$ac_ext <<_ACEOF
5654 /* confdefs.h. */
5655 _ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h. */
5659
5660 int
5661 main ()
5662 {
5663
5664 ;
5665 return 0;
5666 }
5667 _ACEOF
5668 if { (ac_try="$ac_cpp conftest.$ac_ext"
5669 case "(($ac_try" in
5670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671 *) ac_try_echo=$ac_try;;
5672 esac
5673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5674 $as_echo "$ac_try_echo") >&5
5675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5676 ac_status=$?
5677 grep -v '^ *+' conftest.er1 >conftest.err
5678 rm -f conftest.er1
5679 cat conftest.err >&5
5680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); } >/dev/null && {
5682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5683 test ! -s conftest.err
5684 }; then
5685 gl_cv_warn__Wwrite_strings=yes
5686 else
5687 $as_echo "$as_me: failed program was:" >&5
5688 sed 's/^/| /' conftest.$ac_ext >&5
5689
5690 gl_cv_warn__Wwrite_strings=no
5691 fi
5692
5693 rm -f conftest.err conftest.$ac_ext
5694 CPPFLAGS="$save_CPPFLAGS"
5695
5696 fi
5697 { $as_echo "$as_me:$LINENO: result: $gl_cv_warn__Wwrite_strings" >&5
5698 $as_echo "$gl_cv_warn__Wwrite_strings" >&6; }
5699 if test x"$gl_cv_warn__Wwrite_strings" = x""yes; then
5700 WARN_CFLAGS=$WARN_CFLAGS" -Wwrite-strings"
5701 fi
5702
5703
5704 WARN_CXXFLAGS=$WARN_CFLAGS
5705
5706 # The following warnings are not suitable for C++.
5707 { $as_echo "$as_me:$LINENO: checking whether compiler handles -Wbad-function-c ast" >&5
5708 $as_echo_n "checking whether compiler handles -Wbad-function-cast... " >&6; }
5709 if test "${gl_cv_warn__Wbad_function_cast+set}" = set; then
5710 $as_echo_n "(cached) " >&6
5711 else
5712
5713 save_CPPFLAGS="$CPPFLAGS"
5714 CPPFLAGS="${CPPFLAGS} -Wbad-function-cast"
5715 cat >conftest.$ac_ext <<_ACEOF
5716 /* confdefs.h. */
5717 _ACEOF
5718 cat confdefs.h >>conftest.$ac_ext
5719 cat >>conftest.$ac_ext <<_ACEOF
5720 /* end confdefs.h. */
5721
5722 int
5723 main ()
5724 {
5725
5726 ;
5727 return 0;
5728 }
5729 _ACEOF
5730 if { (ac_try="$ac_cpp conftest.$ac_ext"
5731 case "(($ac_try" in
5732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5733 *) ac_try_echo=$ac_try;;
5734 esac
5735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5736 $as_echo "$ac_try_echo") >&5
5737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5738 ac_status=$?
5739 grep -v '^ *+' conftest.er1 >conftest.err
5740 rm -f conftest.er1
5741 cat conftest.err >&5
5742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } >/dev/null && {
5744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5745 test ! -s conftest.err
5746 }; then
5747 gl_cv_warn__Wbad_function_cast=yes
5748 else
5749 $as_echo "$as_me: failed program was:" >&5
5750 sed 's/^/| /' conftest.$ac_ext >&5
5751
5752 gl_cv_warn__Wbad_function_cast=no
5753 fi
5754
5755 rm -f conftest.err conftest.$ac_ext
5756 CPPFLAGS="$save_CPPFLAGS"
5757
5758 fi
5759 { $as_echo "$as_me:$LINENO: result: $gl_cv_warn__Wbad_function_cast" >&5
5760 $as_echo "$gl_cv_warn__Wbad_function_cast" >&6; }
5761 if test x"$gl_cv_warn__Wbad_function_cast" = x""yes; then
5762 WARN_CFLAGS=$WARN_CFLAGS" -Wbad-function-cast"
5763 fi
5764
5765
5766 { $as_echo "$as_me:$LINENO: checking whether compiler handles -Wmissing-declar ations" >&5
5767 $as_echo_n "checking whether compiler handles -Wmissing-declarations... " >&6; }
5768 if test "${gl_cv_warn__Wmissing_declarations+set}" = set; then
5769 $as_echo_n "(cached) " >&6
5770 else
5771
5772 save_CPPFLAGS="$CPPFLAGS"
5773 CPPFLAGS="${CPPFLAGS} -Wmissing-declarations"
5774 cat >conftest.$ac_ext <<_ACEOF
5775 /* confdefs.h. */
5776 _ACEOF
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h. */
5780
5781 int
5782 main ()
5783 {
5784
5785 ;
5786 return 0;
5787 }
5788 _ACEOF
5789 if { (ac_try="$ac_cpp conftest.$ac_ext"
5790 case "(($ac_try" in
5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5793 esac
5794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5795 $as_echo "$ac_try_echo") >&5
5796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5797 ac_status=$?
5798 grep -v '^ *+' conftest.er1 >conftest.err
5799 rm -f conftest.er1
5800 cat conftest.err >&5
5801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); } >/dev/null && {
5803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5804 test ! -s conftest.err
5805 }; then
5806 gl_cv_warn__Wmissing_declarations=yes
5807 else
5808 $as_echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5810
5811 gl_cv_warn__Wmissing_declarations=no
5812 fi
5813
5814 rm -f conftest.err conftest.$ac_ext
5815 CPPFLAGS="$save_CPPFLAGS"
5816
5817 fi
5818 { $as_echo "$as_me:$LINENO: result: $gl_cv_warn__Wmissing_declarations" >&5
5819 $as_echo "$gl_cv_warn__Wmissing_declarations" >&6; }
5820 if test x"$gl_cv_warn__Wmissing_declarations" = x""yes; then
5821 WARN_CFLAGS=$WARN_CFLAGS" -Wmissing-declarations"
5822 fi
5823
5824
5825 { $as_echo "$as_me:$LINENO: checking whether compiler handles -Wmissing-protot ypes" >&5
5826 $as_echo_n "checking whether compiler handles -Wmissing-prototypes... " >&6; }
5827 if test "${gl_cv_warn__Wmissing_prototypes+set}" = set; then
5828 $as_echo_n "(cached) " >&6
5829 else
5830
5831 save_CPPFLAGS="$CPPFLAGS"
5832 CPPFLAGS="${CPPFLAGS} -Wmissing-prototypes"
5833 cat >conftest.$ac_ext <<_ACEOF
5834 /* confdefs.h. */
5835 _ACEOF
5836 cat confdefs.h >>conftest.$ac_ext
5837 cat >>conftest.$ac_ext <<_ACEOF
5838 /* end confdefs.h. */
5839
5840 int
5841 main ()
5842 {
5843
5844 ;
5845 return 0;
5846 }
5847 _ACEOF
5848 if { (ac_try="$ac_cpp conftest.$ac_ext"
5849 case "(($ac_try" in
5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5852 esac
5853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5854 $as_echo "$ac_try_echo") >&5
5855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5856 ac_status=$?
5857 grep -v '^ *+' conftest.er1 >conftest.err
5858 rm -f conftest.er1
5859 cat conftest.err >&5
5860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } >/dev/null && {
5862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5863 test ! -s conftest.err
5864 }; then
5865 gl_cv_warn__Wmissing_prototypes=yes
5866 else
5867 $as_echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5869
5870 gl_cv_warn__Wmissing_prototypes=no
5871 fi
5872
5873 rm -f conftest.err conftest.$ac_ext
5874 CPPFLAGS="$save_CPPFLAGS"
5875
5876 fi
5877 { $as_echo "$as_me:$LINENO: result: $gl_cv_warn__Wmissing_prototypes" >&5
5878 $as_echo "$gl_cv_warn__Wmissing_prototypes" >&6; }
5879 if test x"$gl_cv_warn__Wmissing_prototypes" = x""yes; then
5880 WARN_CFLAGS=$WARN_CFLAGS" -Wmissing-prototypes"
5881 fi
5882
5883
5884 { $as_echo "$as_me:$LINENO: checking whether compiler handles -Wshadow" >&5
5885 $as_echo_n "checking whether compiler handles -Wshadow... " >&6; }
5886 if test "${gl_cv_warn__Wshadow+set}" = set; then
5887 $as_echo_n "(cached) " >&6
5888 else
5889
5890 save_CPPFLAGS="$CPPFLAGS"
5891 CPPFLAGS="${CPPFLAGS} -Wshadow"
5892 cat >conftest.$ac_ext <<_ACEOF
5893 /* confdefs.h. */
5894 _ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5898
5899 int
5900 main ()
5901 {
5902
5903 ;
5904 return 0;
5905 }
5906 _ACEOF
5907 if { (ac_try="$ac_cpp conftest.$ac_ext"
5908 case "(($ac_try" in
5909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5911 esac
5912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5913 $as_echo "$ac_try_echo") >&5
5914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5915 ac_status=$?
5916 grep -v '^ *+' conftest.er1 >conftest.err
5917 rm -f conftest.er1
5918 cat conftest.err >&5
5919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); } >/dev/null && {
5921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5922 test ! -s conftest.err
5923 }; then
5924 gl_cv_warn__Wshadow=yes
5925 else
5926 $as_echo "$as_me: failed program was:" >&5
5927 sed 's/^/| /' conftest.$ac_ext >&5
5928
5929 gl_cv_warn__Wshadow=no
5930 fi
5931
5932 rm -f conftest.err conftest.$ac_ext
5933 CPPFLAGS="$save_CPPFLAGS"
5934
5935 fi
5936 { $as_echo "$as_me:$LINENO: result: $gl_cv_warn__Wshadow" >&5
5937 $as_echo "$gl_cv_warn__Wshadow" >&6; }
5938 if test x"$gl_cv_warn__Wshadow" = x""yes; then
5939 WARN_CFLAGS=$WARN_CFLAGS" -Wshadow"
5940 fi
5941
5942
5943 { $as_echo "$as_me:$LINENO: checking whether compiler handles -Wstrict-prototy pes" >&5
5944 $as_echo_n "checking whether compiler handles -Wstrict-prototypes... " >&6; }
5945 if test "${gl_cv_warn__Wstrict_prototypes+set}" = set; then
5946 $as_echo_n "(cached) " >&6
5947 else
5948
5949 save_CPPFLAGS="$CPPFLAGS"
5950 CPPFLAGS="${CPPFLAGS} -Wstrict-prototypes"
5951 cat >conftest.$ac_ext <<_ACEOF
5952 /* confdefs.h. */
5953 _ACEOF
5954 cat confdefs.h >>conftest.$ac_ext
5955 cat >>conftest.$ac_ext <<_ACEOF
5956 /* end confdefs.h. */
5957
5958 int
5959 main ()
5960 {
5961
5962 ;
5963 return 0;
5964 }
5965 _ACEOF
5966 if { (ac_try="$ac_cpp conftest.$ac_ext"
5967 case "(($ac_try" in
5968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969 *) ac_try_echo=$ac_try;;
5970 esac
5971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5972 $as_echo "$ac_try_echo") >&5
5973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5974 ac_status=$?
5975 grep -v '^ *+' conftest.er1 >conftest.err
5976 rm -f conftest.er1
5977 cat conftest.err >&5
5978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } >/dev/null && {
5980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5981 test ! -s conftest.err
5982 }; then
5983 gl_cv_warn__Wstrict_prototypes=yes
5984 else
5985 $as_echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.$ac_ext >&5
5987
5988 gl_cv_warn__Wstrict_prototypes=no
5989 fi
5990
5991 rm -f conftest.err conftest.$ac_ext
5992 CPPFLAGS="$save_CPPFLAGS"
5993
5994 fi
5995 { $as_echo "$as_me:$LINENO: result: $gl_cv_warn__Wstrict_prototypes" >&5
5996 $as_echo "$gl_cv_warn__Wstrict_prototypes" >&6; }
5997 if test x"$gl_cv_warn__Wstrict_prototypes" = x""yes; then
5998 WARN_CFLAGS=$WARN_CFLAGS" -Wstrict-prototypes"
5999 fi
6000
6001
6002
6003
6004 cat >>confdefs.h <<\_ACEOF
6005 #define lint 1
6006 _ACEOF
6007
6008 fi
6009
6010
6011 cat >conftest.$ac_ext <<_ACEOF
6012 /* confdefs.h. */
6013 _ACEOF
6014 cat confdefs.h >>conftest.$ac_ext
6015 cat >>conftest.$ac_ext <<_ACEOF
6016 /* end confdefs.h. */
6017 #include <limits.h>
6018 int test_array[CHAR_BIT];
6019 int
6020 main ()
6021 {
6022
6023 ;
6024 return 0;
6025 }
6026 _ACEOF
6027 rm -f conftest.$ac_objext
6028 if { (ac_try="$ac_compile"
6029 case "(($ac_try" in
6030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6031 *) ac_try_echo=$ac_try;;
6032 esac
6033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6034 $as_echo "$ac_try_echo") >&5
6035 (eval "$ac_compile") 2>conftest.er1
6036 ac_status=$?
6037 grep -v '^ *+' conftest.er1 >conftest.err
6038 rm -f conftest.er1
6039 cat conftest.err >&5
6040 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); } && {
6042 test -z "$ac_c_werror_flag" ||
6043 test ! -s conftest.err
6044 } && test -s conftest.$ac_objext; then
6045 :
6046 else
6047 $as_echo "$as_me: failed program was:" >&5
6048 sed 's/^/| /' conftest.$ac_ext >&5
6049
6050 { { $as_echo "$as_me:$LINENO: error: cannot compile a simple C program
6051 See \`config.log' for more details." >&5
6052 $as_echo "$as_me: error: cannot compile a simple C program
6053 See \`config.log' for more details." >&2;}
6054 { (exit 1); exit 1; }; }
6055 fi
6056
6057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058
6059
6060 # Check whether --enable-yacc was given.
6061 if test "${enable_yacc+set}" = set; then
6062 enableval=$enable_yacc;
6063 else
6064 enable_yacc=yes
6065 fi
6066
6067 case $enable_yacc in
6068 yes)
6069 YACC_SCRIPT=yacc
6070 YACC_LIBRARY=liby.a;;
6071 *)
6072 YACC_SCRIPT=
6073 YACC_LIBRARY=;;
6074 esac
6075
6076
6077
6078 # Checks for programs.
6079 for ac_prog in flex lex
6080 do
6081 # Extract the first word of "$ac_prog", so it can be a program name with args.
6082 set dummy $ac_prog; ac_word=$2
6083 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6084 $as_echo_n "checking for $ac_word... " >&6; }
6085 if test "${ac_cv_prog_LEX+set}" = set; then
6086 $as_echo_n "(cached) " >&6
6087 else
6088 if test -n "$LEX"; then
6089 ac_cv_prog_LEX="$LEX" # Let the user override the test.
6090 else
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 for as_dir in $PATH
6093 do
6094 IFS=$as_save_IFS
6095 test -z "$as_dir" && as_dir=.
6096 for ac_exec_ext in '' $ac_executable_extensions; do
6097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
6098 ac_cv_prog_LEX="$ac_prog"
6099 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6100 break 2
6101 fi
6102 done
6103 done
6104 IFS=$as_save_IFS
6105
6106 fi
6107 fi
6108 LEX=$ac_cv_prog_LEX
6109 if test -n "$LEX"; then
6110 { $as_echo "$as_me:$LINENO: result: $LEX" >&5
6111 $as_echo "$LEX" >&6; }
6112 else
6113 { $as_echo "$as_me:$LINENO: result: no" >&5
6114 $as_echo "no" >&6; }
6115 fi
6116
6117
6118 test -n "$LEX" && break
6119 done
6120 test -n "$LEX" || LEX=":"
6121
6122 if test "x$LEX" != "x:"; then
6123 cat >conftest.l <<_ACEOF
6124 %%
6125 a { ECHO; }
6126 b { REJECT; }
6127 c { yymore (); }
6128 d { yyless (1); }
6129 e { yyless (input () != 0); }
6130 f { unput (yytext[0]); }
6131 . { BEGIN INITIAL; }
6132 %%
6133 #ifdef YYTEXT_POINTER
6134 extern char *yytext;
6135 #endif
6136 int
6137 main (void)
6138 {
6139 return ! yylex () + ! yywrap ();
6140 }
6141 _ACEOF
6142 { (ac_try="$LEX conftest.l"
6143 case "(($ac_try" in
6144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6145 *) ac_try_echo=$ac_try;;
6146 esac
6147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6148 $as_echo "$ac_try_echo") >&5
6149 (eval "$LEX conftest.l") 2>&5
6150 ac_status=$?
6151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }
6153 { $as_echo "$as_me:$LINENO: checking lex output file root" >&5
6154 $as_echo_n "checking lex output file root... " >&6; }
6155 if test "${ac_cv_prog_lex_root+set}" = set; then
6156 $as_echo_n "(cached) " >&6
6157 else
6158
6159 if test -f lex.yy.c; then
6160 ac_cv_prog_lex_root=lex.yy
6161 elif test -f lexyy.c; then
6162 ac_cv_prog_lex_root=lexyy
6163 else
6164 { { $as_echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
6165 $as_echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
6166 { (exit 1); exit 1; }; }
6167 fi
6168 fi
6169 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
6170 $as_echo "$ac_cv_prog_lex_root" >&6; }
6171 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
6172
6173 if test -z "${LEXLIB+set}"; then
6174 { $as_echo "$as_me:$LINENO: checking lex library" >&5
6175 $as_echo_n "checking lex library... " >&6; }
6176 if test "${ac_cv_lib_lex+set}" = set; then
6177 $as_echo_n "(cached) " >&6
6178 else
6179
6180 ac_save_LIBS=$LIBS
6181 ac_cv_lib_lex='none needed'
6182 for ac_lib in '' -lfl -ll; do
6183 LIBS="$ac_lib $ac_save_LIBS"
6184 cat >conftest.$ac_ext <<_ACEOF
6185 `cat $LEX_OUTPUT_ROOT.c`
6186 _ACEOF
6187 rm -f conftest.$ac_objext conftest$ac_exeext
6188 if { (ac_try="$ac_link"
6189 case "(($ac_try" in
6190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6191 *) ac_try_echo=$ac_try;;
6192 esac
6193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6194 $as_echo "$ac_try_echo") >&5
6195 (eval "$ac_link") 2>conftest.er1
6196 ac_status=$?
6197 grep -v '^ *+' conftest.er1 >conftest.err
6198 rm -f conftest.er1
6199 cat conftest.err >&5
6200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } && {
6202 test -z "$ac_c_werror_flag" ||
6203 test ! -s conftest.err
6204 } && test -s conftest$ac_exeext && {
6205 test "$cross_compiling" = yes ||
6206 $as_test_x conftest$ac_exeext
6207 }; then
6208 ac_cv_lib_lex=$ac_lib
6209 else
6210 $as_echo "$as_me: failed program was:" >&5
6211 sed 's/^/| /' conftest.$ac_ext >&5
6212
6213
6214 fi
6215
6216 rm -rf conftest.dSYM
6217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6218 conftest$ac_exeext conftest.$ac_ext
6219 test "$ac_cv_lib_lex" != 'none needed' && break
6220 done
6221 LIBS=$ac_save_LIBS
6222
6223 fi
6224 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5
6225 $as_echo "$ac_cv_lib_lex" >&6; }
6226 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
6227 fi
6228
6229
6230 { $as_echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
6231 $as_echo_n "checking whether yytext is a pointer... " >&6; }
6232 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
6233 $as_echo_n "(cached) " >&6
6234 else
6235 # POSIX says lex can declare yytext either as a pointer or an array; the
6236 # default is implementation-dependent. Figure out which it is, since
6237 # not all implementations provide the %pointer and %array declarations.
6238 ac_cv_prog_lex_yytext_pointer=no
6239 ac_save_LIBS=$LIBS
6240 LIBS="$LEXLIB $ac_save_LIBS"
6241 cat >conftest.$ac_ext <<_ACEOF
6242 #define YYTEXT_POINTER 1
6243 `cat $LEX_OUTPUT_ROOT.c`
6244 _ACEOF
6245 rm -f conftest.$ac_objext conftest$ac_exeext
6246 if { (ac_try="$ac_link"
6247 case "(($ac_try" in
6248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6249 *) ac_try_echo=$ac_try;;
6250 esac
6251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6252 $as_echo "$ac_try_echo") >&5
6253 (eval "$ac_link") 2>conftest.er1
6254 ac_status=$?
6255 grep -v '^ *+' conftest.er1 >conftest.err
6256 rm -f conftest.er1
6257 cat conftest.err >&5
6258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259 (exit $ac_status); } && {
6260 test -z "$ac_c_werror_flag" ||
6261 test ! -s conftest.err
6262 } && test -s conftest$ac_exeext && {
6263 test "$cross_compiling" = yes ||
6264 $as_test_x conftest$ac_exeext
6265 }; then
6266 ac_cv_prog_lex_yytext_pointer=yes
6267 else
6268 $as_echo "$as_me: failed program was:" >&5
6269 sed 's/^/| /' conftest.$ac_ext >&5
6270
6271
6272 fi
6273
6274 rm -rf conftest.dSYM
6275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6276 conftest$ac_exeext conftest.$ac_ext
6277 LIBS=$ac_save_LIBS
6278
6279 fi
6280 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
6281 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
6282 if test $ac_cv_prog_lex_yytext_pointer = yes; then
6283
6284 cat >>confdefs.h <<\_ACEOF
6285 #define YYTEXT_POINTER 1
6286 _ACEOF
6287
6288 fi
6289 rm -f conftest.l $LEX_OUTPUT_ROOT.c
6290
6291 fi
6292 for ac_prog in 'bison -y' byacc
6293 do
6294 # Extract the first word of "$ac_prog", so it can be a program name with args.
6295 set dummy $ac_prog; ac_word=$2
6296 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6297 $as_echo_n "checking for $ac_word... " >&6; }
6298 if test "${ac_cv_prog_YACC+set}" = set; then
6299 $as_echo_n "(cached) " >&6
6300 else
6301 if test -n "$YACC"; then
6302 ac_cv_prog_YACC="$YACC" # Let the user override the test.
6303 else
6304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 for as_dir in $PATH
6306 do
6307 IFS=$as_save_IFS
6308 test -z "$as_dir" && as_dir=.
6309 for ac_exec_ext in '' $ac_executable_extensions; do
6310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
6311 ac_cv_prog_YACC="$ac_prog"
6312 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6313 break 2
6314 fi
6315 done
6316 done
6317 IFS=$as_save_IFS
6318
6319 fi
6320 fi
6321 YACC=$ac_cv_prog_YACC
6322 if test -n "$YACC"; then
6323 { $as_echo "$as_me:$LINENO: result: $YACC" >&5
6324 $as_echo "$YACC" >&6; }
6325 else
6326 { $as_echo "$as_me:$LINENO: result: no" >&5
6327 $as_echo "no" >&6; }
6328 fi
6329
6330
6331 test -n "$YACC" && break
6332 done
6333 test -n "$YACC" || YACC="yacc"
6334
6335 if test -n "$ac_tool_prefix"; then
6336 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6337 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6338 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6339 $as_echo_n "checking for $ac_word... " >&6; }
6340 if test "${ac_cv_prog_RANLIB+set}" = set; then
6341 $as_echo_n "(cached) " >&6
6342 else
6343 if test -n "$RANLIB"; then
6344 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6345 else
6346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347 for as_dir in $PATH
6348 do
6349 IFS=$as_save_IFS
6350 test -z "$as_dir" && as_dir=.
6351 for ac_exec_ext in '' $ac_executable_extensions; do
6352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
6353 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6354 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 break 2
6356 fi
6357 done
6358 done
6359 IFS=$as_save_IFS
6360
6361 fi
6362 fi
6363 RANLIB=$ac_cv_prog_RANLIB
6364 if test -n "$RANLIB"; then
6365 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6366 $as_echo "$RANLIB" >&6; }
6367 else
6368 { $as_echo "$as_me:$LINENO: result: no" >&5
6369 $as_echo "no" >&6; }
6370 fi
6371
6372
6373 fi
6374 if test -z "$ac_cv_prog_RANLIB"; then
6375 ac_ct_RANLIB=$RANLIB
6376 # Extract the first word of "ranlib", so it can be a program name with args.
6377 set dummy ranlib; ac_word=$2
6378 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6379 $as_echo_n "checking for $ac_word... " >&6; }
6380 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6381 $as_echo_n "(cached) " >&6
6382 else
6383 if test -n "$ac_ct_RANLIB"; then
6384 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6385 else
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 for as_dir in $PATH
6388 do
6389 IFS=$as_save_IFS
6390 test -z "$as_dir" && as_dir=.
6391 for ac_exec_ext in '' $ac_executable_extensions; do
6392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
6393 ac_cv_prog_ac_ct_RANLIB="ranlib"
6394 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6395 break 2
6396 fi
6397 done
6398 done
6399 IFS=$as_save_IFS
6400
6401 fi
6402 fi
6403 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6404 if test -n "$ac_ct_RANLIB"; then
6405 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6406 $as_echo "$ac_ct_RANLIB" >&6; }
6407 else
6408 { $as_echo "$as_me:$LINENO: result: no" >&5
6409 $as_echo "no" >&6; }
6410 fi
6411
6412 if test "x$ac_ct_RANLIB" = x; then
6413 RANLIB=":"
6414 else
6415 case $cross_compiling:$ac_tool_warned in
6416 yes:)
6417 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cro ss-tools
6418 whose name does not start with the host triplet. If you think this
6419 configuration is useful to you, please write to autoconf@gnu.org." >&5
6420 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6421 whose name does not start with the host triplet. If you think this
6422 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6423 ac_tool_warned=yes ;;
6424 esac
6425 RANLIB=$ac_ct_RANLIB
6426 fi
6427 else
6428 RANLIB="$ac_cv_prog_RANLIB"
6429 fi
6430
6431 for ac_prog in gm4 gnum4 m4
6432 do
6433 # Extract the first word of "$ac_prog", so it can be a program name with args.
6434 set dummy $ac_prog; ac_word=$2
6435 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6436 $as_echo_n "checking for $ac_word... " >&6; }
6437 if test "${ac_cv_path_M4+set}" = set; then
6438 $as_echo_n "(cached) " >&6
6439 else
6440 case $M4 in
6441 [\\/]* | ?:[\\/]*)
6442 ac_cv_path_M4="$M4" # Let the user override the test with a path.
6443 ;;
6444 *)
6445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446 for as_dir in $PATH
6447 do
6448 IFS=$as_save_IFS
6449 test -z "$as_dir" && as_dir=.
6450 for ac_exec_ext in '' $ac_executable_extensions; do
6451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
6452 ac_cv_path_M4="$as_dir/$ac_word$ac_exec_ext"
6453 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6454 break 2
6455 fi
6456 done
6457 done
6458 IFS=$as_save_IFS
6459
6460 ;;
6461 esac
6462 fi
6463 M4=$ac_cv_path_M4
6464 if test -n "$M4"; then
6465 { $as_echo "$as_me:$LINENO: result: $M4" >&5
6466 $as_echo "$M4" >&6; }
6467 else
6468 { $as_echo "$as_me:$LINENO: result: no" >&5
6469 $as_echo "no" >&6; }
6470 fi
6471
6472
6473 test -n "$M4" && break
6474 done
6475 test -n "$M4" || M4="m4"
6476
6477 { $as_echo "$as_me:$LINENO: checking whether m4 supports frozen files" >&5
6478 $as_echo_n "checking whether m4 supports frozen files... " >&6; }
6479 if test "${ac_cv_prog_gnu_m4+set}" = set; then
6480 $as_echo_n "(cached) " >&6
6481 else
6482 ac_cv_prog_gnu_m4=no
6483 if test x"$M4" != x; then
6484 case `$M4 --help < /dev/null 2>&1` in
6485 *reload-state*) ac_cv_prog_gnu_m4=yes ;;
6486 esac
6487 fi
6488 fi
6489 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gnu_m4" >&5
6490 $as_echo "$ac_cv_prog_gnu_m4" >&6; }
6491 if test x"$ac_cv_prog_gnu_m4" != xyes; then
6492 { { $as_echo "$as_me:$LINENO: error: GNU M4 1.4 is required" >&5
6493 $as_echo "$as_me: error: GNU M4 1.4 is required" >&2;}
6494 { (exit 1); exit 1; }; }
6495 fi
6496
6497 cat >>confdefs.h <<_ACEOF
6498 #define M4 "$M4"
6499 _ACEOF
6500
6501
6502 HELP2MAN=${HELP2MAN-"${am_missing_run}help2man"}
6503
6504 # Extract the first word of "xsltproc", so it can be a program name with args.
6505 set dummy xsltproc; ac_word=$2
6506 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6507 $as_echo_n "checking for $ac_word... " >&6; }
6508 if test "${ac_cv_path_XSLTPROC+set}" = set; then
6509 $as_echo_n "(cached) " >&6
6510 else
6511 case $XSLTPROC in
6512 [\\/]* | ?:[\\/]*)
6513 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
6514 ;;
6515 *)
6516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517 for as_dir in $PATH
6518 do
6519 IFS=$as_save_IFS
6520 test -z "$as_dir" && as_dir=.
6521 for ac_exec_ext in '' $ac_executable_extensions; do
6522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
6523 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
6524 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6525 break 2
6526 fi
6527 done
6528 done
6529 IFS=$as_save_IFS
6530
6531 ;;
6532 esac
6533 fi
6534 XSLTPROC=$ac_cv_path_XSLTPROC
6535 if test -n "$XSLTPROC"; then
6536 { $as_echo "$as_me:$LINENO: result: $XSLTPROC" >&5
6537 $as_echo "$XSLTPROC" >&6; }
6538 else
6539 { $as_echo "$as_me:$LINENO: result: no" >&5
6540 $as_echo "no" >&6; }
6541 fi
6542
6543
6544
6545
6546 # Checks for header files.
6547
6548
6549
6550
6551 for ac_header in $ac_header_list
6552 do
6553 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6555 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6556 $as_echo_n "checking for $ac_header... " >&6; }
6557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6558 $as_echo_n "(cached) " >&6
6559 fi
6560 ac_res=`eval 'as_val=${'$as_ac_Header'}
6561 $as_echo "$as_val"'`
6562 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6563 $as_echo "$ac_res" >&6; }
6564 else
6565 # Is the header compilable?
6566 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6567 $as_echo_n "checking $ac_header usability... " >&6; }
6568 cat >conftest.$ac_ext <<_ACEOF
6569 /* confdefs.h. */
6570 _ACEOF
6571 cat confdefs.h >>conftest.$ac_ext
6572 cat >>conftest.$ac_ext <<_ACEOF
6573 /* end confdefs.h. */
6574 $ac_includes_default
6575 #include <$ac_header>
6576 _ACEOF
6577 rm -f conftest.$ac_objext
6578 if { (ac_try="$ac_compile"
6579 case "(($ac_try" in
6580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581 *) ac_try_echo=$ac_try;;
6582 esac
6583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6584 $as_echo "$ac_try_echo") >&5
6585 (eval "$ac_compile") 2>conftest.er1
6586 ac_status=$?
6587 grep -v '^ *+' conftest.er1 >conftest.err
6588 rm -f conftest.er1
6589 cat conftest.err >&5
6590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); } && {
6592 test -z "$ac_c_werror_flag" ||
6593 test ! -s conftest.err
6594 } && test -s conftest.$ac_objext; then
6595 ac_header_compiler=yes
6596 else
6597 $as_echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6599
6600 ac_header_compiler=no
6601 fi
6602
6603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6604 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6605 $as_echo "$ac_header_compiler" >&6; }
6606
6607 # Is the header present?
6608 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6609 $as_echo_n "checking $ac_header presence... " >&6; }
6610 cat >conftest.$ac_ext <<_ACEOF
6611 /* confdefs.h. */
6612 _ACEOF
6613 cat confdefs.h >>conftest.$ac_ext
6614 cat >>conftest.$ac_ext <<_ACEOF
6615 /* end confdefs.h. */
6616 #include <$ac_header>
6617 _ACEOF
6618 if { (ac_try="$ac_cpp conftest.$ac_ext"
6619 case "(($ac_try" in
6620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6621 *) ac_try_echo=$ac_try;;
6622 esac
6623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6624 $as_echo "$ac_try_echo") >&5
6625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6626 ac_status=$?
6627 grep -v '^ *+' conftest.er1 >conftest.err
6628 rm -f conftest.er1
6629 cat conftest.err >&5
6630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); } >/dev/null && {
6632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6633 test ! -s conftest.err
6634 }; then
6635 ac_header_preproc=yes
6636 else
6637 $as_echo "$as_me: failed program was:" >&5
6638 sed 's/^/| /' conftest.$ac_ext >&5
6639
6640 ac_header_preproc=no
6641 fi
6642
6643 rm -f conftest.err conftest.$ac_ext
6644 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6645 $as_echo "$ac_header_preproc" >&6; }
6646
6647 # So? What about this header?
6648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6649 yes:no: )
6650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, r ejected by the preprocessor!" >&5
6651 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6652 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compile r's result" >&5
6653 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >& 2;}
6654 ac_header_preproc=yes
6655 ;;
6656 no:yes:* )
6657 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compi led" >&5
6658 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6659 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prere quisite headers?" >&5
6660 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite header s?" >&2;}
6661 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentat ion" >&5
6662 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6663 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But C annot Be Compiled\"" >&5
6664 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compi led\"" >&2;}
6665 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preproc essor's result" >&5
6666 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result " >&2;}
6667 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6668 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take pre cedence" >&2;}
6669 ( cat <<\_ASBOX
6670 ## -------------------------------- ##
6671 ## Report this to bug-bison@gnu.org ##
6672 ## -------------------------------- ##
6673 _ASBOX
6674 ) | sed "s/^/$as_me: WARNING: /" >&2
6675 ;;
6676 esac
6677 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6678 $as_echo_n "checking for $ac_header... " >&6; }
6679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6680 $as_echo_n "(cached) " >&6
6681 else
6682 eval "$as_ac_Header=\$ac_header_preproc"
6683 fi
6684 ac_res=`eval 'as_val=${'$as_ac_Header'}
6685 $as_echo "$as_val"'`
6686 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6687 $as_echo "$ac_res" >&6; }
6688
6689 fi
6690 if test `eval 'as_val=${'$as_ac_Header'}
6691 $as_echo "$as_val"'` = yes; then
6692 cat >>confdefs.h <<_ACEOF
6693 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6694 _ACEOF
6695
6696 fi
6697
6698 done
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709 # Checks for compiler characteristics.
6710 { $as_echo "$as_me:$LINENO: checking for inline" >&5
6711 $as_echo_n "checking for inline... " >&6; }
6712 if test "${ac_cv_c_inline+set}" = set; then
6713 $as_echo_n "(cached) " >&6
6714 else
6715 ac_cv_c_inline=no
6716 for ac_kw in inline __inline__ __inline; do
6717 cat >conftest.$ac_ext <<_ACEOF
6718 /* confdefs.h. */
6719 _ACEOF
6720 cat confdefs.h >>conftest.$ac_ext
6721 cat >>conftest.$ac_ext <<_ACEOF
6722 /* end confdefs.h. */
6723 #ifndef __cplusplus
6724 typedef int foo_t;
6725 static $ac_kw foo_t static_foo () {return 0; }
6726 $ac_kw foo_t foo () {return 0; }
6727 #endif
6728
6729 _ACEOF
6730 rm -f conftest.$ac_objext
6731 if { (ac_try="$ac_compile"
6732 case "(($ac_try" in
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6735 esac
6736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6737 $as_echo "$ac_try_echo") >&5
6738 (eval "$ac_compile") 2>conftest.er1
6739 ac_status=$?
6740 grep -v '^ *+' conftest.er1 >conftest.err
6741 rm -f conftest.er1
6742 cat conftest.err >&5
6743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } && {
6745 test -z "$ac_c_werror_flag" ||
6746 test ! -s conftest.err
6747 } && test -s conftest.$ac_objext; then
6748 ac_cv_c_inline=$ac_kw
6749 else
6750 $as_echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6752
6753
6754 fi
6755
6756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6757 test "$ac_cv_c_inline" != no && break
6758 done
6759
6760 fi
6761 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6762 $as_echo "$ac_cv_c_inline" >&6; }
6763
6764
6765 case $ac_cv_c_inline in
6766 inline | yes) ;;
6767 *)
6768 case $ac_cv_c_inline in
6769 no) ac_val=;;
6770 *) ac_val=$ac_cv_c_inline;;
6771 esac
6772 cat >>confdefs.h <<_ACEOF
6773 #ifndef __cplusplus
6774 #define inline $ac_val
6775 #endif
6776 _ACEOF
6777 ;;
6778 esac
6779
6780
6781 # Gnulib (later checks). Putting them here rather than right after
6782 # gl_EARLY avoids some redundant checks.
6783
6784
6785
6786
6787
6788
6789
6790 { $as_echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
6791 $as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
6792 if test "${ac_cv_win_or_dos+set}" = set; then
6793 $as_echo_n "(cached) " >&6
6794 else
6795
6796 cat >conftest.$ac_ext <<_ACEOF
6797 /* confdefs.h. */
6798 _ACEOF
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h. */
6802
6803 int
6804 main ()
6805 {
6806 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CY GWIN__
6807 neither MSDOS nor Windows
6808 #endif
6809 ;
6810 return 0;
6811 }
6812 _ACEOF
6813 rm -f conftest.$ac_objext
6814 if { (ac_try="$ac_compile"
6815 case "(($ac_try" in
6816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6817 *) ac_try_echo=$ac_try;;
6818 esac
6819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6820 $as_echo "$ac_try_echo") >&5
6821 (eval "$ac_compile") 2>conftest.er1
6822 ac_status=$?
6823 grep -v '^ *+' conftest.er1 >conftest.err
6824 rm -f conftest.er1
6825 cat conftest.err >&5
6826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); } && {
6828 test -z "$ac_c_werror_flag" ||
6829 test ! -s conftest.err
6830 } && test -s conftest.$ac_objext; then
6831 ac_cv_win_or_dos=yes
6832 else
6833 $as_echo "$as_me: failed program was:" >&5
6834 sed 's/^/| /' conftest.$ac_ext >&5
6835
6836 ac_cv_win_or_dos=no
6837 fi
6838
6839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6840
6841 fi
6842 { $as_echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
6843 $as_echo "$ac_cv_win_or_dos" >&6; }
6844
6845 if test x"$ac_cv_win_or_dos" = xyes; then
6846 ac_fs_accepts_drive_letter_prefix=1
6847 ac_fs_backslash_is_file_name_separator=1
6848 { $as_echo "$as_me:$LINENO: checking whether drive letter can start relati ve path" >&5
6849 $as_echo_n "checking whether drive letter can start relative path... " >&6; }
6850 if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then
6851 $as_echo_n "(cached) " >&6
6852 else
6853
6854 cat >conftest.$ac_ext <<_ACEOF
6855 /* confdefs.h. */
6856 _ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6860
6861 int
6862 main ()
6863 {
6864 #if defined __CYGWIN__
6865 drive letters are always absolute
6866 #endif
6867 ;
6868 return 0;
6869 }
6870 _ACEOF
6871 rm -f conftest.$ac_objext
6872 if { (ac_try="$ac_compile"
6873 case "(($ac_try" in
6874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6875 *) ac_try_echo=$ac_try;;
6876 esac
6877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6878 $as_echo "$ac_try_echo") >&5
6879 (eval "$ac_compile") 2>conftest.er1
6880 ac_status=$?
6881 grep -v '^ *+' conftest.er1 >conftest.err
6882 rm -f conftest.er1
6883 cat conftest.err >&5
6884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6885 (exit $ac_status); } && {
6886 test -z "$ac_c_werror_flag" ||
6887 test ! -s conftest.err
6888 } && test -s conftest.$ac_objext; then
6889 ac_cv_drive_letter_can_be_relative=yes
6890 else
6891 $as_echo "$as_me: failed program was:" >&5
6892 sed 's/^/| /' conftest.$ac_ext >&5
6893
6894 ac_cv_drive_letter_can_be_relative=no
6895 fi
6896
6897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6898
6899 fi
6900 { $as_echo "$as_me:$LINENO: result: $ac_cv_drive_letter_can_be_relative" >&5
6901 $as_echo "$ac_cv_drive_letter_can_be_relative" >&6; }
6902 if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
6903 ac_fs_drive_letter_can_be_relative=1
6904 else
6905 ac_fs_drive_letter_can_be_relative=0
6906 fi
6907 else
6908 ac_fs_accepts_drive_letter_prefix=0
6909 ac_fs_backslash_is_file_name_separator=0
6910 ac_fs_drive_letter_can_be_relative=0
6911 fi
6912
6913
6914 cat >>confdefs.h <<_ACEOF
6915 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_pref ix
6916 _ACEOF
6917
6918
6919
6920
6921
6922
6923 cat >>confdefs.h <<_ACEOF
6924 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_na me_separator
6925 _ACEOF
6926
6927
6928
6929 cat >>confdefs.h <<_ACEOF
6930 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_rela tive
6931 _ACEOF
6932
6933
6934 # Make sure we can run config.sub.
6935 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6936 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
6937 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
6938 { (exit 1); exit 1; }; }
6939
6940 { $as_echo "$as_me:$LINENO: checking build system type" >&5
6941 $as_echo_n "checking build system type... " >&6; }
6942 if test "${ac_cv_build+set}" = set; then
6943 $as_echo_n "(cached) " >&6
6944 else
6945 ac_build_alias=$build_alias
6946 test "x$ac_build_alias" = x &&
6947 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6948 test "x$ac_build_alias" = x &&
6949 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
6950 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
6951 { (exit 1); exit 1; }; }
6952 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6953 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_a lias failed" >&5
6954 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" > &2;}
6955 { (exit 1); exit 1; }; }
6956
6957 fi
6958 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
6959 $as_echo "$ac_cv_build" >&6; }
6960 case $ac_cv_build in
6961 *-*-*) ;;
6962 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
6963 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
6964 { (exit 1); exit 1; }; };;
6965 esac
6966 build=$ac_cv_build
6967 ac_save_IFS=$IFS; IFS='-'
6968 set x $ac_cv_build
6969 shift
6970 build_cpu=$1
6971 build_vendor=$2
6972 shift; shift
6973 # Remember, the first character of IFS is used to create $*,
6974 # except with old shells:
6975 build_os=$*
6976 IFS=$ac_save_IFS
6977 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6978
6979
6980 { $as_echo "$as_me:$LINENO: checking host system type" >&5
6981 $as_echo_n "checking host system type... " >&6; }
6982 if test "${ac_cv_host+set}" = set; then
6983 $as_echo_n "(cached) " >&6
6984 else
6985 if test "x$host_alias" = x; then
6986 ac_cv_host=$ac_cv_build
6987 else
6988 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6989 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_ali as failed" >&5
6990 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
6991 { (exit 1); exit 1; }; }
6992 fi
6993
6994 fi
6995 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
6996 $as_echo "$ac_cv_host" >&6; }
6997 case $ac_cv_host in
6998 *-*-*) ;;
6999 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
7000 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
7001 { (exit 1); exit 1; }; };;
7002 esac
7003 host=$ac_cv_host
7004 ac_save_IFS=$IFS; IFS='-'
7005 set x $ac_cv_host
7006 shift
7007 host_cpu=$1
7008 host_vendor=$2
7009 shift; shift
7010 # Remember, the first character of IFS is used to create $*,
7011 # except with old shells:
7012 host_os=$*
7013 IFS=$ac_save_IFS
7014 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7015
7016
7017
7018
7019 { $as_echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
7020 $as_echo_n "checking whether // is distinct from /... " >&6; }
7021 if test "${gl_cv_double_slash_root+set}" = set; then
7022 $as_echo_n "(cached) " >&6
7023 else
7024 if test x"$cross_compiling" = xyes ; then
7025 # When cross-compiling, there is no way to tell whether // is special
7026 # short of a list of hosts. However, the only known hosts to date
7027 # that have a distinct // are Apollo DomainOS (too old to port to),
7028 # Cygwin, and z/OS. If anyone knows of another system for which // has
7029 # special semantics and is distinct from /, please report it to
7030 # <bug-gnulib@gnu.org>.
7031 case $host in
7032 *-cygwin | i370-ibm-openedition)
7033 gl_cv_double_slash_root=yes ;;
7034 *)
7035 # Be optimistic and assume that / and // are the same when we
7036 # don't know.
7037 gl_cv_double_slash_root='unknown, assuming no' ;;
7038 esac
7039 else
7040 set x `ls -di / // 2>/dev/null`
7041 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
7042 gl_cv_double_slash_root=no
7043 else
7044 gl_cv_double_slash_root=yes
7045 fi
7046 fi
7047 fi
7048 { $as_echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
7049 $as_echo "$gl_cv_double_slash_root" >&6; }
7050 if test "$gl_cv_double_slash_root" = yes; then
7051
7052 cat >>confdefs.h <<\_ACEOF
7053 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
7054 _ACEOF
7055
7056 fi
7057
7058
7059 GNULIB_CHOWN=0;
7060 GNULIB_CLOSE=0;
7061 GNULIB_DUP2=0;
7062 GNULIB_ENVIRON=0;
7063 GNULIB_EUIDACCESS=0;
7064 GNULIB_FCHDIR=0;
7065 GNULIB_FSYNC=0;
7066 GNULIB_FTRUNCATE=0;
7067 GNULIB_GETCWD=0;
7068 GNULIB_GETDOMAINNAME=0;
7069 GNULIB_GETDTABLESIZE=0;
7070 GNULIB_GETHOSTNAME=0;
7071 GNULIB_GETLOGIN_R=0;
7072 GNULIB_GETPAGESIZE=0;
7073 GNULIB_GETUSERSHELL=0;
7074 GNULIB_LCHOWN=0;
7075 GNULIB_LSEEK=0;
7076 GNULIB_READLINK=0;
7077 GNULIB_SLEEP=0;
7078 GNULIB_UNISTD_H_SIGPIPE=0;
7079 GNULIB_WRITE=0;
7080 HAVE_DUP2=1;
7081 HAVE_EUIDACCESS=1;
7082 HAVE_FSYNC=1;
7083 HAVE_FTRUNCATE=1;
7084 HAVE_GETDOMAINNAME=1;
7085 HAVE_GETDTABLESIZE=1;
7086 HAVE_GETHOSTNAME=1;
7087 HAVE_GETPAGESIZE=1;
7088 HAVE_GETUSERSHELL=1;
7089 HAVE_READLINK=1;
7090 HAVE_SLEEP=1;
7091 HAVE_DECL_ENVIRON=1;
7092 HAVE_DECL_GETLOGIN_R=1;
7093 HAVE_OS_H=0;
7094 HAVE_SYS_PARAM_H=0;
7095 REPLACE_CHOWN=0;
7096 REPLACE_CLOSE=0;
7097 REPLACE_FCHDIR=0;
7098 REPLACE_GETCWD=0;
7099 REPLACE_GETPAGESIZE=0;
7100 REPLACE_LCHOWN=0;
7101 REPLACE_LSEEK=0;
7102 REPLACE_WRITE=0;
7103 UNISTD_H_HAVE_WINSOCK2_H=0;
7104
7105
7106
7107 { $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include _next" >&5
7108 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
7109 if test "${gl_cv_have_include_next+set}" = set; then
7110 $as_echo_n "(cached) " >&6
7111 else
7112 rm -rf conftestd1a conftestd1b conftestd2
7113 mkdir conftestd1a conftestd1b conftestd2
7114 cat <<EOF > conftestd1a/conftest.h
7115 #define DEFINED_IN_CONFTESTD1
7116 #include_next <conftest.h>
7117 #ifdef DEFINED_IN_CONFTESTD2
7118 int foo;
7119 #else
7120 #error "include_next doesn't work"
7121 #endif
7122 EOF
7123 cat <<EOF > conftestd1b/conftest.h
7124 #define DEFINED_IN_CONFTESTD1
7125 #include <stdio.h>
7126 #include_next <conftest.h>
7127 #ifdef DEFINED_IN_CONFTESTD2
7128 int foo;
7129 #else
7130 #error "include_next doesn't work"
7131 #endif
7132 EOF
7133 cat <<EOF > conftestd2/conftest.h
7134 #ifndef DEFINED_IN_CONFTESTD1
7135 #error "include_next test doesn't work"
7136 #endif
7137 #define DEFINED_IN_CONFTESTD2
7138 EOF
7139 gl_save_CPPFLAGS="$CPPFLAGS"
7140 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
7141 cat >conftest.$ac_ext <<_ACEOF
7142 #include <conftest.h>
7143 _ACEOF
7144 rm -f conftest.$ac_objext
7145 if { (ac_try="$ac_compile"
7146 case "(($ac_try" in
7147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7148 *) ac_try_echo=$ac_try;;
7149 esac
7150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7151 $as_echo "$ac_try_echo") >&5
7152 (eval "$ac_compile") 2>conftest.er1
7153 ac_status=$?
7154 grep -v '^ *+' conftest.er1 >conftest.err
7155 rm -f conftest.er1
7156 cat conftest.err >&5
7157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7158 (exit $ac_status); } && {
7159 test -z "$ac_c_werror_flag" ||
7160 test ! -s conftest.err
7161 } && test -s conftest.$ac_objext; then
7162 gl_cv_have_include_next=yes
7163 else
7164 $as_echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.$ac_ext >&5
7166
7167 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
7168 cat >conftest.$ac_ext <<_ACEOF
7169 #include <conftest.h>
7170 _ACEOF
7171 rm -f conftest.$ac_objext
7172 if { (ac_try="$ac_compile"
7173 case "(($ac_try" in
7174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7175 *) ac_try_echo=$ac_try;;
7176 esac
7177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7178 $as_echo "$ac_try_echo") >&5
7179 (eval "$ac_compile") 2>conftest.er1
7180 ac_status=$?
7181 grep -v '^ *+' conftest.er1 >conftest.err
7182 rm -f conftest.er1
7183 cat conftest.err >&5
7184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); } && {
7186 test -z "$ac_c_werror_flag" ||
7187 test ! -s conftest.err
7188 } && test -s conftest.$ac_objext; then
7189 gl_cv_have_include_next=buggy
7190 else
7191 $as_echo "$as_me: failed program was:" >&5
7192 sed 's/^/| /' conftest.$ac_ext >&5
7193
7194 gl_cv_have_include_next=no
7195 fi
7196
7197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7198
7199 fi
7200
7201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7202 CPPFLAGS="$gl_save_CPPFLAGS"
7203 rm -rf conftestd1a conftestd1b conftestd2
7204
7205 fi
7206 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
7207 $as_echo "$gl_cv_have_include_next" >&6; }
7208 PRAGMA_SYSTEM_HEADER=
7209 if test $gl_cv_have_include_next = yes; then
7210 INCLUDE_NEXT=include_next
7211 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
7212 if test -n "$GCC"; then
7213 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
7214 fi
7215 else
7216 if test $gl_cv_have_include_next = buggy; then
7217 INCLUDE_NEXT=include
7218 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
7219 else
7220 INCLUDE_NEXT=include
7221 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
7222 fi
7223 fi
7224
7225
7226
7227
7228
7229
7230
7231
7232 { $as_echo "$as_me:$LINENO: checking for complete errno.h" >&5
7233 $as_echo_n "checking for complete errno.h... " >&6; }
7234 if test "${gl_cv_header_errno_h_complete+set}" = set; then
7235 $as_echo_n "(cached) " >&6
7236 else
7237
7238 cat >conftest.$ac_ext <<_ACEOF
7239 /* confdefs.h. */
7240 _ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h. */
7244
7245 #include <errno.h>
7246 #if !defined ENOMSG
7247 booboo
7248 #endif
7249 #if !defined EIDRM
7250 booboo
7251 #endif
7252 #if !defined ENOLINK
7253 booboo
7254 #endif
7255 #if !defined EPROTO
7256 booboo
7257 #endif
7258 #if !defined EMULTIHOP
7259 booboo
7260 #endif
7261 #if !defined EBADMSG
7262 booboo
7263 #endif
7264 #if !defined EOVERFLOW
7265 booboo
7266 #endif
7267 #if !defined ENOTSUP
7268 booboo
7269 #endif
7270 #if !defined ECANCELED
7271 booboo
7272 #endif
7273
7274 _ACEOF
7275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7276 $EGREP "booboo" >/dev/null 2>&1; then
7277 gl_cv_header_errno_h_complete=no
7278 else
7279 gl_cv_header_errno_h_complete=yes
7280 fi
7281 rm -f conftest*
7282
7283
7284 fi
7285 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5
7286 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
7287 if test $gl_cv_header_errno_h_complete = yes; then
7288 ERRNO_H=''
7289 else
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301 if test $gl_cv_have_include_next = yes; then
7302 gl_cv_next_errno_h='<'errno.h'>'
7303 else
7304 { $as_echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5
7305 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
7306 if test "${gl_cv_next_errno_h+set}" = set; then
7307 $as_echo_n "(cached) " >&6
7308 else
7309
7310 if test $ac_cv_header_errno_h = yes; then
7311 cat >conftest.$ac_ext <<_ACEOF
7312 /* confdefs.h. */
7313 _ACEOF
7314 cat confdefs.h >>conftest.$ac_ext
7315 cat >>conftest.$ac_ext <<_ACEOF
7316 /* end confdefs.h. */
7317 #include <errno.h>
7318
7319 _ACEOF
7320 case "$host_ os" in
7321 aix*) gl_absname_cpp="$ac_cpp -C" ;;
7322 *) gl_absname_cpp="$ac_cpp" ;;
7323 esac
7324 gl_cv_next_errno_h='"'`(eval "$gl_absname_cp p conftest.$ac_ext") 2>&5 |
7325 sed -n '\#/errno.h#{
7326 s#.*"\(.*/errno.h\)".*#\1#
7327 s#^/[^/]#//&#
7328 p
7329 q
7330 }'`'"'
7331 else
7332 gl_cv_next_errno_h='<'errno.h'>'
7333 fi
7334
7335 fi
7336 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5
7337 $as_echo "$gl_cv_next_errno_h" >&6; }
7338 fi
7339 NEXT_ERRNO_H=$gl_cv_next_errno_h
7340
7341
7342
7343 ERRNO_H='errno.h'
7344 fi
7345
7346
7347 if test -n "$ERRNO_H"; then
7348 { $as_echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5
7349 $as_echo_n "checking for EMULTIHOP value... " >&6; }
7350 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then
7351 $as_echo_n "(cached) " >&6
7352 else
7353
7354 cat >conftest.$ac_ext <<_ACEOF
7355 /* confdefs.h. */
7356 _ACEOF
7357 cat confdefs.h >>conftest.$ac_ext
7358 cat >>conftest.$ac_ext <<_ACEOF
7359 /* end confdefs.h. */
7360
7361 #include <errno.h>
7362 #ifdef EMULTIHOP
7363 yes
7364 #endif
7365
7366 _ACEOF
7367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7368 $EGREP "yes" >/dev/null 2>&1; then
7369 gl_cv_header_errno_h_EMULTIHOP=yes
7370 else
7371 gl_cv_header_errno_h_EMULTIHOP=no
7372 fi
7373 rm -f conftest*
7374
7375 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
7376 cat >conftest.$ac_ext <<_ACEOF
7377 /* confdefs.h. */
7378 _ACEOF
7379 cat confdefs.h >>conftest.$ac_ext
7380 cat >>conftest.$ac_ext <<_ACEOF
7381 /* end confdefs.h. */
7382
7383 #define _XOPEN_SOURCE_EXTENDED 1
7384 #include <errno.h>
7385 #ifdef EMULTIHOP
7386 yes
7387 #endif
7388
7389 _ACEOF
7390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7391 $EGREP "yes" >/dev/null 2>&1; then
7392 gl_cv_header_errno_h_EMULTIHOP=hidden
7393 fi
7394 rm -f conftest*
7395
7396 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
7397 if test "$cross_compiling" = yes; then
7398 # Depending upon the size, compute the lo and hi bounds.
7399 cat >conftest.$ac_ext <<_ACEOF
7400 /* confdefs.h. */
7401 _ACEOF
7402 cat confdefs.h >>conftest.$ac_ext
7403 cat >>conftest.$ac_ext <<_ACEOF
7404 /* end confdefs.h. */
7405
7406 #define _XOPEN_SOURCE_EXTENDED 1
7407 #include <errno.h>
7408 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7409 #include <stdio.h>
7410 #include <stdlib.h>
7411
7412 int
7413 main ()
7414 {
7415 static int test_array [1 - 2 * !((EMULTIHOP) >= 0)];
7416 test_array [0] = 0
7417
7418 ;
7419 return 0;
7420 }
7421 _ACEOF
7422 rm -f conftest.$ac_objext
7423 if { (ac_try="$ac_compile"
7424 case "(($ac_try" in
7425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7426 *) ac_try_echo=$ac_try;;
7427 esac
7428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7429 $as_echo "$ac_try_echo") >&5
7430 (eval "$ac_compile") 2>conftest.er1
7431 ac_status=$?
7432 grep -v '^ *+' conftest.er1 >conftest.err
7433 rm -f conftest.er1
7434 cat conftest.err >&5
7435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); } && {
7437 test -z "$ac_c_werror_flag" ||
7438 test ! -s conftest.err
7439 } && test -s conftest.$ac_objext; then
7440 ac_lo=0 ac_mid=0
7441 while :; do
7442 cat >conftest.$ac_ext <<_ACEOF
7443 /* confdefs.h. */
7444 _ACEOF
7445 cat confdefs.h >>conftest.$ac_ext
7446 cat >>conftest.$ac_ext <<_ACEOF
7447 /* end confdefs.h. */
7448
7449 #define _XOPEN_SOURCE_EXTENDED 1
7450 #include <errno.h>
7451 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7452 #include <stdio.h>
7453 #include <stdlib.h>
7454
7455 int
7456 main ()
7457 {
7458 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
7459 test_array [0] = 0
7460
7461 ;
7462 return 0;
7463 }
7464 _ACEOF
7465 rm -f conftest.$ac_objext
7466 if { (ac_try="$ac_compile"
7467 case "(($ac_try" in
7468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7469 *) ac_try_echo=$ac_try;;
7470 esac
7471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7472 $as_echo "$ac_try_echo") >&5
7473 (eval "$ac_compile") 2>conftest.er1
7474 ac_status=$?
7475 grep -v '^ *+' conftest.er1 >conftest.err
7476 rm -f conftest.er1
7477 cat conftest.err >&5
7478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7479 (exit $ac_status); } && {
7480 test -z "$ac_c_werror_flag" ||
7481 test ! -s conftest.err
7482 } && test -s conftest.$ac_objext; then
7483 ac_hi=$ac_mid; break
7484 else
7485 $as_echo "$as_me: failed program was:" >&5
7486 sed 's/^/| /' conftest.$ac_ext >&5
7487
7488 ac_lo=`expr $ac_mid + 1`
7489 if test $ac_lo -le $ac_mid; then
7490 ac_lo= ac_hi=
7491 break
7492 fi
7493 ac_mid=`expr 2 '*' $ac_mid + 1`
7494 fi
7495
7496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7497 done
7498 else
7499 $as_echo "$as_me: failed program was:" >&5
7500 sed 's/^/| /' conftest.$ac_ext >&5
7501
7502 cat >conftest.$ac_ext <<_ACEOF
7503 /* confdefs.h. */
7504 _ACEOF
7505 cat confdefs.h >>conftest.$ac_ext
7506 cat >>conftest.$ac_ext <<_ACEOF
7507 /* end confdefs.h. */
7508
7509 #define _XOPEN_SOURCE_EXTENDED 1
7510 #include <errno.h>
7511 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7512 #include <stdio.h>
7513 #include <stdlib.h>
7514
7515 int
7516 main ()
7517 {
7518 static int test_array [1 - 2 * !((EMULTIHOP) < 0)];
7519 test_array [0] = 0
7520
7521 ;
7522 return 0;
7523 }
7524 _ACEOF
7525 rm -f conftest.$ac_objext
7526 if { (ac_try="$ac_compile"
7527 case "(($ac_try" in
7528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7529 *) ac_try_echo=$ac_try;;
7530 esac
7531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7532 $as_echo "$ac_try_echo") >&5
7533 (eval "$ac_compile") 2>conftest.er1
7534 ac_status=$?
7535 grep -v '^ *+' conftest.er1 >conftest.err
7536 rm -f conftest.er1
7537 cat conftest.err >&5
7538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } && {
7540 test -z "$ac_c_werror_flag" ||
7541 test ! -s conftest.err
7542 } && test -s conftest.$ac_objext; then
7543 ac_hi=-1 ac_mid=-1
7544 while :; do
7545 cat >conftest.$ac_ext <<_ACEOF
7546 /* confdefs.h. */
7547 _ACEOF
7548 cat confdefs.h >>conftest.$ac_ext
7549 cat >>conftest.$ac_ext <<_ACEOF
7550 /* end confdefs.h. */
7551
7552 #define _XOPEN_SOURCE_EXTENDED 1
7553 #include <errno.h>
7554 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7555 #include <stdio.h>
7556 #include <stdlib.h>
7557
7558 int
7559 main ()
7560 {
7561 static int test_array [1 - 2 * !((EMULTIHOP) >= $ac_mid)];
7562 test_array [0] = 0
7563
7564 ;
7565 return 0;
7566 }
7567 _ACEOF
7568 rm -f conftest.$ac_objext
7569 if { (ac_try="$ac_compile"
7570 case "(($ac_try" in
7571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7572 *) ac_try_echo=$ac_try;;
7573 esac
7574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7575 $as_echo "$ac_try_echo") >&5
7576 (eval "$ac_compile") 2>conftest.er1
7577 ac_status=$?
7578 grep -v '^ *+' conftest.er1 >conftest.err
7579 rm -f conftest.er1
7580 cat conftest.err >&5
7581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); } && {
7583 test -z "$ac_c_werror_flag" ||
7584 test ! -s conftest.err
7585 } && test -s conftest.$ac_objext; then
7586 ac_lo=$ac_mid; break
7587 else
7588 $as_echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.$ac_ext >&5
7590
7591 ac_hi=`expr '(' $ac_mid ')' - 1`
7592 if test $ac_mid -le $ac_hi; then
7593 ac_lo= ac_hi=
7594 break
7595 fi
7596 ac_mid=`expr 2 '*' $ac_mid`
7597 fi
7598
7599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7600 done
7601 else
7602 $as_echo "$as_me: failed program was:" >&5
7603 sed 's/^/| /' conftest.$ac_ext >&5
7604
7605 ac_lo= ac_hi=
7606 fi
7607
7608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7609 fi
7610
7611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7612 # Binary search between lo and hi bounds.
7613 while test "x$ac_lo" != "x$ac_hi"; do
7614 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7615 cat >conftest.$ac_ext <<_ACEOF
7616 /* confdefs.h. */
7617 _ACEOF
7618 cat confdefs.h >>conftest.$ac_ext
7619 cat >>conftest.$ac_ext <<_ACEOF
7620 /* end confdefs.h. */
7621
7622 #define _XOPEN_SOURCE_EXTENDED 1
7623 #include <errno.h>
7624 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7625 #include <stdio.h>
7626 #include <stdlib.h>
7627
7628 int
7629 main ()
7630 {
7631 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
7632 test_array [0] = 0
7633
7634 ;
7635 return 0;
7636 }
7637 _ACEOF
7638 rm -f conftest.$ac_objext
7639 if { (ac_try="$ac_compile"
7640 case "(($ac_try" in
7641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7642 *) ac_try_echo=$ac_try;;
7643 esac
7644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7645 $as_echo "$ac_try_echo") >&5
7646 (eval "$ac_compile") 2>conftest.er1
7647 ac_status=$?
7648 grep -v '^ *+' conftest.er1 >conftest.err
7649 rm -f conftest.er1
7650 cat conftest.err >&5
7651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); } && {
7653 test -z "$ac_c_werror_flag" ||
7654 test ! -s conftest.err
7655 } && test -s conftest.$ac_objext; then
7656 ac_hi=$ac_mid
7657 else
7658 $as_echo "$as_me: failed program was:" >&5
7659 sed 's/^/| /' conftest.$ac_ext >&5
7660
7661 ac_lo=`expr '(' $ac_mid ')' + 1`
7662 fi
7663
7664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7665 done
7666 case $ac_lo in
7667 ?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;;
7668 '') ;;
7669 esac
7670 else
7671 cat >conftest.$ac_ext <<_ACEOF
7672 /* confdefs.h. */
7673 _ACEOF
7674 cat confdefs.h >>conftest.$ac_ext
7675 cat >>conftest.$ac_ext <<_ACEOF
7676 /* end confdefs.h. */
7677
7678 #define _XOPEN_SOURCE_EXTENDED 1
7679 #include <errno.h>
7680 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7681 #include <stdio.h>
7682 #include <stdlib.h>
7683
7684 static long int longval () { return EMULTIHOP; }
7685 static unsigned long int ulongval () { return EMULTIHOP; }
7686 #include <stdio.h>
7687 #include <stdlib.h>
7688 int
7689 main ()
7690 {
7691
7692 FILE *f = fopen ("conftest.val", "w");
7693 if (! f)
7694 return 1;
7695 if ((EMULTIHOP) < 0)
7696 {
7697 long int i = longval ();
7698 if (i != (EMULTIHOP))
7699 return 1;
7700 fprintf (f, "%ld", i);
7701 }
7702 else
7703 {
7704 unsigned long int i = ulongval ();
7705 if (i != (EMULTIHOP))
7706 return 1;
7707 fprintf (f, "%lu", i);
7708 }
7709 /* Do not output a trailing newline, as this causes \r\n confusion
7710 on some platforms. */
7711 return ferror (f) || fclose (f) != 0;
7712
7713 ;
7714 return 0;
7715 }
7716 _ACEOF
7717 rm -f conftest$ac_exeext
7718 if { (ac_try="$ac_link"
7719 case "(($ac_try" in
7720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7721 *) ac_try_echo=$ac_try;;
7722 esac
7723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7724 $as_echo "$ac_try_echo") >&5
7725 (eval "$ac_link") 2>&5
7726 ac_status=$?
7727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7729 { (case "(($ac_try" in
7730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7731 *) ac_try_echo=$ac_try;;
7732 esac
7733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7734 $as_echo "$ac_try_echo") >&5
7735 (eval "$ac_try") 2>&5
7736 ac_status=$?
7737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); }; }; then
7739 gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val`
7740 else
7741 $as_echo "$as_me: program exited with status $ac_status" >&5
7742 $as_echo "$as_me: failed program was:" >&5
7743 sed 's/^/| /' conftest.$ac_ext >&5
7744
7745 fi
7746 rm -rf conftest.dSYM
7747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$a c_objext conftest.$ac_ext
7748 fi
7749 rm -f conftest.val
7750 fi
7751 fi
7752
7753 fi
7754 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
7755 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
7756 case $gl_cv_header_errno_h_EMULTIHOP in
7757 yes | no)
7758 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
7759 ;;
7760 *)
7761 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
7762 ;;
7763 esac
7764
7765
7766 fi
7767
7768
7769 if test -n "$ERRNO_H"; then
7770 { $as_echo "$as_me:$LINENO: checking for ENOLINK value" >&5
7771 $as_echo_n "checking for ENOLINK value... " >&6; }
7772 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then
7773 $as_echo_n "(cached) " >&6
7774 else
7775
7776 cat >conftest.$ac_ext <<_ACEOF
7777 /* confdefs.h. */
7778 _ACEOF
7779 cat confdefs.h >>conftest.$ac_ext
7780 cat >>conftest.$ac_ext <<_ACEOF
7781 /* end confdefs.h. */
7782
7783 #include <errno.h>
7784 #ifdef ENOLINK
7785 yes
7786 #endif
7787
7788 _ACEOF
7789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7790 $EGREP "yes" >/dev/null 2>&1; then
7791 gl_cv_header_errno_h_ENOLINK=yes
7792 else
7793 gl_cv_header_errno_h_ENOLINK=no
7794 fi
7795 rm -f conftest*
7796
7797 if test $gl_cv_header_errno_h_ENOLINK = no; then
7798 cat >conftest.$ac_ext <<_ACEOF
7799 /* confdefs.h. */
7800 _ACEOF
7801 cat confdefs.h >>conftest.$ac_ext
7802 cat >>conftest.$ac_ext <<_ACEOF
7803 /* end confdefs.h. */
7804
7805 #define _XOPEN_SOURCE_EXTENDED 1
7806 #include <errno.h>
7807 #ifdef ENOLINK
7808 yes
7809 #endif
7810
7811 _ACEOF
7812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7813 $EGREP "yes" >/dev/null 2>&1; then
7814 gl_cv_header_errno_h_ENOLINK=hidden
7815 fi
7816 rm -f conftest*
7817
7818 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
7819 if test "$cross_compiling" = yes; then
7820 # Depending upon the size, compute the lo and hi bounds.
7821 cat >conftest.$ac_ext <<_ACEOF
7822 /* confdefs.h. */
7823 _ACEOF
7824 cat confdefs.h >>conftest.$ac_ext
7825 cat >>conftest.$ac_ext <<_ACEOF
7826 /* end confdefs.h. */
7827
7828 #define _XOPEN_SOURCE_EXTENDED 1
7829 #include <errno.h>
7830 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7831 #include <stdio.h>
7832 #include <stdlib.h>
7833
7834 int
7835 main ()
7836 {
7837 static int test_array [1 - 2 * !((ENOLINK) >= 0)];
7838 test_array [0] = 0
7839
7840 ;
7841 return 0;
7842 }
7843 _ACEOF
7844 rm -f conftest.$ac_objext
7845 if { (ac_try="$ac_compile"
7846 case "(($ac_try" in
7847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848 *) ac_try_echo=$ac_try;;
7849 esac
7850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7851 $as_echo "$ac_try_echo") >&5
7852 (eval "$ac_compile") 2>conftest.er1
7853 ac_status=$?
7854 grep -v '^ *+' conftest.er1 >conftest.err
7855 rm -f conftest.er1
7856 cat conftest.err >&5
7857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } && {
7859 test -z "$ac_c_werror_flag" ||
7860 test ! -s conftest.err
7861 } && test -s conftest.$ac_objext; then
7862 ac_lo=0 ac_mid=0
7863 while :; do
7864 cat >conftest.$ac_ext <<_ACEOF
7865 /* confdefs.h. */
7866 _ACEOF
7867 cat confdefs.h >>conftest.$ac_ext
7868 cat >>conftest.$ac_ext <<_ACEOF
7869 /* end confdefs.h. */
7870
7871 #define _XOPEN_SOURCE_EXTENDED 1
7872 #include <errno.h>
7873 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7874 #include <stdio.h>
7875 #include <stdlib.h>
7876
7877 int
7878 main ()
7879 {
7880 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
7881 test_array [0] = 0
7882
7883 ;
7884 return 0;
7885 }
7886 _ACEOF
7887 rm -f conftest.$ac_objext
7888 if { (ac_try="$ac_compile"
7889 case "(($ac_try" in
7890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7891 *) ac_try_echo=$ac_try;;
7892 esac
7893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7894 $as_echo "$ac_try_echo") >&5
7895 (eval "$ac_compile") 2>conftest.er1
7896 ac_status=$?
7897 grep -v '^ *+' conftest.er1 >conftest.err
7898 rm -f conftest.er1
7899 cat conftest.err >&5
7900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); } && {
7902 test -z "$ac_c_werror_flag" ||
7903 test ! -s conftest.err
7904 } && test -s conftest.$ac_objext; then
7905 ac_hi=$ac_mid; break
7906 else
7907 $as_echo "$as_me: failed program was:" >&5
7908 sed 's/^/| /' conftest.$ac_ext >&5
7909
7910 ac_lo=`expr $ac_mid + 1`
7911 if test $ac_lo -le $ac_mid; then
7912 ac_lo= ac_hi=
7913 break
7914 fi
7915 ac_mid=`expr 2 '*' $ac_mid + 1`
7916 fi
7917
7918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7919 done
7920 else
7921 $as_echo "$as_me: failed program was:" >&5
7922 sed 's/^/| /' conftest.$ac_ext >&5
7923
7924 cat >conftest.$ac_ext <<_ACEOF
7925 /* confdefs.h. */
7926 _ACEOF
7927 cat confdefs.h >>conftest.$ac_ext
7928 cat >>conftest.$ac_ext <<_ACEOF
7929 /* end confdefs.h. */
7930
7931 #define _XOPEN_SOURCE_EXTENDED 1
7932 #include <errno.h>
7933 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7934 #include <stdio.h>
7935 #include <stdlib.h>
7936
7937 int
7938 main ()
7939 {
7940 static int test_array [1 - 2 * !((ENOLINK) < 0)];
7941 test_array [0] = 0
7942
7943 ;
7944 return 0;
7945 }
7946 _ACEOF
7947 rm -f conftest.$ac_objext
7948 if { (ac_try="$ac_compile"
7949 case "(($ac_try" in
7950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7951 *) ac_try_echo=$ac_try;;
7952 esac
7953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7954 $as_echo "$ac_try_echo") >&5
7955 (eval "$ac_compile") 2>conftest.er1
7956 ac_status=$?
7957 grep -v '^ *+' conftest.er1 >conftest.err
7958 rm -f conftest.er1
7959 cat conftest.err >&5
7960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } && {
7962 test -z "$ac_c_werror_flag" ||
7963 test ! -s conftest.err
7964 } && test -s conftest.$ac_objext; then
7965 ac_hi=-1 ac_mid=-1
7966 while :; do
7967 cat >conftest.$ac_ext <<_ACEOF
7968 /* confdefs.h. */
7969 _ACEOF
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h. */
7973
7974 #define _XOPEN_SOURCE_EXTENDED 1
7975 #include <errno.h>
7976 /* The following two lines are a workaround against an autoconf-2.52 bug. */
7977 #include <stdio.h>
7978 #include <stdlib.h>
7979
7980 int
7981 main ()
7982 {
7983 static int test_array [1 - 2 * !((ENOLINK) >= $ac_mid)];
7984 test_array [0] = 0
7985
7986 ;
7987 return 0;
7988 }
7989 _ACEOF
7990 rm -f conftest.$ac_objext
7991 if { (ac_try="$ac_compile"
7992 case "(($ac_try" in
7993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7994 *) ac_try_echo=$ac_try;;
7995 esac
7996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7997 $as_echo "$ac_try_echo") >&5
7998 (eval "$ac_compile") 2>conftest.er1
7999 ac_status=$?
8000 grep -v '^ *+' conftest.er1 >conftest.err
8001 rm -f conftest.er1
8002 cat conftest.err >&5
8003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); } && {
8005 test -z "$ac_c_werror_flag" ||
8006 test ! -s conftest.err
8007 } && test -s conftest.$ac_objext; then
8008 ac_lo=$ac_mid; break
8009 else
8010 $as_echo "$as_me: failed program was:" >&5
8011 sed 's/^/| /' conftest.$ac_ext >&5
8012
8013 ac_hi=`expr '(' $ac_mid ')' - 1`
8014 if test $ac_mid -le $ac_hi; then
8015 ac_lo= ac_hi=
8016 break
8017 fi
8018 ac_mid=`expr 2 '*' $ac_mid`
8019 fi
8020
8021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8022 done
8023 else
8024 $as_echo "$as_me: failed program was:" >&5
8025 sed 's/^/| /' conftest.$ac_ext >&5
8026
8027 ac_lo= ac_hi=
8028 fi
8029
8030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8031 fi
8032
8033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8034 # Binary search between lo and hi bounds.
8035 while test "x$ac_lo" != "x$ac_hi"; do
8036 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8037 cat >conftest.$ac_ext <<_ACEOF
8038 /* confdefs.h. */
8039 _ACEOF
8040 cat confdefs.h >>conftest.$ac_ext
8041 cat >>conftest.$ac_ext <<_ACEOF
8042 /* end confdefs.h. */
8043
8044 #define _XOPEN_SOURCE_EXTENDED 1
8045 #include <errno.h>
8046 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8047 #include <stdio.h>
8048 #include <stdlib.h>
8049
8050 int
8051 main ()
8052 {
8053 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
8054 test_array [0] = 0
8055
8056 ;
8057 return 0;
8058 }
8059 _ACEOF
8060 rm -f conftest.$ac_objext
8061 if { (ac_try="$ac_compile"
8062 case "(($ac_try" in
8063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064 *) ac_try_echo=$ac_try;;
8065 esac
8066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8067 $as_echo "$ac_try_echo") >&5
8068 (eval "$ac_compile") 2>conftest.er1
8069 ac_status=$?
8070 grep -v '^ *+' conftest.er1 >conftest.err
8071 rm -f conftest.er1
8072 cat conftest.err >&5
8073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); } && {
8075 test -z "$ac_c_werror_flag" ||
8076 test ! -s conftest.err
8077 } && test -s conftest.$ac_objext; then
8078 ac_hi=$ac_mid
8079 else
8080 $as_echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8082
8083 ac_lo=`expr '(' $ac_mid ')' + 1`
8084 fi
8085
8086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8087 done
8088 case $ac_lo in
8089 ?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;;
8090 '') ;;
8091 esac
8092 else
8093 cat >conftest.$ac_ext <<_ACEOF
8094 /* confdefs.h. */
8095 _ACEOF
8096 cat confdefs.h >>conftest.$ac_ext
8097 cat >>conftest.$ac_ext <<_ACEOF
8098 /* end confdefs.h. */
8099
8100 #define _XOPEN_SOURCE_EXTENDED 1
8101 #include <errno.h>
8102 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8103 #include <stdio.h>
8104 #include <stdlib.h>
8105
8106 static long int longval () { return ENOLINK; }
8107 static unsigned long int ulongval () { return ENOLINK; }
8108 #include <stdio.h>
8109 #include <stdlib.h>
8110 int
8111 main ()
8112 {
8113
8114 FILE *f = fopen ("conftest.val", "w");
8115 if (! f)
8116 return 1;
8117 if ((ENOLINK) < 0)
8118 {
8119 long int i = longval ();
8120 if (i != (ENOLINK))
8121 return 1;
8122 fprintf (f, "%ld", i);
8123 }
8124 else
8125 {
8126 unsigned long int i = ulongval ();
8127 if (i != (ENOLINK))
8128 return 1;
8129 fprintf (f, "%lu", i);
8130 }
8131 /* Do not output a trailing newline, as this causes \r\n confusion
8132 on some platforms. */
8133 return ferror (f) || fclose (f) != 0;
8134
8135 ;
8136 return 0;
8137 }
8138 _ACEOF
8139 rm -f conftest$ac_exeext
8140 if { (ac_try="$ac_link"
8141 case "(($ac_try" in
8142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8143 *) ac_try_echo=$ac_try;;
8144 esac
8145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8146 $as_echo "$ac_try_echo") >&5
8147 (eval "$ac_link") 2>&5
8148 ac_status=$?
8149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8151 { (case "(($ac_try" in
8152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8153 *) ac_try_echo=$ac_try;;
8154 esac
8155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8156 $as_echo "$ac_try_echo") >&5
8157 (eval "$ac_try") 2>&5
8158 ac_status=$?
8159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); }; }; then
8161 gl_cv_header_errno_h_ENOLINK=`cat conftest.val`
8162 else
8163 $as_echo "$as_me: program exited with status $ac_status" >&5
8164 $as_echo "$as_me: failed program was:" >&5
8165 sed 's/^/| /' conftest.$ac_ext >&5
8166
8167 fi
8168 rm -rf conftest.dSYM
8169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$a c_objext conftest.$ac_ext
8170 fi
8171 rm -f conftest.val
8172 fi
8173 fi
8174
8175 fi
8176 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5
8177 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
8178 case $gl_cv_header_errno_h_ENOLINK in
8179 yes | no)
8180 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
8181 ;;
8182 *)
8183 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
8184 ;;
8185 esac
8186
8187
8188 fi
8189
8190
8191 if test -n "$ERRNO_H"; then
8192 { $as_echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5
8193 $as_echo_n "checking for EOVERFLOW value... " >&6; }
8194 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then
8195 $as_echo_n "(cached) " >&6
8196 else
8197
8198 cat >conftest.$ac_ext <<_ACEOF
8199 /* confdefs.h. */
8200 _ACEOF
8201 cat confdefs.h >>conftest.$ac_ext
8202 cat >>conftest.$ac_ext <<_ACEOF
8203 /* end confdefs.h. */
8204
8205 #include <errno.h>
8206 #ifdef EOVERFLOW
8207 yes
8208 #endif
8209
8210 _ACEOF
8211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8212 $EGREP "yes" >/dev/null 2>&1; then
8213 gl_cv_header_errno_h_EOVERFLOW=yes
8214 else
8215 gl_cv_header_errno_h_EOVERFLOW=no
8216 fi
8217 rm -f conftest*
8218
8219 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
8220 cat >conftest.$ac_ext <<_ACEOF
8221 /* confdefs.h. */
8222 _ACEOF
8223 cat confdefs.h >>conftest.$ac_ext
8224 cat >>conftest.$ac_ext <<_ACEOF
8225 /* end confdefs.h. */
8226
8227 #define _XOPEN_SOURCE_EXTENDED 1
8228 #include <errno.h>
8229 #ifdef EOVERFLOW
8230 yes
8231 #endif
8232
8233 _ACEOF
8234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8235 $EGREP "yes" >/dev/null 2>&1; then
8236 gl_cv_header_errno_h_EOVERFLOW=hidden
8237 fi
8238 rm -f conftest*
8239
8240 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
8241 if test "$cross_compiling" = yes; then
8242 # Depending upon the size, compute the lo and hi bounds.
8243 cat >conftest.$ac_ext <<_ACEOF
8244 /* confdefs.h. */
8245 _ACEOF
8246 cat confdefs.h >>conftest.$ac_ext
8247 cat >>conftest.$ac_ext <<_ACEOF
8248 /* end confdefs.h. */
8249
8250 #define _XOPEN_SOURCE_EXTENDED 1
8251 #include <errno.h>
8252 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8253 #include <stdio.h>
8254 #include <stdlib.h>
8255
8256 int
8257 main ()
8258 {
8259 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
8260 test_array [0] = 0
8261
8262 ;
8263 return 0;
8264 }
8265 _ACEOF
8266 rm -f conftest.$ac_objext
8267 if { (ac_try="$ac_compile"
8268 case "(($ac_try" in
8269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8270 *) ac_try_echo=$ac_try;;
8271 esac
8272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8273 $as_echo "$ac_try_echo") >&5
8274 (eval "$ac_compile") 2>conftest.er1
8275 ac_status=$?
8276 grep -v '^ *+' conftest.er1 >conftest.err
8277 rm -f conftest.er1
8278 cat conftest.err >&5
8279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); } && {
8281 test -z "$ac_c_werror_flag" ||
8282 test ! -s conftest.err
8283 } && test -s conftest.$ac_objext; then
8284 ac_lo=0 ac_mid=0
8285 while :; do
8286 cat >conftest.$ac_ext <<_ACEOF
8287 /* confdefs.h. */
8288 _ACEOF
8289 cat confdefs.h >>conftest.$ac_ext
8290 cat >>conftest.$ac_ext <<_ACEOF
8291 /* end confdefs.h. */
8292
8293 #define _XOPEN_SOURCE_EXTENDED 1
8294 #include <errno.h>
8295 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8296 #include <stdio.h>
8297 #include <stdlib.h>
8298
8299 int
8300 main ()
8301 {
8302 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
8303 test_array [0] = 0
8304
8305 ;
8306 return 0;
8307 }
8308 _ACEOF
8309 rm -f conftest.$ac_objext
8310 if { (ac_try="$ac_compile"
8311 case "(($ac_try" in
8312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313 *) ac_try_echo=$ac_try;;
8314 esac
8315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8316 $as_echo "$ac_try_echo") >&5
8317 (eval "$ac_compile") 2>conftest.er1
8318 ac_status=$?
8319 grep -v '^ *+' conftest.er1 >conftest.err
8320 rm -f conftest.er1
8321 cat conftest.err >&5
8322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } && {
8324 test -z "$ac_c_werror_flag" ||
8325 test ! -s conftest.err
8326 } && test -s conftest.$ac_objext; then
8327 ac_hi=$ac_mid; break
8328 else
8329 $as_echo "$as_me: failed program was:" >&5
8330 sed 's/^/| /' conftest.$ac_ext >&5
8331
8332 ac_lo=`expr $ac_mid + 1`
8333 if test $ac_lo -le $ac_mid; then
8334 ac_lo= ac_hi=
8335 break
8336 fi
8337 ac_mid=`expr 2 '*' $ac_mid + 1`
8338 fi
8339
8340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8341 done
8342 else
8343 $as_echo "$as_me: failed program was:" >&5
8344 sed 's/^/| /' conftest.$ac_ext >&5
8345
8346 cat >conftest.$ac_ext <<_ACEOF
8347 /* confdefs.h. */
8348 _ACEOF
8349 cat confdefs.h >>conftest.$ac_ext
8350 cat >>conftest.$ac_ext <<_ACEOF
8351 /* end confdefs.h. */
8352
8353 #define _XOPEN_SOURCE_EXTENDED 1
8354 #include <errno.h>
8355 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8356 #include <stdio.h>
8357 #include <stdlib.h>
8358
8359 int
8360 main ()
8361 {
8362 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
8363 test_array [0] = 0
8364
8365 ;
8366 return 0;
8367 }
8368 _ACEOF
8369 rm -f conftest.$ac_objext
8370 if { (ac_try="$ac_compile"
8371 case "(($ac_try" in
8372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8373 *) ac_try_echo=$ac_try;;
8374 esac
8375 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8376 $as_echo "$ac_try_echo") >&5
8377 (eval "$ac_compile") 2>conftest.er1
8378 ac_status=$?
8379 grep -v '^ *+' conftest.er1 >conftest.err
8380 rm -f conftest.er1
8381 cat conftest.err >&5
8382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } && {
8384 test -z "$ac_c_werror_flag" ||
8385 test ! -s conftest.err
8386 } && test -s conftest.$ac_objext; then
8387 ac_hi=-1 ac_mid=-1
8388 while :; do
8389 cat >conftest.$ac_ext <<_ACEOF
8390 /* confdefs.h. */
8391 _ACEOF
8392 cat confdefs.h >>conftest.$ac_ext
8393 cat >>conftest.$ac_ext <<_ACEOF
8394 /* end confdefs.h. */
8395
8396 #define _XOPEN_SOURCE_EXTENDED 1
8397 #include <errno.h>
8398 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8399 #include <stdio.h>
8400 #include <stdlib.h>
8401
8402 int
8403 main ()
8404 {
8405 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
8406 test_array [0] = 0
8407
8408 ;
8409 return 0;
8410 }
8411 _ACEOF
8412 rm -f conftest.$ac_objext
8413 if { (ac_try="$ac_compile"
8414 case "(($ac_try" in
8415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416 *) ac_try_echo=$ac_try;;
8417 esac
8418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8419 $as_echo "$ac_try_echo") >&5
8420 (eval "$ac_compile") 2>conftest.er1
8421 ac_status=$?
8422 grep -v '^ *+' conftest.er1 >conftest.err
8423 rm -f conftest.er1
8424 cat conftest.err >&5
8425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); } && {
8427 test -z "$ac_c_werror_flag" ||
8428 test ! -s conftest.err
8429 } && test -s conftest.$ac_objext; then
8430 ac_lo=$ac_mid; break
8431 else
8432 $as_echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8434
8435 ac_hi=`expr '(' $ac_mid ')' - 1`
8436 if test $ac_mid -le $ac_hi; then
8437 ac_lo= ac_hi=
8438 break
8439 fi
8440 ac_mid=`expr 2 '*' $ac_mid`
8441 fi
8442
8443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8444 done
8445 else
8446 $as_echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8448
8449 ac_lo= ac_hi=
8450 fi
8451
8452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8453 fi
8454
8455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8456 # Binary search between lo and hi bounds.
8457 while test "x$ac_lo" != "x$ac_hi"; do
8458 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8459 cat >conftest.$ac_ext <<_ACEOF
8460 /* confdefs.h. */
8461 _ACEOF
8462 cat confdefs.h >>conftest.$ac_ext
8463 cat >>conftest.$ac_ext <<_ACEOF
8464 /* end confdefs.h. */
8465
8466 #define _XOPEN_SOURCE_EXTENDED 1
8467 #include <errno.h>
8468 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8469 #include <stdio.h>
8470 #include <stdlib.h>
8471
8472 int
8473 main ()
8474 {
8475 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
8476 test_array [0] = 0
8477
8478 ;
8479 return 0;
8480 }
8481 _ACEOF
8482 rm -f conftest.$ac_objext
8483 if { (ac_try="$ac_compile"
8484 case "(($ac_try" in
8485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8486 *) ac_try_echo=$ac_try;;
8487 esac
8488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8489 $as_echo "$ac_try_echo") >&5
8490 (eval "$ac_compile") 2>conftest.er1
8491 ac_status=$?
8492 grep -v '^ *+' conftest.er1 >conftest.err
8493 rm -f conftest.er1
8494 cat conftest.err >&5
8495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } && {
8497 test -z "$ac_c_werror_flag" ||
8498 test ! -s conftest.err
8499 } && test -s conftest.$ac_objext; then
8500 ac_hi=$ac_mid
8501 else
8502 $as_echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8504
8505 ac_lo=`expr '(' $ac_mid ')' + 1`
8506 fi
8507
8508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8509 done
8510 case $ac_lo in
8511 ?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;;
8512 '') ;;
8513 esac
8514 else
8515 cat >conftest.$ac_ext <<_ACEOF
8516 /* confdefs.h. */
8517 _ACEOF
8518 cat confdefs.h >>conftest.$ac_ext
8519 cat >>conftest.$ac_ext <<_ACEOF
8520 /* end confdefs.h. */
8521
8522 #define _XOPEN_SOURCE_EXTENDED 1
8523 #include <errno.h>
8524 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8525 #include <stdio.h>
8526 #include <stdlib.h>
8527
8528 static long int longval () { return EOVERFLOW; }
8529 static unsigned long int ulongval () { return EOVERFLOW; }
8530 #include <stdio.h>
8531 #include <stdlib.h>
8532 int
8533 main ()
8534 {
8535
8536 FILE *f = fopen ("conftest.val", "w");
8537 if (! f)
8538 return 1;
8539 if ((EOVERFLOW) < 0)
8540 {
8541 long int i = longval ();
8542 if (i != (EOVERFLOW))
8543 return 1;
8544 fprintf (f, "%ld", i);
8545 }
8546 else
8547 {
8548 unsigned long int i = ulongval ();
8549 if (i != (EOVERFLOW))
8550 return 1;
8551 fprintf (f, "%lu", i);
8552 }
8553 /* Do not output a trailing newline, as this causes \r\n confusion
8554 on some platforms. */
8555 return ferror (f) || fclose (f) != 0;
8556
8557 ;
8558 return 0;
8559 }
8560 _ACEOF
8561 rm -f conftest$ac_exeext
8562 if { (ac_try="$ac_link"
8563 case "(($ac_try" in
8564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8565 *) ac_try_echo=$ac_try;;
8566 esac
8567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8568 $as_echo "$ac_try_echo") >&5
8569 (eval "$ac_link") 2>&5
8570 ac_status=$?
8571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8573 { (case "(($ac_try" in
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8576 esac
8577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8578 $as_echo "$ac_try_echo") >&5
8579 (eval "$ac_try") 2>&5
8580 ac_status=$?
8581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); }; }; then
8583 gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val`
8584 else
8585 $as_echo "$as_me: program exited with status $ac_status" >&5
8586 $as_echo "$as_me: failed program was:" >&5
8587 sed 's/^/| /' conftest.$ac_ext >&5
8588
8589 fi
8590 rm -rf conftest.dSYM
8591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$a c_objext conftest.$ac_ext
8592 fi
8593 rm -f conftest.val
8594 fi
8595 fi
8596
8597 fi
8598 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
8599 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
8600 case $gl_cv_header_errno_h_EOVERFLOW in
8601 yes | no)
8602 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
8603 ;;
8604 *)
8605 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
8606 ;;
8607 esac
8608
8609
8610 fi
8611
8612
8613 { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
8614 $as_echo_n "checking whether strerror_r is declared... " >&6; }
8615 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
8616 $as_echo_n "(cached) " >&6
8617 else
8618 cat >conftest.$ac_ext <<_ACEOF
8619 /* confdefs.h. */
8620 _ACEOF
8621 cat confdefs.h >>conftest.$ac_ext
8622 cat >>conftest.$ac_ext <<_ACEOF
8623 /* end confdefs.h. */
8624 $ac_includes_default
8625 int
8626 main ()
8627 {
8628 #ifndef strerror_r
8629 (void) strerror_r;
8630 #endif
8631
8632 ;
8633 return 0;
8634 }
8635 _ACEOF
8636 rm -f conftest.$ac_objext
8637 if { (ac_try="$ac_compile"
8638 case "(($ac_try" in
8639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8640 *) ac_try_echo=$ac_try;;
8641 esac
8642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8643 $as_echo "$ac_try_echo") >&5
8644 (eval "$ac_compile") 2>conftest.er1
8645 ac_status=$?
8646 grep -v '^ *+' conftest.er1 >conftest.err
8647 rm -f conftest.er1
8648 cat conftest.err >&5
8649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); } && {
8651 test -z "$ac_c_werror_flag" ||
8652 test ! -s conftest.err
8653 } && test -s conftest.$ac_objext; then
8654 ac_cv_have_decl_strerror_r=yes
8655 else
8656 $as_echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.$ac_ext >&5
8658
8659 ac_cv_have_decl_strerror_r=no
8660 fi
8661
8662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8663 fi
8664 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
8665 $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
8666 if test $ac_cv_have_decl_strerror_r = yes; then
8667
8668 cat >>confdefs.h <<_ACEOF
8669 #define HAVE_DECL_STRERROR_R 1
8670 _ACEOF
8671
8672
8673 else
8674 cat >>confdefs.h <<_ACEOF
8675 #define HAVE_DECL_STRERROR_R 0
8676 _ACEOF
8677
8678
8679 fi
8680
8681
8682
8683 for ac_func in strerror_r
8684 do
8685 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8686 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8687 $as_echo_n "checking for $ac_func... " >&6; }
8688 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8689 $as_echo_n "(cached) " >&6
8690 else
8691 cat >conftest.$ac_ext <<_ACEOF
8692 /* confdefs.h. */
8693 _ACEOF
8694 cat confdefs.h >>conftest.$ac_ext
8695 cat >>conftest.$ac_ext <<_ACEOF
8696 /* end confdefs.h. */
8697 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func .
8698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8699 #define $ac_func innocuous_$ac_func
8700
8701 /* System header to define __stub macros and hopefully few prototypes,
8702 which can conflict with char $ac_func (); below.
8703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8704 <limits.h> exists even on freestanding compilers. */
8705
8706 #ifdef __STDC__
8707 # include <limits.h>
8708 #else
8709 # include <assert.h>
8710 #endif
8711
8712 #undef $ac_func
8713
8714 /* Override any GCC internal prototype to avoid an error.
8715 Use char because int might match the return type of a GCC
8716 builtin and then its argument prototype would still apply. */
8717 #ifdef __cplusplus
8718 extern "C"
8719 #endif
8720 char $ac_func ();
8721 /* The GNU C library defines this for functions which it implements
8722 to always fail with ENOSYS. Some functions are actually named
8723 something starting with __ and the normal name is an alias. */
8724 #if defined __stub_$ac_func || defined __stub___$ac_func
8725 choke me
8726 #endif
8727
8728 int
8729 main ()
8730 {
8731 return $ac_func ();
8732 ;
8733 return 0;
8734 }
8735 _ACEOF
8736 rm -f conftest.$ac_objext conftest$ac_exeext
8737 if { (ac_try="$ac_link"
8738 case "(($ac_try" in
8739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8740 *) ac_try_echo=$ac_try;;
8741 esac
8742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8743 $as_echo "$ac_try_echo") >&5
8744 (eval "$ac_link") 2>conftest.er1
8745 ac_status=$?
8746 grep -v '^ *+' conftest.er1 >conftest.err
8747 rm -f conftest.er1
8748 cat conftest.err >&5
8749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); } && {
8751 test -z "$ac_c_werror_flag" ||
8752 test ! -s conftest.err
8753 } && test -s conftest$ac_exeext && {
8754 test "$cross_compiling" = yes ||
8755 $as_test_x conftest$ac_exeext
8756 }; then
8757 eval "$as_ac_var=yes"
8758 else
8759 $as_echo "$as_me: failed program was:" >&5
8760 sed 's/^/| /' conftest.$ac_ext >&5
8761
8762 eval "$as_ac_var=no"
8763 fi
8764
8765 rm -rf conftest.dSYM
8766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8767 conftest$ac_exeext conftest.$ac_ext
8768 fi
8769 ac_res=`eval 'as_val=${'$as_ac_var'}
8770 $as_echo "$as_val"'`
8771 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8772 $as_echo "$ac_res" >&6; }
8773 if test `eval 'as_val=${'$as_ac_var'}
8774 $as_echo "$as_val"'` = yes; then
8775 cat >>confdefs.h <<_ACEOF
8776 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8777 _ACEOF
8778
8779 fi
8780 done
8781
8782 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
8783 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
8784 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
8785 $as_echo_n "(cached) " >&6
8786 else
8787
8788 ac_cv_func_strerror_r_char_p=no
8789 if test $ac_cv_have_decl_strerror_r = yes; then
8790 cat >conftest.$ac_ext <<_ACEOF
8791 /* confdefs.h. */
8792 _ACEOF
8793 cat confdefs.h >>conftest.$ac_ext
8794 cat >>conftest.$ac_ext <<_ACEOF
8795 /* end confdefs.h. */
8796 $ac_includes_default
8797 int
8798 main ()
8799 {
8800
8801 char buf[100];
8802 char x = *strerror_r (0, buf, sizeof buf);
8803 char *p = strerror_r (0, buf, sizeof buf);
8804 return !p || x;
8805
8806 ;
8807 return 0;
8808 }
8809 _ACEOF
8810 rm -f conftest.$ac_objext
8811 if { (ac_try="$ac_compile"
8812 case "(($ac_try" in
8813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8814 *) ac_try_echo=$ac_try;;
8815 esac
8816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8817 $as_echo "$ac_try_echo") >&5
8818 (eval "$ac_compile") 2>conftest.er1
8819 ac_status=$?
8820 grep -v '^ *+' conftest.er1 >conftest.err
8821 rm -f conftest.er1
8822 cat conftest.err >&5
8823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); } && {
8825 test -z "$ac_c_werror_flag" ||
8826 test ! -s conftest.err
8827 } && test -s conftest.$ac_objext; then
8828 ac_cv_func_strerror_r_char_p=yes
8829 else
8830 $as_echo "$as_me: failed program was:" >&5
8831 sed 's/^/| /' conftest.$ac_ext >&5
8832
8833
8834 fi
8835
8836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8837 else
8838 # strerror_r is not declared. Choose between
8839 # systems that have relatively inaccessible declarations for the
8840 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
8841 # former has a strerror_r that returns char*, while the latter
8842 # has a strerror_r that returns `int'.
8843 # This test should segfault on the DEC system.
8844 if test "$cross_compiling" = yes; then
8845 :
8846 else
8847 cat >conftest.$ac_ext <<_ACEOF
8848 /* confdefs.h. */
8849 _ACEOF
8850 cat confdefs.h >>conftest.$ac_ext
8851 cat >>conftest.$ac_ext <<_ACEOF
8852 /* end confdefs.h. */
8853 $ac_includes_default
8854 extern char *strerror_r ();
8855 int
8856 main ()
8857 {
8858 char buf[100];
8859 char x = *strerror_r (0, buf, sizeof buf);
8860 return ! isalpha (x);
8861 ;
8862 return 0;
8863 }
8864 _ACEOF
8865 rm -f conftest$ac_exeext
8866 if { (ac_try="$ac_link"
8867 case "(($ac_try" in
8868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8869 *) ac_try_echo=$ac_try;;
8870 esac
8871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8872 $as_echo "$ac_try_echo") >&5
8873 (eval "$ac_link") 2>&5
8874 ac_status=$?
8875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8877 { (case "(($ac_try" in
8878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8879 *) ac_try_echo=$ac_try;;
8880 esac
8881 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8882 $as_echo "$ac_try_echo") >&5
8883 (eval "$ac_try") 2>&5
8884 ac_status=$?
8885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); }; }; then
8887 ac_cv_func_strerror_r_char_p=yes
8888 else
8889 $as_echo "$as_me: program exited with status $ac_status" >&5
8890 $as_echo "$as_me: failed program was:" >&5
8891 sed 's/^/| /' conftest.$ac_ext >&5
8892
8893 fi
8894 rm -rf conftest.dSYM
8895 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$a c_objext conftest.$ac_ext
8896 fi
8897
8898
8899 fi
8900
8901 fi
8902 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
8903 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
8904 if test $ac_cv_func_strerror_r_char_p = yes; then
8905
8906 cat >>confdefs.h <<\_ACEOF
8907 #define STRERROR_R_CHAR_P 1
8908 _ACEOF
8909
8910 fi
8911
8912
8913 XGETTEXT_EXTRA_OPTIONS=
8914
8915
8916 if test -z "$GETOPT_H"; then
8917
8918 for ac_header in getopt.h
8919 do
8920 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8922 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8923 $as_echo_n "checking for $ac_header... " >&6; }
8924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8925 $as_echo_n "(cached) " >&6
8926 fi
8927 ac_res=`eval 'as_val=${'$as_ac_Header'}
8928 $as_echo "$as_val"'`
8929 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8930 $as_echo "$ac_res" >&6; }
8931 else
8932 # Is the header compilable?
8933 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8934 $as_echo_n "checking $ac_header usability... " >&6; }
8935 cat >conftest.$ac_ext <<_ACEOF
8936 /* confdefs.h. */
8937 _ACEOF
8938 cat confdefs.h >>conftest.$ac_ext
8939 cat >>conftest.$ac_ext <<_ACEOF
8940 /* end confdefs.h. */
8941 $ac_includes_default
8942 #include <$ac_header>
8943 _ACEOF
8944 rm -f conftest.$ac_objext
8945 if { (ac_try="$ac_compile"
8946 case "(($ac_try" in
8947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8948 *) ac_try_echo=$ac_try;;
8949 esac
8950 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8951 $as_echo "$ac_try_echo") >&5
8952 (eval "$ac_compile") 2>conftest.er1
8953 ac_status=$?
8954 grep -v '^ *+' conftest.er1 >conftest.err
8955 rm -f conftest.er1
8956 cat conftest.err >&5
8957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } && {
8959 test -z "$ac_c_werror_flag" ||
8960 test ! -s conftest.err
8961 } && test -s conftest.$ac_objext; then
8962 ac_header_compiler=yes
8963 else
8964 $as_echo "$as_me: failed program was:" >&5
8965 sed 's/^/| /' conftest.$ac_ext >&5
8966
8967 ac_header_compiler=no
8968 fi
8969
8970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8971 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8972 $as_echo "$ac_header_compiler" >&6; }
8973
8974 # Is the header present?
8975 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8976 $as_echo_n "checking $ac_header presence... " >&6; }
8977 cat >conftest.$ac_ext <<_ACEOF
8978 /* confdefs.h. */
8979 _ACEOF
8980 cat confdefs.h >>conftest.$ac_ext
8981 cat >>conftest.$ac_ext <<_ACEOF
8982 /* end confdefs.h. */
8983 #include <$ac_header>
8984 _ACEOF
8985 if { (ac_try="$ac_cpp conftest.$ac_ext"
8986 case "(($ac_try" in
8987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8988 *) ac_try_echo=$ac_try;;
8989 esac
8990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8991 $as_echo "$ac_try_echo") >&5
8992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8993 ac_status=$?
8994 grep -v '^ *+' conftest.er1 >conftest.err
8995 rm -f conftest.er1
8996 cat conftest.err >&5
8997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); } >/dev/null && {
8999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9000 test ! -s conftest.err
9001 }; then
9002 ac_header_preproc=yes
9003 else
9004 $as_echo "$as_me: failed program was:" >&5
9005 sed 's/^/| /' conftest.$ac_ext >&5
9006
9007 ac_header_preproc=no
9008 fi
9009
9010 rm -f conftest.err conftest.$ac_ext
9011 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9012 $as_echo "$ac_header_preproc" >&6; }
9013
9014 # So? What about this header?
9015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9016 yes:no: )
9017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, r ejected by the preprocessor!" >&5
9018 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compile r's result" >&5
9020 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >& 2;}
9021 ac_header_preproc=yes
9022 ;;
9023 no:yes:* )
9024 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compi led" >&5
9025 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prere quisite headers?" >&5
9027 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite header s?" >&2;}
9028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentat ion" >&5
9029 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But C annot Be Compiled\"" >&5
9031 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compi led\"" >&2;}
9032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preproc essor's result" >&5
9033 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result " >&2;}
9034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9035 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take pre cedence" >&2;}
9036 ( cat <<\_ASBOX
9037 ## -------------------------------- ##
9038 ## Report this to bug-bison@gnu.org ##
9039 ## -------------------------------- ##
9040 _ASBOX
9041 ) | sed "s/^/$as_me: WARNING: /" >&2
9042 ;;
9043 esac
9044 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9045 $as_echo_n "checking for $ac_header... " >&6; }
9046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9047 $as_echo_n "(cached) " >&6
9048 else
9049 eval "$as_ac_Header=\$ac_header_preproc"
9050 fi
9051 ac_res=`eval 'as_val=${'$as_ac_Header'}
9052 $as_echo "$as_val"'`
9053 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9054 $as_echo "$ac_res" >&6; }
9055
9056 fi
9057 if test `eval 'as_val=${'$as_ac_Header'}
9058 $as_echo "$as_val"'` = yes; then
9059 cat >>confdefs.h <<_ACEOF
9060 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9061 _ACEOF
9062
9063 else
9064 GETOPT_H=getopt.h
9065 fi
9066
9067 done
9068
9069 fi
9070
9071 if test -z "$GETOPT_H"; then
9072
9073 for ac_func in getopt_long_only
9074 do
9075 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9076 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9077 $as_echo_n "checking for $ac_func... " >&6; }
9078 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9079 $as_echo_n "(cached) " >&6
9080 else
9081 cat >conftest.$ac_ext <<_ACEOF
9082 /* confdefs.h. */
9083 _ACEOF
9084 cat confdefs.h >>conftest.$ac_ext
9085 cat >>conftest.$ac_ext <<_ACEOF
9086 /* end confdefs.h. */
9087 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func .
9088 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9089 #define $ac_func innocuous_$ac_func
9090
9091 /* System header to define __stub macros and hopefully few prototypes,
9092 which can conflict with char $ac_func (); below.
9093 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9094 <limits.h> exists even on freestanding compilers. */
9095
9096 #ifdef __STDC__
9097 # include <limits.h>
9098 #else
9099 # include <assert.h>
9100 #endif
9101
9102 #undef $ac_func
9103
9104 /* Override any GCC internal prototype to avoid an error.
9105 Use char because int might match the return type of a GCC
9106 builtin and then its argument prototype would still apply. */
9107 #ifdef __cplusplus
9108 extern "C"
9109 #endif
9110 char $ac_func ();
9111 /* The GNU C library defines this for functions which it implements
9112 to always fail with ENOSYS. Some functions are actually named
9113 something starting with __ and the normal name is an alias. */
9114 #if defined __stub_$ac_func || defined __stub___$ac_func
9115 choke me
9116 #endif
9117
9118 int
9119 main ()
9120 {
9121 return $ac_func ();
9122 ;
9123 return 0;
9124 }
9125 _ACEOF
9126 rm -f conftest.$ac_objext conftest$ac_exeext
9127 if { (ac_try="$ac_link"
9128 case "(($ac_try" in
9129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9130 *) ac_try_echo=$ac_try;;
9131 esac
9132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9133 $as_echo "$ac_try_echo") >&5
9134 (eval "$ac_link") 2>conftest.er1
9135 ac_status=$?
9136 grep -v '^ *+' conftest.er1 >conftest.err
9137 rm -f conftest.er1
9138 cat conftest.err >&5
9139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); } && {
9141 test -z "$ac_c_werror_flag" ||
9142 test ! -s conftest.err
9143 } && test -s conftest$ac_exeext && {
9144 test "$cross_compiling" = yes ||
9145 $as_test_x conftest$ac_exeext
9146 }; then
9147 eval "$as_ac_var=yes"
9148 else
9149 $as_echo "$as_me: failed program was:" >&5
9150 sed 's/^/| /' conftest.$ac_ext >&5
9151
9152 eval "$as_ac_var=no"
9153 fi
9154
9155 rm -rf conftest.dSYM
9156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9157 conftest$ac_exeext conftest.$ac_ext
9158 fi
9159 ac_res=`eval 'as_val=${'$as_ac_var'}
9160 $as_echo "$as_val"'`
9161 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9162 $as_echo "$ac_res" >&6; }
9163 if test `eval 'as_val=${'$as_ac_var'}
9164 $as_echo "$as_val"'` = yes; then
9165 cat >>confdefs.h <<_ACEOF
9166 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9167 _ACEOF
9168
9169 else
9170 GETOPT_H=getopt.h
9171 fi
9172 done
9173
9174 fi
9175
9176 if test -z "$GETOPT_H"; then
9177 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
9178 $as_echo_n "checking whether optreset is declared... " >&6; }
9179 if test "${ac_cv_have_decl_optreset+set}" = set; then
9180 $as_echo_n "(cached) " >&6
9181 else
9182 cat >conftest.$ac_ext <<_ACEOF
9183 /* confdefs.h. */
9184 _ACEOF
9185 cat confdefs.h >>conftest.$ac_ext
9186 cat >>conftest.$ac_ext <<_ACEOF
9187 /* end confdefs.h. */
9188 #include <getopt.h>
9189
9190 int
9191 main ()
9192 {
9193 #ifndef optreset
9194 (void) optreset;
9195 #endif
9196
9197 ;
9198 return 0;
9199 }
9200 _ACEOF
9201 rm -f conftest.$ac_objext
9202 if { (ac_try="$ac_compile"
9203 case "(($ac_try" in
9204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9205 *) ac_try_echo=$ac_try;;
9206 esac
9207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9208 $as_echo "$ac_try_echo") >&5
9209 (eval "$ac_compile") 2>conftest.er1
9210 ac_status=$?
9211 grep -v '^ *+' conftest.er1 >conftest.err
9212 rm -f conftest.er1
9213 cat conftest.err >&5
9214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } && {
9216 test -z "$ac_c_werror_flag" ||
9217 test ! -s conftest.err
9218 } && test -s conftest.$ac_objext; then
9219 ac_cv_have_decl_optreset=yes
9220 else
9221 $as_echo "$as_me: failed program was:" >&5
9222 sed 's/^/| /' conftest.$ac_ext >&5
9223
9224 ac_cv_have_decl_optreset=no
9225 fi
9226
9227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9228 fi
9229 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
9230 $as_echo "$ac_cv_have_decl_optreset" >&6; }
9231 if test $ac_cv_have_decl_optreset = yes; then
9232 GETOPT_H=getopt.h
9233 fi
9234
9235 fi
9236
9237 if test -z "$GETOPT_H"; then
9238 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
9239 $as_echo_n "checking for working GNU getopt function... " >&6; }
9240 if test "${gl_cv_func_gnu_getopt+set}" = set; then
9241 $as_echo_n "(cached) " >&6
9242 else
9243 if test "$cross_compiling" = yes; then
9244 { $as_echo "$as_me:$LINENO: checking whether getopt_cli p is declared" >&5
9245 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
9246 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
9247 $as_echo_n "(cached) " >&6
9248 else
9249 cat >conftest.$ac_ext <<_ACEOF
9250 /* confdefs.h. */
9251 _ACEOF
9252 cat confdefs.h >>conftest.$ac_ext
9253 cat >>conftest.$ac_ext <<_ACEOF
9254 /* end confdefs.h. */
9255 #include <getopt.h>
9256
9257 int
9258 main ()
9259 {
9260 #ifndef getopt_clip
9261 (void) getopt_clip;
9262 #endif
9263
9264 ;
9265 return 0;
9266 }
9267 _ACEOF
9268 rm -f conftest.$ac_objext
9269 if { (ac_try="$ac_compile"
9270 case "(($ac_try" in
9271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272 *) ac_try_echo=$ac_try;;
9273 esac
9274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9275 $as_echo "$ac_try_echo") >&5
9276 (eval "$ac_compile") 2>conftest.er1
9277 ac_status=$?
9278 grep -v '^ *+' conftest.er1 >conftest.err
9279 rm -f conftest.er1
9280 cat conftest.err >&5
9281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); } && {
9283 test -z "$ac_c_werror_flag" ||
9284 test ! -s conftest.err
9285 } && test -s conftest.$ac_objext; then
9286 ac_cv_have_decl_getopt_clip=yes
9287 else
9288 $as_echo "$as_me: failed program was:" >&5
9289 sed 's/^/| /' conftest.$ac_ext >&5
9290
9291 ac_cv_have_decl_getopt_clip=no
9292 fi
9293
9294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9295 fi
9296 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
9297 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
9298 if test $ac_cv_have_decl_getopt_clip = yes; then
9299 gl_cv_func_gnu_getopt=no
9300 else
9301 gl_cv_func_gnu_getopt=yes
9302 fi
9303
9304 else
9305 cat >conftest.$ac_ext <<_ACEOF
9306 /* confdefs.h. */
9307 _ACEOF
9308 cat confdefs.h >>conftest.$ac_ext
9309 cat >>conftest.$ac_ext <<_ACEOF
9310 /* end confdefs.h. */
9311 #include <getopt.h>
9312 int
9313 main ()
9314 {
9315
9316 char *myargv[3];
9317 myargv[0] = "conftest";
9318 myargv[1] = "-+";
9319 myargv[2] = 0;
9320 return getopt (2, myargv, "+a") != '?';
9321
9322 ;
9323 return 0;
9324 }
9325 _ACEOF
9326 rm -f conftest$ac_exeext
9327 if { (ac_try="$ac_link"
9328 case "(($ac_try" in
9329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9330 *) ac_try_echo=$ac_try;;
9331 esac
9332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9333 $as_echo "$ac_try_echo") >&5
9334 (eval "$ac_link") 2>&5
9335 ac_status=$?
9336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9338 { (case "(($ac_try" in
9339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9340 *) ac_try_echo=$ac_try;;
9341 esac
9342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9343 $as_echo "$ac_try_echo") >&5
9344 (eval "$ac_try") 2>&5
9345 ac_status=$?
9346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); }; }; then
9348 gl_cv_func_gnu_getopt=yes
9349 else
9350 $as_echo "$as_me: program exited with status $ac_status" >&5
9351 $as_echo "$as_me: failed program was:" >&5
9352 sed 's/^/| /' conftest.$ac_ext >&5
9353
9354 ( exit $ac_status )
9355 gl_cv_func_gnu_getopt=no
9356 fi
9357 rm -rf conftest.dSYM
9358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$a c_objext conftest.$ac_ext
9359 fi
9360
9361
9362 fi
9363 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
9364 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
9365 if test "$gl_cv_func_gnu_getopt" = "no"; then
9366 GETOPT_H=getopt.h
9367 fi
9368 fi
9369
9370 { $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5
9371 $as_echo_n "checking whether getenv is declared... " >&6; }
9372 if test "${ac_cv_have_decl_getenv+set}" = set; then
9373 $as_echo_n "(cached) " >&6
9374 else
9375 cat >conftest.$ac_ext <<_ACEOF
9376 /* confdefs.h. */
9377 _ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9381 $ac_includes_default
9382 int
9383 main ()
9384 {
9385 #ifndef getenv
9386 (void) getenv;
9387 #endif
9388
9389 ;
9390 return 0;
9391 }
9392 _ACEOF
9393 rm -f conftest.$ac_objext
9394 if { (ac_try="$ac_compile"
9395 case "(($ac_try" in
9396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9397 *) ac_try_echo=$ac_try;;
9398 esac
9399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9400 $as_echo "$ac_try_echo") >&5
9401 (eval "$ac_compile") 2>conftest.er1
9402 ac_status=$?
9403 grep -v '^ *+' conftest.er1 >conftest.err
9404 rm -f conftest.er1
9405 cat conftest.err >&5
9406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); } && {
9408 test -z "$ac_c_werror_flag" ||
9409 test ! -s conftest.err
9410 } && test -s conftest.$ac_objext; then
9411 ac_cv_have_decl_getenv=yes
9412 else
9413 $as_echo "$as_me: failed program was:" >&5
9414 sed 's/^/| /' conftest.$ac_ext >&5
9415
9416 ac_cv_have_decl_getenv=no
9417 fi
9418
9419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9420 fi
9421 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
9422 $as_echo "$ac_cv_have_decl_getenv" >&6; }
9423 if test $ac_cv_have_decl_getenv = yes; then
9424
9425 cat >>confdefs.h <<_ACEOF
9426 #define HAVE_DECL_GETENV 1
9427 _ACEOF
9428
9429
9430 else
9431 cat >>confdefs.h <<_ACEOF
9432 #define HAVE_DECL_GETENV 0
9433 _ACEOF
9434
9435
9436 fi
9437
9438
9439 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
9440 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
9441 if test "${ac_cv_header_stdbool_h+set}" = set; then
9442 $as_echo_n "(cached) " >&6
9443 else
9444 cat >conftest.$ac_ext <<_ACEOF
9445 /* confdefs.h. */
9446 _ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h. */
9450
9451 #include <stdbool.h>
9452 #ifndef bool
9453 "error: bool is not defined"
9454 #endif
9455 #ifndef false
9456 "error: false is not defined"
9457 #endif
9458 #if false
9459 "error: false is not 0"
9460 #endif
9461 #ifndef true
9462 "error: true is not defined"
9463 #endif
9464 #if true != 1
9465 "error: true is not 1"
9466 #endif
9467 #ifndef __bool_true_false_are_defined
9468 "error: __bool_true_false_are_defined is not defined"
9469 #endif
9470
9471 struct s { _Bool s: 1; _Bool t; } s;
9472
9473 char a[true == 1 ? 1 : -1];
9474 char b[false == 0 ? 1 : -1];
9475 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
9476 char d[(bool) 0.5 == true ? 1 : -1];
9477 bool e = &s;
9478 char f[(_Bool) 0.0 == false ? 1 : -1];
9479 char g[true];
9480 char h[sizeof (_Bool)];
9481 char i[sizeof s.t];
9482 enum { j = false, k = true, l = false * true, m = true * 256 };
9483 _Bool n[m];
9484 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
9485 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
9486 #if defined __xlc__ || defined __GNUC__
9487 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
9488 reported by James Lemley on 2005-10-05; see
9489 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.h tml
9490 This test is not quite right, since xlc is allowed to
9491 reject this program, as the initializer for xlcbug is
9492 not one of the forms that C requires support for.
9493 However, doing the test right would require a run-time
9494 test, and that would make cross-compilation harder.
9495 Let us hope that IBM fixes the xlc bug, and also adds
9496 support for this kind of constant expression. In the
9497 meantime, this test will reject xlc, which is OK, since
9498 our stdbool.h substitute should suffice. We also test
9499 this with GCC, where it should work, to detect more
9500 quickly whether someone messes up the test in the
9501 future. */
9502 char digs[] = "0123456789";
9503 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
9504 #endif
9505 /* Catch a bug in an HP-UX C compiler. See
9506 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
9507 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.ht ml
9508 */
9509 _Bool q = true;
9510 _Bool *pq = &q;
9511
9512 int
9513 main ()
9514 {
9515
9516 *pq |= q;
9517 *pq |= ! q;
9518 /* Refer to every declared value, to avoid compiler optimizations. */
9519 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
9520 + !m + !n + !o + !p + !q + !pq);
9521
9522 ;
9523 return 0;
9524 }
9525 _ACEOF
9526 rm -f conftest.$ac_objext
9527 if { (ac_try="$ac_compile"
9528 case "(($ac_try" in
9529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530 *) ac_try_echo=$ac_try;;
9531 esac
9532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9533 $as_echo "$ac_try_echo") >&5
9534 (eval "$ac_compile") 2>conftest.er1
9535 ac_status=$?
9536 grep -v '^ *+' conftest.er1 >conftest.err
9537 rm -f conftest.er1
9538 cat conftest.err >&5
9539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); } && {
9541 test -z "$ac_c_werror_flag" ||
9542 test ! -s conftest.err
9543 } && test -s conftest.$ac_objext; then
9544 ac_cv_header_stdbool_h=yes
9545 else
9546 $as_echo "$as_me: failed program was:" >&5
9547 sed 's/^/| /' conftest.$ac_ext >&5
9548
9549 ac_cv_header_stdbool_h=no
9550 fi
9551
9552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9553 fi
9554 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
9555 $as_echo "$ac_cv_header_stdbool_h" >&6; }
9556 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
9557 $as_echo_n "checking for _Bool... " >&6; }
9558 if test "${ac_cv_type__Bool+set}" = set; then
9559 $as_echo_n "(cached) " >&6
9560 else
9561 ac_cv_type__Bool=no
9562 cat >conftest.$ac_ext <<_ACEOF
9563 /* confdefs.h. */
9564 _ACEOF
9565 cat confdefs.h >>conftest.$ac_ext
9566 cat >>conftest.$ac_ext <<_ACEOF
9567 /* end confdefs.h. */
9568 $ac_includes_default
9569 int
9570 main ()
9571 {
9572 if (sizeof (_Bool))
9573 return 0;
9574 ;
9575 return 0;
9576 }
9577 _ACEOF
9578 rm -f conftest.$ac_objext
9579 if { (ac_try="$ac_compile"
9580 case "(($ac_try" in
9581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9582 *) ac_try_echo=$ac_try;;
9583 esac
9584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9585 $as_echo "$ac_try_echo") >&5
9586 (eval "$ac_compile") 2>conftest.er1
9587 ac_status=$?
9588 grep -v '^ *+' conftest.er1 >conftest.err
9589 rm -f conftest.er1
9590 cat conftest.err >&5
9591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } && {
9593 test -z "$ac_c_werror_flag" ||
9594 test ! -s conftest.err
9595 } && test -s conftest.$ac_objext; then
9596 cat >conftest.$ac_ext <<_ACEOF
9597 /* confdefs.h. */
9598 _ACEOF
9599 cat confdefs.h >>conftest.$ac_ext
9600 cat >>conftest.$ac_ext <<_ACEOF
9601 /* end confdefs.h. */
9602 $ac_includes_default
9603 int
9604 main ()
9605 {
9606 if (sizeof ((_Bool)))
9607 return 0;
9608 ;
9609 return 0;
9610 }
9611 _ACEOF
9612 rm -f conftest.$ac_objext
9613 if { (ac_try="$ac_compile"
9614 case "(($ac_try" in
9615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9616 *) ac_try_echo=$ac_try;;
9617 esac
9618 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9619 $as_echo "$ac_try_echo") >&5
9620 (eval "$ac_compile") 2>conftest.er1
9621 ac_status=$?
9622 grep -v '^ *+' conftest.er1 >conftest.err
9623 rm -f conftest.er1
9624 cat conftest.err >&5
9625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626 (exit $ac_status); } && {
9627 test -z "$ac_c_werror_flag" ||
9628 test ! -s conftest.err
9629 } && test -s conftest.$ac_objext; then
9630 :
9631 else
9632 $as_echo "$as_me: failed program was:" >&5
9633 sed 's/^/| /' conftest.$ac_ext >&5
9634
9635 ac_cv_type__Bool=yes
9636 fi
9637
9638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9639 else
9640 $as_echo "$as_me: failed program was:" >&5
9641 sed 's/^/| /' conftest.$ac_ext >&5
9642
9643
9644 fi
9645
9646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9647 fi
9648 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
9649 $as_echo "$ac_cv_type__Bool" >&6; }
9650 if test $ac_cv_type__Bool = yes; then
9651
9652 cat >>confdefs.h <<_ACEOF
9653 #define HAVE__BOOL 1
9654 _ACEOF
9655
9656
9657 fi
9658
9659 if test $ac_cv_header_stdbool_h = yes; then
9660
9661 cat >>confdefs.h <<\_ACEOF
9662 #define HAVE_STDBOOL_H 1
9663 _ACEOF
9664
9665 fi
9666
9667
9668
9669 # Define two additional variables used in the Makefile substitution.
9670
9671 if test "$ac_cv_header_stdbool_h" = yes; then
9672 STDBOOL_H=''
9673 else
9674 STDBOOL_H='stdbool.h'
9675 fi
9676
9677
9678 if test "$ac_cv_type__Bool" = yes; then
9679 HAVE__BOOL=1
9680 else
9681 HAVE__BOOL=0
9682 fi
9683
9684
9685
9686 { $as_echo "$as_me:$LINENO: checking for long long int" >&5
9687 $as_echo_n "checking for long long int... " >&6; }
9688 if test "${ac_cv_type_long_long_int+set}" = set; then
9689 $as_echo_n "(cached) " >&6
9690 else
9691 cat >conftest.$ac_ext <<_ACEOF
9692
9693 /* confdefs.h. */
9694 _ACEOF
9695 cat confdefs.h >>conftest.$ac_ext
9696 cat >>conftest.$ac_ext <<_ACEOF
9697 /* end confdefs.h. */
9698 /* For now, do not test the preprocessor; as of 2007 there are too many
9699 implementations with broken preprocessors. Perhaps this can
9700 be revisited in 2012. In the meantime, code should not expect
9701 #if to work with literals wider than 32 bits. */
9702 /* Test literals. */
9703 long long int ll = 9223372036854775807ll;
9704 long long int nll = -9223372036854775807LL;
9705 unsigned long long int ull = 18446744073709551615ULL;
9706 /* Test constant expressions. */
9707 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
9708 ? 1 : -1)];
9709 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
9710 ? 1 : -1)];
9711 int i = 63;
9712 int
9713 main ()
9714 {
9715 /* Test availability of runtime routines for shift and division. */
9716 long long int llmax = 9223372036854775807ll;
9717 unsigned long long int ullmax = 18446744073709551615ull;
9718 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
9719 | (llmax / ll) | (llmax % ll)
9720 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
9721 | (ullmax / ull) | (ullmax % ull));
9722 ;
9723 return 0;
9724 }
9725
9726 _ACEOF
9727 rm -f conftest.$ac_objext conftest$ac_exeext
9728 if { (ac_try="$ac_link"
9729 case "(($ac_try" in
9730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9731 *) ac_try_echo=$ac_try;;
9732 esac
9733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9734 $as_echo "$ac_try_echo") >&5
9735 (eval "$ac_link") 2>conftest.er1
9736 ac_status=$?
9737 grep -v '^ *+' conftest.er1 >conftest.err
9738 rm -f conftest.er1
9739 cat conftest.err >&5
9740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); } && {
9742 test -z "$ac_c_werror_flag" ||
9743 test ! -s conftest.err
9744 } && test -s conftest$ac_exeext && {
9745 test "$cross_compiling" = yes ||
9746 $as_test_x conftest$ac_exeext
9747 }; then
9748 if test "$cross_compiling" = yes; then
9749 ac_cv_type_long_long_int=yes
9750 else
9751 cat >conftest.$ac_ext <<_ACEOF
9752 /* confdefs.h. */
9753 _ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h. */
9757 #include <limits.h>
9758 #ifndef LLONG_MAX
9759 # define HALF \
9760 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9761 # define LLONG_MAX (HALF - 1 + HALF)
9762 #endif
9763 int
9764 main ()
9765 {
9766 long long int n = 1;
9767 int i;
9768 for (i = 0; ; i++)
9769 {
9770 long long int m = n << i;
9771 if (m >> i != n)
9772 return 1;
9773 if (LLONG_MAX / 2 < m)
9774 break;
9775 }
9776 return 0;
9777 ;
9778 return 0;
9779 }
9780 _ACEOF
9781 rm -f conftest$ac_exeext
9782 if { (ac_try="$ac_link"
9783 case "(($ac_try" in
9784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9785 *) ac_try_echo=$ac_try;;
9786 esac
9787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9788 $as_echo "$ac_try_echo") >&5
9789 (eval "$ac_link") 2>&5
9790 ac_status=$?
9791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9793 { (case "(($ac_try" in
9794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9795 *) ac_try_echo=$ac_try;;
9796 esac
9797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9798 $as_echo "$ac_try_echo") >&5
9799 (eval "$ac_try") 2>&5
9800 ac_status=$?
9801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; }; then
9803 ac_cv_type_long_long_int=yes
9804 else
9805 $as_echo "$as_me: program exited with status $ac_status" >&5
9806 $as_echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9808
9809 ( exit $ac_status )
9810 ac_cv_type_long_long_int=no
9811 fi
9812 rm -rf conftest.dSYM
9813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$a c_objext conftest.$ac_ext
9814 fi
9815
9816
9817 else
9818 $as_echo "$as_me: failed program was:" >&5
9819 sed 's/^/| /' conftest.$ac_ext >&5
9820
9821 ac_cv_type_long_long_int=no
9822 fi
9823
9824 rm -rf conftest.dSYM
9825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9826 conftest$ac_exeext conftest.$ac_ext
9827 fi
9828 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
9829 $as_echo "$ac_cv_type_long_long_int" >&6; }
9830 if test $ac_cv_type_long_long_int = yes; then
9831
9832 cat >>confdefs.h <<\_ACEOF
9833 #define HAVE_LONG_LONG_INT 1
9834 _ACEOF
9835
9836 fi
9837
9838
9839 { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
9840 $as_echo_n "checking for unsigned long long int... " >&6; }
9841 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
9842 $as_echo_n "(cached) " >&6
9843 else
9844 cat >conftest.$ac_ext <<_ACEOF
9845
9846 /* confdefs.h. */
9847 _ACEOF
9848 cat confdefs.h >>conftest.$ac_ext
9849 cat >>conftest.$ac_ext <<_ACEOF
9850 /* end confdefs.h. */
9851 /* For now, do not test the preprocessor; as of 2007 there are too many
9852 implementations with broken preprocessors. Perhaps this can
9853 be revisited in 2012. In the meantime, code should not expect
9854 #if to work with literals wider than 32 bits. */
9855 /* Test literals. */
9856 long long int ll = 9223372036854775807ll;
9857 long long int nll = -9223372036854775807LL;
9858 unsigned long long int ull = 18446744073709551615ULL;
9859 /* Test constant expressions. */
9860 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
9861 ? 1 : -1)];
9862 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
9863 ? 1 : -1)];
9864 int i = 63;
9865 int
9866 main ()
9867 {
9868 /* Test availability of runtime routines for shift and division. */
9869 long long int llmax = 9223372036854775807ll;
9870 unsigned long long int ullmax = 18446744073709551615ull;
9871 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
9872 | (llmax / ll) | (llmax % ll)
9873 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
9874 | (ullmax / ull) | (ullmax % ull));
9875 ;
9876 return 0;
9877 }
9878
9879 _ACEOF
9880 rm -f conftest.$ac_objext conftest$ac_exeext
9881 if { (ac_try="$ac_link"
9882 case "(($ac_try" in
9883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9884 *) ac_try_echo=$ac_try;;
9885 esac
9886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9887 $as_echo "$ac_try_echo") >&5
9888 (eval "$ac_link") 2>conftest.er1
9889 ac_status=$?
9890 grep -v '^ *+' conftest.er1 >conftest.err
9891 rm -f conftest.er1
9892 cat conftest.err >&5
9893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); } && {
9895 test -z "$ac_c_werror_flag" ||
9896 test ! -s conftest.err
9897 } && test -s conftest$ac_exeext && {
9898 test "$cross_compiling" = yes ||
9899 $as_test_x conftest$ac_exeext
9900 }; then
9901 ac_cv_type_unsigned_long_long_int=yes
9902 else
9903 $as_echo "$as_me: failed program was:" >&5
9904 sed 's/^/| /' conftest.$ac_ext >&5
9905
9906 ac_cv_type_unsigned_long_long_int=no
9907 fi
9908
9909 rm -rf conftest.dSYM
9910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9911 conftest$ac_exeext conftest.$ac_ext
9912 fi
9913 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
9914 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
9915 if test $ac_cv_type_unsigned_long_long_int = yes; then
9916
9917 cat >>confdefs.h <<\_ACEOF
9918 #define HAVE_UNSIGNED_LONG_LONG_INT 1
9919 _ACEOF
9920
9921 fi
9922
9923
9924
9925
9926
9927
9928
9929
9930 if test $ac_cv_type_long_long_int = yes; then
9931 HAVE_LONG_LONG_INT=1
9932 else
9933 HAVE_LONG_LONG_INT=0
9934 fi
9935
9936
9937 if test $ac_cv_type_unsigned_long_long_int = yes; then
9938 HAVE_UNSIGNED_LONG_LONG_INT=1
9939 else
9940 HAVE_UNSIGNED_LONG_LONG_INT=0
9941 fi
9942
9943
9944 if test $ac_cv_header_inttypes_h = yes; then
9945 HAVE_INTTYPES_H=1
9946 else
9947 HAVE_INTTYPES_H=0
9948 fi
9949
9950
9951 if test $ac_cv_header_sys_types_h = yes; then
9952 HAVE_SYS_TYPES_H=1
9953 else
9954 HAVE_SYS_TYPES_H=0
9955 fi
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969 if test $gl_cv_have_include_next = yes; then
9970 gl_cv_next_stdint_h='<'stdint.h'>'
9971 else
9972 { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
9973 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
9974 if test "${gl_cv_next_stdint_h+set}" = set; then
9975 $as_echo_n "(cached) " >&6
9976 else
9977
9978 if test $ac_cv_header_stdint_h = yes; then
9979 cat >conftest.$ac_ext <<_ACEOF
9980 /* confdefs.h. */
9981 _ACEOF
9982 cat confdefs.h >>conftest.$ac_ext
9983 cat >>conftest.$ac_ext <<_ACEOF
9984 /* end confdefs.h. */
9985 #include <stdint.h>
9986
9987 _ACEOF
9988 case "$host_ os" in
9989 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9990 *) gl_absname_cpp="$ac_cpp" ;;
9991 esac
9992 gl_cv_next_stdint_h='"'`(eval "$gl_absname_c pp conftest.$ac_ext") 2>&5 |
9993 sed -n '\#/stdint.h#{
9994 s#.*"\(.*/stdint.h\)".*#\1#
9995 s#^/[^/]#//&#
9996 p
9997 q
9998 }'`'"'
9999 else
10000 gl_cv_next_stdint_h='<'stdint.h'>'
10001 fi
10002
10003 fi
10004 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
10005 $as_echo "$gl_cv_next_stdint_h" >&6; }
10006 fi
10007 NEXT_STDINT_H=$gl_cv_next_stdint_h
10008
10009
10010
10011 if test $ac_cv_header_stdint_h = yes; then
10012 HAVE_STDINT_H=1
10013 else
10014 HAVE_STDINT_H=0
10015 fi
10016
10017
10018 if test $ac_cv_header_stdint_h = yes; then
10019 { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
10020 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
10021 if test "${gl_cv_header_working_stdint_h+set}" = set; then
10022 $as_echo_n "(cached) " >&6
10023 else
10024 gl_cv_header_working_stdint_h=no
10025 cat >conftest.$ac_ext <<_ACEOF
10026
10027 /* confdefs.h. */
10028 _ACEOF
10029 cat confdefs.h >>conftest.$ac_ext
10030 cat >>conftest.$ac_ext <<_ACEOF
10031 /* end confdefs.h. */
10032
10033 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
10034 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
10035 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10036 #include <stdint.h>
10037 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
10038 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
10039 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
10040 #endif
10041
10042
10043 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10044 included before <wchar.h>. */
10045 #include <stddef.h>
10046 #include <signal.h>
10047 #if HAVE_WCHAR_H
10048 # include <stdio.h>
10049 # include <time.h>
10050 # include <wchar.h>
10051 #endif
10052
10053
10054 #ifdef INT8_MAX
10055 int8_t a1 = INT8_MAX;
10056 int8_t a1min = INT8_MIN;
10057 #endif
10058 #ifdef INT16_MAX
10059 int16_t a2 = INT16_MAX;
10060 int16_t a2min = INT16_MIN;
10061 #endif
10062 #ifdef INT32_MAX
10063 int32_t a3 = INT32_MAX;
10064 int32_t a3min = INT32_MIN;
10065 #endif
10066 #ifdef INT64_MAX
10067 int64_t a4 = INT64_MAX;
10068 int64_t a4min = INT64_MIN;
10069 #endif
10070 #ifdef UINT8_MAX
10071 uint8_t b1 = UINT8_MAX;
10072 #else
10073 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
10074 #endif
10075 #ifdef UINT16_MAX
10076 uint16_t b2 = UINT16_MAX;
10077 #endif
10078 #ifdef UINT32_MAX
10079 uint32_t b3 = UINT32_MAX;
10080 #endif
10081 #ifdef UINT64_MAX
10082 uint64_t b4 = UINT64_MAX;
10083 #endif
10084 int_least8_t c1 = INT8_C (0x7f);
10085 int_least8_t c1max = INT_LEAST8_MAX;
10086 int_least8_t c1min = INT_LEAST8_MIN;
10087 int_least16_t c2 = INT16_C (0x7fff);
10088 int_least16_t c2max = INT_LEAST16_MAX;
10089 int_least16_t c2min = INT_LEAST16_MIN;
10090 int_least32_t c3 = INT32_C (0x7fffffff);
10091 int_least32_t c3max = INT_LEAST32_MAX;
10092 int_least32_t c3min = INT_LEAST32_MIN;
10093 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
10094 int_least64_t c4max = INT_LEAST64_MAX;
10095 int_least64_t c4min = INT_LEAST64_MIN;
10096 uint_least8_t d1 = UINT8_C (0xff);
10097 uint_least8_t d1max = UINT_LEAST8_MAX;
10098 uint_least16_t d2 = UINT16_C (0xffff);
10099 uint_least16_t d2max = UINT_LEAST16_MAX;
10100 uint_least32_t d3 = UINT32_C (0xffffffff);
10101 uint_least32_t d3max = UINT_LEAST32_MAX;
10102 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
10103 uint_least64_t d4max = UINT_LEAST64_MAX;
10104 int_fast8_t e1 = INT_FAST8_MAX;
10105 int_fast8_t e1min = INT_FAST8_MIN;
10106 int_fast16_t e2 = INT_FAST16_MAX;
10107 int_fast16_t e2min = INT_FAST16_MIN;
10108 int_fast32_t e3 = INT_FAST32_MAX;
10109 int_fast32_t e3min = INT_FAST32_MIN;
10110 int_fast64_t e4 = INT_FAST64_MAX;
10111 int_fast64_t e4min = INT_FAST64_MIN;
10112 uint_fast8_t f1 = UINT_FAST8_MAX;
10113 uint_fast16_t f2 = UINT_FAST16_MAX;
10114 uint_fast32_t f3 = UINT_FAST32_MAX;
10115 uint_fast64_t f4 = UINT_FAST64_MAX;
10116 #ifdef INTPTR_MAX
10117 intptr_t g = INTPTR_MAX;
10118 intptr_t gmin = INTPTR_MIN;
10119 #endif
10120 #ifdef UINTPTR_MAX
10121 uintptr_t h = UINTPTR_MAX;
10122 #endif
10123 intmax_t i = INTMAX_MAX;
10124 uintmax_t j = UINTMAX_MAX;
10125
10126 #include <limits.h> /* for CHAR_BIT */
10127 #define TYPE_MINIMUM(t) \
10128 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
10129 #define TYPE_MAXIMUM(t) \
10130 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
10131 struct s {
10132 int check_PTRDIFF:
10133 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
10134 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
10135 ? 1 : -1;
10136 /* Detect bug in FreeBSD 6.0 / ia64. */
10137 int check_SIG_ATOMIC:
10138 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
10139 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
10140 ? 1 : -1;
10141 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
10142 int check_WCHAR:
10143 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
10144 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
10145 ? 1 : -1;
10146 /* Detect bug in mingw. */
10147 int check_WINT:
10148 WINT_MIN == TYPE_MINIMUM (wint_t)
10149 && WINT_MAX == TYPE_MAXIMUM (wint_t)
10150 ? 1 : -1;
10151
10152 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
10153 int check_UINT8_C:
10154 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
10155 int check_UINT16_C:
10156 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
10157
10158 /* Detect bugs in OpenBSD 3.9 stdint.h. */
10159 #ifdef UINT8_MAX
10160 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
10161 #endif
10162 #ifdef UINT16_MAX
10163 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
10164 #endif
10165 #ifdef UINT32_MAX
10166 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
10167 #endif
10168 #ifdef UINT64_MAX
10169 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
10170 #endif
10171 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
10172 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
10173 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
10174 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
10175 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
10176 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
10177 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
10178 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
10179 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
10180 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
10181 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
10182 };
10183
10184 int
10185 main ()
10186 {
10187
10188 ;
10189 return 0;
10190 }
10191 _ACEOF
10192 rm -f conftest.$ac_objext
10193 if { (ac_try="$ac_compile"
10194 case "(($ac_try" in
10195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196 *) ac_try_echo=$ac_try;;
10197 esac
10198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10199 $as_echo "$ac_try_echo") >&5
10200 (eval "$ac_compile") 2>conftest.er1
10201 ac_status=$?
10202 grep -v '^ *+' conftest.er1 >conftest.err
10203 rm -f conftest.er1
10204 cat conftest.err >&5
10205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); } && {
10207 test -z "$ac_c_werror_flag" ||
10208 test ! -s conftest.err
10209 } && test -s conftest.$ac_objext; then
10210 gl_cv_header_working_stdint_h=yes
10211 else
10212 $as_echo "$as_me: failed program was:" >&5
10213 sed 's/^/| /' conftest.$ac_ext >&5
10214
10215
10216 fi
10217
10218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10219 fi
10220 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
10221 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
10222 fi
10223 if test "$gl_cv_header_working_stdint_h" = yes; then
10224 STDINT_H=
10225 else
10226
10227
10228 for ac_header in sys/inttypes.h sys/bitypes.h
10229 do
10230 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10232 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10233 $as_echo_n "checking for $ac_header... " >&6; }
10234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10235 $as_echo_n "(cached) " >&6
10236 fi
10237 ac_res=`eval 'as_val=${'$as_ac_Header'}
10238 $as_echo "$as_val"'`
10239 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10240 $as_echo "$ac_res" >&6; }
10241 else
10242 # Is the header compilable?
10243 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10244 $as_echo_n "checking $ac_header usability... " >&6; }
10245 cat >conftest.$ac_ext <<_ACEOF
10246 /* confdefs.h. */
10247 _ACEOF
10248 cat confdefs.h >>conftest.$ac_ext
10249 cat >>conftest.$ac_ext <<_ACEOF
10250 /* end confdefs.h. */
10251 $ac_includes_default
10252 #include <$ac_header>
10253 _ACEOF
10254 rm -f conftest.$ac_objext
10255 if { (ac_try="$ac_compile"
10256 case "(($ac_try" in
10257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10258 *) ac_try_echo=$ac_try;;
10259 esac
10260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10261 $as_echo "$ac_try_echo") >&5
10262 (eval "$ac_compile") 2>conftest.er1
10263 ac_status=$?
10264 grep -v '^ *+' conftest.er1 >conftest.err
10265 rm -f conftest.er1
10266 cat conftest.err >&5
10267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); } && {
10269 test -z "$ac_c_werror_flag" ||
10270 test ! -s conftest.err
10271 } && test -s conftest.$ac_objext; then
10272 ac_header_compiler=yes
10273 else
10274 $as_echo "$as_me: failed program was:" >&5
10275 sed 's/^/| /' conftest.$ac_ext >&5
10276
10277 ac_header_compiler=no
10278 fi
10279
10280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10281 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10282 $as_echo "$ac_header_compiler" >&6; }
10283
10284 # Is the header present?
10285 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10286 $as_echo_n "checking $ac_header presence... " >&6; }
10287 cat >conftest.$ac_ext <<_ACEOF
10288 /* confdefs.h. */
10289 _ACEOF
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h. */
10293 #include <$ac_header>
10294 _ACEOF
10295 if { (ac_try="$ac_cpp conftest.$ac_ext"
10296 case "(($ac_try" in
10297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10298 *) ac_try_echo=$ac_try;;
10299 esac
10300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10301 $as_echo "$ac_try_echo") >&5
10302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10303 ac_status=$?
10304 grep -v '^ *+' conftest.er1 >conftest.err
10305 rm -f conftest.er1
10306 cat conftest.err >&5
10307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); } >/dev/null && {
10309 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10310 test ! -s conftest.err
10311 }; then
10312 ac_header_preproc=yes
10313 else
10314 $as_echo "$as_me: failed program was:" >&5
10315 sed 's/^/| /' conftest.$ac_ext >&5
10316
10317 ac_header_preproc=no
10318 fi
10319
10320 rm -f conftest.err conftest.$ac_ext
10321 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10322 $as_echo "$ac_header_preproc" >&6; }
10323
10324 # So? What about this header?
10325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10326 yes:no: )
10327 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, r ejected by the preprocessor!" >&5
10328 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compile r's result" >&5
10330 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >& 2;}
10331 ac_header_preproc=yes
10332 ;;
10333 no:yes:* )
10334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compi led" >&5
10335 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prere quisite headers?" >&5
10337 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite header s?" >&2;}
10338 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentat ion" >&5
10339 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10340 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But C annot Be Compiled\"" >&5
10341 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compi led\"" >&2;}
10342 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preproc essor's result" >&5
10343 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result " >&2;}
10344 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10345 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take pre cedence" >&2;}
10346 ( cat <<\_ASBOX
10347 ## -------------------------------- ##
10348 ## Report this to bug-bison@gnu.org ##
10349 ## -------------------------------- ##
10350 _ASBOX
10351 ) | sed "s/^/$as_me: WARNING: /" >&2
10352 ;;
10353 esac
10354 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10355 $as_echo_n "checking for $ac_header... " >&6; }
10356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10357 $as_echo_n "(cached) " >&6
10358 else
10359 eval "$as_ac_Header=\$ac_header_preproc"
10360 fi
10361 ac_res=`eval 'as_val=${'$as_ac_Header'}
10362 $as_echo "$as_val"'`
10363 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10364 $as_echo "$ac_res" >&6; }
10365
10366 fi
10367 if test `eval 'as_val=${'$as_ac_Header'}
10368 $as_echo "$as_val"'` = yes; then
10369 cat >>confdefs.h <<_ACEOF
10370 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10371 _ACEOF
10372
10373 fi
10374
10375 done
10376
10377 if test $ac_cv_header_sys_inttypes_h = yes; then
10378 HAVE_SYS_INTTYPES_H=1
10379 else
10380 HAVE_SYS_INTTYPES_H=0
10381 fi
10382
10383 if test $ac_cv_header_sys_bitypes_h = yes; then
10384 HAVE_SYS_BITYPES_H=1
10385 else
10386 HAVE_SYS_BITYPES_H=0
10387 fi
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
10406 { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
10407 $as_echo_n "checking for bit size of $gltype... " >&6; }
10408 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
10409 $as_echo_n "(cached) " >&6
10410 else
10411 if test "$cross_compiling" = yes; then
10412 # Depending upon the size, compute the lo and hi bounds.
10413 cat >conftest.$ac_ext <<_ACEOF
10414 /* confdefs.h. */
10415 _ACEOF
10416 cat confdefs.h >>conftest.$ac_ext
10417 cat >>conftest.$ac_ext <<_ACEOF
10418 /* end confdefs.h. */
10419
10420 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10421 included before <wchar.h>. */
10422 #include <stddef.h>
10423 #include <signal.h>
10424 #if HAVE_WCHAR_H
10425 # include <stdio.h>
10426 # include <time.h>
10427 # include <wchar.h>
10428 #endif
10429
10430 #include <limits.h>
10431 int
10432 main ()
10433 {
10434 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
10435 test_array [0] = 0
10436
10437 ;
10438 return 0;
10439 }
10440 _ACEOF
10441 rm -f conftest.$ac_objext
10442 if { (ac_try="$ac_compile"
10443 case "(($ac_try" in
10444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10445 *) ac_try_echo=$ac_try;;
10446 esac
10447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10448 $as_echo "$ac_try_echo") >&5
10449 (eval "$ac_compile") 2>conftest.er1
10450 ac_status=$?
10451 grep -v '^ *+' conftest.er1 >conftest.err
10452 rm -f conftest.er1
10453 cat conftest.err >&5
10454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); } && {
10456 test -z "$ac_c_werror_flag" ||
10457 test ! -s conftest.err
10458 } && test -s conftest.$ac_objext; then
10459 ac_lo=0 ac_mid=0
10460 while :; do
10461 cat >conftest.$ac_ext <<_ACEOF
10462 /* confdefs.h. */
10463 _ACEOF
10464 cat confdefs.h >>conftest.$ac_ext
10465 cat >>conftest.$ac_ext <<_ACEOF
10466 /* end confdefs.h. */
10467
10468 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10469 included before <wchar.h>. */
10470 #include <stddef.h>
10471 #include <signal.h>
10472 #if HAVE_WCHAR_H
10473 # include <stdio.h>
10474 # include <time.h>
10475 # include <wchar.h>
10476 #endif
10477
10478 #include <limits.h>
10479 int
10480 main ()
10481 {
10482 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
10483 test_array [0] = 0
10484
10485 ;
10486 return 0;
10487 }
10488 _ACEOF
10489 rm -f conftest.$ac_objext
10490 if { (ac_try="$ac_compile"
10491 case "(($ac_try" in
10492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10493 *) ac_try_echo=$ac_try;;
10494 esac
10495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10496 $as_echo "$ac_try_echo") >&5
10497 (eval "$ac_compile") 2>conftest.er1
10498 ac_status=$?
10499 grep -v '^ *+' conftest.er1 >conftest.err
10500 rm -f conftest.er1
10501 cat conftest.err >&5
10502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); } && {
10504 test -z "$ac_c_werror_flag" ||
10505 test ! -s conftest.err
10506 } && test -s conftest.$ac_objext; then
10507 ac_hi=$ac_mid; break
10508 else
10509 $as_echo "$as_me: failed program was:" >&5
10510 sed 's/^/| /' conftest.$ac_ext >&5
10511
10512 ac_lo=`expr $ac_mid + 1`
10513 if test $ac_lo -le $ac_mid; then
10514 ac_lo= ac_hi=
10515 break
10516 fi
10517 ac_mid=`expr 2 '*' $ac_mid + 1`
10518 fi
10519
10520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10521 done
10522 else
10523 $as_echo "$as_me: failed program was:" >&5
10524 sed 's/^/| /' conftest.$ac_ext >&5
10525
10526 cat >conftest.$ac_ext <<_ACEOF
10527 /* confdefs.h. */
10528 _ACEOF
10529 cat confdefs.h >>conftest.$ac_ext
10530 cat >>conftest.$ac_ext <<_ACEOF
10531 /* end confdefs.h. */
10532
10533 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10534 included before <wchar.h>. */
10535 #include <stddef.h>
10536 #include <signal.h>
10537 #if HAVE_WCHAR_H
10538 # include <stdio.h>
10539 # include <time.h>
10540 # include <wchar.h>
10541 #endif
10542
10543 #include <limits.h>
10544 int
10545 main ()
10546 {
10547 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
10548 test_array [0] = 0
10549
10550 ;
10551 return 0;
10552 }
10553 _ACEOF
10554 rm -f conftest.$ac_objext
10555 if { (ac_try="$ac_compile"
10556 case "(($ac_try" in
10557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558 *) ac_try_echo=$ac_try;;
10559 esac
10560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10561 $as_echo "$ac_try_echo") >&5
10562 (eval "$ac_compile") 2>conftest.er1
10563 ac_status=$?
10564 grep -v '^ *+' conftest.er1 >conftest.err
10565 rm -f conftest.er1
10566 cat conftest.err >&5
10567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } && {
10569 test -z "$ac_c_werror_flag" ||
10570 test ! -s conftest.err
10571 } && test -s conftest.$ac_objext; then
10572 ac_hi=-1 ac_mid=-1
10573 while :; do
10574 cat >conftest.$ac_ext <<_ACEOF
10575 /* confdefs.h. */
10576 _ACEOF
10577 cat confdefs.h >>conftest.$ac_ext
10578 cat >>conftest.$ac_ext <<_ACEOF
10579 /* end confdefs.h. */
10580
10581 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10582 included before <wchar.h>. */
10583 #include <stddef.h>
10584 #include <signal.h>
10585 #if HAVE_WCHAR_H
10586 # include <stdio.h>
10587 # include <time.h>
10588 # include <wchar.h>
10589 #endif
10590
10591 #include <limits.h>
10592 int
10593 main ()
10594 {
10595 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
10596 test_array [0] = 0
10597
10598 ;
10599 return 0;
10600 }
10601 _ACEOF
10602 rm -f conftest.$ac_objext
10603 if { (ac_try="$ac_compile"
10604 case "(($ac_try" in
10605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10606 *) ac_try_echo=$ac_try;;
10607 esac
10608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10609 $as_echo "$ac_try_echo") >&5
10610 (eval "$ac_compile") 2>conftest.er1
10611 ac_status=$?
10612 grep -v '^ *+' conftest.er1 >conftest.err
10613 rm -f conftest.er1
10614 cat conftest.err >&5
10615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); } && {
10617 test -z "$ac_c_werror_flag" ||
10618 test ! -s conftest.err
10619 } && test -s conftest.$ac_objext; then
10620 ac_lo=$ac_mid; break
10621 else
10622 $as_echo "$as_me: failed program was:" >&5
10623 sed 's/^/| /' conftest.$ac_ext >&5
10624
10625 ac_hi=`expr '(' $ac_mid ')' - 1`
10626 if test $ac_mid -le $ac_hi; then
10627 ac_lo= ac_hi=
10628 break
10629 fi
10630 ac_mid=`expr 2 '*' $ac_mid`
10631 fi
10632
10633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10634 done
10635 else
10636 $as_echo "$as_me: failed program was:" >&5
10637 sed 's/^/| /' conftest.$ac_ext >&5
10638
10639 ac_lo= ac_hi=
10640 fi
10641
10642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10643 fi
10644
10645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10646 # Binary search between lo and hi bounds.
10647 while test "x$ac_lo" != "x$ac_hi"; do
10648 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10649 cat >conftest.$ac_ext <<_ACEOF
10650 /* confdefs.h. */
10651 _ACEOF
10652 cat confdefs.h >>conftest.$ac_ext
10653 cat >>conftest.$ac_ext <<_ACEOF
10654 /* end confdefs.h. */
10655
10656 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10657 included before <wchar.h>. */
10658 #include <stddef.h>
10659 #include <signal.h>
10660 #if HAVE_WCHAR_H
10661 # include <stdio.h>
10662 # include <time.h>
10663 # include <wchar.h>
10664 #endif
10665
10666 #include <limits.h>
10667 int
10668 main ()
10669 {
10670 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
10671 test_array [0] = 0
10672
10673 ;
10674 return 0;
10675 }
10676 _ACEOF
10677 rm -f conftest.$ac_objext
10678 if { (ac_try="$ac_compile"
10679 case "(($ac_try" in
10680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681 *) ac_try_echo=$ac_try;;
10682 esac
10683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10684 $as_echo "$ac_try_echo") >&5
10685 (eval "$ac_compile") 2>conftest.er1
10686 ac_status=$?
10687 grep -v '^ *+' conftest.er1 >conftest.err
10688 rm -f conftest.er1
10689 cat conftest.err >&5
10690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); } && {
10692 test -z "$ac_c_werror_flag" ||
10693 test ! -s conftest.err
10694 } && test -s conftest.$ac_objext; then
10695 ac_hi=$ac_mid
10696 else
10697 $as_echo "$as_me: failed program was:" >&5
10698 sed 's/^/| /' conftest.$ac_ext >&5
10699
10700 ac_lo=`expr '(' $ac_mid ')' + 1`
10701 fi
10702
10703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10704 done
10705 case $ac_lo in
10706 ?*) result=$ac_lo;;
10707 '') result=unknown ;;
10708 esac
10709 else
10710 cat >conftest.$ac_ext <<_ACEOF
10711 /* confdefs.h. */
10712 _ACEOF
10713 cat confdefs.h >>conftest.$ac_ext
10714 cat >>conftest.$ac_ext <<_ACEOF
10715 /* end confdefs.h. */
10716
10717 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10718 included before <wchar.h>. */
10719 #include <stddef.h>
10720 #include <signal.h>
10721 #if HAVE_WCHAR_H
10722 # include <stdio.h>
10723 # include <time.h>
10724 # include <wchar.h>
10725 #endif
10726
10727 #include <limits.h>
10728 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
10729 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
10730 #include <stdio.h>
10731 #include <stdlib.h>
10732 int
10733 main ()
10734 {
10735
10736 FILE *f = fopen ("conftest.val", "w");
10737 if (! f)
10738 return 1;
10739 if ((sizeof ($gltype) * CHAR_BIT) < 0)
10740 {
10741 long int i = longval ();
10742 if (i != (sizeof ($gltype) * CHAR_BIT))
10743 return 1;
10744 fprintf (f, "%ld", i);
10745 }
10746 else
10747 {
10748 unsigned long int i = ulongval ();
10749 if (i != (sizeof ($gltype) * CHAR_BIT))
10750 return 1;
10751 fprintf (f, "%lu", i);
10752 }
10753 /* Do not output a trailing newline, as this causes \r\n confusion
10754 on some platforms. */
10755 return ferror (f) || fclose (f) != 0;
10756
10757 ;
10758 return 0;
10759 }
10760 _ACEOF
10761 rm -f conftest$ac_exeext
10762 if { (ac_try="$ac_link"
10763 case "(($ac_try" in
10764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10765 *) ac_try_echo=$ac_try;;
10766 esac
10767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10768 $as_echo "$ac_try_echo") >&5
10769 (eval "$ac_link") 2>&5
10770 ac_status=$?
10771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10773 { (case "(($ac_try" in
10774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10775 *) ac_try_echo=$ac_try;;
10776 esac
10777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10778 $as_echo "$ac_try_echo") >&5
10779 (eval "$ac_try") 2>&5
10780 ac_status=$?
10781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; }; then
10783 result=`cat conftest.val`
10784 else
10785 $as_echo "$as_me: program exited with status $ac_status" >&5
10786 $as_echo "$as_me: failed program was:" >&5
10787 sed 's/^/| /' conftest.$ac_ext >&5
10788
10789 ( exit $ac_status )
10790 result=unknown
10791 fi
10792 rm -rf conftest.dSYM
10793 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$a c_objext conftest.$ac_ext
10794 fi
10795 rm -f conftest.val
10796 eval gl_cv_bitsizeof_${gltype}=\$result
10797
10798 fi
10799 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
10800 $as_echo "$as_val"'`
10801 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10802 $as_echo "$ac_res" >&6; }
10803 eval result=\$gl_cv_bitsizeof_${gltype}
10804 if test $result = unknown; then
10805 result=0
10806 fi
10807 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQ RSTUVWXYZ_'`
10808 cat >>confdefs.h <<_ACEOF
10809 #define BITSIZEOF_${GLTYPE} $result
10810 _ACEOF
10811
10812 eval BITSIZEOF_${GLTYPE}=\$result
10813 done
10814
10815
10816
10817
10818
10819
10820
10821 for gltype in sig_atomic_t wchar_t wint_t ; do
10822 { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
10823 $as_echo_n "checking whether $gltype is signed... " >&6; }
10824 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
10825 $as_echo_n "(cached) " >&6
10826 else
10827 cat >conftest.$ac_ext <<_ACEOF
10828 /* confdefs.h. */
10829 _ACEOF
10830 cat confdefs.h >>conftest.$ac_ext
10831 cat >>conftest.$ac_ext <<_ACEOF
10832 /* end confdefs.h. */
10833
10834 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10835 included before <wchar.h>. */
10836 #include <stddef.h>
10837 #include <signal.h>
10838 #if HAVE_WCHAR_H
10839 # include <stdio.h>
10840 # include <time.h>
10841 # include <wchar.h>
10842 #endif
10843
10844 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
10845 int
10846 main ()
10847 {
10848
10849 ;
10850 return 0;
10851 }
10852 _ACEOF
10853 rm -f conftest.$ac_objext
10854 if { (ac_try="$ac_compile"
10855 case "(($ac_try" in
10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857 *) ac_try_echo=$ac_try;;
10858 esac
10859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10860 $as_echo "$ac_try_echo") >&5
10861 (eval "$ac_compile") 2>conftest.er1
10862 ac_status=$?
10863 grep -v '^ *+' conftest.er1 >conftest.err
10864 rm -f conftest.er1
10865 cat conftest.err >&5
10866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } && {
10868 test -z "$ac_c_werror_flag" ||
10869 test ! -s conftest.err
10870 } && test -s conftest.$ac_objext; then
10871 result=yes
10872 else
10873 $as_echo "$as_me: failed program was:" >&5
10874 sed 's/^/| /' conftest.$ac_ext >&5
10875
10876 result=no
10877 fi
10878
10879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10880 eval gl_cv_type_${gltype}_signed=\$result
10881
10882 fi
10883 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
10884 $as_echo "$as_val"'`
10885 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10886 $as_echo "$ac_res" >&6; }
10887 eval result=\$gl_cv_type_${gltype}_signed
10888 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRS TUVWXYZ_'`
10889 if test "$result" = yes; then
10890 cat >>confdefs.h <<_ACEOF
10891 #define HAVE_SIGNED_${GLTYPE} 1
10892 _ACEOF
10893
10894 eval HAVE_SIGNED_${GLTYPE}=1
10895 else
10896 eval HAVE_SIGNED_${GLTYPE}=0
10897 fi
10898 done
10899
10900
10901 gl_cv_type_ptrdiff_t_signed=yes
10902 gl_cv_type_size_t_signed=no
10903
10904
10905
10906
10907
10908
10909
10910 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
10911 { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
10912 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
10913 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
10914 $as_echo_n "(cached) " >&6
10915 else
10916 eval gl_cv_type_${gltype}_suffix=no
10917 eval result=\$gl_cv_type_${gltype}_signed
10918 if test "$result" = yes; then
10919 glsufu=
10920 else
10921 glsufu=u
10922 fi
10923 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
10924 case $glsuf in
10925 '') gltype1='int';;
10926 l) gltype1='long int';;
10927 ll) gltype1='long long int';;
10928 i64) gltype1='__int64';;
10929 u) gltype1='unsigned int';;
10930 ul) gltype1='unsigned long int';;
10931 ull) gltype1='unsigned long long int';;
10932 ui64)gltype1='unsigned __int64';;
10933 esac
10934 cat >conftest.$ac_ext <<_ACEOF
10935 /* confdefs.h. */
10936 _ACEOF
10937 cat confdefs.h >>conftest.$ac_ext
10938 cat >>conftest.$ac_ext <<_ACEOF
10939 /* end confdefs.h. */
10940
10941 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10942 included before <wchar.h>. */
10943 #include <stddef.h>
10944 #include <signal.h>
10945 #if HAVE_WCHAR_H
10946 # include <stdio.h>
10947 # include <time.h>
10948 # include <wchar.h>
10949 #endif
10950
10951 extern $gltype foo;
10952 extern $gltype1 foo;
10953 int
10954 main ()
10955 {
10956
10957 ;
10958 return 0;
10959 }
10960 _ACEOF
10961 rm -f conftest.$ac_objext
10962 if { (ac_try="$ac_compile"
10963 case "(($ac_try" in
10964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10965 *) ac_try_echo=$ac_try;;
10966 esac
10967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10968 $as_echo "$ac_try_echo") >&5
10969 (eval "$ac_compile") 2>conftest.er1
10970 ac_status=$?
10971 grep -v '^ *+' conftest.er1 >conftest.err
10972 rm -f conftest.er1
10973 cat conftest.err >&5
10974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } && {
10976 test -z "$ac_c_werror_flag" ||
10977 test ! -s conftest.err
10978 } && test -s conftest.$ac_objext; then
10979 eval gl_cv_type_${gltype}_suffix=\$glsuf
10980 else
10981 $as_echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.$ac_ext >&5
10983
10984
10985 fi
10986
10987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10988 eval result=\$gl_cv_type_${gltype}_suffix
10989 test "$result" != no && break
10990 done
10991 fi
10992 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
10993 $as_echo "$as_val"'`
10994 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10995 $as_echo "$ac_res" >&6; }
10996 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRS TUVWXYZ_'`
10997 eval result=\$gl_cv_type_${gltype}_suffix
10998 test "$result" = no && result=
10999 eval ${GLTYPE}_SUFFIX=\$result
11000 cat >>confdefs.h <<_ACEOF
11001 #define ${GLTYPE}_SUFFIX $result
11002 _ACEOF
11003
11004 done
11005
11006
11007
11008 STDINT_H=stdint.h
11009 fi
11010
11011
11012
11013
11014 for ac_header in inttypes.h
11015 do
11016 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11018 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11019 $as_echo_n "checking for $ac_header... " >&6; }
11020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11021 $as_echo_n "(cached) " >&6
11022 fi
11023 ac_res=`eval 'as_val=${'$as_ac_Header'}
11024 $as_echo "$as_val"'`
11025 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11026 $as_echo "$ac_res" >&6; }
11027 else
11028 # Is the header compilable?
11029 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11030 $as_echo_n "checking $ac_header usability... " >&6; }
11031 cat >conftest.$ac_ext <<_ACEOF
11032 /* confdefs.h. */
11033 _ACEOF
11034 cat confdefs.h >>conftest.$ac_ext
11035 cat >>conftest.$ac_ext <<_ACEOF
11036 /* end confdefs.h. */
11037 $ac_includes_default
11038 #include <$ac_header>
11039 _ACEOF
11040 rm -f conftest.$ac_objext
11041 if { (ac_try="$ac_compile"
11042 case "(($ac_try" in
11043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11044 *) ac_try_echo=$ac_try;;
11045 esac
11046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11047 $as_echo "$ac_try_echo") >&5
11048 (eval "$ac_compile") 2>conftest.er1
11049 ac_status=$?
11050 grep -v '^ *+' conftest.er1 >conftest.err
11051 rm -f conftest.er1
11052 cat conftest.err >&5
11053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); } && {
11055 test -z "$ac_c_werror_flag" ||
11056 test ! -s conftest.err
11057 } && test -s conftest.$ac_objext; then
11058 ac_header_compiler=yes
11059 else
11060 $as_echo "$as_me: failed program was:" >&5
11061 sed 's/^/| /' conftest.$ac_ext >&5
11062
11063 ac_header_compiler=no
11064 fi
11065
11066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11067 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11068 $as_echo "$ac_header_compiler" >&6; }
11069
11070 # Is the header present?
11071 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11072 $as_echo_n "checking $ac_header presence... " >&6; }
11073 cat >conftest.$ac_ext <<_ACEOF
11074 /* confdefs.h. */
11075 _ACEOF
11076 cat confdefs.h >>conftest.$ac_ext
11077 cat >>conftest.$ac_ext <<_ACEOF
11078 /* end confdefs.h. */
11079 #include <$ac_header>
11080 _ACEOF
11081 if { (ac_try="$ac_cpp conftest.$ac_ext"
11082 case "(($ac_try" in
11083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084 *) ac_try_echo=$ac_try;;
11085 esac
11086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11087 $as_echo "$ac_try_echo") >&5
11088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11089 ac_status=$?
11090 grep -v '^ *+' conftest.er1 >conftest.err
11091 rm -f conftest.er1
11092 cat conftest.err >&5
11093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); } >/dev/null && {
11095 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11096 test ! -s conftest.err
11097 }; then
11098 ac_header_preproc=yes
11099 else
11100 $as_echo "$as_me: failed program was:" >&5
11101 sed 's/^/| /' conftest.$ac_ext >&5
11102
11103 ac_header_preproc=no
11104 fi
11105
11106 rm -f conftest.err conftest.$ac_ext
11107 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11108 $as_echo "$ac_header_preproc" >&6; }
11109
11110 # So? What about this header?
11111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11112 yes:no: )
11113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, r ejected by the preprocessor!" >&5
11114 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compile r's result" >&5
11116 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >& 2;}
11117 ac_header_preproc=yes
11118 ;;
11119 no:yes:* )
11120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compi led" >&5
11121 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prere quisite headers?" >&5
11123 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite header s?" >&2;}
11124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentat ion" >&5
11125 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But C annot Be Compiled\"" >&5
11127 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compi led\"" >&2;}
11128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preproc essor's result" >&5
11129 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result " >&2;}
11130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11131 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take pre cedence" >&2;}
11132 ( cat <<\_ASBOX
11133 ## -------------------------------- ##
11134 ## Report this to bug-bison@gnu.org ##
11135 ## -------------------------------- ##
11136 _ASBOX
11137 ) | sed "s/^/$as_me: WARNING: /" >&2
11138 ;;
11139 esac
11140 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11141 $as_echo_n "checking for $ac_header... " >&6; }
11142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11143 $as_echo_n "(cached) " >&6
11144 else
11145 eval "$as_ac_Header=\$ac_header_preproc"
11146 fi
11147 ac_res=`eval 'as_val=${'$as_ac_Header'}
11148 $as_echo "$as_val"'`
11149 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11150 $as_echo "$ac_res" >&6; }
11151
11152 fi
11153 if test `eval 'as_val=${'$as_ac_Header'}
11154 $as_echo "$as_val"'` = yes; then
11155 cat >>confdefs.h <<_ACEOF
11156 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11157 _ACEOF
11158
11159 fi
11160
11161 done
11162
11163 if test $ac_cv_header_inttypes_h = yes; then
11164 { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros ar e broken" >&5
11165 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
11166 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
11167 $as_echo_n "(cached) " >&6
11168 else
11169
11170 cat >conftest.$ac_ext <<_ACEOF
11171 /* confdefs.h. */
11172 _ACEOF
11173 cat confdefs.h >>conftest.$ac_ext
11174 cat >>conftest.$ac_ext <<_ACEOF
11175 /* end confdefs.h. */
11176 #include <inttypes.h>
11177 #ifdef PRId32
11178 char *p = PRId32;
11179 #endif
11180
11181 int
11182 main ()
11183 {
11184
11185 ;
11186 return 0;
11187 }
11188 _ACEOF
11189 rm -f conftest.$ac_objext
11190 if { (ac_try="$ac_compile"
11191 case "(($ac_try" in
11192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11193 *) ac_try_echo=$ac_try;;
11194 esac
11195 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11196 $as_echo "$ac_try_echo") >&5
11197 (eval "$ac_compile") 2>conftest.er1
11198 ac_status=$?
11199 grep -v '^ *+' conftest.er1 >conftest.err
11200 rm -f conftest.er1
11201 cat conftest.err >&5
11202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203 (exit $ac_status); } && {
11204 test -z "$ac_c_werror_flag" ||
11205 test ! -s conftest.err
11206 } && test -s conftest.$ac_objext; then
11207 gt_cv_inttypes_pri_broken=no
11208 else
11209 $as_echo "$as_me: failed program was:" >&5
11210 sed 's/^/| /' conftest.$ac_ext >&5
11211
11212 gt_cv_inttypes_pri_broken=yes
11213 fi
11214
11215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11216
11217 fi
11218 { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
11219 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
11220 fi
11221 if test "$gt_cv_inttypes_pri_broken" = yes; then
11222
11223 cat >>confdefs.h <<_ACEOF
11224 #define PRI_MACROS_BROKEN 1
11225 _ACEOF
11226
11227 PRI_MACROS_BROKEN=1
11228 else
11229 PRI_MACROS_BROKEN=0
11230 fi
11231
11232
11233 { $as_echo "$as_me:$LINENO: checking whether imaxabs is declared" >&5
11234 $as_echo_n "checking whether imaxabs is declared... " >&6; }
11235 if test "${ac_cv_have_decl_imaxabs+set}" = set; then
11236 $as_echo_n "(cached) " >&6
11237 else
11238 cat >conftest.$ac_ext <<_ACEOF
11239 /* confdefs.h. */
11240 _ACEOF
11241 cat confdefs.h >>conftest.$ac_ext
11242 cat >>conftest.$ac_ext <<_ACEOF
11243 /* end confdefs.h. */
11244 $ac_includes_default
11245 int
11246 main ()
11247 {
11248 #ifndef imaxabs
11249 (void) imaxabs;
11250 #endif
11251
11252 ;
11253 return 0;
11254 }
11255 _ACEOF
11256 rm -f conftest.$ac_objext
11257 if { (ac_try="$ac_compile"
11258 case "(($ac_try" in
11259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11260 *) ac_try_echo=$ac_try;;
11261 esac
11262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11263 $as_echo "$ac_try_echo") >&5
11264 (eval "$ac_compile") 2>conftest.er1
11265 ac_status=$?
11266 grep -v '^ *+' conftest.er1 >conftest.err
11267 rm -f conftest.er1
11268 cat conftest.err >&5
11269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } && {
11271 test -z "$ac_c_werror_flag" ||
11272 test ! -s conftest.err
11273 } && test -s conftest.$ac_objext; then
11274 ac_cv_have_decl_imaxabs=yes
11275 else
11276 $as_echo "$as_me: failed program was:" >&5
11277 sed 's/^/| /' conftest.$ac_ext >&5
11278
11279 ac_cv_have_decl_imaxabs=no
11280 fi
11281
11282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11283 fi
11284 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_imaxabs" >&5
11285 $as_echo "$ac_cv_have_decl_imaxabs" >&6; }
11286 if test $ac_cv_have_decl_imaxabs = yes; then
11287
11288 cat >>confdefs.h <<_ACEOF
11289 #define HAVE_DECL_IMAXABS 1
11290 _ACEOF
11291
11292
11293 else
11294 cat >>confdefs.h <<_ACEOF
11295 #define HAVE_DECL_IMAXABS 0
11296 _ACEOF
11297
11298
11299 fi
11300
11301
11302 { $as_echo "$as_me:$LINENO: checking whether imaxdiv is declared" >&5
11303 $as_echo_n "checking whether imaxdiv is declared... " >&6; }
11304 if test "${ac_cv_have_decl_imaxdiv+set}" = set; then
11305 $as_echo_n "(cached) " >&6
11306 else
11307 cat >conftest.$ac_ext <<_ACEOF
11308 /* confdefs.h. */
11309 _ACEOF
11310 cat confdefs.h >>conftest.$ac_ext
11311 cat >>conftest.$ac_ext <<_ACEOF
11312 /* end confdefs.h. */
11313 $ac_includes_default
11314 int
11315 main ()
11316 {
11317 #ifndef imaxdiv
11318 (void) imaxdiv;
11319 #endif
11320
11321 ;
11322 return 0;
11323 }
11324 _ACEOF
11325 rm -f conftest.$ac_objext
11326 if { (ac_try="$ac_compile"
11327 case "(($ac_try" in
11328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11329 *) ac_try_echo=$ac_try;;
11330 esac
11331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11332 $as_echo "$ac_try_echo") >&5
11333 (eval "$ac_compile") 2>conftest.er1
11334 ac_status=$?
11335 grep -v '^ *+' conftest.er1 >conftest.err
11336 rm -f conftest.er1
11337 cat conftest.err >&5
11338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); } && {
11340 test -z "$ac_c_werror_flag" ||
11341 test ! -s conftest.err
11342 } && test -s conftest.$ac_objext; then
11343 ac_cv_have_decl_imaxdiv=yes
11344 else
11345 $as_echo "$as_me: failed program was:" >&5
11346 sed 's/^/| /' conftest.$ac_ext >&5
11347
11348 ac_cv_have_decl_imaxdiv=no
11349 fi
11350
11351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11352 fi
11353 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_imaxdiv" >&5
11354 $as_echo "$ac_cv_have_decl_imaxdiv" >&6; }
11355 if test $ac_cv_have_decl_imaxdiv = yes; then
11356
11357 cat >>confdefs.h <<_ACEOF
11358 #define HAVE_DECL_IMAXDIV 1
11359 _ACEOF
11360
11361
11362 else
11363 cat >>confdefs.h <<_ACEOF
11364 #define HAVE_DECL_IMAXDIV 0
11365 _ACEOF
11366
11367
11368 fi
11369
11370
11371 { $as_echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
11372 $as_echo_n "checking whether strtoimax is declared... " >&6; }
11373 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
11374 $as_echo_n "(cached) " >&6
11375 else
11376 cat >conftest.$ac_ext <<_ACEOF
11377 /* confdefs.h. */
11378 _ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h. */
11382 $ac_includes_default
11383 int
11384 main ()
11385 {
11386 #ifndef strtoimax
11387 (void) strtoimax;
11388 #endif
11389
11390 ;
11391 return 0;
11392 }
11393 _ACEOF
11394 rm -f conftest.$ac_objext
11395 if { (ac_try="$ac_compile"
11396 case "(($ac_try" in
11397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398 *) ac_try_echo=$ac_try;;
11399 esac
11400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11401 $as_echo "$ac_try_echo") >&5
11402 (eval "$ac_compile") 2>conftest.er1
11403 ac_status=$?
11404 grep -v '^ *+' conftest.er1 >conftest.err
11405 rm -f conftest.er1
11406 cat conftest.err >&5
11407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); } && {
11409 test -z "$ac_c_werror_flag" ||
11410 test ! -s conftest.err
11411 } && test -s conftest.$ac_objext; then
11412 ac_cv_have_decl_strtoimax=yes
11413 else
11414 $as_echo "$as_me: failed program was:" >&5
11415 sed 's/^/| /' conftest.$ac_ext >&5
11416
11417 ac_cv_have_decl_strtoimax=no
11418 fi
11419
11420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11421 fi
11422 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
11423 $as_echo "$ac_cv_have_decl_strtoimax" >&6; }
11424 if test $ac_cv_have_decl_strtoimax = yes; then
11425
11426 cat >>confdefs.h <<_ACEOF
11427 #define HAVE_DECL_STRTOIMAX 1
11428 _ACEOF
11429
11430
11431 else
11432 cat >>confdefs.h <<_ACEOF
11433 #define HAVE_DECL_STRTOIMAX 0
11434 _ACEOF
11435
11436
11437 fi
11438
11439
11440 { $as_echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
11441 $as_echo_n "checking whether strtoumax is declared... " >&6; }
11442 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
11443 $as_echo_n "(cached) " >&6
11444 else
11445 cat >conftest.$ac_ext <<_ACEOF
11446 /* confdefs.h. */
11447 _ACEOF
11448 cat confdefs.h >>conftest.$ac_ext
11449 cat >>conftest.$ac_ext <<_ACEOF
11450 /* end confdefs.h. */
11451 $ac_includes_default
11452 int
11453 main ()
11454 {
11455 #ifndef strtoumax
11456 (void) strtoumax;
11457 #endif
11458
11459 ;
11460 return 0;
11461 }
11462 _ACEOF
11463 rm -f conftest.$ac_objext
11464 if { (ac_try="$ac_compile"
11465 case "(($ac_try" in
11466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11467 *) ac_try_echo=$ac_try;;
11468 esac
11469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11470 $as_echo "$ac_try_echo") >&5
11471 (eval "$ac_compile") 2>conftest.er1
11472 ac_status=$?
11473 grep -v '^ *+' conftest.er1 >conftest.err
11474 rm -f conftest.er1
11475 cat conftest.err >&5
11476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11477 (exit $ac_status); } && {
11478 test -z "$ac_c_werror_flag" ||
11479 test ! -s conftest.err
11480 } && test -s conftest.$ac_objext; then
11481 ac_cv_have_decl_strtoumax=yes
11482 else
11483 $as_echo "$as_me: failed program was:" >&5
11484 sed 's/^/| /' conftest.$ac_ext >&5
11485
11486 ac_cv_have_decl_strtoumax=no
11487 fi
11488
11489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11490 fi
11491 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
11492 $as_echo "$ac_cv_have_decl_strtoumax" >&6; }
11493 if test $ac_cv_have_decl_strtoumax = yes; then
11494
11495 cat >>confdefs.h <<_ACEOF
11496 #define HAVE_DECL_STRTOUMAX 1
11497 _ACEOF
11498
11499
11500 else
11501 cat >>confdefs.h <<_ACEOF
11502 #define HAVE_DECL_STRTOUMAX 0
11503 _ACEOF
11504
11505
11506 fi
11507
11508
11509
11510 GNULIB_IMAXABS=0;
11511 GNULIB_IMAXDIV=0;
11512 GNULIB_STRTOIMAX=0;
11513 GNULIB_STRTOUMAX=0;
11514 HAVE_DECL_IMAXABS=1;
11515 HAVE_DECL_IMAXDIV=1;
11516 HAVE_DECL_STRTOIMAX=1;
11517 HAVE_DECL_STRTOUMAX=1;
11518
11519
11520
11521
11522 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11523 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11524 if test "${am_cv_langinfo_codeset+set}" = set; then
11525 $as_echo_n "(cached) " >&6
11526 else
11527 cat >conftest.$ac_ext <<_ACEOF
11528 /* confdefs.h. */
11529 _ACEOF
11530 cat confdefs.h >>conftest.$ac_ext
11531 cat >>conftest.$ac_ext <<_ACEOF
11532 /* end confdefs.h. */
11533 #include <langinfo.h>
11534 int
11535 main ()
11536 {
11537 char* cs = nl_langinfo(CODESET); return !cs;
11538 ;
11539 return 0;
11540 }
11541 _ACEOF
11542 rm -f conftest.$ac_objext conftest$ac_exeext
11543 if { (ac_try="$ac_link"
11544 case "(($ac_try" in
11545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11546 *) ac_try_echo=$ac_try;;
11547 esac
11548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11549 $as_echo "$ac_try_echo") >&5
11550 (eval "$ac_link") 2>conftest.er1
11551 ac_status=$?
11552 grep -v '^ *+' conftest.er1 >conftest.err
11553 rm -f conftest.er1
11554 cat conftest.err >&5
11555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); } && {
11557 test -z "$ac_c_werror_flag" ||
11558 test ! -s conftest.err
11559 } && test -s conftest$ac_exeext && {
11560 test "$cross_compiling" = yes ||
11561 $as_test_x conftest$ac_exeext
11562 }; then
11563 am_cv_langinfo_codeset=yes
11564 else
11565 $as_echo "$as_me: failed program was:" >&5
11566 sed 's/^/| /' conftest.$ac_ext >&5
11567
11568 am_cv_langinfo_codeset=no
11569 fi
11570
11571 rm -rf conftest.dSYM
11572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11573 conftest$ac_exeext conftest.$ac_ext
11574
11575 fi
11576 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11577 $as_echo "$am_cv_langinfo_codeset" >&6; }
11578 if test $am_cv_langinfo_codeset = yes; then
11579
11580 cat >>confdefs.h <<\_ACEOF
11581 #define HAVE_LANGINFO_CODESET 1
11582 _ACEOF
11583
11584 fi
11585
11586 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11587 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
11588 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11589 $as_echo_n "(cached) " >&6
11590 else
11591 cat >conftest.$ac_ext <<_ACEOF
11592 /* confdefs.h. */
11593 _ACEOF
11594 cat confdefs.h >>conftest.$ac_ext
11595 cat >>conftest.$ac_ext <<_ACEOF
11596 /* end confdefs.h. */
11597 $ac_includes_default
11598 int
11599 main ()
11600 {
11601 #ifndef getc_unlocked
11602 (void) getc_unlocked;
11603 #endif
11604
11605 ;
11606 return 0;
11607 }
11608 _ACEOF
11609 rm -f conftest.$ac_objext
11610 if { (ac_try="$ac_compile"
11611 case "(($ac_try" in
11612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11613 *) ac_try_echo=$ac_try;;
11614 esac
11615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11616 $as_echo "$ac_try_echo") >&5
11617 (eval "$ac_compile") 2>conftest.er1
11618 ac_status=$?
11619 grep -v '^ *+' conftest.er1 >conftest.err
11620 rm -f conftest.er1
11621 cat conftest.err >&5
11622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); } && {
11624 test -z "$ac_c_werror_flag" ||
11625 test ! -s conftest.err
11626 } && test -s conftest.$ac_objext; then
11627 ac_cv_have_decl_getc_unlocked=yes
11628 else
11629 $as_echo "$as_me: failed program was:" >&5
11630 sed 's/^/| /' conftest.$ac_ext >&5
11631
11632 ac_cv_have_decl_getc_unlocked=no
11633 fi
11634
11635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11636 fi
11637 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
11638 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
11639 if test $ac_cv_have_decl_getc_unlocked = yes; then
11640
11641 cat >>confdefs.h <<_ACEOF
11642 #define HAVE_DECL_GETC_UNLOCKED 1
11643 _ACEOF
11644
11645
11646 else
11647 cat >>confdefs.h <<_ACEOF
11648 #define HAVE_DECL_GETC_UNLOCKED 0
11649 _ACEOF
11650
11651
11652 fi
11653
11654
11655
11656 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
11657 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >& 6; }
11658 if test "${ac_cv_gnu_library_2_1+set}" = set; then
11659 $as_echo_n "(cached) " >&6
11660 else
11661 cat >conftest.$ac_ext <<_ACEOF
11662 /* confdefs.h. */
11663 _ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h. */
11667
11668 #include <features.h>
11669 #ifdef __GNU_LIBRARY__
11670 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
11671 Lucky GNU user
11672 #endif
11673 #endif
11674
11675 _ACEOF
11676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11677 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
11678 ac_cv_gnu_library_2_1=yes
11679 else
11680 ac_cv_gnu_library_2_1=no
11681 fi
11682 rm -f conftest*
11683
11684
11685
11686 fi
11687 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
11688 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
11689
11690 GLIBC21="$ac_cv_gnu_library_2_1"
11691
11692
11693
11694 { $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
11695 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >& 6; }
11696 if test "${gl_cv_func_malloc_posix+set}" = set; then
11697 $as_echo_n "(cached) " >&6
11698 else
11699
11700 cat >conftest.$ac_ext <<_ACEOF
11701 /* confdefs.h. */
11702 _ACEOF
11703 cat confdefs.h >>conftest.$ac_ext
11704 cat >>conftest.$ac_ext <<_ACEOF
11705 /* end confdefs.h. */
11706
11707 int
11708 main ()
11709 {
11710 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
11711 choke me
11712 #endif
11713
11714 ;
11715 return 0;
11716 }
11717 _ACEOF
11718 rm -f conftest.$ac_objext
11719 if { (ac_try="$ac_compile"
11720 case "(($ac_try" in
11721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11722 *) ac_try_echo=$ac_try;;
11723 esac
11724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11725 $as_echo "$ac_try_echo") >&5
11726 (eval "$ac_compile") 2>conftest.er1
11727 ac_status=$?
11728 grep -v '^ *+' conftest.er1 >conftest.err
11729 rm -f conftest.er1
11730 cat conftest.err >&5
11731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); } && {
11733 test -z "$ac_c_werror_flag" ||
11734 test ! -s conftest.err
11735 } && test -s conftest.$ac_objext; then
11736 gl_cv_func_malloc_posix=yes
11737 else
11738 $as_echo "$as_me: failed program was:" >&5
11739 sed 's/^/| /' conftest.$ac_ext >&5
11740
11741 gl_cv_func_malloc_posix=no
11742 fi
11743
11744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11745
11746 fi
11747 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
11748 $as_echo "$gl_cv_func_malloc_posix" >&6; }
11749
11750
11751 GNULIB_MALLOC_POSIX=0;
11752 GNULIB_REALLOC_POSIX=0;
11753 GNULIB_CALLOC_POSIX=0;
11754 GNULIB_ATOLL=0;
11755 GNULIB_GETLOADAVG=0;
11756 GNULIB_GETSUBOPT=0;
11757 GNULIB_MKDTEMP=0;
11758 GNULIB_MKSTEMP=0;
11759 GNULIB_PUTENV=0;
11760 GNULIB_RANDOM_R=0;
11761 GNULIB_RPMATCH=0;
11762 GNULIB_SETENV=0;
11763 GNULIB_STRTOD=0;
11764 GNULIB_STRTOLL=0;
11765 GNULIB_STRTOULL=0;
11766 GNULIB_UNSETENV=0;
11767 HAVE_ATOLL=1;
11768 HAVE_CALLOC_POSIX=1;
11769 HAVE_GETSUBOPT=1;
11770 HAVE_MALLOC_POSIX=1;
11771 HAVE_MKDTEMP=1;
11772 HAVE_REALLOC_POSIX=1;
11773 HAVE_RANDOM_R=1;
11774 HAVE_RPMATCH=1;
11775 HAVE_SETENV=1;
11776 HAVE_STRTOD=1;
11777 HAVE_STRTOLL=1;
11778 HAVE_STRTOULL=1;
11779 HAVE_STRUCT_RANDOM_DATA=1;
11780 HAVE_SYS_LOADAVG_H=0;
11781 HAVE_UNSETENV=1;
11782 HAVE_DECL_GETLOADAVG=1;
11783 REPLACE_MKSTEMP=0;
11784 REPLACE_PUTENV=0;
11785 REPLACE_STRTOD=0;
11786 VOID_UNSETENV=0;
11787
11788
11789
11790
11791
11792 for ac_func in $ac_func_list
11793 do
11794 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11795 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11796 $as_echo_n "checking for $ac_func... " >&6; }
11797 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11798 $as_echo_n "(cached) " >&6
11799 else
11800 cat >conftest.$ac_ext <<_ACEOF
11801 /* confdefs.h. */
11802 _ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func .
11807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11808 #define $ac_func innocuous_$ac_func
11809
11810 /* System header to define __stub macros and hopefully few prototypes,
11811 which can conflict with char $ac_func (); below.
11812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11813 <limits.h> exists even on freestanding compilers. */
11814
11815 #ifdef __STDC__
11816 # include <limits.h>
11817 #else
11818 # include <assert.h>
11819 #endif
11820
11821 #undef $ac_func
11822
11823 /* Override any GCC internal prototype to avoid an error.
11824 Use char because int might match the return type of a GCC
11825 builtin and then its argument prototype would still apply. */
11826 #ifdef __cplusplus
11827 extern "C"
11828 #endif
11829 char $ac_func ();
11830 /* The GNU C library defines this for functions which it implements
11831 to always fail with ENOSYS. Some functions are actually named
11832 something starting with __ and the normal name is an alias. */
11833 #if defined __stub_$ac_func || defined __stub___$ac_func
11834 choke me
11835 #endif
11836
11837 int
11838 main ()
11839 {
11840 return $ac_func ();
11841 ;
11842 return 0;
11843 }
11844 _ACEOF
11845 rm -f conftest.$ac_objext conftest$ac_exeext
11846 if { (ac_try="$ac_link"
11847 case "(($ac_try" in
11848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11849 *) ac_try_echo=$ac_try;;
11850 esac
11851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11852 $as_echo "$ac_try_echo") >&5
11853 (eval "$ac_link") 2>conftest.er1
11854 ac_status=$?
11855 grep -v '^ *+' conftest.er1 >conftest.err
11856 rm -f conftest.er1
11857 cat conftest.err >&5
11858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } && {
11860 test -z "$ac_c_werror_flag" ||
11861 test ! -s conftest.err
11862 } && test -s conftest$ac_exeext && {
11863 test "$cross_compiling" = yes ||
11864 $as_test_x conftest$ac_exeext
11865 }; then
11866 eval "$as_ac_var=yes"
11867 else
11868 $as_echo "$as_me: failed program was:" >&5
11869 sed 's/^/| /' conftest.$ac_ext >&5
11870
11871 eval "$as_ac_var=no"
11872 fi
11873
11874 rm -rf conftest.dSYM
11875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11876 conftest$ac_exeext conftest.$ac_ext
11877 fi
11878 ac_res=`eval 'as_val=${'$as_ac_var'}
11879 $as_echo "$as_val"'`
11880 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11881 $as_echo "$ac_res" >&6; }
11882 if test `eval 'as_val=${'$as_ac_var'}
11883 $as_echo "$as_val"'` = yes; then
11884 cat >>confdefs.h <<_ACEOF
11885 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11886 _ACEOF
11887
11888 fi
11889 done
11890
11891
11892
11893
11894
11895
11896
11897 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
11898 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
11899 if test "${ac_cv_c_restrict+set}" = set; then
11900 $as_echo_n "(cached) " >&6
11901 else
11902 ac_cv_c_restrict=no
11903 # The order here caters to the fact that C++ does not require restrict.
11904 for ac_kw in __restrict __restrict__ _Restrict restrict; do
11905 cat >conftest.$ac_ext <<_ACEOF
11906 /* confdefs.h. */
11907 _ACEOF
11908 cat confdefs.h >>conftest.$ac_ext
11909 cat >>conftest.$ac_ext <<_ACEOF
11910 /* end confdefs.h. */
11911 typedef int * int_ptr;
11912 int foo (int_ptr $ac_kw ip) {
11913 return ip[0];
11914 }
11915 int
11916 main ()
11917 {
11918 int s[1];
11919 int * $ac_kw t = s;
11920 t[0] = 0;
11921 return foo(t)
11922 ;
11923 return 0;
11924 }
11925 _ACEOF
11926 rm -f conftest.$ac_objext
11927 if { (ac_try="$ac_compile"
11928 case "(($ac_try" in
11929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11930 *) ac_try_echo=$ac_try;;
11931 esac
11932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11933 $as_echo "$ac_try_echo") >&5
11934 (eval "$ac_compile") 2>conftest.er1
11935 ac_status=$?
11936 grep -v '^ *+' conftest.er1 >conftest.err
11937 rm -f conftest.er1
11938 cat conftest.err >&5
11939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } && {
11941 test -z "$ac_c_werror_flag" ||
11942 test ! -s conftest.err
11943 } && test -s conftest.$ac_objext; then
11944 ac_cv_c_restrict=$ac_kw
11945 else
11946 $as_echo "$as_me: failed program was:" >&5
11947 sed 's/^/| /' conftest.$ac_ext >&5
11948
11949
11950 fi
11951
11952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11953 test "$ac_cv_c_restrict" != no && break
11954 done
11955
11956 fi
11957 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
11958 $as_echo "$ac_cv_c_restrict" >&6; }
11959
11960
11961 case $ac_cv_c_restrict in
11962 restrict) ;;
11963 no) cat >>confdefs.h <<\_ACEOF
11964 #define restrict /**/
11965 _ACEOF
11966 ;;
11967 *) cat >>confdefs.h <<_ACEOF
11968 #define restrict $ac_cv_c_restrict
11969 _ACEOF
11970 ;;
11971 esac
11972
11973
11974 GNULIB_MEMMEM=0;
11975 GNULIB_MEMPCPY=0;
11976 GNULIB_MEMRCHR=0;
11977 GNULIB_RAWMEMCHR=0;
11978 GNULIB_STPCPY=0;
11979 GNULIB_STPNCPY=0;
11980 GNULIB_STRCHRNUL=0;
11981 GNULIB_STRDUP=0;
11982 GNULIB_STRNDUP=0;
11983 GNULIB_STRNLEN=0;
11984 GNULIB_STRPBRK=0;
11985 GNULIB_STRSEP=0;
11986 GNULIB_STRSTR=0;
11987 GNULIB_STRCASESTR=0;
11988 GNULIB_STRTOK_R=0;
11989 GNULIB_MBSLEN=0;
11990 GNULIB_MBSNLEN=0;
11991 GNULIB_MBSCHR=0;
11992 GNULIB_MBSRCHR=0;
11993 GNULIB_MBSSTR=0;
11994 GNULIB_MBSCASECMP=0;
11995 GNULIB_MBSNCASECMP=0;
11996 GNULIB_MBSPCASECMP=0;
11997 GNULIB_MBSCASESTR=0;
11998 GNULIB_MBSCSPN=0;
11999 GNULIB_MBSPBRK=0;
12000 GNULIB_MBSSPN=0;
12001 GNULIB_MBSSEP=0;
12002 GNULIB_MBSTOK_R=0;
12003 GNULIB_STRERROR=0;
12004 GNULIB_STRSIGNAL=0;
12005 GNULIB_STRVERSCMP=0;
12006 HAVE_DECL_MEMMEM=1;
12007 HAVE_MEMPCPY=1;
12008 HAVE_DECL_MEMRCHR=1;
12009 HAVE_RAWMEMCHR=1;
12010 HAVE_STPCPY=1;
12011 HAVE_STPNCPY=1;
12012 HAVE_STRCHRNUL=1;
12013 HAVE_DECL_STRDUP=1;
12014 HAVE_STRNDUP=1;
12015 HAVE_DECL_STRNDUP=1;
12016 HAVE_DECL_STRNLEN=1;
12017 HAVE_STRPBRK=1;
12018 HAVE_STRSEP=1;
12019 HAVE_STRCASESTR=1;
12020 HAVE_DECL_STRTOK_R=1;
12021 HAVE_DECL_STRERROR=1;
12022 HAVE_DECL_STRSIGNAL=1;
12023 HAVE_STRVERSCMP=1;
12024 REPLACE_MEMMEM=0;
12025 REPLACE_STRDUP=0;
12026 REPLACE_STRSTR=0;
12027 REPLACE_STRCASESTR=0;
12028 REPLACE_STRERROR=0;
12029 REPLACE_STRSIGNAL=0;
12030
12031
12032
12033
12034
12035
12036 if test -z "$ERRNO_H"; then
12037 { $as_echo "$as_me:$LINENO: checking for working strerror function" >&5
12038 $as_echo_n "checking for working strerror function... " >&6; }
12039 if test "${gl_cv_func_working_strerror+set}" = set; then
12040 $as_echo_n "(cached) " >&6
12041 else
12042 if test "$cross_compiling" = yes; then
12043 cat >conftest.$ac_ext <<_ACEOF
12044 /* confdefs.h. */
12045 _ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h. */
12049 #include <string.h>
12050
12051 int
12052 main ()
12053 {
12054 return !*strerror (-2);
12055 ;
12056 return 0;
12057 }
12058 _ACEOF
12059 rm -f conftest.$ac_objext
12060 if { (ac_try="$ac_compile"
12061 case "(($ac_try" in
12062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12063 *) ac_try_echo=$ac_try;;
12064 esac
12065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12066 $as_echo "$ac_try_echo") >&5
12067 (eval "$ac_compile") 2>conftest.er1
12068 ac_status=$?
12069 grep -v '^ *+' conftest.er1 >conftest.err
12070 rm -f conftest.er1
12071 cat conftest.err >&5
12072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); } && {
12074 test -z "$ac_c_werror_flag" ||
12075 test ! -s conftest.err
12076 } && test -s conftest.$ac_objext; then
12077 gl_cv_func_working_strerror=yes
12078 else
12079 $as_echo "$as_me: failed program was:" >&5
12080 sed 's/^/| /' conftest.$ac_ext >&5
12081
12082 gl_cv_func_working_strerror=no
12083 fi
12084
12085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12086
12087 else
12088 cat >conftest.$ac_ext <<_ACEOF
12089 /* confdefs.h. */
12090 _ACEOF
12091 cat confdefs.h >>conftest.$ac_ext
12092 cat >>conftest.$ac_ext <<_ACEOF
12093 /* end confdefs.h. */
12094 #include <string.h>
12095
12096 int
12097 main ()
12098 {
12099 return !*strerror (-2);
12100 ;
12101 return 0;
12102 }
12103 _ACEOF
12104 rm -f conftest$ac_exeext
12105 if { (ac_try="$ac_link"
12106 case "(($ac_try" in
12107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108 *) ac_try_echo=$ac_try;;
12109 esac
12110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12111 $as_echo "$ac_try_echo") >&5
12112 (eval "$ac_link") 2>&5
12113 ac_status=$?
12114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12116 { (case "(($ac_try" in
12117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118 *) ac_try_echo=$ac_try;;
12119 esac
12120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12121 $as_echo "$ac_try_echo") >&5
12122 (eval "$ac_try") 2>&5
12123 ac_status=$?
12124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); }; }; then
12126 gl_cv_func_working_strerror=yes
12127 else
12128 $as_echo "$as_me: program exited with status $ac_status" >&5
12129 $as_echo "$as_me: failed program was:" >&5
12130 sed 's/^/| /' conftest.$ac_ext >&5
12131
12132 ( exit $ac_status )
12133 gl_cv_func_working_strerror=no
12134 fi
12135 rm -rf conftest.dSYM
12136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$a c_objext conftest.$ac_ext
12137 fi
12138
12139
12140
12141 fi
12142 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_strerror" >&5
12143 $as_echo "$gl_cv_func_working_strerror" >&6; }
12144 if test $gl_cv_func_working_strerror = no; then
12145 REPLACE_STRERROR=1
12146 fi
12147 else
12148 REPLACE_STRERROR=1
12149 fi
12150 if test $REPLACE_STRERROR = 1; then
12151
12152 { $as_echo "$as_me:$LINENO: checking whether strerror is declared" >&5
12153 $as_echo_n "checking whether strerror is declared... " >&6; }
12154 if test "${ac_cv_have_decl_strerror+set}" = set; then
12155 $as_echo_n "(cached) " >&6
12156 else
12157 cat >conftest.$ac_ext <<_ACEOF
12158 /* confdefs.h. */
12159 _ACEOF
12160 cat confdefs.h >>conftest.$ac_ext
12161 cat >>conftest.$ac_ext <<_ACEOF
12162 /* end confdefs.h. */
12163 $ac_includes_default
12164 int
12165 main ()
12166 {
12167 #ifndef strerror
12168 (void) strerror;
12169 #endif
12170
12171 ;
12172 return 0;
12173 }
12174 _ACEOF
12175 rm -f conftest.$ac_objext
12176 if { (ac_try="$ac_compile"
12177 case "(($ac_try" in
12178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179 *) ac_try_echo=$ac_try;;
12180 esac
12181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12182 $as_echo "$ac_try_echo") >&5
12183 (eval "$ac_compile") 2>conftest.er1
12184 ac_status=$?
12185 grep -v '^ *+' conftest.er1 >conftest.err
12186 rm -f conftest.er1
12187 cat conftest.err >&5
12188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); } && {
12190 test -z "$ac_c_werror_flag" ||
12191 test ! -s conftest.err
12192 } && test -s conftest.$ac_objext; then
12193 ac_cv_have_decl_strerror=yes
12194 else
12195 $as_echo "$as_me: failed program was:" >&5
12196 sed 's/^/| /' conftest.$ac_ext >&5
12197
12198 ac_cv_have_decl_strerror=no
12199 fi
12200
12201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12202 fi
12203 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
12204 $as_echo "$ac_cv_have_decl_strerror" >&6; }
12205 if test $ac_cv_have_decl_strerror = yes; then
12206
12207 cat >>confdefs.h <<_ACEOF
12208 #define HAVE_DECL_STRERROR 1
12209 _ACEOF
12210
12211
12212 else
12213 cat >>confdefs.h <<_ACEOF
12214 #define HAVE_DECL_STRERROR 0
12215 _ACEOF
12216
12217
12218 fi
12219
12220
12221
12222
12223
12224
12225
12226
12227 if test $ac_cv_header_sys_socket_h != yes; then
12228
12229 for ac_header in winsock2.h
12230 do
12231 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12233 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12234 $as_echo_n "checking for $ac_header... " >&6; }
12235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12236 $as_echo_n "(cached) " >&6
12237 fi
12238 ac_res=`eval 'as_val=${'$as_ac_Header'}
12239 $as_echo "$as_val"'`
12240 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12241 $as_echo "$ac_res" >&6; }
12242 else
12243 # Is the header compilable?
12244 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12245 $as_echo_n "checking $ac_header usability... " >&6; }
12246 cat >conftest.$ac_ext <<_ACEOF
12247 /* confdefs.h. */
12248 _ACEOF
12249 cat confdefs.h >>conftest.$ac_ext
12250 cat >>conftest.$ac_ext <<_ACEOF
12251 /* end confdefs.h. */
12252 $ac_includes_default
12253 #include <$ac_header>
12254 _ACEOF
12255 rm -f conftest.$ac_objext
12256 if { (ac_try="$ac_compile"
12257 case "(($ac_try" in
12258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12259 *) ac_try_echo=$ac_try;;
12260 esac
12261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12262 $as_echo "$ac_try_echo") >&5
12263 (eval "$ac_compile") 2>conftest.er1
12264 ac_status=$?
12265 grep -v '^ *+' conftest.er1 >conftest.err
12266 rm -f conftest.er1
12267 cat conftest.err >&5
12268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } && {
12270 test -z "$ac_c_werror_flag" ||
12271 test ! -s conftest.err
12272 } && test -s conftest.$ac_objext; then
12273 ac_header_compiler=yes
12274 else
12275 $as_echo "$as_me: failed program was:" >&5
12276 sed 's/^/| /' conftest.$ac_ext >&5
12277
12278 ac_header_compiler=no
12279 fi
12280
12281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12282 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12283 $as_echo "$ac_header_compiler" >&6; }
12284
12285 # Is the header present?
12286 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12287 $as_echo_n "checking $ac_header presence... " >&6; }
12288 cat >conftest.$ac_ext <<_ACEOF
12289 /* confdefs.h. */
12290 _ACEOF
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h. */
12294 #include <$ac_header>
12295 _ACEOF
12296 if { (ac_try="$ac_cpp conftest.$ac_ext"
12297 case "(($ac_try" in
12298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12299 *) ac_try_echo=$ac_try;;
12300 esac
12301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12302 $as_echo "$ac_try_echo") >&5
12303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12304 ac_status=$?
12305 grep -v '^ *+' conftest.er1 >conftest.err
12306 rm -f conftest.er1
12307 cat conftest.err >&5
12308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); } >/dev/null && {
12310 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12311 test ! -s conftest.err
12312 }; then
12313 ac_header_preproc=yes
12314 else
12315 $as_echo "$as_me: failed program was:" >&5
12316 sed 's/^/| /' conftest.$ac_ext >&5
12317
12318 ac_header_preproc=no
12319 fi
12320
12321 rm -f conftest.err conftest.$ac_ext
12322 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12323 $as_echo "$ac_header_preproc" >&6; }
12324
12325 # So? What about this header?
12326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12327 yes:no: )
12328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, r ejected by the preprocessor!" >&5
12329 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compile r's result" >&5
12331 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >& 2;}
12332 ac_header_preproc=yes
12333 ;;
12334 no:yes:* )
12335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compi led" >&5
12336 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prere quisite headers?" >&5
12338 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite header s?" >&2;}
12339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentat ion" >&5
12340 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But C annot Be Compiled\"" >&5
12342 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compi led\"" >&2;}
12343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preproc essor's result" >&5
12344 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result " >&2;}
12345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12346 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take pre cedence" >&2;}
12347 ( cat <<\_ASBOX
12348 ## -------------------------------- ##
12349 ## Report this to bug-bison@gnu.org ##
12350 ## -------------------------------- ##
12351 _ASBOX
12352 ) | sed "s/^/$as_me: WARNING: /" >&2
12353 ;;
12354 esac
12355 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12356 $as_echo_n "checking for $ac_header... " >&6; }
12357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12358 $as_echo_n "(cached) " >&6
12359 else
12360 eval "$as_ac_Header=\$ac_header_preproc"
12361 fi
12362 ac_res=`eval 'as_val=${'$as_ac_Header'}
12363 $as_echo "$as_val"'`
12364 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12365 $as_echo "$ac_res" >&6; }
12366
12367 fi
12368 if test `eval 'as_val=${'$as_ac_Header'}
12369 $as_echo "$as_val"'` = yes; then
12370 cat >>confdefs.h <<_ACEOF
12371 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12372 _ACEOF
12373
12374 fi
12375
12376 done
12377
12378 fi
12379
12380 fi
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398 if test $gl_cv_have_include_next = yes; then
12399 gl_cv_next_string_h='<'string.h'>'
12400 else
12401 { $as_echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
12402 $as_echo_n "checking absolute name of <string.h>... " >&6; }
12403 if test "${gl_cv_next_string_h+set}" = set; then
12404 $as_echo_n "(cached) " >&6
12405 else
12406
12407 if test $ac_cv_header_string_h = yes; then
12408 cat >conftest.$ac_ext <<_ACEOF
12409 /* confdefs.h. */
12410 _ACEOF
12411 cat confdefs.h >>conftest.$ac_ext
12412 cat >>conftest.$ac_ext <<_ACEOF
12413 /* end confdefs.h. */
12414 #include <string.h>
12415
12416 _ACEOF
12417 case "$host_ os" in
12418 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12419 *) gl_absname_cpp="$ac_cpp" ;;
12420 esac
12421 gl_cv_next_string_h='"'`(eval "$gl_absname_c pp conftest.$ac_ext") 2>&5 |
12422 sed -n '\#/string.h#{
12423 s#.*"\(.*/string.h\)".*#\1#
12424 s#^/[^/]#//&#
12425 p
12426 q
12427 }'`'"'
12428 else
12429 gl_cv_next_string_h='<'string.h'>'
12430 fi
12431
12432 fi
12433 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
12434 $as_echo "$gl_cv_next_string_h" >&6; }
12435 fi
12436 NEXT_STRING_H=$gl_cv_next_string_h
12437
12438
12439
12440
12441 { $as_echo "$as_me:$LINENO: checking whether strndup is declared" >&5
12442 $as_echo_n "checking whether strndup is declared... " >&6; }
12443 if test "${ac_cv_have_decl_strndup+set}" = set; then
12444 $as_echo_n "(cached) " >&6
12445 else
12446 cat >conftest.$ac_ext <<_ACEOF
12447 /* confdefs.h. */
12448 _ACEOF
12449 cat confdefs.h >>conftest.$ac_ext
12450 cat >>conftest.$ac_ext <<_ACEOF
12451 /* end confdefs.h. */
12452 $ac_includes_default
12453 int
12454 main ()
12455 {
12456 #ifndef strndup
12457 (void) strndup;
12458 #endif
12459
12460 ;
12461 return 0;
12462 }
12463 _ACEOF
12464 rm -f conftest.$ac_objext
12465 if { (ac_try="$ac_compile"
12466 case "(($ac_try" in
12467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12468 *) ac_try_echo=$ac_try;;
12469 esac
12470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12471 $as_echo "$ac_try_echo") >&5
12472 (eval "$ac_compile") 2>conftest.er1
12473 ac_status=$?
12474 grep -v '^ *+' conftest.er1 >conftest.err
12475 rm -f conftest.er1
12476 cat conftest.err >&5
12477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); } && {
12479 test -z "$ac_c_werror_flag" ||
12480 test ! -s conftest.err
12481 } && test -s conftest.$ac_objext; then
12482 ac_cv_have_decl_strndup=yes
12483 else
12484 $as_echo "$as_me: failed program was:" >&5
12485 sed 's/^/| /' conftest.$ac_ext >&5
12486
12487 ac_cv_have_decl_strndup=no
12488 fi
12489
12490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12491 fi
12492 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
12493 $as_echo "$ac_cv_have_decl_strndup" >&6; }
12494 if test $ac_cv_have_decl_strndup = yes; then
12495
12496 cat >>confdefs.h <<_ACEOF
12497 #define HAVE_DECL_STRNDUP 1
12498 _ACEOF
12499
12500
12501 else
12502 cat >>confdefs.h <<_ACEOF
12503 #define HAVE_DECL_STRNDUP 0
12504 _ACEOF
12505
12506
12507 fi
12508
12509
12510 { $as_echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
12511 $as_echo_n "checking whether strnlen is declared... " >&6; }
12512 if test "${ac_cv_have_decl_strnlen+set}" = set; then
12513 $as_echo_n "(cached) " >&6
12514 else
12515 cat >conftest.$ac_ext <<_ACEOF
12516 /* confdefs.h. */
12517 _ACEOF
12518 cat confdefs.h >>conftest.$ac_ext
12519 cat >>conftest.$ac_ext <<_ACEOF
12520 /* end confdefs.h. */
12521 $ac_includes_default
12522 int
12523 main ()
12524 {
12525 #ifndef strnlen
12526 (void) strnlen;
12527 #endif
12528
12529 ;
12530 return 0;
12531 }
12532 _ACEOF
12533 rm -f conftest.$ac_objext
12534 if { (ac_try="$ac_compile"
12535 case "(($ac_try" in
12536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12537 *) ac_try_echo=$ac_try;;
12538 esac
12539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12540 $as_echo "$ac_try_echo") >&5
12541 (eval "$ac_compile") 2>conftest.er1
12542 ac_status=$?
12543 grep -v '^ *+' conftest.er1 >conftest.err
12544 rm -f conftest.er1
12545 cat conftest.err >&5
12546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } && {
12548 test -z "$ac_c_werror_flag" ||
12549 test ! -s conftest.err
12550 } && test -s conftest.$ac_objext; then
12551 ac_cv_have_decl_strnlen=yes
12552 else
12553 $as_echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.$ac_ext >&5
12555
12556 ac_cv_have_decl_strnlen=no
12557 fi
12558
12559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12560 fi
12561 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
12562 $as_echo "$ac_cv_have_decl_strnlen" >&6; }
12563 if test $ac_cv_have_decl_strnlen = yes; then
12564
12565 cat >>confdefs.h <<_ACEOF
12566 #define HAVE_DECL_STRNLEN 1
12567 _ACEOF
12568
12569
12570 else
12571 cat >>confdefs.h <<_ACEOF
12572 #define HAVE_DECL_STRNLEN 0
12573 _ACEOF
12574
12575
12576 fi
12577
12578
12579
12580
12581
12582
12583 { $as_echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
12584 $as_echo_n "checking whether clearerr_unlocked is declared... " >&6; }
12585 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
12586 $as_echo_n "(cached) " >&6
12587 else
12588 cat >conftest.$ac_ext <<_ACEOF
12589 /* confdefs.h. */
12590 _ACEOF
12591 cat confdefs.h >>conftest.$ac_ext
12592 cat >>conftest.$ac_ext <<_ACEOF
12593 /* end confdefs.h. */
12594 $ac_includes_default
12595 int
12596 main ()
12597 {
12598 #ifndef clearerr_unlocked
12599 (void) clearerr_unlocked;
12600 #endif
12601
12602 ;
12603 return 0;
12604 }
12605 _ACEOF
12606 rm -f conftest.$ac_objext
12607 if { (ac_try="$ac_compile"
12608 case "(($ac_try" in
12609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12611 esac
12612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12613 $as_echo "$ac_try_echo") >&5
12614 (eval "$ac_compile") 2>conftest.er1
12615 ac_status=$?
12616 grep -v '^ *+' conftest.er1 >conftest.err
12617 rm -f conftest.er1
12618 cat conftest.err >&5
12619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } && {
12621 test -z "$ac_c_werror_flag" ||
12622 test ! -s conftest.err
12623 } && test -s conftest.$ac_objext; then
12624 ac_cv_have_decl_clearerr_unlocked=yes
12625 else
12626 $as_echo "$as_me: failed program was:" >&5
12627 sed 's/^/| /' conftest.$ac_ext >&5
12628
12629 ac_cv_have_decl_clearerr_unlocked=no
12630 fi
12631
12632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12633 fi
12634 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
12635 $as_echo "$ac_cv_have_decl_clearerr_unlocked" >&6; }
12636 if test $ac_cv_have_decl_clearerr_unlocked = yes; then
12637
12638 cat >>confdefs.h <<_ACEOF
12639 #define HAVE_DECL_CLEARERR_UNLOCKED 1
12640 _ACEOF
12641
12642
12643 else
12644 cat >>confdefs.h <<_ACEOF
12645 #define HAVE_DECL_CLEARERR_UNLOCKED 0
12646 _ACEOF
12647
12648
12649 fi
12650
12651
12652 { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
12653 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
12654 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
12655 $as_echo_n "(cached) " >&6
12656 else
12657 cat >conftest.$ac_ext <<_ACEOF
12658 /* confdefs.h. */
12659 _ACEOF
12660 cat confdefs.h >>conftest.$ac_ext
12661 cat >>conftest.$ac_ext <<_ACEOF
12662 /* end confdefs.h. */
12663 $ac_includes_default
12664 int
12665 main ()
12666 {
12667 #ifndef feof_unlocked
12668 (void) feof_unlocked;
12669 #endif
12670
12671 ;
12672 return 0;
12673 }
12674 _ACEOF
12675 rm -f conftest.$ac_objext
12676 if { (ac_try="$ac_compile"
12677 case "(($ac_try" in
12678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12679 *) ac_try_echo=$ac_try;;
12680 esac
12681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12682 $as_echo "$ac_try_echo") >&5
12683 (eval "$ac_compile") 2>conftest.er1
12684 ac_status=$?
12685 grep -v '^ *+' conftest.er1 >conftest.err
12686 rm -f conftest.er1
12687 cat conftest.err >&5
12688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); } && {
12690 test -z "$ac_c_werror_flag" ||
12691 test ! -s conftest.err
12692 } && test -s conftest.$ac_objext; then
12693 ac_cv_have_decl_feof_unlocked=yes
12694 else
12695 $as_echo "$as_me: failed program was:" >&5
12696 sed 's/^/| /' conftest.$ac_ext >&5
12697
12698 ac_cv_have_decl_feof_unlocked=no
12699 fi
12700
12701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12702 fi
12703 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
12704 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
12705 if test $ac_cv_have_decl_feof_unlocked = yes; then
12706
12707 cat >>confdefs.h <<_ACEOF
12708 #define HAVE_DECL_FEOF_UNLOCKED 1
12709 _ACEOF
12710
12711
12712 else
12713 cat >>confdefs.h <<_ACEOF
12714 #define HAVE_DECL_FEOF_UNLOCKED 0
12715 _ACEOF
12716
12717
12718 fi
12719
12720
12721 { $as_echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
12722 $as_echo_n "checking whether ferror_unlocked is declared... " >&6; }
12723 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
12724 $as_echo_n "(cached) " >&6
12725 else
12726 cat >conftest.$ac_ext <<_ACEOF
12727 /* confdefs.h. */
12728 _ACEOF
12729 cat confdefs.h >>conftest.$ac_ext
12730 cat >>conftest.$ac_ext <<_ACEOF
12731 /* end confdefs.h. */
12732 $ac_includes_default
12733 int
12734 main ()
12735 {
12736 #ifndef ferror_unlocked
12737 (void) ferror_unlocked;
12738 #endif
12739
12740 ;
12741 return 0;
12742 }
12743 _ACEOF
12744 rm -f conftest.$ac_objext
12745 if { (ac_try="$ac_compile"
12746 case "(($ac_try" in
12747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12748 *) ac_try_echo=$ac_try;;
12749 esac
12750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12751 $as_echo "$ac_try_echo") >&5
12752 (eval "$ac_compile") 2>conftest.er1
12753 ac_status=$?
12754 grep -v '^ *+' conftest.er1 >conftest.err
12755 rm -f conftest.er1
12756 cat conftest.err >&5
12757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); } && {
12759 test -z "$ac_c_werror_flag" ||
12760 test ! -s conftest.err
12761 } && test -s conftest.$ac_objext; then
12762 ac_cv_have_decl_ferror_unlocked=yes
12763 else
12764 $as_echo "$as_me: failed program was:" >&5
12765 sed 's/^/| /' conftest.$ac_ext >&5
12766
12767 ac_cv_have_decl_ferror_unlocked=no
12768 fi
12769
12770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12771 fi
12772 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
12773 $as_echo "$ac_cv_have_decl_ferror_unlocked" >&6; }
12774 if test $ac_cv_have_decl_ferror_unlocked = yes; then
12775
12776 cat >>confdefs.h <<_ACEOF
12777 #define HAVE_DECL_FERROR_UNLOCKED 1
12778 _ACEOF
12779
12780
12781 else
12782 cat >>confdefs.h <<_ACEOF
12783 #define HAVE_DECL_FERROR_UNLOCKED 0
12784 _ACEOF
12785
12786
12787 fi
12788
12789
12790 { $as_echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
12791 $as_echo_n "checking whether fflush_unlocked is declared... " >&6; }
12792 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
12793 $as_echo_n "(cached) " >&6
12794 else
12795 cat >conftest.$ac_ext <<_ACEOF
12796 /* confdefs.h. */
12797 _ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h. */
12801 $ac_includes_default
12802 int
12803 main ()
12804 {
12805 #ifndef fflush_unlocked
12806 (void) fflush_unlocked;
12807 #endif
12808
12809 ;
12810 return 0;
12811 }
12812 _ACEOF
12813 rm -f conftest.$ac_objext
12814 if { (ac_try="$ac_compile"
12815 case "(($ac_try" in
12816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12817 *) ac_try_echo=$ac_try;;
12818 esac
12819 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12820 $as_echo "$ac_try_echo") >&5
12821 (eval "$ac_compile") 2>conftest.er1
12822 ac_status=$?
12823 grep -v '^ *+' conftest.er1 >conftest.err
12824 rm -f conftest.er1
12825 cat conftest.err >&5
12826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12827 (exit $ac_status); } && {
12828 test -z "$ac_c_werror_flag" ||
12829 test ! -s conftest.err
12830 } && test -s conftest.$ac_objext; then
12831 ac_cv_have_decl_fflush_unlocked=yes
12832 else
12833 $as_echo "$as_me: failed program was:" >&5
12834 sed 's/^/| /' conftest.$ac_ext >&5
12835
12836 ac_cv_have_decl_fflush_unlocked=no
12837 fi
12838
12839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12840 fi
12841 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
12842 $as_echo "$ac_cv_have_decl_fflush_unlocked" >&6; }
12843 if test $ac_cv_have_decl_fflush_unlocked = yes; then
12844
12845 cat >>confdefs.h <<_ACEOF
12846 #define HAVE_DECL_FFLUSH_UNLOCKED 1
12847 _ACEOF
12848
12849
12850 else
12851 cat >>confdefs.h <<_ACEOF
12852 #define HAVE_DECL_FFLUSH_UNLOCKED 0
12853 _ACEOF
12854
12855
12856 fi
12857
12858
12859 { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
12860 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
12861 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
12862 $as_echo_n "(cached) " >&6
12863 else
12864 cat >conftest.$ac_ext <<_ACEOF
12865 /* confdefs.h. */
12866 _ACEOF
12867 cat confdefs.h >>conftest.$ac_ext
12868 cat >>conftest.$ac_ext <<_ACEOF
12869 /* end confdefs.h. */
12870 $ac_includes_default
12871 int
12872 main ()
12873 {
12874 #ifndef fgets_unlocked
12875 (void) fgets_unlocked;
12876 #endif
12877
12878 ;
12879 return 0;
12880 }
12881 _ACEOF
12882 rm -f conftest.$ac_objext
12883 if { (ac_try="$ac_compile"
12884 case "(($ac_try" in
12885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886 *) ac_try_echo=$ac_try;;
12887 esac
12888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12889 $as_echo "$ac_try_echo") >&5
12890 (eval "$ac_compile") 2>conftest.er1
12891 ac_status=$?
12892 grep -v '^ *+' conftest.er1 >conftest.err
12893 rm -f conftest.er1
12894 cat conftest.err >&5
12895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896 (exit $ac_status); } && {
12897 test -z "$ac_c_werror_flag" ||
12898 test ! -s conftest.err
12899 } && test -s conftest.$ac_objext; then
12900 ac_cv_have_decl_fgets_unlocked=yes
12901 else
12902 $as_echo "$as_me: failed program was:" >&5
12903 sed 's/^/| /' conftest.$ac_ext >&5
12904
12905 ac_cv_have_decl_fgets_unlocked=no
12906 fi
12907
12908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12909 fi
12910 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
12911 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
12912 if test $ac_cv_have_decl_fgets_unlocked = yes; then
12913
12914 cat >>confdefs.h <<_ACEOF
12915 #define HAVE_DECL_FGETS_UNLOCKED 1
12916 _ACEOF
12917
12918
12919 else
12920 cat >>confdefs.h <<_ACEOF
12921 #define HAVE_DECL_FGETS_UNLOCKED 0
12922 _ACEOF
12923
12924
12925 fi
12926
12927
12928 { $as_echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
12929 $as_echo_n "checking whether fputc_unlocked is declared... " >&6; }
12930 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
12931 $as_echo_n "(cached) " >&6
12932 else
12933 cat >conftest.$ac_ext <<_ACEOF
12934 /* confdefs.h. */
12935 _ACEOF
12936 cat confdefs.h >>conftest.$ac_ext
12937 cat >>conftest.$ac_ext <<_ACEOF
12938 /* end confdefs.h. */
12939 $ac_includes_default
12940 int
12941 main ()
12942 {
12943 #ifndef fputc_unlocked
12944 (void) fputc_unlocked;
12945 #endif
12946
12947 ;
12948 return 0;
12949 }
12950 _ACEOF
12951 rm -f conftest.$ac_objext
12952 if { (ac_try="$ac_compile"
12953 case "(($ac_try" in
12954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12955 *) ac_try_echo=$ac_try;;
12956 esac
12957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12958 $as_echo "$ac_try_echo") >&5
12959 (eval "$ac_compile") 2>conftest.er1
12960 ac_status=$?
12961 grep -v '^ *+' conftest.er1 >conftest.err
12962 rm -f conftest.er1
12963 cat conftest.err >&5
12964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); } && {
12966 test -z "$ac_c_werror_flag" ||
12967 test ! -s conftest.err
12968 } && test -s conftest.$ac_objext; then
12969 ac_cv_have_decl_fputc_unlocked=yes
12970 else
12971 $as_echo "$as_me: failed program was:" >&5
12972 sed 's/^/| /' conftest.$ac_ext >&5
12973
12974 ac_cv_have_decl_fputc_unlocked=no
12975 fi
12976
12977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12978 fi
12979 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
12980 $as_echo "$ac_cv_have_decl_fputc_unlocked" >&6; }
12981 if test $ac_cv_have_decl_fputc_unlocked = yes; then
12982
12983 cat >>confdefs.h <<_ACEOF
12984 #define HAVE_DECL_FPUTC_UNLOCKED 1
12985 _ACEOF
12986
12987
12988 else
12989 cat >>confdefs.h <<_ACEOF
12990 #define HAVE_DECL_FPUTC_UNLOCKED 0
12991 _ACEOF
12992
12993
12994 fi
12995
12996
12997 { $as_echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
12998 $as_echo_n "checking whether fputs_unlocked is declared... " >&6; }
12999 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
13000 $as_echo_n "(cached) " >&6
13001 else
13002 cat >conftest.$ac_ext <<_ACEOF
13003 /* confdefs.h. */
13004 _ACEOF
13005 cat confdefs.h >>conftest.$ac_ext
13006 cat >>conftest.$ac_ext <<_ACEOF
13007 /* end confdefs.h. */
13008 $ac_includes_default
13009 int
13010 main ()
13011 {
13012 #ifndef fputs_unlocked
13013 (void) fputs_unlocked;
13014 #endif
13015
13016 ;
13017 return 0;
13018 }
13019 _ACEOF
13020 rm -f conftest.$ac_objext
13021 if { (ac_try="$ac_compile"
13022 case "(($ac_try" in
13023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13024 *) ac_try_echo=$ac_try;;
13025 esac
13026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13027 $as_echo "$ac_try_echo") >&5
13028 (eval "$ac_compile") 2>conftest.er1
13029 ac_status=$?
13030 grep -v '^ *+' conftest.er1 >conftest.err
13031 rm -f conftest.er1
13032 cat conftest.err >&5
13033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); } && {
13035 test -z "$ac_c_werror_flag" ||
13036 test ! -s conftest.err
13037 } && test -s conftest.$ac_objext; then
13038 ac_cv_have_decl_fputs_unlocked=yes
13039 else
13040 $as_echo "$as_me: failed program was:" >&5
13041 sed 's/^/| /' conftest.$ac_ext >&5
13042
13043 ac_cv_have_decl_fputs_unlocked=no
13044 fi
13045
13046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13047 fi
13048 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
13049 $as_echo "$ac_cv_have_decl_fputs_unlocked" >&6; }
13050 if test $ac_cv_have_decl_fputs_unlocked = yes; then
13051
13052 cat >>confdefs.h <<_ACEOF
13053 #define HAVE_DECL_FPUTS_UNLOCKED 1
13054 _ACEOF
13055
13056
13057 else
13058 cat >>confdefs.h <<_ACEOF
13059 #define HAVE_DECL_FPUTS_UNLOCKED 0
13060 _ACEOF
13061
13062
13063 fi
13064
13065
13066 { $as_echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
13067 $as_echo_n "checking whether fread_unlocked is declared... " >&6; }
13068 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
13069 $as_echo_n "(cached) " >&6
13070 else
13071 cat >conftest.$ac_ext <<_ACEOF
13072 /* confdefs.h. */
13073 _ACEOF
13074 cat confdefs.h >>conftest.$ac_ext
13075 cat >>conftest.$ac_ext <<_ACEOF
13076 /* end confdefs.h. */
13077 $ac_includes_default
13078 int
13079 main ()
13080 {
13081 #ifndef fread_unlocked
13082 (void) fread_unlocked;
13083 #endif
13084
13085 ;
13086 return 0;
13087 }
13088 _ACEOF
13089 rm -f conftest.$ac_objext
13090 if { (ac_try="$ac_compile"
13091 case "(($ac_try" in
13092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13093 *) ac_try_echo=$ac_try;;
13094 esac
13095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13096 $as_echo "$ac_try_echo") >&5
13097 (eval "$ac_compile") 2>conftest.er1
13098 ac_status=$?
13099 grep -v '^ *+' conftest.er1 >conftest.err
13100 rm -f conftest.er1
13101 cat conftest.err >&5
13102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } && {
13104 test -z "$ac_c_werror_flag" ||
13105 test ! -s conftest.err
13106 } && test -s conftest.$ac_objext; then
13107 ac_cv_have_decl_fread_unlocked=yes
13108 else
13109 $as_echo "$as_me: failed program was:" >&5
13110 sed 's/^/| /' conftest.$ac_ext >&5
13111
13112 ac_cv_have_decl_fread_unlocked=no
13113 fi
13114
13115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13116 fi
13117 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
13118 $as_echo "$ac_cv_have_decl_fread_unlocked" >&6; }
13119 if test $ac_cv_have_decl_fread_unlocked = yes; then
13120
13121 cat >>confdefs.h <<_ACEOF
13122 #define HAVE_DECL_FREAD_UNLOCKED 1
13123 _ACEOF
13124
13125
13126 else
13127 cat >>confdefs.h <<_ACEOF
13128 #define HAVE_DECL_FREAD_UNLOCKED 0
13129 _ACEOF
13130
13131
13132 fi
13133
13134
13135 { $as_echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
13136 $as_echo_n "checking whether fwrite_unlocked is declared... " >&6; }
13137 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
13138 $as_echo_n "(cached) " >&6
13139 else
13140 cat >conftest.$ac_ext <<_ACEOF
13141 /* confdefs.h. */
13142 _ACEOF
13143 cat confdefs.h >>conftest.$ac_ext
13144 cat >>conftest.$ac_ext <<_ACEOF
13145 /* end confdefs.h. */
13146 $ac_includes_default
13147 int
13148 main ()
13149 {
13150 #ifndef fwrite_unlocked
13151 (void) fwrite_unlocked;
13152 #endif
13153
13154 ;
13155 return 0;
13156 }
13157 _ACEOF
13158 rm -f conftest.$ac_objext
13159 if { (ac_try="$ac_compile"
13160 case "(($ac_try" in
13161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13162 *) ac_try_echo=$ac_try;;
13163 esac
13164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13165 $as_echo "$ac_try_echo") >&5
13166 (eval "$ac_compile") 2>conftest.er1
13167 ac_status=$?
13168 grep -v '^ *+' conftest.er1 >conftest.err
13169 rm -f conftest.er1
13170 cat conftest.err >&5
13171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); } && {
13173 test -z "$ac_c_werror_flag" ||
13174 test ! -s conftest.err
13175 } && test -s conftest.$ac_objext; then
13176 ac_cv_have_decl_fwrite_unlocked=yes
13177 else
13178 $as_echo "$as_me: failed program was:" >&5
13179 sed 's/^/| /' conftest.$ac_ext >&5
13180
13181 ac_cv_have_decl_fwrite_unlocked=no
13182 fi
13183
13184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13185 fi
13186 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
13187 $as_echo "$ac_cv_have_decl_fwrite_unlocked" >&6; }
13188 if test $ac_cv_have_decl_fwrite_unlocked = yes; then
13189
13190 cat >>confdefs.h <<_ACEOF
13191 #define HAVE_DECL_FWRITE_UNLOCKED 1
13192 _ACEOF
13193
13194
13195 else
13196 cat >>confdefs.h <<_ACEOF
13197 #define HAVE_DECL_FWRITE_UNLOCKED 0
13198 _ACEOF
13199
13200
13201 fi
13202
13203
13204 { $as_echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
13205 $as_echo_n "checking whether getchar_unlocked is declared... " >&6; }
13206 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
13207 $as_echo_n "(cached) " >&6
13208 else
13209 cat >conftest.$ac_ext <<_ACEOF
13210 /* confdefs.h. */
13211 _ACEOF
13212 cat confdefs.h >>conftest.$ac_ext
13213 cat >>conftest.$ac_ext <<_ACEOF
13214 /* end confdefs.h. */
13215 $ac_includes_default
13216 int
13217 main ()
13218 {
13219 #ifndef getchar_unlocked
13220 (void) getchar_unlocked;
13221 #endif
13222
13223 ;
13224 return 0;
13225 }
13226 _ACEOF
13227 rm -f conftest.$ac_objext
13228 if { (ac_try="$ac_compile"
13229 case "(($ac_try" in
13230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13231 *) ac_try_echo=$ac_try;;
13232 esac
13233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13234 $as_echo "$ac_try_echo") >&5
13235 (eval "$ac_compile") 2>conftest.er1
13236 ac_status=$?
13237 grep -v '^ *+' conftest.er1 >conftest.err
13238 rm -f conftest.er1
13239 cat conftest.err >&5
13240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); } && {
13242 test -z "$ac_c_werror_flag" ||
13243 test ! -s conftest.err
13244 } && test -s conftest.$ac_objext; then
13245 ac_cv_have_decl_getchar_unlocked=yes
13246 else
13247 $as_echo "$as_me: failed program was:" >&5
13248 sed 's/^/| /' conftest.$ac_ext >&5
13249
13250 ac_cv_have_decl_getchar_unlocked=no
13251 fi
13252
13253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13254 fi
13255 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
13256 $as_echo "$ac_cv_have_decl_getchar_unlocked" >&6; }
13257 if test $ac_cv_have_decl_getchar_unlocked = yes; then
13258
13259 cat >>confdefs.h <<_ACEOF
13260 #define HAVE_DECL_GETCHAR_UNLOCKED 1
13261 _ACEOF
13262
13263
13264 else
13265 cat >>confdefs.h <<_ACEOF
13266 #define HAVE_DECL_GETCHAR_UNLOCKED 0
13267 _ACEOF
13268
13269
13270 fi
13271
13272
13273 { $as_echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
13274 $as_echo_n "checking whether putc_unlocked is declared... " >&6; }
13275 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
13276 $as_echo_n "(cached) " >&6
13277 else
13278 cat >conftest.$ac_ext <<_ACEOF
13279 /* confdefs.h. */
13280 _ACEOF
13281 cat confdefs.h >>conftest.$ac_ext
13282 cat >>conftest.$ac_ext <<_ACEOF
13283 /* end confdefs.h. */
13284 $ac_includes_default
13285 int
13286 main ()
13287 {
13288 #ifndef putc_unlocked
13289 (void) putc_unlocked;
13290 #endif
13291
13292 ;
13293 return 0;
13294 }
13295 _ACEOF
13296 rm -f conftest.$ac_objext
13297 if { (ac_try="$ac_compile"
13298 case "(($ac_try" in
13299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13300 *) ac_try_echo=$ac_try;;
13301 esac
13302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13303 $as_echo "$ac_try_echo") >&5
13304 (eval "$ac_compile") 2>conftest.er1
13305 ac_status=$?
13306 grep -v '^ *+' conftest.er1 >conftest.err
13307 rm -f conftest.er1
13308 cat conftest.err >&5
13309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); } && {
13311 test -z "$ac_c_werror_flag" ||
13312 test ! -s conftest.err
13313 } && test -s conftest.$ac_objext; then
13314 ac_cv_have_decl_putc_unlocked=yes
13315 else
13316 $as_echo "$as_me: failed program was:" >&5
13317 sed 's/^/| /' conftest.$ac_ext >&5
13318
13319 ac_cv_have_decl_putc_unlocked=no
13320 fi
13321
13322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13323 fi
13324 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
13325 $as_echo "$ac_cv_have_decl_putc_unlocked" >&6; }
13326 if test $ac_cv_have_decl_putc_unlocked = yes; then
13327
13328 cat >>confdefs.h <<_ACEOF
13329 #define HAVE_DECL_PUTC_UNLOCKED 1
13330 _ACEOF
13331
13332
13333 else
13334 cat >>confdefs.h <<_ACEOF
13335 #define HAVE_DECL_PUTC_UNLOCKED 0
13336 _ACEOF
13337
13338
13339 fi
13340
13341
13342 { $as_echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
13343 $as_echo_n "checking whether putchar_unlocked is declared... " >&6; }
13344 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
13345 $as_echo_n "(cached) " >&6
13346 else
13347 cat >conftest.$ac_ext <<_ACEOF
13348 /* confdefs.h. */
13349 _ACEOF
13350 cat confdefs.h >>conftest.$ac_ext
13351 cat >>conftest.$ac_ext <<_ACEOF
13352 /* end confdefs.h. */
13353 $ac_includes_default
13354 int
13355 main ()
13356 {
13357 #ifndef putchar_unlocked
13358 (void) putchar_unlocked;
13359 #endif
13360
13361 ;
13362 return 0;
13363 }
13364 _ACEOF
13365 rm -f conftest.$ac_objext
13366 if { (ac_try="$ac_compile"
13367 case "(($ac_try" in
13368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13369 *) ac_try_echo=$ac_try;;
13370 esac
13371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13372 $as_echo "$ac_try_echo") >&5
13373 (eval "$ac_compile") 2>conftest.er1
13374 ac_status=$?
13375 grep -v '^ *+' conftest.er1 >conftest.err
13376 rm -f conftest.er1
13377 cat conftest.err >&5
13378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); } && {
13380 test -z "$ac_c_werror_flag" ||
13381 test ! -s conftest.err
13382 } && test -s conftest.$ac_objext; then
13383 ac_cv_have_decl_putchar_unlocked=yes
13384 else
13385 $as_echo "$as_me: failed program was:" >&5
13386 sed 's/^/| /' conftest.$ac_ext >&5
13387
13388 ac_cv_have_decl_putchar_unlocked=no
13389 fi
13390
13391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13392 fi
13393 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
13394 $as_echo "$ac_cv_have_decl_putchar_unlocked" >&6; }
13395 if test $ac_cv_have_decl_putchar_unlocked = yes; then
13396
13397 cat >>confdefs.h <<_ACEOF
13398 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
13399 _ACEOF
13400
13401
13402 else
13403 cat >>confdefs.h <<_ACEOF
13404 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
13405 _ACEOF
13406
13407
13408 fi
13409
13410
13411
13412 GNULIB_WCWIDTH=0;
13413 HAVE_DECL_WCWIDTH=1;
13414 REPLACE_WCWIDTH=0;
13415 WCHAR_H='';
13416
13417
13418 { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
13419 $as_echo_n "checking for wint_t... " >&6; }
13420 if test "${gt_cv_c_wint_t+set}" = set; then
13421 $as_echo_n "(cached) " >&6
13422 else
13423 cat >conftest.$ac_ext <<_ACEOF
13424 /* confdefs.h. */
13425 _ACEOF
13426 cat confdefs.h >>conftest.$ac_ext
13427 cat >>conftest.$ac_ext <<_ACEOF
13428 /* end confdefs.h. */
13429
13430 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
13431 <wchar.h>.
13432 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
13433 before <wchar.h>. */
13434 #include <stddef.h>
13435 #include <stdio.h>
13436 #include <time.h>
13437 #include <wchar.h>
13438 wint_t foo = (wchar_t)'\0';
13439 int
13440 main ()
13441 {
13442
13443 ;
13444 return 0;
13445 }
13446 _ACEOF
13447 rm -f conftest.$ac_objext
13448 if { (ac_try="$ac_compile"
13449 case "(($ac_try" in
13450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13451 *) ac_try_echo=$ac_try;;
13452 esac
13453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13454 $as_echo "$ac_try_echo") >&5
13455 (eval "$ac_compile") 2>conftest.er1
13456 ac_status=$?
13457 grep -v '^ *+' conftest.er1 >conftest.err
13458 rm -f conftest.er1
13459 cat conftest.err >&5
13460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); } && {
13462 test -z "$ac_c_werror_flag" ||
13463 test ! -s conftest.err
13464 } && test -s conftest.$ac_objext; then
13465 gt_cv_c_wint_t=yes
13466 else
13467 $as_echo "$as_me: failed program was:" >&5
13468 sed 's/^/| /' conftest.$ac_ext >&5
13469
13470 gt_cv_c_wint_t=no
13471 fi
13472
13473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13474 fi
13475 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
13476 $as_echo "$gt_cv_c_wint_t" >&6; }
13477 if test $gt_cv_c_wint_t = yes; then
13478
13479 cat >>confdefs.h <<\_ACEOF
13480 #define HAVE_WINT_T 1
13481 _ACEOF
13482
13483 fi
13484
13485
13486
13487
13488
13489
13490 { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
13491 $as_echo_n "checking for wchar_t... " >&6; }
13492 if test "${gt_cv_c_wchar_t+set}" = set; then
13493 $as_echo_n "(cached) " >&6
13494 else
13495 cat >conftest.$ac_ext <<_ACEOF
13496 /* confdefs.h. */
13497 _ACEOF
13498 cat confdefs.h >>conftest.$ac_ext
13499 cat >>conftest.$ac_ext <<_ACEOF
13500 /* end confdefs.h. */
13501 #include <stddef.h>
13502 wchar_t foo = (wchar_t)'\0';
13503 int
13504 main ()
13505 {
13506
13507 ;
13508 return 0;
13509 }
13510 _ACEOF
13511 rm -f conftest.$ac_objext
13512 if { (ac_try="$ac_compile"
13513 case "(($ac_try" in
13514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13515 *) ac_try_echo=$ac_try;;
13516 esac
13517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13518 $as_echo "$ac_try_echo") >&5
13519 (eval "$ac_compile") 2>conftest.er1
13520 ac_status=$?
13521 grep -v '^ *+' conftest.er1 >conftest.err
13522 rm -f conftest.er1
13523 cat conftest.err >&5
13524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); } && {
13526 test -z "$ac_c_werror_flag" ||
13527 test ! -s conftest.err
13528 } && test -s conftest.$ac_objext; then
13529 gt_cv_c_wchar_t=yes
13530 else
13531 $as_echo "$as_me: failed program was:" >&5
13532 sed 's/^/| /' conftest.$ac_ext >&5
13533
13534 gt_cv_c_wchar_t=no
13535 fi
13536
13537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13538 fi
13539 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
13540 $as_echo "$gt_cv_c_wchar_t" >&6; }
13541 if test $gt_cv_c_wchar_t = yes; then
13542
13543 cat >>confdefs.h <<\_ACEOF
13544 #define HAVE_WCHAR_T 1
13545 _ACEOF
13546
13547 fi
13548
13549
13550
13551
13552 if false; then
13553 GL_COND_LIBTOOL_TRUE=
13554 GL_COND_LIBTOOL_FALSE='#'
13555 else
13556 GL_COND_LIBTOOL_TRUE='#'
13557 GL_COND_LIBTOOL_FALSE=
13558 fi
13559
13560 gl_cond_libtool=false
13561 gl_libdeps=
13562 gl_ltlibdeps=
13563
13564
13565
13566
13567
13568
13569
13570
13571 gl_source_base='lib'
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581 gl_LIBOBJS="$gl_LIBOBJS argmatch.$ac_objext"
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594 gl_LIBOBJS="$gl_LIBOBJS basename.$ac_objext"
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604 gl_LIBOBJS="$gl_LIBOBJS dirname.$ac_objext"
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614 gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext"
13615
13616
13617
13618
13619
13620
13621
13622
13623 { $as_echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
13624 $as_echo_n "checking whether // is distinct from /... " >&6; }
13625 if test "${gl_cv_double_slash_root+set}" = set; then
13626 $as_echo_n "(cached) " >&6
13627 else
13628 if test x"$cross_compiling" = xyes ; then
13629 # When cross-compiling, there is no way to tell whether // is special
13630 # short of a list of hosts. However, the only known hosts to date
13631 # that have a distinct // are Apollo DomainOS (too old to port to),
13632 # Cygwin, and z/OS. If anyone knows of another system for which // has
13633 # special semantics and is distinct from /, please report it to
13634 # <bug-gnulib@gnu.org>.
13635 case $host in
13636 *-cygwin | i370-ibm-openedition)
13637 gl_cv_double_slash_root=yes ;;
13638 *)
13639 # Be optimistic and assume that / and // are the same when we
13640 # don't know.
13641 gl_cv_double_slash_root='unknown, assuming no' ;;
13642 esac
13643 else
13644 set x `ls -di / // 2>/dev/null`
13645 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
13646 gl_cv_double_slash_root=no
13647 else
13648 gl_cv_double_slash_root=yes
13649 fi
13650 fi
13651 fi
13652 { $as_echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
13653 $as_echo "$gl_cv_double_slash_root" >&6; }
13654 if test "$gl_cv_double_slash_root" = yes; then
13655
13656 cat >>confdefs.h <<\_ACEOF
13657 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
13658 _ACEOF
13659
13660 fi
13661
13662
13663
13664
13665
13666
13667 { $as_echo "$as_me:$LINENO: checking if environ is properly declared" >&5
13668 $as_echo_n "checking if environ is properly declared... " >&6; }
13669 if test "${gt_cv_var_environ_declaration+set}" = set; then
13670 $as_echo_n "(cached) " >&6
13671 else
13672
13673 cat >conftest.$ac_ext <<_ACEOF
13674 /* confdefs.h. */
13675 _ACEOF
13676 cat confdefs.h >>conftest.$ac_ext
13677 cat >>conftest.$ac_ext <<_ACEOF
13678 /* end confdefs.h. */
13679 #include <unistd.h>
13680 extern struct { int foo; } environ;
13681 int
13682 main ()
13683 {
13684 environ.foo = 1;
13685 ;
13686 return 0;
13687 }
13688 _ACEOF
13689 rm -f conftest.$ac_objext
13690 if { (ac_try="$ac_compile"
13691 case "(($ac_try" in
13692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13693 *) ac_try_echo=$ac_try;;
13694 esac
13695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13696 $as_echo "$ac_try_echo") >&5
13697 (eval "$ac_compile") 2>conftest.er1
13698 ac_status=$?
13699 grep -v '^ *+' conftest.er1 >conftest.err
13700 rm -f conftest.er1
13701 cat conftest.err >&5
13702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); } && {
13704 test -z "$ac_c_werror_flag" ||
13705 test ! -s conftest.err
13706 } && test -s conftest.$ac_objext; then
13707 gt_cv_var_environ_declaration=no
13708 else
13709 $as_echo "$as_me: failed program was:" >&5
13710 sed 's/^/| /' conftest.$ac_ext >&5
13711
13712 gt_cv_var_environ_declaration=yes
13713 fi
13714
13715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13716 fi
13717
13718 { $as_echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
13719 $as_echo "$gt_cv_var_environ_declaration" >&6; }
13720 if test $gt_cv_var_environ_declaration = yes; then
13721
13722 cat >>confdefs.h <<\_ACEOF
13723 #define HAVE_ENVIRON_DECL 1
13724 _ACEOF
13725
13726 fi
13727
13728
13729 if test $gt_cv_var_environ_declaration != yes; then
13730 HAVE_DECL_ENVIRON=0
13731 fi
13732
13733
13734
13735 GNULIB_ENVIRON=1
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753 { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
13754 $as_echo_n "checking for error_at_line... " >&6; }
13755 if test "${ac_cv_lib_error_at_line+set}" = set; then
13756 $as_echo_n "(cached) " >&6
13757 else
13758 cat >conftest.$ac_ext <<_ACEOF
13759 /* confdefs.h. */
13760 _ACEOF
13761 cat confdefs.h >>conftest.$ac_ext
13762 cat >>conftest.$ac_ext <<_ACEOF
13763 /* end confdefs.h. */
13764 #include <error.h>
13765 int
13766 main ()
13767 {
13768 error_at_line (0, 0, "", 0, "an error occurred");
13769 ;
13770 return 0;
13771 }
13772 _ACEOF
13773 rm -f conftest.$ac_objext conftest$ac_exeext
13774 if { (ac_try="$ac_link"
13775 case "(($ac_try" in
13776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13777 *) ac_try_echo=$ac_try;;
13778 esac
13779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13780 $as_echo "$ac_try_echo") >&5
13781 (eval "$ac_link") 2>conftest.er1
13782 ac_status=$?
13783 grep -v '^ *+' conftest.er1 >conftest.err
13784 rm -f conftest.er1
13785 cat conftest.err >&5
13786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); } && {
13788 test -z "$ac_c_werror_flag" ||
13789 test ! -s conftest.err
13790 } && test -s conftest$ac_exeext && {
13791 test "$cross_compiling" = yes ||
13792 $as_test_x conftest$ac_exeext
13793 }; then
13794 ac_cv_lib_error_at_line=yes
13795 else
13796 $as_echo "$as_me: failed program was:" >&5
13797 sed 's/^/| /' conftest.$ac_ext >&5
13798
13799 ac_cv_lib_error_at_line=no
13800 fi
13801
13802 rm -rf conftest.dSYM
13803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13804 conftest$ac_exeext conftest.$ac_ext
13805 fi
13806 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
13807 $as_echo "$ac_cv_lib_error_at_line" >&6; }
13808 if test $ac_cv_lib_error_at_line = no; then
13809
13810
13811
13812
13813
13814
13815
13816
13817 gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
13818
13819 fi
13820
13821
13822
13823 :
13824
13825
13826
13827
13828 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
13829
13830
13831
13832 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-forma t"
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843 gl_LIBOBJS="$gl_LIBOBJS exitfail.$ac_objext"
13844
13845
13846 :
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857 gl_LIBOBJS="$gl_LIBOBJS fopen-safer.$ac_objext"
13858
13859
13860
13861
13862 cat >>confdefs.h <<\_ACEOF
13863 #define GNULIB_FOPEN_SAFER 1
13864 _ACEOF
13865
13866
13867
13868
13869 if test -n "$GETOPT_H"; then
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879 gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889 gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
13890
13891
13892 GETOPT_H=getopt.h
13893
13894 cat >>confdefs.h <<\_ACEOF
13895 #define __GETOPT_PREFIX rpl_
13896 _ACEOF
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907 fi
13908
13909
13910
13911
13912
13913 # Autoconf 2.61a.99 and earlier don't support linking a file only
13914 # in VPATH builds. But since GNUmakefile is for maintainer use
13915 # only, it does not matter if we skip the link with older autoconf.
13916 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
13917 # builds, so use a shell variable to bypass this.
13918 GNUmakefile=GNUmakefile
13919 ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile"
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930 gl_LIBOBJS="$gl_LIBOBJS hash.$ac_objext"
13931
13932
13933
13934
13935
13936
13937 { $as_echo "$as_me:$LINENO: checking whether the compiler generally respects i nline" >&5
13938 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
13939 if test "${gl_cv_c_inline_effective+set}" = set; then
13940 $as_echo_n "(cached) " >&6
13941 else
13942 if test $ac_cv_c_inline = no; then
13943 gl_cv_c_inline_effective=no
13944 else
13945 cat >conftest.$ac_ext <<_ACEOF
13946 /* confdefs.h. */
13947 _ACEOF
13948 cat confdefs.h >>conftest.$ac_ext
13949 cat >>conftest.$ac_ext <<_ACEOF
13950 /* end confdefs.h. */
13951
13952 int
13953 main ()
13954 {
13955 #ifdef __NO_INLINE__
13956 #error "inline is not effective"
13957 #endif
13958 ;
13959 return 0;
13960 }
13961 _ACEOF
13962 rm -f conftest.$ac_objext
13963 if { (ac_try="$ac_compile"
13964 case "(($ac_try" in
13965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13966 *) ac_try_echo=$ac_try;;
13967 esac
13968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13969 $as_echo "$ac_try_echo") >&5
13970 (eval "$ac_compile") 2>conftest.er1
13971 ac_status=$?
13972 grep -v '^ *+' conftest.er1 >conftest.err
13973 rm -f conftest.er1
13974 cat conftest.err >&5
13975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } && {
13977 test -z "$ac_c_werror_flag" ||
13978 test ! -s conftest.err
13979 } && test -s conftest.$ac_objext; then
13980 gl_cv_c_inline_effective=yes
13981 else
13982 $as_echo "$as_me: failed program was:" >&5
13983 sed 's/^/| /' conftest.$ac_ext >&5
13984
13985 gl_cv_c_inline_effective=no
13986 fi
13987
13988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13989 fi
13990
13991 fi
13992 { $as_echo "$as_me:$LINENO: result: $gl_cv_c_inline_effective" >&5
13993 $as_echo "$gl_cv_c_inline_effective" >&6; }
13994 if test $gl_cv_c_inline_effective = yes; then
13995
13996 cat >>confdefs.h <<\_ACEOF
13997 #define HAVE_INLINE 1
13998 _ACEOF
13999
14000 fi
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022 { $as_echo "$as_me:$LINENO: checking whether inttypes.h conforms t o C99" >&5
14023 $as_echo_n "checking whether inttypes.h conforms to C99... " >&6; }
14024 if test "${gl_cv_header_working_inttypes_h+set}" = set; then
14025 $as_echo_n "(cached) " >&6
14026 else
14027 gl_cv_header_working_inttypes_h=no
14028 if test "$gl_cv_header_working_stdint_h" = yes \
14029 && test $ac_cv_header_inttypes_h = yes \
14030 && test "$ac_cv_have_decl_imaxabs" = yes \
14031 && test "$ac_cv_have_decl_imaxdiv" = yes \
14032 && test "$ac_cv_have_decl_strtoimax" = yes \
14033 && test "$ac_cv_have_decl_strtoumax" = yes; then
14034 cat >conftest.$ac_ext <<_ACEOF
14035
14036 /* confdefs.h. */
14037 _ACEOF
14038 cat confdefs.h >>conftest.$ac_ext
14039 cat >>conftest.$ac_ext <<_ACEOF
14040 /* end confdefs.h. */
14041
14042 #include <stddef.h>
14043 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
14044 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
14045 #define __STDC_FORMAT_MACROS 1 /* to make it work also in C++ mode */
14046 #define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H /* work if build isn't clean */
14047 #include <inttypes.h>
14048
14049 /* No need to duplicate the tests of stdint.m4; they are subsumed by
14050 $gl_cv_header_working_stdint_h = yes. */
14051
14052 /* Tests for macros supposed to be defined in inttypes.h. */
14053
14054 const char *k = /* implicit string concatenation */
14055 #ifdef INT8_MAX
14056 PRId8 PRIi8
14057 #endif
14058 #ifdef UINT8_MAX
14059 PRIo8 PRIu8 PRIx8 PRIX8
14060 #endif
14061 #ifdef INT16_MAX
14062 PRId16 PRIi16
14063 #endif
14064 #ifdef UINT16_MAX
14065 PRIo16 PRIu16 PRIx16 PRIX16
14066 #endif
14067 #ifdef INT32_MAX
14068 PRId32 PRIi32
14069 #endif
14070 #ifdef UINT32_MAX
14071 PRIo32 PRIu32 PRIx32 PRIX32
14072 #endif
14073 #ifdef INT64_MAX
14074 PRId64 PRIi64
14075 #endif
14076 #ifdef UINT64_MAX
14077 PRIo64 PRIu64 PRIx64 PRIX64
14078 #endif
14079 PRIdLEAST8 PRIiLEAST8 PRIoLEAST8 PRIuLEAST8 PRIxLEAST8 PRIXLEAST8
14080 PRIdLEAST16 PRIiLEAST16 PRIoLEAST16 PRIuLEAST16 PRIxLEAST16 PRIXLEAST16
14081 PRIdLEAST32 PRIiLEAST32 PRIoLEAST32 PRIuLEAST32 PRIxLEAST32 PRIXLEAST32
14082 PRIdLEAST64 PRIiLEAST64
14083 PRIoLEAST64 PRIuLEAST64 PRIxLEAST64 PRIXLEAST64
14084 PRIdFAST8 PRIiFAST8 PRIoFAST8 PRIuFAST8 PRIxFAST8 PRIXFAST8
14085 PRIdFAST16 PRIiFAST16 PRIoFAST16 PRIuFAST16 PRIxFAST16 PRIXFAST16
14086 PRIdFAST32 PRIiFAST32 PRIoFAST32 PRIuFAST32 PRIxFAST32 PRIXFAST32
14087 PRIdFAST64 PRIiFAST64
14088 PRIoFAST64 PRIuFAST64 PRIxFAST64 PRIXFAST64
14089 PRIdMAX PRIiMAX PRIoMAX PRIuMAX PRIxMAX PRIXMAX
14090 #ifdef INTPTR_MAX
14091 PRIdPTR PRIiPTR
14092 #endif
14093 #ifdef UINTPTR_MAX
14094 PRIoPTR PRIuPTR PRIxPTR PRIXPTR
14095 #endif
14096 ;
14097 const char *l = /* implicit string concatenation */
14098 #ifdef INT8_MAX
14099 SCNd8 SCNi8
14100 #endif
14101 #ifdef UINT8_MAX
14102 SCNo8 SCNu8 SCNx8
14103 #endif
14104 #ifdef INT16_MAX
14105 SCNd16 SCNi16
14106 #endif
14107 #ifdef UINT16_MAX
14108 SCNo16 SCNu16 SCNx16
14109 #endif
14110 #ifdef INT32_MAX
14111 SCNd32 SCNi32
14112 #endif
14113 #ifdef UINT32_MAX
14114 SCNo32 SCNu32 SCNx32
14115 #endif
14116 #ifdef INT64_MAX
14117 SCNd64 SCNi64
14118 #endif
14119 #ifdef UINT64_MAX
14120 SCNo64 SCNu64 SCNx64
14121 #endif
14122 SCNdLEAST8 SCNiLEAST8 SCNoLEAST8 SCNuLEAST8 SCNxLEAST8
14123 SCNdLEAST16 SCNiLEAST16 SCNoLEAST16 SCNuLEAST16 SCNxLEAST16
14124 SCNdLEAST32 SCNiLEAST32 SCNoLEAST32 SCNuLEAST32 SCNxLEAST32
14125 SCNdLEAST64 SCNiLEAST64
14126 SCNoLEAST64 SCNuLEAST64 SCNxLEAST64
14127 SCNdFAST8 SCNiFAST8 SCNoFAST8 SCNuFAST8 SCNxFAST8
14128 SCNdFAST16 SCNiFAST16 SCNoFAST16 SCNuFAST16 SCNxFAST16
14129 SCNdFAST32 SCNiFAST32 SCNoFAST32 SCNuFAST32 SCNxFAST32
14130 SCNdFAST64 SCNiFAST64
14131 SCNoFAST64 SCNuFAST64 SCNxFAST64
14132 SCNdMAX SCNiMAX SCNoMAX SCNuMAX SCNxMAX
14133 #ifdef INTPTR_MAX
14134 SCNdPTR SCNiPTR
14135 #endif
14136 #ifdef UINTPTR_MAX
14137 SCNoPTR SCNuPTR SCNxPTR
14138 #endif
14139 ;
14140
14141 int
14142 main ()
14143 {
14144
14145 ;
14146 return 0;
14147 }
14148 _ACEOF
14149 rm -f conftest.$ac_objext
14150 if { (ac_try="$ac_compile"
14151 case "(($ac_try" in
14152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14153 *) ac_try_echo=$ac_try;;
14154 esac
14155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14156 $as_echo "$ac_try_echo") >&5
14157 (eval "$ac_compile") 2>conftest.er1
14158 ac_status=$?
14159 grep -v '^ *+' conftest.er1 >conftest.err
14160 rm -f conftest.er1
14161 cat conftest.err >&5
14162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14163 (exit $ac_status); } && {
14164 test -z "$ac_c_werror_flag" ||
14165 test ! -s conftest.err
14166 } && test -s conftest.$ac_objext; then
14167 gl_cv_header_working_inttypes_h=yes
14168 else
14169 $as_echo "$as_me: failed program was:" >&5
14170 sed 's/^/| /' conftest.$ac_ext >&5
14171
14172
14173 fi
14174
14175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14176 fi
14177 fi
14178 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_inttypes_h" >&5
14179 $as_echo "$gl_cv_header_working_inttypes_h" >&6; }
14180
14181 if false && test $gl_cv_header_working_inttypes_h = yes; then
14182 INTTYPES_H=''
14183 else
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197 if test $gl_cv_have_include_next = yes; then
14198 gl_cv_next_inttypes_h='<'inttypes.h'>'
14199 else
14200 { $as_echo "$as_me:$LINENO: checking absolute name of <inttypes.h>" >&5
14201 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
14202 if test "${gl_cv_next_inttypes_h+set}" = set; then
14203 $as_echo_n "(cached) " >&6
14204 else
14205
14206 if test $ac_cv_header_inttypes_h = yes; then
14207 cat >conftest.$ac_ext <<_ACEOF
14208 /* confdefs.h. */
14209 _ACEOF
14210 cat confdefs.h >>conftest.$ac_ext
14211 cat >>conftest.$ac_ext <<_ACEOF
14212 /* end confdefs.h. */
14213 #include <inttypes.h>
14214
14215 _ACEOF
14216 case "$host_ os" in
14217 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14218 *) gl_absname_cpp="$ac_cpp" ;;
14219 esac
14220 gl_cv_next_inttypes_h='"'`(eval "$gl_absname _cpp conftest.$ac_ext") 2>&5 |
14221 sed -n '\#/inttypes.h#{
14222 s#.*"\(.*/inttypes.h\)".*#\1#
14223 s#^/[^/]#//&#
14224 p
14225 q
14226 }'`'"'
14227 else
14228 gl_cv_next_inttypes_h='<'inttypes.h'>'
14229 fi
14230
14231 fi
14232 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_inttypes_h" >&5
14233 $as_echo "$gl_cv_next_inttypes_h" >&6; }
14234 fi
14235 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
14236
14237
14238
14239
14240
14241 cat >>confdefs.h <<\_ACEOF
14242 #define GL_TRIGGER_STDC_LIMIT_MACROS 1
14243 _ACEOF
14244
14245
14246
14247
14248 PRIPTR_PREFIX=
14249 if test -n "$STDINT_H"; then
14250 PRIPTR_PREFIX='"l"'
14251 else
14252 for glpfx in '' l ll I64; do
14253 case $glpfx in
14254 '') gltype1='int';;
14255 l) gltype1='long int';;
14256 ll) gltype1='long long int';;
14257 I64) gltype1='__int64';;
14258 esac
14259 cat >conftest.$ac_ext <<_ACEOF
14260 /* confdefs.h. */
14261 _ACEOF
14262 cat confdefs.h >>conftest.$ac_ext
14263 cat >>conftest.$ac_ext <<_ACEOF
14264 /* end confdefs.h. */
14265 #include <stdint.h>
14266 extern intptr_t foo;
14267 extern $gltype1 foo;
14268 int
14269 main ()
14270 {
14271
14272 ;
14273 return 0;
14274 }
14275 _ACEOF
14276 rm -f conftest.$ac_objext
14277 if { (ac_try="$ac_compile"
14278 case "(($ac_try" in
14279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14280 *) ac_try_echo=$ac_try;;
14281 esac
14282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14283 $as_echo "$ac_try_echo") >&5
14284 (eval "$ac_compile") 2>conftest.er1
14285 ac_status=$?
14286 grep -v '^ *+' conftest.er1 >conftest.err
14287 rm -f conftest.er1
14288 cat conftest.err >&5
14289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); } && {
14291 test -z "$ac_c_werror_flag" ||
14292 test ! -s conftest.err
14293 } && test -s conftest.$ac_objext; then
14294 PRIPTR_PREFIX='"'$glpfx'"'
14295 else
14296 $as_echo "$as_me: failed program was:" >&5
14297 sed 's/^/| /' conftest.$ac_ext >&5
14298
14299
14300 fi
14301
14302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14303 test -n "$PRIPTR_PREFIX" && break
14304 done
14305 fi
14306
14307
14308 if test "$ac_cv_have_decl_imaxabs" = yes; then
14309 HAVE_DECL_IMAXABS=1
14310 else
14311 HAVE_DECL_IMAXABS=0
14312 fi
14313
14314 if test "$ac_cv_have_decl_imaxdiv" = yes; then
14315 HAVE_DECL_IMAXDIV=1
14316 else
14317 HAVE_DECL_IMAXDIV=0
14318 fi
14319
14320 if test "$ac_cv_have_decl_strtoimax" = yes; then
14321 HAVE_DECL_STRTOIMAX=1
14322 else
14323 HAVE_DECL_STRTOIMAX=0
14324 fi
14325
14326 if test "$ac_cv_have_decl_strtoumax" = yes; then
14327 HAVE_DECL_STRTOUMAX=1
14328 else
14329 HAVE_DECL_STRTOUMAX=0
14330 fi
14331
14332
14333 { $as_echo "$as_me:$LINENO: checking whether INT32_MAX < INTMAX_MAX" >&5
14334 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
14335 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then
14336 $as_echo_n "(cached) " >&6
14337 else
14338 cat >conftest.$ac_ext <<_ACEOF
14339 /* confdefs.h. */
14340 _ACEOF
14341 cat confdefs.h >>conftest.$ac_ext
14342 cat >>conftest.$ac_ext <<_ACEOF
14343 /* end confdefs.h. */
14344 /* Work also in C++ mode. */
14345 #define __STDC_LIMIT_MACROS 1
14346
14347 /* Work if build is not clean. */
14348 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
14349
14350 #include <limits.h>
14351 #if HAVE_STDINT_H
14352 #include <stdint.h>
14353 #endif
14354
14355 #if defined INT32_MAX && defined INTMAX_MAX
14356 #define CONDITION (INT32_MAX < INTMAX_MAX)
14357 #elif HAVE_LONG_LONG_INT
14358 #define CONDITION (sizeof (int) < sizeof (long long int))
14359 #else
14360 #define CONDITION 0
14361 #endif
14362 int test[CONDITION ? 1 : -1];
14363 int
14364 main ()
14365 {
14366
14367 ;
14368 return 0;
14369 }
14370 _ACEOF
14371 rm -f conftest.$ac_objext
14372 if { (ac_try="$ac_compile"
14373 case "(($ac_try" in
14374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14375 *) ac_try_echo=$ac_try;;
14376 esac
14377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14378 $as_echo "$ac_try_echo") >&5
14379 (eval "$ac_compile") 2>conftest.er1
14380 ac_status=$?
14381 grep -v '^ *+' conftest.er1 >conftest.err
14382 rm -f conftest.er1
14383 cat conftest.err >&5
14384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); } && {
14386 test -z "$ac_c_werror_flag" ||
14387 test ! -s conftest.err
14388 } && test -s conftest.$ac_objext; then
14389 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
14390 else
14391 $as_echo "$as_me: failed program was:" >&5
14392 sed 's/^/| /' conftest.$ac_ext >&5
14393
14394 gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
14395 fi
14396
14397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14398 fi
14399 { $as_echo "$as_me:$LINENO: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
14400 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
14401 if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
14402 INT32_MAX_LT_INTMAX_MAX=1;
14403 else
14404 INT32_MAX_LT_INTMAX_MAX=0;
14405 fi
14406
14407
14408
14409 { $as_echo "$as_me:$LINENO: checking whether INT64_MAX == LONG_MAX" >&5
14410 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
14411 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then
14412 $as_echo_n "(cached) " >&6
14413 else
14414 cat >conftest.$ac_ext <<_ACEOF
14415 /* confdefs.h. */
14416 _ACEOF
14417 cat confdefs.h >>conftest.$ac_ext
14418 cat >>conftest.$ac_ext <<_ACEOF
14419 /* end confdefs.h. */
14420 /* Work also in C++ mode. */
14421 #define __STDC_LIMIT_MACROS 1
14422
14423 /* Work if build is not clean. */
14424 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
14425
14426 #include <limits.h>
14427 #if HAVE_STDINT_H
14428 #include <stdint.h>
14429 #endif
14430
14431 #if defined INT64_MAX
14432 #define CONDITION (INT64_MAX == LONG_MAX)
14433 #elif HAVE_LONG_LONG_INT
14434 #define CONDITION (sizeof (long long int) == sizeof (long int))
14435 #else
14436 #define CONDITION 0
14437 #endif
14438 int test[CONDITION ? 1 : -1];
14439 int
14440 main ()
14441 {
14442
14443 ;
14444 return 0;
14445 }
14446 _ACEOF
14447 rm -f conftest.$ac_objext
14448 if { (ac_try="$ac_compile"
14449 case "(($ac_try" in
14450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14451 *) ac_try_echo=$ac_try;;
14452 esac
14453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14454 $as_echo "$ac_try_echo") >&5
14455 (eval "$ac_compile") 2>conftest.er1
14456 ac_status=$?
14457 grep -v '^ *+' conftest.er1 >conftest.err
14458 rm -f conftest.er1
14459 cat conftest.err >&5
14460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); } && {
14462 test -z "$ac_c_werror_flag" ||
14463 test ! -s conftest.err
14464 } && test -s conftest.$ac_objext; then
14465 gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
14466 else
14467 $as_echo "$as_me: failed program was:" >&5
14468 sed 's/^/| /' conftest.$ac_ext >&5
14469
14470 gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
14471 fi
14472
14473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14474 fi
14475 { $as_echo "$as_me:$LINENO: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
14476 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
14477 if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
14478 INT64_MAX_EQ_LONG_MAX=1;
14479 else
14480 INT64_MAX_EQ_LONG_MAX=0;
14481 fi
14482
14483
14484
14485 { $as_echo "$as_me:$LINENO: checking whether UINT32_MAX < UINTMAX_MAX" >&5
14486 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
14487 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then
14488 $as_echo_n "(cached) " >&6
14489 else
14490 cat >conftest.$ac_ext <<_ACEOF
14491 /* confdefs.h. */
14492 _ACEOF
14493 cat confdefs.h >>conftest.$ac_ext
14494 cat >>conftest.$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14496 /* Work also in C++ mode. */
14497 #define __STDC_LIMIT_MACROS 1
14498
14499 /* Work if build is not clean. */
14500 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
14501
14502 #include <limits.h>
14503 #if HAVE_STDINT_H
14504 #include <stdint.h>
14505 #endif
14506
14507 #if defined UINT32_MAX && defined UINTMAX_MAX
14508 #define CONDITION (UINT32_MAX < UINTMAX_MAX)
14509 #elif HAVE_LONG_LONG_INT
14510 #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long lo ng int))
14511 #else
14512 #define CONDITION 0
14513 #endif
14514 int test[CONDITION ? 1 : -1];
14515 int
14516 main ()
14517 {
14518
14519 ;
14520 return 0;
14521 }
14522 _ACEOF
14523 rm -f conftest.$ac_objext
14524 if { (ac_try="$ac_compile"
14525 case "(($ac_try" in
14526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14527 *) ac_try_echo=$ac_try;;
14528 esac
14529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14530 $as_echo "$ac_try_echo") >&5
14531 (eval "$ac_compile") 2>conftest.er1
14532 ac_status=$?
14533 grep -v '^ *+' conftest.er1 >conftest.err
14534 rm -f conftest.er1
14535 cat conftest.err >&5
14536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); } && {
14538 test -z "$ac_c_werror_flag" ||
14539 test ! -s conftest.err
14540 } && test -s conftest.$ac_objext; then
14541 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
14542 else
14543 $as_echo "$as_me: failed program was:" >&5
14544 sed 's/^/| /' conftest.$ac_ext >&5
14545
14546 gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
14547 fi
14548
14549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14550 fi
14551 { $as_echo "$as_me:$LINENO: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
14552 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
14553 if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
14554 UINT32_MAX_LT_UINTMAX_MAX=1;
14555 else
14556 UINT32_MAX_LT_UINTMAX_MAX=0;
14557 fi
14558
14559
14560
14561 { $as_echo "$as_me:$LINENO: checking whether UINT64_MAX == ULONG_MAX" >&5
14562 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
14563 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then
14564 $as_echo_n "(cached) " >&6
14565 else
14566 cat >conftest.$ac_ext <<_ACEOF
14567 /* confdefs.h. */
14568 _ACEOF
14569 cat confdefs.h >>conftest.$ac_ext
14570 cat >>conftest.$ac_ext <<_ACEOF
14571 /* end confdefs.h. */
14572 /* Work also in C++ mode. */
14573 #define __STDC_LIMIT_MACROS 1
14574
14575 /* Work if build is not clean. */
14576 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
14577
14578 #include <limits.h>
14579 #if HAVE_STDINT_H
14580 #include <stdint.h>
14581 #endif
14582
14583 #if defined UINT64_MAX
14584 #define CONDITION (UINT64_MAX == ULONG_MAX)
14585 #elif HAVE_LONG_LONG_INT
14586 #define CONDITION (sizeof (unsigned long long int) == sizeof (unsig ned long int))
14587 #else
14588 #define CONDITION 0
14589 #endif
14590 int test[CONDITION ? 1 : -1];
14591 int
14592 main ()
14593 {
14594
14595 ;
14596 return 0;
14597 }
14598 _ACEOF
14599 rm -f conftest.$ac_objext
14600 if { (ac_try="$ac_compile"
14601 case "(($ac_try" in
14602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603 *) ac_try_echo=$ac_try;;
14604 esac
14605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14606 $as_echo "$ac_try_echo") >&5
14607 (eval "$ac_compile") 2>conftest.er1
14608 ac_status=$?
14609 grep -v '^ *+' conftest.er1 >conftest.err
14610 rm -f conftest.er1
14611 cat conftest.err >&5
14612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); } && {
14614 test -z "$ac_c_werror_flag" ||
14615 test ! -s conftest.err
14616 } && test -s conftest.$ac_objext; then
14617 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
14618 else
14619 $as_echo "$as_me: failed program was:" >&5
14620 sed 's/^/| /' conftest.$ac_ext >&5
14621
14622 gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
14623 fi
14624
14625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14626 fi
14627 { $as_echo "$as_me:$LINENO: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
14628 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
14629 if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
14630 UINT64_MAX_EQ_ULONG_MAX=1;
14631 else
14632 UINT64_MAX_EQ_ULONG_MAX=0;
14633 fi
14634
14635
14636
14637 INTTYPES_H='inttypes.h'
14638 fi
14639
14640
14641 # You need to invoke gt_JAVACOMP yourself, possibly with arguments.
14642 ac_config_files="$ac_config_files javacomp.sh:build-aux/javacomp.sh.in"
14643
14644 # You need to invoke gt_JAVAEXEC yourself, possibly with arguments.
14645 ac_config_files="$ac_config_files javaexec.sh:build-aux/javaexec.sh.in"
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_ base\""
14658
14659
14660 for ac_header in stdlib.h
14661 do
14662 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14664 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14665 $as_echo_n "checking for $ac_header... " >&6; }
14666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14667 $as_echo_n "(cached) " >&6
14668 fi
14669 ac_res=`eval 'as_val=${'$as_ac_Header'}
14670 $as_echo "$as_val"'`
14671 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14672 $as_echo "$ac_res" >&6; }
14673 else
14674 # Is the header compilable?
14675 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14676 $as_echo_n "checking $ac_header usability... " >&6; }
14677 cat >conftest.$ac_ext <<_ACEOF
14678 /* confdefs.h. */
14679 _ACEOF
14680 cat confdefs.h >>conftest.$ac_ext
14681 cat >>conftest.$ac_ext <<_ACEOF
14682 /* end confdefs.h. */
14683 $ac_includes_default
14684 #include <$ac_header>
14685 _ACEOF
14686 rm -f conftest.$ac_objext
14687 if { (ac_try="$ac_compile"
14688 case "(($ac_try" in
14689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14690 *) ac_try_echo=$ac_try;;
14691 esac
14692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14693 $as_echo "$ac_try_echo") >&5
14694 (eval "$ac_compile") 2>conftest.er1
14695 ac_status=$?
14696 grep -v '^ *+' conftest.er1 >conftest.err
14697 rm -f conftest.er1
14698 cat conftest.err >&5
14699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); } && {
14701 test -z "$ac_c_werror_flag" ||
14702 test ! -s conftest.err
14703 } && test -s conftest.$ac_objext; then
14704 ac_header_compiler=yes
14705 else
14706 $as_echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14708
14709 ac_header_compiler=no
14710 fi
14711
14712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14713 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14714 $as_echo "$ac_header_compiler" >&6; }
14715
14716 # Is the header present?
14717 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14718 $as_echo_n "checking $ac_header presence... " >&6; }
14719 cat >conftest.$ac_ext <<_ACEOF
14720 /* confdefs.h. */
14721 _ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h. */
14725 #include <$ac_header>
14726 _ACEOF
14727 if { (ac_try="$ac_cpp conftest.$ac_ext"
14728 case "(($ac_try" in
14729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14730 *) ac_try_echo=$ac_try;;
14731 esac
14732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14733 $as_echo "$ac_try_echo") >&5
14734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14735 ac_status=$?
14736 grep -v '^ *+' conftest.er1 >conftest.err
14737 rm -f conftest.er1
14738 cat conftest.err >&5
14739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); } >/dev/null && {
14741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14742 test ! -s conftest.err
14743 }; then
14744 ac_header_preproc=yes
14745 else
14746 $as_echo "$as_me: failed program was:" >&5
14747 sed 's/^/| /' conftest.$ac_ext >&5
14748
14749 ac_header_preproc=no
14750 fi
14751
14752 rm -f conftest.err conftest.$ac_ext
14753 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14754 $as_echo "$ac_header_preproc" >&6; }
14755
14756 # So? What about this header?
14757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14758 yes:no: )
14759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, r ejected by the preprocessor!" >&5
14760 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compile r's result" >&5
14762 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >& 2;}
14763 ac_header_preproc=yes
14764 ;;
14765 no:yes:* )
14766 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compi led" >&5
14767 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14768 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prere quisite headers?" >&5
14769 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite header s?" >&2;}
14770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentat ion" >&5
14771 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But C annot Be Compiled\"" >&5
14773 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compi led\"" >&2;}
14774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preproc essor's result" >&5
14775 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result " >&2;}
14776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14777 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take pre cedence" >&2;}
14778 ( cat <<\_ASBOX
14779 ## -------------------------------- ##
14780 ## Report this to bug-bison@gnu.org ##
14781 ## -------------------------------- ##
14782 _ASBOX
14783 ) | sed "s/^/$as_me: WARNING: /" >&2
14784 ;;
14785 esac
14786 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14787 $as_echo_n "checking for $ac_header... " >&6; }
14788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14789 $as_echo_n "(cached) " >&6
14790 else
14791 eval "$as_ac_Header=\$ac_header_preproc"
14792 fi
14793 ac_res=`eval 'as_val=${'$as_ac_Header'}
14794 $as_echo "$as_val"'`
14795 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14796 $as_echo "$ac_res" >&6; }
14797
14798 fi
14799 if test `eval 'as_val=${'$as_ac_Header'}
14800 $as_echo "$as_val"'` = yes; then
14801 cat >>confdefs.h <<_ACEOF
14802 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14803 _ACEOF
14804
14805 fi
14806
14807 done
14808
14809 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
14810 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
14811 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
14812 $as_echo_n "(cached) " >&6
14813 else
14814 if test "$cross_compiling" = yes; then
14815 ac_cv_func_malloc_0_nonnull=no
14816 else
14817 cat >conftest.$ac_ext <<_ACEOF
14818 /* confdefs.h. */
14819 _ACEOF
14820 cat confdefs.h >>conftest.$ac_ext
14821 cat >>conftest.$ac_ext <<_ACEOF
14822 /* end confdefs.h. */
14823 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
14824 # include <stdlib.h>
14825 #else
14826 char *malloc ();
14827 #endif
14828
14829 int
14830 main ()
14831 {
14832 return ! malloc (0);
14833 ;
14834 return 0;
14835 }
14836 _ACEOF
14837 rm -f conftest$ac_exeext
14838 if { (ac_try="$ac_link"
14839 case "(($ac_try" in
14840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14841 *) ac_try_echo=$ac_try;;
14842 esac
14843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14844 $as_echo "$ac_try_echo") >&5
14845 (eval "$ac_link") 2>&5
14846 ac_status=$?
14847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14849 { (case "(($ac_try" in
14850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14851 *) ac_try_echo=$ac_try;;
14852 esac
14853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14854 $as_echo "$ac_try_echo") >&5
14855 (eval "$ac_try") 2>&5
14856 ac_status=$?
14857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); }; }; then
14859 ac_cv_func_malloc_0_nonnull=yes
14860 else
14861 $as_echo "$as_me: program exited with status $ac_status" >&5
14862 $as_echo "$as_me: failed program was:" >&5
14863 sed 's/^/| /' conftest.$ac_ext >&5
14864
14865 ( exit $ac_status )
14866 ac_cv_func_malloc_0_nonnull=no
14867 fi
14868 rm -rf conftest.dSYM
14869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$a c_objext conftest.$ac_ext
14870 fi
14871
14872
14873 fi
14874 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
14875 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
14876 if test $ac_cv_func_malloc_0_nonnull = yes; then
14877
14878 cat >>confdefs.h <<\_ACEOF
14879 #define HAVE_MALLOC 1
14880 _ACEOF
14881
14882 else
14883 cat >>confdefs.h <<\_ACEOF
14884 #define HAVE_MALLOC 0
14885 _ACEOF
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
14896
14897
14898 cat >>confdefs.h <<\_ACEOF
14899 #define malloc rpl_malloc
14900 _ACEOF
14901
14902 fi
14903
14904
14905
14906
14907 cat >>confdefs.h <<\_ACEOF
14908 #define GNULIB_MALLOC_GNU 1
14909 _ACEOF
14910
14911
14912
14913 if test $gl_cv_func_malloc_posix = yes; then
14914 HAVE_MALLOC_POSIX=1
14915
14916 cat >>confdefs.h <<\_ACEOF
14917 #define HAVE_MALLOC_POSIX 1
14918 _ACEOF
14919
14920 else
14921
14922
14923
14924
14925
14926
14927
14928
14929 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
14930
14931 HAVE_MALLOC_POSIX=0
14932 fi
14933
14934
14935
14936
14937 GNULIB_MALLOC_POSIX=1
14938
14939
14940
14941
14942
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955 { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are prope rly declared" >&5
14956 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >& 6; }
14957 if test "${gl_cv_func_mbrtowc+set}" = set; then
14958 $as_echo_n "(cached) " >&6
14959 else
14960 cat >conftest.$ac_ext <<_ACEOF
14961 /* confdefs.h. */
14962 _ACEOF
14963 cat confdefs.h >>conftest.$ac_ext
14964 cat >>conftest.$ac_ext <<_ACEOF
14965 /* end confdefs.h. */
14966 #include <wchar.h>
14967 int
14968 main ()
14969 {
14970 wchar_t wc;
14971 char const s[] = "";
14972 size_t n = 1;
14973 mbstate_t state;
14974 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
14975 ;
14976 return 0;
14977 }
14978 _ACEOF
14979 rm -f conftest.$ac_objext conftest$ac_exeext
14980 if { (ac_try="$ac_link"
14981 case "(($ac_try" in
14982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14983 *) ac_try_echo=$ac_try;;
14984 esac
14985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14986 $as_echo "$ac_try_echo") >&5
14987 (eval "$ac_link") 2>conftest.er1
14988 ac_status=$?
14989 grep -v '^ *+' conftest.er1 >conftest.err
14990 rm -f conftest.er1
14991 cat conftest.err >&5
14992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); } && {
14994 test -z "$ac_c_werror_flag" ||
14995 test ! -s conftest.err
14996 } && test -s conftest$ac_exeext && {
14997 test "$cross_compiling" = yes ||
14998 $as_test_x conftest$ac_exeext
14999 }; then
15000 gl_cv_func_mbrtowc=yes
15001 else
15002 $as_echo "$as_me: failed program was:" >&5
15003 sed 's/^/| /' conftest.$ac_ext >&5
15004
15005 gl_cv_func_mbrtowc=no
15006 fi
15007
15008 rm -rf conftest.dSYM
15009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15010 conftest$ac_exeext conftest.$ac_ext
15011 fi
15012 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
15013 $as_echo "$gl_cv_func_mbrtowc" >&6; }
15014 if test $gl_cv_func_mbrtowc = yes; then
15015
15016 cat >>confdefs.h <<\_ACEOF
15017 #define HAVE_MBRTOWC 1
15018 _ACEOF
15019
15020 fi
15021
15022
15023 { $as_echo "$as_me:$LINENO: checking whether mbswidth is declared in <wcha r.h>" >&5
15024 $as_echo_n "checking whether mbswidth is declared in <wchar.h>... " >&6; }
15025 if test "${ac_cv_have_decl_mbswidth+set}" = set; then
15026 $as_echo_n "(cached) " >&6
15027 else
15028 cat >conftest.$ac_ext <<_ACEOF
15029 /* confdefs.h. */
15030 _ACEOF
15031 cat confdefs.h >>conftest.$ac_ext
15032 cat >>conftest.$ac_ext <<_ACEOF
15033 /* end confdefs.h. */
15034
15035 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
15036 <wchar.h>.
15037 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
15038 before <wchar.h>. */
15039 #include <stddef.h>
15040 #include <stdio.h>
15041 #include <time.h>
15042 #include <wchar.h>
15043
15044 int
15045 main ()
15046 {
15047
15048 char *p = (char *) mbswidth;
15049 return !p;
15050
15051 ;
15052 return 0;
15053 }
15054 _ACEOF
15055 rm -f conftest.$ac_objext
15056 if { (ac_try="$ac_compile"
15057 case "(($ac_try" in
15058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15059 *) ac_try_echo=$ac_try;;
15060 esac
15061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15062 $as_echo "$ac_try_echo") >&5
15063 (eval "$ac_compile") 2>conftest.er1
15064 ac_status=$?
15065 grep -v '^ *+' conftest.er1 >conftest.err
15066 rm -f conftest.er1
15067 cat conftest.err >&5
15068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); } && {
15070 test -z "$ac_c_werror_flag" ||
15071 test ! -s conftest.err
15072 } && test -s conftest.$ac_objext; then
15073 ac_cv_have_decl_mbswidth=yes
15074 else
15075 $as_echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15077
15078 ac_cv_have_decl_mbswidth=no
15079 fi
15080
15081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15082 fi
15083 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_mbswidth" >&5
15084 $as_echo "$ac_cv_have_decl_mbswidth" >&6; }
15085 if test $ac_cv_have_decl_mbswidth = yes; then
15086 ac_val=1
15087 else
15088 ac_val=0
15089 fi
15090
15091 cat >>confdefs.h <<_ACEOF
15092 #define HAVE_DECL_MBSWIDTH_IN_WCHAR_H $ac_val
15093 _ACEOF
15094
15095
15096 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
15097 $as_echo_n "checking for mbstate_t... " >&6; }
15098 if test "${ac_cv_type_mbstate_t+set}" = set; then
15099 $as_echo_n "(cached) " >&6
15100 else
15101 cat >conftest.$ac_ext <<_ACEOF
15102 /* confdefs.h. */
15103 _ACEOF
15104 cat confdefs.h >>conftest.$ac_ext
15105 cat >>conftest.$ac_ext <<_ACEOF
15106 /* end confdefs.h. */
15107 $ac_includes_default
15108 # include <wchar.h>
15109 int
15110 main ()
15111 {
15112 mbstate_t x; return sizeof x;
15113 ;
15114 return 0;
15115 }
15116 _ACEOF
15117 rm -f conftest.$ac_objext
15118 if { (ac_try="$ac_compile"
15119 case "(($ac_try" in
15120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15121 *) ac_try_echo=$ac_try;;
15122 esac
15123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15124 $as_echo "$ac_try_echo") >&5
15125 (eval "$ac_compile") 2>conftest.er1
15126 ac_status=$?
15127 grep -v '^ *+' conftest.er1 >conftest.err
15128 rm -f conftest.er1
15129 cat conftest.err >&5
15130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); } && {
15132 test -z "$ac_c_werror_flag" ||
15133 test ! -s conftest.err
15134 } && test -s conftest.$ac_objext; then
15135 ac_cv_type_mbstate_t=yes
15136 else
15137 $as_echo "$as_me: failed program was:" >&5
15138 sed 's/^/| /' conftest.$ac_ext >&5
15139
15140 ac_cv_type_mbstate_t=no
15141 fi
15142
15143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15144 fi
15145 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
15146 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15147 if test $ac_cv_type_mbstate_t = yes; then
15148
15149 cat >>confdefs.h <<\_ACEOF
15150 #define HAVE_MBSTATE_T 1
15151 _ACEOF
15152
15153 else
15154
15155 cat >>confdefs.h <<\_ACEOF
15156 #define mbstate_t int
15157 _ACEOF
15158
15159 fi
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173 { $as_echo "$as_me:$LINENO: checking for obstacks" >&5
15174 $as_echo_n "checking for obstacks... " >&6; }
15175 if test "${ac_cv_func_obstack+set}" = set; then
15176 $as_echo_n "(cached) " >&6
15177 else
15178 cat >conftest.$ac_ext <<_ACEOF
15179 /* confdefs.h. */
15180 _ACEOF
15181 cat confdefs.h >>conftest.$ac_ext
15182 cat >>conftest.$ac_ext <<_ACEOF
15183 /* end confdefs.h. */
15184 $ac_includes_default
15185 #include "obstack.h"
15186 int
15187 main ()
15188 {
15189 struct obstack mem;
15190 #define obstack_chunk_alloc malloc
15191 #define obstack_chunk_free free
15192 obstack_init (&mem);
15193 obstack_free (&mem, 0);
15194 ;
15195 return 0;
15196 }
15197 _ACEOF
15198 rm -f conftest.$ac_objext conftest$ac_exeext
15199 if { (ac_try="$ac_link"
15200 case "(($ac_try" in
15201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15202 *) ac_try_echo=$ac_try;;
15203 esac
15204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15205 $as_echo "$ac_try_echo") >&5
15206 (eval "$ac_link") 2>conftest.er1
15207 ac_status=$?
15208 grep -v '^ *+' conftest.er1 >conftest.err
15209 rm -f conftest.er1
15210 cat conftest.err >&5
15211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); } && {
15213 test -z "$ac_c_werror_flag" ||
15214 test ! -s conftest.err
15215 } && test -s conftest$ac_exeext && {
15216 test "$cross_compiling" = yes ||
15217 $as_test_x conftest$ac_exeext
15218 }; then
15219 ac_cv_func_obstack=yes
15220 else
15221 $as_echo "$as_me: failed program was:" >&5
15222 sed 's/^/| /' conftest.$ac_ext >&5
15223
15224 ac_cv_func_obstack=no
15225 fi
15226
15227 rm -rf conftest.dSYM
15228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15229 conftest$ac_exeext conftest.$ac_ext
15230 fi
15231 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
15232 $as_echo "$ac_cv_func_obstack" >&6; }
15233 if test $ac_cv_func_obstack = yes; then
15234
15235 cat >>confdefs.h <<\_ACEOF
15236 #define HAVE_OBSTACK 1
15237 _ACEOF
15238
15239 else
15240
15241
15242
15243
15244
15245
15246
15247
15248 gl_LIBOBJS="$gl_LIBOBJS obstack.$ac_objext"
15249
15250 fi
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261 gl_LIBOBJS="$gl_LIBOBJS quote.$ac_objext"
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273
15274 gl_LIBOBJS="$gl_LIBOBJS quotearg.$ac_objext"
15275
15276
15277
15278
15279
15280
15281
15282
15283 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
15284 $as_echo_n "checking for mbstate_t... " >&6; }
15285 if test "${ac_cv_type_mbstate_t+set}" = set; then
15286 $as_echo_n "(cached) " >&6
15287 else
15288 cat >conftest.$ac_ext <<_ACEOF
15289 /* confdefs.h. */
15290 _ACEOF
15291 cat confdefs.h >>conftest.$ac_ext
15292 cat >>conftest.$ac_ext <<_ACEOF
15293 /* end confdefs.h. */
15294 $ac_includes_default
15295 # include <wchar.h>
15296 int
15297 main ()
15298 {
15299 mbstate_t x; return sizeof x;
15300 ;
15301 return 0;
15302 }
15303 _ACEOF
15304 rm -f conftest.$ac_objext
15305 if { (ac_try="$ac_compile"
15306 case "(($ac_try" in
15307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15308 *) ac_try_echo=$ac_try;;
15309 esac
15310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15311 $as_echo "$ac_try_echo") >&5
15312 (eval "$ac_compile") 2>conftest.er1
15313 ac_status=$?
15314 grep -v '^ *+' conftest.er1 >conftest.err
15315 rm -f conftest.er1
15316 cat conftest.err >&5
15317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); } && {
15319 test -z "$ac_c_werror_flag" ||
15320 test ! -s conftest.err
15321 } && test -s conftest.$ac_objext; then
15322 ac_cv_type_mbstate_t=yes
15323 else
15324 $as_echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.$ac_ext >&5
15326
15327 ac_cv_type_mbstate_t=no
15328 fi
15329
15330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15331 fi
15332 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
15333 $as_echo "$ac_cv_type_mbstate_t" >&6; }
15334 if test $ac_cv_type_mbstate_t = yes; then
15335
15336 cat >>confdefs.h <<\_ACEOF
15337 #define HAVE_MBSTATE_T 1
15338 _ACEOF
15339
15340 else
15341
15342 cat >>confdefs.h <<\_ACEOF
15343 #define mbstate_t int
15344 _ACEOF
15345
15346 fi
15347
15348 { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are prope rly declared" >&5
15349 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >& 6; }
15350 if test "${gl_cv_func_mbrtowc+set}" = set; then
15351 $as_echo_n "(cached) " >&6
15352 else
15353 cat >conftest.$ac_ext <<_ACEOF
15354 /* confdefs.h. */
15355 _ACEOF
15356 cat confdefs.h >>conftest.$ac_ext
15357 cat >>conftest.$ac_ext <<_ACEOF
15358 /* end confdefs.h. */
15359 #include <wchar.h>
15360 int
15361 main ()
15362 {
15363 wchar_t wc;
15364 char const s[] = "";
15365 size_t n = 1;
15366 mbstate_t state;
15367 return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
15368 ;
15369 return 0;
15370 }
15371 _ACEOF
15372 rm -f conftest.$ac_objext conftest$ac_exeext
15373 if { (ac_try="$ac_link"
15374 case "(($ac_try" in
15375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15376 *) ac_try_echo=$ac_try;;
15377 esac
15378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15379 $as_echo "$ac_try_echo") >&5
15380 (eval "$ac_link") 2>conftest.er1
15381 ac_status=$?
15382 grep -v '^ *+' conftest.er1 >conftest.err
15383 rm -f conftest.er1
15384 cat conftest.err >&5
15385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); } && {
15387 test -z "$ac_c_werror_flag" ||
15388 test ! -s conftest.err
15389 } && test -s conftest$ac_exeext && {
15390 test "$cross_compiling" = yes ||
15391 $as_test_x conftest$ac_exeext
15392 }; then
15393 gl_cv_func_mbrtowc=yes
15394 else
15395 $as_echo "$as_me: failed program was:" >&5
15396 sed 's/^/| /' conftest.$ac_ext >&5
15397
15398 gl_cv_func_mbrtowc=no
15399 fi
15400
15401 rm -rf conftest.dSYM
15402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15403 conftest$ac_exeext conftest.$ac_ext
15404 fi
15405 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc" >&5
15406 $as_echo "$gl_cv_func_mbrtowc" >&6; }
15407 if test $gl_cv_func_mbrtowc = yes; then
15408
15409 cat >>confdefs.h <<\_ACEOF
15410 #define HAVE_MBRTOWC 1
15411 _ACEOF
15412
15413 fi
15414
15415
15416
15417
15418
15419 # Define two additional variables used in the Makefile substitution.
15420
15421 if test "$ac_cv_header_stdbool_h" = yes; then
15422 STDBOOL_H=''
15423 else
15424 STDBOOL_H='stdbool.h'
15425 fi
15426
15427
15428 if test "$ac_cv_type__Bool" = yes; then
15429 HAVE__BOOL=1
15430 else
15431 HAVE__BOOL=0
15432 fi
15433
15434
15435
15436
15437
15438 if test $ac_cv_type_long_long_int = yes; then
15439 HAVE_LONG_LONG_INT=1
15440 else
15441 HAVE_LONG_LONG_INT=0
15442 fi
15443
15444
15445 if test $ac_cv_type_unsigned_long_long_int = yes; then
15446 HAVE_UNSIGNED_LONG_LONG_INT=1
15447 else
15448 HAVE_UNSIGNED_LONG_LONG_INT=0
15449 fi
15450
15451
15452 if test $ac_cv_header_inttypes_h = yes; then
15453 HAVE_INTTYPES_H=1
15454 else
15455 HAVE_INTTYPES_H=0
15456 fi
15457
15458
15459 if test $ac_cv_header_sys_types_h = yes; then
15460 HAVE_SYS_TYPES_H=1
15461 else
15462 HAVE_SYS_TYPES_H=0
15463 fi
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477 if test $gl_cv_have_include_next = yes; then
15478 gl_cv_next_stdint_h='<'stdint.h'>'
15479 else
15480 { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
15481 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
15482 if test "${gl_cv_next_stdint_h+set}" = set; then
15483 $as_echo_n "(cached) " >&6
15484 else
15485
15486 if test $ac_cv_header_stdint_h = yes; then
15487 cat >conftest.$ac_ext <<_ACEOF
15488 /* confdefs.h. */
15489 _ACEOF
15490 cat confdefs.h >>conftest.$ac_ext
15491 cat >>conftest.$ac_ext <<_ACEOF
15492 /* end confdefs.h. */
15493 #include <stdint.h>
15494
15495 _ACEOF
15496 case "$host_ os" in
15497 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15498 *) gl_absname_cpp="$ac_cpp" ;;
15499 esac
15500 gl_cv_next_stdint_h='"'`(eval "$gl_absname_c pp conftest.$ac_ext") 2>&5 |
15501 sed -n '\#/stdint.h#{
15502 s#.*"\(.*/stdint.h\)".*#\1#
15503 s#^/[^/]#//&#
15504 p
15505 q
15506 }'`'"'
15507 else
15508 gl_cv_next_stdint_h='<'stdint.h'>'
15509 fi
15510
15511 fi
15512 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
15513 $as_echo "$gl_cv_next_stdint_h" >&6; }
15514 fi
15515 NEXT_STDINT_H=$gl_cv_next_stdint_h
15516
15517
15518
15519 if test $ac_cv_header_stdint_h = yes; then
15520 HAVE_STDINT_H=1
15521 else
15522 HAVE_STDINT_H=0
15523 fi
15524
15525
15526 if test $ac_cv_header_stdint_h = yes; then
15527 { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
15528 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
15529 if test "${gl_cv_header_working_stdint_h+set}" = set; then
15530 $as_echo_n "(cached) " >&6
15531 else
15532 gl_cv_header_working_stdint_h=no
15533 cat >conftest.$ac_ext <<_ACEOF
15534
15535 /* confdefs.h. */
15536 _ACEOF
15537 cat confdefs.h >>conftest.$ac_ext
15538 cat >>conftest.$ac_ext <<_ACEOF
15539 /* end confdefs.h. */
15540
15541 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
15542 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
15543 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
15544 #include <stdint.h>
15545 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
15546 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
15547 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
15548 #endif
15549
15550
15551 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15552 included before <wchar.h>. */
15553 #include <stddef.h>
15554 #include <signal.h>
15555 #if HAVE_WCHAR_H
15556 # include <stdio.h>
15557 # include <time.h>
15558 # include <wchar.h>
15559 #endif
15560
15561
15562 #ifdef INT8_MAX
15563 int8_t a1 = INT8_MAX;
15564 int8_t a1min = INT8_MIN;
15565 #endif
15566 #ifdef INT16_MAX
15567 int16_t a2 = INT16_MAX;
15568 int16_t a2min = INT16_MIN;
15569 #endif
15570 #ifdef INT32_MAX
15571 int32_t a3 = INT32_MAX;
15572 int32_t a3min = INT32_MIN;
15573 #endif
15574 #ifdef INT64_MAX
15575 int64_t a4 = INT64_MAX;
15576 int64_t a4min = INT64_MIN;
15577 #endif
15578 #ifdef UINT8_MAX
15579 uint8_t b1 = UINT8_MAX;
15580 #else
15581 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
15582 #endif
15583 #ifdef UINT16_MAX
15584 uint16_t b2 = UINT16_MAX;
15585 #endif
15586 #ifdef UINT32_MAX
15587 uint32_t b3 = UINT32_MAX;
15588 #endif
15589 #ifdef UINT64_MAX
15590 uint64_t b4 = UINT64_MAX;
15591 #endif
15592 int_least8_t c1 = INT8_C (0x7f);
15593 int_least8_t c1max = INT_LEAST8_MAX;
15594 int_least8_t c1min = INT_LEAST8_MIN;
15595 int_least16_t c2 = INT16_C (0x7fff);
15596 int_least16_t c2max = INT_LEAST16_MAX;
15597 int_least16_t c2min = INT_LEAST16_MIN;
15598 int_least32_t c3 = INT32_C (0x7fffffff);
15599 int_least32_t c3max = INT_LEAST32_MAX;
15600 int_least32_t c3min = INT_LEAST32_MIN;
15601 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
15602 int_least64_t c4max = INT_LEAST64_MAX;
15603 int_least64_t c4min = INT_LEAST64_MIN;
15604 uint_least8_t d1 = UINT8_C (0xff);
15605 uint_least8_t d1max = UINT_LEAST8_MAX;
15606 uint_least16_t d2 = UINT16_C (0xffff);
15607 uint_least16_t d2max = UINT_LEAST16_MAX;
15608 uint_least32_t d3 = UINT32_C (0xffffffff);
15609 uint_least32_t d3max = UINT_LEAST32_MAX;
15610 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
15611 uint_least64_t d4max = UINT_LEAST64_MAX;
15612 int_fast8_t e1 = INT_FAST8_MAX;
15613 int_fast8_t e1min = INT_FAST8_MIN;
15614 int_fast16_t e2 = INT_FAST16_MAX;
15615 int_fast16_t e2min = INT_FAST16_MIN;
15616 int_fast32_t e3 = INT_FAST32_MAX;
15617 int_fast32_t e3min = INT_FAST32_MIN;
15618 int_fast64_t e4 = INT_FAST64_MAX;
15619 int_fast64_t e4min = INT_FAST64_MIN;
15620 uint_fast8_t f1 = UINT_FAST8_MAX;
15621 uint_fast16_t f2 = UINT_FAST16_MAX;
15622 uint_fast32_t f3 = UINT_FAST32_MAX;
15623 uint_fast64_t f4 = UINT_FAST64_MAX;
15624 #ifdef INTPTR_MAX
15625 intptr_t g = INTPTR_MAX;
15626 intptr_t gmin = INTPTR_MIN;
15627 #endif
15628 #ifdef UINTPTR_MAX
15629 uintptr_t h = UINTPTR_MAX;
15630 #endif
15631 intmax_t i = INTMAX_MAX;
15632 uintmax_t j = UINTMAX_MAX;
15633
15634 #include <limits.h> /* for CHAR_BIT */
15635 #define TYPE_MINIMUM(t) \
15636 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
15637 #define TYPE_MAXIMUM(t) \
15638 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
15639 struct s {
15640 int check_PTRDIFF:
15641 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
15642 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
15643 ? 1 : -1;
15644 /* Detect bug in FreeBSD 6.0 / ia64. */
15645 int check_SIG_ATOMIC:
15646 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
15647 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
15648 ? 1 : -1;
15649 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
15650 int check_WCHAR:
15651 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
15652 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
15653 ? 1 : -1;
15654 /* Detect bug in mingw. */
15655 int check_WINT:
15656 WINT_MIN == TYPE_MINIMUM (wint_t)
15657 && WINT_MAX == TYPE_MAXIMUM (wint_t)
15658 ? 1 : -1;
15659
15660 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
15661 int check_UINT8_C:
15662 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
15663 int check_UINT16_C:
15664 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
15665
15666 /* Detect bugs in OpenBSD 3.9 stdint.h. */
15667 #ifdef UINT8_MAX
15668 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
15669 #endif
15670 #ifdef UINT16_MAX
15671 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
15672 #endif
15673 #ifdef UINT32_MAX
15674 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
15675 #endif
15676 #ifdef UINT64_MAX
15677 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
15678 #endif
15679 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
15680 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
15681 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
15682 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
15683 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
15684 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
15685 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
15686 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
15687 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
15688 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
15689 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
15690 };
15691
15692 int
15693 main ()
15694 {
15695
15696 ;
15697 return 0;
15698 }
15699 _ACEOF
15700 rm -f conftest.$ac_objext
15701 if { (ac_try="$ac_compile"
15702 case "(($ac_try" in
15703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15704 *) ac_try_echo=$ac_try;;
15705 esac
15706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15707 $as_echo "$ac_try_echo") >&5
15708 (eval "$ac_compile") 2>conftest.er1
15709 ac_status=$?
15710 grep -v '^ *+' conftest.er1 >conftest.err
15711 rm -f conftest.er1
15712 cat conftest.err >&5
15713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15714 (exit $ac_status); } && {
15715 test -z "$ac_c_werror_flag" ||
15716 test ! -s conftest.err
15717 } && test -s conftest.$ac_objext; then
15718 gl_cv_header_working_stdint_h=yes
15719 else
15720 $as_echo "$as_me: failed program was:" >&5
15721 sed 's/^/| /' conftest.$ac_ext >&5
15722
15723
15724 fi
15725
15726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15727 fi
15728 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
15729 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
15730 fi
15731 if test "$gl_cv_header_working_stdint_h" = yes; then
15732 STDINT_H=
15733 else
15734
15735
15736 for ac_header in sys/inttypes.h sys/bitypes.h
15737 do
15738 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15739 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15740 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15741 $as_echo_n "checking for $ac_header... " >&6; }
15742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15743 $as_echo_n "(cached) " >&6
15744 fi
15745 ac_res=`eval 'as_val=${'$as_ac_Header'}
15746 $as_echo "$as_val"'`
15747 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15748 $as_echo "$ac_res" >&6; }
15749 else
15750 # Is the header compilable?
15751 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15752 $as_echo_n "checking $ac_header usability... " >&6; }
15753 cat >conftest.$ac_ext <<_ACEOF
15754 /* confdefs.h. */
15755 _ACEOF
15756 cat confdefs.h >>conftest.$ac_ext
15757 cat >>conftest.$ac_ext <<_ACEOF
15758 /* end confdefs.h. */
15759 $ac_includes_default
15760 #include <$ac_header>
15761 _ACEOF
15762 rm -f conftest.$ac_objext
15763 if { (ac_try="$ac_compile"
15764 case "(($ac_try" in
15765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15766 *) ac_try_echo=$ac_try;;
15767 esac
15768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15769 $as_echo "$ac_try_echo") >&5
15770 (eval "$ac_compile") 2>conftest.er1
15771 ac_status=$?
15772 grep -v '^ *+' conftest.er1 >conftest.err
15773 rm -f conftest.er1
15774 cat conftest.err >&5
15775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); } && {
15777 test -z "$ac_c_werror_flag" ||
15778 test ! -s conftest.err
15779 } && test -s conftest.$ac_objext; then
15780 ac_header_compiler=yes
15781 else
15782 $as_echo "$as_me: failed program was:" >&5
15783 sed 's/^/| /' conftest.$ac_ext >&5
15784
15785 ac_header_compiler=no
15786 fi
15787
15788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15789 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15790 $as_echo "$ac_header_compiler" >&6; }
15791
15792 # Is the header present?
15793 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15794 $as_echo_n "checking $ac_header presence... " >&6; }
15795 cat >conftest.$ac_ext <<_ACEOF
15796 /* confdefs.h. */
15797 _ACEOF
15798 cat confdefs.h >>conftest.$ac_ext
15799 cat >>conftest.$ac_ext <<_ACEOF
15800 /* end confdefs.h. */
15801 #include <$ac_header>
15802 _ACEOF
15803 if { (ac_try="$ac_cpp conftest.$ac_ext"
15804 case "(($ac_try" in
15805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15806 *) ac_try_echo=$ac_try;;
15807 esac
15808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15809 $as_echo "$ac_try_echo") >&5
15810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15811 ac_status=$?
15812 grep -v '^ *+' conftest.er1 >conftest.err
15813 rm -f conftest.er1
15814 cat conftest.err >&5
15815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); } >/dev/null && {
15817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15818 test ! -s conftest.err
15819 }; then
15820 ac_header_preproc=yes
15821 else
15822 $as_echo "$as_me: failed program was:" >&5
15823 sed 's/^/| /' conftest.$ac_ext >&5
15824
15825 ac_header_preproc=no
15826 fi
15827
15828 rm -f conftest.err conftest.$ac_ext
15829 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15830 $as_echo "$ac_header_preproc" >&6; }
15831
15832 # So? What about this header?
15833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15834 yes:no: )
15835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, r ejected by the preprocessor!" >&5
15836 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compile r's result" >&5
15838 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >& 2;}
15839 ac_header_preproc=yes
15840 ;;
15841 no:yes:* )
15842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compi led" >&5
15843 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prere quisite headers?" >&5
15845 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite header s?" >&2;}
15846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentat ion" >&5
15847 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But C annot Be Compiled\"" >&5
15849 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compi led\"" >&2;}
15850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preproc essor's result" >&5
15851 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result " >&2;}
15852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15853 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take pre cedence" >&2;}
15854 ( cat <<\_ASBOX
15855 ## -------------------------------- ##
15856 ## Report this to bug-bison@gnu.org ##
15857 ## -------------------------------- ##
15858 _ASBOX
15859 ) | sed "s/^/$as_me: WARNING: /" >&2
15860 ;;
15861 esac
15862 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15863 $as_echo_n "checking for $ac_header... " >&6; }
15864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15865 $as_echo_n "(cached) " >&6
15866 else
15867 eval "$as_ac_Header=\$ac_header_preproc"
15868 fi
15869 ac_res=`eval 'as_val=${'$as_ac_Header'}
15870 $as_echo "$as_val"'`
15871 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15872 $as_echo "$ac_res" >&6; }
15873
15874 fi
15875 if test `eval 'as_val=${'$as_ac_Header'}
15876 $as_echo "$as_val"'` = yes; then
15877 cat >>confdefs.h <<_ACEOF
15878 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15879 _ACEOF
15880
15881 fi
15882
15883 done
15884
15885 if test $ac_cv_header_sys_inttypes_h = yes; then
15886 HAVE_SYS_INTTYPES_H=1
15887 else
15888 HAVE_SYS_INTTYPES_H=0
15889 fi
15890
15891 if test $ac_cv_header_sys_bitypes_h = yes; then
15892 HAVE_SYS_BITYPES_H=1
15893 else
15894 HAVE_SYS_BITYPES_H=0
15895 fi
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
15914 { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
15915 $as_echo_n "checking for bit size of $gltype... " >&6; }
15916 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
15917 $as_echo_n "(cached) " >&6
15918 else
15919 if test "$cross_compiling" = yes; then
15920 # Depending upon the size, compute the lo and hi bounds.
15921 cat >conftest.$ac_ext <<_ACEOF
15922 /* confdefs.h. */
15923 _ACEOF
15924 cat confdefs.h >>conftest.$ac_ext
15925 cat >>conftest.$ac_ext <<_ACEOF
15926 /* end confdefs.h. */
15927
15928 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15929 included before <wchar.h>. */
15930 #include <stddef.h>
15931 #include <signal.h>
15932 #if HAVE_WCHAR_H
15933 # include <stdio.h>
15934 # include <time.h>
15935 # include <wchar.h>
15936 #endif
15937
15938 #include <limits.h>
15939 int
15940 main ()
15941 {
15942 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
15943 test_array [0] = 0
15944
15945 ;
15946 return 0;
15947 }
15948 _ACEOF
15949 rm -f conftest.$ac_objext
15950 if { (ac_try="$ac_compile"
15951 case "(($ac_try" in
15952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15953 *) ac_try_echo=$ac_try;;
15954 esac
15955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15956 $as_echo "$ac_try_echo") >&5
15957 (eval "$ac_compile") 2>conftest.er1
15958 ac_status=$?
15959 grep -v '^ *+' conftest.er1 >conftest.err
15960 rm -f conftest.er1
15961 cat conftest.err >&5
15962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); } && {
15964 test -z "$ac_c_werror_flag" ||
15965 test ! -s conftest.err
15966 } && test -s conftest.$ac_objext; then
15967 ac_lo=0 ac_mid=0
15968 while :; do
15969 cat >conftest.$ac_ext <<_ACEOF
15970 /* confdefs.h. */
15971 _ACEOF
15972 cat confdefs.h >>conftest.$ac_ext
15973 cat >>conftest.$ac_ext <<_ACEOF
15974 /* end confdefs.h. */
15975
15976 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
15977 included before <wchar.h>. */
15978 #include <stddef.h>
15979 #include <signal.h>
15980 #if HAVE_WCHAR_H
15981 # include <stdio.h>
15982 # include <time.h>
15983 # include <wchar.h>
15984 #endif
15985
15986 #include <limits.h>
15987 int
15988 main ()
15989 {
15990 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
15991 test_array [0] = 0
15992
15993 ;
15994 return 0;
15995 }
15996 _ACEOF
15997 rm -f conftest.$ac_objext
15998 if { (ac_try="$ac_compile"
15999 case "(($ac_try" in
16000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16001 *) ac_try_echo=$ac_try;;
16002 esac
16003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16004 $as_echo "$ac_try_echo") >&5
16005 (eval "$ac_compile") 2>conftest.er1
16006 ac_status=$?
16007 grep -v '^ *+' conftest.er1 >conftest.err
16008 rm -f conftest.er1
16009 cat conftest.err >&5
16010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); } && {
16012 test -z "$ac_c_werror_flag" ||
16013 test ! -s conftest.err
16014 } && test -s conftest.$ac_objext; then
16015 ac_hi=$ac_mid; break
16016 else
16017 $as_echo "$as_me: failed program was:" >&5
16018 sed 's/^/| /' conftest.$ac_ext >&5
16019
16020 ac_lo=`expr $ac_mid + 1`
16021 if test $ac_lo -le $ac_mid; then
16022 ac_lo= ac_hi=
16023 break
16024 fi
16025 ac_mid=`expr 2 '*' $ac_mid + 1`
16026 fi
16027
16028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16029 done
16030 else
16031 $as_echo "$as_me: failed program was:" >&5
16032 sed 's/^/| /' conftest.$ac_ext >&5
16033
16034 cat >conftest.$ac_ext <<_ACEOF
16035 /* confdefs.h. */
16036 _ACEOF
16037 cat confdefs.h >>conftest.$ac_ext
16038 cat >>conftest.$ac_ext <<_ACEOF
16039 /* end confdefs.h. */
16040
16041 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16042 included before <wchar.h>. */
16043 #include <stddef.h>
16044 #include <signal.h>
16045 #if HAVE_WCHAR_H
16046 # include <stdio.h>
16047 # include <time.h>
16048 # include <wchar.h>
16049 #endif
16050
16051 #include <limits.h>
16052 int
16053 main ()
16054 {
16055 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
16056 test_array [0] = 0
16057
16058 ;
16059 return 0;
16060 }
16061 _ACEOF
16062 rm -f conftest.$ac_objext
16063 if { (ac_try="$ac_compile"
16064 case "(($ac_try" in
16065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16066 *) ac_try_echo=$ac_try;;
16067 esac
16068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16069 $as_echo "$ac_try_echo") >&5
16070 (eval "$ac_compile") 2>conftest.er1
16071 ac_status=$?
16072 grep -v '^ *+' conftest.er1 >conftest.err
16073 rm -f conftest.er1
16074 cat conftest.err >&5
16075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076 (exit $ac_status); } && {
16077 test -z "$ac_c_werror_flag" ||
16078 test ! -s conftest.err
16079 } && test -s conftest.$ac_objext; then
16080 ac_hi=-1 ac_mid=-1
16081 while :; do
16082 cat >conftest.$ac_ext <<_ACEOF
16083 /* confdefs.h. */
16084 _ACEOF
16085 cat confdefs.h >>conftest.$ac_ext
16086 cat >>conftest.$ac_ext <<_ACEOF
16087 /* end confdefs.h. */
16088
16089 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16090 included before <wchar.h>. */
16091 #include <stddef.h>
16092 #include <signal.h>
16093 #if HAVE_WCHAR_H
16094 # include <stdio.h>
16095 # include <time.h>
16096 # include <wchar.h>
16097 #endif
16098
16099 #include <limits.h>
16100 int
16101 main ()
16102 {
16103 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
16104 test_array [0] = 0
16105
16106 ;
16107 return 0;
16108 }
16109 _ACEOF
16110 rm -f conftest.$ac_objext
16111 if { (ac_try="$ac_compile"
16112 case "(($ac_try" in
16113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16114 *) ac_try_echo=$ac_try;;
16115 esac
16116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16117 $as_echo "$ac_try_echo") >&5
16118 (eval "$ac_compile") 2>conftest.er1
16119 ac_status=$?
16120 grep -v '^ *+' conftest.er1 >conftest.err
16121 rm -f conftest.er1
16122 cat conftest.err >&5
16123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); } && {
16125 test -z "$ac_c_werror_flag" ||
16126 test ! -s conftest.err
16127 } && test -s conftest.$ac_objext; then
16128 ac_lo=$ac_mid; break
16129 else
16130 $as_echo "$as_me: failed program was:" >&5
16131 sed 's/^/| /' conftest.$ac_ext >&5
16132
16133 ac_hi=`expr '(' $ac_mid ')' - 1`
16134 if test $ac_mid -le $ac_hi; then
16135 ac_lo= ac_hi=
16136 break
16137 fi
16138 ac_mid=`expr 2 '*' $ac_mid`
16139 fi
16140
16141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16142 done
16143 else
16144 $as_echo "$as_me: failed program was:" >&5
16145 sed 's/^/| /' conftest.$ac_ext >&5
16146
16147 ac_lo= ac_hi=
16148 fi
16149
16150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16151 fi
16152
16153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16154 # Binary search between lo and hi bounds.
16155 while test "x$ac_lo" != "x$ac_hi"; do
16156 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16157 cat >conftest.$ac_ext <<_ACEOF
16158 /* confdefs.h. */
16159 _ACEOF
16160 cat confdefs.h >>conftest.$ac_ext
16161 cat >>conftest.$ac_ext <<_ACEOF
16162 /* end confdefs.h. */
16163
16164 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16165 included before <wchar.h>. */
16166 #include <stddef.h>
16167 #include <signal.h>
16168 #if HAVE_WCHAR_H
16169 # include <stdio.h>
16170 # include <time.h>
16171 # include <wchar.h>
16172 #endif
16173
16174 #include <limits.h>
16175 int
16176 main ()
16177 {
16178 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
16179 test_array [0] = 0
16180
16181 ;
16182 return 0;
16183 }
16184 _ACEOF
16185 rm -f conftest.$ac_objext
16186 if { (ac_try="$ac_compile"
16187 case "(($ac_try" in
16188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16189 *) ac_try_echo=$ac_try;;
16190 esac
16191 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16192 $as_echo "$ac_try_echo") >&5
16193 (eval "$ac_compile") 2>conftest.er1
16194 ac_status=$?
16195 grep -v '^ *+' conftest.er1 >conftest.err
16196 rm -f conftest.er1
16197 cat conftest.err >&5
16198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); } && {
16200 test -z "$ac_c_werror_flag" ||
16201 test ! -s conftest.err
16202 } && test -s conftest.$ac_objext; then
16203 ac_hi=$ac_mid
16204 else
16205 $as_echo "$as_me: failed program was:" >&5
16206 sed 's/^/| /' conftest.$ac_ext >&5
16207
16208 ac_lo=`expr '(' $ac_mid ')' + 1`
16209 fi
16210
16211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16212 done
16213 case $ac_lo in
16214 ?*) result=$ac_lo;;
16215 '') result=unknown ;;
16216 esac
16217 else
16218 cat >conftest.$ac_ext <<_ACEOF
16219 /* confdefs.h. */
16220 _ACEOF
16221 cat confdefs.h >>conftest.$ac_ext
16222 cat >>conftest.$ac_ext <<_ACEOF
16223 /* end confdefs.h. */
16224
16225 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16226 included before <wchar.h>. */
16227 #include <stddef.h>
16228 #include <signal.h>
16229 #if HAVE_WCHAR_H
16230 # include <stdio.h>
16231 # include <time.h>
16232 # include <wchar.h>
16233 #endif
16234
16235 #include <limits.h>
16236 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
16237 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
16238 #include <stdio.h>
16239 #include <stdlib.h>
16240 int
16241 main ()
16242 {
16243
16244 FILE *f = fopen ("conftest.val", "w");
16245 if (! f)
16246 return 1;
16247 if ((sizeof ($gltype) * CHAR_BIT) < 0)
16248 {
16249 long int i = longval ();
16250 if (i != (sizeof ($gltype) * CHAR_BIT))
16251 return 1;
16252 fprintf (f, "%ld", i);
16253 }
16254 else
16255 {
16256 unsigned long int i = ulongval ();
16257 if (i != (sizeof ($gltype) * CHAR_BIT))
16258 return 1;
16259 fprintf (f, "%lu", i);
16260 }
16261 /* Do not output a trailing newline, as this causes \r\n confusion
16262 on some platforms. */
16263 return ferror (f) || fclose (f) != 0;
16264
16265 ;
16266 return 0;
16267 }
16268 _ACEOF
16269 rm -f conftest$ac_exeext
16270 if { (ac_try="$ac_link"
16271 case "(($ac_try" in
16272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16273 *) ac_try_echo=$ac_try;;
16274 esac
16275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16276 $as_echo "$ac_try_echo") >&5
16277 (eval "$ac_link") 2>&5
16278 ac_status=$?
16279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16281 { (case "(($ac_try" in
16282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283 *) ac_try_echo=$ac_try;;
16284 esac
16285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16286 $as_echo "$ac_try_echo") >&5
16287 (eval "$ac_try") 2>&5
16288 ac_status=$?
16289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; }; then
16291 result=`cat conftest.val`
16292 else
16293 $as_echo "$as_me: program exited with status $ac_status" >&5
16294 $as_echo "$as_me: failed program was:" >&5
16295 sed 's/^/| /' conftest.$ac_ext >&5
16296
16297 ( exit $ac_status )
16298 result=unknown
16299 fi
16300 rm -rf conftest.dSYM
16301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$a c_objext conftest.$ac_ext
16302 fi
16303 rm -f conftest.val
16304 eval gl_cv_bitsizeof_${gltype}=\$result
16305
16306 fi
16307 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
16308 $as_echo "$as_val"'`
16309 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16310 $as_echo "$ac_res" >&6; }
16311 eval result=\$gl_cv_bitsizeof_${gltype}
16312 if test $result = unknown; then
16313 result=0
16314 fi
16315 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQ RSTUVWXYZ_'`
16316 cat >>confdefs.h <<_ACEOF
16317 #define BITSIZEOF_${GLTYPE} $result
16318 _ACEOF
16319
16320 eval BITSIZEOF_${GLTYPE}=\$result
16321 done
16322
16323
16324
16325
16326
16327
16328
16329 for gltype in sig_atomic_t wchar_t wint_t ; do
16330 { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
16331 $as_echo_n "checking whether $gltype is signed... " >&6; }
16332 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
16333 $as_echo_n "(cached) " >&6
16334 else
16335 cat >conftest.$ac_ext <<_ACEOF
16336 /* confdefs.h. */
16337 _ACEOF
16338 cat confdefs.h >>conftest.$ac_ext
16339 cat >>conftest.$ac_ext <<_ACEOF
16340 /* end confdefs.h. */
16341
16342 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16343 included before <wchar.h>. */
16344 #include <stddef.h>
16345 #include <signal.h>
16346 #if HAVE_WCHAR_H
16347 # include <stdio.h>
16348 # include <time.h>
16349 # include <wchar.h>
16350 #endif
16351
16352 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
16353 int
16354 main ()
16355 {
16356
16357 ;
16358 return 0;
16359 }
16360 _ACEOF
16361 rm -f conftest.$ac_objext
16362 if { (ac_try="$ac_compile"
16363 case "(($ac_try" in
16364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16365 *) ac_try_echo=$ac_try;;
16366 esac
16367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16368 $as_echo "$ac_try_echo") >&5
16369 (eval "$ac_compile") 2>conftest.er1
16370 ac_status=$?
16371 grep -v '^ *+' conftest.er1 >conftest.err
16372 rm -f conftest.er1
16373 cat conftest.err >&5
16374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375 (exit $ac_status); } && {
16376 test -z "$ac_c_werror_flag" ||
16377 test ! -s conftest.err
16378 } && test -s conftest.$ac_objext; then
16379 result=yes
16380 else
16381 $as_echo "$as_me: failed program was:" >&5
16382 sed 's/^/| /' conftest.$ac_ext >&5
16383
16384 result=no
16385 fi
16386
16387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16388 eval gl_cv_type_${gltype}_signed=\$result
16389
16390 fi
16391 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
16392 $as_echo "$as_val"'`
16393 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16394 $as_echo "$ac_res" >&6; }
16395 eval result=\$gl_cv_type_${gltype}_signed
16396 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRS TUVWXYZ_'`
16397 if test "$result" = yes; then
16398 cat >>confdefs.h <<_ACEOF
16399 #define HAVE_SIGNED_${GLTYPE} 1
16400 _ACEOF
16401
16402 eval HAVE_SIGNED_${GLTYPE}=1
16403 else
16404 eval HAVE_SIGNED_${GLTYPE}=0
16405 fi
16406 done
16407
16408
16409 gl_cv_type_ptrdiff_t_signed=yes
16410 gl_cv_type_size_t_signed=no
16411
16412
16413
16414
16415
16416
16417
16418 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
16419 { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
16420 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
16421 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
16422 $as_echo_n "(cached) " >&6
16423 else
16424 eval gl_cv_type_${gltype}_suffix=no
16425 eval result=\$gl_cv_type_${gltype}_signed
16426 if test "$result" = yes; then
16427 glsufu=
16428 else
16429 glsufu=u
16430 fi
16431 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
16432 case $glsuf in
16433 '') gltype1='int';;
16434 l) gltype1='long int';;
16435 ll) gltype1='long long int';;
16436 i64) gltype1='__int64';;
16437 u) gltype1='unsigned int';;
16438 ul) gltype1='unsigned long int';;
16439 ull) gltype1='unsigned long long int';;
16440 ui64)gltype1='unsigned __int64';;
16441 esac
16442 cat >conftest.$ac_ext <<_ACEOF
16443 /* confdefs.h. */
16444 _ACEOF
16445 cat confdefs.h >>conftest.$ac_ext
16446 cat >>conftest.$ac_ext <<_ACEOF
16447 /* end confdefs.h. */
16448
16449 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16450 included before <wchar.h>. */
16451 #include <stddef.h>
16452 #include <signal.h>
16453 #if HAVE_WCHAR_H
16454 # include <stdio.h>
16455 # include <time.h>
16456 # include <wchar.h>
16457 #endif
16458
16459 extern $gltype foo;
16460 extern $gltype1 foo;
16461 int
16462 main ()
16463 {
16464
16465 ;
16466 return 0;
16467 }
16468 _ACEOF
16469 rm -f conftest.$ac_objext
16470 if { (ac_try="$ac_compile"
16471 case "(($ac_try" in
16472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16473 *) ac_try_echo=$ac_try;;
16474 esac
16475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16476 $as_echo "$ac_try_echo") >&5
16477 (eval "$ac_compile") 2>conftest.er1
16478 ac_status=$?
16479 grep -v '^ *+' conftest.er1 >conftest.err
16480 rm -f conftest.er1
16481 cat conftest.err >&5
16482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); } && {
16484 test -z "$ac_c_werror_flag" ||
16485 test ! -s conftest.err
16486 } && test -s conftest.$ac_objext; then
16487 eval gl_cv_type_${gltype}_suffix=\$glsuf
16488 else
16489 $as_echo "$as_me: failed program was:" >&5
16490 sed 's/^/| /' conftest.$ac_ext >&5
16491
16492
16493 fi
16494
16495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16496 eval result=\$gl_cv_type_${gltype}_suffix
16497 test "$result" != no && break
16498 done
16499 fi
16500 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
16501 $as_echo "$as_val"'`
16502 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16503 $as_echo "$ac_res" >&6; }
16504 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRS TUVWXYZ_'`
16505 eval result=\$gl_cv_type_${gltype}_suffix
16506 test "$result" = no && result=
16507 eval ${GLTYPE}_SUFFIX=\$result
16508 cat >>confdefs.h <<_ACEOF
16509 #define ${GLTYPE}_SUFFIX $result
16510 _ACEOF
16511
16512 done
16513
16514
16515
16516 STDINT_H=stdint.h
16517 fi
16518
16519
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533 if test $gl_cv_have_include_next = yes; then
16534 gl_cv_next_stdlib_h='<'stdlib.h'>'
16535 else
16536 { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
16537 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
16538 if test "${gl_cv_next_stdlib_h+set}" = set; then
16539 $as_echo_n "(cached) " >&6
16540 else
16541
16542 if test $ac_cv_header_stdlib_h = yes; then
16543 cat >conftest.$ac_ext <<_ACEOF
16544 /* confdefs.h. */
16545 _ACEOF
16546 cat confdefs.h >>conftest.$ac_ext
16547 cat >>conftest.$ac_ext <<_ACEOF
16548 /* end confdefs.h. */
16549 #include <stdlib.h>
16550
16551 _ACEOF
16552 case "$host_ os" in
16553 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16554 *) gl_absname_cpp="$ac_cpp" ;;
16555 esac
16556 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_c pp conftest.$ac_ext") 2>&5 |
16557 sed -n '\#/stdlib.h#{
16558 s#.*"\(.*/stdlib.h\)".*#\1#
16559 s#^/[^/]#//&#
16560 p
16561 q
16562 }'`'"'
16563 else
16564 gl_cv_next_stdlib_h='<'stdlib.h'>'
16565 fi
16566
16567 fi
16568 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
16569 $as_echo "$gl_cv_next_stdlib_h" >&6; }
16570 fi
16571 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
16572
16573
16574
16575 { $as_echo "$as_me:$LINENO: checking for struct random_data" >&5
16576 $as_echo_n "checking for struct random_data... " >&6; }
16577 if test "${ac_cv_type_struct_random_data+set}" = set; then
16578 $as_echo_n "(cached) " >&6
16579 else
16580 ac_cv_type_struct_random_data=no
16581 cat >conftest.$ac_ext <<_ACEOF
16582 /* confdefs.h. */
16583 _ACEOF
16584 cat confdefs.h >>conftest.$ac_ext
16585 cat >>conftest.$ac_ext <<_ACEOF
16586 /* end confdefs.h. */
16587 #include <stdlib.h>
16588
16589 int
16590 main ()
16591 {
16592 if (sizeof (struct random_data))
16593 return 0;
16594 ;
16595 return 0;
16596 }
16597 _ACEOF
16598 rm -f conftest.$ac_objext
16599 if { (ac_try="$ac_compile"
16600 case "(($ac_try" in
16601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16602 *) ac_try_echo=$ac_try;;
16603 esac
16604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16605 $as_echo "$ac_try_echo") >&5
16606 (eval "$ac_compile") 2>conftest.er1
16607 ac_status=$?
16608 grep -v '^ *+' conftest.er1 >conftest.err
16609 rm -f conftest.er1
16610 cat conftest.err >&5
16611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); } && {
16613 test -z "$ac_c_werror_flag" ||
16614 test ! -s conftest.err
16615 } && test -s conftest.$ac_objext; then
16616 cat >conftest.$ac_ext <<_ACEOF
16617 /* confdefs.h. */
16618 _ACEOF
16619 cat confdefs.h >>conftest.$ac_ext
16620 cat >>conftest.$ac_ext <<_ACEOF
16621 /* end confdefs.h. */
16622 #include <stdlib.h>
16623
16624 int
16625 main ()
16626 {
16627 if (sizeof ((struct random_data)))
16628 return 0;
16629 ;
16630 return 0;
16631 }
16632 _ACEOF
16633 rm -f conftest.$ac_objext
16634 if { (ac_try="$ac_compile"
16635 case "(($ac_try" in
16636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637 *) ac_try_echo=$ac_try;;
16638 esac
16639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16640 $as_echo "$ac_try_echo") >&5
16641 (eval "$ac_compile") 2>conftest.er1
16642 ac_status=$?
16643 grep -v '^ *+' conftest.er1 >conftest.err
16644 rm -f conftest.er1
16645 cat conftest.err >&5
16646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); } && {
16648 test -z "$ac_c_werror_flag" ||
16649 test ! -s conftest.err
16650 } && test -s conftest.$ac_objext; then
16651 :
16652 else
16653 $as_echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16655
16656 ac_cv_type_struct_random_data=yes
16657 fi
16658
16659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16660 else
16661 $as_echo "$as_me: failed program was:" >&5
16662 sed 's/^/| /' conftest.$ac_ext >&5
16663
16664
16665 fi
16666
16667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16668 fi
16669 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_random_data" >&5
16670 $as_echo "$ac_cv_type_struct_random_data" >&6; }
16671 if test $ac_cv_type_struct_random_data = yes; then
16672
16673 cat >>confdefs.h <<_ACEOF
16674 #define HAVE_STRUCT_RANDOM_DATA 1
16675 _ACEOF
16676
16677
16678 else
16679 HAVE_STRUCT_RANDOM_DATA=0
16680 fi
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698 for ac_func in stpcpy
16699 do
16700 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16701 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16702 $as_echo_n "checking for $ac_func... " >&6; }
16703 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16704 $as_echo_n "(cached) " >&6
16705 else
16706 cat >conftest.$ac_ext <<_ACEOF
16707 /* confdefs.h. */
16708 _ACEOF
16709 cat confdefs.h >>conftest.$ac_ext
16710 cat >>conftest.$ac_ext <<_ACEOF
16711 /* end confdefs.h. */
16712 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func .
16713 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16714 #define $ac_func innocuous_$ac_func
16715
16716 /* System header to define __stub macros and hopefully few prototypes,
16717 which can conflict with char $ac_func (); below.
16718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16719 <limits.h> exists even on freestanding compilers. */
16720
16721 #ifdef __STDC__
16722 # include <limits.h>
16723 #else
16724 # include <assert.h>
16725 #endif
16726
16727 #undef $ac_func
16728
16729 /* Override any GCC internal prototype to avoid an error.
16730 Use char because int might match the return type of a GCC
16731 builtin and then its argument prototype would still apply. */
16732 #ifdef __cplusplus
16733 extern "C"
16734 #endif
16735 char $ac_func ();
16736 /* The GNU C library defines this for functions which it implements
16737 to always fail with ENOSYS. Some functions are actually named
16738 something starting with __ and the normal name is an alias. */
16739 #if defined __stub_$ac_func || defined __stub___$ac_func
16740 choke me
16741 #endif
16742
16743 int
16744 main ()
16745 {
16746 return $ac_func ();
16747 ;
16748 return 0;
16749 }
16750 _ACEOF
16751 rm -f conftest.$ac_objext conftest$ac_exeext
16752 if { (ac_try="$ac_link"
16753 case "(($ac_try" in
16754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755 *) ac_try_echo=$ac_try;;
16756 esac
16757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16758 $as_echo "$ac_try_echo") >&5
16759 (eval "$ac_link") 2>conftest.er1
16760 ac_status=$?
16761 grep -v '^ *+' conftest.er1 >conftest.err
16762 rm -f conftest.er1
16763 cat conftest.err >&5
16764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); } && {
16766 test -z "$ac_c_werror_flag" ||
16767 test ! -s conftest.err
16768 } && test -s conftest$ac_exeext && {
16769 test "$cross_compiling" = yes ||
16770 $as_test_x conftest$ac_exeext
16771 }; then
16772 eval "$as_ac_var=yes"
16773 else
16774 $as_echo "$as_me: failed program was:" >&5
16775 sed 's/^/| /' conftest.$ac_ext >&5
16776
16777 eval "$as_ac_var=no"
16778 fi
16779
16780 rm -rf conftest.dSYM
16781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16782 conftest$ac_exeext conftest.$ac_ext
16783 fi
16784 ac_res=`eval 'as_val=${'$as_ac_var'}
16785 $as_echo "$as_val"'`
16786 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16787 $as_echo "$ac_res" >&6; }
16788 if test `eval 'as_val=${'$as_ac_var'}
16789 $as_echo "$as_val"'` = yes; then
16790 cat >>confdefs.h <<_ACEOF
16791 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16792 _ACEOF
16793
16794 else
16795
16796 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
16797
16798 fi
16799 done
16800
16801
16802 if test $ac_cv_func_stpcpy = no; then
16803 HAVE_STPCPY=0
16804
16805 :
16806
16807 fi
16808
16809
16810
16811 GNULIB_STPCPY=1
16812
16813
16814
16815 if test $REPLACE_STRERROR = 1; then
16816
16817
16818
16819
16820
16821
16822
16823
16824 gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
16825
16826
16827 cat >>confdefs.h <<_ACEOF
16828 #define REPLACE_STRERROR $REPLACE_STRERROR
16829 _ACEOF
16830
16831 fi
16832
16833
16834
16835 GNULIB_STRERROR=1
16836
16837
16838
16839
16840
16841
16842
16843
16844
16845
16846
16847
16848 if test $ac_cv_have_decl_strndup = no; then
16849 HAVE_DECL_STRNDUP=0
16850 fi
16851
16852 # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
16853 { $as_echo "$as_me:$LINENO: checking for working strndup" >&5
16854 $as_echo_n "checking for working strndup... " >&6; }
16855 if test "${gl_cv_func_strndup+set}" = set; then
16856 $as_echo_n "(cached) " >&6
16857 else
16858 if test "$cross_compiling" = yes; then
16859 { $as_echo "$as_me:$LINENO: checking for strndup" >&5
16860 $as_echo_n "checking for strndup... " >&6; }
16861 if test "${ac_cv_func_strndup+set}" = set; then
16862 $as_echo_n "(cached) " >&6
16863 else
16864 cat >conftest.$ac_ext <<_ACEOF
16865 /* confdefs.h. */
16866 _ACEOF
16867 cat confdefs.h >>conftest.$ac_ext
16868 cat >>conftest.$ac_ext <<_ACEOF
16869 /* end confdefs.h. */
16870 /* Define strndup to an innocuous variant, in case <limits.h> declares strndup.
16871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16872 #define strndup innocuous_strndup
16873
16874 /* System header to define __stub macros and hopefully few prototypes,
16875 which can conflict with char strndup (); below.
16876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16877 <limits.h> exists even on freestanding compilers. */
16878
16879 #ifdef __STDC__
16880 # include <limits.h>
16881 #else
16882 # include <assert.h>
16883 #endif
16884
16885 #undef strndup
16886
16887 /* Override any GCC internal prototype to avoid an error.
16888 Use char because int might match the return type of a GCC
16889 builtin and then its argument prototype would still apply. */
16890 #ifdef __cplusplus
16891 extern "C"
16892 #endif
16893 char strndup ();
16894 /* The GNU C library defines this for functions which it implements
16895 to always fail with ENOSYS. Some functions are actually named
16896 something starting with __ and the normal name is an alias. */
16897 #if defined __stub_strndup || defined __stub___strndup
16898 choke me
16899 #endif
16900
16901 int
16902 main ()
16903 {
16904 return strndup ();
16905 ;
16906 return 0;
16907 }
16908 _ACEOF
16909 rm -f conftest.$ac_objext conftest$ac_exeext
16910 if { (ac_try="$ac_link"
16911 case "(($ac_try" in
16912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16913 *) ac_try_echo=$ac_try;;
16914 esac
16915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16916 $as_echo "$ac_try_echo") >&5
16917 (eval "$ac_link") 2>conftest.er1
16918 ac_status=$?
16919 grep -v '^ *+' conftest.er1 >conftest.err
16920 rm -f conftest.er1
16921 cat conftest.err >&5
16922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); } && {
16924 test -z "$ac_c_werror_flag" ||
16925 test ! -s conftest.err
16926 } && test -s conftest$ac_exeext && {
16927 test "$cross_compiling" = yes ||
16928 $as_test_x conftest$ac_exeext
16929 }; then
16930 ac_cv_func_strndup=yes
16931 else
16932 $as_echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.$ac_ext >&5
16934
16935 ac_cv_func_strndup=no
16936 fi
16937
16938 rm -rf conftest.dSYM
16939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16940 conftest$ac_exeext conftest.$ac_ext
16941 fi
16942 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strndup" >&5
16943 $as_echo "$ac_cv_func_strndup" >&6; }
16944 if test $ac_cv_func_strndup = yes; then
16945 cat >conftest.$ac_ext <<_ACEOF
16946 /* confdefs.h. */
16947 _ACEOF
16948 cat confdefs.h >>conftest.$ac_ext
16949 cat >>conftest.$ac_ext <<_ACEOF
16950 /* end confdefs.h. */
16951
16952 #ifdef _AIX
16953 too risky
16954 #endif
16955
16956 _ACEOF
16957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16958 $EGREP "too risky" >/dev/null 2>&1; then
16959 gl_cv_func_strndup=no
16960 else
16961 gl_cv_func_strndup=yes
16962 fi
16963 rm -f conftest*
16964
16965 else
16966 gl_cv_func_strndup=no
16967 fi
16968
16969 else
16970 cat >conftest.$ac_ext <<_ACEOF
16971
16972 /* confdefs.h. */
16973 _ACEOF
16974 cat confdefs.h >>conftest.$ac_ext
16975 cat >>conftest.$ac_ext <<_ACEOF
16976 /* end confdefs.h. */
16977 #include <string.h>
16978 #include <stdlib.h>
16979 int
16980 main ()
16981 {
16982
16983 #ifndef HAVE_DECL_STRNDUP
16984 extern char *strndup (const char *, size_t);
16985 #endif
16986 char *s;
16987 s = strndup ("some longer string", 15);
16988 free (s);
16989 s = strndup ("shorter string", 13);
16990 return s[13] != '\0';
16991 ;
16992 return 0;
16993 }
16994 _ACEOF
16995 rm -f conftest$ac_exeext
16996 if { (ac_try="$ac_link"
16997 case "(($ac_try" in
16998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16999 *) ac_try_echo=$ac_try;;
17000 esac
17001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17002 $as_echo "$ac_try_echo") >&5
17003 (eval "$ac_link") 2>&5
17004 ac_status=$?
17005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17007 { (case "(($ac_try" in
17008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17009 *) ac_try_echo=$ac_try;;
17010 esac
17011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17012 $as_echo "$ac_try_echo") >&5
17013 (eval "$ac_try") 2>&5
17014 ac_status=$?
17015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); }; }; then
17017 gl_cv_func_strndup=yes
17018 else
17019 $as_echo "$as_me: program exited with status $ac_status" >&5
17020 $as_echo "$as_me: failed program was:" >&5
17021 sed 's/^/| /' conftest.$ac_ext >&5
17022
17023 ( exit $ac_status )
17024 gl_cv_func_strndup=no
17025 fi
17026 rm -rf conftest.dSYM
17027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$a c_objext conftest.$ac_ext
17028 fi
17029
17030
17031 fi
17032 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_strndup" >&5
17033 $as_echo "$gl_cv_func_strndup" >&6; }
17034 if test $gl_cv_func_strndup = yes; then
17035
17036 cat >>confdefs.h <<\_ACEOF
17037 #define HAVE_STRNDUP 1
17038 _ACEOF
17039
17040 else
17041 HAVE_STRNDUP=0
17042
17043
17044
17045
17046
17047
17048
17049
17050 gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
17051
17052 :
17053 fi
17054
17055
17056
17057 GNULIB_STRNDUP=1
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067 if test $ac_cv_have_decl_strnlen = no; then
17068 HAVE_DECL_STRNLEN=0
17069 fi
17070
17071 { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
17072 $as_echo_n "checking for working strnlen... " >&6; }
17073 if test "${ac_cv_func_strnlen_working+set}" = set; then
17074 $as_echo_n "(cached) " >&6
17075 else
17076 if test "$cross_compiling" = yes; then
17077 ac_cv_func_strnlen_working=no
17078 else
17079 cat >conftest.$ac_ext <<_ACEOF
17080 /* confdefs.h. */
17081 _ACEOF
17082 cat confdefs.h >>conftest.$ac_ext
17083 cat >>conftest.$ac_ext <<_ACEOF
17084 /* end confdefs.h. */
17085 $ac_includes_default
17086 int
17087 main ()
17088 {
17089
17090 #define S "foobar"
17091 #define S_LEN (sizeof S - 1)
17092
17093 /* At least one implementation is buggy: that of AIX 4.3 would
17094 give strnlen (S, 1) == 3. */
17095
17096 int i;
17097 for (i = 0; i < S_LEN + 1; ++i)
17098 {
17099 int expected = i <= S_LEN ? i : S_LEN;
17100 if (strnlen (S, i) != expected)
17101 return 1;
17102 }
17103 return 0;
17104
17105 ;
17106 return 0;
17107 }
17108 _ACEOF
17109 rm -f conftest$ac_exeext
17110 if { (ac_try="$ac_link"
17111 case "(($ac_try" in
17112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17113 *) ac_try_echo=$ac_try;;
17114 esac
17115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17116 $as_echo "$ac_try_echo") >&5
17117 (eval "$ac_link") 2>&5
17118 ac_status=$?
17119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17121 { (case "(($ac_try" in
17122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17123 *) ac_try_echo=$ac_try;;
17124 esac
17125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17126 $as_echo "$ac_try_echo") >&5
17127 (eval "$ac_try") 2>&5
17128 ac_status=$?
17129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); }; }; then
17131 ac_cv_func_strnlen_working=yes
17132 else
17133 $as_echo "$as_me: program exited with status $ac_status" >&5
17134 $as_echo "$as_me: failed program was:" >&5
17135 sed 's/^/| /' conftest.$ac_ext >&5
17136
17137 ( exit $ac_status )
17138 ac_cv_func_strnlen_working=no
17139 fi
17140 rm -rf conftest.dSYM
17141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$a c_objext conftest.$ac_ext
17142 fi
17143
17144
17145 fi
17146 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
17147 $as_echo "$ac_cv_func_strnlen_working" >&6; }
17148 test $ac_cv_func_strnlen_working = no &&
17149
17150
17151
17152
17153
17154
17155
17156 gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
17157
17158
17159 if test $ac_cv_func_strnlen_working = no; then
17160 # This is necessary because automake-1.6.1 doesn't understand
17161 # that the above use of AC_FUNC_STRNLEN means we may have to use
17162 # lib/strnlen.c.
17163 #AC_LIBOBJ(strnlen)
17164
17165 cat >>confdefs.h <<\_ACEOF
17166 #define strnlen rpl_strnlen
17167 _ACEOF
17168
17169 :
17170 fi
17171
17172
17173
17174 GNULIB_STRNLEN=1
17175
17176
17177
17178
17179
17180
17181
17182
17183
17184
17185
17186 for ac_func in strtol
17187 do
17188 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17189 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17190 $as_echo_n "checking for $ac_func... " >&6; }
17191 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17192 $as_echo_n "(cached) " >&6
17193 else
17194 cat >conftest.$ac_ext <<_ACEOF
17195 /* confdefs.h. */
17196 _ACEOF
17197 cat confdefs.h >>conftest.$ac_ext
17198 cat >>conftest.$ac_ext <<_ACEOF
17199 /* end confdefs.h. */
17200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func .
17201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17202 #define $ac_func innocuous_$ac_func
17203
17204 /* System header to define __stub macros and hopefully few prototypes,
17205 which can conflict with char $ac_func (); below.
17206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17207 <limits.h> exists even on freestanding compilers. */
17208
17209 #ifdef __STDC__
17210 # include <limits.h>
17211 #else
17212 # include <assert.h>
17213 #endif
17214
17215 #undef $ac_func
17216
17217 /* Override any GCC internal prototype to avoid an error.
17218 Use char because int might match the return type of a GCC
17219 builtin and then its argument prototype would still apply. */
17220 #ifdef __cplusplus
17221 extern "C"
17222 #endif
17223 char $ac_func ();
17224 /* The GNU C library defines this for functions which it implements
17225 to always fail with ENOSYS. Some functions are actually named
17226 something starting with __ and the normal name is an alias. */
17227 #if defined __stub_$ac_func || defined __stub___$ac_func
17228 choke me
17229 #endif
17230
17231 int
17232 main ()
17233 {
17234 return $ac_func ();
17235 ;
17236 return 0;
17237 }
17238 _ACEOF
17239 rm -f conftest.$ac_objext conftest$ac_exeext
17240 if { (ac_try="$ac_link"
17241 case "(($ac_try" in
17242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17243 *) ac_try_echo=$ac_try;;
17244 esac
17245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17246 $as_echo "$ac_try_echo") >&5
17247 (eval "$ac_link") 2>conftest.er1
17248 ac_status=$?
17249 grep -v '^ *+' conftest.er1 >conftest.err
17250 rm -f conftest.er1
17251 cat conftest.err >&5
17252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); } && {
17254 test -z "$ac_c_werror_flag" ||
17255 test ! -s conftest.err
17256 } && test -s conftest$ac_exeext && {
17257 test "$cross_compiling" = yes ||
17258 $as_test_x conftest$ac_exeext
17259 }; then
17260 eval "$as_ac_var=yes"
17261 else
17262 $as_echo "$as_me: failed program was:" >&5
17263 sed 's/^/| /' conftest.$ac_ext >&5
17264
17265 eval "$as_ac_var=no"
17266 fi
17267
17268 rm -rf conftest.dSYM
17269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17270 conftest$ac_exeext conftest.$ac_ext
17271 fi
17272 ac_res=`eval 'as_val=${'$as_ac_var'}
17273 $as_echo "$as_val"'`
17274 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17275 $as_echo "$ac_res" >&6; }
17276 if test `eval 'as_val=${'$as_ac_var'}
17277 $as_echo "$as_val"'` = yes; then
17278 cat >>confdefs.h <<_ACEOF
17279 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17280 _ACEOF
17281
17282 else
17283
17284 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
17285
17286 fi
17287 done
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301 for ac_func in strtoul
17302 do
17303 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17304 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17305 $as_echo_n "checking for $ac_func... " >&6; }
17306 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17307 $as_echo_n "(cached) " >&6
17308 else
17309 cat >conftest.$ac_ext <<_ACEOF
17310 /* confdefs.h. */
17311 _ACEOF
17312 cat confdefs.h >>conftest.$ac_ext
17313 cat >>conftest.$ac_ext <<_ACEOF
17314 /* end confdefs.h. */
17315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func .
17316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17317 #define $ac_func innocuous_$ac_func
17318
17319 /* System header to define __stub macros and hopefully few prototypes,
17320 which can conflict with char $ac_func (); below.
17321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17322 <limits.h> exists even on freestanding compilers. */
17323
17324 #ifdef __STDC__
17325 # include <limits.h>
17326 #else
17327 # include <assert.h>
17328 #endif
17329
17330 #undef $ac_func
17331
17332 /* Override any GCC internal prototype to avoid an error.
17333 Use char because int might match the return type of a GCC
17334 builtin and then its argument prototype would still apply. */
17335 #ifdef __cplusplus
17336 extern "C"
17337 #endif
17338 char $ac_func ();
17339 /* The GNU C library defines this for functions which it implements
17340 to always fail with ENOSYS. Some functions are actually named
17341 something starting with __ and the normal name is an alias. */
17342 #if defined __stub_$ac_func || defined __stub___$ac_func
17343 choke me
17344 #endif
17345
17346 int
17347 main ()
17348 {
17349 return $ac_func ();
17350 ;
17351 return 0;
17352 }
17353 _ACEOF
17354 rm -f conftest.$ac_objext conftest$ac_exeext
17355 if { (ac_try="$ac_link"
17356 case "(($ac_try" in
17357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17358 *) ac_try_echo=$ac_try;;
17359 esac
17360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17361 $as_echo "$ac_try_echo") >&5
17362 (eval "$ac_link") 2>conftest.er1
17363 ac_status=$?
17364 grep -v '^ *+' conftest.er1 >conftest.err
17365 rm -f conftest.er1
17366 cat conftest.err >&5
17367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); } && {
17369 test -z "$ac_c_werror_flag" ||
17370 test ! -s conftest.err
17371 } && test -s conftest$ac_exeext && {
17372 test "$cross_compiling" = yes ||
17373 $as_test_x conftest$ac_exeext
17374 }; then
17375 eval "$as_ac_var=yes"
17376 else
17377 $as_echo "$as_me: failed program was:" >&5
17378 sed 's/^/| /' conftest.$ac_ext >&5
17379
17380 eval "$as_ac_var=no"
17381 fi
17382
17383 rm -rf conftest.dSYM
17384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17385 conftest$ac_exeext conftest.$ac_ext
17386 fi
17387 ac_res=`eval 'as_val=${'$as_ac_var'}
17388 $as_echo "$as_val"'`
17389 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17390 $as_echo "$ac_res" >&6; }
17391 if test `eval 'as_val=${'$as_ac_var'}
17392 $as_echo "$as_val"'` = yes; then
17393 cat >>confdefs.h <<_ACEOF
17394 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17395 _ACEOF
17396
17397 else
17398
17399 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
17400
17401 fi
17402 done
17403
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419 for ac_func in strverscmp
17420 do
17421 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17422 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17423 $as_echo_n "checking for $ac_func... " >&6; }
17424 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17425 $as_echo_n "(cached) " >&6
17426 else
17427 cat >conftest.$ac_ext <<_ACEOF
17428 /* confdefs.h. */
17429 _ACEOF
17430 cat confdefs.h >>conftest.$ac_ext
17431 cat >>conftest.$ac_ext <<_ACEOF
17432 /* end confdefs.h. */
17433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func .
17434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17435 #define $ac_func innocuous_$ac_func
17436
17437 /* System header to define __stub macros and hopefully few prototypes,
17438 which can conflict with char $ac_func (); below.
17439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17440 <limits.h> exists even on freestanding compilers. */
17441
17442 #ifdef __STDC__
17443 # include <limits.h>
17444 #else
17445 # include <assert.h>
17446 #endif
17447
17448 #undef $ac_func
17449
17450 /* Override any GCC internal prototype to avoid an error.
17451 Use char because int might match the return type of a GCC
17452 builtin and then its argument prototype would still apply. */
17453 #ifdef __cplusplus
17454 extern "C"
17455 #endif
17456 char $ac_func ();
17457 /* The GNU C library defines this for functions which it implements
17458 to always fail with ENOSYS. Some functions are actually named
17459 something starting with __ and the normal name is an alias. */
17460 #if defined __stub_$ac_func || defined __stub___$ac_func
17461 choke me
17462 #endif
17463
17464 int
17465 main ()
17466 {
17467 return $ac_func ();
17468 ;
17469 return 0;
17470 }
17471 _ACEOF
17472 rm -f conftest.$ac_objext conftest$ac_exeext
17473 if { (ac_try="$ac_link"
17474 case "(($ac_try" in
17475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17476 *) ac_try_echo=$ac_try;;
17477 esac
17478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17479 $as_echo "$ac_try_echo") >&5
17480 (eval "$ac_link") 2>conftest.er1
17481 ac_status=$?
17482 grep -v '^ *+' conftest.er1 >conftest.err
17483 rm -f conftest.er1
17484 cat conftest.err >&5
17485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); } && {
17487 test -z "$ac_c_werror_flag" ||
17488 test ! -s conftest.err
17489 } && test -s conftest$ac_exeext && {
17490 test "$cross_compiling" = yes ||
17491 $as_test_x conftest$ac_exeext
17492 }; then
17493 eval "$as_ac_var=yes"
17494 else
17495 $as_echo "$as_me: failed program was:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17497
17498 eval "$as_ac_var=no"
17499 fi
17500
17501 rm -rf conftest.dSYM
17502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17503 conftest$ac_exeext conftest.$ac_ext
17504 fi
17505 ac_res=`eval 'as_val=${'$as_ac_var'}
17506 $as_echo "$as_val"'`
17507 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17508 $as_echo "$ac_res" >&6; }
17509 if test `eval 'as_val=${'$as_ac_var'}
17510 $as_echo "$as_val"'` = yes; then
17511 cat >>confdefs.h <<_ACEOF
17512 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17513 _ACEOF
17514
17515 else
17516
17517 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
17518
17519 fi
17520 done
17521
17522
17523 if test $ac_cv_func_strverscmp = no; then
17524
17525 :
17526
17527 HAVE_STRVERSCMP=0
17528 fi
17529
17530
17531
17532 GNULIB_STRVERSCMP=1
17533
17534
17535
17536
17537
17538
17539
17540
17541
17542
17543
17544
17545
17546
17547
17548 if test $gl_cv_have_include_next = yes; then
17549 gl_cv_next_unistd_h='<'unistd.h'>'
17550 else
17551 { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
17552 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
17553 if test "${gl_cv_next_unistd_h+set}" = set; then
17554 $as_echo_n "(cached) " >&6
17555 else
17556
17557 if test $ac_cv_header_unistd_h = yes; then
17558 cat >conftest.$ac_ext <<_ACEOF
17559 /* confdefs.h. */
17560 _ACEOF
17561 cat confdefs.h >>conftest.$ac_ext
17562 cat >>conftest.$ac_ext <<_ACEOF
17563 /* end confdefs.h. */
17564 #include <unistd.h>
17565
17566 _ACEOF
17567 case "$host_ os" in
17568 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17569 *) gl_absname_cpp="$ac_cpp" ;;
17570 esac
17571 gl_cv_next_unistd_h='"'`(eval "$gl_absname_c pp conftest.$ac_ext") 2>&5 |
17572 sed -n '\#/unistd.h#{
17573 s#.*"\(.*/unistd.h\)".*#\1#
17574 s#^/[^/]#//&#
17575 p
17576 q
17577 }'`'"'
17578 else
17579 gl_cv_next_unistd_h='<'unistd.h'>'
17580 fi
17581
17582 fi
17583 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
17584 $as_echo "$gl_cv_next_unistd_h" >&6; }
17585 fi
17586 NEXT_UNISTD_H=$gl_cv_next_unistd_h
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597 if test $ac_cv_header_unistd_h = yes; then
17598 HAVE_UNISTD_H=1
17599 else
17600 HAVE_UNISTD_H=0
17601 fi
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619 gl_LIBOBJS="$gl_LIBOBJS dup-safer.$ac_objext"
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629 gl_LIBOBJS="$gl_LIBOBJS fd-safer.$ac_objext"
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639 gl_LIBOBJS="$gl_LIBOBJS pipe-safer.$ac_objext"
17640
17641
17642
17643
17644 cat >>confdefs.h <<\_ACEOF
17645 #define USE_UNLOCKED_IO 1
17646 _ACEOF
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705
17706
17707 for ac_func in unsetenv
17708 do
17709 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17710 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17711 $as_echo_n "checking for $ac_func... " >&6; }
17712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17713 $as_echo_n "(cached) " >&6
17714 else
17715 cat >conftest.$ac_ext <<_ACEOF
17716 /* confdefs.h. */
17717 _ACEOF
17718 cat confdefs.h >>conftest.$ac_ext
17719 cat >>conftest.$ac_ext <<_ACEOF
17720 /* end confdefs.h. */
17721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func .
17722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17723 #define $ac_func innocuous_$ac_func
17724
17725 /* System header to define __stub macros and hopefully few prototypes,
17726 which can conflict with char $ac_func (); below.
17727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17728 <limits.h> exists even on freestanding compilers. */
17729
17730 #ifdef __STDC__
17731 # include <limits.h>
17732 #else
17733 # include <assert.h>
17734 #endif
17735
17736 #undef $ac_func
17737
17738 /* Override any GCC internal prototype to avoid an error.
17739 Use char because int might match the return type of a GCC
17740 builtin and then its argument prototype would still apply. */
17741 #ifdef __cplusplus
17742 extern "C"
17743 #endif
17744 char $ac_func ();
17745 /* The GNU C library defines this for functions which it implements
17746 to always fail with ENOSYS. Some functions are actually named
17747 something starting with __ and the normal name is an alias. */
17748 #if defined __stub_$ac_func || defined __stub___$ac_func
17749 choke me
17750 #endif
17751
17752 int
17753 main ()
17754 {
17755 return $ac_func ();
17756 ;
17757 return 0;
17758 }
17759 _ACEOF
17760 rm -f conftest.$ac_objext conftest$ac_exeext
17761 if { (ac_try="$ac_link"
17762 case "(($ac_try" in
17763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17764 *) ac_try_echo=$ac_try;;
17765 esac
17766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17767 $as_echo "$ac_try_echo") >&5
17768 (eval "$ac_link") 2>conftest.er1
17769 ac_status=$?
17770 grep -v '^ *+' conftest.er1 >conftest.err
17771 rm -f conftest.er1
17772 cat conftest.err >&5
17773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); } && {
17775 test -z "$ac_c_werror_flag" ||
17776 test ! -s conftest.err
17777 } && test -s conftest$ac_exeext && {
17778 test "$cross_compiling" = yes ||
17779 $as_test_x conftest$ac_exeext
17780 }; then
17781 eval "$as_ac_var=yes"
17782 else
17783 $as_echo "$as_me: failed program was:" >&5
17784 sed 's/^/| /' conftest.$ac_ext >&5
17785
17786 eval "$as_ac_var=no"
17787 fi
17788
17789 rm -rf conftest.dSYM
17790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17791 conftest$ac_exeext conftest.$ac_ext
17792 fi
17793 ac_res=`eval 'as_val=${'$as_ac_var'}
17794 $as_echo "$as_val"'`
17795 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17796 $as_echo "$ac_res" >&6; }
17797 if test `eval 'as_val=${'$as_ac_var'}
17798 $as_echo "$as_val"'` = yes; then
17799 cat >>confdefs.h <<_ACEOF
17800 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17801 _ACEOF
17802
17803 fi
17804 done
17805
17806 if test $ac_cv_func_unsetenv = no; then
17807 HAVE_UNSETENV=0
17808
17809
17810
17811
17812
17813
17814
17815
17816 gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827 else
17828 { $as_echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
17829 $as_echo_n "checking for unsetenv() return type... " >&6; }
17830 if test "${gt_cv_func_unsetenv_ret+set}" = set; then
17831 $as_echo_n "(cached) " >&6
17832 else
17833 cat >conftest.$ac_ext <<_ACEOF
17834 /* confdefs.h. */
17835 _ACEOF
17836 cat confdefs.h >>conftest.$ac_ext
17837 cat >>conftest.$ac_ext <<_ACEOF
17838 /* end confdefs.h. */
17839 #include <stdlib.h>
17840 extern
17841 #ifdef __cplusplus
17842 "C"
17843 #endif
17844 #if defined(__STDC__) || defined(__cplusplus)
17845 int unsetenv (const char *name);
17846 #else
17847 int unsetenv();
17848 #endif
17849
17850 int
17851 main ()
17852 {
17853
17854 ;
17855 return 0;
17856 }
17857 _ACEOF
17858 rm -f conftest.$ac_objext
17859 if { (ac_try="$ac_compile"
17860 case "(($ac_try" in
17861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862 *) ac_try_echo=$ac_try;;
17863 esac
17864 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17865 $as_echo "$ac_try_echo") >&5
17866 (eval "$ac_compile") 2>conftest.er1
17867 ac_status=$?
17868 grep -v '^ *+' conftest.er1 >conftest.err
17869 rm -f conftest.er1
17870 cat conftest.err >&5
17871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17872 (exit $ac_status); } && {
17873 test -z "$ac_c_werror_flag" ||
17874 test ! -s conftest.err
17875 } && test -s conftest.$ac_objext; then
17876 gt_cv_func_unsetenv_ret='int'
17877 else
17878 $as_echo "$as_me: failed program was:" >&5
17879 sed 's/^/| /' conftest.$ac_ext >&5
17880
17881 gt_cv_func_unsetenv_ret='void'
17882 fi
17883
17884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17885 fi
17886 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
17887 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
17888 if test $gt_cv_func_unsetenv_ret = 'void'; then
17889 VOID_UNSETENV=1
17890 fi
17891 fi
17892
17893
17894
17895 GNULIB_UNSETENV=1
17896
17897
17898
17899
17900 { $as_echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
17901 $as_echo_n "checking whether <wchar.h> is standalone... " >&6; }
17902 if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
17903 $as_echo_n "(cached) " >&6
17904 else
17905 cat >conftest.$ac_ext <<_ACEOF
17906 #include <wchar.h>
17907 wchar_t w;
17908 _ACEOF
17909 rm -f conftest.$ac_objext
17910 if { (ac_try="$ac_compile"
17911 case "(($ac_try" in
17912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17913 *) ac_try_echo=$ac_try;;
17914 esac
17915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17916 $as_echo "$ac_try_echo") >&5
17917 (eval "$ac_compile") 2>conftest.er1
17918 ac_status=$?
17919 grep -v '^ *+' conftest.er1 >conftest.err
17920 rm -f conftest.er1
17921 cat conftest.err >&5
17922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); } && {
17924 test -z "$ac_c_werror_flag" ||
17925 test ! -s conftest.err
17926 } && test -s conftest.$ac_objext; then
17927 gl_cv_header_wchar_h_standalone=yes
17928 else
17929 $as_echo "$as_me: failed program was:" >&5
17930 sed 's/^/| /' conftest.$ac_ext >&5
17931
17932 gl_cv_header_wchar_h_standalone=no
17933 fi
17934
17935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17936 fi
17937 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
17938 $as_echo "$gl_cv_header_wchar_h_standalone" >&6; }
17939
17940
17941 if test $gt_cv_c_wint_t = yes; then
17942 HAVE_WINT_T=1
17943 else
17944 HAVE_WINT_T=0
17945 fi
17946
17947
17948 if test $gl_cv_header_wchar_h_standalone != yes || test $gt_cv_c_wint_t != yes ; then
17949 WCHAR_H=wchar.h
17950 fi
17951
17952
17953
17954
17955
17956
17957
17958 if test $ac_cv_header_wchar_h = yes; then
17959 HAVE_WCHAR_H=1
17960 else
17961 HAVE_WCHAR_H=0
17962 fi
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975 if test $gl_cv_have_include_next = yes; then
17976 gl_cv_next_wchar_h='<'wchar.h'>'
17977 else
17978 { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
17979 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
17980 if test "${gl_cv_next_wchar_h+set}" = set; then
17981 $as_echo_n "(cached) " >&6
17982 else
17983
17984 if test $ac_cv_header_wchar_h = yes; then
17985 cat >conftest.$ac_ext <<_ACEOF
17986 /* confdefs.h. */
17987 _ACEOF
17988 cat confdefs.h >>conftest.$ac_ext
17989 cat >>conftest.$ac_ext <<_ACEOF
17990 /* end confdefs.h. */
17991 #include <wchar.h>
17992
17993 _ACEOF
17994 case "$host_ os" in
17995 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17996 *) gl_absname_cpp="$ac_cpp" ;;
17997 esac
17998 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cp p conftest.$ac_ext") 2>&5 |
17999 sed -n '\#/wchar.h#{
18000 s#.*"\(.*/wchar.h\)".*#\1#
18001 s#^/[^/]#//&#
18002 p
18003 q
18004 }'`'"'
18005 else
18006 gl_cv_next_wchar_h='<'wchar.h'>'
18007 fi
18008
18009 fi
18010 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
18011 $as_echo "$gl_cv_next_wchar_h" >&6; }
18012 fi
18013 NEXT_WCHAR_H=$gl_cv_next_wchar_h
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026 if test $ac_cv_func_iswcntrl = yes; then
18027 HAVE_ISWCNTRL=1
18028 else
18029 HAVE_ISWCNTRL=0
18030 fi
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041 if test $gt_cv_c_wint_t = yes; then
18042 HAVE_WINT_T=1
18043 else
18044 HAVE_WINT_T=0
18045 fi
18046
18047
18048 WCTYPE_H=wctype.h
18049 if test $ac_cv_header_wctype_h = yes; then
18050 if test $ac_cv_func_iswcntrl = yes; then
18051 { $as_echo "$as_me:$LINENO: checking whether iswcntrl works" > &5
18052 $as_echo_n "checking whether iswcntrl works... " >&6; }
18053 if test "${gl_cv_func_iswcntrl_works+set}" = set; then
18054 $as_echo_n "(cached) " >&6
18055 else
18056
18057 if test "$cross_compiling" = yes; then
18058 cat >conftest.$ac_ext <<_ACEOF
18059 /* confdefs.h. */
18060 _ACEOF
18061 cat confdefs.h >>conftest.$ac_ext
18062 cat >>conftest.$ac_ext <<_ACEOF
18063 /* end confdefs.h. */
18064 #include <stdlib.h>
18065 #if __GNU_LIBRARY__ == 1
18066 Linux libc5 i18n is broken.
18067 #endif
18068 int
18069 main ()
18070 {
18071
18072 ;
18073 return 0;
18074 }
18075 _ACEOF
18076 rm -f conftest.$ac_objext
18077 if { (ac_try="$ac_compile"
18078 case "(($ac_try" in
18079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18080 *) ac_try_echo=$ac_try;;
18081 esac
18082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18083 $as_echo "$ac_try_echo") >&5
18084 (eval "$ac_compile") 2>conftest.er1
18085 ac_status=$?
18086 grep -v '^ *+' conftest.er1 >conftest.err
18087 rm -f conftest.er1
18088 cat conftest.err >&5
18089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); } && {
18091 test -z "$ac_c_werror_flag" ||
18092 test ! -s conftest.err
18093 } && test -s conftest.$ac_objext; then
18094 gl_cv_func_iswcntrl_works=yes
18095 else
18096 $as_echo "$as_me: failed program was:" >&5
18097 sed 's/^/| /' conftest.$ac_ext >&5
18098
18099 gl_cv_func_iswcntrl_works=no
18100 fi
18101
18102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18103
18104 else
18105 cat >conftest.$ac_ext <<_ACEOF
18106 /* confdefs.h. */
18107 _ACEOF
18108 cat confdefs.h >>conftest.$ac_ext
18109 cat >>conftest.$ac_ext <<_ACEOF
18110 /* end confdefs.h. */
18111 #include <stddef.h>
18112 #include <stdio.h>
18113 #include <time.h>
18114 #include <wchar.h>
18115 #include <wctype.h>
18116 int main () { return iswprint ('x') == 0; }
18117 _ACEOF
18118 rm -f conftest$ac_exeext
18119 if { (ac_try="$ac_link"
18120 case "(($ac_try" in
18121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18122 *) ac_try_echo=$ac_try;;
18123 esac
18124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18125 $as_echo "$ac_try_echo") >&5
18126 (eval "$ac_link") 2>&5
18127 ac_status=$?
18128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18130 { (case "(($ac_try" in
18131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18132 *) ac_try_echo=$ac_try;;
18133 esac
18134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18135 $as_echo "$ac_try_echo") >&5
18136 (eval "$ac_try") 2>&5
18137 ac_status=$?
18138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); }; }; then
18140 gl_cv_func_iswcntrl_works=yes
18141 else
18142 $as_echo "$as_me: program exited with status $ac_status" >&5
18143 $as_echo "$as_me: failed program was:" >&5
18144 sed 's/^/| /' conftest.$ac_ext >&5
18145
18146 ( exit $ac_status )
18147 gl_cv_func_iswcntrl_works=no
18148 fi
18149 rm -rf conftest.dSYM
18150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$a c_objext conftest.$ac_ext
18151 fi
18152
18153
18154
18155 fi
18156 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_iswcntrl_works" >&5
18157 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
18158 if test $gl_cv_func_iswcntrl_works = yes; then
18159 WCTYPE_H=
18160 fi
18161 fi
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173 if test $gl_cv_have_include_next = yes; then
18174 gl_cv_next_wctype_h='<'wctype.h'>'
18175 else
18176 { $as_echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
18177 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
18178 if test "${gl_cv_next_wctype_h+set}" = set; then
18179 $as_echo_n "(cached) " >&6
18180 else
18181
18182 if test $ac_cv_header_wctype_h = yes; then
18183 cat >conftest.$ac_ext <<_ACEOF
18184 /* confdefs.h. */
18185 _ACEOF
18186 cat confdefs.h >>conftest.$ac_ext
18187 cat >>conftest.$ac_ext <<_ACEOF
18188 /* end confdefs.h. */
18189 #include <wctype.h>
18190
18191 _ACEOF
18192 case "$host_ os" in
18193 aix*) gl_absname_cpp="$ac_cpp -C" ;;
18194 *) gl_absname_cpp="$ac_cpp" ;;
18195 esac
18196 gl_cv_next_wctype_h='"'`(eval "$gl_absname_c pp conftest.$ac_ext") 2>&5 |
18197 sed -n '\#/wctype.h#{
18198 s#.*"\(.*/wctype.h\)".*#\1#
18199 s#^/[^/]#//&#
18200 p
18201 q
18202 }'`'"'
18203 else
18204 gl_cv_next_wctype_h='<'wctype.h'>'
18205 fi
18206
18207 fi
18208 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5
18209 $as_echo "$gl_cv_next_wctype_h" >&6; }
18210 fi
18211 NEXT_WCTYPE_H=$gl_cv_next_wctype_h
18212
18213
18214
18215 HAVE_WCTYPE_H=1
18216 else
18217 HAVE_WCTYPE_H=0
18218 fi
18219
18220
18221
18222 if test "$gl_cv_func_iswcntrl_works" = no; then
18223 REPLACE_ISWCNTRL=1
18224 else
18225 REPLACE_ISWCNTRL=0
18226 fi
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250 { $as_echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
18251 $as_echo_n "checking whether wcwidth is declared... " >&6; }
18252 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
18253 $as_echo_n "(cached) " >&6
18254 else
18255 cat >conftest.$ac_ext <<_ACEOF
18256 /* confdefs.h. */
18257 _ACEOF
18258 cat confdefs.h >>conftest.$ac_ext
18259 cat >>conftest.$ac_ext <<_ACEOF
18260 /* end confdefs.h. */
18261
18262 /* AIX 3.2.5 declares wcwidth in <string.h>. */
18263 #include <string.h>
18264 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18265 <wchar.h>.
18266 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
18267 before <wchar.h>. */
18268 #include <stddef.h>
18269 #include <stdio.h>
18270 #include <time.h>
18271 #include <wchar.h>
18272
18273
18274 int
18275 main ()
18276 {
18277 #ifndef wcwidth
18278 (void) wcwidth;
18279 #endif
18280
18281 ;
18282 return 0;
18283 }
18284 _ACEOF
18285 rm -f conftest.$ac_objext
18286 if { (ac_try="$ac_compile"
18287 case "(($ac_try" in
18288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18289 *) ac_try_echo=$ac_try;;
18290 esac
18291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18292 $as_echo "$ac_try_echo") >&5
18293 (eval "$ac_compile") 2>conftest.er1
18294 ac_status=$?
18295 grep -v '^ *+' conftest.er1 >conftest.err
18296 rm -f conftest.er1
18297 cat conftest.err >&5
18298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); } && {
18300 test -z "$ac_c_werror_flag" ||
18301 test ! -s conftest.err
18302 } && test -s conftest.$ac_objext; then
18303 ac_cv_have_decl_wcwidth=yes
18304 else
18305 $as_echo "$as_me: failed program was:" >&5
18306 sed 's/^/| /' conftest.$ac_ext >&5
18307
18308 ac_cv_have_decl_wcwidth=no
18309 fi
18310
18311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18312 fi
18313 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
18314 $as_echo "$ac_cv_have_decl_wcwidth" >&6; }
18315 if test $ac_cv_have_decl_wcwidth = yes; then
18316
18317 cat >>confdefs.h <<_ACEOF
18318 #define HAVE_DECL_WCWIDTH 1
18319 _ACEOF
18320
18321
18322 else
18323 cat >>confdefs.h <<_ACEOF
18324 #define HAVE_DECL_WCWIDTH 0
18325 _ACEOF
18326
18327
18328 fi
18329
18330
18331 if test $ac_cv_have_decl_wcwidth != yes; then
18332 HAVE_DECL_WCWIDTH=0
18333 fi
18334
18335 if test $ac_cv_func_wcwidth = no; then
18336 REPLACE_WCWIDTH=1
18337 else
18338 { $as_echo "$as_me:$LINENO: checking whether wcwidth works reaso nably in UTF-8 locales" >&5
18339 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
18340 if test "${gl_cv_func_wcwidth_works+set}" = set; then
18341 $as_echo_n "(cached) " >&6
18342 else
18343
18344 if test "$cross_compiling" = yes; then
18345 gl_cv_func_wcwidth_works="guessing no"
18346 else
18347 cat >conftest.$ac_ext <<_ACEOF
18348 /* confdefs.h. */
18349 _ACEOF
18350 cat confdefs.h >>conftest.$ac_ext
18351 cat >>conftest.$ac_ext <<_ACEOF
18352 /* end confdefs.h. */
18353
18354 #include <locale.h>
18355 /* AIX 3.2.5 declares wcwidth in <string.h>. */
18356 #include <string.h>
18357 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18358 <wchar.h>.
18359 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
18360 before <wchar.h>. */
18361 #include <stddef.h>
18362 #include <stdio.h>
18363 #include <time.h>
18364 #include <wchar.h>
18365 #if !HAVE_DECL_WCWIDTH
18366 extern
18367 # ifdef __cplusplus
18368 "C"
18369 # endif
18370 int wcwidth (int);
18371 #endif
18372 int main ()
18373 {
18374 if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
18375 if (wcwidth (0x0301) > 0 || wcwidth (0x200B) > 0)
18376 return 1;
18377 return 0;
18378 }
18379 _ACEOF
18380 rm -f conftest$ac_exeext
18381 if { (ac_try="$ac_link"
18382 case "(($ac_try" in
18383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18384 *) ac_try_echo=$ac_try;;
18385 esac
18386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18387 $as_echo "$ac_try_echo") >&5
18388 (eval "$ac_link") 2>&5
18389 ac_status=$?
18390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18392 { (case "(($ac_try" in
18393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18394 *) ac_try_echo=$ac_try;;
18395 esac
18396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18397 $as_echo "$ac_try_echo") >&5
18398 (eval "$ac_try") 2>&5
18399 ac_status=$?
18400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); }; }; then
18402 gl_cv_func_wcwidth_works=yes
18403 else
18404 $as_echo "$as_me: program exited with status $ac_status" >&5
18405 $as_echo "$as_me: failed program was:" >&5
18406 sed 's/^/| /' conftest.$ac_ext >&5
18407
18408 ( exit $ac_status )
18409 gl_cv_func_wcwidth_works=no
18410 fi
18411 rm -rf conftest.dSYM
18412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$a c_objext conftest.$ac_ext
18413 fi
18414
18415
18416
18417 fi
18418 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_wcwidth_works" >&5
18419 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
18420 case "$gl_cv_func_wcwidth_works" in
18421 *yes) ;;
18422 *no) REPLACE_WCWIDTH=1 ;;
18423 esac
18424 fi
18425 if test $REPLACE_WCWIDTH = 1; then
18426
18427
18428
18429
18430
18431
18432
18433
18434 gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
18435
18436 fi
18437
18438 if test $REPLACE_WCWIDTH = 1 || test $HAVE_DECL_WCWIDTH = 0; then
18439
18440
18441 WCHAR_H=wchar.h
18442
18443 fi
18444
18445
18446
18447 GNULIB_WCWIDTH=1
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458 gl_LIBOBJS="$gl_LIBOBJS xmalloc.$ac_objext"
18459
18460
18461
18462
18463 :
18464
18465
18466 :
18467
18468
18469
18470
18471 :
18472
18473
18474
18475
18476
18477
18478
18479
18480
18481
18482
18483 gltests_libdeps=
18484 gltests_ltlibdeps=
18485
18486
18487
18488
18489
18490
18491
18492
18493 gl_source_base='tests'
18494
18495
18496
18497
18498
18499
18500
18501 LIBBISON_LIBDEPS="$gl_libdeps"
18502
18503 LIBBISON_LTLIBDEPS="$gl_ltlibdeps"
18504
18505
18506
18507 # Checks for library functions.
18508
18509
18510
18511
18512
18513
18514
18515
18516 { $as_echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
18517 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
18518
18519 # Check whether --with-dmalloc was given.
18520 if test "${with_dmalloc+set}" = set; then
18521 withval=$with_dmalloc; if test "$withval" = yes; then
18522 { $as_echo "$as_me:$LINENO: result: yes" >&5
18523 $as_echo "yes" >&6; }
18524
18525 cat >>confdefs.h <<\_ACEOF
18526 #define WITH_DMALLOC 1
18527 _ACEOF
18528
18529 LIBS="$LIBS -ldmalloc"
18530 LDFLAGS="$LDFLAGS -g"
18531 else
18532 { $as_echo "$as_me:$LINENO: result: no" >&5
18533 $as_echo "no" >&6; }
18534 fi
18535 else
18536 { $as_echo "$as_me:$LINENO: result: no" >&5
18537 $as_echo "no" >&6; }
18538 fi
18539
18540
18541
18542 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
18543 $as_echo_n "checking for pid_t... " >&6; }
18544 if test "${ac_cv_type_pid_t+set}" = set; then
18545 $as_echo_n "(cached) " >&6
18546 else
18547 ac_cv_type_pid_t=no
18548 cat >conftest.$ac_ext <<_ACEOF
18549 /* confdefs.h. */
18550 _ACEOF
18551 cat confdefs.h >>conftest.$ac_ext
18552 cat >>conftest.$ac_ext <<_ACEOF
18553 /* end confdefs.h. */
18554 $ac_includes_default
18555 int
18556 main ()
18557 {
18558 if (sizeof (pid_t))
18559 return 0;
18560 ;
18561 return 0;
18562 }
18563 _ACEOF
18564 rm -f conftest.$ac_objext
18565 if { (ac_try="$ac_compile"
18566 case "(($ac_try" in
18567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18568 *) ac_try_echo=$ac_try;;
18569 esac
18570 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18571 $as_echo "$ac_try_echo") >&5
18572 (eval "$ac_compile") 2>conftest.er1
18573 ac_status=$?
18574 grep -v '^ *+' conftest.er1 >conftest.err
18575 rm -f conftest.er1
18576 cat conftest.err >&5
18577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); } && {
18579 test -z "$ac_c_werror_flag" ||
18580 test ! -s conftest.err
18581 } && test -s conftest.$ac_objext; then
18582 cat >conftest.$ac_ext <<_ACEOF
18583 /* confdefs.h. */
18584 _ACEOF
18585 cat confdefs.h >>conftest.$ac_ext
18586 cat >>conftest.$ac_ext <<_ACEOF
18587 /* end confdefs.h. */
18588 $ac_includes_default
18589 int
18590 main ()
18591 {
18592 if (sizeof ((pid_t)))
18593 return 0;
18594 ;
18595 return 0;
18596 }
18597 _ACEOF
18598 rm -f conftest.$ac_objext
18599 if { (ac_try="$ac_compile"
18600 case "(($ac_try" in
18601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18602 *) ac_try_echo=$ac_try;;
18603 esac
18604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18605 $as_echo "$ac_try_echo") >&5
18606 (eval "$ac_compile") 2>conftest.er1
18607 ac_status=$?
18608 grep -v '^ *+' conftest.er1 >conftest.err
18609 rm -f conftest.er1
18610 cat conftest.err >&5
18611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); } && {
18613 test -z "$ac_c_werror_flag" ||
18614 test ! -s conftest.err
18615 } && test -s conftest.$ac_objext; then
18616 :
18617 else
18618 $as_echo "$as_me: failed program was:" >&5
18619 sed 's/^/| /' conftest.$ac_ext >&5
18620
18621 ac_cv_type_pid_t=yes
18622 fi
18623
18624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18625 else
18626 $as_echo "$as_me: failed program was:" >&5
18627 sed 's/^/| /' conftest.$ac_ext >&5
18628
18629
18630 fi
18631
18632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18633 fi
18634 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
18635 $as_echo "$ac_cv_type_pid_t" >&6; }
18636 if test $ac_cv_type_pid_t = yes; then
18637 :
18638 else
18639
18640 cat >>confdefs.h <<_ACEOF
18641 #define pid_t int
18642 _ACEOF
18643
18644 fi
18645
18646 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18647 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
18648 if test "${ac_cv_header_sys_wait_h+set}" = set; then
18649 $as_echo_n "(cached) " >&6
18650 else
18651 cat >conftest.$ac_ext <<_ACEOF
18652 /* confdefs.h. */
18653 _ACEOF
18654 cat confdefs.h >>conftest.$ac_ext
18655 cat >>conftest.$ac_ext <<_ACEOF
18656 /* end confdefs.h. */
18657 #include <sys/types.h>
18658 #include <sys/wait.h>
18659 #ifndef WEXITSTATUS
18660 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
18661 #endif
18662 #ifndef WIFEXITED
18663 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18664 #endif
18665
18666 int
18667 main ()
18668 {
18669 int s;
18670 wait (&s);
18671 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18672 ;
18673 return 0;
18674 }
18675 _ACEOF
18676 rm -f conftest.$ac_objext
18677 if { (ac_try="$ac_compile"
18678 case "(($ac_try" in
18679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18680 *) ac_try_echo=$ac_try;;
18681 esac
18682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18683 $as_echo "$ac_try_echo") >&5
18684 (eval "$ac_compile") 2>conftest.er1
18685 ac_status=$?
18686 grep -v '^ *+' conftest.er1 >conftest.err
18687 rm -f conftest.er1
18688 cat conftest.err >&5
18689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); } && {
18691 test -z "$ac_c_werror_flag" ||
18692 test ! -s conftest.err
18693 } && test -s conftest.$ac_objext; then
18694 ac_cv_header_sys_wait_h=yes
18695 else
18696 $as_echo "$as_me: failed program was:" >&5
18697 sed 's/^/| /' conftest.$ac_ext >&5
18698
18699 ac_cv_header_sys_wait_h=no
18700 fi
18701
18702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18703 fi
18704 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18705 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
18706 if test $ac_cv_header_sys_wait_h = yes; then
18707
18708 cat >>confdefs.h <<\_ACEOF
18709 #define HAVE_SYS_WAIT_H 1
18710 _ACEOF
18711
18712 fi
18713
18714
18715
18716 for ac_func in dup2 waitpid
18717 do
18718 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18719 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18720 $as_echo_n "checking for $ac_func... " >&6; }
18721 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18722 $as_echo_n "(cached) " >&6
18723 else
18724 cat >conftest.$ac_ext <<_ACEOF
18725 /* confdefs.h. */
18726 _ACEOF
18727 cat confdefs.h >>conftest.$ac_ext
18728 cat >>conftest.$ac_ext <<_ACEOF
18729 /* end confdefs.h. */
18730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func .
18731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18732 #define $ac_func innocuous_$ac_func
18733
18734 /* System header to define __stub macros and hopefully few prototypes,
18735 which can conflict with char $ac_func (); below.
18736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18737 <limits.h> exists even on freestanding compilers. */
18738
18739 #ifdef __STDC__
18740 # include <limits.h>
18741 #else
18742 # include <assert.h>
18743 #endif
18744
18745 #undef $ac_func
18746
18747 /* Override any GCC internal prototype to avoid an error.
18748 Use char because int might match the return type of a GCC
18749 builtin and then its argument prototype would still apply. */
18750 #ifdef __cplusplus
18751 extern "C"
18752 #endif
18753 char $ac_func ();
18754 /* The GNU C library defines this for functions which it implements
18755 to always fail with ENOSYS. Some functions are actually named
18756 something starting with __ and the normal name is an alias. */
18757 #if defined __stub_$ac_func || defined __stub___$ac_func
18758 choke me
18759 #endif
18760
18761 int
18762 main ()
18763 {
18764 return $ac_func ();
18765 ;
18766 return 0;
18767 }
18768 _ACEOF
18769 rm -f conftest.$ac_objext conftest$ac_exeext
18770 if { (ac_try="$ac_link"
18771 case "(($ac_try" in
18772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18773 *) ac_try_echo=$ac_try;;
18774 esac
18775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18776 $as_echo "$ac_try_echo") >&5
18777 (eval "$ac_link") 2>conftest.er1
18778 ac_status=$?
18779 grep -v '^ *+' conftest.er1 >conftest.err
18780 rm -f conftest.er1
18781 cat conftest.err >&5
18782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); } && {
18784 test -z "$ac_c_werror_flag" ||
18785 test ! -s conftest.err
18786 } && test -s conftest$ac_exeext && {
18787 test "$cross_compiling" = yes ||
18788 $as_test_x conftest$ac_exeext
18789 }; then
18790 eval "$as_ac_var=yes"
18791 else
18792 $as_echo "$as_me: failed program was:" >&5
18793 sed 's/^/| /' conftest.$ac_ext >&5
18794
18795 eval "$as_ac_var=no"
18796 fi
18797
18798 rm -rf conftest.dSYM
18799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18800 conftest$ac_exeext conftest.$ac_ext
18801 fi
18802 ac_res=`eval 'as_val=${'$as_ac_var'}
18803 $as_echo "$as_val"'`
18804 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18805 $as_echo "$ac_res" >&6; }
18806 if test `eval 'as_val=${'$as_ac_var'}
18807 $as_echo "$as_val"'` = yes; then
18808 cat >>confdefs.h <<_ACEOF
18809 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18810 _ACEOF
18811
18812 fi
18813 done
18814
18815
18816 for ac_header in vfork.h
18817 do
18818 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18820 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18821 $as_echo_n "checking for $ac_header... " >&6; }
18822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18823 $as_echo_n "(cached) " >&6
18824 fi
18825 ac_res=`eval 'as_val=${'$as_ac_Header'}
18826 $as_echo "$as_val"'`
18827 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18828 $as_echo "$ac_res" >&6; }
18829 else
18830 # Is the header compilable?
18831 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18832 $as_echo_n "checking $ac_header usability... " >&6; }
18833 cat >conftest.$ac_ext <<_ACEOF
18834 /* confdefs.h. */
18835 _ACEOF
18836 cat confdefs.h >>conftest.$ac_ext
18837 cat >>conftest.$ac_ext <<_ACEOF
18838 /* end confdefs.h. */
18839 $ac_includes_default
18840 #include <$ac_header>
18841 _ACEOF
18842 rm -f conftest.$ac_objext
18843 if { (ac_try="$ac_compile"
18844 case "(($ac_try" in
18845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18846 *) ac_try_echo=$ac_try;;
18847 esac
18848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18849 $as_echo "$ac_try_echo") >&5
18850 (eval "$ac_compile") 2>conftest.er1
18851 ac_status=$?
18852 grep -v '^ *+' conftest.er1 >conftest.err
18853 rm -f conftest.er1
18854 cat conftest.err >&5
18855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); } && {
18857 test -z "$ac_c_werror_flag" ||
18858 test ! -s conftest.err
18859 } && test -s conftest.$ac_objext; then
18860 ac_header_compiler=yes
18861 else
18862 $as_echo "$as_me: failed program was:" >&5
18863 sed 's/^/| /' conftest.$ac_ext >&5
18864
18865 ac_header_compiler=no
18866 fi
18867
18868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18869 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18870 $as_echo "$ac_header_compiler" >&6; }
18871
18872 # Is the header present?
18873 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18874 $as_echo_n "checking $ac_header presence... " >&6; }
18875 cat >conftest.$ac_ext <<_ACEOF
18876 /* confdefs.h. */
18877 _ACEOF
18878 cat confdefs.h >>conftest.$ac_ext
18879 cat >>conftest.$ac_ext <<_ACEOF
18880 /* end confdefs.h. */
18881 #include <$ac_header>
18882 _ACEOF
18883 if { (ac_try="$ac_cpp conftest.$ac_ext"
18884 case "(($ac_try" in
18885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18886 *) ac_try_echo=$ac_try;;
18887 esac
18888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18889 $as_echo "$ac_try_echo") >&5
18890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18891 ac_status=$?
18892 grep -v '^ *+' conftest.er1 >conftest.err
18893 rm -f conftest.er1
18894 cat conftest.err >&5
18895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); } >/dev/null && {
18897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18898 test ! -s conftest.err
18899 }; then
18900 ac_header_preproc=yes
18901 else
18902 $as_echo "$as_me: failed program was:" >&5
18903 sed 's/^/| /' conftest.$ac_ext >&5
18904
18905 ac_header_preproc=no
18906 fi
18907
18908 rm -f conftest.err conftest.$ac_ext
18909 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18910 $as_echo "$ac_header_preproc" >&6; }
18911
18912 # So? What about this header?
18913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18914 yes:no: )
18915 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, r ejected by the preprocessor!" >&5
18916 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18917 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compile r's result" >&5
18918 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >& 2;}
18919 ac_header_preproc=yes
18920 ;;
18921 no:yes:* )
18922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compi led" >&5
18923 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18924 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prere quisite headers?" >&5
18925 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite header s?" >&2;}
18926 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentat ion" >&5
18927 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18928 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But C annot Be Compiled\"" >&5
18929 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compi led\"" >&2;}
18930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preproc essor's result" >&5
18931 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result " >&2;}
18932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18933 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take pre cedence" >&2;}
18934 ( cat <<\_ASBOX
18935 ## -------------------------------- ##
18936 ## Report this to bug-bison@gnu.org ##
18937 ## -------------------------------- ##
18938 _ASBOX
18939 ) | sed "s/^/$as_me: WARNING: /" >&2
18940 ;;
18941 esac
18942 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18943 $as_echo_n "checking for $ac_header... " >&6; }
18944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18945 $as_echo_n "(cached) " >&6
18946 else
18947 eval "$as_ac_Header=\$ac_header_preproc"
18948 fi
18949 ac_res=`eval 'as_val=${'$as_ac_Header'}
18950 $as_echo "$as_val"'`
18951 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18952 $as_echo "$ac_res" >&6; }
18953
18954 fi
18955 if test `eval 'as_val=${'$as_ac_Header'}
18956 $as_echo "$as_val"'` = yes; then
18957 cat >>confdefs.h <<_ACEOF
18958 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18959 _ACEOF
18960
18961 fi
18962
18963 done
18964
18965
18966
18967 for ac_func in fork vfork
18968 do
18969 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18970 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18971 $as_echo_n "checking for $ac_func... " >&6; }
18972 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18973 $as_echo_n "(cached) " >&6
18974 else
18975 cat >conftest.$ac_ext <<_ACEOF
18976 /* confdefs.h. */
18977 _ACEOF
18978 cat confdefs.h >>conftest.$ac_ext
18979 cat >>conftest.$ac_ext <<_ACEOF
18980 /* end confdefs.h. */
18981 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func .
18982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18983 #define $ac_func innocuous_$ac_func
18984
18985 /* System header to define __stub macros and hopefully few prototypes,
18986 which can conflict with char $ac_func (); below.
18987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18988 <limits.h> exists even on freestanding compilers. */
18989
18990 #ifdef __STDC__
18991 # include <limits.h>
18992 #else
18993 # include <assert.h>
18994 #endif
18995
18996 #undef $ac_func
18997
18998 /* Override any GCC internal prototype to avoid an error.
18999 Use char because int might match the return type of a GCC
19000 builtin and then its argument prototype would still apply. */
19001 #ifdef __cplusplus
19002 extern "C"
19003 #endif
19004 char $ac_func ();
19005 /* The GNU C library defines this for functions which it implements
19006 to always fail with ENOSYS. Some functions are actually named
19007 something starting with __ and the normal name is an alias. */
19008 #if defined __stub_$ac_func || defined __stub___$ac_func
19009 choke me
19010 #endif
19011
19012 int
19013 main ()
19014 {
19015 return $ac_func ();
19016 ;
19017 return 0;
19018 }
19019 _ACEOF
19020 rm -f conftest.$ac_objext conftest$ac_exeext
19021 if { (ac_try="$ac_link"
19022 case "(($ac_try" in
19023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19024 *) ac_try_echo=$ac_try;;
19025 esac
19026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19027 $as_echo "$ac_try_echo") >&5
19028 (eval "$ac_link") 2>conftest.er1
19029 ac_status=$?
19030 grep -v '^ *+' conftest.er1 >conftest.err
19031 rm -f conftest.er1
19032 cat conftest.err >&5
19033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19034 (exit $ac_status); } && {
19035 test -z "$ac_c_werror_flag" ||
19036 test ! -s conftest.err
19037 } && test -s conftest$ac_exeext && {
19038 test "$cross_compiling" = yes ||
19039 $as_test_x conftest$ac_exeext
19040 }; then
19041 eval "$as_ac_var=yes"
19042 else
19043 $as_echo "$as_me: failed program was:" >&5
19044 sed 's/^/| /' conftest.$ac_ext >&5
19045
19046 eval "$as_ac_var=no"
19047 fi
19048
19049 rm -rf conftest.dSYM
19050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19051 conftest$ac_exeext conftest.$ac_ext
19052 fi
19053 ac_res=`eval 'as_val=${'$as_ac_var'}
19054 $as_echo "$as_val"'`
19055 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19056 $as_echo "$ac_res" >&6; }
19057 if test `eval 'as_val=${'$as_ac_var'}
19058 $as_echo "$as_val"'` = yes; then
19059 cat >>confdefs.h <<_ACEOF
19060 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19061 _ACEOF
19062
19063 fi
19064 done
19065
19066 if test "x$ac_cv_func_fork" = xyes; then
19067 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
19068 $as_echo_n "checking for working fork... " >&6; }
19069 if test "${ac_cv_func_fork_works+set}" = set; then
19070 $as_echo_n "(cached) " >&6
19071 else
19072 if test "$cross_compiling" = yes; then
19073 ac_cv_func_fork_works=cross
19074 else
19075 cat >conftest.$ac_ext <<_ACEOF
19076 /* confdefs.h. */
19077 _ACEOF
19078 cat confdefs.h >>conftest.$ac_ext
19079 cat >>conftest.$ac_ext <<_ACEOF
19080 /* end confdefs.h. */
19081 $ac_includes_default
19082 int
19083 main ()
19084 {
19085
19086 /* By Ruediger Kuhlmann. */
19087 return fork () < 0;
19088
19089 ;
19090 return 0;
19091 }
19092 _ACEOF
19093 rm -f conftest$ac_exeext
19094 if { (ac_try="$ac_link"
19095 case "(($ac_try" in
19096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19097 *) ac_try_echo=$ac_try;;
19098 esac
19099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19100 $as_echo "$ac_try_echo") >&5
19101 (eval "$ac_link") 2>&5
19102 ac_status=$?
19103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19104 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19105 { (case "(($ac_try" in
19106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19107 *) ac_try_echo=$ac_try;;
19108 esac
19109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19110 $as_echo "$ac_try_echo") >&5
19111 (eval "$ac_try") 2>&5
19112 ac_status=$?
19113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); }; }; then
19115 ac_cv_func_fork_works=yes
19116 else
19117 $as_echo "$as_me: program exited with status $ac_status" >&5
19118 $as_echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19120
19121 ( exit $ac_status )
19122 ac_cv_func_fork_works=no
19123 fi
19124 rm -rf conftest.dSYM
19125 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$a c_objext conftest.$ac_ext
19126 fi
19127
19128
19129 fi
19130 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
19131 $as_echo "$ac_cv_func_fork_works" >&6; }
19132
19133 else
19134 ac_cv_func_fork_works=$ac_cv_func_fork
19135 fi
19136 if test "x$ac_cv_func_fork_works" = xcross; then
19137 case $host in
19138 *-*-amigaos* | *-*-msdosdjgpp*)
19139 # Override, as these systems have only a dummy fork() stub
19140 ac_cv_func_fork_works=no
19141 ;;
19142 *)
19143 ac_cv_func_fork_works=yes
19144 ;;
19145 esac
19146 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed bec ause of cross compilation" >&5
19147 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cros s compilation" >&2;}
19148 fi
19149 ac_cv_func_vfork_works=$ac_cv_func_vfork
19150 if test "x$ac_cv_func_vfork" = xyes; then
19151 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
19152 $as_echo_n "checking for working vfork... " >&6; }
19153 if test "${ac_cv_func_vfork_works+set}" = set; then
19154 $as_echo_n "(cached) " >&6
19155 else
19156 if test "$cross_compiling" = yes; then
19157 ac_cv_func_vfork_works=cross
19158 else
19159 cat >conftest.$ac_ext <<_ACEOF
19160 /* confdefs.h. */
19161 _ACEOF
19162 cat confdefs.h >>conftest.$ac_ext
19163 cat >>conftest.$ac_ext <<_ACEOF
19164 /* end confdefs.h. */
19165 /* Thanks to Paul Eggert for this test. */
19166 $ac_includes_default
19167 #include <sys/wait.h>
19168 #ifdef HAVE_VFORK_H
19169 # include <vfork.h>
19170 #endif
19171 /* On some sparc systems, changes by the child to local and incoming
19172 argument registers are propagated back to the parent. The compiler
19173 is told about this with #include <vfork.h>, but some compilers
19174 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
19175 static variable whose address is put into a register that is
19176 clobbered by the vfork. */
19177 static void
19178 #ifdef __cplusplus
19179 sparc_address_test (int arg)
19180 # else
19181 sparc_address_test (arg) int arg;
19182 #endif
19183 {
19184 static pid_t child;
19185 if (!child) {
19186 child = vfork ();
19187 if (child < 0) {
19188 perror ("vfork");
19189 _exit(2);
19190 }
19191 if (!child) {
19192 arg = getpid();
19193 write(-1, "", 0);
19194 _exit (arg);
19195 }
19196 }
19197 }
19198
19199 int
19200 main ()
19201 {
19202 pid_t parent = getpid ();
19203 pid_t child;
19204
19205 sparc_address_test (0);
19206
19207 child = vfork ();
19208
19209 if (child == 0) {
19210 /* Here is another test for sparc vfork register problems. This
19211 test uses lots of local variables, at least as many local
19212 variables as main has allocated so far including compiler
19213 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
19214 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
19215 reuse the register of parent for one of the local variables,
19216 since it will think that parent can't possibly be used any more
19217 in this routine. Assigning to the local variable will thus
19218 munge parent in the parent process. */
19219 pid_t
19220 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
19221 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
19222 /* Convince the compiler that p..p7 are live; otherwise, it might
19223 use the same hardware register for all 8 local variables. */
19224 if (p != p1 || p != p2 || p != p3 || p != p4
19225 || p != p5 || p != p6 || p != p7)
19226 _exit(1);
19227
19228 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
19229 from child file descriptors. If the child closes a descriptor
19230 before it execs or exits, this munges the parent's descriptor
19231 as well. Test for this by closing stdout in the child. */
19232 _exit(close(fileno(stdout)) != 0);
19233 } else {
19234 int status;
19235 struct stat st;
19236
19237 while (wait(&status) != child)
19238 ;
19239 return (
19240 /* Was there some problem with vforking? */
19241 child < 0
19242
19243 /* Did the child fail? (This shouldn't happen.) */
19244 || status
19245
19246 /* Did the vfork/compiler bug occur? */
19247 || parent != getpid()
19248
19249 /* Did the file descriptor bug occur? */
19250 || fstat(fileno(stdout), &st) != 0
19251 );
19252 }
19253 }
19254 _ACEOF
19255 rm -f conftest$ac_exeext
19256 if { (ac_try="$ac_link"
19257 case "(($ac_try" in
19258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19259 *) ac_try_echo=$ac_try;;
19260 esac
19261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19262 $as_echo "$ac_try_echo") >&5
19263 (eval "$ac_link") 2>&5
19264 ac_status=$?
19265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19267 { (case "(($ac_try" in
19268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19269 *) ac_try_echo=$ac_try;;
19270 esac
19271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19272 $as_echo "$ac_try_echo") >&5
19273 (eval "$ac_try") 2>&5
19274 ac_status=$?
19275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); }; }; then
19277 ac_cv_func_vfork_works=yes
19278 else
19279 $as_echo "$as_me: program exited with status $ac_status" >&5
19280 $as_echo "$as_me: failed program was:" >&5
19281 sed 's/^/| /' conftest.$ac_ext >&5
19282
19283 ( exit $ac_status )
19284 ac_cv_func_vfork_works=no
19285 fi
19286 rm -rf conftest.dSYM
19287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$a c_objext conftest.$ac_ext
19288 fi
19289
19290
19291 fi
19292 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
19293 $as_echo "$ac_cv_func_vfork_works" >&6; }
19294
19295 fi;
19296 if test "x$ac_cv_func_fork_works" = xcross; then
19297 ac_cv_func_vfork_works=$ac_cv_func_vfork
19298 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed be cause of cross compilation" >&5
19299 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cro ss compilation" >&2;}
19300 fi
19301
19302 if test "x$ac_cv_func_vfork_works" = xyes; then
19303
19304 cat >>confdefs.h <<\_ACEOF
19305 #define HAVE_WORKING_VFORK 1
19306 _ACEOF
19307
19308 else
19309
19310 cat >>confdefs.h <<\_ACEOF
19311 #define vfork fork
19312 _ACEOF
19313
19314 fi
19315 if test "x$ac_cv_func_fork_works" = xyes; then
19316
19317 cat >>confdefs.h <<\_ACEOF
19318 #define HAVE_WORKING_FORK 1
19319 _ACEOF
19320
19321 fi
19322
19323
19324
19325
19326 for ac_header in sys/time.h sys/times.h
19327 do
19328 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19330 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19331 $as_echo_n "checking for $ac_header... " >&6; }
19332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19333 $as_echo_n "(cached) " >&6
19334 fi
19335 ac_res=`eval 'as_val=${'$as_ac_Header'}
19336 $as_echo "$as_val"'`
19337 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19338 $as_echo "$ac_res" >&6; }
19339 else
19340 # Is the header compilable?
19341 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19342 $as_echo_n "checking $ac_header usability... " >&6; }
19343 cat >conftest.$ac_ext <<_ACEOF
19344 /* confdefs.h. */
19345 _ACEOF
19346 cat confdefs.h >>conftest.$ac_ext
19347 cat >>conftest.$ac_ext <<_ACEOF
19348 /* end confdefs.h. */
19349 $ac_includes_default
19350 #include <$ac_header>
19351 _ACEOF
19352 rm -f conftest.$ac_objext
19353 if { (ac_try="$ac_compile"
19354 case "(($ac_try" in
19355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19356 *) ac_try_echo=$ac_try;;
19357 esac
19358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19359 $as_echo "$ac_try_echo") >&5
19360 (eval "$ac_compile") 2>conftest.er1
19361 ac_status=$?
19362 grep -v '^ *+' conftest.er1 >conftest.err
19363 rm -f conftest.er1
19364 cat conftest.err >&5
19365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); } && {
19367 test -z "$ac_c_werror_flag" ||
19368 test ! -s conftest.err
19369 } && test -s conftest.$ac_objext; then
19370 ac_header_compiler=yes
19371 else
19372 $as_echo "$as_me: failed program was:" >&5
19373 sed 's/^/| /' conftest.$ac_ext >&5
19374
19375 ac_header_compiler=no
19376 fi
19377
19378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19379 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19380 $as_echo "$ac_header_compiler" >&6; }
19381
19382 # Is the header present?
19383 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19384 $as_echo_n "checking $ac_header presence... " >&6; }
19385 cat >conftest.$ac_ext <<_ACEOF
19386 /* confdefs.h. */
19387 _ACEOF
19388 cat confdefs.h >>conftest.$ac_ext
19389 cat >>conftest.$ac_ext <<_ACEOF
19390 /* end confdefs.h. */
19391 #include <$ac_header>
19392 _ACEOF
19393 if { (ac_try="$ac_cpp conftest.$ac_ext"
19394 case "(($ac_try" in
19395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19396 *) ac_try_echo=$ac_try;;
19397 esac
19398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19399 $as_echo "$ac_try_echo") >&5
19400 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19401 ac_status=$?
19402 grep -v '^ *+' conftest.er1 >conftest.err
19403 rm -f conftest.er1
19404 cat conftest.err >&5
19405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19406 (exit $ac_status); } >/dev/null && {
19407 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19408 test ! -s conftest.err
19409 }; then
19410 ac_header_preproc=yes
19411 else
19412 $as_echo "$as_me: failed program was:" >&5
19413 sed 's/^/| /' conftest.$ac_ext >&5
19414
19415 ac_header_preproc=no
19416 fi
19417
19418 rm -f conftest.err conftest.$ac_ext
19419 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19420 $as_echo "$ac_header_preproc" >&6; }
19421
19422 # So? What about this header?
19423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19424 yes:no: )
19425 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, r ejected by the preprocessor!" >&5
19426 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19427 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compile r's result" >&5
19428 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >& 2;}
19429 ac_header_preproc=yes
19430 ;;
19431 no:yes:* )
19432 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compi led" >&5
19433 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19434 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prere quisite headers?" >&5
19435 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite header s?" >&2;}
19436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentat ion" >&5
19437 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19438 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But C annot Be Compiled\"" >&5
19439 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compi led\"" >&2;}
19440 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preproc essor's result" >&5
19441 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result " >&2;}
19442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19443 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take pre cedence" >&2;}
19444 ( cat <<\_ASBOX
19445 ## -------------------------------- ##
19446 ## Report this to bug-bison@gnu.org ##
19447 ## -------------------------------- ##
19448 _ASBOX
19449 ) | sed "s/^/$as_me: WARNING: /" >&2
19450 ;;
19451 esac
19452 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19453 $as_echo_n "checking for $ac_header... " >&6; }
19454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19455 $as_echo_n "(cached) " >&6
19456 else
19457 eval "$as_ac_Header=\$ac_header_preproc"
19458 fi
19459 ac_res=`eval 'as_val=${'$as_ac_Header'}
19460 $as_echo "$as_val"'`
19461 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19462 $as_echo "$ac_res" >&6; }
19463
19464 fi
19465 if test `eval 'as_val=${'$as_ac_Header'}
19466 $as_echo "$as_val"'` = yes; then
19467 cat >>confdefs.h <<_ACEOF
19468 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19469 _ACEOF
19470
19471 fi
19472
19473 done
19474
19475
19476 for ac_header in sys/resource.h
19477 do
19478 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19479 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19480 $as_echo_n "checking for $ac_header... " >&6; }
19481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19482 $as_echo_n "(cached) " >&6
19483 else
19484 cat >conftest.$ac_ext <<_ACEOF
19485 /* confdefs.h. */
19486 _ACEOF
19487 cat confdefs.h >>conftest.$ac_ext
19488 cat >>conftest.$ac_ext <<_ACEOF
19489 /* end confdefs.h. */
19490 $ac_includes_default
19491 #if HAVE_SYS_TIME_H
19492 # include <sys/time.h>
19493 #endif
19494 #ifdef HAVE_SYS_TIMES_H
19495 # include <sys/times.h>
19496 #endif
19497
19498
19499 #include <$ac_header>
19500 _ACEOF
19501 rm -f conftest.$ac_objext
19502 if { (ac_try="$ac_compile"
19503 case "(($ac_try" in
19504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19505 *) ac_try_echo=$ac_try;;
19506 esac
19507 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19508 $as_echo "$ac_try_echo") >&5
19509 (eval "$ac_compile") 2>conftest.er1
19510 ac_status=$?
19511 grep -v '^ *+' conftest.er1 >conftest.err
19512 rm -f conftest.er1
19513 cat conftest.err >&5
19514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); } && {
19516 test -z "$ac_c_werror_flag" ||
19517 test ! -s conftest.err
19518 } && test -s conftest.$ac_objext; then
19519 eval "$as_ac_Header=yes"
19520 else
19521 $as_echo "$as_me: failed program was:" >&5
19522 sed 's/^/| /' conftest.$ac_ext >&5
19523
19524 eval "$as_ac_Header=no"
19525 fi
19526
19527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19528 fi
19529 ac_res=`eval 'as_val=${'$as_ac_Header'}
19530 $as_echo "$as_val"'`
19531 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19532 $as_echo "$ac_res" >&6; }
19533 if test `eval 'as_val=${'$as_ac_Header'}
19534 $as_echo "$as_val"'` = yes; then
19535 cat >>confdefs.h <<_ACEOF
19536 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19537 _ACEOF
19538
19539 fi
19540
19541 done
19542
19543
19544 for ac_func in times
19545 do
19546 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19547 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19548 $as_echo_n "checking for $ac_func... " >&6; }
19549 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19550 $as_echo_n "(cached) " >&6
19551 else
19552 cat >conftest.$ac_ext <<_ACEOF
19553 /* confdefs.h. */
19554 _ACEOF
19555 cat confdefs.h >>conftest.$ac_ext
19556 cat >>conftest.$ac_ext <<_ACEOF
19557 /* end confdefs.h. */
19558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func .
19559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19560 #define $ac_func innocuous_$ac_func
19561
19562 /* System header to define __stub macros and hopefully few prototypes,
19563 which can conflict with char $ac_func (); below.
19564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19565 <limits.h> exists even on freestanding compilers. */
19566
19567 #ifdef __STDC__
19568 # include <limits.h>
19569 #else
19570 # include <assert.h>
19571 #endif
19572
19573 #undef $ac_func
19574
19575 /* Override any GCC internal prototype to avoid an error.
19576 Use char because int might match the return type of a GCC
19577 builtin and then its argument prototype would still apply. */
19578 #ifdef __cplusplus
19579 extern "C"
19580 #endif
19581 char $ac_func ();
19582 /* The GNU C library defines this for functions which it implements
19583 to always fail with ENOSYS. Some functions are actually named
19584 something starting with __ and the normal name is an alias. */
19585 #if defined __stub_$ac_func || defined __stub___$ac_func
19586 choke me
19587 #endif
19588
19589 int
19590 main ()
19591 {
19592 return $ac_func ();
19593 ;
19594 return 0;
19595 }
19596 _ACEOF
19597 rm -f conftest.$ac_objext conftest$ac_exeext
19598 if { (ac_try="$ac_link"
19599 case "(($ac_try" in
19600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19601 *) ac_try_echo=$ac_try;;
19602 esac
19603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19604 $as_echo "$ac_try_echo") >&5
19605 (eval "$ac_link") 2>conftest.er1
19606 ac_status=$?
19607 grep -v '^ *+' conftest.er1 >conftest.err
19608 rm -f conftest.er1
19609 cat conftest.err >&5
19610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); } && {
19612 test -z "$ac_c_werror_flag" ||
19613 test ! -s conftest.err
19614 } && test -s conftest$ac_exeext && {
19615 test "$cross_compiling" = yes ||
19616 $as_test_x conftest$ac_exeext
19617 }; then
19618 eval "$as_ac_var=yes"
19619 else
19620 $as_echo "$as_me: failed program was:" >&5
19621 sed 's/^/| /' conftest.$ac_ext >&5
19622
19623 eval "$as_ac_var=no"
19624 fi
19625
19626 rm -rf conftest.dSYM
19627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19628 conftest$ac_exeext conftest.$ac_ext
19629 fi
19630 ac_res=`eval 'as_val=${'$as_ac_var'}
19631 $as_echo "$as_val"'`
19632 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19633 $as_echo "$ac_res" >&6; }
19634 if test `eval 'as_val=${'$as_ac_var'}
19635 $as_echo "$as_val"'` = yes; then
19636 cat >>confdefs.h <<_ACEOF
19637 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19638 _ACEOF
19639
19640 fi
19641 done
19642
19643
19644 { $as_echo "$as_me:$LINENO: checking whether getrusage is declared" >&5
19645 $as_echo_n "checking whether getrusage is declared... " >&6; }
19646 if test "${ac_cv_have_decl_getrusage+set}" = set; then
19647 $as_echo_n "(cached) " >&6
19648 else
19649 cat >conftest.$ac_ext <<_ACEOF
19650 /* confdefs.h. */
19651 _ACEOF
19652 cat confdefs.h >>conftest.$ac_ext
19653 cat >>conftest.$ac_ext <<_ACEOF
19654 /* end confdefs.h. */
19655 $ac_includes_default
19656 #if HAVE_SYS_TIME_H
19657 # include <sys/time.h>
19658 #endif
19659 #if HAVE_SYS_TIMES_H
19660 # include <sys/times.h>
19661 #endif
19662 #if HAVE_SYS_RESOURCE_H
19663 # include <sys/resource.h>
19664 #endif
19665
19666
19667 int
19668 main ()
19669 {
19670 #ifndef getrusage
19671 (void) getrusage;
19672 #endif
19673
19674 ;
19675 return 0;
19676 }
19677 _ACEOF
19678 rm -f conftest.$ac_objext
19679 if { (ac_try="$ac_compile"
19680 case "(($ac_try" in
19681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19682 *) ac_try_echo=$ac_try;;
19683 esac
19684 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19685 $as_echo "$ac_try_echo") >&5
19686 (eval "$ac_compile") 2>conftest.er1
19687 ac_status=$?
19688 grep -v '^ *+' conftest.er1 >conftest.err
19689 rm -f conftest.er1
19690 cat conftest.err >&5
19691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); } && {
19693 test -z "$ac_c_werror_flag" ||
19694 test ! -s conftest.err
19695 } && test -s conftest.$ac_objext; then
19696 ac_cv_have_decl_getrusage=yes
19697 else
19698 $as_echo "$as_me: failed program was:" >&5
19699 sed 's/^/| /' conftest.$ac_ext >&5
19700
19701 ac_cv_have_decl_getrusage=no
19702 fi
19703
19704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19705 fi
19706 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getrusage" >&5
19707 $as_echo "$ac_cv_have_decl_getrusage" >&6; }
19708 if test $ac_cv_have_decl_getrusage = yes; then
19709
19710 cat >>confdefs.h <<_ACEOF
19711 #define HAVE_DECL_GETRUSAGE 1
19712 _ACEOF
19713
19714
19715 else
19716 cat >>confdefs.h <<_ACEOF
19717 #define HAVE_DECL_GETRUSAGE 0
19718 _ACEOF
19719
19720
19721 fi
19722 { $as_echo "$as_me:$LINENO: checking whether times is declared" >&5
19723 $as_echo_n "checking whether times is declared... " >&6; }
19724 if test "${ac_cv_have_decl_times+set}" = set; then
19725 $as_echo_n "(cached) " >&6
19726 else
19727 cat >conftest.$ac_ext <<_ACEOF
19728 /* confdefs.h. */
19729 _ACEOF
19730 cat confdefs.h >>conftest.$ac_ext
19731 cat >>conftest.$ac_ext <<_ACEOF
19732 /* end confdefs.h. */
19733 $ac_includes_default
19734 #if HAVE_SYS_TIME_H
19735 # include <sys/time.h>
19736 #endif
19737 #if HAVE_SYS_TIMES_H
19738 # include <sys/times.h>
19739 #endif
19740 #if HAVE_SYS_RESOURCE_H
19741 # include <sys/resource.h>
19742 #endif
19743
19744
19745 int
19746 main ()
19747 {
19748 #ifndef times
19749 (void) times;
19750 #endif
19751
19752 ;
19753 return 0;
19754 }
19755 _ACEOF
19756 rm -f conftest.$ac_objext
19757 if { (ac_try="$ac_compile"
19758 case "(($ac_try" in
19759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19760 *) ac_try_echo=$ac_try;;
19761 esac
19762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19763 $as_echo "$ac_try_echo") >&5
19764 (eval "$ac_compile") 2>conftest.er1
19765 ac_status=$?
19766 grep -v '^ *+' conftest.er1 >conftest.err
19767 rm -f conftest.er1
19768 cat conftest.err >&5
19769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); } && {
19771 test -z "$ac_c_werror_flag" ||
19772 test ! -s conftest.err
19773 } && test -s conftest.$ac_objext; then
19774 ac_cv_have_decl_times=yes
19775 else
19776 $as_echo "$as_me: failed program was:" >&5
19777 sed 's/^/| /' conftest.$ac_ext >&5
19778
19779 ac_cv_have_decl_times=no
19780 fi
19781
19782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19783 fi
19784 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_times" >&5
19785 $as_echo "$ac_cv_have_decl_times" >&6; }
19786 if test $ac_cv_have_decl_times = yes; then
19787
19788 cat >>confdefs.h <<_ACEOF
19789 #define HAVE_DECL_TIMES 1
19790 _ACEOF
19791
19792
19793 else
19794 cat >>confdefs.h <<_ACEOF
19795 #define HAVE_DECL_TIMES 0
19796 _ACEOF
19797
19798
19799 fi
19800 { $as_echo "$as_me:$LINENO: checking whether clock is declared" >&5
19801 $as_echo_n "checking whether clock is declared... " >&6; }
19802 if test "${ac_cv_have_decl_clock+set}" = set; then
19803 $as_echo_n "(cached) " >&6
19804 else
19805 cat >conftest.$ac_ext <<_ACEOF
19806 /* confdefs.h. */
19807 _ACEOF
19808 cat confdefs.h >>conftest.$ac_ext
19809 cat >>conftest.$ac_ext <<_ACEOF
19810 /* end confdefs.h. */
19811 $ac_includes_default
19812 #if HAVE_SYS_TIME_H
19813 # include <sys/time.h>
19814 #endif
19815 #if HAVE_SYS_TIMES_H
19816 # include <sys/times.h>
19817 #endif
19818 #if HAVE_SYS_RESOURCE_H
19819 # include <sys/resource.h>
19820 #endif
19821
19822
19823 int
19824 main ()
19825 {
19826 #ifndef clock
19827 (void) clock;
19828 #endif
19829
19830 ;
19831 return 0;
19832 }
19833 _ACEOF
19834 rm -f conftest.$ac_objext
19835 if { (ac_try="$ac_compile"
19836 case "(($ac_try" in
19837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19838 *) ac_try_echo=$ac_try;;
19839 esac
19840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19841 $as_echo "$ac_try_echo") >&5
19842 (eval "$ac_compile") 2>conftest.er1
19843 ac_status=$?
19844 grep -v '^ *+' conftest.er1 >conftest.err
19845 rm -f conftest.er1
19846 cat conftest.err >&5
19847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); } && {
19849 test -z "$ac_c_werror_flag" ||
19850 test ! -s conftest.err
19851 } && test -s conftest.$ac_objext; then
19852 ac_cv_have_decl_clock=yes
19853 else
19854 $as_echo "$as_me: failed program was:" >&5
19855 sed 's/^/| /' conftest.$ac_ext >&5
19856
19857 ac_cv_have_decl_clock=no
19858 fi
19859
19860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19861 fi
19862 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_clock" >&5
19863 $as_echo "$ac_cv_have_decl_clock" >&6; }
19864 if test $ac_cv_have_decl_clock = yes; then
19865
19866 cat >>confdefs.h <<_ACEOF
19867 #define HAVE_DECL_CLOCK 1
19868 _ACEOF
19869
19870
19871 else
19872 cat >>confdefs.h <<_ACEOF
19873 #define HAVE_DECL_CLOCK 0
19874 _ACEOF
19875
19876
19877 fi
19878 { $as_echo "$as_me:$LINENO: checking whether sysconf is declared" >&5
19879 $as_echo_n "checking whether sysconf is declared... " >&6; }
19880 if test "${ac_cv_have_decl_sysconf+set}" = set; then
19881 $as_echo_n "(cached) " >&6
19882 else
19883 cat >conftest.$ac_ext <<_ACEOF
19884 /* confdefs.h. */
19885 _ACEOF
19886 cat confdefs.h >>conftest.$ac_ext
19887 cat >>conftest.$ac_ext <<_ACEOF
19888 /* end confdefs.h. */
19889 $ac_includes_default
19890 #if HAVE_SYS_TIME_H
19891 # include <sys/time.h>
19892 #endif
19893 #if HAVE_SYS_TIMES_H
19894 # include <sys/times.h>
19895 #endif
19896 #if HAVE_SYS_RESOURCE_H
19897 # include <sys/resource.h>
19898 #endif
19899
19900
19901 int
19902 main ()
19903 {
19904 #ifndef sysconf
19905 (void) sysconf;
19906 #endif
19907
19908 ;
19909 return 0;
19910 }
19911 _ACEOF
19912 rm -f conftest.$ac_objext
19913 if { (ac_try="$ac_compile"
19914 case "(($ac_try" in
19915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19916 *) ac_try_echo=$ac_try;;
19917 esac
19918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19919 $as_echo "$ac_try_echo") >&5
19920 (eval "$ac_compile") 2>conftest.er1
19921 ac_status=$?
19922 grep -v '^ *+' conftest.er1 >conftest.err
19923 rm -f conftest.er1
19924 cat conftest.err >&5
19925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); } && {
19927 test -z "$ac_c_werror_flag" ||
19928 test ! -s conftest.err
19929 } && test -s conftest.$ac_objext; then
19930 ac_cv_have_decl_sysconf=yes
19931 else
19932 $as_echo "$as_me: failed program was:" >&5
19933 sed 's/^/| /' conftest.$ac_ext >&5
19934
19935 ac_cv_have_decl_sysconf=no
19936 fi
19937
19938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19939 fi
19940 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sysconf" >&5
19941 $as_echo "$ac_cv_have_decl_sysconf" >&6; }
19942 if test $ac_cv_have_decl_sysconf = yes; then
19943
19944 cat >>confdefs.h <<_ACEOF
19945 #define HAVE_DECL_SYSCONF 1
19946 _ACEOF
19947
19948
19949 else
19950 cat >>confdefs.h <<_ACEOF
19951 #define HAVE_DECL_SYSCONF 0
19952 _ACEOF
19953
19954
19955 fi
19956
19957
19958
19959 { $as_echo "$as_me:$LINENO: checking for clock_t" >&5
19960 $as_echo_n "checking for clock_t... " >&6; }
19961 if test "${ac_cv_type_clock_t+set}" = set; then
19962 $as_echo_n "(cached) " >&6
19963 else
19964 ac_cv_type_clock_t=no
19965 cat >conftest.$ac_ext <<_ACEOF
19966 /* confdefs.h. */
19967 _ACEOF
19968 cat confdefs.h >>conftest.$ac_ext
19969 cat >>conftest.$ac_ext <<_ACEOF
19970 /* end confdefs.h. */
19971 $ac_includes_default
19972 #if HAVE_SYS_TIME_H
19973 # include <sys/time.h>
19974 #endif
19975 #if HAVE_SYS_TIMES_H
19976 # include <sys/times.h>
19977 #endif
19978 #if HAVE_SYS_RESOURCE_H
19979 # include <sys/resource.h>
19980 #endif
19981
19982
19983 int
19984 main ()
19985 {
19986 if (sizeof (clock_t))
19987 return 0;
19988 ;
19989 return 0;
19990 }
19991 _ACEOF
19992 rm -f conftest.$ac_objext
19993 if { (ac_try="$ac_compile"
19994 case "(($ac_try" in
19995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19996 *) ac_try_echo=$ac_try;;
19997 esac
19998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19999 $as_echo "$ac_try_echo") >&5
20000 (eval "$ac_compile") 2>conftest.er1
20001 ac_status=$?
20002 grep -v '^ *+' conftest.er1 >conftest.err
20003 rm -f conftest.er1
20004 cat conftest.err >&5
20005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); } && {
20007 test -z "$ac_c_werror_flag" ||
20008 test ! -s conftest.err
20009 } && test -s conftest.$ac_objext; then
20010 cat >conftest.$ac_ext <<_ACEOF
20011 /* confdefs.h. */
20012 _ACEOF
20013 cat confdefs.h >>conftest.$ac_ext
20014 cat >>conftest.$ac_ext <<_ACEOF
20015 /* end confdefs.h. */
20016 $ac_includes_default
20017 #if HAVE_SYS_TIME_H
20018 # include <sys/time.h>
20019 #endif
20020 #if HAVE_SYS_TIMES_H
20021 # include <sys/times.h>
20022 #endif
20023 #if HAVE_SYS_RESOURCE_H
20024 # include <sys/resource.h>
20025 #endif
20026
20027
20028 int
20029 main ()
20030 {
20031 if (sizeof ((clock_t)))
20032 return 0;
20033 ;
20034 return 0;
20035 }
20036 _ACEOF
20037 rm -f conftest.$ac_objext
20038 if { (ac_try="$ac_compile"
20039 case "(($ac_try" in
20040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20041 *) ac_try_echo=$ac_try;;
20042 esac
20043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20044 $as_echo "$ac_try_echo") >&5
20045 (eval "$ac_compile") 2>conftest.er1
20046 ac_status=$?
20047 grep -v '^ *+' conftest.er1 >conftest.err
20048 rm -f conftest.er1
20049 cat conftest.err >&5
20050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); } && {
20052 test -z "$ac_c_werror_flag" ||
20053 test ! -s conftest.err
20054 } && test -s conftest.$ac_objext; then
20055 :
20056 else
20057 $as_echo "$as_me: failed program was:" >&5
20058 sed 's/^/| /' conftest.$ac_ext >&5
20059
20060 ac_cv_type_clock_t=yes
20061 fi
20062
20063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20064 else
20065 $as_echo "$as_me: failed program was:" >&5
20066 sed 's/^/| /' conftest.$ac_ext >&5
20067
20068
20069 fi
20070
20071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20072 fi
20073 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_clock_t" >&5
20074 $as_echo "$ac_cv_type_clock_t" >&6; }
20075 if test $ac_cv_type_clock_t = yes; then
20076
20077 cat >>confdefs.h <<_ACEOF
20078 #define HAVE_CLOCK_T 1
20079 _ACEOF
20080
20081
20082 fi
20083 { $as_echo "$as_me:$LINENO: checking for struct tms" >&5
20084 $as_echo_n "checking for struct tms... " >&6; }
20085 if test "${ac_cv_type_struct_tms+set}" = set; then
20086 $as_echo_n "(cached) " >&6
20087 else
20088 ac_cv_type_struct_tms=no
20089 cat >conftest.$ac_ext <<_ACEOF
20090 /* confdefs.h. */
20091 _ACEOF
20092 cat confdefs.h >>conftest.$ac_ext
20093 cat >>conftest.$ac_ext <<_ACEOF
20094 /* end confdefs.h. */
20095 $ac_includes_default
20096 #if HAVE_SYS_TIME_H
20097 # include <sys/time.h>
20098 #endif
20099 #if HAVE_SYS_TIMES_H
20100 # include <sys/times.h>
20101 #endif
20102 #if HAVE_SYS_RESOURCE_H
20103 # include <sys/resource.h>
20104 #endif
20105
20106
20107 int
20108 main ()
20109 {
20110 if (sizeof (struct tms))
20111 return 0;
20112 ;
20113 return 0;
20114 }
20115 _ACEOF
20116 rm -f conftest.$ac_objext
20117 if { (ac_try="$ac_compile"
20118 case "(($ac_try" in
20119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20120 *) ac_try_echo=$ac_try;;
20121 esac
20122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20123 $as_echo "$ac_try_echo") >&5
20124 (eval "$ac_compile") 2>conftest.er1
20125 ac_status=$?
20126 grep -v '^ *+' conftest.er1 >conftest.err
20127 rm -f conftest.er1
20128 cat conftest.err >&5
20129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130 (exit $ac_status); } && {
20131 test -z "$ac_c_werror_flag" ||
20132 test ! -s conftest.err
20133 } && test -s conftest.$ac_objext; then
20134 cat >conftest.$ac_ext <<_ACEOF
20135 /* confdefs.h. */
20136 _ACEOF
20137 cat confdefs.h >>conftest.$ac_ext
20138 cat >>conftest.$ac_ext <<_ACEOF
20139 /* end confdefs.h. */
20140 $ac_includes_default
20141 #if HAVE_SYS_TIME_H
20142 # include <sys/time.h>
20143 #endif
20144 #if HAVE_SYS_TIMES_H
20145 # include <sys/times.h>
20146 #endif
20147 #if HAVE_SYS_RESOURCE_H
20148 # include <sys/resource.h>
20149 #endif
20150
20151
20152 int
20153 main ()
20154 {
20155 if (sizeof ((struct tms)))
20156 return 0;
20157 ;
20158 return 0;
20159 }
20160 _ACEOF
20161 rm -f conftest.$ac_objext
20162 if { (ac_try="$ac_compile"
20163 case "(($ac_try" in
20164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20165 *) ac_try_echo=$ac_try;;
20166 esac
20167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20168 $as_echo "$ac_try_echo") >&5
20169 (eval "$ac_compile") 2>conftest.er1
20170 ac_status=$?
20171 grep -v '^ *+' conftest.er1 >conftest.err
20172 rm -f conftest.er1
20173 cat conftest.err >&5
20174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20175 (exit $ac_status); } && {
20176 test -z "$ac_c_werror_flag" ||
20177 test ! -s conftest.err
20178 } && test -s conftest.$ac_objext; then
20179 :
20180 else
20181 $as_echo "$as_me: failed program was:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20183
20184 ac_cv_type_struct_tms=yes
20185 fi
20186
20187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20188 else
20189 $as_echo "$as_me: failed program was:" >&5
20190 sed 's/^/| /' conftest.$ac_ext >&5
20191
20192
20193 fi
20194
20195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20196 fi
20197 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_tms" >&5
20198 $as_echo "$ac_cv_type_struct_tms" >&6; }
20199 if test $ac_cv_type_struct_tms = yes; then
20200
20201 cat >>confdefs.h <<_ACEOF
20202 #define HAVE_STRUCT_TMS 1
20203 _ACEOF
20204
20205
20206 fi
20207
20208
20209
20210 # Gettext.
20211 # We've never tested with gettext versions before 0.15, so play it safe.
20212
20213 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
20214 $as_echo_n "checking whether NLS is requested... " >&6; }
20215 # Check whether --enable-nls was given.
20216 if test "${enable_nls+set}" = set; then
20217 enableval=$enable_nls; USE_NLS=$enableval
20218 else
20219 USE_NLS=yes
20220 fi
20221
20222 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
20223 $as_echo "$USE_NLS" >&6; }
20224
20225
20226
20227
20228 GETTEXT_MACRO_VERSION=0.17
20229
20230
20231
20232
20233 # Prepare PATH_SEPARATOR.
20234 # The user is always right.
20235 if test "${PATH_SEPARATOR+set}" != set; then
20236 echo "#! /bin/sh" >conf$$.sh
20237 echo "exit 0" >>conf$$.sh
20238 chmod +x conf$$.sh
20239 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20240 PATH_SEPARATOR=';'
20241 else
20242 PATH_SEPARATOR=:
20243 fi
20244 rm -f conf$$.sh
20245 fi
20246
20247 # Find out how to test for executable files. Don't use a zero-byte file,
20248 # as systems may use methods other than mode bits to determine executability.
20249 cat >conf$$.file <<_ASEOF
20250 #! /bin/sh
20251 exit 0
20252 _ASEOF
20253 chmod +x conf$$.file
20254 if test -x conf$$.file >/dev/null 2>&1; then
20255 ac_executable_p="test -x"
20256 else
20257 ac_executable_p="test -f"
20258 fi
20259 rm -f conf$$.file
20260
20261 # Extract the first word of "msgfmt", so it can be a program name with args.
20262 set dummy msgfmt; ac_word=$2
20263 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20264 $as_echo_n "checking for $ac_word... " >&6; }
20265 if test "${ac_cv_path_MSGFMT+set}" = set; then
20266 $as_echo_n "(cached) " >&6
20267 else
20268 case "$MSGFMT" in
20269 [\\/]* | ?:[\\/]*)
20270 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
20271 ;;
20272 *)
20273 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20274 for ac_dir in $PATH; do
20275 IFS="$ac_save_IFS"
20276 test -z "$ac_dir" && ac_dir=.
20277 for ac_exec_ext in '' $ac_executable_extensions; do
20278 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20279 echo "$as_me: trying $ac_dir/$ac_word..." >&5
20280 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
20281 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/ dev/null; then exit 1; else exit 0; fi); then
20282 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
20283 break 2
20284 fi
20285 fi
20286 done
20287 done
20288 IFS="$ac_save_IFS"
20289 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
20290 ;;
20291 esac
20292 fi
20293 MSGFMT="$ac_cv_path_MSGFMT"
20294 if test "$MSGFMT" != ":"; then
20295 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
20296 $as_echo "$MSGFMT" >&6; }
20297 else
20298 { $as_echo "$as_me:$LINENO: result: no" >&5
20299 $as_echo "no" >&6; }
20300 fi
20301
20302 # Extract the first word of "gmsgfmt", so it can be a program name with args.
20303 set dummy gmsgfmt; ac_word=$2
20304 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20305 $as_echo_n "checking for $ac_word... " >&6; }
20306 if test "${ac_cv_path_GMSGFMT+set}" = set; then
20307 $as_echo_n "(cached) " >&6
20308 else
20309 case $GMSGFMT in
20310 [\\/]* | ?:[\\/]*)
20311 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
20312 ;;
20313 *)
20314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20315 for as_dir in $PATH
20316 do
20317 IFS=$as_save_IFS
20318 test -z "$as_dir" && as_dir=.
20319 for ac_exec_ext in '' $ac_executable_extensions; do
20320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
20321 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
20322 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20323 break 2
20324 fi
20325 done
20326 done
20327 IFS=$as_save_IFS
20328
20329 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
20330 ;;
20331 esac
20332 fi
20333 GMSGFMT=$ac_cv_path_GMSGFMT
20334 if test -n "$GMSGFMT"; then
20335 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
20336 $as_echo "$GMSGFMT" >&6; }
20337 else
20338 { $as_echo "$as_me:$LINENO: result: no" >&5
20339 $as_echo "no" >&6; }
20340 fi
20341
20342
20343
20344 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
20345 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
20346 *) MSGFMT_015=$MSGFMT ;;
20347 esac
20348
20349 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
20350 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
20351 *) GMSGFMT_015=$GMSGFMT ;;
20352 esac
20353
20354
20355
20356 # Prepare PATH_SEPARATOR.
20357 # The user is always right.
20358 if test "${PATH_SEPARATOR+set}" != set; then
20359 echo "#! /bin/sh" >conf$$.sh
20360 echo "exit 0" >>conf$$.sh
20361 chmod +x conf$$.sh
20362 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20363 PATH_SEPARATOR=';'
20364 else
20365 PATH_SEPARATOR=:
20366 fi
20367 rm -f conf$$.sh
20368 fi
20369
20370 # Find out how to test for executable files. Don't use a zero-byte file,
20371 # as systems may use methods other than mode bits to determine executability.
20372 cat >conf$$.file <<_ASEOF
20373 #! /bin/sh
20374 exit 0
20375 _ASEOF
20376 chmod +x conf$$.file
20377 if test -x conf$$.file >/dev/null 2>&1; then
20378 ac_executable_p="test -x"
20379 else
20380 ac_executable_p="test -f"
20381 fi
20382 rm -f conf$$.file
20383
20384 # Extract the first word of "xgettext", so it can be a program name with args.
20385 set dummy xgettext; ac_word=$2
20386 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20387 $as_echo_n "checking for $ac_word... " >&6; }
20388 if test "${ac_cv_path_XGETTEXT+set}" = set; then
20389 $as_echo_n "(cached) " >&6
20390 else
20391 case "$XGETTEXT" in
20392 [\\/]* | ?:[\\/]*)
20393 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path .
20394 ;;
20395 *)
20396 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20397 for ac_dir in $PATH; do
20398 IFS="$ac_save_IFS"
20399 test -z "$ac_dir" && ac_dir=.
20400 for ac_exec_ext in '' $ac_executable_extensions; do
20401 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20402 echo "$as_me: trying $ac_dir/$ac_word..." >&5
20403 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-add ress= /dev/null >&5 2>&1 &&
20404 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address = /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; f i); then
20405 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
20406 break 2
20407 fi
20408 fi
20409 done
20410 done
20411 IFS="$ac_save_IFS"
20412 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
20413 ;;
20414 esac
20415 fi
20416 XGETTEXT="$ac_cv_path_XGETTEXT"
20417 if test "$XGETTEXT" != ":"; then
20418 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
20419 $as_echo "$XGETTEXT" >&6; }
20420 else
20421 { $as_echo "$as_me:$LINENO: result: no" >&5
20422 $as_echo "no" >&6; }
20423 fi
20424
20425 rm -f messages.po
20426
20427 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
20428 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
20429 *) XGETTEXT_015=$XGETTEXT ;;
20430 esac
20431
20432
20433
20434 # Prepare PATH_SEPARATOR.
20435 # The user is always right.
20436 if test "${PATH_SEPARATOR+set}" != set; then
20437 echo "#! /bin/sh" >conf$$.sh
20438 echo "exit 0" >>conf$$.sh
20439 chmod +x conf$$.sh
20440 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20441 PATH_SEPARATOR=';'
20442 else
20443 PATH_SEPARATOR=:
20444 fi
20445 rm -f conf$$.sh
20446 fi
20447
20448 # Find out how to test for executable files. Don't use a zero-byte file,
20449 # as systems may use methods other than mode bits to determine executability.
20450 cat >conf$$.file <<_ASEOF
20451 #! /bin/sh
20452 exit 0
20453 _ASEOF
20454 chmod +x conf$$.file
20455 if test -x conf$$.file >/dev/null 2>&1; then
20456 ac_executable_p="test -x"
20457 else
20458 ac_executable_p="test -f"
20459 fi
20460 rm -f conf$$.file
20461
20462 # Extract the first word of "msgmerge", so it can be a program name with args.
20463 set dummy msgmerge; ac_word=$2
20464 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20465 $as_echo_n "checking for $ac_word... " >&6; }
20466 if test "${ac_cv_path_MSGMERGE+set}" = set; then
20467 $as_echo_n "(cached) " >&6
20468 else
20469 case "$MSGMERGE" in
20470 [\\/]* | ?:[\\/]*)
20471 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path .
20472 ;;
20473 *)
20474 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
20475 for ac_dir in $PATH; do
20476 IFS="$ac_save_IFS"
20477 test -z "$ac_dir" && ac_dir=.
20478 for ac_exec_ext in '' $ac_executable_extensions; do
20479 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
20480 echo "$as_me: trying $ac_dir/$ac_word..." >&5
20481 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
20482 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
20483 break 2
20484 fi
20485 fi
20486 done
20487 done
20488 IFS="$ac_save_IFS"
20489 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
20490 ;;
20491 esac
20492 fi
20493 MSGMERGE="$ac_cv_path_MSGMERGE"
20494 if test "$MSGMERGE" != ":"; then
20495 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
20496 $as_echo "$MSGMERGE" >&6; }
20497 else
20498 { $as_echo "$as_me:$LINENO: result: no" >&5
20499 $as_echo "no" >&6; }
20500 fi
20501
20502
20503 test -n "$localedir" || localedir='${datadir}/locale'
20504
20505
20506 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
20507
20508
20509 ac_config_commands="$ac_config_commands po-directories"
20510
20511
20512
20513 if test "X$prefix" = "XNONE"; then
20514 acl_final_prefix="$ac_default_prefix"
20515 else
20516 acl_final_prefix="$prefix"
20517 fi
20518 if test "X$exec_prefix" = "XNONE"; then
20519 acl_final_exec_prefix='${prefix}'
20520 else
20521 acl_final_exec_prefix="$exec_prefix"
20522 fi
20523 acl_save_prefix="$prefix"
20524 prefix="$acl_final_prefix"
20525 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
20526 prefix="$acl_save_prefix"
20527
20528
20529 # Check whether --with-gnu-ld was given.
20530 if test "${with_gnu_ld+set}" = set; then
20531 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20532 else
20533 with_gnu_ld=no
20534 fi
20535
20536 # Prepare PATH_SEPARATOR.
20537 # The user is always right.
20538 if test "${PATH_SEPARATOR+set}" != set; then
20539 echo "#! /bin/sh" >conf$$.sh
20540 echo "exit 0" >>conf$$.sh
20541 chmod +x conf$$.sh
20542 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20543 PATH_SEPARATOR=';'
20544 else
20545 PATH_SEPARATOR=:
20546 fi
20547 rm -f conf$$.sh
20548 fi
20549 ac_prog=ld
20550 if test "$GCC" = yes; then
20551 # Check if gcc -print-prog-name=ld gives a path.
20552 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
20553 $as_echo_n "checking for ld used by GCC... " >&6; }
20554 case $host in
20555 *-*-mingw*)
20556 # gcc leaves a trailing carriage return which upsets mingw
20557 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20558 *)
20559 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20560 esac
20561 case $ac_prog in
20562 # Accept absolute paths.
20563 [\\/]* | [A-Za-z]:[\\/]*)
20564 re_direlt='/[^/][^/]*/\.\./'
20565 # Canonicalize the path of ld
20566 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
20567 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
20568 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
20569 done
20570 test -z "$LD" && LD="$ac_prog"
20571 ;;
20572 "")
20573 # If it fails, then pretend we aren't using GCC.
20574 ac_prog=ld
20575 ;;
20576 *)
20577 # If it is relative, then search for the first ld in PATH.
20578 with_gnu_ld=unknown
20579 ;;
20580 esac
20581 elif test "$with_gnu_ld" = yes; then
20582 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
20583 $as_echo_n "checking for GNU ld... " >&6; }
20584 else
20585 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
20586 $as_echo_n "checking for non-GNU ld... " >&6; }
20587 fi
20588 if test "${acl_cv_path_LD+set}" = set; then
20589 $as_echo_n "(cached) " >&6
20590 else
20591 if test -z "$LD"; then
20592 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
20593 for ac_dir in $PATH; do
20594 test -z "$ac_dir" && ac_dir=.
20595 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20596 acl_cv_path_LD="$ac_dir/$ac_prog"
20597 # Check to see if the program is GNU ld. I'd rather use --version,
20598 # but apparently some GNU ld's only accept -v.
20599 # Break only if it was the GNU/non-GNU ld that we prefer.
20600 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
20601 *GNU* | *'with BFD'*)
20602 test "$with_gnu_ld" != no && break ;;
20603 *)
20604 test "$with_gnu_ld" != yes && break ;;
20605 esac
20606 fi
20607 done
20608 IFS="$ac_save_ifs"
20609 else
20610 acl_cv_path_LD="$LD" # Let the user override the test with a path.
20611 fi
20612 fi
20613
20614 LD="$acl_cv_path_LD"
20615 if test -n "$LD"; then
20616 { $as_echo "$as_me:$LINENO: result: $LD" >&5
20617 $as_echo "$LD" >&6; }
20618 else
20619 { $as_echo "$as_me:$LINENO: result: no" >&5
20620 $as_echo "no" >&6; }
20621 fi
20622 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
20623 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
20624 { (exit 1); exit 1; }; }
20625 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
20626 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20627 if test "${acl_cv_prog_gnu_ld+set}" = set; then
20628 $as_echo_n "(cached) " >&6
20629 else
20630 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
20631 case `$LD -v 2>&1 </dev/null` in
20632 *GNU* | *'with BFD'*)
20633 acl_cv_prog_gnu_ld=yes ;;
20634 *)
20635 acl_cv_prog_gnu_ld=no ;;
20636 esac
20637 fi
20638 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
20639 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
20640 with_gnu_ld=$acl_cv_prog_gnu_ld
20641
20642
20643
20644
20645 { $as_echo "$as_me:$LINENO: chec king for shared library run path origin" >&5
20646 $as_echo_n "checking for shared library run path origin... " >&6; }
20647 if test "${acl_cv_rpath+set}" = set; then
20648 $as_echo_n "(cached) " >&6
20649 else
20650
20651 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
20652 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
20653 . ./conftest.sh
20654 rm -f ./conftest.sh
20655 acl_cv_rpath=done
20656
20657 fi
20658 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
20659 $as_echo "$acl_cv_rpath" >&6; }
20660 wl="$acl_cv_wl"
20661 acl_libext="$acl_cv_libext"
20662 acl_shlibext="$acl_cv_shlibext"
20663 acl_libname_spec="$acl_cv_libname_spec"
20664 acl_library_names_spec="$acl_cv_library_names_spec"
20665 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
20666 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
20667 acl_hardcode_direct="$acl_cv_hardcode_direct"
20668 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
20669 # Check whether --enable-rpath was given.
20670 if test "${enable_rpath+set}" = set; then
20671 enableval=$enable_rpath; :
20672 else
20673 enable_rpath=yes
20674 fi
20675
20676
20677
20678
20679 acl_libdirstem=lib
20680 acl_libdirstem2=
20681 case "$host_os" in
20682 solaris*)
20683 { $as_echo "$as_me:$LINENO: checking for 64- bit host" >&5
20684 $as_echo_n "checking for 64-bit host... " >&6; }
20685 if test "${gl_cv_solaris_64bit+set}" = set; then
20686 $as_echo_n "(cached) " >&6
20687 else
20688 cat >conftest.$ac_ext <<_ACEOF
20689 /* confdefs.h. */
20690 _ACEOF
20691 cat confdefs.h >>conftest.$ac_ext
20692 cat >>conftest.$ac_ext <<_ACEOF
20693 /* end confdefs.h. */
20694
20695 #ifdef _LP64
20696 sixtyfour bits
20697 #endif
20698
20699 _ACEOF
20700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20701 $EGREP "sixtyfour bits" >/dev/null 2>&1; then
20702 gl_cv_solaris_64bit=yes
20703 else
20704 gl_cv_solaris_64bit=no
20705 fi
20706 rm -f conftest*
20707
20708
20709 fi
20710 { $as_echo "$as_me:$LINENO: result: $gl_cv_solaris_64bit" >&5
20711 $as_echo "$gl_cv_solaris_64bit" >&6; }
20712 if test $gl_cv_solaris_64bit = yes; then
20713 acl_libdirstem=lib/64
20714 case "$host_cpu" in
20715 sparc*) acl_libdirstem2=lib/sparcv9 ;;
20716 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
20717 esac
20718 fi
20719 ;;
20720 *)
20721 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^ libraries: ,,p' | sed -e 's,^=,,'`
20722 if test -n "$searchpath"; then
20723 acl_save_IFS="${IFS= }"; IFS=":"
20724 for searchdir in $searchpath; do
20725 if test -d "$searchdir"; then
20726 case "$searchdir" in
20727 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
20728 *) searchdir=`cd "$searchdir" && pwd`
20729 case "$searchdir" in
20730 */lib64 ) acl_libdirstem=lib64 ;;
20731 esac ;;
20732 esac
20733 fi
20734 done
20735 IFS="$acl_save_IFS"
20736 fi
20737 ;;
20738 esac
20739 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752 use_additional=yes
20753
20754 acl_save_prefix="$prefix"
20755 prefix="$acl_final_prefix"
20756 acl_save_exec_prefix="$exec_prefix"
20757 exec_prefix="$acl_final_exec_prefix"
20758
20759 eval additional_includedir=\"$includedir\"
20760 eval additional_libdir=\"$libdir\"
20761
20762 exec_prefix="$acl_save_exec_prefix"
20763 prefix="$acl_save_prefix"
20764
20765
20766 # Check whether --with-libiconv-prefix was given.
20767 if test "${with_libiconv_prefix+set}" = set; then
20768 withval=$with_libiconv_prefix;
20769 if test "X$withval" = "Xno"; then
20770 use_additional=no
20771 else
20772 if test "X$withval" = "X"; then
20773
20774 acl_save_prefix="$prefix"
20775 prefix="$acl_final_prefix"
20776 acl_save_exec_prefix="$exec_prefix"
20777 exec_prefix="$acl_final_exec_prefix"
20778
20779 eval additional_includedir=\"$includedir\"
20780 eval additional_libdir=\"$libdir\"
20781
20782 exec_prefix="$acl_save_exec_prefix"
20783 prefix="$acl_save_prefix"
20784
20785 else
20786 additional_includedir="$withval/include"
20787 additional_libdir="$withval/$acl_libdirstem"
20788 if test "$acl_libdirstem2" != "$acl_libdirstem" \
20789 && ! test -d "$withval/$acl_libdirstem"; then
20790 additional_libdir="$withval/$acl_libdirstem2"
20791 fi
20792 fi
20793 fi
20794
20795 fi
20796
20797 LIBICONV=
20798 LTLIBICONV=
20799 INCICONV=
20800 LIBICONV_PREFIX=
20801 rpathdirs=
20802 ltrpathdirs=
20803 names_already_handled=
20804 names_next_round='iconv '
20805 while test -n "$names_next_round"; do
20806 names_this_round="$names_next_round"
20807 names_next_round=
20808 for name in $names_this_round; do
20809 already_handled=
20810 for n in $names_already_handled; do
20811 if test "$n" = "$name"; then
20812 already_handled=yes
20813 break
20814 fi
20815 done
20816 if test -z "$already_handled"; then
20817 names_already_handled="$names_already_handled $name"
20818 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrst uvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20819 eval value=\"\$HAVE_LIB$uppername\"
20820 if test -n "$value"; then
20821 if test "$value" = yes; then
20822 eval value=\"\$LIB$uppername\"
20823 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
20824 eval value=\"\$LTLIB$uppername\"
20825 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
20826 else
20827 :
20828 fi
20829 else
20830 found_dir=
20831 found_la=
20832 found_so=
20833 found_a=
20834 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
20835 if test -n "$acl_shlibext"; then
20836 shrext=".$acl_shlibext" # typically: shrext=.so
20837 else
20838 shrext=
20839 fi
20840 if test $use_additional = yes; then
20841 dir="$additional_libdir"
20842 if test -n "$acl_shlibext"; then
20843 if test -f "$dir/$libname$shrext"; then
20844 found_dir="$dir"
20845 found_so="$dir/$libname$shrext"
20846 else
20847 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20848 ver=`(cd "$dir" && \
20849 for f in "$libname$shrext".*; do echo "$f"; done \
20850 | sed -e "s,^$libname$shrext\\\\.,," \
20851 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20852 | sed 1q ) 2>/dev/null`
20853 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20854 found_dir="$dir"
20855 found_so="$dir/$libname$shrext.$ver"
20856 fi
20857 else
20858 eval library_names=\"$acl_library_names_spec\"
20859 for f in $library_names; do
20860 if test -f "$dir/$f"; then
20861 found_dir="$dir"
20862 found_so="$dir/$f"
20863 break
20864 fi
20865 done
20866 fi
20867 fi
20868 fi
20869 if test "X$found_dir" = "X"; then
20870 if test -f "$dir/$libname.$acl_libext"; then
20871 found_dir="$dir"
20872 found_a="$dir/$libname.$acl_libext"
20873 fi
20874 fi
20875 if test "X$found_dir" != "X"; then
20876 if test -f "$dir/$libname.la"; then
20877 found_la="$dir/$libname.la"
20878 fi
20879 fi
20880 fi
20881 if test "X$found_dir" = "X"; then
20882 for x in $LDFLAGS $LTLIBICONV; do
20883
20884 acl_save_prefix="$prefix"
20885 prefix="$acl_final_prefix"
20886 acl_save_exec_prefix="$exec_prefix"
20887 exec_prefix="$acl_final_exec_prefix"
20888 eval x=\"$x\"
20889 exec_prefix="$acl_save_exec_prefix"
20890 prefix="$acl_save_prefix"
20891
20892 case "$x" in
20893 -L*)
20894 dir=`echo "X$x" | sed -e 's/^X-L//'`
20895 if test -n "$acl_shlibext"; then
20896 if test -f "$dir/$libname$shrext"; then
20897 found_dir="$dir"
20898 found_so="$dir/$libname$shrext"
20899 else
20900 if test "$acl_library_names_spec" = '$libname$shrext$versu ffix'; then
20901 ver=`(cd "$dir" && \
20902 for f in "$libname$shrext".*; do echo "$f"; done \
20903 | sed -e "s,^$libname$shrext\\\\.,," \
20904 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20905 | sed 1q ) 2>/dev/null`
20906 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" ; then
20907 found_dir="$dir"
20908 found_so="$dir/$libname$shrext.$ver"
20909 fi
20910 else
20911 eval library_names=\"$acl_library_names_spec\"
20912 for f in $library_names; do
20913 if test -f "$dir/$f"; then
20914 found_dir="$dir"
20915 found_so="$dir/$f"
20916 break
20917 fi
20918 done
20919 fi
20920 fi
20921 fi
20922 if test "X$found_dir" = "X"; then
20923 if test -f "$dir/$libname.$acl_libext"; then
20924 found_dir="$dir"
20925 found_a="$dir/$libname.$acl_libext"
20926 fi
20927 fi
20928 if test "X$found_dir" != "X"; then
20929 if test -f "$dir/$libname.la"; then
20930 found_la="$dir/$libname.la"
20931 fi
20932 fi
20933 ;;
20934 esac
20935 if test "X$found_dir" != "X"; then
20936 break
20937 fi
20938 done
20939 fi
20940 if test "X$found_dir" != "X"; then
20941 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l $name"
20942 if test "X$found_so" != "X"; then
20943 if test "$enable_rpath" = no \
20944 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
20945 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
20946 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20947 else
20948 haveit=
20949 for x in $ltrpathdirs; do
20950 if test "X$x" = "X$found_dir"; then
20951 haveit=yes
20952 break
20953 fi
20954 done
20955 if test -z "$haveit"; then
20956 ltrpathdirs="$ltrpathdirs $found_dir"
20957 fi
20958 if test "$acl_hardcode_direct" = yes; then
20959 LIBICONV="${LIBICONV}${LIB ICONV:+ }$found_so"
20960 else
20961 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hard code_minus_L" = no; then
20962 LIBICONV="${LIBICONV }${LIBICONV:+ }$found_so"
20963 haveit=
20964 for x in $rpathdirs; do
20965 if test "X$x" = "X$found_dir"; then
20966 haveit=yes
20967 break
20968 fi
20969 done
20970 if test -z "$haveit"; then
20971 rpathdirs="$rpathdirs $found_dir"
20972 fi
20973 else
20974 haveit=
20975 for x in $LDFLAGS $LIBICONV; do
20976
20977 acl_save_prefix="$prefix"
20978 prefix="$acl_final_prefix"
20979 acl_save_exec_prefix="$exec_prefix"
20980 exec_prefix="$acl_final_exec_prefix"
20981 eval x=\"$x\"
20982 exec_prefix="$acl_save_exec_prefix"
20983 prefix="$acl_save_prefix"
20984
20985 if test "X$x" = "X-L$found_dir"; then
20986 haveit=yes
20987 break
20988 fi
20989 done
20990 if test -z "$haveit"; then
20991 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
20992 fi
20993 if test "$acl_hardcode_minus_L" != no; then
20994 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20995 else
20996 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20997 fi
20998 fi
20999 fi
21000 fi
21001 else
21002 if test "X$found_a" != "X"; then
21003 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21004 else
21005 LIBICONV="${LIBICONV}${LIBICONV: + }-L$found_dir -l$name"
21006 fi
21007 fi
21008 additional_includedir=
21009 case "$found_dir" in
21010 */$acl_libdirstem | */$acl_libdirstem/)
21011 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdir stem/"'*$,,'`
21012 LIBICONV_PREFIX="$basedir"
21013 additional_includedir="$basedir/include"
21014 ;;
21015 */$acl_libdirstem2 | */$acl_libdirstem2/)
21016 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdir stem2/"'*$,,'`
21017 LIBICONV_PREFIX="$basedir"
21018 additional_includedir="$basedir/include"
21019 ;;
21020 esac
21021 if test "X$additional_includedir" != "X"; then
21022 if test "X$additional_includedir" != "X/usr/incl ude"; then
21023 haveit=
21024 if test "X$additional_includedir" = "X/usr/local/include"; then
21025 if test -n "$GCC"; then
21026 case $host_os in
21027 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21028 esac
21029 fi
21030 fi
21031 if test -z "$haveit"; then
21032 for x in $CPPFLAGS $INCICONV; do
21033
21034 acl_save_prefix="$prefix"
21035 prefix="$acl_final_prefix"
21036 acl_save_exec_prefix="$exec_prefix"
21037 exec_prefix="$acl_final_exec_prefix"
21038 eval x=\"$x\"
21039 exec_prefix="$acl_save_exec_prefix"
21040 prefix="$acl_save_prefix"
21041
21042 if test "X$x" = "X-I$additional_includedir"; then
21043 haveit=yes
21044 break
21045 fi
21046 done
21047 if test -z "$haveit"; then
21048 if test -d "$additional_includedir"; then
21049 INCICONV="${INCICONV}${INCICONV:+ }- I$additional_includedir"
21050 fi
21051 fi
21052 fi
21053 fi
21054 fi
21055 if test -n "$found_la"; then
21056 save_libdir="$libdir"
21057 case "$found_la" in
21058 */* | *\\*) . "$found_la" ;;
21059 *) . "./$found_la" ;;
21060 esac
21061 libdir="$save_libdir"
21062 for dep in $dependency_libs; do
21063 case "$dep" in
21064 -L*)
21065 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21066 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
21067 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2" ; then
21068 haveit=
21069 if test "X$additional_libdir" = "X/usr/local/$acl_libdirst em" \
21070 || test "X$additional_libdir" = "X/usr/local/$acl_libdi rstem2"; then
21071 if test -n "$GCC"; then
21072 case $host_os in
21073 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21074 esac
21075 fi
21076 fi
21077 if test -z "$haveit"; then
21078 haveit=
21079 for x in $LDFLAGS $LIBICONV; do
21080
21081 acl_save_prefix="$prefix"
21082 prefix="$acl_final_prefix"
21083 acl_save_exec_prefix="$exec_prefix"
21084 exec_prefix="$acl_final_exec_prefix"
21085 eval x=\"$x\"
21086 exec_prefix="$acl_save_exec_prefix"
21087 prefix="$acl_save_prefix"
21088
21089 if test "X$x" = "X-L$additional_libdir"; then
21090 haveit=yes
21091 break
21092 fi
21093 done
21094 if test -z "$haveit"; then
21095 if test -d "$additional_libdir"; then
21096 LIBICONV="${LIBICONV}${L IBICONV:+ }-L$additional_libdir"
21097 fi
21098 fi
21099 haveit=
21100 for x in $LDFLAGS $LTLIBICONV; do
21101
21102 acl_save_prefix="$prefix"
21103 prefix="$acl_final_prefix"
21104 acl_save_exec_prefix="$exec_prefix"
21105 exec_prefix="$acl_final_exec_prefix"
21106 eval x=\"$x\"
21107 exec_prefix="$acl_save_exec_prefix"
21108 prefix="$acl_save_prefix"
21109
21110 if test "X$x" = "X-L$additional_libdir"; then
21111 haveit=yes
21112 break
21113 fi
21114 done
21115 if test -z "$haveit"; then
21116 if test -d "$additional_libdir"; then
21117 LTLIBICONV="${LTLIBICONV }${LTLIBICONV:+ }-L$additional_libdir"
21118 fi
21119 fi
21120 fi
21121 fi
21122 ;;
21123 -R*)
21124 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21125 if test "$enable_rpath" != no; then
21126 haveit=
21127 for x in $rpathdirs; do
21128 if test "X$x" = "X$dir"; then
21129 haveit=yes
21130 break
21131 fi
21132 done
21133 if test -z "$haveit"; then
21134 rpathdirs="$rpathdirs $dir"
21135 fi
21136 haveit=
21137 for x in $ltrpathdirs; do
21138 if test "X$x" = "X$dir"; then
21139 haveit=yes
21140 break
21141 fi
21142 done
21143 if test -z "$haveit"; then
21144 ltrpathdirs="$ltrpathdirs $dir"
21145 fi
21146 fi
21147 ;;
21148 -l*)
21149 names_next_round="$names_next_round "`ec ho "X$dep" | sed -e 's/^X-l//'`
21150 ;;
21151 *.la)
21152 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^l ib,,' -e 's,\.la$,,'`
21153 ;;
21154 *)
21155 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21156 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21157 ;;
21158 esac
21159 done
21160 fi
21161 else
21162 LIBICONV="${LIBICONV }${LIBICONV:+ }-l$name"
21163 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21164 fi
21165 fi
21166 fi
21167 done
21168 done
21169 if test "X$rpathdirs" != "X"; then
21170 if test -n "$acl_hardcode_libdir_separator"; then
21171 alldirs=
21172 for found_dir in $rpathdirs; do
21173 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
21174 done
21175 acl_save_libdir="$libdir"
21176 libdir="$alldirs"
21177 eval flag=\"$acl_hardcode_libdir_flag_spec\"
21178 libdir="$acl_save_libdir"
21179 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21180 else
21181 for found_dir in $rpathdirs; do
21182 acl_save_libdir="$libdir"
21183 libdir="$found_dir"
21184 eval flag=\"$acl_hardcode_libdir_flag_spec\"
21185 libdir="$acl_save_libdir"
21186 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21187 done
21188 fi
21189 fi
21190 if test "X$ltrpathdirs" != "X"; then
21191 for found_dir in $ltrpathdirs; do
21192 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21193 done
21194 fi
21195
21196
21197
21198
21199
21200
21201
21202
21203
21204
21205
21206
21207
21208
21209
21210
21211
21212
21213
21214
21215
21216
21217
21218
21219
21220
21221
21222
21223
21224
21225 { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
21226 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
21227 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
21228 $as_echo_n "(cached) " >&6
21229 else
21230 gt_save_LIBS="$LIBS"
21231 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
21232 cat >conftest.$ac_ext <<_ACEOF
21233 /* confdefs.h. */
21234 _ACEOF
21235 cat confdefs.h >>conftest.$ac_ext
21236 cat >>conftest.$ac_ext <<_ACEOF
21237 /* end confdefs.h. */
21238 #include <CoreFoundation/CFPreferences.h>
21239 int
21240 main ()
21241 {
21242 CFPreferencesCopyAppValue(NULL, NULL)
21243 ;
21244 return 0;
21245 }
21246 _ACEOF
21247 rm -f conftest.$ac_objext conftest$ac_exeext
21248 if { (ac_try="$ac_link"
21249 case "(($ac_try" in
21250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21251 *) ac_try_echo=$ac_try;;
21252 esac
21253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21254 $as_echo "$ac_try_echo") >&5
21255 (eval "$ac_link") 2>conftest.er1
21256 ac_status=$?
21257 grep -v '^ *+' conftest.er1 >conftest.err
21258 rm -f conftest.er1
21259 cat conftest.err >&5
21260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261 (exit $ac_status); } && {
21262 test -z "$ac_c_werror_flag" ||
21263 test ! -s conftest.err
21264 } && test -s conftest$ac_exeext && {
21265 test "$cross_compiling" = yes ||
21266 $as_test_x conftest$ac_exeext
21267 }; then
21268 gt_cv_func_CFPreferencesCopyAppValue=yes
21269 else
21270 $as_echo "$as_me: failed program was:" >&5
21271 sed 's/^/| /' conftest.$ac_ext >&5
21272
21273 gt_cv_func_CFPreferencesCopyAppValue=no
21274 fi
21275
21276 rm -rf conftest.dSYM
21277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21278 conftest$ac_exeext conftest.$ac_ext
21279 LIBS="$gt_save_LIBS"
21280 fi
21281 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21282 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21283 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21284
21285 cat >>confdefs.h <<\_ACEOF
21286 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
21287 _ACEOF
21288
21289 fi
21290 { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
21291 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
21292 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
21293 $as_echo_n "(cached) " >&6
21294 else
21295 gt_save_LIBS="$LIBS"
21296 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
21297 cat >conftest.$ac_ext <<_ACEOF
21298 /* confdefs.h. */
21299 _ACEOF
21300 cat confdefs.h >>conftest.$ac_ext
21301 cat >>conftest.$ac_ext <<_ACEOF
21302 /* end confdefs.h. */
21303 #include <CoreFoundation/CFLocale.h>
21304 int
21305 main ()
21306 {
21307 CFLocaleCopyCurrent();
21308 ;
21309 return 0;
21310 }
21311 _ACEOF
21312 rm -f conftest.$ac_objext conftest$ac_exeext
21313 if { (ac_try="$ac_link"
21314 case "(($ac_try" in
21315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21316 *) ac_try_echo=$ac_try;;
21317 esac
21318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21319 $as_echo "$ac_try_echo") >&5
21320 (eval "$ac_link") 2>conftest.er1
21321 ac_status=$?
21322 grep -v '^ *+' conftest.er1 >conftest.err
21323 rm -f conftest.er1
21324 cat conftest.err >&5
21325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21326 (exit $ac_status); } && {
21327 test -z "$ac_c_werror_flag" ||
21328 test ! -s conftest.err
21329 } && test -s conftest$ac_exeext && {
21330 test "$cross_compiling" = yes ||
21331 $as_test_x conftest$ac_exeext
21332 }; then
21333 gt_cv_func_CFLocaleCopyCurrent=yes
21334 else
21335 $as_echo "$as_me: failed program was:" >&5
21336 sed 's/^/| /' conftest.$ac_ext >&5
21337
21338 gt_cv_func_CFLocaleCopyCurrent=no
21339 fi
21340
21341 rm -rf conftest.dSYM
21342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21343 conftest$ac_exeext conftest.$ac_ext
21344 LIBS="$gt_save_LIBS"
21345 fi
21346 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21347 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21348 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21349
21350 cat >>confdefs.h <<\_ACEOF
21351 #define HAVE_CFLOCALECOPYCURRENT 1
21352 _ACEOF
21353
21354 fi
21355 INTL_MACOSX_LIBS=
21356 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLoca leCopyCurrent = yes; then
21357 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21358 fi
21359
21360
21361
21362
21363
21364
21365 LIBINTL=
21366 LTLIBINTL=
21367 POSUB=
21368
21369 case " $gt_needs " in
21370 *" need-formatstring-macros "*) gt_api_version=3 ;;
21371 *" need-ngettext "*) gt_api_version=2 ;;
21372 *) gt_api_version=1 ;;
21373 esac
21374 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
21375 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
21376
21377 if test "$USE_NLS" = "yes"; then
21378 gt_use_preinstalled_gnugettext=no
21379
21380
21381 if test $gt_api_version -ge 3; then
21382 gt_revision_test_code='
21383 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
21384 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
21385 #endif
21386 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
21387 '
21388 else
21389 gt_revision_test_code=
21390 fi
21391 if test $gt_api_version -ge 2; then
21392 gt_expression_test_code=' + * ngettext ("", "", 0)'
21393 else
21394 gt_expression_test_code=
21395 fi
21396
21397 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
21398 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21399 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
21400 $as_echo_n "(cached) " >&6
21401 else
21402 cat >conftest.$ac_ext <<_ACEOF
21403 /* confdefs.h. */
21404 _ACEOF
21405 cat confdefs.h >>conftest.$ac_ext
21406 cat >>conftest.$ac_ext <<_ACEOF
21407 /* end confdefs.h. */
21408 #include <libintl.h>
21409 $gt_revision_test_code
21410 extern int _nl_msg_cat_cntr;
21411 extern int *_nl_domain_bindings;
21412 int
21413 main ()
21414 {
21415 bindtextdomain ("", "");
21416 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_b indings
21417 ;
21418 return 0;
21419 }
21420 _ACEOF
21421 rm -f conftest.$ac_objext conftest$ac_exeext
21422 if { (ac_try="$ac_link"
21423 case "(($ac_try" in
21424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21425 *) ac_try_echo=$ac_try;;
21426 esac
21427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21428 $as_echo "$ac_try_echo") >&5
21429 (eval "$ac_link") 2>conftest.er1
21430 ac_status=$?
21431 grep -v '^ *+' conftest.er1 >conftest.err
21432 rm -f conftest.er1
21433 cat conftest.err >&5
21434 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); } && {
21436 test -z "$ac_c_werror_flag" ||
21437 test ! -s conftest.err
21438 } && test -s conftest$ac_exeext && {
21439 test "$cross_compiling" = yes ||
21440 $as_test_x conftest$ac_exeext
21441 }; then
21442 eval "$gt_func_gnugettext_libc=yes"
21443 else
21444 $as_echo "$as_me: failed program was:" >&5
21445 sed 's/^/| /' conftest.$ac_ext >&5
21446
21447 eval "$gt_func_gnugettext_libc=no"
21448 fi
21449
21450 rm -rf conftest.dSYM
21451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21452 conftest$ac_exeext conftest.$ac_ext
21453 fi
21454 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
21455 $as_echo "$as_val"'`
21456 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21457 $as_echo "$ac_res" >&6; }
21458
21459 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
21460
21461
21462
21463
21464
21465 am_save_CPPFLAGS="$CPPFLAGS"
21466
21467 for element in $INCICONV; do
21468 haveit=
21469 for x in $CPPFLAGS; do
21470
21471 acl_save_prefix="$prefix"
21472 prefix="$acl_final_prefix"
21473 acl_save_exec_prefix="$exec_prefix"
21474 exec_prefix="$acl_final_exec_prefix"
21475 eval x=\"$x\"
21476 exec_prefix="$acl_save_exec_prefix"
21477 prefix="$acl_save_prefix"
21478
21479 if test "X$x" = "X$element"; then
21480 haveit=yes
21481 break
21482 fi
21483 done
21484 if test -z "$haveit"; then
21485 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21486 fi
21487 done
21488
21489
21490 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
21491 $as_echo_n "checking for iconv... " >&6; }
21492 if test "${am_cv_func_iconv+set}" = set; then
21493 $as_echo_n "(cached) " >&6
21494 else
21495
21496 am_cv_func_iconv="no, consider installing GNU libiconv"
21497 am_cv_lib_iconv=no
21498 cat >conftest.$ac_ext <<_ACEOF
21499 /* confdefs.h. */
21500 _ACEOF
21501 cat confdefs.h >>conftest.$ac_ext
21502 cat >>conftest.$ac_ext <<_ACEOF
21503 /* end confdefs.h. */
21504 #include <stdlib.h>
21505 #include <iconv.h>
21506 int
21507 main ()
21508 {
21509 iconv_t cd = iconv_open("","");
21510 iconv(cd,NULL,NULL,NULL,NULL);
21511 iconv_close(cd);
21512 ;
21513 return 0;
21514 }
21515 _ACEOF
21516 rm -f conftest.$ac_objext conftest$ac_exeext
21517 if { (ac_try="$ac_link"
21518 case "(($ac_try" in
21519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21520 *) ac_try_echo=$ac_try;;
21521 esac
21522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21523 $as_echo "$ac_try_echo") >&5
21524 (eval "$ac_link") 2>conftest.er1
21525 ac_status=$?
21526 grep -v '^ *+' conftest.er1 >conftest.err
21527 rm -f conftest.er1
21528 cat conftest.err >&5
21529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530 (exit $ac_status); } && {
21531 test -z "$ac_c_werror_flag" ||
21532 test ! -s conftest.err
21533 } && test -s conftest$ac_exeext && {
21534 test "$cross_compiling" = yes ||
21535 $as_test_x conftest$ac_exeext
21536 }; then
21537 am_cv_func_iconv=yes
21538 else
21539 $as_echo "$as_me: failed program was:" >&5
21540 sed 's/^/| /' conftest.$ac_ext >&5
21541
21542
21543 fi
21544
21545 rm -rf conftest.dSYM
21546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21547 conftest$ac_exeext conftest.$ac_ext
21548 if test "$am_cv_func_iconv" != yes; then
21549 am_save_LIBS="$LIBS"
21550 LIBS="$LIBS $LIBICONV"
21551 cat >conftest.$ac_ext <<_ACEOF
21552 /* confdefs.h. */
21553 _ACEOF
21554 cat confdefs.h >>conftest.$ac_ext
21555 cat >>conftest.$ac_ext <<_ACEOF
21556 /* end confdefs.h. */
21557 #include <stdlib.h>
21558 #include <iconv.h>
21559 int
21560 main ()
21561 {
21562 iconv_t cd = iconv_open("","");
21563 iconv(cd,NULL,NULL,NULL,NULL);
21564 iconv_close(cd);
21565 ;
21566 return 0;
21567 }
21568 _ACEOF
21569 rm -f conftest.$ac_objext conftest$ac_exeext
21570 if { (ac_try="$ac_link"
21571 case "(($ac_try" in
21572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21573 *) ac_try_echo=$ac_try;;
21574 esac
21575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21576 $as_echo "$ac_try_echo") >&5
21577 (eval "$ac_link") 2>conftest.er1
21578 ac_status=$?
21579 grep -v '^ *+' conftest.er1 >conftest.err
21580 rm -f conftest.er1
21581 cat conftest.err >&5
21582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583 (exit $ac_status); } && {
21584 test -z "$ac_c_werror_flag" ||
21585 test ! -s conftest.err
21586 } && test -s conftest$ac_exeext && {
21587 test "$cross_compiling" = yes ||
21588 $as_test_x conftest$ac_exeext
21589 }; then
21590 am_cv_lib_iconv=yes
21591 am_cv_func_iconv=yes
21592 else
21593 $as_echo "$as_me: failed program was:" >&5
21594 sed 's/^/| /' conftest.$ac_ext >&5
21595
21596
21597 fi
21598
21599 rm -rf conftest.dSYM
21600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21601 conftest$ac_exeext conftest.$ac_ext
21602 LIBS="$am_save_LIBS"
21603 fi
21604
21605 fi
21606 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
21607 $as_echo "$am_cv_func_iconv" >&6; }
21608 if test "$am_cv_func_iconv" = yes; then
21609 { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
21610 $as_echo_n "checking for working iconv... " >&6; }
21611 if test "${am_cv_func_iconv_works+set}" = set; then
21612 $as_echo_n "(cached) " >&6
21613 else
21614
21615 am_save_LIBS="$LIBS"
21616 if test $am_cv_lib_iconv = yes; then
21617 LIBS="$LIBS $LIBICONV"
21618 fi
21619 if test "$cross_compiling" = yes; then
21620 case "$host_os" in
21621 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
21622 *) am_cv_func_iconv_works="guessing yes" ;;
21623 esac
21624 else
21625 cat >conftest.$ac_ext <<_ACEOF
21626 /* confdefs.h. */
21627 _ACEOF
21628 cat confdefs.h >>conftest.$ac_ext
21629 cat >>conftest.$ac_ext <<_ACEOF
21630 /* end confdefs.h. */
21631
21632 #include <iconv.h>
21633 #include <string.h>
21634 int main ()
21635 {
21636 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
21637 returns. */
21638 {
21639 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
21640 if (cd_utf8_to_88591 != (iconv_t)(-1))
21641 {
21642 static const char input[] = "\342\202\254"; /* EURO SIGN */
21643 char buf[10];
21644 const char *inptr = input;
21645 size_t inbytesleft = strlen (input);
21646 char *outptr = buf;
21647 size_t outbytesleft = sizeof (buf);
21648 size_t res = iconv (cd_utf8_to_88591,
21649 (char **) &inptr, &inbytesleft,
21650 &outptr, &outbytesleft);
21651 if (res == 0)
21652 return 1;
21653 }
21654 }
21655 #if 0 /* This bug could be worked around by the caller. */
21656 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
21657 {
21658 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
21659 if (cd_88591_to_utf8 != (iconv_t)(-1))
21660 {
21661 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augen ma\337";
21662 char buf[50];
21663 const char *inptr = input;
21664 size_t inbytesleft = strlen (input);
21665 char *outptr = buf;
21666 size_t outbytesleft = sizeof (buf);
21667 size_t res = iconv (cd_88591_to_utf8,
21668 (char **) &inptr, &inbytesleft,
21669 &outptr, &outbytesleft);
21670 if ((int)res > 0)
21671 return 1;
21672 }
21673 }
21674 #endif
21675 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
21676 provided. */
21677 if (/* Try standardized names. */
21678 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
21679 /* Try IRIX, OSF/1 names. */
21680 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
21681 /* Try AIX names. */
21682 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
21683 /* Try HP-UX names. */
21684 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
21685 return 1;
21686 return 0;
21687 }
21688 _ACEOF
21689 rm -f conftest$ac_exeext
21690 if { (ac_try="$ac_link"
21691 case "(($ac_try" in
21692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21693 *) ac_try_echo=$ac_try;;
21694 esac
21695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21696 $as_echo "$ac_try_echo") >&5
21697 (eval "$ac_link") 2>&5
21698 ac_status=$?
21699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21701 { (case "(($ac_try" in
21702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21703 *) ac_try_echo=$ac_try;;
21704 esac
21705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21706 $as_echo "$ac_try_echo") >&5
21707 (eval "$ac_try") 2>&5
21708 ac_status=$?
21709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21710 (exit $ac_status); }; }; then
21711 am_cv_func_iconv_works=yes
21712 else
21713 $as_echo "$as_me: program exited with status $ac_status" >&5
21714 $as_echo "$as_me: failed program was:" >&5
21715 sed 's/^/| /' conftest.$ac_ext >&5
21716
21717 ( exit $ac_status )
21718 am_cv_func_iconv_works=no
21719 fi
21720 rm -rf conftest.dSYM
21721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$a c_objext conftest.$ac_ext
21722 fi
21723
21724
21725 LIBS="$am_save_LIBS"
21726
21727 fi
21728 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
21729 $as_echo "$am_cv_func_iconv_works" >&6; }
21730 case "$am_cv_func_iconv_works" in
21731 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
21732 *) am_func_iconv=yes ;;
21733 esac
21734 else
21735 am_func_iconv=no am_cv_lib_iconv=no
21736 fi
21737 if test "$am_func_iconv" = yes; then
21738
21739 cat >>confdefs.h <<\_ACEOF
21740 #define HAVE_ICONV 1
21741 _ACEOF
21742
21743 fi
21744 if test "$am_cv_lib_iconv" = yes; then
21745 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
21746 $as_echo_n "checking how to link with libiconv... " >&6; }
21747 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
21748 $as_echo "$LIBICONV" >&6; }
21749 else
21750 CPPFLAGS="$am_save_CPPFLAGS"
21751 LIBICONV=
21752 LTLIBICONV=
21753 fi
21754
21755
21756
21757
21758
21759
21760
21761
21762
21763
21764
21765 use_additional=yes
21766
21767 acl_save_prefix="$prefix"
21768 prefix="$acl_final_prefix"
21769 acl_save_exec_prefix="$exec_prefix"
21770 exec_prefix="$acl_final_exec_prefix"
21771
21772 eval additional_includedir=\"$includedir\"
21773 eval additional_libdir=\"$libdir\"
21774
21775 exec_prefix="$acl_save_exec_prefix"
21776 prefix="$acl_save_prefix"
21777
21778
21779 # Check whether --with-libintl-prefix was given.
21780 if test "${with_libintl_prefix+set}" = set; then
21781 withval=$with_libintl_prefix;
21782 if test "X$withval" = "Xno"; then
21783 use_additional=no
21784 else
21785 if test "X$withval" = "X"; then
21786
21787 acl_save_prefix="$prefix"
21788 prefix="$acl_final_prefix"
21789 acl_save_exec_prefix="$exec_prefix"
21790 exec_prefix="$acl_final_exec_prefix"
21791
21792 eval additional_includedir=\"$includedir\"
21793 eval additional_libdir=\"$libdir\"
21794
21795 exec_prefix="$acl_save_exec_prefix"
21796 prefix="$acl_save_prefix"
21797
21798 else
21799 additional_includedir="$withval/include"
21800 additional_libdir="$withval/$acl_libdirstem"
21801 if test "$acl_libdirstem2" != "$acl_libdirstem" \
21802 && ! test -d "$withval/$acl_libdirstem"; then
21803 additional_libdir="$withval/$acl_libdirstem2"
21804 fi
21805 fi
21806 fi
21807
21808 fi
21809
21810 LIBINTL=
21811 LTLIBINTL=
21812 INCINTL=
21813 LIBINTL_PREFIX=
21814 rpathdirs=
21815 ltrpathdirs=
21816 names_already_handled=
21817 names_next_round='intl '
21818 while test -n "$names_next_round"; do
21819 names_this_round="$names_next_round"
21820 names_next_round=
21821 for name in $names_this_round; do
21822 already_handled=
21823 for n in $names_already_handled; do
21824 if test "$n" = "$name"; then
21825 already_handled=yes
21826 break
21827 fi
21828 done
21829 if test -z "$already_handled"; then
21830 names_already_handled="$names_already_handled $name"
21831 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrst uvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21832 eval value=\"\$HAVE_LIB$uppername\"
21833 if test -n "$value"; then
21834 if test "$value" = yes; then
21835 eval value=\"\$LIB$uppername\"
21836 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21837 eval value=\"\$LTLIB$uppername\"
21838 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21839 else
21840 :
21841 fi
21842 else
21843 found_dir=
21844 found_la=
21845 found_so=
21846 found_a=
21847 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
21848 if test -n "$acl_shlibext"; then
21849 shrext=".$acl_shlibext" # typically: shrext=.so
21850 else
21851 shrext=
21852 fi
21853 if test $use_additional = yes; then
21854 dir="$additional_libdir"
21855 if test -n "$acl_shlibext"; then
21856 if test -f "$dir/$libname$shrext"; then
21857 found_dir="$dir"
21858 found_so="$dir/$libname$shrext"
21859 else
21860 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
21861 ver=`(cd "$dir" && \
21862 for f in "$libname$shrext".*; do echo "$f"; done \
21863 | sed -e "s,^$libname$shrext\\\\.,," \
21864 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
21865 | sed 1q ) 2>/dev/null`
21866 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
21867 found_dir="$dir"
21868 found_so="$dir/$libname$shrext.$ver"
21869 fi
21870 else
21871 eval library_names=\"$acl_library_names_spec\"
21872 for f in $library_names; do
21873 if test -f "$dir/$f"; then
21874 found_dir="$dir"
21875 found_so="$dir/$f"
21876 break
21877 fi
21878 done
21879 fi
21880 fi
21881 fi
21882 if test "X$found_dir" = "X"; then
21883 if test -f "$dir/$libname.$acl_libext"; then
21884 found_dir="$dir"
21885 found_a="$dir/$libname.$acl_libext"
21886 fi
21887 fi
21888 if test "X$found_dir" != "X"; then
21889 if test -f "$dir/$libname.la"; then
21890 found_la="$dir/$libname.la"
21891 fi
21892 fi
21893 fi
21894 if test "X$found_dir" = "X"; then
21895 for x in $LDFLAGS $LTLIBINTL; do
21896
21897 acl_save_prefix="$prefix"
21898 prefix="$acl_final_prefix"
21899 acl_save_exec_prefix="$exec_prefix"
21900 exec_prefix="$acl_final_exec_prefix"
21901 eval x=\"$x\"
21902 exec_prefix="$acl_save_exec_prefix"
21903 prefix="$acl_save_prefix"
21904
21905 case "$x" in
21906 -L*)
21907 dir=`echo "X$x" | sed -e 's/^X-L//'`
21908 if test -n "$acl_shlibext"; then
21909 if test -f "$dir/$libname$shrext"; then
21910 found_dir="$dir"
21911 found_so="$dir/$libname$shrext"
21912 else
21913 if test "$acl_library_names_spec" = '$libname$shrext$versu ffix'; then
21914 ver=`(cd "$dir" && \
21915 for f in "$libname$shrext".*; do echo "$f"; done \
21916 | sed -e "s,^$libname$shrext\\\\.,," \
21917 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
21918 | sed 1q ) 2>/dev/null`
21919 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" ; then
21920 found_dir="$dir"
21921 found_so="$dir/$libname$shrext.$ver"
21922 fi
21923 else
21924 eval library_names=\"$acl_library_names_spec\"
21925 for f in $library_names; do
21926 if test -f "$dir/$f"; then
21927 found_dir="$dir"
21928 found_so="$dir/$f"
21929 break
21930 fi
21931 done
21932 fi
21933 fi
21934 fi
21935 if test "X$found_dir" = "X"; then
21936 if test -f "$dir/$libname.$acl_libext"; then
21937 found_dir="$dir"
21938 found_a="$dir/$libname.$acl_libext"
21939 fi
21940 fi
21941 if test "X$found_dir" != "X"; then
21942 if test -f "$dir/$libname.la"; then
21943 found_la="$dir/$libname.la"
21944 fi
21945 fi
21946 ;;
21947 esac
21948 if test "X$found_dir" != "X"; then
21949 break
21950 fi
21951 done
21952 fi
21953 if test "X$found_dir" != "X"; then
21954 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$na me"
21955 if test "X$found_so" != "X"; then
21956 if test "$enable_rpath" = no \
21957 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
21958 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
21959 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21960 else
21961 haveit=
21962 for x in $ltrpathdirs; do
21963 if test "X$x" = "X$found_dir"; then
21964 haveit=yes
21965 break
21966 fi
21967 done
21968 if test -z "$haveit"; then
21969 ltrpathdirs="$ltrpathdirs $found_dir"
21970 fi
21971 if test "$acl_hardcode_direct" = yes; then
21972 LIBINTL="${LIBINTL}${LIBIN TL:+ }$found_so"
21973 else
21974 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hard code_minus_L" = no; then
21975 LIBINTL="${LIBINTL}$ {LIBINTL:+ }$found_so"
21976 haveit=
21977 for x in $rpathdirs; do
21978 if test "X$x" = "X$found_dir"; then
21979 haveit=yes
21980 break
21981 fi
21982 done
21983 if test -z "$haveit"; then
21984 rpathdirs="$rpathdirs $found_dir"
21985 fi
21986 else
21987 haveit=
21988 for x in $LDFLAGS $LIBINTL; do
21989
21990 acl_save_prefix="$prefix"
21991 prefix="$acl_final_prefix"
21992 acl_save_exec_prefix="$exec_prefix"
21993 exec_prefix="$acl_final_exec_prefix"
21994 eval x=\"$x\"
21995 exec_prefix="$acl_save_exec_prefix"
21996 prefix="$acl_save_prefix"
21997
21998 if test "X$x" = "X-L$found_dir"; then
21999 haveit=yes
22000 break
22001 fi
22002 done
22003 if test -z "$haveit"; then
22004 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
22005 fi
22006 if test "$acl_hardcode_minus_L" != no; then
22007 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
22008 else
22009 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
22010 fi
22011 fi
22012 fi
22013 fi
22014 else
22015 if test "X$found_a" != "X"; then
22016 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
22017 else
22018 LIBINTL="${LIBINTL}${LIBINTL:+ } -L$found_dir -l$name"
22019 fi
22020 fi
22021 additional_includedir=
22022 case "$found_dir" in
22023 */$acl_libdirstem | */$acl_libdirstem/)
22024 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdir stem/"'*$,,'`
22025 LIBINTL_PREFIX="$basedir"
22026 additional_includedir="$basedir/include"
22027 ;;
22028 */$acl_libdirstem2 | */$acl_libdirstem2/)
22029 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdir stem2/"'*$,,'`
22030 LIBINTL_PREFIX="$basedir"
22031 additional_includedir="$basedir/include"
22032 ;;
22033 esac
22034 if test "X$additional_includedir" != "X"; then
22035 if test "X$additional_includedir" != "X/usr/incl ude"; then
22036 haveit=
22037 if test "X$additional_includedir" = "X/usr/local/include"; then
22038 if test -n "$GCC"; then
22039 case $host_os in
22040 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22041 esac
22042 fi
22043 fi
22044 if test -z "$haveit"; then
22045 for x in $CPPFLAGS $INCINTL; do
22046
22047 acl_save_prefix="$prefix"
22048 prefix="$acl_final_prefix"
22049 acl_save_exec_prefix="$exec_prefix"
22050 exec_prefix="$acl_final_exec_prefix"
22051 eval x=\"$x\"
22052 exec_prefix="$acl_save_exec_prefix"
22053 prefix="$acl_save_prefix"
22054
22055 if test "X$x" = "X-I$additional_includedir"; then
22056 haveit=yes
22057 break
22058 fi
22059 done
22060 if test -z "$haveit"; then
22061 if test -d "$additional_includedir"; then
22062 INCINTL="${INCINTL}${INCINTL:+ }-I$a dditional_includedir"
22063 fi
22064 fi
22065 fi
22066 fi
22067 fi
22068 if test -n "$found_la"; then
22069 save_libdir="$libdir"
22070 case "$found_la" in
22071 */* | *\\*) . "$found_la" ;;
22072 *) . "./$found_la" ;;
22073 esac
22074 libdir="$save_libdir"
22075 for dep in $dependency_libs; do
22076 case "$dep" in
22077 -L*)
22078 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22079 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
22080 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2" ; then
22081 haveit=
22082 if test "X$additional_libdir" = "X/usr/local/$acl_libdirst em" \
22083 || test "X$additional_libdir" = "X/usr/local/$acl_libdi rstem2"; then
22084 if test -n "$GCC"; then
22085 case $host_os in
22086 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22087 esac
22088 fi
22089 fi
22090 if test -z "$haveit"; then
22091 haveit=
22092 for x in $LDFLAGS $LIBINTL; do
22093
22094 acl_save_prefix="$prefix"
22095 prefix="$acl_final_prefix"
22096 acl_save_exec_prefix="$exec_prefix"
22097 exec_prefix="$acl_final_exec_prefix"
22098 eval x=\"$x\"
22099 exec_prefix="$acl_save_exec_prefix"
22100 prefix="$acl_save_prefix"
22101
22102 if test "X$x" = "X-L$additional_libdir"; then
22103 haveit=yes
22104 break
22105 fi
22106 done
22107 if test -z "$haveit"; then
22108 if test -d "$additional_libdir"; then
22109 LIBINTL="${LIBINTL}${LIB INTL:+ }-L$additional_libdir"
22110 fi
22111 fi
22112 haveit=
22113 for x in $LDFLAGS $LTLIBINTL; do
22114
22115 acl_save_prefix="$prefix"
22116 prefix="$acl_final_prefix"
22117 acl_save_exec_prefix="$exec_prefix"
22118 exec_prefix="$acl_final_exec_prefix"
22119 eval x=\"$x\"
22120 exec_prefix="$acl_save_exec_prefix"
22121 prefix="$acl_save_prefix"
22122
22123 if test "X$x" = "X-L$additional_libdir"; then
22124 haveit=yes
22125 break
22126 fi
22127 done
22128 if test -z "$haveit"; then
22129 if test -d "$additional_libdir"; then
22130 LTLIBINTL="${LTLIBINTL}$ {LTLIBINTL:+ }-L$additional_libdir"
22131 fi
22132 fi
22133 fi
22134 fi
22135 ;;
22136 -R*)
22137 dir=`echo "X$dep" | sed -e 's/^X-R//'`
22138 if test "$enable_rpath" != no; then
22139 haveit=
22140 for x in $rpathdirs; do
22141 if test "X$x" = "X$dir"; then
22142 haveit=yes
22143 break
22144 fi
22145 done
22146 if test -z "$haveit"; then
22147 rpathdirs="$rpathdirs $dir"
22148 fi
22149 haveit=
22150 for x in $ltrpathdirs; do
22151 if test "X$x" = "X$dir"; then
22152 haveit=yes
22153 break
22154 fi
22155 done
22156 if test -z "$haveit"; then
22157 ltrpathdirs="$ltrpathdirs $dir"
22158 fi
22159 fi
22160 ;;
22161 -l*)
22162 names_next_round="$names_next_round "`ec ho "X$dep" | sed -e 's/^X-l//'`
22163 ;;
22164 *.la)
22165 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^l ib,,' -e 's,\.la$,,'`
22166 ;;
22167 *)
22168 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
22169 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
22170 ;;
22171 esac
22172 done
22173 fi
22174 else
22175 LIBINTL="${LIBINTL}$ {LIBINTL:+ }-l$name"
22176 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
22177 fi
22178 fi
22179 fi
22180 done
22181 done
22182 if test "X$rpathdirs" != "X"; then
22183 if test -n "$acl_hardcode_libdir_separator"; then
22184 alldirs=
22185 for found_dir in $rpathdirs; do
22186 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
22187 done
22188 acl_save_libdir="$libdir"
22189 libdir="$alldirs"
22190 eval flag=\"$acl_hardcode_libdir_flag_spec\"
22191 libdir="$acl_save_libdir"
22192 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
22193 else
22194 for found_dir in $rpathdirs; do
22195 acl_save_libdir="$libdir"
22196 libdir="$found_dir"
22197 eval flag=\"$acl_hardcode_libdir_flag_spec\"
22198 libdir="$acl_save_libdir"
22199 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
22200 done
22201 fi
22202 fi
22203 if test "X$ltrpathdirs" != "X"; then
22204 for found_dir in $ltrpathdirs; do
22205 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
22206 done
22207 fi
22208
22209
22210
22211
22212
22213
22214 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
22215 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
22216 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
22217 $as_echo_n "(cached) " >&6
22218 else
22219 gt_save_CPPFLAGS="$CPPFLAGS"
22220 CPPFLAGS="$CPPFLAGS $INCINTL"
22221 gt_save_LIBS="$LIBS"
22222 LIBS="$LIBS $LIBINTL"
22223 cat >conftest.$ac_ext <<_ACEOF
22224 /* confdefs.h. */
22225 _ACEOF
22226 cat confdefs.h >>conftest.$ac_ext
22227 cat >>conftest.$ac_ext <<_ACEOF
22228 /* end confdefs.h. */
22229 #include <libintl.h>
22230 $gt_revision_test_code
22231 extern int _nl_msg_cat_cntr;
22232 extern
22233 #ifdef __cplusplus
22234 "C"
22235 #endif
22236 const char *_nl_expand_alias (const char *);
22237 int
22238 main ()
22239 {
22240 bindtextdomain ("", "");
22241 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_a lias ("")
22242 ;
22243 return 0;
22244 }
22245 _ACEOF
22246 rm -f conftest.$ac_objext conftest$ac_exeext
22247 if { (ac_try="$ac_link"
22248 case "(($ac_try" in
22249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22250 *) ac_try_echo=$ac_try;;
22251 esac
22252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22253 $as_echo "$ac_try_echo") >&5
22254 (eval "$ac_link") 2>conftest.er1
22255 ac_status=$?
22256 grep -v '^ *+' conftest.er1 >conftest.err
22257 rm -f conftest.er1
22258 cat conftest.err >&5
22259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260 (exit $ac_status); } && {
22261 test -z "$ac_c_werror_flag" ||
22262 test ! -s conftest.err
22263 } && test -s conftest$ac_exeext && {
22264 test "$cross_compiling" = yes ||
22265 $as_test_x conftest$ac_exeext
22266 }; then
22267 eval "$gt_func_gnugettext_libintl=yes"
22268 else
22269 $as_echo "$as_me: failed program was:" >&5
22270 sed 's/^/| /' conftest.$ac_ext >&5
22271
22272 eval "$gt_func_gnugettext_libintl=no"
22273 fi
22274
22275 rm -rf conftest.dSYM
22276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22277 conftest$ac_exeext conftest.$ac_ext
22278 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test " $gt_val" != yes; } && test -n "$LIBICONV"; then
22279 LIBS="$LIBS $LIBICONV"
22280 cat >conftest.$ac_ext <<_ACEOF
22281 /* confdefs.h. */
22282 _ACEOF
22283 cat confdefs.h >>conftest.$ac_ext
22284 cat >>conftest.$ac_ext <<_ACEOF
22285 /* end confdefs.h. */
22286 #include <libintl.h>
22287 $gt_revision_test_code
22288 extern int _nl_msg_cat_cntr;
22289 extern
22290 #ifdef __cplusplus
22291 "C"
22292 #endif
22293 const char *_nl_expand_alias (const char *);
22294 int
22295 main ()
22296 {
22297 bindtextdomain ("", "");
22298 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_a lias ("")
22299 ;
22300 return 0;
22301 }
22302 _ACEOF
22303 rm -f conftest.$ac_objext conftest$ac_exeext
22304 if { (ac_try="$ac_link"
22305 case "(($ac_try" in
22306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22307 *) ac_try_echo=$ac_try;;
22308 esac
22309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22310 $as_echo "$ac_try_echo") >&5
22311 (eval "$ac_link") 2>conftest.er1
22312 ac_status=$?
22313 grep -v '^ *+' conftest.er1 >conftest.err
22314 rm -f conftest.er1
22315 cat conftest.err >&5
22316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); } && {
22318 test -z "$ac_c_werror_flag" ||
22319 test ! -s conftest.err
22320 } && test -s conftest$ac_exeext && {
22321 test "$cross_compiling" = yes ||
22322 $as_test_x conftest$ac_exeext
22323 }; then
22324 LIBINTL="$LIBINTL $LIBICONV"
22325 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
22326 eval "$gt_func_gnugettext_libintl=yes"
22327
22328 else
22329 $as_echo "$as_me: failed program was:" >&5
22330 sed 's/^/| /' conftest.$ac_ext >&5
22331
22332
22333 fi
22334
22335 rm -rf conftest.dSYM
22336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22337 conftest$ac_exeext conftest.$ac_ext
22338 fi
22339 CPPFLAGS="$gt_save_CPPFLAGS"
22340 LIBS="$gt_save_LIBS"
22341 fi
22342 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
22343 $as_echo "$as_val"'`
22344 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22345 $as_echo "$ac_res" >&6; }
22346 fi
22347
22348 if { eval "gt_val=\$$gt_func_gnugettext_ libc"; test "$gt_val" = "yes"; } \
22349 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
22350 && test "$PACKAGE" != gettext-runtime \
22351 && test "$PACKAGE" != gettext-tools; }; then
22352 gt_use_preinstalled_gnugettext=yes
22353 else
22354 LIBINTL=
22355 LTLIBINTL=
22356 INCINTL=
22357 fi
22358
22359
22360
22361 if test -n "$INTL_MACOSX_LIBS"; then
22362 if test "$gt_use_preinstalled_gnugettext" = "yes" \
22363 || test "$nls_cv_use_gnu_gettext" = "yes"; then
22364 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
22365 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
22366 fi
22367 fi
22368
22369 if test "$gt_use_preinstalled_gnugettext" = "yes" \
22370 || test "$nls_cv_use_gnu_gettext" = "yes"; then
22371
22372 cat >>confdefs.h <<\_ACEOF
22373 #define ENABLE_NLS 1
22374 _ACEOF
22375
22376 else
22377 USE_NLS=no
22378 fi
22379 fi
22380
22381 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
22382 $as_echo_n "checking whether to use NLS... " >&6; }
22383 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
22384 $as_echo "$USE_NLS" >&6; }
22385 if test "$USE_NLS" = "yes"; then
22386 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
22387 $as_echo_n "checking where the gettext function comes from... " >&6; }
22388 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
22389 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
22390 gt_source="external libintl"
22391 else
22392 gt_source="libc"
22393 fi
22394 else
22395 gt_source="included intl directory"
22396 fi
22397 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
22398 $as_echo "$gt_source" >&6; }
22399 fi
22400
22401 if test "$USE_NLS" = "yes"; then
22402
22403 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
22404 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
22405 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
22406 $as_echo_n "checking how to link with libintl... " >&6; }
22407 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
22408 $as_echo "$LIBINTL" >&6; }
22409
22410 for element in $INCINTL; do
22411 haveit=
22412 for x in $CPPFLAGS; do
22413
22414 acl_save_prefix="$prefix"
22415 prefix="$acl_final_prefix"
22416 acl_save_exec_prefix="$exec_prefix"
22417 exec_prefix="$acl_final_exec_prefix"
22418 eval x=\"$x\"
22419 exec_prefix="$acl_save_exec_prefix"
22420 prefix="$acl_save_prefix"
22421
22422 if test "X$x" = "X$element"; then
22423 haveit=yes
22424 break
22425 fi
22426 done
22427 if test -z "$haveit"; then
22428 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22429 fi
22430 done
22431
22432 fi
22433
22434
22435 cat >>confdefs.h <<\_ACEOF
22436 #define HAVE_GETTEXT 1
22437 _ACEOF
22438
22439
22440 cat >>confdefs.h <<\_ACEOF
22441 #define HAVE_DCGETTEXT 1
22442 _ACEOF
22443
22444 fi
22445
22446 POSUB=po
22447 fi
22448
22449
22450
22451 INTLLIBS="$LIBINTL"
22452
22453
22454
22455
22456
22457
22458
22459
22460 if test -z "$USE_NLS"; then
22461 echo "The BISON-I18N macro is used without being preceded by AM-GNU-GETTEXT. " 1>&2
22462 exit 1
22463 fi
22464 BISON_LOCALEDIR=
22465 BISON_USE_NLS=no
22466 if test "$USE_NLS" = yes; then
22467 if (${YACC-${BISON-:}} --print-localedir) >/dev/null 2>& 1; then
22468 BISON_LOCALEDIR=`${YACC-${BISON-:}} --print-localedir`
22469 fi
22470
22471 if test -n "$BISON_LOCALEDIR"; then
22472 USER_LINGUAS="${LINGUAS-%UNSET%}"
22473 if test -n "$USER_LINGUAS"; then
22474 BISON_USE_NLS=yes
22475 fi
22476 fi
22477 fi
22478 if test $BISON_USE_NLS = yes; then
22479
22480 cat >>confdefs.h <<\_ACEOF
22481 #define YYENABLE_NLS 1
22482 _ACEOF
22483
22484 fi
22485
22486
22487 # Internationalized parsers.
22488 ac_config_files="$ac_config_files runtime-po/Makefile.in"
22489
22490 # Autoconf macros for packages using internationalized parsers.
22491 aclocaldir='${datadir}/aclocal'
22492
22493
22494 # Create the benchmark script.
22495 ac_config_files="$ac_config_files etc/bench.pl"
22496
22497
22498 # Initialize the test suite.
22499 ac_config_commands="$ac_config_commands tests/atconfig"
22500
22501
22502 ac_config_files="$ac_config_files tests/Makefile tests/atlocal"
22503
22504 ac_config_files="$ac_config_files tests/bison"
22505
22506 for ac_prog in valgrind
22507 do
22508 # Extract the first word of "$ac_prog", so it can be a program name with args.
22509 set dummy $ac_prog; ac_word=$2
22510 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22511 $as_echo_n "checking for $ac_word... " >&6; }
22512 if test "${ac_cv_prog_VALGRIND+set}" = set; then
22513 $as_echo_n "(cached) " >&6
22514 else
22515 if test -n "$VALGRIND"; then
22516 ac_cv_prog_VALGRIND="$VALGRIND" # Let the user override the test.
22517 else
22518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22519 for as_dir in $PATH
22520 do
22521 IFS=$as_save_IFS
22522 test -z "$as_dir" && as_dir=.
22523 for ac_exec_ext in '' $ac_executable_extensions; do
22524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
22525 ac_cv_prog_VALGRIND="$ac_prog"
22526 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22527 break 2
22528 fi
22529 done
22530 done
22531 IFS=$as_save_IFS
22532
22533 fi
22534 fi
22535 VALGRIND=$ac_cv_prog_VALGRIND
22536 if test -n "$VALGRIND"; then
22537 { $as_echo "$as_me:$LINENO: result: $VALGRIND" >&5
22538 $as_echo "$VALGRIND" >&6; }
22539 else
22540 { $as_echo "$as_me:$LINENO: result: no" >&5
22541 $as_echo "no" >&6; }
22542 fi
22543
22544
22545 test -n "$VALGRIND" && break
22546 done
22547
22548 ac_ext=cpp
22549 ac_cpp='$CXXCPP $CPPFLAGS'
22550 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22551 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex t $LIBS >&5'
22552 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22553 if test -z "$CXX"; then
22554 if test -n "$CCC"; then
22555 CXX=$CCC
22556 else
22557 if test -n "$ac_tool_prefix"; then
22558 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22559 do
22560 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a progra m name with args.
22561 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22562 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22563 $as_echo_n "checking for $ac_word... " >&6; }
22564 if test "${ac_cv_prog_CXX+set}" = set; then
22565 $as_echo_n "(cached) " >&6
22566 else
22567 if test -n "$CXX"; then
22568 ac_cv_prog_CXX="$CXX" # Let the user override the test.
22569 else
22570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22571 for as_dir in $PATH
22572 do
22573 IFS=$as_save_IFS
22574 test -z "$as_dir" && as_dir=.
22575 for ac_exec_ext in '' $ac_executable_extensions; do
22576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
22577 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
22578 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22579 break 2
22580 fi
22581 done
22582 done
22583 IFS=$as_save_IFS
22584
22585 fi
22586 fi
22587 CXX=$ac_cv_prog_CXX
22588 if test -n "$CXX"; then
22589 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
22590 $as_echo "$CXX" >&6; }
22591 else
22592 { $as_echo "$as_me:$LINENO: result: no" >&5
22593 $as_echo "no" >&6; }
22594 fi
22595
22596
22597 test -n "$CXX" && break
22598 done
22599 fi
22600 if test -z "$CXX"; then
22601 ac_ct_CXX=$CXX
22602 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22603 do
22604 # Extract the first word of "$ac_prog", so it can be a program name with args.
22605 set dummy $ac_prog; ac_word=$2
22606 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22607 $as_echo_n "checking for $ac_word... " >&6; }
22608 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
22609 $as_echo_n "(cached) " >&6
22610 else
22611 if test -n "$ac_ct_CXX"; then
22612 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
22613 else
22614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22615 for as_dir in $PATH
22616 do
22617 IFS=$as_save_IFS
22618 test -z "$as_dir" && as_dir=.
22619 for ac_exec_ext in '' $ac_executable_extensions; do
22620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
22621 ac_cv_prog_ac_ct_CXX="$ac_prog"
22622 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22623 break 2
22624 fi
22625 done
22626 done
22627 IFS=$as_save_IFS
22628
22629 fi
22630 fi
22631 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
22632 if test -n "$ac_ct_CXX"; then
22633 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
22634 $as_echo "$ac_ct_CXX" >&6; }
22635 else
22636 { $as_echo "$as_me:$LINENO: result: no" >&5
22637 $as_echo "no" >&6; }
22638 fi
22639
22640
22641 test -n "$ac_ct_CXX" && break
22642 done
22643
22644 if test "x$ac_ct_CXX" = x; then
22645 CXX="g++"
22646 else
22647 case $cross_compiling:$ac_tool_warned in
22648 yes:)
22649 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cro ss-tools
22650 whose name does not start with the host triplet. If you think this
22651 configuration is useful to you, please write to autoconf@gnu.org." >&5
22652 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22653 whose name does not start with the host triplet. If you think this
22654 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22655 ac_tool_warned=yes ;;
22656 esac
22657 CXX=$ac_ct_CXX
22658 fi
22659 fi
22660
22661 fi
22662 fi
22663 # Provide some information about the compiler.
22664 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
22665 set X $ac_compile
22666 ac_compiler=$2
22667 { (ac_try="$ac_compiler --version >&5"
22668 case "(($ac_try" in
22669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22670 *) ac_try_echo=$ac_try;;
22671 esac
22672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22673 $as_echo "$ac_try_echo") >&5
22674 (eval "$ac_compiler --version >&5") 2>&5
22675 ac_status=$?
22676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22677 (exit $ac_status); }
22678 { (ac_try="$ac_compiler -v >&5"
22679 case "(($ac_try" in
22680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22681 *) ac_try_echo=$ac_try;;
22682 esac
22683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22684 $as_echo "$ac_try_echo") >&5
22685 (eval "$ac_compiler -v >&5") 2>&5
22686 ac_status=$?
22687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688 (exit $ac_status); }
22689 { (ac_try="$ac_compiler -V >&5"
22690 case "(($ac_try" in
22691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22692 *) ac_try_echo=$ac_try;;
22693 esac
22694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22695 $as_echo "$ac_try_echo") >&5
22696 (eval "$ac_compiler -V >&5") 2>&5
22697 ac_status=$?
22698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22699 (exit $ac_status); }
22700
22701 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
22702 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22703 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
22704 $as_echo_n "(cached) " >&6
22705 else
22706 cat >conftest.$ac_ext <<_ACEOF
22707 /* confdefs.h. */
22708 _ACEOF
22709 cat confdefs.h >>conftest.$ac_ext
22710 cat >>conftest.$ac_ext <<_ACEOF
22711 /* end confdefs.h. */
22712
22713 int
22714 main ()
22715 {
22716 #ifndef __GNUC__
22717 choke me
22718 #endif
22719
22720 ;
22721 return 0;
22722 }
22723 _ACEOF
22724 rm -f conftest.$ac_objext
22725 if { (ac_try="$ac_compile"
22726 case "(($ac_try" in
22727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22728 *) ac_try_echo=$ac_try;;
22729 esac
22730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22731 $as_echo "$ac_try_echo") >&5
22732 (eval "$ac_compile") 2>conftest.er1
22733 ac_status=$?
22734 grep -v '^ *+' conftest.er1 >conftest.err
22735 rm -f conftest.er1
22736 cat conftest.err >&5
22737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738 (exit $ac_status); } && {
22739 test -z "$ac_cxx_werror_flag" ||
22740 test ! -s conftest.err
22741 } && test -s conftest.$ac_objext; then
22742 ac_compiler_gnu=yes
22743 else
22744 $as_echo "$as_me: failed program was:" >&5
22745 sed 's/^/| /' conftest.$ac_ext >&5
22746
22747 ac_compiler_gnu=no
22748 fi
22749
22750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22751 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
22752
22753 fi
22754 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
22755 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
22756 if test $ac_compiler_gnu = yes; then
22757 GXX=yes
22758 else
22759 GXX=
22760 fi
22761 ac_test_CXXFLAGS=${CXXFLAGS+set}
22762 ac_save_CXXFLAGS=$CXXFLAGS
22763 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
22764 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
22765 if test "${ac_cv_prog_cxx_g+set}" = set; then
22766 $as_echo_n "(cached) " >&6
22767 else
22768 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
22769 ac_cxx_werror_flag=yes
22770 ac_cv_prog_cxx_g=no
22771 CXXFLAGS="-g"
22772 cat >conftest.$ac_ext <<_ACEOF
22773 /* confdefs.h. */
22774 _ACEOF
22775 cat confdefs.h >>conftest.$ac_ext
22776 cat >>conftest.$ac_ext <<_ACEOF
22777 /* end confdefs.h. */
22778
22779 int
22780 main ()
22781 {
22782
22783 ;
22784 return 0;
22785 }
22786 _ACEOF
22787 rm -f conftest.$ac_objext
22788 if { (ac_try="$ac_compile"
22789 case "(($ac_try" in
22790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22791 *) ac_try_echo=$ac_try;;
22792 esac
22793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22794 $as_echo "$ac_try_echo") >&5
22795 (eval "$ac_compile") 2>conftest.er1
22796 ac_status=$?
22797 grep -v '^ *+' conftest.er1 >conftest.err
22798 rm -f conftest.er1
22799 cat conftest.err >&5
22800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22801 (exit $ac_status); } && {
22802 test -z "$ac_cxx_werror_flag" ||
22803 test ! -s conftest.err
22804 } && test -s conftest.$ac_objext; then
22805 ac_cv_prog_cxx_g=yes
22806 else
22807 $as_echo "$as_me: failed program was:" >&5
22808 sed 's/^/| /' conftest.$ac_ext >&5
22809
22810 CXXFLAGS=""
22811 cat >conftest.$ac_ext <<_ACEOF
22812 /* confdefs.h. */
22813 _ACEOF
22814 cat confdefs.h >>conftest.$ac_ext
22815 cat >>conftest.$ac_ext <<_ACEOF
22816 /* end confdefs.h. */
22817
22818 int
22819 main ()
22820 {
22821
22822 ;
22823 return 0;
22824 }
22825 _ACEOF
22826 rm -f conftest.$ac_objext
22827 if { (ac_try="$ac_compile"
22828 case "(($ac_try" in
22829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22830 *) ac_try_echo=$ac_try;;
22831 esac
22832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22833 $as_echo "$ac_try_echo") >&5
22834 (eval "$ac_compile") 2>conftest.er1
22835 ac_status=$?
22836 grep -v '^ *+' conftest.er1 >conftest.err
22837 rm -f conftest.er1
22838 cat conftest.err >&5
22839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840 (exit $ac_status); } && {
22841 test -z "$ac_cxx_werror_flag" ||
22842 test ! -s conftest.err
22843 } && test -s conftest.$ac_objext; then
22844 :
22845 else
22846 $as_echo "$as_me: failed program was:" >&5
22847 sed 's/^/| /' conftest.$ac_ext >&5
22848
22849 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
22850 CXXFLAGS="-g"
22851 cat >conftest.$ac_ext <<_ACEOF
22852 /* confdefs.h. */
22853 _ACEOF
22854 cat confdefs.h >>conftest.$ac_ext
22855 cat >>conftest.$ac_ext <<_ACEOF
22856 /* end confdefs.h. */
22857
22858 int
22859 main ()
22860 {
22861
22862 ;
22863 return 0;
22864 }
22865 _ACEOF
22866 rm -f conftest.$ac_objext
22867 if { (ac_try="$ac_compile"
22868 case "(($ac_try" in
22869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22870 *) ac_try_echo=$ac_try;;
22871 esac
22872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22873 $as_echo "$ac_try_echo") >&5
22874 (eval "$ac_compile") 2>conftest.er1
22875 ac_status=$?
22876 grep -v '^ *+' conftest.er1 >conftest.err
22877 rm -f conftest.er1
22878 cat conftest.err >&5
22879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880 (exit $ac_status); } && {
22881 test -z "$ac_cxx_werror_flag" ||
22882 test ! -s conftest.err
22883 } && test -s conftest.$ac_objext; then
22884 ac_cv_prog_cxx_g=yes
22885 else
22886 $as_echo "$as_me: failed program was:" >&5
22887 sed 's/^/| /' conftest.$ac_ext >&5
22888
22889
22890 fi
22891
22892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22893 fi
22894
22895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22896 fi
22897
22898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22899 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
22900 fi
22901 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
22902 $as_echo "$ac_cv_prog_cxx_g" >&6; }
22903 if test "$ac_test_CXXFLAGS" = set; then
22904 CXXFLAGS=$ac_save_CXXFLAGS
22905 elif test $ac_cv_prog_cxx_g = yes; then
22906 if test "$GXX" = yes; then
22907 CXXFLAGS="-g -O2"
22908 else
22909 CXXFLAGS="-g"
22910 fi
22911 else
22912 if test "$GXX" = yes; then
22913 CXXFLAGS="-O2"
22914 else
22915 CXXFLAGS=
22916 fi
22917 fi
22918 ac_ext=c
22919 ac_cpp='$CPP $CPPFLAGS'
22920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
22922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22923
22924 depcc="$CXX" am_compiler_list=
22925
22926 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
22927 $as_echo_n "checking dependency style of $depcc... " >&6; }
22928 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
22929 $as_echo_n "(cached) " >&6
22930 else
22931 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22932 # We make a subdir and do the tests there. Otherwise we can end up
22933 # making bogus files that we don't know about and never remove. For
22934 # instance it was reported that on HP-UX the gcc test will end up
22935 # making a dummy file named `D' -- because `-MD' means `put the output
22936 # in D'.
22937 mkdir conftest.dir
22938 # Copy depcomp to subdir because otherwise we won't find it if we're
22939 # using a relative directory.
22940 cp "$am_depcomp" conftest.dir
22941 cd conftest.dir
22942 # We will build objects and dependencies in a subdirectory because
22943 # it helps to detect inapplicable dependency modes. For instance
22944 # both Tru64's cc and ICC support -MD to output dependencies as a
22945 # side effect of compilation, but ICC will put the dependencies in
22946 # the current directory while Tru64 will put them in the object
22947 # directory.
22948 mkdir sub
22949
22950 am_cv_CXX_dependencies_compiler_type=none
22951 if test "$am_compiler_list" = ""; then
22952 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22953 fi
22954 for depmode in $am_compiler_list; do
22955 # Setup a source with many dependencies, because some compilers
22956 # like to wrap large dependency lists on column 80 (with \), and
22957 # we should not choose a depcomp mode which is confused by this.
22958 #
22959 # We need to recreate these files for each test, as the compiler may
22960 # overwrite some of them when testing with obscure command lines.
22961 # This happens at least with the AIX C compiler.
22962 : > sub/conftest.c
22963 for i in 1 2 3 4 5 6; do
22964 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22965 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22966 # Solaris 8's {/usr,}/bin/sh.
22967 touch sub/conftst$i.h
22968 done
22969 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22970
22971 case $depmode in
22972 nosideeffect)
22973 # after this tag, mechanisms are not by side-effect, so they'll
22974 # only be used when explicitly requested
22975 if test "x$enable_dependency_tracking" = xyes; then
22976 continue
22977 else
22978 break
22979 fi
22980 ;;
22981 none) break ;;
22982 esac
22983 # We check with `-c' and `-o' for the sake of the "dashmstdout"
22984 # mode. It turns out that the SunPro C++ compiler does not properly
22985 # handle `-M -o', and we need to detect this.
22986 if depmode=$depmode \
22987 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
22988 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22989 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
22990 >/dev/null 2>conftest.err &&
22991 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
22992 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22993 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
22994 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22995 # icc doesn't choke on unknown options, it will just issue warnings
22996 # or remarks (even with -Werror). So we grep stderr for any message
22997 # that says an option was ignored or not supported.
22998 # When given -MP, icc 7.0 and 7.1 complain thusly:
22999 # icc: Command line warning: ignoring option '-M'; no argument required
23000 # The diagnosis changed in icc 8.0:
23001 # icc: Command line remark: option '-MP' not supported
23002 if (grep 'ignoring option' conftest.err ||
23003 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23004 am_cv_CXX_dependencies_compiler_type=$depmode
23005 break
23006 fi
23007 fi
23008 done
23009
23010 cd ..
23011 rm -rf conftest.dir
23012 else
23013 am_cv_CXX_dependencies_compiler_type=none
23014 fi
23015
23016 fi
23017 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
23018 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23019 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23020
23021 if
23022 test "x$enable_dependency_tracking" != xno \
23023 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23024 am__fastdepCXX_TRUE=
23025 am__fastdepCXX_FALSE='#'
23026 else
23027 am__fastdepCXX_TRUE='#'
23028 am__fastdepCXX_FALSE=
23029 fi
23030
23031
23032
23033
23034 { $as_echo "$as_me:$LINENO: checking whether $CXX builds executables that work" >&5
23035 $as_echo_n "checking whether $CXX builds executables that work... " >&6; }
23036 if test "${bison_cv_cxx_works+set}" = set; then
23037 $as_echo_n "(cached) " >&6
23038 else
23039 ac_ext=cpp
23040 ac_cpp='$CXXCPP $CPPFLAGS'
23041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ex t $LIBS >&5'
23043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23044
23045 bison_cv_cxx_works=no
23046 cat >conftest.$ac_ext <<_ACEOF
23047 /* confdefs.h. */
23048 _ACEOF
23049 cat confdefs.h >>conftest.$ac_ext
23050 cat >>conftest.$ac_ext <<_ACEOF
23051 /* end confdefs.h. */
23052 #include <cstdlib>
23053 #include <iostream>
23054 #include <map>
23055 #include <string>
23056 using namespace std;
23057 int
23058 main ()
23059 {
23060 std::cerr << "";
23061 cout << "";
23062 typedef std::pair<unsigned int, int> uipair;
23063 std::map<unsigned int, int> m;
23064 std::map<unsigned int, int>::iterator i;
23065 m.insert (uipair (4, -4));
23066 for (i = m.begin (); i != m.end (); ++i)
23067 if (i->first != 4)
23068 return 1;
23069 ;
23070 return 0;
23071 }
23072 _ACEOF
23073 rm -f conftest.$ac_objext
23074 if { (ac_try="$ac_compile"
23075 case "(($ac_try" in
23076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23077 *) ac_try_echo=$ac_try;;
23078 esac
23079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23080 $as_echo "$ac_try_echo") >&5
23081 (eval "$ac_compile") 2>conftest.er1
23082 ac_status=$?
23083 grep -v '^ *+' conftest.er1 >conftest.err
23084 rm -f conftest.er1
23085 cat conftest.err >&5
23086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23087 (exit $ac_status); } && {
23088 test -z "$ac_cxx_werror_flag" ||
23089 test ! -s conftest.err
23090 } && test -s conftest.$ac_objext; then
23091 if { ac_try='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest. $ac_objext $LIBS >&5'
23092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23093 (eval $ac_try) 2>&5
23094 ac_status=$?
23095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23096 (exit $ac_status); }; }; then
23097 if test "$cross_compiling" = yes; then
23098 bison_cv_cxx_works=cross
23099 else
23100 if { ac_try='./conftest$ac_exeext'
23101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23102 (eval $ac_try) 2>&5
23103 ac_status=$?
23104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23105 (exit $ac_status); }; }; then
23106 bison_cv_cxx_works=yes
23107 fi
23108
23109 fi
23110
23111 fi
23112
23113 rm -f conftest$ac_exeext
23114 else
23115 $as_echo "$as_me: failed program was:" >&5
23116 sed 's/^/| /' conftest.$ac_ext >&5
23117
23118
23119 fi
23120
23121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23122 ac_ext=c
23123 ac_cpp='$CPP $CPPFLAGS'
23124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ LIBS >&5'
23126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23127
23128 fi
23129 { $as_echo "$as_me:$LINENO: result: $bison_cv_cxx_works" >&5
23130 $as_echo "$bison_cv_cxx_works" >&6; }
23131
23132 case $bison_cv_cxx_works in
23133 yes)
23134 BISON_CXX_WORKS=':';;
23135 no | cross)
23136 BISON_CXX_WORKS='exit 77';;
23137 esac
23138
23139
23140 if test $bison_cv_cxx_works = yes; then
23141 BISON_CXX_WORKS_TRUE=
23142 BISON_CXX_WORKS_FALSE='#'
23143 else
23144 BISON_CXX_WORKS_TRUE='#'
23145 BISON_CXX_WORKS_FALSE=
23146 fi
23147
23148
23149
23150 AUTOM4TE=${AUTOM4TE-"${am_missing_run}autom4te"}
23151
23152 # Needed by tests/atlocal.in.
23153
23154 O0CFLAGS=`echo $CFLAGS | sed 's/-O[0-9] *//'`
23155
23156 O0CXXFLAGS=`echo $CXXFLAGS | sed 's/-O[0-9] *//'`
23157
23158
23159
23160 { $as_echo "$as_me:$LINENO: checking for Java virtual machine" >&5
23161 $as_echo_n "checking for Java virtual machine... " >&6; }
23162 cat >conftest.$ac_ext <<_ACEOF
23163 /* confdefs.h. */
23164 _ACEOF
23165 cat confdefs.h >>conftest.$ac_ext
23166 cat >>conftest.$ac_ext <<_ACEOF
23167 /* end confdefs.h. */
23168
23169 #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
23170 yes
23171 #endif
23172
23173 _ACEOF
23174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23175 $EGREP "yes" >/dev/null 2>&1; then
23176 CLASSPATH_SEPARATOR=';'
23177 else
23178 CLASSPATH_SEPARATOR=':'
23179 fi
23180 rm -f conftest*
23181
23182 CONF_JAVA=
23183 HAVE_JAVA_ENVVAR=
23184 HAVE_GIJ=
23185 HAVE_JAVA=
23186 HAVE_JRE=
23187 HAVE_JVIEW=
23188 HAVE_JAVAEXEC=1
23189 if test -n "$JAVA"; then
23190 HAVE_JAVA_ENVVAR=1
23191 CONF_JAVA="$JAVA"
23192 else
23193 # Extract the first word of "gij", so it can be a program name w ith args.
23194 set dummy gij; ac_word=$2
23195 :
23196 if test "${ac_cv_prog_HAVE_GIJ_IN_PATH+set}" = set; then
23197 $as_echo_n "(cached) " >&6
23198 else
23199 if test -n "$HAVE_GIJ_IN_PATH"; then
23200 ac_cv_prog_HAVE_GIJ_IN_PATH="$HAVE_GIJ_IN_PATH" # Let the user override the te st.
23201 else
23202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23203 for as_dir in $PATH
23204 do
23205 IFS=$as_save_IFS
23206 test -z "$as_dir" && as_dir=.
23207 for ac_exec_ext in '' $ac_executable_extensions; do
23208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
23209 ac_cv_prog_HAVE_GIJ_IN_PATH="yes"
23210 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23211 break 2
23212 fi
23213 done
23214 done
23215 IFS=$as_save_IFS
23216
23217 fi
23218 fi
23219 HAVE_GIJ_IN_PATH=$ac_cv_prog_HAVE_GIJ_IN_PATH
23220 if test -n "$HAVE_GIJ_IN_PATH"; then
23221 :
23222 else
23223 :
23224 fi
23225
23226
23227 # Extract the first word of "java", so it can be a program name with args.
23228 set dummy java; ac_word=$2
23229 :
23230 if test "${ac_cv_prog_HAVE_JAVA_IN_PATH+set}" = set; then
23231 $as_echo_n "(cached) " >&6
23232 else
23233 if test -n "$HAVE_JAVA_IN_PATH"; then
23234 ac_cv_prog_HAVE_JAVA_IN_PATH="$HAVE_JAVA_IN_PATH" # Let the user override the test.
23235 else
23236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23237 for as_dir in $PATH
23238 do
23239 IFS=$as_save_IFS
23240 test -z "$as_dir" && as_dir=.
23241 for ac_exec_ext in '' $ac_executable_extensions; do
23242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
23243 ac_cv_prog_HAVE_JAVA_IN_PATH="yes"
23244 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23245 break 2
23246 fi
23247 done
23248 done
23249 IFS=$as_save_IFS
23250
23251 fi
23252 fi
23253 HAVE_JAVA_IN_PATH=$ac_cv_prog_HAVE_JAVA_IN_PATH
23254 if test -n "$HAVE_JAVA_IN_PATH"; then
23255 :
23256 else
23257 :
23258 fi
23259
23260
23261 # Extract the first word of "jre", so it can be a program name with args.
23262 set dummy jre; ac_word=$2
23263 :
23264 if test "${ac_cv_prog_HAVE_JRE_IN_PATH+set}" = set; then
23265 $as_echo_n "(cached) " >&6
23266 else
23267 if test -n "$HAVE_JRE_IN_PATH"; then
23268 ac_cv_prog_HAVE_JRE_IN_PATH="$HAVE_JRE_IN_PATH" # Let the user override the te st.
23269 else
23270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23271 for as_dir in $PATH
23272 do
23273 IFS=$as_save_IFS
23274 test -z "$as_dir" && as_dir=.
23275 for ac_exec_ext in '' $ac_executable_extensions; do
23276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
23277 ac_cv_prog_HAVE_JRE_IN_PATH="yes"
23278 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23279 break 2
23280 fi
23281 done
23282 done
23283 IFS=$as_save_IFS
23284
23285 fi
23286 fi
23287 HAVE_JRE_IN_PATH=$ac_cv_prog_HAVE_JRE_IN_PATH
23288 if test -n "$HAVE_JRE_IN_PATH"; then
23289 :
23290 else
23291 :
23292 fi
23293
23294
23295 # Extract the first word of "jview", so it can be a program name with args.
23296 set dummy jview; ac_word=$2
23297 :
23298 if test "${ac_cv_prog_HAVE_JVIEW_IN_PATH+set}" = set; then
23299 $as_echo_n "(cached) " >&6
23300 else
23301 if test -n "$HAVE_JVIEW_IN_PATH"; then
23302 ac_cv_prog_HAVE_JVIEW_IN_PATH="$HAVE_JVIEW_IN_PATH" # Let the user override th e test.
23303 else
23304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23305 for as_dir in $PATH
23306 do
23307 IFS=$as_save_IFS
23308 test -z "$as_dir" && as_dir=.
23309 for ac_exec_ext in '' $ac_executable_extensions; do
23310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
23311 ac_cv_prog_HAVE_JVIEW_IN_PATH="yes"
23312 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23313 break 2
23314 fi
23315 done
23316 done
23317 IFS=$as_save_IFS
23318
23319 fi
23320 fi
23321 HAVE_JVIEW_IN_PATH=$ac_cv_prog_HAVE_JVIEW_IN_PATH
23322 if test -n "$HAVE_JVIEW_IN_PATH"; then
23323 :
23324 else
23325 :
23326 fi
23327
23328
23329
23330 export CLASSPATH
23331 if test -n "$HAVE_GIJ_IN_PATH" \
23332 && gij --version >/dev/null 2>/dev/null \
23333 ; then
23334 HAVE_GIJ=1
23335 CONF_JAVA="gij"
23336 else
23337 if test -n "$HAVE_JAVA_IN_PATH" \
23338 && java -version >/dev/null 2>/dev/null \
23339 ; then
23340 HAVE_JAVA=1
23341 CONF_JAVA="java"
23342 else
23343 if test -n "$HAVE_JRE_IN_PATH" \
23344 && (jre >/dev/null 2>/dev/null || test $? = 1) \
23345 ; then
23346 HAVE_JRE=1
23347 CONF_JAVA="jre"
23348 else
23349 if test -n "$HAVE_JVIEW_IN_PATH" \
23350 && (jview -? >/dev/null 2>/dev/null || test $? = 1) \
23351 ; then
23352 HAVE_JVIEW=1
23353 CONF_JAVA="jview"
23354 else
23355 HAVE_JAVAEXEC=
23356 fi
23357 fi
23358 fi
23359 fi
23360
23361 fi
23362 if test -n "$HAVE_JAVAEXEC"; then
23363 ac_result="$CONF_JAVA"
23364 else
23365 ac_result="no"
23366 fi
23367 { $as_echo "$as_me:$LINENO: result: $ac_result" >&5
23368 $as_echo "$ac_result" >&6; }
23369
23370
23371
23372
23373
23374
23375
23376
23377
23378
23379
23380 cat >conftest.$ac_ext <<_ACEOF
23381 /* confdefs.h. */
23382 _ACEOF
23383 cat confdefs.h >>conftest.$ac_ext
23384 cat >>conftest.$ac_ext <<_ACEOF
23385 /* end confdefs.h. */
23386
23387 #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
23388 yes
23389 #endif
23390
23391 _ACEOF
23392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23393 $EGREP "yes" >/dev/null 2>&1; then
23394 CLASSPATH_SEPARATOR=';'
23395 else
23396 CLASSPATH_SEPARATOR=':'
23397 fi
23398 rm -f conftest*
23399
23400 source_version=1.3
23401 test -n "$source_version" || {
23402 { { $as_echo "$as_me:$LINENO: error: missing source-version argument to gt_J AVACOMP" >&5
23403 $as_echo "$as_me: error: missing source-version argument to gt_JAVACOMP" >&2;}
23404 { (exit 1); exit 1; }; }
23405 }
23406 if test -n "$HAVE_JAVAEXEC"; then
23407 cat > conftestver.java <<EOF
23408 public class conftestver {
23409 public static void main (String[] args) {
23410 System.out.println(System.getProperty("java.specification.version"));
23411 }
23412 }
23413 EOF
23414 echo 'xyvw !$!H!C,!)!2+!3!4*!5,!3!6,!7!8)!9)!:"!(LdhdmM"!$EFV"!%Ni_a"!1PdhaQngYakUXYfa"!%gX dh"!8EWPeXoXJfXhcJTmkdhcKFV"!,TinkZaOdfa"!2ZihbmalmoakIeXoX.!*!+)!;.!<!="!<eXoXI ljaZdbdZXmdihIoakldih.!>!?)!@.!A!B"!-Zihbmalmoak"!2eXoXJfXhcJRYeaZm"!2eXoXJfXhcJ Tplmag"!$inm"!7PeXoXJdiJSkdhmTmkaXgK"!-camSkijakmp"!DEPeXoXJfXhcJTmkdhcKFPeXoXJf XhcJTmkdhcK"!5eXoXJdiJSkdhmTmkaXg"!)jkdhmfh"!7EPeXoXJfXhcJTmkdhcKFV!C!(!)!!!!!#! "!*!+!"!,!!!?!"!"!!!&Gt!"q!!!"!-!!!(!"!!!"!+!.!/!"!,!!!E!#!"!!!.r!#4$u!%s!&q!!!" !-!!!,!#!!!$!-!%!"!0!!!#!1' \
23415 | tr -d '\012\015' \
23416 | tr '!"#$%&()*+,-./0123456789:;<=>?@ABCDEFGIJKLMNOPQRSTUVWXYZ_abcdefgh ijklmnopqrstuvwxyzH' '\000\001\002\003\004\005\006\007\010\011\012\013\014\015\0 16\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037\040\041\0 46\050\051\052\056\057\073\074\076\103\106\114\116\117\120\123\124\126\133\141\1 42\143\144\145\146\147\151\152\154\155\156\157\160\162\163\164\165\166\171\261\2 62\266\267\270\272\276\312\376\055' \
23417 > conftestver.class
23418 target_version=`{
23419 unset JAVA_HOME
23420 echo "$as_me:23420: CLASSPATH=.${CLASSPATH:+$CLASSPATH_SEPARATOR$CLASSP ATH} $CONF_JAVA conftestver" >&5
23421 CLASSPATH=.${CLASSPATH:+$CLASSPATH_SEPARATOR$CLASSPATH} $CONF_JAVA conf testver 2>&5
23422 }`
23423 case "$target_version" in
23424 1.1 | 1.2 | 1.3 | 1.4 | 1.5 | 1.6) ;;
23425 null)
23426 target_version=1.1 ;;
23427 *) { $as_echo "$as_me:$LINENO: WARNING: unknown target-version $target_ version, please update gt_JAVACOMP macro" >&5
23428 $as_echo "$as_me: WARNING: unknown target-version $target_version, please update gt_JAVACOMP macro" >&2;}
23429 target_version=1.1 ;;
23430 esac
23431 else
23432 target_version="1.1"
23433 fi
23434
23435 case "$source_version" in
23436 1.3) goodcode='class conftest {}'
23437 failcode='class conftestfail { static { assert(true); } }' ;;
23438 1.4) goodcode='class conftest { static { assert(true); } }'
23439 failcode='class conftestfail<T> { T foo() { return null; } }' ;;
23440 1.5) goodcode='class conftest<T> { T foo() { return null; } }'
23441 failcode='class conftestfail syntax error' ;;
23442 *) { { $as_echo "$as_me:$LINENO: error: invalid source-version argument to g t_JAVACOMP: $source_version" >&5
23443 $as_echo "$as_me: error: invalid source-version argument to gt_JAVACOMP: $source _version" >&2;}
23444 { (exit 1); exit 1; }; } ;;
23445 esac
23446 case "$target_version" in
23447 1.1) cfversion=45 ;;
23448 1.2) cfversion=46 ;;
23449 1.3) cfversion=47 ;;
23450 1.4) cfversion=48 ;;
23451 1.5) cfversion=49 ;;
23452 1.6) cfversion=50 ;;
23453 *) { { $as_echo "$as_me:$LINENO: error: invalid target-version argument to g t_JAVACOMP: $target_version" >&5
23454 $as_echo "$as_me: error: invalid target-version argument to gt_JAVACOMP: $target _version" >&2;}
23455 { (exit 1); exit 1; }; } ;;
23456 esac
23457 # Function to output the classfile version of a file (8th byte) in decimal.
23458 if od -A x < /dev/null >/dev/null 2>/dev/null; then
23459 # Use POSIX od.
23460 func_classfile_version ()
23461 {
23462 od -A n -t d1 -j 7 -N 1 "$1"
23463 }
23464 else
23465 # Use BSD hexdump.
23466 func_classfile_version ()
23467 {
23468 dd if="$1" bs=1 count=1 skip=7 2>/dev/null | hexdump -e '1/1 "%3d "'
23469 echo
23470 }
23471 fi
23472 { $as_echo "$as_me:$LINENO: checking for Java compiler" >&5
23473 $as_echo_n "checking for Java compiler... " >&6; }
23474 CONF_JAVAC=
23475 HAVE_JAVAC_ENVVAR=
23476 HAVE_GCJ_C=
23477 HAVE_JAVAC=
23478 HAVE_JIKES=
23479 HAVE_JAVACOMP=
23480 cat > conftestlib.java <<EOF
23481 public class conftestlib {
23482 public static void main (String[] args) {
23483 }
23484 }
23485 EOF
23486 echo "$goodcode" > conftest.java
23487 echo "$failcode" > conftestfail.java
23488 if test -n "$JAVAC"; then
23489 if $JAVAC --version 2>/dev/null | sed -e 1q | grep gcj > /dev/null; then
23490 if $JAVAC --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then
23491 rm -f conftest.class
23492 if { echo "$as_me:23492: $JAVAC -d . conftest.java" >&5
23493 $JAVAC -d . conftest.java >&5 2>&1
23494 } \
23495 && test -f conftest.class \
23496 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev /null 2>&5; then
23497 rm -f conftest.class
23498 rm -f conftestfail.class
23499 if { echo "$as_me:23499: $JAVAC -fsource=$source_version -d . conftest .java" >&5
23500 $JAVAC -fsource="$source_version" -d . conftest.java >&5 2>&1
23501 } \
23502 && test -f conftest.class \
23503 && expr `func_classfile_version conftest.class` '<=' $cfversion >/d ev/null 2>&5 \
23504 && { echo "$as_me:23504: $JAVAC -d . conftestfail.java" >&5
23505 $JAVAC -d . conftestfail.java >&5 2>&1
23506 } \
23507 && test -f conftestfail.class \
23508 && ! { echo "$as_me:23508: $JAVAC -fsource=$source_version -d . con ftestfail.java" >&5
23509 $JAVAC -fsource="$source_version" -d . conftestfail.java >&5 2>&1
23510 }; then
23511 CONF_JAVAC="$JAVAC -fsource=$source_version"
23512 HAVE_JAVAC_ENVVAR=1
23513 HAVE_JAVACOMP=1
23514 else
23515 CONF_JAVAC="$JAVAC"
23516 HAVE_JAVAC_ENVVAR=1
23517 HAVE_JAVACOMP=1
23518 fi
23519 else
23520 rm -f conftest.class
23521 rm -f conftestfail.class
23522 if { echo "$as_me:23522: $JAVAC -fsource=$source_version -ftarget=$tar get_version -d . conftest.java" >&5
23523 $JAVAC -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1
23524 } \
23525 && test -f conftest.class \
23526 && expr `func_classfile_version conftest.class` '<=' $cfversion >/d ev/null 2>&5; then
23527 CONF_JAVAC="$JAVAC -fsource=$source_version -ftarget=$target_version "
23528 HAVE_JAVAC_ENVVAR=1
23529 HAVE_JAVACOMP=1
23530 fi
23531 fi
23532 else
23533 if test "$target_version" = 1.4 && test "$source_version" = 1.4; then
23534 rm -f conftest.class
23535 if { echo "$as_me:23535: $JAVAC -d . conftest.java" >&5
23536 $JAVAC -d . conftest.java >&5 2>&1
23537 } \
23538 && test -f conftest.class; then
23539 CONF_JAVAC="$JAVAC"
23540 HAVE_JAVAC_ENVVAR=1
23541 HAVE_JAVACOMP=1
23542 fi
23543 else
23544 if test "$target_version" = 1.4 && test "$source_version" = 1.3; then
23545 javac_works=
23546 rm -f conftest.class
23547 if { echo "$as_me:23547: $JAVAC -d . conftest.java" >&5
23548 $JAVAC -d . conftest.java >&5 2>&1
23549 } \
23550 && test -f conftest.class; then
23551 javac_works=1
23552 fi
23553 javac_noassert_works=
23554 rm -f conftest.class
23555 if { echo "$as_me:23555: $JAVAC -fno-assert -d . conftest.java" >&5
23556 $JAVAC -fno-assert -d . conftest.java >&5 2>&1
23557 } \
23558 && test -f conftest.class; then
23559 javac_noassert_works=1
23560 fi
23561 if test -n "$javac_works" && test -n "$javac_noassert_works"; then
23562 rm -f conftestfail.class
23563 if { echo "$as_me:23563: $JAVAC -d . conftestfail.java" >&5
23564 $JAVAC -d . conftestfail.java >&5 2>&1
23565 } \
23566 && test -f conftestfail.class \
23567 && ! { echo "$as_me:23567: $JAVAC -fno-assert -d . conftestfail .java" >&5
23568 $JAVAC -fno-assert -d . conftestfail.java >&5 2>&1
23569 }; then
23570 javac_works=
23571 fi
23572 fi
23573 if test -n "$javac_works"; then
23574 CONF_JAVAC="$JAVAC"
23575 HAVE_JAVAC_ENVVAR=1
23576 HAVE_JAVACOMP=1
23577 else
23578 if test -n "$javac_noassert_works"; then
23579 CONF_JAVAC="$JAVAC -fno-assert"
23580 HAVE_JAVAC_ENVVAR=1
23581 HAVE_JAVACOMP=1
23582 fi
23583 fi
23584 fi
23585 fi
23586 fi
23587 else
23588 rm -f conftest.class
23589 if { echo "$as_me:23589: $JAVAC -d . conftest.java" >&5
23590 $JAVAC -d . conftest.java >&5 2>&1
23591 } \
23592 && test -f conftest.class \
23593 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/n ull 2>&5; then
23594 rm -f conftest.class
23595 rm -f conftestfail.class
23596 if { echo "$as_me:23596: $JAVAC -source $source_version -d . conftest.ja va" >&5
23597 $JAVAC -source "$source_version" -d . conftest.java >&5 2>&1
23598 } \
23599 && test -f conftest.class \
23600 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev /null 2>&5 \
23601 && { echo "$as_me:23601: $JAVAC -d . conftestfail.java" >&5
23602 $JAVAC -d . conftestfail.java >&5 2>&1
23603 } \
23604 && test -f conftestfail.class \
23605 && ! { echo "$as_me:23605: $JAVAC -source $source_version -d . confte stfail.java" >&5
23606 $JAVAC -source "$source_version" -d . conftestfail.java >&5 2> &1
23607 }; then
23608 CONF_JAVAC="$JAVAC -source $source_version"
23609 HAVE_JAVAC_ENVVAR=1
23610 HAVE_JAVACOMP=1
23611 else
23612 CONF_JAVAC="$JAVAC"
23613 HAVE_JAVAC_ENVVAR=1
23614 HAVE_JAVACOMP=1
23615 fi
23616 else
23617 rm -f conftest.class
23618 if { echo "$as_me:23618: $JAVAC -target $target_version -d . conftest.ja va" >&5
23619 $JAVAC -target "$target_version" -d . conftest.java >&5 2>&1
23620 } \
23621 && test -f conftest.class \
23622 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev /null 2>&5; then
23623 rm -f conftest.class
23624 rm -f conftestfail.class
23625 if { echo "$as_me:23625: $JAVAC -target $target_version -source $sourc e_version -d . conftest.java" >&5
23626 $JAVAC -target "$target_version" -source "$source_version" -d . c onftest.java >&5 2>&1
23627 } \
23628 && test -f conftest.class \
23629 && expr `func_classfile_version conftest.class` '<=' $cfversion >/d ev/null 2>&5 \
23630 && { echo "$as_me:23630: $JAVAC -target $target_version -d . confte stfail.java" >&5
23631 $JAVAC -target "$target_version" -d . conftestfail.java >&5 2> &1
23632 } \
23633 && test -f conftestfail.class \
23634 && ! { echo "$as_me:23634: $JAVAC -target $target_version -source $ source_version -d . conftestfail.java" >&5
23635 $JAVAC -target "$target_version" -source "$source_version" - d . conftestfail.java >&5 2>&1
23636 }; then
23637 CONF_JAVAC="$JAVAC -target $target_version -source $source_version"
23638 HAVE_JAVAC_ENVVAR=1
23639 HAVE_JAVACOMP=1
23640 else
23641 CONF_JAVAC="$JAVAC -target $target_version"
23642 HAVE_JAVAC_ENVVAR=1
23643 HAVE_JAVACOMP=1
23644 fi
23645 else
23646 rm -f conftest.class
23647 if { echo "$as_me:23647: $JAVAC -target $target_version -source $sourc e_version -d . conftest.java" >&5
23648 $JAVAC -target "$target_version" -source "$source_version" -d . c onftest.java >&5 2>&1
23649 } \
23650 && test -f conftest.class \
23651 && expr `func_classfile_version conftest.class` '<=' $cfversion >/d ev/null 2>&5; then
23652 CONF_JAVAC="$JAVAC -target $target_version -source $source_version"
23653 HAVE_JAVAC_ENVVAR=1
23654 HAVE_JAVACOMP=1
23655 fi
23656 fi
23657 fi
23658 fi
23659 fi
23660 if test -z "$HAVE_JAVACOMP"; then
23661 # Extract the first word of "gcj", so it can be a program name w ith args.
23662 set dummy gcj; ac_word=$2
23663 :
23664 if test "${ac_cv_prog_HAVE_GCJ_IN_PATH+set}" = set; then
23665 $as_echo_n "(cached) " >&6
23666 else
23667 if test -n "$HAVE_GCJ_IN_PATH"; then
23668 ac_cv_prog_HAVE_GCJ_IN_PATH="$HAVE_GCJ_IN_PATH" # Let the user override the te st.
23669 else
23670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23671 for as_dir in $PATH
23672 do
23673 IFS=$as_save_IFS
23674 test -z "$as_dir" && as_dir=.
23675 for ac_exec_ext in '' $ac_executable_extensions; do
23676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
23677 ac_cv_prog_HAVE_GCJ_IN_PATH="yes"
23678 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23679 break 2
23680 fi
23681 done
23682 done
23683 IFS=$as_save_IFS
23684
23685 fi
23686 fi
23687 HAVE_GCJ_IN_PATH=$ac_cv_prog_HAVE_GCJ_IN_PATH
23688 if test -n "$HAVE_GCJ_IN_PATH"; then
23689 :
23690 else
23691 :
23692 fi
23693
23694
23695 # Extract the first word of "javac", so it can be a program name with args.
23696 set dummy javac; ac_word=$2
23697 :
23698 if test "${ac_cv_prog_HAVE_JAVAC_IN_PATH+set}" = set; then
23699 $as_echo_n "(cached) " >&6
23700 else
23701 if test -n "$HAVE_JAVAC_IN_PATH"; then
23702 ac_cv_prog_HAVE_JAVAC_IN_PATH="$HAVE_JAVAC_IN_PATH" # Let the user override th e test.
23703 else
23704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23705 for as_dir in $PATH
23706 do
23707 IFS=$as_save_IFS
23708 test -z "$as_dir" && as_dir=.
23709 for ac_exec_ext in '' $ac_executable_extensions; do
23710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
23711 ac_cv_prog_HAVE_JAVAC_IN_PATH="yes"
23712 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23713 break 2
23714 fi
23715 done
23716 done
23717 IFS=$as_save_IFS
23718
23719 fi
23720 fi
23721 HAVE_JAVAC_IN_PATH=$ac_cv_prog_HAVE_JAVAC_IN_PATH
23722 if test -n "$HAVE_JAVAC_IN_PATH"; then
23723 :
23724 else
23725 :
23726 fi
23727
23728
23729 # Extract the first word of "jikes", so it can be a program name with args.
23730 set dummy jikes; ac_word=$2
23731 :
23732 if test "${ac_cv_prog_HAVE_JIKES_IN_PATH+set}" = set; then
23733 $as_echo_n "(cached) " >&6
23734 else
23735 if test -n "$HAVE_JIKES_IN_PATH"; then
23736 ac_cv_prog_HAVE_JIKES_IN_PATH="$HAVE_JIKES_IN_PATH" # Let the user override th e test.
23737 else
23738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23739 for as_dir in $PATH
23740 do
23741 IFS=$as_save_IFS
23742 test -z "$as_dir" && as_dir=.
23743 for ac_exec_ext in '' $ac_executable_extensions; do
23744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
23745 ac_cv_prog_HAVE_JIKES_IN_PATH="yes"
23746 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23747 break 2
23748 fi
23749 done
23750 done
23751 IFS=$as_save_IFS
23752
23753 fi
23754 fi
23755 HAVE_JIKES_IN_PATH=$ac_cv_prog_HAVE_JIKES_IN_PATH
23756 if test -n "$HAVE_JIKES_IN_PATH"; then
23757 :
23758 else
23759 :
23760 fi
23761
23762
23763 if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_GCJ_IN_PATH"; then
23764 if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^3\.[01]/d' | grep '^[3-9]' >/dev/null; then
23765 if { echo "$as_me:23765: gcj -C -d . conftestlib.java" >&5
23766 gcj -C -d . conftestlib.java >&5 2>&1
23767 }; then
23768 if gcj --version 2>/dev/null | sed -e 's,^[^0-9]*,,' -e 1q | sed -e '/^4\.[012]/d' | grep '^[4-9]' >/dev/null; then
23769 rm -f conftest.class
23770 if { echo "$as_me:23770: gcj -C -d . conftest.java" >&5
23771 gcj -C -d . conftest.java >&5 2>&1
23772 } \
23773 && test -f conftest.class \
23774 && expr `func_classfile_version conftest.class` '<=' $cfversion > /dev/null 2>&5; then
23775 rm -f conftest.class
23776 rm -f conftestfail.class
23777 if { echo "$as_me:23777: gcj -C -fsource=$source_version -d . conf test.java" >&5
23778 gcj -C -fsource="$source_version" -d . conftest.java >&5 2>&1
23779 } \
23780 && test -f conftest.class \
23781 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5 \
23782 && { echo "$as_me:23782: gcj -C -d . conftestfail.java" >&5
23783 gcj -C -d . conftestfail.java >&5 2>&1
23784 } \
23785 && test -f conftestfail.class \
23786 && ! { echo "$as_me:23786: gcj -C -fsource=$source_version -d . conftestfail.java" >&5
23787 gcj -C -fsource="$source_version" -d . conftestfail.java >&5 2>&1
23788 }; then
23789 CONF_JAVAC="gcj -C -fsource=$source_version"
23790 HAVE_JAVAC_ENVVAR=1
23791 HAVE_JAVACOMP=1
23792 else
23793 CONF_JAVAC="gcj -C"
23794 HAVE_JAVAC_ENVVAR=1
23795 HAVE_JAVACOMP=1
23796 fi
23797 else
23798 rm -f conftest.class
23799 rm -f conftestfail.class
23800 if { echo "$as_me:23800: gcj -C -fsource=$source_version -ftarget= $target_version -d . conftest.java" >&5
23801 gcj -C -fsource="$source_version" -ftarget="$target_version" -d . conftest.java >&5 2>&1
23802 } \
23803 && test -f conftest.class \
23804 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev/null 2>&5; then
23805 CONF_JAVAC="gcj -C -fsource=$source_version -ftarget=$target_ver sion"
23806 HAVE_JAVAC_ENVVAR=1
23807 HAVE_JAVACOMP=1
23808 fi
23809 fi
23810 else
23811 if test "$target_version" = 1.4 && test "$source_version" = 1.4; then
23812 rm -f conftest.class
23813 if { echo "$as_me:23813: gcj -C -d . conftest.java" >&5
23814 gcj -C -d . conftest.java >&5 2>&1
23815 } \
23816 && test -f conftest.class; then
23817 CONF_JAVAC="gcj -C"
23818 HAVE_GCJ_C=1
23819 HAVE_JAVACOMP=1
23820 fi
23821 else
23822 if test "$target_version" = 1.4 && test "$source_version" = 1.3; t hen
23823 rm -f conftest.class
23824 if { echo "$as_me:23824: gcj -C -fno-assert -d . conftest.java" >&5
23825 gcj -C -fno-assert -d . conftest.java >&5 2>&1
23826 } \
23827 && test -f conftest.class; then
23828 CONF_JAVAC="gcj -C -fno-assert"
23829 HAVE_GCJ_C=1
23830 HAVE_JAVACOMP=1
23831 else
23832 rm -f conftest.class
23833 if { echo "$as_me:23833: gcj -C -d . conftest.java" >&5
23834 gcj -C -d . conftest.java >&5 2>&1
23835 } \
23836 && test -f conftest.class; then
23837 CONF_JAVAC="gcj -C"
23838 HAVE_GCJ_C=1
23839 HAVE_JAVACOMP=1
23840 fi
23841 fi
23842 fi
23843 fi
23844 fi
23845 fi
23846 fi
23847 fi
23848 if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JAVAC_IN_PATH"; then
23849 if { javac -version >/dev/null 2>/dev/null || test $? -le 2; } \
23850 && ( if javac -help 2>&1 >/dev/null | grep at.dms.kjc.Main >/dev/null & & javac -help 2>/dev/null | grep 'released.*2000' >/dev/null ; then exit 1; else exit 0; fi ); then
23851 rm -f conftest.class
23852 if { echo "$as_me:23852: javac -d . conftest.java" >&5
23853 javac -d . conftest.java >&5 2>&1
23854 } \
23855 && test -f conftest.class \
23856 && expr `func_classfile_version conftest.class` '<=' $cfversion >/dev /null 2>&5; then
23857 rm -f conftest.class
23858 rm -f conftestfail.class
23859 if { echo "$as_me:23859: javac -source $source_version -d . conftest.j ava" >&5
23860 javac -source "$source_version" -d . conftest.java >&5 2>&1
23861 } \
23862 && test -f conftest.class \
23863 && expr `func_classfile_version conftest.class` '<=' $cfversion >/d ev/null 2>&5 \
23864 && { echo "$as_me:23864: javac -d . conftestfail.java" >&5
23865 javac -d . conftestfail.java >&5 2>&1
23866 } \
23867 && test -f conftestfail.class \
23868 && ! { echo "$as_me:23868: javac -source $source_version -d . conft estfail.java" >&5
23869 javac -source "$source_version" -d . conftestfail.java >&5 2 >&1
23870 }; then
23871 CONF_JAVAC="javac -source $source_version"
23872 HAVE_JAVAC=1
23873 HAVE_JAVACOMP=1
23874 else
23875 CONF_JAVAC="javac"
23876 HAVE_JAVAC=1
23877 HAVE_JAVACOMP=1
23878 fi
23879 else
23880 rm -f conftest.class
23881 if { echo "$as_me:23881: javac -target $target_version -d . conftest.j ava" >&5
23882 javac -target "$target_version" -d . conftest.java >&5 2>&1
23883 } \
23884 && test -f conftest.class \
23885 && expr `func_classfile_version conftest.class` '<=' $cfversion >/d ev/null 2>&5; then
23886 rm -f conftest.class
23887 rm -f conftestfail.class
23888 if { echo "$as_me:23888: javac -target $target_version -source $sour ce_version -d . conftest.java" >&5
23889 javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
23890 } \
23891 && test -f conftest.class \
23892 && expr `func_classfile_version conftest.class` '<=' $cfversion > /dev/null 2>&5 \
23893 && { echo "$as_me:23893: javac -target $target_version -d . conft estfail.java" >&5
23894 javac -target "$target_version" -d . conftestfail.java >&5 2 >&1
23895 } \
23896 && test -f conftestfail.class \
23897 && ! { echo "$as_me:23897: javac -target $target_version -source $source_version -d . conftestfail.java" >&5
23898 javac -target "$target_version" -source "$source_version" -d . conftestfail.java >&5 2>&1
23899 }; then
23900 CONF_JAVAC="javac -target $target_version -source $source_version"
23901 HAVE_JAVAC=1
23902 HAVE_JAVACOMP=1
23903 else
23904 CONF_JAVAC="javac -target $target_version"
23905 HAVE_JAVAC=1
23906 HAVE_JAVACOMP=1
23907 fi
23908 else
23909 rm -f conftest.class
23910 if { echo "$as_me:23910: javac -target $target_version -source $sour ce_version -d . conftest.java" >&5
23911 javac -target "$target_version" -source "$source_version" -d . conftest.java >&5 2>&1
23912 } \
23913 && test -f conftest.class \
23914 && expr `func_classfile_version conftest.class` '<=' $cfversion > /dev/null 2>&5; then
23915 CONF_JAVAC="javac -target $target_version -source $source_version"
23916 HAVE_JAVAC=1
23917 HAVE_JAVACOMP=1
23918 fi
23919 fi
23920 fi
23921 fi
23922 fi
23923 if test -z "$HAVE_JAVACOMP" && test -n "$HAVE_JIKES_IN_PATH"; then
23924 if { jikes >/dev/null 2>/dev/null || test $? = 1; } \
23925 && (
23926 # See if the existing CLASSPATH is sufficient to make jikes work.
23927 unset JAVA_HOME
23928 jikes conftestlib.java >&5 2>&1
23929 error=$?
23930 rm -f conftestlib.class
23931 exit $error
23932 ); then
23933 if test "$source_version" = 1.3; then
23934 CONF_JAVAC="jikes"
23935 HAVE_JIKES=1
23936 HAVE_JAVACOMP=1
23937 fi
23938 fi
23939 fi
23940 fi
23941 rm -f conftest*.java conftest*.class
23942 if test -n "$HAVE_JAVACOMP"; then
23943 ac_result="$CONF_JAVAC"
23944 else
23945 ac_result="no"
23946 fi
23947 { $as_echo "$as_me:$LINENO: result: $ac_result" >&5
23948 $as_echo "$ac_result" >&6; }
23949
23950
23951
23952
23953
23954
23955
23956
23957
23958 { $as_echo "$as_me:$LINENO: checking for Java virtual machine" >&5
23959 $as_echo_n "checking for Java virtual machine... " >&6; }
23960 cat >conftest.$ac_ext <<_ACEOF
23961 /* confdefs.h. */
23962 _ACEOF
23963 cat confdefs.h >>conftest.$ac_ext
23964 cat >>conftest.$ac_ext <<_ACEOF
23965 /* end confdefs.h. */
23966
23967 #if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
23968 yes
23969 #endif
23970
23971 _ACEOF
23972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23973 $EGREP "yes" >/dev/null 2>&1; then
23974 CLASSPATH_SEPARATOR=';'
23975 else
23976 CLASSPATH_SEPARATOR=':'
23977 fi
23978 rm -f conftest*
23979
23980 CONF_JAVA=
23981 HAVE_JAVA_ENVVAR=
23982 HAVE_GIJ=
23983 HAVE_JAVA=
23984 HAVE_JRE=
23985 HAVE_JVIEW=
23986 HAVE_JAVAEXEC=1
23987 if test -n "$JAVA"; then
23988 HAVE_JAVA_ENVVAR=1
23989 CONF_JAVA="$JAVA"
23990 else
23991 # Extract the first word of "gij", so it can be a program name w ith args.
23992 set dummy gij; ac_word=$2
23993 :
23994 if test "${ac_cv_prog_HAVE_GIJ_IN_PATH+set}" = set; then
23995 $as_echo_n "(cached) " >&6
23996 else
23997 if test -n "$HAVE_GIJ_IN_PATH"; then
23998 ac_cv_prog_HAVE_GIJ_IN_PATH="$HAVE_GIJ_IN_PATH" # Let the user override the te st.
23999 else
24000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24001 for as_dir in $PATH
24002 do
24003 IFS=$as_save_IFS
24004 test -z "$as_dir" && as_dir=.
24005 for ac_exec_ext in '' $ac_executable_extensions; do
24006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
24007 ac_cv_prog_HAVE_GIJ_IN_PATH="yes"
24008 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24009 break 2
24010 fi
24011 done
24012 done
24013 IFS=$as_save_IFS
24014
24015 fi
24016 fi
24017 HAVE_GIJ_IN_PATH=$ac_cv_prog_HAVE_GIJ_IN_PATH
24018 if test -n "$HAVE_GIJ_IN_PATH"; then
24019 :
24020 else
24021 :
24022 fi
24023
24024
24025 # Extract the first word of "java", so it can be a program name with args.
24026 set dummy java; ac_word=$2
24027 :
24028 if test "${ac_cv_prog_HAVE_JAVA_IN_PATH+set}" = set; then
24029 $as_echo_n "(cached) " >&6
24030 else
24031 if test -n "$HAVE_JAVA_IN_PATH"; then
24032 ac_cv_prog_HAVE_JAVA_IN_PATH="$HAVE_JAVA_IN_PATH" # Let the user override the test.
24033 else
24034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24035 for as_dir in $PATH
24036 do
24037 IFS=$as_save_IFS
24038 test -z "$as_dir" && as_dir=.
24039 for ac_exec_ext in '' $ac_executable_extensions; do
24040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
24041 ac_cv_prog_HAVE_JAVA_IN_PATH="yes"
24042 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24043 break 2
24044 fi
24045 done
24046 done
24047 IFS=$as_save_IFS
24048
24049 fi
24050 fi
24051 HAVE_JAVA_IN_PATH=$ac_cv_prog_HAVE_JAVA_IN_PATH
24052 if test -n "$HAVE_JAVA_IN_PATH"; then
24053 :
24054 else
24055 :
24056 fi
24057
24058
24059 # Extract the first word of "jre", so it can be a program name with args.
24060 set dummy jre; ac_word=$2
24061 :
24062 if test "${ac_cv_prog_HAVE_JRE_IN_PATH+set}" = set; then
24063 $as_echo_n "(cached) " >&6
24064 else
24065 if test -n "$HAVE_JRE_IN_PATH"; then
24066 ac_cv_prog_HAVE_JRE_IN_PATH="$HAVE_JRE_IN_PATH" # Let the user override the te st.
24067 else
24068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24069 for as_dir in $PATH
24070 do
24071 IFS=$as_save_IFS
24072 test -z "$as_dir" && as_dir=.
24073 for ac_exec_ext in '' $ac_executable_extensions; do
24074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
24075 ac_cv_prog_HAVE_JRE_IN_PATH="yes"
24076 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24077 break 2
24078 fi
24079 done
24080 done
24081 IFS=$as_save_IFS
24082
24083 fi
24084 fi
24085 HAVE_JRE_IN_PATH=$ac_cv_prog_HAVE_JRE_IN_PATH
24086 if test -n "$HAVE_JRE_IN_PATH"; then
24087 :
24088 else
24089 :
24090 fi
24091
24092
24093 # Extract the first word of "jview", so it can be a program name with args.
24094 set dummy jview; ac_word=$2
24095 :
24096 if test "${ac_cv_prog_HAVE_JVIEW_IN_PATH+set}" = set; then
24097 $as_echo_n "(cached) " >&6
24098 else
24099 if test -n "$HAVE_JVIEW_IN_PATH"; then
24100 ac_cv_prog_HAVE_JVIEW_IN_PATH="$HAVE_JVIEW_IN_PATH" # Let the user override th e test.
24101 else
24102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24103 for as_dir in $PATH
24104 do
24105 IFS=$as_save_IFS
24106 test -z "$as_dir" && as_dir=.
24107 for ac_exec_ext in '' $ac_executable_extensions; do
24108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac _exec_ext"; }; then
24109 ac_cv_prog_HAVE_JVIEW_IN_PATH="yes"
24110 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24111 break 2
24112 fi
24113 done
24114 done
24115 IFS=$as_save_IFS
24116
24117 fi
24118 fi
24119 HAVE_JVIEW_IN_PATH=$ac_cv_prog_HAVE_JVIEW_IN_PATH
24120 if test -n "$HAVE_JVIEW_IN_PATH"; then
24121 :
24122 else
24123 :
24124 fi
24125
24126
24127
24128 export CLASSPATH
24129 if test -n "$HAVE_GIJ_IN_PATH" \
24130 && gij --version >/dev/null 2>/dev/null \
24131 ; then
24132 HAVE_GIJ=1
24133 CONF_JAVA="gij"
24134 else
24135 if test -n "$HAVE_JAVA_IN_PATH" \
24136 && java -version >/dev/null 2>/dev/null \
24137 ; then
24138 HAVE_JAVA=1
24139 CONF_JAVA="java"
24140 else
24141 if test -n "$HAVE_JRE_IN_PATH" \
24142 && (jre >/dev/null 2>/dev/null || test $? = 1) \
24143 ; then
24144 HAVE_JRE=1
24145 CONF_JAVA="jre"
24146 else
24147 if test -n "$HAVE_JVIEW_IN_PATH" \
24148 && (jview -? >/dev/null 2>/dev/null || test $? = 1) \
24149 ; then
24150 HAVE_JVIEW=1
24151 CONF_JAVA="jview"
24152 else
24153 HAVE_JAVAEXEC=
24154 fi
24155 fi
24156 fi
24157 fi
24158
24159 fi
24160 if test -n "$HAVE_JAVAEXEC"; then
24161 ac_result="$CONF_JAVA"
24162 else
24163 ac_result="no"
24164 fi
24165 { $as_echo "$as_me:$LINENO: result: $ac_result" >&5
24166 $as_echo "$ac_result" >&6; }
24167
24168
24169
24170
24171
24172
24173
24174
24175
24176
24177 ac_config_files="$ac_config_files Makefile build-aux/Makefile po/Makefile.in dat a/Makefile etc/Makefile examples/Makefile examples/calc++/Makefile lib/Makefile src/Makefile doc/Makefile doc/yacc.1"
24178
24179 cat >confcache <<\_ACEOF
24180 # This file is a shell script that caches the results of configure
24181 # tests run on this system so they can be shared between configure
24182 # scripts and configure runs, see configure's option --config-cache.
24183 # It is not useful on other systems. If it contains results you don't
24184 # want to keep, you may remove or edit it.
24185 #
24186 # config.status only pays attention to the cache file if you give it
24187 # the --recheck option to rerun configure.
24188 #
24189 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24190 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24191 # following values.
24192
24193 _ACEOF
24194
24195 # The following way of writing the cache mishandles newlines in values,
24196 # but we know of no workaround that is simple, portable, and efficient.
24197 # So, we kill variables containing newlines.
24198 # Ultrix sh set writes to stderr and can't be redirected directly,
24199 # and sets the high bit in the cache file unless we assign to the vars.
24200 (
24201 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; d o
24202 eval ac_val=\$$ac_var
24203 case $ac_val in #(
24204 *${as_nl}*)
24205 case $ac_var in #(
24206 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contai ns a newline." >&5
24207 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24208 esac
24209 case $ac_var in #(
24210 _ | IFS | as_nl) ;; #(
24211 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24212 *) $as_unset $ac_var ;;
24213 esac ;;
24214 esac
24215 done
24216
24217 (set) 2>&1 |
24218 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24219 *${as_nl}ac_space=\ *)
24220 # `set' does not quote correctly, so add quotes (double-quote
24221 # substitution turns \\\\ into \\, and sed turns \\ into \).
24222 sed -n \
24223 "s/'/'\\\\''/g;
24224 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24225 ;; #(
24226 *)
24227 # `set' quotes correctly as required by POSIX, so do not add quotes.
24228 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24229 ;;
24230 esac |
24231 sort
24232 ) |
24233 sed '
24234 /^ac_cv_env_/b end
24235 t clear
24236 :clear
24237 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24238 t end
24239 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24240 :end' >>confcache
24241 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24242 if test -w "$cache_file"; then
24243 test "x$cache_file" != "x/dev/null" &&
24244 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
24245 $as_echo "$as_me: updating cache $cache_file" >&6;}
24246 cat confcache >$cache_file
24247 else
24248 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24249 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24250 fi
24251 fi
24252 rm -f confcache
24253
24254 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24255 # Let make expand exec_prefix.
24256 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24257
24258 DEFS=-DHAVE_CONFIG_H
24259
24260 ac_libobjs=
24261 ac_ltlibobjs=
24262 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24263 # 1. Remove the extension, and $U if already installed.
24264 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24265 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24266 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24267 # will be set to the directory where LIBOBJS objects are built.
24268 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24269 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24270 done
24271 LIBOBJS=$ac_libobjs
24272
24273 LTLIBOBJS=$ac_ltlibobjs
24274
24275
24276 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24277 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24278 Usually this means the macro was only invoked conditionally." >&5
24279 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
24280 Usually this means the macro was only invoked conditionally." >&2;}
24281 { (exit 1); exit 1; }; }
24282 fi
24283 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24284 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never d efined.
24285 Usually this means the macro was only invoked conditionally." >&5
24286 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24287 Usually this means the macro was only invoked conditionally." >&2;}
24288 { (exit 1); exit 1; }; }
24289 fi
24290 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
24291 { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
24292 Usually this means the macro was only invoked conditionally." >&5
24293 $as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
24294 Usually this means the macro was only invoked conditionally." >&2;}
24295 { (exit 1); exit 1; }; }
24296 fi
24297 test "X$DEFS" = X-DHAVE_CONFIG_H && DEFS=
24298
24299 gl_libobjs=
24300 gl_ltlibobjs=
24301 if test -n "$gl_LIBOBJS"; then
24302 # Remove the extension.
24303 sed_drop_objext='s/\.o$//;s/\.obj$//'
24304 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext " | sort | uniq`; do
24305 gl_libobjs="$gl_libobjs $i.$ac_objext"
24306 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
24307 done
24308 fi
24309 gl_LIBOBJS=$gl_libobjs
24310
24311 gl_LTLIBOBJS=$gl_ltlibobjs
24312
24313
24314
24315 gltests_libobjs=
24316 gltests_ltlibobjs=
24317 if test -n "$gltests_LIBOBJS"; then
24318 # Remove the extension.
24319 sed_drop_objext='s/\.o$//;s/\.obj$//'
24320 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_o bjext" | sort | uniq`; do
24321 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
24322 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
24323 done
24324 fi
24325 gltests_LIBOBJS=$gltests_libobjs
24326
24327 gltests_LTLIBOBJS=$gltests_ltlibobjs
24328
24329
24330 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24331 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24332 Usually this means the macro was only invoked conditionally." >&5
24333 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24334 Usually this means the macro was only invoked conditionally." >&2;}
24335 { (exit 1); exit 1; }; }
24336 fi
24337 if test -z "${BISON_CXX_WORKS_TRUE}" && test -z "${BISON_CXX_WORKS_FALSE}"; then
24338 { { $as_echo "$as_me:$LINENO: error: conditional \"BISON_CXX_WORKS\" was never defined.
24339 Usually this means the macro was only invoked conditionally." >&5
24340 $as_echo "$as_me: error: conditional \"BISON_CXX_WORKS\" was never defined.
24341 Usually this means the macro was only invoked conditionally." >&2;}
24342 { (exit 1); exit 1; }; }
24343 fi
24344
24345 : ${CONFIG_STATUS=./config.status}
24346 ac_write_fail=0
24347 ac_clean_files_save=$ac_clean_files
24348 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24349 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24350 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24351 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24352 #! $SHELL
24353 # Generated by $as_me.
24354 # Run this file to recreate the current configuration.
24355 # Compiler output produced by configure, useful for debugging
24356 # configure, is in config.log if it exists.
24357
24358 debug=false
24359 ac_cs_recheck=false
24360 ac_cs_silent=false
24361 SHELL=\${CONFIG_SHELL-$SHELL}
24362 _ACEOF
24363
24364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24365 ## --------------------- ##
24366 ## M4sh Initialization. ##
24367 ## --------------------- ##
24368
24369 # Be more Bourne compatible
24370 DUALCASE=1; export DUALCASE # for MKS sh
24371 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24372 emulate sh
24373 NULLCMD=:
24374 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24375 # is contrary to our usage. Disable this feature.
24376 alias -g '${1+"$@"}'='"$@"'
24377 setopt NO_GLOB_SUBST
24378 else
24379 case `(set -o) 2>/dev/null` in
24380 *posix*) set -o posix ;;
24381 esac
24382
24383 fi
24384
24385
24386
24387
24388 # PATH needs CR
24389 # Avoid depending upon Character Ranges.
24390 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24391 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24392 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24393 as_cr_digits='0123456789'
24394 as_cr_alnum=$as_cr_Letters$as_cr_digits
24395
24396 as_nl='
24397 '
24398 export as_nl
24399 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24400 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24401 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24402 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24403 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24404 as_echo='printf %s\n'
24405 as_echo_n='printf %s'
24406 else
24407 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24408 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24409 as_echo_n='/usr/ucb/echo -n'
24410 else
24411 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24412 as_echo_n_body='eval
24413 arg=$1;
24414 case $arg in
24415 *"$as_nl"*)
24416 expr "X$arg" : "X\\(.*\\)$as_nl";
24417 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24418 esac;
24419 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24420 '
24421 export as_echo_n_body
24422 as_echo_n='sh -c $as_echo_n_body as_echo'
24423 fi
24424 export as_echo_body
24425 as_echo='sh -c $as_echo_body as_echo'
24426 fi
24427
24428 # The user is always right.
24429 if test "${PATH_SEPARATOR+set}" != set; then
24430 PATH_SEPARATOR=:
24431 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24432 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24433 PATH_SEPARATOR=';'
24434 }
24435 fi
24436
24437 # Support unset when possible.
24438 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24439 as_unset=unset
24440 else
24441 as_unset=false
24442 fi
24443
24444
24445 # IFS
24446 # We need space, tab and new line, in precisely that order. Quoting is
24447 # there to prevent editors from complaining about space-tab.
24448 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24449 # splitting by setting IFS to empty value.)
24450 IFS=" "" $as_nl"
24451
24452 # Find who we are. Look in the path if we contain no directory separator.
24453 case $0 in
24454 *[\\/]* ) as_myself=$0 ;;
24455 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24456 for as_dir in $PATH
24457 do
24458 IFS=$as_save_IFS
24459 test -z "$as_dir" && as_dir=.
24460 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24461 done
24462 IFS=$as_save_IFS
24463
24464 ;;
24465 esac
24466 # We did not find ourselves, most probably we were run as `sh COMMAND'
24467 # in which case we are not to be found in the path.
24468 if test "x$as_myself" = x; then
24469 as_myself=$0
24470 fi
24471 if test ! -f "$as_myself"; then
24472 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file n ame" >&2
24473 { (exit 1); exit 1; }
24474 fi
24475
24476 # Work around bugs in pre-3.0 UWIN ksh.
24477 for as_var in ENV MAIL MAILPATH
24478 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24479 done
24480 PS1='$ '
24481 PS2='> '
24482 PS4='+ '
24483
24484 # NLS nuisances.
24485 LC_ALL=C
24486 export LC_ALL
24487 LANGUAGE=C
24488 export LANGUAGE
24489
24490 # Required to use basename.
24491 if expr a : '\(a\)' >/dev/null 2>&1 &&
24492 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24493 as_expr=expr
24494 else
24495 as_expr=false
24496 fi
24497
24498 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24499 as_basename=basename
24500 else
24501 as_basename=false
24502 fi
24503
24504
24505 # Name of the executable.
24506 as_me=`$as_basename -- "$0" ||
24507 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24508 X"$0" : 'X\(//\)$' \| \
24509 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24510 $as_echo X/"$0" |
24511 sed '/^.*\/\([^/][^/]*\)\/*$/{
24512 s//\1/
24513 q
24514 }
24515 /^X\/\(\/\/\)$/{
24516 s//\1/
24517 q
24518 }
24519 /^X\/\(\/\).*/{
24520 s//\1/
24521 q
24522 }
24523 s/.*/./; q'`
24524
24525 # CDPATH.
24526 $as_unset CDPATH
24527
24528
24529
24530 as_lineno_1=$LINENO
24531 as_lineno_2=$LINENO
24532 test "x$as_lineno_1" != "x$as_lineno_2" &&
24533 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24534
24535 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24536 # uniformly replaced by the line number. The first 'sed' inserts a
24537 # line-number line after each line using $LINENO; the second 'sed'
24538 # does the real work. The second script uses 'N' to pair each
24539 # line-number line with the line containing $LINENO, and appends
24540 # trailing '-' during substitution so that $LINENO is not a special
24541 # case at line end.
24542 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24543 # scripts with optimization help from Paolo Bonzini. Blame Lee
24544 # E. McMahon (1931-1989) for sed's syntax. :-)
24545 sed -n '
24546 p
24547 /[$]LINENO/=
24548 ' <$as_myself |
24549 sed '
24550 s/[$]LINENO.*/&-/
24551 t lineno
24552 b
24553 :lineno
24554 N
24555 :loop
24556 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24557 t loop
24558 s/-\n.*//
24559 ' >$as_me.lineno &&
24560 chmod +x "$as_me.lineno" ||
24561 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX s hell" >&2
24562 { (exit 1); exit 1; }; }
24563
24564 # Don't try to exec as it changes $[0], causing all sort of problems
24565 # (the dirname of $[0] is not the place where we might find the
24566 # original and so on. Autoconf is especially sensitive to this).
24567 . "./$as_me.lineno"
24568 # Exit status is that of the last command.
24569 exit
24570 }
24571
24572
24573 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24574 as_dirname=dirname
24575 else
24576 as_dirname=false
24577 fi
24578
24579 ECHO_C= ECHO_N= ECHO_T=
24580 case `echo -n x` in
24581 -n*)
24582 case `echo 'x\c'` in
24583 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24584 *) ECHO_C='\c';;
24585 esac;;
24586 *)
24587 ECHO_N='-n';;
24588 esac
24589 if expr a : '\(a\)' >/dev/null 2>&1 &&
24590 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24591 as_expr=expr
24592 else
24593 as_expr=false
24594 fi
24595
24596 rm -f conf$$ conf$$.exe conf$$.file
24597 if test -d conf$$.dir; then
24598 rm -f conf$$.dir/conf$$.file
24599 else
24600 rm -f conf$$.dir
24601 mkdir conf$$.dir 2>/dev/null
24602 fi
24603 if (echo >conf$$.file) 2>/dev/null; then
24604 if ln -s conf$$.file conf$$ 2>/dev/null; then
24605 as_ln_s='ln -s'
24606 # ... but there are two gotchas:
24607 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24608 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24609 # In both cases, we have to default to `cp -p'.
24610 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24611 as_ln_s='cp -p'
24612 elif ln conf$$.file conf$$ 2>/dev/null; then
24613 as_ln_s=ln
24614 else
24615 as_ln_s='cp -p'
24616 fi
24617 else
24618 as_ln_s='cp -p'
24619 fi
24620 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24621 rmdir conf$$.dir 2>/dev/null
24622
24623 if mkdir -p . 2>/dev/null; then
24624 as_mkdir_p=:
24625 else
24626 test -d ./-p && rmdir ./-p
24627 as_mkdir_p=false
24628 fi
24629
24630 if test -x / >/dev/null 2>&1; then
24631 as_test_x='test -x'
24632 else
24633 if ls -dL / >/dev/null 2>&1; then
24634 as_ls_L_option=L
24635 else
24636 as_ls_L_option=
24637 fi
24638 as_test_x='
24639 eval sh -c '\''
24640 if test -d "$1"; then
24641 test -d "$1/.";
24642 else
24643 case $1 in
24644 -*)set "./$1";;
24645 esac;
24646 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24647 ???[sx]*):;;*)false;;esac;fi
24648 '\'' sh
24649 '
24650 fi
24651 as_executable_p=$as_test_x
24652
24653 # Sed expression to map a string onto a valid CPP name.
24654 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24655
24656 # Sed expression to map a string onto a valid variable name.
24657 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24658
24659
24660 exec 6>&1
24661
24662 # Save the log message, to keep $[0] and so on meaningful, and to
24663 # report actual input values of CONFIG_FILES etc. instead of their
24664 # values after options handling.
24665 ac_log="
24666 This file was extended by GNU Bison $as_me 2.4.1, which was
24667 generated by GNU Autoconf 2.62. Invocation command line was
24668
24669 CONFIG_FILES = $CONFIG_FILES
24670 CONFIG_HEADERS = $CONFIG_HEADERS
24671 CONFIG_LINKS = $CONFIG_LINKS
24672 CONFIG_COMMANDS = $CONFIG_COMMANDS
24673 $ $0 $@
24674
24675 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24676 "
24677
24678 _ACEOF
24679
24680 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24681 # Files that config.status was made for.
24682 config_files="$ac_config_files"
24683 config_headers="$ac_config_headers"
24684 config_links="$ac_config_links"
24685 config_commands="$ac_config_commands"
24686
24687 _ACEOF
24688
24689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24690 ac_cs_usage="\
24691 \`$as_me' instantiates files from templates according to the
24692 current configuration.
24693
24694 Usage: $0 [OPTIONS] [FILE]...
24695
24696 -h, --help print this help, then exit
24697 -V, --version print version number and configuration settings, then exit
24698 -q, --quiet do not print progress messages
24699 -d, --debug don't remove temporary files
24700 --recheck update $as_me by reconfiguring in the same conditions
24701 --file=FILE[:TEMPLATE]
24702 instantiate the configuration file FILE
24703 --header=FILE[:TEMPLATE]
24704 instantiate the configuration header FILE
24705
24706 Configuration files:
24707 $config_files
24708
24709 Configuration headers:
24710 $config_headers
24711
24712 Configuration links:
24713 $config_links
24714
24715 Configuration commands:
24716 $config_commands
24717
24718 Report bugs to <bug-autoconf@gnu.org>."
24719
24720 _ACEOF
24721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24722 ac_cs_version="\\
24723 GNU Bison config.status 2.4.1
24724 configured by $0, generated by GNU Autoconf 2.62,
24725 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\ \&/g'`\\"
24726
24727 Copyright (C) 2008 Free Software Foundation, Inc.
24728 This config.status script is free software; the Free Software Foundation
24729 gives unlimited permission to copy, distribute and modify it."
24730
24731 ac_pwd='$ac_pwd'
24732 srcdir='$srcdir'
24733 INSTALL='$INSTALL'
24734 MKDIR_P='$MKDIR_P'
24735 AWK='$AWK'
24736 test -n "\$AWK" || AWK=awk
24737 _ACEOF
24738
24739 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24740 # The default lists apply if the user does not specify any file.
24741 ac_need_defaults=:
24742 while test $# != 0
24743 do
24744 case $1 in
24745 --*=*)
24746 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24747 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24748 ac_shift=:
24749 ;;
24750 *)
24751 ac_option=$1
24752 ac_optarg=$2
24753 ac_shift=shift
24754 ;;
24755 esac
24756
24757 case $ac_option in
24758 # Handling of the options.
24759 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24760 ac_cs_recheck=: ;;
24761 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24762 $as_echo "$ac_cs_version"; exit ;;
24763 --debug | --debu | --deb | --de | --d | -d )
24764 debug=: ;;
24765 --file | --fil | --fi | --f )
24766 $ac_shift
24767 case $ac_optarg in
24768 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24769 esac
24770 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
24771 ac_need_defaults=false;;
24772 --header | --heade | --head | --hea )
24773 $ac_shift
24774 case $ac_optarg in
24775 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
24776 esac
24777 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
24778 ac_need_defaults=false;;
24779 --he | --h)
24780 # Conflict between --help and --header
24781 { $as_echo "$as_me: error: ambiguous option: $1
24782 Try \`$0 --help' for more information." >&2
24783 { (exit 1); exit 1; }; };;
24784 --help | --hel | -h )
24785 $as_echo "$ac_cs_usage"; exit ;;
24786 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24787 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24788 ac_cs_silent=: ;;
24789
24790 # This is an error.
24791 -*) { $as_echo "$as_me: error: unrecognized option: $1
24792 Try \`$0 --help' for more information." >&2
24793 { (exit 1); exit 1; }; } ;;
24794
24795 *) ac_config_targets="$ac_config_targets $1"
24796 ac_need_defaults=false ;;
24797
24798 esac
24799 shift
24800 done
24801
24802 ac_configure_extra_args=
24803
24804 if $ac_cs_silent; then
24805 exec 6>/dev/null
24806 ac_configure_extra_args="$ac_configure_extra_args --silent"
24807 fi
24808
24809 _ACEOF
24810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24811 if \$ac_cs_recheck; then
24812 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create - -no-recursion
24813 shift
24814 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
24815 CONFIG_SHELL='$SHELL'
24816 export CONFIG_SHELL
24817 exec "\$@"
24818 fi
24819
24820 _ACEOF
24821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24822 exec 5>>config.log
24823 {
24824 echo
24825 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24826 ## Running $as_me. ##
24827 _ASBOX
24828 $as_echo "$ac_log"
24829 } >&5
24830
24831 _ACEOF
24832 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24833 #
24834 # INIT-COMMANDS
24835 #
24836 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24837 GNUmakefile=$GNUmakefile
24838 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
24839 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
24840 # from automake < 1.5.
24841 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
24842 # Capture the value of LINGUAS because we need it to compute CATALOGS.
24843 LINGUAS="${LINGUAS-%UNSET%}"
24844
24845
24846 _ACEOF
24847
24848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24849
24850 # Handling of arguments.
24851 for ac_config_target in $ac_config_targets
24852 do
24853 case $ac_config_target in
24854 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h:lib/config.hin" ;;
24855 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24856 "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;;
24857 "javacomp.sh") CONFIG_FILES="$CONFIG_FILES javacomp.sh:build-aux/javacomp.sh .in" ;;
24858 "javaexec.sh") CONFIG_FILES="$CONFIG_FILES javaexec.sh:build-aux/javaexec.sh .in" ;;
24859 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
24860 "runtime-po/Makefile.in") CONFIG_FILES="$CONFIG_FILES runtime-po/Makefile.in " ;;
24861 "etc/bench.pl") CONFIG_FILES="$CONFIG_FILES etc/bench.pl" ;;
24862 "tests/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
24863 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
24864 "tests/atlocal") CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
24865 "tests/bison") CONFIG_FILES="$CONFIG_FILES tests/bison" ;;
24866 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24867 "build-aux/Makefile") CONFIG_FILES="$CONFIG_FILES build-aux/Makefile" ;;
24868 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
24869 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
24870 "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
24871 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
24872 "examples/calc++/Makefile") CONFIG_FILES="$CONFIG_FILES examples/calc++/Make file" ;;
24873 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
24874 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24875 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24876 "doc/yacc.1") CONFIG_FILES="$CONFIG_FILES doc/yacc.1" ;;
24877
24878 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" > &5
24879 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24880 { (exit 1); exit 1; }; };;
24881 esac
24882 done
24883
24884
24885 # If the user did not use the arguments to specify the items to instantiate,
24886 # then the envvar interface is used. Set only those that are not.
24887 # We use the long form for the default assignment because of an extremely
24888 # bizarre bug on SunOS 4.1.3.
24889 if $ac_need_defaults; then
24890 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24891 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24892 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24893 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24894 fi
24895
24896 # Have a temporary directory for convenience. Make it in the build tree
24897 # simply because there is no reason against having it here, and in addition,
24898 # creating and moving files from /tmp can sometimes cause problems.
24899 # Hook for its removal unless debugging.
24900 # Note that there is a small window in which the directory will not be cleaned:
24901 # after its creation but before its name has been assigned to `$tmp'.
24902 $debug ||
24903 {
24904 tmp=
24905 trap 'exit_status=$?
24906 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24907 ' 0
24908 trap '{ (exit 1); exit 1; }' 1 2 13 15
24909 }
24910 # Create a (secure) tmp directory for tmp files.
24911
24912 {
24913 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24914 test -n "$tmp" && test -d "$tmp"
24915 } ||
24916 {
24917 tmp=./conf$$-$RANDOM
24918 (umask 077 && mkdir "$tmp")
24919 } ||
24920 {
24921 $as_echo "$as_me: cannot create a temporary directory in ." >&2
24922 { (exit 1); exit 1; }
24923 }
24924
24925 # Set up the scripts for CONFIG_FILES section.
24926 # No need to generate them if there are no CONFIG_FILES.
24927 # This happens for instance with `./config.status config.h'.
24928 if test -n "$CONFIG_FILES"; then
24929
24930
24931 ac_cr='
24932 '
24933 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24934 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24935 ac_cs_awk_cr='\\r'
24936 else
24937 ac_cs_awk_cr=$ac_cr
24938 fi
24939
24940 echo 'BEGIN {' >"$tmp/subs1.awk" &&
24941 _ACEOF
24942
24943
24944 {
24945 echo "cat >conf$$subs.awk <<_ACEOF" &&
24946 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24947 echo "_ACEOF"
24948 } >conf$$subs.sh ||
24949 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24950 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24951 { (exit 1); exit 1; }; }
24952 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
24953 ac_delim='%!_!# '
24954 for ac_last_try in false false false false false :; do
24955 . ./conf$$subs.sh ||
24956 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24957 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24958 { (exit 1); exit 1; }; }
24959
24960 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_ num; then
24961 break
24962 elif $ac_last_try; then
24963 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24964 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24965 { (exit 1); exit 1; }; }
24966 else
24967 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24968 fi
24969 done
24970 rm -f conf$$subs.sh
24971
24972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24973 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
24974 _ACEOF
24975 sed -n '
24976 h
24977 s/^/S["/; s/!.*/"]=/
24978 p
24979 g
24980 s/^[^!]*!//
24981 :repl
24982 t repl
24983 s/'"$ac_delim"'$//
24984 t delim
24985 :nl
24986 h
24987 s/\(.\{148\}\).*/\1/
24988 t more1
24989 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24990 p
24991 n
24992 b repl
24993 :more1
24994 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24995 p
24996 g
24997 s/.\{148\}//
24998 t nl
24999 :delim
25000 h
25001 s/\(.\{148\}\).*/\1/
25002 t more2
25003 s/["\\]/\\&/g; s/^/"/; s/$/"/
25004 p
25005 b
25006 :more2
25007 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25008 p
25009 g
25010 s/.\{148\}//
25011 t delim
25012 ' <conf$$subs.awk | sed '
25013 /^[^""]/{
25014 N
25015 s/\n//
25016 }
25017 ' >>$CONFIG_STATUS || ac_write_fail=1
25018 rm -f conf$$subs.awk
25019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25020 _ACAWK
25021 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25022 for (key in S) S_is_set[key] = 1
25023 FS = ""
25024
25025 }
25026 {
25027 line = $ 0
25028 nfields = split(line, field, "@")
25029 substed = 0
25030 len = length(field[1])
25031 for (i = 2; i < nfields; i++) {
25032 key = field[i]
25033 keylen = length(key)
25034 if (S_is_set[key]) {
25035 value = S[key]
25036 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25037 len += length(value) + length(field[++i])
25038 substed = 1
25039 } else
25040 len += 1 + keylen
25041 }
25042
25043 print line
25044 }
25045
25046 _ACAWK
25047 _ACEOF
25048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25049 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25050 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25051 else
25052 cat
25053 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
25054 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery " >&5
25055 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
25056 { (exit 1); exit 1; }; }
25057 _ACEOF
25058
25059 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25060 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25061 # trailing colons and then remove the whole line if VPATH becomes empty
25062 # (actually we leave an empty line to preserve line numbers).
25063 if test "x$srcdir" = x.; then
25064 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25065 s/:*\$(srcdir):*/:/
25066 s/:*\${srcdir}:*/:/
25067 s/:*@srcdir@:*/:/
25068 s/^\([^=]*=[ ]*\):*/\1/
25069 s/:*$//
25070 s/^[^=]*=[ ]*$//
25071 }'
25072 fi
25073
25074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25075 fi # test -n "$CONFIG_FILES"
25076
25077 # Set up the scripts for CONFIG_HEADERS section.
25078 # No need to generate them if there are no CONFIG_HEADERS.
25079 # This happens for instance with `./config.status Makefile'.
25080 if test -n "$CONFIG_HEADERS"; then
25081 cat >"$tmp/defines.awk" <<\_ACAWK ||
25082 BEGIN {
25083 _ACEOF
25084
25085 # Transform confdefs.h into an awk script `defines.awk', embedded as
25086 # here-document in config.status, that substitutes the proper values into
25087 # config.h.in to produce config.h.
25088
25089 # Create a delimiter string that does not exist in confdefs.h, to ease
25090 # handling of long lines.
25091 ac_delim='%!_!# '
25092 for ac_last_try in false false :; do
25093 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
25094 if test -z "$ac_t"; then
25095 break
25096 elif $ac_last_try; then
25097 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
25098 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
25099 { (exit 1); exit 1; }; }
25100 else
25101 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25102 fi
25103 done
25104
25105 # For the awk script, D is an array of macro values keyed by name,
25106 # likewise P contains macro parameters if any. Preserve backslash
25107 # newline sequences.
25108
25109 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25110 sed -n '
25111 s/.\{148\}/&'"$ac_delim"'/g
25112 t rset
25113 :rset
25114 s/^[ ]*#[ ]*define[ ][ ]*/ /
25115 t def
25116 d
25117 :def
25118 s/\\$//
25119 t bsnl
25120 s/["\\]/\\&/g
25121 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25122 D["\1"]=" \3"/p
25123 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25124 d
25125 :bsnl
25126 s/["\\]/\\&/g
25127 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25128 D["\1"]=" \3\\\\\\n"\\/p
25129 t cont
25130 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25131 t cont
25132 d
25133 :cont
25134 n
25135 s/.\{148\}/&'"$ac_delim"'/g
25136 t clear
25137 :clear
25138 s/\\$//
25139 t bsnlc
25140 s/["\\]/\\&/g; s/^/"/; s/$/"/p
25141 d
25142 :bsnlc
25143 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25144 b cont
25145 ' <confdefs.h | sed '
25146 s/'"$ac_delim"'/"\\\
25147 "/g' >>$CONFIG_STATUS || ac_write_fail=1
25148
25149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25150 for (key in D) D_is_set[key] = 1
25151 FS = ""
25152 }
25153 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25154 line = \$ 0
25155 split(line, arg, " ")
25156 if (arg[1] == "#") {
25157 defundef = arg[2]
25158 mac1 = arg[3]
25159 } else {
25160 defundef = substr(arg[1], 2)
25161 mac1 = arg[2]
25162 }
25163 split(mac1, mac2, "(") #)
25164 macro = mac2[1]
25165 if (D_is_set[macro]) {
25166 # Preserve the white space surrounding the "#".
25167 prefix = substr(line, 1, index(line, defundef) - 1)
25168 print prefix "define", macro P[macro] D[macro]
25169 next
25170 } else {
25171 # Replace #undef with comments. This is necessary, for example,
25172 # in the case of _POSIX_SOURCE, which is predefined and required
25173 # on some systems where configure will not decide to define it.
25174 if (defundef == "undef") {
25175 print "/*", line, "*/"
25176 next
25177 }
25178 }
25179 }
25180 { print }
25181 _ACAWK
25182 _ACEOF
25183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25184 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
25185 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
25186 { (exit 1); exit 1; }; }
25187 fi # test -n "$CONFIG_HEADERS"
25188
25189
25190 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG _COMMANDS"
25191 shift
25192 for ac_tag
25193 do
25194 case $ac_tag in
25195 :[FHLC]) ac_mode=$ac_tag; continue;;
25196 esac
25197 case $ac_mode$ac_tag in
25198 :[FHL]*:*);;
25199 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25200 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25201 { (exit 1); exit 1; }; };;
25202 :[FH]-) ac_tag=-:-;;
25203 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25204 esac
25205 ac_save_IFS=$IFS
25206 IFS=:
25207 set x $ac_tag
25208 IFS=$ac_save_IFS
25209 shift
25210 ac_file=$1
25211 shift
25212
25213 case $ac_mode in
25214 :L) ac_source=$1;;
25215 :[FH])
25216 ac_file_inputs=
25217 for ac_f
25218 do
25219 case $ac_f in
25220 -) ac_f="$tmp/stdin";;
25221 *) # Look for the file first in the build tree, then in the source tree
25222 # (if the path is not absolute). The absolute path cannot be DOS-style ,
25223 # because $ac_f cannot contain `:'.
25224 test -f "$ac_f" ||
25225 case $ac_f in
25226 [\\/$]*) false;;
25227 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25228 esac ||
25229 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" > &5
25230 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25231 { (exit 1); exit 1; }; };;
25232 esac
25233 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; es ac
25234 ac_file_inputs="$ac_file_inputs '$ac_f'"
25235 done
25236
25237 # Let's still pretend it is `configure' which instantiates (i.e., don't
25238 # use $as_me), people would be surprised to read:
25239 # /* config.h. Generated by config.status. */
25240 configure_input='Generated from '`
25241 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25242 `' by configure.'
25243 if test x"$ac_file" != x-; then
25244 configure_input="$ac_file. $configure_input"
25245 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
25246 $as_echo "$as_me: creating $ac_file" >&6;}
25247 fi
25248 # Neutralize special characters interpreted by sed in replacement strings.
25249 case $configure_input in #(
25250 *\&* | *\|* | *\\* )
25251 ac_sed_conf_input=`$as_echo "$configure_input" |
25252 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25253 *) ac_sed_conf_input=$configure_input;;
25254 esac
25255
25256 case $ac_tag in
25257 *:-:* | *:-) cat >"$tmp/stdin" \
25258 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25259 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25260 { (exit 1); exit 1; }; } ;;
25261 esac
25262 ;;
25263 esac
25264
25265 ac_dir=`$as_dirname -- "$ac_file" ||
25266 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25267 X"$ac_file" : 'X\(//\)[^/]' \| \
25268 X"$ac_file" : 'X\(//\)$' \| \
25269 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25270 $as_echo X"$ac_file" |
25271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25272 s//\1/
25273 q
25274 }
25275 /^X\(\/\/\)[^/].*/{
25276 s//\1/
25277 q
25278 }
25279 /^X\(\/\/\)$/{
25280 s//\1/
25281 q
25282 }
25283 /^X\(\/\).*/{
25284 s//\1/
25285 q
25286 }
25287 s/.*/./; q'`
25288 { as_dir="$ac_dir"
25289 case $as_dir in #(
25290 -*) as_dir=./$as_dir;;
25291 esac
25292 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25293 as_dirs=
25294 while :; do
25295 case $as_dir in #(
25296 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25297 *) as_qdir=$as_dir;;
25298 esac
25299 as_dirs="'$as_qdir' $as_dirs"
25300 as_dir=`$as_dirname -- "$as_dir" ||
25301 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25302 X"$as_dir" : 'X\(//\)[^/]' \| \
25303 X"$as_dir" : 'X\(//\)$' \| \
25304 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25305 $as_echo X"$as_dir" |
25306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25307 s//\1/
25308 q
25309 }
25310 /^X\(\/\/\)[^/].*/{
25311 s//\1/
25312 q
25313 }
25314 /^X\(\/\/\)$/{
25315 s//\1/
25316 q
25317 }
25318 /^X\(\/\).*/{
25319 s//\1/
25320 q
25321 }
25322 s/.*/./; q'`
25323 test -d "$as_dir" && break
25324 done
25325 test -z "$as_dirs" || eval "mkdir $as_dirs"
25326 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create d irectory $as_dir" >&5
25327 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
25328 { (exit 1); exit 1; }; }; }
25329 ac_builddir=.
25330
25331 case "$ac_dir" in
25332 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25333 *)
25334 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25335 # A ".." for each directory in $ac_dir_suffix.
25336 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25337 case $ac_top_builddir_sub in
25338 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25339 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25340 esac ;;
25341 esac
25342 ac_abs_top_builddir=$ac_pwd
25343 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25344 # for backward compatibility:
25345 ac_top_builddir=$ac_top_build_prefix
25346
25347 case $srcdir in
25348 .) # We are building in place.
25349 ac_srcdir=.
25350 ac_top_srcdir=$ac_top_builddir_sub
25351 ac_abs_top_srcdir=$ac_pwd ;;
25352 [\\/]* | ?:[\\/]* ) # Absolute name.
25353 ac_srcdir=$srcdir$ac_dir_suffix;
25354 ac_top_srcdir=$srcdir
25355 ac_abs_top_srcdir=$srcdir ;;
25356 *) # Relative name.
25357 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25358 ac_top_srcdir=$ac_top_build_prefix$srcdir
25359 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25360 esac
25361 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25362
25363
25364 case $ac_mode in
25365 :F)
25366 #
25367 # CONFIG_FILE
25368 #
25369
25370 case $INSTALL in
25371 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25372 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25373 esac
25374 ac_MKDIR_P=$MKDIR_P
25375 case $MKDIR_P in
25376 [\\/$]* | ?:[\\/]* ) ;;
25377 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25378 esac
25379 _ACEOF
25380
25381 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25382 # If the template does not know about datarootdir, expand it.
25383 # FIXME: This hack should be removed a few years after 2.60.
25384 ac_datarootdir_hack=; ac_datarootdir_seen=
25385
25386 ac_sed_dataroot='
25387 /datarootdir/ {
25388 p
25389 q
25390 }
25391 /@datadir@/p
25392 /@docdir@/p
25393 /@infodir@/p
25394 /@localedir@/p
25395 /@mandir@/p
25396 '
25397 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25398 *datarootdir*) ac_datarootdir_seen=yes;;
25399 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25400 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --dat arootdir setting" >&5
25401 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir set ting" >&2;}
25402 _ACEOF
25403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25404 ac_datarootdir_hack='
25405 s&@datadir@&$datadir&g
25406 s&@docdir@&$docdir&g
25407 s&@infodir@&$infodir&g
25408 s&@localedir@&$localedir&g
25409 s&@mandir@&$mandir&g
25410 s&\\\${datarootdir}&$datarootdir&g' ;;
25411 esac
25412 _ACEOF
25413
25414 # Neutralize VPATH when `$srcdir' = `.'.
25415 # Shell code in configure.ac might set extrasub.
25416 # FIXME: do we really want to maintain this feature?
25417 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25418 ac_sed_extra="$ac_vpsub
25419 $extrasub
25420 _ACEOF
25421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25422 :t
25423 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25424 s|@configure_input@|$ac_sed_conf_input|;t t
25425 s&@top_builddir@&$ac_top_builddir_sub&;t t
25426 s&@top_build_prefix@&$ac_top_build_prefix&;t t
25427 s&@srcdir@&$ac_srcdir&;t t
25428 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25429 s&@top_srcdir@&$ac_top_srcdir&;t t
25430 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25431 s&@builddir@&$ac_builddir&;t t
25432 s&@abs_builddir@&$ac_abs_builddir&;t t
25433 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25434 s&@INSTALL@&$ac_INSTALL&;t t
25435 s&@MKDIR_P@&$ac_MKDIR_P&;t t
25436 $ac_datarootdir_hack
25437 "
25438 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/ou t \
25439 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25440 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25441 { (exit 1); exit 1; }; }
25442
25443 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25444 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25445 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out" ; } &&
25446 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the vari able \`datarootdir'
25447 which seems to be undefined. Please make sure it is defined." >&5
25448 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datar ootdir'
25449 which seems to be undefined. Please make sure it is defined." >&2;}
25450
25451 rm -f "$tmp/stdin"
25452 case $ac_file in
25453 -) cat "$tmp/out" && rm -f "$tmp/out";;
25454 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
25455 esac \
25456 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25457 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25458 { (exit 1); exit 1; }; }
25459 ;;
25460 :H)
25461 #
25462 # CONFIG_HEADER
25463 #
25464 if test x"$ac_file" != x-; then
25465 {
25466 $as_echo "/* $configure_input */" \
25467 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
25468 } >"$tmp/config.h" \
25469 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25470 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25471 { (exit 1); exit 1; }; }
25472 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
25473 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25474 $as_echo "$as_me: $ac_file is unchanged" >&6;}
25475 else
25476 rm -f "$ac_file"
25477 mv "$tmp/config.h" "$ac_file" \
25478 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
25479 $as_echo "$as_me: error: could not create $ac_file" >&2;}
25480 { (exit 1); exit 1; }; }
25481 fi
25482 else
25483 $as_echo "/* $configure_input */" \
25484 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
25485 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
25486 $as_echo "$as_me: error: could not create -" >&2;}
25487 { (exit 1); exit 1; }; }
25488 fi
25489 # Compute "$ac_file"'s index in $config_headers.
25490 _am_arg="$ac_file"
25491 _am_stamp_count=1
25492 for _am_header in $config_headers :; do
25493 case $_am_header in
25494 $_am_arg | $_am_arg:* )
25495 break ;;
25496 * )
25497 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25498 esac
25499 done
25500 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
25501 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25502 X"$_am_arg" : 'X\(//\)[^/]' \| \
25503 X"$_am_arg" : 'X\(//\)$' \| \
25504 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
25505 $as_echo X"$_am_arg" |
25506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25507 s//\1/
25508 q
25509 }
25510 /^X\(\/\/\)[^/].*/{
25511 s//\1/
25512 q
25513 }
25514 /^X\(\/\/\)$/{
25515 s//\1/
25516 q
25517 }
25518 /^X\(\/\).*/{
25519 s//\1/
25520 q
25521 }
25522 s/.*/./; q'`/stamp-h$_am_stamp_count
25523 ;;
25524 :L)
25525 #
25526 # CONFIG_LINK
25527 #
25528
25529 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
25530 { $as_echo "$as_me:$LINENO: WARNING: not linking $ac_source to itself" >&5
25531 $as_echo "$as_me: WARNING: not linking $ac_source to itself" >&2;}
25532 else
25533 # Prefer the file from the source tree if names are identical.
25534 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
25535 ac_source=$srcdir/$ac_source
25536 fi
25537
25538 { $as_echo "$as_me:$LINENO: linking $ac_source to $ac_file" >&5
25539 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
25540
25541 if test ! -r "$ac_source"; then
25542 { { $as_echo "$as_me:$LINENO: error: $ac_source: file not found" >&5
25543 $as_echo "$as_me: error: $ac_source: file not found" >&2;}
25544 { (exit 1); exit 1; }; }
25545 fi
25546 rm -f "$ac_file"
25547
25548 # Try a relative symlink, then a hard link, then a copy.
25549 case $srcdir in
25550 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
25551 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
25552 esac
25553 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
25554 ln "$ac_source" "$ac_file" 2>/dev/null ||
25555 cp -p "$ac_source" "$ac_file" ||
25556 { { $as_echo "$as_me:$LINENO: error: cannot link or copy $ac_source to $ac _file" >&5
25557 $as_echo "$as_me: error: cannot link or copy $ac_source to $ac_file" >&2;}
25558 { (exit 1); exit 1; }; }
25559 fi
25560 ;;
25561 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
25562 $as_echo "$as_me: executing $ac_file commands" >&6;}
25563 ;;
25564 esac
25565
25566
25567 case $ac_file$ac_mode in
25568 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25569 # Strip MF so we end up with the name of the file.
25570 mf=`echo "$mf" | sed -e 's/:.*$//'`
25571 # Check whether this is an Automake generated Makefile or not.
25572 # We used to match only the files named `Makefile.in', but
25573 # some people rename them; so instead we look at the file content.
25574 # Grep'ing the first line is not enough: some people post-process
25575 # each Makefile.in and add a new line on top of each file to say so.
25576 # Grep'ing the whole file is not good either: AIX grep has a line
25577 # limit of 2048, but all sed's we know have understand at least 4000.
25578 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
25579 dirpart=`$as_dirname -- "$mf" ||
25580 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25581 X"$mf" : 'X\(//\)[^/]' \| \
25582 X"$mf" : 'X\(//\)$' \| \
25583 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
25584 $as_echo X"$mf" |
25585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25586 s//\1/
25587 q
25588 }
25589 /^X\(\/\/\)[^/].*/{
25590 s//\1/
25591 q
25592 }
25593 /^X\(\/\/\)$/{
25594 s//\1/
25595 q
25596 }
25597 /^X\(\/\).*/{
25598 s//\1/
25599 q
25600 }
25601 s/.*/./; q'`
25602 else
25603 continue
25604 fi
25605 # Extract the definition of DEPDIR, am__include, and am__quote
25606 # from the Makefile without running `make'.
25607 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25608 test -z "$DEPDIR" && continue
25609 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25610 test -z "am__include" && continue
25611 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25612 # When using ansi2knr, U may be empty or an underscore; expand it
25613 U=`sed -n 's/^U = //p' < "$mf"`
25614 # Find all dependency output files, they are included files with
25615 # $(DEPDIR) in their names. We invoke sed twice because it is the
25616 # simplest approach to changing $(DEPDIR) to its actual value in the
25617 # expansion.
25618 for file in `sed -n "
25619 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25620 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25621 # Make sure the directory exists.
25622 test -f "$dirpart/$file" && continue
25623 fdir=`$as_dirname -- "$file" ||
25624 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25625 X"$file" : 'X\(//\)[^/]' \| \
25626 X"$file" : 'X\(//\)$' \| \
25627 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
25628 $as_echo X"$file" |
25629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25630 s//\1/
25631 q
25632 }
25633 /^X\(\/\/\)[^/].*/{
25634 s//\1/
25635 q
25636 }
25637 /^X\(\/\/\)$/{
25638 s//\1/
25639 q
25640 }
25641 /^X\(\/\).*/{
25642 s//\1/
25643 q
25644 }
25645 s/.*/./; q'`
25646 { as_dir=$dirpart/$fdir
25647 case $as_dir in #(
25648 -*) as_dir=./$as_dir;;
25649 esac
25650 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25651 as_dirs=
25652 while :; do
25653 case $as_dir in #(
25654 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25655 *) as_qdir=$as_dir;;
25656 esac
25657 as_dirs="'$as_qdir' $as_dirs"
25658 as_dir=`$as_dirname -- "$as_dir" ||
25659 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25660 X"$as_dir" : 'X\(//\)[^/]' \| \
25661 X"$as_dir" : 'X\(//\)$' \| \
25662 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25663 $as_echo X"$as_dir" |
25664 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25665 s//\1/
25666 q
25667 }
25668 /^X\(\/\/\)[^/].*/{
25669 s//\1/
25670 q
25671 }
25672 /^X\(\/\/\)$/{
25673 s//\1/
25674 q
25675 }
25676 /^X\(\/\).*/{
25677 s//\1/
25678 q
25679 }
25680 s/.*/./; q'`
25681 test -d "$as_dir" && break
25682 done
25683 test -z "$as_dirs" || eval "mkdir $as_dirs"
25684 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create d irectory $as_dir" >&5
25685 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
25686 { (exit 1); exit 1; }; }; }
25687 # echo "creating $dirpart/$file"
25688 echo '# dummy' > "$dirpart/$file"
25689 done
25690 done
25691 ;;
25692 "po-directories":C)
25693 for ac_file in $CONFIG_FILES; do
25694 # Support "outfile[:infile[:infile...]]"
25695 case "$ac_file" in
25696 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25697 esac
25698 # PO directories have a Makefile.in generated from Makefile.in.in.
25699 case "$ac_file" in */Makefile.in)
25700 # Adjust a relative srcdir.
25701 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
25702 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
25703 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
25704 # In autoconf-2.13 it is called $ac_given_srcdir.
25705 # In autoconf-2.50 it is called $srcdir.
25706 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
25707 case "$ac_given_srcdir" in
25708 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
25709 /*) top_srcdir="$ac_given_srcdir" ;;
25710 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
25711 esac
25712 # Treat a directory as a PO directory if and only if it has a
25713 # POTFILES.in file. This allows packages to have multiple PO
25714 # directories under different names or in different locations.
25715 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
25716 rm -f "$ac_dir/POTFILES"
25717 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo " creating $ac_dir/POTFILES"
25718 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac _dir/POTFILES"
25719 POMAKEFILEDEPS="POTFILES.in"
25720 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
25721 # on $ac_dir but don't depend on user-specified configuration
25722 # parameters.
25723 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
25724 # The LINGUAS file contains the set of available languages.
25725 if test -n "$OBSOLETE_ALL_LINGUAS"; then
25726 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure .in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
25727 fi
25728 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/ LINGUAS"`
25729 # Hide the ALL_LINGUAS assigment from automake < 1.5.
25730 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
25731 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
25732 else
25733 # The set of available languages was given in configure.in.
25734 # Hide the ALL_LINGUAS assigment from automake < 1.5.
25735 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
25736 fi
25737 # Compute POFILES
25738 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
25739 # Compute UPDATEPOFILES
25740 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
25741 # Compute DUMMYPOFILES
25742 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
25743 # Compute GMOFILES
25744 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
25745 case "$ac_given_srcdir" in
25746 .) srcdirpre= ;;
25747 *) srcdirpre='$(srcdir)/' ;;
25748 esac
25749 POFILES=
25750 UPDATEPOFILES=
25751 DUMMYPOFILES=
25752 GMOFILES=
25753 for lang in $ALL_LINGUAS; do
25754 POFILES="$POFILES $srcdirpre$lang.po"
25755 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
25756 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
25757 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25758 done
25759 # CATALOGS depends on both $ac_dir and the user's LINGUAS
25760 # environment variable.
25761 INST_LINGUAS=
25762 if test -n "$ALL_LINGUAS"; then
25763 for presentlang in $ALL_LINGUAS; do
25764 useit=no
25765 if test "%UNSET%" != "$LINGUAS"; then
25766 desiredlanguages="$LINGUAS"
25767 else
25768 desiredlanguages="$ALL_LINGUAS"
25769 fi
25770 for desiredlang in $desiredlanguages; do
25771 # Use the presentlang catalog if desiredlang is
25772 # a. equal to presentlang, or
25773 # b. a variant of presentlang (because in this case,
25774 # presentlang can be used as a fallback for messages
25775 # which are not translated in the desiredlang catalog).
25776 case "$desiredlang" in
25777 "$presentlang"*) useit=yes;;
25778 esac
25779 done
25780 if test $useit = yes; then
25781 INST_LINGUAS="$INST_LINGUAS $presentlang"
25782 fi
25783 done
25784 fi
25785 CATALOGS=
25786 if test -n "$INST_LINGUAS"; then
25787 for lang in $INST_LINGUAS; do
25788 CATALOGS="$CATALOGS $lang.gmo"
25789 done
25790 fi
25791 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo " creating $ac_dir/Makefile"
25792 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_ srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDA TEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_di r/Makefile.in" > "$ac_dir/Makefile"
25793 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
25794 if test -f "$f"; then
25795 case "$f" in
25796 *.orig | *.bak | *~) ;;
25797 *) cat "$f" >> "$ac_dir/Makefile" ;;
25798 esac
25799 fi
25800 done
25801 fi
25802 ;;
25803 esac
25804 done ;;
25805 "etc/bench.pl":F) chmod +x etc/bench.pl ;;
25806 "tests/atconfig":C) cat >tests/atconfig <<ATEOF
25807 # Configurable variable values for building test suites.
25808 # Generated by $0.
25809 # Copyright (C) 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
25810
25811 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
25812 at_testdir='tests'
25813 abs_builddir='$ac_abs_builddir'
25814 at_srcdir='$ac_srcdir'
25815 abs_srcdir='$ac_abs_srcdir'
25816 at_top_srcdir='$ac_top_srcdir'
25817 abs_top_srcdir='$ac_abs_top_srcdir'
25818 at_top_build_prefix='$ac_top_build_prefix'
25819 abs_top_builddir='$ac_abs_top_builddir'
25820
25821 # Backward compatibility with Autotest <= 2.59b:
25822 at_top_builddir=\$at_top_build_prefix
25823
25824 AUTOTEST_PATH='tests'
25825
25826 SHELL=\${CONFIG_SHELL-'$SHELL'}
25827 ATEOF
25828 ;;
25829 "tests/bison":F) chmod +x tests/bison ;;
25830
25831 esac
25832 done # for ac_tag
25833
25834
25835 { (exit 0); exit 0; }
25836 _ACEOF
25837 chmod +x $CONFIG_STATUS
25838 ac_clean_files=$ac_clean_files_save
25839
25840 test $ac_write_fail = 0 ||
25841 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >& 5
25842 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
25843 { (exit 1); exit 1; }; }
25844
25845
25846 # configure is writing to config.log, and then calls config.status.
25847 # config.status does its own redirection, appending to config.log.
25848 # Unfortunately, on DOS this fails, as config.log is still kept open
25849 # by configure, so config.status won't be able to write to it; its
25850 # output is simply discarded. So we exec the FD to /dev/null,
25851 # effectively closing config.log, so it can be properly (re)opened and
25852 # appended to by config.status. When coming back to configure, we
25853 # need to make the FD available again.
25854 if test "$no_create" != yes; then
25855 ac_cs_success=:
25856 ac_config_status_args=
25857 test "$silent" = yes &&
25858 ac_config_status_args="$ac_config_status_args --quiet"
25859 exec 5>/dev/null
25860 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25861 exec 5>>config.log
25862 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25863 # would make configure fail if this is the last instruction.
25864 $ac_cs_success || { (exit 1); exit 1; }
25865 fi
25866 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25867 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_op ts" >&5
25868 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
25869 fi
25870
OLDNEW
« no previous file with comments | « bison/src/bison/2.4.1/bison-2.4.1-src/build-aux/ylwrap ('k') | bison/src/bison/2.4.1/bison-2.4.1-src/configure.ac » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698