]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Tweak bat
[bacula/bacula] / bacula / 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="src/version.h"
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 BUILD_DIR
639 TOP_DIR
640 TRUEPRG
641 FALSEPRG
642 VERSION
643 DATE
644 LSMDATE
645 CC
646 CFLAGS
647 LDFLAGS
648 CPPFLAGS
649 ac_ct_CC
650 EXEEXT
651 OBJEXT
652 CXX
653 CXXFLAGS
654 ac_ct_CXX
655 CPP
656 GREP
657 EGREP
658 INSTALL_PROGRAM
659 INSTALL_SCRIPT
660 INSTALL_DATA
661 RANLIB
662 MV
663 RM
664 CP
665 SED
666 ECHO
667 CMP
668 TBL
669 AR
670 OPENSSL
671 MTX
672 DD
673 MKISOFS
674 PYTHON
675 GROWISOFS
676 DVDRWMEDIAINFO
677 DVDRWFORMAT
678 PKGCONFIG
679 WXCONFIG
680 WXFLAGS
681 CDRECORD
682 PIDOF
683 AWK
684 ARFLAGS
685 MAKE_SHELL
686 LOCAL_LIBS
687 LOCAL_CFLAGS
688 LOCAL_LDFLAGS
689 LOCAL_DEFS
690 build
691 build_cpu
692 build_vendor
693 build_os
694 host
695 host_cpu
696 host_vendor
697 host_os
698 HAVE_SUN_OS_TRUE
699 HAVE_SUN_OS_FALSE
700 HAVE_OSF1_OS_TRUE
701 HAVE_OSF1_OS_FALSE
702 HAVE_AIX_OS_TRUE
703 HAVE_AIX_OS_FALSE
704 HAVE_HPUX_OS_TRUE
705 HAVE_HPUX_OS_FALSE
706 HAVE_LINUX_OS_TRUE
707 HAVE_LINUX_OS_FALSE
708 HAVE_FREEBSD_OS_TRUE
709 HAVE_FREEBSD_OS_FALSE
710 HAVE_NETBSD_OS_TRUE
711 HAVE_NETBSD_OS_FALSE
712 HAVE_OPENBSD_OS_TRUE
713 HAVE_OPENBSD_OS_FALSE
714 HAVE_BSDI_OS_TRUE
715 HAVE_BSDI_OS_FALSE
716 HAVE_SGI_OS_TRUE
717 HAVE_SGI_OS_FALSE
718 HAVE_IRIX_OS_TRUE
719 HAVE_IRIX_OS_FALSE
720 HAVE_DARWIN_OS_TRUE
721 HAVE_DARWIN_OS_FALSE
722 SET_MAKE
723 MKINSTALLDIRS
724 USE_NLS
725 MSGFMT
726 GMSGFMT
727 XGETTEXT
728 MSGMERGE
729 INTL_MACOSX_LIBS
730 LIBICONV
731 LTLIBICONV
732 INTLLIBS
733 LIBINTL
734 LTLIBINTL
735 POSUB
736 GLIBC2
737 ALLOCA
738 GLIBC21
739 HAVE_POSIX_PRINTF
740 HAVE_ASPRINTF
741 HAVE_SNPRINTF
742 HAVE_WPRINTF
743 INTLBISON
744 BUILD_INCLUDED_LIBINTL
745 USE_INCLUDED_LIBINTL
746 CATOBJEXT
747 DATADIRNAME
748 INSTOBJEXT
749 GENCAT
750 INTLOBJS
751 INTL_LIBTOOL_SUFFIX_PREFIX
752 GNOME_INCLUDEDIR
753 GNOMEUI_LIBS
754 GNOME_LIBDIR
755 GNOME_LIBS
756 GNOME_DIR
757 BAT_DIR
758 WXCONS_CPPFLAGS
759 WXCONS_LDFLAGS
760 WX_DIR
761 TRAY_MONITOR_CPPFLAGS
762 TRAY_MONITOR_LDFLAGS
763 TRAY_MONITOR_DIR
764 TTOOL_LDFLAGS
765 STATIC_FD
766 STATIC_SD
767 STATIC_DIR
768 STATIC_CONS
769 STATIC_GNOME_CONS
770 STATIC_WX_CONS
771 ALL_DIRS
772 DIRD_DIR
773 DIR_TOOLS
774 STORED_DIR
775 CONS_INC
776 CONS_OBJ
777 CONS_SRC
778 CONS_LIBS
779 CONS_LDFLAGS
780 READLINE_SRC
781 PYTHON_LIBS
782 PYTHON_INCDIR
783 OPENSSL_LIBS
784 OPENSSL_INC
785 working_dir
786 scriptdir
787 dump_email
788 job_email
789 smtp_host
790 piddir
791 subsysdir
792 baseport
793 dir_port
794 fd_port
795 sd_port
796 dir_password
797 fd_password
798 sd_password
799 mon_dir_password
800 mon_fd_password
801 mon_sd_password
802 db_name
803 db_user
804 dir_user
805 dir_group
806 sd_user
807 sd_group
808 fd_user
809 fd_group
810 SBINPERM
811 SQL_LFLAGS
812 SQL_INCLUDE
813 SQL_BINDIR
814 cats
815 DB_TYPE
816 GETCONF
817 XMKMF
818 X_CFLAGS
819 X_PRE_LIBS
820 X_LIBS
821 X_EXTRA_LIBS
822 LIBOBJS
823 FDLIBS
824 DEBUG
825 DINCLUDE
826 DLIB
827 DB_LIBS
828 WCFLAGS
829 WLDFLAGS
830 WRAPLIBS
831 OBJLIST
832 hostname
833 TAPEDRIVE
834 PSCMD
835 WIN32
836 MACOSX
837 DISTNAME
838 DISTVER
839 LTLIBOBJS'
840 ac_subst_files='MCOMMON'
841       ac_precious_vars='build_alias
842 host_alias
843 target_alias
844 CC
845 CFLAGS
846 LDFLAGS
847 CPPFLAGS
848 CXX
849 CXXFLAGS
850 CCC
851 CPP
852 WXCONFIG
853 WXFLAGS
854 XMKMF'
855
856
857 # Initialize some variables set by options.
858 ac_init_help=
859 ac_init_version=false
860 # The variables have the same names as the options, with
861 # dashes changed to underlines.
862 cache_file=/dev/null
863 exec_prefix=NONE
864 no_create=
865 no_recursion=
866 prefix=NONE
867 program_prefix=NONE
868 program_suffix=NONE
869 program_transform_name=s,x,x,
870 silent=
871 site=
872 srcdir=
873 verbose=
874 x_includes=NONE
875 x_libraries=NONE
876
877 # Installation directory options.
878 # These are left unexpanded so users can "make install exec_prefix=/foo"
879 # and all the variables that are supposed to be based on exec_prefix
880 # by default will actually change.
881 # Use braces instead of parens because sh, perl, etc. also accept them.
882 # (The list follows the same order as the GNU Coding Standards.)
883 bindir='${exec_prefix}/bin'
884 sbindir='${exec_prefix}/sbin'
885 libexecdir='${exec_prefix}/libexec'
886 datarootdir='${prefix}/share'
887 datadir='${datarootdir}'
888 sysconfdir='${prefix}/etc'
889 sharedstatedir='${prefix}/com'
890 localstatedir='${prefix}/var'
891 includedir='${prefix}/include'
892 oldincludedir='/usr/include'
893 docdir='${datarootdir}/doc/${PACKAGE}'
894 infodir='${datarootdir}/info'
895 htmldir='${docdir}'
896 dvidir='${docdir}'
897 pdfdir='${docdir}'
898 psdir='${docdir}'
899 libdir='${exec_prefix}/lib'
900 localedir='${datarootdir}/locale'
901 mandir='${datarootdir}/man'
902
903 ac_prev=
904 ac_dashdash=
905 for ac_option
906 do
907   # If the previous option needs an argument, assign it.
908   if test -n "$ac_prev"; then
909     eval $ac_prev=\$ac_option
910     ac_prev=
911     continue
912   fi
913
914   case $ac_option in
915   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
916   *)    ac_optarg=yes ;;
917   esac
918
919   # Accept the important Cygnus configure options, so we can diagnose typos.
920
921   case $ac_dashdash$ac_option in
922   --)
923     ac_dashdash=yes ;;
924
925   -bindir | --bindir | --bindi | --bind | --bin | --bi)
926     ac_prev=bindir ;;
927   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
928     bindir=$ac_optarg ;;
929
930   -build | --build | --buil | --bui | --bu)
931     ac_prev=build_alias ;;
932   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
933     build_alias=$ac_optarg ;;
934
935   -cache-file | --cache-file | --cache-fil | --cache-fi \
936   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
937     ac_prev=cache_file ;;
938   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
939   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
940     cache_file=$ac_optarg ;;
941
942   --config-cache | -C)
943     cache_file=config.cache ;;
944
945   -datadir | --datadir | --datadi | --datad)
946     ac_prev=datadir ;;
947   -datadir=* | --datadir=* | --datadi=* | --datad=*)
948     datadir=$ac_optarg ;;
949
950   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
951   | --dataroo | --dataro | --datar)
952     ac_prev=datarootdir ;;
953   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
954   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
955     datarootdir=$ac_optarg ;;
956
957   -disable-* | --disable-*)
958     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
959     # Reject names that are not valid shell variable names.
960     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
961       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
962    { (exit 1); exit 1; }; }
963     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
964     eval enable_$ac_feature=no ;;
965
966   -docdir | --docdir | --docdi | --doc | --do)
967     ac_prev=docdir ;;
968   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
969     docdir=$ac_optarg ;;
970
971   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
972     ac_prev=dvidir ;;
973   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
974     dvidir=$ac_optarg ;;
975
976   -enable-* | --enable-*)
977     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
978     # Reject names that are not valid shell variable names.
979     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
980       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
981    { (exit 1); exit 1; }; }
982     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
983     eval enable_$ac_feature=\$ac_optarg ;;
984
985   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987   | --exec | --exe | --ex)
988     ac_prev=exec_prefix ;;
989   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991   | --exec=* | --exe=* | --ex=*)
992     exec_prefix=$ac_optarg ;;
993
994   -gas | --gas | --ga | --g)
995     # Obsolete; use --with-gas.
996     with_gas=yes ;;
997
998   -help | --help | --hel | --he | -h)
999     ac_init_help=long ;;
1000   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001     ac_init_help=recursive ;;
1002   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003     ac_init_help=short ;;
1004
1005   -host | --host | --hos | --ho)
1006     ac_prev=host_alias ;;
1007   -host=* | --host=* | --hos=* | --ho=*)
1008     host_alias=$ac_optarg ;;
1009
1010   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011     ac_prev=htmldir ;;
1012   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013   | --ht=*)
1014     htmldir=$ac_optarg ;;
1015
1016   -includedir | --includedir | --includedi | --included | --include \
1017   | --includ | --inclu | --incl | --inc)
1018     ac_prev=includedir ;;
1019   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020   | --includ=* | --inclu=* | --incl=* | --inc=*)
1021     includedir=$ac_optarg ;;
1022
1023   -infodir | --infodir | --infodi | --infod | --info | --inf)
1024     ac_prev=infodir ;;
1025   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026     infodir=$ac_optarg ;;
1027
1028   -libdir | --libdir | --libdi | --libd)
1029     ac_prev=libdir ;;
1030   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031     libdir=$ac_optarg ;;
1032
1033   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034   | --libexe | --libex | --libe)
1035     ac_prev=libexecdir ;;
1036   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037   | --libexe=* | --libex=* | --libe=*)
1038     libexecdir=$ac_optarg ;;
1039
1040   -localedir | --localedir | --localedi | --localed | --locale)
1041     ac_prev=localedir ;;
1042   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043     localedir=$ac_optarg ;;
1044
1045   -localstatedir | --localstatedir | --localstatedi | --localstated \
1046   | --localstate | --localstat | --localsta | --localst | --locals)
1047     ac_prev=localstatedir ;;
1048   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050     localstatedir=$ac_optarg ;;
1051
1052   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053     ac_prev=mandir ;;
1054   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055     mandir=$ac_optarg ;;
1056
1057   -nfp | --nfp | --nf)
1058     # Obsolete; use --without-fp.
1059     with_fp=no ;;
1060
1061   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062   | --no-cr | --no-c | -n)
1063     no_create=yes ;;
1064
1065   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067     no_recursion=yes ;;
1068
1069   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071   | --oldin | --oldi | --old | --ol | --o)
1072     ac_prev=oldincludedir ;;
1073   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076     oldincludedir=$ac_optarg ;;
1077
1078   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079     ac_prev=prefix ;;
1080   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081     prefix=$ac_optarg ;;
1082
1083   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084   | --program-pre | --program-pr | --program-p)
1085     ac_prev=program_prefix ;;
1086   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088     program_prefix=$ac_optarg ;;
1089
1090   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091   | --program-suf | --program-su | --program-s)
1092     ac_prev=program_suffix ;;
1093   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095     program_suffix=$ac_optarg ;;
1096
1097   -program-transform-name | --program-transform-name \
1098   | --program-transform-nam | --program-transform-na \
1099   | --program-transform-n | --program-transform- \
1100   | --program-transform | --program-transfor \
1101   | --program-transfo | --program-transf \
1102   | --program-trans | --program-tran \
1103   | --progr-tra | --program-tr | --program-t)
1104     ac_prev=program_transform_name ;;
1105   -program-transform-name=* | --program-transform-name=* \
1106   | --program-transform-nam=* | --program-transform-na=* \
1107   | --program-transform-n=* | --program-transform-=* \
1108   | --program-transform=* | --program-transfor=* \
1109   | --program-transfo=* | --program-transf=* \
1110   | --program-trans=* | --program-tran=* \
1111   | --progr-tra=* | --program-tr=* | --program-t=*)
1112     program_transform_name=$ac_optarg ;;
1113
1114   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115     ac_prev=pdfdir ;;
1116   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117     pdfdir=$ac_optarg ;;
1118
1119   -psdir | --psdir | --psdi | --psd | --ps)
1120     ac_prev=psdir ;;
1121   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122     psdir=$ac_optarg ;;
1123
1124   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125   | -silent | --silent | --silen | --sile | --sil)
1126     silent=yes ;;
1127
1128   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129     ac_prev=sbindir ;;
1130   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131   | --sbi=* | --sb=*)
1132     sbindir=$ac_optarg ;;
1133
1134   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136   | --sharedst | --shareds | --shared | --share | --shar \
1137   | --sha | --sh)
1138     ac_prev=sharedstatedir ;;
1139   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142   | --sha=* | --sh=*)
1143     sharedstatedir=$ac_optarg ;;
1144
1145   -site | --site | --sit)
1146     ac_prev=site ;;
1147   -site=* | --site=* | --sit=*)
1148     site=$ac_optarg ;;
1149
1150   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151     ac_prev=srcdir ;;
1152   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153     srcdir=$ac_optarg ;;
1154
1155   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156   | --syscon | --sysco | --sysc | --sys | --sy)
1157     ac_prev=sysconfdir ;;
1158   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160     sysconfdir=$ac_optarg ;;
1161
1162   -target | --target | --targe | --targ | --tar | --ta | --t)
1163     ac_prev=target_alias ;;
1164   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165     target_alias=$ac_optarg ;;
1166
1167   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168     verbose=yes ;;
1169
1170   -version | --version | --versio | --versi | --vers | -V)
1171     ac_init_version=: ;;
1172
1173   -with-* | --with-*)
1174     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175     # Reject names that are not valid shell variable names.
1176     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1177       { echo "$as_me: error: invalid package name: $ac_package" >&2
1178    { (exit 1); exit 1; }; }
1179     ac_package=`echo $ac_package| sed 's/-/_/g'`
1180     eval with_$ac_package=\$ac_optarg ;;
1181
1182   -without-* | --without-*)
1183     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184     # Reject names that are not valid shell variable names.
1185     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1186       { echo "$as_me: error: invalid package name: $ac_package" >&2
1187    { (exit 1); exit 1; }; }
1188     ac_package=`echo $ac_package | sed 's/-/_/g'`
1189     eval with_$ac_package=no ;;
1190
1191   --x)
1192     # Obsolete; use --with-x.
1193     with_x=yes ;;
1194
1195   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1196   | --x-incl | --x-inc | --x-in | --x-i)
1197     ac_prev=x_includes ;;
1198   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1199   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1200     x_includes=$ac_optarg ;;
1201
1202   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1203   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1204     ac_prev=x_libraries ;;
1205   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1206   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1207     x_libraries=$ac_optarg ;;
1208
1209   -*) { echo "$as_me: error: unrecognized option: $ac_option
1210 Try \`$0 --help' for more information." >&2
1211    { (exit 1); exit 1; }; }
1212     ;;
1213
1214   *=*)
1215     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1216     # Reject names that are not valid shell variable names.
1217     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1218       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1219    { (exit 1); exit 1; }; }
1220     eval $ac_envvar=\$ac_optarg
1221     export $ac_envvar ;;
1222
1223   *)
1224     # FIXME: should be removed in autoconf 3.0.
1225     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1226     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1227       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1228     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1229     ;;
1230
1231   esac
1232 done
1233
1234 if test -n "$ac_prev"; then
1235   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1236   { echo "$as_me: error: missing argument to $ac_option" >&2
1237    { (exit 1); exit 1; }; }
1238 fi
1239
1240 # Be sure to have absolute directory names.
1241 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242                 datadir sysconfdir sharedstatedir localstatedir includedir \
1243                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244                 libdir localedir mandir
1245 do
1246   eval ac_val=\$$ac_var
1247   case $ac_val in
1248     [\\/$]* | ?:[\\/]* )  continue;;
1249     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1250   esac
1251   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1252    { (exit 1); exit 1; }; }
1253 done
1254
1255 # There might be people who depend on the old broken behavior: `$host'
1256 # used to hold the argument of --host etc.
1257 # FIXME: To remove some day.
1258 build=$build_alias
1259 host=$host_alias
1260 target=$target_alias
1261
1262 # FIXME: To remove some day.
1263 if test "x$host_alias" != x; then
1264   if test "x$build_alias" = x; then
1265     cross_compiling=maybe
1266     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1267     If a cross compiler is detected then cross compile mode will be used." >&2
1268   elif test "x$build_alias" != "x$host_alias"; then
1269     cross_compiling=yes
1270   fi
1271 fi
1272
1273 ac_tool_prefix=
1274 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275
1276 test "$silent" = yes && exec 6>/dev/null
1277
1278
1279 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1280 ac_ls_di=`ls -di .` &&
1281 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1282   { echo "$as_me: error: Working directory cannot be determined" >&2
1283    { (exit 1); exit 1; }; }
1284 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285   { echo "$as_me: error: pwd does not report name of working directory" >&2
1286    { (exit 1); exit 1; }; }
1287
1288
1289 # Find the source files, if location was not specified.
1290 if test -z "$srcdir"; then
1291   ac_srcdir_defaulted=yes
1292   # Try the directory containing this script, then the parent directory.
1293   ac_confdir=`$as_dirname -- "$0" ||
1294 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1295          X"$0" : 'X\(//\)[^/]' \| \
1296          X"$0" : 'X\(//\)$' \| \
1297          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1298 echo X"$0" |
1299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1300             s//\1/
1301             q
1302           }
1303           /^X\(\/\/\)[^/].*/{
1304             s//\1/
1305             q
1306           }
1307           /^X\(\/\/\)$/{
1308             s//\1/
1309             q
1310           }
1311           /^X\(\/\).*/{
1312             s//\1/
1313             q
1314           }
1315           s/.*/./; q'`
1316   srcdir=$ac_confdir
1317   if test ! -r "$srcdir/$ac_unique_file"; then
1318     srcdir=..
1319   fi
1320 else
1321   ac_srcdir_defaulted=no
1322 fi
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1325   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1326    { (exit 1); exit 1; }; }
1327 fi
1328 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1329 ac_abs_confdir=`(
1330         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1331    { (exit 1); exit 1; }; }
1332         pwd)`
1333 # When building in place, set srcdir=.
1334 if test "$ac_abs_confdir" = "$ac_pwd"; then
1335   srcdir=.
1336 fi
1337 # Remove unnecessary trailing slashes from srcdir.
1338 # Double slashes in file names in object file debugging info
1339 # mess up M-x gdb in Emacs.
1340 case $srcdir in
1341 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342 esac
1343 for ac_var in $ac_precious_vars; do
1344   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1345   eval ac_env_${ac_var}_value=\$${ac_var}
1346   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1347   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1348 done
1349
1350 #
1351 # Report the --help message.
1352 #
1353 if test "$ac_init_help" = "long"; then
1354   # Omit some internal or obsolete options to make the list less imposing.
1355   # This message is too long to be a string in the A/UX 3.1 sh.
1356   cat <<_ACEOF
1357 \`configure' configures this package to adapt to many kinds of systems.
1358
1359 Usage: $0 [OPTION]... [VAR=VALUE]...
1360
1361 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1362 VAR=VALUE.  See below for descriptions of some of the useful variables.
1363
1364 Defaults for the options are specified in brackets.
1365
1366 Configuration:
1367   -h, --help              display this help and exit
1368       --help=short        display options specific to this package
1369       --help=recursive    display the short help of all the included packages
1370   -V, --version           display version information and exit
1371   -q, --quiet, --silent   do not print \`checking...' messages
1372       --cache-file=FILE   cache test results in FILE [disabled]
1373   -C, --config-cache      alias for \`--cache-file=config.cache'
1374   -n, --no-create         do not create output files
1375       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1376
1377 Installation directories:
1378   --prefix=PREFIX         install architecture-independent files in PREFIX
1379                           [$ac_default_prefix]
1380   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1381                           [PREFIX]
1382
1383 By default, \`make install' will install all the files in
1384 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1385 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1386 for instance \`--prefix=\$HOME'.
1387
1388 For better control, use the options below.
1389
1390 Fine tuning of the installation directories:
1391   --bindir=DIR           user executables [EPREFIX/bin]
1392   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1393   --libexecdir=DIR       program executables [EPREFIX/libexec]
1394   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1395   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1396   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1397   --libdir=DIR           object code libraries [EPREFIX/lib]
1398   --includedir=DIR       C header files [PREFIX/include]
1399   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1400   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1401   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1402   --infodir=DIR          info documentation [DATAROOTDIR/info]
1403   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1404   --mandir=DIR           man documentation [DATAROOTDIR/man]
1405   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1406   --htmldir=DIR          html documentation [DOCDIR]
1407   --dvidir=DIR           dvi documentation [DOCDIR]
1408   --pdfdir=DIR           pdf documentation [DOCDIR]
1409   --psdir=DIR            ps documentation [DOCDIR]
1410 _ACEOF
1411
1412   cat <<\_ACEOF
1413
1414 X features:
1415   --x-includes=DIR    X include files are in DIR
1416   --x-libraries=DIR   X library files are in DIR
1417
1418 System types:
1419   --build=BUILD     configure for building on BUILD [guessed]
1420   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1421 _ACEOF
1422 fi
1423
1424 if test -n "$ac_init_help"; then
1425
1426   cat <<\_ACEOF
1427
1428 Optional Features:
1429   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1430   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1431   --disable-nls           do not use Native Language Support
1432   --disable-rpath         do not hardcode runtime library paths
1433   --enable-gnome          enable build of bgnome-console GUI disabled
1434   --enable-bat  enable build of bat Qt4 GUI disabled
1435   --enable-bwx-console     enable build of wxWidgets console disabled
1436   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with KDE) disabled
1437   --enable-smartalloc     enable smartalloc debugging support disabled
1438   --enable-static-tools   enable static tape tools disabled
1439   --enable-static-fd      enable static File daemon disabled
1440   --enable-static-sd      enable static Storage daemon disabled
1441   --enable-static-dir     enable static Director disabled
1442   --enable-static-cons    enable static Console disabled
1443   --enable-client-only    build client (File daemon) only disabled
1444   --enable-build-dird     enable building of dird (Director) enabled
1445   --enable-build-stored   enable building of stored (Storage daemon) enabled
1446  --disable-conio disable conio support enabled
1447
1448   --enable-ipv6             enable ipv6 support enabled
1449
1450   --disable-readline      disable readline support disable
1451
1452   --disable-largefile     omit support for large files
1453
1454 Optional Packages:
1455   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1456   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1457   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1458   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1459   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1460   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1461   --without-libintl-prefix     don't search for libintl in includedir and libdir
1462   --with-included-gettext use the GNU gettext library included here
1463  --with-readline[=DIR]         specify readline library directory
1464
1465   --with-python[=DIR]   Include Python support.  DIR is the Python base
1466                           install directory, default is to search through
1467                           a number of common places for the Python files.
1468   --with-tcp-wrappers[=DIR]   enable tcpwrappers support
1469   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1470   --with-working-dir=PATH        specify path of Bacula working directory
1471   --with-scriptdir=PATH    specify path of Bacula scripts directory
1472   --with-dump-email=EMAIL        dump email address
1473   --with-job-email=EMAIL         job output email address
1474   --with-smtp-host=HOST          SMTP mail host address
1475   --with-pid-dir=PATH            specify location of Bacula pid files
1476   --with-subsys-dir=PATH         specify location of Bacula subsys file
1477   --with-baseport=PORT           specify base port address for daemons
1478   --with-dir-password=PASSWORD   specify Director's password
1479   --with-fd-password=PASSWORD    specify Client's password
1480   --with-sd-password=PASSWORD    specify Storage daemon's password
1481   --with-mon-dir-password=PASSWORD       specify Director's password used by the monitor
1482   --with-mon-fd-password=PASSWORD        specify Client's password used by the monitor
1483   --with-mon-sd-password=PASSWORD        specify Storage daemon's password used by the monitor
1484   --with-db-name=DBNAME        specify database name (default bacula)
1485   --with-db-user=UNAME         specify database user (default bacula)
1486   --with-dir-user=USER           specify user for Director daemon
1487   --with-dir-group=GROUP                 specify group for Director daemon
1488   --with-sd-user=USER            specify user for Storage daemon
1489   --with-sd-group=GROUP          specify group for Storage daemon
1490   --with-fd-user=USER            specify user for File daemon
1491   --with-fd-group=GROUP          specify group for File daemon
1492   --with-sbin-perm=MODE          specify permissions for sbin binaries (0754)
1493   --with-postgresql[=DIR]      Include PostgreSQL support.  DIR is the PostgreSQL
1494                           base install directory, defaults to /usr/local/pgsql
1495
1496   --with-mysql[=DIR]      Include MySQL support.  DIR is the MySQL base
1497                           install directory, default is to search through
1498                           a number of common places for the MySQL files.
1499
1500   --with-embedded-mysql[=DIR] Include MySQL support.  DIR is the MySQL base
1501                           install directory, default is to search through
1502                           a number of common places for the MySQL files.
1503
1504   --with-sqlite3[=DIR]    Include SQLite3 support.  DIR is the SQLite3 base
1505                           install directory, default is to search through
1506                           a number of common places for the SQLite3 files.
1507
1508   --with-sqlite[=DIR]     Include SQLite support.  DIR is the SQLite base
1509                           install directory, default is to search through
1510                           a number of common places for the SQLite files.
1511   --with-x                use the X Window System
1512
1513 Some influential environment variables:
1514   CC          C compiler command
1515   CFLAGS      C compiler flags
1516   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1517               nonstandard directory <lib dir>
1518   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1519               you have headers in a nonstandard directory <include dir>
1520   CXX         C++ compiler command
1521   CXXFLAGS    C++ compiler flags
1522   CPP         C preprocessor
1523   WXCONFIG    wx-config command. On some systems, you must set it to
1524               wx-config-2.6 to use wxWidgets 2.6.
1525   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1526   XMKMF       Path to xmkmf, Makefile generator for X Window System
1527
1528 Use these variables to override the choices made by `configure' or to help
1529 it to find libraries and programs with nonstandard names/locations.
1530
1531 _ACEOF
1532 ac_status=$?
1533 fi
1534
1535 if test "$ac_init_help" = "recursive"; then
1536   # If there are subdirs, report their specific --help.
1537   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1538     test -d "$ac_dir" || continue
1539     ac_builddir=.
1540
1541 case "$ac_dir" in
1542 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543 *)
1544   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1545   # A ".." for each directory in $ac_dir_suffix.
1546   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1547   case $ac_top_builddir_sub in
1548   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550   esac ;;
1551 esac
1552 ac_abs_top_builddir=$ac_pwd
1553 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554 # for backward compatibility:
1555 ac_top_builddir=$ac_top_build_prefix
1556
1557 case $srcdir in
1558   .)  # We are building in place.
1559     ac_srcdir=.
1560     ac_top_srcdir=$ac_top_builddir_sub
1561     ac_abs_top_srcdir=$ac_pwd ;;
1562   [\\/]* | ?:[\\/]* )  # Absolute name.
1563     ac_srcdir=$srcdir$ac_dir_suffix;
1564     ac_top_srcdir=$srcdir
1565     ac_abs_top_srcdir=$srcdir ;;
1566   *) # Relative name.
1567     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568     ac_top_srcdir=$ac_top_build_prefix$srcdir
1569     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1570 esac
1571 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1572
1573     cd "$ac_dir" || { ac_status=$?; continue; }
1574     # Check for guested configure.
1575     if test -f "$ac_srcdir/configure.gnu"; then
1576       echo &&
1577       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578     elif test -f "$ac_srcdir/configure"; then
1579       echo &&
1580       $SHELL "$ac_srcdir/configure" --help=recursive
1581     else
1582       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1583     fi || ac_status=$?
1584     cd "$ac_pwd" || { ac_status=$?; break; }
1585   done
1586 fi
1587
1588 test -n "$ac_init_help" && exit $ac_status
1589 if $ac_init_version; then
1590   cat <<\_ACEOF
1591 configure
1592 generated by GNU Autoconf 2.60
1593
1594 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1595 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1596 This configure script is free software; the Free Software Foundation
1597 gives unlimited permission to copy, distribute and modify it.
1598 _ACEOF
1599   exit
1600 fi
1601 cat >config.log <<_ACEOF
1602 This file contains any messages produced by compilers while
1603 running configure, to aid debugging if configure makes a mistake.
1604
1605 It was created by $as_me, which was
1606 generated by GNU Autoconf 2.60.  Invocation command line was
1607
1608   $ $0 $@
1609
1610 _ACEOF
1611 exec 5>>config.log
1612 {
1613 cat <<_ASUNAME
1614 ## --------- ##
1615 ## Platform. ##
1616 ## --------- ##
1617
1618 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1619 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1620 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1621 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1622 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1623
1624 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1625 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1626
1627 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1628 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1629 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1630 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1631 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1632 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1633 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1634
1635 _ASUNAME
1636
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638 for as_dir in $PATH
1639 do
1640   IFS=$as_save_IFS
1641   test -z "$as_dir" && as_dir=.
1642   echo "PATH: $as_dir"
1643 done
1644 IFS=$as_save_IFS
1645
1646 } >&5
1647
1648 cat >&5 <<_ACEOF
1649
1650
1651 ## ----------- ##
1652 ## Core tests. ##
1653 ## ----------- ##
1654
1655 _ACEOF
1656
1657
1658 # Keep a trace of the command line.
1659 # Strip out --no-create and --no-recursion so they do not pile up.
1660 # Strip out --silent because we don't want to record it for future runs.
1661 # Also quote any args containing shell meta-characters.
1662 # Make two passes to allow for proper duplicate-argument suppression.
1663 ac_configure_args=
1664 ac_configure_args0=
1665 ac_configure_args1=
1666 ac_must_keep_next=false
1667 for ac_pass in 1 2
1668 do
1669   for ac_arg
1670   do
1671     case $ac_arg in
1672     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1673     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1674     | -silent | --silent | --silen | --sile | --sil)
1675       continue ;;
1676     *\'*)
1677       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1678     esac
1679     case $ac_pass in
1680     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1681     2)
1682       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1683       if test $ac_must_keep_next = true; then
1684         ac_must_keep_next=false # Got value, back to normal.
1685       else
1686         case $ac_arg in
1687           *=* | --config-cache | -C | -disable-* | --disable-* \
1688           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1689           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1690           | -with-* | --with-* | -without-* | --without-* | --x)
1691             case "$ac_configure_args0 " in
1692               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1693             esac
1694             ;;
1695           -* ) ac_must_keep_next=true ;;
1696         esac
1697       fi
1698       ac_configure_args="$ac_configure_args '$ac_arg'"
1699       ;;
1700     esac
1701   done
1702 done
1703 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1704 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1705
1706 # When interrupted or exit'd, cleanup temporary files, and complete
1707 # config.log.  We remove comments because anyway the quotes in there
1708 # would cause problems or look ugly.
1709 # WARNING: Use '\'' to represent an apostrophe within the trap.
1710 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1711 trap 'exit_status=$?
1712   # Save into config.log some information that might help in debugging.
1713   {
1714     echo
1715
1716     cat <<\_ASBOX
1717 ## ---------------- ##
1718 ## Cache variables. ##
1719 ## ---------------- ##
1720 _ASBOX
1721     echo
1722     # The following way of writing the cache mishandles newlines in values,
1723 (
1724   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1725     eval ac_val=\$$ac_var
1726     case $ac_val in #(
1727     *${as_nl}*)
1728       case $ac_var in #(
1729       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1730 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1731       esac
1732       case $ac_var in #(
1733       _ | IFS | as_nl) ;; #(
1734       *) $as_unset $ac_var ;;
1735       esac ;;
1736     esac
1737   done
1738   (set) 2>&1 |
1739     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1740     *${as_nl}ac_space=\ *)
1741       sed -n \
1742         "s/'\''/'\''\\\\'\'''\''/g;
1743           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1744       ;; #(
1745     *)
1746       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1747       ;;
1748     esac |
1749     sort
1750 )
1751     echo
1752
1753     cat <<\_ASBOX
1754 ## ----------------- ##
1755 ## Output variables. ##
1756 ## ----------------- ##
1757 _ASBOX
1758     echo
1759     for ac_var in $ac_subst_vars
1760     do
1761       eval ac_val=\$$ac_var
1762       case $ac_val in
1763       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1764       esac
1765       echo "$ac_var='\''$ac_val'\''"
1766     done | sort
1767     echo
1768
1769     if test -n "$ac_subst_files"; then
1770       cat <<\_ASBOX
1771 ## ------------------- ##
1772 ## File substitutions. ##
1773 ## ------------------- ##
1774 _ASBOX
1775       echo
1776       for ac_var in $ac_subst_files
1777       do
1778         eval ac_val=\$$ac_var
1779         case $ac_val in
1780         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1781         esac
1782         echo "$ac_var='\''$ac_val'\''"
1783       done | sort
1784       echo
1785     fi
1786
1787     if test -s confdefs.h; then
1788       cat <<\_ASBOX
1789 ## ----------- ##
1790 ## confdefs.h. ##
1791 ## ----------- ##
1792 _ASBOX
1793       echo
1794       cat confdefs.h
1795       echo
1796     fi
1797     test "$ac_signal" != 0 &&
1798       echo "$as_me: caught signal $ac_signal"
1799     echo "$as_me: exit $exit_status"
1800   } >&5
1801   rm -f core *.core core.conftest.* &&
1802     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1803     exit $exit_status
1804 ' 0
1805 for ac_signal in 1 2 13 15; do
1806   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1807 done
1808 ac_signal=0
1809
1810 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1811 rm -f -r conftest* confdefs.h
1812
1813 # Predefined preprocessor variables.
1814
1815 cat >>confdefs.h <<_ACEOF
1816 #define PACKAGE_NAME "$PACKAGE_NAME"
1817 _ACEOF
1818
1819
1820 cat >>confdefs.h <<_ACEOF
1821 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1822 _ACEOF
1823
1824
1825 cat >>confdefs.h <<_ACEOF
1826 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1827 _ACEOF
1828
1829
1830 cat >>confdefs.h <<_ACEOF
1831 #define PACKAGE_STRING "$PACKAGE_STRING"
1832 _ACEOF
1833
1834
1835 cat >>confdefs.h <<_ACEOF
1836 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1837 _ACEOF
1838
1839
1840 # Let the site file select an alternate cache file if it wants to.
1841 # Prefer explicitly selected file to automatically selected ones.
1842 if test -n "$CONFIG_SITE"; then
1843   set x "$CONFIG_SITE"
1844 elif test "x$prefix" != xNONE; then
1845   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1846 else
1847   set x "$ac_default_prefix/share/config.site" \
1848         "$ac_default_prefix/etc/config.site"
1849 fi
1850 shift
1851 for ac_site_file
1852 do
1853   if test -r "$ac_site_file"; then
1854     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1855 echo "$as_me: loading site script $ac_site_file" >&6;}
1856     sed 's/^/| /' "$ac_site_file" >&5
1857     . "$ac_site_file"
1858   fi
1859 done
1860
1861 if test -r "$cache_file"; then
1862   # Some versions of bash will fail to source /dev/null (special
1863   # files actually), so we avoid doing that.
1864   if test -f "$cache_file"; then
1865     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1866 echo "$as_me: loading cache $cache_file" >&6;}
1867     case $cache_file in
1868       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1869       *)                      . "./$cache_file";;
1870     esac
1871   fi
1872 else
1873   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1874 echo "$as_me: creating cache $cache_file" >&6;}
1875   >$cache_file
1876 fi
1877
1878 # Check that the precious variables saved in the cache have kept the same
1879 # value.
1880 ac_cache_corrupted=false
1881 for ac_var in $ac_precious_vars; do
1882   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1883   eval ac_new_set=\$ac_env_${ac_var}_set
1884   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1885   eval ac_new_val=\$ac_env_${ac_var}_value
1886   case $ac_old_set,$ac_new_set in
1887     set,)
1888       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1889 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1890       ac_cache_corrupted=: ;;
1891     ,set)
1892       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1893 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1894       ac_cache_corrupted=: ;;
1895     ,);;
1896     *)
1897       if test "x$ac_old_val" != "x$ac_new_val"; then
1898         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1899 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1900         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1901 echo "$as_me:   former value:  $ac_old_val" >&2;}
1902         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1903 echo "$as_me:   current value: $ac_new_val" >&2;}
1904         ac_cache_corrupted=:
1905       fi;;
1906   esac
1907   # Pass precious variables to config.status.
1908   if test "$ac_new_set" = set; then
1909     case $ac_new_val in
1910     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1911     *) ac_arg=$ac_var=$ac_new_val ;;
1912     esac
1913     case " $ac_configure_args " in
1914       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1915       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1916     esac
1917   fi
1918 done
1919 if $ac_cache_corrupted; then
1920   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1921 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1922   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1923 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1924    { (exit 1); exit 1; }; }
1925 fi
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943 ac_ext=c
1944 ac_cpp='$CPP $CPPFLAGS'
1945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1948
1949
1950 BUILD_DIR=`pwd`
1951 cd ..
1952 TOP_DIR=`pwd`
1953 cd ${BUILD_DIR}
1954
1955
1956 ac_aux_dir=
1957 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1958   if test -f "$ac_dir/install-sh"; then
1959     ac_aux_dir=$ac_dir
1960     ac_install_sh="$ac_aux_dir/install-sh -c"
1961     break
1962   elif test -f "$ac_dir/install.sh"; then
1963     ac_aux_dir=$ac_dir
1964     ac_install_sh="$ac_aux_dir/install.sh -c"
1965     break
1966   elif test -f "$ac_dir/shtool"; then
1967     ac_aux_dir=$ac_dir
1968     ac_install_sh="$ac_aux_dir/shtool install -c"
1969     break
1970   fi
1971 done
1972 if test -z "$ac_aux_dir"; then
1973   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
1974 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
1975    { (exit 1); exit 1; }; }
1976 fi
1977
1978 # These three variables are undocumented and unsupported,
1979 # and are intended to be withdrawn in a future Autoconf release.
1980 # They can cause serious problems if a builder's source tree is in a directory
1981 # whose full name contains unusual characters.
1982 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1983 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1984 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1985
1986
1987 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1988
1989
1990
1991
1992
1993 for ac_prog in true
1994 do
1995   # Extract the first word of "$ac_prog", so it can be a program name with args.
1996 set dummy $ac_prog; ac_word=$2
1997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1999 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2000   echo $ECHO_N "(cached) $ECHO_C" >&6
2001 else
2002   case $TRUEPRG in
2003   [\\/]* | ?:[\\/]*)
2004   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2005   ;;
2006   *)
2007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008 for as_dir in $PATH
2009 do
2010   IFS=$as_save_IFS
2011   test -z "$as_dir" && as_dir=.
2012   for ac_exec_ext in '' $ac_executable_extensions; do
2013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2014     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2015     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2016     break 2
2017   fi
2018 done
2019 done
2020 IFS=$as_save_IFS
2021
2022   ;;
2023 esac
2024 fi
2025 TRUEPRG=$ac_cv_path_TRUEPRG
2026 if test -n "$TRUEPRG"; then
2027   { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2028 echo "${ECHO_T}$TRUEPRG" >&6; }
2029 else
2030   { echo "$as_me:$LINENO: result: no" >&5
2031 echo "${ECHO_T}no" >&6; }
2032 fi
2033
2034
2035   test -n "$TRUEPRG" && break
2036 done
2037 test -n "$TRUEPRG" || TRUEPRG=":"
2038
2039 for ac_prog in false
2040 do
2041   # Extract the first word of "$ac_prog", so it can be a program name with args.
2042 set dummy $ac_prog; ac_word=$2
2043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2045 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2046   echo $ECHO_N "(cached) $ECHO_C" >&6
2047 else
2048   case $FALSEPRG in
2049   [\\/]* | ?:[\\/]*)
2050   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2051   ;;
2052   *)
2053   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054 for as_dir in $PATH
2055 do
2056   IFS=$as_save_IFS
2057   test -z "$as_dir" && as_dir=.
2058   for ac_exec_ext in '' $ac_executable_extensions; do
2059   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2060     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2061     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2062     break 2
2063   fi
2064 done
2065 done
2066 IFS=$as_save_IFS
2067
2068   ;;
2069 esac
2070 fi
2071 FALSEPRG=$ac_cv_path_FALSEPRG
2072 if test -n "$FALSEPRG"; then
2073   { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2074 echo "${ECHO_T}$FALSEPRG" >&6; }
2075 else
2076   { echo "$as_me:$LINENO: result: no" >&5
2077 echo "${ECHO_T}no" >&6; }
2078 fi
2079
2080
2081   test -n "$FALSEPRG" && break
2082 done
2083 test -n "$FALSEPRG" || FALSEPRG=":"
2084
2085
2086 #AC_CANONICAL_HOST
2087
2088 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2089 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2090 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2091 echo "configuring for bacula $VERSION ($DATE)"
2092
2093
2094
2095 ac_ext=c
2096 ac_cpp='$CPP $CPPFLAGS'
2097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2100 if test -n "$ac_tool_prefix"; then
2101   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2102 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2105 if test "${ac_cv_prog_CC+set}" = set; then
2106   echo $ECHO_N "(cached) $ECHO_C" >&6
2107 else
2108   if test -n "$CC"; then
2109   ac_cv_prog_CC="$CC" # Let the user override the test.
2110 else
2111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112 for as_dir in $PATH
2113 do
2114   IFS=$as_save_IFS
2115   test -z "$as_dir" && as_dir=.
2116   for ac_exec_ext in '' $ac_executable_extensions; do
2117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2118     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2119     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120     break 2
2121   fi
2122 done
2123 done
2124 IFS=$as_save_IFS
2125
2126 fi
2127 fi
2128 CC=$ac_cv_prog_CC
2129 if test -n "$CC"; then
2130   { echo "$as_me:$LINENO: result: $CC" >&5
2131 echo "${ECHO_T}$CC" >&6; }
2132 else
2133   { echo "$as_me:$LINENO: result: no" >&5
2134 echo "${ECHO_T}no" >&6; }
2135 fi
2136
2137
2138 fi
2139 if test -z "$ac_cv_prog_CC"; then
2140   ac_ct_CC=$CC
2141   # Extract the first word of "gcc", so it can be a program name with args.
2142 set dummy gcc; ac_word=$2
2143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2145 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2146   echo $ECHO_N "(cached) $ECHO_C" >&6
2147 else
2148   if test -n "$ac_ct_CC"; then
2149   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2150 else
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 for as_dir in $PATH
2153 do
2154   IFS=$as_save_IFS
2155   test -z "$as_dir" && as_dir=.
2156   for ac_exec_ext in '' $ac_executable_extensions; do
2157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2158     ac_cv_prog_ac_ct_CC="gcc"
2159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160     break 2
2161   fi
2162 done
2163 done
2164 IFS=$as_save_IFS
2165
2166 fi
2167 fi
2168 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2169 if test -n "$ac_ct_CC"; then
2170   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2171 echo "${ECHO_T}$ac_ct_CC" >&6; }
2172 else
2173   { echo "$as_me:$LINENO: result: no" >&5
2174 echo "${ECHO_T}no" >&6; }
2175 fi
2176
2177   if test "x$ac_ct_CC" = x; then
2178     CC=""
2179   else
2180     case $cross_compiling:$ac_tool_warned in
2181 yes:)
2182 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2183 whose name does not start with the host triplet.  If you think this
2184 configuration is useful to you, please write to autoconf@gnu.org." >&5
2185 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2186 whose name does not start with the host triplet.  If you think this
2187 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2188 ac_tool_warned=yes ;;
2189 esac
2190     CC=$ac_ct_CC
2191   fi
2192 else
2193   CC="$ac_cv_prog_CC"
2194 fi
2195
2196 if test -z "$CC"; then
2197           if test -n "$ac_tool_prefix"; then
2198     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2199 set dummy ${ac_tool_prefix}cc; ac_word=$2
2200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2202 if test "${ac_cv_prog_CC+set}" = set; then
2203   echo $ECHO_N "(cached) $ECHO_C" >&6
2204 else
2205   if test -n "$CC"; then
2206   ac_cv_prog_CC="$CC" # Let the user override the test.
2207 else
2208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209 for as_dir in $PATH
2210 do
2211   IFS=$as_save_IFS
2212   test -z "$as_dir" && as_dir=.
2213   for ac_exec_ext in '' $ac_executable_extensions; do
2214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2215     ac_cv_prog_CC="${ac_tool_prefix}cc"
2216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2217     break 2
2218   fi
2219 done
2220 done
2221 IFS=$as_save_IFS
2222
2223 fi
2224 fi
2225 CC=$ac_cv_prog_CC
2226 if test -n "$CC"; then
2227   { echo "$as_me:$LINENO: result: $CC" >&5
2228 echo "${ECHO_T}$CC" >&6; }
2229 else
2230   { echo "$as_me:$LINENO: result: no" >&5
2231 echo "${ECHO_T}no" >&6; }
2232 fi
2233
2234
2235   fi
2236 fi
2237 if test -z "$CC"; then
2238   # Extract the first word of "cc", so it can be a program name with args.
2239 set dummy cc; ac_word=$2
2240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2242 if test "${ac_cv_prog_CC+set}" = set; then
2243   echo $ECHO_N "(cached) $ECHO_C" >&6
2244 else
2245   if test -n "$CC"; then
2246   ac_cv_prog_CC="$CC" # Let the user override the test.
2247 else
2248   ac_prog_rejected=no
2249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250 for as_dir in $PATH
2251 do
2252   IFS=$as_save_IFS
2253   test -z "$as_dir" && as_dir=.
2254   for ac_exec_ext in '' $ac_executable_extensions; do
2255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2256     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2257        ac_prog_rejected=yes
2258        continue
2259      fi
2260     ac_cv_prog_CC="cc"
2261     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2262     break 2
2263   fi
2264 done
2265 done
2266 IFS=$as_save_IFS
2267
2268 if test $ac_prog_rejected = yes; then
2269   # We found a bogon in the path, so make sure we never use it.
2270   set dummy $ac_cv_prog_CC
2271   shift
2272   if test $# != 0; then
2273     # We chose a different compiler from the bogus one.
2274     # However, it has the same basename, so the bogon will be chosen
2275     # first if we set CC to just the basename; use the full file name.
2276     shift
2277     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2278   fi
2279 fi
2280 fi
2281 fi
2282 CC=$ac_cv_prog_CC
2283 if test -n "$CC"; then
2284   { echo "$as_me:$LINENO: result: $CC" >&5
2285 echo "${ECHO_T}$CC" >&6; }
2286 else
2287   { echo "$as_me:$LINENO: result: no" >&5
2288 echo "${ECHO_T}no" >&6; }
2289 fi
2290
2291
2292 fi
2293 if test -z "$CC"; then
2294   if test -n "$ac_tool_prefix"; then
2295   for ac_prog in cl.exe
2296   do
2297     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2298 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2301 if test "${ac_cv_prog_CC+set}" = set; then
2302   echo $ECHO_N "(cached) $ECHO_C" >&6
2303 else
2304   if test -n "$CC"; then
2305   ac_cv_prog_CC="$CC" # Let the user override the test.
2306 else
2307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308 for as_dir in $PATH
2309 do
2310   IFS=$as_save_IFS
2311   test -z "$as_dir" && as_dir=.
2312   for ac_exec_ext in '' $ac_executable_extensions; do
2313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2314     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2315     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2316     break 2
2317   fi
2318 done
2319 done
2320 IFS=$as_save_IFS
2321
2322 fi
2323 fi
2324 CC=$ac_cv_prog_CC
2325 if test -n "$CC"; then
2326   { echo "$as_me:$LINENO: result: $CC" >&5
2327 echo "${ECHO_T}$CC" >&6; }
2328 else
2329   { echo "$as_me:$LINENO: result: no" >&5
2330 echo "${ECHO_T}no" >&6; }
2331 fi
2332
2333
2334     test -n "$CC" && break
2335   done
2336 fi
2337 if test -z "$CC"; then
2338   ac_ct_CC=$CC
2339   for ac_prog in cl.exe
2340 do
2341   # Extract the first word of "$ac_prog", so it can be a program name with args.
2342 set dummy $ac_prog; ac_word=$2
2343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2345 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2346   echo $ECHO_N "(cached) $ECHO_C" >&6
2347 else
2348   if test -n "$ac_ct_CC"; then
2349   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2350 else
2351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2352 for as_dir in $PATH
2353 do
2354   IFS=$as_save_IFS
2355   test -z "$as_dir" && as_dir=.
2356   for ac_exec_ext in '' $ac_executable_extensions; do
2357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2358     ac_cv_prog_ac_ct_CC="$ac_prog"
2359     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2360     break 2
2361   fi
2362 done
2363 done
2364 IFS=$as_save_IFS
2365
2366 fi
2367 fi
2368 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2369 if test -n "$ac_ct_CC"; then
2370   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2371 echo "${ECHO_T}$ac_ct_CC" >&6; }
2372 else
2373   { echo "$as_me:$LINENO: result: no" >&5
2374 echo "${ECHO_T}no" >&6; }
2375 fi
2376
2377
2378   test -n "$ac_ct_CC" && break
2379 done
2380
2381   if test "x$ac_ct_CC" = x; then
2382     CC=""
2383   else
2384     case $cross_compiling:$ac_tool_warned in
2385 yes:)
2386 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2387 whose name does not start with the host triplet.  If you think this
2388 configuration is useful to you, please write to autoconf@gnu.org." >&5
2389 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2390 whose name does not start with the host triplet.  If you think this
2391 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2392 ac_tool_warned=yes ;;
2393 esac
2394     CC=$ac_ct_CC
2395   fi
2396 fi
2397
2398 fi
2399
2400
2401 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2402 See \`config.log' for more details." >&5
2403 echo "$as_me: error: no acceptable C compiler found in \$PATH
2404 See \`config.log' for more details." >&2;}
2405    { (exit 1); exit 1; }; }
2406
2407 # Provide some information about the compiler.
2408 echo "$as_me:$LINENO: checking for C compiler version" >&5
2409 ac_compiler=`set X $ac_compile; echo $2`
2410 { (ac_try="$ac_compiler --version >&5"
2411 case "(($ac_try" in
2412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413   *) ac_try_echo=$ac_try;;
2414 esac
2415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2416   (eval "$ac_compiler --version >&5") 2>&5
2417   ac_status=$?
2418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); }
2420 { (ac_try="$ac_compiler -v >&5"
2421 case "(($ac_try" in
2422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423   *) ac_try_echo=$ac_try;;
2424 esac
2425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2426   (eval "$ac_compiler -v >&5") 2>&5
2427   ac_status=$?
2428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429   (exit $ac_status); }
2430 { (ac_try="$ac_compiler -V >&5"
2431 case "(($ac_try" in
2432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2433   *) ac_try_echo=$ac_try;;
2434 esac
2435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2436   (eval "$ac_compiler -V >&5") 2>&5
2437   ac_status=$?
2438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2439   (exit $ac_status); }
2440
2441 cat >conftest.$ac_ext <<_ACEOF
2442 /* confdefs.h.  */
2443 _ACEOF
2444 cat confdefs.h >>conftest.$ac_ext
2445 cat >>conftest.$ac_ext <<_ACEOF
2446 /* end confdefs.h.  */
2447
2448 int
2449 main ()
2450 {
2451
2452   ;
2453   return 0;
2454 }
2455 _ACEOF
2456 ac_clean_files_save=$ac_clean_files
2457 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2458 # Try to create an executable without -o first, disregard a.out.
2459 # It will help us diagnose broken compilers, and finding out an intuition
2460 # of exeext.
2461 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2462 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2463 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2464 #
2465 # List of possible output files, starting from the most likely.
2466 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2467 # only as a last resort.  b.out is created by i960 compilers.
2468 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2469 #
2470 # The IRIX 6 linker writes into existing files which may not be
2471 # executable, retaining their permissions.  Remove them first so a
2472 # subsequent execution test works.
2473 ac_rmfiles=
2474 for ac_file in $ac_files
2475 do
2476   case $ac_file in
2477     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2478     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2479   esac
2480 done
2481 rm -f $ac_rmfiles
2482
2483 if { (ac_try="$ac_link_default"
2484 case "(($ac_try" in
2485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2486   *) ac_try_echo=$ac_try;;
2487 esac
2488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2489   (eval "$ac_link_default") 2>&5
2490   ac_status=$?
2491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492   (exit $ac_status); }; then
2493   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2494 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2495 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2496 # so that the user can short-circuit this test for compilers unknown to
2497 # Autoconf.
2498 for ac_file in $ac_files
2499 do
2500   test -f "$ac_file" || continue
2501   case $ac_file in
2502     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2503         ;;
2504     [ab].out )
2505         # We found the default executable, but exeext='' is most
2506         # certainly right.
2507         break;;
2508     *.* )
2509         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2510         then :; else
2511            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2512         fi
2513         # We set ac_cv_exeext here because the later test for it is not
2514         # safe: cross compilers may not add the suffix if given an `-o'
2515         # argument, so we may need to know it at that point already.
2516         # Even if this section looks crufty: it has the advantage of
2517         # actually working.
2518         break;;
2519     * )
2520         break;;
2521   esac
2522 done
2523 test "$ac_cv_exeext" = no && ac_cv_exeext=
2524
2525 else
2526   echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2528
2529 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2530 See \`config.log' for more details." >&5
2531 echo "$as_me: error: C compiler cannot create executables
2532 See \`config.log' for more details." >&2;}
2533    { (exit 77); exit 77; }; }
2534 fi
2535
2536 ac_exeext=$ac_cv_exeext
2537 { echo "$as_me:$LINENO: result: $ac_file" >&5
2538 echo "${ECHO_T}$ac_file" >&6; }
2539
2540 # Check that the compiler produces executables we can run.  If not, either
2541 # the compiler is broken, or we cross compile.
2542 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2543 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2544 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2545 # If not cross compiling, check that we can run a simple program.
2546 if test "$cross_compiling" != yes; then
2547   if { ac_try='./$ac_file'
2548   { (case "(($ac_try" in
2549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550   *) ac_try_echo=$ac_try;;
2551 esac
2552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2553   (eval "$ac_try") 2>&5
2554   ac_status=$?
2555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556   (exit $ac_status); }; }; then
2557     cross_compiling=no
2558   else
2559     if test "$cross_compiling" = maybe; then
2560         cross_compiling=yes
2561     else
2562         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2563 If you meant to cross compile, use \`--host'.
2564 See \`config.log' for more details." >&5
2565 echo "$as_me: error: cannot run C compiled programs.
2566 If you meant to cross compile, use \`--host'.
2567 See \`config.log' for more details." >&2;}
2568    { (exit 1); exit 1; }; }
2569     fi
2570   fi
2571 fi
2572 { echo "$as_me:$LINENO: result: yes" >&5
2573 echo "${ECHO_T}yes" >&6; }
2574
2575 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2576 ac_clean_files=$ac_clean_files_save
2577 # Check that the compiler produces executables we can run.  If not, either
2578 # the compiler is broken, or we cross compile.
2579 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2580 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2581 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2582 echo "${ECHO_T}$cross_compiling" >&6; }
2583
2584 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2585 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2586 if { (ac_try="$ac_link"
2587 case "(($ac_try" in
2588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589   *) ac_try_echo=$ac_try;;
2590 esac
2591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592   (eval "$ac_link") 2>&5
2593   ac_status=$?
2594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595   (exit $ac_status); }; then
2596   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2597 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2598 # work properly (i.e., refer to `conftest.exe'), while it won't with
2599 # `rm'.
2600 for ac_file in conftest.exe conftest conftest.*; do
2601   test -f "$ac_file" || continue
2602   case $ac_file in
2603     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2604     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2605           break;;
2606     * ) break;;
2607   esac
2608 done
2609 else
2610   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2611 See \`config.log' for more details." >&5
2612 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2613 See \`config.log' for more details." >&2;}
2614    { (exit 1); exit 1; }; }
2615 fi
2616
2617 rm -f conftest$ac_cv_exeext
2618 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2619 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2620
2621 rm -f conftest.$ac_ext
2622 EXEEXT=$ac_cv_exeext
2623 ac_exeext=$EXEEXT
2624 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2625 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2626 if test "${ac_cv_objext+set}" = set; then
2627   echo $ECHO_N "(cached) $ECHO_C" >&6
2628 else
2629   cat >conftest.$ac_ext <<_ACEOF
2630 /* confdefs.h.  */
2631 _ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h.  */
2635
2636 int
2637 main ()
2638 {
2639
2640   ;
2641   return 0;
2642 }
2643 _ACEOF
2644 rm -f conftest.o conftest.obj
2645 if { (ac_try="$ac_compile"
2646 case "(($ac_try" in
2647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648   *) ac_try_echo=$ac_try;;
2649 esac
2650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2651   (eval "$ac_compile") 2>&5
2652   ac_status=$?
2653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654   (exit $ac_status); }; then
2655   for ac_file in conftest.o conftest.obj conftest.*; do
2656   test -f "$ac_file" || continue;
2657   case $ac_file in
2658     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2659     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2660        break;;
2661   esac
2662 done
2663 else
2664   echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2666
2667 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2668 See \`config.log' for more details." >&5
2669 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2670 See \`config.log' for more details." >&2;}
2671    { (exit 1); exit 1; }; }
2672 fi
2673
2674 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2675 fi
2676 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2677 echo "${ECHO_T}$ac_cv_objext" >&6; }
2678 OBJEXT=$ac_cv_objext
2679 ac_objext=$OBJEXT
2680 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2681 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2682 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2683   echo $ECHO_N "(cached) $ECHO_C" >&6
2684 else
2685   cat >conftest.$ac_ext <<_ACEOF
2686 /* confdefs.h.  */
2687 _ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h.  */
2691
2692 int
2693 main ()
2694 {
2695 #ifndef __GNUC__
2696        choke me
2697 #endif
2698
2699   ;
2700   return 0;
2701 }
2702 _ACEOF
2703 rm -f conftest.$ac_objext
2704 if { (ac_try="$ac_compile"
2705 case "(($ac_try" in
2706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707   *) ac_try_echo=$ac_try;;
2708 esac
2709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710   (eval "$ac_compile") 2>conftest.er1
2711   ac_status=$?
2712   grep -v '^ *+' conftest.er1 >conftest.err
2713   rm -f conftest.er1
2714   cat conftest.err >&5
2715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716   (exit $ac_status); } &&
2717          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2718   { (case "(($ac_try" in
2719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720   *) ac_try_echo=$ac_try;;
2721 esac
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723   (eval "$ac_try") 2>&5
2724   ac_status=$?
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); }; } &&
2727          { ac_try='test -s conftest.$ac_objext'
2728   { (case "(($ac_try" in
2729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730   *) ac_try_echo=$ac_try;;
2731 esac
2732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2733   (eval "$ac_try") 2>&5
2734   ac_status=$?
2735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736   (exit $ac_status); }; }; then
2737   ac_compiler_gnu=yes
2738 else
2739   echo "$as_me: failed program was:" >&5
2740 sed 's/^/| /' conftest.$ac_ext >&5
2741
2742         ac_compiler_gnu=no
2743 fi
2744
2745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2746 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2747
2748 fi
2749 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2750 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2751 GCC=`test $ac_compiler_gnu = yes && echo yes`
2752 ac_test_CFLAGS=${CFLAGS+set}
2753 ac_save_CFLAGS=$CFLAGS
2754 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2755 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2756 if test "${ac_cv_prog_cc_g+set}" = set; then
2757   echo $ECHO_N "(cached) $ECHO_C" >&6
2758 else
2759   ac_save_c_werror_flag=$ac_c_werror_flag
2760    ac_c_werror_flag=yes
2761    ac_cv_prog_cc_g=no
2762    CFLAGS="-g"
2763    cat >conftest.$ac_ext <<_ACEOF
2764 /* confdefs.h.  */
2765 _ACEOF
2766 cat confdefs.h >>conftest.$ac_ext
2767 cat >>conftest.$ac_ext <<_ACEOF
2768 /* end confdefs.h.  */
2769
2770 int
2771 main ()
2772 {
2773
2774   ;
2775   return 0;
2776 }
2777 _ACEOF
2778 rm -f conftest.$ac_objext
2779 if { (ac_try="$ac_compile"
2780 case "(($ac_try" in
2781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782   *) ac_try_echo=$ac_try;;
2783 esac
2784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2785   (eval "$ac_compile") 2>conftest.er1
2786   ac_status=$?
2787   grep -v '^ *+' conftest.er1 >conftest.err
2788   rm -f conftest.er1
2789   cat conftest.err >&5
2790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791   (exit $ac_status); } &&
2792          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2793   { (case "(($ac_try" in
2794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795   *) ac_try_echo=$ac_try;;
2796 esac
2797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2798   (eval "$ac_try") 2>&5
2799   ac_status=$?
2800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801   (exit $ac_status); }; } &&
2802          { ac_try='test -s conftest.$ac_objext'
2803   { (case "(($ac_try" in
2804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805   *) ac_try_echo=$ac_try;;
2806 esac
2807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2808   (eval "$ac_try") 2>&5
2809   ac_status=$?
2810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811   (exit $ac_status); }; }; then
2812   ac_cv_prog_cc_g=yes
2813 else
2814   echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2816
2817         CFLAGS=""
2818       cat >conftest.$ac_ext <<_ACEOF
2819 /* confdefs.h.  */
2820 _ACEOF
2821 cat confdefs.h >>conftest.$ac_ext
2822 cat >>conftest.$ac_ext <<_ACEOF
2823 /* end confdefs.h.  */
2824
2825 int
2826 main ()
2827 {
2828
2829   ;
2830   return 0;
2831 }
2832 _ACEOF
2833 rm -f conftest.$ac_objext
2834 if { (ac_try="$ac_compile"
2835 case "(($ac_try" in
2836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837   *) ac_try_echo=$ac_try;;
2838 esac
2839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2840   (eval "$ac_compile") 2>conftest.er1
2841   ac_status=$?
2842   grep -v '^ *+' conftest.er1 >conftest.err
2843   rm -f conftest.er1
2844   cat conftest.err >&5
2845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846   (exit $ac_status); } &&
2847          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2848   { (case "(($ac_try" in
2849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850   *) ac_try_echo=$ac_try;;
2851 esac
2852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2853   (eval "$ac_try") 2>&5
2854   ac_status=$?
2855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856   (exit $ac_status); }; } &&
2857          { ac_try='test -s conftest.$ac_objext'
2858   { (case "(($ac_try" in
2859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860   *) ac_try_echo=$ac_try;;
2861 esac
2862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2863   (eval "$ac_try") 2>&5
2864   ac_status=$?
2865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866   (exit $ac_status); }; }; then
2867   :
2868 else
2869   echo "$as_me: failed program was:" >&5
2870 sed 's/^/| /' conftest.$ac_ext >&5
2871
2872         ac_c_werror_flag=$ac_save_c_werror_flag
2873          CFLAGS="-g"
2874          cat >conftest.$ac_ext <<_ACEOF
2875 /* confdefs.h.  */
2876 _ACEOF
2877 cat confdefs.h >>conftest.$ac_ext
2878 cat >>conftest.$ac_ext <<_ACEOF
2879 /* end confdefs.h.  */
2880
2881 int
2882 main ()
2883 {
2884
2885   ;
2886   return 0;
2887 }
2888 _ACEOF
2889 rm -f conftest.$ac_objext
2890 if { (ac_try="$ac_compile"
2891 case "(($ac_try" in
2892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893   *) ac_try_echo=$ac_try;;
2894 esac
2895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2896   (eval "$ac_compile") 2>conftest.er1
2897   ac_status=$?
2898   grep -v '^ *+' conftest.er1 >conftest.err
2899   rm -f conftest.er1
2900   cat conftest.err >&5
2901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902   (exit $ac_status); } &&
2903          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2904   { (case "(($ac_try" in
2905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906   *) ac_try_echo=$ac_try;;
2907 esac
2908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909   (eval "$ac_try") 2>&5
2910   ac_status=$?
2911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912   (exit $ac_status); }; } &&
2913          { ac_try='test -s conftest.$ac_objext'
2914   { (case "(($ac_try" in
2915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916   *) ac_try_echo=$ac_try;;
2917 esac
2918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2919   (eval "$ac_try") 2>&5
2920   ac_status=$?
2921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922   (exit $ac_status); }; }; then
2923   ac_cv_prog_cc_g=yes
2924 else
2925   echo "$as_me: failed program was:" >&5
2926 sed 's/^/| /' conftest.$ac_ext >&5
2927
2928
2929 fi
2930
2931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2932 fi
2933
2934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2935 fi
2936
2937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2938    ac_c_werror_flag=$ac_save_c_werror_flag
2939 fi
2940 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2941 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2942 if test "$ac_test_CFLAGS" = set; then
2943   CFLAGS=$ac_save_CFLAGS
2944 elif test $ac_cv_prog_cc_g = yes; then
2945   if test "$GCC" = yes; then
2946     CFLAGS="-g -O2"
2947   else
2948     CFLAGS="-g"
2949   fi
2950 else
2951   if test "$GCC" = yes; then
2952     CFLAGS="-O2"
2953   else
2954     CFLAGS=
2955   fi
2956 fi
2957 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2958 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2959 if test "${ac_cv_prog_cc_c89+set}" = set; then
2960   echo $ECHO_N "(cached) $ECHO_C" >&6
2961 else
2962   ac_cv_prog_cc_c89=no
2963 ac_save_CC=$CC
2964 cat >conftest.$ac_ext <<_ACEOF
2965 /* confdefs.h.  */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h.  */
2970 #include <stdarg.h>
2971 #include <stdio.h>
2972 #include <sys/types.h>
2973 #include <sys/stat.h>
2974 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2975 struct buf { int x; };
2976 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2977 static char *e (p, i)
2978      char **p;
2979      int i;
2980 {
2981   return p[i];
2982 }
2983 static char *f (char * (*g) (char **, int), char **p, ...)
2984 {
2985   char *s;
2986   va_list v;
2987   va_start (v,p);
2988   s = g (p, va_arg (v,int));
2989   va_end (v);
2990   return s;
2991 }
2992
2993 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2994    function prototypes and stuff, but not '\xHH' hex character constants.
2995    These don't provoke an error unfortunately, instead are silently treated
2996    as 'x'.  The following induces an error, until -std is added to get
2997    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2998    array size at least.  It's necessary to write '\x00'==0 to get something
2999    that's true only with -std.  */
3000 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3001
3002 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3003    inside strings and character constants.  */
3004 #define FOO(x) 'x'
3005 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3006
3007 int test (int i, double x);
3008 struct s1 {int (*f) (int a);};
3009 struct s2 {int (*f) (double a);};
3010 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3011 int argc;
3012 char **argv;
3013 int
3014 main ()
3015 {
3016 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3017   ;
3018   return 0;
3019 }
3020 _ACEOF
3021 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3022         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3023 do
3024   CC="$ac_save_CC $ac_arg"
3025   rm -f conftest.$ac_objext
3026 if { (ac_try="$ac_compile"
3027 case "(($ac_try" in
3028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029   *) ac_try_echo=$ac_try;;
3030 esac
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032   (eval "$ac_compile") 2>conftest.er1
3033   ac_status=$?
3034   grep -v '^ *+' conftest.er1 >conftest.err
3035   rm -f conftest.er1
3036   cat conftest.err >&5
3037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038   (exit $ac_status); } &&
3039          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3040   { (case "(($ac_try" in
3041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042   *) ac_try_echo=$ac_try;;
3043 esac
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045   (eval "$ac_try") 2>&5
3046   ac_status=$?
3047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048   (exit $ac_status); }; } &&
3049          { ac_try='test -s conftest.$ac_objext'
3050   { (case "(($ac_try" in
3051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052   *) ac_try_echo=$ac_try;;
3053 esac
3054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3055   (eval "$ac_try") 2>&5
3056   ac_status=$?
3057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058   (exit $ac_status); }; }; then
3059   ac_cv_prog_cc_c89=$ac_arg
3060 else
3061   echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3063
3064
3065 fi
3066
3067 rm -f core conftest.err conftest.$ac_objext
3068   test "x$ac_cv_prog_cc_c89" != "xno" && break
3069 done
3070 rm -f conftest.$ac_ext
3071 CC=$ac_save_CC
3072
3073 fi
3074 # AC_CACHE_VAL
3075 case "x$ac_cv_prog_cc_c89" in
3076   x)
3077     { echo "$as_me:$LINENO: result: none needed" >&5
3078 echo "${ECHO_T}none needed" >&6; } ;;
3079   xno)
3080     { echo "$as_me:$LINENO: result: unsupported" >&5
3081 echo "${ECHO_T}unsupported" >&6; } ;;
3082   *)
3083     CC="$CC $ac_cv_prog_cc_c89"
3084     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3085 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3086 esac
3087
3088
3089 ac_ext=c
3090 ac_cpp='$CPP $CPPFLAGS'
3091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3094
3095 ac_ext=cpp
3096 ac_cpp='$CXXCPP $CPPFLAGS'
3097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3100 if test -z "$CXX"; then
3101   if test -n "$CCC"; then
3102     CXX=$CCC
3103   else
3104     if test -n "$ac_tool_prefix"; then
3105   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3106   do
3107     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3108 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3111 if test "${ac_cv_prog_CXX+set}" = set; then
3112   echo $ECHO_N "(cached) $ECHO_C" >&6
3113 else
3114   if test -n "$CXX"; then
3115   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3116 else
3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118 for as_dir in $PATH
3119 do
3120   IFS=$as_save_IFS
3121   test -z "$as_dir" && as_dir=.
3122   for ac_exec_ext in '' $ac_executable_extensions; do
3123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3124     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3125     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3126     break 2
3127   fi
3128 done
3129 done
3130 IFS=$as_save_IFS
3131
3132 fi
3133 fi
3134 CXX=$ac_cv_prog_CXX
3135 if test -n "$CXX"; then
3136   { echo "$as_me:$LINENO: result: $CXX" >&5
3137 echo "${ECHO_T}$CXX" >&6; }
3138 else
3139   { echo "$as_me:$LINENO: result: no" >&5
3140 echo "${ECHO_T}no" >&6; }
3141 fi
3142
3143
3144     test -n "$CXX" && break
3145   done
3146 fi
3147 if test -z "$CXX"; then
3148   ac_ct_CXX=$CXX
3149   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3150 do
3151   # Extract the first word of "$ac_prog", so it can be a program name with args.
3152 set dummy $ac_prog; ac_word=$2
3153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3155 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3156   echo $ECHO_N "(cached) $ECHO_C" >&6
3157 else
3158   if test -n "$ac_ct_CXX"; then
3159   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3160 else
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 for as_dir in $PATH
3163 do
3164   IFS=$as_save_IFS
3165   test -z "$as_dir" && as_dir=.
3166   for ac_exec_ext in '' $ac_executable_extensions; do
3167   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3168     ac_cv_prog_ac_ct_CXX="$ac_prog"
3169     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3170     break 2
3171   fi
3172 done
3173 done
3174 IFS=$as_save_IFS
3175
3176 fi
3177 fi
3178 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3179 if test -n "$ac_ct_CXX"; then
3180   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3181 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3182 else
3183   { echo "$as_me:$LINENO: result: no" >&5
3184 echo "${ECHO_T}no" >&6; }
3185 fi
3186
3187
3188   test -n "$ac_ct_CXX" && break
3189 done
3190
3191   if test "x$ac_ct_CXX" = x; then
3192     CXX="g++"
3193   else
3194     case $cross_compiling:$ac_tool_warned in
3195 yes:)
3196 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3197 whose name does not start with the host triplet.  If you think this
3198 configuration is useful to you, please write to autoconf@gnu.org." >&5
3199 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3200 whose name does not start with the host triplet.  If you think this
3201 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3202 ac_tool_warned=yes ;;
3203 esac
3204     CXX=$ac_ct_CXX
3205   fi
3206 fi
3207
3208   fi
3209 fi
3210 # Provide some information about the compiler.
3211 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3212 ac_compiler=`set X $ac_compile; echo $2`
3213 { (ac_try="$ac_compiler --version >&5"
3214 case "(($ac_try" in
3215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216   *) ac_try_echo=$ac_try;;
3217 esac
3218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3219   (eval "$ac_compiler --version >&5") 2>&5
3220   ac_status=$?
3221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222   (exit $ac_status); }
3223 { (ac_try="$ac_compiler -v >&5"
3224 case "(($ac_try" in
3225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3226   *) ac_try_echo=$ac_try;;
3227 esac
3228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3229   (eval "$ac_compiler -v >&5") 2>&5
3230   ac_status=$?
3231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232   (exit $ac_status); }
3233 { (ac_try="$ac_compiler -V >&5"
3234 case "(($ac_try" in
3235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236   *) ac_try_echo=$ac_try;;
3237 esac
3238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3239   (eval "$ac_compiler -V >&5") 2>&5
3240   ac_status=$?
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); }
3243
3244 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3245 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3246 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3247   echo $ECHO_N "(cached) $ECHO_C" >&6
3248 else
3249   cat >conftest.$ac_ext <<_ACEOF
3250 /* confdefs.h.  */
3251 _ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h.  */
3255
3256 int
3257 main ()
3258 {
3259 #ifndef __GNUC__
3260        choke me
3261 #endif
3262
3263   ;
3264   return 0;
3265 }
3266 _ACEOF
3267 rm -f conftest.$ac_objext
3268 if { (ac_try="$ac_compile"
3269 case "(($ac_try" in
3270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271   *) ac_try_echo=$ac_try;;
3272 esac
3273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3274   (eval "$ac_compile") 2>conftest.er1
3275   ac_status=$?
3276   grep -v '^ *+' conftest.er1 >conftest.err
3277   rm -f conftest.er1
3278   cat conftest.err >&5
3279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280   (exit $ac_status); } &&
3281          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3282   { (case "(($ac_try" in
3283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284   *) ac_try_echo=$ac_try;;
3285 esac
3286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3287   (eval "$ac_try") 2>&5
3288   ac_status=$?
3289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290   (exit $ac_status); }; } &&
3291          { ac_try='test -s conftest.$ac_objext'
3292   { (case "(($ac_try" in
3293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294   *) ac_try_echo=$ac_try;;
3295 esac
3296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3297   (eval "$ac_try") 2>&5
3298   ac_status=$?
3299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300   (exit $ac_status); }; }; then
3301   ac_compiler_gnu=yes
3302 else
3303   echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3305
3306         ac_compiler_gnu=no
3307 fi
3308
3309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3310 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3311
3312 fi
3313 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3314 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3315 GXX=`test $ac_compiler_gnu = yes && echo yes`
3316 ac_test_CXXFLAGS=${CXXFLAGS+set}
3317 ac_save_CXXFLAGS=$CXXFLAGS
3318 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3319 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3320 if test "${ac_cv_prog_cxx_g+set}" = set; then
3321   echo $ECHO_N "(cached) $ECHO_C" >&6
3322 else
3323   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3324    ac_cxx_werror_flag=yes
3325    ac_cv_prog_cxx_g=no
3326    CXXFLAGS="-g"
3327    cat >conftest.$ac_ext <<_ACEOF
3328 /* confdefs.h.  */
3329 _ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h.  */
3333
3334 int
3335 main ()
3336 {
3337
3338   ;
3339   return 0;
3340 }
3341 _ACEOF
3342 rm -f conftest.$ac_objext
3343 if { (ac_try="$ac_compile"
3344 case "(($ac_try" in
3345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346   *) ac_try_echo=$ac_try;;
3347 esac
3348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349   (eval "$ac_compile") 2>conftest.er1
3350   ac_status=$?
3351   grep -v '^ *+' conftest.er1 >conftest.err
3352   rm -f conftest.er1
3353   cat conftest.err >&5
3354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355   (exit $ac_status); } &&
3356          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3357   { (case "(($ac_try" in
3358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359   *) ac_try_echo=$ac_try;;
3360 esac
3361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3362   (eval "$ac_try") 2>&5
3363   ac_status=$?
3364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365   (exit $ac_status); }; } &&
3366          { ac_try='test -s conftest.$ac_objext'
3367   { (case "(($ac_try" in
3368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369   *) ac_try_echo=$ac_try;;
3370 esac
3371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3372   (eval "$ac_try") 2>&5
3373   ac_status=$?
3374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375   (exit $ac_status); }; }; then
3376   ac_cv_prog_cxx_g=yes
3377 else
3378   echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3380
3381         CXXFLAGS=""
3382       cat >conftest.$ac_ext <<_ACEOF
3383 /* confdefs.h.  */
3384 _ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h.  */
3388
3389 int
3390 main ()
3391 {
3392
3393   ;
3394   return 0;
3395 }
3396 _ACEOF
3397 rm -f conftest.$ac_objext
3398 if { (ac_try="$ac_compile"
3399 case "(($ac_try" in
3400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3401   *) ac_try_echo=$ac_try;;
3402 esac
3403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3404   (eval "$ac_compile") 2>conftest.er1
3405   ac_status=$?
3406   grep -v '^ *+' conftest.er1 >conftest.err
3407   rm -f conftest.er1
3408   cat conftest.err >&5
3409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410   (exit $ac_status); } &&
3411          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3412   { (case "(($ac_try" in
3413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414   *) ac_try_echo=$ac_try;;
3415 esac
3416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3417   (eval "$ac_try") 2>&5
3418   ac_status=$?
3419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420   (exit $ac_status); }; } &&
3421          { ac_try='test -s conftest.$ac_objext'
3422   { (case "(($ac_try" in
3423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424   *) ac_try_echo=$ac_try;;
3425 esac
3426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3427   (eval "$ac_try") 2>&5
3428   ac_status=$?
3429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430   (exit $ac_status); }; }; then
3431   :
3432 else
3433   echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3435
3436         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3437          CXXFLAGS="-g"
3438          cat >conftest.$ac_ext <<_ACEOF
3439 /* confdefs.h.  */
3440 _ACEOF
3441 cat confdefs.h >>conftest.$ac_ext
3442 cat >>conftest.$ac_ext <<_ACEOF
3443 /* end confdefs.h.  */
3444
3445 int
3446 main ()
3447 {
3448
3449   ;
3450   return 0;
3451 }
3452 _ACEOF
3453 rm -f conftest.$ac_objext
3454 if { (ac_try="$ac_compile"
3455 case "(($ac_try" in
3456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457   *) ac_try_echo=$ac_try;;
3458 esac
3459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3460   (eval "$ac_compile") 2>conftest.er1
3461   ac_status=$?
3462   grep -v '^ *+' conftest.er1 >conftest.err
3463   rm -f conftest.er1
3464   cat conftest.err >&5
3465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466   (exit $ac_status); } &&
3467          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3468   { (case "(($ac_try" in
3469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470   *) ac_try_echo=$ac_try;;
3471 esac
3472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3473   (eval "$ac_try") 2>&5
3474   ac_status=$?
3475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476   (exit $ac_status); }; } &&
3477          { ac_try='test -s conftest.$ac_objext'
3478   { (case "(($ac_try" in
3479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480   *) ac_try_echo=$ac_try;;
3481 esac
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483   (eval "$ac_try") 2>&5
3484   ac_status=$?
3485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486   (exit $ac_status); }; }; then
3487   ac_cv_prog_cxx_g=yes
3488 else
3489   echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3491
3492
3493 fi
3494
3495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496 fi
3497
3498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 fi
3500
3501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3503 fi
3504 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3505 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3506 if test "$ac_test_CXXFLAGS" = set; then
3507   CXXFLAGS=$ac_save_CXXFLAGS
3508 elif test $ac_cv_prog_cxx_g = yes; then
3509   if test "$GXX" = yes; then
3510     CXXFLAGS="-g -O2"
3511   else
3512     CXXFLAGS="-g"
3513   fi
3514 else
3515   if test "$GXX" = yes; then
3516     CXXFLAGS="-O2"
3517   else
3518     CXXFLAGS=
3519   fi
3520 fi
3521 ac_ext=c
3522 ac_cpp='$CPP $CPPFLAGS'
3523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3526
3527 if test "x$CC" != xcc; then
3528   { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3529 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3530 else
3531   { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3532 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3533 fi
3534 set dummy $CC; ac_cc=`echo $2 |
3535                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3536 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3537   echo $ECHO_N "(cached) $ECHO_C" >&6
3538 else
3539   cat >conftest.$ac_ext <<_ACEOF
3540 /* confdefs.h.  */
3541 _ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h.  */
3545
3546 int
3547 main ()
3548 {
3549
3550   ;
3551   return 0;
3552 }
3553 _ACEOF
3554 # Make sure it works both with $CC and with simple cc.
3555 # We do the test twice because some compilers refuse to overwrite an
3556 # existing .o file with -o, though they will create one.
3557 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3558 rm -f conftest2.*
3559 if { (case "(($ac_try" in
3560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561   *) ac_try_echo=$ac_try;;
3562 esac
3563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564   (eval "$ac_try") 2>&5
3565   ac_status=$?
3566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567   (exit $ac_status); } &&
3568    test -f conftest2.$ac_objext && { (case "(($ac_try" in
3569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570   *) ac_try_echo=$ac_try;;
3571 esac
3572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3573   (eval "$ac_try") 2>&5
3574   ac_status=$?
3575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576   (exit $ac_status); };
3577 then
3578   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3579   if test "x$CC" != xcc; then
3580     # Test first that cc exists at all.
3581     if { ac_try='cc -c conftest.$ac_ext >&5'
3582   { (case "(($ac_try" in
3583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584   *) ac_try_echo=$ac_try;;
3585 esac
3586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3587   (eval "$ac_try") 2>&5
3588   ac_status=$?
3589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590   (exit $ac_status); }; }; then
3591       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3592       rm -f conftest2.*
3593       if { (case "(($ac_try" in
3594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595   *) ac_try_echo=$ac_try;;
3596 esac
3597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3598   (eval "$ac_try") 2>&5
3599   ac_status=$?
3600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601   (exit $ac_status); } &&
3602          test -f conftest2.$ac_objext && { (case "(($ac_try" in
3603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604   *) ac_try_echo=$ac_try;;
3605 esac
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607   (eval "$ac_try") 2>&5
3608   ac_status=$?
3609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610   (exit $ac_status); };
3611       then
3612         # cc works too.
3613         :
3614       else
3615         # cc exists but doesn't like -o.
3616         eval ac_cv_prog_cc_${ac_cc}_c_o=no
3617       fi
3618     fi
3619   fi
3620 else
3621   eval ac_cv_prog_cc_${ac_cc}_c_o=no
3622 fi
3623 rm -f core conftest*
3624
3625 fi
3626 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3627   { echo "$as_me:$LINENO: result: yes" >&5
3628 echo "${ECHO_T}yes" >&6; }
3629 else
3630   { echo "$as_me:$LINENO: result: no" >&5
3631 echo "${ECHO_T}no" >&6; }
3632
3633 cat >>confdefs.h <<\_ACEOF
3634 #define NO_MINUS_C_MINUS_O 1
3635 _ACEOF
3636
3637 fi
3638
3639 ac_ext=c
3640 ac_cpp='$CPP $CPPFLAGS'
3641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3644 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3645 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3646 # On Suns, sometimes $CPP names a directory.
3647 if test -n "$CPP" && test -d "$CPP"; then
3648   CPP=
3649 fi
3650 if test -z "$CPP"; then
3651   if test "${ac_cv_prog_CPP+set}" = set; then
3652   echo $ECHO_N "(cached) $ECHO_C" >&6
3653 else
3654       # Double quotes because CPP needs to be expanded
3655     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3656     do
3657       ac_preproc_ok=false
3658 for ac_c_preproc_warn_flag in '' yes
3659 do
3660   # Use a header file that comes with gcc, so configuring glibc
3661   # with a fresh cross-compiler works.
3662   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3663   # <limits.h> exists even on freestanding compilers.
3664   # On the NeXT, cc -E runs the code through the compiler's parser,
3665   # not just through cpp. "Syntax error" is here to catch this case.
3666   cat >conftest.$ac_ext <<_ACEOF
3667 /* confdefs.h.  */
3668 _ACEOF
3669 cat confdefs.h >>conftest.$ac_ext
3670 cat >>conftest.$ac_ext <<_ACEOF
3671 /* end confdefs.h.  */
3672 #ifdef __STDC__
3673 # include <limits.h>
3674 #else
3675 # include <assert.h>
3676 #endif
3677                      Syntax error
3678 _ACEOF
3679 if { (ac_try="$ac_cpp conftest.$ac_ext"
3680 case "(($ac_try" in
3681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682   *) ac_try_echo=$ac_try;;
3683 esac
3684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3685   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3686   ac_status=$?
3687   grep -v '^ *+' conftest.er1 >conftest.err
3688   rm -f conftest.er1
3689   cat conftest.err >&5
3690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691   (exit $ac_status); } >/dev/null; then
3692   if test -s conftest.err; then
3693     ac_cpp_err=$ac_c_preproc_warn_flag
3694     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3695   else
3696     ac_cpp_err=
3697   fi
3698 else
3699   ac_cpp_err=yes
3700 fi
3701 if test -z "$ac_cpp_err"; then
3702   :
3703 else
3704   echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.$ac_ext >&5
3706
3707   # Broken: fails on valid input.
3708 continue
3709 fi
3710
3711 rm -f conftest.err conftest.$ac_ext
3712
3713   # OK, works on sane cases.  Now check whether nonexistent headers
3714   # can be detected and how.
3715   cat >conftest.$ac_ext <<_ACEOF
3716 /* confdefs.h.  */
3717 _ACEOF
3718 cat confdefs.h >>conftest.$ac_ext
3719 cat >>conftest.$ac_ext <<_ACEOF
3720 /* end confdefs.h.  */
3721 #include <ac_nonexistent.h>
3722 _ACEOF
3723 if { (ac_try="$ac_cpp conftest.$ac_ext"
3724 case "(($ac_try" in
3725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726   *) ac_try_echo=$ac_try;;
3727 esac
3728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3729   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3730   ac_status=$?
3731   grep -v '^ *+' conftest.er1 >conftest.err
3732   rm -f conftest.er1
3733   cat conftest.err >&5
3734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735   (exit $ac_status); } >/dev/null; then
3736   if test -s conftest.err; then
3737     ac_cpp_err=$ac_c_preproc_warn_flag
3738     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3739   else
3740     ac_cpp_err=
3741   fi
3742 else
3743   ac_cpp_err=yes
3744 fi
3745 if test -z "$ac_cpp_err"; then
3746   # Broken: success on invalid input.
3747 continue
3748 else
3749   echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3751
3752   # Passes both tests.
3753 ac_preproc_ok=:
3754 break
3755 fi
3756
3757 rm -f conftest.err conftest.$ac_ext
3758
3759 done
3760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3761 rm -f conftest.err conftest.$ac_ext
3762 if $ac_preproc_ok; then
3763   break
3764 fi
3765
3766     done
3767     ac_cv_prog_CPP=$CPP
3768
3769 fi
3770   CPP=$ac_cv_prog_CPP
3771 else
3772   ac_cv_prog_CPP=$CPP
3773 fi
3774 { echo "$as_me:$LINENO: result: $CPP" >&5
3775 echo "${ECHO_T}$CPP" >&6; }
3776 ac_preproc_ok=false
3777 for ac_c_preproc_warn_flag in '' yes
3778 do
3779   # Use a header file that comes with gcc, so configuring glibc
3780   # with a fresh cross-compiler works.
3781   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3782   # <limits.h> exists even on freestanding compilers.
3783   # On the NeXT, cc -E runs the code through the compiler's parser,
3784   # not just through cpp. "Syntax error" is here to catch this case.
3785   cat >conftest.$ac_ext <<_ACEOF
3786 /* confdefs.h.  */
3787 _ACEOF
3788 cat confdefs.h >>conftest.$ac_ext
3789 cat >>conftest.$ac_ext <<_ACEOF
3790 /* end confdefs.h.  */
3791 #ifdef __STDC__
3792 # include <limits.h>
3793 #else
3794 # include <assert.h>
3795 #endif
3796                      Syntax error
3797 _ACEOF
3798 if { (ac_try="$ac_cpp conftest.$ac_ext"
3799 case "(($ac_try" in
3800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801   *) ac_try_echo=$ac_try;;
3802 esac
3803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3804   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3805   ac_status=$?
3806   grep -v '^ *+' conftest.er1 >conftest.err
3807   rm -f conftest.er1
3808   cat conftest.err >&5
3809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810   (exit $ac_status); } >/dev/null; then
3811   if test -s conftest.err; then
3812     ac_cpp_err=$ac_c_preproc_warn_flag
3813     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3814   else
3815     ac_cpp_err=
3816   fi
3817 else
3818   ac_cpp_err=yes
3819 fi
3820 if test -z "$ac_cpp_err"; then
3821   :
3822 else
3823   echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3825
3826   # Broken: fails on valid input.
3827 continue
3828 fi
3829
3830 rm -f conftest.err conftest.$ac_ext
3831
3832   # OK, works on sane cases.  Now check whether nonexistent headers
3833   # can be detected and how.
3834   cat >conftest.$ac_ext <<_ACEOF
3835 /* confdefs.h.  */
3836 _ACEOF
3837 cat confdefs.h >>conftest.$ac_ext
3838 cat >>conftest.$ac_ext <<_ACEOF
3839 /* end confdefs.h.  */
3840 #include <ac_nonexistent.h>
3841 _ACEOF
3842 if { (ac_try="$ac_cpp conftest.$ac_ext"
3843 case "(($ac_try" in
3844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845   *) ac_try_echo=$ac_try;;
3846 esac
3847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3848   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3849   ac_status=$?
3850   grep -v '^ *+' conftest.er1 >conftest.err
3851   rm -f conftest.er1
3852   cat conftest.err >&5
3853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854   (exit $ac_status); } >/dev/null; then
3855   if test -s conftest.err; then
3856     ac_cpp_err=$ac_c_preproc_warn_flag
3857     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3858   else
3859     ac_cpp_err=
3860   fi
3861 else
3862   ac_cpp_err=yes
3863 fi
3864 if test -z "$ac_cpp_err"; then
3865   # Broken: success on invalid input.
3866 continue
3867 else
3868   echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3870
3871   # Passes both tests.
3872 ac_preproc_ok=:
3873 break
3874 fi
3875
3876 rm -f conftest.err conftest.$ac_ext
3877
3878 done
3879 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3880 rm -f conftest.err conftest.$ac_ext
3881 if $ac_preproc_ok; then
3882   :
3883 else
3884   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3885 See \`config.log' for more details." >&5
3886 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3887 See \`config.log' for more details." >&2;}
3888    { (exit 1); exit 1; }; }
3889 fi
3890
3891 ac_ext=c
3892 ac_cpp='$CPP $CPPFLAGS'
3893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3896
3897
3898 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3899 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3900 if test "${ac_cv_path_GREP+set}" = set; then
3901   echo $ECHO_N "(cached) $ECHO_C" >&6
3902 else
3903   # Extract the first word of "grep ggrep" to use in msg output
3904 if test -z "$GREP"; then
3905 set dummy grep ggrep; ac_prog_name=$2
3906 if test "${ac_cv_path_GREP+set}" = set; then
3907   echo $ECHO_N "(cached) $ECHO_C" >&6
3908 else
3909   ac_path_GREP_found=false
3910 # Loop through the user's path and test for each of PROGNAME-LIST
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3913 do
3914   IFS=$as_save_IFS
3915   test -z "$as_dir" && as_dir=.
3916   for ac_prog in grep ggrep; do
3917   for ac_exec_ext in '' $ac_executable_extensions; do
3918     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3919     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3920     # Check for GNU ac_path_GREP and select it if it is found.
3921   # Check for GNU $ac_path_GREP
3922 case `"$ac_path_GREP" --version 2>&1` in
3923 *GNU*)
3924   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3925 *)
3926   ac_count=0
3927   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3928   while :
3929   do
3930     cat "conftest.in" "conftest.in" >"conftest.tmp"
3931     mv "conftest.tmp" "conftest.in"
3932     cp "conftest.in" "conftest.nl"
3933     echo 'GREP' >> "conftest.nl"
3934     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3935     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3936     ac_count=`expr $ac_count + 1`
3937     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3938       # Best one so far, save it but keep looking for a better one
3939       ac_cv_path_GREP="$ac_path_GREP"
3940       ac_path_GREP_max=$ac_count
3941     fi
3942     # 10*(2^10) chars as input seems more than enough
3943     test $ac_count -gt 10 && break
3944   done
3945   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3946 esac
3947
3948
3949     $ac_path_GREP_found && break 3
3950   done
3951 done
3952
3953 done
3954 IFS=$as_save_IFS
3955
3956
3957 fi
3958
3959 GREP="$ac_cv_path_GREP"
3960 if test -z "$GREP"; then
3961   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3962 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3963    { (exit 1); exit 1; }; }
3964 fi
3965
3966 else
3967   ac_cv_path_GREP=$GREP
3968 fi
3969
3970
3971 fi
3972 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3973 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3974  GREP="$ac_cv_path_GREP"
3975
3976
3977 { echo "$as_me:$LINENO: checking for egrep" >&5
3978 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3979 if test "${ac_cv_path_EGREP+set}" = set; then
3980   echo $ECHO_N "(cached) $ECHO_C" >&6
3981 else
3982   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3983    then ac_cv_path_EGREP="$GREP -E"
3984    else
3985      # Extract the first word of "egrep" to use in msg output
3986 if test -z "$EGREP"; then
3987 set dummy egrep; ac_prog_name=$2
3988 if test "${ac_cv_path_EGREP+set}" = set; then
3989   echo $ECHO_N "(cached) $ECHO_C" >&6
3990 else
3991   ac_path_EGREP_found=false
3992 # Loop through the user's path and test for each of PROGNAME-LIST
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3995 do
3996   IFS=$as_save_IFS
3997   test -z "$as_dir" && as_dir=.
3998   for ac_prog in egrep; do
3999   for ac_exec_ext in '' $ac_executable_extensions; do
4000     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4001     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4002     # Check for GNU ac_path_EGREP and select it if it is found.
4003   # Check for GNU $ac_path_EGREP
4004 case `"$ac_path_EGREP" --version 2>&1` in
4005 *GNU*)
4006   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4007 *)
4008   ac_count=0
4009   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4010   while :
4011   do
4012     cat "conftest.in" "conftest.in" >"conftest.tmp"
4013     mv "conftest.tmp" "conftest.in"
4014     cp "conftest.in" "conftest.nl"
4015     echo 'EGREP' >> "conftest.nl"
4016     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4017     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4018     ac_count=`expr $ac_count + 1`
4019     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4020       # Best one so far, save it but keep looking for a better one
4021       ac_cv_path_EGREP="$ac_path_EGREP"
4022       ac_path_EGREP_max=$ac_count
4023     fi
4024     # 10*(2^10) chars as input seems more than enough
4025     test $ac_count -gt 10 && break
4026   done
4027   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4028 esac
4029
4030
4031     $ac_path_EGREP_found && break 3
4032   done
4033 done
4034
4035 done
4036 IFS=$as_save_IFS
4037
4038
4039 fi
4040
4041 EGREP="$ac_cv_path_EGREP"
4042 if test -z "$EGREP"; then
4043   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4044 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4045    { (exit 1); exit 1; }; }
4046 fi
4047
4048 else
4049   ac_cv_path_EGREP=$EGREP
4050 fi
4051
4052
4053    fi
4054 fi
4055 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4056 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4057  EGREP="$ac_cv_path_EGREP"
4058
4059
4060 if test $ac_cv_c_compiler_gnu = yes; then
4061     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4062 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4063 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4064   echo $ECHO_N "(cached) $ECHO_C" >&6
4065 else
4066     ac_pattern="Autoconf.*'x'"
4067   cat >conftest.$ac_ext <<_ACEOF
4068 /* confdefs.h.  */
4069 _ACEOF
4070 cat confdefs.h >>conftest.$ac_ext
4071 cat >>conftest.$ac_ext <<_ACEOF
4072 /* end confdefs.h.  */
4073 #include <sgtty.h>
4074 Autoconf TIOCGETP
4075 _ACEOF
4076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4077   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4078   ac_cv_prog_gcc_traditional=yes
4079 else
4080   ac_cv_prog_gcc_traditional=no
4081 fi
4082 rm -f conftest*
4083
4084
4085   if test $ac_cv_prog_gcc_traditional = no; then
4086     cat >conftest.$ac_ext <<_ACEOF
4087 /* confdefs.h.  */
4088 _ACEOF
4089 cat confdefs.h >>conftest.$ac_ext
4090 cat >>conftest.$ac_ext <<_ACEOF
4091 /* end confdefs.h.  */
4092 #include <termio.h>
4093 Autoconf TCGETA
4094 _ACEOF
4095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4096   $EGREP "$ac_pattern" >/dev/null 2>&1; then
4097   ac_cv_prog_gcc_traditional=yes
4098 fi
4099 rm -f conftest*
4100
4101   fi
4102 fi
4103 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4104 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4105   if test $ac_cv_prog_gcc_traditional = yes; then
4106     CC="$CC -traditional"
4107   fi
4108 fi
4109
4110 BASECC=`basename $CC`
4111 have_gcc=no
4112 if test "x$BASECC" = xgcc; then
4113    cat >>confdefs.h <<\_ACEOF
4114 #define HAVE_GCC 1
4115 _ACEOF
4116
4117    have_gcc=yes
4118 fi
4119 # Extract the first word of "$CXX", so it can be a program name with args.
4120 set dummy $CXX; ac_word=$2
4121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4123 if test "${ac_cv_path_CXX+set}" = set; then
4124   echo $ECHO_N "(cached) $ECHO_C" >&6
4125 else
4126   case $CXX in
4127   [\\/]* | ?:[\\/]*)
4128   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4129   ;;
4130   *)
4131   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH
4133 do
4134   IFS=$as_save_IFS
4135   test -z "$as_dir" && as_dir=.
4136   for ac_exec_ext in '' $ac_executable_extensions; do
4137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4138     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4139     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4140     break 2
4141   fi
4142 done
4143 done
4144 IFS=$as_save_IFS
4145
4146   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4147   ;;
4148 esac
4149 fi
4150 CXX=$ac_cv_path_CXX
4151 if test -n "$CXX"; then
4152   { echo "$as_me:$LINENO: result: $CXX" >&5
4153 echo "${ECHO_T}$CXX" >&6; }
4154 else
4155   { echo "$as_me:$LINENO: result: no" >&5
4156 echo "${ECHO_T}no" >&6; }
4157 fi
4158
4159
4160 if test ! -e $CXX; then
4161    { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4162 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4163    { (exit 1); exit 1; }; }
4164 fi
4165
4166 # Find a good install program.  We prefer a C program (faster),
4167 # so one script is as good as another.  But avoid the broken or
4168 # incompatible versions:
4169 # SysV /etc/install, /usr/sbin/install
4170 # SunOS /usr/etc/install
4171 # IRIX /sbin/install
4172 # AIX /bin/install
4173 # AmigaOS /C/install, which installs bootblocks on floppy discs
4174 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4175 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4176 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4177 # OS/2's system install, which has a completely different semantic
4178 # ./install, which can be erroneously created by make from ./install.sh.
4179 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4180 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4181 if test -z "$INSTALL"; then
4182 if test "${ac_cv_path_install+set}" = set; then
4183   echo $ECHO_N "(cached) $ECHO_C" >&6
4184 else
4185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 for as_dir in $PATH
4187 do
4188   IFS=$as_save_IFS
4189   test -z "$as_dir" && as_dir=.
4190   # Account for people who put trailing slashes in PATH elements.
4191 case $as_dir/ in
4192   ./ | .// | /cC/* | \
4193   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4194   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4195   /usr/ucb/* ) ;;
4196   *)
4197     # OSF1 and SCO ODT 3.0 have their own names for install.
4198     # Don't use installbsd from OSF since it installs stuff as root
4199     # by default.
4200     for ac_prog in ginstall scoinst install; do
4201       for ac_exec_ext in '' $ac_executable_extensions; do
4202         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4203           if test $ac_prog = install &&
4204             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4205             # AIX install.  It has an incompatible calling convention.
4206             :
4207           elif test $ac_prog = install &&
4208             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4209             # program-specific install script used by HP pwplus--don't use.
4210             :
4211           else
4212             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4213             break 3
4214           fi
4215         fi
4216       done
4217     done
4218     ;;
4219 esac
4220 done
4221 IFS=$as_save_IFS
4222
4223
4224 fi
4225   if test "${ac_cv_path_install+set}" = set; then
4226     INSTALL=$ac_cv_path_install
4227   else
4228     # As a last resort, use the slow shell script.  Don't cache a
4229     # value for INSTALL within a source directory, because that will
4230     # break other packages using the cache if that directory is
4231     # removed, or if the value is a relative name.
4232     INSTALL=$ac_install_sh
4233   fi
4234 fi
4235 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4236 echo "${ECHO_T}$INSTALL" >&6; }
4237
4238 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4239 # It thinks the first close brace ends the variable substitution.
4240 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4241
4242 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4243
4244 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4245
4246 if test -n "$ac_tool_prefix"; then
4247   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4248 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4251 if test "${ac_cv_prog_RANLIB+set}" = set; then
4252   echo $ECHO_N "(cached) $ECHO_C" >&6
4253 else
4254   if test -n "$RANLIB"; then
4255   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4256 else
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4258 for as_dir in $PATH
4259 do
4260   IFS=$as_save_IFS
4261   test -z "$as_dir" && as_dir=.
4262   for ac_exec_ext in '' $ac_executable_extensions; do
4263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4264     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4266     break 2
4267   fi
4268 done
4269 done
4270 IFS=$as_save_IFS
4271
4272 fi
4273 fi
4274 RANLIB=$ac_cv_prog_RANLIB
4275 if test -n "$RANLIB"; then
4276   { echo "$as_me:$LINENO: result: $RANLIB" >&5
4277 echo "${ECHO_T}$RANLIB" >&6; }
4278 else
4279   { echo "$as_me:$LINENO: result: no" >&5
4280 echo "${ECHO_T}no" >&6; }
4281 fi
4282
4283
4284 fi
4285 if test -z "$ac_cv_prog_RANLIB"; then
4286   ac_ct_RANLIB=$RANLIB
4287   # Extract the first word of "ranlib", so it can be a program name with args.
4288 set dummy ranlib; ac_word=$2
4289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4291 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4292   echo $ECHO_N "(cached) $ECHO_C" >&6
4293 else
4294   if test -n "$ac_ct_RANLIB"; then
4295   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4296 else
4297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 for as_dir in $PATH
4299 do
4300   IFS=$as_save_IFS
4301   test -z "$as_dir" && as_dir=.
4302   for ac_exec_ext in '' $ac_executable_extensions; do
4303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4304     ac_cv_prog_ac_ct_RANLIB="ranlib"
4305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4306     break 2
4307   fi
4308 done
4309 done
4310 IFS=$as_save_IFS
4311
4312 fi
4313 fi
4314 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4315 if test -n "$ac_ct_RANLIB"; then
4316   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4317 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4318 else
4319   { echo "$as_me:$LINENO: result: no" >&5
4320 echo "${ECHO_T}no" >&6; }
4321 fi
4322
4323   if test "x$ac_ct_RANLIB" = x; then
4324     RANLIB=":"
4325   else
4326     case $cross_compiling:$ac_tool_warned in
4327 yes:)
4328 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4329 whose name does not start with the host triplet.  If you think this
4330 configuration is useful to you, please write to autoconf@gnu.org." >&5
4331 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4332 whose name does not start with the host triplet.  If you think this
4333 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4334 ac_tool_warned=yes ;;
4335 esac
4336     RANLIB=$ac_ct_RANLIB
4337   fi
4338 else
4339   RANLIB="$ac_cv_prog_RANLIB"
4340 fi
4341
4342 # Extract the first word of "mv", so it can be a program name with args.
4343 set dummy mv; ac_word=$2
4344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4346 if test "${ac_cv_path_MV+set}" = set; then
4347   echo $ECHO_N "(cached) $ECHO_C" >&6
4348 else
4349   case $MV in
4350   [\\/]* | ?:[\\/]*)
4351   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4352   ;;
4353   *)
4354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355 for as_dir in $PATH
4356 do
4357   IFS=$as_save_IFS
4358   test -z "$as_dir" && as_dir=.
4359   for ac_exec_ext in '' $ac_executable_extensions; do
4360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4361     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4363     break 2
4364   fi
4365 done
4366 done
4367 IFS=$as_save_IFS
4368
4369   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4370   ;;
4371 esac
4372 fi
4373 MV=$ac_cv_path_MV
4374 if test -n "$MV"; then
4375   { echo "$as_me:$LINENO: result: $MV" >&5
4376 echo "${ECHO_T}$MV" >&6; }
4377 else
4378   { echo "$as_me:$LINENO: result: no" >&5
4379 echo "${ECHO_T}no" >&6; }
4380 fi
4381
4382
4383 # Extract the first word of "rm", so it can be a program name with args.
4384 set dummy rm; ac_word=$2
4385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4387 if test "${ac_cv_path_RM+set}" = set; then
4388   echo $ECHO_N "(cached) $ECHO_C" >&6
4389 else
4390   case $RM in
4391   [\\/]* | ?:[\\/]*)
4392   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4393   ;;
4394   *)
4395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4396 for as_dir in $PATH
4397 do
4398   IFS=$as_save_IFS
4399   test -z "$as_dir" && as_dir=.
4400   for ac_exec_ext in '' $ac_executable_extensions; do
4401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4402     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4404     break 2
4405   fi
4406 done
4407 done
4408 IFS=$as_save_IFS
4409
4410   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4411   ;;
4412 esac
4413 fi
4414 RM=$ac_cv_path_RM
4415 if test -n "$RM"; then
4416   { echo "$as_me:$LINENO: result: $RM" >&5
4417 echo "${ECHO_T}$RM" >&6; }
4418 else
4419   { echo "$as_me:$LINENO: result: no" >&5
4420 echo "${ECHO_T}no" >&6; }
4421 fi
4422
4423
4424 # Extract the first word of "cp", so it can be a program name with args.
4425 set dummy cp; ac_word=$2
4426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4428 if test "${ac_cv_path_CP+set}" = set; then
4429   echo $ECHO_N "(cached) $ECHO_C" >&6
4430 else
4431   case $CP in
4432   [\\/]* | ?:[\\/]*)
4433   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4434   ;;
4435   *)
4436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 for as_dir in $PATH
4438 do
4439   IFS=$as_save_IFS
4440   test -z "$as_dir" && as_dir=.
4441   for ac_exec_ext in '' $ac_executable_extensions; do
4442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4443     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4444     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4445     break 2
4446   fi
4447 done
4448 done
4449 IFS=$as_save_IFS
4450
4451   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4452   ;;
4453 esac
4454 fi
4455 CP=$ac_cv_path_CP
4456 if test -n "$CP"; then
4457   { echo "$as_me:$LINENO: result: $CP" >&5
4458 echo "${ECHO_T}$CP" >&6; }
4459 else
4460   { echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6; }
4462 fi
4463
4464
4465 # Extract the first word of "sed", so it can be a program name with args.
4466 set dummy sed; ac_word=$2
4467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469 if test "${ac_cv_path_SED+set}" = set; then
4470   echo $ECHO_N "(cached) $ECHO_C" >&6
4471 else
4472   case $SED in
4473   [\\/]* | ?:[\\/]*)
4474   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4475   ;;
4476   *)
4477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 for as_dir in $PATH
4479 do
4480   IFS=$as_save_IFS
4481   test -z "$as_dir" && as_dir=.
4482   for ac_exec_ext in '' $ac_executable_extensions; do
4483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4484     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4485     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4486     break 2
4487   fi
4488 done
4489 done
4490 IFS=$as_save_IFS
4491
4492   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4493   ;;
4494 esac
4495 fi
4496 SED=$ac_cv_path_SED
4497 if test -n "$SED"; then
4498   { echo "$as_me:$LINENO: result: $SED" >&5
4499 echo "${ECHO_T}$SED" >&6; }
4500 else
4501   { echo "$as_me:$LINENO: result: no" >&5
4502 echo "${ECHO_T}no" >&6; }
4503 fi
4504
4505
4506 # Extract the first word of "echo", so it can be a program name with args.
4507 set dummy echo; ac_word=$2
4508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4510 if test "${ac_cv_path_ECHO+set}" = set; then
4511   echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513   case $ECHO in
4514   [\\/]* | ?:[\\/]*)
4515   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4516   ;;
4517   *)
4518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 for as_dir in $PATH
4520 do
4521   IFS=$as_save_IFS
4522   test -z "$as_dir" && as_dir=.
4523   for ac_exec_ext in '' $ac_executable_extensions; do
4524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4525     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4526     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4527     break 2
4528   fi
4529 done
4530 done
4531 IFS=$as_save_IFS
4532
4533   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4534   ;;
4535 esac
4536 fi
4537 ECHO=$ac_cv_path_ECHO
4538 if test -n "$ECHO"; then
4539   { echo "$as_me:$LINENO: result: $ECHO" >&5
4540 echo "${ECHO_T}$ECHO" >&6; }
4541 else
4542   { echo "$as_me:$LINENO: result: no" >&5
4543 echo "${ECHO_T}no" >&6; }
4544 fi
4545
4546
4547 # Extract the first word of "cmp", so it can be a program name with args.
4548 set dummy cmp; ac_word=$2
4549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4551 if test "${ac_cv_path_CMP+set}" = set; then
4552   echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554   case $CMP in
4555   [\\/]* | ?:[\\/]*)
4556   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4557   ;;
4558   *)
4559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 for as_dir in $PATH
4561 do
4562   IFS=$as_save_IFS
4563   test -z "$as_dir" && as_dir=.
4564   for ac_exec_ext in '' $ac_executable_extensions; do
4565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4566     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4567     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4568     break 2
4569   fi
4570 done
4571 done
4572 IFS=$as_save_IFS
4573
4574   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4575   ;;
4576 esac
4577 fi
4578 CMP=$ac_cv_path_CMP
4579 if test -n "$CMP"; then
4580   { echo "$as_me:$LINENO: result: $CMP" >&5
4581 echo "${ECHO_T}$CMP" >&6; }
4582 else
4583   { echo "$as_me:$LINENO: result: no" >&5
4584 echo "${ECHO_T}no" >&6; }
4585 fi
4586
4587
4588 # Extract the first word of "tbl", so it can be a program name with args.
4589 set dummy tbl; ac_word=$2
4590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4592 if test "${ac_cv_path_TBL+set}" = set; then
4593   echo $ECHO_N "(cached) $ECHO_C" >&6
4594 else
4595   case $TBL in
4596   [\\/]* | ?:[\\/]*)
4597   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4598   ;;
4599   *)
4600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601 for as_dir in $PATH
4602 do
4603   IFS=$as_save_IFS
4604   test -z "$as_dir" && as_dir=.
4605   for ac_exec_ext in '' $ac_executable_extensions; do
4606   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4607     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4608     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4609     break 2
4610   fi
4611 done
4612 done
4613 IFS=$as_save_IFS
4614
4615   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4616   ;;
4617 esac
4618 fi
4619 TBL=$ac_cv_path_TBL
4620 if test -n "$TBL"; then
4621   { echo "$as_me:$LINENO: result: $TBL" >&5
4622 echo "${ECHO_T}$TBL" >&6; }
4623 else
4624   { echo "$as_me:$LINENO: result: no" >&5
4625 echo "${ECHO_T}no" >&6; }
4626 fi
4627
4628
4629 # Extract the first word of "ar", so it can be a program name with args.
4630 set dummy ar; ac_word=$2
4631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4633 if test "${ac_cv_path_AR+set}" = set; then
4634   echo $ECHO_N "(cached) $ECHO_C" >&6
4635 else
4636   case $AR in
4637   [\\/]* | ?:[\\/]*)
4638   ac_cv_path_AR="$AR" # Let the user override the test with a path.
4639   ;;
4640   *)
4641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH
4643 do
4644   IFS=$as_save_IFS
4645   test -z "$as_dir" && as_dir=.
4646   for ac_exec_ext in '' $ac_executable_extensions; do
4647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4648     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4650     break 2
4651   fi
4652 done
4653 done
4654 IFS=$as_save_IFS
4655
4656   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4657   ;;
4658 esac
4659 fi
4660 AR=$ac_cv_path_AR
4661 if test -n "$AR"; then
4662   { echo "$as_me:$LINENO: result: $AR" >&5
4663 echo "${ECHO_T}$AR" >&6; }
4664 else
4665   { echo "$as_me:$LINENO: result: no" >&5
4666 echo "${ECHO_T}no" >&6; }
4667 fi
4668
4669
4670 # Extract the first word of "openssl", so it can be a program name with args.
4671 set dummy openssl; ac_word=$2
4672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4674 if test "${ac_cv_path_OPENSSL+set}" = set; then
4675   echo $ECHO_N "(cached) $ECHO_C" >&6
4676 else
4677   case $OPENSSL in
4678   [\\/]* | ?:[\\/]*)
4679   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4680   ;;
4681   *)
4682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH
4684 do
4685   IFS=$as_save_IFS
4686   test -z "$as_dir" && as_dir=.
4687   for ac_exec_ext in '' $ac_executable_extensions; do
4688   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4689     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4690     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4691     break 2
4692   fi
4693 done
4694 done
4695 IFS=$as_save_IFS
4696
4697   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4698   ;;
4699 esac
4700 fi
4701 OPENSSL=$ac_cv_path_OPENSSL
4702 if test -n "$OPENSSL"; then
4703   { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4704 echo "${ECHO_T}$OPENSSL" >&6; }
4705 else
4706   { echo "$as_me:$LINENO: result: no" >&5
4707 echo "${ECHO_T}no" >&6; }
4708 fi
4709
4710
4711 # Extract the first word of "mtx", so it can be a program name with args.
4712 set dummy mtx; ac_word=$2
4713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4715 if test "${ac_cv_path_MTX+set}" = set; then
4716   echo $ECHO_N "(cached) $ECHO_C" >&6
4717 else
4718   case $MTX in
4719   [\\/]* | ?:[\\/]*)
4720   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4721   ;;
4722   *)
4723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 for as_dir in $PATH
4725 do
4726   IFS=$as_save_IFS
4727   test -z "$as_dir" && as_dir=.
4728   for ac_exec_ext in '' $ac_executable_extensions; do
4729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4730     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4731     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4732     break 2
4733   fi
4734 done
4735 done
4736 IFS=$as_save_IFS
4737
4738   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4739   ;;
4740 esac
4741 fi
4742 MTX=$ac_cv_path_MTX
4743 if test -n "$MTX"; then
4744   { echo "$as_me:$LINENO: result: $MTX" >&5
4745 echo "${ECHO_T}$MTX" >&6; }
4746 else
4747   { echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6; }
4749 fi
4750
4751
4752 # Extract the first word of "dd", so it can be a program name with args.
4753 set dummy dd; ac_word=$2
4754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4756 if test "${ac_cv_path_DD+set}" = set; then
4757   echo $ECHO_N "(cached) $ECHO_C" >&6
4758 else
4759   case $DD in
4760   [\\/]* | ?:[\\/]*)
4761   ac_cv_path_DD="$DD" # Let the user override the test with a path.
4762   ;;
4763   *)
4764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4766 do
4767   IFS=$as_save_IFS
4768   test -z "$as_dir" && as_dir=.
4769   for ac_exec_ext in '' $ac_executable_extensions; do
4770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4771     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4773     break 2
4774   fi
4775 done
4776 done
4777 IFS=$as_save_IFS
4778
4779   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4780   ;;
4781 esac
4782 fi
4783 DD=$ac_cv_path_DD
4784 if test -n "$DD"; then
4785   { echo "$as_me:$LINENO: result: $DD" >&5
4786 echo "${ECHO_T}$DD" >&6; }
4787 else
4788   { echo "$as_me:$LINENO: result: no" >&5
4789 echo "${ECHO_T}no" >&6; }
4790 fi
4791
4792
4793 # Extract the first word of "mkisofs", so it can be a program name with args.
4794 set dummy mkisofs; ac_word=$2
4795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4797 if test "${ac_cv_path_MKISOFS+set}" = set; then
4798   echo $ECHO_N "(cached) $ECHO_C" >&6
4799 else
4800   case $MKISOFS in
4801   [\\/]* | ?:[\\/]*)
4802   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4803   ;;
4804   *)
4805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 for as_dir in $PATH
4807 do
4808   IFS=$as_save_IFS
4809   test -z "$as_dir" && as_dir=.
4810   for ac_exec_ext in '' $ac_executable_extensions; do
4811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4812     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4814     break 2
4815   fi
4816 done
4817 done
4818 IFS=$as_save_IFS
4819
4820   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4821   ;;
4822 esac
4823 fi
4824 MKISOFS=$ac_cv_path_MKISOFS
4825 if test -n "$MKISOFS"; then
4826   { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4827 echo "${ECHO_T}$MKISOFS" >&6; }
4828 else
4829   { echo "$as_me:$LINENO: result: no" >&5
4830 echo "${ECHO_T}no" >&6; }
4831 fi
4832
4833
4834 # Extract the first word of "python", so it can be a program name with args.
4835 set dummy python; ac_word=$2
4836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4838 if test "${ac_cv_path_PYTHON+set}" = set; then
4839   echo $ECHO_N "(cached) $ECHO_C" >&6
4840 else
4841   case $PYTHON in
4842   [\\/]* | ?:[\\/]*)
4843   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4844   ;;
4845   *)
4846   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 for as_dir in $PATH
4848 do
4849   IFS=$as_save_IFS
4850   test -z "$as_dir" && as_dir=.
4851   for ac_exec_ext in '' $ac_executable_extensions; do
4852   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4853     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4854     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4855     break 2
4856   fi
4857 done
4858 done
4859 IFS=$as_save_IFS
4860
4861   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4862   ;;
4863 esac
4864 fi
4865 PYTHON=$ac_cv_path_PYTHON
4866 if test -n "$PYTHON"; then
4867   { echo "$as_me:$LINENO: result: $PYTHON" >&5
4868 echo "${ECHO_T}$PYTHON" >&6; }
4869 else
4870   { echo "$as_me:$LINENO: result: no" >&5
4871 echo "${ECHO_T}no" >&6; }
4872 fi
4873
4874
4875 # Extract the first word of "growisofs", so it can be a program name with args.
4876 set dummy growisofs; ac_word=$2
4877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4879 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4880   echo $ECHO_N "(cached) $ECHO_C" >&6
4881 else
4882   case $GROWISOFS in
4883   [\\/]* | ?:[\\/]*)
4884   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4885   ;;
4886   *)
4887   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888 for as_dir in $PATH
4889 do
4890   IFS=$as_save_IFS
4891   test -z "$as_dir" && as_dir=.
4892   for ac_exec_ext in '' $ac_executable_extensions; do
4893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4894     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4895     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4896     break 2
4897   fi
4898 done
4899 done
4900 IFS=$as_save_IFS
4901
4902   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4903   ;;
4904 esac
4905 fi
4906 GROWISOFS=$ac_cv_path_GROWISOFS
4907 if test -n "$GROWISOFS"; then
4908   { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4909 echo "${ECHO_T}$GROWISOFS" >&6; }
4910 else
4911   { echo "$as_me:$LINENO: result: no" >&5
4912 echo "${ECHO_T}no" >&6; }
4913 fi
4914
4915
4916 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4917 set dummy dvd+rw-mediainfo; ac_word=$2
4918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4920 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4921   echo $ECHO_N "(cached) $ECHO_C" >&6
4922 else
4923   case $DVDRWMEDIAINFO in
4924   [\\/]* | ?:[\\/]*)
4925   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4926   ;;
4927   *)
4928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH
4930 do
4931   IFS=$as_save_IFS
4932   test -z "$as_dir" && as_dir=.
4933   for ac_exec_ext in '' $ac_executable_extensions; do
4934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4935     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4936     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4937     break 2
4938   fi
4939 done
4940 done
4941 IFS=$as_save_IFS
4942
4943   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4944   ;;
4945 esac
4946 fi
4947 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4948 if test -n "$DVDRWMEDIAINFO"; then
4949   { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4950 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4951 else
4952   { echo "$as_me:$LINENO: result: no" >&5
4953 echo "${ECHO_T}no" >&6; }
4954 fi
4955
4956
4957 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4958 set dummy dvd+rw-format; ac_word=$2
4959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4961 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4962   echo $ECHO_N "(cached) $ECHO_C" >&6
4963 else
4964   case $DVDRWFORMAT in
4965   [\\/]* | ?:[\\/]*)
4966   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4967   ;;
4968   *)
4969   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 for as_dir in $PATH
4971 do
4972   IFS=$as_save_IFS
4973   test -z "$as_dir" && as_dir=.
4974   for ac_exec_ext in '' $ac_executable_extensions; do
4975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4976     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4978     break 2
4979   fi
4980 done
4981 done
4982 IFS=$as_save_IFS
4983
4984   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4985   ;;
4986 esac
4987 fi
4988 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4989 if test -n "$DVDRWFORMAT"; then
4990   { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4991 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4992 else
4993   { echo "$as_me:$LINENO: result: no" >&5
4994 echo "${ECHO_T}no" >&6; }
4995 fi
4996
4997
4998 # Extract the first word of "pkg-config", so it can be a program name with args.
4999 set dummy pkg-config; ac_word=$2
5000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5002 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
5003   echo $ECHO_N "(cached) $ECHO_C" >&6
5004 else
5005   case $PKGCONFIG in
5006   [\\/]* | ?:[\\/]*)
5007   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5008   ;;
5009   *)
5010   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5012 do
5013   IFS=$as_save_IFS
5014   test -z "$as_dir" && as_dir=.
5015   for ac_exec_ext in '' $ac_executable_extensions; do
5016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5017     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5018     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5019     break 2
5020   fi
5021 done
5022 done
5023 IFS=$as_save_IFS
5024
5025   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5026   ;;
5027 esac
5028 fi
5029 PKGCONFIG=$ac_cv_path_PKGCONFIG
5030 if test -n "$PKGCONFIG"; then
5031   { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5032 echo "${ECHO_T}$PKGCONFIG" >&6; }
5033 else
5034   { echo "$as_me:$LINENO: result: no" >&5
5035 echo "${ECHO_T}no" >&6; }
5036 fi
5037
5038
5039
5040 if test "x$WXCONFIG" = x; then
5041   WXCONFIG=wx-config
5042 fi
5043 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5044 set dummy ${WXCONFIG}; ac_word=$2
5045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5047 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5048   echo $ECHO_N "(cached) $ECHO_C" >&6
5049 else
5050   case $WXCONFIG in
5051   [\\/]* | ?:[\\/]*)
5052   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5053   ;;
5054   *)
5055   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5057 do
5058   IFS=$as_save_IFS
5059   test -z "$as_dir" && as_dir=.
5060   for ac_exec_ext in '' $ac_executable_extensions; do
5061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5062     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5064     break 2
5065   fi
5066 done
5067 done
5068 IFS=$as_save_IFS
5069
5070   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5071   ;;
5072 esac
5073 fi
5074 WXCONFIG=$ac_cv_path_WXCONFIG
5075 if test -n "$WXCONFIG"; then
5076   { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5077 echo "${ECHO_T}$WXCONFIG" >&6; }
5078 else
5079   { echo "$as_me:$LINENO: result: no" >&5
5080 echo "${ECHO_T}no" >&6; }
5081 fi
5082
5083
5084
5085 # Extract the first word of "cdrecord", so it can be a program name with args.
5086 set dummy cdrecord; ac_word=$2
5087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5089 if test "${ac_cv_path_CDRECORD+set}" = set; then
5090   echo $ECHO_N "(cached) $ECHO_C" >&6
5091 else
5092   case $CDRECORD in
5093   [\\/]* | ?:[\\/]*)
5094   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5095   ;;
5096   *)
5097   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH
5099 do
5100   IFS=$as_save_IFS
5101   test -z "$as_dir" && as_dir=.
5102   for ac_exec_ext in '' $ac_executable_extensions; do
5103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5104     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5106     break 2
5107   fi
5108 done
5109 done
5110 IFS=$as_save_IFS
5111
5112   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5113   ;;
5114 esac
5115 fi
5116 CDRECORD=$ac_cv_path_CDRECORD
5117 if test -n "$CDRECORD"; then
5118   { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5119 echo "${ECHO_T}$CDRECORD" >&6; }
5120 else
5121   { echo "$as_me:$LINENO: result: no" >&5
5122 echo "${ECHO_T}no" >&6; }
5123 fi
5124
5125
5126 # Extract the first word of "pidof", so it can be a program name with args.
5127 set dummy pidof; ac_word=$2
5128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5130 if test "${ac_cv_path_PIDOF+set}" = set; then
5131   echo $ECHO_N "(cached) $ECHO_C" >&6
5132 else
5133   case $PIDOF in
5134   [\\/]* | ?:[\\/]*)
5135   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5136   ;;
5137   *)
5138   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 for as_dir in $PATH
5140 do
5141   IFS=$as_save_IFS
5142   test -z "$as_dir" && as_dir=.
5143   for ac_exec_ext in '' $ac_executable_extensions; do
5144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5145     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5147     break 2
5148   fi
5149 done
5150 done
5151 IFS=$as_save_IFS
5152
5153   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5154   ;;
5155 esac
5156 fi
5157 PIDOF=$ac_cv_path_PIDOF
5158 if test -n "$PIDOF"; then
5159   { echo "$as_me:$LINENO: result: $PIDOF" >&5
5160 echo "${ECHO_T}$PIDOF" >&6; }
5161 else
5162   { echo "$as_me:$LINENO: result: no" >&5
5163 echo "${ECHO_T}no" >&6; }
5164 fi
5165
5166
5167 for ac_prog in gawk mawk nawk awk
5168 do
5169   # Extract the first word of "$ac_prog", so it can be a program name with args.
5170 set dummy $ac_prog; ac_word=$2
5171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5173 if test "${ac_cv_prog_AWK+set}" = set; then
5174   echo $ECHO_N "(cached) $ECHO_C" >&6
5175 else
5176   if test -n "$AWK"; then
5177   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5178 else
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 for as_dir in $PATH
5181 do
5182   IFS=$as_save_IFS
5183   test -z "$as_dir" && as_dir=.
5184   for ac_exec_ext in '' $ac_executable_extensions; do
5185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5186     ac_cv_prog_AWK="$ac_prog"
5187     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5188     break 2
5189   fi
5190 done
5191 done
5192 IFS=$as_save_IFS
5193
5194 fi
5195 fi
5196 AWK=$ac_cv_prog_AWK
5197 if test -n "$AWK"; then
5198   { echo "$as_me:$LINENO: result: $AWK" >&5
5199 echo "${ECHO_T}$AWK" >&6; }
5200 else
5201   { echo "$as_me:$LINENO: result: no" >&5
5202 echo "${ECHO_T}no" >&6; }
5203 fi
5204
5205
5206   test -n "$AWK" && break
5207 done
5208
5209 # Some AWK programs fail, so test it and warn the user
5210 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5211       { if ((prog == $2) || (("(" prog ")") == $2) ||
5212            (("" prog "") == $2) ||
5213            ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5214 else
5215   { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5216    The regex engine of $AWK is too broken to be used you
5217    might want to install GNU AWK.
5218    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5219 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5220    The regex engine of $AWK is too broken to be used you
5221    might want to install GNU AWK.
5222    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5223    { (exit 1); exit 1; }; }
5224 fi
5225 THE_AWK=$AWK
5226 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5227 set dummy $THE_AWK; ac_word=$2
5228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5230 if test "${ac_cv_path_AWK+set}" = set; then
5231   echo $ECHO_N "(cached) $ECHO_C" >&6
5232 else
5233   case $AWK in
5234   [\\/]* | ?:[\\/]*)
5235   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5236   ;;
5237   *)
5238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239 for as_dir in $PATH
5240 do
5241   IFS=$as_save_IFS
5242   test -z "$as_dir" && as_dir=.
5243   for ac_exec_ext in '' $ac_executable_extensions; do
5244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5245     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5247     break 2
5248   fi
5249 done
5250 done
5251 IFS=$as_save_IFS
5252
5253   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5254   ;;
5255 esac
5256 fi
5257 AWK=$ac_cv_path_AWK
5258 if test -n "$AWK"; then
5259   { echo "$as_me:$LINENO: result: $AWK" >&5
5260 echo "${ECHO_T}$AWK" >&6; }
5261 else
5262   { echo "$as_me:$LINENO: result: no" >&5
5263 echo "${ECHO_T}no" >&6; }
5264 fi
5265
5266
5267
5268 test -n "$ARFLAG" || ARFLAGS="cr"
5269
5270
5271 MAKE_SHELL=/bin/sh
5272
5273
5274
5275
5276
5277
5278
5279 # Make sure we can run config.sub.
5280 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5281   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5282 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5283    { (exit 1); exit 1; }; }
5284
5285 { echo "$as_me:$LINENO: checking build system type" >&5
5286 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5287 if test "${ac_cv_build+set}" = set; then
5288   echo $ECHO_N "(cached) $ECHO_C" >&6
5289 else
5290   ac_build_alias=$build_alias
5291 test "x$ac_build_alias" = x &&
5292   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5293 test "x$ac_build_alias" = x &&
5294   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5295 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5296    { (exit 1); exit 1; }; }
5297 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5298   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5299 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5300    { (exit 1); exit 1; }; }
5301
5302 fi
5303 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5304 echo "${ECHO_T}$ac_cv_build" >&6; }
5305 case $ac_cv_build in
5306 *-*-*) ;;
5307 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5308 echo "$as_me: error: invalid value of canonical build" >&2;}
5309    { (exit 1); exit 1; }; };;
5310 esac
5311 build=$ac_cv_build
5312 ac_save_IFS=$IFS; IFS='-'
5313 set x $ac_cv_build
5314 shift
5315 build_cpu=$1
5316 build_vendor=$2
5317 shift; shift
5318 # Remember, the first character of IFS is used to create $*,
5319 # except with old shells:
5320 build_os=$*
5321 IFS=$ac_save_IFS
5322 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5323
5324
5325
5326 { echo "$as_me:$LINENO: checking host system type" >&5
5327 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5328 if test "${ac_cv_host+set}" = set; then
5329   echo $ECHO_N "(cached) $ECHO_C" >&6
5330 else
5331   if test "x$host_alias" = x; then
5332   ac_cv_host=$ac_cv_build
5333 else
5334   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5335     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5336 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5337    { (exit 1); exit 1; }; }
5338 fi
5339
5340 fi
5341 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5342 echo "${ECHO_T}$ac_cv_host" >&6; }
5343 case $ac_cv_host in
5344 *-*-*) ;;
5345 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5346 echo "$as_me: error: invalid value of canonical host" >&2;}
5347    { (exit 1); exit 1; }; };;
5348 esac
5349 host=$ac_cv_host
5350 ac_save_IFS=$IFS; IFS='-'
5351 set x $ac_cv_host
5352 shift
5353 host_cpu=$1
5354 host_vendor=$2
5355 shift; shift
5356 # Remember, the first character of IFS is used to create $*,
5357 # except with old shells:
5358 host_os=$*
5359 IFS=$ac_save_IFS
5360 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5361
5362
5363 case $host_os in
5364   *cygwin* ) CYGWIN=yes;;
5365          * ) CYGWIN=no;;
5366 esac
5367
5368 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5369 then
5370
5371
5372 if $TRUEPRG; then
5373   HAVE_SUN_OS_TRUE=
5374   HAVE_SUN_OS_FALSE='#'
5375 else
5376   HAVE_SUN_OS_TRUE='#'
5377   HAVE_SUN_OS_FALSE=
5378 fi
5379         cat >>confdefs.h <<\_ACEOF
5380 #define HAVE_SUN_OS 1
5381 _ACEOF
5382
5383 else
5384
5385
5386 if $FALSEPRG; then
5387   HAVE_SUN_OS_TRUE=
5388   HAVE_SUN_OS_FALSE='#'
5389 else
5390   HAVE_SUN_OS_TRUE='#'
5391   HAVE_SUN_OS_FALSE=
5392 fi
5393 fi
5394
5395 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5396 then
5397
5398
5399 if $TRUEPRG; then
5400   HAVE_OSF1_OS_TRUE=
5401   HAVE_OSF1_OS_FALSE='#'
5402 else
5403   HAVE_OSF1_OS_TRUE='#'
5404   HAVE_OSF1_OS_FALSE=
5405 fi
5406         cat >>confdefs.h <<\_ACEOF
5407 #define HAVE_OSF1_OS 1
5408 _ACEOF
5409
5410 else
5411
5412
5413 if $FALSEPRG; then
5414   HAVE_OSF1_OS_TRUE=
5415   HAVE_OSF1_OS_FALSE='#'
5416 else
5417   HAVE_OSF1_OS_TRUE='#'
5418   HAVE_OSF1_OS_FALSE=
5419 fi
5420 fi
5421
5422 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5423 then
5424
5425
5426 if $TRUEPRG; then
5427   HAVE_AIX_OS_TRUE=
5428   HAVE_AIX_OS_FALSE='#'
5429 else
5430   HAVE_AIX_OS_TRUE='#'
5431   HAVE_AIX_OS_FALSE=
5432 fi
5433         cat >>confdefs.h <<\_ACEOF
5434 #define HAVE_AIX_OS 1
5435 _ACEOF
5436
5437 else
5438
5439
5440 if $FALSEPRG; then
5441   HAVE_AIX_OS_TRUE=
5442   HAVE_AIX_OS_FALSE='#'
5443 else
5444   HAVE_AIX_OS_TRUE='#'
5445   HAVE_AIX_OS_FALSE=
5446 fi
5447 fi
5448
5449 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5450 then
5451
5452
5453 if $TRUEPRG; then
5454   HAVE_HPUX_OS_TRUE=
5455   HAVE_HPUX_OS_FALSE='#'
5456 else
5457   HAVE_HPUX_OS_TRUE='#'
5458   HAVE_HPUX_OS_FALSE=
5459 fi
5460         cat >>confdefs.h <<\_ACEOF
5461 #define HAVE_HPUX_OS 1
5462 _ACEOF
5463
5464 else
5465
5466
5467 if $FALSEPRG; then
5468   HAVE_HPUX_OS_TRUE=
5469   HAVE_HPUX_OS_FALSE='#'
5470 else
5471   HAVE_HPUX_OS_TRUE='#'
5472   HAVE_HPUX_OS_FALSE=
5473 fi
5474 fi
5475
5476 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5477 then
5478
5479
5480 if $TRUEPRG; then
5481   HAVE_LINUX_OS_TRUE=
5482   HAVE_LINUX_OS_FALSE='#'
5483 else
5484   HAVE_LINUX_OS_TRUE='#'
5485   HAVE_LINUX_OS_FALSE=
5486 fi
5487         cat >>confdefs.h <<\_ACEOF
5488 #define HAVE_LINUX_OS 1
5489 _ACEOF
5490
5491 else
5492
5493
5494 if $FALSEPRG; then
5495   HAVE_LINUX_OS_TRUE=
5496   HAVE_LINUX_OS_FALSE='#'
5497 else
5498   HAVE_LINUX_OS_TRUE='#'
5499   HAVE_LINUX_OS_FALSE=
5500 fi
5501 fi
5502
5503 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5504 then
5505
5506
5507 if $TRUEPRG; then
5508   HAVE_FREEBSD_OS_TRUE=
5509   HAVE_FREEBSD_OS_FALSE='#'
5510 else
5511   HAVE_FREEBSD_OS_TRUE='#'
5512   HAVE_FREEBSD_OS_FALSE=
5513 fi
5514         cat >>confdefs.h <<\_ACEOF
5515 #define HAVE_FREEBSD_OS 1
5516 _ACEOF
5517
5518 else
5519
5520
5521 if $FALSEPRG; then
5522   HAVE_FREEBSD_OS_TRUE=
5523   HAVE_FREEBSD_OS_FALSE='#'
5524 else
5525   HAVE_FREEBSD_OS_TRUE='#'
5526   HAVE_FREEBSD_OS_FALSE=
5527 fi
5528 fi
5529
5530 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5531 then
5532
5533
5534 if $TRUEPRG; then
5535   HAVE_NETBSD_OS_TRUE=
5536   HAVE_NETBSD_OS_FALSE='#'
5537 else
5538   HAVE_NETBSD_OS_TRUE='#'
5539   HAVE_NETBSD_OS_FALSE=
5540 fi
5541         cat >>confdefs.h <<\_ACEOF
5542 #define HAVE_NETBSD_OS 1
5543 _ACEOF
5544
5545 else
5546
5547
5548 if $FALSEPRG; then
5549   HAVE_NETBSD_OS_TRUE=
5550   HAVE_NETBSD_OS_FALSE='#'
5551 else
5552   HAVE_NETBSD_OS_TRUE='#'
5553   HAVE_NETBSD_OS_FALSE=
5554 fi
5555 fi
5556
5557 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5558 then
5559
5560
5561 if $TRUEPRG; then
5562   HAVE_OPENBSD_OS_TRUE=
5563   HAVE_OPENBSD_OS_FALSE='#'
5564 else
5565   HAVE_OPENBSD_OS_TRUE='#'
5566   HAVE_OPENBSD_OS_FALSE=
5567 fi
5568         cat >>confdefs.h <<\_ACEOF
5569 #define HAVE_OPENBSD_OS 1
5570 _ACEOF
5571
5572 else
5573
5574
5575 if $FALSEPRG; then
5576   HAVE_OPENBSD_OS_TRUE=
5577   HAVE_OPENBSD_OS_FALSE='#'
5578 else
5579   HAVE_OPENBSD_OS_TRUE='#'
5580   HAVE_OPENBSD_OS_FALSE=
5581 fi
5582 fi
5583
5584 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5585 then
5586
5587
5588 if $TRUEPRG; then
5589   HAVE_BSDI_OS_TRUE=
5590   HAVE_BSDI_OS_FALSE='#'
5591 else
5592   HAVE_BSDI_OS_TRUE='#'
5593   HAVE_BSDI_OS_FALSE=
5594 fi
5595         cat >>confdefs.h <<\_ACEOF
5596 #define HAVE_BSDI_OS 1
5597 _ACEOF
5598
5599 else
5600
5601
5602 if $FALSEPRG; then
5603   HAVE_BSDI_OS_TRUE=
5604   HAVE_BSDI_OS_FALSE='#'
5605 else
5606   HAVE_BSDI_OS_TRUE='#'
5607   HAVE_BSDI_OS_FALSE=
5608 fi
5609 fi
5610
5611 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5612 then
5613
5614
5615 if $TRUEPRG; then
5616   HAVE_SGI_OS_TRUE=
5617   HAVE_SGI_OS_FALSE='#'
5618 else
5619   HAVE_SGI_OS_TRUE='#'
5620   HAVE_SGI_OS_FALSE=
5621 fi
5622         cat >>confdefs.h <<\_ACEOF
5623 #define HAVE_SGI_OS 1
5624 _ACEOF
5625
5626 else
5627
5628
5629 if $FALSEPRG; then
5630   HAVE_SGI_OS_TRUE=
5631   HAVE_SGI_OS_FALSE='#'
5632 else
5633   HAVE_SGI_OS_TRUE='#'
5634   HAVE_SGI_OS_FALSE=
5635 fi
5636 fi
5637
5638 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5639 then
5640
5641
5642 if $TRUEPRG; then
5643   HAVE_IRIX_OS_TRUE=
5644   HAVE_IRIX_OS_FALSE='#'
5645 else
5646   HAVE_IRIX_OS_TRUE='#'
5647   HAVE_IRIX_OS_FALSE=
5648 fi
5649         cat >>confdefs.h <<\_ACEOF
5650 #define HAVE_IRIX_OS 1
5651 _ACEOF
5652
5653 else
5654
5655
5656 if $FALSEPRG; then
5657   HAVE_IRIX_OS_TRUE=
5658   HAVE_IRIX_OS_FALSE='#'
5659 else
5660   HAVE_IRIX_OS_TRUE='#'
5661   HAVE_IRIX_OS_FALSE=
5662 fi
5663 fi
5664
5665 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5666 then
5667
5668
5669 if $TRUEPRG; then
5670   HAVE_DARWIN_OS_TRUE=
5671   HAVE_DARWIN_OS_FALSE='#'
5672 else
5673   HAVE_DARWIN_OS_TRUE='#'
5674   HAVE_DARWIN_OS_FALSE=
5675 fi
5676     cat >>confdefs.h <<\_ACEOF
5677 #define HAVE_DARWIN_OS 1
5678 _ACEOF
5679
5680 else
5681
5682
5683 if $FALSEPRG; then
5684   HAVE_DARWIN_OS_TRUE=
5685   HAVE_DARWIN_OS_FALSE='#'
5686 else
5687   HAVE_DARWIN_OS_TRUE='#'
5688   HAVE_DARWIN_OS_FALSE=
5689 fi
5690 fi
5691
5692
5693 # -----------------------------------------------------------
5694 # ----------------------------------------------------------
5695 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5696 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5697 if test "x$DISTNAME" != "x"
5698 then
5699         echo "distname set to $DISTNAME"
5700 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5701 then
5702         DISTNAME=alpha
5703 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5704 then
5705         DISTNAME=aix
5706 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5707 then
5708         DISTNAME=hpux
5709 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5710 then
5711         DISTNAME=solaris
5712 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5713 then
5714         DISTNAME=freebsd
5715 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5716 then
5717         DISTNAME=netbsd
5718 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5719 then
5720         DISTNAME=openbsd
5721 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5722 then
5723         DISTNAME=irix
5724 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5725 then
5726         DISTNAME=bsdi
5727 elif test -f /etc/SuSE-release
5728 then
5729         DISTNAME=suse
5730 elif test -d /etc/SuSEconfig
5731 then
5732         DISTNAME=suse5
5733 elif test -f /etc/mandrake-release
5734 then
5735         DISTNAME=mandrake
5736 elif test -f /etc/whitebox-release
5737 then
5738        DISTNAME=redhat
5739 elif test -f /etc/redhat-release
5740 then
5741         DISTNAME=redhat
5742 elif test -f /etc/gentoo-release
5743 then
5744         DISTNAME=gentoo
5745 elif test -f /etc/debian_version
5746 then
5747         DISTNAME=debian
5748 elif test -f /etc/slackware-version
5749 then
5750         DISTNAME=slackware
5751 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5752 then
5753     DISTNAME=darwin
5754 elif test -f /etc/engarde-version
5755 then
5756         DISTNAME=engarde
5757 elif test "$CYGWIN" = yes
5758 then
5759         DISTNAME=cygwin
5760         cat >>confdefs.h <<\_ACEOF
5761 #define HAVE_CYGWIN 1
5762 _ACEOF
5763
5764 else
5765         DISTNAME=unknown
5766 fi
5767 { echo "$as_me:$LINENO: result: done" >&5
5768 echo "${ECHO_T}done" >&6; }
5769
5770
5771 # --------------------------------------------------
5772 # Suppport for gettext (translations)
5773 # By default, $datadir is ${prefix}/share
5774 # --------------------------------------------------
5775 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5776 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5777 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5778 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5779   echo $ECHO_N "(cached) $ECHO_C" >&6
5780 else
5781   cat >conftest.make <<\_ACEOF
5782 SHELL = /bin/sh
5783 all:
5784         @echo '@@@%%%=$(MAKE)=@@@%%%'
5785 _ACEOF
5786 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5787 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5788   *@@@%%%=?*=@@@%%%*)
5789     eval ac_cv_prog_make_${ac_make}_set=yes;;
5790   *)
5791     eval ac_cv_prog_make_${ac_make}_set=no;;
5792 esac
5793 rm -f conftest.make
5794 fi
5795 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5796   { echo "$as_me:$LINENO: result: yes" >&5
5797 echo "${ECHO_T}yes" >&6; }
5798   SET_MAKE=
5799 else
5800   { echo "$as_me:$LINENO: result: no" >&5
5801 echo "${ECHO_T}no" >&6; }
5802   SET_MAKE="MAKE=${MAKE-make}"
5803 fi
5804
5805
5806
5807         MKINSTALLDIRS=
5808   if test -n "$ac_aux_dir"; then
5809     case "$ac_aux_dir" in
5810       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5811       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5812     esac
5813   fi
5814   if test -z "$MKINSTALLDIRS"; then
5815     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5816   fi
5817
5818
5819
5820   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5821 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5822     # Check whether --enable-nls was given.
5823 if test "${enable_nls+set}" = set; then
5824   enableval=$enable_nls; USE_NLS=$enableval
5825 else
5826   USE_NLS=yes
5827 fi
5828
5829   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5830 echo "${ECHO_T}$USE_NLS" >&6; }
5831
5832
5833
5834
5835
5836
5837 # Prepare PATH_SEPARATOR.
5838 # The user is always right.
5839 if test "${PATH_SEPARATOR+set}" != set; then
5840   echo "#! /bin/sh" >conf$$.sh
5841   echo  "exit 0"   >>conf$$.sh
5842   chmod +x conf$$.sh
5843   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5844     PATH_SEPARATOR=';'
5845   else
5846     PATH_SEPARATOR=:
5847   fi
5848   rm -f conf$$.sh
5849 fi
5850
5851 # Find out how to test for executable files. Don't use a zero-byte file,
5852 # as systems may use methods other than mode bits to determine executability.
5853 cat >conf$$.file <<_ASEOF
5854 #! /bin/sh
5855 exit 0
5856 _ASEOF
5857 chmod +x conf$$.file
5858 if test -x conf$$.file >/dev/null 2>&1; then
5859   ac_executable_p="test -x"
5860 else
5861   ac_executable_p="test -f"
5862 fi
5863 rm -f conf$$.file
5864
5865 # Extract the first word of "msgfmt", so it can be a program name with args.
5866 set dummy msgfmt; ac_word=$2
5867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5869 if test "${ac_cv_path_MSGFMT+set}" = set; then
5870   echo $ECHO_N "(cached) $ECHO_C" >&6
5871 else
5872   case "$MSGFMT" in
5873   [\\/]* | ?:[\\/]*)
5874     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5875     ;;
5876   *)
5877     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5878     for ac_dir in $PATH; do
5879       IFS="$ac_save_IFS"
5880       test -z "$ac_dir" && ac_dir=.
5881       for ac_exec_ext in '' $ac_executable_extensions; do
5882         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5883           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5884           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5885      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5886             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5887             break 2
5888           fi
5889         fi
5890       done
5891     done
5892     IFS="$ac_save_IFS"
5893   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5894     ;;
5895 esac
5896 fi
5897 MSGFMT="$ac_cv_path_MSGFMT"
5898 if test "$MSGFMT" != ":"; then
5899   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5900 echo "${ECHO_T}$MSGFMT" >&6; }
5901 else
5902   { echo "$as_me:$LINENO: result: no" >&5
5903 echo "${ECHO_T}no" >&6; }
5904 fi
5905
5906   # Extract the first word of "gmsgfmt", so it can be a program name with args.
5907 set dummy gmsgfmt; ac_word=$2
5908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5910 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5911   echo $ECHO_N "(cached) $ECHO_C" >&6
5912 else
5913   case $GMSGFMT in
5914   [\\/]* | ?:[\\/]*)
5915   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5916   ;;
5917   *)
5918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 for as_dir in $PATH
5920 do
5921   IFS=$as_save_IFS
5922   test -z "$as_dir" && as_dir=.
5923   for ac_exec_ext in '' $ac_executable_extensions; do
5924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5925     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5927     break 2
5928   fi
5929 done
5930 done
5931 IFS=$as_save_IFS
5932
5933   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5934   ;;
5935 esac
5936 fi
5937 GMSGFMT=$ac_cv_path_GMSGFMT
5938 if test -n "$GMSGFMT"; then
5939   { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5940 echo "${ECHO_T}$GMSGFMT" >&6; }
5941 else
5942   { echo "$as_me:$LINENO: result: no" >&5
5943 echo "${ECHO_T}no" >&6; }
5944 fi
5945
5946
5947
5948
5949 # Prepare PATH_SEPARATOR.
5950 # The user is always right.
5951 if test "${PATH_SEPARATOR+set}" != set; then
5952   echo "#! /bin/sh" >conf$$.sh
5953   echo  "exit 0"   >>conf$$.sh
5954   chmod +x conf$$.sh
5955   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5956     PATH_SEPARATOR=';'
5957   else
5958     PATH_SEPARATOR=:
5959   fi
5960   rm -f conf$$.sh
5961 fi
5962
5963 # Find out how to test for executable files. Don't use a zero-byte file,
5964 # as systems may use methods other than mode bits to determine executability.
5965 cat >conf$$.file <<_ASEOF
5966 #! /bin/sh
5967 exit 0
5968 _ASEOF
5969 chmod +x conf$$.file
5970 if test -x conf$$.file >/dev/null 2>&1; then
5971   ac_executable_p="test -x"
5972 else
5973   ac_executable_p="test -f"
5974 fi
5975 rm -f conf$$.file
5976
5977 # Extract the first word of "xgettext", so it can be a program name with args.
5978 set dummy xgettext; ac_word=$2
5979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5981 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5982   echo $ECHO_N "(cached) $ECHO_C" >&6
5983 else
5984   case "$XGETTEXT" in
5985   [\\/]* | ?:[\\/]*)
5986     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5987     ;;
5988   *)
5989     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5990     for ac_dir in $PATH; do
5991       IFS="$ac_save_IFS"
5992       test -z "$ac_dir" && ac_dir=.
5993       for ac_exec_ext in '' $ac_executable_extensions; do
5994         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5995           echo "$as_me: trying $ac_dir/$ac_word..." >&5
5996           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5997      (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
5998             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5999             break 2
6000           fi
6001         fi
6002       done
6003     done
6004     IFS="$ac_save_IFS"
6005   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6006     ;;
6007 esac
6008 fi
6009 XGETTEXT="$ac_cv_path_XGETTEXT"
6010 if test "$XGETTEXT" != ":"; then
6011   { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
6012 echo "${ECHO_T}$XGETTEXT" >&6; }
6013 else
6014   { echo "$as_me:$LINENO: result: no" >&5
6015 echo "${ECHO_T}no" >&6; }
6016 fi
6017
6018     rm -f messages.po
6019
6020
6021 # Prepare PATH_SEPARATOR.
6022 # The user is always right.
6023 if test "${PATH_SEPARATOR+set}" != set; then
6024   echo "#! /bin/sh" >conf$$.sh
6025   echo  "exit 0"   >>conf$$.sh
6026   chmod +x conf$$.sh
6027   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6028     PATH_SEPARATOR=';'
6029   else
6030     PATH_SEPARATOR=:
6031   fi
6032   rm -f conf$$.sh
6033 fi
6034
6035 # Find out how to test for executable files. Don't use a zero-byte file,
6036 # as systems may use methods other than mode bits to determine executability.
6037 cat >conf$$.file <<_ASEOF
6038 #! /bin/sh
6039 exit 0
6040 _ASEOF
6041 chmod +x conf$$.file
6042 if test -x conf$$.file >/dev/null 2>&1; then
6043   ac_executable_p="test -x"
6044 else
6045   ac_executable_p="test -f"
6046 fi
6047 rm -f conf$$.file
6048
6049 # Extract the first word of "msgmerge", so it can be a program name with args.
6050 set dummy msgmerge; ac_word=$2
6051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6053 if test "${ac_cv_path_MSGMERGE+set}" = set; then
6054   echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056   case "$MSGMERGE" in
6057   [\\/]* | ?:[\\/]*)
6058     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6059     ;;
6060   *)
6061     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6062     for ac_dir in $PATH; do
6063       IFS="$ac_save_IFS"
6064       test -z "$ac_dir" && ac_dir=.
6065       for ac_exec_ext in '' $ac_executable_extensions; do
6066         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6067           echo "$as_me: trying $ac_dir/$ac_word..." >&5
6068           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6069             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6070             break 2
6071           fi
6072         fi
6073       done
6074     done
6075     IFS="$ac_save_IFS"
6076   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6077     ;;
6078 esac
6079 fi
6080 MSGMERGE="$ac_cv_path_MSGMERGE"
6081 if test "$MSGMERGE" != ":"; then
6082   { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6083 echo "${ECHO_T}$MSGMERGE" >&6; }
6084 else
6085   { echo "$as_me:$LINENO: result: no" >&5
6086 echo "${ECHO_T}no" >&6; }
6087 fi
6088
6089
6090       if test "$GMSGFMT" != ":"; then
6091             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6092        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6093       : ;
6094     else
6095       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6096       { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6097 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6098       GMSGFMT=":"
6099     fi
6100   fi
6101
6102       if test "$XGETTEXT" != ":"; then
6103             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6104        (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
6105       : ;
6106     else
6107       { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6108 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6109       XGETTEXT=":"
6110     fi
6111         rm -f messages.po
6112   fi
6113
6114   ac_config_commands="$ac_config_commands default-1"
6115
6116
6117
6118       if test "X$prefix" = "XNONE"; then
6119     acl_final_prefix="$ac_default_prefix"
6120   else
6121     acl_final_prefix="$prefix"
6122   fi
6123   if test "X$exec_prefix" = "XNONE"; then
6124     acl_final_exec_prefix='${prefix}'
6125   else
6126     acl_final_exec_prefix="$exec_prefix"
6127   fi
6128   acl_save_prefix="$prefix"
6129   prefix="$acl_final_prefix"
6130   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6131   prefix="$acl_save_prefix"
6132
6133
6134 # Check whether --with-gnu-ld was given.
6135 if test "${with_gnu_ld+set}" = set; then
6136   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6137 else
6138   with_gnu_ld=no
6139 fi
6140
6141 # Prepare PATH_SEPARATOR.
6142 # The user is always right.
6143 if test "${PATH_SEPARATOR+set}" != set; then
6144   echo "#! /bin/sh" >conf$$.sh
6145   echo  "exit 0"   >>conf$$.sh
6146   chmod +x conf$$.sh
6147   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6148     PATH_SEPARATOR=';'
6149   else
6150     PATH_SEPARATOR=:
6151   fi
6152   rm -f conf$$.sh
6153 fi
6154 ac_prog=ld
6155 if test "$GCC" = yes; then
6156   # Check if gcc -print-prog-name=ld gives a path.
6157   { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6158 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6159   case $host in
6160   *-*-mingw*)
6161     # gcc leaves a trailing carriage return which upsets mingw
6162     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6163   *)
6164     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6165   esac
6166   case $ac_prog in
6167     # Accept absolute paths.
6168     [\\/]* | [A-Za-z]:[\\/]*)
6169       re_direlt='/[^/][^/]*/\.\./'
6170       # Canonicalize the path of ld
6171       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6172       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6173         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6174       done
6175       test -z "$LD" && LD="$ac_prog"
6176       ;;
6177   "")
6178     # If it fails, then pretend we aren't using GCC.
6179     ac_prog=ld
6180     ;;
6181   *)
6182     # If it is relative, then search for the first ld in PATH.
6183     with_gnu_ld=unknown
6184     ;;
6185   esac
6186 elif test "$with_gnu_ld" = yes; then
6187   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6188 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6189 else
6190   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6191 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6192 fi
6193 if test "${acl_cv_path_LD+set}" = set; then
6194   echo $ECHO_N "(cached) $ECHO_C" >&6
6195 else
6196   if test -z "$LD"; then
6197   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6198   for ac_dir in $PATH; do
6199     test -z "$ac_dir" && ac_dir=.
6200     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6201       acl_cv_path_LD="$ac_dir/$ac_prog"
6202       # Check to see if the program is GNU ld.  I'd rather use --version,
6203       # but apparently some GNU ld's only accept -v.
6204       # Break only if it was the GNU/non-GNU ld that we prefer.
6205       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6206       *GNU* | *'with BFD'*)
6207         test "$with_gnu_ld" != no && break ;;
6208       *)
6209         test "$with_gnu_ld" != yes && break ;;
6210       esac
6211     fi
6212   done
6213   IFS="$ac_save_ifs"
6214 else
6215   acl_cv_path_LD="$LD" # Let the user override the test with a path.
6216 fi
6217 fi
6218
6219 LD="$acl_cv_path_LD"
6220 if test -n "$LD"; then
6221   { echo "$as_me:$LINENO: result: $LD" >&5
6222 echo "${ECHO_T}$LD" >&6; }
6223 else
6224   { echo "$as_me:$LINENO: result: no" >&5
6225 echo "${ECHO_T}no" >&6; }
6226 fi
6227 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6228 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6229    { (exit 1); exit 1; }; }
6230 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6231 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6232 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6233   echo $ECHO_N "(cached) $ECHO_C" >&6
6234 else
6235   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6236 case `$LD -v 2>&1 </dev/null` in
6237 *GNU* | *'with BFD'*)
6238   acl_cv_prog_gnu_ld=yes ;;
6239 *)
6240   acl_cv_prog_gnu_ld=no ;;
6241 esac
6242 fi
6243 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6244 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6245 with_gnu_ld=$acl_cv_prog_gnu_ld
6246
6247
6248
6249
6250                                                 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6251 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6252 if test "${acl_cv_rpath+set}" = set; then
6253   echo $ECHO_N "(cached) $ECHO_C" >&6
6254 else
6255
6256     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6257     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6258     . ./conftest.sh
6259     rm -f ./conftest.sh
6260     acl_cv_rpath=done
6261
6262 fi
6263 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6264 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6265   wl="$acl_cv_wl"
6266   libext="$acl_cv_libext"
6267   shlibext="$acl_cv_shlibext"
6268   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6269   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6270   hardcode_direct="$acl_cv_hardcode_direct"
6271   hardcode_minus_L="$acl_cv_hardcode_minus_L"
6272     # Check whether --enable-rpath was given.
6273 if test "${enable_rpath+set}" = set; then
6274   enableval=$enable_rpath; :
6275 else
6276   enable_rpath=yes
6277 fi
6278
6279
6280
6281
6282
6283
6284
6285
6286     use_additional=yes
6287
6288   acl_save_prefix="$prefix"
6289   prefix="$acl_final_prefix"
6290   acl_save_exec_prefix="$exec_prefix"
6291   exec_prefix="$acl_final_exec_prefix"
6292
6293     eval additional_includedir=\"$includedir\"
6294     eval additional_libdir=\"$libdir\"
6295
6296   exec_prefix="$acl_save_exec_prefix"
6297   prefix="$acl_save_prefix"
6298
6299
6300 # Check whether --with-libiconv-prefix was given.
6301 if test "${with_libiconv_prefix+set}" = set; then
6302   withval=$with_libiconv_prefix;
6303     if test "X$withval" = "Xno"; then
6304       use_additional=no
6305     else
6306       if test "X$withval" = "X"; then
6307
6308   acl_save_prefix="$prefix"
6309   prefix="$acl_final_prefix"
6310   acl_save_exec_prefix="$exec_prefix"
6311   exec_prefix="$acl_final_exec_prefix"
6312
6313           eval additional_includedir=\"$includedir\"
6314           eval additional_libdir=\"$libdir\"
6315
6316   exec_prefix="$acl_save_exec_prefix"
6317   prefix="$acl_save_prefix"
6318
6319       else
6320         additional_includedir="$withval/include"
6321         additional_libdir="$withval/lib"
6322       fi
6323     fi
6324
6325 fi
6326
6327       LIBICONV=
6328   LTLIBICONV=
6329   INCICONV=
6330   rpathdirs=
6331   ltrpathdirs=
6332   names_already_handled=
6333   names_next_round='iconv '
6334   while test -n "$names_next_round"; do
6335     names_this_round="$names_next_round"
6336     names_next_round=
6337     for name in $names_this_round; do
6338       already_handled=
6339       for n in $names_already_handled; do
6340         if test "$n" = "$name"; then
6341           already_handled=yes
6342           break
6343         fi
6344       done
6345       if test -z "$already_handled"; then
6346         names_already_handled="$names_already_handled $name"
6347                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6348         eval value=\"\$HAVE_LIB$uppername\"
6349         if test -n "$value"; then
6350           if test "$value" = yes; then
6351             eval value=\"\$LIB$uppername\"
6352             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6353             eval value=\"\$LTLIB$uppername\"
6354             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6355           else
6356                                     :
6357           fi
6358         else
6359                               found_dir=
6360           found_la=
6361           found_so=
6362           found_a=
6363           if test $use_additional = yes; then
6364             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6365               found_dir="$additional_libdir"
6366               found_so="$additional_libdir/lib$name.$shlibext"
6367               if test -f "$additional_libdir/lib$name.la"; then
6368                 found_la="$additional_libdir/lib$name.la"
6369               fi
6370             else
6371               if test -f "$additional_libdir/lib$name.$libext"; then
6372                 found_dir="$additional_libdir"
6373                 found_a="$additional_libdir/lib$name.$libext"
6374                 if test -f "$additional_libdir/lib$name.la"; then
6375                   found_la="$additional_libdir/lib$name.la"
6376                 fi
6377               fi
6378             fi
6379           fi
6380           if test "X$found_dir" = "X"; then
6381             for x in $LDFLAGS $LTLIBICONV; do
6382
6383   acl_save_prefix="$prefix"
6384   prefix="$acl_final_prefix"
6385   acl_save_exec_prefix="$exec_prefix"
6386   exec_prefix="$acl_final_exec_prefix"
6387   eval x=\"$x\"
6388   exec_prefix="$acl_save_exec_prefix"
6389   prefix="$acl_save_prefix"
6390
6391               case "$x" in
6392                 -L*)
6393                   dir=`echo "X$x" | sed -e 's/^X-L//'`
6394                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6395                     found_dir="$dir"
6396                     found_so="$dir/lib$name.$shlibext"
6397                     if test -f "$dir/lib$name.la"; then
6398                       found_la="$dir/lib$name.la"
6399                     fi
6400                   else
6401                     if test -f "$dir/lib$name.$libext"; then
6402                       found_dir="$dir"
6403                       found_a="$dir/lib$name.$libext"
6404                       if test -f "$dir/lib$name.la"; then
6405                         found_la="$dir/lib$name.la"
6406                       fi
6407                     fi
6408                   fi
6409                   ;;
6410               esac
6411               if test "X$found_dir" != "X"; then
6412                 break
6413               fi
6414             done
6415           fi
6416           if test "X$found_dir" != "X"; then
6417                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6418             if test "X$found_so" != "X"; then
6419                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6420                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6421               else
6422                                                                                 haveit=
6423                 for x in $ltrpathdirs; do
6424                   if test "X$x" = "X$found_dir"; then
6425                     haveit=yes
6426                     break
6427                   fi
6428                 done
6429                 if test -z "$haveit"; then
6430                   ltrpathdirs="$ltrpathdirs $found_dir"
6431                 fi
6432                                 if test "$hardcode_direct" = yes; then
6433                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6434                 else
6435                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6436                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6437                                                             haveit=
6438                     for x in $rpathdirs; do
6439                       if test "X$x" = "X$found_dir"; then
6440                         haveit=yes
6441                         break
6442                       fi
6443                     done
6444                     if test -z "$haveit"; then
6445                       rpathdirs="$rpathdirs $found_dir"
6446                     fi
6447                   else
6448                                                                                 haveit=
6449                     for x in $LDFLAGS $LIBICONV; do
6450
6451   acl_save_prefix="$prefix"
6452   prefix="$acl_final_prefix"
6453   acl_save_exec_prefix="$exec_prefix"
6454   exec_prefix="$acl_final_exec_prefix"
6455   eval x=\"$x\"
6456   exec_prefix="$acl_save_exec_prefix"
6457   prefix="$acl_save_prefix"
6458
6459                       if test "X$x" = "X-L$found_dir"; then
6460                         haveit=yes
6461                         break
6462                       fi
6463                     done
6464                     if test -z "$haveit"; then
6465                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6466                     fi
6467                     if test "$hardcode_minus_L" != no; then
6468                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6469                     else
6470                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6471                     fi
6472                   fi
6473                 fi
6474               fi
6475             else
6476               if test "X$found_a" != "X"; then
6477                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6478               else
6479                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6480               fi
6481             fi
6482                         additional_includedir=
6483             case "$found_dir" in
6484               */lib | */lib/)
6485                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6486                 additional_includedir="$basedir/include"
6487                 ;;
6488             esac
6489             if test "X$additional_includedir" != "X"; then
6490                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
6491                 haveit=
6492                 if test "X$additional_includedir" = "X/usr/local/include"; then
6493                   if test -n "$GCC"; then
6494                     case $host_os in
6495                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6496                     esac
6497                   fi
6498                 fi
6499                 if test -z "$haveit"; then
6500                   for x in $CPPFLAGS $INCICONV; do
6501
6502   acl_save_prefix="$prefix"
6503   prefix="$acl_final_prefix"
6504   acl_save_exec_prefix="$exec_prefix"
6505   exec_prefix="$acl_final_exec_prefix"
6506   eval x=\"$x\"
6507   exec_prefix="$acl_save_exec_prefix"
6508   prefix="$acl_save_prefix"
6509
6510                     if test "X$x" = "X-I$additional_includedir"; then
6511                       haveit=yes
6512                       break
6513                     fi
6514                   done
6515                   if test -z "$haveit"; then
6516                     if test -d "$additional_includedir"; then
6517                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6518                     fi
6519                   fi
6520                 fi
6521               fi
6522             fi
6523                         if test -n "$found_la"; then
6524                                                         save_libdir="$libdir"
6525               case "$found_la" in
6526                 */* | *\\*) . "$found_la" ;;
6527                 *) . "./$found_la" ;;
6528               esac
6529               libdir="$save_libdir"
6530                             for dep in $dependency_libs; do
6531                 case "$dep" in
6532                   -L*)
6533                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6534                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
6535                       haveit=
6536                       if test "X$additional_libdir" = "X/usr/local/lib"; then
6537                         if test -n "$GCC"; then
6538                           case $host_os in
6539                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6540                           esac
6541                         fi
6542                       fi
6543                       if test -z "$haveit"; then
6544                         haveit=
6545                         for x in $LDFLAGS $LIBICONV; do
6546
6547   acl_save_prefix="$prefix"
6548   prefix="$acl_final_prefix"
6549   acl_save_exec_prefix="$exec_prefix"
6550   exec_prefix="$acl_final_exec_prefix"
6551   eval x=\"$x\"
6552   exec_prefix="$acl_save_exec_prefix"
6553   prefix="$acl_save_prefix"
6554
6555                           if test "X$x" = "X-L$additional_libdir"; then
6556                             haveit=yes
6557                             break
6558                           fi
6559                         done
6560                         if test -z "$haveit"; then
6561                           if test -d "$additional_libdir"; then
6562                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6563                           fi
6564                         fi
6565                         haveit=
6566                         for x in $LDFLAGS $LTLIBICONV; do
6567
6568   acl_save_prefix="$prefix"
6569   prefix="$acl_final_prefix"
6570   acl_save_exec_prefix="$exec_prefix"
6571   exec_prefix="$acl_final_exec_prefix"
6572   eval x=\"$x\"
6573   exec_prefix="$acl_save_exec_prefix"
6574   prefix="$acl_save_prefix"
6575
6576                           if test "X$x" = "X-L$additional_libdir"; then
6577                             haveit=yes
6578                             break
6579                           fi
6580                         done
6581                         if test -z "$haveit"; then
6582                           if test -d "$additional_libdir"; then
6583                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6584                           fi
6585                         fi
6586                       fi
6587                     fi
6588                     ;;
6589                   -R*)
6590                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
6591                     if test "$enable_rpath" != no; then
6592                                                                   haveit=
6593                       for x in $rpathdirs; do
6594                         if test "X$x" = "X$dir"; then
6595                           haveit=yes
6596                           break
6597                         fi
6598                       done
6599                       if test -z "$haveit"; then
6600                         rpathdirs="$rpathdirs $dir"
6601                       fi
6602                                                                   haveit=
6603                       for x in $ltrpathdirs; do
6604                         if test "X$x" = "X$dir"; then
6605                           haveit=yes
6606                           break
6607                         fi
6608                       done
6609                       if test -z "$haveit"; then
6610                         ltrpathdirs="$ltrpathdirs $dir"
6611                       fi
6612                     fi
6613                     ;;
6614                   -l*)
6615                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6616                     ;;
6617                   *.la)
6618                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6619                     ;;
6620                   *)
6621                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6622                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6623                     ;;
6624                 esac
6625               done
6626             fi
6627           else
6628                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6629             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6630           fi
6631         fi
6632       fi
6633     done
6634   done
6635   if test "X$rpathdirs" != "X"; then
6636     if test -n "$hardcode_libdir_separator"; then
6637                         alldirs=
6638       for found_dir in $rpathdirs; do
6639         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6640       done
6641             acl_save_libdir="$libdir"
6642       libdir="$alldirs"
6643       eval flag=\"$hardcode_libdir_flag_spec\"
6644       libdir="$acl_save_libdir"
6645       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6646     else
6647             for found_dir in $rpathdirs; do
6648         acl_save_libdir="$libdir"
6649         libdir="$found_dir"
6650         eval flag=\"$hardcode_libdir_flag_spec\"
6651         libdir="$acl_save_libdir"
6652         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6653       done
6654     fi
6655   fi
6656   if test "X$ltrpathdirs" != "X"; then
6657             for found_dir in $ltrpathdirs; do
6658       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6659     done
6660   fi
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6680 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6681 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6682   echo $ECHO_N "(cached) $ECHO_C" >&6
6683 else
6684   gt_save_CPPFLAGS="$CPPFLAGS"
6685      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6686      gt_save_LIBS="$LIBS"
6687      LIBS="$LIBS -framework CoreFoundation"
6688      cat >conftest.$ac_ext <<_ACEOF
6689 /* confdefs.h.  */
6690 _ACEOF
6691 cat confdefs.h >>conftest.$ac_ext
6692 cat >>conftest.$ac_ext <<_ACEOF
6693 /* end confdefs.h.  */
6694 #include <CFPreferences.h>
6695 int
6696 main ()
6697 {
6698 CFPreferencesCopyAppValue(NULL, NULL)
6699   ;
6700   return 0;
6701 }
6702 _ACEOF
6703 rm -f conftest.$ac_objext conftest$ac_exeext
6704 if { (ac_try="$ac_link"
6705 case "(($ac_try" in
6706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6707   *) ac_try_echo=$ac_try;;
6708 esac
6709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6710   (eval "$ac_link") 2>conftest.er1
6711   ac_status=$?
6712   grep -v '^ *+' conftest.er1 >conftest.err
6713   rm -f conftest.er1
6714   cat conftest.err >&5
6715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716   (exit $ac_status); } &&
6717          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6718   { (case "(($ac_try" in
6719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6720   *) ac_try_echo=$ac_try;;
6721 esac
6722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6723   (eval "$ac_try") 2>&5
6724   ac_status=$?
6725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726   (exit $ac_status); }; } &&
6727          { ac_try='test -s conftest$ac_exeext'
6728   { (case "(($ac_try" in
6729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6730   *) ac_try_echo=$ac_try;;
6731 esac
6732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6733   (eval "$ac_try") 2>&5
6734   ac_status=$?
6735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736   (exit $ac_status); }; }; then
6737   gt_cv_func_CFPreferencesCopyAppValue=yes
6738 else
6739   echo "$as_me: failed program was:" >&5
6740 sed 's/^/| /' conftest.$ac_ext >&5
6741
6742         gt_cv_func_CFPreferencesCopyAppValue=no
6743 fi
6744
6745 rm -f core conftest.err conftest.$ac_objext \
6746       conftest$ac_exeext conftest.$ac_ext
6747      CPPFLAGS="$gt_save_CPPFLAGS"
6748      LIBS="$gt_save_LIBS"
6749 fi
6750 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6751 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6752   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6753
6754 cat >>confdefs.h <<\_ACEOF
6755 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6756 _ACEOF
6757
6758   fi
6759     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6760 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6761 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6762   echo $ECHO_N "(cached) $ECHO_C" >&6
6763 else
6764   gt_save_CPPFLAGS="$CPPFLAGS"
6765      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6766      gt_save_LIBS="$LIBS"
6767      LIBS="$LIBS -framework CoreFoundation"
6768      cat >conftest.$ac_ext <<_ACEOF
6769 /* confdefs.h.  */
6770 _ACEOF
6771 cat confdefs.h >>conftest.$ac_ext
6772 cat >>conftest.$ac_ext <<_ACEOF
6773 /* end confdefs.h.  */
6774 #include <CFLocale.h>
6775 int
6776 main ()
6777 {
6778 CFLocaleCopyCurrent();
6779   ;
6780   return 0;
6781 }
6782 _ACEOF
6783 rm -f conftest.$ac_objext conftest$ac_exeext
6784 if { (ac_try="$ac_link"
6785 case "(($ac_try" in
6786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6787   *) ac_try_echo=$ac_try;;
6788 esac
6789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6790   (eval "$ac_link") 2>conftest.er1
6791   ac_status=$?
6792   grep -v '^ *+' conftest.er1 >conftest.err
6793   rm -f conftest.er1
6794   cat conftest.err >&5
6795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796   (exit $ac_status); } &&
6797          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6798   { (case "(($ac_try" in
6799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6800   *) ac_try_echo=$ac_try;;
6801 esac
6802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6803   (eval "$ac_try") 2>&5
6804   ac_status=$?
6805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6806   (exit $ac_status); }; } &&
6807          { ac_try='test -s conftest$ac_exeext'
6808   { (case "(($ac_try" in
6809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6810   *) ac_try_echo=$ac_try;;
6811 esac
6812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6813   (eval "$ac_try") 2>&5
6814   ac_status=$?
6815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816   (exit $ac_status); }; }; then
6817   gt_cv_func_CFLocaleCopyCurrent=yes
6818 else
6819   echo "$as_me: failed program was:" >&5
6820 sed 's/^/| /' conftest.$ac_ext >&5
6821
6822         gt_cv_func_CFLocaleCopyCurrent=no
6823 fi
6824
6825 rm -f core conftest.err conftest.$ac_objext \
6826       conftest$ac_exeext conftest.$ac_ext
6827      CPPFLAGS="$gt_save_CPPFLAGS"
6828      LIBS="$gt_save_LIBS"
6829 fi
6830 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6831 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6832   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6833
6834 cat >>confdefs.h <<\_ACEOF
6835 #define HAVE_CFLOCALECOPYCURRENT 1
6836 _ACEOF
6837
6838   fi
6839   INTL_MACOSX_LIBS=
6840   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6841     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6842   fi
6843
6844
6845
6846
6847   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6848 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6849     # Check whether --enable-nls was given.
6850 if test "${enable_nls+set}" = set; then
6851   enableval=$enable_nls; USE_NLS=$enableval
6852 else
6853   USE_NLS=yes
6854 fi
6855
6856   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6857 echo "${ECHO_T}$USE_NLS" >&6; }
6858
6859
6860
6861
6862   LIBINTL=
6863   LTLIBINTL=
6864   POSUB=
6865
6866     if test "$USE_NLS" = "yes"; then
6867     gt_use_preinstalled_gnugettext=no
6868
6869
6870
6871
6872
6873
6874         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6875 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6876 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6877   echo $ECHO_N "(cached) $ECHO_C" >&6
6878 else
6879   cat >conftest.$ac_ext <<_ACEOF
6880 /* confdefs.h.  */
6881 _ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h.  */
6885 #include <libintl.h>
6886 extern int _nl_msg_cat_cntr;
6887 extern int *_nl_domain_bindings;
6888 int
6889 main ()
6890 {
6891 bindtextdomain ("", "");
6892 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6893   ;
6894   return 0;
6895 }
6896 _ACEOF
6897 rm -f conftest.$ac_objext conftest$ac_exeext
6898 if { (ac_try="$ac_link"
6899 case "(($ac_try" in
6900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6901   *) ac_try_echo=$ac_try;;
6902 esac
6903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6904   (eval "$ac_link") 2>conftest.er1
6905   ac_status=$?
6906   grep -v '^ *+' conftest.er1 >conftest.err
6907   rm -f conftest.er1
6908   cat conftest.err >&5
6909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910   (exit $ac_status); } &&
6911          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6912   { (case "(($ac_try" in
6913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6914   *) ac_try_echo=$ac_try;;
6915 esac
6916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6917   (eval "$ac_try") 2>&5
6918   ac_status=$?
6919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920   (exit $ac_status); }; } &&
6921          { ac_try='test -s conftest$ac_exeext'
6922   { (case "(($ac_try" in
6923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6924   *) ac_try_echo=$ac_try;;
6925 esac
6926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6927   (eval "$ac_try") 2>&5
6928   ac_status=$?
6929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6930   (exit $ac_status); }; }; then
6931   gt_cv_func_gnugettext1_libc=yes
6932 else
6933   echo "$as_me: failed program was:" >&5
6934 sed 's/^/| /' conftest.$ac_ext >&5
6935
6936         gt_cv_func_gnugettext1_libc=no
6937 fi
6938
6939 rm -f core conftest.err conftest.$ac_objext \
6940       conftest$ac_exeext conftest.$ac_ext
6941 fi
6942 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6943 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6944
6945         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6946
6947
6948
6949
6950
6951           am_save_CPPFLAGS="$CPPFLAGS"
6952
6953   for element in $INCICONV; do
6954     haveit=
6955     for x in $CPPFLAGS; do
6956
6957   acl_save_prefix="$prefix"
6958   prefix="$acl_final_prefix"
6959   acl_save_exec_prefix="$exec_prefix"
6960   exec_prefix="$acl_final_exec_prefix"
6961   eval x=\"$x\"
6962   exec_prefix="$acl_save_exec_prefix"
6963   prefix="$acl_save_prefix"
6964
6965       if test "X$x" = "X$element"; then
6966         haveit=yes
6967         break
6968       fi
6969     done
6970     if test -z "$haveit"; then
6971       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6972     fi
6973   done
6974
6975
6976   { echo "$as_me:$LINENO: checking for iconv" >&5
6977 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6978 if test "${am_cv_func_iconv+set}" = set; then
6979   echo $ECHO_N "(cached) $ECHO_C" >&6
6980 else
6981
6982     am_cv_func_iconv="no, consider installing GNU libiconv"
6983     am_cv_lib_iconv=no
6984     cat >conftest.$ac_ext <<_ACEOF
6985 /* confdefs.h.  */
6986 _ACEOF
6987 cat confdefs.h >>conftest.$ac_ext
6988 cat >>conftest.$ac_ext <<_ACEOF
6989 /* end confdefs.h.  */
6990 #include <stdlib.h>
6991 #include <iconv.h>
6992 int
6993 main ()
6994 {
6995 iconv_t cd = iconv_open("","");
6996        iconv(cd,NULL,NULL,NULL,NULL);
6997        iconv_close(cd);
6998   ;
6999   return 0;
7000 }
7001 _ACEOF
7002 rm -f conftest.$ac_objext conftest$ac_exeext
7003 if { (ac_try="$ac_link"
7004 case "(($ac_try" in
7005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7006   *) ac_try_echo=$ac_try;;
7007 esac
7008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7009   (eval "$ac_link") 2>conftest.er1
7010   ac_status=$?
7011   grep -v '^ *+' conftest.er1 >conftest.err
7012   rm -f conftest.er1
7013   cat conftest.err >&5
7014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015   (exit $ac_status); } &&
7016          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7017   { (case "(($ac_try" in
7018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7019   *) ac_try_echo=$ac_try;;
7020 esac
7021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7022   (eval "$ac_try") 2>&5
7023   ac_status=$?
7024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025   (exit $ac_status); }; } &&
7026          { ac_try='test -s conftest$ac_exeext'
7027   { (case "(($ac_try" in
7028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7029   *) ac_try_echo=$ac_try;;
7030 esac
7031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7032   (eval "$ac_try") 2>&5
7033   ac_status=$?
7034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035   (exit $ac_status); }; }; then
7036   am_cv_func_iconv=yes
7037 else
7038   echo "$as_me: failed program was:" >&5
7039 sed 's/^/| /' conftest.$ac_ext >&5
7040
7041
7042 fi
7043
7044 rm -f core conftest.err conftest.$ac_objext \
7045       conftest$ac_exeext conftest.$ac_ext
7046     if test "$am_cv_func_iconv" != yes; then
7047       am_save_LIBS="$LIBS"
7048       LIBS="$LIBS $LIBICONV"
7049       cat >conftest.$ac_ext <<_ACEOF
7050 /* confdefs.h.  */
7051 _ACEOF
7052 cat confdefs.h >>conftest.$ac_ext
7053 cat >>conftest.$ac_ext <<_ACEOF
7054 /* end confdefs.h.  */
7055 #include <stdlib.h>
7056 #include <iconv.h>
7057 int
7058 main ()
7059 {
7060 iconv_t cd = iconv_open("","");
7061          iconv(cd,NULL,NULL,NULL,NULL);
7062          iconv_close(cd);
7063   ;
7064   return 0;
7065 }
7066 _ACEOF
7067 rm -f conftest.$ac_objext conftest$ac_exeext
7068 if { (ac_try="$ac_link"
7069 case "(($ac_try" in
7070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7071   *) ac_try_echo=$ac_try;;
7072 esac
7073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7074   (eval "$ac_link") 2>conftest.er1
7075   ac_status=$?
7076   grep -v '^ *+' conftest.er1 >conftest.err
7077   rm -f conftest.er1
7078   cat conftest.err >&5
7079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080   (exit $ac_status); } &&
7081          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7082   { (case "(($ac_try" in
7083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7084   *) ac_try_echo=$ac_try;;
7085 esac
7086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7087   (eval "$ac_try") 2>&5
7088   ac_status=$?
7089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090   (exit $ac_status); }; } &&
7091          { ac_try='test -s conftest$ac_exeext'
7092   { (case "(($ac_try" in
7093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7094   *) ac_try_echo=$ac_try;;
7095 esac
7096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7097   (eval "$ac_try") 2>&5
7098   ac_status=$?
7099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100   (exit $ac_status); }; }; then
7101   am_cv_lib_iconv=yes
7102         am_cv_func_iconv=yes
7103 else
7104   echo "$as_me: failed program was:" >&5
7105 sed 's/^/| /' conftest.$ac_ext >&5
7106
7107
7108 fi
7109
7110 rm -f core conftest.err conftest.$ac_objext \
7111       conftest$ac_exeext conftest.$ac_ext
7112       LIBS="$am_save_LIBS"
7113     fi
7114
7115 fi
7116 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7117 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
7118   if test "$am_cv_func_iconv" = yes; then
7119
7120 cat >>confdefs.h <<\_ACEOF
7121 #define HAVE_ICONV 1
7122 _ACEOF
7123
7124   fi
7125   if test "$am_cv_lib_iconv" = yes; then
7126     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
7127 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
7128     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
7129 echo "${ECHO_T}$LIBICONV" >&6; }
7130   else
7131             CPPFLAGS="$am_save_CPPFLAGS"
7132     LIBICONV=
7133     LTLIBICONV=
7134   fi
7135
7136
7137
7138
7139
7140
7141     use_additional=yes
7142
7143   acl_save_prefix="$prefix"
7144   prefix="$acl_final_prefix"
7145   acl_save_exec_prefix="$exec_prefix"
7146   exec_prefix="$acl_final_exec_prefix"
7147
7148     eval additional_includedir=\"$includedir\"
7149     eval additional_libdir=\"$libdir\"
7150
7151   exec_prefix="$acl_save_exec_prefix"
7152   prefix="$acl_save_prefix"
7153
7154
7155 # Check whether --with-libintl-prefix was given.
7156 if test "${with_libintl_prefix+set}" = set; then
7157   withval=$with_libintl_prefix;
7158     if test "X$withval" = "Xno"; then
7159       use_additional=no
7160     else
7161       if test "X$withval" = "X"; then
7162
7163   acl_save_prefix="$prefix"
7164   prefix="$acl_final_prefix"
7165   acl_save_exec_prefix="$exec_prefix"
7166   exec_prefix="$acl_final_exec_prefix"
7167
7168           eval additional_includedir=\"$includedir\"
7169           eval additional_libdir=\"$libdir\"
7170
7171   exec_prefix="$acl_save_exec_prefix"
7172   prefix="$acl_save_prefix"
7173
7174       else
7175         additional_includedir="$withval/include"
7176         additional_libdir="$withval/lib"
7177       fi
7178     fi
7179
7180 fi
7181
7182       LIBINTL=
7183   LTLIBINTL=
7184   INCINTL=
7185   rpathdirs=
7186   ltrpathdirs=
7187   names_already_handled=
7188   names_next_round='intl '
7189   while test -n "$names_next_round"; do
7190     names_this_round="$names_next_round"
7191     names_next_round=
7192     for name in $names_this_round; do
7193       already_handled=
7194       for n in $names_already_handled; do
7195         if test "$n" = "$name"; then
7196           already_handled=yes
7197           break
7198         fi
7199       done
7200       if test -z "$already_handled"; then
7201         names_already_handled="$names_already_handled $name"
7202                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7203         eval value=\"\$HAVE_LIB$uppername\"
7204         if test -n "$value"; then
7205           if test "$value" = yes; then
7206             eval value=\"\$LIB$uppername\"
7207             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7208             eval value=\"\$LTLIB$uppername\"
7209             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7210           else
7211                                     :
7212           fi
7213         else
7214                               found_dir=
7215           found_la=
7216           found_so=
7217           found_a=
7218           if test $use_additional = yes; then
7219             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7220               found_dir="$additional_libdir"
7221               found_so="$additional_libdir/lib$name.$shlibext"
7222               if test -f "$additional_libdir/lib$name.la"; then
7223                 found_la="$additional_libdir/lib$name.la"
7224               fi
7225             else
7226               if test -f "$additional_libdir/lib$name.$libext"; then
7227                 found_dir="$additional_libdir"
7228                 found_a="$additional_libdir/lib$name.$libext"
7229                 if test -f "$additional_libdir/lib$name.la"; then
7230                   found_la="$additional_libdir/lib$name.la"
7231                 fi
7232               fi
7233             fi
7234           fi
7235           if test "X$found_dir" = "X"; then
7236             for x in $LDFLAGS $LTLIBINTL; do
7237
7238   acl_save_prefix="$prefix"
7239   prefix="$acl_final_prefix"
7240   acl_save_exec_prefix="$exec_prefix"
7241   exec_prefix="$acl_final_exec_prefix"
7242   eval x=\"$x\"
7243   exec_prefix="$acl_save_exec_prefix"
7244   prefix="$acl_save_prefix"
7245
7246               case "$x" in
7247                 -L*)
7248                   dir=`echo "X$x" | sed -e 's/^X-L//'`
7249                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7250                     found_dir="$dir"
7251                     found_so="$dir/lib$name.$shlibext"
7252                     if test -f "$dir/lib$name.la"; then
7253                       found_la="$dir/lib$name.la"
7254                     fi
7255                   else
7256                     if test -f "$dir/lib$name.$libext"; then
7257                       found_dir="$dir"
7258                       found_a="$dir/lib$name.$libext"
7259                       if test -f "$dir/lib$name.la"; then
7260                         found_la="$dir/lib$name.la"
7261                       fi
7262                     fi
7263                   fi
7264                   ;;
7265               esac
7266               if test "X$found_dir" != "X"; then
7267                 break
7268               fi
7269             done
7270           fi
7271           if test "X$found_dir" != "X"; then
7272                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7273             if test "X$found_so" != "X"; then
7274                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7275                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7276               else
7277                                                                                 haveit=
7278                 for x in $ltrpathdirs; do
7279                   if test "X$x" = "X$found_dir"; then
7280                     haveit=yes
7281                     break
7282                   fi
7283                 done
7284                 if test -z "$haveit"; then
7285                   ltrpathdirs="$ltrpathdirs $found_dir"
7286                 fi
7287                                 if test "$hardcode_direct" = yes; then
7288                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7289                 else
7290                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7291                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7292                                                             haveit=
7293                     for x in $rpathdirs; do
7294                       if test "X$x" = "X$found_dir"; then
7295                         haveit=yes
7296                         break
7297                       fi
7298                     done
7299                     if test -z "$haveit"; then
7300                       rpathdirs="$rpathdirs $found_dir"
7301                     fi
7302                   else
7303                                                                                 haveit=
7304                     for x in $LDFLAGS $LIBINTL; do
7305
7306   acl_save_prefix="$prefix"
7307   prefix="$acl_final_prefix"
7308   acl_save_exec_prefix="$exec_prefix"
7309   exec_prefix="$acl_final_exec_prefix"
7310   eval x=\"$x\"
7311   exec_prefix="$acl_save_exec_prefix"
7312   prefix="$acl_save_prefix"
7313
7314                       if test "X$x" = "X-L$found_dir"; then
7315                         haveit=yes
7316                         break
7317                       fi
7318                     done
7319                     if test -z "$haveit"; then
7320                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7321                     fi
7322                     if test "$hardcode_minus_L" != no; then
7323                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7324                     else
7325                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7326                     fi
7327                   fi
7328                 fi
7329               fi
7330             else
7331               if test "X$found_a" != "X"; then
7332                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7333               else
7334                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7335               fi
7336             fi
7337                         additional_includedir=
7338             case "$found_dir" in
7339               */lib | */lib/)
7340                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7341                 additional_includedir="$basedir/include"
7342                 ;;
7343             esac
7344             if test "X$additional_includedir" != "X"; then
7345                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
7346                 haveit=
7347                 if test "X$additional_includedir" = "X/usr/local/include"; then
7348                   if test -n "$GCC"; then
7349                     case $host_os in
7350                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7351                     esac
7352                   fi
7353                 fi
7354                 if test -z "$haveit"; then
7355                   for x in $CPPFLAGS $INCINTL; do
7356
7357   acl_save_prefix="$prefix"
7358   prefix="$acl_final_prefix"
7359   acl_save_exec_prefix="$exec_prefix"
7360   exec_prefix="$acl_final_exec_prefix"
7361   eval x=\"$x\"
7362   exec_prefix="$acl_save_exec_prefix"
7363   prefix="$acl_save_prefix"
7364
7365                     if test "X$x" = "X-I$additional_includedir"; then
7366                       haveit=yes
7367                       break
7368                     fi
7369                   done
7370                   if test -z "$haveit"; then
7371                     if test -d "$additional_includedir"; then
7372                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7373                     fi
7374                   fi
7375                 fi
7376               fi
7377             fi
7378                         if test -n "$found_la"; then
7379                                                         save_libdir="$libdir"
7380               case "$found_la" in
7381                 */* | *\\*) . "$found_la" ;;
7382                 *) . "./$found_la" ;;
7383               esac
7384               libdir="$save_libdir"
7385                             for dep in $dependency_libs; do
7386                 case "$dep" in
7387                   -L*)
7388                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7389                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
7390                       haveit=
7391                       if test "X$additional_libdir" = "X/usr/local/lib"; then
7392                         if test -n "$GCC"; then
7393                           case $host_os in
7394                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7395                           esac
7396                         fi
7397                       fi
7398                       if test -z "$haveit"; then
7399                         haveit=
7400                         for x in $LDFLAGS $LIBINTL; do
7401
7402   acl_save_prefix="$prefix"
7403   prefix="$acl_final_prefix"
7404   acl_save_exec_prefix="$exec_prefix"
7405   exec_prefix="$acl_final_exec_prefix"
7406   eval x=\"$x\"
7407   exec_prefix="$acl_save_exec_prefix"
7408   prefix="$acl_save_prefix"
7409
7410                           if test "X$x" = "X-L$additional_libdir"; then
7411                             haveit=yes
7412                             break
7413                           fi
7414                         done
7415                         if test -z "$haveit"; then
7416                           if test -d "$additional_libdir"; then
7417                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7418                           fi
7419                         fi
7420                         haveit=
7421                         for x in $LDFLAGS $LTLIBINTL; do
7422
7423   acl_save_prefix="$prefix"
7424   prefix="$acl_final_prefix"
7425   acl_save_exec_prefix="$exec_prefix"
7426   exec_prefix="$acl_final_exec_prefix"
7427   eval x=\"$x\"
7428   exec_prefix="$acl_save_exec_prefix"
7429   prefix="$acl_save_prefix"
7430
7431                           if test "X$x" = "X-L$additional_libdir"; then
7432                             haveit=yes
7433                             break
7434                           fi
7435                         done
7436                         if test -z "$haveit"; then
7437                           if test -d "$additional_libdir"; then
7438                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7439                           fi
7440                         fi
7441                       fi
7442                     fi
7443                     ;;
7444                   -R*)
7445                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
7446                     if test "$enable_rpath" != no; then
7447                                                                   haveit=
7448                       for x in $rpathdirs; do
7449                         if test "X$x" = "X$dir"; then
7450                           haveit=yes
7451                           break
7452                         fi
7453                       done
7454                       if test -z "$haveit"; then
7455                         rpathdirs="$rpathdirs $dir"
7456                       fi
7457                                                                   haveit=
7458                       for x in $ltrpathdirs; do
7459                         if test "X$x" = "X$dir"; then
7460                           haveit=yes
7461                           break
7462                         fi
7463                       done
7464                       if test -z "$haveit"; then
7465                         ltrpathdirs="$ltrpathdirs $dir"
7466                       fi
7467                     fi
7468                     ;;
7469                   -l*)
7470                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7471                     ;;
7472                   *.la)
7473                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7474                     ;;
7475                   *)
7476                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7477                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7478                     ;;
7479                 esac
7480               done
7481             fi
7482           else
7483                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7484             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7485           fi
7486         fi
7487       fi
7488     done
7489   done
7490   if test "X$rpathdirs" != "X"; then
7491     if test -n "$hardcode_libdir_separator"; then
7492                         alldirs=
7493       for found_dir in $rpathdirs; do
7494         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7495       done
7496             acl_save_libdir="$libdir"
7497       libdir="$alldirs"
7498       eval flag=\"$hardcode_libdir_flag_spec\"
7499       libdir="$acl_save_libdir"
7500       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7501     else
7502             for found_dir in $rpathdirs; do
7503         acl_save_libdir="$libdir"
7504         libdir="$found_dir"
7505         eval flag=\"$hardcode_libdir_flag_spec\"
7506         libdir="$acl_save_libdir"
7507         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7508       done
7509     fi
7510   fi
7511   if test "X$ltrpathdirs" != "X"; then
7512             for found_dir in $ltrpathdirs; do
7513       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7514     done
7515   fi
7516
7517           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7518 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7519 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7520   echo $ECHO_N "(cached) $ECHO_C" >&6
7521 else
7522   gt_save_CPPFLAGS="$CPPFLAGS"
7523             CPPFLAGS="$CPPFLAGS $INCINTL"
7524             gt_save_LIBS="$LIBS"
7525             LIBS="$LIBS $LIBINTL"
7526                         cat >conftest.$ac_ext <<_ACEOF
7527 /* confdefs.h.  */
7528 _ACEOF
7529 cat confdefs.h >>conftest.$ac_ext
7530 cat >>conftest.$ac_ext <<_ACEOF
7531 /* end confdefs.h.  */
7532 #include <libintl.h>
7533 extern int _nl_msg_cat_cntr;
7534 extern
7535 #ifdef __cplusplus
7536 "C"
7537 #endif
7538 const char *_nl_expand_alias (const char *);
7539 int
7540 main ()
7541 {
7542 bindtextdomain ("", "");
7543 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7544   ;
7545   return 0;
7546 }
7547 _ACEOF
7548 rm -f conftest.$ac_objext conftest$ac_exeext
7549 if { (ac_try="$ac_link"
7550 case "(($ac_try" in
7551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7552   *) ac_try_echo=$ac_try;;
7553 esac
7554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7555   (eval "$ac_link") 2>conftest.er1
7556   ac_status=$?
7557   grep -v '^ *+' conftest.er1 >conftest.err
7558   rm -f conftest.er1
7559   cat conftest.err >&5
7560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7561   (exit $ac_status); } &&
7562          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
7569   ac_status=$?
7570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571   (exit $ac_status); }; } &&
7572          { ac_try='test -s conftest$ac_exeext'
7573   { (case "(($ac_try" in
7574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7575   *) ac_try_echo=$ac_try;;
7576 esac
7577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7578   (eval "$ac_try") 2>&5
7579   ac_status=$?
7580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581   (exit $ac_status); }; }; then
7582   gt_cv_func_gnugettext1_libintl=yes
7583 else
7584   echo "$as_me: failed program was:" >&5
7585 sed 's/^/| /' conftest.$ac_ext >&5
7586
7587         gt_cv_func_gnugettext1_libintl=no
7588 fi
7589
7590 rm -f core conftest.err conftest.$ac_objext \
7591       conftest$ac_exeext conftest.$ac_ext
7592                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7593               LIBS="$LIBS $LIBICONV"
7594               cat >conftest.$ac_ext <<_ACEOF
7595 /* confdefs.h.  */
7596 _ACEOF
7597 cat confdefs.h >>conftest.$ac_ext
7598 cat >>conftest.$ac_ext <<_ACEOF
7599 /* end confdefs.h.  */
7600 #include <libintl.h>
7601 extern int _nl_msg_cat_cntr;
7602 extern
7603 #ifdef __cplusplus
7604 "C"
7605 #endif
7606 const char *_nl_expand_alias (const char *);
7607 int
7608 main ()
7609 {
7610 bindtextdomain ("", "");
7611 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7612   ;
7613   return 0;
7614 }
7615 _ACEOF
7616 rm -f conftest.$ac_objext conftest$ac_exeext
7617 if { (ac_try="$ac_link"
7618 case "(($ac_try" in
7619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7620   *) ac_try_echo=$ac_try;;
7621 esac
7622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7623   (eval "$ac_link") 2>conftest.er1
7624   ac_status=$?
7625   grep -v '^ *+' conftest.er1 >conftest.err
7626   rm -f conftest.er1
7627   cat conftest.err >&5
7628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629   (exit $ac_status); } &&
7630          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7631   { (case "(($ac_try" in
7632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633   *) ac_try_echo=$ac_try;;
7634 esac
7635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7636   (eval "$ac_try") 2>&5
7637   ac_status=$?
7638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639   (exit $ac_status); }; } &&
7640          { ac_try='test -s conftest$ac_exeext'
7641   { (case "(($ac_try" in
7642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7643   *) ac_try_echo=$ac_try;;
7644 esac
7645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7646   (eval "$ac_try") 2>&5
7647   ac_status=$?
7648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649   (exit $ac_status); }; }; then
7650   LIBINTL="$LIBINTL $LIBICONV"
7651                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7652                 gt_cv_func_gnugettext1_libintl=yes
7653
7654 else
7655   echo "$as_me: failed program was:" >&5
7656 sed 's/^/| /' conftest.$ac_ext >&5
7657
7658
7659 fi
7660
7661 rm -f core conftest.err conftest.$ac_objext \
7662       conftest$ac_exeext conftest.$ac_ext
7663             fi
7664             CPPFLAGS="$gt_save_CPPFLAGS"
7665             LIBS="$gt_save_LIBS"
7666 fi
7667 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7668 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7669         fi
7670
7671                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7672            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7673                 && test "$PACKAGE" != gettext-runtime \
7674                 && test "$PACKAGE" != gettext-tools; }; then
7675           gt_use_preinstalled_gnugettext=yes
7676         else
7677                     LIBINTL=
7678           LTLIBINTL=
7679           INCINTL=
7680         fi
7681
7682
7683
7684     if test -n "$INTL_MACOSX_LIBS"; then
7685       if test "$gt_use_preinstalled_gnugettext" = "yes" \
7686          || test "$nls_cv_use_gnu_gettext" = "yes"; then
7687                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7688         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7689       fi
7690     fi
7691
7692     if test "$gt_use_preinstalled_gnugettext" = "yes" \
7693        || test "$nls_cv_use_gnu_gettext" = "yes"; then
7694
7695 cat >>confdefs.h <<\_ACEOF
7696 #define ENABLE_NLS 1
7697 _ACEOF
7698
7699     else
7700       USE_NLS=no
7701     fi
7702   fi
7703
7704   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7705 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7706   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7707 echo "${ECHO_T}$USE_NLS" >&6; }
7708   if test "$USE_NLS" = "yes"; then
7709     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7710 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7711     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7712       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7713         gt_source="external libintl"
7714       else
7715         gt_source="libc"
7716       fi
7717     else
7718       gt_source="included intl directory"
7719     fi
7720     { echo "$as_me:$LINENO: result: $gt_source" >&5
7721 echo "${ECHO_T}$gt_source" >&6; }
7722   fi
7723
7724   if test "$USE_NLS" = "yes"; then
7725
7726     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7727       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7728         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7729 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7730         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7731 echo "${ECHO_T}$LIBINTL" >&6; }
7732
7733   for element in $INCINTL; do
7734     haveit=
7735     for x in $CPPFLAGS; do
7736
7737   acl_save_prefix="$prefix"
7738   prefix="$acl_final_prefix"
7739   acl_save_exec_prefix="$exec_prefix"
7740   exec_prefix="$acl_final_exec_prefix"
7741   eval x=\"$x\"
7742   exec_prefix="$acl_save_exec_prefix"
7743   prefix="$acl_save_prefix"
7744
7745       if test "X$x" = "X$element"; then
7746         haveit=yes
7747         break
7748       fi
7749     done
7750     if test -z "$haveit"; then
7751       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7752     fi
7753   done
7754
7755       fi
7756
7757
7758 cat >>confdefs.h <<\_ACEOF
7759 #define HAVE_GETTEXT 1
7760 _ACEOF
7761
7762
7763 cat >>confdefs.h <<\_ACEOF
7764 #define HAVE_DCGETTEXT 1
7765 _ACEOF
7766
7767     fi
7768
7769         POSUB=po
7770   fi
7771
7772
7773
7774     INTLLIBS="$LIBINTL"
7775
7776
7777
7778
7779
7780
7781 if test x${prefix} = xNONE ; then
7782    if test `eval echo ${datadir}` = NONE/share ; then
7783       datadir=/usr/share
7784    fi
7785 fi
7786
7787 # ------------------------------------------------------------------
7788 #  If the user has not set --prefix, we set our default to nothing.
7789 #  In this case, if the user has not set --sysconfdir, we set it
7790 #  to the package default of /etc/bacula.  If either --prefix or
7791 #  --sysconfdir is set, we leave sysconfdir alone except to eval it.
7792 # ------------------------------------------------------------------
7793 if test x${prefix} = xNONE ; then
7794     if test `eval echo ${sysconfdir}` = NONE/etc ; then
7795         sysconfdir=/etc/bacula
7796     fi
7797     prefix=
7798 fi
7799 sysconfdir=`eval echo ${sysconfdir}`
7800 datadir=`eval echo ${datadir}`
7801 localedir=`eval echo ${datadir}/locale`
7802 cat >>confdefs.h <<_ACEOF
7803 #define LOCALEDIR "$localedir"
7804 _ACEOF
7805
7806 cat >>confdefs.h <<_ACEOF
7807 #define SYSCONFDIR "$sysconfdir"
7808 _ACEOF
7809
7810
7811 # -------------------------------------------------------------------------
7812 #  If the user has not set --exec-prefix, we default to ${prefix}
7813 # -------------------------------------------------------------------------
7814 if test x${exec_prefix} = xNONE ; then
7815     exec_prefix=${prefix}
7816 fi
7817
7818 # ------------------------------------------------------------------
7819 # If the user has not set --sbindir, we set our default as /sbin
7820 # ------------------------------------------------------------------
7821 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7822     sbindir=${exec_prefix}/sbin
7823 fi
7824 sbindir=`eval echo ${sbindir}`
7825
7826 # -------------------------------------------------------------------------
7827 #  If the user has not set --mandir, we default to /usr/share/man
7828 # -------------------------------------------------------------------------
7829 if test x$mandir = x'${prefix}/man' ; then
7830    mandir=/usr/share/man
7831 fi
7832
7833
7834 # ------------------------------------------------------------------
7835 # All list of languages for which a translation exist. Each
7836 #  language is separated by a space.
7837 # ------------------------------------------------------------------
7838 ALL_LINGUAS=""
7839
7840 for ac_prog in msgfmt
7841 do
7842   # Extract the first word of "$ac_prog", so it can be a program name with args.
7843 set dummy $ac_prog; ac_word=$2
7844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7846 if test "${ac_cv_path_MSGFMT+set}" = set; then
7847   echo $ECHO_N "(cached) $ECHO_C" >&6
7848 else
7849   case $MSGFMT in
7850   [\\/]* | ?:[\\/]*)
7851   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7852   ;;
7853   *)
7854   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7855 for as_dir in $PATH
7856 do
7857   IFS=$as_save_IFS
7858   test -z "$as_dir" && as_dir=.
7859   for ac_exec_ext in '' $ac_executable_extensions; do
7860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7861     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7863     break 2
7864   fi
7865 done
7866 done
7867 IFS=$as_save_IFS
7868
7869   ;;
7870 esac
7871 fi
7872 MSGFMT=$ac_cv_path_MSGFMT
7873 if test -n "$MSGFMT"; then
7874   { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7875 echo "${ECHO_T}$MSGFMT" >&6; }
7876 else
7877   { echo "$as_me:$LINENO: result: no" >&5
7878 echo "${ECHO_T}no" >&6; }
7879 fi
7880
7881
7882   test -n "$MSGFMT" && break
7883 done
7884 test -n "$MSGFMT" || MSGFMT="no"
7885
7886 if test "$MSGFMT" = "no"
7887 then
7888    echo 'msgfmt program not found, disabling NLS !'
7889    USE_NLS=no
7890    USE_INCLUDED_LIBINTL=no
7891 #else
7892
7893     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7894 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7895 if test "${ac_cv_gnu_library_2+set}" = set; then
7896   echo $ECHO_N "(cached) $ECHO_C" >&6
7897 else
7898   cat >conftest.$ac_ext <<_ACEOF
7899 /* confdefs.h.  */
7900 _ACEOF
7901 cat confdefs.h >>conftest.$ac_ext
7902 cat >>conftest.$ac_ext <<_ACEOF
7903 /* end confdefs.h.  */
7904
7905 #include <features.h>
7906 #ifdef __GNU_LIBRARY__
7907  #if (__GLIBC__ >= 2)
7908   Lucky GNU user
7909  #endif
7910 #endif
7911
7912 _ACEOF
7913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7914   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7915   ac_cv_gnu_library_2=yes
7916 else
7917   ac_cv_gnu_library_2=no
7918 fi
7919 rm -f conftest*
7920
7921
7922
7923 fi
7924 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7925 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7926
7927     GLIBC2="$ac_cv_gnu_library_2"
7928
7929
7930
7931         { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7932 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7933 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7934   echo $ECHO_N "(cached) $ECHO_C" >&6
7935 else
7936   ac_check_lib_save_LIBS=$LIBS
7937 LIBS="-lcposix  $LIBS"
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
7945 /* Override any GCC internal prototype to avoid an error.
7946    Use char because int might match the return type of a GCC
7947    builtin and then its argument prototype would still apply.  */
7948 #ifdef __cplusplus
7949 extern "C"
7950 #endif
7951 char strerror ();
7952 int
7953 main ()
7954 {
7955 return strerror ();
7956   ;
7957   return 0;
7958 }
7959 _ACEOF
7960 rm -f conftest.$ac_objext conftest$ac_exeext
7961 if { (ac_try="$ac_link"
7962 case "(($ac_try" in
7963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7964   *) ac_try_echo=$ac_try;;
7965 esac
7966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7967   (eval "$ac_link") 2>conftest.er1
7968   ac_status=$?
7969   grep -v '^ *+' conftest.er1 >conftest.err
7970   rm -f conftest.er1
7971   cat conftest.err >&5
7972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973   (exit $ac_status); } &&
7974          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7975   { (case "(($ac_try" in
7976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977   *) ac_try_echo=$ac_try;;
7978 esac
7979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980   (eval "$ac_try") 2>&5
7981   ac_status=$?
7982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983   (exit $ac_status); }; } &&
7984          { ac_try='test -s conftest$ac_exeext'
7985   { (case "(($ac_try" in
7986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987   *) ac_try_echo=$ac_try;;
7988 esac
7989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7990   (eval "$ac_try") 2>&5
7991   ac_status=$?
7992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993   (exit $ac_status); }; }; then
7994   ac_cv_lib_cposix_strerror=yes
7995 else
7996   echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
7998
7999         ac_cv_lib_cposix_strerror=no
8000 fi
8001
8002 rm -f core conftest.err conftest.$ac_objext \
8003       conftest$ac_exeext conftest.$ac_ext
8004 LIBS=$ac_check_lib_save_LIBS
8005 fi
8006 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
8007 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
8008 if test $ac_cv_lib_cposix_strerror = yes; then
8009   LIBS="$LIBS -lcposix"
8010 fi
8011
8012
8013
8014 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8015 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8016 if test "${ac_cv_header_stdc+set}" = set; then
8017   echo $ECHO_N "(cached) $ECHO_C" >&6
8018 else
8019   cat >conftest.$ac_ext <<_ACEOF
8020 /* confdefs.h.  */
8021 _ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h.  */
8025 #include <stdlib.h>
8026 #include <stdarg.h>
8027 #include <string.h>
8028 #include <float.h>
8029
8030 int
8031 main ()
8032 {
8033
8034   ;
8035   return 0;
8036 }
8037 _ACEOF
8038 rm -f conftest.$ac_objext
8039 if { (ac_try="$ac_compile"
8040 case "(($ac_try" in
8041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8042   *) ac_try_echo=$ac_try;;
8043 esac
8044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8045   (eval "$ac_compile") 2>conftest.er1
8046   ac_status=$?
8047   grep -v '^ *+' conftest.er1 >conftest.err
8048   rm -f conftest.er1
8049   cat conftest.err >&5
8050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051   (exit $ac_status); } &&
8052          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8062          { ac_try='test -s conftest.$ac_objext'
8063   { (case "(($ac_try" in
8064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8065   *) ac_try_echo=$ac_try;;
8066 esac
8067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8068   (eval "$ac_try") 2>&5
8069   ac_status=$?
8070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071   (exit $ac_status); }; }; then
8072   ac_cv_header_stdc=yes
8073 else
8074   echo "$as_me: failed program was:" >&5
8075 sed 's/^/| /' conftest.$ac_ext >&5
8076
8077         ac_cv_header_stdc=no
8078 fi
8079
8080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8081
8082 if test $ac_cv_header_stdc = yes; then
8083   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8084   cat >conftest.$ac_ext <<_ACEOF
8085 /* confdefs.h.  */
8086 _ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h.  */
8090 #include <string.h>
8091
8092 _ACEOF
8093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8094   $EGREP "memchr" >/dev/null 2>&1; then
8095   :
8096 else
8097   ac_cv_header_stdc=no
8098 fi
8099 rm -f conftest*
8100
8101 fi
8102
8103 if test $ac_cv_header_stdc = yes; then
8104   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8105   cat >conftest.$ac_ext <<_ACEOF
8106 /* confdefs.h.  */
8107 _ACEOF
8108 cat confdefs.h >>conftest.$ac_ext
8109 cat >>conftest.$ac_ext <<_ACEOF
8110 /* end confdefs.h.  */
8111 #include <stdlib.h>
8112
8113 _ACEOF
8114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8115   $EGREP "free" >/dev/null 2>&1; then
8116   :
8117 else
8118   ac_cv_header_stdc=no
8119 fi
8120 rm -f conftest*
8121
8122 fi
8123
8124 if test $ac_cv_header_stdc = yes; then
8125   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8126   if test "$cross_compiling" = yes; then
8127   :
8128 else
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 <ctype.h>
8136 #include <stdlib.h>
8137 #if ((' ' & 0x0FF) == 0x020)
8138 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8139 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8140 #else
8141 # define ISLOWER(c) \
8142                    (('a' <= (c) && (c) <= 'i') \
8143                      || ('j' <= (c) && (c) <= 'r') \
8144                      || ('s' <= (c) && (c) <= 'z'))
8145 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8146 #endif
8147
8148 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8149 int
8150 main ()
8151 {
8152   int i;
8153   for (i = 0; i < 256; i++)
8154     if (XOR (islower (i), ISLOWER (i))
8155         || toupper (i) != TOUPPER (i))
8156       return 2;
8157   return 0;
8158 }
8159 _ACEOF
8160 rm -f conftest$ac_exeext
8161 if { (ac_try="$ac_link"
8162 case "(($ac_try" in
8163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8164   *) ac_try_echo=$ac_try;;
8165 esac
8166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8167   (eval "$ac_link") 2>&5
8168   ac_status=$?
8169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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   :
8181 else
8182   echo "$as_me: program exited with status $ac_status" >&5
8183 echo "$as_me: failed program was:" >&5
8184 sed 's/^/| /' conftest.$ac_ext >&5
8185
8186 ( exit $ac_status )
8187 ac_cv_header_stdc=no
8188 fi
8189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8190 fi
8191
8192
8193 fi
8194 fi
8195 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8196 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8197 if test $ac_cv_header_stdc = yes; then
8198
8199 cat >>confdefs.h <<\_ACEOF
8200 #define STDC_HEADERS 1
8201 _ACEOF
8202
8203 fi
8204
8205 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8206 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8207 if test "${ac_cv_c_const+set}" = set; then
8208   echo $ECHO_N "(cached) $ECHO_C" >&6
8209 else
8210   cat >conftest.$ac_ext <<_ACEOF
8211 /* confdefs.h.  */
8212 _ACEOF
8213 cat confdefs.h >>conftest.$ac_ext
8214 cat >>conftest.$ac_ext <<_ACEOF
8215 /* end confdefs.h.  */
8216
8217 int
8218 main ()
8219 {
8220 /* FIXME: Include the comments suggested by Paul. */
8221 #ifndef __cplusplus
8222   /* Ultrix mips cc rejects this.  */
8223   typedef int charset[2];
8224   const charset x;
8225   /* SunOS 4.1.1 cc rejects this.  */
8226   char const *const *ccp;
8227   char **p;
8228   /* NEC SVR4.0.2 mips cc rejects this.  */
8229   struct point {int x, y;};
8230   static struct point const zero = {0,0};
8231   /* AIX XL C 1.02.0.0 rejects this.
8232      It does not let you subtract one const X* pointer from another in
8233      an arm of an if-expression whose if-part is not a constant
8234      expression */
8235   const char *g = "string";
8236   ccp = &g + (g ? g-g : 0);
8237   /* HPUX 7.0 cc rejects these. */
8238   ++ccp;
8239   p = (char**) ccp;
8240   ccp = (char const *const *) p;
8241   { /* SCO 3.2v4 cc rejects this.  */
8242     char *t;
8243     char const *s = 0 ? (char *) 0 : (char const *) 0;
8244
8245     *t++ = 0;
8246     if (s) return 0;
8247   }
8248   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
8249     int x[] = {25, 17};
8250     const int *foo = &x[0];
8251     ++foo;
8252   }
8253   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8254     typedef const int *iptr;
8255     iptr p = 0;
8256     ++p;
8257   }
8258   { /* AIX XL C 1.02.0.0 rejects this saying
8259        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8260     struct s { int j; const int *ap[3]; };
8261     struct s *b; b->j = 5;
8262   }
8263   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8264     const int foo = 10;
8265     if (!foo) return 0;
8266   }
8267   return !x[0] && !zero.x;
8268 #endif
8269
8270   ;
8271   return 0;
8272 }
8273 _ACEOF
8274 rm -f conftest.$ac_objext
8275 if { (ac_try="$ac_compile"
8276 case "(($ac_try" in
8277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278   *) ac_try_echo=$ac_try;;
8279 esac
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281   (eval "$ac_compile") 2>conftest.er1
8282   ac_status=$?
8283   grep -v '^ *+' conftest.er1 >conftest.err
8284   rm -f conftest.er1
8285   cat conftest.err >&5
8286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287   (exit $ac_status); } &&
8288          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8289   { (case "(($ac_try" in
8290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8291   *) ac_try_echo=$ac_try;;
8292 esac
8293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8294   (eval "$ac_try") 2>&5
8295   ac_status=$?
8296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297   (exit $ac_status); }; } &&
8298          { ac_try='test -s conftest.$ac_objext'
8299   { (case "(($ac_try" in
8300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8301   *) ac_try_echo=$ac_try;;
8302 esac
8303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8304   (eval "$ac_try") 2>&5
8305   ac_status=$?
8306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307   (exit $ac_status); }; }; then
8308   ac_cv_c_const=yes
8309 else
8310   echo "$as_me: failed program was:" >&5
8311 sed 's/^/| /' conftest.$ac_ext >&5
8312
8313         ac_cv_c_const=no
8314 fi
8315
8316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8317 fi
8318 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8319 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8320 if test $ac_cv_c_const = no; then
8321
8322 cat >>confdefs.h <<\_ACEOF
8323 #define const
8324 _ACEOF
8325
8326 fi
8327
8328
8329   { echo "$as_me:$LINENO: checking for signed" >&5
8330 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8331 if test "${bh_cv_c_signed+set}" = set; then
8332   echo $ECHO_N "(cached) $ECHO_C" >&6
8333 else
8334   cat >conftest.$ac_ext <<_ACEOF
8335 /* confdefs.h.  */
8336 _ACEOF
8337 cat confdefs.h >>conftest.$ac_ext
8338 cat >>conftest.$ac_ext <<_ACEOF
8339 /* end confdefs.h.  */
8340
8341 int
8342 main ()
8343 {
8344 signed char x;
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   bh_cv_c_signed=yes
8384 else
8385   echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8387
8388         bh_cv_c_signed=no
8389 fi
8390
8391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8392 fi
8393 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8394 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8395   if test $bh_cv_c_signed = no; then
8396
8397 cat >>confdefs.h <<\_ACEOF
8398 #define signed
8399 _ACEOF
8400
8401   fi
8402
8403 { echo "$as_me:$LINENO: checking for inline" >&5
8404 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8405 if test "${ac_cv_c_inline+set}" = set; then
8406   echo $ECHO_N "(cached) $ECHO_C" >&6
8407 else
8408   ac_cv_c_inline=no
8409 for ac_kw in inline __inline__ __inline; do
8410   cat >conftest.$ac_ext <<_ACEOF
8411 /* confdefs.h.  */
8412 _ACEOF
8413 cat confdefs.h >>conftest.$ac_ext
8414 cat >>conftest.$ac_ext <<_ACEOF
8415 /* end confdefs.h.  */
8416 #ifndef __cplusplus
8417 typedef int foo_t;
8418 static $ac_kw foo_t static_foo () {return 0; }
8419 $ac_kw foo_t foo () {return 0; }
8420 #endif
8421
8422 _ACEOF
8423 rm -f conftest.$ac_objext
8424 if { (ac_try="$ac_compile"
8425 case "(($ac_try" in
8426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427   *) ac_try_echo=$ac_try;;
8428 esac
8429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430   (eval "$ac_compile") 2>conftest.er1
8431   ac_status=$?
8432   grep -v '^ *+' conftest.er1 >conftest.err
8433   rm -f conftest.er1
8434   cat conftest.err >&5
8435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436   (exit $ac_status); } &&
8437          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
8444   ac_status=$?
8445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446   (exit $ac_status); }; } &&
8447          { ac_try='test -s conftest.$ac_objext'
8448   { (case "(($ac_try" in
8449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450   *) ac_try_echo=$ac_try;;
8451 esac
8452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8453   (eval "$ac_try") 2>&5
8454   ac_status=$?
8455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456   (exit $ac_status); }; }; then
8457   ac_cv_c_inline=$ac_kw
8458 else
8459   echo "$as_me: failed program was:" >&5
8460 sed 's/^/| /' conftest.$ac_ext >&5
8461
8462
8463 fi
8464
8465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8466   test "$ac_cv_c_inline" != no && break
8467 done
8468
8469 fi
8470 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8471 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8472
8473
8474 case $ac_cv_c_inline in
8475   inline | yes) ;;
8476   *)
8477     case $ac_cv_c_inline in
8478       no) ac_val=;;
8479       *) ac_val=$ac_cv_c_inline;;
8480     esac
8481     cat >>confdefs.h <<_ACEOF
8482 #ifndef __cplusplus
8483 #define inline $ac_val
8484 #endif
8485 _ACEOF
8486     ;;
8487 esac
8488
8489 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8500                   inttypes.h stdint.h unistd.h
8501 do
8502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8506   echo $ECHO_N "(cached) $ECHO_C" >&6
8507 else
8508   cat >conftest.$ac_ext <<_ACEOF
8509 /* confdefs.h.  */
8510 _ACEOF
8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h.  */
8514 $ac_includes_default
8515
8516 #include <$ac_header>
8517 _ACEOF
8518 rm -f conftest.$ac_objext
8519 if { (ac_try="$ac_compile"
8520 case "(($ac_try" in
8521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8522   *) ac_try_echo=$ac_try;;
8523 esac
8524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8525   (eval "$ac_compile") 2>conftest.er1
8526   ac_status=$?
8527   grep -v '^ *+' conftest.er1 >conftest.err
8528   rm -f conftest.er1
8529   cat conftest.err >&5
8530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531   (exit $ac_status); } &&
8532          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8533   { (case "(($ac_try" in
8534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8535   *) ac_try_echo=$ac_try;;
8536 esac
8537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8538   (eval "$ac_try") 2>&5
8539   ac_status=$?
8540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541   (exit $ac_status); }; } &&
8542          { ac_try='test -s conftest.$ac_objext'
8543   { (case "(($ac_try" in
8544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8545   *) ac_try_echo=$ac_try;;
8546 esac
8547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8548   (eval "$ac_try") 2>&5
8549   ac_status=$?
8550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551   (exit $ac_status); }; }; then
8552   eval "$as_ac_Header=yes"
8553 else
8554   echo "$as_me: failed program was:" >&5
8555 sed 's/^/| /' conftest.$ac_ext >&5
8556
8557         eval "$as_ac_Header=no"
8558 fi
8559
8560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8561 fi
8562 ac_res=`eval echo '${'$as_ac_Header'}'`
8563                { echo "$as_me:$LINENO: result: $ac_res" >&5
8564 echo "${ECHO_T}$ac_res" >&6; }
8565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8566   cat >>confdefs.h <<_ACEOF
8567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8568 _ACEOF
8569
8570 fi
8571
8572 done
8573
8574
8575 { echo "$as_me:$LINENO: checking for off_t" >&5
8576 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8577 if test "${ac_cv_type_off_t+set}" = set; then
8578   echo $ECHO_N "(cached) $ECHO_C" >&6
8579 else
8580   cat >conftest.$ac_ext <<_ACEOF
8581 /* confdefs.h.  */
8582 _ACEOF
8583 cat confdefs.h >>conftest.$ac_ext
8584 cat >>conftest.$ac_ext <<_ACEOF
8585 /* end confdefs.h.  */
8586 $ac_includes_default
8587 typedef off_t ac__type_new_;
8588 int
8589 main ()
8590 {
8591 if ((ac__type_new_ *) 0)
8592   return 0;
8593 if (sizeof (ac__type_new_))
8594   return 0;
8595   ;
8596   return 0;
8597 }
8598 _ACEOF
8599 rm -f conftest.$ac_objext
8600 if { (ac_try="$ac_compile"
8601 case "(($ac_try" in
8602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8603   *) ac_try_echo=$ac_try;;
8604 esac
8605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8606   (eval "$ac_compile") 2>conftest.er1
8607   ac_status=$?
8608   grep -v '^ *+' conftest.er1 >conftest.err
8609   rm -f conftest.er1
8610   cat conftest.err >&5
8611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612   (exit $ac_status); } &&
8613          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8614   { (case "(($ac_try" in
8615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8616   *) ac_try_echo=$ac_try;;
8617 esac
8618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8619   (eval "$ac_try") 2>&5
8620   ac_status=$?
8621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622   (exit $ac_status); }; } &&
8623          { ac_try='test -s conftest.$ac_objext'
8624   { (case "(($ac_try" in
8625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8626   *) ac_try_echo=$ac_try;;
8627 esac
8628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8629   (eval "$ac_try") 2>&5
8630   ac_status=$?
8631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632   (exit $ac_status); }; }; then
8633   ac_cv_type_off_t=yes
8634 else
8635   echo "$as_me: failed program was:" >&5
8636 sed 's/^/| /' conftest.$ac_ext >&5
8637
8638         ac_cv_type_off_t=no
8639 fi
8640
8641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8642 fi
8643 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8644 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8645 if test $ac_cv_type_off_t = yes; then
8646   :
8647 else
8648
8649 cat >>confdefs.h <<_ACEOF
8650 #define off_t long int
8651 _ACEOF
8652
8653 fi
8654
8655 { echo "$as_me:$LINENO: checking for size_t" >&5
8656 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8657 if test "${ac_cv_type_size_t+set}" = set; then
8658   echo $ECHO_N "(cached) $ECHO_C" >&6
8659 else
8660   cat >conftest.$ac_ext <<_ACEOF
8661 /* confdefs.h.  */
8662 _ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h.  */
8666 $ac_includes_default
8667 typedef size_t ac__type_new_;
8668 int
8669 main ()
8670 {
8671 if ((ac__type_new_ *) 0)
8672   return 0;
8673 if (sizeof (ac__type_new_))
8674   return 0;
8675   ;
8676   return 0;
8677 }
8678 _ACEOF
8679 rm -f conftest.$ac_objext
8680 if { (ac_try="$ac_compile"
8681 case "(($ac_try" in
8682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8683   *) ac_try_echo=$ac_try;;
8684 esac
8685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8686   (eval "$ac_compile") 2>conftest.er1
8687   ac_status=$?
8688   grep -v '^ *+' conftest.er1 >conftest.err
8689   rm -f conftest.er1
8690   cat conftest.err >&5
8691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692   (exit $ac_status); } &&
8693          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8694   { (case "(($ac_try" in
8695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696   *) ac_try_echo=$ac_try;;
8697 esac
8698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8699   (eval "$ac_try") 2>&5
8700   ac_status=$?
8701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702   (exit $ac_status); }; } &&
8703          { ac_try='test -s conftest.$ac_objext'
8704   { (case "(($ac_try" in
8705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706   *) ac_try_echo=$ac_try;;
8707 esac
8708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8709   (eval "$ac_try") 2>&5
8710   ac_status=$?
8711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712   (exit $ac_status); }; }; then
8713   ac_cv_type_size_t=yes
8714 else
8715   echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.$ac_ext >&5
8717
8718         ac_cv_type_size_t=no
8719 fi
8720
8721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8722 fi
8723 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8724 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8725 if test $ac_cv_type_size_t = yes; then
8726   :
8727 else
8728
8729 cat >>confdefs.h <<_ACEOF
8730 #define size_t unsigned int
8731 _ACEOF
8732
8733 fi
8734
8735
8736   { echo "$as_me:$LINENO: checking for long long" >&5
8737 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8738 if test "${ac_cv_type_long_long+set}" = set; then
8739   echo $ECHO_N "(cached) $ECHO_C" >&6
8740 else
8741   cat >conftest.$ac_ext <<_ACEOF
8742 /* confdefs.h.  */
8743 _ACEOF
8744 cat confdefs.h >>conftest.$ac_ext
8745 cat >>conftest.$ac_ext <<_ACEOF
8746 /* end confdefs.h.  */
8747 long long ll = 1LL; int i = 63;
8748 int
8749 main ()
8750 {
8751 long long llmax = (long long) -1;
8752      return ll << i | ll >> i | llmax / ll | llmax % ll;
8753   ;
8754   return 0;
8755 }
8756 _ACEOF
8757 rm -f conftest.$ac_objext conftest$ac_exeext
8758 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
8765   ac_status=$?
8766   grep -v '^ *+' conftest.er1 >conftest.err
8767   rm -f conftest.er1
8768   cat conftest.err >&5
8769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770   (exit $ac_status); } &&
8771          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8772   { (case "(($ac_try" in
8773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8774   *) ac_try_echo=$ac_try;;
8775 esac
8776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8777   (eval "$ac_try") 2>&5
8778   ac_status=$?
8779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780   (exit $ac_status); }; } &&
8781          { ac_try='test -s conftest$ac_exeext'
8782   { (case "(($ac_try" in
8783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8784   *) ac_try_echo=$ac_try;;
8785 esac
8786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8787   (eval "$ac_try") 2>&5
8788   ac_status=$?
8789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790   (exit $ac_status); }; }; then
8791   ac_cv_type_long_long=yes
8792 else
8793   echo "$as_me: failed program was:" >&5
8794 sed 's/^/| /' conftest.$ac_ext >&5
8795
8796         ac_cv_type_long_long=no
8797 fi
8798
8799 rm -f core conftest.err conftest.$ac_objext \
8800       conftest$ac_exeext conftest.$ac_ext
8801 fi
8802 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8803 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8804   if test $ac_cv_type_long_long = yes; then
8805
8806 cat >>confdefs.h <<\_ACEOF
8807 #define HAVE_LONG_LONG 1
8808 _ACEOF
8809
8810   fi
8811
8812
8813   { echo "$as_me:$LINENO: checking for long double" >&5
8814 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8815 if test "${gt_cv_c_long_double+set}" = set; then
8816   echo $ECHO_N "(cached) $ECHO_C" >&6
8817 else
8818   if test "$GCC" = yes; then
8819        gt_cv_c_long_double=yes
8820      else
8821        cat >conftest.$ac_ext <<_ACEOF
8822 /* confdefs.h.  */
8823 _ACEOF
8824 cat confdefs.h >>conftest.$ac_ext
8825 cat >>conftest.$ac_ext <<_ACEOF
8826 /* end confdefs.h.  */
8827
8828          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
8829          long double foo = 0.0;
8830          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
8831          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8832
8833 int
8834 main ()
8835 {
8836
8837   ;
8838   return 0;
8839 }
8840 _ACEOF
8841 rm -f conftest.$ac_objext
8842 if { (ac_try="$ac_compile"
8843 case "(($ac_try" in
8844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8845   *) ac_try_echo=$ac_try;;
8846 esac
8847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8848   (eval "$ac_compile") 2>conftest.er1
8849   ac_status=$?
8850   grep -v '^ *+' conftest.er1 >conftest.err
8851   rm -f conftest.er1
8852   cat conftest.err >&5
8853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854   (exit $ac_status); } &&
8855          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8856   { (case "(($ac_try" in
8857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8858   *) ac_try_echo=$ac_try;;
8859 esac
8860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8861   (eval "$ac_try") 2>&5
8862   ac_status=$?
8863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864   (exit $ac_status); }; } &&
8865          { ac_try='test -s conftest.$ac_objext'
8866   { (case "(($ac_try" in
8867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8868   *) ac_try_echo=$ac_try;;
8869 esac
8870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8871   (eval "$ac_try") 2>&5
8872   ac_status=$?
8873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874   (exit $ac_status); }; }; then
8875   gt_cv_c_long_double=yes
8876 else
8877   echo "$as_me: failed program was:" >&5
8878 sed 's/^/| /' conftest.$ac_ext >&5
8879
8880         gt_cv_c_long_double=no
8881 fi
8882
8883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8884      fi
8885 fi
8886 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8887 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8888   if test $gt_cv_c_long_double = yes; then
8889
8890 cat >>confdefs.h <<\_ACEOF
8891 #define HAVE_LONG_DOUBLE 1
8892 _ACEOF
8893
8894   fi
8895
8896
8897   { echo "$as_me:$LINENO: checking for wchar_t" >&5
8898 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8899 if test "${gt_cv_c_wchar_t+set}" = set; then
8900   echo $ECHO_N "(cached) $ECHO_C" >&6
8901 else
8902   cat >conftest.$ac_ext <<_ACEOF
8903 /* confdefs.h.  */
8904 _ACEOF
8905 cat confdefs.h >>conftest.$ac_ext
8906 cat >>conftest.$ac_ext <<_ACEOF
8907 /* end confdefs.h.  */
8908 #include <stddef.h>
8909        wchar_t foo = (wchar_t)'\0';
8910 int
8911 main ()
8912 {
8913
8914   ;
8915   return 0;
8916 }
8917 _ACEOF
8918 rm -f conftest.$ac_objext
8919 if { (ac_try="$ac_compile"
8920 case "(($ac_try" in
8921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8922   *) ac_try_echo=$ac_try;;
8923 esac
8924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8925   (eval "$ac_compile") 2>conftest.er1
8926   ac_status=$?
8927   grep -v '^ *+' conftest.er1 >conftest.err
8928   rm -f conftest.er1
8929   cat conftest.err >&5
8930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931   (exit $ac_status); } &&
8932          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8933   { (case "(($ac_try" in
8934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8935   *) ac_try_echo=$ac_try;;
8936 esac
8937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8938   (eval "$ac_try") 2>&5
8939   ac_status=$?
8940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941   (exit $ac_status); }; } &&
8942          { ac_try='test -s conftest.$ac_objext'
8943   { (case "(($ac_try" in
8944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8945   *) ac_try_echo=$ac_try;;
8946 esac
8947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8948   (eval "$ac_try") 2>&5
8949   ac_status=$?
8950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951   (exit $ac_status); }; }; then
8952   gt_cv_c_wchar_t=yes
8953 else
8954   echo "$as_me: failed program was:" >&5
8955 sed 's/^/| /' conftest.$ac_ext >&5
8956
8957         gt_cv_c_wchar_t=no
8958 fi
8959
8960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8961 fi
8962 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8963 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8964   if test $gt_cv_c_wchar_t = yes; then
8965
8966 cat >>confdefs.h <<\_ACEOF
8967 #define HAVE_WCHAR_T 1
8968 _ACEOF
8969
8970   fi
8971
8972
8973   { echo "$as_me:$LINENO: checking for wint_t" >&5
8974 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8975 if test "${gt_cv_c_wint_t+set}" = set; then
8976   echo $ECHO_N "(cached) $ECHO_C" >&6
8977 else
8978   cat >conftest.$ac_ext <<_ACEOF
8979 /* confdefs.h.  */
8980 _ACEOF
8981 cat confdefs.h >>conftest.$ac_ext
8982 cat >>conftest.$ac_ext <<_ACEOF
8983 /* end confdefs.h.  */
8984 #include <wchar.h>
8985        wint_t foo = (wchar_t)'\0';
8986 int
8987 main ()
8988 {
8989
8990   ;
8991   return 0;
8992 }
8993 _ACEOF
8994 rm -f conftest.$ac_objext
8995 if { (ac_try="$ac_compile"
8996 case "(($ac_try" in
8997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8998   *) ac_try_echo=$ac_try;;
8999 esac
9000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9001   (eval "$ac_compile") 2>conftest.er1
9002   ac_status=$?
9003   grep -v '^ *+' conftest.er1 >conftest.err
9004   rm -f conftest.er1
9005   cat conftest.err >&5
9006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007   (exit $ac_status); } &&
9008          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9009   { (case "(($ac_try" in
9010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9011   *) ac_try_echo=$ac_try;;
9012 esac
9013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9014   (eval "$ac_try") 2>&5
9015   ac_status=$?
9016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017   (exit $ac_status); }; } &&
9018          { ac_try='test -s conftest.$ac_objext'
9019   { (case "(($ac_try" in
9020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9021   *) ac_try_echo=$ac_try;;
9022 esac
9023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9024   (eval "$ac_try") 2>&5
9025   ac_status=$?
9026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027   (exit $ac_status); }; }; then
9028   gt_cv_c_wint_t=yes
9029 else
9030   echo "$as_me: failed program was:" >&5
9031 sed 's/^/| /' conftest.$ac_ext >&5
9032
9033         gt_cv_c_wint_t=no
9034 fi
9035
9036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9037 fi
9038 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
9039 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
9040   if test $gt_cv_c_wint_t = yes; then
9041
9042 cat >>confdefs.h <<\_ACEOF
9043 #define HAVE_WINT_T 1
9044 _ACEOF
9045
9046   fi
9047
9048
9049   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9050 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9051 if test "${gl_cv_header_inttypes_h+set}" = set; then
9052   echo $ECHO_N "(cached) $ECHO_C" >&6
9053 else
9054   cat >conftest.$ac_ext <<_ACEOF
9055 /* confdefs.h.  */
9056 _ACEOF
9057 cat confdefs.h >>conftest.$ac_ext
9058 cat >>conftest.$ac_ext <<_ACEOF
9059 /* end confdefs.h.  */
9060 #include <sys/types.h>
9061 #include <inttypes.h>
9062 int
9063 main ()
9064 {
9065 uintmax_t i = (uintmax_t) -1;
9066   ;
9067   return 0;
9068 }
9069 _ACEOF
9070 rm -f conftest.$ac_objext
9071 if { (ac_try="$ac_compile"
9072 case "(($ac_try" in
9073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9074   *) ac_try_echo=$ac_try;;
9075 esac
9076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9077   (eval "$ac_compile") 2>conftest.er1
9078   ac_status=$?
9079   grep -v '^ *+' conftest.er1 >conftest.err
9080   rm -f conftest.er1
9081   cat conftest.err >&5
9082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083   (exit $ac_status); } &&
9084          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9085   { (case "(($ac_try" in
9086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9087   *) ac_try_echo=$ac_try;;
9088 esac
9089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9090   (eval "$ac_try") 2>&5
9091   ac_status=$?
9092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093   (exit $ac_status); }; } &&
9094          { ac_try='test -s conftest.$ac_objext'
9095   { (case "(($ac_try" in
9096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9097   *) ac_try_echo=$ac_try;;
9098 esac
9099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9100   (eval "$ac_try") 2>&5
9101   ac_status=$?
9102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103   (exit $ac_status); }; }; then
9104   gl_cv_header_inttypes_h=yes
9105 else
9106   echo "$as_me: failed program was:" >&5
9107 sed 's/^/| /' conftest.$ac_ext >&5
9108
9109         gl_cv_header_inttypes_h=no
9110 fi
9111
9112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9113 fi
9114 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
9115 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
9116   if test $gl_cv_header_inttypes_h = yes; then
9117
9118 cat >>confdefs.h <<_ACEOF
9119 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
9120 _ACEOF
9121
9122   fi
9123
9124
9125   { echo "$as_me:$LINENO: checking for stdint.h" >&5
9126 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
9127 if test "${gl_cv_header_stdint_h+set}" = set; then
9128   echo $ECHO_N "(cached) $ECHO_C" >&6
9129 else
9130   cat >conftest.$ac_ext <<_ACEOF
9131 /* confdefs.h.  */
9132 _ACEOF
9133 cat confdefs.h >>conftest.$ac_ext
9134 cat >>conftest.$ac_ext <<_ACEOF
9135 /* end confdefs.h.  */
9136 #include <sys/types.h>
9137 #include <stdint.h>
9138 int
9139 main ()
9140 {
9141 uintmax_t i = (uintmax_t) -1;
9142   ;
9143   return 0;
9144 }
9145 _ACEOF
9146 rm -f conftest.$ac_objext
9147 if { (ac_try="$ac_compile"
9148 case "(($ac_try" in
9149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9150   *) ac_try_echo=$ac_try;;
9151 esac
9152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9153   (eval "$ac_compile") 2>conftest.er1
9154   ac_status=$?
9155   grep -v '^ *+' conftest.er1 >conftest.err
9156   rm -f conftest.er1
9157   cat conftest.err >&5
9158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159   (exit $ac_status); } &&
9160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9161   { (case "(($ac_try" in
9162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163   *) ac_try_echo=$ac_try;;
9164 esac
9165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166   (eval "$ac_try") 2>&5
9167   ac_status=$?
9168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169   (exit $ac_status); }; } &&
9170          { ac_try='test -s conftest.$ac_objext'
9171   { (case "(($ac_try" in
9172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9173   *) ac_try_echo=$ac_try;;
9174 esac
9175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9176   (eval "$ac_try") 2>&5
9177   ac_status=$?
9178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179   (exit $ac_status); }; }; then
9180   gl_cv_header_stdint_h=yes
9181 else
9182   echo "$as_me: failed program was:" >&5
9183 sed 's/^/| /' conftest.$ac_ext >&5
9184
9185         gl_cv_header_stdint_h=no
9186 fi
9187
9188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9189 fi
9190 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
9191 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
9192   if test $gl_cv_header_stdint_h = yes; then
9193
9194 cat >>confdefs.h <<_ACEOF
9195 #define HAVE_STDINT_H_WITH_UINTMAX 1
9196 _ACEOF
9197
9198   fi
9199
9200
9201
9202
9203   { echo "$as_me:$LINENO: checking for intmax_t" >&5
9204 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
9205 if test "${gt_cv_c_intmax_t+set}" = set; then
9206   echo $ECHO_N "(cached) $ECHO_C" >&6
9207 else
9208   cat >conftest.$ac_ext <<_ACEOF
9209 /* confdefs.h.  */
9210 _ACEOF
9211 cat confdefs.h >>conftest.$ac_ext
9212 cat >>conftest.$ac_ext <<_ACEOF
9213 /* end confdefs.h.  */
9214
9215 #include <stddef.h>
9216 #include <stdlib.h>
9217 #if HAVE_STDINT_H_WITH_UINTMAX
9218 #include <stdint.h>
9219 #endif
9220 #if HAVE_INTTYPES_H_WITH_UINTMAX
9221 #include <inttypes.h>
9222 #endif
9223
9224 int
9225 main ()
9226 {
9227 intmax_t x = -1;
9228   ;
9229   return 0;
9230 }
9231 _ACEOF
9232 rm -f conftest.$ac_objext
9233 if { (ac_try="$ac_compile"
9234 case "(($ac_try" in
9235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9236   *) ac_try_echo=$ac_try;;
9237 esac
9238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9239   (eval "$ac_compile") 2>conftest.er1
9240   ac_status=$?
9241   grep -v '^ *+' conftest.er1 >conftest.err
9242   rm -f conftest.er1
9243   cat conftest.err >&5
9244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245   (exit $ac_status); } &&
9246          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9247   { (case "(($ac_try" in
9248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9249   *) ac_try_echo=$ac_try;;
9250 esac
9251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9252   (eval "$ac_try") 2>&5
9253   ac_status=$?
9254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255   (exit $ac_status); }; } &&
9256          { ac_try='test -s conftest.$ac_objext'
9257   { (case "(($ac_try" in
9258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9259   *) ac_try_echo=$ac_try;;
9260 esac
9261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9262   (eval "$ac_try") 2>&5
9263   ac_status=$?
9264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265   (exit $ac_status); }; }; then
9266   gt_cv_c_intmax_t=yes
9267 else
9268   echo "$as_me: failed program was:" >&5
9269 sed 's/^/| /' conftest.$ac_ext >&5
9270
9271         gt_cv_c_intmax_t=no
9272 fi
9273
9274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9275 fi
9276 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
9277 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
9278   if test $gt_cv_c_intmax_t = yes; then
9279
9280 cat >>confdefs.h <<\_ACEOF
9281 #define HAVE_INTMAX_T 1
9282 _ACEOF
9283
9284   fi
9285
9286
9287
9288   { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
9289 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
9290 if test "${gt_cv_func_printf_posix+set}" = set; then
9291   echo $ECHO_N "(cached) $ECHO_C" >&6
9292 else
9293
9294       if test "$cross_compiling" = yes; then
9295
9296         cat >conftest.$ac_ext <<_ACEOF
9297 /* confdefs.h.  */
9298 _ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h.  */
9302
9303 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9304   notposix
9305 #endif
9306
9307 _ACEOF
9308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9309   $EGREP "notposix" >/dev/null 2>&1; then
9310   gt_cv_func_printf_posix="guessing no"
9311 else
9312   gt_cv_func_printf_posix="guessing yes"
9313 fi
9314 rm -f conftest*
9315
9316
9317 else
9318   cat >conftest.$ac_ext <<_ACEOF
9319 /* confdefs.h.  */
9320 _ACEOF
9321 cat confdefs.h >>conftest.$ac_ext
9322 cat >>conftest.$ac_ext <<_ACEOF
9323 /* end confdefs.h.  */
9324
9325 #include <stdio.h>
9326 #include <string.h>
9327 /* The string "%2$d %1$d", with dollar characters protected from the shell's
9328    dollar expansion (possibly an autoconf bug).  */
9329 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9330 static char buf[100];
9331 int main ()
9332 {
9333   sprintf (buf, format, 33, 55);
9334   return (strcmp (buf, "55 33") != 0);
9335 }
9336 _ACEOF
9337 rm -f conftest$ac_exeext
9338 if { (ac_try="$ac_link"
9339 case "(($ac_try" in
9340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9341   *) ac_try_echo=$ac_try;;
9342 esac
9343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9344   (eval "$ac_link") 2>&5
9345   ac_status=$?
9346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9348   { (case "(($ac_try" in
9349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9350   *) ac_try_echo=$ac_try;;
9351 esac
9352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9353   (eval "$ac_try") 2>&5
9354   ac_status=$?
9355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356   (exit $ac_status); }; }; then
9357   gt_cv_func_printf_posix=yes
9358 else
9359   echo "$as_me: program exited with status $ac_status" >&5
9360 echo "$as_me: failed program was:" >&5
9361 sed 's/^/| /' conftest.$ac_ext >&5
9362
9363 ( exit $ac_status )
9364 gt_cv_func_printf_posix=no
9365 fi
9366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9367 fi
9368
9369
9370
9371 fi
9372 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
9373 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
9374   case $gt_cv_func_printf_posix in
9375     *yes)
9376
9377 cat >>confdefs.h <<\_ACEOF
9378 #define HAVE_POSIX_PRINTF 1
9379 _ACEOF
9380
9381       ;;
9382   esac
9383
9384 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9385 # for constant arguments.  Useless!
9386 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
9387 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
9388 if test "${ac_cv_working_alloca_h+set}" = set; then
9389   echo $ECHO_N "(cached) $ECHO_C" >&6
9390 else
9391   cat >conftest.$ac_ext <<_ACEOF
9392 /* confdefs.h.  */
9393 _ACEOF
9394 cat confdefs.h >>conftest.$ac_ext
9395 cat >>conftest.$ac_ext <<_ACEOF
9396 /* end confdefs.h.  */
9397 #include <alloca.h>
9398 int
9399 main ()
9400 {
9401 char *p = (char *) alloca (2 * sizeof (int));
9402                           if (p) return 0;
9403   ;
9404   return 0;
9405 }
9406 _ACEOF
9407 rm -f conftest.$ac_objext conftest$ac_exeext
9408 if { (ac_try="$ac_link"
9409 case "(($ac_try" in
9410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9411   *) ac_try_echo=$ac_try;;
9412 esac
9413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9414   (eval "$ac_link") 2>conftest.er1
9415   ac_status=$?
9416   grep -v '^ *+' conftest.er1 >conftest.err
9417   rm -f conftest.er1
9418   cat conftest.err >&5
9419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420   (exit $ac_status); } &&
9421          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9422   { (case "(($ac_try" in
9423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9424   *) ac_try_echo=$ac_try;;
9425 esac
9426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9427   (eval "$ac_try") 2>&5
9428   ac_status=$?
9429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430   (exit $ac_status); }; } &&
9431          { ac_try='test -s conftest$ac_exeext'
9432   { (case "(($ac_try" in
9433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9434   *) ac_try_echo=$ac_try;;
9435 esac
9436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9437   (eval "$ac_try") 2>&5
9438   ac_status=$?
9439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440   (exit $ac_status); }; }; then
9441   ac_cv_working_alloca_h=yes
9442 else
9443   echo "$as_me: failed program was:" >&5
9444 sed 's/^/| /' conftest.$ac_ext >&5
9445
9446         ac_cv_working_alloca_h=no
9447 fi
9448
9449 rm -f core conftest.err conftest.$ac_objext \
9450       conftest$ac_exeext conftest.$ac_ext
9451 fi
9452 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9453 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9454 if test $ac_cv_working_alloca_h = yes; then
9455
9456 cat >>confdefs.h <<\_ACEOF
9457 #define HAVE_ALLOCA_H 1
9458 _ACEOF
9459
9460 fi
9461
9462 { echo "$as_me:$LINENO: checking for alloca" >&5
9463 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9464 if test "${ac_cv_func_alloca_works+set}" = set; then
9465   echo $ECHO_N "(cached) $ECHO_C" >&6
9466 else
9467   cat >conftest.$ac_ext <<_ACEOF
9468 /* confdefs.h.  */
9469 _ACEOF
9470 cat confdefs.h >>conftest.$ac_ext
9471 cat >>conftest.$ac_ext <<_ACEOF
9472 /* end confdefs.h.  */
9473 #ifdef __GNUC__
9474 # define alloca __builtin_alloca
9475 #else
9476 # ifdef _MSC_VER
9477 #  include <malloc.h>
9478 #  define alloca _alloca
9479 # else
9480 #  if HAVE_ALLOCA_H
9481 #   include <alloca.h>
9482 #  else
9483 #   ifdef _AIX
9484  #pragma alloca
9485 #   else
9486 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9487 char *alloca ();
9488 #    endif
9489 #   endif
9490 #  endif
9491 # endif
9492 #endif
9493
9494 int
9495 main ()
9496 {
9497 char *p = (char *) alloca (1);
9498                                     if (p) return 0;
9499   ;
9500   return 0;
9501 }
9502 _ACEOF
9503 rm -f conftest.$ac_objext conftest$ac_exeext
9504 if { (ac_try="$ac_link"
9505 case "(($ac_try" in
9506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9507   *) ac_try_echo=$ac_try;;
9508 esac
9509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9510   (eval "$ac_link") 2>conftest.er1
9511   ac_status=$?
9512   grep -v '^ *+' conftest.er1 >conftest.err
9513   rm -f conftest.er1
9514   cat conftest.err >&5
9515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516   (exit $ac_status); } &&
9517          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9518   { (case "(($ac_try" in
9519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9520   *) ac_try_echo=$ac_try;;
9521 esac
9522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9523   (eval "$ac_try") 2>&5
9524   ac_status=$?
9525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526   (exit $ac_status); }; } &&
9527          { ac_try='test -s conftest$ac_exeext'
9528   { (case "(($ac_try" in
9529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9530   *) ac_try_echo=$ac_try;;
9531 esac
9532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9533   (eval "$ac_try") 2>&5
9534   ac_status=$?
9535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536   (exit $ac_status); }; }; then
9537   ac_cv_func_alloca_works=yes
9538 else
9539   echo "$as_me: failed program was:" >&5
9540 sed 's/^/| /' conftest.$ac_ext >&5
9541
9542         ac_cv_func_alloca_works=no
9543 fi
9544
9545 rm -f core conftest.err conftest.$ac_objext \
9546       conftest$ac_exeext conftest.$ac_ext
9547 fi
9548 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9549 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9550
9551 if test $ac_cv_func_alloca_works = yes; then
9552
9553 cat >>confdefs.h <<\_ACEOF
9554 #define HAVE_ALLOCA 1
9555 _ACEOF
9556
9557 else
9558   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9559 # that cause trouble.  Some versions do not even contain alloca or
9560 # contain a buggy version.  If you still want to use their alloca,
9561 # use ar to extract alloca.o from them instead of compiling alloca.c.
9562
9563 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9564
9565 cat >>confdefs.h <<\_ACEOF
9566 #define C_ALLOCA 1
9567 _ACEOF
9568
9569
9570 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9571 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9572 if test "${ac_cv_os_cray+set}" = set; then
9573   echo $ECHO_N "(cached) $ECHO_C" >&6
9574 else
9575   cat >conftest.$ac_ext <<_ACEOF
9576 /* confdefs.h.  */
9577 _ACEOF
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h.  */
9581 #if defined CRAY && ! defined CRAY2
9582 webecray
9583 #else
9584 wenotbecray
9585 #endif
9586
9587 _ACEOF
9588 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9589   $EGREP "webecray" >/dev/null 2>&1; then
9590   ac_cv_os_cray=yes
9591 else
9592   ac_cv_os_cray=no
9593 fi
9594 rm -f conftest*
9595
9596 fi
9597 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9598 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9599 if test $ac_cv_os_cray = yes; then
9600   for ac_func in _getb67 GETB67 getb67; do
9601     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9602 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9603 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9604 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9605   echo $ECHO_N "(cached) $ECHO_C" >&6
9606 else
9607   cat >conftest.$ac_ext <<_ACEOF
9608 /* confdefs.h.  */
9609 _ACEOF
9610 cat confdefs.h >>conftest.$ac_ext
9611 cat >>conftest.$ac_ext <<_ACEOF
9612 /* end confdefs.h.  */
9613 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9614    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9615 #define $ac_func innocuous_$ac_func
9616
9617 /* System header to define __stub macros and hopefully few prototypes,
9618     which can conflict with char $ac_func (); below.
9619     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9620     <limits.h> exists even on freestanding compilers.  */
9621
9622 #ifdef __STDC__
9623 # include <limits.h>
9624 #else
9625 # include <assert.h>
9626 #endif
9627
9628 #undef $ac_func
9629
9630 /* Override any GCC internal prototype to avoid an error.
9631    Use char because int might match the return type of a GCC
9632    builtin and then its argument prototype would still apply.  */
9633 #ifdef __cplusplus
9634 extern "C"
9635 #endif
9636 char $ac_func ();
9637 /* The GNU C library defines this for functions which it implements
9638     to always fail with ENOSYS.  Some functions are actually named
9639     something starting with __ and the normal name is an alias.  */
9640 #if defined __stub_$ac_func || defined __stub___$ac_func
9641 choke me
9642 #endif
9643
9644 int
9645 main ()
9646 {
9647 return $ac_func ();
9648   ;
9649   return 0;
9650 }
9651 _ACEOF
9652 rm -f conftest.$ac_objext conftest$ac_exeext
9653 if { (ac_try="$ac_link"
9654 case "(($ac_try" in
9655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9656   *) ac_try_echo=$ac_try;;
9657 esac
9658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9659   (eval "$ac_link") 2>conftest.er1
9660   ac_status=$?
9661   grep -v '^ *+' conftest.er1 >conftest.err
9662   rm -f conftest.er1
9663   cat conftest.err >&5
9664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665   (exit $ac_status); } &&
9666          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9667   { (case "(($ac_try" in
9668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9669   *) ac_try_echo=$ac_try;;
9670 esac
9671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9672   (eval "$ac_try") 2>&5
9673   ac_status=$?
9674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675   (exit $ac_status); }; } &&
9676          { ac_try='test -s conftest$ac_exeext'
9677   { (case "(($ac_try" in
9678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9679   *) ac_try_echo=$ac_try;;
9680 esac
9681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9682   (eval "$ac_try") 2>&5
9683   ac_status=$?
9684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685   (exit $ac_status); }; }; then
9686   eval "$as_ac_var=yes"
9687 else
9688   echo "$as_me: failed program was:" >&5
9689 sed 's/^/| /' conftest.$ac_ext >&5
9690
9691         eval "$as_ac_var=no"
9692 fi
9693
9694 rm -f core conftest.err conftest.$ac_objext \
9695       conftest$ac_exeext conftest.$ac_ext
9696 fi
9697 ac_res=`eval echo '${'$as_ac_var'}'`
9698                { echo "$as_me:$LINENO: result: $ac_res" >&5
9699 echo "${ECHO_T}$ac_res" >&6; }
9700 if test `eval echo '${'$as_ac_var'}'` = yes; then
9701
9702 cat >>confdefs.h <<_ACEOF
9703 #define CRAY_STACKSEG_END $ac_func
9704 _ACEOF
9705
9706     break
9707 fi
9708
9709   done
9710 fi
9711
9712 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9713 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9714 if test "${ac_cv_c_stack_direction+set}" = set; then
9715   echo $ECHO_N "(cached) $ECHO_C" >&6
9716 else
9717   if test "$cross_compiling" = yes; then
9718   ac_cv_c_stack_direction=0
9719 else
9720   cat >conftest.$ac_ext <<_ACEOF
9721 /* confdefs.h.  */
9722 _ACEOF
9723 cat confdefs.h >>conftest.$ac_ext
9724 cat >>conftest.$ac_ext <<_ACEOF
9725 /* end confdefs.h.  */
9726 $ac_includes_default
9727 int
9728 find_stack_direction ()
9729 {
9730   static char *addr = 0;
9731   auto char dummy;
9732   if (addr == 0)
9733     {
9734       addr = &dummy;
9735       return find_stack_direction ();
9736     }
9737   else
9738     return (&dummy > addr) ? 1 : -1;
9739 }
9740
9741 int
9742 main ()
9743 {
9744   return find_stack_direction () < 0;
9745 }
9746 _ACEOF
9747 rm -f conftest$ac_exeext
9748 if { (ac_try="$ac_link"
9749 case "(($ac_try" in
9750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751   *) ac_try_echo=$ac_try;;
9752 esac
9753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754   (eval "$ac_link") 2>&5
9755   ac_status=$?
9756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9758   { (case "(($ac_try" in
9759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9760   *) ac_try_echo=$ac_try;;
9761 esac
9762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9763   (eval "$ac_try") 2>&5
9764   ac_status=$?
9765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766   (exit $ac_status); }; }; then
9767   ac_cv_c_stack_direction=1
9768 else
9769   echo "$as_me: program exited with status $ac_status" >&5
9770 echo "$as_me: failed program was:" >&5
9771 sed 's/^/| /' conftest.$ac_ext >&5
9772
9773 ( exit $ac_status )
9774 ac_cv_c_stack_direction=-1
9775 fi
9776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9777 fi
9778
9779
9780 fi
9781 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9782 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9783
9784 cat >>confdefs.h <<_ACEOF
9785 #define STACK_DIRECTION $ac_cv_c_stack_direction
9786 _ACEOF
9787
9788
9789 fi
9790
9791
9792
9793 for ac_header in stdlib.h unistd.h
9794 do
9795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9797   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9800   echo $ECHO_N "(cached) $ECHO_C" >&6
9801 fi
9802 ac_res=`eval echo '${'$as_ac_Header'}'`
9803                { echo "$as_me:$LINENO: result: $ac_res" >&5
9804 echo "${ECHO_T}$ac_res" >&6; }
9805 else
9806   # Is the header compilable?
9807 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9809 cat >conftest.$ac_ext <<_ACEOF
9810 /* confdefs.h.  */
9811 _ACEOF
9812 cat confdefs.h >>conftest.$ac_ext
9813 cat >>conftest.$ac_ext <<_ACEOF
9814 /* end confdefs.h.  */
9815 $ac_includes_default
9816 #include <$ac_header>
9817 _ACEOF
9818 rm -f conftest.$ac_objext
9819 if { (ac_try="$ac_compile"
9820 case "(($ac_try" in
9821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822   *) ac_try_echo=$ac_try;;
9823 esac
9824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825   (eval "$ac_compile") 2>conftest.er1
9826   ac_status=$?
9827   grep -v '^ *+' conftest.er1 >conftest.err
9828   rm -f conftest.er1
9829   cat conftest.err >&5
9830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831   (exit $ac_status); } &&
9832          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9833   { (case "(($ac_try" in
9834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9835   *) ac_try_echo=$ac_try;;
9836 esac
9837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9838   (eval "$ac_try") 2>&5
9839   ac_status=$?
9840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841   (exit $ac_status); }; } &&
9842          { ac_try='test -s conftest.$ac_objext'
9843   { (case "(($ac_try" in
9844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9845   *) ac_try_echo=$ac_try;;
9846 esac
9847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9848   (eval "$ac_try") 2>&5
9849   ac_status=$?
9850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851   (exit $ac_status); }; }; then
9852   ac_header_compiler=yes
9853 else
9854   echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.$ac_ext >&5
9856
9857         ac_header_compiler=no
9858 fi
9859
9860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9861 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9862 echo "${ECHO_T}$ac_header_compiler" >&6; }
9863
9864 # Is the header present?
9865 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9867 cat >conftest.$ac_ext <<_ACEOF
9868 /* confdefs.h.  */
9869 _ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h.  */
9873 #include <$ac_header>
9874 _ACEOF
9875 if { (ac_try="$ac_cpp conftest.$ac_ext"
9876 case "(($ac_try" in
9877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9878   *) ac_try_echo=$ac_try;;
9879 esac
9880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9881   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9882   ac_status=$?
9883   grep -v '^ *+' conftest.er1 >conftest.err
9884   rm -f conftest.er1
9885   cat conftest.err >&5
9886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887   (exit $ac_status); } >/dev/null; then
9888   if test -s conftest.err; then
9889     ac_cpp_err=$ac_c_preproc_warn_flag
9890     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9891   else
9892     ac_cpp_err=
9893   fi
9894 else
9895   ac_cpp_err=yes
9896 fi
9897 if test -z "$ac_cpp_err"; then
9898   ac_header_preproc=yes
9899 else
9900   echo "$as_me: failed program was:" >&5
9901 sed 's/^/| /' conftest.$ac_ext >&5
9902
9903   ac_header_preproc=no
9904 fi
9905
9906 rm -f conftest.err conftest.$ac_ext
9907 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9908 echo "${ECHO_T}$ac_header_preproc" >&6; }
9909
9910 # So?  What about this header?
9911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9912   yes:no: )
9913     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9914 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9915     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9916 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9917     ac_header_preproc=yes
9918     ;;
9919   no:yes:* )
9920     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9921 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9922     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9923 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9924     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9925 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9926     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9927 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9928     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9929 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9930     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9931 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9932
9933     ;;
9934 esac
9935 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9936 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9938   echo $ECHO_N "(cached) $ECHO_C" >&6
9939 else
9940   eval "$as_ac_Header=\$ac_header_preproc"
9941 fi
9942 ac_res=`eval echo '${'$as_ac_Header'}'`
9943                { echo "$as_me:$LINENO: result: $ac_res" >&5
9944 echo "${ECHO_T}$ac_res" >&6; }
9945
9946 fi
9947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9948   cat >>confdefs.h <<_ACEOF
9949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9950 _ACEOF
9951
9952 fi
9953
9954 done
9955
9956
9957 for ac_func in getpagesize
9958 do
9959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9963   echo $ECHO_N "(cached) $ECHO_C" >&6
9964 else
9965   cat >conftest.$ac_ext <<_ACEOF
9966 /* confdefs.h.  */
9967 _ACEOF
9968 cat confdefs.h >>conftest.$ac_ext
9969 cat >>conftest.$ac_ext <<_ACEOF
9970 /* end confdefs.h.  */
9971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9972    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9973 #define $ac_func innocuous_$ac_func
9974
9975 /* System header to define __stub macros and hopefully few prototypes,
9976     which can conflict with char $ac_func (); below.
9977     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9978     <limits.h> exists even on freestanding compilers.  */
9979
9980 #ifdef __STDC__
9981 # include <limits.h>
9982 #else
9983 # include <assert.h>
9984 #endif
9985
9986 #undef $ac_func
9987
9988 /* Override any GCC internal prototype to avoid an error.
9989    Use char because int might match the return type of a GCC
9990    builtin and then its argument prototype would still apply.  */
9991 #ifdef __cplusplus
9992 extern "C"
9993 #endif
9994 char $ac_func ();
9995 /* The GNU C library defines this for functions which it implements
9996     to always fail with ENOSYS.  Some functions are actually named
9997     something starting with __ and the normal name is an alias.  */
9998 #if defined __stub_$ac_func || defined __stub___$ac_func
9999 choke me
10000 #endif
10001
10002 int
10003 main ()
10004 {
10005 return $ac_func ();
10006   ;
10007   return 0;
10008 }
10009 _ACEOF
10010 rm -f conftest.$ac_objext conftest$ac_exeext
10011 if { (ac_try="$ac_link"
10012 case "(($ac_try" in
10013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10014   *) ac_try_echo=$ac_try;;
10015 esac
10016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10017   (eval "$ac_link") 2>conftest.er1
10018   ac_status=$?
10019   grep -v '^ *+' conftest.er1 >conftest.err
10020   rm -f conftest.er1
10021   cat conftest.err >&5
10022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023   (exit $ac_status); } &&
10024          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10025   { (case "(($ac_try" in
10026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027   *) ac_try_echo=$ac_try;;
10028 esac
10029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10030   (eval "$ac_try") 2>&5
10031   ac_status=$?
10032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033   (exit $ac_status); }; } &&
10034          { ac_try='test -s conftest$ac_exeext'
10035   { (case "(($ac_try" in
10036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10037   *) ac_try_echo=$ac_try;;
10038 esac
10039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10040   (eval "$ac_try") 2>&5
10041   ac_status=$?
10042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10043   (exit $ac_status); }; }; then
10044   eval "$as_ac_var=yes"
10045 else
10046   echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10048
10049         eval "$as_ac_var=no"
10050 fi
10051
10052 rm -f core conftest.err conftest.$ac_objext \
10053       conftest$ac_exeext conftest.$ac_ext
10054 fi
10055 ac_res=`eval echo '${'$as_ac_var'}'`
10056                { echo "$as_me:$LINENO: result: $ac_res" >&5
10057 echo "${ECHO_T}$ac_res" >&6; }
10058 if test `eval echo '${'$as_ac_var'}'` = yes; then
10059   cat >>confdefs.h <<_ACEOF
10060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10061 _ACEOF
10062
10063 fi
10064 done
10065
10066 { echo "$as_me:$LINENO: checking for working mmap" >&5
10067 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10068 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10069   echo $ECHO_N "(cached) $ECHO_C" >&6
10070 else
10071   if test "$cross_compiling" = yes; then
10072   ac_cv_func_mmap_fixed_mapped=no
10073 else
10074   cat >conftest.$ac_ext <<_ACEOF
10075 /* confdefs.h.  */
10076 _ACEOF
10077 cat confdefs.h >>conftest.$ac_ext
10078 cat >>conftest.$ac_ext <<_ACEOF
10079 /* end confdefs.h.  */
10080 $ac_includes_default
10081 /* malloc might have been renamed as rpl_malloc. */
10082 #undef malloc
10083
10084 /* Thanks to Mike Haertel and Jim Avera for this test.
10085    Here is a matrix of mmap possibilities:
10086         mmap private not fixed
10087         mmap private fixed at somewhere currently unmapped
10088         mmap private fixed at somewhere already mapped
10089         mmap shared not fixed
10090         mmap shared fixed at somewhere currently unmapped
10091         mmap shared fixed at somewhere already mapped
10092    For private mappings, we should verify that changes cannot be read()
10093    back from the file, nor mmap's back from the file at a different
10094    address.  (There have been systems where private was not correctly
10095    implemented like the infamous i386 svr4.0, and systems where the
10096    VM page cache was not coherent with the file system buffer cache
10097    like early versions of FreeBSD and possibly contemporary NetBSD.)
10098    For shared mappings, we should conversely verify that changes get
10099    propagated back to all the places they're supposed to be.
10100
10101    Grep wants private fixed already mapped.
10102    The main things grep needs to know about mmap are:
10103    * does it exist and is it safe to write into the mmap'd area
10104    * how to use it (BSD variants)  */
10105
10106 #include <fcntl.h>
10107 #include <sys/mman.h>
10108
10109 #if !STDC_HEADERS && !HAVE_STDLIB_H
10110 char *malloc ();
10111 #endif
10112
10113 /* This mess was copied from the GNU getpagesize.h.  */
10114 #if !HAVE_GETPAGESIZE
10115 /* Assume that all systems that can run configure have sys/param.h.  */
10116 # if !HAVE_SYS_PARAM_H
10117 #  define HAVE_SYS_PARAM_H 1
10118 # endif
10119
10120 # ifdef _SC_PAGESIZE
10121 #  define getpagesize() sysconf(_SC_PAGESIZE)
10122 # else /* no _SC_PAGESIZE */
10123 #  if HAVE_SYS_PARAM_H
10124 #   include <sys/param.h>
10125 #   ifdef EXEC_PAGESIZE
10126 #    define getpagesize() EXEC_PAGESIZE
10127 #   else /* no EXEC_PAGESIZE */
10128 #    ifdef NBPG
10129 #     define getpagesize() NBPG * CLSIZE
10130 #     ifndef CLSIZE
10131 #      define CLSIZE 1
10132 #     endif /* no CLSIZE */
10133 #    else /* no NBPG */
10134 #     ifdef NBPC
10135 #      define getpagesize() NBPC
10136 #     else /* no NBPC */
10137 #      ifdef PAGESIZE
10138 #       define getpagesize() PAGESIZE
10139 #      endif /* PAGESIZE */
10140 #     endif /* no NBPC */
10141 #    endif /* no NBPG */
10142 #   endif /* no EXEC_PAGESIZE */
10143 #  else /* no HAVE_SYS_PARAM_H */
10144 #   define getpagesize() 8192   /* punt totally */
10145 #  endif /* no HAVE_SYS_PARAM_H */
10146 # endif /* no _SC_PAGESIZE */
10147
10148 #endif /* no HAVE_GETPAGESIZE */
10149
10150 int
10151 main ()
10152 {
10153   char *data, *data2, *data3;
10154   int i, pagesize;
10155   int fd;
10156
10157   pagesize = getpagesize ();
10158
10159   /* First, make a file with some known garbage in it. */
10160   data = (char *) malloc (pagesize);
10161   if (!data)
10162     return 1;
10163   for (i = 0; i < pagesize; ++i)
10164     *(data + i) = rand ();
10165   umask (0);
10166   fd = creat ("conftest.mmap", 0600);
10167   if (fd < 0)
10168     return 1;
10169   if (write (fd, data, pagesize) != pagesize)
10170     return 1;
10171   close (fd);
10172
10173   /* Next, try to mmap the file at a fixed address which already has
10174      something else allocated at it.  If we can, also make sure that
10175      we see the same garbage.  */
10176   fd = open ("conftest.mmap", O_RDWR);
10177   if (fd < 0)
10178     return 1;
10179   data2 = (char *) malloc (2 * pagesize);
10180   if (!data2)
10181     return 1;
10182   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10183   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10184                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
10185     return 1;
10186   for (i = 0; i < pagesize; ++i)
10187     if (*(data + i) != *(data2 + i))
10188       return 1;
10189
10190   /* Finally, make sure that changes to the mapped area do not
10191      percolate back to the file as seen by read().  (This is a bug on
10192      some variants of i386 svr4.0.)  */
10193   for (i = 0; i < pagesize; ++i)
10194     *(data2 + i) = *(data2 + i) + 1;
10195   data3 = (char *) malloc (pagesize);
10196   if (!data3)
10197     return 1;
10198   if (read (fd, data3, pagesize) != pagesize)
10199     return 1;
10200   for (i = 0; i < pagesize; ++i)
10201     if (*(data + i) != *(data3 + i))
10202       return 1;
10203   close (fd);
10204   return 0;
10205 }
10206 _ACEOF
10207 rm -f conftest$ac_exeext
10208 if { (ac_try="$ac_link"
10209 case "(($ac_try" in
10210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10211   *) ac_try_echo=$ac_try;;
10212 esac
10213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10214   (eval "$ac_link") 2>&5
10215   ac_status=$?
10216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10218   { (case "(($ac_try" in
10219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10220   *) ac_try_echo=$ac_try;;
10221 esac
10222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10223   (eval "$ac_try") 2>&5
10224   ac_status=$?
10225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226   (exit $ac_status); }; }; then
10227   ac_cv_func_mmap_fixed_mapped=yes
10228 else
10229   echo "$as_me: program exited with status $ac_status" >&5
10230 echo "$as_me: failed program was:" >&5
10231 sed 's/^/| /' conftest.$ac_ext >&5
10232
10233 ( exit $ac_status )
10234 ac_cv_func_mmap_fixed_mapped=no
10235 fi
10236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10237 fi
10238
10239
10240 fi
10241 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10242 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10243 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10244
10245 cat >>confdefs.h <<\_ACEOF
10246 #define HAVE_MMAP 1
10247 _ACEOF
10248
10249 fi
10250 rm -f conftest.mmap
10251
10252
10253     { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
10254 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
10255 if test "${ac_cv_gnu_library_2_1+set}" = set; then
10256   echo $ECHO_N "(cached) $ECHO_C" >&6
10257 else
10258   cat >conftest.$ac_ext <<_ACEOF
10259 /* confdefs.h.  */
10260 _ACEOF
10261 cat confdefs.h >>conftest.$ac_ext
10262 cat >>conftest.$ac_ext <<_ACEOF
10263 /* end confdefs.h.  */
10264
10265 #include <features.h>
10266 #ifdef __GNU_LIBRARY__
10267  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
10268   Lucky GNU user
10269  #endif
10270 #endif
10271
10272 _ACEOF
10273 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10274   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
10275   ac_cv_gnu_library_2_1=yes
10276 else
10277   ac_cv_gnu_library_2_1=no
10278 fi
10279 rm -f conftest*
10280
10281
10282
10283 fi
10284 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
10285 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
10286
10287     GLIBC21="$ac_cv_gnu_library_2_1"
10288
10289
10290
10291
10292   { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
10293 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
10294 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
10295   echo $ECHO_N "(cached) $ECHO_C" >&6
10296 else
10297
10298       if test "$cross_compiling" = yes; then
10299
10300           # Guess based on the CPU.
10301           case "$host_cpu" in
10302             alpha* | i3456786 | m68k | s390*)
10303               gt_cv_int_divbyzero_sigfpe="guessing yes";;
10304             *)
10305               gt_cv_int_divbyzero_sigfpe="guessing no";;
10306           esac
10307
10308 else
10309   cat >conftest.$ac_ext <<_ACEOF
10310 /* confdefs.h.  */
10311 _ACEOF
10312 cat confdefs.h >>conftest.$ac_ext
10313 cat >>conftest.$ac_ext <<_ACEOF
10314 /* end confdefs.h.  */
10315
10316 #include <stdlib.h>
10317 #include <signal.h>
10318
10319 static void
10320 #ifdef __cplusplus
10321 sigfpe_handler (int sig)
10322 #else
10323 sigfpe_handler (sig) int sig;
10324 #endif
10325 {
10326   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
10327   exit (sig != SIGFPE);
10328 }
10329
10330 int x = 1;
10331 int y = 0;
10332 int z;
10333 int nan;
10334
10335 int main ()
10336 {
10337   signal (SIGFPE, sigfpe_handler);
10338 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
10339 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
10340   signal (SIGTRAP, sigfpe_handler);
10341 #endif
10342 /* Linux/SPARC yields signal SIGILL.  */
10343 #if defined (__sparc__) && defined (__linux__)
10344   signal (SIGILL, sigfpe_handler);
10345 #endif
10346
10347   z = x / y;
10348   nan = y / y;
10349   exit (1);
10350 }
10351
10352 _ACEOF
10353 rm -f conftest$ac_exeext
10354 if { (ac_try="$ac_link"
10355 case "(($ac_try" in
10356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10357   *) ac_try_echo=$ac_try;;
10358 esac
10359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10360   (eval "$ac_link") 2>&5
10361   ac_status=$?
10362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10364   { (case "(($ac_try" in
10365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10366   *) ac_try_echo=$ac_try;;
10367 esac
10368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10369   (eval "$ac_try") 2>&5
10370   ac_status=$?
10371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372   (exit $ac_status); }; }; then
10373   gt_cv_int_divbyzero_sigfpe=yes
10374 else
10375   echo "$as_me: program exited with status $ac_status" >&5
10376 echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.$ac_ext >&5
10378
10379 ( exit $ac_status )
10380 gt_cv_int_divbyzero_sigfpe=no
10381 fi
10382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10383 fi
10384
10385
10386
10387 fi
10388 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
10389 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
10390   case "$gt_cv_int_divbyzero_sigfpe" in
10391     *yes) value=1;;
10392     *) value=0;;
10393   esac
10394
10395 cat >>confdefs.h <<_ACEOF
10396 #define INTDIV0_RAISES_SIGFPE $value
10397 _ACEOF
10398
10399
10400
10401   { echo "$as_me:$LINENO: checking for unsigned long long" >&5
10402 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
10403 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
10404   echo $ECHO_N "(cached) $ECHO_C" >&6
10405 else
10406   cat >conftest.$ac_ext <<_ACEOF
10407 /* confdefs.h.  */
10408 _ACEOF
10409 cat confdefs.h >>conftest.$ac_ext
10410 cat >>conftest.$ac_ext <<_ACEOF
10411 /* end confdefs.h.  */
10412 unsigned long long ull = 1ULL; int i = 63;
10413 int
10414 main ()
10415 {
10416 unsigned long long ullmax = (unsigned long long) -1;
10417      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
10418   ;
10419   return 0;
10420 }
10421 _ACEOF
10422 rm -f conftest.$ac_objext conftest$ac_exeext
10423 if { (ac_try="$ac_link"
10424 case "(($ac_try" in
10425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10426   *) ac_try_echo=$ac_try;;
10427 esac
10428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10429   (eval "$ac_link") 2>conftest.er1
10430   ac_status=$?
10431   grep -v '^ *+' conftest.er1 >conftest.err
10432   rm -f conftest.er1
10433   cat conftest.err >&5
10434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435   (exit $ac_status); } &&
10436          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10437   { (case "(($ac_try" in
10438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10439   *) ac_try_echo=$ac_try;;
10440 esac
10441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10442   (eval "$ac_try") 2>&5
10443   ac_status=$?
10444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445   (exit $ac_status); }; } &&
10446          { ac_try='test -s conftest$ac_exeext'
10447   { (case "(($ac_try" in
10448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10449   *) ac_try_echo=$ac_try;;
10450 esac
10451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10452   (eval "$ac_try") 2>&5
10453   ac_status=$?
10454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455   (exit $ac_status); }; }; then
10456   ac_cv_type_unsigned_long_long=yes
10457 else
10458   echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10460
10461         ac_cv_type_unsigned_long_long=no
10462 fi
10463
10464 rm -f core conftest.err conftest.$ac_objext \
10465       conftest$ac_exeext conftest.$ac_ext
10466 fi
10467 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
10468 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
10469   if test $ac_cv_type_unsigned_long_long = yes; then
10470
10471 cat >>confdefs.h <<\_ACEOF
10472 #define HAVE_UNSIGNED_LONG_LONG 1
10473 _ACEOF
10474
10475   fi
10476
10477
10478
10479
10480   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
10481
10482     test $ac_cv_type_unsigned_long_long = yes \
10483       && ac_type='unsigned long long' \
10484       || ac_type='unsigned long'
10485
10486 cat >>confdefs.h <<_ACEOF
10487 #define uintmax_t $ac_type
10488 _ACEOF
10489
10490   else
10491
10492 cat >>confdefs.h <<\_ACEOF
10493 #define HAVE_UINTMAX_T 1
10494 _ACEOF
10495
10496   fi
10497
10498
10499   { echo "$as_me:$LINENO: checking for inttypes.h" >&5
10500 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
10501 if test "${gt_cv_header_inttypes_h+set}" = set; then
10502   echo $ECHO_N "(cached) $ECHO_C" >&6
10503 else
10504
10505     cat >conftest.$ac_ext <<_ACEOF
10506 /* confdefs.h.  */
10507 _ACEOF
10508 cat confdefs.h >>conftest.$ac_ext
10509 cat >>conftest.$ac_ext <<_ACEOF
10510 /* end confdefs.h.  */
10511 #include <sys/types.h>
10512 #include <inttypes.h>
10513 int
10514 main ()
10515 {
10516
10517   ;
10518   return 0;
10519 }
10520 _ACEOF
10521 rm -f conftest.$ac_objext
10522 if { (ac_try="$ac_compile"
10523 case "(($ac_try" in
10524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10525   *) ac_try_echo=$ac_try;;
10526 esac
10527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10528   (eval "$ac_compile") 2>conftest.er1
10529   ac_status=$?
10530   grep -v '^ *+' conftest.er1 >conftest.err
10531   rm -f conftest.er1
10532   cat conftest.err >&5
10533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534   (exit $ac_status); } &&
10535          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10536   { (case "(($ac_try" in
10537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538   *) ac_try_echo=$ac_try;;
10539 esac
10540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541   (eval "$ac_try") 2>&5
10542   ac_status=$?
10543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544   (exit $ac_status); }; } &&
10545          { ac_try='test -s conftest.$ac_objext'
10546   { (case "(($ac_try" in
10547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10548   *) ac_try_echo=$ac_try;;
10549 esac
10550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10551   (eval "$ac_try") 2>&5
10552   ac_status=$?
10553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554   (exit $ac_status); }; }; then
10555   gt_cv_header_inttypes_h=yes
10556 else
10557   echo "$as_me: failed program was:" >&5
10558 sed 's/^/| /' conftest.$ac_ext >&5
10559
10560         gt_cv_header_inttypes_h=no
10561 fi
10562
10563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10564
10565 fi
10566 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10567 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10568   if test $gt_cv_header_inttypes_h = yes; then
10569
10570 cat >>confdefs.h <<_ACEOF
10571 #define HAVE_INTTYPES_H 1
10572 _ACEOF
10573
10574   fi
10575
10576
10577
10578   if test $gt_cv_header_inttypes_h = yes; then
10579     { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10580 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10581 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10582   echo $ECHO_N "(cached) $ECHO_C" >&6
10583 else
10584
10585         cat >conftest.$ac_ext <<_ACEOF
10586 /* confdefs.h.  */
10587 _ACEOF
10588 cat confdefs.h >>conftest.$ac_ext
10589 cat >>conftest.$ac_ext <<_ACEOF
10590 /* end confdefs.h.  */
10591 #include <inttypes.h>
10592 #ifdef PRId32
10593 char *p = PRId32;
10594 #endif
10595
10596 int
10597 main ()
10598 {
10599
10600   ;
10601   return 0;
10602 }
10603 _ACEOF
10604 rm -f conftest.$ac_objext
10605 if { (ac_try="$ac_compile"
10606 case "(($ac_try" in
10607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10608   *) ac_try_echo=$ac_try;;
10609 esac
10610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10611   (eval "$ac_compile") 2>conftest.er1
10612   ac_status=$?
10613   grep -v '^ *+' conftest.er1 >conftest.err
10614   rm -f conftest.er1
10615   cat conftest.err >&5
10616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617   (exit $ac_status); } &&
10618          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10619   { (case "(($ac_try" in
10620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10621   *) ac_try_echo=$ac_try;;
10622 esac
10623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10624   (eval "$ac_try") 2>&5
10625   ac_status=$?
10626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627   (exit $ac_status); }; } &&
10628          { ac_try='test -s conftest.$ac_objext'
10629   { (case "(($ac_try" in
10630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10631   *) ac_try_echo=$ac_try;;
10632 esac
10633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10634   (eval "$ac_try") 2>&5
10635   ac_status=$?
10636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637   (exit $ac_status); }; }; then
10638   gt_cv_inttypes_pri_broken=no
10639 else
10640   echo "$as_me: failed program was:" >&5
10641 sed 's/^/| /' conftest.$ac_ext >&5
10642
10643         gt_cv_inttypes_pri_broken=yes
10644 fi
10645
10646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10647
10648 fi
10649 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10650 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10651   fi
10652   if test "$gt_cv_inttypes_pri_broken" = yes; then
10653
10654 cat >>confdefs.h <<_ACEOF
10655 #define PRI_MACROS_BROKEN 1
10656 _ACEOF
10657
10658   fi
10659
10660
10661
10662 for ac_header in stdint.h
10663 do
10664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10666   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10669   echo $ECHO_N "(cached) $ECHO_C" >&6
10670 fi
10671 ac_res=`eval echo '${'$as_ac_Header'}'`
10672                { echo "$as_me:$LINENO: result: $ac_res" >&5
10673 echo "${ECHO_T}$ac_res" >&6; }
10674 else
10675   # Is the header compilable?
10676 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10677 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10678 cat >conftest.$ac_ext <<_ACEOF
10679 /* confdefs.h.  */
10680 _ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h.  */
10684 $ac_includes_default
10685 #include <$ac_header>
10686 _ACEOF
10687 rm -f conftest.$ac_objext
10688 if { (ac_try="$ac_compile"
10689 case "(($ac_try" in
10690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10691   *) ac_try_echo=$ac_try;;
10692 esac
10693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10694   (eval "$ac_compile") 2>conftest.er1
10695   ac_status=$?
10696   grep -v '^ *+' conftest.er1 >conftest.err
10697   rm -f conftest.er1
10698   cat conftest.err >&5
10699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700   (exit $ac_status); } &&
10701          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10702   { (case "(($ac_try" in
10703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704   *) ac_try_echo=$ac_try;;
10705 esac
10706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10707   (eval "$ac_try") 2>&5
10708   ac_status=$?
10709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710   (exit $ac_status); }; } &&
10711          { ac_try='test -s conftest.$ac_objext'
10712   { (case "(($ac_try" in
10713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10714   *) ac_try_echo=$ac_try;;
10715 esac
10716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10717   (eval "$ac_try") 2>&5
10718   ac_status=$?
10719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720   (exit $ac_status); }; }; then
10721   ac_header_compiler=yes
10722 else
10723   echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10725
10726         ac_header_compiler=no
10727 fi
10728
10729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10730 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10731 echo "${ECHO_T}$ac_header_compiler" >&6; }
10732
10733 # Is the header present?
10734 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10735 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10736 cat >conftest.$ac_ext <<_ACEOF
10737 /* confdefs.h.  */
10738 _ACEOF
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h.  */
10742 #include <$ac_header>
10743 _ACEOF
10744 if { (ac_try="$ac_cpp conftest.$ac_ext"
10745 case "(($ac_try" in
10746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747   *) ac_try_echo=$ac_try;;
10748 esac
10749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10750   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10751   ac_status=$?
10752   grep -v '^ *+' conftest.er1 >conftest.err
10753   rm -f conftest.er1
10754   cat conftest.err >&5
10755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756   (exit $ac_status); } >/dev/null; then
10757   if test -s conftest.err; then
10758     ac_cpp_err=$ac_c_preproc_warn_flag
10759     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10760   else
10761     ac_cpp_err=
10762   fi
10763 else
10764   ac_cpp_err=yes
10765 fi
10766 if test -z "$ac_cpp_err"; then
10767   ac_header_preproc=yes
10768 else
10769   echo "$as_me: failed program was:" >&5
10770 sed 's/^/| /' conftest.$ac_ext >&5
10771
10772   ac_header_preproc=no
10773 fi
10774
10775 rm -f conftest.err conftest.$ac_ext
10776 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10777 echo "${ECHO_T}$ac_header_preproc" >&6; }
10778
10779 # So?  What about this header?
10780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10781   yes:no: )
10782     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10783 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10784     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10785 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10786     ac_header_preproc=yes
10787     ;;
10788   no:yes:* )
10789     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10790 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10791     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10792 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10793     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10794 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10795     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10796 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10797     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10799     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10800 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10801
10802     ;;
10803 esac
10804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10807   echo $ECHO_N "(cached) $ECHO_C" >&6
10808 else
10809   eval "$as_ac_Header=\$ac_header_preproc"
10810 fi
10811 ac_res=`eval echo '${'$as_ac_Header'}'`
10812                { echo "$as_me:$LINENO: result: $ac_res" >&5
10813 echo "${ECHO_T}$ac_res" >&6; }
10814
10815 fi
10816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10817   cat >>confdefs.h <<_ACEOF
10818 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10819 _ACEOF
10820
10821 fi
10822
10823 done
10824
10825     { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10826 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10827   result=
10828   cat >conftest.$ac_ext <<_ACEOF
10829 /* confdefs.h.  */
10830 _ACEOF
10831 cat confdefs.h >>conftest.$ac_ext
10832 cat >>conftest.$ac_ext <<_ACEOF
10833 /* end confdefs.h.  */
10834
10835 #include <limits.h>
10836 #if HAVE_STDINT_H
10837 #include <stdint.h>
10838 #endif
10839 #ifdef SIZE_MAX
10840 Found it
10841 #endif
10842
10843 _ACEOF
10844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10845   $EGREP "Found it" >/dev/null 2>&1; then
10846   result=yes
10847 fi
10848 rm -f conftest*
10849
10850   if test -z "$result"; then
10851                     if test "$cross_compiling" = yes; then
10852   # Depending upon the size, compute the lo and hi bounds.
10853 cat >conftest.$ac_ext <<_ACEOF
10854 /* confdefs.h.  */
10855 _ACEOF
10856 cat confdefs.h >>conftest.$ac_ext
10857 cat >>conftest.$ac_ext <<_ACEOF
10858 /* end confdefs.h.  */
10859 #include <stddef.h>
10860 int
10861 main ()
10862 {
10863 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10864 test_array [0] = 0
10865
10866   ;
10867   return 0;
10868 }
10869 _ACEOF
10870 rm -f conftest.$ac_objext
10871 if { (ac_try="$ac_compile"
10872 case "(($ac_try" in
10873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10874   *) ac_try_echo=$ac_try;;
10875 esac
10876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10877   (eval "$ac_compile") 2>conftest.er1
10878   ac_status=$?
10879   grep -v '^ *+' conftest.er1 >conftest.err
10880   rm -f conftest.er1
10881   cat conftest.err >&5
10882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883   (exit $ac_status); } &&
10884          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10885   { (case "(($ac_try" in
10886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10887   *) ac_try_echo=$ac_try;;
10888 esac
10889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10890   (eval "$ac_try") 2>&5
10891   ac_status=$?
10892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893   (exit $ac_status); }; } &&
10894          { ac_try='test -s conftest.$ac_objext'
10895   { (case "(($ac_try" in
10896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10897   *) ac_try_echo=$ac_try;;
10898 esac
10899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10900   (eval "$ac_try") 2>&5
10901   ac_status=$?
10902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903   (exit $ac_status); }; }; then
10904   ac_lo=0 ac_mid=0
10905   while :; do
10906     cat >conftest.$ac_ext <<_ACEOF
10907 /* confdefs.h.  */
10908 _ACEOF
10909 cat confdefs.h >>conftest.$ac_ext
10910 cat >>conftest.$ac_ext <<_ACEOF
10911 /* end confdefs.h.  */
10912 #include <stddef.h>
10913 int
10914 main ()
10915 {
10916 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10917 test_array [0] = 0
10918
10919   ;
10920   return 0;
10921 }
10922 _ACEOF
10923 rm -f conftest.$ac_objext
10924 if { (ac_try="$ac_compile"
10925 case "(($ac_try" in
10926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10927   *) ac_try_echo=$ac_try;;
10928 esac
10929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10930   (eval "$ac_compile") 2>conftest.er1
10931   ac_status=$?
10932   grep -v '^ *+' conftest.er1 >conftest.err
10933   rm -f conftest.er1
10934   cat conftest.err >&5
10935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936   (exit $ac_status); } &&
10937          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10938   { (case "(($ac_try" in
10939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10940   *) ac_try_echo=$ac_try;;
10941 esac
10942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10943   (eval "$ac_try") 2>&5
10944   ac_status=$?
10945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946   (exit $ac_status); }; } &&
10947          { ac_try='test -s conftest.$ac_objext'
10948   { (case "(($ac_try" in
10949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10950   *) ac_try_echo=$ac_try;;
10951 esac
10952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953   (eval "$ac_try") 2>&5
10954   ac_status=$?
10955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956   (exit $ac_status); }; }; then
10957   ac_hi=$ac_mid; break
10958 else
10959   echo "$as_me: failed program was:" >&5
10960 sed 's/^/| /' conftest.$ac_ext >&5
10961
10962         ac_lo=`expr $ac_mid + 1`
10963                         if test $ac_lo -le $ac_mid; then
10964                           ac_lo= ac_hi=
10965                           break
10966                         fi
10967                         ac_mid=`expr 2 '*' $ac_mid + 1`
10968 fi
10969
10970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10971   done
10972 else
10973   echo "$as_me: failed program was:" >&5
10974 sed 's/^/| /' conftest.$ac_ext >&5
10975
10976         cat >conftest.$ac_ext <<_ACEOF
10977 /* confdefs.h.  */
10978 _ACEOF
10979 cat confdefs.h >>conftest.$ac_ext
10980 cat >>conftest.$ac_ext <<_ACEOF
10981 /* end confdefs.h.  */
10982 #include <stddef.h>
10983 int
10984 main ()
10985 {
10986 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10987 test_array [0] = 0
10988
10989   ;
10990   return 0;
10991 }
10992 _ACEOF
10993 rm -f conftest.$ac_objext
10994 if { (ac_try="$ac_compile"
10995 case "(($ac_try" in
10996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10997   *) ac_try_echo=$ac_try;;
10998 esac
10999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11000   (eval "$ac_compile") 2>conftest.er1
11001   ac_status=$?
11002   grep -v '^ *+' conftest.er1 >conftest.err
11003   rm -f conftest.er1
11004   cat conftest.err >&5
11005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006   (exit $ac_status); } &&
11007          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11008   { (case "(($ac_try" in
11009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11010   *) ac_try_echo=$ac_try;;
11011 esac
11012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11013   (eval "$ac_try") 2>&5
11014   ac_status=$?
11015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016   (exit $ac_status); }; } &&
11017          { ac_try='test -s conftest.$ac_objext'
11018   { (case "(($ac_try" in
11019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11020   *) ac_try_echo=$ac_try;;
11021 esac
11022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11023   (eval "$ac_try") 2>&5
11024   ac_status=$?
11025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026   (exit $ac_status); }; }; then
11027   ac_hi=-1 ac_mid=-1
11028   while :; do
11029     cat >conftest.$ac_ext <<_ACEOF
11030 /* confdefs.h.  */
11031 _ACEOF
11032 cat confdefs.h >>conftest.$ac_ext
11033 cat >>conftest.$ac_ext <<_ACEOF
11034 /* end confdefs.h.  */
11035 #include <stddef.h>
11036 int
11037 main ()
11038 {
11039 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
11040 test_array [0] = 0
11041
11042   ;
11043   return 0;
11044 }
11045 _ACEOF
11046 rm -f conftest.$ac_objext
11047 if { (ac_try="$ac_compile"
11048 case "(($ac_try" in
11049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050   *) ac_try_echo=$ac_try;;
11051 esac
11052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11053   (eval "$ac_compile") 2>conftest.er1
11054   ac_status=$?
11055   grep -v '^ *+' conftest.er1 >conftest.err
11056   rm -f conftest.er1
11057   cat conftest.err >&5
11058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059   (exit $ac_status); } &&
11060          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11061   { (case "(($ac_try" in
11062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063   *) ac_try_echo=$ac_try;;
11064 esac
11065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066   (eval "$ac_try") 2>&5
11067   ac_status=$?
11068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069   (exit $ac_status); }; } &&
11070          { ac_try='test -s conftest.$ac_objext'
11071   { (case "(($ac_try" in
11072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073   *) ac_try_echo=$ac_try;;
11074 esac
11075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076   (eval "$ac_try") 2>&5
11077   ac_status=$?
11078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079   (exit $ac_status); }; }; then
11080   ac_lo=$ac_mid; break
11081 else
11082   echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11084
11085         ac_hi=`expr '(' $ac_mid ')' - 1`
11086                         if test $ac_mid -le $ac_hi; then
11087                           ac_lo= ac_hi=
11088                           break
11089                         fi
11090                         ac_mid=`expr 2 '*' $ac_mid`
11091 fi
11092
11093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11094   done
11095 else
11096   echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11098
11099         ac_lo= ac_hi=
11100 fi
11101
11102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11103 fi
11104
11105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11106 # Binary search between lo and hi bounds.
11107 while test "x$ac_lo" != "x$ac_hi"; do
11108   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11109   cat >conftest.$ac_ext <<_ACEOF
11110 /* confdefs.h.  */
11111 _ACEOF
11112 cat confdefs.h >>conftest.$ac_ext
11113 cat >>conftest.$ac_ext <<_ACEOF
11114 /* end confdefs.h.  */
11115 #include <stddef.h>
11116 int
11117 main ()
11118 {
11119 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
11120 test_array [0] = 0
11121
11122   ;
11123   return 0;
11124 }
11125 _ACEOF
11126 rm -f conftest.$ac_objext
11127 if { (ac_try="$ac_compile"
11128 case "(($ac_try" in
11129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11130   *) ac_try_echo=$ac_try;;
11131 esac
11132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11133   (eval "$ac_compile") 2>conftest.er1
11134   ac_status=$?
11135   grep -v '^ *+' conftest.er1 >conftest.err
11136   rm -f conftest.er1
11137   cat conftest.err >&5
11138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139   (exit $ac_status); } &&
11140          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11141   { (case "(($ac_try" in
11142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143   *) ac_try_echo=$ac_try;;
11144 esac
11145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11146   (eval "$ac_try") 2>&5
11147   ac_status=$?
11148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149   (exit $ac_status); }; } &&
11150          { ac_try='test -s conftest.$ac_objext'
11151   { (case "(($ac_try" in
11152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11153   *) ac_try_echo=$ac_try;;
11154 esac
11155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11156   (eval "$ac_try") 2>&5
11157   ac_status=$?
11158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11159   (exit $ac_status); }; }; then
11160   ac_hi=$ac_mid
11161 else
11162   echo "$as_me: failed program was:" >&5
11163 sed 's/^/| /' conftest.$ac_ext >&5
11164
11165         ac_lo=`expr '(' $ac_mid ')' + 1`
11166 fi
11167
11168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11169 done
11170 case $ac_lo in
11171 ?*) res_hi=$ac_lo;;
11172 '') result=? ;;
11173 esac
11174 else
11175   cat >conftest.$ac_ext <<_ACEOF
11176 /* confdefs.h.  */
11177 _ACEOF
11178 cat confdefs.h >>conftest.$ac_ext
11179 cat >>conftest.$ac_ext <<_ACEOF
11180 /* end confdefs.h.  */
11181 #include <stddef.h>
11182 static long int longval () { return ~(size_t)0 / 10; }
11183 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
11184 #include <stdio.h>
11185 #include <stdlib.h>
11186 int
11187 main ()
11188 {
11189
11190   FILE *f = fopen ("conftest.val", "w");
11191   if (! f)
11192     return 1;
11193   if ((~(size_t)0 / 10) < 0)
11194     {
11195       long int i = longval ();
11196       if (i != (~(size_t)0 / 10))
11197         return 1;
11198       fprintf (f, "%ld\n", i);
11199     }
11200   else
11201     {
11202       unsigned long int i = ulongval ();
11203       if (i != (~(size_t)0 / 10))
11204         return 1;
11205       fprintf (f, "%lu\n", i);
11206     }
11207   return ferror (f) || fclose (f) != 0;
11208
11209   ;
11210   return 0;
11211 }
11212 _ACEOF
11213 rm -f conftest$ac_exeext
11214 if { (ac_try="$ac_link"
11215 case "(($ac_try" in
11216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217   *) ac_try_echo=$ac_try;;
11218 esac
11219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220   (eval "$ac_link") 2>&5
11221   ac_status=$?
11222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11224   { (case "(($ac_try" in
11225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11226   *) ac_try_echo=$ac_try;;
11227 esac
11228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11229   (eval "$ac_try") 2>&5
11230   ac_status=$?
11231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232   (exit $ac_status); }; }; then
11233   res_hi=`cat conftest.val`
11234 else
11235   echo "$as_me: program exited with status $ac_status" >&5
11236 echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.$ac_ext >&5
11238
11239 ( exit $ac_status )
11240 result=?
11241 fi
11242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11243 fi
11244 rm -f conftest.val
11245     if test "$cross_compiling" = yes; then
11246   # Depending upon the size, compute the lo and hi bounds.
11247 cat >conftest.$ac_ext <<_ACEOF
11248 /* confdefs.h.  */
11249 _ACEOF
11250 cat confdefs.h >>conftest.$ac_ext
11251 cat >>conftest.$ac_ext <<_ACEOF
11252 /* end confdefs.h.  */
11253 #include <stddef.h>
11254 int
11255 main ()
11256 {
11257 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
11258 test_array [0] = 0
11259
11260   ;
11261   return 0;
11262 }
11263 _ACEOF
11264 rm -f conftest.$ac_objext
11265 if { (ac_try="$ac_compile"
11266 case "(($ac_try" in
11267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11268   *) ac_try_echo=$ac_try;;
11269 esac
11270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11271   (eval "$ac_compile") 2>conftest.er1
11272   ac_status=$?
11273   grep -v '^ *+' conftest.er1 >conftest.err
11274   rm -f conftest.er1
11275   cat conftest.err >&5
11276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277   (exit $ac_status); } &&
11278          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11279   { (case "(($ac_try" in
11280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11281   *) ac_try_echo=$ac_try;;
11282 esac
11283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11284   (eval "$ac_try") 2>&5
11285   ac_status=$?
11286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287   (exit $ac_status); }; } &&
11288          { ac_try='test -s conftest.$ac_objext'
11289   { (case "(($ac_try" in
11290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11291   *) ac_try_echo=$ac_try;;
11292 esac
11293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11294   (eval "$ac_try") 2>&5
11295   ac_status=$?
11296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297   (exit $ac_status); }; }; then
11298   ac_lo=0 ac_mid=0
11299   while :; do
11300     cat >conftest.$ac_ext <<_ACEOF
11301 /* confdefs.h.  */
11302 _ACEOF
11303 cat confdefs.h >>conftest.$ac_ext
11304 cat >>conftest.$ac_ext <<_ACEOF
11305 /* end confdefs.h.  */
11306 #include <stddef.h>
11307 int
11308 main ()
11309 {
11310 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
11311 test_array [0] = 0
11312
11313   ;
11314   return 0;
11315 }
11316 _ACEOF
11317 rm -f conftest.$ac_objext
11318 if { (ac_try="$ac_compile"
11319 case "(($ac_try" in
11320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321   *) ac_try_echo=$ac_try;;
11322 esac
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324   (eval "$ac_compile") 2>conftest.er1
11325   ac_status=$?
11326   grep -v '^ *+' conftest.er1 >conftest.err
11327   rm -f conftest.er1
11328   cat conftest.err >&5
11329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330   (exit $ac_status); } &&
11331          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11332   { (case "(($ac_try" in
11333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11334   *) ac_try_echo=$ac_try;;
11335 esac
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337   (eval "$ac_try") 2>&5
11338   ac_status=$?
11339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340   (exit $ac_status); }; } &&
11341          { ac_try='test -s conftest.$ac_objext'
11342   { (case "(($ac_try" in
11343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344   *) ac_try_echo=$ac_try;;
11345 esac
11346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347   (eval "$ac_try") 2>&5
11348   ac_status=$?
11349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350   (exit $ac_status); }; }; then
11351   ac_hi=$ac_mid; break
11352 else
11353   echo "$as_me: failed program was:" >&5
11354 sed 's/^/| /' conftest.$ac_ext >&5
11355
11356         ac_lo=`expr $ac_mid + 1`
11357                         if test $ac_lo -le $ac_mid; then
11358                           ac_lo= ac_hi=
11359                           break
11360                         fi
11361                         ac_mid=`expr 2 '*' $ac_mid + 1`
11362 fi
11363
11364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11365   done
11366 else
11367   echo "$as_me: failed program was:" >&5
11368 sed 's/^/| /' conftest.$ac_ext >&5
11369
11370         cat >conftest.$ac_ext <<_ACEOF
11371 /* confdefs.h.  */
11372 _ACEOF
11373 cat confdefs.h >>conftest.$ac_ext
11374 cat >>conftest.$ac_ext <<_ACEOF
11375 /* end confdefs.h.  */
11376 #include <stddef.h>
11377 int
11378 main ()
11379 {
11380 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
11381 test_array [0] = 0
11382
11383   ;
11384   return 0;
11385 }
11386 _ACEOF
11387 rm -f conftest.$ac_objext
11388 if { (ac_try="$ac_compile"
11389 case "(($ac_try" in
11390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11391   *) ac_try_echo=$ac_try;;
11392 esac
11393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11394   (eval "$ac_compile") 2>conftest.er1
11395   ac_status=$?
11396   grep -v '^ *+' conftest.er1 >conftest.err
11397   rm -f conftest.er1
11398   cat conftest.err >&5
11399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400   (exit $ac_status); } &&
11401          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11402   { (case "(($ac_try" in
11403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11404   *) ac_try_echo=$ac_try;;
11405 esac
11406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11407   (eval "$ac_try") 2>&5
11408   ac_status=$?
11409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410   (exit $ac_status); }; } &&
11411          { ac_try='test -s conftest.$ac_objext'
11412   { (case "(($ac_try" in
11413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414   *) ac_try_echo=$ac_try;;
11415 esac
11416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11417   (eval "$ac_try") 2>&5
11418   ac_status=$?
11419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420   (exit $ac_status); }; }; then
11421   ac_hi=-1 ac_mid=-1
11422   while :; do
11423     cat >conftest.$ac_ext <<_ACEOF
11424 /* confdefs.h.  */
11425 _ACEOF
11426 cat confdefs.h >>conftest.$ac_ext
11427 cat >>conftest.$ac_ext <<_ACEOF
11428 /* end confdefs.h.  */
11429 #include <stddef.h>
11430 int
11431 main ()
11432 {
11433 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
11434 test_array [0] = 0
11435
11436   ;
11437   return 0;
11438 }
11439 _ACEOF
11440 rm -f conftest.$ac_objext
11441 if { (ac_try="$ac_compile"
11442 case "(($ac_try" in
11443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11444   *) ac_try_echo=$ac_try;;
11445 esac
11446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11447   (eval "$ac_compile") 2>conftest.er1
11448   ac_status=$?
11449   grep -v '^ *+' conftest.er1 >conftest.err
11450   rm -f conftest.er1
11451   cat conftest.err >&5
11452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453   (exit $ac_status); } &&
11454          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11455   { (case "(($ac_try" in
11456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11457   *) ac_try_echo=$ac_try;;
11458 esac
11459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11460   (eval "$ac_try") 2>&5
11461   ac_status=$?
11462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463   (exit $ac_status); }; } &&
11464          { ac_try='test -s conftest.$ac_objext'
11465   { (case "(($ac_try" in
11466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11467   *) ac_try_echo=$ac_try;;
11468 esac
11469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11470   (eval "$ac_try") 2>&5
11471   ac_status=$?
11472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473   (exit $ac_status); }; }; then
11474   ac_lo=$ac_mid; break
11475 else
11476   echo "$as_me: failed program was:" >&5
11477 sed 's/^/| /' conftest.$ac_ext >&5
11478
11479         ac_hi=`expr '(' $ac_mid ')' - 1`
11480                         if test $ac_mid -le $ac_hi; then
11481                           ac_lo= ac_hi=
11482                           break
11483                         fi
11484                         ac_mid=`expr 2 '*' $ac_mid`
11485 fi
11486
11487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11488   done
11489 else
11490   echo "$as_me: failed program was:" >&5
11491 sed 's/^/| /' conftest.$ac_ext >&5
11492
11493         ac_lo= ac_hi=
11494 fi
11495
11496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11497 fi
11498
11499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11500 # Binary search between lo and hi bounds.
11501 while test "x$ac_lo" != "x$ac_hi"; do
11502   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11503   cat >conftest.$ac_ext <<_ACEOF
11504 /* confdefs.h.  */
11505 _ACEOF
11506 cat confdefs.h >>conftest.$ac_ext
11507 cat >>conftest.$ac_ext <<_ACEOF
11508 /* end confdefs.h.  */
11509 #include <stddef.h>
11510 int
11511 main ()
11512 {
11513 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
11514 test_array [0] = 0
11515
11516   ;
11517   return 0;
11518 }
11519 _ACEOF
11520 rm -f conftest.$ac_objext
11521 if { (ac_try="$ac_compile"
11522 case "(($ac_try" in
11523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11524   *) ac_try_echo=$ac_try;;
11525 esac
11526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11527   (eval "$ac_compile") 2>conftest.er1
11528   ac_status=$?
11529   grep -v '^ *+' conftest.er1 >conftest.err
11530   rm -f conftest.er1
11531   cat conftest.err >&5
11532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533   (exit $ac_status); } &&
11534          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11535   { (case "(($ac_try" in
11536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11537   *) ac_try_echo=$ac_try;;
11538 esac
11539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11540   (eval "$ac_try") 2>&5
11541   ac_status=$?
11542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543   (exit $ac_status); }; } &&
11544          { ac_try='test -s conftest.$ac_objext'
11545   { (case "(($ac_try" in
11546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547   *) ac_try_echo=$ac_try;;
11548 esac
11549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550   (eval "$ac_try") 2>&5
11551   ac_status=$?
11552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553   (exit $ac_status); }; }; then
11554   ac_hi=$ac_mid
11555 else
11556   echo "$as_me: failed program was:" >&5
11557 sed 's/^/| /' conftest.$ac_ext >&5
11558
11559         ac_lo=`expr '(' $ac_mid ')' + 1`
11560 fi
11561
11562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11563 done
11564 case $ac_lo in
11565 ?*) res_lo=$ac_lo;;
11566 '') result=? ;;
11567 esac
11568 else
11569   cat >conftest.$ac_ext <<_ACEOF
11570 /* confdefs.h.  */
11571 _ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h.  */
11575 #include <stddef.h>
11576 static long int longval () { return ~(size_t)0 % 10; }
11577 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
11578 #include <stdio.h>
11579 #include <stdlib.h>
11580 int
11581 main ()
11582 {
11583
11584   FILE *f = fopen ("conftest.val", "w");
11585   if (! f)
11586     return 1;
11587   if ((~(size_t)0 % 10) < 0)
11588     {
11589       long int i = longval ();
11590       if (i != (~(size_t)0 % 10))
11591         return 1;
11592       fprintf (f, "%ld\n", i);
11593     }
11594   else
11595     {
11596       unsigned long int i = ulongval ();
11597       if (i != (~(size_t)0 % 10))
11598         return 1;
11599       fprintf (f, "%lu\n", i);
11600     }
11601   return ferror (f) || fclose (f) != 0;
11602
11603   ;
11604   return 0;
11605 }
11606 _ACEOF
11607 rm -f conftest$ac_exeext
11608 if { (ac_try="$ac_link"
11609 case "(($ac_try" in
11610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11611   *) ac_try_echo=$ac_try;;
11612 esac
11613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11614   (eval "$ac_link") 2>&5
11615   ac_status=$?
11616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11618   { (case "(($ac_try" in
11619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11620   *) ac_try_echo=$ac_try;;
11621 esac
11622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11623   (eval "$ac_try") 2>&5
11624   ac_status=$?
11625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626   (exit $ac_status); }; }; then
11627   res_lo=`cat conftest.val`
11628 else
11629   echo "$as_me: program exited with status $ac_status" >&5
11630 echo "$as_me: failed program was:" >&5
11631 sed 's/^/| /' conftest.$ac_ext >&5
11632
11633 ( exit $ac_status )
11634 result=?
11635 fi
11636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11637 fi
11638 rm -f conftest.val
11639     if test "$cross_compiling" = yes; then
11640   # Depending upon the size, compute the lo and hi bounds.
11641 cat >conftest.$ac_ext <<_ACEOF
11642 /* confdefs.h.  */
11643 _ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h.  */
11647 #include <stddef.h>
11648 int
11649 main ()
11650 {
11651 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
11652 test_array [0] = 0
11653
11654   ;
11655   return 0;
11656 }
11657 _ACEOF
11658 rm -f conftest.$ac_objext
11659 if { (ac_try="$ac_compile"
11660 case "(($ac_try" in
11661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11662   *) ac_try_echo=$ac_try;;
11663 esac
11664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11665   (eval "$ac_compile") 2>conftest.er1
11666   ac_status=$?
11667   grep -v '^ *+' conftest.er1 >conftest.err
11668   rm -f conftest.er1
11669   cat conftest.err >&5
11670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11671   (exit $ac_status); } &&
11672          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11673   { (case "(($ac_try" in
11674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11675   *) ac_try_echo=$ac_try;;
11676 esac
11677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11678   (eval "$ac_try") 2>&5
11679   ac_status=$?
11680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681   (exit $ac_status); }; } &&
11682          { ac_try='test -s conftest.$ac_objext'
11683   { (case "(($ac_try" in
11684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11685   *) ac_try_echo=$ac_try;;
11686 esac
11687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11688   (eval "$ac_try") 2>&5
11689   ac_status=$?
11690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691   (exit $ac_status); }; }; then
11692   ac_lo=0 ac_mid=0
11693   while :; do
11694     cat >conftest.$ac_ext <<_ACEOF
11695 /* confdefs.h.  */
11696 _ACEOF
11697 cat confdefs.h >>conftest.$ac_ext
11698 cat >>conftest.$ac_ext <<_ACEOF
11699 /* end confdefs.h.  */
11700 #include <stddef.h>
11701 int
11702 main ()
11703 {
11704 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11705 test_array [0] = 0
11706
11707   ;
11708   return 0;
11709 }
11710 _ACEOF
11711 rm -f conftest.$ac_objext
11712 if { (ac_try="$ac_compile"
11713 case "(($ac_try" in
11714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11715   *) ac_try_echo=$ac_try;;
11716 esac
11717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11718   (eval "$ac_compile") 2>conftest.er1
11719   ac_status=$?
11720   grep -v '^ *+' conftest.er1 >conftest.err
11721   rm -f conftest.er1
11722   cat conftest.err >&5
11723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724   (exit $ac_status); } &&
11725          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11726   { (case "(($ac_try" in
11727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11728   *) ac_try_echo=$ac_try;;
11729 esac
11730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11731   (eval "$ac_try") 2>&5
11732   ac_status=$?
11733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734   (exit $ac_status); }; } &&
11735          { ac_try='test -s conftest.$ac_objext'
11736   { (case "(($ac_try" in
11737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11738   *) ac_try_echo=$ac_try;;
11739 esac
11740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11741   (eval "$ac_try") 2>&5
11742   ac_status=$?
11743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744   (exit $ac_status); }; }; then
11745   ac_hi=$ac_mid; break
11746 else
11747   echo "$as_me: failed program was:" >&5
11748 sed 's/^/| /' conftest.$ac_ext >&5
11749
11750         ac_lo=`expr $ac_mid + 1`
11751                         if test $ac_lo -le $ac_mid; then
11752                           ac_lo= ac_hi=
11753                           break
11754                         fi
11755                         ac_mid=`expr 2 '*' $ac_mid + 1`
11756 fi
11757
11758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11759   done
11760 else
11761   echo "$as_me: failed program was:" >&5
11762 sed 's/^/| /' conftest.$ac_ext >&5
11763
11764         cat >conftest.$ac_ext <<_ACEOF
11765 /* confdefs.h.  */
11766 _ACEOF
11767 cat confdefs.h >>conftest.$ac_ext
11768 cat >>conftest.$ac_ext <<_ACEOF
11769 /* end confdefs.h.  */
11770 #include <stddef.h>
11771 int
11772 main ()
11773 {
11774 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
11775 test_array [0] = 0
11776
11777   ;
11778   return 0;
11779 }
11780 _ACEOF
11781 rm -f conftest.$ac_objext
11782 if { (ac_try="$ac_compile"
11783 case "(($ac_try" in
11784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11785   *) ac_try_echo=$ac_try;;
11786 esac
11787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11788   (eval "$ac_compile") 2>conftest.er1
11789   ac_status=$?
11790   grep -v '^ *+' conftest.er1 >conftest.err
11791   rm -f conftest.er1
11792   cat conftest.err >&5
11793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794   (exit $ac_status); } &&
11795          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11796   { (case "(($ac_try" in
11797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11798   *) ac_try_echo=$ac_try;;
11799 esac
11800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11801   (eval "$ac_try") 2>&5
11802   ac_status=$?
11803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804   (exit $ac_status); }; } &&
11805          { ac_try='test -s conftest.$ac_objext'
11806   { (case "(($ac_try" in
11807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11808   *) ac_try_echo=$ac_try;;
11809 esac
11810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11811   (eval "$ac_try") 2>&5
11812   ac_status=$?
11813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814   (exit $ac_status); }; }; then
11815   ac_hi=-1 ac_mid=-1
11816   while :; do
11817     cat >conftest.$ac_ext <<_ACEOF
11818 /* confdefs.h.  */
11819 _ACEOF
11820 cat confdefs.h >>conftest.$ac_ext
11821 cat >>conftest.$ac_ext <<_ACEOF
11822 /* end confdefs.h.  */
11823 #include <stddef.h>
11824 int
11825 main ()
11826 {
11827 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11828 test_array [0] = 0
11829
11830   ;
11831   return 0;
11832 }
11833 _ACEOF
11834 rm -f conftest.$ac_objext
11835 if { (ac_try="$ac_compile"
11836 case "(($ac_try" in
11837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11838   *) ac_try_echo=$ac_try;;
11839 esac
11840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11841   (eval "$ac_compile") 2>conftest.er1
11842   ac_status=$?
11843   grep -v '^ *+' conftest.er1 >conftest.err
11844   rm -f conftest.er1
11845   cat conftest.err >&5
11846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847   (exit $ac_status); } &&
11848          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11849   { (case "(($ac_try" in
11850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11851   *) ac_try_echo=$ac_try;;
11852 esac
11853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11854   (eval "$ac_try") 2>&5
11855   ac_status=$?
11856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11857   (exit $ac_status); }; } &&
11858          { ac_try='test -s conftest.$ac_objext'
11859   { (case "(($ac_try" in
11860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11861   *) ac_try_echo=$ac_try;;
11862 esac
11863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11864   (eval "$ac_try") 2>&5
11865   ac_status=$?
11866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867   (exit $ac_status); }; }; then
11868   ac_lo=$ac_mid; break
11869 else
11870   echo "$as_me: failed program was:" >&5
11871 sed 's/^/| /' conftest.$ac_ext >&5
11872
11873         ac_hi=`expr '(' $ac_mid ')' - 1`
11874                         if test $ac_mid -le $ac_hi; then
11875                           ac_lo= ac_hi=
11876                           break
11877                         fi
11878                         ac_mid=`expr 2 '*' $ac_mid`
11879 fi
11880
11881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11882   done
11883 else
11884   echo "$as_me: failed program was:" >&5
11885 sed 's/^/| /' conftest.$ac_ext >&5
11886
11887         ac_lo= ac_hi=
11888 fi
11889
11890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11891 fi
11892
11893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11894 # Binary search between lo and hi bounds.
11895 while test "x$ac_lo" != "x$ac_hi"; do
11896   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11897   cat >conftest.$ac_ext <<_ACEOF
11898 /* confdefs.h.  */
11899 _ACEOF
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h.  */
11903 #include <stddef.h>
11904 int
11905 main ()
11906 {
11907 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11908 test_array [0] = 0
11909
11910   ;
11911   return 0;
11912 }
11913 _ACEOF
11914 rm -f conftest.$ac_objext
11915 if { (ac_try="$ac_compile"
11916 case "(($ac_try" in
11917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918   *) ac_try_echo=$ac_try;;
11919 esac
11920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11921   (eval "$ac_compile") 2>conftest.er1
11922   ac_status=$?
11923   grep -v '^ *+' conftest.er1 >conftest.err
11924   rm -f conftest.er1
11925   cat conftest.err >&5
11926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927   (exit $ac_status); } &&
11928          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11929   { (case "(($ac_try" in
11930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11931   *) ac_try_echo=$ac_try;;
11932 esac
11933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11934   (eval "$ac_try") 2>&5
11935   ac_status=$?
11936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937   (exit $ac_status); }; } &&
11938          { ac_try='test -s conftest.$ac_objext'
11939   { (case "(($ac_try" in
11940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11941   *) ac_try_echo=$ac_try;;
11942 esac
11943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11944   (eval "$ac_try") 2>&5
11945   ac_status=$?
11946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947   (exit $ac_status); }; }; then
11948   ac_hi=$ac_mid
11949 else
11950   echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11952
11953         ac_lo=`expr '(' $ac_mid ')' + 1`
11954 fi
11955
11956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11957 done
11958 case $ac_lo in
11959 ?*) fits_in_uint=$ac_lo;;
11960 '') result=? ;;
11961 esac
11962 else
11963   cat >conftest.$ac_ext <<_ACEOF
11964 /* confdefs.h.  */
11965 _ACEOF
11966 cat confdefs.h >>conftest.$ac_ext
11967 cat >>conftest.$ac_ext <<_ACEOF
11968 /* end confdefs.h.  */
11969 #include <stddef.h>
11970 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11971 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11972 #include <stdio.h>
11973 #include <stdlib.h>
11974 int
11975 main ()
11976 {
11977
11978   FILE *f = fopen ("conftest.val", "w");
11979   if (! f)
11980     return 1;
11981   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11982     {
11983       long int i = longval ();
11984       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11985         return 1;
11986       fprintf (f, "%ld\n", i);
11987     }
11988   else
11989     {
11990       unsigned long int i = ulongval ();
11991       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11992         return 1;
11993       fprintf (f, "%lu\n", i);
11994     }
11995   return ferror (f) || fclose (f) != 0;
11996
11997   ;
11998   return 0;
11999 }
12000 _ACEOF
12001 rm -f conftest$ac_exeext
12002 if { (ac_try="$ac_link"
12003 case "(($ac_try" in
12004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12005   *) ac_try_echo=$ac_try;;
12006 esac
12007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12008   (eval "$ac_link") 2>&5
12009   ac_status=$?
12010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12012   { (case "(($ac_try" in
12013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014   *) ac_try_echo=$ac_try;;
12015 esac
12016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017   (eval "$ac_try") 2>&5
12018   ac_status=$?
12019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020   (exit $ac_status); }; }; then
12021   fits_in_uint=`cat conftest.val`
12022 else
12023   echo "$as_me: program exited with status $ac_status" >&5
12024 echo "$as_me: failed program was:" >&5
12025 sed 's/^/| /' conftest.$ac_ext >&5
12026
12027 ( exit $ac_status )
12028 result=?
12029 fi
12030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12031 fi
12032 rm -f conftest.val
12033     if test "$fits_in_uint" = 1; then
12034                   cat >conftest.$ac_ext <<_ACEOF
12035 /* confdefs.h.  */
12036 _ACEOF
12037 cat confdefs.h >>conftest.$ac_ext
12038 cat >>conftest.$ac_ext <<_ACEOF
12039 /* end confdefs.h.  */
12040 #include <stddef.h>
12041         extern size_t foo;
12042         extern unsigned long foo;
12043
12044 int
12045 main ()
12046 {
12047
12048   ;
12049   return 0;
12050 }
12051 _ACEOF
12052 rm -f conftest.$ac_objext
12053 if { (ac_try="$ac_compile"
12054 case "(($ac_try" in
12055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056   *) ac_try_echo=$ac_try;;
12057 esac
12058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059   (eval "$ac_compile") 2>conftest.er1
12060   ac_status=$?
12061   grep -v '^ *+' conftest.er1 >conftest.err
12062   rm -f conftest.er1
12063   cat conftest.err >&5
12064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065   (exit $ac_status); } &&
12066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12067   { (case "(($ac_try" in
12068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12069   *) ac_try_echo=$ac_try;;
12070 esac
12071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12072   (eval "$ac_try") 2>&5
12073   ac_status=$?
12074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075   (exit $ac_status); }; } &&
12076          { ac_try='test -s conftest.$ac_objext'
12077   { (case "(($ac_try" in
12078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12079   *) ac_try_echo=$ac_try;;
12080 esac
12081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12082   (eval "$ac_try") 2>&5
12083   ac_status=$?
12084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085   (exit $ac_status); }; }; then
12086   fits_in_uint=0
12087 else
12088   echo "$as_me: failed program was:" >&5
12089 sed 's/^/| /' conftest.$ac_ext >&5
12090
12091
12092 fi
12093
12094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12095     fi
12096     if test -z "$result"; then
12097       if test "$fits_in_uint" = 1; then
12098         result="$res_hi$res_lo"U
12099       else
12100         result="$res_hi$res_lo"UL
12101       fi
12102     else
12103             result='~(size_t)0'
12104     fi
12105   fi
12106   { echo "$as_me:$LINENO: result: $result" >&5
12107 echo "${ECHO_T}$result" >&6; }
12108   if test "$result" != yes; then
12109
12110 cat >>confdefs.h <<_ACEOF
12111 #define SIZE_MAX $result
12112 _ACEOF
12113
12114   fi
12115
12116
12117
12118
12119
12120 for ac_header in stdint.h
12121 do
12122 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12124   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12125 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12126 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12127   echo $ECHO_N "(cached) $ECHO_C" >&6
12128 fi
12129 ac_res=`eval echo '${'$as_ac_Header'}'`
12130                { echo "$as_me:$LINENO: result: $ac_res" >&5
12131 echo "${ECHO_T}$ac_res" >&6; }
12132 else
12133   # Is the header compilable?
12134 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12135 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12136 cat >conftest.$ac_ext <<_ACEOF
12137 /* confdefs.h.  */
12138 _ACEOF
12139 cat confdefs.h >>conftest.$ac_ext
12140 cat >>conftest.$ac_ext <<_ACEOF
12141 /* end confdefs.h.  */
12142 $ac_includes_default
12143 #include <$ac_header>
12144 _ACEOF
12145 rm -f conftest.$ac_objext
12146 if { (ac_try="$ac_compile"
12147 case "(($ac_try" in
12148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149   *) ac_try_echo=$ac_try;;
12150 esac
12151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152   (eval "$ac_compile") 2>conftest.er1
12153   ac_status=$?
12154   grep -v '^ *+' conftest.er1 >conftest.err
12155   rm -f conftest.er1
12156   cat conftest.err >&5
12157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158   (exit $ac_status); } &&
12159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12160   { (case "(($ac_try" in
12161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12162   *) ac_try_echo=$ac_try;;
12163 esac
12164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12165   (eval "$ac_try") 2>&5
12166   ac_status=$?
12167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168   (exit $ac_status); }; } &&
12169          { ac_try='test -s conftest.$ac_objext'
12170   { (case "(($ac_try" in
12171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12172   *) ac_try_echo=$ac_try;;
12173 esac
12174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12175   (eval "$ac_try") 2>&5
12176   ac_status=$?
12177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178   (exit $ac_status); }; }; then
12179   ac_header_compiler=yes
12180 else
12181   echo "$as_me: failed program was:" >&5
12182 sed 's/^/| /' conftest.$ac_ext >&5
12183
12184         ac_header_compiler=no
12185 fi
12186
12187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12188 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12189 echo "${ECHO_T}$ac_header_compiler" >&6; }
12190
12191 # Is the header present?
12192 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12194 cat >conftest.$ac_ext <<_ACEOF
12195 /* confdefs.h.  */
12196 _ACEOF
12197 cat confdefs.h >>conftest.$ac_ext
12198 cat >>conftest.$ac_ext <<_ACEOF
12199 /* end confdefs.h.  */
12200 #include <$ac_header>
12201 _ACEOF
12202 if { (ac_try="$ac_cpp conftest.$ac_ext"
12203 case "(($ac_try" in
12204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12205   *) ac_try_echo=$ac_try;;
12206 esac
12207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12208   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12209   ac_status=$?
12210   grep -v '^ *+' conftest.er1 >conftest.err
12211   rm -f conftest.er1
12212   cat conftest.err >&5
12213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214   (exit $ac_status); } >/dev/null; then
12215   if test -s conftest.err; then
12216     ac_cpp_err=$ac_c_preproc_warn_flag
12217     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12218   else
12219     ac_cpp_err=
12220   fi
12221 else
12222   ac_cpp_err=yes
12223 fi
12224 if test -z "$ac_cpp_err"; then
12225   ac_header_preproc=yes
12226 else
12227   echo "$as_me: failed program was:" >&5
12228 sed 's/^/| /' conftest.$ac_ext >&5
12229
12230   ac_header_preproc=no
12231 fi
12232
12233 rm -f conftest.err conftest.$ac_ext
12234 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12235 echo "${ECHO_T}$ac_header_preproc" >&6; }
12236
12237 # So?  What about this header?
12238 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12239   yes:no: )
12240     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12241 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12242     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12243 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12244     ac_header_preproc=yes
12245     ;;
12246   no:yes:* )
12247     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12248 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12249     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12250 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12251     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12252 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12253     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12254 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12255     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12256 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12257     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12258 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12259
12260     ;;
12261 esac
12262 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12265   echo $ECHO_N "(cached) $ECHO_C" >&6
12266 else
12267   eval "$as_ac_Header=\$ac_header_preproc"
12268 fi
12269 ac_res=`eval echo '${'$as_ac_Header'}'`
12270                { echo "$as_me:$LINENO: result: $ac_res" >&5
12271 echo "${ECHO_T}$ac_res" >&6; }
12272
12273 fi
12274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12275   cat >>confdefs.h <<_ACEOF
12276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12277 _ACEOF
12278
12279 fi
12280
12281 done
12282
12283
12284
12285
12286
12287
12288
12289
12290   { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
12291 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
12292 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
12293   echo $ECHO_N "(cached) $ECHO_C" >&6
12294 else
12295   cat >conftest.$ac_ext <<_ACEOF
12296 /* confdefs.h.  */
12297 _ACEOF
12298 cat confdefs.h >>conftest.$ac_ext
12299 cat >>conftest.$ac_ext <<_ACEOF
12300 /* end confdefs.h.  */
12301 $ac_includes_default
12302 typedef ptrdiff_t ac__type_new_;
12303 int
12304 main ()
12305 {
12306 if ((ac__type_new_ *) 0)
12307   return 0;
12308 if (sizeof (ac__type_new_))
12309   return 0;
12310   ;
12311   return 0;
12312 }
12313 _ACEOF
12314 rm -f conftest.$ac_objext
12315 if { (ac_try="$ac_compile"
12316 case "(($ac_try" in
12317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318   *) ac_try_echo=$ac_try;;
12319 esac
12320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321   (eval "$ac_compile") 2>conftest.er1
12322   ac_status=$?
12323   grep -v '^ *+' conftest.er1 >conftest.err
12324   rm -f conftest.er1
12325   cat conftest.err >&5
12326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327   (exit $ac_status); } &&
12328          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12329   { (case "(($ac_try" in
12330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12331   *) ac_try_echo=$ac_try;;
12332 esac
12333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12334   (eval "$ac_try") 2>&5
12335   ac_status=$?
12336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337   (exit $ac_status); }; } &&
12338          { ac_try='test -s conftest.$ac_objext'
12339   { (case "(($ac_try" in
12340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12341   *) ac_try_echo=$ac_try;;
12342 esac
12343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12344   (eval "$ac_try") 2>&5
12345   ac_status=$?
12346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12347   (exit $ac_status); }; }; then
12348   ac_cv_type_ptrdiff_t=yes
12349 else
12350   echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12352
12353         ac_cv_type_ptrdiff_t=no
12354 fi
12355
12356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12357 fi
12358 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
12359 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
12360 if test $ac_cv_type_ptrdiff_t = yes; then
12361   :
12362 else
12363
12364 cat >>confdefs.h <<\_ACEOF
12365 #define ptrdiff_t long
12366 _ACEOF
12367
12368
12369 fi
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12382 stdlib.h string.h unistd.h sys/param.h
12383 do
12384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12386   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12389   echo $ECHO_N "(cached) $ECHO_C" >&6
12390 fi
12391 ac_res=`eval echo '${'$as_ac_Header'}'`
12392                { echo "$as_me:$LINENO: result: $ac_res" >&5
12393 echo "${ECHO_T}$ac_res" >&6; }
12394 else
12395   # Is the header compilable?
12396 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12397 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12398 cat >conftest.$ac_ext <<_ACEOF
12399 /* confdefs.h.  */
12400 _ACEOF
12401 cat confdefs.h >>conftest.$ac_ext
12402 cat >>conftest.$ac_ext <<_ACEOF
12403 /* end confdefs.h.  */
12404 $ac_includes_default
12405 #include <$ac_header>
12406 _ACEOF
12407 rm -f conftest.$ac_objext
12408 if { (ac_try="$ac_compile"
12409 case "(($ac_try" in
12410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12411   *) ac_try_echo=$ac_try;;
12412 esac
12413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12414   (eval "$ac_compile") 2>conftest.er1
12415   ac_status=$?
12416   grep -v '^ *+' conftest.er1 >conftest.err
12417   rm -f conftest.er1
12418   cat conftest.err >&5
12419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420   (exit $ac_status); } &&
12421          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12422   { (case "(($ac_try" in
12423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12424   *) ac_try_echo=$ac_try;;
12425 esac
12426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12427   (eval "$ac_try") 2>&5
12428   ac_status=$?
12429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430   (exit $ac_status); }; } &&
12431          { ac_try='test -s conftest.$ac_objext'
12432   { (case "(($ac_try" in
12433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12434   *) ac_try_echo=$ac_try;;
12435 esac
12436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12437   (eval "$ac_try") 2>&5
12438   ac_status=$?
12439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440   (exit $ac_status); }; }; then
12441   ac_header_compiler=yes
12442 else
12443   echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12445
12446         ac_header_compiler=no
12447 fi
12448
12449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12450 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12451 echo "${ECHO_T}$ac_header_compiler" >&6; }
12452
12453 # Is the header present?
12454 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12455 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12456 cat >conftest.$ac_ext <<_ACEOF
12457 /* confdefs.h.  */
12458 _ACEOF
12459 cat confdefs.h >>conftest.$ac_ext
12460 cat >>conftest.$ac_ext <<_ACEOF
12461 /* end confdefs.h.  */
12462 #include <$ac_header>
12463 _ACEOF
12464 if { (ac_try="$ac_cpp conftest.$ac_ext"
12465 case "(($ac_try" in
12466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12467   *) ac_try_echo=$ac_try;;
12468 esac
12469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12470   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12471   ac_status=$?
12472   grep -v '^ *+' conftest.er1 >conftest.err
12473   rm -f conftest.er1
12474   cat conftest.err >&5
12475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476   (exit $ac_status); } >/dev/null; then
12477   if test -s conftest.err; then
12478     ac_cpp_err=$ac_c_preproc_warn_flag
12479     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12480   else
12481     ac_cpp_err=
12482   fi
12483 else
12484   ac_cpp_err=yes
12485 fi
12486 if test -z "$ac_cpp_err"; then
12487   ac_header_preproc=yes
12488 else
12489   echo "$as_me: failed program was:" >&5
12490 sed 's/^/| /' conftest.$ac_ext >&5
12491
12492   ac_header_preproc=no
12493 fi
12494
12495 rm -f conftest.err conftest.$ac_ext
12496 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12497 echo "${ECHO_T}$ac_header_preproc" >&6; }
12498
12499 # So?  What about this header?
12500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12501   yes:no: )
12502     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12504     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12505 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12506     ac_header_preproc=yes
12507     ;;
12508   no:yes:* )
12509     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12511     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12512 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12513     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12514 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12515     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12516 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12517     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12519     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12520 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12521
12522     ;;
12523 esac
12524 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12527   echo $ECHO_N "(cached) $ECHO_C" >&6
12528 else
12529   eval "$as_ac_Header=\$ac_header_preproc"
12530 fi
12531 ac_res=`eval echo '${'$as_ac_Header'}'`
12532                { echo "$as_me:$LINENO: result: $ac_res" >&5
12533 echo "${ECHO_T}$ac_res" >&6; }
12534
12535 fi
12536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12537   cat >>confdefs.h <<_ACEOF
12538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12539 _ACEOF
12540
12541 fi
12542
12543 done
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
12569 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
12570 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
12571 __fsetlocking
12572 do
12573 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12574 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12575 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12577   echo $ECHO_N "(cached) $ECHO_C" >&6
12578 else
12579   cat >conftest.$ac_ext <<_ACEOF
12580 /* confdefs.h.  */
12581 _ACEOF
12582 cat confdefs.h >>conftest.$ac_ext
12583 cat >>conftest.$ac_ext <<_ACEOF
12584 /* end confdefs.h.  */
12585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12586    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12587 #define $ac_func innocuous_$ac_func
12588
12589 /* System header to define __stub macros and hopefully few prototypes,
12590     which can conflict with char $ac_func (); below.
12591     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12592     <limits.h> exists even on freestanding compilers.  */
12593
12594 #ifdef __STDC__
12595 # include <limits.h>
12596 #else
12597 # include <assert.h>
12598 #endif
12599
12600 #undef $ac_func
12601
12602 /* Override any GCC internal prototype to avoid an error.
12603    Use char because int might match the return type of a GCC
12604    builtin and then its argument prototype would still apply.  */
12605 #ifdef __cplusplus
12606 extern "C"
12607 #endif
12608 char $ac_func ();
12609 /* The GNU C library defines this for functions which it implements
12610     to always fail with ENOSYS.  Some functions are actually named
12611     something starting with __ and the normal name is an alias.  */
12612 #if defined __stub_$ac_func || defined __stub___$ac_func
12613 choke me
12614 #endif
12615
12616 int
12617 main ()
12618 {
12619 return $ac_func ();
12620   ;
12621   return 0;
12622 }
12623 _ACEOF
12624 rm -f conftest.$ac_objext conftest$ac_exeext
12625 if { (ac_try="$ac_link"
12626 case "(($ac_try" in
12627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12628   *) ac_try_echo=$ac_try;;
12629 esac
12630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631   (eval "$ac_link") 2>conftest.er1
12632   ac_status=$?
12633   grep -v '^ *+' conftest.er1 >conftest.err
12634   rm -f conftest.er1
12635   cat conftest.err >&5
12636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637   (exit $ac_status); } &&
12638          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12639   { (case "(($ac_try" in
12640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12641   *) ac_try_echo=$ac_try;;
12642 esac
12643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12644   (eval "$ac_try") 2>&5
12645   ac_status=$?
12646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647   (exit $ac_status); }; } &&
12648          { ac_try='test -s conftest$ac_exeext'
12649   { (case "(($ac_try" in
12650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12651   *) ac_try_echo=$ac_try;;
12652 esac
12653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12654   (eval "$ac_try") 2>&5
12655   ac_status=$?
12656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657   (exit $ac_status); }; }; then
12658   eval "$as_ac_var=yes"
12659 else
12660   echo "$as_me: failed program was:" >&5
12661 sed 's/^/| /' conftest.$ac_ext >&5
12662
12663         eval "$as_ac_var=no"
12664 fi
12665
12666 rm -f core conftest.err conftest.$ac_objext \
12667       conftest$ac_exeext conftest.$ac_ext
12668 fi
12669 ac_res=`eval echo '${'$as_ac_var'}'`
12670                { echo "$as_me:$LINENO: result: $ac_res" >&5
12671 echo "${ECHO_T}$ac_res" >&6; }
12672 if test `eval echo '${'$as_ac_var'}'` = yes; then
12673   cat >>confdefs.h <<_ACEOF
12674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12675 _ACEOF
12676
12677 fi
12678 done
12679
12680
12681
12682   { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
12683 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
12684 if test "${ac_cv_have_decl__snprintf+set}" = set; then
12685   echo $ECHO_N "(cached) $ECHO_C" >&6
12686 else
12687   cat >conftest.$ac_ext <<_ACEOF
12688 /* confdefs.h.  */
12689 _ACEOF
12690 cat confdefs.h >>conftest.$ac_ext
12691 cat >>conftest.$ac_ext <<_ACEOF
12692 /* end confdefs.h.  */
12693 #include <stdio.h>
12694 int
12695 main ()
12696 {
12697
12698 #ifndef _snprintf
12699   char *p = (char *) _snprintf;
12700 #endif
12701
12702   ;
12703   return 0;
12704 }
12705 _ACEOF
12706 rm -f conftest.$ac_objext
12707 if { (ac_try="$ac_compile"
12708 case "(($ac_try" in
12709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12710   *) ac_try_echo=$ac_try;;
12711 esac
12712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12713   (eval "$ac_compile") 2>conftest.er1
12714   ac_status=$?
12715   grep -v '^ *+' conftest.er1 >conftest.err
12716   rm -f conftest.er1
12717   cat conftest.err >&5
12718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719   (exit $ac_status); } &&
12720          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12721   { (case "(($ac_try" in
12722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12723   *) ac_try_echo=$ac_try;;
12724 esac
12725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12726   (eval "$ac_try") 2>&5
12727   ac_status=$?
12728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729   (exit $ac_status); }; } &&
12730          { ac_try='test -s conftest.$ac_objext'
12731   { (case "(($ac_try" in
12732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12733   *) ac_try_echo=$ac_try;;
12734 esac
12735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12736   (eval "$ac_try") 2>&5
12737   ac_status=$?
12738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739   (exit $ac_status); }; }; then
12740   ac_cv_have_decl__snprintf=yes
12741 else
12742   echo "$as_me: failed program was:" >&5
12743 sed 's/^/| /' conftest.$ac_ext >&5
12744
12745         ac_cv_have_decl__snprintf=no
12746 fi
12747
12748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12749 fi
12750 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
12751 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
12752   if test $ac_cv_have_decl__snprintf = yes; then
12753     gt_value=1
12754   else
12755     gt_value=0
12756   fi
12757
12758 cat >>confdefs.h <<_ACEOF
12759 #define HAVE_DECL__SNPRINTF $gt_value
12760 _ACEOF
12761
12762
12763
12764   { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
12765 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
12766 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
12767   echo $ECHO_N "(cached) $ECHO_C" >&6
12768 else
12769   cat >conftest.$ac_ext <<_ACEOF
12770 /* confdefs.h.  */
12771 _ACEOF
12772 cat confdefs.h >>conftest.$ac_ext
12773 cat >>conftest.$ac_ext <<_ACEOF
12774 /* end confdefs.h.  */
12775 #include <stdio.h>
12776 int
12777 main ()
12778 {
12779
12780 #ifndef _snwprintf
12781   char *p = (char *) _snwprintf;
12782 #endif
12783
12784   ;
12785   return 0;
12786 }
12787 _ACEOF
12788 rm -f conftest.$ac_objext
12789 if { (ac_try="$ac_compile"
12790 case "(($ac_try" in
12791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12792   *) ac_try_echo=$ac_try;;
12793 esac
12794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12795   (eval "$ac_compile") 2>conftest.er1
12796   ac_status=$?
12797   grep -v '^ *+' conftest.er1 >conftest.err
12798   rm -f conftest.er1
12799   cat conftest.err >&5
12800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801   (exit $ac_status); } &&
12802          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12803   { (case "(($ac_try" in
12804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805   *) ac_try_echo=$ac_try;;
12806 esac
12807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808   (eval "$ac_try") 2>&5
12809   ac_status=$?
12810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811   (exit $ac_status); }; } &&
12812          { ac_try='test -s conftest.$ac_objext'
12813   { (case "(($ac_try" in
12814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12815   *) ac_try_echo=$ac_try;;
12816 esac
12817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12818   (eval "$ac_try") 2>&5
12819   ac_status=$?
12820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821   (exit $ac_status); }; }; then
12822   ac_cv_have_decl__snwprintf=yes
12823 else
12824   echo "$as_me: failed program was:" >&5
12825 sed 's/^/| /' conftest.$ac_ext >&5
12826
12827         ac_cv_have_decl__snwprintf=no
12828 fi
12829
12830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12831 fi
12832 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
12833 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
12834   if test $ac_cv_have_decl__snwprintf = yes; then
12835     gt_value=1
12836   else
12837     gt_value=0
12838   fi
12839
12840 cat >>confdefs.h <<_ACEOF
12841 #define HAVE_DECL__SNWPRINTF $gt_value
12842 _ACEOF
12843
12844
12845
12846
12847   { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
12848 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
12849 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
12850   echo $ECHO_N "(cached) $ECHO_C" >&6
12851 else
12852   cat >conftest.$ac_ext <<_ACEOF
12853 /* confdefs.h.  */
12854 _ACEOF
12855 cat confdefs.h >>conftest.$ac_ext
12856 cat >>conftest.$ac_ext <<_ACEOF
12857 /* end confdefs.h.  */
12858 #include <stdio.h>
12859 int
12860 main ()
12861 {
12862
12863 #ifndef feof_unlocked
12864   char *p = (char *) feof_unlocked;
12865 #endif
12866
12867   ;
12868   return 0;
12869 }
12870 _ACEOF
12871 rm -f conftest.$ac_objext
12872 if { (ac_try="$ac_compile"
12873 case "(($ac_try" in
12874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12875   *) ac_try_echo=$ac_try;;
12876 esac
12877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12878   (eval "$ac_compile") 2>conftest.er1
12879   ac_status=$?
12880   grep -v '^ *+' conftest.er1 >conftest.err
12881   rm -f conftest.er1
12882   cat conftest.err >&5
12883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884   (exit $ac_status); } &&
12885          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12886   { (case "(($ac_try" in
12887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12888   *) ac_try_echo=$ac_try;;
12889 esac
12890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12891   (eval "$ac_try") 2>&5
12892   ac_status=$?
12893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894   (exit $ac_status); }; } &&
12895          { ac_try='test -s conftest.$ac_objext'
12896   { (case "(($ac_try" in
12897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898   *) ac_try_echo=$ac_try;;
12899 esac
12900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12901   (eval "$ac_try") 2>&5
12902   ac_status=$?
12903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904   (exit $ac_status); }; }; then
12905   ac_cv_have_decl_feof_unlocked=yes
12906 else
12907   echo "$as_me: failed program was:" >&5
12908 sed 's/^/| /' conftest.$ac_ext >&5
12909
12910         ac_cv_have_decl_feof_unlocked=no
12911 fi
12912
12913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12914 fi
12915 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
12916 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
12917   if test $ac_cv_have_decl_feof_unlocked = yes; then
12918     gt_value=1
12919   else
12920     gt_value=0
12921   fi
12922
12923 cat >>confdefs.h <<_ACEOF
12924 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
12925 _ACEOF
12926
12927
12928
12929   { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
12930 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
12931 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
12932   echo $ECHO_N "(cached) $ECHO_C" >&6
12933 else
12934   cat >conftest.$ac_ext <<_ACEOF
12935 /* confdefs.h.  */
12936 _ACEOF
12937 cat confdefs.h >>conftest.$ac_ext
12938 cat >>conftest.$ac_ext <<_ACEOF
12939 /* end confdefs.h.  */
12940 #include <stdio.h>
12941 int
12942 main ()
12943 {
12944
12945 #ifndef fgets_unlocked
12946   char *p = (char *) fgets_unlocked;
12947 #endif
12948
12949   ;
12950   return 0;
12951 }
12952 _ACEOF
12953 rm -f conftest.$ac_objext
12954 if { (ac_try="$ac_compile"
12955 case "(($ac_try" in
12956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12957   *) ac_try_echo=$ac_try;;
12958 esac
12959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12960   (eval "$ac_compile") 2>conftest.er1
12961   ac_status=$?
12962   grep -v '^ *+' conftest.er1 >conftest.err
12963   rm -f conftest.er1
12964   cat conftest.err >&5
12965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966   (exit $ac_status); } &&
12967          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12968   { (case "(($ac_try" in
12969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970   *) ac_try_echo=$ac_try;;
12971 esac
12972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12973   (eval "$ac_try") 2>&5
12974   ac_status=$?
12975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976   (exit $ac_status); }; } &&
12977          { ac_try='test -s conftest.$ac_objext'
12978   { (case "(($ac_try" in
12979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12980   *) ac_try_echo=$ac_try;;
12981 esac
12982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12983   (eval "$ac_try") 2>&5
12984   ac_status=$?
12985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986   (exit $ac_status); }; }; then
12987   ac_cv_have_decl_fgets_unlocked=yes
12988 else
12989   echo "$as_me: failed program was:" >&5
12990 sed 's/^/| /' conftest.$ac_ext >&5
12991
12992         ac_cv_have_decl_fgets_unlocked=no
12993 fi
12994
12995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12996 fi
12997 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
12998 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
12999   if test $ac_cv_have_decl_fgets_unlocked = yes; then
13000     gt_value=1
13001   else
13002     gt_value=0
13003   fi
13004
13005 cat >>confdefs.h <<_ACEOF
13006 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
13007 _ACEOF
13008
13009
13010
13011   { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
13012 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
13013 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
13014   echo $ECHO_N "(cached) $ECHO_C" >&6
13015 else
13016   cat >conftest.$ac_ext <<_ACEOF
13017 /* confdefs.h.  */
13018 _ACEOF
13019 cat confdefs.h >>conftest.$ac_ext
13020 cat >>conftest.$ac_ext <<_ACEOF
13021 /* end confdefs.h.  */
13022 #include <stdio.h>
13023 int
13024 main ()
13025 {
13026
13027 #ifndef getc_unlocked
13028   char *p = (char *) getc_unlocked;
13029 #endif
13030
13031   ;
13032   return 0;
13033 }
13034 _ACEOF
13035 rm -f conftest.$ac_objext
13036 if { (ac_try="$ac_compile"
13037 case "(($ac_try" in
13038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13039   *) ac_try_echo=$ac_try;;
13040 esac
13041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13042   (eval "$ac_compile") 2>conftest.er1
13043   ac_status=$?
13044   grep -v '^ *+' conftest.er1 >conftest.err
13045   rm -f conftest.er1
13046   cat conftest.err >&5
13047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048   (exit $ac_status); } &&
13049          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13050   { (case "(($ac_try" in
13051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052   *) ac_try_echo=$ac_try;;
13053 esac
13054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13055   (eval "$ac_try") 2>&5
13056   ac_status=$?
13057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058   (exit $ac_status); }; } &&
13059          { ac_try='test -s conftest.$ac_objext'
13060   { (case "(($ac_try" in
13061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13062   *) ac_try_echo=$ac_try;;
13063 esac
13064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13065   (eval "$ac_try") 2>&5
13066   ac_status=$?
13067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068   (exit $ac_status); }; }; then
13069   ac_cv_have_decl_getc_unlocked=yes
13070 else
13071   echo "$as_me: failed program was:" >&5
13072 sed 's/^/| /' conftest.$ac_ext >&5
13073
13074         ac_cv_have_decl_getc_unlocked=no
13075 fi
13076
13077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13078 fi
13079 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
13080 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
13081   if test $ac_cv_have_decl_getc_unlocked = yes; then
13082     gt_value=1
13083   else
13084     gt_value=0
13085   fi
13086
13087 cat >>confdefs.h <<_ACEOF
13088 #define HAVE_DECL_GETC_UNLOCKED $gt_value
13089 _ACEOF
13090
13091
13092
13093   case $gt_cv_func_printf_posix in
13094     *yes) HAVE_POSIX_PRINTF=1 ;;
13095     *) HAVE_POSIX_PRINTF=0 ;;
13096   esac
13097
13098   if test "$ac_cv_func_asprintf" = yes; then
13099     HAVE_ASPRINTF=1
13100   else
13101     HAVE_ASPRINTF=0
13102   fi
13103
13104   if test "$ac_cv_func_snprintf" = yes; then
13105     HAVE_SNPRINTF=1
13106   else
13107     HAVE_SNPRINTF=0
13108   fi
13109
13110   if test "$ac_cv_func_wprintf" = yes; then
13111     HAVE_WPRINTF=1
13112   else
13113     HAVE_WPRINTF=0
13114   fi
13115
13116
13117
13118
13119
13120
13121
13122           am_save_CPPFLAGS="$CPPFLAGS"
13123
13124   for element in $INCICONV; do
13125     haveit=
13126     for x in $CPPFLAGS; do
13127
13128   acl_save_prefix="$prefix"
13129   prefix="$acl_final_prefix"
13130   acl_save_exec_prefix="$exec_prefix"
13131   exec_prefix="$acl_final_exec_prefix"
13132   eval x=\"$x\"
13133   exec_prefix="$acl_save_exec_prefix"
13134   prefix="$acl_save_prefix"
13135
13136       if test "X$x" = "X$element"; then
13137         haveit=yes
13138         break
13139       fi
13140     done
13141     if test -z "$haveit"; then
13142       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13143     fi
13144   done
13145
13146
13147   { echo "$as_me:$LINENO: checking for iconv" >&5
13148 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
13149 if test "${am_cv_func_iconv+set}" = set; then
13150   echo $ECHO_N "(cached) $ECHO_C" >&6
13151 else
13152
13153     am_cv_func_iconv="no, consider installing GNU libiconv"
13154     am_cv_lib_iconv=no
13155     cat >conftest.$ac_ext <<_ACEOF
13156 /* confdefs.h.  */
13157 _ACEOF
13158 cat confdefs.h >>conftest.$ac_ext
13159 cat >>conftest.$ac_ext <<_ACEOF
13160 /* end confdefs.h.  */
13161 #include <stdlib.h>
13162 #include <iconv.h>
13163 int
13164 main ()
13165 {
13166 iconv_t cd = iconv_open("","");
13167        iconv(cd,NULL,NULL,NULL,NULL);
13168        iconv_close(cd);
13169   ;
13170   return 0;
13171 }
13172 _ACEOF
13173 rm -f conftest.$ac_objext conftest$ac_exeext
13174 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
13181   ac_status=$?
13182   grep -v '^ *+' conftest.er1 >conftest.err
13183   rm -f conftest.er1
13184   cat conftest.err >&5
13185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186   (exit $ac_status); } &&
13187          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13188   { (case "(($ac_try" in
13189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13190   *) ac_try_echo=$ac_try;;
13191 esac
13192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13193   (eval "$ac_try") 2>&5
13194   ac_status=$?
13195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196   (exit $ac_status); }; } &&
13197          { ac_try='test -s conftest$ac_exeext'
13198   { (case "(($ac_try" in
13199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13200   *) ac_try_echo=$ac_try;;
13201 esac
13202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13203   (eval "$ac_try") 2>&5
13204   ac_status=$?
13205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13206   (exit $ac_status); }; }; then
13207   am_cv_func_iconv=yes
13208 else
13209   echo "$as_me: failed program was:" >&5
13210 sed 's/^/| /' conftest.$ac_ext >&5
13211
13212
13213 fi
13214
13215 rm -f core conftest.err conftest.$ac_objext \
13216       conftest$ac_exeext conftest.$ac_ext
13217     if test "$am_cv_func_iconv" != yes; then
13218       am_save_LIBS="$LIBS"
13219       LIBS="$LIBS $LIBICONV"
13220       cat >conftest.$ac_ext <<_ACEOF
13221 /* confdefs.h.  */
13222 _ACEOF
13223 cat confdefs.h >>conftest.$ac_ext
13224 cat >>conftest.$ac_ext <<_ACEOF
13225 /* end confdefs.h.  */
13226 #include <stdlib.h>
13227 #include <iconv.h>
13228 int
13229 main ()
13230 {
13231 iconv_t cd = iconv_open("","");
13232          iconv(cd,NULL,NULL,NULL,NULL);
13233          iconv_close(cd);
13234   ;
13235   return 0;
13236 }
13237 _ACEOF
13238 rm -f conftest.$ac_objext conftest$ac_exeext
13239 if { (ac_try="$ac_link"
13240 case "(($ac_try" in
13241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242   *) ac_try_echo=$ac_try;;
13243 esac
13244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13245   (eval "$ac_link") 2>conftest.er1
13246   ac_status=$?
13247   grep -v '^ *+' conftest.er1 >conftest.err
13248   rm -f conftest.er1
13249   cat conftest.err >&5
13250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251   (exit $ac_status); } &&
13252          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13253   { (case "(($ac_try" in
13254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13255   *) ac_try_echo=$ac_try;;
13256 esac
13257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13258   (eval "$ac_try") 2>&5
13259   ac_status=$?
13260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261   (exit $ac_status); }; } &&
13262          { ac_try='test -s conftest$ac_exeext'
13263   { (case "(($ac_try" in
13264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13265   *) ac_try_echo=$ac_try;;
13266 esac
13267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13268   (eval "$ac_try") 2>&5
13269   ac_status=$?
13270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271   (exit $ac_status); }; }; then
13272   am_cv_lib_iconv=yes
13273         am_cv_func_iconv=yes
13274 else
13275   echo "$as_me: failed program was:" >&5
13276 sed 's/^/| /' conftest.$ac_ext >&5
13277
13278
13279 fi
13280
13281 rm -f core conftest.err conftest.$ac_objext \
13282       conftest$ac_exeext conftest.$ac_ext
13283       LIBS="$am_save_LIBS"
13284     fi
13285
13286 fi
13287 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
13288 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
13289   if test "$am_cv_func_iconv" = yes; then
13290
13291 cat >>confdefs.h <<\_ACEOF
13292 #define HAVE_ICONV 1
13293 _ACEOF
13294
13295   fi
13296   if test "$am_cv_lib_iconv" = yes; then
13297     { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
13298 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
13299     { echo "$as_me:$LINENO: result: $LIBICONV" >&5
13300 echo "${ECHO_T}$LIBICONV" >&6; }
13301   else
13302             CPPFLAGS="$am_save_CPPFLAGS"
13303     LIBICONV=
13304     LTLIBICONV=
13305   fi
13306
13307
13308
13309   if test "$am_cv_func_iconv" = yes; then
13310     { echo "$as_me:$LINENO: checking for iconv declaration" >&5
13311 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
13312     if test "${am_cv_proto_iconv+set}" = set; then
13313   echo $ECHO_N "(cached) $ECHO_C" >&6
13314 else
13315
13316       cat >conftest.$ac_ext <<_ACEOF
13317 /* confdefs.h.  */
13318 _ACEOF
13319 cat confdefs.h >>conftest.$ac_ext
13320 cat >>conftest.$ac_ext <<_ACEOF
13321 /* end confdefs.h.  */
13322
13323 #include <stdlib.h>
13324 #include <iconv.h>
13325 extern
13326 #ifdef __cplusplus
13327 "C"
13328 #endif
13329 #if defined(__STDC__) || defined(__cplusplus)
13330 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13331 #else
13332 size_t iconv();
13333 #endif
13334
13335 int
13336 main ()
13337 {
13338
13339   ;
13340   return 0;
13341 }
13342 _ACEOF
13343 rm -f conftest.$ac_objext
13344 if { (ac_try="$ac_compile"
13345 case "(($ac_try" in
13346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347   *) ac_try_echo=$ac_try;;
13348 esac
13349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350   (eval "$ac_compile") 2>conftest.er1
13351   ac_status=$?
13352   grep -v '^ *+' conftest.er1 >conftest.err
13353   rm -f conftest.er1
13354   cat conftest.err >&5
13355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356   (exit $ac_status); } &&
13357          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
13364   ac_status=$?
13365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366   (exit $ac_status); }; } &&
13367          { ac_try='test -s conftest.$ac_objext'
13368   { (case "(($ac_try" in
13369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370   *) ac_try_echo=$ac_try;;
13371 esac
13372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13373   (eval "$ac_try") 2>&5
13374   ac_status=$?
13375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376   (exit $ac_status); }; }; then
13377   am_cv_proto_iconv_arg1=""
13378 else
13379   echo "$as_me: failed program was:" >&5
13380 sed 's/^/| /' conftest.$ac_ext >&5
13381
13382         am_cv_proto_iconv_arg1="const"
13383 fi
13384
13385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13386       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);"
13387 fi
13388
13389     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13390     { echo "$as_me:$LINENO: result: ${ac_t:-
13391          }$am_cv_proto_iconv" >&5
13392 echo "${ECHO_T}${ac_t:-
13393          }$am_cv_proto_iconv" >&6; }
13394
13395 cat >>confdefs.h <<_ACEOF
13396 #define ICONV_CONST $am_cv_proto_iconv_arg1
13397 _ACEOF
13398
13399   fi
13400
13401
13402   { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13403 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
13404 if test "${am_cv_langinfo_codeset+set}" = set; then
13405   echo $ECHO_N "(cached) $ECHO_C" >&6
13406 else
13407   cat >conftest.$ac_ext <<_ACEOF
13408 /* confdefs.h.  */
13409 _ACEOF
13410 cat confdefs.h >>conftest.$ac_ext
13411 cat >>conftest.$ac_ext <<_ACEOF
13412 /* end confdefs.h.  */
13413 #include <langinfo.h>
13414 int
13415 main ()
13416 {
13417 char* cs = nl_langinfo(CODESET);
13418   ;
13419   return 0;
13420 }
13421 _ACEOF
13422 rm -f conftest.$ac_objext conftest$ac_exeext
13423 if { (ac_try="$ac_link"
13424 case "(($ac_try" in
13425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13426   *) ac_try_echo=$ac_try;;
13427 esac
13428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13429   (eval "$ac_link") 2>conftest.er1
13430   ac_status=$?
13431   grep -v '^ *+' conftest.er1 >conftest.err
13432   rm -f conftest.er1
13433   cat conftest.err >&5
13434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435   (exit $ac_status); } &&
13436          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13437   { (case "(($ac_try" in
13438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439   *) ac_try_echo=$ac_try;;
13440 esac
13441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13442   (eval "$ac_try") 2>&5
13443   ac_status=$?
13444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445   (exit $ac_status); }; } &&
13446          { ac_try='test -s conftest$ac_exeext'
13447   { (case "(($ac_try" in
13448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13449   *) ac_try_echo=$ac_try;;
13450 esac
13451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13452   (eval "$ac_try") 2>&5
13453   ac_status=$?
13454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455   (exit $ac_status); }; }; then
13456   am_cv_langinfo_codeset=yes
13457 else
13458   echo "$as_me: failed program was:" >&5
13459 sed 's/^/| /' conftest.$ac_ext >&5
13460
13461         am_cv_langinfo_codeset=no
13462 fi
13463
13464 rm -f core conftest.err conftest.$ac_objext \
13465       conftest$ac_exeext conftest.$ac_ext
13466
13467 fi
13468 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
13469 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
13470   if test $am_cv_langinfo_codeset = yes; then
13471
13472 cat >>confdefs.h <<\_ACEOF
13473 #define HAVE_LANGINFO_CODESET 1
13474 _ACEOF
13475
13476   fi
13477
13478   if test $ac_cv_header_locale_h = yes; then
13479
13480   { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13481 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
13482 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
13483   echo $ECHO_N "(cached) $ECHO_C" >&6
13484 else
13485   cat >conftest.$ac_ext <<_ACEOF
13486 /* confdefs.h.  */
13487 _ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h.  */
13491 #include <locale.h>
13492 int
13493 main ()
13494 {
13495 return LC_MESSAGES
13496   ;
13497   return 0;
13498 }
13499 _ACEOF
13500 rm -f conftest.$ac_objext conftest$ac_exeext
13501 if { (ac_try="$ac_link"
13502 case "(($ac_try" in
13503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13504   *) ac_try_echo=$ac_try;;
13505 esac
13506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13507   (eval "$ac_link") 2>conftest.er1
13508   ac_status=$?
13509   grep -v '^ *+' conftest.er1 >conftest.err
13510   rm -f conftest.er1
13511   cat conftest.err >&5
13512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513   (exit $ac_status); } &&
13514          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13515   { (case "(($ac_try" in
13516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13517   *) ac_try_echo=$ac_try;;
13518 esac
13519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13520   (eval "$ac_try") 2>&5
13521   ac_status=$?
13522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523   (exit $ac_status); }; } &&
13524          { ac_try='test -s conftest$ac_exeext'
13525   { (case "(($ac_try" in
13526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13527   *) ac_try_echo=$ac_try;;
13528 esac
13529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13530   (eval "$ac_try") 2>&5
13531   ac_status=$?
13532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533   (exit $ac_status); }; }; then
13534   gt_cv_val_LC_MESSAGES=yes
13535 else
13536   echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13538
13539         gt_cv_val_LC_MESSAGES=no
13540 fi
13541
13542 rm -f core conftest.err conftest.$ac_objext \
13543       conftest$ac_exeext conftest.$ac_ext
13544 fi
13545 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
13546 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
13547   if test $gt_cv_val_LC_MESSAGES = yes; then
13548
13549 cat >>confdefs.h <<\_ACEOF
13550 #define HAVE_LC_MESSAGES 1
13551 _ACEOF
13552
13553   fi
13554
13555   fi
13556
13557   if test -n "$INTL_MACOSX_LIBS"; then
13558     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13559   fi
13560
13561                       for ac_prog in bison
13562 do
13563   # Extract the first word of "$ac_prog", so it can be a program name with args.
13564 set dummy $ac_prog; ac_word=$2
13565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13567 if test "${ac_cv_prog_INTLBISON+set}" = set; then
13568   echo $ECHO_N "(cached) $ECHO_C" >&6
13569 else
13570   if test -n "$INTLBISON"; then
13571   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13572 else
13573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13574 for as_dir in $PATH
13575 do
13576   IFS=$as_save_IFS
13577   test -z "$as_dir" && as_dir=.
13578   for ac_exec_ext in '' $ac_executable_extensions; do
13579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13580     ac_cv_prog_INTLBISON="$ac_prog"
13581     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13582     break 2
13583   fi
13584 done
13585 done
13586 IFS=$as_save_IFS
13587
13588 fi
13589 fi
13590 INTLBISON=$ac_cv_prog_INTLBISON
13591 if test -n "$INTLBISON"; then
13592   { echo "$as_me:$LINENO: result: $INTLBISON" >&5
13593 echo "${ECHO_T}$INTLBISON" >&6; }
13594 else
13595   { echo "$as_me:$LINENO: result: no" >&5
13596 echo "${ECHO_T}no" >&6; }
13597 fi
13598
13599
13600   test -n "$INTLBISON" && break
13601 done
13602
13603   if test -z "$INTLBISON"; then
13604     ac_verc_fail=yes
13605   else
13606         { echo "$as_me:$LINENO: checking version of bison" >&5
13607 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
13608     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13609     case $ac_prog_version in
13610       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13611       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13612          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13613       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13614     esac
13615     { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
13616 echo "${ECHO_T}$ac_prog_version" >&6; }
13617   fi
13618   if test $ac_verc_fail = yes; then
13619     INTLBISON=:
13620   fi
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637     { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
13638 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
13639 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
13640   echo $ECHO_N "(cached) $ECHO_C" >&6
13641 else
13642   gt_save_CPPFLAGS="$CPPFLAGS"
13643      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13644      gt_save_LIBS="$LIBS"
13645      LIBS="$LIBS -framework CoreFoundation"
13646      cat >conftest.$ac_ext <<_ACEOF
13647 /* confdefs.h.  */
13648 _ACEOF
13649 cat confdefs.h >>conftest.$ac_ext
13650 cat >>conftest.$ac_ext <<_ACEOF
13651 /* end confdefs.h.  */
13652 #include <CFPreferences.h>
13653 int
13654 main ()
13655 {
13656 CFPreferencesCopyAppValue(NULL, NULL)
13657   ;
13658   return 0;
13659 }
13660 _ACEOF
13661 rm -f conftest.$ac_objext conftest$ac_exeext
13662 if { (ac_try="$ac_link"
13663 case "(($ac_try" in
13664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13665   *) ac_try_echo=$ac_try;;
13666 esac
13667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13668   (eval "$ac_link") 2>conftest.er1
13669   ac_status=$?
13670   grep -v '^ *+' conftest.er1 >conftest.err
13671   rm -f conftest.er1
13672   cat conftest.err >&5
13673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674   (exit $ac_status); } &&
13675          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13676   { (case "(($ac_try" in
13677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13678   *) ac_try_echo=$ac_try;;
13679 esac
13680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13681   (eval "$ac_try") 2>&5
13682   ac_status=$?
13683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684   (exit $ac_status); }; } &&
13685          { ac_try='test -s conftest$ac_exeext'
13686   { (case "(($ac_try" in
13687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13688   *) ac_try_echo=$ac_try;;
13689 esac
13690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13691   (eval "$ac_try") 2>&5
13692   ac_status=$?
13693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694   (exit $ac_status); }; }; then
13695   gt_cv_func_CFPreferencesCopyAppValue=yes
13696 else
13697   echo "$as_me: failed program was:" >&5
13698 sed 's/^/| /' conftest.$ac_ext >&5
13699
13700         gt_cv_func_CFPreferencesCopyAppValue=no
13701 fi
13702
13703 rm -f core conftest.err conftest.$ac_objext \
13704       conftest$ac_exeext conftest.$ac_ext
13705      CPPFLAGS="$gt_save_CPPFLAGS"
13706      LIBS="$gt_save_LIBS"
13707 fi
13708 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13709 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13710   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13711
13712 cat >>confdefs.h <<\_ACEOF
13713 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
13714 _ACEOF
13715
13716   fi
13717     { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
13718 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
13719 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
13720   echo $ECHO_N "(cached) $ECHO_C" >&6
13721 else
13722   gt_save_CPPFLAGS="$CPPFLAGS"
13723      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
13724      gt_save_LIBS="$LIBS"
13725      LIBS="$LIBS -framework CoreFoundation"
13726      cat >conftest.$ac_ext <<_ACEOF
13727 /* confdefs.h.  */
13728 _ACEOF
13729 cat confdefs.h >>conftest.$ac_ext
13730 cat >>conftest.$ac_ext <<_ACEOF
13731 /* end confdefs.h.  */
13732 #include <CFLocale.h>
13733 int
13734 main ()
13735 {
13736 CFLocaleCopyCurrent();
13737   ;
13738   return 0;
13739 }
13740 _ACEOF
13741 rm -f conftest.$ac_objext conftest$ac_exeext
13742 if { (ac_try="$ac_link"
13743 case "(($ac_try" in
13744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13745   *) ac_try_echo=$ac_try;;
13746 esac
13747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13748   (eval "$ac_link") 2>conftest.er1
13749   ac_status=$?
13750   grep -v '^ *+' conftest.er1 >conftest.err
13751   rm -f conftest.er1
13752   cat conftest.err >&5
13753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754   (exit $ac_status); } &&
13755          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13756   { (case "(($ac_try" in
13757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13758   *) ac_try_echo=$ac_try;;
13759 esac
13760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13761   (eval "$ac_try") 2>&5
13762   ac_status=$?
13763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764   (exit $ac_status); }; } &&
13765          { ac_try='test -s conftest$ac_exeext'
13766   { (case "(($ac_try" in
13767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768   *) ac_try_echo=$ac_try;;
13769 esac
13770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13771   (eval "$ac_try") 2>&5
13772   ac_status=$?
13773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774   (exit $ac_status); }; }; then
13775   gt_cv_func_CFLocaleCopyCurrent=yes
13776 else
13777   echo "$as_me: failed program was:" >&5
13778 sed 's/^/| /' conftest.$ac_ext >&5
13779
13780         gt_cv_func_CFLocaleCopyCurrent=no
13781 fi
13782
13783 rm -f core conftest.err conftest.$ac_objext \
13784       conftest$ac_exeext conftest.$ac_ext
13785      CPPFLAGS="$gt_save_CPPFLAGS"
13786      LIBS="$gt_save_LIBS"
13787 fi
13788 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13789 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13790   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13791
13792 cat >>confdefs.h <<\_ACEOF
13793 #define HAVE_CFLOCALECOPYCURRENT 1
13794 _ACEOF
13795
13796   fi
13797   INTL_MACOSX_LIBS=
13798   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13799     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13800   fi
13801
13802
13803
13804
13805   { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13806 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
13807     # Check whether --enable-nls was given.
13808 if test "${enable_nls+set}" = set; then
13809   enableval=$enable_nls; USE_NLS=$enableval
13810 else
13811   USE_NLS=yes
13812 fi
13813
13814   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13815 echo "${ECHO_T}$USE_NLS" >&6; }
13816
13817
13818
13819
13820     BUILD_INCLUDED_LIBINTL=no
13821     USE_INCLUDED_LIBINTL=no
13822
13823   LIBINTL=
13824   LTLIBINTL=
13825   POSUB=
13826
13827     if test "$USE_NLS" = "yes"; then
13828     gt_use_preinstalled_gnugettext=no
13829
13830       { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
13831 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
13832
13833 # Check whether --with-included-gettext was given.
13834 if test "${with_included_gettext+set}" = set; then
13835   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
13836 else
13837   nls_cv_force_use_gnu_gettext=no
13838 fi
13839
13840       { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
13841 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
13842
13843       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13844       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13845
13846
13847
13848
13849
13850
13851         { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13852 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
13853 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
13854   echo $ECHO_N "(cached) $ECHO_C" >&6
13855 else
13856   cat >conftest.$ac_ext <<_ACEOF
13857 /* confdefs.h.  */
13858 _ACEOF
13859 cat confdefs.h >>conftest.$ac_ext
13860 cat >>conftest.$ac_ext <<_ACEOF
13861 /* end confdefs.h.  */
13862 #include <libintl.h>
13863 extern int _nl_msg_cat_cntr;
13864 extern int *_nl_domain_bindings;
13865 int
13866 main ()
13867 {
13868 bindtextdomain ("", "");
13869 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
13870   ;
13871   return 0;
13872 }
13873 _ACEOF
13874 rm -f conftest.$ac_objext conftest$ac_exeext
13875 if { (ac_try="$ac_link"
13876 case "(($ac_try" in
13877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13878   *) ac_try_echo=$ac_try;;
13879 esac
13880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13881   (eval "$ac_link") 2>conftest.er1
13882   ac_status=$?
13883   grep -v '^ *+' conftest.er1 >conftest.err
13884   rm -f conftest.er1
13885   cat conftest.err >&5
13886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887   (exit $ac_status); } &&
13888          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13889   { (case "(($ac_try" in
13890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13891   *) ac_try_echo=$ac_try;;
13892 esac
13893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13894   (eval "$ac_try") 2>&5
13895   ac_status=$?
13896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897   (exit $ac_status); }; } &&
13898          { ac_try='test -s conftest$ac_exeext'
13899   { (case "(($ac_try" in
13900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13901   *) ac_try_echo=$ac_try;;
13902 esac
13903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13904   (eval "$ac_try") 2>&5
13905   ac_status=$?
13906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907   (exit $ac_status); }; }; then
13908   gt_cv_func_gnugettext1_libc=yes
13909 else
13910   echo "$as_me: failed program was:" >&5
13911 sed 's/^/| /' conftest.$ac_ext >&5
13912
13913         gt_cv_func_gnugettext1_libc=no
13914 fi
13915
13916 rm -f core conftest.err conftest.$ac_objext \
13917       conftest$ac_exeext conftest.$ac_ext
13918 fi
13919 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
13920 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
13921
13922         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13923
13924
13925
13926     use_additional=yes
13927
13928   acl_save_prefix="$prefix"
13929   prefix="$acl_final_prefix"
13930   acl_save_exec_prefix="$exec_prefix"
13931   exec_prefix="$acl_final_exec_prefix"
13932
13933     eval additional_includedir=\"$includedir\"
13934     eval additional_libdir=\"$libdir\"
13935
13936   exec_prefix="$acl_save_exec_prefix"
13937   prefix="$acl_save_prefix"
13938
13939
13940 # Check whether --with-libintl-prefix was given.
13941 if test "${with_libintl_prefix+set}" = set; then
13942   withval=$with_libintl_prefix;
13943     if test "X$withval" = "Xno"; then
13944       use_additional=no
13945     else
13946       if test "X$withval" = "X"; then
13947
13948   acl_save_prefix="$prefix"
13949   prefix="$acl_final_prefix"
13950   acl_save_exec_prefix="$exec_prefix"
13951   exec_prefix="$acl_final_exec_prefix"
13952
13953           eval additional_includedir=\"$includedir\"
13954           eval additional_libdir=\"$libdir\"
13955
13956   exec_prefix="$acl_save_exec_prefix"
13957   prefix="$acl_save_prefix"
13958
13959       else
13960         additional_includedir="$withval/include"
13961         additional_libdir="$withval/lib"
13962       fi
13963     fi
13964
13965 fi
13966
13967       LIBINTL=
13968   LTLIBINTL=
13969   INCINTL=
13970   rpathdirs=
13971   ltrpathdirs=
13972   names_already_handled=
13973   names_next_round='intl '
13974   while test -n "$names_next_round"; do
13975     names_this_round="$names_next_round"
13976     names_next_round=
13977     for name in $names_this_round; do
13978       already_handled=
13979       for n in $names_already_handled; do
13980         if test "$n" = "$name"; then
13981           already_handled=yes
13982           break
13983         fi
13984       done
13985       if test -z "$already_handled"; then
13986         names_already_handled="$names_already_handled $name"
13987                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13988         eval value=\"\$HAVE_LIB$uppername\"
13989         if test -n "$value"; then
13990           if test "$value" = yes; then
13991             eval value=\"\$LIB$uppername\"
13992             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13993             eval value=\"\$LTLIB$uppername\"
13994             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13995           else
13996                                     :
13997           fi
13998         else
13999                               found_dir=
14000           found_la=
14001           found_so=
14002           found_a=
14003           if test $use_additional = yes; then
14004             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
14005               found_dir="$additional_libdir"
14006               found_so="$additional_libdir/lib$name.$shlibext"
14007               if test -f "$additional_libdir/lib$name.la"; then
14008                 found_la="$additional_libdir/lib$name.la"
14009               fi
14010             else
14011               if test -f "$additional_libdir/lib$name.$libext"; then
14012                 found_dir="$additional_libdir"
14013                 found_a="$additional_libdir/lib$name.$libext"
14014                 if test -f "$additional_libdir/lib$name.la"; then
14015                   found_la="$additional_libdir/lib$name.la"
14016                 fi
14017               fi
14018             fi
14019           fi
14020           if test "X$found_dir" = "X"; then
14021             for x in $LDFLAGS $LTLIBINTL; do
14022
14023   acl_save_prefix="$prefix"
14024   prefix="$acl_final_prefix"
14025   acl_save_exec_prefix="$exec_prefix"
14026   exec_prefix="$acl_final_exec_prefix"
14027   eval x=\"$x\"
14028   exec_prefix="$acl_save_exec_prefix"
14029   prefix="$acl_save_prefix"
14030
14031               case "$x" in
14032                 -L*)
14033                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14034                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
14035                     found_dir="$dir"
14036                     found_so="$dir/lib$name.$shlibext"
14037                     if test -f "$dir/lib$name.la"; then
14038                       found_la="$dir/lib$name.la"
14039                     fi
14040                   else
14041                     if test -f "$dir/lib$name.$libext"; then
14042                       found_dir="$dir"
14043                       found_a="$dir/lib$name.$libext"
14044                       if test -f "$dir/lib$name.la"; then
14045                         found_la="$dir/lib$name.la"
14046                       fi
14047                     fi
14048                   fi
14049                   ;;
14050               esac
14051               if test "X$found_dir" != "X"; then
14052                 break
14053               fi
14054             done
14055           fi
14056           if test "X$found_dir" != "X"; then
14057                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14058             if test "X$found_so" != "X"; then
14059                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
14060                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14061               else
14062                                                                                 haveit=
14063                 for x in $ltrpathdirs; do
14064                   if test "X$x" = "X$found_dir"; then
14065                     haveit=yes
14066                     break
14067                   fi
14068                 done
14069                 if test -z "$haveit"; then
14070                   ltrpathdirs="$ltrpathdirs $found_dir"
14071                 fi
14072                                 if test "$hardcode_direct" = yes; then
14073                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14074                 else
14075                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
14076                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14077                                                             haveit=
14078                     for x in $rpathdirs; do
14079                       if test "X$x" = "X$found_dir"; then
14080                         haveit=yes
14081                         break
14082                       fi
14083                     done
14084                     if test -z "$haveit"; then
14085                       rpathdirs="$rpathdirs $found_dir"
14086                     fi
14087                   else
14088                                                                                 haveit=
14089                     for x in $LDFLAGS $LIBINTL; do
14090
14091   acl_save_prefix="$prefix"
14092   prefix="$acl_final_prefix"
14093   acl_save_exec_prefix="$exec_prefix"
14094   exec_prefix="$acl_final_exec_prefix"
14095   eval x=\"$x\"
14096   exec_prefix="$acl_save_exec_prefix"
14097   prefix="$acl_save_prefix"
14098
14099                       if test "X$x" = "X-L$found_dir"; then
14100                         haveit=yes
14101                         break
14102                       fi
14103                     done
14104                     if test -z "$haveit"; then
14105                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14106                     fi
14107                     if test "$hardcode_minus_L" != no; then
14108                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14109                     else
14110                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14111                     fi
14112                   fi
14113                 fi
14114               fi
14115             else
14116               if test "X$found_a" != "X"; then
14117                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14118               else
14119                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14120               fi
14121             fi
14122                         additional_includedir=
14123             case "$found_dir" in
14124               */lib | */lib/)
14125                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
14126                 additional_includedir="$basedir/include"
14127                 ;;
14128             esac
14129             if test "X$additional_includedir" != "X"; then
14130                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14131                 haveit=
14132                 if test "X$additional_includedir" = "X/usr/local/include"; then
14133                   if test -n "$GCC"; then
14134                     case $host_os in
14135                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14136                     esac
14137                   fi
14138                 fi
14139                 if test -z "$haveit"; then
14140                   for x in $CPPFLAGS $INCINTL; do
14141
14142   acl_save_prefix="$prefix"
14143   prefix="$acl_final_prefix"
14144   acl_save_exec_prefix="$exec_prefix"
14145   exec_prefix="$acl_final_exec_prefix"
14146   eval x=\"$x\"
14147   exec_prefix="$acl_save_exec_prefix"
14148   prefix="$acl_save_prefix"
14149
14150                     if test "X$x" = "X-I$additional_includedir"; then
14151                       haveit=yes
14152                       break
14153                     fi
14154                   done
14155                   if test -z "$haveit"; then
14156                     if test -d "$additional_includedir"; then
14157                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14158                     fi
14159                   fi
14160                 fi
14161               fi
14162             fi
14163                         if test -n "$found_la"; then
14164                                                         save_libdir="$libdir"
14165               case "$found_la" in
14166                 */* | *\\*) . "$found_la" ;;
14167                 *) . "./$found_la" ;;
14168               esac
14169               libdir="$save_libdir"
14170                             for dep in $dependency_libs; do
14171                 case "$dep" in
14172                   -L*)
14173                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14174                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
14175                       haveit=
14176                       if test "X$additional_libdir" = "X/usr/local/lib"; then
14177                         if test -n "$GCC"; then
14178                           case $host_os in
14179                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14180                           esac
14181                         fi
14182                       fi
14183                       if test -z "$haveit"; then
14184                         haveit=
14185                         for x in $LDFLAGS $LIBINTL; do
14186
14187   acl_save_prefix="$prefix"
14188   prefix="$acl_final_prefix"
14189   acl_save_exec_prefix="$exec_prefix"
14190   exec_prefix="$acl_final_exec_prefix"
14191   eval x=\"$x\"
14192   exec_prefix="$acl_save_exec_prefix"
14193   prefix="$acl_save_prefix"
14194
14195                           if test "X$x" = "X-L$additional_libdir"; then
14196                             haveit=yes
14197                             break
14198                           fi
14199                         done
14200                         if test -z "$haveit"; then
14201                           if test -d "$additional_libdir"; then
14202                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14203                           fi
14204                         fi
14205                         haveit=
14206                         for x in $LDFLAGS $LTLIBINTL; do
14207
14208   acl_save_prefix="$prefix"
14209   prefix="$acl_final_prefix"
14210   acl_save_exec_prefix="$exec_prefix"
14211   exec_prefix="$acl_final_exec_prefix"
14212   eval x=\"$x\"
14213   exec_prefix="$acl_save_exec_prefix"
14214   prefix="$acl_save_prefix"
14215
14216                           if test "X$x" = "X-L$additional_libdir"; then
14217                             haveit=yes
14218                             break
14219                           fi
14220                         done
14221                         if test -z "$haveit"; then
14222                           if test -d "$additional_libdir"; then
14223                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14224                           fi
14225                         fi
14226                       fi
14227                     fi
14228                     ;;
14229                   -R*)
14230                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14231                     if test "$enable_rpath" != no; then
14232                                                                   haveit=
14233                       for x in $rpathdirs; do
14234                         if test "X$x" = "X$dir"; then
14235                           haveit=yes
14236                           break
14237                         fi
14238                       done
14239                       if test -z "$haveit"; then
14240                         rpathdirs="$rpathdirs $dir"
14241                       fi
14242                                                                   haveit=
14243                       for x in $ltrpathdirs; do
14244                         if test "X$x" = "X$dir"; then
14245                           haveit=yes
14246                           break
14247                         fi
14248                       done
14249                       if test -z "$haveit"; then
14250                         ltrpathdirs="$ltrpathdirs $dir"
14251                       fi
14252                     fi
14253                     ;;
14254                   -l*)
14255                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14256                     ;;
14257                   *.la)
14258                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14259                     ;;
14260                   *)
14261                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14262                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14263                     ;;
14264                 esac
14265               done
14266             fi
14267           else
14268                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14269             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14270           fi
14271         fi
14272       fi
14273     done
14274   done
14275   if test "X$rpathdirs" != "X"; then
14276     if test -n "$hardcode_libdir_separator"; then
14277                         alldirs=
14278       for found_dir in $rpathdirs; do
14279         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
14280       done
14281             acl_save_libdir="$libdir"
14282       libdir="$alldirs"
14283       eval flag=\"$hardcode_libdir_flag_spec\"
14284       libdir="$acl_save_libdir"
14285       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14286     else
14287             for found_dir in $rpathdirs; do
14288         acl_save_libdir="$libdir"
14289         libdir="$found_dir"
14290         eval flag=\"$hardcode_libdir_flag_spec\"
14291         libdir="$acl_save_libdir"
14292         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14293       done
14294     fi
14295   fi
14296   if test "X$ltrpathdirs" != "X"; then
14297             for found_dir in $ltrpathdirs; do
14298       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14299     done
14300   fi
14301
14302           { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
14303 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
14304 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
14305   echo $ECHO_N "(cached) $ECHO_C" >&6
14306 else
14307   gt_save_CPPFLAGS="$CPPFLAGS"
14308             CPPFLAGS="$CPPFLAGS $INCINTL"
14309             gt_save_LIBS="$LIBS"
14310             LIBS="$LIBS $LIBINTL"
14311                         cat >conftest.$ac_ext <<_ACEOF
14312 /* confdefs.h.  */
14313 _ACEOF
14314 cat confdefs.h >>conftest.$ac_ext
14315 cat >>conftest.$ac_ext <<_ACEOF
14316 /* end confdefs.h.  */
14317 #include <libintl.h>
14318 extern int _nl_msg_cat_cntr;
14319 extern
14320 #ifdef __cplusplus
14321 "C"
14322 #endif
14323 const char *_nl_expand_alias (const char *);
14324 int
14325 main ()
14326 {
14327 bindtextdomain ("", "");
14328 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14329   ;
14330   return 0;
14331 }
14332 _ACEOF
14333 rm -f conftest.$ac_objext conftest$ac_exeext
14334 if { (ac_try="$ac_link"
14335 case "(($ac_try" in
14336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14337   *) ac_try_echo=$ac_try;;
14338 esac
14339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14340   (eval "$ac_link") 2>conftest.er1
14341   ac_status=$?
14342   grep -v '^ *+' conftest.er1 >conftest.err
14343   rm -f conftest.er1
14344   cat conftest.err >&5
14345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14346   (exit $ac_status); } &&
14347          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14348   { (case "(($ac_try" in
14349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14350   *) ac_try_echo=$ac_try;;
14351 esac
14352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14353   (eval "$ac_try") 2>&5
14354   ac_status=$?
14355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356   (exit $ac_status); }; } &&
14357          { ac_try='test -s conftest$ac_exeext'
14358   { (case "(($ac_try" in
14359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14360   *) ac_try_echo=$ac_try;;
14361 esac
14362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14363   (eval "$ac_try") 2>&5
14364   ac_status=$?
14365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14366   (exit $ac_status); }; }; then
14367   gt_cv_func_gnugettext1_libintl=yes
14368 else
14369   echo "$as_me: failed program was:" >&5
14370 sed 's/^/| /' conftest.$ac_ext >&5
14371
14372         gt_cv_func_gnugettext1_libintl=no
14373 fi
14374
14375 rm -f core conftest.err conftest.$ac_objext \
14376       conftest$ac_exeext conftest.$ac_ext
14377                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
14378               LIBS="$LIBS $LIBICONV"
14379               cat >conftest.$ac_ext <<_ACEOF
14380 /* confdefs.h.  */
14381 _ACEOF
14382 cat confdefs.h >>conftest.$ac_ext
14383 cat >>conftest.$ac_ext <<_ACEOF
14384 /* end confdefs.h.  */
14385 #include <libintl.h>
14386 extern int _nl_msg_cat_cntr;
14387 extern
14388 #ifdef __cplusplus
14389 "C"
14390 #endif
14391 const char *_nl_expand_alias (const char *);
14392 int
14393 main ()
14394 {
14395 bindtextdomain ("", "");
14396 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14397   ;
14398   return 0;
14399 }
14400 _ACEOF
14401 rm -f conftest.$ac_objext conftest$ac_exeext
14402 if { (ac_try="$ac_link"
14403 case "(($ac_try" in
14404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14405   *) ac_try_echo=$ac_try;;
14406 esac
14407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14408   (eval "$ac_link") 2>conftest.er1
14409   ac_status=$?
14410   grep -v '^ *+' conftest.er1 >conftest.err
14411   rm -f conftest.er1
14412   cat conftest.err >&5
14413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414   (exit $ac_status); } &&
14415          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14416   { (case "(($ac_try" in
14417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14418   *) ac_try_echo=$ac_try;;
14419 esac
14420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14421   (eval "$ac_try") 2>&5
14422   ac_status=$?
14423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424   (exit $ac_status); }; } &&
14425          { ac_try='test -s conftest$ac_exeext'
14426   { (case "(($ac_try" in
14427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14428   *) ac_try_echo=$ac_try;;
14429 esac
14430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14431   (eval "$ac_try") 2>&5
14432   ac_status=$?
14433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434   (exit $ac_status); }; }; then
14435   LIBINTL="$LIBINTL $LIBICONV"
14436                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14437                 gt_cv_func_gnugettext1_libintl=yes
14438
14439 else
14440   echo "$as_me: failed program was:" >&5
14441 sed 's/^/| /' conftest.$ac_ext >&5
14442
14443
14444 fi
14445
14446 rm -f core conftest.err conftest.$ac_objext \
14447       conftest$ac_exeext conftest.$ac_ext
14448             fi
14449             CPPFLAGS="$gt_save_CPPFLAGS"
14450             LIBS="$gt_save_LIBS"
14451 fi
14452 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
14453 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
14454         fi
14455
14456                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
14457            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
14458                 && test "$PACKAGE" != gettext-runtime \
14459                 && test "$PACKAGE" != gettext-tools; }; then
14460           gt_use_preinstalled_gnugettext=yes
14461         else
14462                     LIBINTL=
14463           LTLIBINTL=
14464           INCINTL=
14465         fi
14466
14467
14468         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
14469                               nls_cv_use_gnu_gettext=yes
14470         fi
14471       fi
14472
14473       if test "$nls_cv_use_gnu_gettext" = "yes"; then
14474                 BUILD_INCLUDED_LIBINTL=yes
14475         USE_INCLUDED_LIBINTL=yes
14476         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
14477         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
14478         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
14479       fi
14480
14481       CATOBJEXT=
14482       if test "$gt_use_preinstalled_gnugettext" = "yes" \
14483          || test "$nls_cv_use_gnu_gettext" = "yes"; then
14484                 CATOBJEXT=.gmo
14485       fi
14486
14487
14488     if test -n "$INTL_MACOSX_LIBS"; then
14489       if test "$gt_use_preinstalled_gnugettext" = "yes" \
14490          || test "$nls_cv_use_gnu_gettext" = "yes"; then
14491                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14492         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14493       fi
14494     fi
14495
14496     if test "$gt_use_preinstalled_gnugettext" = "yes" \
14497        || test "$nls_cv_use_gnu_gettext" = "yes"; then
14498
14499 cat >>confdefs.h <<\_ACEOF
14500 #define ENABLE_NLS 1
14501 _ACEOF
14502
14503     else
14504       USE_NLS=no
14505     fi
14506   fi
14507
14508   { echo "$as_me:$LINENO: checking whether to use NLS" >&5
14509 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
14510   { echo "$as_me:$LINENO: result: $USE_NLS" >&5
14511 echo "${ECHO_T}$USE_NLS" >&6; }
14512   if test "$USE_NLS" = "yes"; then
14513     { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
14514 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
14515     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14516       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14517         gt_source="external libintl"
14518       else
14519         gt_source="libc"
14520       fi
14521     else
14522       gt_source="included intl directory"
14523     fi
14524     { echo "$as_me:$LINENO: result: $gt_source" >&5
14525 echo "${ECHO_T}$gt_source" >&6; }
14526   fi
14527
14528   if test "$USE_NLS" = "yes"; then
14529
14530     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14531       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14532         { echo "$as_me:$LINENO: checking how to link with libintl" >&5
14533 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
14534         { echo "$as_me:$LINENO: result: $LIBINTL" >&5
14535 echo "${ECHO_T}$LIBINTL" >&6; }
14536
14537   for element in $INCINTL; do
14538     haveit=
14539     for x in $CPPFLAGS; do
14540
14541   acl_save_prefix="$prefix"
14542   prefix="$acl_final_prefix"
14543   acl_save_exec_prefix="$exec_prefix"
14544   exec_prefix="$acl_final_exec_prefix"
14545   eval x=\"$x\"
14546   exec_prefix="$acl_save_exec_prefix"
14547   prefix="$acl_save_prefix"
14548
14549       if test "X$x" = "X$element"; then
14550         haveit=yes
14551         break
14552       fi
14553     done
14554     if test -z "$haveit"; then
14555       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14556     fi
14557   done
14558
14559       fi
14560
14561
14562 cat >>confdefs.h <<\_ACEOF
14563 #define HAVE_GETTEXT 1
14564 _ACEOF
14565
14566
14567 cat >>confdefs.h <<\_ACEOF
14568 #define HAVE_DCGETTEXT 1
14569 _ACEOF
14570
14571     fi
14572
14573         POSUB=po
14574   fi
14575
14576
14577             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
14578       BUILD_INCLUDED_LIBINTL=yes
14579     fi
14580
14581
14582
14583
14584
14585         nls_cv_header_intl=
14586     nls_cv_header_libgt=
14587
14588         DATADIRNAME=share
14589
14590
14591         INSTOBJEXT=.mo
14592
14593
14594         GENCAT=gencat
14595
14596
14597         INTLOBJS=
14598     if test "$USE_INCLUDED_LIBINTL" = yes; then
14599       INTLOBJS="\$(GETTOBJS)"
14600     fi
14601
14602
14603         INTL_LIBTOOL_SUFFIX_PREFIX=
14604
14605
14606
14607     INTLLIBS="$LIBINTL"
14608
14609
14610
14611
14612
14613
14614 fi
14615
14616
14617 support_mysql=no
14618 support_sqlite=no
14619 support_sqlite3=no
14620 support_postgresql=no
14621 support_smartalloc=yes
14622 support_readline=yes
14623 support_conio=yes
14624 support_gnome=no
14625 support_bat=no
14626 support_wx_console=no
14627 support_tls=no
14628 support_crypto=no
14629 gnome_version=
14630 wx_version=
14631 support_static_tools=no
14632 support_static_fd=no
14633 support_static_sd=no
14634 support_static_dir=no
14635 support_static_cons=no
14636 support_python=no
14637 build_client_only=no
14638 build_dird=yes
14639 build_stored=yes
14640 cats=
14641 db_type=Internal
14642 DB_TYPE=bdb
14643
14644
14645 # -------------------------------------------
14646 # gnome (default off)
14647 # -------------------------------------------
14648 # Check whether --enable-gnome was given.
14649 if test "${enable_gnome+set}" = set; then
14650   enableval=$enable_gnome; if test x$enableval = xyes; then
14651     support_gnome=yes
14652   fi
14653 fi
14654
14655
14656 GNOME_DIR=
14657 if test x$support_gnome = xyes; then
14658   abc=`$PKGCONFIG --exists libgnomeui-2.0`
14659   pkg=$?
14660   if test $pkg = 0; then
14661      GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
14662      GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
14663      GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
14664      GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
14665
14666
14667
14668
14669      GNOME_DIR=src/gnome2-console
14670      gnome_version="Version 2.x"
14671   else
14672      { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
14673 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
14674    { (exit 1); exit 1; }; }
14675   fi
14676 fi
14677
14678
14679 # -------------------------------------------
14680 # bat (default off)
14681 # -------------------------------------------
14682 # Check whether --enable-bat was given.
14683 if test "${enable_bat+set}" = set; then
14684   enableval=$enable_bat; if test x$enableval = xyes; then
14685
14686 cat >>confdefs.h <<\_ACEOF
14687 #define HAVE_BAT 1
14688 _ACEOF
14689
14690     support_bat=yes
14691   fi
14692 fi
14693
14694
14695 BAT_DIR=
14696 if test x$support_bat = xyes; then
14697   abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
14698   pkg=$?
14699   if test $pkg = 0; then
14700      BAT_DIR=src/qt-console
14701   else
14702      { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
14703 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
14704    { (exit 1); exit 1; }; }
14705   fi
14706 fi
14707
14708
14709
14710 # -------------------------------------------
14711 # bwx-console (default off)
14712 # -------------------------------------------
14713 # Check whether --enable-bwx-console was given.
14714 if test "${enable_bwx_console+set}" = set; then
14715   enableval=$enable_bwx_console; if test x$enableval = xyes; then
14716     support_wx_console=yes
14717   fi
14718 fi
14719
14720
14721 WX_DIR=
14722 if test x$support_wx_console = xyes; then
14723   abc=`$WXCONFIG $WXFLAGS --cppflags`
14724   pkg=$?
14725   if test $pkg = 0; then
14726      wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
14727      WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
14728      WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
14729
14730
14731
14732      WX_DIR=src/wx-console
14733   else
14734      echo " "
14735      echo "wx-config program not found. bwx-console disabled."
14736      echo " "
14737      support_wx_console=no
14738   fi
14739 fi
14740
14741
14742
14743 # -------------------------------------------
14744 # tray-monitor (default off)
14745 # -------------------------------------------
14746 # Check whether --enable-tray-monitor was given.
14747 if test "${enable_tray_monitor+set}" = set; then
14748   enableval=$enable_tray_monitor; if test x$enableval = xyes; then
14749     support_tray_monitor=yes
14750   fi
14751 fi
14752
14753
14754 TRAY_MONITOR_DIR=
14755 if test x$support_tray_monitor = xyes; then
14756   abc=`$PKGCONFIG --exists gtk+-2.0`
14757   pkg=$?
14758   if test $pkg = 0; then
14759      TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
14760      TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
14761
14762
14763      TRAY_MONITOR_DIR=src/tray-monitor
14764      abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
14765      pkg=$?
14766      if test $pkg = 0; then
14767      cat >>confdefs.h <<\_ACEOF
14768 #define HAVE_GTK_2_4 1
14769 _ACEOF
14770
14771      fi
14772   fi
14773 fi
14774
14775
14776 # -------------------------------------------
14777 # smartalloc (default off)
14778 # -------------------------------------------
14779 # Check whether --enable-smartalloc was given.
14780 if test "${enable_smartalloc+set}" = set; then
14781   enableval=$enable_smartalloc; if test x$enableval = xno; then
14782     support_smartalloc=no
14783   fi
14784 fi
14785
14786
14787 if test x$support_smartalloc = xyes; then
14788    cat >>confdefs.h <<\_ACEOF
14789 #define SMARTALLOC 1
14790 _ACEOF
14791
14792 fi
14793
14794 # -------------------------------------------
14795 # static-tools (default off)
14796 # -------------------------------------------
14797 # Check whether --enable-static-tools was given.
14798 if test "${enable_static_tools+set}" = set; then
14799   enableval=$enable_static_tools; if test x$enableval = xyes; then
14800      support_static_tools=yes
14801    fi
14802 fi
14803
14804
14805 TTOOL_LDFLAGS=
14806 if test x$support_static_tools = xyes; then
14807    TTOOL_LDFLAGS="-static"
14808 fi
14809
14810
14811 # -------------------------------------------
14812 # static-fd    (default off)
14813 # -------------------------------------------
14814 # Check whether --enable-static-fd was given.
14815 if test "${enable_static_fd+set}" = set; then
14816   enableval=$enable_static_fd; if test x$enableval = xyes; then
14817      support_static_fd=yes
14818    fi
14819 fi
14820
14821
14822 STATIC_FD=
14823 if test x$support_static_fd = xyes; then
14824    STATIC_FD="static-bacula-fd"
14825 fi
14826
14827
14828 # -------------------------------------------
14829 # static-sd    (default off)
14830 # -------------------------------------------
14831 # Check whether --enable-static-sd was given.
14832 if test "${enable_static_sd+set}" = set; then
14833   enableval=$enable_static_sd; if test x$enableval = xyes; then
14834      support_static_sd=yes
14835    fi
14836 fi
14837
14838
14839 STATIC_SD=
14840 if test x$support_static_sd = xyes; then
14841    STATIC_SD="static-bacula-sd"
14842 fi
14843
14844
14845 # -------------------------------------------
14846 # static-dir   (default off)
14847 # -------------------------------------------
14848 # Check whether --enable-static-dir was given.
14849 if test "${enable_static_dir+set}" = set; then
14850   enableval=$enable_static_dir; if test x$enableval = xyes; then
14851      support_static_dir=yes
14852    fi
14853 fi
14854
14855
14856 STATIC_DIR=
14857 if test x$support_static_dir = xyes; then
14858    STATIC_DIR="static-bacula-dir"
14859 fi
14860
14861
14862 # -------------------------------------------
14863 # static-cons  (default off)
14864 # -------------------------------------------
14865 # Check whether --enable-static-cons was given.
14866 if test "${enable_static_cons+set}" = set; then
14867   enableval=$enable_static_cons; if test x$enableval = xyes; then
14868      support_static_cons=yes
14869    fi
14870 fi
14871
14872
14873 STATIC_CONS=
14874 STATIC_GNOME_CONS=
14875 STATIC_WX_CONS=
14876 if test x$support_static_cons = xyes; then
14877    STATIC_CONS="static-bconsole"
14878    STATIC_GNOME_CONS="static-bgnome-console"
14879    STATIC_WX_CONS="static-bwx-console"
14880 fi
14881
14882
14883
14884
14885 # -------------------------------------------
14886 # client_only  (default off)
14887 # -------------------------------------------
14888 # Check whether --enable-client-only was given.
14889 if test "${enable_client_only+set}" = set; then
14890   enableval=$enable_client_only; if test x$enableval = xyes; then
14891       build_client_only=yes
14892       db_type=None
14893       DB_TYPE=none
14894    fi
14895 fi
14896
14897 if test x$build_client_only = xno; then
14898    ALL_DIRS="subdirs"
14899 else
14900    ALL_DIRS=""
14901 fi
14902
14903
14904 # -------------------------------------------
14905 # director  (default on)
14906 # -------------------------------------------
14907 # Check whether --enable-build-dird was given.
14908 if test "${enable_build_dird+set}" = set; then
14909   enableval=$enable_build_dird; if test x$enableval = xno; then
14910       build_dird=no
14911    fi
14912 fi
14913
14914 if test x$build_dird = xyes; then
14915    DIRD_DIR="src/dird"
14916    DIR_TOOLS="DIRTOOLS"
14917 else
14918    DIRD_DIR=""
14919    DIR_TOOLS="NODIRTOOLS"
14920 fi
14921
14922
14923
14924 # -------------------------------------------
14925 # stored  (default on)
14926 # -------------------------------------------
14927 # Check whether --enable-build-stored was given.
14928 if test "${enable_build_stored+set}" = set; then
14929   enableval=$enable_build_stored; if test x$enableval = xno; then
14930       build_stored=no
14931    fi
14932 fi
14933
14934 if test x$build_stored = xyes; then
14935    STORED_DIR="src/stored"
14936 else
14937    STORED_DIR=""
14938 fi
14939
14940
14941 # ---------------------------------------------------
14942 # Check for conio (Bacula readline substitute)(
14943 # ---------------------------------------------------
14944 # this allows you to turn it completely off
14945 # Check whether --enable-conio was given.
14946 if test "${enable_conio+set}" = set; then
14947   enableval=$enable_conio; if test x$enableval = xno; then
14948      support_conio=no
14949   fi
14950
14951 fi
14952
14953
14954
14955 # ---------------------------------------------------
14956 # Check for IPv6 support
14957 # ---------------------------------------------------
14958 # this allows you to turn it completely off
14959 support_ipv6=yes
14960 # Check whether --enable-ipv6 was given.
14961 if test "${enable_ipv6+set}" = set; then
14962   enableval=$enable_ipv6; if test x$enableval = xno; then
14963      support_ipv6=no
14964   fi
14965
14966 fi
14967
14968
14969 if test x$support_ipv6 = xyes; then
14970     cat >conftest.$ac_ext <<_ACEOF
14971 /* confdefs.h.  */
14972 _ACEOF
14973 cat confdefs.h >>conftest.$ac_ext
14974 cat >>conftest.$ac_ext <<_ACEOF
14975 /* end confdefs.h.  */
14976  #include <sys/types.h>
14977 #include <sys/socket.h>
14978 #include <netinet/in.h>
14979 int
14980 main ()
14981 {
14982 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
14983   ;
14984   return 0;
14985 }
14986 _ACEOF
14987 rm -f conftest.$ac_objext conftest$ac_exeext
14988 if { (ac_try="$ac_link"
14989 case "(($ac_try" in
14990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14991   *) ac_try_echo=$ac_try;;
14992 esac
14993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14994   (eval "$ac_link") 2>conftest.er1
14995   ac_status=$?
14996   grep -v '^ *+' conftest.er1 >conftest.err
14997   rm -f conftest.er1
14998   cat conftest.err >&5
14999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000   (exit $ac_status); } &&
15001          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15002   { (case "(($ac_try" in
15003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15004   *) ac_try_echo=$ac_try;;
15005 esac
15006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15007   (eval "$ac_try") 2>&5
15008   ac_status=$?
15009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010   (exit $ac_status); }; } &&
15011          { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
15018   ac_status=$?
15019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020   (exit $ac_status); }; }; then
15021   support_ipv6=yes
15022 else
15023   echo "$as_me: failed program was:" >&5
15024 sed 's/^/| /' conftest.$ac_ext >&5
15025
15026         support_ipv6=no
15027 fi
15028
15029 rm -f core conftest.err conftest.$ac_objext \
15030       conftest$ac_exeext conftest.$ac_ext
15031 fi
15032
15033 if test x$support_ipv6 = xyes; then
15034
15035 cat >>confdefs.h <<\_ACEOF
15036 #define HAVE_IPV6 1
15037 _ACEOF
15038
15039 fi
15040
15041
15042
15043 got_conio="no"
15044 if test x$support_conio = xyes; then
15045    if test "${ac_cv_header_termcap_h+set}" = set; then
15046   { echo "$as_me:$LINENO: checking for termcap.h" >&5
15047 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
15048 if test "${ac_cv_header_termcap_h+set}" = set; then
15049   echo $ECHO_N "(cached) $ECHO_C" >&6
15050 fi
15051 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
15052 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
15053 else
15054   # Is the header compilable?
15055 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
15056 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
15057 cat >conftest.$ac_ext <<_ACEOF
15058 /* confdefs.h.  */
15059 _ACEOF
15060 cat confdefs.h >>conftest.$ac_ext
15061 cat >>conftest.$ac_ext <<_ACEOF
15062 /* end confdefs.h.  */
15063 $ac_includes_default
15064 #include <termcap.h>
15065 _ACEOF
15066 rm -f conftest.$ac_objext
15067 if { (ac_try="$ac_compile"
15068 case "(($ac_try" in
15069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15070   *) ac_try_echo=$ac_try;;
15071 esac
15072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15073   (eval "$ac_compile") 2>conftest.er1
15074   ac_status=$?
15075   grep -v '^ *+' conftest.er1 >conftest.err
15076   rm -f conftest.er1
15077   cat conftest.err >&5
15078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079   (exit $ac_status); } &&
15080          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15081   { (case "(($ac_try" in
15082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083   *) ac_try_echo=$ac_try;;
15084 esac
15085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086   (eval "$ac_try") 2>&5
15087   ac_status=$?
15088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089   (exit $ac_status); }; } &&
15090          { ac_try='test -s conftest.$ac_objext'
15091   { (case "(($ac_try" in
15092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093   *) ac_try_echo=$ac_try;;
15094 esac
15095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096   (eval "$ac_try") 2>&5
15097   ac_status=$?
15098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099   (exit $ac_status); }; }; then
15100   ac_header_compiler=yes
15101 else
15102   echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15104
15105         ac_header_compiler=no
15106 fi
15107
15108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15109 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15110 echo "${ECHO_T}$ac_header_compiler" >&6; }
15111
15112 # Is the header present?
15113 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
15114 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
15115 cat >conftest.$ac_ext <<_ACEOF
15116 /* confdefs.h.  */
15117 _ACEOF
15118 cat confdefs.h >>conftest.$ac_ext
15119 cat >>conftest.$ac_ext <<_ACEOF
15120 /* end confdefs.h.  */
15121 #include <termcap.h>
15122 _ACEOF
15123 if { (ac_try="$ac_cpp conftest.$ac_ext"
15124 case "(($ac_try" in
15125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15126   *) ac_try_echo=$ac_try;;
15127 esac
15128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15129   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15130   ac_status=$?
15131   grep -v '^ *+' conftest.er1 >conftest.err
15132   rm -f conftest.er1
15133   cat conftest.err >&5
15134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135   (exit $ac_status); } >/dev/null; then
15136   if test -s conftest.err; then
15137     ac_cpp_err=$ac_c_preproc_warn_flag
15138     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15139   else
15140     ac_cpp_err=
15141   fi
15142 else
15143   ac_cpp_err=yes
15144 fi
15145 if test -z "$ac_cpp_err"; then
15146   ac_header_preproc=yes
15147 else
15148   echo "$as_me: failed program was:" >&5
15149 sed 's/^/| /' conftest.$ac_ext >&5
15150
15151   ac_header_preproc=no
15152 fi
15153
15154 rm -f conftest.err conftest.$ac_ext
15155 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15156 echo "${ECHO_T}$ac_header_preproc" >&6; }
15157
15158 # So?  What about this header?
15159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15160   yes:no: )
15161     { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
15162 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15163     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
15164 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
15165     ac_header_preproc=yes
15166     ;;
15167   no:yes:* )
15168     { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
15169 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
15170     { echo "$as_me:$LINENO: WARNING: termcap.h:     check for missing prerequisite headers?" >&5
15171 echo "$as_me: WARNING: termcap.h:     check for missing prerequisite headers?" >&2;}
15172     { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
15173 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
15174     { echo "$as_me:$LINENO: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&5
15175 echo "$as_me: WARNING: termcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15176     { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
15177 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
15178     { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
15179 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
15180
15181     ;;
15182 esac
15183 { echo "$as_me:$LINENO: checking for termcap.h" >&5
15184 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
15185 if test "${ac_cv_header_termcap_h+set}" = set; then
15186   echo $ECHO_N "(cached) $ECHO_C" >&6
15187 else
15188   ac_cv_header_termcap_h=$ac_header_preproc
15189 fi
15190 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
15191 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
15192
15193 fi
15194 if test $ac_cv_header_termcap_h = yes; then
15195    { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
15196 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
15197 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
15198   echo $ECHO_N "(cached) $ECHO_C" >&6
15199 else
15200   ac_check_lib_save_LIBS=$LIBS
15201 LIBS="-ltermcap  $LIBS"
15202 cat >conftest.$ac_ext <<_ACEOF
15203 /* confdefs.h.  */
15204 _ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h.  */
15208
15209 /* Override any GCC internal prototype to avoid an error.
15210    Use char because int might match the return type of a GCC
15211    builtin and then its argument prototype would still apply.  */
15212 #ifdef __cplusplus
15213 extern "C"
15214 #endif
15215 char tgetent ();
15216 int
15217 main ()
15218 {
15219 return tgetent ();
15220   ;
15221   return 0;
15222 }
15223 _ACEOF
15224 rm -f conftest.$ac_objext conftest$ac_exeext
15225 if { (ac_try="$ac_link"
15226 case "(($ac_try" in
15227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15228   *) ac_try_echo=$ac_try;;
15229 esac
15230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15231   (eval "$ac_link") 2>conftest.er1
15232   ac_status=$?
15233   grep -v '^ *+' conftest.er1 >conftest.err
15234   rm -f conftest.er1
15235   cat conftest.err >&5
15236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237   (exit $ac_status); } &&
15238          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15239   { (case "(($ac_try" in
15240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15241   *) ac_try_echo=$ac_try;;
15242 esac
15243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15244   (eval "$ac_try") 2>&5
15245   ac_status=$?
15246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247   (exit $ac_status); }; } &&
15248          { ac_try='test -s conftest$ac_exeext'
15249   { (case "(($ac_try" in
15250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15251   *) ac_try_echo=$ac_try;;
15252 esac
15253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15254   (eval "$ac_try") 2>&5
15255   ac_status=$?
15256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257   (exit $ac_status); }; }; then
15258   ac_cv_lib_termcap_tgetent=yes
15259 else
15260   echo "$as_me: failed program was:" >&5
15261 sed 's/^/| /' conftest.$ac_ext >&5
15262
15263         ac_cv_lib_termcap_tgetent=no
15264 fi
15265
15266 rm -f core conftest.err conftest.$ac_objext \
15267       conftest$ac_exeext conftest.$ac_ext
15268 LIBS=$ac_check_lib_save_LIBS
15269 fi
15270 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
15271 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
15272 if test $ac_cv_lib_termcap_tgetent = yes; then
15273    CONS_LIBS="-ltermcap"
15274          CONS_OBJ="conio.o"
15275          CONS_SRC="conio.c"
15276          got_conio="yes"
15277          support_readline=no
15278
15279 cat >>confdefs.h <<\_ACEOF
15280 #define HAVE_CONIO 1
15281 _ACEOF
15282
15283
15284 else
15285    { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
15286 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
15287 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
15288   echo $ECHO_N "(cached) $ECHO_C" >&6
15289 else
15290   ac_check_lib_save_LIBS=$LIBS
15291 LIBS="-lncurses  $LIBS"
15292 cat >conftest.$ac_ext <<_ACEOF
15293 /* confdefs.h.  */
15294 _ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h.  */
15298
15299 /* Override any GCC internal prototype to avoid an error.
15300    Use char because int might match the return type of a GCC
15301    builtin and then its argument prototype would still apply.  */
15302 #ifdef __cplusplus
15303 extern "C"
15304 #endif
15305 char tgetent ();
15306 int
15307 main ()
15308 {
15309 return tgetent ();
15310   ;
15311   return 0;
15312 }
15313 _ACEOF
15314 rm -f conftest.$ac_objext conftest$ac_exeext
15315 if { (ac_try="$ac_link"
15316 case "(($ac_try" in
15317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15318   *) ac_try_echo=$ac_try;;
15319 esac
15320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15321   (eval "$ac_link") 2>conftest.er1
15322   ac_status=$?
15323   grep -v '^ *+' conftest.er1 >conftest.err
15324   rm -f conftest.er1
15325   cat conftest.err >&5
15326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327   (exit $ac_status); } &&
15328          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15329   { (case "(($ac_try" in
15330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15331   *) ac_try_echo=$ac_try;;
15332 esac
15333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15334   (eval "$ac_try") 2>&5
15335   ac_status=$?
15336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15337   (exit $ac_status); }; } &&
15338          { ac_try='test -s conftest$ac_exeext'
15339   { (case "(($ac_try" in
15340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341   *) ac_try_echo=$ac_try;;
15342 esac
15343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15344   (eval "$ac_try") 2>&5
15345   ac_status=$?
15346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347   (exit $ac_status); }; }; then
15348   ac_cv_lib_ncurses_tgetent=yes
15349 else
15350   echo "$as_me: failed program was:" >&5
15351 sed 's/^/| /' conftest.$ac_ext >&5
15352
15353         ac_cv_lib_ncurses_tgetent=no
15354 fi
15355
15356 rm -f core conftest.err conftest.$ac_objext \
15357       conftest$ac_exeext conftest.$ac_ext
15358 LIBS=$ac_check_lib_save_LIBS
15359 fi
15360 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
15361 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
15362 if test $ac_cv_lib_ncurses_tgetent = yes; then
15363    CONS_LIBS="-lncurses"
15364            CONS_OBJ="conio.o"
15365            CONS_SRC="conio.c"
15366            got_conio="yes"
15367            support_readline=no
15368
15369 cat >>confdefs.h <<\_ACEOF
15370 #define HAVE_CONIO 1
15371 _ACEOF
15372
15373
15374 fi
15375
15376
15377 fi
15378
15379
15380 else
15381
15382
15383 for ac_header in curses.h
15384 do
15385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15387   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15390   echo $ECHO_N "(cached) $ECHO_C" >&6
15391 fi
15392 ac_res=`eval echo '${'$as_ac_Header'}'`
15393                { echo "$as_me:$LINENO: result: $ac_res" >&5
15394 echo "${ECHO_T}$ac_res" >&6; }
15395 else
15396   # Is the header compilable?
15397 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15398 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15399 cat >conftest.$ac_ext <<_ACEOF
15400 /* confdefs.h.  */
15401 _ACEOF
15402 cat confdefs.h >>conftest.$ac_ext
15403 cat >>conftest.$ac_ext <<_ACEOF
15404 /* end confdefs.h.  */
15405 $ac_includes_default
15406 #include <$ac_header>
15407 _ACEOF
15408 rm -f conftest.$ac_objext
15409 if { (ac_try="$ac_compile"
15410 case "(($ac_try" in
15411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15412   *) ac_try_echo=$ac_try;;
15413 esac
15414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15415   (eval "$ac_compile") 2>conftest.er1
15416   ac_status=$?
15417   grep -v '^ *+' conftest.er1 >conftest.err
15418   rm -f conftest.er1
15419   cat conftest.err >&5
15420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421   (exit $ac_status); } &&
15422          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15423   { (case "(($ac_try" in
15424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15425   *) ac_try_echo=$ac_try;;
15426 esac
15427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15428   (eval "$ac_try") 2>&5
15429   ac_status=$?
15430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431   (exit $ac_status); }; } &&
15432          { ac_try='test -s conftest.$ac_objext'
15433   { (case "(($ac_try" in
15434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15435   *) ac_try_echo=$ac_try;;
15436 esac
15437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15438   (eval "$ac_try") 2>&5
15439   ac_status=$?
15440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441   (exit $ac_status); }; }; then
15442   ac_header_compiler=yes
15443 else
15444   echo "$as_me: failed program was:" >&5
15445 sed 's/^/| /' conftest.$ac_ext >&5
15446
15447         ac_header_compiler=no
15448 fi
15449
15450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15451 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15452 echo "${ECHO_T}$ac_header_compiler" >&6; }
15453
15454 # Is the header present?
15455 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15457 cat >conftest.$ac_ext <<_ACEOF
15458 /* confdefs.h.  */
15459 _ACEOF
15460 cat confdefs.h >>conftest.$ac_ext
15461 cat >>conftest.$ac_ext <<_ACEOF
15462 /* end confdefs.h.  */
15463 #include <$ac_header>
15464 _ACEOF
15465 if { (ac_try="$ac_cpp conftest.$ac_ext"
15466 case "(($ac_try" in
15467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15468   *) ac_try_echo=$ac_try;;
15469 esac
15470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15471   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15472   ac_status=$?
15473   grep -v '^ *+' conftest.er1 >conftest.err
15474   rm -f conftest.er1
15475   cat conftest.err >&5
15476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477   (exit $ac_status); } >/dev/null; then
15478   if test -s conftest.err; then
15479     ac_cpp_err=$ac_c_preproc_warn_flag
15480     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15481   else
15482     ac_cpp_err=
15483   fi
15484 else
15485   ac_cpp_err=yes
15486 fi
15487 if test -z "$ac_cpp_err"; then
15488   ac_header_preproc=yes
15489 else
15490   echo "$as_me: failed program was:" >&5
15491 sed 's/^/| /' conftest.$ac_ext >&5
15492
15493   ac_header_preproc=no
15494 fi
15495
15496 rm -f conftest.err conftest.$ac_ext
15497 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15498 echo "${ECHO_T}$ac_header_preproc" >&6; }
15499
15500 # So?  What about this header?
15501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15502   yes:no: )
15503     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15505     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15506 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15507     ac_header_preproc=yes
15508     ;;
15509   no:yes:* )
15510     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15511 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15512     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15513 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15514     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15515 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15516     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15517 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15518     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15520     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15521 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15522
15523     ;;
15524 esac
15525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15528   echo $ECHO_N "(cached) $ECHO_C" >&6
15529 else
15530   eval "$as_ac_Header=\$ac_header_preproc"
15531 fi
15532 ac_res=`eval echo '${'$as_ac_Header'}'`
15533                { echo "$as_me:$LINENO: result: $ac_res" >&5
15534 echo "${ECHO_T}$ac_res" >&6; }
15535
15536 fi
15537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15538   cat >>confdefs.h <<_ACEOF
15539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15540 _ACEOF
15541
15542 fi
15543
15544 done
15545
15546          { echo "$as_me:$LINENO: checking for term.h" >&5
15547 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
15548 if test "${ac_cv_header_term_h+set}" = set; then
15549   echo $ECHO_N "(cached) $ECHO_C" >&6
15550 else
15551   cat >conftest.$ac_ext <<_ACEOF
15552 /* confdefs.h.  */
15553 _ACEOF
15554 cat confdefs.h >>conftest.$ac_ext
15555 cat >>conftest.$ac_ext <<_ACEOF
15556 /* end confdefs.h.  */
15557 #if HAVE_CURSES_H
15558 #include <curses.h>
15559 #endif
15560
15561
15562 #include <term.h>
15563 _ACEOF
15564 rm -f conftest.$ac_objext
15565 if { (ac_try="$ac_compile"
15566 case "(($ac_try" in
15567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15568   *) ac_try_echo=$ac_try;;
15569 esac
15570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15571   (eval "$ac_compile") 2>conftest.er1
15572   ac_status=$?
15573   grep -v '^ *+' conftest.er1 >conftest.err
15574   rm -f conftest.er1
15575   cat conftest.err >&5
15576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15577   (exit $ac_status); } &&
15578          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15579   { (case "(($ac_try" in
15580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15581   *) ac_try_echo=$ac_try;;
15582 esac
15583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15584   (eval "$ac_try") 2>&5
15585   ac_status=$?
15586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587   (exit $ac_status); }; } &&
15588          { ac_try='test -s conftest.$ac_objext'
15589   { (case "(($ac_try" in
15590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15591   *) ac_try_echo=$ac_try;;
15592 esac
15593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15594   (eval "$ac_try") 2>&5
15595   ac_status=$?
15596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597   (exit $ac_status); }; }; then
15598   ac_cv_header_term_h=yes
15599 else
15600   echo "$as_me: failed program was:" >&5
15601 sed 's/^/| /' conftest.$ac_ext >&5
15602
15603         ac_cv_header_term_h=no
15604 fi
15605
15606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15607 fi
15608 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
15609 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
15610 if test $ac_cv_header_term_h = yes; then
15611    { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
15612 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
15613 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
15614   echo $ECHO_N "(cached) $ECHO_C" >&6
15615 else
15616   ac_check_lib_save_LIBS=$LIBS
15617 LIBS="-lcurses  $LIBS"
15618 cat >conftest.$ac_ext <<_ACEOF
15619 /* confdefs.h.  */
15620 _ACEOF
15621 cat confdefs.h >>conftest.$ac_ext
15622 cat >>conftest.$ac_ext <<_ACEOF
15623 /* end confdefs.h.  */
15624
15625 /* Override any GCC internal prototype to avoid an error.
15626    Use char because int might match the return type of a GCC
15627    builtin and then its argument prototype would still apply.  */
15628 #ifdef __cplusplus
15629 extern "C"
15630 #endif
15631 char tgetent ();
15632 int
15633 main ()
15634 {
15635 return tgetent ();
15636   ;
15637   return 0;
15638 }
15639 _ACEOF
15640 rm -f conftest.$ac_objext conftest$ac_exeext
15641 if { (ac_try="$ac_link"
15642 case "(($ac_try" in
15643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15644   *) ac_try_echo=$ac_try;;
15645 esac
15646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15647   (eval "$ac_link") 2>conftest.er1
15648   ac_status=$?
15649   grep -v '^ *+' conftest.er1 >conftest.err
15650   rm -f conftest.er1
15651   cat conftest.err >&5
15652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653   (exit $ac_status); } &&
15654          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15655   { (case "(($ac_try" in
15656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15657   *) ac_try_echo=$ac_try;;
15658 esac
15659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15660   (eval "$ac_try") 2>&5
15661   ac_status=$?
15662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663   (exit $ac_status); }; } &&
15664          { ac_try='test -s conftest$ac_exeext'
15665   { (case "(($ac_try" in
15666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15667   *) ac_try_echo=$ac_try;;
15668 esac
15669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15670   (eval "$ac_try") 2>&5
15671   ac_status=$?
15672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673   (exit $ac_status); }; }; then
15674   ac_cv_lib_curses_tgetent=yes
15675 else
15676   echo "$as_me: failed program was:" >&5
15677 sed 's/^/| /' conftest.$ac_ext >&5
15678
15679         ac_cv_lib_curses_tgetent=no
15680 fi
15681
15682 rm -f core conftest.err conftest.$ac_objext \
15683       conftest$ac_exeext conftest.$ac_ext
15684 LIBS=$ac_check_lib_save_LIBS
15685 fi
15686 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
15687 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
15688 if test $ac_cv_lib_curses_tgetent = yes; then
15689    CONS_LIBS="-lcurses"
15690                    CONS_OBJ="conio.o"
15691                    CONS_SRC="conio.c"
15692                    got_conio="yes"
15693                    support_readline=no
15694
15695 cat >>confdefs.h <<\_ACEOF
15696 #define HAVE_CONIO 1
15697 _ACEOF
15698
15699
15700 fi
15701
15702
15703 else
15704    echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
15705 fi
15706
15707
15708
15709 fi
15710
15711
15712 fi
15713
15714
15715 # ---------------------------------------------------
15716 # Check for readline support/directory (default off)
15717 # ---------------------------------------------------
15718 # this allows you to turn it completely off
15719 # Check whether --enable-readline was given.
15720 if test "${enable_readline+set}" = set; then
15721   enableval=$enable_readline; if test x$enableval = xno; then
15722     support_readline=no
15723   fi
15724 fi
15725
15726
15727 got_readline="no"
15728 READLINE_SRC=
15729 if test x$support_readline = xyes; then
15730
15731 # Check whether --with-readline was given.
15732 if test "${with_readline+set}" = set; then
15733   withval=$with_readline;
15734         case "$with_readline" in
15735         no) : ;;
15736         yes|*)
15737           if test -f ${with_readline}/readline.h; then
15738              CONS_INC="-I${with_readline}"
15739              CONS_LDFLAGS="-L$with_readline"
15740           elif test -f ${with_readline}/include/readline/readline.h; then
15741              CONS_INC="-I${with_readline}/include/readline"
15742              CONS_LDFLAGS="-L${with_readline}/lib"
15743              with_readline="${with_readline}/include/readline"
15744           else
15745              with_readline="/usr/include/readline"
15746           fi
15747           as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
15748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15749   { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
15750 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
15751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15752   echo $ECHO_N "(cached) $ECHO_C" >&6
15753 fi
15754 ac_res=`eval echo '${'$as_ac_Header'}'`
15755                { echo "$as_me:$LINENO: result: $ac_res" >&5
15756 echo "${ECHO_T}$ac_res" >&6; }
15757 else
15758   # Is the header compilable?
15759 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
15760 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
15761 cat >conftest.$ac_ext <<_ACEOF
15762 /* confdefs.h.  */
15763 _ACEOF
15764 cat confdefs.h >>conftest.$ac_ext
15765 cat >>conftest.$ac_ext <<_ACEOF
15766 /* end confdefs.h.  */
15767 $ac_includes_default
15768 #include <${with_readline}/readline.h>
15769 _ACEOF
15770 rm -f conftest.$ac_objext
15771 if { (ac_try="$ac_compile"
15772 case "(($ac_try" in
15773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15774   *) ac_try_echo=$ac_try;;
15775 esac
15776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15777   (eval "$ac_compile") 2>conftest.er1
15778   ac_status=$?
15779   grep -v '^ *+' conftest.er1 >conftest.err
15780   rm -f conftest.er1
15781   cat conftest.err >&5
15782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783   (exit $ac_status); } &&
15784          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15785   { (case "(($ac_try" in
15786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15787   *) ac_try_echo=$ac_try;;
15788 esac
15789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15790   (eval "$ac_try") 2>&5
15791   ac_status=$?
15792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793   (exit $ac_status); }; } &&
15794          { ac_try='test -s conftest.$ac_objext'
15795   { (case "(($ac_try" in
15796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15797   *) ac_try_echo=$ac_try;;
15798 esac
15799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15800   (eval "$ac_try") 2>&5
15801   ac_status=$?
15802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15803   (exit $ac_status); }; }; then
15804   ac_header_compiler=yes
15805 else
15806   echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15808
15809         ac_header_compiler=no
15810 fi
15811
15812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15814 echo "${ECHO_T}$ac_header_compiler" >&6; }
15815
15816 # Is the header present?
15817 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
15818 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
15819 cat >conftest.$ac_ext <<_ACEOF
15820 /* confdefs.h.  */
15821 _ACEOF
15822 cat confdefs.h >>conftest.$ac_ext
15823 cat >>conftest.$ac_ext <<_ACEOF
15824 /* end confdefs.h.  */
15825 #include <${with_readline}/readline.h>
15826 _ACEOF
15827 if { (ac_try="$ac_cpp conftest.$ac_ext"
15828 case "(($ac_try" in
15829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15830   *) ac_try_echo=$ac_try;;
15831 esac
15832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15833   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15834   ac_status=$?
15835   grep -v '^ *+' conftest.er1 >conftest.err
15836   rm -f conftest.er1
15837   cat conftest.err >&5
15838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839   (exit $ac_status); } >/dev/null; then
15840   if test -s conftest.err; then
15841     ac_cpp_err=$ac_c_preproc_warn_flag
15842     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15843   else
15844     ac_cpp_err=
15845   fi
15846 else
15847   ac_cpp_err=yes
15848 fi
15849 if test -z "$ac_cpp_err"; then
15850   ac_header_preproc=yes
15851 else
15852   echo "$as_me: failed program was:" >&5
15853 sed 's/^/| /' conftest.$ac_ext >&5
15854
15855   ac_header_preproc=no
15856 fi
15857
15858 rm -f conftest.err conftest.$ac_ext
15859 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15860 echo "${ECHO_T}$ac_header_preproc" >&6; }
15861
15862 # So?  What about this header?
15863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15864   yes:no: )
15865     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
15866 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15867     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
15868 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
15869     ac_header_preproc=yes
15870     ;;
15871   no:yes:* )
15872     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
15873 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
15874     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&5
15875 echo "$as_me: WARNING: ${with_readline}/readline.h:     check for missing prerequisite headers?" >&2;}
15876     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
15877 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
15878     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
15879 echo "$as_me: WARNING: ${with_readline}/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15880     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
15881 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
15882     { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
15883 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
15884
15885     ;;
15886 esac
15887 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
15888 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
15889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15890   echo $ECHO_N "(cached) $ECHO_C" >&6
15891 else
15892   eval "$as_ac_Header=\$ac_header_preproc"
15893 fi
15894 ac_res=`eval echo '${'$as_ac_Header'}'`
15895                { echo "$as_me:$LINENO: result: $ac_res" >&5
15896 echo "${ECHO_T}$ac_res" >&6; }
15897
15898 fi
15899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15900    cat >>confdefs.h <<\_ACEOF
15901 #define HAVE_READLINE 1
15902 _ACEOF
15903
15904                CONS_LIBS="-lreadline -lhistory -ltermcap"
15905                got_readline="yes"
15906
15907 else
15908    echo " "
15909                echo "readline.h not found. readline turned off ..."
15910                echo " "
15911
15912
15913 fi
15914
15915
15916           ;;
15917         esac
15918
15919 else
15920
15921        # check for standard readline library
15922        if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
15923   { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
15924 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
15925 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
15926   echo $ECHO_N "(cached) $ECHO_C" >&6
15927 fi
15928 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
15929 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
15930 else
15931   # Is the header compilable?
15932 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
15933 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
15934 cat >conftest.$ac_ext <<_ACEOF
15935 /* confdefs.h.  */
15936 _ACEOF
15937 cat confdefs.h >>conftest.$ac_ext
15938 cat >>conftest.$ac_ext <<_ACEOF
15939 /* end confdefs.h.  */
15940 $ac_includes_default
15941 #include </usr/include/readline/readline.h>
15942 _ACEOF
15943 rm -f conftest.$ac_objext
15944 if { (ac_try="$ac_compile"
15945 case "(($ac_try" in
15946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15947   *) ac_try_echo=$ac_try;;
15948 esac
15949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15950   (eval "$ac_compile") 2>conftest.er1
15951   ac_status=$?
15952   grep -v '^ *+' conftest.er1 >conftest.err
15953   rm -f conftest.er1
15954   cat conftest.err >&5
15955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956   (exit $ac_status); } &&
15957          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15958   { (case "(($ac_try" in
15959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15960   *) ac_try_echo=$ac_try;;
15961 esac
15962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15963   (eval "$ac_try") 2>&5
15964   ac_status=$?
15965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15966   (exit $ac_status); }; } &&
15967          { ac_try='test -s conftest.$ac_objext'
15968   { (case "(($ac_try" in
15969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15970   *) ac_try_echo=$ac_try;;
15971 esac
15972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15973   (eval "$ac_try") 2>&5
15974   ac_status=$?
15975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976   (exit $ac_status); }; }; then
15977   ac_header_compiler=yes
15978 else
15979   echo "$as_me: failed program was:" >&5
15980 sed 's/^/| /' conftest.$ac_ext >&5
15981
15982         ac_header_compiler=no
15983 fi
15984
15985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15986 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15987 echo "${ECHO_T}$ac_header_compiler" >&6; }
15988
15989 # Is the header present?
15990 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
15991 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
15992 cat >conftest.$ac_ext <<_ACEOF
15993 /* confdefs.h.  */
15994 _ACEOF
15995 cat confdefs.h >>conftest.$ac_ext
15996 cat >>conftest.$ac_ext <<_ACEOF
15997 /* end confdefs.h.  */
15998 #include </usr/include/readline/readline.h>
15999 _ACEOF
16000 if { (ac_try="$ac_cpp conftest.$ac_ext"
16001 case "(($ac_try" in
16002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16003   *) ac_try_echo=$ac_try;;
16004 esac
16005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16006   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16007   ac_status=$?
16008   grep -v '^ *+' conftest.er1 >conftest.err
16009   rm -f conftest.er1
16010   cat conftest.err >&5
16011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012   (exit $ac_status); } >/dev/null; then
16013   if test -s conftest.err; then
16014     ac_cpp_err=$ac_c_preproc_warn_flag
16015     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16016   else
16017     ac_cpp_err=
16018   fi
16019 else
16020   ac_cpp_err=yes
16021 fi
16022 if test -z "$ac_cpp_err"; then
16023   ac_header_preproc=yes
16024 else
16025   echo "$as_me: failed program was:" >&5
16026 sed 's/^/| /' conftest.$ac_ext >&5
16027
16028   ac_header_preproc=no
16029 fi
16030
16031 rm -f conftest.err conftest.$ac_ext
16032 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16033 echo "${ECHO_T}$ac_header_preproc" >&6; }
16034
16035 # So?  What about this header?
16036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16037   yes:no: )
16038     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
16039 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16040     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
16041 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
16042     ac_header_preproc=yes
16043     ;;
16044   no:yes:* )
16045     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
16046 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
16047     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&5
16048 echo "$as_me: WARNING: /usr/include/readline/readline.h:     check for missing prerequisite headers?" >&2;}
16049     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
16050 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
16051     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
16052 echo "$as_me: WARNING: /usr/include/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16053     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
16054 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
16055     { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
16056 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
16057
16058     ;;
16059 esac
16060 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
16061 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
16062 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
16063   echo $ECHO_N "(cached) $ECHO_C" >&6
16064 else
16065   ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
16066 fi
16067 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
16068 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
16069
16070 fi
16071 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
16072    cat >>confdefs.h <<\_ACEOF
16073 #define HAVE_READLINE 1
16074 _ACEOF
16075
16076            got_readline="yes"
16077            CONS_INC="-I/usr/include/readline"
16078            CONS_LIBS="-lreadline -ltermcap"
16079
16080 else
16081
16082            # Did not find standard library, so try Bacula's default
16083             as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
16084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16085   { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
16086 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
16087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16088   echo $ECHO_N "(cached) $ECHO_C" >&6
16089 fi
16090 ac_res=`eval echo '${'$as_ac_Header'}'`
16091                { echo "$as_me:$LINENO: result: $ac_res" >&5
16092 echo "${ECHO_T}$ac_res" >&6; }
16093 else
16094   # Is the header compilable?
16095 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
16096 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
16097 cat >conftest.$ac_ext <<_ACEOF
16098 /* confdefs.h.  */
16099 _ACEOF
16100 cat confdefs.h >>conftest.$ac_ext
16101 cat >>conftest.$ac_ext <<_ACEOF
16102 /* end confdefs.h.  */
16103 $ac_includes_default
16104 #include <${TOP_DIR}/depkgs/readline/readline.h>
16105 _ACEOF
16106 rm -f conftest.$ac_objext
16107 if { (ac_try="$ac_compile"
16108 case "(($ac_try" in
16109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16110   *) ac_try_echo=$ac_try;;
16111 esac
16112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16113   (eval "$ac_compile") 2>conftest.er1
16114   ac_status=$?
16115   grep -v '^ *+' conftest.er1 >conftest.err
16116   rm -f conftest.er1
16117   cat conftest.err >&5
16118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16119   (exit $ac_status); } &&
16120          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16121   { (case "(($ac_try" in
16122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16123   *) ac_try_echo=$ac_try;;
16124 esac
16125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16126   (eval "$ac_try") 2>&5
16127   ac_status=$?
16128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129   (exit $ac_status); }; } &&
16130          { ac_try='test -s conftest.$ac_objext'
16131   { (case "(($ac_try" in
16132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16133   *) ac_try_echo=$ac_try;;
16134 esac
16135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16136   (eval "$ac_try") 2>&5
16137   ac_status=$?
16138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139   (exit $ac_status); }; }; then
16140   ac_header_compiler=yes
16141 else
16142   echo "$as_me: failed program was:" >&5
16143 sed 's/^/| /' conftest.$ac_ext >&5
16144
16145         ac_header_compiler=no
16146 fi
16147
16148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16149 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16150 echo "${ECHO_T}$ac_header_compiler" >&6; }
16151
16152 # Is the header present?
16153 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
16154 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
16155 cat >conftest.$ac_ext <<_ACEOF
16156 /* confdefs.h.  */
16157 _ACEOF
16158 cat confdefs.h >>conftest.$ac_ext
16159 cat >>conftest.$ac_ext <<_ACEOF
16160 /* end confdefs.h.  */
16161 #include <${TOP_DIR}/depkgs/readline/readline.h>
16162 _ACEOF
16163 if { (ac_try="$ac_cpp conftest.$ac_ext"
16164 case "(($ac_try" in
16165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16166   *) ac_try_echo=$ac_try;;
16167 esac
16168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16169   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16170   ac_status=$?
16171   grep -v '^ *+' conftest.er1 >conftest.err
16172   rm -f conftest.er1
16173   cat conftest.err >&5
16174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175   (exit $ac_status); } >/dev/null; then
16176   if test -s conftest.err; then
16177     ac_cpp_err=$ac_c_preproc_warn_flag
16178     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16179   else
16180     ac_cpp_err=
16181   fi
16182 else
16183   ac_cpp_err=yes
16184 fi
16185 if test -z "$ac_cpp_err"; then
16186   ac_header_preproc=yes
16187 else
16188   echo "$as_me: failed program was:" >&5
16189 sed 's/^/| /' conftest.$ac_ext >&5
16190
16191   ac_header_preproc=no
16192 fi
16193
16194 rm -f conftest.err conftest.$ac_ext
16195 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16196 echo "${ECHO_T}$ac_header_preproc" >&6; }
16197
16198 # So?  What about this header?
16199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16200   yes:no: )
16201     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
16202 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16203     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
16204 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
16205     ac_header_preproc=yes
16206     ;;
16207   no:yes:* )
16208     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
16209 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
16210     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&5
16211 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     check for missing prerequisite headers?" >&2;}
16212     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
16213 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
16214     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&5
16215 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h:     section \"Present But Cannot Be Compiled\"" >&2;}
16216     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
16217 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
16218     { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
16219 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
16220
16221     ;;
16222 esac
16223 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
16224 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
16225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16226   echo $ECHO_N "(cached) $ECHO_C" >&6
16227 else
16228   eval "$as_ac_Header=\$ac_header_preproc"
16229 fi
16230 ac_res=`eval echo '${'$as_ac_Header'}'`
16231                { echo "$as_me:$LINENO: result: $ac_res" >&5
16232 echo "${ECHO_T}$ac_res" >&6; }
16233
16234 fi
16235 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16236    cat >>confdefs.h <<\_ACEOF
16237 #define HAVE_READLINE 1
16238 _ACEOF
16239
16240                  got_readline="yes"
16241                  CONS_INC="-I${TOP_DIR}/depkgs/readline"
16242                  CONS_LIBS="-lreadline -lhistory -ltermcap"
16243                  CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
16244                  PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
16245
16246 else
16247    echo " "
16248                 echo "readline.h not found. readline turned off ..."
16249                 echo " "
16250
16251
16252 fi
16253
16254
16255
16256
16257 fi
16258
16259
16260
16261
16262 fi
16263
16264 fi
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275 # Minimal stuff for readline Makefile configuration
16276 MAKE_SHELL=/bin/sh
16277
16278 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
16279 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
16280 if test "${ac_cv_header_stat_broken+set}" = set; then
16281   echo $ECHO_N "(cached) $ECHO_C" >&6
16282 else
16283   cat >conftest.$ac_ext <<_ACEOF
16284 /* confdefs.h.  */
16285 _ACEOF
16286 cat confdefs.h >>conftest.$ac_ext
16287 cat >>conftest.$ac_ext <<_ACEOF
16288 /* end confdefs.h.  */
16289 #include <sys/types.h>
16290 #include <sys/stat.h>
16291
16292 #if defined S_ISBLK && defined S_IFDIR
16293 # if S_ISBLK (S_IFDIR)
16294 You lose.
16295 # endif
16296 #endif
16297
16298 #if defined S_ISBLK && defined S_IFCHR
16299 # if S_ISBLK (S_IFCHR)
16300 You lose.
16301 # endif
16302 #endif
16303
16304 #if defined S_ISLNK && defined S_IFREG
16305 # if S_ISLNK (S_IFREG)
16306 You lose.
16307 # endif
16308 #endif
16309
16310 #if defined S_ISSOCK && defined S_IFREG
16311 # if S_ISSOCK (S_IFREG)
16312 You lose.
16313 # endif
16314 #endif
16315
16316 _ACEOF
16317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16318   $EGREP "You lose" >/dev/null 2>&1; then
16319   ac_cv_header_stat_broken=yes
16320 else
16321   ac_cv_header_stat_broken=no
16322 fi
16323 rm -f conftest*
16324
16325 fi
16326 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
16327 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
16328 if test $ac_cv_header_stat_broken = yes; then
16329
16330 cat >>confdefs.h <<\_ACEOF
16331 #define STAT_MACROS_BROKEN 1
16332 _ACEOF
16333
16334 fi
16335
16336
16337
16338
16339
16340
16341 ac_header_dirent=no
16342 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16343   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16344 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
16345 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
16346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16347   echo $ECHO_N "(cached) $ECHO_C" >&6
16348 else
16349   cat >conftest.$ac_ext <<_ACEOF
16350 /* confdefs.h.  */
16351 _ACEOF
16352 cat confdefs.h >>conftest.$ac_ext
16353 cat >>conftest.$ac_ext <<_ACEOF
16354 /* end confdefs.h.  */
16355 #include <sys/types.h>
16356 #include <$ac_hdr>
16357
16358 int
16359 main ()
16360 {
16361 if ((DIR *) 0)
16362 return 0;
16363   ;
16364   return 0;
16365 }
16366 _ACEOF
16367 rm -f conftest.$ac_objext
16368 if { (ac_try="$ac_compile"
16369 case "(($ac_try" in
16370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16371   *) ac_try_echo=$ac_try;;
16372 esac
16373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16374   (eval "$ac_compile") 2>conftest.er1
16375   ac_status=$?
16376   grep -v '^ *+' conftest.er1 >conftest.err
16377   rm -f conftest.er1
16378   cat conftest.err >&5
16379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380   (exit $ac_status); } &&
16381          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16382   { (case "(($ac_try" in
16383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16384   *) ac_try_echo=$ac_try;;
16385 esac
16386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16387   (eval "$ac_try") 2>&5
16388   ac_status=$?
16389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390   (exit $ac_status); }; } &&
16391          { ac_try='test -s conftest.$ac_objext'
16392   { (case "(($ac_try" in
16393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16394   *) ac_try_echo=$ac_try;;
16395 esac
16396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16397   (eval "$ac_try") 2>&5
16398   ac_status=$?
16399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16400   (exit $ac_status); }; }; then
16401   eval "$as_ac_Header=yes"
16402 else
16403   echo "$as_me: failed program was:" >&5
16404 sed 's/^/| /' conftest.$ac_ext >&5
16405
16406         eval "$as_ac_Header=no"
16407 fi
16408
16409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16410 fi
16411 ac_res=`eval echo '${'$as_ac_Header'}'`
16412                { echo "$as_me:$LINENO: result: $ac_res" >&5
16413 echo "${ECHO_T}$ac_res" >&6; }
16414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16415   cat >>confdefs.h <<_ACEOF
16416 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16417 _ACEOF
16418
16419 ac_header_dirent=$ac_hdr; break
16420 fi
16421
16422 done
16423 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16424 if test $ac_header_dirent = dirent.h; then
16425   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16426 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16427 if test "${ac_cv_search_opendir+set}" = set; then
16428   echo $ECHO_N "(cached) $ECHO_C" >&6
16429 else
16430   ac_func_search_save_LIBS=$LIBS
16431 cat >conftest.$ac_ext <<_ACEOF
16432 /* confdefs.h.  */
16433 _ACEOF
16434 cat confdefs.h >>conftest.$ac_ext
16435 cat >>conftest.$ac_ext <<_ACEOF
16436 /* end confdefs.h.  */
16437
16438 /* Override any GCC internal prototype to avoid an error.
16439    Use char because int might match the return type of a GCC
16440    builtin and then its argument prototype would still apply.  */
16441 #ifdef __cplusplus
16442 extern "C"
16443 #endif
16444 char opendir ();
16445 int
16446 main ()
16447 {
16448 return opendir ();
16449   ;
16450   return 0;
16451 }
16452 _ACEOF
16453 for ac_lib in '' dir; do
16454   if test -z "$ac_lib"; then
16455     ac_res="none required"
16456   else
16457     ac_res=-l$ac_lib
16458     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16459   fi
16460   rm -f conftest.$ac_objext conftest$ac_exeext
16461 if { (ac_try="$ac_link"
16462 case "(($ac_try" in
16463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16464   *) ac_try_echo=$ac_try;;
16465 esac
16466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16467   (eval "$ac_link") 2>conftest.er1
16468   ac_status=$?
16469   grep -v '^ *+' conftest.er1 >conftest.err
16470   rm -f conftest.er1
16471   cat conftest.err >&5
16472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473   (exit $ac_status); } &&
16474          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16475   { (case "(($ac_try" in
16476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16477   *) ac_try_echo=$ac_try;;
16478 esac
16479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16480   (eval "$ac_try") 2>&5
16481   ac_status=$?
16482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483   (exit $ac_status); }; } &&
16484          { ac_try='test -s conftest$ac_exeext'
16485   { (case "(($ac_try" in
16486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16487   *) ac_try_echo=$ac_try;;
16488 esac
16489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16490   (eval "$ac_try") 2>&5
16491   ac_status=$?
16492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493   (exit $ac_status); }; }; then
16494   ac_cv_search_opendir=$ac_res
16495 else
16496   echo "$as_me: failed program was:" >&5
16497 sed 's/^/| /' conftest.$ac_ext >&5
16498
16499
16500 fi
16501
16502 rm -f core conftest.err conftest.$ac_objext \
16503       conftest$ac_exeext
16504   if test "${ac_cv_search_opendir+set}" = set; then
16505   break
16506 fi
16507 done
16508 if test "${ac_cv_search_opendir+set}" = set; then
16509   :
16510 else
16511   ac_cv_search_opendir=no
16512 fi
16513 rm conftest.$ac_ext
16514 LIBS=$ac_func_search_save_LIBS
16515 fi
16516 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16517 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16518 ac_res=$ac_cv_search_opendir
16519 if test "$ac_res" != no; then
16520   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16521
16522 fi
16523
16524 else
16525   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
16526 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
16527 if test "${ac_cv_search_opendir+set}" = set; then
16528   echo $ECHO_N "(cached) $ECHO_C" >&6
16529 else
16530   ac_func_search_save_LIBS=$LIBS
16531 cat >conftest.$ac_ext <<_ACEOF
16532 /* confdefs.h.  */
16533 _ACEOF
16534 cat confdefs.h >>conftest.$ac_ext
16535 cat >>conftest.$ac_ext <<_ACEOF
16536 /* end confdefs.h.  */
16537
16538 /* Override any GCC internal prototype to avoid an error.
16539    Use char because int might match the return type of a GCC
16540    builtin and then its argument prototype would still apply.  */
16541 #ifdef __cplusplus
16542 extern "C"
16543 #endif
16544 char opendir ();
16545 int
16546 main ()
16547 {
16548 return opendir ();
16549   ;
16550   return 0;
16551 }
16552 _ACEOF
16553 for ac_lib in '' x; do
16554   if test -z "$ac_lib"; then
16555     ac_res="none required"
16556   else
16557     ac_res=-l$ac_lib
16558     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16559   fi
16560   rm -f conftest.$ac_objext conftest$ac_exeext
16561 if { (ac_try="$ac_link"
16562 case "(($ac_try" in
16563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564   *) ac_try_echo=$ac_try;;
16565 esac
16566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567   (eval "$ac_link") 2>conftest.er1
16568   ac_status=$?
16569   grep -v '^ *+' conftest.er1 >conftest.err
16570   rm -f conftest.er1
16571   cat conftest.err >&5
16572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573   (exit $ac_status); } &&
16574          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16575   { (case "(($ac_try" in
16576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16577   *) ac_try_echo=$ac_try;;
16578 esac
16579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16580   (eval "$ac_try") 2>&5
16581   ac_status=$?
16582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16583   (exit $ac_status); }; } &&
16584          { ac_try='test -s conftest$ac_exeext'
16585   { (case "(($ac_try" in
16586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16587   *) ac_try_echo=$ac_try;;
16588 esac
16589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16590   (eval "$ac_try") 2>&5
16591   ac_status=$?
16592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593   (exit $ac_status); }; }; then
16594   ac_cv_search_opendir=$ac_res
16595 else
16596   echo "$as_me: failed program was:" >&5
16597 sed 's/^/| /' conftest.$ac_ext >&5
16598
16599
16600 fi
16601
16602 rm -f core conftest.err conftest.$ac_objext \
16603       conftest$ac_exeext
16604   if test "${ac_cv_search_opendir+set}" = set; then
16605   break
16606 fi
16607 done
16608 if test "${ac_cv_search_opendir+set}" = set; then
16609   :
16610 else
16611   ac_cv_search_opendir=no
16612 fi
16613 rm conftest.$ac_ext
16614 LIBS=$ac_func_search_save_LIBS
16615 fi
16616 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
16617 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
16618 ac_res=$ac_cv_search_opendir
16619 if test "$ac_res" != no; then
16620   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16621
16622 fi
16623
16624 fi
16625
16626
16627
16628
16629
16630
16631
16632
16633 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
16634 do
16635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16639   echo $ECHO_N "(cached) $ECHO_C" >&6
16640 else
16641   cat >conftest.$ac_ext <<_ACEOF
16642 /* confdefs.h.  */
16643 _ACEOF
16644 cat confdefs.h >>conftest.$ac_ext
16645 cat >>conftest.$ac_ext <<_ACEOF
16646 /* end confdefs.h.  */
16647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16648    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16649 #define $ac_func innocuous_$ac_func
16650
16651 /* System header to define __stub macros and hopefully few prototypes,
16652     which can conflict with char $ac_func (); below.
16653     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16654     <limits.h> exists even on freestanding compilers.  */
16655
16656 #ifdef __STDC__
16657 # include <limits.h>
16658 #else
16659 # include <assert.h>
16660 #endif
16661
16662 #undef $ac_func
16663
16664 /* Override any GCC internal prototype to avoid an error.
16665    Use char because int might match the return type of a GCC
16666    builtin and then its argument prototype would still apply.  */
16667 #ifdef __cplusplus
16668 extern "C"
16669 #endif
16670 char $ac_func ();
16671 /* The GNU C library defines this for functions which it implements
16672     to always fail with ENOSYS.  Some functions are actually named
16673     something starting with __ and the normal name is an alias.  */
16674 #if defined __stub_$ac_func || defined __stub___$ac_func
16675 choke me
16676 #endif
16677
16678 int
16679 main ()
16680 {
16681 return $ac_func ();
16682   ;
16683   return 0;
16684 }
16685 _ACEOF
16686 rm -f conftest.$ac_objext conftest$ac_exeext
16687 if { (ac_try="$ac_link"
16688 case "(($ac_try" in
16689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16690   *) ac_try_echo=$ac_try;;
16691 esac
16692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16693   (eval "$ac_link") 2>conftest.er1
16694   ac_status=$?
16695   grep -v '^ *+' conftest.er1 >conftest.err
16696   rm -f conftest.er1
16697   cat conftest.err >&5
16698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16699   (exit $ac_status); } &&
16700          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16701   { (case "(($ac_try" in
16702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16703   *) ac_try_echo=$ac_try;;
16704 esac
16705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16706   (eval "$ac_try") 2>&5
16707   ac_status=$?
16708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709   (exit $ac_status); }; } &&
16710          { ac_try='test -s conftest$ac_exeext'
16711   { (case "(($ac_try" in
16712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16713   *) ac_try_echo=$ac_try;;
16714 esac
16715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16716   (eval "$ac_try") 2>&5
16717   ac_status=$?
16718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719   (exit $ac_status); }; }; then
16720   eval "$as_ac_var=yes"
16721 else
16722   echo "$as_me: failed program was:" >&5
16723 sed 's/^/| /' conftest.$ac_ext >&5
16724
16725         eval "$as_ac_var=no"
16726 fi
16727
16728 rm -f core conftest.err conftest.$ac_objext \
16729       conftest$ac_exeext conftest.$ac_ext
16730 fi
16731 ac_res=`eval echo '${'$as_ac_var'}'`
16732                { echo "$as_me:$LINENO: result: $ac_res" >&5
16733 echo "${ECHO_T}$ac_res" >&6; }
16734 if test `eval echo '${'$as_ac_var'}'` = yes; then
16735   cat >>confdefs.h <<_ACEOF
16736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16737 _ACEOF
16738
16739 fi
16740 done
16741
16742
16743
16744 for ac_func in nanosleep nl_langinfo
16745 do
16746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16747 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16749 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16750   echo $ECHO_N "(cached) $ECHO_C" >&6
16751 else
16752   cat >conftest.$ac_ext <<_ACEOF
16753 /* confdefs.h.  */
16754 _ACEOF
16755 cat confdefs.h >>conftest.$ac_ext
16756 cat >>conftest.$ac_ext <<_ACEOF
16757 /* end confdefs.h.  */
16758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16759    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16760 #define $ac_func innocuous_$ac_func
16761
16762 /* System header to define __stub macros and hopefully few prototypes,
16763     which can conflict with char $ac_func (); below.
16764     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16765     <limits.h> exists even on freestanding compilers.  */
16766
16767 #ifdef __STDC__
16768 # include <limits.h>
16769 #else
16770 # include <assert.h>
16771 #endif
16772
16773 #undef $ac_func
16774
16775 /* Override any GCC internal prototype to avoid an error.
16776    Use char because int might match the return type of a GCC
16777    builtin and then its argument prototype would still apply.  */
16778 #ifdef __cplusplus
16779 extern "C"
16780 #endif
16781 char $ac_func ();
16782 /* The GNU C library defines this for functions which it implements
16783     to always fail with ENOSYS.  Some functions are actually named
16784     something starting with __ and the normal name is an alias.  */
16785 #if defined __stub_$ac_func || defined __stub___$ac_func
16786 choke me
16787 #endif
16788
16789 int
16790 main ()
16791 {
16792 return $ac_func ();
16793   ;
16794   return 0;
16795 }
16796 _ACEOF
16797 rm -f conftest.$ac_objext conftest$ac_exeext
16798 if { (ac_try="$ac_link"
16799 case "(($ac_try" in
16800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16801   *) ac_try_echo=$ac_try;;
16802 esac
16803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16804   (eval "$ac_link") 2>conftest.er1
16805   ac_status=$?
16806   grep -v '^ *+' conftest.er1 >conftest.err
16807   rm -f conftest.er1
16808   cat conftest.err >&5
16809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810   (exit $ac_status); } &&
16811          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16812   { (case "(($ac_try" in
16813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814   *) ac_try_echo=$ac_try;;
16815 esac
16816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16817   (eval "$ac_try") 2>&5
16818   ac_status=$?
16819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820   (exit $ac_status); }; } &&
16821          { ac_try='test -s conftest$ac_exeext'
16822   { (case "(($ac_try" in
16823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16824   *) ac_try_echo=$ac_try;;
16825 esac
16826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16827   (eval "$ac_try") 2>&5
16828   ac_status=$?
16829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830   (exit $ac_status); }; }; then
16831   eval "$as_ac_var=yes"
16832 else
16833   echo "$as_me: failed program was:" >&5
16834 sed 's/^/| /' conftest.$ac_ext >&5
16835
16836         eval "$as_ac_var=no"
16837 fi
16838
16839 rm -f core conftest.err conftest.$ac_objext \
16840       conftest$ac_exeext conftest.$ac_ext
16841 fi
16842 ac_res=`eval echo '${'$as_ac_var'}'`
16843                { echo "$as_me:$LINENO: result: $ac_res" >&5
16844 echo "${ECHO_T}$ac_res" >&6; }
16845 if test `eval echo '${'$as_ac_var'}'` = yes; then
16846   cat >>confdefs.h <<_ACEOF
16847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16848 _ACEOF
16849
16850 fi
16851 done
16852
16853
16854 for ac_header in varargs.h
16855 do
16856 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16858   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16861   echo $ECHO_N "(cached) $ECHO_C" >&6
16862 fi
16863 ac_res=`eval echo '${'$as_ac_Header'}'`
16864                { echo "$as_me:$LINENO: result: $ac_res" >&5
16865 echo "${ECHO_T}$ac_res" >&6; }
16866 else
16867   # Is the header compilable?
16868 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16869 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16870 cat >conftest.$ac_ext <<_ACEOF
16871 /* confdefs.h.  */
16872 _ACEOF
16873 cat confdefs.h >>conftest.$ac_ext
16874 cat >>conftest.$ac_ext <<_ACEOF
16875 /* end confdefs.h.  */
16876 $ac_includes_default
16877 #include <$ac_header>
16878 _ACEOF
16879 rm -f conftest.$ac_objext
16880 if { (ac_try="$ac_compile"
16881 case "(($ac_try" in
16882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883   *) ac_try_echo=$ac_try;;
16884 esac
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886   (eval "$ac_compile") 2>conftest.er1
16887   ac_status=$?
16888   grep -v '^ *+' conftest.er1 >conftest.err
16889   rm -f conftest.er1
16890   cat conftest.err >&5
16891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892   (exit $ac_status); } &&
16893          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16894   { (case "(($ac_try" in
16895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896   *) ac_try_echo=$ac_try;;
16897 esac
16898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899   (eval "$ac_try") 2>&5
16900   ac_status=$?
16901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902   (exit $ac_status); }; } &&
16903          { ac_try='test -s conftest.$ac_objext'
16904   { (case "(($ac_try" in
16905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906   *) ac_try_echo=$ac_try;;
16907 esac
16908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909   (eval "$ac_try") 2>&5
16910   ac_status=$?
16911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912   (exit $ac_status); }; }; then
16913   ac_header_compiler=yes
16914 else
16915   echo "$as_me: failed program was:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16917
16918         ac_header_compiler=no
16919 fi
16920
16921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16922 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16923 echo "${ECHO_T}$ac_header_compiler" >&6; }
16924
16925 # Is the header present?
16926 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16927 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16928 cat >conftest.$ac_ext <<_ACEOF
16929 /* confdefs.h.  */
16930 _ACEOF
16931 cat confdefs.h >>conftest.$ac_ext
16932 cat >>conftest.$ac_ext <<_ACEOF
16933 /* end confdefs.h.  */
16934 #include <$ac_header>
16935 _ACEOF
16936 if { (ac_try="$ac_cpp conftest.$ac_ext"
16937 case "(($ac_try" in
16938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16939   *) ac_try_echo=$ac_try;;
16940 esac
16941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16942   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16943   ac_status=$?
16944   grep -v '^ *+' conftest.er1 >conftest.err
16945   rm -f conftest.er1
16946   cat conftest.err >&5
16947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16948   (exit $ac_status); } >/dev/null; then
16949   if test -s conftest.err; then
16950     ac_cpp_err=$ac_c_preproc_warn_flag
16951     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16952   else
16953     ac_cpp_err=
16954   fi
16955 else
16956   ac_cpp_err=yes
16957 fi
16958 if test -z "$ac_cpp_err"; then
16959   ac_header_preproc=yes
16960 else
16961   echo "$as_me: failed program was:" >&5
16962 sed 's/^/| /' conftest.$ac_ext >&5
16963
16964   ac_header_preproc=no
16965 fi
16966
16967 rm -f conftest.err conftest.$ac_ext
16968 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16969 echo "${ECHO_T}$ac_header_preproc" >&6; }
16970
16971 # So?  What about this header?
16972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16973   yes:no: )
16974     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16975 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16976     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16977 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16978     ac_header_preproc=yes
16979     ;;
16980   no:yes:* )
16981     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16982 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16983     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16984 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16985     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16986 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16987     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16988 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16989     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16990 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16991     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16992 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16993
16994     ;;
16995 esac
16996 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16999   echo $ECHO_N "(cached) $ECHO_C" >&6
17000 else
17001   eval "$as_ac_Header=\$ac_header_preproc"
17002 fi
17003 ac_res=`eval echo '${'$as_ac_Header'}'`
17004                { echo "$as_me:$LINENO: result: $ac_res" >&5
17005 echo "${ECHO_T}$ac_res" >&6; }
17006
17007 fi
17008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17009   cat >>confdefs.h <<_ACEOF
17010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17011 _ACEOF
17012
17013 fi
17014
17015 done
17016
17017
17018 # End of readline/conio stuff
17019 # -----------------------------------------------------------------------
17020
17021 # -----------------------------------------------------------------------
17022 #  Check for Python support
17023 #
17024 { echo "$as_me:$LINENO: checking for Python support" >&5
17025 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
17026
17027 # Check whether --with-python was given.
17028 if test "${with_python+set}" = set; then
17029   withval=$with_python;
17030   PYTHON_INCDIR=
17031   PYTHON_LIBS=
17032   if test "$withval" != "no"; then
17033      if test "$withval" = "yes"; then
17034         for python_root in /usr /usr/local /usr/sfw; do
17035           for ver in python2.2 python2.3 python2.4 python2.5; do
17036              if test -f $python_root/include/${ver}/Python.h; then
17037                 PYTHON_INCDIR=-I$python_root/include/${ver}
17038                 if test -d $python_root/lib64/${ver}/config; then
17039                    PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
17040                 else
17041                    PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
17042                 fi
17043                 break
17044              fi
17045           done
17046         done
17047         if test x$PYTHON_INCDIR = x; then
17048           if test -f $prefix/include/Python.h; then
17049              PYTHON_INCDIR=-I$prefix/include
17050              if test -d $prefix/lib64/config; then
17051                 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
17052              else
17053                 PYTHON_LIBS="-L$prefix/lib/config -lpython"
17054              fi
17055           else
17056            { echo "$as_me:$LINENO: result: no" >&5
17057 echo "${ECHO_T}no" >&6; }
17058            { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
17059 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
17060    { (exit 1); exit 1; }; }
17061           fi
17062         fi
17063      else
17064         if test -f $withval/Python.h; then
17065            PYTHON_INCDIR=-I$withval
17066            PYTHON_LIBS="-L$withval/config -lpython"
17067         elif test -f $withval/include/Python.h; then
17068            PYTHON_INCDIR=-I$withval/include
17069            if test -d $withval/lib64/config; then
17070               PYTHON_LIBS="-L$withval/lib64/config -lpython"
17071            else
17072               PYTHON_LIBS="-L$withval/lib/config -lpython"
17073            fi
17074         elif test -f $withval/include/python/Python.h; then
17075            PYTHON_INCDIR=-I$withval/include/python
17076            if test -d $withval/lib64/python/config; then
17077               PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
17078            else
17079               PYTHON_LIBS="-L$withval/lib/python/config -lpython"
17080            fi
17081         else
17082            { echo "$as_me:$LINENO: result: no" >&5
17083 echo "${ECHO_T}no" >&6; }
17084            { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
17085 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
17086    { (exit 1); exit 1; }; }
17087         fi
17088      fi
17089      cat >>confdefs.h <<\_ACEOF
17090 #define HAVE_PYTHON 1
17091 _ACEOF
17092
17093      { echo "$as_me:$LINENO: result: yes" >&5
17094 echo "${ECHO_T}yes" >&6; }
17095      support_python=yes
17096      { echo "$as_me:$LINENO: checking for more Python libs" >&5
17097 echo "$as_me: checking for more Python libs" >&6;}
17098      saved_LIBS="$LIBS"; LIBS=
17099      { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
17100 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
17101 if test "${ac_cv_search_shm_open+set}" = set; then
17102   echo $ECHO_N "(cached) $ECHO_C" >&6
17103 else
17104   ac_func_search_save_LIBS=$LIBS
17105 cat >conftest.$ac_ext <<_ACEOF
17106 /* confdefs.h.  */
17107 _ACEOF
17108 cat confdefs.h >>conftest.$ac_ext
17109 cat >>conftest.$ac_ext <<_ACEOF
17110 /* end confdefs.h.  */
17111
17112 /* Override any GCC internal prototype to avoid an error.
17113    Use char because int might match the return type of a GCC
17114    builtin and then its argument prototype would still apply.  */
17115 #ifdef __cplusplus
17116 extern "C"
17117 #endif
17118 char shm_open ();
17119 int
17120 main ()
17121 {
17122 return shm_open ();
17123   ;
17124   return 0;
17125 }
17126 _ACEOF
17127 for ac_lib in '' rt; do
17128   if test -z "$ac_lib"; then
17129     ac_res="none required"
17130   else
17131     ac_res=-l$ac_lib
17132     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17133   fi
17134   rm -f conftest.$ac_objext conftest$ac_exeext
17135 if { (ac_try="$ac_link"
17136 case "(($ac_try" in
17137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138   *) ac_try_echo=$ac_try;;
17139 esac
17140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17141   (eval "$ac_link") 2>conftest.er1
17142   ac_status=$?
17143   grep -v '^ *+' conftest.er1 >conftest.err
17144   rm -f conftest.er1
17145   cat conftest.err >&5
17146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147   (exit $ac_status); } &&
17148          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17149   { (case "(($ac_try" in
17150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151   *) ac_try_echo=$ac_try;;
17152 esac
17153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17154   (eval "$ac_try") 2>&5
17155   ac_status=$?
17156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157   (exit $ac_status); }; } &&
17158          { ac_try='test -s conftest$ac_exeext'
17159   { (case "(($ac_try" in
17160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161   *) ac_try_echo=$ac_try;;
17162 esac
17163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164   (eval "$ac_try") 2>&5
17165   ac_status=$?
17166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167   (exit $ac_status); }; }; then
17168   ac_cv_search_shm_open=$ac_res
17169 else
17170   echo "$as_me: failed program was:" >&5
17171 sed 's/^/| /' conftest.$ac_ext >&5
17172
17173
17174 fi
17175
17176 rm -f core conftest.err conftest.$ac_objext \
17177       conftest$ac_exeext
17178   if test "${ac_cv_search_shm_open+set}" = set; then
17179   break
17180 fi
17181 done
17182 if test "${ac_cv_search_shm_open+set}" = set; then
17183   :
17184 else
17185   ac_cv_search_shm_open=no
17186 fi
17187 rm conftest.$ac_ext
17188 LIBS=$ac_func_search_save_LIBS
17189 fi
17190 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
17191 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
17192 ac_res=$ac_cv_search_shm_open
17193 if test "$ac_res" != no; then
17194   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17195
17196 fi
17197
17198
17199 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
17200 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
17201 if test "${ac_cv_lib_util_openpty+set}" = set; then
17202   echo $ECHO_N "(cached) $ECHO_C" >&6
17203 else
17204   ac_check_lib_save_LIBS=$LIBS
17205 LIBS="-lutil  $LIBS"
17206 cat >conftest.$ac_ext <<_ACEOF
17207 /* confdefs.h.  */
17208 _ACEOF
17209 cat confdefs.h >>conftest.$ac_ext
17210 cat >>conftest.$ac_ext <<_ACEOF
17211 /* end confdefs.h.  */
17212
17213 /* Override any GCC internal prototype to avoid an error.
17214    Use char because int might match the return type of a GCC
17215    builtin and then its argument prototype would still apply.  */
17216 #ifdef __cplusplus
17217 extern "C"
17218 #endif
17219 char openpty ();
17220 int
17221 main ()
17222 {
17223 return openpty ();
17224   ;
17225   return 0;
17226 }
17227 _ACEOF
17228 rm -f conftest.$ac_objext conftest$ac_exeext
17229 if { (ac_try="$ac_link"
17230 case "(($ac_try" in
17231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17232   *) ac_try_echo=$ac_try;;
17233 esac
17234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17235   (eval "$ac_link") 2>conftest.er1
17236   ac_status=$?
17237   grep -v '^ *+' conftest.er1 >conftest.err
17238   rm -f conftest.er1
17239   cat conftest.err >&5
17240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241   (exit $ac_status); } &&
17242          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17243   { (case "(($ac_try" in
17244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17245   *) ac_try_echo=$ac_try;;
17246 esac
17247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17248   (eval "$ac_try") 2>&5
17249   ac_status=$?
17250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251   (exit $ac_status); }; } &&
17252          { ac_try='test -s conftest$ac_exeext'
17253   { (case "(($ac_try" in
17254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17255   *) ac_try_echo=$ac_try;;
17256 esac
17257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17258   (eval "$ac_try") 2>&5
17259   ac_status=$?
17260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261   (exit $ac_status); }; }; then
17262   ac_cv_lib_util_openpty=yes
17263 else
17264   echo "$as_me: failed program was:" >&5
17265 sed 's/^/| /' conftest.$ac_ext >&5
17266
17267         ac_cv_lib_util_openpty=no
17268 fi
17269
17270 rm -f core conftest.err conftest.$ac_objext \
17271       conftest$ac_exeext conftest.$ac_ext
17272 LIBS=$ac_check_lib_save_LIBS
17273 fi
17274 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
17275 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
17276 if test $ac_cv_lib_util_openpty = yes; then
17277   cat >>confdefs.h <<_ACEOF
17278 #define HAVE_LIBUTIL 1
17279 _ACEOF
17280
17281   LIBS="-lutil $LIBS"
17282
17283 fi
17284
17285      PYTHON_LIBS="$PYTHON_LIBS $LIBS"
17286      LIBS="$saved_LIBS"
17287   else
17288      { echo "$as_me:$LINENO: result: no" >&5
17289 echo "${ECHO_T}no" >&6; }
17290   fi
17291
17292 else
17293
17294   { echo "$as_me:$LINENO: result: no" >&5
17295 echo "${ECHO_T}no" >&6; }
17296
17297 fi
17298
17299
17300
17301
17302 #
17303 # Find where sockets are (especially for Solaris)
17304 # Do this before the TCP Wrappers test since tcp wrappers
17305 # uses the socket library and some linkers are stupid.
17306 #
17307 { echo "$as_me:$LINENO: checking for socket" >&5
17308 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
17309 if test "${ac_cv_func_socket+set}" = set; then
17310   echo $ECHO_N "(cached) $ECHO_C" >&6
17311 else
17312   cat >conftest.$ac_ext <<_ACEOF
17313 /* confdefs.h.  */
17314 _ACEOF
17315 cat confdefs.h >>conftest.$ac_ext
17316 cat >>conftest.$ac_ext <<_ACEOF
17317 /* end confdefs.h.  */
17318 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
17319    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17320 #define socket innocuous_socket
17321
17322 /* System header to define __stub macros and hopefully few prototypes,
17323     which can conflict with char socket (); below.
17324     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17325     <limits.h> exists even on freestanding compilers.  */
17326
17327 #ifdef __STDC__
17328 # include <limits.h>
17329 #else
17330 # include <assert.h>
17331 #endif
17332
17333 #undef socket
17334
17335 /* Override any GCC internal prototype to avoid an error.
17336    Use char because int might match the return type of a GCC
17337    builtin and then its argument prototype would still apply.  */
17338 #ifdef __cplusplus
17339 extern "C"
17340 #endif
17341 char socket ();
17342 /* The GNU C library defines this for functions which it implements
17343     to always fail with ENOSYS.  Some functions are actually named
17344     something starting with __ and the normal name is an alias.  */
17345 #if defined __stub_socket || defined __stub___socket
17346 choke me
17347 #endif
17348
17349 int
17350 main ()
17351 {
17352 return socket ();
17353   ;
17354   return 0;
17355 }
17356 _ACEOF
17357 rm -f conftest.$ac_objext conftest$ac_exeext
17358 if { (ac_try="$ac_link"
17359 case "(($ac_try" in
17360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17361   *) ac_try_echo=$ac_try;;
17362 esac
17363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17364   (eval "$ac_link") 2>conftest.er1
17365   ac_status=$?
17366   grep -v '^ *+' conftest.er1 >conftest.err
17367   rm -f conftest.er1
17368   cat conftest.err >&5
17369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370   (exit $ac_status); } &&
17371          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17372   { (case "(($ac_try" in
17373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17374   *) ac_try_echo=$ac_try;;
17375 esac
17376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17377   (eval "$ac_try") 2>&5
17378   ac_status=$?
17379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380   (exit $ac_status); }; } &&
17381          { ac_try='test -s conftest$ac_exeext'
17382   { (case "(($ac_try" in
17383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17384   *) ac_try_echo=$ac_try;;
17385 esac
17386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17387   (eval "$ac_try") 2>&5
17388   ac_status=$?
17389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390   (exit $ac_status); }; }; then
17391   ac_cv_func_socket=yes
17392 else
17393   echo "$as_me: failed program was:" >&5
17394 sed 's/^/| /' conftest.$ac_ext >&5
17395
17396         ac_cv_func_socket=no
17397 fi
17398
17399 rm -f core conftest.err conftest.$ac_objext \
17400       conftest$ac_exeext conftest.$ac_ext
17401 fi
17402 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
17403 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
17404 if test $ac_cv_func_socket = yes; then
17405   { echo "$as_me:$LINENO: result: using libc's socket" >&5
17406 echo "${ECHO_T}using libc's socket" >&6; }
17407 else
17408
17409 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
17410 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
17411 if test "${ac_cv_lib_xnet_socket+set}" = set; then
17412   echo $ECHO_N "(cached) $ECHO_C" >&6
17413 else
17414   ac_check_lib_save_LIBS=$LIBS
17415 LIBS="-lxnet  $LIBS"
17416 cat >conftest.$ac_ext <<_ACEOF
17417 /* confdefs.h.  */
17418 _ACEOF
17419 cat confdefs.h >>conftest.$ac_ext
17420 cat >>conftest.$ac_ext <<_ACEOF
17421 /* end confdefs.h.  */
17422
17423 /* Override any GCC internal prototype to avoid an error.
17424    Use char because int might match the return type of a GCC
17425    builtin and then its argument prototype would still apply.  */
17426 #ifdef __cplusplus
17427 extern "C"
17428 #endif
17429 char socket ();
17430 int
17431 main ()
17432 {
17433 return socket ();
17434   ;
17435   return 0;
17436 }
17437 _ACEOF
17438 rm -f conftest.$ac_objext conftest$ac_exeext
17439 if { (ac_try="$ac_link"
17440 case "(($ac_try" in
17441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17442   *) ac_try_echo=$ac_try;;
17443 esac
17444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17445   (eval "$ac_link") 2>conftest.er1
17446   ac_status=$?
17447   grep -v '^ *+' conftest.er1 >conftest.err
17448   rm -f conftest.er1
17449   cat conftest.err >&5
17450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17451   (exit $ac_status); } &&
17452          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17453   { (case "(($ac_try" in
17454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17455   *) ac_try_echo=$ac_try;;
17456 esac
17457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17458   (eval "$ac_try") 2>&5
17459   ac_status=$?
17460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461   (exit $ac_status); }; } &&
17462          { ac_try='test -s conftest$ac_exeext'
17463   { (case "(($ac_try" in
17464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17465   *) ac_try_echo=$ac_try;;
17466 esac
17467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17468   (eval "$ac_try") 2>&5
17469   ac_status=$?
17470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17471   (exit $ac_status); }; }; then
17472   ac_cv_lib_xnet_socket=yes
17473 else
17474   echo "$as_me: failed program was:" >&5
17475 sed 's/^/| /' conftest.$ac_ext >&5
17476
17477         ac_cv_lib_xnet_socket=no
17478 fi
17479
17480 rm -f core conftest.err conftest.$ac_objext \
17481       conftest$ac_exeext conftest.$ac_ext
17482 LIBS=$ac_check_lib_save_LIBS
17483 fi
17484 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
17485 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
17486 if test $ac_cv_lib_xnet_socket = yes; then
17487   cat >>confdefs.h <<_ACEOF
17488 #define HAVE_LIBXNET 1
17489 _ACEOF
17490
17491   LIBS="-lxnet $LIBS"
17492
17493 fi
17494
17495
17496 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
17497 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
17498 if test "${ac_cv_lib_socket_socket+set}" = set; then
17499   echo $ECHO_N "(cached) $ECHO_C" >&6
17500 else
17501   ac_check_lib_save_LIBS=$LIBS
17502 LIBS="-lsocket  $LIBS"
17503 cat >conftest.$ac_ext <<_ACEOF
17504 /* confdefs.h.  */
17505 _ACEOF
17506 cat confdefs.h >>conftest.$ac_ext
17507 cat >>conftest.$ac_ext <<_ACEOF
17508 /* end confdefs.h.  */
17509
17510 /* Override any GCC internal prototype to avoid an error.
17511    Use char because int might match the return type of a GCC
17512    builtin and then its argument prototype would still apply.  */
17513 #ifdef __cplusplus
17514 extern "C"
17515 #endif
17516 char socket ();
17517 int
17518 main ()
17519 {
17520 return socket ();
17521   ;
17522   return 0;
17523 }
17524 _ACEOF
17525 rm -f conftest.$ac_objext conftest$ac_exeext
17526 if { (ac_try="$ac_link"
17527 case "(($ac_try" in
17528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17529   *) ac_try_echo=$ac_try;;
17530 esac
17531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17532   (eval "$ac_link") 2>conftest.er1
17533   ac_status=$?
17534   grep -v '^ *+' conftest.er1 >conftest.err
17535   rm -f conftest.er1
17536   cat conftest.err >&5
17537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538   (exit $ac_status); } &&
17539          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17540   { (case "(($ac_try" in
17541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17542   *) ac_try_echo=$ac_try;;
17543 esac
17544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17545   (eval "$ac_try") 2>&5
17546   ac_status=$?
17547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548   (exit $ac_status); }; } &&
17549          { ac_try='test -s conftest$ac_exeext'
17550   { (case "(($ac_try" in
17551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17552   *) ac_try_echo=$ac_try;;
17553 esac
17554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17555   (eval "$ac_try") 2>&5
17556   ac_status=$?
17557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558   (exit $ac_status); }; }; then
17559   ac_cv_lib_socket_socket=yes
17560 else
17561   echo "$as_me: failed program was:" >&5
17562 sed 's/^/| /' conftest.$ac_ext >&5
17563
17564         ac_cv_lib_socket_socket=no
17565 fi
17566
17567 rm -f core conftest.err conftest.$ac_objext \
17568       conftest$ac_exeext conftest.$ac_ext
17569 LIBS=$ac_check_lib_save_LIBS
17570 fi
17571 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
17572 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
17573 if test $ac_cv_lib_socket_socket = yes; then
17574   cat >>confdefs.h <<_ACEOF
17575 #define HAVE_LIBSOCKET 1
17576 _ACEOF
17577
17578   LIBS="-lsocket $LIBS"
17579
17580 fi
17581
17582
17583 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
17584 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
17585 if test "${ac_cv_lib_inet_socket+set}" = set; then
17586   echo $ECHO_N "(cached) $ECHO_C" >&6
17587 else
17588   ac_check_lib_save_LIBS=$LIBS
17589 LIBS="-linet  $LIBS"
17590 cat >conftest.$ac_ext <<_ACEOF
17591 /* confdefs.h.  */
17592 _ACEOF
17593 cat confdefs.h >>conftest.$ac_ext
17594 cat >>conftest.$ac_ext <<_ACEOF
17595 /* end confdefs.h.  */
17596
17597 /* Override any GCC internal prototype to avoid an error.
17598    Use char because int might match the return type of a GCC
17599    builtin and then its argument prototype would still apply.  */
17600 #ifdef __cplusplus
17601 extern "C"
17602 #endif
17603 char socket ();
17604 int
17605 main ()
17606 {
17607 return socket ();
17608   ;
17609   return 0;
17610 }
17611 _ACEOF
17612 rm -f conftest.$ac_objext conftest$ac_exeext
17613 if { (ac_try="$ac_link"
17614 case "(($ac_try" in
17615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17616   *) ac_try_echo=$ac_try;;
17617 esac
17618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17619   (eval "$ac_link") 2>conftest.er1
17620   ac_status=$?
17621   grep -v '^ *+' conftest.er1 >conftest.err
17622   rm -f conftest.er1
17623   cat conftest.err >&5
17624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625   (exit $ac_status); } &&
17626          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17627   { (case "(($ac_try" in
17628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17629   *) ac_try_echo=$ac_try;;
17630 esac
17631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17632   (eval "$ac_try") 2>&5
17633   ac_status=$?
17634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635   (exit $ac_status); }; } &&
17636          { ac_try='test -s conftest$ac_exeext'
17637   { (case "(($ac_try" in
17638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17639   *) ac_try_echo=$ac_try;;
17640 esac
17641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17642   (eval "$ac_try") 2>&5
17643   ac_status=$?
17644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645   (exit $ac_status); }; }; then
17646   ac_cv_lib_inet_socket=yes
17647 else
17648   echo "$as_me: failed program was:" >&5
17649 sed 's/^/| /' conftest.$ac_ext >&5
17650
17651         ac_cv_lib_inet_socket=no
17652 fi
17653
17654 rm -f core conftest.err conftest.$ac_objext \
17655       conftest$ac_exeext conftest.$ac_ext
17656 LIBS=$ac_check_lib_save_LIBS
17657 fi
17658 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
17659 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
17660 if test $ac_cv_lib_inet_socket = yes; then
17661   cat >>confdefs.h <<_ACEOF
17662 #define HAVE_LIBINET 1
17663 _ACEOF
17664
17665   LIBS="-linet $LIBS"
17666
17667 fi
17668
17669 fi
17670
17671
17672
17673 # -----------------------------------------------------------
17674 # Check whether user wants TCP wrappers support (default off)
17675 # -----------------------------------------------------------
17676 TCPW_MSG="no"
17677 WRAPLIBS=""
17678
17679 # Check whether --with-tcp-wrappers was given.
17680 if test "${with_tcp_wrappers+set}" = set; then
17681   withval=$with_tcp_wrappers;
17682     if test "x$withval" != "xno" ; then
17683        saved_LIBS="$LIBS"
17684        LIBS="$saved_LIBS -lwrap"
17685        { echo "$as_me:$LINENO: checking for libwrap" >&5
17686 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
17687        { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
17688 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
17689 if test "${ac_cv_search_nanosleep+set}" = set; then
17690   echo $ECHO_N "(cached) $ECHO_C" >&6
17691 else
17692   ac_func_search_save_LIBS=$LIBS
17693 cat >conftest.$ac_ext <<_ACEOF
17694 /* confdefs.h.  */
17695 _ACEOF
17696 cat confdefs.h >>conftest.$ac_ext
17697 cat >>conftest.$ac_ext <<_ACEOF
17698 /* end confdefs.h.  */
17699
17700 /* Override any GCC internal prototype to avoid an error.
17701    Use char because int might match the return type of a GCC
17702    builtin and then its argument prototype would still apply.  */
17703 #ifdef __cplusplus
17704 extern "C"
17705 #endif
17706 char nanosleep ();
17707 int
17708 main ()
17709 {
17710 return nanosleep ();
17711   ;
17712   return 0;
17713 }
17714 _ACEOF
17715 for ac_lib in '' rt; do
17716   if test -z "$ac_lib"; then
17717     ac_res="none required"
17718   else
17719     ac_res=-l$ac_lib
17720     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17721   fi
17722   rm -f conftest.$ac_objext conftest$ac_exeext
17723 if { (ac_try="$ac_link"
17724 case "(($ac_try" in
17725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17726   *) ac_try_echo=$ac_try;;
17727 esac
17728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17729   (eval "$ac_link") 2>conftest.er1
17730   ac_status=$?
17731   grep -v '^ *+' conftest.er1 >conftest.err
17732   rm -f conftest.er1
17733   cat conftest.err >&5
17734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735   (exit $ac_status); } &&
17736          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17737   { (case "(($ac_try" in
17738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17739   *) ac_try_echo=$ac_try;;
17740 esac
17741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17742   (eval "$ac_try") 2>&5
17743   ac_status=$?
17744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17745   (exit $ac_status); }; } &&
17746          { ac_try='test -s conftest$ac_exeext'
17747   { (case "(($ac_try" in
17748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17749   *) ac_try_echo=$ac_try;;
17750 esac
17751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17752   (eval "$ac_try") 2>&5
17753   ac_status=$?
17754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17755   (exit $ac_status); }; }; then
17756   ac_cv_search_nanosleep=$ac_res
17757 else
17758   echo "$as_me: failed program was:" >&5
17759 sed 's/^/| /' conftest.$ac_ext >&5
17760
17761
17762 fi
17763
17764 rm -f core conftest.err conftest.$ac_objext \
17765       conftest$ac_exeext
17766   if test "${ac_cv_search_nanosleep+set}" = set; then
17767   break
17768 fi
17769 done
17770 if test "${ac_cv_search_nanosleep+set}" = set; then
17771   :
17772 else
17773   ac_cv_search_nanosleep=no
17774 fi
17775 rm conftest.$ac_ext
17776 LIBS=$ac_func_search_save_LIBS
17777 fi
17778 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
17779 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
17780 ac_res=$ac_cv_search_nanosleep
17781 if test "$ac_res" != no; then
17782   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17783
17784 fi
17785
17786        cat >conftest.$ac_ext <<_ACEOF
17787 /* confdefs.h.  */
17788 _ACEOF
17789 cat confdefs.h >>conftest.$ac_ext
17790 cat >>conftest.$ac_ext <<_ACEOF
17791 /* end confdefs.h.  */
17792  #include <sys/types.h>
17793             #include <tcpd.h>
17794              int deny_severity = 0;
17795              int allow_severity = 0;
17796              struct request_info *req;
17797 int
17798 main ()
17799 {
17800  hosts_access(req);
17801   ;
17802   return 0;
17803 }
17804 _ACEOF
17805 rm -f conftest.$ac_objext conftest$ac_exeext
17806 if { (ac_try="$ac_link"
17807 case "(($ac_try" in
17808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17809   *) ac_try_echo=$ac_try;;
17810 esac
17811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17812   (eval "$ac_link") 2>conftest.er1
17813   ac_status=$?
17814   grep -v '^ *+' conftest.er1 >conftest.err
17815   rm -f conftest.er1
17816   cat conftest.err >&5
17817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818   (exit $ac_status); } &&
17819          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17820   { (case "(($ac_try" in
17821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17822   *) ac_try_echo=$ac_try;;
17823 esac
17824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17825   (eval "$ac_try") 2>&5
17826   ac_status=$?
17827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828   (exit $ac_status); }; } &&
17829          { ac_try='test -s conftest$ac_exeext'
17830   { (case "(($ac_try" in
17831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17832   *) ac_try_echo=$ac_try;;
17833 esac
17834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17835   (eval "$ac_try") 2>&5
17836   ac_status=$?
17837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838   (exit $ac_status); }; }; then
17839
17840             { echo "$as_me:$LINENO: result: yes" >&5
17841 echo "${ECHO_T}yes" >&6; }
17842             cat >>confdefs.h <<\_ACEOF
17843 #define HAVE_LIBWRAP 1
17844 _ACEOF
17845
17846             TCPW_MSG="yes"
17847             LIBS="$saved_LIBS"
17848             WRAPLIBS="-lwrap"
17849
17850 else
17851   echo "$as_me: failed program was:" >&5
17852 sed 's/^/| /' conftest.$ac_ext >&5
17853
17854
17855             LIBS="$saved_LIBS -lwrap -lnsl"
17856             WRAPLIBS="$saved_LIBS -lwrap -lnsl"
17857             cat >conftest.$ac_ext <<_ACEOF
17858 /* confdefs.h.  */
17859 _ACEOF
17860 cat confdefs.h >>conftest.$ac_ext
17861 cat >>conftest.$ac_ext <<_ACEOF
17862 /* end confdefs.h.  */
17863  #include <sys/types.h>
17864                  #include <tcpd.h>
17865                  int deny_severity = 0;
17866                  int allow_severity = 0;
17867                  struct request_info *req;
17868 int
17869 main ()
17870 {
17871  hosts_access(req);
17872   ;
17873   return 0;
17874 }
17875 _ACEOF
17876 rm -f conftest.$ac_objext conftest$ac_exeext
17877 if { (ac_try="$ac_link"
17878 case "(($ac_try" in
17879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17880   *) ac_try_echo=$ac_try;;
17881 esac
17882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17883   (eval "$ac_link") 2>conftest.er1
17884   ac_status=$?
17885   grep -v '^ *+' conftest.er1 >conftest.err
17886   rm -f conftest.er1
17887   cat conftest.err >&5
17888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889   (exit $ac_status); } &&
17890          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17891   { (case "(($ac_try" in
17892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17893   *) ac_try_echo=$ac_try;;
17894 esac
17895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17896   (eval "$ac_try") 2>&5
17897   ac_status=$?
17898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899   (exit $ac_status); }; } &&
17900          { ac_try='test -s conftest$ac_exeext'
17901   { (case "(($ac_try" in
17902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17903   *) ac_try_echo=$ac_try;;
17904 esac
17905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17906   (eval "$ac_try") 2>&5
17907   ac_status=$?
17908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909   (exit $ac_status); }; }; then
17910
17911                  { echo "$as_me:$LINENO: result: yes" >&5
17912 echo "${ECHO_T}yes" >&6; }
17913                  cat >>confdefs.h <<\_ACEOF
17914 #define HAVE_LIBWRAP 1
17915 _ACEOF
17916
17917                  TCPW_MSG="yes"
17918                  LIBS="$saved_LIBS"
17919                  WRAPLIBS="-lwrap"
17920
17921 else
17922   echo "$as_me: failed program was:" >&5
17923 sed 's/^/| /' conftest.$ac_ext >&5
17924
17925         { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
17926 echo "$as_me: error: *** libwrap missing" >&2;}
17927    { (exit 1); exit 1; }; }
17928
17929 fi
17930
17931 rm -f core conftest.err conftest.$ac_objext \
17932       conftest$ac_exeext conftest.$ac_ext
17933
17934 fi
17935
17936 rm -f core conftest.err conftest.$ac_objext \
17937       conftest$ac_exeext conftest.$ac_ext
17938     fi
17939
17940
17941 fi
17942
17943
17944 # -----------------------------------------------------------
17945 # Check whether OpenSSL is available
17946 # -----------------------------------------------------------
17947 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
17948 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
17949
17950 # Check whether --with-openssl was given.
17951 if test "${with_openssl+set}" = set; then
17952   withval=$with_openssl; with_openssl_directory=${withval}
17953 fi
17954
17955
17956 if test "x$with_openssl_directory" != "x"; then
17957         OPENSSL_LIBS="-lssl -lcrypto"
17958         OPENSSL_INC=""
17959
17960         if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
17961                 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
17962                 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
17963         fi
17964
17965         saved_LIBS="${LIBS}"
17966         saved_CFLAGS="${CFLAGS}"
17967         LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
17968         CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
17969
17970         cat >conftest.$ac_ext <<_ACEOF
17971 /* confdefs.h.  */
17972 _ACEOF
17973 cat confdefs.h >>conftest.$ac_ext
17974 cat >>conftest.$ac_ext <<_ACEOF
17975 /* end confdefs.h.  */
17976  #include <openssl/ssl.h>
17977 int
17978 main ()
17979 {
17980  CRYPTO_set_id_callback(NULL);
17981   ;
17982   return 0;
17983 }
17984 _ACEOF
17985 rm -f conftest.$ac_objext conftest$ac_exeext
17986 if { (ac_try="$ac_link"
17987 case "(($ac_try" in
17988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17989   *) ac_try_echo=$ac_try;;
17990 esac
17991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17992   (eval "$ac_link") 2>conftest.er1
17993   ac_status=$?
17994   grep -v '^ *+' conftest.er1 >conftest.err
17995   rm -f conftest.er1
17996   cat conftest.err >&5
17997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998   (exit $ac_status); } &&
17999          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18000   { (case "(($ac_try" in
18001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18002   *) ac_try_echo=$ac_try;;
18003 esac
18004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18005   (eval "$ac_try") 2>&5
18006   ac_status=$?
18007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008   (exit $ac_status); }; } &&
18009          { ac_try='test -s conftest$ac_exeext'
18010   { (case "(($ac_try" in
18011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18012   *) ac_try_echo=$ac_try;;
18013 esac
18014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18015   (eval "$ac_try") 2>&5
18016   ac_status=$?
18017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018   (exit $ac_status); }; }; then
18019
18020                         support_tls="yes"
18021                         support_crypto="yes"
18022
18023 else
18024   echo "$as_me: failed program was:" >&5
18025 sed 's/^/| /' conftest.$ac_ext >&5
18026
18027          support_tls="no"
18028
18029 fi
18030
18031 rm -f core conftest.err conftest.$ac_objext \
18032       conftest$ac_exeext conftest.$ac_ext
18033
18034         cat >conftest.$ac_ext <<_ACEOF
18035 /* confdefs.h.  */
18036 _ACEOF
18037 cat confdefs.h >>conftest.$ac_ext
18038 cat >>conftest.$ac_ext <<_ACEOF
18039 /* end confdefs.h.  */
18040  #include <openssl/evp.h>
18041 int
18042 main ()
18043 {
18044  EVP_sha512();
18045   ;
18046   return 0;
18047 }
18048 _ACEOF
18049 rm -f conftest.$ac_objext conftest$ac_exeext
18050 if { (ac_try="$ac_link"
18051 case "(($ac_try" in
18052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053   *) ac_try_echo=$ac_try;;
18054 esac
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056   (eval "$ac_link") 2>conftest.er1
18057   ac_status=$?
18058   grep -v '^ *+' conftest.er1 >conftest.err
18059   rm -f conftest.er1
18060   cat conftest.err >&5
18061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062   (exit $ac_status); } &&
18063          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18064   { (case "(($ac_try" in
18065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18066   *) ac_try_echo=$ac_try;;
18067 esac
18068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18069   (eval "$ac_try") 2>&5
18070   ac_status=$?
18071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072   (exit $ac_status); }; } &&
18073          { ac_try='test -s conftest$ac_exeext'
18074   { (case "(($ac_try" in
18075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18076   *) ac_try_echo=$ac_try;;
18077 esac
18078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18079   (eval "$ac_try") 2>&5
18080   ac_status=$?
18081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18082   (exit $ac_status); }; }; then
18083    ac_cv_openssl_sha2="yes"
18084 else
18085   echo "$as_me: failed program was:" >&5
18086 sed 's/^/| /' conftest.$ac_ext >&5
18087
18088          ac_cv_openssl_sha2="no"
18089
18090 fi
18091
18092 rm -f core conftest.err conftest.$ac_objext \
18093       conftest$ac_exeext conftest.$ac_ext
18094
18095         # Solaris disables greater than 128+ bit encryption in their OpenSSL
18096         # implementation, presumably for export reasons. If 192bit AES
18097         # is available, we assume that we're running with a 'non-export'
18098         # openssl library.
18099         cat >conftest.$ac_ext <<_ACEOF
18100 /* confdefs.h.  */
18101 _ACEOF
18102 cat confdefs.h >>conftest.$ac_ext
18103 cat >>conftest.$ac_ext <<_ACEOF
18104 /* end confdefs.h.  */
18105  #include <openssl/evp.h>
18106 int
18107 main ()
18108 {
18109  EVP_aes_192_cbc();
18110   ;
18111   return 0;
18112 }
18113 _ACEOF
18114 rm -f conftest.$ac_objext conftest$ac_exeext
18115 if { (ac_try="$ac_link"
18116 case "(($ac_try" in
18117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18118   *) ac_try_echo=$ac_try;;
18119 esac
18120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18121   (eval "$ac_link") 2>conftest.er1
18122   ac_status=$?
18123   grep -v '^ *+' conftest.er1 >conftest.err
18124   rm -f conftest.er1
18125   cat conftest.err >&5
18126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127   (exit $ac_status); } &&
18128          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18129   { (case "(($ac_try" in
18130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18131   *) ac_try_echo=$ac_try;;
18132 esac
18133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18134   (eval "$ac_try") 2>&5
18135   ac_status=$?
18136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137   (exit $ac_status); }; } &&
18138          { ac_try='test -s conftest$ac_exeext'
18139   { (case "(($ac_try" in
18140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18141   *) ac_try_echo=$ac_try;;
18142 esac
18143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18144   (eval "$ac_try") 2>&5
18145   ac_status=$?
18146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147   (exit $ac_status); }; }; then
18148    ac_cv_openssl_export="no"
18149 else
18150   echo "$as_me: failed program was:" >&5
18151 sed 's/^/| /' conftest.$ac_ext >&5
18152
18153          ac_cv_openssl_export="yes"
18154
18155 fi
18156
18157 rm -f core conftest.err conftest.$ac_objext \
18158       conftest$ac_exeext conftest.$ac_ext
18159
18160         LIBS="${saved_LIBS}"
18161         CFLAGS="${saved_CFLAGS}"
18162
18163         if test "$support_tls" = "yes"; then
18164
18165 cat >>confdefs.h <<\_ACEOF
18166 #define HAVE_OPENSSL 1
18167 _ACEOF
18168
18169
18170 cat >>confdefs.h <<\_ACEOF
18171 #define HAVE_TLS 1
18172 _ACEOF
18173
18174
18175 cat >>confdefs.h <<\_ACEOF
18176 #define HAVE_CRYPTO 1
18177 _ACEOF
18178
18179         fi
18180
18181         if test "$ac_cv_openssl_sha2" = "yes"; then
18182
18183 cat >>confdefs.h <<\_ACEOF
18184 #define HAVE_SHA2 1
18185 _ACEOF
18186
18187         fi
18188
18189         if test "$ac_cv_openssl_export" = "yes"; then
18190
18191 cat >>confdefs.h <<\_ACEOF
18192 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
18193 _ACEOF
18194
18195         fi
18196 else
18197         support_tls="no"
18198         support_crypto="no"
18199         OPENSSL_LIBS=""
18200         OPENSSL_INC=""
18201 fi
18202
18203 { echo "$as_me:$LINENO: result: $support_tls" >&5
18204 echo "${ECHO_T}$support_tls" >&6; }
18205
18206
18207
18208
18209 # -----------------------------------------------------------
18210 # Python and OpenSSL are using dlopen
18211 # -----------------------------------------------------------
18212
18213 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
18214    { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18215 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
18216 if test "${ac_cv_search_dlopen+set}" = set; then
18217   echo $ECHO_N "(cached) $ECHO_C" >&6
18218 else
18219   ac_func_search_save_LIBS=$LIBS
18220 cat >conftest.$ac_ext <<_ACEOF
18221 /* confdefs.h.  */
18222 _ACEOF
18223 cat confdefs.h >>conftest.$ac_ext
18224 cat >>conftest.$ac_ext <<_ACEOF
18225 /* end confdefs.h.  */
18226
18227 /* Override any GCC internal prototype to avoid an error.
18228    Use char because int might match the return type of a GCC
18229    builtin and then its argument prototype would still apply.  */
18230 #ifdef __cplusplus
18231 extern "C"
18232 #endif
18233 char dlopen ();
18234 int
18235 main ()
18236 {
18237 return dlopen ();
18238   ;
18239   return 0;
18240 }
18241 _ACEOF
18242 for ac_lib in '' dl; do
18243   if test -z "$ac_lib"; then
18244     ac_res="none required"
18245   else
18246     ac_res=-l$ac_lib
18247     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18248   fi
18249   rm -f conftest.$ac_objext conftest$ac_exeext
18250 if { (ac_try="$ac_link"
18251 case "(($ac_try" in
18252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18253   *) ac_try_echo=$ac_try;;
18254 esac
18255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18256   (eval "$ac_link") 2>conftest.er1
18257   ac_status=$?
18258   grep -v '^ *+' conftest.er1 >conftest.err
18259   rm -f conftest.er1
18260   cat conftest.err >&5
18261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262   (exit $ac_status); } &&
18263          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18264   { (case "(($ac_try" in
18265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18266   *) ac_try_echo=$ac_try;;
18267 esac
18268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18269   (eval "$ac_try") 2>&5
18270   ac_status=$?
18271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272   (exit $ac_status); }; } &&
18273          { ac_try='test -s conftest$ac_exeext'
18274   { (case "(($ac_try" in
18275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276   *) ac_try_echo=$ac_try;;
18277 esac
18278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18279   (eval "$ac_try") 2>&5
18280   ac_status=$?
18281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282   (exit $ac_status); }; }; then
18283   ac_cv_search_dlopen=$ac_res
18284 else
18285   echo "$as_me: failed program was:" >&5
18286 sed 's/^/| /' conftest.$ac_ext >&5
18287
18288
18289 fi
18290
18291 rm -f core conftest.err conftest.$ac_objext \
18292       conftest$ac_exeext
18293   if test "${ac_cv_search_dlopen+set}" = set; then
18294   break
18295 fi
18296 done
18297 if test "${ac_cv_search_dlopen+set}" = set; then
18298   :
18299 else
18300   ac_cv_search_dlopen=no
18301 fi
18302 rm conftest.$ac_ext
18303 LIBS=$ac_func_search_save_LIBS
18304 fi
18305 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18306 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
18307 ac_res=$ac_cv_search_dlopen
18308 if test "$ac_res" != no; then
18309   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18310
18311 fi
18312
18313 fi
18314
18315 # ------------------------------------------
18316 # Where to place working dir
18317 # ------------------------------------------
18318 working_dir=`eval echo ${prefix}/var/bacula/working`
18319
18320 # Check whether --with-working-dir was given.
18321 if test "${with_working_dir+set}" = set; then
18322   withval=$with_working_dir;
18323        if test "x$withval" != "xno" ; then
18324               working_dir=$withval
18325        fi
18326
18327
18328 fi
18329
18330
18331
18332
18333
18334 # ------------------------------------------
18335 # Where to place scriptdir (script files)
18336 # ------------------------------------------
18337 scriptdir=`eval echo ${sysconfdir}`
18338
18339 # Check whether --with-scriptdir was given.
18340 if test "${with_scriptdir+set}" = set; then
18341   withval=$with_scriptdir;
18342        if test "x$withval" != "xno" ; then
18343               scriptdir=$withval
18344        fi
18345
18346
18347 fi
18348
18349
18350
18351
18352
18353 # ------------------------------------------
18354 # Where to send dump email
18355 # ------------------------------------------
18356 dump_email=root@localhost
18357
18358 # Check whether --with-dump-email was given.
18359 if test "${with_dump_email+set}" = set; then
18360   withval=$with_dump_email;
18361        if test "x$withval" != "xno" ; then
18362               dump_email=$withval
18363        fi
18364
18365
18366 fi
18367
18368
18369
18370
18371 # ------------------------------------------
18372 # Where to send job email
18373 # ------------------------------------------
18374 job_email=root@localhost
18375
18376 # Check whether --with-job-email was given.
18377 if test "${with_job_email+set}" = set; then
18378   withval=$with_job_email;
18379        if test "x$withval" != "xno" ; then
18380               job_email=$withval
18381        fi
18382
18383
18384 fi
18385
18386
18387
18388
18389 # ------------------------------------------
18390 # Where to find smtp host
18391 # ------------------------------------------
18392 smtp_host=localhost
18393
18394 # Check whether --with-smtp_host was given.
18395 if test "${with_smtp_host+set}" = set; then
18396   withval=$with_smtp_host;
18397        if test "x$withval" != "xno" ; then
18398               smtp_host=$withval
18399        fi
18400
18401
18402 fi
18403
18404
18405
18406
18407
18408 # ------------------------------------
18409 # Where to place pid files
18410 # ------------------------------------
18411 piddir=/var/run
18412
18413 # Check whether --with-pid-dir was given.
18414 if test "${with_pid_dir+set}" = set; then
18415   withval=$with_pid_dir;
18416         if test "x$withval" != "xno" ; then
18417             piddir=$withval
18418         fi
18419
18420
18421 fi
18422
18423
18424 cat >>confdefs.h <<_ACEOF
18425 #define _PATH_BACULA_PIDDIR "$piddir"
18426 _ACEOF
18427
18428
18429
18430
18431 # ------------------------------------
18432 # Where to place subsys "lock file"
18433 # ------------------------------------
18434 ubsysdir=/var/run/subsys
18435 if test -d /var/run/subsys; then
18436    subsysdir=/var/run/subsys
18437 elif test -d /var/lock/subsys; then
18438    subsysdir=/var/lock/subsys
18439 else
18440    subsysdir=/var/run/subsys
18441 fi
18442
18443 # Check whether --with-subsys-dir was given.
18444 if test "${with_subsys_dir+set}" = set; then
18445   withval=$with_subsys_dir;
18446         if test "x$withval" != "xno" ; then
18447             subsysdir=$withval
18448         fi
18449
18450
18451 fi
18452
18453
18454
18455
18456
18457
18458 # ------------------------------------
18459 # Where to start assigning ports
18460 # ------------------------------------
18461 baseport=9101
18462
18463 # Check whether --with-baseport was given.
18464 if test "${with_baseport+set}" = set; then
18465   withval=$with_baseport;
18466         if test "x$withval" != "xno" ; then
18467              baseport=$withval
18468         fi
18469
18470
18471 fi
18472
18473
18474
18475 dir_port=`expr $baseport`
18476 fd_port=`expr $baseport + 1`
18477 sd_port=`expr $fd_port + 1`
18478
18479
18480
18481
18482
18483
18484 # ------------------------------------------
18485 # Generate passwords
18486 # ------------------------------------------
18487 dir_password=
18488
18489 # Check whether --with-dir-password was given.
18490 if test "${with_dir_password+set}" = set; then
18491   withval=$with_dir_password;
18492        if test "x$withval" != "xno" ; then
18493            dir_password=$withval
18494        fi
18495
18496
18497 fi
18498
18499
18500 if test "x$dir_password" = "x" ; then
18501    if test "x$OPENSSL" = "xnone" ; then
18502       key=`autoconf/randpass 33`
18503    else
18504       key=`openssl rand -base64 33`
18505    fi
18506    dir_password=$key
18507 fi
18508
18509 fd_password=
18510
18511 # Check whether --with-fd-password was given.
18512 if test "${with_fd_password+set}" = set; then
18513   withval=$with_fd_password;
18514        if test "x$withval" != "xno" ; then
18515            fd_password=$withval
18516        fi
18517
18518
18519 fi
18520
18521
18522 if test "x$fd_password" = "x" ; then
18523    if test "x$OPENSSL" = "xnone" ; then
18524       key=`autoconf/randpass 37`
18525    else
18526       key=`openssl rand -base64 33`
18527    fi
18528    fd_password=$key
18529 fi
18530
18531 sd_password=
18532
18533 # Check whether --with-sd-password was given.
18534 if test "${with_sd_password+set}" = set; then
18535   withval=$with_sd_password;
18536        if test "x$withval" != "xno" ; then
18537            sd_password=$withval
18538        fi
18539
18540
18541 fi
18542
18543
18544 if test "x$sd_password" = "x" ; then
18545    if test "x$OPENSSL" = "xnone" ; then
18546       key=`autoconf/randpass 41`
18547    else
18548       key=`openssl rand -base64 33`
18549    fi
18550    sd_password=$key
18551 fi
18552
18553 mon_dir_password=
18554
18555 # Check whether --with-mon-dir-password was given.
18556 if test "${with_mon_dir_password+set}" = set; then
18557   withval=$with_mon_dir_password;
18558        if test "x$withval" != "xno" ; then
18559            mon_dir_password=$withval
18560        fi
18561
18562
18563 fi
18564
18565
18566 if test "x$mon_dir_password" = "x" ; then
18567    if test "x$OPENSSL" = "xnone" ; then
18568       key=`autoconf/randpass 33`
18569    else
18570       key=`openssl rand -base64 33`
18571    fi
18572    mon_dir_password=$key
18573 fi
18574
18575 mon_fd_password=
18576
18577 # Check whether --with-mon-fd-password was given.
18578 if test "${with_mon_fd_password+set}" = set; then
18579   withval=$with_mon_fd_password;
18580        if test "x$withval" != "xno" ; then
18581            mon_fd_password=$withval
18582        fi
18583
18584
18585 fi
18586
18587
18588 if test "x$mon_fd_password" = "x" ; then
18589    if test "x$OPENSSL" = "xnone" ; then
18590       key=`autoconf/randpass 37`
18591    else
18592       key=`openssl rand -base64 33`
18593    fi
18594    mon_fd_password=$key
18595 fi
18596
18597 mon_sd_password=
18598
18599 # Check whether --with-mon-sd-password was given.
18600 if test "${with_mon_sd_password+set}" = set; then
18601   withval=$with_mon_sd_password;
18602        if test "x$withval" != "xno" ; then
18603            mon_sd_password=$withval
18604        fi
18605
18606
18607 fi
18608
18609
18610 if test "x$mon_sd_password" = "x" ; then
18611    if test "x$OPENSSL" = "xnone" ; then
18612       key=`autoconf/randpass 41`
18613    else
18614       key=`openssl rand -base64 33`
18615    fi
18616    mon_sd_password=$key
18617 fi
18618
18619
18620
18621
18622
18623
18624
18625
18626 #
18627 # Pickup any database name
18628 #
18629 db_name=bacula
18630
18631 # Check whether --with-db_name was given.
18632 if test "${with_db_name+set}" = set; then
18633   withval=$with_db_name;
18634         if test "x$withval" != "x" ; then
18635              db_name=$withval
18636         fi
18637
18638
18639 fi
18640
18641
18642
18643 db_user=bacula
18644
18645 # Check whether --with-db_user was given.
18646 if test "${with_db_user+set}" = set; then
18647   withval=$with_db_user;
18648         if test "x$withval" != "x" ; then
18649              db_user=$withval
18650         fi
18651
18652
18653 fi
18654
18655
18656
18657
18658 #
18659 # Handle users and groups for each daemon
18660 #
18661 dir_user=
18662
18663 # Check whether --with-dir_user was given.
18664 if test "${with_dir_user+set}" = set; then
18665   withval=$with_dir_user;
18666         if test "x$withval" != "x" ; then
18667              dir_user=$withval
18668         fi
18669
18670
18671 fi
18672
18673
18674 dir_group=
18675
18676 # Check whether --with-dir_group was given.
18677 if test "${with_dir_group+set}" = set; then
18678   withval=$with_dir_group;
18679         if test "x$withval" != "x" ; then
18680              dir_group=$withval
18681         fi
18682
18683
18684 fi
18685
18686
18687 sd_user=
18688
18689 # Check whether --with-sd_user was given.
18690 if test "${with_sd_user+set}" = set; then
18691   withval=$with_sd_user;
18692         if test "x$withval" != "x" ; then
18693              sd_user=$withval
18694         fi
18695
18696
18697 fi
18698
18699
18700 sd_group=
18701
18702 # Check whether --with-sd_group was given.
18703 if test "${with_sd_group+set}" = set; then
18704   withval=$with_sd_group;
18705         if test "x$withval" != "x" ; then
18706              sd_group=$withval
18707         fi
18708
18709
18710 fi
18711
18712
18713 fd_user=
18714
18715 # Check whether --with-fd_user was given.
18716 if test "${with_fd_user+set}" = set; then
18717   withval=$with_fd_user;
18718         if test "x$withval" != "x" ; then
18719              fd_user=$withval
18720         fi
18721
18722
18723 fi
18724
18725
18726 fd_group=
18727
18728 # Check whether --with-fd_group was given.
18729 if test "${with_fd_group+set}" = set; then
18730   withval=$with_fd_group;
18731         if test "x$withval" != "x" ; then
18732              fd_group=$withval
18733         fi
18734
18735
18736 fi
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749 #
18750 # allow setting default executable permissions
18751 #
18752 SBINPERM=0754
18753
18754 # Check whether --with-sbin-perm was given.
18755 if test "${with_sbin_perm+set}" = set; then
18756   withval=$with_sbin_perm;
18757         if test "x$withval" != "x" ; then
18758             SBINPERM=$withval
18759         fi
18760
18761
18762 fi
18763
18764
18765
18766
18767 # ------------------------------------------------
18768 # Bacula check for various SQL database engines
18769 # ------------------------------------------------
18770
18771 db_found=no
18772 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
18773 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
18774
18775 # Check whether --with-postgresql was given.
18776 if test "${with_postgresql+set}" = set; then
18777   withval=$with_postgresql;
18778   if test "$withval" != "no"; then
18779       if test "$db_found" = "yes"; then
18780           { echo "$as_me:$LINENO: result: error" >&5
18781 echo "${ECHO_T}error" >&6; }
18782           { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
18783 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
18784    { (exit 1); exit 1; }; };
18785       fi
18786       if test "$withval" = "yes"; then
18787           PG_CONFIG=`which pg_config`
18788           if test -n "$PG_CONFIG";then
18789               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
18790               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
18791               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
18792           elif test -f /usr/local/include/libpq-fe.h; then
18793               POSTGRESQL_INCDIR=/usr/local/include
18794               if test -d /usr/local/lib64; then
18795                  POSTGRESQL_LIBDIR=/usr/local/lib64
18796               else
18797                  POSTGRESQL_LIBDIR=/usr/local/lib
18798               fi
18799               POSTGRESQL_BINDIR=/usr/local/bin
18800           elif test -f /usr/include/libpq-fe.h; then
18801               POSTGRESQL_INCDIR=/usr/include
18802               if test -d /usr/lib64; then
18803                  POSTGRESQL_LIBDIR=/usr/lib64
18804               else
18805                  POSTGRESQL_LIBDIR=/usr/lib
18806               fi
18807               POSTGRESQL_BINDIR=/usr/bin
18808           elif test -f /usr/include/pgsql/libpq-fe.h; then
18809               POSTGRESQL_INCDIR=/usr/include/pgsql
18810               if test -d /usr/lib64/pgsql; then
18811                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
18812               else
18813                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
18814               fi
18815               POSTGRESQL_BINDIR=/usr/bin
18816           elif test -f /usr/include/postgresql/libpq-fe.h; then
18817               POSTGRESQL_INCDIR=/usr/include/postgresql
18818               if test -d /usr/lib64/postgresql; then
18819                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
18820               else
18821                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
18822               fi
18823               POSTGRESQL_BINDIR=/usr/bin
18824           else
18825               { echo "$as_me:$LINENO: result: no" >&5
18826 echo "${ECHO_T}no" >&6; }
18827               { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
18828 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
18829    { (exit 1); exit 1; }; }
18830           fi
18831       elif test -f $withval/include/libpq-fe.h; then
18832           POSTGRESQL_INCDIR=$withval/include
18833           POSTGRESQL_LIBDIR=$withval/lib
18834           POSTGRESQL_BINDIR=$withval/bin
18835       elif test -f $withval/include/postgresql/libpq-fe.h; then
18836           POSTGRESQL_INCDIR=$withval/include/postgresql
18837      if test -d $withval/lib64; then
18838          POSTGRESQL_LIBDIR=$withval/lib64
18839      else
18840          POSTGRESQL_LIBDIR=$withval/lib
18841      fi
18842           POSTGRESQL_BINDIR=$withval/bin
18843       else
18844           { echo "$as_me:$LINENO: result: no" >&5
18845 echo "${ECHO_T}no" >&6; }
18846           { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
18847 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
18848    { (exit 1); exit 1; }; }
18849       fi
18850       POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
18851       { echo "$as_me:$LINENO: checking for crypt" >&5
18852 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
18853 if test "${ac_cv_func_crypt+set}" = set; then
18854   echo $ECHO_N "(cached) $ECHO_C" >&6
18855 else
18856   cat >conftest.$ac_ext <<_ACEOF
18857 /* confdefs.h.  */
18858 _ACEOF
18859 cat confdefs.h >>conftest.$ac_ext
18860 cat >>conftest.$ac_ext <<_ACEOF
18861 /* end confdefs.h.  */
18862 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
18863    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18864 #define crypt innocuous_crypt
18865
18866 /* System header to define __stub macros and hopefully few prototypes,
18867     which can conflict with char crypt (); below.
18868     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18869     <limits.h> exists even on freestanding compilers.  */
18870
18871 #ifdef __STDC__
18872 # include <limits.h>
18873 #else
18874 # include <assert.h>
18875 #endif
18876
18877 #undef crypt
18878
18879 /* Override any GCC internal prototype to avoid an error.
18880    Use char because int might match the return type of a GCC
18881    builtin and then its argument prototype would still apply.  */
18882 #ifdef __cplusplus
18883 extern "C"
18884 #endif
18885 char crypt ();
18886 /* The GNU C library defines this for functions which it implements
18887     to always fail with ENOSYS.  Some functions are actually named
18888     something starting with __ and the normal name is an alias.  */
18889 #if defined __stub_crypt || defined __stub___crypt
18890 choke me
18891 #endif
18892
18893 int
18894 main ()
18895 {
18896 return crypt ();
18897   ;
18898   return 0;
18899 }
18900 _ACEOF
18901 rm -f conftest.$ac_objext conftest$ac_exeext
18902 if { (ac_try="$ac_link"
18903 case "(($ac_try" in
18904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18905   *) ac_try_echo=$ac_try;;
18906 esac
18907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18908   (eval "$ac_link") 2>conftest.er1
18909   ac_status=$?
18910   grep -v '^ *+' conftest.er1 >conftest.err
18911   rm -f conftest.er1
18912   cat conftest.err >&5
18913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914   (exit $ac_status); } &&
18915          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18916   { (case "(($ac_try" in
18917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18918   *) ac_try_echo=$ac_try;;
18919 esac
18920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18921   (eval "$ac_try") 2>&5
18922   ac_status=$?
18923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924   (exit $ac_status); }; } &&
18925          { ac_try='test -s conftest$ac_exeext'
18926   { (case "(($ac_try" in
18927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18928   *) ac_try_echo=$ac_try;;
18929 esac
18930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18931   (eval "$ac_try") 2>&5
18932   ac_status=$?
18933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18934   (exit $ac_status); }; }; then
18935   ac_cv_func_crypt=yes
18936 else
18937   echo "$as_me: failed program was:" >&5
18938 sed 's/^/| /' conftest.$ac_ext >&5
18939
18940         ac_cv_func_crypt=no
18941 fi
18942
18943 rm -f core conftest.err conftest.$ac_objext \
18944       conftest$ac_exeext conftest.$ac_ext
18945 fi
18946 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
18947 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
18948 if test $ac_cv_func_crypt = yes; then
18949   :
18950 else
18951   { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
18952 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
18953 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
18954   echo $ECHO_N "(cached) $ECHO_C" >&6
18955 else
18956   ac_check_lib_save_LIBS=$LIBS
18957 LIBS="-lcrypt  $LIBS"
18958 cat >conftest.$ac_ext <<_ACEOF
18959 /* confdefs.h.  */
18960 _ACEOF
18961 cat confdefs.h >>conftest.$ac_ext
18962 cat >>conftest.$ac_ext <<_ACEOF
18963 /* end confdefs.h.  */
18964
18965 /* Override any GCC internal prototype to avoid an error.
18966    Use char because int might match the return type of a GCC
18967    builtin and then its argument prototype would still apply.  */
18968 #ifdef __cplusplus
18969 extern "C"
18970 #endif
18971 char crypt ();
18972 int
18973 main ()
18974 {
18975 return crypt ();
18976   ;
18977   return 0;
18978 }
18979 _ACEOF
18980 rm -f conftest.$ac_objext conftest$ac_exeext
18981 if { (ac_try="$ac_link"
18982 case "(($ac_try" in
18983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18984   *) ac_try_echo=$ac_try;;
18985 esac
18986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18987   (eval "$ac_link") 2>conftest.er1
18988   ac_status=$?
18989   grep -v '^ *+' conftest.er1 >conftest.err
18990   rm -f conftest.er1
18991   cat conftest.err >&5
18992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993   (exit $ac_status); } &&
18994          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18995   { (case "(($ac_try" in
18996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18997   *) ac_try_echo=$ac_try;;
18998 esac
18999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19000   (eval "$ac_try") 2>&5
19001   ac_status=$?
19002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003   (exit $ac_status); }; } &&
19004          { ac_try='test -s conftest$ac_exeext'
19005   { (case "(($ac_try" in
19006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19007   *) ac_try_echo=$ac_try;;
19008 esac
19009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19010   (eval "$ac_try") 2>&5
19011   ac_status=$?
19012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013   (exit $ac_status); }; }; then
19014   ac_cv_lib_crypt_crypt=yes
19015 else
19016   echo "$as_me: failed program was:" >&5
19017 sed 's/^/| /' conftest.$ac_ext >&5
19018
19019         ac_cv_lib_crypt_crypt=no
19020 fi
19021
19022 rm -f core conftest.err conftest.$ac_objext \
19023       conftest$ac_exeext conftest.$ac_ext
19024 LIBS=$ac_check_lib_save_LIBS
19025 fi
19026 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
19027 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
19028 if test $ac_cv_lib_crypt_crypt = yes; then
19029   POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
19030 fi
19031
19032 fi
19033
19034       SQL_INCLUDE=-I$POSTGRESQL_INCDIR
19035       SQL_LFLAGS=$POSTGRESQL_LFLAGS
19036       SQL_BINDIR=$POSTGRESQL_BINDIR
19037       cat >>confdefs.h <<\_ACEOF
19038 #define HAVE_POSTGRESQL 1
19039 _ACEOF
19040
19041       { echo "$as_me:$LINENO: result: yes" >&5
19042 echo "${ECHO_T}yes" >&6; }
19043       db_found=yes
19044       support_postgresql=yes
19045       db_type=PostgreSQL
19046       DB_TYPE=postgresql
19047   else
19048       { echo "$as_me:$LINENO: result: no" >&5
19049 echo "${ECHO_T}no" >&6; }
19050   fi
19051
19052 else
19053
19054   { echo "$as_me:$LINENO: result: no" >&5
19055 echo "${ECHO_T}no" >&6; }
19056
19057 fi
19058
19059
19060
19061
19062
19063
19064
19065
19066 db_found=no
19067 { echo "$as_me:$LINENO: checking for MySQL support" >&5
19068 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
19069
19070 # Check whether --with-mysql was given.
19071 if test "${with_mysql+set}" = set; then
19072   withval=$with_mysql;
19073   if test "$withval" != "no"; then
19074         if test "$withval" = "yes"; then
19075            if test -f /usr/local/mysql/include/mysql/mysql.h; then
19076                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
19077                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
19078                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
19079                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
19080                    else
19081                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
19082                    fi
19083                    MYSQL_BINDIR=/usr/local/mysql/bin
19084            elif test -f /usr/include/mysql/mysql.h; then
19085                    MYSQL_INCDIR=/usr/include/mysql
19086                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
19087                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
19088                            MYSQL_LIBDIR=/usr/lib64/mysql
19089                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
19090                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
19091                            MYSQL_LIBDIR=/usr/lib/mysql
19092                    else
19093                            MYSQL_LIBDIR=/usr/lib
19094                    fi
19095                    MYSQL_BINDIR=/usr/bin
19096            elif test -f /usr/include/mysql.h; then
19097                    MYSQL_INCDIR=/usr/include
19098                    if test -f /usr/lib64/libmysqlclient_r.a \
19099                         -o -f /usr/lib64/libmysqlclient_r.so; then
19100                            MYSQL_LIBDIR=/usr/lib64
19101                    else
19102                            MYSQL_LIBDIR=/usr/lib
19103                    fi
19104                    MYSQL_BINDIR=/usr/bin
19105            elif test -f /usr/local/include/mysql/mysql.h; then
19106                    MYSQL_INCDIR=/usr/local/include/mysql
19107                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
19108                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
19109                            MYSQL_LIBDIR=/usr/local/lib64/mysql
19110                    else
19111                            MYSQL_LIBDIR=/usr/local/lib/mysql
19112                    fi
19113                    MYSQL_BINDIR=/usr/local/bin
19114            elif test -f /usr/local/include/mysql.h; then
19115                    MYSQL_INCDIR=/usr/local/include
19116                    if test -f /usr/local/lib64/libmysqlclient_r.a \
19117                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
19118                            MYSQL_LIBDIR=/usr/local/lib64
19119                    else
19120                            MYSQL_LIBDIR=/usr/local/lib
19121                    fi
19122                    MYSQL_BINDIR=/usr/local/bin
19123            else
19124               { echo "$as_me:$LINENO: result: no" >&5
19125 echo "${ECHO_T}no" >&6; }
19126               { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
19127 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
19128    { (exit 1); exit 1; }; }
19129            fi
19130         else
19131            if test -f $withval/include/mysql/mysql.h; then
19132               MYSQL_INCDIR=$withval/include/mysql
19133               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
19134                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
19135                  MYSQL_LIBDIR=$withval/lib64/mysql
19136               else
19137                  MYSQL_LIBDIR=$withval/lib/mysql
19138                  # Solaris ...
19139                  if test -f $withval/lib/libmysqlclient_r.so; then
19140                     MYSQL_LIBDIR=$withval/lib
19141                  fi
19142               fi
19143               MYSQL_BINDIR=$withval/bin
19144            elif test -f $withval/include/mysql.h; then
19145               MYSQL_INCDIR=$withval/include
19146               if test -f $withval/lib64/libmysqlclient_r.a \
19147                    -o -f $withval/lib64/libmysqlclient_r.so; then
19148                  MYSQL_LIBDIR=$withval/lib64
19149               else
19150                  MYSQL_LIBDIR=$withval/lib
19151               fi
19152               MYSQL_BINDIR=$withval/bin
19153            else
19154               { echo "$as_me:$LINENO: result: no" >&5
19155 echo "${ECHO_T}no" >&6; }
19156               { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
19157 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
19158    { (exit 1); exit 1; }; }
19159            fi
19160         fi
19161     SQL_INCLUDE=-I$MYSQL_INCDIR
19162     if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
19163          -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
19164        SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
19165        cat >>confdefs.h <<\_ACEOF
19166 #define HAVE_THREAD_SAFE_MYSQL 1
19167 _ACEOF
19168
19169     fi
19170     SQL_BINDIR=$MYSQL_BINDIR
19171
19172     cat >>confdefs.h <<\_ACEOF
19173 #define HAVE_MYSQL 1
19174 _ACEOF
19175
19176     { echo "$as_me:$LINENO: result: yes" >&5
19177 echo "${ECHO_T}yes" >&6; }
19178     db_found=yes
19179     support_mysql=yes
19180     db_type=MySQL
19181     DB_TYPE=mysql
19182
19183   else
19184         { echo "$as_me:$LINENO: result: no" >&5
19185 echo "${ECHO_T}no" >&6; }
19186   fi
19187
19188
19189 fi
19190
19191
19192
19193 # Check whether --with-embedded-mysql was given.
19194 if test "${with_embedded_mysql+set}" = set; then
19195   withval=$with_embedded_mysql;
19196   if test "$withval" != "no"; then
19197         if test "$withval" = "yes"; then
19198                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
19199                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
19200                         if test -d /usr/local/mysql/lib64/mysql; then
19201                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
19202                         else
19203                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
19204                         fi
19205                         MYSQL_BINDIR=/usr/local/mysql/bin
19206                 elif test -f /usr/include/mysql/mysql.h; then
19207                         MYSQL_INCDIR=/usr/include/mysql
19208                         if test -d /usr/lib64/mysql; then
19209                                 MYSQL_LIBDIR=/usr/lib64/mysql
19210                         else
19211                                 MYSQL_LIBDIR=/usr/lib/mysql
19212                         fi
19213                         MYSQL_BINDIR=/usr/bin
19214                 elif test -f /usr/include/mysql.h; then
19215                         MYSQL_INCDIR=/usr/include
19216                         if test -d /usr/lib64; then
19217                                 MYSQL_LIBDIR=/usr/lib64
19218                         else
19219                                 MYSQL_LIBDIR=/usr/lib
19220                         fi
19221                         MYSQL_BINDIR=/usr/bin
19222                 elif test -f /usr/local/include/mysql/mysql.h; then
19223                         MYSQL_INCDIR=/usr/local/include/mysql
19224                         if test -d /usr/local/lib64/mysql; then
19225                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
19226                         else
19227                                 MYSQL_LIBDIR=/usr/local/lib/mysql
19228                         fi
19229                         MYSQL_BINDIR=/usr/local/bin
19230                 elif test -f /usr/local/include/mysql.h; then
19231                         MYSQL_INCDIR=/usr/local/include
19232                         if test -d /usr/local/lib64; then
19233                                 MYSQL_LIBDIR=/usr/local/lib64
19234                         else
19235                                 MYSQL_LIBDIR=/usr/local/lib
19236                         fi
19237                         MYSQL_BINDIR=/usr/local/bin
19238                 else
19239                    { echo "$as_me:$LINENO: result: no" >&5
19240 echo "${ECHO_T}no" >&6; }
19241                    { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
19242 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
19243    { (exit 1); exit 1; }; }
19244                 fi
19245         else
19246                 if test -f $withval/include/mysql/mysql.h; then
19247                         MYSQL_INCDIR=$withval/include/mysql
19248                         if test -d $withval/lib64/mysql; then
19249                                 MYSQL_LIBDIR=$withval/lib64/mysql
19250                         else
19251                                 MYSQL_LIBDIR=$withval/lib/mysql
19252                         fi
19253                         MYSQL_BINDIR=$withval/bin
19254                 elif test -f $withval/include/mysql.h; then
19255                         MYSQL_INCDIR=$withval/include
19256                         if test -d $withval/lib64; then
19257                                 MYSQL_LIBDIR=$withval/lib64
19258                         else
19259                                 MYSQL_LIBDIR=$withval/lib
19260                         fi
19261                         MYSQL_BINDIR=$withval/bin
19262                 else
19263                    { echo "$as_me:$LINENO: result: no" >&5
19264 echo "${ECHO_T}no" >&6; }
19265                    { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
19266 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
19267    { (exit 1); exit 1; }; }
19268                 fi
19269         fi
19270     SQL_INCLUDE=-I$MYSQL_INCDIR
19271     SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
19272     SQL_BINDIR=$MYSQL_BINDIR
19273
19274     cat >>confdefs.h <<\_ACEOF
19275 #define HAVE_MYSQL 1
19276 _ACEOF
19277
19278     cat >>confdefs.h <<\_ACEOF
19279 #define HAVE_EMBEDDED_MYSQL 1
19280 _ACEOF
19281
19282     { echo "$as_me:$LINENO: result: yes" >&5
19283 echo "${ECHO_T}yes" >&6; }
19284     db_found=yes
19285     support_mysql=yes
19286     db_type=MySQL
19287     DB_TYPE=mysql
19288
19289   else
19290         { echo "$as_me:$LINENO: result: no" >&5
19291 echo "${ECHO_T}no" >&6; }
19292   fi
19293
19294
19295 fi
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306 db_found=no
19307 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
19308 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
19309
19310 # Check whether --with-sqlite3 was given.
19311 if test "${with_sqlite3+set}" = set; then
19312   withval=$with_sqlite3;
19313   if test "$withval" != "no"; then
19314      if test "$withval" = "yes"; then
19315         if test -f /usr/local/include/sqlite3.h; then
19316            SQLITE_INCDIR=/usr/local/include
19317            if test -d /usr/local/lib64; then
19318               SQLITE_LIBDIR=/usr/local/lib64
19319            else
19320               SQLITE_LIBDIR=/usr/local/lib
19321            fi
19322            SQLITE_BINDIR=/usr/local/bin
19323         elif test -f /usr/include/sqlite3.h; then
19324            SQLITE_INCDIR=/usr/include
19325            if test -d /usr/lib64; then
19326               SQLITE_LIBDIR=/usr/lib64
19327            else
19328               SQLITE_LIBDIR=/usr/lib
19329            fi
19330            SQLITE_BINDIR=/usr/bin
19331         elif test -f $prefix/include/sqlite3.h; then
19332            SQLITE_INCDIR=$prefix/include
19333            if test -d $prefix/lib64; then
19334               SQLITE_LIBDIR=$prefix/lib64
19335            else
19336               SQLITE_LIBDIR=$prefix/lib
19337            fi
19338            SQLITE_BINDIR=$prefix/bin
19339         else
19340            { echo "$as_me:$LINENO: result: no" >&5
19341 echo "${ECHO_T}no" >&6; }
19342            { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
19343 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
19344    { (exit 1); exit 1; }; }
19345         fi
19346      else
19347         if test -f $withval/sqlite3.h; then
19348            SQLITE_INCDIR=$withval
19349            SQLITE_LIBDIR=$withval
19350            SQLITE_BINDIR=$withval
19351         elif test -f $withval/include/sqlite3.h; then
19352            SQLITE_INCDIR=$withval/include
19353            if test -d $withval/lib64; then
19354               SQLITE_LIBDIR=$withval/lib64
19355            else
19356               SQLITE_LIBDIR=$withval/lib
19357            fi
19358            SQLITE_BINDIR=$withval/bin
19359         else
19360            { echo "$as_me:$LINENO: result: no" >&5
19361 echo "${ECHO_T}no" >&6; }
19362            { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
19363 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
19364    { (exit 1); exit 1; }; }
19365         fi
19366      fi
19367      SQL_INCLUDE=-I$SQLITE_INCDIR
19368      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
19369      SQL_BINDIR=$SQLITE_BINDIR
19370
19371      cat >>confdefs.h <<\_ACEOF
19372 #define HAVE_SQLITE3 1
19373 _ACEOF
19374
19375      { echo "$as_me:$LINENO: result: yes" >&5
19376 echo "${ECHO_T}yes" >&6; }
19377      db_found=yes
19378      support_sqlite3=yes
19379      db_type=SQLite3
19380      DB_TYPE=sqlite3
19381
19382   else
19383      { echo "$as_me:$LINENO: result: no" >&5
19384 echo "${ECHO_T}no" >&6; }
19385   fi
19386
19387 else
19388
19389   { echo "$as_me:$LINENO: result: no" >&5
19390 echo "${ECHO_T}no" >&6; }
19391
19392 fi
19393
19394
19395
19396
19397
19398
19399
19400
19401 db_found=no
19402 { echo "$as_me:$LINENO: checking for SQLite support" >&5
19403 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
19404
19405 # Check whether --with-sqlite was given.
19406 if test "${with_sqlite+set}" = set; then
19407   withval=$with_sqlite;
19408   if test "$withval" != "no"; then
19409      if test "$withval" = "yes"; then
19410         if test -f /usr/local/include/sqlite.h; then
19411            SQLITE_INCDIR=/usr/local/include
19412            if test -d /usr/local/lib64; then
19413               SQLITE_LIBDIR=/usr/local/lib64
19414            else
19415               SQLITE_LIBDIR=/usr/local/lib
19416            fi
19417            SQLITE_BINDIR=/usr/local/bin
19418         elif test -f /usr/include/sqlite.h; then
19419            SQLITE_INCDIR=/usr/include
19420            if test -d /usr/lib64; then
19421               SQLITE_LIBDIR=/usr/lib64
19422            else
19423               SQLITE_LIBDIR=/usr/lib
19424            fi
19425            SQLITE_BINDIR=/usr/bin
19426         elif test -f $prefix/include/sqlite.h; then
19427            SQLITE_INCDIR=$prefix/include
19428            if test -d $prefix/lib64; then
19429               SQLITE_LIBDIR=$prefix/lib64
19430            else
19431               SQLITE_LIBDIR=$prefix/lib
19432            fi
19433            SQLITE_BINDIR=$prefix/bin
19434         else
19435            { echo "$as_me:$LINENO: result: no" >&5
19436 echo "${ECHO_T}no" >&6; }
19437            { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
19438 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
19439    { (exit 1); exit 1; }; }
19440         fi
19441      else
19442         if test -f $withval/sqlite.h; then
19443            SQLITE_INCDIR=$withval
19444            SQLITE_LIBDIR=$withval
19445            SQLITE_BINDIR=$withval
19446         elif test -f $withval/include/sqlite.h; then
19447            SQLITE_INCDIR=$withval/include
19448            if test -d $withval/lib64; then
19449               SQLITE_LIBDIR=$withval/lib64
19450            else
19451               SQLITE_LIBDIR=$withval/lib
19452            fi
19453            SQLITE_BINDIR=$withval/bin
19454         else
19455            { echo "$as_me:$LINENO: result: no" >&5
19456 echo "${ECHO_T}no" >&6; }
19457            { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
19458 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
19459    { (exit 1); exit 1; }; }
19460         fi
19461      fi
19462      SQL_INCLUDE=-I$SQLITE_INCDIR
19463      SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
19464      SQL_BINDIR=$SQLITE_BINDIR
19465
19466      cat >>confdefs.h <<\_ACEOF
19467 #define HAVE_SQLITE 1
19468 _ACEOF
19469
19470      { echo "$as_me:$LINENO: result: yes" >&5
19471 echo "${ECHO_T}yes" >&6; }
19472      db_found=yes
19473      support_sqlite=yes
19474      db_type=SQLite
19475      DB_TYPE=sqlite
19476
19477   else
19478      { echo "$as_me:$LINENO: result: no" >&5
19479 echo "${ECHO_T}no" >&6; }
19480   fi
19481
19482 else
19483
19484   { echo "$as_me:$LINENO: result: no" >&5
19485 echo "${ECHO_T}no" >&6; }
19486
19487 fi
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498 cat >>confdefs.h <<\_ACEOF
19499 #define PROTOTYPES 1
19500 _ACEOF
19501
19502
19503 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
19504     if test -z "$CCOPTS"; then
19505         CCOPTS='-g -O2 -Wall'
19506     fi
19507     CFLAGS="$CCOPTS"
19508 fi
19509
19510
19511
19512
19513 largefile_support="no"
19514
19515    # Check whether --enable-largefile was given.
19516 if test "${enable_largefile+set}" = set; then
19517   enableval=$enable_largefile;
19518 fi
19519
19520    if test "$enable_largefile" != no; then
19521      if test -n "$ac_tool_prefix"; then
19522   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
19523 set dummy ${ac_tool_prefix}getconf; ac_word=$2
19524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19526 if test "${ac_cv_prog_GETCONF+set}" = set; then
19527   echo $ECHO_N "(cached) $ECHO_C" >&6
19528 else
19529   if test -n "$GETCONF"; then
19530   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
19531 else
19532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19533 for as_dir in $PATH
19534 do
19535   IFS=$as_save_IFS
19536   test -z "$as_dir" && as_dir=.
19537   for ac_exec_ext in '' $ac_executable_extensions; do
19538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19539     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
19540     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19541     break 2
19542   fi
19543 done
19544 done
19545 IFS=$as_save_IFS
19546
19547 fi
19548 fi
19549 GETCONF=$ac_cv_prog_GETCONF
19550 if test -n "$GETCONF"; then
19551   { echo "$as_me:$LINENO: result: $GETCONF" >&5
19552 echo "${ECHO_T}$GETCONF" >&6; }
19553 else
19554   { echo "$as_me:$LINENO: result: no" >&5
19555 echo "${ECHO_T}no" >&6; }
19556 fi
19557
19558
19559 fi
19560 if test -z "$ac_cv_prog_GETCONF"; then
19561   ac_ct_GETCONF=$GETCONF
19562   # Extract the first word of "getconf", so it can be a program name with args.
19563 set dummy getconf; ac_word=$2
19564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19566 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
19567   echo $ECHO_N "(cached) $ECHO_C" >&6
19568 else
19569   if test -n "$ac_ct_GETCONF"; then
19570   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
19571 else
19572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19573 for as_dir in $PATH
19574 do
19575   IFS=$as_save_IFS
19576   test -z "$as_dir" && as_dir=.
19577   for ac_exec_ext in '' $ac_executable_extensions; do
19578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
19579     ac_cv_prog_ac_ct_GETCONF="getconf"
19580     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19581     break 2
19582   fi
19583 done
19584 done
19585 IFS=$as_save_IFS
19586
19587 fi
19588 fi
19589 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
19590 if test -n "$ac_ct_GETCONF"; then
19591   { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
19592 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
19593 else
19594   { echo "$as_me:$LINENO: result: no" >&5
19595 echo "${ECHO_T}no" >&6; }
19596 fi
19597
19598   if test "x$ac_ct_GETCONF" = x; then
19599     GETCONF=""
19600   else
19601     case $cross_compiling:$ac_tool_warned in
19602 yes:)
19603 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19604 whose name does not start with the host triplet.  If you think this
19605 configuration is useful to you, please write to autoconf@gnu.org." >&5
19606 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19607 whose name does not start with the host triplet.  If you think this
19608 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19609 ac_tool_warned=yes ;;
19610 esac
19611     GETCONF=$ac_ct_GETCONF
19612   fi
19613 else
19614   GETCONF="$ac_cv_prog_GETCONF"
19615 fi
19616
19617      { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
19618 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
19619 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
19620   echo $ECHO_N "(cached) $ECHO_C" >&6
19621 else
19622   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
19623         ac_cv_sys_largefile_CFLAGS=no
19624         case "$host_os" in
19625            # IRIX 6.2 and later require cc -n32.
19626            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
19627              if test "$GCC" != yes; then
19628                ac_cv_sys_largefile_CFLAGS=-n32
19629              fi
19630              ac_save_CC="$CC"
19631              CC="$CC $ac_cv_sys_largefile_CFLAGS"
19632              cat >conftest.$ac_ext <<_ACEOF
19633 /* confdefs.h.  */
19634 _ACEOF
19635 cat confdefs.h >>conftest.$ac_ext
19636 cat >>conftest.$ac_ext <<_ACEOF
19637 /* end confdefs.h.  */
19638
19639 int
19640 main ()
19641 {
19642
19643   ;
19644   return 0;
19645 }
19646 _ACEOF
19647 rm -f conftest.$ac_objext conftest$ac_exeext
19648 if { (ac_try="$ac_link"
19649 case "(($ac_try" in
19650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19651   *) ac_try_echo=$ac_try;;
19652 esac
19653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19654   (eval "$ac_link") 2>conftest.er1
19655   ac_status=$?
19656   grep -v '^ *+' conftest.er1 >conftest.err
19657   rm -f conftest.er1
19658   cat conftest.err >&5
19659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660   (exit $ac_status); } &&
19661          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19662   { (case "(($ac_try" in
19663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19664   *) ac_try_echo=$ac_try;;
19665 esac
19666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19667   (eval "$ac_try") 2>&5
19668   ac_status=$?
19669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670   (exit $ac_status); }; } &&
19671          { ac_try='test -s conftest$ac_exeext'
19672   { (case "(($ac_try" in
19673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19674   *) ac_try_echo=$ac_try;;
19675 esac
19676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19677   (eval "$ac_try") 2>&5
19678   ac_status=$?
19679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680   (exit $ac_status); }; }; then
19681   :
19682 else
19683   echo "$as_me: failed program was:" >&5
19684 sed 's/^/| /' conftest.$ac_ext >&5
19685
19686         ac_cv_sys_largefile_CFLAGS=no
19687 fi
19688
19689 rm -f core conftest.err conftest.$ac_objext \
19690       conftest$ac_exeext conftest.$ac_ext
19691              CC="$ac_save_CC"
19692            esac
19693       }
19694 fi
19695 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
19696 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
19697      { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
19698 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
19699 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
19700   echo $ECHO_N "(cached) $ECHO_C" >&6
19701 else
19702   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
19703         ac_cv_sys_largefile_LDFLAGS=no
19704
19705       }
19706 fi
19707 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
19708 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
19709      { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
19710 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
19711 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
19712   echo $ECHO_N "(cached) $ECHO_C" >&6
19713 else
19714   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
19715         ac_cv_sys_largefile_LIBS=no
19716
19717       }
19718 fi
19719 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
19720 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
19721
19722      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19723        case "$ac_flag" in
19724        no) ;;
19725        -D_FILE_OFFSET_BITS=*) ;;
19726        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
19727        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
19728        -D?* | -I?*)
19729          case "$ac_flag" in
19730    no) ;;
19731    ?*)
19732      case "$CPPFLAGS" in
19733      '') CPPFLAGS="$ac_flag" ;;
19734      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
19735      esac ;;
19736    esac ;;
19737        *)
19738          case "$ac_flag" in
19739    no) ;;
19740    ?*)
19741      case "$CFLAGS" in
19742      '') CFLAGS="$ac_flag" ;;
19743      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
19744      esac ;;
19745    esac ;;
19746        esac
19747      done
19748      case "$ac_cv_sys_largefile_LDFLAGS" in
19749    no) ;;
19750    ?*)
19751      case "$LDFLAGS" in
19752      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
19753      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
19754      esac ;;
19755    esac
19756      case "$ac_cv_sys_largefile_LIBS" in
19757    no) ;;
19758    ?*)
19759      case "$LIBS" in
19760      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
19761      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
19762      esac ;;
19763    esac
19764      { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
19765 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
19766 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
19767   echo $ECHO_N "(cached) $ECHO_C" >&6
19768 else
19769   ac_cv_sys_file_offset_bits=no
19770       ac_cv_sys_file_offset_bits=64
19771       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19772         case "$ac_flag" in
19773         -D_FILE_OFFSET_BITS)
19774           ac_cv_sys_file_offset_bits=1 ;;
19775         -D_FILE_OFFSET_BITS=*)
19776           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19777         esac
19778       done
19779
19780 fi
19781 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19782 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
19783    if test "$ac_cv_sys_file_offset_bits" != no; then
19784
19785 cat >>confdefs.h <<_ACEOF
19786 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19787 _ACEOF
19788
19789    fi
19790      { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
19791 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
19792 if test "${ac_cv_sys_largefile_source+set}" = set; then
19793   echo $ECHO_N "(cached) $ECHO_C" >&6
19794 else
19795   ac_cv_sys_largefile_source=no
19796       ac_cv_sys_largefile_source=1
19797       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19798         case "$ac_flag" in
19799         -D_LARGEFILE_SOURCE)
19800           ac_cv_sys_largefile_source=1 ;;
19801         -D_LARGEFILE_SOURCE=*)
19802           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19803         esac
19804       done
19805
19806 fi
19807 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19808 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19809    if test "$ac_cv_sys_largefile_source" != no; then
19810
19811 cat >>confdefs.h <<_ACEOF
19812 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19813 _ACEOF
19814
19815    fi
19816      { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
19817 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
19818 if test "${ac_cv_sys_large_files+set}" = set; then
19819   echo $ECHO_N "(cached) $ECHO_C" >&6
19820 else
19821   ac_cv_sys_large_files=no
19822       ac_cv_sys_large_files=1
19823       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
19824         case "$ac_flag" in
19825         -D_LARGE_FILES)
19826           ac_cv_sys_large_files=1 ;;
19827         -D_LARGE_FILES=*)
19828           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
19829         esac
19830       done
19831
19832 fi
19833 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19834 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
19835    if test "$ac_cv_sys_large_files" != no; then
19836
19837 cat >>confdefs.h <<_ACEOF
19838 #define _LARGE_FILES $ac_cv_sys_large_files
19839 _ACEOF
19840
19841    fi
19842    fi
19843
19844
19845
19846 { echo "$as_me:$LINENO: checking for X" >&5
19847 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
19848
19849
19850 # Check whether --with-x was given.
19851 if test "${with_x+set}" = set; then
19852   withval=$with_x;
19853 fi
19854
19855 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19856 if test "x$with_x" = xno; then
19857   # The user explicitly disabled X.
19858   have_x=disabled
19859 else
19860   case $x_includes,$x_libraries in #(
19861     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
19862 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
19863    { (exit 1); exit 1; }; };; #(
19864     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
19865   echo $ECHO_N "(cached) $ECHO_C" >&6
19866 else
19867   # One or both of the vars are not set, and there is no cached value.
19868 ac_x_includes=no ac_x_libraries=no
19869 rm -f -r conftest.dir
19870 if mkdir conftest.dir; then
19871   cd conftest.dir
19872   cat >Imakefile <<'_ACEOF'
19873 incroot:
19874         @echo incroot='${INCROOT}'
19875 usrlibdir:
19876         @echo usrlibdir='${USRLIBDIR}'
19877 libdir:
19878         @echo libdir='${LIBDIR}'
19879 _ACEOF
19880   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19881     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19882     for ac_var in incroot usrlibdir libdir; do
19883       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19884     done
19885     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19886     for ac_extension in a so sl; do
19887       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19888          test -f "$ac_im_libdir/libX11.$ac_extension"; then
19889         ac_im_usrlibdir=$ac_im_libdir; break
19890       fi
19891     done
19892     # Screen out bogus values from the imake configuration.  They are
19893     # bogus both because they are the default anyway, and because
19894     # using them would break gcc on systems where it needs fixed includes.
19895     case $ac_im_incroot in
19896         /usr/include) ac_x_includes= ;;
19897         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19898     esac
19899     case $ac_im_usrlibdir in
19900         /usr/lib | /lib) ;;
19901         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19902     esac
19903   fi
19904   cd ..
19905   rm -f -r conftest.dir
19906 fi
19907
19908 # Standard set of common directories for X headers.
19909 # Check X11 before X11Rn because it is often a symlink to the current release.
19910 ac_x_header_dirs='
19911 /usr/X11/include
19912 /usr/X11R6/include
19913 /usr/X11R5/include
19914 /usr/X11R4/include
19915
19916 /usr/include/X11
19917 /usr/include/X11R6
19918 /usr/include/X11R5
19919 /usr/include/X11R4
19920
19921 /usr/local/X11/include
19922 /usr/local/X11R6/include
19923 /usr/local/X11R5/include
19924 /usr/local/X11R4/include
19925
19926 /usr/local/include/X11
19927 /usr/local/include/X11R6
19928 /usr/local/include/X11R5
19929 /usr/local/include/X11R4
19930
19931 /usr/X386/include
19932 /usr/x386/include
19933 /usr/XFree86/include/X11
19934
19935 /usr/include
19936 /usr/local/include
19937 /usr/unsupported/include
19938 /usr/athena/include
19939 /usr/local/x11r5/include
19940 /usr/lpp/Xamples/include
19941
19942 /usr/openwin/include
19943 /usr/openwin/share/include'
19944
19945 if test "$ac_x_includes" = no; then
19946   # Guess where to find include files, by looking for Xlib.h.
19947   # First, try using that file with no special directory specified.
19948   cat >conftest.$ac_ext <<_ACEOF
19949 /* confdefs.h.  */
19950 _ACEOF
19951 cat confdefs.h >>conftest.$ac_ext
19952 cat >>conftest.$ac_ext <<_ACEOF
19953 /* end confdefs.h.  */
19954 #include <X11/Xlib.h>
19955 _ACEOF
19956 if { (ac_try="$ac_cpp conftest.$ac_ext"
19957 case "(($ac_try" in
19958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19959   *) ac_try_echo=$ac_try;;
19960 esac
19961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19962   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19963   ac_status=$?
19964   grep -v '^ *+' conftest.er1 >conftest.err
19965   rm -f conftest.er1
19966   cat conftest.err >&5
19967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968   (exit $ac_status); } >/dev/null; then
19969   if test -s conftest.err; then
19970     ac_cpp_err=$ac_c_preproc_warn_flag
19971     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19972   else
19973     ac_cpp_err=
19974   fi
19975 else
19976   ac_cpp_err=yes
19977 fi
19978 if test -z "$ac_cpp_err"; then
19979   # We can compile using X headers with no special include directory.
19980 ac_x_includes=
19981 else
19982   echo "$as_me: failed program was:" >&5
19983 sed 's/^/| /' conftest.$ac_ext >&5
19984
19985   for ac_dir in $ac_x_header_dirs; do
19986   if test -r "$ac_dir/X11/Xlib.h"; then
19987     ac_x_includes=$ac_dir
19988     break
19989   fi
19990 done
19991 fi
19992
19993 rm -f conftest.err conftest.$ac_ext
19994 fi # $ac_x_includes = no
19995
19996 if test "$ac_x_libraries" = no; then
19997   # Check for the libraries.
19998   # See if we find them without any special options.
19999   # Don't add to $LIBS permanently.
20000   ac_save_LIBS=$LIBS
20001   LIBS="-lXt $LIBS"
20002   cat >conftest.$ac_ext <<_ACEOF
20003 /* confdefs.h.  */
20004 _ACEOF
20005 cat confdefs.h >>conftest.$ac_ext
20006 cat >>conftest.$ac_ext <<_ACEOF
20007 /* end confdefs.h.  */
20008 #include <X11/Xlib.h>
20009 int
20010 main ()
20011 {
20012 XrmInitialize ()
20013   ;
20014   return 0;
20015 }
20016 _ACEOF
20017 rm -f conftest.$ac_objext conftest$ac_exeext
20018 if { (ac_try="$ac_link"
20019 case "(($ac_try" in
20020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20021   *) ac_try_echo=$ac_try;;
20022 esac
20023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20024   (eval "$ac_link") 2>conftest.er1
20025   ac_status=$?
20026   grep -v '^ *+' conftest.er1 >conftest.err
20027   rm -f conftest.er1
20028   cat conftest.err >&5
20029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030   (exit $ac_status); } &&
20031          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20032   { (case "(($ac_try" in
20033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20034   *) ac_try_echo=$ac_try;;
20035 esac
20036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20037   (eval "$ac_try") 2>&5
20038   ac_status=$?
20039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040   (exit $ac_status); }; } &&
20041          { ac_try='test -s conftest$ac_exeext'
20042   { (case "(($ac_try" in
20043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20044   *) ac_try_echo=$ac_try;;
20045 esac
20046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047   (eval "$ac_try") 2>&5
20048   ac_status=$?
20049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050   (exit $ac_status); }; }; then
20051   LIBS=$ac_save_LIBS
20052 # We can link X programs with no special library path.
20053 ac_x_libraries=
20054 else
20055   echo "$as_me: failed program was:" >&5
20056 sed 's/^/| /' conftest.$ac_ext >&5
20057
20058         LIBS=$ac_save_LIBS
20059 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20060 do
20061   # Don't even attempt the hair of trying to link an X program!
20062   for ac_extension in a so sl; do
20063     if test -r "$ac_dir/libXt.$ac_extension"; then
20064       ac_x_libraries=$ac_dir
20065       break 2
20066     fi
20067   done
20068 done
20069 fi
20070
20071 rm -f core conftest.err conftest.$ac_objext \
20072       conftest$ac_exeext conftest.$ac_ext
20073 fi # $ac_x_libraries = no
20074
20075 case $ac_x_includes,$ac_x_libraries in #(
20076   no,* | *,no | *\'*)
20077     # Didn't find X, or a directory has "'" in its name.
20078     ac_cv_have_x="have_x=no";; #(
20079   *)
20080     # Record where we found X for the cache.
20081     ac_cv_have_x="have_x=yes\
20082         ac_x_includes='$ac_x_includes'\
20083         ac_x_libraries='$ac_x_libraries'"
20084 esac
20085 fi
20086 ;; #(
20087     *) have_x=yes;;
20088   esac
20089   eval "$ac_cv_have_x"
20090 fi # $with_x != no
20091
20092 if test "$have_x" != yes; then
20093   { echo "$as_me:$LINENO: result: $have_x" >&5
20094 echo "${ECHO_T}$have_x" >&6; }
20095   no_x=yes
20096 else
20097   # If each of the values was on the command line, it overrides each guess.
20098   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20099   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20100   # Update the cache value to reflect the command line values.
20101   ac_cv_have_x="have_x=yes\
20102         ac_x_includes='$x_includes'\
20103         ac_x_libraries='$x_libraries'"
20104   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
20105 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
20106 fi
20107
20108 if test "$no_x" = yes; then
20109   # Not all programs may use this symbol, but it does not hurt to define it.
20110
20111 cat >>confdefs.h <<\_ACEOF
20112 #define X_DISPLAY_MISSING 1
20113 _ACEOF
20114
20115   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20116 else
20117   if test -n "$x_includes"; then
20118     X_CFLAGS="$X_CFLAGS -I$x_includes"
20119   fi
20120
20121   # It would also be nice to do this for all -L options, not just this one.
20122   if test -n "$x_libraries"; then
20123     X_LIBS="$X_LIBS -L$x_libraries"
20124     # For Solaris; some versions of Sun CC require a space after -R and
20125     # others require no space.  Words are not sufficient . . . .
20126     case `(uname -sr) 2>/dev/null` in
20127     "SunOS 5"*)
20128       { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
20129 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
20130       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20131       cat >conftest.$ac_ext <<_ACEOF
20132 /* confdefs.h.  */
20133 _ACEOF
20134 cat confdefs.h >>conftest.$ac_ext
20135 cat >>conftest.$ac_ext <<_ACEOF
20136 /* end confdefs.h.  */
20137
20138 int
20139 main ()
20140 {
20141
20142   ;
20143   return 0;
20144 }
20145 _ACEOF
20146 rm -f conftest.$ac_objext conftest$ac_exeext
20147 if { (ac_try="$ac_link"
20148 case "(($ac_try" in
20149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20150   *) ac_try_echo=$ac_try;;
20151 esac
20152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20153   (eval "$ac_link") 2>conftest.er1
20154   ac_status=$?
20155   grep -v '^ *+' conftest.er1 >conftest.err
20156   rm -f conftest.er1
20157   cat conftest.err >&5
20158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159   (exit $ac_status); } &&
20160          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20161   { (case "(($ac_try" in
20162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20163   *) ac_try_echo=$ac_try;;
20164 esac
20165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20166   (eval "$ac_try") 2>&5
20167   ac_status=$?
20168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169   (exit $ac_status); }; } &&
20170          { ac_try='test -s conftest$ac_exeext'
20171   { (case "(($ac_try" in
20172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20173   *) ac_try_echo=$ac_try;;
20174 esac
20175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20176   (eval "$ac_try") 2>&5
20177   ac_status=$?
20178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179   (exit $ac_status); }; }; then
20180   ac_R_nospace=yes
20181 else
20182   echo "$as_me: failed program was:" >&5
20183 sed 's/^/| /' conftest.$ac_ext >&5
20184
20185         ac_R_nospace=no
20186 fi
20187
20188 rm -f core conftest.err conftest.$ac_objext \
20189       conftest$ac_exeext conftest.$ac_ext
20190       if test $ac_R_nospace = yes; then
20191         { echo "$as_me:$LINENO: result: no" >&5
20192 echo "${ECHO_T}no" >&6; }
20193         X_LIBS="$X_LIBS -R$x_libraries"
20194       else
20195         LIBS="$ac_xsave_LIBS -R $x_libraries"
20196         cat >conftest.$ac_ext <<_ACEOF
20197 /* confdefs.h.  */
20198 _ACEOF
20199 cat confdefs.h >>conftest.$ac_ext
20200 cat >>conftest.$ac_ext <<_ACEOF
20201 /* end confdefs.h.  */
20202
20203 int
20204 main ()
20205 {
20206
20207   ;
20208   return 0;
20209 }
20210 _ACEOF
20211 rm -f conftest.$ac_objext conftest$ac_exeext
20212 if { (ac_try="$ac_link"
20213 case "(($ac_try" in
20214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20215   *) ac_try_echo=$ac_try;;
20216 esac
20217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20218   (eval "$ac_link") 2>conftest.er1
20219   ac_status=$?
20220   grep -v '^ *+' conftest.er1 >conftest.err
20221   rm -f conftest.er1
20222   cat conftest.err >&5
20223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20224   (exit $ac_status); } &&
20225          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20226   { (case "(($ac_try" in
20227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20228   *) ac_try_echo=$ac_try;;
20229 esac
20230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20231   (eval "$ac_try") 2>&5
20232   ac_status=$?
20233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234   (exit $ac_status); }; } &&
20235          { ac_try='test -s conftest$ac_exeext'
20236   { (case "(($ac_try" in
20237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20238   *) ac_try_echo=$ac_try;;
20239 esac
20240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20241   (eval "$ac_try") 2>&5
20242   ac_status=$?
20243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20244   (exit $ac_status); }; }; then
20245   ac_R_space=yes
20246 else
20247   echo "$as_me: failed program was:" >&5
20248 sed 's/^/| /' conftest.$ac_ext >&5
20249
20250         ac_R_space=no
20251 fi
20252
20253 rm -f core conftest.err conftest.$ac_objext \
20254       conftest$ac_exeext conftest.$ac_ext
20255         if test $ac_R_space = yes; then
20256           { echo "$as_me:$LINENO: result: yes" >&5
20257 echo "${ECHO_T}yes" >&6; }
20258           X_LIBS="$X_LIBS -R $x_libraries"
20259         else
20260           { echo "$as_me:$LINENO: result: neither works" >&5
20261 echo "${ECHO_T}neither works" >&6; }
20262         fi
20263       fi
20264       LIBS=$ac_xsave_LIBS
20265     esac
20266   fi
20267
20268   # Check for system-dependent libraries X programs must link with.
20269   # Do this before checking for the system-independent R6 libraries
20270   # (-lICE), since we may need -lsocket or whatever for X linking.
20271
20272   if test "$ISC" = yes; then
20273     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20274   else
20275     # Martyn Johnson says this is needed for Ultrix, if the X
20276     # libraries were built with DECnet support.  And Karl Berry says
20277     # the Alpha needs dnet_stub (dnet does not exist).
20278     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20279     cat >conftest.$ac_ext <<_ACEOF
20280 /* confdefs.h.  */
20281 _ACEOF
20282 cat confdefs.h >>conftest.$ac_ext
20283 cat >>conftest.$ac_ext <<_ACEOF
20284 /* end confdefs.h.  */
20285
20286 /* Override any GCC internal prototype to avoid an error.
20287    Use char because int might match the return type of a GCC
20288    builtin and then its argument prototype would still apply.  */
20289 #ifdef __cplusplus
20290 extern "C"
20291 #endif
20292 char XOpenDisplay ();
20293 int
20294 main ()
20295 {
20296 return XOpenDisplay ();
20297   ;
20298   return 0;
20299 }
20300 _ACEOF
20301 rm -f conftest.$ac_objext conftest$ac_exeext
20302 if { (ac_try="$ac_link"
20303 case "(($ac_try" in
20304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20305   *) ac_try_echo=$ac_try;;
20306 esac
20307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20308   (eval "$ac_link") 2>conftest.er1
20309   ac_status=$?
20310   grep -v '^ *+' conftest.er1 >conftest.err
20311   rm -f conftest.er1
20312   cat conftest.err >&5
20313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314   (exit $ac_status); } &&
20315          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20316   { (case "(($ac_try" in
20317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20318   *) ac_try_echo=$ac_try;;
20319 esac
20320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20321   (eval "$ac_try") 2>&5
20322   ac_status=$?
20323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324   (exit $ac_status); }; } &&
20325          { ac_try='test -s conftest$ac_exeext'
20326   { (case "(($ac_try" in
20327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328   *) ac_try_echo=$ac_try;;
20329 esac
20330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20331   (eval "$ac_try") 2>&5
20332   ac_status=$?
20333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334   (exit $ac_status); }; }; then
20335   :
20336 else
20337   echo "$as_me: failed program was:" >&5
20338 sed 's/^/| /' conftest.$ac_ext >&5
20339
20340         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
20341 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
20342 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
20343   echo $ECHO_N "(cached) $ECHO_C" >&6
20344 else
20345   ac_check_lib_save_LIBS=$LIBS
20346 LIBS="-ldnet  $LIBS"
20347 cat >conftest.$ac_ext <<_ACEOF
20348 /* confdefs.h.  */
20349 _ACEOF
20350 cat confdefs.h >>conftest.$ac_ext
20351 cat >>conftest.$ac_ext <<_ACEOF
20352 /* end confdefs.h.  */
20353
20354 /* Override any GCC internal prototype to avoid an error.
20355    Use char because int might match the return type of a GCC
20356    builtin and then its argument prototype would still apply.  */
20357 #ifdef __cplusplus
20358 extern "C"
20359 #endif
20360 char dnet_ntoa ();
20361 int
20362 main ()
20363 {
20364 return dnet_ntoa ();
20365   ;
20366   return 0;
20367 }
20368 _ACEOF
20369 rm -f conftest.$ac_objext conftest$ac_exeext
20370 if { (ac_try="$ac_link"
20371 case "(($ac_try" in
20372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20373   *) ac_try_echo=$ac_try;;
20374 esac
20375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20376   (eval "$ac_link") 2>conftest.er1
20377   ac_status=$?
20378   grep -v '^ *+' conftest.er1 >conftest.err
20379   rm -f conftest.er1
20380   cat conftest.err >&5
20381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382   (exit $ac_status); } &&
20383          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20384   { (case "(($ac_try" in
20385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20386   *) ac_try_echo=$ac_try;;
20387 esac
20388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20389   (eval "$ac_try") 2>&5
20390   ac_status=$?
20391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392   (exit $ac_status); }; } &&
20393          { ac_try='test -s conftest$ac_exeext'
20394   { (case "(($ac_try" in
20395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20396   *) ac_try_echo=$ac_try;;
20397 esac
20398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20399   (eval "$ac_try") 2>&5
20400   ac_status=$?
20401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402   (exit $ac_status); }; }; then
20403   ac_cv_lib_dnet_dnet_ntoa=yes
20404 else
20405   echo "$as_me: failed program was:" >&5
20406 sed 's/^/| /' conftest.$ac_ext >&5
20407
20408         ac_cv_lib_dnet_dnet_ntoa=no
20409 fi
20410
20411 rm -f core conftest.err conftest.$ac_objext \
20412       conftest$ac_exeext conftest.$ac_ext
20413 LIBS=$ac_check_lib_save_LIBS
20414 fi
20415 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20416 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20417 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
20418   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20419 fi
20420
20421     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20422       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
20423 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
20424 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
20425   echo $ECHO_N "(cached) $ECHO_C" >&6
20426 else
20427   ac_check_lib_save_LIBS=$LIBS
20428 LIBS="-ldnet_stub  $LIBS"
20429 cat >conftest.$ac_ext <<_ACEOF
20430 /* confdefs.h.  */
20431 _ACEOF
20432 cat confdefs.h >>conftest.$ac_ext
20433 cat >>conftest.$ac_ext <<_ACEOF
20434 /* end confdefs.h.  */
20435
20436 /* Override any GCC internal prototype to avoid an error.
20437    Use char because int might match the return type of a GCC
20438    builtin and then its argument prototype would still apply.  */
20439 #ifdef __cplusplus
20440 extern "C"
20441 #endif
20442 char dnet_ntoa ();
20443 int
20444 main ()
20445 {
20446 return dnet_ntoa ();
20447   ;
20448   return 0;
20449 }
20450 _ACEOF
20451 rm -f conftest.$ac_objext conftest$ac_exeext
20452 if { (ac_try="$ac_link"
20453 case "(($ac_try" in
20454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20455   *) ac_try_echo=$ac_try;;
20456 esac
20457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20458   (eval "$ac_link") 2>conftest.er1
20459   ac_status=$?
20460   grep -v '^ *+' conftest.er1 >conftest.err
20461   rm -f conftest.er1
20462   cat conftest.err >&5
20463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464   (exit $ac_status); } &&
20465          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20466   { (case "(($ac_try" in
20467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20468   *) ac_try_echo=$ac_try;;
20469 esac
20470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20471   (eval "$ac_try") 2>&5
20472   ac_status=$?
20473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474   (exit $ac_status); }; } &&
20475          { ac_try='test -s conftest$ac_exeext'
20476   { (case "(($ac_try" in
20477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20478   *) ac_try_echo=$ac_try;;
20479 esac
20480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20481   (eval "$ac_try") 2>&5
20482   ac_status=$?
20483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20484   (exit $ac_status); }; }; then
20485   ac_cv_lib_dnet_stub_dnet_ntoa=yes
20486 else
20487   echo "$as_me: failed program was:" >&5
20488 sed 's/^/| /' conftest.$ac_ext >&5
20489
20490         ac_cv_lib_dnet_stub_dnet_ntoa=no
20491 fi
20492
20493 rm -f core conftest.err conftest.$ac_objext \
20494       conftest$ac_exeext conftest.$ac_ext
20495 LIBS=$ac_check_lib_save_LIBS
20496 fi
20497 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20498 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20499 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20500   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20501 fi
20502
20503     fi
20504 fi
20505
20506 rm -f core conftest.err conftest.$ac_objext \
20507       conftest$ac_exeext conftest.$ac_ext
20508     LIBS="$ac_xsave_LIBS"
20509
20510     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20511     # to get the SysV transport functions.
20512     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20513     # needs -lnsl.
20514     # The nsl library prevents programs from opening the X display
20515     # on Irix 5.2, according to T.E. Dickey.
20516     # The functions gethostbyname, getservbyname, and inet_addr are
20517     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20518     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
20519 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
20520 if test "${ac_cv_func_gethostbyname+set}" = set; then
20521   echo $ECHO_N "(cached) $ECHO_C" >&6
20522 else
20523   cat >conftest.$ac_ext <<_ACEOF
20524 /* confdefs.h.  */
20525 _ACEOF
20526 cat confdefs.h >>conftest.$ac_ext
20527 cat >>conftest.$ac_ext <<_ACEOF
20528 /* end confdefs.h.  */
20529 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20530    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20531 #define gethostbyname innocuous_gethostbyname
20532
20533 /* System header to define __stub macros and hopefully few prototypes,
20534     which can conflict with char gethostbyname (); below.
20535     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20536     <limits.h> exists even on freestanding compilers.  */
20537
20538 #ifdef __STDC__
20539 # include <limits.h>
20540 #else
20541 # include <assert.h>
20542 #endif
20543
20544 #undef gethostbyname
20545
20546 /* Override any GCC internal prototype to avoid an error.
20547    Use char because int might match the return type of a GCC
20548    builtin and then its argument prototype would still apply.  */
20549 #ifdef __cplusplus
20550 extern "C"
20551 #endif
20552 char gethostbyname ();
20553 /* The GNU C library defines this for functions which it implements
20554     to always fail with ENOSYS.  Some functions are actually named
20555     something starting with __ and the normal name is an alias.  */
20556 #if defined __stub_gethostbyname || defined __stub___gethostbyname
20557 choke me
20558 #endif
20559
20560 int
20561 main ()
20562 {
20563 return gethostbyname ();
20564   ;
20565   return 0;
20566 }
20567 _ACEOF
20568 rm -f conftest.$ac_objext conftest$ac_exeext
20569 if { (ac_try="$ac_link"
20570 case "(($ac_try" in
20571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572   *) ac_try_echo=$ac_try;;
20573 esac
20574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20575   (eval "$ac_link") 2>conftest.er1
20576   ac_status=$?
20577   grep -v '^ *+' conftest.er1 >conftest.err
20578   rm -f conftest.er1
20579   cat conftest.err >&5
20580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581   (exit $ac_status); } &&
20582          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20583   { (case "(($ac_try" in
20584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20585   *) ac_try_echo=$ac_try;;
20586 esac
20587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20588   (eval "$ac_try") 2>&5
20589   ac_status=$?
20590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591   (exit $ac_status); }; } &&
20592          { ac_try='test -s conftest$ac_exeext'
20593   { (case "(($ac_try" in
20594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20595   *) ac_try_echo=$ac_try;;
20596 esac
20597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20598   (eval "$ac_try") 2>&5
20599   ac_status=$?
20600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601   (exit $ac_status); }; }; then
20602   ac_cv_func_gethostbyname=yes
20603 else
20604   echo "$as_me: failed program was:" >&5
20605 sed 's/^/| /' conftest.$ac_ext >&5
20606
20607         ac_cv_func_gethostbyname=no
20608 fi
20609
20610 rm -f core conftest.err conftest.$ac_objext \
20611       conftest$ac_exeext conftest.$ac_ext
20612 fi
20613 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20614 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
20615
20616     if test $ac_cv_func_gethostbyname = no; then
20617       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20618 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
20619 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20620   echo $ECHO_N "(cached) $ECHO_C" >&6
20621 else
20622   ac_check_lib_save_LIBS=$LIBS
20623 LIBS="-lnsl  $LIBS"
20624 cat >conftest.$ac_ext <<_ACEOF
20625 /* confdefs.h.  */
20626 _ACEOF
20627 cat confdefs.h >>conftest.$ac_ext
20628 cat >>conftest.$ac_ext <<_ACEOF
20629 /* end confdefs.h.  */
20630
20631 /* Override any GCC internal prototype to avoid an error.
20632    Use char because int might match the return type of a GCC
20633    builtin and then its argument prototype would still apply.  */
20634 #ifdef __cplusplus
20635 extern "C"
20636 #endif
20637 char gethostbyname ();
20638 int
20639 main ()
20640 {
20641 return gethostbyname ();
20642   ;
20643   return 0;
20644 }
20645 _ACEOF
20646 rm -f conftest.$ac_objext conftest$ac_exeext
20647 if { (ac_try="$ac_link"
20648 case "(($ac_try" in
20649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20650   *) ac_try_echo=$ac_try;;
20651 esac
20652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20653   (eval "$ac_link") 2>conftest.er1
20654   ac_status=$?
20655   grep -v '^ *+' conftest.er1 >conftest.err
20656   rm -f conftest.er1
20657   cat conftest.err >&5
20658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659   (exit $ac_status); } &&
20660          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20661   { (case "(($ac_try" in
20662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20663   *) ac_try_echo=$ac_try;;
20664 esac
20665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20666   (eval "$ac_try") 2>&5
20667   ac_status=$?
20668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669   (exit $ac_status); }; } &&
20670          { ac_try='test -s conftest$ac_exeext'
20671   { (case "(($ac_try" in
20672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20673   *) ac_try_echo=$ac_try;;
20674 esac
20675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20676   (eval "$ac_try") 2>&5
20677   ac_status=$?
20678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679   (exit $ac_status); }; }; then
20680   ac_cv_lib_nsl_gethostbyname=yes
20681 else
20682   echo "$as_me: failed program was:" >&5
20683 sed 's/^/| /' conftest.$ac_ext >&5
20684
20685         ac_cv_lib_nsl_gethostbyname=no
20686 fi
20687
20688 rm -f core conftest.err conftest.$ac_objext \
20689       conftest$ac_exeext conftest.$ac_ext
20690 LIBS=$ac_check_lib_save_LIBS
20691 fi
20692 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20693 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
20694 if test $ac_cv_lib_nsl_gethostbyname = yes; then
20695   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20696 fi
20697
20698       if test $ac_cv_lib_nsl_gethostbyname = no; then
20699         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20700 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
20701 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20702   echo $ECHO_N "(cached) $ECHO_C" >&6
20703 else
20704   ac_check_lib_save_LIBS=$LIBS
20705 LIBS="-lbsd  $LIBS"
20706 cat >conftest.$ac_ext <<_ACEOF
20707 /* confdefs.h.  */
20708 _ACEOF
20709 cat confdefs.h >>conftest.$ac_ext
20710 cat >>conftest.$ac_ext <<_ACEOF
20711 /* end confdefs.h.  */
20712
20713 /* Override any GCC internal prototype to avoid an error.
20714    Use char because int might match the return type of a GCC
20715    builtin and then its argument prototype would still apply.  */
20716 #ifdef __cplusplus
20717 extern "C"
20718 #endif
20719 char gethostbyname ();
20720 int
20721 main ()
20722 {
20723 return gethostbyname ();
20724   ;
20725   return 0;
20726 }
20727 _ACEOF
20728 rm -f conftest.$ac_objext conftest$ac_exeext
20729 if { (ac_try="$ac_link"
20730 case "(($ac_try" in
20731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20732   *) ac_try_echo=$ac_try;;
20733 esac
20734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20735   (eval "$ac_link") 2>conftest.er1
20736   ac_status=$?
20737   grep -v '^ *+' conftest.er1 >conftest.err
20738   rm -f conftest.er1
20739   cat conftest.err >&5
20740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20741   (exit $ac_status); } &&
20742          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20743   { (case "(($ac_try" in
20744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20745   *) ac_try_echo=$ac_try;;
20746 esac
20747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20748   (eval "$ac_try") 2>&5
20749   ac_status=$?
20750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751   (exit $ac_status); }; } &&
20752          { ac_try='test -s conftest$ac_exeext'
20753   { (case "(($ac_try" in
20754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20755   *) ac_try_echo=$ac_try;;
20756 esac
20757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20758   (eval "$ac_try") 2>&5
20759   ac_status=$?
20760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761   (exit $ac_status); }; }; then
20762   ac_cv_lib_bsd_gethostbyname=yes
20763 else
20764   echo "$as_me: failed program was:" >&5
20765 sed 's/^/| /' conftest.$ac_ext >&5
20766
20767         ac_cv_lib_bsd_gethostbyname=no
20768 fi
20769
20770 rm -f core conftest.err conftest.$ac_objext \
20771       conftest$ac_exeext conftest.$ac_ext
20772 LIBS=$ac_check_lib_save_LIBS
20773 fi
20774 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20775 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
20776 if test $ac_cv_lib_bsd_gethostbyname = yes; then
20777   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20778 fi
20779
20780       fi
20781     fi
20782
20783     # lieder@skyler.mavd.honeywell.com says without -lsocket,
20784     # socket/setsockopt and other routines are undefined under SCO ODT
20785     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
20786     # on later versions), says Simon Leinen: it contains gethostby*
20787     # variants that don't use the name server (or something).  -lsocket
20788     # must be given before -lnsl if both are needed.  We assume that
20789     # if connect needs -lnsl, so does gethostbyname.
20790     { echo "$as_me:$LINENO: checking for connect" >&5
20791 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
20792 if test "${ac_cv_func_connect+set}" = set; then
20793   echo $ECHO_N "(cached) $ECHO_C" >&6
20794 else
20795   cat >conftest.$ac_ext <<_ACEOF
20796 /* confdefs.h.  */
20797 _ACEOF
20798 cat confdefs.h >>conftest.$ac_ext
20799 cat >>conftest.$ac_ext <<_ACEOF
20800 /* end confdefs.h.  */
20801 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20802    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20803 #define connect innocuous_connect
20804
20805 /* System header to define __stub macros and hopefully few prototypes,
20806     which can conflict with char connect (); below.
20807     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20808     <limits.h> exists even on freestanding compilers.  */
20809
20810 #ifdef __STDC__
20811 # include <limits.h>
20812 #else
20813 # include <assert.h>
20814 #endif
20815
20816 #undef connect
20817
20818 /* Override any GCC internal prototype to avoid an error.
20819    Use char because int might match the return type of a GCC
20820    builtin and then its argument prototype would still apply.  */
20821 #ifdef __cplusplus
20822 extern "C"
20823 #endif
20824 char connect ();
20825 /* The GNU C library defines this for functions which it implements
20826     to always fail with ENOSYS.  Some functions are actually named
20827     something starting with __ and the normal name is an alias.  */
20828 #if defined __stub_connect || defined __stub___connect
20829 choke me
20830 #endif
20831
20832 int
20833 main ()
20834 {
20835 return connect ();
20836   ;
20837   return 0;
20838 }
20839 _ACEOF
20840 rm -f conftest.$ac_objext conftest$ac_exeext
20841 if { (ac_try="$ac_link"
20842 case "(($ac_try" in
20843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20844   *) ac_try_echo=$ac_try;;
20845 esac
20846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20847   (eval "$ac_link") 2>conftest.er1
20848   ac_status=$?
20849   grep -v '^ *+' conftest.er1 >conftest.err
20850   rm -f conftest.er1
20851   cat conftest.err >&5
20852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853   (exit $ac_status); } &&
20854          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20855   { (case "(($ac_try" in
20856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20857   *) ac_try_echo=$ac_try;;
20858 esac
20859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20860   (eval "$ac_try") 2>&5
20861   ac_status=$?
20862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863   (exit $ac_status); }; } &&
20864          { ac_try='test -s conftest$ac_exeext'
20865   { (case "(($ac_try" in
20866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20867   *) ac_try_echo=$ac_try;;
20868 esac
20869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20870   (eval "$ac_try") 2>&5
20871   ac_status=$?
20872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20873   (exit $ac_status); }; }; then
20874   ac_cv_func_connect=yes
20875 else
20876   echo "$as_me: failed program was:" >&5
20877 sed 's/^/| /' conftest.$ac_ext >&5
20878
20879         ac_cv_func_connect=no
20880 fi
20881
20882 rm -f core conftest.err conftest.$ac_objext \
20883       conftest$ac_exeext conftest.$ac_ext
20884 fi
20885 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20886 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
20887
20888     if test $ac_cv_func_connect = no; then
20889       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20890 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20891 if test "${ac_cv_lib_socket_connect+set}" = set; then
20892   echo $ECHO_N "(cached) $ECHO_C" >&6
20893 else
20894   ac_check_lib_save_LIBS=$LIBS
20895 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20896 cat >conftest.$ac_ext <<_ACEOF
20897 /* confdefs.h.  */
20898 _ACEOF
20899 cat confdefs.h >>conftest.$ac_ext
20900 cat >>conftest.$ac_ext <<_ACEOF
20901 /* end confdefs.h.  */
20902
20903 /* Override any GCC internal prototype to avoid an error.
20904    Use char because int might match the return type of a GCC
20905    builtin and then its argument prototype would still apply.  */
20906 #ifdef __cplusplus
20907 extern "C"
20908 #endif
20909 char connect ();
20910 int
20911 main ()
20912 {
20913 return connect ();
20914   ;
20915   return 0;
20916 }
20917 _ACEOF
20918 rm -f conftest.$ac_objext conftest$ac_exeext
20919 if { (ac_try="$ac_link"
20920 case "(($ac_try" in
20921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20922   *) ac_try_echo=$ac_try;;
20923 esac
20924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20925   (eval "$ac_link") 2>conftest.er1
20926   ac_status=$?
20927   grep -v '^ *+' conftest.er1 >conftest.err
20928   rm -f conftest.er1
20929   cat conftest.err >&5
20930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20931   (exit $ac_status); } &&
20932          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20933   { (case "(($ac_try" in
20934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20935   *) ac_try_echo=$ac_try;;
20936 esac
20937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20938   (eval "$ac_try") 2>&5
20939   ac_status=$?
20940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941   (exit $ac_status); }; } &&
20942          { ac_try='test -s conftest$ac_exeext'
20943   { (case "(($ac_try" in
20944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20945   *) ac_try_echo=$ac_try;;
20946 esac
20947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20948   (eval "$ac_try") 2>&5
20949   ac_status=$?
20950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951   (exit $ac_status); }; }; then
20952   ac_cv_lib_socket_connect=yes
20953 else
20954   echo "$as_me: failed program was:" >&5
20955 sed 's/^/| /' conftest.$ac_ext >&5
20956
20957         ac_cv_lib_socket_connect=no
20958 fi
20959
20960 rm -f core conftest.err conftest.$ac_objext \
20961       conftest$ac_exeext conftest.$ac_ext
20962 LIBS=$ac_check_lib_save_LIBS
20963 fi
20964 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20965 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
20966 if test $ac_cv_lib_socket_connect = yes; then
20967   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20968 fi
20969
20970     fi
20971
20972     # Guillermo Gomez says -lposix is necessary on A/UX.
20973     { echo "$as_me:$LINENO: checking for remove" >&5
20974 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
20975 if test "${ac_cv_func_remove+set}" = set; then
20976   echo $ECHO_N "(cached) $ECHO_C" >&6
20977 else
20978   cat >conftest.$ac_ext <<_ACEOF
20979 /* confdefs.h.  */
20980 _ACEOF
20981 cat confdefs.h >>conftest.$ac_ext
20982 cat >>conftest.$ac_ext <<_ACEOF
20983 /* end confdefs.h.  */
20984 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20985    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20986 #define remove innocuous_remove
20987
20988 /* System header to define __stub macros and hopefully few prototypes,
20989     which can conflict with char remove (); below.
20990     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20991     <limits.h> exists even on freestanding compilers.  */
20992
20993 #ifdef __STDC__
20994 # include <limits.h>
20995 #else
20996 # include <assert.h>
20997 #endif
20998
20999 #undef remove
21000
21001 /* Override any GCC internal prototype to avoid an error.
21002    Use char because int might match the return type of a GCC
21003    builtin and then its argument prototype would still apply.  */
21004 #ifdef __cplusplus
21005 extern "C"
21006 #endif
21007 char remove ();
21008 /* The GNU C library defines this for functions which it implements
21009     to always fail with ENOSYS.  Some functions are actually named
21010     something starting with __ and the normal name is an alias.  */
21011 #if defined __stub_remove || defined __stub___remove
21012 choke me
21013 #endif
21014
21015 int
21016 main ()
21017 {
21018 return remove ();
21019   ;
21020   return 0;
21021 }
21022 _ACEOF
21023 rm -f conftest.$ac_objext conftest$ac_exeext
21024 if { (ac_try="$ac_link"
21025 case "(($ac_try" in
21026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21027   *) ac_try_echo=$ac_try;;
21028 esac
21029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21030   (eval "$ac_link") 2>conftest.er1
21031   ac_status=$?
21032   grep -v '^ *+' conftest.er1 >conftest.err
21033   rm -f conftest.er1
21034   cat conftest.err >&5
21035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036   (exit $ac_status); } &&
21037          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21038   { (case "(($ac_try" in
21039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21040   *) ac_try_echo=$ac_try;;
21041 esac
21042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21043   (eval "$ac_try") 2>&5
21044   ac_status=$?
21045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046   (exit $ac_status); }; } &&
21047          { ac_try='test -s conftest$ac_exeext'
21048   { (case "(($ac_try" in
21049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21050   *) ac_try_echo=$ac_try;;
21051 esac
21052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21053   (eval "$ac_try") 2>&5
21054   ac_status=$?
21055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21056   (exit $ac_status); }; }; then
21057   ac_cv_func_remove=yes
21058 else
21059   echo "$as_me: failed program was:" >&5
21060 sed 's/^/| /' conftest.$ac_ext >&5
21061
21062         ac_cv_func_remove=no
21063 fi
21064
21065 rm -f core conftest.err conftest.$ac_objext \
21066       conftest$ac_exeext conftest.$ac_ext
21067 fi
21068 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
21069 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
21070
21071     if test $ac_cv_func_remove = no; then
21072       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
21073 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
21074 if test "${ac_cv_lib_posix_remove+set}" = set; then
21075   echo $ECHO_N "(cached) $ECHO_C" >&6
21076 else
21077   ac_check_lib_save_LIBS=$LIBS
21078 LIBS="-lposix  $LIBS"
21079 cat >conftest.$ac_ext <<_ACEOF
21080 /* confdefs.h.  */
21081 _ACEOF
21082 cat confdefs.h >>conftest.$ac_ext
21083 cat >>conftest.$ac_ext <<_ACEOF
21084 /* end confdefs.h.  */
21085
21086 /* Override any GCC internal prototype to avoid an error.
21087    Use char because int might match the return type of a GCC
21088    builtin and then its argument prototype would still apply.  */
21089 #ifdef __cplusplus
21090 extern "C"
21091 #endif
21092 char remove ();
21093 int
21094 main ()
21095 {
21096 return remove ();
21097   ;
21098   return 0;
21099 }
21100 _ACEOF
21101 rm -f conftest.$ac_objext conftest$ac_exeext
21102 if { (ac_try="$ac_link"
21103 case "(($ac_try" in
21104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21105   *) ac_try_echo=$ac_try;;
21106 esac
21107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21108   (eval "$ac_link") 2>conftest.er1
21109   ac_status=$?
21110   grep -v '^ *+' conftest.er1 >conftest.err
21111   rm -f conftest.er1
21112   cat conftest.err >&5
21113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114   (exit $ac_status); } &&
21115          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21116   { (case "(($ac_try" in
21117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21118   *) ac_try_echo=$ac_try;;
21119 esac
21120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21121   (eval "$ac_try") 2>&5
21122   ac_status=$?
21123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124   (exit $ac_status); }; } &&
21125          { ac_try='test -s conftest$ac_exeext'
21126   { (case "(($ac_try" in
21127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128   *) ac_try_echo=$ac_try;;
21129 esac
21130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21131   (eval "$ac_try") 2>&5
21132   ac_status=$?
21133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134   (exit $ac_status); }; }; then
21135   ac_cv_lib_posix_remove=yes
21136 else
21137   echo "$as_me: failed program was:" >&5
21138 sed 's/^/| /' conftest.$ac_ext >&5
21139
21140         ac_cv_lib_posix_remove=no
21141 fi
21142
21143 rm -f core conftest.err conftest.$ac_objext \
21144       conftest$ac_exeext conftest.$ac_ext
21145 LIBS=$ac_check_lib_save_LIBS
21146 fi
21147 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
21148 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
21149 if test $ac_cv_lib_posix_remove = yes; then
21150   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21151 fi
21152
21153     fi
21154
21155     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
21156     { echo "$as_me:$LINENO: checking for shmat" >&5
21157 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
21158 if test "${ac_cv_func_shmat+set}" = set; then
21159   echo $ECHO_N "(cached) $ECHO_C" >&6
21160 else
21161   cat >conftest.$ac_ext <<_ACEOF
21162 /* confdefs.h.  */
21163 _ACEOF
21164 cat confdefs.h >>conftest.$ac_ext
21165 cat >>conftest.$ac_ext <<_ACEOF
21166 /* end confdefs.h.  */
21167 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
21168    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21169 #define shmat innocuous_shmat
21170
21171 /* System header to define __stub macros and hopefully few prototypes,
21172     which can conflict with char shmat (); below.
21173     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21174     <limits.h> exists even on freestanding compilers.  */
21175
21176 #ifdef __STDC__
21177 # include <limits.h>
21178 #else
21179 # include <assert.h>
21180 #endif
21181
21182 #undef shmat
21183
21184 /* Override any GCC internal prototype to avoid an error.
21185    Use char because int might match the return type of a GCC
21186    builtin and then its argument prototype would still apply.  */
21187 #ifdef __cplusplus
21188 extern "C"
21189 #endif
21190 char shmat ();
21191 /* The GNU C library defines this for functions which it implements
21192     to always fail with ENOSYS.  Some functions are actually named
21193     something starting with __ and the normal name is an alias.  */
21194 #if defined __stub_shmat || defined __stub___shmat
21195 choke me
21196 #endif
21197
21198 int
21199 main ()
21200 {
21201 return shmat ();
21202   ;
21203   return 0;
21204 }
21205 _ACEOF
21206 rm -f conftest.$ac_objext conftest$ac_exeext
21207 if { (ac_try="$ac_link"
21208 case "(($ac_try" in
21209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21210   *) ac_try_echo=$ac_try;;
21211 esac
21212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21213   (eval "$ac_link") 2>conftest.er1
21214   ac_status=$?
21215   grep -v '^ *+' conftest.er1 >conftest.err
21216   rm -f conftest.er1
21217   cat conftest.err >&5
21218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219   (exit $ac_status); } &&
21220          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21221   { (case "(($ac_try" in
21222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21223   *) ac_try_echo=$ac_try;;
21224 esac
21225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21226   (eval "$ac_try") 2>&5
21227   ac_status=$?
21228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229   (exit $ac_status); }; } &&
21230          { ac_try='test -s conftest$ac_exeext'
21231   { (case "(($ac_try" in
21232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21233   *) ac_try_echo=$ac_try;;
21234 esac
21235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21236   (eval "$ac_try") 2>&5
21237   ac_status=$?
21238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239   (exit $ac_status); }; }; then
21240   ac_cv_func_shmat=yes
21241 else
21242   echo "$as_me: failed program was:" >&5
21243 sed 's/^/| /' conftest.$ac_ext >&5
21244
21245         ac_cv_func_shmat=no
21246 fi
21247
21248 rm -f core conftest.err conftest.$ac_objext \
21249       conftest$ac_exeext conftest.$ac_ext
21250 fi
21251 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
21252 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
21253
21254     if test $ac_cv_func_shmat = no; then
21255       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
21256 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
21257 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21258   echo $ECHO_N "(cached) $ECHO_C" >&6
21259 else
21260   ac_check_lib_save_LIBS=$LIBS
21261 LIBS="-lipc  $LIBS"
21262 cat >conftest.$ac_ext <<_ACEOF
21263 /* confdefs.h.  */
21264 _ACEOF
21265 cat confdefs.h >>conftest.$ac_ext
21266 cat >>conftest.$ac_ext <<_ACEOF
21267 /* end confdefs.h.  */
21268
21269 /* Override any GCC internal prototype to avoid an error.
21270    Use char because int might match the return type of a GCC
21271    builtin and then its argument prototype would still apply.  */
21272 #ifdef __cplusplus
21273 extern "C"
21274 #endif
21275 char shmat ();
21276 int
21277 main ()
21278 {
21279 return shmat ();
21280   ;
21281   return 0;
21282 }
21283 _ACEOF
21284 rm -f conftest.$ac_objext conftest$ac_exeext
21285 if { (ac_try="$ac_link"
21286 case "(($ac_try" in
21287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21288   *) ac_try_echo=$ac_try;;
21289 esac
21290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21291   (eval "$ac_link") 2>conftest.er1
21292   ac_status=$?
21293   grep -v '^ *+' conftest.er1 >conftest.err
21294   rm -f conftest.er1
21295   cat conftest.err >&5
21296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297   (exit $ac_status); } &&
21298          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21299   { (case "(($ac_try" in
21300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21301   *) ac_try_echo=$ac_try;;
21302 esac
21303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21304   (eval "$ac_try") 2>&5
21305   ac_status=$?
21306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307   (exit $ac_status); }; } &&
21308          { ac_try='test -s conftest$ac_exeext'
21309   { (case "(($ac_try" in
21310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21311   *) ac_try_echo=$ac_try;;
21312 esac
21313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21314   (eval "$ac_try") 2>&5
21315   ac_status=$?
21316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317   (exit $ac_status); }; }; then
21318   ac_cv_lib_ipc_shmat=yes
21319 else
21320   echo "$as_me: failed program was:" >&5
21321 sed 's/^/| /' conftest.$ac_ext >&5
21322
21323         ac_cv_lib_ipc_shmat=no
21324 fi
21325
21326 rm -f core conftest.err conftest.$ac_objext \
21327       conftest$ac_exeext conftest.$ac_ext
21328 LIBS=$ac_check_lib_save_LIBS
21329 fi
21330 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
21331 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
21332 if test $ac_cv_lib_ipc_shmat = yes; then
21333   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
21334 fi
21335
21336     fi
21337   fi
21338
21339   # Check for libraries that X11R6 Xt/Xaw programs need.
21340   ac_save_LDFLAGS=$LDFLAGS
21341   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21342   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21343   # check for ICE first), but we must link in the order -lSM -lICE or
21344   # we get undefined symbols.  So assume we have SM if we have ICE.
21345   # These have to be linked with before -lX11, unlike the other
21346   # libraries we check for below, so use a different variable.
21347   # John Interrante, Karl Berry
21348   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21349 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
21350 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21351   echo $ECHO_N "(cached) $ECHO_C" >&6
21352 else
21353   ac_check_lib_save_LIBS=$LIBS
21354 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
21355 cat >conftest.$ac_ext <<_ACEOF
21356 /* confdefs.h.  */
21357 _ACEOF
21358 cat confdefs.h >>conftest.$ac_ext
21359 cat >>conftest.$ac_ext <<_ACEOF
21360 /* end confdefs.h.  */
21361
21362 /* Override any GCC internal prototype to avoid an error.
21363    Use char because int might match the return type of a GCC
21364    builtin and then its argument prototype would still apply.  */
21365 #ifdef __cplusplus
21366 extern "C"
21367 #endif
21368 char IceConnectionNumber ();
21369 int
21370 main ()
21371 {
21372 return IceConnectionNumber ();
21373   ;
21374   return 0;
21375 }
21376 _ACEOF
21377 rm -f conftest.$ac_objext conftest$ac_exeext
21378 if { (ac_try="$ac_link"
21379 case "(($ac_try" in
21380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21381   *) ac_try_echo=$ac_try;;
21382 esac
21383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21384   (eval "$ac_link") 2>conftest.er1
21385   ac_status=$?
21386   grep -v '^ *+' conftest.er1 >conftest.err
21387   rm -f conftest.er1
21388   cat conftest.err >&5
21389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390   (exit $ac_status); } &&
21391          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21392   { (case "(($ac_try" in
21393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21394   *) ac_try_echo=$ac_try;;
21395 esac
21396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21397   (eval "$ac_try") 2>&5
21398   ac_status=$?
21399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400   (exit $ac_status); }; } &&
21401          { ac_try='test -s conftest$ac_exeext'
21402   { (case "(($ac_try" in
21403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21404   *) ac_try_echo=$ac_try;;
21405 esac
21406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21407   (eval "$ac_try") 2>&5
21408   ac_status=$?
21409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410   (exit $ac_status); }; }; then
21411   ac_cv_lib_ICE_IceConnectionNumber=yes
21412 else
21413   echo "$as_me: failed program was:" >&5
21414 sed 's/^/| /' conftest.$ac_ext >&5
21415
21416         ac_cv_lib_ICE_IceConnectionNumber=no
21417 fi
21418
21419 rm -f core conftest.err conftest.$ac_objext \
21420       conftest$ac_exeext conftest.$ac_ext
21421 LIBS=$ac_check_lib_save_LIBS
21422 fi
21423 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21424 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
21425 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21426   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
21427 fi
21428
21429   LDFLAGS=$ac_save_LDFLAGS
21430
21431 fi
21432
21433
21434
21435
21436
21437
21438
21439
21440
21441
21442
21443
21444
21445
21446
21447
21448
21449
21450
21451
21452
21453
21454
21455
21456
21457
21458
21459
21460
21461 for ac_header in \
21462         assert.h \
21463         fcntl.h \
21464         grp.h \
21465         pwd.h \
21466         libc.h \
21467         limits.h \
21468         stdarg.h \
21469         stdlib.h \
21470         stdint.h \
21471         string.h \
21472         termios.h \
21473         termcap.h \
21474         term.h \
21475         unistd.h \
21476         sys/bitypes.h \
21477         sys/byteorder.h \
21478         sys/ioctl.h \
21479         sys/select.h \
21480         sys/sockio.h \
21481         sys/time.h \
21482         sys/socket.h \
21483         arpa/nameser.h \
21484         resolv.h \
21485         mtio.h \
21486         sys/mtio.h \
21487         sys/tape.h \
21488         regex.h \
21489
21490 do
21491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21493   { echo "$as_me:$LINENO: checking for $ac_header" >&5
21494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21496   echo $ECHO_N "(cached) $ECHO_C" >&6
21497 fi
21498 ac_res=`eval echo '${'$as_ac_Header'}'`
21499                { echo "$as_me:$LINENO: result: $ac_res" >&5
21500 echo "${ECHO_T}$ac_res" >&6; }
21501 else
21502   # Is the header compilable?
21503 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21505 cat >conftest.$ac_ext <<_ACEOF
21506 /* confdefs.h.  */
21507 _ACEOF
21508 cat confdefs.h >>conftest.$ac_ext
21509 cat >>conftest.$ac_ext <<_ACEOF
21510 /* end confdefs.h.  */
21511 $ac_includes_default
21512 #include <$ac_header>
21513 _ACEOF
21514 rm -f conftest.$ac_objext
21515 if { (ac_try="$ac_compile"
21516 case "(($ac_try" in
21517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21518   *) ac_try_echo=$ac_try;;
21519 esac
21520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21521   (eval "$ac_compile") 2>conftest.er1
21522   ac_status=$?
21523   grep -v '^ *+' conftest.er1 >conftest.err
21524   rm -f conftest.er1
21525   cat conftest.err >&5
21526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527   (exit $ac_status); } &&
21528          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21529   { (case "(($ac_try" in
21530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21531   *) ac_try_echo=$ac_try;;
21532 esac
21533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21534   (eval "$ac_try") 2>&5
21535   ac_status=$?
21536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537   (exit $ac_status); }; } &&
21538          { ac_try='test -s conftest.$ac_objext'
21539   { (case "(($ac_try" in
21540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21541   *) ac_try_echo=$ac_try;;
21542 esac
21543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21544   (eval "$ac_try") 2>&5
21545   ac_status=$?
21546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547   (exit $ac_status); }; }; then
21548   ac_header_compiler=yes
21549 else
21550   echo "$as_me: failed program was:" >&5
21551 sed 's/^/| /' conftest.$ac_ext >&5
21552
21553         ac_header_compiler=no
21554 fi
21555
21556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21557 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21558 echo "${ECHO_T}$ac_header_compiler" >&6; }
21559
21560 # Is the header present?
21561 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21562 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21563 cat >conftest.$ac_ext <<_ACEOF
21564 /* confdefs.h.  */
21565 _ACEOF
21566 cat confdefs.h >>conftest.$ac_ext
21567 cat >>conftest.$ac_ext <<_ACEOF
21568 /* end confdefs.h.  */
21569 #include <$ac_header>
21570 _ACEOF
21571 if { (ac_try="$ac_cpp conftest.$ac_ext"
21572 case "(($ac_try" in
21573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21574   *) ac_try_echo=$ac_try;;
21575 esac
21576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21577   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21578   ac_status=$?
21579   grep -v '^ *+' conftest.er1 >conftest.err
21580   rm -f conftest.er1
21581   cat conftest.err >&5
21582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583   (exit $ac_status); } >/dev/null; then
21584   if test -s conftest.err; then
21585     ac_cpp_err=$ac_c_preproc_warn_flag
21586     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21587   else
21588     ac_cpp_err=
21589   fi
21590 else
21591   ac_cpp_err=yes
21592 fi
21593 if test -z "$ac_cpp_err"; then
21594   ac_header_preproc=yes
21595 else
21596   echo "$as_me: failed program was:" >&5
21597 sed 's/^/| /' conftest.$ac_ext >&5
21598
21599   ac_header_preproc=no
21600 fi
21601
21602 rm -f conftest.err conftest.$ac_ext
21603 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21604 echo "${ECHO_T}$ac_header_preproc" >&6; }
21605
21606 # So?  What about this header?
21607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21608   yes:no: )
21609     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21610 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21611     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21612 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21613     ac_header_preproc=yes
21614     ;;
21615   no:yes:* )
21616     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21617 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21618     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21619 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21620     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21621 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21622     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21623 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21624     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21625 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21626     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21627 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21628
21629     ;;
21630 esac
21631 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21632 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21634   echo $ECHO_N "(cached) $ECHO_C" >&6
21635 else
21636   eval "$as_ac_Header=\$ac_header_preproc"
21637 fi
21638 ac_res=`eval echo '${'$as_ac_Header'}'`
21639                { echo "$as_me:$LINENO: result: $ac_res" >&5
21640 echo "${ECHO_T}$ac_res" >&6; }
21641
21642 fi
21643 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21644   cat >>confdefs.h <<_ACEOF
21645 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21646 _ACEOF
21647
21648 fi
21649
21650 done
21651
21652 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21653 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21654 if test "${ac_cv_header_stdc+set}" = set; then
21655   echo $ECHO_N "(cached) $ECHO_C" >&6
21656 else
21657   cat >conftest.$ac_ext <<_ACEOF
21658 /* confdefs.h.  */
21659 _ACEOF
21660 cat confdefs.h >>conftest.$ac_ext
21661 cat >>conftest.$ac_ext <<_ACEOF
21662 /* end confdefs.h.  */
21663 #include <stdlib.h>
21664 #include <stdarg.h>
21665 #include <string.h>
21666 #include <float.h>
21667
21668 int
21669 main ()
21670 {
21671
21672   ;
21673   return 0;
21674 }
21675 _ACEOF
21676 rm -f conftest.$ac_objext
21677 if { (ac_try="$ac_compile"
21678 case "(($ac_try" in
21679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21680   *) ac_try_echo=$ac_try;;
21681 esac
21682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21683   (eval "$ac_compile") 2>conftest.er1
21684   ac_status=$?
21685   grep -v '^ *+' conftest.er1 >conftest.err
21686   rm -f conftest.er1
21687   cat conftest.err >&5
21688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689   (exit $ac_status); } &&
21690          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21691   { (case "(($ac_try" in
21692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21693   *) ac_try_echo=$ac_try;;
21694 esac
21695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21696   (eval "$ac_try") 2>&5
21697   ac_status=$?
21698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699   (exit $ac_status); }; } &&
21700          { ac_try='test -s conftest.$ac_objext'
21701   { (case "(($ac_try" in
21702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21703   *) ac_try_echo=$ac_try;;
21704 esac
21705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21706   (eval "$ac_try") 2>&5
21707   ac_status=$?
21708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709   (exit $ac_status); }; }; then
21710   ac_cv_header_stdc=yes
21711 else
21712   echo "$as_me: failed program was:" >&5
21713 sed 's/^/| /' conftest.$ac_ext >&5
21714
21715         ac_cv_header_stdc=no
21716 fi
21717
21718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21719
21720 if test $ac_cv_header_stdc = yes; then
21721   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21722   cat >conftest.$ac_ext <<_ACEOF
21723 /* confdefs.h.  */
21724 _ACEOF
21725 cat confdefs.h >>conftest.$ac_ext
21726 cat >>conftest.$ac_ext <<_ACEOF
21727 /* end confdefs.h.  */
21728 #include <string.h>
21729
21730 _ACEOF
21731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21732   $EGREP "memchr" >/dev/null 2>&1; then
21733   :
21734 else
21735   ac_cv_header_stdc=no
21736 fi
21737 rm -f conftest*
21738
21739 fi
21740
21741 if test $ac_cv_header_stdc = yes; then
21742   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21743   cat >conftest.$ac_ext <<_ACEOF
21744 /* confdefs.h.  */
21745 _ACEOF
21746 cat confdefs.h >>conftest.$ac_ext
21747 cat >>conftest.$ac_ext <<_ACEOF
21748 /* end confdefs.h.  */
21749 #include <stdlib.h>
21750
21751 _ACEOF
21752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21753   $EGREP "free" >/dev/null 2>&1; then
21754   :
21755 else
21756   ac_cv_header_stdc=no
21757 fi
21758 rm -f conftest*
21759
21760 fi
21761
21762 if test $ac_cv_header_stdc = yes; then
21763   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21764   if test "$cross_compiling" = yes; then
21765   :
21766 else
21767   cat >conftest.$ac_ext <<_ACEOF
21768 /* confdefs.h.  */
21769 _ACEOF
21770 cat confdefs.h >>conftest.$ac_ext
21771 cat >>conftest.$ac_ext <<_ACEOF
21772 /* end confdefs.h.  */
21773 #include <ctype.h>
21774 #include <stdlib.h>
21775 #if ((' ' & 0x0FF) == 0x020)
21776 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21777 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21778 #else
21779 # define ISLOWER(c) \
21780                    (('a' <= (c) && (c) <= 'i') \
21781                      || ('j' <= (c) && (c) <= 'r') \
21782                      || ('s' <= (c) && (c) <= 'z'))
21783 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21784 #endif
21785
21786 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21787 int
21788 main ()
21789 {
21790   int i;
21791   for (i = 0; i < 256; i++)
21792     if (XOR (islower (i), ISLOWER (i))
21793         || toupper (i) != TOUPPER (i))
21794       return 2;
21795   return 0;
21796 }
21797 _ACEOF
21798 rm -f conftest$ac_exeext
21799 if { (ac_try="$ac_link"
21800 case "(($ac_try" in
21801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21802   *) ac_try_echo=$ac_try;;
21803 esac
21804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21805   (eval "$ac_link") 2>&5
21806   ac_status=$?
21807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21809   { (case "(($ac_try" in
21810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21811   *) ac_try_echo=$ac_try;;
21812 esac
21813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21814   (eval "$ac_try") 2>&5
21815   ac_status=$?
21816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817   (exit $ac_status); }; }; then
21818   :
21819 else
21820   echo "$as_me: program exited with status $ac_status" >&5
21821 echo "$as_me: failed program was:" >&5
21822 sed 's/^/| /' conftest.$ac_ext >&5
21823
21824 ( exit $ac_status )
21825 ac_cv_header_stdc=no
21826 fi
21827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21828 fi
21829
21830
21831 fi
21832 fi
21833 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21834 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21835 if test $ac_cv_header_stdc = yes; then
21836
21837 cat >>confdefs.h <<\_ACEOF
21838 #define STDC_HEADERS 1
21839 _ACEOF
21840
21841 fi
21842
21843 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
21844 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
21845 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
21846   echo $ECHO_N "(cached) $ECHO_C" >&6
21847 else
21848   cat >conftest.$ac_ext <<_ACEOF
21849 /* confdefs.h.  */
21850 _ACEOF
21851 cat confdefs.h >>conftest.$ac_ext
21852 cat >>conftest.$ac_ext <<_ACEOF
21853 /* end confdefs.h.  */
21854 #include <sys/types.h>
21855 int
21856 main ()
21857 {
21858 return makedev(0, 0);
21859   ;
21860   return 0;
21861 }
21862 _ACEOF
21863 rm -f conftest.$ac_objext conftest$ac_exeext
21864 if { (ac_try="$ac_link"
21865 case "(($ac_try" in
21866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21867   *) ac_try_echo=$ac_try;;
21868 esac
21869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21870   (eval "$ac_link") 2>conftest.er1
21871   ac_status=$?
21872   grep -v '^ *+' conftest.er1 >conftest.err
21873   rm -f conftest.er1
21874   cat conftest.err >&5
21875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876   (exit $ac_status); } &&
21877          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21878   { (case "(($ac_try" in
21879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21880   *) ac_try_echo=$ac_try;;
21881 esac
21882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21883   (eval "$ac_try") 2>&5
21884   ac_status=$?
21885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886   (exit $ac_status); }; } &&
21887          { ac_try='test -s conftest$ac_exeext'
21888   { (case "(($ac_try" in
21889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21890   *) ac_try_echo=$ac_try;;
21891 esac
21892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21893   (eval "$ac_try") 2>&5
21894   ac_status=$?
21895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896   (exit $ac_status); }; }; then
21897   ac_cv_header_sys_types_h_makedev=yes
21898 else
21899   echo "$as_me: failed program was:" >&5
21900 sed 's/^/| /' conftest.$ac_ext >&5
21901
21902         ac_cv_header_sys_types_h_makedev=no
21903 fi
21904
21905 rm -f core conftest.err conftest.$ac_objext \
21906       conftest$ac_exeext conftest.$ac_ext
21907
21908 fi
21909 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
21910 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
21911
21912 if test $ac_cv_header_sys_types_h_makedev = no; then
21913 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21914   { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
21915 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
21916 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
21917   echo $ECHO_N "(cached) $ECHO_C" >&6
21918 fi
21919 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
21920 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
21921 else
21922   # Is the header compilable?
21923 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
21924 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
21925 cat >conftest.$ac_ext <<_ACEOF
21926 /* confdefs.h.  */
21927 _ACEOF
21928 cat confdefs.h >>conftest.$ac_ext
21929 cat >>conftest.$ac_ext <<_ACEOF
21930 /* end confdefs.h.  */
21931 $ac_includes_default
21932 #include <sys/mkdev.h>
21933 _ACEOF
21934 rm -f conftest.$ac_objext
21935 if { (ac_try="$ac_compile"
21936 case "(($ac_try" in
21937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21938   *) ac_try_echo=$ac_try;;
21939 esac
21940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21941   (eval "$ac_compile") 2>conftest.er1
21942   ac_status=$?
21943   grep -v '^ *+' conftest.er1 >conftest.err
21944   rm -f conftest.er1
21945   cat conftest.err >&5
21946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947   (exit $ac_status); } &&
21948          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21949   { (case "(($ac_try" in
21950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21951   *) ac_try_echo=$ac_try;;
21952 esac
21953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21954   (eval "$ac_try") 2>&5
21955   ac_status=$?
21956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957   (exit $ac_status); }; } &&
21958          { ac_try='test -s conftest.$ac_objext'
21959   { (case "(($ac_try" in
21960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21961   *) ac_try_echo=$ac_try;;
21962 esac
21963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21964   (eval "$ac_try") 2>&5
21965   ac_status=$?
21966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967   (exit $ac_status); }; }; then
21968   ac_header_compiler=yes
21969 else
21970   echo "$as_me: failed program was:" >&5
21971 sed 's/^/| /' conftest.$ac_ext >&5
21972
21973         ac_header_compiler=no
21974 fi
21975
21976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21978 echo "${ECHO_T}$ac_header_compiler" >&6; }
21979
21980 # Is the header present?
21981 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
21982 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
21983 cat >conftest.$ac_ext <<_ACEOF
21984 /* confdefs.h.  */
21985 _ACEOF
21986 cat confdefs.h >>conftest.$ac_ext
21987 cat >>conftest.$ac_ext <<_ACEOF
21988 /* end confdefs.h.  */
21989 #include <sys/mkdev.h>
21990 _ACEOF
21991 if { (ac_try="$ac_cpp conftest.$ac_ext"
21992 case "(($ac_try" in
21993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21994   *) ac_try_echo=$ac_try;;
21995 esac
21996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21997   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21998   ac_status=$?
21999   grep -v '^ *+' conftest.er1 >conftest.err
22000   rm -f conftest.er1
22001   cat conftest.err >&5
22002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003   (exit $ac_status); } >/dev/null; then
22004   if test -s conftest.err; then
22005     ac_cpp_err=$ac_c_preproc_warn_flag
22006     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22007   else
22008     ac_cpp_err=
22009   fi
22010 else
22011   ac_cpp_err=yes
22012 fi
22013 if test -z "$ac_cpp_err"; then
22014   ac_header_preproc=yes
22015 else
22016   echo "$as_me: failed program was:" >&5
22017 sed 's/^/| /' conftest.$ac_ext >&5
22018
22019   ac_header_preproc=no
22020 fi
22021
22022 rm -f conftest.err conftest.$ac_ext
22023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22024 echo "${ECHO_T}$ac_header_preproc" >&6; }
22025
22026 # So?  What about this header?
22027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22028   yes:no: )
22029     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
22030 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22031     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
22032 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
22033     ac_header_preproc=yes
22034     ;;
22035   no:yes:* )
22036     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
22037 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
22038     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
22039 echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
22040     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
22041 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
22042     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
22043 echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22044     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
22045 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
22046     { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
22047 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
22048
22049     ;;
22050 esac
22051 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
22052 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
22053 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
22054   echo $ECHO_N "(cached) $ECHO_C" >&6
22055 else
22056   ac_cv_header_sys_mkdev_h=$ac_header_preproc
22057 fi
22058 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
22059 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
22060
22061 fi
22062 if test $ac_cv_header_sys_mkdev_h = yes; then
22063
22064 cat >>confdefs.h <<\_ACEOF
22065 #define MAJOR_IN_MKDEV 1
22066 _ACEOF
22067
22068 fi
22069
22070
22071
22072   if test $ac_cv_header_sys_mkdev_h = no; then
22073     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22074   { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
22075 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
22076 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22077   echo $ECHO_N "(cached) $ECHO_C" >&6
22078 fi
22079 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
22080 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
22081 else
22082   # Is the header compilable?
22083 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
22084 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
22085 cat >conftest.$ac_ext <<_ACEOF
22086 /* confdefs.h.  */
22087 _ACEOF
22088 cat confdefs.h >>conftest.$ac_ext
22089 cat >>conftest.$ac_ext <<_ACEOF
22090 /* end confdefs.h.  */
22091 $ac_includes_default
22092 #include <sys/sysmacros.h>
22093 _ACEOF
22094 rm -f conftest.$ac_objext
22095 if { (ac_try="$ac_compile"
22096 case "(($ac_try" in
22097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22098   *) ac_try_echo=$ac_try;;
22099 esac
22100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22101   (eval "$ac_compile") 2>conftest.er1
22102   ac_status=$?
22103   grep -v '^ *+' conftest.er1 >conftest.err
22104   rm -f conftest.er1
22105   cat conftest.err >&5
22106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107   (exit $ac_status); } &&
22108          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22109   { (case "(($ac_try" in
22110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22111   *) ac_try_echo=$ac_try;;
22112 esac
22113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22114   (eval "$ac_try") 2>&5
22115   ac_status=$?
22116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117   (exit $ac_status); }; } &&
22118          { ac_try='test -s conftest.$ac_objext'
22119   { (case "(($ac_try" in
22120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22121   *) ac_try_echo=$ac_try;;
22122 esac
22123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22124   (eval "$ac_try") 2>&5
22125   ac_status=$?
22126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22127   (exit $ac_status); }; }; then
22128   ac_header_compiler=yes
22129 else
22130   echo "$as_me: failed program was:" >&5
22131 sed 's/^/| /' conftest.$ac_ext >&5
22132
22133         ac_header_compiler=no
22134 fi
22135
22136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22137 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22138 echo "${ECHO_T}$ac_header_compiler" >&6; }
22139
22140 # Is the header present?
22141 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
22142 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
22143 cat >conftest.$ac_ext <<_ACEOF
22144 /* confdefs.h.  */
22145 _ACEOF
22146 cat confdefs.h >>conftest.$ac_ext
22147 cat >>conftest.$ac_ext <<_ACEOF
22148 /* end confdefs.h.  */
22149 #include <sys/sysmacros.h>
22150 _ACEOF
22151 if { (ac_try="$ac_cpp conftest.$ac_ext"
22152 case "(($ac_try" in
22153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22154   *) ac_try_echo=$ac_try;;
22155 esac
22156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22157   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22158   ac_status=$?
22159   grep -v '^ *+' conftest.er1 >conftest.err
22160   rm -f conftest.er1
22161   cat conftest.err >&5
22162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163   (exit $ac_status); } >/dev/null; then
22164   if test -s conftest.err; then
22165     ac_cpp_err=$ac_c_preproc_warn_flag
22166     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22167   else
22168     ac_cpp_err=
22169   fi
22170 else
22171   ac_cpp_err=yes
22172 fi
22173 if test -z "$ac_cpp_err"; then
22174   ac_header_preproc=yes
22175 else
22176   echo "$as_me: failed program was:" >&5
22177 sed 's/^/| /' conftest.$ac_ext >&5
22178
22179   ac_header_preproc=no
22180 fi
22181
22182 rm -f conftest.err conftest.$ac_ext
22183 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22184 echo "${ECHO_T}$ac_header_preproc" >&6; }
22185
22186 # So?  What about this header?
22187 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22188   yes:no: )
22189     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
22190 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22191     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
22192 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
22193     ac_header_preproc=yes
22194     ;;
22195   no:yes:* )
22196     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
22197 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
22198     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
22199 echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
22200     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
22201 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
22202     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
22203 echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
22204     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
22205 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
22206     { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
22207 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
22208
22209     ;;
22210 esac
22211 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
22212 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
22213 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
22214   echo $ECHO_N "(cached) $ECHO_C" >&6
22215 else
22216   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
22217 fi
22218 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
22219 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
22220
22221 fi
22222 if test $ac_cv_header_sys_sysmacros_h = yes; then
22223
22224 cat >>confdefs.h <<\_ACEOF
22225 #define MAJOR_IN_SYSMACROS 1
22226 _ACEOF
22227
22228 fi
22229
22230
22231   fi
22232 fi
22233
22234
22235
22236
22237
22238
22239 ac_header_dirent=no
22240 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22241   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22242 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22243 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
22244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22245   echo $ECHO_N "(cached) $ECHO_C" >&6
22246 else
22247   cat >conftest.$ac_ext <<_ACEOF
22248 /* confdefs.h.  */
22249 _ACEOF
22250 cat confdefs.h >>conftest.$ac_ext
22251 cat >>conftest.$ac_ext <<_ACEOF
22252 /* end confdefs.h.  */
22253 #include <sys/types.h>
22254 #include <$ac_hdr>
22255
22256 int
22257 main ()
22258 {
22259 if ((DIR *) 0)
22260 return 0;
22261   ;
22262   return 0;
22263 }
22264 _ACEOF
22265 rm -f conftest.$ac_objext
22266 if { (ac_try="$ac_compile"
22267 case "(($ac_try" in
22268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22269   *) ac_try_echo=$ac_try;;
22270 esac
22271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22272   (eval "$ac_compile") 2>conftest.er1
22273   ac_status=$?
22274   grep -v '^ *+' conftest.er1 >conftest.err
22275   rm -f conftest.er1
22276   cat conftest.err >&5
22277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278   (exit $ac_status); } &&
22279          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22280   { (case "(($ac_try" in
22281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22282   *) ac_try_echo=$ac_try;;
22283 esac
22284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22285   (eval "$ac_try") 2>&5
22286   ac_status=$?
22287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22288   (exit $ac_status); }; } &&
22289          { ac_try='test -s conftest.$ac_objext'
22290   { (case "(($ac_try" in
22291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22292   *) ac_try_echo=$ac_try;;
22293 esac
22294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22295   (eval "$ac_try") 2>&5
22296   ac_status=$?
22297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298   (exit $ac_status); }; }; then
22299   eval "$as_ac_Header=yes"
22300 else
22301   echo "$as_me: failed program was:" >&5
22302 sed 's/^/| /' conftest.$ac_ext >&5
22303
22304         eval "$as_ac_Header=no"
22305 fi
22306
22307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22308 fi
22309 ac_res=`eval echo '${'$as_ac_Header'}'`
22310                { echo "$as_me:$LINENO: result: $ac_res" >&5
22311 echo "${ECHO_T}$ac_res" >&6; }
22312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22313   cat >>confdefs.h <<_ACEOF
22314 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22315 _ACEOF
22316
22317 ac_header_dirent=$ac_hdr; break
22318 fi
22319
22320 done
22321 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22322 if test $ac_header_dirent = dirent.h; then
22323   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22324 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22325 if test "${ac_cv_search_opendir+set}" = set; then
22326   echo $ECHO_N "(cached) $ECHO_C" >&6
22327 else
22328   ac_func_search_save_LIBS=$LIBS
22329 cat >conftest.$ac_ext <<_ACEOF
22330 /* confdefs.h.  */
22331 _ACEOF
22332 cat confdefs.h >>conftest.$ac_ext
22333 cat >>conftest.$ac_ext <<_ACEOF
22334 /* end confdefs.h.  */
22335
22336 /* Override any GCC internal prototype to avoid an error.
22337    Use char because int might match the return type of a GCC
22338    builtin and then its argument prototype would still apply.  */
22339 #ifdef __cplusplus
22340 extern "C"
22341 #endif
22342 char opendir ();
22343 int
22344 main ()
22345 {
22346 return opendir ();
22347   ;
22348   return 0;
22349 }
22350 _ACEOF
22351 for ac_lib in '' dir; do
22352   if test -z "$ac_lib"; then
22353     ac_res="none required"
22354   else
22355     ac_res=-l$ac_lib
22356     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22357   fi
22358   rm -f conftest.$ac_objext conftest$ac_exeext
22359 if { (ac_try="$ac_link"
22360 case "(($ac_try" in
22361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22362   *) ac_try_echo=$ac_try;;
22363 esac
22364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22365   (eval "$ac_link") 2>conftest.er1
22366   ac_status=$?
22367   grep -v '^ *+' conftest.er1 >conftest.err
22368   rm -f conftest.er1
22369   cat conftest.err >&5
22370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371   (exit $ac_status); } &&
22372          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22373   { (case "(($ac_try" in
22374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22375   *) ac_try_echo=$ac_try;;
22376 esac
22377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22378   (eval "$ac_try") 2>&5
22379   ac_status=$?
22380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381   (exit $ac_status); }; } &&
22382          { ac_try='test -s conftest$ac_exeext'
22383   { (case "(($ac_try" in
22384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22385   *) ac_try_echo=$ac_try;;
22386 esac
22387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22388   (eval "$ac_try") 2>&5
22389   ac_status=$?
22390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391   (exit $ac_status); }; }; then
22392   ac_cv_search_opendir=$ac_res
22393 else
22394   echo "$as_me: failed program was:" >&5
22395 sed 's/^/| /' conftest.$ac_ext >&5
22396
22397
22398 fi
22399
22400 rm -f core conftest.err conftest.$ac_objext \
22401       conftest$ac_exeext
22402   if test "${ac_cv_search_opendir+set}" = set; then
22403   break
22404 fi
22405 done
22406 if test "${ac_cv_search_opendir+set}" = set; then
22407   :
22408 else
22409   ac_cv_search_opendir=no
22410 fi
22411 rm conftest.$ac_ext
22412 LIBS=$ac_func_search_save_LIBS
22413 fi
22414 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22415 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22416 ac_res=$ac_cv_search_opendir
22417 if test "$ac_res" != no; then
22418   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22419
22420 fi
22421
22422 else
22423   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
22424 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
22425 if test "${ac_cv_search_opendir+set}" = set; then
22426   echo $ECHO_N "(cached) $ECHO_C" >&6
22427 else
22428   ac_func_search_save_LIBS=$LIBS
22429 cat >conftest.$ac_ext <<_ACEOF
22430 /* confdefs.h.  */
22431 _ACEOF
22432 cat confdefs.h >>conftest.$ac_ext
22433 cat >>conftest.$ac_ext <<_ACEOF
22434 /* end confdefs.h.  */
22435
22436 /* Override any GCC internal prototype to avoid an error.
22437    Use char because int might match the return type of a GCC
22438    builtin and then its argument prototype would still apply.  */
22439 #ifdef __cplusplus
22440 extern "C"
22441 #endif
22442 char opendir ();
22443 int
22444 main ()
22445 {
22446 return opendir ();
22447   ;
22448   return 0;
22449 }
22450 _ACEOF
22451 for ac_lib in '' x; do
22452   if test -z "$ac_lib"; then
22453     ac_res="none required"
22454   else
22455     ac_res=-l$ac_lib
22456     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22457   fi
22458   rm -f conftest.$ac_objext conftest$ac_exeext
22459 if { (ac_try="$ac_link"
22460 case "(($ac_try" in
22461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22462   *) ac_try_echo=$ac_try;;
22463 esac
22464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22465   (eval "$ac_link") 2>conftest.er1
22466   ac_status=$?
22467   grep -v '^ *+' conftest.er1 >conftest.err
22468   rm -f conftest.er1
22469   cat conftest.err >&5
22470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471   (exit $ac_status); } &&
22472          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22473   { (case "(($ac_try" in
22474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22475   *) ac_try_echo=$ac_try;;
22476 esac
22477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22478   (eval "$ac_try") 2>&5
22479   ac_status=$?
22480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481   (exit $ac_status); }; } &&
22482          { ac_try='test -s conftest$ac_exeext'
22483   { (case "(($ac_try" in
22484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22485   *) ac_try_echo=$ac_try;;
22486 esac
22487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22488   (eval "$ac_try") 2>&5
22489   ac_status=$?
22490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22491   (exit $ac_status); }; }; then
22492   ac_cv_search_opendir=$ac_res
22493 else
22494   echo "$as_me: failed program was:" >&5
22495 sed 's/^/| /' conftest.$ac_ext >&5
22496
22497
22498 fi
22499
22500 rm -f core conftest.err conftest.$ac_objext \
22501       conftest$ac_exeext
22502   if test "${ac_cv_search_opendir+set}" = set; then
22503   break
22504 fi
22505 done
22506 if test "${ac_cv_search_opendir+set}" = set; then
22507   :
22508 else
22509   ac_cv_search_opendir=no
22510 fi
22511 rm conftest.$ac_ext
22512 LIBS=$ac_func_search_save_LIBS
22513 fi
22514 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22515 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
22516 ac_res=$ac_cv_search_opendir
22517 if test "$ac_res" != no; then
22518   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22519
22520 fi
22521
22522 fi
22523
22524 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
22525 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
22526 if test "${ac_cv_header_stat_broken+set}" = set; then
22527   echo $ECHO_N "(cached) $ECHO_C" >&6
22528 else
22529   cat >conftest.$ac_ext <<_ACEOF
22530 /* confdefs.h.  */
22531 _ACEOF
22532 cat confdefs.h >>conftest.$ac_ext
22533 cat >>conftest.$ac_ext <<_ACEOF
22534 /* end confdefs.h.  */
22535 #include <sys/types.h>
22536 #include <sys/stat.h>
22537
22538 #if defined S_ISBLK && defined S_IFDIR
22539 # if S_ISBLK (S_IFDIR)
22540 You lose.
22541 # endif
22542 #endif
22543
22544 #if defined S_ISBLK && defined S_IFCHR
22545 # if S_ISBLK (S_IFCHR)
22546 You lose.
22547 # endif
22548 #endif
22549
22550 #if defined S_ISLNK && defined S_IFREG
22551 # if S_ISLNK (S_IFREG)
22552 You lose.
22553 # endif
22554 #endif
22555
22556 #if defined S_ISSOCK && defined S_IFREG
22557 # if S_ISSOCK (S_IFREG)
22558 You lose.
22559 # endif
22560 #endif
22561
22562 _ACEOF
22563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22564   $EGREP "You lose" >/dev/null 2>&1; then
22565   ac_cv_header_stat_broken=yes
22566 else
22567   ac_cv_header_stat_broken=no
22568 fi
22569 rm -f conftest*
22570
22571 fi
22572 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
22573 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
22574 if test $ac_cv_header_stat_broken = yes; then
22575
22576 cat >>confdefs.h <<\_ACEOF
22577 #define STAT_MACROS_BROKEN 1
22578 _ACEOF
22579
22580 fi
22581
22582 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
22583 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
22584 if test "${ac_cv_header_sys_wait_h+set}" = set; then
22585   echo $ECHO_N "(cached) $ECHO_C" >&6
22586 else
22587   cat >conftest.$ac_ext <<_ACEOF
22588 /* confdefs.h.  */
22589 _ACEOF
22590 cat confdefs.h >>conftest.$ac_ext
22591 cat >>conftest.$ac_ext <<_ACEOF
22592 /* end confdefs.h.  */
22593 #include <sys/types.h>
22594 #include <sys/wait.h>
22595 #ifndef WEXITSTATUS
22596 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
22597 #endif
22598 #ifndef WIFEXITED
22599 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
22600 #endif
22601
22602 int
22603 main ()
22604 {
22605   int s;
22606   wait (&s);
22607   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
22608   ;
22609   return 0;
22610 }
22611 _ACEOF
22612 rm -f conftest.$ac_objext
22613 if { (ac_try="$ac_compile"
22614 case "(($ac_try" in
22615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22616   *) ac_try_echo=$ac_try;;
22617 esac
22618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22619   (eval "$ac_compile") 2>conftest.er1
22620   ac_status=$?
22621   grep -v '^ *+' conftest.er1 >conftest.err
22622   rm -f conftest.er1
22623   cat conftest.err >&5
22624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625   (exit $ac_status); } &&
22626          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22627   { (case "(($ac_try" in
22628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22629   *) ac_try_echo=$ac_try;;
22630 esac
22631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22632   (eval "$ac_try") 2>&5
22633   ac_status=$?
22634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22635   (exit $ac_status); }; } &&
22636          { ac_try='test -s conftest.$ac_objext'
22637   { (case "(($ac_try" in
22638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22639   *) ac_try_echo=$ac_try;;
22640 esac
22641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22642   (eval "$ac_try") 2>&5
22643   ac_status=$?
22644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645   (exit $ac_status); }; }; then
22646   ac_cv_header_sys_wait_h=yes
22647 else
22648   echo "$as_me: failed program was:" >&5
22649 sed 's/^/| /' conftest.$ac_ext >&5
22650
22651         ac_cv_header_sys_wait_h=no
22652 fi
22653
22654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22655 fi
22656 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
22657 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
22658 if test $ac_cv_header_sys_wait_h = yes; then
22659
22660 cat >>confdefs.h <<\_ACEOF
22661 #define HAVE_SYS_WAIT_H 1
22662 _ACEOF
22663
22664 fi
22665
22666 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22667 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
22668 if test "${ac_cv_header_time+set}" = set; then
22669   echo $ECHO_N "(cached) $ECHO_C" >&6
22670 else
22671   cat >conftest.$ac_ext <<_ACEOF
22672 /* confdefs.h.  */
22673 _ACEOF
22674 cat confdefs.h >>conftest.$ac_ext
22675 cat >>conftest.$ac_ext <<_ACEOF
22676 /* end confdefs.h.  */
22677 #include <sys/types.h>
22678 #include <sys/time.h>
22679 #include <time.h>
22680
22681 int
22682 main ()
22683 {
22684 if ((struct tm *) 0)
22685 return 0;
22686   ;
22687   return 0;
22688 }
22689 _ACEOF
22690 rm -f conftest.$ac_objext
22691 if { (ac_try="$ac_compile"
22692 case "(($ac_try" in
22693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22694   *) ac_try_echo=$ac_try;;
22695 esac
22696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22697   (eval "$ac_compile") 2>conftest.er1
22698   ac_status=$?
22699   grep -v '^ *+' conftest.er1 >conftest.err
22700   rm -f conftest.er1
22701   cat conftest.err >&5
22702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703   (exit $ac_status); } &&
22704          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22705   { (case "(($ac_try" in
22706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22707   *) ac_try_echo=$ac_try;;
22708 esac
22709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22710   (eval "$ac_try") 2>&5
22711   ac_status=$?
22712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713   (exit $ac_status); }; } &&
22714          { ac_try='test -s conftest.$ac_objext'
22715   { (case "(($ac_try" in
22716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22717   *) ac_try_echo=$ac_try;;
22718 esac
22719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22720   (eval "$ac_try") 2>&5
22721   ac_status=$?
22722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723   (exit $ac_status); }; }; then
22724   ac_cv_header_time=yes
22725 else
22726   echo "$as_me: failed program was:" >&5
22727 sed 's/^/| /' conftest.$ac_ext >&5
22728
22729         ac_cv_header_time=no
22730 fi
22731
22732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22733 fi
22734 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22735 echo "${ECHO_T}$ac_cv_header_time" >&6; }
22736 if test $ac_cv_header_time = yes; then
22737
22738 cat >>confdefs.h <<\_ACEOF
22739 #define TIME_WITH_SYS_TIME 1
22740 _ACEOF
22741
22742 fi
22743
22744 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
22745 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
22746 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
22747   echo $ECHO_N "(cached) $ECHO_C" >&6
22748 else
22749   cat >conftest.$ac_ext <<_ACEOF
22750 /* confdefs.h.  */
22751 _ACEOF
22752 cat confdefs.h >>conftest.$ac_ext
22753 cat >>conftest.$ac_ext <<_ACEOF
22754 /* end confdefs.h.  */
22755 $ac_includes_default
22756 int
22757 main ()
22758 {
22759 static struct stat ac_aggr;
22760 if (ac_aggr.st_blksize)
22761 return 0;
22762   ;
22763   return 0;
22764 }
22765 _ACEOF
22766 rm -f conftest.$ac_objext
22767 if { (ac_try="$ac_compile"
22768 case "(($ac_try" in
22769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22770   *) ac_try_echo=$ac_try;;
22771 esac
22772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22773   (eval "$ac_compile") 2>conftest.er1
22774   ac_status=$?
22775   grep -v '^ *+' conftest.er1 >conftest.err
22776   rm -f conftest.er1
22777   cat conftest.err >&5
22778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779   (exit $ac_status); } &&
22780          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22781   { (case "(($ac_try" in
22782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22783   *) ac_try_echo=$ac_try;;
22784 esac
22785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22786   (eval "$ac_try") 2>&5
22787   ac_status=$?
22788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22789   (exit $ac_status); }; } &&
22790          { ac_try='test -s conftest.$ac_objext'
22791   { (case "(($ac_try" in
22792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22793   *) ac_try_echo=$ac_try;;
22794 esac
22795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22796   (eval "$ac_try") 2>&5
22797   ac_status=$?
22798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22799   (exit $ac_status); }; }; then
22800   ac_cv_member_struct_stat_st_blksize=yes
22801 else
22802   echo "$as_me: failed program was:" >&5
22803 sed 's/^/| /' conftest.$ac_ext >&5
22804
22805         cat >conftest.$ac_ext <<_ACEOF
22806 /* confdefs.h.  */
22807 _ACEOF
22808 cat confdefs.h >>conftest.$ac_ext
22809 cat >>conftest.$ac_ext <<_ACEOF
22810 /* end confdefs.h.  */
22811 $ac_includes_default
22812 int
22813 main ()
22814 {
22815 static struct stat ac_aggr;
22816 if (sizeof ac_aggr.st_blksize)
22817 return 0;
22818   ;
22819   return 0;
22820 }
22821 _ACEOF
22822 rm -f conftest.$ac_objext
22823 if { (ac_try="$ac_compile"
22824 case "(($ac_try" in
22825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22826   *) ac_try_echo=$ac_try;;
22827 esac
22828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22829   (eval "$ac_compile") 2>conftest.er1
22830   ac_status=$?
22831   grep -v '^ *+' conftest.er1 >conftest.err
22832   rm -f conftest.er1
22833   cat conftest.err >&5
22834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22835   (exit $ac_status); } &&
22836          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22837   { (case "(($ac_try" in
22838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22839   *) ac_try_echo=$ac_try;;
22840 esac
22841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22842   (eval "$ac_try") 2>&5
22843   ac_status=$?
22844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845   (exit $ac_status); }; } &&
22846          { ac_try='test -s conftest.$ac_objext'
22847   { (case "(($ac_try" in
22848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22849   *) ac_try_echo=$ac_try;;
22850 esac
22851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22852   (eval "$ac_try") 2>&5
22853   ac_status=$?
22854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855   (exit $ac_status); }; }; then
22856   ac_cv_member_struct_stat_st_blksize=yes
22857 else
22858   echo "$as_me: failed program was:" >&5
22859 sed 's/^/| /' conftest.$ac_ext >&5
22860
22861         ac_cv_member_struct_stat_st_blksize=no
22862 fi
22863
22864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22865 fi
22866
22867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22868 fi
22869 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
22870 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
22871 if test $ac_cv_member_struct_stat_st_blksize = yes; then
22872
22873 cat >>confdefs.h <<_ACEOF
22874 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
22875 _ACEOF
22876
22877
22878 cat >>confdefs.h <<\_ACEOF
22879 #define HAVE_ST_BLKSIZE 1
22880 _ACEOF
22881
22882 fi
22883
22884
22885 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22886 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22887 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22888   echo $ECHO_N "(cached) $ECHO_C" >&6
22889 else
22890   cat >conftest.$ac_ext <<_ACEOF
22891 /* confdefs.h.  */
22892 _ACEOF
22893 cat confdefs.h >>conftest.$ac_ext
22894 cat >>conftest.$ac_ext <<_ACEOF
22895 /* end confdefs.h.  */
22896 $ac_includes_default
22897 int
22898 main ()
22899 {
22900 static struct stat ac_aggr;
22901 if (ac_aggr.st_blocks)
22902 return 0;
22903   ;
22904   return 0;
22905 }
22906 _ACEOF
22907 rm -f conftest.$ac_objext
22908 if { (ac_try="$ac_compile"
22909 case "(($ac_try" in
22910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22911   *) ac_try_echo=$ac_try;;
22912 esac
22913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22914   (eval "$ac_compile") 2>conftest.er1
22915   ac_status=$?
22916   grep -v '^ *+' conftest.er1 >conftest.err
22917   rm -f conftest.er1
22918   cat conftest.err >&5
22919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920   (exit $ac_status); } &&
22921          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22922   { (case "(($ac_try" in
22923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22924   *) ac_try_echo=$ac_try;;
22925 esac
22926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22927   (eval "$ac_try") 2>&5
22928   ac_status=$?
22929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22930   (exit $ac_status); }; } &&
22931          { ac_try='test -s conftest.$ac_objext'
22932   { (case "(($ac_try" in
22933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22934   *) ac_try_echo=$ac_try;;
22935 esac
22936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22937   (eval "$ac_try") 2>&5
22938   ac_status=$?
22939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940   (exit $ac_status); }; }; then
22941   ac_cv_member_struct_stat_st_blocks=yes
22942 else
22943   echo "$as_me: failed program was:" >&5
22944 sed 's/^/| /' conftest.$ac_ext >&5
22945
22946         cat >conftest.$ac_ext <<_ACEOF
22947 /* confdefs.h.  */
22948 _ACEOF
22949 cat confdefs.h >>conftest.$ac_ext
22950 cat >>conftest.$ac_ext <<_ACEOF
22951 /* end confdefs.h.  */
22952 $ac_includes_default
22953 int
22954 main ()
22955 {
22956 static struct stat ac_aggr;
22957 if (sizeof ac_aggr.st_blocks)
22958 return 0;
22959   ;
22960   return 0;
22961 }
22962 _ACEOF
22963 rm -f conftest.$ac_objext
22964 if { (ac_try="$ac_compile"
22965 case "(($ac_try" in
22966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22967   *) ac_try_echo=$ac_try;;
22968 esac
22969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22970   (eval "$ac_compile") 2>conftest.er1
22971   ac_status=$?
22972   grep -v '^ *+' conftest.er1 >conftest.err
22973   rm -f conftest.er1
22974   cat conftest.err >&5
22975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976   (exit $ac_status); } &&
22977          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22978   { (case "(($ac_try" in
22979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22980   *) ac_try_echo=$ac_try;;
22981 esac
22982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22983   (eval "$ac_try") 2>&5
22984   ac_status=$?
22985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22986   (exit $ac_status); }; } &&
22987          { ac_try='test -s conftest.$ac_objext'
22988   { (case "(($ac_try" in
22989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22990   *) ac_try_echo=$ac_try;;
22991 esac
22992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22993   (eval "$ac_try") 2>&5
22994   ac_status=$?
22995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996   (exit $ac_status); }; }; then
22997   ac_cv_member_struct_stat_st_blocks=yes
22998 else
22999   echo "$as_me: failed program was:" >&5
23000 sed 's/^/| /' conftest.$ac_ext >&5
23001
23002         ac_cv_member_struct_stat_st_blocks=no
23003 fi
23004
23005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23006 fi
23007
23008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23009 fi
23010 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
23011 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
23012 if test $ac_cv_member_struct_stat_st_blocks = yes; then
23013
23014 cat >>confdefs.h <<_ACEOF
23015 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23016 _ACEOF
23017
23018
23019 cat >>confdefs.h <<\_ACEOF
23020 #define HAVE_ST_BLOCKS 1
23021 _ACEOF
23022
23023 else
23024   case " $LIBOBJS " in
23025   *" fileblocks.$ac_objext "* ) ;;
23026   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
23027  ;;
23028 esac
23029
23030 fi
23031
23032
23033 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23034 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23035 if test "${ac_cv_struct_tm+set}" = set; then
23036   echo $ECHO_N "(cached) $ECHO_C" >&6
23037 else
23038   cat >conftest.$ac_ext <<_ACEOF
23039 /* confdefs.h.  */
23040 _ACEOF
23041 cat confdefs.h >>conftest.$ac_ext
23042 cat >>conftest.$ac_ext <<_ACEOF
23043 /* end confdefs.h.  */
23044 #include <sys/types.h>
23045 #include <time.h>
23046
23047 int
23048 main ()
23049 {
23050 struct tm *tp; tp->tm_sec;
23051   ;
23052   return 0;
23053 }
23054 _ACEOF
23055 rm -f conftest.$ac_objext
23056 if { (ac_try="$ac_compile"
23057 case "(($ac_try" in
23058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23059   *) ac_try_echo=$ac_try;;
23060 esac
23061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23062   (eval "$ac_compile") 2>conftest.er1
23063   ac_status=$?
23064   grep -v '^ *+' conftest.er1 >conftest.err
23065   rm -f conftest.er1
23066   cat conftest.err >&5
23067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068   (exit $ac_status); } &&
23069          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23070   { (case "(($ac_try" in
23071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23072   *) ac_try_echo=$ac_try;;
23073 esac
23074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23075   (eval "$ac_try") 2>&5
23076   ac_status=$?
23077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23078   (exit $ac_status); }; } &&
23079          { ac_try='test -s conftest.$ac_objext'
23080   { (case "(($ac_try" in
23081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23082   *) ac_try_echo=$ac_try;;
23083 esac
23084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23085   (eval "$ac_try") 2>&5
23086   ac_status=$?
23087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23088   (exit $ac_status); }; }; then
23089   ac_cv_struct_tm=time.h
23090 else
23091   echo "$as_me: failed program was:" >&5
23092 sed 's/^/| /' conftest.$ac_ext >&5
23093
23094         ac_cv_struct_tm=sys/time.h
23095 fi
23096
23097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23098 fi
23099 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23100 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23101 if test $ac_cv_struct_tm = sys/time.h; then
23102
23103 cat >>confdefs.h <<\_ACEOF
23104 #define TM_IN_SYS_TIME 1
23105 _ACEOF
23106
23107 fi
23108
23109 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
23110 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
23111 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
23112   echo $ECHO_N "(cached) $ECHO_C" >&6
23113 else
23114   cat >conftest.$ac_ext <<_ACEOF
23115 /* confdefs.h.  */
23116 _ACEOF
23117 cat confdefs.h >>conftest.$ac_ext
23118 cat >>conftest.$ac_ext <<_ACEOF
23119 /* end confdefs.h.  */
23120 #include <sys/types.h>
23121 #include <$ac_cv_struct_tm>
23122
23123
23124 int
23125 main ()
23126 {
23127 static struct tm ac_aggr;
23128 if (ac_aggr.tm_zone)
23129 return 0;
23130   ;
23131   return 0;
23132 }
23133 _ACEOF
23134 rm -f conftest.$ac_objext
23135 if { (ac_try="$ac_compile"
23136 case "(($ac_try" in
23137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23138   *) ac_try_echo=$ac_try;;
23139 esac
23140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23141   (eval "$ac_compile") 2>conftest.er1
23142   ac_status=$?
23143   grep -v '^ *+' conftest.er1 >conftest.err
23144   rm -f conftest.er1
23145   cat conftest.err >&5
23146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147   (exit $ac_status); } &&
23148          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23149   { (case "(($ac_try" in
23150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23151   *) ac_try_echo=$ac_try;;
23152 esac
23153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23154   (eval "$ac_try") 2>&5
23155   ac_status=$?
23156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23157   (exit $ac_status); }; } &&
23158          { ac_try='test -s conftest.$ac_objext'
23159   { (case "(($ac_try" in
23160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23161   *) ac_try_echo=$ac_try;;
23162 esac
23163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23164   (eval "$ac_try") 2>&5
23165   ac_status=$?
23166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167   (exit $ac_status); }; }; then
23168   ac_cv_member_struct_tm_tm_zone=yes
23169 else
23170   echo "$as_me: failed program was:" >&5
23171 sed 's/^/| /' conftest.$ac_ext >&5
23172
23173         cat >conftest.$ac_ext <<_ACEOF
23174 /* confdefs.h.  */
23175 _ACEOF
23176 cat confdefs.h >>conftest.$ac_ext
23177 cat >>conftest.$ac_ext <<_ACEOF
23178 /* end confdefs.h.  */
23179 #include <sys/types.h>
23180 #include <$ac_cv_struct_tm>
23181
23182
23183 int
23184 main ()
23185 {
23186 static struct tm ac_aggr;
23187 if (sizeof ac_aggr.tm_zone)
23188 return 0;
23189   ;
23190   return 0;
23191 }
23192 _ACEOF
23193 rm -f conftest.$ac_objext
23194 if { (ac_try="$ac_compile"
23195 case "(($ac_try" in
23196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23197   *) ac_try_echo=$ac_try;;
23198 esac
23199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23200   (eval "$ac_compile") 2>conftest.er1
23201   ac_status=$?
23202   grep -v '^ *+' conftest.er1 >conftest.err
23203   rm -f conftest.er1
23204   cat conftest.err >&5
23205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206   (exit $ac_status); } &&
23207          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23208   { (case "(($ac_try" in
23209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23210   *) ac_try_echo=$ac_try;;
23211 esac
23212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23213   (eval "$ac_try") 2>&5
23214   ac_status=$?
23215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216   (exit $ac_status); }; } &&
23217          { ac_try='test -s conftest.$ac_objext'
23218   { (case "(($ac_try" in
23219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23220   *) ac_try_echo=$ac_try;;
23221 esac
23222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23223   (eval "$ac_try") 2>&5
23224   ac_status=$?
23225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23226   (exit $ac_status); }; }; then
23227   ac_cv_member_struct_tm_tm_zone=yes
23228 else
23229   echo "$as_me: failed program was:" >&5
23230 sed 's/^/| /' conftest.$ac_ext >&5
23231
23232         ac_cv_member_struct_tm_tm_zone=no
23233 fi
23234
23235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23236 fi
23237
23238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23239 fi
23240 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
23241 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
23242 if test $ac_cv_member_struct_tm_tm_zone = yes; then
23243
23244 cat >>confdefs.h <<_ACEOF
23245 #define HAVE_STRUCT_TM_TM_ZONE 1
23246 _ACEOF
23247
23248
23249 fi
23250
23251 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23252
23253 cat >>confdefs.h <<\_ACEOF
23254 #define HAVE_TM_ZONE 1
23255 _ACEOF
23256
23257 else
23258   { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
23259 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
23260 if test "${ac_cv_have_decl_tzname+set}" = set; then
23261   echo $ECHO_N "(cached) $ECHO_C" >&6
23262 else
23263   cat >conftest.$ac_ext <<_ACEOF
23264 /* confdefs.h.  */
23265 _ACEOF
23266 cat confdefs.h >>conftest.$ac_ext
23267 cat >>conftest.$ac_ext <<_ACEOF
23268 /* end confdefs.h.  */
23269 #include <time.h>
23270
23271 int
23272 main ()
23273 {
23274 #ifndef tzname
23275   char *p = (char *) tzname;
23276   return !p;
23277 #endif
23278
23279   ;
23280   return 0;
23281 }
23282 _ACEOF
23283 rm -f conftest.$ac_objext
23284 if { (ac_try="$ac_compile"
23285 case "(($ac_try" in
23286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23287   *) ac_try_echo=$ac_try;;
23288 esac
23289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23290   (eval "$ac_compile") 2>conftest.er1
23291   ac_status=$?
23292   grep -v '^ *+' conftest.er1 >conftest.err
23293   rm -f conftest.er1
23294   cat conftest.err >&5
23295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296   (exit $ac_status); } &&
23297          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23298   { (case "(($ac_try" in
23299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23300   *) ac_try_echo=$ac_try;;
23301 esac
23302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23303   (eval "$ac_try") 2>&5
23304   ac_status=$?
23305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23306   (exit $ac_status); }; } &&
23307          { ac_try='test -s conftest.$ac_objext'
23308   { (case "(($ac_try" in
23309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23310   *) ac_try_echo=$ac_try;;
23311 esac
23312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23313   (eval "$ac_try") 2>&5
23314   ac_status=$?
23315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316   (exit $ac_status); }; }; then
23317   ac_cv_have_decl_tzname=yes
23318 else
23319   echo "$as_me: failed program was:" >&5
23320 sed 's/^/| /' conftest.$ac_ext >&5
23321
23322         ac_cv_have_decl_tzname=no
23323 fi
23324
23325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23326 fi
23327 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
23328 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
23329 if test $ac_cv_have_decl_tzname = yes; then
23330
23331 cat >>confdefs.h <<_ACEOF
23332 #define HAVE_DECL_TZNAME 1
23333 _ACEOF
23334
23335
23336 else
23337   cat >>confdefs.h <<_ACEOF
23338 #define HAVE_DECL_TZNAME 0
23339 _ACEOF
23340
23341
23342 fi
23343
23344
23345   { echo "$as_me:$LINENO: checking for tzname" >&5
23346 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
23347 if test "${ac_cv_var_tzname+set}" = set; then
23348   echo $ECHO_N "(cached) $ECHO_C" >&6
23349 else
23350   cat >conftest.$ac_ext <<_ACEOF
23351 /* confdefs.h.  */
23352 _ACEOF
23353 cat confdefs.h >>conftest.$ac_ext
23354 cat >>conftest.$ac_ext <<_ACEOF
23355 /* end confdefs.h.  */
23356 #include <time.h>
23357 #if !HAVE_DECL_TZNAME
23358 extern char *tzname[];
23359 #endif
23360
23361 int
23362 main ()
23363 {
23364 return tzname[0][0];
23365   ;
23366   return 0;
23367 }
23368 _ACEOF
23369 rm -f conftest.$ac_objext conftest$ac_exeext
23370 if { (ac_try="$ac_link"
23371 case "(($ac_try" in
23372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23373   *) ac_try_echo=$ac_try;;
23374 esac
23375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23376   (eval "$ac_link") 2>conftest.er1
23377   ac_status=$?
23378   grep -v '^ *+' conftest.er1 >conftest.err
23379   rm -f conftest.er1
23380   cat conftest.err >&5
23381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382   (exit $ac_status); } &&
23383          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23384   { (case "(($ac_try" in
23385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23386   *) ac_try_echo=$ac_try;;
23387 esac
23388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23389   (eval "$ac_try") 2>&5
23390   ac_status=$?
23391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392   (exit $ac_status); }; } &&
23393          { ac_try='test -s conftest$ac_exeext'
23394   { (case "(($ac_try" in
23395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23396   *) ac_try_echo=$ac_try;;
23397 esac
23398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23399   (eval "$ac_try") 2>&5
23400   ac_status=$?
23401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23402   (exit $ac_status); }; }; then
23403   ac_cv_var_tzname=yes
23404 else
23405   echo "$as_me: failed program was:" >&5
23406 sed 's/^/| /' conftest.$ac_ext >&5
23407
23408         ac_cv_var_tzname=no
23409 fi
23410
23411 rm -f core conftest.err conftest.$ac_objext \
23412       conftest$ac_exeext conftest.$ac_ext
23413 fi
23414 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
23415 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
23416   if test $ac_cv_var_tzname = yes; then
23417
23418 cat >>confdefs.h <<\_ACEOF
23419 #define HAVE_TZNAME 1
23420 _ACEOF
23421
23422   fi
23423 fi
23424
23425
23426 { echo "$as_me:$LINENO: checking for utime.h" >&5
23427 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
23428 if test "${ba_cv_header_utime_h+set}" = set; then
23429   echo $ECHO_N "(cached) $ECHO_C" >&6
23430 else
23431   cat >conftest.$ac_ext <<_ACEOF
23432 /* confdefs.h.  */
23433 _ACEOF
23434 cat confdefs.h >>conftest.$ac_ext
23435 cat >>conftest.$ac_ext <<_ACEOF
23436 /* end confdefs.h.  */
23437
23438 #include <sys/types.h>
23439 #include <utime.h>
23440 int
23441 main ()
23442 {
23443 struct utimbuf foo
23444   ;
23445   return 0;
23446 }
23447 _ACEOF
23448 rm -f conftest.$ac_objext
23449 if { (ac_try="$ac_compile"
23450 case "(($ac_try" in
23451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23452   *) ac_try_echo=$ac_try;;
23453 esac
23454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23455   (eval "$ac_compile") 2>conftest.er1
23456   ac_status=$?
23457   grep -v '^ *+' conftest.er1 >conftest.err
23458   rm -f conftest.er1
23459   cat conftest.err >&5
23460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461   (exit $ac_status); } &&
23462          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23463   { (case "(($ac_try" in
23464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23465   *) ac_try_echo=$ac_try;;
23466 esac
23467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23468   (eval "$ac_try") 2>&5
23469   ac_status=$?
23470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471   (exit $ac_status); }; } &&
23472          { ac_try='test -s conftest.$ac_objext'
23473   { (case "(($ac_try" in
23474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23475   *) ac_try_echo=$ac_try;;
23476 esac
23477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23478   (eval "$ac_try") 2>&5
23479   ac_status=$?
23480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23481   (exit $ac_status); }; }; then
23482   ba_cv_header_utime_h=yes
23483 else
23484   echo "$as_me: failed program was:" >&5
23485 sed 's/^/| /' conftest.$ac_ext >&5
23486
23487         ba_cv_header_utime_h=no
23488 fi
23489
23490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23491 fi
23492 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
23493 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
23494 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
23495 #define HAVE_UTIME_H 1
23496 _ACEOF
23497
23498
23499 { echo "$as_me:$LINENO: checking for socklen_t" >&5
23500 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23501 if test "${ba_cv_header_socklen_t+set}" = set; then
23502   echo $ECHO_N "(cached) $ECHO_C" >&6
23503 else
23504   cat >conftest.$ac_ext <<_ACEOF
23505 /* confdefs.h.  */
23506 _ACEOF
23507 cat confdefs.h >>conftest.$ac_ext
23508 cat >>conftest.$ac_ext <<_ACEOF
23509 /* end confdefs.h.  */
23510
23511 #include <sys/types.h>
23512 #include <sys/socket.h>
23513 int
23514 main ()
23515 {
23516 socklen_t x
23517   ;
23518   return 0;
23519 }
23520 _ACEOF
23521 rm -f conftest.$ac_objext
23522 if { (ac_try="$ac_compile"
23523 case "(($ac_try" in
23524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23525   *) ac_try_echo=$ac_try;;
23526 esac
23527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23528   (eval "$ac_compile") 2>conftest.er1
23529   ac_status=$?
23530   grep -v '^ *+' conftest.er1 >conftest.err
23531   rm -f conftest.er1
23532   cat conftest.err >&5
23533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534   (exit $ac_status); } &&
23535          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23536   { (case "(($ac_try" in
23537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23538   *) ac_try_echo=$ac_try;;
23539 esac
23540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23541   (eval "$ac_try") 2>&5
23542   ac_status=$?
23543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23544   (exit $ac_status); }; } &&
23545          { ac_try='test -s conftest.$ac_objext'
23546   { (case "(($ac_try" in
23547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23548   *) ac_try_echo=$ac_try;;
23549 esac
23550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23551   (eval "$ac_try") 2>&5
23552   ac_status=$?
23553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23554   (exit $ac_status); }; }; then
23555   ba_cv_header_socklen_t=yes
23556 else
23557   echo "$as_me: failed program was:" >&5
23558 sed 's/^/| /' conftest.$ac_ext >&5
23559
23560         ba_cv_header_socklen_t=no
23561 fi
23562
23563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23564 fi
23565 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
23566 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
23567 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
23568 #define HAVE_SOCKLEN_T 1
23569 _ACEOF
23570
23571
23572 { echo "$as_me:$LINENO: checking for bigendian" >&5
23573 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
23574 if test "${ba_cv_bigendian+set}" = set; then
23575   echo $ECHO_N "(cached) $ECHO_C" >&6
23576 else
23577   if test "$cross_compiling" = yes; then
23578   ba_cv_bigendian=no
23579 else
23580   cat >conftest.$ac_ext <<_ACEOF
23581 /* confdefs.h.  */
23582 _ACEOF
23583 cat confdefs.h >>conftest.$ac_ext
23584 cat >>conftest.$ac_ext <<_ACEOF
23585 /* end confdefs.h.  */
23586 main(){long a=1L; char *p=(char *)&a; exit(*p);}
23587 _ACEOF
23588 rm -f conftest$ac_exeext
23589 if { (ac_try="$ac_link"
23590 case "(($ac_try" in
23591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23592   *) ac_try_echo=$ac_try;;
23593 esac
23594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23595   (eval "$ac_link") 2>&5
23596   ac_status=$?
23597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23599   { (case "(($ac_try" in
23600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23601   *) ac_try_echo=$ac_try;;
23602 esac
23603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23604   (eval "$ac_try") 2>&5
23605   ac_status=$?
23606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607   (exit $ac_status); }; }; then
23608   ba_cv_bigendian=yes
23609 else
23610   echo "$as_me: program exited with status $ac_status" >&5
23611 echo "$as_me: failed program was:" >&5
23612 sed 's/^/| /' conftest.$ac_ext >&5
23613
23614 ( exit $ac_status )
23615 ba_cv_bigendian=no
23616 fi
23617 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23618 fi
23619
23620
23621 fi
23622 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
23623 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
23624 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
23625 #define HAVE_BIGENDIAN 1
23626 _ACEOF
23627
23628
23629 ac_ext=cpp
23630 ac_cpp='$CXXCPP $CPPFLAGS'
23631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23634
23635
23636 { echo "$as_me:$LINENO: checking for typeof" >&5
23637 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
23638 if test "${ba_cv_have_typeof+set}" = set; then
23639   echo $ECHO_N "(cached) $ECHO_C" >&6
23640 else
23641   if test "$cross_compiling" = yes; then
23642   ba_cv_have_typeof=no
23643 else
23644   cat >conftest.$ac_ext <<_ACEOF
23645 /* confdefs.h.  */
23646 _ACEOF
23647 cat confdefs.h >>conftest.$ac_ext
23648 cat >>conftest.$ac_ext <<_ACEOF
23649 /* end confdefs.h.  */
23650 main(){char *a = 0; a = (typeof a)a;}
23651 _ACEOF
23652 rm -f conftest$ac_exeext
23653 if { (ac_try="$ac_link"
23654 case "(($ac_try" in
23655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23656   *) ac_try_echo=$ac_try;;
23657 esac
23658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23659   (eval "$ac_link") 2>&5
23660   ac_status=$?
23661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23663   { (case "(($ac_try" in
23664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23665   *) ac_try_echo=$ac_try;;
23666 esac
23667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23668   (eval "$ac_try") 2>&5
23669   ac_status=$?
23670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23671   (exit $ac_status); }; }; then
23672   ba_cv_have_typeof=yes
23673 else
23674   echo "$as_me: program exited with status $ac_status" >&5
23675 echo "$as_me: failed program was:" >&5
23676 sed 's/^/| /' conftest.$ac_ext >&5
23677
23678 ( exit $ac_status )
23679 ba_cv_have_typeof=no
23680 fi
23681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23682 fi
23683
23684
23685 fi
23686 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
23687 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
23688 test $ba_cv_have_typeof = yes &&
23689 cat >>confdefs.h <<\_ACEOF
23690 #define HAVE_TYPEOF 1
23691 _ACEOF
23692
23693 ac_ext=c
23694 ac_cpp='$CPP $CPPFLAGS'
23695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23698
23699
23700 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23701 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23702 if test "${ac_cv_c_const+set}" = set; then
23703   echo $ECHO_N "(cached) $ECHO_C" >&6
23704 else
23705   cat >conftest.$ac_ext <<_ACEOF
23706 /* confdefs.h.  */
23707 _ACEOF
23708 cat confdefs.h >>conftest.$ac_ext
23709 cat >>conftest.$ac_ext <<_ACEOF
23710 /* end confdefs.h.  */
23711
23712 int
23713 main ()
23714 {
23715 /* FIXME: Include the comments suggested by Paul. */
23716 #ifndef __cplusplus
23717   /* Ultrix mips cc rejects this.  */
23718   typedef int charset[2];
23719   const charset x;
23720   /* SunOS 4.1.1 cc rejects this.  */
23721   char const *const *ccp;
23722   char **p;
23723   /* NEC SVR4.0.2 mips cc rejects this.  */
23724   struct point {int x, y;};
23725   static struct point const zero = {0,0};
23726   /* AIX XL C 1.02.0.0 rejects this.
23727      It does not let you subtract one const X* pointer from another in
23728      an arm of an if-expression whose if-part is not a constant
23729      expression */
23730   const char *g = "string";
23731   ccp = &g + (g ? g-g : 0);
23732   /* HPUX 7.0 cc rejects these. */
23733   ++ccp;
23734   p = (char**) ccp;
23735   ccp = (char const *const *) p;
23736   { /* SCO 3.2v4 cc rejects this.  */
23737     char *t;
23738     char const *s = 0 ? (char *) 0 : (char const *) 0;
23739
23740     *t++ = 0;
23741     if (s) return 0;
23742   }
23743   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23744     int x[] = {25, 17};
23745     const int *foo = &x[0];
23746     ++foo;
23747   }
23748   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23749     typedef const int *iptr;
23750     iptr p = 0;
23751     ++p;
23752   }
23753   { /* AIX XL C 1.02.0.0 rejects this saying
23754        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23755     struct s { int j; const int *ap[3]; };
23756     struct s *b; b->j = 5;
23757   }
23758   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23759     const int foo = 10;
23760     if (!foo) return 0;
23761   }
23762   return !x[0] && !zero.x;
23763 #endif
23764
23765   ;
23766   return 0;
23767 }
23768 _ACEOF
23769 rm -f conftest.$ac_objext
23770 if { (ac_try="$ac_compile"
23771 case "(($ac_try" in
23772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23773   *) ac_try_echo=$ac_try;;
23774 esac
23775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23776   (eval "$ac_compile") 2>conftest.er1
23777   ac_status=$?
23778   grep -v '^ *+' conftest.er1 >conftest.err
23779   rm -f conftest.er1
23780   cat conftest.err >&5
23781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23782   (exit $ac_status); } &&
23783          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23784   { (case "(($ac_try" in
23785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23786   *) ac_try_echo=$ac_try;;
23787 esac
23788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23789   (eval "$ac_try") 2>&5
23790   ac_status=$?
23791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792   (exit $ac_status); }; } &&
23793          { ac_try='test -s conftest.$ac_objext'
23794   { (case "(($ac_try" in
23795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23796   *) ac_try_echo=$ac_try;;
23797 esac
23798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23799   (eval "$ac_try") 2>&5
23800   ac_status=$?
23801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23802   (exit $ac_status); }; }; then
23803   ac_cv_c_const=yes
23804 else
23805   echo "$as_me: failed program was:" >&5
23806 sed 's/^/| /' conftest.$ac_ext >&5
23807
23808         ac_cv_c_const=no
23809 fi
23810
23811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23812 fi
23813 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23814 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23815 if test $ac_cv_c_const = no; then
23816
23817 cat >>confdefs.h <<\_ACEOF
23818 #define const
23819 _ACEOF
23820
23821 fi
23822
23823
23824
23825 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
23826 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
23827 fstype=no
23828 # The order of these tests is important.
23829 cat >conftest.$ac_ext <<_ACEOF
23830 /* confdefs.h.  */
23831 _ACEOF
23832 cat confdefs.h >>conftest.$ac_ext
23833 cat >>conftest.$ac_ext <<_ACEOF
23834 /* end confdefs.h.  */
23835 #include <sys/statvfs.h>
23836 #include <sys/fstyp.h>
23837 _ACEOF
23838 if { (ac_try="$ac_cpp conftest.$ac_ext"
23839 case "(($ac_try" in
23840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23841   *) ac_try_echo=$ac_try;;
23842 esac
23843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23844   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23845   ac_status=$?
23846   grep -v '^ *+' conftest.er1 >conftest.err
23847   rm -f conftest.er1
23848   cat conftest.err >&5
23849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23850   (exit $ac_status); } >/dev/null; then
23851   if test -s conftest.err; then
23852     ac_cpp_err=$ac_c_preproc_warn_flag
23853     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23854   else
23855     ac_cpp_err=
23856   fi
23857 else
23858   ac_cpp_err=yes
23859 fi
23860 if test -z "$ac_cpp_err"; then
23861   cat >>confdefs.h <<\_ACEOF
23862 #define FSTYPE_STATVFS 1
23863 _ACEOF
23864  fstype=SVR4
23865 else
23866   echo "$as_me: failed program was:" >&5
23867 sed 's/^/| /' conftest.$ac_ext >&5
23868
23869
23870 fi
23871
23872 rm -f conftest.err conftest.$ac_ext
23873 if test $fstype = no; then
23874 cat >conftest.$ac_ext <<_ACEOF
23875 /* confdefs.h.  */
23876 _ACEOF
23877 cat confdefs.h >>conftest.$ac_ext
23878 cat >>conftest.$ac_ext <<_ACEOF
23879 /* end confdefs.h.  */
23880 #include <sys/statfs.h>
23881 #include <sys/fstyp.h>
23882 _ACEOF
23883 if { (ac_try="$ac_cpp conftest.$ac_ext"
23884 case "(($ac_try" in
23885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23886   *) ac_try_echo=$ac_try;;
23887 esac
23888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23889   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23890   ac_status=$?
23891   grep -v '^ *+' conftest.er1 >conftest.err
23892   rm -f conftest.er1
23893   cat conftest.err >&5
23894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23895   (exit $ac_status); } >/dev/null; then
23896   if test -s conftest.err; then
23897     ac_cpp_err=$ac_c_preproc_warn_flag
23898     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23899   else
23900     ac_cpp_err=
23901   fi
23902 else
23903   ac_cpp_err=yes
23904 fi
23905 if test -z "$ac_cpp_err"; then
23906   cat >>confdefs.h <<\_ACEOF
23907 #define FSTYPE_USG_STATFS 1
23908 _ACEOF
23909  fstype=SVR3
23910 else
23911   echo "$as_me: failed program was:" >&5
23912 sed 's/^/| /' conftest.$ac_ext >&5
23913
23914
23915 fi
23916
23917 rm -f conftest.err conftest.$ac_ext
23918 fi
23919 if test $fstype = no; then
23920 cat >conftest.$ac_ext <<_ACEOF
23921 /* confdefs.h.  */
23922 _ACEOF
23923 cat confdefs.h >>conftest.$ac_ext
23924 cat >>conftest.$ac_ext <<_ACEOF
23925 /* end confdefs.h.  */
23926 #include <sys/statfs.h>
23927 #include <sys/vmount.h>
23928 _ACEOF
23929 if { (ac_try="$ac_cpp conftest.$ac_ext"
23930 case "(($ac_try" in
23931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23932   *) ac_try_echo=$ac_try;;
23933 esac
23934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23935   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23936   ac_status=$?
23937   grep -v '^ *+' conftest.er1 >conftest.err
23938   rm -f conftest.er1
23939   cat conftest.err >&5
23940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23941   (exit $ac_status); } >/dev/null; then
23942   if test -s conftest.err; then
23943     ac_cpp_err=$ac_c_preproc_warn_flag
23944     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23945   else
23946     ac_cpp_err=
23947   fi
23948 else
23949   ac_cpp_err=yes
23950 fi
23951 if test -z "$ac_cpp_err"; then
23952   cat >>confdefs.h <<\_ACEOF
23953 #define FSTYPE_AIX_STATFS 1
23954 _ACEOF
23955  fstype=AIX
23956 else
23957   echo "$as_me: failed program was:" >&5
23958 sed 's/^/| /' conftest.$ac_ext >&5
23959
23960
23961 fi
23962
23963 rm -f conftest.err conftest.$ac_ext
23964 fi
23965 if test $fstype = no; then
23966 cat >conftest.$ac_ext <<_ACEOF
23967 /* confdefs.h.  */
23968 _ACEOF
23969 cat confdefs.h >>conftest.$ac_ext
23970 cat >>conftest.$ac_ext <<_ACEOF
23971 /* end confdefs.h.  */
23972 #include <mntent.h>
23973 _ACEOF
23974 if { (ac_try="$ac_cpp conftest.$ac_ext"
23975 case "(($ac_try" in
23976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23977   *) ac_try_echo=$ac_try;;
23978 esac
23979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23980   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23981   ac_status=$?
23982   grep -v '^ *+' conftest.er1 >conftest.err
23983   rm -f conftest.er1
23984   cat conftest.err >&5
23985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23986   (exit $ac_status); } >/dev/null; then
23987   if test -s conftest.err; then
23988     ac_cpp_err=$ac_c_preproc_warn_flag
23989     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23990   else
23991     ac_cpp_err=
23992   fi
23993 else
23994   ac_cpp_err=yes
23995 fi
23996 if test -z "$ac_cpp_err"; then
23997   cat >>confdefs.h <<\_ACEOF
23998 #define FSTYPE_MNTENT 1
23999 _ACEOF
24000  fstype=4.3BSD
24001 else
24002   echo "$as_me: failed program was:" >&5
24003 sed 's/^/| /' conftest.$ac_ext >&5
24004
24005
24006 fi
24007
24008 rm -f conftest.err conftest.$ac_ext
24009 fi
24010 if test $fstype = no; then
24011 cat >conftest.$ac_ext <<_ACEOF
24012 /* confdefs.h.  */
24013 _ACEOF
24014 cat confdefs.h >>conftest.$ac_ext
24015 cat >>conftest.$ac_ext <<_ACEOF
24016 /* end confdefs.h.  */
24017 #include <sys/mount.h>
24018
24019 _ACEOF
24020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24021   $EGREP "f_type;" >/dev/null 2>&1; then
24022   cat >>confdefs.h <<\_ACEOF
24023 #define FSTYPE_STATFS 1
24024 _ACEOF
24025  fstype=4.4BSD/OSF1
24026 fi
24027 rm -f conftest*
24028
24029 fi
24030 if test $fstype = no; then
24031 cat >conftest.$ac_ext <<_ACEOF
24032 /* confdefs.h.  */
24033 _ACEOF
24034 cat confdefs.h >>conftest.$ac_ext
24035 cat >>conftest.$ac_ext <<_ACEOF
24036 /* end confdefs.h.  */
24037 #include <sys/mount.h>
24038 #include <sys/fs_types.h>
24039 _ACEOF
24040 if { (ac_try="$ac_cpp conftest.$ac_ext"
24041 case "(($ac_try" in
24042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24043   *) ac_try_echo=$ac_try;;
24044 esac
24045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24046   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24047   ac_status=$?
24048   grep -v '^ *+' conftest.er1 >conftest.err
24049   rm -f conftest.er1
24050   cat conftest.err >&5
24051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052   (exit $ac_status); } >/dev/null; then
24053   if test -s conftest.err; then
24054     ac_cpp_err=$ac_c_preproc_warn_flag
24055     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24056   else
24057     ac_cpp_err=
24058   fi
24059 else
24060   ac_cpp_err=yes
24061 fi
24062 if test -z "$ac_cpp_err"; then
24063   cat >>confdefs.h <<\_ACEOF
24064 #define FSTYPE_GETMNT 1
24065 _ACEOF
24066  fstype=Ultrix
24067 else
24068   echo "$as_me: failed program was:" >&5
24069 sed 's/^/| /' conftest.$ac_ext >&5
24070
24071
24072 fi
24073
24074 rm -f conftest.err conftest.$ac_ext
24075 fi
24076 { echo "$as_me:$LINENO: result: $fstype" >&5
24077 echo "${ECHO_T}$fstype" >&6; }
24078
24079 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24080   { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
24081 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
24082 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24083   echo $ECHO_N "(cached) $ECHO_C" >&6
24084 fi
24085 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
24086 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
24087 else
24088   # Is the header compilable?
24089 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
24090 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
24091 cat >conftest.$ac_ext <<_ACEOF
24092 /* confdefs.h.  */
24093 _ACEOF
24094 cat confdefs.h >>conftest.$ac_ext
24095 cat >>conftest.$ac_ext <<_ACEOF
24096 /* end confdefs.h.  */
24097 $ac_includes_default
24098 #include <sys/statvfs.h>
24099 _ACEOF
24100 rm -f conftest.$ac_objext
24101 if { (ac_try="$ac_compile"
24102 case "(($ac_try" in
24103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24104   *) ac_try_echo=$ac_try;;
24105 esac
24106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24107   (eval "$ac_compile") 2>conftest.er1
24108   ac_status=$?
24109   grep -v '^ *+' conftest.er1 >conftest.err
24110   rm -f conftest.er1
24111   cat conftest.err >&5
24112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24113   (exit $ac_status); } &&
24114          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24115   { (case "(($ac_try" in
24116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24117   *) ac_try_echo=$ac_try;;
24118 esac
24119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24120   (eval "$ac_try") 2>&5
24121   ac_status=$?
24122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24123   (exit $ac_status); }; } &&
24124          { ac_try='test -s conftest.$ac_objext'
24125   { (case "(($ac_try" in
24126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24127   *) ac_try_echo=$ac_try;;
24128 esac
24129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24130   (eval "$ac_try") 2>&5
24131   ac_status=$?
24132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24133   (exit $ac_status); }; }; then
24134   ac_header_compiler=yes
24135 else
24136   echo "$as_me: failed program was:" >&5
24137 sed 's/^/| /' conftest.$ac_ext >&5
24138
24139         ac_header_compiler=no
24140 fi
24141
24142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24143 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24144 echo "${ECHO_T}$ac_header_compiler" >&6; }
24145
24146 # Is the header present?
24147 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
24148 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
24149 cat >conftest.$ac_ext <<_ACEOF
24150 /* confdefs.h.  */
24151 _ACEOF
24152 cat confdefs.h >>conftest.$ac_ext
24153 cat >>conftest.$ac_ext <<_ACEOF
24154 /* end confdefs.h.  */
24155 #include <sys/statvfs.h>
24156 _ACEOF
24157 if { (ac_try="$ac_cpp conftest.$ac_ext"
24158 case "(($ac_try" in
24159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24160   *) ac_try_echo=$ac_try;;
24161 esac
24162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24163   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24164   ac_status=$?
24165   grep -v '^ *+' conftest.er1 >conftest.err
24166   rm -f conftest.er1
24167   cat conftest.err >&5
24168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24169   (exit $ac_status); } >/dev/null; then
24170   if test -s conftest.err; then
24171     ac_cpp_err=$ac_c_preproc_warn_flag
24172     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24173   else
24174     ac_cpp_err=
24175   fi
24176 else
24177   ac_cpp_err=yes
24178 fi
24179 if test -z "$ac_cpp_err"; then
24180   ac_header_preproc=yes
24181 else
24182   echo "$as_me: failed program was:" >&5
24183 sed 's/^/| /' conftest.$ac_ext >&5
24184
24185   ac_header_preproc=no
24186 fi
24187
24188 rm -f conftest.err conftest.$ac_ext
24189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24190 echo "${ECHO_T}$ac_header_preproc" >&6; }
24191
24192 # So?  What about this header?
24193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24194   yes:no: )
24195     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
24196 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24197     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
24198 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
24199     ac_header_preproc=yes
24200     ;;
24201   no:yes:* )
24202     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
24203 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
24204     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&5
24205 echo "$as_me: WARNING: sys/statvfs.h:     check for missing prerequisite headers?" >&2;}
24206     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
24207 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
24208     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&5
24209 echo "$as_me: WARNING: sys/statvfs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
24210     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
24211 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
24212     { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
24213 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
24214
24215     ;;
24216 esac
24217 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
24218 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
24219 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
24220   echo $ECHO_N "(cached) $ECHO_C" >&6
24221 else
24222   ac_cv_header_sys_statvfs_h=$ac_header_preproc
24223 fi
24224 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
24225 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
24226
24227 fi
24228 if test $ac_cv_header_sys_statvfs_h = yes; then
24229
24230 cat >>confdefs.h <<\_ACEOF
24231 #define HAVE_SYS_STATVFS_H 1
24232 _ACEOF
24233
24234 fi
24235
24236
24237
24238 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24239 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
24240 if test "${ac_cv_type_signal+set}" = set; then
24241   echo $ECHO_N "(cached) $ECHO_C" >&6
24242 else
24243   cat >conftest.$ac_ext <<_ACEOF
24244 /* confdefs.h.  */
24245 _ACEOF
24246 cat confdefs.h >>conftest.$ac_ext
24247 cat >>conftest.$ac_ext <<_ACEOF
24248 /* end confdefs.h.  */
24249 #include <sys/types.h>
24250 #include <signal.h>
24251
24252 int
24253 main ()
24254 {
24255 return *(signal (0, 0)) (0) == 1;
24256   ;
24257   return 0;
24258 }
24259 _ACEOF
24260 rm -f conftest.$ac_objext
24261 if { (ac_try="$ac_compile"
24262 case "(($ac_try" in
24263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24264   *) ac_try_echo=$ac_try;;
24265 esac
24266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24267   (eval "$ac_compile") 2>conftest.er1
24268   ac_status=$?
24269   grep -v '^ *+' conftest.er1 >conftest.err
24270   rm -f conftest.er1
24271   cat conftest.err >&5
24272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24273   (exit $ac_status); } &&
24274          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24275   { (case "(($ac_try" in
24276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24277   *) ac_try_echo=$ac_try;;
24278 esac
24279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24280   (eval "$ac_try") 2>&5
24281   ac_status=$?
24282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24283   (exit $ac_status); }; } &&
24284          { ac_try='test -s conftest.$ac_objext'
24285   { (case "(($ac_try" in
24286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24287   *) ac_try_echo=$ac_try;;
24288 esac
24289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24290   (eval "$ac_try") 2>&5
24291   ac_status=$?
24292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24293   (exit $ac_status); }; }; then
24294   ac_cv_type_signal=int
24295 else
24296   echo "$as_me: failed program was:" >&5
24297 sed 's/^/| /' conftest.$ac_ext >&5
24298
24299         ac_cv_type_signal=void
24300 fi
24301
24302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24303 fi
24304 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24305 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
24306
24307 cat >>confdefs.h <<_ACEOF
24308 #define RETSIGTYPE $ac_cv_type_signal
24309 _ACEOF
24310
24311
24312
24313   { echo "$as_me:$LINENO: checking for type of signal functions" >&5
24314 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
24315   if test "${bash_cv_signal_vintage+set}" = set; then
24316   echo $ECHO_N "(cached) $ECHO_C" >&6
24317 else
24318
24319     cat >conftest.$ac_ext <<_ACEOF
24320 /* confdefs.h.  */
24321 _ACEOF
24322 cat confdefs.h >>conftest.$ac_ext
24323 cat >>conftest.$ac_ext <<_ACEOF
24324 /* end confdefs.h.  */
24325 #include <signal.h>
24326 int
24327 main ()
24328 {
24329
24330       sigset_t ss;
24331       struct sigaction sa;
24332       sigemptyset(&ss); sigsuspend(&ss);
24333       sigaction(SIGINT, &sa, (struct sigaction *) 0);
24334       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
24335
24336   ;
24337   return 0;
24338 }
24339 _ACEOF
24340 rm -f conftest.$ac_objext conftest$ac_exeext
24341 if { (ac_try="$ac_link"
24342 case "(($ac_try" in
24343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24344   *) ac_try_echo=$ac_try;;
24345 esac
24346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24347   (eval "$ac_link") 2>conftest.er1
24348   ac_status=$?
24349   grep -v '^ *+' conftest.er1 >conftest.err
24350   rm -f conftest.er1
24351   cat conftest.err >&5
24352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24353   (exit $ac_status); } &&
24354          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24355   { (case "(($ac_try" in
24356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24357   *) ac_try_echo=$ac_try;;
24358 esac
24359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24360   (eval "$ac_try") 2>&5
24361   ac_status=$?
24362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24363   (exit $ac_status); }; } &&
24364          { ac_try='test -s conftest$ac_exeext'
24365   { (case "(($ac_try" in
24366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24367   *) ac_try_echo=$ac_try;;
24368 esac
24369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24370   (eval "$ac_try") 2>&5
24371   ac_status=$?
24372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24373   (exit $ac_status); }; }; then
24374   bash_cv_signal_vintage="posix"
24375 else
24376   echo "$as_me: failed program was:" >&5
24377 sed 's/^/| /' conftest.$ac_ext >&5
24378
24379
24380       cat >conftest.$ac_ext <<_ACEOF
24381 /* confdefs.h.  */
24382 _ACEOF
24383 cat confdefs.h >>conftest.$ac_ext
24384 cat >>conftest.$ac_ext <<_ACEOF
24385 /* end confdefs.h.  */
24386 #include <signal.h>
24387 int
24388 main ()
24389 {
24390
24391           int mask = sigmask(SIGINT);
24392           sigsetmask(mask); sigblock(mask); sigpause(mask);
24393
24394   ;
24395   return 0;
24396 }
24397 _ACEOF
24398 rm -f conftest.$ac_objext conftest$ac_exeext
24399 if { (ac_try="$ac_link"
24400 case "(($ac_try" in
24401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24402   *) ac_try_echo=$ac_try;;
24403 esac
24404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24405   (eval "$ac_link") 2>conftest.er1
24406   ac_status=$?
24407   grep -v '^ *+' conftest.er1 >conftest.err
24408   rm -f conftest.er1
24409   cat conftest.err >&5
24410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411   (exit $ac_status); } &&
24412          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24413   { (case "(($ac_try" in
24414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24415   *) ac_try_echo=$ac_try;;
24416 esac
24417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24418   (eval "$ac_try") 2>&5
24419   ac_status=$?
24420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24421   (exit $ac_status); }; } &&
24422          { ac_try='test -s conftest$ac_exeext'
24423   { (case "(($ac_try" in
24424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24425   *) ac_try_echo=$ac_try;;
24426 esac
24427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24428   (eval "$ac_try") 2>&5
24429   ac_status=$?
24430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24431   (exit $ac_status); }; }; then
24432   bash_cv_signal_vintage="4.2bsd"
24433 else
24434   echo "$as_me: failed program was:" >&5
24435 sed 's/^/| /' conftest.$ac_ext >&5
24436
24437
24438         cat >conftest.$ac_ext <<_ACEOF
24439 /* confdefs.h.  */
24440 _ACEOF
24441 cat confdefs.h >>conftest.$ac_ext
24442 cat >>conftest.$ac_ext <<_ACEOF
24443 /* end confdefs.h.  */
24444
24445           #include <signal.h>
24446           RETSIGTYPE foo() { }
24447 int
24448 main ()
24449 {
24450
24451                   int mask = sigmask(SIGINT);
24452                   sigset(SIGINT, foo); sigrelse(SIGINT);
24453                   sighold(SIGINT); sigpause(SIGINT);
24454
24455   ;
24456   return 0;
24457 }
24458 _ACEOF
24459 rm -f conftest.$ac_objext conftest$ac_exeext
24460 if { (ac_try="$ac_link"
24461 case "(($ac_try" in
24462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24463   *) ac_try_echo=$ac_try;;
24464 esac
24465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24466   (eval "$ac_link") 2>conftest.er1
24467   ac_status=$?
24468   grep -v '^ *+' conftest.er1 >conftest.err
24469   rm -f conftest.er1
24470   cat conftest.err >&5
24471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24472   (exit $ac_status); } &&
24473          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24474   { (case "(($ac_try" in
24475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24476   *) ac_try_echo=$ac_try;;
24477 esac
24478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24479   (eval "$ac_try") 2>&5
24480   ac_status=$?
24481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482   (exit $ac_status); }; } &&
24483          { ac_try='test -s conftest$ac_exeext'
24484   { (case "(($ac_try" in
24485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24486   *) ac_try_echo=$ac_try;;
24487 esac
24488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24489   (eval "$ac_try") 2>&5
24490   ac_status=$?
24491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24492   (exit $ac_status); }; }; then
24493   bash_cv_signal_vintage="svr3"
24494 else
24495   echo "$as_me: failed program was:" >&5
24496 sed 's/^/| /' conftest.$ac_ext >&5
24497
24498         bash_cv_signal_vintage="v7"
24499
24500 fi
24501
24502 rm -f core conftest.err conftest.$ac_objext \
24503       conftest$ac_exeext conftest.$ac_ext
24504
24505 fi
24506
24507 rm -f core conftest.err conftest.$ac_objext \
24508       conftest$ac_exeext conftest.$ac_ext
24509
24510 fi
24511
24512 rm -f core conftest.err conftest.$ac_objext \
24513       conftest$ac_exeext conftest.$ac_ext
24514
24515 fi
24516
24517   { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
24518 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
24519   if test "$bash_cv_signal_vintage" = "posix"; then
24520     cat >>confdefs.h <<\_ACEOF
24521 #define HAVE_POSIX_SIGNALS 1
24522 _ACEOF
24523
24524   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
24525     cat >>confdefs.h <<\_ACEOF
24526 #define HAVE_BSD_SIGNALS 1
24527 _ACEOF
24528
24529   elif test "$bash_cv_signal_vintage" = "svr3"; then
24530     cat >>confdefs.h <<\_ACEOF
24531 #define HAVE_USG_SIGHOLD 1
24532 _ACEOF
24533
24534   fi
24535
24536 { echo "$as_me:$LINENO: checking for mode_t" >&5
24537 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
24538 if test "${ac_cv_type_mode_t+set}" = set; then
24539   echo $ECHO_N "(cached) $ECHO_C" >&6
24540 else
24541   cat >conftest.$ac_ext <<_ACEOF
24542 /* confdefs.h.  */
24543 _ACEOF
24544 cat confdefs.h >>conftest.$ac_ext
24545 cat >>conftest.$ac_ext <<_ACEOF
24546 /* end confdefs.h.  */
24547 $ac_includes_default
24548 typedef mode_t ac__type_new_;
24549 int
24550 main ()
24551 {
24552 if ((ac__type_new_ *) 0)
24553   return 0;
24554 if (sizeof (ac__type_new_))
24555   return 0;
24556   ;
24557   return 0;
24558 }
24559 _ACEOF
24560 rm -f conftest.$ac_objext
24561 if { (ac_try="$ac_compile"
24562 case "(($ac_try" in
24563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24564   *) ac_try_echo=$ac_try;;
24565 esac
24566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24567   (eval "$ac_compile") 2>conftest.er1
24568   ac_status=$?
24569   grep -v '^ *+' conftest.er1 >conftest.err
24570   rm -f conftest.er1
24571   cat conftest.err >&5
24572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24573   (exit $ac_status); } &&
24574          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24575   { (case "(($ac_try" in
24576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24577   *) ac_try_echo=$ac_try;;
24578 esac
24579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24580   (eval "$ac_try") 2>&5
24581   ac_status=$?
24582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24583   (exit $ac_status); }; } &&
24584          { ac_try='test -s conftest.$ac_objext'
24585   { (case "(($ac_try" in
24586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24587   *) ac_try_echo=$ac_try;;
24588 esac
24589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24590   (eval "$ac_try") 2>&5
24591   ac_status=$?
24592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24593   (exit $ac_status); }; }; then
24594   ac_cv_type_mode_t=yes
24595 else
24596   echo "$as_me: failed program was:" >&5
24597 sed 's/^/| /' conftest.$ac_ext >&5
24598
24599         ac_cv_type_mode_t=no
24600 fi
24601
24602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24603 fi
24604 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
24605 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
24606 if test $ac_cv_type_mode_t = yes; then
24607   :
24608 else
24609
24610 cat >>confdefs.h <<_ACEOF
24611 #define mode_t int
24612 _ACEOF
24613
24614 fi
24615
24616 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24617 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24618 if test "${ac_cv_type_uid_t+set}" = set; then
24619   echo $ECHO_N "(cached) $ECHO_C" >&6
24620 else
24621   cat >conftest.$ac_ext <<_ACEOF
24622 /* confdefs.h.  */
24623 _ACEOF
24624 cat confdefs.h >>conftest.$ac_ext
24625 cat >>conftest.$ac_ext <<_ACEOF
24626 /* end confdefs.h.  */
24627 #include <sys/types.h>
24628
24629 _ACEOF
24630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24631   $EGREP "uid_t" >/dev/null 2>&1; then
24632   ac_cv_type_uid_t=yes
24633 else
24634   ac_cv_type_uid_t=no
24635 fi
24636 rm -f conftest*
24637
24638 fi
24639 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24640 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24641 if test $ac_cv_type_uid_t = no; then
24642
24643 cat >>confdefs.h <<\_ACEOF
24644 #define uid_t int
24645 _ACEOF
24646
24647
24648 cat >>confdefs.h <<\_ACEOF
24649 #define gid_t int
24650 _ACEOF
24651
24652 fi
24653
24654 { echo "$as_me:$LINENO: checking for size_t" >&5
24655 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
24656 if test "${ac_cv_type_size_t+set}" = set; then
24657   echo $ECHO_N "(cached) $ECHO_C" >&6
24658 else
24659   cat >conftest.$ac_ext <<_ACEOF
24660 /* confdefs.h.  */
24661 _ACEOF
24662 cat confdefs.h >>conftest.$ac_ext
24663 cat >>conftest.$ac_ext <<_ACEOF
24664 /* end confdefs.h.  */
24665 $ac_includes_default
24666 typedef size_t ac__type_new_;
24667 int
24668 main ()
24669 {
24670 if ((ac__type_new_ *) 0)
24671   return 0;
24672 if (sizeof (ac__type_new_))
24673   return 0;
24674   ;
24675   return 0;
24676 }
24677 _ACEOF
24678 rm -f conftest.$ac_objext
24679 if { (ac_try="$ac_compile"
24680 case "(($ac_try" in
24681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24682   *) ac_try_echo=$ac_try;;
24683 esac
24684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24685   (eval "$ac_compile") 2>conftest.er1
24686   ac_status=$?
24687   grep -v '^ *+' conftest.er1 >conftest.err
24688   rm -f conftest.er1
24689   cat conftest.err >&5
24690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691   (exit $ac_status); } &&
24692          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24693   { (case "(($ac_try" in
24694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24695   *) ac_try_echo=$ac_try;;
24696 esac
24697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24698   (eval "$ac_try") 2>&5
24699   ac_status=$?
24700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24701   (exit $ac_status); }; } &&
24702          { ac_try='test -s conftest.$ac_objext'
24703   { (case "(($ac_try" in
24704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24705   *) ac_try_echo=$ac_try;;
24706 esac
24707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24708   (eval "$ac_try") 2>&5
24709   ac_status=$?
24710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24711   (exit $ac_status); }; }; then
24712   ac_cv_type_size_t=yes
24713 else
24714   echo "$as_me: failed program was:" >&5
24715 sed 's/^/| /' conftest.$ac_ext >&5
24716
24717         ac_cv_type_size_t=no
24718 fi
24719
24720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24721 fi
24722 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24723 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
24724 if test $ac_cv_type_size_t = yes; then
24725   :
24726 else
24727
24728 cat >>confdefs.h <<_ACEOF
24729 #define size_t unsigned int
24730 _ACEOF
24731
24732 fi
24733
24734 { echo "$as_me:$LINENO: checking for pid_t" >&5
24735 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24736 if test "${ac_cv_type_pid_t+set}" = set; then
24737   echo $ECHO_N "(cached) $ECHO_C" >&6
24738 else
24739   cat >conftest.$ac_ext <<_ACEOF
24740 /* confdefs.h.  */
24741 _ACEOF
24742 cat confdefs.h >>conftest.$ac_ext
24743 cat >>conftest.$ac_ext <<_ACEOF
24744 /* end confdefs.h.  */
24745 $ac_includes_default
24746 typedef pid_t ac__type_new_;
24747 int
24748 main ()
24749 {
24750 if ((ac__type_new_ *) 0)
24751   return 0;
24752 if (sizeof (ac__type_new_))
24753   return 0;
24754   ;
24755   return 0;
24756 }
24757 _ACEOF
24758 rm -f conftest.$ac_objext
24759 if { (ac_try="$ac_compile"
24760 case "(($ac_try" in
24761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24762   *) ac_try_echo=$ac_try;;
24763 esac
24764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24765   (eval "$ac_compile") 2>conftest.er1
24766   ac_status=$?
24767   grep -v '^ *+' conftest.er1 >conftest.err
24768   rm -f conftest.er1
24769   cat conftest.err >&5
24770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24771   (exit $ac_status); } &&
24772          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24773   { (case "(($ac_try" in
24774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24775   *) ac_try_echo=$ac_try;;
24776 esac
24777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24778   (eval "$ac_try") 2>&5
24779   ac_status=$?
24780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24781   (exit $ac_status); }; } &&
24782          { ac_try='test -s conftest.$ac_objext'
24783   { (case "(($ac_try" in
24784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24785   *) ac_try_echo=$ac_try;;
24786 esac
24787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24788   (eval "$ac_try") 2>&5
24789   ac_status=$?
24790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24791   (exit $ac_status); }; }; then
24792   ac_cv_type_pid_t=yes
24793 else
24794   echo "$as_me: failed program was:" >&5
24795 sed 's/^/| /' conftest.$ac_ext >&5
24796
24797         ac_cv_type_pid_t=no
24798 fi
24799
24800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24801 fi
24802 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24803 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24804 if test $ac_cv_type_pid_t = yes; then
24805   :
24806 else
24807
24808 cat >>confdefs.h <<_ACEOF
24809 #define pid_t int
24810 _ACEOF
24811
24812 fi
24813
24814 { echo "$as_me:$LINENO: checking for off_t" >&5
24815 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
24816 if test "${ac_cv_type_off_t+set}" = set; then
24817   echo $ECHO_N "(cached) $ECHO_C" >&6
24818 else
24819   cat >conftest.$ac_ext <<_ACEOF
24820 /* confdefs.h.  */
24821 _ACEOF
24822 cat confdefs.h >>conftest.$ac_ext
24823 cat >>conftest.$ac_ext <<_ACEOF
24824 /* end confdefs.h.  */
24825 $ac_includes_default
24826 typedef off_t ac__type_new_;
24827 int
24828 main ()
24829 {
24830 if ((ac__type_new_ *) 0)
24831   return 0;
24832 if (sizeof (ac__type_new_))
24833   return 0;
24834   ;
24835   return 0;
24836 }
24837 _ACEOF
24838 rm -f conftest.$ac_objext
24839 if { (ac_try="$ac_compile"
24840 case "(($ac_try" in
24841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24842   *) ac_try_echo=$ac_try;;
24843 esac
24844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24845   (eval "$ac_compile") 2>conftest.er1
24846   ac_status=$?
24847   grep -v '^ *+' conftest.er1 >conftest.err
24848   rm -f conftest.er1
24849   cat conftest.err >&5
24850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851   (exit $ac_status); } &&
24852          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24853   { (case "(($ac_try" in
24854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24855   *) ac_try_echo=$ac_try;;
24856 esac
24857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24858   (eval "$ac_try") 2>&5
24859   ac_status=$?
24860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861   (exit $ac_status); }; } &&
24862          { ac_try='test -s conftest.$ac_objext'
24863   { (case "(($ac_try" in
24864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24865   *) ac_try_echo=$ac_try;;
24866 esac
24867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24868   (eval "$ac_try") 2>&5
24869   ac_status=$?
24870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24871   (exit $ac_status); }; }; then
24872   ac_cv_type_off_t=yes
24873 else
24874   echo "$as_me: failed program was:" >&5
24875 sed 's/^/| /' conftest.$ac_ext >&5
24876
24877         ac_cv_type_off_t=no
24878 fi
24879
24880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24881 fi
24882 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24883 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
24884 if test $ac_cv_type_off_t = yes; then
24885   :
24886 else
24887
24888 cat >>confdefs.h <<_ACEOF
24889 #define off_t long int
24890 _ACEOF
24891
24892 fi
24893
24894 { echo "$as_me:$LINENO: checking for ino_t" >&5
24895 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
24896 if test "${ac_cv_type_ino_t+set}" = set; then
24897   echo $ECHO_N "(cached) $ECHO_C" >&6
24898 else
24899   cat >conftest.$ac_ext <<_ACEOF
24900 /* confdefs.h.  */
24901 _ACEOF
24902 cat confdefs.h >>conftest.$ac_ext
24903 cat >>conftest.$ac_ext <<_ACEOF
24904 /* end confdefs.h.  */
24905 $ac_includes_default
24906 typedef ino_t ac__type_new_;
24907 int
24908 main ()
24909 {
24910 if ((ac__type_new_ *) 0)
24911   return 0;
24912 if (sizeof (ac__type_new_))
24913   return 0;
24914   ;
24915   return 0;
24916 }
24917 _ACEOF
24918 rm -f conftest.$ac_objext
24919 if { (ac_try="$ac_compile"
24920 case "(($ac_try" in
24921   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24922   *) ac_try_echo=$ac_try;;
24923 esac
24924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24925   (eval "$ac_compile") 2>conftest.er1
24926   ac_status=$?
24927   grep -v '^ *+' conftest.er1 >conftest.err
24928   rm -f conftest.er1
24929   cat conftest.err >&5
24930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931   (exit $ac_status); } &&
24932          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24933   { (case "(($ac_try" in
24934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24935   *) ac_try_echo=$ac_try;;
24936 esac
24937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24938   (eval "$ac_try") 2>&5
24939   ac_status=$?
24940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24941   (exit $ac_status); }; } &&
24942          { ac_try='test -s conftest.$ac_objext'
24943   { (case "(($ac_try" in
24944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24945   *) ac_try_echo=$ac_try;;
24946 esac
24947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24948   (eval "$ac_try") 2>&5
24949   ac_status=$?
24950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24951   (exit $ac_status); }; }; then
24952   ac_cv_type_ino_t=yes
24953 else
24954   echo "$as_me: failed program was:" >&5
24955 sed 's/^/| /' conftest.$ac_ext >&5
24956
24957         ac_cv_type_ino_t=no
24958 fi
24959
24960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24961 fi
24962 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
24963 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
24964 if test $ac_cv_type_ino_t = yes; then
24965   :
24966 else
24967
24968 cat >>confdefs.h <<_ACEOF
24969 #define ino_t unsigned long
24970 _ACEOF
24971
24972 fi
24973
24974 { echo "$as_me:$LINENO: checking for dev_t" >&5
24975 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
24976 if test "${ac_cv_type_dev_t+set}" = set; then
24977   echo $ECHO_N "(cached) $ECHO_C" >&6
24978 else
24979   cat >conftest.$ac_ext <<_ACEOF
24980 /* confdefs.h.  */
24981 _ACEOF
24982 cat confdefs.h >>conftest.$ac_ext
24983 cat >>conftest.$ac_ext <<_ACEOF
24984 /* end confdefs.h.  */
24985 $ac_includes_default
24986 typedef dev_t ac__type_new_;
24987 int
24988 main ()
24989 {
24990 if ((ac__type_new_ *) 0)
24991   return 0;
24992 if (sizeof (ac__type_new_))
24993   return 0;
24994   ;
24995   return 0;
24996 }
24997 _ACEOF
24998 rm -f conftest.$ac_objext
24999 if { (ac_try="$ac_compile"
25000 case "(($ac_try" in
25001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25002   *) ac_try_echo=$ac_try;;
25003 esac
25004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25005   (eval "$ac_compile") 2>conftest.er1
25006   ac_status=$?
25007   grep -v '^ *+' conftest.er1 >conftest.err
25008   rm -f conftest.er1
25009   cat conftest.err >&5
25010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25011   (exit $ac_status); } &&
25012          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25013   { (case "(($ac_try" in
25014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25015   *) ac_try_echo=$ac_try;;
25016 esac
25017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25018   (eval "$ac_try") 2>&5
25019   ac_status=$?
25020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25021   (exit $ac_status); }; } &&
25022          { ac_try='test -s conftest.$ac_objext'
25023   { (case "(($ac_try" in
25024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25025   *) ac_try_echo=$ac_try;;
25026 esac
25027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25028   (eval "$ac_try") 2>&5
25029   ac_status=$?
25030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25031   (exit $ac_status); }; }; then
25032   ac_cv_type_dev_t=yes
25033 else
25034   echo "$as_me: failed program was:" >&5
25035 sed 's/^/| /' conftest.$ac_ext >&5
25036
25037         ac_cv_type_dev_t=no
25038 fi
25039
25040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25041 fi
25042 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
25043 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
25044 if test $ac_cv_type_dev_t = yes; then
25045   :
25046 else
25047
25048 cat >>confdefs.h <<_ACEOF
25049 #define dev_t unsigned long
25050 _ACEOF
25051
25052 fi
25053
25054 { echo "$as_me:$LINENO: checking for daddr_t" >&5
25055 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
25056 if test "${ac_cv_type_daddr_t+set}" = set; then
25057   echo $ECHO_N "(cached) $ECHO_C" >&6
25058 else
25059   cat >conftest.$ac_ext <<_ACEOF
25060 /* confdefs.h.  */
25061 _ACEOF
25062 cat confdefs.h >>conftest.$ac_ext
25063 cat >>conftest.$ac_ext <<_ACEOF
25064 /* end confdefs.h.  */
25065 $ac_includes_default
25066 typedef daddr_t ac__type_new_;
25067 int
25068 main ()
25069 {
25070 if ((ac__type_new_ *) 0)
25071   return 0;
25072 if (sizeof (ac__type_new_))
25073   return 0;
25074   ;
25075   return 0;
25076 }
25077 _ACEOF
25078 rm -f conftest.$ac_objext
25079 if { (ac_try="$ac_compile"
25080 case "(($ac_try" in
25081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25082   *) ac_try_echo=$ac_try;;
25083 esac
25084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25085   (eval "$ac_compile") 2>conftest.er1
25086   ac_status=$?
25087   grep -v '^ *+' conftest.er1 >conftest.err
25088   rm -f conftest.er1
25089   cat conftest.err >&5
25090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25091   (exit $ac_status); } &&
25092          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25093   { (case "(($ac_try" in
25094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25095   *) ac_try_echo=$ac_try;;
25096 esac
25097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25098   (eval "$ac_try") 2>&5
25099   ac_status=$?
25100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25101   (exit $ac_status); }; } &&
25102          { ac_try='test -s conftest.$ac_objext'
25103   { (case "(($ac_try" in
25104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25105   *) ac_try_echo=$ac_try;;
25106 esac
25107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25108   (eval "$ac_try") 2>&5
25109   ac_status=$?
25110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25111   (exit $ac_status); }; }; then
25112   ac_cv_type_daddr_t=yes
25113 else
25114   echo "$as_me: failed program was:" >&5
25115 sed 's/^/| /' conftest.$ac_ext >&5
25116
25117         ac_cv_type_daddr_t=no
25118 fi
25119
25120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25121 fi
25122 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
25123 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
25124 if test $ac_cv_type_daddr_t = yes; then
25125   :
25126 else
25127
25128 cat >>confdefs.h <<_ACEOF
25129 #define daddr_t long
25130 _ACEOF
25131
25132 fi
25133
25134 { echo "$as_me:$LINENO: checking for major_t" >&5
25135 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
25136 if test "${ac_cv_type_major_t+set}" = set; then
25137   echo $ECHO_N "(cached) $ECHO_C" >&6
25138 else
25139   cat >conftest.$ac_ext <<_ACEOF
25140 /* confdefs.h.  */
25141 _ACEOF
25142 cat confdefs.h >>conftest.$ac_ext
25143 cat >>conftest.$ac_ext <<_ACEOF
25144 /* end confdefs.h.  */
25145 $ac_includes_default
25146 typedef major_t ac__type_new_;
25147 int
25148 main ()
25149 {
25150 if ((ac__type_new_ *) 0)
25151   return 0;
25152 if (sizeof (ac__type_new_))
25153   return 0;
25154   ;
25155   return 0;
25156 }
25157 _ACEOF
25158 rm -f conftest.$ac_objext
25159 if { (ac_try="$ac_compile"
25160 case "(($ac_try" in
25161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25162   *) ac_try_echo=$ac_try;;
25163 esac
25164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25165   (eval "$ac_compile") 2>conftest.er1
25166   ac_status=$?
25167   grep -v '^ *+' conftest.er1 >conftest.err
25168   rm -f conftest.er1
25169   cat conftest.err >&5
25170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171   (exit $ac_status); } &&
25172          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25173   { (case "(($ac_try" in
25174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25175   *) ac_try_echo=$ac_try;;
25176 esac
25177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25178   (eval "$ac_try") 2>&5
25179   ac_status=$?
25180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25181   (exit $ac_status); }; } &&
25182          { ac_try='test -s conftest.$ac_objext'
25183   { (case "(($ac_try" in
25184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25185   *) ac_try_echo=$ac_try;;
25186 esac
25187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25188   (eval "$ac_try") 2>&5
25189   ac_status=$?
25190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191   (exit $ac_status); }; }; then
25192   ac_cv_type_major_t=yes
25193 else
25194   echo "$as_me: failed program was:" >&5
25195 sed 's/^/| /' conftest.$ac_ext >&5
25196
25197         ac_cv_type_major_t=no
25198 fi
25199
25200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25201 fi
25202 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
25203 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
25204 if test $ac_cv_type_major_t = yes; then
25205   :
25206 else
25207
25208 cat >>confdefs.h <<_ACEOF
25209 #define major_t int
25210 _ACEOF
25211
25212 fi
25213
25214 { echo "$as_me:$LINENO: checking for minor_t" >&5
25215 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
25216 if test "${ac_cv_type_minor_t+set}" = set; then
25217   echo $ECHO_N "(cached) $ECHO_C" >&6
25218 else
25219   cat >conftest.$ac_ext <<_ACEOF
25220 /* confdefs.h.  */
25221 _ACEOF
25222 cat confdefs.h >>conftest.$ac_ext
25223 cat >>conftest.$ac_ext <<_ACEOF
25224 /* end confdefs.h.  */
25225 $ac_includes_default
25226 typedef minor_t ac__type_new_;
25227 int
25228 main ()
25229 {
25230 if ((ac__type_new_ *) 0)
25231   return 0;
25232 if (sizeof (ac__type_new_))
25233   return 0;
25234   ;
25235   return 0;
25236 }
25237 _ACEOF
25238 rm -f conftest.$ac_objext
25239 if { (ac_try="$ac_compile"
25240 case "(($ac_try" in
25241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25242   *) ac_try_echo=$ac_try;;
25243 esac
25244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25245   (eval "$ac_compile") 2>conftest.er1
25246   ac_status=$?
25247   grep -v '^ *+' conftest.er1 >conftest.err
25248   rm -f conftest.er1
25249   cat conftest.err >&5
25250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251   (exit $ac_status); } &&
25252          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25253   { (case "(($ac_try" in
25254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25255   *) ac_try_echo=$ac_try;;
25256 esac
25257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25258   (eval "$ac_try") 2>&5
25259   ac_status=$?
25260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261   (exit $ac_status); }; } &&
25262          { ac_try='test -s conftest.$ac_objext'
25263   { (case "(($ac_try" in
25264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25265   *) ac_try_echo=$ac_try;;
25266 esac
25267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25268   (eval "$ac_try") 2>&5
25269   ac_status=$?
25270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25271   (exit $ac_status); }; }; then
25272   ac_cv_type_minor_t=yes
25273 else
25274   echo "$as_me: failed program was:" >&5
25275 sed 's/^/| /' conftest.$ac_ext >&5
25276
25277         ac_cv_type_minor_t=no
25278 fi
25279
25280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25281 fi
25282 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
25283 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
25284 if test $ac_cv_type_minor_t = yes; then
25285   :
25286 else
25287
25288 cat >>confdefs.h <<_ACEOF
25289 #define minor_t int
25290 _ACEOF
25291
25292 fi
25293
25294 { echo "$as_me:$LINENO: checking for ssize_t" >&5
25295 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
25296 if test "${ac_cv_type_ssize_t+set}" = set; then
25297   echo $ECHO_N "(cached) $ECHO_C" >&6
25298 else
25299   cat >conftest.$ac_ext <<_ACEOF
25300 /* confdefs.h.  */
25301 _ACEOF
25302 cat confdefs.h >>conftest.$ac_ext
25303 cat >>conftest.$ac_ext <<_ACEOF
25304 /* end confdefs.h.  */
25305 $ac_includes_default
25306 typedef ssize_t ac__type_new_;
25307 int
25308 main ()
25309 {
25310 if ((ac__type_new_ *) 0)
25311   return 0;
25312 if (sizeof (ac__type_new_))
25313   return 0;
25314   ;
25315   return 0;
25316 }
25317 _ACEOF
25318 rm -f conftest.$ac_objext
25319 if { (ac_try="$ac_compile"
25320 case "(($ac_try" in
25321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25322   *) ac_try_echo=$ac_try;;
25323 esac
25324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25325   (eval "$ac_compile") 2>conftest.er1
25326   ac_status=$?
25327   grep -v '^ *+' conftest.er1 >conftest.err
25328   rm -f conftest.er1
25329   cat conftest.err >&5
25330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25331   (exit $ac_status); } &&
25332          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25333   { (case "(($ac_try" in
25334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25335   *) ac_try_echo=$ac_try;;
25336 esac
25337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25338   (eval "$ac_try") 2>&5
25339   ac_status=$?
25340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341   (exit $ac_status); }; } &&
25342          { ac_try='test -s conftest.$ac_objext'
25343   { (case "(($ac_try" in
25344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25345   *) ac_try_echo=$ac_try;;
25346 esac
25347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25348   (eval "$ac_try") 2>&5
25349   ac_status=$?
25350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25351   (exit $ac_status); }; }; then
25352   ac_cv_type_ssize_t=yes
25353 else
25354   echo "$as_me: failed program was:" >&5
25355 sed 's/^/| /' conftest.$ac_ext >&5
25356
25357         ac_cv_type_ssize_t=no
25358 fi
25359
25360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25361 fi
25362 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
25363 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
25364 if test $ac_cv_type_ssize_t = yes; then
25365   :
25366 else
25367
25368 cat >>confdefs.h <<_ACEOF
25369 #define ssize_t int
25370 _ACEOF
25371
25372 fi
25373
25374 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
25375 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
25376 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
25377   echo $ECHO_N "(cached) $ECHO_C" >&6
25378 else
25379   cat >conftest.$ac_ext <<_ACEOF
25380 /* confdefs.h.  */
25381 _ACEOF
25382 cat confdefs.h >>conftest.$ac_ext
25383 cat >>conftest.$ac_ext <<_ACEOF
25384 /* end confdefs.h.  */
25385 $ac_includes_default
25386 int
25387 main ()
25388 {
25389 static struct stat ac_aggr;
25390 if (ac_aggr.st_blocks)
25391 return 0;
25392   ;
25393   return 0;
25394 }
25395 _ACEOF
25396 rm -f conftest.$ac_objext
25397 if { (ac_try="$ac_compile"
25398 case "(($ac_try" in
25399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25400   *) ac_try_echo=$ac_try;;
25401 esac
25402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25403   (eval "$ac_compile") 2>conftest.er1
25404   ac_status=$?
25405   grep -v '^ *+' conftest.er1 >conftest.err
25406   rm -f conftest.er1
25407   cat conftest.err >&5
25408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409   (exit $ac_status); } &&
25410          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25411   { (case "(($ac_try" in
25412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25413   *) ac_try_echo=$ac_try;;
25414 esac
25415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25416   (eval "$ac_try") 2>&5
25417   ac_status=$?
25418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419   (exit $ac_status); }; } &&
25420          { ac_try='test -s conftest.$ac_objext'
25421   { (case "(($ac_try" in
25422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25423   *) ac_try_echo=$ac_try;;
25424 esac
25425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25426   (eval "$ac_try") 2>&5
25427   ac_status=$?
25428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25429   (exit $ac_status); }; }; then
25430   ac_cv_member_struct_stat_st_blocks=yes
25431 else
25432   echo "$as_me: failed program was:" >&5
25433 sed 's/^/| /' conftest.$ac_ext >&5
25434
25435         cat >conftest.$ac_ext <<_ACEOF
25436 /* confdefs.h.  */
25437 _ACEOF
25438 cat confdefs.h >>conftest.$ac_ext
25439 cat >>conftest.$ac_ext <<_ACEOF
25440 /* end confdefs.h.  */
25441 $ac_includes_default
25442 int
25443 main ()
25444 {
25445 static struct stat ac_aggr;
25446 if (sizeof ac_aggr.st_blocks)
25447 return 0;
25448   ;
25449   return 0;
25450 }
25451 _ACEOF
25452 rm -f conftest.$ac_objext
25453 if { (ac_try="$ac_compile"
25454 case "(($ac_try" in
25455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25456   *) ac_try_echo=$ac_try;;
25457 esac
25458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25459   (eval "$ac_compile") 2>conftest.er1
25460   ac_status=$?
25461   grep -v '^ *+' conftest.er1 >conftest.err
25462   rm -f conftest.er1
25463   cat conftest.err >&5
25464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25465   (exit $ac_status); } &&
25466          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25467   { (case "(($ac_try" in
25468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25469   *) ac_try_echo=$ac_try;;
25470 esac
25471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25472   (eval "$ac_try") 2>&5
25473   ac_status=$?
25474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25475   (exit $ac_status); }; } &&
25476          { ac_try='test -s conftest.$ac_objext'
25477   { (case "(($ac_try" in
25478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25479   *) ac_try_echo=$ac_try;;
25480 esac
25481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25482   (eval "$ac_try") 2>&5
25483   ac_status=$?
25484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25485   (exit $ac_status); }; }; then
25486   ac_cv_member_struct_stat_st_blocks=yes
25487 else
25488   echo "$as_me: failed program was:" >&5
25489 sed 's/^/| /' conftest.$ac_ext >&5
25490
25491         ac_cv_member_struct_stat_st_blocks=no
25492 fi
25493
25494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25495 fi
25496
25497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25498 fi
25499 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
25500 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
25501 if test $ac_cv_member_struct_stat_st_blocks = yes; then
25502
25503 cat >>confdefs.h <<_ACEOF
25504 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25505 _ACEOF
25506
25507
25508 cat >>confdefs.h <<\_ACEOF
25509 #define HAVE_ST_BLOCKS 1
25510 _ACEOF
25511
25512 else
25513   case " $LIBOBJS " in
25514   *" fileblocks.$ac_objext "* ) ;;
25515   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25516  ;;
25517 esac
25518
25519 fi
25520
25521
25522 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
25523 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
25524 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
25525   echo $ECHO_N "(cached) $ECHO_C" >&6
25526 else
25527   cat >conftest.$ac_ext <<_ACEOF
25528 /* confdefs.h.  */
25529 _ACEOF
25530 cat confdefs.h >>conftest.$ac_ext
25531 cat >>conftest.$ac_ext <<_ACEOF
25532 /* end confdefs.h.  */
25533 $ac_includes_default
25534 int
25535 main ()
25536 {
25537 static struct stat ac_aggr;
25538 if (ac_aggr.st_rdev)
25539 return 0;
25540   ;
25541   return 0;
25542 }
25543 _ACEOF
25544 rm -f conftest.$ac_objext
25545 if { (ac_try="$ac_compile"
25546 case "(($ac_try" in
25547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25548   *) ac_try_echo=$ac_try;;
25549 esac
25550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25551   (eval "$ac_compile") 2>conftest.er1
25552   ac_status=$?
25553   grep -v '^ *+' conftest.er1 >conftest.err
25554   rm -f conftest.er1
25555   cat conftest.err >&5
25556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25557   (exit $ac_status); } &&
25558          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25559   { (case "(($ac_try" in
25560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25561   *) ac_try_echo=$ac_try;;
25562 esac
25563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25564   (eval "$ac_try") 2>&5
25565   ac_status=$?
25566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25567   (exit $ac_status); }; } &&
25568          { ac_try='test -s conftest.$ac_objext'
25569   { (case "(($ac_try" in
25570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25571   *) ac_try_echo=$ac_try;;
25572 esac
25573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25574   (eval "$ac_try") 2>&5
25575   ac_status=$?
25576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25577   (exit $ac_status); }; }; then
25578   ac_cv_member_struct_stat_st_rdev=yes
25579 else
25580   echo "$as_me: failed program was:" >&5
25581 sed 's/^/| /' conftest.$ac_ext >&5
25582
25583         cat >conftest.$ac_ext <<_ACEOF
25584 /* confdefs.h.  */
25585 _ACEOF
25586 cat confdefs.h >>conftest.$ac_ext
25587 cat >>conftest.$ac_ext <<_ACEOF
25588 /* end confdefs.h.  */
25589 $ac_includes_default
25590 int
25591 main ()
25592 {
25593 static struct stat ac_aggr;
25594 if (sizeof ac_aggr.st_rdev)
25595 return 0;
25596   ;
25597   return 0;
25598 }
25599 _ACEOF
25600 rm -f conftest.$ac_objext
25601 if { (ac_try="$ac_compile"
25602 case "(($ac_try" in
25603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25604   *) ac_try_echo=$ac_try;;
25605 esac
25606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25607   (eval "$ac_compile") 2>conftest.er1
25608   ac_status=$?
25609   grep -v '^ *+' conftest.er1 >conftest.err
25610   rm -f conftest.er1
25611   cat conftest.err >&5
25612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25613   (exit $ac_status); } &&
25614          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25615   { (case "(($ac_try" in
25616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25617   *) ac_try_echo=$ac_try;;
25618 esac
25619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25620   (eval "$ac_try") 2>&5
25621   ac_status=$?
25622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25623   (exit $ac_status); }; } &&
25624          { ac_try='test -s conftest.$ac_objext'
25625   { (case "(($ac_try" in
25626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25627   *) ac_try_echo=$ac_try;;
25628 esac
25629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25630   (eval "$ac_try") 2>&5
25631   ac_status=$?
25632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25633   (exit $ac_status); }; }; then
25634   ac_cv_member_struct_stat_st_rdev=yes
25635 else
25636   echo "$as_me: failed program was:" >&5
25637 sed 's/^/| /' conftest.$ac_ext >&5
25638
25639         ac_cv_member_struct_stat_st_rdev=no
25640 fi
25641
25642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25643 fi
25644
25645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25646 fi
25647 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
25648 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
25649 if test $ac_cv_member_struct_stat_st_rdev = yes; then
25650
25651 cat >>confdefs.h <<_ACEOF
25652 #define HAVE_STRUCT_STAT_ST_RDEV 1
25653 _ACEOF
25654
25655
25656 cat >>confdefs.h <<\_ACEOF
25657 #define HAVE_ST_RDEV 1
25658 _ACEOF
25659
25660 fi
25661
25662
25663 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
25664 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
25665 if test "${ac_cv_struct_tm+set}" = set; then
25666   echo $ECHO_N "(cached) $ECHO_C" >&6
25667 else
25668   cat >conftest.$ac_ext <<_ACEOF
25669 /* confdefs.h.  */
25670 _ACEOF
25671 cat confdefs.h >>conftest.$ac_ext
25672 cat >>conftest.$ac_ext <<_ACEOF
25673 /* end confdefs.h.  */
25674 #include <sys/types.h>
25675 #include <time.h>
25676
25677 int
25678 main ()
25679 {
25680 struct tm *tp; tp->tm_sec;
25681   ;
25682   return 0;
25683 }
25684 _ACEOF
25685 rm -f conftest.$ac_objext
25686 if { (ac_try="$ac_compile"
25687 case "(($ac_try" in
25688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25689   *) ac_try_echo=$ac_try;;
25690 esac
25691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25692   (eval "$ac_compile") 2>conftest.er1
25693   ac_status=$?
25694   grep -v '^ *+' conftest.er1 >conftest.err
25695   rm -f conftest.er1
25696   cat conftest.err >&5
25697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25698   (exit $ac_status); } &&
25699          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25700   { (case "(($ac_try" in
25701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25702   *) ac_try_echo=$ac_try;;
25703 esac
25704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25705   (eval "$ac_try") 2>&5
25706   ac_status=$?
25707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25708   (exit $ac_status); }; } &&
25709          { ac_try='test -s conftest.$ac_objext'
25710   { (case "(($ac_try" in
25711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25712   *) ac_try_echo=$ac_try;;
25713 esac
25714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25715   (eval "$ac_try") 2>&5
25716   ac_status=$?
25717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718   (exit $ac_status); }; }; then
25719   ac_cv_struct_tm=time.h
25720 else
25721   echo "$as_me: failed program was:" >&5
25722 sed 's/^/| /' conftest.$ac_ext >&5
25723
25724         ac_cv_struct_tm=sys/time.h
25725 fi
25726
25727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25728 fi
25729 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
25730 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
25731 if test $ac_cv_struct_tm = sys/time.h; then
25732
25733 cat >>confdefs.h <<\_ACEOF
25734 #define TM_IN_SYS_TIME 1
25735 _ACEOF
25736
25737 fi
25738
25739 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
25740 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
25741 if test "${ac_cv_c_const+set}" = set; then
25742   echo $ECHO_N "(cached) $ECHO_C" >&6
25743 else
25744   cat >conftest.$ac_ext <<_ACEOF
25745 /* confdefs.h.  */
25746 _ACEOF
25747 cat confdefs.h >>conftest.$ac_ext
25748 cat >>conftest.$ac_ext <<_ACEOF
25749 /* end confdefs.h.  */
25750
25751 int
25752 main ()
25753 {
25754 /* FIXME: Include the comments suggested by Paul. */
25755 #ifndef __cplusplus
25756   /* Ultrix mips cc rejects this.  */
25757   typedef int charset[2];
25758   const charset x;
25759   /* SunOS 4.1.1 cc rejects this.  */
25760   char const *const *ccp;
25761   char **p;
25762   /* NEC SVR4.0.2 mips cc rejects this.  */
25763   struct point {int x, y;};
25764   static struct point const zero = {0,0};
25765   /* AIX XL C 1.02.0.0 rejects this.
25766      It does not let you subtract one const X* pointer from another in
25767      an arm of an if-expression whose if-part is not a constant
25768      expression */
25769   const char *g = "string";
25770   ccp = &g + (g ? g-g : 0);
25771   /* HPUX 7.0 cc rejects these. */
25772   ++ccp;
25773   p = (char**) ccp;
25774   ccp = (char const *const *) p;
25775   { /* SCO 3.2v4 cc rejects this.  */
25776     char *t;
25777     char const *s = 0 ? (char *) 0 : (char const *) 0;
25778
25779     *t++ = 0;
25780     if (s) return 0;
25781   }
25782   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25783     int x[] = {25, 17};
25784     const int *foo = &x[0];
25785     ++foo;
25786   }
25787   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25788     typedef const int *iptr;
25789     iptr p = 0;
25790     ++p;
25791   }
25792   { /* AIX XL C 1.02.0.0 rejects this saying
25793        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25794     struct s { int j; const int *ap[3]; };
25795     struct s *b; b->j = 5;
25796   }
25797   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25798     const int foo = 10;
25799     if (!foo) return 0;
25800   }
25801   return !x[0] && !zero.x;
25802 #endif
25803
25804   ;
25805   return 0;
25806 }
25807 _ACEOF
25808 rm -f conftest.$ac_objext
25809 if { (ac_try="$ac_compile"
25810 case "(($ac_try" in
25811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25812   *) ac_try_echo=$ac_try;;
25813 esac
25814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25815   (eval "$ac_compile") 2>conftest.er1
25816   ac_status=$?
25817   grep -v '^ *+' conftest.er1 >conftest.err
25818   rm -f conftest.er1
25819   cat conftest.err >&5
25820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25821   (exit $ac_status); } &&
25822          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25823   { (case "(($ac_try" in
25824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25825   *) ac_try_echo=$ac_try;;
25826 esac
25827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25828   (eval "$ac_try") 2>&5
25829   ac_status=$?
25830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25831   (exit $ac_status); }; } &&
25832          { ac_try='test -s conftest.$ac_objext'
25833   { (case "(($ac_try" in
25834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25835   *) ac_try_echo=$ac_try;;
25836 esac
25837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25838   (eval "$ac_try") 2>&5
25839   ac_status=$?
25840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25841   (exit $ac_status); }; }; then
25842   ac_cv_c_const=yes
25843 else
25844   echo "$as_me: failed program was:" >&5
25845 sed 's/^/| /' conftest.$ac_ext >&5
25846
25847         ac_cv_c_const=no
25848 fi
25849
25850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25851 fi
25852 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
25853 echo "${ECHO_T}$ac_cv_c_const" >&6; }
25854 if test $ac_cv_c_const = no; then
25855
25856 cat >>confdefs.h <<\_ACEOF
25857 #define const
25858 _ACEOF
25859
25860 fi
25861
25862
25863
25864 { echo "$as_me:$LINENO: checking for char" >&5
25865 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
25866 if test "${ac_cv_type_char+set}" = set; then
25867   echo $ECHO_N "(cached) $ECHO_C" >&6
25868 else
25869   cat >conftest.$ac_ext <<_ACEOF
25870 /* confdefs.h.  */
25871 _ACEOF
25872 cat confdefs.h >>conftest.$ac_ext
25873 cat >>conftest.$ac_ext <<_ACEOF
25874 /* end confdefs.h.  */
25875 $ac_includes_default
25876 typedef char ac__type_new_;
25877 int
25878 main ()
25879 {
25880 if ((ac__type_new_ *) 0)
25881   return 0;
25882 if (sizeof (ac__type_new_))
25883   return 0;
25884   ;
25885   return 0;
25886 }
25887 _ACEOF
25888 rm -f conftest.$ac_objext
25889 if { (ac_try="$ac_compile"
25890 case "(($ac_try" in
25891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25892   *) ac_try_echo=$ac_try;;
25893 esac
25894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25895   (eval "$ac_compile") 2>conftest.er1
25896   ac_status=$?
25897   grep -v '^ *+' conftest.er1 >conftest.err
25898   rm -f conftest.er1
25899   cat conftest.err >&5
25900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901   (exit $ac_status); } &&
25902          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25903   { (case "(($ac_try" in
25904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25905   *) ac_try_echo=$ac_try;;
25906 esac
25907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25908   (eval "$ac_try") 2>&5
25909   ac_status=$?
25910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25911   (exit $ac_status); }; } &&
25912          { ac_try='test -s conftest.$ac_objext'
25913   { (case "(($ac_try" in
25914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25915   *) ac_try_echo=$ac_try;;
25916 esac
25917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25918   (eval "$ac_try") 2>&5
25919   ac_status=$?
25920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25921   (exit $ac_status); }; }; then
25922   ac_cv_type_char=yes
25923 else
25924   echo "$as_me: failed program was:" >&5
25925 sed 's/^/| /' conftest.$ac_ext >&5
25926
25927         ac_cv_type_char=no
25928 fi
25929
25930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25931 fi
25932 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
25933 echo "${ECHO_T}$ac_cv_type_char" >&6; }
25934
25935 { echo "$as_me:$LINENO: checking size of char" >&5
25936 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
25937 if test "${ac_cv_sizeof_char+set}" = set; then
25938   echo $ECHO_N "(cached) $ECHO_C" >&6
25939 else
25940   if test "$ac_cv_type_char" = yes; then
25941   # The cast to long int works around a bug in the HP C Compiler
25942   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25943   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25944   # This bug is HP SR number 8606223364.
25945   if test "$cross_compiling" = yes; then
25946   # Depending upon the size, compute the lo and hi bounds.
25947 cat >conftest.$ac_ext <<_ACEOF
25948 /* confdefs.h.  */
25949 _ACEOF
25950 cat confdefs.h >>conftest.$ac_ext
25951 cat >>conftest.$ac_ext <<_ACEOF
25952 /* end confdefs.h.  */
25953 $ac_includes_default
25954                    typedef char ac__type_sizeof_;
25955 int
25956 main ()
25957 {
25958 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25959 test_array [0] = 0
25960
25961   ;
25962   return 0;
25963 }
25964 _ACEOF
25965 rm -f conftest.$ac_objext
25966 if { (ac_try="$ac_compile"
25967 case "(($ac_try" in
25968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25969   *) ac_try_echo=$ac_try;;
25970 esac
25971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25972   (eval "$ac_compile") 2>conftest.er1
25973   ac_status=$?
25974   grep -v '^ *+' conftest.er1 >conftest.err
25975   rm -f conftest.er1
25976   cat conftest.err >&5
25977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25978   (exit $ac_status); } &&
25979          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25980   { (case "(($ac_try" in
25981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25982   *) ac_try_echo=$ac_try;;
25983 esac
25984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25985   (eval "$ac_try") 2>&5
25986   ac_status=$?
25987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25988   (exit $ac_status); }; } &&
25989          { ac_try='test -s conftest.$ac_objext'
25990   { (case "(($ac_try" in
25991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25992   *) ac_try_echo=$ac_try;;
25993 esac
25994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25995   (eval "$ac_try") 2>&5
25996   ac_status=$?
25997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25998   (exit $ac_status); }; }; then
25999   ac_lo=0 ac_mid=0
26000   while :; do
26001     cat >conftest.$ac_ext <<_ACEOF
26002 /* confdefs.h.  */
26003 _ACEOF
26004 cat confdefs.h >>conftest.$ac_ext
26005 cat >>conftest.$ac_ext <<_ACEOF
26006 /* end confdefs.h.  */
26007 $ac_includes_default
26008                    typedef char ac__type_sizeof_;
26009 int
26010 main ()
26011 {
26012 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26013 test_array [0] = 0
26014
26015   ;
26016   return 0;
26017 }
26018 _ACEOF
26019 rm -f conftest.$ac_objext
26020 if { (ac_try="$ac_compile"
26021 case "(($ac_try" in
26022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26023   *) ac_try_echo=$ac_try;;
26024 esac
26025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26026   (eval "$ac_compile") 2>conftest.er1
26027   ac_status=$?
26028   grep -v '^ *+' conftest.er1 >conftest.err
26029   rm -f conftest.er1
26030   cat conftest.err >&5
26031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032   (exit $ac_status); } &&
26033          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26034   { (case "(($ac_try" in
26035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26036   *) ac_try_echo=$ac_try;;
26037 esac
26038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26039   (eval "$ac_try") 2>&5
26040   ac_status=$?
26041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042   (exit $ac_status); }; } &&
26043          { ac_try='test -s conftest.$ac_objext'
26044   { (case "(($ac_try" in
26045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26046   *) ac_try_echo=$ac_try;;
26047 esac
26048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26049   (eval "$ac_try") 2>&5
26050   ac_status=$?
26051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26052   (exit $ac_status); }; }; then
26053   ac_hi=$ac_mid; break
26054 else
26055   echo "$as_me: failed program was:" >&5
26056 sed 's/^/| /' conftest.$ac_ext >&5
26057
26058         ac_lo=`expr $ac_mid + 1`
26059                         if test $ac_lo -le $ac_mid; then
26060                           ac_lo= ac_hi=
26061                           break
26062                         fi
26063                         ac_mid=`expr 2 '*' $ac_mid + 1`
26064 fi
26065
26066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26067   done
26068 else
26069   echo "$as_me: failed program was:" >&5
26070 sed 's/^/| /' conftest.$ac_ext >&5
26071
26072         cat >conftest.$ac_ext <<_ACEOF
26073 /* confdefs.h.  */
26074 _ACEOF
26075 cat confdefs.h >>conftest.$ac_ext
26076 cat >>conftest.$ac_ext <<_ACEOF
26077 /* end confdefs.h.  */
26078 $ac_includes_default
26079                    typedef char ac__type_sizeof_;
26080 int
26081 main ()
26082 {
26083 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26084 test_array [0] = 0
26085
26086   ;
26087   return 0;
26088 }
26089 _ACEOF
26090 rm -f conftest.$ac_objext
26091 if { (ac_try="$ac_compile"
26092 case "(($ac_try" in
26093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26094   *) ac_try_echo=$ac_try;;
26095 esac
26096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26097   (eval "$ac_compile") 2>conftest.er1
26098   ac_status=$?
26099   grep -v '^ *+' conftest.er1 >conftest.err
26100   rm -f conftest.er1
26101   cat conftest.err >&5
26102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103   (exit $ac_status); } &&
26104          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26105   { (case "(($ac_try" in
26106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26107   *) ac_try_echo=$ac_try;;
26108 esac
26109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26110   (eval "$ac_try") 2>&5
26111   ac_status=$?
26112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26113   (exit $ac_status); }; } &&
26114          { ac_try='test -s conftest.$ac_objext'
26115   { (case "(($ac_try" in
26116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26117   *) ac_try_echo=$ac_try;;
26118 esac
26119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26120   (eval "$ac_try") 2>&5
26121   ac_status=$?
26122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26123   (exit $ac_status); }; }; then
26124   ac_hi=-1 ac_mid=-1
26125   while :; do
26126     cat >conftest.$ac_ext <<_ACEOF
26127 /* confdefs.h.  */
26128 _ACEOF
26129 cat confdefs.h >>conftest.$ac_ext
26130 cat >>conftest.$ac_ext <<_ACEOF
26131 /* end confdefs.h.  */
26132 $ac_includes_default
26133                    typedef char ac__type_sizeof_;
26134 int
26135 main ()
26136 {
26137 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26138 test_array [0] = 0
26139
26140   ;
26141   return 0;
26142 }
26143 _ACEOF
26144 rm -f conftest.$ac_objext
26145 if { (ac_try="$ac_compile"
26146 case "(($ac_try" in
26147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26148   *) ac_try_echo=$ac_try;;
26149 esac
26150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26151   (eval "$ac_compile") 2>conftest.er1
26152   ac_status=$?
26153   grep -v '^ *+' conftest.er1 >conftest.err
26154   rm -f conftest.er1
26155   cat conftest.err >&5
26156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26157   (exit $ac_status); } &&
26158          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26159   { (case "(($ac_try" in
26160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26161   *) ac_try_echo=$ac_try;;
26162 esac
26163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26164   (eval "$ac_try") 2>&5
26165   ac_status=$?
26166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26167   (exit $ac_status); }; } &&
26168          { ac_try='test -s conftest.$ac_objext'
26169   { (case "(($ac_try" in
26170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26171   *) ac_try_echo=$ac_try;;
26172 esac
26173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26174   (eval "$ac_try") 2>&5
26175   ac_status=$?
26176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26177   (exit $ac_status); }; }; then
26178   ac_lo=$ac_mid; break
26179 else
26180   echo "$as_me: failed program was:" >&5
26181 sed 's/^/| /' conftest.$ac_ext >&5
26182
26183         ac_hi=`expr '(' $ac_mid ')' - 1`
26184                         if test $ac_mid -le $ac_hi; then
26185                           ac_lo= ac_hi=
26186                           break
26187                         fi
26188                         ac_mid=`expr 2 '*' $ac_mid`
26189 fi
26190
26191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26192   done
26193 else
26194   echo "$as_me: failed program was:" >&5
26195 sed 's/^/| /' conftest.$ac_ext >&5
26196
26197         ac_lo= ac_hi=
26198 fi
26199
26200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26201 fi
26202
26203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26204 # Binary search between lo and hi bounds.
26205 while test "x$ac_lo" != "x$ac_hi"; do
26206   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26207   cat >conftest.$ac_ext <<_ACEOF
26208 /* confdefs.h.  */
26209 _ACEOF
26210 cat confdefs.h >>conftest.$ac_ext
26211 cat >>conftest.$ac_ext <<_ACEOF
26212 /* end confdefs.h.  */
26213 $ac_includes_default
26214                    typedef char ac__type_sizeof_;
26215 int
26216 main ()
26217 {
26218 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26219 test_array [0] = 0
26220
26221   ;
26222   return 0;
26223 }
26224 _ACEOF
26225 rm -f conftest.$ac_objext
26226 if { (ac_try="$ac_compile"
26227 case "(($ac_try" in
26228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26229   *) ac_try_echo=$ac_try;;
26230 esac
26231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26232   (eval "$ac_compile") 2>conftest.er1
26233   ac_status=$?
26234   grep -v '^ *+' conftest.er1 >conftest.err
26235   rm -f conftest.er1
26236   cat conftest.err >&5
26237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26238   (exit $ac_status); } &&
26239          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26240   { (case "(($ac_try" in
26241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26242   *) ac_try_echo=$ac_try;;
26243 esac
26244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26245   (eval "$ac_try") 2>&5
26246   ac_status=$?
26247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26248   (exit $ac_status); }; } &&
26249          { ac_try='test -s conftest.$ac_objext'
26250   { (case "(($ac_try" in
26251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26252   *) ac_try_echo=$ac_try;;
26253 esac
26254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26255   (eval "$ac_try") 2>&5
26256   ac_status=$?
26257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26258   (exit $ac_status); }; }; then
26259   ac_hi=$ac_mid
26260 else
26261   echo "$as_me: failed program was:" >&5
26262 sed 's/^/| /' conftest.$ac_ext >&5
26263
26264         ac_lo=`expr '(' $ac_mid ')' + 1`
26265 fi
26266
26267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26268 done
26269 case $ac_lo in
26270 ?*) ac_cv_sizeof_char=$ac_lo;;
26271 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
26272 See \`config.log' for more details." >&5
26273 echo "$as_me: error: cannot compute sizeof (char)
26274 See \`config.log' for more details." >&2;}
26275    { (exit 77); exit 77; }; } ;;
26276 esac
26277 else
26278   cat >conftest.$ac_ext <<_ACEOF
26279 /* confdefs.h.  */
26280 _ACEOF
26281 cat confdefs.h >>conftest.$ac_ext
26282 cat >>conftest.$ac_ext <<_ACEOF
26283 /* end confdefs.h.  */
26284 $ac_includes_default
26285                    typedef char ac__type_sizeof_;
26286 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26287 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26288 #include <stdio.h>
26289 #include <stdlib.h>
26290 int
26291 main ()
26292 {
26293
26294   FILE *f = fopen ("conftest.val", "w");
26295   if (! f)
26296     return 1;
26297   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26298     {
26299       long int i = longval ();
26300       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26301         return 1;
26302       fprintf (f, "%ld\n", i);
26303     }
26304   else
26305     {
26306       unsigned long int i = ulongval ();
26307       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26308         return 1;
26309       fprintf (f, "%lu\n", i);
26310     }
26311   return ferror (f) || fclose (f) != 0;
26312
26313   ;
26314   return 0;
26315 }
26316 _ACEOF
26317 rm -f conftest$ac_exeext
26318 if { (ac_try="$ac_link"
26319 case "(($ac_try" in
26320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26321   *) ac_try_echo=$ac_try;;
26322 esac
26323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26324   (eval "$ac_link") 2>&5
26325   ac_status=$?
26326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26327   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26328   { (case "(($ac_try" in
26329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26330   *) ac_try_echo=$ac_try;;
26331 esac
26332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26333   (eval "$ac_try") 2>&5
26334   ac_status=$?
26335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26336   (exit $ac_status); }; }; then
26337   ac_cv_sizeof_char=`cat conftest.val`
26338 else
26339   echo "$as_me: program exited with status $ac_status" >&5
26340 echo "$as_me: failed program was:" >&5
26341 sed 's/^/| /' conftest.$ac_ext >&5
26342
26343 ( exit $ac_status )
26344 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
26345 See \`config.log' for more details." >&5
26346 echo "$as_me: error: cannot compute sizeof (char)
26347 See \`config.log' for more details." >&2;}
26348    { (exit 77); exit 77; }; }
26349 fi
26350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26351 fi
26352 rm -f conftest.val
26353 else
26354   ac_cv_sizeof_char=0
26355 fi
26356 fi
26357 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
26358 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
26359 cat >>confdefs.h <<_ACEOF
26360 #define SIZEOF_CHAR $ac_cv_sizeof_char
26361 _ACEOF
26362
26363
26364 { echo "$as_me:$LINENO: checking for short int" >&5
26365 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
26366 if test "${ac_cv_type_short_int+set}" = set; then
26367   echo $ECHO_N "(cached) $ECHO_C" >&6
26368 else
26369   cat >conftest.$ac_ext <<_ACEOF
26370 /* confdefs.h.  */
26371 _ACEOF
26372 cat confdefs.h >>conftest.$ac_ext
26373 cat >>conftest.$ac_ext <<_ACEOF
26374 /* end confdefs.h.  */
26375 $ac_includes_default
26376 typedef short int ac__type_new_;
26377 int
26378 main ()
26379 {
26380 if ((ac__type_new_ *) 0)
26381   return 0;
26382 if (sizeof (ac__type_new_))
26383   return 0;
26384   ;
26385   return 0;
26386 }
26387 _ACEOF
26388 rm -f conftest.$ac_objext
26389 if { (ac_try="$ac_compile"
26390 case "(($ac_try" in
26391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26392   *) ac_try_echo=$ac_try;;
26393 esac
26394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26395   (eval "$ac_compile") 2>conftest.er1
26396   ac_status=$?
26397   grep -v '^ *+' conftest.er1 >conftest.err
26398   rm -f conftest.er1
26399   cat conftest.err >&5
26400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26401   (exit $ac_status); } &&
26402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26403   { (case "(($ac_try" in
26404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26405   *) ac_try_echo=$ac_try;;
26406 esac
26407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26408   (eval "$ac_try") 2>&5
26409   ac_status=$?
26410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26411   (exit $ac_status); }; } &&
26412          { ac_try='test -s conftest.$ac_objext'
26413   { (case "(($ac_try" in
26414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26415   *) ac_try_echo=$ac_try;;
26416 esac
26417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26418   (eval "$ac_try") 2>&5
26419   ac_status=$?
26420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421   (exit $ac_status); }; }; then
26422   ac_cv_type_short_int=yes
26423 else
26424   echo "$as_me: failed program was:" >&5
26425 sed 's/^/| /' conftest.$ac_ext >&5
26426
26427         ac_cv_type_short_int=no
26428 fi
26429
26430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26431 fi
26432 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
26433 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
26434
26435 { echo "$as_me:$LINENO: checking size of short int" >&5
26436 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
26437 if test "${ac_cv_sizeof_short_int+set}" = set; then
26438   echo $ECHO_N "(cached) $ECHO_C" >&6
26439 else
26440   if test "$ac_cv_type_short_int" = yes; then
26441   # The cast to long int works around a bug in the HP C Compiler
26442   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26443   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26444   # This bug is HP SR number 8606223364.
26445   if test "$cross_compiling" = yes; then
26446   # Depending upon the size, compute the lo and hi bounds.
26447 cat >conftest.$ac_ext <<_ACEOF
26448 /* confdefs.h.  */
26449 _ACEOF
26450 cat confdefs.h >>conftest.$ac_ext
26451 cat >>conftest.$ac_ext <<_ACEOF
26452 /* end confdefs.h.  */
26453 $ac_includes_default
26454                    typedef short int ac__type_sizeof_;
26455 int
26456 main ()
26457 {
26458 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26459 test_array [0] = 0
26460
26461   ;
26462   return 0;
26463 }
26464 _ACEOF
26465 rm -f conftest.$ac_objext
26466 if { (ac_try="$ac_compile"
26467 case "(($ac_try" in
26468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26469   *) ac_try_echo=$ac_try;;
26470 esac
26471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26472   (eval "$ac_compile") 2>conftest.er1
26473   ac_status=$?
26474   grep -v '^ *+' conftest.er1 >conftest.err
26475   rm -f conftest.er1
26476   cat conftest.err >&5
26477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478   (exit $ac_status); } &&
26479          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26480   { (case "(($ac_try" in
26481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26482   *) ac_try_echo=$ac_try;;
26483 esac
26484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26485   (eval "$ac_try") 2>&5
26486   ac_status=$?
26487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26488   (exit $ac_status); }; } &&
26489          { ac_try='test -s conftest.$ac_objext'
26490   { (case "(($ac_try" in
26491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26492   *) ac_try_echo=$ac_try;;
26493 esac
26494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26495   (eval "$ac_try") 2>&5
26496   ac_status=$?
26497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26498   (exit $ac_status); }; }; then
26499   ac_lo=0 ac_mid=0
26500   while :; do
26501     cat >conftest.$ac_ext <<_ACEOF
26502 /* confdefs.h.  */
26503 _ACEOF
26504 cat confdefs.h >>conftest.$ac_ext
26505 cat >>conftest.$ac_ext <<_ACEOF
26506 /* end confdefs.h.  */
26507 $ac_includes_default
26508                    typedef short int ac__type_sizeof_;
26509 int
26510 main ()
26511 {
26512 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26513 test_array [0] = 0
26514
26515   ;
26516   return 0;
26517 }
26518 _ACEOF
26519 rm -f conftest.$ac_objext
26520 if { (ac_try="$ac_compile"
26521 case "(($ac_try" in
26522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26523   *) ac_try_echo=$ac_try;;
26524 esac
26525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26526   (eval "$ac_compile") 2>conftest.er1
26527   ac_status=$?
26528   grep -v '^ *+' conftest.er1 >conftest.err
26529   rm -f conftest.er1
26530   cat conftest.err >&5
26531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26532   (exit $ac_status); } &&
26533          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26534   { (case "(($ac_try" in
26535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26536   *) ac_try_echo=$ac_try;;
26537 esac
26538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26539   (eval "$ac_try") 2>&5
26540   ac_status=$?
26541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26542   (exit $ac_status); }; } &&
26543          { ac_try='test -s conftest.$ac_objext'
26544   { (case "(($ac_try" in
26545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26546   *) ac_try_echo=$ac_try;;
26547 esac
26548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26549   (eval "$ac_try") 2>&5
26550   ac_status=$?
26551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26552   (exit $ac_status); }; }; then
26553   ac_hi=$ac_mid; break
26554 else
26555   echo "$as_me: failed program was:" >&5
26556 sed 's/^/| /' conftest.$ac_ext >&5
26557
26558         ac_lo=`expr $ac_mid + 1`
26559                         if test $ac_lo -le $ac_mid; then
26560                           ac_lo= ac_hi=
26561                           break
26562                         fi
26563                         ac_mid=`expr 2 '*' $ac_mid + 1`
26564 fi
26565
26566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26567   done
26568 else
26569   echo "$as_me: failed program was:" >&5
26570 sed 's/^/| /' conftest.$ac_ext >&5
26571
26572         cat >conftest.$ac_ext <<_ACEOF
26573 /* confdefs.h.  */
26574 _ACEOF
26575 cat confdefs.h >>conftest.$ac_ext
26576 cat >>conftest.$ac_ext <<_ACEOF
26577 /* end confdefs.h.  */
26578 $ac_includes_default
26579                    typedef short int ac__type_sizeof_;
26580 int
26581 main ()
26582 {
26583 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26584 test_array [0] = 0
26585
26586   ;
26587   return 0;
26588 }
26589 _ACEOF
26590 rm -f conftest.$ac_objext
26591 if { (ac_try="$ac_compile"
26592 case "(($ac_try" in
26593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26594   *) ac_try_echo=$ac_try;;
26595 esac
26596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26597   (eval "$ac_compile") 2>conftest.er1
26598   ac_status=$?
26599   grep -v '^ *+' conftest.er1 >conftest.err
26600   rm -f conftest.er1
26601   cat conftest.err >&5
26602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26603   (exit $ac_status); } &&
26604          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26605   { (case "(($ac_try" in
26606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26607   *) ac_try_echo=$ac_try;;
26608 esac
26609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26610   (eval "$ac_try") 2>&5
26611   ac_status=$?
26612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26613   (exit $ac_status); }; } &&
26614          { ac_try='test -s conftest.$ac_objext'
26615   { (case "(($ac_try" in
26616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26617   *) ac_try_echo=$ac_try;;
26618 esac
26619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26620   (eval "$ac_try") 2>&5
26621   ac_status=$?
26622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26623   (exit $ac_status); }; }; then
26624   ac_hi=-1 ac_mid=-1
26625   while :; do
26626     cat >conftest.$ac_ext <<_ACEOF
26627 /* confdefs.h.  */
26628 _ACEOF
26629 cat confdefs.h >>conftest.$ac_ext
26630 cat >>conftest.$ac_ext <<_ACEOF
26631 /* end confdefs.h.  */
26632 $ac_includes_default
26633                    typedef short int ac__type_sizeof_;
26634 int
26635 main ()
26636 {
26637 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26638 test_array [0] = 0
26639
26640   ;
26641   return 0;
26642 }
26643 _ACEOF
26644 rm -f conftest.$ac_objext
26645 if { (ac_try="$ac_compile"
26646 case "(($ac_try" in
26647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26648   *) ac_try_echo=$ac_try;;
26649 esac
26650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26651   (eval "$ac_compile") 2>conftest.er1
26652   ac_status=$?
26653   grep -v '^ *+' conftest.er1 >conftest.err
26654   rm -f conftest.er1
26655   cat conftest.err >&5
26656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26657   (exit $ac_status); } &&
26658          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26659   { (case "(($ac_try" in
26660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26661   *) ac_try_echo=$ac_try;;
26662 esac
26663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26664   (eval "$ac_try") 2>&5
26665   ac_status=$?
26666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26667   (exit $ac_status); }; } &&
26668          { ac_try='test -s conftest.$ac_objext'
26669   { (case "(($ac_try" in
26670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26671   *) ac_try_echo=$ac_try;;
26672 esac
26673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26674   (eval "$ac_try") 2>&5
26675   ac_status=$?
26676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26677   (exit $ac_status); }; }; then
26678   ac_lo=$ac_mid; break
26679 else
26680   echo "$as_me: failed program was:" >&5
26681 sed 's/^/| /' conftest.$ac_ext >&5
26682
26683         ac_hi=`expr '(' $ac_mid ')' - 1`
26684                         if test $ac_mid -le $ac_hi; then
26685                           ac_lo= ac_hi=
26686                           break
26687                         fi
26688                         ac_mid=`expr 2 '*' $ac_mid`
26689 fi
26690
26691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26692   done
26693 else
26694   echo "$as_me: failed program was:" >&5
26695 sed 's/^/| /' conftest.$ac_ext >&5
26696
26697         ac_lo= ac_hi=
26698 fi
26699
26700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26701 fi
26702
26703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26704 # Binary search between lo and hi bounds.
26705 while test "x$ac_lo" != "x$ac_hi"; do
26706   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26707   cat >conftest.$ac_ext <<_ACEOF
26708 /* confdefs.h.  */
26709 _ACEOF
26710 cat confdefs.h >>conftest.$ac_ext
26711 cat >>conftest.$ac_ext <<_ACEOF
26712 /* end confdefs.h.  */
26713 $ac_includes_default
26714                    typedef short int ac__type_sizeof_;
26715 int
26716 main ()
26717 {
26718 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26719 test_array [0] = 0
26720
26721   ;
26722   return 0;
26723 }
26724 _ACEOF
26725 rm -f conftest.$ac_objext
26726 if { (ac_try="$ac_compile"
26727 case "(($ac_try" in
26728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26729   *) ac_try_echo=$ac_try;;
26730 esac
26731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26732   (eval "$ac_compile") 2>conftest.er1
26733   ac_status=$?
26734   grep -v '^ *+' conftest.er1 >conftest.err
26735   rm -f conftest.er1
26736   cat conftest.err >&5
26737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26738   (exit $ac_status); } &&
26739          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26740   { (case "(($ac_try" in
26741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26742   *) ac_try_echo=$ac_try;;
26743 esac
26744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26745   (eval "$ac_try") 2>&5
26746   ac_status=$?
26747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26748   (exit $ac_status); }; } &&
26749          { ac_try='test -s conftest.$ac_objext'
26750   { (case "(($ac_try" in
26751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26752   *) ac_try_echo=$ac_try;;
26753 esac
26754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26755   (eval "$ac_try") 2>&5
26756   ac_status=$?
26757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26758   (exit $ac_status); }; }; then
26759   ac_hi=$ac_mid
26760 else
26761   echo "$as_me: failed program was:" >&5
26762 sed 's/^/| /' conftest.$ac_ext >&5
26763
26764         ac_lo=`expr '(' $ac_mid ')' + 1`
26765 fi
26766
26767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26768 done
26769 case $ac_lo in
26770 ?*) ac_cv_sizeof_short_int=$ac_lo;;
26771 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
26772 See \`config.log' for more details." >&5
26773 echo "$as_me: error: cannot compute sizeof (short int)
26774 See \`config.log' for more details." >&2;}
26775    { (exit 77); exit 77; }; } ;;
26776 esac
26777 else
26778   cat >conftest.$ac_ext <<_ACEOF
26779 /* confdefs.h.  */
26780 _ACEOF
26781 cat confdefs.h >>conftest.$ac_ext
26782 cat >>conftest.$ac_ext <<_ACEOF
26783 /* end confdefs.h.  */
26784 $ac_includes_default
26785                    typedef short int ac__type_sizeof_;
26786 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26787 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26788 #include <stdio.h>
26789 #include <stdlib.h>
26790 int
26791 main ()
26792 {
26793
26794   FILE *f = fopen ("conftest.val", "w");
26795   if (! f)
26796     return 1;
26797   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26798     {
26799       long int i = longval ();
26800       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26801         return 1;
26802       fprintf (f, "%ld\n", i);
26803     }
26804   else
26805     {
26806       unsigned long int i = ulongval ();
26807       if (i != ((long int) (sizeof (ac__type_sizeof_))))
26808         return 1;
26809       fprintf (f, "%lu\n", i);
26810     }
26811   return ferror (f) || fclose (f) != 0;
26812
26813   ;
26814   return 0;
26815 }
26816 _ACEOF
26817 rm -f conftest$ac_exeext
26818 if { (ac_try="$ac_link"
26819 case "(($ac_try" in
26820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26821   *) ac_try_echo=$ac_try;;
26822 esac
26823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26824   (eval "$ac_link") 2>&5
26825   ac_status=$?
26826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26827   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26828   { (case "(($ac_try" in
26829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26830   *) ac_try_echo=$ac_try;;
26831 esac
26832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26833   (eval "$ac_try") 2>&5
26834   ac_status=$?
26835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836   (exit $ac_status); }; }; then
26837   ac_cv_sizeof_short_int=`cat conftest.val`
26838 else
26839   echo "$as_me: program exited with status $ac_status" >&5
26840 echo "$as_me: failed program was:" >&5
26841 sed 's/^/| /' conftest.$ac_ext >&5
26842
26843 ( exit $ac_status )
26844 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
26845 See \`config.log' for more details." >&5
26846 echo "$as_me: error: cannot compute sizeof (short int)
26847 See \`config.log' for more details." >&2;}
26848    { (exit 77); exit 77; }; }
26849 fi
26850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26851 fi
26852 rm -f conftest.val
26853 else
26854   ac_cv_sizeof_short_int=0
26855 fi
26856 fi
26857 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
26858 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
26859 cat >>confdefs.h <<_ACEOF
26860 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26861 _ACEOF
26862
26863
26864 { echo "$as_me:$LINENO: checking for int" >&5
26865 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
26866 if test "${ac_cv_type_int+set}" = set; then
26867   echo $ECHO_N "(cached) $ECHO_C" >&6
26868 else
26869   cat >conftest.$ac_ext <<_ACEOF
26870 /* confdefs.h.  */
26871 _ACEOF
26872 cat confdefs.h >>conftest.$ac_ext
26873 cat >>conftest.$ac_ext <<_ACEOF
26874 /* end confdefs.h.  */
26875 $ac_includes_default
26876 typedef int ac__type_new_;
26877 int
26878 main ()
26879 {
26880 if ((ac__type_new_ *) 0)
26881   return 0;
26882 if (sizeof (ac__type_new_))
26883   return 0;
26884   ;
26885   return 0;
26886 }
26887 _ACEOF
26888 rm -f conftest.$ac_objext
26889 if { (ac_try="$ac_compile"
26890 case "(($ac_try" in
26891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26892   *) ac_try_echo=$ac_try;;
26893 esac
26894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26895   (eval "$ac_compile") 2>conftest.er1
26896   ac_status=$?
26897   grep -v '^ *+' conftest.er1 >conftest.err
26898   rm -f conftest.er1
26899   cat conftest.err >&5
26900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26901   (exit $ac_status); } &&
26902          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26903   { (case "(($ac_try" in
26904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26905   *) ac_try_echo=$ac_try;;
26906 esac
26907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26908   (eval "$ac_try") 2>&5
26909   ac_status=$?
26910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911   (exit $ac_status); }; } &&
26912          { ac_try='test -s conftest.$ac_objext'
26913   { (case "(($ac_try" in
26914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26915   *) ac_try_echo=$ac_try;;
26916 esac
26917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26918   (eval "$ac_try") 2>&5
26919   ac_status=$?
26920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921   (exit $ac_status); }; }; then
26922   ac_cv_type_int=yes
26923 else
26924   echo "$as_me: failed program was:" >&5
26925 sed 's/^/| /' conftest.$ac_ext >&5
26926
26927         ac_cv_type_int=no
26928 fi
26929
26930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26931 fi
26932 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
26933 echo "${ECHO_T}$ac_cv_type_int" >&6; }
26934
26935 { echo "$as_me:$LINENO: checking size of int" >&5
26936 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
26937 if test "${ac_cv_sizeof_int+set}" = set; then
26938   echo $ECHO_N "(cached) $ECHO_C" >&6
26939 else
26940   if test "$ac_cv_type_int" = yes; then
26941   # The cast to long int works around a bug in the HP C Compiler
26942   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26943   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26944   # This bug is HP SR number 8606223364.
26945   if test "$cross_compiling" = yes; then
26946   # Depending upon the size, compute the lo and hi bounds.
26947 cat >conftest.$ac_ext <<_ACEOF
26948 /* confdefs.h.  */
26949 _ACEOF
26950 cat confdefs.h >>conftest.$ac_ext
26951 cat >>conftest.$ac_ext <<_ACEOF
26952 /* end confdefs.h.  */
26953 $ac_includes_default
26954                    typedef int ac__type_sizeof_;
26955 int
26956 main ()
26957 {
26958 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26959 test_array [0] = 0
26960
26961   ;
26962   return 0;
26963 }
26964 _ACEOF
26965 rm -f conftest.$ac_objext
26966 if { (ac_try="$ac_compile"
26967 case "(($ac_try" in
26968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26969   *) ac_try_echo=$ac_try;;
26970 esac
26971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26972   (eval "$ac_compile") 2>conftest.er1
26973   ac_status=$?
26974   grep -v '^ *+' conftest.er1 >conftest.err
26975   rm -f conftest.er1
26976   cat conftest.err >&5
26977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26978   (exit $ac_status); } &&
26979          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26980   { (case "(($ac_try" in
26981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26982   *) ac_try_echo=$ac_try;;
26983 esac
26984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26985   (eval "$ac_try") 2>&5
26986   ac_status=$?
26987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26988   (exit $ac_status); }; } &&
26989          { ac_try='test -s conftest.$ac_objext'
26990   { (case "(($ac_try" in
26991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26992   *) ac_try_echo=$ac_try;;
26993 esac
26994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26995   (eval "$ac_try") 2>&5
26996   ac_status=$?
26997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26998   (exit $ac_status); }; }; then
26999   ac_lo=0 ac_mid=0
27000   while :; do
27001     cat >conftest.$ac_ext <<_ACEOF
27002 /* confdefs.h.  */
27003 _ACEOF
27004 cat confdefs.h >>conftest.$ac_ext
27005 cat >>conftest.$ac_ext <<_ACEOF
27006 /* end confdefs.h.  */
27007 $ac_includes_default
27008                    typedef int ac__type_sizeof_;
27009 int
27010 main ()
27011 {
27012 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27013 test_array [0] = 0
27014
27015   ;
27016   return 0;
27017 }
27018 _ACEOF
27019 rm -f conftest.$ac_objext
27020 if { (ac_try="$ac_compile"
27021 case "(($ac_try" in
27022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27023   *) ac_try_echo=$ac_try;;
27024 esac
27025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27026   (eval "$ac_compile") 2>conftest.er1
27027   ac_status=$?
27028   grep -v '^ *+' conftest.er1 >conftest.err
27029   rm -f conftest.er1
27030   cat conftest.err >&5
27031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27032   (exit $ac_status); } &&
27033          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27034   { (case "(($ac_try" in
27035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27036   *) ac_try_echo=$ac_try;;
27037 esac
27038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27039   (eval "$ac_try") 2>&5
27040   ac_status=$?
27041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27042   (exit $ac_status); }; } &&
27043          { ac_try='test -s conftest.$ac_objext'
27044   { (case "(($ac_try" in
27045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27046   *) ac_try_echo=$ac_try;;
27047 esac
27048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27049   (eval "$ac_try") 2>&5
27050   ac_status=$?
27051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27052   (exit $ac_status); }; }; then
27053   ac_hi=$ac_mid; break
27054 else
27055   echo "$as_me: failed program was:" >&5
27056 sed 's/^/| /' conftest.$ac_ext >&5
27057
27058         ac_lo=`expr $ac_mid + 1`
27059                         if test $ac_lo -le $ac_mid; then
27060                           ac_lo= ac_hi=
27061                           break
27062                         fi
27063                         ac_mid=`expr 2 '*' $ac_mid + 1`
27064 fi
27065
27066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27067   done
27068 else
27069   echo "$as_me: failed program was:" >&5
27070 sed 's/^/| /' conftest.$ac_ext >&5
27071
27072         cat >conftest.$ac_ext <<_ACEOF
27073 /* confdefs.h.  */
27074 _ACEOF
27075 cat confdefs.h >>conftest.$ac_ext
27076 cat >>conftest.$ac_ext <<_ACEOF
27077 /* end confdefs.h.  */
27078 $ac_includes_default
27079                    typedef int ac__type_sizeof_;
27080 int
27081 main ()
27082 {
27083 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27084 test_array [0] = 0
27085
27086   ;
27087   return 0;
27088 }
27089 _ACEOF
27090 rm -f conftest.$ac_objext
27091 if { (ac_try="$ac_compile"
27092 case "(($ac_try" in
27093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27094   *) ac_try_echo=$ac_try;;
27095 esac
27096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27097   (eval "$ac_compile") 2>conftest.er1
27098   ac_status=$?
27099   grep -v '^ *+' conftest.er1 >conftest.err
27100   rm -f conftest.er1
27101   cat conftest.err >&5
27102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27103   (exit $ac_status); } &&
27104          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27105   { (case "(($ac_try" in
27106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27107   *) ac_try_echo=$ac_try;;
27108 esac
27109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27110   (eval "$ac_try") 2>&5
27111   ac_status=$?
27112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27113   (exit $ac_status); }; } &&
27114          { ac_try='test -s conftest.$ac_objext'
27115   { (case "(($ac_try" in
27116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27117   *) ac_try_echo=$ac_try;;
27118 esac
27119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27120   (eval "$ac_try") 2>&5
27121   ac_status=$?
27122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27123   (exit $ac_status); }; }; then
27124   ac_hi=-1 ac_mid=-1
27125   while :; do
27126     cat >conftest.$ac_ext <<_ACEOF
27127 /* confdefs.h.  */
27128 _ACEOF
27129 cat confdefs.h >>conftest.$ac_ext
27130 cat >>conftest.$ac_ext <<_ACEOF
27131 /* end confdefs.h.  */
27132 $ac_includes_default
27133                    typedef int ac__type_sizeof_;
27134 int
27135 main ()
27136 {
27137 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27138 test_array [0] = 0
27139
27140   ;
27141   return 0;
27142 }
27143 _ACEOF
27144 rm -f conftest.$ac_objext
27145 if { (ac_try="$ac_compile"
27146 case "(($ac_try" in
27147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27148   *) ac_try_echo=$ac_try;;
27149 esac
27150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27151   (eval "$ac_compile") 2>conftest.er1
27152   ac_status=$?
27153   grep -v '^ *+' conftest.er1 >conftest.err
27154   rm -f conftest.er1
27155   cat conftest.err >&5
27156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27157   (exit $ac_status); } &&
27158          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27159   { (case "(($ac_try" in
27160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27161   *) ac_try_echo=$ac_try;;
27162 esac
27163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27164   (eval "$ac_try") 2>&5
27165   ac_status=$?
27166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27167   (exit $ac_status); }; } &&
27168          { ac_try='test -s conftest.$ac_objext'
27169   { (case "(($ac_try" in
27170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27171   *) ac_try_echo=$ac_try;;
27172 esac
27173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27174   (eval "$ac_try") 2>&5
27175   ac_status=$?
27176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27177   (exit $ac_status); }; }; then
27178   ac_lo=$ac_mid; break
27179 else
27180   echo "$as_me: failed program was:" >&5
27181 sed 's/^/| /' conftest.$ac_ext >&5
27182
27183         ac_hi=`expr '(' $ac_mid ')' - 1`
27184                         if test $ac_mid -le $ac_hi; then
27185                           ac_lo= ac_hi=
27186                           break
27187                         fi
27188                         ac_mid=`expr 2 '*' $ac_mid`
27189 fi
27190
27191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27192   done
27193 else
27194   echo "$as_me: failed program was:" >&5
27195 sed 's/^/| /' conftest.$ac_ext >&5
27196
27197         ac_lo= ac_hi=
27198 fi
27199
27200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27201 fi
27202
27203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27204 # Binary search between lo and hi bounds.
27205 while test "x$ac_lo" != "x$ac_hi"; do
27206   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27207   cat >conftest.$ac_ext <<_ACEOF
27208 /* confdefs.h.  */
27209 _ACEOF
27210 cat confdefs.h >>conftest.$ac_ext
27211 cat >>conftest.$ac_ext <<_ACEOF
27212 /* end confdefs.h.  */
27213 $ac_includes_default
27214                    typedef int ac__type_sizeof_;
27215 int
27216 main ()
27217 {
27218 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27219 test_array [0] = 0
27220
27221   ;
27222   return 0;
27223 }
27224 _ACEOF
27225 rm -f conftest.$ac_objext
27226 if { (ac_try="$ac_compile"
27227 case "(($ac_try" in
27228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27229   *) ac_try_echo=$ac_try;;
27230 esac
27231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27232   (eval "$ac_compile") 2>conftest.er1
27233   ac_status=$?
27234   grep -v '^ *+' conftest.er1 >conftest.err
27235   rm -f conftest.er1
27236   cat conftest.err >&5
27237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27238   (exit $ac_status); } &&
27239          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27240   { (case "(($ac_try" in
27241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27242   *) ac_try_echo=$ac_try;;
27243 esac
27244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27245   (eval "$ac_try") 2>&5
27246   ac_status=$?
27247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248   (exit $ac_status); }; } &&
27249          { ac_try='test -s conftest.$ac_objext'
27250   { (case "(($ac_try" in
27251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27252   *) ac_try_echo=$ac_try;;
27253 esac
27254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27255   (eval "$ac_try") 2>&5
27256   ac_status=$?
27257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258   (exit $ac_status); }; }; then
27259   ac_hi=$ac_mid
27260 else
27261   echo "$as_me: failed program was:" >&5
27262 sed 's/^/| /' conftest.$ac_ext >&5
27263
27264         ac_lo=`expr '(' $ac_mid ')' + 1`
27265 fi
27266
27267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27268 done
27269 case $ac_lo in
27270 ?*) ac_cv_sizeof_int=$ac_lo;;
27271 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27272 See \`config.log' for more details." >&5
27273 echo "$as_me: error: cannot compute sizeof (int)
27274 See \`config.log' for more details." >&2;}
27275    { (exit 77); exit 77; }; } ;;
27276 esac
27277 else
27278   cat >conftest.$ac_ext <<_ACEOF
27279 /* confdefs.h.  */
27280 _ACEOF
27281 cat confdefs.h >>conftest.$ac_ext
27282 cat >>conftest.$ac_ext <<_ACEOF
27283 /* end confdefs.h.  */
27284 $ac_includes_default
27285                    typedef int ac__type_sizeof_;
27286 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27287 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27288 #include <stdio.h>
27289 #include <stdlib.h>
27290 int
27291 main ()
27292 {
27293
27294   FILE *f = fopen ("conftest.val", "w");
27295   if (! f)
27296     return 1;
27297   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27298     {
27299       long int i = longval ();
27300       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27301         return 1;
27302       fprintf (f, "%ld\n", i);
27303     }
27304   else
27305     {
27306       unsigned long int i = ulongval ();
27307       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27308         return 1;
27309       fprintf (f, "%lu\n", i);
27310     }
27311   return ferror (f) || fclose (f) != 0;
27312
27313   ;
27314   return 0;
27315 }
27316 _ACEOF
27317 rm -f conftest$ac_exeext
27318 if { (ac_try="$ac_link"
27319 case "(($ac_try" in
27320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27321   *) ac_try_echo=$ac_try;;
27322 esac
27323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27324   (eval "$ac_link") 2>&5
27325   ac_status=$?
27326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27327   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27328   { (case "(($ac_try" in
27329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27330   *) ac_try_echo=$ac_try;;
27331 esac
27332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27333   (eval "$ac_try") 2>&5
27334   ac_status=$?
27335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27336   (exit $ac_status); }; }; then
27337   ac_cv_sizeof_int=`cat conftest.val`
27338 else
27339   echo "$as_me: program exited with status $ac_status" >&5
27340 echo "$as_me: failed program was:" >&5
27341 sed 's/^/| /' conftest.$ac_ext >&5
27342
27343 ( exit $ac_status )
27344 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
27345 See \`config.log' for more details." >&5
27346 echo "$as_me: error: cannot compute sizeof (int)
27347 See \`config.log' for more details." >&2;}
27348    { (exit 77); exit 77; }; }
27349 fi
27350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27351 fi
27352 rm -f conftest.val
27353 else
27354   ac_cv_sizeof_int=0
27355 fi
27356 fi
27357 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
27358 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
27359 cat >>confdefs.h <<_ACEOF
27360 #define SIZEOF_INT $ac_cv_sizeof_int
27361 _ACEOF
27362
27363
27364 { echo "$as_me:$LINENO: checking for long int" >&5
27365 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
27366 if test "${ac_cv_type_long_int+set}" = set; then
27367   echo $ECHO_N "(cached) $ECHO_C" >&6
27368 else
27369   cat >conftest.$ac_ext <<_ACEOF
27370 /* confdefs.h.  */
27371 _ACEOF
27372 cat confdefs.h >>conftest.$ac_ext
27373 cat >>conftest.$ac_ext <<_ACEOF
27374 /* end confdefs.h.  */
27375 $ac_includes_default
27376 typedef long int ac__type_new_;
27377 int
27378 main ()
27379 {
27380 if ((ac__type_new_ *) 0)
27381   return 0;
27382 if (sizeof (ac__type_new_))
27383   return 0;
27384   ;
27385   return 0;
27386 }
27387 _ACEOF
27388 rm -f conftest.$ac_objext
27389 if { (ac_try="$ac_compile"
27390 case "(($ac_try" in
27391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27392   *) ac_try_echo=$ac_try;;
27393 esac
27394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27395   (eval "$ac_compile") 2>conftest.er1
27396   ac_status=$?
27397   grep -v '^ *+' conftest.er1 >conftest.err
27398   rm -f conftest.er1
27399   cat conftest.err >&5
27400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27401   (exit $ac_status); } &&
27402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27403   { (case "(($ac_try" in
27404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27405   *) ac_try_echo=$ac_try;;
27406 esac
27407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27408   (eval "$ac_try") 2>&5
27409   ac_status=$?
27410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27411   (exit $ac_status); }; } &&
27412          { ac_try='test -s conftest.$ac_objext'
27413   { (case "(($ac_try" in
27414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27415   *) ac_try_echo=$ac_try;;
27416 esac
27417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27418   (eval "$ac_try") 2>&5
27419   ac_status=$?
27420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27421   (exit $ac_status); }; }; then
27422   ac_cv_type_long_int=yes
27423 else
27424   echo "$as_me: failed program was:" >&5
27425 sed 's/^/| /' conftest.$ac_ext >&5
27426
27427         ac_cv_type_long_int=no
27428 fi
27429
27430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27431 fi
27432 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
27433 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
27434
27435 { echo "$as_me:$LINENO: checking size of long int" >&5
27436 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
27437 if test "${ac_cv_sizeof_long_int+set}" = set; then
27438   echo $ECHO_N "(cached) $ECHO_C" >&6
27439 else
27440   if test "$ac_cv_type_long_int" = yes; then
27441   # The cast to long int works around a bug in the HP C Compiler
27442   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27443   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27444   # This bug is HP SR number 8606223364.
27445   if test "$cross_compiling" = yes; then
27446   # Depending upon the size, compute the lo and hi bounds.
27447 cat >conftest.$ac_ext <<_ACEOF
27448 /* confdefs.h.  */
27449 _ACEOF
27450 cat confdefs.h >>conftest.$ac_ext
27451 cat >>conftest.$ac_ext <<_ACEOF
27452 /* end confdefs.h.  */
27453 $ac_includes_default
27454                    typedef long int ac__type_sizeof_;
27455 int
27456 main ()
27457 {
27458 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27459 test_array [0] = 0
27460
27461   ;
27462   return 0;
27463 }
27464 _ACEOF
27465 rm -f conftest.$ac_objext
27466 if { (ac_try="$ac_compile"
27467 case "(($ac_try" in
27468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27469   *) ac_try_echo=$ac_try;;
27470 esac
27471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27472   (eval "$ac_compile") 2>conftest.er1
27473   ac_status=$?
27474   grep -v '^ *+' conftest.er1 >conftest.err
27475   rm -f conftest.er1
27476   cat conftest.err >&5
27477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27478   (exit $ac_status); } &&
27479          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27480   { (case "(($ac_try" in
27481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27482   *) ac_try_echo=$ac_try;;
27483 esac
27484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27485   (eval "$ac_try") 2>&5
27486   ac_status=$?
27487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27488   (exit $ac_status); }; } &&
27489          { ac_try='test -s conftest.$ac_objext'
27490   { (case "(($ac_try" in
27491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27492   *) ac_try_echo=$ac_try;;
27493 esac
27494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27495   (eval "$ac_try") 2>&5
27496   ac_status=$?
27497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498   (exit $ac_status); }; }; then
27499   ac_lo=0 ac_mid=0
27500   while :; do
27501     cat >conftest.$ac_ext <<_ACEOF
27502 /* confdefs.h.  */
27503 _ACEOF
27504 cat confdefs.h >>conftest.$ac_ext
27505 cat >>conftest.$ac_ext <<_ACEOF
27506 /* end confdefs.h.  */
27507 $ac_includes_default
27508                    typedef long int ac__type_sizeof_;
27509 int
27510 main ()
27511 {
27512 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27513 test_array [0] = 0
27514
27515   ;
27516   return 0;
27517 }
27518 _ACEOF
27519 rm -f conftest.$ac_objext
27520 if { (ac_try="$ac_compile"
27521 case "(($ac_try" in
27522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27523   *) ac_try_echo=$ac_try;;
27524 esac
27525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27526   (eval "$ac_compile") 2>conftest.er1
27527   ac_status=$?
27528   grep -v '^ *+' conftest.er1 >conftest.err
27529   rm -f conftest.er1
27530   cat conftest.err >&5
27531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27532   (exit $ac_status); } &&
27533          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27534   { (case "(($ac_try" in
27535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27536   *) ac_try_echo=$ac_try;;
27537 esac
27538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27539   (eval "$ac_try") 2>&5
27540   ac_status=$?
27541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27542   (exit $ac_status); }; } &&
27543          { ac_try='test -s conftest.$ac_objext'
27544   { (case "(($ac_try" in
27545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27546   *) ac_try_echo=$ac_try;;
27547 esac
27548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27549   (eval "$ac_try") 2>&5
27550   ac_status=$?
27551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27552   (exit $ac_status); }; }; then
27553   ac_hi=$ac_mid; break
27554 else
27555   echo "$as_me: failed program was:" >&5
27556 sed 's/^/| /' conftest.$ac_ext >&5
27557
27558         ac_lo=`expr $ac_mid + 1`
27559                         if test $ac_lo -le $ac_mid; then
27560                           ac_lo= ac_hi=
27561                           break
27562                         fi
27563                         ac_mid=`expr 2 '*' $ac_mid + 1`
27564 fi
27565
27566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27567   done
27568 else
27569   echo "$as_me: failed program was:" >&5
27570 sed 's/^/| /' conftest.$ac_ext >&5
27571
27572         cat >conftest.$ac_ext <<_ACEOF
27573 /* confdefs.h.  */
27574 _ACEOF
27575 cat confdefs.h >>conftest.$ac_ext
27576 cat >>conftest.$ac_ext <<_ACEOF
27577 /* end confdefs.h.  */
27578 $ac_includes_default
27579                    typedef long int ac__type_sizeof_;
27580 int
27581 main ()
27582 {
27583 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27584 test_array [0] = 0
27585
27586   ;
27587   return 0;
27588 }
27589 _ACEOF
27590 rm -f conftest.$ac_objext
27591 if { (ac_try="$ac_compile"
27592 case "(($ac_try" in
27593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27594   *) ac_try_echo=$ac_try;;
27595 esac
27596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27597   (eval "$ac_compile") 2>conftest.er1
27598   ac_status=$?
27599   grep -v '^ *+' conftest.er1 >conftest.err
27600   rm -f conftest.er1
27601   cat conftest.err >&5
27602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27603   (exit $ac_status); } &&
27604          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27605   { (case "(($ac_try" in
27606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27607   *) ac_try_echo=$ac_try;;
27608 esac
27609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27610   (eval "$ac_try") 2>&5
27611   ac_status=$?
27612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27613   (exit $ac_status); }; } &&
27614          { ac_try='test -s conftest.$ac_objext'
27615   { (case "(($ac_try" in
27616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27617   *) ac_try_echo=$ac_try;;
27618 esac
27619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27620   (eval "$ac_try") 2>&5
27621   ac_status=$?
27622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27623   (exit $ac_status); }; }; then
27624   ac_hi=-1 ac_mid=-1
27625   while :; do
27626     cat >conftest.$ac_ext <<_ACEOF
27627 /* confdefs.h.  */
27628 _ACEOF
27629 cat confdefs.h >>conftest.$ac_ext
27630 cat >>conftest.$ac_ext <<_ACEOF
27631 /* end confdefs.h.  */
27632 $ac_includes_default
27633                    typedef long int ac__type_sizeof_;
27634 int
27635 main ()
27636 {
27637 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27638 test_array [0] = 0
27639
27640   ;
27641   return 0;
27642 }
27643 _ACEOF
27644 rm -f conftest.$ac_objext
27645 if { (ac_try="$ac_compile"
27646 case "(($ac_try" in
27647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27648   *) ac_try_echo=$ac_try;;
27649 esac
27650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27651   (eval "$ac_compile") 2>conftest.er1
27652   ac_status=$?
27653   grep -v '^ *+' conftest.er1 >conftest.err
27654   rm -f conftest.er1
27655   cat conftest.err >&5
27656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657   (exit $ac_status); } &&
27658          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27659   { (case "(($ac_try" in
27660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27661   *) ac_try_echo=$ac_try;;
27662 esac
27663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27664   (eval "$ac_try") 2>&5
27665   ac_status=$?
27666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27667   (exit $ac_status); }; } &&
27668          { ac_try='test -s conftest.$ac_objext'
27669   { (case "(($ac_try" in
27670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27671   *) ac_try_echo=$ac_try;;
27672 esac
27673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27674   (eval "$ac_try") 2>&5
27675   ac_status=$?
27676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27677   (exit $ac_status); }; }; then
27678   ac_lo=$ac_mid; break
27679 else
27680   echo "$as_me: failed program was:" >&5
27681 sed 's/^/| /' conftest.$ac_ext >&5
27682
27683         ac_hi=`expr '(' $ac_mid ')' - 1`
27684                         if test $ac_mid -le $ac_hi; then
27685                           ac_lo= ac_hi=
27686                           break
27687                         fi
27688                         ac_mid=`expr 2 '*' $ac_mid`
27689 fi
27690
27691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27692   done
27693 else
27694   echo "$as_me: failed program was:" >&5
27695 sed 's/^/| /' conftest.$ac_ext >&5
27696
27697         ac_lo= ac_hi=
27698 fi
27699
27700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27701 fi
27702
27703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27704 # Binary search between lo and hi bounds.
27705 while test "x$ac_lo" != "x$ac_hi"; do
27706   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27707   cat >conftest.$ac_ext <<_ACEOF
27708 /* confdefs.h.  */
27709 _ACEOF
27710 cat confdefs.h >>conftest.$ac_ext
27711 cat >>conftest.$ac_ext <<_ACEOF
27712 /* end confdefs.h.  */
27713 $ac_includes_default
27714                    typedef long int ac__type_sizeof_;
27715 int
27716 main ()
27717 {
27718 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27719 test_array [0] = 0
27720
27721   ;
27722   return 0;
27723 }
27724 _ACEOF
27725 rm -f conftest.$ac_objext
27726 if { (ac_try="$ac_compile"
27727 case "(($ac_try" in
27728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27729   *) ac_try_echo=$ac_try;;
27730 esac
27731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27732   (eval "$ac_compile") 2>conftest.er1
27733   ac_status=$?
27734   grep -v '^ *+' conftest.er1 >conftest.err
27735   rm -f conftest.er1
27736   cat conftest.err >&5
27737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27738   (exit $ac_status); } &&
27739          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27740   { (case "(($ac_try" in
27741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27742   *) ac_try_echo=$ac_try;;
27743 esac
27744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27745   (eval "$ac_try") 2>&5
27746   ac_status=$?
27747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27748   (exit $ac_status); }; } &&
27749          { ac_try='test -s conftest.$ac_objext'
27750   { (case "(($ac_try" in
27751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27752   *) ac_try_echo=$ac_try;;
27753 esac
27754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27755   (eval "$ac_try") 2>&5
27756   ac_status=$?
27757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27758   (exit $ac_status); }; }; then
27759   ac_hi=$ac_mid
27760 else
27761   echo "$as_me: failed program was:" >&5
27762 sed 's/^/| /' conftest.$ac_ext >&5
27763
27764         ac_lo=`expr '(' $ac_mid ')' + 1`
27765 fi
27766
27767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27768 done
27769 case $ac_lo in
27770 ?*) ac_cv_sizeof_long_int=$ac_lo;;
27771 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
27772 See \`config.log' for more details." >&5
27773 echo "$as_me: error: cannot compute sizeof (long int)
27774 See \`config.log' for more details." >&2;}
27775    { (exit 77); exit 77; }; } ;;
27776 esac
27777 else
27778   cat >conftest.$ac_ext <<_ACEOF
27779 /* confdefs.h.  */
27780 _ACEOF
27781 cat confdefs.h >>conftest.$ac_ext
27782 cat >>conftest.$ac_ext <<_ACEOF
27783 /* end confdefs.h.  */
27784 $ac_includes_default
27785                    typedef long int ac__type_sizeof_;
27786 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27787 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27788 #include <stdio.h>
27789 #include <stdlib.h>
27790 int
27791 main ()
27792 {
27793
27794   FILE *f = fopen ("conftest.val", "w");
27795   if (! f)
27796     return 1;
27797   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27798     {
27799       long int i = longval ();
27800       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27801         return 1;
27802       fprintf (f, "%ld\n", i);
27803     }
27804   else
27805     {
27806       unsigned long int i = ulongval ();
27807       if (i != ((long int) (sizeof (ac__type_sizeof_))))
27808         return 1;
27809       fprintf (f, "%lu\n", i);
27810     }
27811   return ferror (f) || fclose (f) != 0;
27812
27813   ;
27814   return 0;
27815 }
27816 _ACEOF
27817 rm -f conftest$ac_exeext
27818 if { (ac_try="$ac_link"
27819 case "(($ac_try" in
27820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27821   *) ac_try_echo=$ac_try;;
27822 esac
27823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27824   (eval "$ac_link") 2>&5
27825   ac_status=$?
27826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27827   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27828   { (case "(($ac_try" in
27829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27830   *) ac_try_echo=$ac_try;;
27831 esac
27832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27833   (eval "$ac_try") 2>&5
27834   ac_status=$?
27835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27836   (exit $ac_status); }; }; then
27837   ac_cv_sizeof_long_int=`cat conftest.val`
27838 else
27839   echo "$as_me: program exited with status $ac_status" >&5
27840 echo "$as_me: failed program was:" >&5
27841 sed 's/^/| /' conftest.$ac_ext >&5
27842
27843 ( exit $ac_status )
27844 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
27845 See \`config.log' for more details." >&5
27846 echo "$as_me: error: cannot compute sizeof (long int)
27847 See \`config.log' for more details." >&2;}
27848    { (exit 77); exit 77; }; }
27849 fi
27850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27851 fi
27852 rm -f conftest.val
27853 else
27854   ac_cv_sizeof_long_int=0
27855 fi
27856 fi
27857 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
27858 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
27859 cat >>confdefs.h <<_ACEOF
27860 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27861 _ACEOF
27862
27863
27864 { echo "$as_me:$LINENO: checking for long long int" >&5
27865 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
27866 if test "${ac_cv_type_long_long_int+set}" = set; then
27867   echo $ECHO_N "(cached) $ECHO_C" >&6
27868 else
27869   cat >conftest.$ac_ext <<_ACEOF
27870 /* confdefs.h.  */
27871 _ACEOF
27872 cat confdefs.h >>conftest.$ac_ext
27873 cat >>conftest.$ac_ext <<_ACEOF
27874 /* end confdefs.h.  */
27875 $ac_includes_default
27876 typedef long long int ac__type_new_;
27877 int
27878 main ()
27879 {
27880 if ((ac__type_new_ *) 0)
27881   return 0;
27882 if (sizeof (ac__type_new_))
27883   return 0;
27884   ;
27885   return 0;
27886 }
27887 _ACEOF
27888 rm -f conftest.$ac_objext
27889 if { (ac_try="$ac_compile"
27890 case "(($ac_try" in
27891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27892   *) ac_try_echo=$ac_try;;
27893 esac
27894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27895   (eval "$ac_compile") 2>conftest.er1
27896   ac_status=$?
27897   grep -v '^ *+' conftest.er1 >conftest.err
27898   rm -f conftest.er1
27899   cat conftest.err >&5
27900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27901   (exit $ac_status); } &&
27902          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27903   { (case "(($ac_try" in
27904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27905   *) ac_try_echo=$ac_try;;
27906 esac
27907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27908   (eval "$ac_try") 2>&5
27909   ac_status=$?
27910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911   (exit $ac_status); }; } &&
27912          { ac_try='test -s conftest.$ac_objext'
27913   { (case "(($ac_try" in
27914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27915   *) ac_try_echo=$ac_try;;
27916 esac
27917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27918   (eval "$ac_try") 2>&5
27919   ac_status=$?
27920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27921   (exit $ac_status); }; }; then
27922   ac_cv_type_long_long_int=yes
27923 else
27924   echo "$as_me: failed program was:" >&5
27925 sed 's/^/| /' conftest.$ac_ext >&5
27926
27927         ac_cv_type_long_long_int=no
27928 fi
27929
27930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27931 fi
27932 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
27933 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
27934
27935 { echo "$as_me:$LINENO: checking size of long long int" >&5
27936 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
27937 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
27938   echo $ECHO_N "(cached) $ECHO_C" >&6
27939 else
27940   if test "$ac_cv_type_long_long_int" = yes; then
27941   # The cast to long int works around a bug in the HP C Compiler
27942   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27943   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27944   # This bug is HP SR number 8606223364.
27945   if test "$cross_compiling" = yes; then
27946   # Depending upon the size, compute the lo and hi bounds.
27947 cat >conftest.$ac_ext <<_ACEOF
27948 /* confdefs.h.  */
27949 _ACEOF
27950 cat confdefs.h >>conftest.$ac_ext
27951 cat >>conftest.$ac_ext <<_ACEOF
27952 /* end confdefs.h.  */
27953 $ac_includes_default
27954                    typedef long long int ac__type_sizeof_;
27955 int
27956 main ()
27957 {
27958 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27959 test_array [0] = 0
27960
27961   ;
27962   return 0;
27963 }
27964 _ACEOF
27965 rm -f conftest.$ac_objext
27966 if { (ac_try="$ac_compile"
27967 case "(($ac_try" in
27968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27969   *) ac_try_echo=$ac_try;;
27970 esac
27971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27972   (eval "$ac_compile") 2>conftest.er1
27973   ac_status=$?
27974   grep -v '^ *+' conftest.er1 >conftest.err
27975   rm -f conftest.er1
27976   cat conftest.err >&5
27977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27978   (exit $ac_status); } &&
27979          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27980   { (case "(($ac_try" in
27981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27982   *) ac_try_echo=$ac_try;;
27983 esac
27984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27985   (eval "$ac_try") 2>&5
27986   ac_status=$?
27987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27988   (exit $ac_status); }; } &&
27989          { ac_try='test -s conftest.$ac_objext'
27990   { (case "(($ac_try" in
27991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27992   *) ac_try_echo=$ac_try;;
27993 esac
27994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27995   (eval "$ac_try") 2>&5
27996   ac_status=$?
27997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27998   (exit $ac_status); }; }; then
27999   ac_lo=0 ac_mid=0
28000   while :; do
28001     cat >conftest.$ac_ext <<_ACEOF
28002 /* confdefs.h.  */
28003 _ACEOF
28004 cat confdefs.h >>conftest.$ac_ext
28005 cat >>conftest.$ac_ext <<_ACEOF
28006 /* end confdefs.h.  */
28007 $ac_includes_default
28008                    typedef long long int ac__type_sizeof_;
28009 int
28010 main ()
28011 {
28012 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28013 test_array [0] = 0
28014
28015   ;
28016   return 0;
28017 }
28018 _ACEOF
28019 rm -f conftest.$ac_objext
28020 if { (ac_try="$ac_compile"
28021 case "(($ac_try" in
28022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28023   *) ac_try_echo=$ac_try;;
28024 esac
28025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28026   (eval "$ac_compile") 2>conftest.er1
28027   ac_status=$?
28028   grep -v '^ *+' conftest.er1 >conftest.err
28029   rm -f conftest.er1
28030   cat conftest.err >&5
28031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28032   (exit $ac_status); } &&
28033          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28034   { (case "(($ac_try" in
28035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28036   *) ac_try_echo=$ac_try;;
28037 esac
28038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28039   (eval "$ac_try") 2>&5
28040   ac_status=$?
28041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042   (exit $ac_status); }; } &&
28043          { ac_try='test -s conftest.$ac_objext'
28044   { (case "(($ac_try" in
28045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28046   *) ac_try_echo=$ac_try;;
28047 esac
28048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28049   (eval "$ac_try") 2>&5
28050   ac_status=$?
28051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28052   (exit $ac_status); }; }; then
28053   ac_hi=$ac_mid; break
28054 else
28055   echo "$as_me: failed program was:" >&5
28056 sed 's/^/| /' conftest.$ac_ext >&5
28057
28058         ac_lo=`expr $ac_mid + 1`
28059                         if test $ac_lo -le $ac_mid; then
28060                           ac_lo= ac_hi=
28061                           break
28062                         fi
28063                         ac_mid=`expr 2 '*' $ac_mid + 1`
28064 fi
28065
28066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28067   done
28068 else
28069   echo "$as_me: failed program was:" >&5
28070 sed 's/^/| /' conftest.$ac_ext >&5
28071
28072         cat >conftest.$ac_ext <<_ACEOF
28073 /* confdefs.h.  */
28074 _ACEOF
28075 cat confdefs.h >>conftest.$ac_ext
28076 cat >>conftest.$ac_ext <<_ACEOF
28077 /* end confdefs.h.  */
28078 $ac_includes_default
28079                    typedef long long int ac__type_sizeof_;
28080 int
28081 main ()
28082 {
28083 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28084 test_array [0] = 0
28085
28086   ;
28087   return 0;
28088 }
28089 _ACEOF
28090 rm -f conftest.$ac_objext
28091 if { (ac_try="$ac_compile"
28092 case "(($ac_try" in
28093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28094   *) ac_try_echo=$ac_try;;
28095 esac
28096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28097   (eval "$ac_compile") 2>conftest.er1
28098   ac_status=$?
28099   grep -v '^ *+' conftest.er1 >conftest.err
28100   rm -f conftest.er1
28101   cat conftest.err >&5
28102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28103   (exit $ac_status); } &&
28104          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28105   { (case "(($ac_try" in
28106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28107   *) ac_try_echo=$ac_try;;
28108 esac
28109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28110   (eval "$ac_try") 2>&5
28111   ac_status=$?
28112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28113   (exit $ac_status); }; } &&
28114          { ac_try='test -s conftest.$ac_objext'
28115   { (case "(($ac_try" in
28116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28117   *) ac_try_echo=$ac_try;;
28118 esac
28119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28120   (eval "$ac_try") 2>&5
28121   ac_status=$?
28122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28123   (exit $ac_status); }; }; then
28124   ac_hi=-1 ac_mid=-1
28125   while :; do
28126     cat >conftest.$ac_ext <<_ACEOF
28127 /* confdefs.h.  */
28128 _ACEOF
28129 cat confdefs.h >>conftest.$ac_ext
28130 cat >>conftest.$ac_ext <<_ACEOF
28131 /* end confdefs.h.  */
28132 $ac_includes_default
28133                    typedef long long int ac__type_sizeof_;
28134 int
28135 main ()
28136 {
28137 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28138 test_array [0] = 0
28139
28140   ;
28141   return 0;
28142 }
28143 _ACEOF
28144 rm -f conftest.$ac_objext
28145 if { (ac_try="$ac_compile"
28146 case "(($ac_try" in
28147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28148   *) ac_try_echo=$ac_try;;
28149 esac
28150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28151   (eval "$ac_compile") 2>conftest.er1
28152   ac_status=$?
28153   grep -v '^ *+' conftest.er1 >conftest.err
28154   rm -f conftest.er1
28155   cat conftest.err >&5
28156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28157   (exit $ac_status); } &&
28158          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28159   { (case "(($ac_try" in
28160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28161   *) ac_try_echo=$ac_try;;
28162 esac
28163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28164   (eval "$ac_try") 2>&5
28165   ac_status=$?
28166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167   (exit $ac_status); }; } &&
28168          { ac_try='test -s conftest.$ac_objext'
28169   { (case "(($ac_try" in
28170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28171   *) ac_try_echo=$ac_try;;
28172 esac
28173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28174   (eval "$ac_try") 2>&5
28175   ac_status=$?
28176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28177   (exit $ac_status); }; }; then
28178   ac_lo=$ac_mid; break
28179 else
28180   echo "$as_me: failed program was:" >&5
28181 sed 's/^/| /' conftest.$ac_ext >&5
28182
28183         ac_hi=`expr '(' $ac_mid ')' - 1`
28184                         if test $ac_mid -le $ac_hi; then
28185                           ac_lo= ac_hi=
28186                           break
28187                         fi
28188                         ac_mid=`expr 2 '*' $ac_mid`
28189 fi
28190
28191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28192   done
28193 else
28194   echo "$as_me: failed program was:" >&5
28195 sed 's/^/| /' conftest.$ac_ext >&5
28196
28197         ac_lo= ac_hi=
28198 fi
28199
28200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28201 fi
28202
28203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28204 # Binary search between lo and hi bounds.
28205 while test "x$ac_lo" != "x$ac_hi"; do
28206   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28207   cat >conftest.$ac_ext <<_ACEOF
28208 /* confdefs.h.  */
28209 _ACEOF
28210 cat confdefs.h >>conftest.$ac_ext
28211 cat >>conftest.$ac_ext <<_ACEOF
28212 /* end confdefs.h.  */
28213 $ac_includes_default
28214                    typedef long long int ac__type_sizeof_;
28215 int
28216 main ()
28217 {
28218 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28219 test_array [0] = 0
28220
28221   ;
28222   return 0;
28223 }
28224 _ACEOF
28225 rm -f conftest.$ac_objext
28226 if { (ac_try="$ac_compile"
28227 case "(($ac_try" in
28228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28229   *) ac_try_echo=$ac_try;;
28230 esac
28231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28232   (eval "$ac_compile") 2>conftest.er1
28233   ac_status=$?
28234   grep -v '^ *+' conftest.er1 >conftest.err
28235   rm -f conftest.er1
28236   cat conftest.err >&5
28237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28238   (exit $ac_status); } &&
28239          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28240   { (case "(($ac_try" in
28241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28242   *) ac_try_echo=$ac_try;;
28243 esac
28244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28245   (eval "$ac_try") 2>&5
28246   ac_status=$?
28247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28248   (exit $ac_status); }; } &&
28249          { ac_try='test -s conftest.$ac_objext'
28250   { (case "(($ac_try" in
28251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28252   *) ac_try_echo=$ac_try;;
28253 esac
28254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28255   (eval "$ac_try") 2>&5
28256   ac_status=$?
28257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258   (exit $ac_status); }; }; then
28259   ac_hi=$ac_mid
28260 else
28261   echo "$as_me: failed program was:" >&5
28262 sed 's/^/| /' conftest.$ac_ext >&5
28263
28264         ac_lo=`expr '(' $ac_mid ')' + 1`
28265 fi
28266
28267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28268 done
28269 case $ac_lo in
28270 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
28271 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
28272 See \`config.log' for more details." >&5
28273 echo "$as_me: error: cannot compute sizeof (long long int)
28274 See \`config.log' for more details." >&2;}
28275    { (exit 77); exit 77; }; } ;;
28276 esac
28277 else
28278   cat >conftest.$ac_ext <<_ACEOF
28279 /* confdefs.h.  */
28280 _ACEOF
28281 cat confdefs.h >>conftest.$ac_ext
28282 cat >>conftest.$ac_ext <<_ACEOF
28283 /* end confdefs.h.  */
28284 $ac_includes_default
28285                    typedef long long int ac__type_sizeof_;
28286 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28287 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28288 #include <stdio.h>
28289 #include <stdlib.h>
28290 int
28291 main ()
28292 {
28293
28294   FILE *f = fopen ("conftest.val", "w");
28295   if (! f)
28296     return 1;
28297   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28298     {
28299       long int i = longval ();
28300       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28301         return 1;
28302       fprintf (f, "%ld\n", i);
28303     }
28304   else
28305     {
28306       unsigned long int i = ulongval ();
28307       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28308         return 1;
28309       fprintf (f, "%lu\n", i);
28310     }
28311   return ferror (f) || fclose (f) != 0;
28312
28313   ;
28314   return 0;
28315 }
28316 _ACEOF
28317 rm -f conftest$ac_exeext
28318 if { (ac_try="$ac_link"
28319 case "(($ac_try" in
28320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28321   *) ac_try_echo=$ac_try;;
28322 esac
28323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28324   (eval "$ac_link") 2>&5
28325   ac_status=$?
28326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28327   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28328   { (case "(($ac_try" in
28329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28330   *) ac_try_echo=$ac_try;;
28331 esac
28332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28333   (eval "$ac_try") 2>&5
28334   ac_status=$?
28335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336   (exit $ac_status); }; }; then
28337   ac_cv_sizeof_long_long_int=`cat conftest.val`
28338 else
28339   echo "$as_me: program exited with status $ac_status" >&5
28340 echo "$as_me: failed program was:" >&5
28341 sed 's/^/| /' conftest.$ac_ext >&5
28342
28343 ( exit $ac_status )
28344 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
28345 See \`config.log' for more details." >&5
28346 echo "$as_me: error: cannot compute sizeof (long long int)
28347 See \`config.log' for more details." >&2;}
28348    { (exit 77); exit 77; }; }
28349 fi
28350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28351 fi
28352 rm -f conftest.val
28353 else
28354   ac_cv_sizeof_long_long_int=0
28355 fi
28356 fi
28357 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
28358 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
28359 cat >>confdefs.h <<_ACEOF
28360 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
28361 _ACEOF
28362
28363
28364 { echo "$as_me:$LINENO: checking for int *" >&5
28365 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
28366 if test "${ac_cv_type_int_p+set}" = set; then
28367   echo $ECHO_N "(cached) $ECHO_C" >&6
28368 else
28369   cat >conftest.$ac_ext <<_ACEOF
28370 /* confdefs.h.  */
28371 _ACEOF
28372 cat confdefs.h >>conftest.$ac_ext
28373 cat >>conftest.$ac_ext <<_ACEOF
28374 /* end confdefs.h.  */
28375 $ac_includes_default
28376 typedef int * ac__type_new_;
28377 int
28378 main ()
28379 {
28380 if ((ac__type_new_ *) 0)
28381   return 0;
28382 if (sizeof (ac__type_new_))
28383   return 0;
28384   ;
28385   return 0;
28386 }
28387 _ACEOF
28388 rm -f conftest.$ac_objext
28389 if { (ac_try="$ac_compile"
28390 case "(($ac_try" in
28391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28392   *) ac_try_echo=$ac_try;;
28393 esac
28394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28395   (eval "$ac_compile") 2>conftest.er1
28396   ac_status=$?
28397   grep -v '^ *+' conftest.er1 >conftest.err
28398   rm -f conftest.er1
28399   cat conftest.err >&5
28400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28401   (exit $ac_status); } &&
28402          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28403   { (case "(($ac_try" in
28404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28405   *) ac_try_echo=$ac_try;;
28406 esac
28407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28408   (eval "$ac_try") 2>&5
28409   ac_status=$?
28410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411   (exit $ac_status); }; } &&
28412          { ac_try='test -s conftest.$ac_objext'
28413   { (case "(($ac_try" in
28414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28415   *) ac_try_echo=$ac_try;;
28416 esac
28417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28418   (eval "$ac_try") 2>&5
28419   ac_status=$?
28420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28421   (exit $ac_status); }; }; then
28422   ac_cv_type_int_p=yes
28423 else
28424   echo "$as_me: failed program was:" >&5
28425 sed 's/^/| /' conftest.$ac_ext >&5
28426
28427         ac_cv_type_int_p=no
28428 fi
28429
28430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28431 fi
28432 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
28433 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
28434
28435 { echo "$as_me:$LINENO: checking size of int *" >&5
28436 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
28437 if test "${ac_cv_sizeof_int_p+set}" = set; then
28438   echo $ECHO_N "(cached) $ECHO_C" >&6
28439 else
28440   if test "$ac_cv_type_int_p" = yes; then
28441   # The cast to long int works around a bug in the HP C Compiler
28442   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28443   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28444   # This bug is HP SR number 8606223364.
28445   if test "$cross_compiling" = yes; then
28446   # Depending upon the size, compute the lo and hi bounds.
28447 cat >conftest.$ac_ext <<_ACEOF
28448 /* confdefs.h.  */
28449 _ACEOF
28450 cat confdefs.h >>conftest.$ac_ext
28451 cat >>conftest.$ac_ext <<_ACEOF
28452 /* end confdefs.h.  */
28453 $ac_includes_default
28454                    typedef int * ac__type_sizeof_;
28455 int
28456 main ()
28457 {
28458 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
28459 test_array [0] = 0
28460
28461   ;
28462   return 0;
28463 }
28464 _ACEOF
28465 rm -f conftest.$ac_objext
28466 if { (ac_try="$ac_compile"
28467 case "(($ac_try" in
28468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28469   *) ac_try_echo=$ac_try;;
28470 esac
28471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28472   (eval "$ac_compile") 2>conftest.er1
28473   ac_status=$?
28474   grep -v '^ *+' conftest.er1 >conftest.err
28475   rm -f conftest.er1
28476   cat conftest.err >&5
28477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28478   (exit $ac_status); } &&
28479          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28480   { (case "(($ac_try" in
28481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28482   *) ac_try_echo=$ac_try;;
28483 esac
28484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28485   (eval "$ac_try") 2>&5
28486   ac_status=$?
28487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28488   (exit $ac_status); }; } &&
28489          { ac_try='test -s conftest.$ac_objext'
28490   { (case "(($ac_try" in
28491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28492   *) ac_try_echo=$ac_try;;
28493 esac
28494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28495   (eval "$ac_try") 2>&5
28496   ac_status=$?
28497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28498   (exit $ac_status); }; }; then
28499   ac_lo=0 ac_mid=0
28500   while :; do
28501     cat >conftest.$ac_ext <<_ACEOF
28502 /* confdefs.h.  */
28503 _ACEOF
28504 cat confdefs.h >>conftest.$ac_ext
28505 cat >>conftest.$ac_ext <<_ACEOF
28506 /* end confdefs.h.  */
28507 $ac_includes_default
28508                    typedef int * ac__type_sizeof_;
28509 int
28510 main ()
28511 {
28512 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28513 test_array [0] = 0
28514
28515   ;
28516   return 0;
28517 }
28518 _ACEOF
28519 rm -f conftest.$ac_objext
28520 if { (ac_try="$ac_compile"
28521 case "(($ac_try" in
28522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28523   *) ac_try_echo=$ac_try;;
28524 esac
28525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28526   (eval "$ac_compile") 2>conftest.er1
28527   ac_status=$?
28528   grep -v '^ *+' conftest.er1 >conftest.err
28529   rm -f conftest.er1
28530   cat conftest.err >&5
28531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532   (exit $ac_status); } &&
28533          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28534   { (case "(($ac_try" in
28535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28536   *) ac_try_echo=$ac_try;;
28537 esac
28538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28539   (eval "$ac_try") 2>&5
28540   ac_status=$?
28541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28542   (exit $ac_status); }; } &&
28543          { ac_try='test -s conftest.$ac_objext'
28544   { (case "(($ac_try" in
28545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28546   *) ac_try_echo=$ac_try;;
28547 esac
28548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28549   (eval "$ac_try") 2>&5
28550   ac_status=$?
28551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28552   (exit $ac_status); }; }; then
28553   ac_hi=$ac_mid; break
28554 else
28555   echo "$as_me: failed program was:" >&5
28556 sed 's/^/| /' conftest.$ac_ext >&5
28557
28558         ac_lo=`expr $ac_mid + 1`
28559                         if test $ac_lo -le $ac_mid; then
28560                           ac_lo= ac_hi=
28561                           break
28562                         fi
28563                         ac_mid=`expr 2 '*' $ac_mid + 1`
28564 fi
28565
28566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28567   done
28568 else
28569   echo "$as_me: failed program was:" >&5
28570 sed 's/^/| /' conftest.$ac_ext >&5
28571
28572         cat >conftest.$ac_ext <<_ACEOF
28573 /* confdefs.h.  */
28574 _ACEOF
28575 cat confdefs.h >>conftest.$ac_ext
28576 cat >>conftest.$ac_ext <<_ACEOF
28577 /* end confdefs.h.  */
28578 $ac_includes_default
28579                    typedef int * ac__type_sizeof_;
28580 int
28581 main ()
28582 {
28583 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
28584 test_array [0] = 0
28585
28586   ;
28587   return 0;
28588 }
28589 _ACEOF
28590 rm -f conftest.$ac_objext
28591 if { (ac_try="$ac_compile"
28592 case "(($ac_try" in
28593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28594   *) ac_try_echo=$ac_try;;
28595 esac
28596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28597   (eval "$ac_compile") 2>conftest.er1
28598   ac_status=$?
28599   grep -v '^ *+' conftest.er1 >conftest.err
28600   rm -f conftest.er1
28601   cat conftest.err >&5
28602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603   (exit $ac_status); } &&
28604          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28605   { (case "(($ac_try" in
28606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28607   *) ac_try_echo=$ac_try;;
28608 esac
28609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28610   (eval "$ac_try") 2>&5
28611   ac_status=$?
28612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28613   (exit $ac_status); }; } &&
28614          { ac_try='test -s conftest.$ac_objext'
28615   { (case "(($ac_try" in
28616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28617   *) ac_try_echo=$ac_try;;
28618 esac
28619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28620   (eval "$ac_try") 2>&5
28621   ac_status=$?
28622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28623   (exit $ac_status); }; }; then
28624   ac_hi=-1 ac_mid=-1
28625   while :; do
28626     cat >conftest.$ac_ext <<_ACEOF
28627 /* confdefs.h.  */
28628 _ACEOF
28629 cat confdefs.h >>conftest.$ac_ext
28630 cat >>conftest.$ac_ext <<_ACEOF
28631 /* end confdefs.h.  */
28632 $ac_includes_default
28633                    typedef int * ac__type_sizeof_;
28634 int
28635 main ()
28636 {
28637 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
28638 test_array [0] = 0
28639
28640   ;
28641   return 0;
28642 }
28643 _ACEOF
28644 rm -f conftest.$ac_objext
28645 if { (ac_try="$ac_compile"
28646 case "(($ac_try" in
28647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28648   *) ac_try_echo=$ac_try;;
28649 esac
28650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28651   (eval "$ac_compile") 2>conftest.er1
28652   ac_status=$?
28653   grep -v '^ *+' conftest.er1 >conftest.err
28654   rm -f conftest.er1
28655   cat conftest.err >&5
28656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28657   (exit $ac_status); } &&
28658          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28659   { (case "(($ac_try" in
28660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28661   *) ac_try_echo=$ac_try;;
28662 esac
28663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28664   (eval "$ac_try") 2>&5
28665   ac_status=$?
28666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28667   (exit $ac_status); }; } &&
28668          { ac_try='test -s conftest.$ac_objext'
28669   { (case "(($ac_try" in
28670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28671   *) ac_try_echo=$ac_try;;
28672 esac
28673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28674   (eval "$ac_try") 2>&5
28675   ac_status=$?
28676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28677   (exit $ac_status); }; }; then
28678   ac_lo=$ac_mid; break
28679 else
28680   echo "$as_me: failed program was:" >&5
28681 sed 's/^/| /' conftest.$ac_ext >&5
28682
28683         ac_hi=`expr '(' $ac_mid ')' - 1`
28684                         if test $ac_mid -le $ac_hi; then
28685                           ac_lo= ac_hi=
28686                           break
28687                         fi
28688                         ac_mid=`expr 2 '*' $ac_mid`
28689 fi
28690
28691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28692   done
28693 else
28694   echo "$as_me: failed program was:" >&5
28695 sed 's/^/| /' conftest.$ac_ext >&5
28696
28697         ac_lo= ac_hi=
28698 fi
28699
28700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28701 fi
28702
28703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28704 # Binary search between lo and hi bounds.
28705 while test "x$ac_lo" != "x$ac_hi"; do
28706   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28707   cat >conftest.$ac_ext <<_ACEOF
28708 /* confdefs.h.  */
28709 _ACEOF
28710 cat confdefs.h >>conftest.$ac_ext
28711 cat >>conftest.$ac_ext <<_ACEOF
28712 /* end confdefs.h.  */
28713 $ac_includes_default
28714                    typedef int * ac__type_sizeof_;
28715 int
28716 main ()
28717 {
28718 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28719 test_array [0] = 0
28720
28721   ;
28722   return 0;
28723 }
28724 _ACEOF
28725 rm -f conftest.$ac_objext
28726 if { (ac_try="$ac_compile"
28727 case "(($ac_try" in
28728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28729   *) ac_try_echo=$ac_try;;
28730 esac
28731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28732   (eval "$ac_compile") 2>conftest.er1
28733   ac_status=$?
28734   grep -v '^ *+' conftest.er1 >conftest.err
28735   rm -f conftest.er1
28736   cat conftest.err >&5
28737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28738   (exit $ac_status); } &&
28739          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28740   { (case "(($ac_try" in
28741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28742   *) ac_try_echo=$ac_try;;
28743 esac
28744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28745   (eval "$ac_try") 2>&5
28746   ac_status=$?
28747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28748   (exit $ac_status); }; } &&
28749          { ac_try='test -s conftest.$ac_objext'
28750   { (case "(($ac_try" in
28751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28752   *) ac_try_echo=$ac_try;;
28753 esac
28754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28755   (eval "$ac_try") 2>&5
28756   ac_status=$?
28757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28758   (exit $ac_status); }; }; then
28759   ac_hi=$ac_mid
28760 else
28761   echo "$as_me: failed program was:" >&5
28762 sed 's/^/| /' conftest.$ac_ext >&5
28763
28764         ac_lo=`expr '(' $ac_mid ')' + 1`
28765 fi
28766
28767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28768 done
28769 case $ac_lo in
28770 ?*) ac_cv_sizeof_int_p=$ac_lo;;
28771 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
28772 See \`config.log' for more details." >&5
28773 echo "$as_me: error: cannot compute sizeof (int *)
28774 See \`config.log' for more details." >&2;}
28775    { (exit 77); exit 77; }; } ;;
28776 esac
28777 else
28778   cat >conftest.$ac_ext <<_ACEOF
28779 /* confdefs.h.  */
28780 _ACEOF
28781 cat confdefs.h >>conftest.$ac_ext
28782 cat >>conftest.$ac_ext <<_ACEOF
28783 /* end confdefs.h.  */
28784 $ac_includes_default
28785                    typedef int * ac__type_sizeof_;
28786 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28787 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28788 #include <stdio.h>
28789 #include <stdlib.h>
28790 int
28791 main ()
28792 {
28793
28794   FILE *f = fopen ("conftest.val", "w");
28795   if (! f)
28796     return 1;
28797   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28798     {
28799       long int i = longval ();
28800       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28801         return 1;
28802       fprintf (f, "%ld\n", i);
28803     }
28804   else
28805     {
28806       unsigned long int i = ulongval ();
28807       if (i != ((long int) (sizeof (ac__type_sizeof_))))
28808         return 1;
28809       fprintf (f, "%lu\n", i);
28810     }
28811   return ferror (f) || fclose (f) != 0;
28812
28813   ;
28814   return 0;
28815 }
28816 _ACEOF
28817 rm -f conftest$ac_exeext
28818 if { (ac_try="$ac_link"
28819 case "(($ac_try" in
28820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28821   *) ac_try_echo=$ac_try;;
28822 esac
28823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28824   (eval "$ac_link") 2>&5
28825   ac_status=$?
28826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28827   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28828   { (case "(($ac_try" in
28829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28830   *) ac_try_echo=$ac_try;;
28831 esac
28832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28833   (eval "$ac_try") 2>&5
28834   ac_status=$?
28835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28836   (exit $ac_status); }; }; then
28837   ac_cv_sizeof_int_p=`cat conftest.val`
28838 else
28839   echo "$as_me: program exited with status $ac_status" >&5
28840 echo "$as_me: failed program was:" >&5
28841 sed 's/^/| /' conftest.$ac_ext >&5
28842
28843 ( exit $ac_status )
28844 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
28845 See \`config.log' for more details." >&5
28846 echo "$as_me: error: cannot compute sizeof (int *)
28847 See \`config.log' for more details." >&2;}
28848    { (exit 77); exit 77; }; }
28849 fi
28850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28851 fi
28852 rm -f conftest.val
28853 else
28854   ac_cv_sizeof_int_p=0
28855 fi
28856 fi
28857 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
28858 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
28859 cat >>confdefs.h <<_ACEOF
28860 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
28861 _ACEOF
28862
28863
28864
28865 # Check for sys/types.h types
28866 { echo "$as_me:$LINENO: checking for u_int type" >&5
28867 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
28868 if test "${ac_cv_have_u_int+set}" = set; then
28869   echo $ECHO_N "(cached) $ECHO_C" >&6
28870 else
28871
28872     cat >conftest.$ac_ext <<_ACEOF
28873 /* confdefs.h.  */
28874 _ACEOF
28875 cat confdefs.h >>conftest.$ac_ext
28876 cat >>conftest.$ac_ext <<_ACEOF
28877 /* end confdefs.h.  */
28878  #include <sys/types.h>
28879 int
28880 main ()
28881 {
28882  u_int a; a = 1;
28883   ;
28884   return 0;
28885 }
28886 _ACEOF
28887 rm -f conftest.$ac_objext
28888 if { (ac_try="$ac_compile"
28889 case "(($ac_try" in
28890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28891   *) ac_try_echo=$ac_try;;
28892 esac
28893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28894   (eval "$ac_compile") 2>conftest.er1
28895   ac_status=$?
28896   grep -v '^ *+' conftest.er1 >conftest.err
28897   rm -f conftest.er1
28898   cat conftest.err >&5
28899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28900   (exit $ac_status); } &&
28901          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28902   { (case "(($ac_try" in
28903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28904   *) ac_try_echo=$ac_try;;
28905 esac
28906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28907   (eval "$ac_try") 2>&5
28908   ac_status=$?
28909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910   (exit $ac_status); }; } &&
28911          { ac_try='test -s conftest.$ac_objext'
28912   { (case "(($ac_try" in
28913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28914   *) ac_try_echo=$ac_try;;
28915 esac
28916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28917   (eval "$ac_try") 2>&5
28918   ac_status=$?
28919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28920   (exit $ac_status); }; }; then
28921    ac_cv_have_u_int="yes"
28922 else
28923   echo "$as_me: failed program was:" >&5
28924 sed 's/^/| /' conftest.$ac_ext >&5
28925
28926          ac_cv_have_u_int="no"
28927
28928 fi
28929
28930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28931
28932 fi
28933 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
28934 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
28935 if test "x$ac_cv_have_u_int" = "xyes" ; then
28936    cat >>confdefs.h <<\_ACEOF
28937 #define HAVE_U_INT 1
28938 _ACEOF
28939
28940    have_u_int=1
28941 fi
28942
28943 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
28944 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
28945 if test "${ac_cv_have_intmax_t+set}" = set; then
28946   echo $ECHO_N "(cached) $ECHO_C" >&6
28947 else
28948
28949    cat >conftest.$ac_ext <<_ACEOF
28950 /* confdefs.h.  */
28951 _ACEOF
28952 cat confdefs.h >>conftest.$ac_ext
28953 cat >>conftest.$ac_ext <<_ACEOF
28954 /* end confdefs.h.  */
28955  #include <sys/types.h>
28956 int
28957 main ()
28958 {
28959  intmax_t a; a = 1;
28960   ;
28961   return 0;
28962 }
28963 _ACEOF
28964 rm -f conftest.$ac_objext
28965 if { (ac_try="$ac_compile"
28966 case "(($ac_try" in
28967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28968   *) ac_try_echo=$ac_try;;
28969 esac
28970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28971   (eval "$ac_compile") 2>conftest.er1
28972   ac_status=$?
28973   grep -v '^ *+' conftest.er1 >conftest.err
28974   rm -f conftest.er1
28975   cat conftest.err >&5
28976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977   (exit $ac_status); } &&
28978          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
28979   { (case "(($ac_try" in
28980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28981   *) ac_try_echo=$ac_try;;
28982 esac
28983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28984   (eval "$ac_try") 2>&5
28985   ac_status=$?
28986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28987   (exit $ac_status); }; } &&
28988          { ac_try='test -s conftest.$ac_objext'
28989   { (case "(($ac_try" in
28990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28991   *) ac_try_echo=$ac_try;;
28992 esac
28993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28994   (eval "$ac_try") 2>&5
28995   ac_status=$?
28996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28997   (exit $ac_status); }; }; then
28998    ac_cv_have_intmax_t="yes"
28999 else
29000   echo "$as_me: failed program was:" >&5
29001 sed 's/^/| /' conftest.$ac_ext >&5
29002
29003
29004          cat >conftest.$ac_ext <<_ACEOF
29005 /* confdefs.h.  */
29006 _ACEOF
29007 cat confdefs.h >>conftest.$ac_ext
29008 cat >>conftest.$ac_ext <<_ACEOF
29009 /* end confdefs.h.  */
29010  #include <stdint.h>
29011 int
29012 main ()
29013 {
29014  intmax_t a; a = 1;
29015   ;
29016   return 0;
29017 }
29018 _ACEOF
29019 rm -f conftest.$ac_objext
29020 if { (ac_try="$ac_compile"
29021 case "(($ac_try" in
29022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29023   *) ac_try_echo=$ac_try;;
29024 esac
29025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29026   (eval "$ac_compile") 2>conftest.er1
29027   ac_status=$?
29028   grep -v '^ *+' conftest.er1 >conftest.err
29029   rm -f conftest.er1
29030   cat conftest.err >&5
29031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29032   (exit $ac_status); } &&
29033          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29034   { (case "(($ac_try" in
29035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29036   *) ac_try_echo=$ac_try;;
29037 esac
29038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29039   (eval "$ac_try") 2>&5
29040   ac_status=$?
29041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29042   (exit $ac_status); }; } &&
29043          { ac_try='test -s conftest.$ac_objext'
29044   { (case "(($ac_try" in
29045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29046   *) ac_try_echo=$ac_try;;
29047 esac
29048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29049   (eval "$ac_try") 2>&5
29050   ac_status=$?
29051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29052   (exit $ac_status); }; }; then
29053    ac_cv_have_intmax_t="yes"
29054 else
29055   echo "$as_me: failed program was:" >&5
29056 sed 's/^/| /' conftest.$ac_ext >&5
29057
29058          ac_cv_have_intmax_t="no"
29059
29060 fi
29061
29062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29063
29064
29065 fi
29066
29067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29068
29069
29070 fi
29071 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
29072 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
29073 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
29074    cat >>confdefs.h <<\_ACEOF
29075 #define HAVE_INTMAX_T 1
29076 _ACEOF
29077
29078    have_intmax_t=1
29079 fi
29080
29081
29082 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
29083 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
29084 if test "${ac_cv_have_u_intmax_t+set}" = set; then
29085   echo $ECHO_N "(cached) $ECHO_C" >&6
29086 else
29087
29088    cat >conftest.$ac_ext <<_ACEOF
29089 /* confdefs.h.  */
29090 _ACEOF
29091 cat confdefs.h >>conftest.$ac_ext
29092 cat >>conftest.$ac_ext <<_ACEOF
29093 /* end confdefs.h.  */
29094  #include <sys/types.h>
29095 int
29096 main ()
29097 {
29098  u_intmax_t a; a = 1;
29099   ;
29100   return 0;
29101 }
29102 _ACEOF
29103 rm -f conftest.$ac_objext
29104 if { (ac_try="$ac_compile"
29105 case "(($ac_try" in
29106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29107   *) ac_try_echo=$ac_try;;
29108 esac
29109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29110   (eval "$ac_compile") 2>conftest.er1
29111   ac_status=$?
29112   grep -v '^ *+' conftest.er1 >conftest.err
29113   rm -f conftest.er1
29114   cat conftest.err >&5
29115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29116   (exit $ac_status); } &&
29117          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29118   { (case "(($ac_try" in
29119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29120   *) ac_try_echo=$ac_try;;
29121 esac
29122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29123   (eval "$ac_try") 2>&5
29124   ac_status=$?
29125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29126   (exit $ac_status); }; } &&
29127          { ac_try='test -s conftest.$ac_objext'
29128   { (case "(($ac_try" in
29129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29130   *) ac_try_echo=$ac_try;;
29131 esac
29132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29133   (eval "$ac_try") 2>&5
29134   ac_status=$?
29135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136   (exit $ac_status); }; }; then
29137    ac_cv_have_u_intmax_t="yes"
29138 else
29139   echo "$as_me: failed program was:" >&5
29140 sed 's/^/| /' conftest.$ac_ext >&5
29141
29142
29143          cat >conftest.$ac_ext <<_ACEOF
29144 /* confdefs.h.  */
29145 _ACEOF
29146 cat confdefs.h >>conftest.$ac_ext
29147 cat >>conftest.$ac_ext <<_ACEOF
29148 /* end confdefs.h.  */
29149  #include <stdint.h>
29150 int
29151 main ()
29152 {
29153  u_intmax_t a; a = 1;
29154   ;
29155   return 0;
29156 }
29157 _ACEOF
29158 rm -f conftest.$ac_objext
29159 if { (ac_try="$ac_compile"
29160 case "(($ac_try" in
29161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29162   *) ac_try_echo=$ac_try;;
29163 esac
29164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29165   (eval "$ac_compile") 2>conftest.er1
29166   ac_status=$?
29167   grep -v '^ *+' conftest.er1 >conftest.err
29168   rm -f conftest.er1
29169   cat conftest.err >&5
29170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29171   (exit $ac_status); } &&
29172          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29173   { (case "(($ac_try" in
29174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29175   *) ac_try_echo=$ac_try;;
29176 esac
29177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29178   (eval "$ac_try") 2>&5
29179   ac_status=$?
29180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29181   (exit $ac_status); }; } &&
29182          { ac_try='test -s conftest.$ac_objext'
29183   { (case "(($ac_try" in
29184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29185   *) ac_try_echo=$ac_try;;
29186 esac
29187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29188   (eval "$ac_try") 2>&5
29189   ac_status=$?
29190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29191   (exit $ac_status); }; }; then
29192    ac_cv_have_u_intmax_t="yes"
29193 else
29194   echo "$as_me: failed program was:" >&5
29195 sed 's/^/| /' conftest.$ac_ext >&5
29196
29197          ac_cv_have_u_intmax_t="no"
29198
29199 fi
29200
29201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29202
29203
29204 fi
29205
29206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29207
29208 fi
29209 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
29210 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
29211 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
29212    cat >>confdefs.h <<\_ACEOF
29213 #define HAVE_U_INTMAX_T 1
29214 _ACEOF
29215
29216    have_u_intmax_t=1
29217 fi
29218
29219
29220 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
29221 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
29222 if test "${ac_cv_have_intxx_t+set}" = set; then
29223   echo $ECHO_N "(cached) $ECHO_C" >&6
29224 else
29225
29226    cat >conftest.$ac_ext <<_ACEOF
29227 /* confdefs.h.  */
29228 _ACEOF
29229 cat confdefs.h >>conftest.$ac_ext
29230 cat >>conftest.$ac_ext <<_ACEOF
29231 /* end confdefs.h.  */
29232  #include <sys/types.h>
29233 int
29234 main ()
29235 {
29236  int8_t a; int16_t b; int32_t c; a = b = c = 1;
29237   ;
29238   return 0;
29239 }
29240 _ACEOF
29241 rm -f conftest.$ac_objext
29242 if { (ac_try="$ac_compile"
29243 case "(($ac_try" in
29244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29245   *) ac_try_echo=$ac_try;;
29246 esac
29247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29248   (eval "$ac_compile") 2>conftest.er1
29249   ac_status=$?
29250   grep -v '^ *+' conftest.er1 >conftest.err
29251   rm -f conftest.er1
29252   cat conftest.err >&5
29253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29254   (exit $ac_status); } &&
29255          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29256   { (case "(($ac_try" in
29257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29258   *) ac_try_echo=$ac_try;;
29259 esac
29260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29261   (eval "$ac_try") 2>&5
29262   ac_status=$?
29263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29264   (exit $ac_status); }; } &&
29265          { ac_try='test -s conftest.$ac_objext'
29266   { (case "(($ac_try" in
29267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29268   *) ac_try_echo=$ac_try;;
29269 esac
29270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29271   (eval "$ac_try") 2>&5
29272   ac_status=$?
29273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29274   (exit $ac_status); }; }; then
29275    ac_cv_have_intxx_t="yes"
29276 else
29277   echo "$as_me: failed program was:" >&5
29278 sed 's/^/| /' conftest.$ac_ext >&5
29279
29280          ac_cv_have_intxx_t="no"
29281
29282 fi
29283
29284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29285
29286 fi
29287 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
29288 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
29289 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
29290    cat >>confdefs.h <<\_ACEOF
29291 #define HAVE_INTXX_T 1
29292 _ACEOF
29293
29294    have_intxx_t=1
29295 fi
29296
29297 { echo "$as_me:$LINENO: checking for int64_t type" >&5
29298 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
29299 if test "${ac_cv_have_int64_t+set}" = set; then
29300   echo $ECHO_N "(cached) $ECHO_C" >&6
29301 else
29302
29303    cat >conftest.$ac_ext <<_ACEOF
29304 /* confdefs.h.  */
29305 _ACEOF
29306 cat confdefs.h >>conftest.$ac_ext
29307 cat >>conftest.$ac_ext <<_ACEOF
29308 /* end confdefs.h.  */
29309  #include <sys/types.h>
29310 int
29311 main ()
29312 {
29313  int64_t a; a = 1;
29314   ;
29315   return 0;
29316 }
29317 _ACEOF
29318 rm -f conftest.$ac_objext
29319 if { (ac_try="$ac_compile"
29320 case "(($ac_try" in
29321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29322   *) ac_try_echo=$ac_try;;
29323 esac
29324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29325   (eval "$ac_compile") 2>conftest.er1
29326   ac_status=$?
29327   grep -v '^ *+' conftest.er1 >conftest.err
29328   rm -f conftest.er1
29329   cat conftest.err >&5
29330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29331   (exit $ac_status); } &&
29332          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29333   { (case "(($ac_try" in
29334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29335   *) ac_try_echo=$ac_try;;
29336 esac
29337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29338   (eval "$ac_try") 2>&5
29339   ac_status=$?
29340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341   (exit $ac_status); }; } &&
29342          { ac_try='test -s conftest.$ac_objext'
29343   { (case "(($ac_try" in
29344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29345   *) ac_try_echo=$ac_try;;
29346 esac
29347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29348   (eval "$ac_try") 2>&5
29349   ac_status=$?
29350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29351   (exit $ac_status); }; }; then
29352    ac_cv_have_int64_t="yes"
29353 else
29354   echo "$as_me: failed program was:" >&5
29355 sed 's/^/| /' conftest.$ac_ext >&5
29356
29357          ac_cv_have_int64_t="no"
29358
29359 fi
29360
29361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29362
29363 fi
29364 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
29365 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
29366 if test "x$ac_cv_have_int64_t" = "xyes" ; then
29367    cat >>confdefs.h <<\_ACEOF
29368 #define HAVE_INT64_T 1
29369 _ACEOF
29370
29371    have_int64_t=1
29372 fi
29373
29374 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
29375 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
29376 if test "${ac_cv_have_u_intxx_t+set}" = set; then
29377   echo $ECHO_N "(cached) $ECHO_C" >&6
29378 else
29379
29380    cat >conftest.$ac_ext <<_ACEOF
29381 /* confdefs.h.  */
29382 _ACEOF
29383 cat confdefs.h >>conftest.$ac_ext
29384 cat >>conftest.$ac_ext <<_ACEOF
29385 /* end confdefs.h.  */
29386  #include <sys/types.h>
29387 int
29388 main ()
29389 {
29390  u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
29391   ;
29392   return 0;
29393 }
29394 _ACEOF
29395 rm -f conftest.$ac_objext
29396 if { (ac_try="$ac_compile"
29397 case "(($ac_try" in
29398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29399   *) ac_try_echo=$ac_try;;
29400 esac
29401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29402   (eval "$ac_compile") 2>conftest.er1
29403   ac_status=$?
29404   grep -v '^ *+' conftest.er1 >conftest.err
29405   rm -f conftest.er1
29406   cat conftest.err >&5
29407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29408   (exit $ac_status); } &&
29409          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29410   { (case "(($ac_try" in
29411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29412   *) ac_try_echo=$ac_try;;
29413 esac
29414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29415   (eval "$ac_try") 2>&5
29416   ac_status=$?
29417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29418   (exit $ac_status); }; } &&
29419          { ac_try='test -s conftest.$ac_objext'
29420   { (case "(($ac_try" in
29421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29422   *) ac_try_echo=$ac_try;;
29423 esac
29424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29425   (eval "$ac_try") 2>&5
29426   ac_status=$?
29427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29428   (exit $ac_status); }; }; then
29429    ac_cv_have_u_intxx_t="yes"
29430 else
29431   echo "$as_me: failed program was:" >&5
29432 sed 's/^/| /' conftest.$ac_ext >&5
29433
29434          ac_cv_have_u_intxx_t="no"
29435
29436 fi
29437
29438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29439
29440 fi
29441 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
29442 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
29443 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
29444    cat >>confdefs.h <<\_ACEOF
29445 #define HAVE_U_INTXX_T 1
29446 _ACEOF
29447
29448    have_u_intxx_t=1
29449 fi
29450
29451 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
29452 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
29453 if test "${ac_cv_have_u_int64_t+set}" = set; then
29454   echo $ECHO_N "(cached) $ECHO_C" >&6
29455 else
29456
29457    cat >conftest.$ac_ext <<_ACEOF
29458 /* confdefs.h.  */
29459 _ACEOF
29460 cat confdefs.h >>conftest.$ac_ext
29461 cat >>conftest.$ac_ext <<_ACEOF
29462 /* end confdefs.h.  */
29463  #include <sys/types.h>
29464 int
29465 main ()
29466 {
29467  u_int64_t a; a = 1;
29468   ;
29469   return 0;
29470 }
29471 _ACEOF
29472 rm -f conftest.$ac_objext
29473 if { (ac_try="$ac_compile"
29474 case "(($ac_try" in
29475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29476   *) ac_try_echo=$ac_try;;
29477 esac
29478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29479   (eval "$ac_compile") 2>conftest.er1
29480   ac_status=$?
29481   grep -v '^ *+' conftest.er1 >conftest.err
29482   rm -f conftest.er1
29483   cat conftest.err >&5
29484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29485   (exit $ac_status); } &&
29486          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29487   { (case "(($ac_try" in
29488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29489   *) ac_try_echo=$ac_try;;
29490 esac
29491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29492   (eval "$ac_try") 2>&5
29493   ac_status=$?
29494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29495   (exit $ac_status); }; } &&
29496          { ac_try='test -s conftest.$ac_objext'
29497   { (case "(($ac_try" in
29498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29499   *) ac_try_echo=$ac_try;;
29500 esac
29501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29502   (eval "$ac_try") 2>&5
29503   ac_status=$?
29504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29505   (exit $ac_status); }; }; then
29506    ac_cv_have_u_int64_t="yes"
29507 else
29508   echo "$as_me: failed program was:" >&5
29509 sed 's/^/| /' conftest.$ac_ext >&5
29510
29511          ac_cv_have_u_int64_t="no"
29512
29513 fi
29514
29515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29516
29517 fi
29518 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
29519 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
29520 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
29521    cat >>confdefs.h <<\_ACEOF
29522 #define HAVE_U_INT64_T 1
29523 _ACEOF
29524
29525    have_u_int64_t=1
29526 fi
29527
29528 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
29529            test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29530 then
29531    { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
29532 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
29533    cat >conftest.$ac_ext <<_ACEOF
29534 /* confdefs.h.  */
29535 _ACEOF
29536 cat confdefs.h >>conftest.$ac_ext
29537 cat >>conftest.$ac_ext <<_ACEOF
29538 /* end confdefs.h.  */
29539  #include <sys/bitypes.h>
29540 int
29541 main ()
29542 {
29543  int8_t a; int16_t b; int32_t c;
29544         u_int8_t e; u_int16_t f; u_int32_t g;
29545         a = b = c = e = f = g = 1;
29546   ;
29547   return 0;
29548 }
29549 _ACEOF
29550 rm -f conftest.$ac_objext
29551 if { (ac_try="$ac_compile"
29552 case "(($ac_try" in
29553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29554   *) ac_try_echo=$ac_try;;
29555 esac
29556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29557   (eval "$ac_compile") 2>conftest.er1
29558   ac_status=$?
29559   grep -v '^ *+' conftest.er1 >conftest.err
29560   rm -f conftest.er1
29561   cat conftest.err >&5
29562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29563   (exit $ac_status); } &&
29564          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29565   { (case "(($ac_try" in
29566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29567   *) ac_try_echo=$ac_try;;
29568 esac
29569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29570   (eval "$ac_try") 2>&5
29571   ac_status=$?
29572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29573   (exit $ac_status); }; } &&
29574          { ac_try='test -s conftest.$ac_objext'
29575   { (case "(($ac_try" in
29576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29577   *) ac_try_echo=$ac_try;;
29578 esac
29579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29580   (eval "$ac_try") 2>&5
29581   ac_status=$?
29582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29583   (exit $ac_status); }; }; then
29584    cat >>confdefs.h <<\_ACEOF
29585 #define HAVE_U_INTXX_T 1
29586 _ACEOF
29587
29588         cat >>confdefs.h <<\_ACEOF
29589 #define HAVE_INTXX_T 1
29590 _ACEOF
29591
29592         cat >>confdefs.h <<\_ACEOF
29593 #define HAVE_SYS_BITYPES_H 1
29594 _ACEOF
29595
29596         { echo "$as_me:$LINENO: result: yes" >&5
29597 echo "${ECHO_T}yes" >&6; }
29598 else
29599   echo "$as_me: failed program was:" >&5
29600 sed 's/^/| /' conftest.$ac_ext >&5
29601
29602          { echo "$as_me:$LINENO: result: no" >&5
29603 echo "${ECHO_T}no" >&6; }
29604
29605 fi
29606
29607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29608 fi
29609
29610 if test -z "$have_u_intxx_t" ; then
29611    { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
29612 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
29613 if test "${ac_cv_have_uintxx_t+set}" = set; then
29614   echo $ECHO_N "(cached) $ECHO_C" >&6
29615 else
29616
29617       cat >conftest.$ac_ext <<_ACEOF
29618 /* confdefs.h.  */
29619 _ACEOF
29620 cat confdefs.h >>conftest.$ac_ext
29621 cat >>conftest.$ac_ext <<_ACEOF
29622 /* end confdefs.h.  */
29623  #include <sys/types.h>
29624 int
29625 main ()
29626 {
29627  uint8_t a; uint16_t b;
29628            uint32_t c; a = b = c = 1;
29629   ;
29630   return 0;
29631 }
29632 _ACEOF
29633 rm -f conftest.$ac_objext
29634 if { (ac_try="$ac_compile"
29635 case "(($ac_try" in
29636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29637   *) ac_try_echo=$ac_try;;
29638 esac
29639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29640   (eval "$ac_compile") 2>conftest.er1
29641   ac_status=$?
29642   grep -v '^ *+' conftest.er1 >conftest.err
29643   rm -f conftest.er1
29644   cat conftest.err >&5
29645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29646   (exit $ac_status); } &&
29647          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29648   { (case "(($ac_try" in
29649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29650   *) ac_try_echo=$ac_try;;
29651 esac
29652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29653   (eval "$ac_try") 2>&5
29654   ac_status=$?
29655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29656   (exit $ac_status); }; } &&
29657          { ac_try='test -s conftest.$ac_objext'
29658   { (case "(($ac_try" in
29659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29660   *) ac_try_echo=$ac_try;;
29661 esac
29662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29663   (eval "$ac_try") 2>&5
29664   ac_status=$?
29665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29666   (exit $ac_status); }; }; then
29667    ac_cv_have_uintxx_t="yes"
29668 else
29669   echo "$as_me: failed program was:" >&5
29670 sed 's/^/| /' conftest.$ac_ext >&5
29671
29672          ac_cv_have_uintxx_t="no"
29673
29674 fi
29675
29676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29677
29678 fi
29679 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
29680 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
29681    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
29682       cat >>confdefs.h <<\_ACEOF
29683 #define HAVE_UINTXX_T 1
29684 _ACEOF
29685
29686    fi
29687 fi
29688
29689 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
29690           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29691 then
29692    { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
29693 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
29694    cat >conftest.$ac_ext <<_ACEOF
29695 /* confdefs.h.  */
29696 _ACEOF
29697 cat confdefs.h >>conftest.$ac_ext
29698 cat >>conftest.$ac_ext <<_ACEOF
29699 /* end confdefs.h.  */
29700  #include <sys/bitypes.h>
29701 int
29702 main ()
29703 {
29704  int64_t a; u_int64_t b;
29705        a = b = 1;
29706   ;
29707   return 0;
29708 }
29709 _ACEOF
29710 rm -f conftest.$ac_objext
29711 if { (ac_try="$ac_compile"
29712 case "(($ac_try" in
29713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29714   *) ac_try_echo=$ac_try;;
29715 esac
29716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29717   (eval "$ac_compile") 2>conftest.er1
29718   ac_status=$?
29719   grep -v '^ *+' conftest.er1 >conftest.err
29720   rm -f conftest.er1
29721   cat conftest.err >&5
29722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29723   (exit $ac_status); } &&
29724          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29725   { (case "(($ac_try" in
29726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29727   *) ac_try_echo=$ac_try;;
29728 esac
29729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29730   (eval "$ac_try") 2>&5
29731   ac_status=$?
29732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29733   (exit $ac_status); }; } &&
29734          { ac_try='test -s conftest.$ac_objext'
29735   { (case "(($ac_try" in
29736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29737   *) ac_try_echo=$ac_try;;
29738 esac
29739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29740   (eval "$ac_try") 2>&5
29741   ac_status=$?
29742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29743   (exit $ac_status); }; }; then
29744    cat >>confdefs.h <<\_ACEOF
29745 #define HAVE_U_INT64_T 1
29746 _ACEOF
29747
29748        cat >>confdefs.h <<\_ACEOF
29749 #define HAVE_INT64_T 1
29750 _ACEOF
29751
29752        { echo "$as_me:$LINENO: result: yes" >&5
29753 echo "${ECHO_T}yes" >&6; }
29754 else
29755   echo "$as_me: failed program was:" >&5
29756 sed 's/^/| /' conftest.$ac_ext >&5
29757
29758          { echo "$as_me:$LINENO: result: no" >&5
29759 echo "${ECHO_T}no" >&6; }
29760
29761 fi
29762
29763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29764 fi
29765
29766 if (test -z "$have_uintxx_t" && \
29767           test "x$ac_cv_header_sys_bitypes_h" = "xyes")
29768 then
29769    { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
29770 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
29771    cat >conftest.$ac_ext <<_ACEOF
29772 /* confdefs.h.  */
29773 _ACEOF
29774 cat confdefs.h >>conftest.$ac_ext
29775 cat >>conftest.$ac_ext <<_ACEOF
29776 /* end confdefs.h.  */
29777  #include <sys/bitypes.h>
29778 int
29779 main ()
29780 {
29781  uint8_t a; uint16_t b;
29782           uint32_t c; a = b = c = 1;
29783   ;
29784   return 0;
29785 }
29786 _ACEOF
29787 rm -f conftest.$ac_objext
29788 if { (ac_try="$ac_compile"
29789 case "(($ac_try" in
29790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29791   *) ac_try_echo=$ac_try;;
29792 esac
29793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29794   (eval "$ac_compile") 2>conftest.er1
29795   ac_status=$?
29796   grep -v '^ *+' conftest.er1 >conftest.err
29797   rm -f conftest.er1
29798   cat conftest.err >&5
29799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29800   (exit $ac_status); } &&
29801          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29802   { (case "(($ac_try" in
29803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29804   *) ac_try_echo=$ac_try;;
29805 esac
29806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29807   (eval "$ac_try") 2>&5
29808   ac_status=$?
29809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29810   (exit $ac_status); }; } &&
29811          { ac_try='test -s conftest.$ac_objext'
29812   { (case "(($ac_try" in
29813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29814   *) ac_try_echo=$ac_try;;
29815 esac
29816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29817   (eval "$ac_try") 2>&5
29818   ac_status=$?
29819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29820   (exit $ac_status); }; }; then
29821    cat >>confdefs.h <<\_ACEOF
29822 #define HAVE_UINTXX_T 1
29823 _ACEOF
29824
29825        { echo "$as_me:$LINENO: result: yes" >&5
29826 echo "${ECHO_T}yes" >&6; }
29827 else
29828   echo "$as_me: failed program was:" >&5
29829 sed 's/^/| /' conftest.$ac_ext >&5
29830
29831          { echo "$as_me:$LINENO: result: no" >&5
29832 echo "${ECHO_T}no" >&6; }
29833
29834 fi
29835
29836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29837
29838 fi
29839
29840
29841
29842
29843
29844
29845
29846
29847
29848
29849
29850
29851
29852
29853
29854
29855
29856 for ac_func in \
29857         fork \
29858         getcwd \
29859         gethostname \
29860         getpid \
29861         gettimeofday \
29862         setpgid \
29863         setpgrp \
29864         setsid \
29865         signal \
29866         strerror \
29867         strncmp \
29868         strncpy \
29869         vfprintf \
29870
29871 do
29872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29873 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29875 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29876   echo $ECHO_N "(cached) $ECHO_C" >&6
29877 else
29878   cat >conftest.$ac_ext <<_ACEOF
29879 /* confdefs.h.  */
29880 _ACEOF
29881 cat confdefs.h >>conftest.$ac_ext
29882 cat >>conftest.$ac_ext <<_ACEOF
29883 /* end confdefs.h.  */
29884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29885    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29886 #define $ac_func innocuous_$ac_func
29887
29888 /* System header to define __stub macros and hopefully few prototypes,
29889     which can conflict with char $ac_func (); below.
29890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29891     <limits.h> exists even on freestanding compilers.  */
29892
29893 #ifdef __STDC__
29894 # include <limits.h>
29895 #else
29896 # include <assert.h>
29897 #endif
29898
29899 #undef $ac_func
29900
29901 /* Override any GCC internal prototype to avoid an error.
29902    Use char because int might match the return type of a GCC
29903    builtin and then its argument prototype would still apply.  */
29904 #ifdef __cplusplus
29905 extern "C"
29906 #endif
29907 char $ac_func ();
29908 /* The GNU C library defines this for functions which it implements
29909     to always fail with ENOSYS.  Some functions are actually named
29910     something starting with __ and the normal name is an alias.  */
29911 #if defined __stub_$ac_func || defined __stub___$ac_func
29912 choke me
29913 #endif
29914
29915 int
29916 main ()
29917 {
29918 return $ac_func ();
29919   ;
29920   return 0;
29921 }
29922 _ACEOF
29923 rm -f conftest.$ac_objext conftest$ac_exeext
29924 if { (ac_try="$ac_link"
29925 case "(($ac_try" in
29926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29927   *) ac_try_echo=$ac_try;;
29928 esac
29929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29930   (eval "$ac_link") 2>conftest.er1
29931   ac_status=$?
29932   grep -v '^ *+' conftest.er1 >conftest.err
29933   rm -f conftest.er1
29934   cat conftest.err >&5
29935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29936   (exit $ac_status); } &&
29937          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
29938   { (case "(($ac_try" in
29939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29940   *) ac_try_echo=$ac_try;;
29941 esac
29942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29943   (eval "$ac_try") 2>&5
29944   ac_status=$?
29945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29946   (exit $ac_status); }; } &&
29947          { ac_try='test -s conftest$ac_exeext'
29948   { (case "(($ac_try" in
29949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29950   *) ac_try_echo=$ac_try;;
29951 esac
29952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29953   (eval "$ac_try") 2>&5
29954   ac_status=$?
29955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29956   (exit $ac_status); }; }; then
29957   eval "$as_ac_var=yes"
29958 else
29959   echo "$as_me: failed program was:" >&5
29960 sed 's/^/| /' conftest.$ac_ext >&5
29961
29962         eval "$as_ac_var=no"
29963 fi
29964
29965 rm -f core conftest.err conftest.$ac_objext \
29966       conftest$ac_exeext conftest.$ac_ext
29967 fi
29968 ac_res=`eval echo '${'$as_ac_var'}'`
29969                { echo "$as_me:$LINENO: result: $ac_res" >&5
29970 echo "${ECHO_T}$ac_res" >&6; }
29971 if test `eval echo '${'$as_ac_var'}'` = yes; then
29972   cat >>confdefs.h <<_ACEOF
29973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29974 _ACEOF
29975
29976 else
29977   echo 'configure: cannot find needed function.'; exit 1
29978
29979 fi
29980 done
29981
29982
29983
29984 for ac_func in fchdir
29985 do
29986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29987 { echo "$as_me:$LINENO: checking for $ac_func" >&5
29988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
29989 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29990   echo $ECHO_N "(cached) $ECHO_C" >&6
29991 else
29992   cat >conftest.$ac_ext <<_ACEOF
29993 /* confdefs.h.  */
29994 _ACEOF
29995 cat confdefs.h >>conftest.$ac_ext
29996 cat >>conftest.$ac_ext <<_ACEOF
29997 /* end confdefs.h.  */
29998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29999    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30000 #define $ac_func innocuous_$ac_func
30001
30002 /* System header to define __stub macros and hopefully few prototypes,
30003     which can conflict with char $ac_func (); below.
30004     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30005     <limits.h> exists even on freestanding compilers.  */
30006
30007 #ifdef __STDC__
30008 # include <limits.h>
30009 #else
30010 # include <assert.h>
30011 #endif
30012
30013 #undef $ac_func
30014
30015 /* Override any GCC internal prototype to avoid an error.
30016    Use char because int might match the return type of a GCC
30017    builtin and then its argument prototype would still apply.  */
30018 #ifdef __cplusplus
30019 extern "C"
30020 #endif
30021 char $ac_func ();
30022 /* The GNU C library defines this for functions which it implements
30023     to always fail with ENOSYS.  Some functions are actually named
30024     something starting with __ and the normal name is an alias.  */
30025 #if defined __stub_$ac_func || defined __stub___$ac_func
30026 choke me
30027 #endif
30028
30029 int
30030 main ()
30031 {
30032 return $ac_func ();
30033   ;
30034   return 0;
30035 }
30036 _ACEOF
30037 rm -f conftest.$ac_objext conftest$ac_exeext
30038 if { (ac_try="$ac_link"
30039 case "(($ac_try" in
30040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30041   *) ac_try_echo=$ac_try;;
30042 esac
30043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30044   (eval "$ac_link") 2>conftest.er1
30045   ac_status=$?
30046   grep -v '^ *+' conftest.er1 >conftest.err
30047   rm -f conftest.er1
30048   cat conftest.err >&5
30049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30050   (exit $ac_status); } &&
30051          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30052   { (case "(($ac_try" in
30053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30054   *) ac_try_echo=$ac_try;;
30055 esac
30056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30057   (eval "$ac_try") 2>&5
30058   ac_status=$?
30059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30060   (exit $ac_status); }; } &&
30061          { ac_try='test -s conftest$ac_exeext'
30062   { (case "(($ac_try" in
30063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30064   *) ac_try_echo=$ac_try;;
30065 esac
30066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30067   (eval "$ac_try") 2>&5
30068   ac_status=$?
30069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30070   (exit $ac_status); }; }; then
30071   eval "$as_ac_var=yes"
30072 else
30073   echo "$as_me: failed program was:" >&5
30074 sed 's/^/| /' conftest.$ac_ext >&5
30075
30076         eval "$as_ac_var=no"
30077 fi
30078
30079 rm -f core conftest.err conftest.$ac_objext \
30080       conftest$ac_exeext conftest.$ac_ext
30081 fi
30082 ac_res=`eval echo '${'$as_ac_var'}'`
30083                { echo "$as_me:$LINENO: result: $ac_res" >&5
30084 echo "${ECHO_T}$ac_res" >&6; }
30085 if test `eval echo '${'$as_ac_var'}'` = yes; then
30086   cat >>confdefs.h <<_ACEOF
30087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30088 _ACEOF
30089  cat >>confdefs.h <<\_ACEOF
30090 #define HAVE_FCHDIR 1
30091 _ACEOF
30092
30093 fi
30094 done
30095
30096
30097 for ac_func in strtoll
30098 do
30099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30100 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30102 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30103   echo $ECHO_N "(cached) $ECHO_C" >&6
30104 else
30105   cat >conftest.$ac_ext <<_ACEOF
30106 /* confdefs.h.  */
30107 _ACEOF
30108 cat confdefs.h >>conftest.$ac_ext
30109 cat >>conftest.$ac_ext <<_ACEOF
30110 /* end confdefs.h.  */
30111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30112    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30113 #define $ac_func innocuous_$ac_func
30114
30115 /* System header to define __stub macros and hopefully few prototypes,
30116     which can conflict with char $ac_func (); below.
30117     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30118     <limits.h> exists even on freestanding compilers.  */
30119
30120 #ifdef __STDC__
30121 # include <limits.h>
30122 #else
30123 # include <assert.h>
30124 #endif
30125
30126 #undef $ac_func
30127
30128 /* Override any GCC internal prototype to avoid an error.
30129    Use char because int might match the return type of a GCC
30130    builtin and then its argument prototype would still apply.  */
30131 #ifdef __cplusplus
30132 extern "C"
30133 #endif
30134 char $ac_func ();
30135 /* The GNU C library defines this for functions which it implements
30136     to always fail with ENOSYS.  Some functions are actually named
30137     something starting with __ and the normal name is an alias.  */
30138 #if defined __stub_$ac_func || defined __stub___$ac_func
30139 choke me
30140 #endif
30141
30142 int
30143 main ()
30144 {
30145 return $ac_func ();
30146   ;
30147   return 0;
30148 }
30149 _ACEOF
30150 rm -f conftest.$ac_objext conftest$ac_exeext
30151 if { (ac_try="$ac_link"
30152 case "(($ac_try" in
30153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30154   *) ac_try_echo=$ac_try;;
30155 esac
30156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30157   (eval "$ac_link") 2>conftest.er1
30158   ac_status=$?
30159   grep -v '^ *+' conftest.er1 >conftest.err
30160   rm -f conftest.er1
30161   cat conftest.err >&5
30162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30163   (exit $ac_status); } &&
30164          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30165   { (case "(($ac_try" in
30166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30167   *) ac_try_echo=$ac_try;;
30168 esac
30169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30170   (eval "$ac_try") 2>&5
30171   ac_status=$?
30172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30173   (exit $ac_status); }; } &&
30174          { ac_try='test -s conftest$ac_exeext'
30175   { (case "(($ac_try" in
30176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30177   *) ac_try_echo=$ac_try;;
30178 esac
30179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30180   (eval "$ac_try") 2>&5
30181   ac_status=$?
30182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30183   (exit $ac_status); }; }; then
30184   eval "$as_ac_var=yes"
30185 else
30186   echo "$as_me: failed program was:" >&5
30187 sed 's/^/| /' conftest.$ac_ext >&5
30188
30189         eval "$as_ac_var=no"
30190 fi
30191
30192 rm -f core conftest.err conftest.$ac_objext \
30193       conftest$ac_exeext conftest.$ac_ext
30194 fi
30195 ac_res=`eval echo '${'$as_ac_var'}'`
30196                { echo "$as_me:$LINENO: result: $ac_res" >&5
30197 echo "${ECHO_T}$ac_res" >&6; }
30198 if test `eval echo '${'$as_ac_var'}'` = yes; then
30199   cat >>confdefs.h <<_ACEOF
30200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30201 _ACEOF
30202  cat >>confdefs.h <<\_ACEOF
30203 #define HAVE_STRTOLL 1
30204 _ACEOF
30205
30206 fi
30207 done
30208
30209
30210 for ac_func in posix_fadvise
30211 do
30212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30213 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30215 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30216   echo $ECHO_N "(cached) $ECHO_C" >&6
30217 else
30218   cat >conftest.$ac_ext <<_ACEOF
30219 /* confdefs.h.  */
30220 _ACEOF
30221 cat confdefs.h >>conftest.$ac_ext
30222 cat >>conftest.$ac_ext <<_ACEOF
30223 /* end confdefs.h.  */
30224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30225    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30226 #define $ac_func innocuous_$ac_func
30227
30228 /* System header to define __stub macros and hopefully few prototypes,
30229     which can conflict with char $ac_func (); below.
30230     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30231     <limits.h> exists even on freestanding compilers.  */
30232
30233 #ifdef __STDC__
30234 # include <limits.h>
30235 #else
30236 # include <assert.h>
30237 #endif
30238
30239 #undef $ac_func
30240
30241 /* Override any GCC internal prototype to avoid an error.
30242    Use char because int might match the return type of a GCC
30243    builtin and then its argument prototype would still apply.  */
30244 #ifdef __cplusplus
30245 extern "C"
30246 #endif
30247 char $ac_func ();
30248 /* The GNU C library defines this for functions which it implements
30249     to always fail with ENOSYS.  Some functions are actually named
30250     something starting with __ and the normal name is an alias.  */
30251 #if defined __stub_$ac_func || defined __stub___$ac_func
30252 choke me
30253 #endif
30254
30255 int
30256 main ()
30257 {
30258 return $ac_func ();
30259   ;
30260   return 0;
30261 }
30262 _ACEOF
30263 rm -f conftest.$ac_objext conftest$ac_exeext
30264 if { (ac_try="$ac_link"
30265 case "(($ac_try" in
30266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30267   *) ac_try_echo=$ac_try;;
30268 esac
30269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30270   (eval "$ac_link") 2>conftest.er1
30271   ac_status=$?
30272   grep -v '^ *+' conftest.er1 >conftest.err
30273   rm -f conftest.er1
30274   cat conftest.err >&5
30275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30276   (exit $ac_status); } &&
30277          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30278   { (case "(($ac_try" in
30279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30280   *) ac_try_echo=$ac_try;;
30281 esac
30282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30283   (eval "$ac_try") 2>&5
30284   ac_status=$?
30285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30286   (exit $ac_status); }; } &&
30287          { ac_try='test -s conftest$ac_exeext'
30288   { (case "(($ac_try" in
30289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30290   *) ac_try_echo=$ac_try;;
30291 esac
30292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30293   (eval "$ac_try") 2>&5
30294   ac_status=$?
30295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30296   (exit $ac_status); }; }; then
30297   eval "$as_ac_var=yes"
30298 else
30299   echo "$as_me: failed program was:" >&5
30300 sed 's/^/| /' conftest.$ac_ext >&5
30301
30302         eval "$as_ac_var=no"
30303 fi
30304
30305 rm -f core conftest.err conftest.$ac_objext \
30306       conftest$ac_exeext conftest.$ac_ext
30307 fi
30308 ac_res=`eval echo '${'$as_ac_var'}'`
30309                { echo "$as_me:$LINENO: result: $ac_res" >&5
30310 echo "${ECHO_T}$ac_res" >&6; }
30311 if test `eval echo '${'$as_ac_var'}'` = yes; then
30312   cat >>confdefs.h <<_ACEOF
30313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30314 _ACEOF
30315
30316 fi
30317 done
30318
30319
30320 for ac_func in fdatasync
30321 do
30322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30323 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30325 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30326   echo $ECHO_N "(cached) $ECHO_C" >&6
30327 else
30328   cat >conftest.$ac_ext <<_ACEOF
30329 /* confdefs.h.  */
30330 _ACEOF
30331 cat confdefs.h >>conftest.$ac_ext
30332 cat >>conftest.$ac_ext <<_ACEOF
30333 /* end confdefs.h.  */
30334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30335    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30336 #define $ac_func innocuous_$ac_func
30337
30338 /* System header to define __stub macros and hopefully few prototypes,
30339     which can conflict with char $ac_func (); below.
30340     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30341     <limits.h> exists even on freestanding compilers.  */
30342
30343 #ifdef __STDC__
30344 # include <limits.h>
30345 #else
30346 # include <assert.h>
30347 #endif
30348
30349 #undef $ac_func
30350
30351 /* Override any GCC internal prototype to avoid an error.
30352    Use char because int might match the return type of a GCC
30353    builtin and then its argument prototype would still apply.  */
30354 #ifdef __cplusplus
30355 extern "C"
30356 #endif
30357 char $ac_func ();
30358 /* The GNU C library defines this for functions which it implements
30359     to always fail with ENOSYS.  Some functions are actually named
30360     something starting with __ and the normal name is an alias.  */
30361 #if defined __stub_$ac_func || defined __stub___$ac_func
30362 choke me
30363 #endif
30364
30365 int
30366 main ()
30367 {
30368 return $ac_func ();
30369   ;
30370   return 0;
30371 }
30372 _ACEOF
30373 rm -f conftest.$ac_objext conftest$ac_exeext
30374 if { (ac_try="$ac_link"
30375 case "(($ac_try" in
30376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30377   *) ac_try_echo=$ac_try;;
30378 esac
30379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30380   (eval "$ac_link") 2>conftest.er1
30381   ac_status=$?
30382   grep -v '^ *+' conftest.er1 >conftest.err
30383   rm -f conftest.er1
30384   cat conftest.err >&5
30385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30386   (exit $ac_status); } &&
30387          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30388   { (case "(($ac_try" in
30389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30390   *) ac_try_echo=$ac_try;;
30391 esac
30392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30393   (eval "$ac_try") 2>&5
30394   ac_status=$?
30395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30396   (exit $ac_status); }; } &&
30397          { ac_try='test -s conftest$ac_exeext'
30398   { (case "(($ac_try" in
30399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30400   *) ac_try_echo=$ac_try;;
30401 esac
30402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30403   (eval "$ac_try") 2>&5
30404   ac_status=$?
30405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30406   (exit $ac_status); }; }; then
30407   eval "$as_ac_var=yes"
30408 else
30409   echo "$as_me: failed program was:" >&5
30410 sed 's/^/| /' conftest.$ac_ext >&5
30411
30412         eval "$as_ac_var=no"
30413 fi
30414
30415 rm -f core conftest.err conftest.$ac_objext \
30416       conftest$ac_exeext conftest.$ac_ext
30417 fi
30418 ac_res=`eval echo '${'$as_ac_var'}'`
30419                { echo "$as_me:$LINENO: result: $ac_res" >&5
30420 echo "${ECHO_T}$ac_res" >&6; }
30421 if test `eval echo '${'$as_ac_var'}'` = yes; then
30422   cat >>confdefs.h <<_ACEOF
30423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30424 _ACEOF
30425
30426 fi
30427 done
30428
30429
30430
30431 for ac_func in chflags
30432 do
30433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30434 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30436 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30437   echo $ECHO_N "(cached) $ECHO_C" >&6
30438 else
30439   cat >conftest.$ac_ext <<_ACEOF
30440 /* confdefs.h.  */
30441 _ACEOF
30442 cat confdefs.h >>conftest.$ac_ext
30443 cat >>conftest.$ac_ext <<_ACEOF
30444 /* end confdefs.h.  */
30445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30446    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30447 #define $ac_func innocuous_$ac_func
30448
30449 /* System header to define __stub macros and hopefully few prototypes,
30450     which can conflict with char $ac_func (); below.
30451     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30452     <limits.h> exists even on freestanding compilers.  */
30453
30454 #ifdef __STDC__
30455 # include <limits.h>
30456 #else
30457 # include <assert.h>
30458 #endif
30459
30460 #undef $ac_func
30461
30462 /* Override any GCC internal prototype to avoid an error.
30463    Use char because int might match the return type of a GCC
30464    builtin and then its argument prototype would still apply.  */
30465 #ifdef __cplusplus
30466 extern "C"
30467 #endif
30468 char $ac_func ();
30469 /* The GNU C library defines this for functions which it implements
30470     to always fail with ENOSYS.  Some functions are actually named
30471     something starting with __ and the normal name is an alias.  */
30472 #if defined __stub_$ac_func || defined __stub___$ac_func
30473 choke me
30474 #endif
30475
30476 int
30477 main ()
30478 {
30479 return $ac_func ();
30480   ;
30481   return 0;
30482 }
30483 _ACEOF
30484 rm -f conftest.$ac_objext conftest$ac_exeext
30485 if { (ac_try="$ac_link"
30486 case "(($ac_try" in
30487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30488   *) ac_try_echo=$ac_try;;
30489 esac
30490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30491   (eval "$ac_link") 2>conftest.er1
30492   ac_status=$?
30493   grep -v '^ *+' conftest.er1 >conftest.err
30494   rm -f conftest.er1
30495   cat conftest.err >&5
30496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497   (exit $ac_status); } &&
30498          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30499   { (case "(($ac_try" in
30500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30501   *) ac_try_echo=$ac_try;;
30502 esac
30503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30504   (eval "$ac_try") 2>&5
30505   ac_status=$?
30506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30507   (exit $ac_status); }; } &&
30508          { ac_try='test -s conftest$ac_exeext'
30509   { (case "(($ac_try" in
30510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30511   *) ac_try_echo=$ac_try;;
30512 esac
30513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30514   (eval "$ac_try") 2>&5
30515   ac_status=$?
30516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30517   (exit $ac_status); }; }; then
30518   eval "$as_ac_var=yes"
30519 else
30520   echo "$as_me: failed program was:" >&5
30521 sed 's/^/| /' conftest.$ac_ext >&5
30522
30523         eval "$as_ac_var=no"
30524 fi
30525
30526 rm -f core conftest.err conftest.$ac_objext \
30527       conftest$ac_exeext conftest.$ac_ext
30528 fi
30529 ac_res=`eval echo '${'$as_ac_var'}'`
30530                { echo "$as_me:$LINENO: result: $ac_res" >&5
30531 echo "${ECHO_T}$ac_res" >&6; }
30532 if test `eval echo '${'$as_ac_var'}'` = yes; then
30533   cat >>confdefs.h <<_ACEOF
30534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30535 _ACEOF
30536
30537 fi
30538 done
30539
30540
30541
30542
30543
30544
30545 for ac_func in snprintf vsnprintf gethostid fseeko
30546 do
30547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30548 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30550 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30551   echo $ECHO_N "(cached) $ECHO_C" >&6
30552 else
30553   cat >conftest.$ac_ext <<_ACEOF
30554 /* confdefs.h.  */
30555 _ACEOF
30556 cat confdefs.h >>conftest.$ac_ext
30557 cat >>conftest.$ac_ext <<_ACEOF
30558 /* end confdefs.h.  */
30559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30560    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30561 #define $ac_func innocuous_$ac_func
30562
30563 /* System header to define __stub macros and hopefully few prototypes,
30564     which can conflict with char $ac_func (); below.
30565     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30566     <limits.h> exists even on freestanding compilers.  */
30567
30568 #ifdef __STDC__
30569 # include <limits.h>
30570 #else
30571 # include <assert.h>
30572 #endif
30573
30574 #undef $ac_func
30575
30576 /* Override any GCC internal prototype to avoid an error.
30577    Use char because int might match the return type of a GCC
30578    builtin and then its argument prototype would still apply.  */
30579 #ifdef __cplusplus
30580 extern "C"
30581 #endif
30582 char $ac_func ();
30583 /* The GNU C library defines this for functions which it implements
30584     to always fail with ENOSYS.  Some functions are actually named
30585     something starting with __ and the normal name is an alias.  */
30586 #if defined __stub_$ac_func || defined __stub___$ac_func
30587 choke me
30588 #endif
30589
30590 int
30591 main ()
30592 {
30593 return $ac_func ();
30594   ;
30595   return 0;
30596 }
30597 _ACEOF
30598 rm -f conftest.$ac_objext conftest$ac_exeext
30599 if { (ac_try="$ac_link"
30600 case "(($ac_try" in
30601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30602   *) ac_try_echo=$ac_try;;
30603 esac
30604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30605   (eval "$ac_link") 2>conftest.er1
30606   ac_status=$?
30607   grep -v '^ *+' conftest.er1 >conftest.err
30608   rm -f conftest.er1
30609   cat conftest.err >&5
30610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30611   (exit $ac_status); } &&
30612          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30613   { (case "(($ac_try" in
30614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30615   *) ac_try_echo=$ac_try;;
30616 esac
30617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30618   (eval "$ac_try") 2>&5
30619   ac_status=$?
30620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30621   (exit $ac_status); }; } &&
30622          { ac_try='test -s conftest$ac_exeext'
30623   { (case "(($ac_try" in
30624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30625   *) ac_try_echo=$ac_try;;
30626 esac
30627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30628   (eval "$ac_try") 2>&5
30629   ac_status=$?
30630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30631   (exit $ac_status); }; }; then
30632   eval "$as_ac_var=yes"
30633 else
30634   echo "$as_me: failed program was:" >&5
30635 sed 's/^/| /' conftest.$ac_ext >&5
30636
30637         eval "$as_ac_var=no"
30638 fi
30639
30640 rm -f core conftest.err conftest.$ac_objext \
30641       conftest$ac_exeext conftest.$ac_ext
30642 fi
30643 ac_res=`eval echo '${'$as_ac_var'}'`
30644                { echo "$as_me:$LINENO: result: $ac_res" >&5
30645 echo "${ECHO_T}$ac_res" >&6; }
30646 if test `eval echo '${'$as_ac_var'}'` = yes; then
30647   cat >>confdefs.h <<_ACEOF
30648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30649 _ACEOF
30650
30651 fi
30652 done
30653
30654
30655
30656
30657
30658
30659 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
30660 do
30661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30662 { echo "$as_me:$LINENO: checking for $ac_func" >&5
30663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
30664 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30665   echo $ECHO_N "(cached) $ECHO_C" >&6
30666 else
30667   cat >conftest.$ac_ext <<_ACEOF
30668 /* confdefs.h.  */
30669 _ACEOF
30670 cat confdefs.h >>conftest.$ac_ext
30671 cat >>conftest.$ac_ext <<_ACEOF
30672 /* end confdefs.h.  */
30673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30674    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30675 #define $ac_func innocuous_$ac_func
30676
30677 /* System header to define __stub macros and hopefully few prototypes,
30678     which can conflict with char $ac_func (); below.
30679     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30680     <limits.h> exists even on freestanding compilers.  */
30681
30682 #ifdef __STDC__
30683 # include <limits.h>
30684 #else
30685 # include <assert.h>
30686 #endif
30687
30688 #undef $ac_func
30689
30690 /* Override any GCC internal prototype to avoid an error.
30691    Use char because int might match the return type of a GCC
30692    builtin and then its argument prototype would still apply.  */
30693 #ifdef __cplusplus
30694 extern "C"
30695 #endif
30696 char $ac_func ();
30697 /* The GNU C library defines this for functions which it implements
30698     to always fail with ENOSYS.  Some functions are actually named
30699     something starting with __ and the normal name is an alias.  */
30700 #if defined __stub_$ac_func || defined __stub___$ac_func
30701 choke me
30702 #endif
30703
30704 int
30705 main ()
30706 {
30707 return $ac_func ();
30708   ;
30709   return 0;
30710 }
30711 _ACEOF
30712 rm -f conftest.$ac_objext conftest$ac_exeext
30713 if { (ac_try="$ac_link"
30714 case "(($ac_try" in
30715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30716   *) ac_try_echo=$ac_try;;
30717 esac
30718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30719   (eval "$ac_link") 2>conftest.er1
30720   ac_status=$?
30721   grep -v '^ *+' conftest.er1 >conftest.err
30722   rm -f conftest.er1
30723   cat conftest.err >&5
30724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30725   (exit $ac_status); } &&
30726          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30727   { (case "(($ac_try" in
30728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30729   *) ac_try_echo=$ac_try;;
30730 esac
30731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30732   (eval "$ac_try") 2>&5
30733   ac_status=$?
30734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30735   (exit $ac_status); }; } &&
30736          { ac_try='test -s conftest$ac_exeext'
30737   { (case "(($ac_try" in
30738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30739   *) ac_try_echo=$ac_try;;
30740 esac
30741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30742   (eval "$ac_try") 2>&5
30743   ac_status=$?
30744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30745   (exit $ac_status); }; }; then
30746   eval "$as_ac_var=yes"
30747 else
30748   echo "$as_me: failed program was:" >&5
30749 sed 's/^/| /' conftest.$ac_ext >&5
30750
30751         eval "$as_ac_var=no"
30752 fi
30753
30754 rm -f core conftest.err conftest.$ac_objext \
30755       conftest$ac_exeext conftest.$ac_ext
30756 fi
30757 ac_res=`eval echo '${'$as_ac_var'}'`
30758                { echo "$as_me:$LINENO: result: $ac_res" >&5
30759 echo "${ECHO_T}$ac_res" >&6; }
30760 if test `eval echo '${'$as_ac_var'}'` = yes; then
30761   cat >>confdefs.h <<_ACEOF
30762 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30763 _ACEOF
30764
30765 fi
30766 done
30767
30768
30769 # If resolver functions are not in libc check for -lnsl or -lresolv.
30770 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
30771 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
30772 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
30773   echo $ECHO_N "(cached) $ECHO_C" >&6
30774 else
30775   cat >conftest.$ac_ext <<_ACEOF
30776 /* confdefs.h.  */
30777 _ACEOF
30778 cat confdefs.h >>conftest.$ac_ext
30779 cat >>conftest.$ac_ext <<_ACEOF
30780 /* end confdefs.h.  */
30781 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
30782    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30783 #define gethostbyname_r innocuous_gethostbyname_r
30784
30785 /* System header to define __stub macros and hopefully few prototypes,
30786     which can conflict with char gethostbyname_r (); below.
30787     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30788     <limits.h> exists even on freestanding compilers.  */
30789
30790 #ifdef __STDC__
30791 # include <limits.h>
30792 #else
30793 # include <assert.h>
30794 #endif
30795
30796 #undef gethostbyname_r
30797
30798 /* Override any GCC internal prototype to avoid an error.
30799    Use char because int might match the return type of a GCC
30800    builtin and then its argument prototype would still apply.  */
30801 #ifdef __cplusplus
30802 extern "C"
30803 #endif
30804 char gethostbyname_r ();
30805 /* The GNU C library defines this for functions which it implements
30806     to always fail with ENOSYS.  Some functions are actually named
30807     something starting with __ and the normal name is an alias.  */
30808 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
30809 choke me
30810 #endif
30811
30812 int
30813 main ()
30814 {
30815 return gethostbyname_r ();
30816   ;
30817   return 0;
30818 }
30819 _ACEOF
30820 rm -f conftest.$ac_objext conftest$ac_exeext
30821 if { (ac_try="$ac_link"
30822 case "(($ac_try" in
30823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30824   *) ac_try_echo=$ac_try;;
30825 esac
30826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30827   (eval "$ac_link") 2>conftest.er1
30828   ac_status=$?
30829   grep -v '^ *+' conftest.er1 >conftest.err
30830   rm -f conftest.er1
30831   cat conftest.err >&5
30832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30833   (exit $ac_status); } &&
30834          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30835   { (case "(($ac_try" in
30836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30837   *) ac_try_echo=$ac_try;;
30838 esac
30839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30840   (eval "$ac_try") 2>&5
30841   ac_status=$?
30842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30843   (exit $ac_status); }; } &&
30844          { ac_try='test -s conftest$ac_exeext'
30845   { (case "(($ac_try" in
30846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30847   *) ac_try_echo=$ac_try;;
30848 esac
30849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30850   (eval "$ac_try") 2>&5
30851   ac_status=$?
30852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30853   (exit $ac_status); }; }; then
30854   ac_cv_func_gethostbyname_r=yes
30855 else
30856   echo "$as_me: failed program was:" >&5
30857 sed 's/^/| /' conftest.$ac_ext >&5
30858
30859         ac_cv_func_gethostbyname_r=no
30860 fi
30861
30862 rm -f core conftest.err conftest.$ac_objext \
30863       conftest$ac_exeext conftest.$ac_ext
30864 fi
30865 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
30866 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
30867 if test $ac_cv_func_gethostbyname_r = yes; then
30868   { echo "$as_me:$LINENO: result: using libc's resolver" >&5
30869 echo "${ECHO_T}using libc's resolver" >&6; }
30870 else
30871
30872 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
30873 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
30874 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
30875   echo $ECHO_N "(cached) $ECHO_C" >&6
30876 else
30877   ac_check_lib_save_LIBS=$LIBS
30878 LIBS="-lnsl  $LIBS"
30879 cat >conftest.$ac_ext <<_ACEOF
30880 /* confdefs.h.  */
30881 _ACEOF
30882 cat confdefs.h >>conftest.$ac_ext
30883 cat >>conftest.$ac_ext <<_ACEOF
30884 /* end confdefs.h.  */
30885
30886 /* Override any GCC internal prototype to avoid an error.
30887    Use char because int might match the return type of a GCC
30888    builtin and then its argument prototype would still apply.  */
30889 #ifdef __cplusplus
30890 extern "C"
30891 #endif
30892 char gethostbyname_r ();
30893 int
30894 main ()
30895 {
30896 return gethostbyname_r ();
30897   ;
30898   return 0;
30899 }
30900 _ACEOF
30901 rm -f conftest.$ac_objext conftest$ac_exeext
30902 if { (ac_try="$ac_link"
30903 case "(($ac_try" in
30904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30905   *) ac_try_echo=$ac_try;;
30906 esac
30907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30908   (eval "$ac_link") 2>conftest.er1
30909   ac_status=$?
30910   grep -v '^ *+' conftest.er1 >conftest.err
30911   rm -f conftest.er1
30912   cat conftest.err >&5
30913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30914   (exit $ac_status); } &&
30915          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
30916   { (case "(($ac_try" in
30917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30918   *) ac_try_echo=$ac_try;;
30919 esac
30920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30921   (eval "$ac_try") 2>&5
30922   ac_status=$?
30923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30924   (exit $ac_status); }; } &&
30925          { ac_try='test -s conftest$ac_exeext'
30926   { (case "(($ac_try" in
30927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30928   *) ac_try_echo=$ac_try;;
30929 esac
30930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30931   (eval "$ac_try") 2>&5
30932   ac_status=$?
30933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30934   (exit $ac_status); }; }; then
30935   ac_cv_lib_nsl_gethostbyname_r=yes
30936 else
30937   echo "$as_me: failed program was:" >&5
30938 sed 's/^/| /' conftest.$ac_ext >&5
30939
30940         ac_cv_lib_nsl_gethostbyname_r=no
30941 fi
30942
30943 rm -f core conftest.err conftest.$ac_objext \
30944       conftest$ac_exeext conftest.$ac_ext
30945 LIBS=$ac_check_lib_save_LIBS
30946 fi
30947 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
30948 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
30949 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
30950   cat >>confdefs.h <<_ACEOF
30951 #define HAVE_LIBNSL 1
30952 _ACEOF
30953
30954   LIBS="-lnsl $LIBS"
30955
30956 fi
30957
30958
30959 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
30960 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
30961 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
30962   echo $ECHO_N "(cached) $ECHO_C" >&6
30963 else
30964   ac_check_lib_save_LIBS=$LIBS
30965 LIBS="-lresolv  $LIBS"
30966 cat >conftest.$ac_ext <<_ACEOF
30967 /* confdefs.h.  */
30968 _ACEOF
30969 cat confdefs.h >>conftest.$ac_ext
30970 cat >>conftest.$ac_ext <<_ACEOF
30971 /* end confdefs.h.  */
30972
30973 /* Override any GCC internal prototype to avoid an error.
30974    Use char because int might match the return type of a GCC
30975    builtin and then its argument prototype would still apply.  */
30976 #ifdef __cplusplus
30977 extern "C"
30978 #endif
30979 char gethostbyname_r ();
30980 int
30981 main ()
30982 {
30983 return gethostbyname_r ();
30984   ;
30985   return 0;
30986 }
30987 _ACEOF
30988 rm -f conftest.$ac_objext conftest$ac_exeext
30989 if { (ac_try="$ac_link"
30990 case "(($ac_try" in
30991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30992   *) ac_try_echo=$ac_try;;
30993 esac
30994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30995   (eval "$ac_link") 2>conftest.er1
30996   ac_status=$?
30997   grep -v '^ *+' conftest.er1 >conftest.err
30998   rm -f conftest.er1
30999   cat conftest.err >&5
31000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31001   (exit $ac_status); } &&
31002          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31003   { (case "(($ac_try" in
31004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31005   *) ac_try_echo=$ac_try;;
31006 esac
31007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31008   (eval "$ac_try") 2>&5
31009   ac_status=$?
31010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31011   (exit $ac_status); }; } &&
31012          { ac_try='test -s conftest$ac_exeext'
31013   { (case "(($ac_try" in
31014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31015   *) ac_try_echo=$ac_try;;
31016 esac
31017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31018   (eval "$ac_try") 2>&5
31019   ac_status=$?
31020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31021   (exit $ac_status); }; }; then
31022   ac_cv_lib_resolv_gethostbyname_r=yes
31023 else
31024   echo "$as_me: failed program was:" >&5
31025 sed 's/^/| /' conftest.$ac_ext >&5
31026
31027         ac_cv_lib_resolv_gethostbyname_r=no
31028 fi
31029
31030 rm -f core conftest.err conftest.$ac_objext \
31031       conftest$ac_exeext conftest.$ac_ext
31032 LIBS=$ac_check_lib_save_LIBS
31033 fi
31034 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
31035 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
31036 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
31037   cat >>confdefs.h <<_ACEOF
31038 #define HAVE_LIBRESOLV 1
31039 _ACEOF
31040
31041   LIBS="-lresolv $LIBS"
31042
31043 fi
31044
31045 fi
31046
31047
31048
31049
31050
31051 for ac_func in inet_pton
31052 do
31053 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31054 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31056 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31057   echo $ECHO_N "(cached) $ECHO_C" >&6
31058 else
31059   cat >conftest.$ac_ext <<_ACEOF
31060 /* confdefs.h.  */
31061 _ACEOF
31062 cat confdefs.h >>conftest.$ac_ext
31063 cat >>conftest.$ac_ext <<_ACEOF
31064 /* end confdefs.h.  */
31065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31066    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31067 #define $ac_func innocuous_$ac_func
31068
31069 /* System header to define __stub macros and hopefully few prototypes,
31070     which can conflict with char $ac_func (); below.
31071     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31072     <limits.h> exists even on freestanding compilers.  */
31073
31074 #ifdef __STDC__
31075 # include <limits.h>
31076 #else
31077 # include <assert.h>
31078 #endif
31079
31080 #undef $ac_func
31081
31082 /* Override any GCC internal prototype to avoid an error.
31083    Use char because int might match the return type of a GCC
31084    builtin and then its argument prototype would still apply.  */
31085 #ifdef __cplusplus
31086 extern "C"
31087 #endif
31088 char $ac_func ();
31089 /* The GNU C library defines this for functions which it implements
31090     to always fail with ENOSYS.  Some functions are actually named
31091     something starting with __ and the normal name is an alias.  */
31092 #if defined __stub_$ac_func || defined __stub___$ac_func
31093 choke me
31094 #endif
31095
31096 int
31097 main ()
31098 {
31099 return $ac_func ();
31100   ;
31101   return 0;
31102 }
31103 _ACEOF
31104 rm -f conftest.$ac_objext conftest$ac_exeext
31105 if { (ac_try="$ac_link"
31106 case "(($ac_try" in
31107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31108   *) ac_try_echo=$ac_try;;
31109 esac
31110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31111   (eval "$ac_link") 2>conftest.er1
31112   ac_status=$?
31113   grep -v '^ *+' conftest.er1 >conftest.err
31114   rm -f conftest.er1
31115   cat conftest.err >&5
31116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31117   (exit $ac_status); } &&
31118          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31119   { (case "(($ac_try" in
31120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31121   *) ac_try_echo=$ac_try;;
31122 esac
31123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31124   (eval "$ac_try") 2>&5
31125   ac_status=$?
31126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31127   (exit $ac_status); }; } &&
31128          { ac_try='test -s conftest$ac_exeext'
31129   { (case "(($ac_try" in
31130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31131   *) ac_try_echo=$ac_try;;
31132 esac
31133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31134   (eval "$ac_try") 2>&5
31135   ac_status=$?
31136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31137   (exit $ac_status); }; }; then
31138   eval "$as_ac_var=yes"
31139 else
31140   echo "$as_me: failed program was:" >&5
31141 sed 's/^/| /' conftest.$ac_ext >&5
31142
31143         eval "$as_ac_var=no"
31144 fi
31145
31146 rm -f core conftest.err conftest.$ac_objext \
31147       conftest$ac_exeext conftest.$ac_ext
31148 fi
31149 ac_res=`eval echo '${'$as_ac_var'}'`
31150                { echo "$as_me:$LINENO: result: $ac_res" >&5
31151 echo "${ECHO_T}$ac_res" >&6; }
31152 if test `eval echo '${'$as_ac_var'}'` = yes; then
31153   cat >>confdefs.h <<_ACEOF
31154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31155 _ACEOF
31156  cat >>confdefs.h <<\_ACEOF
31157 #define HAVE_INET_PTON 1
31158 _ACEOF
31159
31160 fi
31161 done
31162
31163
31164 for ac_func in inet_ntop
31165 do
31166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31167 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31169 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31170   echo $ECHO_N "(cached) $ECHO_C" >&6
31171 else
31172   cat >conftest.$ac_ext <<_ACEOF
31173 /* confdefs.h.  */
31174 _ACEOF
31175 cat confdefs.h >>conftest.$ac_ext
31176 cat >>conftest.$ac_ext <<_ACEOF
31177 /* end confdefs.h.  */
31178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31179    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31180 #define $ac_func innocuous_$ac_func
31181
31182 /* System header to define __stub macros and hopefully few prototypes,
31183     which can conflict with char $ac_func (); below.
31184     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31185     <limits.h> exists even on freestanding compilers.  */
31186
31187 #ifdef __STDC__
31188 # include <limits.h>
31189 #else
31190 # include <assert.h>
31191 #endif
31192
31193 #undef $ac_func
31194
31195 /* Override any GCC internal prototype to avoid an error.
31196    Use char because int might match the return type of a GCC
31197    builtin and then its argument prototype would still apply.  */
31198 #ifdef __cplusplus
31199 extern "C"
31200 #endif
31201 char $ac_func ();
31202 /* The GNU C library defines this for functions which it implements
31203     to always fail with ENOSYS.  Some functions are actually named
31204     something starting with __ and the normal name is an alias.  */
31205 #if defined __stub_$ac_func || defined __stub___$ac_func
31206 choke me
31207 #endif
31208
31209 int
31210 main ()
31211 {
31212 return $ac_func ();
31213   ;
31214   return 0;
31215 }
31216 _ACEOF
31217 rm -f conftest.$ac_objext conftest$ac_exeext
31218 if { (ac_try="$ac_link"
31219 case "(($ac_try" in
31220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31221   *) ac_try_echo=$ac_try;;
31222 esac
31223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31224   (eval "$ac_link") 2>conftest.er1
31225   ac_status=$?
31226   grep -v '^ *+' conftest.er1 >conftest.err
31227   rm -f conftest.er1
31228   cat conftest.err >&5
31229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31230   (exit $ac_status); } &&
31231          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31232   { (case "(($ac_try" in
31233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31234   *) ac_try_echo=$ac_try;;
31235 esac
31236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31237   (eval "$ac_try") 2>&5
31238   ac_status=$?
31239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31240   (exit $ac_status); }; } &&
31241          { ac_try='test -s conftest$ac_exeext'
31242   { (case "(($ac_try" in
31243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31244   *) ac_try_echo=$ac_try;;
31245 esac
31246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31247   (eval "$ac_try") 2>&5
31248   ac_status=$?
31249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31250   (exit $ac_status); }; }; then
31251   eval "$as_ac_var=yes"
31252 else
31253   echo "$as_me: failed program was:" >&5
31254 sed 's/^/| /' conftest.$ac_ext >&5
31255
31256         eval "$as_ac_var=no"
31257 fi
31258
31259 rm -f core conftest.err conftest.$ac_objext \
31260       conftest$ac_exeext conftest.$ac_ext
31261 fi
31262 ac_res=`eval echo '${'$as_ac_var'}'`
31263                { echo "$as_me:$LINENO: result: $ac_res" >&5
31264 echo "${ECHO_T}$ac_res" >&6; }
31265 if test `eval echo '${'$as_ac_var'}'` = yes; then
31266   cat >>confdefs.h <<_ACEOF
31267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31268 _ACEOF
31269  cat >>confdefs.h <<\_ACEOF
31270 #define HAVE_INET_NTOP 1
31271 _ACEOF
31272
31273 fi
31274 done
31275
31276
31277 for ac_func in gethostbyname2
31278 do
31279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31280 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31282 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31283   echo $ECHO_N "(cached) $ECHO_C" >&6
31284 else
31285   cat >conftest.$ac_ext <<_ACEOF
31286 /* confdefs.h.  */
31287 _ACEOF
31288 cat confdefs.h >>conftest.$ac_ext
31289 cat >>conftest.$ac_ext <<_ACEOF
31290 /* end confdefs.h.  */
31291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31292    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31293 #define $ac_func innocuous_$ac_func
31294
31295 /* System header to define __stub macros and hopefully few prototypes,
31296     which can conflict with char $ac_func (); below.
31297     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31298     <limits.h> exists even on freestanding compilers.  */
31299
31300 #ifdef __STDC__
31301 # include <limits.h>
31302 #else
31303 # include <assert.h>
31304 #endif
31305
31306 #undef $ac_func
31307
31308 /* Override any GCC internal prototype to avoid an error.
31309    Use char because int might match the return type of a GCC
31310    builtin and then its argument prototype would still apply.  */
31311 #ifdef __cplusplus
31312 extern "C"
31313 #endif
31314 char $ac_func ();
31315 /* The GNU C library defines this for functions which it implements
31316     to always fail with ENOSYS.  Some functions are actually named
31317     something starting with __ and the normal name is an alias.  */
31318 #if defined __stub_$ac_func || defined __stub___$ac_func
31319 choke me
31320 #endif
31321
31322 int
31323 main ()
31324 {
31325 return $ac_func ();
31326   ;
31327   return 0;
31328 }
31329 _ACEOF
31330 rm -f conftest.$ac_objext conftest$ac_exeext
31331 if { (ac_try="$ac_link"
31332 case "(($ac_try" in
31333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31334   *) ac_try_echo=$ac_try;;
31335 esac
31336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31337   (eval "$ac_link") 2>conftest.er1
31338   ac_status=$?
31339   grep -v '^ *+' conftest.er1 >conftest.err
31340   rm -f conftest.er1
31341   cat conftest.err >&5
31342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31343   (exit $ac_status); } &&
31344          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31345   { (case "(($ac_try" in
31346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31347   *) ac_try_echo=$ac_try;;
31348 esac
31349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31350   (eval "$ac_try") 2>&5
31351   ac_status=$?
31352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31353   (exit $ac_status); }; } &&
31354          { ac_try='test -s conftest$ac_exeext'
31355   { (case "(($ac_try" in
31356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31357   *) ac_try_echo=$ac_try;;
31358 esac
31359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31360   (eval "$ac_try") 2>&5
31361   ac_status=$?
31362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31363   (exit $ac_status); }; }; then
31364   eval "$as_ac_var=yes"
31365 else
31366   echo "$as_me: failed program was:" >&5
31367 sed 's/^/| /' conftest.$ac_ext >&5
31368
31369         eval "$as_ac_var=no"
31370 fi
31371
31372 rm -f core conftest.err conftest.$ac_objext \
31373       conftest$ac_exeext conftest.$ac_ext
31374 fi
31375 ac_res=`eval echo '${'$as_ac_var'}'`
31376                { echo "$as_me:$LINENO: result: $ac_res" >&5
31377 echo "${ECHO_T}$ac_res" >&6; }
31378 if test `eval echo '${'$as_ac_var'}'` = yes; then
31379   cat >>confdefs.h <<_ACEOF
31380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31381 _ACEOF
31382  cat >>confdefs.h <<\_ACEOF
31383 #define HAVE_GETHOSTBYNAME2 1
31384 _ACEOF
31385
31386 fi
31387 done
31388
31389
31390 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
31391 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
31392 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
31393   echo $ECHO_N "(cached) $ECHO_C" >&6
31394 else
31395   cat >conftest.$ac_ext <<_ACEOF
31396 /* confdefs.h.  */
31397 _ACEOF
31398 cat confdefs.h >>conftest.$ac_ext
31399 cat >>conftest.$ac_ext <<_ACEOF
31400 /* end confdefs.h.  */
31401 #include <sys/socket.h>
31402 int
31403 main ()
31404 {
31405 struct sockaddr s; s.sa_len;
31406   ;
31407   return 0;
31408 }
31409 _ACEOF
31410 rm -f conftest.$ac_objext
31411 if { (ac_try="$ac_compile"
31412 case "(($ac_try" in
31413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31414   *) ac_try_echo=$ac_try;;
31415 esac
31416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31417   (eval "$ac_compile") 2>conftest.er1
31418   ac_status=$?
31419   grep -v '^ *+' conftest.er1 >conftest.err
31420   rm -f conftest.er1
31421   cat conftest.err >&5
31422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31423   (exit $ac_status); } &&
31424          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31425   { (case "(($ac_try" in
31426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31427   *) ac_try_echo=$ac_try;;
31428 esac
31429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31430   (eval "$ac_try") 2>&5
31431   ac_status=$?
31432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31433   (exit $ac_status); }; } &&
31434          { ac_try='test -s conftest.$ac_objext'
31435   { (case "(($ac_try" in
31436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31437   *) ac_try_echo=$ac_try;;
31438 esac
31439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31440   (eval "$ac_try") 2>&5
31441   ac_status=$?
31442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31443   (exit $ac_status); }; }; then
31444   ac_cv_struct_sockaddr_sa_len=yes
31445 else
31446   echo "$as_me: failed program was:" >&5
31447 sed 's/^/| /' conftest.$ac_ext >&5
31448
31449         ac_cv_struct_sockaddr_sa_len=no
31450 fi
31451
31452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31453 fi
31454 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
31455 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
31456
31457  if test $ac_cv_struct_sockaddr_sa_len = yes; then
31458
31459 cat >>confdefs.h <<\_ACEOF
31460 #define HAVE_SA_LEN 1
31461 _ACEOF
31462
31463  fi
31464
31465
31466
31467
31468
31469 for ac_func in strftime
31470 do
31471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31472 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31474 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31475   echo $ECHO_N "(cached) $ECHO_C" >&6
31476 else
31477   cat >conftest.$ac_ext <<_ACEOF
31478 /* confdefs.h.  */
31479 _ACEOF
31480 cat confdefs.h >>conftest.$ac_ext
31481 cat >>conftest.$ac_ext <<_ACEOF
31482 /* end confdefs.h.  */
31483 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31484    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31485 #define $ac_func innocuous_$ac_func
31486
31487 /* System header to define __stub macros and hopefully few prototypes,
31488     which can conflict with char $ac_func (); below.
31489     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31490     <limits.h> exists even on freestanding compilers.  */
31491
31492 #ifdef __STDC__
31493 # include <limits.h>
31494 #else
31495 # include <assert.h>
31496 #endif
31497
31498 #undef $ac_func
31499
31500 /* Override any GCC internal prototype to avoid an error.
31501    Use char because int might match the return type of a GCC
31502    builtin and then its argument prototype would still apply.  */
31503 #ifdef __cplusplus
31504 extern "C"
31505 #endif
31506 char $ac_func ();
31507 /* The GNU C library defines this for functions which it implements
31508     to always fail with ENOSYS.  Some functions are actually named
31509     something starting with __ and the normal name is an alias.  */
31510 #if defined __stub_$ac_func || defined __stub___$ac_func
31511 choke me
31512 #endif
31513
31514 int
31515 main ()
31516 {
31517 return $ac_func ();
31518   ;
31519   return 0;
31520 }
31521 _ACEOF
31522 rm -f conftest.$ac_objext conftest$ac_exeext
31523 if { (ac_try="$ac_link"
31524 case "(($ac_try" in
31525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31526   *) ac_try_echo=$ac_try;;
31527 esac
31528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31529   (eval "$ac_link") 2>conftest.er1
31530   ac_status=$?
31531   grep -v '^ *+' conftest.er1 >conftest.err
31532   rm -f conftest.er1
31533   cat conftest.err >&5
31534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31535   (exit $ac_status); } &&
31536          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31537   { (case "(($ac_try" in
31538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31539   *) ac_try_echo=$ac_try;;
31540 esac
31541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31542   (eval "$ac_try") 2>&5
31543   ac_status=$?
31544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31545   (exit $ac_status); }; } &&
31546          { ac_try='test -s conftest$ac_exeext'
31547   { (case "(($ac_try" in
31548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31549   *) ac_try_echo=$ac_try;;
31550 esac
31551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31552   (eval "$ac_try") 2>&5
31553   ac_status=$?
31554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31555   (exit $ac_status); }; }; then
31556   eval "$as_ac_var=yes"
31557 else
31558   echo "$as_me: failed program was:" >&5
31559 sed 's/^/| /' conftest.$ac_ext >&5
31560
31561         eval "$as_ac_var=no"
31562 fi
31563
31564 rm -f core conftest.err conftest.$ac_objext \
31565       conftest$ac_exeext conftest.$ac_ext
31566 fi
31567 ac_res=`eval echo '${'$as_ac_var'}'`
31568                { echo "$as_me:$LINENO: result: $ac_res" >&5
31569 echo "${ECHO_T}$ac_res" >&6; }
31570 if test `eval echo '${'$as_ac_var'}'` = yes; then
31571   cat >>confdefs.h <<_ACEOF
31572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31573 _ACEOF
31574
31575 else
31576   # strftime is in -lintl on SCO UNIX.
31577 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
31578 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
31579 if test "${ac_cv_lib_intl_strftime+set}" = set; then
31580   echo $ECHO_N "(cached) $ECHO_C" >&6
31581 else
31582   ac_check_lib_save_LIBS=$LIBS
31583 LIBS="-lintl  $LIBS"
31584 cat >conftest.$ac_ext <<_ACEOF
31585 /* confdefs.h.  */
31586 _ACEOF
31587 cat confdefs.h >>conftest.$ac_ext
31588 cat >>conftest.$ac_ext <<_ACEOF
31589 /* end confdefs.h.  */
31590
31591 /* Override any GCC internal prototype to avoid an error.
31592    Use char because int might match the return type of a GCC
31593    builtin and then its argument prototype would still apply.  */
31594 #ifdef __cplusplus
31595 extern "C"
31596 #endif
31597 char strftime ();
31598 int
31599 main ()
31600 {
31601 return strftime ();
31602   ;
31603   return 0;
31604 }
31605 _ACEOF
31606 rm -f conftest.$ac_objext conftest$ac_exeext
31607 if { (ac_try="$ac_link"
31608 case "(($ac_try" in
31609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31610   *) ac_try_echo=$ac_try;;
31611 esac
31612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31613   (eval "$ac_link") 2>conftest.er1
31614   ac_status=$?
31615   grep -v '^ *+' conftest.er1 >conftest.err
31616   rm -f conftest.er1
31617   cat conftest.err >&5
31618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31619   (exit $ac_status); } &&
31620          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31621   { (case "(($ac_try" in
31622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31623   *) ac_try_echo=$ac_try;;
31624 esac
31625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31626   (eval "$ac_try") 2>&5
31627   ac_status=$?
31628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31629   (exit $ac_status); }; } &&
31630          { ac_try='test -s conftest$ac_exeext'
31631   { (case "(($ac_try" in
31632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31633   *) ac_try_echo=$ac_try;;
31634 esac
31635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31636   (eval "$ac_try") 2>&5
31637   ac_status=$?
31638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31639   (exit $ac_status); }; }; then
31640   ac_cv_lib_intl_strftime=yes
31641 else
31642   echo "$as_me: failed program was:" >&5
31643 sed 's/^/| /' conftest.$ac_ext >&5
31644
31645         ac_cv_lib_intl_strftime=no
31646 fi
31647
31648 rm -f core conftest.err conftest.$ac_objext \
31649       conftest$ac_exeext conftest.$ac_ext
31650 LIBS=$ac_check_lib_save_LIBS
31651 fi
31652 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
31653 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
31654 if test $ac_cv_lib_intl_strftime = yes; then
31655   cat >>confdefs.h <<\_ACEOF
31656 #define HAVE_STRFTIME 1
31657 _ACEOF
31658
31659 LIBS="-lintl $LIBS"
31660 fi
31661
31662 fi
31663 done
31664
31665
31666 for ac_func in vprintf
31667 do
31668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31669 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31671 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31672   echo $ECHO_N "(cached) $ECHO_C" >&6
31673 else
31674   cat >conftest.$ac_ext <<_ACEOF
31675 /* confdefs.h.  */
31676 _ACEOF
31677 cat confdefs.h >>conftest.$ac_ext
31678 cat >>conftest.$ac_ext <<_ACEOF
31679 /* end confdefs.h.  */
31680 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31681    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31682 #define $ac_func innocuous_$ac_func
31683
31684 /* System header to define __stub macros and hopefully few prototypes,
31685     which can conflict with char $ac_func (); below.
31686     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31687     <limits.h> exists even on freestanding compilers.  */
31688
31689 #ifdef __STDC__
31690 # include <limits.h>
31691 #else
31692 # include <assert.h>
31693 #endif
31694
31695 #undef $ac_func
31696
31697 /* Override any GCC internal prototype to avoid an error.
31698    Use char because int might match the return type of a GCC
31699    builtin and then its argument prototype would still apply.  */
31700 #ifdef __cplusplus
31701 extern "C"
31702 #endif
31703 char $ac_func ();
31704 /* The GNU C library defines this for functions which it implements
31705     to always fail with ENOSYS.  Some functions are actually named
31706     something starting with __ and the normal name is an alias.  */
31707 #if defined __stub_$ac_func || defined __stub___$ac_func
31708 choke me
31709 #endif
31710
31711 int
31712 main ()
31713 {
31714 return $ac_func ();
31715   ;
31716   return 0;
31717 }
31718 _ACEOF
31719 rm -f conftest.$ac_objext conftest$ac_exeext
31720 if { (ac_try="$ac_link"
31721 case "(($ac_try" in
31722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31723   *) ac_try_echo=$ac_try;;
31724 esac
31725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31726   (eval "$ac_link") 2>conftest.er1
31727   ac_status=$?
31728   grep -v '^ *+' conftest.er1 >conftest.err
31729   rm -f conftest.er1
31730   cat conftest.err >&5
31731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31732   (exit $ac_status); } &&
31733          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31734   { (case "(($ac_try" in
31735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31736   *) ac_try_echo=$ac_try;;
31737 esac
31738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31739   (eval "$ac_try") 2>&5
31740   ac_status=$?
31741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31742   (exit $ac_status); }; } &&
31743          { ac_try='test -s conftest$ac_exeext'
31744   { (case "(($ac_try" in
31745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31746   *) ac_try_echo=$ac_try;;
31747 esac
31748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31749   (eval "$ac_try") 2>&5
31750   ac_status=$?
31751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31752   (exit $ac_status); }; }; then
31753   eval "$as_ac_var=yes"
31754 else
31755   echo "$as_me: failed program was:" >&5
31756 sed 's/^/| /' conftest.$ac_ext >&5
31757
31758         eval "$as_ac_var=no"
31759 fi
31760
31761 rm -f core conftest.err conftest.$ac_objext \
31762       conftest$ac_exeext conftest.$ac_ext
31763 fi
31764 ac_res=`eval echo '${'$as_ac_var'}'`
31765                { echo "$as_me:$LINENO: result: $ac_res" >&5
31766 echo "${ECHO_T}$ac_res" >&6; }
31767 if test `eval echo '${'$as_ac_var'}'` = yes; then
31768   cat >>confdefs.h <<_ACEOF
31769 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31770 _ACEOF
31771
31772 { echo "$as_me:$LINENO: checking for _doprnt" >&5
31773 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
31774 if test "${ac_cv_func__doprnt+set}" = set; then
31775   echo $ECHO_N "(cached) $ECHO_C" >&6
31776 else
31777   cat >conftest.$ac_ext <<_ACEOF
31778 /* confdefs.h.  */
31779 _ACEOF
31780 cat confdefs.h >>conftest.$ac_ext
31781 cat >>conftest.$ac_ext <<_ACEOF
31782 /* end confdefs.h.  */
31783 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
31784    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31785 #define _doprnt innocuous__doprnt
31786
31787 /* System header to define __stub macros and hopefully few prototypes,
31788     which can conflict with char _doprnt (); below.
31789     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31790     <limits.h> exists even on freestanding compilers.  */
31791
31792 #ifdef __STDC__
31793 # include <limits.h>
31794 #else
31795 # include <assert.h>
31796 #endif
31797
31798 #undef _doprnt
31799
31800 /* Override any GCC internal prototype to avoid an error.
31801    Use char because int might match the return type of a GCC
31802    builtin and then its argument prototype would still apply.  */
31803 #ifdef __cplusplus
31804 extern "C"
31805 #endif
31806 char _doprnt ();
31807 /* The GNU C library defines this for functions which it implements
31808     to always fail with ENOSYS.  Some functions are actually named
31809     something starting with __ and the normal name is an alias.  */
31810 #if defined __stub__doprnt || defined __stub____doprnt
31811 choke me
31812 #endif
31813
31814 int
31815 main ()
31816 {
31817 return _doprnt ();
31818   ;
31819   return 0;
31820 }
31821 _ACEOF
31822 rm -f conftest.$ac_objext conftest$ac_exeext
31823 if { (ac_try="$ac_link"
31824 case "(($ac_try" in
31825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31826   *) ac_try_echo=$ac_try;;
31827 esac
31828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31829   (eval "$ac_link") 2>conftest.er1
31830   ac_status=$?
31831   grep -v '^ *+' conftest.er1 >conftest.err
31832   rm -f conftest.er1
31833   cat conftest.err >&5
31834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31835   (exit $ac_status); } &&
31836          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31837   { (case "(($ac_try" in
31838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31839   *) ac_try_echo=$ac_try;;
31840 esac
31841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31842   (eval "$ac_try") 2>&5
31843   ac_status=$?
31844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31845   (exit $ac_status); }; } &&
31846          { ac_try='test -s conftest$ac_exeext'
31847   { (case "(($ac_try" in
31848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31849   *) ac_try_echo=$ac_try;;
31850 esac
31851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31852   (eval "$ac_try") 2>&5
31853   ac_status=$?
31854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31855   (exit $ac_status); }; }; then
31856   ac_cv_func__doprnt=yes
31857 else
31858   echo "$as_me: failed program was:" >&5
31859 sed 's/^/| /' conftest.$ac_ext >&5
31860
31861         ac_cv_func__doprnt=no
31862 fi
31863
31864 rm -f core conftest.err conftest.$ac_objext \
31865       conftest$ac_exeext conftest.$ac_ext
31866 fi
31867 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
31868 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
31869 if test $ac_cv_func__doprnt = yes; then
31870
31871 cat >>confdefs.h <<\_ACEOF
31872 #define HAVE_DOPRNT 1
31873 _ACEOF
31874
31875 fi
31876
31877 fi
31878 done
31879
31880
31881 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
31882 # for constant arguments.  Useless!
31883 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
31884 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
31885 if test "${ac_cv_working_alloca_h+set}" = set; then
31886   echo $ECHO_N "(cached) $ECHO_C" >&6
31887 else
31888   cat >conftest.$ac_ext <<_ACEOF
31889 /* confdefs.h.  */
31890 _ACEOF
31891 cat confdefs.h >>conftest.$ac_ext
31892 cat >>conftest.$ac_ext <<_ACEOF
31893 /* end confdefs.h.  */
31894 #include <alloca.h>
31895 int
31896 main ()
31897 {
31898 char *p = (char *) alloca (2 * sizeof (int));
31899                           if (p) return 0;
31900   ;
31901   return 0;
31902 }
31903 _ACEOF
31904 rm -f conftest.$ac_objext conftest$ac_exeext
31905 if { (ac_try="$ac_link"
31906 case "(($ac_try" in
31907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31908   *) ac_try_echo=$ac_try;;
31909 esac
31910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31911   (eval "$ac_link") 2>conftest.er1
31912   ac_status=$?
31913   grep -v '^ *+' conftest.er1 >conftest.err
31914   rm -f conftest.er1
31915   cat conftest.err >&5
31916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31917   (exit $ac_status); } &&
31918          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
31919   { (case "(($ac_try" in
31920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31921   *) ac_try_echo=$ac_try;;
31922 esac
31923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31924   (eval "$ac_try") 2>&5
31925   ac_status=$?
31926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31927   (exit $ac_status); }; } &&
31928          { ac_try='test -s conftest$ac_exeext'
31929   { (case "(($ac_try" in
31930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31931   *) ac_try_echo=$ac_try;;
31932 esac
31933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31934   (eval "$ac_try") 2>&5
31935   ac_status=$?
31936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31937   (exit $ac_status); }; }; then
31938   ac_cv_working_alloca_h=yes
31939 else
31940   echo "$as_me: failed program was:" >&5
31941 sed 's/^/| /' conftest.$ac_ext >&5
31942
31943         ac_cv_working_alloca_h=no
31944 fi
31945
31946 rm -f core conftest.err conftest.$ac_objext \
31947       conftest$ac_exeext conftest.$ac_ext
31948 fi
31949 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
31950 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
31951 if test $ac_cv_working_alloca_h = yes; then
31952
31953 cat >>confdefs.h <<\_ACEOF
31954 #define HAVE_ALLOCA_H 1
31955 _ACEOF
31956
31957 fi
31958
31959 { echo "$as_me:$LINENO: checking for alloca" >&5
31960 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
31961 if test "${ac_cv_func_alloca_works+set}" = set; then
31962   echo $ECHO_N "(cached) $ECHO_C" >&6
31963 else
31964   cat >conftest.$ac_ext <<_ACEOF
31965 /* confdefs.h.  */
31966 _ACEOF
31967 cat confdefs.h >>conftest.$ac_ext
31968 cat >>conftest.$ac_ext <<_ACEOF
31969 /* end confdefs.h.  */
31970 #ifdef __GNUC__
31971 # define alloca __builtin_alloca
31972 #else
31973 # ifdef _MSC_VER
31974 #  include <malloc.h>
31975 #  define alloca _alloca
31976 # else
31977 #  if HAVE_ALLOCA_H
31978 #   include <alloca.h>
31979 #  else
31980 #   ifdef _AIX
31981  #pragma alloca
31982 #   else
31983 #    ifndef alloca /* predefined by HP cc +Olibcalls */
31984 char *alloca ();
31985 #    endif
31986 #   endif
31987 #  endif
31988 # endif
31989 #endif
31990
31991 int
31992 main ()
31993 {
31994 char *p = (char *) alloca (1);
31995                                     if (p) return 0;
31996   ;
31997   return 0;
31998 }
31999 _ACEOF
32000 rm -f conftest.$ac_objext conftest$ac_exeext
32001 if { (ac_try="$ac_link"
32002 case "(($ac_try" in
32003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32004   *) ac_try_echo=$ac_try;;
32005 esac
32006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32007   (eval "$ac_link") 2>conftest.er1
32008   ac_status=$?
32009   grep -v '^ *+' conftest.er1 >conftest.err
32010   rm -f conftest.er1
32011   cat conftest.err >&5
32012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32013   (exit $ac_status); } &&
32014          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32015   { (case "(($ac_try" in
32016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32017   *) ac_try_echo=$ac_try;;
32018 esac
32019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32020   (eval "$ac_try") 2>&5
32021   ac_status=$?
32022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32023   (exit $ac_status); }; } &&
32024          { ac_try='test -s conftest$ac_exeext'
32025   { (case "(($ac_try" in
32026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32027   *) ac_try_echo=$ac_try;;
32028 esac
32029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32030   (eval "$ac_try") 2>&5
32031   ac_status=$?
32032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32033   (exit $ac_status); }; }; then
32034   ac_cv_func_alloca_works=yes
32035 else
32036   echo "$as_me: failed program was:" >&5
32037 sed 's/^/| /' conftest.$ac_ext >&5
32038
32039         ac_cv_func_alloca_works=no
32040 fi
32041
32042 rm -f core conftest.err conftest.$ac_objext \
32043       conftest$ac_exeext conftest.$ac_ext
32044 fi
32045 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
32046 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
32047
32048 if test $ac_cv_func_alloca_works = yes; then
32049
32050 cat >>confdefs.h <<\_ACEOF
32051 #define HAVE_ALLOCA 1
32052 _ACEOF
32053
32054 else
32055   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
32056 # that cause trouble.  Some versions do not even contain alloca or
32057 # contain a buggy version.  If you still want to use their alloca,
32058 # use ar to extract alloca.o from them instead of compiling alloca.c.
32059
32060 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
32061
32062 cat >>confdefs.h <<\_ACEOF
32063 #define C_ALLOCA 1
32064 _ACEOF
32065
32066
32067 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
32068 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
32069 if test "${ac_cv_os_cray+set}" = set; then
32070   echo $ECHO_N "(cached) $ECHO_C" >&6
32071 else
32072   cat >conftest.$ac_ext <<_ACEOF
32073 /* confdefs.h.  */
32074 _ACEOF
32075 cat confdefs.h >>conftest.$ac_ext
32076 cat >>conftest.$ac_ext <<_ACEOF
32077 /* end confdefs.h.  */
32078 #if defined CRAY && ! defined CRAY2
32079 webecray
32080 #else
32081 wenotbecray
32082 #endif
32083
32084 _ACEOF
32085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32086   $EGREP "webecray" >/dev/null 2>&1; then
32087   ac_cv_os_cray=yes
32088 else
32089   ac_cv_os_cray=no
32090 fi
32091 rm -f conftest*
32092
32093 fi
32094 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
32095 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
32096 if test $ac_cv_os_cray = yes; then
32097   for ac_func in _getb67 GETB67 getb67; do
32098     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32099 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32101 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32102   echo $ECHO_N "(cached) $ECHO_C" >&6
32103 else
32104   cat >conftest.$ac_ext <<_ACEOF
32105 /* confdefs.h.  */
32106 _ACEOF
32107 cat confdefs.h >>conftest.$ac_ext
32108 cat >>conftest.$ac_ext <<_ACEOF
32109 /* end confdefs.h.  */
32110 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32111    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32112 #define $ac_func innocuous_$ac_func
32113
32114 /* System header to define __stub macros and hopefully few prototypes,
32115     which can conflict with char $ac_func (); below.
32116     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32117     <limits.h> exists even on freestanding compilers.  */
32118
32119 #ifdef __STDC__
32120 # include <limits.h>
32121 #else
32122 # include <assert.h>
32123 #endif
32124
32125 #undef $ac_func
32126
32127 /* Override any GCC internal prototype to avoid an error.
32128    Use char because int might match the return type of a GCC
32129    builtin and then its argument prototype would still apply.  */
32130 #ifdef __cplusplus
32131 extern "C"
32132 #endif
32133 char $ac_func ();
32134 /* The GNU C library defines this for functions which it implements
32135     to always fail with ENOSYS.  Some functions are actually named
32136     something starting with __ and the normal name is an alias.  */
32137 #if defined __stub_$ac_func || defined __stub___$ac_func
32138 choke me
32139 #endif
32140
32141 int
32142 main ()
32143 {
32144 return $ac_func ();
32145   ;
32146   return 0;
32147 }
32148 _ACEOF
32149 rm -f conftest.$ac_objext conftest$ac_exeext
32150 if { (ac_try="$ac_link"
32151 case "(($ac_try" in
32152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32153   *) ac_try_echo=$ac_try;;
32154 esac
32155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32156   (eval "$ac_link") 2>conftest.er1
32157   ac_status=$?
32158   grep -v '^ *+' conftest.er1 >conftest.err
32159   rm -f conftest.er1
32160   cat conftest.err >&5
32161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32162   (exit $ac_status); } &&
32163          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32164   { (case "(($ac_try" in
32165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32166   *) ac_try_echo=$ac_try;;
32167 esac
32168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32169   (eval "$ac_try") 2>&5
32170   ac_status=$?
32171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172   (exit $ac_status); }; } &&
32173          { ac_try='test -s conftest$ac_exeext'
32174   { (case "(($ac_try" in
32175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32176   *) ac_try_echo=$ac_try;;
32177 esac
32178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32179   (eval "$ac_try") 2>&5
32180   ac_status=$?
32181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32182   (exit $ac_status); }; }; then
32183   eval "$as_ac_var=yes"
32184 else
32185   echo "$as_me: failed program was:" >&5
32186 sed 's/^/| /' conftest.$ac_ext >&5
32187
32188         eval "$as_ac_var=no"
32189 fi
32190
32191 rm -f core conftest.err conftest.$ac_objext \
32192       conftest$ac_exeext conftest.$ac_ext
32193 fi
32194 ac_res=`eval echo '${'$as_ac_var'}'`
32195                { echo "$as_me:$LINENO: result: $ac_res" >&5
32196 echo "${ECHO_T}$ac_res" >&6; }
32197 if test `eval echo '${'$as_ac_var'}'` = yes; then
32198
32199 cat >>confdefs.h <<_ACEOF
32200 #define CRAY_STACKSEG_END $ac_func
32201 _ACEOF
32202
32203     break
32204 fi
32205
32206   done
32207 fi
32208
32209 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
32210 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
32211 if test "${ac_cv_c_stack_direction+set}" = set; then
32212   echo $ECHO_N "(cached) $ECHO_C" >&6
32213 else
32214   if test "$cross_compiling" = yes; then
32215   ac_cv_c_stack_direction=0
32216 else
32217   cat >conftest.$ac_ext <<_ACEOF
32218 /* confdefs.h.  */
32219 _ACEOF
32220 cat confdefs.h >>conftest.$ac_ext
32221 cat >>conftest.$ac_ext <<_ACEOF
32222 /* end confdefs.h.  */
32223 $ac_includes_default
32224 int
32225 find_stack_direction ()
32226 {
32227   static char *addr = 0;
32228   auto char dummy;
32229   if (addr == 0)
32230     {
32231       addr = &dummy;
32232       return find_stack_direction ();
32233     }
32234   else
32235     return (&dummy > addr) ? 1 : -1;
32236 }
32237
32238 int
32239 main ()
32240 {
32241   return find_stack_direction () < 0;
32242 }
32243 _ACEOF
32244 rm -f conftest$ac_exeext
32245 if { (ac_try="$ac_link"
32246 case "(($ac_try" in
32247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32248   *) ac_try_echo=$ac_try;;
32249 esac
32250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32251   (eval "$ac_link") 2>&5
32252   ac_status=$?
32253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32254   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32255   { (case "(($ac_try" in
32256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32257   *) ac_try_echo=$ac_try;;
32258 esac
32259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32260   (eval "$ac_try") 2>&5
32261   ac_status=$?
32262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32263   (exit $ac_status); }; }; then
32264   ac_cv_c_stack_direction=1
32265 else
32266   echo "$as_me: program exited with status $ac_status" >&5
32267 echo "$as_me: failed program was:" >&5
32268 sed 's/^/| /' conftest.$ac_ext >&5
32269
32270 ( exit $ac_status )
32271 ac_cv_c_stack_direction=-1
32272 fi
32273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32274 fi
32275
32276
32277 fi
32278 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
32279 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
32280
32281 cat >>confdefs.h <<_ACEOF
32282 #define STACK_DIRECTION $ac_cv_c_stack_direction
32283 _ACEOF
32284
32285
32286 fi
32287
32288 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
32289 # -lseq on Dynix/PTX, -lgen on Unixware.
32290 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
32291 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
32292 if test "${ac_cv_search_getmntent+set}" = set; then
32293   echo $ECHO_N "(cached) $ECHO_C" >&6
32294 else
32295   ac_func_search_save_LIBS=$LIBS
32296 cat >conftest.$ac_ext <<_ACEOF
32297 /* confdefs.h.  */
32298 _ACEOF
32299 cat confdefs.h >>conftest.$ac_ext
32300 cat >>conftest.$ac_ext <<_ACEOF
32301 /* end confdefs.h.  */
32302
32303 /* Override any GCC internal prototype to avoid an error.
32304    Use char because int might match the return type of a GCC
32305    builtin and then its argument prototype would still apply.  */
32306 #ifdef __cplusplus
32307 extern "C"
32308 #endif
32309 char getmntent ();
32310 int
32311 main ()
32312 {
32313 return getmntent ();
32314   ;
32315   return 0;
32316 }
32317 _ACEOF
32318 for ac_lib in '' sun seq gen; do
32319   if test -z "$ac_lib"; then
32320     ac_res="none required"
32321   else
32322     ac_res=-l$ac_lib
32323     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
32324   fi
32325   rm -f conftest.$ac_objext conftest$ac_exeext
32326 if { (ac_try="$ac_link"
32327 case "(($ac_try" in
32328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32329   *) ac_try_echo=$ac_try;;
32330 esac
32331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32332   (eval "$ac_link") 2>conftest.er1
32333   ac_status=$?
32334   grep -v '^ *+' conftest.er1 >conftest.err
32335   rm -f conftest.er1
32336   cat conftest.err >&5
32337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32338   (exit $ac_status); } &&
32339          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32340   { (case "(($ac_try" in
32341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32342   *) ac_try_echo=$ac_try;;
32343 esac
32344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32345   (eval "$ac_try") 2>&5
32346   ac_status=$?
32347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32348   (exit $ac_status); }; } &&
32349          { ac_try='test -s conftest$ac_exeext'
32350   { (case "(($ac_try" in
32351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32352   *) ac_try_echo=$ac_try;;
32353 esac
32354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32355   (eval "$ac_try") 2>&5
32356   ac_status=$?
32357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32358   (exit $ac_status); }; }; then
32359   ac_cv_search_getmntent=$ac_res
32360 else
32361   echo "$as_me: failed program was:" >&5
32362 sed 's/^/| /' conftest.$ac_ext >&5
32363
32364
32365 fi
32366
32367 rm -f core conftest.err conftest.$ac_objext \
32368       conftest$ac_exeext
32369   if test "${ac_cv_search_getmntent+set}" = set; then
32370   break
32371 fi
32372 done
32373 if test "${ac_cv_search_getmntent+set}" = set; then
32374   :
32375 else
32376   ac_cv_search_getmntent=no
32377 fi
32378 rm conftest.$ac_ext
32379 LIBS=$ac_func_search_save_LIBS
32380 fi
32381 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
32382 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
32383 ac_res=$ac_cv_search_getmntent
32384 if test "$ac_res" != no; then
32385   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
32386
32387 fi
32388
32389
32390 for ac_func in getmntent
32391 do
32392 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32393 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32394 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32395 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32396   echo $ECHO_N "(cached) $ECHO_C" >&6
32397 else
32398   cat >conftest.$ac_ext <<_ACEOF
32399 /* confdefs.h.  */
32400 _ACEOF
32401 cat confdefs.h >>conftest.$ac_ext
32402 cat >>conftest.$ac_ext <<_ACEOF
32403 /* end confdefs.h.  */
32404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32405    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32406 #define $ac_func innocuous_$ac_func
32407
32408 /* System header to define __stub macros and hopefully few prototypes,
32409     which can conflict with char $ac_func (); below.
32410     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32411     <limits.h> exists even on freestanding compilers.  */
32412
32413 #ifdef __STDC__
32414 # include <limits.h>
32415 #else
32416 # include <assert.h>
32417 #endif
32418
32419 #undef $ac_func
32420
32421 /* Override any GCC internal prototype to avoid an error.
32422    Use char because int might match the return type of a GCC
32423    builtin and then its argument prototype would still apply.  */
32424 #ifdef __cplusplus
32425 extern "C"
32426 #endif
32427 char $ac_func ();
32428 /* The GNU C library defines this for functions which it implements
32429     to always fail with ENOSYS.  Some functions are actually named
32430     something starting with __ and the normal name is an alias.  */
32431 #if defined __stub_$ac_func || defined __stub___$ac_func
32432 choke me
32433 #endif
32434
32435 int
32436 main ()
32437 {
32438 return $ac_func ();
32439   ;
32440   return 0;
32441 }
32442 _ACEOF
32443 rm -f conftest.$ac_objext conftest$ac_exeext
32444 if { (ac_try="$ac_link"
32445 case "(($ac_try" in
32446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32447   *) ac_try_echo=$ac_try;;
32448 esac
32449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32450   (eval "$ac_link") 2>conftest.er1
32451   ac_status=$?
32452   grep -v '^ *+' conftest.er1 >conftest.err
32453   rm -f conftest.er1
32454   cat conftest.err >&5
32455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32456   (exit $ac_status); } &&
32457          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32458   { (case "(($ac_try" in
32459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32460   *) ac_try_echo=$ac_try;;
32461 esac
32462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32463   (eval "$ac_try") 2>&5
32464   ac_status=$?
32465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32466   (exit $ac_status); }; } &&
32467          { ac_try='test -s conftest$ac_exeext'
32468   { (case "(($ac_try" in
32469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32470   *) ac_try_echo=$ac_try;;
32471 esac
32472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32473   (eval "$ac_try") 2>&5
32474   ac_status=$?
32475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32476   (exit $ac_status); }; }; then
32477   eval "$as_ac_var=yes"
32478 else
32479   echo "$as_me: failed program was:" >&5
32480 sed 's/^/| /' conftest.$ac_ext >&5
32481
32482         eval "$as_ac_var=no"
32483 fi
32484
32485 rm -f core conftest.err conftest.$ac_objext \
32486       conftest$ac_exeext conftest.$ac_ext
32487 fi
32488 ac_res=`eval echo '${'$as_ac_var'}'`
32489                { echo "$as_me:$LINENO: result: $ac_res" >&5
32490 echo "${ECHO_T}$ac_res" >&6; }
32491 if test `eval echo '${'$as_ac_var'}'` = yes; then
32492   cat >>confdefs.h <<_ACEOF
32493 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32494 _ACEOF
32495
32496 fi
32497 done
32498
32499
32500 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
32501 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
32502 if test "${ac_cv_func_closedir_void+set}" = set; then
32503   echo $ECHO_N "(cached) $ECHO_C" >&6
32504 else
32505   if test "$cross_compiling" = yes; then
32506   ac_cv_func_closedir_void=yes
32507 else
32508   cat >conftest.$ac_ext <<_ACEOF
32509 /* confdefs.h.  */
32510 _ACEOF
32511 cat confdefs.h >>conftest.$ac_ext
32512 cat >>conftest.$ac_ext <<_ACEOF
32513 /* end confdefs.h.  */
32514 $ac_includes_default
32515 #include <$ac_header_dirent>
32516 #ifndef __cplusplus
32517 int closedir ();
32518 #endif
32519
32520 int
32521 main ()
32522 {
32523 return closedir (opendir (".")) != 0;
32524   ;
32525   return 0;
32526 }
32527 _ACEOF
32528 rm -f conftest$ac_exeext
32529 if { (ac_try="$ac_link"
32530 case "(($ac_try" in
32531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32532   *) ac_try_echo=$ac_try;;
32533 esac
32534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32535   (eval "$ac_link") 2>&5
32536   ac_status=$?
32537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32538   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32539   { (case "(($ac_try" in
32540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32541   *) ac_try_echo=$ac_try;;
32542 esac
32543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32544   (eval "$ac_try") 2>&5
32545   ac_status=$?
32546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32547   (exit $ac_status); }; }; then
32548   ac_cv_func_closedir_void=no
32549 else
32550   echo "$as_me: program exited with status $ac_status" >&5
32551 echo "$as_me: failed program was:" >&5
32552 sed 's/^/| /' conftest.$ac_ext >&5
32553
32554 ( exit $ac_status )
32555 ac_cv_func_closedir_void=yes
32556 fi
32557 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32558 fi
32559
32560
32561 fi
32562 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
32563 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
32564 if test $ac_cv_func_closedir_void = yes; then
32565
32566 cat >>confdefs.h <<\_ACEOF
32567 #define CLOSEDIR_VOID 1
32568 _ACEOF
32569
32570 fi
32571
32572 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
32573 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
32574 if test "${ac_cv_func_setpgrp_void+set}" = set; then
32575   echo $ECHO_N "(cached) $ECHO_C" >&6
32576 else
32577   if test "$cross_compiling" = yes; then
32578   { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
32579 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
32580    { (exit 1); exit 1; }; }
32581 else
32582   cat >conftest.$ac_ext <<_ACEOF
32583 /* confdefs.h.  */
32584 _ACEOF
32585 cat confdefs.h >>conftest.$ac_ext
32586 cat >>conftest.$ac_ext <<_ACEOF
32587 /* end confdefs.h.  */
32588 $ac_includes_default
32589 int
32590 main ()
32591 {
32592 /* If this system has a BSD-style setpgrp which takes arguments,
32593   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
32594   exit successfully. */
32595   return setpgrp (1,1) != -1;
32596   ;
32597   return 0;
32598 }
32599 _ACEOF
32600 rm -f conftest$ac_exeext
32601 if { (ac_try="$ac_link"
32602 case "(($ac_try" in
32603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32604   *) ac_try_echo=$ac_try;;
32605 esac
32606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32607   (eval "$ac_link") 2>&5
32608   ac_status=$?
32609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32610   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32611   { (case "(($ac_try" in
32612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32613   *) ac_try_echo=$ac_try;;
32614 esac
32615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32616   (eval "$ac_try") 2>&5
32617   ac_status=$?
32618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32619   (exit $ac_status); }; }; then
32620   ac_cv_func_setpgrp_void=no
32621 else
32622   echo "$as_me: program exited with status $ac_status" >&5
32623 echo "$as_me: failed program was:" >&5
32624 sed 's/^/| /' conftest.$ac_ext >&5
32625
32626 ( exit $ac_status )
32627 ac_cv_func_setpgrp_void=yes
32628 fi
32629 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32630 fi
32631
32632
32633 fi
32634 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
32635 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
32636 if test $ac_cv_func_setpgrp_void = yes; then
32637
32638 cat >>confdefs.h <<\_ACEOF
32639 #define SETPGRP_VOID 1
32640 _ACEOF
32641
32642 fi
32643                       # AC_FUNC_FNMATCH    dnl use local version
32644
32645
32646 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
32647 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
32648 if test "${ac_cv_lib_intl_gettext+set}" = set; then
32649   echo $ECHO_N "(cached) $ECHO_C" >&6
32650 else
32651   ac_check_lib_save_LIBS=$LIBS
32652 LIBS="-lintl  $LIBS"
32653 cat >conftest.$ac_ext <<_ACEOF
32654 /* confdefs.h.  */
32655 _ACEOF
32656 cat confdefs.h >>conftest.$ac_ext
32657 cat >>conftest.$ac_ext <<_ACEOF
32658 /* end confdefs.h.  */
32659
32660 /* Override any GCC internal prototype to avoid an error.
32661    Use char because int might match the return type of a GCC
32662    builtin and then its argument prototype would still apply.  */
32663 #ifdef __cplusplus
32664 extern "C"
32665 #endif
32666 char gettext ();
32667 int
32668 main ()
32669 {
32670 return gettext ();
32671   ;
32672   return 0;
32673 }
32674 _ACEOF
32675 rm -f conftest.$ac_objext conftest$ac_exeext
32676 if { (ac_try="$ac_link"
32677 case "(($ac_try" in
32678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32679   *) ac_try_echo=$ac_try;;
32680 esac
32681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32682   (eval "$ac_link") 2>conftest.er1
32683   ac_status=$?
32684   grep -v '^ *+' conftest.er1 >conftest.err
32685   rm -f conftest.er1
32686   cat conftest.err >&5
32687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32688   (exit $ac_status); } &&
32689          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32690   { (case "(($ac_try" in
32691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32692   *) ac_try_echo=$ac_try;;
32693 esac
32694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32695   (eval "$ac_try") 2>&5
32696   ac_status=$?
32697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32698   (exit $ac_status); }; } &&
32699          { ac_try='test -s conftest$ac_exeext'
32700   { (case "(($ac_try" in
32701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32702   *) ac_try_echo=$ac_try;;
32703 esac
32704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32705   (eval "$ac_try") 2>&5
32706   ac_status=$?
32707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32708   (exit $ac_status); }; }; then
32709   ac_cv_lib_intl_gettext=yes
32710 else
32711   echo "$as_me: failed program was:" >&5
32712 sed 's/^/| /' conftest.$ac_ext >&5
32713
32714         ac_cv_lib_intl_gettext=no
32715 fi
32716
32717 rm -f core conftest.err conftest.$ac_objext \
32718       conftest$ac_exeext conftest.$ac_ext
32719 LIBS=$ac_check_lib_save_LIBS
32720 fi
32721 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
32722 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
32723 if test $ac_cv_lib_intl_gettext = yes; then
32724   LIBS="$LIBS -lintl"
32725 fi
32726
32727
32728
32729
32730 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
32731 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
32732 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
32733   echo $ECHO_N "(cached) $ECHO_C" >&6
32734 else
32735   ac_check_lib_save_LIBS=$LIBS
32736 LIBS="-lsun  $LIBS"
32737 cat >conftest.$ac_ext <<_ACEOF
32738 /* confdefs.h.  */
32739 _ACEOF
32740 cat confdefs.h >>conftest.$ac_ext
32741 cat >>conftest.$ac_ext <<_ACEOF
32742 /* end confdefs.h.  */
32743
32744 /* Override any GCC internal prototype to avoid an error.
32745    Use char because int might match the return type of a GCC
32746    builtin and then its argument prototype would still apply.  */
32747 #ifdef __cplusplus
32748 extern "C"
32749 #endif
32750 char getpwnam ();
32751 int
32752 main ()
32753 {
32754 return getpwnam ();
32755   ;
32756   return 0;
32757 }
32758 _ACEOF
32759 rm -f conftest.$ac_objext conftest$ac_exeext
32760 if { (ac_try="$ac_link"
32761 case "(($ac_try" in
32762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32763   *) ac_try_echo=$ac_try;;
32764 esac
32765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32766   (eval "$ac_link") 2>conftest.er1
32767   ac_status=$?
32768   grep -v '^ *+' conftest.er1 >conftest.err
32769   rm -f conftest.er1
32770   cat conftest.err >&5
32771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32772   (exit $ac_status); } &&
32773          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32774   { (case "(($ac_try" in
32775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32776   *) ac_try_echo=$ac_try;;
32777 esac
32778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32779   (eval "$ac_try") 2>&5
32780   ac_status=$?
32781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32782   (exit $ac_status); }; } &&
32783          { ac_try='test -s conftest$ac_exeext'
32784   { (case "(($ac_try" in
32785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32786   *) ac_try_echo=$ac_try;;
32787 esac
32788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32789   (eval "$ac_try") 2>&5
32790   ac_status=$?
32791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32792   (exit $ac_status); }; }; then
32793   ac_cv_lib_sun_getpwnam=yes
32794 else
32795   echo "$as_me: failed program was:" >&5
32796 sed 's/^/| /' conftest.$ac_ext >&5
32797
32798         ac_cv_lib_sun_getpwnam=no
32799 fi
32800
32801 rm -f core conftest.err conftest.$ac_objext \
32802       conftest$ac_exeext conftest.$ac_ext
32803 LIBS=$ac_check_lib_save_LIBS
32804 fi
32805 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
32806 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
32807 if test $ac_cv_lib_sun_getpwnam = yes; then
32808   cat >>confdefs.h <<_ACEOF
32809 #define HAVE_LIBSUN 1
32810 _ACEOF
32811
32812   LIBS="-lsun $LIBS"
32813
32814 fi
32815
32816
32817
32818 for ac_header in zlib.h
32819 do
32820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
32821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32822   { echo "$as_me:$LINENO: checking for $ac_header" >&5
32823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32825   echo $ECHO_N "(cached) $ECHO_C" >&6
32826 fi
32827 ac_res=`eval echo '${'$as_ac_Header'}'`
32828                { echo "$as_me:$LINENO: result: $ac_res" >&5
32829 echo "${ECHO_T}$ac_res" >&6; }
32830 else
32831   # Is the header compilable?
32832 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
32833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
32834 cat >conftest.$ac_ext <<_ACEOF
32835 /* confdefs.h.  */
32836 _ACEOF
32837 cat confdefs.h >>conftest.$ac_ext
32838 cat >>conftest.$ac_ext <<_ACEOF
32839 /* end confdefs.h.  */
32840 $ac_includes_default
32841 #include <$ac_header>
32842 _ACEOF
32843 rm -f conftest.$ac_objext
32844 if { (ac_try="$ac_compile"
32845 case "(($ac_try" in
32846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32847   *) ac_try_echo=$ac_try;;
32848 esac
32849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32850   (eval "$ac_compile") 2>conftest.er1
32851   ac_status=$?
32852   grep -v '^ *+' conftest.er1 >conftest.err
32853   rm -f conftest.er1
32854   cat conftest.err >&5
32855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32856   (exit $ac_status); } &&
32857          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
32858   { (case "(($ac_try" in
32859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32860   *) ac_try_echo=$ac_try;;
32861 esac
32862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32863   (eval "$ac_try") 2>&5
32864   ac_status=$?
32865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32866   (exit $ac_status); }; } &&
32867          { ac_try='test -s conftest.$ac_objext'
32868   { (case "(($ac_try" in
32869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32870   *) ac_try_echo=$ac_try;;
32871 esac
32872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32873   (eval "$ac_try") 2>&5
32874   ac_status=$?
32875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32876   (exit $ac_status); }; }; then
32877   ac_header_compiler=yes
32878 else
32879   echo "$as_me: failed program was:" >&5
32880 sed 's/^/| /' conftest.$ac_ext >&5
32881
32882         ac_header_compiler=no
32883 fi
32884
32885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32887 echo "${ECHO_T}$ac_header_compiler" >&6; }
32888
32889 # Is the header present?
32890 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
32891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
32892 cat >conftest.$ac_ext <<_ACEOF
32893 /* confdefs.h.  */
32894 _ACEOF
32895 cat confdefs.h >>conftest.$ac_ext
32896 cat >>conftest.$ac_ext <<_ACEOF
32897 /* end confdefs.h.  */
32898 #include <$ac_header>
32899 _ACEOF
32900 if { (ac_try="$ac_cpp conftest.$ac_ext"
32901 case "(($ac_try" in
32902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32903   *) ac_try_echo=$ac_try;;
32904 esac
32905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32906   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32907   ac_status=$?
32908   grep -v '^ *+' conftest.er1 >conftest.err
32909   rm -f conftest.er1
32910   cat conftest.err >&5
32911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32912   (exit $ac_status); } >/dev/null; then
32913   if test -s conftest.err; then
32914     ac_cpp_err=$ac_c_preproc_warn_flag
32915     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32916   else
32917     ac_cpp_err=
32918   fi
32919 else
32920   ac_cpp_err=yes
32921 fi
32922 if test -z "$ac_cpp_err"; then
32923   ac_header_preproc=yes
32924 else
32925   echo "$as_me: failed program was:" >&5
32926 sed 's/^/| /' conftest.$ac_ext >&5
32927
32928   ac_header_preproc=no
32929 fi
32930
32931 rm -f conftest.err conftest.$ac_ext
32932 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32933 echo "${ECHO_T}$ac_header_preproc" >&6; }
32934
32935 # So?  What about this header?
32936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32937   yes:no: )
32938     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
32939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
32940     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
32941 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
32942     ac_header_preproc=yes
32943     ;;
32944   no:yes:* )
32945     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
32946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
32947     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
32948 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
32949     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
32950 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
32951     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
32952 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
32953     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
32954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
32955     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
32956 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
32957
32958     ;;
32959 esac
32960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32963   echo $ECHO_N "(cached) $ECHO_C" >&6
32964 else
32965   eval "$as_ac_Header=\$ac_header_preproc"
32966 fi
32967 ac_res=`eval echo '${'$as_ac_Header'}'`
32968                { echo "$as_me:$LINENO: result: $ac_res" >&5
32969 echo "${ECHO_T}$ac_res" >&6; }
32970
32971 fi
32972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32973   cat >>confdefs.h <<_ACEOF
32974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32975 _ACEOF
32976
32977 fi
32978
32979 done
32980
32981 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
32982 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
32983 if test "${ac_cv_lib_z_deflate+set}" = set; then
32984   echo $ECHO_N "(cached) $ECHO_C" >&6
32985 else
32986   ac_check_lib_save_LIBS=$LIBS
32987 LIBS="-lz  $LIBS"
32988 cat >conftest.$ac_ext <<_ACEOF
32989 /* confdefs.h.  */
32990 _ACEOF
32991 cat confdefs.h >>conftest.$ac_ext
32992 cat >>conftest.$ac_ext <<_ACEOF
32993 /* end confdefs.h.  */
32994
32995 /* Override any GCC internal prototype to avoid an error.
32996    Use char because int might match the return type of a GCC
32997    builtin and then its argument prototype would still apply.  */
32998 #ifdef __cplusplus
32999 extern "C"
33000 #endif
33001 char deflate ();
33002 int
33003 main ()
33004 {
33005 return deflate ();
33006   ;
33007   return 0;
33008 }
33009 _ACEOF
33010 rm -f conftest.$ac_objext conftest$ac_exeext
33011 if { (ac_try="$ac_link"
33012 case "(($ac_try" in
33013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33014   *) ac_try_echo=$ac_try;;
33015 esac
33016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33017   (eval "$ac_link") 2>conftest.er1
33018   ac_status=$?
33019   grep -v '^ *+' conftest.er1 >conftest.err
33020   rm -f conftest.er1
33021   cat conftest.err >&5
33022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33023   (exit $ac_status); } &&
33024          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33025   { (case "(($ac_try" in
33026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33027   *) ac_try_echo=$ac_try;;
33028 esac
33029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33030   (eval "$ac_try") 2>&5
33031   ac_status=$?
33032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33033   (exit $ac_status); }; } &&
33034          { ac_try='test -s conftest$ac_exeext'
33035   { (case "(($ac_try" in
33036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33037   *) ac_try_echo=$ac_try;;
33038 esac
33039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33040   (eval "$ac_try") 2>&5
33041   ac_status=$?
33042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33043   (exit $ac_status); }; }; then
33044   ac_cv_lib_z_deflate=yes
33045 else
33046   echo "$as_me: failed program was:" >&5
33047 sed 's/^/| /' conftest.$ac_ext >&5
33048
33049         ac_cv_lib_z_deflate=no
33050 fi
33051
33052 rm -f core conftest.err conftest.$ac_objext \
33053       conftest$ac_exeext conftest.$ac_ext
33054 LIBS=$ac_check_lib_save_LIBS
33055 fi
33056 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
33057 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
33058 if test $ac_cv_lib_z_deflate = yes; then
33059   FDLIBS="-lz"
33060 fi
33061
33062 have_zlib=no
33063 if test x$FDLIBS = x-lz; then
33064   cat >>confdefs.h <<\_ACEOF
33065 #define HAVE_LIBZ 1
33066 _ACEOF
33067
33068   have_zlib=yes
33069 fi
33070
33071 #
33072 # Check for ACL libraries
33073 #
33074 have_acl=no
33075 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33076   { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
33077 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
33078 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33079   echo $ECHO_N "(cached) $ECHO_C" >&6
33080 fi
33081 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
33082 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
33083 else
33084   # Is the header compilable?
33085 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
33086 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
33087 cat >conftest.$ac_ext <<_ACEOF
33088 /* confdefs.h.  */
33089 _ACEOF
33090 cat confdefs.h >>conftest.$ac_ext
33091 cat >>conftest.$ac_ext <<_ACEOF
33092 /* end confdefs.h.  */
33093 $ac_includes_default
33094 #include <sys/acl.h>
33095 _ACEOF
33096 rm -f conftest.$ac_objext
33097 if { (ac_try="$ac_compile"
33098 case "(($ac_try" in
33099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33100   *) ac_try_echo=$ac_try;;
33101 esac
33102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33103   (eval "$ac_compile") 2>conftest.er1
33104   ac_status=$?
33105   grep -v '^ *+' conftest.er1 >conftest.err
33106   rm -f conftest.er1
33107   cat conftest.err >&5
33108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33109   (exit $ac_status); } &&
33110          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33111   { (case "(($ac_try" in
33112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33113   *) ac_try_echo=$ac_try;;
33114 esac
33115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33116   (eval "$ac_try") 2>&5
33117   ac_status=$?
33118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33119   (exit $ac_status); }; } &&
33120          { ac_try='test -s conftest.$ac_objext'
33121   { (case "(($ac_try" in
33122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33123   *) ac_try_echo=$ac_try;;
33124 esac
33125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33126   (eval "$ac_try") 2>&5
33127   ac_status=$?
33128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33129   (exit $ac_status); }; }; then
33130   ac_header_compiler=yes
33131 else
33132   echo "$as_me: failed program was:" >&5
33133 sed 's/^/| /' conftest.$ac_ext >&5
33134
33135         ac_header_compiler=no
33136 fi
33137
33138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33139 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33140 echo "${ECHO_T}$ac_header_compiler" >&6; }
33141
33142 # Is the header present?
33143 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
33144 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
33145 cat >conftest.$ac_ext <<_ACEOF
33146 /* confdefs.h.  */
33147 _ACEOF
33148 cat confdefs.h >>conftest.$ac_ext
33149 cat >>conftest.$ac_ext <<_ACEOF
33150 /* end confdefs.h.  */
33151 #include <sys/acl.h>
33152 _ACEOF
33153 if { (ac_try="$ac_cpp conftest.$ac_ext"
33154 case "(($ac_try" in
33155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33156   *) ac_try_echo=$ac_try;;
33157 esac
33158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33159   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33160   ac_status=$?
33161   grep -v '^ *+' conftest.er1 >conftest.err
33162   rm -f conftest.er1
33163   cat conftest.err >&5
33164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33165   (exit $ac_status); } >/dev/null; then
33166   if test -s conftest.err; then
33167     ac_cpp_err=$ac_c_preproc_warn_flag
33168     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33169   else
33170     ac_cpp_err=
33171   fi
33172 else
33173   ac_cpp_err=yes
33174 fi
33175 if test -z "$ac_cpp_err"; then
33176   ac_header_preproc=yes
33177 else
33178   echo "$as_me: failed program was:" >&5
33179 sed 's/^/| /' conftest.$ac_ext >&5
33180
33181   ac_header_preproc=no
33182 fi
33183
33184 rm -f conftest.err conftest.$ac_ext
33185 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33186 echo "${ECHO_T}$ac_header_preproc" >&6; }
33187
33188 # So?  What about this header?
33189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33190   yes:no: )
33191     { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
33192 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33193     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
33194 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
33195     ac_header_preproc=yes
33196     ;;
33197   no:yes:* )
33198     { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
33199 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
33200     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&5
33201 echo "$as_me: WARNING: sys/acl.h:     check for missing prerequisite headers?" >&2;}
33202     { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
33203 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
33204     { echo "$as_me:$LINENO: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&5
33205 echo "$as_me: WARNING: sys/acl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
33206     { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
33207 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
33208     { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
33209 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
33210
33211     ;;
33212 esac
33213 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
33214 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
33215 if test "${ac_cv_header_sys_acl_h+set}" = set; then
33216   echo $ECHO_N "(cached) $ECHO_C" >&6
33217 else
33218   ac_cv_header_sys_acl_h=$ac_header_preproc
33219 fi
33220 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
33221 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
33222
33223 fi
33224
33225
33226 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
33227 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
33228 if test "${ac_cv_func_acl_get_file+set}" = set; then
33229   echo $ECHO_N "(cached) $ECHO_C" >&6
33230 else
33231   cat >conftest.$ac_ext <<_ACEOF
33232 /* confdefs.h.  */
33233 _ACEOF
33234 cat confdefs.h >>conftest.$ac_ext
33235 cat >>conftest.$ac_ext <<_ACEOF
33236 /* end confdefs.h.  */
33237 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
33238    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33239 #define acl_get_file innocuous_acl_get_file
33240
33241 /* System header to define __stub macros and hopefully few prototypes,
33242     which can conflict with char acl_get_file (); below.
33243     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33244     <limits.h> exists even on freestanding compilers.  */
33245
33246 #ifdef __STDC__
33247 # include <limits.h>
33248 #else
33249 # include <assert.h>
33250 #endif
33251
33252 #undef acl_get_file
33253
33254 /* Override any GCC internal prototype to avoid an error.
33255    Use char because int might match the return type of a GCC
33256    builtin and then its argument prototype would still apply.  */
33257 #ifdef __cplusplus
33258 extern "C"
33259 #endif
33260 char acl_get_file ();
33261 /* The GNU C library defines this for functions which it implements
33262     to always fail with ENOSYS.  Some functions are actually named
33263     something starting with __ and the normal name is an alias.  */
33264 #if defined __stub_acl_get_file || defined __stub___acl_get_file
33265 choke me
33266 #endif
33267
33268 int
33269 main ()
33270 {
33271 return acl_get_file ();
33272   ;
33273   return 0;
33274 }
33275 _ACEOF
33276 rm -f conftest.$ac_objext conftest$ac_exeext
33277 if { (ac_try="$ac_link"
33278 case "(($ac_try" in
33279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33280   *) ac_try_echo=$ac_try;;
33281 esac
33282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33283   (eval "$ac_link") 2>conftest.er1
33284   ac_status=$?
33285   grep -v '^ *+' conftest.er1 >conftest.err
33286   rm -f conftest.er1
33287   cat conftest.err >&5
33288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33289   (exit $ac_status); } &&
33290          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33291   { (case "(($ac_try" in
33292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33293   *) ac_try_echo=$ac_try;;
33294 esac
33295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33296   (eval "$ac_try") 2>&5
33297   ac_status=$?
33298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33299   (exit $ac_status); }; } &&
33300          { ac_try='test -s conftest$ac_exeext'
33301   { (case "(($ac_try" in
33302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33303   *) ac_try_echo=$ac_try;;
33304 esac
33305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33306   (eval "$ac_try") 2>&5
33307   ac_status=$?
33308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33309   (exit $ac_status); }; }; then
33310   ac_cv_func_acl_get_file=yes
33311 else
33312   echo "$as_me: failed program was:" >&5
33313 sed 's/^/| /' conftest.$ac_ext >&5
33314
33315         ac_cv_func_acl_get_file=no
33316 fi
33317
33318 rm -f core conftest.err conftest.$ac_objext \
33319       conftest$ac_exeext conftest.$ac_ext
33320 fi
33321 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
33322 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
33323 if test $ac_cv_func_acl_get_file = yes; then
33324   have_acl=yes
33325 else
33326   { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
33327 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
33328 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
33329   echo $ECHO_N "(cached) $ECHO_C" >&6
33330 else
33331   ac_check_lib_save_LIBS=$LIBS
33332 LIBS="-lacl  $LIBS"
33333 cat >conftest.$ac_ext <<_ACEOF
33334 /* confdefs.h.  */
33335 _ACEOF
33336 cat confdefs.h >>conftest.$ac_ext
33337 cat >>conftest.$ac_ext <<_ACEOF
33338 /* end confdefs.h.  */
33339
33340 /* Override any GCC internal prototype to avoid an error.
33341    Use char because int might match the return type of a GCC
33342    builtin and then its argument prototype would still apply.  */
33343 #ifdef __cplusplus
33344 extern "C"
33345 #endif
33346 char acl_get_file ();
33347 int
33348 main ()
33349 {
33350 return acl_get_file ();
33351   ;
33352   return 0;
33353 }
33354 _ACEOF
33355 rm -f conftest.$ac_objext conftest$ac_exeext
33356 if { (ac_try="$ac_link"
33357 case "(($ac_try" in
33358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33359   *) ac_try_echo=$ac_try;;
33360 esac
33361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33362   (eval "$ac_link") 2>conftest.er1
33363   ac_status=$?
33364   grep -v '^ *+' conftest.er1 >conftest.err
33365   rm -f conftest.er1
33366   cat conftest.err >&5
33367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33368   (exit $ac_status); } &&
33369          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33370   { (case "(($ac_try" in
33371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33372   *) ac_try_echo=$ac_try;;
33373 esac
33374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33375   (eval "$ac_try") 2>&5
33376   ac_status=$?
33377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33378   (exit $ac_status); }; } &&
33379          { ac_try='test -s conftest$ac_exeext'
33380   { (case "(($ac_try" in
33381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33382   *) ac_try_echo=$ac_try;;
33383 esac
33384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33385   (eval "$ac_try") 2>&5
33386   ac_status=$?
33387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33388   (exit $ac_status); }; }; then
33389   ac_cv_lib_acl_acl_get_file=yes
33390 else
33391   echo "$as_me: failed program was:" >&5
33392 sed 's/^/| /' conftest.$ac_ext >&5
33393
33394         ac_cv_lib_acl_acl_get_file=no
33395 fi
33396
33397 rm -f core conftest.err conftest.$ac_objext \
33398       conftest$ac_exeext conftest.$ac_ext
33399 LIBS=$ac_check_lib_save_LIBS
33400 fi
33401 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
33402 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
33403 if test $ac_cv_lib_acl_acl_get_file = yes; then
33404   have_acl=yes; FDLIBS="-lacl $FDLIBS"
33405 else
33406   { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
33407 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
33408 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
33409   echo $ECHO_N "(cached) $ECHO_C" >&6
33410 else
33411   ac_check_lib_save_LIBS=$LIBS
33412 LIBS="-lsec  $LIBS"
33413 cat >conftest.$ac_ext <<_ACEOF
33414 /* confdefs.h.  */
33415 _ACEOF
33416 cat confdefs.h >>conftest.$ac_ext
33417 cat >>conftest.$ac_ext <<_ACEOF
33418 /* end confdefs.h.  */
33419
33420 /* Override any GCC internal prototype to avoid an error.
33421    Use char because int might match the return type of a GCC
33422    builtin and then its argument prototype would still apply.  */
33423 #ifdef __cplusplus
33424 extern "C"
33425 #endif
33426 char acltotext ();
33427 int
33428 main ()
33429 {
33430 return acltotext ();
33431   ;
33432   return 0;
33433 }
33434 _ACEOF
33435 rm -f conftest.$ac_objext conftest$ac_exeext
33436 if { (ac_try="$ac_link"
33437 case "(($ac_try" in
33438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33439   *) ac_try_echo=$ac_try;;
33440 esac
33441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33442   (eval "$ac_link") 2>conftest.er1
33443   ac_status=$?
33444   grep -v '^ *+' conftest.er1 >conftest.err
33445   rm -f conftest.er1
33446   cat conftest.err >&5
33447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33448   (exit $ac_status); } &&
33449          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33450   { (case "(($ac_try" in
33451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33452   *) ac_try_echo=$ac_try;;
33453 esac
33454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33455   (eval "$ac_try") 2>&5
33456   ac_status=$?
33457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33458   (exit $ac_status); }; } &&
33459          { ac_try='test -s conftest$ac_exeext'
33460   { (case "(($ac_try" in
33461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33462   *) ac_try_echo=$ac_try;;
33463 esac
33464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33465   (eval "$ac_try") 2>&5
33466   ac_status=$?
33467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33468   (exit $ac_status); }; }; then
33469   ac_cv_lib_sec_acltotext=yes
33470 else
33471   echo "$as_me: failed program was:" >&5
33472 sed 's/^/| /' conftest.$ac_ext >&5
33473
33474         ac_cv_lib_sec_acltotext=no
33475 fi
33476
33477 rm -f core conftest.err conftest.$ac_objext \
33478       conftest$ac_exeext conftest.$ac_ext
33479 LIBS=$ac_check_lib_save_LIBS
33480 fi
33481 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
33482 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
33483 if test $ac_cv_lib_sec_acltotext = yes; then
33484   have_acl=yes; FDLIBS="-lsec $FDLIBS"
33485 fi
33486
33487
33488 fi
33489
33490
33491 fi
33492
33493 if test $have_acl = yes; then
33494    cat >>confdefs.h <<\_ACEOF
33495 #define HAVE_ACL 1
33496 _ACEOF
33497
33498 fi
33499
33500 PTHREAD_LIB=""
33501 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
33502 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
33503 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
33504   echo $ECHO_N "(cached) $ECHO_C" >&6
33505 else
33506   ac_check_lib_save_LIBS=$LIBS
33507 LIBS="-lpthread  $LIBS"
33508 cat >conftest.$ac_ext <<_ACEOF
33509 /* confdefs.h.  */
33510 _ACEOF
33511 cat confdefs.h >>conftest.$ac_ext
33512 cat >>conftest.$ac_ext <<_ACEOF
33513 /* end confdefs.h.  */
33514
33515 /* Override any GCC internal prototype to avoid an error.
33516    Use char because int might match the return type of a GCC
33517    builtin and then its argument prototype would still apply.  */
33518 #ifdef __cplusplus
33519 extern "C"
33520 #endif
33521 char pthread_create ();
33522 int
33523 main ()
33524 {
33525 return pthread_create ();
33526   ;
33527   return 0;
33528 }
33529 _ACEOF
33530 rm -f conftest.$ac_objext conftest$ac_exeext
33531 if { (ac_try="$ac_link"
33532 case "(($ac_try" in
33533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33534   *) ac_try_echo=$ac_try;;
33535 esac
33536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33537   (eval "$ac_link") 2>conftest.er1
33538   ac_status=$?
33539   grep -v '^ *+' conftest.er1 >conftest.err
33540   rm -f conftest.er1
33541   cat conftest.err >&5
33542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33543   (exit $ac_status); } &&
33544          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33545   { (case "(($ac_try" in
33546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33547   *) ac_try_echo=$ac_try;;
33548 esac
33549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33550   (eval "$ac_try") 2>&5
33551   ac_status=$?
33552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33553   (exit $ac_status); }; } &&
33554          { ac_try='test -s conftest$ac_exeext'
33555   { (case "(($ac_try" in
33556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33557   *) ac_try_echo=$ac_try;;
33558 esac
33559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33560   (eval "$ac_try") 2>&5
33561   ac_status=$?
33562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33563   (exit $ac_status); }; }; then
33564   ac_cv_lib_pthread_pthread_create=yes
33565 else
33566   echo "$as_me: failed program was:" >&5
33567 sed 's/^/| /' conftest.$ac_ext >&5
33568
33569         ac_cv_lib_pthread_pthread_create=no
33570 fi
33571
33572 rm -f core conftest.err conftest.$ac_objext \
33573       conftest$ac_exeext conftest.$ac_ext
33574 LIBS=$ac_check_lib_save_LIBS
33575 fi
33576 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
33577 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
33578 if test $ac_cv_lib_pthread_pthread_create = yes; then
33579   PTHREAD_LIB="-lpthread"
33580 else
33581   { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
33582 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
33583 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
33584   echo $ECHO_N "(cached) $ECHO_C" >&6
33585 else
33586   ac_check_lib_save_LIBS=$LIBS
33587 LIBS="-lpthreads  $LIBS"
33588 cat >conftest.$ac_ext <<_ACEOF
33589 /* confdefs.h.  */
33590 _ACEOF
33591 cat confdefs.h >>conftest.$ac_ext
33592 cat >>conftest.$ac_ext <<_ACEOF
33593 /* end confdefs.h.  */
33594
33595 /* Override any GCC internal prototype to avoid an error.
33596    Use char because int might match the return type of a GCC
33597    builtin and then its argument prototype would still apply.  */
33598 #ifdef __cplusplus
33599 extern "C"
33600 #endif
33601 char pthread_create ();
33602 int
33603 main ()
33604 {
33605 return pthread_create ();
33606   ;
33607   return 0;
33608 }
33609 _ACEOF
33610 rm -f conftest.$ac_objext conftest$ac_exeext
33611 if { (ac_try="$ac_link"
33612 case "(($ac_try" in
33613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33614   *) ac_try_echo=$ac_try;;
33615 esac
33616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33617   (eval "$ac_link") 2>conftest.er1
33618   ac_status=$?
33619   grep -v '^ *+' conftest.er1 >conftest.err
33620   rm -f conftest.er1
33621   cat conftest.err >&5
33622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33623   (exit $ac_status); } &&
33624          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33625   { (case "(($ac_try" in
33626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33627   *) ac_try_echo=$ac_try;;
33628 esac
33629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33630   (eval "$ac_try") 2>&5
33631   ac_status=$?
33632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33633   (exit $ac_status); }; } &&
33634          { ac_try='test -s conftest$ac_exeext'
33635   { (case "(($ac_try" in
33636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33637   *) ac_try_echo=$ac_try;;
33638 esac
33639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33640   (eval "$ac_try") 2>&5
33641   ac_status=$?
33642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33643   (exit $ac_status); }; }; then
33644   ac_cv_lib_pthreads_pthread_create=yes
33645 else
33646   echo "$as_me: failed program was:" >&5
33647 sed 's/^/| /' conftest.$ac_ext >&5
33648
33649         ac_cv_lib_pthreads_pthread_create=no
33650 fi
33651
33652 rm -f core conftest.err conftest.$ac_objext \
33653       conftest$ac_exeext conftest.$ac_ext
33654 LIBS=$ac_check_lib_save_LIBS
33655 fi
33656 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
33657 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
33658 if test $ac_cv_lib_pthreads_pthread_create = yes; then
33659   PTHREAD_LIB="-lpthreads"
33660 else
33661   { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
33662 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
33663 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
33664   echo $ECHO_N "(cached) $ECHO_C" >&6
33665 else
33666   ac_check_lib_save_LIBS=$LIBS
33667 LIBS="-lc_r  $LIBS"
33668 cat >conftest.$ac_ext <<_ACEOF
33669 /* confdefs.h.  */
33670 _ACEOF
33671 cat confdefs.h >>conftest.$ac_ext
33672 cat >>conftest.$ac_ext <<_ACEOF
33673 /* end confdefs.h.  */
33674
33675 /* Override any GCC internal prototype to avoid an error.
33676    Use char because int might match the return type of a GCC
33677    builtin and then its argument prototype would still apply.  */
33678 #ifdef __cplusplus
33679 extern "C"
33680 #endif
33681 char pthread_create ();
33682 int
33683 main ()
33684 {
33685 return pthread_create ();
33686   ;
33687   return 0;
33688 }
33689 _ACEOF
33690 rm -f conftest.$ac_objext conftest$ac_exeext
33691 if { (ac_try="$ac_link"
33692 case "(($ac_try" in
33693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33694   *) ac_try_echo=$ac_try;;
33695 esac
33696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33697   (eval "$ac_link") 2>conftest.er1
33698   ac_status=$?
33699   grep -v '^ *+' conftest.er1 >conftest.err
33700   rm -f conftest.er1
33701   cat conftest.err >&5
33702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33703   (exit $ac_status); } &&
33704          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33705   { (case "(($ac_try" in
33706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33707   *) ac_try_echo=$ac_try;;
33708 esac
33709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33710   (eval "$ac_try") 2>&5
33711   ac_status=$?
33712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33713   (exit $ac_status); }; } &&
33714          { ac_try='test -s conftest$ac_exeext'
33715   { (case "(($ac_try" in
33716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33717   *) ac_try_echo=$ac_try;;
33718 esac
33719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33720   (eval "$ac_try") 2>&5
33721   ac_status=$?
33722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33723   (exit $ac_status); }; }; then
33724   ac_cv_lib_c_r_pthread_create=yes
33725 else
33726   echo "$as_me: failed program was:" >&5
33727 sed 's/^/| /' conftest.$ac_ext >&5
33728
33729         ac_cv_lib_c_r_pthread_create=no
33730 fi
33731
33732 rm -f core conftest.err conftest.$ac_objext \
33733       conftest$ac_exeext conftest.$ac_ext
33734 LIBS=$ac_check_lib_save_LIBS
33735 fi
33736 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
33737 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
33738 if test $ac_cv_lib_c_r_pthread_create = yes; then
33739   PTHREAD_LIB="-lc_r"
33740 else
33741   { echo "$as_me:$LINENO: checking for pthread_create" >&5
33742 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
33743 if test "${ac_cv_func_pthread_create+set}" = set; then
33744   echo $ECHO_N "(cached) $ECHO_C" >&6
33745 else
33746   cat >conftest.$ac_ext <<_ACEOF
33747 /* confdefs.h.  */
33748 _ACEOF
33749 cat confdefs.h >>conftest.$ac_ext
33750 cat >>conftest.$ac_ext <<_ACEOF
33751 /* end confdefs.h.  */
33752 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
33753    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33754 #define pthread_create innocuous_pthread_create
33755
33756 /* System header to define __stub macros and hopefully few prototypes,
33757     which can conflict with char pthread_create (); below.
33758     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33759     <limits.h> exists even on freestanding compilers.  */
33760
33761 #ifdef __STDC__
33762 # include <limits.h>
33763 #else
33764 # include <assert.h>
33765 #endif
33766
33767 #undef pthread_create
33768
33769 /* Override any GCC internal prototype to avoid an error.
33770    Use char because int might match the return type of a GCC
33771    builtin and then its argument prototype would still apply.  */
33772 #ifdef __cplusplus
33773 extern "C"
33774 #endif
33775 char pthread_create ();
33776 /* The GNU C library defines this for functions which it implements
33777     to always fail with ENOSYS.  Some functions are actually named
33778     something starting with __ and the normal name is an alias.  */
33779 #if defined __stub_pthread_create || defined __stub___pthread_create
33780 choke me
33781 #endif
33782
33783 int
33784 main ()
33785 {
33786 return pthread_create ();
33787   ;
33788   return 0;
33789 }
33790 _ACEOF
33791 rm -f conftest.$ac_objext conftest$ac_exeext
33792 if { (ac_try="$ac_link"
33793 case "(($ac_try" in
33794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33795   *) ac_try_echo=$ac_try;;
33796 esac
33797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33798   (eval "$ac_link") 2>conftest.er1
33799   ac_status=$?
33800   grep -v '^ *+' conftest.er1 >conftest.err
33801   rm -f conftest.er1
33802   cat conftest.err >&5
33803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33804   (exit $ac_status); } &&
33805          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
33806   { (case "(($ac_try" in
33807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33808   *) ac_try_echo=$ac_try;;
33809 esac
33810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33811   (eval "$ac_try") 2>&5
33812   ac_status=$?
33813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33814   (exit $ac_status); }; } &&
33815          { ac_try='test -s conftest$ac_exeext'
33816   { (case "(($ac_try" in
33817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33818   *) ac_try_echo=$ac_try;;
33819 esac
33820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33821   (eval "$ac_try") 2>&5
33822   ac_status=$?
33823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33824   (exit $ac_status); }; }; then
33825   ac_cv_func_pthread_create=yes
33826 else
33827   echo "$as_me: failed program was:" >&5
33828 sed 's/^/| /' conftest.$ac_ext >&5
33829
33830         ac_cv_func_pthread_create=no
33831 fi
33832
33833 rm -f core conftest.err conftest.$ac_objext \
33834       conftest$ac_exeext conftest.$ac_ext
33835 fi
33836 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
33837 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
33838
33839
33840 fi
33841
33842
33843 fi
33844
33845
33846 fi
33847
33848
33849
33850 cat >>confdefs.h <<\_ACEOF
33851 #define FDLIBS 1
33852 _ACEOF
33853
33854
33855
33856 CFLAGS=${CFLAGS--O}
33857
33858 if test x$have_gcc = xyes ; then
33859    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
33860    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
33861 fi
33862 LDFLAGS=${LDFLAGS--O}
33863 DB_LIBS="${SQL_LFLAGS}"
33864 CPPFLAGS="$CPPFLAGS"
33865 CFLAGS="$CFLAGS"
33866
33867
33868
33869
33870
33871
33872
33873
33874
33875
33876
33877
33878
33879
33880
33881
33882 OBJLIST=
33883
33884
33885 lld="lld"
33886 llu="llu"
33887
33888 WCFLAGS=
33889 WLDFLAGS=
33890
33891 #
33892 # Finally we set appropriate distribution specific
33893 #  variables and defaults
33894 #
33895 # PFILES are platform specific files
33896 PFILES="platforms/Makefile"
33897 PSCMD="ps -e"
33898 WIN32=
33899 MACOSX=
33900 hostname=`uname -n | cut -d '.' -f 1`
33901 if test x${hostname} = x ; then
33902   hostname="localhost"
33903 fi
33904 case "$DISTNAME" in
33905 aix)
33906         DISTVER=`uname -r`
33907         PSCMD="ps -e -o pid,comm"
33908         PFILES="${PFILES} \
33909            platforms/aix/Makefile"
33910         TAPEDRIVE="/dev/rmt0.1"
33911   ;;
33912 alpha)
33913         DISTVER=`uname -r`
33914         PTHREAD_LIB="-lpthread -lexc"
33915         if test "${CC}" = "gcc" ; then
33916            lld="lld"
33917            llu="llu"
33918         else
33919            lld="ld"
33920            llu="lu"
33921         fi
33922         TAPEDRIVE="/dev/nrmt0"
33923   ;;
33924 bsdi)
33925         DISTVER=`uname -a |awk '{print $3}'`
33926         TAPEDRIVE="/dev/nrmt0"
33927         PTHREAD_LIB="-pthread"
33928         CFLAGS="${CFLAGS} -pthread"
33929         PSCMD="ps -ax -o pid,command"
33930         lld="qd"
33931         llu="qu"
33932         PFILES="${PFILES} \
33933             platforms/bsdi/Makefile \
33934             platforms/bsdi/bacula-fd \
33935             platforms/bsdi/bacula-sd \
33936             platforms/bsdi/bacula-dir"
33937         largefile_support="yes"
33938   ;;
33939 cygwin)
33940         DISTVER=`uname -a |awk '{print $3}'`
33941         TAPEDRIVE="/dev/nrst0"
33942         WIN32=win32
33943         WCFLAGS="-mwindows"
33944         WLDFLAGS="-mwindows"
33945   ;;
33946 darwin)
33947         DISTVER=`uname -r`
33948         TAPEDRIVE="/dev/nst0"
33949         PSCMD="ps -e -o pid,command"
33950         MACOSX=macosx
33951         PFILES="${PFILES} \
33952            platforms/darwin/Makefile"
33953   ;;
33954 debian)
33955         DISTVER=`cat /etc/debian_version`
33956         TAPEDRIVE="/dev/nrst0"
33957         PSCMD="ps -e -o pid,command"
33958   ;;
33959 freebsd)
33960         DISTVER=`uname -a |awk '{print $3}'`
33961         VER=`echo $DISTVER | cut -c 1`
33962         if test x$VER = x4 ; then
33963            PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
33964            CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
33965         fi
33966         lld="qd"
33967         llu="qu"
33968         TAPEDRIVE="/dev/nrsa0"
33969         PSCMD="ps -ax -o pid,command"
33970         PFILES="${PFILES} \
33971             platforms/freebsd/Makefile \
33972             platforms/freebsd/bacula-fd \
33973             platforms/freebsd/bacula-sd \
33974             platforms/freebsd/bacula-dir"
33975         largefile_support="yes"
33976   ;;
33977 hpux)
33978         PSCMD="UNIX95=1 ps -e -o pid,comm"
33979         CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
33980         DISTVER=`uname -r`
33981         TAPEDRIVE="/dev/rmt/0hnb"
33982         PTHREAD_LIB="-lpthread"
33983         cat >>confdefs.h <<\_ACEOF
33984 #define _INCLUDE_LONGLONG 1
33985 _ACEOF
33986
33987   ;;
33988 irix)
33989         DISTVER=`uname -r`
33990         TAPEDRIVE="/dev/rmt/0cbn"
33991         PSCMD="ps -e -o pid,comm"
33992         PFILES="${PFILES} \
33993             platforms/irix/Makefile \
33994             platforms/irix/bacula-fd \
33995             platforms/irix/bacula-sd \
33996             platforms/irix/bacula-dir"
33997   ;;
33998 netbsd)
33999         DISTVER=`uname -a |awk '{print $3}'`
34000         lld="qd"
34001         llu="qu"
34002         TAPEDRIVE="/dev/nrst0"
34003         PSCMD="ps -ax -o pid,command"
34004         PTHREAD_LIB="-pthread"
34005         CFLAGS="${CFLAGS} -pthread"
34006   ;;
34007 openbsd)
34008         DISTVER=`uname -a |awk '{print $3}'`
34009         lld="qd"
34010         llu="qu"
34011         TAPEDRIVE="/dev/nrst0"
34012         PSCMD="ps -ax -o pid,command"
34013         PTHREAD_LIB="-pthread"
34014         CFLAGS="${CFLAGS} -pthread"
34015         PFILES="${PFILES} \
34016             platforms/openbsd/Makefile \
34017             platforms/openbsd/bacula-fd \
34018             platforms/openbsd/bacula-sd \
34019             platforms/openbsd/bacula-dir"
34020   ;;
34021 redhat)
34022         if test -f /etc/whitebox-release ; then
34023            f=/etc/whitebox-release
34024         else
34025            f=/etc/redhat-release
34026         fi
34027         if test `cat $f | grep release |\
34028                    cut -f 3 -d ' '`x = "Enterprise"x ; then
34029            DISTVER="Enterprise "`cat $f | grep release |\
34030                     cut -f 6 -d ' '`
34031         else
34032             DISTVER=`cat /etc/redhat-release | grep release |\
34033                      cut -f 5 -d ' '`
34034         fi
34035         TAPEDRIVE="/dev/nst0"
34036         PSCMD="ps -e -o pid,command"
34037         PFILES="${PFILES} \
34038             platforms/redhat/Makefile \
34039             platforms/redhat/bacula-fd \
34040             platforms/redhat/bacula-sd \
34041             platforms/redhat/bacula-dir \
34042             platforms/redhat/bacula.spec \
34043             "
34044   ;;
34045 mandrake)
34046         DISTVER=`cat /etc/mandrake-release | grep release |\
34047            cut -f 5 -d ' '`
34048         TAPEDRIVE="/dev/nst0"
34049         PSCMD="ps -e -o pid,command"
34050         PFILES="${PFILES} \
34051             platforms/mandrake/Makefile \
34052             platforms/mandrake/bacula-fd \
34053             platforms/mandrake/bacula-sd \
34054             platforms/mandrake/bacula-dir \
34055             platforms/mandrake/bacula.spec \
34056             "
34057   ;;
34058 gentoo)
34059         DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
34060         TAPEDRIVE="/dev/nst0"
34061         PSCMD="ps -e -o pid,command"
34062         PFILES="${PFILES} \
34063             platforms/gentoo/Makefile \
34064          platforms/gentoo/bacula-init \
34065             platforms/gentoo/bacula-fd \
34066             platforms/gentoo/bacula-sd \
34067             platforms/gentoo/bacula-dir"
34068   ;;
34069 slackware)
34070         DISTVER=`cat /etc/slackware-version`
34071         TAPEDRIVE="/dev/nst0"
34072         PSCMD="ps -e -o pid,command"
34073         PFILES="${PFILES} \
34074             platforms/slackware/Makefile \
34075             platforms/slackware/rc.bacula-fd \
34076             platforms/slackware/rc.bacula-sd \
34077             platforms/slackware/rc.bacula-dir\
34078             platforms/slackware/functions.bacula"
34079   ;;
34080 solaris)
34081         DISTVER=`uname -r`
34082         TAPEDRIVE="/dev/rmt/0cbn"
34083         PSCMD="ps -e -o pid,comm"
34084         PFILES="${PFILES} \
34085             platforms/solaris/Makefile \
34086             platforms/solaris/bacula-fd \
34087             platforms/solaris/bacula-sd \
34088             platforms/solaris/bacula-dir"
34089         if test x$DISTVER = x5.6 ; then
34090             cat >>confdefs.h <<\_ACEOF
34091 #define HAVE_OLD_SOCKOPT 1
34092 _ACEOF
34093
34094         fi
34095         LIBS="$LIBS -lresolv"
34096   ;;
34097 suse)
34098         DISTVER=`cat /etc/SuSE-release |grep VERSION|\
34099             cut -f 3 -d ' '`
34100         TAPEDRIVE="/dev/nst0"
34101         PSCMD="ps -e -o pid,command"
34102         PFILES="${PFILES} \
34103             platforms/suse/Makefile \
34104             platforms/suse/bacula-fd \
34105             platforms/suse/bacula-sd \
34106             platforms/suse/bacula-dir \
34107             platforms/suse/bacula \
34108             platforms/suse/bacula.spec"
34109   ;;
34110 suse5)
34111         DISTNAME=suse
34112         DISTVER=5.x
34113         TAPEDRIVE="/dev/nst0"
34114         PSCMD="ps -e -o pid,command"
34115         PFILES="${PFILES} \
34116             platforms/suse/Makefile \
34117             platforms/suse/bacula-fd \
34118             platforms/suse/bacula-sd \
34119             platforms/suse/bacula-dir"
34120   ;;
34121 unknown)
34122         DISTVER=unknown
34123         TAPEDRIVE="/dev/nst0"
34124   ;;
34125 *)
34126   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
34127   ;;
34128 esac
34129
34130
34131
34132 LIBS="$PTHREAD_LIB $LIBS"
34133
34134 cat >>confdefs.h <<_ACEOF
34135 #define lld "$lld"
34136 _ACEOF
34137
34138 cat >>confdefs.h <<_ACEOF
34139 #define llu "$llu"
34140 _ACEOF
34141
34142
34143
34144
34145
34146
34147
34148
34149 MCOMMON=./autoconf/Make.common
34150
34151
34152 if test "x${subsysdir}" = "x${sbindir}" ; then
34153    echo " "
34154    echo " "
34155    echo "You have set both --sbindir and --with-subsys-dir"
34156    echo "  equal to: ${subsysdir} "
34157    echo "This is not permitted. Please reconfigure."
34158    echo " "
34159    echo "Aborting configuration ..."
34160    echo " "
34161    echo " "
34162    exit 1
34163 fi
34164
34165 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile po/Makefile.in $PFILES"
34166
34167 ac_config_commands="$ac_config_commands default"
34168
34169 cat >confcache <<\_ACEOF
34170 # This file is a shell script that caches the results of configure
34171 # tests run on this system so they can be shared between configure
34172 # scripts and configure runs, see configure's option --config-cache.
34173 # It is not useful on other systems.  If it contains results you don't
34174 # want to keep, you may remove or edit it.
34175 #
34176 # config.status only pays attention to the cache file if you give it
34177 # the --recheck option to rerun configure.
34178 #
34179 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34180 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34181 # following values.
34182
34183 _ACEOF
34184
34185 # The following way of writing the cache mishandles newlines in values,
34186 # but we know of no workaround that is simple, portable, and efficient.
34187 # So, we kill variables containing newlines.
34188 # Ultrix sh set writes to stderr and can't be redirected directly,
34189 # and sets the high bit in the cache file unless we assign to the vars.
34190 (
34191   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34192     eval ac_val=\$$ac_var
34193     case $ac_val in #(
34194     *${as_nl}*)
34195       case $ac_var in #(
34196       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
34197 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
34198       esac
34199       case $ac_var in #(
34200       _ | IFS | as_nl) ;; #(
34201       *) $as_unset $ac_var ;;
34202       esac ;;
34203     esac
34204   done
34205
34206   (set) 2>&1 |
34207     case $as_nl`(ac_space=' '; set) 2>&1` in #(
34208     *${as_nl}ac_space=\ *)
34209       # `set' does not quote correctly, so add quotes (double-quote
34210       # substitution turns \\\\ into \\, and sed turns \\ into \).
34211       sed -n \
34212         "s/'/'\\\\''/g;
34213           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34214       ;; #(
34215     *)
34216       # `set' quotes correctly as required by POSIX, so do not add quotes.
34217       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34218       ;;
34219     esac |
34220     sort
34221 ) |
34222   sed '
34223      /^ac_cv_env_/b end
34224      t clear
34225      :clear
34226      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34227      t end
34228      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34229      :end' >>confcache
34230 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34231   if test -w "$cache_file"; then
34232     test "x$cache_file" != "x/dev/null" &&
34233       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
34234 echo "$as_me: updating cache $cache_file" >&6;}
34235     cat confcache >$cache_file
34236   else
34237     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
34238 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34239   fi
34240 fi
34241 rm -f confcache
34242
34243 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34244 # Let make expand exec_prefix.
34245 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34246
34247 DEFS=-DHAVE_CONFIG_H
34248
34249 ac_libobjs=
34250 ac_ltlibobjs=
34251 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34252   # 1. Remove the extension, and $U if already installed.
34253   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34254   ac_i=`echo "$ac_i" | sed "$ac_script"`
34255   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
34256   #    will be set to the directory where LIBOBJS objects are built.
34257   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34258   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
34259 done
34260 LIBOBJS=$ac_libobjs
34261
34262 LTLIBOBJS=$ac_ltlibobjs
34263
34264
34265
34266 : ${CONFIG_STATUS=./config.status}
34267 ac_clean_files_save=$ac_clean_files
34268 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34269 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
34270 echo "$as_me: creating $CONFIG_STATUS" >&6;}
34271 cat >$CONFIG_STATUS <<_ACEOF
34272 #! $SHELL
34273 # Generated by $as_me.
34274 # Run this file to recreate the current configuration.
34275 # Compiler output produced by configure, useful for debugging
34276 # configure, is in config.log if it exists.
34277
34278 debug=false
34279 ac_cs_recheck=false
34280 ac_cs_silent=false
34281 SHELL=\${CONFIG_SHELL-$SHELL}
34282 _ACEOF
34283
34284 cat >>$CONFIG_STATUS <<\_ACEOF
34285 ## --------------------- ##
34286 ## M4sh Initialization.  ##
34287 ## --------------------- ##
34288
34289 # Be Bourne compatible
34290 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
34291   emulate sh
34292   NULLCMD=:
34293   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
34294   # is contrary to our usage.  Disable this feature.
34295   alias -g '${1+"$@"}'='"$@"'
34296   setopt NO_GLOB_SUBST
34297 else
34298   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
34299 fi
34300 BIN_SH=xpg4; export BIN_SH # for Tru64
34301 DUALCASE=1; export DUALCASE # for MKS sh
34302
34303
34304 # PATH needs CR
34305 # Avoid depending upon Character Ranges.
34306 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34307 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34308 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34309 as_cr_digits='0123456789'
34310 as_cr_alnum=$as_cr_Letters$as_cr_digits
34311
34312 # The user is always right.
34313 if test "${PATH_SEPARATOR+set}" != set; then
34314   echo "#! /bin/sh" >conf$$.sh
34315   echo  "exit 0"   >>conf$$.sh
34316   chmod +x conf$$.sh
34317   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
34318     PATH_SEPARATOR=';'
34319   else
34320     PATH_SEPARATOR=:
34321   fi
34322   rm -f conf$$.sh
34323 fi
34324
34325 # Support unset when possible.
34326 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34327   as_unset=unset
34328 else
34329   as_unset=false
34330 fi
34331
34332
34333 # IFS
34334 # We need space, tab and new line, in precisely that order.  Quoting is
34335 # there to prevent editors from complaining about space-tab.
34336 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34337 # splitting by setting IFS to empty value.)
34338 as_nl='
34339 '
34340 IFS=" ""        $as_nl"
34341
34342 # Find who we are.  Look in the path if we contain no directory separator.
34343 case $0 in
34344   *[\\/]* ) as_myself=$0 ;;
34345   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34346 for as_dir in $PATH
34347 do
34348   IFS=$as_save_IFS
34349   test -z "$as_dir" && as_dir=.
34350   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
34351 done
34352 IFS=$as_save_IFS
34353
34354      ;;
34355 esac
34356 # We did not find ourselves, most probably we were run as `sh COMMAND'
34357 # in which case we are not to be found in the path.
34358 if test "x$as_myself" = x; then
34359   as_myself=$0
34360 fi
34361 if test ! -f "$as_myself"; then
34362   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
34363   { (exit 1); exit 1; }
34364 fi
34365
34366 # Work around bugs in pre-3.0 UWIN ksh.
34367 for as_var in ENV MAIL MAILPATH
34368 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34369 done
34370 PS1='$ '
34371 PS2='> '
34372 PS4='+ '
34373
34374 # NLS nuisances.
34375 for as_var in \
34376   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
34377   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
34378   LC_TELEPHONE LC_TIME
34379 do
34380   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
34381     eval $as_var=C; export $as_var
34382   else
34383     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
34384   fi
34385 done
34386
34387 # Required to use basename.
34388 if expr a : '\(a\)' >/dev/null 2>&1 &&
34389    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34390   as_expr=expr
34391 else
34392   as_expr=false
34393 fi
34394
34395 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34396   as_basename=basename
34397 else
34398   as_basename=false
34399 fi
34400
34401
34402 # Name of the executable.
34403 as_me=`$as_basename -- "$0" ||
34404 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34405          X"$0" : 'X\(//\)$' \| \
34406          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34407 echo X/"$0" |
34408     sed '/^.*\/\([^/][^/]*\)\/*$/{
34409             s//\1/
34410             q
34411           }
34412           /^X\/\(\/\/\)$/{
34413             s//\1/
34414             q
34415           }
34416           /^X\/\(\/\).*/{
34417             s//\1/
34418             q
34419           }
34420           s/.*/./; q'`
34421
34422 # CDPATH.
34423 $as_unset CDPATH
34424
34425
34426
34427   as_lineno_1=$LINENO
34428   as_lineno_2=$LINENO
34429   test "x$as_lineno_1" != "x$as_lineno_2" &&
34430   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
34431
34432   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
34433   # uniformly replaced by the line number.  The first 'sed' inserts a
34434   # line-number line after each line using $LINENO; the second 'sed'
34435   # does the real work.  The second script uses 'N' to pair each
34436   # line-number line with the line containing $LINENO, and appends
34437   # trailing '-' during substitution so that $LINENO is not a special
34438   # case at line end.
34439   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
34440   # scripts with optimization help from Paolo Bonzini.  Blame Lee
34441   # E. McMahon (1931-1989) for sed's syntax.  :-)
34442   sed -n '
34443     p
34444     /[$]LINENO/=
34445   ' <$as_myself |
34446     sed '
34447       s/[$]LINENO.*/&-/
34448       t lineno
34449       b
34450       :lineno
34451       N
34452       :loop
34453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
34454       t loop
34455       s/-\n.*//
34456     ' >$as_me.lineno &&
34457   chmod +x "$as_me.lineno" ||
34458     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
34459    { (exit 1); exit 1; }; }
34460
34461   # Don't try to exec as it changes $[0], causing all sort of problems
34462   # (the dirname of $[0] is not the place where we might find the
34463   # original and so on.  Autoconf is especially sensitive to this).
34464   . "./$as_me.lineno"
34465   # Exit status is that of the last command.
34466   exit
34467 }
34468
34469
34470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34471   as_dirname=dirname
34472 else
34473   as_dirname=false
34474 fi
34475
34476 ECHO_C= ECHO_N= ECHO_T=
34477 case `echo -n x` in
34478 -n*)
34479   case `echo 'x\c'` in
34480   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
34481   *)   ECHO_C='\c';;
34482   esac;;
34483 *)
34484   ECHO_N='-n';;
34485 esac
34486
34487 if expr a : '\(a\)' >/dev/null 2>&1 &&
34488    test "X`expr 00001 : '.*\(...\)'`" = X001; then
34489   as_expr=expr
34490 else
34491   as_expr=false
34492 fi
34493
34494 rm -f conf$$ conf$$.exe conf$$.file
34495 if test -d conf$$.dir; then
34496   rm -f conf$$.dir/conf$$.file
34497 else
34498   rm -f conf$$.dir
34499   mkdir conf$$.dir
34500 fi
34501 echo >conf$$.file
34502 if ln -s conf$$.file conf$$ 2>/dev/null; then
34503   as_ln_s='ln -s'
34504   # ... but there are two gotchas:
34505   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34506   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34507   # In both cases, we have to default to `cp -p'.
34508   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34509     as_ln_s='cp -p'
34510 elif ln conf$$.file conf$$ 2>/dev/null; then
34511   as_ln_s=ln
34512 else
34513   as_ln_s='cp -p'
34514 fi
34515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34516 rmdir conf$$.dir 2>/dev/null
34517
34518 if mkdir -p . 2>/dev/null; then
34519   as_mkdir_p=:
34520 else
34521   test -d ./-p && rmdir ./-p
34522   as_mkdir_p=false
34523 fi
34524
34525 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
34526 # systems may use methods other than mode bits to determine executability.
34527 cat >conf$$.file <<_ASEOF
34528 #! /bin/sh
34529 exit 0
34530 _ASEOF
34531 chmod +x conf$$.file
34532 if test -x conf$$.file >/dev/null 2>&1; then
34533   as_executable_p="test -x"
34534 else
34535   as_executable_p=:
34536 fi
34537 rm -f conf$$.file
34538
34539 # Sed expression to map a string onto a valid CPP name.
34540 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34541
34542 # Sed expression to map a string onto a valid variable name.
34543 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34544
34545
34546 exec 6>&1
34547
34548 # Save the log message, to keep $[0] and so on meaningful, and to
34549 # report actual input values of CONFIG_FILES etc. instead of their
34550 # values after options handling.
34551 ac_log="
34552 This file was extended by $as_me, which was
34553 generated by GNU Autoconf 2.60.  Invocation command line was
34554
34555   CONFIG_FILES    = $CONFIG_FILES
34556   CONFIG_HEADERS  = $CONFIG_HEADERS
34557   CONFIG_LINKS    = $CONFIG_LINKS
34558   CONFIG_COMMANDS = $CONFIG_COMMANDS
34559   $ $0 $@
34560
34561 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34562 "
34563
34564 _ACEOF
34565
34566 cat >>$CONFIG_STATUS <<_ACEOF
34567 # Files that config.status was made for.
34568 config_files="$ac_config_files"
34569 config_headers="$ac_config_headers"
34570 config_commands="$ac_config_commands"
34571
34572 _ACEOF
34573
34574 cat >>$CONFIG_STATUS <<\_ACEOF
34575 ac_cs_usage="\
34576 \`$as_me' instantiates files from templates according to the
34577 current configuration.
34578
34579 Usage: $0 [OPTIONS] [FILE]...
34580
34581   -h, --help       print this help, then exit
34582   -V, --version    print version number, then exit
34583   -q, --quiet      do not print progress messages
34584   -d, --debug      don't remove temporary files
34585       --recheck    update $as_me by reconfiguring in the same conditions
34586   --file=FILE[:TEMPLATE]
34587                    instantiate the configuration file FILE
34588   --header=FILE[:TEMPLATE]
34589                    instantiate the configuration header FILE
34590
34591 Configuration files:
34592 $config_files
34593
34594 Configuration headers:
34595 $config_headers
34596
34597 Configuration commands:
34598 $config_commands
34599
34600 Report bugs to <bug-autoconf@gnu.org>."
34601
34602 _ACEOF
34603 cat >>$CONFIG_STATUS <<_ACEOF
34604 ac_cs_version="\\
34605 config.status
34606 configured by $0, generated by GNU Autoconf 2.60,
34607   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34608
34609 Copyright (C) 2006 Free Software Foundation, Inc.
34610 This config.status script is free software; the Free Software Foundation
34611 gives unlimited permission to copy, distribute and modify it."
34612
34613 ac_pwd='$ac_pwd'
34614 srcdir='$srcdir'
34615 INSTALL='$INSTALL'
34616 _ACEOF
34617
34618 cat >>$CONFIG_STATUS <<\_ACEOF
34619 # If no file are specified by the user, then we need to provide default
34620 # value.  By we need to know if files were specified by the user.
34621 ac_need_defaults=:
34622 while test $# != 0
34623 do
34624   case $1 in
34625   --*=*)
34626     ac_option=`expr "X$1" : 'X\([^=]*\)='`
34627     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34628     ac_shift=:
34629     ;;
34630   *)
34631     ac_option=$1
34632     ac_optarg=$2
34633     ac_shift=shift
34634     ;;
34635   esac
34636
34637   case $ac_option in
34638   # Handling of the options.
34639   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34640     ac_cs_recheck=: ;;
34641   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34642     echo "$ac_cs_version"; exit ;;
34643   --debug | --debu | --deb | --de | --d | -d )
34644     debug=: ;;
34645   --file | --fil | --fi | --f )
34646     $ac_shift
34647     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34648     ac_need_defaults=false;;
34649   --header | --heade | --head | --hea )
34650     $ac_shift
34651     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34652     ac_need_defaults=false;;
34653   --he | --h)
34654     # Conflict between --help and --header
34655     { echo "$as_me: error: ambiguous option: $1
34656 Try \`$0 --help' for more information." >&2
34657    { (exit 1); exit 1; }; };;
34658   --help | --hel | -h )
34659     echo "$ac_cs_usage"; exit ;;
34660   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34661   | -silent | --silent | --silen | --sile | --sil | --si | --s)
34662     ac_cs_silent=: ;;
34663
34664   # This is an error.
34665   -*) { echo "$as_me: error: unrecognized option: $1
34666 Try \`$0 --help' for more information." >&2
34667    { (exit 1); exit 1; }; } ;;
34668
34669   *) ac_config_targets="$ac_config_targets $1"
34670      ac_need_defaults=false ;;
34671
34672   esac
34673   shift
34674 done
34675
34676 ac_configure_extra_args=
34677
34678 if $ac_cs_silent; then
34679   exec 6>/dev/null
34680   ac_configure_extra_args="$ac_configure_extra_args --silent"
34681 fi
34682
34683 _ACEOF
34684 cat >>$CONFIG_STATUS <<_ACEOF
34685 if \$ac_cs_recheck; then
34686   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34687   CONFIG_SHELL=$SHELL
34688   export CONFIG_SHELL
34689   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34690 fi
34691
34692 _ACEOF
34693 cat >>$CONFIG_STATUS <<\_ACEOF
34694 exec 5>>config.log
34695 {
34696   echo
34697   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34698 ## Running $as_me. ##
34699 _ASBOX
34700   echo "$ac_log"
34701 } >&5
34702
34703 _ACEOF
34704 cat >>$CONFIG_STATUS <<_ACEOF
34705 #
34706 # INIT-COMMANDS
34707 #
34708 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
34709     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
34710     # from automake.
34711     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
34712     # Capture the value of LINGUAS because we need it to compute CATALOGS.
34713     LINGUAS="${LINGUAS-%UNSET%}"
34714
34715
34716 _ACEOF
34717
34718 cat >>$CONFIG_STATUS <<\_ACEOF
34719
34720 # Handling of arguments.
34721 for ac_config_target in $ac_config_targets
34722 do
34723   case $ac_config_target in
34724     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
34725     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
34726     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
34727     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34728     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
34729     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
34730     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
34731     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
34732     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
34733     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
34734     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
34735     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
34736     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
34737     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
34738     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
34739     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
34740     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
34741     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
34742     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
34743     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
34744     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
34745     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
34746     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
34747     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
34748     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
34749     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
34750     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
34751     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
34752     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
34753     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
34754     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
34755     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
34756     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
34757     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
34758     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
34759     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
34760     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
34761     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
34762     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
34763     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
34764     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
34765     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
34766     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
34767     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
34768     "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
34769     "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
34770     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
34771     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
34772     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
34773     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
34774     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
34775     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
34776     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
34777     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
34778     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
34779     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
34780     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
34781     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
34782     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
34783     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
34784     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
34785     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
34786     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
34787     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
34788     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
34789     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
34790     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
34791     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
34792     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
34793     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
34794     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
34795     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
34796     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
34797     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
34798     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
34799     "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
34800     "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
34801     "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
34802     "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
34803     "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
34804     "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
34805     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
34806     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
34807     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
34808     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
34809     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
34810     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
34811     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
34812     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
34813     "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
34814     "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
34815     "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
34816     "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
34817     "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
34818     "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
34819     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
34820     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
34821     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
34822     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
34823     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
34824     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
34825     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
34826     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
34827     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
34828     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
34829     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34830
34831   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34832 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34833    { (exit 1); exit 1; }; };;
34834   esac
34835 done
34836
34837
34838 # If the user did not use the arguments to specify the items to instantiate,
34839 # then the envvar interface is used.  Set only those that are not.
34840 # We use the long form for the default assignment because of an extremely
34841 # bizarre bug on SunOS 4.1.3.
34842 if $ac_need_defaults; then
34843   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34844   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34845   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34846 fi
34847
34848 # Have a temporary directory for convenience.  Make it in the build tree
34849 # simply because there is no reason against having it here, and in addition,
34850 # creating and moving files from /tmp can sometimes cause problems.
34851 # Hook for its removal unless debugging.
34852 # Note that there is a small window in which the directory will not be cleaned:
34853 # after its creation but before its name has been assigned to `$tmp'.
34854 $debug ||
34855 {
34856   tmp=
34857   trap 'exit_status=$?
34858   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34859 ' 0
34860   trap '{ (exit 1); exit 1; }' 1 2 13 15
34861 }
34862 # Create a (secure) tmp directory for tmp files.
34863
34864 {
34865   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34866   test -n "$tmp" && test -d "$tmp"
34867 }  ||
34868 {
34869   tmp=./conf$$-$RANDOM
34870   (umask 077 && mkdir "$tmp")
34871 } ||
34872 {
34873    echo "$me: cannot create a temporary directory in ." >&2
34874    { (exit 1); exit 1; }
34875 }
34876
34877 #
34878 # Set up the sed scripts for CONFIG_FILES section.
34879 #
34880
34881 # No need to generate the scripts if there are no CONFIG_FILES.
34882 # This happens for instance when ./config.status config.h
34883 if test -n "$CONFIG_FILES"; then
34884
34885 _ACEOF
34886
34887 # Create sed commands to just substitute file output variables.
34888
34889 # Remaining file output variables are in a fragment that also has non-file
34890 # output varibles.
34891
34892
34893
34894 ac_delim='%!_!# '
34895 for ac_last_try in false false false false false :; do
34896   cat >conf$$subs.sed <<_ACEOF
34897 SHELL!$SHELL$ac_delim
34898 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34899 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34900 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34901 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34902 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34903 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34904 exec_prefix!$exec_prefix$ac_delim
34905 prefix!$prefix$ac_delim
34906 program_transform_name!$program_transform_name$ac_delim
34907 bindir!$bindir$ac_delim
34908 sbindir!$sbindir$ac_delim
34909 libexecdir!$libexecdir$ac_delim
34910 datarootdir!$datarootdir$ac_delim
34911 datadir!$datadir$ac_delim
34912 sysconfdir!$sysconfdir$ac_delim
34913 sharedstatedir!$sharedstatedir$ac_delim
34914 localstatedir!$localstatedir$ac_delim
34915 includedir!$includedir$ac_delim
34916 oldincludedir!$oldincludedir$ac_delim
34917 docdir!$docdir$ac_delim
34918 infodir!$infodir$ac_delim
34919 htmldir!$htmldir$ac_delim
34920 dvidir!$dvidir$ac_delim
34921 pdfdir!$pdfdir$ac_delim
34922 psdir!$psdir$ac_delim
34923 libdir!$libdir$ac_delim
34924 localedir!$localedir$ac_delim
34925 mandir!$mandir$ac_delim
34926 DEFS!$DEFS$ac_delim
34927 ECHO_C!$ECHO_C$ac_delim
34928 ECHO_N!$ECHO_N$ac_delim
34929 ECHO_T!$ECHO_T$ac_delim
34930 LIBS!$LIBS$ac_delim
34931 build_alias!$build_alias$ac_delim
34932 host_alias!$host_alias$ac_delim
34933 target_alias!$target_alias$ac_delim
34934 BUILD_DIR!$BUILD_DIR$ac_delim
34935 TOP_DIR!$TOP_DIR$ac_delim
34936 TRUEPRG!$TRUEPRG$ac_delim
34937 FALSEPRG!$FALSEPRG$ac_delim
34938 VERSION!$VERSION$ac_delim
34939 DATE!$DATE$ac_delim
34940 LSMDATE!$LSMDATE$ac_delim
34941 CC!$CC$ac_delim
34942 CFLAGS!$CFLAGS$ac_delim
34943 LDFLAGS!$LDFLAGS$ac_delim
34944 CPPFLAGS!$CPPFLAGS$ac_delim
34945 ac_ct_CC!$ac_ct_CC$ac_delim
34946 EXEEXT!$EXEEXT$ac_delim
34947 OBJEXT!$OBJEXT$ac_delim
34948 CXX!$CXX$ac_delim
34949 CXXFLAGS!$CXXFLAGS$ac_delim
34950 ac_ct_CXX!$ac_ct_CXX$ac_delim
34951 CPP!$CPP$ac_delim
34952 GREP!$GREP$ac_delim
34953 EGREP!$EGREP$ac_delim
34954 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34955 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34956 INSTALL_DATA!$INSTALL_DATA$ac_delim
34957 RANLIB!$RANLIB$ac_delim
34958 MV!$MV$ac_delim
34959 RM!$RM$ac_delim
34960 CP!$CP$ac_delim
34961 SED!$SED$ac_delim
34962 ECHO!$ECHO$ac_delim
34963 CMP!$CMP$ac_delim
34964 TBL!$TBL$ac_delim
34965 AR!$AR$ac_delim
34966 OPENSSL!$OPENSSL$ac_delim
34967 MTX!$MTX$ac_delim
34968 DD!$DD$ac_delim
34969 MKISOFS!$MKISOFS$ac_delim
34970 PYTHON!$PYTHON$ac_delim
34971 GROWISOFS!$GROWISOFS$ac_delim
34972 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
34973 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
34974 PKGCONFIG!$PKGCONFIG$ac_delim
34975 WXCONFIG!$WXCONFIG$ac_delim
34976 WXFLAGS!$WXFLAGS$ac_delim
34977 CDRECORD!$CDRECORD$ac_delim
34978 PIDOF!$PIDOF$ac_delim
34979 AWK!$AWK$ac_delim
34980 ARFLAGS!$ARFLAGS$ac_delim
34981 MAKE_SHELL!$MAKE_SHELL$ac_delim
34982 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
34983 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
34984 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
34985 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
34986 build!$build$ac_delim
34987 build_cpu!$build_cpu$ac_delim
34988 build_vendor!$build_vendor$ac_delim
34989 build_os!$build_os$ac_delim
34990 host!$host$ac_delim
34991 _ACEOF
34992
34993   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
34994     break
34995   elif $ac_last_try; then
34996     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34997 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34998    { (exit 1); exit 1; }; }
34999   else
35000     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35001   fi
35002 done
35003
35004 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35005 if test -n "$ac_eof"; then
35006   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35007   ac_eof=`expr $ac_eof + 1`
35008 fi
35009
35010 cat >>$CONFIG_STATUS <<_ACEOF
35011 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
35012 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35013 /^[      ]*@MCOMMON@[    ]*$/{
35014 r $MCOMMON
35015 d
35016 }
35017 _ACEOF
35018 sed '
35019 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35020 s/^/s,@/; s/!/@,|#_!!_#|/
35021 :n
35022 t n
35023 s/'"$ac_delim"'$/,g/; t
35024 s/$/\\/; p
35025 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35026 ' >>$CONFIG_STATUS <conf$$subs.sed
35027 rm -f conf$$subs.sed
35028 cat >>$CONFIG_STATUS <<_ACEOF
35029 CEOF$ac_eof
35030 _ACEOF
35031
35032
35033 ac_delim='%!_!# '
35034 for ac_last_try in false false false false false :; do
35035   cat >conf$$subs.sed <<_ACEOF
35036 host_cpu!$host_cpu$ac_delim
35037 host_vendor!$host_vendor$ac_delim
35038 host_os!$host_os$ac_delim
35039 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
35040 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
35041 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
35042 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
35043 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
35044 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
35045 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
35046 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
35047 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
35048 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
35049 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
35050 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
35051 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
35052 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
35053 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
35054 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
35055 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
35056 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
35057 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
35058 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
35059 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
35060 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
35061 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
35062 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
35063 SET_MAKE!$SET_MAKE$ac_delim
35064 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
35065 USE_NLS!$USE_NLS$ac_delim
35066 MSGFMT!$MSGFMT$ac_delim
35067 GMSGFMT!$GMSGFMT$ac_delim
35068 XGETTEXT!$XGETTEXT$ac_delim
35069 MSGMERGE!$MSGMERGE$ac_delim
35070 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
35071 LIBICONV!$LIBICONV$ac_delim
35072 LTLIBICONV!$LTLIBICONV$ac_delim
35073 INTLLIBS!$INTLLIBS$ac_delim
35074 LIBINTL!$LIBINTL$ac_delim
35075 LTLIBINTL!$LTLIBINTL$ac_delim
35076 POSUB!$POSUB$ac_delim
35077 GLIBC2!$GLIBC2$ac_delim
35078 ALLOCA!$ALLOCA$ac_delim
35079 GLIBC21!$GLIBC21$ac_delim
35080 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
35081 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
35082 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
35083 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
35084 INTLBISON!$INTLBISON$ac_delim
35085 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
35086 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
35087 CATOBJEXT!$CATOBJEXT$ac_delim
35088 DATADIRNAME!$DATADIRNAME$ac_delim
35089 INSTOBJEXT!$INSTOBJEXT$ac_delim
35090 GENCAT!$GENCAT$ac_delim
35091 INTLOBJS!$INTLOBJS$ac_delim
35092 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
35093 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
35094 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
35095 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
35096 GNOME_LIBS!$GNOME_LIBS$ac_delim
35097 GNOME_DIR!$GNOME_DIR$ac_delim
35098 BAT_DIR!$BAT_DIR$ac_delim
35099 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
35100 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
35101 WX_DIR!$WX_DIR$ac_delim
35102 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
35103 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
35104 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
35105 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
35106 STATIC_FD!$STATIC_FD$ac_delim
35107 STATIC_SD!$STATIC_SD$ac_delim
35108 STATIC_DIR!$STATIC_DIR$ac_delim
35109 STATIC_CONS!$STATIC_CONS$ac_delim
35110 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
35111 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
35112 ALL_DIRS!$ALL_DIRS$ac_delim
35113 DIRD_DIR!$DIRD_DIR$ac_delim
35114 DIR_TOOLS!$DIR_TOOLS$ac_delim
35115 STORED_DIR!$STORED_DIR$ac_delim
35116 CONS_INC!$CONS_INC$ac_delim
35117 CONS_OBJ!$CONS_OBJ$ac_delim
35118 CONS_SRC!$CONS_SRC$ac_delim
35119 CONS_LIBS!$CONS_LIBS$ac_delim
35120 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
35121 READLINE_SRC!$READLINE_SRC$ac_delim
35122 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
35123 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
35124 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
35125 OPENSSL_INC!$OPENSSL_INC$ac_delim
35126 working_dir!$working_dir$ac_delim
35127 scriptdir!$scriptdir$ac_delim
35128 dump_email!$dump_email$ac_delim
35129 job_email!$job_email$ac_delim
35130 smtp_host!$smtp_host$ac_delim
35131 piddir!$piddir$ac_delim
35132 subsysdir!$subsysdir$ac_delim
35133 _ACEOF
35134
35135   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
35136     break
35137   elif $ac_last_try; then
35138     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35139 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35140    { (exit 1); exit 1; }; }
35141   else
35142     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35143   fi
35144 done
35145
35146 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35147 if test -n "$ac_eof"; then
35148   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35149   ac_eof=`expr $ac_eof + 1`
35150 fi
35151
35152 cat >>$CONFIG_STATUS <<_ACEOF
35153 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
35154 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35155 _ACEOF
35156 sed '
35157 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35158 s/^/s,@/; s/!/@,|#_!!_#|/
35159 :n
35160 t n
35161 s/'"$ac_delim"'$/,g/; t
35162 s/$/\\/; p
35163 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35164 ' >>$CONFIG_STATUS <conf$$subs.sed
35165 rm -f conf$$subs.sed
35166 cat >>$CONFIG_STATUS <<_ACEOF
35167 CEOF$ac_eof
35168 _ACEOF
35169
35170
35171 ac_delim='%!_!# '
35172 for ac_last_try in false false false false false :; do
35173   cat >conf$$subs.sed <<_ACEOF
35174 baseport!$baseport$ac_delim
35175 dir_port!$dir_port$ac_delim
35176 fd_port!$fd_port$ac_delim
35177 sd_port!$sd_port$ac_delim
35178 dir_password!$dir_password$ac_delim
35179 fd_password!$fd_password$ac_delim
35180 sd_password!$sd_password$ac_delim
35181 mon_dir_password!$mon_dir_password$ac_delim
35182 mon_fd_password!$mon_fd_password$ac_delim
35183 mon_sd_password!$mon_sd_password$ac_delim
35184 db_name!$db_name$ac_delim
35185 db_user!$db_user$ac_delim
35186 dir_user!$dir_user$ac_delim
35187 dir_group!$dir_group$ac_delim
35188 sd_user!$sd_user$ac_delim
35189 sd_group!$sd_group$ac_delim
35190 fd_user!$fd_user$ac_delim
35191 fd_group!$fd_group$ac_delim
35192 SBINPERM!$SBINPERM$ac_delim
35193 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
35194 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
35195 SQL_BINDIR!$SQL_BINDIR$ac_delim
35196 cats!$cats$ac_delim
35197 DB_TYPE!$DB_TYPE$ac_delim
35198 GETCONF!$GETCONF$ac_delim
35199 XMKMF!$XMKMF$ac_delim
35200 X_CFLAGS!$X_CFLAGS$ac_delim
35201 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
35202 X_LIBS!$X_LIBS$ac_delim
35203 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
35204 LIBOBJS!$LIBOBJS$ac_delim
35205 FDLIBS!$FDLIBS$ac_delim
35206 DEBUG!$DEBUG$ac_delim
35207 DINCLUDE!$DINCLUDE$ac_delim
35208 DLIB!$DLIB$ac_delim
35209 DB_LIBS!$DB_LIBS$ac_delim
35210 WCFLAGS!$WCFLAGS$ac_delim
35211 WLDFLAGS!$WLDFLAGS$ac_delim
35212 WRAPLIBS!$WRAPLIBS$ac_delim
35213 OBJLIST!$OBJLIST$ac_delim
35214 hostname!$hostname$ac_delim
35215 TAPEDRIVE!$TAPEDRIVE$ac_delim
35216 PSCMD!$PSCMD$ac_delim
35217 WIN32!$WIN32$ac_delim
35218 MACOSX!$MACOSX$ac_delim
35219 DISTNAME!$DISTNAME$ac_delim
35220 DISTVER!$DISTVER$ac_delim
35221 LTLIBOBJS!$LTLIBOBJS$ac_delim
35222 _ACEOF
35223
35224   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 48; then
35225     break
35226   elif $ac_last_try; then
35227     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
35228 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
35229    { (exit 1); exit 1; }; }
35230   else
35231     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35232   fi
35233 done
35234
35235 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
35236 if test -n "$ac_eof"; then
35237   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
35238   ac_eof=`expr $ac_eof + 1`
35239 fi
35240
35241 cat >>$CONFIG_STATUS <<_ACEOF
35242 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
35243 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
35244 _ACEOF
35245 sed '
35246 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
35247 s/^/s,@/; s/!/@,|#_!!_#|/
35248 :n
35249 t n
35250 s/'"$ac_delim"'$/,g/; t
35251 s/$/\\/; p
35252 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
35253 ' >>$CONFIG_STATUS <conf$$subs.sed
35254 rm -f conf$$subs.sed
35255 cat >>$CONFIG_STATUS <<_ACEOF
35256 :end
35257 s/|#_!!_#|//g
35258 CEOF$ac_eof
35259 _ACEOF
35260
35261
35262 # VPATH may cause trouble with some makes, so we remove $(srcdir),
35263 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
35264 # trailing colons and then remove the whole line if VPATH becomes empty
35265 # (actually we leave an empty line to preserve line numbers).
35266 if test "x$srcdir" = x.; then
35267   ac_vpsub='/^[  ]*VPATH[        ]*=/{
35268 s/:*\$(srcdir):*/:/
35269 s/:*\${srcdir}:*/:/
35270 s/:*@srcdir@:*/:/
35271 s/^\([^=]*=[     ]*\):*/\1/
35272 s/:*$//
35273 s/^[^=]*=[       ]*$//
35274 }'
35275 fi
35276
35277 cat >>$CONFIG_STATUS <<\_ACEOF
35278 fi # test -n "$CONFIG_FILES"
35279
35280
35281 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
35282 do
35283   case $ac_tag in
35284   :[FHLC]) ac_mode=$ac_tag; continue;;
35285   esac
35286   case $ac_mode$ac_tag in
35287   :[FHL]*:*);;
35288   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
35289 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
35290    { (exit 1); exit 1; }; };;
35291   :[FH]-) ac_tag=-:-;;
35292   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35293   esac
35294   ac_save_IFS=$IFS
35295   IFS=:
35296   set x $ac_tag
35297   IFS=$ac_save_IFS
35298   shift
35299   ac_file=$1
35300   shift
35301
35302   case $ac_mode in
35303   :L) ac_source=$1;;
35304   :[FH])
35305     ac_file_inputs=
35306     for ac_f
35307     do
35308       case $ac_f in
35309       -) ac_f="$tmp/stdin";;
35310       *) # Look for the file first in the build tree, then in the source tree
35311          # (if the path is not absolute).  The absolute path cannot be DOS-style,
35312          # because $ac_f cannot contain `:'.
35313          test -f "$ac_f" ||
35314            case $ac_f in
35315            [\\/$]*) false;;
35316            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35317            esac ||
35318            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
35319 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
35320    { (exit 1); exit 1; }; };;
35321       esac
35322       ac_file_inputs="$ac_file_inputs $ac_f"
35323     done
35324
35325     # Let's still pretend it is `configure' which instantiates (i.e., don't
35326     # use $as_me), people would be surprised to read:
35327     #    /* config.h.  Generated by config.status.  */
35328     configure_input="Generated from "`IFS=:
35329           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
35330     if test x"$ac_file" != x-; then
35331       configure_input="$ac_file.  $configure_input"
35332       { echo "$as_me:$LINENO: creating $ac_file" >&5
35333 echo "$as_me: creating $ac_file" >&6;}
35334     fi
35335
35336     case $ac_tag in
35337     *:-:* | *:-) cat >"$tmp/stdin";;
35338     esac
35339     ;;
35340   esac
35341
35342   ac_dir=`$as_dirname -- "$ac_file" ||
35343 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35344          X"$ac_file" : 'X\(//\)[^/]' \| \
35345          X"$ac_file" : 'X\(//\)$' \| \
35346          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35347 echo X"$ac_file" |
35348     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35349             s//\1/
35350             q
35351           }
35352           /^X\(\/\/\)[^/].*/{
35353             s//\1/
35354             q
35355           }
35356           /^X\(\/\/\)$/{
35357             s//\1/
35358             q
35359           }
35360           /^X\(\/\).*/{
35361             s//\1/
35362             q
35363           }
35364           s/.*/./; q'`
35365   { as_dir="$ac_dir"
35366   case $as_dir in #(
35367   -*) as_dir=./$as_dir;;
35368   esac
35369   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35370     as_dirs=
35371     while :; do
35372       case $as_dir in #(
35373       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35374       *) as_qdir=$as_dir;;
35375       esac
35376       as_dirs="'$as_qdir' $as_dirs"
35377       as_dir=`$as_dirname -- "$as_dir" ||
35378 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35379          X"$as_dir" : 'X\(//\)[^/]' \| \
35380          X"$as_dir" : 'X\(//\)$' \| \
35381          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35382 echo X"$as_dir" |
35383     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35384             s//\1/
35385             q
35386           }
35387           /^X\(\/\/\)[^/].*/{
35388             s//\1/
35389             q
35390           }
35391           /^X\(\/\/\)$/{
35392             s//\1/
35393             q
35394           }
35395           /^X\(\/\).*/{
35396             s//\1/
35397             q
35398           }
35399           s/.*/./; q'`
35400       test -d "$as_dir" && break
35401     done
35402     test -z "$as_dirs" || eval "mkdir $as_dirs"
35403   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35404 echo "$as_me: error: cannot create directory $as_dir" >&2;}
35405    { (exit 1); exit 1; }; }; }
35406   ac_builddir=.
35407
35408 case "$ac_dir" in
35409 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35410 *)
35411   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
35412   # A ".." for each directory in $ac_dir_suffix.
35413   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
35414   case $ac_top_builddir_sub in
35415   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35416   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35417   esac ;;
35418 esac
35419 ac_abs_top_builddir=$ac_pwd
35420 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35421 # for backward compatibility:
35422 ac_top_builddir=$ac_top_build_prefix
35423
35424 case $srcdir in
35425   .)  # We are building in place.
35426     ac_srcdir=.
35427     ac_top_srcdir=$ac_top_builddir_sub
35428     ac_abs_top_srcdir=$ac_pwd ;;
35429   [\\/]* | ?:[\\/]* )  # Absolute name.
35430     ac_srcdir=$srcdir$ac_dir_suffix;
35431     ac_top_srcdir=$srcdir
35432     ac_abs_top_srcdir=$srcdir ;;
35433   *) # Relative name.
35434     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35435     ac_top_srcdir=$ac_top_build_prefix$srcdir
35436     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35437 esac
35438 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35439
35440
35441   case $ac_mode in
35442   :F)
35443   #
35444   # CONFIG_FILE
35445   #
35446
35447   case $INSTALL in
35448   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35449   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35450   esac
35451 _ACEOF
35452
35453 cat >>$CONFIG_STATUS <<\_ACEOF
35454 # If the template does not know about datarootdir, expand it.
35455 # FIXME: This hack should be removed a few years after 2.60.
35456 ac_datarootdir_hack=; ac_datarootdir_seen=
35457
35458 case `sed -n '/datarootdir/ {
35459   p
35460   q
35461 }
35462 /@datadir@/p
35463 /@docdir@/p
35464 /@infodir@/p
35465 /@localedir@/p
35466 /@mandir@/p
35467 ' $ac_file_inputs` in
35468 *datarootdir*) ac_datarootdir_seen=yes;;
35469 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35470   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35471 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35472 _ACEOF
35473 cat >>$CONFIG_STATUS <<_ACEOF
35474   ac_datarootdir_hack='
35475   s&@datadir@&$datadir&g
35476   s&@docdir@&$docdir&g
35477   s&@infodir@&$infodir&g
35478   s&@localedir@&$localedir&g
35479   s&@mandir@&$mandir&g
35480     s&\\\${datarootdir}&$datarootdir&g' ;;
35481 esac
35482 _ACEOF
35483
35484 # Neutralize VPATH when `$srcdir' = `.'.
35485 # Shell code in configure.ac might set extrasub.
35486 # FIXME: do we really want to maintain this feature?
35487 cat >>$CONFIG_STATUS <<_ACEOF
35488   sed "$ac_vpsub
35489 $extrasub
35490 _ACEOF
35491 cat >>$CONFIG_STATUS <<\_ACEOF
35492 :t
35493 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35494 s&@configure_input@&$configure_input&;t t
35495 s&@top_builddir@&$ac_top_builddir_sub&;t t
35496 s&@srcdir@&$ac_srcdir&;t t
35497 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35498 s&@top_srcdir@&$ac_top_srcdir&;t t
35499 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35500 s&@builddir@&$ac_builddir&;t t
35501 s&@abs_builddir@&$ac_abs_builddir&;t t
35502 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35503 s&@INSTALL@&$ac_INSTALL&;t t
35504 $ac_datarootdir_hack
35505 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
35506
35507 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35508   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
35509   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
35510   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35511 which seems to be undefined.  Please make sure it is defined." >&5
35512 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35513 which seems to be undefined.  Please make sure it is defined." >&2;}
35514
35515   rm -f "$tmp/stdin"
35516   case $ac_file in
35517   -) cat "$tmp/out"; rm -f "$tmp/out";;
35518   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
35519   esac
35520  ;;
35521   :H)
35522   #
35523   # CONFIG_HEADER
35524   #
35525 _ACEOF
35526
35527 # Transform confdefs.h into a sed script `conftest.defines', that
35528 # substitutes the proper values into config.h.in to produce config.h.
35529 rm -f conftest.defines conftest.tail
35530 # First, append a space to every undef/define line, to ease matching.
35531 echo 's/$/ /' >conftest.defines
35532 # Then, protect against being on the right side of a sed subst, or in
35533 # an unquoted here document, in config.status.  If some macros were
35534 # called several times there might be several #defines for the same
35535 # symbol, which is useless.  But do not sort them, since the last
35536 # AC_DEFINE must be honored.
35537 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35538 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
35539 # NAME is the cpp macro being defined, VALUE is the value it is being given.
35540 # PARAMS is the parameter list in the macro definition--in most cases, it's
35541 # just an empty string.
35542 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
35543 ac_dB='\\)[      (].*,\\1define\\2'
35544 ac_dC=' '
35545 ac_dD=' ,'
35546
35547 uniq confdefs.h |
35548   sed -n '
35549         t rset
35550         :rset
35551         s/^[     ]*#[    ]*define[       ][      ]*//
35552         t ok
35553         d
35554         :ok
35555         s/[\\&,]/\\&/g
35556         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
35557         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
35558   ' >>conftest.defines
35559
35560 # Remove the space that was appended to ease matching.
35561 # Then replace #undef with comments.  This is necessary, for
35562 # example, in the case of _POSIX_SOURCE, which is predefined and required
35563 # on some systems where configure will not decide to define it.
35564 # (The regexp can be short, since the line contains either #define or #undef.)
35565 echo 's/ $//
35566 s,^[     #]*u.*,/* & */,' >>conftest.defines
35567
35568 # Break up conftest.defines:
35569 ac_max_sed_lines=50
35570
35571 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35572 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35573 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35574 # et cetera.
35575 ac_in='$ac_file_inputs'
35576 ac_out='"$tmp/out1"'
35577 ac_nxt='"$tmp/out2"'
35578
35579 while :
35580 do
35581   # Write a here document:
35582     cat >>$CONFIG_STATUS <<_ACEOF
35583     # First, check the format of the line:
35584     cat >"\$tmp/defines.sed" <<\\CEOF
35585 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
35586 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
35587 b
35588 :def
35589 _ACEOF
35590   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35591   echo 'CEOF
35592     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35593   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35594   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35595   grep . conftest.tail >/dev/null || break
35596   rm -f conftest.defines
35597   mv conftest.tail conftest.defines
35598 done
35599 rm -f conftest.defines conftest.tail
35600
35601 echo "ac_result=$ac_in" >>$CONFIG_STATUS
35602 cat >>$CONFIG_STATUS <<\_ACEOF
35603   if test x"$ac_file" != x-; then
35604     echo "/* $configure_input  */" >"$tmp/config.h"
35605     cat "$ac_result" >>"$tmp/config.h"
35606     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35607       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35608 echo "$as_me: $ac_file is unchanged" >&6;}
35609     else
35610       rm -f $ac_file
35611       mv "$tmp/config.h" $ac_file
35612     fi
35613   else
35614     echo "/* $configure_input  */"
35615     cat "$ac_result"
35616   fi
35617   rm -f "$tmp/out12"
35618  ;;
35619
35620   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35621 echo "$as_me: executing $ac_file commands" >&6;}
35622  ;;
35623   esac
35624
35625
35626   case $ac_file$ac_mode in
35627     "default-1":C)
35628     for ac_file in $CONFIG_FILES; do
35629       # Support "outfile[:infile[:infile...]]"
35630       case "$ac_file" in
35631         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
35632       esac
35633       # PO directories have a Makefile.in generated from Makefile.in.in.
35634       case "$ac_file" in */Makefile.in)
35635         # Adjust a relative srcdir.
35636         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
35637         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
35638         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
35639         # In autoconf-2.13 it is called $ac_given_srcdir.
35640         # In autoconf-2.50 it is called $srcdir.
35641         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
35642         case "$ac_given_srcdir" in
35643           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
35644           /*) top_srcdir="$ac_given_srcdir" ;;
35645           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
35646         esac
35647         # Treat a directory as a PO directory if and only if it has a
35648         # POTFILES.in file. This allows packages to have multiple PO
35649         # directories under different names or in different locations.
35650         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
35651           rm -f "$ac_dir/POTFILES"
35652           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
35653           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
35654           POMAKEFILEDEPS="POTFILES.in"
35655           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
35656           # on $ac_dir but don't depend on user-specified configuration
35657           # parameters.
35658           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
35659             # The LINGUAS file contains the set of available languages.
35660             if test -n "$OBSOLETE_ALL_LINGUAS"; then
35661               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
35662             fi
35663             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
35664             # Hide the ALL_LINGUAS assigment from automake.
35665             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
35666             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
35667           else
35668             # The set of available languages was given in configure.in.
35669             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
35670           fi
35671           # Compute POFILES
35672           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
35673           # Compute UPDATEPOFILES
35674           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
35675           # Compute DUMMYPOFILES
35676           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
35677           # Compute GMOFILES
35678           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
35679           case "$ac_given_srcdir" in
35680             .) srcdirpre= ;;
35681             *) srcdirpre='$(srcdir)/' ;;
35682           esac
35683           POFILES=
35684           UPDATEPOFILES=
35685           DUMMYPOFILES=
35686           GMOFILES=
35687           for lang in $ALL_LINGUAS; do
35688             POFILES="$POFILES $srcdirpre$lang.po"
35689             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
35690             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
35691             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
35692           done
35693           # CATALOGS depends on both $ac_dir and the user's LINGUAS
35694           # environment variable.
35695           INST_LINGUAS=
35696           if test -n "$ALL_LINGUAS"; then
35697             for presentlang in $ALL_LINGUAS; do
35698               useit=no
35699               if test "%UNSET%" != "$LINGUAS"; then
35700                 desiredlanguages="$LINGUAS"
35701               else
35702                 desiredlanguages="$ALL_LINGUAS"
35703               fi
35704               for desiredlang in $desiredlanguages; do
35705                 # Use the presentlang catalog if desiredlang is
35706                 #   a. equal to presentlang, or
35707                 #   b. a variant of presentlang (because in this case,
35708                 #      presentlang can be used as a fallback for messages
35709                 #      which are not translated in the desiredlang catalog).
35710                 case "$desiredlang" in
35711                   "$presentlang"*) useit=yes;;
35712                 esac
35713               done
35714               if test $useit = yes; then
35715                 INST_LINGUAS="$INST_LINGUAS $presentlang"
35716               fi
35717             done
35718           fi
35719           CATALOGS=
35720           if test -n "$INST_LINGUAS"; then
35721             for lang in $INST_LINGUAS; do
35722               CATALOGS="$CATALOGS $lang.gmo"
35723             done
35724           fi
35725           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
35726           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"
35727           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
35728             if test -f "$f"; then
35729               case "$f" in
35730                 *.orig | *.bak | *~) ;;
35731                 *) cat "$f" >> "$ac_dir/Makefile" ;;
35732               esac
35733             fi
35734           done
35735         fi
35736         ;;
35737       esac
35738     done ;;
35739     "default":C) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
35740  ;;
35741
35742   esac
35743 done # for ac_tag
35744
35745
35746 { (exit 0); exit 0; }
35747 _ACEOF
35748 chmod +x $CONFIG_STATUS
35749 ac_clean_files=$ac_clean_files_save
35750
35751
35752 # configure is writing to config.log, and then calls config.status.
35753 # config.status does its own redirection, appending to config.log.
35754 # Unfortunately, on DOS this fails, as config.log is still kept open
35755 # by configure, so config.status won't be able to write to it; its
35756 # output is simply discarded.  So we exec the FD to /dev/null,
35757 # effectively closing config.log, so it can be properly (re)opened and
35758 # appended to by config.status.  When coming back to configure, we
35759 # need to make the FD available again.
35760 if test "$no_create" != yes; then
35761   ac_cs_success=:
35762   ac_config_status_args=
35763   test "$silent" = yes &&
35764     ac_config_status_args="$ac_config_status_args --quiet"
35765   exec 5>/dev/null
35766   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35767   exec 5>>config.log
35768   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35769   # would make configure fail if this is the last instruction.
35770   $ac_cs_success || { (exit 1); exit 1; }
35771 fi
35772
35773
35774 cd scripts
35775 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
35776 chmod 755 dvd-handler dvd-simulator
35777 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
35778 cd ..
35779
35780 c=src/cats
35781
35782 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
35783 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
35784
35785 chmod 755 $c/create_bdb_database      $c/update_bdb_tables     $c/make_bdb_tables
35786 chmod 755 $c/grant_bdb_privileges     $c/drop_bdb_tables       $c/drop_bdb_database
35787
35788 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
35789 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
35790
35791 chmod 755 $c/create_sqlite_database   $c/update_sqlite_tables  $c/make_sqlite_tables
35792 chmod 755 $c/grant_sqlite_privileges  $c/drop_sqlite_tables    $c/drop_sqlite_database
35793
35794 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
35795 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
35796
35797 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
35798 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
35799
35800 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
35801 chmod 755 $c/sqlite
35802 chmod 755 $c/mysql
35803
35804 chmod 755 src/win32/build-depkgs-mingw32
35805
35806 if test "${support_bat}" = "yes" ; then
35807   cd src/qt-console
35808   chmod 755 install_conf_file
35809   qmake
35810 fi
35811
35812
35813 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
35814    largefile_support="yes"
35815 fi
35816
35817 #
35818 # A whole lot of hand springs to get the compiler version.
35819 #  This is because gcc changed the output in version 3.0
35820 #
35821 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
35822 if test "x${CCVERSION}" = "x" ; then
35823   CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
35824 fi
35825 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
35826 if test x"${CXXVERSION}" = x ; then
35827   CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
35828 fi
35829
35830 if test "x${subsysdir}" = "x${sbindir}" ; then
35831    echo " "
35832    echo " "
35833    echo "You have set --sbindir and --with-subsys-dir"
35834    echo "  both equal to: ${subsysdir} "
35835    echo "  This is not permitted. Please reconfigure."
35836    echo " "
35837    echo "Aborting configuration ..."
35838    echo " "
35839    echo " "
35840    exit 1
35841 fi
35842
35843 if test "x${db_type}" = "xInternal" ; then
35844    echo " "
35845    echo " "
35846    echo "You have not specified either --enable-client-only or one of the"
35847    echo "  supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
35848    echo "  This is not permitted. Please reconfigure."
35849    echo " "
35850    echo "Aborting the configuration ..."
35851    echo " "
35852    echo " "
35853    exit 1
35854 fi
35855
35856 echo "
35857 Configuration on `date`:
35858
35859   Host:                       $host -- ${DISTNAME} ${DISTVER}
35860   Bacula version:             ${VERSION} (${DATE})
35861   Source code location:       ${srcdir}
35862   Install binaries:           ${sbindir}
35863   Install config files:       ${sysconfdir}
35864   Scripts directory:          ${scriptdir}
35865   Working directory:          ${working_dir}
35866   PID directory:              ${piddir}
35867   Subsys directory:           ${subsysdir}
35868   Man directory:              ${mandir}
35869   Data directory:             ${datadir}
35870   C Compiler:                 ${CC} ${CCVERSION}
35871   C++ Compiler:               ${CXX} ${CXXVERSION}
35872   Compiler flags:             ${WCFLAGS} ${CFLAGS}
35873   Linker flags:               ${WLDFLAGS} ${LDFLAGS}
35874   Libraries:                  ${LIBS}
35875   Statically Linked Tools:    ${support_static_tools}
35876   Statically Linked FD:       ${support_static_fd}
35877   Statically Linked SD:       ${support_static_sd}
35878   Statically Linked DIR:      ${support_static_dir}
35879   Statically Linked CONS:     ${support_static_cons}
35880   Database type:              ${db_type}
35881   Database lib:               ${DB_LIBS}
35882   Database name:              ${db_name}
35883   Database user:              ${db_user}
35884
35885   Job Output Email:           ${job_email}
35886   Traceback Email:            ${dump_email}
35887   SMTP Host Address:          ${smtp_host}
35888
35889   Director Port:              ${dir_port}
35890   File daemon Port:           ${fd_port}
35891   Storage daemon Port:        ${sd_port}
35892
35893   Director User:              ${dir_user}
35894   Director Group:             ${dir_group}
35895   Storage Daemon User:        ${sd_user}
35896   Storage DaemonGroup:        ${sd_group}
35897   File Daemon User:           ${fd_user}
35898   File Daemon Group:          ${fd_group}
35899
35900   SQL binaries Directory      ${SQL_BINDIR}
35901
35902   Large file support:         $largefile_support
35903   Bacula conio support:       ${got_conio} ${CONS_LIBS}
35904   readline support:           ${got_readline} ${PRTREADLINE_SRC}
35905   TCP Wrappers support:       ${TCPW_MSG} ${WRAPLIBS}
35906   TLS support:                ${support_tls}
35907   Encryption support:         ${support_crypto}
35908   ZLIB support:               ${have_zlib}
35909   enable-smartalloc:          ${support_smartalloc}
35910   enable-bat:                 ${support_bat}
35911   enable-gnome:               ${support_gnome} ${gnome_version}
35912   enable-bwx-console:         ${support_wx_console} ${wx_version}
35913   enable-tray-monitor:        ${support_tray_monitor}
35914   client-only:                ${build_client_only}
35915   build-dird:                 ${build_dird}
35916   build-stored:               ${build_stored}
35917   ACL support:                ${have_acl}
35918   Python support:             ${support_python} ${PYTHON_LIBS}
35919
35920   " > config.out
35921
35922 cat config.out