]> git.deb.at Git - pkg/abook.git/blob - configure
b9043667c5ace8bfb4e0ac35dd53b8ba8fa9edf8
[pkg/abook.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20   setopt NO_GLOB_SUBST
21 else
22   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23 fi
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27
28 # PATH needs CR
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38   echo "#! /bin/sh" >conf$$.sh
39   echo  "exit 0"   >>conf$$.sh
40   chmod +x conf$$.sh
41   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42     PATH_SEPARATOR=';'
43   else
44     PATH_SEPARATOR=:
45   fi
46   rm -f conf$$.sh
47 fi
48
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51   as_unset=unset
52 else
53   as_unset=false
54 fi
55
56
57 # IFS
58 # We need space, tab and new line, in precisely that order.  Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
62 as_nl='
63 '
64 IFS=" ""        $as_nl"
65
66 # Find who we are.  Look in the path if we contain no directory separator.
67 case $0 in
68   *[\\/]* ) as_myself=$0 ;;
69   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70 for as_dir in $PATH
71 do
72   IFS=$as_save_IFS
73   test -z "$as_dir" && as_dir=.
74   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75 done
76 IFS=$as_save_IFS
77
78      ;;
79 esac
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
83   as_myself=$0
84 fi
85 if test ! -f "$as_myself"; then
86   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87   { (exit 1); exit 1; }
88 fi
89
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93 done
94 PS1='$ '
95 PS2='> '
96 PS4='+ '
97
98 # NLS nuisances.
99 for as_var in \
100   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102   LC_TELEPHONE LC_TIME
103 do
104   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105     eval $as_var=C; export $as_var
106   else
107     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108   fi
109 done
110
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113    test "X`expr 00001 : '.*\(...\)'`" = X001; then
114   as_expr=expr
115 else
116   as_expr=false
117 fi
118
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120   as_basename=basename
121 else
122   as_basename=false
123 fi
124
125
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129          X"$0" : 'X\(//\)$' \| \
130          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131 echo X/"$0" |
132     sed '/^.*\/\([^/][^/]*\)\/*$/{
133             s//\1/
134             q
135           }
136           /^X\/\(\/\/\)$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\).*/{
141             s//\1/
142             q
143           }
144           s/.*/./; q'`
145
146 # CDPATH.
147 $as_unset CDPATH
148
149
150 if test "x$CONFIG_SHELL" = x; then
151   if (eval ":") 2>/dev/null; then
152   as_have_required=yes
153 else
154   as_have_required=no
155 fi
156
157   if test $as_have_required = yes &&     (eval ":
158 (as_func_return () {
159   (exit \$1)
160 }
161 as_func_success () {
162   as_func_return 0
163 }
164 as_func_failure () {
165   as_func_return 1
166 }
167 as_func_ret_success () {
168   return 0
169 }
170 as_func_ret_failure () {
171   return 1
172 }
173
174 exitcode=0
175 if as_func_success; then
176   :
177 else
178   exitcode=1
179   echo as_func_success failed.
180 fi
181
182 if as_func_failure; then
183   exitcode=1
184   echo as_func_failure succeeded.
185 fi
186
187 if as_func_ret_success; then
188   :
189 else
190   exitcode=1
191   echo as_func_ret_success failed.
192 fi
193
194 if as_func_ret_failure; then
195   exitcode=1
196   echo as_func_ret_failure succeeded.
197 fi
198
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
200   :
201 else
202   exitcode=1
203   echo positional parameters were not saved.
204 fi
205
206 test \$exitcode = 0) || { (exit 1); exit 1; }
207
208 (
209   as_lineno_1=\$LINENO
210   as_lineno_2=\$LINENO
211   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
214   :
215 else
216   as_candidate_shells=
217     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   case $as_dir in
223          /*)
224            for as_base in sh bash ksh sh5; do
225              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226            done;;
227        esac
228 done
229 IFS=$as_save_IFS
230
231
232       for as_shell in $as_candidate_shells $SHELL; do
233          # Try only shells that exist, to save several forks.
234          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235                 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238   emulate sh
239   NULLCMD=:
240   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241   # is contrary to our usage.  Disable this feature.
242   alias -g '${1+"$@"}'='"$@"'
243   setopt NO_GLOB_SUBST
244 else
245   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
246 fi
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
249
250 :
251 _ASEOF
252 }; then
253   CONFIG_SHELL=$as_shell
254                as_have_required=yes
255                if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258   emulate sh
259   NULLCMD=:
260   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261   # is contrary to our usage.  Disable this feature.
262   alias -g '${1+"$@"}'='"$@"'
263   setopt NO_GLOB_SUBST
264 else
265   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
266 fi
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
269
270 :
271 (as_func_return () {
272   (exit $1)
273 }
274 as_func_success () {
275   as_func_return 0
276 }
277 as_func_failure () {
278   as_func_return 1
279 }
280 as_func_ret_success () {
281   return 0
282 }
283 as_func_ret_failure () {
284   return 1
285 }
286
287 exitcode=0
288 if as_func_success; then
289   :
290 else
291   exitcode=1
292   echo as_func_success failed.
293 fi
294
295 if as_func_failure; then
296   exitcode=1
297   echo as_func_failure succeeded.
298 fi
299
300 if as_func_ret_success; then
301   :
302 else
303   exitcode=1
304   echo as_func_ret_success failed.
305 fi
306
307 if as_func_ret_failure; then
308   exitcode=1
309   echo as_func_ret_failure succeeded.
310 fi
311
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
313   :
314 else
315   exitcode=1
316   echo positional parameters were not saved.
317 fi
318
319 test $exitcode = 0) || { (exit 1); exit 1; }
320
321 (
322   as_lineno_1=$LINENO
323   as_lineno_2=$LINENO
324   test "x$as_lineno_1" != "x$as_lineno_2" &&
325   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
327 _ASEOF
328 }; then
329   break
330 fi
331
332 fi
333
334       done
335
336       if test "x$CONFIG_SHELL" != x; then
337   for as_var in BASH_ENV ENV
338         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339         done
340         export CONFIG_SHELL
341         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342 fi
343
344
345     if test $as_have_required = no; then
346   echo This script requires a shell more modern than all the
347       echo shells that I found on your system.  Please install a
348       echo modern shell, or manually run the script under such a
349       echo shell if you do have one.
350       { (exit 1); exit 1; }
351 fi
352
353
354 fi
355
356 fi
357
358
359
360 (eval "as_func_return () {
361   (exit \$1)
362 }
363 as_func_success () {
364   as_func_return 0
365 }
366 as_func_failure () {
367   as_func_return 1
368 }
369 as_func_ret_success () {
370   return 0
371 }
372 as_func_ret_failure () {
373   return 1
374 }
375
376 exitcode=0
377 if as_func_success; then
378   :
379 else
380   exitcode=1
381   echo as_func_success failed.
382 fi
383
384 if as_func_failure; then
385   exitcode=1
386   echo as_func_failure succeeded.
387 fi
388
389 if as_func_ret_success; then
390   :
391 else
392   exitcode=1
393   echo as_func_ret_success failed.
394 fi
395
396 if as_func_ret_failure; then
397   exitcode=1
398   echo as_func_ret_failure succeeded.
399 fi
400
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
402   :
403 else
404   exitcode=1
405   echo positional parameters were not saved.
406 fi
407
408 test \$exitcode = 0") || {
409   echo No shell found that supports shell functions.
410   echo Please tell autoconf@gnu.org about your system,
411   echo including any error possibly output before this
412   echo message
413 }
414
415
416
417   as_lineno_1=$LINENO
418   as_lineno_2=$LINENO
419   test "x$as_lineno_1" != "x$as_lineno_2" &&
420   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
421
422   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423   # uniformly replaced by the line number.  The first 'sed' inserts a
424   # line-number line after each line using $LINENO; the second 'sed'
425   # does the real work.  The second script uses 'N' to pair each
426   # line-number line with the line containing $LINENO, and appends
427   # trailing '-' during substitution so that $LINENO is not a special
428   # case at line end.
429   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430   # scripts with optimization help from Paolo Bonzini.  Blame Lee
431   # E. McMahon (1931-1989) for sed's syntax.  :-)
432   sed -n '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
442       :loop
443       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444       t loop
445       s/-\n.*//
446     ' >$as_me.lineno &&
447   chmod +x "$as_me.lineno" ||
448     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449    { (exit 1); exit 1; }; }
450
451   # Don't try to exec as it changes $[0], causing all sort of problems
452   # (the dirname of $[0] is not the place where we might find the
453   # original and so on.  Autoconf is especially sensitive to this).
454   . "./$as_me.lineno"
455   # Exit status is that of the last command.
456   exit
457 }
458
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461   as_dirname=dirname
462 else
463   as_dirname=false
464 fi
465
466 ECHO_C= ECHO_N= ECHO_T=
467 case `echo -n x` in
468 -n*)
469   case `echo 'x\c'` in
470   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
471   *)   ECHO_C='\c';;
472   esac;;
473 *)
474   ECHO_N='-n';;
475 esac
476
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478    test "X`expr 00001 : '.*\(...\)'`" = X001; then
479   as_expr=expr
480 else
481   as_expr=false
482 fi
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir
490 fi
491 echo >conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493   as_ln_s='ln -s'
494   # ... but there are two gotchas:
495   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497   # In both cases, we have to default to `cp -p'.
498   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499     as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501   as_ln_s=ln
502 else
503   as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509   as_mkdir_p=:
510 else
511   test -d ./-p && rmdir ./-p
512   as_mkdir_p=false
513 fi
514
515 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
518 #! /bin/sh
519 exit 0
520 _ASEOF
521 chmod +x conf$$.file
522 if test -x conf$$.file >/dev/null 2>&1; then
523   as_executable_p="test -x"
524 else
525   as_executable_p=:
526 fi
527 rm -f conf$$.file
528
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555 SHELL=${CONFIG_SHELL-/bin/sh}
556
557 # Identity of this package.
558 PACKAGE_NAME=
559 PACKAGE_TARNAME=
560 PACKAGE_VERSION=
561 PACKAGE_STRING=
562 PACKAGE_BUGREPORT=
563
564 ac_unique_file="abook.c"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #if HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #if HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #if STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # if HAVE_STDLIB_H
579 #  include <stdlib.h>
580 # endif
581 #endif
582 #if HAVE_STRING_H
583 # if !STDC_HEADERS && HAVE_MEMORY_H
584 #  include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #if HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #if HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #if HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #if HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
600
601 ac_subst_vars='SHELL
602 PATH_SEPARATOR
603 PACKAGE_NAME
604 PACKAGE_TARNAME
605 PACKAGE_VERSION
606 PACKAGE_STRING
607 PACKAGE_BUGREPORT
608 exec_prefix
609 prefix
610 program_transform_name
611 bindir
612 sbindir
613 libexecdir
614 datarootdir
615 datadir
616 sysconfdir
617 sharedstatedir
618 localstatedir
619 includedir
620 oldincludedir
621 docdir
622 infodir
623 htmldir
624 dvidir
625 pdfdir
626 psdir
627 libdir
628 localedir
629 mandir
630 DEFS
631 ECHO_C
632 ECHO_N
633 ECHO_T
634 LIBS
635 build_alias
636 host_alias
637 target_alias
638 INSTALL_PROGRAM
639 INSTALL_SCRIPT
640 INSTALL_DATA
641 CYGPATH_W
642 PACKAGE
643 VERSION
644 ACLOCAL
645 AUTOCONF
646 AUTOMAKE
647 AUTOHEADER
648 MAKEINFO
649 install_sh
650 STRIP
651 INSTALL_STRIP_PROGRAM
652 mkdir_p
653 AWK
654 SET_MAKE
655 am__leading_dot
656 AMTAR
657 am__tar
658 am__untar
659 MKINSTALLDIRS
660 USE_NLS
661 MSGFMT
662 GMSGFMT
663 XGETTEXT
664 MSGMERGE
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 DEPDIR
673 am__include
674 am__quote
675 AMDEP_TRUE
676 AMDEP_FALSE
677 AMDEPBACKSLASH
678 CCDEPMODE
679 am__fastdepCC_TRUE
680 am__fastdepCC_FALSE
681 build
682 build_cpu
683 build_vendor
684 build_os
685 host
686 host_cpu
687 host_vendor
688 host_os
689 CPP
690 GREP
691 EGREP
692 GLIBC2
693 RANLIB
694 ALLOCA
695 GLIBC21
696 INTL_MACOSX_LIBS
697 HAVE_POSIX_PRINTF
698 HAVE_ASPRINTF
699 HAVE_SNPRINTF
700 HAVE_WPRINTF
701 LIBICONV
702 LTLIBICONV
703 INTLBISON
704 BUILD_INCLUDED_LIBINTL
705 USE_INCLUDED_LIBINTL
706 CATOBJEXT
707 DATADIRNAME
708 INSTOBJEXT
709 GENCAT
710 INTLOBJS
711 INTL_LIBTOOL_SUFFIX_PREFIX
712 INTLLIBS
713 LIBINTL
714 LTLIBINTL
715 POSUB
716 USE_INCLUDED_INTL_H_TRUE
717 USE_INCLUDED_INTL_H_FALSE
718 U
719 ANSI2KNR
720 LIBOBJS
721 LTLIBOBJS'
722 ac_subst_files=''
723       ac_precious_vars='build_alias
724 host_alias
725 target_alias
726 CC
727 CFLAGS
728 LDFLAGS
729 CPPFLAGS
730 CPP'
731
732
733 # Initialize some variables set by options.
734 ac_init_help=
735 ac_init_version=false
736 # The variables have the same names as the options, with
737 # dashes changed to underlines.
738 cache_file=/dev/null
739 exec_prefix=NONE
740 no_create=
741 no_recursion=
742 prefix=NONE
743 program_prefix=NONE
744 program_suffix=NONE
745 program_transform_name=s,x,x,
746 silent=
747 site=
748 srcdir=
749 verbose=
750 x_includes=NONE
751 x_libraries=NONE
752
753 # Installation directory options.
754 # These are left unexpanded so users can "make install exec_prefix=/foo"
755 # and all the variables that are supposed to be based on exec_prefix
756 # by default will actually change.
757 # Use braces instead of parens because sh, perl, etc. also accept them.
758 # (The list follows the same order as the GNU Coding Standards.)
759 bindir='${exec_prefix}/bin'
760 sbindir='${exec_prefix}/sbin'
761 libexecdir='${exec_prefix}/libexec'
762 datarootdir='${prefix}/share'
763 datadir='${datarootdir}'
764 sysconfdir='${prefix}/etc'
765 sharedstatedir='${prefix}/com'
766 localstatedir='${prefix}/var'
767 includedir='${prefix}/include'
768 oldincludedir='/usr/include'
769 docdir='${datarootdir}/doc/${PACKAGE}'
770 infodir='${datarootdir}/info'
771 htmldir='${docdir}'
772 dvidir='${docdir}'
773 pdfdir='${docdir}'
774 psdir='${docdir}'
775 libdir='${exec_prefix}/lib'
776 localedir='${datarootdir}/locale'
777 mandir='${datarootdir}/man'
778
779 ac_prev=
780 ac_dashdash=
781 for ac_option
782 do
783   # If the previous option needs an argument, assign it.
784   if test -n "$ac_prev"; then
785     eval $ac_prev=\$ac_option
786     ac_prev=
787     continue
788   fi
789
790   case $ac_option in
791   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
792   *)    ac_optarg=yes ;;
793   esac
794
795   # Accept the important Cygnus configure options, so we can diagnose typos.
796
797   case $ac_dashdash$ac_option in
798   --)
799     ac_dashdash=yes ;;
800
801   -bindir | --bindir | --bindi | --bind | --bin | --bi)
802     ac_prev=bindir ;;
803   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
804     bindir=$ac_optarg ;;
805
806   -build | --build | --buil | --bui | --bu)
807     ac_prev=build_alias ;;
808   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
809     build_alias=$ac_optarg ;;
810
811   -cache-file | --cache-file | --cache-fil | --cache-fi \
812   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
813     ac_prev=cache_file ;;
814   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
815   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
816     cache_file=$ac_optarg ;;
817
818   --config-cache | -C)
819     cache_file=config.cache ;;
820
821   -datadir | --datadir | --datadi | --datad)
822     ac_prev=datadir ;;
823   -datadir=* | --datadir=* | --datadi=* | --datad=*)
824     datadir=$ac_optarg ;;
825
826   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
827   | --dataroo | --dataro | --datar)
828     ac_prev=datarootdir ;;
829   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
830   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
831     datarootdir=$ac_optarg ;;
832
833   -disable-* | --disable-*)
834     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
835     # Reject names that are not valid shell variable names.
836     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
837       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
838    { (exit 1); exit 1; }; }
839     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
840     eval enable_$ac_feature=no ;;
841
842   -docdir | --docdir | --docdi | --doc | --do)
843     ac_prev=docdir ;;
844   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
845     docdir=$ac_optarg ;;
846
847   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
848     ac_prev=dvidir ;;
849   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
850     dvidir=$ac_optarg ;;
851
852   -enable-* | --enable-*)
853     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
854     # Reject names that are not valid shell variable names.
855     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
856       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
857    { (exit 1); exit 1; }; }
858     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
859     eval enable_$ac_feature=\$ac_optarg ;;
860
861   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
862   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
863   | --exec | --exe | --ex)
864     ac_prev=exec_prefix ;;
865   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
866   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
867   | --exec=* | --exe=* | --ex=*)
868     exec_prefix=$ac_optarg ;;
869
870   -gas | --gas | --ga | --g)
871     # Obsolete; use --with-gas.
872     with_gas=yes ;;
873
874   -help | --help | --hel | --he | -h)
875     ac_init_help=long ;;
876   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
877     ac_init_help=recursive ;;
878   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
879     ac_init_help=short ;;
880
881   -host | --host | --hos | --ho)
882     ac_prev=host_alias ;;
883   -host=* | --host=* | --hos=* | --ho=*)
884     host_alias=$ac_optarg ;;
885
886   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
887     ac_prev=htmldir ;;
888   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
889   | --ht=*)
890     htmldir=$ac_optarg ;;
891
892   -includedir | --includedir | --includedi | --included | --include \
893   | --includ | --inclu | --incl | --inc)
894     ac_prev=includedir ;;
895   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
896   | --includ=* | --inclu=* | --incl=* | --inc=*)
897     includedir=$ac_optarg ;;
898
899   -infodir | --infodir | --infodi | --infod | --info | --inf)
900     ac_prev=infodir ;;
901   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
902     infodir=$ac_optarg ;;
903
904   -libdir | --libdir | --libdi | --libd)
905     ac_prev=libdir ;;
906   -libdir=* | --libdir=* | --libdi=* | --libd=*)
907     libdir=$ac_optarg ;;
908
909   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
910   | --libexe | --libex | --libe)
911     ac_prev=libexecdir ;;
912   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
913   | --libexe=* | --libex=* | --libe=*)
914     libexecdir=$ac_optarg ;;
915
916   -localedir | --localedir | --localedi | --localed | --locale)
917     ac_prev=localedir ;;
918   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
919     localedir=$ac_optarg ;;
920
921   -localstatedir | --localstatedir | --localstatedi | --localstated \
922   | --localstate | --localstat | --localsta | --localst | --locals)
923     ac_prev=localstatedir ;;
924   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
925   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
926     localstatedir=$ac_optarg ;;
927
928   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
929     ac_prev=mandir ;;
930   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
931     mandir=$ac_optarg ;;
932
933   -nfp | --nfp | --nf)
934     # Obsolete; use --without-fp.
935     with_fp=no ;;
936
937   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
938   | --no-cr | --no-c | -n)
939     no_create=yes ;;
940
941   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
942   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
943     no_recursion=yes ;;
944
945   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
946   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
947   | --oldin | --oldi | --old | --ol | --o)
948     ac_prev=oldincludedir ;;
949   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
950   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
951   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
952     oldincludedir=$ac_optarg ;;
953
954   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
955     ac_prev=prefix ;;
956   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
957     prefix=$ac_optarg ;;
958
959   -program-prefix | --program-prefix | --program-prefi | --program-pref \
960   | --program-pre | --program-pr | --program-p)
961     ac_prev=program_prefix ;;
962   -program-prefix=* | --program-prefix=* | --program-prefi=* \
963   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
964     program_prefix=$ac_optarg ;;
965
966   -program-suffix | --program-suffix | --program-suffi | --program-suff \
967   | --program-suf | --program-su | --program-s)
968     ac_prev=program_suffix ;;
969   -program-suffix=* | --program-suffix=* | --program-suffi=* \
970   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
971     program_suffix=$ac_optarg ;;
972
973   -program-transform-name | --program-transform-name \
974   | --program-transform-nam | --program-transform-na \
975   | --program-transform-n | --program-transform- \
976   | --program-transform | --program-transfor \
977   | --program-transfo | --program-transf \
978   | --program-trans | --program-tran \
979   | --progr-tra | --program-tr | --program-t)
980     ac_prev=program_transform_name ;;
981   -program-transform-name=* | --program-transform-name=* \
982   | --program-transform-nam=* | --program-transform-na=* \
983   | --program-transform-n=* | --program-transform-=* \
984   | --program-transform=* | --program-transfor=* \
985   | --program-transfo=* | --program-transf=* \
986   | --program-trans=* | --program-tran=* \
987   | --progr-tra=* | --program-tr=* | --program-t=*)
988     program_transform_name=$ac_optarg ;;
989
990   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
991     ac_prev=pdfdir ;;
992   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
993     pdfdir=$ac_optarg ;;
994
995   -psdir | --psdir | --psdi | --psd | --ps)
996     ac_prev=psdir ;;
997   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
998     psdir=$ac_optarg ;;
999
1000   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1001   | -silent | --silent | --silen | --sile | --sil)
1002     silent=yes ;;
1003
1004   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1005     ac_prev=sbindir ;;
1006   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1007   | --sbi=* | --sb=*)
1008     sbindir=$ac_optarg ;;
1009
1010   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1011   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1012   | --sharedst | --shareds | --shared | --share | --shar \
1013   | --sha | --sh)
1014     ac_prev=sharedstatedir ;;
1015   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1016   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1017   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1018   | --sha=* | --sh=*)
1019     sharedstatedir=$ac_optarg ;;
1020
1021   -site | --site | --sit)
1022     ac_prev=site ;;
1023   -site=* | --site=* | --sit=*)
1024     site=$ac_optarg ;;
1025
1026   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1027     ac_prev=srcdir ;;
1028   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1029     srcdir=$ac_optarg ;;
1030
1031   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1032   | --syscon | --sysco | --sysc | --sys | --sy)
1033     ac_prev=sysconfdir ;;
1034   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1035   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1036     sysconfdir=$ac_optarg ;;
1037
1038   -target | --target | --targe | --targ | --tar | --ta | --t)
1039     ac_prev=target_alias ;;
1040   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1041     target_alias=$ac_optarg ;;
1042
1043   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1044     verbose=yes ;;
1045
1046   -version | --version | --versio | --versi | --vers | -V)
1047     ac_init_version=: ;;
1048
1049   -with-* | --with-*)
1050     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1051     # Reject names that are not valid shell variable names.
1052     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1053       { echo "$as_me: error: invalid package name: $ac_package" >&2
1054    { (exit 1); exit 1; }; }
1055     ac_package=`echo $ac_package| sed 's/-/_/g'`
1056     eval with_$ac_package=\$ac_optarg ;;
1057
1058   -without-* | --without-*)
1059     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1060     # Reject names that are not valid shell variable names.
1061     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1062       { echo "$as_me: error: invalid package name: $ac_package" >&2
1063    { (exit 1); exit 1; }; }
1064     ac_package=`echo $ac_package | sed 's/-/_/g'`
1065     eval with_$ac_package=no ;;
1066
1067   --x)
1068     # Obsolete; use --with-x.
1069     with_x=yes ;;
1070
1071   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1072   | --x-incl | --x-inc | --x-in | --x-i)
1073     ac_prev=x_includes ;;
1074   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1075   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1076     x_includes=$ac_optarg ;;
1077
1078   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1079   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1080     ac_prev=x_libraries ;;
1081   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1082   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1083     x_libraries=$ac_optarg ;;
1084
1085   -*) { echo "$as_me: error: unrecognized option: $ac_option
1086 Try \`$0 --help' for more information." >&2
1087    { (exit 1); exit 1; }; }
1088     ;;
1089
1090   *=*)
1091     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1092     # Reject names that are not valid shell variable names.
1093     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1094       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1095    { (exit 1); exit 1; }; }
1096     eval $ac_envvar=\$ac_optarg
1097     export $ac_envvar ;;
1098
1099   *)
1100     # FIXME: should be removed in autoconf 3.0.
1101     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1102     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1103       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1104     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1105     ;;
1106
1107   esac
1108 done
1109
1110 if test -n "$ac_prev"; then
1111   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1112   { echo "$as_me: error: missing argument to $ac_option" >&2
1113    { (exit 1); exit 1; }; }
1114 fi
1115
1116 # Be sure to have absolute directory names.
1117 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1118                 datadir sysconfdir sharedstatedir localstatedir includedir \
1119                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1120                 libdir localedir mandir
1121 do
1122   eval ac_val=\$$ac_var
1123   case $ac_val in
1124     [\\/$]* | ?:[\\/]* )  continue;;
1125     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1126   esac
1127   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1128    { (exit 1); exit 1; }; }
1129 done
1130
1131 # There might be people who depend on the old broken behavior: `$host'
1132 # used to hold the argument of --host etc.
1133 # FIXME: To remove some day.
1134 build=$build_alias
1135 host=$host_alias
1136 target=$target_alias
1137
1138 # FIXME: To remove some day.
1139 if test "x$host_alias" != x; then
1140   if test "x$build_alias" = x; then
1141     cross_compiling=maybe
1142     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1143     If a cross compiler is detected then cross compile mode will be used." >&2
1144   elif test "x$build_alias" != "x$host_alias"; then
1145     cross_compiling=yes
1146   fi
1147 fi
1148
1149 ac_tool_prefix=
1150 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1151
1152 test "$silent" = yes && exec 6>/dev/null
1153
1154
1155 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1156 ac_ls_di=`ls -di .` &&
1157 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1158   { echo "$as_me: error: Working directory cannot be determined" >&2
1159    { (exit 1); exit 1; }; }
1160 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1161   { echo "$as_me: error: pwd does not report name of working directory" >&2
1162    { (exit 1); exit 1; }; }
1163
1164
1165 # Find the source files, if location was not specified.
1166 if test -z "$srcdir"; then
1167   ac_srcdir_defaulted=yes
1168   # Try the directory containing this script, then the parent directory.
1169   ac_confdir=`$as_dirname -- "$0" ||
1170 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1171          X"$0" : 'X\(//\)[^/]' \| \
1172          X"$0" : 'X\(//\)$' \| \
1173          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1174 echo X"$0" |
1175     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1176             s//\1/
1177             q
1178           }
1179           /^X\(\/\/\)[^/].*/{
1180             s//\1/
1181             q
1182           }
1183           /^X\(\/\/\)$/{
1184             s//\1/
1185             q
1186           }
1187           /^X\(\/\).*/{
1188             s//\1/
1189             q
1190           }
1191           s/.*/./; q'`
1192   srcdir=$ac_confdir
1193   if test ! -r "$srcdir/$ac_unique_file"; then
1194     srcdir=..
1195   fi
1196 else
1197   ac_srcdir_defaulted=no
1198 fi
1199 if test ! -r "$srcdir/$ac_unique_file"; then
1200   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1201   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1202    { (exit 1); exit 1; }; }
1203 fi
1204 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1205 ac_abs_confdir=`(
1206         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1207    { (exit 1); exit 1; }; }
1208         pwd)`
1209 # When building in place, set srcdir=.
1210 if test "$ac_abs_confdir" = "$ac_pwd"; then
1211   srcdir=.
1212 fi
1213 # Remove unnecessary trailing slashes from srcdir.
1214 # Double slashes in file names in object file debugging info
1215 # mess up M-x gdb in Emacs.
1216 case $srcdir in
1217 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1218 esac
1219 for ac_var in $ac_precious_vars; do
1220   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1221   eval ac_env_${ac_var}_value=\$${ac_var}
1222   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1223   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1224 done
1225
1226 #
1227 # Report the --help message.
1228 #
1229 if test "$ac_init_help" = "long"; then
1230   # Omit some internal or obsolete options to make the list less imposing.
1231   # This message is too long to be a string in the A/UX 3.1 sh.
1232   cat <<_ACEOF
1233 \`configure' configures this package to adapt to many kinds of systems.
1234
1235 Usage: $0 [OPTION]... [VAR=VALUE]...
1236
1237 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1238 VAR=VALUE.  See below for descriptions of some of the useful variables.
1239
1240 Defaults for the options are specified in brackets.
1241
1242 Configuration:
1243   -h, --help              display this help and exit
1244       --help=short        display options specific to this package
1245       --help=recursive    display the short help of all the included packages
1246   -V, --version           display version information and exit
1247   -q, --quiet, --silent   do not print \`checking...' messages
1248       --cache-file=FILE   cache test results in FILE [disabled]
1249   -C, --config-cache      alias for \`--cache-file=config.cache'
1250   -n, --no-create         do not create output files
1251       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1252
1253 Installation directories:
1254   --prefix=PREFIX         install architecture-independent files in PREFIX
1255                           [$ac_default_prefix]
1256   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1257                           [PREFIX]
1258
1259 By default, \`make install' will install all the files in
1260 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1261 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1262 for instance \`--prefix=\$HOME'.
1263
1264 For better control, use the options below.
1265
1266 Fine tuning of the installation directories:
1267   --bindir=DIR           user executables [EPREFIX/bin]
1268   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1269   --libexecdir=DIR       program executables [EPREFIX/libexec]
1270   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1271   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1272   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1273   --libdir=DIR           object code libraries [EPREFIX/lib]
1274   --includedir=DIR       C header files [PREFIX/include]
1275   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1276   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1277   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1278   --infodir=DIR          info documentation [DATAROOTDIR/info]
1279   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1280   --mandir=DIR           man documentation [DATAROOTDIR/man]
1281   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1282   --htmldir=DIR          html documentation [DOCDIR]
1283   --dvidir=DIR           dvi documentation [DOCDIR]
1284   --pdfdir=DIR           pdf documentation [DOCDIR]
1285   --psdir=DIR            ps documentation [DOCDIR]
1286 _ACEOF
1287
1288   cat <<\_ACEOF
1289
1290 Program names:
1291   --program-prefix=PREFIX            prepend PREFIX to installed program names
1292   --program-suffix=SUFFIX            append SUFFIX to installed program names
1293   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1294
1295 System types:
1296   --build=BUILD     configure for building on BUILD [guessed]
1297   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1298 _ACEOF
1299 fi
1300
1301 if test -n "$ac_init_help"; then
1302
1303   cat <<\_ACEOF
1304
1305 Optional Features:
1306   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1307   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1308   --disable-nls           do not use Native Language Support
1309   --disable-dependency-tracking  speeds up one-time build
1310   --enable-dependency-tracking   do not reject slow dependency extractors
1311   --disable-rpath         do not hardcode runtime library paths
1312   --enable-debug          Enable debugging support
1313
1314 Optional Packages:
1315   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1316   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1317   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1318   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1319   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1320   --with-included-gettext use the GNU gettext library included here
1321   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1322   --without-libintl-prefix     don't search for libintl in includedir and libdir
1323   --with-localedir=PATH      Where the locale files are installed
1324   --with-curses=DIR       Where ncurses is installed
1325   --with-readline=DIR     Where readline is installed
1326
1327 Some influential environment variables:
1328   CC          C compiler command
1329   CFLAGS      C compiler flags
1330   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1331               nonstandard directory <lib dir>
1332   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1333               you have headers in a nonstandard directory <include dir>
1334   CPP         C preprocessor
1335
1336 Use these variables to override the choices made by `configure' or to help
1337 it to find libraries and programs with nonstandard names/locations.
1338
1339 _ACEOF
1340 ac_status=$?
1341 fi
1342
1343 if test "$ac_init_help" = "recursive"; then
1344   # If there are subdirs, report their specific --help.
1345   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1346     test -d "$ac_dir" || continue
1347     ac_builddir=.
1348
1349 case "$ac_dir" in
1350 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1351 *)
1352   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1353   # A ".." for each directory in $ac_dir_suffix.
1354   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1355   case $ac_top_builddir_sub in
1356   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1357   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1358   esac ;;
1359 esac
1360 ac_abs_top_builddir=$ac_pwd
1361 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1362 # for backward compatibility:
1363 ac_top_builddir=$ac_top_build_prefix
1364
1365 case $srcdir in
1366   .)  # We are building in place.
1367     ac_srcdir=.
1368     ac_top_srcdir=$ac_top_builddir_sub
1369     ac_abs_top_srcdir=$ac_pwd ;;
1370   [\\/]* | ?:[\\/]* )  # Absolute name.
1371     ac_srcdir=$srcdir$ac_dir_suffix;
1372     ac_top_srcdir=$srcdir
1373     ac_abs_top_srcdir=$srcdir ;;
1374   *) # Relative name.
1375     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1376     ac_top_srcdir=$ac_top_build_prefix$srcdir
1377     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1378 esac
1379 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1380
1381     cd "$ac_dir" || { ac_status=$?; continue; }
1382     # Check for guested configure.
1383     if test -f "$ac_srcdir/configure.gnu"; then
1384       echo &&
1385       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1386     elif test -f "$ac_srcdir/configure"; then
1387       echo &&
1388       $SHELL "$ac_srcdir/configure" --help=recursive
1389     else
1390       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1391     fi || ac_status=$?
1392     cd "$ac_pwd" || { ac_status=$?; break; }
1393   done
1394 fi
1395
1396 test -n "$ac_init_help" && exit $ac_status
1397 if $ac_init_version; then
1398   cat <<\_ACEOF
1399 configure
1400 generated by GNU Autoconf 2.60
1401
1402 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1403 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1404 This configure script is free software; the Free Software Foundation
1405 gives unlimited permission to copy, distribute and modify it.
1406 _ACEOF
1407   exit
1408 fi
1409 cat >config.log <<_ACEOF
1410 This file contains any messages produced by compilers while
1411 running configure, to aid debugging if configure makes a mistake.
1412
1413 It was created by $as_me, which was
1414 generated by GNU Autoconf 2.60.  Invocation command line was
1415
1416   $ $0 $@
1417
1418 _ACEOF
1419 exec 5>>config.log
1420 {
1421 cat <<_ASUNAME
1422 ## --------- ##
1423 ## Platform. ##
1424 ## --------- ##
1425
1426 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1427 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1428 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1429 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1430 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1431
1432 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1433 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1434
1435 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1436 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1437 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1438 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1439 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1440 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1441 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1442
1443 _ASUNAME
1444
1445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1446 for as_dir in $PATH
1447 do
1448   IFS=$as_save_IFS
1449   test -z "$as_dir" && as_dir=.
1450   echo "PATH: $as_dir"
1451 done
1452 IFS=$as_save_IFS
1453
1454 } >&5
1455
1456 cat >&5 <<_ACEOF
1457
1458
1459 ## ----------- ##
1460 ## Core tests. ##
1461 ## ----------- ##
1462
1463 _ACEOF
1464
1465
1466 # Keep a trace of the command line.
1467 # Strip out --no-create and --no-recursion so they do not pile up.
1468 # Strip out --silent because we don't want to record it for future runs.
1469 # Also quote any args containing shell meta-characters.
1470 # Make two passes to allow for proper duplicate-argument suppression.
1471 ac_configure_args=
1472 ac_configure_args0=
1473 ac_configure_args1=
1474 ac_must_keep_next=false
1475 for ac_pass in 1 2
1476 do
1477   for ac_arg
1478   do
1479     case $ac_arg in
1480     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1481     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1482     | -silent | --silent | --silen | --sile | --sil)
1483       continue ;;
1484     *\'*)
1485       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1486     esac
1487     case $ac_pass in
1488     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1489     2)
1490       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1491       if test $ac_must_keep_next = true; then
1492         ac_must_keep_next=false # Got value, back to normal.
1493       else
1494         case $ac_arg in
1495           *=* | --config-cache | -C | -disable-* | --disable-* \
1496           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1497           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1498           | -with-* | --with-* | -without-* | --without-* | --x)
1499             case "$ac_configure_args0 " in
1500               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1501             esac
1502             ;;
1503           -* ) ac_must_keep_next=true ;;
1504         esac
1505       fi
1506       ac_configure_args="$ac_configure_args '$ac_arg'"
1507       ;;
1508     esac
1509   done
1510 done
1511 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1512 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1513
1514 # When interrupted or exit'd, cleanup temporary files, and complete
1515 # config.log.  We remove comments because anyway the quotes in there
1516 # would cause problems or look ugly.
1517 # WARNING: Use '\'' to represent an apostrophe within the trap.
1518 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1519 trap 'exit_status=$?
1520   # Save into config.log some information that might help in debugging.
1521   {
1522     echo
1523
1524     cat <<\_ASBOX
1525 ## ---------------- ##
1526 ## Cache variables. ##
1527 ## ---------------- ##
1528 _ASBOX
1529     echo
1530     # The following way of writing the cache mishandles newlines in values,
1531 (
1532   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1533     eval ac_val=\$$ac_var
1534     case $ac_val in #(
1535     *${as_nl}*)
1536       case $ac_var in #(
1537       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1538 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1539       esac
1540       case $ac_var in #(
1541       _ | IFS | as_nl) ;; #(
1542       *) $as_unset $ac_var ;;
1543       esac ;;
1544     esac
1545   done
1546   (set) 2>&1 |
1547     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1548     *${as_nl}ac_space=\ *)
1549       sed -n \
1550         "s/'\''/'\''\\\\'\'''\''/g;
1551           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1552       ;; #(
1553     *)
1554       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1555       ;;
1556     esac |
1557     sort
1558 )
1559     echo
1560
1561     cat <<\_ASBOX
1562 ## ----------------- ##
1563 ## Output variables. ##
1564 ## ----------------- ##
1565 _ASBOX
1566     echo
1567     for ac_var in $ac_subst_vars
1568     do
1569       eval ac_val=\$$ac_var
1570       case $ac_val in
1571       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1572       esac
1573       echo "$ac_var='\''$ac_val'\''"
1574     done | sort
1575     echo
1576
1577     if test -n "$ac_subst_files"; then
1578       cat <<\_ASBOX
1579 ## ------------------- ##
1580 ## File substitutions. ##
1581 ## ------------------- ##
1582 _ASBOX
1583       echo
1584       for ac_var in $ac_subst_files
1585       do
1586         eval ac_val=\$$ac_var
1587         case $ac_val in
1588         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1589         esac
1590         echo "$ac_var='\''$ac_val'\''"
1591       done | sort
1592       echo
1593     fi
1594
1595     if test -s confdefs.h; then
1596       cat <<\_ASBOX
1597 ## ----------- ##
1598 ## confdefs.h. ##
1599 ## ----------- ##
1600 _ASBOX
1601       echo
1602       cat confdefs.h
1603       echo
1604     fi
1605     test "$ac_signal" != 0 &&
1606       echo "$as_me: caught signal $ac_signal"
1607     echo "$as_me: exit $exit_status"
1608   } >&5
1609   rm -f core *.core core.conftest.* &&
1610     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1611     exit $exit_status
1612 ' 0
1613 for ac_signal in 1 2 13 15; do
1614   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1615 done
1616 ac_signal=0
1617
1618 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1619 rm -f -r conftest* confdefs.h
1620
1621 # Predefined preprocessor variables.
1622
1623 cat >>confdefs.h <<_ACEOF
1624 #define PACKAGE_NAME "$PACKAGE_NAME"
1625 _ACEOF
1626
1627
1628 cat >>confdefs.h <<_ACEOF
1629 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1630 _ACEOF
1631
1632
1633 cat >>confdefs.h <<_ACEOF
1634 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1635 _ACEOF
1636
1637
1638 cat >>confdefs.h <<_ACEOF
1639 #define PACKAGE_STRING "$PACKAGE_STRING"
1640 _ACEOF
1641
1642
1643 cat >>confdefs.h <<_ACEOF
1644 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1645 _ACEOF
1646
1647
1648 # Let the site file select an alternate cache file if it wants to.
1649 # Prefer explicitly selected file to automatically selected ones.
1650 if test -n "$CONFIG_SITE"; then
1651   set x "$CONFIG_SITE"
1652 elif test "x$prefix" != xNONE; then
1653   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1654 else
1655   set x "$ac_default_prefix/share/config.site" \
1656         "$ac_default_prefix/etc/config.site"
1657 fi
1658 shift
1659 for ac_site_file
1660 do
1661   if test -r "$ac_site_file"; then
1662     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1663 echo "$as_me: loading site script $ac_site_file" >&6;}
1664     sed 's/^/| /' "$ac_site_file" >&5
1665     . "$ac_site_file"
1666   fi
1667 done
1668
1669 if test -r "$cache_file"; then
1670   # Some versions of bash will fail to source /dev/null (special
1671   # files actually), so we avoid doing that.
1672   if test -f "$cache_file"; then
1673     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1674 echo "$as_me: loading cache $cache_file" >&6;}
1675     case $cache_file in
1676       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1677       *)                      . "./$cache_file";;
1678     esac
1679   fi
1680 else
1681   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1682 echo "$as_me: creating cache $cache_file" >&6;}
1683   >$cache_file
1684 fi
1685
1686 # Check that the precious variables saved in the cache have kept the same
1687 # value.
1688 ac_cache_corrupted=false
1689 for ac_var in $ac_precious_vars; do
1690   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1691   eval ac_new_set=\$ac_env_${ac_var}_set
1692   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1693   eval ac_new_val=\$ac_env_${ac_var}_value
1694   case $ac_old_set,$ac_new_set in
1695     set,)
1696       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1697 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1698       ac_cache_corrupted=: ;;
1699     ,set)
1700       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1701 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1702       ac_cache_corrupted=: ;;
1703     ,);;
1704     *)
1705       if test "x$ac_old_val" != "x$ac_new_val"; then
1706         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1707 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1708         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1709 echo "$as_me:   former value:  $ac_old_val" >&2;}
1710         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1711 echo "$as_me:   current value: $ac_new_val" >&2;}
1712         ac_cache_corrupted=:
1713       fi;;
1714   esac
1715   # Pass precious variables to config.status.
1716   if test "$ac_new_set" = set; then
1717     case $ac_new_val in
1718     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1719     *) ac_arg=$ac_var=$ac_new_val ;;
1720     esac
1721     case " $ac_configure_args " in
1722       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1723       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1724     esac
1725   fi
1726 done
1727 if $ac_cache_corrupted; then
1728   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1729 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1730   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1731 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1732    { (exit 1); exit 1; }; }
1733 fi
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751 ac_ext=c
1752 ac_cpp='$CPP $CPPFLAGS'
1753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1756
1757
1758 am__api_version="1.9"
1759 ac_aux_dir=
1760 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1761   if test -f "$ac_dir/install-sh"; then
1762     ac_aux_dir=$ac_dir
1763     ac_install_sh="$ac_aux_dir/install-sh -c"
1764     break
1765   elif test -f "$ac_dir/install.sh"; then
1766     ac_aux_dir=$ac_dir
1767     ac_install_sh="$ac_aux_dir/install.sh -c"
1768     break
1769   elif test -f "$ac_dir/shtool"; then
1770     ac_aux_dir=$ac_dir
1771     ac_install_sh="$ac_aux_dir/shtool install -c"
1772     break
1773   fi
1774 done
1775 if test -z "$ac_aux_dir"; then
1776   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1777 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1778    { (exit 1); exit 1; }; }
1779 fi
1780
1781 # These three variables are undocumented and unsupported,
1782 # and are intended to be withdrawn in a future Autoconf release.
1783 # They can cause serious problems if a builder's source tree is in a directory
1784 # whose full name contains unusual characters.
1785 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1786 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1787 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1788
1789
1790 # Find a good install program.  We prefer a C program (faster),
1791 # so one script is as good as another.  But avoid the broken or
1792 # incompatible versions:
1793 # SysV /etc/install, /usr/sbin/install
1794 # SunOS /usr/etc/install
1795 # IRIX /sbin/install
1796 # AIX /bin/install
1797 # AmigaOS /C/install, which installs bootblocks on floppy discs
1798 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1799 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1800 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1801 # OS/2's system install, which has a completely different semantic
1802 # ./install, which can be erroneously created by make from ./install.sh.
1803 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1804 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1805 if test -z "$INSTALL"; then
1806 if test "${ac_cv_path_install+set}" = set; then
1807   echo $ECHO_N "(cached) $ECHO_C" >&6
1808 else
1809   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1810 for as_dir in $PATH
1811 do
1812   IFS=$as_save_IFS
1813   test -z "$as_dir" && as_dir=.
1814   # Account for people who put trailing slashes in PATH elements.
1815 case $as_dir/ in
1816   ./ | .// | /cC/* | \
1817   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1818   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1819   /usr/ucb/* ) ;;
1820   *)
1821     # OSF1 and SCO ODT 3.0 have their own names for install.
1822     # Don't use installbsd from OSF since it installs stuff as root
1823     # by default.
1824     for ac_prog in ginstall scoinst install; do
1825       for ac_exec_ext in '' $ac_executable_extensions; do
1826         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
1827           if test $ac_prog = install &&
1828             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1829             # AIX install.  It has an incompatible calling convention.
1830             :
1831           elif test $ac_prog = install &&
1832             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1833             # program-specific install script used by HP pwplus--don't use.
1834             :
1835           else
1836             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1837             break 3
1838           fi
1839         fi
1840       done
1841     done
1842     ;;
1843 esac
1844 done
1845 IFS=$as_save_IFS
1846
1847
1848 fi
1849   if test "${ac_cv_path_install+set}" = set; then
1850     INSTALL=$ac_cv_path_install
1851   else
1852     # As a last resort, use the slow shell script.  Don't cache a
1853     # value for INSTALL within a source directory, because that will
1854     # break other packages using the cache if that directory is
1855     # removed, or if the value is a relative name.
1856     INSTALL=$ac_install_sh
1857   fi
1858 fi
1859 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1860 echo "${ECHO_T}$INSTALL" >&6; }
1861
1862 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1863 # It thinks the first close brace ends the variable substitution.
1864 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1865
1866 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1867
1868 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1869
1870 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1871 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1872 # Just in case
1873 sleep 1
1874 echo timestamp > conftest.file
1875 # Do `set' in a subshell so we don't clobber the current shell's
1876 # arguments.  Must try -L first in case configure is actually a
1877 # symlink; some systems play weird games with the mod time of symlinks
1878 # (eg FreeBSD returns the mod time of the symlink's containing
1879 # directory).
1880 if (
1881    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1882    if test "$*" = "X"; then
1883       # -L didn't work.
1884       set X `ls -t $srcdir/configure conftest.file`
1885    fi
1886    rm -f conftest.file
1887    if test "$*" != "X $srcdir/configure conftest.file" \
1888       && test "$*" != "X conftest.file $srcdir/configure"; then
1889
1890       # If neither matched, then we have a broken ls.  This can happen
1891       # if, for instance, CONFIG_SHELL is bash and it inherits a
1892       # broken ls alias from the environment.  This has actually
1893       # happened.  Such a system could not be considered "sane".
1894       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1895 alias in your environment" >&5
1896 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1897 alias in your environment" >&2;}
1898    { (exit 1); exit 1; }; }
1899    fi
1900
1901    test "$2" = conftest.file
1902    )
1903 then
1904    # Ok.
1905    :
1906 else
1907    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1908 Check your system clock" >&5
1909 echo "$as_me: error: newly created file is older than distributed files!
1910 Check your system clock" >&2;}
1911    { (exit 1); exit 1; }; }
1912 fi
1913 { echo "$as_me:$LINENO: result: yes" >&5
1914 echo "${ECHO_T}yes" >&6; }
1915 test "$program_prefix" != NONE &&
1916   program_transform_name="s&^&$program_prefix&;$program_transform_name"
1917 # Use a double $ so make ignores it.
1918 test "$program_suffix" != NONE &&
1919   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1920 # Double any \ or $.  echo might interpret backslashes.
1921 # By default was `s,x,x', remove it if useless.
1922 cat <<\_ACEOF >conftest.sed
1923 s/[\\$]/&&/g;s/;s,x,x,$//
1924 _ACEOF
1925 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1926 rm -f conftest.sed
1927
1928 # expand $ac_aux_dir to an absolute path
1929 am_aux_dir=`cd $ac_aux_dir && pwd`
1930
1931 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1932 # Use eval to expand $SHELL
1933 if eval "$MISSING --run true"; then
1934   am_missing_run="$MISSING --run "
1935 else
1936   am_missing_run=
1937   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1938 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1939 fi
1940
1941 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1942   # We used to keeping the `.' as first argument, in order to
1943   # allow $(mkdir_p) to be used without argument.  As in
1944   #   $(mkdir_p) $(somedir)
1945   # where $(somedir) is conditionally defined.  However this is wrong
1946   # for two reasons:
1947   #  1. if the package is installed by a user who cannot write `.'
1948   #     make install will fail,
1949   #  2. the above comment should most certainly read
1950   #     $(mkdir_p) $(DESTDIR)$(somedir)
1951   #     so it does not work when $(somedir) is undefined and
1952   #     $(DESTDIR) is not.
1953   #  To support the latter case, we have to write
1954   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1955   #  so the `.' trick is pointless.
1956   mkdir_p='mkdir -p --'
1957 else
1958   # On NextStep and OpenStep, the `mkdir' command does not
1959   # recognize any option.  It will interpret all options as
1960   # directories to create, and then abort because `.' already
1961   # exists.
1962   for d in ./-p ./--version;
1963   do
1964     test -d $d && rmdir $d
1965   done
1966   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1967   if test -f "$ac_aux_dir/mkinstalldirs"; then
1968     mkdir_p='$(mkinstalldirs)'
1969   else
1970     mkdir_p='$(install_sh) -d'
1971   fi
1972 fi
1973
1974 for ac_prog in gawk mawk nawk awk
1975 do
1976   # Extract the first word of "$ac_prog", so it can be a program name with args.
1977 set dummy $ac_prog; ac_word=$2
1978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1980 if test "${ac_cv_prog_AWK+set}" = set; then
1981   echo $ECHO_N "(cached) $ECHO_C" >&6
1982 else
1983   if test -n "$AWK"; then
1984   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1985 else
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 for as_dir in $PATH
1988 do
1989   IFS=$as_save_IFS
1990   test -z "$as_dir" && as_dir=.
1991   for ac_exec_ext in '' $ac_executable_extensions; do
1992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1993     ac_cv_prog_AWK="$ac_prog"
1994     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995     break 2
1996   fi
1997 done
1998 done
1999 IFS=$as_save_IFS
2000
2001 fi
2002 fi
2003 AWK=$ac_cv_prog_AWK
2004 if test -n "$AWK"; then
2005   { echo "$as_me:$LINENO: result: $AWK" >&5
2006 echo "${ECHO_T}$AWK" >&6; }
2007 else
2008   { echo "$as_me:$LINENO: result: no" >&5
2009 echo "${ECHO_T}no" >&6; }
2010 fi
2011
2012
2013   test -n "$AWK" && break
2014 done
2015
2016 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2017 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2018 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2019 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2020   echo $ECHO_N "(cached) $ECHO_C" >&6
2021 else
2022   cat >conftest.make <<\_ACEOF
2023 SHELL = /bin/sh
2024 all:
2025         @echo '@@@%%%=$(MAKE)=@@@%%%'
2026 _ACEOF
2027 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2028 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2029   *@@@%%%=?*=@@@%%%*)
2030     eval ac_cv_prog_make_${ac_make}_set=yes;;
2031   *)
2032     eval ac_cv_prog_make_${ac_make}_set=no;;
2033 esac
2034 rm -f conftest.make
2035 fi
2036 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2037   { echo "$as_me:$LINENO: result: yes" >&5
2038 echo "${ECHO_T}yes" >&6; }
2039   SET_MAKE=
2040 else
2041   { echo "$as_me:$LINENO: result: no" >&5
2042 echo "${ECHO_T}no" >&6; }
2043   SET_MAKE="MAKE=${MAKE-make}"
2044 fi
2045
2046 rm -rf .tst 2>/dev/null
2047 mkdir .tst 2>/dev/null
2048 if test -d .tst; then
2049   am__leading_dot=.
2050 else
2051   am__leading_dot=_
2052 fi
2053 rmdir .tst 2>/dev/null
2054
2055 # test to see if srcdir already configured
2056 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2057    test -f $srcdir/config.status; then
2058   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2059 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2060    { (exit 1); exit 1; }; }
2061 fi
2062
2063 # test whether we have cygpath
2064 if test -z "$CYGPATH_W"; then
2065   if (cygpath --version) >/dev/null 2>/dev/null; then
2066     CYGPATH_W='cygpath -w'
2067   else
2068     CYGPATH_W=echo
2069   fi
2070 fi
2071
2072
2073 # Define the identity of the package.
2074  PACKAGE=abook
2075  VERSION=0.5.5
2076
2077
2078 cat >>confdefs.h <<_ACEOF
2079 #define PACKAGE "$PACKAGE"
2080 _ACEOF
2081
2082
2083 cat >>confdefs.h <<_ACEOF
2084 #define VERSION "$VERSION"
2085 _ACEOF
2086
2087 # Some tools Automake needs.
2088
2089 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2090
2091
2092 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2093
2094
2095 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2096
2097
2098 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2099
2100
2101 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2102
2103 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2104
2105 # Installed binaries are usually stripped using `strip' when the user
2106 # run `make install-strip'.  However `strip' might not be the right
2107 # tool to use in cross-compilation environments, therefore Automake
2108 # will honor the `STRIP' environment variable to overrule this program.
2109 if test "$cross_compiling" != no; then
2110   if test -n "$ac_tool_prefix"; then
2111   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2112 set dummy ${ac_tool_prefix}strip; ac_word=$2
2113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2115 if test "${ac_cv_prog_STRIP+set}" = set; then
2116   echo $ECHO_N "(cached) $ECHO_C" >&6
2117 else
2118   if test -n "$STRIP"; then
2119   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2120 else
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 for as_dir in $PATH
2123 do
2124   IFS=$as_save_IFS
2125   test -z "$as_dir" && as_dir=.
2126   for ac_exec_ext in '' $ac_executable_extensions; do
2127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2128     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2130     break 2
2131   fi
2132 done
2133 done
2134 IFS=$as_save_IFS
2135
2136 fi
2137 fi
2138 STRIP=$ac_cv_prog_STRIP
2139 if test -n "$STRIP"; then
2140   { echo "$as_me:$LINENO: result: $STRIP" >&5
2141 echo "${ECHO_T}$STRIP" >&6; }
2142 else
2143   { echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6; }
2145 fi
2146
2147
2148 fi
2149 if test -z "$ac_cv_prog_STRIP"; then
2150   ac_ct_STRIP=$STRIP
2151   # Extract the first word of "strip", so it can be a program name with args.
2152 set dummy strip; ac_word=$2
2153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2155 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2156   echo $ECHO_N "(cached) $ECHO_C" >&6
2157 else
2158   if test -n "$ac_ct_STRIP"; then
2159   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2160 else
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 for as_dir in $PATH
2163 do
2164   IFS=$as_save_IFS
2165   test -z "$as_dir" && as_dir=.
2166   for ac_exec_ext in '' $ac_executable_extensions; do
2167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2168     ac_cv_prog_ac_ct_STRIP="strip"
2169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2170     break 2
2171   fi
2172 done
2173 done
2174 IFS=$as_save_IFS
2175
2176 fi
2177 fi
2178 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2179 if test -n "$ac_ct_STRIP"; then
2180   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2181 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2182 else
2183   { echo "$as_me:$LINENO: result: no" >&5
2184 echo "${ECHO_T}no" >&6; }
2185 fi
2186
2187   if test "x$ac_ct_STRIP" = x; then
2188     STRIP=":"
2189   else
2190     case $cross_compiling:$ac_tool_warned in
2191 yes:)
2192 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2193 whose name does not start with the host triplet.  If you think this
2194 configuration is useful to you, please write to autoconf@gnu.org." >&5
2195 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2196 whose name does not start with the host triplet.  If you think this
2197 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2198 ac_tool_warned=yes ;;
2199 esac
2200     STRIP=$ac_ct_STRIP
2201   fi
2202 else
2203   STRIP="$ac_cv_prog_STRIP"
2204 fi
2205
2206 fi
2207 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2208
2209 # We need awk for the "check" target.  The system "awk" is bad on
2210 # some platforms.
2211 # Always define AMTAR for backward compatibility.
2212
2213 AMTAR=${AMTAR-"${am_missing_run}tar"}
2214
2215 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2216
2217
2218
2219
2220
2221 ac_config_headers="$ac_config_headers config.h"
2222
2223
2224
2225
2226
2227         MKINSTALLDIRS=
2228   if test -n "$ac_aux_dir"; then
2229     case "$ac_aux_dir" in
2230       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
2231       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
2232     esac
2233   fi
2234   if test -z "$MKINSTALLDIRS"; then
2235     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2236   fi
2237
2238
2239
2240   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2241 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
2242     # Check whether --enable-nls was given.
2243 if test "${enable_nls+set}" = set; then
2244   enableval=$enable_nls; USE_NLS=$enableval
2245 else
2246   USE_NLS=yes
2247 fi
2248
2249   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
2250 echo "${ECHO_T}$USE_NLS" >&6; }
2251
2252
2253
2254
2255
2256
2257 # Prepare PATH_SEPARATOR.
2258 # The user is always right.
2259 if test "${PATH_SEPARATOR+set}" != set; then
2260   echo "#! /bin/sh" >conf$$.sh
2261   echo  "exit 0"   >>conf$$.sh
2262   chmod +x conf$$.sh
2263   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2264     PATH_SEPARATOR=';'
2265   else
2266     PATH_SEPARATOR=:
2267   fi
2268   rm -f conf$$.sh
2269 fi
2270
2271 # Find out how to test for executable files. Don't use a zero-byte file,
2272 # as systems may use methods other than mode bits to determine executability.
2273 cat >conf$$.file <<_ASEOF
2274 #! /bin/sh
2275 exit 0
2276 _ASEOF
2277 chmod +x conf$$.file
2278 if test -x conf$$.file >/dev/null 2>&1; then
2279   ac_executable_p="test -x"
2280 else
2281   ac_executable_p="test -f"
2282 fi
2283 rm -f conf$$.file
2284
2285 # Extract the first word of "msgfmt", so it can be a program name with args.
2286 set dummy msgfmt; ac_word=$2
2287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2289 if test "${ac_cv_path_MSGFMT+set}" = set; then
2290   echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292   case "$MSGFMT" in
2293   [\\/]* | ?:[\\/]*)
2294     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2295     ;;
2296   *)
2297     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2298     for ac_dir in $PATH; do
2299       IFS="$ac_save_IFS"
2300       test -z "$ac_dir" && ac_dir=.
2301       for ac_exec_ext in '' $ac_executable_extensions; do
2302         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2303           echo "$as_me: trying $ac_dir/$ac_word..." >&5
2304           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
2305      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2306             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
2307             break 2
2308           fi
2309         fi
2310       done
2311     done
2312     IFS="$ac_save_IFS"
2313   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2314     ;;
2315 esac
2316 fi
2317 MSGFMT="$ac_cv_path_MSGFMT"
2318 if test "$MSGFMT" != ":"; then
2319   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
2320 echo "${ECHO_T}$MSGFMT" >&6; }
2321 else
2322   { echo "$as_me:$LINENO: result: no" >&5
2323 echo "${ECHO_T}no" >&6; }
2324 fi
2325
2326   # Extract the first word of "gmsgfmt", so it can be a program name with args.
2327 set dummy gmsgfmt; ac_word=$2
2328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2330 if test "${ac_cv_path_GMSGFMT+set}" = set; then
2331   echo $ECHO_N "(cached) $ECHO_C" >&6
2332 else
2333   case $GMSGFMT in
2334   [\\/]* | ?:[\\/]*)
2335   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2336   ;;
2337   *)
2338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2339 for as_dir in $PATH
2340 do
2341   IFS=$as_save_IFS
2342   test -z "$as_dir" && as_dir=.
2343   for ac_exec_ext in '' $ac_executable_extensions; do
2344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2345     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
2346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2347     break 2
2348   fi
2349 done
2350 done
2351 IFS=$as_save_IFS
2352
2353   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2354   ;;
2355 esac
2356 fi
2357 GMSGFMT=$ac_cv_path_GMSGFMT
2358 if test -n "$GMSGFMT"; then
2359   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
2360 echo "${ECHO_T}$GMSGFMT" >&6; }
2361 else
2362   { echo "$as_me:$LINENO: result: no" >&5
2363 echo "${ECHO_T}no" >&6; }
2364 fi
2365
2366
2367
2368
2369 # Prepare PATH_SEPARATOR.
2370 # The user is always right.
2371 if test "${PATH_SEPARATOR+set}" != set; then
2372   echo "#! /bin/sh" >conf$$.sh
2373   echo  "exit 0"   >>conf$$.sh
2374   chmod +x conf$$.sh
2375   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2376     PATH_SEPARATOR=';'
2377   else
2378     PATH_SEPARATOR=:
2379   fi
2380   rm -f conf$$.sh
2381 fi
2382
2383 # Find out how to test for executable files. Don't use a zero-byte file,
2384 # as systems may use methods other than mode bits to determine executability.
2385 cat >conf$$.file <<_ASEOF
2386 #! /bin/sh
2387 exit 0
2388 _ASEOF
2389 chmod +x conf$$.file
2390 if test -x conf$$.file >/dev/null 2>&1; then
2391   ac_executable_p="test -x"
2392 else
2393   ac_executable_p="test -f"
2394 fi
2395 rm -f conf$$.file
2396
2397 # Extract the first word of "xgettext", so it can be a program name with args.
2398 set dummy xgettext; ac_word=$2
2399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2401 if test "${ac_cv_path_XGETTEXT+set}" = set; then
2402   echo $ECHO_N "(cached) $ECHO_C" >&6
2403 else
2404   case "$XGETTEXT" in
2405   [\\/]* | ?:[\\/]*)
2406     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2407     ;;
2408   *)
2409     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2410     for ac_dir in $PATH; do
2411       IFS="$ac_save_IFS"
2412       test -z "$ac_dir" && ac_dir=.
2413       for ac_exec_ext in '' $ac_executable_extensions; do
2414         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2415           echo "$as_me: trying $ac_dir/$ac_word..." >&5
2416           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
2417      (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; fi); then
2418             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
2419             break 2
2420           fi
2421         fi
2422       done
2423     done
2424     IFS="$ac_save_IFS"
2425   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2426     ;;
2427 esac
2428 fi
2429 XGETTEXT="$ac_cv_path_XGETTEXT"
2430 if test "$XGETTEXT" != ":"; then
2431   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
2432 echo "${ECHO_T}$XGETTEXT" >&6; }
2433 else
2434   { echo "$as_me:$LINENO: result: no" >&5
2435 echo "${ECHO_T}no" >&6; }
2436 fi
2437
2438     rm -f messages.po
2439
2440
2441 # Prepare PATH_SEPARATOR.
2442 # The user is always right.
2443 if test "${PATH_SEPARATOR+set}" != set; then
2444   echo "#! /bin/sh" >conf$$.sh
2445   echo  "exit 0"   >>conf$$.sh
2446   chmod +x conf$$.sh
2447   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2448     PATH_SEPARATOR=';'
2449   else
2450     PATH_SEPARATOR=:
2451   fi
2452   rm -f conf$$.sh
2453 fi
2454
2455 # Find out how to test for executable files. Don't use a zero-byte file,
2456 # as systems may use methods other than mode bits to determine executability.
2457 cat >conf$$.file <<_ASEOF
2458 #! /bin/sh
2459 exit 0
2460 _ASEOF
2461 chmod +x conf$$.file
2462 if test -x conf$$.file >/dev/null 2>&1; then
2463   ac_executable_p="test -x"
2464 else
2465   ac_executable_p="test -f"
2466 fi
2467 rm -f conf$$.file
2468
2469 # Extract the first word of "msgmerge", so it can be a program name with args.
2470 set dummy msgmerge; ac_word=$2
2471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2473 if test "${ac_cv_path_MSGMERGE+set}" = set; then
2474   echo $ECHO_N "(cached) $ECHO_C" >&6
2475 else
2476   case "$MSGMERGE" in
2477   [\\/]* | ?:[\\/]*)
2478     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
2479     ;;
2480   *)
2481     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2482     for ac_dir in $PATH; do
2483       IFS="$ac_save_IFS"
2484       test -z "$ac_dir" && ac_dir=.
2485       for ac_exec_ext in '' $ac_executable_extensions; do
2486         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2487           echo "$as_me: trying $ac_dir/$ac_word..." >&5
2488           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
2489             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
2490             break 2
2491           fi
2492         fi
2493       done
2494     done
2495     IFS="$ac_save_IFS"
2496   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
2497     ;;
2498 esac
2499 fi
2500 MSGMERGE="$ac_cv_path_MSGMERGE"
2501 if test "$MSGMERGE" != ":"; then
2502   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
2503 echo "${ECHO_T}$MSGMERGE" >&6; }
2504 else
2505   { echo "$as_me:$LINENO: result: no" >&5
2506 echo "${ECHO_T}no" >&6; }
2507 fi
2508
2509
2510       if test "$GMSGFMT" != ":"; then
2511             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
2512        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2513       : ;
2514     else
2515       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
2516       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
2517 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
2518       GMSGFMT=":"
2519     fi
2520   fi
2521
2522       if test "$XGETTEXT" != ":"; then
2523             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
2524        (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2525       : ;
2526     else
2527       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
2528 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
2529       XGETTEXT=":"
2530     fi
2531         rm -f messages.po
2532   fi
2533
2534   ac_config_commands="$ac_config_commands default-1"
2535
2536
2537 DEPDIR="${am__leading_dot}deps"
2538
2539 ac_config_commands="$ac_config_commands depfiles"
2540
2541
2542 am_make=${MAKE-make}
2543 cat > confinc << 'END'
2544 am__doit:
2545         @echo done
2546 .PHONY: am__doit
2547 END
2548 # If we don't find an include directive, just comment out the code.
2549 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2550 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2551 am__include="#"
2552 am__quote=
2553 _am_result=none
2554 # First try GNU make style include.
2555 echo "include confinc" > confmf
2556 # We grep out `Entering directory' and `Leaving directory'
2557 # messages which can occur if `w' ends up in MAKEFLAGS.
2558 # In particular we don't look at `^make:' because GNU make might
2559 # be invoked under some other name (usually "gmake"), in which
2560 # case it prints its new name instead of `make'.
2561 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2562    am__include=include
2563    am__quote=
2564    _am_result=GNU
2565 fi
2566 # Now try BSD make style include.
2567 if test "$am__include" = "#"; then
2568    echo '.include "confinc"' > confmf
2569    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2570       am__include=.include
2571       am__quote="\""
2572       _am_result=BSD
2573    fi
2574 fi
2575
2576
2577 { echo "$as_me:$LINENO: result: $_am_result" >&5
2578 echo "${ECHO_T}$_am_result" >&6; }
2579 rm -f confinc confmf
2580
2581 # Check whether --enable-dependency-tracking was given.
2582 if test "${enable_dependency_tracking+set}" = set; then
2583   enableval=$enable_dependency_tracking;
2584 fi
2585
2586 if test "x$enable_dependency_tracking" != xno; then
2587   am_depcomp="$ac_aux_dir/depcomp"
2588   AMDEPBACKSLASH='\'
2589 fi
2590
2591
2592 if test "x$enable_dependency_tracking" != xno; then
2593   AMDEP_TRUE=
2594   AMDEP_FALSE='#'
2595 else
2596   AMDEP_TRUE='#'
2597   AMDEP_FALSE=
2598 fi
2599
2600
2601
2602 ac_ext=c
2603 ac_cpp='$CPP $CPPFLAGS'
2604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2607 if test -n "$ac_tool_prefix"; then
2608   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2609 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2612 if test "${ac_cv_prog_CC+set}" = set; then
2613   echo $ECHO_N "(cached) $ECHO_C" >&6
2614 else
2615   if test -n "$CC"; then
2616   ac_cv_prog_CC="$CC" # Let the user override the test.
2617 else
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619 for as_dir in $PATH
2620 do
2621   IFS=$as_save_IFS
2622   test -z "$as_dir" && as_dir=.
2623   for ac_exec_ext in '' $ac_executable_extensions; do
2624   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2625     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2626     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2627     break 2
2628   fi
2629 done
2630 done
2631 IFS=$as_save_IFS
2632
2633 fi
2634 fi
2635 CC=$ac_cv_prog_CC
2636 if test -n "$CC"; then
2637   { echo "$as_me:$LINENO: result: $CC" >&5
2638 echo "${ECHO_T}$CC" >&6; }
2639 else
2640   { echo "$as_me:$LINENO: result: no" >&5
2641 echo "${ECHO_T}no" >&6; }
2642 fi
2643
2644
2645 fi
2646 if test -z "$ac_cv_prog_CC"; then
2647   ac_ct_CC=$CC
2648   # Extract the first word of "gcc", so it can be a program name with args.
2649 set dummy gcc; ac_word=$2
2650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2652 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2653   echo $ECHO_N "(cached) $ECHO_C" >&6
2654 else
2655   if test -n "$ac_ct_CC"; then
2656   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2657 else
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 for as_dir in $PATH
2660 do
2661   IFS=$as_save_IFS
2662   test -z "$as_dir" && as_dir=.
2663   for ac_exec_ext in '' $ac_executable_extensions; do
2664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2665     ac_cv_prog_ac_ct_CC="gcc"
2666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2667     break 2
2668   fi
2669 done
2670 done
2671 IFS=$as_save_IFS
2672
2673 fi
2674 fi
2675 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2676 if test -n "$ac_ct_CC"; then
2677   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2678 echo "${ECHO_T}$ac_ct_CC" >&6; }
2679 else
2680   { echo "$as_me:$LINENO: result: no" >&5
2681 echo "${ECHO_T}no" >&6; }
2682 fi
2683
2684   if test "x$ac_ct_CC" = x; then
2685     CC=""
2686   else
2687     case $cross_compiling:$ac_tool_warned in
2688 yes:)
2689 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2690 whose name does not start with the host triplet.  If you think this
2691 configuration is useful to you, please write to autoconf@gnu.org." >&5
2692 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2693 whose name does not start with the host triplet.  If you think this
2694 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2695 ac_tool_warned=yes ;;
2696 esac
2697     CC=$ac_ct_CC
2698   fi
2699 else
2700   CC="$ac_cv_prog_CC"
2701 fi
2702
2703 if test -z "$CC"; then
2704           if test -n "$ac_tool_prefix"; then
2705     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2706 set dummy ${ac_tool_prefix}cc; ac_word=$2
2707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2709 if test "${ac_cv_prog_CC+set}" = set; then
2710   echo $ECHO_N "(cached) $ECHO_C" >&6
2711 else
2712   if test -n "$CC"; then
2713   ac_cv_prog_CC="$CC" # Let the user override the test.
2714 else
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716 for as_dir in $PATH
2717 do
2718   IFS=$as_save_IFS
2719   test -z "$as_dir" && as_dir=.
2720   for ac_exec_ext in '' $ac_executable_extensions; do
2721   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2722     ac_cv_prog_CC="${ac_tool_prefix}cc"
2723     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2724     break 2
2725   fi
2726 done
2727 done
2728 IFS=$as_save_IFS
2729
2730 fi
2731 fi
2732 CC=$ac_cv_prog_CC
2733 if test -n "$CC"; then
2734   { echo "$as_me:$LINENO: result: $CC" >&5
2735 echo "${ECHO_T}$CC" >&6; }
2736 else
2737   { echo "$as_me:$LINENO: result: no" >&5
2738 echo "${ECHO_T}no" >&6; }
2739 fi
2740
2741
2742   fi
2743 fi
2744 if test -z "$CC"; then
2745   # Extract the first word of "cc", so it can be a program name with args.
2746 set dummy cc; ac_word=$2
2747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2749 if test "${ac_cv_prog_CC+set}" = set; then
2750   echo $ECHO_N "(cached) $ECHO_C" >&6
2751 else
2752   if test -n "$CC"; then
2753   ac_cv_prog_CC="$CC" # Let the user override the test.
2754 else
2755   ac_prog_rejected=no
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 for as_dir in $PATH
2758 do
2759   IFS=$as_save_IFS
2760   test -z "$as_dir" && as_dir=.
2761   for ac_exec_ext in '' $ac_executable_extensions; do
2762   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2763     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2764        ac_prog_rejected=yes
2765        continue
2766      fi
2767     ac_cv_prog_CC="cc"
2768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2769     break 2
2770   fi
2771 done
2772 done
2773 IFS=$as_save_IFS
2774
2775 if test $ac_prog_rejected = yes; then
2776   # We found a bogon in the path, so make sure we never use it.
2777   set dummy $ac_cv_prog_CC
2778   shift
2779   if test $# != 0; then
2780     # We chose a different compiler from the bogus one.
2781     # However, it has the same basename, so the bogon will be chosen
2782     # first if we set CC to just the basename; use the full file name.
2783     shift
2784     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2785   fi
2786 fi
2787 fi
2788 fi
2789 CC=$ac_cv_prog_CC
2790 if test -n "$CC"; then
2791   { echo "$as_me:$LINENO: result: $CC" >&5
2792 echo "${ECHO_T}$CC" >&6; }
2793 else
2794   { echo "$as_me:$LINENO: result: no" >&5
2795 echo "${ECHO_T}no" >&6; }
2796 fi
2797
2798
2799 fi
2800 if test -z "$CC"; then
2801   if test -n "$ac_tool_prefix"; then
2802   for ac_prog in cl.exe
2803   do
2804     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2805 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2808 if test "${ac_cv_prog_CC+set}" = set; then
2809   echo $ECHO_N "(cached) $ECHO_C" >&6
2810 else
2811   if test -n "$CC"; then
2812   ac_cv_prog_CC="$CC" # Let the user override the test.
2813 else
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH
2816 do
2817   IFS=$as_save_IFS
2818   test -z "$as_dir" && as_dir=.
2819   for ac_exec_ext in '' $ac_executable_extensions; do
2820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2821     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2822     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2823     break 2
2824   fi
2825 done
2826 done
2827 IFS=$as_save_IFS
2828
2829 fi
2830 fi
2831 CC=$ac_cv_prog_CC
2832 if test -n "$CC"; then
2833   { echo "$as_me:$LINENO: result: $CC" >&5
2834 echo "${ECHO_T}$CC" >&6; }
2835 else
2836   { echo "$as_me:$LINENO: result: no" >&5
2837 echo "${ECHO_T}no" >&6; }
2838 fi
2839
2840
2841     test -n "$CC" && break
2842   done
2843 fi
2844 if test -z "$CC"; then
2845   ac_ct_CC=$CC
2846   for ac_prog in cl.exe
2847 do
2848   # Extract the first word of "$ac_prog", so it can be a program name with args.
2849 set dummy $ac_prog; ac_word=$2
2850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2852 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2853   echo $ECHO_N "(cached) $ECHO_C" >&6
2854 else
2855   if test -n "$ac_ct_CC"; then
2856   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2857 else
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH
2860 do
2861   IFS=$as_save_IFS
2862   test -z "$as_dir" && as_dir=.
2863   for ac_exec_ext in '' $ac_executable_extensions; do
2864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2865     ac_cv_prog_ac_ct_CC="$ac_prog"
2866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2867     break 2
2868   fi
2869 done
2870 done
2871 IFS=$as_save_IFS
2872
2873 fi
2874 fi
2875 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2876 if test -n "$ac_ct_CC"; then
2877   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2878 echo "${ECHO_T}$ac_ct_CC" >&6; }
2879 else
2880   { echo "$as_me:$LINENO: result: no" >&5
2881 echo "${ECHO_T}no" >&6; }
2882 fi
2883
2884
2885   test -n "$ac_ct_CC" && break
2886 done
2887
2888   if test "x$ac_ct_CC" = x; then
2889     CC=""
2890   else
2891     case $cross_compiling:$ac_tool_warned in
2892 yes:)
2893 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2894 whose name does not start with the host triplet.  If you think this
2895 configuration is useful to you, please write to autoconf@gnu.org." >&5
2896 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2897 whose name does not start with the host triplet.  If you think this
2898 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2899 ac_tool_warned=yes ;;
2900 esac
2901     CC=$ac_ct_CC
2902   fi
2903 fi
2904
2905 fi
2906
2907
2908 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2909 See \`config.log' for more details." >&5
2910 echo "$as_me: error: no acceptable C compiler found in \$PATH
2911 See \`config.log' for more details." >&2;}
2912    { (exit 1); exit 1; }; }
2913
2914 # Provide some information about the compiler.
2915 echo "$as_me:$LINENO: checking for C compiler version" >&5
2916 ac_compiler=`set X $ac_compile; echo $2`
2917 { (ac_try="$ac_compiler --version >&5"
2918 case "(($ac_try" in
2919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920   *) ac_try_echo=$ac_try;;
2921 esac
2922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2923   (eval "$ac_compiler --version >&5") 2>&5
2924   ac_status=$?
2925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926   (exit $ac_status); }
2927 { (ac_try="$ac_compiler -v >&5"
2928 case "(($ac_try" in
2929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930   *) ac_try_echo=$ac_try;;
2931 esac
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933   (eval "$ac_compiler -v >&5") 2>&5
2934   ac_status=$?
2935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2936   (exit $ac_status); }
2937 { (ac_try="$ac_compiler -V >&5"
2938 case "(($ac_try" in
2939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2940   *) ac_try_echo=$ac_try;;
2941 esac
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943   (eval "$ac_compiler -V >&5") 2>&5
2944   ac_status=$?
2945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946   (exit $ac_status); }
2947
2948 cat >conftest.$ac_ext <<_ACEOF
2949 /* confdefs.h.  */
2950 _ACEOF
2951 cat confdefs.h >>conftest.$ac_ext
2952 cat >>conftest.$ac_ext <<_ACEOF
2953 /* end confdefs.h.  */
2954
2955 int
2956 main ()
2957 {
2958
2959   ;
2960   return 0;
2961 }
2962 _ACEOF
2963 ac_clean_files_save=$ac_clean_files
2964 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2965 # Try to create an executable without -o first, disregard a.out.
2966 # It will help us diagnose broken compilers, and finding out an intuition
2967 # of exeext.
2968 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2969 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2970 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2971 #
2972 # List of possible output files, starting from the most likely.
2973 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2974 # only as a last resort.  b.out is created by i960 compilers.
2975 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2976 #
2977 # The IRIX 6 linker writes into existing files which may not be
2978 # executable, retaining their permissions.  Remove them first so a
2979 # subsequent execution test works.
2980 ac_rmfiles=
2981 for ac_file in $ac_files
2982 do
2983   case $ac_file in
2984     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2985     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2986   esac
2987 done
2988 rm -f $ac_rmfiles
2989
2990 if { (ac_try="$ac_link_default"
2991 case "(($ac_try" in
2992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993   *) ac_try_echo=$ac_try;;
2994 esac
2995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2996   (eval "$ac_link_default") 2>&5
2997   ac_status=$?
2998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999   (exit $ac_status); }; then
3000   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3001 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3002 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3003 # so that the user can short-circuit this test for compilers unknown to
3004 # Autoconf.
3005 for ac_file in $ac_files
3006 do
3007   test -f "$ac_file" || continue
3008   case $ac_file in
3009     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3010         ;;
3011     [ab].out )
3012         # We found the default executable, but exeext='' is most
3013         # certainly right.
3014         break;;
3015     *.* )
3016         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3017         then :; else
3018            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3019         fi
3020         # We set ac_cv_exeext here because the later test for it is not
3021         # safe: cross compilers may not add the suffix if given an `-o'
3022         # argument, so we may need to know it at that point already.
3023         # Even if this section looks crufty: it has the advantage of
3024         # actually working.
3025         break;;
3026     * )
3027         break;;
3028   esac
3029 done
3030 test "$ac_cv_exeext" = no && ac_cv_exeext=
3031
3032 else
3033   echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3035
3036 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3037 See \`config.log' for more details." >&5
3038 echo "$as_me: error: C compiler cannot create executables
3039 See \`config.log' for more details." >&2;}
3040    { (exit 77); exit 77; }; }
3041 fi
3042
3043 ac_exeext=$ac_cv_exeext
3044 { echo "$as_me:$LINENO: result: $ac_file" >&5
3045 echo "${ECHO_T}$ac_file" >&6; }
3046
3047 # Check that the compiler produces executables we can run.  If not, either
3048 # the compiler is broken, or we cross compile.
3049 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3050 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3051 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3052 # If not cross compiling, check that we can run a simple program.
3053 if test "$cross_compiling" != yes; then
3054   if { ac_try='./$ac_file'
3055   { (case "(($ac_try" in
3056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057   *) ac_try_echo=$ac_try;;
3058 esac
3059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3060   (eval "$ac_try") 2>&5
3061   ac_status=$?
3062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063   (exit $ac_status); }; }; then
3064     cross_compiling=no
3065   else
3066     if test "$cross_compiling" = maybe; then
3067         cross_compiling=yes
3068     else
3069         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3070 If you meant to cross compile, use \`--host'.
3071 See \`config.log' for more details." >&5
3072 echo "$as_me: error: cannot run C compiled programs.
3073 If you meant to cross compile, use \`--host'.
3074 See \`config.log' for more details." >&2;}
3075    { (exit 1); exit 1; }; }
3076     fi
3077   fi
3078 fi
3079 { echo "$as_me:$LINENO: result: yes" >&5
3080 echo "${ECHO_T}yes" >&6; }
3081
3082 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3083 ac_clean_files=$ac_clean_files_save
3084 # Check that the compiler produces executables we can run.  If not, either
3085 # the compiler is broken, or we cross compile.
3086 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3087 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3088 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3089 echo "${ECHO_T}$cross_compiling" >&6; }
3090
3091 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3092 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3093 if { (ac_try="$ac_link"
3094 case "(($ac_try" in
3095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096   *) ac_try_echo=$ac_try;;
3097 esac
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099   (eval "$ac_link") 2>&5
3100   ac_status=$?
3101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102   (exit $ac_status); }; then
3103   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3104 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3105 # work properly (i.e., refer to `conftest.exe'), while it won't with
3106 # `rm'.
3107 for ac_file in conftest.exe conftest conftest.*; do
3108   test -f "$ac_file" || continue
3109   case $ac_file in
3110     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3111     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3112           break;;
3113     * ) break;;
3114   esac
3115 done
3116 else
3117   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3118 See \`config.log' for more details." >&5
3119 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3120 See \`config.log' for more details." >&2;}
3121    { (exit 1); exit 1; }; }
3122 fi
3123
3124 rm -f conftest$ac_cv_exeext
3125 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3126 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3127
3128 rm -f conftest.$ac_ext
3129 EXEEXT=$ac_cv_exeext
3130 ac_exeext=$EXEEXT
3131 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3132 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3133 if test "${ac_cv_objext+set}" = set; then
3134   echo $ECHO_N "(cached) $ECHO_C" >&6
3135 else
3136   cat >conftest.$ac_ext <<_ACEOF
3137 /* confdefs.h.  */
3138 _ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h.  */
3142
3143 int
3144 main ()
3145 {
3146
3147   ;
3148   return 0;
3149 }
3150 _ACEOF
3151 rm -f conftest.o conftest.obj
3152 if { (ac_try="$ac_compile"
3153 case "(($ac_try" in
3154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155   *) ac_try_echo=$ac_try;;
3156 esac
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158   (eval "$ac_compile") 2>&5
3159   ac_status=$?
3160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161   (exit $ac_status); }; then
3162   for ac_file in conftest.o conftest.obj conftest.*; do
3163   test -f "$ac_file" || continue;
3164   case $ac_file in
3165     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3166     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3167        break;;
3168   esac
3169 done
3170 else
3171   echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3173
3174 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3175 See \`config.log' for more details." >&5
3176 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3177 See \`config.log' for more details." >&2;}
3178    { (exit 1); exit 1; }; }
3179 fi
3180
3181 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3182 fi
3183 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3184 echo "${ECHO_T}$ac_cv_objext" >&6; }
3185 OBJEXT=$ac_cv_objext
3186 ac_objext=$OBJEXT
3187 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3188 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3189 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3190   echo $ECHO_N "(cached) $ECHO_C" >&6
3191 else
3192   cat >conftest.$ac_ext <<_ACEOF
3193 /* confdefs.h.  */
3194 _ACEOF
3195 cat confdefs.h >>conftest.$ac_ext
3196 cat >>conftest.$ac_ext <<_ACEOF
3197 /* end confdefs.h.  */
3198
3199 int
3200 main ()
3201 {
3202 #ifndef __GNUC__
3203        choke me
3204 #endif
3205
3206   ;
3207   return 0;
3208 }
3209 _ACEOF
3210 rm -f conftest.$ac_objext
3211 if { (ac_try="$ac_compile"
3212 case "(($ac_try" in
3213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214   *) ac_try_echo=$ac_try;;
3215 esac
3216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217   (eval "$ac_compile") 2>conftest.er1
3218   ac_status=$?
3219   grep -v '^ *+' conftest.er1 >conftest.err
3220   rm -f conftest.er1
3221   cat conftest.err >&5
3222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223   (exit $ac_status); } &&
3224          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3225   { (case "(($ac_try" in
3226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227   *) ac_try_echo=$ac_try;;
3228 esac
3229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3230   (eval "$ac_try") 2>&5
3231   ac_status=$?
3232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233   (exit $ac_status); }; } &&
3234          { ac_try='test -s conftest.$ac_objext'
3235   { (case "(($ac_try" in
3236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3237   *) ac_try_echo=$ac_try;;
3238 esac
3239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3240   (eval "$ac_try") 2>&5
3241   ac_status=$?
3242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243   (exit $ac_status); }; }; then
3244   ac_compiler_gnu=yes
3245 else
3246   echo "$as_me: failed program was:" >&5
3247 sed 's/^/| /' conftest.$ac_ext >&5
3248
3249         ac_compiler_gnu=no
3250 fi
3251
3252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3253 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3254
3255 fi
3256 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3257 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3258 GCC=`test $ac_compiler_gnu = yes && echo yes`
3259 ac_test_CFLAGS=${CFLAGS+set}
3260 ac_save_CFLAGS=$CFLAGS
3261 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3262 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3263 if test "${ac_cv_prog_cc_g+set}" = set; then
3264   echo $ECHO_N "(cached) $ECHO_C" >&6
3265 else
3266   ac_save_c_werror_flag=$ac_c_werror_flag
3267    ac_c_werror_flag=yes
3268    ac_cv_prog_cc_g=no
3269    CFLAGS="-g"
3270    cat >conftest.$ac_ext <<_ACEOF
3271 /* confdefs.h.  */
3272 _ACEOF
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h.  */
3276
3277 int
3278 main ()
3279 {
3280
3281   ;
3282   return 0;
3283 }
3284 _ACEOF
3285 rm -f conftest.$ac_objext
3286 if { (ac_try="$ac_compile"
3287 case "(($ac_try" in
3288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289   *) ac_try_echo=$ac_try;;
3290 esac
3291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292   (eval "$ac_compile") 2>conftest.er1
3293   ac_status=$?
3294   grep -v '^ *+' conftest.er1 >conftest.err
3295   rm -f conftest.er1
3296   cat conftest.err >&5
3297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298   (exit $ac_status); } &&
3299          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3300   { (case "(($ac_try" in
3301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302   *) ac_try_echo=$ac_try;;
3303 esac
3304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3305   (eval "$ac_try") 2>&5
3306   ac_status=$?
3307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); }; } &&
3309          { ac_try='test -s conftest.$ac_objext'
3310   { (case "(($ac_try" in
3311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3312   *) ac_try_echo=$ac_try;;
3313 esac
3314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3315   (eval "$ac_try") 2>&5
3316   ac_status=$?
3317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318   (exit $ac_status); }; }; then
3319   ac_cv_prog_cc_g=yes
3320 else
3321   echo "$as_me: failed program was:" >&5
3322 sed 's/^/| /' conftest.$ac_ext >&5
3323
3324         CFLAGS=""
3325       cat >conftest.$ac_ext <<_ACEOF
3326 /* confdefs.h.  */
3327 _ACEOF
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h.  */
3331
3332 int
3333 main ()
3334 {
3335
3336   ;
3337   return 0;
3338 }
3339 _ACEOF
3340 rm -f conftest.$ac_objext
3341 if { (ac_try="$ac_compile"
3342 case "(($ac_try" in
3343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344   *) ac_try_echo=$ac_try;;
3345 esac
3346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3347   (eval "$ac_compile") 2>conftest.er1
3348   ac_status=$?
3349   grep -v '^ *+' conftest.er1 >conftest.err
3350   rm -f conftest.er1
3351   cat conftest.err >&5
3352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353   (exit $ac_status); } &&
3354          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3355   { (case "(($ac_try" in
3356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357   *) ac_try_echo=$ac_try;;
3358 esac
3359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360   (eval "$ac_try") 2>&5
3361   ac_status=$?
3362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363   (exit $ac_status); }; } &&
3364          { ac_try='test -s conftest.$ac_objext'
3365   { (case "(($ac_try" in
3366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367   *) ac_try_echo=$ac_try;;
3368 esac
3369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370   (eval "$ac_try") 2>&5
3371   ac_status=$?
3372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373   (exit $ac_status); }; }; then
3374   :
3375 else
3376   echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3378
3379         ac_c_werror_flag=$ac_save_c_werror_flag
3380          CFLAGS="-g"
3381          cat >conftest.$ac_ext <<_ACEOF
3382 /* confdefs.h.  */
3383 _ACEOF
3384 cat confdefs.h >>conftest.$ac_ext
3385 cat >>conftest.$ac_ext <<_ACEOF
3386 /* end confdefs.h.  */
3387
3388 int
3389 main ()
3390 {
3391
3392   ;
3393   return 0;
3394 }
3395 _ACEOF
3396 rm -f conftest.$ac_objext
3397 if { (ac_try="$ac_compile"
3398 case "(($ac_try" in
3399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400   *) ac_try_echo=$ac_try;;
3401 esac
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403   (eval "$ac_compile") 2>conftest.er1
3404   ac_status=$?
3405   grep -v '^ *+' conftest.er1 >conftest.err
3406   rm -f conftest.er1
3407   cat conftest.err >&5
3408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409   (exit $ac_status); } &&
3410          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3411   { (case "(($ac_try" in
3412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413   *) ac_try_echo=$ac_try;;
3414 esac
3415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3416   (eval "$ac_try") 2>&5
3417   ac_status=$?
3418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419   (exit $ac_status); }; } &&
3420          { ac_try='test -s conftest.$ac_objext'
3421   { (case "(($ac_try" in
3422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423   *) ac_try_echo=$ac_try;;
3424 esac
3425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3426   (eval "$ac_try") 2>&5
3427   ac_status=$?
3428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429   (exit $ac_status); }; }; then
3430   ac_cv_prog_cc_g=yes
3431 else
3432   echo "$as_me: failed program was:" >&5
3433 sed 's/^/| /' conftest.$ac_ext >&5
3434
3435
3436 fi
3437
3438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3439 fi
3440
3441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3442 fi
3443
3444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3445    ac_c_werror_flag=$ac_save_c_werror_flag
3446 fi
3447 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3448 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3449 if test "$ac_test_CFLAGS" = set; then
3450   CFLAGS=$ac_save_CFLAGS
3451 elif test $ac_cv_prog_cc_g = yes; then
3452   if test "$GCC" = yes; then
3453     CFLAGS="-g -O2"
3454   else
3455     CFLAGS="-g"
3456   fi
3457 else
3458   if test "$GCC" = yes; then
3459     CFLAGS="-O2"
3460   else
3461     CFLAGS=
3462   fi
3463 fi
3464 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3465 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3466 if test "${ac_cv_prog_cc_c89+set}" = set; then
3467   echo $ECHO_N "(cached) $ECHO_C" >&6
3468 else
3469   ac_cv_prog_cc_c89=no
3470 ac_save_CC=$CC
3471 cat >conftest.$ac_ext <<_ACEOF
3472 /* confdefs.h.  */
3473 _ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h.  */
3477 #include <stdarg.h>
3478 #include <stdio.h>
3479 #include <sys/types.h>
3480 #include <sys/stat.h>
3481 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3482 struct buf { int x; };
3483 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3484 static char *e (p, i)
3485      char **p;
3486      int i;
3487 {
3488   return p[i];
3489 }
3490 static char *f (char * (*g) (char **, int), char **p, ...)
3491 {
3492   char *s;
3493   va_list v;
3494   va_start (v,p);
3495   s = g (p, va_arg (v,int));
3496   va_end (v);
3497   return s;
3498 }
3499
3500 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3501    function prototypes and stuff, but not '\xHH' hex character constants.
3502    These don't provoke an error unfortunately, instead are silently treated
3503    as 'x'.  The following induces an error, until -std is added to get
3504    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3505    array size at least.  It's necessary to write '\x00'==0 to get something
3506    that's true only with -std.  */
3507 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3508
3509 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3510    inside strings and character constants.  */
3511 #define FOO(x) 'x'
3512 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3513
3514 int test (int i, double x);
3515 struct s1 {int (*f) (int a);};
3516 struct s2 {int (*f) (double a);};
3517 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3518 int argc;
3519 char **argv;
3520 int
3521 main ()
3522 {
3523 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3524   ;
3525   return 0;
3526 }
3527 _ACEOF
3528 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3529         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3530 do
3531   CC="$ac_save_CC $ac_arg"
3532   rm -f conftest.$ac_objext
3533 if { (ac_try="$ac_compile"
3534 case "(($ac_try" in
3535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3536   *) ac_try_echo=$ac_try;;
3537 esac
3538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3539   (eval "$ac_compile") 2>conftest.er1
3540   ac_status=$?
3541   grep -v '^ *+' conftest.er1 >conftest.err
3542   rm -f conftest.er1
3543   cat conftest.err >&5
3544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545   (exit $ac_status); } &&
3546          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3547   { (case "(($ac_try" in
3548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549   *) ac_try_echo=$ac_try;;
3550 esac
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552   (eval "$ac_try") 2>&5
3553   ac_status=$?
3554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555   (exit $ac_status); }; } &&
3556          { ac_try='test -s conftest.$ac_objext'
3557   { (case "(($ac_try" in
3558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559   *) ac_try_echo=$ac_try;;
3560 esac
3561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3562   (eval "$ac_try") 2>&5
3563   ac_status=$?
3564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565   (exit $ac_status); }; }; then
3566   ac_cv_prog_cc_c89=$ac_arg
3567 else
3568   echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3570
3571
3572 fi
3573
3574 rm -f core conftest.err conftest.$ac_objext
3575   test "x$ac_cv_prog_cc_c89" != "xno" && break
3576 done
3577 rm -f conftest.$ac_ext
3578 CC=$ac_save_CC
3579
3580 fi
3581 # AC_CACHE_VAL
3582 case "x$ac_cv_prog_cc_c89" in
3583   x)
3584     { echo "$as_me:$LINENO: result: none needed" >&5
3585 echo "${ECHO_T}none needed" >&6; } ;;
3586   xno)
3587     { echo "$as_me:$LINENO: result: unsupported" >&5
3588 echo "${ECHO_T}unsupported" >&6; } ;;
3589   *)
3590     CC="$CC $ac_cv_prog_cc_c89"
3591     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3592 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3593 esac
3594
3595
3596 ac_ext=c
3597 ac_cpp='$CPP $CPPFLAGS'
3598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3601
3602 depcc="$CC"   am_compiler_list=
3603
3604 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3605 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3606 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3607   echo $ECHO_N "(cached) $ECHO_C" >&6
3608 else
3609   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3610   # We make a subdir and do the tests there.  Otherwise we can end up
3611   # making bogus files that we don't know about and never remove.  For
3612   # instance it was reported that on HP-UX the gcc test will end up
3613   # making a dummy file named `D' -- because `-MD' means `put the output
3614   # in D'.
3615   mkdir conftest.dir
3616   # Copy depcomp to subdir because otherwise we won't find it if we're
3617   # using a relative directory.
3618   cp "$am_depcomp" conftest.dir
3619   cd conftest.dir
3620   # We will build objects and dependencies in a subdirectory because
3621   # it helps to detect inapplicable dependency modes.  For instance
3622   # both Tru64's cc and ICC support -MD to output dependencies as a
3623   # side effect of compilation, but ICC will put the dependencies in
3624   # the current directory while Tru64 will put them in the object
3625   # directory.
3626   mkdir sub
3627
3628   am_cv_CC_dependencies_compiler_type=none
3629   if test "$am_compiler_list" = ""; then
3630      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3631   fi
3632   for depmode in $am_compiler_list; do
3633     # Setup a source with many dependencies, because some compilers
3634     # like to wrap large dependency lists on column 80 (with \), and
3635     # we should not choose a depcomp mode which is confused by this.
3636     #
3637     # We need to recreate these files for each test, as the compiler may
3638     # overwrite some of them when testing with obscure command lines.
3639     # This happens at least with the AIX C compiler.
3640     : > sub/conftest.c
3641     for i in 1 2 3 4 5 6; do
3642       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3643       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3644       # Solaris 8's {/usr,}/bin/sh.
3645       touch sub/conftst$i.h
3646     done
3647     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3648
3649     case $depmode in
3650     nosideeffect)
3651       # after this tag, mechanisms are not by side-effect, so they'll
3652       # only be used when explicitly requested
3653       if test "x$enable_dependency_tracking" = xyes; then
3654         continue
3655       else
3656         break
3657       fi
3658       ;;
3659     none) break ;;
3660     esac
3661     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3662     # mode.  It turns out that the SunPro C++ compiler does not properly
3663     # handle `-M -o', and we need to detect this.
3664     if depmode=$depmode \
3665        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3666        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3667        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3668          >/dev/null 2>conftest.err &&
3669        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3670        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3671        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3672       # icc doesn't choke on unknown options, it will just issue warnings
3673       # or remarks (even with -Werror).  So we grep stderr for any message
3674       # that says an option was ignored or not supported.
3675       # When given -MP, icc 7.0 and 7.1 complain thusly:
3676       #   icc: Command line warning: ignoring option '-M'; no argument required
3677       # The diagnosis changed in icc 8.0:
3678       #   icc: Command line remark: option '-MP' not supported
3679       if (grep 'ignoring option' conftest.err ||
3680           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3681         am_cv_CC_dependencies_compiler_type=$depmode
3682         break
3683       fi
3684     fi
3685   done
3686
3687   cd ..
3688   rm -rf conftest.dir
3689 else
3690   am_cv_CC_dependencies_compiler_type=none
3691 fi
3692
3693 fi
3694 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3695 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3696 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3697
3698
3699
3700 if
3701   test "x$enable_dependency_tracking" != xno \
3702   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3703   am__fastdepCC_TRUE=
3704   am__fastdepCC_FALSE='#'
3705 else
3706   am__fastdepCC_TRUE='#'
3707   am__fastdepCC_FALSE=
3708 fi
3709
3710
3711 # Make sure we can run config.sub.
3712 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3713   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3714 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3715    { (exit 1); exit 1; }; }
3716
3717 { echo "$as_me:$LINENO: checking build system type" >&5
3718 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3719 if test "${ac_cv_build+set}" = set; then
3720   echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722   ac_build_alias=$build_alias
3723 test "x$ac_build_alias" = x &&
3724   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3725 test "x$ac_build_alias" = x &&
3726   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3727 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3728    { (exit 1); exit 1; }; }
3729 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3730   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3731 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3732    { (exit 1); exit 1; }; }
3733
3734 fi
3735 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3736 echo "${ECHO_T}$ac_cv_build" >&6; }
3737 case $ac_cv_build in
3738 *-*-*) ;;
3739 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3740 echo "$as_me: error: invalid value of canonical build" >&2;}
3741    { (exit 1); exit 1; }; };;
3742 esac
3743 build=$ac_cv_build
3744 ac_save_IFS=$IFS; IFS='-'
3745 set x $ac_cv_build
3746 shift
3747 build_cpu=$1
3748 build_vendor=$2
3749 shift; shift
3750 # Remember, the first character of IFS is used to create $*,
3751 # except with old shells:
3752 build_os=$*
3753 IFS=$ac_save_IFS
3754 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3755
3756
3757 { echo "$as_me:$LINENO: checking host system type" >&5
3758 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3759 if test "${ac_cv_host+set}" = set; then
3760   echo $ECHO_N "(cached) $ECHO_C" >&6
3761 else
3762   if test "x$host_alias" = x; then
3763   ac_cv_host=$ac_cv_build
3764 else
3765   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3766     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3767 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3768    { (exit 1); exit 1; }; }
3769 fi
3770
3771 fi
3772 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3773 echo "${ECHO_T}$ac_cv_host" >&6; }
3774 case $ac_cv_host in
3775 *-*-*) ;;
3776 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3777 echo "$as_me: error: invalid value of canonical host" >&2;}
3778    { (exit 1); exit 1; }; };;
3779 esac
3780 host=$ac_cv_host
3781 ac_save_IFS=$IFS; IFS='-'
3782 set x $ac_cv_host
3783 shift
3784 host_cpu=$1
3785 host_vendor=$2
3786 shift; shift
3787 # Remember, the first character of IFS is used to create $*,
3788 # except with old shells:
3789 host_os=$*
3790 IFS=$ac_save_IFS
3791 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3792
3793
3794
3795 ac_ext=c
3796 ac_cpp='$CPP $CPPFLAGS'
3797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3800 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3801 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3802 # On Suns, sometimes $CPP names a directory.
3803 if test -n "$CPP" && test -d "$CPP"; then
3804   CPP=
3805 fi
3806 if test -z "$CPP"; then
3807   if test "${ac_cv_prog_CPP+set}" = set; then
3808   echo $ECHO_N "(cached) $ECHO_C" >&6
3809 else
3810       # Double quotes because CPP needs to be expanded
3811     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3812     do
3813       ac_preproc_ok=false
3814 for ac_c_preproc_warn_flag in '' yes
3815 do
3816   # Use a header file that comes with gcc, so configuring glibc
3817   # with a fresh cross-compiler works.
3818   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3819   # <limits.h> exists even on freestanding compilers.
3820   # On the NeXT, cc -E runs the code through the compiler's parser,
3821   # not just through cpp. "Syntax error" is here to catch this case.
3822   cat >conftest.$ac_ext <<_ACEOF
3823 /* confdefs.h.  */
3824 _ACEOF
3825 cat confdefs.h >>conftest.$ac_ext
3826 cat >>conftest.$ac_ext <<_ACEOF
3827 /* end confdefs.h.  */
3828 #ifdef __STDC__
3829 # include <limits.h>
3830 #else
3831 # include <assert.h>
3832 #endif
3833                      Syntax error
3834 _ACEOF
3835 if { (ac_try="$ac_cpp conftest.$ac_ext"
3836 case "(($ac_try" in
3837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3838   *) ac_try_echo=$ac_try;;
3839 esac
3840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3841   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3842   ac_status=$?
3843   grep -v '^ *+' conftest.er1 >conftest.err
3844   rm -f conftest.er1
3845   cat conftest.err >&5
3846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847   (exit $ac_status); } >/dev/null; then
3848   if test -s conftest.err; then
3849     ac_cpp_err=$ac_c_preproc_warn_flag
3850     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3851   else
3852     ac_cpp_err=
3853   fi
3854 else
3855   ac_cpp_err=yes
3856 fi
3857 if test -z "$ac_cpp_err"; then
3858   :
3859 else
3860   echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3862
3863   # Broken: fails on valid input.
3864 continue
3865 fi
3866
3867 rm -f conftest.err conftest.$ac_ext
3868
3869   # OK, works on sane cases.  Now check whether nonexistent headers
3870   # can be detected and how.
3871   cat >conftest.$ac_ext <<_ACEOF
3872 /* confdefs.h.  */
3873 _ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h.  */
3877 #include <ac_nonexistent.h>
3878 _ACEOF
3879 if { (ac_try="$ac_cpp conftest.$ac_ext"
3880 case "(($ac_try" in
3881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882   *) ac_try_echo=$ac_try;;
3883 esac
3884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3885   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3886   ac_status=$?
3887   grep -v '^ *+' conftest.er1 >conftest.err
3888   rm -f conftest.er1
3889   cat conftest.err >&5
3890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891   (exit $ac_status); } >/dev/null; then
3892   if test -s conftest.err; then
3893     ac_cpp_err=$ac_c_preproc_warn_flag
3894     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3895   else
3896     ac_cpp_err=
3897   fi
3898 else
3899   ac_cpp_err=yes
3900 fi
3901 if test -z "$ac_cpp_err"; then
3902   # Broken: success on invalid input.
3903 continue
3904 else
3905   echo "$as_me: failed program was:" >&5
3906 sed 's/^/| /' conftest.$ac_ext >&5
3907
3908   # Passes both tests.
3909 ac_preproc_ok=:
3910 break
3911 fi
3912
3913 rm -f conftest.err conftest.$ac_ext
3914
3915 done
3916 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3917 rm -f conftest.err conftest.$ac_ext
3918 if $ac_preproc_ok; then
3919   break
3920 fi
3921
3922     done
3923     ac_cv_prog_CPP=$CPP
3924
3925 fi
3926   CPP=$ac_cv_prog_CPP
3927 else
3928   ac_cv_prog_CPP=$CPP
3929 fi
3930 { echo "$as_me:$LINENO: result: $CPP" >&5
3931 echo "${ECHO_T}$CPP" >&6; }
3932 ac_preproc_ok=false
3933 for ac_c_preproc_warn_flag in '' yes
3934 do
3935   # Use a header file that comes with gcc, so configuring glibc
3936   # with a fresh cross-compiler works.
3937   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3938   # <limits.h> exists even on freestanding compilers.
3939   # On the NeXT, cc -E runs the code through the compiler's parser,
3940   # not just through cpp. "Syntax error" is here to catch this case.
3941   cat >conftest.$ac_ext <<_ACEOF
3942 /* confdefs.h.  */
3943 _ACEOF
3944 cat confdefs.h >>conftest.$ac_ext
3945 cat >>conftest.$ac_ext <<_ACEOF
3946 /* end confdefs.h.  */
3947 #ifdef __STDC__
3948 # include <limits.h>
3949 #else
3950 # include <assert.h>
3951 #endif
3952                      Syntax error
3953 _ACEOF
3954 if { (ac_try="$ac_cpp conftest.$ac_ext"
3955 case "(($ac_try" in
3956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957   *) ac_try_echo=$ac_try;;
3958 esac
3959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3960   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3961   ac_status=$?
3962   grep -v '^ *+' conftest.er1 >conftest.err
3963   rm -f conftest.er1
3964   cat conftest.err >&5
3965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966   (exit $ac_status); } >/dev/null; then
3967   if test -s conftest.err; then
3968     ac_cpp_err=$ac_c_preproc_warn_flag
3969     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3970   else
3971     ac_cpp_err=
3972   fi
3973 else
3974   ac_cpp_err=yes
3975 fi
3976 if test -z "$ac_cpp_err"; then
3977   :
3978 else
3979   echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3981
3982   # Broken: fails on valid input.
3983 continue
3984 fi
3985
3986 rm -f conftest.err conftest.$ac_ext
3987
3988   # OK, works on sane cases.  Now check whether nonexistent headers
3989   # can be detected and how.
3990   cat >conftest.$ac_ext <<_ACEOF
3991 /* confdefs.h.  */
3992 _ACEOF
3993 cat confdefs.h >>conftest.$ac_ext
3994 cat >>conftest.$ac_ext <<_ACEOF
3995 /* end confdefs.h.  */
3996 #include <ac_nonexistent.h>
3997 _ACEOF
3998 if { (ac_try="$ac_cpp conftest.$ac_ext"
3999 case "(($ac_try" in
4000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001   *) ac_try_echo=$ac_try;;
4002 esac
4003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4004   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4005   ac_status=$?
4006   grep -v '^ *+' conftest.er1 >conftest.err
4007   rm -f conftest.er1
4008   cat conftest.err >&5
4009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010   (exit $ac_status); } >/dev/null; then
4011   if test -s conftest.err; then
4012     ac_cpp_err=$ac_c_preproc_warn_flag
4013     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4014   else
4015     ac_cpp_err=
4016   fi
4017 else
4018   ac_cpp_err=yes
4019 fi
4020 if test -z "$ac_cpp_err"; then
4021   # Broken: success on invalid input.
4022 continue
4023 else
4024   echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4026
4027   # Passes both tests.
4028 ac_preproc_ok=:
4029 break
4030 fi
4031
4032 rm -f conftest.err conftest.$ac_ext
4033
4034 done
4035 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4036 rm -f conftest.err conftest.$ac_ext
4037 if $ac_preproc_ok; then
4038   :
4039 else
4040   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4041 See \`config.log' for more details." >&5
4042 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4043 See \`config.log' for more details." >&2;}
4044    { (exit 1); exit 1; }; }
4045 fi
4046
4047 ac_ext=c
4048 ac_cpp='$CPP $CPPFLAGS'
4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4052
4053
4054 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4055 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4056 if test "${ac_cv_path_GREP+set}" = set; then
4057   echo $ECHO_N "(cached) $ECHO_C" >&6
4058 else
4059   # Extract the first word of "grep ggrep" to use in msg output
4060 if test -z "$GREP"; then
4061 set dummy grep ggrep; ac_prog_name=$2
4062 if test "${ac_cv_path_GREP+set}" = set; then
4063   echo $ECHO_N "(cached) $ECHO_C" >&6
4064 else
4065   ac_path_GREP_found=false
4066 # Loop through the user's path and test for each of PROGNAME-LIST
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4069 do
4070   IFS=$as_save_IFS
4071   test -z "$as_dir" && as_dir=.
4072   for ac_prog in grep ggrep; do
4073   for ac_exec_ext in '' $ac_executable_extensions; do
4074     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4075     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4076     # Check for GNU ac_path_GREP and select it if it is found.
4077   # Check for GNU $ac_path_GREP
4078 case `"$ac_path_GREP" --version 2>&1` in
4079 *GNU*)
4080   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4081 *)
4082   ac_count=0
4083   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4084   while :
4085   do
4086     cat "conftest.in" "conftest.in" >"conftest.tmp"
4087     mv "conftest.tmp" "conftest.in"
4088     cp "conftest.in" "conftest.nl"
4089     echo 'GREP' >> "conftest.nl"
4090     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4091     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4092     ac_count=`expr $ac_count + 1`
4093     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4094       # Best one so far, save it but keep looking for a better one
4095       ac_cv_path_GREP="$ac_path_GREP"
4096       ac_path_GREP_max=$ac_count
4097     fi
4098     # 10*(2^10) chars as input seems more than enough
4099     test $ac_count -gt 10 && break
4100   done
4101   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4102 esac
4103
4104
4105     $ac_path_GREP_found && break 3
4106   done
4107 done
4108
4109 done
4110 IFS=$as_save_IFS
4111
4112
4113 fi
4114
4115 GREP="$ac_cv_path_GREP"
4116 if test -z "$GREP"; then
4117   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4118 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4119    { (exit 1); exit 1; }; }
4120 fi
4121
4122 else
4123   ac_cv_path_GREP=$GREP
4124 fi
4125
4126
4127 fi
4128 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4129 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4130  GREP="$ac_cv_path_GREP"
4131
4132
4133 { echo "$as_me:$LINENO: checking for egrep" >&5
4134 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4135 if test "${ac_cv_path_EGREP+set}" = set; then
4136   echo $ECHO_N "(cached) $ECHO_C" >&6
4137 else
4138   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4139    then ac_cv_path_EGREP="$GREP -E"
4140    else
4141      # Extract the first word of "egrep" to use in msg output
4142 if test -z "$EGREP"; then
4143 set dummy egrep; ac_prog_name=$2
4144 if test "${ac_cv_path_EGREP+set}" = set; then
4145   echo $ECHO_N "(cached) $ECHO_C" >&6
4146 else
4147   ac_path_EGREP_found=false
4148 # Loop through the user's path and test for each of PROGNAME-LIST
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4151 do
4152   IFS=$as_save_IFS
4153   test -z "$as_dir" && as_dir=.
4154   for ac_prog in egrep; do
4155   for ac_exec_ext in '' $ac_executable_extensions; do
4156     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4157     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4158     # Check for GNU ac_path_EGREP and select it if it is found.
4159   # Check for GNU $ac_path_EGREP
4160 case `"$ac_path_EGREP" --version 2>&1` in
4161 *GNU*)
4162   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4163 *)
4164   ac_count=0
4165   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4166   while :
4167   do
4168     cat "conftest.in" "conftest.in" >"conftest.tmp"
4169     mv "conftest.tmp" "conftest.in"
4170     cp "conftest.in" "conftest.nl"
4171     echo 'EGREP' >> "conftest.nl"
4172     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4173     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4174     ac_count=`expr $ac_count + 1`
4175     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4176       # Best one so far, save it but keep looking for a better one
4177       ac_cv_path_EGREP="$ac_path_EGREP"
4178       ac_path_EGREP_max=$ac_count
4179     fi
4180     # 10*(2^10) chars as input seems more than enough
4181     test $ac_count -gt 10 && break
4182   done
4183   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4184 esac
4185
4186
4187     $ac_path_EGREP_found && break 3
4188   done
4189 done
4190
4191 done
4192 IFS=$as_save_IFS
4193
4194
4195 fi
4196
4197 EGREP="$ac_cv_path_EGREP"
4198 if test -z "$EGREP"; then
4199   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4200 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4201    { (exit 1); exit 1; }; }
4202 fi
4203
4204 else
4205   ac_cv_path_EGREP=$EGREP
4206 fi
4207
4208
4209    fi
4210 fi
4211 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4212 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4213  EGREP="$ac_cv_path_EGREP"
4214
4215
4216
4217     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
4218 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
4219 if test "${ac_cv_gnu_library_2+set}" = set; then
4220   echo $ECHO_N "(cached) $ECHO_C" >&6
4221 else
4222   cat >conftest.$ac_ext <<_ACEOF
4223 /* confdefs.h.  */
4224 _ACEOF
4225 cat confdefs.h >>conftest.$ac_ext
4226 cat >>conftest.$ac_ext <<_ACEOF
4227 /* end confdefs.h.  */
4228
4229 #include <features.h>
4230 #ifdef __GNU_LIBRARY__
4231  #if (__GLIBC__ >= 2)
4232   Lucky GNU user
4233  #endif
4234 #endif
4235
4236 _ACEOF
4237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4238   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
4239   ac_cv_gnu_library_2=yes
4240 else
4241   ac_cv_gnu_library_2=no
4242 fi
4243 rm -f conftest*
4244
4245
4246
4247 fi
4248 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
4249 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
4250
4251     GLIBC2="$ac_cv_gnu_library_2"
4252
4253
4254 if test -n "$ac_tool_prefix"; then
4255   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4256 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4259 if test "${ac_cv_prog_RANLIB+set}" = set; then
4260   echo $ECHO_N "(cached) $ECHO_C" >&6
4261 else
4262   if test -n "$RANLIB"; then
4263   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4264 else
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH
4267 do
4268   IFS=$as_save_IFS
4269   test -z "$as_dir" && as_dir=.
4270   for ac_exec_ext in '' $ac_executable_extensions; do
4271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4272     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4273     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4274     break 2
4275   fi
4276 done
4277 done
4278 IFS=$as_save_IFS
4279
4280 fi
4281 fi
4282 RANLIB=$ac_cv_prog_RANLIB
4283 if test -n "$RANLIB"; then
4284   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4285 echo "${ECHO_T}$RANLIB" >&6; }
4286 else
4287   { echo "$as_me:$LINENO: result: no" >&5
4288 echo "${ECHO_T}no" >&6; }
4289 fi
4290
4291
4292 fi
4293 if test -z "$ac_cv_prog_RANLIB"; then
4294   ac_ct_RANLIB=$RANLIB
4295   # Extract the first word of "ranlib", so it can be a program name with args.
4296 set dummy ranlib; ac_word=$2
4297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4299 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4300   echo $ECHO_N "(cached) $ECHO_C" >&6
4301 else
4302   if test -n "$ac_ct_RANLIB"; then
4303   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4304 else
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH
4307 do
4308   IFS=$as_save_IFS
4309   test -z "$as_dir" && as_dir=.
4310   for ac_exec_ext in '' $ac_executable_extensions; do
4311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4312     ac_cv_prog_ac_ct_RANLIB="ranlib"
4313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4314     break 2
4315   fi
4316 done
4317 done
4318 IFS=$as_save_IFS
4319
4320 fi
4321 fi
4322 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4323 if test -n "$ac_ct_RANLIB"; then
4324   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4325 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4326 else
4327   { echo "$as_me:$LINENO: result: no" >&5
4328 echo "${ECHO_T}no" >&6; }
4329 fi
4330
4331   if test "x$ac_ct_RANLIB" = x; then
4332     RANLIB=":"
4333   else
4334     case $cross_compiling:$ac_tool_warned in
4335 yes:)
4336 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4337 whose name does not start with the host triplet.  If you think this
4338 configuration is useful to you, please write to autoconf@gnu.org." >&5
4339 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4340 whose name does not start with the host triplet.  If you think this
4341 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4342 ac_tool_warned=yes ;;
4343 esac
4344     RANLIB=$ac_ct_RANLIB
4345   fi
4346 else
4347   RANLIB="$ac_cv_prog_RANLIB"
4348 fi
4349
4350 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
4351 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4352 if test "${ac_cv_search_strerror+set}" = set; then
4353   echo $ECHO_N "(cached) $ECHO_C" >&6
4354 else
4355   ac_func_search_save_LIBS=$LIBS
4356 cat >conftest.$ac_ext <<_ACEOF
4357 /* confdefs.h.  */
4358 _ACEOF
4359 cat confdefs.h >>conftest.$ac_ext
4360 cat >>conftest.$ac_ext <<_ACEOF
4361 /* end confdefs.h.  */
4362
4363 /* Override any GCC internal prototype to avoid an error.
4364    Use char because int might match the return type of a GCC
4365    builtin and then its argument prototype would still apply.  */
4366 #ifdef __cplusplus
4367 extern "C"
4368 #endif
4369 char strerror ();
4370 int
4371 main ()
4372 {
4373 return strerror ();
4374   ;
4375   return 0;
4376 }
4377 _ACEOF
4378 for ac_lib in '' cposix; do
4379   if test -z "$ac_lib"; then
4380     ac_res="none required"
4381   else
4382     ac_res=-l$ac_lib
4383     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4384   fi
4385   rm -f conftest.$ac_objext conftest$ac_exeext
4386 if { (ac_try="$ac_link"
4387 case "(($ac_try" in
4388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389   *) ac_try_echo=$ac_try;;
4390 esac
4391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4392   (eval "$ac_link") 2>conftest.er1
4393   ac_status=$?
4394   grep -v '^ *+' conftest.er1 >conftest.err
4395   rm -f conftest.er1
4396   cat conftest.err >&5
4397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398   (exit $ac_status); } &&
4399          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4400   { (case "(($ac_try" in
4401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402   *) ac_try_echo=$ac_try;;
4403 esac
4404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4405   (eval "$ac_try") 2>&5
4406   ac_status=$?
4407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408   (exit $ac_status); }; } &&
4409          { ac_try='test -s conftest$ac_exeext'
4410   { (case "(($ac_try" in
4411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4412   *) ac_try_echo=$ac_try;;
4413 esac
4414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4415   (eval "$ac_try") 2>&5
4416   ac_status=$?
4417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418   (exit $ac_status); }; }; then
4419   ac_cv_search_strerror=$ac_res
4420 else
4421   echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4423
4424
4425 fi
4426
4427 rm -f core conftest.err conftest.$ac_objext \
4428       conftest$ac_exeext
4429   if test "${ac_cv_search_strerror+set}" = set; then
4430   break
4431 fi
4432 done
4433 if test "${ac_cv_search_strerror+set}" = set; then
4434   :
4435 else
4436   ac_cv_search_strerror=no
4437 fi
4438 rm conftest.$ac_ext
4439 LIBS=$ac_func_search_save_LIBS
4440 fi
4441 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
4442 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
4443 ac_res=$ac_cv_search_strerror
4444 if test "$ac_res" != no; then
4445   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4446
4447 fi
4448
4449 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4450 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4451 if test "${ac_cv_header_stdc+set}" = set; then
4452   echo $ECHO_N "(cached) $ECHO_C" >&6
4453 else
4454   cat >conftest.$ac_ext <<_ACEOF
4455 /* confdefs.h.  */
4456 _ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h.  */
4460 #include <stdlib.h>
4461 #include <stdarg.h>
4462 #include <string.h>
4463 #include <float.h>
4464
4465 int
4466 main ()
4467 {
4468
4469   ;
4470   return 0;
4471 }
4472 _ACEOF
4473 rm -f conftest.$ac_objext
4474 if { (ac_try="$ac_compile"
4475 case "(($ac_try" in
4476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477   *) ac_try_echo=$ac_try;;
4478 esac
4479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4480   (eval "$ac_compile") 2>conftest.er1
4481   ac_status=$?
4482   grep -v '^ *+' conftest.er1 >conftest.err
4483   rm -f conftest.er1
4484   cat conftest.err >&5
4485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486   (exit $ac_status); } &&
4487          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4488   { (case "(($ac_try" in
4489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4490   *) ac_try_echo=$ac_try;;
4491 esac
4492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4493   (eval "$ac_try") 2>&5
4494   ac_status=$?
4495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4496   (exit $ac_status); }; } &&
4497          { ac_try='test -s conftest.$ac_objext'
4498   { (case "(($ac_try" in
4499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500   *) ac_try_echo=$ac_try;;
4501 esac
4502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4503   (eval "$ac_try") 2>&5
4504   ac_status=$?
4505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506   (exit $ac_status); }; }; then
4507   ac_cv_header_stdc=yes
4508 else
4509   echo "$as_me: failed program was:" >&5
4510 sed 's/^/| /' conftest.$ac_ext >&5
4511
4512         ac_cv_header_stdc=no
4513 fi
4514
4515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4516
4517 if test $ac_cv_header_stdc = yes; then
4518   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4519   cat >conftest.$ac_ext <<_ACEOF
4520 /* confdefs.h.  */
4521 _ACEOF
4522 cat confdefs.h >>conftest.$ac_ext
4523 cat >>conftest.$ac_ext <<_ACEOF
4524 /* end confdefs.h.  */
4525 #include <string.h>
4526
4527 _ACEOF
4528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4529   $EGREP "memchr" >/dev/null 2>&1; then
4530   :
4531 else
4532   ac_cv_header_stdc=no
4533 fi
4534 rm -f conftest*
4535
4536 fi
4537
4538 if test $ac_cv_header_stdc = yes; then
4539   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4540   cat >conftest.$ac_ext <<_ACEOF
4541 /* confdefs.h.  */
4542 _ACEOF
4543 cat confdefs.h >>conftest.$ac_ext
4544 cat >>conftest.$ac_ext <<_ACEOF
4545 /* end confdefs.h.  */
4546 #include <stdlib.h>
4547
4548 _ACEOF
4549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4550   $EGREP "free" >/dev/null 2>&1; then
4551   :
4552 else
4553   ac_cv_header_stdc=no
4554 fi
4555 rm -f conftest*
4556
4557 fi
4558
4559 if test $ac_cv_header_stdc = yes; then
4560   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4561   if test "$cross_compiling" = yes; then
4562   :
4563 else
4564   cat >conftest.$ac_ext <<_ACEOF
4565 /* confdefs.h.  */
4566 _ACEOF
4567 cat confdefs.h >>conftest.$ac_ext
4568 cat >>conftest.$ac_ext <<_ACEOF
4569 /* end confdefs.h.  */
4570 #include <ctype.h>
4571 #include <stdlib.h>
4572 #if ((' ' & 0x0FF) == 0x020)
4573 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4574 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4575 #else
4576 # define ISLOWER(c) \
4577                    (('a' <= (c) && (c) <= 'i') \
4578                      || ('j' <= (c) && (c) <= 'r') \
4579                      || ('s' <= (c) && (c) <= 'z'))
4580 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4581 #endif
4582
4583 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4584 int
4585 main ()
4586 {
4587   int i;
4588   for (i = 0; i < 256; i++)
4589     if (XOR (islower (i), ISLOWER (i))
4590         || toupper (i) != TOUPPER (i))
4591       return 2;
4592   return 0;
4593 }
4594 _ACEOF
4595 rm -f conftest$ac_exeext
4596 if { (ac_try="$ac_link"
4597 case "(($ac_try" in
4598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4599   *) ac_try_echo=$ac_try;;
4600 esac
4601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4602   (eval "$ac_link") 2>&5
4603   ac_status=$?
4604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4606   { (case "(($ac_try" in
4607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608   *) ac_try_echo=$ac_try;;
4609 esac
4610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4611   (eval "$ac_try") 2>&5
4612   ac_status=$?
4613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614   (exit $ac_status); }; }; then
4615   :
4616 else
4617   echo "$as_me: program exited with status $ac_status" >&5
4618 echo "$as_me: failed program was:" >&5
4619 sed 's/^/| /' conftest.$ac_ext >&5
4620
4621 ( exit $ac_status )
4622 ac_cv_header_stdc=no
4623 fi
4624 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4625 fi
4626
4627
4628 fi
4629 fi
4630 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4631 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4632 if test $ac_cv_header_stdc = yes; then
4633
4634 cat >>confdefs.h <<\_ACEOF
4635 #define STDC_HEADERS 1
4636 _ACEOF
4637
4638 fi
4639
4640 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4641 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4642 if test "${ac_cv_c_const+set}" = set; then
4643   echo $ECHO_N "(cached) $ECHO_C" >&6
4644 else
4645   cat >conftest.$ac_ext <<_ACEOF
4646 /* confdefs.h.  */
4647 _ACEOF
4648 cat confdefs.h >>conftest.$ac_ext
4649 cat >>conftest.$ac_ext <<_ACEOF
4650 /* end confdefs.h.  */
4651
4652 int
4653 main ()
4654 {
4655 /* FIXME: Include the comments suggested by Paul. */
4656 #ifndef __cplusplus
4657   /* Ultrix mips cc rejects this.  */
4658   typedef int charset[2];
4659   const charset x;
4660   /* SunOS 4.1.1 cc rejects this.  */
4661   char const *const *ccp;
4662   char **p;
4663   /* NEC SVR4.0.2 mips cc rejects this.  */
4664   struct point {int x, y;};
4665   static struct point const zero = {0,0};
4666   /* AIX XL C 1.02.0.0 rejects this.
4667      It does not let you subtract one const X* pointer from another in
4668      an arm of an if-expression whose if-part is not a constant
4669      expression */
4670   const char *g = "string";
4671   ccp = &g + (g ? g-g : 0);
4672   /* HPUX 7.0 cc rejects these. */
4673   ++ccp;
4674   p = (char**) ccp;
4675   ccp = (char const *const *) p;
4676   { /* SCO 3.2v4 cc rejects this.  */
4677     char *t;
4678     char const *s = 0 ? (char *) 0 : (char const *) 0;
4679
4680     *t++ = 0;
4681     if (s) return 0;
4682   }
4683   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4684     int x[] = {25, 17};
4685     const int *foo = &x[0];
4686     ++foo;
4687   }
4688   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4689     typedef const int *iptr;
4690     iptr p = 0;
4691     ++p;
4692   }
4693   { /* AIX XL C 1.02.0.0 rejects this saying
4694        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4695     struct s { int j; const int *ap[3]; };
4696     struct s *b; b->j = 5;
4697   }
4698   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4699     const int foo = 10;
4700     if (!foo) return 0;
4701   }
4702   return !x[0] && !zero.x;
4703 #endif
4704
4705   ;
4706   return 0;
4707 }
4708 _ACEOF
4709 rm -f conftest.$ac_objext
4710 if { (ac_try="$ac_compile"
4711 case "(($ac_try" in
4712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4713   *) ac_try_echo=$ac_try;;
4714 esac
4715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4716   (eval "$ac_compile") 2>conftest.er1
4717   ac_status=$?
4718   grep -v '^ *+' conftest.er1 >conftest.err
4719   rm -f conftest.er1
4720   cat conftest.err >&5
4721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722   (exit $ac_status); } &&
4723          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4724   { (case "(($ac_try" in
4725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726   *) ac_try_echo=$ac_try;;
4727 esac
4728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4729   (eval "$ac_try") 2>&5
4730   ac_status=$?
4731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732   (exit $ac_status); }; } &&
4733          { ac_try='test -s conftest.$ac_objext'
4734   { (case "(($ac_try" in
4735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4736   *) ac_try_echo=$ac_try;;
4737 esac
4738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4739   (eval "$ac_try") 2>&5
4740   ac_status=$?
4741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742   (exit $ac_status); }; }; then
4743   ac_cv_c_const=yes
4744 else
4745   echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4747
4748         ac_cv_c_const=no
4749 fi
4750
4751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4752 fi
4753 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4754 echo "${ECHO_T}$ac_cv_c_const" >&6; }
4755 if test $ac_cv_c_const = no; then
4756
4757 cat >>confdefs.h <<\_ACEOF
4758 #define const
4759 _ACEOF
4760
4761 fi
4762
4763
4764   { echo "$as_me:$LINENO: checking for signed" >&5
4765 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
4766 if test "${bh_cv_c_signed+set}" = set; then
4767   echo $ECHO_N "(cached) $ECHO_C" >&6
4768 else
4769   cat >conftest.$ac_ext <<_ACEOF
4770 /* confdefs.h.  */
4771 _ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h.  */
4775
4776 int
4777 main ()
4778 {
4779 signed char x;
4780   ;
4781   return 0;
4782 }
4783 _ACEOF
4784 rm -f conftest.$ac_objext
4785 if { (ac_try="$ac_compile"
4786 case "(($ac_try" in
4787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4788   *) ac_try_echo=$ac_try;;
4789 esac
4790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4791   (eval "$ac_compile") 2>conftest.er1
4792   ac_status=$?
4793   grep -v '^ *+' conftest.er1 >conftest.err
4794   rm -f conftest.er1
4795   cat conftest.err >&5
4796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797   (exit $ac_status); } &&
4798          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4799   { (case "(($ac_try" in
4800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4801   *) ac_try_echo=$ac_try;;
4802 esac
4803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4804   (eval "$ac_try") 2>&5
4805   ac_status=$?
4806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807   (exit $ac_status); }; } &&
4808          { ac_try='test -s conftest.$ac_objext'
4809   { (case "(($ac_try" in
4810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4811   *) ac_try_echo=$ac_try;;
4812 esac
4813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4814   (eval "$ac_try") 2>&5
4815   ac_status=$?
4816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817   (exit $ac_status); }; }; then
4818   bh_cv_c_signed=yes
4819 else
4820   echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.$ac_ext >&5
4822
4823         bh_cv_c_signed=no
4824 fi
4825
4826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4827 fi
4828 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
4829 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
4830   if test $bh_cv_c_signed = no; then
4831
4832 cat >>confdefs.h <<\_ACEOF
4833 #define signed
4834 _ACEOF
4835
4836   fi
4837
4838 { echo "$as_me:$LINENO: checking for inline" >&5
4839 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
4840 if test "${ac_cv_c_inline+set}" = set; then
4841   echo $ECHO_N "(cached) $ECHO_C" >&6
4842 else
4843   ac_cv_c_inline=no
4844 for ac_kw in inline __inline__ __inline; do
4845   cat >conftest.$ac_ext <<_ACEOF
4846 /* confdefs.h.  */
4847 _ACEOF
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h.  */
4851 #ifndef __cplusplus
4852 typedef int foo_t;
4853 static $ac_kw foo_t static_foo () {return 0; }
4854 $ac_kw foo_t foo () {return 0; }
4855 #endif
4856
4857 _ACEOF
4858 rm -f conftest.$ac_objext
4859 if { (ac_try="$ac_compile"
4860 case "(($ac_try" in
4861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4862   *) ac_try_echo=$ac_try;;
4863 esac
4864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4865   (eval "$ac_compile") 2>conftest.er1
4866   ac_status=$?
4867   grep -v '^ *+' conftest.er1 >conftest.err
4868   rm -f conftest.er1
4869   cat conftest.err >&5
4870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871   (exit $ac_status); } &&
4872          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4873   { (case "(($ac_try" in
4874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875   *) ac_try_echo=$ac_try;;
4876 esac
4877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4878   (eval "$ac_try") 2>&5
4879   ac_status=$?
4880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881   (exit $ac_status); }; } &&
4882          { ac_try='test -s conftest.$ac_objext'
4883   { (case "(($ac_try" in
4884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4885   *) ac_try_echo=$ac_try;;
4886 esac
4887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4888   (eval "$ac_try") 2>&5
4889   ac_status=$?
4890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891   (exit $ac_status); }; }; then
4892   ac_cv_c_inline=$ac_kw
4893 else
4894   echo "$as_me: failed program was:" >&5
4895 sed 's/^/| /' conftest.$ac_ext >&5
4896
4897
4898 fi
4899
4900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4901   test "$ac_cv_c_inline" != no && break
4902 done
4903
4904 fi
4905 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4906 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
4907
4908
4909 case $ac_cv_c_inline in
4910   inline | yes) ;;
4911   *)
4912     case $ac_cv_c_inline in
4913       no) ac_val=;;
4914       *) ac_val=$ac_cv_c_inline;;
4915     esac
4916     cat >>confdefs.h <<_ACEOF
4917 #ifndef __cplusplus
4918 #define inline $ac_val
4919 #endif
4920 _ACEOF
4921     ;;
4922 esac
4923
4924 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4935                   inttypes.h stdint.h unistd.h
4936 do
4937 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4938 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4941   echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943   cat >conftest.$ac_ext <<_ACEOF
4944 /* confdefs.h.  */
4945 _ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h.  */
4949 $ac_includes_default
4950
4951 #include <$ac_header>
4952 _ACEOF
4953 rm -f conftest.$ac_objext
4954 if { (ac_try="$ac_compile"
4955 case "(($ac_try" in
4956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4957   *) ac_try_echo=$ac_try;;
4958 esac
4959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960   (eval "$ac_compile") 2>conftest.er1
4961   ac_status=$?
4962   grep -v '^ *+' conftest.er1 >conftest.err
4963   rm -f conftest.er1
4964   cat conftest.err >&5
4965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966   (exit $ac_status); } &&
4967          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4968   { (case "(($ac_try" in
4969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970   *) ac_try_echo=$ac_try;;
4971 esac
4972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4973   (eval "$ac_try") 2>&5
4974   ac_status=$?
4975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976   (exit $ac_status); }; } &&
4977          { ac_try='test -s conftest.$ac_objext'
4978   { (case "(($ac_try" in
4979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4980   *) ac_try_echo=$ac_try;;
4981 esac
4982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4983   (eval "$ac_try") 2>&5
4984   ac_status=$?
4985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986   (exit $ac_status); }; }; then
4987   eval "$as_ac_Header=yes"
4988 else
4989   echo "$as_me: failed program was:" >&5
4990 sed 's/^/| /' conftest.$ac_ext >&5
4991
4992         eval "$as_ac_Header=no"
4993 fi
4994
4995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4996 fi
4997 ac_res=`eval echo '${'$as_ac_Header'}'`
4998                { echo "$as_me:$LINENO: result: $ac_res" >&5
4999 echo "${ECHO_T}$ac_res" >&6; }
5000 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5001   cat >>confdefs.h <<_ACEOF
5002 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5003 _ACEOF
5004
5005 fi
5006
5007 done
5008
5009
5010 { echo "$as_me:$LINENO: checking for off_t" >&5
5011 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5012 if test "${ac_cv_type_off_t+set}" = set; then
5013   echo $ECHO_N "(cached) $ECHO_C" >&6
5014 else
5015   cat >conftest.$ac_ext <<_ACEOF
5016 /* confdefs.h.  */
5017 _ACEOF
5018 cat confdefs.h >>conftest.$ac_ext
5019 cat >>conftest.$ac_ext <<_ACEOF
5020 /* end confdefs.h.  */
5021 $ac_includes_default
5022 typedef off_t ac__type_new_;
5023 int
5024 main ()
5025 {
5026 if ((ac__type_new_ *) 0)
5027   return 0;
5028 if (sizeof (ac__type_new_))
5029   return 0;
5030   ;
5031   return 0;
5032 }
5033 _ACEOF
5034 rm -f conftest.$ac_objext
5035 if { (ac_try="$ac_compile"
5036 case "(($ac_try" in
5037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5038   *) ac_try_echo=$ac_try;;
5039 esac
5040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5041   (eval "$ac_compile") 2>conftest.er1
5042   ac_status=$?
5043   grep -v '^ *+' conftest.er1 >conftest.err
5044   rm -f conftest.er1
5045   cat conftest.err >&5
5046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047   (exit $ac_status); } &&
5048          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5049   { (case "(($ac_try" in
5050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5051   *) ac_try_echo=$ac_try;;
5052 esac
5053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5054   (eval "$ac_try") 2>&5
5055   ac_status=$?
5056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057   (exit $ac_status); }; } &&
5058          { ac_try='test -s conftest.$ac_objext'
5059   { (case "(($ac_try" in
5060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5061   *) ac_try_echo=$ac_try;;
5062 esac
5063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5064   (eval "$ac_try") 2>&5
5065   ac_status=$?
5066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067   (exit $ac_status); }; }; then
5068   ac_cv_type_off_t=yes
5069 else
5070   echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5072
5073         ac_cv_type_off_t=no
5074 fi
5075
5076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5077 fi
5078 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5079 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5080 if test $ac_cv_type_off_t = yes; then
5081   :
5082 else
5083
5084 cat >>confdefs.h <<_ACEOF
5085 #define off_t long int
5086 _ACEOF
5087
5088 fi
5089
5090 { echo "$as_me:$LINENO: checking for size_t" >&5
5091 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5092 if test "${ac_cv_type_size_t+set}" = set; then
5093   echo $ECHO_N "(cached) $ECHO_C" >&6
5094 else
5095   cat >conftest.$ac_ext <<_ACEOF
5096 /* confdefs.h.  */
5097 _ACEOF
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h.  */
5101 $ac_includes_default
5102 typedef size_t ac__type_new_;
5103 int
5104 main ()
5105 {
5106 if ((ac__type_new_ *) 0)
5107   return 0;
5108 if (sizeof (ac__type_new_))
5109   return 0;
5110   ;
5111   return 0;
5112 }
5113 _ACEOF
5114 rm -f conftest.$ac_objext
5115 if { (ac_try="$ac_compile"
5116 case "(($ac_try" in
5117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5118   *) ac_try_echo=$ac_try;;
5119 esac
5120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5121   (eval "$ac_compile") 2>conftest.er1
5122   ac_status=$?
5123   grep -v '^ *+' conftest.er1 >conftest.err
5124   rm -f conftest.er1
5125   cat conftest.err >&5
5126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127   (exit $ac_status); } &&
5128          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5129   { (case "(($ac_try" in
5130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131   *) ac_try_echo=$ac_try;;
5132 esac
5133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5134   (eval "$ac_try") 2>&5
5135   ac_status=$?
5136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137   (exit $ac_status); }; } &&
5138          { ac_try='test -s conftest.$ac_objext'
5139   { (case "(($ac_try" in
5140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5141   *) ac_try_echo=$ac_try;;
5142 esac
5143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5144   (eval "$ac_try") 2>&5
5145   ac_status=$?
5146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147   (exit $ac_status); }; }; then
5148   ac_cv_type_size_t=yes
5149 else
5150   echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5152
5153         ac_cv_type_size_t=no
5154 fi
5155
5156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5157 fi
5158 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5159 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5160 if test $ac_cv_type_size_t = yes; then
5161   :
5162 else
5163
5164 cat >>confdefs.h <<_ACEOF
5165 #define size_t unsigned int
5166 _ACEOF
5167
5168 fi
5169
5170
5171   { echo "$as_me:$LINENO: checking for long long" >&5
5172 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
5173 if test "${ac_cv_type_long_long+set}" = set; then
5174   echo $ECHO_N "(cached) $ECHO_C" >&6
5175 else
5176   cat >conftest.$ac_ext <<_ACEOF
5177 /* confdefs.h.  */
5178 _ACEOF
5179 cat confdefs.h >>conftest.$ac_ext
5180 cat >>conftest.$ac_ext <<_ACEOF
5181 /* end confdefs.h.  */
5182 long long ll = 1LL; int i = 63;
5183 int
5184 main ()
5185 {
5186 long long llmax = (long long) -1;
5187      return ll << i | ll >> i | llmax / ll | llmax % ll;
5188   ;
5189   return 0;
5190 }
5191 _ACEOF
5192 rm -f conftest.$ac_objext conftest$ac_exeext
5193 if { (ac_try="$ac_link"
5194 case "(($ac_try" in
5195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5196   *) ac_try_echo=$ac_try;;
5197 esac
5198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5199   (eval "$ac_link") 2>conftest.er1
5200   ac_status=$?
5201   grep -v '^ *+' conftest.er1 >conftest.err
5202   rm -f conftest.er1
5203   cat conftest.err >&5
5204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205   (exit $ac_status); } &&
5206          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5207   { (case "(($ac_try" in
5208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5209   *) ac_try_echo=$ac_try;;
5210 esac
5211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5212   (eval "$ac_try") 2>&5
5213   ac_status=$?
5214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215   (exit $ac_status); }; } &&
5216          { ac_try='test -s conftest$ac_exeext'
5217   { (case "(($ac_try" in
5218   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5219   *) ac_try_echo=$ac_try;;
5220 esac
5221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5222   (eval "$ac_try") 2>&5
5223   ac_status=$?
5224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225   (exit $ac_status); }; }; then
5226   ac_cv_type_long_long=yes
5227 else
5228   echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5230
5231         ac_cv_type_long_long=no
5232 fi
5233
5234 rm -f core conftest.err conftest.$ac_objext \
5235       conftest$ac_exeext conftest.$ac_ext
5236 fi
5237 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5238 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
5239   if test $ac_cv_type_long_long = yes; then
5240
5241 cat >>confdefs.h <<\_ACEOF
5242 #define HAVE_LONG_LONG 1
5243 _ACEOF
5244
5245   fi
5246
5247
5248   { echo "$as_me:$LINENO: checking for long double" >&5
5249 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
5250 if test "${gt_cv_c_long_double+set}" = set; then
5251   echo $ECHO_N "(cached) $ECHO_C" >&6
5252 else
5253   if test "$GCC" = yes; then
5254        gt_cv_c_long_double=yes
5255      else
5256        cat >conftest.$ac_ext <<_ACEOF
5257 /* confdefs.h.  */
5258 _ACEOF
5259 cat confdefs.h >>conftest.$ac_ext
5260 cat >>conftest.$ac_ext <<_ACEOF
5261 /* end confdefs.h.  */
5262
5263          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
5264          long double foo = 0.0;
5265          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
5266          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5267
5268 int
5269 main ()
5270 {
5271
5272   ;
5273   return 0;
5274 }
5275 _ACEOF
5276 rm -f conftest.$ac_objext
5277 if { (ac_try="$ac_compile"
5278 case "(($ac_try" in
5279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5280   *) ac_try_echo=$ac_try;;
5281 esac
5282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5283   (eval "$ac_compile") 2>conftest.er1
5284   ac_status=$?
5285   grep -v '^ *+' conftest.er1 >conftest.err
5286   rm -f conftest.er1
5287   cat conftest.err >&5
5288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289   (exit $ac_status); } &&
5290          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5291   { (case "(($ac_try" in
5292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5293   *) ac_try_echo=$ac_try;;
5294 esac
5295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5296   (eval "$ac_try") 2>&5
5297   ac_status=$?
5298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299   (exit $ac_status); }; } &&
5300          { ac_try='test -s conftest.$ac_objext'
5301   { (case "(($ac_try" in
5302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5303   *) ac_try_echo=$ac_try;;
5304 esac
5305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5306   (eval "$ac_try") 2>&5
5307   ac_status=$?
5308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309   (exit $ac_status); }; }; then
5310   gt_cv_c_long_double=yes
5311 else
5312   echo "$as_me: failed program was:" >&5
5313 sed 's/^/| /' conftest.$ac_ext >&5
5314
5315         gt_cv_c_long_double=no
5316 fi
5317
5318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5319      fi
5320 fi
5321 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5322 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
5323   if test $gt_cv_c_long_double = yes; then
5324
5325 cat >>confdefs.h <<\_ACEOF
5326 #define HAVE_LONG_DOUBLE 1
5327 _ACEOF
5328
5329   fi
5330
5331
5332   { echo "$as_me:$LINENO: checking for wchar_t" >&5
5333 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
5334 if test "${gt_cv_c_wchar_t+set}" = set; then
5335   echo $ECHO_N "(cached) $ECHO_C" >&6
5336 else
5337   cat >conftest.$ac_ext <<_ACEOF
5338 /* confdefs.h.  */
5339 _ACEOF
5340 cat confdefs.h >>conftest.$ac_ext
5341 cat >>conftest.$ac_ext <<_ACEOF
5342 /* end confdefs.h.  */
5343 #include <stddef.h>
5344        wchar_t foo = (wchar_t)'\0';
5345 int
5346 main ()
5347 {
5348
5349   ;
5350   return 0;
5351 }
5352 _ACEOF
5353 rm -f conftest.$ac_objext
5354 if { (ac_try="$ac_compile"
5355 case "(($ac_try" in
5356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357   *) ac_try_echo=$ac_try;;
5358 esac
5359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5360   (eval "$ac_compile") 2>conftest.er1
5361   ac_status=$?
5362   grep -v '^ *+' conftest.er1 >conftest.err
5363   rm -f conftest.er1
5364   cat conftest.err >&5
5365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366   (exit $ac_status); } &&
5367          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5368   { (case "(($ac_try" in
5369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5370   *) ac_try_echo=$ac_try;;
5371 esac
5372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5373   (eval "$ac_try") 2>&5
5374   ac_status=$?
5375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376   (exit $ac_status); }; } &&
5377          { ac_try='test -s conftest.$ac_objext'
5378   { (case "(($ac_try" in
5379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5380   *) ac_try_echo=$ac_try;;
5381 esac
5382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5383   (eval "$ac_try") 2>&5
5384   ac_status=$?
5385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5386   (exit $ac_status); }; }; then
5387   gt_cv_c_wchar_t=yes
5388 else
5389   echo "$as_me: failed program was:" >&5
5390 sed 's/^/| /' conftest.$ac_ext >&5
5391
5392         gt_cv_c_wchar_t=no
5393 fi
5394
5395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5396 fi
5397 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5398 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
5399   if test $gt_cv_c_wchar_t = yes; then
5400
5401 cat >>confdefs.h <<\_ACEOF
5402 #define HAVE_WCHAR_T 1
5403 _ACEOF
5404
5405   fi
5406
5407
5408   { echo "$as_me:$LINENO: checking for wint_t" >&5
5409 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
5410 if test "${gt_cv_c_wint_t+set}" = set; then
5411   echo $ECHO_N "(cached) $ECHO_C" >&6
5412 else
5413   cat >conftest.$ac_ext <<_ACEOF
5414 /* confdefs.h.  */
5415 _ACEOF
5416 cat confdefs.h >>conftest.$ac_ext
5417 cat >>conftest.$ac_ext <<_ACEOF
5418 /* end confdefs.h.  */
5419 #include <wchar.h>
5420        wint_t foo = (wchar_t)'\0';
5421 int
5422 main ()
5423 {
5424
5425   ;
5426   return 0;
5427 }
5428 _ACEOF
5429 rm -f conftest.$ac_objext
5430 if { (ac_try="$ac_compile"
5431 case "(($ac_try" in
5432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5433   *) ac_try_echo=$ac_try;;
5434 esac
5435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5436   (eval "$ac_compile") 2>conftest.er1
5437   ac_status=$?
5438   grep -v '^ *+' conftest.er1 >conftest.err
5439   rm -f conftest.er1
5440   cat conftest.err >&5
5441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5442   (exit $ac_status); } &&
5443          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5444   { (case "(($ac_try" in
5445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5446   *) ac_try_echo=$ac_try;;
5447 esac
5448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5449   (eval "$ac_try") 2>&5
5450   ac_status=$?
5451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452   (exit $ac_status); }; } &&
5453          { ac_try='test -s conftest.$ac_objext'
5454   { (case "(($ac_try" in
5455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5456   *) ac_try_echo=$ac_try;;
5457 esac
5458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5459   (eval "$ac_try") 2>&5
5460   ac_status=$?
5461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462   (exit $ac_status); }; }; then
5463   gt_cv_c_wint_t=yes
5464 else
5465   echo "$as_me: failed program was:" >&5
5466 sed 's/^/| /' conftest.$ac_ext >&5
5467
5468         gt_cv_c_wint_t=no
5469 fi
5470
5471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472 fi
5473 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5474 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
5475   if test $gt_cv_c_wint_t = yes; then
5476
5477 cat >>confdefs.h <<\_ACEOF
5478 #define HAVE_WINT_T 1
5479 _ACEOF
5480
5481   fi
5482
5483
5484   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5485 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
5486 if test "${gl_cv_header_inttypes_h+set}" = set; then
5487   echo $ECHO_N "(cached) $ECHO_C" >&6
5488 else
5489   cat >conftest.$ac_ext <<_ACEOF
5490 /* confdefs.h.  */
5491 _ACEOF
5492 cat confdefs.h >>conftest.$ac_ext
5493 cat >>conftest.$ac_ext <<_ACEOF
5494 /* end confdefs.h.  */
5495 #include <sys/types.h>
5496 #include <inttypes.h>
5497 int
5498 main ()
5499 {
5500 uintmax_t i = (uintmax_t) -1;
5501   ;
5502   return 0;
5503 }
5504 _ACEOF
5505 rm -f conftest.$ac_objext
5506 if { (ac_try="$ac_compile"
5507 case "(($ac_try" in
5508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5509   *) ac_try_echo=$ac_try;;
5510 esac
5511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5512   (eval "$ac_compile") 2>conftest.er1
5513   ac_status=$?
5514   grep -v '^ *+' conftest.er1 >conftest.err
5515   rm -f conftest.er1
5516   cat conftest.err >&5
5517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518   (exit $ac_status); } &&
5519          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5520   { (case "(($ac_try" in
5521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522   *) ac_try_echo=$ac_try;;
5523 esac
5524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5525   (eval "$ac_try") 2>&5
5526   ac_status=$?
5527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528   (exit $ac_status); }; } &&
5529          { ac_try='test -s conftest.$ac_objext'
5530   { (case "(($ac_try" in
5531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5532   *) ac_try_echo=$ac_try;;
5533 esac
5534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5535   (eval "$ac_try") 2>&5
5536   ac_status=$?
5537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538   (exit $ac_status); }; }; then
5539   gl_cv_header_inttypes_h=yes
5540 else
5541   echo "$as_me: failed program was:" >&5
5542 sed 's/^/| /' conftest.$ac_ext >&5
5543
5544         gl_cv_header_inttypes_h=no
5545 fi
5546
5547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5548 fi
5549 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
5550 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
5551   if test $gl_cv_header_inttypes_h = yes; then
5552
5553 cat >>confdefs.h <<_ACEOF
5554 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5555 _ACEOF
5556
5557   fi
5558
5559
5560   { echo "$as_me:$LINENO: checking for stdint.h" >&5
5561 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
5562 if test "${gl_cv_header_stdint_h+set}" = set; then
5563   echo $ECHO_N "(cached) $ECHO_C" >&6
5564 else
5565   cat >conftest.$ac_ext <<_ACEOF
5566 /* confdefs.h.  */
5567 _ACEOF
5568 cat confdefs.h >>conftest.$ac_ext
5569 cat >>conftest.$ac_ext <<_ACEOF
5570 /* end confdefs.h.  */
5571 #include <sys/types.h>
5572 #include <stdint.h>
5573 int
5574 main ()
5575 {
5576 uintmax_t i = (uintmax_t) -1;
5577   ;
5578   return 0;
5579 }
5580 _ACEOF
5581 rm -f conftest.$ac_objext
5582 if { (ac_try="$ac_compile"
5583 case "(($ac_try" in
5584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5585   *) ac_try_echo=$ac_try;;
5586 esac
5587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5588   (eval "$ac_compile") 2>conftest.er1
5589   ac_status=$?
5590   grep -v '^ *+' conftest.er1 >conftest.err
5591   rm -f conftest.er1
5592   cat conftest.err >&5
5593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5594   (exit $ac_status); } &&
5595          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5596   { (case "(($ac_try" in
5597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598   *) ac_try_echo=$ac_try;;
5599 esac
5600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5601   (eval "$ac_try") 2>&5
5602   ac_status=$?
5603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604   (exit $ac_status); }; } &&
5605          { ac_try='test -s conftest.$ac_objext'
5606   { (case "(($ac_try" in
5607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5608   *) ac_try_echo=$ac_try;;
5609 esac
5610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5611   (eval "$ac_try") 2>&5
5612   ac_status=$?
5613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614   (exit $ac_status); }; }; then
5615   gl_cv_header_stdint_h=yes
5616 else
5617   echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.$ac_ext >&5
5619
5620         gl_cv_header_stdint_h=no
5621 fi
5622
5623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5624 fi
5625 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
5626 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
5627   if test $gl_cv_header_stdint_h = yes; then
5628
5629 cat >>confdefs.h <<_ACEOF
5630 #define HAVE_STDINT_H_WITH_UINTMAX 1
5631 _ACEOF
5632
5633   fi
5634
5635
5636
5637
5638   { echo "$as_me:$LINENO: checking for intmax_t" >&5
5639 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
5640 if test "${gt_cv_c_intmax_t+set}" = set; then
5641   echo $ECHO_N "(cached) $ECHO_C" >&6
5642 else
5643   cat >conftest.$ac_ext <<_ACEOF
5644 /* confdefs.h.  */
5645 _ACEOF
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h.  */
5649
5650 #include <stddef.h>
5651 #include <stdlib.h>
5652 #if HAVE_STDINT_H_WITH_UINTMAX
5653 #include <stdint.h>
5654 #endif
5655 #if HAVE_INTTYPES_H_WITH_UINTMAX
5656 #include <inttypes.h>
5657 #endif
5658
5659 int
5660 main ()
5661 {
5662 intmax_t x = -1;
5663   ;
5664   return 0;
5665 }
5666 _ACEOF
5667 rm -f conftest.$ac_objext
5668 if { (ac_try="$ac_compile"
5669 case "(($ac_try" in
5670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671   *) ac_try_echo=$ac_try;;
5672 esac
5673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674   (eval "$ac_compile") 2>conftest.er1
5675   ac_status=$?
5676   grep -v '^ *+' conftest.er1 >conftest.err
5677   rm -f conftest.er1
5678   cat conftest.err >&5
5679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680   (exit $ac_status); } &&
5681          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5682   { (case "(($ac_try" in
5683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5684   *) ac_try_echo=$ac_try;;
5685 esac
5686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5687   (eval "$ac_try") 2>&5
5688   ac_status=$?
5689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690   (exit $ac_status); }; } &&
5691          { ac_try='test -s conftest.$ac_objext'
5692   { (case "(($ac_try" in
5693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694   *) ac_try_echo=$ac_try;;
5695 esac
5696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697   (eval "$ac_try") 2>&5
5698   ac_status=$?
5699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5700   (exit $ac_status); }; }; then
5701   gt_cv_c_intmax_t=yes
5702 else
5703   echo "$as_me: failed program was:" >&5
5704 sed 's/^/| /' conftest.$ac_ext >&5
5705
5706         gt_cv_c_intmax_t=no
5707 fi
5708
5709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5710 fi
5711 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5712 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
5713   if test $gt_cv_c_intmax_t = yes; then
5714
5715 cat >>confdefs.h <<\_ACEOF
5716 #define HAVE_INTMAX_T 1
5717 _ACEOF
5718
5719   fi
5720
5721
5722
5723   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5724 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
5725 if test "${gt_cv_func_printf_posix+set}" = set; then
5726   echo $ECHO_N "(cached) $ECHO_C" >&6
5727 else
5728
5729       if test "$cross_compiling" = yes; then
5730
5731         cat >conftest.$ac_ext <<_ACEOF
5732 /* confdefs.h.  */
5733 _ACEOF
5734 cat confdefs.h >>conftest.$ac_ext
5735 cat >>conftest.$ac_ext <<_ACEOF
5736 /* end confdefs.h.  */
5737
5738 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5739   notposix
5740 #endif
5741
5742 _ACEOF
5743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5744   $EGREP "notposix" >/dev/null 2>&1; then
5745   gt_cv_func_printf_posix="guessing no"
5746 else
5747   gt_cv_func_printf_posix="guessing yes"
5748 fi
5749 rm -f conftest*
5750
5751
5752 else
5753   cat >conftest.$ac_ext <<_ACEOF
5754 /* confdefs.h.  */
5755 _ACEOF
5756 cat confdefs.h >>conftest.$ac_ext
5757 cat >>conftest.$ac_ext <<_ACEOF
5758 /* end confdefs.h.  */
5759
5760 #include <stdio.h>
5761 #include <string.h>
5762 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5763    dollar expansion (possibly an autoconf bug).  */
5764 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5765 static char buf[100];
5766 int main ()
5767 {
5768   sprintf (buf, format, 33, 55);
5769   return (strcmp (buf, "55 33") != 0);
5770 }
5771 _ACEOF
5772 rm -f conftest$ac_exeext
5773 if { (ac_try="$ac_link"
5774 case "(($ac_try" in
5775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776   *) ac_try_echo=$ac_try;;
5777 esac
5778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779   (eval "$ac_link") 2>&5
5780   ac_status=$?
5781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5783   { (case "(($ac_try" in
5784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5785   *) ac_try_echo=$ac_try;;
5786 esac
5787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5788   (eval "$ac_try") 2>&5
5789   ac_status=$?
5790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791   (exit $ac_status); }; }; then
5792   gt_cv_func_printf_posix=yes
5793 else
5794   echo "$as_me: program exited with status $ac_status" >&5
5795 echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.$ac_ext >&5
5797
5798 ( exit $ac_status )
5799 gt_cv_func_printf_posix=no
5800 fi
5801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5802 fi
5803
5804
5805
5806 fi
5807 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5808 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
5809   case $gt_cv_func_printf_posix in
5810     *yes)
5811
5812 cat >>confdefs.h <<\_ACEOF
5813 #define HAVE_POSIX_PRINTF 1
5814 _ACEOF
5815
5816       ;;
5817   esac
5818
5819 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5820 # for constant arguments.  Useless!
5821 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
5822 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
5823 if test "${ac_cv_working_alloca_h+set}" = set; then
5824   echo $ECHO_N "(cached) $ECHO_C" >&6
5825 else
5826   cat >conftest.$ac_ext <<_ACEOF
5827 /* confdefs.h.  */
5828 _ACEOF
5829 cat confdefs.h >>conftest.$ac_ext
5830 cat >>conftest.$ac_ext <<_ACEOF
5831 /* end confdefs.h.  */
5832 #include <alloca.h>
5833 int
5834 main ()
5835 {
5836 char *p = (char *) alloca (2 * sizeof (int));
5837                           if (p) return 0;
5838   ;
5839   return 0;
5840 }
5841 _ACEOF
5842 rm -f conftest.$ac_objext conftest$ac_exeext
5843 if { (ac_try="$ac_link"
5844 case "(($ac_try" in
5845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5846   *) ac_try_echo=$ac_try;;
5847 esac
5848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5849   (eval "$ac_link") 2>conftest.er1
5850   ac_status=$?
5851   grep -v '^ *+' conftest.er1 >conftest.err
5852   rm -f conftest.er1
5853   cat conftest.err >&5
5854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855   (exit $ac_status); } &&
5856          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5857   { (case "(($ac_try" in
5858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5859   *) ac_try_echo=$ac_try;;
5860 esac
5861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5862   (eval "$ac_try") 2>&5
5863   ac_status=$?
5864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865   (exit $ac_status); }; } &&
5866          { ac_try='test -s conftest$ac_exeext'
5867   { (case "(($ac_try" in
5868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869   *) ac_try_echo=$ac_try;;
5870 esac
5871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872   (eval "$ac_try") 2>&5
5873   ac_status=$?
5874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875   (exit $ac_status); }; }; then
5876   ac_cv_working_alloca_h=yes
5877 else
5878   echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.$ac_ext >&5
5880
5881         ac_cv_working_alloca_h=no
5882 fi
5883
5884 rm -f core conftest.err conftest.$ac_objext \
5885       conftest$ac_exeext conftest.$ac_ext
5886 fi
5887 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5888 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
5889 if test $ac_cv_working_alloca_h = yes; then
5890
5891 cat >>confdefs.h <<\_ACEOF
5892 #define HAVE_ALLOCA_H 1
5893 _ACEOF
5894
5895 fi
5896
5897 { echo "$as_me:$LINENO: checking for alloca" >&5
5898 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
5899 if test "${ac_cv_func_alloca_works+set}" = set; then
5900   echo $ECHO_N "(cached) $ECHO_C" >&6
5901 else
5902   cat >conftest.$ac_ext <<_ACEOF
5903 /* confdefs.h.  */
5904 _ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h.  */
5908 #ifdef __GNUC__
5909 # define alloca __builtin_alloca
5910 #else
5911 # ifdef _MSC_VER
5912 #  include <malloc.h>
5913 #  define alloca _alloca
5914 # else
5915 #  if HAVE_ALLOCA_H
5916 #   include <alloca.h>
5917 #  else
5918 #   ifdef _AIX
5919  #pragma alloca
5920 #   else
5921 #    ifndef alloca /* predefined by HP cc +Olibcalls */
5922 char *alloca ();
5923 #    endif
5924 #   endif
5925 #  endif
5926 # endif
5927 #endif
5928
5929 int
5930 main ()
5931 {
5932 char *p = (char *) alloca (1);
5933                                     if (p) return 0;
5934   ;
5935   return 0;
5936 }
5937 _ACEOF
5938 rm -f conftest.$ac_objext conftest$ac_exeext
5939 if { (ac_try="$ac_link"
5940 case "(($ac_try" in
5941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942   *) ac_try_echo=$ac_try;;
5943 esac
5944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5945   (eval "$ac_link") 2>conftest.er1
5946   ac_status=$?
5947   grep -v '^ *+' conftest.er1 >conftest.err
5948   rm -f conftest.er1
5949   cat conftest.err >&5
5950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951   (exit $ac_status); } &&
5952          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5953   { (case "(($ac_try" in
5954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5955   *) ac_try_echo=$ac_try;;
5956 esac
5957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5958   (eval "$ac_try") 2>&5
5959   ac_status=$?
5960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961   (exit $ac_status); }; } &&
5962          { ac_try='test -s conftest$ac_exeext'
5963   { (case "(($ac_try" in
5964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5965   *) ac_try_echo=$ac_try;;
5966 esac
5967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968   (eval "$ac_try") 2>&5
5969   ac_status=$?
5970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971   (exit $ac_status); }; }; then
5972   ac_cv_func_alloca_works=yes
5973 else
5974   echo "$as_me: failed program was:" >&5
5975 sed 's/^/| /' conftest.$ac_ext >&5
5976
5977         ac_cv_func_alloca_works=no
5978 fi
5979
5980 rm -f core conftest.err conftest.$ac_objext \
5981       conftest$ac_exeext conftest.$ac_ext
5982 fi
5983 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5984 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
5985
5986 if test $ac_cv_func_alloca_works = yes; then
5987
5988 cat >>confdefs.h <<\_ACEOF
5989 #define HAVE_ALLOCA 1
5990 _ACEOF
5991
5992 else
5993   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5994 # that cause trouble.  Some versions do not even contain alloca or
5995 # contain a buggy version.  If you still want to use their alloca,
5996 # use ar to extract alloca.o from them instead of compiling alloca.c.
5997
5998 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5999
6000 cat >>confdefs.h <<\_ACEOF
6001 #define C_ALLOCA 1
6002 _ACEOF
6003
6004
6005 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6006 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
6007 if test "${ac_cv_os_cray+set}" = set; then
6008   echo $ECHO_N "(cached) $ECHO_C" >&6
6009 else
6010   cat >conftest.$ac_ext <<_ACEOF
6011 /* confdefs.h.  */
6012 _ACEOF
6013 cat confdefs.h >>conftest.$ac_ext
6014 cat >>conftest.$ac_ext <<_ACEOF
6015 /* end confdefs.h.  */
6016 #if defined CRAY && ! defined CRAY2
6017 webecray
6018 #else
6019 wenotbecray
6020 #endif
6021
6022 _ACEOF
6023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6024   $EGREP "webecray" >/dev/null 2>&1; then
6025   ac_cv_os_cray=yes
6026 else
6027   ac_cv_os_cray=no
6028 fi
6029 rm -f conftest*
6030
6031 fi
6032 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6033 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
6034 if test $ac_cv_os_cray = yes; then
6035   for ac_func in _getb67 GETB67 getb67; do
6036     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6040   echo $ECHO_N "(cached) $ECHO_C" >&6
6041 else
6042   cat >conftest.$ac_ext <<_ACEOF
6043 /* confdefs.h.  */
6044 _ACEOF
6045 cat confdefs.h >>conftest.$ac_ext
6046 cat >>conftest.$ac_ext <<_ACEOF
6047 /* end confdefs.h.  */
6048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6049    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6050 #define $ac_func innocuous_$ac_func
6051
6052 /* System header to define __stub macros and hopefully few prototypes,
6053     which can conflict with char $ac_func (); below.
6054     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6055     <limits.h> exists even on freestanding compilers.  */
6056
6057 #ifdef __STDC__
6058 # include <limits.h>
6059 #else
6060 # include <assert.h>
6061 #endif
6062
6063 #undef $ac_func
6064
6065 /* Override any GCC internal prototype to avoid an error.
6066    Use char because int might match the return type of a GCC
6067    builtin and then its argument prototype would still apply.  */
6068 #ifdef __cplusplus
6069 extern "C"
6070 #endif
6071 char $ac_func ();
6072 /* The GNU C library defines this for functions which it implements
6073     to always fail with ENOSYS.  Some functions are actually named
6074     something starting with __ and the normal name is an alias.  */
6075 #if defined __stub_$ac_func || defined __stub___$ac_func
6076 choke me
6077 #endif
6078
6079 int
6080 main ()
6081 {
6082 return $ac_func ();
6083   ;
6084   return 0;
6085 }
6086 _ACEOF
6087 rm -f conftest.$ac_objext conftest$ac_exeext
6088 if { (ac_try="$ac_link"
6089 case "(($ac_try" in
6090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6091   *) ac_try_echo=$ac_try;;
6092 esac
6093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6094   (eval "$ac_link") 2>conftest.er1
6095   ac_status=$?
6096   grep -v '^ *+' conftest.er1 >conftest.err
6097   rm -f conftest.er1
6098   cat conftest.err >&5
6099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100   (exit $ac_status); } &&
6101          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6102   { (case "(($ac_try" in
6103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6104   *) ac_try_echo=$ac_try;;
6105 esac
6106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6107   (eval "$ac_try") 2>&5
6108   ac_status=$?
6109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110   (exit $ac_status); }; } &&
6111          { ac_try='test -s conftest$ac_exeext'
6112   { (case "(($ac_try" in
6113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6114   *) ac_try_echo=$ac_try;;
6115 esac
6116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6117   (eval "$ac_try") 2>&5
6118   ac_status=$?
6119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120   (exit $ac_status); }; }; then
6121   eval "$as_ac_var=yes"
6122 else
6123   echo "$as_me: failed program was:" >&5
6124 sed 's/^/| /' conftest.$ac_ext >&5
6125
6126         eval "$as_ac_var=no"
6127 fi
6128
6129 rm -f core conftest.err conftest.$ac_objext \
6130       conftest$ac_exeext conftest.$ac_ext
6131 fi
6132 ac_res=`eval echo '${'$as_ac_var'}'`
6133                { echo "$as_me:$LINENO: result: $ac_res" >&5
6134 echo "${ECHO_T}$ac_res" >&6; }
6135 if test `eval echo '${'$as_ac_var'}'` = yes; then
6136
6137 cat >>confdefs.h <<_ACEOF
6138 #define CRAY_STACKSEG_END $ac_func
6139 _ACEOF
6140
6141     break
6142 fi
6143
6144   done
6145 fi
6146
6147 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6148 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
6149 if test "${ac_cv_c_stack_direction+set}" = set; then
6150   echo $ECHO_N "(cached) $ECHO_C" >&6
6151 else
6152   if test "$cross_compiling" = yes; then
6153   ac_cv_c_stack_direction=0
6154 else
6155   cat >conftest.$ac_ext <<_ACEOF
6156 /* confdefs.h.  */
6157 _ACEOF
6158 cat confdefs.h >>conftest.$ac_ext
6159 cat >>conftest.$ac_ext <<_ACEOF
6160 /* end confdefs.h.  */
6161 $ac_includes_default
6162 int
6163 find_stack_direction ()
6164 {
6165   static char *addr = 0;
6166   auto char dummy;
6167   if (addr == 0)
6168     {
6169       addr = &dummy;
6170       return find_stack_direction ();
6171     }
6172   else
6173     return (&dummy > addr) ? 1 : -1;
6174 }
6175
6176 int
6177 main ()
6178 {
6179   return find_stack_direction () < 0;
6180 }
6181 _ACEOF
6182 rm -f conftest$ac_exeext
6183 if { (ac_try="$ac_link"
6184 case "(($ac_try" in
6185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6186   *) ac_try_echo=$ac_try;;
6187 esac
6188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6189   (eval "$ac_link") 2>&5
6190   ac_status=$?
6191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6193   { (case "(($ac_try" in
6194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6195   *) ac_try_echo=$ac_try;;
6196 esac
6197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6198   (eval "$ac_try") 2>&5
6199   ac_status=$?
6200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201   (exit $ac_status); }; }; then
6202   ac_cv_c_stack_direction=1
6203 else
6204   echo "$as_me: program exited with status $ac_status" >&5
6205 echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6207
6208 ( exit $ac_status )
6209 ac_cv_c_stack_direction=-1
6210 fi
6211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6212 fi
6213
6214
6215 fi
6216 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6217 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
6218
6219 cat >>confdefs.h <<_ACEOF
6220 #define STACK_DIRECTION $ac_cv_c_stack_direction
6221 _ACEOF
6222
6223
6224 fi
6225
6226
6227
6228 for ac_header in stdlib.h unistd.h
6229 do
6230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6232   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6235   echo $ECHO_N "(cached) $ECHO_C" >&6
6236 fi
6237 ac_res=`eval echo '${'$as_ac_Header'}'`
6238                { echo "$as_me:$LINENO: result: $ac_res" >&5
6239 echo "${ECHO_T}$ac_res" >&6; }
6240 else
6241   # Is the header compilable?
6242 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6243 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6244 cat >conftest.$ac_ext <<_ACEOF
6245 /* confdefs.h.  */
6246 _ACEOF
6247 cat confdefs.h >>conftest.$ac_ext
6248 cat >>conftest.$ac_ext <<_ACEOF
6249 /* end confdefs.h.  */
6250 $ac_includes_default
6251 #include <$ac_header>
6252 _ACEOF
6253 rm -f conftest.$ac_objext
6254 if { (ac_try="$ac_compile"
6255 case "(($ac_try" in
6256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6257   *) ac_try_echo=$ac_try;;
6258 esac
6259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6260   (eval "$ac_compile") 2>conftest.er1
6261   ac_status=$?
6262   grep -v '^ *+' conftest.er1 >conftest.err
6263   rm -f conftest.er1
6264   cat conftest.err >&5
6265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266   (exit $ac_status); } &&
6267          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6268   { (case "(($ac_try" in
6269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6270   *) ac_try_echo=$ac_try;;
6271 esac
6272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6273   (eval "$ac_try") 2>&5
6274   ac_status=$?
6275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276   (exit $ac_status); }; } &&
6277          { ac_try='test -s conftest.$ac_objext'
6278   { (case "(($ac_try" in
6279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280   *) ac_try_echo=$ac_try;;
6281 esac
6282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6283   (eval "$ac_try") 2>&5
6284   ac_status=$?
6285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286   (exit $ac_status); }; }; then
6287   ac_header_compiler=yes
6288 else
6289   echo "$as_me: failed program was:" >&5
6290 sed 's/^/| /' conftest.$ac_ext >&5
6291
6292         ac_header_compiler=no
6293 fi
6294
6295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6296 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6297 echo "${ECHO_T}$ac_header_compiler" >&6; }
6298
6299 # Is the header present?
6300 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6301 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6302 cat >conftest.$ac_ext <<_ACEOF
6303 /* confdefs.h.  */
6304 _ACEOF
6305 cat confdefs.h >>conftest.$ac_ext
6306 cat >>conftest.$ac_ext <<_ACEOF
6307 /* end confdefs.h.  */
6308 #include <$ac_header>
6309 _ACEOF
6310 if { (ac_try="$ac_cpp conftest.$ac_ext"
6311 case "(($ac_try" in
6312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6313   *) ac_try_echo=$ac_try;;
6314 esac
6315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6316   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6317   ac_status=$?
6318   grep -v '^ *+' conftest.er1 >conftest.err
6319   rm -f conftest.er1
6320   cat conftest.err >&5
6321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322   (exit $ac_status); } >/dev/null; then
6323   if test -s conftest.err; then
6324     ac_cpp_err=$ac_c_preproc_warn_flag
6325     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6326   else
6327     ac_cpp_err=
6328   fi
6329 else
6330   ac_cpp_err=yes
6331 fi
6332 if test -z "$ac_cpp_err"; then
6333   ac_header_preproc=yes
6334 else
6335   echo "$as_me: failed program was:" >&5
6336 sed 's/^/| /' conftest.$ac_ext >&5
6337
6338   ac_header_preproc=no
6339 fi
6340
6341 rm -f conftest.err conftest.$ac_ext
6342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6343 echo "${ECHO_T}$ac_header_preproc" >&6; }
6344
6345 # So?  What about this header?
6346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6347   yes:no: )
6348     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6349 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6350     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6352     ac_header_preproc=yes
6353     ;;
6354   no:yes:* )
6355     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6357     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6358 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6359     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6360 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6361     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6362 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6363     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6365     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6366 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6367
6368     ;;
6369 esac
6370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6373   echo $ECHO_N "(cached) $ECHO_C" >&6
6374 else
6375   eval "$as_ac_Header=\$ac_header_preproc"
6376 fi
6377 ac_res=`eval echo '${'$as_ac_Header'}'`
6378                { echo "$as_me:$LINENO: result: $ac_res" >&5
6379 echo "${ECHO_T}$ac_res" >&6; }
6380
6381 fi
6382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6383   cat >>confdefs.h <<_ACEOF
6384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6385 _ACEOF
6386
6387 fi
6388
6389 done
6390
6391
6392 for ac_func in getpagesize
6393 do
6394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6395 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6397 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6398   echo $ECHO_N "(cached) $ECHO_C" >&6
6399 else
6400   cat >conftest.$ac_ext <<_ACEOF
6401 /* confdefs.h.  */
6402 _ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h.  */
6406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6407    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6408 #define $ac_func innocuous_$ac_func
6409
6410 /* System header to define __stub macros and hopefully few prototypes,
6411     which can conflict with char $ac_func (); below.
6412     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6413     <limits.h> exists even on freestanding compilers.  */
6414
6415 #ifdef __STDC__
6416 # include <limits.h>
6417 #else
6418 # include <assert.h>
6419 #endif
6420
6421 #undef $ac_func
6422
6423 /* Override any GCC internal prototype to avoid an error.
6424    Use char because int might match the return type of a GCC
6425    builtin and then its argument prototype would still apply.  */
6426 #ifdef __cplusplus
6427 extern "C"
6428 #endif
6429 char $ac_func ();
6430 /* The GNU C library defines this for functions which it implements
6431     to always fail with ENOSYS.  Some functions are actually named
6432     something starting with __ and the normal name is an alias.  */
6433 #if defined __stub_$ac_func || defined __stub___$ac_func
6434 choke me
6435 #endif
6436
6437 int
6438 main ()
6439 {
6440 return $ac_func ();
6441   ;
6442   return 0;
6443 }
6444 _ACEOF
6445 rm -f conftest.$ac_objext conftest$ac_exeext
6446 if { (ac_try="$ac_link"
6447 case "(($ac_try" in
6448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449   *) ac_try_echo=$ac_try;;
6450 esac
6451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452   (eval "$ac_link") 2>conftest.er1
6453   ac_status=$?
6454   grep -v '^ *+' conftest.er1 >conftest.err
6455   rm -f conftest.er1
6456   cat conftest.err >&5
6457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458   (exit $ac_status); } &&
6459          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6460   { (case "(($ac_try" in
6461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6462   *) ac_try_echo=$ac_try;;
6463 esac
6464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6465   (eval "$ac_try") 2>&5
6466   ac_status=$?
6467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6468   (exit $ac_status); }; } &&
6469          { ac_try='test -s conftest$ac_exeext'
6470   { (case "(($ac_try" in
6471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6472   *) ac_try_echo=$ac_try;;
6473 esac
6474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6475   (eval "$ac_try") 2>&5
6476   ac_status=$?
6477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478   (exit $ac_status); }; }; then
6479   eval "$as_ac_var=yes"
6480 else
6481   echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6483
6484         eval "$as_ac_var=no"
6485 fi
6486
6487 rm -f core conftest.err conftest.$ac_objext \
6488       conftest$ac_exeext conftest.$ac_ext
6489 fi
6490 ac_res=`eval echo '${'$as_ac_var'}'`
6491                { echo "$as_me:$LINENO: result: $ac_res" >&5
6492 echo "${ECHO_T}$ac_res" >&6; }
6493 if test `eval echo '${'$as_ac_var'}'` = yes; then
6494   cat >>confdefs.h <<_ACEOF
6495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6496 _ACEOF
6497
6498 fi
6499 done
6500
6501 { echo "$as_me:$LINENO: checking for working mmap" >&5
6502 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
6503 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6504   echo $ECHO_N "(cached) $ECHO_C" >&6
6505 else
6506   if test "$cross_compiling" = yes; then
6507   ac_cv_func_mmap_fixed_mapped=no
6508 else
6509   cat >conftest.$ac_ext <<_ACEOF
6510 /* confdefs.h.  */
6511 _ACEOF
6512 cat confdefs.h >>conftest.$ac_ext
6513 cat >>conftest.$ac_ext <<_ACEOF
6514 /* end confdefs.h.  */
6515 $ac_includes_default
6516 /* malloc might have been renamed as rpl_malloc. */
6517 #undef malloc
6518
6519 /* Thanks to Mike Haertel and Jim Avera for this test.
6520    Here is a matrix of mmap possibilities:
6521         mmap private not fixed
6522         mmap private fixed at somewhere currently unmapped
6523         mmap private fixed at somewhere already mapped
6524         mmap shared not fixed
6525         mmap shared fixed at somewhere currently unmapped
6526         mmap shared fixed at somewhere already mapped
6527    For private mappings, we should verify that changes cannot be read()
6528    back from the file, nor mmap's back from the file at a different
6529    address.  (There have been systems where private was not correctly
6530    implemented like the infamous i386 svr4.0, and systems where the
6531    VM page cache was not coherent with the file system buffer cache
6532    like early versions of FreeBSD and possibly contemporary NetBSD.)
6533    For shared mappings, we should conversely verify that changes get
6534    propagated back to all the places they're supposed to be.
6535
6536    Grep wants private fixed already mapped.
6537    The main things grep needs to know about mmap are:
6538    * does it exist and is it safe to write into the mmap'd area
6539    * how to use it (BSD variants)  */
6540
6541 #include <fcntl.h>
6542 #include <sys/mman.h>
6543
6544 #if !STDC_HEADERS && !HAVE_STDLIB_H
6545 char *malloc ();
6546 #endif
6547
6548 /* This mess was copied from the GNU getpagesize.h.  */
6549 #if !HAVE_GETPAGESIZE
6550 /* Assume that all systems that can run configure have sys/param.h.  */
6551 # if !HAVE_SYS_PARAM_H
6552 #  define HAVE_SYS_PARAM_H 1
6553 # endif
6554
6555 # ifdef _SC_PAGESIZE
6556 #  define getpagesize() sysconf(_SC_PAGESIZE)
6557 # else /* no _SC_PAGESIZE */
6558 #  if HAVE_SYS_PARAM_H
6559 #   include <sys/param.h>
6560 #   ifdef EXEC_PAGESIZE
6561 #    define getpagesize() EXEC_PAGESIZE
6562 #   else /* no EXEC_PAGESIZE */
6563 #    ifdef NBPG
6564 #     define getpagesize() NBPG * CLSIZE
6565 #     ifndef CLSIZE
6566 #      define CLSIZE 1
6567 #     endif /* no CLSIZE */
6568 #    else /* no NBPG */
6569 #     ifdef NBPC
6570 #      define getpagesize() NBPC
6571 #     else /* no NBPC */
6572 #      ifdef PAGESIZE
6573 #       define getpagesize() PAGESIZE
6574 #      endif /* PAGESIZE */
6575 #     endif /* no NBPC */
6576 #    endif /* no NBPG */
6577 #   endif /* no EXEC_PAGESIZE */
6578 #  else /* no HAVE_SYS_PARAM_H */
6579 #   define getpagesize() 8192   /* punt totally */
6580 #  endif /* no HAVE_SYS_PARAM_H */
6581 # endif /* no _SC_PAGESIZE */
6582
6583 #endif /* no HAVE_GETPAGESIZE */
6584
6585 int
6586 main ()
6587 {
6588   char *data, *data2, *data3;
6589   int i, pagesize;
6590   int fd;
6591
6592   pagesize = getpagesize ();
6593
6594   /* First, make a file with some known garbage in it. */
6595   data = (char *) malloc (pagesize);
6596   if (!data)
6597     return 1;
6598   for (i = 0; i < pagesize; ++i)
6599     *(data + i) = rand ();
6600   umask (0);
6601   fd = creat ("conftest.mmap", 0600);
6602   if (fd < 0)
6603     return 1;
6604   if (write (fd, data, pagesize) != pagesize)
6605     return 1;
6606   close (fd);
6607
6608   /* Next, try to mmap the file at a fixed address which already has
6609      something else allocated at it.  If we can, also make sure that
6610      we see the same garbage.  */
6611   fd = open ("conftest.mmap", O_RDWR);
6612   if (fd < 0)
6613     return 1;
6614   data2 = (char *) malloc (2 * pagesize);
6615   if (!data2)
6616     return 1;
6617   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6618   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6619                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
6620     return 1;
6621   for (i = 0; i < pagesize; ++i)
6622     if (*(data + i) != *(data2 + i))
6623       return 1;
6624
6625   /* Finally, make sure that changes to the mapped area do not
6626      percolate back to the file as seen by read().  (This is a bug on
6627      some variants of i386 svr4.0.)  */
6628   for (i = 0; i < pagesize; ++i)
6629     *(data2 + i) = *(data2 + i) + 1;
6630   data3 = (char *) malloc (pagesize);
6631   if (!data3)
6632     return 1;
6633   if (read (fd, data3, pagesize) != pagesize)
6634     return 1;
6635   for (i = 0; i < pagesize; ++i)
6636     if (*(data + i) != *(data3 + i))
6637       return 1;
6638   close (fd);
6639   return 0;
6640 }
6641 _ACEOF
6642 rm -f conftest$ac_exeext
6643 if { (ac_try="$ac_link"
6644 case "(($ac_try" in
6645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6646   *) ac_try_echo=$ac_try;;
6647 esac
6648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6649   (eval "$ac_link") 2>&5
6650   ac_status=$?
6651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6653   { (case "(($ac_try" in
6654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6655   *) ac_try_echo=$ac_try;;
6656 esac
6657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6658   (eval "$ac_try") 2>&5
6659   ac_status=$?
6660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661   (exit $ac_status); }; }; then
6662   ac_cv_func_mmap_fixed_mapped=yes
6663 else
6664   echo "$as_me: program exited with status $ac_status" >&5
6665 echo "$as_me: failed program was:" >&5
6666 sed 's/^/| /' conftest.$ac_ext >&5
6667
6668 ( exit $ac_status )
6669 ac_cv_func_mmap_fixed_mapped=no
6670 fi
6671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6672 fi
6673
6674
6675 fi
6676 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6677 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
6678 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6679
6680 cat >>confdefs.h <<\_ACEOF
6681 #define HAVE_MMAP 1
6682 _ACEOF
6683
6684 fi
6685 rm -f conftest.mmap
6686
6687
6688     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6689 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
6690 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6691   echo $ECHO_N "(cached) $ECHO_C" >&6
6692 else
6693   cat >conftest.$ac_ext <<_ACEOF
6694 /* confdefs.h.  */
6695 _ACEOF
6696 cat confdefs.h >>conftest.$ac_ext
6697 cat >>conftest.$ac_ext <<_ACEOF
6698 /* end confdefs.h.  */
6699
6700 #include <features.h>
6701 #ifdef __GNU_LIBRARY__
6702  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6703   Lucky GNU user
6704  #endif
6705 #endif
6706
6707 _ACEOF
6708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6709   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6710   ac_cv_gnu_library_2_1=yes
6711 else
6712   ac_cv_gnu_library_2_1=no
6713 fi
6714 rm -f conftest*
6715
6716
6717
6718 fi
6719 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6720 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
6721
6722     GLIBC21="$ac_cv_gnu_library_2_1"
6723
6724
6725
6726
6727   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6728 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
6729 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6730   echo $ECHO_N "(cached) $ECHO_C" >&6
6731 else
6732
6733       if test "$cross_compiling" = yes; then
6734
6735           # Guess based on the CPU.
6736           case "$host_cpu" in
6737             alpha* | i3456786 | m68k | s390*)
6738               gt_cv_int_divbyzero_sigfpe="guessing yes";;
6739             *)
6740               gt_cv_int_divbyzero_sigfpe="guessing no";;
6741           esac
6742
6743 else
6744   cat >conftest.$ac_ext <<_ACEOF
6745 /* confdefs.h.  */
6746 _ACEOF
6747 cat confdefs.h >>conftest.$ac_ext
6748 cat >>conftest.$ac_ext <<_ACEOF
6749 /* end confdefs.h.  */
6750
6751 #include <stdlib.h>
6752 #include <signal.h>
6753
6754 static void
6755 #ifdef __cplusplus
6756 sigfpe_handler (int sig)
6757 #else
6758 sigfpe_handler (sig) int sig;
6759 #endif
6760 {
6761   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
6762   exit (sig != SIGFPE);
6763 }
6764
6765 int x = 1;
6766 int y = 0;
6767 int z;
6768 int nan;
6769
6770 int main ()
6771 {
6772   signal (SIGFPE, sigfpe_handler);
6773 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
6774 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6775   signal (SIGTRAP, sigfpe_handler);
6776 #endif
6777 /* Linux/SPARC yields signal SIGILL.  */
6778 #if defined (__sparc__) && defined (__linux__)
6779   signal (SIGILL, sigfpe_handler);
6780 #endif
6781
6782   z = x / y;
6783   nan = y / y;
6784   exit (1);
6785 }
6786
6787 _ACEOF
6788 rm -f conftest$ac_exeext
6789 if { (ac_try="$ac_link"
6790 case "(($ac_try" in
6791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6792   *) ac_try_echo=$ac_try;;
6793 esac
6794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6795   (eval "$ac_link") 2>&5
6796   ac_status=$?
6797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6799   { (case "(($ac_try" in
6800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6801   *) ac_try_echo=$ac_try;;
6802 esac
6803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6804   (eval "$ac_try") 2>&5
6805   ac_status=$?
6806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807   (exit $ac_status); }; }; then
6808   gt_cv_int_divbyzero_sigfpe=yes
6809 else
6810   echo "$as_me: program exited with status $ac_status" >&5
6811 echo "$as_me: failed program was:" >&5
6812 sed 's/^/| /' conftest.$ac_ext >&5
6813
6814 ( exit $ac_status )
6815 gt_cv_int_divbyzero_sigfpe=no
6816 fi
6817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6818 fi
6819
6820
6821
6822 fi
6823 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6824 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
6825   case "$gt_cv_int_divbyzero_sigfpe" in
6826     *yes) value=1;;
6827     *) value=0;;
6828   esac
6829
6830 cat >>confdefs.h <<_ACEOF
6831 #define INTDIV0_RAISES_SIGFPE $value
6832 _ACEOF
6833
6834
6835
6836   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6837 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
6838 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6839   echo $ECHO_N "(cached) $ECHO_C" >&6
6840 else
6841   cat >conftest.$ac_ext <<_ACEOF
6842 /* confdefs.h.  */
6843 _ACEOF
6844 cat confdefs.h >>conftest.$ac_ext
6845 cat >>conftest.$ac_ext <<_ACEOF
6846 /* end confdefs.h.  */
6847 unsigned long long ull = 1ULL; int i = 63;
6848 int
6849 main ()
6850 {
6851 unsigned long long ullmax = (unsigned long long) -1;
6852      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6853   ;
6854   return 0;
6855 }
6856 _ACEOF
6857 rm -f conftest.$ac_objext conftest$ac_exeext
6858 if { (ac_try="$ac_link"
6859 case "(($ac_try" in
6860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6861   *) ac_try_echo=$ac_try;;
6862 esac
6863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6864   (eval "$ac_link") 2>conftest.er1
6865   ac_status=$?
6866   grep -v '^ *+' conftest.er1 >conftest.err
6867   rm -f conftest.er1
6868   cat conftest.err >&5
6869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870   (exit $ac_status); } &&
6871          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6872   { (case "(($ac_try" in
6873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6874   *) ac_try_echo=$ac_try;;
6875 esac
6876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6877   (eval "$ac_try") 2>&5
6878   ac_status=$?
6879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880   (exit $ac_status); }; } &&
6881          { ac_try='test -s conftest$ac_exeext'
6882   { (case "(($ac_try" in
6883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6884   *) ac_try_echo=$ac_try;;
6885 esac
6886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6887   (eval "$ac_try") 2>&5
6888   ac_status=$?
6889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890   (exit $ac_status); }; }; then
6891   ac_cv_type_unsigned_long_long=yes
6892 else
6893   echo "$as_me: failed program was:" >&5
6894 sed 's/^/| /' conftest.$ac_ext >&5
6895
6896         ac_cv_type_unsigned_long_long=no
6897 fi
6898
6899 rm -f core conftest.err conftest.$ac_objext \
6900       conftest$ac_exeext conftest.$ac_ext
6901 fi
6902 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6903 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
6904   if test $ac_cv_type_unsigned_long_long = yes; then
6905
6906 cat >>confdefs.h <<\_ACEOF
6907 #define HAVE_UNSIGNED_LONG_LONG 1
6908 _ACEOF
6909
6910   fi
6911
6912
6913
6914
6915   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
6916
6917     test $ac_cv_type_unsigned_long_long = yes \
6918       && ac_type='unsigned long long' \
6919       || ac_type='unsigned long'
6920
6921 cat >>confdefs.h <<_ACEOF
6922 #define uintmax_t $ac_type
6923 _ACEOF
6924
6925   else
6926
6927 cat >>confdefs.h <<\_ACEOF
6928 #define HAVE_UINTMAX_T 1
6929 _ACEOF
6930
6931   fi
6932
6933
6934   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6935 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
6936 if test "${gt_cv_header_inttypes_h+set}" = set; then
6937   echo $ECHO_N "(cached) $ECHO_C" >&6
6938 else
6939
6940     cat >conftest.$ac_ext <<_ACEOF
6941 /* confdefs.h.  */
6942 _ACEOF
6943 cat confdefs.h >>conftest.$ac_ext
6944 cat >>conftest.$ac_ext <<_ACEOF
6945 /* end confdefs.h.  */
6946 #include <sys/types.h>
6947 #include <inttypes.h>
6948 int
6949 main ()
6950 {
6951
6952   ;
6953   return 0;
6954 }
6955 _ACEOF
6956 rm -f conftest.$ac_objext
6957 if { (ac_try="$ac_compile"
6958 case "(($ac_try" in
6959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6960   *) ac_try_echo=$ac_try;;
6961 esac
6962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6963   (eval "$ac_compile") 2>conftest.er1
6964   ac_status=$?
6965   grep -v '^ *+' conftest.er1 >conftest.err
6966   rm -f conftest.er1
6967   cat conftest.err >&5
6968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6969   (exit $ac_status); } &&
6970          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6971   { (case "(($ac_try" in
6972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6973   *) ac_try_echo=$ac_try;;
6974 esac
6975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6976   (eval "$ac_try") 2>&5
6977   ac_status=$?
6978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979   (exit $ac_status); }; } &&
6980          { ac_try='test -s conftest.$ac_objext'
6981   { (case "(($ac_try" in
6982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6983   *) ac_try_echo=$ac_try;;
6984 esac
6985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6986   (eval "$ac_try") 2>&5
6987   ac_status=$?
6988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989   (exit $ac_status); }; }; then
6990   gt_cv_header_inttypes_h=yes
6991 else
6992   echo "$as_me: failed program was:" >&5
6993 sed 's/^/| /' conftest.$ac_ext >&5
6994
6995         gt_cv_header_inttypes_h=no
6996 fi
6997
6998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6999
7000 fi
7001 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7002 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
7003   if test $gt_cv_header_inttypes_h = yes; then
7004
7005 cat >>confdefs.h <<_ACEOF
7006 #define HAVE_INTTYPES_H 1
7007 _ACEOF
7008
7009   fi
7010
7011
7012
7013   if test $gt_cv_header_inttypes_h = yes; then
7014     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7015 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
7016 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7017   echo $ECHO_N "(cached) $ECHO_C" >&6
7018 else
7019
7020         cat >conftest.$ac_ext <<_ACEOF
7021 /* confdefs.h.  */
7022 _ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h.  */
7026 #include <inttypes.h>
7027 #ifdef PRId32
7028 char *p = PRId32;
7029 #endif
7030
7031 int
7032 main ()
7033 {
7034
7035   ;
7036   return 0;
7037 }
7038 _ACEOF
7039 rm -f conftest.$ac_objext
7040 if { (ac_try="$ac_compile"
7041 case "(($ac_try" in
7042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7043   *) ac_try_echo=$ac_try;;
7044 esac
7045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7046   (eval "$ac_compile") 2>conftest.er1
7047   ac_status=$?
7048   grep -v '^ *+' conftest.er1 >conftest.err
7049   rm -f conftest.er1
7050   cat conftest.err >&5
7051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052   (exit $ac_status); } &&
7053          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7054   { (case "(($ac_try" in
7055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7056   *) ac_try_echo=$ac_try;;
7057 esac
7058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7059   (eval "$ac_try") 2>&5
7060   ac_status=$?
7061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062   (exit $ac_status); }; } &&
7063          { ac_try='test -s conftest.$ac_objext'
7064   { (case "(($ac_try" in
7065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7066   *) ac_try_echo=$ac_try;;
7067 esac
7068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7069   (eval "$ac_try") 2>&5
7070   ac_status=$?
7071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072   (exit $ac_status); }; }; then
7073   gt_cv_inttypes_pri_broken=no
7074 else
7075   echo "$as_me: failed program was:" >&5
7076 sed 's/^/| /' conftest.$ac_ext >&5
7077
7078         gt_cv_inttypes_pri_broken=yes
7079 fi
7080
7081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7082
7083 fi
7084 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7085 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
7086   fi
7087   if test "$gt_cv_inttypes_pri_broken" = yes; then
7088
7089 cat >>confdefs.h <<_ACEOF
7090 #define PRI_MACROS_BROKEN 1
7091 _ACEOF
7092
7093   fi
7094
7095
7096
7097 for ac_header in stdint.h
7098 do
7099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7101   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7104   echo $ECHO_N "(cached) $ECHO_C" >&6
7105 fi
7106 ac_res=`eval echo '${'$as_ac_Header'}'`
7107                { echo "$as_me:$LINENO: result: $ac_res" >&5
7108 echo "${ECHO_T}$ac_res" >&6; }
7109 else
7110   # Is the header compilable?
7111 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7112 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7113 cat >conftest.$ac_ext <<_ACEOF
7114 /* confdefs.h.  */
7115 _ACEOF
7116 cat confdefs.h >>conftest.$ac_ext
7117 cat >>conftest.$ac_ext <<_ACEOF
7118 /* end confdefs.h.  */
7119 $ac_includes_default
7120 #include <$ac_header>
7121 _ACEOF
7122 rm -f conftest.$ac_objext
7123 if { (ac_try="$ac_compile"
7124 case "(($ac_try" in
7125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7126   *) ac_try_echo=$ac_try;;
7127 esac
7128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7129   (eval "$ac_compile") 2>conftest.er1
7130   ac_status=$?
7131   grep -v '^ *+' conftest.er1 >conftest.err
7132   rm -f conftest.er1
7133   cat conftest.err >&5
7134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135   (exit $ac_status); } &&
7136          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7137   { (case "(($ac_try" in
7138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7139   *) ac_try_echo=$ac_try;;
7140 esac
7141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7142   (eval "$ac_try") 2>&5
7143   ac_status=$?
7144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145   (exit $ac_status); }; } &&
7146          { ac_try='test -s conftest.$ac_objext'
7147   { (case "(($ac_try" in
7148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7149   *) ac_try_echo=$ac_try;;
7150 esac
7151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7152   (eval "$ac_try") 2>&5
7153   ac_status=$?
7154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155   (exit $ac_status); }; }; then
7156   ac_header_compiler=yes
7157 else
7158   echo "$as_me: failed program was:" >&5
7159 sed 's/^/| /' conftest.$ac_ext >&5
7160
7161         ac_header_compiler=no
7162 fi
7163
7164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7165 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7166 echo "${ECHO_T}$ac_header_compiler" >&6; }
7167
7168 # Is the header present?
7169 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7170 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7171 cat >conftest.$ac_ext <<_ACEOF
7172 /* confdefs.h.  */
7173 _ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h.  */
7177 #include <$ac_header>
7178 _ACEOF
7179 if { (ac_try="$ac_cpp conftest.$ac_ext"
7180 case "(($ac_try" in
7181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7182   *) ac_try_echo=$ac_try;;
7183 esac
7184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7185   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7186   ac_status=$?
7187   grep -v '^ *+' conftest.er1 >conftest.err
7188   rm -f conftest.er1
7189   cat conftest.err >&5
7190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191   (exit $ac_status); } >/dev/null; then
7192   if test -s conftest.err; then
7193     ac_cpp_err=$ac_c_preproc_warn_flag
7194     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7195   else
7196     ac_cpp_err=
7197   fi
7198 else
7199   ac_cpp_err=yes
7200 fi
7201 if test -z "$ac_cpp_err"; then
7202   ac_header_preproc=yes
7203 else
7204   echo "$as_me: failed program was:" >&5
7205 sed 's/^/| /' conftest.$ac_ext >&5
7206
7207   ac_header_preproc=no
7208 fi
7209
7210 rm -f conftest.err conftest.$ac_ext
7211 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7212 echo "${ECHO_T}$ac_header_preproc" >&6; }
7213
7214 # So?  What about this header?
7215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7216   yes:no: )
7217     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7219     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7220 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7221     ac_header_preproc=yes
7222     ;;
7223   no:yes:* )
7224     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7225 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7226     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7227 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7228     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7229 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7230     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7231 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7232     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7233 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7234     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7235 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7236
7237     ;;
7238 esac
7239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7242   echo $ECHO_N "(cached) $ECHO_C" >&6
7243 else
7244   eval "$as_ac_Header=\$ac_header_preproc"
7245 fi
7246 ac_res=`eval echo '${'$as_ac_Header'}'`
7247                { echo "$as_me:$LINENO: result: $ac_res" >&5
7248 echo "${ECHO_T}$ac_res" >&6; }
7249
7250 fi
7251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7252   cat >>confdefs.h <<_ACEOF
7253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7254 _ACEOF
7255
7256 fi
7257
7258 done
7259
7260     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7261 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
7262   result=
7263   cat >conftest.$ac_ext <<_ACEOF
7264 /* confdefs.h.  */
7265 _ACEOF
7266 cat confdefs.h >>conftest.$ac_ext
7267 cat >>conftest.$ac_ext <<_ACEOF
7268 /* end confdefs.h.  */
7269
7270 #include <limits.h>
7271 #if HAVE_STDINT_H
7272 #include <stdint.h>
7273 #endif
7274 #ifdef SIZE_MAX
7275 Found it
7276 #endif
7277
7278 _ACEOF
7279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7280   $EGREP "Found it" >/dev/null 2>&1; then
7281   result=yes
7282 fi
7283 rm -f conftest*
7284
7285   if test -z "$result"; then
7286                     if test "$cross_compiling" = yes; then
7287   # Depending upon the size, compute the lo and hi bounds.
7288 cat >conftest.$ac_ext <<_ACEOF
7289 /* confdefs.h.  */
7290 _ACEOF
7291 cat confdefs.h >>conftest.$ac_ext
7292 cat >>conftest.$ac_ext <<_ACEOF
7293 /* end confdefs.h.  */
7294 #include <stddef.h>
7295 int
7296 main ()
7297 {
7298 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7299 test_array [0] = 0
7300
7301   ;
7302   return 0;
7303 }
7304 _ACEOF
7305 rm -f conftest.$ac_objext
7306 if { (ac_try="$ac_compile"
7307 case "(($ac_try" in
7308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7309   *) ac_try_echo=$ac_try;;
7310 esac
7311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7312   (eval "$ac_compile") 2>conftest.er1
7313   ac_status=$?
7314   grep -v '^ *+' conftest.er1 >conftest.err
7315   rm -f conftest.er1
7316   cat conftest.err >&5
7317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318   (exit $ac_status); } &&
7319          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7320   { (case "(($ac_try" in
7321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7322   *) ac_try_echo=$ac_try;;
7323 esac
7324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7325   (eval "$ac_try") 2>&5
7326   ac_status=$?
7327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328   (exit $ac_status); }; } &&
7329          { ac_try='test -s conftest.$ac_objext'
7330   { (case "(($ac_try" in
7331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7332   *) ac_try_echo=$ac_try;;
7333 esac
7334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7335   (eval "$ac_try") 2>&5
7336   ac_status=$?
7337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338   (exit $ac_status); }; }; then
7339   ac_lo=0 ac_mid=0
7340   while :; do
7341     cat >conftest.$ac_ext <<_ACEOF
7342 /* confdefs.h.  */
7343 _ACEOF
7344 cat confdefs.h >>conftest.$ac_ext
7345 cat >>conftest.$ac_ext <<_ACEOF
7346 /* end confdefs.h.  */
7347 #include <stddef.h>
7348 int
7349 main ()
7350 {
7351 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7352 test_array [0] = 0
7353
7354   ;
7355   return 0;
7356 }
7357 _ACEOF
7358 rm -f conftest.$ac_objext
7359 if { (ac_try="$ac_compile"
7360 case "(($ac_try" in
7361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7362   *) ac_try_echo=$ac_try;;
7363 esac
7364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7365   (eval "$ac_compile") 2>conftest.er1
7366   ac_status=$?
7367   grep -v '^ *+' conftest.er1 >conftest.err
7368   rm -f conftest.er1
7369   cat conftest.err >&5
7370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371   (exit $ac_status); } &&
7372          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7373   { (case "(($ac_try" in
7374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7375   *) ac_try_echo=$ac_try;;
7376 esac
7377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7378   (eval "$ac_try") 2>&5
7379   ac_status=$?
7380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381   (exit $ac_status); }; } &&
7382          { ac_try='test -s conftest.$ac_objext'
7383   { (case "(($ac_try" in
7384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7385   *) ac_try_echo=$ac_try;;
7386 esac
7387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7388   (eval "$ac_try") 2>&5
7389   ac_status=$?
7390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391   (exit $ac_status); }; }; then
7392   ac_hi=$ac_mid; break
7393 else
7394   echo "$as_me: failed program was:" >&5
7395 sed 's/^/| /' conftest.$ac_ext >&5
7396
7397         ac_lo=`expr $ac_mid + 1`
7398                         if test $ac_lo -le $ac_mid; then
7399                           ac_lo= ac_hi=
7400                           break
7401                         fi
7402                         ac_mid=`expr 2 '*' $ac_mid + 1`
7403 fi
7404
7405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7406   done
7407 else
7408   echo "$as_me: failed program was:" >&5
7409 sed 's/^/| /' conftest.$ac_ext >&5
7410
7411         cat >conftest.$ac_ext <<_ACEOF
7412 /* confdefs.h.  */
7413 _ACEOF
7414 cat confdefs.h >>conftest.$ac_ext
7415 cat >>conftest.$ac_ext <<_ACEOF
7416 /* end confdefs.h.  */
7417 #include <stddef.h>
7418 int
7419 main ()
7420 {
7421 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7422 test_array [0] = 0
7423
7424   ;
7425   return 0;
7426 }
7427 _ACEOF
7428 rm -f conftest.$ac_objext
7429 if { (ac_try="$ac_compile"
7430 case "(($ac_try" in
7431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7432   *) ac_try_echo=$ac_try;;
7433 esac
7434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7435   (eval "$ac_compile") 2>conftest.er1
7436   ac_status=$?
7437   grep -v '^ *+' conftest.er1 >conftest.err
7438   rm -f conftest.er1
7439   cat conftest.err >&5
7440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7441   (exit $ac_status); } &&
7442          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7443   { (case "(($ac_try" in
7444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7445   *) ac_try_echo=$ac_try;;
7446 esac
7447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7448   (eval "$ac_try") 2>&5
7449   ac_status=$?
7450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451   (exit $ac_status); }; } &&
7452          { ac_try='test -s conftest.$ac_objext'
7453   { (case "(($ac_try" in
7454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7455   *) ac_try_echo=$ac_try;;
7456 esac
7457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7458   (eval "$ac_try") 2>&5
7459   ac_status=$?
7460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461   (exit $ac_status); }; }; then
7462   ac_hi=-1 ac_mid=-1
7463   while :; do
7464     cat >conftest.$ac_ext <<_ACEOF
7465 /* confdefs.h.  */
7466 _ACEOF
7467 cat confdefs.h >>conftest.$ac_ext
7468 cat >>conftest.$ac_ext <<_ACEOF
7469 /* end confdefs.h.  */
7470 #include <stddef.h>
7471 int
7472 main ()
7473 {
7474 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7475 test_array [0] = 0
7476
7477   ;
7478   return 0;
7479 }
7480 _ACEOF
7481 rm -f conftest.$ac_objext
7482 if { (ac_try="$ac_compile"
7483 case "(($ac_try" in
7484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7485   *) ac_try_echo=$ac_try;;
7486 esac
7487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7488   (eval "$ac_compile") 2>conftest.er1
7489   ac_status=$?
7490   grep -v '^ *+' conftest.er1 >conftest.err
7491   rm -f conftest.er1
7492   cat conftest.err >&5
7493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7494   (exit $ac_status); } &&
7495          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7496   { (case "(($ac_try" in
7497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7498   *) ac_try_echo=$ac_try;;
7499 esac
7500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7501   (eval "$ac_try") 2>&5
7502   ac_status=$?
7503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504   (exit $ac_status); }; } &&
7505          { ac_try='test -s conftest.$ac_objext'
7506   { (case "(($ac_try" in
7507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7508   *) ac_try_echo=$ac_try;;
7509 esac
7510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7511   (eval "$ac_try") 2>&5
7512   ac_status=$?
7513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514   (exit $ac_status); }; }; then
7515   ac_lo=$ac_mid; break
7516 else
7517   echo "$as_me: failed program was:" >&5
7518 sed 's/^/| /' conftest.$ac_ext >&5
7519
7520         ac_hi=`expr '(' $ac_mid ')' - 1`
7521                         if test $ac_mid -le $ac_hi; then
7522                           ac_lo= ac_hi=
7523                           break
7524                         fi
7525                         ac_mid=`expr 2 '*' $ac_mid`
7526 fi
7527
7528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7529   done
7530 else
7531   echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7533
7534         ac_lo= ac_hi=
7535 fi
7536
7537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7538 fi
7539
7540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7541 # Binary search between lo and hi bounds.
7542 while test "x$ac_lo" != "x$ac_hi"; do
7543   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7544   cat >conftest.$ac_ext <<_ACEOF
7545 /* confdefs.h.  */
7546 _ACEOF
7547 cat confdefs.h >>conftest.$ac_ext
7548 cat >>conftest.$ac_ext <<_ACEOF
7549 /* end confdefs.h.  */
7550 #include <stddef.h>
7551 int
7552 main ()
7553 {
7554 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7555 test_array [0] = 0
7556
7557   ;
7558   return 0;
7559 }
7560 _ACEOF
7561 rm -f conftest.$ac_objext
7562 if { (ac_try="$ac_compile"
7563 case "(($ac_try" in
7564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7565   *) ac_try_echo=$ac_try;;
7566 esac
7567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7568   (eval "$ac_compile") 2>conftest.er1
7569   ac_status=$?
7570   grep -v '^ *+' conftest.er1 >conftest.err
7571   rm -f conftest.er1
7572   cat conftest.err >&5
7573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574   (exit $ac_status); } &&
7575          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7576   { (case "(($ac_try" in
7577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7578   *) ac_try_echo=$ac_try;;
7579 esac
7580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7581   (eval "$ac_try") 2>&5
7582   ac_status=$?
7583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584   (exit $ac_status); }; } &&
7585          { ac_try='test -s conftest.$ac_objext'
7586   { (case "(($ac_try" in
7587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7588   *) ac_try_echo=$ac_try;;
7589 esac
7590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7591   (eval "$ac_try") 2>&5
7592   ac_status=$?
7593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594   (exit $ac_status); }; }; then
7595   ac_hi=$ac_mid
7596 else
7597   echo "$as_me: failed program was:" >&5
7598 sed 's/^/| /' conftest.$ac_ext >&5
7599
7600         ac_lo=`expr '(' $ac_mid ')' + 1`
7601 fi
7602
7603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7604 done
7605 case $ac_lo in
7606 ?*) res_hi=$ac_lo;;
7607 '') result=? ;;
7608 esac
7609 else
7610   cat >conftest.$ac_ext <<_ACEOF
7611 /* confdefs.h.  */
7612 _ACEOF
7613 cat confdefs.h >>conftest.$ac_ext
7614 cat >>conftest.$ac_ext <<_ACEOF
7615 /* end confdefs.h.  */
7616 #include <stddef.h>
7617 static long int longval () { return ~(size_t)0 / 10; }
7618 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
7619 #include <stdio.h>
7620 #include <stdlib.h>
7621 int
7622 main ()
7623 {
7624
7625   FILE *f = fopen ("conftest.val", "w");
7626   if (! f)
7627     return 1;
7628   if ((~(size_t)0 / 10) < 0)
7629     {
7630       long int i = longval ();
7631       if (i != (~(size_t)0 / 10))
7632         return 1;
7633       fprintf (f, "%ld\n", i);
7634     }
7635   else
7636     {
7637       unsigned long int i = ulongval ();
7638       if (i != (~(size_t)0 / 10))
7639         return 1;
7640       fprintf (f, "%lu\n", i);
7641     }
7642   return ferror (f) || fclose (f) != 0;
7643
7644   ;
7645   return 0;
7646 }
7647 _ACEOF
7648 rm -f conftest$ac_exeext
7649 if { (ac_try="$ac_link"
7650 case "(($ac_try" in
7651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7652   *) ac_try_echo=$ac_try;;
7653 esac
7654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7655   (eval "$ac_link") 2>&5
7656   ac_status=$?
7657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7659   { (case "(($ac_try" in
7660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7661   *) ac_try_echo=$ac_try;;
7662 esac
7663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7664   (eval "$ac_try") 2>&5
7665   ac_status=$?
7666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7667   (exit $ac_status); }; }; then
7668   res_hi=`cat conftest.val`
7669 else
7670   echo "$as_me: program exited with status $ac_status" >&5
7671 echo "$as_me: failed program was:" >&5
7672 sed 's/^/| /' conftest.$ac_ext >&5
7673
7674 ( exit $ac_status )
7675 result=?
7676 fi
7677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7678 fi
7679 rm -f conftest.val
7680     if test "$cross_compiling" = yes; then
7681   # Depending upon the size, compute the lo and hi bounds.
7682 cat >conftest.$ac_ext <<_ACEOF
7683 /* confdefs.h.  */
7684 _ACEOF
7685 cat confdefs.h >>conftest.$ac_ext
7686 cat >>conftest.$ac_ext <<_ACEOF
7687 /* end confdefs.h.  */
7688 #include <stddef.h>
7689 int
7690 main ()
7691 {
7692 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7693 test_array [0] = 0
7694
7695   ;
7696   return 0;
7697 }
7698 _ACEOF
7699 rm -f conftest.$ac_objext
7700 if { (ac_try="$ac_compile"
7701 case "(($ac_try" in
7702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7703   *) ac_try_echo=$ac_try;;
7704 esac
7705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7706   (eval "$ac_compile") 2>conftest.er1
7707   ac_status=$?
7708   grep -v '^ *+' conftest.er1 >conftest.err
7709   rm -f conftest.er1
7710   cat conftest.err >&5
7711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712   (exit $ac_status); } &&
7713          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7714   { (case "(($ac_try" in
7715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7716   *) ac_try_echo=$ac_try;;
7717 esac
7718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7719   (eval "$ac_try") 2>&5
7720   ac_status=$?
7721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722   (exit $ac_status); }; } &&
7723          { ac_try='test -s conftest.$ac_objext'
7724   { (case "(($ac_try" in
7725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7726   *) ac_try_echo=$ac_try;;
7727 esac
7728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7729   (eval "$ac_try") 2>&5
7730   ac_status=$?
7731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732   (exit $ac_status); }; }; then
7733   ac_lo=0 ac_mid=0
7734   while :; do
7735     cat >conftest.$ac_ext <<_ACEOF
7736 /* confdefs.h.  */
7737 _ACEOF
7738 cat confdefs.h >>conftest.$ac_ext
7739 cat >>conftest.$ac_ext <<_ACEOF
7740 /* end confdefs.h.  */
7741 #include <stddef.h>
7742 int
7743 main ()
7744 {
7745 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7746 test_array [0] = 0
7747
7748   ;
7749   return 0;
7750 }
7751 _ACEOF
7752 rm -f conftest.$ac_objext
7753 if { (ac_try="$ac_compile"
7754 case "(($ac_try" in
7755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7756   *) ac_try_echo=$ac_try;;
7757 esac
7758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7759   (eval "$ac_compile") 2>conftest.er1
7760   ac_status=$?
7761   grep -v '^ *+' conftest.er1 >conftest.err
7762   rm -f conftest.er1
7763   cat conftest.err >&5
7764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765   (exit $ac_status); } &&
7766          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7767   { (case "(($ac_try" in
7768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7769   *) ac_try_echo=$ac_try;;
7770 esac
7771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7772   (eval "$ac_try") 2>&5
7773   ac_status=$?
7774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775   (exit $ac_status); }; } &&
7776          { ac_try='test -s conftest.$ac_objext'
7777   { (case "(($ac_try" in
7778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7779   *) ac_try_echo=$ac_try;;
7780 esac
7781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7782   (eval "$ac_try") 2>&5
7783   ac_status=$?
7784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785   (exit $ac_status); }; }; then
7786   ac_hi=$ac_mid; break
7787 else
7788   echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.$ac_ext >&5
7790
7791         ac_lo=`expr $ac_mid + 1`
7792                         if test $ac_lo -le $ac_mid; then
7793                           ac_lo= ac_hi=
7794                           break
7795                         fi
7796                         ac_mid=`expr 2 '*' $ac_mid + 1`
7797 fi
7798
7799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7800   done
7801 else
7802   echo "$as_me: failed program was:" >&5
7803 sed 's/^/| /' conftest.$ac_ext >&5
7804
7805         cat >conftest.$ac_ext <<_ACEOF
7806 /* confdefs.h.  */
7807 _ACEOF
7808 cat confdefs.h >>conftest.$ac_ext
7809 cat >>conftest.$ac_ext <<_ACEOF
7810 /* end confdefs.h.  */
7811 #include <stddef.h>
7812 int
7813 main ()
7814 {
7815 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7816 test_array [0] = 0
7817
7818   ;
7819   return 0;
7820 }
7821 _ACEOF
7822 rm -f conftest.$ac_objext
7823 if { (ac_try="$ac_compile"
7824 case "(($ac_try" in
7825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7826   *) ac_try_echo=$ac_try;;
7827 esac
7828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7829   (eval "$ac_compile") 2>conftest.er1
7830   ac_status=$?
7831   grep -v '^ *+' conftest.er1 >conftest.err
7832   rm -f conftest.er1
7833   cat conftest.err >&5
7834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835   (exit $ac_status); } &&
7836          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7837   { (case "(($ac_try" in
7838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7839   *) ac_try_echo=$ac_try;;
7840 esac
7841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7842   (eval "$ac_try") 2>&5
7843   ac_status=$?
7844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845   (exit $ac_status); }; } &&
7846          { ac_try='test -s conftest.$ac_objext'
7847   { (case "(($ac_try" in
7848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7849   *) ac_try_echo=$ac_try;;
7850 esac
7851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7852   (eval "$ac_try") 2>&5
7853   ac_status=$?
7854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855   (exit $ac_status); }; }; then
7856   ac_hi=-1 ac_mid=-1
7857   while :; do
7858     cat >conftest.$ac_ext <<_ACEOF
7859 /* confdefs.h.  */
7860 _ACEOF
7861 cat confdefs.h >>conftest.$ac_ext
7862 cat >>conftest.$ac_ext <<_ACEOF
7863 /* end confdefs.h.  */
7864 #include <stddef.h>
7865 int
7866 main ()
7867 {
7868 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7869 test_array [0] = 0
7870
7871   ;
7872   return 0;
7873 }
7874 _ACEOF
7875 rm -f conftest.$ac_objext
7876 if { (ac_try="$ac_compile"
7877 case "(($ac_try" in
7878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879   *) ac_try_echo=$ac_try;;
7880 esac
7881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882   (eval "$ac_compile") 2>conftest.er1
7883   ac_status=$?
7884   grep -v '^ *+' conftest.er1 >conftest.err
7885   rm -f conftest.er1
7886   cat conftest.err >&5
7887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888   (exit $ac_status); } &&
7889          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7890   { (case "(($ac_try" in
7891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7892   *) ac_try_echo=$ac_try;;
7893 esac
7894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7895   (eval "$ac_try") 2>&5
7896   ac_status=$?
7897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898   (exit $ac_status); }; } &&
7899          { ac_try='test -s conftest.$ac_objext'
7900   { (case "(($ac_try" in
7901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7902   *) ac_try_echo=$ac_try;;
7903 esac
7904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7905   (eval "$ac_try") 2>&5
7906   ac_status=$?
7907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908   (exit $ac_status); }; }; then
7909   ac_lo=$ac_mid; break
7910 else
7911   echo "$as_me: failed program was:" >&5
7912 sed 's/^/| /' conftest.$ac_ext >&5
7913
7914         ac_hi=`expr '(' $ac_mid ')' - 1`
7915                         if test $ac_mid -le $ac_hi; then
7916                           ac_lo= ac_hi=
7917                           break
7918                         fi
7919                         ac_mid=`expr 2 '*' $ac_mid`
7920 fi
7921
7922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7923   done
7924 else
7925   echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7927
7928         ac_lo= ac_hi=
7929 fi
7930
7931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7932 fi
7933
7934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7935 # Binary search between lo and hi bounds.
7936 while test "x$ac_lo" != "x$ac_hi"; do
7937   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7938   cat >conftest.$ac_ext <<_ACEOF
7939 /* confdefs.h.  */
7940 _ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h.  */
7944 #include <stddef.h>
7945 int
7946 main ()
7947 {
7948 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7949 test_array [0] = 0
7950
7951   ;
7952   return 0;
7953 }
7954 _ACEOF
7955 rm -f conftest.$ac_objext
7956 if { (ac_try="$ac_compile"
7957 case "(($ac_try" in
7958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7959   *) ac_try_echo=$ac_try;;
7960 esac
7961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7962   (eval "$ac_compile") 2>conftest.er1
7963   ac_status=$?
7964   grep -v '^ *+' conftest.er1 >conftest.err
7965   rm -f conftest.er1
7966   cat conftest.err >&5
7967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968   (exit $ac_status); } &&
7969          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7970   { (case "(($ac_try" in
7971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972   *) ac_try_echo=$ac_try;;
7973 esac
7974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7975   (eval "$ac_try") 2>&5
7976   ac_status=$?
7977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978   (exit $ac_status); }; } &&
7979          { ac_try='test -s conftest.$ac_objext'
7980   { (case "(($ac_try" in
7981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7982   *) ac_try_echo=$ac_try;;
7983 esac
7984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7985   (eval "$ac_try") 2>&5
7986   ac_status=$?
7987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988   (exit $ac_status); }; }; then
7989   ac_hi=$ac_mid
7990 else
7991   echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7993
7994         ac_lo=`expr '(' $ac_mid ')' + 1`
7995 fi
7996
7997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7998 done
7999 case $ac_lo in
8000 ?*) res_lo=$ac_lo;;
8001 '') result=? ;;
8002 esac
8003 else
8004   cat >conftest.$ac_ext <<_ACEOF
8005 /* confdefs.h.  */
8006 _ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h.  */
8010 #include <stddef.h>
8011 static long int longval () { return ~(size_t)0 % 10; }
8012 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
8013 #include <stdio.h>
8014 #include <stdlib.h>
8015 int
8016 main ()
8017 {
8018
8019   FILE *f = fopen ("conftest.val", "w");
8020   if (! f)
8021     return 1;
8022   if ((~(size_t)0 % 10) < 0)
8023     {
8024       long int i = longval ();
8025       if (i != (~(size_t)0 % 10))
8026         return 1;
8027       fprintf (f, "%ld\n", i);
8028     }
8029   else
8030     {
8031       unsigned long int i = ulongval ();
8032       if (i != (~(size_t)0 % 10))
8033         return 1;
8034       fprintf (f, "%lu\n", i);
8035     }
8036   return ferror (f) || fclose (f) != 0;
8037
8038   ;
8039   return 0;
8040 }
8041 _ACEOF
8042 rm -f conftest$ac_exeext
8043 if { (ac_try="$ac_link"
8044 case "(($ac_try" in
8045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8046   *) ac_try_echo=$ac_try;;
8047 esac
8048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8049   (eval "$ac_link") 2>&5
8050   ac_status=$?
8051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8053   { (case "(($ac_try" in
8054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8055   *) ac_try_echo=$ac_try;;
8056 esac
8057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8058   (eval "$ac_try") 2>&5
8059   ac_status=$?
8060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061   (exit $ac_status); }; }; then
8062   res_lo=`cat conftest.val`
8063 else
8064   echo "$as_me: program exited with status $ac_status" >&5
8065 echo "$as_me: failed program was:" >&5
8066 sed 's/^/| /' conftest.$ac_ext >&5
8067
8068 ( exit $ac_status )
8069 result=?
8070 fi
8071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8072 fi
8073 rm -f conftest.val
8074     if test "$cross_compiling" = yes; then
8075   # Depending upon the size, compute the lo and hi bounds.
8076 cat >conftest.$ac_ext <<_ACEOF
8077 /* confdefs.h.  */
8078 _ACEOF
8079 cat confdefs.h >>conftest.$ac_ext
8080 cat >>conftest.$ac_ext <<_ACEOF
8081 /* end confdefs.h.  */
8082 #include <stddef.h>
8083 int
8084 main ()
8085 {
8086 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
8087 test_array [0] = 0
8088
8089   ;
8090   return 0;
8091 }
8092 _ACEOF
8093 rm -f conftest.$ac_objext
8094 if { (ac_try="$ac_compile"
8095 case "(($ac_try" in
8096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8097   *) ac_try_echo=$ac_try;;
8098 esac
8099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8100   (eval "$ac_compile") 2>conftest.er1
8101   ac_status=$?
8102   grep -v '^ *+' conftest.er1 >conftest.err
8103   rm -f conftest.er1
8104   cat conftest.err >&5
8105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106   (exit $ac_status); } &&
8107          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8108   { (case "(($ac_try" in
8109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110   *) ac_try_echo=$ac_try;;
8111 esac
8112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113   (eval "$ac_try") 2>&5
8114   ac_status=$?
8115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116   (exit $ac_status); }; } &&
8117          { ac_try='test -s conftest.$ac_objext'
8118   { (case "(($ac_try" in
8119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120   *) ac_try_echo=$ac_try;;
8121 esac
8122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123   (eval "$ac_try") 2>&5
8124   ac_status=$?
8125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126   (exit $ac_status); }; }; then
8127   ac_lo=0 ac_mid=0
8128   while :; do
8129     cat >conftest.$ac_ext <<_ACEOF
8130 /* confdefs.h.  */
8131 _ACEOF
8132 cat confdefs.h >>conftest.$ac_ext
8133 cat >>conftest.$ac_ext <<_ACEOF
8134 /* end confdefs.h.  */
8135 #include <stddef.h>
8136 int
8137 main ()
8138 {
8139 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8140 test_array [0] = 0
8141
8142   ;
8143   return 0;
8144 }
8145 _ACEOF
8146 rm -f conftest.$ac_objext
8147 if { (ac_try="$ac_compile"
8148 case "(($ac_try" in
8149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8150   *) ac_try_echo=$ac_try;;
8151 esac
8152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8153   (eval "$ac_compile") 2>conftest.er1
8154   ac_status=$?
8155   grep -v '^ *+' conftest.er1 >conftest.err
8156   rm -f conftest.er1
8157   cat conftest.err >&5
8158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159   (exit $ac_status); } &&
8160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8161   { (case "(($ac_try" in
8162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8163   *) ac_try_echo=$ac_try;;
8164 esac
8165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8166   (eval "$ac_try") 2>&5
8167   ac_status=$?
8168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169   (exit $ac_status); }; } &&
8170          { ac_try='test -s conftest.$ac_objext'
8171   { (case "(($ac_try" in
8172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173   *) ac_try_echo=$ac_try;;
8174 esac
8175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8176   (eval "$ac_try") 2>&5
8177   ac_status=$?
8178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179   (exit $ac_status); }; }; then
8180   ac_hi=$ac_mid; break
8181 else
8182   echo "$as_me: failed program was:" >&5
8183 sed 's/^/| /' conftest.$ac_ext >&5
8184
8185         ac_lo=`expr $ac_mid + 1`
8186                         if test $ac_lo -le $ac_mid; then
8187                           ac_lo= ac_hi=
8188                           break
8189                         fi
8190                         ac_mid=`expr 2 '*' $ac_mid + 1`
8191 fi
8192
8193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8194   done
8195 else
8196   echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8198
8199         cat >conftest.$ac_ext <<_ACEOF
8200 /* confdefs.h.  */
8201 _ACEOF
8202 cat confdefs.h >>conftest.$ac_ext
8203 cat >>conftest.$ac_ext <<_ACEOF
8204 /* end confdefs.h.  */
8205 #include <stddef.h>
8206 int
8207 main ()
8208 {
8209 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8210 test_array [0] = 0
8211
8212   ;
8213   return 0;
8214 }
8215 _ACEOF
8216 rm -f conftest.$ac_objext
8217 if { (ac_try="$ac_compile"
8218 case "(($ac_try" in
8219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220   *) ac_try_echo=$ac_try;;
8221 esac
8222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8223   (eval "$ac_compile") 2>conftest.er1
8224   ac_status=$?
8225   grep -v '^ *+' conftest.er1 >conftest.err
8226   rm -f conftest.er1
8227   cat conftest.err >&5
8228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229   (exit $ac_status); } &&
8230          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8231   { (case "(($ac_try" in
8232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8233   *) ac_try_echo=$ac_try;;
8234 esac
8235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8236   (eval "$ac_try") 2>&5
8237   ac_status=$?
8238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239   (exit $ac_status); }; } &&
8240          { ac_try='test -s conftest.$ac_objext'
8241   { (case "(($ac_try" in
8242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8243   *) ac_try_echo=$ac_try;;
8244 esac
8245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8246   (eval "$ac_try") 2>&5
8247   ac_status=$?
8248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249   (exit $ac_status); }; }; then
8250   ac_hi=-1 ac_mid=-1
8251   while :; do
8252     cat >conftest.$ac_ext <<_ACEOF
8253 /* confdefs.h.  */
8254 _ACEOF
8255 cat confdefs.h >>conftest.$ac_ext
8256 cat >>conftest.$ac_ext <<_ACEOF
8257 /* end confdefs.h.  */
8258 #include <stddef.h>
8259 int
8260 main ()
8261 {
8262 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8263 test_array [0] = 0
8264
8265   ;
8266   return 0;
8267 }
8268 _ACEOF
8269 rm -f conftest.$ac_objext
8270 if { (ac_try="$ac_compile"
8271 case "(($ac_try" in
8272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8273   *) ac_try_echo=$ac_try;;
8274 esac
8275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8276   (eval "$ac_compile") 2>conftest.er1
8277   ac_status=$?
8278   grep -v '^ *+' conftest.er1 >conftest.err
8279   rm -f conftest.er1
8280   cat conftest.err >&5
8281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282   (exit $ac_status); } &&
8283          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8284   { (case "(($ac_try" in
8285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8286   *) ac_try_echo=$ac_try;;
8287 esac
8288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8289   (eval "$ac_try") 2>&5
8290   ac_status=$?
8291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292   (exit $ac_status); }; } &&
8293          { ac_try='test -s conftest.$ac_objext'
8294   { (case "(($ac_try" in
8295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8296   *) ac_try_echo=$ac_try;;
8297 esac
8298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299   (eval "$ac_try") 2>&5
8300   ac_status=$?
8301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302   (exit $ac_status); }; }; then
8303   ac_lo=$ac_mid; break
8304 else
8305   echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8307
8308         ac_hi=`expr '(' $ac_mid ')' - 1`
8309                         if test $ac_mid -le $ac_hi; then
8310                           ac_lo= ac_hi=
8311                           break
8312                         fi
8313                         ac_mid=`expr 2 '*' $ac_mid`
8314 fi
8315
8316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8317   done
8318 else
8319   echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8321
8322         ac_lo= ac_hi=
8323 fi
8324
8325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8326 fi
8327
8328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8329 # Binary search between lo and hi bounds.
8330 while test "x$ac_lo" != "x$ac_hi"; do
8331   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8332   cat >conftest.$ac_ext <<_ACEOF
8333 /* confdefs.h.  */
8334 _ACEOF
8335 cat confdefs.h >>conftest.$ac_ext
8336 cat >>conftest.$ac_ext <<_ACEOF
8337 /* end confdefs.h.  */
8338 #include <stddef.h>
8339 int
8340 main ()
8341 {
8342 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8343 test_array [0] = 0
8344
8345   ;
8346   return 0;
8347 }
8348 _ACEOF
8349 rm -f conftest.$ac_objext
8350 if { (ac_try="$ac_compile"
8351 case "(($ac_try" in
8352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8353   *) ac_try_echo=$ac_try;;
8354 esac
8355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8356   (eval "$ac_compile") 2>conftest.er1
8357   ac_status=$?
8358   grep -v '^ *+' conftest.er1 >conftest.err
8359   rm -f conftest.er1
8360   cat conftest.err >&5
8361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362   (exit $ac_status); } &&
8363          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8364   { (case "(($ac_try" in
8365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366   *) ac_try_echo=$ac_try;;
8367 esac
8368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8369   (eval "$ac_try") 2>&5
8370   ac_status=$?
8371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372   (exit $ac_status); }; } &&
8373          { ac_try='test -s conftest.$ac_objext'
8374   { (case "(($ac_try" in
8375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376   *) ac_try_echo=$ac_try;;
8377 esac
8378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8379   (eval "$ac_try") 2>&5
8380   ac_status=$?
8381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382   (exit $ac_status); }; }; then
8383   ac_hi=$ac_mid
8384 else
8385   echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8387
8388         ac_lo=`expr '(' $ac_mid ')' + 1`
8389 fi
8390
8391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8392 done
8393 case $ac_lo in
8394 ?*) fits_in_uint=$ac_lo;;
8395 '') result=? ;;
8396 esac
8397 else
8398   cat >conftest.$ac_ext <<_ACEOF
8399 /* confdefs.h.  */
8400 _ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h.  */
8404 #include <stddef.h>
8405 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8406 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
8407 #include <stdio.h>
8408 #include <stdlib.h>
8409 int
8410 main ()
8411 {
8412
8413   FILE *f = fopen ("conftest.val", "w");
8414   if (! f)
8415     return 1;
8416   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8417     {
8418       long int i = longval ();
8419       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8420         return 1;
8421       fprintf (f, "%ld\n", i);
8422     }
8423   else
8424     {
8425       unsigned long int i = ulongval ();
8426       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
8427         return 1;
8428       fprintf (f, "%lu\n", i);
8429     }
8430   return ferror (f) || fclose (f) != 0;
8431
8432   ;
8433   return 0;
8434 }
8435 _ACEOF
8436 rm -f conftest$ac_exeext
8437 if { (ac_try="$ac_link"
8438 case "(($ac_try" in
8439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8440   *) ac_try_echo=$ac_try;;
8441 esac
8442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8443   (eval "$ac_link") 2>&5
8444   ac_status=$?
8445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8447   { (case "(($ac_try" in
8448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8449   *) ac_try_echo=$ac_try;;
8450 esac
8451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8452   (eval "$ac_try") 2>&5
8453   ac_status=$?
8454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455   (exit $ac_status); }; }; then
8456   fits_in_uint=`cat conftest.val`
8457 else
8458   echo "$as_me: program exited with status $ac_status" >&5
8459 echo "$as_me: failed program was:" >&5
8460 sed 's/^/| /' conftest.$ac_ext >&5
8461
8462 ( exit $ac_status )
8463 result=?
8464 fi
8465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8466 fi
8467 rm -f conftest.val
8468     if test "$fits_in_uint" = 1; then
8469                   cat >conftest.$ac_ext <<_ACEOF
8470 /* confdefs.h.  */
8471 _ACEOF
8472 cat confdefs.h >>conftest.$ac_ext
8473 cat >>conftest.$ac_ext <<_ACEOF
8474 /* end confdefs.h.  */
8475 #include <stddef.h>
8476         extern size_t foo;
8477         extern unsigned long foo;
8478
8479 int
8480 main ()
8481 {
8482
8483   ;
8484   return 0;
8485 }
8486 _ACEOF
8487 rm -f conftest.$ac_objext
8488 if { (ac_try="$ac_compile"
8489 case "(($ac_try" in
8490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8491   *) ac_try_echo=$ac_try;;
8492 esac
8493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8494   (eval "$ac_compile") 2>conftest.er1
8495   ac_status=$?
8496   grep -v '^ *+' conftest.er1 >conftest.err
8497   rm -f conftest.er1
8498   cat conftest.err >&5
8499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500   (exit $ac_status); } &&
8501          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8502   { (case "(($ac_try" in
8503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8504   *) ac_try_echo=$ac_try;;
8505 esac
8506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8507   (eval "$ac_try") 2>&5
8508   ac_status=$?
8509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510   (exit $ac_status); }; } &&
8511          { ac_try='test -s conftest.$ac_objext'
8512   { (case "(($ac_try" in
8513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514   *) ac_try_echo=$ac_try;;
8515 esac
8516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517   (eval "$ac_try") 2>&5
8518   ac_status=$?
8519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520   (exit $ac_status); }; }; then
8521   fits_in_uint=0
8522 else
8523   echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.$ac_ext >&5
8525
8526
8527 fi
8528
8529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8530     fi
8531     if test -z "$result"; then
8532       if test "$fits_in_uint" = 1; then
8533         result="$res_hi$res_lo"U
8534       else
8535         result="$res_hi$res_lo"UL
8536       fi
8537     else
8538             result='~(size_t)0'
8539     fi
8540   fi
8541   { echo "$as_me:$LINENO: result: $result" >&5
8542 echo "${ECHO_T}$result" >&6; }
8543   if test "$result" != yes; then
8544
8545 cat >>confdefs.h <<_ACEOF
8546 #define SIZE_MAX $result
8547 _ACEOF
8548
8549   fi
8550
8551
8552
8553
8554
8555 for ac_header in stdint.h
8556 do
8557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8558 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8559   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8562   echo $ECHO_N "(cached) $ECHO_C" >&6
8563 fi
8564 ac_res=`eval echo '${'$as_ac_Header'}'`
8565                { echo "$as_me:$LINENO: result: $ac_res" >&5
8566 echo "${ECHO_T}$ac_res" >&6; }
8567 else
8568   # Is the header compilable?
8569 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8570 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8571 cat >conftest.$ac_ext <<_ACEOF
8572 /* confdefs.h.  */
8573 _ACEOF
8574 cat confdefs.h >>conftest.$ac_ext
8575 cat >>conftest.$ac_ext <<_ACEOF
8576 /* end confdefs.h.  */
8577 $ac_includes_default
8578 #include <$ac_header>
8579 _ACEOF
8580 rm -f conftest.$ac_objext
8581 if { (ac_try="$ac_compile"
8582 case "(($ac_try" in
8583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584   *) ac_try_echo=$ac_try;;
8585 esac
8586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8587   (eval "$ac_compile") 2>conftest.er1
8588   ac_status=$?
8589   grep -v '^ *+' conftest.er1 >conftest.err
8590   rm -f conftest.er1
8591   cat conftest.err >&5
8592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593   (exit $ac_status); } &&
8594          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8595   { (case "(($ac_try" in
8596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8597   *) ac_try_echo=$ac_try;;
8598 esac
8599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8600   (eval "$ac_try") 2>&5
8601   ac_status=$?
8602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603   (exit $ac_status); }; } &&
8604          { ac_try='test -s conftest.$ac_objext'
8605   { (case "(($ac_try" in
8606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8607   *) ac_try_echo=$ac_try;;
8608 esac
8609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8610   (eval "$ac_try") 2>&5
8611   ac_status=$?
8612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613   (exit $ac_status); }; }; then
8614   ac_header_compiler=yes
8615 else
8616   echo "$as_me: failed program was:" >&5
8617 sed 's/^/| /' conftest.$ac_ext >&5
8618
8619         ac_header_compiler=no
8620 fi
8621
8622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8623 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8624 echo "${ECHO_T}$ac_header_compiler" >&6; }
8625
8626 # Is the header present?
8627 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8629 cat >conftest.$ac_ext <<_ACEOF
8630 /* confdefs.h.  */
8631 _ACEOF
8632 cat confdefs.h >>conftest.$ac_ext
8633 cat >>conftest.$ac_ext <<_ACEOF
8634 /* end confdefs.h.  */
8635 #include <$ac_header>
8636 _ACEOF
8637 if { (ac_try="$ac_cpp conftest.$ac_ext"
8638 case "(($ac_try" in
8639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8640   *) ac_try_echo=$ac_try;;
8641 esac
8642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8643   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8644   ac_status=$?
8645   grep -v '^ *+' conftest.er1 >conftest.err
8646   rm -f conftest.er1
8647   cat conftest.err >&5
8648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649   (exit $ac_status); } >/dev/null; then
8650   if test -s conftest.err; then
8651     ac_cpp_err=$ac_c_preproc_warn_flag
8652     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8653   else
8654     ac_cpp_err=
8655   fi
8656 else
8657   ac_cpp_err=yes
8658 fi
8659 if test -z "$ac_cpp_err"; then
8660   ac_header_preproc=yes
8661 else
8662   echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.$ac_ext >&5
8664
8665   ac_header_preproc=no
8666 fi
8667
8668 rm -f conftest.err conftest.$ac_ext
8669 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8670 echo "${ECHO_T}$ac_header_preproc" >&6; }
8671
8672 # So?  What about this header?
8673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8674   yes:no: )
8675     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8676 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8677     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8678 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8679     ac_header_preproc=yes
8680     ;;
8681   no:yes:* )
8682     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8683 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8684     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8685 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8686     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8687 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8688     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8689 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8690     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8691 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8692     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8693 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8694
8695     ;;
8696 esac
8697 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8700   echo $ECHO_N "(cached) $ECHO_C" >&6
8701 else
8702   eval "$as_ac_Header=\$ac_header_preproc"
8703 fi
8704 ac_res=`eval echo '${'$as_ac_Header'}'`
8705                { echo "$as_me:$LINENO: result: $ac_res" >&5
8706 echo "${ECHO_T}$ac_res" >&6; }
8707
8708 fi
8709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8710   cat >>confdefs.h <<_ACEOF
8711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8712 _ACEOF
8713
8714 fi
8715
8716 done
8717
8718
8719
8720     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
8721 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
8722 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
8723   echo $ECHO_N "(cached) $ECHO_C" >&6
8724 else
8725   gt_save_CPPFLAGS="$CPPFLAGS"
8726      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
8727      gt_save_LIBS="$LIBS"
8728      LIBS="$LIBS -framework CoreFoundation"
8729      cat >conftest.$ac_ext <<_ACEOF
8730 /* confdefs.h.  */
8731 _ACEOF
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h.  */
8735 #include <CFPreferences.h>
8736 int
8737 main ()
8738 {
8739 CFPreferencesCopyAppValue(NULL, NULL)
8740   ;
8741   return 0;
8742 }
8743 _ACEOF
8744 rm -f conftest.$ac_objext conftest$ac_exeext
8745 if { (ac_try="$ac_link"
8746 case "(($ac_try" in
8747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8748   *) ac_try_echo=$ac_try;;
8749 esac
8750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8751   (eval "$ac_link") 2>conftest.er1
8752   ac_status=$?
8753   grep -v '^ *+' conftest.er1 >conftest.err
8754   rm -f conftest.er1
8755   cat conftest.err >&5
8756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757   (exit $ac_status); } &&
8758          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8759   { (case "(($ac_try" in
8760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8761   *) ac_try_echo=$ac_try;;
8762 esac
8763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8764   (eval "$ac_try") 2>&5
8765   ac_status=$?
8766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767   (exit $ac_status); }; } &&
8768          { ac_try='test -s conftest$ac_exeext'
8769   { (case "(($ac_try" in
8770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8771   *) ac_try_echo=$ac_try;;
8772 esac
8773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8774   (eval "$ac_try") 2>&5
8775   ac_status=$?
8776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777   (exit $ac_status); }; }; then
8778   gt_cv_func_CFPreferencesCopyAppValue=yes
8779 else
8780   echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8782
8783         gt_cv_func_CFPreferencesCopyAppValue=no
8784 fi
8785
8786 rm -f core conftest.err conftest.$ac_objext \
8787       conftest$ac_exeext conftest.$ac_ext
8788      CPPFLAGS="$gt_save_CPPFLAGS"
8789      LIBS="$gt_save_LIBS"
8790 fi
8791 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8792 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8793   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8794
8795 cat >>confdefs.h <<\_ACEOF
8796 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
8797 _ACEOF
8798
8799   fi
8800     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
8801 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
8802 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
8803   echo $ECHO_N "(cached) $ECHO_C" >&6
8804 else
8805   gt_save_CPPFLAGS="$CPPFLAGS"
8806      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
8807      gt_save_LIBS="$LIBS"
8808      LIBS="$LIBS -framework CoreFoundation"
8809      cat >conftest.$ac_ext <<_ACEOF
8810 /* confdefs.h.  */
8811 _ACEOF
8812 cat confdefs.h >>conftest.$ac_ext
8813 cat >>conftest.$ac_ext <<_ACEOF
8814 /* end confdefs.h.  */
8815 #include <CFLocale.h>
8816 int
8817 main ()
8818 {
8819 CFLocaleCopyCurrent();
8820   ;
8821   return 0;
8822 }
8823 _ACEOF
8824 rm -f conftest.$ac_objext conftest$ac_exeext
8825 if { (ac_try="$ac_link"
8826 case "(($ac_try" in
8827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8828   *) ac_try_echo=$ac_try;;
8829 esac
8830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8831   (eval "$ac_link") 2>conftest.er1
8832   ac_status=$?
8833   grep -v '^ *+' conftest.er1 >conftest.err
8834   rm -f conftest.er1
8835   cat conftest.err >&5
8836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837   (exit $ac_status); } &&
8838          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8839   { (case "(($ac_try" in
8840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8841   *) ac_try_echo=$ac_try;;
8842 esac
8843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8844   (eval "$ac_try") 2>&5
8845   ac_status=$?
8846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847   (exit $ac_status); }; } &&
8848          { ac_try='test -s conftest$ac_exeext'
8849   { (case "(($ac_try" in
8850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8851   *) ac_try_echo=$ac_try;;
8852 esac
8853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8854   (eval "$ac_try") 2>&5
8855   ac_status=$?
8856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857   (exit $ac_status); }; }; then
8858   gt_cv_func_CFLocaleCopyCurrent=yes
8859 else
8860   echo "$as_me: failed program was:" >&5
8861 sed 's/^/| /' conftest.$ac_ext >&5
8862
8863         gt_cv_func_CFLocaleCopyCurrent=no
8864 fi
8865
8866 rm -f core conftest.err conftest.$ac_objext \
8867       conftest$ac_exeext conftest.$ac_ext
8868      CPPFLAGS="$gt_save_CPPFLAGS"
8869      LIBS="$gt_save_LIBS"
8870 fi
8871 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
8872 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
8873   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8874
8875 cat >>confdefs.h <<\_ACEOF
8876 #define HAVE_CFLOCALECOPYCURRENT 1
8877 _ACEOF
8878
8879   fi
8880   INTL_MACOSX_LIBS=
8881   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
8882     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8883   fi
8884
8885
8886
8887       if test "X$prefix" = "XNONE"; then
8888     acl_final_prefix="$ac_default_prefix"
8889   else
8890     acl_final_prefix="$prefix"
8891   fi
8892   if test "X$exec_prefix" = "XNONE"; then
8893     acl_final_exec_prefix='${prefix}'
8894   else
8895     acl_final_exec_prefix="$exec_prefix"
8896   fi
8897   acl_save_prefix="$prefix"
8898   prefix="$acl_final_prefix"
8899   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8900   prefix="$acl_save_prefix"
8901
8902
8903 # Check whether --with-gnu-ld was given.
8904 if test "${with_gnu_ld+set}" = set; then
8905   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8906 else
8907   with_gnu_ld=no
8908 fi
8909
8910 # Prepare PATH_SEPARATOR.
8911 # The user is always right.
8912 if test "${PATH_SEPARATOR+set}" != set; then
8913   echo "#! /bin/sh" >conf$$.sh
8914   echo  "exit 0"   >>conf$$.sh
8915   chmod +x conf$$.sh
8916   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8917     PATH_SEPARATOR=';'
8918   else
8919     PATH_SEPARATOR=:
8920   fi
8921   rm -f conf$$.sh
8922 fi
8923 ac_prog=ld
8924 if test "$GCC" = yes; then
8925   # Check if gcc -print-prog-name=ld gives a path.
8926   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8927 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
8928   case $host in
8929   *-*-mingw*)
8930     # gcc leaves a trailing carriage return which upsets mingw
8931     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8932   *)
8933     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8934   esac
8935   case $ac_prog in
8936     # Accept absolute paths.
8937     [\\/]* | [A-Za-z]:[\\/]*)
8938       re_direlt='/[^/][^/]*/\.\./'
8939       # Canonicalize the path of ld
8940       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8941       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8942         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8943       done
8944       test -z "$LD" && LD="$ac_prog"
8945       ;;
8946   "")
8947     # If it fails, then pretend we aren't using GCC.
8948     ac_prog=ld
8949     ;;
8950   *)
8951     # If it is relative, then search for the first ld in PATH.
8952     with_gnu_ld=unknown
8953     ;;
8954   esac
8955 elif test "$with_gnu_ld" = yes; then
8956   { echo "$as_me:$LINENO: checking for GNU ld" >&5
8957 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8958 else
8959   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8960 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8961 fi
8962 if test "${acl_cv_path_LD+set}" = set; then
8963   echo $ECHO_N "(cached) $ECHO_C" >&6
8964 else
8965   if test -z "$LD"; then
8966   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8967   for ac_dir in $PATH; do
8968     test -z "$ac_dir" && ac_dir=.
8969     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8970       acl_cv_path_LD="$ac_dir/$ac_prog"
8971       # Check to see if the program is GNU ld.  I'd rather use --version,
8972       # but apparently some GNU ld's only accept -v.
8973       # Break only if it was the GNU/non-GNU ld that we prefer.
8974       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8975       *GNU* | *'with BFD'*)
8976         test "$with_gnu_ld" != no && break ;;
8977       *)
8978         test "$with_gnu_ld" != yes && break ;;
8979       esac
8980     fi
8981   done
8982   IFS="$ac_save_ifs"
8983 else
8984   acl_cv_path_LD="$LD" # Let the user override the test with a path.
8985 fi
8986 fi
8987
8988 LD="$acl_cv_path_LD"
8989 if test -n "$LD"; then
8990   { echo "$as_me:$LINENO: result: $LD" >&5
8991 echo "${ECHO_T}$LD" >&6; }
8992 else
8993   { echo "$as_me:$LINENO: result: no" >&5
8994 echo "${ECHO_T}no" >&6; }
8995 fi
8996 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8997 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8998    { (exit 1); exit 1; }; }
8999 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9000 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
9001 if test "${acl_cv_prog_gnu_ld+set}" = set; then
9002   echo $ECHO_N "(cached) $ECHO_C" >&6
9003 else
9004   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9005 case `$LD -v 2>&1 </dev/null` in
9006 *GNU* | *'with BFD'*)
9007   acl_cv_prog_gnu_ld=yes ;;
9008 *)
9009   acl_cv_prog_gnu_ld=no ;;
9010 esac
9011 fi
9012 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9013 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
9014 with_gnu_ld=$acl_cv_prog_gnu_ld
9015
9016
9017
9018
9019                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9020 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
9021 if test "${acl_cv_rpath+set}" = set; then
9022   echo $ECHO_N "(cached) $ECHO_C" >&6
9023 else
9024
9025     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9026     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9027     . ./conftest.sh
9028     rm -f ./conftest.sh
9029     acl_cv_rpath=done
9030
9031 fi
9032 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9033 echo "${ECHO_T}$acl_cv_rpath" >&6; }
9034   wl="$acl_cv_wl"
9035   libext="$acl_cv_libext"
9036   shlibext="$acl_cv_shlibext"
9037   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9038   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9039   hardcode_direct="$acl_cv_hardcode_direct"
9040   hardcode_minus_L="$acl_cv_hardcode_minus_L"
9041     # Check whether --enable-rpath was given.
9042 if test "${enable_rpath+set}" = set; then
9043   enableval=$enable_rpath; :
9044 else
9045   enable_rpath=yes
9046 fi
9047
9048
9049
9050
9051
9052
9053
9054
9055     use_additional=yes
9056
9057   acl_save_prefix="$prefix"
9058   prefix="$acl_final_prefix"
9059   acl_save_exec_prefix="$exec_prefix"
9060   exec_prefix="$acl_final_exec_prefix"
9061
9062     eval additional_includedir=\"$includedir\"
9063     eval additional_libdir=\"$libdir\"
9064
9065   exec_prefix="$acl_save_exec_prefix"
9066   prefix="$acl_save_prefix"
9067
9068
9069 # Check whether --with-libiconv-prefix was given.
9070 if test "${with_libiconv_prefix+set}" = set; then
9071   withval=$with_libiconv_prefix;
9072     if test "X$withval" = "Xno"; then
9073       use_additional=no
9074     else
9075       if test "X$withval" = "X"; then
9076
9077   acl_save_prefix="$prefix"
9078   prefix="$acl_final_prefix"
9079   acl_save_exec_prefix="$exec_prefix"
9080   exec_prefix="$acl_final_exec_prefix"
9081
9082           eval additional_includedir=\"$includedir\"
9083           eval additional_libdir=\"$libdir\"
9084
9085   exec_prefix="$acl_save_exec_prefix"
9086   prefix="$acl_save_prefix"
9087
9088       else
9089         additional_includedir="$withval/include"
9090         additional_libdir="$withval/lib"
9091       fi
9092     fi
9093
9094 fi
9095
9096       LIBICONV=
9097   LTLIBICONV=
9098   INCICONV=
9099   rpathdirs=
9100   ltrpathdirs=
9101   names_already_handled=
9102   names_next_round='iconv '
9103   while test -n "$names_next_round"; do
9104     names_this_round="$names_next_round"
9105     names_next_round=
9106     for name in $names_this_round; do
9107       already_handled=
9108       for n in $names_already_handled; do
9109         if test "$n" = "$name"; then
9110           already_handled=yes
9111           break
9112         fi
9113       done
9114       if test -z "$already_handled"; then
9115         names_already_handled="$names_already_handled $name"
9116                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9117         eval value=\"\$HAVE_LIB$uppername\"
9118         if test -n "$value"; then
9119           if test "$value" = yes; then
9120             eval value=\"\$LIB$uppername\"
9121             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9122             eval value=\"\$LTLIB$uppername\"
9123             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9124           else
9125                                     :
9126           fi
9127         else
9128                               found_dir=
9129           found_la=
9130           found_so=
9131           found_a=
9132           if test $use_additional = yes; then
9133             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9134               found_dir="$additional_libdir"
9135               found_so="$additional_libdir/lib$name.$shlibext"
9136               if test -f "$additional_libdir/lib$name.la"; then
9137                 found_la="$additional_libdir/lib$name.la"
9138               fi
9139             else
9140               if test -f "$additional_libdir/lib$name.$libext"; then
9141                 found_dir="$additional_libdir"
9142                 found_a="$additional_libdir/lib$name.$libext"
9143                 if test -f "$additional_libdir/lib$name.la"; then
9144                   found_la="$additional_libdir/lib$name.la"
9145                 fi
9146               fi
9147             fi
9148           fi
9149           if test "X$found_dir" = "X"; then
9150             for x in $LDFLAGS $LTLIBICONV; do
9151
9152   acl_save_prefix="$prefix"
9153   prefix="$acl_final_prefix"
9154   acl_save_exec_prefix="$exec_prefix"
9155   exec_prefix="$acl_final_exec_prefix"
9156   eval x=\"$x\"
9157   exec_prefix="$acl_save_exec_prefix"
9158   prefix="$acl_save_prefix"
9159
9160               case "$x" in
9161                 -L*)
9162                   dir=`echo "X$x" | sed -e 's/^X-L//'`
9163                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9164                     found_dir="$dir"
9165                     found_so="$dir/lib$name.$shlibext"
9166                     if test -f "$dir/lib$name.la"; then
9167                       found_la="$dir/lib$name.la"
9168                     fi
9169                   else
9170                     if test -f "$dir/lib$name.$libext"; then
9171                       found_dir="$dir"
9172                       found_a="$dir/lib$name.$libext"
9173                       if test -f "$dir/lib$name.la"; then
9174                         found_la="$dir/lib$name.la"
9175                       fi
9176                     fi
9177                   fi
9178                   ;;
9179               esac
9180               if test "X$found_dir" != "X"; then
9181                 break
9182               fi
9183             done
9184           fi
9185           if test "X$found_dir" != "X"; then
9186                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9187             if test "X$found_so" != "X"; then
9188                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9189                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9190               else
9191                                                                                 haveit=
9192                 for x in $ltrpathdirs; do
9193                   if test "X$x" = "X$found_dir"; then
9194                     haveit=yes
9195                     break
9196                   fi
9197                 done
9198                 if test -z "$haveit"; then
9199                   ltrpathdirs="$ltrpathdirs $found_dir"
9200                 fi
9201                                 if test "$hardcode_direct" = yes; then
9202                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9203                 else
9204                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9205                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9206                                                             haveit=
9207                     for x in $rpathdirs; do
9208                       if test "X$x" = "X$found_dir"; then
9209                         haveit=yes
9210                         break
9211                       fi
9212                     done
9213                     if test -z "$haveit"; then
9214                       rpathdirs="$rpathdirs $found_dir"
9215                     fi
9216                   else
9217                                                                                 haveit=
9218                     for x in $LDFLAGS $LIBICONV; do
9219
9220   acl_save_prefix="$prefix"
9221   prefix="$acl_final_prefix"
9222   acl_save_exec_prefix="$exec_prefix"
9223   exec_prefix="$acl_final_exec_prefix"
9224   eval x=\"$x\"
9225   exec_prefix="$acl_save_exec_prefix"
9226   prefix="$acl_save_prefix"
9227
9228                       if test "X$x" = "X-L$found_dir"; then
9229                         haveit=yes
9230                         break
9231                       fi
9232                     done
9233                     if test -z "$haveit"; then
9234                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9235                     fi
9236                     if test "$hardcode_minus_L" != no; then
9237                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9238                     else
9239                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9240                     fi
9241                   fi
9242                 fi
9243               fi
9244             else
9245               if test "X$found_a" != "X"; then
9246                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9247               else
9248                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9249               fi
9250             fi
9251                         additional_includedir=
9252             case "$found_dir" in
9253               */lib | */lib/)
9254                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9255                 additional_includedir="$basedir/include"
9256                 ;;
9257             esac
9258             if test "X$additional_includedir" != "X"; then
9259                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
9260                 haveit=
9261                 if test "X$additional_includedir" = "X/usr/local/include"; then
9262                   if test -n "$GCC"; then
9263                     case $host_os in
9264                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9265                     esac
9266                   fi
9267                 fi
9268                 if test -z "$haveit"; then
9269                   for x in $CPPFLAGS $INCICONV; do
9270
9271   acl_save_prefix="$prefix"
9272   prefix="$acl_final_prefix"
9273   acl_save_exec_prefix="$exec_prefix"
9274   exec_prefix="$acl_final_exec_prefix"
9275   eval x=\"$x\"
9276   exec_prefix="$acl_save_exec_prefix"
9277   prefix="$acl_save_prefix"
9278
9279                     if test "X$x" = "X-I$additional_includedir"; then
9280                       haveit=yes
9281                       break
9282                     fi
9283                   done
9284                   if test -z "$haveit"; then
9285                     if test -d "$additional_includedir"; then
9286                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9287                     fi
9288                   fi
9289                 fi
9290               fi
9291             fi
9292                         if test -n "$found_la"; then
9293                                                         save_libdir="$libdir"
9294               case "$found_la" in
9295                 */* | *\\*) . "$found_la" ;;
9296                 *) . "./$found_la" ;;
9297               esac
9298               libdir="$save_libdir"
9299                             for dep in $dependency_libs; do
9300                 case "$dep" in
9301                   -L*)
9302                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9303                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
9304                       haveit=
9305                       if test "X$additional_libdir" = "X/usr/local/lib"; then
9306                         if test -n "$GCC"; then
9307                           case $host_os in
9308                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9309                           esac
9310                         fi
9311                       fi
9312                       if test -z "$haveit"; then
9313                         haveit=
9314                         for x in $LDFLAGS $LIBICONV; do
9315
9316   acl_save_prefix="$prefix"
9317   prefix="$acl_final_prefix"
9318   acl_save_exec_prefix="$exec_prefix"
9319   exec_prefix="$acl_final_exec_prefix"
9320   eval x=\"$x\"
9321   exec_prefix="$acl_save_exec_prefix"
9322   prefix="$acl_save_prefix"
9323
9324                           if test "X$x" = "X-L$additional_libdir"; then
9325                             haveit=yes
9326                             break
9327                           fi
9328                         done
9329                         if test -z "$haveit"; then
9330                           if test -d "$additional_libdir"; then
9331                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9332                           fi
9333                         fi
9334                         haveit=
9335                         for x in $LDFLAGS $LTLIBICONV; do
9336
9337   acl_save_prefix="$prefix"
9338   prefix="$acl_final_prefix"
9339   acl_save_exec_prefix="$exec_prefix"
9340   exec_prefix="$acl_final_exec_prefix"
9341   eval x=\"$x\"
9342   exec_prefix="$acl_save_exec_prefix"
9343   prefix="$acl_save_prefix"
9344
9345                           if test "X$x" = "X-L$additional_libdir"; then
9346                             haveit=yes
9347                             break
9348                           fi
9349                         done
9350                         if test -z "$haveit"; then
9351                           if test -d "$additional_libdir"; then
9352                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9353                           fi
9354                         fi
9355                       fi
9356                     fi
9357                     ;;
9358                   -R*)
9359                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
9360                     if test "$enable_rpath" != no; then
9361                                                                   haveit=
9362                       for x in $rpathdirs; do
9363                         if test "X$x" = "X$dir"; then
9364                           haveit=yes
9365                           break
9366                         fi
9367                       done
9368                       if test -z "$haveit"; then
9369                         rpathdirs="$rpathdirs $dir"
9370                       fi
9371                                                                   haveit=
9372                       for x in $ltrpathdirs; do
9373                         if test "X$x" = "X$dir"; then
9374                           haveit=yes
9375                           break
9376                         fi
9377                       done
9378                       if test -z "$haveit"; then
9379                         ltrpathdirs="$ltrpathdirs $dir"
9380                       fi
9381                     fi
9382                     ;;
9383                   -l*)
9384                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9385                     ;;
9386                   *.la)
9387                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9388                     ;;
9389                   *)
9390                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9391                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9392                     ;;
9393                 esac
9394               done
9395             fi
9396           else
9397                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9398             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9399           fi
9400         fi
9401       fi
9402     done
9403   done
9404   if test "X$rpathdirs" != "X"; then
9405     if test -n "$hardcode_libdir_separator"; then
9406                         alldirs=
9407       for found_dir in $rpathdirs; do
9408         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9409       done
9410             acl_save_libdir="$libdir"
9411       libdir="$alldirs"
9412       eval flag=\"$hardcode_libdir_flag_spec\"
9413       libdir="$acl_save_libdir"
9414       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9415     else
9416             for found_dir in $rpathdirs; do
9417         acl_save_libdir="$libdir"
9418         libdir="$found_dir"
9419         eval flag=\"$hardcode_libdir_flag_spec\"
9420         libdir="$acl_save_libdir"
9421         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9422       done
9423     fi
9424   fi
9425   if test "X$ltrpathdirs" != "X"; then
9426             for found_dir in $ltrpathdirs; do
9427       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9428     done
9429   fi
9430
9431
9432
9433
9434
9435
9436
9437
9438   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9439 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
9440 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
9441   echo $ECHO_N "(cached) $ECHO_C" >&6
9442 else
9443   cat >conftest.$ac_ext <<_ACEOF
9444 /* confdefs.h.  */
9445 _ACEOF
9446 cat confdefs.h >>conftest.$ac_ext
9447 cat >>conftest.$ac_ext <<_ACEOF
9448 /* end confdefs.h.  */
9449 $ac_includes_default
9450 typedef ptrdiff_t ac__type_new_;
9451 int
9452 main ()
9453 {
9454 if ((ac__type_new_ *) 0)
9455   return 0;
9456 if (sizeof (ac__type_new_))
9457   return 0;
9458   ;
9459   return 0;
9460 }
9461 _ACEOF
9462 rm -f conftest.$ac_objext
9463 if { (ac_try="$ac_compile"
9464 case "(($ac_try" in
9465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9466   *) ac_try_echo=$ac_try;;
9467 esac
9468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9469   (eval "$ac_compile") 2>conftest.er1
9470   ac_status=$?
9471   grep -v '^ *+' conftest.er1 >conftest.err
9472   rm -f conftest.er1
9473   cat conftest.err >&5
9474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475   (exit $ac_status); } &&
9476          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9477   { (case "(($ac_try" in
9478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9479   *) ac_try_echo=$ac_try;;
9480 esac
9481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9482   (eval "$ac_try") 2>&5
9483   ac_status=$?
9484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485   (exit $ac_status); }; } &&
9486          { ac_try='test -s conftest.$ac_objext'
9487   { (case "(($ac_try" in
9488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9489   *) ac_try_echo=$ac_try;;
9490 esac
9491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9492   (eval "$ac_try") 2>&5
9493   ac_status=$?
9494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495   (exit $ac_status); }; }; then
9496   ac_cv_type_ptrdiff_t=yes
9497 else
9498   echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9500
9501         ac_cv_type_ptrdiff_t=no
9502 fi
9503
9504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9505 fi
9506 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9507 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
9508 if test $ac_cv_type_ptrdiff_t = yes; then
9509   :
9510 else
9511
9512 cat >>confdefs.h <<\_ACEOF
9513 #define ptrdiff_t long
9514 _ACEOF
9515
9516
9517 fi
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
9530 stdlib.h string.h unistd.h sys/param.h
9531 do
9532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9534   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9536 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9537   echo $ECHO_N "(cached) $ECHO_C" >&6
9538 fi
9539 ac_res=`eval echo '${'$as_ac_Header'}'`
9540                { echo "$as_me:$LINENO: result: $ac_res" >&5
9541 echo "${ECHO_T}$ac_res" >&6; }
9542 else
9543   # Is the header compilable?
9544 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9546 cat >conftest.$ac_ext <<_ACEOF
9547 /* confdefs.h.  */
9548 _ACEOF
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h.  */
9552 $ac_includes_default
9553 #include <$ac_header>
9554 _ACEOF
9555 rm -f conftest.$ac_objext
9556 if { (ac_try="$ac_compile"
9557 case "(($ac_try" in
9558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9559   *) ac_try_echo=$ac_try;;
9560 esac
9561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9562   (eval "$ac_compile") 2>conftest.er1
9563   ac_status=$?
9564   grep -v '^ *+' conftest.er1 >conftest.err
9565   rm -f conftest.er1
9566   cat conftest.err >&5
9567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568   (exit $ac_status); } &&
9569          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9570   { (case "(($ac_try" in
9571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9572   *) ac_try_echo=$ac_try;;
9573 esac
9574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9575   (eval "$ac_try") 2>&5
9576   ac_status=$?
9577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578   (exit $ac_status); }; } &&
9579          { ac_try='test -s conftest.$ac_objext'
9580   { (case "(($ac_try" in
9581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9582   *) ac_try_echo=$ac_try;;
9583 esac
9584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9585   (eval "$ac_try") 2>&5
9586   ac_status=$?
9587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588   (exit $ac_status); }; }; then
9589   ac_header_compiler=yes
9590 else
9591   echo "$as_me: failed program was:" >&5
9592 sed 's/^/| /' conftest.$ac_ext >&5
9593
9594         ac_header_compiler=no
9595 fi
9596
9597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9598 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9599 echo "${ECHO_T}$ac_header_compiler" >&6; }
9600
9601 # Is the header present?
9602 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9603 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9604 cat >conftest.$ac_ext <<_ACEOF
9605 /* confdefs.h.  */
9606 _ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h.  */
9610 #include <$ac_header>
9611 _ACEOF
9612 if { (ac_try="$ac_cpp conftest.$ac_ext"
9613 case "(($ac_try" in
9614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9615   *) ac_try_echo=$ac_try;;
9616 esac
9617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9618   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9619   ac_status=$?
9620   grep -v '^ *+' conftest.er1 >conftest.err
9621   rm -f conftest.er1
9622   cat conftest.err >&5
9623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624   (exit $ac_status); } >/dev/null; then
9625   if test -s conftest.err; then
9626     ac_cpp_err=$ac_c_preproc_warn_flag
9627     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9628   else
9629     ac_cpp_err=
9630   fi
9631 else
9632   ac_cpp_err=yes
9633 fi
9634 if test -z "$ac_cpp_err"; then
9635   ac_header_preproc=yes
9636 else
9637   echo "$as_me: failed program was:" >&5
9638 sed 's/^/| /' conftest.$ac_ext >&5
9639
9640   ac_header_preproc=no
9641 fi
9642
9643 rm -f conftest.err conftest.$ac_ext
9644 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9645 echo "${ECHO_T}$ac_header_preproc" >&6; }
9646
9647 # So?  What about this header?
9648 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9649   yes:no: )
9650     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9651 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9652     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9653 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9654     ac_header_preproc=yes
9655     ;;
9656   no:yes:* )
9657     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9658 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9659     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9660 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9661     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9662 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9663     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9664 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9665     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9666 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9667     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9668 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9669
9670     ;;
9671 esac
9672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9675   echo $ECHO_N "(cached) $ECHO_C" >&6
9676 else
9677   eval "$as_ac_Header=\$ac_header_preproc"
9678 fi
9679 ac_res=`eval echo '${'$as_ac_Header'}'`
9680                { echo "$as_me:$LINENO: result: $ac_res" >&5
9681 echo "${ECHO_T}$ac_res" >&6; }
9682
9683 fi
9684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9685   cat >>confdefs.h <<_ACEOF
9686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9687 _ACEOF
9688
9689 fi
9690
9691 done
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9717 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9718 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9719 __fsetlocking
9720 do
9721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9722 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9723 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9724 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9725   echo $ECHO_N "(cached) $ECHO_C" >&6
9726 else
9727   cat >conftest.$ac_ext <<_ACEOF
9728 /* confdefs.h.  */
9729 _ACEOF
9730 cat confdefs.h >>conftest.$ac_ext
9731 cat >>conftest.$ac_ext <<_ACEOF
9732 /* end confdefs.h.  */
9733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9735 #define $ac_func innocuous_$ac_func
9736
9737 /* System header to define __stub macros and hopefully few prototypes,
9738     which can conflict with char $ac_func (); below.
9739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9740     <limits.h> exists even on freestanding compilers.  */
9741
9742 #ifdef __STDC__
9743 # include <limits.h>
9744 #else
9745 # include <assert.h>
9746 #endif
9747
9748 #undef $ac_func
9749
9750 /* Override any GCC internal prototype to avoid an error.
9751    Use char because int might match the return type of a GCC
9752    builtin and then its argument prototype would still apply.  */
9753 #ifdef __cplusplus
9754 extern "C"
9755 #endif
9756 char $ac_func ();
9757 /* The GNU C library defines this for functions which it implements
9758     to always fail with ENOSYS.  Some functions are actually named
9759     something starting with __ and the normal name is an alias.  */
9760 #if defined __stub_$ac_func || defined __stub___$ac_func
9761 choke me
9762 #endif
9763
9764 int
9765 main ()
9766 {
9767 return $ac_func ();
9768   ;
9769   return 0;
9770 }
9771 _ACEOF
9772 rm -f conftest.$ac_objext conftest$ac_exeext
9773 if { (ac_try="$ac_link"
9774 case "(($ac_try" in
9775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9776   *) ac_try_echo=$ac_try;;
9777 esac
9778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9779   (eval "$ac_link") 2>conftest.er1
9780   ac_status=$?
9781   grep -v '^ *+' conftest.er1 >conftest.err
9782   rm -f conftest.er1
9783   cat conftest.err >&5
9784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785   (exit $ac_status); } &&
9786          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9787   { (case "(($ac_try" in
9788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9789   *) ac_try_echo=$ac_try;;
9790 esac
9791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9792   (eval "$ac_try") 2>&5
9793   ac_status=$?
9794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795   (exit $ac_status); }; } &&
9796          { ac_try='test -s conftest$ac_exeext'
9797   { (case "(($ac_try" in
9798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9799   *) ac_try_echo=$ac_try;;
9800 esac
9801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9802   (eval "$ac_try") 2>&5
9803   ac_status=$?
9804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805   (exit $ac_status); }; }; then
9806   eval "$as_ac_var=yes"
9807 else
9808   echo "$as_me: failed program was:" >&5
9809 sed 's/^/| /' conftest.$ac_ext >&5
9810
9811         eval "$as_ac_var=no"
9812 fi
9813
9814 rm -f core conftest.err conftest.$ac_objext \
9815       conftest$ac_exeext conftest.$ac_ext
9816 fi
9817 ac_res=`eval echo '${'$as_ac_var'}'`
9818                { echo "$as_me:$LINENO: result: $ac_res" >&5
9819 echo "${ECHO_T}$ac_res" >&6; }
9820 if test `eval echo '${'$as_ac_var'}'` = yes; then
9821   cat >>confdefs.h <<_ACEOF
9822 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9823 _ACEOF
9824
9825 fi
9826 done
9827
9828
9829
9830   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9831 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
9832 if test "${ac_cv_have_decl__snprintf+set}" = set; then
9833   echo $ECHO_N "(cached) $ECHO_C" >&6
9834 else
9835   cat >conftest.$ac_ext <<_ACEOF
9836 /* confdefs.h.  */
9837 _ACEOF
9838 cat confdefs.h >>conftest.$ac_ext
9839 cat >>conftest.$ac_ext <<_ACEOF
9840 /* end confdefs.h.  */
9841 #include <stdio.h>
9842 int
9843 main ()
9844 {
9845
9846 #ifndef _snprintf
9847   char *p = (char *) _snprintf;
9848 #endif
9849
9850   ;
9851   return 0;
9852 }
9853 _ACEOF
9854 rm -f conftest.$ac_objext
9855 if { (ac_try="$ac_compile"
9856 case "(($ac_try" in
9857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9858   *) ac_try_echo=$ac_try;;
9859 esac
9860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9861   (eval "$ac_compile") 2>conftest.er1
9862   ac_status=$?
9863   grep -v '^ *+' conftest.er1 >conftest.err
9864   rm -f conftest.er1
9865   cat conftest.err >&5
9866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867   (exit $ac_status); } &&
9868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9869   { (case "(($ac_try" in
9870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9871   *) ac_try_echo=$ac_try;;
9872 esac
9873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9874   (eval "$ac_try") 2>&5
9875   ac_status=$?
9876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877   (exit $ac_status); }; } &&
9878          { ac_try='test -s conftest.$ac_objext'
9879   { (case "(($ac_try" in
9880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9881   *) ac_try_echo=$ac_try;;
9882 esac
9883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9884   (eval "$ac_try") 2>&5
9885   ac_status=$?
9886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887   (exit $ac_status); }; }; then
9888   ac_cv_have_decl__snprintf=yes
9889 else
9890   echo "$as_me: failed program was:" >&5
9891 sed 's/^/| /' conftest.$ac_ext >&5
9892
9893         ac_cv_have_decl__snprintf=no
9894 fi
9895
9896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9897 fi
9898 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9899 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
9900   if test $ac_cv_have_decl__snprintf = yes; then
9901     gt_value=1
9902   else
9903     gt_value=0
9904   fi
9905
9906 cat >>confdefs.h <<_ACEOF
9907 #define HAVE_DECL__SNPRINTF $gt_value
9908 _ACEOF
9909
9910
9911
9912   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9913 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
9914 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9915   echo $ECHO_N "(cached) $ECHO_C" >&6
9916 else
9917   cat >conftest.$ac_ext <<_ACEOF
9918 /* confdefs.h.  */
9919 _ACEOF
9920 cat confdefs.h >>conftest.$ac_ext
9921 cat >>conftest.$ac_ext <<_ACEOF
9922 /* end confdefs.h.  */
9923 #include <stdio.h>
9924 int
9925 main ()
9926 {
9927
9928 #ifndef _snwprintf
9929   char *p = (char *) _snwprintf;
9930 #endif
9931
9932   ;
9933   return 0;
9934 }
9935 _ACEOF
9936 rm -f conftest.$ac_objext
9937 if { (ac_try="$ac_compile"
9938 case "(($ac_try" in
9939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9940   *) ac_try_echo=$ac_try;;
9941 esac
9942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943   (eval "$ac_compile") 2>conftest.er1
9944   ac_status=$?
9945   grep -v '^ *+' conftest.er1 >conftest.err
9946   rm -f conftest.er1
9947   cat conftest.err >&5
9948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949   (exit $ac_status); } &&
9950          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9951   { (case "(($ac_try" in
9952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9953   *) ac_try_echo=$ac_try;;
9954 esac
9955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9956   (eval "$ac_try") 2>&5
9957   ac_status=$?
9958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959   (exit $ac_status); }; } &&
9960          { ac_try='test -s conftest.$ac_objext'
9961   { (case "(($ac_try" in
9962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963   *) ac_try_echo=$ac_try;;
9964 esac
9965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966   (eval "$ac_try") 2>&5
9967   ac_status=$?
9968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969   (exit $ac_status); }; }; then
9970   ac_cv_have_decl__snwprintf=yes
9971 else
9972   echo "$as_me: failed program was:" >&5
9973 sed 's/^/| /' conftest.$ac_ext >&5
9974
9975         ac_cv_have_decl__snwprintf=no
9976 fi
9977
9978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9979 fi
9980 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9981 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
9982   if test $ac_cv_have_decl__snwprintf = yes; then
9983     gt_value=1
9984   else
9985     gt_value=0
9986   fi
9987
9988 cat >>confdefs.h <<_ACEOF
9989 #define HAVE_DECL__SNWPRINTF $gt_value
9990 _ACEOF
9991
9992
9993
9994
9995   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9996 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
9997 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9998   echo $ECHO_N "(cached) $ECHO_C" >&6
9999 else
10000   cat >conftest.$ac_ext <<_ACEOF
10001 /* confdefs.h.  */
10002 _ACEOF
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h.  */
10006 #include <stdio.h>
10007 int
10008 main ()
10009 {
10010
10011 #ifndef feof_unlocked
10012   char *p = (char *) feof_unlocked;
10013 #endif
10014
10015   ;
10016   return 0;
10017 }
10018 _ACEOF
10019 rm -f conftest.$ac_objext
10020 if { (ac_try="$ac_compile"
10021 case "(($ac_try" in
10022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10023   *) ac_try_echo=$ac_try;;
10024 esac
10025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10026   (eval "$ac_compile") 2>conftest.er1
10027   ac_status=$?
10028   grep -v '^ *+' conftest.er1 >conftest.err
10029   rm -f conftest.er1
10030   cat conftest.err >&5
10031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032   (exit $ac_status); } &&
10033          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10034   { (case "(($ac_try" in
10035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10036   *) ac_try_echo=$ac_try;;
10037 esac
10038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10039   (eval "$ac_try") 2>&5
10040   ac_status=$?
10041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042   (exit $ac_status); }; } &&
10043          { ac_try='test -s conftest.$ac_objext'
10044   { (case "(($ac_try" in
10045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046   *) ac_try_echo=$ac_try;;
10047 esac
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049   (eval "$ac_try") 2>&5
10050   ac_status=$?
10051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052   (exit $ac_status); }; }; then
10053   ac_cv_have_decl_feof_unlocked=yes
10054 else
10055   echo "$as_me: failed program was:" >&5
10056 sed 's/^/| /' conftest.$ac_ext >&5
10057
10058         ac_cv_have_decl_feof_unlocked=no
10059 fi
10060
10061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10062 fi
10063 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
10064 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
10065   if test $ac_cv_have_decl_feof_unlocked = yes; then
10066     gt_value=1
10067   else
10068     gt_value=0
10069   fi
10070
10071 cat >>confdefs.h <<_ACEOF
10072 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
10073 _ACEOF
10074
10075
10076
10077   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
10078 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
10079 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
10080   echo $ECHO_N "(cached) $ECHO_C" >&6
10081 else
10082   cat >conftest.$ac_ext <<_ACEOF
10083 /* confdefs.h.  */
10084 _ACEOF
10085 cat confdefs.h >>conftest.$ac_ext
10086 cat >>conftest.$ac_ext <<_ACEOF
10087 /* end confdefs.h.  */
10088 #include <stdio.h>
10089 int
10090 main ()
10091 {
10092
10093 #ifndef fgets_unlocked
10094   char *p = (char *) fgets_unlocked;
10095 #endif
10096
10097   ;
10098   return 0;
10099 }
10100 _ACEOF
10101 rm -f conftest.$ac_objext
10102 if { (ac_try="$ac_compile"
10103 case "(($ac_try" in
10104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10105   *) ac_try_echo=$ac_try;;
10106 esac
10107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10108   (eval "$ac_compile") 2>conftest.er1
10109   ac_status=$?
10110   grep -v '^ *+' conftest.er1 >conftest.err
10111   rm -f conftest.er1
10112   cat conftest.err >&5
10113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114   (exit $ac_status); } &&
10115          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10116   { (case "(($ac_try" in
10117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10118   *) ac_try_echo=$ac_try;;
10119 esac
10120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10121   (eval "$ac_try") 2>&5
10122   ac_status=$?
10123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124   (exit $ac_status); }; } &&
10125          { ac_try='test -s conftest.$ac_objext'
10126   { (case "(($ac_try" in
10127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10128   *) ac_try_echo=$ac_try;;
10129 esac
10130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10131   (eval "$ac_try") 2>&5
10132   ac_status=$?
10133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134   (exit $ac_status); }; }; then
10135   ac_cv_have_decl_fgets_unlocked=yes
10136 else
10137   echo "$as_me: failed program was:" >&5
10138 sed 's/^/| /' conftest.$ac_ext >&5
10139
10140         ac_cv_have_decl_fgets_unlocked=no
10141 fi
10142
10143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10144 fi
10145 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
10146 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
10147   if test $ac_cv_have_decl_fgets_unlocked = yes; then
10148     gt_value=1
10149   else
10150     gt_value=0
10151   fi
10152
10153 cat >>confdefs.h <<_ACEOF
10154 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
10155 _ACEOF
10156
10157
10158
10159   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10160 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
10161 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10162   echo $ECHO_N "(cached) $ECHO_C" >&6
10163 else
10164   cat >conftest.$ac_ext <<_ACEOF
10165 /* confdefs.h.  */
10166 _ACEOF
10167 cat confdefs.h >>conftest.$ac_ext
10168 cat >>conftest.$ac_ext <<_ACEOF
10169 /* end confdefs.h.  */
10170 #include <stdio.h>
10171 int
10172 main ()
10173 {
10174
10175 #ifndef getc_unlocked
10176   char *p = (char *) getc_unlocked;
10177 #endif
10178
10179   ;
10180   return 0;
10181 }
10182 _ACEOF
10183 rm -f conftest.$ac_objext
10184 if { (ac_try="$ac_compile"
10185 case "(($ac_try" in
10186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187   *) ac_try_echo=$ac_try;;
10188 esac
10189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190   (eval "$ac_compile") 2>conftest.er1
10191   ac_status=$?
10192   grep -v '^ *+' conftest.er1 >conftest.err
10193   rm -f conftest.er1
10194   cat conftest.err >&5
10195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196   (exit $ac_status); } &&
10197          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10198   { (case "(($ac_try" in
10199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10200   *) ac_try_echo=$ac_try;;
10201 esac
10202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10203   (eval "$ac_try") 2>&5
10204   ac_status=$?
10205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206   (exit $ac_status); }; } &&
10207          { ac_try='test -s conftest.$ac_objext'
10208   { (case "(($ac_try" in
10209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10210   *) ac_try_echo=$ac_try;;
10211 esac
10212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10213   (eval "$ac_try") 2>&5
10214   ac_status=$?
10215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216   (exit $ac_status); }; }; then
10217   ac_cv_have_decl_getc_unlocked=yes
10218 else
10219   echo "$as_me: failed program was:" >&5
10220 sed 's/^/| /' conftest.$ac_ext >&5
10221
10222         ac_cv_have_decl_getc_unlocked=no
10223 fi
10224
10225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10226 fi
10227 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10228 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
10229   if test $ac_cv_have_decl_getc_unlocked = yes; then
10230     gt_value=1
10231   else
10232     gt_value=0
10233   fi
10234
10235 cat >>confdefs.h <<_ACEOF
10236 #define HAVE_DECL_GETC_UNLOCKED $gt_value
10237 _ACEOF
10238
10239
10240
10241   case $gt_cv_func_printf_posix in
10242     *yes) HAVE_POSIX_PRINTF=1 ;;
10243     *) HAVE_POSIX_PRINTF=0 ;;
10244   esac
10245
10246   if test "$ac_cv_func_asprintf" = yes; then
10247     HAVE_ASPRINTF=1
10248   else
10249     HAVE_ASPRINTF=0
10250   fi
10251
10252   if test "$ac_cv_func_snprintf" = yes; then
10253     HAVE_SNPRINTF=1
10254   else
10255     HAVE_SNPRINTF=0
10256   fi
10257
10258   if test "$ac_cv_func_wprintf" = yes; then
10259     HAVE_WPRINTF=1
10260   else
10261     HAVE_WPRINTF=0
10262   fi
10263
10264
10265
10266
10267
10268
10269
10270           am_save_CPPFLAGS="$CPPFLAGS"
10271
10272   for element in $INCICONV; do
10273     haveit=
10274     for x in $CPPFLAGS; do
10275
10276   acl_save_prefix="$prefix"
10277   prefix="$acl_final_prefix"
10278   acl_save_exec_prefix="$exec_prefix"
10279   exec_prefix="$acl_final_exec_prefix"
10280   eval x=\"$x\"
10281   exec_prefix="$acl_save_exec_prefix"
10282   prefix="$acl_save_prefix"
10283
10284       if test "X$x" = "X$element"; then
10285         haveit=yes
10286         break
10287       fi
10288     done
10289     if test -z "$haveit"; then
10290       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10291     fi
10292   done
10293
10294
10295   { echo "$as_me:$LINENO: checking for iconv" >&5
10296 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
10297 if test "${am_cv_func_iconv+set}" = set; then
10298   echo $ECHO_N "(cached) $ECHO_C" >&6
10299 else
10300
10301     am_cv_func_iconv="no, consider installing GNU libiconv"
10302     am_cv_lib_iconv=no
10303     cat >conftest.$ac_ext <<_ACEOF
10304 /* confdefs.h.  */
10305 _ACEOF
10306 cat confdefs.h >>conftest.$ac_ext
10307 cat >>conftest.$ac_ext <<_ACEOF
10308 /* end confdefs.h.  */
10309 #include <stdlib.h>
10310 #include <iconv.h>
10311 int
10312 main ()
10313 {
10314 iconv_t cd = iconv_open("","");
10315        iconv(cd,NULL,NULL,NULL,NULL);
10316        iconv_close(cd);
10317   ;
10318   return 0;
10319 }
10320 _ACEOF
10321 rm -f conftest.$ac_objext conftest$ac_exeext
10322 if { (ac_try="$ac_link"
10323 case "(($ac_try" in
10324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10325   *) ac_try_echo=$ac_try;;
10326 esac
10327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10328   (eval "$ac_link") 2>conftest.er1
10329   ac_status=$?
10330   grep -v '^ *+' conftest.er1 >conftest.err
10331   rm -f conftest.er1
10332   cat conftest.err >&5
10333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10334   (exit $ac_status); } &&
10335          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10336   { (case "(($ac_try" in
10337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10338   *) ac_try_echo=$ac_try;;
10339 esac
10340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10341   (eval "$ac_try") 2>&5
10342   ac_status=$?
10343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344   (exit $ac_status); }; } &&
10345          { ac_try='test -s conftest$ac_exeext'
10346   { (case "(($ac_try" in
10347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10348   *) ac_try_echo=$ac_try;;
10349 esac
10350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10351   (eval "$ac_try") 2>&5
10352   ac_status=$?
10353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354   (exit $ac_status); }; }; then
10355   am_cv_func_iconv=yes
10356 else
10357   echo "$as_me: failed program was:" >&5
10358 sed 's/^/| /' conftest.$ac_ext >&5
10359
10360
10361 fi
10362
10363 rm -f core conftest.err conftest.$ac_objext \
10364       conftest$ac_exeext conftest.$ac_ext
10365     if test "$am_cv_func_iconv" != yes; then
10366       am_save_LIBS="$LIBS"
10367       LIBS="$LIBS $LIBICONV"
10368       cat >conftest.$ac_ext <<_ACEOF
10369 /* confdefs.h.  */
10370 _ACEOF
10371 cat confdefs.h >>conftest.$ac_ext
10372 cat >>conftest.$ac_ext <<_ACEOF
10373 /* end confdefs.h.  */
10374 #include <stdlib.h>
10375 #include <iconv.h>
10376 int
10377 main ()
10378 {
10379 iconv_t cd = iconv_open("","");
10380          iconv(cd,NULL,NULL,NULL,NULL);
10381          iconv_close(cd);
10382   ;
10383   return 0;
10384 }
10385 _ACEOF
10386 rm -f conftest.$ac_objext conftest$ac_exeext
10387 if { (ac_try="$ac_link"
10388 case "(($ac_try" in
10389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390   *) ac_try_echo=$ac_try;;
10391 esac
10392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393   (eval "$ac_link") 2>conftest.er1
10394   ac_status=$?
10395   grep -v '^ *+' conftest.er1 >conftest.err
10396   rm -f conftest.er1
10397   cat conftest.err >&5
10398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399   (exit $ac_status); } &&
10400          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10401   { (case "(($ac_try" in
10402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10403   *) ac_try_echo=$ac_try;;
10404 esac
10405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10406   (eval "$ac_try") 2>&5
10407   ac_status=$?
10408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409   (exit $ac_status); }; } &&
10410          { ac_try='test -s conftest$ac_exeext'
10411   { (case "(($ac_try" in
10412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413   *) ac_try_echo=$ac_try;;
10414 esac
10415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10416   (eval "$ac_try") 2>&5
10417   ac_status=$?
10418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419   (exit $ac_status); }; }; then
10420   am_cv_lib_iconv=yes
10421         am_cv_func_iconv=yes
10422 else
10423   echo "$as_me: failed program was:" >&5
10424 sed 's/^/| /' conftest.$ac_ext >&5
10425
10426
10427 fi
10428
10429 rm -f core conftest.err conftest.$ac_objext \
10430       conftest$ac_exeext conftest.$ac_ext
10431       LIBS="$am_save_LIBS"
10432     fi
10433
10434 fi
10435 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10436 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
10437   if test "$am_cv_func_iconv" = yes; then
10438
10439 cat >>confdefs.h <<\_ACEOF
10440 #define HAVE_ICONV 1
10441 _ACEOF
10442
10443   fi
10444   if test "$am_cv_lib_iconv" = yes; then
10445     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10446 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
10447     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
10448 echo "${ECHO_T}$LIBICONV" >&6; }
10449   else
10450             CPPFLAGS="$am_save_CPPFLAGS"
10451     LIBICONV=
10452     LTLIBICONV=
10453   fi
10454
10455
10456
10457   if test "$am_cv_func_iconv" = yes; then
10458     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
10459 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
10460     if test "${am_cv_proto_iconv+set}" = set; then
10461   echo $ECHO_N "(cached) $ECHO_C" >&6
10462 else
10463
10464       cat >conftest.$ac_ext <<_ACEOF
10465 /* confdefs.h.  */
10466 _ACEOF
10467 cat confdefs.h >>conftest.$ac_ext
10468 cat >>conftest.$ac_ext <<_ACEOF
10469 /* end confdefs.h.  */
10470
10471 #include <stdlib.h>
10472 #include <iconv.h>
10473 extern
10474 #ifdef __cplusplus
10475 "C"
10476 #endif
10477 #if defined(__STDC__) || defined(__cplusplus)
10478 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10479 #else
10480 size_t iconv();
10481 #endif
10482
10483 int
10484 main ()
10485 {
10486
10487   ;
10488   return 0;
10489 }
10490 _ACEOF
10491 rm -f conftest.$ac_objext
10492 if { (ac_try="$ac_compile"
10493 case "(($ac_try" in
10494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10495   *) ac_try_echo=$ac_try;;
10496 esac
10497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10498   (eval "$ac_compile") 2>conftest.er1
10499   ac_status=$?
10500   grep -v '^ *+' conftest.er1 >conftest.err
10501   rm -f conftest.er1
10502   cat conftest.err >&5
10503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504   (exit $ac_status); } &&
10505          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10506   { (case "(($ac_try" in
10507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10508   *) ac_try_echo=$ac_try;;
10509 esac
10510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10511   (eval "$ac_try") 2>&5
10512   ac_status=$?
10513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514   (exit $ac_status); }; } &&
10515          { ac_try='test -s conftest.$ac_objext'
10516   { (case "(($ac_try" in
10517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10518   *) ac_try_echo=$ac_try;;
10519 esac
10520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10521   (eval "$ac_try") 2>&5
10522   ac_status=$?
10523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524   (exit $ac_status); }; }; then
10525   am_cv_proto_iconv_arg1=""
10526 else
10527   echo "$as_me: failed program was:" >&5
10528 sed 's/^/| /' conftest.$ac_ext >&5
10529
10530         am_cv_proto_iconv_arg1="const"
10531 fi
10532
10533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10534       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
10535 fi
10536
10537     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
10538     { echo "$as_me:$LINENO: result: ${ac_t:-
10539          }$am_cv_proto_iconv" >&5
10540 echo "${ECHO_T}${ac_t:-
10541          }$am_cv_proto_iconv" >&6; }
10542
10543 cat >>confdefs.h <<_ACEOF
10544 #define ICONV_CONST $am_cv_proto_iconv_arg1
10545 _ACEOF
10546
10547   fi
10548
10549
10550   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10551 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
10552 if test "${am_cv_langinfo_codeset+set}" = set; then
10553   echo $ECHO_N "(cached) $ECHO_C" >&6
10554 else
10555   cat >conftest.$ac_ext <<_ACEOF
10556 /* confdefs.h.  */
10557 _ACEOF
10558 cat confdefs.h >>conftest.$ac_ext
10559 cat >>conftest.$ac_ext <<_ACEOF
10560 /* end confdefs.h.  */
10561 #include <langinfo.h>
10562 int
10563 main ()
10564 {
10565 char* cs = nl_langinfo(CODESET);
10566   ;
10567   return 0;
10568 }
10569 _ACEOF
10570 rm -f conftest.$ac_objext conftest$ac_exeext
10571 if { (ac_try="$ac_link"
10572 case "(($ac_try" in
10573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10574   *) ac_try_echo=$ac_try;;
10575 esac
10576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10577   (eval "$ac_link") 2>conftest.er1
10578   ac_status=$?
10579   grep -v '^ *+' conftest.er1 >conftest.err
10580   rm -f conftest.er1
10581   cat conftest.err >&5
10582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583   (exit $ac_status); } &&
10584          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10585   { (case "(($ac_try" in
10586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10587   *) ac_try_echo=$ac_try;;
10588 esac
10589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10590   (eval "$ac_try") 2>&5
10591   ac_status=$?
10592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593   (exit $ac_status); }; } &&
10594          { ac_try='test -s conftest$ac_exeext'
10595   { (case "(($ac_try" in
10596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10597   *) ac_try_echo=$ac_try;;
10598 esac
10599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10600   (eval "$ac_try") 2>&5
10601   ac_status=$?
10602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603   (exit $ac_status); }; }; then
10604   am_cv_langinfo_codeset=yes
10605 else
10606   echo "$as_me: failed program was:" >&5
10607 sed 's/^/| /' conftest.$ac_ext >&5
10608
10609         am_cv_langinfo_codeset=no
10610 fi
10611
10612 rm -f core conftest.err conftest.$ac_objext \
10613       conftest$ac_exeext conftest.$ac_ext
10614
10615 fi
10616 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10617 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
10618   if test $am_cv_langinfo_codeset = yes; then
10619
10620 cat >>confdefs.h <<\_ACEOF
10621 #define HAVE_LANGINFO_CODESET 1
10622 _ACEOF
10623
10624   fi
10625
10626   if test $ac_cv_header_locale_h = yes; then
10627
10628   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10629 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
10630 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
10631   echo $ECHO_N "(cached) $ECHO_C" >&6
10632 else
10633   cat >conftest.$ac_ext <<_ACEOF
10634 /* confdefs.h.  */
10635 _ACEOF
10636 cat confdefs.h >>conftest.$ac_ext
10637 cat >>conftest.$ac_ext <<_ACEOF
10638 /* end confdefs.h.  */
10639 #include <locale.h>
10640 int
10641 main ()
10642 {
10643 return LC_MESSAGES
10644   ;
10645   return 0;
10646 }
10647 _ACEOF
10648 rm -f conftest.$ac_objext conftest$ac_exeext
10649 if { (ac_try="$ac_link"
10650 case "(($ac_try" in
10651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652   *) ac_try_echo=$ac_try;;
10653 esac
10654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10655   (eval "$ac_link") 2>conftest.er1
10656   ac_status=$?
10657   grep -v '^ *+' conftest.er1 >conftest.err
10658   rm -f conftest.er1
10659   cat conftest.err >&5
10660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661   (exit $ac_status); } &&
10662          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10663   { (case "(($ac_try" in
10664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10665   *) ac_try_echo=$ac_try;;
10666 esac
10667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10668   (eval "$ac_try") 2>&5
10669   ac_status=$?
10670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671   (exit $ac_status); }; } &&
10672          { ac_try='test -s conftest$ac_exeext'
10673   { (case "(($ac_try" in
10674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10675   *) ac_try_echo=$ac_try;;
10676 esac
10677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10678   (eval "$ac_try") 2>&5
10679   ac_status=$?
10680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681   (exit $ac_status); }; }; then
10682   gt_cv_val_LC_MESSAGES=yes
10683 else
10684   echo "$as_me: failed program was:" >&5
10685 sed 's/^/| /' conftest.$ac_ext >&5
10686
10687         gt_cv_val_LC_MESSAGES=no
10688 fi
10689
10690 rm -f core conftest.err conftest.$ac_objext \
10691       conftest$ac_exeext conftest.$ac_ext
10692 fi
10693 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
10694 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
10695   if test $gt_cv_val_LC_MESSAGES = yes; then
10696
10697 cat >>confdefs.h <<\_ACEOF
10698 #define HAVE_LC_MESSAGES 1
10699 _ACEOF
10700
10701   fi
10702
10703   fi
10704
10705   if test -n "$INTL_MACOSX_LIBS"; then
10706     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
10707   fi
10708
10709                       for ac_prog in bison
10710 do
10711   # Extract the first word of "$ac_prog", so it can be a program name with args.
10712 set dummy $ac_prog; ac_word=$2
10713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10715 if test "${ac_cv_prog_INTLBISON+set}" = set; then
10716   echo $ECHO_N "(cached) $ECHO_C" >&6
10717 else
10718   if test -n "$INTLBISON"; then
10719   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10720 else
10721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10722 for as_dir in $PATH
10723 do
10724   IFS=$as_save_IFS
10725   test -z "$as_dir" && as_dir=.
10726   for ac_exec_ext in '' $ac_executable_extensions; do
10727   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
10728     ac_cv_prog_INTLBISON="$ac_prog"
10729     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10730     break 2
10731   fi
10732 done
10733 done
10734 IFS=$as_save_IFS
10735
10736 fi
10737 fi
10738 INTLBISON=$ac_cv_prog_INTLBISON
10739 if test -n "$INTLBISON"; then
10740   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10741 echo "${ECHO_T}$INTLBISON" >&6; }
10742 else
10743   { echo "$as_me:$LINENO: result: no" >&5
10744 echo "${ECHO_T}no" >&6; }
10745 fi
10746
10747
10748   test -n "$INTLBISON" && break
10749 done
10750
10751   if test -z "$INTLBISON"; then
10752     ac_verc_fail=yes
10753   else
10754         { echo "$as_me:$LINENO: checking version of bison" >&5
10755 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
10756     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10757     case $ac_prog_version in
10758       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10759       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10760          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10761       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10762     esac
10763     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10764 echo "${ECHO_T}$ac_prog_version" >&6; }
10765   fi
10766   if test $ac_verc_fail = yes; then
10767     INTLBISON=:
10768   fi
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
10786 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
10787 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
10788   echo $ECHO_N "(cached) $ECHO_C" >&6
10789 else
10790   gt_save_CPPFLAGS="$CPPFLAGS"
10791      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
10792      gt_save_LIBS="$LIBS"
10793      LIBS="$LIBS -framework CoreFoundation"
10794      cat >conftest.$ac_ext <<_ACEOF
10795 /* confdefs.h.  */
10796 _ACEOF
10797 cat confdefs.h >>conftest.$ac_ext
10798 cat >>conftest.$ac_ext <<_ACEOF
10799 /* end confdefs.h.  */
10800 #include <CFPreferences.h>
10801 int
10802 main ()
10803 {
10804 CFPreferencesCopyAppValue(NULL, NULL)
10805   ;
10806   return 0;
10807 }
10808 _ACEOF
10809 rm -f conftest.$ac_objext conftest$ac_exeext
10810 if { (ac_try="$ac_link"
10811 case "(($ac_try" in
10812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10813   *) ac_try_echo=$ac_try;;
10814 esac
10815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10816   (eval "$ac_link") 2>conftest.er1
10817   ac_status=$?
10818   grep -v '^ *+' conftest.er1 >conftest.err
10819   rm -f conftest.er1
10820   cat conftest.err >&5
10821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10822   (exit $ac_status); } &&
10823          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10824   { (case "(($ac_try" in
10825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10826   *) ac_try_echo=$ac_try;;
10827 esac
10828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10829   (eval "$ac_try") 2>&5
10830   ac_status=$?
10831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832   (exit $ac_status); }; } &&
10833          { ac_try='test -s conftest$ac_exeext'
10834   { (case "(($ac_try" in
10835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10836   *) ac_try_echo=$ac_try;;
10837 esac
10838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10839   (eval "$ac_try") 2>&5
10840   ac_status=$?
10841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842   (exit $ac_status); }; }; then
10843   gt_cv_func_CFPreferencesCopyAppValue=yes
10844 else
10845   echo "$as_me: failed program was:" >&5
10846 sed 's/^/| /' conftest.$ac_ext >&5
10847
10848         gt_cv_func_CFPreferencesCopyAppValue=no
10849 fi
10850
10851 rm -f core conftest.err conftest.$ac_objext \
10852       conftest$ac_exeext conftest.$ac_ext
10853      CPPFLAGS="$gt_save_CPPFLAGS"
10854      LIBS="$gt_save_LIBS"
10855 fi
10856 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10857 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10858   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10859
10860 cat >>confdefs.h <<\_ACEOF
10861 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
10862 _ACEOF
10863
10864   fi
10865     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
10866 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
10867 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
10868   echo $ECHO_N "(cached) $ECHO_C" >&6
10869 else
10870   gt_save_CPPFLAGS="$CPPFLAGS"
10871      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
10872      gt_save_LIBS="$LIBS"
10873      LIBS="$LIBS -framework CoreFoundation"
10874      cat >conftest.$ac_ext <<_ACEOF
10875 /* confdefs.h.  */
10876 _ACEOF
10877 cat confdefs.h >>conftest.$ac_ext
10878 cat >>conftest.$ac_ext <<_ACEOF
10879 /* end confdefs.h.  */
10880 #include <CFLocale.h>
10881 int
10882 main ()
10883 {
10884 CFLocaleCopyCurrent();
10885   ;
10886   return 0;
10887 }
10888 _ACEOF
10889 rm -f conftest.$ac_objext conftest$ac_exeext
10890 if { (ac_try="$ac_link"
10891 case "(($ac_try" in
10892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893   *) ac_try_echo=$ac_try;;
10894 esac
10895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896   (eval "$ac_link") 2>conftest.er1
10897   ac_status=$?
10898   grep -v '^ *+' conftest.er1 >conftest.err
10899   rm -f conftest.er1
10900   cat conftest.err >&5
10901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902   (exit $ac_status); } &&
10903          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10904   { (case "(($ac_try" in
10905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10906   *) ac_try_echo=$ac_try;;
10907 esac
10908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10909   (eval "$ac_try") 2>&5
10910   ac_status=$?
10911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912   (exit $ac_status); }; } &&
10913          { ac_try='test -s conftest$ac_exeext'
10914   { (case "(($ac_try" in
10915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10916   *) ac_try_echo=$ac_try;;
10917 esac
10918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10919   (eval "$ac_try") 2>&5
10920   ac_status=$?
10921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922   (exit $ac_status); }; }; then
10923   gt_cv_func_CFLocaleCopyCurrent=yes
10924 else
10925   echo "$as_me: failed program was:" >&5
10926 sed 's/^/| /' conftest.$ac_ext >&5
10927
10928         gt_cv_func_CFLocaleCopyCurrent=no
10929 fi
10930
10931 rm -f core conftest.err conftest.$ac_objext \
10932       conftest$ac_exeext conftest.$ac_ext
10933      CPPFLAGS="$gt_save_CPPFLAGS"
10934      LIBS="$gt_save_LIBS"
10935 fi
10936 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10937 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10938   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10939
10940 cat >>confdefs.h <<\_ACEOF
10941 #define HAVE_CFLOCALECOPYCURRENT 1
10942 _ACEOF
10943
10944   fi
10945   INTL_MACOSX_LIBS=
10946   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10947     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10948   fi
10949
10950
10951
10952
10953   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10954 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10955     # Check whether --enable-nls was given.
10956 if test "${enable_nls+set}" = set; then
10957   enableval=$enable_nls; USE_NLS=$enableval
10958 else
10959   USE_NLS=yes
10960 fi
10961
10962   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10963 echo "${ECHO_T}$USE_NLS" >&6; }
10964
10965
10966
10967
10968     BUILD_INCLUDED_LIBINTL=no
10969     USE_INCLUDED_LIBINTL=no
10970
10971   LIBINTL=
10972   LTLIBINTL=
10973   POSUB=
10974
10975     if test "$USE_NLS" = "yes"; then
10976     gt_use_preinstalled_gnugettext=no
10977
10978       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10979 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
10980
10981 # Check whether --with-included-gettext was given.
10982 if test "${with_included_gettext+set}" = set; then
10983   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
10984 else
10985   nls_cv_force_use_gnu_gettext=no
10986 fi
10987
10988       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10989 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
10990
10991       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10992       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
10993
10994
10995
10996
10997
10998
10999         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
11000 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
11001 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
11002   echo $ECHO_N "(cached) $ECHO_C" >&6
11003 else
11004   cat >conftest.$ac_ext <<_ACEOF
11005 /* confdefs.h.  */
11006 _ACEOF
11007 cat confdefs.h >>conftest.$ac_ext
11008 cat >>conftest.$ac_ext <<_ACEOF
11009 /* end confdefs.h.  */
11010 #include <libintl.h>
11011 extern int _nl_msg_cat_cntr;
11012 extern int *_nl_domain_bindings;
11013 int
11014 main ()
11015 {
11016 bindtextdomain ("", "");
11017 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
11018   ;
11019   return 0;
11020 }
11021 _ACEOF
11022 rm -f conftest.$ac_objext conftest$ac_exeext
11023 if { (ac_try="$ac_link"
11024 case "(($ac_try" in
11025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026   *) ac_try_echo=$ac_try;;
11027 esac
11028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029   (eval "$ac_link") 2>conftest.er1
11030   ac_status=$?
11031   grep -v '^ *+' conftest.er1 >conftest.err
11032   rm -f conftest.er1
11033   cat conftest.err >&5
11034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035   (exit $ac_status); } &&
11036          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11037   { (case "(($ac_try" in
11038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039   *) ac_try_echo=$ac_try;;
11040 esac
11041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11042   (eval "$ac_try") 2>&5
11043   ac_status=$?
11044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045   (exit $ac_status); }; } &&
11046          { ac_try='test -s conftest$ac_exeext'
11047   { (case "(($ac_try" in
11048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11049   *) ac_try_echo=$ac_try;;
11050 esac
11051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11052   (eval "$ac_try") 2>&5
11053   ac_status=$?
11054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055   (exit $ac_status); }; }; then
11056   gt_cv_func_gnugettext1_libc=yes
11057 else
11058   echo "$as_me: failed program was:" >&5
11059 sed 's/^/| /' conftest.$ac_ext >&5
11060
11061         gt_cv_func_gnugettext1_libc=no
11062 fi
11063
11064 rm -f core conftest.err conftest.$ac_objext \
11065       conftest$ac_exeext conftest.$ac_ext
11066 fi
11067 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
11068 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
11069
11070         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
11071
11072
11073
11074     use_additional=yes
11075
11076   acl_save_prefix="$prefix"
11077   prefix="$acl_final_prefix"
11078   acl_save_exec_prefix="$exec_prefix"
11079   exec_prefix="$acl_final_exec_prefix"
11080
11081     eval additional_includedir=\"$includedir\"
11082     eval additional_libdir=\"$libdir\"
11083
11084   exec_prefix="$acl_save_exec_prefix"
11085   prefix="$acl_save_prefix"
11086
11087
11088 # Check whether --with-libintl-prefix was given.
11089 if test "${with_libintl_prefix+set}" = set; then
11090   withval=$with_libintl_prefix;
11091     if test "X$withval" = "Xno"; then
11092       use_additional=no
11093     else
11094       if test "X$withval" = "X"; then
11095
11096   acl_save_prefix="$prefix"
11097   prefix="$acl_final_prefix"
11098   acl_save_exec_prefix="$exec_prefix"
11099   exec_prefix="$acl_final_exec_prefix"
11100
11101           eval additional_includedir=\"$includedir\"
11102           eval additional_libdir=\"$libdir\"
11103
11104   exec_prefix="$acl_save_exec_prefix"
11105   prefix="$acl_save_prefix"
11106
11107       else
11108         additional_includedir="$withval/include"
11109         additional_libdir="$withval/lib"
11110       fi
11111     fi
11112
11113 fi
11114
11115       LIBINTL=
11116   LTLIBINTL=
11117   INCINTL=
11118   rpathdirs=
11119   ltrpathdirs=
11120   names_already_handled=
11121   names_next_round='intl '
11122   while test -n "$names_next_round"; do
11123     names_this_round="$names_next_round"
11124     names_next_round=
11125     for name in $names_this_round; do
11126       already_handled=
11127       for n in $names_already_handled; do
11128         if test "$n" = "$name"; then
11129           already_handled=yes
11130           break
11131         fi
11132       done
11133       if test -z "$already_handled"; then
11134         names_already_handled="$names_already_handled $name"
11135                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11136         eval value=\"\$HAVE_LIB$uppername\"
11137         if test -n "$value"; then
11138           if test "$value" = yes; then
11139             eval value=\"\$LIB$uppername\"
11140             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11141             eval value=\"\$LTLIB$uppername\"
11142             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11143           else
11144                                     :
11145           fi
11146         else
11147                               found_dir=
11148           found_la=
11149           found_so=
11150           found_a=
11151           if test $use_additional = yes; then
11152             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11153               found_dir="$additional_libdir"
11154               found_so="$additional_libdir/lib$name.$shlibext"
11155               if test -f "$additional_libdir/lib$name.la"; then
11156                 found_la="$additional_libdir/lib$name.la"
11157               fi
11158             else
11159               if test -f "$additional_libdir/lib$name.$libext"; then
11160                 found_dir="$additional_libdir"
11161                 found_a="$additional_libdir/lib$name.$libext"
11162                 if test -f "$additional_libdir/lib$name.la"; then
11163                   found_la="$additional_libdir/lib$name.la"
11164                 fi
11165               fi
11166             fi
11167           fi
11168           if test "X$found_dir" = "X"; then
11169             for x in $LDFLAGS $LTLIBINTL; do
11170
11171   acl_save_prefix="$prefix"
11172   prefix="$acl_final_prefix"
11173   acl_save_exec_prefix="$exec_prefix"
11174   exec_prefix="$acl_final_exec_prefix"
11175   eval x=\"$x\"
11176   exec_prefix="$acl_save_exec_prefix"
11177   prefix="$acl_save_prefix"
11178
11179               case "$x" in
11180                 -L*)
11181                   dir=`echo "X$x" | sed -e 's/^X-L//'`
11182                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11183                     found_dir="$dir"
11184                     found_so="$dir/lib$name.$shlibext"
11185                     if test -f "$dir/lib$name.la"; then
11186                       found_la="$dir/lib$name.la"
11187                     fi
11188                   else
11189                     if test -f "$dir/lib$name.$libext"; then
11190                       found_dir="$dir"
11191                       found_a="$dir/lib$name.$libext"
11192                       if test -f "$dir/lib$name.la"; then
11193                         found_la="$dir/lib$name.la"
11194                       fi
11195                     fi
11196                   fi
11197                   ;;
11198               esac
11199               if test "X$found_dir" != "X"; then
11200                 break
11201               fi
11202             done
11203           fi
11204           if test "X$found_dir" != "X"; then
11205                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11206             if test "X$found_so" != "X"; then
11207                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11208                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11209               else
11210                                                                                 haveit=
11211                 for x in $ltrpathdirs; do
11212                   if test "X$x" = "X$found_dir"; then
11213                     haveit=yes
11214                     break
11215                   fi
11216                 done
11217                 if test -z "$haveit"; then
11218                   ltrpathdirs="$ltrpathdirs $found_dir"
11219                 fi
11220                                 if test "$hardcode_direct" = yes; then
11221                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11222                 else
11223                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11224                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11225                                                             haveit=
11226                     for x in $rpathdirs; do
11227                       if test "X$x" = "X$found_dir"; then
11228                         haveit=yes
11229                         break
11230                       fi
11231                     done
11232                     if test -z "$haveit"; then
11233                       rpathdirs="$rpathdirs $found_dir"
11234                     fi
11235                   else
11236                                                                                 haveit=
11237                     for x in $LDFLAGS $LIBINTL; do
11238
11239   acl_save_prefix="$prefix"
11240   prefix="$acl_final_prefix"
11241   acl_save_exec_prefix="$exec_prefix"
11242   exec_prefix="$acl_final_exec_prefix"
11243   eval x=\"$x\"
11244   exec_prefix="$acl_save_exec_prefix"
11245   prefix="$acl_save_prefix"
11246
11247                       if test "X$x" = "X-L$found_dir"; then
11248                         haveit=yes
11249                         break
11250                       fi
11251                     done
11252                     if test -z "$haveit"; then
11253                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11254                     fi
11255                     if test "$hardcode_minus_L" != no; then
11256                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11257                     else
11258                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11259                     fi
11260                   fi
11261                 fi
11262               fi
11263             else
11264               if test "X$found_a" != "X"; then
11265                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11266               else
11267                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11268               fi
11269             fi
11270                         additional_includedir=
11271             case "$found_dir" in
11272               */lib | */lib/)
11273                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11274                 additional_includedir="$basedir/include"
11275                 ;;
11276             esac
11277             if test "X$additional_includedir" != "X"; then
11278                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
11279                 haveit=
11280                 if test "X$additional_includedir" = "X/usr/local/include"; then
11281                   if test -n "$GCC"; then
11282                     case $host_os in
11283                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11284                     esac
11285                   fi
11286                 fi
11287                 if test -z "$haveit"; then
11288                   for x in $CPPFLAGS $INCINTL; do
11289
11290   acl_save_prefix="$prefix"
11291   prefix="$acl_final_prefix"
11292   acl_save_exec_prefix="$exec_prefix"
11293   exec_prefix="$acl_final_exec_prefix"
11294   eval x=\"$x\"
11295   exec_prefix="$acl_save_exec_prefix"
11296   prefix="$acl_save_prefix"
11297
11298                     if test "X$x" = "X-I$additional_includedir"; then
11299                       haveit=yes
11300                       break
11301                     fi
11302                   done
11303                   if test -z "$haveit"; then
11304                     if test -d "$additional_includedir"; then
11305                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11306                     fi
11307                   fi
11308                 fi
11309               fi
11310             fi
11311                         if test -n "$found_la"; then
11312                                                         save_libdir="$libdir"
11313               case "$found_la" in
11314                 */* | *\\*) . "$found_la" ;;
11315                 *) . "./$found_la" ;;
11316               esac
11317               libdir="$save_libdir"
11318                             for dep in $dependency_libs; do
11319                 case "$dep" in
11320                   -L*)
11321                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11322                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
11323                       haveit=
11324                       if test "X$additional_libdir" = "X/usr/local/lib"; then
11325                         if test -n "$GCC"; then
11326                           case $host_os in
11327                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11328                           esac
11329                         fi
11330                       fi
11331                       if test -z "$haveit"; then
11332                         haveit=
11333                         for x in $LDFLAGS $LIBINTL; do
11334
11335   acl_save_prefix="$prefix"
11336   prefix="$acl_final_prefix"
11337   acl_save_exec_prefix="$exec_prefix"
11338   exec_prefix="$acl_final_exec_prefix"
11339   eval x=\"$x\"
11340   exec_prefix="$acl_save_exec_prefix"
11341   prefix="$acl_save_prefix"
11342
11343                           if test "X$x" = "X-L$additional_libdir"; then
11344                             haveit=yes
11345                             break
11346                           fi
11347                         done
11348                         if test -z "$haveit"; then
11349                           if test -d "$additional_libdir"; then
11350                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11351                           fi
11352                         fi
11353                         haveit=
11354                         for x in $LDFLAGS $LTLIBINTL; do
11355
11356   acl_save_prefix="$prefix"
11357   prefix="$acl_final_prefix"
11358   acl_save_exec_prefix="$exec_prefix"
11359   exec_prefix="$acl_final_exec_prefix"
11360   eval x=\"$x\"
11361   exec_prefix="$acl_save_exec_prefix"
11362   prefix="$acl_save_prefix"
11363
11364                           if test "X$x" = "X-L$additional_libdir"; then
11365                             haveit=yes
11366                             break
11367                           fi
11368                         done
11369                         if test -z "$haveit"; then
11370                           if test -d "$additional_libdir"; then
11371                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11372                           fi
11373                         fi
11374                       fi
11375                     fi
11376                     ;;
11377                   -R*)
11378                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
11379                     if test "$enable_rpath" != no; then
11380                                                                   haveit=
11381                       for x in $rpathdirs; do
11382                         if test "X$x" = "X$dir"; then
11383                           haveit=yes
11384                           break
11385                         fi
11386                       done
11387                       if test -z "$haveit"; then
11388                         rpathdirs="$rpathdirs $dir"
11389                       fi
11390                                                                   haveit=
11391                       for x in $ltrpathdirs; do
11392                         if test "X$x" = "X$dir"; then
11393                           haveit=yes
11394                           break
11395                         fi
11396                       done
11397                       if test -z "$haveit"; then
11398                         ltrpathdirs="$ltrpathdirs $dir"
11399                       fi
11400                     fi
11401                     ;;
11402                   -l*)
11403                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11404                     ;;
11405                   *.la)
11406                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11407                     ;;
11408                   *)
11409                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11410                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11411                     ;;
11412                 esac
11413               done
11414             fi
11415           else
11416                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11417             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11418           fi
11419         fi
11420       fi
11421     done
11422   done
11423   if test "X$rpathdirs" != "X"; then
11424     if test -n "$hardcode_libdir_separator"; then
11425                         alldirs=
11426       for found_dir in $rpathdirs; do
11427         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11428       done
11429             acl_save_libdir="$libdir"
11430       libdir="$alldirs"
11431       eval flag=\"$hardcode_libdir_flag_spec\"
11432       libdir="$acl_save_libdir"
11433       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11434     else
11435             for found_dir in $rpathdirs; do
11436         acl_save_libdir="$libdir"
11437         libdir="$found_dir"
11438         eval flag=\"$hardcode_libdir_flag_spec\"
11439         libdir="$acl_save_libdir"
11440         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11441       done
11442     fi
11443   fi
11444   if test "X$ltrpathdirs" != "X"; then
11445             for found_dir in $ltrpathdirs; do
11446       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11447     done
11448   fi
11449
11450           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
11451 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
11452 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
11453   echo $ECHO_N "(cached) $ECHO_C" >&6
11454 else
11455   gt_save_CPPFLAGS="$CPPFLAGS"
11456             CPPFLAGS="$CPPFLAGS $INCINTL"
11457             gt_save_LIBS="$LIBS"
11458             LIBS="$LIBS $LIBINTL"
11459                         cat >conftest.$ac_ext <<_ACEOF
11460 /* confdefs.h.  */
11461 _ACEOF
11462 cat confdefs.h >>conftest.$ac_ext
11463 cat >>conftest.$ac_ext <<_ACEOF
11464 /* end confdefs.h.  */
11465 #include <libintl.h>
11466 extern int _nl_msg_cat_cntr;
11467 extern
11468 #ifdef __cplusplus
11469 "C"
11470 #endif
11471 const char *_nl_expand_alias (const char *);
11472 int
11473 main ()
11474 {
11475 bindtextdomain ("", "");
11476 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11477   ;
11478   return 0;
11479 }
11480 _ACEOF
11481 rm -f conftest.$ac_objext conftest$ac_exeext
11482 if { (ac_try="$ac_link"
11483 case "(($ac_try" in
11484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11485   *) ac_try_echo=$ac_try;;
11486 esac
11487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11488   (eval "$ac_link") 2>conftest.er1
11489   ac_status=$?
11490   grep -v '^ *+' conftest.er1 >conftest.err
11491   rm -f conftest.er1
11492   cat conftest.err >&5
11493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11494   (exit $ac_status); } &&
11495          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11496   { (case "(($ac_try" in
11497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498   *) ac_try_echo=$ac_try;;
11499 esac
11500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11501   (eval "$ac_try") 2>&5
11502   ac_status=$?
11503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504   (exit $ac_status); }; } &&
11505          { ac_try='test -s conftest$ac_exeext'
11506   { (case "(($ac_try" in
11507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11508   *) ac_try_echo=$ac_try;;
11509 esac
11510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511   (eval "$ac_try") 2>&5
11512   ac_status=$?
11513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514   (exit $ac_status); }; }; then
11515   gt_cv_func_gnugettext1_libintl=yes
11516 else
11517   echo "$as_me: failed program was:" >&5
11518 sed 's/^/| /' conftest.$ac_ext >&5
11519
11520         gt_cv_func_gnugettext1_libintl=no
11521 fi
11522
11523 rm -f core conftest.err conftest.$ac_objext \
11524       conftest$ac_exeext conftest.$ac_ext
11525                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
11526               LIBS="$LIBS $LIBICONV"
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 <libintl.h>
11534 extern int _nl_msg_cat_cntr;
11535 extern
11536 #ifdef __cplusplus
11537 "C"
11538 #endif
11539 const char *_nl_expand_alias (const char *);
11540 int
11541 main ()
11542 {
11543 bindtextdomain ("", "");
11544 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11545   ;
11546   return 0;
11547 }
11548 _ACEOF
11549 rm -f conftest.$ac_objext conftest$ac_exeext
11550 if { (ac_try="$ac_link"
11551 case "(($ac_try" in
11552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553   *) ac_try_echo=$ac_try;;
11554 esac
11555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556   (eval "$ac_link") 2>conftest.er1
11557   ac_status=$?
11558   grep -v '^ *+' conftest.er1 >conftest.err
11559   rm -f conftest.er1
11560   cat conftest.err >&5
11561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562   (exit $ac_status); } &&
11563          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11564   { (case "(($ac_try" in
11565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566   *) ac_try_echo=$ac_try;;
11567 esac
11568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11569   (eval "$ac_try") 2>&5
11570   ac_status=$?
11571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11572   (exit $ac_status); }; } &&
11573          { ac_try='test -s conftest$ac_exeext'
11574   { (case "(($ac_try" in
11575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11576   *) ac_try_echo=$ac_try;;
11577 esac
11578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11579   (eval "$ac_try") 2>&5
11580   ac_status=$?
11581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582   (exit $ac_status); }; }; then
11583   LIBINTL="$LIBINTL $LIBICONV"
11584                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11585                 gt_cv_func_gnugettext1_libintl=yes
11586
11587 else
11588   echo "$as_me: failed program was:" >&5
11589 sed 's/^/| /' conftest.$ac_ext >&5
11590
11591
11592 fi
11593
11594 rm -f core conftest.err conftest.$ac_objext \
11595       conftest$ac_exeext conftest.$ac_ext
11596             fi
11597             CPPFLAGS="$gt_save_CPPFLAGS"
11598             LIBS="$gt_save_LIBS"
11599 fi
11600 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
11601 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
11602         fi
11603
11604                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
11605            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
11606                 && test "$PACKAGE" != gettext-runtime \
11607                 && test "$PACKAGE" != gettext-tools; }; then
11608           gt_use_preinstalled_gnugettext=yes
11609         else
11610                     LIBINTL=
11611           LTLIBINTL=
11612           INCINTL=
11613         fi
11614
11615
11616         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11617                               nls_cv_use_gnu_gettext=yes
11618         fi
11619       fi
11620
11621       if test "$nls_cv_use_gnu_gettext" = "yes"; then
11622                 BUILD_INCLUDED_LIBINTL=yes
11623         USE_INCLUDED_LIBINTL=yes
11624         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
11625         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
11626         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11627       fi
11628
11629       CATOBJEXT=
11630       if test "$gt_use_preinstalled_gnugettext" = "yes" \
11631          || test "$nls_cv_use_gnu_gettext" = "yes"; then
11632                 CATOBJEXT=.gmo
11633       fi
11634
11635
11636     if test -n "$INTL_MACOSX_LIBS"; then
11637       if test "$gt_use_preinstalled_gnugettext" = "yes" \
11638          || test "$nls_cv_use_gnu_gettext" = "yes"; then
11639                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11640         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11641       fi
11642     fi
11643
11644     if test "$gt_use_preinstalled_gnugettext" = "yes" \
11645        || test "$nls_cv_use_gnu_gettext" = "yes"; then
11646
11647 cat >>confdefs.h <<\_ACEOF
11648 #define ENABLE_NLS 1
11649 _ACEOF
11650
11651     else
11652       USE_NLS=no
11653     fi
11654   fi
11655
11656   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
11657 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
11658   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
11659 echo "${ECHO_T}$USE_NLS" >&6; }
11660   if test "$USE_NLS" = "yes"; then
11661     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
11662 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
11663     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11664       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11665         gt_source="external libintl"
11666       else
11667         gt_source="libc"
11668       fi
11669     else
11670       gt_source="included intl directory"
11671     fi
11672     { echo "$as_me:$LINENO: result: $gt_source" >&5
11673 echo "${ECHO_T}$gt_source" >&6; }
11674   fi
11675
11676   if test "$USE_NLS" = "yes"; then
11677
11678     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11679       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11680         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
11681 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
11682         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
11683 echo "${ECHO_T}$LIBINTL" >&6; }
11684
11685   for element in $INCINTL; do
11686     haveit=
11687     for x in $CPPFLAGS; do
11688
11689   acl_save_prefix="$prefix"
11690   prefix="$acl_final_prefix"
11691   acl_save_exec_prefix="$exec_prefix"
11692   exec_prefix="$acl_final_exec_prefix"
11693   eval x=\"$x\"
11694   exec_prefix="$acl_save_exec_prefix"
11695   prefix="$acl_save_prefix"
11696
11697       if test "X$x" = "X$element"; then
11698         haveit=yes
11699         break
11700       fi
11701     done
11702     if test -z "$haveit"; then
11703       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11704     fi
11705   done
11706
11707       fi
11708
11709
11710 cat >>confdefs.h <<\_ACEOF
11711 #define HAVE_GETTEXT 1
11712 _ACEOF
11713
11714
11715 cat >>confdefs.h <<\_ACEOF
11716 #define HAVE_DCGETTEXT 1
11717 _ACEOF
11718
11719     fi
11720
11721         POSUB=po
11722   fi
11723
11724
11725             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11726       BUILD_INCLUDED_LIBINTL=yes
11727     fi
11728
11729
11730
11731
11732
11733         nls_cv_header_intl=
11734     nls_cv_header_libgt=
11735
11736         DATADIRNAME=share
11737
11738
11739         INSTOBJEXT=.mo
11740
11741
11742         GENCAT=gencat
11743
11744
11745         INTLOBJS=
11746     if test "$USE_INCLUDED_LIBINTL" = yes; then
11747       INTLOBJS="\$(GETTOBJS)"
11748     fi
11749
11750
11751         INTL_LIBTOOL_SUFFIX_PREFIX=
11752
11753
11754
11755     INTLLIBS="$LIBINTL"
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767         abook_localedir="$datarootdir/locale"
11768         abook_localedir=`(      test "x$prefix" = xNONE && prefix="$ac_default_prefix"
11769                 eval echo \""$abook_localedir"\"        )`
11770
11771 localedir="\$(datarootdir)/locale"
11772
11773
11774 # Check whether --with-localedir was given.
11775 if test "${with_localedir+set}" = set; then
11776   withval=$with_localedir;
11777 fi
11778
11779 if test "x$with_localedir" != "x"; then
11780         abook_localedir="$with_localedir"
11781         localedir="$with_localedir"
11782 fi
11783
11784
11785 cat >>confdefs.h <<_ACEOF
11786 #define LOCALEDIR "$abook_localedir"
11787 _ACEOF
11788
11789
11790
11791
11792
11793 if test x$USE_INCLUDED_LIBINTL = xyes; then
11794   USE_INCLUDED_INTL_H_TRUE=
11795   USE_INCLUDED_INTL_H_FALSE='#'
11796 else
11797   USE_INCLUDED_INTL_H_TRUE='#'
11798   USE_INCLUDED_INTL_H_FALSE=
11799 fi
11800
11801
11802
11803 ac_ext=c
11804 ac_cpp='$CPP $CPPFLAGS'
11805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11808 if test -n "$ac_tool_prefix"; then
11809   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11810 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11813 if test "${ac_cv_prog_CC+set}" = set; then
11814   echo $ECHO_N "(cached) $ECHO_C" >&6
11815 else
11816   if test -n "$CC"; then
11817   ac_cv_prog_CC="$CC" # Let the user override the test.
11818 else
11819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11820 for as_dir in $PATH
11821 do
11822   IFS=$as_save_IFS
11823   test -z "$as_dir" && as_dir=.
11824   for ac_exec_ext in '' $ac_executable_extensions; do
11825   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11826     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11827     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11828     break 2
11829   fi
11830 done
11831 done
11832 IFS=$as_save_IFS
11833
11834 fi
11835 fi
11836 CC=$ac_cv_prog_CC
11837 if test -n "$CC"; then
11838   { echo "$as_me:$LINENO: result: $CC" >&5
11839 echo "${ECHO_T}$CC" >&6; }
11840 else
11841   { echo "$as_me:$LINENO: result: no" >&5
11842 echo "${ECHO_T}no" >&6; }
11843 fi
11844
11845
11846 fi
11847 if test -z "$ac_cv_prog_CC"; then
11848   ac_ct_CC=$CC
11849   # Extract the first word of "gcc", so it can be a program name with args.
11850 set dummy gcc; ac_word=$2
11851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11853 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
11854   echo $ECHO_N "(cached) $ECHO_C" >&6
11855 else
11856   if test -n "$ac_ct_CC"; then
11857   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11858 else
11859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11860 for as_dir in $PATH
11861 do
11862   IFS=$as_save_IFS
11863   test -z "$as_dir" && as_dir=.
11864   for ac_exec_ext in '' $ac_executable_extensions; do
11865   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11866     ac_cv_prog_ac_ct_CC="gcc"
11867     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11868     break 2
11869   fi
11870 done
11871 done
11872 IFS=$as_save_IFS
11873
11874 fi
11875 fi
11876 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11877 if test -n "$ac_ct_CC"; then
11878   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
11879 echo "${ECHO_T}$ac_ct_CC" >&6; }
11880 else
11881   { echo "$as_me:$LINENO: result: no" >&5
11882 echo "${ECHO_T}no" >&6; }
11883 fi
11884
11885   if test "x$ac_ct_CC" = x; then
11886     CC=""
11887   else
11888     case $cross_compiling:$ac_tool_warned in
11889 yes:)
11890 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11891 whose name does not start with the host triplet.  If you think this
11892 configuration is useful to you, please write to autoconf@gnu.org." >&5
11893 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11894 whose name does not start with the host triplet.  If you think this
11895 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11896 ac_tool_warned=yes ;;
11897 esac
11898     CC=$ac_ct_CC
11899   fi
11900 else
11901   CC="$ac_cv_prog_CC"
11902 fi
11903
11904 if test -z "$CC"; then
11905           if test -n "$ac_tool_prefix"; then
11906     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11907 set dummy ${ac_tool_prefix}cc; ac_word=$2
11908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11910 if test "${ac_cv_prog_CC+set}" = set; then
11911   echo $ECHO_N "(cached) $ECHO_C" >&6
11912 else
11913   if test -n "$CC"; then
11914   ac_cv_prog_CC="$CC" # Let the user override the test.
11915 else
11916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11917 for as_dir in $PATH
11918 do
11919   IFS=$as_save_IFS
11920   test -z "$as_dir" && as_dir=.
11921   for ac_exec_ext in '' $ac_executable_extensions; do
11922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11923     ac_cv_prog_CC="${ac_tool_prefix}cc"
11924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11925     break 2
11926   fi
11927 done
11928 done
11929 IFS=$as_save_IFS
11930
11931 fi
11932 fi
11933 CC=$ac_cv_prog_CC
11934 if test -n "$CC"; then
11935   { echo "$as_me:$LINENO: result: $CC" >&5
11936 echo "${ECHO_T}$CC" >&6; }
11937 else
11938   { echo "$as_me:$LINENO: result: no" >&5
11939 echo "${ECHO_T}no" >&6; }
11940 fi
11941
11942
11943   fi
11944 fi
11945 if test -z "$CC"; then
11946   # Extract the first word of "cc", so it can be a program name with args.
11947 set dummy cc; ac_word=$2
11948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11950 if test "${ac_cv_prog_CC+set}" = set; then
11951   echo $ECHO_N "(cached) $ECHO_C" >&6
11952 else
11953   if test -n "$CC"; then
11954   ac_cv_prog_CC="$CC" # Let the user override the test.
11955 else
11956   ac_prog_rejected=no
11957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11958 for as_dir in $PATH
11959 do
11960   IFS=$as_save_IFS
11961   test -z "$as_dir" && as_dir=.
11962   for ac_exec_ext in '' $ac_executable_extensions; do
11963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
11964     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11965        ac_prog_rejected=yes
11966        continue
11967      fi
11968     ac_cv_prog_CC="cc"
11969     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11970     break 2
11971   fi
11972 done
11973 done
11974 IFS=$as_save_IFS
11975
11976 if test $ac_prog_rejected = yes; then
11977   # We found a bogon in the path, so make sure we never use it.
11978   set dummy $ac_cv_prog_CC
11979   shift
11980   if test $# != 0; then
11981     # We chose a different compiler from the bogus one.
11982     # However, it has the same basename, so the bogon will be chosen
11983     # first if we set CC to just the basename; use the full file name.
11984     shift
11985     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11986   fi
11987 fi
11988 fi
11989 fi
11990 CC=$ac_cv_prog_CC
11991 if test -n "$CC"; then
11992   { echo "$as_me:$LINENO: result: $CC" >&5
11993 echo "${ECHO_T}$CC" >&6; }
11994 else
11995   { echo "$as_me:$LINENO: result: no" >&5
11996 echo "${ECHO_T}no" >&6; }
11997 fi
11998
11999
12000 fi
12001 if test -z "$CC"; then
12002   if test -n "$ac_tool_prefix"; then
12003   for ac_prog in cl.exe
12004   do
12005     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12006 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12009 if test "${ac_cv_prog_CC+set}" = set; then
12010   echo $ECHO_N "(cached) $ECHO_C" >&6
12011 else
12012   if test -n "$CC"; then
12013   ac_cv_prog_CC="$CC" # Let the user override the test.
12014 else
12015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12016 for as_dir in $PATH
12017 do
12018   IFS=$as_save_IFS
12019   test -z "$as_dir" && as_dir=.
12020   for ac_exec_ext in '' $ac_executable_extensions; do
12021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12022     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12024     break 2
12025   fi
12026 done
12027 done
12028 IFS=$as_save_IFS
12029
12030 fi
12031 fi
12032 CC=$ac_cv_prog_CC
12033 if test -n "$CC"; then
12034   { echo "$as_me:$LINENO: result: $CC" >&5
12035 echo "${ECHO_T}$CC" >&6; }
12036 else
12037   { echo "$as_me:$LINENO: result: no" >&5
12038 echo "${ECHO_T}no" >&6; }
12039 fi
12040
12041
12042     test -n "$CC" && break
12043   done
12044 fi
12045 if test -z "$CC"; then
12046   ac_ct_CC=$CC
12047   for ac_prog in cl.exe
12048 do
12049   # Extract the first word of "$ac_prog", so it can be a program name with args.
12050 set dummy $ac_prog; ac_word=$2
12051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12053 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12054   echo $ECHO_N "(cached) $ECHO_C" >&6
12055 else
12056   if test -n "$ac_ct_CC"; then
12057   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12058 else
12059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12060 for as_dir in $PATH
12061 do
12062   IFS=$as_save_IFS
12063   test -z "$as_dir" && as_dir=.
12064   for ac_exec_ext in '' $ac_executable_extensions; do
12065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12066     ac_cv_prog_ac_ct_CC="$ac_prog"
12067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12068     break 2
12069   fi
12070 done
12071 done
12072 IFS=$as_save_IFS
12073
12074 fi
12075 fi
12076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12077 if test -n "$ac_ct_CC"; then
12078   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12079 echo "${ECHO_T}$ac_ct_CC" >&6; }
12080 else
12081   { echo "$as_me:$LINENO: result: no" >&5
12082 echo "${ECHO_T}no" >&6; }
12083 fi
12084
12085
12086   test -n "$ac_ct_CC" && break
12087 done
12088
12089   if test "x$ac_ct_CC" = x; then
12090     CC=""
12091   else
12092     case $cross_compiling:$ac_tool_warned in
12093 yes:)
12094 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12095 whose name does not start with the host triplet.  If you think this
12096 configuration is useful to you, please write to autoconf@gnu.org." >&5
12097 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12098 whose name does not start with the host triplet.  If you think this
12099 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12100 ac_tool_warned=yes ;;
12101 esac
12102     CC=$ac_ct_CC
12103   fi
12104 fi
12105
12106 fi
12107
12108
12109 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
12110 See \`config.log' for more details." >&5
12111 echo "$as_me: error: no acceptable C compiler found in \$PATH
12112 See \`config.log' for more details." >&2;}
12113    { (exit 1); exit 1; }; }
12114
12115 # Provide some information about the compiler.
12116 echo "$as_me:$LINENO: checking for C compiler version" >&5
12117 ac_compiler=`set X $ac_compile; echo $2`
12118 { (ac_try="$ac_compiler --version >&5"
12119 case "(($ac_try" in
12120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12121   *) ac_try_echo=$ac_try;;
12122 esac
12123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12124   (eval "$ac_compiler --version >&5") 2>&5
12125   ac_status=$?
12126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127   (exit $ac_status); }
12128 { (ac_try="$ac_compiler -v >&5"
12129 case "(($ac_try" in
12130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131   *) ac_try_echo=$ac_try;;
12132 esac
12133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12134   (eval "$ac_compiler -v >&5") 2>&5
12135   ac_status=$?
12136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137   (exit $ac_status); }
12138 { (ac_try="$ac_compiler -V >&5"
12139 case "(($ac_try" in
12140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141   *) ac_try_echo=$ac_try;;
12142 esac
12143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144   (eval "$ac_compiler -V >&5") 2>&5
12145   ac_status=$?
12146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147   (exit $ac_status); }
12148
12149 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
12150 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
12151 if test "${ac_cv_c_compiler_gnu+set}" = set; then
12152   echo $ECHO_N "(cached) $ECHO_C" >&6
12153 else
12154   cat >conftest.$ac_ext <<_ACEOF
12155 /* confdefs.h.  */
12156 _ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h.  */
12160
12161 int
12162 main ()
12163 {
12164 #ifndef __GNUC__
12165        choke me
12166 #endif
12167
12168   ;
12169   return 0;
12170 }
12171 _ACEOF
12172 rm -f conftest.$ac_objext
12173 if { (ac_try="$ac_compile"
12174 case "(($ac_try" in
12175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12176   *) ac_try_echo=$ac_try;;
12177 esac
12178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12179   (eval "$ac_compile") 2>conftest.er1
12180   ac_status=$?
12181   grep -v '^ *+' conftest.er1 >conftest.err
12182   rm -f conftest.er1
12183   cat conftest.err >&5
12184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12185   (exit $ac_status); } &&
12186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12187   { (case "(($ac_try" in
12188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12189   *) ac_try_echo=$ac_try;;
12190 esac
12191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192   (eval "$ac_try") 2>&5
12193   ac_status=$?
12194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195   (exit $ac_status); }; } &&
12196          { ac_try='test -s conftest.$ac_objext'
12197   { (case "(($ac_try" in
12198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199   *) ac_try_echo=$ac_try;;
12200 esac
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202   (eval "$ac_try") 2>&5
12203   ac_status=$?
12204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205   (exit $ac_status); }; }; then
12206   ac_compiler_gnu=yes
12207 else
12208   echo "$as_me: failed program was:" >&5
12209 sed 's/^/| /' conftest.$ac_ext >&5
12210
12211         ac_compiler_gnu=no
12212 fi
12213
12214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12215 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12216
12217 fi
12218 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
12219 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
12220 GCC=`test $ac_compiler_gnu = yes && echo yes`
12221 ac_test_CFLAGS=${CFLAGS+set}
12222 ac_save_CFLAGS=$CFLAGS
12223 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
12224 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
12225 if test "${ac_cv_prog_cc_g+set}" = set; then
12226   echo $ECHO_N "(cached) $ECHO_C" >&6
12227 else
12228   ac_save_c_werror_flag=$ac_c_werror_flag
12229    ac_c_werror_flag=yes
12230    ac_cv_prog_cc_g=no
12231    CFLAGS="-g"
12232    cat >conftest.$ac_ext <<_ACEOF
12233 /* confdefs.h.  */
12234 _ACEOF
12235 cat confdefs.h >>conftest.$ac_ext
12236 cat >>conftest.$ac_ext <<_ACEOF
12237 /* end confdefs.h.  */
12238
12239 int
12240 main ()
12241 {
12242
12243   ;
12244   return 0;
12245 }
12246 _ACEOF
12247 rm -f conftest.$ac_objext
12248 if { (ac_try="$ac_compile"
12249 case "(($ac_try" in
12250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12251   *) ac_try_echo=$ac_try;;
12252 esac
12253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12254   (eval "$ac_compile") 2>conftest.er1
12255   ac_status=$?
12256   grep -v '^ *+' conftest.er1 >conftest.err
12257   rm -f conftest.er1
12258   cat conftest.err >&5
12259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260   (exit $ac_status); } &&
12261          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12262   { (case "(($ac_try" in
12263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12264   *) ac_try_echo=$ac_try;;
12265 esac
12266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12267   (eval "$ac_try") 2>&5
12268   ac_status=$?
12269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270   (exit $ac_status); }; } &&
12271          { ac_try='test -s conftest.$ac_objext'
12272   { (case "(($ac_try" in
12273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274   *) ac_try_echo=$ac_try;;
12275 esac
12276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277   (eval "$ac_try") 2>&5
12278   ac_status=$?
12279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280   (exit $ac_status); }; }; then
12281   ac_cv_prog_cc_g=yes
12282 else
12283   echo "$as_me: failed program was:" >&5
12284 sed 's/^/| /' conftest.$ac_ext >&5
12285
12286         CFLAGS=""
12287       cat >conftest.$ac_ext <<_ACEOF
12288 /* confdefs.h.  */
12289 _ACEOF
12290 cat confdefs.h >>conftest.$ac_ext
12291 cat >>conftest.$ac_ext <<_ACEOF
12292 /* end confdefs.h.  */
12293
12294 int
12295 main ()
12296 {
12297
12298   ;
12299   return 0;
12300 }
12301 _ACEOF
12302 rm -f conftest.$ac_objext
12303 if { (ac_try="$ac_compile"
12304 case "(($ac_try" in
12305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306   *) ac_try_echo=$ac_try;;
12307 esac
12308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12309   (eval "$ac_compile") 2>conftest.er1
12310   ac_status=$?
12311   grep -v '^ *+' conftest.er1 >conftest.err
12312   rm -f conftest.er1
12313   cat conftest.err >&5
12314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315   (exit $ac_status); } &&
12316          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12317   { (case "(($ac_try" in
12318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12319   *) ac_try_echo=$ac_try;;
12320 esac
12321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12322   (eval "$ac_try") 2>&5
12323   ac_status=$?
12324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325   (exit $ac_status); }; } &&
12326          { ac_try='test -s conftest.$ac_objext'
12327   { (case "(($ac_try" in
12328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12329   *) ac_try_echo=$ac_try;;
12330 esac
12331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12332   (eval "$ac_try") 2>&5
12333   ac_status=$?
12334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335   (exit $ac_status); }; }; then
12336   :
12337 else
12338   echo "$as_me: failed program was:" >&5
12339 sed 's/^/| /' conftest.$ac_ext >&5
12340
12341         ac_c_werror_flag=$ac_save_c_werror_flag
12342          CFLAGS="-g"
12343          cat >conftest.$ac_ext <<_ACEOF
12344 /* confdefs.h.  */
12345 _ACEOF
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h.  */
12349
12350 int
12351 main ()
12352 {
12353
12354   ;
12355   return 0;
12356 }
12357 _ACEOF
12358 rm -f conftest.$ac_objext
12359 if { (ac_try="$ac_compile"
12360 case "(($ac_try" in
12361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12362   *) ac_try_echo=$ac_try;;
12363 esac
12364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12365   (eval "$ac_compile") 2>conftest.er1
12366   ac_status=$?
12367   grep -v '^ *+' conftest.er1 >conftest.err
12368   rm -f conftest.er1
12369   cat conftest.err >&5
12370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371   (exit $ac_status); } &&
12372          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12373   { (case "(($ac_try" in
12374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12375   *) ac_try_echo=$ac_try;;
12376 esac
12377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12378   (eval "$ac_try") 2>&5
12379   ac_status=$?
12380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381   (exit $ac_status); }; } &&
12382          { ac_try='test -s conftest.$ac_objext'
12383   { (case "(($ac_try" in
12384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385   *) ac_try_echo=$ac_try;;
12386 esac
12387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388   (eval "$ac_try") 2>&5
12389   ac_status=$?
12390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391   (exit $ac_status); }; }; then
12392   ac_cv_prog_cc_g=yes
12393 else
12394   echo "$as_me: failed program was:" >&5
12395 sed 's/^/| /' conftest.$ac_ext >&5
12396
12397
12398 fi
12399
12400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12401 fi
12402
12403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12404 fi
12405
12406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12407    ac_c_werror_flag=$ac_save_c_werror_flag
12408 fi
12409 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
12410 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
12411 if test "$ac_test_CFLAGS" = set; then
12412   CFLAGS=$ac_save_CFLAGS
12413 elif test $ac_cv_prog_cc_g = yes; then
12414   if test "$GCC" = yes; then
12415     CFLAGS="-g -O2"
12416   else
12417     CFLAGS="-g"
12418   fi
12419 else
12420   if test "$GCC" = yes; then
12421     CFLAGS="-O2"
12422   else
12423     CFLAGS=
12424   fi
12425 fi
12426 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
12427 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
12428 if test "${ac_cv_prog_cc_c89+set}" = set; then
12429   echo $ECHO_N "(cached) $ECHO_C" >&6
12430 else
12431   ac_cv_prog_cc_c89=no
12432 ac_save_CC=$CC
12433 cat >conftest.$ac_ext <<_ACEOF
12434 /* confdefs.h.  */
12435 _ACEOF
12436 cat confdefs.h >>conftest.$ac_ext
12437 cat >>conftest.$ac_ext <<_ACEOF
12438 /* end confdefs.h.  */
12439 #include <stdarg.h>
12440 #include <stdio.h>
12441 #include <sys/types.h>
12442 #include <sys/stat.h>
12443 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12444 struct buf { int x; };
12445 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12446 static char *e (p, i)
12447      char **p;
12448      int i;
12449 {
12450   return p[i];
12451 }
12452 static char *f (char * (*g) (char **, int), char **p, ...)
12453 {
12454   char *s;
12455   va_list v;
12456   va_start (v,p);
12457   s = g (p, va_arg (v,int));
12458   va_end (v);
12459   return s;
12460 }
12461
12462 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12463    function prototypes and stuff, but not '\xHH' hex character constants.
12464    These don't provoke an error unfortunately, instead are silently treated
12465    as 'x'.  The following induces an error, until -std is added to get
12466    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12467    array size at least.  It's necessary to write '\x00'==0 to get something
12468    that's true only with -std.  */
12469 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12470
12471 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12472    inside strings and character constants.  */
12473 #define FOO(x) 'x'
12474 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12475
12476 int test (int i, double x);
12477 struct s1 {int (*f) (int a);};
12478 struct s2 {int (*f) (double a);};
12479 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12480 int argc;
12481 char **argv;
12482 int
12483 main ()
12484 {
12485 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12486   ;
12487   return 0;
12488 }
12489 _ACEOF
12490 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12491         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12492 do
12493   CC="$ac_save_CC $ac_arg"
12494   rm -f conftest.$ac_objext
12495 if { (ac_try="$ac_compile"
12496 case "(($ac_try" in
12497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12498   *) ac_try_echo=$ac_try;;
12499 esac
12500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12501   (eval "$ac_compile") 2>conftest.er1
12502   ac_status=$?
12503   grep -v '^ *+' conftest.er1 >conftest.err
12504   rm -f conftest.er1
12505   cat conftest.err >&5
12506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507   (exit $ac_status); } &&
12508          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12509   { (case "(($ac_try" in
12510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12511   *) ac_try_echo=$ac_try;;
12512 esac
12513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12514   (eval "$ac_try") 2>&5
12515   ac_status=$?
12516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517   (exit $ac_status); }; } &&
12518          { ac_try='test -s conftest.$ac_objext'
12519   { (case "(($ac_try" in
12520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12521   *) ac_try_echo=$ac_try;;
12522 esac
12523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12524   (eval "$ac_try") 2>&5
12525   ac_status=$?
12526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527   (exit $ac_status); }; }; then
12528   ac_cv_prog_cc_c89=$ac_arg
12529 else
12530   echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12532
12533
12534 fi
12535
12536 rm -f core conftest.err conftest.$ac_objext
12537   test "x$ac_cv_prog_cc_c89" != "xno" && break
12538 done
12539 rm -f conftest.$ac_ext
12540 CC=$ac_save_CC
12541
12542 fi
12543 # AC_CACHE_VAL
12544 case "x$ac_cv_prog_cc_c89" in
12545   x)
12546     { echo "$as_me:$LINENO: result: none needed" >&5
12547 echo "${ECHO_T}none needed" >&6; } ;;
12548   xno)
12549     { echo "$as_me:$LINENO: result: unsupported" >&5
12550 echo "${ECHO_T}unsupported" >&6; } ;;
12551   *)
12552     CC="$CC $ac_cv_prog_cc_c89"
12553     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
12554 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
12555 esac
12556
12557
12558 ac_ext=c
12559 ac_cpp='$CPP $CPPFLAGS'
12560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12563
12564 depcc="$CC"   am_compiler_list=
12565
12566 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
12567 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
12568 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
12569   echo $ECHO_N "(cached) $ECHO_C" >&6
12570 else
12571   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12572   # We make a subdir and do the tests there.  Otherwise we can end up
12573   # making bogus files that we don't know about and never remove.  For
12574   # instance it was reported that on HP-UX the gcc test will end up
12575   # making a dummy file named `D' -- because `-MD' means `put the output
12576   # in D'.
12577   mkdir conftest.dir
12578   # Copy depcomp to subdir because otherwise we won't find it if we're
12579   # using a relative directory.
12580   cp "$am_depcomp" conftest.dir
12581   cd conftest.dir
12582   # We will build objects and dependencies in a subdirectory because
12583   # it helps to detect inapplicable dependency modes.  For instance
12584   # both Tru64's cc and ICC support -MD to output dependencies as a
12585   # side effect of compilation, but ICC will put the dependencies in
12586   # the current directory while Tru64 will put them in the object
12587   # directory.
12588   mkdir sub
12589
12590   am_cv_CC_dependencies_compiler_type=none
12591   if test "$am_compiler_list" = ""; then
12592      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12593   fi
12594   for depmode in $am_compiler_list; do
12595     # Setup a source with many dependencies, because some compilers
12596     # like to wrap large dependency lists on column 80 (with \), and
12597     # we should not choose a depcomp mode which is confused by this.
12598     #
12599     # We need to recreate these files for each test, as the compiler may
12600     # overwrite some of them when testing with obscure command lines.
12601     # This happens at least with the AIX C compiler.
12602     : > sub/conftest.c
12603     for i in 1 2 3 4 5 6; do
12604       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12605       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12606       # Solaris 8's {/usr,}/bin/sh.
12607       touch sub/conftst$i.h
12608     done
12609     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12610
12611     case $depmode in
12612     nosideeffect)
12613       # after this tag, mechanisms are not by side-effect, so they'll
12614       # only be used when explicitly requested
12615       if test "x$enable_dependency_tracking" = xyes; then
12616         continue
12617       else
12618         break
12619       fi
12620       ;;
12621     none) break ;;
12622     esac
12623     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12624     # mode.  It turns out that the SunPro C++ compiler does not properly
12625     # handle `-M -o', and we need to detect this.
12626     if depmode=$depmode \
12627        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
12628        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12629        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
12630          >/dev/null 2>conftest.err &&
12631        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12632        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
12633        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12634       # icc doesn't choke on unknown options, it will just issue warnings
12635       # or remarks (even with -Werror).  So we grep stderr for any message
12636       # that says an option was ignored or not supported.
12637       # When given -MP, icc 7.0 and 7.1 complain thusly:
12638       #   icc: Command line warning: ignoring option '-M'; no argument required
12639       # The diagnosis changed in icc 8.0:
12640       #   icc: Command line remark: option '-MP' not supported
12641       if (grep 'ignoring option' conftest.err ||
12642           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12643         am_cv_CC_dependencies_compiler_type=$depmode
12644         break
12645       fi
12646     fi
12647   done
12648
12649   cd ..
12650   rm -rf conftest.dir
12651 else
12652   am_cv_CC_dependencies_compiler_type=none
12653 fi
12654
12655 fi
12656 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
12657 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
12658 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12659
12660
12661
12662 if
12663   test "x$enable_dependency_tracking" != xno \
12664   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12665   am__fastdepCC_TRUE=
12666   am__fastdepCC_FALSE='#'
12667 else
12668   am__fastdepCC_TRUE='#'
12669   am__fastdepCC_FALSE=
12670 fi
12671
12672
12673 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
12674 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
12675 if test "${ac_cv_search_strerror+set}" = set; then
12676   echo $ECHO_N "(cached) $ECHO_C" >&6
12677 else
12678   ac_func_search_save_LIBS=$LIBS
12679 cat >conftest.$ac_ext <<_ACEOF
12680 /* confdefs.h.  */
12681 _ACEOF
12682 cat confdefs.h >>conftest.$ac_ext
12683 cat >>conftest.$ac_ext <<_ACEOF
12684 /* end confdefs.h.  */
12685
12686 /* Override any GCC internal prototype to avoid an error.
12687    Use char because int might match the return type of a GCC
12688    builtin and then its argument prototype would still apply.  */
12689 #ifdef __cplusplus
12690 extern "C"
12691 #endif
12692 char strerror ();
12693 int
12694 main ()
12695 {
12696 return strerror ();
12697   ;
12698   return 0;
12699 }
12700 _ACEOF
12701 for ac_lib in '' cposix; do
12702   if test -z "$ac_lib"; then
12703     ac_res="none required"
12704   else
12705     ac_res=-l$ac_lib
12706     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12707   fi
12708   rm -f conftest.$ac_objext conftest$ac_exeext
12709 if { (ac_try="$ac_link"
12710 case "(($ac_try" in
12711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712   *) ac_try_echo=$ac_try;;
12713 esac
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715   (eval "$ac_link") 2>conftest.er1
12716   ac_status=$?
12717   grep -v '^ *+' conftest.er1 >conftest.err
12718   rm -f conftest.er1
12719   cat conftest.err >&5
12720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721   (exit $ac_status); } &&
12722          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12723   { (case "(($ac_try" in
12724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725   *) ac_try_echo=$ac_try;;
12726 esac
12727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728   (eval "$ac_try") 2>&5
12729   ac_status=$?
12730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731   (exit $ac_status); }; } &&
12732          { ac_try='test -s conftest$ac_exeext'
12733   { (case "(($ac_try" in
12734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735   *) ac_try_echo=$ac_try;;
12736 esac
12737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12738   (eval "$ac_try") 2>&5
12739   ac_status=$?
12740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741   (exit $ac_status); }; }; then
12742   ac_cv_search_strerror=$ac_res
12743 else
12744   echo "$as_me: failed program was:" >&5
12745 sed 's/^/| /' conftest.$ac_ext >&5
12746
12747
12748 fi
12749
12750 rm -f core conftest.err conftest.$ac_objext \
12751       conftest$ac_exeext
12752   if test "${ac_cv_search_strerror+set}" = set; then
12753   break
12754 fi
12755 done
12756 if test "${ac_cv_search_strerror+set}" = set; then
12757   :
12758 else
12759   ac_cv_search_strerror=no
12760 fi
12761 rm conftest.$ac_ext
12762 LIBS=$ac_func_search_save_LIBS
12763 fi
12764 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
12765 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
12766 ac_res=$ac_cv_search_strerror
12767 if test "$ac_res" != no; then
12768   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12769
12770 fi
12771
12772 { echo "$as_me:$LINENO: checking for function prototypes" >&5
12773 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
12774 if test "$ac_cv_prog_cc_c89" != no; then
12775   { echo "$as_me:$LINENO: result: yes" >&5
12776 echo "${ECHO_T}yes" >&6; }
12777
12778 cat >>confdefs.h <<\_ACEOF
12779 #define PROTOTYPES 1
12780 _ACEOF
12781
12782
12783 cat >>confdefs.h <<\_ACEOF
12784 #define __PROTOTYPES 1
12785 _ACEOF
12786
12787 else
12788   { echo "$as_me:$LINENO: result: no" >&5
12789 echo "${ECHO_T}no" >&6; }
12790 fi
12791
12792
12793 if test "$ac_cv_prog_cc_stdc" != no; then
12794   U= ANSI2KNR=
12795 else
12796   U=_ ANSI2KNR=./ansi2knr
12797 fi
12798 # Ensure some checks needed by ansi2knr itself.
12799
12800
12801 for ac_header in string.h
12802 do
12803 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12805   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12807 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12808   echo $ECHO_N "(cached) $ECHO_C" >&6
12809 fi
12810 ac_res=`eval echo '${'$as_ac_Header'}'`
12811                { echo "$as_me:$LINENO: result: $ac_res" >&5
12812 echo "${ECHO_T}$ac_res" >&6; }
12813 else
12814   # Is the header compilable?
12815 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12816 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12817 cat >conftest.$ac_ext <<_ACEOF
12818 /* confdefs.h.  */
12819 _ACEOF
12820 cat confdefs.h >>conftest.$ac_ext
12821 cat >>conftest.$ac_ext <<_ACEOF
12822 /* end confdefs.h.  */
12823 $ac_includes_default
12824 #include <$ac_header>
12825 _ACEOF
12826 rm -f conftest.$ac_objext
12827 if { (ac_try="$ac_compile"
12828 case "(($ac_try" in
12829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830   *) ac_try_echo=$ac_try;;
12831 esac
12832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12833   (eval "$ac_compile") 2>conftest.er1
12834   ac_status=$?
12835   grep -v '^ *+' conftest.er1 >conftest.err
12836   rm -f conftest.er1
12837   cat conftest.err >&5
12838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839   (exit $ac_status); } &&
12840          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12841   { (case "(($ac_try" in
12842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12843   *) ac_try_echo=$ac_try;;
12844 esac
12845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12846   (eval "$ac_try") 2>&5
12847   ac_status=$?
12848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849   (exit $ac_status); }; } &&
12850          { ac_try='test -s conftest.$ac_objext'
12851   { (case "(($ac_try" in
12852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12853   *) ac_try_echo=$ac_try;;
12854 esac
12855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12856   (eval "$ac_try") 2>&5
12857   ac_status=$?
12858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859   (exit $ac_status); }; }; then
12860   ac_header_compiler=yes
12861 else
12862   echo "$as_me: failed program was:" >&5
12863 sed 's/^/| /' conftest.$ac_ext >&5
12864
12865         ac_header_compiler=no
12866 fi
12867
12868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12870 echo "${ECHO_T}$ac_header_compiler" >&6; }
12871
12872 # Is the header present?
12873 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12875 cat >conftest.$ac_ext <<_ACEOF
12876 /* confdefs.h.  */
12877 _ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h.  */
12881 #include <$ac_header>
12882 _ACEOF
12883 if { (ac_try="$ac_cpp conftest.$ac_ext"
12884 case "(($ac_try" in
12885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886   *) ac_try_echo=$ac_try;;
12887 esac
12888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12890   ac_status=$?
12891   grep -v '^ *+' conftest.er1 >conftest.err
12892   rm -f conftest.er1
12893   cat conftest.err >&5
12894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895   (exit $ac_status); } >/dev/null; then
12896   if test -s conftest.err; then
12897     ac_cpp_err=$ac_c_preproc_warn_flag
12898     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12899   else
12900     ac_cpp_err=
12901   fi
12902 else
12903   ac_cpp_err=yes
12904 fi
12905 if test -z "$ac_cpp_err"; then
12906   ac_header_preproc=yes
12907 else
12908   echo "$as_me: failed program was:" >&5
12909 sed 's/^/| /' conftest.$ac_ext >&5
12910
12911   ac_header_preproc=no
12912 fi
12913
12914 rm -f conftest.err conftest.$ac_ext
12915 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12916 echo "${ECHO_T}$ac_header_preproc" >&6; }
12917
12918 # So?  What about this header?
12919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12920   yes:no: )
12921     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12922 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12923     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12925     ac_header_preproc=yes
12926     ;;
12927   no:yes:* )
12928     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12929 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12930     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12931 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12932     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12933 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12934     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12935 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12936     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12938     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12939 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12940
12941     ;;
12942 esac
12943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12946   echo $ECHO_N "(cached) $ECHO_C" >&6
12947 else
12948   eval "$as_ac_Header=\$ac_header_preproc"
12949 fi
12950 ac_res=`eval echo '${'$as_ac_Header'}'`
12951                { echo "$as_me:$LINENO: result: $ac_res" >&5
12952 echo "${ECHO_T}$ac_res" >&6; }
12953
12954 fi
12955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12956   cat >>confdefs.h <<_ACEOF
12957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12958 _ACEOF
12959
12960 fi
12961
12962 done
12963
12964
12965 if test "x$U" != "x"; then
12966         { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
12967 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
12968    { (exit 1); exit 1; }; }
12969 fi
12970 { echo "$as_me:$LINENO: checking for inline" >&5
12971 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
12972 if test "${ac_cv_c_inline+set}" = set; then
12973   echo $ECHO_N "(cached) $ECHO_C" >&6
12974 else
12975   ac_cv_c_inline=no
12976 for ac_kw in inline __inline__ __inline; do
12977   cat >conftest.$ac_ext <<_ACEOF
12978 /* confdefs.h.  */
12979 _ACEOF
12980 cat confdefs.h >>conftest.$ac_ext
12981 cat >>conftest.$ac_ext <<_ACEOF
12982 /* end confdefs.h.  */
12983 #ifndef __cplusplus
12984 typedef int foo_t;
12985 static $ac_kw foo_t static_foo () {return 0; }
12986 $ac_kw foo_t foo () {return 0; }
12987 #endif
12988
12989 _ACEOF
12990 rm -f conftest.$ac_objext
12991 if { (ac_try="$ac_compile"
12992 case "(($ac_try" in
12993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12994   *) ac_try_echo=$ac_try;;
12995 esac
12996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12997   (eval "$ac_compile") 2>conftest.er1
12998   ac_status=$?
12999   grep -v '^ *+' conftest.er1 >conftest.err
13000   rm -f conftest.er1
13001   cat conftest.err >&5
13002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003   (exit $ac_status); } &&
13004          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13005   { (case "(($ac_try" in
13006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007   *) ac_try_echo=$ac_try;;
13008 esac
13009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13010   (eval "$ac_try") 2>&5
13011   ac_status=$?
13012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013   (exit $ac_status); }; } &&
13014          { ac_try='test -s conftest.$ac_objext'
13015   { (case "(($ac_try" in
13016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017   *) ac_try_echo=$ac_try;;
13018 esac
13019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13020   (eval "$ac_try") 2>&5
13021   ac_status=$?
13022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023   (exit $ac_status); }; }; then
13024   ac_cv_c_inline=$ac_kw
13025 else
13026   echo "$as_me: failed program was:" >&5
13027 sed 's/^/| /' conftest.$ac_ext >&5
13028
13029
13030 fi
13031
13032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13033   test "$ac_cv_c_inline" != no && break
13034 done
13035
13036 fi
13037 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13038 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
13039
13040
13041 case $ac_cv_c_inline in
13042   inline | yes) ;;
13043   *)
13044     case $ac_cv_c_inline in
13045       no) ac_val=;;
13046       *) ac_val=$ac_cv_c_inline;;
13047     esac
13048     cat >>confdefs.h <<_ACEOF
13049 #ifndef __cplusplus
13050 #define inline $ac_val
13051 #endif
13052 _ACEOF
13053     ;;
13054 esac
13055
13056 # Find a good install program.  We prefer a C program (faster),
13057 # so one script is as good as another.  But avoid the broken or
13058 # incompatible versions:
13059 # SysV /etc/install, /usr/sbin/install
13060 # SunOS /usr/etc/install
13061 # IRIX /sbin/install
13062 # AIX /bin/install
13063 # AmigaOS /C/install, which installs bootblocks on floppy discs
13064 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13065 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13066 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13067 # OS/2's system install, which has a completely different semantic
13068 # ./install, which can be erroneously created by make from ./install.sh.
13069 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
13070 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
13071 if test -z "$INSTALL"; then
13072 if test "${ac_cv_path_install+set}" = set; then
13073   echo $ECHO_N "(cached) $ECHO_C" >&6
13074 else
13075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13076 for as_dir in $PATH
13077 do
13078   IFS=$as_save_IFS
13079   test -z "$as_dir" && as_dir=.
13080   # Account for people who put trailing slashes in PATH elements.
13081 case $as_dir/ in
13082   ./ | .// | /cC/* | \
13083   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13084   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
13085   /usr/ucb/* ) ;;
13086   *)
13087     # OSF1 and SCO ODT 3.0 have their own names for install.
13088     # Don't use installbsd from OSF since it installs stuff as root
13089     # by default.
13090     for ac_prog in ginstall scoinst install; do
13091       for ac_exec_ext in '' $ac_executable_extensions; do
13092         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
13093           if test $ac_prog = install &&
13094             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13095             # AIX install.  It has an incompatible calling convention.
13096             :
13097           elif test $ac_prog = install &&
13098             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13099             # program-specific install script used by HP pwplus--don't use.
13100             :
13101           else
13102             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13103             break 3
13104           fi
13105         fi
13106       done
13107     done
13108     ;;
13109 esac
13110 done
13111 IFS=$as_save_IFS
13112
13113
13114 fi
13115   if test "${ac_cv_path_install+set}" = set; then
13116     INSTALL=$ac_cv_path_install
13117   else
13118     # As a last resort, use the slow shell script.  Don't cache a
13119     # value for INSTALL within a source directory, because that will
13120     # break other packages using the cache if that directory is
13121     # removed, or if the value is a relative name.
13122     INSTALL=$ac_install_sh
13123   fi
13124 fi
13125 { echo "$as_me:$LINENO: result: $INSTALL" >&5
13126 echo "${ECHO_T}$INSTALL" >&6; }
13127
13128 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13129 # It thinks the first close brace ends the variable substitution.
13130 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13131
13132 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13133
13134 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13135
13136 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13137 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
13138 if test "${ac_cv_header_stdc+set}" = set; then
13139   echo $ECHO_N "(cached) $ECHO_C" >&6
13140 else
13141   cat >conftest.$ac_ext <<_ACEOF
13142 /* confdefs.h.  */
13143 _ACEOF
13144 cat confdefs.h >>conftest.$ac_ext
13145 cat >>conftest.$ac_ext <<_ACEOF
13146 /* end confdefs.h.  */
13147 #include <stdlib.h>
13148 #include <stdarg.h>
13149 #include <string.h>
13150 #include <float.h>
13151
13152 int
13153 main ()
13154 {
13155
13156   ;
13157   return 0;
13158 }
13159 _ACEOF
13160 rm -f conftest.$ac_objext
13161 if { (ac_try="$ac_compile"
13162 case "(($ac_try" in
13163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13164   *) ac_try_echo=$ac_try;;
13165 esac
13166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13167   (eval "$ac_compile") 2>conftest.er1
13168   ac_status=$?
13169   grep -v '^ *+' conftest.er1 >conftest.err
13170   rm -f conftest.er1
13171   cat conftest.err >&5
13172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13173   (exit $ac_status); } &&
13174          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13175   { (case "(($ac_try" in
13176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13177   *) ac_try_echo=$ac_try;;
13178 esac
13179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13180   (eval "$ac_try") 2>&5
13181   ac_status=$?
13182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183   (exit $ac_status); }; } &&
13184          { ac_try='test -s conftest.$ac_objext'
13185   { (case "(($ac_try" in
13186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13187   *) ac_try_echo=$ac_try;;
13188 esac
13189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13190   (eval "$ac_try") 2>&5
13191   ac_status=$?
13192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193   (exit $ac_status); }; }; then
13194   ac_cv_header_stdc=yes
13195 else
13196   echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.$ac_ext >&5
13198
13199         ac_cv_header_stdc=no
13200 fi
13201
13202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13203
13204 if test $ac_cv_header_stdc = yes; then
13205   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13206   cat >conftest.$ac_ext <<_ACEOF
13207 /* confdefs.h.  */
13208 _ACEOF
13209 cat confdefs.h >>conftest.$ac_ext
13210 cat >>conftest.$ac_ext <<_ACEOF
13211 /* end confdefs.h.  */
13212 #include <string.h>
13213
13214 _ACEOF
13215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13216   $EGREP "memchr" >/dev/null 2>&1; then
13217   :
13218 else
13219   ac_cv_header_stdc=no
13220 fi
13221 rm -f conftest*
13222
13223 fi
13224
13225 if test $ac_cv_header_stdc = yes; then
13226   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13227   cat >conftest.$ac_ext <<_ACEOF
13228 /* confdefs.h.  */
13229 _ACEOF
13230 cat confdefs.h >>conftest.$ac_ext
13231 cat >>conftest.$ac_ext <<_ACEOF
13232 /* end confdefs.h.  */
13233 #include <stdlib.h>
13234
13235 _ACEOF
13236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13237   $EGREP "free" >/dev/null 2>&1; then
13238   :
13239 else
13240   ac_cv_header_stdc=no
13241 fi
13242 rm -f conftest*
13243
13244 fi
13245
13246 if test $ac_cv_header_stdc = yes; then
13247   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13248   if test "$cross_compiling" = yes; then
13249   :
13250 else
13251   cat >conftest.$ac_ext <<_ACEOF
13252 /* confdefs.h.  */
13253 _ACEOF
13254 cat confdefs.h >>conftest.$ac_ext
13255 cat >>conftest.$ac_ext <<_ACEOF
13256 /* end confdefs.h.  */
13257 #include <ctype.h>
13258 #include <stdlib.h>
13259 #if ((' ' & 0x0FF) == 0x020)
13260 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13261 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13262 #else
13263 # define ISLOWER(c) \
13264                    (('a' <= (c) && (c) <= 'i') \
13265                      || ('j' <= (c) && (c) <= 'r') \
13266                      || ('s' <= (c) && (c) <= 'z'))
13267 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13268 #endif
13269
13270 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13271 int
13272 main ()
13273 {
13274   int i;
13275   for (i = 0; i < 256; i++)
13276     if (XOR (islower (i), ISLOWER (i))
13277         || toupper (i) != TOUPPER (i))
13278       return 2;
13279   return 0;
13280 }
13281 _ACEOF
13282 rm -f conftest$ac_exeext
13283 if { (ac_try="$ac_link"
13284 case "(($ac_try" in
13285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13286   *) ac_try_echo=$ac_try;;
13287 esac
13288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13289   (eval "$ac_link") 2>&5
13290   ac_status=$?
13291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13293   { (case "(($ac_try" in
13294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13295   *) ac_try_echo=$ac_try;;
13296 esac
13297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13298   (eval "$ac_try") 2>&5
13299   ac_status=$?
13300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13301   (exit $ac_status); }; }; then
13302   :
13303 else
13304   echo "$as_me: program exited with status $ac_status" >&5
13305 echo "$as_me: failed program was:" >&5
13306 sed 's/^/| /' conftest.$ac_ext >&5
13307
13308 ( exit $ac_status )
13309 ac_cv_header_stdc=no
13310 fi
13311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13312 fi
13313
13314
13315 fi
13316 fi
13317 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13318 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
13319 if test $ac_cv_header_stdc = yes; then
13320
13321 cat >>confdefs.h <<\_ACEOF
13322 #define STDC_HEADERS 1
13323 _ACEOF
13324
13325 fi
13326
13327
13328
13329
13330
13331 for ac_header in unistd.h locale.h sys/ioctl.h iconv.h
13332 do
13333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13335   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13338   echo $ECHO_N "(cached) $ECHO_C" >&6
13339 fi
13340 ac_res=`eval echo '${'$as_ac_Header'}'`
13341                { echo "$as_me:$LINENO: result: $ac_res" >&5
13342 echo "${ECHO_T}$ac_res" >&6; }
13343 else
13344   # Is the header compilable?
13345 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
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 #include <$ac_header>
13355 _ACEOF
13356 rm -f conftest.$ac_objext
13357 if { (ac_try="$ac_compile"
13358 case "(($ac_try" in
13359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360   *) ac_try_echo=$ac_try;;
13361 esac
13362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363   (eval "$ac_compile") 2>conftest.er1
13364   ac_status=$?
13365   grep -v '^ *+' conftest.er1 >conftest.err
13366   rm -f conftest.er1
13367   cat conftest.err >&5
13368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369   (exit $ac_status); } &&
13370          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13371   { (case "(($ac_try" in
13372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373   *) ac_try_echo=$ac_try;;
13374 esac
13375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13376   (eval "$ac_try") 2>&5
13377   ac_status=$?
13378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379   (exit $ac_status); }; } &&
13380          { ac_try='test -s conftest.$ac_objext'
13381   { (case "(($ac_try" in
13382   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383   *) ac_try_echo=$ac_try;;
13384 esac
13385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13386   (eval "$ac_try") 2>&5
13387   ac_status=$?
13388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389   (exit $ac_status); }; }; then
13390   ac_header_compiler=yes
13391 else
13392   echo "$as_me: failed program was:" >&5
13393 sed 's/^/| /' conftest.$ac_ext >&5
13394
13395         ac_header_compiler=no
13396 fi
13397
13398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13400 echo "${ECHO_T}$ac_header_compiler" >&6; }
13401
13402 # Is the header present?
13403 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13405 cat >conftest.$ac_ext <<_ACEOF
13406 /* confdefs.h.  */
13407 _ACEOF
13408 cat confdefs.h >>conftest.$ac_ext
13409 cat >>conftest.$ac_ext <<_ACEOF
13410 /* end confdefs.h.  */
13411 #include <$ac_header>
13412 _ACEOF
13413 if { (ac_try="$ac_cpp conftest.$ac_ext"
13414 case "(($ac_try" in
13415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416   *) ac_try_echo=$ac_try;;
13417 esac
13418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13419   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13420   ac_status=$?
13421   grep -v '^ *+' conftest.er1 >conftest.err
13422   rm -f conftest.er1
13423   cat conftest.err >&5
13424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425   (exit $ac_status); } >/dev/null; then
13426   if test -s conftest.err; then
13427     ac_cpp_err=$ac_c_preproc_warn_flag
13428     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13429   else
13430     ac_cpp_err=
13431   fi
13432 else
13433   ac_cpp_err=yes
13434 fi
13435 if test -z "$ac_cpp_err"; then
13436   ac_header_preproc=yes
13437 else
13438   echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13440
13441   ac_header_preproc=no
13442 fi
13443
13444 rm -f conftest.err conftest.$ac_ext
13445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13446 echo "${ECHO_T}$ac_header_preproc" >&6; }
13447
13448 # So?  What about this header?
13449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13450   yes:no: )
13451     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13453     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13455     ac_header_preproc=yes
13456     ;;
13457   no:yes:* )
13458     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13460     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13461 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13462     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13464     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13465 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13466     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13468     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13470
13471     ;;
13472 esac
13473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13476   echo $ECHO_N "(cached) $ECHO_C" >&6
13477 else
13478   eval "$as_ac_Header=\$ac_header_preproc"
13479 fi
13480 ac_res=`eval echo '${'$as_ac_Header'}'`
13481                { echo "$as_me:$LINENO: result: $ac_res" >&5
13482 echo "${ECHO_T}$ac_res" >&6; }
13483
13484 fi
13485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13486   cat >>confdefs.h <<_ACEOF
13487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13488 _ACEOF
13489
13490 fi
13491
13492 done
13493
13494 if test "${ac_cv_header_stdarg_h+set}" = set; then
13495   { echo "$as_me:$LINENO: checking for stdarg.h" >&5
13496 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
13497 if test "${ac_cv_header_stdarg_h+set}" = set; then
13498   echo $ECHO_N "(cached) $ECHO_C" >&6
13499 fi
13500 { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
13501 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
13502 else
13503   # Is the header compilable?
13504 { echo "$as_me:$LINENO: checking stdarg.h usability" >&5
13505 echo $ECHO_N "checking stdarg.h usability... $ECHO_C" >&6; }
13506 cat >conftest.$ac_ext <<_ACEOF
13507 /* confdefs.h.  */
13508 _ACEOF
13509 cat confdefs.h >>conftest.$ac_ext
13510 cat >>conftest.$ac_ext <<_ACEOF
13511 /* end confdefs.h.  */
13512 $ac_includes_default
13513 #include <stdarg.h>
13514 _ACEOF
13515 rm -f conftest.$ac_objext
13516 if { (ac_try="$ac_compile"
13517 case "(($ac_try" in
13518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519   *) ac_try_echo=$ac_try;;
13520 esac
13521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522   (eval "$ac_compile") 2>conftest.er1
13523   ac_status=$?
13524   grep -v '^ *+' conftest.er1 >conftest.err
13525   rm -f conftest.er1
13526   cat conftest.err >&5
13527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528   (exit $ac_status); } &&
13529          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13530   { (case "(($ac_try" in
13531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13532   *) ac_try_echo=$ac_try;;
13533 esac
13534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13535   (eval "$ac_try") 2>&5
13536   ac_status=$?
13537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538   (exit $ac_status); }; } &&
13539          { ac_try='test -s conftest.$ac_objext'
13540   { (case "(($ac_try" in
13541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13542   *) ac_try_echo=$ac_try;;
13543 esac
13544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13545   (eval "$ac_try") 2>&5
13546   ac_status=$?
13547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548   (exit $ac_status); }; }; then
13549   ac_header_compiler=yes
13550 else
13551   echo "$as_me: failed program was:" >&5
13552 sed 's/^/| /' conftest.$ac_ext >&5
13553
13554         ac_header_compiler=no
13555 fi
13556
13557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13558 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13559 echo "${ECHO_T}$ac_header_compiler" >&6; }
13560
13561 # Is the header present?
13562 { echo "$as_me:$LINENO: checking stdarg.h presence" >&5
13563 echo $ECHO_N "checking stdarg.h presence... $ECHO_C" >&6; }
13564 cat >conftest.$ac_ext <<_ACEOF
13565 /* confdefs.h.  */
13566 _ACEOF
13567 cat confdefs.h >>conftest.$ac_ext
13568 cat >>conftest.$ac_ext <<_ACEOF
13569 /* end confdefs.h.  */
13570 #include <stdarg.h>
13571 _ACEOF
13572 if { (ac_try="$ac_cpp conftest.$ac_ext"
13573 case "(($ac_try" in
13574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13575   *) ac_try_echo=$ac_try;;
13576 esac
13577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13578   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13579   ac_status=$?
13580   grep -v '^ *+' conftest.er1 >conftest.err
13581   rm -f conftest.er1
13582   cat conftest.err >&5
13583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584   (exit $ac_status); } >/dev/null; then
13585   if test -s conftest.err; then
13586     ac_cpp_err=$ac_c_preproc_warn_flag
13587     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13588   else
13589     ac_cpp_err=
13590   fi
13591 else
13592   ac_cpp_err=yes
13593 fi
13594 if test -z "$ac_cpp_err"; then
13595   ac_header_preproc=yes
13596 else
13597   echo "$as_me: failed program was:" >&5
13598 sed 's/^/| /' conftest.$ac_ext >&5
13599
13600   ac_header_preproc=no
13601 fi
13602
13603 rm -f conftest.err conftest.$ac_ext
13604 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13605 echo "${ECHO_T}$ac_header_preproc" >&6; }
13606
13607 # So?  What about this header?
13608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13609   yes:no: )
13610     { echo "$as_me:$LINENO: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&5
13611 echo "$as_me: WARNING: stdarg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13612     { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the compiler's result" >&5
13613 echo "$as_me: WARNING: stdarg.h: proceeding with the compiler's result" >&2;}
13614     ac_header_preproc=yes
13615     ;;
13616   no:yes:* )
13617     { echo "$as_me:$LINENO: WARNING: stdarg.h: present but cannot be compiled" >&5
13618 echo "$as_me: WARNING: stdarg.h: present but cannot be compiled" >&2;}
13619     { echo "$as_me:$LINENO: WARNING: stdarg.h:     check for missing prerequisite headers?" >&5
13620 echo "$as_me: WARNING: stdarg.h:     check for missing prerequisite headers?" >&2;}
13621     { echo "$as_me:$LINENO: WARNING: stdarg.h: see the Autoconf documentation" >&5
13622 echo "$as_me: WARNING: stdarg.h: see the Autoconf documentation" >&2;}
13623     { echo "$as_me:$LINENO: WARNING: stdarg.h:     section \"Present But Cannot Be Compiled\"" >&5
13624 echo "$as_me: WARNING: stdarg.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13625     { echo "$as_me:$LINENO: WARNING: stdarg.h: proceeding with the preprocessor's result" >&5
13626 echo "$as_me: WARNING: stdarg.h: proceeding with the preprocessor's result" >&2;}
13627     { echo "$as_me:$LINENO: WARNING: stdarg.h: in the future, the compiler will take precedence" >&5
13628 echo "$as_me: WARNING: stdarg.h: in the future, the compiler will take precedence" >&2;}
13629
13630     ;;
13631 esac
13632 { echo "$as_me:$LINENO: checking for stdarg.h" >&5
13633 echo $ECHO_N "checking for stdarg.h... $ECHO_C" >&6; }
13634 if test "${ac_cv_header_stdarg_h+set}" = set; then
13635   echo $ECHO_N "(cached) $ECHO_C" >&6
13636 else
13637   ac_cv_header_stdarg_h=$ac_header_preproc
13638 fi
13639 { echo "$as_me:$LINENO: result: $ac_cv_header_stdarg_h" >&5
13640 echo "${ECHO_T}$ac_cv_header_stdarg_h" >&6; }
13641
13642 fi
13643 if test $ac_cv_header_stdarg_h = yes; then
13644
13645 cat >>confdefs.h <<\_ACEOF
13646 #define HAVE_STDARG_H 1
13647 _ACEOF
13648
13649 else
13650   { { echo "$as_me:$LINENO: error: *** stdarg.h is missing on your system ***" >&5
13651 echo "$as_me: error: *** stdarg.h is missing on your system ***" >&2;}
13652    { (exit 1); exit 1; }; }
13653 fi
13654
13655
13656 { echo "$as_me:$LINENO: checking for working strcoll" >&5
13657 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6; }
13658 if test "${ac_cv_func_strcoll_works+set}" = set; then
13659   echo $ECHO_N "(cached) $ECHO_C" >&6
13660 else
13661   if test "$cross_compiling" = yes; then
13662   ac_cv_func_strcoll_works=no
13663 else
13664   cat >conftest.$ac_ext <<_ACEOF
13665 /* confdefs.h.  */
13666 _ACEOF
13667 cat confdefs.h >>conftest.$ac_ext
13668 cat >>conftest.$ac_ext <<_ACEOF
13669 /* end confdefs.h.  */
13670 $ac_includes_default
13671 int
13672 main ()
13673 {
13674 return (strcoll ("abc", "def") >= 0 ||
13675          strcoll ("ABC", "DEF") >= 0 ||
13676          strcoll ("123", "456") >= 0)
13677   ;
13678   return 0;
13679 }
13680 _ACEOF
13681 rm -f conftest$ac_exeext
13682 if { (ac_try="$ac_link"
13683 case "(($ac_try" in
13684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13685   *) ac_try_echo=$ac_try;;
13686 esac
13687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13688   (eval "$ac_link") 2>&5
13689   ac_status=$?
13690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13691   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13692   { (case "(($ac_try" in
13693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13694   *) ac_try_echo=$ac_try;;
13695 esac
13696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13697   (eval "$ac_try") 2>&5
13698   ac_status=$?
13699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700   (exit $ac_status); }; }; then
13701   ac_cv_func_strcoll_works=yes
13702 else
13703   echo "$as_me: program exited with status $ac_status" >&5
13704 echo "$as_me: failed program was:" >&5
13705 sed 's/^/| /' conftest.$ac_ext >&5
13706
13707 ( exit $ac_status )
13708 ac_cv_func_strcoll_works=no
13709 fi
13710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13711 fi
13712
13713
13714 fi
13715 { echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
13716 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6; }
13717 if test $ac_cv_func_strcoll_works = yes; then
13718
13719 cat >>confdefs.h <<\_ACEOF
13720 #define HAVE_STRCOLL 1
13721 _ACEOF
13722
13723 fi
13724
13725
13726 for ac_func in setlocale
13727 do
13728 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13729 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13730 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13731 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13732   echo $ECHO_N "(cached) $ECHO_C" >&6
13733 else
13734   cat >conftest.$ac_ext <<_ACEOF
13735 /* confdefs.h.  */
13736 _ACEOF
13737 cat confdefs.h >>conftest.$ac_ext
13738 cat >>conftest.$ac_ext <<_ACEOF
13739 /* end confdefs.h.  */
13740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13741    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13742 #define $ac_func innocuous_$ac_func
13743
13744 /* System header to define __stub macros and hopefully few prototypes,
13745     which can conflict with char $ac_func (); below.
13746     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13747     <limits.h> exists even on freestanding compilers.  */
13748
13749 #ifdef __STDC__
13750 # include <limits.h>
13751 #else
13752 # include <assert.h>
13753 #endif
13754
13755 #undef $ac_func
13756
13757 /* Override any GCC internal prototype to avoid an error.
13758    Use char because int might match the return type of a GCC
13759    builtin and then its argument prototype would still apply.  */
13760 #ifdef __cplusplus
13761 extern "C"
13762 #endif
13763 char $ac_func ();
13764 /* The GNU C library defines this for functions which it implements
13765     to always fail with ENOSYS.  Some functions are actually named
13766     something starting with __ and the normal name is an alias.  */
13767 #if defined __stub_$ac_func || defined __stub___$ac_func
13768 choke me
13769 #endif
13770
13771 int
13772 main ()
13773 {
13774 return $ac_func ();
13775   ;
13776   return 0;
13777 }
13778 _ACEOF
13779 rm -f conftest.$ac_objext conftest$ac_exeext
13780 if { (ac_try="$ac_link"
13781 case "(($ac_try" in
13782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13783   *) ac_try_echo=$ac_try;;
13784 esac
13785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13786   (eval "$ac_link") 2>conftest.er1
13787   ac_status=$?
13788   grep -v '^ *+' conftest.er1 >conftest.err
13789   rm -f conftest.er1
13790   cat conftest.err >&5
13791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13792   (exit $ac_status); } &&
13793          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13794   { (case "(($ac_try" in
13795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13796   *) ac_try_echo=$ac_try;;
13797 esac
13798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13799   (eval "$ac_try") 2>&5
13800   ac_status=$?
13801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802   (exit $ac_status); }; } &&
13803          { ac_try='test -s conftest$ac_exeext'
13804   { (case "(($ac_try" in
13805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13806   *) ac_try_echo=$ac_try;;
13807 esac
13808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13809   (eval "$ac_try") 2>&5
13810   ac_status=$?
13811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812   (exit $ac_status); }; }; then
13813   eval "$as_ac_var=yes"
13814 else
13815   echo "$as_me: failed program was:" >&5
13816 sed 's/^/| /' conftest.$ac_ext >&5
13817
13818         eval "$as_ac_var=no"
13819 fi
13820
13821 rm -f core conftest.err conftest.$ac_objext \
13822       conftest$ac_exeext conftest.$ac_ext
13823 fi
13824 ac_res=`eval echo '${'$as_ac_var'}'`
13825                { echo "$as_me:$LINENO: result: $ac_res" >&5
13826 echo "${ECHO_T}$ac_res" >&6; }
13827 if test `eval echo '${'$as_ac_var'}'` = yes; then
13828   cat >>confdefs.h <<_ACEOF
13829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13830 _ACEOF
13831
13832 fi
13833 done
13834
13835
13836 ac_widec_funcs=yes
13837 if test "${ac_cv_header_wchar_h+set}" = set; then
13838   { echo "$as_me:$LINENO: checking for wchar.h" >&5
13839 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
13840 if test "${ac_cv_header_wchar_h+set}" = set; then
13841   echo $ECHO_N "(cached) $ECHO_C" >&6
13842 fi
13843 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
13844 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
13845 else
13846   # Is the header compilable?
13847 { echo "$as_me:$LINENO: checking wchar.h usability" >&5
13848 echo $ECHO_N "checking wchar.h usability... $ECHO_C" >&6; }
13849 cat >conftest.$ac_ext <<_ACEOF
13850 /* confdefs.h.  */
13851 _ACEOF
13852 cat confdefs.h >>conftest.$ac_ext
13853 cat >>conftest.$ac_ext <<_ACEOF
13854 /* end confdefs.h.  */
13855 $ac_includes_default
13856 #include <wchar.h>
13857 _ACEOF
13858 rm -f conftest.$ac_objext
13859 if { (ac_try="$ac_compile"
13860 case "(($ac_try" in
13861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13862   *) ac_try_echo=$ac_try;;
13863 esac
13864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13865   (eval "$ac_compile") 2>conftest.er1
13866   ac_status=$?
13867   grep -v '^ *+' conftest.er1 >conftest.err
13868   rm -f conftest.er1
13869   cat conftest.err >&5
13870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871   (exit $ac_status); } &&
13872          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13873   { (case "(($ac_try" in
13874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13875   *) ac_try_echo=$ac_try;;
13876 esac
13877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13878   (eval "$ac_try") 2>&5
13879   ac_status=$?
13880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881   (exit $ac_status); }; } &&
13882          { ac_try='test -s conftest.$ac_objext'
13883   { (case "(($ac_try" in
13884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885   *) ac_try_echo=$ac_try;;
13886 esac
13887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13888   (eval "$ac_try") 2>&5
13889   ac_status=$?
13890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891   (exit $ac_status); }; }; then
13892   ac_header_compiler=yes
13893 else
13894   echo "$as_me: failed program was:" >&5
13895 sed 's/^/| /' conftest.$ac_ext >&5
13896
13897         ac_header_compiler=no
13898 fi
13899
13900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13901 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13902 echo "${ECHO_T}$ac_header_compiler" >&6; }
13903
13904 # Is the header present?
13905 { echo "$as_me:$LINENO: checking wchar.h presence" >&5
13906 echo $ECHO_N "checking wchar.h presence... $ECHO_C" >&6; }
13907 cat >conftest.$ac_ext <<_ACEOF
13908 /* confdefs.h.  */
13909 _ACEOF
13910 cat confdefs.h >>conftest.$ac_ext
13911 cat >>conftest.$ac_ext <<_ACEOF
13912 /* end confdefs.h.  */
13913 #include <wchar.h>
13914 _ACEOF
13915 if { (ac_try="$ac_cpp conftest.$ac_ext"
13916 case "(($ac_try" in
13917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13918   *) ac_try_echo=$ac_try;;
13919 esac
13920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13921   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13922   ac_status=$?
13923   grep -v '^ *+' conftest.er1 >conftest.err
13924   rm -f conftest.er1
13925   cat conftest.err >&5
13926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927   (exit $ac_status); } >/dev/null; then
13928   if test -s conftest.err; then
13929     ac_cpp_err=$ac_c_preproc_warn_flag
13930     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13931   else
13932     ac_cpp_err=
13933   fi
13934 else
13935   ac_cpp_err=yes
13936 fi
13937 if test -z "$ac_cpp_err"; then
13938   ac_header_preproc=yes
13939 else
13940   echo "$as_me: failed program was:" >&5
13941 sed 's/^/| /' conftest.$ac_ext >&5
13942
13943   ac_header_preproc=no
13944 fi
13945
13946 rm -f conftest.err conftest.$ac_ext
13947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13948 echo "${ECHO_T}$ac_header_preproc" >&6; }
13949
13950 # So?  What about this header?
13951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13952   yes:no: )
13953     { echo "$as_me:$LINENO: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&5
13954 echo "$as_me: WARNING: wchar.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13955     { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the compiler's result" >&5
13956 echo "$as_me: WARNING: wchar.h: proceeding with the compiler's result" >&2;}
13957     ac_header_preproc=yes
13958     ;;
13959   no:yes:* )
13960     { echo "$as_me:$LINENO: WARNING: wchar.h: present but cannot be compiled" >&5
13961 echo "$as_me: WARNING: wchar.h: present but cannot be compiled" >&2;}
13962     { echo "$as_me:$LINENO: WARNING: wchar.h:     check for missing prerequisite headers?" >&5
13963 echo "$as_me: WARNING: wchar.h:     check for missing prerequisite headers?" >&2;}
13964     { echo "$as_me:$LINENO: WARNING: wchar.h: see the Autoconf documentation" >&5
13965 echo "$as_me: WARNING: wchar.h: see the Autoconf documentation" >&2;}
13966     { echo "$as_me:$LINENO: WARNING: wchar.h:     section \"Present But Cannot Be Compiled\"" >&5
13967 echo "$as_me: WARNING: wchar.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13968     { echo "$as_me:$LINENO: WARNING: wchar.h: proceeding with the preprocessor's result" >&5
13969 echo "$as_me: WARNING: wchar.h: proceeding with the preprocessor's result" >&2;}
13970     { echo "$as_me:$LINENO: WARNING: wchar.h: in the future, the compiler will take precedence" >&5
13971 echo "$as_me: WARNING: wchar.h: in the future, the compiler will take precedence" >&2;}
13972
13973     ;;
13974 esac
13975 { echo "$as_me:$LINENO: checking for wchar.h" >&5
13976 echo $ECHO_N "checking for wchar.h... $ECHO_C" >&6; }
13977 if test "${ac_cv_header_wchar_h+set}" = set; then
13978   echo $ECHO_N "(cached) $ECHO_C" >&6
13979 else
13980   ac_cv_header_wchar_h=$ac_header_preproc
13981 fi
13982 { echo "$as_me:$LINENO: result: $ac_cv_header_wchar_h" >&5
13983 echo "${ECHO_T}$ac_cv_header_wchar_h" >&6; }
13984
13985 fi
13986 if test $ac_cv_header_wchar_h = yes; then
13987
13988         ac_have_wchar_h=yes
13989
13990 cat >>confdefs.h <<\_ACEOF
13991 #define HAVE_WCHAR_H 1
13992 _ACEOF
13993
13994 else
13995   ac_have_wchar_h=no
13996 fi
13997
13998
13999
14000
14001
14002
14003 for ac_func in mbtowc wcwidth mbrtowc mbsinit
14004 do
14005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14006 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14008 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14009   echo $ECHO_N "(cached) $ECHO_C" >&6
14010 else
14011   cat >conftest.$ac_ext <<_ACEOF
14012 /* confdefs.h.  */
14013 _ACEOF
14014 cat confdefs.h >>conftest.$ac_ext
14015 cat >>conftest.$ac_ext <<_ACEOF
14016 /* end confdefs.h.  */
14017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14018    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14019 #define $ac_func innocuous_$ac_func
14020
14021 /* System header to define __stub macros and hopefully few prototypes,
14022     which can conflict with char $ac_func (); below.
14023     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14024     <limits.h> exists even on freestanding compilers.  */
14025
14026 #ifdef __STDC__
14027 # include <limits.h>
14028 #else
14029 # include <assert.h>
14030 #endif
14031
14032 #undef $ac_func
14033
14034 /* Override any GCC internal prototype to avoid an error.
14035    Use char because int might match the return type of a GCC
14036    builtin and then its argument prototype would still apply.  */
14037 #ifdef __cplusplus
14038 extern "C"
14039 #endif
14040 char $ac_func ();
14041 /* The GNU C library defines this for functions which it implements
14042     to always fail with ENOSYS.  Some functions are actually named
14043     something starting with __ and the normal name is an alias.  */
14044 #if defined __stub_$ac_func || defined __stub___$ac_func
14045 choke me
14046 #endif
14047
14048 int
14049 main ()
14050 {
14051 return $ac_func ();
14052   ;
14053   return 0;
14054 }
14055 _ACEOF
14056 rm -f conftest.$ac_objext conftest$ac_exeext
14057 if { (ac_try="$ac_link"
14058 case "(($ac_try" in
14059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14060   *) ac_try_echo=$ac_try;;
14061 esac
14062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14063   (eval "$ac_link") 2>conftest.er1
14064   ac_status=$?
14065   grep -v '^ *+' conftest.er1 >conftest.err
14066   rm -f conftest.er1
14067   cat conftest.err >&5
14068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14069   (exit $ac_status); } &&
14070          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14071   { (case "(($ac_try" in
14072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073   *) ac_try_echo=$ac_try;;
14074 esac
14075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076   (eval "$ac_try") 2>&5
14077   ac_status=$?
14078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079   (exit $ac_status); }; } &&
14080          { ac_try='test -s conftest$ac_exeext'
14081   { (case "(($ac_try" in
14082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14083   *) ac_try_echo=$ac_try;;
14084 esac
14085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14086   (eval "$ac_try") 2>&5
14087   ac_status=$?
14088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14089   (exit $ac_status); }; }; then
14090   eval "$as_ac_var=yes"
14091 else
14092   echo "$as_me: failed program was:" >&5
14093 sed 's/^/| /' conftest.$ac_ext >&5
14094
14095         eval "$as_ac_var=no"
14096 fi
14097
14098 rm -f core conftest.err conftest.$ac_objext \
14099       conftest$ac_exeext conftest.$ac_ext
14100 fi
14101 ac_res=`eval echo '${'$as_ac_var'}'`
14102                { echo "$as_me:$LINENO: result: $ac_res" >&5
14103 echo "${ECHO_T}$ac_res" >&6; }
14104 if test `eval echo '${'$as_ac_var'}'` = yes; then
14105   cat >>confdefs.h <<_ACEOF
14106 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14107 _ACEOF
14108
14109 else
14110   ac_widec_funcs=no
14111 fi
14112 done
14113
14114 { echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
14115 echo $ECHO_N "checking whether wcwidth is declared... $ECHO_C" >&6; }
14116 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
14117   echo $ECHO_N "(cached) $ECHO_C" >&6
14118 else
14119   cat >conftest.$ac_ext <<_ACEOF
14120 /* confdefs.h.  */
14121 _ACEOF
14122 cat confdefs.h >>conftest.$ac_ext
14123 cat >>conftest.$ac_ext <<_ACEOF
14124 /* end confdefs.h.  */
14125 $ac_includes_default
14126 int
14127 main ()
14128 {
14129 #ifndef wcwidth
14130   char *p = (char *) wcwidth;
14131   return !p;
14132 #endif
14133
14134   ;
14135   return 0;
14136 }
14137 _ACEOF
14138 rm -f conftest.$ac_objext
14139 if { (ac_try="$ac_compile"
14140 case "(($ac_try" in
14141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14142   *) ac_try_echo=$ac_try;;
14143 esac
14144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14145   (eval "$ac_compile") 2>conftest.er1
14146   ac_status=$?
14147   grep -v '^ *+' conftest.er1 >conftest.err
14148   rm -f conftest.er1
14149   cat conftest.err >&5
14150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151   (exit $ac_status); } &&
14152          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14153   { (case "(($ac_try" in
14154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14155   *) ac_try_echo=$ac_try;;
14156 esac
14157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14158   (eval "$ac_try") 2>&5
14159   ac_status=$?
14160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161   (exit $ac_status); }; } &&
14162          { ac_try='test -s conftest.$ac_objext'
14163   { (case "(($ac_try" in
14164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14165   *) ac_try_echo=$ac_try;;
14166 esac
14167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14168   (eval "$ac_try") 2>&5
14169   ac_status=$?
14170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171   (exit $ac_status); }; }; then
14172   ac_cv_have_decl_wcwidth=yes
14173 else
14174   echo "$as_me: failed program was:" >&5
14175 sed 's/^/| /' conftest.$ac_ext >&5
14176
14177         ac_cv_have_decl_wcwidth=no
14178 fi
14179
14180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14181 fi
14182 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
14183 echo "${ECHO_T}$ac_cv_have_decl_wcwidth" >&6; }
14184 if test $ac_cv_have_decl_wcwidth = yes; then
14185
14186 cat >>confdefs.h <<_ACEOF
14187 #define HAVE_DECL_WCWIDTH 1
14188 _ACEOF
14189
14190
14191 else
14192   cat >>confdefs.h <<_ACEOF
14193 #define HAVE_DECL_WCWIDTH 0
14194 _ACEOF
14195
14196
14197 fi
14198
14199
14200 { echo "$as_me:$LINENO: checking for wchar_t" >&5
14201 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
14202 if test "${ac_cv_type_wchar_t+set}" = set; then
14203   echo $ECHO_N "(cached) $ECHO_C" >&6
14204 else
14205   cat >conftest.$ac_ext <<_ACEOF
14206 /* confdefs.h.  */
14207 _ACEOF
14208 cat confdefs.h >>conftest.$ac_ext
14209 cat >>conftest.$ac_ext <<_ACEOF
14210 /* end confdefs.h.  */
14211 $ac_includes_default
14212 typedef wchar_t ac__type_new_;
14213 int
14214 main ()
14215 {
14216 if ((ac__type_new_ *) 0)
14217   return 0;
14218 if (sizeof (ac__type_new_))
14219   return 0;
14220   ;
14221   return 0;
14222 }
14223 _ACEOF
14224 rm -f conftest.$ac_objext
14225 if { (ac_try="$ac_compile"
14226 case "(($ac_try" in
14227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14228   *) ac_try_echo=$ac_try;;
14229 esac
14230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14231   (eval "$ac_compile") 2>conftest.er1
14232   ac_status=$?
14233   grep -v '^ *+' conftest.er1 >conftest.err
14234   rm -f conftest.er1
14235   cat conftest.err >&5
14236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237   (exit $ac_status); } &&
14238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14239   { (case "(($ac_try" in
14240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241   *) ac_try_echo=$ac_try;;
14242 esac
14243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14244   (eval "$ac_try") 2>&5
14245   ac_status=$?
14246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247   (exit $ac_status); }; } &&
14248          { ac_try='test -s conftest.$ac_objext'
14249   { (case "(($ac_try" in
14250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251   *) ac_try_echo=$ac_try;;
14252 esac
14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254   (eval "$ac_try") 2>&5
14255   ac_status=$?
14256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257   (exit $ac_status); }; }; then
14258   ac_cv_type_wchar_t=yes
14259 else
14260   echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14262
14263         ac_cv_type_wchar_t=no
14264 fi
14265
14266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14267 fi
14268 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
14269 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
14270 if test $ac_cv_type_wchar_t = yes; then
14271   :
14272 else
14273   ac_widec_funcs=no
14274 fi
14275
14276
14277 if test x$ac_widec_funcs = xyes -a x$ac_have_wchar_h = xyes; then
14278         ac_widec_possible=yes
14279 else
14280         ac_widec_possible=no
14281 fi
14282
14283
14284 abook_cv_curses=/usr
14285
14286 # Check whether --with-curses was given.
14287 if test "${with_curses+set}" = set; then
14288   withval=$with_curses; if test $withval != yes; then
14289                 abook_cv_curses=$withval
14290         fi
14291         if test x$abook_cv_curses != x/usr; then
14292                 LDFLAGS="-L${abook_cv_curses}/lib $LDFLAGS"
14293                 CPPFLAGS="$CPPFLAGS -I${abook_cv_curses}/include"
14294         fi
14295 fi
14296
14297
14298 { echo "$as_me:$LINENO: checking for initscr in -lncursesw" >&5
14299 echo $ECHO_N "checking for initscr in -lncursesw... $ECHO_C" >&6; }
14300 if test "${ac_cv_lib_ncursesw_initscr+set}" = set; then
14301   echo $ECHO_N "(cached) $ECHO_C" >&6
14302 else
14303   ac_check_lib_save_LIBS=$LIBS
14304 LIBS="-lncursesw  $LIBS"
14305 cat >conftest.$ac_ext <<_ACEOF
14306 /* confdefs.h.  */
14307 _ACEOF
14308 cat confdefs.h >>conftest.$ac_ext
14309 cat >>conftest.$ac_ext <<_ACEOF
14310 /* end confdefs.h.  */
14311
14312 /* Override any GCC internal prototype to avoid an error.
14313    Use char because int might match the return type of a GCC
14314    builtin and then its argument prototype would still apply.  */
14315 #ifdef __cplusplus
14316 extern "C"
14317 #endif
14318 char initscr ();
14319 int
14320 main ()
14321 {
14322 return initscr ();
14323   ;
14324   return 0;
14325 }
14326 _ACEOF
14327 rm -f conftest.$ac_objext conftest$ac_exeext
14328 if { (ac_try="$ac_link"
14329 case "(($ac_try" in
14330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14331   *) ac_try_echo=$ac_try;;
14332 esac
14333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14334   (eval "$ac_link") 2>conftest.er1
14335   ac_status=$?
14336   grep -v '^ *+' conftest.er1 >conftest.err
14337   rm -f conftest.er1
14338   cat conftest.err >&5
14339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340   (exit $ac_status); } &&
14341          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14342   { (case "(($ac_try" in
14343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14344   *) ac_try_echo=$ac_try;;
14345 esac
14346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14347   (eval "$ac_try") 2>&5
14348   ac_status=$?
14349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350   (exit $ac_status); }; } &&
14351          { ac_try='test -s conftest$ac_exeext'
14352   { (case "(($ac_try" in
14353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14354   *) ac_try_echo=$ac_try;;
14355 esac
14356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14357   (eval "$ac_try") 2>&5
14358   ac_status=$?
14359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360   (exit $ac_status); }; }; then
14361   ac_cv_lib_ncursesw_initscr=yes
14362 else
14363   echo "$as_me: failed program was:" >&5
14364 sed 's/^/| /' conftest.$ac_ext >&5
14365
14366         ac_cv_lib_ncursesw_initscr=no
14367 fi
14368
14369 rm -f core conftest.err conftest.$ac_objext \
14370       conftest$ac_exeext conftest.$ac_ext
14371 LIBS=$ac_check_lib_save_LIBS
14372 fi
14373 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncursesw_initscr" >&5
14374 echo "${ECHO_T}$ac_cv_lib_ncursesw_initscr" >&6; }
14375 if test $ac_cv_lib_ncursesw_initscr = yes; then
14376   LIBS="$LIBS -lncursesw"
14377         if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then
14378                 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
14379         fi
14380
14381 for ac_header in ncurses.h
14382 do
14383 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14385   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14387 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14388   echo $ECHO_N "(cached) $ECHO_C" >&6
14389 fi
14390 ac_res=`eval echo '${'$as_ac_Header'}'`
14391                { echo "$as_me:$LINENO: result: $ac_res" >&5
14392 echo "${ECHO_T}$ac_res" >&6; }
14393 else
14394   # Is the header compilable?
14395 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14396 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14397 cat >conftest.$ac_ext <<_ACEOF
14398 /* confdefs.h.  */
14399 _ACEOF
14400 cat confdefs.h >>conftest.$ac_ext
14401 cat >>conftest.$ac_ext <<_ACEOF
14402 /* end confdefs.h.  */
14403 $ac_includes_default
14404 #include <$ac_header>
14405 _ACEOF
14406 rm -f conftest.$ac_objext
14407 if { (ac_try="$ac_compile"
14408 case "(($ac_try" in
14409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14410   *) ac_try_echo=$ac_try;;
14411 esac
14412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14413   (eval "$ac_compile") 2>conftest.er1
14414   ac_status=$?
14415   grep -v '^ *+' conftest.er1 >conftest.err
14416   rm -f conftest.er1
14417   cat conftest.err >&5
14418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419   (exit $ac_status); } &&
14420          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14421   { (case "(($ac_try" in
14422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14423   *) ac_try_echo=$ac_try;;
14424 esac
14425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14426   (eval "$ac_try") 2>&5
14427   ac_status=$?
14428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429   (exit $ac_status); }; } &&
14430          { ac_try='test -s conftest.$ac_objext'
14431   { (case "(($ac_try" in
14432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14433   *) ac_try_echo=$ac_try;;
14434 esac
14435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14436   (eval "$ac_try") 2>&5
14437   ac_status=$?
14438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14439   (exit $ac_status); }; }; then
14440   ac_header_compiler=yes
14441 else
14442   echo "$as_me: failed program was:" >&5
14443 sed 's/^/| /' conftest.$ac_ext >&5
14444
14445         ac_header_compiler=no
14446 fi
14447
14448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14449 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14450 echo "${ECHO_T}$ac_header_compiler" >&6; }
14451
14452 # Is the header present?
14453 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14455 cat >conftest.$ac_ext <<_ACEOF
14456 /* confdefs.h.  */
14457 _ACEOF
14458 cat confdefs.h >>conftest.$ac_ext
14459 cat >>conftest.$ac_ext <<_ACEOF
14460 /* end confdefs.h.  */
14461 #include <$ac_header>
14462 _ACEOF
14463 if { (ac_try="$ac_cpp conftest.$ac_ext"
14464 case "(($ac_try" in
14465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14466   *) ac_try_echo=$ac_try;;
14467 esac
14468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14469   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14470   ac_status=$?
14471   grep -v '^ *+' conftest.er1 >conftest.err
14472   rm -f conftest.er1
14473   cat conftest.err >&5
14474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475   (exit $ac_status); } >/dev/null; then
14476   if test -s conftest.err; then
14477     ac_cpp_err=$ac_c_preproc_warn_flag
14478     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14479   else
14480     ac_cpp_err=
14481   fi
14482 else
14483   ac_cpp_err=yes
14484 fi
14485 if test -z "$ac_cpp_err"; then
14486   ac_header_preproc=yes
14487 else
14488   echo "$as_me: failed program was:" >&5
14489 sed 's/^/| /' conftest.$ac_ext >&5
14490
14491   ac_header_preproc=no
14492 fi
14493
14494 rm -f conftest.err conftest.$ac_ext
14495 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14496 echo "${ECHO_T}$ac_header_preproc" >&6; }
14497
14498 # So?  What about this header?
14499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14500   yes:no: )
14501     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14502 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14503     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14504 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14505     ac_header_preproc=yes
14506     ;;
14507   no:yes:* )
14508     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14509 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14510     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14511 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14512     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14513 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14514     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14515 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14516     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14518     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14519 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14520
14521     ;;
14522 esac
14523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14526   echo $ECHO_N "(cached) $ECHO_C" >&6
14527 else
14528   eval "$as_ac_Header=\$ac_header_preproc"
14529 fi
14530 ac_res=`eval echo '${'$as_ac_Header'}'`
14531                { echo "$as_me:$LINENO: result: $ac_res" >&5
14532 echo "${ECHO_T}$ac_res" >&6; }
14533
14534 fi
14535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14536   cat >>confdefs.h <<_ACEOF
14537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14538 _ACEOF
14539
14540 fi
14541
14542 done
14543
14544 else
14545
14546         ac_widec_possible=no
14547         { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
14548 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
14549 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
14550   echo $ECHO_N "(cached) $ECHO_C" >&6
14551 else
14552   ac_check_lib_save_LIBS=$LIBS
14553 LIBS="-lncurses  $LIBS"
14554 cat >conftest.$ac_ext <<_ACEOF
14555 /* confdefs.h.  */
14556 _ACEOF
14557 cat confdefs.h >>conftest.$ac_ext
14558 cat >>conftest.$ac_ext <<_ACEOF
14559 /* end confdefs.h.  */
14560
14561 /* Override any GCC internal prototype to avoid an error.
14562    Use char because int might match the return type of a GCC
14563    builtin and then its argument prototype would still apply.  */
14564 #ifdef __cplusplus
14565 extern "C"
14566 #endif
14567 char initscr ();
14568 int
14569 main ()
14570 {
14571 return initscr ();
14572   ;
14573   return 0;
14574 }
14575 _ACEOF
14576 rm -f conftest.$ac_objext conftest$ac_exeext
14577 if { (ac_try="$ac_link"
14578 case "(($ac_try" in
14579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14580   *) ac_try_echo=$ac_try;;
14581 esac
14582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14583   (eval "$ac_link") 2>conftest.er1
14584   ac_status=$?
14585   grep -v '^ *+' conftest.er1 >conftest.err
14586   rm -f conftest.er1
14587   cat conftest.err >&5
14588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589   (exit $ac_status); } &&
14590          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14591   { (case "(($ac_try" in
14592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14593   *) ac_try_echo=$ac_try;;
14594 esac
14595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14596   (eval "$ac_try") 2>&5
14597   ac_status=$?
14598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599   (exit $ac_status); }; } &&
14600          { ac_try='test -s conftest$ac_exeext'
14601   { (case "(($ac_try" in
14602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603   *) ac_try_echo=$ac_try;;
14604 esac
14605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14606   (eval "$ac_try") 2>&5
14607   ac_status=$?
14608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609   (exit $ac_status); }; }; then
14610   ac_cv_lib_ncurses_initscr=yes
14611 else
14612   echo "$as_me: failed program was:" >&5
14613 sed 's/^/| /' conftest.$ac_ext >&5
14614
14615         ac_cv_lib_ncurses_initscr=no
14616 fi
14617
14618 rm -f core conftest.err conftest.$ac_objext \
14619       conftest$ac_exeext conftest.$ac_ext
14620 LIBS=$ac_check_lib_save_LIBS
14621 fi
14622 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
14623 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
14624 if test $ac_cv_lib_ncurses_initscr = yes; then
14625   LIBS="$LIBS -lncurses"
14626                 if test x$abook_cv_curses = x/usr -a -d /usr/include/ncurses; then
14627                         CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
14628                 fi
14629
14630 for ac_header in ncurses.h
14631 do
14632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14634   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14637   echo $ECHO_N "(cached) $ECHO_C" >&6
14638 fi
14639 ac_res=`eval echo '${'$as_ac_Header'}'`
14640                { echo "$as_me:$LINENO: result: $ac_res" >&5
14641 echo "${ECHO_T}$ac_res" >&6; }
14642 else
14643   # Is the header compilable?
14644 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14646 cat >conftest.$ac_ext <<_ACEOF
14647 /* confdefs.h.  */
14648 _ACEOF
14649 cat confdefs.h >>conftest.$ac_ext
14650 cat >>conftest.$ac_ext <<_ACEOF
14651 /* end confdefs.h.  */
14652 $ac_includes_default
14653 #include <$ac_header>
14654 _ACEOF
14655 rm -f conftest.$ac_objext
14656 if { (ac_try="$ac_compile"
14657 case "(($ac_try" in
14658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14659   *) ac_try_echo=$ac_try;;
14660 esac
14661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14662   (eval "$ac_compile") 2>conftest.er1
14663   ac_status=$?
14664   grep -v '^ *+' conftest.er1 >conftest.err
14665   rm -f conftest.er1
14666   cat conftest.err >&5
14667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668   (exit $ac_status); } &&
14669          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14670   { (case "(($ac_try" in
14671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14672   *) ac_try_echo=$ac_try;;
14673 esac
14674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14675   (eval "$ac_try") 2>&5
14676   ac_status=$?
14677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678   (exit $ac_status); }; } &&
14679          { ac_try='test -s conftest.$ac_objext'
14680   { (case "(($ac_try" in
14681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14682   *) ac_try_echo=$ac_try;;
14683 esac
14684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14685   (eval "$ac_try") 2>&5
14686   ac_status=$?
14687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688   (exit $ac_status); }; }; then
14689   ac_header_compiler=yes
14690 else
14691   echo "$as_me: failed program was:" >&5
14692 sed 's/^/| /' conftest.$ac_ext >&5
14693
14694         ac_header_compiler=no
14695 fi
14696
14697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14698 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14699 echo "${ECHO_T}$ac_header_compiler" >&6; }
14700
14701 # Is the header present?
14702 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14704 cat >conftest.$ac_ext <<_ACEOF
14705 /* confdefs.h.  */
14706 _ACEOF
14707 cat confdefs.h >>conftest.$ac_ext
14708 cat >>conftest.$ac_ext <<_ACEOF
14709 /* end confdefs.h.  */
14710 #include <$ac_header>
14711 _ACEOF
14712 if { (ac_try="$ac_cpp conftest.$ac_ext"
14713 case "(($ac_try" in
14714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14715   *) ac_try_echo=$ac_try;;
14716 esac
14717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14718   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14719   ac_status=$?
14720   grep -v '^ *+' conftest.er1 >conftest.err
14721   rm -f conftest.er1
14722   cat conftest.err >&5
14723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724   (exit $ac_status); } >/dev/null; then
14725   if test -s conftest.err; then
14726     ac_cpp_err=$ac_c_preproc_warn_flag
14727     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14728   else
14729     ac_cpp_err=
14730   fi
14731 else
14732   ac_cpp_err=yes
14733 fi
14734 if test -z "$ac_cpp_err"; then
14735   ac_header_preproc=yes
14736 else
14737   echo "$as_me: failed program was:" >&5
14738 sed 's/^/| /' conftest.$ac_ext >&5
14739
14740   ac_header_preproc=no
14741 fi
14742
14743 rm -f conftest.err conftest.$ac_ext
14744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14745 echo "${ECHO_T}$ac_header_preproc" >&6; }
14746
14747 # So?  What about this header?
14748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14749   yes:no: )
14750     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14752     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14754     ac_header_preproc=yes
14755     ;;
14756   no:yes:* )
14757     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14759     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14760 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14761     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14763     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14764 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14765     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14767     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14769
14770     ;;
14771 esac
14772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14775   echo $ECHO_N "(cached) $ECHO_C" >&6
14776 else
14777   eval "$as_ac_Header=\$ac_header_preproc"
14778 fi
14779 ac_res=`eval echo '${'$as_ac_Header'}'`
14780                { echo "$as_me:$LINENO: result: $ac_res" >&5
14781 echo "${ECHO_T}$ac_res" >&6; }
14782
14783 fi
14784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14785   cat >>confdefs.h <<_ACEOF
14786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14787 _ACEOF
14788
14789 fi
14790
14791 done
14792
14793 else
14794
14795 { echo "$as_me:$LINENO: checking for initscr" >&5
14796 echo $ECHO_N "checking for initscr... $ECHO_C" >&6; }
14797 if test "${ac_cv_func_initscr+set}" = set; then
14798   echo $ECHO_N "(cached) $ECHO_C" >&6
14799 else
14800   cat >conftest.$ac_ext <<_ACEOF
14801 /* confdefs.h.  */
14802 _ACEOF
14803 cat confdefs.h >>conftest.$ac_ext
14804 cat >>conftest.$ac_ext <<_ACEOF
14805 /* end confdefs.h.  */
14806 /* Define initscr to an innocuous variant, in case <limits.h> declares initscr.
14807    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14808 #define initscr innocuous_initscr
14809
14810 /* System header to define __stub macros and hopefully few prototypes,
14811     which can conflict with char initscr (); below.
14812     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14813     <limits.h> exists even on freestanding compilers.  */
14814
14815 #ifdef __STDC__
14816 # include <limits.h>
14817 #else
14818 # include <assert.h>
14819 #endif
14820
14821 #undef initscr
14822
14823 /* Override any GCC internal prototype to avoid an error.
14824    Use char because int might match the return type of a GCC
14825    builtin and then its argument prototype would still apply.  */
14826 #ifdef __cplusplus
14827 extern "C"
14828 #endif
14829 char initscr ();
14830 /* The GNU C library defines this for functions which it implements
14831     to always fail with ENOSYS.  Some functions are actually named
14832     something starting with __ and the normal name is an alias.  */
14833 #if defined __stub_initscr || defined __stub___initscr
14834 choke me
14835 #endif
14836
14837 int
14838 main ()
14839 {
14840 return initscr ();
14841   ;
14842   return 0;
14843 }
14844 _ACEOF
14845 rm -f conftest.$ac_objext conftest$ac_exeext
14846 if { (ac_try="$ac_link"
14847 case "(($ac_try" in
14848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14849   *) ac_try_echo=$ac_try;;
14850 esac
14851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14852   (eval "$ac_link") 2>conftest.er1
14853   ac_status=$?
14854   grep -v '^ *+' conftest.er1 >conftest.err
14855   rm -f conftest.er1
14856   cat conftest.err >&5
14857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858   (exit $ac_status); } &&
14859          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14860   { (case "(($ac_try" in
14861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14862   *) ac_try_echo=$ac_try;;
14863 esac
14864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14865   (eval "$ac_try") 2>&5
14866   ac_status=$?
14867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14868   (exit $ac_status); }; } &&
14869          { ac_try='test -s conftest$ac_exeext'
14870   { (case "(($ac_try" in
14871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14872   *) ac_try_echo=$ac_try;;
14873 esac
14874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14875   (eval "$ac_try") 2>&5
14876   ac_status=$?
14877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878   (exit $ac_status); }; }; then
14879   ac_cv_func_initscr=yes
14880 else
14881   echo "$as_me: failed program was:" >&5
14882 sed 's/^/| /' conftest.$ac_ext >&5
14883
14884         ac_cv_func_initscr=no
14885 fi
14886
14887 rm -f core conftest.err conftest.$ac_objext \
14888       conftest$ac_exeext conftest.$ac_ext
14889 fi
14890 { echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
14891 echo "${ECHO_T}$ac_cv_func_initscr" >&6; }
14892 if test $ac_cv_func_initscr = yes; then
14893   :
14894 else
14895
14896 case $host_os in #(vi
14897 freebsd*) #(vi
14898         { echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
14899 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6; }
14900 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
14901   echo $ECHO_N "(cached) $ECHO_C" >&6
14902 else
14903   ac_check_lib_save_LIBS=$LIBS
14904 LIBS="-lmytinfo  $LIBS"
14905 cat >conftest.$ac_ext <<_ACEOF
14906 /* confdefs.h.  */
14907 _ACEOF
14908 cat confdefs.h >>conftest.$ac_ext
14909 cat >>conftest.$ac_ext <<_ACEOF
14910 /* end confdefs.h.  */
14911
14912 /* Override any GCC internal prototype to avoid an error.
14913    Use char because int might match the return type of a GCC
14914    builtin and then its argument prototype would still apply.  */
14915 #ifdef __cplusplus
14916 extern "C"
14917 #endif
14918 char tgoto ();
14919 int
14920 main ()
14921 {
14922 return tgoto ();
14923   ;
14924   return 0;
14925 }
14926 _ACEOF
14927 rm -f conftest.$ac_objext conftest$ac_exeext
14928 if { (ac_try="$ac_link"
14929 case "(($ac_try" in
14930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14931   *) ac_try_echo=$ac_try;;
14932 esac
14933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14934   (eval "$ac_link") 2>conftest.er1
14935   ac_status=$?
14936   grep -v '^ *+' conftest.er1 >conftest.err
14937   rm -f conftest.er1
14938   cat conftest.err >&5
14939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940   (exit $ac_status); } &&
14941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14942   { (case "(($ac_try" in
14943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14944   *) ac_try_echo=$ac_try;;
14945 esac
14946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14947   (eval "$ac_try") 2>&5
14948   ac_status=$?
14949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950   (exit $ac_status); }; } &&
14951          { ac_try='test -s conftest$ac_exeext'
14952   { (case "(($ac_try" in
14953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14954   *) ac_try_echo=$ac_try;;
14955 esac
14956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14957   (eval "$ac_try") 2>&5
14958   ac_status=$?
14959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960   (exit $ac_status); }; }; then
14961   ac_cv_lib_mytinfo_tgoto=yes
14962 else
14963   echo "$as_me: failed program was:" >&5
14964 sed 's/^/| /' conftest.$ac_ext >&5
14965
14966         ac_cv_lib_mytinfo_tgoto=no
14967 fi
14968
14969 rm -f core conftest.err conftest.$ac_objext \
14970       conftest$ac_exeext conftest.$ac_ext
14971 LIBS=$ac_check_lib_save_LIBS
14972 fi
14973 { echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
14974 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6; }
14975 if test $ac_cv_lib_mytinfo_tgoto = yes; then
14976   LIBS="-lmytinfo $LIBS"
14977 fi
14978
14979         ;;
14980 hpux10.*|hpux11.*)
14981         { echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
14982 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6; }
14983 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
14984   echo $ECHO_N "(cached) $ECHO_C" >&6
14985 else
14986   ac_check_lib_save_LIBS=$LIBS
14987 LIBS="-lcur_colr  $LIBS"
14988 cat >conftest.$ac_ext <<_ACEOF
14989 /* confdefs.h.  */
14990 _ACEOF
14991 cat confdefs.h >>conftest.$ac_ext
14992 cat >>conftest.$ac_ext <<_ACEOF
14993 /* end confdefs.h.  */
14994
14995 /* Override any GCC internal prototype to avoid an error.
14996    Use char because int might match the return type of a GCC
14997    builtin and then its argument prototype would still apply.  */
14998 #ifdef __cplusplus
14999 extern "C"
15000 #endif
15001 char initscr ();
15002 int
15003 main ()
15004 {
15005 return initscr ();
15006   ;
15007   return 0;
15008 }
15009 _ACEOF
15010 rm -f conftest.$ac_objext conftest$ac_exeext
15011 if { (ac_try="$ac_link"
15012 case "(($ac_try" in
15013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15014   *) ac_try_echo=$ac_try;;
15015 esac
15016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15017   (eval "$ac_link") 2>conftest.er1
15018   ac_status=$?
15019   grep -v '^ *+' conftest.er1 >conftest.err
15020   rm -f conftest.er1
15021   cat conftest.err >&5
15022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023   (exit $ac_status); } &&
15024          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15025   { (case "(($ac_try" in
15026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15027   *) ac_try_echo=$ac_try;;
15028 esac
15029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15030   (eval "$ac_try") 2>&5
15031   ac_status=$?
15032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033   (exit $ac_status); }; } &&
15034          { ac_try='test -s conftest$ac_exeext'
15035   { (case "(($ac_try" in
15036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15037   *) ac_try_echo=$ac_try;;
15038 esac
15039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15040   (eval "$ac_try") 2>&5
15041   ac_status=$?
15042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043   (exit $ac_status); }; }; then
15044   ac_cv_lib_cur_colr_initscr=yes
15045 else
15046   echo "$as_me: failed program was:" >&5
15047 sed 's/^/| /' conftest.$ac_ext >&5
15048
15049         ac_cv_lib_cur_colr_initscr=no
15050 fi
15051
15052 rm -f core conftest.err conftest.$ac_objext \
15053       conftest$ac_exeext conftest.$ac_ext
15054 LIBS=$ac_check_lib_save_LIBS
15055 fi
15056 { echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
15057 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6; }
15058 if test $ac_cv_lib_cur_colr_initscr = yes; then
15059
15060                 LIBS="-lcur_colr $LIBS"
15061                 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
15062                 ac_cv_func_initscr=yes
15063
15064 else
15065
15066         { echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
15067 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6; }
15068 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
15069   echo $ECHO_N "(cached) $ECHO_C" >&6
15070 else
15071   ac_check_lib_save_LIBS=$LIBS
15072 LIBS="-lHcurses  $LIBS"
15073 cat >conftest.$ac_ext <<_ACEOF
15074 /* confdefs.h.  */
15075 _ACEOF
15076 cat confdefs.h >>conftest.$ac_ext
15077 cat >>conftest.$ac_ext <<_ACEOF
15078 /* end confdefs.h.  */
15079
15080 /* Override any GCC internal prototype to avoid an error.
15081    Use char because int might match the return type of a GCC
15082    builtin and then its argument prototype would still apply.  */
15083 #ifdef __cplusplus
15084 extern "C"
15085 #endif
15086 char initscr ();
15087 int
15088 main ()
15089 {
15090 return initscr ();
15091   ;
15092   return 0;
15093 }
15094 _ACEOF
15095 rm -f conftest.$ac_objext conftest$ac_exeext
15096 if { (ac_try="$ac_link"
15097 case "(($ac_try" in
15098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15099   *) ac_try_echo=$ac_try;;
15100 esac
15101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15102   (eval "$ac_link") 2>conftest.er1
15103   ac_status=$?
15104   grep -v '^ *+' conftest.er1 >conftest.err
15105   rm -f conftest.er1
15106   cat conftest.err >&5
15107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108   (exit $ac_status); } &&
15109          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15110   { (case "(($ac_try" in
15111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15112   *) ac_try_echo=$ac_try;;
15113 esac
15114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15115   (eval "$ac_try") 2>&5
15116   ac_status=$?
15117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118   (exit $ac_status); }; } &&
15119          { ac_try='test -s conftest$ac_exeext'
15120   { (case "(($ac_try" in
15121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122   *) ac_try_echo=$ac_try;;
15123 esac
15124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15125   (eval "$ac_try") 2>&5
15126   ac_status=$?
15127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128   (exit $ac_status); }; }; then
15129   ac_cv_lib_Hcurses_initscr=yes
15130 else
15131   echo "$as_me: failed program was:" >&5
15132 sed 's/^/| /' conftest.$ac_ext >&5
15133
15134         ac_cv_lib_Hcurses_initscr=no
15135 fi
15136
15137 rm -f core conftest.err conftest.$ac_objext \
15138       conftest$ac_exeext conftest.$ac_ext
15139 LIBS=$ac_check_lib_save_LIBS
15140 fi
15141 { echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
15142 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6; }
15143 if test $ac_cv_lib_Hcurses_initscr = yes; then
15144
15145                 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
15146                 LIBS="-lHcurses $LIBS"
15147                 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
15148                 ac_cv_func_initscr=yes
15149
15150 fi
15151
15152 fi
15153
15154         ;;
15155 linux*) # Suse Linux does not follow /usr/lib convention
15156         LIBS="$LIBS -L/lib"
15157         ;;
15158 esac
15159
15160 if test ".$With5lib" != ".no" ; then
15161 if test -d /usr/5lib ; then
15162         # SunOS 3.x or 4.x
15163         CPPFLAGS="$CPPFLAGS -I/usr/5include"
15164         LIBS="$LIBS -L/usr/5lib"
15165 fi
15166 fi
15167
15168 if test ".$ac_cv_func_initscr" != .yes ; then
15169         cf_save_LIBS="$LIBS"
15170         cf_term_lib=""
15171         cf_curs_lib=""
15172
15173         # Check for library containing tgoto.  Do this before curses library
15174         # because it may be needed to link the test-case for initscr.
15175         { echo "$as_me:$LINENO: checking for tgoto" >&5
15176 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6; }
15177 if test "${ac_cv_func_tgoto+set}" = set; then
15178   echo $ECHO_N "(cached) $ECHO_C" >&6
15179 else
15180   cat >conftest.$ac_ext <<_ACEOF
15181 /* confdefs.h.  */
15182 _ACEOF
15183 cat confdefs.h >>conftest.$ac_ext
15184 cat >>conftest.$ac_ext <<_ACEOF
15185 /* end confdefs.h.  */
15186 /* Define tgoto to an innocuous variant, in case <limits.h> declares tgoto.
15187    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15188 #define tgoto innocuous_tgoto
15189
15190 /* System header to define __stub macros and hopefully few prototypes,
15191     which can conflict with char tgoto (); below.
15192     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15193     <limits.h> exists even on freestanding compilers.  */
15194
15195 #ifdef __STDC__
15196 # include <limits.h>
15197 #else
15198 # include <assert.h>
15199 #endif
15200
15201 #undef tgoto
15202
15203 /* Override any GCC internal prototype to avoid an error.
15204    Use char because int might match the return type of a GCC
15205    builtin and then its argument prototype would still apply.  */
15206 #ifdef __cplusplus
15207 extern "C"
15208 #endif
15209 char tgoto ();
15210 /* The GNU C library defines this for functions which it implements
15211     to always fail with ENOSYS.  Some functions are actually named
15212     something starting with __ and the normal name is an alias.  */
15213 #if defined __stub_tgoto || defined __stub___tgoto
15214 choke me
15215 #endif
15216
15217 int
15218 main ()
15219 {
15220 return tgoto ();
15221   ;
15222   return 0;
15223 }
15224 _ACEOF
15225 rm -f conftest.$ac_objext conftest$ac_exeext
15226 if { (ac_try="$ac_link"
15227 case "(($ac_try" in
15228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15229   *) ac_try_echo=$ac_try;;
15230 esac
15231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15232   (eval "$ac_link") 2>conftest.er1
15233   ac_status=$?
15234   grep -v '^ *+' conftest.er1 >conftest.err
15235   rm -f conftest.er1
15236   cat conftest.err >&5
15237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238   (exit $ac_status); } &&
15239          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15240   { (case "(($ac_try" in
15241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15242   *) ac_try_echo=$ac_try;;
15243 esac
15244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15245   (eval "$ac_try") 2>&5
15246   ac_status=$?
15247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248   (exit $ac_status); }; } &&
15249          { ac_try='test -s conftest$ac_exeext'
15250   { (case "(($ac_try" in
15251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252   *) ac_try_echo=$ac_try;;
15253 esac
15254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255   (eval "$ac_try") 2>&5
15256   ac_status=$?
15257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258   (exit $ac_status); }; }; then
15259   ac_cv_func_tgoto=yes
15260 else
15261   echo "$as_me: failed program was:" >&5
15262 sed 's/^/| /' conftest.$ac_ext >&5
15263
15264         ac_cv_func_tgoto=no
15265 fi
15266
15267 rm -f core conftest.err conftest.$ac_objext \
15268       conftest$ac_exeext conftest.$ac_ext
15269 fi
15270 { echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
15271 echo "${ECHO_T}$ac_cv_func_tgoto" >&6; }
15272 if test $ac_cv_func_tgoto = yes; then
15273   cf_term_lib=predefined
15274 else
15275
15276                 for cf_term_lib in termcap termlib unknown
15277                 do
15278                         as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
15279 { echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
15280 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6; }
15281 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
15282   echo $ECHO_N "(cached) $ECHO_C" >&6
15283 else
15284   ac_check_lib_save_LIBS=$LIBS
15285 LIBS="-l$cf_term_lib  $LIBS"
15286 cat >conftest.$ac_ext <<_ACEOF
15287 /* confdefs.h.  */
15288 _ACEOF
15289 cat confdefs.h >>conftest.$ac_ext
15290 cat >>conftest.$ac_ext <<_ACEOF
15291 /* end confdefs.h.  */
15292
15293 /* Override any GCC internal prototype to avoid an error.
15294    Use char because int might match the return type of a GCC
15295    builtin and then its argument prototype would still apply.  */
15296 #ifdef __cplusplus
15297 extern "C"
15298 #endif
15299 char tgoto ();
15300 int
15301 main ()
15302 {
15303 return tgoto ();
15304   ;
15305   return 0;
15306 }
15307 _ACEOF
15308 rm -f conftest.$ac_objext conftest$ac_exeext
15309 if { (ac_try="$ac_link"
15310 case "(($ac_try" in
15311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312   *) ac_try_echo=$ac_try;;
15313 esac
15314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15315   (eval "$ac_link") 2>conftest.er1
15316   ac_status=$?
15317   grep -v '^ *+' conftest.er1 >conftest.err
15318   rm -f conftest.er1
15319   cat conftest.err >&5
15320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321   (exit $ac_status); } &&
15322          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15323   { (case "(($ac_try" in
15324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15325   *) ac_try_echo=$ac_try;;
15326 esac
15327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15328   (eval "$ac_try") 2>&5
15329   ac_status=$?
15330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331   (exit $ac_status); }; } &&
15332          { ac_try='test -s conftest$ac_exeext'
15333   { (case "(($ac_try" in
15334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335   *) ac_try_echo=$ac_try;;
15336 esac
15337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338   (eval "$ac_try") 2>&5
15339   ac_status=$?
15340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341   (exit $ac_status); }; }; then
15342   eval "$as_ac_Lib=yes"
15343 else
15344   echo "$as_me: failed program was:" >&5
15345 sed 's/^/| /' conftest.$ac_ext >&5
15346
15347         eval "$as_ac_Lib=no"
15348 fi
15349
15350 rm -f core conftest.err conftest.$ac_objext \
15351       conftest$ac_exeext conftest.$ac_ext
15352 LIBS=$ac_check_lib_save_LIBS
15353 fi
15354 ac_res=`eval echo '${'$as_ac_Lib'}'`
15355                { echo "$as_me:$LINENO: result: $ac_res" >&5
15356 echo "${ECHO_T}$ac_res" >&6; }
15357 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
15358   break
15359 fi
15360
15361                 done
15362
15363 fi
15364
15365
15366         # Check for library containing initscr
15367         test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
15368         for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
15369         do
15370                 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
15371 { echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
15372 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6; }
15373 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
15374   echo $ECHO_N "(cached) $ECHO_C" >&6
15375 else
15376   ac_check_lib_save_LIBS=$LIBS
15377 LIBS="-l$cf_curs_lib  $LIBS"
15378 cat >conftest.$ac_ext <<_ACEOF
15379 /* confdefs.h.  */
15380 _ACEOF
15381 cat confdefs.h >>conftest.$ac_ext
15382 cat >>conftest.$ac_ext <<_ACEOF
15383 /* end confdefs.h.  */
15384
15385 /* Override any GCC internal prototype to avoid an error.
15386    Use char because int might match the return type of a GCC
15387    builtin and then its argument prototype would still apply.  */
15388 #ifdef __cplusplus
15389 extern "C"
15390 #endif
15391 char initscr ();
15392 int
15393 main ()
15394 {
15395 return initscr ();
15396   ;
15397   return 0;
15398 }
15399 _ACEOF
15400 rm -f conftest.$ac_objext conftest$ac_exeext
15401 if { (ac_try="$ac_link"
15402 case "(($ac_try" in
15403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15404   *) ac_try_echo=$ac_try;;
15405 esac
15406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15407   (eval "$ac_link") 2>conftest.er1
15408   ac_status=$?
15409   grep -v '^ *+' conftest.er1 >conftest.err
15410   rm -f conftest.er1
15411   cat conftest.err >&5
15412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15413   (exit $ac_status); } &&
15414          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15415   { (case "(($ac_try" in
15416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15417   *) ac_try_echo=$ac_try;;
15418 esac
15419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15420   (eval "$ac_try") 2>&5
15421   ac_status=$?
15422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423   (exit $ac_status); }; } &&
15424          { ac_try='test -s conftest$ac_exeext'
15425   { (case "(($ac_try" in
15426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15427   *) ac_try_echo=$ac_try;;
15428 esac
15429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15430   (eval "$ac_try") 2>&5
15431   ac_status=$?
15432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433   (exit $ac_status); }; }; then
15434   eval "$as_ac_Lib=yes"
15435 else
15436   echo "$as_me: failed program was:" >&5
15437 sed 's/^/| /' conftest.$ac_ext >&5
15438
15439         eval "$as_ac_Lib=no"
15440 fi
15441
15442 rm -f core conftest.err conftest.$ac_objext \
15443       conftest$ac_exeext conftest.$ac_ext
15444 LIBS=$ac_check_lib_save_LIBS
15445 fi
15446 ac_res=`eval echo '${'$as_ac_Lib'}'`
15447                { echo "$as_me:$LINENO: result: $ac_res" >&5
15448 echo "${ECHO_T}$ac_res" >&6; }
15449 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
15450   break
15451 fi
15452
15453         done
15454         test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
15455 echo "$as_me: error: no curses library found" >&2;}
15456    { (exit 1); exit 1; }; }
15457
15458         LIBS="-l$cf_curs_lib $cf_save_LIBS"
15459         if test "$cf_term_lib" = unknown ; then
15460                 { echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
15461 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6; }
15462                 cat >conftest.$ac_ext <<_ACEOF
15463 /* confdefs.h.  */
15464 _ACEOF
15465 cat confdefs.h >>conftest.$ac_ext
15466 cat >>conftest.$ac_ext <<_ACEOF
15467 /* end confdefs.h.  */
15468 #include <${cf_cv_ncurses_header-curses.h}>
15469 int
15470 main ()
15471 {
15472 initscr()
15473   ;
15474   return 0;
15475 }
15476 _ACEOF
15477 rm -f conftest.$ac_objext conftest$ac_exeext
15478 if { (ac_try="$ac_link"
15479 case "(($ac_try" in
15480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15481   *) ac_try_echo=$ac_try;;
15482 esac
15483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15484   (eval "$ac_link") 2>conftest.er1
15485   ac_status=$?
15486   grep -v '^ *+' conftest.er1 >conftest.err
15487   rm -f conftest.er1
15488   cat conftest.err >&5
15489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490   (exit $ac_status); } &&
15491          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15492   { (case "(($ac_try" in
15493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15494   *) ac_try_echo=$ac_try;;
15495 esac
15496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15497   (eval "$ac_try") 2>&5
15498   ac_status=$?
15499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500   (exit $ac_status); }; } &&
15501          { ac_try='test -s conftest$ac_exeext'
15502   { (case "(($ac_try" in
15503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15504   *) ac_try_echo=$ac_try;;
15505 esac
15506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15507   (eval "$ac_try") 2>&5
15508   ac_status=$?
15509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510   (exit $ac_status); }; }; then
15511   cf_result=yes
15512 else
15513   echo "$as_me: failed program was:" >&5
15514 sed 's/^/| /' conftest.$ac_ext >&5
15515
15516         cf_result=no
15517 fi
15518
15519 rm -f core conftest.err conftest.$ac_objext \
15520       conftest$ac_exeext conftest.$ac_ext
15521                 { echo "$as_me:$LINENO: result: $cf_result" >&5
15522 echo "${ECHO_T}$cf_result" >&6; }
15523                 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
15524 echo "$as_me: error: Cannot link curses library" >&2;}
15525    { (exit 1); exit 1; }; }
15526         elif test "$cf_term_lib" != predefined ; then
15527                 { echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
15528 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6; }
15529                 cat >conftest.$ac_ext <<_ACEOF
15530 /* confdefs.h.  */
15531 _ACEOF
15532 cat confdefs.h >>conftest.$ac_ext
15533 cat >>conftest.$ac_ext <<_ACEOF
15534 /* end confdefs.h.  */
15535 #include <${cf_cv_ncurses_header-curses.h}>
15536 int
15537 main ()
15538 {
15539 initscr(); tgoto((char *)0, 0, 0);
15540   ;
15541   return 0;
15542 }
15543 _ACEOF
15544 rm -f conftest.$ac_objext conftest$ac_exeext
15545 if { (ac_try="$ac_link"
15546 case "(($ac_try" in
15547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548   *) ac_try_echo=$ac_try;;
15549 esac
15550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15551   (eval "$ac_link") 2>conftest.er1
15552   ac_status=$?
15553   grep -v '^ *+' conftest.er1 >conftest.err
15554   rm -f conftest.er1
15555   cat conftest.err >&5
15556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557   (exit $ac_status); } &&
15558          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15559   { (case "(($ac_try" in
15560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15561   *) ac_try_echo=$ac_try;;
15562 esac
15563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15564   (eval "$ac_try") 2>&5
15565   ac_status=$?
15566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567   (exit $ac_status); }; } &&
15568          { ac_try='test -s conftest$ac_exeext'
15569   { (case "(($ac_try" in
15570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15571   *) ac_try_echo=$ac_try;;
15572 esac
15573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15574   (eval "$ac_try") 2>&5
15575   ac_status=$?
15576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577   (exit $ac_status); }; }; then
15578   cf_result=no
15579 else
15580   echo "$as_me: failed program was:" >&5
15581 sed 's/^/| /' conftest.$ac_ext >&5
15582
15583
15584                         LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
15585                         cat >conftest.$ac_ext <<_ACEOF
15586 /* confdefs.h.  */
15587 _ACEOF
15588 cat confdefs.h >>conftest.$ac_ext
15589 cat >>conftest.$ac_ext <<_ACEOF
15590 /* end confdefs.h.  */
15591 #include <${cf_cv_ncurses_header-curses.h}>
15592 int
15593 main ()
15594 {
15595 initscr()
15596   ;
15597   return 0;
15598 }
15599 _ACEOF
15600 rm -f conftest.$ac_objext conftest$ac_exeext
15601 if { (ac_try="$ac_link"
15602 case "(($ac_try" in
15603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15604   *) ac_try_echo=$ac_try;;
15605 esac
15606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15607   (eval "$ac_link") 2>conftest.er1
15608   ac_status=$?
15609   grep -v '^ *+' conftest.er1 >conftest.err
15610   rm -f conftest.er1
15611   cat conftest.err >&5
15612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613   (exit $ac_status); } &&
15614          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15615   { (case "(($ac_try" in
15616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15617   *) ac_try_echo=$ac_try;;
15618 esac
15619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15620   (eval "$ac_try") 2>&5
15621   ac_status=$?
15622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623   (exit $ac_status); }; } &&
15624          { ac_try='test -s conftest$ac_exeext'
15625   { (case "(($ac_try" in
15626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15627   *) ac_try_echo=$ac_try;;
15628 esac
15629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15630   (eval "$ac_try") 2>&5
15631   ac_status=$?
15632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633   (exit $ac_status); }; }; then
15634   cf_result=yes
15635 else
15636   echo "$as_me: failed program was:" >&5
15637 sed 's/^/| /' conftest.$ac_ext >&5
15638
15639         cf_result=error
15640 fi
15641
15642 rm -f core conftest.err conftest.$ac_objext \
15643       conftest$ac_exeext conftest.$ac_ext
15644
15645 fi
15646
15647 rm -f core conftest.err conftest.$ac_objext \
15648       conftest$ac_exeext conftest.$ac_ext
15649                 { echo "$as_me:$LINENO: result: $cf_result" >&5
15650 echo "${ECHO_T}$cf_result" >&6; }
15651         fi
15652 fi
15653
15654
15655 fi
15656
15657 fi
15658
15659
15660 fi
15661
15662
15663
15664
15665 abook_cv_readline=/usr
15666
15667 # Check whether --with-readline was given.
15668 if test "${with_readline+set}" = set; then
15669   withval=$with_readline; if test $withval != yes; then
15670                 abook_cv_readline=$withval
15671         fi
15672         if test x$abook_cv_readline != x/usr; then
15673                 LDFLAGS="-L${abook_cv_readline}/lib $LDFLAGS"
15674                 CPPFLAGS="$CPPFLAGS -I${abook_cv_readline}/include"
15675         fi
15676 fi
15677
15678
15679
15680   { echo "$as_me:$LINENO: checking for a readline compatible library" >&5
15681 echo $ECHO_N "checking for a readline compatible library... $ECHO_C" >&6; }
15682 if test "${ac_cv_lib_readline+set}" = set; then
15683   echo $ECHO_N "(cached) $ECHO_C" >&6
15684 else
15685
15686     ORIG_LIBS="$LIBS"
15687     for readline_lib in readline edit editline; do
15688       for termcap_lib in "" termcap curses ncurses; do
15689         if test -z "$termcap_lib"; then
15690           TRY_LIB="-l$readline_lib"
15691         else
15692           TRY_LIB="-l$readline_lib -l$termcap_lib"
15693         fi
15694         LIBS="$ORIG_LIBS $TRY_LIB"
15695         cat >conftest.$ac_ext <<_ACEOF
15696 /* confdefs.h.  */
15697 _ACEOF
15698 cat confdefs.h >>conftest.$ac_ext
15699 cat >>conftest.$ac_ext <<_ACEOF
15700 /* end confdefs.h.  */
15701
15702 /* Override any GCC internal prototype to avoid an error.
15703    Use char because int might match the return type of a GCC
15704    builtin and then its argument prototype would still apply.  */
15705 #ifdef __cplusplus
15706 extern "C"
15707 #endif
15708 char readline ();
15709 int
15710 main ()
15711 {
15712 return readline ();
15713   ;
15714   return 0;
15715 }
15716 _ACEOF
15717 rm -f conftest.$ac_objext conftest$ac_exeext
15718 if { (ac_try="$ac_link"
15719 case "(($ac_try" in
15720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721   *) ac_try_echo=$ac_try;;
15722 esac
15723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15724   (eval "$ac_link") 2>conftest.er1
15725   ac_status=$?
15726   grep -v '^ *+' conftest.er1 >conftest.err
15727   rm -f conftest.er1
15728   cat conftest.err >&5
15729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730   (exit $ac_status); } &&
15731          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15732   { (case "(($ac_try" in
15733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15734   *) ac_try_echo=$ac_try;;
15735 esac
15736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15737   (eval "$ac_try") 2>&5
15738   ac_status=$?
15739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740   (exit $ac_status); }; } &&
15741          { ac_try='test -s conftest$ac_exeext'
15742   { (case "(($ac_try" in
15743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15744   *) ac_try_echo=$ac_try;;
15745 esac
15746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15747   (eval "$ac_try") 2>&5
15748   ac_status=$?
15749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15750   (exit $ac_status); }; }; then
15751   ac_cv_lib_readline="$TRY_LIB"
15752 else
15753   echo "$as_me: failed program was:" >&5
15754 sed 's/^/| /' conftest.$ac_ext >&5
15755
15756
15757 fi
15758
15759 rm -f core conftest.err conftest.$ac_objext \
15760       conftest$ac_exeext conftest.$ac_ext
15761         if test -n "$ac_cv_lib_readline"; then
15762           break
15763         fi
15764       done
15765       if test -n "$ac_cv_lib_readline"; then
15766         break
15767       fi
15768     done
15769     if test -z "$ac_cv_lib_readline"; then
15770       ac_cv_lib_readline="no"
15771     fi
15772     LIBS="$ORIG_LIBS"
15773
15774 fi
15775 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline" >&5
15776 echo "${ECHO_T}$ac_cv_lib_readline" >&6; }
15777
15778   if test "$ac_cv_lib_readline" != "no"; then
15779     LIBS="$LIBS $ac_cv_lib_readline"
15780
15781 cat >>confdefs.h <<\_ACEOF
15782 #define HAVE_LIBREADLINE 1
15783 _ACEOF
15784
15785
15786
15787 for ac_header in readline.h readline/readline.h
15788 do
15789 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15791   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15794   echo $ECHO_N "(cached) $ECHO_C" >&6
15795 fi
15796 ac_res=`eval echo '${'$as_ac_Header'}'`
15797                { echo "$as_me:$LINENO: result: $ac_res" >&5
15798 echo "${ECHO_T}$ac_res" >&6; }
15799 else
15800   # Is the header compilable?
15801 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15802 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15803 cat >conftest.$ac_ext <<_ACEOF
15804 /* confdefs.h.  */
15805 _ACEOF
15806 cat confdefs.h >>conftest.$ac_ext
15807 cat >>conftest.$ac_ext <<_ACEOF
15808 /* end confdefs.h.  */
15809 $ac_includes_default
15810 #include <$ac_header>
15811 _ACEOF
15812 rm -f conftest.$ac_objext
15813 if { (ac_try="$ac_compile"
15814 case "(($ac_try" in
15815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15816   *) ac_try_echo=$ac_try;;
15817 esac
15818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15819   (eval "$ac_compile") 2>conftest.er1
15820   ac_status=$?
15821   grep -v '^ *+' conftest.er1 >conftest.err
15822   rm -f conftest.er1
15823   cat conftest.err >&5
15824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15825   (exit $ac_status); } &&
15826          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15827   { (case "(($ac_try" in
15828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15829   *) ac_try_echo=$ac_try;;
15830 esac
15831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15832   (eval "$ac_try") 2>&5
15833   ac_status=$?
15834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835   (exit $ac_status); }; } &&
15836          { ac_try='test -s conftest.$ac_objext'
15837   { (case "(($ac_try" in
15838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15839   *) ac_try_echo=$ac_try;;
15840 esac
15841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15842   (eval "$ac_try") 2>&5
15843   ac_status=$?
15844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845   (exit $ac_status); }; }; then
15846   ac_header_compiler=yes
15847 else
15848   echo "$as_me: failed program was:" >&5
15849 sed 's/^/| /' conftest.$ac_ext >&5
15850
15851         ac_header_compiler=no
15852 fi
15853
15854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15855 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15856 echo "${ECHO_T}$ac_header_compiler" >&6; }
15857
15858 # Is the header present?
15859 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15860 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15861 cat >conftest.$ac_ext <<_ACEOF
15862 /* confdefs.h.  */
15863 _ACEOF
15864 cat confdefs.h >>conftest.$ac_ext
15865 cat >>conftest.$ac_ext <<_ACEOF
15866 /* end confdefs.h.  */
15867 #include <$ac_header>
15868 _ACEOF
15869 if { (ac_try="$ac_cpp conftest.$ac_ext"
15870 case "(($ac_try" in
15871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15872   *) ac_try_echo=$ac_try;;
15873 esac
15874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15875   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15876   ac_status=$?
15877   grep -v '^ *+' conftest.er1 >conftest.err
15878   rm -f conftest.er1
15879   cat conftest.err >&5
15880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881   (exit $ac_status); } >/dev/null; then
15882   if test -s conftest.err; then
15883     ac_cpp_err=$ac_c_preproc_warn_flag
15884     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15885   else
15886     ac_cpp_err=
15887   fi
15888 else
15889   ac_cpp_err=yes
15890 fi
15891 if test -z "$ac_cpp_err"; then
15892   ac_header_preproc=yes
15893 else
15894   echo "$as_me: failed program was:" >&5
15895 sed 's/^/| /' conftest.$ac_ext >&5
15896
15897   ac_header_preproc=no
15898 fi
15899
15900 rm -f conftest.err conftest.$ac_ext
15901 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15902 echo "${ECHO_T}$ac_header_preproc" >&6; }
15903
15904 # So?  What about this header?
15905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15906   yes:no: )
15907     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15909     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15910 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15911     ac_header_preproc=yes
15912     ;;
15913   no:yes:* )
15914     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15916     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15917 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15918     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15919 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15920     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15921 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15922     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15924     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15925 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15926
15927     ;;
15928 esac
15929 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15932   echo $ECHO_N "(cached) $ECHO_C" >&6
15933 else
15934   eval "$as_ac_Header=\$ac_header_preproc"
15935 fi
15936 ac_res=`eval echo '${'$as_ac_Header'}'`
15937                { echo "$as_me:$LINENO: result: $ac_res" >&5
15938 echo "${ECHO_T}$ac_res" >&6; }
15939
15940 fi
15941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15942   cat >>confdefs.h <<_ACEOF
15943 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15944 _ACEOF
15945
15946 fi
15947
15948 done
15949
15950     { echo "$as_me:$LINENO: checking whether readline supports history" >&5
15951 echo $ECHO_N "checking whether readline supports history... $ECHO_C" >&6; }
15952 if test "${ac_cv_lib_readline_history+set}" = set; then
15953   echo $ECHO_N "(cached) $ECHO_C" >&6
15954 else
15955
15956       ac_cv_lib_readline_history="no"
15957       cat >conftest.$ac_ext <<_ACEOF
15958 /* confdefs.h.  */
15959 _ACEOF
15960 cat confdefs.h >>conftest.$ac_ext
15961 cat >>conftest.$ac_ext <<_ACEOF
15962 /* end confdefs.h.  */
15963
15964 /* Override any GCC internal prototype to avoid an error.
15965    Use char because int might match the return type of a GCC
15966    builtin and then its argument prototype would still apply.  */
15967 #ifdef __cplusplus
15968 extern "C"
15969 #endif
15970 char add_history ();
15971 int
15972 main ()
15973 {
15974 return add_history ();
15975   ;
15976   return 0;
15977 }
15978 _ACEOF
15979 rm -f conftest.$ac_objext conftest$ac_exeext
15980 if { (ac_try="$ac_link"
15981 case "(($ac_try" in
15982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15983   *) ac_try_echo=$ac_try;;
15984 esac
15985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15986   (eval "$ac_link") 2>conftest.er1
15987   ac_status=$?
15988   grep -v '^ *+' conftest.er1 >conftest.err
15989   rm -f conftest.er1
15990   cat conftest.err >&5
15991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992   (exit $ac_status); } &&
15993          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15994   { (case "(($ac_try" in
15995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15996   *) ac_try_echo=$ac_try;;
15997 esac
15998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15999   (eval "$ac_try") 2>&5
16000   ac_status=$?
16001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002   (exit $ac_status); }; } &&
16003          { ac_try='test -s conftest$ac_exeext'
16004   { (case "(($ac_try" in
16005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16006   *) ac_try_echo=$ac_try;;
16007 esac
16008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16009   (eval "$ac_try") 2>&5
16010   ac_status=$?
16011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012   (exit $ac_status); }; }; then
16013   ac_cv_lib_readline_history="yes"
16014 else
16015   echo "$as_me: failed program was:" >&5
16016 sed 's/^/| /' conftest.$ac_ext >&5
16017
16018
16019 fi
16020
16021 rm -f core conftest.err conftest.$ac_objext \
16022       conftest$ac_exeext conftest.$ac_ext
16023
16024 fi
16025 { echo "$as_me:$LINENO: result: $ac_cv_lib_readline_history" >&5
16026 echo "${ECHO_T}$ac_cv_lib_readline_history" >&6; }
16027     if test "$ac_cv_lib_readline_history" = "yes"; then
16028
16029 cat >>confdefs.h <<\_ACEOF
16030 #define HAVE_READLINE_HISTORY 1
16031 _ACEOF
16032
16033
16034
16035 for ac_header in history.h readline/history.h
16036 do
16037 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16039   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16042   echo $ECHO_N "(cached) $ECHO_C" >&6
16043 fi
16044 ac_res=`eval echo '${'$as_ac_Header'}'`
16045                { echo "$as_me:$LINENO: result: $ac_res" >&5
16046 echo "${ECHO_T}$ac_res" >&6; }
16047 else
16048   # Is the header compilable?
16049 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16050 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16051 cat >conftest.$ac_ext <<_ACEOF
16052 /* confdefs.h.  */
16053 _ACEOF
16054 cat confdefs.h >>conftest.$ac_ext
16055 cat >>conftest.$ac_ext <<_ACEOF
16056 /* end confdefs.h.  */
16057 $ac_includes_default
16058 #include <$ac_header>
16059 _ACEOF
16060 rm -f conftest.$ac_objext
16061 if { (ac_try="$ac_compile"
16062 case "(($ac_try" in
16063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16064   *) ac_try_echo=$ac_try;;
16065 esac
16066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16067   (eval "$ac_compile") 2>conftest.er1
16068   ac_status=$?
16069   grep -v '^ *+' conftest.er1 >conftest.err
16070   rm -f conftest.er1
16071   cat conftest.err >&5
16072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073   (exit $ac_status); } &&
16074          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16075   { (case "(($ac_try" in
16076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16077   *) ac_try_echo=$ac_try;;
16078 esac
16079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16080   (eval "$ac_try") 2>&5
16081   ac_status=$?
16082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083   (exit $ac_status); }; } &&
16084          { ac_try='test -s conftest.$ac_objext'
16085   { (case "(($ac_try" in
16086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16087   *) ac_try_echo=$ac_try;;
16088 esac
16089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16090   (eval "$ac_try") 2>&5
16091   ac_status=$?
16092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093   (exit $ac_status); }; }; then
16094   ac_header_compiler=yes
16095 else
16096   echo "$as_me: failed program was:" >&5
16097 sed 's/^/| /' conftest.$ac_ext >&5
16098
16099         ac_header_compiler=no
16100 fi
16101
16102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16104 echo "${ECHO_T}$ac_header_compiler" >&6; }
16105
16106 # Is the header present?
16107 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16109 cat >conftest.$ac_ext <<_ACEOF
16110 /* confdefs.h.  */
16111 _ACEOF
16112 cat confdefs.h >>conftest.$ac_ext
16113 cat >>conftest.$ac_ext <<_ACEOF
16114 /* end confdefs.h.  */
16115 #include <$ac_header>
16116 _ACEOF
16117 if { (ac_try="$ac_cpp conftest.$ac_ext"
16118 case "(($ac_try" in
16119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16120   *) ac_try_echo=$ac_try;;
16121 esac
16122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16123   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16124   ac_status=$?
16125   grep -v '^ *+' conftest.er1 >conftest.err
16126   rm -f conftest.er1
16127   cat conftest.err >&5
16128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129   (exit $ac_status); } >/dev/null; then
16130   if test -s conftest.err; then
16131     ac_cpp_err=$ac_c_preproc_warn_flag
16132     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16133   else
16134     ac_cpp_err=
16135   fi
16136 else
16137   ac_cpp_err=yes
16138 fi
16139 if test -z "$ac_cpp_err"; then
16140   ac_header_preproc=yes
16141 else
16142   echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.$ac_ext >&5
16144
16145   ac_header_preproc=no
16146 fi
16147
16148 rm -f conftest.err conftest.$ac_ext
16149 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16150 echo "${ECHO_T}$ac_header_preproc" >&6; }
16151
16152 # So?  What about this header?
16153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16154   yes:no: )
16155     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16156 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16157     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16158 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16159     ac_header_preproc=yes
16160     ;;
16161   no:yes:* )
16162     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16163 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16164     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16165 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16166     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16167 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16168     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16169 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16170     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16172     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16173 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16174
16175     ;;
16176 esac
16177 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16180   echo $ECHO_N "(cached) $ECHO_C" >&6
16181 else
16182   eval "$as_ac_Header=\$ac_header_preproc"
16183 fi
16184 ac_res=`eval echo '${'$as_ac_Header'}'`
16185                { echo "$as_me:$LINENO: result: $ac_res" >&5
16186 echo "${ECHO_T}$ac_res" >&6; }
16187
16188 fi
16189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16190   cat >>confdefs.h <<_ACEOF
16191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16192 _ACEOF
16193
16194 fi
16195
16196 done
16197
16198     fi
16199   fi
16200
16201
16202
16203 if test x$ac_cv_lib_readline = xno -o x$ac_cv_lib_readline_history = xno; then
16204         { { echo "$as_me:$LINENO: error: *** readline library not found or it doesn't support history ***" >&5
16205 echo "$as_me: error: *** readline library not found or it doesn't support history ***" >&2;}
16206    { (exit 1); exit 1; }; }
16207 fi
16208
16209
16210 if test x$ac_widec_possible = xyes; then
16211
16212 cat >>confdefs.h <<\_ACEOF
16213 #define HANDLE_MULTIBYTE 1
16214 _ACEOF
16215
16216 fi
16217
16218
16219 for ac_func in resizeterm
16220 do
16221 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16222 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16224 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16225   echo $ECHO_N "(cached) $ECHO_C" >&6
16226 else
16227   cat >conftest.$ac_ext <<_ACEOF
16228 /* confdefs.h.  */
16229 _ACEOF
16230 cat confdefs.h >>conftest.$ac_ext
16231 cat >>conftest.$ac_ext <<_ACEOF
16232 /* end confdefs.h.  */
16233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16234    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16235 #define $ac_func innocuous_$ac_func
16236
16237 /* System header to define __stub macros and hopefully few prototypes,
16238     which can conflict with char $ac_func (); below.
16239     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16240     <limits.h> exists even on freestanding compilers.  */
16241
16242 #ifdef __STDC__
16243 # include <limits.h>
16244 #else
16245 # include <assert.h>
16246 #endif
16247
16248 #undef $ac_func
16249
16250 /* Override any GCC internal prototype to avoid an error.
16251    Use char because int might match the return type of a GCC
16252    builtin and then its argument prototype would still apply.  */
16253 #ifdef __cplusplus
16254 extern "C"
16255 #endif
16256 char $ac_func ();
16257 /* The GNU C library defines this for functions which it implements
16258     to always fail with ENOSYS.  Some functions are actually named
16259     something starting with __ and the normal name is an alias.  */
16260 #if defined __stub_$ac_func || defined __stub___$ac_func
16261 choke me
16262 #endif
16263
16264 int
16265 main ()
16266 {
16267 return $ac_func ();
16268   ;
16269   return 0;
16270 }
16271 _ACEOF
16272 rm -f conftest.$ac_objext conftest$ac_exeext
16273 if { (ac_try="$ac_link"
16274 case "(($ac_try" in
16275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276   *) ac_try_echo=$ac_try;;
16277 esac
16278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16279   (eval "$ac_link") 2>conftest.er1
16280   ac_status=$?
16281   grep -v '^ *+' conftest.er1 >conftest.err
16282   rm -f conftest.er1
16283   cat conftest.err >&5
16284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16285   (exit $ac_status); } &&
16286          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16287   { (case "(($ac_try" in
16288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16289   *) ac_try_echo=$ac_try;;
16290 esac
16291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16292   (eval "$ac_try") 2>&5
16293   ac_status=$?
16294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295   (exit $ac_status); }; } &&
16296          { ac_try='test -s conftest$ac_exeext'
16297   { (case "(($ac_try" in
16298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16299   *) ac_try_echo=$ac_try;;
16300 esac
16301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16302   (eval "$ac_try") 2>&5
16303   ac_status=$?
16304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305   (exit $ac_status); }; }; then
16306   eval "$as_ac_var=yes"
16307 else
16308   echo "$as_me: failed program was:" >&5
16309 sed 's/^/| /' conftest.$ac_ext >&5
16310
16311         eval "$as_ac_var=no"
16312 fi
16313
16314 rm -f core conftest.err conftest.$ac_objext \
16315       conftest$ac_exeext conftest.$ac_ext
16316 fi
16317 ac_res=`eval echo '${'$as_ac_var'}'`
16318                { echo "$as_me:$LINENO: result: $ac_res" >&5
16319 echo "${ECHO_T}$ac_res" >&6; }
16320 if test `eval echo '${'$as_ac_var'}'` = yes; then
16321   cat >>confdefs.h <<_ACEOF
16322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16323 _ACEOF
16324
16325 fi
16326 done
16327
16328
16329
16330
16331 for ac_func in snprintf vsnprintf
16332 do
16333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16334 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16336 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16337   echo $ECHO_N "(cached) $ECHO_C" >&6
16338 else
16339   cat >conftest.$ac_ext <<_ACEOF
16340 /* confdefs.h.  */
16341 _ACEOF
16342 cat confdefs.h >>conftest.$ac_ext
16343 cat >>conftest.$ac_ext <<_ACEOF
16344 /* end confdefs.h.  */
16345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16346    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16347 #define $ac_func innocuous_$ac_func
16348
16349 /* System header to define __stub macros and hopefully few prototypes,
16350     which can conflict with char $ac_func (); below.
16351     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16352     <limits.h> exists even on freestanding compilers.  */
16353
16354 #ifdef __STDC__
16355 # include <limits.h>
16356 #else
16357 # include <assert.h>
16358 #endif
16359
16360 #undef $ac_func
16361
16362 /* Override any GCC internal prototype to avoid an error.
16363    Use char because int might match the return type of a GCC
16364    builtin and then its argument prototype would still apply.  */
16365 #ifdef __cplusplus
16366 extern "C"
16367 #endif
16368 char $ac_func ();
16369 /* The GNU C library defines this for functions which it implements
16370     to always fail with ENOSYS.  Some functions are actually named
16371     something starting with __ and the normal name is an alias.  */
16372 #if defined __stub_$ac_func || defined __stub___$ac_func
16373 choke me
16374 #endif
16375
16376 int
16377 main ()
16378 {
16379 return $ac_func ();
16380   ;
16381   return 0;
16382 }
16383 _ACEOF
16384 rm -f conftest.$ac_objext conftest$ac_exeext
16385 if { (ac_try="$ac_link"
16386 case "(($ac_try" in
16387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16388   *) ac_try_echo=$ac_try;;
16389 esac
16390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16391   (eval "$ac_link") 2>conftest.er1
16392   ac_status=$?
16393   grep -v '^ *+' conftest.er1 >conftest.err
16394   rm -f conftest.er1
16395   cat conftest.err >&5
16396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397   (exit $ac_status); } &&
16398          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16399   { (case "(($ac_try" in
16400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16401   *) ac_try_echo=$ac_try;;
16402 esac
16403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16404   (eval "$ac_try") 2>&5
16405   ac_status=$?
16406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407   (exit $ac_status); }; } &&
16408          { ac_try='test -s conftest$ac_exeext'
16409   { (case "(($ac_try" in
16410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16411   *) ac_try_echo=$ac_try;;
16412 esac
16413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16414   (eval "$ac_try") 2>&5
16415   ac_status=$?
16416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417   (exit $ac_status); }; }; then
16418   eval "$as_ac_var=yes"
16419 else
16420   echo "$as_me: failed program was:" >&5
16421 sed 's/^/| /' conftest.$ac_ext >&5
16422
16423         eval "$as_ac_var=no"
16424 fi
16425
16426 rm -f core conftest.err conftest.$ac_objext \
16427       conftest$ac_exeext conftest.$ac_ext
16428 fi
16429 ac_res=`eval echo '${'$as_ac_var'}'`
16430                { echo "$as_me:$LINENO: result: $ac_res" >&5
16431 echo "${ECHO_T}$ac_res" >&6; }
16432 if test `eval echo '${'$as_ac_var'}'` = yes; then
16433   cat >>confdefs.h <<_ACEOF
16434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16435 _ACEOF
16436
16437 fi
16438 done
16439
16440
16441 # Check whether --enable-debug was given.
16442 if test "${enable_debug+set}" = set; then
16443   enableval=$enable_debug; case "${enableval}" in
16444         yes) debug=true ;;
16445         no) debug=false ;;
16446         *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
16447 echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
16448    { (exit 1); exit 1; }; } ;;
16449         esac
16450 else
16451   debug=false
16452 fi
16453
16454
16455 if test x$debug = xtrue; then
16456         CPPFLAGS="-DDEBUG=1 $CPPFLAGS"
16457         CFLAGS="-g $CFLAGS"
16458 fi
16459
16460 if test x$GCC = xyes; then
16461         CFLAGS="-Wall $CFLAGS"
16462 fi
16463
16464 ac_config_files="$ac_config_files Makefile abook.spec intl/Makefile po/Makefile.in"
16465
16466 cat >confcache <<\_ACEOF
16467 # This file is a shell script that caches the results of configure
16468 # tests run on this system so they can be shared between configure
16469 # scripts and configure runs, see configure's option --config-cache.
16470 # It is not useful on other systems.  If it contains results you don't
16471 # want to keep, you may remove or edit it.
16472 #
16473 # config.status only pays attention to the cache file if you give it
16474 # the --recheck option to rerun configure.
16475 #
16476 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16477 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16478 # following values.
16479
16480 _ACEOF
16481
16482 # The following way of writing the cache mishandles newlines in values,
16483 # but we know of no workaround that is simple, portable, and efficient.
16484 # So, we kill variables containing newlines.
16485 # Ultrix sh set writes to stderr and can't be redirected directly,
16486 # and sets the high bit in the cache file unless we assign to the vars.
16487 (
16488   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16489     eval ac_val=\$$ac_var
16490     case $ac_val in #(
16491     *${as_nl}*)
16492       case $ac_var in #(
16493       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16494 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16495       esac
16496       case $ac_var in #(
16497       _ | IFS | as_nl) ;; #(
16498       *) $as_unset $ac_var ;;
16499       esac ;;
16500     esac
16501   done
16502
16503   (set) 2>&1 |
16504     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16505     *${as_nl}ac_space=\ *)
16506       # `set' does not quote correctly, so add quotes (double-quote
16507       # substitution turns \\\\ into \\, and sed turns \\ into \).
16508       sed -n \
16509         "s/'/'\\\\''/g;
16510           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16511       ;; #(
16512     *)
16513       # `set' quotes correctly as required by POSIX, so do not add quotes.
16514       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16515       ;;
16516     esac |
16517     sort
16518 ) |
16519   sed '
16520      /^ac_cv_env_/b end
16521      t clear
16522      :clear
16523      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16524      t end
16525      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16526      :end' >>confcache
16527 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16528   if test -w "$cache_file"; then
16529     test "x$cache_file" != "x/dev/null" &&
16530       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
16531 echo "$as_me: updating cache $cache_file" >&6;}
16532     cat confcache >$cache_file
16533   else
16534     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16535 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16536   fi
16537 fi
16538 rm -f confcache
16539
16540 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16541 # Let make expand exec_prefix.
16542 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16543
16544 DEFS=-DHAVE_CONFIG_H
16545
16546 ac_libobjs=
16547 ac_ltlibobjs=
16548 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16549   # 1. Remove the extension, and $U if already installed.
16550   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16551   ac_i=`echo "$ac_i" | sed "$ac_script"`
16552   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16553   #    will be set to the directory where LIBOBJS objects are built.
16554   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16555   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
16556 done
16557 LIBOBJS=$ac_libobjs
16558
16559 LTLIBOBJS=$ac_ltlibobjs
16560
16561
16562 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16563   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16564 Usually this means the macro was only invoked conditionally." >&5
16565 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16566 Usually this means the macro was only invoked conditionally." >&2;}
16567    { (exit 1); exit 1; }; }
16568 fi
16569 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16570   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16571 Usually this means the macro was only invoked conditionally." >&5
16572 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16573 Usually this means the macro was only invoked conditionally." >&2;}
16574    { (exit 1); exit 1; }; }
16575 fi
16576 if test -z "${USE_INCLUDED_INTL_H_TRUE}" && test -z "${USE_INCLUDED_INTL_H_FALSE}"; then
16577   { { echo "$as_me:$LINENO: error: conditional \"USE_INCLUDED_INTL_H\" was never defined.
16578 Usually this means the macro was only invoked conditionally." >&5
16579 echo "$as_me: error: conditional \"USE_INCLUDED_INTL_H\" was never defined.
16580 Usually this means the macro was only invoked conditionally." >&2;}
16581    { (exit 1); exit 1; }; }
16582 fi
16583 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16584   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16585 Usually this means the macro was only invoked conditionally." >&5
16586 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16587 Usually this means the macro was only invoked conditionally." >&2;}
16588    { (exit 1); exit 1; }; }
16589 fi
16590
16591 : ${CONFIG_STATUS=./config.status}
16592 ac_clean_files_save=$ac_clean_files
16593 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16594 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16595 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16596 cat >$CONFIG_STATUS <<_ACEOF
16597 #! $SHELL
16598 # Generated by $as_me.
16599 # Run this file to recreate the current configuration.
16600 # Compiler output produced by configure, useful for debugging
16601 # configure, is in config.log if it exists.
16602
16603 debug=false
16604 ac_cs_recheck=false
16605 ac_cs_silent=false
16606 SHELL=\${CONFIG_SHELL-$SHELL}
16607 _ACEOF
16608
16609 cat >>$CONFIG_STATUS <<\_ACEOF
16610 ## --------------------- ##
16611 ## M4sh Initialization.  ##
16612 ## --------------------- ##
16613
16614 # Be Bourne compatible
16615 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16616   emulate sh
16617   NULLCMD=:
16618   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16619   # is contrary to our usage.  Disable this feature.
16620   alias -g '${1+"$@"}'='"$@"'
16621   setopt NO_GLOB_SUBST
16622 else
16623   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
16624 fi
16625 BIN_SH=xpg4; export BIN_SH # for Tru64
16626 DUALCASE=1; export DUALCASE # for MKS sh
16627
16628
16629 # PATH needs CR
16630 # Avoid depending upon Character Ranges.
16631 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16632 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16633 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16634 as_cr_digits='0123456789'
16635 as_cr_alnum=$as_cr_Letters$as_cr_digits
16636
16637 # The user is always right.
16638 if test "${PATH_SEPARATOR+set}" != set; then
16639   echo "#! /bin/sh" >conf$$.sh
16640   echo  "exit 0"   >>conf$$.sh
16641   chmod +x conf$$.sh
16642   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16643     PATH_SEPARATOR=';'
16644   else
16645     PATH_SEPARATOR=:
16646   fi
16647   rm -f conf$$.sh
16648 fi
16649
16650 # Support unset when possible.
16651 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16652   as_unset=unset
16653 else
16654   as_unset=false
16655 fi
16656
16657
16658 # IFS
16659 # We need space, tab and new line, in precisely that order.  Quoting is
16660 # there to prevent editors from complaining about space-tab.
16661 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16662 # splitting by setting IFS to empty value.)
16663 as_nl='
16664 '
16665 IFS=" ""        $as_nl"
16666
16667 # Find who we are.  Look in the path if we contain no directory separator.
16668 case $0 in
16669   *[\\/]* ) as_myself=$0 ;;
16670   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16671 for as_dir in $PATH
16672 do
16673   IFS=$as_save_IFS
16674   test -z "$as_dir" && as_dir=.
16675   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16676 done
16677 IFS=$as_save_IFS
16678
16679      ;;
16680 esac
16681 # We did not find ourselves, most probably we were run as `sh COMMAND'
16682 # in which case we are not to be found in the path.
16683 if test "x$as_myself" = x; then
16684   as_myself=$0
16685 fi
16686 if test ! -f "$as_myself"; then
16687   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16688   { (exit 1); exit 1; }
16689 fi
16690
16691 # Work around bugs in pre-3.0 UWIN ksh.
16692 for as_var in ENV MAIL MAILPATH
16693 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16694 done
16695 PS1='$ '
16696 PS2='> '
16697 PS4='+ '
16698
16699 # NLS nuisances.
16700 for as_var in \
16701   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16702   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16703   LC_TELEPHONE LC_TIME
16704 do
16705   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
16706     eval $as_var=C; export $as_var
16707   else
16708     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16709   fi
16710 done
16711
16712 # Required to use basename.
16713 if expr a : '\(a\)' >/dev/null 2>&1 &&
16714    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16715   as_expr=expr
16716 else
16717   as_expr=false
16718 fi
16719
16720 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16721   as_basename=basename
16722 else
16723   as_basename=false
16724 fi
16725
16726
16727 # Name of the executable.
16728 as_me=`$as_basename -- "$0" ||
16729 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16730          X"$0" : 'X\(//\)$' \| \
16731          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16732 echo X/"$0" |
16733     sed '/^.*\/\([^/][^/]*\)\/*$/{
16734             s//\1/
16735             q
16736           }
16737           /^X\/\(\/\/\)$/{
16738             s//\1/
16739             q
16740           }
16741           /^X\/\(\/\).*/{
16742             s//\1/
16743             q
16744           }
16745           s/.*/./; q'`
16746
16747 # CDPATH.
16748 $as_unset CDPATH
16749
16750
16751
16752   as_lineno_1=$LINENO
16753   as_lineno_2=$LINENO
16754   test "x$as_lineno_1" != "x$as_lineno_2" &&
16755   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
16756
16757   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16758   # uniformly replaced by the line number.  The first 'sed' inserts a
16759   # line-number line after each line using $LINENO; the second 'sed'
16760   # does the real work.  The second script uses 'N' to pair each
16761   # line-number line with the line containing $LINENO, and appends
16762   # trailing '-' during substitution so that $LINENO is not a special
16763   # case at line end.
16764   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16765   # scripts with optimization help from Paolo Bonzini.  Blame Lee
16766   # E. McMahon (1931-1989) for sed's syntax.  :-)
16767   sed -n '
16768     p
16769     /[$]LINENO/=
16770   ' <$as_myself |
16771     sed '
16772       s/[$]LINENO.*/&-/
16773       t lineno
16774       b
16775       :lineno
16776       N
16777       :loop
16778       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
16779       t loop
16780       s/-\n.*//
16781     ' >$as_me.lineno &&
16782   chmod +x "$as_me.lineno" ||
16783     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
16784    { (exit 1); exit 1; }; }
16785
16786   # Don't try to exec as it changes $[0], causing all sort of problems
16787   # (the dirname of $[0] is not the place where we might find the
16788   # original and so on.  Autoconf is especially sensitive to this).
16789   . "./$as_me.lineno"
16790   # Exit status is that of the last command.
16791   exit
16792 }
16793
16794
16795 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16796   as_dirname=dirname
16797 else
16798   as_dirname=false
16799 fi
16800
16801 ECHO_C= ECHO_N= ECHO_T=
16802 case `echo -n x` in
16803 -n*)
16804   case `echo 'x\c'` in
16805   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16806   *)   ECHO_C='\c';;
16807   esac;;
16808 *)
16809   ECHO_N='-n';;
16810 esac
16811
16812 if expr a : '\(a\)' >/dev/null 2>&1 &&
16813    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16814   as_expr=expr
16815 else
16816   as_expr=false
16817 fi
16818
16819 rm -f conf$$ conf$$.exe conf$$.file
16820 if test -d conf$$.dir; then
16821   rm -f conf$$.dir/conf$$.file
16822 else
16823   rm -f conf$$.dir
16824   mkdir conf$$.dir
16825 fi
16826 echo >conf$$.file
16827 if ln -s conf$$.file conf$$ 2>/dev/null; then
16828   as_ln_s='ln -s'
16829   # ... but there are two gotchas:
16830   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16831   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16832   # In both cases, we have to default to `cp -p'.
16833   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16834     as_ln_s='cp -p'
16835 elif ln conf$$.file conf$$ 2>/dev/null; then
16836   as_ln_s=ln
16837 else
16838   as_ln_s='cp -p'
16839 fi
16840 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16841 rmdir conf$$.dir 2>/dev/null
16842
16843 if mkdir -p . 2>/dev/null; then
16844   as_mkdir_p=:
16845 else
16846   test -d ./-p && rmdir ./-p
16847   as_mkdir_p=false
16848 fi
16849
16850 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
16851 # systems may use methods other than mode bits to determine executability.
16852 cat >conf$$.file <<_ASEOF
16853 #! /bin/sh
16854 exit 0
16855 _ASEOF
16856 chmod +x conf$$.file
16857 if test -x conf$$.file >/dev/null 2>&1; then
16858   as_executable_p="test -x"
16859 else
16860   as_executable_p=:
16861 fi
16862 rm -f conf$$.file
16863
16864 # Sed expression to map a string onto a valid CPP name.
16865 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16866
16867 # Sed expression to map a string onto a valid variable name.
16868 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16869
16870
16871 exec 6>&1
16872
16873 # Save the log message, to keep $[0] and so on meaningful, and to
16874 # report actual input values of CONFIG_FILES etc. instead of their
16875 # values after options handling.
16876 ac_log="
16877 This file was extended by $as_me, which was
16878 generated by GNU Autoconf 2.60.  Invocation command line was
16879
16880   CONFIG_FILES    = $CONFIG_FILES
16881   CONFIG_HEADERS  = $CONFIG_HEADERS
16882   CONFIG_LINKS    = $CONFIG_LINKS
16883   CONFIG_COMMANDS = $CONFIG_COMMANDS
16884   $ $0 $@
16885
16886 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16887 "
16888
16889 _ACEOF
16890
16891 cat >>$CONFIG_STATUS <<_ACEOF
16892 # Files that config.status was made for.
16893 config_files="$ac_config_files"
16894 config_headers="$ac_config_headers"
16895 config_commands="$ac_config_commands"
16896
16897 _ACEOF
16898
16899 cat >>$CONFIG_STATUS <<\_ACEOF
16900 ac_cs_usage="\
16901 \`$as_me' instantiates files from templates according to the
16902 current configuration.
16903
16904 Usage: $0 [OPTIONS] [FILE]...
16905
16906   -h, --help       print this help, then exit
16907   -V, --version    print version number, then exit
16908   -q, --quiet      do not print progress messages
16909   -d, --debug      don't remove temporary files
16910       --recheck    update $as_me by reconfiguring in the same conditions
16911   --file=FILE[:TEMPLATE]
16912                    instantiate the configuration file FILE
16913   --header=FILE[:TEMPLATE]
16914                    instantiate the configuration header FILE
16915
16916 Configuration files:
16917 $config_files
16918
16919 Configuration headers:
16920 $config_headers
16921
16922 Configuration commands:
16923 $config_commands
16924
16925 Report bugs to <bug-autoconf@gnu.org>."
16926
16927 _ACEOF
16928 cat >>$CONFIG_STATUS <<_ACEOF
16929 ac_cs_version="\\
16930 config.status
16931 configured by $0, generated by GNU Autoconf 2.60,
16932   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16933
16934 Copyright (C) 2006 Free Software Foundation, Inc.
16935 This config.status script is free software; the Free Software Foundation
16936 gives unlimited permission to copy, distribute and modify it."
16937
16938 ac_pwd='$ac_pwd'
16939 srcdir='$srcdir'
16940 INSTALL='$INSTALL'
16941 _ACEOF
16942
16943 cat >>$CONFIG_STATUS <<\_ACEOF
16944 # If no file are specified by the user, then we need to provide default
16945 # value.  By we need to know if files were specified by the user.
16946 ac_need_defaults=:
16947 while test $# != 0
16948 do
16949   case $1 in
16950   --*=*)
16951     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16952     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16953     ac_shift=:
16954     ;;
16955   *)
16956     ac_option=$1
16957     ac_optarg=$2
16958     ac_shift=shift
16959     ;;
16960   esac
16961
16962   case $ac_option in
16963   # Handling of the options.
16964   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16965     ac_cs_recheck=: ;;
16966   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16967     echo "$ac_cs_version"; exit ;;
16968   --debug | --debu | --deb | --de | --d | -d )
16969     debug=: ;;
16970   --file | --fil | --fi | --f )
16971     $ac_shift
16972     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16973     ac_need_defaults=false;;
16974   --header | --heade | --head | --hea )
16975     $ac_shift
16976     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16977     ac_need_defaults=false;;
16978   --he | --h)
16979     # Conflict between --help and --header
16980     { echo "$as_me: error: ambiguous option: $1
16981 Try \`$0 --help' for more information." >&2
16982    { (exit 1); exit 1; }; };;
16983   --help | --hel | -h )
16984     echo "$ac_cs_usage"; exit ;;
16985   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16986   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16987     ac_cs_silent=: ;;
16988
16989   # This is an error.
16990   -*) { echo "$as_me: error: unrecognized option: $1
16991 Try \`$0 --help' for more information." >&2
16992    { (exit 1); exit 1; }; } ;;
16993
16994   *) ac_config_targets="$ac_config_targets $1"
16995      ac_need_defaults=false ;;
16996
16997   esac
16998   shift
16999 done
17000
17001 ac_configure_extra_args=
17002
17003 if $ac_cs_silent; then
17004   exec 6>/dev/null
17005   ac_configure_extra_args="$ac_configure_extra_args --silent"
17006 fi
17007
17008 _ACEOF
17009 cat >>$CONFIG_STATUS <<_ACEOF
17010 if \$ac_cs_recheck; then
17011   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17012   CONFIG_SHELL=$SHELL
17013   export CONFIG_SHELL
17014   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17015 fi
17016
17017 _ACEOF
17018 cat >>$CONFIG_STATUS <<\_ACEOF
17019 exec 5>>config.log
17020 {
17021   echo
17022   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17023 ## Running $as_me. ##
17024 _ASBOX
17025   echo "$ac_log"
17026 } >&5
17027
17028 _ACEOF
17029 cat >>$CONFIG_STATUS <<_ACEOF
17030 #
17031 # INIT-COMMANDS
17032 #
17033 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17034     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17035     # from automake.
17036     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17037     # Capture the value of LINGUAS because we need it to compute CATALOGS.
17038     LINGUAS="${LINGUAS-%UNSET%}"
17039
17040 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17041
17042 _ACEOF
17043
17044 cat >>$CONFIG_STATUS <<\_ACEOF
17045
17046 # Handling of arguments.
17047 for ac_config_target in $ac_config_targets
17048 do
17049   case $ac_config_target in
17050     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17051     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17052     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17053     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17054     "abook.spec") CONFIG_FILES="$CONFIG_FILES abook.spec" ;;
17055     "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
17056     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17057
17058   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17059 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17060    { (exit 1); exit 1; }; };;
17061   esac
17062 done
17063
17064
17065 # If the user did not use the arguments to specify the items to instantiate,
17066 # then the envvar interface is used.  Set only those that are not.
17067 # We use the long form for the default assignment because of an extremely
17068 # bizarre bug on SunOS 4.1.3.
17069 if $ac_need_defaults; then
17070   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17071   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17072   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17073 fi
17074
17075 # Have a temporary directory for convenience.  Make it in the build tree
17076 # simply because there is no reason against having it here, and in addition,
17077 # creating and moving files from /tmp can sometimes cause problems.
17078 # Hook for its removal unless debugging.
17079 # Note that there is a small window in which the directory will not be cleaned:
17080 # after its creation but before its name has been assigned to `$tmp'.
17081 $debug ||
17082 {
17083   tmp=
17084   trap 'exit_status=$?
17085   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17086 ' 0
17087   trap '{ (exit 1); exit 1; }' 1 2 13 15
17088 }
17089 # Create a (secure) tmp directory for tmp files.
17090
17091 {
17092   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17093   test -n "$tmp" && test -d "$tmp"
17094 }  ||
17095 {
17096   tmp=./conf$$-$RANDOM
17097   (umask 077 && mkdir "$tmp")
17098 } ||
17099 {
17100    echo "$me: cannot create a temporary directory in ." >&2
17101    { (exit 1); exit 1; }
17102 }
17103
17104 #
17105 # Set up the sed scripts for CONFIG_FILES section.
17106 #
17107
17108 # No need to generate the scripts if there are no CONFIG_FILES.
17109 # This happens for instance when ./config.status config.h
17110 if test -n "$CONFIG_FILES"; then
17111
17112 _ACEOF
17113
17114
17115
17116 ac_delim='%!_!# '
17117 for ac_last_try in false false false false false :; do
17118   cat >conf$$subs.sed <<_ACEOF
17119 SHELL!$SHELL$ac_delim
17120 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
17121 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
17122 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
17123 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
17124 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
17125 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
17126 exec_prefix!$exec_prefix$ac_delim
17127 prefix!$prefix$ac_delim
17128 program_transform_name!$program_transform_name$ac_delim
17129 bindir!$bindir$ac_delim
17130 sbindir!$sbindir$ac_delim
17131 libexecdir!$libexecdir$ac_delim
17132 datarootdir!$datarootdir$ac_delim
17133 datadir!$datadir$ac_delim
17134 sysconfdir!$sysconfdir$ac_delim
17135 sharedstatedir!$sharedstatedir$ac_delim
17136 localstatedir!$localstatedir$ac_delim
17137 includedir!$includedir$ac_delim
17138 oldincludedir!$oldincludedir$ac_delim
17139 docdir!$docdir$ac_delim
17140 infodir!$infodir$ac_delim
17141 htmldir!$htmldir$ac_delim
17142 dvidir!$dvidir$ac_delim
17143 pdfdir!$pdfdir$ac_delim
17144 psdir!$psdir$ac_delim
17145 libdir!$libdir$ac_delim
17146 localedir!$localedir$ac_delim
17147 mandir!$mandir$ac_delim
17148 DEFS!$DEFS$ac_delim
17149 ECHO_C!$ECHO_C$ac_delim
17150 ECHO_N!$ECHO_N$ac_delim
17151 ECHO_T!$ECHO_T$ac_delim
17152 LIBS!$LIBS$ac_delim
17153 build_alias!$build_alias$ac_delim
17154 host_alias!$host_alias$ac_delim
17155 target_alias!$target_alias$ac_delim
17156 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
17157 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
17158 INSTALL_DATA!$INSTALL_DATA$ac_delim
17159 CYGPATH_W!$CYGPATH_W$ac_delim
17160 PACKAGE!$PACKAGE$ac_delim
17161 VERSION!$VERSION$ac_delim
17162 ACLOCAL!$ACLOCAL$ac_delim
17163 AUTOCONF!$AUTOCONF$ac_delim
17164 AUTOMAKE!$AUTOMAKE$ac_delim
17165 AUTOHEADER!$AUTOHEADER$ac_delim
17166 MAKEINFO!$MAKEINFO$ac_delim
17167 install_sh!$install_sh$ac_delim
17168 STRIP!$STRIP$ac_delim
17169 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
17170 mkdir_p!$mkdir_p$ac_delim
17171 AWK!$AWK$ac_delim
17172 SET_MAKE!$SET_MAKE$ac_delim
17173 am__leading_dot!$am__leading_dot$ac_delim
17174 AMTAR!$AMTAR$ac_delim
17175 am__tar!$am__tar$ac_delim
17176 am__untar!$am__untar$ac_delim
17177 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
17178 USE_NLS!$USE_NLS$ac_delim
17179 MSGFMT!$MSGFMT$ac_delim
17180 GMSGFMT!$GMSGFMT$ac_delim
17181 XGETTEXT!$XGETTEXT$ac_delim
17182 MSGMERGE!$MSGMERGE$ac_delim
17183 CC!$CC$ac_delim
17184 CFLAGS!$CFLAGS$ac_delim
17185 LDFLAGS!$LDFLAGS$ac_delim
17186 CPPFLAGS!$CPPFLAGS$ac_delim
17187 ac_ct_CC!$ac_ct_CC$ac_delim
17188 EXEEXT!$EXEEXT$ac_delim
17189 OBJEXT!$OBJEXT$ac_delim
17190 DEPDIR!$DEPDIR$ac_delim
17191 am__include!$am__include$ac_delim
17192 am__quote!$am__quote$ac_delim
17193 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
17194 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
17195 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
17196 CCDEPMODE!$CCDEPMODE$ac_delim
17197 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
17198 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
17199 build!$build$ac_delim
17200 build_cpu!$build_cpu$ac_delim
17201 build_vendor!$build_vendor$ac_delim
17202 build_os!$build_os$ac_delim
17203 host!$host$ac_delim
17204 host_cpu!$host_cpu$ac_delim
17205 host_vendor!$host_vendor$ac_delim
17206 host_os!$host_os$ac_delim
17207 CPP!$CPP$ac_delim
17208 GREP!$GREP$ac_delim
17209 EGREP!$EGREP$ac_delim
17210 GLIBC2!$GLIBC2$ac_delim
17211 RANLIB!$RANLIB$ac_delim
17212 ALLOCA!$ALLOCA$ac_delim
17213 GLIBC21!$GLIBC21$ac_delim
17214 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
17215 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
17216 _ACEOF
17217
17218   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
17219     break
17220   elif $ac_last_try; then
17221     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17222 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17223    { (exit 1); exit 1; }; }
17224   else
17225     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17226   fi
17227 done
17228
17229 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17230 if test -n "$ac_eof"; then
17231   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17232   ac_eof=`expr $ac_eof + 1`
17233 fi
17234
17235 cat >>$CONFIG_STATUS <<_ACEOF
17236 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
17237 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17238 _ACEOF
17239 sed '
17240 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17241 s/^/s,@/; s/!/@,|#_!!_#|/
17242 :n
17243 t n
17244 s/'"$ac_delim"'$/,g/; t
17245 s/$/\\/; p
17246 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17247 ' >>$CONFIG_STATUS <conf$$subs.sed
17248 rm -f conf$$subs.sed
17249 cat >>$CONFIG_STATUS <<_ACEOF
17250 CEOF$ac_eof
17251 _ACEOF
17252
17253
17254 ac_delim='%!_!# '
17255 for ac_last_try in false false false false false :; do
17256   cat >conf$$subs.sed <<_ACEOF
17257 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
17258 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
17259 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
17260 LIBICONV!$LIBICONV$ac_delim
17261 LTLIBICONV!$LTLIBICONV$ac_delim
17262 INTLBISON!$INTLBISON$ac_delim
17263 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
17264 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
17265 CATOBJEXT!$CATOBJEXT$ac_delim
17266 DATADIRNAME!$DATADIRNAME$ac_delim
17267 INSTOBJEXT!$INSTOBJEXT$ac_delim
17268 GENCAT!$GENCAT$ac_delim
17269 INTLOBJS!$INTLOBJS$ac_delim
17270 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
17271 INTLLIBS!$INTLLIBS$ac_delim
17272 LIBINTL!$LIBINTL$ac_delim
17273 LTLIBINTL!$LTLIBINTL$ac_delim
17274 POSUB!$POSUB$ac_delim
17275 USE_INCLUDED_INTL_H_TRUE!$USE_INCLUDED_INTL_H_TRUE$ac_delim
17276 USE_INCLUDED_INTL_H_FALSE!$USE_INCLUDED_INTL_H_FALSE$ac_delim
17277 U!$U$ac_delim
17278 ANSI2KNR!$ANSI2KNR$ac_delim
17279 LIBOBJS!$LIBOBJS$ac_delim
17280 LTLIBOBJS!$LTLIBOBJS$ac_delim
17281 _ACEOF
17282
17283   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
17284     break
17285   elif $ac_last_try; then
17286     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17287 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17288    { (exit 1); exit 1; }; }
17289   else
17290     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17291   fi
17292 done
17293
17294 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
17295 if test -n "$ac_eof"; then
17296   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
17297   ac_eof=`expr $ac_eof + 1`
17298 fi
17299
17300 cat >>$CONFIG_STATUS <<_ACEOF
17301 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
17302 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
17303 _ACEOF
17304 sed '
17305 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
17306 s/^/s,@/; s/!/@,|#_!!_#|/
17307 :n
17308 t n
17309 s/'"$ac_delim"'$/,g/; t
17310 s/$/\\/; p
17311 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
17312 ' >>$CONFIG_STATUS <conf$$subs.sed
17313 rm -f conf$$subs.sed
17314 cat >>$CONFIG_STATUS <<_ACEOF
17315 :end
17316 s/|#_!!_#|//g
17317 CEOF$ac_eof
17318 _ACEOF
17319
17320
17321 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17322 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17323 # trailing colons and then remove the whole line if VPATH becomes empty
17324 # (actually we leave an empty line to preserve line numbers).
17325 if test "x$srcdir" = x.; then
17326   ac_vpsub='/^[  ]*VPATH[        ]*=/{
17327 s/:*\$(srcdir):*/:/
17328 s/:*\${srcdir}:*/:/
17329 s/:*@srcdir@:*/:/
17330 s/^\([^=]*=[     ]*\):*/\1/
17331 s/:*$//
17332 s/^[^=]*=[       ]*$//
17333 }'
17334 fi
17335
17336 cat >>$CONFIG_STATUS <<\_ACEOF
17337 fi # test -n "$CONFIG_FILES"
17338
17339
17340 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
17341 do
17342   case $ac_tag in
17343   :[FHLC]) ac_mode=$ac_tag; continue;;
17344   esac
17345   case $ac_mode$ac_tag in
17346   :[FHL]*:*);;
17347   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
17348 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
17349    { (exit 1); exit 1; }; };;
17350   :[FH]-) ac_tag=-:-;;
17351   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17352   esac
17353   ac_save_IFS=$IFS
17354   IFS=:
17355   set x $ac_tag
17356   IFS=$ac_save_IFS
17357   shift
17358   ac_file=$1
17359   shift
17360
17361   case $ac_mode in
17362   :L) ac_source=$1;;
17363   :[FH])
17364     ac_file_inputs=
17365     for ac_f
17366     do
17367       case $ac_f in
17368       -) ac_f="$tmp/stdin";;
17369       *) # Look for the file first in the build tree, then in the source tree
17370          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17371          # because $ac_f cannot contain `:'.
17372          test -f "$ac_f" ||
17373            case $ac_f in
17374            [\\/$]*) false;;
17375            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17376            esac ||
17377            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17378 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
17379    { (exit 1); exit 1; }; };;
17380       esac
17381       ac_file_inputs="$ac_file_inputs $ac_f"
17382     done
17383
17384     # Let's still pretend it is `configure' which instantiates (i.e., don't
17385     # use $as_me), people would be surprised to read:
17386     #    /* config.h.  Generated by config.status.  */
17387     configure_input="Generated from "`IFS=:
17388           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
17389     if test x"$ac_file" != x-; then
17390       configure_input="$ac_file.  $configure_input"
17391       { echo "$as_me:$LINENO: creating $ac_file" >&5
17392 echo "$as_me: creating $ac_file" >&6;}
17393     fi
17394
17395     case $ac_tag in
17396     *:-:* | *:-) cat >"$tmp/stdin";;
17397     esac
17398     ;;
17399   esac
17400
17401   ac_dir=`$as_dirname -- "$ac_file" ||
17402 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17403          X"$ac_file" : 'X\(//\)[^/]' \| \
17404          X"$ac_file" : 'X\(//\)$' \| \
17405          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17406 echo X"$ac_file" |
17407     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17408             s//\1/
17409             q
17410           }
17411           /^X\(\/\/\)[^/].*/{
17412             s//\1/
17413             q
17414           }
17415           /^X\(\/\/\)$/{
17416             s//\1/
17417             q
17418           }
17419           /^X\(\/\).*/{
17420             s//\1/
17421             q
17422           }
17423           s/.*/./; q'`
17424   { as_dir="$ac_dir"
17425   case $as_dir in #(
17426   -*) as_dir=./$as_dir;;
17427   esac
17428   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17429     as_dirs=
17430     while :; do
17431       case $as_dir in #(
17432       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17433       *) as_qdir=$as_dir;;
17434       esac
17435       as_dirs="'$as_qdir' $as_dirs"
17436       as_dir=`$as_dirname -- "$as_dir" ||
17437 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17438          X"$as_dir" : 'X\(//\)[^/]' \| \
17439          X"$as_dir" : 'X\(//\)$' \| \
17440          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17441 echo X"$as_dir" |
17442     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17443             s//\1/
17444             q
17445           }
17446           /^X\(\/\/\)[^/].*/{
17447             s//\1/
17448             q
17449           }
17450           /^X\(\/\/\)$/{
17451             s//\1/
17452             q
17453           }
17454           /^X\(\/\).*/{
17455             s//\1/
17456             q
17457           }
17458           s/.*/./; q'`
17459       test -d "$as_dir" && break
17460     done
17461     test -z "$as_dirs" || eval "mkdir $as_dirs"
17462   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17463 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17464    { (exit 1); exit 1; }; }; }
17465   ac_builddir=.
17466
17467 case "$ac_dir" in
17468 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17469 *)
17470   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17471   # A ".." for each directory in $ac_dir_suffix.
17472   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
17473   case $ac_top_builddir_sub in
17474   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17475   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17476   esac ;;
17477 esac
17478 ac_abs_top_builddir=$ac_pwd
17479 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17480 # for backward compatibility:
17481 ac_top_builddir=$ac_top_build_prefix
17482
17483 case $srcdir in
17484   .)  # We are building in place.
17485     ac_srcdir=.
17486     ac_top_srcdir=$ac_top_builddir_sub
17487     ac_abs_top_srcdir=$ac_pwd ;;
17488   [\\/]* | ?:[\\/]* )  # Absolute name.
17489     ac_srcdir=$srcdir$ac_dir_suffix;
17490     ac_top_srcdir=$srcdir
17491     ac_abs_top_srcdir=$srcdir ;;
17492   *) # Relative name.
17493     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17494     ac_top_srcdir=$ac_top_build_prefix$srcdir
17495     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17496 esac
17497 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17498
17499
17500   case $ac_mode in
17501   :F)
17502   #
17503   # CONFIG_FILE
17504   #
17505
17506   case $INSTALL in
17507   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17508   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17509   esac
17510 _ACEOF
17511
17512 cat >>$CONFIG_STATUS <<\_ACEOF
17513 # If the template does not know about datarootdir, expand it.
17514 # FIXME: This hack should be removed a few years after 2.60.
17515 ac_datarootdir_hack=; ac_datarootdir_seen=
17516
17517 case `sed -n '/datarootdir/ {
17518   p
17519   q
17520 }
17521 /@datadir@/p
17522 /@docdir@/p
17523 /@infodir@/p
17524 /@localedir@/p
17525 /@mandir@/p
17526 ' $ac_file_inputs` in
17527 *datarootdir*) ac_datarootdir_seen=yes;;
17528 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17529   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17530 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17531 _ACEOF
17532 cat >>$CONFIG_STATUS <<_ACEOF
17533   ac_datarootdir_hack='
17534   s&@datadir@&$datadir&g
17535   s&@docdir@&$docdir&g
17536   s&@infodir@&$infodir&g
17537   s&@localedir@&$localedir&g
17538   s&@mandir@&$mandir&g
17539     s&\\\${datarootdir}&$datarootdir&g' ;;
17540 esac
17541 _ACEOF
17542
17543 # Neutralize VPATH when `$srcdir' = `.'.
17544 # Shell code in configure.ac might set extrasub.
17545 # FIXME: do we really want to maintain this feature?
17546 cat >>$CONFIG_STATUS <<_ACEOF
17547   sed "$ac_vpsub
17548 $extrasub
17549 _ACEOF
17550 cat >>$CONFIG_STATUS <<\_ACEOF
17551 :t
17552 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17553 s&@configure_input@&$configure_input&;t t
17554 s&@top_builddir@&$ac_top_builddir_sub&;t t
17555 s&@srcdir@&$ac_srcdir&;t t
17556 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17557 s&@top_srcdir@&$ac_top_srcdir&;t t
17558 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17559 s&@builddir@&$ac_builddir&;t t
17560 s&@abs_builddir@&$ac_abs_builddir&;t t
17561 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17562 s&@INSTALL@&$ac_INSTALL&;t t
17563 $ac_datarootdir_hack
17564 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
17565
17566 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17567   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17568   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
17569   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17570 which seems to be undefined.  Please make sure it is defined." >&5
17571 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17572 which seems to be undefined.  Please make sure it is defined." >&2;}
17573
17574   rm -f "$tmp/stdin"
17575   case $ac_file in
17576   -) cat "$tmp/out"; rm -f "$tmp/out";;
17577   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
17578   esac
17579  ;;
17580   :H)
17581   #
17582   # CONFIG_HEADER
17583   #
17584 _ACEOF
17585
17586 # Transform confdefs.h into a sed script `conftest.defines', that
17587 # substitutes the proper values into config.h.in to produce config.h.
17588 rm -f conftest.defines conftest.tail
17589 # First, append a space to every undef/define line, to ease matching.
17590 echo 's/$/ /' >conftest.defines
17591 # Then, protect against being on the right side of a sed subst, or in
17592 # an unquoted here document, in config.status.  If some macros were
17593 # called several times there might be several #defines for the same
17594 # symbol, which is useless.  But do not sort them, since the last
17595 # AC_DEFINE must be honored.
17596 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17597 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
17598 # NAME is the cpp macro being defined, VALUE is the value it is being given.
17599 # PARAMS is the parameter list in the macro definition--in most cases, it's
17600 # just an empty string.
17601 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
17602 ac_dB='\\)[      (].*,\\1define\\2'
17603 ac_dC=' '
17604 ac_dD=' ,'
17605
17606 uniq confdefs.h |
17607   sed -n '
17608         t rset
17609         :rset
17610         s/^[     ]*#[    ]*define[       ][      ]*//
17611         t ok
17612         d
17613         :ok
17614         s/[\\&,]/\\&/g
17615         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
17616         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
17617   ' >>conftest.defines
17618
17619 # Remove the space that was appended to ease matching.
17620 # Then replace #undef with comments.  This is necessary, for
17621 # example, in the case of _POSIX_SOURCE, which is predefined and required
17622 # on some systems where configure will not decide to define it.
17623 # (The regexp can be short, since the line contains either #define or #undef.)
17624 echo 's/ $//
17625 s,^[     #]*u.*,/* & */,' >>conftest.defines
17626
17627 # Break up conftest.defines:
17628 ac_max_sed_lines=50
17629
17630 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
17631 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
17632 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
17633 # et cetera.
17634 ac_in='$ac_file_inputs'
17635 ac_out='"$tmp/out1"'
17636 ac_nxt='"$tmp/out2"'
17637
17638 while :
17639 do
17640   # Write a here document:
17641     cat >>$CONFIG_STATUS <<_ACEOF
17642     # First, check the format of the line:
17643     cat >"\$tmp/defines.sed" <<\\CEOF
17644 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
17645 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
17646 b
17647 :def
17648 _ACEOF
17649   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
17650   echo 'CEOF
17651     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
17652   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
17653   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
17654   grep . conftest.tail >/dev/null || break
17655   rm -f conftest.defines
17656   mv conftest.tail conftest.defines
17657 done
17658 rm -f conftest.defines conftest.tail
17659
17660 echo "ac_result=$ac_in" >>$CONFIG_STATUS
17661 cat >>$CONFIG_STATUS <<\_ACEOF
17662   if test x"$ac_file" != x-; then
17663     echo "/* $configure_input  */" >"$tmp/config.h"
17664     cat "$ac_result" >>"$tmp/config.h"
17665     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
17666       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17667 echo "$as_me: $ac_file is unchanged" >&6;}
17668     else
17669       rm -f $ac_file
17670       mv "$tmp/config.h" $ac_file
17671     fi
17672   else
17673     echo "/* $configure_input  */"
17674     cat "$ac_result"
17675   fi
17676   rm -f "$tmp/out12"
17677 # Compute $ac_file's index in $config_headers.
17678 _am_stamp_count=1
17679 for _am_header in $config_headers :; do
17680   case $_am_header in
17681     $ac_file | $ac_file:* )
17682       break ;;
17683     * )
17684       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17685   esac
17686 done
17687 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
17688 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17689          X$ac_file : 'X\(//\)[^/]' \| \
17690          X$ac_file : 'X\(//\)$' \| \
17691          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
17692 echo X$ac_file |
17693     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17694             s//\1/
17695             q
17696           }
17697           /^X\(\/\/\)[^/].*/{
17698             s//\1/
17699             q
17700           }
17701           /^X\(\/\/\)$/{
17702             s//\1/
17703             q
17704           }
17705           /^X\(\/\).*/{
17706             s//\1/
17707             q
17708           }
17709           s/.*/./; q'`/stamp-h$_am_stamp_count
17710  ;;
17711
17712   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
17713 echo "$as_me: executing $ac_file commands" >&6;}
17714  ;;
17715   esac
17716
17717
17718   case $ac_file$ac_mode in
17719     "default-1":C)
17720     for ac_file in $CONFIG_FILES; do
17721       # Support "outfile[:infile[:infile...]]"
17722       case "$ac_file" in
17723         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17724       esac
17725       # PO directories have a Makefile.in generated from Makefile.in.in.
17726       case "$ac_file" in */Makefile.in)
17727         # Adjust a relative srcdir.
17728         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17729         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17730         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17731         # In autoconf-2.13 it is called $ac_given_srcdir.
17732         # In autoconf-2.50 it is called $srcdir.
17733         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17734         case "$ac_given_srcdir" in
17735           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17736           /*) top_srcdir="$ac_given_srcdir" ;;
17737           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
17738         esac
17739         # Treat a directory as a PO directory if and only if it has a
17740         # POTFILES.in file. This allows packages to have multiple PO
17741         # directories under different names or in different locations.
17742         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17743           rm -f "$ac_dir/POTFILES"
17744           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17745           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17746           POMAKEFILEDEPS="POTFILES.in"
17747           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
17748           # on $ac_dir but don't depend on user-specified configuration
17749           # parameters.
17750           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17751             # The LINGUAS file contains the set of available languages.
17752             if test -n "$OBSOLETE_ALL_LINGUAS"; then
17753               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17754             fi
17755             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17756             # Hide the ALL_LINGUAS assigment from automake.
17757             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17758             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17759           else
17760             # The set of available languages was given in configure.in.
17761             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17762           fi
17763           # Compute POFILES
17764           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17765           # Compute UPDATEPOFILES
17766           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17767           # Compute DUMMYPOFILES
17768           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17769           # Compute GMOFILES
17770           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
17771           case "$ac_given_srcdir" in
17772             .) srcdirpre= ;;
17773             *) srcdirpre='$(srcdir)/' ;;
17774           esac
17775           POFILES=
17776           UPDATEPOFILES=
17777           DUMMYPOFILES=
17778           GMOFILES=
17779           for lang in $ALL_LINGUAS; do
17780             POFILES="$POFILES $srcdirpre$lang.po"
17781             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17782             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17783             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17784           done
17785           # CATALOGS depends on both $ac_dir and the user's LINGUAS
17786           # environment variable.
17787           INST_LINGUAS=
17788           if test -n "$ALL_LINGUAS"; then
17789             for presentlang in $ALL_LINGUAS; do
17790               useit=no
17791               if test "%UNSET%" != "$LINGUAS"; then
17792                 desiredlanguages="$LINGUAS"
17793               else
17794                 desiredlanguages="$ALL_LINGUAS"
17795               fi
17796               for desiredlang in $desiredlanguages; do
17797                 # Use the presentlang catalog if desiredlang is
17798                 #   a. equal to presentlang, or
17799                 #   b. a variant of presentlang (because in this case,
17800                 #      presentlang can be used as a fallback for messages
17801                 #      which are not translated in the desiredlang catalog).
17802                 case "$desiredlang" in
17803                   "$presentlang"*) useit=yes;;
17804                 esac
17805               done
17806               if test $useit = yes; then
17807                 INST_LINGUAS="$INST_LINGUAS $presentlang"
17808               fi
17809             done
17810           fi
17811           CATALOGS=
17812           if test -n "$INST_LINGUAS"; then
17813             for lang in $INST_LINGUAS; do
17814               CATALOGS="$CATALOGS $lang.gmo"
17815             done
17816           fi
17817           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17818           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17819         fi
17820         ;;
17821       esac
17822     done ;;
17823     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
17824   # Strip MF so we end up with the name of the file.
17825   mf=`echo "$mf" | sed -e 's/:.*$//'`
17826   # Check whether this is an Automake generated Makefile or not.
17827   # We used to match only the files named `Makefile.in', but
17828   # some people rename them; so instead we look at the file content.
17829   # Grep'ing the first line is not enough: some people post-process
17830   # each Makefile.in and add a new line on top of each file to say so.
17831   # So let's grep whole file.
17832   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
17833     dirpart=`$as_dirname -- "$mf" ||
17834 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17835          X"$mf" : 'X\(//\)[^/]' \| \
17836          X"$mf" : 'X\(//\)$' \| \
17837          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17838 echo X"$mf" |
17839     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17840             s//\1/
17841             q
17842           }
17843           /^X\(\/\/\)[^/].*/{
17844             s//\1/
17845             q
17846           }
17847           /^X\(\/\/\)$/{
17848             s//\1/
17849             q
17850           }
17851           /^X\(\/\).*/{
17852             s//\1/
17853             q
17854           }
17855           s/.*/./; q'`
17856   else
17857     continue
17858   fi
17859   # Extract the definition of DEPDIR, am__include, and am__quote
17860   # from the Makefile without running `make'.
17861   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17862   test -z "$DEPDIR" && continue
17863   am__include=`sed -n 's/^am__include = //p' < "$mf"`
17864   test -z "am__include" && continue
17865   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17866   # When using ansi2knr, U may be empty or an underscore; expand it
17867   U=`sed -n 's/^U = //p' < "$mf"`
17868   # Find all dependency output files, they are included files with
17869   # $(DEPDIR) in their names.  We invoke sed twice because it is the
17870   # simplest approach to changing $(DEPDIR) to its actual value in the
17871   # expansion.
17872   for file in `sed -n "
17873     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17874        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17875     # Make sure the directory exists.
17876     test -f "$dirpart/$file" && continue
17877     fdir=`$as_dirname -- "$file" ||
17878 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17879          X"$file" : 'X\(//\)[^/]' \| \
17880          X"$file" : 'X\(//\)$' \| \
17881          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17882 echo X"$file" |
17883     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17884             s//\1/
17885             q
17886           }
17887           /^X\(\/\/\)[^/].*/{
17888             s//\1/
17889             q
17890           }
17891           /^X\(\/\/\)$/{
17892             s//\1/
17893             q
17894           }
17895           /^X\(\/\).*/{
17896             s//\1/
17897             q
17898           }
17899           s/.*/./; q'`
17900     { as_dir=$dirpart/$fdir
17901   case $as_dir in #(
17902   -*) as_dir=./$as_dir;;
17903   esac
17904   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
17905     as_dirs=
17906     while :; do
17907       case $as_dir in #(
17908       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
17909       *) as_qdir=$as_dir;;
17910       esac
17911       as_dirs="'$as_qdir' $as_dirs"
17912       as_dir=`$as_dirname -- "$as_dir" ||
17913 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17914          X"$as_dir" : 'X\(//\)[^/]' \| \
17915          X"$as_dir" : 'X\(//\)$' \| \
17916          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17917 echo X"$as_dir" |
17918     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17919             s//\1/
17920             q
17921           }
17922           /^X\(\/\/\)[^/].*/{
17923             s//\1/
17924             q
17925           }
17926           /^X\(\/\/\)$/{
17927             s//\1/
17928             q
17929           }
17930           /^X\(\/\).*/{
17931             s//\1/
17932             q
17933           }
17934           s/.*/./; q'`
17935       test -d "$as_dir" && break
17936     done
17937     test -z "$as_dirs" || eval "mkdir $as_dirs"
17938   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17939 echo "$as_me: error: cannot create directory $as_dir" >&2;}
17940    { (exit 1); exit 1; }; }; }
17941     # echo "creating $dirpart/$file"
17942     echo '# dummy' > "$dirpart/$file"
17943   done
17944 done
17945  ;;
17946
17947   esac
17948 done # for ac_tag
17949
17950
17951 { (exit 0); exit 0; }
17952 _ACEOF
17953 chmod +x $CONFIG_STATUS
17954 ac_clean_files=$ac_clean_files_save
17955
17956
17957 # configure is writing to config.log, and then calls config.status.
17958 # config.status does its own redirection, appending to config.log.
17959 # Unfortunately, on DOS this fails, as config.log is still kept open
17960 # by configure, so config.status won't be able to write to it; its
17961 # output is simply discarded.  So we exec the FD to /dev/null,
17962 # effectively closing config.log, so it can be properly (re)opened and
17963 # appended to by config.status.  When coming back to configure, we
17964 # need to make the FD available again.
17965 if test "$no_create" != yes; then
17966   ac_cs_success=:
17967   ac_config_status_args=
17968   test "$silent" = yes &&
17969     ac_config_status_args="$ac_config_status_args --quiet"
17970   exec 5>/dev/null
17971   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17972   exec 5>>config.log
17973   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17974   # would make configure fail if this is the last instruction.
17975   $ac_cs_success || { (exit 1); exit 1; }
17976 fi
17977
17978